2 # Guess values for system-dependent variables and create Makefiles.
3 # Generated by GNU Autoconf 2.59d.
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 Bourne compatible
14 if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then
17 # Zsh 3.x and 4.x performs word splitting on ${1+"$@"}, which
18 # is contrary to our usage. Disable this feature.
19 alias -g '${1+"$@"}'='"$@"'
22 case `(set -o) 2>/dev/null` in *posix*) set -o posix;; esac
24 BIN_SH=xpg4; export BIN_SH # for Tru64
25 DUALCASE=1; export DUALCASE # for MKS sh
29 # Avoid depending upon Character Ranges.
30 as_cr_letters='abcdefghijklmnopqrstuvwxyz'
31 as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
32 as_cr_Letters=$as_cr_letters$as_cr_LETTERS
33 as_cr_digits='0123456789'
34 as_cr_alnum=$as_cr_Letters$as_cr_digits
36 # The user is always right.
37 if test "${PATH_SEPARATOR+set}" != set; then
38 echo "#! /bin/sh" >conf$$.sh
39 echo "exit 0" >>conf$$.sh
41 if (PATH="/nonexistent;."; conf$$.sh) >/dev/null 2>&1; then
49 # Support unset when possible.
50 if ( (MAIL=60; unset MAIL) || exit) >/dev/null 2>&1; then
58 # We need space, tab and new line, in precisely that order. Quoting is
59 # there to prevent editors from complaining about space-tab.
60 # (If _AS_PATH_WALK were called with IFS unset, it would disable word
61 # splitting by setting IFS to empty value.)
66 # Find who we are. Look in the path if we contain no directory separator.
68 *[\\/]* ) as_myself=$0 ;;
69 *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
73 test -z "$as_dir" && as_dir=.
74 test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
80 # We did not find ourselves, most probably we were run as `sh COMMAND'
81 # in which case we are not to be found in the path.
82 if test "x$as_myself" = x; then
85 if test ! -f "$as_myself"; then
86 echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2
90 # Work around bugs in pre-3.0 UWIN ksh.
91 for as_var in ENV MAIL MAILPATH
92 do ($as_unset $as_var) >/dev/null 2>&1 && $as_unset $as_var
100 LANG LANGUAGE LC_ADDRESS LC_ALL LC_COLLATE LC_CTYPE LC_IDENTIFICATION \
101 LC_MEASUREMENT LC_MESSAGES LC_MONETARY LC_NAME LC_NUMERIC LC_PAPER \
104 if (set +x; test -z "`(eval $as_var=C; export $as_var) 2>&1`"); then
105 eval $as_var=C; export $as_var
107 ($as_unset $as_var) >/dev/null 2>&1 && $as_unset $as_var
111 # Required to use basename.
112 if expr a : '\(a\)' >/dev/null 2>&1 &&
113 test "X`expr 00001 : '.*\(...\)'`" = X001; then
119 if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then
126 # Name of the executable.
127 as_me=`$as_basename -- "$0" ||
128 $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
129 X"$0" : 'X\(//\)$' \| \
130 X"$0" : 'X\(/\)' \| . 2>/dev/null ||
132 sed '/^.*\/\([^/][^/]*\)\/*$/{
150 if test "x$CONFIG_SHELL" = x; then
151 if (eval ":") 2>/dev/null; then
157 if test $as_have_required = yes && (eval ":
167 as_func_ret_success () {
170 as_func_ret_failure () {
175 if as_func_success; then
179 echo as_func_success failed.
182 if as_func_failure; then
184 echo as_func_failure succeeded.
187 if as_func_ret_success; then
191 echo as_func_ret_success failed.
194 if as_func_ret_failure; then
196 echo as_func_ret_failure succeeded.
199 if ( set x; as_func_ret_success y && test x = \"\$1\" ); then
203 echo positional parameters were not saved.
206 test \$exitcode = 0) || { (exit 1); exit 1; }
211 test \"x\$as_lineno_1\" != \"x\$as_lineno_2\" &&
212 test \"x\`expr \$as_lineno_1 + 1\`\" = \"x\$as_lineno_2\") || { (exit 1); exit 1; }
213 ") 2> /dev/null; then
217 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
218 for as_dir in /usr/bin/posix$PATH_SEPARATOR/bin$PATH_SEPARATOR/usr/bin$PATH_SEPARATOR$PATH
221 test -z "$as_dir" && as_dir=.
224 for as_base in sh bash ksh sh5; do
225 as_candidate_shells="$as_candidate_shells $as_dir/$as_base"
232 for as_shell in $as_candidate_shells $SHELL; do
233 # Try only shells which exist, to save several forks.
234 if test -f $as_shell &&
235 { ($as_shell) 2> /dev/null <<\_ASEOF
236 # Be Bourne compatible
237 if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then
240 # Zsh 3.x and 4.x performs word splitting on ${1+"$@"}, which
241 # is contrary to our usage. Disable this feature.
242 alias -g '${1+"$@"}'='"$@"'
245 case `(set -o) 2>/dev/null` in *posix*) set -o posix;; esac
247 BIN_SH=xpg4; export BIN_SH # for Tru64
248 DUALCASE=1; export DUALCASE # for MKS sh
253 CONFIG_SHELL=$as_shell
255 if { $as_shell 2> /dev/null <<\_ASEOF
256 # Be Bourne compatible
257 if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then
260 # Zsh 3.x and 4.x performs word splitting on ${1+"$@"}, which
261 # is contrary to our usage. Disable this feature.
262 alias -g '${1+"$@"}'='"$@"'
265 case `(set -o) 2>/dev/null` in *posix*) set -o posix;; esac
267 BIN_SH=xpg4; export BIN_SH # for Tru64
268 DUALCASE=1; export DUALCASE # for MKS sh
280 as_func_ret_success () {
283 as_func_ret_failure () {
288 if as_func_success; then
292 echo as_func_success failed.
295 if as_func_failure; then
297 echo as_func_failure succeeded.
300 if as_func_ret_success; then
304 echo as_func_ret_success failed.
307 if as_func_ret_failure; then
309 echo as_func_ret_failure succeeded.
312 if ( set x; as_func_ret_success y && test x = "$1" ); then
316 echo positional parameters were not saved.
319 test $exitcode = 0) || { (exit 1); exit 1; }
324 test "x$as_lineno_1" != "x$as_lineno_2" &&
325 test "x`expr $as_lineno_1 + 1`" = "x$as_lineno_2") || { (exit 1); exit 1; }
336 if test "x$CONFIG_SHELL" != x; then
337 for as_var in BASH_ENV ENV
338 do ($as_unset $as_var) >/dev/null 2>&1 && $as_unset $as_var
341 exec "$CONFIG_SHELL" "$as_myself" ${1+"$@"}
345 if test $as_have_required = no; then
346 echo This script requires a shell more modern than all the
347 echo shells that I found on your system. Please install a
348 echo modern shell, or manually run the script under such a
349 echo shell if you do have one.
350 { (exit 1); exit 1; }
360 (eval "as_func_return () {
369 as_func_ret_success () {
372 as_func_ret_failure () {
377 if as_func_success; then
381 echo as_func_success failed.
384 if as_func_failure; then
386 echo as_func_failure succeeded.
389 if as_func_ret_success; then
393 echo as_func_ret_success failed.
396 if as_func_ret_failure; then
398 echo as_func_ret_failure succeeded.
401 if ( set x; as_func_ret_success y && test x = \"\$1\" ); then
405 echo positional parameters were not saved.
408 test \$exitcode = 0") || {
409 echo No shell found that supports shell functions.
410 echo Please tell autoconf@gnu.org about your system,
411 echo including any error possibly output before this
419 test "x$as_lineno_1" != "x$as_lineno_2" &&
420 test "x`expr $as_lineno_1 + 1`" = "x$as_lineno_2" || {
422 # Create $as_me.lineno as a copy of $as_myself, but with $LINENO
423 # uniformly replaced by the line number. The first 'sed' inserts a
424 # line-number line after each line using $LINENO; the second 'sed'
425 # does the real work. The second script uses 'N' to pair each
426 # line-number line with the line containing $LINENO, and appends
427 # trailing '-' during substitution so that $LINENO is not a special
429 # (Raja R Harinath suggested sed '=', and Paul Eggert wrote the
430 # scripts with optimization help from Paolo Bonzini. Blame Lee
431 # E. McMahon (1931-1989) for sed's syntax. :-)
443 s/[$]LINENO\([^'$as_cr_alnum'_].*\n\)\(.*\)/\2\1\2/
447 chmod +x "$as_me.lineno" ||
448 { echo "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2
449 { (exit 1); exit 1; }; }
451 # Don't try to exec as it changes $[0], causing all sort of problems
452 # (the dirname of $[0] is not the place where we might find the
453 # original and so on. Autoconf is especially sensitive to this).
455 # Exit status is that of the last command.
460 if (dirname -- /) >/dev/null 2>&1; then
466 ECHO_C= ECHO_N= ECHO_T=
470 *c*) ECHO_T=' ';; # ECHO_T is single tab character.
477 if expr a : '\(a\)' >/dev/null 2>&1 &&
478 test "X`expr 00001 : '.*\(...\)'`" = X001; then
484 rm -f conf$$ conf$$.exe conf$$.file
485 if test -d conf$$.dir; then
486 rm -f conf$$.dir/conf$$.file
492 if ln -s conf$$.file conf$$ 2>/dev/null; then
494 # ... but there are two gotchas:
495 # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail.
496 # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable.
497 # In both cases, we have to default to `cp -p'.
498 ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe ||
500 elif ln conf$$.file conf$$ 2>/dev/null; then
505 rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file
506 rmdir conf$$.dir 2>/dev/null
508 if mkdir -p . 2>/dev/null; then
511 test -d ./-p && rmdir ./-p
515 # Find out whether ``test -x'' works. Don't use a zero-byte file, as
516 # systems may use methods other than mode bits to determine executability.
517 cat >conf$$.file <<_ASEOF
522 if test -x conf$$.file >/dev/null 2>&1; then
523 as_executable_p="test -x"
529 # Sed expression to map a string onto a valid CPP name.
530 as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
532 # Sed expression to map a string onto a valid variable name.
533 as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
537 exec 7<&0 </dev/null 6>&1
540 # hostname on some systems (SVR3.2, Linux) returns a bogus exit status,
541 # so uname gets run too.
542 ac_hostname=`(hostname || uname -n) 2>/dev/null | sed 1q`
547 ac_default_prefix=/usr/local
549 ac_config_libobj_dir=.
555 SHELL=${CONFIG_SHELL-/bin/sh}
557 # Identity of this package.
564 ac_unique_file="main.c"
565 # Factoring default headers for most tests.
566 ac_includes_default="\
569 # include <sys/types.h>
572 # include <sys/stat.h>
583 # if !STDC_HEADERS && HAVE_MEMORY_H
589 # include <strings.h>
592 # include <inttypes.h>
610 program_transform_name
639 MAINTAINER_MODE_FALSE
701 TARGET_SYSTEM_ROOT_DEFINE
780 ac_subst_files='host_makefile_frag
781 target_makefile_frag'
782 ac_precious_vars='build_alias
793 ac_subdirs_all='doc testsuite
798 # Initialize some variables set by options.
800 ac_init_version=false
801 # The variables have the same names as the options, with
802 # dashes changed to underlines.
810 program_transform_name=s,x,x,
818 # Installation directory options.
819 # These are left unexpanded so users can "make install exec_prefix=/foo"
820 # and all the variables that are supposed to be based on exec_prefix
821 # by default will actually change.
822 # Use braces instead of parens because sh, perl, etc. also accept them.
823 # (The list follows the same order as the GNU Coding Standards.)
824 bindir='${exec_prefix}/bin'
825 sbindir='${exec_prefix}/sbin'
826 libexecdir='${exec_prefix}/libexec'
827 datarootdir='${prefix}/share'
828 datadir='${datarootdir}'
829 sysconfdir='${prefix}/etc'
830 sharedstatedir='${prefix}/com'
831 localstatedir='${prefix}/var'
832 includedir='${prefix}/include'
833 oldincludedir='/usr/include'
834 docdir='${datarootdir}/doc/${PACKAGE}'
835 infodir='${datarootdir}/info'
840 libdir='${exec_prefix}/lib'
841 localedir='${datarootdir}/locale'
842 mandir='${datarootdir}/man'
848 # If the previous option needs an argument, assign it.
849 if test -n "$ac_prev"; then
850 eval $ac_prev=\$ac_option
856 *=*) ac_optarg=`expr "X$ac_option" : '[^=]*=\(.*\)'` ;;
860 # Accept the important Cygnus configure options, so we can diagnose typos.
862 case $ac_dashdash$ac_option in
866 -bindir | --bindir | --bindi | --bind | --bin | --bi)
868 -bindir=* | --bindir=* | --bindi=* | --bind=* | --bin=* | --bi=*)
871 -build | --build | --buil | --bui | --bu)
872 ac_prev=build_alias ;;
873 -build=* | --build=* | --buil=* | --bui=* | --bu=*)
874 build_alias=$ac_optarg ;;
876 -cache-file | --cache-file | --cache-fil | --cache-fi \
877 | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c)
878 ac_prev=cache_file ;;
879 -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \
880 | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* | --c=*)
881 cache_file=$ac_optarg ;;
884 cache_file=config.cache ;;
886 -datadir | --datadir | --datadi | --datad)
888 -datadir=* | --datadir=* | --datadi=* | --datad=*)
889 datadir=$ac_optarg ;;
891 -datarootdir | --datarootdir | --datarootdi | --datarootd | --dataroot \
892 | --dataroo | --dataro | --datar)
893 ac_prev=datarootdir ;;
894 -datarootdir=* | --datarootdir=* | --datarootdi=* | --datarootd=* \
895 | --dataroot=* | --dataroo=* | --dataro=* | --datar=*)
896 datarootdir=$ac_optarg ;;
898 -disable-* | --disable-*)
899 ac_feature=`expr "x$ac_option" : 'x-*disable-\(.*\)'`
900 # Reject names that are not valid shell variable names.
901 expr "x$ac_feature" : ".*[^-_$as_cr_alnum]" >/dev/null &&
902 { echo "$as_me: error: invalid feature name: $ac_feature" >&2
903 { (exit 1); exit 1; }; }
904 ac_feature=`echo $ac_feature | sed 's/-/_/g'`
905 eval enable_$ac_feature=no ;;
907 -docdir | --docdir | --docdi | --doc | --do)
909 -docdir=* | --docdir=* | --docdi=* | --doc=* | --do=*)
912 -dvidir | --dvidir | --dvidi | --dvid | --dvi | --dv)
914 -dvidir=* | --dvidir=* | --dvidi=* | --dvid=* | --dvi=* | --dv=*)
917 -enable-* | --enable-*)
918 ac_feature=`expr "x$ac_option" : 'x-*enable-\([^=]*\)'`
919 # Reject names that are not valid shell variable names.
920 expr "x$ac_feature" : ".*[^-_$as_cr_alnum]" >/dev/null &&
921 { echo "$as_me: error: invalid feature name: $ac_feature" >&2
922 { (exit 1); exit 1; }; }
923 ac_feature=`echo $ac_feature | sed 's/-/_/g'`
924 eval enable_$ac_feature=\$ac_optarg ;;
926 -exec-prefix | --exec_prefix | --exec-prefix | --exec-prefi \
927 | --exec-pref | --exec-pre | --exec-pr | --exec-p | --exec- \
928 | --exec | --exe | --ex)
929 ac_prev=exec_prefix ;;
930 -exec-prefix=* | --exec_prefix=* | --exec-prefix=* | --exec-prefi=* \
931 | --exec-pref=* | --exec-pre=* | --exec-pr=* | --exec-p=* | --exec-=* \
932 | --exec=* | --exe=* | --ex=*)
933 exec_prefix=$ac_optarg ;;
935 -gas | --gas | --ga | --g)
936 # Obsolete; use --with-gas.
939 -help | --help | --hel | --he | -h)
941 -help=r* | --help=r* | --hel=r* | --he=r* | -hr*)
942 ac_init_help=recursive ;;
943 -help=s* | --help=s* | --hel=s* | --he=s* | -hs*)
944 ac_init_help=short ;;
946 -host | --host | --hos | --ho)
947 ac_prev=host_alias ;;
948 -host=* | --host=* | --hos=* | --ho=*)
949 host_alias=$ac_optarg ;;
951 -htmldir | --htmldir | --htmldi | --htmld | --html | --htm | --ht)
953 -htmldir=* | --htmldir=* | --htmldi=* | --htmld=* | --html=* | --htm=* \
955 htmldir=$ac_optarg ;;
957 -includedir | --includedir | --includedi | --included | --include \
958 | --includ | --inclu | --incl | --inc)
959 ac_prev=includedir ;;
960 -includedir=* | --includedir=* | --includedi=* | --included=* | --include=* \
961 | --includ=* | --inclu=* | --incl=* | --inc=*)
962 includedir=$ac_optarg ;;
964 -infodir | --infodir | --infodi | --infod | --info | --inf)
966 -infodir=* | --infodir=* | --infodi=* | --infod=* | --info=* | --inf=*)
967 infodir=$ac_optarg ;;
969 -libdir | --libdir | --libdi | --libd)
971 -libdir=* | --libdir=* | --libdi=* | --libd=*)
974 -libexecdir | --libexecdir | --libexecdi | --libexecd | --libexec \
975 | --libexe | --libex | --libe)
976 ac_prev=libexecdir ;;
977 -libexecdir=* | --libexecdir=* | --libexecdi=* | --libexecd=* | --libexec=* \
978 | --libexe=* | --libex=* | --libe=*)
979 libexecdir=$ac_optarg ;;
981 -localedir | --localedir | --localedi | --localed | --locale)
983 -localedir=* | --localedir=* | --localedi=* | --localed=* | --locale=*)
984 localedir=$ac_optarg ;;
986 -localstatedir | --localstatedir | --localstatedi | --localstated \
987 | --localstate | --localstat | --localsta | --localst | --locals)
988 ac_prev=localstatedir ;;
989 -localstatedir=* | --localstatedir=* | --localstatedi=* | --localstated=* \
990 | --localstate=* | --localstat=* | --localsta=* | --localst=* | --locals=*)
991 localstatedir=$ac_optarg ;;
993 -mandir | --mandir | --mandi | --mand | --man | --ma | --m)
995 -mandir=* | --mandir=* | --mandi=* | --mand=* | --man=* | --ma=* | --m=*)
999 # Obsolete; use --without-fp.
1002 -no-create | --no-create | --no-creat | --no-crea | --no-cre \
1003 | --no-cr | --no-c | -n)
1006 -no-recursion | --no-recursion | --no-recursio | --no-recursi \
1007 | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r)
1010 -oldincludedir | --oldincludedir | --oldincludedi | --oldincluded \
1011 | --oldinclude | --oldinclud | --oldinclu | --oldincl | --oldinc \
1012 | --oldin | --oldi | --old | --ol | --o)
1013 ac_prev=oldincludedir ;;
1014 -oldincludedir=* | --oldincludedir=* | --oldincludedi=* | --oldincluded=* \
1015 | --oldinclude=* | --oldinclud=* | --oldinclu=* | --oldincl=* | --oldinc=* \
1016 | --oldin=* | --oldi=* | --old=* | --ol=* | --o=*)
1017 oldincludedir=$ac_optarg ;;
1019 -prefix | --prefix | --prefi | --pref | --pre | --pr | --p)
1021 -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*)
1022 prefix=$ac_optarg ;;
1024 -program-prefix | --program-prefix | --program-prefi | --program-pref \
1025 | --program-pre | --program-pr | --program-p)
1026 ac_prev=program_prefix ;;
1027 -program-prefix=* | --program-prefix=* | --program-prefi=* \
1028 | --program-pref=* | --program-pre=* | --program-pr=* | --program-p=*)
1029 program_prefix=$ac_optarg ;;
1031 -program-suffix | --program-suffix | --program-suffi | --program-suff \
1032 | --program-suf | --program-su | --program-s)
1033 ac_prev=program_suffix ;;
1034 -program-suffix=* | --program-suffix=* | --program-suffi=* \
1035 | --program-suff=* | --program-suf=* | --program-su=* | --program-s=*)
1036 program_suffix=$ac_optarg ;;
1038 -program-transform-name | --program-transform-name \
1039 | --program-transform-nam | --program-transform-na \
1040 | --program-transform-n | --program-transform- \
1041 | --program-transform | --program-transfor \
1042 | --program-transfo | --program-transf \
1043 | --program-trans | --program-tran \
1044 | --progr-tra | --program-tr | --program-t)
1045 ac_prev=program_transform_name ;;
1046 -program-transform-name=* | --program-transform-name=* \
1047 | --program-transform-nam=* | --program-transform-na=* \
1048 | --program-transform-n=* | --program-transform-=* \
1049 | --program-transform=* | --program-transfor=* \
1050 | --program-transfo=* | --program-transf=* \
1051 | --program-trans=* | --program-tran=* \
1052 | --progr-tra=* | --program-tr=* | --program-t=*)
1053 program_transform_name=$ac_optarg ;;
1055 -pdfdir | --pdfdir | --pdfdi | --pdfd | --pdf | --pd)
1057 -pdfdir=* | --pdfdir=* | --pdfdi=* | --pdfd=* | --pdf=* | --pd=*)
1058 pdfdir=$ac_optarg ;;
1060 -psdir | --psdir | --psdi | --psd | --ps)
1062 -psdir=* | --psdir=* | --psdi=* | --psd=* | --ps=*)
1065 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
1066 | -silent | --silent | --silen | --sile | --sil)
1069 -sbindir | --sbindir | --sbindi | --sbind | --sbin | --sbi | --sb)
1071 -sbindir=* | --sbindir=* | --sbindi=* | --sbind=* | --sbin=* \
1073 sbindir=$ac_optarg ;;
1075 -sharedstatedir | --sharedstatedir | --sharedstatedi \
1076 | --sharedstated | --sharedstate | --sharedstat | --sharedsta \
1077 | --sharedst | --shareds | --shared | --share | --shar \
1079 ac_prev=sharedstatedir ;;
1080 -sharedstatedir=* | --sharedstatedir=* | --sharedstatedi=* \
1081 | --sharedstated=* | --sharedstate=* | --sharedstat=* | --sharedsta=* \
1082 | --sharedst=* | --shareds=* | --shared=* | --share=* | --shar=* \
1084 sharedstatedir=$ac_optarg ;;
1086 -site | --site | --sit)
1088 -site=* | --site=* | --sit=*)
1091 -srcdir | --srcdir | --srcdi | --srcd | --src | --sr)
1093 -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*)
1094 srcdir=$ac_optarg ;;
1096 -sysconfdir | --sysconfdir | --sysconfdi | --sysconfd | --sysconf \
1097 | --syscon | --sysco | --sysc | --sys | --sy)
1098 ac_prev=sysconfdir ;;
1099 -sysconfdir=* | --sysconfdir=* | --sysconfdi=* | --sysconfd=* | --sysconf=* \
1100 | --syscon=* | --sysco=* | --sysc=* | --sys=* | --sy=*)
1101 sysconfdir=$ac_optarg ;;
1103 -target | --target | --targe | --targ | --tar | --ta | --t)
1104 ac_prev=target_alias ;;
1105 -target=* | --target=* | --targe=* | --targ=* | --tar=* | --ta=* | --t=*)
1106 target_alias=$ac_optarg ;;
1108 -v | -verbose | --verbose | --verbos | --verbo | --verb)
1111 -version | --version | --versio | --versi | --vers | -V)
1112 ac_init_version=: ;;
1115 ac_package=`expr "x$ac_option" : 'x-*with-\([^=]*\)'`
1116 # Reject names that are not valid shell variable names.
1117 expr "x$ac_package" : ".*[^-_$as_cr_alnum]" >/dev/null &&
1118 { echo "$as_me: error: invalid package name: $ac_package" >&2
1119 { (exit 1); exit 1; }; }
1120 ac_package=`echo $ac_package| sed 's/-/_/g'`
1121 eval with_$ac_package=\$ac_optarg ;;
1123 -without-* | --without-*)
1124 ac_package=`expr "x$ac_option" : 'x-*without-\(.*\)'`
1125 # Reject names that are not valid shell variable names.
1126 expr "x$ac_package" : ".*[^-_$as_cr_alnum]" >/dev/null &&
1127 { echo "$as_me: error: invalid package name: $ac_package" >&2
1128 { (exit 1); exit 1; }; }
1129 ac_package=`echo $ac_package | sed 's/-/_/g'`
1130 eval with_$ac_package=no ;;
1133 # Obsolete; use --with-x.
1136 -x-includes | --x-includes | --x-include | --x-includ | --x-inclu \
1137 | --x-incl | --x-inc | --x-in | --x-i)
1138 ac_prev=x_includes ;;
1139 -x-includes=* | --x-includes=* | --x-include=* | --x-includ=* | --x-inclu=* \
1140 | --x-incl=* | --x-inc=* | --x-in=* | --x-i=*)
1141 x_includes=$ac_optarg ;;
1143 -x-libraries | --x-libraries | --x-librarie | --x-librari \
1144 | --x-librar | --x-libra | --x-libr | --x-lib | --x-li | --x-l)
1145 ac_prev=x_libraries ;;
1146 -x-libraries=* | --x-libraries=* | --x-librarie=* | --x-librari=* \
1147 | --x-librar=* | --x-libra=* | --x-libr=* | --x-lib=* | --x-li=* | --x-l=*)
1148 x_libraries=$ac_optarg ;;
1150 -*) { echo "$as_me: error: unrecognized option: $ac_option
1151 Try \`$0 --help' for more information." >&2
1152 { (exit 1); exit 1; }; }
1156 ac_envvar=`expr "x$ac_option" : 'x\([^=]*\)='`
1157 # Reject names that are not valid shell variable names.
1158 expr "x$ac_envvar" : ".*[^_$as_cr_alnum]" >/dev/null &&
1159 { echo "$as_me: error: invalid variable name: $ac_envvar" >&2
1160 { (exit 1); exit 1; }; }
1161 eval $ac_envvar=\$ac_optarg
1162 export $ac_envvar ;;
1165 # FIXME: should be removed in autoconf 3.0.
1166 echo "$as_me: WARNING: you should use --build, --host, --target" >&2
1167 expr "x$ac_option" : ".*[^-._$as_cr_alnum]" >/dev/null &&
1168 echo "$as_me: WARNING: invalid host type: $ac_option" >&2
1169 : ${build_alias=$ac_option} ${host_alias=$ac_option} ${target_alias=$ac_option}
1175 if test -n "$ac_prev"; then
1176 ac_option=--`echo $ac_prev | sed 's/_/-/g'`
1177 { echo "$as_me: error: missing argument to $ac_option" >&2
1178 { (exit 1); exit 1; }; }
1181 # Be sure to have absolute directory names.
1182 for ac_var in exec_prefix prefix bindir sbindir libexecdir datarootdir \
1183 datadir sysconfdir sharedstatedir localstatedir includedir \
1184 oldincludedir docdir infodir htmldir dvidir pdfdir psdir \
1185 libdir localedir mandir
1187 eval ac_val=\$$ac_var
1189 [\\/$]* | ?:[\\/]* ) continue;;
1190 NONE | '' ) case $ac_var in *prefix ) continue;; esac;;
1192 { echo "$as_me: error: expected an absolute directory name for --$ac_var: $ac_val" >&2
1193 { (exit 1); exit 1; }; }
1196 # There might be people who depend on the old broken behavior: `$host'
1197 # used to hold the argument of --host etc.
1198 # FIXME: To remove some day.
1201 target=$target_alias
1203 # FIXME: To remove some day.
1204 if test "x$host_alias" != x; then
1205 if test "x$build_alias" = x; then
1206 cross_compiling=maybe
1207 echo "$as_me: WARNING: If you wanted to set the --build type, don't use --host.
1208 If a cross compiler is detected then cross compile mode will be used." >&2
1209 elif test "x$build_alias" != "x$host_alias"; then
1215 test -n "$host_alias" && ac_tool_prefix=$host_alias-
1217 test "$silent" = yes && exec 6>/dev/null
1220 ac_pwd=`pwd` && test -n "$ac_pwd" &&
1221 ac_ls_di=`ls -di .` &&
1222 ac_pwd_ls_di=`cd "$ac_pwd" && ls -di .` ||
1223 { echo "$as_me: error: Working directory cannot be determined" >&2
1224 { (exit 1); exit 1; }; }
1225 test "X$ac_ls_di" = "X$ac_pwd_ls_di" ||
1226 { echo "$as_me: error: pwd does not report name of working directory" >&2
1227 { (exit 1); exit 1; }; }
1230 # Find the source files, if location was not specified.
1231 if test -z "$srcdir"; then
1232 ac_srcdir_defaulted=yes
1233 # Try the directory containing this script, then the parent directory.
1234 ac_confdir=`$as_dirname -- "$0" ||
1235 $as_expr X"$0" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
1236 X"$0" : 'X\(//\)[^/]' \| \
1237 X"$0" : 'X\(//\)$' \| \
1238 X"$0" : 'X\(/\)' \| . 2>/dev/null ||
1240 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
1258 if test ! -r "$srcdir/$ac_unique_file"; then
1262 ac_srcdir_defaulted=no
1264 if test ! -r "$srcdir/$ac_unique_file"; then
1265 test "$ac_srcdir_defaulted" = yes && srcdir="$ac_confdir or .."
1266 { echo "$as_me: error: cannot find sources ($ac_unique_file) in $srcdir" >&2
1267 { (exit 1); exit 1; }; }
1269 ac_msg="sources are in $srcdir, but \`cd $srcdir' does not work"
1271 cd "$srcdir" && test -r "./$ac_unique_file" || { echo "$as_me: error: $ac_msg" >&2
1272 { (exit 1); exit 1; }; }
1274 # When building in place, set srcdir=.
1275 if test "$ac_abs_confdir" = "$ac_pwd"; then
1278 # Remove unnecessary trailing slashes from srcdir.
1279 # Double slashes in file names in object file debugging info
1280 # mess up M-x gdb in Emacs.
1282 */) srcdir=`expr "X$srcdir" : 'X\(.*[^/]\)' \| "X$srcdir" : 'X\(.*\)'`;;
1284 for ac_var in $ac_precious_vars; do
1285 eval ac_env_${ac_var}_set=\${${ac_var}+set}
1286 eval ac_env_${ac_var}_value=\$${ac_var}
1287 eval ac_cv_env_${ac_var}_set=\${${ac_var}+set}
1288 eval ac_cv_env_${ac_var}_value=\$${ac_var}
1292 # Report the --help message.
1294 if test "$ac_init_help" = "long"; then
1295 # Omit some internal or obsolete options to make the list less imposing.
1296 # This message is too long to be a string in the A/UX 3.1 sh.
1298 \`configure' configures this package to adapt to many kinds of systems.
1300 Usage: $0 [OPTION]... [VAR=VALUE]...
1302 To assign environment variables (e.g., CC, CFLAGS...), specify them as
1303 VAR=VALUE. See below for descriptions of some of the useful variables.
1305 Defaults for the options are specified in brackets.
1308 -h, --help display this help and exit
1309 --help=short display options specific to this package
1310 --help=recursive display the short help of all the included packages
1311 -V, --version display version information and exit
1312 -q, --quiet, --silent do not print \`checking...' messages
1313 --cache-file=FILE cache test results in FILE [disabled]
1314 -C, --config-cache alias for \`--cache-file=config.cache'
1315 -n, --no-create do not create output files
1316 --srcdir=DIR find the sources in DIR [configure dir or \`..']
1318 Installation directories:
1319 --prefix=PREFIX install architecture-independent files in PREFIX
1320 [$ac_default_prefix]
1321 --exec-prefix=EPREFIX install architecture-dependent files in EPREFIX
1324 By default, \`make install' will install all the files in
1325 \`$ac_default_prefix/bin', \`$ac_default_prefix/lib' etc. You can specify
1326 an installation prefix other than \`$ac_default_prefix' using \`--prefix',
1327 for instance \`--prefix=\$HOME'.
1329 For better control, use the options below.
1331 Fine tuning of the installation directories:
1332 --bindir=DIR user executables [EPREFIX/bin]
1333 --sbindir=DIR system admin executables [EPREFIX/sbin]
1334 --libexecdir=DIR program executables [EPREFIX/libexec]
1335 --sysconfdir=DIR read-only single-machine data [PREFIX/etc]
1336 --sharedstatedir=DIR modifiable architecture-independent data [PREFIX/com]
1337 --localstatedir=DIR modifiable single-machine data [PREFIX/var]
1338 --libdir=DIR object code libraries [EPREFIX/lib]
1339 --includedir=DIR C header files [PREFIX/include]
1340 --oldincludedir=DIR C header files for non-gcc [/usr/include]
1341 --datarootdir=DIR read-only arch.-independent data root [PREFIX/share]
1342 --datadir=DIR read-only architecture-independent data [DATAROOTDIR]
1343 --infodir=DIR info documentation [DATAROOTDIR/info]
1344 --localedir=DIR locale-dependent data [DATAROOTDIR/locale]
1345 --mandir=DIR man documentation [DATAROOTDIR/man]
1346 --docdir=DIR documentation root [DATAROOTDIR/doc/PACKAGE]
1347 --htmldir=DIR html documentation [DOCDIR]
1348 --dvidir=DIR dvi documentation [DOCDIR]
1349 --pdfdir=DIR pdf documentation [DOCDIR]
1350 --psdir=DIR ps documentation [DOCDIR]
1356 --program-prefix=PREFIX prepend PREFIX to installed program names
1357 --program-suffix=SUFFIX append SUFFIX to installed program names
1358 --program-transform-name=PROGRAM run sed PROGRAM on installed program names
1361 --x-includes=DIR X include files are in DIR
1362 --x-libraries=DIR X library files are in DIR
1365 --build=BUILD configure for building on BUILD [guessed]
1366 --host=HOST cross-compile to build programs to run on HOST [BUILD]
1367 --target=TARGET configure for building compilers for TARGET [HOST]
1371 if test -n "$ac_init_help"; then
1376 --disable-FEATURE do not include FEATURE (same as --enable-FEATURE=no)
1377 --enable-FEATURE[=ARG] include FEATURE [ARG=yes]
1378 --enable-maintainer-mode enable make rules and dependencies not useful
1379 (and sometimes confusing) to the casual installer
1380 --disable-nls do not use Native Language Support
1381 --disable-gdbcli disable command-line interface (CLI)
1382 --disable-gdbmi disable machine-interface (MI)
1383 --enable-tui enable full-screen terminal user interface (TUI)
1384 --enable-gdbtk enable gdbtk graphical user interface (GUI)
1385 --enable-profiling enable profiling of GDB
1386 --enable-werror treat compile warnings as errors
1387 --enable-build-warnings Enable build-time compiler warnings if gcc is used
1388 --enable-gdb-build-warnings Enable GDB specific build-time compiler warnings if gcc is used
1389 --enable-sim Link gdb with simulator
1390 --enable-multi-ice build the multi-ice-gdb-server
1393 --with-PACKAGE[=ARG] use PACKAGE [ARG=yes]
1394 --without-PACKAGE do not use PACKAGE (same as --with-PACKAGE=no)
1395 --with-included-gettext use the GNU gettext library included here
1396 --with-separate-debug-dir=path Look for global separate debug info in this path LIBDIR/debug
1397 --with-libunwind Use libunwind frame unwinding support
1398 --without-included-regex don't use included regex; this is the default
1399 on systems with version 2 of the GNU C library
1400 (use with caution on other system)
1401 --with-sysroot=DIR Search for usr/lib et al within DIR.
1402 --with-tclconfig=DIR Directory containing tcl configuration (tclConfig.sh)
1403 --with-tkconfig=DIR Directory containing tk configuration (tkConfig.sh)
1404 --with-tclinclude=DIR Directory where tcl private headers are
1405 --with-tkinclude=DIR Directory where tk private headers are
1406 --with-itclconfig Directory containing itcl configuration (itclConfig.sh)
1407 --with-itkconfig Directory containing itk configuration (itkConfig.sh)
1408 --with-x use the X Window System
1409 --with-libiconv-prefix=DIR search for libiconv in DIR/include and DIR/lib
1411 Some influential environment variables:
1412 CC C compiler command
1413 CFLAGS C compiler flags
1414 LDFLAGS linker flags, e.g. -L<lib dir> if you have libraries in a
1415 nonstandard directory <lib dir>
1416 CPPFLAGS C/C++/Objective C preprocessor flags, e.g. -I<include dir> if
1417 you have headers in a nonstandard directory <include dir>
1419 YACC The `Yet Another C Compiler' implementation to use. Defaults to
1420 the first program found out of: `bison -y', `byacc', `yacc'.
1421 YFLAGS The list of arguments that will be passed by default to $YACC.
1422 This script will default YFLAGS to the empty string to avoid a
1423 default value of `-d' given by some make applications.
1424 XMKMF Path to xmkmf, Makefile generator for X Window System
1426 Use these variables to override the choices made by `configure' or to help
1427 it to find libraries and programs with nonstandard names/locations.
1433 if test "$ac_init_help" = "recursive"; then
1434 # If there are subdirs, report their specific --help.
1435 for ac_dir in : $ac_subdirs_all; do test "x$ac_dir" = x: && continue
1436 test -d $ac_dir || continue
1440 .) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
1442 ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'`
1443 # A ".." for each directory in $ac_dir_suffix.
1444 ac_top_builddir_sub=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,/..,g;s,/,,'`
1445 case $ac_top_builddir_sub in
1446 "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
1447 *) ac_top_build_prefix=$ac_top_builddir_sub/ ;;
1450 ac_abs_top_builddir=$ac_pwd
1451 ac_abs_builddir=$ac_pwd$ac_dir_suffix
1452 # for backward compatibility:
1453 ac_top_builddir=$ac_top_build_prefix
1456 .) # We are building in place.
1458 ac_top_srcdir=$ac_top_builddir_sub
1459 ac_abs_top_srcdir=$ac_pwd ;;
1460 [\\/]* | ?:[\\/]* ) # Absolute name.
1461 ac_srcdir=$srcdir$ac_dir_suffix;
1462 ac_top_srcdir=$srcdir
1463 ac_abs_top_srcdir=$srcdir ;;
1465 ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
1466 ac_top_srcdir=$ac_top_build_prefix$srcdir
1467 ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
1469 ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
1471 cd "$ac_dir" || { ac_status=$?; continue; }
1472 # Check for guested configure.
1473 if test -f $ac_srcdir/configure.gnu; then
1475 $SHELL $ac_srcdir/configure.gnu --help=recursive
1476 elif test -f $ac_srcdir/configure; then
1478 $SHELL $ac_srcdir/configure --help=recursive
1480 echo "$as_me: WARNING: no configuration information is in $ac_dir" >&2
1482 cd "$ac_pwd" || { ac_status=$?; break; }
1486 test -n "$ac_init_help" && exit $ac_status
1487 if $ac_init_version; then
1490 generated by GNU Autoconf 2.59d
1492 Copyright (C) 1992, 1993, 1994, 1995, 1996, 1998, 1999, 2000, 2001,
1493 2002, 2003, 2004, 2005, 2006 Free Software Foundation, Inc.
1494 This configure script is free software; the Free Software Foundation
1495 gives unlimited permission to copy, distribute and modify it.
1499 cat >config.log <<_ACEOF
1500 This file contains any messages produced by compilers while
1501 running configure, to aid debugging if configure makes a mistake.
1503 It was created by $as_me, which was
1504 generated by GNU Autoconf 2.59d. Invocation command line was
1516 hostname = `(hostname || uname -n) 2>/dev/null | sed 1q`
1517 uname -m = `(uname -m) 2>/dev/null || echo unknown`
1518 uname -r = `(uname -r) 2>/dev/null || echo unknown`
1519 uname -s = `(uname -s) 2>/dev/null || echo unknown`
1520 uname -v = `(uname -v) 2>/dev/null || echo unknown`
1522 /usr/bin/uname -p = `(/usr/bin/uname -p) 2>/dev/null || echo unknown`
1523 /bin/uname -X = `(/bin/uname -X) 2>/dev/null || echo unknown`
1525 /bin/arch = `(/bin/arch) 2>/dev/null || echo unknown`
1526 /usr/bin/arch -k = `(/usr/bin/arch -k) 2>/dev/null || echo unknown`
1527 /usr/convex/getsysinfo = `(/usr/convex/getsysinfo) 2>/dev/null || echo unknown`
1528 /usr/bin/hostinfo = `(/usr/bin/hostinfo) 2>/dev/null || echo unknown`
1529 /bin/machine = `(/bin/machine) 2>/dev/null || echo unknown`
1530 /usr/bin/oslevel = `(/usr/bin/oslevel) 2>/dev/null || echo unknown`
1531 /bin/universe = `(/bin/universe) 2>/dev/null || echo unknown`
1535 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1539 test -z "$as_dir" && as_dir=.
1540 echo "PATH: $as_dir"
1556 # Keep a trace of the command line.
1557 # Strip out --no-create and --no-recursion so they do not pile up.
1558 # Strip out --silent because we don't want to record it for future runs.
1559 # Also quote any args containing shell meta-characters.
1560 # Make two passes to allow for proper duplicate-argument suppression.
1565 ac_must_keep_next=false
1571 -no-create | --no-c* | -n | -no-recursion | --no-r*) continue ;;
1572 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
1573 | -silent | --silent | --silen | --sile | --sil)
1576 ac_arg=`echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;;
1579 1) ac_configure_args0="$ac_configure_args0 '$ac_arg'" ;;
1581 ac_configure_args1="$ac_configure_args1 '$ac_arg'"
1582 if test $ac_must_keep_next = true; then
1583 ac_must_keep_next=false # Got value, back to normal.
1586 *=* | --config-cache | -C | -disable-* | --disable-* \
1587 | -enable-* | --enable-* | -gas | --g* | -nfp | --nf* \
1588 | -q | -quiet | --q* | -silent | --sil* | -v | -verb* \
1589 | -with-* | --with-* | -without-* | --without-* | --x)
1590 case "$ac_configure_args0 " in
1591 "$ac_configure_args1"*" '$ac_arg' "* ) continue ;;
1594 -* ) ac_must_keep_next=true ;;
1597 ac_configure_args="$ac_configure_args$ac_sep'$ac_arg'"
1598 # Get rid of the leading space.
1604 $as_unset ac_configure_args0 || test "${ac_configure_args0+set}" != set || { ac_configure_args0=; export ac_configure_args0; }
1605 $as_unset ac_configure_args1 || test "${ac_configure_args1+set}" != set || { ac_configure_args1=; export ac_configure_args1; }
1607 # When interrupted or exit'd, cleanup temporary files, and complete
1608 # config.log. We remove comments because anyway the quotes in there
1609 # would cause problems or look ugly.
1610 # WARNING: Use '\'' to represent an apostrophe within the trap.
1611 # WARNING: Do not start the trap code with a newline, due to a FreeBSD 4.0 bug.
1612 trap 'exit_status=$?
1613 # Save into config.log some information that might help in debugging.
1618 ## ---------------- ##
1619 ## Cache variables. ##
1620 ## ---------------- ##
1623 # The following way of writing the cache mishandles newlines in values,
1625 for ac_var in `(set) 2>&1 | sed -n '\''s/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'\''`; do
1626 eval ac_val=\$$ac_var
1630 *_cv_*) { echo "$as_me:$LINENO: WARNING: Cache variable $ac_var contains a newline." >&5
1631 echo "$as_me: WARNING: Cache variable $ac_var contains a newline." >&2;} ;;
1634 _ | IFS | as_nl) ;; #(
1635 *) $as_unset $ac_var ;;
1640 case $as_nl`(ac_space='\'' '\''; set) 2>&1` in #(
1641 *${as_nl}ac_space=\ *)
1643 "s/'\''/'\''\\\\'\'''\''/g;
1644 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\''\\2'\''/p"
1647 sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
1655 ## ----------------- ##
1656 ## Output variables. ##
1657 ## ----------------- ##
1660 for ac_var in $ac_subst_vars
1662 eval ac_val=\$$ac_var
1663 echo "$ac_var='\''$ac_val'\''"
1667 if test -n "$ac_subst_files"; then
1669 ## ------------------- ##
1670 ## File substitutions. ##
1671 ## ------------------- ##
1674 for ac_var in $ac_subst_files
1676 eval ac_val=\$$ac_var
1677 echo "$ac_var='\''$ac_val'\''"
1682 if test -s confdefs.h; then
1692 test "$ac_signal" != 0 &&
1693 echo "$as_me: caught signal $ac_signal"
1694 echo "$as_me: exit $exit_status"
1696 rm -f core *.core core.conftest.* &&
1697 rm -f -r conftest* confdefs* conf$$* $ac_clean_files &&
1700 for ac_signal in 1 2 13 15; do
1701 trap 'ac_signal='$ac_signal'; { (exit 1); exit 1; }' $ac_signal
1705 # confdefs.h avoids OS command line length limits that DEFS can exceed.
1706 rm -f -r conftest* confdefs.h
1708 # Predefined preprocessor variables.
1710 cat >>confdefs.h <<_ACEOF
1711 #define PACKAGE_NAME "$PACKAGE_NAME"
1715 cat >>confdefs.h <<_ACEOF
1716 #define PACKAGE_TARNAME "$PACKAGE_TARNAME"
1720 cat >>confdefs.h <<_ACEOF
1721 #define PACKAGE_VERSION "$PACKAGE_VERSION"
1725 cat >>confdefs.h <<_ACEOF
1726 #define PACKAGE_STRING "$PACKAGE_STRING"
1730 cat >>confdefs.h <<_ACEOF
1731 #define PACKAGE_BUGREPORT "$PACKAGE_BUGREPORT"
1735 # Let the site file select an alternate cache file if it wants to.
1736 # Prefer explicitly selected file to automatically selected ones.
1737 if test -n "$CONFIG_SITE"; then
1738 set x "$CONFIG_SITE"
1739 elif test "x$prefix" != xNONE; then
1740 set x "$prefix/share/config.site" "$prefix/etc/config.site"
1742 set x "$ac_default_prefix/share/config.site" \
1743 "$ac_default_prefix/etc/config.site"
1748 if test -r "$ac_site_file"; then
1749 { echo "$as_me:$LINENO: loading site script $ac_site_file" >&5
1750 echo "$as_me: loading site script $ac_site_file" >&6;}
1751 sed 's/^/| /' "$ac_site_file" >&5
1756 if test -r "$cache_file"; then
1757 # Some versions of bash will fail to source /dev/null (special
1758 # files actually), so we avoid doing that.
1759 if test -f "$cache_file"; then
1760 { echo "$as_me:$LINENO: loading cache $cache_file" >&5
1761 echo "$as_me: loading cache $cache_file" >&6;}
1763 [\\/]* | ?:[\\/]* ) . $cache_file;;
1764 *) . ./$cache_file;;
1768 { echo "$as_me:$LINENO: creating cache $cache_file" >&5
1769 echo "$as_me: creating cache $cache_file" >&6;}
1773 # Check that the precious variables saved in the cache have kept the same
1775 ac_cache_corrupted=false
1776 for ac_var in $ac_precious_vars; do
1777 eval ac_old_set=\$ac_cv_env_${ac_var}_set
1778 eval ac_new_set=\$ac_env_${ac_var}_set
1779 eval ac_old_val=\$ac_cv_env_${ac_var}_value
1780 eval ac_new_val=\$ac_env_${ac_var}_value
1781 case $ac_old_set,$ac_new_set in
1783 { echo "$as_me:$LINENO: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&5
1784 echo "$as_me: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&2;}
1785 ac_cache_corrupted=: ;;
1787 { echo "$as_me:$LINENO: error: \`$ac_var' was not set in the previous run" >&5
1788 echo "$as_me: error: \`$ac_var' was not set in the previous run" >&2;}
1789 ac_cache_corrupted=: ;;
1792 if test "x$ac_old_val" != "x$ac_new_val"; then
1793 { echo "$as_me:$LINENO: error: \`$ac_var' has changed since the previous run:" >&5
1794 echo "$as_me: error: \`$ac_var' has changed since the previous run:" >&2;}
1795 { echo "$as_me:$LINENO: former value: $ac_old_val" >&5
1796 echo "$as_me: former value: $ac_old_val" >&2;}
1797 { echo "$as_me:$LINENO: current value: $ac_new_val" >&5
1798 echo "$as_me: current value: $ac_new_val" >&2;}
1799 ac_cache_corrupted=:
1802 # Pass precious variables to config.status.
1803 if test "$ac_new_set" = set; then
1805 *\'*) ac_arg=$ac_var=`echo "$ac_new_val" | sed "s/'/'\\\\\\\\''/g"` ;;
1806 *) ac_arg=$ac_var=$ac_new_val ;;
1808 case " $ac_configure_args " in
1809 *" '$ac_arg' "*) ;; # Avoid dups. Use of quotes ensures accuracy.
1810 *) ac_configure_args="$ac_configure_args '$ac_arg'" ;;
1814 if $ac_cache_corrupted; then
1815 { echo "$as_me:$LINENO: error: changes in the environment can compromise the build" >&5
1816 echo "$as_me: error: changes in the environment can compromise the build" >&2;}
1817 { { echo "$as_me:$LINENO: error: run \`make distclean' and/or \`rm $cache_file' and start over" >&5
1818 echo "$as_me: error: run \`make distclean' and/or \`rm $cache_file' and start over" >&2;}
1819 { (exit 1); exit 1; }; }
1839 ac_cpp='$CPP $CPPFLAGS'
1840 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
1841 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
1842 ac_compiler_gnu=$ac_cv_c_compiler_gnu
1845 ac_config_headers="$ac_config_headers config.h:config.in"
1847 { echo "$as_me:$LINENO: checking whether to enable maintainer-specific portions of Makefiles" >&5
1848 echo $ECHO_N "checking whether to enable maintainer-specific portions of Makefiles... $ECHO_C" >&6; }
1849 # Check whether --enable-maintainer-mode was given.
1850 if test "${enable_maintainer_mode+set}" = set; then
1851 enableval=$enable_maintainer_mode; USE_MAINTAINER_MODE=$enableval
1853 USE_MAINTAINER_MODE=no
1856 { echo "$as_me:$LINENO: result: $USE_MAINTAINER_MODE" >&5
1857 echo "${ECHO_T}$USE_MAINTAINER_MODE" >&6; }
1860 if test $USE_MAINTAINER_MODE = yes; then
1861 MAINTAINER_MODE_TRUE=
1862 MAINTAINER_MODE_FALSE='#'
1864 MAINTAINER_MODE_TRUE='#'
1865 MAINTAINER_MODE_FALSE=
1868 MAINT=$MAINTAINER_MODE_TRUE
1873 ac_cpp='$CPP $CPPFLAGS'
1874 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
1875 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
1876 ac_compiler_gnu=$ac_cv_c_compiler_gnu
1877 if test -n "$ac_tool_prefix"; then
1878 # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args.
1879 set dummy ${ac_tool_prefix}gcc; ac_word=$2
1880 { echo "$as_me:$LINENO: checking for $ac_word" >&5
1881 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
1882 if test "${ac_cv_prog_CC+set}" = set; then
1883 echo $ECHO_N "(cached) $ECHO_C" >&6
1885 if test -n "$CC"; then
1886 ac_cv_prog_CC="$CC" # Let the user override the test.
1888 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1892 test -z "$as_dir" && as_dir=.
1893 for ac_exec_ext in '' $ac_executable_extensions; do
1894 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
1895 ac_cv_prog_CC="${ac_tool_prefix}gcc"
1896 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
1906 if test -n "$CC"; then
1907 { echo "$as_me:$LINENO: result: $CC" >&5
1908 echo "${ECHO_T}$CC" >&6; }
1910 { echo "$as_me:$LINENO: result: no" >&5
1911 echo "${ECHO_T}no" >&6; }
1916 if test -z "$ac_cv_prog_CC"; then
1918 # Extract the first word of "gcc", so it can be a program name with args.
1919 set dummy gcc; ac_word=$2
1920 { echo "$as_me:$LINENO: checking for $ac_word" >&5
1921 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
1922 if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
1923 echo $ECHO_N "(cached) $ECHO_C" >&6
1925 if test -n "$ac_ct_CC"; then
1926 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
1928 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1932 test -z "$as_dir" && as_dir=.
1933 for ac_exec_ext in '' $ac_executable_extensions; do
1934 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
1935 ac_cv_prog_ac_ct_CC="gcc"
1936 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
1945 ac_ct_CC=$ac_cv_prog_ac_ct_CC
1946 if test -n "$ac_ct_CC"; then
1947 { echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
1948 echo "${ECHO_T}$ac_ct_CC" >&6; }
1950 { echo "$as_me:$LINENO: result: no" >&5
1951 echo "${ECHO_T}no" >&6; }
1954 if test "x$ac_ct_CC" = x; then
1957 case $cross_compiling:$ac_tool_warned in
1959 { echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
1960 whose name does not start with the host triplet. If you think this
1961 configuration is useful to you, please write to autoconf@gnu.org." >&5
1962 echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
1963 whose name does not start with the host triplet. If you think this
1964 configuration is useful to you, please write to autoconf@gnu.org." >&2;}
1965 ac_tool_warned=yes ;;
1973 if test -z "$CC"; then
1974 if test -n "$ac_tool_prefix"; then
1975 # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args.
1976 set dummy ${ac_tool_prefix}cc; ac_word=$2
1977 { echo "$as_me:$LINENO: checking for $ac_word" >&5
1978 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
1979 if test "${ac_cv_prog_CC+set}" = set; then
1980 echo $ECHO_N "(cached) $ECHO_C" >&6
1982 if test -n "$CC"; then
1983 ac_cv_prog_CC="$CC" # Let the user override the test.
1985 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1989 test -z "$as_dir" && as_dir=.
1990 for ac_exec_ext in '' $ac_executable_extensions; do
1991 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
1992 ac_cv_prog_CC="${ac_tool_prefix}cc"
1993 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2003 if test -n "$CC"; then
2004 { echo "$as_me:$LINENO: result: $CC" >&5
2005 echo "${ECHO_T}$CC" >&6; }
2007 { echo "$as_me:$LINENO: result: no" >&5
2008 echo "${ECHO_T}no" >&6; }
2014 if test -z "$CC"; then
2015 # Extract the first word of "cc", so it can be a program name with args.
2016 set dummy cc; ac_word=$2
2017 { echo "$as_me:$LINENO: checking for $ac_word" >&5
2018 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
2019 if test "${ac_cv_prog_CC+set}" = set; then
2020 echo $ECHO_N "(cached) $ECHO_C" >&6
2022 if test -n "$CC"; then
2023 ac_cv_prog_CC="$CC" # Let the user override the test.
2026 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2030 test -z "$as_dir" && as_dir=.
2031 for ac_exec_ext in '' $ac_executable_extensions; do
2032 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
2033 if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then
2034 ac_prog_rejected=yes
2038 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2045 if test $ac_prog_rejected = yes; then
2046 # We found a bogon in the path, so make sure we never use it.
2047 set dummy $ac_cv_prog_CC
2049 if test $# != 0; then
2050 # We chose a different compiler from the bogus one.
2051 # However, it has the same basename, so the bogon will be chosen
2052 # first if we set CC to just the basename; use the full file name.
2054 ac_cv_prog_CC="$as_dir/$ac_word${1+' '}$@"
2060 if test -n "$CC"; then
2061 { echo "$as_me:$LINENO: result: $CC" >&5
2062 echo "${ECHO_T}$CC" >&6; }
2064 { echo "$as_me:$LINENO: result: no" >&5
2065 echo "${ECHO_T}no" >&6; }
2070 if test -z "$CC"; then
2071 if test -n "$ac_tool_prefix"; then
2072 for ac_prog in cl.exe
2074 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
2075 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
2076 { echo "$as_me:$LINENO: checking for $ac_word" >&5
2077 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
2078 if test "${ac_cv_prog_CC+set}" = set; then
2079 echo $ECHO_N "(cached) $ECHO_C" >&6
2081 if test -n "$CC"; then
2082 ac_cv_prog_CC="$CC" # Let the user override the test.
2084 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2088 test -z "$as_dir" && as_dir=.
2089 for ac_exec_ext in '' $ac_executable_extensions; do
2090 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
2091 ac_cv_prog_CC="$ac_tool_prefix$ac_prog"
2092 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2102 if test -n "$CC"; then
2103 { echo "$as_me:$LINENO: result: $CC" >&5
2104 echo "${ECHO_T}$CC" >&6; }
2106 { echo "$as_me:$LINENO: result: no" >&5
2107 echo "${ECHO_T}no" >&6; }
2111 test -n "$CC" && break
2114 if test -z "$CC"; then
2116 for ac_prog in cl.exe
2118 # Extract the first word of "$ac_prog", so it can be a program name with args.
2119 set dummy $ac_prog; ac_word=$2
2120 { echo "$as_me:$LINENO: checking for $ac_word" >&5
2121 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
2122 if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
2123 echo $ECHO_N "(cached) $ECHO_C" >&6
2125 if test -n "$ac_ct_CC"; then
2126 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
2128 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2132 test -z "$as_dir" && as_dir=.
2133 for ac_exec_ext in '' $ac_executable_extensions; do
2134 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
2135 ac_cv_prog_ac_ct_CC="$ac_prog"
2136 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2145 ac_ct_CC=$ac_cv_prog_ac_ct_CC
2146 if test -n "$ac_ct_CC"; then
2147 { echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
2148 echo "${ECHO_T}$ac_ct_CC" >&6; }
2150 { echo "$as_me:$LINENO: result: no" >&5
2151 echo "${ECHO_T}no" >&6; }
2155 test -n "$ac_ct_CC" && break
2158 if test "x$ac_ct_CC" = x; then
2161 case $cross_compiling:$ac_tool_warned in
2163 { echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
2164 whose name does not start with the host triplet. If you think this
2165 configuration is useful to you, please write to autoconf@gnu.org." >&5
2166 echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
2167 whose name does not start with the host triplet. If you think this
2168 configuration is useful to you, please write to autoconf@gnu.org." >&2;}
2169 ac_tool_warned=yes ;;
2178 test -z "$CC" && { { echo "$as_me:$LINENO: error: no acceptable C compiler found in \$PATH
2179 See \`config.log' for more details." >&5
2180 echo "$as_me: error: no acceptable C compiler found in \$PATH
2181 See \`config.log' for more details." >&2;}
2182 { (exit 1); exit 1; }; }
2184 # Provide some information about the compiler.
2185 echo "$as_me:$LINENO: checking for C compiler version" >&5
2186 ac_compiler=`set X $ac_compile; echo $2`
2187 { (eval echo "$as_me:$LINENO: \"$ac_compiler --version >&5\"") >&5
2188 (eval $ac_compiler --version >&5) 2>&5
2190 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2191 (exit $ac_status); }
2192 { (eval echo "$as_me:$LINENO: \"$ac_compiler -v >&5\"") >&5
2193 (eval $ac_compiler -v >&5) 2>&5
2195 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2196 (exit $ac_status); }
2197 { (eval echo "$as_me:$LINENO: \"$ac_compiler -V >&5\"") >&5
2198 (eval $ac_compiler -V >&5) 2>&5
2200 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2201 (exit $ac_status); }
2204 # List of possible output files. We want to start from the most likely,
2205 # but we have to check foo.exe before foo, because Cygwin `test -f' looks
2206 # also for foo.exe. b.out is created by i960 compilers.
2207 # As a last resort, we also try wildcards: `conftest.*' and `a.*'.
2208 # But we are not allowed to rm a.*, and we do not want always remove
2209 # conftest.*, so we will list them literally, when appropriate.
2210 ac_outfiles="a_out.exe a.out conftest.exe conftest a.exe b.out"
2212 # The IRIX 6 linker writes into existing files which may not be
2213 # executable, retaining their permissions. Remove them first so a
2214 # subsequent execution test works.
2215 rm -f $ac_outfiles conftest.*
2217 cat >conftest.$ac_ext <<_ACEOF
2220 cat confdefs.h >>conftest.$ac_ext
2221 cat >>conftest.$ac_ext <<_ACEOF
2222 /* end confdefs.h. */
2233 ac_clean_files_save=$ac_clean_files
2234 ac_clean_files="$ac_clean_files $ac_outfiles"
2236 # The following tests should remove their output except files matching conftest.*.
2237 # Try to create an executable without -o first, disregard a.out.
2238 # It will help us diagnose broken compilers, and finding out an intuition
2240 { echo "$as_me:$LINENO: checking for C compiler default output file name" >&5
2241 echo $ECHO_N "checking for C compiler default output file name... $ECHO_C" >&6; }
2242 ac_link_default=`echo "$ac_link" | sed 's/ -o *conftest[^ ]*//'`
2244 if { (eval echo "$as_me:$LINENO: \"$ac_link_default\"") >&5
2245 (eval $ac_link_default) 2>&5
2247 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2248 (exit $ac_status); }; then
2249 for ac_file in $ac_outfiles a.* conftest.* NO
2251 test -f "$ac_file" || continue
2253 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.o | *.obj ) ;;
2257 if test "$ac_file" = NO; then
2258 { { echo "$as_me:$LINENO: error: no output file found
2259 See \`config.log' for more details." >&5
2260 echo "$as_me: error: no output file found
2261 See \`config.log' for more details." >&2;}
2262 { (exit 1); exit 1; }; }
2267 echo "$as_me: failed program was:" >&5
2268 sed 's/^/| /' conftest.$ac_ext >&5
2270 { { echo "$as_me:$LINENO: error: C compiler cannot create executables
2271 See \`config.log' for more details." >&5
2272 echo "$as_me: error: C compiler cannot create executables
2273 See \`config.log' for more details." >&2;}
2274 { (exit 77); exit 77; }; }
2277 { echo "$as_me:$LINENO: result: $ac_file" >&5
2278 echo "${ECHO_T}$ac_file" >&6; }
2279 # Check that the compiler produces executables we can run. If not, either
2280 # the compiler is broken, or we cross compile.
2281 { echo "$as_me:$LINENO: checking whether the C compiler works" >&5
2282 echo $ECHO_N "checking whether the C compiler works... $ECHO_C" >&6; }
2283 # FIXME: These cross compiler hacks should be removed for Autoconf 3.0
2284 # If not cross compiling, check that we can run a simple program.
2285 if test "$cross_compiling" != yes; then
2286 if { ac_try='./$ac_file'
2287 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2290 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2291 (exit $ac_status); }; }; then
2294 if test "$cross_compiling" = maybe; then
2297 { { echo "$as_me:$LINENO: error: cannot run C compiled programs.
2298 If you meant to cross compile, use \`--host'.
2299 See \`config.log' for more details." >&5
2300 echo "$as_me: error: cannot run C compiled programs.
2301 If you meant to cross compile, use \`--host'.
2302 See \`config.log' for more details." >&2;}
2303 { (exit 1); exit 1; }; }
2307 { echo "$as_me:$LINENO: result: yes" >&5
2308 echo "${ECHO_T}yes" >&6; }
2310 # Clean up; list also $ac_file, in case it matched a wildcard entry.
2311 rm -f $ac_outfiles $ac_file
2313 { echo "$as_me:$LINENO: checking whether we are cross compiling" >&5
2314 echo $ECHO_N "checking whether we are cross compiling... $ECHO_C" >&6; }
2315 { echo "$as_me:$LINENO: result: $cross_compiling" >&5
2316 echo "${ECHO_T}$cross_compiling" >&6; }
2318 { echo "$as_me:$LINENO: checking for suffix of executables" >&5
2319 echo $ECHO_N "checking for suffix of executables... $ECHO_C" >&6; }
2320 if test "${ac_cv_exeext+set}" = set; then
2321 echo $ECHO_N "(cached) $ECHO_C" >&6
2323 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
2324 (eval $ac_link) 2>&5
2326 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2327 (exit $ac_status); }; then
2328 # If both `conftest.exe' and `conftest' are `present' (well, observable),
2329 # catch `conftest.exe'. For instance with Cygwin, `ls conftest' will
2330 # work properly (i.e., refer to `conftest.exe'), while it won't with `rm'.
2331 for ac_file in conftest.exe conftest conftest.* NO; do
2332 test -f "$ac_file" || continue
2334 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.o | *.obj ) ;;
2335 *.* ) ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
2340 if test "$ac_file" = NO; then
2341 { { echo "$as_me:$LINENO: error: cannot compute suffix of executables: no output file found
2342 See \`config.log' for more details." >&5
2343 echo "$as_me: error: cannot compute suffix of executables: no output file found
2344 See \`config.log' for more details." >&2;}
2345 { (exit 1); exit 1; }; }
2348 # Clean up; list also $ac_file, in case it matched conftest.*.
2349 rm -f $ac_outfiles $ac_file
2352 { { echo "$as_me:$LINENO: error: cannot compute suffix of executables: cannot compile and link
2353 See \`config.log' for more details." >&5
2354 echo "$as_me: error: cannot compute suffix of executables: cannot compile and link
2355 See \`config.log' for more details." >&2;}
2356 { (exit 1); exit 1; }; }
2362 { echo "$as_me:$LINENO: result: $ac_cv_exeext" >&5
2363 echo "${ECHO_T}$ac_cv_exeext" >&6; }
2364 EXEEXT=$ac_cv_exeext
2368 ac_clean_files=$ac_clean_files_save
2370 { echo "$as_me:$LINENO: checking for suffix of object files" >&5
2371 echo $ECHO_N "checking for suffix of object files... $ECHO_C" >&6; }
2372 if test "${ac_cv_objext+set}" = set; then
2373 echo $ECHO_N "(cached) $ECHO_C" >&6
2375 rm -f conftest.o conftest.obj
2376 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2377 (eval $ac_compile) 2>&5
2379 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2380 (exit $ac_status); }; then
2381 for ac_file in conftest.o conftest.obj conftest.*; do
2382 test -f "$ac_file" || continue;
2384 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf ) ;;
2385 *) ac_cv_objext=`expr "$ac_file" : '.*\.\(.*\)'`
2390 echo "$as_me: failed program was:" >&5
2391 sed 's/^/| /' conftest.$ac_ext >&5
2393 { { echo "$as_me:$LINENO: error: cannot compute suffix of object files: cannot compile
2394 See \`config.log' for more details." >&5
2395 echo "$as_me: error: cannot compute suffix of object files: cannot compile
2396 See \`config.log' for more details." >&2;}
2397 { (exit 1); exit 1; }; }
2401 { echo "$as_me:$LINENO: result: $ac_cv_objext" >&5
2402 echo "${ECHO_T}$ac_cv_objext" >&6; }
2403 OBJEXT=$ac_cv_objext
2408 { echo "$as_me:$LINENO: checking whether we are using the GNU C compiler" >&5
2409 echo $ECHO_N "checking whether we are using the GNU C compiler... $ECHO_C" >&6; }
2410 if test "${ac_cv_c_compiler_gnu+set}" = set; then
2411 echo $ECHO_N "(cached) $ECHO_C" >&6
2413 cat >conftest.$ac_ext <<_ACEOF
2416 cat confdefs.h >>conftest.$ac_ext
2417 cat >>conftest.$ac_ext <<_ACEOF
2418 /* end confdefs.h. */
2431 rm -f conftest.$ac_objext
2432 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2433 (eval $ac_compile) 2>conftest.er1
2435 grep -v '^ *+' conftest.er1 >conftest.err
2437 cat conftest.err >&5
2438 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2439 (exit $ac_status); } &&
2440 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
2441 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2444 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2445 (exit $ac_status); }; } &&
2446 { ac_try='test -s conftest.$ac_objext'
2447 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2450 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2451 (exit $ac_status); }; }; then
2454 echo "$as_me: failed program was:" >&5
2455 sed 's/^/| /' conftest.$ac_ext >&5
2460 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
2461 ac_cv_c_compiler_gnu=$ac_compiler_gnu
2464 { echo "$as_me:$LINENO: result: $ac_cv_c_compiler_gnu" >&5
2465 echo "${ECHO_T}$ac_cv_c_compiler_gnu" >&6; }
2466 GCC=`test $ac_compiler_gnu = yes && echo yes`
2467 ac_test_CFLAGS=${CFLAGS+set}
2468 ac_save_CFLAGS=$CFLAGS
2469 { echo "$as_me:$LINENO: checking whether $CC accepts -g" >&5
2470 echo $ECHO_N "checking whether $CC accepts -g... $ECHO_C" >&6; }
2471 if test "${ac_cv_prog_cc_g+set}" = set; then
2472 echo $ECHO_N "(cached) $ECHO_C" >&6
2474 ac_save_c_werror_flag=$ac_c_werror_flag
2475 ac_c_werror_flag=yes
2478 cat >conftest.$ac_ext <<_ACEOF
2481 cat confdefs.h >>conftest.$ac_ext
2482 cat >>conftest.$ac_ext <<_ACEOF
2483 /* end confdefs.h. */
2493 rm -f conftest.$ac_objext
2494 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2495 (eval $ac_compile) 2>conftest.er1
2497 grep -v '^ *+' conftest.er1 >conftest.err
2499 cat conftest.err >&5
2500 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2501 (exit $ac_status); } &&
2502 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
2503 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2506 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2507 (exit $ac_status); }; } &&
2508 { ac_try='test -s conftest.$ac_objext'
2509 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2512 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2513 (exit $ac_status); }; }; then
2516 echo "$as_me: failed program was:" >&5
2517 sed 's/^/| /' conftest.$ac_ext >&5
2520 cat >conftest.$ac_ext <<_ACEOF
2523 cat confdefs.h >>conftest.$ac_ext
2524 cat >>conftest.$ac_ext <<_ACEOF
2525 /* end confdefs.h. */
2535 rm -f conftest.$ac_objext
2536 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2537 (eval $ac_compile) 2>conftest.er1
2539 grep -v '^ *+' conftest.er1 >conftest.err
2541 cat conftest.err >&5
2542 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2543 (exit $ac_status); } &&
2544 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
2545 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2548 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2549 (exit $ac_status); }; } &&
2550 { ac_try='test -s conftest.$ac_objext'
2551 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2554 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2555 (exit $ac_status); }; }; then
2558 echo "$as_me: failed program was:" >&5
2559 sed 's/^/| /' conftest.$ac_ext >&5
2561 ac_c_werror_flag=$ac_save_c_werror_flag
2563 cat >conftest.$ac_ext <<_ACEOF
2566 cat confdefs.h >>conftest.$ac_ext
2567 cat >>conftest.$ac_ext <<_ACEOF
2568 /* end confdefs.h. */
2578 rm -f conftest.$ac_objext
2579 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2580 (eval $ac_compile) 2>conftest.er1
2582 grep -v '^ *+' conftest.er1 >conftest.err
2584 cat conftest.err >&5
2585 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2586 (exit $ac_status); } &&
2587 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
2588 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2591 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2592 (exit $ac_status); }; } &&
2593 { ac_try='test -s conftest.$ac_objext'
2594 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2597 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2598 (exit $ac_status); }; }; then
2601 echo "$as_me: failed program was:" >&5
2602 sed 's/^/| /' conftest.$ac_ext >&5
2607 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
2610 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
2613 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
2614 ac_c_werror_flag=$ac_save_c_werror_flag
2616 { echo "$as_me:$LINENO: result: $ac_cv_prog_cc_g" >&5
2617 echo "${ECHO_T}$ac_cv_prog_cc_g" >&6; }
2618 if test "$ac_test_CFLAGS" = set; then
2619 CFLAGS=$ac_save_CFLAGS
2620 elif test $ac_cv_prog_cc_g = yes; then
2621 if test "$GCC" = yes; then
2627 if test "$GCC" = yes; then
2633 { echo "$as_me:$LINENO: checking for $CC option to accept ISO C89" >&5
2634 echo $ECHO_N "checking for $CC option to accept ISO C89... $ECHO_C" >&6; }
2635 if test "${ac_cv_prog_cc_c89+set}" = set; then
2636 echo $ECHO_N "(cached) $ECHO_C" >&6
2638 ac_cv_prog_cc_c89=no
2640 cat >conftest.$ac_ext <<_ACEOF
2643 cat confdefs.h >>conftest.$ac_ext
2644 cat >>conftest.$ac_ext <<_ACEOF
2645 /* end confdefs.h. */
2648 #include <sys/types.h>
2649 #include <sys/stat.h>
2650 /* Most of the following tests are stolen from RCS 5.7's src/conf.sh. */
2651 struct buf { int x; };
2652 FILE * (*rcsopen) (struct buf *, struct stat *, int);
2653 static char *e (p, i)
2659 static char *f (char * (*g) (char **, int), char **p, ...)
2664 s = g (p, va_arg (v,int));
2669 /* OSF 4.0 Compaq cc is some sort of almost-ANSI by default. It has
2670 function prototypes and stuff, but not '\xHH' hex character constants.
2671 These don't provoke an error unfortunately, instead are silently treated
2672 as 'x'. The following induces an error, until -std is added to get
2673 proper ANSI mode. Curiously '\x00'!='x' always comes out true, for an
2674 array size at least. It's necessary to write '\x00'==0 to get something
2675 that's true only with -std. */
2676 int osf4_cc_array ['\x00' == 0 ? 1 : -1];
2678 int test (int i, double x);
2679 struct s1 {int (*f) (int a);};
2680 struct s2 {int (*f) (double a);};
2681 int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
2687 return f (e, argv, 0) != argv[0] || f (e, argv, 1) != argv[1];
2692 for ac_arg in '' -qlanglvl=extc89 -qlanglvl=ansi -std \
2693 -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
2695 CC="$ac_save_CC $ac_arg"
2696 rm -f conftest.$ac_objext
2697 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2698 (eval $ac_compile) 2>conftest.er1
2700 grep -v '^ *+' conftest.er1 >conftest.err
2702 cat conftest.err >&5
2703 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2704 (exit $ac_status); } &&
2705 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
2706 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2709 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2710 (exit $ac_status); }; } &&
2711 { ac_try='test -s conftest.$ac_objext'
2712 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2715 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2716 (exit $ac_status); }; }; then
2717 ac_cv_prog_cc_c89=$ac_arg
2719 echo "$as_me: failed program was:" >&5
2720 sed 's/^/| /' conftest.$ac_ext >&5
2725 rm -f conftest.err conftest.$ac_objext
2726 test "x$ac_cv_prog_cc_c89" != "xno" && break
2728 rm -f conftest.$ac_ext
2733 case "x$ac_cv_prog_cc_c89" in
2735 { echo "$as_me:$LINENO: result: none needed" >&5
2736 echo "${ECHO_T}none needed" >&6; } ;;
2738 { echo "$as_me:$LINENO: result: unsupported" >&5
2739 echo "${ECHO_T}unsupported" >&6; } ;;
2741 CC="$CC $ac_cv_prog_cc_c89"
2742 { echo "$as_me:$LINENO: result: $ac_cv_prog_cc_c89" >&5
2743 echo "${ECHO_T}$ac_cv_prog_cc_c89" >&6; } ;;
2748 ac_cpp='$CPP $CPPFLAGS'
2749 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2750 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2751 ac_compiler_gnu=$ac_cv_c_compiler_gnu
2754 cat >>confdefs.h <<\_ACEOF
2755 #define _GNU_SOURCE 1
2761 ac_cpp='$CPP $CPPFLAGS'
2762 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2763 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2764 ac_compiler_gnu=$ac_cv_c_compiler_gnu
2765 { echo "$as_me:$LINENO: checking how to run the C preprocessor" >&5
2766 echo $ECHO_N "checking how to run the C preprocessor... $ECHO_C" >&6; }
2767 # On Suns, sometimes $CPP names a directory.
2768 if test -n "$CPP" && test -d "$CPP"; then
2771 if test -z "$CPP"; then
2772 if test "${ac_cv_prog_CPP+set}" = set; then
2773 echo $ECHO_N "(cached) $ECHO_C" >&6
2775 # Double quotes because CPP needs to be expanded
2776 for CPP in "$CC -E" "$CC -E -traditional-cpp" "/lib/cpp"
2779 for ac_c_preproc_warn_flag in '' yes
2781 # Use a header file that comes with gcc, so configuring glibc
2782 # with a fresh cross-compiler works.
2783 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
2784 # <limits.h> exists even on freestanding compilers.
2785 # On the NeXT, cc -E runs the code through the compiler's parser,
2786 # not just through cpp. "Syntax error" is here to catch this case.
2787 cat >conftest.$ac_ext <<_ACEOF
2790 cat confdefs.h >>conftest.$ac_ext
2791 cat >>conftest.$ac_ext <<_ACEOF
2792 /* end confdefs.h. */
2794 # include <limits.h>
2796 # include <assert.h>
2800 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
2801 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
2803 grep -v '^ *+' conftest.er1 >conftest.err
2805 cat conftest.err >&5
2806 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2807 (exit $ac_status); } >/dev/null; then
2808 if test -s conftest.err; then
2809 ac_cpp_err=$ac_c_preproc_warn_flag
2810 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
2817 if test -z "$ac_cpp_err"; then
2820 echo "$as_me: failed program was:" >&5
2821 sed 's/^/| /' conftest.$ac_ext >&5
2823 # Broken: fails on valid input.
2827 rm -f conftest.err conftest.$ac_ext
2829 # OK, works on sane cases. Now check whether nonexistent headers
2830 # can be detected and how.
2831 cat >conftest.$ac_ext <<_ACEOF
2834 cat confdefs.h >>conftest.$ac_ext
2835 cat >>conftest.$ac_ext <<_ACEOF
2836 /* end confdefs.h. */
2837 #include <ac_nonexistent.h>
2839 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
2840 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
2842 grep -v '^ *+' conftest.er1 >conftest.err
2844 cat conftest.err >&5
2845 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2846 (exit $ac_status); } >/dev/null; then
2847 if test -s conftest.err; then
2848 ac_cpp_err=$ac_c_preproc_warn_flag
2849 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
2856 if test -z "$ac_cpp_err"; then
2857 # Broken: success on invalid input.
2860 echo "$as_me: failed program was:" >&5
2861 sed 's/^/| /' conftest.$ac_ext >&5
2863 # Passes both tests.
2868 rm -f conftest.err conftest.$ac_ext
2871 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
2872 rm -f conftest.err conftest.$ac_ext
2873 if $ac_preproc_ok; then
2885 { echo "$as_me:$LINENO: result: $CPP" >&5
2886 echo "${ECHO_T}$CPP" >&6; }
2888 for ac_c_preproc_warn_flag in '' yes
2890 # Use a header file that comes with gcc, so configuring glibc
2891 # with a fresh cross-compiler works.
2892 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
2893 # <limits.h> exists even on freestanding compilers.
2894 # On the NeXT, cc -E runs the code through the compiler's parser,
2895 # not just through cpp. "Syntax error" is here to catch this case.
2896 cat >conftest.$ac_ext <<_ACEOF
2899 cat confdefs.h >>conftest.$ac_ext
2900 cat >>conftest.$ac_ext <<_ACEOF
2901 /* end confdefs.h. */
2903 # include <limits.h>
2905 # include <assert.h>
2909 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
2910 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
2912 grep -v '^ *+' conftest.er1 >conftest.err
2914 cat conftest.err >&5
2915 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2916 (exit $ac_status); } >/dev/null; then
2917 if test -s conftest.err; then
2918 ac_cpp_err=$ac_c_preproc_warn_flag
2919 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
2926 if test -z "$ac_cpp_err"; then
2929 echo "$as_me: failed program was:" >&5
2930 sed 's/^/| /' conftest.$ac_ext >&5
2932 # Broken: fails on valid input.
2936 rm -f conftest.err conftest.$ac_ext
2938 # OK, works on sane cases. Now check whether nonexistent headers
2939 # can be detected and how.
2940 cat >conftest.$ac_ext <<_ACEOF
2943 cat confdefs.h >>conftest.$ac_ext
2944 cat >>conftest.$ac_ext <<_ACEOF
2945 /* end confdefs.h. */
2946 #include <ac_nonexistent.h>
2948 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
2949 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
2951 grep -v '^ *+' conftest.er1 >conftest.err
2953 cat conftest.err >&5
2954 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2955 (exit $ac_status); } >/dev/null; then
2956 if test -s conftest.err; then
2957 ac_cpp_err=$ac_c_preproc_warn_flag
2958 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
2965 if test -z "$ac_cpp_err"; then
2966 # Broken: success on invalid input.
2969 echo "$as_me: failed program was:" >&5
2970 sed 's/^/| /' conftest.$ac_ext >&5
2972 # Passes both tests.
2977 rm -f conftest.err conftest.$ac_ext
2980 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
2981 rm -f conftest.err conftest.$ac_ext
2982 if $ac_preproc_ok; then
2985 { { echo "$as_me:$LINENO: error: C preprocessor \"$CPP\" fails sanity check
2986 See \`config.log' for more details." >&5
2987 echo "$as_me: error: C preprocessor \"$CPP\" fails sanity check
2988 See \`config.log' for more details." >&2;}
2989 { (exit 1); exit 1; }; }
2993 ac_cpp='$CPP $CPPFLAGS'
2994 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2995 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2996 ac_compiler_gnu=$ac_cv_c_compiler_gnu
2999 { echo "$as_me:$LINENO: checking for grep that handles long lines and -e" >&5
3000 echo $ECHO_N "checking for grep that handles long lines and -e... $ECHO_C" >&6; }
3001 if test "${ac_cv_path_GREP+set}" = set; then
3002 echo $ECHO_N "(cached) $ECHO_C" >&6
3004 # Extract the first word of "grep ggrep" to use in msg output
3005 if test -z "$GREP"; then
3006 set dummy grep ggrep; ac_prog_name=$2
3007 if test "${ac_cv_path_GREP+set}" = set; then
3008 echo $ECHO_N "(cached) $ECHO_C" >&6
3010 ac_path_GREP_found=false
3011 # Loop through the user's path and test for each of PROGNAME-LIST
3012 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3013 for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
3016 test -z "$as_dir" && as_dir=.
3017 for ac_prog in grep ggrep; do
3018 for ac_exec_ext in '' $ac_executable_extensions; do
3019 ac_path_GREP="$as_dir/$ac_prog$ac_exec_ext"
3020 { test -f "$ac_path_GREP" && $as_executable_p "$ac_path_GREP"; } || continue
3021 # Check for GNU ac_path_GREP and select it if it is found.
3022 # Check for GNU $ac_path_GREP
3023 case `"$ac_path_GREP" --version 2>&1` in
3025 ac_cv_path_GREP="$ac_path_GREP" ac_path_GREP_found=:;;
3028 echo $ECHO_N "0123456789$ECHO_C" >"conftest.in"
3031 cat "conftest.in" "conftest.in" >"conftest.tmp"
3032 mv "conftest.tmp" "conftest.in"
3033 cp "conftest.in" "conftest.nl"
3034 echo 'GREP' >> "conftest.nl"
3035 "$ac_path_GREP" -e 'GREP$' -e '-(cannot match)-' < "conftest.nl" >"conftest.out" 2>/dev/null || break
3036 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
3037 ac_count=`expr $ac_count + 1`
3038 if test $ac_count -gt ${ac_path_GREP_max-0}; then
3039 # Best one so far, save it but keep looking for a better one
3040 ac_cv_path_GREP="$ac_path_GREP"
3041 ac_path_GREP_max=$ac_count
3043 # 10*(2^10) chars as input seems more than enough
3044 test $ac_count -gt 10 && break
3050 $ac_path_GREP_found && break 3
3060 GREP="$ac_cv_path_GREP"
3061 if test -z "$GREP"; then
3062 { { echo "$as_me:$LINENO: error: no acceptable $ac_prog_name could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" >&5
3063 echo "$as_me: error: no acceptable $ac_prog_name could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" >&2;}
3064 { (exit 1); exit 1; }; }
3068 ac_cv_path_GREP=$GREP
3073 { echo "$as_me:$LINENO: result: $ac_cv_path_GREP" >&5
3074 echo "${ECHO_T}$ac_cv_path_GREP" >&6; }
3075 GREP="$ac_cv_path_GREP"
3078 { echo "$as_me:$LINENO: checking for egrep" >&5
3079 echo $ECHO_N "checking for egrep... $ECHO_C" >&6; }
3080 if test "${ac_cv_path_EGREP+set}" = set; then
3081 echo $ECHO_N "(cached) $ECHO_C" >&6
3083 if echo a | $GREP -E '(a|b)' >/dev/null 2>&1
3084 then ac_cv_path_EGREP="$GREP -E"
3086 # Extract the first word of "egrep" to use in msg output
3087 if test -z "$EGREP"; then
3088 set dummy egrep; ac_prog_name=$2
3089 if test "${ac_cv_path_EGREP+set}" = set; then
3090 echo $ECHO_N "(cached) $ECHO_C" >&6
3092 ac_path_EGREP_found=false
3093 # Loop through the user's path and test for each of PROGNAME-LIST
3094 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3095 for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
3098 test -z "$as_dir" && as_dir=.
3099 for ac_prog in egrep; do
3100 for ac_exec_ext in '' $ac_executable_extensions; do
3101 ac_path_EGREP="$as_dir/$ac_prog$ac_exec_ext"
3102 { test -f "$ac_path_EGREP" && $as_executable_p "$ac_path_EGREP"; } || continue
3103 # Check for GNU ac_path_EGREP and select it if it is found.
3104 # Check for GNU $ac_path_EGREP
3105 case `"$ac_path_EGREP" --version 2>&1` in
3107 ac_cv_path_EGREP="$ac_path_EGREP" ac_path_EGREP_found=:;;
3110 echo $ECHO_N "0123456789$ECHO_C" >"conftest.in"
3113 cat "conftest.in" "conftest.in" >"conftest.tmp"
3114 mv "conftest.tmp" "conftest.in"
3115 cp "conftest.in" "conftest.nl"
3116 echo 'EGREP' >> "conftest.nl"
3117 "$ac_path_EGREP" 'EGREP$' < "conftest.nl" >"conftest.out" 2>/dev/null || break
3118 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
3119 ac_count=`expr $ac_count + 1`
3120 if test $ac_count -gt ${ac_path_EGREP_max-0}; then
3121 # Best one so far, save it but keep looking for a better one
3122 ac_cv_path_EGREP="$ac_path_EGREP"
3123 ac_path_EGREP_max=$ac_count
3125 # 10*(2^10) chars as input seems more than enough
3126 test $ac_count -gt 10 && break
3132 $ac_path_EGREP_found && break 3
3142 EGREP="$ac_cv_path_EGREP"
3143 if test -z "$EGREP"; then
3144 { { echo "$as_me:$LINENO: error: no acceptable $ac_prog_name could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" >&5
3145 echo "$as_me: error: no acceptable $ac_prog_name could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" >&2;}
3146 { (exit 1); exit 1; }; }
3150 ac_cv_path_EGREP=$EGREP
3156 { echo "$as_me:$LINENO: result: $ac_cv_path_EGREP" >&5
3157 echo "${ECHO_T}$ac_cv_path_EGREP" >&6; }
3158 EGREP="$ac_cv_path_EGREP"
3162 { echo "$as_me:$LINENO: checking for AIX" >&5
3163 echo $ECHO_N "checking for AIX... $ECHO_C" >&6; }
3164 cat >conftest.$ac_ext <<_ACEOF
3167 cat confdefs.h >>conftest.$ac_ext
3168 cat >>conftest.$ac_ext <<_ACEOF
3169 /* end confdefs.h. */
3175 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
3176 $EGREP "yes" >/dev/null 2>&1; then
3177 { echo "$as_me:$LINENO: result: yes" >&5
3178 echo "${ECHO_T}yes" >&6; }
3179 cat >>confdefs.h <<\_ACEOF
3180 #define _ALL_SOURCE 1
3184 { echo "$as_me:$LINENO: result: no" >&5
3185 echo "${ECHO_T}no" >&6; }
3190 { echo "$as_me:$LINENO: checking for library containing strerror" >&5
3191 echo $ECHO_N "checking for library containing strerror... $ECHO_C" >&6; }
3192 if test "${ac_cv_search_strerror+set}" = set; then
3193 echo $ECHO_N "(cached) $ECHO_C" >&6
3195 ac_func_search_save_LIBS=$LIBS
3196 cat >conftest.$ac_ext <<_ACEOF
3199 cat confdefs.h >>conftest.$ac_ext
3200 cat >>conftest.$ac_ext <<_ACEOF
3201 /* end confdefs.h. */
3203 /* Override any GCC internal prototype to avoid an error.
3204 Use char because int might match the return type of a GCC
3205 builtin and then its argument prototype would still apply. */
3218 for ac_lib in '' cposix; do
3219 if test -z "$ac_lib"; then
3220 ac_res="none required"
3223 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
3225 rm -f conftest.$ac_objext conftest$ac_exeext
3226 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
3227 (eval $ac_link) 2>conftest.er1
3229 grep -v '^ *+' conftest.er1 >conftest.err
3231 cat conftest.err >&5
3232 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3233 (exit $ac_status); } &&
3234 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
3235 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3238 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3239 (exit $ac_status); }; } &&
3240 { ac_try='test -s conftest$ac_exeext'
3241 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3244 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3245 (exit $ac_status); }; }; then
3246 ac_cv_search_strerror=$ac_res
3248 echo "$as_me: failed program was:" >&5
3249 sed 's/^/| /' conftest.$ac_ext >&5
3254 rm -f conftest.err conftest.$ac_objext \
3256 if test "${ac_cv_search_strerror+set}" = set; then
3260 if test "${ac_cv_search_strerror+set}" = set; then
3263 ac_cv_search_strerror=no
3266 LIBS=$ac_func_search_save_LIBS
3268 { echo "$as_me:$LINENO: result: $ac_cv_search_strerror" >&5
3269 echo "${ECHO_T}$ac_cv_search_strerror" >&6; }
3270 ac_res=$ac_cv_search_strerror
3271 if test "$ac_res" != no; then
3272 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
3279 { echo "$as_me:$LINENO: checking for ${CC-cc} option to accept ANSI C" >&5
3280 echo $ECHO_N "checking for ${CC-cc} option to accept ANSI C... $ECHO_C" >&6; }
3281 if test "${am_cv_prog_cc_stdc+set}" = set; then
3282 echo $ECHO_N "(cached) $ECHO_C" >&6
3284 am_cv_prog_cc_stdc=no
3286 # Don't try gcc -ansi; that turns off useful extensions and
3287 # breaks some systems' header files.
3288 # AIX -qlanglvl=ansi
3289 # Ultrix and OSF/1 -std1
3290 # HP-UX 10.20 and later -Ae
3291 # HP-UX older versions -Aa -D_HPUX_SOURCE
3292 # SVR4 -Xc -D__EXTENSIONS__
3293 for ac_arg in "" -qlanglvl=ansi -std1 -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
3295 CC="$ac_save_CC $ac_arg"
3296 cat >conftest.$ac_ext <<_ACEOF
3299 cat confdefs.h >>conftest.$ac_ext
3300 cat >>conftest.$ac_ext <<_ACEOF
3301 /* end confdefs.h. */
3304 #include <sys/types.h>
3305 #include <sys/stat.h>
3306 /* Most of the following tests are stolen from RCS 5.7's src/conf.sh. */
3307 struct buf { int x; };
3308 FILE * (*rcsopen) (struct buf *, struct stat *, int);
3309 static char *e (p, i)
3315 static char *f (char * (*g) (char **, int), char **p, ...)
3320 s = g (p, va_arg (v,int));
3324 int test (int i, double x);
3325 struct s1 {int (*f) (int a);};
3326 struct s2 {int (*f) (double a);};
3327 int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
3335 return f (e, argv, 0) != argv[0] || f (e, argv, 1) != argv[1];
3341 rm -f conftest.$ac_objext
3342 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
3343 (eval $ac_compile) 2>conftest.er1
3345 grep -v '^ *+' conftest.er1 >conftest.err
3347 cat conftest.err >&5
3348 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3349 (exit $ac_status); } &&
3350 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
3351 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3354 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3355 (exit $ac_status); }; } &&
3356 { ac_try='test -s conftest.$ac_objext'
3357 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3360 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3361 (exit $ac_status); }; }; then
3362 am_cv_prog_cc_stdc="$ac_arg"; break
3364 echo "$as_me: failed program was:" >&5
3365 sed 's/^/| /' conftest.$ac_ext >&5
3370 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
3376 if test -z "$am_cv_prog_cc_stdc"; then
3377 { echo "$as_me:$LINENO: result: none needed" >&5
3378 echo "${ECHO_T}none needed" >&6; }
3380 { echo "$as_me:$LINENO: result: $am_cv_prog_cc_stdc" >&5
3381 echo "${ECHO_T}$am_cv_prog_cc_stdc" >&6; }
3383 case "x$am_cv_prog_cc_stdc" in
3385 *) CC="$CC $am_cv_prog_cc_stdc" ;;
3390 for ac_dir in `cd $srcdir;pwd`/.. $srcdir/`cd $srcdir;pwd`/..; do
3391 if test -f $ac_dir/install-sh; then
3393 ac_install_sh="$ac_aux_dir/install-sh -c"
3395 elif test -f $ac_dir/install.sh; then
3397 ac_install_sh="$ac_aux_dir/install.sh -c"
3399 elif test -f $ac_dir/shtool; then
3401 ac_install_sh="$ac_aux_dir/shtool install -c"
3405 if test -z "$ac_aux_dir"; then
3406 { { echo "$as_me:$LINENO: error: cannot find install-sh or install.sh in \`cd $srcdir;pwd\`/.. $srcdir/\`cd $srcdir;pwd\`/.." >&5
3407 echo "$as_me: error: cannot find install-sh or install.sh in \`cd $srcdir;pwd\`/.. $srcdir/\`cd $srcdir;pwd\`/.." >&2;}
3408 { (exit 1); exit 1; }; }
3410 ac_config_guess="$SHELL $ac_aux_dir/config.guess"
3411 ac_config_sub="$SHELL $ac_aux_dir/config.sub"
3412 ac_configure="$SHELL $ac_aux_dir/configure" # This should be Cygnus configure.
3414 # Make sure we can run config.sub.
3415 $ac_config_sub sun4 >/dev/null 2>&1 ||
3416 { { echo "$as_me:$LINENO: error: cannot run $ac_config_sub" >&5
3417 echo "$as_me: error: cannot run $ac_config_sub" >&2;}
3418 { (exit 1); exit 1; }; }
3420 { echo "$as_me:$LINENO: checking build system type" >&5
3421 echo $ECHO_N "checking build system type... $ECHO_C" >&6; }
3422 if test "${ac_cv_build+set}" = set; then
3423 echo $ECHO_N "(cached) $ECHO_C" >&6
3425 ac_build_alias=$build_alias
3426 test "x$ac_build_alias" = x &&
3427 ac_build_alias=`$ac_config_guess`
3428 test "x$ac_build_alias" = x &&
3429 { { echo "$as_me:$LINENO: error: cannot guess build type; you must specify one" >&5
3430 echo "$as_me: error: cannot guess build type; you must specify one" >&2;}
3431 { (exit 1); exit 1; }; }
3432 ac_cv_build=`$ac_config_sub $ac_build_alias` ||
3433 { { echo "$as_me:$LINENO: error: $ac_config_sub $ac_build_alias failed" >&5
3434 echo "$as_me: error: $ac_config_sub $ac_build_alias failed" >&2;}
3435 { (exit 1); exit 1; }; }
3438 { echo "$as_me:$LINENO: result: $ac_cv_build" >&5
3439 echo "${ECHO_T}$ac_cv_build" >&6; }
3440 case $ac_cv_build in
3442 *) { { echo "$as_me:$LINENO: error: invalid value of canonical build" >&5
3443 echo "$as_me: error: invalid value of canonical build" >&2;}
3444 { (exit 1); exit 1; }; };;
3447 ac_save_IFS=$IFS; IFS='-'
3453 # Remember, the first character of IFS is used to create $*,
3454 # except with old shells:
3457 case $build_os in *\ *) build_os=`echo "$build_os" | sed 's/ /-/g'`;; esac
3460 { echo "$as_me:$LINENO: checking host system type" >&5
3461 echo $ECHO_N "checking host system type... $ECHO_C" >&6; }
3462 if test "${ac_cv_host+set}" = set; then
3463 echo $ECHO_N "(cached) $ECHO_C" >&6
3465 if test "x$host_alias" = x; then
3466 ac_cv_host=$ac_cv_build
3468 ac_cv_host=`$ac_config_sub $host_alias` ||
3469 { { echo "$as_me:$LINENO: error: $ac_config_sub $host_alias failed" >&5
3470 echo "$as_me: error: $ac_config_sub $host_alias failed" >&2;}
3471 { (exit 1); exit 1; }; }
3475 { echo "$as_me:$LINENO: result: $ac_cv_host" >&5
3476 echo "${ECHO_T}$ac_cv_host" >&6; }
3479 *) { { echo "$as_me:$LINENO: error: invalid value of canonical host" >&5
3480 echo "$as_me: error: invalid value of canonical host" >&2;}
3481 { (exit 1); exit 1; }; };;
3484 ac_save_IFS=$IFS; IFS='-'
3490 # Remember, the first character of IFS is used to create $*,
3491 # except with old shells:
3494 case $host_os in *\ *) host_os=`echo "$host_os" | sed 's/ /-/g'`;; esac
3497 { echo "$as_me:$LINENO: checking target system type" >&5
3498 echo $ECHO_N "checking target system type... $ECHO_C" >&6; }
3499 if test "${ac_cv_target+set}" = set; then
3500 echo $ECHO_N "(cached) $ECHO_C" >&6
3502 if test "x$target_alias" = x; then
3503 ac_cv_target=$ac_cv_host
3505 ac_cv_target=`$ac_config_sub $target_alias` ||
3506 { { echo "$as_me:$LINENO: error: $ac_config_sub $target_alias failed" >&5
3507 echo "$as_me: error: $ac_config_sub $target_alias failed" >&2;}
3508 { (exit 1); exit 1; }; }
3512 { echo "$as_me:$LINENO: result: $ac_cv_target" >&5
3513 echo "${ECHO_T}$ac_cv_target" >&6; }
3514 case $ac_cv_target in
3516 *) { { echo "$as_me:$LINENO: error: invalid value of canonical target" >&5
3517 echo "$as_me: error: invalid value of canonical target" >&2;}
3518 { (exit 1); exit 1; }; };;
3520 target=$ac_cv_target
3521 ac_save_IFS=$IFS; IFS='-'
3527 # Remember, the first character of IFS is used to create $*,
3528 # except with old shells:
3531 case $target_os in *\ *) target_os=`echo "$target_os" | sed 's/ /-/g'`;; esac
3534 # The aliases save the names the user supplied, while $host etc.
3535 # will get canonicalized.
3536 test -n "$target_alias" &&
3537 test "$program_prefix$program_suffix$program_transform_name" = \
3539 program_prefix=${target_alias}-
3553 { echo "$as_me:$LINENO: checking whether ${MAKE-make} sets \$(MAKE)" >&5
3554 echo $ECHO_N "checking whether ${MAKE-make} sets \$(MAKE)... $ECHO_C" >&6; }
3555 set dummy ${MAKE-make}; ac_make=`echo "$2" | sed 'y,:./+-,___p_,'`
3556 if { as_var=ac_cv_prog_make_${ac_make}_set; eval "test \"\${$as_var+set}\" = set"; }; then
3557 echo $ECHO_N "(cached) $ECHO_C" >&6
3559 cat >conftest.make <<\_ACEOF
3562 @echo 'ac_maketemp=X"$(MAKE)"'
3564 # GNU make sometimes prints "make[1]: Entering...", which would confuse us.
3565 eval `${MAKE-make} -f conftest.make 2>/dev/null | grep temp=`
3566 if test "$ac_maketemp" != X ; then
3567 eval ac_cv_prog_make_${ac_make}_set=yes
3569 eval ac_cv_prog_make_${ac_make}_set=no
3573 if eval "test \"`echo '$ac_cv_prog_make_'${ac_make}_set`\" = yes"; then
3574 { echo "$as_me:$LINENO: result: yes" >&5
3575 echo "${ECHO_T}yes" >&6; }
3578 { echo "$as_me:$LINENO: result: no" >&5
3579 echo "${ECHO_T}no" >&6; }
3580 SET_MAKE="MAKE=${MAKE-make}"
3583 if test -n "$ac_tool_prefix"; then
3584 # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args.
3585 set dummy ${ac_tool_prefix}ranlib; ac_word=$2
3586 { echo "$as_me:$LINENO: checking for $ac_word" >&5
3587 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
3588 if test "${ac_cv_prog_RANLIB+set}" = set; then
3589 echo $ECHO_N "(cached) $ECHO_C" >&6
3591 if test -n "$RANLIB"; then
3592 ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
3594 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3598 test -z "$as_dir" && as_dir=.
3599 for ac_exec_ext in '' $ac_executable_extensions; do
3600 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
3601 ac_cv_prog_RANLIB="${ac_tool_prefix}ranlib"
3602 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
3611 RANLIB=$ac_cv_prog_RANLIB
3612 if test -n "$RANLIB"; then
3613 { echo "$as_me:$LINENO: result: $RANLIB" >&5
3614 echo "${ECHO_T}$RANLIB" >&6; }
3616 { echo "$as_me:$LINENO: result: no" >&5
3617 echo "${ECHO_T}no" >&6; }
3622 if test -z "$ac_cv_prog_RANLIB"; then
3623 ac_ct_RANLIB=$RANLIB
3624 # Extract the first word of "ranlib", so it can be a program name with args.
3625 set dummy ranlib; ac_word=$2
3626 { echo "$as_me:$LINENO: checking for $ac_word" >&5
3627 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
3628 if test "${ac_cv_prog_ac_ct_RANLIB+set}" = set; then
3629 echo $ECHO_N "(cached) $ECHO_C" >&6
3631 if test -n "$ac_ct_RANLIB"; then
3632 ac_cv_prog_ac_ct_RANLIB="$ac_ct_RANLIB" # Let the user override the test.
3634 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3638 test -z "$as_dir" && as_dir=.
3639 for ac_exec_ext in '' $ac_executable_extensions; do
3640 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
3641 ac_cv_prog_ac_ct_RANLIB="ranlib"
3642 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
3651 ac_ct_RANLIB=$ac_cv_prog_ac_ct_RANLIB
3652 if test -n "$ac_ct_RANLIB"; then
3653 { echo "$as_me:$LINENO: result: $ac_ct_RANLIB" >&5
3654 echo "${ECHO_T}$ac_ct_RANLIB" >&6; }
3656 { echo "$as_me:$LINENO: result: no" >&5
3657 echo "${ECHO_T}no" >&6; }
3660 if test "x$ac_ct_RANLIB" = x; then
3663 case $cross_compiling:$ac_tool_warned in
3665 { echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
3666 whose name does not start with the host triplet. If you think this
3667 configuration is useful to you, please write to autoconf@gnu.org." >&5
3668 echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
3669 whose name does not start with the host triplet. If you think this
3670 configuration is useful to you, please write to autoconf@gnu.org." >&2;}
3671 ac_tool_warned=yes ;;
3673 RANLIB=$ac_ct_RANLIB
3676 RANLIB="$ac_cv_prog_RANLIB"
3679 { echo "$as_me:$LINENO: checking for ANSI C header files" >&5
3680 echo $ECHO_N "checking for ANSI C header files... $ECHO_C" >&6; }
3681 if test "${ac_cv_header_stdc+set}" = set; then
3682 echo $ECHO_N "(cached) $ECHO_C" >&6
3684 cat >conftest.$ac_ext <<_ACEOF
3687 cat confdefs.h >>conftest.$ac_ext
3688 cat >>conftest.$ac_ext <<_ACEOF
3689 /* end confdefs.h. */
3703 rm -f conftest.$ac_objext
3704 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
3705 (eval $ac_compile) 2>conftest.er1
3707 grep -v '^ *+' conftest.er1 >conftest.err
3709 cat conftest.err >&5
3710 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3711 (exit $ac_status); } &&
3712 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
3713 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3716 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3717 (exit $ac_status); }; } &&
3718 { ac_try='test -s conftest.$ac_objext'
3719 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3722 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3723 (exit $ac_status); }; }; then
3724 ac_cv_header_stdc=yes
3726 echo "$as_me: failed program was:" >&5
3727 sed 's/^/| /' conftest.$ac_ext >&5
3729 ac_cv_header_stdc=no
3732 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
3734 if test $ac_cv_header_stdc = yes; then
3735 # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
3736 cat >conftest.$ac_ext <<_ACEOF
3739 cat confdefs.h >>conftest.$ac_ext
3740 cat >>conftest.$ac_ext <<_ACEOF
3741 /* end confdefs.h. */
3745 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
3746 $EGREP "memchr" >/dev/null 2>&1; then
3749 ac_cv_header_stdc=no
3755 if test $ac_cv_header_stdc = yes; then
3756 # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
3757 cat >conftest.$ac_ext <<_ACEOF
3760 cat confdefs.h >>conftest.$ac_ext
3761 cat >>conftest.$ac_ext <<_ACEOF
3762 /* end confdefs.h. */
3766 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
3767 $EGREP "free" >/dev/null 2>&1; then
3770 ac_cv_header_stdc=no
3776 if test $ac_cv_header_stdc = yes; then
3777 # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
3778 if test "$cross_compiling" = yes; then
3781 cat >conftest.$ac_ext <<_ACEOF
3784 cat confdefs.h >>conftest.$ac_ext
3785 cat >>conftest.$ac_ext <<_ACEOF
3786 /* end confdefs.h. */
3789 #if ((' ' & 0x0FF) == 0x020)
3790 # define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
3791 # define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
3793 # define ISLOWER(c) \
3794 (('a' <= (c) && (c) <= 'i') \
3795 || ('j' <= (c) && (c) <= 'r') \
3796 || ('s' <= (c) && (c) <= 'z'))
3797 # define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
3800 #define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
3805 for (i = 0; i < 256; i++)
3806 if (XOR (islower (i), ISLOWER (i))
3807 || toupper (i) != TOUPPER (i))
3812 rm -f conftest$ac_exeext
3813 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
3814 (eval $ac_link) 2>&5
3816 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3817 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
3818 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3821 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3822 (exit $ac_status); }; }; then
3825 echo "$as_me: program exited with status $ac_status" >&5
3826 echo "$as_me: failed program was:" >&5
3827 sed 's/^/| /' conftest.$ac_ext >&5
3830 ac_cv_header_stdc=no
3832 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
3838 { echo "$as_me:$LINENO: result: $ac_cv_header_stdc" >&5
3839 echo "${ECHO_T}$ac_cv_header_stdc" >&6; }
3840 if test $ac_cv_header_stdc = yes; then
3842 cat >>confdefs.h <<\_ACEOF
3843 #define STDC_HEADERS 1
3848 { echo "$as_me:$LINENO: checking for an ANSI C-conforming const" >&5
3849 echo $ECHO_N "checking for an ANSI C-conforming const... $ECHO_C" >&6; }
3850 if test "${ac_cv_c_const+set}" = set; then
3851 echo $ECHO_N "(cached) $ECHO_C" >&6
3853 cat >conftest.$ac_ext <<_ACEOF
3856 cat confdefs.h >>conftest.$ac_ext
3857 cat >>conftest.$ac_ext <<_ACEOF
3858 /* end confdefs.h. */
3863 /* FIXME: Include the comments suggested by Paul. */
3865 /* Ultrix mips cc rejects this. */
3866 typedef int charset[2];
3868 /* SunOS 4.1.1 cc rejects this. */
3869 char const *const *ccp;
3871 /* NEC SVR4.0.2 mips cc rejects this. */
3872 struct point {int x, y;};
3873 static struct point const zero = {0,0};
3874 /* AIX XL C 1.02.0.0 rejects this.
3875 It does not let you subtract one const X* pointer from another in
3876 an arm of an if-expression whose if-part is not a constant
3878 const char *g = "string";
3879 ccp = &g + (g ? g-g : 0);
3880 /* HPUX 7.0 cc rejects these. */
3883 ccp = (char const *const *) p;
3884 { /* SCO 3.2v4 cc rejects this. */
3886 char const *s = 0 ? (char *) 0 : (char const *) 0;
3891 { /* Someone thinks the Sun supposedly-ANSI compiler will reject this. */
3893 const int *foo = &x[0];
3896 { /* Sun SC1.0 ANSI compiler rejects this -- but not the above. */
3897 typedef const int *iptr;
3901 { /* AIX XL C 1.02.0.0 rejects this saying
3902 "k.c", line 2.27: 1506-025 (S) Operand must be a modifiable lvalue. */
3903 struct s { int j; const int *ap[3]; };
3904 struct s *b; b->j = 5;
3906 { /* ULTRIX-32 V3.1 (Rev 9) vcc rejects this */
3910 return !x[0] && !zero.x;
3917 rm -f conftest.$ac_objext
3918 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
3919 (eval $ac_compile) 2>conftest.er1
3921 grep -v '^ *+' conftest.er1 >conftest.err
3923 cat conftest.err >&5
3924 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3925 (exit $ac_status); } &&
3926 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
3927 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3930 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3931 (exit $ac_status); }; } &&
3932 { ac_try='test -s conftest.$ac_objext'
3933 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3936 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3937 (exit $ac_status); }; }; then
3940 echo "$as_me: failed program was:" >&5
3941 sed 's/^/| /' conftest.$ac_ext >&5
3946 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
3948 { echo "$as_me:$LINENO: result: $ac_cv_c_const" >&5
3949 echo "${ECHO_T}$ac_cv_c_const" >&6; }
3950 if test $ac_cv_c_const = no; then
3952 cat >>confdefs.h <<\_ACEOF
3958 { echo "$as_me:$LINENO: checking for inline" >&5
3959 echo $ECHO_N "checking for inline... $ECHO_C" >&6; }
3960 if test "${ac_cv_c_inline+set}" = set; then
3961 echo $ECHO_N "(cached) $ECHO_C" >&6
3964 for ac_kw in inline __inline__ __inline; do
3965 cat >conftest.$ac_ext <<_ACEOF
3968 cat confdefs.h >>conftest.$ac_ext
3969 cat >>conftest.$ac_ext <<_ACEOF
3970 /* end confdefs.h. */
3973 static $ac_kw foo_t static_foo () {return 0; }
3974 $ac_kw foo_t foo () {return 0; }
3978 rm -f conftest.$ac_objext
3979 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
3980 (eval $ac_compile) 2>conftest.er1
3982 grep -v '^ *+' conftest.er1 >conftest.err
3984 cat conftest.err >&5
3985 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3986 (exit $ac_status); } &&
3987 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
3988 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3991 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3992 (exit $ac_status); }; } &&
3993 { ac_try='test -s conftest.$ac_objext'
3994 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3997 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3998 (exit $ac_status); }; }; then
3999 ac_cv_c_inline=$ac_kw
4001 echo "$as_me: failed program was:" >&5
4002 sed 's/^/| /' conftest.$ac_ext >&5
4007 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
4008 test "$ac_cv_c_inline" != no && break
4012 { echo "$as_me:$LINENO: result: $ac_cv_c_inline" >&5
4013 echo "${ECHO_T}$ac_cv_c_inline" >&6; }
4016 case $ac_cv_c_inline in
4019 case $ac_cv_c_inline in
4021 *) ac_val=$ac_cv_c_inline;;
4023 cat >>confdefs.h <<_ACEOF
4025 #define inline $ac_val
4031 # On IRIX 5.3, sys/types and inttypes.h are conflicting.
4041 for ac_header in sys/types.h sys/stat.h stdlib.h string.h memory.h strings.h \
4042 inttypes.h stdint.h unistd.h
4044 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
4045 { echo "$as_me:$LINENO: checking for $ac_header" >&5
4046 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
4047 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
4048 echo $ECHO_N "(cached) $ECHO_C" >&6
4050 cat >conftest.$ac_ext <<_ACEOF
4053 cat confdefs.h >>conftest.$ac_ext
4054 cat >>conftest.$ac_ext <<_ACEOF
4055 /* end confdefs.h. */
4056 $ac_includes_default
4058 #include <$ac_header>
4060 rm -f conftest.$ac_objext
4061 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
4062 (eval $ac_compile) 2>conftest.er1
4064 grep -v '^ *+' conftest.er1 >conftest.err
4066 cat conftest.err >&5
4067 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4068 (exit $ac_status); } &&
4069 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
4070 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4073 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4074 (exit $ac_status); }; } &&
4075 { ac_try='test -s conftest.$ac_objext'
4076 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4079 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4080 (exit $ac_status); }; }; then
4081 eval "$as_ac_Header=yes"
4083 echo "$as_me: failed program was:" >&5
4084 sed 's/^/| /' conftest.$ac_ext >&5
4086 eval "$as_ac_Header=no"
4089 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
4091 ac_res=`eval echo '${'$as_ac_Header'}'`
4092 { echo "$as_me:$LINENO: result: $ac_res" >&5
4093 echo "${ECHO_T}$ac_res" >&6; }
4094 if test `eval echo '${'$as_ac_Header'}'` = yes; then
4095 cat >>confdefs.h <<_ACEOF
4096 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
4104 { echo "$as_me:$LINENO: checking for off_t" >&5
4105 echo $ECHO_N "checking for off_t... $ECHO_C" >&6; }
4106 if test "${ac_cv_type_off_t+set}" = set; then
4107 echo $ECHO_N "(cached) $ECHO_C" >&6
4109 cat >conftest.$ac_ext <<_ACEOF
4112 cat confdefs.h >>conftest.$ac_ext
4113 cat >>conftest.$ac_ext <<_ACEOF
4114 /* end confdefs.h. */
4115 $ac_includes_default
4116 typedef off_t ac__type_new_;
4120 if ((ac__type_new_ *) 0)
4122 if (sizeof (ac__type_new_))
4128 rm -f conftest.$ac_objext
4129 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
4130 (eval $ac_compile) 2>conftest.er1
4132 grep -v '^ *+' conftest.er1 >conftest.err
4134 cat conftest.err >&5
4135 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4136 (exit $ac_status); } &&
4137 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
4138 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4141 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4142 (exit $ac_status); }; } &&
4143 { ac_try='test -s conftest.$ac_objext'
4144 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4147 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4148 (exit $ac_status); }; }; then
4149 ac_cv_type_off_t=yes
4151 echo "$as_me: failed program was:" >&5
4152 sed 's/^/| /' conftest.$ac_ext >&5
4157 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
4159 { echo "$as_me:$LINENO: result: $ac_cv_type_off_t" >&5
4160 echo "${ECHO_T}$ac_cv_type_off_t" >&6; }
4161 if test $ac_cv_type_off_t = yes; then
4165 cat >>confdefs.h <<_ACEOF
4166 #define off_t long int
4171 { echo "$as_me:$LINENO: checking for size_t" >&5
4172 echo $ECHO_N "checking for size_t... $ECHO_C" >&6; }
4173 if test "${ac_cv_type_size_t+set}" = set; then
4174 echo $ECHO_N "(cached) $ECHO_C" >&6
4176 cat >conftest.$ac_ext <<_ACEOF
4179 cat confdefs.h >>conftest.$ac_ext
4180 cat >>conftest.$ac_ext <<_ACEOF
4181 /* end confdefs.h. */
4182 $ac_includes_default
4183 typedef size_t ac__type_new_;
4187 if ((ac__type_new_ *) 0)
4189 if (sizeof (ac__type_new_))
4195 rm -f conftest.$ac_objext
4196 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
4197 (eval $ac_compile) 2>conftest.er1
4199 grep -v '^ *+' conftest.er1 >conftest.err
4201 cat conftest.err >&5
4202 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4203 (exit $ac_status); } &&
4204 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
4205 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4208 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4209 (exit $ac_status); }; } &&
4210 { ac_try='test -s conftest.$ac_objext'
4211 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4214 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4215 (exit $ac_status); }; }; then
4216 ac_cv_type_size_t=yes
4218 echo "$as_me: failed program was:" >&5
4219 sed 's/^/| /' conftest.$ac_ext >&5
4221 ac_cv_type_size_t=no
4224 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
4226 { echo "$as_me:$LINENO: result: $ac_cv_type_size_t" >&5
4227 echo "${ECHO_T}$ac_cv_type_size_t" >&6; }
4228 if test $ac_cv_type_size_t = yes; then
4232 cat >>confdefs.h <<_ACEOF
4233 #define size_t unsigned int
4238 # The Ultrix 4.2 mips builtin alloca declared by alloca.h only works
4239 # for constant arguments. Useless!
4240 { echo "$as_me:$LINENO: checking for working alloca.h" >&5
4241 echo $ECHO_N "checking for working alloca.h... $ECHO_C" >&6; }
4242 if test "${ac_cv_working_alloca_h+set}" = set; then
4243 echo $ECHO_N "(cached) $ECHO_C" >&6
4245 cat >conftest.$ac_ext <<_ACEOF
4248 cat confdefs.h >>conftest.$ac_ext
4249 cat >>conftest.$ac_ext <<_ACEOF
4250 /* end confdefs.h. */
4255 char *p = (char *) alloca (2 * sizeof (int));
4260 rm -f conftest.$ac_objext conftest$ac_exeext
4261 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
4262 (eval $ac_link) 2>conftest.er1
4264 grep -v '^ *+' conftest.er1 >conftest.err
4266 cat conftest.err >&5
4267 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4268 (exit $ac_status); } &&
4269 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
4270 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4273 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4274 (exit $ac_status); }; } &&
4275 { ac_try='test -s conftest$ac_exeext'
4276 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4279 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4280 (exit $ac_status); }; }; then
4281 ac_cv_working_alloca_h=yes
4283 echo "$as_me: failed program was:" >&5
4284 sed 's/^/| /' conftest.$ac_ext >&5
4286 ac_cv_working_alloca_h=no
4289 rm -f conftest.err conftest.$ac_objext \
4290 conftest$ac_exeext conftest.$ac_ext
4292 { echo "$as_me:$LINENO: result: $ac_cv_working_alloca_h" >&5
4293 echo "${ECHO_T}$ac_cv_working_alloca_h" >&6; }
4294 if test $ac_cv_working_alloca_h = yes; then
4296 cat >>confdefs.h <<\_ACEOF
4297 #define HAVE_ALLOCA_H 1
4302 { echo "$as_me:$LINENO: checking for alloca" >&5
4303 echo $ECHO_N "checking for alloca... $ECHO_C" >&6; }
4304 if test "${ac_cv_func_alloca_works+set}" = set; then
4305 echo $ECHO_N "(cached) $ECHO_C" >&6
4307 cat >conftest.$ac_ext <<_ACEOF
4310 cat confdefs.h >>conftest.$ac_ext
4311 cat >>conftest.$ac_ext <<_ACEOF
4312 /* end confdefs.h. */
4314 # define alloca __builtin_alloca
4317 # include <malloc.h>
4318 # define alloca _alloca
4321 # include <alloca.h>
4326 # ifndef alloca /* predefined by HP cc +Olibcalls */
4337 char *p = (char *) alloca (1);
4342 rm -f conftest.$ac_objext conftest$ac_exeext
4343 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
4344 (eval $ac_link) 2>conftest.er1
4346 grep -v '^ *+' conftest.er1 >conftest.err
4348 cat conftest.err >&5
4349 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4350 (exit $ac_status); } &&
4351 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
4352 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4355 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4356 (exit $ac_status); }; } &&
4357 { ac_try='test -s conftest$ac_exeext'
4358 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4361 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4362 (exit $ac_status); }; }; then
4363 ac_cv_func_alloca_works=yes
4365 echo "$as_me: failed program was:" >&5
4366 sed 's/^/| /' conftest.$ac_ext >&5
4368 ac_cv_func_alloca_works=no
4371 rm -f conftest.err conftest.$ac_objext \
4372 conftest$ac_exeext conftest.$ac_ext
4374 { echo "$as_me:$LINENO: result: $ac_cv_func_alloca_works" >&5
4375 echo "${ECHO_T}$ac_cv_func_alloca_works" >&6; }
4377 if test $ac_cv_func_alloca_works = yes; then
4379 cat >>confdefs.h <<\_ACEOF
4380 #define HAVE_ALLOCA 1
4384 # The SVR3 libPW and SVR4 libucb both contain incompatible functions
4385 # that cause trouble. Some versions do not even contain alloca or
4386 # contain a buggy version. If you still want to use their alloca,
4387 # use ar to extract alloca.o from them instead of compiling alloca.c.
4389 ALLOCA=\${LIBOBJDIR}alloca.$ac_objext
4391 cat >>confdefs.h <<\_ACEOF
4396 { echo "$as_me:$LINENO: checking whether \`alloca.c' needs Cray hooks" >&5
4397 echo $ECHO_N "checking whether \`alloca.c' needs Cray hooks... $ECHO_C" >&6; }
4398 if test "${ac_cv_os_cray+set}" = set; then
4399 echo $ECHO_N "(cached) $ECHO_C" >&6
4401 cat >conftest.$ac_ext <<_ACEOF
4404 cat confdefs.h >>conftest.$ac_ext
4405 cat >>conftest.$ac_ext <<_ACEOF
4406 /* end confdefs.h. */
4407 #if defined CRAY && ! defined CRAY2
4414 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
4415 $EGREP "webecray" >/dev/null 2>&1; then
4423 { echo "$as_me:$LINENO: result: $ac_cv_os_cray" >&5
4424 echo "${ECHO_T}$ac_cv_os_cray" >&6; }
4425 if test $ac_cv_os_cray = yes; then
4426 for ac_func in _getb67 GETB67 getb67; do
4427 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
4428 { echo "$as_me:$LINENO: checking for $ac_func" >&5
4429 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
4430 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
4431 echo $ECHO_N "(cached) $ECHO_C" >&6
4433 cat >conftest.$ac_ext <<_ACEOF
4436 cat confdefs.h >>conftest.$ac_ext
4437 cat >>conftest.$ac_ext <<_ACEOF
4438 /* end confdefs.h. */
4439 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
4440 For example, HP-UX 11i <limits.h> declares gettimeofday. */
4441 #define $ac_func innocuous_$ac_func
4443 /* System header to define __stub macros and hopefully few prototypes,
4444 which can conflict with char $ac_func (); below.
4445 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
4446 <limits.h> exists even on freestanding compilers. */
4449 # include <limits.h>
4451 # include <assert.h>
4456 /* Override any GCC internal prototype to avoid an error.
4457 Use char because int might match the return type of a GCC
4458 builtin and then its argument prototype would still apply. */
4463 /* The GNU C library defines this for functions which it implements
4464 to always fail with ENOSYS. Some functions are actually named
4465 something starting with __ and the normal name is an alias. */
4466 #if defined __stub_$ac_func || defined __stub___$ac_func
4478 rm -f conftest.$ac_objext conftest$ac_exeext
4479 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
4480 (eval $ac_link) 2>conftest.er1
4482 grep -v '^ *+' conftest.er1 >conftest.err
4484 cat conftest.err >&5
4485 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4486 (exit $ac_status); } &&
4487 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
4488 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4491 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4492 (exit $ac_status); }; } &&
4493 { ac_try='test -s conftest$ac_exeext'
4494 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4497 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4498 (exit $ac_status); }; }; then
4499 eval "$as_ac_var=yes"
4501 echo "$as_me: failed program was:" >&5
4502 sed 's/^/| /' conftest.$ac_ext >&5
4504 eval "$as_ac_var=no"
4507 rm -f conftest.err conftest.$ac_objext \
4508 conftest$ac_exeext conftest.$ac_ext
4510 ac_res=`eval echo '${'$as_ac_var'}'`
4511 { echo "$as_me:$LINENO: result: $ac_res" >&5
4512 echo "${ECHO_T}$ac_res" >&6; }
4513 if test `eval echo '${'$as_ac_var'}'` = yes; then
4515 cat >>confdefs.h <<_ACEOF
4516 #define CRAY_STACKSEG_END $ac_func
4525 { echo "$as_me:$LINENO: checking stack direction for C alloca" >&5
4526 echo $ECHO_N "checking stack direction for C alloca... $ECHO_C" >&6; }
4527 if test "${ac_cv_c_stack_direction+set}" = set; then
4528 echo $ECHO_N "(cached) $ECHO_C" >&6
4530 if test "$cross_compiling" = yes; then
4531 ac_cv_c_stack_direction=0
4533 cat >conftest.$ac_ext <<_ACEOF
4536 cat confdefs.h >>conftest.$ac_ext
4537 cat >>conftest.$ac_ext <<_ACEOF
4538 /* end confdefs.h. */
4539 $ac_includes_default
4541 find_stack_direction ()
4543 static char *addr = 0;
4548 return find_stack_direction ();
4551 return (&dummy > addr) ? 1 : -1;
4557 return find_stack_direction () < 0;
4560 rm -f conftest$ac_exeext
4561 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
4562 (eval $ac_link) 2>&5
4564 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4565 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
4566 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4569 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4570 (exit $ac_status); }; }; then
4571 ac_cv_c_stack_direction=1
4573 echo "$as_me: program exited with status $ac_status" >&5
4574 echo "$as_me: failed program was:" >&5
4575 sed 's/^/| /' conftest.$ac_ext >&5
4578 ac_cv_c_stack_direction=-1
4580 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
4585 { echo "$as_me:$LINENO: result: $ac_cv_c_stack_direction" >&5
4586 echo "${ECHO_T}$ac_cv_c_stack_direction" >&6; }
4588 cat >>confdefs.h <<_ACEOF
4589 #define STACK_DIRECTION $ac_cv_c_stack_direction
4597 for ac_header in stdlib.h unistd.h
4599 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
4600 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
4601 { echo "$as_me:$LINENO: checking for $ac_header" >&5
4602 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
4603 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
4604 echo $ECHO_N "(cached) $ECHO_C" >&6
4606 ac_res=`eval echo '${'$as_ac_Header'}'`
4607 { echo "$as_me:$LINENO: result: $ac_res" >&5
4608 echo "${ECHO_T}$ac_res" >&6; }
4610 # Is the header compilable?
4611 { echo "$as_me:$LINENO: checking $ac_header usability" >&5
4612 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
4613 cat >conftest.$ac_ext <<_ACEOF
4616 cat confdefs.h >>conftest.$ac_ext
4617 cat >>conftest.$ac_ext <<_ACEOF
4618 /* end confdefs.h. */
4619 $ac_includes_default
4620 #include <$ac_header>
4622 rm -f conftest.$ac_objext
4623 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
4624 (eval $ac_compile) 2>conftest.er1
4626 grep -v '^ *+' conftest.er1 >conftest.err
4628 cat conftest.err >&5
4629 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4630 (exit $ac_status); } &&
4631 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
4632 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4635 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4636 (exit $ac_status); }; } &&
4637 { ac_try='test -s conftest.$ac_objext'
4638 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4641 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4642 (exit $ac_status); }; }; then
4643 ac_header_compiler=yes
4645 echo "$as_me: failed program was:" >&5
4646 sed 's/^/| /' conftest.$ac_ext >&5
4648 ac_header_compiler=no
4651 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
4652 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
4653 echo "${ECHO_T}$ac_header_compiler" >&6; }
4655 # Is the header present?
4656 { echo "$as_me:$LINENO: checking $ac_header presence" >&5
4657 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
4658 cat >conftest.$ac_ext <<_ACEOF
4661 cat confdefs.h >>conftest.$ac_ext
4662 cat >>conftest.$ac_ext <<_ACEOF
4663 /* end confdefs.h. */
4664 #include <$ac_header>
4666 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
4667 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
4669 grep -v '^ *+' conftest.er1 >conftest.err
4671 cat conftest.err >&5
4672 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4673 (exit $ac_status); } >/dev/null; then
4674 if test -s conftest.err; then
4675 ac_cpp_err=$ac_c_preproc_warn_flag
4676 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
4683 if test -z "$ac_cpp_err"; then
4684 ac_header_preproc=yes
4686 echo "$as_me: failed program was:" >&5
4687 sed 's/^/| /' conftest.$ac_ext >&5
4689 ac_header_preproc=no
4692 rm -f conftest.err conftest.$ac_ext
4693 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
4694 echo "${ECHO_T}$ac_header_preproc" >&6; }
4696 # So? What about this header?
4697 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
4699 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
4700 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
4701 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
4702 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
4703 ac_header_preproc=yes
4706 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
4707 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
4708 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
4709 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
4710 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
4711 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
4712 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
4713 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
4714 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
4715 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
4716 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
4717 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
4721 { echo "$as_me:$LINENO: checking for $ac_header" >&5
4722 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
4723 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
4724 echo $ECHO_N "(cached) $ECHO_C" >&6
4726 eval "$as_ac_Header=\$ac_header_preproc"
4728 ac_res=`eval echo '${'$as_ac_Header'}'`
4729 { echo "$as_me:$LINENO: result: $ac_res" >&5
4730 echo "${ECHO_T}$ac_res" >&6; }
4733 if test `eval echo '${'$as_ac_Header'}'` = yes; then
4734 cat >>confdefs.h <<_ACEOF
4735 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
4743 for ac_func in getpagesize
4745 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
4746 { echo "$as_me:$LINENO: checking for $ac_func" >&5
4747 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
4748 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
4749 echo $ECHO_N "(cached) $ECHO_C" >&6
4751 cat >conftest.$ac_ext <<_ACEOF
4754 cat confdefs.h >>conftest.$ac_ext
4755 cat >>conftest.$ac_ext <<_ACEOF
4756 /* end confdefs.h. */
4757 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
4758 For example, HP-UX 11i <limits.h> declares gettimeofday. */
4759 #define $ac_func innocuous_$ac_func
4761 /* System header to define __stub macros and hopefully few prototypes,
4762 which can conflict with char $ac_func (); below.
4763 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
4764 <limits.h> exists even on freestanding compilers. */
4767 # include <limits.h>
4769 # include <assert.h>
4774 /* Override any GCC internal prototype to avoid an error.
4775 Use char because int might match the return type of a GCC
4776 builtin and then its argument prototype would still apply. */
4781 /* The GNU C library defines this for functions which it implements
4782 to always fail with ENOSYS. Some functions are actually named
4783 something starting with __ and the normal name is an alias. */
4784 #if defined __stub_$ac_func || defined __stub___$ac_func
4796 rm -f conftest.$ac_objext conftest$ac_exeext
4797 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
4798 (eval $ac_link) 2>conftest.er1
4800 grep -v '^ *+' conftest.er1 >conftest.err
4802 cat conftest.err >&5
4803 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4804 (exit $ac_status); } &&
4805 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
4806 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4809 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4810 (exit $ac_status); }; } &&
4811 { ac_try='test -s conftest$ac_exeext'
4812 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4815 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4816 (exit $ac_status); }; }; then
4817 eval "$as_ac_var=yes"
4819 echo "$as_me: failed program was:" >&5
4820 sed 's/^/| /' conftest.$ac_ext >&5
4822 eval "$as_ac_var=no"
4825 rm -f conftest.err conftest.$ac_objext \
4826 conftest$ac_exeext conftest.$ac_ext
4828 ac_res=`eval echo '${'$as_ac_var'}'`
4829 { echo "$as_me:$LINENO: result: $ac_res" >&5
4830 echo "${ECHO_T}$ac_res" >&6; }
4831 if test `eval echo '${'$as_ac_var'}'` = yes; then
4832 cat >>confdefs.h <<_ACEOF
4833 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
4839 { echo "$as_me:$LINENO: checking for working mmap" >&5
4840 echo $ECHO_N "checking for working mmap... $ECHO_C" >&6; }
4841 if test "${ac_cv_func_mmap_fixed_mapped+set}" = set; then
4842 echo $ECHO_N "(cached) $ECHO_C" >&6
4844 if test "$cross_compiling" = yes; then
4845 ac_cv_func_mmap_fixed_mapped=no
4847 cat >conftest.$ac_ext <<_ACEOF
4850 cat confdefs.h >>conftest.$ac_ext
4851 cat >>conftest.$ac_ext <<_ACEOF
4852 /* end confdefs.h. */
4853 $ac_includes_default
4854 /* malloc might have been renamed as rpl_malloc. */
4857 /* Thanks to Mike Haertel and Jim Avera for this test.
4858 Here is a matrix of mmap possibilities:
4859 mmap private not fixed
4860 mmap private fixed at somewhere currently unmapped
4861 mmap private fixed at somewhere already mapped
4862 mmap shared not fixed
4863 mmap shared fixed at somewhere currently unmapped
4864 mmap shared fixed at somewhere already mapped
4865 For private mappings, we should verify that changes cannot be read()
4866 back from the file, nor mmap's back from the file at a different
4867 address. (There have been systems where private was not correctly
4868 implemented like the infamous i386 svr4.0, and systems where the
4869 VM page cache was not coherent with the file system buffer cache
4870 like early versions of FreeBSD and possibly contemporary NetBSD.)
4871 For shared mappings, we should conversely verify that changes get
4872 propagated back to all the places they're supposed to be.
4874 Grep wants private fixed already mapped.
4875 The main things grep needs to know about mmap are:
4876 * does it exist and is it safe to write into the mmap'd area
4877 * how to use it (BSD variants) */
4880 #include <sys/mman.h>
4882 #if !STDC_HEADERS && !HAVE_STDLIB_H
4886 /* This mess was copied from the GNU getpagesize.h. */
4887 #if !HAVE_GETPAGESIZE
4888 /* Assume that all systems that can run configure have sys/param.h. */
4889 # if !HAVE_SYS_PARAM_H
4890 # define HAVE_SYS_PARAM_H 1
4893 # ifdef _SC_PAGESIZE
4894 # define getpagesize() sysconf(_SC_PAGESIZE)
4895 # else /* no _SC_PAGESIZE */
4896 # if HAVE_SYS_PARAM_H
4897 # include <sys/param.h>
4898 # ifdef EXEC_PAGESIZE
4899 # define getpagesize() EXEC_PAGESIZE
4900 # else /* no EXEC_PAGESIZE */
4902 # define getpagesize() NBPG * CLSIZE
4905 # endif /* no CLSIZE */
4906 # else /* no NBPG */
4908 # define getpagesize() NBPC
4909 # else /* no NBPC */
4911 # define getpagesize() PAGESIZE
4912 # endif /* PAGESIZE */
4913 # endif /* no NBPC */
4914 # endif /* no NBPG */
4915 # endif /* no EXEC_PAGESIZE */
4916 # else /* no HAVE_SYS_PARAM_H */
4917 # define getpagesize() 8192 /* punt totally */
4918 # endif /* no HAVE_SYS_PARAM_H */
4919 # endif /* no _SC_PAGESIZE */
4921 #endif /* no HAVE_GETPAGESIZE */
4926 char *data, *data2, *data3;
4930 pagesize = getpagesize ();
4932 /* First, make a file with some known garbage in it. */
4933 data = (char *) malloc (pagesize);
4936 for (i = 0; i < pagesize; ++i)
4937 *(data + i) = rand ();
4939 fd = creat ("conftest.mmap", 0600);
4942 if (write (fd, data, pagesize) != pagesize)
4946 /* Next, try to mmap the file at a fixed address which already has
4947 something else allocated at it. If we can, also make sure that
4948 we see the same garbage. */
4949 fd = open ("conftest.mmap", O_RDWR);
4952 data2 = (char *) malloc (2 * pagesize);
4955 data2 += (pagesize - ((long int) data2 & (pagesize - 1))) & (pagesize - 1);
4956 if (data2 != mmap (data2, pagesize, PROT_READ | PROT_WRITE,
4957 MAP_PRIVATE | MAP_FIXED, fd, 0L))
4959 for (i = 0; i < pagesize; ++i)
4960 if (*(data + i) != *(data2 + i))
4963 /* Finally, make sure that changes to the mapped area do not
4964 percolate back to the file as seen by read(). (This is a bug on
4965 some variants of i386 svr4.0.) */
4966 for (i = 0; i < pagesize; ++i)
4967 *(data2 + i) = *(data2 + i) + 1;
4968 data3 = (char *) malloc (pagesize);
4971 if (read (fd, data3, pagesize) != pagesize)
4973 for (i = 0; i < pagesize; ++i)
4974 if (*(data + i) != *(data3 + i))
4980 rm -f conftest$ac_exeext
4981 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
4982 (eval $ac_link) 2>&5
4984 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4985 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
4986 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4989 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4990 (exit $ac_status); }; }; then
4991 ac_cv_func_mmap_fixed_mapped=yes
4993 echo "$as_me: program exited with status $ac_status" >&5
4994 echo "$as_me: failed program was:" >&5
4995 sed 's/^/| /' conftest.$ac_ext >&5
4998 ac_cv_func_mmap_fixed_mapped=no
5000 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
5005 { echo "$as_me:$LINENO: result: $ac_cv_func_mmap_fixed_mapped" >&5
5006 echo "${ECHO_T}$ac_cv_func_mmap_fixed_mapped" >&6; }
5007 if test $ac_cv_func_mmap_fixed_mapped = yes; then
5009 cat >>confdefs.h <<\_ACEOF
5026 for ac_header in argz.h limits.h locale.h nl_types.h malloc.h string.h \
5027 unistd.h values.h sys/param.h
5029 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
5030 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
5031 { echo "$as_me:$LINENO: checking for $ac_header" >&5
5032 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
5033 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
5034 echo $ECHO_N "(cached) $ECHO_C" >&6
5036 ac_res=`eval echo '${'$as_ac_Header'}'`
5037 { echo "$as_me:$LINENO: result: $ac_res" >&5
5038 echo "${ECHO_T}$ac_res" >&6; }
5040 # Is the header compilable?
5041 { echo "$as_me:$LINENO: checking $ac_header usability" >&5
5042 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
5043 cat >conftest.$ac_ext <<_ACEOF
5046 cat confdefs.h >>conftest.$ac_ext
5047 cat >>conftest.$ac_ext <<_ACEOF
5048 /* end confdefs.h. */
5049 $ac_includes_default
5050 #include <$ac_header>
5052 rm -f conftest.$ac_objext
5053 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
5054 (eval $ac_compile) 2>conftest.er1
5056 grep -v '^ *+' conftest.er1 >conftest.err
5058 cat conftest.err >&5
5059 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5060 (exit $ac_status); } &&
5061 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
5062 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5065 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5066 (exit $ac_status); }; } &&
5067 { ac_try='test -s conftest.$ac_objext'
5068 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5071 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5072 (exit $ac_status); }; }; then
5073 ac_header_compiler=yes
5075 echo "$as_me: failed program was:" >&5
5076 sed 's/^/| /' conftest.$ac_ext >&5
5078 ac_header_compiler=no
5081 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
5082 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
5083 echo "${ECHO_T}$ac_header_compiler" >&6; }
5085 # Is the header present?
5086 { echo "$as_me:$LINENO: checking $ac_header presence" >&5
5087 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
5088 cat >conftest.$ac_ext <<_ACEOF
5091 cat confdefs.h >>conftest.$ac_ext
5092 cat >>conftest.$ac_ext <<_ACEOF
5093 /* end confdefs.h. */
5094 #include <$ac_header>
5096 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
5097 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
5099 grep -v '^ *+' conftest.er1 >conftest.err
5101 cat conftest.err >&5
5102 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5103 (exit $ac_status); } >/dev/null; then
5104 if test -s conftest.err; then
5105 ac_cpp_err=$ac_c_preproc_warn_flag
5106 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
5113 if test -z "$ac_cpp_err"; then
5114 ac_header_preproc=yes
5116 echo "$as_me: failed program was:" >&5
5117 sed 's/^/| /' conftest.$ac_ext >&5
5119 ac_header_preproc=no
5122 rm -f conftest.err conftest.$ac_ext
5123 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
5124 echo "${ECHO_T}$ac_header_preproc" >&6; }
5126 # So? What about this header?
5127 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
5129 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
5130 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
5131 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
5132 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
5133 ac_header_preproc=yes
5136 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
5137 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
5138 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
5139 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
5140 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
5141 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
5142 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
5143 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
5144 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
5145 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
5146 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
5147 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
5151 { echo "$as_me:$LINENO: checking for $ac_header" >&5
5152 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
5153 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
5154 echo $ECHO_N "(cached) $ECHO_C" >&6
5156 eval "$as_ac_Header=\$ac_header_preproc"
5158 ac_res=`eval echo '${'$as_ac_Header'}'`
5159 { echo "$as_me:$LINENO: result: $ac_res" >&5
5160 echo "${ECHO_T}$ac_res" >&6; }
5163 if test `eval echo '${'$as_ac_Header'}'` = yes; then
5164 cat >>confdefs.h <<_ACEOF
5165 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
5182 for ac_func in getcwd munmap putenv setenv setlocale strchr strcasecmp \
5183 __argz_count __argz_stringify __argz_next
5185 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
5186 { echo "$as_me:$LINENO: checking for $ac_func" >&5
5187 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
5188 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
5189 echo $ECHO_N "(cached) $ECHO_C" >&6
5191 cat >conftest.$ac_ext <<_ACEOF
5194 cat confdefs.h >>conftest.$ac_ext
5195 cat >>conftest.$ac_ext <<_ACEOF
5196 /* end confdefs.h. */
5197 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
5198 For example, HP-UX 11i <limits.h> declares gettimeofday. */
5199 #define $ac_func innocuous_$ac_func
5201 /* System header to define __stub macros and hopefully few prototypes,
5202 which can conflict with char $ac_func (); below.
5203 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
5204 <limits.h> exists even on freestanding compilers. */
5207 # include <limits.h>
5209 # include <assert.h>
5214 /* Override any GCC internal prototype to avoid an error.
5215 Use char because int might match the return type of a GCC
5216 builtin and then its argument prototype would still apply. */
5221 /* The GNU C library defines this for functions which it implements
5222 to always fail with ENOSYS. Some functions are actually named
5223 something starting with __ and the normal name is an alias. */
5224 #if defined __stub_$ac_func || defined __stub___$ac_func
5236 rm -f conftest.$ac_objext conftest$ac_exeext
5237 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
5238 (eval $ac_link) 2>conftest.er1
5240 grep -v '^ *+' conftest.er1 >conftest.err
5242 cat conftest.err >&5
5243 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5244 (exit $ac_status); } &&
5245 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
5246 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5249 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5250 (exit $ac_status); }; } &&
5251 { ac_try='test -s conftest$ac_exeext'
5252 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5255 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5256 (exit $ac_status); }; }; then
5257 eval "$as_ac_var=yes"
5259 echo "$as_me: failed program was:" >&5
5260 sed 's/^/| /' conftest.$ac_ext >&5
5262 eval "$as_ac_var=no"
5265 rm -f conftest.err conftest.$ac_objext \
5266 conftest$ac_exeext conftest.$ac_ext
5268 ac_res=`eval echo '${'$as_ac_var'}'`
5269 { echo "$as_me:$LINENO: result: $ac_res" >&5
5270 echo "${ECHO_T}$ac_res" >&6; }
5271 if test `eval echo '${'$as_ac_var'}'` = yes; then
5272 cat >>confdefs.h <<_ACEOF
5273 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
5280 if test "${ac_cv_func_stpcpy+set}" != "set"; then
5282 for ac_func in stpcpy
5284 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
5285 { echo "$as_me:$LINENO: checking for $ac_func" >&5
5286 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
5287 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
5288 echo $ECHO_N "(cached) $ECHO_C" >&6
5290 cat >conftest.$ac_ext <<_ACEOF
5293 cat confdefs.h >>conftest.$ac_ext
5294 cat >>conftest.$ac_ext <<_ACEOF
5295 /* end confdefs.h. */
5296 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
5297 For example, HP-UX 11i <limits.h> declares gettimeofday. */
5298 #define $ac_func innocuous_$ac_func
5300 /* System header to define __stub macros and hopefully few prototypes,
5301 which can conflict with char $ac_func (); below.
5302 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
5303 <limits.h> exists even on freestanding compilers. */
5306 # include <limits.h>
5308 # include <assert.h>
5313 /* Override any GCC internal prototype to avoid an error.
5314 Use char because int might match the return type of a GCC
5315 builtin and then its argument prototype would still apply. */
5320 /* The GNU C library defines this for functions which it implements
5321 to always fail with ENOSYS. Some functions are actually named
5322 something starting with __ and the normal name is an alias. */
5323 #if defined __stub_$ac_func || defined __stub___$ac_func
5335 rm -f conftest.$ac_objext conftest$ac_exeext
5336 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
5337 (eval $ac_link) 2>conftest.er1
5339 grep -v '^ *+' conftest.er1 >conftest.err
5341 cat conftest.err >&5
5342 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5343 (exit $ac_status); } &&
5344 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
5345 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5348 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5349 (exit $ac_status); }; } &&
5350 { ac_try='test -s conftest$ac_exeext'
5351 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5354 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5355 (exit $ac_status); }; }; then
5356 eval "$as_ac_var=yes"
5358 echo "$as_me: failed program was:" >&5
5359 sed 's/^/| /' conftest.$ac_ext >&5
5361 eval "$as_ac_var=no"
5364 rm -f conftest.err conftest.$ac_objext \
5365 conftest$ac_exeext conftest.$ac_ext
5367 ac_res=`eval echo '${'$as_ac_var'}'`
5368 { echo "$as_me:$LINENO: result: $ac_res" >&5
5369 echo "${ECHO_T}$ac_res" >&6; }
5370 if test `eval echo '${'$as_ac_var'}'` = yes; then
5371 cat >>confdefs.h <<_ACEOF
5372 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
5379 if test "${ac_cv_func_stpcpy}" = "yes"; then
5381 cat >>confdefs.h <<\_ACEOF
5382 #define HAVE_STPCPY 1
5387 if test $ac_cv_header_locale_h = yes; then
5388 { echo "$as_me:$LINENO: checking for LC_MESSAGES" >&5
5389 echo $ECHO_N "checking for LC_MESSAGES... $ECHO_C" >&6; }
5390 if test "${am_cv_val_LC_MESSAGES+set}" = set; then
5391 echo $ECHO_N "(cached) $ECHO_C" >&6
5393 cat >conftest.$ac_ext <<_ACEOF
5396 cat confdefs.h >>conftest.$ac_ext
5397 cat >>conftest.$ac_ext <<_ACEOF
5398 /* end confdefs.h. */
5408 rm -f conftest.$ac_objext conftest$ac_exeext
5409 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
5410 (eval $ac_link) 2>conftest.er1
5412 grep -v '^ *+' conftest.er1 >conftest.err
5414 cat conftest.err >&5
5415 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5416 (exit $ac_status); } &&
5417 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
5418 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5421 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5422 (exit $ac_status); }; } &&
5423 { ac_try='test -s conftest$ac_exeext'
5424 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5427 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5428 (exit $ac_status); }; }; then
5429 am_cv_val_LC_MESSAGES=yes
5431 echo "$as_me: failed program was:" >&5
5432 sed 's/^/| /' conftest.$ac_ext >&5
5434 am_cv_val_LC_MESSAGES=no
5437 rm -f conftest.err conftest.$ac_objext \
5438 conftest$ac_exeext conftest.$ac_ext
5440 { echo "$as_me:$LINENO: result: $am_cv_val_LC_MESSAGES" >&5
5441 echo "${ECHO_T}$am_cv_val_LC_MESSAGES" >&6; }
5442 if test $am_cv_val_LC_MESSAGES = yes; then
5444 cat >>confdefs.h <<\_ACEOF
5445 #define HAVE_LC_MESSAGES 1
5450 { echo "$as_me:$LINENO: checking whether NLS is requested" >&5
5451 echo $ECHO_N "checking whether NLS is requested... $ECHO_C" >&6; }
5452 # Check whether --enable-nls was given.
5453 if test "${enable_nls+set}" = set; then
5454 enableval=$enable_nls; USE_NLS=$enableval
5459 { echo "$as_me:$LINENO: result: $USE_NLS" >&5
5460 echo "${ECHO_T}$USE_NLS" >&6; }
5463 USE_INCLUDED_LIBINTL=no
5465 if test "$USE_NLS" = "yes"; then
5466 { echo "$as_me:$LINENO: checking whether included gettext is requested" >&5
5467 echo $ECHO_N "checking whether included gettext is requested... $ECHO_C" >&6; }
5469 # Check whether --with-included-gettext was given.
5470 if test "${with_included_gettext+set}" = set; then
5471 withval=$with_included_gettext; nls_cv_force_use_gnu_gettext=$withval
5473 nls_cv_force_use_gnu_gettext=no
5476 { echo "$as_me:$LINENO: result: $nls_cv_force_use_gnu_gettext" >&5
5477 echo "${ECHO_T}$nls_cv_force_use_gnu_gettext" >&6; }
5479 nls_cv_use_gnu_gettext="$nls_cv_force_use_gnu_gettext"
5480 if test "$nls_cv_force_use_gnu_gettext" != "yes"; then
5482 nls_cv_header_libgt=
5485 if test "${ac_cv_header_libintl_h+set}" = set; then
5486 { echo "$as_me:$LINENO: checking for libintl.h" >&5
5487 echo $ECHO_N "checking for libintl.h... $ECHO_C" >&6; }
5488 if test "${ac_cv_header_libintl_h+set}" = set; then
5489 echo $ECHO_N "(cached) $ECHO_C" >&6
5491 { echo "$as_me:$LINENO: result: $ac_cv_header_libintl_h" >&5
5492 echo "${ECHO_T}$ac_cv_header_libintl_h" >&6; }
5494 # Is the header compilable?
5495 { echo "$as_me:$LINENO: checking libintl.h usability" >&5
5496 echo $ECHO_N "checking libintl.h usability... $ECHO_C" >&6; }
5497 cat >conftest.$ac_ext <<_ACEOF
5500 cat confdefs.h >>conftest.$ac_ext
5501 cat >>conftest.$ac_ext <<_ACEOF
5502 /* end confdefs.h. */
5503 $ac_includes_default
5504 #include <libintl.h>
5506 rm -f conftest.$ac_objext
5507 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
5508 (eval $ac_compile) 2>conftest.er1
5510 grep -v '^ *+' conftest.er1 >conftest.err
5512 cat conftest.err >&5
5513 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5514 (exit $ac_status); } &&
5515 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
5516 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5519 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5520 (exit $ac_status); }; } &&
5521 { ac_try='test -s conftest.$ac_objext'
5522 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5525 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5526 (exit $ac_status); }; }; then
5527 ac_header_compiler=yes
5529 echo "$as_me: failed program was:" >&5
5530 sed 's/^/| /' conftest.$ac_ext >&5
5532 ac_header_compiler=no
5535 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
5536 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
5537 echo "${ECHO_T}$ac_header_compiler" >&6; }
5539 # Is the header present?
5540 { echo "$as_me:$LINENO: checking libintl.h presence" >&5
5541 echo $ECHO_N "checking libintl.h presence... $ECHO_C" >&6; }
5542 cat >conftest.$ac_ext <<_ACEOF
5545 cat confdefs.h >>conftest.$ac_ext
5546 cat >>conftest.$ac_ext <<_ACEOF
5547 /* end confdefs.h. */
5548 #include <libintl.h>
5550 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
5551 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
5553 grep -v '^ *+' conftest.er1 >conftest.err
5555 cat conftest.err >&5
5556 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5557 (exit $ac_status); } >/dev/null; then
5558 if test -s conftest.err; then
5559 ac_cpp_err=$ac_c_preproc_warn_flag
5560 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
5567 if test -z "$ac_cpp_err"; then
5568 ac_header_preproc=yes
5570 echo "$as_me: failed program was:" >&5
5571 sed 's/^/| /' conftest.$ac_ext >&5
5573 ac_header_preproc=no
5576 rm -f conftest.err conftest.$ac_ext
5577 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
5578 echo "${ECHO_T}$ac_header_preproc" >&6; }
5580 # So? What about this header?
5581 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
5583 { echo "$as_me:$LINENO: WARNING: libintl.h: accepted by the compiler, rejected by the preprocessor!" >&5
5584 echo "$as_me: WARNING: libintl.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
5585 { echo "$as_me:$LINENO: WARNING: libintl.h: proceeding with the compiler's result" >&5
5586 echo "$as_me: WARNING: libintl.h: proceeding with the compiler's result" >&2;}
5587 ac_header_preproc=yes
5590 { echo "$as_me:$LINENO: WARNING: libintl.h: present but cannot be compiled" >&5
5591 echo "$as_me: WARNING: libintl.h: present but cannot be compiled" >&2;}
5592 { echo "$as_me:$LINENO: WARNING: libintl.h: check for missing prerequisite headers?" >&5
5593 echo "$as_me: WARNING: libintl.h: check for missing prerequisite headers?" >&2;}
5594 { echo "$as_me:$LINENO: WARNING: libintl.h: see the Autoconf documentation" >&5
5595 echo "$as_me: WARNING: libintl.h: see the Autoconf documentation" >&2;}
5596 { echo "$as_me:$LINENO: WARNING: libintl.h: section \"Present But Cannot Be Compiled\"" >&5
5597 echo "$as_me: WARNING: libintl.h: section \"Present But Cannot Be Compiled\"" >&2;}
5598 { echo "$as_me:$LINENO: WARNING: libintl.h: proceeding with the preprocessor's result" >&5
5599 echo "$as_me: WARNING: libintl.h: proceeding with the preprocessor's result" >&2;}
5600 { echo "$as_me:$LINENO: WARNING: libintl.h: in the future, the compiler will take precedence" >&5
5601 echo "$as_me: WARNING: libintl.h: in the future, the compiler will take precedence" >&2;}
5605 { echo "$as_me:$LINENO: checking for libintl.h" >&5
5606 echo $ECHO_N "checking for libintl.h... $ECHO_C" >&6; }
5607 if test "${ac_cv_header_libintl_h+set}" = set; then
5608 echo $ECHO_N "(cached) $ECHO_C" >&6
5610 ac_cv_header_libintl_h=$ac_header_preproc
5612 { echo "$as_me:$LINENO: result: $ac_cv_header_libintl_h" >&5
5613 echo "${ECHO_T}$ac_cv_header_libintl_h" >&6; }
5616 if test $ac_cv_header_libintl_h = yes; then
5617 { echo "$as_me:$LINENO: checking for gettext in libc" >&5
5618 echo $ECHO_N "checking for gettext in libc... $ECHO_C" >&6; }
5619 if test "${gt_cv_func_gettext_libc+set}" = set; then
5620 echo $ECHO_N "(cached) $ECHO_C" >&6
5622 cat >conftest.$ac_ext <<_ACEOF
5625 cat confdefs.h >>conftest.$ac_ext
5626 cat >>conftest.$ac_ext <<_ACEOF
5627 /* end confdefs.h. */
5628 #include <libintl.h>
5632 return (int) gettext ("")
5637 rm -f conftest.$ac_objext conftest$ac_exeext
5638 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
5639 (eval $ac_link) 2>conftest.er1
5641 grep -v '^ *+' conftest.er1 >conftest.err
5643 cat conftest.err >&5
5644 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5645 (exit $ac_status); } &&
5646 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
5647 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5650 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5651 (exit $ac_status); }; } &&
5652 { ac_try='test -s conftest$ac_exeext'
5653 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5656 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5657 (exit $ac_status); }; }; then
5658 gt_cv_func_gettext_libc=yes
5660 echo "$as_me: failed program was:" >&5
5661 sed 's/^/| /' conftest.$ac_ext >&5
5663 gt_cv_func_gettext_libc=no
5666 rm -f conftest.err conftest.$ac_objext \
5667 conftest$ac_exeext conftest.$ac_ext
5669 { echo "$as_me:$LINENO: result: $gt_cv_func_gettext_libc" >&5
5670 echo "${ECHO_T}$gt_cv_func_gettext_libc" >&6; }
5672 if test "$gt_cv_func_gettext_libc" != "yes"; then
5673 { echo "$as_me:$LINENO: checking for bindtextdomain in -lintl" >&5
5674 echo $ECHO_N "checking for bindtextdomain in -lintl... $ECHO_C" >&6; }
5675 if test "${ac_cv_lib_intl_bindtextdomain+set}" = set; then
5676 echo $ECHO_N "(cached) $ECHO_C" >&6
5678 ac_check_lib_save_LIBS=$LIBS
5680 cat >conftest.$ac_ext <<_ACEOF
5683 cat confdefs.h >>conftest.$ac_ext
5684 cat >>conftest.$ac_ext <<_ACEOF
5685 /* end confdefs.h. */
5687 /* Override any GCC internal prototype to avoid an error.
5688 Use char because int might match the return type of a GCC
5689 builtin and then its argument prototype would still apply. */
5693 char bindtextdomain ();
5697 return bindtextdomain ();
5702 rm -f conftest.$ac_objext conftest$ac_exeext
5703 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
5704 (eval $ac_link) 2>conftest.er1
5706 grep -v '^ *+' conftest.er1 >conftest.err
5708 cat conftest.err >&5
5709 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5710 (exit $ac_status); } &&
5711 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
5712 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5715 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5716 (exit $ac_status); }; } &&
5717 { ac_try='test -s conftest$ac_exeext'
5718 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5721 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5722 (exit $ac_status); }; }; then
5723 ac_cv_lib_intl_bindtextdomain=yes
5725 echo "$as_me: failed program was:" >&5
5726 sed 's/^/| /' conftest.$ac_ext >&5
5728 ac_cv_lib_intl_bindtextdomain=no
5731 rm -f conftest.err conftest.$ac_objext \
5732 conftest$ac_exeext conftest.$ac_ext
5733 LIBS=$ac_check_lib_save_LIBS
5735 { echo "$as_me:$LINENO: result: $ac_cv_lib_intl_bindtextdomain" >&5
5736 echo "${ECHO_T}$ac_cv_lib_intl_bindtextdomain" >&6; }
5737 if test $ac_cv_lib_intl_bindtextdomain = yes; then
5738 { echo "$as_me:$LINENO: checking for gettext in libintl" >&5
5739 echo $ECHO_N "checking for gettext in libintl... $ECHO_C" >&6; }
5740 if test "${gt_cv_func_gettext_libintl+set}" = set; then
5741 echo $ECHO_N "(cached) $ECHO_C" >&6
5743 cat >conftest.$ac_ext <<_ACEOF
5746 cat confdefs.h >>conftest.$ac_ext
5747 cat >>conftest.$ac_ext <<_ACEOF
5748 /* end confdefs.h. */
5753 return (int) gettext ("")
5758 rm -f conftest.$ac_objext conftest$ac_exeext
5759 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
5760 (eval $ac_link) 2>conftest.er1
5762 grep -v '^ *+' conftest.er1 >conftest.err
5764 cat conftest.err >&5
5765 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5766 (exit $ac_status); } &&
5767 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
5768 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5771 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5772 (exit $ac_status); }; } &&
5773 { ac_try='test -s conftest$ac_exeext'
5774 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5777 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5778 (exit $ac_status); }; }; then
5779 gt_cv_func_gettext_libintl=yes
5781 echo "$as_me: failed program was:" >&5
5782 sed 's/^/| /' conftest.$ac_ext >&5
5784 gt_cv_func_gettext_libintl=no
5787 rm -f conftest.err conftest.$ac_objext \
5788 conftest$ac_exeext conftest.$ac_ext
5790 { echo "$as_me:$LINENO: result: $gt_cv_func_gettext_libintl" >&5
5791 echo "${ECHO_T}$gt_cv_func_gettext_libintl" >&6; }
5796 if test "$gt_cv_func_gettext_libc" = "yes" \
5797 || test "$gt_cv_func_gettext_libintl" = "yes"; then
5799 cat >>confdefs.h <<\_ACEOF
5800 #define HAVE_GETTEXT 1
5803 # Extract the first word of "msgfmt", so it can be a program name with args.
5804 set dummy msgfmt; ac_word=$2
5805 { echo "$as_me:$LINENO: checking for $ac_word" >&5
5806 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
5807 if test "${ac_cv_path_MSGFMT+set}" = set; then
5808 echo $ECHO_N "(cached) $ECHO_C" >&6
5812 ac_cv_path_MSGFMT="$MSGFMT" # Let the user override the test with a path.
5815 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS="${IFS}:"
5816 for ac_dir in $PATH; do
5817 test -z "$ac_dir" && ac_dir=.
5818 if test -f $ac_dir/$ac_word; then
5819 if test -z "`$ac_dir/$ac_word -h 2>&1 | grep 'dv '`"; then
5820 ac_cv_path_MSGFMT="$ac_dir/$ac_word"
5826 test -z "$ac_cv_path_MSGFMT" && ac_cv_path_MSGFMT="no"
5830 MSGFMT="$ac_cv_path_MSGFMT"
5831 if test -n "$MSGFMT"; then
5832 { echo "$as_me:$LINENO: result: $MSGFMT" >&5
5833 echo "${ECHO_T}$MSGFMT" >&6; }
5835 { echo "$as_me:$LINENO: result: no" >&5
5836 echo "${ECHO_T}no" >&6; }
5838 if test "$MSGFMT" != "no"; then
5840 for ac_func in dcgettext
5842 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
5843 { echo "$as_me:$LINENO: checking for $ac_func" >&5
5844 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
5845 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
5846 echo $ECHO_N "(cached) $ECHO_C" >&6
5848 cat >conftest.$ac_ext <<_ACEOF
5851 cat confdefs.h >>conftest.$ac_ext
5852 cat >>conftest.$ac_ext <<_ACEOF
5853 /* end confdefs.h. */
5854 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
5855 For example, HP-UX 11i <limits.h> declares gettimeofday. */
5856 #define $ac_func innocuous_$ac_func
5858 /* System header to define __stub macros and hopefully few prototypes,
5859 which can conflict with char $ac_func (); below.
5860 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
5861 <limits.h> exists even on freestanding compilers. */
5864 # include <limits.h>
5866 # include <assert.h>
5871 /* Override any GCC internal prototype to avoid an error.
5872 Use char because int might match the return type of a GCC
5873 builtin and then its argument prototype would still apply. */
5878 /* The GNU C library defines this for functions which it implements
5879 to always fail with ENOSYS. Some functions are actually named
5880 something starting with __ and the normal name is an alias. */
5881 #if defined __stub_$ac_func || defined __stub___$ac_func
5893 rm -f conftest.$ac_objext conftest$ac_exeext
5894 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
5895 (eval $ac_link) 2>conftest.er1
5897 grep -v '^ *+' conftest.er1 >conftest.err
5899 cat conftest.err >&5
5900 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5901 (exit $ac_status); } &&
5902 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
5903 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5906 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5907 (exit $ac_status); }; } &&
5908 { ac_try='test -s conftest$ac_exeext'
5909 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5912 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5913 (exit $ac_status); }; }; then
5914 eval "$as_ac_var=yes"
5916 echo "$as_me: failed program was:" >&5
5917 sed 's/^/| /' conftest.$ac_ext >&5
5919 eval "$as_ac_var=no"
5922 rm -f conftest.err conftest.$ac_objext \
5923 conftest$ac_exeext conftest.$ac_ext
5925 ac_res=`eval echo '${'$as_ac_var'}'`
5926 { echo "$as_me:$LINENO: result: $ac_res" >&5
5927 echo "${ECHO_T}$ac_res" >&6; }
5928 if test `eval echo '${'$as_ac_var'}'` = yes; then
5929 cat >>confdefs.h <<_ACEOF
5930 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
5936 # Extract the first word of "gmsgfmt", so it can be a program name with args.
5937 set dummy gmsgfmt; ac_word=$2
5938 { echo "$as_me:$LINENO: checking for $ac_word" >&5
5939 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
5940 if test "${ac_cv_path_GMSGFMT+set}" = set; then
5941 echo $ECHO_N "(cached) $ECHO_C" >&6
5945 ac_cv_path_GMSGFMT="$GMSGFMT" # Let the user override the test with a path.
5948 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5952 test -z "$as_dir" && as_dir=.
5953 for ac_exec_ext in '' $ac_executable_extensions; do
5954 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
5955 ac_cv_path_GMSGFMT="$as_dir/$ac_word$ac_exec_ext"
5956 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5963 test -z "$ac_cv_path_GMSGFMT" && ac_cv_path_GMSGFMT="$MSGFMT"
5967 GMSGFMT=$ac_cv_path_GMSGFMT
5968 if test -n "$GMSGFMT"; then
5969 { echo "$as_me:$LINENO: result: $GMSGFMT" >&5
5970 echo "${ECHO_T}$GMSGFMT" >&6; }
5972 { echo "$as_me:$LINENO: result: no" >&5
5973 echo "${ECHO_T}no" >&6; }
5977 # Extract the first word of "xgettext", so it can be a program name with args.
5978 set dummy xgettext; ac_word=$2
5979 { echo "$as_me:$LINENO: checking for $ac_word" >&5
5980 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
5981 if test "${ac_cv_path_XGETTEXT+set}" = set; then
5982 echo $ECHO_N "(cached) $ECHO_C" >&6
5986 ac_cv_path_XGETTEXT="$XGETTEXT" # Let the user override the test with a path.
5989 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS="${IFS}:"
5990 for ac_dir in $PATH; do
5991 test -z "$ac_dir" && ac_dir=.
5992 if test -f $ac_dir/$ac_word; then
5993 if test -z "`$ac_dir/$ac_word -h 2>&1 | grep '(HELP)'`"; then
5994 ac_cv_path_XGETTEXT="$ac_dir/$ac_word"
6000 test -z "$ac_cv_path_XGETTEXT" && ac_cv_path_XGETTEXT=":"
6004 XGETTEXT="$ac_cv_path_XGETTEXT"
6005 if test -n "$XGETTEXT"; then
6006 { echo "$as_me:$LINENO: result: $XGETTEXT" >&5
6007 echo "${ECHO_T}$XGETTEXT" >&6; }
6009 { echo "$as_me:$LINENO: result: no" >&5
6010 echo "${ECHO_T}no" >&6; }
6013 cat >conftest.$ac_ext <<_ACEOF
6016 cat confdefs.h >>conftest.$ac_ext
6017 cat >>conftest.$ac_ext <<_ACEOF
6018 /* end confdefs.h. */
6023 extern int _nl_msg_cat_cntr;
6024 return _nl_msg_cat_cntr
6029 rm -f conftest.$ac_objext conftest$ac_exeext
6030 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
6031 (eval $ac_link) 2>conftest.er1
6033 grep -v '^ *+' conftest.er1 >conftest.err
6035 cat conftest.err >&5
6036 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6037 (exit $ac_status); } &&
6038 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
6039 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6042 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6043 (exit $ac_status); }; } &&
6044 { ac_try='test -s conftest$ac_exeext'
6045 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6048 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6049 (exit $ac_status); }; }; then
6053 echo "$as_me: failed program was:" >&5
6054 sed 's/^/| /' conftest.$ac_ext >&5
6060 rm -f conftest.err conftest.$ac_objext \
6061 conftest$ac_exeext conftest.$ac_ext
6071 if test x"$CATOBJEXT" = x && test -d $srcdir/../intl; then
6072 # Neither gettext nor catgets in included in the C library.
6073 # Fall back on GNU gettext library (assuming it is present).
6074 nls_cv_use_gnu_gettext=yes
6078 if test "$nls_cv_use_gnu_gettext" = "yes"; then
6079 INTLOBJS="\$(GETTOBJS)"
6080 # Extract the first word of "msgfmt", so it can be a program name with args.
6081 set dummy msgfmt; ac_word=$2
6082 { echo "$as_me:$LINENO: checking for $ac_word" >&5
6083 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
6084 if test "${ac_cv_path_MSGFMT+set}" = set; then
6085 echo $ECHO_N "(cached) $ECHO_C" >&6
6089 ac_cv_path_MSGFMT="$MSGFMT" # Let the user override the test with a path.
6092 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS="${IFS}:"
6093 for ac_dir in $PATH; do
6094 test -z "$ac_dir" && ac_dir=.
6095 if test -f $ac_dir/$ac_word; then
6096 if test -z "`$ac_dir/$ac_word -h 2>&1 | grep 'dv '`"; then
6097 ac_cv_path_MSGFMT="$ac_dir/$ac_word"
6103 test -z "$ac_cv_path_MSGFMT" && ac_cv_path_MSGFMT="msgfmt"
6107 MSGFMT="$ac_cv_path_MSGFMT"
6108 if test -n "$MSGFMT"; then
6109 { echo "$as_me:$LINENO: result: $MSGFMT" >&5
6110 echo "${ECHO_T}$MSGFMT" >&6; }
6112 { echo "$as_me:$LINENO: result: no" >&5
6113 echo "${ECHO_T}no" >&6; }
6116 # Extract the first word of "gmsgfmt", so it can be a program name with args.
6117 set dummy gmsgfmt; ac_word=$2
6118 { echo "$as_me:$LINENO: checking for $ac_word" >&5
6119 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
6120 if test "${ac_cv_path_GMSGFMT+set}" = set; then
6121 echo $ECHO_N "(cached) $ECHO_C" >&6
6125 ac_cv_path_GMSGFMT="$GMSGFMT" # Let the user override the test with a path.
6128 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6132 test -z "$as_dir" && as_dir=.
6133 for ac_exec_ext in '' $ac_executable_extensions; do
6134 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
6135 ac_cv_path_GMSGFMT="$as_dir/$ac_word$ac_exec_ext"
6136 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6143 test -z "$ac_cv_path_GMSGFMT" && ac_cv_path_GMSGFMT="$MSGFMT"
6147 GMSGFMT=$ac_cv_path_GMSGFMT
6148 if test -n "$GMSGFMT"; then
6149 { echo "$as_me:$LINENO: result: $GMSGFMT" >&5
6150 echo "${ECHO_T}$GMSGFMT" >&6; }
6152 { echo "$as_me:$LINENO: result: no" >&5
6153 echo "${ECHO_T}no" >&6; }
6157 # Extract the first word of "xgettext", so it can be a program name with args.
6158 set dummy xgettext; ac_word=$2
6159 { echo "$as_me:$LINENO: checking for $ac_word" >&5
6160 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
6161 if test "${ac_cv_path_XGETTEXT+set}" = set; then
6162 echo $ECHO_N "(cached) $ECHO_C" >&6
6166 ac_cv_path_XGETTEXT="$XGETTEXT" # Let the user override the test with a path.
6169 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS="${IFS}:"
6170 for ac_dir in $PATH; do
6171 test -z "$ac_dir" && ac_dir=.
6172 if test -f $ac_dir/$ac_word; then
6173 if test -z "`$ac_dir/$ac_word -h 2>&1 | grep '(HELP)'`"; then
6174 ac_cv_path_XGETTEXT="$ac_dir/$ac_word"
6180 test -z "$ac_cv_path_XGETTEXT" && ac_cv_path_XGETTEXT=":"
6184 XGETTEXT="$ac_cv_path_XGETTEXT"
6185 if test -n "$XGETTEXT"; then
6186 { echo "$as_me:$LINENO: result: $XGETTEXT" >&5
6187 echo "${ECHO_T}$XGETTEXT" >&6; }
6189 { echo "$as_me:$LINENO: result: no" >&5
6190 echo "${ECHO_T}no" >&6; }
6194 USE_INCLUDED_LIBINTL=yes
6198 INTLDEPS='$(top_builddir)/../intl/libintl.a'
6200 LIBS=`echo $LIBS | sed -e 's/-lintl//'`
6201 nls_cv_header_intl=libintl.h
6202 nls_cv_header_libgt=libgettext.h
6205 if test "$XGETTEXT" != ":"; then
6206 if $XGETTEXT --omit-header /dev/null 2> /dev/null; then
6209 { echo "$as_me:$LINENO: result: found xgettext programs is not GNU xgettext; ignore it" >&5
6210 echo "${ECHO_T}found xgettext programs is not GNU xgettext; ignore it" >&6; }
6215 # We need to process the po/ directory.
6219 nls_cv_header_intl=libintl.h
6220 nls_cv_header_libgt=libgettext.h
6223 # If this is used in GNU gettext we have to set USE_NLS to `yes'
6224 # because some of the sources are only built for this goal.
6225 if test "$PACKAGE" = gettext; then
6227 USE_INCLUDED_LIBINTL=yes
6230 for lang in $ALL_LINGUAS; do
6231 GMOFILES="$GMOFILES $lang.gmo"
6232 POFILES="$POFILES $lang.po"
6246 if test "x$CATOBJEXT" != "x"; then
6248 cat >>confdefs.h <<\_ACEOF
6249 #define ENABLE_NLS 1
6255 if test "x$CATOBJEXT" != "x"; then
6256 if test "x$ALL_LINGUAS" = "x"; then
6259 { echo "$as_me:$LINENO: checking for catalogs to be installed" >&5
6260 echo $ECHO_N "checking for catalogs to be installed... $ECHO_C" >&6; }
6262 for lang in ${LINGUAS=$ALL_LINGUAS}; do
6263 case "$ALL_LINGUAS" in
6264 *$lang*) NEW_LINGUAS="$NEW_LINGUAS $lang" ;;
6267 LINGUAS=$NEW_LINGUAS
6268 { echo "$as_me:$LINENO: result: $LINGUAS" >&5
6269 echo "${ECHO_T}$LINGUAS" >&6; }
6272 if test -n "$LINGUAS"; then
6273 for lang in $LINGUAS; do CATALOGS="$CATALOGS $lang$CATOBJEXT"; done
6277 if test $ac_cv_header_locale_h = yes; then
6278 INCLUDE_LOCALE_H="#include <locale.h>"
6281 /* The system does not provide the header <locale.h>. Take care yourself. */"
6285 if test -f $srcdir/po2tbl.sed.in; then
6286 if test "$CATOBJEXT" = ".cat"; then
6287 if test "${ac_cv_header_linux_version_h+set}" = set; then
6288 { echo "$as_me:$LINENO: checking for linux/version.h" >&5
6289 echo $ECHO_N "checking for linux/version.h... $ECHO_C" >&6; }
6290 if test "${ac_cv_header_linux_version_h+set}" = set; then
6291 echo $ECHO_N "(cached) $ECHO_C" >&6
6293 { echo "$as_me:$LINENO: result: $ac_cv_header_linux_version_h" >&5
6294 echo "${ECHO_T}$ac_cv_header_linux_version_h" >&6; }
6296 # Is the header compilable?
6297 { echo "$as_me:$LINENO: checking linux/version.h usability" >&5
6298 echo $ECHO_N "checking linux/version.h usability... $ECHO_C" >&6; }
6299 cat >conftest.$ac_ext <<_ACEOF
6302 cat confdefs.h >>conftest.$ac_ext
6303 cat >>conftest.$ac_ext <<_ACEOF
6304 /* end confdefs.h. */
6305 $ac_includes_default
6306 #include <linux/version.h>
6308 rm -f conftest.$ac_objext
6309 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
6310 (eval $ac_compile) 2>conftest.er1
6312 grep -v '^ *+' conftest.er1 >conftest.err
6314 cat conftest.err >&5
6315 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6316 (exit $ac_status); } &&
6317 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
6318 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6321 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6322 (exit $ac_status); }; } &&
6323 { ac_try='test -s conftest.$ac_objext'
6324 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6327 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6328 (exit $ac_status); }; }; then
6329 ac_header_compiler=yes
6331 echo "$as_me: failed program was:" >&5
6332 sed 's/^/| /' conftest.$ac_ext >&5
6334 ac_header_compiler=no
6337 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
6338 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
6339 echo "${ECHO_T}$ac_header_compiler" >&6; }
6341 # Is the header present?
6342 { echo "$as_me:$LINENO: checking linux/version.h presence" >&5
6343 echo $ECHO_N "checking linux/version.h presence... $ECHO_C" >&6; }
6344 cat >conftest.$ac_ext <<_ACEOF
6347 cat confdefs.h >>conftest.$ac_ext
6348 cat >>conftest.$ac_ext <<_ACEOF
6349 /* end confdefs.h. */
6350 #include <linux/version.h>
6352 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
6353 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
6355 grep -v '^ *+' conftest.er1 >conftest.err
6357 cat conftest.err >&5
6358 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6359 (exit $ac_status); } >/dev/null; then
6360 if test -s conftest.err; then
6361 ac_cpp_err=$ac_c_preproc_warn_flag
6362 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
6369 if test -z "$ac_cpp_err"; then
6370 ac_header_preproc=yes
6372 echo "$as_me: failed program was:" >&5
6373 sed 's/^/| /' conftest.$ac_ext >&5
6375 ac_header_preproc=no
6378 rm -f conftest.err conftest.$ac_ext
6379 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
6380 echo "${ECHO_T}$ac_header_preproc" >&6; }
6382 # So? What about this header?
6383 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
6385 { echo "$as_me:$LINENO: WARNING: linux/version.h: accepted by the compiler, rejected by the preprocessor!" >&5
6386 echo "$as_me: WARNING: linux/version.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
6387 { echo "$as_me:$LINENO: WARNING: linux/version.h: proceeding with the compiler's result" >&5
6388 echo "$as_me: WARNING: linux/version.h: proceeding with the compiler's result" >&2;}
6389 ac_header_preproc=yes
6392 { echo "$as_me:$LINENO: WARNING: linux/version.h: present but cannot be compiled" >&5
6393 echo "$as_me: WARNING: linux/version.h: present but cannot be compiled" >&2;}
6394 { echo "$as_me:$LINENO: WARNING: linux/version.h: check for missing prerequisite headers?" >&5
6395 echo "$as_me: WARNING: linux/version.h: check for missing prerequisite headers?" >&2;}
6396 { echo "$as_me:$LINENO: WARNING: linux/version.h: see the Autoconf documentation" >&5
6397 echo "$as_me: WARNING: linux/version.h: see the Autoconf documentation" >&2;}
6398 { echo "$as_me:$LINENO: WARNING: linux/version.h: section \"Present But Cannot Be Compiled\"" >&5
6399 echo "$as_me: WARNING: linux/version.h: section \"Present But Cannot Be Compiled\"" >&2;}
6400 { echo "$as_me:$LINENO: WARNING: linux/version.h: proceeding with the preprocessor's result" >&5
6401 echo "$as_me: WARNING: linux/version.h: proceeding with the preprocessor's result" >&2;}
6402 { echo "$as_me:$LINENO: WARNING: linux/version.h: in the future, the compiler will take precedence" >&5
6403 echo "$as_me: WARNING: linux/version.h: in the future, the compiler will take precedence" >&2;}
6407 { echo "$as_me:$LINENO: checking for linux/version.h" >&5
6408 echo $ECHO_N "checking for linux/version.h... $ECHO_C" >&6; }
6409 if test "${ac_cv_header_linux_version_h+set}" = set; then
6410 echo $ECHO_N "(cached) $ECHO_C" >&6
6412 ac_cv_header_linux_version_h=$ac_header_preproc
6414 { echo "$as_me:$LINENO: result: $ac_cv_header_linux_version_h" >&5
6415 echo "${ECHO_T}$ac_cv_header_linux_version_h" >&6; }
6418 if test $ac_cv_header_linux_version_h = yes; then
6426 sed -e '/^#/d' $srcdir/$msgformat-msg.sed > po2msg.sed
6428 sed -e '/^#.*[^\\]$/d' -e '/^#$/d' \
6429 $srcdir/po2tbl.sed.in > po2tbl.sed
6432 if test "$PACKAGE" = "gettext"; then
6442 MKINSTALLDIRS="\$(srcdir)/../../mkinstalldirs"
6448 if test -f $srcdir/po/POTFILES.in; then
6449 test -d po || mkdir po
6450 if test "x$srcdir" != "x."; then
6451 if test "x`echo $srcdir | sed 's@/.*@@'`" = "x"; then
6452 posrcprefix="$srcdir/"
6454 posrcprefix="../$srcdir/"
6460 sed -e "/^#/d" -e "/^\$/d" -e "s,.*, $posrcprefix& \\\\," -e "\$s/\(.*\) \\\\/\1/" \
6461 < $srcdir/po/POTFILES.in > po/POTFILES
6465 localedir='${datadir}/locale'
6468 if test "x$POSUB" != x; then
6470 { echo "$as_me:$LINENO: checking for catalogs to be installed" >&5
6471 echo $ECHO_N "checking for catalogs to be installed... $ECHO_C" >&6; }
6472 # Look for .po and .gmo files in the source directory.
6475 for cat in $srcdir/po/*.gmo $srcdir/po/*.po; do
6476 # If there aren't any .gmo files the shell will give us the
6477 # literal string "../path/to/srcdir/po/*.gmo" which has to be
6479 case "$cat" in *\**)
6482 # The quadruple backslash is collapsed to a double backslash
6483 # by the backticks, then collapsed again by the double quotes,
6484 # leaving us with one backslash in the sed expression (right
6485 # before the dot that mustn't act as a wildcard).
6486 cat=`echo $cat | sed -e "s!$srcdir/!!" -e "s!\\\\.po!.gmo!"`
6487 lang=`echo $cat | sed -e 's!po/!!' -e "s!\\\\.gmo!!"`
6488 # The user is allowed to set LINGUAS to a list of languages to
6489 # install catalogs for. If it's empty that means "all of them."
6490 if test "x$LINGUAS" = x; then
6491 CATALOGS="$CATALOGS $cat"
6492 XLINGUAS="$XLINGUAS $lang"
6494 case "$LINGUAS" in *$lang*)
6495 CATALOGS="$CATALOGS $cat"
6496 XLINGUAS="$XLINGUAS $lang"
6502 { echo "$as_me:$LINENO: result: $LINGUAS" >&5
6503 echo "${ECHO_T}$LINGUAS" >&6; }
6505 CONFIG_ALL="$CONFIG_ALL all-po"
6506 CONFIG_CLEAN="$CONFIG_CLEAN clean-po"
6507 CONFIG_INSTALL="$CONFIG_INSTALL install-po"
6508 CONFIG_UNINSTALL="$CONFIG_UNINSTALL uninstall-po"
6513 cat >>confdefs.h <<_ACEOF
6514 #define PACKAGE "$PACKAGE"
6519 debugdir=${libdir}/debug
6522 # Check whether --with-separate-debug-dir was given.
6523 if test "${with_separate_debug_dir+set}" = set; then
6524 withval=$with_separate_debug_dir; debugdir="${withval}"
6529 test "x$prefix" = xNONE && prefix="$ac_default_prefix"
6530 test "x$exec_prefix" = xNONE && exec_prefix='${prefix}'
6531 ac_define_dir=`eval echo $debugdir`
6532 ac_define_dir=`eval echo $ac_define_dir`
6534 cat >>confdefs.h <<_ACEOF
6535 #define DEBUGDIR "$ac_define_dir"
6539 #AC_DEFINE_UNQUOTED(DEBUGDIR, "$debugdir"),
6541 subdirs="$subdirs doc testsuite"
6544 # Provide defaults for some variables set by the per-host and per-target
6546 gdb_host_obs=posix-hdep.o
6548 . $srcdir/configure.host
6550 . $srcdir/configure.tgt
6552 # Fetch the default architecture and default target vector from BFD.
6553 targ=$target; . $srcdir/../bfd/config.bfd
6555 # We only want the first architecture, so strip off the others if
6556 # there is more than one.
6557 targ_archs=`echo $targ_archs | sed 's/ .*//'`
6559 if test "x$targ_archs" != x; then
6561 cat >>confdefs.h <<_ACEOF
6562 #define DEFAULT_BFD_ARCH $targ_archs
6566 if test "x$targ_defvec" != x; then
6568 cat >>confdefs.h <<_ACEOF
6569 #define DEFAULT_BFD_VEC $targ_defvec
6574 test "$program_prefix" != NONE &&
6575 program_transform_name="s&^&$program_prefix&;$program_transform_name"
6576 # Use a double $ so make ignores it.
6577 test "$program_suffix" != NONE &&
6578 program_transform_name="s&\$&$program_suffix&;$program_transform_name"
6579 # Double any \ or $. echo might interpret backslashes.
6580 # By default was `s,x,x', remove it if useless.
6581 cat <<\_ACEOF >conftest.sed
6582 s/[\\$]/&&/g;s/;s,x,x,$//
6584 program_transform_name=`echo $program_transform_name | sed -f conftest.sed`
6588 # The CLI cannot be disabled yet, but may be in the future.
6591 # Check whether --enable-gdbcli was given.
6592 if test "${enable_gdbcli+set}" = set; then
6593 enableval=$enable_gdbcli; case $enableval in
6597 { { echo "$as_me:$LINENO: error: the command-line interface cannot be disabled yet" >&5
6598 echo "$as_me: error: the command-line interface cannot be disabled yet" >&2;}
6599 { (exit 1); exit 1; }; } ;;
6601 { { echo "$as_me:$LINENO: error: bad value $enableval for --enable-gdbcli" >&5
6602 echo "$as_me: error: bad value $enableval for --enable-gdbcli" >&2;}
6603 { (exit 1); exit 1; }; } ;;
6609 if test x"$enable_gdbcli" = xyes; then
6610 if test -d $srcdir/cli; then
6611 CONFIG_OBS="$CONFIG_OBS \$(SUBDIR_CLI_OBS)"
6612 CONFIG_DEPS="$CONFIG_DEPS \$(SUBDIR_CLI_DEPS)"
6613 CONFIG_SRCS="$CONFIG_SRCS \$(SUBDIR_CLI_SRCS)"
6614 ENABLE_CFLAGS="$ENABLE_CFLAGS \$(SUBDIR_CLI_CFLAGS)"
6619 # Check whether --enable-gdbmi was given.
6620 if test "${enable_gdbmi+set}" = set; then
6621 enableval=$enable_gdbmi; case $enableval in
6625 { { echo "$as_me:$LINENO: error: bad value $enableval for --enable-gdbmi" >&5
6626 echo "$as_me: error: bad value $enableval for --enable-gdbmi" >&2;}
6627 { (exit 1); exit 1; }; } ;;
6633 if test x"$enable_gdbmi" = xyes; then
6634 if test -d $srcdir/mi; then
6635 CONFIG_OBS="$CONFIG_OBS \$(SUBDIR_MI_OBS)"
6636 CONFIG_DEPS="$CONFIG_DEPS \$(SUBDIR_MI_DEPS)"
6637 CONFIG_SRCS="$CONFIG_SRCS \$(SUBDIR_MI_SRCS)"
6638 ENABLE_CFLAGS="$ENABLE_CFLAGS \$(SUBDIR_MI_CFLAGS)"
6643 # Check whether --enable-tui was given.
6644 if test "${enable_tui+set}" = set; then
6645 enableval=$enable_tui; case $enableval in
6649 { { echo "$as_me:$LINENO: error: bad value $enableval for --enable-tui" >&5
6650 echo "$as_me: error: bad value $enableval for --enable-tui" >&2;}
6651 { (exit 1); exit 1; }; } ;;
6659 # Check whether --enable-gdbtk was given.
6660 if test "${enable_gdbtk+set}" = set; then
6661 enableval=$enable_gdbtk; case $enableval in
6665 { { echo "$as_me:$LINENO: error: bad value $enableval for --enable-gdbtk" >&5
6666 echo "$as_me: error: bad value $enableval for --enable-gdbtk" >&2;}
6667 { (exit 1); exit 1; }; } ;;
6670 if test -d $srcdir/gdbtk -a -d $srcdir/../itcl; then
6677 # We unconditionally disable gdbtk tests on selected platforms.
6680 { echo "$as_me:$LINENO: WARNING: gdbtk isn't supported on $host; disabling" >&5
6681 echo "$as_me: WARNING: gdbtk isn't supported on $host; disabling" >&2;}
6685 # Libunwind support.
6687 # Check whether --with-libunwind was given.
6688 if test "${with_libunwind+set}" = set; then
6689 withval=$with_libunwind; case "${withval}" in
6690 yes) enable_libunwind=yes ;;
6691 no) enable_libunwind=no ;;
6692 *) { { echo "$as_me:$LINENO: error: bad value ${withval} for GDB with-libunwind option" >&5
6693 echo "$as_me: error: bad value ${withval} for GDB with-libunwind option" >&2;}
6694 { (exit 1); exit 1; }; } ;;
6699 for ac_header in libunwind.h
6701 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
6702 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
6703 { echo "$as_me:$LINENO: checking for $ac_header" >&5
6704 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
6705 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
6706 echo $ECHO_N "(cached) $ECHO_C" >&6
6708 ac_res=`eval echo '${'$as_ac_Header'}'`
6709 { echo "$as_me:$LINENO: result: $ac_res" >&5
6710 echo "${ECHO_T}$ac_res" >&6; }
6712 # Is the header compilable?
6713 { echo "$as_me:$LINENO: checking $ac_header usability" >&5
6714 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
6715 cat >conftest.$ac_ext <<_ACEOF
6718 cat confdefs.h >>conftest.$ac_ext
6719 cat >>conftest.$ac_ext <<_ACEOF
6720 /* end confdefs.h. */
6721 $ac_includes_default
6722 #include <$ac_header>
6724 rm -f conftest.$ac_objext
6725 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
6726 (eval $ac_compile) 2>conftest.er1
6728 grep -v '^ *+' conftest.er1 >conftest.err
6730 cat conftest.err >&5
6731 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6732 (exit $ac_status); } &&
6733 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
6734 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6737 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6738 (exit $ac_status); }; } &&
6739 { ac_try='test -s conftest.$ac_objext'
6740 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6743 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6744 (exit $ac_status); }; }; then
6745 ac_header_compiler=yes
6747 echo "$as_me: failed program was:" >&5
6748 sed 's/^/| /' conftest.$ac_ext >&5
6750 ac_header_compiler=no
6753 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
6754 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
6755 echo "${ECHO_T}$ac_header_compiler" >&6; }
6757 # Is the header present?
6758 { echo "$as_me:$LINENO: checking $ac_header presence" >&5
6759 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
6760 cat >conftest.$ac_ext <<_ACEOF
6763 cat confdefs.h >>conftest.$ac_ext
6764 cat >>conftest.$ac_ext <<_ACEOF
6765 /* end confdefs.h. */
6766 #include <$ac_header>
6768 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
6769 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
6771 grep -v '^ *+' conftest.er1 >conftest.err
6773 cat conftest.err >&5
6774 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6775 (exit $ac_status); } >/dev/null; then
6776 if test -s conftest.err; then
6777 ac_cpp_err=$ac_c_preproc_warn_flag
6778 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
6785 if test -z "$ac_cpp_err"; then
6786 ac_header_preproc=yes
6788 echo "$as_me: failed program was:" >&5
6789 sed 's/^/| /' conftest.$ac_ext >&5
6791 ac_header_preproc=no
6794 rm -f conftest.err conftest.$ac_ext
6795 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
6796 echo "${ECHO_T}$ac_header_preproc" >&6; }
6798 # So? What about this header?
6799 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
6801 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
6802 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
6803 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
6804 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
6805 ac_header_preproc=yes
6808 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
6809 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
6810 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
6811 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
6812 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
6813 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
6814 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
6815 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
6816 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
6817 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
6818 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
6819 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
6823 { echo "$as_me:$LINENO: checking for $ac_header" >&5
6824 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
6825 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
6826 echo $ECHO_N "(cached) $ECHO_C" >&6
6828 eval "$as_ac_Header=\$ac_header_preproc"
6830 ac_res=`eval echo '${'$as_ac_Header'}'`
6831 { echo "$as_me:$LINENO: result: $ac_res" >&5
6832 echo "${ECHO_T}$ac_res" >&6; }
6835 if test `eval echo '${'$as_ac_Header'}'` = yes; then
6836 cat >>confdefs.h <<_ACEOF
6837 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
6845 for ac_header in libunwind-ia64.h
6847 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
6848 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
6849 { echo "$as_me:$LINENO: checking for $ac_header" >&5
6850 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
6851 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
6852 echo $ECHO_N "(cached) $ECHO_C" >&6
6854 ac_res=`eval echo '${'$as_ac_Header'}'`
6855 { echo "$as_me:$LINENO: result: $ac_res" >&5
6856 echo "${ECHO_T}$ac_res" >&6; }
6858 # Is the header compilable?
6859 { echo "$as_me:$LINENO: checking $ac_header usability" >&5
6860 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
6861 cat >conftest.$ac_ext <<_ACEOF
6864 cat confdefs.h >>conftest.$ac_ext
6865 cat >>conftest.$ac_ext <<_ACEOF
6866 /* end confdefs.h. */
6867 $ac_includes_default
6868 #include <$ac_header>
6870 rm -f conftest.$ac_objext
6871 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
6872 (eval $ac_compile) 2>conftest.er1
6874 grep -v '^ *+' conftest.er1 >conftest.err
6876 cat conftest.err >&5
6877 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6878 (exit $ac_status); } &&
6879 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
6880 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6883 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6884 (exit $ac_status); }; } &&
6885 { ac_try='test -s conftest.$ac_objext'
6886 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6889 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6890 (exit $ac_status); }; }; then
6891 ac_header_compiler=yes
6893 echo "$as_me: failed program was:" >&5
6894 sed 's/^/| /' conftest.$ac_ext >&5
6896 ac_header_compiler=no
6899 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
6900 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
6901 echo "${ECHO_T}$ac_header_compiler" >&6; }
6903 # Is the header present?
6904 { echo "$as_me:$LINENO: checking $ac_header presence" >&5
6905 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
6906 cat >conftest.$ac_ext <<_ACEOF
6909 cat confdefs.h >>conftest.$ac_ext
6910 cat >>conftest.$ac_ext <<_ACEOF
6911 /* end confdefs.h. */
6912 #include <$ac_header>
6914 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
6915 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
6917 grep -v '^ *+' conftest.er1 >conftest.err
6919 cat conftest.err >&5
6920 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6921 (exit $ac_status); } >/dev/null; then
6922 if test -s conftest.err; then
6923 ac_cpp_err=$ac_c_preproc_warn_flag
6924 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
6931 if test -z "$ac_cpp_err"; then
6932 ac_header_preproc=yes
6934 echo "$as_me: failed program was:" >&5
6935 sed 's/^/| /' conftest.$ac_ext >&5
6937 ac_header_preproc=no
6940 rm -f conftest.err conftest.$ac_ext
6941 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
6942 echo "${ECHO_T}$ac_header_preproc" >&6; }
6944 # So? What about this header?
6945 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
6947 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
6948 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
6949 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
6950 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
6951 ac_header_preproc=yes
6954 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
6955 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
6956 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
6957 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
6958 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
6959 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
6960 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
6961 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
6962 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
6963 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
6964 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
6965 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
6969 { echo "$as_me:$LINENO: checking for $ac_header" >&5
6970 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
6971 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
6972 echo $ECHO_N "(cached) $ECHO_C" >&6
6974 eval "$as_ac_Header=\$ac_header_preproc"
6976 ac_res=`eval echo '${'$as_ac_Header'}'`
6977 { echo "$as_me:$LINENO: result: $ac_res" >&5
6978 echo "${ECHO_T}$ac_res" >&6; }
6981 if test `eval echo '${'$as_ac_Header'}'` = yes; then
6982 cat >>confdefs.h <<_ACEOF
6983 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
6990 if test x"$ac_cv_header_libunwind_h" = xyes -a x"$ac_cv_header_libunwind_ia64_h" = xyes; then
6991 enable_libunwind=yes;
6997 if test x"$enable_libunwind" = xyes; then
6999 for ac_header in libunwind.h
7001 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
7002 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
7003 { echo "$as_me:$LINENO: checking for $ac_header" >&5
7004 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
7005 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
7006 echo $ECHO_N "(cached) $ECHO_C" >&6
7008 ac_res=`eval echo '${'$as_ac_Header'}'`
7009 { echo "$as_me:$LINENO: result: $ac_res" >&5
7010 echo "${ECHO_T}$ac_res" >&6; }
7012 # Is the header compilable?
7013 { echo "$as_me:$LINENO: checking $ac_header usability" >&5
7014 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
7015 cat >conftest.$ac_ext <<_ACEOF
7018 cat confdefs.h >>conftest.$ac_ext
7019 cat >>conftest.$ac_ext <<_ACEOF
7020 /* end confdefs.h. */
7021 $ac_includes_default
7022 #include <$ac_header>
7024 rm -f conftest.$ac_objext
7025 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
7026 (eval $ac_compile) 2>conftest.er1
7028 grep -v '^ *+' conftest.er1 >conftest.err
7030 cat conftest.err >&5
7031 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7032 (exit $ac_status); } &&
7033 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
7034 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7037 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7038 (exit $ac_status); }; } &&
7039 { ac_try='test -s conftest.$ac_objext'
7040 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7043 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7044 (exit $ac_status); }; }; then
7045 ac_header_compiler=yes
7047 echo "$as_me: failed program was:" >&5
7048 sed 's/^/| /' conftest.$ac_ext >&5
7050 ac_header_compiler=no
7053 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
7054 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
7055 echo "${ECHO_T}$ac_header_compiler" >&6; }
7057 # Is the header present?
7058 { echo "$as_me:$LINENO: checking $ac_header presence" >&5
7059 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
7060 cat >conftest.$ac_ext <<_ACEOF
7063 cat confdefs.h >>conftest.$ac_ext
7064 cat >>conftest.$ac_ext <<_ACEOF
7065 /* end confdefs.h. */
7066 #include <$ac_header>
7068 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
7069 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
7071 grep -v '^ *+' conftest.er1 >conftest.err
7073 cat conftest.err >&5
7074 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7075 (exit $ac_status); } >/dev/null; then
7076 if test -s conftest.err; then
7077 ac_cpp_err=$ac_c_preproc_warn_flag
7078 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
7085 if test -z "$ac_cpp_err"; then
7086 ac_header_preproc=yes
7088 echo "$as_me: failed program was:" >&5
7089 sed 's/^/| /' conftest.$ac_ext >&5
7091 ac_header_preproc=no
7094 rm -f conftest.err conftest.$ac_ext
7095 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
7096 echo "${ECHO_T}$ac_header_preproc" >&6; }
7098 # So? What about this header?
7099 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
7101 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
7102 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
7103 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
7104 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
7105 ac_header_preproc=yes
7108 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
7109 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
7110 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
7111 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
7112 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
7113 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
7114 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
7115 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
7116 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
7117 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
7118 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
7119 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
7123 { echo "$as_me:$LINENO: checking for $ac_header" >&5
7124 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
7125 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
7126 echo $ECHO_N "(cached) $ECHO_C" >&6
7128 eval "$as_ac_Header=\$ac_header_preproc"
7130 ac_res=`eval echo '${'$as_ac_Header'}'`
7131 { echo "$as_me:$LINENO: result: $ac_res" >&5
7132 echo "${ECHO_T}$ac_res" >&6; }
7135 if test `eval echo '${'$as_ac_Header'}'` = yes; then
7136 cat >>confdefs.h <<_ACEOF
7137 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
7145 for ac_header in libunwind-ia64.h
7147 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
7148 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
7149 { echo "$as_me:$LINENO: checking for $ac_header" >&5
7150 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
7151 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
7152 echo $ECHO_N "(cached) $ECHO_C" >&6
7154 ac_res=`eval echo '${'$as_ac_Header'}'`
7155 { echo "$as_me:$LINENO: result: $ac_res" >&5
7156 echo "${ECHO_T}$ac_res" >&6; }
7158 # Is the header compilable?
7159 { echo "$as_me:$LINENO: checking $ac_header usability" >&5
7160 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
7161 cat >conftest.$ac_ext <<_ACEOF
7164 cat confdefs.h >>conftest.$ac_ext
7165 cat >>conftest.$ac_ext <<_ACEOF
7166 /* end confdefs.h. */
7167 $ac_includes_default
7168 #include <$ac_header>
7170 rm -f conftest.$ac_objext
7171 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
7172 (eval $ac_compile) 2>conftest.er1
7174 grep -v '^ *+' conftest.er1 >conftest.err
7176 cat conftest.err >&5
7177 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7178 (exit $ac_status); } &&
7179 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
7180 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7183 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7184 (exit $ac_status); }; } &&
7185 { ac_try='test -s conftest.$ac_objext'
7186 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7189 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7190 (exit $ac_status); }; }; then
7191 ac_header_compiler=yes
7193 echo "$as_me: failed program was:" >&5
7194 sed 's/^/| /' conftest.$ac_ext >&5
7196 ac_header_compiler=no
7199 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
7200 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
7201 echo "${ECHO_T}$ac_header_compiler" >&6; }
7203 # Is the header present?
7204 { echo "$as_me:$LINENO: checking $ac_header presence" >&5
7205 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
7206 cat >conftest.$ac_ext <<_ACEOF
7209 cat confdefs.h >>conftest.$ac_ext
7210 cat >>conftest.$ac_ext <<_ACEOF
7211 /* end confdefs.h. */
7212 #include <$ac_header>
7214 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
7215 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
7217 grep -v '^ *+' conftest.er1 >conftest.err
7219 cat conftest.err >&5
7220 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7221 (exit $ac_status); } >/dev/null; then
7222 if test -s conftest.err; then
7223 ac_cpp_err=$ac_c_preproc_warn_flag
7224 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
7231 if test -z "$ac_cpp_err"; then
7232 ac_header_preproc=yes
7234 echo "$as_me: failed program was:" >&5
7235 sed 's/^/| /' conftest.$ac_ext >&5
7237 ac_header_preproc=no
7240 rm -f conftest.err conftest.$ac_ext
7241 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
7242 echo "${ECHO_T}$ac_header_preproc" >&6; }
7244 # So? What about this header?
7245 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
7247 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
7248 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
7249 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
7250 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
7251 ac_header_preproc=yes
7254 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
7255 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
7256 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
7257 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
7258 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
7259 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
7260 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
7261 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
7262 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
7263 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
7264 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
7265 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
7269 { echo "$as_me:$LINENO: checking for $ac_header" >&5
7270 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
7271 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
7272 echo $ECHO_N "(cached) $ECHO_C" >&6
7274 eval "$as_ac_Header=\$ac_header_preproc"
7276 ac_res=`eval echo '${'$as_ac_Header'}'`
7277 { echo "$as_me:$LINENO: result: $ac_res" >&5
7278 echo "${ECHO_T}$ac_res" >&6; }
7281 if test `eval echo '${'$as_ac_Header'}'` = yes; then
7282 cat >>confdefs.h <<_ACEOF
7283 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
7291 cat >>confdefs.h <<\_ACEOF
7292 #define HAVE_LIBUNWIND 1
7295 CONFIG_OBS="$CONFIG_OBS libunwind-frame.o"
7296 CONFIG_DEPS="$CONFIG_DEPS libunwind-frame.o"
7297 CONFIG_SRCS="$CONFIG_SRCS libunwind-frame.c"
7300 # Profiling support.
7301 # Check whether --enable-profiling was given.
7302 if test "${enable_profiling+set}" = set; then
7303 enableval=$enable_profiling; case $enableval in
7307 { { echo "$as_me:$LINENO: error: bad value $enableval for --enable-profile" >&5
7308 echo "$as_me: error: bad value $enableval for --enable-profile" >&2;}
7309 { (exit 1); exit 1; }; } ;;
7318 for ac_func in monstartup _mcleanup
7320 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
7321 { echo "$as_me:$LINENO: checking for $ac_func" >&5
7322 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
7323 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
7324 echo $ECHO_N "(cached) $ECHO_C" >&6
7326 cat >conftest.$ac_ext <<_ACEOF
7329 cat confdefs.h >>conftest.$ac_ext
7330 cat >>conftest.$ac_ext <<_ACEOF
7331 /* end confdefs.h. */
7332 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
7333 For example, HP-UX 11i <limits.h> declares gettimeofday. */
7334 #define $ac_func innocuous_$ac_func
7336 /* System header to define __stub macros and hopefully few prototypes,
7337 which can conflict with char $ac_func (); below.
7338 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
7339 <limits.h> exists even on freestanding compilers. */
7342 # include <limits.h>
7344 # include <assert.h>
7349 /* Override any GCC internal prototype to avoid an error.
7350 Use char because int might match the return type of a GCC
7351 builtin and then its argument prototype would still apply. */
7356 /* The GNU C library defines this for functions which it implements
7357 to always fail with ENOSYS. Some functions are actually named
7358 something starting with __ and the normal name is an alias. */
7359 #if defined __stub_$ac_func || defined __stub___$ac_func
7371 rm -f conftest.$ac_objext conftest$ac_exeext
7372 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
7373 (eval $ac_link) 2>conftest.er1
7375 grep -v '^ *+' conftest.er1 >conftest.err
7377 cat conftest.err >&5
7378 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7379 (exit $ac_status); } &&
7380 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
7381 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7384 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7385 (exit $ac_status); }; } &&
7386 { ac_try='test -s conftest$ac_exeext'
7387 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7390 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7391 (exit $ac_status); }; }; then
7392 eval "$as_ac_var=yes"
7394 echo "$as_me: failed program was:" >&5
7395 sed 's/^/| /' conftest.$ac_ext >&5
7397 eval "$as_ac_var=no"
7400 rm -f conftest.err conftest.$ac_objext \
7401 conftest$ac_exeext conftest.$ac_ext
7403 ac_res=`eval echo '${'$as_ac_var'}'`
7404 { echo "$as_me:$LINENO: result: $ac_res" >&5
7405 echo "${ECHO_T}$ac_res" >&6; }
7406 if test `eval echo '${'$as_ac_var'}'` = yes; then
7407 cat >>confdefs.h <<_ACEOF
7408 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
7414 { echo "$as_me:$LINENO: checking for _etext" >&5
7415 echo $ECHO_N "checking for _etext... $ECHO_C" >&6; }
7416 if test "${ac_cv_var__etext+set}" = set; then
7417 echo $ECHO_N "(cached) $ECHO_C" >&6
7419 cat >conftest.$ac_ext <<_ACEOF
7422 cat confdefs.h >>conftest.$ac_ext
7423 cat >>conftest.$ac_ext <<_ACEOF
7424 /* end confdefs.h. */
7436 rm -f conftest.$ac_objext conftest$ac_exeext
7437 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
7438 (eval $ac_link) 2>conftest.er1
7440 grep -v '^ *+' conftest.er1 >conftest.err
7442 cat conftest.err >&5
7443 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7444 (exit $ac_status); } &&
7445 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
7446 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7449 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7450 (exit $ac_status); }; } &&
7451 { ac_try='test -s conftest$ac_exeext'
7452 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7455 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7456 (exit $ac_status); }; }; then
7457 ac_cv_var__etext=yes
7459 echo "$as_me: failed program was:" >&5
7460 sed 's/^/| /' conftest.$ac_ext >&5
7465 rm -f conftest.err conftest.$ac_objext \
7466 conftest$ac_exeext conftest.$ac_ext
7468 { echo "$as_me:$LINENO: result: $ac_cv_var__etext" >&5
7469 echo "${ECHO_T}$ac_cv_var__etext" >&6; }
7470 if test $ac_cv_var__etext = yes; then
7472 cat >>confdefs.h <<\_ACEOF
7473 #define HAVE__ETEXT 1
7477 if test "$enable_profiling" = yes ; then
7478 if test $ac_cv_func_monstartup = no || test $ac_cv_func__mcleanup = no; then
7479 { { echo "$as_me:$LINENO: error: --enable-profiling requires monstartup and _mcleanup" >&5
7480 echo "$as_me: error: --enable-profiling requires monstartup and _mcleanup" >&2;}
7481 { (exit 1); exit 1; }; }
7484 OLD_CFLAGS="$CFLAGS"
7485 CFLAGS="$CFLAGS $PROFILE_CFLAGS"
7487 { echo "$as_me:$LINENO: checking whether $CC supports -pg" >&5
7488 echo $ECHO_N "checking whether $CC supports -pg... $ECHO_C" >&6; }
7489 if test "${ac_cv_cc_supports_pg+set}" = set; then
7490 echo $ECHO_N "(cached) $ECHO_C" >&6
7492 cat >conftest.$ac_ext <<_ACEOF
7495 cat confdefs.h >>conftest.$ac_ext
7496 cat >>conftest.$ac_ext <<_ACEOF
7497 /* end confdefs.h. */
7507 rm -f conftest.$ac_objext
7508 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
7509 (eval $ac_compile) 2>conftest.er1
7511 grep -v '^ *+' conftest.er1 >conftest.err
7513 cat conftest.err >&5
7514 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7515 (exit $ac_status); } &&
7516 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
7517 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7520 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7521 (exit $ac_status); }; } &&
7522 { ac_try='test -s conftest.$ac_objext'
7523 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7526 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7527 (exit $ac_status); }; }; then
7528 ac_cv_cc_supports_pg=yes
7530 echo "$as_me: failed program was:" >&5
7531 sed 's/^/| /' conftest.$ac_ext >&5
7533 ac_cv_cc_supports_pg=no
7536 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
7538 { echo "$as_me:$LINENO: result: $ac_cv_cc_supports_pg" >&5
7539 echo "${ECHO_T}$ac_cv_cc_supports_pg" >&6; }
7541 if test $ac_cv_cc_supports_pg = no; then
7542 { { echo "$as_me:$LINENO: error: --enable-profiling requires a compiler which supports -pg" >&5
7543 echo "$as_me: error: --enable-profiling requires a compiler which supports -pg" >&2;}
7544 { (exit 1); exit 1; }; }
7547 CFLAGS="$OLD_CFLAGS"
7550 # --------------------- #
7551 # Checks for programs. #
7552 # --------------------- #
7554 for ac_prog in gawk mawk nawk awk
7556 # Extract the first word of "$ac_prog", so it can be a program name with args.
7557 set dummy $ac_prog; ac_word=$2
7558 { echo "$as_me:$LINENO: checking for $ac_word" >&5
7559 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
7560 if test "${ac_cv_prog_AWK+set}" = set; then
7561 echo $ECHO_N "(cached) $ECHO_C" >&6
7563 if test -n "$AWK"; then
7564 ac_cv_prog_AWK="$AWK" # Let the user override the test.
7566 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7570 test -z "$as_dir" && as_dir=.
7571 for ac_exec_ext in '' $ac_executable_extensions; do
7572 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
7573 ac_cv_prog_AWK="$ac_prog"
7574 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7584 if test -n "$AWK"; then
7585 { echo "$as_me:$LINENO: result: $AWK" >&5
7586 echo "${ECHO_T}$AWK" >&6; }
7588 { echo "$as_me:$LINENO: result: no" >&5
7589 echo "${ECHO_T}no" >&6; }
7593 test -n "$AWK" && break
7596 # Find a good install program. We prefer a C program (faster),
7597 # so one script is as good as another. But avoid the broken or
7598 # incompatible versions:
7599 # SysV /etc/install, /usr/sbin/install
7600 # SunOS /usr/etc/install
7601 # IRIX /sbin/install
7603 # AmigaOS /C/install, which installs bootblocks on floppy discs
7604 # AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag
7605 # AFS /usr/afsws/bin/install, which mishandles nonexistent args
7606 # SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff"
7607 # OS/2's system install, which has a completely different semantic
7608 # ./install, which can be erroneously created by make from ./install.sh.
7609 { echo "$as_me:$LINENO: checking for a BSD-compatible install" >&5
7610 echo $ECHO_N "checking for a BSD-compatible install... $ECHO_C" >&6; }
7611 if test -z "$INSTALL"; then
7612 if test "${ac_cv_path_install+set}" = set; then
7613 echo $ECHO_N "(cached) $ECHO_C" >&6
7615 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7619 test -z "$as_dir" && as_dir=.
7620 # Account for people who put trailing slashes in PATH elements.
7622 ./ | .// | /cC/* | \
7623 /etc/* | /usr/sbin/* | /usr/etc/* | /sbin/* | /usr/afsws/bin/* | \
7624 ?:\\/os2\\/install\\/* | ?:\\/OS2\\/INSTALL\\/* | \
7627 # OSF1 and SCO ODT 3.0 have their own names for install.
7628 # Don't use installbsd from OSF since it installs stuff as root
7630 for ac_prog in ginstall scoinst install; do
7631 for ac_exec_ext in '' $ac_executable_extensions; do
7632 if { test -f "$as_dir/$ac_prog$ac_exec_ext" && $as_executable_p "$as_dir/$ac_prog$ac_exec_ext"; }; then
7633 if test $ac_prog = install &&
7634 grep dspmsg "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
7635 # AIX install. It has an incompatible calling convention.
7637 elif test $ac_prog = install &&
7638 grep pwplus "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
7639 # program-specific install script used by HP pwplus--don't use.
7642 ac_cv_path_install="$as_dir/$ac_prog$ac_exec_ext -c"
7655 if test "${ac_cv_path_install+set}" = set; then
7656 INSTALL=$ac_cv_path_install
7658 # As a last resort, use the slow shell script. Don't cache a
7659 # value for INSTALL within a source directory, because that will
7660 # break other packages using the cache if that directory is
7661 # removed, or if the value is a relative name.
7662 INSTALL=$ac_install_sh
7665 { echo "$as_me:$LINENO: result: $INSTALL" >&5
7666 echo "${ECHO_T}$INSTALL" >&6; }
7668 # Use test -z because SunOS4 sh mishandles braces in ${var-val}.
7669 # It thinks the first close brace ends the variable substitution.
7670 test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}'
7672 test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL}'
7674 test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644'
7676 { echo "$as_me:$LINENO: checking whether ln -s works" >&5
7677 echo $ECHO_N "checking whether ln -s works... $ECHO_C" >&6; }
7679 if test "$LN_S" = "ln -s"; then
7680 { echo "$as_me:$LINENO: result: yes" >&5
7681 echo "${ECHO_T}yes" >&6; }
7683 { echo "$as_me:$LINENO: result: no, using $LN_S" >&5
7684 echo "${ECHO_T}no, using $LN_S" >&6; }
7687 if test -n "$ac_tool_prefix"; then
7688 # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args.
7689 set dummy ${ac_tool_prefix}ranlib; ac_word=$2
7690 { echo "$as_me:$LINENO: checking for $ac_word" >&5
7691 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
7692 if test "${ac_cv_prog_RANLIB+set}" = set; then
7693 echo $ECHO_N "(cached) $ECHO_C" >&6
7695 if test -n "$RANLIB"; then
7696 ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
7698 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7702 test -z "$as_dir" && as_dir=.
7703 for ac_exec_ext in '' $ac_executable_extensions; do
7704 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
7705 ac_cv_prog_RANLIB="${ac_tool_prefix}ranlib"
7706 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7715 RANLIB=$ac_cv_prog_RANLIB
7716 if test -n "$RANLIB"; then
7717 { echo "$as_me:$LINENO: result: $RANLIB" >&5
7718 echo "${ECHO_T}$RANLIB" >&6; }
7720 { echo "$as_me:$LINENO: result: no" >&5
7721 echo "${ECHO_T}no" >&6; }
7726 if test -z "$ac_cv_prog_RANLIB"; then
7727 ac_ct_RANLIB=$RANLIB
7728 # Extract the first word of "ranlib", so it can be a program name with args.
7729 set dummy ranlib; ac_word=$2
7730 { echo "$as_me:$LINENO: checking for $ac_word" >&5
7731 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
7732 if test "${ac_cv_prog_ac_ct_RANLIB+set}" = set; then
7733 echo $ECHO_N "(cached) $ECHO_C" >&6
7735 if test -n "$ac_ct_RANLIB"; then
7736 ac_cv_prog_ac_ct_RANLIB="$ac_ct_RANLIB" # Let the user override the test.
7738 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7742 test -z "$as_dir" && as_dir=.
7743 for ac_exec_ext in '' $ac_executable_extensions; do
7744 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
7745 ac_cv_prog_ac_ct_RANLIB="ranlib"
7746 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7755 ac_ct_RANLIB=$ac_cv_prog_ac_ct_RANLIB
7756 if test -n "$ac_ct_RANLIB"; then
7757 { echo "$as_me:$LINENO: result: $ac_ct_RANLIB" >&5
7758 echo "${ECHO_T}$ac_ct_RANLIB" >&6; }
7760 { echo "$as_me:$LINENO: result: no" >&5
7761 echo "${ECHO_T}no" >&6; }
7764 if test "x$ac_ct_RANLIB" = x; then
7767 case $cross_compiling:$ac_tool_warned in
7769 { echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
7770 whose name does not start with the host triplet. If you think this
7771 configuration is useful to you, please write to autoconf@gnu.org." >&5
7772 echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
7773 whose name does not start with the host triplet. If you think this
7774 configuration is useful to you, please write to autoconf@gnu.org." >&2;}
7775 ac_tool_warned=yes ;;
7777 RANLIB=$ac_ct_RANLIB
7780 RANLIB="$ac_cv_prog_RANLIB"
7783 for ac_prog in 'bison -y' byacc
7785 # Extract the first word of "$ac_prog", so it can be a program name with args.
7786 set dummy $ac_prog; ac_word=$2
7787 { echo "$as_me:$LINENO: checking for $ac_word" >&5
7788 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
7789 if test "${ac_cv_prog_YACC+set}" = set; then
7790 echo $ECHO_N "(cached) $ECHO_C" >&6
7792 if test -n "$YACC"; then
7793 ac_cv_prog_YACC="$YACC" # Let the user override the test.
7795 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7799 test -z "$as_dir" && as_dir=.
7800 for ac_exec_ext in '' $ac_executable_extensions; do
7801 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
7802 ac_cv_prog_YACC="$ac_prog"
7803 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7812 YACC=$ac_cv_prog_YACC
7813 if test -n "$YACC"; then
7814 { echo "$as_me:$LINENO: result: $YACC" >&5
7815 echo "${ECHO_T}$YACC" >&6; }
7817 { echo "$as_me:$LINENO: result: no" >&5
7818 echo "${ECHO_T}no" >&6; }
7822 test -n "$YACC" && break
7824 test -n "$YACC" || YACC="yacc"
7827 if test -n "$ac_tool_prefix"; then
7828 # Extract the first word of "${ac_tool_prefix}ar", so it can be a program name with args.
7829 set dummy ${ac_tool_prefix}ar; ac_word=$2
7830 { echo "$as_me:$LINENO: checking for $ac_word" >&5
7831 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
7832 if test "${ac_cv_prog_AR+set}" = set; then
7833 echo $ECHO_N "(cached) $ECHO_C" >&6
7835 if test -n "$AR"; then
7836 ac_cv_prog_AR="$AR" # Let the user override the test.
7838 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7842 test -z "$as_dir" && as_dir=.
7843 for ac_exec_ext in '' $ac_executable_extensions; do
7844 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
7845 ac_cv_prog_AR="${ac_tool_prefix}ar"
7846 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7856 if test -n "$AR"; then
7857 { echo "$as_me:$LINENO: result: $AR" >&5
7858 echo "${ECHO_T}$AR" >&6; }
7860 { echo "$as_me:$LINENO: result: no" >&5
7861 echo "${ECHO_T}no" >&6; }
7866 if test -z "$ac_cv_prog_AR"; then
7868 # Extract the first word of "ar", so it can be a program name with args.
7869 set dummy ar; ac_word=$2
7870 { echo "$as_me:$LINENO: checking for $ac_word" >&5
7871 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
7872 if test "${ac_cv_prog_ac_ct_AR+set}" = set; then
7873 echo $ECHO_N "(cached) $ECHO_C" >&6
7875 if test -n "$ac_ct_AR"; then
7876 ac_cv_prog_ac_ct_AR="$ac_ct_AR" # Let the user override the test.
7878 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7882 test -z "$as_dir" && as_dir=.
7883 for ac_exec_ext in '' $ac_executable_extensions; do
7884 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
7885 ac_cv_prog_ac_ct_AR="ar"
7886 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7895 ac_ct_AR=$ac_cv_prog_ac_ct_AR
7896 if test -n "$ac_ct_AR"; then
7897 { echo "$as_me:$LINENO: result: $ac_ct_AR" >&5
7898 echo "${ECHO_T}$ac_ct_AR" >&6; }
7900 { echo "$as_me:$LINENO: result: no" >&5
7901 echo "${ECHO_T}no" >&6; }
7904 if test "x$ac_ct_AR" = x; then
7907 case $cross_compiling:$ac_tool_warned in
7909 { echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
7910 whose name does not start with the host triplet. If you think this
7911 configuration is useful to you, please write to autoconf@gnu.org." >&5
7912 echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
7913 whose name does not start with the host triplet. If you think this
7914 configuration is useful to you, please write to autoconf@gnu.org." >&2;}
7915 ac_tool_warned=yes ;;
7923 if test -n "$ac_tool_prefix"; then
7924 # Extract the first word of "${ac_tool_prefix}dlltool", so it can be a program name with args.
7925 set dummy ${ac_tool_prefix}dlltool; ac_word=$2
7926 { echo "$as_me:$LINENO: checking for $ac_word" >&5
7927 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
7928 if test "${ac_cv_prog_DLLTOOL+set}" = set; then
7929 echo $ECHO_N "(cached) $ECHO_C" >&6
7931 if test -n "$DLLTOOL"; then
7932 ac_cv_prog_DLLTOOL="$DLLTOOL" # Let the user override the test.
7934 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7938 test -z "$as_dir" && as_dir=.
7939 for ac_exec_ext in '' $ac_executable_extensions; do
7940 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
7941 ac_cv_prog_DLLTOOL="${ac_tool_prefix}dlltool"
7942 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7951 DLLTOOL=$ac_cv_prog_DLLTOOL
7952 if test -n "$DLLTOOL"; then
7953 { echo "$as_me:$LINENO: result: $DLLTOOL" >&5
7954 echo "${ECHO_T}$DLLTOOL" >&6; }
7956 { echo "$as_me:$LINENO: result: no" >&5
7957 echo "${ECHO_T}no" >&6; }
7962 if test -z "$ac_cv_prog_DLLTOOL"; then
7963 ac_ct_DLLTOOL=$DLLTOOL
7964 # Extract the first word of "dlltool", so it can be a program name with args.
7965 set dummy dlltool; ac_word=$2
7966 { echo "$as_me:$LINENO: checking for $ac_word" >&5
7967 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
7968 if test "${ac_cv_prog_ac_ct_DLLTOOL+set}" = set; then
7969 echo $ECHO_N "(cached) $ECHO_C" >&6
7971 if test -n "$ac_ct_DLLTOOL"; then
7972 ac_cv_prog_ac_ct_DLLTOOL="$ac_ct_DLLTOOL" # Let the user override the test.
7974 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7978 test -z "$as_dir" && as_dir=.
7979 for ac_exec_ext in '' $ac_executable_extensions; do
7980 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
7981 ac_cv_prog_ac_ct_DLLTOOL="dlltool"
7982 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7991 ac_ct_DLLTOOL=$ac_cv_prog_ac_ct_DLLTOOL
7992 if test -n "$ac_ct_DLLTOOL"; then
7993 { echo "$as_me:$LINENO: result: $ac_ct_DLLTOOL" >&5
7994 echo "${ECHO_T}$ac_ct_DLLTOOL" >&6; }
7996 { echo "$as_me:$LINENO: result: no" >&5
7997 echo "${ECHO_T}no" >&6; }
8000 if test "x$ac_ct_DLLTOOL" = x; then
8003 case $cross_compiling:$ac_tool_warned in
8005 { echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
8006 whose name does not start with the host triplet. If you think this
8007 configuration is useful to you, please write to autoconf@gnu.org." >&5
8008 echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
8009 whose name does not start with the host triplet. If you think this
8010 configuration is useful to you, please write to autoconf@gnu.org." >&2;}
8011 ac_tool_warned=yes ;;
8013 DLLTOOL=$ac_ct_DLLTOOL
8016 DLLTOOL="$ac_cv_prog_DLLTOOL"
8019 if test -n "$ac_tool_prefix"; then
8020 # Extract the first word of "${ac_tool_prefix}windres", so it can be a program name with args.
8021 set dummy ${ac_tool_prefix}windres; ac_word=$2
8022 { echo "$as_me:$LINENO: checking for $ac_word" >&5
8023 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
8024 if test "${ac_cv_prog_WINDRES+set}" = set; then
8025 echo $ECHO_N "(cached) $ECHO_C" >&6
8027 if test -n "$WINDRES"; then
8028 ac_cv_prog_WINDRES="$WINDRES" # Let the user override the test.
8030 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8034 test -z "$as_dir" && as_dir=.
8035 for ac_exec_ext in '' $ac_executable_extensions; do
8036 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
8037 ac_cv_prog_WINDRES="${ac_tool_prefix}windres"
8038 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
8047 WINDRES=$ac_cv_prog_WINDRES
8048 if test -n "$WINDRES"; then
8049 { echo "$as_me:$LINENO: result: $WINDRES" >&5
8050 echo "${ECHO_T}$WINDRES" >&6; }
8052 { echo "$as_me:$LINENO: result: no" >&5
8053 echo "${ECHO_T}no" >&6; }
8058 if test -z "$ac_cv_prog_WINDRES"; then
8059 ac_ct_WINDRES=$WINDRES
8060 # Extract the first word of "windres", so it can be a program name with args.
8061 set dummy windres; ac_word=$2
8062 { echo "$as_me:$LINENO: checking for $ac_word" >&5
8063 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
8064 if test "${ac_cv_prog_ac_ct_WINDRES+set}" = set; then
8065 echo $ECHO_N "(cached) $ECHO_C" >&6
8067 if test -n "$ac_ct_WINDRES"; then
8068 ac_cv_prog_ac_ct_WINDRES="$ac_ct_WINDRES" # Let the user override the test.
8070 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8074 test -z "$as_dir" && as_dir=.
8075 for ac_exec_ext in '' $ac_executable_extensions; do
8076 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
8077 ac_cv_prog_ac_ct_WINDRES="windres"
8078 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
8087 ac_ct_WINDRES=$ac_cv_prog_ac_ct_WINDRES
8088 if test -n "$ac_ct_WINDRES"; then
8089 { echo "$as_me:$LINENO: result: $ac_ct_WINDRES" >&5
8090 echo "${ECHO_T}$ac_ct_WINDRES" >&6; }
8092 { echo "$as_me:$LINENO: result: no" >&5
8093 echo "${ECHO_T}no" >&6; }
8096 if test "x$ac_ct_WINDRES" = x; then
8099 case $cross_compiling:$ac_tool_warned in
8101 { echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
8102 whose name does not start with the host triplet. If you think this
8103 configuration is useful to you, please write to autoconf@gnu.org." >&5
8104 echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
8105 whose name does not start with the host triplet. If you think this
8106 configuration is useful to you, please write to autoconf@gnu.org." >&2;}
8107 ac_tool_warned=yes ;;
8109 WINDRES=$ac_ct_WINDRES
8112 WINDRES="$ac_cv_prog_WINDRES"
8116 # Needed for GNU/Hurd.
8117 if test -n "$ac_tool_prefix"; then
8118 # Extract the first word of "${ac_tool_prefix}mig", so it can be a program name with args.
8119 set dummy ${ac_tool_prefix}mig; ac_word=$2
8120 { echo "$as_me:$LINENO: checking for $ac_word" >&5
8121 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
8122 if test "${ac_cv_prog_MIG+set}" = set; then
8123 echo $ECHO_N "(cached) $ECHO_C" >&6
8125 if test -n "$MIG"; then
8126 ac_cv_prog_MIG="$MIG" # Let the user override the test.
8128 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8132 test -z "$as_dir" && as_dir=.
8133 for ac_exec_ext in '' $ac_executable_extensions; do
8134 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
8135 ac_cv_prog_MIG="${ac_tool_prefix}mig"
8136 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
8146 if test -n "$MIG"; then
8147 { echo "$as_me:$LINENO: result: $MIG" >&5
8148 echo "${ECHO_T}$MIG" >&6; }
8150 { echo "$as_me:$LINENO: result: no" >&5
8151 echo "${ECHO_T}no" >&6; }
8156 if test -z "$ac_cv_prog_MIG"; then
8158 # Extract the first word of "mig", so it can be a program name with args.
8159 set dummy mig; ac_word=$2
8160 { echo "$as_me:$LINENO: checking for $ac_word" >&5
8161 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
8162 if test "${ac_cv_prog_ac_ct_MIG+set}" = set; then
8163 echo $ECHO_N "(cached) $ECHO_C" >&6
8165 if test -n "$ac_ct_MIG"; then
8166 ac_cv_prog_ac_ct_MIG="$ac_ct_MIG" # Let the user override the test.
8168 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8172 test -z "$as_dir" && as_dir=.
8173 for ac_exec_ext in '' $ac_executable_extensions; do
8174 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
8175 ac_cv_prog_ac_ct_MIG="mig"
8176 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
8185 ac_ct_MIG=$ac_cv_prog_ac_ct_MIG
8186 if test -n "$ac_ct_MIG"; then
8187 { echo "$as_me:$LINENO: result: $ac_ct_MIG" >&5
8188 echo "${ECHO_T}$ac_ct_MIG" >&6; }
8190 { echo "$as_me:$LINENO: result: no" >&5
8191 echo "${ECHO_T}no" >&6; }
8194 if test "x$ac_ct_MIG" = x; then
8197 case $cross_compiling:$ac_tool_warned in
8199 { echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
8200 whose name does not start with the host triplet. If you think this
8201 configuration is useful to you, please write to autoconf@gnu.org." >&5
8202 echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
8203 whose name does not start with the host triplet. If you think this
8204 configuration is useful to you, please write to autoconf@gnu.org." >&2;}
8205 ac_tool_warned=yes ;;
8210 MIG="$ac_cv_prog_MIG"
8214 # ---------------------- #
8215 # Checks for libraries. #
8216 # ---------------------- #
8218 # We might need to link with -lm; most simulators need it.
8220 { echo "$as_me:$LINENO: checking for main in -lm" >&5
8221 echo $ECHO_N "checking for main in -lm... $ECHO_C" >&6; }
8222 if test "${ac_cv_lib_m_main+set}" = set; then
8223 echo $ECHO_N "(cached) $ECHO_C" >&6
8225 ac_check_lib_save_LIBS=$LIBS
8227 cat >conftest.$ac_ext <<_ACEOF
8230 cat confdefs.h >>conftest.$ac_ext
8231 cat >>conftest.$ac_ext <<_ACEOF
8232 /* end confdefs.h. */
8243 rm -f conftest.$ac_objext conftest$ac_exeext
8244 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
8245 (eval $ac_link) 2>conftest.er1
8247 grep -v '^ *+' conftest.er1 >conftest.err
8249 cat conftest.err >&5
8250 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8251 (exit $ac_status); } &&
8252 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
8253 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8256 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8257 (exit $ac_status); }; } &&
8258 { ac_try='test -s conftest$ac_exeext'
8259 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8262 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8263 (exit $ac_status); }; }; then
8264 ac_cv_lib_m_main=yes
8266 echo "$as_me: failed program was:" >&5
8267 sed 's/^/| /' conftest.$ac_ext >&5
8272 rm -f conftest.err conftest.$ac_objext \
8273 conftest$ac_exeext conftest.$ac_ext
8274 LIBS=$ac_check_lib_save_LIBS
8276 { echo "$as_me:$LINENO: result: $ac_cv_lib_m_main" >&5
8277 echo "${ECHO_T}$ac_cv_lib_m_main" >&6; }
8278 if test $ac_cv_lib_m_main = yes; then
8279 cat >>confdefs.h <<_ACEOF
8288 # We need to link with -lw to get `wctype' on Solaris before Solaris
8289 # 2.6. Solaris 2.6 and beyond have this function in libc, and have a
8290 # libw that some versions of the GNU linker cannot hanle (GNU ld 2.9.1
8291 # is known to have this problem). Therefore we avoid libw if we can.
8292 { echo "$as_me:$LINENO: checking for wctype" >&5
8293 echo $ECHO_N "checking for wctype... $ECHO_C" >&6; }
8294 if test "${ac_cv_func_wctype+set}" = set; then
8295 echo $ECHO_N "(cached) $ECHO_C" >&6
8297 cat >conftest.$ac_ext <<_ACEOF
8300 cat confdefs.h >>conftest.$ac_ext
8301 cat >>conftest.$ac_ext <<_ACEOF
8302 /* end confdefs.h. */
8303 /* Define wctype to an innocuous variant, in case <limits.h> declares wctype.
8304 For example, HP-UX 11i <limits.h> declares gettimeofday. */
8305 #define wctype innocuous_wctype
8307 /* System header to define __stub macros and hopefully few prototypes,
8308 which can conflict with char wctype (); below.
8309 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
8310 <limits.h> exists even on freestanding compilers. */
8313 # include <limits.h>
8315 # include <assert.h>
8320 /* Override any GCC internal prototype to avoid an error.
8321 Use char because int might match the return type of a GCC
8322 builtin and then its argument prototype would still apply. */
8327 /* The GNU C library defines this for functions which it implements
8328 to always fail with ENOSYS. Some functions are actually named
8329 something starting with __ and the normal name is an alias. */
8330 #if defined __stub_wctype || defined __stub___wctype
8342 rm -f conftest.$ac_objext conftest$ac_exeext
8343 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
8344 (eval $ac_link) 2>conftest.er1
8346 grep -v '^ *+' conftest.er1 >conftest.err
8348 cat conftest.err >&5
8349 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8350 (exit $ac_status); } &&
8351 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
8352 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8355 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8356 (exit $ac_status); }; } &&
8357 { ac_try='test -s conftest$ac_exeext'
8358 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8361 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8362 (exit $ac_status); }; }; then
8363 ac_cv_func_wctype=yes
8365 echo "$as_me: failed program was:" >&5
8366 sed 's/^/| /' conftest.$ac_ext >&5
8368 ac_cv_func_wctype=no
8371 rm -f conftest.err conftest.$ac_objext \
8372 conftest$ac_exeext conftest.$ac_ext
8374 { echo "$as_me:$LINENO: result: $ac_cv_func_wctype" >&5
8375 echo "${ECHO_T}$ac_cv_func_wctype" >&6; }
8376 if test $ac_cv_func_wctype = yes; then
8380 { echo "$as_me:$LINENO: checking for wctype in -lw" >&5
8381 echo $ECHO_N "checking for wctype in -lw... $ECHO_C" >&6; }
8382 if test "${ac_cv_lib_w_wctype+set}" = set; then
8383 echo $ECHO_N "(cached) $ECHO_C" >&6
8385 ac_check_lib_save_LIBS=$LIBS
8387 cat >conftest.$ac_ext <<_ACEOF
8390 cat confdefs.h >>conftest.$ac_ext
8391 cat >>conftest.$ac_ext <<_ACEOF
8392 /* end confdefs.h. */
8394 /* Override any GCC internal prototype to avoid an error.
8395 Use char because int might match the return type of a GCC
8396 builtin and then its argument prototype would still apply. */
8409 rm -f conftest.$ac_objext conftest$ac_exeext
8410 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
8411 (eval $ac_link) 2>conftest.er1
8413 grep -v '^ *+' conftest.er1 >conftest.err
8415 cat conftest.err >&5
8416 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8417 (exit $ac_status); } &&
8418 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
8419 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8422 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8423 (exit $ac_status); }; } &&
8424 { ac_try='test -s conftest$ac_exeext'
8425 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8428 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8429 (exit $ac_status); }; }; then
8430 ac_cv_lib_w_wctype=yes
8432 echo "$as_me: failed program was:" >&5
8433 sed 's/^/| /' conftest.$ac_ext >&5
8435 ac_cv_lib_w_wctype=no
8438 rm -f conftest.err conftest.$ac_objext \
8439 conftest$ac_exeext conftest.$ac_ext
8440 LIBS=$ac_check_lib_save_LIBS
8442 { echo "$as_me:$LINENO: result: $ac_cv_lib_w_wctype" >&5
8443 echo "${ECHO_T}$ac_cv_lib_w_wctype" >&6; }
8444 if test $ac_cv_lib_w_wctype = yes; then
8445 cat >>confdefs.h <<_ACEOF
8456 # Some systems (e.g. Solaris) have `gethostbyname' in libnsl.
8457 { echo "$as_me:$LINENO: checking for library containing gethostbyname" >&5
8458 echo $ECHO_N "checking for library containing gethostbyname... $ECHO_C" >&6; }
8459 if test "${ac_cv_search_gethostbyname+set}" = set; then
8460 echo $ECHO_N "(cached) $ECHO_C" >&6
8462 ac_func_search_save_LIBS=$LIBS
8463 cat >conftest.$ac_ext <<_ACEOF
8466 cat confdefs.h >>conftest.$ac_ext
8467 cat >>conftest.$ac_ext <<_ACEOF
8468 /* end confdefs.h. */
8470 /* Override any GCC internal prototype to avoid an error.
8471 Use char because int might match the return type of a GCC
8472 builtin and then its argument prototype would still apply. */
8476 char gethostbyname ();
8480 return gethostbyname ();
8485 for ac_lib in '' nsl; do
8486 if test -z "$ac_lib"; then
8487 ac_res="none required"
8490 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
8492 rm -f conftest.$ac_objext conftest$ac_exeext
8493 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
8494 (eval $ac_link) 2>conftest.er1
8496 grep -v '^ *+' conftest.er1 >conftest.err
8498 cat conftest.err >&5
8499 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8500 (exit $ac_status); } &&
8501 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
8502 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8505 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8506 (exit $ac_status); }; } &&
8507 { ac_try='test -s conftest$ac_exeext'
8508 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8511 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8512 (exit $ac_status); }; }; then
8513 ac_cv_search_gethostbyname=$ac_res
8515 echo "$as_me: failed program was:" >&5
8516 sed 's/^/| /' conftest.$ac_ext >&5
8521 rm -f conftest.err conftest.$ac_objext \
8523 if test "${ac_cv_search_gethostbyname+set}" = set; then
8527 if test "${ac_cv_search_gethostbyname+set}" = set; then
8530 ac_cv_search_gethostbyname=no
8533 LIBS=$ac_func_search_save_LIBS
8535 { echo "$as_me:$LINENO: result: $ac_cv_search_gethostbyname" >&5
8536 echo "${ECHO_T}$ac_cv_search_gethostbyname" >&6; }
8537 ac_res=$ac_cv_search_gethostbyname
8538 if test "$ac_res" != no; then
8539 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
8544 # Some systems (e.g. Solaris) have `socketpair' in libsocket.
8545 { echo "$as_me:$LINENO: checking for library containing socketpair" >&5
8546 echo $ECHO_N "checking for library containing socketpair... $ECHO_C" >&6; }
8547 if test "${ac_cv_search_socketpair+set}" = set; then
8548 echo $ECHO_N "(cached) $ECHO_C" >&6
8550 ac_func_search_save_LIBS=$LIBS
8551 cat >conftest.$ac_ext <<_ACEOF
8554 cat confdefs.h >>conftest.$ac_ext
8555 cat >>conftest.$ac_ext <<_ACEOF
8556 /* end confdefs.h. */
8558 /* Override any GCC internal prototype to avoid an error.
8559 Use char because int might match the return type of a GCC
8560 builtin and then its argument prototype would still apply. */
8568 return socketpair ();
8573 for ac_lib in '' socket; do
8574 if test -z "$ac_lib"; then
8575 ac_res="none required"
8578 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
8580 rm -f conftest.$ac_objext conftest$ac_exeext
8581 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
8582 (eval $ac_link) 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 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
8590 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8593 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8594 (exit $ac_status); }; } &&
8595 { ac_try='test -s conftest$ac_exeext'
8596 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8599 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8600 (exit $ac_status); }; }; then
8601 ac_cv_search_socketpair=$ac_res
8603 echo "$as_me: failed program was:" >&5
8604 sed 's/^/| /' conftest.$ac_ext >&5
8609 rm -f conftest.err conftest.$ac_objext \
8611 if test "${ac_cv_search_socketpair+set}" = set; then
8615 if test "${ac_cv_search_socketpair+set}" = set; then
8618 ac_cv_search_socketpair=no
8621 LIBS=$ac_func_search_save_LIBS
8623 { echo "$as_me:$LINENO: result: $ac_cv_search_socketpair" >&5
8624 echo "${ECHO_T}$ac_cv_search_socketpair" >&6; }
8625 ac_res=$ac_cv_search_socketpair
8626 if test "$ac_res" != no; then
8627 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
8632 # For the TUI, we need enhanced curses functionality.
8634 # FIXME: kettenis/20040905: We prefer ncurses over the vendor-supplied
8635 # curses library because the latter might not provide all the
8636 # functionality we need. However, this leads to problems on systems
8637 # where the linker searches /usr/local/lib, but the compiler doesn't
8638 # search /usr/local/include, if ncurses is installed in /usr/local. A
8639 # default installation of ncurses on alpha*-dec-osf* will lead to such
8641 { echo "$as_me:$LINENO: checking for library containing waddstr" >&5
8642 echo $ECHO_N "checking for library containing waddstr... $ECHO_C" >&6; }
8643 if test "${ac_cv_search_waddstr+set}" = set; then
8644 echo $ECHO_N "(cached) $ECHO_C" >&6
8646 ac_func_search_save_LIBS=$LIBS
8647 cat >conftest.$ac_ext <<_ACEOF
8650 cat confdefs.h >>conftest.$ac_ext
8651 cat >>conftest.$ac_ext <<_ACEOF
8652 /* end confdefs.h. */
8654 /* Override any GCC internal prototype to avoid an error.
8655 Use char because int might match the return type of a GCC
8656 builtin and then its argument prototype would still apply. */
8669 for ac_lib in '' ncurses cursesX curses; do
8670 if test -z "$ac_lib"; then
8671 ac_res="none required"
8674 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
8676 rm -f conftest.$ac_objext conftest$ac_exeext
8677 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
8678 (eval $ac_link) 2>conftest.er1
8680 grep -v '^ *+' conftest.er1 >conftest.err
8682 cat conftest.err >&5
8683 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8684 (exit $ac_status); } &&
8685 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
8686 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8689 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8690 (exit $ac_status); }; } &&
8691 { ac_try='test -s conftest$ac_exeext'
8692 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8695 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8696 (exit $ac_status); }; }; then
8697 ac_cv_search_waddstr=$ac_res
8699 echo "$as_me: failed program was:" >&5
8700 sed 's/^/| /' conftest.$ac_ext >&5
8705 rm -f conftest.err conftest.$ac_objext \
8707 if test "${ac_cv_search_waddstr+set}" = set; then
8711 if test "${ac_cv_search_waddstr+set}" = set; then
8714 ac_cv_search_waddstr=no
8717 LIBS=$ac_func_search_save_LIBS
8719 { echo "$as_me:$LINENO: result: $ac_cv_search_waddstr" >&5
8720 echo "${ECHO_T}$ac_cv_search_waddstr" >&6; }
8721 ac_res=$ac_cv_search_waddstr
8722 if test "$ac_res" != no; then
8723 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
8728 # Since GDB uses Readline, we need termcap functionality. In many
8729 # cases this will be provided by the curses library, but some systems
8730 # have a seperate termcap library, or no curses library at all.
8734 if test -d $srcdir/libtermcap; then
8735 LIBS="../libtermcap/libtermcap.a $LIBS"
8736 ac_cv_search_tgetent="../libtermcap/libtermcap.a"
8739 ac_cv_search_tgetent="none required"
8742 ac_cv_search_tgetent="none required"
8743 CONFIG_OBS="$CONFIG_OBS win32-termcap.o"
8747 # These are the libraries checked by Readline.
8748 { echo "$as_me:$LINENO: checking for library containing tgetent" >&5
8749 echo $ECHO_N "checking for library containing tgetent... $ECHO_C" >&6; }
8750 if test "${ac_cv_search_tgetent+set}" = set; then
8751 echo $ECHO_N "(cached) $ECHO_C" >&6
8753 ac_func_search_save_LIBS=$LIBS
8754 cat >conftest.$ac_ext <<_ACEOF
8757 cat confdefs.h >>conftest.$ac_ext
8758 cat >>conftest.$ac_ext <<_ACEOF
8759 /* end confdefs.h. */
8761 /* Override any GCC internal prototype to avoid an error.
8762 Use char because int might match the return type of a GCC
8763 builtin and then its argument prototype would still apply. */
8776 for ac_lib in '' termcap tinfo curses ncurses; do
8777 if test -z "$ac_lib"; then
8778 ac_res="none required"
8781 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
8783 rm -f conftest.$ac_objext conftest$ac_exeext
8784 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
8785 (eval $ac_link) 2>conftest.er1
8787 grep -v '^ *+' conftest.er1 >conftest.err
8789 cat conftest.err >&5
8790 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8791 (exit $ac_status); } &&
8792 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
8793 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8796 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8797 (exit $ac_status); }; } &&
8798 { ac_try='test -s conftest$ac_exeext'
8799 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8802 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8803 (exit $ac_status); }; }; then
8804 ac_cv_search_tgetent=$ac_res
8806 echo "$as_me: failed program was:" >&5
8807 sed 's/^/| /' conftest.$ac_ext >&5
8812 rm -f conftest.err conftest.$ac_objext \
8814 if test "${ac_cv_search_tgetent+set}" = set; then
8818 if test "${ac_cv_search_tgetent+set}" = set; then
8821 ac_cv_search_tgetent=no
8824 LIBS=$ac_func_search_save_LIBS
8826 { echo "$as_me:$LINENO: result: $ac_cv_search_tgetent" >&5
8827 echo "${ECHO_T}$ac_cv_search_tgetent" >&6; }
8828 ac_res=$ac_cv_search_tgetent
8829 if test "$ac_res" != no; then
8830 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
8835 if test "$ac_cv_search_tgetent" = no; then
8836 { { echo "$as_me:$LINENO: error: no termcap library found" >&5
8837 echo "$as_me: error: no termcap library found" >&2;}
8838 { (exit 1); exit 1; }; }
8841 # ------------------------- #
8842 # Checks for header files. #
8843 # ------------------------- #
8851 for ac_hdr in dirent.h sys/ndir.h sys/dir.h ndir.h; do
8852 as_ac_Header=`echo "ac_cv_header_dirent_$ac_hdr" | $as_tr_sh`
8853 { echo "$as_me:$LINENO: checking for $ac_hdr that defines DIR" >&5
8854 echo $ECHO_N "checking for $ac_hdr that defines DIR... $ECHO_C" >&6; }
8855 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
8856 echo $ECHO_N "(cached) $ECHO_C" >&6
8858 cat >conftest.$ac_ext <<_ACEOF
8861 cat confdefs.h >>conftest.$ac_ext
8862 cat >>conftest.$ac_ext <<_ACEOF
8863 /* end confdefs.h. */
8864 #include <sys/types.h>
8876 rm -f conftest.$ac_objext
8877 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
8878 (eval $ac_compile) 2>conftest.er1
8880 grep -v '^ *+' conftest.er1 >conftest.err
8882 cat conftest.err >&5
8883 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8884 (exit $ac_status); } &&
8885 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
8886 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8889 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8890 (exit $ac_status); }; } &&
8891 { ac_try='test -s conftest.$ac_objext'
8892 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8895 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8896 (exit $ac_status); }; }; then
8897 eval "$as_ac_Header=yes"
8899 echo "$as_me: failed program was:" >&5
8900 sed 's/^/| /' conftest.$ac_ext >&5
8902 eval "$as_ac_Header=no"
8905 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
8907 ac_res=`eval echo '${'$as_ac_Header'}'`
8908 { echo "$as_me:$LINENO: result: $ac_res" >&5
8909 echo "${ECHO_T}$ac_res" >&6; }
8910 if test `eval echo '${'$as_ac_Header'}'` = yes; then
8911 cat >>confdefs.h <<_ACEOF
8912 #define `echo "HAVE_$ac_hdr" | $as_tr_cpp` 1
8915 ac_header_dirent=$ac_hdr; break
8919 # Two versions of opendir et al. are in -ldir and -lx on SCO Xenix.
8920 if test $ac_header_dirent = dirent.h; then
8921 { echo "$as_me:$LINENO: checking for library containing opendir" >&5
8922 echo $ECHO_N "checking for library containing opendir... $ECHO_C" >&6; }
8923 if test "${ac_cv_search_opendir+set}" = set; then
8924 echo $ECHO_N "(cached) $ECHO_C" >&6
8926 ac_func_search_save_LIBS=$LIBS
8927 cat >conftest.$ac_ext <<_ACEOF
8930 cat confdefs.h >>conftest.$ac_ext
8931 cat >>conftest.$ac_ext <<_ACEOF
8932 /* end confdefs.h. */
8934 /* Override any GCC internal prototype to avoid an error.
8935 Use char because int might match the return type of a GCC
8936 builtin and then its argument prototype would still apply. */
8949 for ac_lib in '' dir; do
8950 if test -z "$ac_lib"; then
8951 ac_res="none required"
8954 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
8956 rm -f conftest.$ac_objext conftest$ac_exeext
8957 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
8958 (eval $ac_link) 2>conftest.er1
8960 grep -v '^ *+' conftest.er1 >conftest.err
8962 cat conftest.err >&5
8963 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8964 (exit $ac_status); } &&
8965 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
8966 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8969 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8970 (exit $ac_status); }; } &&
8971 { ac_try='test -s conftest$ac_exeext'
8972 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8975 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8976 (exit $ac_status); }; }; then
8977 ac_cv_search_opendir=$ac_res
8979 echo "$as_me: failed program was:" >&5
8980 sed 's/^/| /' conftest.$ac_ext >&5
8985 rm -f conftest.err conftest.$ac_objext \
8987 if test "${ac_cv_search_opendir+set}" = set; then
8991 if test "${ac_cv_search_opendir+set}" = set; then
8994 ac_cv_search_opendir=no
8997 LIBS=$ac_func_search_save_LIBS
8999 { echo "$as_me:$LINENO: result: $ac_cv_search_opendir" >&5
9000 echo "${ECHO_T}$ac_cv_search_opendir" >&6; }
9001 ac_res=$ac_cv_search_opendir
9002 if test "$ac_res" != no; then
9003 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
9008 { echo "$as_me:$LINENO: checking for library containing opendir" >&5
9009 echo $ECHO_N "checking for library containing opendir... $ECHO_C" >&6; }
9010 if test "${ac_cv_search_opendir+set}" = set; then
9011 echo $ECHO_N "(cached) $ECHO_C" >&6
9013 ac_func_search_save_LIBS=$LIBS
9014 cat >conftest.$ac_ext <<_ACEOF
9017 cat confdefs.h >>conftest.$ac_ext
9018 cat >>conftest.$ac_ext <<_ACEOF
9019 /* end confdefs.h. */
9021 /* Override any GCC internal prototype to avoid an error.
9022 Use char because int might match the return type of a GCC
9023 builtin and then its argument prototype would still apply. */
9036 for ac_lib in '' x; do
9037 if test -z "$ac_lib"; then
9038 ac_res="none required"
9041 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
9043 rm -f conftest.$ac_objext conftest$ac_exeext
9044 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
9045 (eval $ac_link) 2>conftest.er1
9047 grep -v '^ *+' conftest.er1 >conftest.err
9049 cat conftest.err >&5
9050 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9051 (exit $ac_status); } &&
9052 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
9053 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9056 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9057 (exit $ac_status); }; } &&
9058 { ac_try='test -s conftest$ac_exeext'
9059 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9062 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9063 (exit $ac_status); }; }; then
9064 ac_cv_search_opendir=$ac_res
9066 echo "$as_me: failed program was:" >&5
9067 sed 's/^/| /' conftest.$ac_ext >&5
9072 rm -f conftest.err conftest.$ac_objext \
9074 if test "${ac_cv_search_opendir+set}" = set; then
9078 if test "${ac_cv_search_opendir+set}" = set; then
9081 ac_cv_search_opendir=no
9084 LIBS=$ac_func_search_save_LIBS
9086 { echo "$as_me:$LINENO: result: $ac_cv_search_opendir" >&5
9087 echo "${ECHO_T}$ac_cv_search_opendir" >&6; }
9088 ac_res=$ac_cv_search_opendir
9089 if test "$ac_res" != no; then
9090 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
9096 { echo "$as_me:$LINENO: checking whether stat file-mode macros are broken" >&5
9097 echo $ECHO_N "checking whether stat file-mode macros are broken... $ECHO_C" >&6; }
9098 if test "${ac_cv_header_stat_broken+set}" = set; then
9099 echo $ECHO_N "(cached) $ECHO_C" >&6
9101 cat >conftest.$ac_ext <<_ACEOF
9104 cat confdefs.h >>conftest.$ac_ext
9105 cat >>conftest.$ac_ext <<_ACEOF
9106 /* end confdefs.h. */
9107 #include <sys/types.h>
9108 #include <sys/stat.h>
9110 #if defined S_ISBLK && defined S_IFDIR
9111 # if S_ISBLK (S_IFDIR)
9116 #if defined S_ISBLK && defined S_IFCHR
9117 # if S_ISBLK (S_IFCHR)
9122 #if defined S_ISLNK && defined S_IFREG
9123 # if S_ISLNK (S_IFREG)
9128 #if defined S_ISSOCK && defined S_IFREG
9129 # if S_ISSOCK (S_IFREG)
9135 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
9136 $EGREP "You lose" >/dev/null 2>&1; then
9137 ac_cv_header_stat_broken=yes
9139 ac_cv_header_stat_broken=no
9144 { echo "$as_me:$LINENO: result: $ac_cv_header_stat_broken" >&5
9145 echo "${ECHO_T}$ac_cv_header_stat_broken" >&6; }
9146 if test $ac_cv_header_stat_broken = yes; then
9148 cat >>confdefs.h <<\_ACEOF
9149 #define STAT_MACROS_BROKEN 1
9154 { echo "$as_me:$LINENO: checking for ANSI C header files" >&5
9155 echo $ECHO_N "checking for ANSI C header files... $ECHO_C" >&6; }
9156 if test "${ac_cv_header_stdc+set}" = set; then
9157 echo $ECHO_N "(cached) $ECHO_C" >&6
9159 cat >conftest.$ac_ext <<_ACEOF
9162 cat confdefs.h >>conftest.$ac_ext
9163 cat >>conftest.$ac_ext <<_ACEOF
9164 /* end confdefs.h. */
9178 rm -f conftest.$ac_objext
9179 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
9180 (eval $ac_compile) 2>conftest.er1
9182 grep -v '^ *+' conftest.er1 >conftest.err
9184 cat conftest.err >&5
9185 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9186 (exit $ac_status); } &&
9187 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
9188 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9191 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9192 (exit $ac_status); }; } &&
9193 { ac_try='test -s conftest.$ac_objext'
9194 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9197 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9198 (exit $ac_status); }; }; then
9199 ac_cv_header_stdc=yes
9201 echo "$as_me: failed program was:" >&5
9202 sed 's/^/| /' conftest.$ac_ext >&5
9204 ac_cv_header_stdc=no
9207 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
9209 if test $ac_cv_header_stdc = yes; then
9210 # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
9211 cat >conftest.$ac_ext <<_ACEOF
9214 cat confdefs.h >>conftest.$ac_ext
9215 cat >>conftest.$ac_ext <<_ACEOF
9216 /* end confdefs.h. */
9220 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
9221 $EGREP "memchr" >/dev/null 2>&1; then
9224 ac_cv_header_stdc=no
9230 if test $ac_cv_header_stdc = yes; then
9231 # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
9232 cat >conftest.$ac_ext <<_ACEOF
9235 cat confdefs.h >>conftest.$ac_ext
9236 cat >>conftest.$ac_ext <<_ACEOF
9237 /* end confdefs.h. */
9241 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
9242 $EGREP "free" >/dev/null 2>&1; then
9245 ac_cv_header_stdc=no
9251 if test $ac_cv_header_stdc = yes; then
9252 # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
9253 if test "$cross_compiling" = yes; then
9256 cat >conftest.$ac_ext <<_ACEOF
9259 cat confdefs.h >>conftest.$ac_ext
9260 cat >>conftest.$ac_ext <<_ACEOF
9261 /* end confdefs.h. */
9264 #if ((' ' & 0x0FF) == 0x020)
9265 # define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
9266 # define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
9268 # define ISLOWER(c) \
9269 (('a' <= (c) && (c) <= 'i') \
9270 || ('j' <= (c) && (c) <= 'r') \
9271 || ('s' <= (c) && (c) <= 'z'))
9272 # define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
9275 #define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
9280 for (i = 0; i < 256; i++)
9281 if (XOR (islower (i), ISLOWER (i))
9282 || toupper (i) != TOUPPER (i))
9287 rm -f conftest$ac_exeext
9288 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
9289 (eval $ac_link) 2>&5
9291 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9292 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
9293 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9296 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9297 (exit $ac_status); }; }; then
9300 echo "$as_me: program exited with status $ac_status" >&5
9301 echo "$as_me: failed program was:" >&5
9302 sed 's/^/| /' conftest.$ac_ext >&5
9305 ac_cv_header_stdc=no
9307 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
9313 { echo "$as_me:$LINENO: result: $ac_cv_header_stdc" >&5
9314 echo "${ECHO_T}$ac_cv_header_stdc" >&6; }
9315 if test $ac_cv_header_stdc = yes; then
9317 cat >>confdefs.h <<\_ACEOF
9318 #define STDC_HEADERS 1
9324 for ac_header in nlist.h
9326 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
9327 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
9328 { echo "$as_me:$LINENO: checking for $ac_header" >&5
9329 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
9330 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
9331 echo $ECHO_N "(cached) $ECHO_C" >&6
9333 ac_res=`eval echo '${'$as_ac_Header'}'`
9334 { echo "$as_me:$LINENO: result: $ac_res" >&5
9335 echo "${ECHO_T}$ac_res" >&6; }
9337 # Is the header compilable?
9338 { echo "$as_me:$LINENO: checking $ac_header usability" >&5
9339 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
9340 cat >conftest.$ac_ext <<_ACEOF
9343 cat confdefs.h >>conftest.$ac_ext
9344 cat >>conftest.$ac_ext <<_ACEOF
9345 /* end confdefs.h. */
9346 $ac_includes_default
9347 #include <$ac_header>
9349 rm -f conftest.$ac_objext
9350 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
9351 (eval $ac_compile) 2>conftest.er1
9353 grep -v '^ *+' conftest.er1 >conftest.err
9355 cat conftest.err >&5
9356 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9357 (exit $ac_status); } &&
9358 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
9359 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9362 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9363 (exit $ac_status); }; } &&
9364 { ac_try='test -s conftest.$ac_objext'
9365 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9368 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9369 (exit $ac_status); }; }; then
9370 ac_header_compiler=yes
9372 echo "$as_me: failed program was:" >&5
9373 sed 's/^/| /' conftest.$ac_ext >&5
9375 ac_header_compiler=no
9378 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
9379 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
9380 echo "${ECHO_T}$ac_header_compiler" >&6; }
9382 # Is the header present?
9383 { echo "$as_me:$LINENO: checking $ac_header presence" >&5
9384 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
9385 cat >conftest.$ac_ext <<_ACEOF
9388 cat confdefs.h >>conftest.$ac_ext
9389 cat >>conftest.$ac_ext <<_ACEOF
9390 /* end confdefs.h. */
9391 #include <$ac_header>
9393 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
9394 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
9396 grep -v '^ *+' conftest.er1 >conftest.err
9398 cat conftest.err >&5
9399 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9400 (exit $ac_status); } >/dev/null; then
9401 if test -s conftest.err; then
9402 ac_cpp_err=$ac_c_preproc_warn_flag
9403 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
9410 if test -z "$ac_cpp_err"; then
9411 ac_header_preproc=yes
9413 echo "$as_me: failed program was:" >&5
9414 sed 's/^/| /' conftest.$ac_ext >&5
9416 ac_header_preproc=no
9419 rm -f conftest.err conftest.$ac_ext
9420 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
9421 echo "${ECHO_T}$ac_header_preproc" >&6; }
9423 # So? What about this header?
9424 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
9426 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
9427 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
9428 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
9429 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
9430 ac_header_preproc=yes
9433 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
9434 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
9435 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
9436 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
9437 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
9438 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
9439 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
9440 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
9441 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
9442 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
9443 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
9444 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
9448 { echo "$as_me:$LINENO: checking for $ac_header" >&5
9449 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
9450 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
9451 echo $ECHO_N "(cached) $ECHO_C" >&6
9453 eval "$as_ac_Header=\$ac_header_preproc"
9455 ac_res=`eval echo '${'$as_ac_Header'}'`
9456 { echo "$as_me:$LINENO: result: $ac_res" >&5
9457 echo "${ECHO_T}$ac_res" >&6; }
9460 if test `eval echo '${'$as_ac_Header'}'` = yes; then
9461 cat >>confdefs.h <<_ACEOF
9462 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
9470 for ac_header in link.h
9472 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
9473 { echo "$as_me:$LINENO: checking for $ac_header" >&5
9474 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
9475 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
9476 echo $ECHO_N "(cached) $ECHO_C" >&6
9478 cat >conftest.$ac_ext <<_ACEOF
9481 cat confdefs.h >>conftest.$ac_ext
9482 cat >>conftest.$ac_ext <<_ACEOF
9483 /* end confdefs.h. */
9484 #if HAVE_SYS_TYPES_H
9485 # include <sys/types.h>
9492 #include <$ac_header>
9494 rm -f conftest.$ac_objext
9495 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
9496 (eval $ac_compile) 2>conftest.er1
9498 grep -v '^ *+' conftest.er1 >conftest.err
9500 cat conftest.err >&5
9501 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9502 (exit $ac_status); } &&
9503 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
9504 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9507 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9508 (exit $ac_status); }; } &&
9509 { ac_try='test -s conftest.$ac_objext'
9510 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9513 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9514 (exit $ac_status); }; }; then
9515 eval "$as_ac_Header=yes"
9517 echo "$as_me: failed program was:" >&5
9518 sed 's/^/| /' conftest.$ac_ext >&5
9520 eval "$as_ac_Header=no"
9523 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
9525 ac_res=`eval echo '${'$as_ac_Header'}'`
9526 { echo "$as_me:$LINENO: result: $ac_res" >&5
9527 echo "${ECHO_T}$ac_res" >&6; }
9528 if test `eval echo '${'$as_ac_Header'}'` = yes; then
9529 cat >>confdefs.h <<_ACEOF
9530 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
9538 for ac_header in machine/reg.h
9540 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
9541 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
9542 { echo "$as_me:$LINENO: checking for $ac_header" >&5
9543 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
9544 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
9545 echo $ECHO_N "(cached) $ECHO_C" >&6
9547 ac_res=`eval echo '${'$as_ac_Header'}'`
9548 { echo "$as_me:$LINENO: result: $ac_res" >&5
9549 echo "${ECHO_T}$ac_res" >&6; }
9551 # Is the header compilable?
9552 { echo "$as_me:$LINENO: checking $ac_header usability" >&5
9553 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
9554 cat >conftest.$ac_ext <<_ACEOF
9557 cat confdefs.h >>conftest.$ac_ext
9558 cat >>conftest.$ac_ext <<_ACEOF
9559 /* end confdefs.h. */
9560 $ac_includes_default
9561 #include <$ac_header>
9563 rm -f conftest.$ac_objext
9564 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
9565 (eval $ac_compile) 2>conftest.er1
9567 grep -v '^ *+' conftest.er1 >conftest.err
9569 cat conftest.err >&5
9570 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9571 (exit $ac_status); } &&
9572 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
9573 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9576 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9577 (exit $ac_status); }; } &&
9578 { ac_try='test -s conftest.$ac_objext'
9579 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9582 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9583 (exit $ac_status); }; }; then
9584 ac_header_compiler=yes
9586 echo "$as_me: failed program was:" >&5
9587 sed 's/^/| /' conftest.$ac_ext >&5
9589 ac_header_compiler=no
9592 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
9593 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
9594 echo "${ECHO_T}$ac_header_compiler" >&6; }
9596 # Is the header present?
9597 { echo "$as_me:$LINENO: checking $ac_header presence" >&5
9598 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
9599 cat >conftest.$ac_ext <<_ACEOF
9602 cat confdefs.h >>conftest.$ac_ext
9603 cat >>conftest.$ac_ext <<_ACEOF
9604 /* end confdefs.h. */
9605 #include <$ac_header>
9607 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
9608 (eval $ac_cpp conftest.$ac_ext) 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); } >/dev/null; then
9615 if test -s conftest.err; then
9616 ac_cpp_err=$ac_c_preproc_warn_flag
9617 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
9624 if test -z "$ac_cpp_err"; then
9625 ac_header_preproc=yes
9627 echo "$as_me: failed program was:" >&5
9628 sed 's/^/| /' conftest.$ac_ext >&5
9630 ac_header_preproc=no
9633 rm -f conftest.err conftest.$ac_ext
9634 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
9635 echo "${ECHO_T}$ac_header_preproc" >&6; }
9637 # So? What about this header?
9638 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
9640 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
9641 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
9642 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
9643 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
9644 ac_header_preproc=yes
9647 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
9648 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
9649 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
9650 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
9651 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
9652 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
9653 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
9654 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
9655 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
9656 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
9657 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
9658 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
9662 { echo "$as_me:$LINENO: checking for $ac_header" >&5
9663 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
9664 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
9665 echo $ECHO_N "(cached) $ECHO_C" >&6
9667 eval "$as_ac_Header=\$ac_header_preproc"
9669 ac_res=`eval echo '${'$as_ac_Header'}'`
9670 { echo "$as_me:$LINENO: result: $ac_res" >&5
9671 echo "${ECHO_T}$ac_res" >&6; }
9674 if test `eval echo '${'$as_ac_Header'}'` = yes; then
9675 cat >>confdefs.h <<_ACEOF
9676 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
9685 for ac_header in poll.h sys/poll.h
9687 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
9688 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
9689 { echo "$as_me:$LINENO: checking for $ac_header" >&5
9690 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
9691 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
9692 echo $ECHO_N "(cached) $ECHO_C" >&6
9694 ac_res=`eval echo '${'$as_ac_Header'}'`
9695 { echo "$as_me:$LINENO: result: $ac_res" >&5
9696 echo "${ECHO_T}$ac_res" >&6; }
9698 # Is the header compilable?
9699 { echo "$as_me:$LINENO: checking $ac_header usability" >&5
9700 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
9701 cat >conftest.$ac_ext <<_ACEOF
9704 cat confdefs.h >>conftest.$ac_ext
9705 cat >>conftest.$ac_ext <<_ACEOF
9706 /* end confdefs.h. */
9707 $ac_includes_default
9708 #include <$ac_header>
9710 rm -f conftest.$ac_objext
9711 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
9712 (eval $ac_compile) 2>conftest.er1
9714 grep -v '^ *+' conftest.er1 >conftest.err
9716 cat conftest.err >&5
9717 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9718 (exit $ac_status); } &&
9719 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
9720 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9723 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9724 (exit $ac_status); }; } &&
9725 { ac_try='test -s conftest.$ac_objext'
9726 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9729 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9730 (exit $ac_status); }; }; then
9731 ac_header_compiler=yes
9733 echo "$as_me: failed program was:" >&5
9734 sed 's/^/| /' conftest.$ac_ext >&5
9736 ac_header_compiler=no
9739 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
9740 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
9741 echo "${ECHO_T}$ac_header_compiler" >&6; }
9743 # Is the header present?
9744 { echo "$as_me:$LINENO: checking $ac_header presence" >&5
9745 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
9746 cat >conftest.$ac_ext <<_ACEOF
9749 cat confdefs.h >>conftest.$ac_ext
9750 cat >>conftest.$ac_ext <<_ACEOF
9751 /* end confdefs.h. */
9752 #include <$ac_header>
9754 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
9755 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
9757 grep -v '^ *+' conftest.er1 >conftest.err
9759 cat conftest.err >&5
9760 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9761 (exit $ac_status); } >/dev/null; then
9762 if test -s conftest.err; then
9763 ac_cpp_err=$ac_c_preproc_warn_flag
9764 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
9771 if test -z "$ac_cpp_err"; then
9772 ac_header_preproc=yes
9774 echo "$as_me: failed program was:" >&5
9775 sed 's/^/| /' conftest.$ac_ext >&5
9777 ac_header_preproc=no
9780 rm -f conftest.err conftest.$ac_ext
9781 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
9782 echo "${ECHO_T}$ac_header_preproc" >&6; }
9784 # So? What about this header?
9785 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
9787 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
9788 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
9789 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
9790 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
9791 ac_header_preproc=yes
9794 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
9795 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
9796 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
9797 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
9798 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
9799 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
9800 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
9801 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
9802 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
9803 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
9804 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
9805 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
9809 { echo "$as_me:$LINENO: checking for $ac_header" >&5
9810 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
9811 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
9812 echo $ECHO_N "(cached) $ECHO_C" >&6
9814 eval "$as_ac_Header=\$ac_header_preproc"
9816 ac_res=`eval echo '${'$as_ac_Header'}'`
9817 { echo "$as_me:$LINENO: result: $ac_res" >&5
9818 echo "${ECHO_T}$ac_res" >&6; }
9821 if test `eval echo '${'$as_ac_Header'}'` = yes; then
9822 cat >>confdefs.h <<_ACEOF
9823 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
9833 for ac_header in proc_service.h thread_db.h gnu/libc-version.h
9835 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
9836 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
9837 { echo "$as_me:$LINENO: checking for $ac_header" >&5
9838 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
9839 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
9840 echo $ECHO_N "(cached) $ECHO_C" >&6
9842 ac_res=`eval echo '${'$as_ac_Header'}'`
9843 { echo "$as_me:$LINENO: result: $ac_res" >&5
9844 echo "${ECHO_T}$ac_res" >&6; }
9846 # Is the header compilable?
9847 { echo "$as_me:$LINENO: checking $ac_header usability" >&5
9848 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
9849 cat >conftest.$ac_ext <<_ACEOF
9852 cat confdefs.h >>conftest.$ac_ext
9853 cat >>conftest.$ac_ext <<_ACEOF
9854 /* end confdefs.h. */
9855 $ac_includes_default
9856 #include <$ac_header>
9858 rm -f conftest.$ac_objext
9859 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
9860 (eval $ac_compile) 2>conftest.er1
9862 grep -v '^ *+' conftest.er1 >conftest.err
9864 cat conftest.err >&5
9865 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9866 (exit $ac_status); } &&
9867 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
9868 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9871 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9872 (exit $ac_status); }; } &&
9873 { ac_try='test -s conftest.$ac_objext'
9874 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9877 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9878 (exit $ac_status); }; }; then
9879 ac_header_compiler=yes
9881 echo "$as_me: failed program was:" >&5
9882 sed 's/^/| /' conftest.$ac_ext >&5
9884 ac_header_compiler=no
9887 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
9888 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
9889 echo "${ECHO_T}$ac_header_compiler" >&6; }
9891 # Is the header present?
9892 { echo "$as_me:$LINENO: checking $ac_header presence" >&5
9893 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
9894 cat >conftest.$ac_ext <<_ACEOF
9897 cat confdefs.h >>conftest.$ac_ext
9898 cat >>conftest.$ac_ext <<_ACEOF
9899 /* end confdefs.h. */
9900 #include <$ac_header>
9902 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
9903 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
9905 grep -v '^ *+' conftest.er1 >conftest.err
9907 cat conftest.err >&5
9908 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9909 (exit $ac_status); } >/dev/null; then
9910 if test -s conftest.err; then
9911 ac_cpp_err=$ac_c_preproc_warn_flag
9912 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
9919 if test -z "$ac_cpp_err"; then
9920 ac_header_preproc=yes
9922 echo "$as_me: failed program was:" >&5
9923 sed 's/^/| /' conftest.$ac_ext >&5
9925 ac_header_preproc=no
9928 rm -f conftest.err conftest.$ac_ext
9929 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
9930 echo "${ECHO_T}$ac_header_preproc" >&6; }
9932 # So? What about this header?
9933 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
9935 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
9936 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
9937 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
9938 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
9939 ac_header_preproc=yes
9942 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
9943 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
9944 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
9945 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
9946 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
9947 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
9948 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
9949 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
9950 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
9951 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
9952 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
9953 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
9957 { echo "$as_me:$LINENO: checking for $ac_header" >&5
9958 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
9959 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
9960 echo $ECHO_N "(cached) $ECHO_C" >&6
9962 eval "$as_ac_Header=\$ac_header_preproc"
9964 ac_res=`eval echo '${'$as_ac_Header'}'`
9965 { echo "$as_me:$LINENO: result: $ac_res" >&5
9966 echo "${ECHO_T}$ac_res" >&6; }
9969 if test `eval echo '${'$as_ac_Header'}'` = yes; then
9970 cat >>confdefs.h <<_ACEOF
9971 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
9979 for ac_header in stddef.h
9981 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
9982 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
9983 { echo "$as_me:$LINENO: checking for $ac_header" >&5
9984 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
9985 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
9986 echo $ECHO_N "(cached) $ECHO_C" >&6
9988 ac_res=`eval echo '${'$as_ac_Header'}'`
9989 { echo "$as_me:$LINENO: result: $ac_res" >&5
9990 echo "${ECHO_T}$ac_res" >&6; }
9992 # Is the header compilable?
9993 { echo "$as_me:$LINENO: checking $ac_header usability" >&5
9994 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
9995 cat >conftest.$ac_ext <<_ACEOF
9998 cat confdefs.h >>conftest.$ac_ext
9999 cat >>conftest.$ac_ext <<_ACEOF
10000 /* end confdefs.h. */
10001 $ac_includes_default
10002 #include <$ac_header>
10004 rm -f conftest.$ac_objext
10005 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
10006 (eval $ac_compile) 2>conftest.er1
10008 grep -v '^ *+' conftest.er1 >conftest.err
10010 cat conftest.err >&5
10011 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10012 (exit $ac_status); } &&
10013 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
10014 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10015 (eval $ac_try) 2>&5
10017 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10018 (exit $ac_status); }; } &&
10019 { ac_try='test -s conftest.$ac_objext'
10020 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10021 (eval $ac_try) 2>&5
10023 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10024 (exit $ac_status); }; }; then
10025 ac_header_compiler=yes
10027 echo "$as_me: failed program was:" >&5
10028 sed 's/^/| /' conftest.$ac_ext >&5
10030 ac_header_compiler=no
10033 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
10034 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
10035 echo "${ECHO_T}$ac_header_compiler" >&6; }
10037 # Is the header present?
10038 { echo "$as_me:$LINENO: checking $ac_header presence" >&5
10039 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
10040 cat >conftest.$ac_ext <<_ACEOF
10043 cat confdefs.h >>conftest.$ac_ext
10044 cat >>conftest.$ac_ext <<_ACEOF
10045 /* end confdefs.h. */
10046 #include <$ac_header>
10048 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
10049 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
10051 grep -v '^ *+' conftest.er1 >conftest.err
10053 cat conftest.err >&5
10054 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10055 (exit $ac_status); } >/dev/null; then
10056 if test -s conftest.err; then
10057 ac_cpp_err=$ac_c_preproc_warn_flag
10058 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
10065 if test -z "$ac_cpp_err"; then
10066 ac_header_preproc=yes
10068 echo "$as_me: failed program was:" >&5
10069 sed 's/^/| /' conftest.$ac_ext >&5
10071 ac_header_preproc=no
10074 rm -f conftest.err conftest.$ac_ext
10075 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
10076 echo "${ECHO_T}$ac_header_preproc" >&6; }
10078 # So? What about this header?
10079 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
10081 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
10082 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
10083 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
10084 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
10085 ac_header_preproc=yes
10088 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
10089 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
10090 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
10091 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
10092 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
10093 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
10094 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
10095 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
10096 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
10097 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
10098 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
10099 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
10103 { echo "$as_me:$LINENO: checking for $ac_header" >&5
10104 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
10105 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
10106 echo $ECHO_N "(cached) $ECHO_C" >&6
10108 eval "$as_ac_Header=\$ac_header_preproc"
10110 ac_res=`eval echo '${'$as_ac_Header'}'`
10111 { echo "$as_me:$LINENO: result: $ac_res" >&5
10112 echo "${ECHO_T}$ac_res" >&6; }
10115 if test `eval echo '${'$as_ac_Header'}'` = yes; then
10116 cat >>confdefs.h <<_ACEOF
10117 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
10125 for ac_header in stdlib.h
10127 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
10128 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
10129 { echo "$as_me:$LINENO: checking for $ac_header" >&5
10130 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
10131 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
10132 echo $ECHO_N "(cached) $ECHO_C" >&6
10134 ac_res=`eval echo '${'$as_ac_Header'}'`
10135 { echo "$as_me:$LINENO: result: $ac_res" >&5
10136 echo "${ECHO_T}$ac_res" >&6; }
10138 # Is the header compilable?
10139 { echo "$as_me:$LINENO: checking $ac_header usability" >&5
10140 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
10141 cat >conftest.$ac_ext <<_ACEOF
10144 cat confdefs.h >>conftest.$ac_ext
10145 cat >>conftest.$ac_ext <<_ACEOF
10146 /* end confdefs.h. */
10147 $ac_includes_default
10148 #include <$ac_header>
10150 rm -f conftest.$ac_objext
10151 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
10152 (eval $ac_compile) 2>conftest.er1
10154 grep -v '^ *+' conftest.er1 >conftest.err
10156 cat conftest.err >&5
10157 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10158 (exit $ac_status); } &&
10159 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
10160 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10161 (eval $ac_try) 2>&5
10163 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10164 (exit $ac_status); }; } &&
10165 { ac_try='test -s conftest.$ac_objext'
10166 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10167 (eval $ac_try) 2>&5
10169 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10170 (exit $ac_status); }; }; then
10171 ac_header_compiler=yes
10173 echo "$as_me: failed program was:" >&5
10174 sed 's/^/| /' conftest.$ac_ext >&5
10176 ac_header_compiler=no
10179 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
10180 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
10181 echo "${ECHO_T}$ac_header_compiler" >&6; }
10183 # Is the header present?
10184 { echo "$as_me:$LINENO: checking $ac_header presence" >&5
10185 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
10186 cat >conftest.$ac_ext <<_ACEOF
10189 cat confdefs.h >>conftest.$ac_ext
10190 cat >>conftest.$ac_ext <<_ACEOF
10191 /* end confdefs.h. */
10192 #include <$ac_header>
10194 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
10195 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
10197 grep -v '^ *+' conftest.er1 >conftest.err
10199 cat conftest.err >&5
10200 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10201 (exit $ac_status); } >/dev/null; then
10202 if test -s conftest.err; then
10203 ac_cpp_err=$ac_c_preproc_warn_flag
10204 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
10211 if test -z "$ac_cpp_err"; then
10212 ac_header_preproc=yes
10214 echo "$as_me: failed program was:" >&5
10215 sed 's/^/| /' conftest.$ac_ext >&5
10217 ac_header_preproc=no
10220 rm -f conftest.err conftest.$ac_ext
10221 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
10222 echo "${ECHO_T}$ac_header_preproc" >&6; }
10224 # So? What about this header?
10225 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
10227 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
10228 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
10229 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
10230 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
10231 ac_header_preproc=yes
10234 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
10235 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
10236 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
10237 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
10238 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
10239 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
10240 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
10241 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
10242 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
10243 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
10244 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
10245 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
10249 { echo "$as_me:$LINENO: checking for $ac_header" >&5
10250 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
10251 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
10252 echo $ECHO_N "(cached) $ECHO_C" >&6
10254 eval "$as_ac_Header=\$ac_header_preproc"
10256 ac_res=`eval echo '${'$as_ac_Header'}'`
10257 { echo "$as_me:$LINENO: result: $ac_res" >&5
10258 echo "${ECHO_T}$ac_res" >&6; }
10261 if test `eval echo '${'$as_ac_Header'}'` = yes; then
10262 cat >>confdefs.h <<_ACEOF
10263 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
10271 for ac_header in stdint.h
10273 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
10274 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
10275 { echo "$as_me:$LINENO: checking for $ac_header" >&5
10276 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
10277 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
10278 echo $ECHO_N "(cached) $ECHO_C" >&6
10280 ac_res=`eval echo '${'$as_ac_Header'}'`
10281 { echo "$as_me:$LINENO: result: $ac_res" >&5
10282 echo "${ECHO_T}$ac_res" >&6; }
10284 # Is the header compilable?
10285 { echo "$as_me:$LINENO: checking $ac_header usability" >&5
10286 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
10287 cat >conftest.$ac_ext <<_ACEOF
10290 cat confdefs.h >>conftest.$ac_ext
10291 cat >>conftest.$ac_ext <<_ACEOF
10292 /* end confdefs.h. */
10293 $ac_includes_default
10294 #include <$ac_header>
10296 rm -f conftest.$ac_objext
10297 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
10298 (eval $ac_compile) 2>conftest.er1
10300 grep -v '^ *+' conftest.er1 >conftest.err
10302 cat conftest.err >&5
10303 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10304 (exit $ac_status); } &&
10305 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
10306 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10307 (eval $ac_try) 2>&5
10309 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10310 (exit $ac_status); }; } &&
10311 { ac_try='test -s conftest.$ac_objext'
10312 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10313 (eval $ac_try) 2>&5
10315 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10316 (exit $ac_status); }; }; then
10317 ac_header_compiler=yes
10319 echo "$as_me: failed program was:" >&5
10320 sed 's/^/| /' conftest.$ac_ext >&5
10322 ac_header_compiler=no
10325 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
10326 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
10327 echo "${ECHO_T}$ac_header_compiler" >&6; }
10329 # Is the header present?
10330 { echo "$as_me:$LINENO: checking $ac_header presence" >&5
10331 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
10332 cat >conftest.$ac_ext <<_ACEOF
10335 cat confdefs.h >>conftest.$ac_ext
10336 cat >>conftest.$ac_ext <<_ACEOF
10337 /* end confdefs.h. */
10338 #include <$ac_header>
10340 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
10341 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
10343 grep -v '^ *+' conftest.er1 >conftest.err
10345 cat conftest.err >&5
10346 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10347 (exit $ac_status); } >/dev/null; then
10348 if test -s conftest.err; then
10349 ac_cpp_err=$ac_c_preproc_warn_flag
10350 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
10357 if test -z "$ac_cpp_err"; then
10358 ac_header_preproc=yes
10360 echo "$as_me: failed program was:" >&5
10361 sed 's/^/| /' conftest.$ac_ext >&5
10363 ac_header_preproc=no
10366 rm -f conftest.err conftest.$ac_ext
10367 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
10368 echo "${ECHO_T}$ac_header_preproc" >&6; }
10370 # So? What about this header?
10371 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
10373 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
10374 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
10375 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
10376 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
10377 ac_header_preproc=yes
10380 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
10381 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
10382 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
10383 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
10384 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
10385 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
10386 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
10387 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
10388 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
10389 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
10390 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
10391 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
10395 { echo "$as_me:$LINENO: checking for $ac_header" >&5
10396 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
10397 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
10398 echo $ECHO_N "(cached) $ECHO_C" >&6
10400 eval "$as_ac_Header=\$ac_header_preproc"
10402 ac_res=`eval echo '${'$as_ac_Header'}'`
10403 { echo "$as_me:$LINENO: result: $ac_res" >&5
10404 echo "${ECHO_T}$ac_res" >&6; }
10407 if test `eval echo '${'$as_ac_Header'}'` = yes; then
10408 cat >>confdefs.h <<_ACEOF
10409 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
10419 for ac_header in string.h memory.h strings.h
10421 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
10422 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
10423 { echo "$as_me:$LINENO: checking for $ac_header" >&5
10424 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
10425 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
10426 echo $ECHO_N "(cached) $ECHO_C" >&6
10428 ac_res=`eval echo '${'$as_ac_Header'}'`
10429 { echo "$as_me:$LINENO: result: $ac_res" >&5
10430 echo "${ECHO_T}$ac_res" >&6; }
10432 # Is the header compilable?
10433 { echo "$as_me:$LINENO: checking $ac_header usability" >&5
10434 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
10435 cat >conftest.$ac_ext <<_ACEOF
10438 cat confdefs.h >>conftest.$ac_ext
10439 cat >>conftest.$ac_ext <<_ACEOF
10440 /* end confdefs.h. */
10441 $ac_includes_default
10442 #include <$ac_header>
10444 rm -f conftest.$ac_objext
10445 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
10446 (eval $ac_compile) 2>conftest.er1
10448 grep -v '^ *+' conftest.er1 >conftest.err
10450 cat conftest.err >&5
10451 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10452 (exit $ac_status); } &&
10453 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
10454 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10455 (eval $ac_try) 2>&5
10457 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10458 (exit $ac_status); }; } &&
10459 { ac_try='test -s conftest.$ac_objext'
10460 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10461 (eval $ac_try) 2>&5
10463 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10464 (exit $ac_status); }; }; then
10465 ac_header_compiler=yes
10467 echo "$as_me: failed program was:" >&5
10468 sed 's/^/| /' conftest.$ac_ext >&5
10470 ac_header_compiler=no
10473 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
10474 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
10475 echo "${ECHO_T}$ac_header_compiler" >&6; }
10477 # Is the header present?
10478 { echo "$as_me:$LINENO: checking $ac_header presence" >&5
10479 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
10480 cat >conftest.$ac_ext <<_ACEOF
10483 cat confdefs.h >>conftest.$ac_ext
10484 cat >>conftest.$ac_ext <<_ACEOF
10485 /* end confdefs.h. */
10486 #include <$ac_header>
10488 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
10489 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
10491 grep -v '^ *+' conftest.er1 >conftest.err
10493 cat conftest.err >&5
10494 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10495 (exit $ac_status); } >/dev/null; then
10496 if test -s conftest.err; then
10497 ac_cpp_err=$ac_c_preproc_warn_flag
10498 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
10505 if test -z "$ac_cpp_err"; then
10506 ac_header_preproc=yes
10508 echo "$as_me: failed program was:" >&5
10509 sed 's/^/| /' conftest.$ac_ext >&5
10511 ac_header_preproc=no
10514 rm -f conftest.err conftest.$ac_ext
10515 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
10516 echo "${ECHO_T}$ac_header_preproc" >&6; }
10518 # So? What about this header?
10519 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
10521 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
10522 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
10523 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
10524 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
10525 ac_header_preproc=yes
10528 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
10529 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
10530 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
10531 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
10532 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
10533 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
10534 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
10535 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
10536 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
10537 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
10538 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
10539 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
10543 { echo "$as_me:$LINENO: checking for $ac_header" >&5
10544 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
10545 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
10546 echo $ECHO_N "(cached) $ECHO_C" >&6
10548 eval "$as_ac_Header=\$ac_header_preproc"
10550 ac_res=`eval echo '${'$as_ac_Header'}'`
10551 { echo "$as_me:$LINENO: result: $ac_res" >&5
10552 echo "${ECHO_T}$ac_res" >&6; }
10555 if test `eval echo '${'$as_ac_Header'}'` = yes; then
10556 cat >>confdefs.h <<_ACEOF
10557 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
10565 for ac_header in sys/fault.h
10567 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
10568 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
10569 { echo "$as_me:$LINENO: checking for $ac_header" >&5
10570 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
10571 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
10572 echo $ECHO_N "(cached) $ECHO_C" >&6
10574 ac_res=`eval echo '${'$as_ac_Header'}'`
10575 { echo "$as_me:$LINENO: result: $ac_res" >&5
10576 echo "${ECHO_T}$ac_res" >&6; }
10578 # Is the header compilable?
10579 { echo "$as_me:$LINENO: checking $ac_header usability" >&5
10580 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
10581 cat >conftest.$ac_ext <<_ACEOF
10584 cat confdefs.h >>conftest.$ac_ext
10585 cat >>conftest.$ac_ext <<_ACEOF
10586 /* end confdefs.h. */
10587 $ac_includes_default
10588 #include <$ac_header>
10590 rm -f conftest.$ac_objext
10591 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
10592 (eval $ac_compile) 2>conftest.er1
10594 grep -v '^ *+' conftest.er1 >conftest.err
10596 cat conftest.err >&5
10597 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10598 (exit $ac_status); } &&
10599 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
10600 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10601 (eval $ac_try) 2>&5
10603 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10604 (exit $ac_status); }; } &&
10605 { ac_try='test -s conftest.$ac_objext'
10606 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10607 (eval $ac_try) 2>&5
10609 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10610 (exit $ac_status); }; }; then
10611 ac_header_compiler=yes
10613 echo "$as_me: failed program was:" >&5
10614 sed 's/^/| /' conftest.$ac_ext >&5
10616 ac_header_compiler=no
10619 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
10620 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
10621 echo "${ECHO_T}$ac_header_compiler" >&6; }
10623 # Is the header present?
10624 { echo "$as_me:$LINENO: checking $ac_header presence" >&5
10625 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
10626 cat >conftest.$ac_ext <<_ACEOF
10629 cat confdefs.h >>conftest.$ac_ext
10630 cat >>conftest.$ac_ext <<_ACEOF
10631 /* end confdefs.h. */
10632 #include <$ac_header>
10634 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
10635 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
10637 grep -v '^ *+' conftest.er1 >conftest.err
10639 cat conftest.err >&5
10640 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10641 (exit $ac_status); } >/dev/null; then
10642 if test -s conftest.err; then
10643 ac_cpp_err=$ac_c_preproc_warn_flag
10644 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
10651 if test -z "$ac_cpp_err"; then
10652 ac_header_preproc=yes
10654 echo "$as_me: failed program was:" >&5
10655 sed 's/^/| /' conftest.$ac_ext >&5
10657 ac_header_preproc=no
10660 rm -f conftest.err conftest.$ac_ext
10661 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
10662 echo "${ECHO_T}$ac_header_preproc" >&6; }
10664 # So? What about this header?
10665 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
10667 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
10668 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
10669 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
10670 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
10671 ac_header_preproc=yes
10674 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
10675 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
10676 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
10677 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
10678 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
10679 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
10680 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
10681 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
10682 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
10683 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
10684 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
10685 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
10689 { echo "$as_me:$LINENO: checking for $ac_header" >&5
10690 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
10691 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
10692 echo $ECHO_N "(cached) $ECHO_C" >&6
10694 eval "$as_ac_Header=\$ac_header_preproc"
10696 ac_res=`eval echo '${'$as_ac_Header'}'`
10697 { echo "$as_me:$LINENO: result: $ac_res" >&5
10698 echo "${ECHO_T}$ac_res" >&6; }
10701 if test `eval echo '${'$as_ac_Header'}'` = yes; then
10702 cat >>confdefs.h <<_ACEOF
10703 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
10711 for ac_header in sys/file.h
10713 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
10714 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
10715 { echo "$as_me:$LINENO: checking for $ac_header" >&5
10716 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
10717 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
10718 echo $ECHO_N "(cached) $ECHO_C" >&6
10720 ac_res=`eval echo '${'$as_ac_Header'}'`
10721 { echo "$as_me:$LINENO: result: $ac_res" >&5
10722 echo "${ECHO_T}$ac_res" >&6; }
10724 # Is the header compilable?
10725 { echo "$as_me:$LINENO: checking $ac_header usability" >&5
10726 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
10727 cat >conftest.$ac_ext <<_ACEOF
10730 cat confdefs.h >>conftest.$ac_ext
10731 cat >>conftest.$ac_ext <<_ACEOF
10732 /* end confdefs.h. */
10733 $ac_includes_default
10734 #include <$ac_header>
10736 rm -f conftest.$ac_objext
10737 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
10738 (eval $ac_compile) 2>conftest.er1
10740 grep -v '^ *+' conftest.er1 >conftest.err
10742 cat conftest.err >&5
10743 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10744 (exit $ac_status); } &&
10745 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
10746 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10747 (eval $ac_try) 2>&5
10749 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10750 (exit $ac_status); }; } &&
10751 { ac_try='test -s conftest.$ac_objext'
10752 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10753 (eval $ac_try) 2>&5
10755 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10756 (exit $ac_status); }; }; then
10757 ac_header_compiler=yes
10759 echo "$as_me: failed program was:" >&5
10760 sed 's/^/| /' conftest.$ac_ext >&5
10762 ac_header_compiler=no
10765 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
10766 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
10767 echo "${ECHO_T}$ac_header_compiler" >&6; }
10769 # Is the header present?
10770 { echo "$as_me:$LINENO: checking $ac_header presence" >&5
10771 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
10772 cat >conftest.$ac_ext <<_ACEOF
10775 cat confdefs.h >>conftest.$ac_ext
10776 cat >>conftest.$ac_ext <<_ACEOF
10777 /* end confdefs.h. */
10778 #include <$ac_header>
10780 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
10781 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
10783 grep -v '^ *+' conftest.er1 >conftest.err
10785 cat conftest.err >&5
10786 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10787 (exit $ac_status); } >/dev/null; then
10788 if test -s conftest.err; then
10789 ac_cpp_err=$ac_c_preproc_warn_flag
10790 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
10797 if test -z "$ac_cpp_err"; then
10798 ac_header_preproc=yes
10800 echo "$as_me: failed program was:" >&5
10801 sed 's/^/| /' conftest.$ac_ext >&5
10803 ac_header_preproc=no
10806 rm -f conftest.err conftest.$ac_ext
10807 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
10808 echo "${ECHO_T}$ac_header_preproc" >&6; }
10810 # So? What about this header?
10811 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
10813 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
10814 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
10815 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
10816 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
10817 ac_header_preproc=yes
10820 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
10821 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
10822 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
10823 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
10824 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
10825 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
10826 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
10827 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
10828 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
10829 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
10830 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
10831 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
10835 { echo "$as_me:$LINENO: checking for $ac_header" >&5
10836 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
10837 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
10838 echo $ECHO_N "(cached) $ECHO_C" >&6
10840 eval "$as_ac_Header=\$ac_header_preproc"
10842 ac_res=`eval echo '${'$as_ac_Header'}'`
10843 { echo "$as_me:$LINENO: result: $ac_res" >&5
10844 echo "${ECHO_T}$ac_res" >&6; }
10847 if test `eval echo '${'$as_ac_Header'}'` = yes; then
10848 cat >>confdefs.h <<_ACEOF
10849 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
10857 for ac_header in sys/filio.h
10859 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
10860 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
10861 { echo "$as_me:$LINENO: checking for $ac_header" >&5
10862 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
10863 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
10864 echo $ECHO_N "(cached) $ECHO_C" >&6
10866 ac_res=`eval echo '${'$as_ac_Header'}'`
10867 { echo "$as_me:$LINENO: result: $ac_res" >&5
10868 echo "${ECHO_T}$ac_res" >&6; }
10870 # Is the header compilable?
10871 { echo "$as_me:$LINENO: checking $ac_header usability" >&5
10872 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
10873 cat >conftest.$ac_ext <<_ACEOF
10876 cat confdefs.h >>conftest.$ac_ext
10877 cat >>conftest.$ac_ext <<_ACEOF
10878 /* end confdefs.h. */
10879 $ac_includes_default
10880 #include <$ac_header>
10882 rm -f conftest.$ac_objext
10883 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
10884 (eval $ac_compile) 2>conftest.er1
10886 grep -v '^ *+' conftest.er1 >conftest.err
10888 cat conftest.err >&5
10889 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10890 (exit $ac_status); } &&
10891 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
10892 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10893 (eval $ac_try) 2>&5
10895 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10896 (exit $ac_status); }; } &&
10897 { ac_try='test -s conftest.$ac_objext'
10898 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10899 (eval $ac_try) 2>&5
10901 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10902 (exit $ac_status); }; }; then
10903 ac_header_compiler=yes
10905 echo "$as_me: failed program was:" >&5
10906 sed 's/^/| /' conftest.$ac_ext >&5
10908 ac_header_compiler=no
10911 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
10912 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
10913 echo "${ECHO_T}$ac_header_compiler" >&6; }
10915 # Is the header present?
10916 { echo "$as_me:$LINENO: checking $ac_header presence" >&5
10917 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
10918 cat >conftest.$ac_ext <<_ACEOF
10921 cat confdefs.h >>conftest.$ac_ext
10922 cat >>conftest.$ac_ext <<_ACEOF
10923 /* end confdefs.h. */
10924 #include <$ac_header>
10926 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
10927 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
10929 grep -v '^ *+' conftest.er1 >conftest.err
10931 cat conftest.err >&5
10932 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10933 (exit $ac_status); } >/dev/null; then
10934 if test -s conftest.err; then
10935 ac_cpp_err=$ac_c_preproc_warn_flag
10936 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
10943 if test -z "$ac_cpp_err"; then
10944 ac_header_preproc=yes
10946 echo "$as_me: failed program was:" >&5
10947 sed 's/^/| /' conftest.$ac_ext >&5
10949 ac_header_preproc=no
10952 rm -f conftest.err conftest.$ac_ext
10953 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
10954 echo "${ECHO_T}$ac_header_preproc" >&6; }
10956 # So? What about this header?
10957 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
10959 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
10960 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
10961 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
10962 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
10963 ac_header_preproc=yes
10966 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
10967 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
10968 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
10969 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
10970 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
10971 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
10972 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
10973 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
10974 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
10975 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
10976 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
10977 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
10981 { echo "$as_me:$LINENO: checking for $ac_header" >&5
10982 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
10983 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
10984 echo $ECHO_N "(cached) $ECHO_C" >&6
10986 eval "$as_ac_Header=\$ac_header_preproc"
10988 ac_res=`eval echo '${'$as_ac_Header'}'`
10989 { echo "$as_me:$LINENO: result: $ac_res" >&5
10990 echo "${ECHO_T}$ac_res" >&6; }
10993 if test `eval echo '${'$as_ac_Header'}'` = yes; then
10994 cat >>confdefs.h <<_ACEOF
10995 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
11003 for ac_header in sys/ioctl.h
11005 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
11006 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
11007 { echo "$as_me:$LINENO: checking for $ac_header" >&5
11008 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
11009 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
11010 echo $ECHO_N "(cached) $ECHO_C" >&6
11012 ac_res=`eval echo '${'$as_ac_Header'}'`
11013 { echo "$as_me:$LINENO: result: $ac_res" >&5
11014 echo "${ECHO_T}$ac_res" >&6; }
11016 # Is the header compilable?
11017 { echo "$as_me:$LINENO: checking $ac_header usability" >&5
11018 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
11019 cat >conftest.$ac_ext <<_ACEOF
11022 cat confdefs.h >>conftest.$ac_ext
11023 cat >>conftest.$ac_ext <<_ACEOF
11024 /* end confdefs.h. */
11025 $ac_includes_default
11026 #include <$ac_header>
11028 rm -f conftest.$ac_objext
11029 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
11030 (eval $ac_compile) 2>conftest.er1
11032 grep -v '^ *+' conftest.er1 >conftest.err
11034 cat conftest.err >&5
11035 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11036 (exit $ac_status); } &&
11037 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
11038 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11039 (eval $ac_try) 2>&5
11041 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11042 (exit $ac_status); }; } &&
11043 { ac_try='test -s conftest.$ac_objext'
11044 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11045 (eval $ac_try) 2>&5
11047 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11048 (exit $ac_status); }; }; then
11049 ac_header_compiler=yes
11051 echo "$as_me: failed program was:" >&5
11052 sed 's/^/| /' conftest.$ac_ext >&5
11054 ac_header_compiler=no
11057 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
11058 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
11059 echo "${ECHO_T}$ac_header_compiler" >&6; }
11061 # Is the header present?
11062 { echo "$as_me:$LINENO: checking $ac_header presence" >&5
11063 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
11064 cat >conftest.$ac_ext <<_ACEOF
11067 cat confdefs.h >>conftest.$ac_ext
11068 cat >>conftest.$ac_ext <<_ACEOF
11069 /* end confdefs.h. */
11070 #include <$ac_header>
11072 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
11073 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
11075 grep -v '^ *+' conftest.er1 >conftest.err
11077 cat conftest.err >&5
11078 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11079 (exit $ac_status); } >/dev/null; then
11080 if test -s conftest.err; then
11081 ac_cpp_err=$ac_c_preproc_warn_flag
11082 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
11089 if test -z "$ac_cpp_err"; then
11090 ac_header_preproc=yes
11092 echo "$as_me: failed program was:" >&5
11093 sed 's/^/| /' conftest.$ac_ext >&5
11095 ac_header_preproc=no
11098 rm -f conftest.err conftest.$ac_ext
11099 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
11100 echo "${ECHO_T}$ac_header_preproc" >&6; }
11102 # So? What about this header?
11103 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
11105 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
11106 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
11107 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
11108 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
11109 ac_header_preproc=yes
11112 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
11113 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
11114 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
11115 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
11116 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
11117 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
11118 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
11119 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
11120 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
11121 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
11122 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
11123 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
11127 { echo "$as_me:$LINENO: checking for $ac_header" >&5
11128 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
11129 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
11130 echo $ECHO_N "(cached) $ECHO_C" >&6
11132 eval "$as_ac_Header=\$ac_header_preproc"
11134 ac_res=`eval echo '${'$as_ac_Header'}'`
11135 { echo "$as_me:$LINENO: result: $ac_res" >&5
11136 echo "${ECHO_T}$ac_res" >&6; }
11139 if test `eval echo '${'$as_ac_Header'}'` = yes; then
11140 cat >>confdefs.h <<_ACEOF
11141 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
11149 for ac_header in sys/param.h
11151 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
11152 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
11153 { echo "$as_me:$LINENO: checking for $ac_header" >&5
11154 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
11155 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
11156 echo $ECHO_N "(cached) $ECHO_C" >&6
11158 ac_res=`eval echo '${'$as_ac_Header'}'`
11159 { echo "$as_me:$LINENO: result: $ac_res" >&5
11160 echo "${ECHO_T}$ac_res" >&6; }
11162 # Is the header compilable?
11163 { echo "$as_me:$LINENO: checking $ac_header usability" >&5
11164 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
11165 cat >conftest.$ac_ext <<_ACEOF
11168 cat confdefs.h >>conftest.$ac_ext
11169 cat >>conftest.$ac_ext <<_ACEOF
11170 /* end confdefs.h. */
11171 $ac_includes_default
11172 #include <$ac_header>
11174 rm -f conftest.$ac_objext
11175 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
11176 (eval $ac_compile) 2>conftest.er1
11178 grep -v '^ *+' conftest.er1 >conftest.err
11180 cat conftest.err >&5
11181 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11182 (exit $ac_status); } &&
11183 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
11184 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11185 (eval $ac_try) 2>&5
11187 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11188 (exit $ac_status); }; } &&
11189 { ac_try='test -s conftest.$ac_objext'
11190 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11191 (eval $ac_try) 2>&5
11193 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11194 (exit $ac_status); }; }; then
11195 ac_header_compiler=yes
11197 echo "$as_me: failed program was:" >&5
11198 sed 's/^/| /' conftest.$ac_ext >&5
11200 ac_header_compiler=no
11203 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
11204 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
11205 echo "${ECHO_T}$ac_header_compiler" >&6; }
11207 # Is the header present?
11208 { echo "$as_me:$LINENO: checking $ac_header presence" >&5
11209 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
11210 cat >conftest.$ac_ext <<_ACEOF
11213 cat confdefs.h >>conftest.$ac_ext
11214 cat >>conftest.$ac_ext <<_ACEOF
11215 /* end confdefs.h. */
11216 #include <$ac_header>
11218 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
11219 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
11221 grep -v '^ *+' conftest.er1 >conftest.err
11223 cat conftest.err >&5
11224 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11225 (exit $ac_status); } >/dev/null; then
11226 if test -s conftest.err; then
11227 ac_cpp_err=$ac_c_preproc_warn_flag
11228 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
11235 if test -z "$ac_cpp_err"; then
11236 ac_header_preproc=yes
11238 echo "$as_me: failed program was:" >&5
11239 sed 's/^/| /' conftest.$ac_ext >&5
11241 ac_header_preproc=no
11244 rm -f conftest.err conftest.$ac_ext
11245 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
11246 echo "${ECHO_T}$ac_header_preproc" >&6; }
11248 # So? What about this header?
11249 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
11251 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
11252 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
11253 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
11254 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
11255 ac_header_preproc=yes
11258 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
11259 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
11260 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
11261 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
11262 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
11263 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
11264 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
11265 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
11266 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
11267 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
11268 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
11269 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
11273 { echo "$as_me:$LINENO: checking for $ac_header" >&5
11274 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
11275 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
11276 echo $ECHO_N "(cached) $ECHO_C" >&6
11278 eval "$as_ac_Header=\$ac_header_preproc"
11280 ac_res=`eval echo '${'$as_ac_Header'}'`
11281 { echo "$as_me:$LINENO: result: $ac_res" >&5
11282 echo "${ECHO_T}$ac_res" >&6; }
11285 if test `eval echo '${'$as_ac_Header'}'` = yes; then
11286 cat >>confdefs.h <<_ACEOF
11287 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
11295 for ac_header in sys/proc.h
11297 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
11298 { echo "$as_me:$LINENO: checking for $ac_header" >&5
11299 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
11300 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
11301 echo $ECHO_N "(cached) $ECHO_C" >&6
11303 cat >conftest.$ac_ext <<_ACEOF
11306 cat confdefs.h >>conftest.$ac_ext
11307 cat >>conftest.$ac_ext <<_ACEOF
11308 /* end confdefs.h. */
11309 #if HAVE_SYS_PARAM_H
11310 # include <sys/param.h>
11314 #include <$ac_header>
11316 rm -f conftest.$ac_objext
11317 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
11318 (eval $ac_compile) 2>conftest.er1
11320 grep -v '^ *+' conftest.er1 >conftest.err
11322 cat conftest.err >&5
11323 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11324 (exit $ac_status); } &&
11325 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
11326 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11327 (eval $ac_try) 2>&5
11329 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11330 (exit $ac_status); }; } &&
11331 { ac_try='test -s conftest.$ac_objext'
11332 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11333 (eval $ac_try) 2>&5
11335 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11336 (exit $ac_status); }; }; then
11337 eval "$as_ac_Header=yes"
11339 echo "$as_me: failed program was:" >&5
11340 sed 's/^/| /' conftest.$ac_ext >&5
11342 eval "$as_ac_Header=no"
11345 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
11347 ac_res=`eval echo '${'$as_ac_Header'}'`
11348 { echo "$as_me:$LINENO: result: $ac_res" >&5
11349 echo "${ECHO_T}$ac_res" >&6; }
11350 if test `eval echo '${'$as_ac_Header'}'` = yes; then
11351 cat >>confdefs.h <<_ACEOF
11352 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
11360 for ac_header in sys/procfs.h
11362 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
11363 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
11364 { echo "$as_me:$LINENO: checking for $ac_header" >&5
11365 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
11366 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
11367 echo $ECHO_N "(cached) $ECHO_C" >&6
11369 ac_res=`eval echo '${'$as_ac_Header'}'`
11370 { echo "$as_me:$LINENO: result: $ac_res" >&5
11371 echo "${ECHO_T}$ac_res" >&6; }
11373 # Is the header compilable?
11374 { echo "$as_me:$LINENO: checking $ac_header usability" >&5
11375 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
11376 cat >conftest.$ac_ext <<_ACEOF
11379 cat confdefs.h >>conftest.$ac_ext
11380 cat >>conftest.$ac_ext <<_ACEOF
11381 /* end confdefs.h. */
11382 $ac_includes_default
11383 #include <$ac_header>
11385 rm -f conftest.$ac_objext
11386 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
11387 (eval $ac_compile) 2>conftest.er1
11389 grep -v '^ *+' conftest.er1 >conftest.err
11391 cat conftest.err >&5
11392 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11393 (exit $ac_status); } &&
11394 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
11395 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11396 (eval $ac_try) 2>&5
11398 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11399 (exit $ac_status); }; } &&
11400 { ac_try='test -s conftest.$ac_objext'
11401 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11402 (eval $ac_try) 2>&5
11404 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11405 (exit $ac_status); }; }; then
11406 ac_header_compiler=yes
11408 echo "$as_me: failed program was:" >&5
11409 sed 's/^/| /' conftest.$ac_ext >&5
11411 ac_header_compiler=no
11414 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
11415 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
11416 echo "${ECHO_T}$ac_header_compiler" >&6; }
11418 # Is the header present?
11419 { echo "$as_me:$LINENO: checking $ac_header presence" >&5
11420 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
11421 cat >conftest.$ac_ext <<_ACEOF
11424 cat confdefs.h >>conftest.$ac_ext
11425 cat >>conftest.$ac_ext <<_ACEOF
11426 /* end confdefs.h. */
11427 #include <$ac_header>
11429 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
11430 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
11432 grep -v '^ *+' conftest.er1 >conftest.err
11434 cat conftest.err >&5
11435 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11436 (exit $ac_status); } >/dev/null; then
11437 if test -s conftest.err; then
11438 ac_cpp_err=$ac_c_preproc_warn_flag
11439 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
11446 if test -z "$ac_cpp_err"; then
11447 ac_header_preproc=yes
11449 echo "$as_me: failed program was:" >&5
11450 sed 's/^/| /' conftest.$ac_ext >&5
11452 ac_header_preproc=no
11455 rm -f conftest.err conftest.$ac_ext
11456 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
11457 echo "${ECHO_T}$ac_header_preproc" >&6; }
11459 # So? What about this header?
11460 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
11462 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
11463 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
11464 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
11465 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
11466 ac_header_preproc=yes
11469 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
11470 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
11471 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
11472 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
11473 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
11474 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
11475 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
11476 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
11477 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
11478 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
11479 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
11480 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
11484 { echo "$as_me:$LINENO: checking for $ac_header" >&5
11485 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
11486 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
11487 echo $ECHO_N "(cached) $ECHO_C" >&6
11489 eval "$as_ac_Header=\$ac_header_preproc"
11491 ac_res=`eval echo '${'$as_ac_Header'}'`
11492 { echo "$as_me:$LINENO: result: $ac_res" >&5
11493 echo "${ECHO_T}$ac_res" >&6; }
11496 if test `eval echo '${'$as_ac_Header'}'` = yes; then
11497 cat >>confdefs.h <<_ACEOF
11498 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
11507 for ac_header in sys/ptrace.h ptrace.h
11509 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
11510 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
11511 { echo "$as_me:$LINENO: checking for $ac_header" >&5
11512 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
11513 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
11514 echo $ECHO_N "(cached) $ECHO_C" >&6
11516 ac_res=`eval echo '${'$as_ac_Header'}'`
11517 { echo "$as_me:$LINENO: result: $ac_res" >&5
11518 echo "${ECHO_T}$ac_res" >&6; }
11520 # Is the header compilable?
11521 { echo "$as_me:$LINENO: checking $ac_header usability" >&5
11522 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
11523 cat >conftest.$ac_ext <<_ACEOF
11526 cat confdefs.h >>conftest.$ac_ext
11527 cat >>conftest.$ac_ext <<_ACEOF
11528 /* end confdefs.h. */
11529 $ac_includes_default
11530 #include <$ac_header>
11532 rm -f conftest.$ac_objext
11533 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
11534 (eval $ac_compile) 2>conftest.er1
11536 grep -v '^ *+' conftest.er1 >conftest.err
11538 cat conftest.err >&5
11539 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11540 (exit $ac_status); } &&
11541 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
11542 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11543 (eval $ac_try) 2>&5
11545 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11546 (exit $ac_status); }; } &&
11547 { ac_try='test -s conftest.$ac_objext'
11548 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11549 (eval $ac_try) 2>&5
11551 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11552 (exit $ac_status); }; }; then
11553 ac_header_compiler=yes
11555 echo "$as_me: failed program was:" >&5
11556 sed 's/^/| /' conftest.$ac_ext >&5
11558 ac_header_compiler=no
11561 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
11562 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
11563 echo "${ECHO_T}$ac_header_compiler" >&6; }
11565 # Is the header present?
11566 { echo "$as_me:$LINENO: checking $ac_header presence" >&5
11567 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
11568 cat >conftest.$ac_ext <<_ACEOF
11571 cat confdefs.h >>conftest.$ac_ext
11572 cat >>conftest.$ac_ext <<_ACEOF
11573 /* end confdefs.h. */
11574 #include <$ac_header>
11576 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
11577 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
11579 grep -v '^ *+' conftest.er1 >conftest.err
11581 cat conftest.err >&5
11582 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11583 (exit $ac_status); } >/dev/null; then
11584 if test -s conftest.err; then
11585 ac_cpp_err=$ac_c_preproc_warn_flag
11586 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
11593 if test -z "$ac_cpp_err"; then
11594 ac_header_preproc=yes
11596 echo "$as_me: failed program was:" >&5
11597 sed 's/^/| /' conftest.$ac_ext >&5
11599 ac_header_preproc=no
11602 rm -f conftest.err conftest.$ac_ext
11603 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
11604 echo "${ECHO_T}$ac_header_preproc" >&6; }
11606 # So? What about this header?
11607 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
11609 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
11610 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
11611 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
11612 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
11613 ac_header_preproc=yes
11616 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
11617 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
11618 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
11619 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
11620 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
11621 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
11622 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
11623 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
11624 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
11625 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
11626 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
11627 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
11631 { echo "$as_me:$LINENO: checking for $ac_header" >&5
11632 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
11633 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
11634 echo $ECHO_N "(cached) $ECHO_C" >&6
11636 eval "$as_ac_Header=\$ac_header_preproc"
11638 ac_res=`eval echo '${'$as_ac_Header'}'`
11639 { echo "$as_me:$LINENO: result: $ac_res" >&5
11640 echo "${ECHO_T}$ac_res" >&6; }
11643 if test `eval echo '${'$as_ac_Header'}'` = yes; then
11644 cat >>confdefs.h <<_ACEOF
11645 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
11654 for ac_header in sys/reg.h sys/debugreg.h
11656 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
11657 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
11658 { echo "$as_me:$LINENO: checking for $ac_header" >&5
11659 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
11660 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
11661 echo $ECHO_N "(cached) $ECHO_C" >&6
11663 ac_res=`eval echo '${'$as_ac_Header'}'`
11664 { echo "$as_me:$LINENO: result: $ac_res" >&5
11665 echo "${ECHO_T}$ac_res" >&6; }
11667 # Is the header compilable?
11668 { echo "$as_me:$LINENO: checking $ac_header usability" >&5
11669 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
11670 cat >conftest.$ac_ext <<_ACEOF
11673 cat confdefs.h >>conftest.$ac_ext
11674 cat >>conftest.$ac_ext <<_ACEOF
11675 /* end confdefs.h. */
11676 $ac_includes_default
11677 #include <$ac_header>
11679 rm -f conftest.$ac_objext
11680 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
11681 (eval $ac_compile) 2>conftest.er1
11683 grep -v '^ *+' conftest.er1 >conftest.err
11685 cat conftest.err >&5
11686 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11687 (exit $ac_status); } &&
11688 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
11689 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11690 (eval $ac_try) 2>&5
11692 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11693 (exit $ac_status); }; } &&
11694 { ac_try='test -s conftest.$ac_objext'
11695 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11696 (eval $ac_try) 2>&5
11698 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11699 (exit $ac_status); }; }; then
11700 ac_header_compiler=yes
11702 echo "$as_me: failed program was:" >&5
11703 sed 's/^/| /' conftest.$ac_ext >&5
11705 ac_header_compiler=no
11708 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
11709 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
11710 echo "${ECHO_T}$ac_header_compiler" >&6; }
11712 # Is the header present?
11713 { echo "$as_me:$LINENO: checking $ac_header presence" >&5
11714 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
11715 cat >conftest.$ac_ext <<_ACEOF
11718 cat confdefs.h >>conftest.$ac_ext
11719 cat >>conftest.$ac_ext <<_ACEOF
11720 /* end confdefs.h. */
11721 #include <$ac_header>
11723 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
11724 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
11726 grep -v '^ *+' conftest.er1 >conftest.err
11728 cat conftest.err >&5
11729 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11730 (exit $ac_status); } >/dev/null; then
11731 if test -s conftest.err; then
11732 ac_cpp_err=$ac_c_preproc_warn_flag
11733 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
11740 if test -z "$ac_cpp_err"; then
11741 ac_header_preproc=yes
11743 echo "$as_me: failed program was:" >&5
11744 sed 's/^/| /' conftest.$ac_ext >&5
11746 ac_header_preproc=no
11749 rm -f conftest.err conftest.$ac_ext
11750 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
11751 echo "${ECHO_T}$ac_header_preproc" >&6; }
11753 # So? What about this header?
11754 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
11756 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
11757 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
11758 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
11759 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
11760 ac_header_preproc=yes
11763 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
11764 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
11765 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
11766 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
11767 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
11768 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
11769 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
11770 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
11771 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
11772 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
11773 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
11774 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
11778 { echo "$as_me:$LINENO: checking for $ac_header" >&5
11779 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
11780 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
11781 echo $ECHO_N "(cached) $ECHO_C" >&6
11783 eval "$as_ac_Header=\$ac_header_preproc"
11785 ac_res=`eval echo '${'$as_ac_Header'}'`
11786 { echo "$as_me:$LINENO: result: $ac_res" >&5
11787 echo "${ECHO_T}$ac_res" >&6; }
11790 if test `eval echo '${'$as_ac_Header'}'` = yes; then
11791 cat >>confdefs.h <<_ACEOF
11792 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
11800 for ac_header in sys/select.h
11802 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
11803 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
11804 { echo "$as_me:$LINENO: checking for $ac_header" >&5
11805 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
11806 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
11807 echo $ECHO_N "(cached) $ECHO_C" >&6
11809 ac_res=`eval echo '${'$as_ac_Header'}'`
11810 { echo "$as_me:$LINENO: result: $ac_res" >&5
11811 echo "${ECHO_T}$ac_res" >&6; }
11813 # Is the header compilable?
11814 { echo "$as_me:$LINENO: checking $ac_header usability" >&5
11815 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
11816 cat >conftest.$ac_ext <<_ACEOF
11819 cat confdefs.h >>conftest.$ac_ext
11820 cat >>conftest.$ac_ext <<_ACEOF
11821 /* end confdefs.h. */
11822 $ac_includes_default
11823 #include <$ac_header>
11825 rm -f conftest.$ac_objext
11826 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
11827 (eval $ac_compile) 2>conftest.er1
11829 grep -v '^ *+' conftest.er1 >conftest.err
11831 cat conftest.err >&5
11832 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11833 (exit $ac_status); } &&
11834 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
11835 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11836 (eval $ac_try) 2>&5
11838 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11839 (exit $ac_status); }; } &&
11840 { ac_try='test -s conftest.$ac_objext'
11841 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11842 (eval $ac_try) 2>&5
11844 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11845 (exit $ac_status); }; }; then
11846 ac_header_compiler=yes
11848 echo "$as_me: failed program was:" >&5
11849 sed 's/^/| /' conftest.$ac_ext >&5
11851 ac_header_compiler=no
11854 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
11855 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
11856 echo "${ECHO_T}$ac_header_compiler" >&6; }
11858 # Is the header present?
11859 { echo "$as_me:$LINENO: checking $ac_header presence" >&5
11860 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
11861 cat >conftest.$ac_ext <<_ACEOF
11864 cat confdefs.h >>conftest.$ac_ext
11865 cat >>conftest.$ac_ext <<_ACEOF
11866 /* end confdefs.h. */
11867 #include <$ac_header>
11869 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
11870 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
11872 grep -v '^ *+' conftest.er1 >conftest.err
11874 cat conftest.err >&5
11875 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11876 (exit $ac_status); } >/dev/null; then
11877 if test -s conftest.err; then
11878 ac_cpp_err=$ac_c_preproc_warn_flag
11879 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
11886 if test -z "$ac_cpp_err"; then
11887 ac_header_preproc=yes
11889 echo "$as_me: failed program was:" >&5
11890 sed 's/^/| /' conftest.$ac_ext >&5
11892 ac_header_preproc=no
11895 rm -f conftest.err conftest.$ac_ext
11896 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
11897 echo "${ECHO_T}$ac_header_preproc" >&6; }
11899 # So? What about this header?
11900 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
11902 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
11903 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
11904 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
11905 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
11906 ac_header_preproc=yes
11909 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
11910 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
11911 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
11912 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
11913 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
11914 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
11915 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
11916 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
11917 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
11918 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
11919 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
11920 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
11924 { echo "$as_me:$LINENO: checking for $ac_header" >&5
11925 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
11926 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
11927 echo $ECHO_N "(cached) $ECHO_C" >&6
11929 eval "$as_ac_Header=\$ac_header_preproc"
11931 ac_res=`eval echo '${'$as_ac_Header'}'`
11932 { echo "$as_me:$LINENO: result: $ac_res" >&5
11933 echo "${ECHO_T}$ac_res" >&6; }
11936 if test `eval echo '${'$as_ac_Header'}'` = yes; then
11937 cat >>confdefs.h <<_ACEOF
11938 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
11946 for ac_header in sys/syscall.h
11948 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
11949 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
11950 { echo "$as_me:$LINENO: checking for $ac_header" >&5
11951 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
11952 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
11953 echo $ECHO_N "(cached) $ECHO_C" >&6
11955 ac_res=`eval echo '${'$as_ac_Header'}'`
11956 { echo "$as_me:$LINENO: result: $ac_res" >&5
11957 echo "${ECHO_T}$ac_res" >&6; }
11959 # Is the header compilable?
11960 { echo "$as_me:$LINENO: checking $ac_header usability" >&5
11961 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
11962 cat >conftest.$ac_ext <<_ACEOF
11965 cat confdefs.h >>conftest.$ac_ext
11966 cat >>conftest.$ac_ext <<_ACEOF
11967 /* end confdefs.h. */
11968 $ac_includes_default
11969 #include <$ac_header>
11971 rm -f conftest.$ac_objext
11972 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
11973 (eval $ac_compile) 2>conftest.er1
11975 grep -v '^ *+' conftest.er1 >conftest.err
11977 cat conftest.err >&5
11978 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11979 (exit $ac_status); } &&
11980 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
11981 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11982 (eval $ac_try) 2>&5
11984 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11985 (exit $ac_status); }; } &&
11986 { ac_try='test -s conftest.$ac_objext'
11987 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11988 (eval $ac_try) 2>&5
11990 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11991 (exit $ac_status); }; }; then
11992 ac_header_compiler=yes
11994 echo "$as_me: failed program was:" >&5
11995 sed 's/^/| /' conftest.$ac_ext >&5
11997 ac_header_compiler=no
12000 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
12001 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
12002 echo "${ECHO_T}$ac_header_compiler" >&6; }
12004 # Is the header present?
12005 { echo "$as_me:$LINENO: checking $ac_header presence" >&5
12006 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
12007 cat >conftest.$ac_ext <<_ACEOF
12010 cat confdefs.h >>conftest.$ac_ext
12011 cat >>conftest.$ac_ext <<_ACEOF
12012 /* end confdefs.h. */
12013 #include <$ac_header>
12015 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
12016 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
12018 grep -v '^ *+' conftest.er1 >conftest.err
12020 cat conftest.err >&5
12021 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12022 (exit $ac_status); } >/dev/null; then
12023 if test -s conftest.err; then
12024 ac_cpp_err=$ac_c_preproc_warn_flag
12025 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
12032 if test -z "$ac_cpp_err"; then
12033 ac_header_preproc=yes
12035 echo "$as_me: failed program was:" >&5
12036 sed 's/^/| /' conftest.$ac_ext >&5
12038 ac_header_preproc=no
12041 rm -f conftest.err conftest.$ac_ext
12042 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
12043 echo "${ECHO_T}$ac_header_preproc" >&6; }
12045 # So? What about this header?
12046 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
12048 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
12049 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
12050 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
12051 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
12052 ac_header_preproc=yes
12055 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
12056 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
12057 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
12058 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
12059 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
12060 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
12061 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
12062 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
12063 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
12064 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
12065 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
12066 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
12070 { echo "$as_me:$LINENO: checking for $ac_header" >&5
12071 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
12072 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
12073 echo $ECHO_N "(cached) $ECHO_C" >&6
12075 eval "$as_ac_Header=\$ac_header_preproc"
12077 ac_res=`eval echo '${'$as_ac_Header'}'`
12078 { echo "$as_me:$LINENO: result: $ac_res" >&5
12079 echo "${ECHO_T}$ac_res" >&6; }
12082 if test `eval echo '${'$as_ac_Header'}'` = yes; then
12083 cat >>confdefs.h <<_ACEOF
12084 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
12092 for ac_header in sys/types.h
12094 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
12095 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
12096 { echo "$as_me:$LINENO: checking for $ac_header" >&5
12097 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
12098 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
12099 echo $ECHO_N "(cached) $ECHO_C" >&6
12101 ac_res=`eval echo '${'$as_ac_Header'}'`
12102 { echo "$as_me:$LINENO: result: $ac_res" >&5
12103 echo "${ECHO_T}$ac_res" >&6; }
12105 # Is the header compilable?
12106 { echo "$as_me:$LINENO: checking $ac_header usability" >&5
12107 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
12108 cat >conftest.$ac_ext <<_ACEOF
12111 cat confdefs.h >>conftest.$ac_ext
12112 cat >>conftest.$ac_ext <<_ACEOF
12113 /* end confdefs.h. */
12114 $ac_includes_default
12115 #include <$ac_header>
12117 rm -f conftest.$ac_objext
12118 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
12119 (eval $ac_compile) 2>conftest.er1
12121 grep -v '^ *+' conftest.er1 >conftest.err
12123 cat conftest.err >&5
12124 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12125 (exit $ac_status); } &&
12126 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
12127 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12128 (eval $ac_try) 2>&5
12130 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12131 (exit $ac_status); }; } &&
12132 { ac_try='test -s conftest.$ac_objext'
12133 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12134 (eval $ac_try) 2>&5
12136 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12137 (exit $ac_status); }; }; then
12138 ac_header_compiler=yes
12140 echo "$as_me: failed program was:" >&5
12141 sed 's/^/| /' conftest.$ac_ext >&5
12143 ac_header_compiler=no
12146 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
12147 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
12148 echo "${ECHO_T}$ac_header_compiler" >&6; }
12150 # Is the header present?
12151 { echo "$as_me:$LINENO: checking $ac_header presence" >&5
12152 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
12153 cat >conftest.$ac_ext <<_ACEOF
12156 cat confdefs.h >>conftest.$ac_ext
12157 cat >>conftest.$ac_ext <<_ACEOF
12158 /* end confdefs.h. */
12159 #include <$ac_header>
12161 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
12162 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
12164 grep -v '^ *+' conftest.er1 >conftest.err
12166 cat conftest.err >&5
12167 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12168 (exit $ac_status); } >/dev/null; then
12169 if test -s conftest.err; then
12170 ac_cpp_err=$ac_c_preproc_warn_flag
12171 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
12178 if test -z "$ac_cpp_err"; then
12179 ac_header_preproc=yes
12181 echo "$as_me: failed program was:" >&5
12182 sed 's/^/| /' conftest.$ac_ext >&5
12184 ac_header_preproc=no
12187 rm -f conftest.err conftest.$ac_ext
12188 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
12189 echo "${ECHO_T}$ac_header_preproc" >&6; }
12191 # So? What about this header?
12192 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
12194 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
12195 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
12196 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
12197 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
12198 ac_header_preproc=yes
12201 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
12202 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
12203 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
12204 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
12205 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
12206 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
12207 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
12208 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
12209 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
12210 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
12211 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
12212 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
12216 { echo "$as_me:$LINENO: checking for $ac_header" >&5
12217 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
12218 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
12219 echo $ECHO_N "(cached) $ECHO_C" >&6
12221 eval "$as_ac_Header=\$ac_header_preproc"
12223 ac_res=`eval echo '${'$as_ac_Header'}'`
12224 { echo "$as_me:$LINENO: result: $ac_res" >&5
12225 echo "${ECHO_T}$ac_res" >&6; }
12228 if test `eval echo '${'$as_ac_Header'}'` = yes; then
12229 cat >>confdefs.h <<_ACEOF
12230 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
12238 for ac_header in sys/user.h
12240 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
12241 { echo "$as_me:$LINENO: checking for $ac_header" >&5
12242 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
12243 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
12244 echo $ECHO_N "(cached) $ECHO_C" >&6
12246 cat >conftest.$ac_ext <<_ACEOF
12249 cat confdefs.h >>conftest.$ac_ext
12250 cat >>conftest.$ac_ext <<_ACEOF
12251 /* end confdefs.h. */
12252 #if HAVE_SYS_PARAM_H
12253 # include <sys/param.h>
12257 #include <$ac_header>
12259 rm -f conftest.$ac_objext
12260 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
12261 (eval $ac_compile) 2>conftest.er1
12263 grep -v '^ *+' conftest.er1 >conftest.err
12265 cat conftest.err >&5
12266 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12267 (exit $ac_status); } &&
12268 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
12269 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12270 (eval $ac_try) 2>&5
12272 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12273 (exit $ac_status); }; } &&
12274 { ac_try='test -s conftest.$ac_objext'
12275 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12276 (eval $ac_try) 2>&5
12278 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12279 (exit $ac_status); }; }; then
12280 eval "$as_ac_Header=yes"
12282 echo "$as_me: failed program was:" >&5
12283 sed 's/^/| /' conftest.$ac_ext >&5
12285 eval "$as_ac_Header=no"
12288 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
12290 ac_res=`eval echo '${'$as_ac_Header'}'`
12291 { echo "$as_me:$LINENO: result: $ac_res" >&5
12292 echo "${ECHO_T}$ac_res" >&6; }
12293 if test `eval echo '${'$as_ac_Header'}'` = yes; then
12294 cat >>confdefs.h <<_ACEOF
12295 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
12304 for ac_header in sys/wait.h wait.h
12306 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
12307 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
12308 { echo "$as_me:$LINENO: checking for $ac_header" >&5
12309 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
12310 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
12311 echo $ECHO_N "(cached) $ECHO_C" >&6
12313 ac_res=`eval echo '${'$as_ac_Header'}'`
12314 { echo "$as_me:$LINENO: result: $ac_res" >&5
12315 echo "${ECHO_T}$ac_res" >&6; }
12317 # Is the header compilable?
12318 { echo "$as_me:$LINENO: checking $ac_header usability" >&5
12319 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
12320 cat >conftest.$ac_ext <<_ACEOF
12323 cat confdefs.h >>conftest.$ac_ext
12324 cat >>conftest.$ac_ext <<_ACEOF
12325 /* end confdefs.h. */
12326 $ac_includes_default
12327 #include <$ac_header>
12329 rm -f conftest.$ac_objext
12330 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
12331 (eval $ac_compile) 2>conftest.er1
12333 grep -v '^ *+' conftest.er1 >conftest.err
12335 cat conftest.err >&5
12336 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12337 (exit $ac_status); } &&
12338 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
12339 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12340 (eval $ac_try) 2>&5
12342 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12343 (exit $ac_status); }; } &&
12344 { ac_try='test -s conftest.$ac_objext'
12345 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12346 (eval $ac_try) 2>&5
12348 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12349 (exit $ac_status); }; }; then
12350 ac_header_compiler=yes
12352 echo "$as_me: failed program was:" >&5
12353 sed 's/^/| /' conftest.$ac_ext >&5
12355 ac_header_compiler=no
12358 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
12359 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
12360 echo "${ECHO_T}$ac_header_compiler" >&6; }
12362 # Is the header present?
12363 { echo "$as_me:$LINENO: checking $ac_header presence" >&5
12364 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
12365 cat >conftest.$ac_ext <<_ACEOF
12368 cat confdefs.h >>conftest.$ac_ext
12369 cat >>conftest.$ac_ext <<_ACEOF
12370 /* end confdefs.h. */
12371 #include <$ac_header>
12373 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
12374 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
12376 grep -v '^ *+' conftest.er1 >conftest.err
12378 cat conftest.err >&5
12379 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12380 (exit $ac_status); } >/dev/null; then
12381 if test -s conftest.err; then
12382 ac_cpp_err=$ac_c_preproc_warn_flag
12383 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
12390 if test -z "$ac_cpp_err"; then
12391 ac_header_preproc=yes
12393 echo "$as_me: failed program was:" >&5
12394 sed 's/^/| /' conftest.$ac_ext >&5
12396 ac_header_preproc=no
12399 rm -f conftest.err conftest.$ac_ext
12400 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
12401 echo "${ECHO_T}$ac_header_preproc" >&6; }
12403 # So? What about this header?
12404 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
12406 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
12407 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
12408 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
12409 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
12410 ac_header_preproc=yes
12413 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
12414 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
12415 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
12416 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
12417 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
12418 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
12419 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
12420 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
12421 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
12422 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
12423 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
12424 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
12428 { echo "$as_me:$LINENO: checking for $ac_header" >&5
12429 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
12430 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
12431 echo $ECHO_N "(cached) $ECHO_C" >&6
12433 eval "$as_ac_Header=\$ac_header_preproc"
12435 ac_res=`eval echo '${'$as_ac_Header'}'`
12436 { echo "$as_me:$LINENO: result: $ac_res" >&5
12437 echo "${ECHO_T}$ac_res" >&6; }
12440 if test `eval echo '${'$as_ac_Header'}'` = yes; then
12441 cat >>confdefs.h <<_ACEOF
12442 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
12452 for ac_header in termios.h termio.h sgtty.h
12454 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
12455 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
12456 { echo "$as_me:$LINENO: checking for $ac_header" >&5
12457 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
12458 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
12459 echo $ECHO_N "(cached) $ECHO_C" >&6
12461 ac_res=`eval echo '${'$as_ac_Header'}'`
12462 { echo "$as_me:$LINENO: result: $ac_res" >&5
12463 echo "${ECHO_T}$ac_res" >&6; }
12465 # Is the header compilable?
12466 { echo "$as_me:$LINENO: checking $ac_header usability" >&5
12467 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
12468 cat >conftest.$ac_ext <<_ACEOF
12471 cat confdefs.h >>conftest.$ac_ext
12472 cat >>conftest.$ac_ext <<_ACEOF
12473 /* end confdefs.h. */
12474 $ac_includes_default
12475 #include <$ac_header>
12477 rm -f conftest.$ac_objext
12478 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
12479 (eval $ac_compile) 2>conftest.er1
12481 grep -v '^ *+' conftest.er1 >conftest.err
12483 cat conftest.err >&5
12484 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12485 (exit $ac_status); } &&
12486 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
12487 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12488 (eval $ac_try) 2>&5
12490 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12491 (exit $ac_status); }; } &&
12492 { ac_try='test -s conftest.$ac_objext'
12493 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12494 (eval $ac_try) 2>&5
12496 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12497 (exit $ac_status); }; }; then
12498 ac_header_compiler=yes
12500 echo "$as_me: failed program was:" >&5
12501 sed 's/^/| /' conftest.$ac_ext >&5
12503 ac_header_compiler=no
12506 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
12507 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
12508 echo "${ECHO_T}$ac_header_compiler" >&6; }
12510 # Is the header present?
12511 { echo "$as_me:$LINENO: checking $ac_header presence" >&5
12512 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
12513 cat >conftest.$ac_ext <<_ACEOF
12516 cat confdefs.h >>conftest.$ac_ext
12517 cat >>conftest.$ac_ext <<_ACEOF
12518 /* end confdefs.h. */
12519 #include <$ac_header>
12521 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
12522 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
12524 grep -v '^ *+' conftest.er1 >conftest.err
12526 cat conftest.err >&5
12527 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12528 (exit $ac_status); } >/dev/null; then
12529 if test -s conftest.err; then
12530 ac_cpp_err=$ac_c_preproc_warn_flag
12531 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
12538 if test -z "$ac_cpp_err"; then
12539 ac_header_preproc=yes
12541 echo "$as_me: failed program was:" >&5
12542 sed 's/^/| /' conftest.$ac_ext >&5
12544 ac_header_preproc=no
12547 rm -f conftest.err conftest.$ac_ext
12548 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
12549 echo "${ECHO_T}$ac_header_preproc" >&6; }
12551 # So? What about this header?
12552 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
12554 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
12555 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
12556 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
12557 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
12558 ac_header_preproc=yes
12561 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
12562 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
12563 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
12564 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
12565 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
12566 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
12567 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
12568 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
12569 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
12570 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
12571 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
12572 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
12576 { echo "$as_me:$LINENO: checking for $ac_header" >&5
12577 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
12578 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
12579 echo $ECHO_N "(cached) $ECHO_C" >&6
12581 eval "$as_ac_Header=\$ac_header_preproc"
12583 ac_res=`eval echo '${'$as_ac_Header'}'`
12584 { echo "$as_me:$LINENO: result: $ac_res" >&5
12585 echo "${ECHO_T}$ac_res" >&6; }
12588 if test `eval echo '${'$as_ac_Header'}'` = yes; then
12589 cat >>confdefs.h <<_ACEOF
12590 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
12598 for ac_header in unistd.h
12600 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
12601 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
12602 { echo "$as_me:$LINENO: checking for $ac_header" >&5
12603 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
12604 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
12605 echo $ECHO_N "(cached) $ECHO_C" >&6
12607 ac_res=`eval echo '${'$as_ac_Header'}'`
12608 { echo "$as_me:$LINENO: result: $ac_res" >&5
12609 echo "${ECHO_T}$ac_res" >&6; }
12611 # Is the header compilable?
12612 { echo "$as_me:$LINENO: checking $ac_header usability" >&5
12613 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
12614 cat >conftest.$ac_ext <<_ACEOF
12617 cat confdefs.h >>conftest.$ac_ext
12618 cat >>conftest.$ac_ext <<_ACEOF
12619 /* end confdefs.h. */
12620 $ac_includes_default
12621 #include <$ac_header>
12623 rm -f conftest.$ac_objext
12624 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
12625 (eval $ac_compile) 2>conftest.er1
12627 grep -v '^ *+' conftest.er1 >conftest.err
12629 cat conftest.err >&5
12630 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12631 (exit $ac_status); } &&
12632 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
12633 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12634 (eval $ac_try) 2>&5
12636 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12637 (exit $ac_status); }; } &&
12638 { ac_try='test -s conftest.$ac_objext'
12639 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12640 (eval $ac_try) 2>&5
12642 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12643 (exit $ac_status); }; }; then
12644 ac_header_compiler=yes
12646 echo "$as_me: failed program was:" >&5
12647 sed 's/^/| /' conftest.$ac_ext >&5
12649 ac_header_compiler=no
12652 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
12653 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
12654 echo "${ECHO_T}$ac_header_compiler" >&6; }
12656 # Is the header present?
12657 { echo "$as_me:$LINENO: checking $ac_header presence" >&5
12658 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
12659 cat >conftest.$ac_ext <<_ACEOF
12662 cat confdefs.h >>conftest.$ac_ext
12663 cat >>conftest.$ac_ext <<_ACEOF
12664 /* end confdefs.h. */
12665 #include <$ac_header>
12667 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
12668 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
12670 grep -v '^ *+' conftest.er1 >conftest.err
12672 cat conftest.err >&5
12673 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12674 (exit $ac_status); } >/dev/null; then
12675 if test -s conftest.err; then
12676 ac_cpp_err=$ac_c_preproc_warn_flag
12677 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
12684 if test -z "$ac_cpp_err"; then
12685 ac_header_preproc=yes
12687 echo "$as_me: failed program was:" >&5
12688 sed 's/^/| /' conftest.$ac_ext >&5
12690 ac_header_preproc=no
12693 rm -f conftest.err conftest.$ac_ext
12694 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
12695 echo "${ECHO_T}$ac_header_preproc" >&6; }
12697 # So? What about this header?
12698 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
12700 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
12701 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
12702 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
12703 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
12704 ac_header_preproc=yes
12707 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
12708 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
12709 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
12710 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
12711 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
12712 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
12713 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
12714 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
12715 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
12716 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
12717 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
12718 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
12722 { echo "$as_me:$LINENO: checking for $ac_header" >&5
12723 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
12724 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
12725 echo $ECHO_N "(cached) $ECHO_C" >&6
12727 eval "$as_ac_Header=\$ac_header_preproc"
12729 ac_res=`eval echo '${'$as_ac_Header'}'`
12730 { echo "$as_me:$LINENO: result: $ac_res" >&5
12731 echo "${ECHO_T}$ac_res" >&6; }
12734 if test `eval echo '${'$as_ac_Header'}'` = yes; then
12735 cat >>confdefs.h <<_ACEOF
12736 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
12744 # On Solaris 2.[789], we need to define _MSE_INT_H to avoid a clash
12745 # between <widec.h> and <wchar.h> that would cause AC_CHECK_HEADERS to
12746 # think that we don't have <curses.h> if we're using GCC.
12749 if test "$GCC" = yes; then
12751 cat >>confdefs.h <<\_ACEOF
12752 #define _MSE_INT_H 1
12761 for ac_header in curses.h cursesX.h ncurses.h ncurses/ncurses.h
12763 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
12764 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
12765 { echo "$as_me:$LINENO: checking for $ac_header" >&5
12766 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
12767 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
12768 echo $ECHO_N "(cached) $ECHO_C" >&6
12770 ac_res=`eval echo '${'$as_ac_Header'}'`
12771 { echo "$as_me:$LINENO: result: $ac_res" >&5
12772 echo "${ECHO_T}$ac_res" >&6; }
12774 # Is the header compilable?
12775 { echo "$as_me:$LINENO: checking $ac_header usability" >&5
12776 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
12777 cat >conftest.$ac_ext <<_ACEOF
12780 cat confdefs.h >>conftest.$ac_ext
12781 cat >>conftest.$ac_ext <<_ACEOF
12782 /* end confdefs.h. */
12783 $ac_includes_default
12784 #include <$ac_header>
12786 rm -f conftest.$ac_objext
12787 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
12788 (eval $ac_compile) 2>conftest.er1
12790 grep -v '^ *+' conftest.er1 >conftest.err
12792 cat conftest.err >&5
12793 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12794 (exit $ac_status); } &&
12795 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
12796 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12797 (eval $ac_try) 2>&5
12799 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12800 (exit $ac_status); }; } &&
12801 { ac_try='test -s conftest.$ac_objext'
12802 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12803 (eval $ac_try) 2>&5
12805 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12806 (exit $ac_status); }; }; then
12807 ac_header_compiler=yes
12809 echo "$as_me: failed program was:" >&5
12810 sed 's/^/| /' conftest.$ac_ext >&5
12812 ac_header_compiler=no
12815 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
12816 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
12817 echo "${ECHO_T}$ac_header_compiler" >&6; }
12819 # Is the header present?
12820 { echo "$as_me:$LINENO: checking $ac_header presence" >&5
12821 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
12822 cat >conftest.$ac_ext <<_ACEOF
12825 cat confdefs.h >>conftest.$ac_ext
12826 cat >>conftest.$ac_ext <<_ACEOF
12827 /* end confdefs.h. */
12828 #include <$ac_header>
12830 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
12831 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
12833 grep -v '^ *+' conftest.er1 >conftest.err
12835 cat conftest.err >&5
12836 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12837 (exit $ac_status); } >/dev/null; then
12838 if test -s conftest.err; then
12839 ac_cpp_err=$ac_c_preproc_warn_flag
12840 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
12847 if test -z "$ac_cpp_err"; then
12848 ac_header_preproc=yes
12850 echo "$as_me: failed program was:" >&5
12851 sed 's/^/| /' conftest.$ac_ext >&5
12853 ac_header_preproc=no
12856 rm -f conftest.err conftest.$ac_ext
12857 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
12858 echo "${ECHO_T}$ac_header_preproc" >&6; }
12860 # So? What about this header?
12861 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
12863 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
12864 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
12865 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
12866 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
12867 ac_header_preproc=yes
12870 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
12871 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
12872 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
12873 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
12874 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
12875 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
12876 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
12877 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
12878 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
12879 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
12880 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
12881 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
12885 { echo "$as_me:$LINENO: checking for $ac_header" >&5
12886 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
12887 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
12888 echo $ECHO_N "(cached) $ECHO_C" >&6
12890 eval "$as_ac_Header=\$ac_header_preproc"
12892 ac_res=`eval echo '${'$as_ac_Header'}'`
12893 { echo "$as_me:$LINENO: result: $ac_res" >&5
12894 echo "${ECHO_T}$ac_res" >&6; }
12897 if test `eval echo '${'$as_ac_Header'}'` = yes; then
12898 cat >>confdefs.h <<_ACEOF
12899 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
12907 for ac_header in ncurses/term.h
12909 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
12910 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
12911 { echo "$as_me:$LINENO: checking for $ac_header" >&5
12912 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
12913 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
12914 echo $ECHO_N "(cached) $ECHO_C" >&6
12916 ac_res=`eval echo '${'$as_ac_Header'}'`
12917 { echo "$as_me:$LINENO: result: $ac_res" >&5
12918 echo "${ECHO_T}$ac_res" >&6; }
12920 # Is the header compilable?
12921 { echo "$as_me:$LINENO: checking $ac_header usability" >&5
12922 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
12923 cat >conftest.$ac_ext <<_ACEOF
12926 cat confdefs.h >>conftest.$ac_ext
12927 cat >>conftest.$ac_ext <<_ACEOF
12928 /* end confdefs.h. */
12929 $ac_includes_default
12930 #include <$ac_header>
12932 rm -f conftest.$ac_objext
12933 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
12934 (eval $ac_compile) 2>conftest.er1
12936 grep -v '^ *+' conftest.er1 >conftest.err
12938 cat conftest.err >&5
12939 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12940 (exit $ac_status); } &&
12941 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
12942 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12943 (eval $ac_try) 2>&5
12945 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12946 (exit $ac_status); }; } &&
12947 { ac_try='test -s conftest.$ac_objext'
12948 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12949 (eval $ac_try) 2>&5
12951 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12952 (exit $ac_status); }; }; then
12953 ac_header_compiler=yes
12955 echo "$as_me: failed program was:" >&5
12956 sed 's/^/| /' conftest.$ac_ext >&5
12958 ac_header_compiler=no
12961 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
12962 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
12963 echo "${ECHO_T}$ac_header_compiler" >&6; }
12965 # Is the header present?
12966 { echo "$as_me:$LINENO: checking $ac_header presence" >&5
12967 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
12968 cat >conftest.$ac_ext <<_ACEOF
12971 cat confdefs.h >>conftest.$ac_ext
12972 cat >>conftest.$ac_ext <<_ACEOF
12973 /* end confdefs.h. */
12974 #include <$ac_header>
12976 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
12977 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
12979 grep -v '^ *+' conftest.er1 >conftest.err
12981 cat conftest.err >&5
12982 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12983 (exit $ac_status); } >/dev/null; then
12984 if test -s conftest.err; then
12985 ac_cpp_err=$ac_c_preproc_warn_flag
12986 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
12993 if test -z "$ac_cpp_err"; then
12994 ac_header_preproc=yes
12996 echo "$as_me: failed program was:" >&5
12997 sed 's/^/| /' conftest.$ac_ext >&5
12999 ac_header_preproc=no
13002 rm -f conftest.err conftest.$ac_ext
13003 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
13004 echo "${ECHO_T}$ac_header_preproc" >&6; }
13006 # So? What about this header?
13007 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
13009 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
13010 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
13011 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
13012 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
13013 ac_header_preproc=yes
13016 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
13017 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
13018 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
13019 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
13020 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
13021 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
13022 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
13023 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
13024 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
13025 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
13026 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
13027 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
13031 { echo "$as_me:$LINENO: checking for $ac_header" >&5
13032 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
13033 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
13034 echo $ECHO_N "(cached) $ECHO_C" >&6
13036 eval "$as_ac_Header=\$ac_header_preproc"
13038 ac_res=`eval echo '${'$as_ac_Header'}'`
13039 { echo "$as_me:$LINENO: result: $ac_res" >&5
13040 echo "${ECHO_T}$ac_res" >&6; }
13043 if test `eval echo '${'$as_ac_Header'}'` = yes; then
13044 cat >>confdefs.h <<_ACEOF
13045 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
13053 for ac_header in term.h
13055 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
13056 { echo "$as_me:$LINENO: checking for $ac_header" >&5
13057 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
13058 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
13059 echo $ECHO_N "(cached) $ECHO_C" >&6
13061 cat >conftest.$ac_ext <<_ACEOF
13064 cat confdefs.h >>conftest.$ac_ext
13065 cat >>conftest.$ac_ext <<_ACEOF
13066 /* end confdefs.h. */
13068 # include <curses.h>
13072 #include <$ac_header>
13074 rm -f conftest.$ac_objext
13075 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
13076 (eval $ac_compile) 2>conftest.er1
13078 grep -v '^ *+' conftest.er1 >conftest.err
13080 cat conftest.err >&5
13081 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13082 (exit $ac_status); } &&
13083 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
13084 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13085 (eval $ac_try) 2>&5
13087 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13088 (exit $ac_status); }; } &&
13089 { ac_try='test -s conftest.$ac_objext'
13090 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13091 (eval $ac_try) 2>&5
13093 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13094 (exit $ac_status); }; }; then
13095 eval "$as_ac_Header=yes"
13097 echo "$as_me: failed program was:" >&5
13098 sed 's/^/| /' conftest.$ac_ext >&5
13100 eval "$as_ac_Header=no"
13103 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
13105 ac_res=`eval echo '${'$as_ac_Header'}'`
13106 { echo "$as_me:$LINENO: result: $ac_res" >&5
13107 echo "${ECHO_T}$ac_res" >&6; }
13108 if test `eval echo '${'$as_ac_Header'}'` = yes; then
13109 cat >>confdefs.h <<_ACEOF
13110 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
13118 # FIXME: kettenis/20030102: In most cases we include these
13119 # unconditionally, so what's the point in checking these?
13122 for ac_header in ctype.h time.h
13124 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
13125 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
13126 { echo "$as_me:$LINENO: checking for $ac_header" >&5
13127 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
13128 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
13129 echo $ECHO_N "(cached) $ECHO_C" >&6
13131 ac_res=`eval echo '${'$as_ac_Header'}'`
13132 { echo "$as_me:$LINENO: result: $ac_res" >&5
13133 echo "${ECHO_T}$ac_res" >&6; }
13135 # Is the header compilable?
13136 { echo "$as_me:$LINENO: checking $ac_header usability" >&5
13137 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
13138 cat >conftest.$ac_ext <<_ACEOF
13141 cat confdefs.h >>conftest.$ac_ext
13142 cat >>conftest.$ac_ext <<_ACEOF
13143 /* end confdefs.h. */
13144 $ac_includes_default
13145 #include <$ac_header>
13147 rm -f conftest.$ac_objext
13148 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
13149 (eval $ac_compile) 2>conftest.er1
13151 grep -v '^ *+' conftest.er1 >conftest.err
13153 cat conftest.err >&5
13154 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13155 (exit $ac_status); } &&
13156 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
13157 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13158 (eval $ac_try) 2>&5
13160 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13161 (exit $ac_status); }; } &&
13162 { ac_try='test -s conftest.$ac_objext'
13163 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13164 (eval $ac_try) 2>&5
13166 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13167 (exit $ac_status); }; }; then
13168 ac_header_compiler=yes
13170 echo "$as_me: failed program was:" >&5
13171 sed 's/^/| /' conftest.$ac_ext >&5
13173 ac_header_compiler=no
13176 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
13177 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
13178 echo "${ECHO_T}$ac_header_compiler" >&6; }
13180 # Is the header present?
13181 { echo "$as_me:$LINENO: checking $ac_header presence" >&5
13182 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
13183 cat >conftest.$ac_ext <<_ACEOF
13186 cat confdefs.h >>conftest.$ac_ext
13187 cat >>conftest.$ac_ext <<_ACEOF
13188 /* end confdefs.h. */
13189 #include <$ac_header>
13191 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
13192 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
13194 grep -v '^ *+' conftest.er1 >conftest.err
13196 cat conftest.err >&5
13197 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13198 (exit $ac_status); } >/dev/null; then
13199 if test -s conftest.err; then
13200 ac_cpp_err=$ac_c_preproc_warn_flag
13201 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
13208 if test -z "$ac_cpp_err"; then
13209 ac_header_preproc=yes
13211 echo "$as_me: failed program was:" >&5
13212 sed 's/^/| /' conftest.$ac_ext >&5
13214 ac_header_preproc=no
13217 rm -f conftest.err conftest.$ac_ext
13218 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
13219 echo "${ECHO_T}$ac_header_preproc" >&6; }
13221 # So? What about this header?
13222 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
13224 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
13225 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
13226 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
13227 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
13228 ac_header_preproc=yes
13231 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
13232 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
13233 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
13234 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
13235 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
13236 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
13237 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
13238 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
13239 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
13240 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
13241 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
13242 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
13246 { echo "$as_me:$LINENO: checking for $ac_header" >&5
13247 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
13248 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
13249 echo $ECHO_N "(cached) $ECHO_C" >&6
13251 eval "$as_ac_Header=\$ac_header_preproc"
13253 ac_res=`eval echo '${'$as_ac_Header'}'`
13254 { echo "$as_me:$LINENO: result: $ac_res" >&5
13255 echo "${ECHO_T}$ac_res" >&6; }
13258 if test `eval echo '${'$as_ac_Header'}'` = yes; then
13259 cat >>confdefs.h <<_ACEOF
13260 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
13268 # Create a header we can use portably to get the standard integer types.
13271 inttype_headers=`echo inttypes.h sys/inttypes.h | sed -e 's/,/ /g'`
13273 acx_cv_header_stdint=stddef.h
13274 acx_cv_header_stdint_kind="(already complete)"
13275 for i in stdint.h $inttype_headers; do
13276 unset ac_cv_type_uintptr_t
13277 unset ac_cv_type_uintmax_t
13278 unset ac_cv_type_int_least32_t
13279 unset ac_cv_type_int_fast32_t
13280 unset ac_cv_type_uint64_t
13281 echo $ECHO_N "looking for a compliant stdint.h in $i, $ECHO_C" >&6
13282 { echo "$as_me:$LINENO: checking for uintmax_t" >&5
13283 echo $ECHO_N "checking for uintmax_t... $ECHO_C" >&6; }
13284 if test "${ac_cv_type_uintmax_t+set}" = set; then
13285 echo $ECHO_N "(cached) $ECHO_C" >&6
13287 cat >conftest.$ac_ext <<_ACEOF
13290 cat confdefs.h >>conftest.$ac_ext
13291 cat >>conftest.$ac_ext <<_ACEOF
13292 /* end confdefs.h. */
13293 #include <sys/types.h>
13296 typedef uintmax_t ac__type_new_;
13300 if ((ac__type_new_ *) 0)
13302 if (sizeof (ac__type_new_))
13308 rm -f conftest.$ac_objext
13309 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
13310 (eval $ac_compile) 2>conftest.er1
13312 grep -v '^ *+' conftest.er1 >conftest.err
13314 cat conftest.err >&5
13315 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13316 (exit $ac_status); } &&
13317 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
13318 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13319 (eval $ac_try) 2>&5
13321 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13322 (exit $ac_status); }; } &&
13323 { ac_try='test -s conftest.$ac_objext'
13324 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13325 (eval $ac_try) 2>&5
13327 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13328 (exit $ac_status); }; }; then
13329 ac_cv_type_uintmax_t=yes
13331 echo "$as_me: failed program was:" >&5
13332 sed 's/^/| /' conftest.$ac_ext >&5
13334 ac_cv_type_uintmax_t=no
13337 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
13339 { echo "$as_me:$LINENO: result: $ac_cv_type_uintmax_t" >&5
13340 echo "${ECHO_T}$ac_cv_type_uintmax_t" >&6; }
13341 if test $ac_cv_type_uintmax_t = yes; then
13342 acx_cv_header_stdint=$i
13347 { echo "$as_me:$LINENO: checking for uintptr_t" >&5
13348 echo $ECHO_N "checking for uintptr_t... $ECHO_C" >&6; }
13349 if test "${ac_cv_type_uintptr_t+set}" = set; then
13350 echo $ECHO_N "(cached) $ECHO_C" >&6
13352 cat >conftest.$ac_ext <<_ACEOF
13355 cat confdefs.h >>conftest.$ac_ext
13356 cat >>conftest.$ac_ext <<_ACEOF
13357 /* end confdefs.h. */
13358 #include <sys/types.h>
13361 typedef uintptr_t ac__type_new_;
13365 if ((ac__type_new_ *) 0)
13367 if (sizeof (ac__type_new_))
13373 rm -f conftest.$ac_objext
13374 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
13375 (eval $ac_compile) 2>conftest.er1
13377 grep -v '^ *+' conftest.er1 >conftest.err
13379 cat conftest.err >&5
13380 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13381 (exit $ac_status); } &&
13382 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
13383 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13384 (eval $ac_try) 2>&5
13386 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13387 (exit $ac_status); }; } &&
13388 { ac_try='test -s conftest.$ac_objext'
13389 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13390 (eval $ac_try) 2>&5
13392 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13393 (exit $ac_status); }; }; then
13394 ac_cv_type_uintptr_t=yes
13396 echo "$as_me: failed program was:" >&5
13397 sed 's/^/| /' conftest.$ac_ext >&5
13399 ac_cv_type_uintptr_t=no
13402 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
13404 { echo "$as_me:$LINENO: result: $ac_cv_type_uintptr_t" >&5
13405 echo "${ECHO_T}$ac_cv_type_uintptr_t" >&6; }
13406 if test $ac_cv_type_uintptr_t = yes; then
13409 acx_cv_header_stdint_kind="(mostly complete)"
13412 { echo "$as_me:$LINENO: checking for int_least32_t" >&5
13413 echo $ECHO_N "checking for int_least32_t... $ECHO_C" >&6; }
13414 if test "${ac_cv_type_int_least32_t+set}" = set; then
13415 echo $ECHO_N "(cached) $ECHO_C" >&6
13417 cat >conftest.$ac_ext <<_ACEOF
13420 cat confdefs.h >>conftest.$ac_ext
13421 cat >>conftest.$ac_ext <<_ACEOF
13422 /* end confdefs.h. */
13423 #include <sys/types.h>
13426 typedef int_least32_t ac__type_new_;
13430 if ((ac__type_new_ *) 0)
13432 if (sizeof (ac__type_new_))
13438 rm -f conftest.$ac_objext
13439 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
13440 (eval $ac_compile) 2>conftest.er1
13442 grep -v '^ *+' conftest.er1 >conftest.err
13444 cat conftest.err >&5
13445 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13446 (exit $ac_status); } &&
13447 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
13448 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13449 (eval $ac_try) 2>&5
13451 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13452 (exit $ac_status); }; } &&
13453 { ac_try='test -s conftest.$ac_objext'
13454 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13455 (eval $ac_try) 2>&5
13457 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13458 (exit $ac_status); }; }; then
13459 ac_cv_type_int_least32_t=yes
13461 echo "$as_me: failed program was:" >&5
13462 sed 's/^/| /' conftest.$ac_ext >&5
13464 ac_cv_type_int_least32_t=no
13467 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
13469 { echo "$as_me:$LINENO: result: $ac_cv_type_int_least32_t" >&5
13470 echo "${ECHO_T}$ac_cv_type_int_least32_t" >&6; }
13471 if test $ac_cv_type_int_least32_t = yes; then
13474 acx_cv_header_stdint_kind="(mostly complete)"
13477 { echo "$as_me:$LINENO: checking for int_fast32_t" >&5
13478 echo $ECHO_N "checking for int_fast32_t... $ECHO_C" >&6; }
13479 if test "${ac_cv_type_int_fast32_t+set}" = set; then
13480 echo $ECHO_N "(cached) $ECHO_C" >&6
13482 cat >conftest.$ac_ext <<_ACEOF
13485 cat confdefs.h >>conftest.$ac_ext
13486 cat >>conftest.$ac_ext <<_ACEOF
13487 /* end confdefs.h. */
13488 #include <sys/types.h>
13491 typedef int_fast32_t ac__type_new_;
13495 if ((ac__type_new_ *) 0)
13497 if (sizeof (ac__type_new_))
13503 rm -f conftest.$ac_objext
13504 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
13505 (eval $ac_compile) 2>conftest.er1
13507 grep -v '^ *+' conftest.er1 >conftest.err
13509 cat conftest.err >&5
13510 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13511 (exit $ac_status); } &&
13512 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
13513 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13514 (eval $ac_try) 2>&5
13516 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13517 (exit $ac_status); }; } &&
13518 { ac_try='test -s conftest.$ac_objext'
13519 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13520 (eval $ac_try) 2>&5
13522 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13523 (exit $ac_status); }; }; then
13524 ac_cv_type_int_fast32_t=yes
13526 echo "$as_me: failed program was:" >&5
13527 sed 's/^/| /' conftest.$ac_ext >&5
13529 ac_cv_type_int_fast32_t=no
13532 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
13534 { echo "$as_me:$LINENO: result: $ac_cv_type_int_fast32_t" >&5
13535 echo "${ECHO_T}$ac_cv_type_int_fast32_t" >&6; }
13536 if test $ac_cv_type_int_fast32_t = yes; then
13539 acx_cv_header_stdint_kind="(mostly complete)"
13542 { echo "$as_me:$LINENO: checking for uint64_t" >&5
13543 echo $ECHO_N "checking for uint64_t... $ECHO_C" >&6; }
13544 if test "${ac_cv_type_uint64_t+set}" = set; then
13545 echo $ECHO_N "(cached) $ECHO_C" >&6
13547 cat >conftest.$ac_ext <<_ACEOF
13550 cat confdefs.h >>conftest.$ac_ext
13551 cat >>conftest.$ac_ext <<_ACEOF
13552 /* end confdefs.h. */
13553 #include <sys/types.h>
13556 typedef uint64_t ac__type_new_;
13560 if ((ac__type_new_ *) 0)
13562 if (sizeof (ac__type_new_))
13568 rm -f conftest.$ac_objext
13569 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
13570 (eval $ac_compile) 2>conftest.er1
13572 grep -v '^ *+' conftest.er1 >conftest.err
13574 cat conftest.err >&5
13575 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13576 (exit $ac_status); } &&
13577 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
13578 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13579 (eval $ac_try) 2>&5
13581 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13582 (exit $ac_status); }; } &&
13583 { ac_try='test -s conftest.$ac_objext'
13584 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13585 (eval $ac_try) 2>&5
13587 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13588 (exit $ac_status); }; }; then
13589 ac_cv_type_uint64_t=yes
13591 echo "$as_me: failed program was:" >&5
13592 sed 's/^/| /' conftest.$ac_ext >&5
13594 ac_cv_type_uint64_t=no
13597 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
13599 { echo "$as_me:$LINENO: result: $ac_cv_type_uint64_t" >&5
13600 echo "${ECHO_T}$ac_cv_type_uint64_t" >&6; }
13601 if test $ac_cv_type_uint64_t = yes; then
13604 acx_cv_header_stdint_kind="(lacks uint64_t)"
13609 if test "$acx_cv_header_stdint" = stddef.h; then
13610 acx_cv_header_stdint_kind="(lacks uintptr_t)"
13611 for i in stdint.h $inttype_headers; do
13612 unset ac_cv_type_uint32_t
13613 unset ac_cv_type_uint64_t
13614 echo $ECHO_N "looking for an incomplete stdint.h in $i, $ECHO_C" >&6
13615 { echo "$as_me:$LINENO: checking for uint32_t" >&5
13616 echo $ECHO_N "checking for uint32_t... $ECHO_C" >&6; }
13617 if test "${ac_cv_type_uint32_t+set}" = set; then
13618 echo $ECHO_N "(cached) $ECHO_C" >&6
13620 cat >conftest.$ac_ext <<_ACEOF
13623 cat confdefs.h >>conftest.$ac_ext
13624 cat >>conftest.$ac_ext <<_ACEOF
13625 /* end confdefs.h. */
13626 #include <sys/types.h>
13629 typedef uint32_t ac__type_new_;
13633 if ((ac__type_new_ *) 0)
13635 if (sizeof (ac__type_new_))
13641 rm -f conftest.$ac_objext
13642 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
13643 (eval $ac_compile) 2>conftest.er1
13645 grep -v '^ *+' conftest.er1 >conftest.err
13647 cat conftest.err >&5
13648 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13649 (exit $ac_status); } &&
13650 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
13651 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13652 (eval $ac_try) 2>&5
13654 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13655 (exit $ac_status); }; } &&
13656 { ac_try='test -s conftest.$ac_objext'
13657 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13658 (eval $ac_try) 2>&5
13660 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13661 (exit $ac_status); }; }; then
13662 ac_cv_type_uint32_t=yes
13664 echo "$as_me: failed program was:" >&5
13665 sed 's/^/| /' conftest.$ac_ext >&5
13667 ac_cv_type_uint32_t=no
13670 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
13672 { echo "$as_me:$LINENO: result: $ac_cv_type_uint32_t" >&5
13673 echo "${ECHO_T}$ac_cv_type_uint32_t" >&6; }
13674 if test $ac_cv_type_uint32_t = yes; then
13675 acx_cv_header_stdint=$i
13680 { echo "$as_me:$LINENO: checking for uint64_t" >&5
13681 echo $ECHO_N "checking for uint64_t... $ECHO_C" >&6; }
13682 if test "${ac_cv_type_uint64_t+set}" = set; then
13683 echo $ECHO_N "(cached) $ECHO_C" >&6
13685 cat >conftest.$ac_ext <<_ACEOF
13688 cat confdefs.h >>conftest.$ac_ext
13689 cat >>conftest.$ac_ext <<_ACEOF
13690 /* end confdefs.h. */
13691 #include <sys/types.h>
13694 typedef uint64_t ac__type_new_;
13698 if ((ac__type_new_ *) 0)
13700 if (sizeof (ac__type_new_))
13706 rm -f conftest.$ac_objext
13707 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
13708 (eval $ac_compile) 2>conftest.er1
13710 grep -v '^ *+' conftest.er1 >conftest.err
13712 cat conftest.err >&5
13713 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13714 (exit $ac_status); } &&
13715 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
13716 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13717 (eval $ac_try) 2>&5
13719 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13720 (exit $ac_status); }; } &&
13721 { ac_try='test -s conftest.$ac_objext'
13722 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13723 (eval $ac_try) 2>&5
13725 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13726 (exit $ac_status); }; }; then
13727 ac_cv_type_uint64_t=yes
13729 echo "$as_me: failed program was:" >&5
13730 sed 's/^/| /' conftest.$ac_ext >&5
13732 ac_cv_type_uint64_t=no
13735 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
13737 { echo "$as_me:$LINENO: result: $ac_cv_type_uint64_t" >&5
13738 echo "${ECHO_T}$ac_cv_type_uint64_t" >&6; }
13739 if test $ac_cv_type_uint64_t = yes; then
13742 acx_cv_header_stdint_kind="(lacks uintptr_t and uint64_t)"
13748 if test "$acx_cv_header_stdint" = stddef.h; then
13749 acx_cv_header_stdint_kind="(u_intXX_t style)"
13750 for i in sys/types.h $inttype_headers; do
13751 unset ac_cv_type_u_int32_t
13752 unset ac_cv_type_u_int64_t
13753 echo $ECHO_N "looking for u_intXX_t types in $i, $ECHO_C" >&6
13754 { echo "$as_me:$LINENO: checking for u_int32_t" >&5
13755 echo $ECHO_N "checking for u_int32_t... $ECHO_C" >&6; }
13756 if test "${ac_cv_type_u_int32_t+set}" = set; then
13757 echo $ECHO_N "(cached) $ECHO_C" >&6
13759 cat >conftest.$ac_ext <<_ACEOF
13762 cat confdefs.h >>conftest.$ac_ext
13763 cat >>conftest.$ac_ext <<_ACEOF
13764 /* end confdefs.h. */
13765 #include <sys/types.h>
13768 typedef u_int32_t ac__type_new_;
13772 if ((ac__type_new_ *) 0)
13774 if (sizeof (ac__type_new_))
13780 rm -f conftest.$ac_objext
13781 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
13782 (eval $ac_compile) 2>conftest.er1
13784 grep -v '^ *+' conftest.er1 >conftest.err
13786 cat conftest.err >&5
13787 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13788 (exit $ac_status); } &&
13789 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
13790 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13791 (eval $ac_try) 2>&5
13793 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13794 (exit $ac_status); }; } &&
13795 { ac_try='test -s conftest.$ac_objext'
13796 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13797 (eval $ac_try) 2>&5
13799 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13800 (exit $ac_status); }; }; then
13801 ac_cv_type_u_int32_t=yes
13803 echo "$as_me: failed program was:" >&5
13804 sed 's/^/| /' conftest.$ac_ext >&5
13806 ac_cv_type_u_int32_t=no
13809 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
13811 { echo "$as_me:$LINENO: result: $ac_cv_type_u_int32_t" >&5
13812 echo "${ECHO_T}$ac_cv_type_u_int32_t" >&6; }
13813 if test $ac_cv_type_u_int32_t = yes; then
13814 acx_cv_header_stdint=$i
13819 { echo "$as_me:$LINENO: checking for u_int64_t" >&5
13820 echo $ECHO_N "checking for u_int64_t... $ECHO_C" >&6; }
13821 if test "${ac_cv_type_u_int64_t+set}" = set; then
13822 echo $ECHO_N "(cached) $ECHO_C" >&6
13824 cat >conftest.$ac_ext <<_ACEOF
13827 cat confdefs.h >>conftest.$ac_ext
13828 cat >>conftest.$ac_ext <<_ACEOF
13829 /* end confdefs.h. */
13830 #include <sys/types.h>
13833 typedef u_int64_t ac__type_new_;
13837 if ((ac__type_new_ *) 0)
13839 if (sizeof (ac__type_new_))
13845 rm -f conftest.$ac_objext
13846 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
13847 (eval $ac_compile) 2>conftest.er1
13849 grep -v '^ *+' conftest.er1 >conftest.err
13851 cat conftest.err >&5
13852 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13853 (exit $ac_status); } &&
13854 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
13855 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13856 (eval $ac_try) 2>&5
13858 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13859 (exit $ac_status); }; } &&
13860 { ac_try='test -s conftest.$ac_objext'
13861 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13862 (eval $ac_try) 2>&5
13864 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13865 (exit $ac_status); }; }; then
13866 ac_cv_type_u_int64_t=yes
13868 echo "$as_me: failed program was:" >&5
13869 sed 's/^/| /' conftest.$ac_ext >&5
13871 ac_cv_type_u_int64_t=no
13874 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
13876 { echo "$as_me:$LINENO: result: $ac_cv_type_u_int64_t" >&5
13877 echo "${ECHO_T}$ac_cv_type_u_int64_t" >&6; }
13878 if test $ac_cv_type_u_int64_t = yes; then
13881 acx_cv_header_stdint_kind="(u_intXX_t style, lacks u_int64_t)"
13887 if test "$acx_cv_header_stdint" = stddef.h; then
13888 acx_cv_header_stdint_kind="(using manual detection)"
13891 test -z "$ac_cv_type_uintptr_t" && ac_cv_type_uintptr_t=no
13892 test -z "$ac_cv_type_uint64_t" && ac_cv_type_uint64_t=no
13893 test -z "$ac_cv_type_u_int64_t" && ac_cv_type_u_int64_t=no
13894 test -z "$ac_cv_type_int_least32_t" && ac_cv_type_int_least32_t=no
13895 test -z "$ac_cv_type_int_fast32_t" && ac_cv_type_int_fast32_t=no
13897 # ----------------- Summarize what we found so far
13899 { echo "$as_me:$LINENO: checking what to include in gdb_stdint.h" >&5
13900 echo $ECHO_N "checking what to include in gdb_stdint.h... $ECHO_C" >&6; }
13902 case `$as_basename -- gdb_stdint.h ||
13903 $as_expr X/gdb_stdint.h : '.*/\([^/][^/]*\)/*$' \| \
13904 Xgdb_stdint.h : 'X\(//\)$' \| \
13905 Xgdb_stdint.h : 'X\(/\)' \| . 2>/dev/null ||
13906 echo X/gdb_stdint.h |
13907 sed '/^.*\/\([^/][^/]*\)\/*$/{
13920 stdint.h) { echo "$as_me:$LINENO: WARNING: are you sure you want it there?" >&5
13921 echo "$as_me: WARNING: are you sure you want it there?" >&2;} ;;
13922 inttypes.h) { echo "$as_me:$LINENO: WARNING: are you sure you want it there?" >&5
13923 echo "$as_me: WARNING: are you sure you want it there?" >&2;} ;;
13927 { echo "$as_me:$LINENO: result: $acx_cv_header_stdint $acx_cv_header_stdint_kind" >&5
13928 echo "${ECHO_T}$acx_cv_header_stdint $acx_cv_header_stdint_kind" >&6; }
13930 # ----------------- done included file, check C basic types --------
13932 # Lacking an uintptr_t? Test size of void *
13933 case "$acx_cv_header_stdint:$ac_cv_type_uintptr_t" in
13934 stddef.h:* | *:no) { echo "$as_me:$LINENO: checking for void *" >&5
13935 echo $ECHO_N "checking for void *... $ECHO_C" >&6; }
13936 if test "${ac_cv_type_void_p+set}" = set; then
13937 echo $ECHO_N "(cached) $ECHO_C" >&6
13939 cat >conftest.$ac_ext <<_ACEOF
13942 cat confdefs.h >>conftest.$ac_ext
13943 cat >>conftest.$ac_ext <<_ACEOF
13944 /* end confdefs.h. */
13945 $ac_includes_default
13946 typedef void * ac__type_new_;
13950 if ((ac__type_new_ *) 0)
13952 if (sizeof (ac__type_new_))
13958 rm -f conftest.$ac_objext
13959 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
13960 (eval $ac_compile) 2>conftest.er1
13962 grep -v '^ *+' conftest.er1 >conftest.err
13964 cat conftest.err >&5
13965 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13966 (exit $ac_status); } &&
13967 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
13968 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13969 (eval $ac_try) 2>&5
13971 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13972 (exit $ac_status); }; } &&
13973 { ac_try='test -s conftest.$ac_objext'
13974 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13975 (eval $ac_try) 2>&5
13977 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13978 (exit $ac_status); }; }; then
13979 ac_cv_type_void_p=yes
13981 echo "$as_me: failed program was:" >&5
13982 sed 's/^/| /' conftest.$ac_ext >&5
13984 ac_cv_type_void_p=no
13987 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
13989 { echo "$as_me:$LINENO: result: $ac_cv_type_void_p" >&5
13990 echo "${ECHO_T}$ac_cv_type_void_p" >&6; }
13992 { echo "$as_me:$LINENO: checking size of void *" >&5
13993 echo $ECHO_N "checking size of void *... $ECHO_C" >&6; }
13994 if test "${ac_cv_sizeof_void_p+set}" = set; then
13995 echo $ECHO_N "(cached) $ECHO_C" >&6
13997 if test "$ac_cv_type_void_p" = yes; then
13998 # The cast to long int works around a bug in the HP C Compiler
13999 # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
14000 # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
14001 # This bug is HP SR number 8606223364.
14002 if test "$cross_compiling" = yes; then
14003 # Depending upon the size, compute the lo and hi bounds.
14004 cat >conftest.$ac_ext <<_ACEOF
14007 cat confdefs.h >>conftest.$ac_ext
14008 cat >>conftest.$ac_ext <<_ACEOF
14009 /* end confdefs.h. */
14010 $ac_includes_default
14011 typedef void * ac__type_sizeof_;
14015 static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) >= 0)];
14022 rm -f conftest.$ac_objext
14023 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
14024 (eval $ac_compile) 2>conftest.er1
14026 grep -v '^ *+' conftest.er1 >conftest.err
14028 cat conftest.err >&5
14029 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14030 (exit $ac_status); } &&
14031 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
14032 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14033 (eval $ac_try) 2>&5
14035 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14036 (exit $ac_status); }; } &&
14037 { ac_try='test -s conftest.$ac_objext'
14038 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14039 (eval $ac_try) 2>&5
14041 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14042 (exit $ac_status); }; }; then
14045 cat >conftest.$ac_ext <<_ACEOF
14048 cat confdefs.h >>conftest.$ac_ext
14049 cat >>conftest.$ac_ext <<_ACEOF
14050 /* end confdefs.h. */
14051 $ac_includes_default
14052 typedef void * ac__type_sizeof_;
14056 static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) <= $ac_mid)];
14063 rm -f conftest.$ac_objext
14064 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
14065 (eval $ac_compile) 2>conftest.er1
14067 grep -v '^ *+' conftest.er1 >conftest.err
14069 cat conftest.err >&5
14070 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14071 (exit $ac_status); } &&
14072 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
14073 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14074 (eval $ac_try) 2>&5
14076 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14077 (exit $ac_status); }; } &&
14078 { ac_try='test -s conftest.$ac_objext'
14079 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14080 (eval $ac_try) 2>&5
14082 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14083 (exit $ac_status); }; }; then
14084 ac_hi=$ac_mid; break
14086 echo "$as_me: failed program was:" >&5
14087 sed 's/^/| /' conftest.$ac_ext >&5
14089 ac_lo=`expr $ac_mid + 1`
14090 if test $ac_lo -le $ac_mid; then
14094 ac_mid=`expr 2 '*' $ac_mid + 1`
14097 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
14100 echo "$as_me: failed program was:" >&5
14101 sed 's/^/| /' conftest.$ac_ext >&5
14103 cat >conftest.$ac_ext <<_ACEOF
14106 cat confdefs.h >>conftest.$ac_ext
14107 cat >>conftest.$ac_ext <<_ACEOF
14108 /* end confdefs.h. */
14109 $ac_includes_default
14110 typedef void * ac__type_sizeof_;
14114 static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) < 0)];
14121 rm -f conftest.$ac_objext
14122 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
14123 (eval $ac_compile) 2>conftest.er1
14125 grep -v '^ *+' conftest.er1 >conftest.err
14127 cat conftest.err >&5
14128 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14129 (exit $ac_status); } &&
14130 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
14131 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14132 (eval $ac_try) 2>&5
14134 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14135 (exit $ac_status); }; } &&
14136 { ac_try='test -s conftest.$ac_objext'
14137 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14138 (eval $ac_try) 2>&5
14140 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14141 (exit $ac_status); }; }; then
14144 cat >conftest.$ac_ext <<_ACEOF
14147 cat confdefs.h >>conftest.$ac_ext
14148 cat >>conftest.$ac_ext <<_ACEOF
14149 /* end confdefs.h. */
14150 $ac_includes_default
14151 typedef void * ac__type_sizeof_;
14155 static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) >= $ac_mid)];
14162 rm -f conftest.$ac_objext
14163 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
14164 (eval $ac_compile) 2>conftest.er1
14166 grep -v '^ *+' conftest.er1 >conftest.err
14168 cat conftest.err >&5
14169 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14170 (exit $ac_status); } &&
14171 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
14172 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14173 (eval $ac_try) 2>&5
14175 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14176 (exit $ac_status); }; } &&
14177 { ac_try='test -s conftest.$ac_objext'
14178 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14179 (eval $ac_try) 2>&5
14181 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14182 (exit $ac_status); }; }; then
14183 ac_lo=$ac_mid; break
14185 echo "$as_me: failed program was:" >&5
14186 sed 's/^/| /' conftest.$ac_ext >&5
14188 ac_hi=`expr '(' $ac_mid ')' - 1`
14189 if test $ac_mid -le $ac_hi; then
14193 ac_mid=`expr 2 '*' $ac_mid`
14196 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
14199 echo "$as_me: failed program was:" >&5
14200 sed 's/^/| /' conftest.$ac_ext >&5
14205 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
14208 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
14209 # Binary search between lo and hi bounds.
14210 while test "x$ac_lo" != "x$ac_hi"; do
14211 ac_mid=`expr '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo`
14212 cat >conftest.$ac_ext <<_ACEOF
14215 cat confdefs.h >>conftest.$ac_ext
14216 cat >>conftest.$ac_ext <<_ACEOF
14217 /* end confdefs.h. */
14218 $ac_includes_default
14219 typedef void * ac__type_sizeof_;
14223 static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) <= $ac_mid)];
14230 rm -f conftest.$ac_objext
14231 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
14232 (eval $ac_compile) 2>conftest.er1
14234 grep -v '^ *+' conftest.er1 >conftest.err
14236 cat conftest.err >&5
14237 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14238 (exit $ac_status); } &&
14239 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
14240 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14241 (eval $ac_try) 2>&5
14243 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14244 (exit $ac_status); }; } &&
14245 { ac_try='test -s conftest.$ac_objext'
14246 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14247 (eval $ac_try) 2>&5
14249 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14250 (exit $ac_status); }; }; then
14253 echo "$as_me: failed program was:" >&5
14254 sed 's/^/| /' conftest.$ac_ext >&5
14256 ac_lo=`expr '(' $ac_mid ')' + 1`
14259 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
14262 ?*) ac_cv_sizeof_void_p=$ac_lo;;
14263 '') { { echo "$as_me:$LINENO: error: cannot compute sizeof (void *)
14264 See \`config.log' for more details." >&5
14265 echo "$as_me: error: cannot compute sizeof (void *)
14266 See \`config.log' for more details." >&2;}
14267 { (exit 77); exit 77; }; } ;;
14270 cat >conftest.$ac_ext <<_ACEOF
14273 cat confdefs.h >>conftest.$ac_ext
14274 cat >>conftest.$ac_ext <<_ACEOF
14275 /* end confdefs.h. */
14276 $ac_includes_default
14277 typedef void * ac__type_sizeof_;
14278 static long int longval () { return (long int) (sizeof (ac__type_sizeof_)); }
14279 static unsigned long int ulongval () { return (long int) (sizeof (ac__type_sizeof_)); }
14281 #include <stdlib.h>
14286 FILE *f = fopen ("conftest.val", "w");
14289 if (((long int) (sizeof (ac__type_sizeof_))) < 0)
14291 long int i = longval ();
14292 if (i != ((long int) (sizeof (ac__type_sizeof_))))
14294 fprintf (f, "%ld\n", i);
14298 unsigned long int i = ulongval ();
14299 if (i != ((long int) (sizeof (ac__type_sizeof_))))
14301 fprintf (f, "%lu\n", i);
14303 return ferror (f) || fclose (f) != 0;
14309 rm -f conftest$ac_exeext
14310 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
14311 (eval $ac_link) 2>&5
14313 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14314 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
14315 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14316 (eval $ac_try) 2>&5
14318 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14319 (exit $ac_status); }; }; then
14320 ac_cv_sizeof_void_p=`cat conftest.val`
14322 echo "$as_me: program exited with status $ac_status" >&5
14323 echo "$as_me: failed program was:" >&5
14324 sed 's/^/| /' conftest.$ac_ext >&5
14326 ( exit $ac_status )
14327 { { echo "$as_me:$LINENO: error: cannot compute sizeof (void *)
14328 See \`config.log' for more details." >&5
14329 echo "$as_me: error: cannot compute sizeof (void *)
14330 See \`config.log' for more details." >&2;}
14331 { (exit 77); exit 77; }; }
14333 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
14337 ac_cv_sizeof_void_p=0
14340 { echo "$as_me:$LINENO: result: $ac_cv_sizeof_void_p" >&5
14341 echo "${ECHO_T}$ac_cv_sizeof_void_p" >&6; }
14342 cat >>confdefs.h <<_ACEOF
14343 #define SIZEOF_VOID_P $ac_cv_sizeof_void_p
14349 # Lacking an uint64_t? Test size of long
14350 case "$acx_cv_header_stdint:$ac_cv_type_uint64_t:$ac_cv_type_u_int64_t" in
14351 stddef.h:*:* | *:no:no) { echo "$as_me:$LINENO: checking for long" >&5
14352 echo $ECHO_N "checking for long... $ECHO_C" >&6; }
14353 if test "${ac_cv_type_long+set}" = set; then
14354 echo $ECHO_N "(cached) $ECHO_C" >&6
14356 cat >conftest.$ac_ext <<_ACEOF
14359 cat confdefs.h >>conftest.$ac_ext
14360 cat >>conftest.$ac_ext <<_ACEOF
14361 /* end confdefs.h. */
14362 $ac_includes_default
14363 typedef long ac__type_new_;
14367 if ((ac__type_new_ *) 0)
14369 if (sizeof (ac__type_new_))
14375 rm -f conftest.$ac_objext
14376 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
14377 (eval $ac_compile) 2>conftest.er1
14379 grep -v '^ *+' conftest.er1 >conftest.err
14381 cat conftest.err >&5
14382 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14383 (exit $ac_status); } &&
14384 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
14385 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14386 (eval $ac_try) 2>&5
14388 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14389 (exit $ac_status); }; } &&
14390 { ac_try='test -s conftest.$ac_objext'
14391 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14392 (eval $ac_try) 2>&5
14394 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14395 (exit $ac_status); }; }; then
14396 ac_cv_type_long=yes
14398 echo "$as_me: failed program was:" >&5
14399 sed 's/^/| /' conftest.$ac_ext >&5
14404 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
14406 { echo "$as_me:$LINENO: result: $ac_cv_type_long" >&5
14407 echo "${ECHO_T}$ac_cv_type_long" >&6; }
14409 { echo "$as_me:$LINENO: checking size of long" >&5
14410 echo $ECHO_N "checking size of long... $ECHO_C" >&6; }
14411 if test "${ac_cv_sizeof_long+set}" = set; then
14412 echo $ECHO_N "(cached) $ECHO_C" >&6
14414 if test "$ac_cv_type_long" = yes; then
14415 # The cast to long int works around a bug in the HP C Compiler
14416 # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
14417 # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
14418 # This bug is HP SR number 8606223364.
14419 if test "$cross_compiling" = yes; then
14420 # Depending upon the size, compute the lo and hi bounds.
14421 cat >conftest.$ac_ext <<_ACEOF
14424 cat confdefs.h >>conftest.$ac_ext
14425 cat >>conftest.$ac_ext <<_ACEOF
14426 /* end confdefs.h. */
14427 $ac_includes_default
14428 typedef long ac__type_sizeof_;
14432 static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) >= 0)];
14439 rm -f conftest.$ac_objext
14440 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
14441 (eval $ac_compile) 2>conftest.er1
14443 grep -v '^ *+' conftest.er1 >conftest.err
14445 cat conftest.err >&5
14446 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14447 (exit $ac_status); } &&
14448 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
14449 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14450 (eval $ac_try) 2>&5
14452 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14453 (exit $ac_status); }; } &&
14454 { ac_try='test -s conftest.$ac_objext'
14455 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14456 (eval $ac_try) 2>&5
14458 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14459 (exit $ac_status); }; }; then
14462 cat >conftest.$ac_ext <<_ACEOF
14465 cat confdefs.h >>conftest.$ac_ext
14466 cat >>conftest.$ac_ext <<_ACEOF
14467 /* end confdefs.h. */
14468 $ac_includes_default
14469 typedef long ac__type_sizeof_;
14473 static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) <= $ac_mid)];
14480 rm -f conftest.$ac_objext
14481 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
14482 (eval $ac_compile) 2>conftest.er1
14484 grep -v '^ *+' conftest.er1 >conftest.err
14486 cat conftest.err >&5
14487 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14488 (exit $ac_status); } &&
14489 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
14490 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14491 (eval $ac_try) 2>&5
14493 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14494 (exit $ac_status); }; } &&
14495 { ac_try='test -s conftest.$ac_objext'
14496 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14497 (eval $ac_try) 2>&5
14499 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14500 (exit $ac_status); }; }; then
14501 ac_hi=$ac_mid; break
14503 echo "$as_me: failed program was:" >&5
14504 sed 's/^/| /' conftest.$ac_ext >&5
14506 ac_lo=`expr $ac_mid + 1`
14507 if test $ac_lo -le $ac_mid; then
14511 ac_mid=`expr 2 '*' $ac_mid + 1`
14514 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
14517 echo "$as_me: failed program was:" >&5
14518 sed 's/^/| /' conftest.$ac_ext >&5
14520 cat >conftest.$ac_ext <<_ACEOF
14523 cat confdefs.h >>conftest.$ac_ext
14524 cat >>conftest.$ac_ext <<_ACEOF
14525 /* end confdefs.h. */
14526 $ac_includes_default
14527 typedef long ac__type_sizeof_;
14531 static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) < 0)];
14538 rm -f conftest.$ac_objext
14539 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
14540 (eval $ac_compile) 2>conftest.er1
14542 grep -v '^ *+' conftest.er1 >conftest.err
14544 cat conftest.err >&5
14545 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14546 (exit $ac_status); } &&
14547 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
14548 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14549 (eval $ac_try) 2>&5
14551 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14552 (exit $ac_status); }; } &&
14553 { ac_try='test -s conftest.$ac_objext'
14554 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14555 (eval $ac_try) 2>&5
14557 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14558 (exit $ac_status); }; }; then
14561 cat >conftest.$ac_ext <<_ACEOF
14564 cat confdefs.h >>conftest.$ac_ext
14565 cat >>conftest.$ac_ext <<_ACEOF
14566 /* end confdefs.h. */
14567 $ac_includes_default
14568 typedef long ac__type_sizeof_;
14572 static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) >= $ac_mid)];
14579 rm -f conftest.$ac_objext
14580 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
14581 (eval $ac_compile) 2>conftest.er1
14583 grep -v '^ *+' conftest.er1 >conftest.err
14585 cat conftest.err >&5
14586 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14587 (exit $ac_status); } &&
14588 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
14589 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14590 (eval $ac_try) 2>&5
14592 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14593 (exit $ac_status); }; } &&
14594 { ac_try='test -s conftest.$ac_objext'
14595 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14596 (eval $ac_try) 2>&5
14598 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14599 (exit $ac_status); }; }; then
14600 ac_lo=$ac_mid; break
14602 echo "$as_me: failed program was:" >&5
14603 sed 's/^/| /' conftest.$ac_ext >&5
14605 ac_hi=`expr '(' $ac_mid ')' - 1`
14606 if test $ac_mid -le $ac_hi; then
14610 ac_mid=`expr 2 '*' $ac_mid`
14613 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
14616 echo "$as_me: failed program was:" >&5
14617 sed 's/^/| /' conftest.$ac_ext >&5
14622 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
14625 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
14626 # Binary search between lo and hi bounds.
14627 while test "x$ac_lo" != "x$ac_hi"; do
14628 ac_mid=`expr '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo`
14629 cat >conftest.$ac_ext <<_ACEOF
14632 cat confdefs.h >>conftest.$ac_ext
14633 cat >>conftest.$ac_ext <<_ACEOF
14634 /* end confdefs.h. */
14635 $ac_includes_default
14636 typedef long ac__type_sizeof_;
14640 static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) <= $ac_mid)];
14647 rm -f conftest.$ac_objext
14648 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
14649 (eval $ac_compile) 2>conftest.er1
14651 grep -v '^ *+' conftest.er1 >conftest.err
14653 cat conftest.err >&5
14654 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14655 (exit $ac_status); } &&
14656 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
14657 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14658 (eval $ac_try) 2>&5
14660 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14661 (exit $ac_status); }; } &&
14662 { ac_try='test -s conftest.$ac_objext'
14663 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14664 (eval $ac_try) 2>&5
14666 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14667 (exit $ac_status); }; }; then
14670 echo "$as_me: failed program was:" >&5
14671 sed 's/^/| /' conftest.$ac_ext >&5
14673 ac_lo=`expr '(' $ac_mid ')' + 1`
14676 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
14679 ?*) ac_cv_sizeof_long=$ac_lo;;
14680 '') { { echo "$as_me:$LINENO: error: cannot compute sizeof (long)
14681 See \`config.log' for more details." >&5
14682 echo "$as_me: error: cannot compute sizeof (long)
14683 See \`config.log' for more details." >&2;}
14684 { (exit 77); exit 77; }; } ;;
14687 cat >conftest.$ac_ext <<_ACEOF
14690 cat confdefs.h >>conftest.$ac_ext
14691 cat >>conftest.$ac_ext <<_ACEOF
14692 /* end confdefs.h. */
14693 $ac_includes_default
14694 typedef long ac__type_sizeof_;
14695 static long int longval () { return (long int) (sizeof (ac__type_sizeof_)); }
14696 static unsigned long int ulongval () { return (long int) (sizeof (ac__type_sizeof_)); }
14698 #include <stdlib.h>
14703 FILE *f = fopen ("conftest.val", "w");
14706 if (((long int) (sizeof (ac__type_sizeof_))) < 0)
14708 long int i = longval ();
14709 if (i != ((long int) (sizeof (ac__type_sizeof_))))
14711 fprintf (f, "%ld\n", i);
14715 unsigned long int i = ulongval ();
14716 if (i != ((long int) (sizeof (ac__type_sizeof_))))
14718 fprintf (f, "%lu\n", i);
14720 return ferror (f) || fclose (f) != 0;
14726 rm -f conftest$ac_exeext
14727 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
14728 (eval $ac_link) 2>&5
14730 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14731 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
14732 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14733 (eval $ac_try) 2>&5
14735 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14736 (exit $ac_status); }; }; then
14737 ac_cv_sizeof_long=`cat conftest.val`
14739 echo "$as_me: program exited with status $ac_status" >&5
14740 echo "$as_me: failed program was:" >&5
14741 sed 's/^/| /' conftest.$ac_ext >&5
14743 ( exit $ac_status )
14744 { { echo "$as_me:$LINENO: error: cannot compute sizeof (long)
14745 See \`config.log' for more details." >&5
14746 echo "$as_me: error: cannot compute sizeof (long)
14747 See \`config.log' for more details." >&2;}
14748 { (exit 77); exit 77; }; }
14750 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
14754 ac_cv_sizeof_long=0
14757 { echo "$as_me:$LINENO: result: $ac_cv_sizeof_long" >&5
14758 echo "${ECHO_T}$ac_cv_sizeof_long" >&6; }
14759 cat >>confdefs.h <<_ACEOF
14760 #define SIZEOF_LONG $ac_cv_sizeof_long
14766 if test $acx_cv_header_stdint = stddef.h; then
14767 # Lacking a good header? Test size of everything and deduce all types.
14768 { echo "$as_me:$LINENO: checking for int" >&5
14769 echo $ECHO_N "checking for int... $ECHO_C" >&6; }
14770 if test "${ac_cv_type_int+set}" = set; then
14771 echo $ECHO_N "(cached) $ECHO_C" >&6
14773 cat >conftest.$ac_ext <<_ACEOF
14776 cat confdefs.h >>conftest.$ac_ext
14777 cat >>conftest.$ac_ext <<_ACEOF
14778 /* end confdefs.h. */
14779 $ac_includes_default
14780 typedef int ac__type_new_;
14784 if ((ac__type_new_ *) 0)
14786 if (sizeof (ac__type_new_))
14792 rm -f conftest.$ac_objext
14793 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
14794 (eval $ac_compile) 2>conftest.er1
14796 grep -v '^ *+' conftest.er1 >conftest.err
14798 cat conftest.err >&5
14799 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14800 (exit $ac_status); } &&
14801 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
14802 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14803 (eval $ac_try) 2>&5
14805 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14806 (exit $ac_status); }; } &&
14807 { ac_try='test -s conftest.$ac_objext'
14808 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14809 (eval $ac_try) 2>&5
14811 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14812 (exit $ac_status); }; }; then
14815 echo "$as_me: failed program was:" >&5
14816 sed 's/^/| /' conftest.$ac_ext >&5
14821 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
14823 { echo "$as_me:$LINENO: result: $ac_cv_type_int" >&5
14824 echo "${ECHO_T}$ac_cv_type_int" >&6; }
14826 { echo "$as_me:$LINENO: checking size of int" >&5
14827 echo $ECHO_N "checking size of int... $ECHO_C" >&6; }
14828 if test "${ac_cv_sizeof_int+set}" = set; then
14829 echo $ECHO_N "(cached) $ECHO_C" >&6
14831 if test "$ac_cv_type_int" = yes; then
14832 # The cast to long int works around a bug in the HP C Compiler
14833 # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
14834 # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
14835 # This bug is HP SR number 8606223364.
14836 if test "$cross_compiling" = yes; then
14837 # Depending upon the size, compute the lo and hi bounds.
14838 cat >conftest.$ac_ext <<_ACEOF
14841 cat confdefs.h >>conftest.$ac_ext
14842 cat >>conftest.$ac_ext <<_ACEOF
14843 /* end confdefs.h. */
14844 $ac_includes_default
14845 typedef int ac__type_sizeof_;
14849 static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) >= 0)];
14856 rm -f conftest.$ac_objext
14857 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
14858 (eval $ac_compile) 2>conftest.er1
14860 grep -v '^ *+' conftest.er1 >conftest.err
14862 cat conftest.err >&5
14863 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14864 (exit $ac_status); } &&
14865 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
14866 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14867 (eval $ac_try) 2>&5
14869 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14870 (exit $ac_status); }; } &&
14871 { ac_try='test -s conftest.$ac_objext'
14872 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14873 (eval $ac_try) 2>&5
14875 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14876 (exit $ac_status); }; }; then
14879 cat >conftest.$ac_ext <<_ACEOF
14882 cat confdefs.h >>conftest.$ac_ext
14883 cat >>conftest.$ac_ext <<_ACEOF
14884 /* end confdefs.h. */
14885 $ac_includes_default
14886 typedef int ac__type_sizeof_;
14890 static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) <= $ac_mid)];
14897 rm -f conftest.$ac_objext
14898 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
14899 (eval $ac_compile) 2>conftest.er1
14901 grep -v '^ *+' conftest.er1 >conftest.err
14903 cat conftest.err >&5
14904 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14905 (exit $ac_status); } &&
14906 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
14907 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14908 (eval $ac_try) 2>&5
14910 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14911 (exit $ac_status); }; } &&
14912 { ac_try='test -s conftest.$ac_objext'
14913 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14914 (eval $ac_try) 2>&5
14916 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14917 (exit $ac_status); }; }; then
14918 ac_hi=$ac_mid; break
14920 echo "$as_me: failed program was:" >&5
14921 sed 's/^/| /' conftest.$ac_ext >&5
14923 ac_lo=`expr $ac_mid + 1`
14924 if test $ac_lo -le $ac_mid; then
14928 ac_mid=`expr 2 '*' $ac_mid + 1`
14931 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
14934 echo "$as_me: failed program was:" >&5
14935 sed 's/^/| /' conftest.$ac_ext >&5
14937 cat >conftest.$ac_ext <<_ACEOF
14940 cat confdefs.h >>conftest.$ac_ext
14941 cat >>conftest.$ac_ext <<_ACEOF
14942 /* end confdefs.h. */
14943 $ac_includes_default
14944 typedef int ac__type_sizeof_;
14948 static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) < 0)];
14955 rm -f conftest.$ac_objext
14956 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
14957 (eval $ac_compile) 2>conftest.er1
14959 grep -v '^ *+' conftest.er1 >conftest.err
14961 cat conftest.err >&5
14962 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14963 (exit $ac_status); } &&
14964 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
14965 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14966 (eval $ac_try) 2>&5
14968 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14969 (exit $ac_status); }; } &&
14970 { ac_try='test -s conftest.$ac_objext'
14971 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14972 (eval $ac_try) 2>&5
14974 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14975 (exit $ac_status); }; }; then
14978 cat >conftest.$ac_ext <<_ACEOF
14981 cat confdefs.h >>conftest.$ac_ext
14982 cat >>conftest.$ac_ext <<_ACEOF
14983 /* end confdefs.h. */
14984 $ac_includes_default
14985 typedef int ac__type_sizeof_;
14989 static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) >= $ac_mid)];
14996 rm -f conftest.$ac_objext
14997 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
14998 (eval $ac_compile) 2>conftest.er1
15000 grep -v '^ *+' conftest.er1 >conftest.err
15002 cat conftest.err >&5
15003 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15004 (exit $ac_status); } &&
15005 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
15006 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15007 (eval $ac_try) 2>&5
15009 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15010 (exit $ac_status); }; } &&
15011 { ac_try='test -s conftest.$ac_objext'
15012 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15013 (eval $ac_try) 2>&5
15015 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15016 (exit $ac_status); }; }; then
15017 ac_lo=$ac_mid; break
15019 echo "$as_me: failed program was:" >&5
15020 sed 's/^/| /' conftest.$ac_ext >&5
15022 ac_hi=`expr '(' $ac_mid ')' - 1`
15023 if test $ac_mid -le $ac_hi; then
15027 ac_mid=`expr 2 '*' $ac_mid`
15030 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
15033 echo "$as_me: failed program was:" >&5
15034 sed 's/^/| /' conftest.$ac_ext >&5
15039 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
15042 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
15043 # Binary search between lo and hi bounds.
15044 while test "x$ac_lo" != "x$ac_hi"; do
15045 ac_mid=`expr '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo`
15046 cat >conftest.$ac_ext <<_ACEOF
15049 cat confdefs.h >>conftest.$ac_ext
15050 cat >>conftest.$ac_ext <<_ACEOF
15051 /* end confdefs.h. */
15052 $ac_includes_default
15053 typedef int ac__type_sizeof_;
15057 static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) <= $ac_mid)];
15064 rm -f conftest.$ac_objext
15065 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
15066 (eval $ac_compile) 2>conftest.er1
15068 grep -v '^ *+' conftest.er1 >conftest.err
15070 cat conftest.err >&5
15071 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15072 (exit $ac_status); } &&
15073 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
15074 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15075 (eval $ac_try) 2>&5
15077 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15078 (exit $ac_status); }; } &&
15079 { ac_try='test -s conftest.$ac_objext'
15080 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15081 (eval $ac_try) 2>&5
15083 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15084 (exit $ac_status); }; }; then
15087 echo "$as_me: failed program was:" >&5
15088 sed 's/^/| /' conftest.$ac_ext >&5
15090 ac_lo=`expr '(' $ac_mid ')' + 1`
15093 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
15096 ?*) ac_cv_sizeof_int=$ac_lo;;
15097 '') { { echo "$as_me:$LINENO: error: cannot compute sizeof (int)
15098 See \`config.log' for more details." >&5
15099 echo "$as_me: error: cannot compute sizeof (int)
15100 See \`config.log' for more details." >&2;}
15101 { (exit 77); exit 77; }; } ;;
15104 cat >conftest.$ac_ext <<_ACEOF
15107 cat confdefs.h >>conftest.$ac_ext
15108 cat >>conftest.$ac_ext <<_ACEOF
15109 /* end confdefs.h. */
15110 $ac_includes_default
15111 typedef int ac__type_sizeof_;
15112 static long int longval () { return (long int) (sizeof (ac__type_sizeof_)); }
15113 static unsigned long int ulongval () { return (long int) (sizeof (ac__type_sizeof_)); }
15115 #include <stdlib.h>
15120 FILE *f = fopen ("conftest.val", "w");
15123 if (((long int) (sizeof (ac__type_sizeof_))) < 0)
15125 long int i = longval ();
15126 if (i != ((long int) (sizeof (ac__type_sizeof_))))
15128 fprintf (f, "%ld\n", i);
15132 unsigned long int i = ulongval ();
15133 if (i != ((long int) (sizeof (ac__type_sizeof_))))
15135 fprintf (f, "%lu\n", i);
15137 return ferror (f) || fclose (f) != 0;
15143 rm -f conftest$ac_exeext
15144 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
15145 (eval $ac_link) 2>&5
15147 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15148 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
15149 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15150 (eval $ac_try) 2>&5
15152 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15153 (exit $ac_status); }; }; then
15154 ac_cv_sizeof_int=`cat conftest.val`
15156 echo "$as_me: program exited with status $ac_status" >&5
15157 echo "$as_me: failed program was:" >&5
15158 sed 's/^/| /' conftest.$ac_ext >&5
15160 ( exit $ac_status )
15161 { { echo "$as_me:$LINENO: error: cannot compute sizeof (int)
15162 See \`config.log' for more details." >&5
15163 echo "$as_me: error: cannot compute sizeof (int)
15164 See \`config.log' for more details." >&2;}
15165 { (exit 77); exit 77; }; }
15167 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
15174 { echo "$as_me:$LINENO: result: $ac_cv_sizeof_int" >&5
15175 echo "${ECHO_T}$ac_cv_sizeof_int" >&6; }
15176 cat >>confdefs.h <<_ACEOF
15177 #define SIZEOF_INT $ac_cv_sizeof_int
15181 { echo "$as_me:$LINENO: checking for short" >&5
15182 echo $ECHO_N "checking for short... $ECHO_C" >&6; }
15183 if test "${ac_cv_type_short+set}" = set; then
15184 echo $ECHO_N "(cached) $ECHO_C" >&6
15186 cat >conftest.$ac_ext <<_ACEOF
15189 cat confdefs.h >>conftest.$ac_ext
15190 cat >>conftest.$ac_ext <<_ACEOF
15191 /* end confdefs.h. */
15192 $ac_includes_default
15193 typedef short ac__type_new_;
15197 if ((ac__type_new_ *) 0)
15199 if (sizeof (ac__type_new_))
15205 rm -f conftest.$ac_objext
15206 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
15207 (eval $ac_compile) 2>conftest.er1
15209 grep -v '^ *+' conftest.er1 >conftest.err
15211 cat conftest.err >&5
15212 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15213 (exit $ac_status); } &&
15214 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
15215 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15216 (eval $ac_try) 2>&5
15218 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15219 (exit $ac_status); }; } &&
15220 { ac_try='test -s conftest.$ac_objext'
15221 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15222 (eval $ac_try) 2>&5
15224 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15225 (exit $ac_status); }; }; then
15226 ac_cv_type_short=yes
15228 echo "$as_me: failed program was:" >&5
15229 sed 's/^/| /' conftest.$ac_ext >&5
15231 ac_cv_type_short=no
15234 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
15236 { echo "$as_me:$LINENO: result: $ac_cv_type_short" >&5
15237 echo "${ECHO_T}$ac_cv_type_short" >&6; }
15239 { echo "$as_me:$LINENO: checking size of short" >&5
15240 echo $ECHO_N "checking size of short... $ECHO_C" >&6; }
15241 if test "${ac_cv_sizeof_short+set}" = set; then
15242 echo $ECHO_N "(cached) $ECHO_C" >&6
15244 if test "$ac_cv_type_short" = yes; then
15245 # The cast to long int works around a bug in the HP C Compiler
15246 # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
15247 # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
15248 # This bug is HP SR number 8606223364.
15249 if test "$cross_compiling" = yes; then
15250 # Depending upon the size, compute the lo and hi bounds.
15251 cat >conftest.$ac_ext <<_ACEOF
15254 cat confdefs.h >>conftest.$ac_ext
15255 cat >>conftest.$ac_ext <<_ACEOF
15256 /* end confdefs.h. */
15257 $ac_includes_default
15258 typedef short ac__type_sizeof_;
15262 static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) >= 0)];
15269 rm -f conftest.$ac_objext
15270 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
15271 (eval $ac_compile) 2>conftest.er1
15273 grep -v '^ *+' conftest.er1 >conftest.err
15275 cat conftest.err >&5
15276 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15277 (exit $ac_status); } &&
15278 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
15279 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15280 (eval $ac_try) 2>&5
15282 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15283 (exit $ac_status); }; } &&
15284 { ac_try='test -s conftest.$ac_objext'
15285 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15286 (eval $ac_try) 2>&5
15288 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15289 (exit $ac_status); }; }; then
15292 cat >conftest.$ac_ext <<_ACEOF
15295 cat confdefs.h >>conftest.$ac_ext
15296 cat >>conftest.$ac_ext <<_ACEOF
15297 /* end confdefs.h. */
15298 $ac_includes_default
15299 typedef short ac__type_sizeof_;
15303 static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) <= $ac_mid)];
15310 rm -f conftest.$ac_objext
15311 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
15312 (eval $ac_compile) 2>conftest.er1
15314 grep -v '^ *+' conftest.er1 >conftest.err
15316 cat conftest.err >&5
15317 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15318 (exit $ac_status); } &&
15319 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
15320 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15321 (eval $ac_try) 2>&5
15323 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15324 (exit $ac_status); }; } &&
15325 { ac_try='test -s conftest.$ac_objext'
15326 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15327 (eval $ac_try) 2>&5
15329 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15330 (exit $ac_status); }; }; then
15331 ac_hi=$ac_mid; break
15333 echo "$as_me: failed program was:" >&5
15334 sed 's/^/| /' conftest.$ac_ext >&5
15336 ac_lo=`expr $ac_mid + 1`
15337 if test $ac_lo -le $ac_mid; then
15341 ac_mid=`expr 2 '*' $ac_mid + 1`
15344 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
15347 echo "$as_me: failed program was:" >&5
15348 sed 's/^/| /' conftest.$ac_ext >&5
15350 cat >conftest.$ac_ext <<_ACEOF
15353 cat confdefs.h >>conftest.$ac_ext
15354 cat >>conftest.$ac_ext <<_ACEOF
15355 /* end confdefs.h. */
15356 $ac_includes_default
15357 typedef short ac__type_sizeof_;
15361 static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) < 0)];
15368 rm -f conftest.$ac_objext
15369 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
15370 (eval $ac_compile) 2>conftest.er1
15372 grep -v '^ *+' conftest.er1 >conftest.err
15374 cat conftest.err >&5
15375 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15376 (exit $ac_status); } &&
15377 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
15378 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15379 (eval $ac_try) 2>&5
15381 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15382 (exit $ac_status); }; } &&
15383 { ac_try='test -s conftest.$ac_objext'
15384 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15385 (eval $ac_try) 2>&5
15387 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15388 (exit $ac_status); }; }; then
15391 cat >conftest.$ac_ext <<_ACEOF
15394 cat confdefs.h >>conftest.$ac_ext
15395 cat >>conftest.$ac_ext <<_ACEOF
15396 /* end confdefs.h. */
15397 $ac_includes_default
15398 typedef short ac__type_sizeof_;
15402 static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) >= $ac_mid)];
15409 rm -f conftest.$ac_objext
15410 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
15411 (eval $ac_compile) 2>conftest.er1
15413 grep -v '^ *+' conftest.er1 >conftest.err
15415 cat conftest.err >&5
15416 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15417 (exit $ac_status); } &&
15418 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
15419 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15420 (eval $ac_try) 2>&5
15422 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15423 (exit $ac_status); }; } &&
15424 { ac_try='test -s conftest.$ac_objext'
15425 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15426 (eval $ac_try) 2>&5
15428 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15429 (exit $ac_status); }; }; then
15430 ac_lo=$ac_mid; break
15432 echo "$as_me: failed program was:" >&5
15433 sed 's/^/| /' conftest.$ac_ext >&5
15435 ac_hi=`expr '(' $ac_mid ')' - 1`
15436 if test $ac_mid -le $ac_hi; then
15440 ac_mid=`expr 2 '*' $ac_mid`
15443 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
15446 echo "$as_me: failed program was:" >&5
15447 sed 's/^/| /' conftest.$ac_ext >&5
15452 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
15455 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
15456 # Binary search between lo and hi bounds.
15457 while test "x$ac_lo" != "x$ac_hi"; do
15458 ac_mid=`expr '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo`
15459 cat >conftest.$ac_ext <<_ACEOF
15462 cat confdefs.h >>conftest.$ac_ext
15463 cat >>conftest.$ac_ext <<_ACEOF
15464 /* end confdefs.h. */
15465 $ac_includes_default
15466 typedef short ac__type_sizeof_;
15470 static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) <= $ac_mid)];
15477 rm -f conftest.$ac_objext
15478 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
15479 (eval $ac_compile) 2>conftest.er1
15481 grep -v '^ *+' conftest.er1 >conftest.err
15483 cat conftest.err >&5
15484 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15485 (exit $ac_status); } &&
15486 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
15487 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15488 (eval $ac_try) 2>&5
15490 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15491 (exit $ac_status); }; } &&
15492 { ac_try='test -s conftest.$ac_objext'
15493 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15494 (eval $ac_try) 2>&5
15496 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15497 (exit $ac_status); }; }; then
15500 echo "$as_me: failed program was:" >&5
15501 sed 's/^/| /' conftest.$ac_ext >&5
15503 ac_lo=`expr '(' $ac_mid ')' + 1`
15506 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
15509 ?*) ac_cv_sizeof_short=$ac_lo;;
15510 '') { { echo "$as_me:$LINENO: error: cannot compute sizeof (short)
15511 See \`config.log' for more details." >&5
15512 echo "$as_me: error: cannot compute sizeof (short)
15513 See \`config.log' for more details." >&2;}
15514 { (exit 77); exit 77; }; } ;;
15517 cat >conftest.$ac_ext <<_ACEOF
15520 cat confdefs.h >>conftest.$ac_ext
15521 cat >>conftest.$ac_ext <<_ACEOF
15522 /* end confdefs.h. */
15523 $ac_includes_default
15524 typedef short ac__type_sizeof_;
15525 static long int longval () { return (long int) (sizeof (ac__type_sizeof_)); }
15526 static unsigned long int ulongval () { return (long int) (sizeof (ac__type_sizeof_)); }
15528 #include <stdlib.h>
15533 FILE *f = fopen ("conftest.val", "w");
15536 if (((long int) (sizeof (ac__type_sizeof_))) < 0)
15538 long int i = longval ();
15539 if (i != ((long int) (sizeof (ac__type_sizeof_))))
15541 fprintf (f, "%ld\n", i);
15545 unsigned long int i = ulongval ();
15546 if (i != ((long int) (sizeof (ac__type_sizeof_))))
15548 fprintf (f, "%lu\n", i);
15550 return ferror (f) || fclose (f) != 0;
15556 rm -f conftest$ac_exeext
15557 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
15558 (eval $ac_link) 2>&5
15560 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15561 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
15562 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15563 (eval $ac_try) 2>&5
15565 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15566 (exit $ac_status); }; }; then
15567 ac_cv_sizeof_short=`cat conftest.val`
15569 echo "$as_me: program exited with status $ac_status" >&5
15570 echo "$as_me: failed program was:" >&5
15571 sed 's/^/| /' conftest.$ac_ext >&5
15573 ( exit $ac_status )
15574 { { echo "$as_me:$LINENO: error: cannot compute sizeof (short)
15575 See \`config.log' for more details." >&5
15576 echo "$as_me: error: cannot compute sizeof (short)
15577 See \`config.log' for more details." >&2;}
15578 { (exit 77); exit 77; }; }
15580 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
15584 ac_cv_sizeof_short=0
15587 { echo "$as_me:$LINENO: result: $ac_cv_sizeof_short" >&5
15588 echo "${ECHO_T}$ac_cv_sizeof_short" >&6; }
15589 cat >>confdefs.h <<_ACEOF
15590 #define SIZEOF_SHORT $ac_cv_sizeof_short
15594 { echo "$as_me:$LINENO: checking for char" >&5
15595 echo $ECHO_N "checking for char... $ECHO_C" >&6; }
15596 if test "${ac_cv_type_char+set}" = set; then
15597 echo $ECHO_N "(cached) $ECHO_C" >&6
15599 cat >conftest.$ac_ext <<_ACEOF
15602 cat confdefs.h >>conftest.$ac_ext
15603 cat >>conftest.$ac_ext <<_ACEOF
15604 /* end confdefs.h. */
15605 $ac_includes_default
15606 typedef char ac__type_new_;
15610 if ((ac__type_new_ *) 0)
15612 if (sizeof (ac__type_new_))
15618 rm -f conftest.$ac_objext
15619 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
15620 (eval $ac_compile) 2>conftest.er1
15622 grep -v '^ *+' conftest.er1 >conftest.err
15624 cat conftest.err >&5
15625 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15626 (exit $ac_status); } &&
15627 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
15628 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15629 (eval $ac_try) 2>&5
15631 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15632 (exit $ac_status); }; } &&
15633 { ac_try='test -s conftest.$ac_objext'
15634 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15635 (eval $ac_try) 2>&5
15637 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15638 (exit $ac_status); }; }; then
15639 ac_cv_type_char=yes
15641 echo "$as_me: failed program was:" >&5
15642 sed 's/^/| /' conftest.$ac_ext >&5
15647 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
15649 { echo "$as_me:$LINENO: result: $ac_cv_type_char" >&5
15650 echo "${ECHO_T}$ac_cv_type_char" >&6; }
15652 { echo "$as_me:$LINENO: checking size of char" >&5
15653 echo $ECHO_N "checking size of char... $ECHO_C" >&6; }
15654 if test "${ac_cv_sizeof_char+set}" = set; then
15655 echo $ECHO_N "(cached) $ECHO_C" >&6
15657 if test "$ac_cv_type_char" = yes; then
15658 # The cast to long int works around a bug in the HP C Compiler
15659 # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
15660 # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
15661 # This bug is HP SR number 8606223364.
15662 if test "$cross_compiling" = yes; then
15663 # Depending upon the size, compute the lo and hi bounds.
15664 cat >conftest.$ac_ext <<_ACEOF
15667 cat confdefs.h >>conftest.$ac_ext
15668 cat >>conftest.$ac_ext <<_ACEOF
15669 /* end confdefs.h. */
15670 $ac_includes_default
15671 typedef char ac__type_sizeof_;
15675 static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) >= 0)];
15682 rm -f conftest.$ac_objext
15683 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
15684 (eval $ac_compile) 2>conftest.er1
15686 grep -v '^ *+' conftest.er1 >conftest.err
15688 cat conftest.err >&5
15689 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15690 (exit $ac_status); } &&
15691 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
15692 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15693 (eval $ac_try) 2>&5
15695 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15696 (exit $ac_status); }; } &&
15697 { ac_try='test -s conftest.$ac_objext'
15698 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15699 (eval $ac_try) 2>&5
15701 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15702 (exit $ac_status); }; }; then
15705 cat >conftest.$ac_ext <<_ACEOF
15708 cat confdefs.h >>conftest.$ac_ext
15709 cat >>conftest.$ac_ext <<_ACEOF
15710 /* end confdefs.h. */
15711 $ac_includes_default
15712 typedef char ac__type_sizeof_;
15716 static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) <= $ac_mid)];
15723 rm -f conftest.$ac_objext
15724 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
15725 (eval $ac_compile) 2>conftest.er1
15727 grep -v '^ *+' conftest.er1 >conftest.err
15729 cat conftest.err >&5
15730 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15731 (exit $ac_status); } &&
15732 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
15733 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15734 (eval $ac_try) 2>&5
15736 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15737 (exit $ac_status); }; } &&
15738 { ac_try='test -s conftest.$ac_objext'
15739 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15740 (eval $ac_try) 2>&5
15742 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15743 (exit $ac_status); }; }; then
15744 ac_hi=$ac_mid; break
15746 echo "$as_me: failed program was:" >&5
15747 sed 's/^/| /' conftest.$ac_ext >&5
15749 ac_lo=`expr $ac_mid + 1`
15750 if test $ac_lo -le $ac_mid; then
15754 ac_mid=`expr 2 '*' $ac_mid + 1`
15757 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
15760 echo "$as_me: failed program was:" >&5
15761 sed 's/^/| /' conftest.$ac_ext >&5
15763 cat >conftest.$ac_ext <<_ACEOF
15766 cat confdefs.h >>conftest.$ac_ext
15767 cat >>conftest.$ac_ext <<_ACEOF
15768 /* end confdefs.h. */
15769 $ac_includes_default
15770 typedef char ac__type_sizeof_;
15774 static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) < 0)];
15781 rm -f conftest.$ac_objext
15782 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
15783 (eval $ac_compile) 2>conftest.er1
15785 grep -v '^ *+' conftest.er1 >conftest.err
15787 cat conftest.err >&5
15788 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15789 (exit $ac_status); } &&
15790 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
15791 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15792 (eval $ac_try) 2>&5
15794 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15795 (exit $ac_status); }; } &&
15796 { ac_try='test -s conftest.$ac_objext'
15797 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15798 (eval $ac_try) 2>&5
15800 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15801 (exit $ac_status); }; }; then
15804 cat >conftest.$ac_ext <<_ACEOF
15807 cat confdefs.h >>conftest.$ac_ext
15808 cat >>conftest.$ac_ext <<_ACEOF
15809 /* end confdefs.h. */
15810 $ac_includes_default
15811 typedef char ac__type_sizeof_;
15815 static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) >= $ac_mid)];
15822 rm -f conftest.$ac_objext
15823 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
15824 (eval $ac_compile) 2>conftest.er1
15826 grep -v '^ *+' conftest.er1 >conftest.err
15828 cat conftest.err >&5
15829 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15830 (exit $ac_status); } &&
15831 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
15832 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15833 (eval $ac_try) 2>&5
15835 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15836 (exit $ac_status); }; } &&
15837 { ac_try='test -s conftest.$ac_objext'
15838 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15839 (eval $ac_try) 2>&5
15841 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15842 (exit $ac_status); }; }; then
15843 ac_lo=$ac_mid; break
15845 echo "$as_me: failed program was:" >&5
15846 sed 's/^/| /' conftest.$ac_ext >&5
15848 ac_hi=`expr '(' $ac_mid ')' - 1`
15849 if test $ac_mid -le $ac_hi; then
15853 ac_mid=`expr 2 '*' $ac_mid`
15856 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
15859 echo "$as_me: failed program was:" >&5
15860 sed 's/^/| /' conftest.$ac_ext >&5
15865 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
15868 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
15869 # Binary search between lo and hi bounds.
15870 while test "x$ac_lo" != "x$ac_hi"; do
15871 ac_mid=`expr '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo`
15872 cat >conftest.$ac_ext <<_ACEOF
15875 cat confdefs.h >>conftest.$ac_ext
15876 cat >>conftest.$ac_ext <<_ACEOF
15877 /* end confdefs.h. */
15878 $ac_includes_default
15879 typedef char ac__type_sizeof_;
15883 static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) <= $ac_mid)];
15890 rm -f conftest.$ac_objext
15891 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
15892 (eval $ac_compile) 2>conftest.er1
15894 grep -v '^ *+' conftest.er1 >conftest.err
15896 cat conftest.err >&5
15897 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15898 (exit $ac_status); } &&
15899 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
15900 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15901 (eval $ac_try) 2>&5
15903 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15904 (exit $ac_status); }; } &&
15905 { ac_try='test -s conftest.$ac_objext'
15906 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15907 (eval $ac_try) 2>&5
15909 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15910 (exit $ac_status); }; }; then
15913 echo "$as_me: failed program was:" >&5
15914 sed 's/^/| /' conftest.$ac_ext >&5
15916 ac_lo=`expr '(' $ac_mid ')' + 1`
15919 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
15922 ?*) ac_cv_sizeof_char=$ac_lo;;
15923 '') { { echo "$as_me:$LINENO: error: cannot compute sizeof (char)
15924 See \`config.log' for more details." >&5
15925 echo "$as_me: error: cannot compute sizeof (char)
15926 See \`config.log' for more details." >&2;}
15927 { (exit 77); exit 77; }; } ;;
15930 cat >conftest.$ac_ext <<_ACEOF
15933 cat confdefs.h >>conftest.$ac_ext
15934 cat >>conftest.$ac_ext <<_ACEOF
15935 /* end confdefs.h. */
15936 $ac_includes_default
15937 typedef char ac__type_sizeof_;
15938 static long int longval () { return (long int) (sizeof (ac__type_sizeof_)); }
15939 static unsigned long int ulongval () { return (long int) (sizeof (ac__type_sizeof_)); }
15941 #include <stdlib.h>
15946 FILE *f = fopen ("conftest.val", "w");
15949 if (((long int) (sizeof (ac__type_sizeof_))) < 0)
15951 long int i = longval ();
15952 if (i != ((long int) (sizeof (ac__type_sizeof_))))
15954 fprintf (f, "%ld\n", i);
15958 unsigned long int i = ulongval ();
15959 if (i != ((long int) (sizeof (ac__type_sizeof_))))
15961 fprintf (f, "%lu\n", i);
15963 return ferror (f) || fclose (f) != 0;
15969 rm -f conftest$ac_exeext
15970 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
15971 (eval $ac_link) 2>&5
15973 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15974 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
15975 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15976 (eval $ac_try) 2>&5
15978 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15979 (exit $ac_status); }; }; then
15980 ac_cv_sizeof_char=`cat conftest.val`
15982 echo "$as_me: program exited with status $ac_status" >&5
15983 echo "$as_me: failed program was:" >&5
15984 sed 's/^/| /' conftest.$ac_ext >&5
15986 ( exit $ac_status )
15987 { { echo "$as_me:$LINENO: error: cannot compute sizeof (char)
15988 See \`config.log' for more details." >&5
15989 echo "$as_me: error: cannot compute sizeof (char)
15990 See \`config.log' for more details." >&2;}
15991 { (exit 77); exit 77; }; }
15993 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
15997 ac_cv_sizeof_char=0
16000 { echo "$as_me:$LINENO: result: $ac_cv_sizeof_char" >&5
16001 echo "${ECHO_T}$ac_cv_sizeof_char" >&6; }
16002 cat >>confdefs.h <<_ACEOF
16003 #define SIZEOF_CHAR $ac_cv_sizeof_char
16008 { echo "$as_me:$LINENO: checking for type equivalent to int8_t" >&5
16009 echo $ECHO_N "checking for type equivalent to int8_t... $ECHO_C" >&6; }
16010 case "$ac_cv_sizeof_char" in
16011 1) acx_cv_type_int8_t=char ;;
16012 *) { { echo "$as_me:$LINENO: error: no 8-bit type" >&5
16013 echo "$as_me: error: no 8-bit type" >&2;}
16014 { (exit please report a bug); exit please report a bug; }; }
16016 { echo "$as_me:$LINENO: result: $acx_cv_type_int8_t" >&5
16017 echo "${ECHO_T}$acx_cv_type_int8_t" >&6; }
16019 { echo "$as_me:$LINENO: checking for type equivalent to int16_t" >&5
16020 echo $ECHO_N "checking for type equivalent to int16_t... $ECHO_C" >&6; }
16021 case "$ac_cv_sizeof_int:$ac_cv_sizeof_short" in
16022 2:*) acx_cv_type_int16_t=int ;;
16023 *:2) acx_cv_type_int16_t=short ;;
16024 *) { { echo "$as_me:$LINENO: error: no 16-bit type" >&5
16025 echo "$as_me: error: no 16-bit type" >&2;}
16026 { (exit please report a bug); exit please report a bug; }; }
16028 { echo "$as_me:$LINENO: result: $acx_cv_type_int16_t" >&5
16029 echo "${ECHO_T}$acx_cv_type_int16_t" >&6; }
16031 { echo "$as_me:$LINENO: checking for type equivalent to int32_t" >&5
16032 echo $ECHO_N "checking for type equivalent to int32_t... $ECHO_C" >&6; }
16033 case "$ac_cv_sizeof_int:$ac_cv_sizeof_long" in
16034 4:*) acx_cv_type_int32_t=int ;;
16035 *:4) acx_cv_type_int32_t=long ;;
16036 *) { { echo "$as_me:$LINENO: error: no 32-bit type" >&5
16037 echo "$as_me: error: no 32-bit type" >&2;}
16038 { (exit please report a bug); exit please report a bug; }; }
16040 { echo "$as_me:$LINENO: result: $acx_cv_type_int32_t" >&5
16041 echo "${ECHO_T}$acx_cv_type_int32_t" >&6; }
16044 # These tests are here to make the output prettier
16046 if test "$ac_cv_type_uint64_t" != yes && test "$ac_cv_type_u_int64_t" != yes; then
16047 case "$ac_cv_sizeof_long" in
16048 8) acx_cv_type_int64_t=long ;;
16050 { echo "$as_me:$LINENO: checking for type equivalent to int64_t" >&5
16051 echo $ECHO_N "checking for type equivalent to int64_t... $ECHO_C" >&6; }
16052 { echo "$as_me:$LINENO: result: ${acx_cv_type_int64_t-'using preprocessor symbols'}" >&5
16053 echo "${ECHO_T}${acx_cv_type_int64_t-'using preprocessor symbols'}" >&6; }
16056 # Now we can use the above types
16058 if test "$ac_cv_type_uintptr_t" != yes; then
16059 { echo "$as_me:$LINENO: checking for type equivalent to intptr_t" >&5
16060 echo $ECHO_N "checking for type equivalent to intptr_t... $ECHO_C" >&6; }
16061 case $ac_cv_sizeof_void_p in
16062 2) acx_cv_type_intptr_t=int16_t ;;
16063 4) acx_cv_type_intptr_t=int32_t ;;
16064 8) acx_cv_type_intptr_t=int64_t ;;
16065 *) { { echo "$as_me:$LINENO: error: no equivalent for intptr_t" >&5
16066 echo "$as_me: error: no equivalent for intptr_t" >&2;}
16067 { (exit please report a bug); exit please report a bug; }; }
16069 { echo "$as_me:$LINENO: result: $acx_cv_type_intptr_t" >&5
16070 echo "${ECHO_T}$acx_cv_type_intptr_t" >&6; }
16073 # ----------------- done all checks, emit header -------------
16074 ac_config_commands="$ac_config_commands gdb_stdint.h"
16079 # ------------------------- #
16080 # Checks for declarations. #
16081 # ------------------------- #
16083 { echo "$as_me:$LINENO: checking whether free is declared" >&5
16084 echo $ECHO_N "checking whether free is declared... $ECHO_C" >&6; }
16085 if test "${ac_cv_have_decl_free+set}" = set; then
16086 echo $ECHO_N "(cached) $ECHO_C" >&6
16088 cat >conftest.$ac_ext <<_ACEOF
16091 cat confdefs.h >>conftest.$ac_ext
16092 cat >>conftest.$ac_ext <<_ACEOF
16093 /* end confdefs.h. */
16094 $ac_includes_default
16099 char *p = (char *) free;
16107 rm -f conftest.$ac_objext
16108 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
16109 (eval $ac_compile) 2>conftest.er1
16111 grep -v '^ *+' conftest.er1 >conftest.err
16113 cat conftest.err >&5
16114 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16115 (exit $ac_status); } &&
16116 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
16117 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16118 (eval $ac_try) 2>&5
16120 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16121 (exit $ac_status); }; } &&
16122 { ac_try='test -s conftest.$ac_objext'
16123 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16124 (eval $ac_try) 2>&5
16126 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16127 (exit $ac_status); }; }; then
16128 ac_cv_have_decl_free=yes
16130 echo "$as_me: failed program was:" >&5
16131 sed 's/^/| /' conftest.$ac_ext >&5
16133 ac_cv_have_decl_free=no
16136 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
16138 { echo "$as_me:$LINENO: result: $ac_cv_have_decl_free" >&5
16139 echo "${ECHO_T}$ac_cv_have_decl_free" >&6; }
16140 if test $ac_cv_have_decl_free = yes; then
16142 cat >>confdefs.h <<_ACEOF
16143 #define HAVE_DECL_FREE 1
16148 cat >>confdefs.h <<_ACEOF
16149 #define HAVE_DECL_FREE 0
16154 { echo "$as_me:$LINENO: checking whether malloc is declared" >&5
16155 echo $ECHO_N "checking whether malloc is declared... $ECHO_C" >&6; }
16156 if test "${ac_cv_have_decl_malloc+set}" = set; then
16157 echo $ECHO_N "(cached) $ECHO_C" >&6
16159 cat >conftest.$ac_ext <<_ACEOF
16162 cat confdefs.h >>conftest.$ac_ext
16163 cat >>conftest.$ac_ext <<_ACEOF
16164 /* end confdefs.h. */
16165 $ac_includes_default
16170 char *p = (char *) malloc;
16178 rm -f conftest.$ac_objext
16179 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
16180 (eval $ac_compile) 2>conftest.er1
16182 grep -v '^ *+' conftest.er1 >conftest.err
16184 cat conftest.err >&5
16185 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16186 (exit $ac_status); } &&
16187 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
16188 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16189 (eval $ac_try) 2>&5
16191 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16192 (exit $ac_status); }; } &&
16193 { ac_try='test -s conftest.$ac_objext'
16194 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16195 (eval $ac_try) 2>&5
16197 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16198 (exit $ac_status); }; }; then
16199 ac_cv_have_decl_malloc=yes
16201 echo "$as_me: failed program was:" >&5
16202 sed 's/^/| /' conftest.$ac_ext >&5
16204 ac_cv_have_decl_malloc=no
16207 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
16209 { echo "$as_me:$LINENO: result: $ac_cv_have_decl_malloc" >&5
16210 echo "${ECHO_T}$ac_cv_have_decl_malloc" >&6; }
16211 if test $ac_cv_have_decl_malloc = yes; then
16213 cat >>confdefs.h <<_ACEOF
16214 #define HAVE_DECL_MALLOC 1
16219 cat >>confdefs.h <<_ACEOF
16220 #define HAVE_DECL_MALLOC 0
16225 { echo "$as_me:$LINENO: checking whether realloc is declared" >&5
16226 echo $ECHO_N "checking whether realloc is declared... $ECHO_C" >&6; }
16227 if test "${ac_cv_have_decl_realloc+set}" = set; then
16228 echo $ECHO_N "(cached) $ECHO_C" >&6
16230 cat >conftest.$ac_ext <<_ACEOF
16233 cat confdefs.h >>conftest.$ac_ext
16234 cat >>conftest.$ac_ext <<_ACEOF
16235 /* end confdefs.h. */
16236 $ac_includes_default
16241 char *p = (char *) realloc;
16249 rm -f conftest.$ac_objext
16250 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
16251 (eval $ac_compile) 2>conftest.er1
16253 grep -v '^ *+' conftest.er1 >conftest.err
16255 cat conftest.err >&5
16256 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16257 (exit $ac_status); } &&
16258 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
16259 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16260 (eval $ac_try) 2>&5
16262 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16263 (exit $ac_status); }; } &&
16264 { ac_try='test -s conftest.$ac_objext'
16265 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16266 (eval $ac_try) 2>&5
16268 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16269 (exit $ac_status); }; }; then
16270 ac_cv_have_decl_realloc=yes
16272 echo "$as_me: failed program was:" >&5
16273 sed 's/^/| /' conftest.$ac_ext >&5
16275 ac_cv_have_decl_realloc=no
16278 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
16280 { echo "$as_me:$LINENO: result: $ac_cv_have_decl_realloc" >&5
16281 echo "${ECHO_T}$ac_cv_have_decl_realloc" >&6; }
16282 if test $ac_cv_have_decl_realloc = yes; then
16284 cat >>confdefs.h <<_ACEOF
16285 #define HAVE_DECL_REALLOC 1
16290 cat >>confdefs.h <<_ACEOF
16291 #define HAVE_DECL_REALLOC 0
16298 { echo "$as_me:$LINENO: checking whether strerror is declared" >&5
16299 echo $ECHO_N "checking whether strerror is declared... $ECHO_C" >&6; }
16300 if test "${ac_cv_have_decl_strerror+set}" = set; then
16301 echo $ECHO_N "(cached) $ECHO_C" >&6
16303 cat >conftest.$ac_ext <<_ACEOF
16306 cat confdefs.h >>conftest.$ac_ext
16307 cat >>conftest.$ac_ext <<_ACEOF
16308 /* end confdefs.h. */
16309 $ac_includes_default
16314 char *p = (char *) strerror;
16322 rm -f conftest.$ac_objext
16323 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
16324 (eval $ac_compile) 2>conftest.er1
16326 grep -v '^ *+' conftest.er1 >conftest.err
16328 cat conftest.err >&5
16329 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16330 (exit $ac_status); } &&
16331 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
16332 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16333 (eval $ac_try) 2>&5
16335 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16336 (exit $ac_status); }; } &&
16337 { ac_try='test -s conftest.$ac_objext'
16338 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16339 (eval $ac_try) 2>&5
16341 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16342 (exit $ac_status); }; }; then
16343 ac_cv_have_decl_strerror=yes
16345 echo "$as_me: failed program was:" >&5
16346 sed 's/^/| /' conftest.$ac_ext >&5
16348 ac_cv_have_decl_strerror=no
16351 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
16353 { echo "$as_me:$LINENO: result: $ac_cv_have_decl_strerror" >&5
16354 echo "${ECHO_T}$ac_cv_have_decl_strerror" >&6; }
16355 if test $ac_cv_have_decl_strerror = yes; then
16357 cat >>confdefs.h <<_ACEOF
16358 #define HAVE_DECL_STRERROR 1
16363 cat >>confdefs.h <<_ACEOF
16364 #define HAVE_DECL_STRERROR 0
16369 { echo "$as_me:$LINENO: checking whether strstr is declared" >&5
16370 echo $ECHO_N "checking whether strstr is declared... $ECHO_C" >&6; }
16371 if test "${ac_cv_have_decl_strstr+set}" = set; then
16372 echo $ECHO_N "(cached) $ECHO_C" >&6
16374 cat >conftest.$ac_ext <<_ACEOF
16377 cat confdefs.h >>conftest.$ac_ext
16378 cat >>conftest.$ac_ext <<_ACEOF
16379 /* end confdefs.h. */
16380 $ac_includes_default
16385 char *p = (char *) strstr;
16393 rm -f conftest.$ac_objext
16394 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
16395 (eval $ac_compile) 2>conftest.er1
16397 grep -v '^ *+' conftest.er1 >conftest.err
16399 cat conftest.err >&5
16400 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16401 (exit $ac_status); } &&
16402 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
16403 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16404 (eval $ac_try) 2>&5
16406 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16407 (exit $ac_status); }; } &&
16408 { ac_try='test -s conftest.$ac_objext'
16409 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16410 (eval $ac_try) 2>&5
16412 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16413 (exit $ac_status); }; }; then
16414 ac_cv_have_decl_strstr=yes
16416 echo "$as_me: failed program was:" >&5
16417 sed 's/^/| /' conftest.$ac_ext >&5
16419 ac_cv_have_decl_strstr=no
16422 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
16424 { echo "$as_me:$LINENO: result: $ac_cv_have_decl_strstr" >&5
16425 echo "${ECHO_T}$ac_cv_have_decl_strstr" >&6; }
16426 if test $ac_cv_have_decl_strstr = yes; then
16428 cat >>confdefs.h <<_ACEOF
16429 #define HAVE_DECL_STRSTR 1
16434 cat >>confdefs.h <<_ACEOF
16435 #define HAVE_DECL_STRSTR 0
16442 { echo "$as_me:$LINENO: checking whether getopt is declared" >&5
16443 echo $ECHO_N "checking whether getopt is declared... $ECHO_C" >&6; }
16444 if test "${ac_cv_have_decl_getopt+set}" = set; then
16445 echo $ECHO_N "(cached) $ECHO_C" >&6
16447 cat >conftest.$ac_ext <<_ACEOF
16450 cat confdefs.h >>conftest.$ac_ext
16451 cat >>conftest.$ac_ext <<_ACEOF
16452 /* end confdefs.h. */
16453 $ac_includes_default
16458 char *p = (char *) getopt;
16466 rm -f conftest.$ac_objext
16467 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
16468 (eval $ac_compile) 2>conftest.er1
16470 grep -v '^ *+' conftest.er1 >conftest.err
16472 cat conftest.err >&5
16473 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16474 (exit $ac_status); } &&
16475 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
16476 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16477 (eval $ac_try) 2>&5
16479 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16480 (exit $ac_status); }; } &&
16481 { ac_try='test -s conftest.$ac_objext'
16482 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16483 (eval $ac_try) 2>&5
16485 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16486 (exit $ac_status); }; }; then
16487 ac_cv_have_decl_getopt=yes
16489 echo "$as_me: failed program was:" >&5
16490 sed 's/^/| /' conftest.$ac_ext >&5
16492 ac_cv_have_decl_getopt=no
16495 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
16497 { echo "$as_me:$LINENO: result: $ac_cv_have_decl_getopt" >&5
16498 echo "${ECHO_T}$ac_cv_have_decl_getopt" >&6; }
16499 if test $ac_cv_have_decl_getopt = yes; then
16501 cat >>confdefs.h <<_ACEOF
16502 #define HAVE_DECL_GETOPT 1
16507 cat >>confdefs.h <<_ACEOF
16508 #define HAVE_DECL_GETOPT 0
16513 { echo "$as_me:$LINENO: checking whether snprintf is declared" >&5
16514 echo $ECHO_N "checking whether snprintf is declared... $ECHO_C" >&6; }
16515 if test "${ac_cv_have_decl_snprintf+set}" = set; then
16516 echo $ECHO_N "(cached) $ECHO_C" >&6
16518 cat >conftest.$ac_ext <<_ACEOF
16521 cat confdefs.h >>conftest.$ac_ext
16522 cat >>conftest.$ac_ext <<_ACEOF
16523 /* end confdefs.h. */
16524 $ac_includes_default
16529 char *p = (char *) snprintf;
16537 rm -f conftest.$ac_objext
16538 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
16539 (eval $ac_compile) 2>conftest.er1
16541 grep -v '^ *+' conftest.er1 >conftest.err
16543 cat conftest.err >&5
16544 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16545 (exit $ac_status); } &&
16546 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
16547 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16548 (eval $ac_try) 2>&5
16550 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16551 (exit $ac_status); }; } &&
16552 { ac_try='test -s conftest.$ac_objext'
16553 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16554 (eval $ac_try) 2>&5
16556 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16557 (exit $ac_status); }; }; then
16558 ac_cv_have_decl_snprintf=yes
16560 echo "$as_me: failed program was:" >&5
16561 sed 's/^/| /' conftest.$ac_ext >&5
16563 ac_cv_have_decl_snprintf=no
16566 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
16568 { echo "$as_me:$LINENO: result: $ac_cv_have_decl_snprintf" >&5
16569 echo "${ECHO_T}$ac_cv_have_decl_snprintf" >&6; }
16570 if test $ac_cv_have_decl_snprintf = yes; then
16572 cat >>confdefs.h <<_ACEOF
16573 #define HAVE_DECL_SNPRINTF 1
16578 cat >>confdefs.h <<_ACEOF
16579 #define HAVE_DECL_SNPRINTF 0
16584 { echo "$as_me:$LINENO: checking whether vsnprintf is declared" >&5
16585 echo $ECHO_N "checking whether vsnprintf is declared... $ECHO_C" >&6; }
16586 if test "${ac_cv_have_decl_vsnprintf+set}" = set; then
16587 echo $ECHO_N "(cached) $ECHO_C" >&6
16589 cat >conftest.$ac_ext <<_ACEOF
16592 cat confdefs.h >>conftest.$ac_ext
16593 cat >>conftest.$ac_ext <<_ACEOF
16594 /* end confdefs.h. */
16595 $ac_includes_default
16600 char *p = (char *) vsnprintf;
16608 rm -f conftest.$ac_objext
16609 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
16610 (eval $ac_compile) 2>conftest.er1
16612 grep -v '^ *+' conftest.er1 >conftest.err
16614 cat conftest.err >&5
16615 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16616 (exit $ac_status); } &&
16617 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
16618 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16619 (eval $ac_try) 2>&5
16621 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16622 (exit $ac_status); }; } &&
16623 { ac_try='test -s conftest.$ac_objext'
16624 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16625 (eval $ac_try) 2>&5
16627 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16628 (exit $ac_status); }; }; then
16629 ac_cv_have_decl_vsnprintf=yes
16631 echo "$as_me: failed program was:" >&5
16632 sed 's/^/| /' conftest.$ac_ext >&5
16634 ac_cv_have_decl_vsnprintf=no
16637 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
16639 { echo "$as_me:$LINENO: result: $ac_cv_have_decl_vsnprintf" >&5
16640 echo "${ECHO_T}$ac_cv_have_decl_vsnprintf" >&6; }
16641 if test $ac_cv_have_decl_vsnprintf = yes; then
16643 cat >>confdefs.h <<_ACEOF
16644 #define HAVE_DECL_VSNPRINTF 1
16649 cat >>confdefs.h <<_ACEOF
16650 #define HAVE_DECL_VSNPRINTF 0
16658 # ----------------------- #
16659 # Checks for structures. #
16660 # ----------------------- #
16662 { echo "$as_me:$LINENO: checking for struct stat.st_blocks" >&5
16663 echo $ECHO_N "checking for struct stat.st_blocks... $ECHO_C" >&6; }
16664 if test "${ac_cv_member_struct_stat_st_blocks+set}" = set; then
16665 echo $ECHO_N "(cached) $ECHO_C" >&6
16667 cat >conftest.$ac_ext <<_ACEOF
16670 cat confdefs.h >>conftest.$ac_ext
16671 cat >>conftest.$ac_ext <<_ACEOF
16672 /* end confdefs.h. */
16673 $ac_includes_default
16677 static struct stat ac_aggr;
16678 if (ac_aggr.st_blocks)
16684 rm -f conftest.$ac_objext
16685 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
16686 (eval $ac_compile) 2>conftest.er1
16688 grep -v '^ *+' conftest.er1 >conftest.err
16690 cat conftest.err >&5
16691 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16692 (exit $ac_status); } &&
16693 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
16694 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16695 (eval $ac_try) 2>&5
16697 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16698 (exit $ac_status); }; } &&
16699 { ac_try='test -s conftest.$ac_objext'
16700 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16701 (eval $ac_try) 2>&5
16703 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16704 (exit $ac_status); }; }; then
16705 ac_cv_member_struct_stat_st_blocks=yes
16707 echo "$as_me: failed program was:" >&5
16708 sed 's/^/| /' conftest.$ac_ext >&5
16710 cat >conftest.$ac_ext <<_ACEOF
16713 cat confdefs.h >>conftest.$ac_ext
16714 cat >>conftest.$ac_ext <<_ACEOF
16715 /* end confdefs.h. */
16716 $ac_includes_default
16720 static struct stat ac_aggr;
16721 if (sizeof ac_aggr.st_blocks)
16727 rm -f conftest.$ac_objext
16728 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
16729 (eval $ac_compile) 2>conftest.er1
16731 grep -v '^ *+' conftest.er1 >conftest.err
16733 cat conftest.err >&5
16734 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16735 (exit $ac_status); } &&
16736 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
16737 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16738 (eval $ac_try) 2>&5
16740 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16741 (exit $ac_status); }; } &&
16742 { ac_try='test -s conftest.$ac_objext'
16743 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16744 (eval $ac_try) 2>&5
16746 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16747 (exit $ac_status); }; }; then
16748 ac_cv_member_struct_stat_st_blocks=yes
16750 echo "$as_me: failed program was:" >&5
16751 sed 's/^/| /' conftest.$ac_ext >&5
16753 ac_cv_member_struct_stat_st_blocks=no
16756 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
16759 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
16761 { echo "$as_me:$LINENO: result: $ac_cv_member_struct_stat_st_blocks" >&5
16762 echo "${ECHO_T}$ac_cv_member_struct_stat_st_blocks" >&6; }
16763 if test $ac_cv_member_struct_stat_st_blocks = yes; then
16765 cat >>confdefs.h <<_ACEOF
16766 #define HAVE_STRUCT_STAT_ST_BLOCKS 1
16772 { echo "$as_me:$LINENO: checking for struct stat.st_blksize" >&5
16773 echo $ECHO_N "checking for struct stat.st_blksize... $ECHO_C" >&6; }
16774 if test "${ac_cv_member_struct_stat_st_blksize+set}" = set; then
16775 echo $ECHO_N "(cached) $ECHO_C" >&6
16777 cat >conftest.$ac_ext <<_ACEOF
16780 cat confdefs.h >>conftest.$ac_ext
16781 cat >>conftest.$ac_ext <<_ACEOF
16782 /* end confdefs.h. */
16783 $ac_includes_default
16787 static struct stat ac_aggr;
16788 if (ac_aggr.st_blksize)
16794 rm -f conftest.$ac_objext
16795 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
16796 (eval $ac_compile) 2>conftest.er1
16798 grep -v '^ *+' conftest.er1 >conftest.err
16800 cat conftest.err >&5
16801 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16802 (exit $ac_status); } &&
16803 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
16804 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16805 (eval $ac_try) 2>&5
16807 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16808 (exit $ac_status); }; } &&
16809 { ac_try='test -s conftest.$ac_objext'
16810 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16811 (eval $ac_try) 2>&5
16813 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16814 (exit $ac_status); }; }; then
16815 ac_cv_member_struct_stat_st_blksize=yes
16817 echo "$as_me: failed program was:" >&5
16818 sed 's/^/| /' conftest.$ac_ext >&5
16820 cat >conftest.$ac_ext <<_ACEOF
16823 cat confdefs.h >>conftest.$ac_ext
16824 cat >>conftest.$ac_ext <<_ACEOF
16825 /* end confdefs.h. */
16826 $ac_includes_default
16830 static struct stat ac_aggr;
16831 if (sizeof ac_aggr.st_blksize)
16837 rm -f conftest.$ac_objext
16838 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
16839 (eval $ac_compile) 2>conftest.er1
16841 grep -v '^ *+' conftest.er1 >conftest.err
16843 cat conftest.err >&5
16844 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16845 (exit $ac_status); } &&
16846 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
16847 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16848 (eval $ac_try) 2>&5
16850 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16851 (exit $ac_status); }; } &&
16852 { ac_try='test -s conftest.$ac_objext'
16853 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16854 (eval $ac_try) 2>&5
16856 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16857 (exit $ac_status); }; }; then
16858 ac_cv_member_struct_stat_st_blksize=yes
16860 echo "$as_me: failed program was:" >&5
16861 sed 's/^/| /' conftest.$ac_ext >&5
16863 ac_cv_member_struct_stat_st_blksize=no
16866 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
16869 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
16871 { echo "$as_me:$LINENO: result: $ac_cv_member_struct_stat_st_blksize" >&5
16872 echo "${ECHO_T}$ac_cv_member_struct_stat_st_blksize" >&6; }
16873 if test $ac_cv_member_struct_stat_st_blksize = yes; then
16875 cat >>confdefs.h <<_ACEOF
16876 #define HAVE_STRUCT_STAT_ST_BLKSIZE 1
16883 # ------------------ #
16884 # Checks for types. #
16885 # ------------------ #
16887 { echo "$as_me:$LINENO: checking return type of signal handlers" >&5
16888 echo $ECHO_N "checking return type of signal handlers... $ECHO_C" >&6; }
16889 if test "${ac_cv_type_signal+set}" = set; then
16890 echo $ECHO_N "(cached) $ECHO_C" >&6
16892 cat >conftest.$ac_ext <<_ACEOF
16895 cat confdefs.h >>conftest.$ac_ext
16896 cat >>conftest.$ac_ext <<_ACEOF
16897 /* end confdefs.h. */
16898 #include <sys/types.h>
16899 #include <signal.h>
16904 return *(signal (0, 0)) (0) == 1;
16909 rm -f conftest.$ac_objext
16910 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
16911 (eval $ac_compile) 2>conftest.er1
16913 grep -v '^ *+' conftest.er1 >conftest.err
16915 cat conftest.err >&5
16916 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16917 (exit $ac_status); } &&
16918 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
16919 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16920 (eval $ac_try) 2>&5
16922 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16923 (exit $ac_status); }; } &&
16924 { ac_try='test -s conftest.$ac_objext'
16925 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16926 (eval $ac_try) 2>&5
16928 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16929 (exit $ac_status); }; }; then
16930 ac_cv_type_signal=int
16932 echo "$as_me: failed program was:" >&5
16933 sed 's/^/| /' conftest.$ac_ext >&5
16935 ac_cv_type_signal=void
16938 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
16940 { echo "$as_me:$LINENO: result: $ac_cv_type_signal" >&5
16941 echo "${ECHO_T}$ac_cv_type_signal" >&6; }
16943 cat >>confdefs.h <<_ACEOF
16944 #define RETSIGTYPE $ac_cv_type_signal
16948 { echo "$as_me:$LINENO: checking for socklen_t" >&5
16949 echo $ECHO_N "checking for socklen_t... $ECHO_C" >&6; }
16950 if test "${ac_cv_type_socklen_t+set}" = set; then
16951 echo $ECHO_N "(cached) $ECHO_C" >&6
16953 cat >conftest.$ac_ext <<_ACEOF
16956 cat confdefs.h >>conftest.$ac_ext
16957 cat >>conftest.$ac_ext <<_ACEOF
16958 /* end confdefs.h. */
16959 #include <sys/types.h>
16960 #include <sys/socket.h>
16963 typedef socklen_t ac__type_new_;
16967 if ((ac__type_new_ *) 0)
16969 if (sizeof (ac__type_new_))
16975 rm -f conftest.$ac_objext
16976 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
16977 (eval $ac_compile) 2>conftest.er1
16979 grep -v '^ *+' conftest.er1 >conftest.err
16981 cat conftest.err >&5
16982 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16983 (exit $ac_status); } &&
16984 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
16985 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16986 (eval $ac_try) 2>&5
16988 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16989 (exit $ac_status); }; } &&
16990 { ac_try='test -s conftest.$ac_objext'
16991 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16992 (eval $ac_try) 2>&5
16994 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16995 (exit $ac_status); }; }; then
16996 ac_cv_type_socklen_t=yes
16998 echo "$as_me: failed program was:" >&5
16999 sed 's/^/| /' conftest.$ac_ext >&5
17001 ac_cv_type_socklen_t=no
17004 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
17006 { echo "$as_me:$LINENO: result: $ac_cv_type_socklen_t" >&5
17007 echo "${ECHO_T}$ac_cv_type_socklen_t" >&6; }
17008 if test $ac_cv_type_socklen_t = yes; then
17010 cat >>confdefs.h <<_ACEOF
17011 #define HAVE_SOCKLEN_T 1
17017 { echo "$as_me:$LINENO: checking for uintptr_t" >&5
17018 echo $ECHO_N "checking for uintptr_t... $ECHO_C" >&6; }
17019 if test "${ac_cv_type_uintptr_t+set}" = set; then
17020 echo $ECHO_N "(cached) $ECHO_C" >&6
17022 cat >conftest.$ac_ext <<_ACEOF
17025 cat confdefs.h >>conftest.$ac_ext
17026 cat >>conftest.$ac_ext <<_ACEOF
17027 /* end confdefs.h. */
17028 #include <stdint.h>
17030 typedef uintptr_t ac__type_new_;
17034 if ((ac__type_new_ *) 0)
17036 if (sizeof (ac__type_new_))
17042 rm -f conftest.$ac_objext
17043 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
17044 (eval $ac_compile) 2>conftest.er1
17046 grep -v '^ *+' conftest.er1 >conftest.err
17048 cat conftest.err >&5
17049 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17050 (exit $ac_status); } &&
17051 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
17052 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17053 (eval $ac_try) 2>&5
17055 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17056 (exit $ac_status); }; } &&
17057 { ac_try='test -s conftest.$ac_objext'
17058 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17059 (eval $ac_try) 2>&5
17061 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17062 (exit $ac_status); }; }; then
17063 ac_cv_type_uintptr_t=yes
17065 echo "$as_me: failed program was:" >&5
17066 sed 's/^/| /' conftest.$ac_ext >&5
17068 ac_cv_type_uintptr_t=no
17071 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
17073 { echo "$as_me:$LINENO: result: $ac_cv_type_uintptr_t" >&5
17074 echo "${ECHO_T}$ac_cv_type_uintptr_t" >&6; }
17075 if test $ac_cv_type_uintptr_t = yes; then
17077 cat >>confdefs.h <<_ACEOF
17078 #define HAVE_UINTPTR_T 1
17085 # ------------------------------------- #
17086 # Checks for compiler characteristics. #
17087 # ------------------------------------- #
17089 { echo "$as_me:$LINENO: checking for an ANSI C-conforming const" >&5
17090 echo $ECHO_N "checking for an ANSI C-conforming const... $ECHO_C" >&6; }
17091 if test "${ac_cv_c_const+set}" = set; then
17092 echo $ECHO_N "(cached) $ECHO_C" >&6
17094 cat >conftest.$ac_ext <<_ACEOF
17097 cat confdefs.h >>conftest.$ac_ext
17098 cat >>conftest.$ac_ext <<_ACEOF
17099 /* end confdefs.h. */
17104 /* FIXME: Include the comments suggested by Paul. */
17105 #ifndef __cplusplus
17106 /* Ultrix mips cc rejects this. */
17107 typedef int charset[2];
17109 /* SunOS 4.1.1 cc rejects this. */
17110 char const *const *ccp;
17112 /* NEC SVR4.0.2 mips cc rejects this. */
17113 struct point {int x, y;};
17114 static struct point const zero = {0,0};
17115 /* AIX XL C 1.02.0.0 rejects this.
17116 It does not let you subtract one const X* pointer from another in
17117 an arm of an if-expression whose if-part is not a constant
17119 const char *g = "string";
17120 ccp = &g + (g ? g-g : 0);
17121 /* HPUX 7.0 cc rejects these. */
17124 ccp = (char const *const *) p;
17125 { /* SCO 3.2v4 cc rejects this. */
17127 char const *s = 0 ? (char *) 0 : (char const *) 0;
17132 { /* Someone thinks the Sun supposedly-ANSI compiler will reject this. */
17133 int x[] = {25, 17};
17134 const int *foo = &x[0];
17137 { /* Sun SC1.0 ANSI compiler rejects this -- but not the above. */
17138 typedef const int *iptr;
17142 { /* AIX XL C 1.02.0.0 rejects this saying
17143 "k.c", line 2.27: 1506-025 (S) Operand must be a modifiable lvalue. */
17144 struct s { int j; const int *ap[3]; };
17145 struct s *b; b->j = 5;
17147 { /* ULTRIX-32 V3.1 (Rev 9) vcc rejects this */
17148 const int foo = 10;
17149 if (!foo) return 0;
17151 return !x[0] && !zero.x;
17158 rm -f conftest.$ac_objext
17159 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
17160 (eval $ac_compile) 2>conftest.er1
17162 grep -v '^ *+' conftest.er1 >conftest.err
17164 cat conftest.err >&5
17165 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17166 (exit $ac_status); } &&
17167 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
17168 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17169 (eval $ac_try) 2>&5
17171 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17172 (exit $ac_status); }; } &&
17173 { ac_try='test -s conftest.$ac_objext'
17174 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17175 (eval $ac_try) 2>&5
17177 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17178 (exit $ac_status); }; }; then
17181 echo "$as_me: failed program was:" >&5
17182 sed 's/^/| /' conftest.$ac_ext >&5
17187 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
17189 { echo "$as_me:$LINENO: result: $ac_cv_c_const" >&5
17190 echo "${ECHO_T}$ac_cv_c_const" >&6; }
17191 if test $ac_cv_c_const = no; then
17193 cat >>confdefs.h <<\_ACEOF
17199 { echo "$as_me:$LINENO: checking for inline" >&5
17200 echo $ECHO_N "checking for inline... $ECHO_C" >&6; }
17201 if test "${ac_cv_c_inline+set}" = set; then
17202 echo $ECHO_N "(cached) $ECHO_C" >&6
17205 for ac_kw in inline __inline__ __inline; do
17206 cat >conftest.$ac_ext <<_ACEOF
17209 cat confdefs.h >>conftest.$ac_ext
17210 cat >>conftest.$ac_ext <<_ACEOF
17211 /* end confdefs.h. */
17212 #ifndef __cplusplus
17214 static $ac_kw foo_t static_foo () {return 0; }
17215 $ac_kw foo_t foo () {return 0; }
17219 rm -f conftest.$ac_objext
17220 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
17221 (eval $ac_compile) 2>conftest.er1
17223 grep -v '^ *+' conftest.er1 >conftest.err
17225 cat conftest.err >&5
17226 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17227 (exit $ac_status); } &&
17228 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
17229 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17230 (eval $ac_try) 2>&5
17232 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17233 (exit $ac_status); }; } &&
17234 { ac_try='test -s conftest.$ac_objext'
17235 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17236 (eval $ac_try) 2>&5
17238 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17239 (exit $ac_status); }; }; then
17240 ac_cv_c_inline=$ac_kw
17242 echo "$as_me: failed program was:" >&5
17243 sed 's/^/| /' conftest.$ac_ext >&5
17248 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
17249 test "$ac_cv_c_inline" != no && break
17253 { echo "$as_me:$LINENO: result: $ac_cv_c_inline" >&5
17254 echo "${ECHO_T}$ac_cv_c_inline" >&6; }
17257 case $ac_cv_c_inline in
17260 case $ac_cv_c_inline in
17262 *) ac_val=$ac_cv_c_inline;;
17264 cat >>confdefs.h <<_ACEOF
17265 #ifndef __cplusplus
17266 #define inline $ac_val
17273 # ------------------------------ #
17274 # Checks for library functions. #
17275 # ------------------------------ #
17277 # The Ultrix 4.2 mips builtin alloca declared by alloca.h only works
17278 # for constant arguments. Useless!
17279 { echo "$as_me:$LINENO: checking for working alloca.h" >&5
17280 echo $ECHO_N "checking for working alloca.h... $ECHO_C" >&6; }
17281 if test "${ac_cv_working_alloca_h+set}" = set; then
17282 echo $ECHO_N "(cached) $ECHO_C" >&6
17284 cat >conftest.$ac_ext <<_ACEOF
17287 cat confdefs.h >>conftest.$ac_ext
17288 cat >>conftest.$ac_ext <<_ACEOF
17289 /* end confdefs.h. */
17290 #include <alloca.h>
17294 char *p = (char *) alloca (2 * sizeof (int));
17299 rm -f conftest.$ac_objext conftest$ac_exeext
17300 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
17301 (eval $ac_link) 2>conftest.er1
17303 grep -v '^ *+' conftest.er1 >conftest.err
17305 cat conftest.err >&5
17306 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17307 (exit $ac_status); } &&
17308 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
17309 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17310 (eval $ac_try) 2>&5
17312 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17313 (exit $ac_status); }; } &&
17314 { ac_try='test -s conftest$ac_exeext'
17315 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17316 (eval $ac_try) 2>&5
17318 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17319 (exit $ac_status); }; }; then
17320 ac_cv_working_alloca_h=yes
17322 echo "$as_me: failed program was:" >&5
17323 sed 's/^/| /' conftest.$ac_ext >&5
17325 ac_cv_working_alloca_h=no
17328 rm -f conftest.err conftest.$ac_objext \
17329 conftest$ac_exeext conftest.$ac_ext
17331 { echo "$as_me:$LINENO: result: $ac_cv_working_alloca_h" >&5
17332 echo "${ECHO_T}$ac_cv_working_alloca_h" >&6; }
17333 if test $ac_cv_working_alloca_h = yes; then
17335 cat >>confdefs.h <<\_ACEOF
17336 #define HAVE_ALLOCA_H 1
17341 { echo "$as_me:$LINENO: checking for alloca" >&5
17342 echo $ECHO_N "checking for alloca... $ECHO_C" >&6; }
17343 if test "${ac_cv_func_alloca_works+set}" = set; then
17344 echo $ECHO_N "(cached) $ECHO_C" >&6
17346 cat >conftest.$ac_ext <<_ACEOF
17349 cat confdefs.h >>conftest.$ac_ext
17350 cat >>conftest.$ac_ext <<_ACEOF
17351 /* end confdefs.h. */
17353 # define alloca __builtin_alloca
17356 # include <malloc.h>
17357 # define alloca _alloca
17360 # include <alloca.h>
17365 # ifndef alloca /* predefined by HP cc +Olibcalls */
17376 char *p = (char *) alloca (1);
17381 rm -f conftest.$ac_objext conftest$ac_exeext
17382 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
17383 (eval $ac_link) 2>conftest.er1
17385 grep -v '^ *+' conftest.er1 >conftest.err
17387 cat conftest.err >&5
17388 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17389 (exit $ac_status); } &&
17390 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
17391 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17392 (eval $ac_try) 2>&5
17394 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17395 (exit $ac_status); }; } &&
17396 { ac_try='test -s conftest$ac_exeext'
17397 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17398 (eval $ac_try) 2>&5
17400 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17401 (exit $ac_status); }; }; then
17402 ac_cv_func_alloca_works=yes
17404 echo "$as_me: failed program was:" >&5
17405 sed 's/^/| /' conftest.$ac_ext >&5
17407 ac_cv_func_alloca_works=no
17410 rm -f conftest.err conftest.$ac_objext \
17411 conftest$ac_exeext conftest.$ac_ext
17413 { echo "$as_me:$LINENO: result: $ac_cv_func_alloca_works" >&5
17414 echo "${ECHO_T}$ac_cv_func_alloca_works" >&6; }
17416 if test $ac_cv_func_alloca_works = yes; then
17418 cat >>confdefs.h <<\_ACEOF
17419 #define HAVE_ALLOCA 1
17423 # The SVR3 libPW and SVR4 libucb both contain incompatible functions
17424 # that cause trouble. Some versions do not even contain alloca or
17425 # contain a buggy version. If you still want to use their alloca,
17426 # use ar to extract alloca.o from them instead of compiling alloca.c.
17428 ALLOCA=\${LIBOBJDIR}alloca.$ac_objext
17430 cat >>confdefs.h <<\_ACEOF
17435 { echo "$as_me:$LINENO: checking whether \`alloca.c' needs Cray hooks" >&5
17436 echo $ECHO_N "checking whether \`alloca.c' needs Cray hooks... $ECHO_C" >&6; }
17437 if test "${ac_cv_os_cray+set}" = set; then
17438 echo $ECHO_N "(cached) $ECHO_C" >&6
17440 cat >conftest.$ac_ext <<_ACEOF
17443 cat confdefs.h >>conftest.$ac_ext
17444 cat >>conftest.$ac_ext <<_ACEOF
17445 /* end confdefs.h. */
17446 #if defined CRAY && ! defined CRAY2
17453 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
17454 $EGREP "webecray" >/dev/null 2>&1; then
17462 { echo "$as_me:$LINENO: result: $ac_cv_os_cray" >&5
17463 echo "${ECHO_T}$ac_cv_os_cray" >&6; }
17464 if test $ac_cv_os_cray = yes; then
17465 for ac_func in _getb67 GETB67 getb67; do
17466 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
17467 { echo "$as_me:$LINENO: checking for $ac_func" >&5
17468 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
17469 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
17470 echo $ECHO_N "(cached) $ECHO_C" >&6
17472 cat >conftest.$ac_ext <<_ACEOF
17475 cat confdefs.h >>conftest.$ac_ext
17476 cat >>conftest.$ac_ext <<_ACEOF
17477 /* end confdefs.h. */
17478 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
17479 For example, HP-UX 11i <limits.h> declares gettimeofday. */
17480 #define $ac_func innocuous_$ac_func
17482 /* System header to define __stub macros and hopefully few prototypes,
17483 which can conflict with char $ac_func (); below.
17484 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
17485 <limits.h> exists even on freestanding compilers. */
17488 # include <limits.h>
17490 # include <assert.h>
17495 /* Override any GCC internal prototype to avoid an error.
17496 Use char because int might match the return type of a GCC
17497 builtin and then its argument prototype would still apply. */
17502 /* The GNU C library defines this for functions which it implements
17503 to always fail with ENOSYS. Some functions are actually named
17504 something starting with __ and the normal name is an alias. */
17505 #if defined __stub_$ac_func || defined __stub___$ac_func
17512 return $ac_func ();
17517 rm -f conftest.$ac_objext conftest$ac_exeext
17518 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
17519 (eval $ac_link) 2>conftest.er1
17521 grep -v '^ *+' conftest.er1 >conftest.err
17523 cat conftest.err >&5
17524 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17525 (exit $ac_status); } &&
17526 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
17527 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17528 (eval $ac_try) 2>&5
17530 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17531 (exit $ac_status); }; } &&
17532 { ac_try='test -s conftest$ac_exeext'
17533 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17534 (eval $ac_try) 2>&5
17536 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17537 (exit $ac_status); }; }; then
17538 eval "$as_ac_var=yes"
17540 echo "$as_me: failed program was:" >&5
17541 sed 's/^/| /' conftest.$ac_ext >&5
17543 eval "$as_ac_var=no"
17546 rm -f conftest.err conftest.$ac_objext \
17547 conftest$ac_exeext conftest.$ac_ext
17549 ac_res=`eval echo '${'$as_ac_var'}'`
17550 { echo "$as_me:$LINENO: result: $ac_res" >&5
17551 echo "${ECHO_T}$ac_res" >&6; }
17552 if test `eval echo '${'$as_ac_var'}'` = yes; then
17554 cat >>confdefs.h <<_ACEOF
17555 #define CRAY_STACKSEG_END $ac_func
17564 { echo "$as_me:$LINENO: checking stack direction for C alloca" >&5
17565 echo $ECHO_N "checking stack direction for C alloca... $ECHO_C" >&6; }
17566 if test "${ac_cv_c_stack_direction+set}" = set; then
17567 echo $ECHO_N "(cached) $ECHO_C" >&6
17569 if test "$cross_compiling" = yes; then
17570 ac_cv_c_stack_direction=0
17572 cat >conftest.$ac_ext <<_ACEOF
17575 cat confdefs.h >>conftest.$ac_ext
17576 cat >>conftest.$ac_ext <<_ACEOF
17577 /* end confdefs.h. */
17578 $ac_includes_default
17580 find_stack_direction ()
17582 static char *addr = 0;
17587 return find_stack_direction ();
17590 return (&dummy > addr) ? 1 : -1;
17596 return find_stack_direction () < 0;
17599 rm -f conftest$ac_exeext
17600 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
17601 (eval $ac_link) 2>&5
17603 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17604 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
17605 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17606 (eval $ac_try) 2>&5
17608 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17609 (exit $ac_status); }; }; then
17610 ac_cv_c_stack_direction=1
17612 echo "$as_me: program exited with status $ac_status" >&5
17613 echo "$as_me: failed program was:" >&5
17614 sed 's/^/| /' conftest.$ac_ext >&5
17616 ( exit $ac_status )
17617 ac_cv_c_stack_direction=-1
17619 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
17624 { echo "$as_me:$LINENO: result: $ac_cv_c_stack_direction" >&5
17625 echo "${ECHO_T}$ac_cv_c_stack_direction" >&6; }
17627 cat >>confdefs.h <<_ACEOF
17628 #define STACK_DIRECTION $ac_cv_c_stack_direction
17636 for ac_header in stdlib.h unistd.h
17638 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
17639 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
17640 { echo "$as_me:$LINENO: checking for $ac_header" >&5
17641 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
17642 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
17643 echo $ECHO_N "(cached) $ECHO_C" >&6
17645 ac_res=`eval echo '${'$as_ac_Header'}'`
17646 { echo "$as_me:$LINENO: result: $ac_res" >&5
17647 echo "${ECHO_T}$ac_res" >&6; }
17649 # Is the header compilable?
17650 { echo "$as_me:$LINENO: checking $ac_header usability" >&5
17651 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
17652 cat >conftest.$ac_ext <<_ACEOF
17655 cat confdefs.h >>conftest.$ac_ext
17656 cat >>conftest.$ac_ext <<_ACEOF
17657 /* end confdefs.h. */
17658 $ac_includes_default
17659 #include <$ac_header>
17661 rm -f conftest.$ac_objext
17662 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
17663 (eval $ac_compile) 2>conftest.er1
17665 grep -v '^ *+' conftest.er1 >conftest.err
17667 cat conftest.err >&5
17668 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17669 (exit $ac_status); } &&
17670 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
17671 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17672 (eval $ac_try) 2>&5
17674 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17675 (exit $ac_status); }; } &&
17676 { ac_try='test -s conftest.$ac_objext'
17677 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17678 (eval $ac_try) 2>&5
17680 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17681 (exit $ac_status); }; }; then
17682 ac_header_compiler=yes
17684 echo "$as_me: failed program was:" >&5
17685 sed 's/^/| /' conftest.$ac_ext >&5
17687 ac_header_compiler=no
17690 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
17691 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
17692 echo "${ECHO_T}$ac_header_compiler" >&6; }
17694 # Is the header present?
17695 { echo "$as_me:$LINENO: checking $ac_header presence" >&5
17696 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
17697 cat >conftest.$ac_ext <<_ACEOF
17700 cat confdefs.h >>conftest.$ac_ext
17701 cat >>conftest.$ac_ext <<_ACEOF
17702 /* end confdefs.h. */
17703 #include <$ac_header>
17705 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
17706 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
17708 grep -v '^ *+' conftest.er1 >conftest.err
17710 cat conftest.err >&5
17711 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17712 (exit $ac_status); } >/dev/null; then
17713 if test -s conftest.err; then
17714 ac_cpp_err=$ac_c_preproc_warn_flag
17715 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
17722 if test -z "$ac_cpp_err"; then
17723 ac_header_preproc=yes
17725 echo "$as_me: failed program was:" >&5
17726 sed 's/^/| /' conftest.$ac_ext >&5
17728 ac_header_preproc=no
17731 rm -f conftest.err conftest.$ac_ext
17732 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
17733 echo "${ECHO_T}$ac_header_preproc" >&6; }
17735 # So? What about this header?
17736 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
17738 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
17739 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
17740 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
17741 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
17742 ac_header_preproc=yes
17745 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
17746 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
17747 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
17748 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
17749 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
17750 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
17751 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
17752 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
17753 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
17754 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
17755 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
17756 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
17760 { echo "$as_me:$LINENO: checking for $ac_header" >&5
17761 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
17762 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
17763 echo $ECHO_N "(cached) $ECHO_C" >&6
17765 eval "$as_ac_Header=\$ac_header_preproc"
17767 ac_res=`eval echo '${'$as_ac_Header'}'`
17768 { echo "$as_me:$LINENO: result: $ac_res" >&5
17769 echo "${ECHO_T}$ac_res" >&6; }
17772 if test `eval echo '${'$as_ac_Header'}'` = yes; then
17773 cat >>confdefs.h <<_ACEOF
17774 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
17782 for ac_func in getpagesize
17784 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
17785 { echo "$as_me:$LINENO: checking for $ac_func" >&5
17786 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
17787 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
17788 echo $ECHO_N "(cached) $ECHO_C" >&6
17790 cat >conftest.$ac_ext <<_ACEOF
17793 cat confdefs.h >>conftest.$ac_ext
17794 cat >>conftest.$ac_ext <<_ACEOF
17795 /* end confdefs.h. */
17796 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
17797 For example, HP-UX 11i <limits.h> declares gettimeofday. */
17798 #define $ac_func innocuous_$ac_func
17800 /* System header to define __stub macros and hopefully few prototypes,
17801 which can conflict with char $ac_func (); below.
17802 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
17803 <limits.h> exists even on freestanding compilers. */
17806 # include <limits.h>
17808 # include <assert.h>
17813 /* Override any GCC internal prototype to avoid an error.
17814 Use char because int might match the return type of a GCC
17815 builtin and then its argument prototype would still apply. */
17820 /* The GNU C library defines this for functions which it implements
17821 to always fail with ENOSYS. Some functions are actually named
17822 something starting with __ and the normal name is an alias. */
17823 #if defined __stub_$ac_func || defined __stub___$ac_func
17830 return $ac_func ();
17835 rm -f conftest.$ac_objext conftest$ac_exeext
17836 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
17837 (eval $ac_link) 2>conftest.er1
17839 grep -v '^ *+' conftest.er1 >conftest.err
17841 cat conftest.err >&5
17842 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17843 (exit $ac_status); } &&
17844 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
17845 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17846 (eval $ac_try) 2>&5
17848 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17849 (exit $ac_status); }; } &&
17850 { ac_try='test -s conftest$ac_exeext'
17851 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17852 (eval $ac_try) 2>&5
17854 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17855 (exit $ac_status); }; }; then
17856 eval "$as_ac_var=yes"
17858 echo "$as_me: failed program was:" >&5
17859 sed 's/^/| /' conftest.$ac_ext >&5
17861 eval "$as_ac_var=no"
17864 rm -f conftest.err conftest.$ac_objext \
17865 conftest$ac_exeext conftest.$ac_ext
17867 ac_res=`eval echo '${'$as_ac_var'}'`
17868 { echo "$as_me:$LINENO: result: $ac_res" >&5
17869 echo "${ECHO_T}$ac_res" >&6; }
17870 if test `eval echo '${'$as_ac_var'}'` = yes; then
17871 cat >>confdefs.h <<_ACEOF
17872 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
17878 { echo "$as_me:$LINENO: checking for working mmap" >&5
17879 echo $ECHO_N "checking for working mmap... $ECHO_C" >&6; }
17880 if test "${ac_cv_func_mmap_fixed_mapped+set}" = set; then
17881 echo $ECHO_N "(cached) $ECHO_C" >&6
17883 if test "$cross_compiling" = yes; then
17884 ac_cv_func_mmap_fixed_mapped=no
17886 cat >conftest.$ac_ext <<_ACEOF
17889 cat confdefs.h >>conftest.$ac_ext
17890 cat >>conftest.$ac_ext <<_ACEOF
17891 /* end confdefs.h. */
17892 $ac_includes_default
17893 /* malloc might have been renamed as rpl_malloc. */
17896 /* Thanks to Mike Haertel and Jim Avera for this test.
17897 Here is a matrix of mmap possibilities:
17898 mmap private not fixed
17899 mmap private fixed at somewhere currently unmapped
17900 mmap private fixed at somewhere already mapped
17901 mmap shared not fixed
17902 mmap shared fixed at somewhere currently unmapped
17903 mmap shared fixed at somewhere already mapped
17904 For private mappings, we should verify that changes cannot be read()
17905 back from the file, nor mmap's back from the file at a different
17906 address. (There have been systems where private was not correctly
17907 implemented like the infamous i386 svr4.0, and systems where the
17908 VM page cache was not coherent with the file system buffer cache
17909 like early versions of FreeBSD and possibly contemporary NetBSD.)
17910 For shared mappings, we should conversely verify that changes get
17911 propagated back to all the places they're supposed to be.
17913 Grep wants private fixed already mapped.
17914 The main things grep needs to know about mmap are:
17915 * does it exist and is it safe to write into the mmap'd area
17916 * how to use it (BSD variants) */
17919 #include <sys/mman.h>
17921 #if !STDC_HEADERS && !HAVE_STDLIB_H
17925 /* This mess was copied from the GNU getpagesize.h. */
17926 #if !HAVE_GETPAGESIZE
17927 /* Assume that all systems that can run configure have sys/param.h. */
17928 # if !HAVE_SYS_PARAM_H
17929 # define HAVE_SYS_PARAM_H 1
17932 # ifdef _SC_PAGESIZE
17933 # define getpagesize() sysconf(_SC_PAGESIZE)
17934 # else /* no _SC_PAGESIZE */
17935 # if HAVE_SYS_PARAM_H
17936 # include <sys/param.h>
17937 # ifdef EXEC_PAGESIZE
17938 # define getpagesize() EXEC_PAGESIZE
17939 # else /* no EXEC_PAGESIZE */
17941 # define getpagesize() NBPG * CLSIZE
17944 # endif /* no CLSIZE */
17945 # else /* no NBPG */
17947 # define getpagesize() NBPC
17948 # else /* no NBPC */
17950 # define getpagesize() PAGESIZE
17951 # endif /* PAGESIZE */
17952 # endif /* no NBPC */
17953 # endif /* no NBPG */
17954 # endif /* no EXEC_PAGESIZE */
17955 # else /* no HAVE_SYS_PARAM_H */
17956 # define getpagesize() 8192 /* punt totally */
17957 # endif /* no HAVE_SYS_PARAM_H */
17958 # endif /* no _SC_PAGESIZE */
17960 #endif /* no HAVE_GETPAGESIZE */
17965 char *data, *data2, *data3;
17969 pagesize = getpagesize ();
17971 /* First, make a file with some known garbage in it. */
17972 data = (char *) malloc (pagesize);
17975 for (i = 0; i < pagesize; ++i)
17976 *(data + i) = rand ();
17978 fd = creat ("conftest.mmap", 0600);
17981 if (write (fd, data, pagesize) != pagesize)
17985 /* Next, try to mmap the file at a fixed address which already has
17986 something else allocated at it. If we can, also make sure that
17987 we see the same garbage. */
17988 fd = open ("conftest.mmap", O_RDWR);
17991 data2 = (char *) malloc (2 * pagesize);
17994 data2 += (pagesize - ((long int) data2 & (pagesize - 1))) & (pagesize - 1);
17995 if (data2 != mmap (data2, pagesize, PROT_READ | PROT_WRITE,
17996 MAP_PRIVATE | MAP_FIXED, fd, 0L))
17998 for (i = 0; i < pagesize; ++i)
17999 if (*(data + i) != *(data2 + i))
18002 /* Finally, make sure that changes to the mapped area do not
18003 percolate back to the file as seen by read(). (This is a bug on
18004 some variants of i386 svr4.0.) */
18005 for (i = 0; i < pagesize; ++i)
18006 *(data2 + i) = *(data2 + i) + 1;
18007 data3 = (char *) malloc (pagesize);
18010 if (read (fd, data3, pagesize) != pagesize)
18012 for (i = 0; i < pagesize; ++i)
18013 if (*(data + i) != *(data3 + i))
18019 rm -f conftest$ac_exeext
18020 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
18021 (eval $ac_link) 2>&5
18023 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18024 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
18025 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18026 (eval $ac_try) 2>&5
18028 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18029 (exit $ac_status); }; }; then
18030 ac_cv_func_mmap_fixed_mapped=yes
18032 echo "$as_me: program exited with status $ac_status" >&5
18033 echo "$as_me: failed program was:" >&5
18034 sed 's/^/| /' conftest.$ac_ext >&5
18036 ( exit $ac_status )
18037 ac_cv_func_mmap_fixed_mapped=no
18039 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
18044 { echo "$as_me:$LINENO: result: $ac_cv_func_mmap_fixed_mapped" >&5
18045 echo "${ECHO_T}$ac_cv_func_mmap_fixed_mapped" >&6; }
18046 if test $ac_cv_func_mmap_fixed_mapped = yes; then
18048 cat >>confdefs.h <<\_ACEOF
18049 #define HAVE_MMAP 1
18053 rm -f conftest.mmap
18055 { echo "$as_me:$LINENO: checking for pid_t" >&5
18056 echo $ECHO_N "checking for pid_t... $ECHO_C" >&6; }
18057 if test "${ac_cv_type_pid_t+set}" = set; then
18058 echo $ECHO_N "(cached) $ECHO_C" >&6
18060 cat >conftest.$ac_ext <<_ACEOF
18063 cat confdefs.h >>conftest.$ac_ext
18064 cat >>conftest.$ac_ext <<_ACEOF
18065 /* end confdefs.h. */
18066 $ac_includes_default
18067 typedef pid_t ac__type_new_;
18071 if ((ac__type_new_ *) 0)
18073 if (sizeof (ac__type_new_))
18079 rm -f conftest.$ac_objext
18080 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
18081 (eval $ac_compile) 2>conftest.er1
18083 grep -v '^ *+' conftest.er1 >conftest.err
18085 cat conftest.err >&5
18086 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18087 (exit $ac_status); } &&
18088 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
18089 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18090 (eval $ac_try) 2>&5
18092 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18093 (exit $ac_status); }; } &&
18094 { ac_try='test -s conftest.$ac_objext'
18095 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18096 (eval $ac_try) 2>&5
18098 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18099 (exit $ac_status); }; }; then
18100 ac_cv_type_pid_t=yes
18102 echo "$as_me: failed program was:" >&5
18103 sed 's/^/| /' conftest.$ac_ext >&5
18105 ac_cv_type_pid_t=no
18108 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
18110 { echo "$as_me:$LINENO: result: $ac_cv_type_pid_t" >&5
18111 echo "${ECHO_T}$ac_cv_type_pid_t" >&6; }
18112 if test $ac_cv_type_pid_t = yes; then
18116 cat >>confdefs.h <<_ACEOF
18123 for ac_header in vfork.h
18125 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
18126 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
18127 { echo "$as_me:$LINENO: checking for $ac_header" >&5
18128 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
18129 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
18130 echo $ECHO_N "(cached) $ECHO_C" >&6
18132 ac_res=`eval echo '${'$as_ac_Header'}'`
18133 { echo "$as_me:$LINENO: result: $ac_res" >&5
18134 echo "${ECHO_T}$ac_res" >&6; }
18136 # Is the header compilable?
18137 { echo "$as_me:$LINENO: checking $ac_header usability" >&5
18138 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
18139 cat >conftest.$ac_ext <<_ACEOF
18142 cat confdefs.h >>conftest.$ac_ext
18143 cat >>conftest.$ac_ext <<_ACEOF
18144 /* end confdefs.h. */
18145 $ac_includes_default
18146 #include <$ac_header>
18148 rm -f conftest.$ac_objext
18149 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
18150 (eval $ac_compile) 2>conftest.er1
18152 grep -v '^ *+' conftest.er1 >conftest.err
18154 cat conftest.err >&5
18155 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18156 (exit $ac_status); } &&
18157 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
18158 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18159 (eval $ac_try) 2>&5
18161 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18162 (exit $ac_status); }; } &&
18163 { ac_try='test -s conftest.$ac_objext'
18164 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18165 (eval $ac_try) 2>&5
18167 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18168 (exit $ac_status); }; }; then
18169 ac_header_compiler=yes
18171 echo "$as_me: failed program was:" >&5
18172 sed 's/^/| /' conftest.$ac_ext >&5
18174 ac_header_compiler=no
18177 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
18178 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
18179 echo "${ECHO_T}$ac_header_compiler" >&6; }
18181 # Is the header present?
18182 { echo "$as_me:$LINENO: checking $ac_header presence" >&5
18183 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
18184 cat >conftest.$ac_ext <<_ACEOF
18187 cat confdefs.h >>conftest.$ac_ext
18188 cat >>conftest.$ac_ext <<_ACEOF
18189 /* end confdefs.h. */
18190 #include <$ac_header>
18192 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
18193 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
18195 grep -v '^ *+' conftest.er1 >conftest.err
18197 cat conftest.err >&5
18198 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18199 (exit $ac_status); } >/dev/null; then
18200 if test -s conftest.err; then
18201 ac_cpp_err=$ac_c_preproc_warn_flag
18202 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
18209 if test -z "$ac_cpp_err"; then
18210 ac_header_preproc=yes
18212 echo "$as_me: failed program was:" >&5
18213 sed 's/^/| /' conftest.$ac_ext >&5
18215 ac_header_preproc=no
18218 rm -f conftest.err conftest.$ac_ext
18219 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
18220 echo "${ECHO_T}$ac_header_preproc" >&6; }
18222 # So? What about this header?
18223 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
18225 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
18226 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
18227 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
18228 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
18229 ac_header_preproc=yes
18232 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
18233 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
18234 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
18235 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
18236 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
18237 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
18238 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
18239 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
18240 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
18241 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
18242 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
18243 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
18247 { echo "$as_me:$LINENO: checking for $ac_header" >&5
18248 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
18249 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
18250 echo $ECHO_N "(cached) $ECHO_C" >&6
18252 eval "$as_ac_Header=\$ac_header_preproc"
18254 ac_res=`eval echo '${'$as_ac_Header'}'`
18255 { echo "$as_me:$LINENO: result: $ac_res" >&5
18256 echo "${ECHO_T}$ac_res" >&6; }
18259 if test `eval echo '${'$as_ac_Header'}'` = yes; then
18260 cat >>confdefs.h <<_ACEOF
18261 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
18270 for ac_func in fork vfork
18272 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
18273 { echo "$as_me:$LINENO: checking for $ac_func" >&5
18274 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
18275 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
18276 echo $ECHO_N "(cached) $ECHO_C" >&6
18278 cat >conftest.$ac_ext <<_ACEOF
18281 cat confdefs.h >>conftest.$ac_ext
18282 cat >>conftest.$ac_ext <<_ACEOF
18283 /* end confdefs.h. */
18284 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
18285 For example, HP-UX 11i <limits.h> declares gettimeofday. */
18286 #define $ac_func innocuous_$ac_func
18288 /* System header to define __stub macros and hopefully few prototypes,
18289 which can conflict with char $ac_func (); below.
18290 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
18291 <limits.h> exists even on freestanding compilers. */
18294 # include <limits.h>
18296 # include <assert.h>
18301 /* Override any GCC internal prototype to avoid an error.
18302 Use char because int might match the return type of a GCC
18303 builtin and then its argument prototype would still apply. */
18308 /* The GNU C library defines this for functions which it implements
18309 to always fail with ENOSYS. Some functions are actually named
18310 something starting with __ and the normal name is an alias. */
18311 #if defined __stub_$ac_func || defined __stub___$ac_func
18318 return $ac_func ();
18323 rm -f conftest.$ac_objext conftest$ac_exeext
18324 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
18325 (eval $ac_link) 2>conftest.er1
18327 grep -v '^ *+' conftest.er1 >conftest.err
18329 cat conftest.err >&5
18330 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18331 (exit $ac_status); } &&
18332 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
18333 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18334 (eval $ac_try) 2>&5
18336 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18337 (exit $ac_status); }; } &&
18338 { ac_try='test -s conftest$ac_exeext'
18339 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18340 (eval $ac_try) 2>&5
18342 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18343 (exit $ac_status); }; }; then
18344 eval "$as_ac_var=yes"
18346 echo "$as_me: failed program was:" >&5
18347 sed 's/^/| /' conftest.$ac_ext >&5
18349 eval "$as_ac_var=no"
18352 rm -f conftest.err conftest.$ac_objext \
18353 conftest$ac_exeext conftest.$ac_ext
18355 ac_res=`eval echo '${'$as_ac_var'}'`
18356 { echo "$as_me:$LINENO: result: $ac_res" >&5
18357 echo "${ECHO_T}$ac_res" >&6; }
18358 if test `eval echo '${'$as_ac_var'}'` = yes; then
18359 cat >>confdefs.h <<_ACEOF
18360 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
18366 if test "x$ac_cv_func_fork" = xyes; then
18367 { echo "$as_me:$LINENO: checking for working fork" >&5
18368 echo $ECHO_N "checking for working fork... $ECHO_C" >&6; }
18369 if test "${ac_cv_func_fork_works+set}" = set; then
18370 echo $ECHO_N "(cached) $ECHO_C" >&6
18372 if test "$cross_compiling" = yes; then
18373 ac_cv_func_fork_works=cross
18375 cat >conftest.$ac_ext <<_ACEOF
18378 cat confdefs.h >>conftest.$ac_ext
18379 cat >>conftest.$ac_ext <<_ACEOF
18380 /* end confdefs.h. */
18381 $ac_includes_default
18386 /* By Ruediger Kuhlmann. */
18387 return fork () < 0;
18393 rm -f conftest$ac_exeext
18394 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
18395 (eval $ac_link) 2>&5
18397 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18398 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
18399 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18400 (eval $ac_try) 2>&5
18402 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18403 (exit $ac_status); }; }; then
18404 ac_cv_func_fork_works=yes
18406 echo "$as_me: program exited with status $ac_status" >&5
18407 echo "$as_me: failed program was:" >&5
18408 sed 's/^/| /' conftest.$ac_ext >&5
18410 ( exit $ac_status )
18411 ac_cv_func_fork_works=no
18413 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
18418 { echo "$as_me:$LINENO: result: $ac_cv_func_fork_works" >&5
18419 echo "${ECHO_T}$ac_cv_func_fork_works" >&6; }
18422 ac_cv_func_fork_works=$ac_cv_func_fork
18424 if test "x$ac_cv_func_fork_works" = xcross; then
18426 *-*-amigaos* | *-*-msdosdjgpp*)
18427 # Override, as these systems have only a dummy fork() stub
18428 ac_cv_func_fork_works=no
18431 ac_cv_func_fork_works=yes
18434 { echo "$as_me:$LINENO: WARNING: result $ac_cv_func_fork_works guessed because of cross compilation" >&5
18435 echo "$as_me: WARNING: result $ac_cv_func_fork_works guessed because of cross compilation" >&2;}
18437 ac_cv_func_vfork_works=$ac_cv_func_vfork
18438 if test "x$ac_cv_func_vfork" = xyes; then
18439 { echo "$as_me:$LINENO: checking for working vfork" >&5
18440 echo $ECHO_N "checking for working vfork... $ECHO_C" >&6; }
18441 if test "${ac_cv_func_vfork_works+set}" = set; then
18442 echo $ECHO_N "(cached) $ECHO_C" >&6
18444 if test "$cross_compiling" = yes; then
18445 ac_cv_func_vfork_works=cross
18447 cat >conftest.$ac_ext <<_ACEOF
18450 cat confdefs.h >>conftest.$ac_ext
18451 cat >>conftest.$ac_ext <<_ACEOF
18452 /* end confdefs.h. */
18453 /* Thanks to Paul Eggert for this test. */
18454 $ac_includes_default
18455 #include <sys/wait.h>
18457 # include <vfork.h>
18459 /* On some sparc systems, changes by the child to local and incoming
18460 argument registers are propagated back to the parent. The compiler
18461 is told about this with #include <vfork.h>, but some compilers
18462 (e.g. gcc -O) don't grok <vfork.h>. Test for this by using a
18463 static variable whose address is put into a register that is
18464 clobbered by the vfork. */
18467 sparc_address_test (int arg)
18469 sparc_address_test (arg) int arg;
18472 static pid_t child;
18490 pid_t parent = getpid ();
18493 sparc_address_test (0);
18498 /* Here is another test for sparc vfork register problems. This
18499 test uses lots of local variables, at least as many local
18500 variables as main has allocated so far including compiler
18501 temporaries. 4 locals are enough for gcc 1.40.3 on a Solaris
18502 4.1.3 sparc, but we use 8 to be safe. A buggy compiler should
18503 reuse the register of parent for one of the local variables,
18504 since it will think that parent can't possibly be used any more
18505 in this routine. Assigning to the local variable will thus
18506 munge parent in the parent process. */
18508 p = getpid(), p1 = getpid(), p2 = getpid(), p3 = getpid(),
18509 p4 = getpid(), p5 = getpid(), p6 = getpid(), p7 = getpid();
18510 /* Convince the compiler that p..p7 are live; otherwise, it might
18511 use the same hardware register for all 8 local variables. */
18512 if (p != p1 || p != p2 || p != p3 || p != p4
18513 || p != p5 || p != p6 || p != p7)
18516 /* On some systems (e.g. IRIX 3.3), vfork doesn't separate parent
18517 from child file descriptors. If the child closes a descriptor
18518 before it execs or exits, this munges the parent's descriptor
18519 as well. Test for this by closing stdout in the child. */
18520 _exit(close(fileno(stdout)) != 0);
18525 while (wait(&status) != child)
18528 /* Was there some problem with vforking? */
18531 /* Did the child fail? (This shouldn't happen.) */
18534 /* Did the vfork/compiler bug occur? */
18535 || parent != getpid()
18537 /* Did the file descriptor bug occur? */
18538 || fstat(fileno(stdout), &st) != 0
18543 rm -f conftest$ac_exeext
18544 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
18545 (eval $ac_link) 2>&5
18547 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18548 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
18549 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18550 (eval $ac_try) 2>&5
18552 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18553 (exit $ac_status); }; }; then
18554 ac_cv_func_vfork_works=yes
18556 echo "$as_me: program exited with status $ac_status" >&5
18557 echo "$as_me: failed program was:" >&5
18558 sed 's/^/| /' conftest.$ac_ext >&5
18560 ( exit $ac_status )
18561 ac_cv_func_vfork_works=no
18563 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
18568 { echo "$as_me:$LINENO: result: $ac_cv_func_vfork_works" >&5
18569 echo "${ECHO_T}$ac_cv_func_vfork_works" >&6; }
18572 if test "x$ac_cv_func_fork_works" = xcross; then
18573 ac_cv_func_vfork_works=$ac_cv_func_vfork
18574 { echo "$as_me:$LINENO: WARNING: result $ac_cv_func_vfork_works guessed because of cross compilation" >&5
18575 echo "$as_me: WARNING: result $ac_cv_func_vfork_works guessed because of cross compilation" >&2;}
18578 if test "x$ac_cv_func_vfork_works" = xyes; then
18580 cat >>confdefs.h <<\_ACEOF
18581 #define HAVE_WORKING_VFORK 1
18586 cat >>confdefs.h <<\_ACEOF
18591 if test "x$ac_cv_func_fork_works" = xyes; then
18593 cat >>confdefs.h <<\_ACEOF
18594 #define HAVE_WORKING_FORK 1
18601 for ac_func in canonicalize_file_name realpath
18603 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
18604 { echo "$as_me:$LINENO: checking for $ac_func" >&5
18605 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
18606 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
18607 echo $ECHO_N "(cached) $ECHO_C" >&6
18609 cat >conftest.$ac_ext <<_ACEOF
18612 cat confdefs.h >>conftest.$ac_ext
18613 cat >>conftest.$ac_ext <<_ACEOF
18614 /* end confdefs.h. */
18615 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
18616 For example, HP-UX 11i <limits.h> declares gettimeofday. */
18617 #define $ac_func innocuous_$ac_func
18619 /* System header to define __stub macros and hopefully few prototypes,
18620 which can conflict with char $ac_func (); below.
18621 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
18622 <limits.h> exists even on freestanding compilers. */
18625 # include <limits.h>
18627 # include <assert.h>
18632 /* Override any GCC internal prototype to avoid an error.
18633 Use char because int might match the return type of a GCC
18634 builtin and then its argument prototype would still apply. */
18639 /* The GNU C library defines this for functions which it implements
18640 to always fail with ENOSYS. Some functions are actually named
18641 something starting with __ and the normal name is an alias. */
18642 #if defined __stub_$ac_func || defined __stub___$ac_func
18649 return $ac_func ();
18654 rm -f conftest.$ac_objext conftest$ac_exeext
18655 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
18656 (eval $ac_link) 2>conftest.er1
18658 grep -v '^ *+' conftest.er1 >conftest.err
18660 cat conftest.err >&5
18661 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18662 (exit $ac_status); } &&
18663 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
18664 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18665 (eval $ac_try) 2>&5
18667 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18668 (exit $ac_status); }; } &&
18669 { ac_try='test -s conftest$ac_exeext'
18670 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18671 (eval $ac_try) 2>&5
18673 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18674 (exit $ac_status); }; }; then
18675 eval "$as_ac_var=yes"
18677 echo "$as_me: failed program was:" >&5
18678 sed 's/^/| /' conftest.$ac_ext >&5
18680 eval "$as_ac_var=no"
18683 rm -f conftest.err conftest.$ac_objext \
18684 conftest$ac_exeext conftest.$ac_ext
18686 ac_res=`eval echo '${'$as_ac_var'}'`
18687 { echo "$as_me:$LINENO: result: $ac_res" >&5
18688 echo "${ECHO_T}$ac_res" >&6; }
18689 if test `eval echo '${'$as_ac_var'}'` = yes; then
18690 cat >>confdefs.h <<_ACEOF
18691 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
18699 for ac_func in getuid getgid
18701 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
18702 { echo "$as_me:$LINENO: checking for $ac_func" >&5
18703 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
18704 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
18705 echo $ECHO_N "(cached) $ECHO_C" >&6
18707 cat >conftest.$ac_ext <<_ACEOF
18710 cat confdefs.h >>conftest.$ac_ext
18711 cat >>conftest.$ac_ext <<_ACEOF
18712 /* end confdefs.h. */
18713 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
18714 For example, HP-UX 11i <limits.h> declares gettimeofday. */
18715 #define $ac_func innocuous_$ac_func
18717 /* System header to define __stub macros and hopefully few prototypes,
18718 which can conflict with char $ac_func (); below.
18719 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
18720 <limits.h> exists even on freestanding compilers. */
18723 # include <limits.h>
18725 # include <assert.h>
18730 /* Override any GCC internal prototype to avoid an error.
18731 Use char because int might match the return type of a GCC
18732 builtin and then its argument prototype would still apply. */
18737 /* The GNU C library defines this for functions which it implements
18738 to always fail with ENOSYS. Some functions are actually named
18739 something starting with __ and the normal name is an alias. */
18740 #if defined __stub_$ac_func || defined __stub___$ac_func
18747 return $ac_func ();
18752 rm -f conftest.$ac_objext conftest$ac_exeext
18753 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
18754 (eval $ac_link) 2>conftest.er1
18756 grep -v '^ *+' conftest.er1 >conftest.err
18758 cat conftest.err >&5
18759 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18760 (exit $ac_status); } &&
18761 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
18762 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18763 (eval $ac_try) 2>&5
18765 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18766 (exit $ac_status); }; } &&
18767 { ac_try='test -s conftest$ac_exeext'
18768 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18769 (eval $ac_try) 2>&5
18771 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18772 (exit $ac_status); }; }; then
18773 eval "$as_ac_var=yes"
18775 echo "$as_me: failed program was:" >&5
18776 sed 's/^/| /' conftest.$ac_ext >&5
18778 eval "$as_ac_var=no"
18781 rm -f conftest.err conftest.$ac_objext \
18782 conftest$ac_exeext conftest.$ac_ext
18784 ac_res=`eval echo '${'$as_ac_var'}'`
18785 { echo "$as_me:$LINENO: result: $ac_res" >&5
18786 echo "${ECHO_T}$ac_res" >&6; }
18787 if test `eval echo '${'$as_ac_var'}'` = yes; then
18788 cat >>confdefs.h <<_ACEOF
18789 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
18796 for ac_func in poll
18798 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
18799 { echo "$as_me:$LINENO: checking for $ac_func" >&5
18800 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
18801 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
18802 echo $ECHO_N "(cached) $ECHO_C" >&6
18804 cat >conftest.$ac_ext <<_ACEOF
18807 cat confdefs.h >>conftest.$ac_ext
18808 cat >>conftest.$ac_ext <<_ACEOF
18809 /* end confdefs.h. */
18810 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
18811 For example, HP-UX 11i <limits.h> declares gettimeofday. */
18812 #define $ac_func innocuous_$ac_func
18814 /* System header to define __stub macros and hopefully few prototypes,
18815 which can conflict with char $ac_func (); below.
18816 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
18817 <limits.h> exists even on freestanding compilers. */
18820 # include <limits.h>
18822 # include <assert.h>
18827 /* Override any GCC internal prototype to avoid an error.
18828 Use char because int might match the return type of a GCC
18829 builtin and then its argument prototype would still apply. */
18834 /* The GNU C library defines this for functions which it implements
18835 to always fail with ENOSYS. Some functions are actually named
18836 something starting with __ and the normal name is an alias. */
18837 #if defined __stub_$ac_func || defined __stub___$ac_func
18844 return $ac_func ();
18849 rm -f conftest.$ac_objext conftest$ac_exeext
18850 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
18851 (eval $ac_link) 2>conftest.er1
18853 grep -v '^ *+' conftest.er1 >conftest.err
18855 cat conftest.err >&5
18856 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18857 (exit $ac_status); } &&
18858 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
18859 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18860 (eval $ac_try) 2>&5
18862 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18863 (exit $ac_status); }; } &&
18864 { ac_try='test -s conftest$ac_exeext'
18865 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18866 (eval $ac_try) 2>&5
18868 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18869 (exit $ac_status); }; }; then
18870 eval "$as_ac_var=yes"
18872 echo "$as_me: failed program was:" >&5
18873 sed 's/^/| /' conftest.$ac_ext >&5
18875 eval "$as_ac_var=no"
18878 rm -f conftest.err conftest.$ac_objext \
18879 conftest$ac_exeext conftest.$ac_ext
18881 ac_res=`eval echo '${'$as_ac_var'}'`
18882 { echo "$as_me:$LINENO: result: $ac_res" >&5
18883 echo "${ECHO_T}$ac_res" >&6; }
18884 if test `eval echo '${'$as_ac_var'}'` = yes; then
18885 cat >>confdefs.h <<_ACEOF
18886 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
18893 for ac_func in pread64
18895 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
18896 { echo "$as_me:$LINENO: checking for $ac_func" >&5
18897 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
18898 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
18899 echo $ECHO_N "(cached) $ECHO_C" >&6
18901 cat >conftest.$ac_ext <<_ACEOF
18904 cat confdefs.h >>conftest.$ac_ext
18905 cat >>conftest.$ac_ext <<_ACEOF
18906 /* end confdefs.h. */
18907 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
18908 For example, HP-UX 11i <limits.h> declares gettimeofday. */
18909 #define $ac_func innocuous_$ac_func
18911 /* System header to define __stub macros and hopefully few prototypes,
18912 which can conflict with char $ac_func (); below.
18913 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
18914 <limits.h> exists even on freestanding compilers. */
18917 # include <limits.h>
18919 # include <assert.h>
18924 /* Override any GCC internal prototype to avoid an error.
18925 Use char because int might match the return type of a GCC
18926 builtin and then its argument prototype would still apply. */
18931 /* The GNU C library defines this for functions which it implements
18932 to always fail with ENOSYS. Some functions are actually named
18933 something starting with __ and the normal name is an alias. */
18934 #if defined __stub_$ac_func || defined __stub___$ac_func
18941 return $ac_func ();
18946 rm -f conftest.$ac_objext conftest$ac_exeext
18947 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
18948 (eval $ac_link) 2>conftest.er1
18950 grep -v '^ *+' conftest.er1 >conftest.err
18952 cat conftest.err >&5
18953 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18954 (exit $ac_status); } &&
18955 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
18956 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18957 (eval $ac_try) 2>&5
18959 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18960 (exit $ac_status); }; } &&
18961 { ac_try='test -s conftest$ac_exeext'
18962 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18963 (eval $ac_try) 2>&5
18965 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18966 (exit $ac_status); }; }; then
18967 eval "$as_ac_var=yes"
18969 echo "$as_me: failed program was:" >&5
18970 sed 's/^/| /' conftest.$ac_ext >&5
18972 eval "$as_ac_var=no"
18975 rm -f conftest.err conftest.$ac_objext \
18976 conftest$ac_exeext conftest.$ac_ext
18978 ac_res=`eval echo '${'$as_ac_var'}'`
18979 { echo "$as_me:$LINENO: result: $ac_res" >&5
18980 echo "${ECHO_T}$ac_res" >&6; }
18981 if test `eval echo '${'$as_ac_var'}'` = yes; then
18982 cat >>confdefs.h <<_ACEOF
18983 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
18990 for ac_func in sbrk
18992 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
18993 { echo "$as_me:$LINENO: checking for $ac_func" >&5
18994 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
18995 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
18996 echo $ECHO_N "(cached) $ECHO_C" >&6
18998 cat >conftest.$ac_ext <<_ACEOF
19001 cat confdefs.h >>conftest.$ac_ext
19002 cat >>conftest.$ac_ext <<_ACEOF
19003 /* end confdefs.h. */
19004 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
19005 For example, HP-UX 11i <limits.h> declares gettimeofday. */
19006 #define $ac_func innocuous_$ac_func
19008 /* System header to define __stub macros and hopefully few prototypes,
19009 which can conflict with char $ac_func (); below.
19010 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
19011 <limits.h> exists even on freestanding compilers. */
19014 # include <limits.h>
19016 # include <assert.h>
19021 /* Override any GCC internal prototype to avoid an error.
19022 Use char because int might match the return type of a GCC
19023 builtin and then its argument prototype would still apply. */
19028 /* The GNU C library defines this for functions which it implements
19029 to always fail with ENOSYS. Some functions are actually named
19030 something starting with __ and the normal name is an alias. */
19031 #if defined __stub_$ac_func || defined __stub___$ac_func
19038 return $ac_func ();
19043 rm -f conftest.$ac_objext conftest$ac_exeext
19044 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
19045 (eval $ac_link) 2>conftest.er1
19047 grep -v '^ *+' conftest.er1 >conftest.err
19049 cat conftest.err >&5
19050 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19051 (exit $ac_status); } &&
19052 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
19053 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19054 (eval $ac_try) 2>&5
19056 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19057 (exit $ac_status); }; } &&
19058 { ac_try='test -s conftest$ac_exeext'
19059 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19060 (eval $ac_try) 2>&5
19062 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19063 (exit $ac_status); }; }; then
19064 eval "$as_ac_var=yes"
19066 echo "$as_me: failed program was:" >&5
19067 sed 's/^/| /' conftest.$ac_ext >&5
19069 eval "$as_ac_var=no"
19072 rm -f conftest.err conftest.$ac_objext \
19073 conftest$ac_exeext conftest.$ac_ext
19075 ac_res=`eval echo '${'$as_ac_var'}'`
19076 { echo "$as_me:$LINENO: result: $ac_res" >&5
19077 echo "${ECHO_T}$ac_res" >&6; }
19078 if test `eval echo '${'$as_ac_var'}'` = yes; then
19079 cat >>confdefs.h <<_ACEOF
19080 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
19088 for ac_func in setpgid setpgrp
19090 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
19091 { echo "$as_me:$LINENO: checking for $ac_func" >&5
19092 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
19093 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
19094 echo $ECHO_N "(cached) $ECHO_C" >&6
19096 cat >conftest.$ac_ext <<_ACEOF
19099 cat confdefs.h >>conftest.$ac_ext
19100 cat >>conftest.$ac_ext <<_ACEOF
19101 /* end confdefs.h. */
19102 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
19103 For example, HP-UX 11i <limits.h> declares gettimeofday. */
19104 #define $ac_func innocuous_$ac_func
19106 /* System header to define __stub macros and hopefully few prototypes,
19107 which can conflict with char $ac_func (); below.
19108 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
19109 <limits.h> exists even on freestanding compilers. */
19112 # include <limits.h>
19114 # include <assert.h>
19119 /* Override any GCC internal prototype to avoid an error.
19120 Use char because int might match the return type of a GCC
19121 builtin and then its argument prototype would still apply. */
19126 /* The GNU C library defines this for functions which it implements
19127 to always fail with ENOSYS. Some functions are actually named
19128 something starting with __ and the normal name is an alias. */
19129 #if defined __stub_$ac_func || defined __stub___$ac_func
19136 return $ac_func ();
19141 rm -f conftest.$ac_objext conftest$ac_exeext
19142 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
19143 (eval $ac_link) 2>conftest.er1
19145 grep -v '^ *+' conftest.er1 >conftest.err
19147 cat conftest.err >&5
19148 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19149 (exit $ac_status); } &&
19150 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
19151 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19152 (eval $ac_try) 2>&5
19154 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19155 (exit $ac_status); }; } &&
19156 { ac_try='test -s conftest$ac_exeext'
19157 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19158 (eval $ac_try) 2>&5
19160 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19161 (exit $ac_status); }; }; then
19162 eval "$as_ac_var=yes"
19164 echo "$as_me: failed program was:" >&5
19165 sed 's/^/| /' conftest.$ac_ext >&5
19167 eval "$as_ac_var=no"
19170 rm -f conftest.err conftest.$ac_objext \
19171 conftest$ac_exeext conftest.$ac_ext
19173 ac_res=`eval echo '${'$as_ac_var'}'`
19174 { echo "$as_me:$LINENO: result: $ac_res" >&5
19175 echo "${ECHO_T}$ac_res" >&6; }
19176 if test `eval echo '${'$as_ac_var'}'` = yes; then
19177 cat >>confdefs.h <<_ACEOF
19178 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
19187 for ac_func in sigaction sigprocmask sigsetmask
19189 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
19190 { echo "$as_me:$LINENO: checking for $ac_func" >&5
19191 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
19192 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
19193 echo $ECHO_N "(cached) $ECHO_C" >&6
19195 cat >conftest.$ac_ext <<_ACEOF
19198 cat confdefs.h >>conftest.$ac_ext
19199 cat >>conftest.$ac_ext <<_ACEOF
19200 /* end confdefs.h. */
19201 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
19202 For example, HP-UX 11i <limits.h> declares gettimeofday. */
19203 #define $ac_func innocuous_$ac_func
19205 /* System header to define __stub macros and hopefully few prototypes,
19206 which can conflict with char $ac_func (); below.
19207 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
19208 <limits.h> exists even on freestanding compilers. */
19211 # include <limits.h>
19213 # include <assert.h>
19218 /* Override any GCC internal prototype to avoid an error.
19219 Use char because int might match the return type of a GCC
19220 builtin and then its argument prototype would still apply. */
19225 /* The GNU C library defines this for functions which it implements
19226 to always fail with ENOSYS. Some functions are actually named
19227 something starting with __ and the normal name is an alias. */
19228 #if defined __stub_$ac_func || defined __stub___$ac_func
19235 return $ac_func ();
19240 rm -f conftest.$ac_objext conftest$ac_exeext
19241 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
19242 (eval $ac_link) 2>conftest.er1
19244 grep -v '^ *+' conftest.er1 >conftest.err
19246 cat conftest.err >&5
19247 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19248 (exit $ac_status); } &&
19249 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
19250 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19251 (eval $ac_try) 2>&5
19253 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19254 (exit $ac_status); }; } &&
19255 { ac_try='test -s conftest$ac_exeext'
19256 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19257 (eval $ac_try) 2>&5
19259 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19260 (exit $ac_status); }; }; then
19261 eval "$as_ac_var=yes"
19263 echo "$as_me: failed program was:" >&5
19264 sed 's/^/| /' conftest.$ac_ext >&5
19266 eval "$as_ac_var=no"
19269 rm -f conftest.err conftest.$ac_objext \
19270 conftest$ac_exeext conftest.$ac_ext
19272 ac_res=`eval echo '${'$as_ac_var'}'`
19273 { echo "$as_me:$LINENO: result: $ac_res" >&5
19274 echo "${ECHO_T}$ac_res" >&6; }
19275 if test `eval echo '${'$as_ac_var'}'` = yes; then
19276 cat >>confdefs.h <<_ACEOF
19277 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
19284 for ac_func in socketpair
19286 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
19287 { echo "$as_me:$LINENO: checking for $ac_func" >&5
19288 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
19289 if { as_var=$as_ac_var; eval "test \"\${$as_var+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 $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
19299 For example, HP-UX 11i <limits.h> declares gettimeofday. */
19300 #define $ac_func innocuous_$ac_func
19302 /* System header to define __stub macros and hopefully few prototypes,
19303 which can conflict with char $ac_func (); 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. */
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_$ac_func || defined __stub___$ac_func
19332 return $ac_func ();
19337 rm -f conftest.$ac_objext conftest$ac_exeext
19338 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
19339 (eval $ac_link) 2>conftest.er1
19341 grep -v '^ *+' conftest.er1 >conftest.err
19343 cat conftest.err >&5
19344 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19345 (exit $ac_status); } &&
19346 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
19347 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19348 (eval $ac_try) 2>&5
19350 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19351 (exit $ac_status); }; } &&
19352 { ac_try='test -s conftest$ac_exeext'
19353 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19354 (eval $ac_try) 2>&5
19356 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19357 (exit $ac_status); }; }; then
19358 eval "$as_ac_var=yes"
19360 echo "$as_me: failed program was:" >&5
19361 sed 's/^/| /' conftest.$ac_ext >&5
19363 eval "$as_ac_var=no"
19366 rm -f conftest.err conftest.$ac_objext \
19367 conftest$ac_exeext conftest.$ac_ext
19369 ac_res=`eval echo '${'$as_ac_var'}'`
19370 { echo "$as_me:$LINENO: result: $ac_res" >&5
19371 echo "${ECHO_T}$ac_res" >&6; }
19372 if test `eval echo '${'$as_ac_var'}'` = yes; then
19373 cat >>confdefs.h <<_ACEOF
19374 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
19381 for ac_func in syscall
19383 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
19384 { echo "$as_me:$LINENO: checking for $ac_func" >&5
19385 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
19386 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
19387 echo $ECHO_N "(cached) $ECHO_C" >&6
19389 cat >conftest.$ac_ext <<_ACEOF
19392 cat confdefs.h >>conftest.$ac_ext
19393 cat >>conftest.$ac_ext <<_ACEOF
19394 /* end confdefs.h. */
19395 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
19396 For example, HP-UX 11i <limits.h> declares gettimeofday. */
19397 #define $ac_func innocuous_$ac_func
19399 /* System header to define __stub macros and hopefully few prototypes,
19400 which can conflict with char $ac_func (); below.
19401 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
19402 <limits.h> exists even on freestanding compilers. */
19405 # include <limits.h>
19407 # include <assert.h>
19412 /* Override any GCC internal prototype to avoid an error.
19413 Use char because int might match the return type of a GCC
19414 builtin and then its argument prototype would still apply. */
19419 /* The GNU C library defines this for functions which it implements
19420 to always fail with ENOSYS. Some functions are actually named
19421 something starting with __ and the normal name is an alias. */
19422 #if defined __stub_$ac_func || defined __stub___$ac_func
19429 return $ac_func ();
19434 rm -f conftest.$ac_objext conftest$ac_exeext
19435 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
19436 (eval $ac_link) 2>conftest.er1
19438 grep -v '^ *+' conftest.er1 >conftest.err
19440 cat conftest.err >&5
19441 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19442 (exit $ac_status); } &&
19443 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
19444 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19445 (eval $ac_try) 2>&5
19447 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19448 (exit $ac_status); }; } &&
19449 { ac_try='test -s conftest$ac_exeext'
19450 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19451 (eval $ac_try) 2>&5
19453 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19454 (exit $ac_status); }; }; then
19455 eval "$as_ac_var=yes"
19457 echo "$as_me: failed program was:" >&5
19458 sed 's/^/| /' conftest.$ac_ext >&5
19460 eval "$as_ac_var=no"
19463 rm -f conftest.err conftest.$ac_objext \
19464 conftest$ac_exeext conftest.$ac_ext
19466 ac_res=`eval echo '${'$as_ac_var'}'`
19467 { echo "$as_me:$LINENO: result: $ac_res" >&5
19468 echo "${ECHO_T}$ac_res" >&6; }
19469 if test `eval echo '${'$as_ac_var'}'` = yes; then
19470 cat >>confdefs.h <<_ACEOF
19471 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
19478 for ac_func in ttrace
19480 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
19481 { echo "$as_me:$LINENO: checking for $ac_func" >&5
19482 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
19483 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
19484 echo $ECHO_N "(cached) $ECHO_C" >&6
19486 cat >conftest.$ac_ext <<_ACEOF
19489 cat confdefs.h >>conftest.$ac_ext
19490 cat >>conftest.$ac_ext <<_ACEOF
19491 /* end confdefs.h. */
19492 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
19493 For example, HP-UX 11i <limits.h> declares gettimeofday. */
19494 #define $ac_func innocuous_$ac_func
19496 /* System header to define __stub macros and hopefully few prototypes,
19497 which can conflict with char $ac_func (); below.
19498 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
19499 <limits.h> exists even on freestanding compilers. */
19502 # include <limits.h>
19504 # include <assert.h>
19509 /* Override any GCC internal prototype to avoid an error.
19510 Use char because int might match the return type of a GCC
19511 builtin and then its argument prototype would still apply. */
19516 /* The GNU C library defines this for functions which it implements
19517 to always fail with ENOSYS. Some functions are actually named
19518 something starting with __ and the normal name is an alias. */
19519 #if defined __stub_$ac_func || defined __stub___$ac_func
19526 return $ac_func ();
19531 rm -f conftest.$ac_objext conftest$ac_exeext
19532 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
19533 (eval $ac_link) 2>conftest.er1
19535 grep -v '^ *+' conftest.er1 >conftest.err
19537 cat conftest.err >&5
19538 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19539 (exit $ac_status); } &&
19540 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
19541 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19542 (eval $ac_try) 2>&5
19544 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19545 (exit $ac_status); }; } &&
19546 { ac_try='test -s conftest$ac_exeext'
19547 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19548 (eval $ac_try) 2>&5
19550 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19551 (exit $ac_status); }; }; then
19552 eval "$as_ac_var=yes"
19554 echo "$as_me: failed program was:" >&5
19555 sed 's/^/| /' conftest.$ac_ext >&5
19557 eval "$as_ac_var=no"
19560 rm -f conftest.err conftest.$ac_objext \
19561 conftest$ac_exeext conftest.$ac_ext
19563 ac_res=`eval echo '${'$as_ac_var'}'`
19564 { echo "$as_me:$LINENO: result: $ac_res" >&5
19565 echo "${ECHO_T}$ac_res" >&6; }
19566 if test `eval echo '${'$as_ac_var'}'` = yes; then
19567 cat >>confdefs.h <<_ACEOF
19568 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
19575 for ac_func in wborder
19577 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
19578 { echo "$as_me:$LINENO: checking for $ac_func" >&5
19579 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
19580 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
19581 echo $ECHO_N "(cached) $ECHO_C" >&6
19583 cat >conftest.$ac_ext <<_ACEOF
19586 cat confdefs.h >>conftest.$ac_ext
19587 cat >>conftest.$ac_ext <<_ACEOF
19588 /* end confdefs.h. */
19589 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
19590 For example, HP-UX 11i <limits.h> declares gettimeofday. */
19591 #define $ac_func innocuous_$ac_func
19593 /* System header to define __stub macros and hopefully few prototypes,
19594 which can conflict with char $ac_func (); below.
19595 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
19596 <limits.h> exists even on freestanding compilers. */
19599 # include <limits.h>
19601 # include <assert.h>
19606 /* Override any GCC internal prototype to avoid an error.
19607 Use char because int might match the return type of a GCC
19608 builtin and then its argument prototype would still apply. */
19613 /* The GNU C library defines this for functions which it implements
19614 to always fail with ENOSYS. Some functions are actually named
19615 something starting with __ and the normal name is an alias. */
19616 #if defined __stub_$ac_func || defined __stub___$ac_func
19623 return $ac_func ();
19628 rm -f conftest.$ac_objext conftest$ac_exeext
19629 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
19630 (eval $ac_link) 2>conftest.er1
19632 grep -v '^ *+' conftest.er1 >conftest.err
19634 cat conftest.err >&5
19635 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19636 (exit $ac_status); } &&
19637 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
19638 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19639 (eval $ac_try) 2>&5
19641 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19642 (exit $ac_status); }; } &&
19643 { ac_try='test -s conftest$ac_exeext'
19644 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19645 (eval $ac_try) 2>&5
19647 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19648 (exit $ac_status); }; }; then
19649 eval "$as_ac_var=yes"
19651 echo "$as_me: failed program was:" >&5
19652 sed 's/^/| /' conftest.$ac_ext >&5
19654 eval "$as_ac_var=no"
19657 rm -f conftest.err conftest.$ac_objext \
19658 conftest$ac_exeext conftest.$ac_ext
19660 ac_res=`eval echo '${'$as_ac_var'}'`
19661 { echo "$as_me:$LINENO: result: $ac_res" >&5
19662 echo "${ECHO_T}$ac_res" >&6; }
19663 if test `eval echo '${'$as_ac_var'}'` = yes; then
19664 cat >>confdefs.h <<_ACEOF
19665 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
19672 # Check the return and argument types of ptrace. No canned test for
19673 # this, so roll our own.
19674 gdb_ptrace_headers='
19675 #if HAVE_SYS_TYPES_H
19676 # include <sys/types.h>
19678 #if HAVE_SYS_PTRACE_H
19679 # include <sys/ptrace.h>
19682 # include <unistd.h>
19685 # There is no point in checking if we don't have a prototype.
19686 { echo "$as_me:$LINENO: checking whether ptrace is declared" >&5
19687 echo $ECHO_N "checking whether ptrace is declared... $ECHO_C" >&6; }
19688 if test "${ac_cv_have_decl_ptrace+set}" = set; then
19689 echo $ECHO_N "(cached) $ECHO_C" >&6
19691 cat >conftest.$ac_ext <<_ACEOF
19694 cat confdefs.h >>conftest.$ac_ext
19695 cat >>conftest.$ac_ext <<_ACEOF
19696 /* end confdefs.h. */
19697 $gdb_ptrace_headers
19703 char *p = (char *) ptrace;
19711 rm -f conftest.$ac_objext
19712 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
19713 (eval $ac_compile) 2>conftest.er1
19715 grep -v '^ *+' conftest.er1 >conftest.err
19717 cat conftest.err >&5
19718 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19719 (exit $ac_status); } &&
19720 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
19721 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19722 (eval $ac_try) 2>&5
19724 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19725 (exit $ac_status); }; } &&
19726 { ac_try='test -s conftest.$ac_objext'
19727 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19728 (eval $ac_try) 2>&5
19730 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19731 (exit $ac_status); }; }; then
19732 ac_cv_have_decl_ptrace=yes
19734 echo "$as_me: failed program was:" >&5
19735 sed 's/^/| /' conftest.$ac_ext >&5
19737 ac_cv_have_decl_ptrace=no
19740 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
19742 { echo "$as_me:$LINENO: result: $ac_cv_have_decl_ptrace" >&5
19743 echo "${ECHO_T}$ac_cv_have_decl_ptrace" >&6; }
19744 if test $ac_cv_have_decl_ptrace = yes; then
19746 cat >>confdefs.h <<_ACEOF
19747 #define HAVE_DECL_PTRACE 1
19752 cat >>confdefs.h <<_ACEOF
19753 #define HAVE_DECL_PTRACE 0
19757 : ${gdb_cv_func_ptrace_ret='int'}
19758 : ${gdb_cv_func_ptrace_args='int,int,long,long'}
19763 # Check return type.
19764 { echo "$as_me:$LINENO: checking return type of ptrace" >&5
19765 echo $ECHO_N "checking return type of ptrace... $ECHO_C" >&6; }
19766 if test "${gdb_cv_func_ptrace_ret+set}" = set; then
19767 echo $ECHO_N "(cached) $ECHO_C" >&6
19769 cat >conftest.$ac_ext <<_ACEOF
19772 cat confdefs.h >>conftest.$ac_ext
19773 cat >>conftest.$ac_ext <<_ACEOF
19774 /* end confdefs.h. */
19775 $gdb_ptrace_headers
19779 extern int ptrace ();
19784 rm -f conftest.$ac_objext
19785 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
19786 (eval $ac_compile) 2>conftest.er1
19788 grep -v '^ *+' conftest.er1 >conftest.err
19790 cat conftest.err >&5
19791 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19792 (exit $ac_status); } &&
19793 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
19794 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19795 (eval $ac_try) 2>&5
19797 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19798 (exit $ac_status); }; } &&
19799 { ac_try='test -s conftest.$ac_objext'
19800 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19801 (eval $ac_try) 2>&5
19803 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19804 (exit $ac_status); }; }; then
19805 gdb_cv_func_ptrace_ret='int'
19807 echo "$as_me: failed program was:" >&5
19808 sed 's/^/| /' conftest.$ac_ext >&5
19810 gdb_cv_func_ptrace_ret='long'
19813 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
19815 { echo "$as_me:$LINENO: result: $gdb_cv_func_ptrace_ret" >&5
19816 echo "${ECHO_T}$gdb_cv_func_ptrace_ret" >&6; }
19818 cat >>confdefs.h <<_ACEOF
19819 #define PTRACE_TYPE_RET $gdb_cv_func_ptrace_ret
19822 # Check argument types.
19823 { echo "$as_me:$LINENO: checking types of arguments for ptrace" >&5
19824 echo $ECHO_N "checking types of arguments for ptrace... $ECHO_C" >&6; }
19825 if test "${gdb_cv_func_ptrace_args+set}" = set; then
19826 echo $ECHO_N "(cached) $ECHO_C" >&6
19829 for gdb_arg1 in 'int' 'long'; do
19830 for gdb_arg2 in 'pid_t' 'int' 'long'; do
19831 for gdb_arg3 in 'int *' 'caddr_t' 'int' 'long'; do
19832 for gdb_arg4 in 'int' 'long'; do
19833 cat >conftest.$ac_ext <<_ACEOF
19836 cat confdefs.h >>conftest.$ac_ext
19837 cat >>conftest.$ac_ext <<_ACEOF
19838 /* end confdefs.h. */
19839 $gdb_ptrace_headers
19844 extern $gdb_cv_func_ptrace_ret
19845 ptrace ($gdb_arg1, $gdb_arg2, $gdb_arg3, $gdb_arg4);
19851 rm -f conftest.$ac_objext
19852 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
19853 (eval $ac_compile) 2>conftest.er1
19855 grep -v '^ *+' conftest.er1 >conftest.err
19857 cat conftest.err >&5
19858 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19859 (exit $ac_status); } &&
19860 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
19861 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19862 (eval $ac_try) 2>&5
19864 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19865 (exit $ac_status); }; } &&
19866 { ac_try='test -s conftest.$ac_objext'
19867 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19868 (eval $ac_try) 2>&5
19870 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19871 (exit $ac_status); }; }; then
19872 gdb_cv_func_ptrace_args="$gdb_arg1,$gdb_arg2,$gdb_arg3,$gdb_arg4";
19875 echo "$as_me: failed program was:" >&5
19876 sed 's/^/| /' conftest.$ac_ext >&5
19881 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
19882 for gdb_arg5 in 'int *' 'int' 'long'; do
19883 cat >conftest.$ac_ext <<_ACEOF
19886 cat confdefs.h >>conftest.$ac_ext
19887 cat >>conftest.$ac_ext <<_ACEOF
19888 /* end confdefs.h. */
19889 $gdb_ptrace_headers
19894 extern $gdb_cv_func_ptrace_ret
19895 ptrace ($gdb_arg1, $gdb_arg2, $gdb_arg3, $gdb_arg4, $gdb_arg5);
19901 rm -f conftest.$ac_objext
19902 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
19903 (eval $ac_compile) 2>conftest.er1
19905 grep -v '^ *+' conftest.er1 >conftest.err
19907 cat conftest.err >&5
19908 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19909 (exit $ac_status); } &&
19910 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
19911 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19912 (eval $ac_try) 2>&5
19914 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19915 (exit $ac_status); }; } &&
19916 { ac_try='test -s conftest.$ac_objext'
19917 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19918 (eval $ac_try) 2>&5
19920 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19921 (exit $ac_status); }; }; then
19923 gdb_cv_func_ptrace_args="$gdb_arg1,$gdb_arg2,$gdb_arg3,$gdb_arg4,$gdb_arg5";
19926 echo "$as_me: failed program was:" >&5
19927 sed 's/^/| /' conftest.$ac_ext >&5
19932 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
19938 # Provide a safe default value.
19939 : ${gdb_cv_func_ptrace_args='int,int,long,long'}
19942 { echo "$as_me:$LINENO: result: $gdb_cv_func_ptrace_args" >&5
19943 echo "${ECHO_T}$gdb_cv_func_ptrace_args" >&6; }
19944 ac_save_IFS=$IFS; IFS=','
19945 set dummy `echo "$gdb_cv_func_ptrace_args" | sed 's/\*/\*/g'`
19949 cat >>confdefs.h <<_ACEOF
19950 #define PTRACE_TYPE_ARG3 $3
19953 if test -n "$5"; then
19955 cat >>confdefs.h <<_ACEOF
19956 #define PTRACE_TYPE_ARG5 $5
19961 if test "$cross_compiling" = no; then
19962 { echo "$as_me:$LINENO: checking whether setpgrp takes no argument" >&5
19963 echo $ECHO_N "checking whether setpgrp takes no argument... $ECHO_C" >&6; }
19964 if test "${ac_cv_func_setpgrp_void+set}" = set; then
19965 echo $ECHO_N "(cached) $ECHO_C" >&6
19967 if test "$cross_compiling" = yes; then
19968 { { echo "$as_me:$LINENO: error: cannot check setpgrp when cross compiling" >&5
19969 echo "$as_me: error: cannot check setpgrp when cross compiling" >&2;}
19970 { (exit 1); exit 1; }; }
19972 cat >conftest.$ac_ext <<_ACEOF
19975 cat confdefs.h >>conftest.$ac_ext
19976 cat >>conftest.$ac_ext <<_ACEOF
19977 /* end confdefs.h. */
19978 $ac_includes_default
19982 /* If this system has a BSD-style setpgrp which takes arguments,
19983 setpgrp(1, 1) will fail with ESRCH and return -1, in that case
19984 exit successfully. */
19985 return setpgrp (1,1) != -1;
19990 rm -f conftest$ac_exeext
19991 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
19992 (eval $ac_link) 2>&5
19994 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19995 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
19996 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19997 (eval $ac_try) 2>&5
19999 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20000 (exit $ac_status); }; }; then
20001 ac_cv_func_setpgrp_void=no
20003 echo "$as_me: program exited with status $ac_status" >&5
20004 echo "$as_me: failed program was:" >&5
20005 sed 's/^/| /' conftest.$ac_ext >&5
20007 ( exit $ac_status )
20008 ac_cv_func_setpgrp_void=yes
20010 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
20015 { echo "$as_me:$LINENO: result: $ac_cv_func_setpgrp_void" >&5
20016 echo "${ECHO_T}$ac_cv_func_setpgrp_void" >&6; }
20017 if test $ac_cv_func_setpgrp_void = yes; then
20019 cat >>confdefs.h <<\_ACEOF
20020 #define SETPGRP_VOID 1
20026 { echo "$as_me:$LINENO: checking whether setpgrp takes no argument" >&5
20027 echo $ECHO_N "checking whether setpgrp takes no argument... $ECHO_C" >&6; }
20028 if test "${ac_cv_func_setpgrp_void+set}" = set; then
20029 echo $ECHO_N "(cached) $ECHO_C" >&6
20031 cat >conftest.$ac_ext <<_ACEOF
20034 cat confdefs.h >>conftest.$ac_ext
20035 cat >>conftest.$ac_ext <<_ACEOF
20036 /* end confdefs.h. */
20038 #include <unistd.h>
20044 if (setpgrp(1,1) == -1)
20053 rm -f conftest.$ac_objext
20054 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
20055 (eval $ac_compile) 2>conftest.er1
20057 grep -v '^ *+' conftest.er1 >conftest.err
20059 cat conftest.err >&5
20060 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20061 (exit $ac_status); } &&
20062 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
20063 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20064 (eval $ac_try) 2>&5
20066 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20067 (exit $ac_status); }; } &&
20068 { ac_try='test -s conftest.$ac_objext'
20069 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20070 (eval $ac_try) 2>&5
20072 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20073 (exit $ac_status); }; }; then
20074 ac_cv_func_setpgrp_void=no
20076 echo "$as_me: failed program was:" >&5
20077 sed 's/^/| /' conftest.$ac_ext >&5
20079 ac_cv_func_setpgrp_void=yes
20082 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
20084 { echo "$as_me:$LINENO: result: $ac_cv_func_setpgrp_void" >&5
20085 echo "${ECHO_T}$ac_cv_func_setpgrp_void" >&6; }
20086 if test $ac_cv_func_setpgrp_void = yes; then
20087 cat >>confdefs.h <<\_ACEOF
20088 #define SETPGRP_VOID 1
20094 # Check if sigsetjmp is available. Using AC_CHECK_FUNCS won't do
20095 # since sigsetjmp might only be defined as a macro.
20096 { echo "$as_me:$LINENO: checking for sigsetjmp" >&5
20097 echo $ECHO_N "checking for sigsetjmp... $ECHO_C" >&6; }
20098 if test "${gdb_cv_func_sigsetjmp+set}" = set; then
20099 echo $ECHO_N "(cached) $ECHO_C" >&6
20101 cat >conftest.$ac_ext <<_ACEOF
20104 cat confdefs.h >>conftest.$ac_ext
20105 cat >>conftest.$ac_ext <<_ACEOF
20106 /* end confdefs.h. */
20108 #include <setjmp.h>
20113 sigjmp_buf env; while (! sigsetjmp (env, 1)) siglongjmp (env, 1);
20118 rm -f conftest.$ac_objext
20119 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
20120 (eval $ac_compile) 2>conftest.er1
20122 grep -v '^ *+' conftest.er1 >conftest.err
20124 cat conftest.err >&5
20125 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20126 (exit $ac_status); } &&
20127 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
20128 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20129 (eval $ac_try) 2>&5
20131 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20132 (exit $ac_status); }; } &&
20133 { ac_try='test -s conftest.$ac_objext'
20134 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20135 (eval $ac_try) 2>&5
20137 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20138 (exit $ac_status); }; }; then
20139 gdb_cv_func_sigsetjmp=yes
20141 echo "$as_me: failed program was:" >&5
20142 sed 's/^/| /' conftest.$ac_ext >&5
20144 gdb_cv_func_sigsetjmp=no
20147 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
20149 { echo "$as_me:$LINENO: result: $gdb_cv_func_sigsetjmp" >&5
20150 echo "${ECHO_T}$gdb_cv_func_sigsetjmp" >&6; }
20151 if test $gdb_cv_func_sigsetjmp = yes; then
20153 cat >>confdefs.h <<\_ACEOF
20154 #define HAVE_SIGSETJMP 1
20159 # Assume we'll default to using the included libiberty regex.
20160 gdb_use_included_regex=yes
20162 # However, if the system regex is GNU regex, then default to *not*
20163 # using the included regex.
20164 { echo "$as_me:$LINENO: checking for GNU regex" >&5
20165 echo $ECHO_N "checking for GNU regex... $ECHO_C" >&6; }
20166 if test "${gdb_cv_have_gnu_regex+set}" = set; then
20167 echo $ECHO_N "(cached) $ECHO_C" >&6
20169 cat >conftest.$ac_ext <<_ACEOF
20172 cat confdefs.h >>conftest.$ac_ext
20173 cat >>conftest.$ac_ext <<_ACEOF
20174 /* end confdefs.h. */
20175 #include <gnu-versions.h>
20179 #define REGEX_INTERFACE_VERSION 1
20180 #if _GNU_REGEX_INTERFACE_VERSION != REGEX_INTERFACE_VERSION
20181 # error "Version mismatch"
20187 rm -f conftest.$ac_objext
20188 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
20189 (eval $ac_compile) 2>conftest.er1
20191 grep -v '^ *+' conftest.er1 >conftest.err
20193 cat conftest.err >&5
20194 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20195 (exit $ac_status); } &&
20196 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
20197 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20198 (eval $ac_try) 2>&5
20200 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20201 (exit $ac_status); }; } &&
20202 { ac_try='test -s conftest.$ac_objext'
20203 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20204 (eval $ac_try) 2>&5
20206 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20207 (exit $ac_status); }; }; then
20208 gdb_cv_have_gnu_regex=yes
20210 echo "$as_me: failed program was:" >&5
20211 sed 's/^/| /' conftest.$ac_ext >&5
20213 gdb_cv_have_gnu_regex=no
20216 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
20218 { echo "$as_me:$LINENO: result: $gdb_cv_have_gnu_regex" >&5
20219 echo "${ECHO_T}$gdb_cv_have_gnu_regex" >&6; }
20220 if test $gdb_cv_have_gnu_regex = yes; then
20221 gdb_use_included_regex=no
20225 # Check whether --with-included-regex was given.
20226 if test "${with_included_regex+set}" = set; then
20227 withval=$with_included_regex; gdb_with_regex=$withval
20229 gdb_with_regex=$gdb_use_included_regex
20232 if test "$gdb_with_regex" = yes; then
20234 cat >>confdefs.h <<\_ACEOF
20235 #define USE_INCLUDED_REGEX 1
20240 # Check if <sys/proc.h> defines `struct thread' with a td_pcb member.
20241 { echo "$as_me:$LINENO: checking for struct thread.td_pcb" >&5
20242 echo $ECHO_N "checking for struct thread.td_pcb... $ECHO_C" >&6; }
20243 if test "${ac_cv_member_struct_thread_td_pcb+set}" = set; then
20244 echo $ECHO_N "(cached) $ECHO_C" >&6
20246 cat >conftest.$ac_ext <<_ACEOF
20249 cat confdefs.h >>conftest.$ac_ext
20250 cat >>conftest.$ac_ext <<_ACEOF
20251 /* end confdefs.h. */
20252 #include <sys/param.h>
20253 #include <sys/proc.h>
20259 static struct thread ac_aggr;
20260 if (ac_aggr.td_pcb)
20266 rm -f conftest.$ac_objext
20267 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
20268 (eval $ac_compile) 2>conftest.er1
20270 grep -v '^ *+' conftest.er1 >conftest.err
20272 cat conftest.err >&5
20273 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20274 (exit $ac_status); } &&
20275 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
20276 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20277 (eval $ac_try) 2>&5
20279 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20280 (exit $ac_status); }; } &&
20281 { ac_try='test -s conftest.$ac_objext'
20282 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20283 (eval $ac_try) 2>&5
20285 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20286 (exit $ac_status); }; }; then
20287 ac_cv_member_struct_thread_td_pcb=yes
20289 echo "$as_me: failed program was:" >&5
20290 sed 's/^/| /' conftest.$ac_ext >&5
20292 cat >conftest.$ac_ext <<_ACEOF
20295 cat confdefs.h >>conftest.$ac_ext
20296 cat >>conftest.$ac_ext <<_ACEOF
20297 /* end confdefs.h. */
20298 #include <sys/param.h>
20299 #include <sys/proc.h>
20305 static struct thread ac_aggr;
20306 if (sizeof ac_aggr.td_pcb)
20312 rm -f conftest.$ac_objext
20313 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
20314 (eval $ac_compile) 2>conftest.er1
20316 grep -v '^ *+' conftest.er1 >conftest.err
20318 cat conftest.err >&5
20319 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20320 (exit $ac_status); } &&
20321 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
20322 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20323 (eval $ac_try) 2>&5
20325 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20326 (exit $ac_status); }; } &&
20327 { ac_try='test -s conftest.$ac_objext'
20328 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20329 (eval $ac_try) 2>&5
20331 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20332 (exit $ac_status); }; }; then
20333 ac_cv_member_struct_thread_td_pcb=yes
20335 echo "$as_me: failed program was:" >&5
20336 sed 's/^/| /' conftest.$ac_ext >&5
20338 ac_cv_member_struct_thread_td_pcb=no
20341 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
20344 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
20346 { echo "$as_me:$LINENO: result: $ac_cv_member_struct_thread_td_pcb" >&5
20347 echo "${ECHO_T}$ac_cv_member_struct_thread_td_pcb" >&6; }
20348 if test $ac_cv_member_struct_thread_td_pcb = yes; then
20350 cat >>confdefs.h <<_ACEOF
20351 #define HAVE_STRUCT_THREAD_TD_PCB 1
20358 # See if <sys/lwp.h> defines `struct lwp`.
20359 { echo "$as_me:$LINENO: checking for struct lwp" >&5
20360 echo $ECHO_N "checking for struct lwp... $ECHO_C" >&6; }
20361 if test "${gdb_cv_struct_lwp+set}" = set; then
20362 echo $ECHO_N "(cached) $ECHO_C" >&6
20364 cat >conftest.$ac_ext <<_ACEOF
20367 cat confdefs.h >>conftest.$ac_ext
20368 cat >>conftest.$ac_ext <<_ACEOF
20369 /* end confdefs.h. */
20370 #include <sys/param.h>
20371 #include <sys/lwp.h>
20380 rm -f conftest.$ac_objext
20381 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
20382 (eval $ac_compile) 2>conftest.er1
20384 grep -v '^ *+' conftest.er1 >conftest.err
20386 cat conftest.err >&5
20387 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20388 (exit $ac_status); } &&
20389 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
20390 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20391 (eval $ac_try) 2>&5
20393 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20394 (exit $ac_status); }; } &&
20395 { ac_try='test -s conftest.$ac_objext'
20396 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20397 (eval $ac_try) 2>&5
20399 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20400 (exit $ac_status); }; }; then
20401 gdb_cv_struct_lwp=yes
20403 echo "$as_me: failed program was:" >&5
20404 sed 's/^/| /' conftest.$ac_ext >&5
20406 gdb_cv_struct_lwp=no
20409 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
20411 { echo "$as_me:$LINENO: result: $gdb_cv_struct_lwp" >&5
20412 echo "${ECHO_T}$gdb_cv_struct_lwp" >&6; }
20413 if test $gdb_cv_struct_lwp = yes; then
20415 cat >>confdefs.h <<\_ACEOF
20416 #define HAVE_STRUCT_LWP 1
20421 # See if <machine/reg.h> degines `struct reg'.
20422 { echo "$as_me:$LINENO: checking for struct reg in machine/reg.h" >&5
20423 echo $ECHO_N "checking for struct reg in machine/reg.h... $ECHO_C" >&6; }
20424 if test "${gdb_cv_struct_reg+set}" = set; then
20425 echo $ECHO_N "(cached) $ECHO_C" >&6
20427 cat >conftest.$ac_ext <<_ACEOF
20430 cat confdefs.h >>conftest.$ac_ext
20431 cat >>conftest.$ac_ext <<_ACEOF
20432 /* end confdefs.h. */
20433 #include <sys/types.h>
20434 #include <machine/reg.h>
20443 rm -f conftest.$ac_objext
20444 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
20445 (eval $ac_compile) 2>conftest.er1
20447 grep -v '^ *+' conftest.er1 >conftest.err
20449 cat conftest.err >&5
20450 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20451 (exit $ac_status); } &&
20452 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
20453 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20454 (eval $ac_try) 2>&5
20456 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20457 (exit $ac_status); }; } &&
20458 { ac_try='test -s conftest.$ac_objext'
20459 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20460 (eval $ac_try) 2>&5
20462 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20463 (exit $ac_status); }; }; then
20464 gdb_cv_struct_reg=yes
20466 echo "$as_me: failed program was:" >&5
20467 sed 's/^/| /' conftest.$ac_ext >&5
20469 gdb_cv_struct_reg=no
20472 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
20474 { echo "$as_me:$LINENO: result: $gdb_cv_struct_reg" >&5
20475 echo "${ECHO_T}$gdb_cv_struct_reg" >&6; }
20476 if test $gdb_cv_struct_reg = yes; then
20478 cat >>confdefs.h <<\_ACEOF
20479 #define HAVE_STRUCT_REG 1
20484 # See if <machine/reg.h> supports the %fs and %gs i386 segment registers.
20485 # Older i386 BSD's don't have the r_fs and r_gs members of `struct reg'.
20486 { echo "$as_me:$LINENO: checking for struct reg.r_fs" >&5
20487 echo $ECHO_N "checking for struct reg.r_fs... $ECHO_C" >&6; }
20488 if test "${ac_cv_member_struct_reg_r_fs+set}" = set; then
20489 echo $ECHO_N "(cached) $ECHO_C" >&6
20491 cat >conftest.$ac_ext <<_ACEOF
20494 cat confdefs.h >>conftest.$ac_ext
20495 cat >>conftest.$ac_ext <<_ACEOF
20496 /* end confdefs.h. */
20497 #include <machine/reg.h>
20502 static struct reg ac_aggr;
20509 rm -f conftest.$ac_objext
20510 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
20511 (eval $ac_compile) 2>conftest.er1
20513 grep -v '^ *+' conftest.er1 >conftest.err
20515 cat conftest.err >&5
20516 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20517 (exit $ac_status); } &&
20518 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
20519 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20520 (eval $ac_try) 2>&5
20522 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20523 (exit $ac_status); }; } &&
20524 { ac_try='test -s conftest.$ac_objext'
20525 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20526 (eval $ac_try) 2>&5
20528 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20529 (exit $ac_status); }; }; then
20530 ac_cv_member_struct_reg_r_fs=yes
20532 echo "$as_me: failed program was:" >&5
20533 sed 's/^/| /' conftest.$ac_ext >&5
20535 cat >conftest.$ac_ext <<_ACEOF
20538 cat confdefs.h >>conftest.$ac_ext
20539 cat >>conftest.$ac_ext <<_ACEOF
20540 /* end confdefs.h. */
20541 #include <machine/reg.h>
20546 static struct reg ac_aggr;
20547 if (sizeof ac_aggr.r_fs)
20553 rm -f conftest.$ac_objext
20554 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
20555 (eval $ac_compile) 2>conftest.er1
20557 grep -v '^ *+' conftest.er1 >conftest.err
20559 cat conftest.err >&5
20560 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20561 (exit $ac_status); } &&
20562 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
20563 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20564 (eval $ac_try) 2>&5
20566 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20567 (exit $ac_status); }; } &&
20568 { ac_try='test -s conftest.$ac_objext'
20569 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20570 (eval $ac_try) 2>&5
20572 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20573 (exit $ac_status); }; }; then
20574 ac_cv_member_struct_reg_r_fs=yes
20576 echo "$as_me: failed program was:" >&5
20577 sed 's/^/| /' conftest.$ac_ext >&5
20579 ac_cv_member_struct_reg_r_fs=no
20582 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
20585 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
20587 { echo "$as_me:$LINENO: result: $ac_cv_member_struct_reg_r_fs" >&5
20588 echo "${ECHO_T}$ac_cv_member_struct_reg_r_fs" >&6; }
20589 if test $ac_cv_member_struct_reg_r_fs = yes; then
20591 cat >>confdefs.h <<_ACEOF
20592 #define HAVE_STRUCT_REG_R_FS 1
20597 { echo "$as_me:$LINENO: checking for struct reg.r_gs" >&5
20598 echo $ECHO_N "checking for struct reg.r_gs... $ECHO_C" >&6; }
20599 if test "${ac_cv_member_struct_reg_r_gs+set}" = set; then
20600 echo $ECHO_N "(cached) $ECHO_C" >&6
20602 cat >conftest.$ac_ext <<_ACEOF
20605 cat confdefs.h >>conftest.$ac_ext
20606 cat >>conftest.$ac_ext <<_ACEOF
20607 /* end confdefs.h. */
20608 #include <machine/reg.h>
20613 static struct reg ac_aggr;
20620 rm -f conftest.$ac_objext
20621 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
20622 (eval $ac_compile) 2>conftest.er1
20624 grep -v '^ *+' conftest.er1 >conftest.err
20626 cat conftest.err >&5
20627 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20628 (exit $ac_status); } &&
20629 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
20630 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20631 (eval $ac_try) 2>&5
20633 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20634 (exit $ac_status); }; } &&
20635 { ac_try='test -s conftest.$ac_objext'
20636 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20637 (eval $ac_try) 2>&5
20639 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20640 (exit $ac_status); }; }; then
20641 ac_cv_member_struct_reg_r_gs=yes
20643 echo "$as_me: failed program was:" >&5
20644 sed 's/^/| /' conftest.$ac_ext >&5
20646 cat >conftest.$ac_ext <<_ACEOF
20649 cat confdefs.h >>conftest.$ac_ext
20650 cat >>conftest.$ac_ext <<_ACEOF
20651 /* end confdefs.h. */
20652 #include <machine/reg.h>
20657 static struct reg ac_aggr;
20658 if (sizeof ac_aggr.r_gs)
20664 rm -f conftest.$ac_objext
20665 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
20666 (eval $ac_compile) 2>conftest.er1
20668 grep -v '^ *+' conftest.er1 >conftest.err
20670 cat conftest.err >&5
20671 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20672 (exit $ac_status); } &&
20673 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
20674 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20675 (eval $ac_try) 2>&5
20677 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20678 (exit $ac_status); }; } &&
20679 { ac_try='test -s conftest.$ac_objext'
20680 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20681 (eval $ac_try) 2>&5
20683 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20684 (exit $ac_status); }; }; then
20685 ac_cv_member_struct_reg_r_gs=yes
20687 echo "$as_me: failed program was:" >&5
20688 sed 's/^/| /' conftest.$ac_ext >&5
20690 ac_cv_member_struct_reg_r_gs=no
20693 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
20696 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
20698 { echo "$as_me:$LINENO: result: $ac_cv_member_struct_reg_r_gs" >&5
20699 echo "${ECHO_T}$ac_cv_member_struct_reg_r_gs" >&6; }
20700 if test $ac_cv_member_struct_reg_r_gs = yes; then
20702 cat >>confdefs.h <<_ACEOF
20703 #define HAVE_STRUCT_REG_R_GS 1
20710 # See if <sys/ptrace.h> provides the PTRACE_GETREGS request.
20711 { echo "$as_me:$LINENO: checking for PTRACE_GETREGS" >&5
20712 echo $ECHO_N "checking for PTRACE_GETREGS... $ECHO_C" >&6; }
20713 if test "${gdb_cv_have_ptrace_getregs+set}" = set; then
20714 echo $ECHO_N "(cached) $ECHO_C" >&6
20716 cat >conftest.$ac_ext <<_ACEOF
20719 cat confdefs.h >>conftest.$ac_ext
20720 cat >>conftest.$ac_ext <<_ACEOF
20721 /* end confdefs.h. */
20722 #include <sys/ptrace.h>
20731 rm -f conftest.$ac_objext
20732 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
20733 (eval $ac_compile) 2>conftest.er1
20735 grep -v '^ *+' conftest.er1 >conftest.err
20737 cat conftest.err >&5
20738 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20739 (exit $ac_status); } &&
20740 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
20741 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20742 (eval $ac_try) 2>&5
20744 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20745 (exit $ac_status); }; } &&
20746 { ac_try='test -s conftest.$ac_objext'
20747 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20748 (eval $ac_try) 2>&5
20750 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20751 (exit $ac_status); }; }; then
20752 gdb_cv_have_ptrace_getregs=yes
20754 echo "$as_me: failed program was:" >&5
20755 sed 's/^/| /' conftest.$ac_ext >&5
20757 gdb_cv_have_ptrace_getregs=no
20760 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
20763 { echo "$as_me:$LINENO: result: $gdb_cv_have_ptrace_getregs" >&5
20764 echo "${ECHO_T}$gdb_cv_have_ptrace_getregs" >&6; }
20765 if test $gdb_cv_have_ptrace_getregs = yes; then
20767 cat >>confdefs.h <<\_ACEOF
20768 #define HAVE_PTRACE_GETREGS 1
20773 # See if <sys/ptrace.h> provides the PTRACE_GETFPXREGS request.
20774 { echo "$as_me:$LINENO: checking for PTRACE_GETFPXREGS" >&5
20775 echo $ECHO_N "checking for PTRACE_GETFPXREGS... $ECHO_C" >&6; }
20776 if test "${gdb_cv_have_ptrace_getfpxregs+set}" = set; then
20777 echo $ECHO_N "(cached) $ECHO_C" >&6
20779 cat >conftest.$ac_ext <<_ACEOF
20782 cat confdefs.h >>conftest.$ac_ext
20783 cat >>conftest.$ac_ext <<_ACEOF
20784 /* end confdefs.h. */
20785 #include <sys/ptrace.h>
20794 rm -f conftest.$ac_objext
20795 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
20796 (eval $ac_compile) 2>conftest.er1
20798 grep -v '^ *+' conftest.er1 >conftest.err
20800 cat conftest.err >&5
20801 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20802 (exit $ac_status); } &&
20803 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
20804 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20805 (eval $ac_try) 2>&5
20807 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20808 (exit $ac_status); }; } &&
20809 { ac_try='test -s conftest.$ac_objext'
20810 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20811 (eval $ac_try) 2>&5
20813 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20814 (exit $ac_status); }; }; then
20815 gdb_cv_have_ptrace_getfpxregs=yes
20817 echo "$as_me: failed program was:" >&5
20818 sed 's/^/| /' conftest.$ac_ext >&5
20820 gdb_cv_have_ptrace_getfpxregs=no
20823 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
20826 { echo "$as_me:$LINENO: result: $gdb_cv_have_ptrace_getfpxregs" >&5
20827 echo "${ECHO_T}$gdb_cv_have_ptrace_getfpxregs" >&6; }
20828 if test $gdb_cv_have_ptrace_getfpxregs = yes; then
20830 cat >>confdefs.h <<\_ACEOF
20831 #define HAVE_PTRACE_GETFPXREGS 1
20836 # See if <sys/ptrace.h> provides the PT_GETDBREGS request.
20837 { echo "$as_me:$LINENO: checking for PT_GETDBREGS" >&5
20838 echo $ECHO_N "checking for PT_GETDBREGS... $ECHO_C" >&6; }
20839 if test "${gdb_cv_have_pt_getdbregs+set}" = set; then
20840 echo $ECHO_N "(cached) $ECHO_C" >&6
20842 cat >conftest.$ac_ext <<_ACEOF
20845 cat confdefs.h >>conftest.$ac_ext
20846 cat >>conftest.$ac_ext <<_ACEOF
20847 /* end confdefs.h. */
20848 #include <sys/types.h>
20849 #include <sys/ptrace.h>
20858 rm -f conftest.$ac_objext
20859 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
20860 (eval $ac_compile) 2>conftest.er1
20862 grep -v '^ *+' conftest.er1 >conftest.err
20864 cat conftest.err >&5
20865 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20866 (exit $ac_status); } &&
20867 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
20868 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20869 (eval $ac_try) 2>&5
20871 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20872 (exit $ac_status); }; } &&
20873 { ac_try='test -s conftest.$ac_objext'
20874 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20875 (eval $ac_try) 2>&5
20877 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20878 (exit $ac_status); }; }; then
20879 gdb_cv_have_pt_getdbregs=yes
20881 echo "$as_me: failed program was:" >&5
20882 sed 's/^/| /' conftest.$ac_ext >&5
20884 gdb_cv_have_pt_getdbregs=no
20887 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
20890 { echo "$as_me:$LINENO: result: $gdb_cv_have_pt_getdbregs" >&5
20891 echo "${ECHO_T}$gdb_cv_have_pt_getdbregs" >&6; }
20892 if test $gdb_cv_have_pt_getdbregs = yes; then
20894 cat >>confdefs.h <<\_ACEOF
20895 #define HAVE_PT_GETDBREGS 1
20900 # See if <sys/ptrace.h> provides the PT_GETXMMREGS request.
20901 { echo "$as_me:$LINENO: checking for PT_GETXMMREGS" >&5
20902 echo $ECHO_N "checking for PT_GETXMMREGS... $ECHO_C" >&6; }
20903 if test "${gdb_cv_have_pt_getxmmregs+set}" = set; then
20904 echo $ECHO_N "(cached) $ECHO_C" >&6
20906 cat >conftest.$ac_ext <<_ACEOF
20909 cat confdefs.h >>conftest.$ac_ext
20910 cat >>conftest.$ac_ext <<_ACEOF
20911 /* end confdefs.h. */
20912 #include <sys/types.h>
20913 #include <sys/ptrace.h>
20922 rm -f conftest.$ac_objext
20923 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
20924 (eval $ac_compile) 2>conftest.er1
20926 grep -v '^ *+' conftest.er1 >conftest.err
20928 cat conftest.err >&5
20929 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20930 (exit $ac_status); } &&
20931 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
20932 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20933 (eval $ac_try) 2>&5
20935 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20936 (exit $ac_status); }; } &&
20937 { ac_try='test -s conftest.$ac_objext'
20938 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20939 (eval $ac_try) 2>&5
20941 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20942 (exit $ac_status); }; }; then
20943 gdb_cv_have_pt_getxmmregs=yes
20945 echo "$as_me: failed program was:" >&5
20946 sed 's/^/| /' conftest.$ac_ext >&5
20948 gdb_cv_have_pt_getxmmregs=no
20951 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
20954 { echo "$as_me:$LINENO: result: $gdb_cv_have_pt_getxmmregs" >&5
20955 echo "${ECHO_T}$gdb_cv_have_pt_getxmmregs" >&6; }
20956 if test $gdb_cv_have_pt_getxmmregs = yes; then
20958 cat >>confdefs.h <<\_ACEOF
20959 #define HAVE_PT_GETXMMREGS 1
20964 # If we are configured native on GNU/Linux, work around problems with
20966 # Also detect which type of /proc is in use, such as for Unixware or Solaris.
20968 if test "${target}" = "${host}"; then
20970 i[3456]86-*-linux*)
20972 cat >>confdefs.h <<\_ACEOF
20973 #define START_INFERIOR_TRAPS_EXPECTED 2
20977 cat >>confdefs.h <<\_ACEOF
20978 #define sys_quotactl 1
20982 *-*-unixware* | *-*-sysv4.2* | *-*-sysv5* | *-*-interix* )
20984 cat >>confdefs.h <<\_ACEOF
20985 #define NEW_PROC_API 1
20989 *-*-solaris2.[6789] | *-*-solaris2.1[0-9])
20991 cat >>confdefs.h <<\_ACEOF
20992 #define NEW_PROC_API 1
20997 # Work around <sys/proc.h> needing _KMEMUSER problem on IRIX 5.
20999 cat >>confdefs.h <<\_ACEOF
21000 #define _KMEMUSER 1
21007 if test "$ac_cv_header_sys_procfs_h" = yes; then
21008 { echo "$as_me:$LINENO: checking for pstatus_t in sys/procfs.h" >&5
21009 echo $ECHO_N "checking for pstatus_t in sys/procfs.h... $ECHO_C" >&6; }
21010 if test "${bfd_cv_have_sys_procfs_type_pstatus_t+set}" = set; then
21011 echo $ECHO_N "(cached) $ECHO_C" >&6
21013 cat >conftest.$ac_ext <<_ACEOF
21016 cat confdefs.h >>conftest.$ac_ext
21017 cat >>conftest.$ac_ext <<_ACEOF
21018 /* end confdefs.h. */
21021 #include <sys/procfs.h>
21030 rm -f conftest.$ac_objext
21031 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
21032 (eval $ac_compile) 2>conftest.er1
21034 grep -v '^ *+' conftest.er1 >conftest.err
21036 cat conftest.err >&5
21037 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21038 (exit $ac_status); } &&
21039 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
21040 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21041 (eval $ac_try) 2>&5
21043 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21044 (exit $ac_status); }; } &&
21045 { ac_try='test -s conftest.$ac_objext'
21046 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21047 (eval $ac_try) 2>&5
21049 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21050 (exit $ac_status); }; }; then
21051 bfd_cv_have_sys_procfs_type_pstatus_t=yes
21053 echo "$as_me: failed program was:" >&5
21054 sed 's/^/| /' conftest.$ac_ext >&5
21056 bfd_cv_have_sys_procfs_type_pstatus_t=no
21060 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
21063 if test $bfd_cv_have_sys_procfs_type_pstatus_t = yes; then
21065 cat >>confdefs.h <<\_ACEOF
21066 #define HAVE_PSTATUS_T 1
21070 { echo "$as_me:$LINENO: result: $bfd_cv_have_sys_procfs_type_pstatus_t" >&5
21071 echo "${ECHO_T}$bfd_cv_have_sys_procfs_type_pstatus_t" >&6; }
21073 { echo "$as_me:$LINENO: checking for prrun_t in sys/procfs.h" >&5
21074 echo $ECHO_N "checking for prrun_t in sys/procfs.h... $ECHO_C" >&6; }
21075 if test "${bfd_cv_have_sys_procfs_type_prrun_t+set}" = set; then
21076 echo $ECHO_N "(cached) $ECHO_C" >&6
21078 cat >conftest.$ac_ext <<_ACEOF
21081 cat confdefs.h >>conftest.$ac_ext
21082 cat >>conftest.$ac_ext <<_ACEOF
21083 /* end confdefs.h. */
21086 #include <sys/procfs.h>
21095 rm -f conftest.$ac_objext
21096 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
21097 (eval $ac_compile) 2>conftest.er1
21099 grep -v '^ *+' conftest.er1 >conftest.err
21101 cat conftest.err >&5
21102 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21103 (exit $ac_status); } &&
21104 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
21105 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21106 (eval $ac_try) 2>&5
21108 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21109 (exit $ac_status); }; } &&
21110 { ac_try='test -s conftest.$ac_objext'
21111 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21112 (eval $ac_try) 2>&5
21114 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21115 (exit $ac_status); }; }; then
21116 bfd_cv_have_sys_procfs_type_prrun_t=yes
21118 echo "$as_me: failed program was:" >&5
21119 sed 's/^/| /' conftest.$ac_ext >&5
21121 bfd_cv_have_sys_procfs_type_prrun_t=no
21125 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
21128 if test $bfd_cv_have_sys_procfs_type_prrun_t = yes; then
21130 cat >>confdefs.h <<\_ACEOF
21131 #define HAVE_PRRUN_T 1
21135 { echo "$as_me:$LINENO: result: $bfd_cv_have_sys_procfs_type_prrun_t" >&5
21136 echo "${ECHO_T}$bfd_cv_have_sys_procfs_type_prrun_t" >&6; }
21138 { echo "$as_me:$LINENO: checking for gregset_t in sys/procfs.h" >&5
21139 echo $ECHO_N "checking for gregset_t in sys/procfs.h... $ECHO_C" >&6; }
21140 if test "${bfd_cv_have_sys_procfs_type_gregset_t+set}" = set; then
21141 echo $ECHO_N "(cached) $ECHO_C" >&6
21143 cat >conftest.$ac_ext <<_ACEOF
21146 cat confdefs.h >>conftest.$ac_ext
21147 cat >>conftest.$ac_ext <<_ACEOF
21148 /* end confdefs.h. */
21151 #include <sys/procfs.h>
21160 rm -f conftest.$ac_objext
21161 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
21162 (eval $ac_compile) 2>conftest.er1
21164 grep -v '^ *+' conftest.er1 >conftest.err
21166 cat conftest.err >&5
21167 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21168 (exit $ac_status); } &&
21169 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
21170 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21171 (eval $ac_try) 2>&5
21173 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21174 (exit $ac_status); }; } &&
21175 { ac_try='test -s conftest.$ac_objext'
21176 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21177 (eval $ac_try) 2>&5
21179 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21180 (exit $ac_status); }; }; then
21181 bfd_cv_have_sys_procfs_type_gregset_t=yes
21183 echo "$as_me: failed program was:" >&5
21184 sed 's/^/| /' conftest.$ac_ext >&5
21186 bfd_cv_have_sys_procfs_type_gregset_t=no
21190 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
21193 if test $bfd_cv_have_sys_procfs_type_gregset_t = yes; then
21195 cat >>confdefs.h <<\_ACEOF
21196 #define HAVE_GREGSET_T 1
21200 { echo "$as_me:$LINENO: result: $bfd_cv_have_sys_procfs_type_gregset_t" >&5
21201 echo "${ECHO_T}$bfd_cv_have_sys_procfs_type_gregset_t" >&6; }
21203 { echo "$as_me:$LINENO: checking for fpregset_t in sys/procfs.h" >&5
21204 echo $ECHO_N "checking for fpregset_t in sys/procfs.h... $ECHO_C" >&6; }
21205 if test "${bfd_cv_have_sys_procfs_type_fpregset_t+set}" = set; then
21206 echo $ECHO_N "(cached) $ECHO_C" >&6
21208 cat >conftest.$ac_ext <<_ACEOF
21211 cat confdefs.h >>conftest.$ac_ext
21212 cat >>conftest.$ac_ext <<_ACEOF
21213 /* end confdefs.h. */
21216 #include <sys/procfs.h>
21225 rm -f conftest.$ac_objext
21226 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
21227 (eval $ac_compile) 2>conftest.er1
21229 grep -v '^ *+' conftest.er1 >conftest.err
21231 cat conftest.err >&5
21232 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21233 (exit $ac_status); } &&
21234 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
21235 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21236 (eval $ac_try) 2>&5
21238 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21239 (exit $ac_status); }; } &&
21240 { ac_try='test -s conftest.$ac_objext'
21241 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21242 (eval $ac_try) 2>&5
21244 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21245 (exit $ac_status); }; }; then
21246 bfd_cv_have_sys_procfs_type_fpregset_t=yes
21248 echo "$as_me: failed program was:" >&5
21249 sed 's/^/| /' conftest.$ac_ext >&5
21251 bfd_cv_have_sys_procfs_type_fpregset_t=no
21255 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
21258 if test $bfd_cv_have_sys_procfs_type_fpregset_t = yes; then
21260 cat >>confdefs.h <<\_ACEOF
21261 #define HAVE_FPREGSET_T 1
21265 { echo "$as_me:$LINENO: result: $bfd_cv_have_sys_procfs_type_fpregset_t" >&5
21266 echo "${ECHO_T}$bfd_cv_have_sys_procfs_type_fpregset_t" >&6; }
21268 { echo "$as_me:$LINENO: checking for prgregset_t in sys/procfs.h" >&5
21269 echo $ECHO_N "checking for prgregset_t in sys/procfs.h... $ECHO_C" >&6; }
21270 if test "${bfd_cv_have_sys_procfs_type_prgregset_t+set}" = set; then
21271 echo $ECHO_N "(cached) $ECHO_C" >&6
21273 cat >conftest.$ac_ext <<_ACEOF
21276 cat confdefs.h >>conftest.$ac_ext
21277 cat >>conftest.$ac_ext <<_ACEOF
21278 /* end confdefs.h. */
21281 #include <sys/procfs.h>
21290 rm -f conftest.$ac_objext
21291 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
21292 (eval $ac_compile) 2>conftest.er1
21294 grep -v '^ *+' conftest.er1 >conftest.err
21296 cat conftest.err >&5
21297 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21298 (exit $ac_status); } &&
21299 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
21300 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21301 (eval $ac_try) 2>&5
21303 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21304 (exit $ac_status); }; } &&
21305 { ac_try='test -s conftest.$ac_objext'
21306 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21307 (eval $ac_try) 2>&5
21309 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21310 (exit $ac_status); }; }; then
21311 bfd_cv_have_sys_procfs_type_prgregset_t=yes
21313 echo "$as_me: failed program was:" >&5
21314 sed 's/^/| /' conftest.$ac_ext >&5
21316 bfd_cv_have_sys_procfs_type_prgregset_t=no
21320 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
21323 if test $bfd_cv_have_sys_procfs_type_prgregset_t = yes; then
21325 cat >>confdefs.h <<\_ACEOF
21326 #define HAVE_PRGREGSET_T 1
21330 { echo "$as_me:$LINENO: result: $bfd_cv_have_sys_procfs_type_prgregset_t" >&5
21331 echo "${ECHO_T}$bfd_cv_have_sys_procfs_type_prgregset_t" >&6; }
21333 { echo "$as_me:$LINENO: checking for prfpregset_t in sys/procfs.h" >&5
21334 echo $ECHO_N "checking for prfpregset_t in sys/procfs.h... $ECHO_C" >&6; }
21335 if test "${bfd_cv_have_sys_procfs_type_prfpregset_t+set}" = set; then
21336 echo $ECHO_N "(cached) $ECHO_C" >&6
21338 cat >conftest.$ac_ext <<_ACEOF
21341 cat confdefs.h >>conftest.$ac_ext
21342 cat >>conftest.$ac_ext <<_ACEOF
21343 /* end confdefs.h. */
21346 #include <sys/procfs.h>
21355 rm -f conftest.$ac_objext
21356 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
21357 (eval $ac_compile) 2>conftest.er1
21359 grep -v '^ *+' conftest.er1 >conftest.err
21361 cat conftest.err >&5
21362 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21363 (exit $ac_status); } &&
21364 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
21365 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21366 (eval $ac_try) 2>&5
21368 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21369 (exit $ac_status); }; } &&
21370 { ac_try='test -s conftest.$ac_objext'
21371 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21372 (eval $ac_try) 2>&5
21374 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21375 (exit $ac_status); }; }; then
21376 bfd_cv_have_sys_procfs_type_prfpregset_t=yes
21378 echo "$as_me: failed program was:" >&5
21379 sed 's/^/| /' conftest.$ac_ext >&5
21381 bfd_cv_have_sys_procfs_type_prfpregset_t=no
21385 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
21388 if test $bfd_cv_have_sys_procfs_type_prfpregset_t = yes; then
21390 cat >>confdefs.h <<\_ACEOF
21391 #define HAVE_PRFPREGSET_T 1
21395 { echo "$as_me:$LINENO: result: $bfd_cv_have_sys_procfs_type_prfpregset_t" >&5
21396 echo "${ECHO_T}$bfd_cv_have_sys_procfs_type_prfpregset_t" >&6; }
21398 { echo "$as_me:$LINENO: checking for prgregset32_t in sys/procfs.h" >&5
21399 echo $ECHO_N "checking for prgregset32_t in sys/procfs.h... $ECHO_C" >&6; }
21400 if test "${bfd_cv_have_sys_procfs_type_prgregset32_t+set}" = set; then
21401 echo $ECHO_N "(cached) $ECHO_C" >&6
21403 cat >conftest.$ac_ext <<_ACEOF
21406 cat confdefs.h >>conftest.$ac_ext
21407 cat >>conftest.$ac_ext <<_ACEOF
21408 /* end confdefs.h. */
21411 #include <sys/procfs.h>
21420 rm -f conftest.$ac_objext
21421 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
21422 (eval $ac_compile) 2>conftest.er1
21424 grep -v '^ *+' conftest.er1 >conftest.err
21426 cat conftest.err >&5
21427 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21428 (exit $ac_status); } &&
21429 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
21430 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21431 (eval $ac_try) 2>&5
21433 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21434 (exit $ac_status); }; } &&
21435 { ac_try='test -s conftest.$ac_objext'
21436 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21437 (eval $ac_try) 2>&5
21439 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21440 (exit $ac_status); }; }; then
21441 bfd_cv_have_sys_procfs_type_prgregset32_t=yes
21443 echo "$as_me: failed program was:" >&5
21444 sed 's/^/| /' conftest.$ac_ext >&5
21446 bfd_cv_have_sys_procfs_type_prgregset32_t=no
21450 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
21453 if test $bfd_cv_have_sys_procfs_type_prgregset32_t = yes; then
21455 cat >>confdefs.h <<\_ACEOF
21456 #define HAVE_PRGREGSET32_T 1
21460 { echo "$as_me:$LINENO: result: $bfd_cv_have_sys_procfs_type_prgregset32_t" >&5
21461 echo "${ECHO_T}$bfd_cv_have_sys_procfs_type_prgregset32_t" >&6; }
21463 { echo "$as_me:$LINENO: checking for prfpregset32_t in sys/procfs.h" >&5
21464 echo $ECHO_N "checking for prfpregset32_t in sys/procfs.h... $ECHO_C" >&6; }
21465 if test "${bfd_cv_have_sys_procfs_type_prfpregset32_t+set}" = set; then
21466 echo $ECHO_N "(cached) $ECHO_C" >&6
21468 cat >conftest.$ac_ext <<_ACEOF
21471 cat confdefs.h >>conftest.$ac_ext
21472 cat >>conftest.$ac_ext <<_ACEOF
21473 /* end confdefs.h. */
21476 #include <sys/procfs.h>
21480 prfpregset32_t avar
21485 rm -f conftest.$ac_objext
21486 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
21487 (eval $ac_compile) 2>conftest.er1
21489 grep -v '^ *+' conftest.er1 >conftest.err
21491 cat conftest.err >&5
21492 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21493 (exit $ac_status); } &&
21494 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
21495 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21496 (eval $ac_try) 2>&5
21498 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21499 (exit $ac_status); }; } &&
21500 { ac_try='test -s conftest.$ac_objext'
21501 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21502 (eval $ac_try) 2>&5
21504 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21505 (exit $ac_status); }; }; then
21506 bfd_cv_have_sys_procfs_type_prfpregset32_t=yes
21508 echo "$as_me: failed program was:" >&5
21509 sed 's/^/| /' conftest.$ac_ext >&5
21511 bfd_cv_have_sys_procfs_type_prfpregset32_t=no
21515 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
21518 if test $bfd_cv_have_sys_procfs_type_prfpregset32_t = yes; then
21520 cat >>confdefs.h <<\_ACEOF
21521 #define HAVE_PRFPREGSET32_T 1
21525 { echo "$as_me:$LINENO: result: $bfd_cv_have_sys_procfs_type_prfpregset32_t" >&5
21526 echo "${ECHO_T}$bfd_cv_have_sys_procfs_type_prfpregset32_t" >&6; }
21528 { echo "$as_me:$LINENO: checking for lwpid_t in sys/procfs.h" >&5
21529 echo $ECHO_N "checking for lwpid_t in sys/procfs.h... $ECHO_C" >&6; }
21530 if test "${bfd_cv_have_sys_procfs_type_lwpid_t+set}" = set; then
21531 echo $ECHO_N "(cached) $ECHO_C" >&6
21533 cat >conftest.$ac_ext <<_ACEOF
21536 cat confdefs.h >>conftest.$ac_ext
21537 cat >>conftest.$ac_ext <<_ACEOF
21538 /* end confdefs.h. */
21541 #include <sys/procfs.h>
21550 rm -f conftest.$ac_objext
21551 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
21552 (eval $ac_compile) 2>conftest.er1
21554 grep -v '^ *+' conftest.er1 >conftest.err
21556 cat conftest.err >&5
21557 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21558 (exit $ac_status); } &&
21559 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
21560 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21561 (eval $ac_try) 2>&5
21563 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21564 (exit $ac_status); }; } &&
21565 { ac_try='test -s conftest.$ac_objext'
21566 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21567 (eval $ac_try) 2>&5
21569 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21570 (exit $ac_status); }; }; then
21571 bfd_cv_have_sys_procfs_type_lwpid_t=yes
21573 echo "$as_me: failed program was:" >&5
21574 sed 's/^/| /' conftest.$ac_ext >&5
21576 bfd_cv_have_sys_procfs_type_lwpid_t=no
21580 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
21583 if test $bfd_cv_have_sys_procfs_type_lwpid_t = yes; then
21585 cat >>confdefs.h <<\_ACEOF
21586 #define HAVE_LWPID_T 1
21590 { echo "$as_me:$LINENO: result: $bfd_cv_have_sys_procfs_type_lwpid_t" >&5
21591 echo "${ECHO_T}$bfd_cv_have_sys_procfs_type_lwpid_t" >&6; }
21593 { echo "$as_me:$LINENO: checking for psaddr_t in sys/procfs.h" >&5
21594 echo $ECHO_N "checking for psaddr_t in sys/procfs.h... $ECHO_C" >&6; }
21595 if test "${bfd_cv_have_sys_procfs_type_psaddr_t+set}" = set; then
21596 echo $ECHO_N "(cached) $ECHO_C" >&6
21598 cat >conftest.$ac_ext <<_ACEOF
21601 cat confdefs.h >>conftest.$ac_ext
21602 cat >>conftest.$ac_ext <<_ACEOF
21603 /* end confdefs.h. */
21606 #include <sys/procfs.h>
21615 rm -f conftest.$ac_objext
21616 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
21617 (eval $ac_compile) 2>conftest.er1
21619 grep -v '^ *+' conftest.er1 >conftest.err
21621 cat conftest.err >&5
21622 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21623 (exit $ac_status); } &&
21624 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
21625 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21626 (eval $ac_try) 2>&5
21628 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21629 (exit $ac_status); }; } &&
21630 { ac_try='test -s conftest.$ac_objext'
21631 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21632 (eval $ac_try) 2>&5
21634 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21635 (exit $ac_status); }; }; then
21636 bfd_cv_have_sys_procfs_type_psaddr_t=yes
21638 echo "$as_me: failed program was:" >&5
21639 sed 's/^/| /' conftest.$ac_ext >&5
21641 bfd_cv_have_sys_procfs_type_psaddr_t=no
21645 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
21648 if test $bfd_cv_have_sys_procfs_type_psaddr_t = yes; then
21650 cat >>confdefs.h <<\_ACEOF
21651 #define HAVE_PSADDR_T 1
21655 { echo "$as_me:$LINENO: result: $bfd_cv_have_sys_procfs_type_psaddr_t" >&5
21656 echo "${ECHO_T}$bfd_cv_have_sys_procfs_type_psaddr_t" >&6; }
21658 { echo "$as_me:$LINENO: checking for prsysent_t in sys/procfs.h" >&5
21659 echo $ECHO_N "checking for prsysent_t in sys/procfs.h... $ECHO_C" >&6; }
21660 if test "${bfd_cv_have_sys_procfs_type_prsysent_t+set}" = set; then
21661 echo $ECHO_N "(cached) $ECHO_C" >&6
21663 cat >conftest.$ac_ext <<_ACEOF
21666 cat confdefs.h >>conftest.$ac_ext
21667 cat >>conftest.$ac_ext <<_ACEOF
21668 /* end confdefs.h. */
21671 #include <sys/procfs.h>
21680 rm -f conftest.$ac_objext
21681 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&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 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
21690 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21691 (eval $ac_try) 2>&5
21693 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21694 (exit $ac_status); }; } &&
21695 { ac_try='test -s conftest.$ac_objext'
21696 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21697 (eval $ac_try) 2>&5
21699 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21700 (exit $ac_status); }; }; then
21701 bfd_cv_have_sys_procfs_type_prsysent_t=yes
21703 echo "$as_me: failed program was:" >&5
21704 sed 's/^/| /' conftest.$ac_ext >&5
21706 bfd_cv_have_sys_procfs_type_prsysent_t=no
21710 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
21713 if test $bfd_cv_have_sys_procfs_type_prsysent_t = yes; then
21715 cat >>confdefs.h <<\_ACEOF
21716 #define HAVE_PRSYSENT_T 1
21720 { echo "$as_me:$LINENO: result: $bfd_cv_have_sys_procfs_type_prsysent_t" >&5
21721 echo "${ECHO_T}$bfd_cv_have_sys_procfs_type_prsysent_t" >&6; }
21723 { echo "$as_me:$LINENO: checking for pr_sigset_t in sys/procfs.h" >&5
21724 echo $ECHO_N "checking for pr_sigset_t in sys/procfs.h... $ECHO_C" >&6; }
21725 if test "${bfd_cv_have_sys_procfs_type_pr_sigset_t+set}" = set; then
21726 echo $ECHO_N "(cached) $ECHO_C" >&6
21728 cat >conftest.$ac_ext <<_ACEOF
21731 cat confdefs.h >>conftest.$ac_ext
21732 cat >>conftest.$ac_ext <<_ACEOF
21733 /* end confdefs.h. */
21736 #include <sys/procfs.h>
21745 rm -f conftest.$ac_objext
21746 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
21747 (eval $ac_compile) 2>conftest.er1
21749 grep -v '^ *+' conftest.er1 >conftest.err
21751 cat conftest.err >&5
21752 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21753 (exit $ac_status); } &&
21754 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
21755 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21756 (eval $ac_try) 2>&5
21758 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21759 (exit $ac_status); }; } &&
21760 { ac_try='test -s conftest.$ac_objext'
21761 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21762 (eval $ac_try) 2>&5
21764 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21765 (exit $ac_status); }; }; then
21766 bfd_cv_have_sys_procfs_type_pr_sigset_t=yes
21768 echo "$as_me: failed program was:" >&5
21769 sed 's/^/| /' conftest.$ac_ext >&5
21771 bfd_cv_have_sys_procfs_type_pr_sigset_t=no
21775 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
21778 if test $bfd_cv_have_sys_procfs_type_pr_sigset_t = yes; then
21780 cat >>confdefs.h <<\_ACEOF
21781 #define HAVE_PR_SIGSET_T 1
21785 { echo "$as_me:$LINENO: result: $bfd_cv_have_sys_procfs_type_pr_sigset_t" >&5
21786 echo "${ECHO_T}$bfd_cv_have_sys_procfs_type_pr_sigset_t" >&6; }
21788 { echo "$as_me:$LINENO: checking for pr_sigaction64_t in sys/procfs.h" >&5
21789 echo $ECHO_N "checking for pr_sigaction64_t in sys/procfs.h... $ECHO_C" >&6; }
21790 if test "${bfd_cv_have_sys_procfs_type_pr_sigaction64_t+set}" = set; then
21791 echo $ECHO_N "(cached) $ECHO_C" >&6
21793 cat >conftest.$ac_ext <<_ACEOF
21796 cat confdefs.h >>conftest.$ac_ext
21797 cat >>conftest.$ac_ext <<_ACEOF
21798 /* end confdefs.h. */
21801 #include <sys/procfs.h>
21805 pr_sigaction64_t avar
21810 rm -f conftest.$ac_objext
21811 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
21812 (eval $ac_compile) 2>conftest.er1
21814 grep -v '^ *+' conftest.er1 >conftest.err
21816 cat conftest.err >&5
21817 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21818 (exit $ac_status); } &&
21819 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
21820 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21821 (eval $ac_try) 2>&5
21823 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21824 (exit $ac_status); }; } &&
21825 { ac_try='test -s conftest.$ac_objext'
21826 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21827 (eval $ac_try) 2>&5
21829 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21830 (exit $ac_status); }; }; then
21831 bfd_cv_have_sys_procfs_type_pr_sigaction64_t=yes
21833 echo "$as_me: failed program was:" >&5
21834 sed 's/^/| /' conftest.$ac_ext >&5
21836 bfd_cv_have_sys_procfs_type_pr_sigaction64_t=no
21840 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
21843 if test $bfd_cv_have_sys_procfs_type_pr_sigaction64_t = yes; then
21845 cat >>confdefs.h <<\_ACEOF
21846 #define HAVE_PR_SIGACTION64_T 1
21850 { echo "$as_me:$LINENO: result: $bfd_cv_have_sys_procfs_type_pr_sigaction64_t" >&5
21851 echo "${ECHO_T}$bfd_cv_have_sys_procfs_type_pr_sigaction64_t" >&6; }
21853 { echo "$as_me:$LINENO: checking for pr_siginfo64_t in sys/procfs.h" >&5
21854 echo $ECHO_N "checking for pr_siginfo64_t in sys/procfs.h... $ECHO_C" >&6; }
21855 if test "${bfd_cv_have_sys_procfs_type_pr_siginfo64_t+set}" = set; then
21856 echo $ECHO_N "(cached) $ECHO_C" >&6
21858 cat >conftest.$ac_ext <<_ACEOF
21861 cat confdefs.h >>conftest.$ac_ext
21862 cat >>conftest.$ac_ext <<_ACEOF
21863 /* end confdefs.h. */
21866 #include <sys/procfs.h>
21870 pr_siginfo64_t avar
21875 rm -f conftest.$ac_objext
21876 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
21877 (eval $ac_compile) 2>conftest.er1
21879 grep -v '^ *+' conftest.er1 >conftest.err
21881 cat conftest.err >&5
21882 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21883 (exit $ac_status); } &&
21884 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
21885 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21886 (eval $ac_try) 2>&5
21888 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21889 (exit $ac_status); }; } &&
21890 { ac_try='test -s conftest.$ac_objext'
21891 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21892 (eval $ac_try) 2>&5
21894 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21895 (exit $ac_status); }; }; then
21896 bfd_cv_have_sys_procfs_type_pr_siginfo64_t=yes
21898 echo "$as_me: failed program was:" >&5
21899 sed 's/^/| /' conftest.$ac_ext >&5
21901 bfd_cv_have_sys_procfs_type_pr_siginfo64_t=no
21905 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
21908 if test $bfd_cv_have_sys_procfs_type_pr_siginfo64_t = yes; then
21910 cat >>confdefs.h <<\_ACEOF
21911 #define HAVE_PR_SIGINFO64_T 1
21915 { echo "$as_me:$LINENO: result: $bfd_cv_have_sys_procfs_type_pr_siginfo64_t" >&5
21916 echo "${ECHO_T}$bfd_cv_have_sys_procfs_type_pr_siginfo64_t" >&6; }
21922 if test $bfd_cv_have_sys_procfs_type_prfpregset_t = yes; then
21923 { echo "$as_me:$LINENO: checking whether prfpregset_t type is broken" >&5
21924 echo $ECHO_N "checking whether prfpregset_t type is broken... $ECHO_C" >&6; }
21925 if test "${gdb_cv_prfpregset_t_broken+set}" = set; then
21926 echo $ECHO_N "(cached) $ECHO_C" >&6
21928 if test "$cross_compiling" = yes; then
21929 gdb_cv_prfpregset_t_broken=yes
21931 cat >conftest.$ac_ext <<_ACEOF
21934 cat confdefs.h >>conftest.$ac_ext
21935 cat >>conftest.$ac_ext <<_ACEOF
21936 /* end confdefs.h. */
21937 #include <sys/procfs.h>
21940 if (sizeof (prfpregset_t) == sizeof (void *))
21945 rm -f conftest$ac_exeext
21946 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
21947 (eval $ac_link) 2>&5
21949 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21950 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
21951 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21952 (eval $ac_try) 2>&5
21954 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21955 (exit $ac_status); }; }; then
21956 gdb_cv_prfpregset_t_broken=no
21958 echo "$as_me: program exited with status $ac_status" >&5
21959 echo "$as_me: failed program was:" >&5
21960 sed 's/^/| /' conftest.$ac_ext >&5
21962 ( exit $ac_status )
21963 gdb_cv_prfpregset_t_broken=yes
21965 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
21971 { echo "$as_me:$LINENO: result: $gdb_cv_prfpregset_t_broken" >&5
21972 echo "${ECHO_T}$gdb_cv_prfpregset_t_broken" >&6; }
21973 if test $gdb_cv_prfpregset_t_broken = yes; then
21975 cat >>confdefs.h <<\_ACEOF
21976 #define PRFPREGSET_T_BROKEN 1
21983 { echo "$as_me:$LINENO: checking for PIOCSET ioctl entry in sys/procfs.h" >&5
21984 echo $ECHO_N "checking for PIOCSET ioctl entry in sys/procfs.h... $ECHO_C" >&6; }
21985 if test "${gdb_cv_have_procfs_piocset+set}" = set; then
21986 echo $ECHO_N "(cached) $ECHO_C" >&6
21988 cat >conftest.$ac_ext <<_ACEOF
21991 cat confdefs.h >>conftest.$ac_ext
21992 cat >>conftest.$ac_ext <<_ACEOF
21993 /* end confdefs.h. */
21994 #include <unistd.h>
21995 #include <sys/types.h>
21996 #include <sys/procfs.h>
22003 dummy = ioctl(0, PIOCSET, &dummy);
22009 rm -f conftest.$ac_objext
22010 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
22011 (eval $ac_compile) 2>conftest.er1
22013 grep -v '^ *+' conftest.er1 >conftest.err
22015 cat conftest.err >&5
22016 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22017 (exit $ac_status); } &&
22018 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
22019 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
22020 (eval $ac_try) 2>&5
22022 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22023 (exit $ac_status); }; } &&
22024 { ac_try='test -s conftest.$ac_objext'
22025 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
22026 (eval $ac_try) 2>&5
22028 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22029 (exit $ac_status); }; }; then
22030 gdb_cv_have_procfs_piocset=yes
22032 echo "$as_me: failed program was:" >&5
22033 sed 's/^/| /' conftest.$ac_ext >&5
22035 gdb_cv_have_procfs_piocset=no
22038 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
22041 { echo "$as_me:$LINENO: result: $gdb_cv_have_procfs_piocset" >&5
22042 echo "${ECHO_T}$gdb_cv_have_procfs_piocset" >&6; }
22043 if test $gdb_cv_have_procfs_piocset = yes; then
22045 cat >>confdefs.h <<\_ACEOF
22046 #define HAVE_PROCFS_PIOCSET 1
22052 if test ${host} = ${target} ; then
22054 { echo "$as_me:$LINENO: checking for member l_addr in struct link_map" >&5
22055 echo $ECHO_N "checking for member l_addr in struct link_map... $ECHO_C" >&6; }
22056 if test "${gdb_cv_have_struct_link_map_with_l_members+set}" = set; then
22057 echo $ECHO_N "(cached) $ECHO_C" >&6
22059 cat >conftest.$ac_ext <<_ACEOF
22062 cat confdefs.h >>conftest.$ac_ext
22063 cat >>conftest.$ac_ext <<_ACEOF
22064 /* end confdefs.h. */
22069 struct link_map lm; (void) lm.l_addr;
22074 rm -f conftest.$ac_objext
22075 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
22076 (eval $ac_compile) 2>conftest.er1
22078 grep -v '^ *+' conftest.er1 >conftest.err
22080 cat conftest.err >&5
22081 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22082 (exit $ac_status); } &&
22083 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
22084 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
22085 (eval $ac_try) 2>&5
22087 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22088 (exit $ac_status); }; } &&
22089 { ac_try='test -s conftest.$ac_objext'
22090 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
22091 (eval $ac_try) 2>&5
22093 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22094 (exit $ac_status); }; }; then
22095 gdb_cv_have_struct_link_map_with_l_members=yes
22097 echo "$as_me: failed program was:" >&5
22098 sed 's/^/| /' conftest.$ac_ext >&5
22100 gdb_cv_have_struct_link_map_with_l_members=no
22103 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
22106 { echo "$as_me:$LINENO: result: $gdb_cv_have_struct_link_map_with_l_members" >&5
22107 echo "${ECHO_T}$gdb_cv_have_struct_link_map_with_l_members" >&6; }
22108 if test $gdb_cv_have_struct_link_map_with_l_members = yes; then
22110 cat >>confdefs.h <<\_ACEOF
22111 #define HAVE_STRUCT_LINK_MAP_WITH_L_MEMBERS 1
22117 { echo "$as_me:$LINENO: checking for member lm_addr in struct link_map" >&5
22118 echo $ECHO_N "checking for member lm_addr in struct link_map... $ECHO_C" >&6; }
22119 if test "${gdb_cv_have_struct_link_map_with_lm_members+set}" = set; then
22120 echo $ECHO_N "(cached) $ECHO_C" >&6
22122 cat >conftest.$ac_ext <<_ACEOF
22125 cat confdefs.h >>conftest.$ac_ext
22126 cat >>conftest.$ac_ext <<_ACEOF
22127 /* end confdefs.h. */
22128 #include <sys/types.h>
22133 struct link_map lm; (void) lm.lm_addr;
22138 rm -f conftest.$ac_objext
22139 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
22140 (eval $ac_compile) 2>conftest.er1
22142 grep -v '^ *+' conftest.er1 >conftest.err
22144 cat conftest.err >&5
22145 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22146 (exit $ac_status); } &&
22147 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
22148 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
22149 (eval $ac_try) 2>&5
22151 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22152 (exit $ac_status); }; } &&
22153 { ac_try='test -s conftest.$ac_objext'
22154 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
22155 (eval $ac_try) 2>&5
22157 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22158 (exit $ac_status); }; }; then
22159 gdb_cv_have_struct_link_map_with_lm_members=yes
22161 echo "$as_me: failed program was:" >&5
22162 sed 's/^/| /' conftest.$ac_ext >&5
22164 gdb_cv_have_struct_link_map_with_lm_members=no
22167 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
22170 { echo "$as_me:$LINENO: result: $gdb_cv_have_struct_link_map_with_lm_members" >&5
22171 echo "${ECHO_T}$gdb_cv_have_struct_link_map_with_lm_members" >&6; }
22172 if test $gdb_cv_have_struct_link_map_with_lm_members = yes; then
22174 cat >>confdefs.h <<\_ACEOF
22175 #define HAVE_STRUCT_LINK_MAP_WITH_LM_MEMBERS 1
22181 { echo "$as_me:$LINENO: checking for member som_addr in struct so_map" >&5
22182 echo $ECHO_N "checking for member som_addr in struct so_map... $ECHO_C" >&6; }
22183 if test "${gdb_cv_have_struct_so_map_with_som_members+set}" = set; then
22184 echo $ECHO_N "(cached) $ECHO_C" >&6
22186 cat >conftest.$ac_ext <<_ACEOF
22189 cat confdefs.h >>conftest.$ac_ext
22190 cat >>conftest.$ac_ext <<_ACEOF
22191 /* end confdefs.h. */
22192 #include <sys/types.h>
22193 #ifdef HAVE_NLIST_H
22200 struct so_map lm; (void) lm.som_addr;
22205 rm -f conftest.$ac_objext
22206 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
22207 (eval $ac_compile) 2>conftest.er1
22209 grep -v '^ *+' conftest.er1 >conftest.err
22211 cat conftest.err >&5
22212 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22213 (exit $ac_status); } &&
22214 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
22215 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
22216 (eval $ac_try) 2>&5
22218 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22219 (exit $ac_status); }; } &&
22220 { ac_try='test -s conftest.$ac_objext'
22221 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
22222 (eval $ac_try) 2>&5
22224 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22225 (exit $ac_status); }; }; then
22226 gdb_cv_have_struct_so_map_with_som_members=yes
22228 echo "$as_me: failed program was:" >&5
22229 sed 's/^/| /' conftest.$ac_ext >&5
22231 gdb_cv_have_struct_so_map_with_som_members=no
22234 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
22237 { echo "$as_me:$LINENO: result: $gdb_cv_have_struct_so_map_with_som_members" >&5
22238 echo "${ECHO_T}$gdb_cv_have_struct_so_map_with_som_members" >&6; }
22239 if test $gdb_cv_have_struct_so_map_with_som_members = yes; then
22241 cat >>confdefs.h <<\_ACEOF
22242 #define HAVE_STRUCT_SO_MAP_WITH_SOM_MEMBERS 1
22248 { echo "$as_me:$LINENO: checking for struct link_map32 in sys/link.h" >&5
22249 echo $ECHO_N "checking for struct link_map32 in sys/link.h... $ECHO_C" >&6; }
22250 if test "${gdb_cv_have_struct_link_map32+set}" = set; then
22251 echo $ECHO_N "(cached) $ECHO_C" >&6
22253 cat >conftest.$ac_ext <<_ACEOF
22256 cat confdefs.h >>conftest.$ac_ext
22257 cat >>conftest.$ac_ext <<_ACEOF
22258 /* end confdefs.h. */
22260 #include <sys/link.h>
22264 struct link_map32 l;
22269 rm -f conftest.$ac_objext
22270 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
22271 (eval $ac_compile) 2>conftest.er1
22273 grep -v '^ *+' conftest.er1 >conftest.err
22275 cat conftest.err >&5
22276 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22277 (exit $ac_status); } &&
22278 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
22279 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
22280 (eval $ac_try) 2>&5
22282 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22283 (exit $ac_status); }; } &&
22284 { ac_try='test -s conftest.$ac_objext'
22285 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
22286 (eval $ac_try) 2>&5
22288 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22289 (exit $ac_status); }; }; then
22290 gdb_cv_have_struct_link_map32=yes
22292 echo "$as_me: failed program was:" >&5
22293 sed 's/^/| /' conftest.$ac_ext >&5
22295 gdb_cv_have_struct_link_map32=no
22298 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
22301 { echo "$as_me:$LINENO: result: $gdb_cv_have_struct_link_map32" >&5
22302 echo "${ECHO_T}$gdb_cv_have_struct_link_map32" >&6; }
22303 if test $gdb_cv_have_struct_link_map32 = yes; then
22305 cat >>confdefs.h <<\_ACEOF
22306 #define HAVE_STRUCT_LINK_MAP32 1
22310 cat >>confdefs.h <<\_ACEOF
22311 #define _SYSCALL32 1
22317 # Check if the compiler supports the `long long' type.
22319 { echo "$as_me:$LINENO: checking for long long support in compiler" >&5
22320 echo $ECHO_N "checking for long long support in compiler... $ECHO_C" >&6; }
22321 if test "${gdb_cv_c_long_long+set}" = set; then
22322 echo $ECHO_N "(cached) $ECHO_C" >&6
22324 cat >conftest.$ac_ext <<_ACEOF
22327 cat confdefs.h >>conftest.$ac_ext
22328 cat >>conftest.$ac_ext <<_ACEOF
22329 /* end confdefs.h. */
22330 extern long long foo;
22334 switch (foo & 2) { case 0: return 1; }
22339 rm -f conftest.$ac_objext
22340 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
22341 (eval $ac_compile) 2>conftest.er1
22343 grep -v '^ *+' conftest.er1 >conftest.err
22345 cat conftest.err >&5
22346 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22347 (exit $ac_status); } &&
22348 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
22349 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
22350 (eval $ac_try) 2>&5
22352 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22353 (exit $ac_status); }; } &&
22354 { ac_try='test -s conftest.$ac_objext'
22355 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
22356 (eval $ac_try) 2>&5
22358 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22359 (exit $ac_status); }; }; then
22360 gdb_cv_c_long_long=yes
22362 echo "$as_me: failed program was:" >&5
22363 sed 's/^/| /' conftest.$ac_ext >&5
22365 gdb_cv_c_long_long=no
22368 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
22370 { echo "$as_me:$LINENO: result: $gdb_cv_c_long_long" >&5
22371 echo "${ECHO_T}$gdb_cv_c_long_long" >&6; }
22372 if test $gdb_cv_c_long_long = yes; then
22374 cat >>confdefs.h <<\_ACEOF
22375 #define CC_HAS_LONG_LONG 1
22380 # Check if the compiler and runtime support printing long longs.
22382 { echo "$as_me:$LINENO: checking for long long support in printf" >&5
22383 echo $ECHO_N "checking for long long support in printf... $ECHO_C" >&6; }
22384 if test "${gdb_cv_printf_has_long_long+set}" = set; then
22385 echo $ECHO_N "(cached) $ECHO_C" >&6
22387 if test "$cross_compiling" = yes; then
22388 gdb_cv_printf_has_long_long=no
22390 cat >conftest.$ac_ext <<_ACEOF
22393 cat confdefs.h >>conftest.$ac_ext
22394 cat >>conftest.$ac_ext <<_ACEOF
22395 /* end confdefs.h. */
22396 $ac_includes_default
22402 l = (l << 16) + 0x0123;
22403 l = (l << 16) + 0x4567;
22404 l = (l << 16) + 0x89ab;
22405 l = (l << 16) + 0xcdef;
22406 sprintf (buf, "0x%016llx", l);
22407 return (strcmp ("0x0123456789abcdef", buf));
22412 rm -f conftest$ac_exeext
22413 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
22414 (eval $ac_link) 2>&5
22416 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22417 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
22418 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
22419 (eval $ac_try) 2>&5
22421 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22422 (exit $ac_status); }; }; then
22423 gdb_cv_printf_has_long_long=yes
22425 echo "$as_me: program exited with status $ac_status" >&5
22426 echo "$as_me: failed program was:" >&5
22427 sed 's/^/| /' conftest.$ac_ext >&5
22429 ( exit $ac_status )
22430 gdb_cv_printf_has_long_long=no
22432 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
22437 { echo "$as_me:$LINENO: result: $gdb_cv_printf_has_long_long" >&5
22438 echo "${ECHO_T}$gdb_cv_printf_has_long_long" >&6; }
22439 if test $gdb_cv_printf_has_long_long = yes; then
22441 cat >>confdefs.h <<\_ACEOF
22442 #define PRINTF_HAS_LONG_LONG 1
22447 # Check if the compiler supports the `long double' type. We can't use
22448 # AC_C_LONG_DOUBLE because that one does additional checks on the
22449 # constants defined in <float.h> that fail on some systems,
22450 # e.g. FreeBSD/i386 4.7 and OpenBSD/i386 3.6.
22452 { echo "$as_me:$LINENO: checking for long double support in compiler" >&5
22453 echo $ECHO_N "checking for long double support in compiler... $ECHO_C" >&6; }
22454 if test "${gdb_cv_c_long_double+set}" = set; then
22455 echo $ECHO_N "(cached) $ECHO_C" >&6
22457 cat >conftest.$ac_ext <<_ACEOF
22460 cat confdefs.h >>conftest.$ac_ext
22461 cat >>conftest.$ac_ext <<_ACEOF
22462 /* end confdefs.h. */
22465 rm -f conftest.$ac_objext
22466 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
22467 (eval $ac_compile) 2>conftest.er1
22469 grep -v '^ *+' conftest.er1 >conftest.err
22471 cat conftest.err >&5
22472 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22473 (exit $ac_status); } &&
22474 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
22475 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
22476 (eval $ac_try) 2>&5
22478 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22479 (exit $ac_status); }; } &&
22480 { ac_try='test -s conftest.$ac_objext'
22481 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
22482 (eval $ac_try) 2>&5
22484 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22485 (exit $ac_status); }; }; then
22486 gdb_cv_c_long_double=yes
22488 echo "$as_me: failed program was:" >&5
22489 sed 's/^/| /' conftest.$ac_ext >&5
22491 gdb_cv_c_long_double=no
22494 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
22496 { echo "$as_me:$LINENO: result: $gdb_cv_c_long_double" >&5
22497 echo "${ECHO_T}$gdb_cv_c_long_double" >&6; }
22498 if test $gdb_cv_c_long_double = yes; then
22500 cat >>confdefs.h <<\_ACEOF
22501 #define HAVE_LONG_DOUBLE 1
22506 # Check if the compiler and runtime support printing long doubles.
22508 { echo "$as_me:$LINENO: checking for long double support in printf" >&5
22509 echo $ECHO_N "checking for long double support in printf... $ECHO_C" >&6; }
22510 if test "${gdb_cv_printf_has_long_double+set}" = set; then
22511 echo $ECHO_N "(cached) $ECHO_C" >&6
22513 if test "$cross_compiling" = yes; then
22514 gdb_cv_printf_has_long_double=no
22516 cat >conftest.$ac_ext <<_ACEOF
22519 cat confdefs.h >>conftest.$ac_ext
22520 cat >>conftest.$ac_ext <<_ACEOF
22521 /* end confdefs.h. */
22522 $ac_includes_default
22527 long double f = 3.141592653;
22528 sprintf (buf, "%Lg", f);
22529 return (strncmp ("3.14159", buf, 7));
22534 rm -f conftest$ac_exeext
22535 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
22536 (eval $ac_link) 2>&5
22538 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22539 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
22540 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
22541 (eval $ac_try) 2>&5
22543 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22544 (exit $ac_status); }; }; then
22545 gdb_cv_printf_has_long_double=yes
22547 echo "$as_me: program exited with status $ac_status" >&5
22548 echo "$as_me: failed program was:" >&5
22549 sed 's/^/| /' conftest.$ac_ext >&5
22551 ( exit $ac_status )
22552 gdb_cv_printf_has_long_double=no
22554 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
22559 { echo "$as_me:$LINENO: result: $gdb_cv_printf_has_long_double" >&5
22560 echo "${ECHO_T}$gdb_cv_printf_has_long_double" >&6; }
22561 if test $gdb_cv_printf_has_long_double = yes; then
22563 cat >>confdefs.h <<\_ACEOF
22564 #define PRINTF_HAS_LONG_DOUBLE 1
22569 # Check if the compiler and runtime support scanning long doubles.
22571 { echo "$as_me:$LINENO: checking for long double support in scanf" >&5
22572 echo $ECHO_N "checking for long double support in scanf... $ECHO_C" >&6; }
22573 if test "${gdb_cv_scanf_has_long_double+set}" = set; then
22574 echo $ECHO_N "(cached) $ECHO_C" >&6
22576 if test "$cross_compiling" = yes; then
22577 gdb_cv_scanf_has_long_double=no
22579 cat >conftest.$ac_ext <<_ACEOF
22582 cat confdefs.h >>conftest.$ac_ext
22583 cat >>conftest.$ac_ext <<_ACEOF
22584 /* end confdefs.h. */
22589 char *buf = "3.141592653";
22591 sscanf (buf, "%Lg", &f);
22592 return !(f > 3.14159 && f < 3.14160);
22597 rm -f conftest$ac_exeext
22598 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
22599 (eval $ac_link) 2>&5
22601 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22602 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
22603 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
22604 (eval $ac_try) 2>&5
22606 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22607 (exit $ac_status); }; }; then
22608 gdb_cv_scanf_has_long_double=yes
22610 echo "$as_me: program exited with status $ac_status" >&5
22611 echo "$as_me: failed program was:" >&5
22612 sed 's/^/| /' conftest.$ac_ext >&5
22614 ( exit $ac_status )
22615 gdb_cv_scanf_has_long_double=no
22617 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
22622 { echo "$as_me:$LINENO: result: $gdb_cv_scanf_has_long_double" >&5
22623 echo "${ECHO_T}$gdb_cv_scanf_has_long_double" >&6; }
22624 if test $gdb_cv_scanf_has_long_double = yes; then
22626 cat >>confdefs.h <<\_ACEOF
22627 #define SCANF_HAS_LONG_DOUBLE 1
22634 { echo "$as_me:$LINENO: checking for -bbigtoc option" >&5
22635 echo $ECHO_N "checking for -bbigtoc option... $ECHO_C" >&6; }
22636 if test "${gdb_cv_bigtoc+set}" = set; then
22637 echo $ECHO_N "(cached) $ECHO_C" >&6
22640 SAVE_LDFLAGS=$LDFLAGS
22643 yes) gdb_cv_bigtoc=-Wl,-bbigtoc ;;
22644 *) gdb_cv_bigtoc=-bbigtoc ;;
22647 LDFLAGS=$LDFLAGS\ $gdb_cv_bigtoc
22648 cat >conftest.$ac_ext <<_ACEOF
22651 cat confdefs.h >>conftest.$ac_ext
22652 cat >>conftest.$ac_ext <<_ACEOF
22653 /* end confdefs.h. */
22663 rm -f conftest.$ac_objext conftest$ac_exeext
22664 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
22665 (eval $ac_link) 2>conftest.er1
22667 grep -v '^ *+' conftest.er1 >conftest.err
22669 cat conftest.err >&5
22670 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22671 (exit $ac_status); } &&
22672 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
22673 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
22674 (eval $ac_try) 2>&5
22676 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22677 (exit $ac_status); }; } &&
22678 { ac_try='test -s conftest$ac_exeext'
22679 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
22680 (eval $ac_try) 2>&5
22682 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22683 (exit $ac_status); }; }; then
22686 echo "$as_me: failed program was:" >&5
22687 sed 's/^/| /' conftest.$ac_ext >&5
22692 rm -f conftest.err conftest.$ac_objext \
22693 conftest$ac_exeext conftest.$ac_ext
22694 LDFLAGS="${SAVE_LDFLAGS}"
22697 { echo "$as_me:$LINENO: result: $gdb_cv_bigtoc" >&5
22698 echo "${ECHO_T}$gdb_cv_bigtoc" >&6; }
22699 CONFIG_LDFLAGS="${CONFIG_LDFLAGS} ${gdb_cv_bigtoc}"
22705 if test ${build} = ${host} -a ${host} = ${target} ; then
22708 { echo "$as_me:$LINENO: checking for HPUX/OSF thread support" >&5
22709 echo $ECHO_N "checking for HPUX/OSF thread support... $ECHO_C" >&6; }
22710 if test -f /usr/include/dce/cma_config.h ; then
22711 if test "$GCC" = "yes" ; then
22712 { echo "$as_me:$LINENO: result: yes" >&5
22713 echo "${ECHO_T}yes" >&6; }
22715 cat >>confdefs.h <<\_ACEOF
22716 #define HAVE_HPUX_THREAD_SUPPORT 1
22719 CONFIG_OBS="${CONFIG_OBS} hpux-thread.o"
22720 CONFIG_SRCS="${CONFIG_SRCS} hpux-thread.c"
22722 { echo "$as_me:$LINENO: result: no (suppressed because you are not using GCC)" >&5
22723 echo "${ECHO_T}no (suppressed because you are not using GCC)" >&6; }
22726 { echo "$as_me:$LINENO: result: no" >&5
22727 echo "${ECHO_T}no" >&6; }
22731 # See if thread_db library is around for Solaris thread debugging.
22732 # Note that we must explicitly test for version 1 of the library
22733 # because version 0 (present on Solaris 2.4 or earlier) doesn't have
22735 { echo "$as_me:$LINENO: checking for Solaris thread debugging library" >&5
22736 echo $ECHO_N "checking for Solaris thread debugging library... $ECHO_C" >&6; }
22737 if test -f /usr/lib/libthread_db.so.1 ; then
22738 { echo "$as_me:$LINENO: result: yes" >&5
22739 echo "${ECHO_T}yes" >&6; }
22741 cat >>confdefs.h <<\_ACEOF
22742 #define HAVE_THREAD_DB_LIB 1
22745 CONFIG_OBS="${CONFIG_OBS} sol-thread.o"
22746 CONFIG_SRCS="${CONFIG_SRCS} sol-thread.c"
22748 { echo "$as_me:$LINENO: checking for dlopen in -ldl" >&5
22749 echo $ECHO_N "checking for dlopen in -ldl... $ECHO_C" >&6; }
22750 if test "${ac_cv_lib_dl_dlopen+set}" = set; then
22751 echo $ECHO_N "(cached) $ECHO_C" >&6
22753 ac_check_lib_save_LIBS=$LIBS
22755 cat >conftest.$ac_ext <<_ACEOF
22758 cat confdefs.h >>conftest.$ac_ext
22759 cat >>conftest.$ac_ext <<_ACEOF
22760 /* end confdefs.h. */
22762 /* Override any GCC internal prototype to avoid an error.
22763 Use char because int might match the return type of a GCC
22764 builtin and then its argument prototype would still apply. */
22777 rm -f conftest.$ac_objext conftest$ac_exeext
22778 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
22779 (eval $ac_link) 2>conftest.er1
22781 grep -v '^ *+' conftest.er1 >conftest.err
22783 cat conftest.err >&5
22784 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22785 (exit $ac_status); } &&
22786 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
22787 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
22788 (eval $ac_try) 2>&5
22790 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22791 (exit $ac_status); }; } &&
22792 { ac_try='test -s conftest$ac_exeext'
22793 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
22794 (eval $ac_try) 2>&5
22796 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22797 (exit $ac_status); }; }; then
22798 ac_cv_lib_dl_dlopen=yes
22800 echo "$as_me: failed program was:" >&5
22801 sed 's/^/| /' conftest.$ac_ext >&5
22803 ac_cv_lib_dl_dlopen=no
22806 rm -f conftest.err conftest.$ac_objext \
22807 conftest$ac_exeext conftest.$ac_ext
22808 LIBS=$ac_check_lib_save_LIBS
22810 { echo "$as_me:$LINENO: result: $ac_cv_lib_dl_dlopen" >&5
22811 echo "${ECHO_T}$ac_cv_lib_dl_dlopen" >&6; }
22812 if test $ac_cv_lib_dl_dlopen = yes; then
22813 cat >>confdefs.h <<_ACEOF
22814 #define HAVE_LIBDL 1
22821 if test "$GCC" = "yes" ; then
22822 # The GNU linker requires the -export-dynamic option to make
22823 # all symbols visible in the dynamic symbol table.
22824 hold_ldflags=$LDFLAGS
22825 { echo "$as_me:$LINENO: checking for the ld -export-dynamic flag" >&5
22826 echo $ECHO_N "checking for the ld -export-dynamic flag... $ECHO_C" >&6; }
22827 LDFLAGS="${LDFLAGS} -Wl,-export-dynamic"
22828 cat >conftest.$ac_ext <<_ACEOF
22831 cat confdefs.h >>conftest.$ac_ext
22832 cat >>conftest.$ac_ext <<_ACEOF
22833 /* end confdefs.h. */
22843 rm -f conftest.$ac_objext conftest$ac_exeext
22844 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
22845 (eval $ac_link) 2>conftest.er1
22847 grep -v '^ *+' conftest.er1 >conftest.err
22849 cat conftest.err >&5
22850 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22851 (exit $ac_status); } &&
22852 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
22853 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
22854 (eval $ac_try) 2>&5
22856 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22857 (exit $ac_status); }; } &&
22858 { ac_try='test -s conftest$ac_exeext'
22859 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
22860 (eval $ac_try) 2>&5
22862 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22863 (exit $ac_status); }; }; then
22866 echo "$as_me: failed program was:" >&5
22867 sed 's/^/| /' conftest.$ac_ext >&5
22872 rm -f conftest.err conftest.$ac_objext \
22873 conftest$ac_exeext conftest.$ac_ext
22874 LDFLAGS=$hold_ldflags
22875 { echo "$as_me:$LINENO: result: $found" >&5
22876 echo "${ECHO_T}$found" >&6; }
22877 if test $found = yes; then
22878 CONFIG_LDFLAGS="${CONFIG_LDFLAGS} -Wl,-export-dynamic"
22881 # Sun randomly tweaked the prototypes in <proc_service.h>
22883 { echo "$as_me:$LINENO: checking if <proc_service.h> is old" >&5
22884 echo $ECHO_N "checking if <proc_service.h> is old... $ECHO_C" >&6; }
22885 if test "${gdb_cv_proc_service_is_old+set}" = set; then
22886 echo $ECHO_N "(cached) $ECHO_C" >&6
22889 cat >conftest.$ac_ext <<_ACEOF
22892 cat confdefs.h >>conftest.$ac_ext
22893 cat >>conftest.$ac_ext <<_ACEOF
22894 /* end confdefs.h. */
22896 #include <proc_service.h>
22897 ps_err_e ps_pdwrite
22898 (struct ps_prochandle*, psaddr_t, const void*, size_t);
22908 rm -f conftest.$ac_objext
22909 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
22910 (eval $ac_compile) 2>conftest.er1
22912 grep -v '^ *+' conftest.er1 >conftest.err
22914 cat conftest.err >&5
22915 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22916 (exit $ac_status); } &&
22917 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
22918 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
22919 (eval $ac_try) 2>&5
22921 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22922 (exit $ac_status); }; } &&
22923 { ac_try='test -s conftest.$ac_objext'
22924 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
22925 (eval $ac_try) 2>&5
22927 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22928 (exit $ac_status); }; }; then
22929 gdb_cv_proc_service_is_old=no
22931 echo "$as_me: failed program was:" >&5
22932 sed 's/^/| /' conftest.$ac_ext >&5
22934 gdb_cv_proc_service_is_old=yes
22937 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
22941 { echo "$as_me:$LINENO: result: $gdb_cv_proc_service_is_old" >&5
22942 echo "${ECHO_T}$gdb_cv_proc_service_is_old" >&6; }
22943 if test $gdb_cv_proc_service_is_old = yes; then
22945 cat >>confdefs.h <<\_ACEOF
22946 #define PROC_SERVICE_IS_OLD 1
22951 { echo "$as_me:$LINENO: result: no" >&5
22952 echo "${ECHO_T}no" >&6; }
22956 { echo "$as_me:$LINENO: checking for AiX thread debugging library" >&5
22957 echo $ECHO_N "checking for AiX thread debugging library... $ECHO_C" >&6; }
22958 if test "${gdb_cv_have_aix_thread_debug+set}" = set; then
22959 echo $ECHO_N "(cached) $ECHO_C" >&6
22961 cat >conftest.$ac_ext <<_ACEOF
22964 cat confdefs.h >>conftest.$ac_ext
22965 cat >>conftest.$ac_ext <<_ACEOF
22966 /* end confdefs.h. */
22967 #include <sys/pthdebug.h>
22971 #ifndef PTHDB_VERSION_3
22978 rm -f conftest.$ac_objext
22979 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
22980 (eval $ac_compile) 2>conftest.er1
22982 grep -v '^ *+' conftest.er1 >conftest.err
22984 cat conftest.err >&5
22985 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22986 (exit $ac_status); } &&
22987 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
22988 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
22989 (eval $ac_try) 2>&5
22991 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22992 (exit $ac_status); }; } &&
22993 { ac_try='test -s conftest.$ac_objext'
22994 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
22995 (eval $ac_try) 2>&5
22997 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22998 (exit $ac_status); }; }; then
22999 gdb_cv_have_aix_thread_debug=yes
23001 echo "$as_me: failed program was:" >&5
23002 sed 's/^/| /' conftest.$ac_ext >&5
23004 gdb_cv_have_aix_thread_debug=no
23007 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
23010 { echo "$as_me:$LINENO: result: $gdb_cv_have_aix_thread_debug" >&5
23011 echo "${ECHO_T}$gdb_cv_have_aix_thread_debug" >&6; }
23012 if test $gdb_cv_have_aix_thread_debug = yes; then
23013 CONFIG_SRCS="${CONFIG_SRCS} aix-thread.c"
23014 CONFIG_OBS="${CONFIG_OBS} aix-thread.o"
23015 CONFIG_LDFLAGS="${CONFIG_LDFLAGS} -lpthdebug"
23022 if test "x$ac_cv_header_thread_db_h" = "xyes"; then
23023 { echo "$as_me:$LINENO: checking whether <thread_db.h> has TD_NOTALLOC" >&5
23024 echo $ECHO_N "checking whether <thread_db.h> has TD_NOTALLOC... $ECHO_C" >&6; }
23025 if test "${gdb_cv_thread_db_h_has_td_notalloc+set}" = set; then
23026 echo $ECHO_N "(cached) $ECHO_C" >&6
23028 cat >conftest.$ac_ext <<_ACEOF
23031 cat confdefs.h >>conftest.$ac_ext
23032 cat >>conftest.$ac_ext <<_ACEOF
23033 /* end confdefs.h. */
23034 #include <thread_db.h>
23038 int i = TD_NOTALLOC;
23043 rm -f conftest.$ac_objext
23044 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
23045 (eval $ac_compile) 2>conftest.er1
23047 grep -v '^ *+' conftest.er1 >conftest.err
23049 cat conftest.err >&5
23050 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23051 (exit $ac_status); } &&
23052 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
23053 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
23054 (eval $ac_try) 2>&5
23056 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23057 (exit $ac_status); }; } &&
23058 { ac_try='test -s conftest.$ac_objext'
23059 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
23060 (eval $ac_try) 2>&5
23062 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23063 (exit $ac_status); }; }; then
23064 gdb_cv_thread_db_h_has_td_notalloc=yes
23066 echo "$as_me: failed program was:" >&5
23067 sed 's/^/| /' conftest.$ac_ext >&5
23069 gdb_cv_thread_db_h_has_td_notalloc=no
23073 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
23076 { echo "$as_me:$LINENO: result: $gdb_cv_thread_db_h_has_td_notalloc" >&5
23077 echo "${ECHO_T}$gdb_cv_thread_db_h_has_td_notalloc" >&6; }
23079 if test "x$gdb_cv_thread_db_h_has_td_notalloc" = "xyes"; then
23081 cat >>confdefs.h <<\_ACEOF
23082 #define THREAD_DB_HAS_TD_NOTALLOC 1
23087 if test "x$ac_cv_header_sys_syscall_h" = "xyes"; then
23088 { echo "$as_me:$LINENO: checking whether <sys/syscall.h> has __NR_tkill" >&5
23089 echo $ECHO_N "checking whether <sys/syscall.h> has __NR_tkill... $ECHO_C" >&6; }
23090 if test "${gdb_cv_sys_syscall_h_has_tkill+set}" = set; then
23091 echo $ECHO_N "(cached) $ECHO_C" >&6
23093 cat >conftest.$ac_ext <<_ACEOF
23096 cat confdefs.h >>conftest.$ac_ext
23097 cat >>conftest.$ac_ext <<_ACEOF
23098 /* end confdefs.h. */
23099 #include <sys/syscall.h>
23103 int i = __NR_tkill;
23108 rm -f conftest.$ac_objext
23109 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
23110 (eval $ac_compile) 2>conftest.er1
23112 grep -v '^ *+' conftest.er1 >conftest.err
23114 cat conftest.err >&5
23115 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23116 (exit $ac_status); } &&
23117 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
23118 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
23119 (eval $ac_try) 2>&5
23121 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23122 (exit $ac_status); }; } &&
23123 { ac_try='test -s conftest.$ac_objext'
23124 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
23125 (eval $ac_try) 2>&5
23127 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23128 (exit $ac_status); }; }; then
23129 gdb_cv_sys_syscall_h_has_tkill=yes
23131 echo "$as_me: failed program was:" >&5
23132 sed 's/^/| /' conftest.$ac_ext >&5
23134 gdb_cv_sys_syscall_h_has_tkill=no
23138 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
23141 { echo "$as_me:$LINENO: result: $gdb_cv_sys_syscall_h_has_tkill" >&5
23142 echo "${ECHO_T}$gdb_cv_sys_syscall_h_has_tkill" >&6; }
23144 if test "x$gdb_cv_sys_syscall_h_has_tkill" = "xyes" && test "x$ac_cv_func_syscall" = "xyes"; then
23146 cat >>confdefs.h <<\_ACEOF
23147 #define HAVE_TKILL_SYSCALL 1
23154 # Check whether --with-sysroot was given.
23155 if test "${with_sysroot+set}" = set; then
23156 withval=$with_sysroot;
23157 case ${with_sysroot} in
23158 yes) TARGET_SYSTEM_ROOT='${exec_prefix}/${target_alias}/sys-root' ;;
23159 *) TARGET_SYSTEM_ROOT=$with_sysroot ;;
23162 TARGET_SYSTEM_ROOT_DEFINE='-DTARGET_SYSTEM_ROOT=\"$(TARGET_SYSTEM_ROOT)\"'
23164 if test "x$exec_prefix" = xNONE; then
23165 if test "x$prefix" = xNONE; then
23166 test_prefix=/usr/local
23168 test_prefix=$prefix
23171 test_prefix=$exec_prefix
23173 case ${TARGET_SYSTEM_ROOT} in
23174 "${test_prefix}"|"${test_prefix}/"*|\
23175 '${exec_prefix}'|'${exec_prefix}/'*)
23176 t="$TARGET_SYSTEM_ROOT_DEFINE -DTARGET_SYSTEM_ROOT_RELOCATABLE"
23177 TARGET_SYSTEM_ROOT_DEFINE="$t"
23183 TARGET_SYSTEM_ROOT=
23184 TARGET_SYSTEM_ROOT_DEFINE='-DTARGET_SYSTEM_ROOT=\"\"'
23191 # Check whether --enable-werror was given.
23192 if test "${enable_werror+set}" = set; then
23193 enableval=$enable_werror; case "${enableval}" in
23194 yes | y) ERROR_ON_WARNING="yes" ;;
23195 no | n) ERROR_ON_WARNING="no" ;;
23196 *) { { echo "$as_me:$LINENO: error: bad value ${enableval} for --enable-werror" >&5
23197 echo "$as_me: error: bad value ${enableval} for --enable-werror" >&2;}
23198 { (exit 1); exit 1; }; } ;;
23203 # Enable -Werror by default when using gcc
23204 if test "${GCC}" = yes -a -z "${ERROR_ON_WARNING}" ; then
23205 ERROR_ON_WARNING=yes
23209 if test "${ERROR_ON_WARNING}" = yes ; then
23210 WERROR_CFLAGS="-Werror"
23213 # NOTE: Don't add -Wall or -Wunused, they both include
23214 # -Wunused-parameter which reports bogus warnings.
23215 # NOTE: If you add to this list, remember to update
23216 # gdb/doc/gdbint.texinfo.
23217 build_warnings="-Wimplicit -Wreturn-type -Wcomment -Wtrigraphs \
23218 -Wformat -Wparentheses -Wpointer-arith -Wformat-nonliteral \
23219 -Wunused-label -Wunused-function -Wno-pointer-sign"
23221 # GCC supports -Wuninitialized only with -O or -On, n != 0.
23222 if test x${CFLAGS+set} = xset; then
23223 case "${CFLAGS}" in
23226 build_warnings="${build_warnings} -Wuninitialized"
23230 build_warnings="${build_warnings} -Wuninitialized"
23233 # Up for debate: -Wswitch -Wcomment -trigraphs -Wtrigraphs
23234 # -Wunused-function -Wunused-variable -Wunused-value
23235 # -Wchar-subscripts -Wtraditional -Wshadow -Wcast-qual
23236 # -Wcast-align -Wwrite-strings -Wconversion -Wstrict-prototypes
23237 # -Wmissing-prototypes -Wmissing-declarations -Wredundant-decls
23238 # -Woverloaded-virtual -Winline -Werror"
23239 # Check whether --enable-build-warnings was given.
23240 if test "${enable_build_warnings+set}" = set; then
23241 enableval=$enable_build_warnings; case "${enableval}" in
23243 no) build_warnings="-w";;
23244 ,*) t=`echo "${enableval}" | sed -e "s/,/ /g"`
23245 build_warnings="${build_warnings} ${t}";;
23246 *,) t=`echo "${enableval}" | sed -e "s/,/ /g"`
23247 build_warnings="${t} ${build_warnings}";;
23248 *) build_warnings=`echo "${enableval}" | sed -e "s/,/ /g"`;;
23250 if test x"$silent" != x"yes" && test x"$build_warnings" != x""; then
23251 echo "Setting compiler warning flags = $build_warnings" 6>&1
23254 # Check whether --enable-gdb-build-warnings was given.
23255 if test "${enable_gdb_build_warnings+set}" = set; then
23256 enableval=$enable_gdb_build_warnings; case "${enableval}" in
23258 no) build_warnings="-w";;
23259 ,*) t=`echo "${enableval}" | sed -e "s/,/ /g"`
23260 build_warnings="${build_warnings} ${t}";;
23261 *,) t=`echo "${enableval}" | sed -e "s/,/ /g"`
23262 build_warnings="${t} ${build_warnings}";;
23263 *) build_warnings=`echo "${enableval}" | sed -e "s/,/ /g"`;;
23265 if test x"$silent" != x"yes" && test x"$build_warnings" != x""; then
23266 echo "Setting GDB specific compiler warning flags = $build_warnings" 6>&1
23270 if test "x${build_warnings}" != x -a "x$GCC" = xyes
23272 { echo "$as_me:$LINENO: checking compiler warning flags" >&5
23273 echo $ECHO_N "checking compiler warning flags... $ECHO_C" >&6; }
23274 # Separate out the -Werror flag as some files just cannot be
23275 # compiled with it enabled.
23276 for w in ${build_warnings}; do
23278 -Werr*) WERROR_CFLAGS=-Werror ;;
23279 *) # Check that GCC accepts it
23280 saved_CFLAGS="$CFLAGS"
23281 CFLAGS="$CFLAGS $w"
23282 cat >conftest.$ac_ext <<_ACEOF
23285 cat confdefs.h >>conftest.$ac_ext
23286 cat >>conftest.$ac_ext <<_ACEOF
23287 /* end confdefs.h. */
23297 rm -f conftest.$ac_objext
23298 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
23299 (eval $ac_compile) 2>conftest.er1
23301 grep -v '^ *+' conftest.er1 >conftest.err
23303 cat conftest.err >&5
23304 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23305 (exit $ac_status); } &&
23306 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
23307 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
23308 (eval $ac_try) 2>&5
23310 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23311 (exit $ac_status); }; } &&
23312 { ac_try='test -s conftest.$ac_objext'
23313 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
23314 (eval $ac_try) 2>&5
23316 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23317 (exit $ac_status); }; }; then
23318 WARN_CFLAGS="${WARN_CFLAGS} $w"
23320 echo "$as_me: failed program was:" >&5
23321 sed 's/^/| /' conftest.$ac_ext >&5
23326 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
23327 CFLAGS="$saved_CFLAGS"
23330 { echo "$as_me:$LINENO: result: ${WARN_CFLAGS}${WERROR_CFLAGS}" >&5
23331 echo "${ECHO_T}${WARN_CFLAGS}${WERROR_CFLAGS}" >&6; }
23336 # In the Cygwin environment, we need some additional flags.
23337 { echo "$as_me:$LINENO: checking for cygwin" >&5
23338 echo $ECHO_N "checking for cygwin... $ECHO_C" >&6; }
23339 if test "${gdb_cv_os_cygwin+set}" = set; then
23340 echo $ECHO_N "(cached) $ECHO_C" >&6
23342 cat >conftest.$ac_ext <<_ACEOF
23345 cat confdefs.h >>conftest.$ac_ext
23346 cat >>conftest.$ac_ext <<_ACEOF
23347 /* end confdefs.h. */
23349 #if defined (__CYGWIN__) || defined (__CYGWIN32__)
23353 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
23354 $EGREP "lose" >/dev/null 2>&1; then
23355 gdb_cv_os_cygwin=yes
23357 gdb_cv_os_cygwin=no
23362 { echo "$as_me:$LINENO: result: $gdb_cv_os_cygwin" >&5
23363 echo "${ECHO_T}$gdb_cv_os_cygwin" >&6; }
23366 SER_HARDWIRE="ser-base.o ser-unix.o ser-pipe.o ser-tcp.o"
23368 *go32* ) SER_HARDWIRE=ser-go32.o ;;
23369 *djgpp* ) SER_HARDWIRE=ser-go32.o ;;
23370 *mingw32*) SER_HARDWIRE="ser-base.o ser-tcp.o ser-mingw.o" ;;
23374 # libreadline needs libuser32.a in a cygwin environment
23376 if test x$gdb_cv_os_cygwin = xyes; then
23377 WIN32LIBS="-luser32"
23378 case "${target}" in
23379 *cygwin*) WIN32LIBS="$WIN32LIBS -limagehlp"
23384 # The ser-tcp.c module requires sockets.
23388 cat >>confdefs.h <<\_ACEOF
23389 #define USE_WIN32API 1
23392 WIN32LIBS="$WIN32LIBS -lws2_32"
23397 # Add any host-specific objects to GDB.
23398 CONFIG_OBS="${CONFIG_OBS} ${gdb_host_obs}"
23400 LIBGUI="../libgui/src/libgui.a"
23401 GUI_CFLAGS_X="-I${srcdir}/../libgui/src"
23419 if test "${enable_gdbtk}" = "yes"; then
23421 # Gdbtk must have an absolute path to srcdir in order to run
23422 # properly when not installed.
23425 GDBTK_SRC_DIR=`pwd`
23430 # Ok, lets find the tcl configuration
23431 # First, look for one uninstalled.
23432 # the alternative search directory is invoked by --with-tclconfig
23435 if test x"${no_tcl}" = x ; then
23436 # we reset no_tcl in case something fails here
23439 # Check whether --with-tclconfig was given.
23440 if test "${with_tclconfig+set}" = set; then
23441 withval=$with_tclconfig; with_tclconfig=${withval}
23444 { echo "$as_me:$LINENO: checking for Tcl configuration" >&5
23445 echo $ECHO_N "checking for Tcl configuration... $ECHO_C" >&6; }
23446 if test "${ac_cv_c_tclconfig+set}" = set; then
23447 echo $ECHO_N "(cached) $ECHO_C" >&6
23451 # First check to see if --with-tclconfig was specified.
23452 if test x"${with_tclconfig}" != x ; then
23453 if test -f "${with_tclconfig}/tclConfig.sh" ; then
23454 ac_cv_c_tclconfig=`(cd ${with_tclconfig}; pwd)`
23456 { { echo "$as_me:$LINENO: error: ${with_tclconfig} directory doesn't contain tclConfig.sh" >&5
23457 echo "$as_me: error: ${with_tclconfig} directory doesn't contain tclConfig.sh" >&2;}
23458 { (exit 1); exit 1; }; }
23462 # then check for a private Tcl installation
23463 if test x"${ac_cv_c_tclconfig}" = x ; then
23466 `ls -dr ../tcl[7-9]* 2>/dev/null` \
23468 `ls -dr ../../tcl[7-9]* 2>/dev/null` \
23470 `ls -dr ../../../tcl[7-9]* 2>/dev/null` ; do
23471 if test -f "$i/${configdir}/tclConfig.sh" ; then
23472 ac_cv_c_tclconfig=`(cd $i/${configdir}; pwd)`
23477 # check in a few common install locations
23478 if test x"${ac_cv_c_tclconfig}" = x ; then
23479 for i in `ls -d ${prefix}/lib /usr/local/lib 2>/dev/null` ; do
23480 if test -f "$i/tclConfig.sh" ; then
23481 ac_cv_c_tclconfig=`(cd $i; pwd)`
23486 # check in a few other private locations
23487 if test x"${ac_cv_c_tclconfig}" = x ; then
23490 `ls -dr ${srcdir}/../tcl[7-9]* 2>/dev/null` ; do
23491 if test -f "$i/${configdir}/tclConfig.sh" ; then
23492 ac_cv_c_tclconfig=`(cd $i/${configdir}; pwd)`
23500 if test x"${ac_cv_c_tclconfig}" = x ; then
23501 TCLCONFIG="# no Tcl configs found"
23502 { echo "$as_me:$LINENO: WARNING: Can't find Tcl configuration definitions" >&5
23503 echo "$as_me: WARNING: Can't find Tcl configuration definitions" >&2;}
23506 TCLCONFIG=${ac_cv_c_tclconfig}/tclConfig.sh
23507 { echo "$as_me:$LINENO: result: found $TCLCONFIG" >&5
23508 echo "${ECHO_T}found $TCLCONFIG" >&6; }
23512 if test -z "${no_tcl}"; then
23543 # Ok, lets find the tk configuration
23544 # First, look for one uninstalled.
23545 # the alternative search directory is invoked by --with-tkconfig
23548 if test x"${no_tk}" = x ; then
23549 # we reset no_tk in case something fails here
23552 # Check whether --with-tkconfig was given.
23553 if test "${with_tkconfig+set}" = set; then
23554 withval=$with_tkconfig; with_tkconfig=${withval}
23557 { echo "$as_me:$LINENO: checking for Tk configuration" >&5
23558 echo $ECHO_N "checking for Tk configuration... $ECHO_C" >&6; }
23559 if test "${ac_cv_c_tkconfig+set}" = set; then
23560 echo $ECHO_N "(cached) $ECHO_C" >&6
23564 # First check to see if --with-tkconfig was specified.
23565 if test x"${with_tkconfig}" != x ; then
23566 if test -f "${with_tkconfig}/tkConfig.sh" ; then
23567 ac_cv_c_tkconfig=`(cd ${with_tkconfig}; pwd)`
23569 { { echo "$as_me:$LINENO: error: ${with_tkconfig} directory doesn't contain tkConfig.sh" >&5
23570 echo "$as_me: error: ${with_tkconfig} directory doesn't contain tkConfig.sh" >&2;}
23571 { (exit 1); exit 1; }; }
23575 # then check for a private Tk library
23576 if test x"${ac_cv_c_tkconfig}" = x ; then
23579 `ls -dr ../tk[4-9]* 2>/dev/null` \
23581 `ls -dr ../../tk[4-9]* 2>/dev/null` \
23583 `ls -dr ../../../tk[4-9]* 2>/dev/null` ; do
23584 if test -f "$i/${configdir}/tkConfig.sh" ; then
23585 ac_cv_c_tkconfig=`(cd $i/${configdir}; pwd)`
23590 # check in a few common install locations
23591 if test x"${ac_cv_c_tkconfig}" = x ; then
23592 for i in `ls -d ${prefix}/lib /usr/local/lib 2>/dev/null` ; do
23593 if test -f "$i/tkConfig.sh" ; then
23594 ac_cv_c_tkconfig=`(cd $i; pwd)`
23599 # check in a few other private locations
23600 if test x"${ac_cv_c_tkconfig}" = x ; then
23603 `ls -dr ${srcdir}/../tk[4-9]* 2>/dev/null` ; do
23604 if test -f "$i/${configdir}/tkConfig.sh" ; then
23605 ac_cv_c_tkconfig=`(cd $i/${configdir}; pwd)`
23613 if test x"${ac_cv_c_tkconfig}" = x ; then
23614 TKCONFIG="# no Tk configs found"
23615 { echo "$as_me:$LINENO: WARNING: Can't find Tk configuration definitions" >&5
23616 echo "$as_me: WARNING: Can't find Tk configuration definitions" >&2;}
23619 TKCONFIG=${ac_cv_c_tkconfig}/tkConfig.sh
23620 { echo "$as_me:$LINENO: result: found $TKCONFIG" >&5
23621 echo "${ECHO_T}found $TKCONFIG" >&6; }
23627 # now look for Tcl library stuff
23629 tcldir="../tcl/${configdir}/"
23631 TCL_DEPS="${tcldir}${TCL_LIB_FILE}"
23633 # If $no_tk is nonempty, then we can't do Tk, and there is no
23634 # point to doing Tcl.
23635 if test -z "${no_tk}"; then
23637 if test -f "$TKCONFIG" ; then
23655 # Ok, lets find the tcl source trees so we can use the headers
23656 # Warning: transition of version 9 to 10 will break this algorithm
23657 # because 10 sorts before 9. We also look for just tcl. We have to
23658 # be careful that we don't match stuff like tclX by accident.
23659 # the alternative search directory is involked by --with-tclinclude
23663 { echo "$as_me:$LINENO: checking for Tcl private headers. dir=${configdir}" >&5
23664 echo $ECHO_N "checking for Tcl private headers. dir=${configdir}... $ECHO_C" >&6; }
23666 # Check whether --with-tclinclude was given.
23667 if test "${with_tclinclude+set}" = set; then
23668 withval=$with_tclinclude; with_tclinclude=${withval}
23671 if test "${ac_cv_c_tclh+set}" = set; then
23672 echo $ECHO_N "(cached) $ECHO_C" >&6
23675 # first check to see if --with-tclinclude was specified
23676 if test x"${with_tclinclude}" != x ; then
23677 if test -f ${with_tclinclude}/tclInt.h ; then
23678 ac_cv_c_tclh=`(cd ${with_tclinclude}; pwd)`
23679 elif test -f ${with_tclinclude}/generic/tclInt.h ; then
23680 ac_cv_c_tclh=`(cd ${with_tclinclude}/generic; pwd)`
23682 { { echo "$as_me:$LINENO: error: ${with_tclinclude} directory doesn't contain private headers" >&5
23683 echo "$as_me: error: ${with_tclinclude} directory doesn't contain private headers" >&2;}
23684 { (exit 1); exit 1; }; }
23688 # next check if it came with Tcl configuration file
23689 if test x"${ac_cv_c_tclconfig}" = x ; then
23690 if test -f $ac_cv_c_tclconfig/../generic/tclInt.h ; then
23691 ac_cv_c_tclh=`(cd $ac_cv_c_tclconfig/..; pwd)`
23695 # next check in private source directory
23697 # since ls returns lowest version numbers first, reverse its output
23698 if test x"${ac_cv_c_tclh}" = x ; then
23701 `ls -dr ${srcdir}/../tcl[7-9]* 2>/dev/null` \
23702 ${srcdir}/../../tcl \
23703 `ls -dr ${srcdir}/../../tcl[7-9]* 2>/dev/null` \
23704 ${srcdir}/../../../tcl \
23705 `ls -dr ${srcdir}/../../../tcl[7-9]* 2>/dev/null ` ; do
23706 if test -f $i/generic/tclInt.h ; then
23707 ac_cv_c_tclh=`(cd $i/generic; pwd)`
23712 # finally check in a few common install locations
23714 # since ls returns lowest version numbers first, reverse its output
23715 if test x"${ac_cv_c_tclh}" = x ; then
23717 `ls -dr /usr/local/src/tcl[7-9]* 2>/dev/null` \
23718 `ls -dr /usr/local/lib/tcl[7-9]* 2>/dev/null` \
23719 /usr/local/src/tcl \
23720 /usr/local/lib/tcl \
23721 ${prefix}/include ; do
23722 if test -f $i/generic/tclInt.h ; then
23723 ac_cv_c_tclh=`(cd $i/generic; pwd)`
23728 # see if one is installed
23729 if test x"${ac_cv_c_tclh}" = x ; then
23730 if test "${ac_cv_header_tclInt_h+set}" = set; then
23731 { echo "$as_me:$LINENO: checking for tclInt.h" >&5
23732 echo $ECHO_N "checking for tclInt.h... $ECHO_C" >&6; }
23733 if test "${ac_cv_header_tclInt_h+set}" = set; then
23734 echo $ECHO_N "(cached) $ECHO_C" >&6
23736 { echo "$as_me:$LINENO: result: $ac_cv_header_tclInt_h" >&5
23737 echo "${ECHO_T}$ac_cv_header_tclInt_h" >&6; }
23739 # Is the header compilable?
23740 { echo "$as_me:$LINENO: checking tclInt.h usability" >&5
23741 echo $ECHO_N "checking tclInt.h usability... $ECHO_C" >&6; }
23742 cat >conftest.$ac_ext <<_ACEOF
23745 cat confdefs.h >>conftest.$ac_ext
23746 cat >>conftest.$ac_ext <<_ACEOF
23747 /* end confdefs.h. */
23748 $ac_includes_default
23749 #include <tclInt.h>
23751 rm -f conftest.$ac_objext
23752 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
23753 (eval $ac_compile) 2>conftest.er1
23755 grep -v '^ *+' conftest.er1 >conftest.err
23757 cat conftest.err >&5
23758 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23759 (exit $ac_status); } &&
23760 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
23761 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
23762 (eval $ac_try) 2>&5
23764 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23765 (exit $ac_status); }; } &&
23766 { ac_try='test -s conftest.$ac_objext'
23767 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
23768 (eval $ac_try) 2>&5
23770 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23771 (exit $ac_status); }; }; then
23772 ac_header_compiler=yes
23774 echo "$as_me: failed program was:" >&5
23775 sed 's/^/| /' conftest.$ac_ext >&5
23777 ac_header_compiler=no
23780 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
23781 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
23782 echo "${ECHO_T}$ac_header_compiler" >&6; }
23784 # Is the header present?
23785 { echo "$as_me:$LINENO: checking tclInt.h presence" >&5
23786 echo $ECHO_N "checking tclInt.h presence... $ECHO_C" >&6; }
23787 cat >conftest.$ac_ext <<_ACEOF
23790 cat confdefs.h >>conftest.$ac_ext
23791 cat >>conftest.$ac_ext <<_ACEOF
23792 /* end confdefs.h. */
23793 #include <tclInt.h>
23795 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
23796 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
23798 grep -v '^ *+' conftest.er1 >conftest.err
23800 cat conftest.err >&5
23801 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23802 (exit $ac_status); } >/dev/null; then
23803 if test -s conftest.err; then
23804 ac_cpp_err=$ac_c_preproc_warn_flag
23805 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
23812 if test -z "$ac_cpp_err"; then
23813 ac_header_preproc=yes
23815 echo "$as_me: failed program was:" >&5
23816 sed 's/^/| /' conftest.$ac_ext >&5
23818 ac_header_preproc=no
23821 rm -f conftest.err conftest.$ac_ext
23822 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
23823 echo "${ECHO_T}$ac_header_preproc" >&6; }
23825 # So? What about this header?
23826 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
23828 { echo "$as_me:$LINENO: WARNING: tclInt.h: accepted by the compiler, rejected by the preprocessor!" >&5
23829 echo "$as_me: WARNING: tclInt.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
23830 { echo "$as_me:$LINENO: WARNING: tclInt.h: proceeding with the compiler's result" >&5
23831 echo "$as_me: WARNING: tclInt.h: proceeding with the compiler's result" >&2;}
23832 ac_header_preproc=yes
23835 { echo "$as_me:$LINENO: WARNING: tclInt.h: present but cannot be compiled" >&5
23836 echo "$as_me: WARNING: tclInt.h: present but cannot be compiled" >&2;}
23837 { echo "$as_me:$LINENO: WARNING: tclInt.h: check for missing prerequisite headers?" >&5
23838 echo "$as_me: WARNING: tclInt.h: check for missing prerequisite headers?" >&2;}
23839 { echo "$as_me:$LINENO: WARNING: tclInt.h: see the Autoconf documentation" >&5
23840 echo "$as_me: WARNING: tclInt.h: see the Autoconf documentation" >&2;}
23841 { echo "$as_me:$LINENO: WARNING: tclInt.h: section \"Present But Cannot Be Compiled\"" >&5
23842 echo "$as_me: WARNING: tclInt.h: section \"Present But Cannot Be Compiled\"" >&2;}
23843 { echo "$as_me:$LINENO: WARNING: tclInt.h: proceeding with the preprocessor's result" >&5
23844 echo "$as_me: WARNING: tclInt.h: proceeding with the preprocessor's result" >&2;}
23845 { echo "$as_me:$LINENO: WARNING: tclInt.h: in the future, the compiler will take precedence" >&5
23846 echo "$as_me: WARNING: tclInt.h: in the future, the compiler will take precedence" >&2;}
23850 { echo "$as_me:$LINENO: checking for tclInt.h" >&5
23851 echo $ECHO_N "checking for tclInt.h... $ECHO_C" >&6; }
23852 if test "${ac_cv_header_tclInt_h+set}" = set; then
23853 echo $ECHO_N "(cached) $ECHO_C" >&6
23855 ac_cv_header_tclInt_h=$ac_header_preproc
23857 { echo "$as_me:$LINENO: result: $ac_cv_header_tclInt_h" >&5
23858 echo "${ECHO_T}$ac_cv_header_tclInt_h" >&6; }
23861 if test $ac_cv_header_tclInt_h = yes; then
23862 ac_cv_c_tclh=installed
23872 if test x"${ac_cv_c_tclh}" = x ; then
23873 TCLHDIR="# no Tcl private headers found"
23874 { { echo "$as_me:$LINENO: error: Can't find Tcl private headers" >&5
23875 echo "$as_me: error: Can't find Tcl private headers" >&2;}
23876 { (exit 1); exit 1; }; }
23878 if test x"${ac_cv_c_tclh}" != x ; then
23880 if test x"${ac_cv_c_tclh}" = x"installed" ; then
23881 { echo "$as_me:$LINENO: result: is installed" >&5
23882 echo "${ECHO_T}is installed" >&6; }
23885 { echo "$as_me:$LINENO: result: found in ${ac_cv_c_tclh}" >&5
23886 echo "${ECHO_T}found in ${ac_cv_c_tclh}" >&6; }
23887 # this hack is cause the TCLHDIR won't print if there is a "-I" in it.
23888 TCLHDIR="-I${ac_cv_c_tclh}"
23896 # Ok, lets find the tk source trees so we can use the headers
23897 # If the directory (presumably symlink) named "tk" exists, use that one
23898 # in preference to any others. Same logic is used when choosing library
23899 # and again with Tcl. The search order is the best place to look first, then in
23900 # decreasing significance. The loop breaks if the trigger file is found.
23901 # Note the gross little conversion here of srcdir by cd'ing to the found
23902 # directory. This converts the path from a relative to an absolute, so
23903 # recursive cache variables for the path will work right. We check all
23904 # the possible paths in one loop rather than many seperate loops to speed
23906 # the alternative search directory is involked by --with-tkinclude
23909 { echo "$as_me:$LINENO: checking for Tk private headers" >&5
23910 echo $ECHO_N "checking for Tk private headers... $ECHO_C" >&6; }
23912 # Check whether --with-tkinclude was given.
23913 if test "${with_tkinclude+set}" = set; then
23914 withval=$with_tkinclude; with_tkinclude=${withval}
23917 if test "${ac_cv_c_tkh+set}" = set; then
23918 echo $ECHO_N "(cached) $ECHO_C" >&6
23921 # first check to see if --with-tkinclude was specified
23922 if test x"${with_tkinclude}" != x ; then
23923 if test -f ${with_tkinclude}/tk.h ; then
23924 ac_cv_c_tkh=`(cd ${with_tkinclude}; pwd)`
23925 elif test -f ${with_tkinclude}/generic/tk.h ; then
23926 ac_cv_c_tkh=`(cd ${with_tkinclude}/generic; pwd)`
23928 { { echo "$as_me:$LINENO: error: ${with_tkinclude} directory doesn't contain private headers" >&5
23929 echo "$as_me: error: ${with_tkinclude} directory doesn't contain private headers" >&2;}
23930 { (exit 1); exit 1; }; }
23934 # next check if it came with Tk configuration file
23935 if test x"${ac_cv_c_tkconfig}" = x ; then
23936 if test -f $ac_cv_c_tkconfig/../generic/tk.h ; then
23937 ac_cv_c_tkh=`(cd $ac_cv_c_tkconfig/..; pwd)`
23941 # next check in private source directory
23943 # since ls returns lowest version numbers first, reverse its output
23944 if test x"${ac_cv_c_tkh}" = x ; then
23947 `ls -dr ${srcdir}/../tk[4-9]* 2>/dev/null` \
23948 ${srcdir}/../../tk \
23949 `ls -dr ${srcdir}/../../tk[4-9]* 2>/dev/null` \
23950 ${srcdir}/../../../tk \
23951 `ls -dr ${srcdir}/../../../tk[4-9]* 2>/dev/null ` ; do
23952 if test -f $i/generic/tk.h ; then
23953 ac_cv_c_tkh=`(cd $i/generic; pwd)`
23958 # finally check in a few common install locations
23960 # since ls returns lowest version numbers first, reverse its output
23961 if test x"${ac_cv_c_tkh}" = x ; then
23963 `ls -dr /usr/local/src/tk[4-9]* 2>/dev/null` \
23964 `ls -dr /usr/local/lib/tk[4-9]* 2>/dev/null` \
23965 /usr/local/src/tk \
23966 /usr/local/lib/tk \
23967 ${prefix}/include ; do
23968 if test -f $i/generic/tk.h ; then
23969 ac_cv_c_tkh=`(cd $i/generic; pwd)`
23974 # see if one is installed
23975 if test x"${ac_cv_c_tkh}" = x ; then
23976 if test "${ac_cv_header_tk_h+set}" = set; then
23977 { echo "$as_me:$LINENO: checking for tk.h" >&5
23978 echo $ECHO_N "checking for tk.h... $ECHO_C" >&6; }
23979 if test "${ac_cv_header_tk_h+set}" = set; then
23980 echo $ECHO_N "(cached) $ECHO_C" >&6
23982 { echo "$as_me:$LINENO: result: $ac_cv_header_tk_h" >&5
23983 echo "${ECHO_T}$ac_cv_header_tk_h" >&6; }
23985 # Is the header compilable?
23986 { echo "$as_me:$LINENO: checking tk.h usability" >&5
23987 echo $ECHO_N "checking tk.h usability... $ECHO_C" >&6; }
23988 cat >conftest.$ac_ext <<_ACEOF
23991 cat confdefs.h >>conftest.$ac_ext
23992 cat >>conftest.$ac_ext <<_ACEOF
23993 /* end confdefs.h. */
23994 $ac_includes_default
23997 rm -f conftest.$ac_objext
23998 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
23999 (eval $ac_compile) 2>conftest.er1
24001 grep -v '^ *+' conftest.er1 >conftest.err
24003 cat conftest.err >&5
24004 echo "$as_me:$LINENO: \$? = $ac_status" >&5
24005 (exit $ac_status); } &&
24006 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
24007 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
24008 (eval $ac_try) 2>&5
24010 echo "$as_me:$LINENO: \$? = $ac_status" >&5
24011 (exit $ac_status); }; } &&
24012 { ac_try='test -s conftest.$ac_objext'
24013 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
24014 (eval $ac_try) 2>&5
24016 echo "$as_me:$LINENO: \$? = $ac_status" >&5
24017 (exit $ac_status); }; }; then
24018 ac_header_compiler=yes
24020 echo "$as_me: failed program was:" >&5
24021 sed 's/^/| /' conftest.$ac_ext >&5
24023 ac_header_compiler=no
24026 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
24027 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
24028 echo "${ECHO_T}$ac_header_compiler" >&6; }
24030 # Is the header present?
24031 { echo "$as_me:$LINENO: checking tk.h presence" >&5
24032 echo $ECHO_N "checking tk.h presence... $ECHO_C" >&6; }
24033 cat >conftest.$ac_ext <<_ACEOF
24036 cat confdefs.h >>conftest.$ac_ext
24037 cat >>conftest.$ac_ext <<_ACEOF
24038 /* end confdefs.h. */
24041 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
24042 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
24044 grep -v '^ *+' conftest.er1 >conftest.err
24046 cat conftest.err >&5
24047 echo "$as_me:$LINENO: \$? = $ac_status" >&5
24048 (exit $ac_status); } >/dev/null; then
24049 if test -s conftest.err; then
24050 ac_cpp_err=$ac_c_preproc_warn_flag
24051 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
24058 if test -z "$ac_cpp_err"; then
24059 ac_header_preproc=yes
24061 echo "$as_me: failed program was:" >&5
24062 sed 's/^/| /' conftest.$ac_ext >&5
24064 ac_header_preproc=no
24067 rm -f conftest.err conftest.$ac_ext
24068 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
24069 echo "${ECHO_T}$ac_header_preproc" >&6; }
24071 # So? What about this header?
24072 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
24074 { echo "$as_me:$LINENO: WARNING: tk.h: accepted by the compiler, rejected by the preprocessor!" >&5
24075 echo "$as_me: WARNING: tk.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
24076 { echo "$as_me:$LINENO: WARNING: tk.h: proceeding with the compiler's result" >&5
24077 echo "$as_me: WARNING: tk.h: proceeding with the compiler's result" >&2;}
24078 ac_header_preproc=yes
24081 { echo "$as_me:$LINENO: WARNING: tk.h: present but cannot be compiled" >&5
24082 echo "$as_me: WARNING: tk.h: present but cannot be compiled" >&2;}
24083 { echo "$as_me:$LINENO: WARNING: tk.h: check for missing prerequisite headers?" >&5
24084 echo "$as_me: WARNING: tk.h: check for missing prerequisite headers?" >&2;}
24085 { echo "$as_me:$LINENO: WARNING: tk.h: see the Autoconf documentation" >&5
24086 echo "$as_me: WARNING: tk.h: see the Autoconf documentation" >&2;}
24087 { echo "$as_me:$LINENO: WARNING: tk.h: section \"Present But Cannot Be Compiled\"" >&5
24088 echo "$as_me: WARNING: tk.h: section \"Present But Cannot Be Compiled\"" >&2;}
24089 { echo "$as_me:$LINENO: WARNING: tk.h: proceeding with the preprocessor's result" >&5
24090 echo "$as_me: WARNING: tk.h: proceeding with the preprocessor's result" >&2;}
24091 { echo "$as_me:$LINENO: WARNING: tk.h: in the future, the compiler will take precedence" >&5
24092 echo "$as_me: WARNING: tk.h: in the future, the compiler will take precedence" >&2;}
24096 { echo "$as_me:$LINENO: checking for tk.h" >&5
24097 echo $ECHO_N "checking for tk.h... $ECHO_C" >&6; }
24098 if test "${ac_cv_header_tk_h+set}" = set; then
24099 echo $ECHO_N "(cached) $ECHO_C" >&6
24101 ac_cv_header_tk_h=$ac_header_preproc
24103 { echo "$as_me:$LINENO: result: $ac_cv_header_tk_h" >&5
24104 echo "${ECHO_T}$ac_cv_header_tk_h" >&6; }
24107 if test $ac_cv_header_tk_h = yes; then
24108 ac_cv_c_tkh=installed
24118 if test x"${ac_cv_c_tkh}" != x ; then
24120 if test x"${ac_cv_c_tkh}" = x"installed" ; then
24121 { echo "$as_me:$LINENO: result: is installed" >&5
24122 echo "${ECHO_T}is installed" >&6; }
24125 { echo "$as_me:$LINENO: result: found in ${ac_cv_c_tkh}" >&5
24126 echo "${ECHO_T}found in ${ac_cv_c_tkh}" >&6; }
24127 # this hack is cause the TKHDIR won't print if there is a "-I" in it.
24128 TKHDIR="-I${ac_cv_c_tkh}"
24131 TKHDIR="# no Tk directory found"
24132 { echo "$as_me:$LINENO: WARNING: Can't find Tk private headers" >&5
24133 echo "$as_me: WARNING: Can't find Tk private headers" >&2;}
24140 { echo "$as_me:$LINENO: checking for Itcl private headers. srcdir=${srcdir}" >&5
24141 echo $ECHO_N "checking for Itcl private headers. srcdir=${srcdir}... $ECHO_C" >&6; }
24142 if test x"${ac_cv_c_itclh}" = x ; then
24143 for i in ${srcdir}/../itcl ${srcdir}/../../itcl ${srcdir}/../../../itcl ${srcdir}/../itcl/itcl; do
24144 if test -f $i/generic/itcl.h ; then
24145 ac_cv_c_itclh=`(cd $i/generic; pwd)`
24150 if test x"${ac_cv_c_itclh}" = x ; then
24151 ITCLHDIR="# no Itcl private headers found"
24152 { { echo "$as_me:$LINENO: error: Can't find Itcl private headers" >&5
24153 echo "$as_me: error: Can't find Itcl private headers" >&2;}
24154 { (exit 1); exit 1; }; }
24156 if test x"${ac_cv_c_itclh}" != x ; then
24157 ITCLHDIR="-I${ac_cv_c_itclh}"
24159 # should always be here
24160 # ITCLLIB="../itcl/itcl/unix/libitcl.a"
24165 { echo "$as_me:$LINENO: checking for Itk private headers. srcdir=${srcdir}" >&5
24166 echo $ECHO_N "checking for Itk private headers. srcdir=${srcdir}... $ECHO_C" >&6; }
24167 if test x"${ac_cv_c_itkh}" = x ; then
24168 for i in ${srcdir}/../itcl ${srcdir}/../../itcl ${srcdir}/../../../itcl ${srcdir}/../itcl/itk; do
24169 if test -f $i/generic/itk.h ; then
24170 ac_cv_c_itkh=`(cd $i/generic; pwd)`
24175 if test x"${ac_cv_c_itkh}" = x ; then
24176 ITKHDIR="# no Itk private headers found"
24177 { { echo "$as_me:$LINENO: error: Can't find Itk private headers" >&5
24178 echo "$as_me: error: Can't find Itk private headers" >&2;}
24179 { (exit 1); exit 1; }; }
24181 if test x"${ac_cv_c_itkh}" != x ; then
24182 ITKHDIR="-I${ac_cv_c_itkh}"
24184 # should always be here
24185 # ITKLIB="../itcl/itk/unix/libitk.a"
24191 # now look for Tk library stuff
24193 tkdir="../tk/${configdir}/"
24195 TK_DEPS="${tkdir}${TK_LIB_FILE}"
24197 # now look for Itcl library stuff
24201 # Ok, lets find the itcl configuration
24202 # First, look for one uninstalled.
24203 # the alternative search directory is invoked by --with-itclconfig
24206 if test x"${no_itcl}" = x ; then
24207 # we reset no_itcl in case something fails here
24210 # Check whether --with-itclconfig was given.
24211 if test "${with_itclconfig+set}" = set; then
24212 withval=$with_itclconfig; with_itclconfig=${withval}
24215 { echo "$as_me:$LINENO: checking for Itcl configuration" >&5
24216 echo $ECHO_N "checking for Itcl configuration... $ECHO_C" >&6; }
24217 if test "${ac_cv_c_itclconfig+set}" = set; then
24218 echo $ECHO_N "(cached) $ECHO_C" >&6
24222 # First check to see if --with-itclconfig was specified.
24223 if test x"${with_itclconfig}" != x ; then
24224 if test -f "${with_itclconfig}/itclConfig.sh" ; then
24225 ac_cv_c_itclconfig=`(cd ${with_itclconfig}; pwd)`
24227 { { echo "$as_me:$LINENO: error: ${with_itclconfig} directory doesn't contain itclConfig.sh" >&5
24228 echo "$as_me: error: ${with_itclconfig} directory doesn't contain itclConfig.sh" >&2;}
24229 { (exit 1); exit 1; }; }
24233 # then check for a private Itcl library
24234 if test x"${ac_cv_c_itclconfig}" = x ; then
24237 `ls -dr ../itcl[4-9]*/itcl 2>/dev/null` \
24239 `ls -dr ../../itcl[4-9]*/itcl 2>/dev/null` \
24241 `ls -dr ../../../itcl[4-9]*/itcl 2>/dev/null` ; do
24242 if test -f "$i/itclConfig.sh" ; then
24243 ac_cv_c_itclconfig=`(cd $i; pwd)`
24248 # check in a few common install locations
24249 if test x"${ac_cv_c_itclconfig}" = x ; then
24250 for i in `ls -d ${prefix}/lib /usr/local/lib 2>/dev/null` ; do
24251 if test -f "$i/itclConfig.sh" ; then
24252 ac_cv_c_itclconfig=`(cd $i; pwd)`
24257 # check in a few other private locations
24258 if test x"${ac_cv_c_itclconfig}" = x ; then
24260 ${srcdir}/../itcl/itcl \
24261 `ls -dr ${srcdir}/../itcl[4-9]*/itcl 2>/dev/null` ; do
24262 if test -f "$i/itclConfig.sh" ; then
24263 ac_cv_c_itclconfig=`(cd $i; pwd)`
24271 if test x"${ac_cv_c_itclconfig}" = x ; then
24272 ITCLCONFIG="# no Itcl configs found"
24273 { echo "$as_me:$LINENO: WARNING: Can't find Itcl configuration definitions" >&5
24274 echo "$as_me: WARNING: Can't find Itcl configuration definitions" >&2;}
24277 ITCLCONFIG=${ac_cv_c_itclconfig}/itclConfig.sh
24278 { echo "$as_me:$LINENO: result: found $ITCLCONFIG" >&5
24279 echo "${ECHO_T}found $ITCLCONFIG" >&6; }
24283 if test -z "${no_itcl}"; then
24285 if test -f "$ITCLCONFIG" ; then
24300 ITCLLIB="${ITCL_BUILD_LIB_SPEC}"
24301 ITCL_DEPS="${ITCL_LIB_FULL_PATH}"
24305 # now look for Itk library stuff
24308 # Ok, lets find the itk configuration
24309 # First, look for one uninstalled.
24310 # the alternative search directory is invoked by --with-itkconfig
24313 if test x"${no_itk}" = x ; then
24314 # we reset no_itk in case something fails here
24317 # Check whether --with-itkconfig was given.
24318 if test "${with_itkconfig+set}" = set; then
24319 withval=$with_itkconfig; with_itkconfig=${withval}
24322 { echo "$as_me:$LINENO: checking for Itk configuration" >&5
24323 echo $ECHO_N "checking for Itk configuration... $ECHO_C" >&6; }
24324 if test "${ac_cv_c_itkconfig+set}" = set; then
24325 echo $ECHO_N "(cached) $ECHO_C" >&6
24329 # First check to see if --with-itkconfig was specified.
24330 if test x"${with_itkconfig}" != x ; then
24331 if test -f "${with_itkconfig}/itkConfig.sh" ; then
24332 ac_cv_c_itkconfig=`(cd ${with_itkconfig}; pwd)`
24334 { { echo "$as_me:$LINENO: error: ${with_itkconfig} directory doesn't contain itkConfig.sh" >&5
24335 echo "$as_me: error: ${with_itkconfig} directory doesn't contain itkConfig.sh" >&2;}
24336 { (exit 1); exit 1; }; }
24340 # then check for a private Itk library
24341 if test x"${ac_cv_c_itkconfig}" = x ; then
24344 `ls -dr ../itcl[4-9]*/itk 2>/dev/null` \
24346 `ls -dr ../../itcl[4-9]*/itk 2>/dev/null` \
24348 `ls -dr ../../../itcl[4-9]*/itk 2>/dev/null` ; do
24349 if test -f "$i/itkConfig.sh" ; then
24350 ac_cv_c_itkconfig=`(cd $i; pwd)`
24355 # check in a few common install locations
24356 if test x"${ac_cv_c_itkconfig}" = x ; then
24357 for i in `ls -d ${prefix}/lib /usr/local/lib 2>/dev/null` ; do
24358 if test -f "$i/itkConfig.sh" ; then
24359 ac_cv_c_itkconfig=`(cd $i; pwd)`
24364 # check in a few other private locations
24365 if test x"${ac_cv_c_itkconfig}" = x ; then
24367 ${srcdir}/../itcl/itk \
24368 `ls -dr ${srcdir}/../itcl[4-9]*/itk 2>/dev/null` ; do
24369 if test -f "$i/itkConfig.sh" ; then
24370 ac_cv_c_itkconfig=`(cd $i; pwd)`
24378 if test x"${ac_cv_c_itkconfig}" = x ; then
24379 ITKCONFIG="# no Itk configs found"
24380 { echo "$as_me:$LINENO: WARNING: Can't find Itk configuration definitions" >&5
24381 echo "$as_me: WARNING: Can't find Itk configuration definitions" >&2;}
24384 ITKCONFIG=${ac_cv_c_itkconfig}/itkConfig.sh
24385 { echo "$as_me:$LINENO: result: found $ITKCONFIG" >&5
24386 echo "${ECHO_T}found $ITKCONFIG" >&6; }
24391 if test -z "${no_itcl}"; then
24393 if test -f "$ITKCONFIG" ; then
24408 ITKLIB="${ITK_BUILD_LIB_SPEC}"
24409 ITK_DEPS="${ITK_LIB_FULL_PATH}"
24412 ENABLE_CFLAGS="${ENABLE_CFLAGS} \$(SUBDIR_GDBTK_CFLAGS)"
24414 # Include some libraries that Tcl and Tk want.
24415 TCL_LIBS='$(LIBGUI) $(ITCL) $(ITK) $(TK) $(TCL) $(X11_LDFLAGS) $(X11_LIBS)'
24416 # Yes, the ordering seems wrong here. But it isn't.
24417 # TK_LIBS is the list of libraries that need to be linked
24418 # after Tcl/Tk. Note that this isn't put into LIBS. If it
24419 # were in LIBS then any link tests after this point would
24420 # try to include things like `$(LIBGUI)', which wouldn't work.
24421 GDBTKLIBS="${TCL_LIBS} ${TK_LIBS}"
24423 CONFIG_OBS="${CONFIG_OBS} \$(SUBDIR_GDBTK_OBS)"
24424 CONFIG_DEPS="${CONFIG_DEPS} \$(SUBDIR_GDBTK_DEPS)"
24425 CONFIG_SRCS="${CONFIG_SRCS} \$(SUBDIR_GDBTK_SRCS)"
24426 CONFIG_ALL="${CONFIG_ALL} all-gdbtk"
24427 CONFIG_CLEAN="${CONFIG_CLEAN} clean-gdbtk"
24428 CONFIG_INSTALL="${CONFIG_INSTALL} install-gdbtk"
24429 CONFIG_UNINSTALL="${CONFIG_UNINSTALL} uninstall-gdbtk"
24431 if test x$gdb_cv_os_cygwin = xyes; then
24432 WIN32LIBS="${WIN32LIBS} -lshell32 -lgdi32 -lcomdlg32 -ladvapi32"
24433 WIN32LDAPP="-Wl,--subsystem,console"
24434 CONFIG_OBS="${CONFIG_OBS} gdbres.o"
24439 subdirs="$subdirs gdbtk"
24456 { echo "$as_me:$LINENO: checking for X" >&5
24457 echo $ECHO_N "checking for X... $ECHO_C" >&6; }
24459 ac_path_x_has_been_run=yes
24461 # Check whether --with-x was given.
24462 if test "${with_x+set}" = set; then
24466 # $have_x is `yes', `no', `disabled', or empty when we do not yet know.
24467 if test "x$with_x" = xno; then
24468 # The user explicitly disabled X.
24471 if test "x$x_includes" != xNONE && test "x$x_libraries" != xNONE; then
24472 # Both variables are already set.
24475 if test "${ac_cv_have_x+set}" = set; then
24476 echo $ECHO_N "(cached) $ECHO_C" >&6
24478 # One or both of the vars are not set, and there is no cached value.
24479 ac_x_includes=no ac_x_libraries=no
24480 rm -f -r conftest.dir
24481 if mkdir conftest.dir; then
24483 # Make sure to not put "make" in the Imakefile rules, since we grep it out.
24484 cat >Imakefile <<'_ACEOF'
24486 @echo 'ac_im_incroot="${INCROOT}"; ac_im_usrlibdir="${USRLIBDIR}"; ac_im_libdir="${LIBDIR}"'
24488 if (export CC; ${XMKMF-xmkmf}) >/dev/null 2>/dev/null && test -f Makefile; then
24489 # GNU make sometimes prints "make[1]: Entering...", which would confuse us.
24490 eval `${MAKE-make} acfindx 2>/dev/null | grep -v make`
24491 # Open Windows xmkmf reportedly sets LIBDIR instead of USRLIBDIR.
24492 for ac_extension in a so sl; do
24493 if test ! -f $ac_im_usrlibdir/libX11.$ac_extension &&
24494 test -f $ac_im_libdir/libX11.$ac_extension; then
24495 ac_im_usrlibdir=$ac_im_libdir; break
24498 # Screen out bogus values from the imake configuration. They are
24499 # bogus both because they are the default anyway, and because
24500 # using them would break gcc on systems where it needs fixed includes.
24501 case $ac_im_incroot in
24502 /usr/include) ac_x_includes= ;;
24503 *) test -f "$ac_im_incroot/X11/Xos.h" && ac_x_includes=$ac_im_incroot;;
24505 case $ac_im_usrlibdir in
24506 /usr/lib | /lib) ;;
24507 *) test -d "$ac_im_usrlibdir" && ac_x_libraries=$ac_im_usrlibdir ;;
24511 rm -f -r conftest.dir
24514 # Standard set of common directories for X headers.
24515 # Check X11 before X11Rn because it is often a symlink to the current release.
24527 /usr/local/X11/include
24528 /usr/local/X11R6/include
24529 /usr/local/X11R5/include
24530 /usr/local/X11R4/include
24532 /usr/local/include/X11
24533 /usr/local/include/X11R6
24534 /usr/local/include/X11R5
24535 /usr/local/include/X11R4
24539 /usr/XFree86/include/X11
24543 /usr/unsupported/include
24544 /usr/athena/include
24545 /usr/local/x11r5/include
24546 /usr/lpp/Xamples/include
24548 /usr/openwin/include
24549 /usr/openwin/share/include'
24551 if test "$ac_x_includes" = no; then
24552 # Guess where to find include files, by looking for Xlib.h.
24553 # First, try using that file with no special directory specified.
24554 cat >conftest.$ac_ext <<_ACEOF
24557 cat confdefs.h >>conftest.$ac_ext
24558 cat >>conftest.$ac_ext <<_ACEOF
24559 /* end confdefs.h. */
24560 #include <X11/Xlib.h.h>
24562 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
24563 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
24565 grep -v '^ *+' conftest.er1 >conftest.err
24567 cat conftest.err >&5
24568 echo "$as_me:$LINENO: \$? = $ac_status" >&5
24569 (exit $ac_status); } >/dev/null; then
24570 if test -s conftest.err; then
24571 ac_cpp_err=$ac_c_preproc_warn_flag
24572 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
24579 if test -z "$ac_cpp_err"; then
24580 # We can compile using X headers with no special include directory.
24583 echo "$as_me: failed program was:" >&5
24584 sed 's/^/| /' conftest.$ac_ext >&5
24586 for ac_dir in $ac_x_header_dirs; do
24587 if test -r "$ac_dir/X11/Xlib.h"; then
24588 ac_x_includes=$ac_dir
24594 rm -f conftest.err conftest.$ac_ext
24595 fi # $ac_x_includes = no
24597 if test "$ac_x_libraries" = no; then
24598 # Check for the libraries.
24599 # See if we find them without any special options.
24600 # Don't add to $LIBS permanently.
24603 cat >conftest.$ac_ext <<_ACEOF
24606 cat confdefs.h >>conftest.$ac_ext
24607 cat >>conftest.$ac_ext <<_ACEOF
24608 /* end confdefs.h. */
24609 #include <X11/Xlib.h>
24618 rm -f conftest.$ac_objext conftest$ac_exeext
24619 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
24620 (eval $ac_link) 2>conftest.er1
24622 grep -v '^ *+' conftest.er1 >conftest.err
24624 cat conftest.err >&5
24625 echo "$as_me:$LINENO: \$? = $ac_status" >&5
24626 (exit $ac_status); } &&
24627 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
24628 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
24629 (eval $ac_try) 2>&5
24631 echo "$as_me:$LINENO: \$? = $ac_status" >&5
24632 (exit $ac_status); }; } &&
24633 { ac_try='test -s conftest$ac_exeext'
24634 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
24635 (eval $ac_try) 2>&5
24637 echo "$as_me:$LINENO: \$? = $ac_status" >&5
24638 (exit $ac_status); }; }; then
24640 # We can link X programs with no special library path.
24643 echo "$as_me: failed program was:" >&5
24644 sed 's/^/| /' conftest.$ac_ext >&5
24647 for ac_dir in `echo "$ac_x_includes $ac_x_header_dirs" | sed s/include/lib/g`
24649 # Don't even attempt the hair of trying to link an X program!
24650 for ac_extension in a so sl; do
24651 if test -r $ac_dir/libX11.$ac_extension; then
24652 ac_x_libraries=$ac_dir
24659 rm -f conftest.err conftest.$ac_objext \
24660 conftest$ac_exeext conftest.$ac_ext
24661 fi # $ac_x_libraries = no
24663 if test "$ac_x_includes" = no || test "$ac_x_libraries" = no; then
24664 # Didn't find X anywhere. Cache the known absence of X.
24665 ac_cv_have_x="have_x=no"
24667 # Record where we found X for the cache.
24668 ac_cv_have_x="have_x=yes \
24669 ac_x_includes=$ac_x_includes ac_x_libraries=$ac_x_libraries"
24674 eval "$ac_cv_have_x"
24677 if test "$have_x" != yes; then
24678 { echo "$as_me:$LINENO: result: $have_x" >&5
24679 echo "${ECHO_T}$have_x" >&6; }
24682 # If each of the values was on the command line, it overrides each guess.
24683 test "x$x_includes" = xNONE && x_includes=$ac_x_includes
24684 test "x$x_libraries" = xNONE && x_libraries=$ac_x_libraries
24685 # Update the cache value to reflect the command line values.
24686 ac_cv_have_x="have_x=yes \
24687 ac_x_includes=$x_includes ac_x_libraries=$x_libraries"
24688 # It might be that x_includes is empty (headers are found in the
24689 # standard search path. Then output the corresponding message
24690 ac_out_x_includes=$x_includes
24691 test "x$x_includes" = x && ac_out_x_includes="in standard search path"
24692 { echo "$as_me:$LINENO: result: libraries $x_libraries, headers $ac_out_x_includes" >&5
24693 echo "${ECHO_T}libraries $x_libraries, headers $ac_out_x_includes" >&6; }
24697 # Check whether we should enable the TUI, but only do so if we really
24699 if test x"$enable_tui" = xyes; then
24700 if test -d $srcdir/tui; then
24701 if test "$ac_cv_search_waddstr" != no; then
24702 CONFIG_OBS="$CONFIG_OBS \$(SUBDIR_TUI_OBS)"
24703 CONFIG_DEPS="$CONFIG_DEPS \$(SUBDIR_TUI_DEPS)"
24704 CONFIG_SRCS="$CONFIG_SRCS \$(SUBDIR_TUI_SRCS)"
24705 CONFIG_INITS="$CONFIG_INITS \$(SUBDIR_TUI_INITS)"
24706 ENABLE_CFLAGS="$ENABLE_CFLAGS \$(SUBDIR_TUI_CFLAGS)"
24707 CONFIG_ALL="${CONFIG_ALL} all-tui"
24708 CONFIG_CLEAN="${CONFIG_CLEAN} clean-tui"
24709 CONFIG_INSTALL="${CONFIG_INSTALL} install-tui"
24710 CONFIG_UNINSTALL="${CONFIG_UNINSTALL} uninstall-tui"
24712 { echo "$as_me:$LINENO: WARNING: no enhanced curses library found; disabling TUI" >&5
24713 echo "$as_me: WARNING: no enhanced curses library found; disabling TUI" >&2;}
24718 # Unlike the sim directory, whether a simulator is linked is controlled by
24719 # presence of a SIM= and a SIM_OBS= definition in the target '.mt' file.
24720 # This code just checks for a few cases where we'd like to ignore those
24721 # definitions, even when they're present in the '.mt' file. These cases
24722 # are when --disable-sim is specified, or if the simulator directory is
24723 # not part of the source tree.
24725 # Check whether --enable-sim was given.
24726 if test "${enable_sim+set}" = set; then
24727 enableval=$enable_sim; echo "enable_sim = $enable_sim";
24728 echo "enableval = ${enableval}";
24729 case "${enableval}" in
24730 yes) ignore_sim=false ;;
24731 no) ignore_sim=true ;;
24732 *) ignore_sim=false ;;
24739 if test ! -d "${srcdir}/../sim"; then
24743 if test "${ignore_sim}" = "true"; then
24745 IGNORE_SIM_OBS="SIM_OBS="
24750 cat >>confdefs.h <<\_ACEOF
24769 # List of host floatformats.
24771 cat >>confdefs.h <<_ACEOF
24772 #define GDB_HOST_FLOAT_FORMAT $gdb_host_float_format
24776 cat >>confdefs.h <<_ACEOF
24777 #define GDB_HOST_DOUBLE_FORMAT $gdb_host_double_format
24781 cat >>confdefs.h <<_ACEOF
24782 #define GDB_HOST_LONG_DOUBLE_FORMAT $gdb_host_long_double_format
24786 # target_subdir is used by the testsuite to find the target libraries.
24788 if test "${host}" != "${target}"; then
24789 target_subdir="${target_alias}/"
24794 if test "${target}" = "${host}"; then
24795 host_makefile_frag=${srcdir}/config/${gdb_host_cpu}/${gdb_host}.mh
24796 if test ! -f ${host_makefile_frag}; then
24797 { { echo "$as_me:$LINENO: error: \"*** Gdb does not support native target ${host}\"" >&5
24798 echo "$as_me: error: \"*** Gdb does not support native target ${host}\"" >&2;}
24799 { (exit 1); exit 1; }; }
24801 frags="$frags $host_makefile_frag"
24803 host_makefile_frag=/dev/null
24806 target_makefile_frag=${srcdir}/config/${gdb_target_cpu}/${gdb_target}.mt
24807 if test ! -f ${target_makefile_frag}; then
24808 { { echo "$as_me:$LINENO: error: \"*** Gdb does not support target ${target}\"" >&5
24809 echo "$as_me: error: \"*** Gdb does not support target ${target}\"" >&2;}
24810 { (exit 1); exit 1; }; }
24812 frags="$frags $target_makefile_frag"
24819 s/XM_FILE[ ]*=[ ]*\([^ ]*\)/\1/p
24820 ' ${host_makefile_frag}`
24822 targetfile=`sed -n '
24823 s/DEPRECATED_TM_FILE[ ]*=[ ]*\([^ ]*\)/\1/p
24824 ' ${target_makefile_frag}`
24826 if test "${target}" = "${host}"; then
24827 # We pick this up from the host configuration file (.mh) because we
24828 # do not have a native configuration Makefile fragment.
24829 nativefile=`sed -n '
24830 s/NAT_FILE[ ]*=[ ]*\([^ ]*\)/\1/p
24831 ' ${host_makefile_frag}`
24835 if test x"${gdb_osabi}" != x ; then
24837 cat >>confdefs.h <<_ACEOF
24838 #define GDB_OSABI_DEFAULT $gdb_osabi
24843 # Enable multi-ice-gdb-server.
24844 # Check whether --enable-multi-ice was given.
24845 if test "${enable_multi_ice+set}" = set; then
24846 enableval=$enable_multi_ice; case $enableval in
24849 *) { { echo "$as_me:$LINENO: error: bad value $enableval for --enable-multi-ice" >&5
24850 echo "$as_me: error: bad value $enableval for --enable-multi-ice" >&2;}
24851 { (exit 1); exit 1; }; } ;;
24855 if test "x$enable_multi_ice" = xyes; then
24856 subdirs="$subdirs multi-ice"
24860 # We only build gdbserver automatically if host and target are the same.
24861 if test "x$target" = "x$host"; then
24862 { echo "$as_me:$LINENO: checking whether gdbserver is supported on this host" >&5
24863 echo $ECHO_N "checking whether gdbserver is supported on this host... $ECHO_C" >&6; }
24864 if test "x$build_gdbserver" = xyes; then
24865 { echo "$as_me:$LINENO: result: yes" >&5
24866 echo "${ECHO_T}yes" >&6; }
24867 subdirs="$subdirs gdbserver"
24870 { echo "$as_me:$LINENO: result: no" >&5
24871 echo "${ECHO_T}no" >&6; }
24875 # If hostfile (XM_FILE) and/or targetfile (DEPRECATED_TM_FILE) and/or
24876 # nativefile (NAT_FILE) is not set in config/*/*.m[ht] files, we link
24877 # to an empty version.
24884 if test "${hostfile}" != ""; then
24886 case "${hostfile}" in
24887 xm-*.h ) GDB_XM_FILE="config/${gdb_host_cpu}/${hostfile}" ;;
24888 * ) GDB_XM_FILE="${hostfile}"
24890 files="${files} ${GDB_XM_FILE}"
24891 links="${links} xm.h"
24893 cat >>confdefs.h <<_ACEOF
24894 #define GDB_XM_FILE "${GDB_XM_FILE}"
24902 if test "${targetfile}" != ""; then
24904 case "${targetfile}" in
24905 tm-*.h ) GDB_TM_FILE="config/${gdb_target_cpu}/${targetfile}" ;;
24906 * ) GDB_TM_FILE="${targetfile}"
24908 files="${files} ${GDB_TM_FILE}"
24909 links="${links} tm.h"
24911 cat >>confdefs.h <<_ACEOF
24912 #define GDB_TM_FILE "${GDB_TM_FILE}"
24920 if test "${nativefile}" != ""; then
24922 case "${nativefile}" in
24923 nm-*.h ) GDB_NM_FILE="config/${gdb_host_cpu}/${nativefile}" ;;
24924 * ) GDB_NM_FILE="${nativefile}"
24926 files="${files} ${GDB_NM_FILE}"
24927 links="${links} nm.h"
24929 cat >>confdefs.h <<_ACEOF
24930 #define GDB_NM_FILE "${GDB_NM_FILE}"
24936 ac_sources="$files"
24938 while test -n "$ac_sources"; do
24939 set $ac_dests; ac_dest=$1; shift; ac_dests=$*
24940 set $ac_sources; ac_source=$1; shift; ac_sources=$*
24941 ac_config_links_1="$ac_config_links_1 $ac_dest:$ac_source"
24943 ac_config_links="$ac_config_links $ac_config_links_1"
24950 cat >>confdefs.h <<\_ACEOF
24951 #define GDB_DEFAULT_HOST_CHARSET "ISO-8859-1"
24958 # Check whether --with-libiconv-prefix was given.
24959 if test "${with_libiconv_prefix+set}" = set; then
24960 withval=$with_libiconv_prefix;
24961 for dir in `echo "$withval" | tr : ' '`; do
24962 if test -d $dir/include; then CPPFLAGS="$CPPFLAGS -I$dir/include"; fi
24963 if test -d $dir/lib; then LDFLAGS="$LDFLAGS -L$dir/lib"; fi
24969 { echo "$as_me:$LINENO: checking for iconv" >&5
24970 echo $ECHO_N "checking for iconv... $ECHO_C" >&6; }
24971 if test "${am_cv_func_iconv+set}" = set; then
24972 echo $ECHO_N "(cached) $ECHO_C" >&6
24975 am_cv_func_iconv="no, consider installing GNU libiconv"
24977 cat >conftest.$ac_ext <<_ACEOF
24980 cat confdefs.h >>conftest.$ac_ext
24981 cat >>conftest.$ac_ext <<_ACEOF
24982 /* end confdefs.h. */
24983 #include <stdlib.h>
24988 iconv_t cd = iconv_open("","");
24989 iconv(cd,NULL,NULL,NULL,NULL);
24995 rm -f conftest.$ac_objext conftest$ac_exeext
24996 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
24997 (eval $ac_link) 2>conftest.er1
24999 grep -v '^ *+' conftest.er1 >conftest.err
25001 cat conftest.err >&5
25002 echo "$as_me:$LINENO: \$? = $ac_status" >&5
25003 (exit $ac_status); } &&
25004 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
25005 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
25006 (eval $ac_try) 2>&5
25008 echo "$as_me:$LINENO: \$? = $ac_status" >&5
25009 (exit $ac_status); }; } &&
25010 { ac_try='test -s conftest$ac_exeext'
25011 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
25012 (eval $ac_try) 2>&5
25014 echo "$as_me:$LINENO: \$? = $ac_status" >&5
25015 (exit $ac_status); }; }; then
25016 am_cv_func_iconv=yes
25018 echo "$as_me: failed program was:" >&5
25019 sed 's/^/| /' conftest.$ac_ext >&5
25024 rm -f conftest.err conftest.$ac_objext \
25025 conftest$ac_exeext conftest.$ac_ext
25026 if test "$am_cv_func_iconv" != yes; then
25027 am_save_LIBS="$LIBS"
25028 LIBS="$LIBS -liconv"
25029 cat >conftest.$ac_ext <<_ACEOF
25032 cat confdefs.h >>conftest.$ac_ext
25033 cat >>conftest.$ac_ext <<_ACEOF
25034 /* end confdefs.h. */
25035 #include <stdlib.h>
25040 iconv_t cd = iconv_open("","");
25041 iconv(cd,NULL,NULL,NULL,NULL);
25047 rm -f conftest.$ac_objext conftest$ac_exeext
25048 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
25049 (eval $ac_link) 2>conftest.er1
25051 grep -v '^ *+' conftest.er1 >conftest.err
25053 cat conftest.err >&5
25054 echo "$as_me:$LINENO: \$? = $ac_status" >&5
25055 (exit $ac_status); } &&
25056 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
25057 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
25058 (eval $ac_try) 2>&5
25060 echo "$as_me:$LINENO: \$? = $ac_status" >&5
25061 (exit $ac_status); }; } &&
25062 { ac_try='test -s conftest$ac_exeext'
25063 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
25064 (eval $ac_try) 2>&5
25066 echo "$as_me:$LINENO: \$? = $ac_status" >&5
25067 (exit $ac_status); }; }; then
25068 am_cv_lib_iconv=yes
25069 am_cv_func_iconv=yes
25071 echo "$as_me: failed program was:" >&5
25072 sed 's/^/| /' conftest.$ac_ext >&5
25077 rm -f conftest.err conftest.$ac_objext \
25078 conftest$ac_exeext conftest.$ac_ext
25079 LIBS="$am_save_LIBS"
25083 { echo "$as_me:$LINENO: result: $am_cv_func_iconv" >&5
25084 echo "${ECHO_T}$am_cv_func_iconv" >&6; }
25085 if test "$am_cv_func_iconv" = yes; then
25087 cat >>confdefs.h <<\_ACEOF
25088 #define HAVE_ICONV 1
25091 { echo "$as_me:$LINENO: checking for iconv declaration" >&5
25092 echo $ECHO_N "checking for iconv declaration... $ECHO_C" >&6; }
25093 if test "${am_cv_proto_iconv+set}" = set; then
25094 echo $ECHO_N "(cached) $ECHO_C" >&6
25097 cat >conftest.$ac_ext <<_ACEOF
25100 cat confdefs.h >>conftest.$ac_ext
25101 cat >>conftest.$ac_ext <<_ACEOF
25102 /* end confdefs.h. */
25104 #include <stdlib.h>
25110 #if defined(__STDC__) || defined(__cplusplus)
25111 size_t iconv (iconv_t cd, char * *inbuf, size_t *inbytesleft, char * *outbuf, size_t *outbytesleft);
25124 rm -f conftest.$ac_objext
25125 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
25126 (eval $ac_compile) 2>conftest.er1
25128 grep -v '^ *+' conftest.er1 >conftest.err
25130 cat conftest.err >&5
25131 echo "$as_me:$LINENO: \$? = $ac_status" >&5
25132 (exit $ac_status); } &&
25133 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
25134 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
25135 (eval $ac_try) 2>&5
25137 echo "$as_me:$LINENO: \$? = $ac_status" >&5
25138 (exit $ac_status); }; } &&
25139 { ac_try='test -s conftest.$ac_objext'
25140 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
25141 (eval $ac_try) 2>&5
25143 echo "$as_me:$LINENO: \$? = $ac_status" >&5
25144 (exit $ac_status); }; }; then
25145 am_cv_proto_iconv_arg1=""
25147 echo "$as_me: failed program was:" >&5
25148 sed 's/^/| /' conftest.$ac_ext >&5
25150 am_cv_proto_iconv_arg1="const"
25153 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
25154 am_cv_proto_iconv="extern size_t iconv (iconv_t cd, $am_cv_proto_iconv_arg1 char * *inbuf, size_t *inbytesleft, char * *outbuf, size_t *outbytesleft);"
25157 am_cv_proto_iconv=`echo "$am_cv_proto_iconv" | tr -s ' ' | sed -e 's/( /(/'`
25158 { echo "$as_me:$LINENO: result: ${ac_t:-
25159 }$am_cv_proto_iconv" >&5
25160 echo "${ECHO_T}${ac_t:-
25161 }$am_cv_proto_iconv" >&6; }
25163 cat >>confdefs.h <<_ACEOF
25164 #define ICONV_CONST $am_cv_proto_iconv_arg1
25169 if test "$am_cv_lib_iconv" = yes; then
25175 ac_config_files="$ac_config_files Makefile .gdbinit:gdbinit.in"
25177 ac_config_commands="$ac_config_commands default"
25179 cat >confcache <<\_ACEOF
25180 # This file is a shell script that caches the results of configure
25181 # tests run on this system so they can be shared between configure
25182 # scripts and configure runs, see configure's option --config-cache.
25183 # It is not useful on other systems. If it contains results you don't
25184 # want to keep, you may remove or edit it.
25186 # config.status only pays attention to the cache file if you give it
25187 # the --recheck option to rerun configure.
25189 # `ac_cv_env_foo' variables (set or unset) will be overridden when
25190 # loading this file, other *unset* `ac_cv_foo' will be assigned the
25191 # following values.
25195 # The following way of writing the cache mishandles newlines in values,
25196 # but we know of no workaround that is simple, portable, and efficient.
25197 # So, we kill variables containing newlines.
25198 # Ultrix sh set writes to stderr and can't be redirected directly,
25199 # and sets the high bit in the cache file unless we assign to the vars.
25201 for ac_var in `(set) 2>&1 | sed -n 's/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'`; do
25202 eval ac_val=\$$ac_var
25206 *_cv_*) { echo "$as_me:$LINENO: WARNING: Cache variable $ac_var contains a newline." >&5
25207 echo "$as_me: WARNING: Cache variable $ac_var contains a newline." >&2;} ;;
25210 _ | IFS | as_nl) ;; #(
25211 *) $as_unset $ac_var ;;
25217 case $as_nl`(ac_space=' '; set) 2>&1` in #(
25218 *${as_nl}ac_space=\ *)
25219 # `set' does not quote correctly, so add quotes (double-quote
25220 # substitution turns \\\\ into \\, and sed turns \\ into \).
25223 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p"
25226 # `set' quotes correctly as required by POSIX, so do not add quotes.
25227 sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
25236 s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/
25238 s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/
25240 if diff $cache_file confcache >/dev/null 2>&1; then :; else
25241 if test -w $cache_file; then
25242 test "x$cache_file" != "x/dev/null" &&
25243 { echo "$as_me:$LINENO: updating cache $cache_file" >&5
25244 echo "$as_me: updating cache $cache_file" >&6;}
25245 cat confcache >$cache_file
25247 { echo "$as_me:$LINENO: not updating unwritable cache $cache_file" >&5
25248 echo "$as_me: not updating unwritable cache $cache_file" >&6;}
25253 test "x$prefix" = xNONE && prefix=$ac_default_prefix
25254 # Let make expand exec_prefix.
25255 test "x$exec_prefix" = xNONE && exec_prefix='${prefix}'
25257 DEFS=-DHAVE_CONFIG_H
25261 for ac_i in : $LIBOBJS; do test "x$ac_i" = x: && continue
25262 # 1. Remove the extension, and $U if already installed.
25263 ac_script='s/\$U\././;s/\.o$//;s/\.obj$//'
25264 ac_i=`echo "$ac_i" | sed "$ac_script"`
25265 # 2. Prepend LIBOBJDIR. When used with automake>=1.10 LIBOBJDIR
25266 # will be set to the directory where LIBOBJS objects are built.
25267 ac_libobjs="$ac_libobjs \${LIBOBJDIR}$ac_i\$U.$ac_objext"
25268 ac_ltlibobjs="$ac_ltlibobjs \${LIBOBJDIR}$ac_i"'$U.lo'
25270 LIBOBJS=$ac_libobjs
25272 LTLIBOBJS=$ac_ltlibobjs
25275 if test -z "${MAINTAINER_MODE_TRUE}" && test -z "${MAINTAINER_MODE_FALSE}"; then
25276 { { echo "$as_me:$LINENO: error: conditional \"MAINTAINER_MODE\" was never defined.
25277 Usually this means the macro was only invoked conditionally." >&5
25278 echo "$as_me: error: conditional \"MAINTAINER_MODE\" was never defined.
25279 Usually this means the macro was only invoked conditionally." >&2;}
25280 { (exit 1); exit 1; }; }
25283 : ${CONFIG_STATUS=./config.status}
25284 ac_clean_files_save=$ac_clean_files
25285 ac_clean_files="$ac_clean_files $CONFIG_STATUS"
25286 { echo "$as_me:$LINENO: creating $CONFIG_STATUS" >&5
25287 echo "$as_me: creating $CONFIG_STATUS" >&6;}
25288 cat >$CONFIG_STATUS <<_ACEOF
25290 # Generated by $as_me.
25291 # Run this file to recreate the current configuration.
25292 # Compiler output produced by configure, useful for debugging
25293 # configure, is in config.log if it exists.
25296 ac_cs_recheck=false
25298 SHELL=\${CONFIG_SHELL-$SHELL}
25301 cat >>$CONFIG_STATUS <<\_ACEOF
25302 ## --------------------- ##
25303 ## M4sh Initialization. ##
25304 ## --------------------- ##
25306 # Be Bourne compatible
25307 if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then
25310 # Zsh 3.x and 4.x performs word splitting on ${1+"$@"}, which
25311 # is contrary to our usage. Disable this feature.
25312 alias -g '${1+"$@"}'='"$@"'
25313 setopt NO_GLOB_SUBST
25315 case `(set -o) 2>/dev/null` in *posix*) set -o posix;; esac
25317 BIN_SH=xpg4; export BIN_SH # for Tru64
25318 DUALCASE=1; export DUALCASE # for MKS sh
25322 # Avoid depending upon Character Ranges.
25323 as_cr_letters='abcdefghijklmnopqrstuvwxyz'
25324 as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
25325 as_cr_Letters=$as_cr_letters$as_cr_LETTERS
25326 as_cr_digits='0123456789'
25327 as_cr_alnum=$as_cr_Letters$as_cr_digits
25329 # The user is always right.
25330 if test "${PATH_SEPARATOR+set}" != set; then
25331 echo "#! /bin/sh" >conf$$.sh
25332 echo "exit 0" >>conf$$.sh
25334 if (PATH="/nonexistent;."; conf$$.sh) >/dev/null 2>&1; then
25342 # Support unset when possible.
25343 if ( (MAIL=60; unset MAIL) || exit) >/dev/null 2>&1; then
25351 # We need space, tab and new line, in precisely that order. Quoting is
25352 # there to prevent editors from complaining about space-tab.
25353 # (If _AS_PATH_WALK were called with IFS unset, it would disable word
25354 # splitting by setting IFS to empty value.)
25359 # Find who we are. Look in the path if we contain no directory separator.
25361 *[\\/]* ) as_myself=$0 ;;
25362 *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
25363 for as_dir in $PATH
25366 test -z "$as_dir" && as_dir=.
25367 test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
25373 # We did not find ourselves, most probably we were run as `sh COMMAND'
25374 # in which case we are not to be found in the path.
25375 if test "x$as_myself" = x; then
25378 if test ! -f "$as_myself"; then
25379 echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2
25380 { (exit 1); exit 1; }
25383 # Work around bugs in pre-3.0 UWIN ksh.
25384 for as_var in ENV MAIL MAILPATH
25385 do ($as_unset $as_var) >/dev/null 2>&1 && $as_unset $as_var
25393 LANG LANGUAGE LC_ADDRESS LC_ALL LC_COLLATE LC_CTYPE LC_IDENTIFICATION \
25394 LC_MEASUREMENT LC_MESSAGES LC_MONETARY LC_NAME LC_NUMERIC LC_PAPER \
25395 LC_TELEPHONE LC_TIME
25397 if (set +x; test -z "`(eval $as_var=C; export $as_var) 2>&1`"); then
25398 eval $as_var=C; export $as_var
25400 ($as_unset $as_var) >/dev/null 2>&1 && $as_unset $as_var
25404 # Required to use basename.
25405 if expr a : '\(a\)' >/dev/null 2>&1 &&
25406 test "X`expr 00001 : '.*\(...\)'`" = X001; then
25412 if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then
25413 as_basename=basename
25419 # Name of the executable.
25420 as_me=`$as_basename -- "$0" ||
25421 $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
25422 X"$0" : 'X\(//\)$' \| \
25423 X"$0" : 'X\(/\)' \| . 2>/dev/null ||
25425 sed '/^.*\/\([^/][^/]*\)\/*$/{
25444 as_lineno_1=$LINENO
25445 as_lineno_2=$LINENO
25446 test "x$as_lineno_1" != "x$as_lineno_2" &&
25447 test "x`expr $as_lineno_1 + 1`" = "x$as_lineno_2" || {
25449 # Create $as_me.lineno as a copy of $as_myself, but with $LINENO
25450 # uniformly replaced by the line number. The first 'sed' inserts a
25451 # line-number line after each line using $LINENO; the second 'sed'
25452 # does the real work. The second script uses 'N' to pair each
25453 # line-number line with the line containing $LINENO, and appends
25454 # trailing '-' during substitution so that $LINENO is not a special
25455 # case at line end.
25456 # (Raja R Harinath suggested sed '=', and Paul Eggert wrote the
25457 # scripts with optimization help from Paolo Bonzini. Blame Lee
25458 # E. McMahon (1931-1989) for sed's syntax. :-)
25470 s/[$]LINENO\([^'$as_cr_alnum'_].*\n\)\(.*\)/\2\1\2/
25473 ' >$as_me.lineno &&
25474 chmod +x "$as_me.lineno" ||
25475 { echo "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2
25476 { (exit 1); exit 1; }; }
25478 # Don't try to exec as it changes $[0], causing all sort of problems
25479 # (the dirname of $[0] is not the place where we might find the
25480 # original and so on. Autoconf is especially sensitive to this).
25481 . "./$as_me.lineno"
25482 # Exit status is that of the last command.
25487 if (dirname -- /) >/dev/null 2>&1; then
25493 ECHO_C= ECHO_N= ECHO_T=
25494 case `echo -n x` in
25496 case `echo 'x\c'` in
25497 *c*) ECHO_T=' ';; # ECHO_T is single tab character.
25504 if expr a : '\(a\)' >/dev/null 2>&1 &&
25505 test "X`expr 00001 : '.*\(...\)'`" = X001; then
25511 rm -f conf$$ conf$$.exe conf$$.file
25512 if test -d conf$$.dir; then
25513 rm -f conf$$.dir/conf$$.file
25519 if ln -s conf$$.file conf$$ 2>/dev/null; then
25521 # ... but there are two gotchas:
25522 # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail.
25523 # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable.
25524 # In both cases, we have to default to `cp -p'.
25525 ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe ||
25527 elif ln conf$$.file conf$$ 2>/dev/null; then
25532 rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file
25533 rmdir conf$$.dir 2>/dev/null
25535 if mkdir -p . 2>/dev/null; then
25538 test -d ./-p && rmdir ./-p
25542 # Find out whether ``test -x'' works. Don't use a zero-byte file, as
25543 # systems may use methods other than mode bits to determine executability.
25544 cat >conf$$.file <<_ASEOF
25548 chmod +x conf$$.file
25549 if test -x conf$$.file >/dev/null 2>&1; then
25550 as_executable_p="test -x"
25556 # Sed expression to map a string onto a valid CPP name.
25557 as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
25559 # Sed expression to map a string onto a valid variable name.
25560 as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
25565 # Save the log message, to keep $[0] and so on meaningful, and to
25566 # report actual input values of CONFIG_FILES etc. instead of their
25567 # values after options handling.
25569 This file was extended by $as_me, which was
25570 generated by GNU Autoconf 2.59d. Invocation command line was
25572 CONFIG_FILES = $CONFIG_FILES
25573 CONFIG_HEADERS = $CONFIG_HEADERS
25574 CONFIG_LINKS = $CONFIG_LINKS
25575 CONFIG_COMMANDS = $CONFIG_COMMANDS
25578 on `(hostname || uname -n) 2>/dev/null | sed 1q`
25583 cat >>$CONFIG_STATUS <<_ACEOF
25584 # Files that config.status was made for.
25585 config_files="$ac_config_files"
25586 config_headers="$ac_config_headers"
25587 config_links="$ac_config_links"
25588 config_commands="$ac_config_commands"
25592 cat >>$CONFIG_STATUS <<\_ACEOF
25594 \`$as_me' instantiates files from templates according to the
25595 current configuration.
25597 Usage: $0 [OPTIONS] [FILE]...
25599 -h, --help print this help, then exit
25600 -V, --version print version number, then exit
25601 -q, --quiet do not print progress messages
25602 -d, --debug don't remove temporary files
25603 --recheck update $as_me by reconfiguring in the same conditions
25604 --file=FILE[:TEMPLATE]
25605 instantiate the configuration file FILE
25606 --header=FILE[:TEMPLATE]
25607 instantiate the configuration header FILE
25609 Configuration files:
25612 Configuration headers:
25615 Configuration links:
25618 Configuration commands:
25621 Report bugs to <bug-autoconf@gnu.org>."
25624 cat >>$CONFIG_STATUS <<_ACEOF
25627 configured by $0, generated by GNU Autoconf 2.59d,
25628 with options \\"`echo "$ac_configure_args" | sed 's/[\\""\`\$]/\\\\&/g'`\\"
25630 Copyright (C) 2006 Free Software Foundation, Inc.
25631 This config.status script is free software; the Free Software Foundation
25632 gives unlimited permission to copy, distribute and modify it."
25639 cat >>$CONFIG_STATUS <<\_ACEOF
25640 # If no file are specified by the user, then we need to provide default
25641 # value. By we need to know if files were specified by the user.
25647 ac_option=`expr "X$1" : 'X\([^=]*\)='`
25648 ac_optarg=`expr "X$1" : 'X[^=]*=\(.*\)'`
25659 # Handling of the options.
25660 -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r)
25662 --version | --versio | --versi | --vers | --ver | --ve | --v | -V )
25663 echo "$ac_cs_version"; exit ;;
25664 --debug | --debu | --deb | --de | --d | -d )
25666 --file | --fil | --fi | --f )
25668 CONFIG_FILES="$CONFIG_FILES $ac_optarg"
25669 ac_need_defaults=false;;
25670 --header | --heade | --head | --hea )
25672 CONFIG_HEADERS="$CONFIG_HEADERS $ac_optarg"
25673 ac_need_defaults=false;;
25675 # Conflict between --help and --header
25676 { echo "$as_me: error: ambiguous option: $1
25677 Try \`$0 --help' for more information." >&2
25678 { (exit 1); exit 1; }; };;
25679 --help | --hel | -h )
25680 echo "$ac_cs_usage"; exit ;;
25681 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
25682 | -silent | --silent | --silen | --sile | --sil | --si | --s)
25685 # This is an error.
25686 -*) { echo "$as_me: error: unrecognized option: $1
25687 Try \`$0 --help' for more information." >&2
25688 { (exit 1); exit 1; }; } ;;
25690 *) ac_config_targets="$ac_config_targets $1"
25691 ac_need_defaults=false ;;
25697 ac_configure_extra_args=
25699 if $ac_cs_silent; then
25701 ac_configure_extra_args="$ac_configure_extra_args --silent"
25705 cat >>$CONFIG_STATUS <<_ACEOF
25706 if \$ac_cs_recheck; then
25707 echo "running CONFIG_SHELL=$SHELL $SHELL $0 " $ac_configure_args \$ac_configure_extra_args " --no-create --no-recursion" >&6
25708 CONFIG_SHELL=$SHELL
25709 export CONFIG_SHELL
25710 exec $SHELL "$0" $ac_configure_args \$ac_configure_extra_args --no-create --no-recursion
25714 cat >>$CONFIG_STATUS <<\_ACEOF
25718 sed 'h;s/./-/g;s/^.../## /;s/...$/ ##/;p;x;p;x' <<_ASBOX
25719 ## Running $as_me. ##
25725 cat >>$CONFIG_STATUS <<_ACEOF
25732 acx_cv_header_stdint="$acx_cv_header_stdint"
25733 acx_cv_type_int8_t="$acx_cv_type_int8_t"
25734 acx_cv_type_int16_t="$acx_cv_type_int16_t"
25735 acx_cv_type_int32_t="$acx_cv_type_int32_t"
25736 acx_cv_type_int64_t="$acx_cv_type_int64_t"
25737 acx_cv_type_intptr_t="$acx_cv_type_intptr_t"
25738 ac_cv_type_uintmax_t="$ac_cv_type_uintmax_t"
25739 ac_cv_type_uintptr_t="$ac_cv_type_uintptr_t"
25740 ac_cv_type_uint64_t="$ac_cv_type_uint64_t"
25741 ac_cv_type_u_int64_t="$ac_cv_type_u_int64_t"
25742 ac_cv_type_u_int32_t="$ac_cv_type_u_int32_t"
25743 ac_cv_type_int_least32_t="$ac_cv_type_int_least32_t"
25744 ac_cv_type_int_fast32_t="$ac_cv_type_int_fast32_t"
25745 ac_cv_sizeof_void_p="$ac_cv_sizeof_void_p"
25748 gdb_host_cpu=$gdb_host_cpu
25749 gdb_target_cpu=$gdb_target_cpu
25750 nativefile=$nativefile
25755 cat >>$CONFIG_STATUS <<\_ACEOF
25757 # Handling of arguments.
25758 for ac_config_target in $ac_config_targets
25760 case $ac_config_target in
25761 "config.h") CONFIG_HEADERS="$CONFIG_HEADERS config.h:config.in" ;;
25762 "gdb_stdint.h") CONFIG_COMMANDS="$CONFIG_COMMANDS gdb_stdint.h" ;;
25763 "$ac_config_links_1") CONFIG_LINKS="$CONFIG_LINKS $ac_config_links_1" ;;
25764 "Makefile") CONFIG_FILES="$CONFIG_FILES Makefile" ;;
25765 ".gdbinit") CONFIG_FILES="$CONFIG_FILES .gdbinit:gdbinit.in" ;;
25766 "default") CONFIG_COMMANDS="$CONFIG_COMMANDS default" ;;
25768 *) { { echo "$as_me:$LINENO: error: invalid argument: $ac_config_target" >&5
25769 echo "$as_me: error: invalid argument: $ac_config_target" >&2;}
25770 { (exit 1); exit 1; }; };;
25775 # If the user did not use the arguments to specify the items to instantiate,
25776 # then the envvar interface is used. Set only those that are not.
25777 # We use the long form for the default assignment because of an extremely
25778 # bizarre bug on SunOS 4.1.3.
25779 if $ac_need_defaults; then
25780 test "${CONFIG_FILES+set}" = set || CONFIG_FILES=$config_files
25781 test "${CONFIG_HEADERS+set}" = set || CONFIG_HEADERS=$config_headers
25782 test "${CONFIG_LINKS+set}" = set || CONFIG_LINKS=$config_links
25783 test "${CONFIG_COMMANDS+set}" = set || CONFIG_COMMANDS=$config_commands
25786 # Have a temporary directory for convenience. Make it in the build tree
25787 # simply because there is no reason against having it here, and in addition,
25788 # creating and moving files from /tmp can sometimes cause problems.
25789 # Hook for its removal unless debugging.
25790 # Note that there is a small window in which the directory will not be cleaned:
25791 # after its creation but before its name has been assigned to `$tmp'.
25795 trap 'exit_status=$?
25796 { test -z "$tmp" || test ! -d "$tmp" || rm -fr "$tmp"; } && exit $exit_status
25798 trap '{ (exit 1); exit 1; }' 1 2 13 15
25800 # Create a (secure) tmp directory for tmp files.
25803 tmp=`(umask 077 && mktemp -d "./confXXXXXX") 2>/dev/null` &&
25804 test -n "$tmp" && test -d "$tmp"
25807 tmp=./conf$$-$RANDOM
25808 (umask 077 && mkdir "$tmp")
25811 echo "$me: cannot create a temporary directory in ." >&2
25812 { (exit 1); exit 1; }
25816 # Set up the sed scripts for CONFIG_FILES section.
25819 # No need to generate the scripts if there are no CONFIG_FILES.
25820 # This happens for instance when ./config.status config.h
25821 if test -n "$CONFIG_FILES"; then
25825 # Create sed commands to just substitute file output variables.
25827 # Remaining file output variables are in a fragment that also has non-file
25833 for ac_last_try in false false false false false :; do
25834 cat >conf$$subs.sed <<_ACEOF
25835 SHELL!$SHELL$ac_delim
25836 PATH_SEPARATOR!$PATH_SEPARATOR$ac_delim
25837 PACKAGE_NAME!$PACKAGE_NAME$ac_delim
25838 PACKAGE_TARNAME!$PACKAGE_TARNAME$ac_delim
25839 PACKAGE_VERSION!$PACKAGE_VERSION$ac_delim
25840 PACKAGE_STRING!$PACKAGE_STRING$ac_delim
25841 PACKAGE_BUGREPORT!$PACKAGE_BUGREPORT$ac_delim
25842 exec_prefix!$exec_prefix$ac_delim
25843 prefix!$prefix$ac_delim
25844 program_transform_name!$program_transform_name$ac_delim
25845 bindir!$bindir$ac_delim
25846 sbindir!$sbindir$ac_delim
25847 libexecdir!$libexecdir$ac_delim
25848 datarootdir!$datarootdir$ac_delim
25849 datadir!$datadir$ac_delim
25850 sysconfdir!$sysconfdir$ac_delim
25851 sharedstatedir!$sharedstatedir$ac_delim
25852 localstatedir!$localstatedir$ac_delim
25853 includedir!$includedir$ac_delim
25854 oldincludedir!$oldincludedir$ac_delim
25855 docdir!$docdir$ac_delim
25856 infodir!$infodir$ac_delim
25857 htmldir!$htmldir$ac_delim
25858 dvidir!$dvidir$ac_delim
25859 pdfdir!$pdfdir$ac_delim
25860 psdir!$psdir$ac_delim
25861 libdir!$libdir$ac_delim
25862 localedir!$localedir$ac_delim
25863 mandir!$mandir$ac_delim
25864 DEFS!$DEFS$ac_delim
25865 ECHO_C!$ECHO_C$ac_delim
25866 ECHO_N!$ECHO_N$ac_delim
25867 ECHO_T!$ECHO_T$ac_delim
25868 LIBS!$LIBS$ac_delim
25869 build_alias!$build_alias$ac_delim
25870 host_alias!$host_alias$ac_delim
25871 target_alias!$target_alias$ac_delim
25872 MAINTAINER_MODE_TRUE!$MAINTAINER_MODE_TRUE$ac_delim
25873 MAINTAINER_MODE_FALSE!$MAINTAINER_MODE_FALSE$ac_delim
25874 MAINT!$MAINT$ac_delim
25876 CFLAGS!$CFLAGS$ac_delim
25877 LDFLAGS!$LDFLAGS$ac_delim
25878 CPPFLAGS!$CPPFLAGS$ac_delim
25879 ac_ct_CC!$ac_ct_CC$ac_delim
25880 EXEEXT!$EXEEXT$ac_delim
25881 OBJEXT!$OBJEXT$ac_delim
25883 GREP!$GREP$ac_delim
25884 EGREP!$EGREP$ac_delim
25885 build!$build$ac_delim
25886 build_cpu!$build_cpu$ac_delim
25887 build_vendor!$build_vendor$ac_delim
25888 build_os!$build_os$ac_delim
25889 host!$host$ac_delim
25890 host_cpu!$host_cpu$ac_delim
25891 host_vendor!$host_vendor$ac_delim
25892 host_os!$host_os$ac_delim
25893 target!$target$ac_delim
25894 target_cpu!$target_cpu$ac_delim
25895 target_vendor!$target_vendor$ac_delim
25896 target_os!$target_os$ac_delim
25897 SET_MAKE!$SET_MAKE$ac_delim
25898 RANLIB!$RANLIB$ac_delim
25899 ALLOCA!$ALLOCA$ac_delim
25900 USE_NLS!$USE_NLS$ac_delim
25901 MSGFMT!$MSGFMT$ac_delim
25902 GMSGFMT!$GMSGFMT$ac_delim
25903 XGETTEXT!$XGETTEXT$ac_delim
25904 USE_INCLUDED_LIBINTL!$USE_INCLUDED_LIBINTL$ac_delim
25905 CATALOGS!$CATALOGS$ac_delim
25906 CATOBJEXT!$CATOBJEXT$ac_delim
25907 DATADIRNAME!$DATADIRNAME$ac_delim
25908 GMOFILES!$GMOFILES$ac_delim
25909 INSTOBJEXT!$INSTOBJEXT$ac_delim
25910 INTLDEPS!$INTLDEPS$ac_delim
25911 INTLLIBS!$INTLLIBS$ac_delim
25912 INTLOBJS!$INTLOBJS$ac_delim
25913 POFILES!$POFILES$ac_delim
25914 POSUB!$POSUB$ac_delim
25915 INCLUDE_LOCALE_H!$INCLUDE_LOCALE_H$ac_delim
25916 GT_NO!$GT_NO$ac_delim
25917 GT_YES!$GT_YES$ac_delim
25918 MKINSTALLDIRS!$MKINSTALLDIRS$ac_delim
25920 PACKAGE!$PACKAGE$ac_delim
25921 subdirs!$subdirs$ac_delim
25923 INSTALL_PROGRAM!$INSTALL_PROGRAM$ac_delim
25924 INSTALL_SCRIPT!$INSTALL_SCRIPT$ac_delim
25925 INSTALL_DATA!$INSTALL_DATA$ac_delim
25928 if test `grep -c "$ac_delim\$" conf$$subs.sed` = 91; then
25930 elif $ac_last_try; then
25931 { { echo "$as_me:$LINENO: error: could not make $CONFIG_STATUS" >&5
25932 echo "$as_me: error: could not make $CONFIG_STATUS" >&2;}
25933 { (exit 1); exit 1; }; }
25935 ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
25940 if grep '^CEOF$' conf$$subs.sed >/dev/null; then
25941 ac_eof=`sed -n '/^CEOF[0-9]*$/s/CEOF//p' conf$$subs.sed | sort -nru | sed 1q`
25942 ac_eof=`expr 0$ac_eof + 1`
25945 cat >>$CONFIG_STATUS <<_ACEOF
25946 cat >"\$tmp/subs-1.sed" <<\CEOF$ac_eof
25947 /@[a-zA-Z_][a-zA-Z_0-9]*@/!b
25948 /^[ ]*@host_makefile_frag@[ ]*$/{
25949 r $host_makefile_frag
25952 /^[ ]*@target_makefile_frag@[ ]*$/{
25953 r $target_makefile_frag
25958 s/[,\\&]/\\&/g; s/@/@|#_!!_#|/g
25959 s/^/s,@/; s/!/@,|#_!!_#|/
25962 s/'"$ac_delim"'$/,g/; t
25964 N; s/^.*\n//; s/[,\\&]/\\&/g; s/@/@|#_!!_#|/g; b n
25965 ' >>$CONFIG_STATUS <conf$$subs.sed
25966 rm -f conf$$subs.sed
25967 cat >>$CONFIG_STATUS <<_ACEOF
25973 for ac_last_try in false false false false false :; do
25974 cat >conf$$subs.sed <<_ACEOF
25975 LN_S!$LN_S$ac_delim
25976 YACC!$YACC$ac_delim
25977 YFLAGS!$YFLAGS$ac_delim
25979 DLLTOOL!$DLLTOOL$ac_delim
25980 WINDRES!$WINDRES$ac_delim
25982 CONFIG_LDFLAGS!$CONFIG_LDFLAGS$ac_delim
25983 TARGET_SYSTEM_ROOT!$TARGET_SYSTEM_ROOT$ac_delim
25984 TARGET_SYSTEM_ROOT_DEFINE!$TARGET_SYSTEM_ROOT_DEFINE$ac_delim
25985 WARN_CFLAGS!$WARN_CFLAGS$ac_delim
25986 WERROR_CFLAGS!$WERROR_CFLAGS$ac_delim
25987 SER_HARDWIRE!$SER_HARDWIRE$ac_delim
25988 WIN32LIBS!$WIN32LIBS$ac_delim
25989 LIBGUI!$LIBGUI$ac_delim
25990 GUI_CFLAGS_X!$GUI_CFLAGS_X$ac_delim
25991 WIN32LDAPP!$WIN32LDAPP$ac_delim
25992 TCL_VERSION!$TCL_VERSION$ac_delim
25993 TCL_MAJOR_VERSION!$TCL_MAJOR_VERSION$ac_delim
25994 TCL_MINOR_VERSION!$TCL_MINOR_VERSION$ac_delim
25995 TCL_CC!$TCL_CC$ac_delim
25996 TCL_DEFS!$TCL_DEFS$ac_delim
25997 TCL_SHLIB_CFLAGS!$TCL_SHLIB_CFLAGS$ac_delim
25998 TCL_SHLIB_LD!$TCL_SHLIB_LD$ac_delim
25999 TCL_SHLIB_LD_LIBS!$TCL_SHLIB_LD_LIBS$ac_delim
26000 TCL_SHLIB_SUFFIX!$TCL_SHLIB_SUFFIX$ac_delim
26001 TCL_DL_LIBS!$TCL_DL_LIBS$ac_delim
26002 TCL_LD_FLAGS!$TCL_LD_FLAGS$ac_delim
26003 TCL_LD_SEARCH_FLAGS!$TCL_LD_SEARCH_FLAGS$ac_delim
26004 TCL_CC_SEARCH_FLAGS!$TCL_CC_SEARCH_FLAGS$ac_delim
26005 TCL_COMPAT_OBJS!$TCL_COMPAT_OBJS$ac_delim
26006 TCL_RANLIB!$TCL_RANLIB$ac_delim
26007 TCL_BUILD_LIB_SPEC!$TCL_BUILD_LIB_SPEC$ac_delim
26008 TCL_LIB_SPEC!$TCL_LIB_SPEC$ac_delim
26009 TCL_LIB_VERSIONS_OK!$TCL_LIB_VERSIONS_OK$ac_delim
26010 TK_VERSION!$TK_VERSION$ac_delim
26011 TK_DEFS!$TK_DEFS$ac_delim
26012 TK_BUILD_INCLUDES!$TK_BUILD_INCLUDES$ac_delim
26013 TK_XINCLUDES!$TK_XINCLUDES$ac_delim
26014 TK_XLIBSW!$TK_XLIBSW$ac_delim
26015 TK_BUILD_LIB_SPEC!$TK_BUILD_LIB_SPEC$ac_delim
26016 TK_LIB_SPEC!$TK_LIB_SPEC$ac_delim
26017 TCLHDIR!$TCLHDIR$ac_delim
26018 TKHDIR!$TKHDIR$ac_delim
26019 ITCLHDIR!$ITCLHDIR$ac_delim
26020 ITKHDIR!$ITKHDIR$ac_delim
26021 ITCL_VERSION!$ITCL_VERSION$ac_delim
26022 ITCL_DEFS!$ITCL_DEFS$ac_delim
26023 ITCL_BUILD_INCLUDES!$ITCL_BUILD_INCLUDES$ac_delim
26024 ITCL_BUILD_LIB_SPEC!$ITCL_BUILD_LIB_SPEC$ac_delim
26025 ITCL_LIB_SPEC!$ITCL_LIB_SPEC$ac_delim
26026 ITK_VERSION!$ITK_VERSION$ac_delim
26027 ITK_DEFS!$ITK_DEFS$ac_delim
26028 ITK_BUILD_INCLUDES!$ITK_BUILD_INCLUDES$ac_delim
26029 ITK_BUILD_LIB_SPEC!$ITK_BUILD_LIB_SPEC$ac_delim
26030 ITK_LIB_SPEC!$ITK_LIB_SPEC$ac_delim
26031 X_CFLAGS!$X_CFLAGS$ac_delim
26032 X_LDFLAGS!$X_LDFLAGS$ac_delim
26033 X_LIBS!$X_LIBS$ac_delim
26034 TCL_DEPS!$TCL_DEPS$ac_delim
26035 TK_DEPS!$TK_DEPS$ac_delim
26036 ITCLLIB!$ITCLLIB$ac_delim
26037 ITCL_DEPS!$ITCL_DEPS$ac_delim
26038 ITKLIB!$ITKLIB$ac_delim
26039 ITK_DEPS!$ITK_DEPS$ac_delim
26040 GDBTKLIBS!$GDBTKLIBS$ac_delim
26041 GDBTK_CFLAGS!$GDBTK_CFLAGS$ac_delim
26042 GDBTK_SRC_DIR!$GDBTK_SRC_DIR$ac_delim
26043 XMKMF!$XMKMF$ac_delim
26044 IGNORE_SIM!$IGNORE_SIM$ac_delim
26045 IGNORE_SIM_OBS!$IGNORE_SIM_OBS$ac_delim
26046 ENABLE_CFLAGS!$ENABLE_CFLAGS$ac_delim
26047 PROFILE_CFLAGS!$PROFILE_CFLAGS$ac_delim
26048 CONFIG_OBS!$CONFIG_OBS$ac_delim
26049 CONFIG_DEPS!$CONFIG_DEPS$ac_delim
26050 CONFIG_SRCS!$CONFIG_SRCS$ac_delim
26051 CONFIG_ALL!$CONFIG_ALL$ac_delim
26052 CONFIG_CLEAN!$CONFIG_CLEAN$ac_delim
26053 CONFIG_INSTALL!$CONFIG_INSTALL$ac_delim
26054 CONFIG_UNINSTALL!$CONFIG_UNINSTALL$ac_delim
26055 target_subdir!$target_subdir$ac_delim
26056 frags!$frags$ac_delim
26057 xm_h!$xm_h$ac_delim
26058 tm_h!$tm_h$ac_delim
26059 nm_h!$nm_h$ac_delim
26060 LIBICONV!$LIBICONV$ac_delim
26061 LIBOBJS!$LIBOBJS$ac_delim
26062 LTLIBOBJS!$LTLIBOBJS$ac_delim
26065 if test `grep -c "$ac_delim\$" conf$$subs.sed` = 88; then
26067 elif $ac_last_try; then
26068 { { echo "$as_me:$LINENO: error: could not make $CONFIG_STATUS" >&5
26069 echo "$as_me: error: could not make $CONFIG_STATUS" >&2;}
26070 { (exit 1); exit 1; }; }
26072 ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
26077 if grep '^CEOF$' conf$$subs.sed >/dev/null; then
26078 ac_eof=`sed -n '/^CEOF[0-9]*$/s/CEOF//p' conf$$subs.sed | sort -nru | sed 1q`
26079 ac_eof=`expr 0$ac_eof + 1`
26082 cat >>$CONFIG_STATUS <<_ACEOF
26083 cat >"\$tmp/subs-2.sed" <<\CEOF$ac_eof
26084 /@[a-zA-Z_][a-zA-Z_0-9]*@/!b end
26087 s/[,\\&]/\\&/g; s/@/@|#_!!_#|/g
26088 s/^/s,@/; s/!/@,|#_!!_#|/
26091 s/'"$ac_delim"'$/,g/; t
26093 N; s/^.*\n//; s/[,\\&]/\\&/g; s/@/@|#_!!_#|/g; b n
26094 ' >>$CONFIG_STATUS <conf$$subs.sed
26095 rm -f conf$$subs.sed
26096 cat >>$CONFIG_STATUS <<_ACEOF
26103 # VPATH may cause trouble with some makes, so we remove $(srcdir),
26104 # ${srcdir} and @srcdir@ from VPATH if srcdir is ".", strip leading and
26105 # trailing colons and then remove the whole line if VPATH becomes empty
26106 # (actually we leave an empty line to preserve line numbers).
26107 if test "x$srcdir" = x.; then
26108 ac_vpsub='/^[ ]*VPATH[ ]*=/{
26109 s/:*\$(srcdir):*/:/
26110 s/:*\${srcdir}:*/:/
26112 s/^\([^=]*=[ ]*\):*/\1/
26118 cat >>$CONFIG_STATUS <<\_ACEOF
26119 fi # test -n "$CONFIG_FILES"
26122 for ac_tag in :F $CONFIG_FILES :H $CONFIG_HEADERS :L $CONFIG_LINKS :C $CONFIG_COMMANDS
26125 :[FHLC]) ac_mode=$ac_tag; continue;;
26127 case $ac_mode$ac_tag in
26129 :L* | :C*:*) { { echo "$as_me:$LINENO: error: Invalid tag $ac_tag." >&5
26130 echo "$as_me: error: Invalid tag $ac_tag." >&2;}
26131 { (exit 1); exit 1; }; };;
26132 :[FH]-) ac_tag=-:-;;
26133 :[FH]*) ac_tag=$ac_tag:$ac_tag.in;;
26150 -) ac_f="$tmp/stdin";;
26151 *) # Look for the file first in the build tree, then in the source tree
26152 # (if the path is not absolute). The absolute path cannot be DOS-style,
26153 # because $ac_f cannot contain `:'.
26157 *) test -f "$srcdir/$ac_f" && ac_f="$srcdir/$ac_f";;
26159 { { echo "$as_me:$LINENO: error: cannot find input file: $ac_f" >&5
26160 echo "$as_me: error: cannot find input file: $ac_f" >&2;}
26161 { (exit 1); exit 1; }; };;
26163 ac_file_inputs="$ac_file_inputs $ac_f"
26166 # Let's still pretend it is `configure' which instantiates (i.e., don't
26167 # use $as_me), people would be surprised to read:
26168 # /* config.h. Generated by config.status. */
26169 configure_input="Generated from "`IFS=:
26170 echo $* | sed 's|^[^:]*/||;s|:[^:]*/|, |g'`" by configure."
26171 if test x"$ac_file" != x-; then
26172 configure_input="$ac_file. $configure_input"
26173 { echo "$as_me:$LINENO: creating $ac_file" >&5
26174 echo "$as_me: creating $ac_file" >&6;}
26178 *:-:* | *:-) cat >"$tmp/stdin";;
26183 ac_dir=`$as_dirname -- "$ac_file" ||
26184 $as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
26185 X"$ac_file" : 'X\(//\)[^/]' \| \
26186 X"$ac_file" : 'X\(//\)$' \| \
26187 X"$ac_file" : 'X\(/\)' \| . 2>/dev/null ||
26189 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
26193 /^X\(\/\/\)[^/].*/{
26208 -*) as_dir=./$as_dir;;
26210 test -d "$as_dir" || { $as_mkdir_p && mkdir -p "$as_dir"; } || {
26214 *\'*) as_qdir=`echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #(
26215 *) as_qdir=$as_dir;;
26217 as_dirs="'$as_qdir' $as_dirs"
26218 as_dir=`$as_dirname -- "$as_dir" ||
26219 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
26220 X"$as_dir" : 'X\(//\)[^/]' \| \
26221 X"$as_dir" : 'X\(//\)$' \| \
26222 X"$as_dir" : 'X\(/\)' \| . 2>/dev/null ||
26224 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
26228 /^X\(\/\/\)[^/].*/{
26241 test -d "$as_dir" && break
26243 test -z "$as_dirs" || eval "mkdir $as_dirs"
26244 } || test -d "$as_dir" || { { echo "$as_me:$LINENO: error: cannot create directory $as_dir" >&5
26245 echo "$as_me: error: cannot create directory $as_dir" >&2;}
26246 { (exit 1); exit 1; }; }; }
26250 .) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
26252 ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'`
26253 # A ".." for each directory in $ac_dir_suffix.
26254 ac_top_builddir_sub=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,/..,g;s,/,,'`
26255 case $ac_top_builddir_sub in
26256 "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
26257 *) ac_top_build_prefix=$ac_top_builddir_sub/ ;;
26260 ac_abs_top_builddir=$ac_pwd
26261 ac_abs_builddir=$ac_pwd$ac_dir_suffix
26262 # for backward compatibility:
26263 ac_top_builddir=$ac_top_build_prefix
26266 .) # We are building in place.
26268 ac_top_srcdir=$ac_top_builddir_sub
26269 ac_abs_top_srcdir=$ac_pwd ;;
26270 [\\/]* | ?:[\\/]* ) # Absolute name.
26271 ac_srcdir=$srcdir$ac_dir_suffix;
26272 ac_top_srcdir=$srcdir
26273 ac_abs_top_srcdir=$srcdir ;;
26274 *) # Relative name.
26275 ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
26276 ac_top_srcdir=$ac_top_build_prefix$srcdir
26277 ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
26279 ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
26289 [\\/$]* | ?:[\\/]* ) ac_INSTALL=$INSTALL ;;
26290 *) ac_INSTALL=$ac_top_build_prefix$INSTALL ;;
26294 cat >>$CONFIG_STATUS <<\_ACEOF
26295 # If the template does not know about datarootdir, expand it.
26296 # FIXME: This hack should be removed a few years after 2.60.
26297 ac_datarootdir_hack=
26299 case `sed -n '/datarootdir/ {
26308 ' $ac_file_inputs` in
26310 *@datadir@*|*@docdir@*|*@infodir@*|*@localedir@*|*@mandir@*)
26311 { echo "$as_me:$LINENO: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&5
26312 echo "$as_me: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&2;}
26314 cat >>$CONFIG_STATUS <<_ACEOF
26315 ac_datarootdir_hack='
26316 s&@datadir@&$datadir&g
26317 s&@docdir@&$docdir&g
26318 s&@infodir@&$infodir&g
26319 s&@localedir@&$localedir&g
26320 s&@mandir@&$mandir&g
26321 s&\\\${datarootdir}&$datarootdir&g' ;;
26325 # Neutralize VPATH when `$srcdir' = `.'.
26326 # Shell code in configure.ac might set extrasub.
26327 # FIXME: do we really want to maintain this feature?
26328 cat >>$CONFIG_STATUS <<_ACEOF
26332 cat >>$CONFIG_STATUS <<\_ACEOF
26334 /@[a-zA-Z_][a-zA-Z_0-9]*@/!b
26335 s&@configure_input@&$configure_input&;t t
26336 s&@top_builddir@&$ac_top_builddir_sub&;t t
26337 s&@srcdir@&$ac_srcdir&;t t
26338 s&@abs_srcdir@&$ac_abs_srcdir&;t t
26339 s&@top_srcdir@&$ac_top_srcdir&;t t
26340 s&@abs_top_srcdir@&$ac_abs_top_srcdir&;t t
26341 s&@builddir@&$ac_builddir&;t t
26342 s&@abs_builddir@&$ac_abs_builddir&;t t
26343 s&@abs_top_builddir@&$ac_abs_top_builddir&;t t
26344 s&@INSTALL@&$ac_INSTALL&;t t
26345 $ac_datarootdir_hack
26346 " $ac_file_inputs | sed -f "$tmp/subs-1.sed" | sed -f "$tmp/subs-2.sed" >$tmp/out
26350 -) cat "$tmp/out"; rm -f "$tmp/out";;
26351 *) rm -f "$ac_file"; mv "$tmp/out" $ac_file;;
26359 # These sed commands are passed to sed as "A NAME B PARAMS C VALUE D", where
26360 # NAME is the cpp macro being defined, VALUE is the value it is being given.
26361 # PARAMS is the parameter list in the macro definition--in most cases, it's
26362 # just an empty string.
26364 ac_dA='s,^\([ ]*#[ ]*\)[^ ]*\([ ][ ]*'
26365 ac_dB='\)[ (].*$,\1define\2'
26369 ac_word_regexp=[_$as_cr_Letters][_$as_cr_alnum]*
26372 # Transform confdefs.h into a sed script `conftest.defines', that
26373 # substitutes the proper values into config.h.in to produce config.h.
26374 rm -f conftest.defines conftest.tail
26375 # First, append a space to every undef/define line, to ease matching.
26376 echo 's/$/ /' >conftest.defines
26377 # Then, protect against being on the right side of a sed subst, or in
26378 # an unquoted here document, in config.status. If some macros were
26379 # called several times there might be several #defines for the same
26380 # symbol, which is useless. But do not sort them, since the last
26381 # AC_DEFINE must be honored.
26382 ac_word_re=[_$as_cr_Letters][_$as_cr_alnum]*
26387 s/^[ ]*#[ ]*define[ ][ ]*//
26393 s/^\('"$ac_word_re"'\)\(([^()]*)\)[ ]*\(.*\)/${ac_dA}\1$ac_dB\2${ac_dC}\3$ac_dD/p
26394 s/^\('"$ac_word_re"'\)[ ]*\(.*\)/${ac_dA}\1$ac_dB${ac_dC}\2$ac_dD/p
26395 ' >>conftest.defines
26397 # Remove the space that was appended to ease matching.
26398 # Then replace #undef with comments. This is necessary, for
26399 # example, in the case of _POSIX_SOURCE, which is predefined and required
26400 # on some systems where configure will not decide to define it.
26401 # (The regexp can be short, since the line contains either #define or #undef.)
26403 s,^[ #]*u.*,/* & */,' >>conftest.defines
26405 # Break up conftest.defines:
26406 ac_max_sed_lines=96
26408 # First sed command is: sed -f defines.sed $ac_file_inputs >"$tmp/out1"
26409 # Second one is: sed -f defines.sed "$tmp/out1" >"$tmp/out2"
26410 # Third one will be: sed -f defines.sed "$tmp/out2" >"$tmp/out1"
26412 ac_in='$ac_file_inputs'
26413 ac_out='"$tmp/out1"'
26414 ac_nxt='"$tmp/out2"'
26418 # Write a here document:
26419 echo ' # First, check the format of the line:
26420 cat >"$tmp/defines.sed" <<CEOF
26421 /^[ ]*#[ ]*undef[ ][ ]*$ac_word_regexp[ ]*$/b def
26422 /^[ ]*#[ ]*define[ ][ ]*$ac_word_regexp[( ]/b def
26424 :def' >>$CONFIG_STATUS
26425 sed ${ac_max_sed_lines}q conftest.defines >>$CONFIG_STATUS
26427 sed -f "$tmp/defines.sed"' "$ac_in >$ac_out" >>$CONFIG_STATUS
26428 ac_in=$ac_out; ac_out=$ac_nxt; ac_nxt=$ac_in
26429 sed 1,${ac_max_sed_lines}d conftest.defines >conftest.tail
26430 grep . conftest.tail >/dev/null || break
26431 rm -f conftest.defines
26432 mv conftest.tail conftest.defines
26434 rm -f conftest.defines conftest.tail
26436 echo "ac_result=$ac_in" >>$CONFIG_STATUS
26437 cat >>$CONFIG_STATUS <<\_ACEOF
26438 if test x"$ac_file" != x-; then
26439 echo "/* $configure_input */" >"$tmp/config.h"
26440 cat "$ac_result" >>"$tmp/config.h"
26441 if diff $ac_file "$tmp/config.h" >/dev/null 2>&1; then
26442 { echo "$as_me:$LINENO: $ac_file is unchanged" >&5
26443 echo "$as_me: $ac_file is unchanged" >&6;}
26446 mv "$tmp/config.h" $ac_file
26449 echo "/* $configure_input */"
26459 { echo "$as_me:$LINENO: linking $srcdir/$ac_source to $ac_file" >&5
26460 echo "$as_me: linking $srcdir/$ac_source to $ac_file" >&6;}
26462 if test ! -r $srcdir/$ac_source; then
26463 { { echo "$as_me:$LINENO: error: $srcdir/$ac_source: file not found" >&5
26464 echo "$as_me: error: $srcdir/$ac_source: file not found" >&2;}
26465 { (exit 1); exit 1; }; }
26469 # Try a relative symlink, then a hard link, then a copy.
26471 [\\/$]* | ?:[\\/]* ) ac_rel_source=$srcdir/$ac_source ;;
26472 *) ac_rel_source=$ac_top_build_prefix$srcdir/$ac_source ;;
26474 ln -s $ac_rel_source $ac_file 2>/dev/null ||
26475 ln $srcdir/$ac_source $ac_file 2>/dev/null ||
26476 cp -p $srcdir/$ac_source $ac_file ||
26477 { { echo "$as_me:$LINENO: error: cannot link or copy $srcdir/$ac_source to $ac_file" >&5
26478 echo "$as_me: error: cannot link or copy $srcdir/$ac_source to $ac_file" >&2;}
26479 { (exit 1); exit 1; }; }
26481 :C) { echo "$as_me:$LINENO: executing $ac_file commands" >&5
26482 echo "$as_me: executing $ac_file commands" >&6;}
26487 case $ac_file$ac_mode in
26489 if test "$GCC" = yes; then
26490 echo "/* generated for " `$CC --version | sed 1q` "*/" > tmp-stdint.h
26492 echo "/* generated for $CC */" > tmp-stdint.h
26495 sed 's/^ *//' >> tmp-stdint.h <<EOF
26497 #ifndef GCC_GENERATED_STDINT_H
26498 #define GCC_GENERATED_STDINT_H 1
26500 #include <sys/types.h>
26503 if test "$acx_cv_header_stdint" != stdint.h; then
26504 echo "#include <stddef.h>" >> tmp-stdint.h
26506 if test "$acx_cv_header_stdint" != stddef.h; then
26507 echo "#include <$acx_cv_header_stdint>" >> tmp-stdint.h
26510 sed 's/^ *//' >> tmp-stdint.h <<EOF
26511 /* glibc uses these symbols as guards to prevent redefinitions. */
26512 #ifdef __int8_t_defined
26517 #ifdef __uint32_t_defined
26523 # ----------------- done header, emit basic int types -------------
26524 if test "$acx_cv_header_stdint" = stddef.h; then
26525 sed 's/^ *//' >> tmp-stdint.h <<EOF
26529 typedef unsigned $acx_cv_type_int8_t uint8_t;
26534 typedef unsigned $acx_cv_type_int16_t uint16_t;
26539 typedef unsigned $acx_cv_type_int32_t uint32_t;
26544 typedef $acx_cv_type_int8_t int8_t;
26549 typedef $acx_cv_type_int16_t int16_t;
26554 typedef $acx_cv_type_int32_t int32_t;
26557 elif test "$ac_cv_type_u_int32_t" = yes; then
26558 sed 's/^ *//' >> tmp-stdint.h <<EOF
26560 /* int8_t int16_t int32_t defined by inet code, we do the u_intXX types */
26573 typedef u_int8_t uint8_t;
26578 typedef u_int16_t uint16_t;
26583 typedef u_int32_t uint32_t;
26587 sed 's/^ *//' >> tmp-stdint.h <<EOF
26589 /* Some systems have guard macros to prevent redefinitions, define them. */
26611 # ------------- done basic int types, emit int64_t types ------------
26612 if test "$ac_cv_type_uint64_t" = yes; then
26613 sed 's/^ *//' >> tmp-stdint.h <<EOF
26615 /* system headers have good uint64_t and int64_t */
26623 elif test "$ac_cv_type_u_int64_t" = yes; then
26624 sed 's/^ *//' >> tmp-stdint.h <<EOF
26626 /* system headers have an u_int64_t (and int64_t) */
26632 typedef u_int64_t uint64_t;
26635 elif test -n "$acx_cv_type_int64_t"; then
26636 sed 's/^ *//' >> tmp-stdint.h <<EOF
26638 /* architecture has a 64-bit type, $acx_cv_type_int64_t */
26641 typedef $acx_cv_type_int64_t int64_t;
26645 typedef unsigned $acx_cv_type_int64_t uint64_t;
26649 sed 's/^ *//' >> tmp-stdint.h <<EOF
26651 /* some common heuristics for int64_t, using compiler-specific tests */
26652 #if defined __STDC_VERSION__ && (__STDC_VERSION__-0) >= 199901L
26655 typedef long long int64_t;
26659 typedef unsigned long long uint64_t;
26662 #elif defined __GNUC__ && defined (__STDC__) && __STDC__-0
26663 /* NextStep 2.0 cc is really gcc 1.93 but it defines __GNUC__ = 2 and
26664 does not implement __extension__. But that compiler doesn't define
26666 # if __GNUC__ < 2 || (__NeXT__ && !__GNUC_MINOR__)
26667 # define __extension__
26672 __extension__ typedef long long int64_t;
26676 __extension__ typedef unsigned long long uint64_t;
26679 #elif !defined __STRICT_ANSI__
26680 # if defined _MSC_VER || defined __WATCOMC__ || defined __BORLANDC__
26684 typedef __int64 int64_t;
26688 typedef unsigned __int64 uint64_t;
26690 # endif /* compiler */
26692 #endif /* ANSI version */
26696 # ------------- done int64_t types, emit intptr types ------------
26697 if test "$ac_cv_type_uintptr_t" != yes; then
26698 sed 's/^ *//' >> tmp-stdint.h <<EOF
26700 /* Define intptr_t based on sizeof(void*) = $ac_cv_sizeof_void_p */
26701 typedef u$acx_cv_type_intptr_t uintptr_t;
26702 typedef $acx_cv_type_intptr_t intptr_t;
26706 # ------------- done intptr types, emit int_least types ------------
26707 if test "$ac_cv_type_int_least32_t" != yes; then
26708 sed 's/^ *//' >> tmp-stdint.h <<EOF
26710 /* Define int_least types */
26711 typedef int8_t int_least8_t;
26712 typedef int16_t int_least16_t;
26713 typedef int32_t int_least32_t;
26715 typedef int64_t int_least64_t;
26718 typedef uint8_t uint_least8_t;
26719 typedef uint16_t uint_least16_t;
26720 typedef uint32_t uint_least32_t;
26722 typedef uint64_t uint_least64_t;
26727 # ------------- done intptr types, emit int_fast types ------------
26728 if test "$ac_cv_type_int_fast32_t" != yes; then
26729 sed 's/^ *//' >> tmp-stdint.h <<EOF
26731 /* Define int_fast types. short is often slow */
26732 typedef int8_t int_fast8_t;
26733 typedef int int_fast16_t;
26734 typedef int32_t int_fast32_t;
26736 typedef int64_t int_fast64_t;
26739 typedef uint8_t uint_fast8_t;
26740 typedef unsigned int uint_fast16_t;
26741 typedef uint32_t uint_fast32_t;
26743 typedef uint64_t uint_fast64_t;
26748 if test "$ac_cv_type_uintmax_t" != yes; then
26749 sed 's/^ *//' >> tmp-stdint.h <<EOF
26751 /* Define intmax based on what we found */
26753 typedef int64_t intmax_t;
26755 typedef long intmax_t;
26758 typedef uint64_t uintmax_t;
26760 typedef unsigned long uintmax_t;
26765 sed 's/^ *//' >> tmp-stdint.h <<EOF
26767 #endif /* GCC_GENERATED_STDINT_H */
26770 if test -r gdb_stdint.h && cmp -s tmp-stdint.h gdb_stdint.h; then
26773 mv -f tmp-stdint.h gdb_stdint.h
26779 sed -e '/^DEPRECATED_TM_FILE[ ]*=/s,^DEPRECATED_TM_FILE[ ]*=[ ]*,&config/'"${gdb_target_cpu}"'/,
26780 /^XM_FILE[ ]*=/s,^XM_FILE[ ]*=[ ]*,&config/'"${gdb_host_cpu}"'/,
26781 /^NAT_FILE[ ]*=/s,^NAT_FILE[ ]*=[ ]*,&config/'"${gdb_host_cpu}"'/,' <Makefile >Makefile.tmp
26782 mv -f Makefile.tmp Makefile
26785 case x$CONFIG_HEADERS in
26786 xconfig.h:config.in)
26795 { (exit 0); exit 0; }
26797 chmod +x $CONFIG_STATUS
26798 ac_clean_files=$ac_clean_files_save
26801 # configure is writing to config.log, and then calls config.status.
26802 # config.status does its own redirection, appending to config.log.
26803 # Unfortunately, on DOS this fails, as config.log is still kept open
26804 # by configure, so config.status won't be able to write to it; its
26805 # output is simply discarded. So we exec the FD to /dev/null,
26806 # effectively closing config.log, so it can be properly (re)opened and
26807 # appended to by config.status. When coming back to configure, we
26808 # need to make the FD available again.
26809 if test "$no_create" != yes; then
26811 ac_config_status_args=
26812 test "$silent" = yes &&
26813 ac_config_status_args="$ac_config_status_args --quiet"
26815 $SHELL $CONFIG_STATUS $ac_config_status_args || ac_cs_success=false
26817 # Use ||, not &&, to avoid exiting from the if with $? = 1, which
26818 # would make configure fail if this is the last instruction.
26819 $ac_cs_success || { (exit 1); exit 1; }
26823 # CONFIG_SUBDIRS section.
26825 if test "$no_recursion" != yes; then
26827 # Remove --cache-file and --srcdir arguments so they do not pile up.
26828 ac_sub_configure_args=
26830 eval set x "$ac_configure_args"
26834 if test -n "$ac_prev"; then
26839 -cache-file | --cache-file | --cache-fil | --cache-fi \
26840 | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c)
26841 ac_prev=cache_file ;;
26842 -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \
26843 | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* \
26846 --config-cache | -C)
26848 -srcdir | --srcdir | --srcdi | --srcd | --src | --sr)
26850 -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*)
26852 -prefix | --prefix | --prefi | --pref | --pre | --pr | --p)
26854 -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*)
26858 *\'*) ac_arg=`echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;;
26860 ac_sub_configure_args="$ac_sub_configure_args '$ac_arg'" ;;
26864 # Always prepend --prefix to ensure using the same prefix
26865 # in subdir configurations.
26866 ac_sub_configure_args="--prefix=$prefix $ac_sub_configure_args"
26869 for ac_dir in : $subdirs; do test "x$ac_dir" = x: && continue
26871 # Do not complain, so a configure script can configure whichever
26872 # parts of a large source tree are present.
26873 test -d $srcdir/$ac_dir || continue
26875 ac_msg="=== configuring in $ac_dir (`pwd`/$ac_dir)"
26876 echo "$as_me:$LINENO: $ac_msg" >&5
26880 -*) as_dir=./$as_dir;;
26882 test -d "$as_dir" || { $as_mkdir_p && mkdir -p "$as_dir"; } || {
26886 *\'*) as_qdir=`echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #(
26887 *) as_qdir=$as_dir;;
26889 as_dirs="'$as_qdir' $as_dirs"
26890 as_dir=`$as_dirname -- "$as_dir" ||
26891 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
26892 X"$as_dir" : 'X\(//\)[^/]' \| \
26893 X"$as_dir" : 'X\(//\)$' \| \
26894 X"$as_dir" : 'X\(/\)' \| . 2>/dev/null ||
26896 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
26900 /^X\(\/\/\)[^/].*/{
26913 test -d "$as_dir" && break
26915 test -z "$as_dirs" || eval "mkdir $as_dirs"
26916 } || test -d "$as_dir" || { { echo "$as_me:$LINENO: error: cannot create directory $as_dir" >&5
26917 echo "$as_me: error: cannot create directory $as_dir" >&2;}
26918 { (exit 1); exit 1; }; }; }
26922 .) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
26924 ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'`
26925 # A ".." for each directory in $ac_dir_suffix.
26926 ac_top_builddir_sub=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,/..,g;s,/,,'`
26927 case $ac_top_builddir_sub in
26928 "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
26929 *) ac_top_build_prefix=$ac_top_builddir_sub/ ;;
26932 ac_abs_top_builddir=$ac_pwd
26933 ac_abs_builddir=$ac_pwd$ac_dir_suffix
26934 # for backward compatibility:
26935 ac_top_builddir=$ac_top_build_prefix
26938 .) # We are building in place.
26940 ac_top_srcdir=$ac_top_builddir_sub
26941 ac_abs_top_srcdir=$ac_pwd ;;
26942 [\\/]* | ?:[\\/]* ) # Absolute name.
26943 ac_srcdir=$srcdir$ac_dir_suffix;
26944 ac_top_srcdir=$srcdir
26945 ac_abs_top_srcdir=$srcdir ;;
26946 *) # Relative name.
26947 ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
26948 ac_top_srcdir=$ac_top_build_prefix$srcdir
26949 ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
26951 ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
26956 # Check for guested configure; otherwise get Cygnus style configure.
26957 if test -f $ac_srcdir/configure.gnu; then
26958 ac_sub_configure="$SHELL '$ac_srcdir/configure.gnu'"
26959 elif test -f $ac_srcdir/configure; then
26960 ac_sub_configure="$SHELL '$ac_srcdir/configure'"
26961 elif test -f $ac_srcdir/configure.in; then
26962 ac_sub_configure=$ac_configure
26964 { echo "$as_me:$LINENO: WARNING: no configuration information is in $ac_dir" >&5
26965 echo "$as_me: WARNING: no configuration information is in $ac_dir" >&2;}
26969 # The recursion is here.
26970 if test -n "$ac_sub_configure"; then
26971 # Make the cache file name correct relative to the subdirectory.
26972 case $cache_file in
26973 [\\/]* | ?:[\\/]* ) ac_sub_cache_file=$cache_file ;;
26974 *) # Relative name.
26975 ac_sub_cache_file=$ac_top_build_prefix$cache_file ;;
26978 { echo "$as_me:$LINENO: running $ac_sub_configure $ac_sub_configure_args --cache-file=$ac_sub_cache_file --srcdir=$ac_srcdir" >&5
26979 echo "$as_me: running $ac_sub_configure $ac_sub_configure_args --cache-file=$ac_sub_cache_file --srcdir=$ac_srcdir" >&6;}
26980 # The eval makes quoting arguments work.
26981 eval "$ac_sub_configure $ac_sub_configure_args \
26982 --cache-file=$ac_sub_cache_file --srcdir=$ac_srcdir" ||
26983 { { echo "$as_me:$LINENO: error: $ac_sub_configure failed for $ac_dir" >&5
26984 echo "$as_me: error: $ac_sub_configure failed for $ac_dir" >&2;}
26985 { (exit 1); exit 1; }; }