2 # Guess values for system-dependent variables and create Makefiles.
3 # Generated by GNU Autoconf 2.59.
5 # Copyright (C) 2003 Free Software Foundation, Inc.
6 # This configure script is free software; the Free Software Foundation
7 # gives unlimited permission to copy, distribute and modify it.
8 ## --------------------- ##
9 ## M4sh Initialization. ##
10 ## --------------------- ##
12 # Be Bourne compatible
13 if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then
16 # Zsh 3.x and 4.x performs word splitting on ${1+"$@"}, which
17 # is contrary to our usage. Disable this feature.
18 alias -g '${1+"$@"}'='"$@"'
19 elif test -n "${BASH_VERSION+set}" && (set -o posix) >/dev/null 2>&1; then
22 DUALCASE=1; export DUALCASE # for MKS sh
24 # Support unset when possible.
25 if ( (MAIL=60; unset MAIL) || exit) >/dev/null 2>&1; then
32 # Work around bugs in pre-3.0 UWIN ksh.
33 $as_unset ENV MAIL MAILPATH
40 LANG LANGUAGE LC_ADDRESS LC_ALL LC_COLLATE LC_CTYPE LC_IDENTIFICATION \
41 LC_MEASUREMENT LC_MESSAGES LC_MONETARY LC_NAME LC_NUMERIC LC_PAPER \
44 if (set +x; test -z "`(eval $as_var=C; export $as_var) 2>&1`"); then
45 eval $as_var=C; export $as_var
51 # Required to use basename.
52 if expr a : '\(a\)' >/dev/null 2>&1; then
58 if (basename /) >/dev/null 2>&1 && test "X`basename / 2>&1`" = "X/"; then
65 # Name of the executable.
66 as_me=`$as_basename "$0" ||
67 $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
68 X"$0" : 'X\(//\)$' \| \
69 X"$0" : 'X\(/\)$' \| \
70 . : '\(.\)' 2>/dev/null ||
72 sed '/^.*\/\([^/][^/]*\)\/*$/{ s//\1/; q; }
73 /^X\/\(\/\/\)$/{ s//\1/; q; }
74 /^X\/\(\/\).*/{ s//\1/; q; }
78 # PATH needs CR, and LINENO needs CR and PATH.
79 # Avoid depending upon Character Ranges.
80 as_cr_letters='abcdefghijklmnopqrstuvwxyz'
81 as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
82 as_cr_Letters=$as_cr_letters$as_cr_LETTERS
83 as_cr_digits='0123456789'
84 as_cr_alnum=$as_cr_Letters$as_cr_digits
86 # The user is always right.
87 if test "${PATH_SEPARATOR+set}" != set; then
88 echo "#! /bin/sh" >conf$$.sh
89 echo "exit 0" >>conf$$.sh
91 if (PATH="/nonexistent;."; conf$$.sh) >/dev/null 2>&1; then
102 as_lineno_3=`(expr $as_lineno_1 + 1) 2>/dev/null`
103 test "x$as_lineno_1" != "x$as_lineno_2" &&
104 test "x$as_lineno_3" = "x$as_lineno_2" || {
105 # Find who we are. Look in the path if we contain no path at all
108 *[\\/]* ) as_myself=$0 ;;
109 *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
113 test -z "$as_dir" && as_dir=.
114 test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
119 # We did not find ourselves, most probably we were run as `sh COMMAND'
120 # in which case we are not to be found in the path.
121 if test "x$as_myself" = x; then
124 if test ! -f "$as_myself"; then
125 { echo "$as_me: error: cannot find myself; rerun with an absolute path" >&2
126 { (exit 1); exit 1; }; }
128 case $CONFIG_SHELL in
130 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
131 for as_dir in /bin$PATH_SEPARATOR/usr/bin$PATH_SEPARATOR$PATH
134 test -z "$as_dir" && as_dir=.
135 for as_base in sh bash ksh sh5; do
138 if ("$as_dir/$as_base" -c '
141 as_lineno_3=`(expr $as_lineno_1 + 1) 2>/dev/null`
142 test "x$as_lineno_1" != "x$as_lineno_2" &&
143 test "x$as_lineno_3" = "x$as_lineno_2" ') 2>/dev/null; then
144 $as_unset BASH_ENV || test "${BASH_ENV+set}" != set || { BASH_ENV=; export BASH_ENV; }
145 $as_unset ENV || test "${ENV+set}" != set || { ENV=; export ENV; }
146 CONFIG_SHELL=$as_dir/$as_base
148 exec "$CONFIG_SHELL" "$0" ${1+"$@"}
156 # Create $as_me.lineno as a copy of $as_myself, but with $LINENO
157 # uniformly replaced by the line number. The first 'sed' inserts a
158 # line-number line before each line; the second 'sed' does the real
159 # work. The second script uses 'N' to pair each line-number line
160 # with the numbered line, and appends trailing '-' during
161 # substitution so that $LINENO is not a special case at line end.
162 # (Raja R Harinath suggested sed '=', and Paul Eggert wrote the
163 # second 'sed' script. Blame Lee E. McMahon for sed's syntax. :-)
164 sed '=' <$as_myself |
169 s,^\(['$as_cr_digits']*\)\(.*\)[$]LINENO\([^'$as_cr_alnum'_]\),\1\2\1\3,
172 s,^['$as_cr_digits']*\n,,
174 chmod +x $as_me.lineno ||
175 { echo "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2
176 { (exit 1); exit 1; }; }
178 # Don't try to exec as it changes $[0], causing all sort of problems
179 # (the dirname of $[0] is not the place where we might find the
180 # original and so on. Autoconf is especially sensible to this).
182 # Exit status is that of the last command.
187 case `echo "testing\c"; echo 1,2,3`,`echo -n testing; echo 1,2,3` in
188 *c*,-n*) ECHO_N= ECHO_C='
190 *c*,* ) ECHO_N=-n ECHO_C= ECHO_T= ;;
191 *) ECHO_N= ECHO_C='\c' ECHO_T= ;;
194 if expr a : '\(a\)' >/dev/null 2>&1; then
200 rm -f conf$$ conf$$.exe conf$$.file
202 if ln -s conf$$.file conf$$ 2>/dev/null; then
203 # We could just check for DJGPP; but this test a) works b) is more generic
204 # and c) will remain valid once DJGPP supports symlinks (DJGPP 2.04).
205 if test -f conf$$.exe; then
206 # Don't use ln at all; we don't have any links
211 elif ln conf$$.file conf$$ 2>/dev/null; then
216 rm -f conf$$ conf$$.exe conf$$.file
218 if mkdir -p . 2>/dev/null; then
221 test -d ./-p && rmdir ./-p
225 as_executable_p="test -f"
227 # Sed expression to map a string onto a valid CPP name.
228 as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
230 # Sed expression to map a string onto a valid variable name.
231 as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
235 # We need space, tab and new line, in precisely that order.
245 # hostname on some systems (SVR3.2, Linux) returns a bogus exit status,
246 # so uname gets run too.
247 ac_hostname=`(hostname || uname -n) 2>/dev/null | sed 1q`
254 ac_default_prefix=/usr/local
255 ac_config_libobj_dir=.
260 SHELL=${CONFIG_SHELL-/bin/sh}
262 # Maximum number of lines to put in a shell here document.
263 # This variable seems obsolete. It should probably be removed, and
264 # only ac_max_sed_lines should be used.
265 : ${ac_max_here_lines=38}
267 # Identity of this package.
274 ac_unique_file="main.c"
275 ac_subdirs_all="$ac_subdirs_all doc testsuite"
276 # Factoring default headers for most tests.
277 ac_includes_default="\
280 # include <sys/types.h>
283 # include <sys/stat.h>
294 # if !STDC_HEADERS && HAVE_MEMORY_H
300 # include <strings.h>
303 # include <inttypes.h>
313 ac_subdirs_all="$ac_subdirs_all gdbtk"
314 ac_subdirs_all="$ac_subdirs_all multi-ice"
315 ac_subdirs_all="$ac_subdirs_all gdbserver"
316 ac_subst_vars='SHELL PATH_SEPARATOR PACKAGE_NAME PACKAGE_TARNAME PACKAGE_VERSION PACKAGE_STRING PACKAGE_BUGREPORT exec_prefix prefix program_transform_name bindir sbindir libexecdir datadir sysconfdir sharedstatedir localstatedir libdir includedir oldincludedir infodir mandir build_alias host_alias target_alias DEFS ECHO_C ECHO_N ECHO_T LIBS MAINTAINER_MODE_TRUE MAINTAINER_MODE_FALSE MAINT CC CFLAGS LDFLAGS CPPFLAGS ac_ct_CC EXEEXT OBJEXT CPP EGREP build build_cpu build_vendor build_os host host_cpu host_vendor host_os target target_cpu target_vendor target_os USE_NLS LIBINTL LIBINTL_DEP INCINTL XGETTEXT GMSGFMT POSUB CATALOGS DATADIRNAME INSTOBJEXT GENCAT CATOBJEXT localedir PACKAGE subdirs AWK INSTALL_PROGRAM INSTALL_SCRIPT INSTALL_DATA LN_S RANLIB ac_ct_RANLIB YACC AR ac_ct_AR DLLTOOL ac_ct_DLLTOOL WINDRES ac_ct_WINDRES MIG ac_ct_MIG READLINE READLINE_DEPS READLINE_CFLAGS HAVE_LIBEXPAT LIBEXPAT LTLIBEXPAT ALLOCA CONFIG_LDFLAGS TARGET_SYSTEM_ROOT TARGET_SYSTEM_ROOT_DEFINE WARN_CFLAGS WERROR_CFLAGS SER_HARDWIRE WIN32LIBS LIBGUI GUI_CFLAGS_X WIN32LDAPP TCL_VERSION TCL_MAJOR_VERSION TCL_MINOR_VERSION TCL_CC TCL_DEFS TCL_SHLIB_CFLAGS TCL_SHLIB_LD TCL_SHLIB_LD_LIBS TCL_SHLIB_SUFFIX TCL_DL_LIBS TCL_LD_FLAGS TCL_LD_SEARCH_FLAGS TCL_CC_SEARCH_FLAGS TCL_COMPAT_OBJS TCL_RANLIB TCL_BUILD_LIB_SPEC TCL_LIB_SPEC TCL_LIB_VERSIONS_OK TK_VERSION TK_DEFS TK_BUILD_INCLUDES TK_XINCLUDES TK_XLIBSW TK_BUILD_LIB_SPEC TK_LIB_SPEC TCLHDIR TKHDIR ITCLHDIR ITKHDIR ITCL_VERSION ITCL_DEFS ITCL_BUILD_INCLUDES ITCL_BUILD_LIB_SPEC ITCL_LIB_SPEC ITK_VERSION ITK_DEFS ITK_BUILD_INCLUDES ITK_BUILD_LIB_SPEC ITK_LIB_SPEC X_CFLAGS X_LDFLAGS X_LIBS TCL_DEPS TK_DEPS ITCLLIB ITCL_DEPS ITKLIB ITK_DEPS GDBTKLIBS GDBTK_CFLAGS GDBTK_SRC_DIR IGNORE_SIM IGNORE_SIM_OBS ENABLE_CFLAGS PROFILE_CFLAGS CONFIG_OBS CONFIG_DEPS CONFIG_SRCS CONFIG_ALL CONFIG_CLEAN CONFIG_INSTALL CONFIG_UNINSTALL target_subdir frags nm_h LIBICONV LIBOBJS LTLIBOBJS'
317 ac_subst_files='host_makefile_frag target_makefile_frag'
319 # Initialize some variables set by options.
321 ac_init_version=false
322 # The variables have the same names as the options, with
323 # dashes changed to underlines.
331 program_transform_name=s,x,x,
339 # Installation directory options.
340 # These are left unexpanded so users can "make install exec_prefix=/foo"
341 # and all the variables that are supposed to be based on exec_prefix
342 # by default will actually change.
343 # Use braces instead of parens because sh, perl, etc. also accept them.
344 bindir='${exec_prefix}/bin'
345 sbindir='${exec_prefix}/sbin'
346 libexecdir='${exec_prefix}/libexec'
347 datadir='${prefix}/share'
348 sysconfdir='${prefix}/etc'
349 sharedstatedir='${prefix}/com'
350 localstatedir='${prefix}/var'
351 libdir='${exec_prefix}/lib'
352 includedir='${prefix}/include'
353 oldincludedir='/usr/include'
354 infodir='${prefix}/info'
355 mandir='${prefix}/man'
360 # If the previous option needs an argument, assign it.
361 if test -n "$ac_prev"; then
362 eval "$ac_prev=\$ac_option"
367 ac_optarg=`expr "x$ac_option" : 'x[^=]*=\(.*\)'`
369 # Accept the important Cygnus configure options, so we can diagnose typos.
373 -bindir | --bindir | --bindi | --bind | --bin | --bi)
375 -bindir=* | --bindir=* | --bindi=* | --bind=* | --bin=* | --bi=*)
378 -build | --build | --buil | --bui | --bu)
379 ac_prev=build_alias ;;
380 -build=* | --build=* | --buil=* | --bui=* | --bu=*)
381 build_alias=$ac_optarg ;;
383 -cache-file | --cache-file | --cache-fil | --cache-fi \
384 | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c)
385 ac_prev=cache_file ;;
386 -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \
387 | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* | --c=*)
388 cache_file=$ac_optarg ;;
391 cache_file=config.cache ;;
393 -datadir | --datadir | --datadi | --datad | --data | --dat | --da)
395 -datadir=* | --datadir=* | --datadi=* | --datad=* | --data=* | --dat=* \
397 datadir=$ac_optarg ;;
399 -disable-* | --disable-*)
400 ac_feature=`expr "x$ac_option" : 'x-*disable-\(.*\)'`
401 # Reject names that are not valid shell variable names.
402 expr "x$ac_feature" : ".*[^-_$as_cr_alnum]" >/dev/null &&
403 { echo "$as_me: error: invalid feature name: $ac_feature" >&2
404 { (exit 1); exit 1; }; }
405 ac_feature=`echo $ac_feature | sed 's/-/_/g'`
406 eval "enable_$ac_feature=no" ;;
408 -enable-* | --enable-*)
409 ac_feature=`expr "x$ac_option" : 'x-*enable-\([^=]*\)'`
410 # Reject names that are not valid shell variable names.
411 expr "x$ac_feature" : ".*[^-_$as_cr_alnum]" >/dev/null &&
412 { echo "$as_me: error: invalid feature name: $ac_feature" >&2
413 { (exit 1); exit 1; }; }
414 ac_feature=`echo $ac_feature | sed 's/-/_/g'`
416 *=*) ac_optarg=`echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"`;;
419 eval "enable_$ac_feature='$ac_optarg'" ;;
421 -exec-prefix | --exec_prefix | --exec-prefix | --exec-prefi \
422 | --exec-pref | --exec-pre | --exec-pr | --exec-p | --exec- \
423 | --exec | --exe | --ex)
424 ac_prev=exec_prefix ;;
425 -exec-prefix=* | --exec_prefix=* | --exec-prefix=* | --exec-prefi=* \
426 | --exec-pref=* | --exec-pre=* | --exec-pr=* | --exec-p=* | --exec-=* \
427 | --exec=* | --exe=* | --ex=*)
428 exec_prefix=$ac_optarg ;;
430 -gas | --gas | --ga | --g)
431 # Obsolete; use --with-gas.
434 -help | --help | --hel | --he | -h)
436 -help=r* | --help=r* | --hel=r* | --he=r* | -hr*)
437 ac_init_help=recursive ;;
438 -help=s* | --help=s* | --hel=s* | --he=s* | -hs*)
439 ac_init_help=short ;;
441 -host | --host | --hos | --ho)
442 ac_prev=host_alias ;;
443 -host=* | --host=* | --hos=* | --ho=*)
444 host_alias=$ac_optarg ;;
446 -includedir | --includedir | --includedi | --included | --include \
447 | --includ | --inclu | --incl | --inc)
448 ac_prev=includedir ;;
449 -includedir=* | --includedir=* | --includedi=* | --included=* | --include=* \
450 | --includ=* | --inclu=* | --incl=* | --inc=*)
451 includedir=$ac_optarg ;;
453 -infodir | --infodir | --infodi | --infod | --info | --inf)
455 -infodir=* | --infodir=* | --infodi=* | --infod=* | --info=* | --inf=*)
456 infodir=$ac_optarg ;;
458 -libdir | --libdir | --libdi | --libd)
460 -libdir=* | --libdir=* | --libdi=* | --libd=*)
463 -libexecdir | --libexecdir | --libexecdi | --libexecd | --libexec \
464 | --libexe | --libex | --libe)
465 ac_prev=libexecdir ;;
466 -libexecdir=* | --libexecdir=* | --libexecdi=* | --libexecd=* | --libexec=* \
467 | --libexe=* | --libex=* | --libe=*)
468 libexecdir=$ac_optarg ;;
470 -localstatedir | --localstatedir | --localstatedi | --localstated \
471 | --localstate | --localstat | --localsta | --localst \
472 | --locals | --local | --loca | --loc | --lo)
473 ac_prev=localstatedir ;;
474 -localstatedir=* | --localstatedir=* | --localstatedi=* | --localstated=* \
475 | --localstate=* | --localstat=* | --localsta=* | --localst=* \
476 | --locals=* | --local=* | --loca=* | --loc=* | --lo=*)
477 localstatedir=$ac_optarg ;;
479 -mandir | --mandir | --mandi | --mand | --man | --ma | --m)
481 -mandir=* | --mandir=* | --mandi=* | --mand=* | --man=* | --ma=* | --m=*)
485 # Obsolete; use --without-fp.
488 -no-create | --no-create | --no-creat | --no-crea | --no-cre \
489 | --no-cr | --no-c | -n)
492 -no-recursion | --no-recursion | --no-recursio | --no-recursi \
493 | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r)
496 -oldincludedir | --oldincludedir | --oldincludedi | --oldincluded \
497 | --oldinclude | --oldinclud | --oldinclu | --oldincl | --oldinc \
498 | --oldin | --oldi | --old | --ol | --o)
499 ac_prev=oldincludedir ;;
500 -oldincludedir=* | --oldincludedir=* | --oldincludedi=* | --oldincluded=* \
501 | --oldinclude=* | --oldinclud=* | --oldinclu=* | --oldincl=* | --oldinc=* \
502 | --oldin=* | --oldi=* | --old=* | --ol=* | --o=*)
503 oldincludedir=$ac_optarg ;;
505 -prefix | --prefix | --prefi | --pref | --pre | --pr | --p)
507 -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*)
510 -program-prefix | --program-prefix | --program-prefi | --program-pref \
511 | --program-pre | --program-pr | --program-p)
512 ac_prev=program_prefix ;;
513 -program-prefix=* | --program-prefix=* | --program-prefi=* \
514 | --program-pref=* | --program-pre=* | --program-pr=* | --program-p=*)
515 program_prefix=$ac_optarg ;;
517 -program-suffix | --program-suffix | --program-suffi | --program-suff \
518 | --program-suf | --program-su | --program-s)
519 ac_prev=program_suffix ;;
520 -program-suffix=* | --program-suffix=* | --program-suffi=* \
521 | --program-suff=* | --program-suf=* | --program-su=* | --program-s=*)
522 program_suffix=$ac_optarg ;;
524 -program-transform-name | --program-transform-name \
525 | --program-transform-nam | --program-transform-na \
526 | --program-transform-n | --program-transform- \
527 | --program-transform | --program-transfor \
528 | --program-transfo | --program-transf \
529 | --program-trans | --program-tran \
530 | --progr-tra | --program-tr | --program-t)
531 ac_prev=program_transform_name ;;
532 -program-transform-name=* | --program-transform-name=* \
533 | --program-transform-nam=* | --program-transform-na=* \
534 | --program-transform-n=* | --program-transform-=* \
535 | --program-transform=* | --program-transfor=* \
536 | --program-transfo=* | --program-transf=* \
537 | --program-trans=* | --program-tran=* \
538 | --progr-tra=* | --program-tr=* | --program-t=*)
539 program_transform_name=$ac_optarg ;;
541 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
542 | -silent | --silent | --silen | --sile | --sil)
545 -sbindir | --sbindir | --sbindi | --sbind | --sbin | --sbi | --sb)
547 -sbindir=* | --sbindir=* | --sbindi=* | --sbind=* | --sbin=* \
549 sbindir=$ac_optarg ;;
551 -sharedstatedir | --sharedstatedir | --sharedstatedi \
552 | --sharedstated | --sharedstate | --sharedstat | --sharedsta \
553 | --sharedst | --shareds | --shared | --share | --shar \
555 ac_prev=sharedstatedir ;;
556 -sharedstatedir=* | --sharedstatedir=* | --sharedstatedi=* \
557 | --sharedstated=* | --sharedstate=* | --sharedstat=* | --sharedsta=* \
558 | --sharedst=* | --shareds=* | --shared=* | --share=* | --shar=* \
560 sharedstatedir=$ac_optarg ;;
562 -site | --site | --sit)
564 -site=* | --site=* | --sit=*)
567 -srcdir | --srcdir | --srcdi | --srcd | --src | --sr)
569 -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*)
572 -sysconfdir | --sysconfdir | --sysconfdi | --sysconfd | --sysconf \
573 | --syscon | --sysco | --sysc | --sys | --sy)
574 ac_prev=sysconfdir ;;
575 -sysconfdir=* | --sysconfdir=* | --sysconfdi=* | --sysconfd=* | --sysconf=* \
576 | --syscon=* | --sysco=* | --sysc=* | --sys=* | --sy=*)
577 sysconfdir=$ac_optarg ;;
579 -target | --target | --targe | --targ | --tar | --ta | --t)
580 ac_prev=target_alias ;;
581 -target=* | --target=* | --targe=* | --targ=* | --tar=* | --ta=* | --t=*)
582 target_alias=$ac_optarg ;;
584 -v | -verbose | --verbose | --verbos | --verbo | --verb)
587 -version | --version | --versio | --versi | --vers | -V)
591 ac_package=`expr "x$ac_option" : 'x-*with-\([^=]*\)'`
592 # Reject names that are not valid shell variable names.
593 expr "x$ac_package" : ".*[^-_$as_cr_alnum]" >/dev/null &&
594 { echo "$as_me: error: invalid package name: $ac_package" >&2
595 { (exit 1); exit 1; }; }
596 ac_package=`echo $ac_package| sed 's/-/_/g'`
598 *=*) ac_optarg=`echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"`;;
601 eval "with_$ac_package='$ac_optarg'" ;;
603 -without-* | --without-*)
604 ac_package=`expr "x$ac_option" : 'x-*without-\(.*\)'`
605 # Reject names that are not valid shell variable names.
606 expr "x$ac_package" : ".*[^-_$as_cr_alnum]" >/dev/null &&
607 { echo "$as_me: error: invalid package name: $ac_package" >&2
608 { (exit 1); exit 1; }; }
609 ac_package=`echo $ac_package | sed 's/-/_/g'`
610 eval "with_$ac_package=no" ;;
613 # Obsolete; use --with-x.
616 -x-includes | --x-includes | --x-include | --x-includ | --x-inclu \
617 | --x-incl | --x-inc | --x-in | --x-i)
618 ac_prev=x_includes ;;
619 -x-includes=* | --x-includes=* | --x-include=* | --x-includ=* | --x-inclu=* \
620 | --x-incl=* | --x-inc=* | --x-in=* | --x-i=*)
621 x_includes=$ac_optarg ;;
623 -x-libraries | --x-libraries | --x-librarie | --x-librari \
624 | --x-librar | --x-libra | --x-libr | --x-lib | --x-li | --x-l)
625 ac_prev=x_libraries ;;
626 -x-libraries=* | --x-libraries=* | --x-librarie=* | --x-librari=* \
627 | --x-librar=* | --x-libra=* | --x-libr=* | --x-lib=* | --x-li=* | --x-l=*)
628 x_libraries=$ac_optarg ;;
630 -*) { echo "$as_me: error: unrecognized option: $ac_option
631 Try \`$0 --help' for more information." >&2
632 { (exit 1); exit 1; }; }
636 ac_envvar=`expr "x$ac_option" : 'x\([^=]*\)='`
637 # Reject names that are not valid shell variable names.
638 expr "x$ac_envvar" : ".*[^_$as_cr_alnum]" >/dev/null &&
639 { echo "$as_me: error: invalid variable name: $ac_envvar" >&2
640 { (exit 1); exit 1; }; }
641 ac_optarg=`echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"`
642 eval "$ac_envvar='$ac_optarg'"
646 # FIXME: should be removed in autoconf 3.0.
647 echo "$as_me: WARNING: you should use --build, --host, --target" >&2
648 expr "x$ac_option" : ".*[^-._$as_cr_alnum]" >/dev/null &&
649 echo "$as_me: WARNING: invalid host type: $ac_option" >&2
650 : ${build_alias=$ac_option} ${host_alias=$ac_option} ${target_alias=$ac_option}
656 if test -n "$ac_prev"; then
657 ac_option=--`echo $ac_prev | sed 's/_/-/g'`
658 { echo "$as_me: error: missing argument to $ac_option" >&2
659 { (exit 1); exit 1; }; }
662 # Be sure to have absolute paths.
663 for ac_var in exec_prefix prefix
665 eval ac_val=$`echo $ac_var`
667 [\\/$]* | ?:[\\/]* | NONE | '' ) ;;
668 *) { echo "$as_me: error: expected an absolute directory name for --$ac_var: $ac_val" >&2
669 { (exit 1); exit 1; }; };;
673 # Be sure to have absolute paths.
674 for ac_var in bindir sbindir libexecdir datadir sysconfdir sharedstatedir \
675 localstatedir libdir includedir oldincludedir infodir mandir
677 eval ac_val=$`echo $ac_var`
679 [\\/$]* | ?:[\\/]* ) ;;
680 *) { echo "$as_me: error: expected an absolute directory name for --$ac_var: $ac_val" >&2
681 { (exit 1); exit 1; }; };;
685 # There might be people who depend on the old broken behavior: `$host'
686 # used to hold the argument of --host etc.
687 # FIXME: To remove some day.
692 # FIXME: To remove some day.
693 if test "x$host_alias" != x; then
694 if test "x$build_alias" = x; then
695 cross_compiling=maybe
696 echo "$as_me: WARNING: If you wanted to set the --build type, don't use --host.
697 If a cross compiler is detected then cross compile mode will be used." >&2
698 elif test "x$build_alias" != "x$host_alias"; then
704 test -n "$host_alias" && ac_tool_prefix=$host_alias-
706 test "$silent" = yes && exec 6>/dev/null
709 # Find the source files, if location was not specified.
710 if test -z "$srcdir"; then
711 ac_srcdir_defaulted=yes
712 # Try the directory containing this script, then its parent.
713 ac_confdir=`(dirname "$0") 2>/dev/null ||
714 $as_expr X"$0" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
715 X"$0" : 'X\(//\)[^/]' \| \
716 X"$0" : 'X\(//\)$' \| \
717 X"$0" : 'X\(/\)' \| \
718 . : '\(.\)' 2>/dev/null ||
720 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
721 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
722 /^X\(\/\/\)$/{ s//\1/; q; }
723 /^X\(\/\).*/{ s//\1/; q; }
726 if test ! -r $srcdir/$ac_unique_file; then
730 ac_srcdir_defaulted=no
732 if test ! -r $srcdir/$ac_unique_file; then
733 if test "$ac_srcdir_defaulted" = yes; then
734 { echo "$as_me: error: cannot find sources ($ac_unique_file) in $ac_confdir or .." >&2
735 { (exit 1); exit 1; }; }
737 { echo "$as_me: error: cannot find sources ($ac_unique_file) in $srcdir" >&2
738 { (exit 1); exit 1; }; }
741 (cd $srcdir && test -r ./$ac_unique_file) 2>/dev/null ||
742 { echo "$as_me: error: sources are in $srcdir, but \`cd $srcdir' does not work" >&2
743 { (exit 1); exit 1; }; }
744 srcdir=`echo "$srcdir" | sed 's%\([^\\/]\)[\\/]*$%\1%'`
745 ac_env_build_alias_set=${build_alias+set}
746 ac_env_build_alias_value=$build_alias
747 ac_cv_env_build_alias_set=${build_alias+set}
748 ac_cv_env_build_alias_value=$build_alias
749 ac_env_host_alias_set=${host_alias+set}
750 ac_env_host_alias_value=$host_alias
751 ac_cv_env_host_alias_set=${host_alias+set}
752 ac_cv_env_host_alias_value=$host_alias
753 ac_env_target_alias_set=${target_alias+set}
754 ac_env_target_alias_value=$target_alias
755 ac_cv_env_target_alias_set=${target_alias+set}
756 ac_cv_env_target_alias_value=$target_alias
757 ac_env_CC_set=${CC+set}
759 ac_cv_env_CC_set=${CC+set}
760 ac_cv_env_CC_value=$CC
761 ac_env_CFLAGS_set=${CFLAGS+set}
762 ac_env_CFLAGS_value=$CFLAGS
763 ac_cv_env_CFLAGS_set=${CFLAGS+set}
764 ac_cv_env_CFLAGS_value=$CFLAGS
765 ac_env_LDFLAGS_set=${LDFLAGS+set}
766 ac_env_LDFLAGS_value=$LDFLAGS
767 ac_cv_env_LDFLAGS_set=${LDFLAGS+set}
768 ac_cv_env_LDFLAGS_value=$LDFLAGS
769 ac_env_CPPFLAGS_set=${CPPFLAGS+set}
770 ac_env_CPPFLAGS_value=$CPPFLAGS
771 ac_cv_env_CPPFLAGS_set=${CPPFLAGS+set}
772 ac_cv_env_CPPFLAGS_value=$CPPFLAGS
773 ac_env_CPP_set=${CPP+set}
774 ac_env_CPP_value=$CPP
775 ac_cv_env_CPP_set=${CPP+set}
776 ac_cv_env_CPP_value=$CPP
779 # Report the --help message.
781 if test "$ac_init_help" = "long"; then
782 # Omit some internal or obsolete options to make the list less imposing.
783 # This message is too long to be a string in the A/UX 3.1 sh.
785 \`configure' configures this package to adapt to many kinds of systems.
787 Usage: $0 [OPTION]... [VAR=VALUE]...
789 To assign environment variables (e.g., CC, CFLAGS...), specify them as
790 VAR=VALUE. See below for descriptions of some of the useful variables.
792 Defaults for the options are specified in brackets.
795 -h, --help display this help and exit
796 --help=short display options specific to this package
797 --help=recursive display the short help of all the included packages
798 -V, --version display version information and exit
799 -q, --quiet, --silent do not print \`checking...' messages
800 --cache-file=FILE cache test results in FILE [disabled]
801 -C, --config-cache alias for \`--cache-file=config.cache'
802 -n, --no-create do not create output files
803 --srcdir=DIR find the sources in DIR [configure dir or \`..']
808 Installation directories:
809 --prefix=PREFIX install architecture-independent files in PREFIX
811 --exec-prefix=EPREFIX install architecture-dependent files in EPREFIX
814 By default, \`make install' will install all the files in
815 \`$ac_default_prefix/bin', \`$ac_default_prefix/lib' etc. You can specify
816 an installation prefix other than \`$ac_default_prefix' using \`--prefix',
817 for instance \`--prefix=\$HOME'.
819 For better control, use the options below.
821 Fine tuning of the installation directories:
822 --bindir=DIR user executables [EPREFIX/bin]
823 --sbindir=DIR system admin executables [EPREFIX/sbin]
824 --libexecdir=DIR program executables [EPREFIX/libexec]
825 --datadir=DIR read-only architecture-independent data [PREFIX/share]
826 --sysconfdir=DIR read-only single-machine data [PREFIX/etc]
827 --sharedstatedir=DIR modifiable architecture-independent data [PREFIX/com]
828 --localstatedir=DIR modifiable single-machine data [PREFIX/var]
829 --libdir=DIR object code libraries [EPREFIX/lib]
830 --includedir=DIR C header files [PREFIX/include]
831 --oldincludedir=DIR C header files for non-gcc [/usr/include]
832 --infodir=DIR info documentation [PREFIX/info]
833 --mandir=DIR man documentation [PREFIX/man]
839 --program-prefix=PREFIX prepend PREFIX to installed program names
840 --program-suffix=SUFFIX append SUFFIX to installed program names
841 --program-transform-name=PROGRAM run sed PROGRAM on installed program names
844 --x-includes=DIR X include files are in DIR
845 --x-libraries=DIR X library files are in DIR
848 --build=BUILD configure for building on BUILD [guessed]
849 --host=HOST cross-compile to build programs to run on HOST [BUILD]
850 --target=TARGET configure for building compilers for TARGET [HOST]
854 if test -n "$ac_init_help"; then
859 --disable-FEATURE do not include FEATURE (same as --enable-FEATURE=no)
860 --enable-FEATURE[=ARG] include FEATURE [ARG=yes]
861 --enable-maintainer-mode enable make rules and dependencies not useful
862 (and sometimes confusing) to the casual installer
863 --disable-gdbcli disable command-line interface (CLI)
864 --disable-gdbmi disable machine-interface (MI)
865 --enable-tui enable full-screen terminal user interface (TUI)
866 --enable-gdbtk enable gdbtk graphical user interface (GUI)
867 --enable-profiling enable profiling of GDB
868 --disable-rpath do not hardcode runtime library paths
869 --enable-werror treat compile warnings as errors
870 --enable-build-warnings Enable build-time compiler warnings if gcc is used
871 --enable-gdb-build-warnings Enable GDB specific build-time compiler warnings if gcc is used
872 --enable-sim Link gdb with simulator
873 --enable-multi-ice build the multi-ice-gdb-server
876 --with-PACKAGE[=ARG] use PACKAGE [ARG=yes]
877 --without-PACKAGE do not use PACKAGE (same as --with-PACKAGE=no)
878 --with-separate-debug-dir=path Look for global separate debug info in this path LIBDIR/debug
879 --with-libunwind Use libunwind frame unwinding support
880 --with-system-readline use installed readline library
881 --with-expat include expat support (auto/yes/no)
882 --with-gnu-ld assume the C compiler uses GNU ld default=no
883 --with-libexpat-prefix[=DIR] search for libexpat in DIR/include and DIR/lib
884 --without-libexpat-prefix don't search for libexpat in includedir and libdir
885 --without-included-regex don't use included regex; this is the default
886 on systems with version 2 of the GNU C library
887 (use with caution on other system)
888 --with-sysroot=DIR Search for usr/lib et al within DIR.
889 --with-tclconfig=DIR Directory containing tcl configuration (tclConfig.sh)
890 --with-tkconfig=DIR Directory containing tk configuration (tkConfig.sh)
891 --with-tclinclude=DIR Directory where tcl private headers are
892 --with-tkinclude=DIR Directory where tk private headers are
893 --with-itclconfig Directory containing itcl configuration (itclConfig.sh)
894 --with-itkconfig Directory containing itk configuration (itkConfig.sh)
895 --with-x use the X Window System
896 --with-libiconv-prefix=DIR search for libiconv in DIR/include and DIR/lib
898 Some influential environment variables:
899 CC C compiler command
900 CFLAGS C compiler flags
901 LDFLAGS linker flags, e.g. -L<lib dir> if you have libraries in a
902 nonstandard directory <lib dir>
903 CPPFLAGS C/C++ preprocessor flags, e.g. -I<include dir> if you have
904 headers in a nonstandard directory <include dir>
907 Use these variables to override the choices made by `configure' or to help
908 it to find libraries and programs with nonstandard names/locations.
913 if test "$ac_init_help" = "recursive"; then
914 # If there are subdirs, report their specific --help.
916 for ac_dir in : $ac_subdirs_all; do test "x$ac_dir" = x: && continue
917 test -d $ac_dir || continue
920 if test "$ac_dir" != .; then
921 ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'`
922 # A "../" for each directory in $ac_dir_suffix.
923 ac_top_builddir=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,../,g'`
925 ac_dir_suffix= ac_top_builddir=
929 .) # No --srcdir option. We are building in place.
931 if test -z "$ac_top_builddir"; then
934 ac_top_srcdir=`echo $ac_top_builddir | sed 's,/$,,'`
936 [\\/]* | ?:[\\/]* ) # Absolute path.
937 ac_srcdir=$srcdir$ac_dir_suffix;
938 ac_top_srcdir=$srcdir ;;
940 ac_srcdir=$ac_top_builddir$srcdir$ac_dir_suffix
941 ac_top_srcdir=$ac_top_builddir$srcdir ;;
944 # Do not use `cd foo && pwd` to compute absolute paths, because
945 # the directories may not exist.
947 .) ac_abs_builddir="$ac_dir";;
950 .) ac_abs_builddir=`pwd`;;
951 [\\/]* | ?:[\\/]* ) ac_abs_builddir="$ac_dir";;
952 *) ac_abs_builddir=`pwd`/"$ac_dir";;
955 case $ac_abs_builddir in
956 .) ac_abs_top_builddir=${ac_top_builddir}.;;
958 case ${ac_top_builddir}. in
959 .) ac_abs_top_builddir=$ac_abs_builddir;;
960 [\\/]* | ?:[\\/]* ) ac_abs_top_builddir=${ac_top_builddir}.;;
961 *) ac_abs_top_builddir=$ac_abs_builddir/${ac_top_builddir}.;;
964 case $ac_abs_builddir in
965 .) ac_abs_srcdir=$ac_srcdir;;
968 .) ac_abs_srcdir=$ac_abs_builddir;;
969 [\\/]* | ?:[\\/]* ) ac_abs_srcdir=$ac_srcdir;;
970 *) ac_abs_srcdir=$ac_abs_builddir/$ac_srcdir;;
973 case $ac_abs_builddir in
974 .) ac_abs_top_srcdir=$ac_top_srcdir;;
976 case $ac_top_srcdir in
977 .) ac_abs_top_srcdir=$ac_abs_builddir;;
978 [\\/]* | ?:[\\/]* ) ac_abs_top_srcdir=$ac_top_srcdir;;
979 *) ac_abs_top_srcdir=$ac_abs_builddir/$ac_top_srcdir;;
984 # Check for guested configure; otherwise get Cygnus style configure.
985 if test -f $ac_srcdir/configure.gnu; then
987 $SHELL $ac_srcdir/configure.gnu --help=recursive
988 elif test -f $ac_srcdir/configure; then
990 $SHELL $ac_srcdir/configure --help=recursive
991 elif test -f $ac_srcdir/configure.ac ||
992 test -f $ac_srcdir/configure.in; then
996 echo "$as_me: WARNING: no configuration information is in $ac_dir" >&2
1002 test -n "$ac_init_help" && exit 0
1003 if $ac_init_version; then
1006 Copyright (C) 2003 Free Software Foundation, Inc.
1007 This configure script is free software; the Free Software Foundation
1008 gives unlimited permission to copy, distribute and modify it.
1014 This file contains any messages produced by compilers while
1015 running configure, to aid debugging if configure makes a mistake.
1017 It was created by $as_me, which was
1018 generated by GNU Autoconf 2.59. Invocation command line was
1029 hostname = `(hostname || uname -n) 2>/dev/null | sed 1q`
1030 uname -m = `(uname -m) 2>/dev/null || echo unknown`
1031 uname -r = `(uname -r) 2>/dev/null || echo unknown`
1032 uname -s = `(uname -s) 2>/dev/null || echo unknown`
1033 uname -v = `(uname -v) 2>/dev/null || echo unknown`
1035 /usr/bin/uname -p = `(/usr/bin/uname -p) 2>/dev/null || echo unknown`
1036 /bin/uname -X = `(/bin/uname -X) 2>/dev/null || echo unknown`
1038 /bin/arch = `(/bin/arch) 2>/dev/null || echo unknown`
1039 /usr/bin/arch -k = `(/usr/bin/arch -k) 2>/dev/null || echo unknown`
1040 /usr/convex/getsysinfo = `(/usr/convex/getsysinfo) 2>/dev/null || echo unknown`
1041 hostinfo = `(hostinfo) 2>/dev/null || echo unknown`
1042 /bin/machine = `(/bin/machine) 2>/dev/null || echo unknown`
1043 /usr/bin/oslevel = `(/usr/bin/oslevel) 2>/dev/null || echo unknown`
1044 /bin/universe = `(/bin/universe) 2>/dev/null || echo unknown`
1048 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1052 test -z "$as_dir" && as_dir=.
1053 echo "PATH: $as_dir"
1068 # Keep a trace of the command line.
1069 # Strip out --no-create and --no-recursion so they do not pile up.
1070 # Strip out --silent because we don't want to record it for future runs.
1071 # Also quote any args containing shell meta-characters.
1072 # Make two passes to allow for proper duplicate-argument suppression.
1077 ac_must_keep_next=false
1083 -no-create | --no-c* | -n | -no-recursion | --no-r*) continue ;;
1084 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
1085 | -silent | --silent | --silen | --sile | --sil)
1087 *" "*|*" "*|*[\[\]\~\#\$\^\&\*\(\)\{\}\\\|\;\<\>\?\"\']*)
1088 ac_arg=`echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;;
1091 1) ac_configure_args0="$ac_configure_args0 '$ac_arg'" ;;
1093 ac_configure_args1="$ac_configure_args1 '$ac_arg'"
1094 if test $ac_must_keep_next = true; then
1095 ac_must_keep_next=false # Got value, back to normal.
1098 *=* | --config-cache | -C | -disable-* | --disable-* \
1099 | -enable-* | --enable-* | -gas | --g* | -nfp | --nf* \
1100 | -q | -quiet | --q* | -silent | --sil* | -v | -verb* \
1101 | -with-* | --with-* | -without-* | --without-* | --x)
1102 case "$ac_configure_args0 " in
1103 "$ac_configure_args1"*" '$ac_arg' "* ) continue ;;
1106 -* ) ac_must_keep_next=true ;;
1109 ac_configure_args="$ac_configure_args$ac_sep'$ac_arg'"
1110 # Get rid of the leading space.
1116 $as_unset ac_configure_args0 || test "${ac_configure_args0+set}" != set || { ac_configure_args0=; export ac_configure_args0; }
1117 $as_unset ac_configure_args1 || test "${ac_configure_args1+set}" != set || { ac_configure_args1=; export ac_configure_args1; }
1119 # When interrupted or exit'd, cleanup temporary files, and complete
1120 # config.log. We remove comments because anyway the quotes in there
1121 # would cause problems or look ugly.
1122 # WARNING: Be sure not to use single quotes in there, as some shells,
1123 # such as our DU 5.0 friend, will then `close' the trap.
1124 trap 'exit_status=$?
1125 # Save into config.log some information that might help in debugging.
1130 ## ---------------- ##
1131 ## Cache variables. ##
1132 ## ---------------- ##
1135 # The following way of writing the cache mishandles newlines in values,
1138 case `(ac_space='"'"' '"'"'; set | grep ac_space) 2>&1` in
1141 "s/'"'"'/'"'"'\\\\'"'"''"'"'/g;
1142 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='"'"'\\2'"'"'/p"
1146 "s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1=\\2/p"
1153 ## ----------------- ##
1154 ## Output variables. ##
1155 ## ----------------- ##
1158 for ac_var in $ac_subst_vars
1160 eval ac_val=$`echo $ac_var`
1161 echo "$ac_var='"'"'$ac_val'"'"'"
1165 if test -n "$ac_subst_files"; then
1172 for ac_var in $ac_subst_files
1174 eval ac_val=$`echo $ac_var`
1175 echo "$ac_var='"'"'$ac_val'"'"'"
1180 if test -s confdefs.h; then
1187 sed "/^$/d" confdefs.h | sort
1190 test "$ac_signal" != 0 &&
1191 echo "$as_me: caught signal $ac_signal"
1192 echo "$as_me: exit $exit_status"
1194 rm -f core *.core &&
1195 rm -rf conftest* confdefs* conf$$* $ac_clean_files &&
1198 for ac_signal in 1 2 13 15; do
1199 trap 'ac_signal='$ac_signal'; { (exit 1); exit 1; }' $ac_signal
1203 # confdefs.h avoids OS command line length limits that DEFS can exceed.
1204 rm -rf conftest* confdefs.h
1205 # AIX cpp loses on an empty file, so make sure it contains at least a newline.
1208 # Predefined preprocessor variables.
1210 cat >>confdefs.h <<_ACEOF
1211 #define PACKAGE_NAME "$PACKAGE_NAME"
1215 cat >>confdefs.h <<_ACEOF
1216 #define PACKAGE_TARNAME "$PACKAGE_TARNAME"
1220 cat >>confdefs.h <<_ACEOF
1221 #define PACKAGE_VERSION "$PACKAGE_VERSION"
1225 cat >>confdefs.h <<_ACEOF
1226 #define PACKAGE_STRING "$PACKAGE_STRING"
1230 cat >>confdefs.h <<_ACEOF
1231 #define PACKAGE_BUGREPORT "$PACKAGE_BUGREPORT"
1235 # Let the site file select an alternate cache file if it wants to.
1236 # Prefer explicitly selected file to automatically selected ones.
1237 if test -z "$CONFIG_SITE"; then
1238 if test "x$prefix" != xNONE; then
1239 CONFIG_SITE="$prefix/share/config.site $prefix/etc/config.site"
1241 CONFIG_SITE="$ac_default_prefix/share/config.site $ac_default_prefix/etc/config.site"
1244 for ac_site_file in $CONFIG_SITE; do
1245 if test -r "$ac_site_file"; then
1246 { echo "$as_me:$LINENO: loading site script $ac_site_file" >&5
1247 echo "$as_me: loading site script $ac_site_file" >&6;}
1248 sed 's/^/| /' "$ac_site_file" >&5
1253 if test -r "$cache_file"; then
1254 # Some versions of bash will fail to source /dev/null (special
1255 # files actually), so we avoid doing that.
1256 if test -f "$cache_file"; then
1257 { echo "$as_me:$LINENO: loading cache $cache_file" >&5
1258 echo "$as_me: loading cache $cache_file" >&6;}
1260 [\\/]* | ?:[\\/]* ) . $cache_file;;
1261 *) . ./$cache_file;;
1265 { echo "$as_me:$LINENO: creating cache $cache_file" >&5
1266 echo "$as_me: creating cache $cache_file" >&6;}
1270 # Check that the precious variables saved in the cache have kept the same
1272 ac_cache_corrupted=false
1273 for ac_var in `(set) 2>&1 |
1274 sed -n 's/^ac_env_\([a-zA-Z_0-9]*\)_set=.*/\1/p'`; do
1275 eval ac_old_set=\$ac_cv_env_${ac_var}_set
1276 eval ac_new_set=\$ac_env_${ac_var}_set
1277 eval ac_old_val="\$ac_cv_env_${ac_var}_value"
1278 eval ac_new_val="\$ac_env_${ac_var}_value"
1279 case $ac_old_set,$ac_new_set in
1281 { echo "$as_me:$LINENO: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&5
1282 echo "$as_me: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&2;}
1283 ac_cache_corrupted=: ;;
1285 { echo "$as_me:$LINENO: error: \`$ac_var' was not set in the previous run" >&5
1286 echo "$as_me: error: \`$ac_var' was not set in the previous run" >&2;}
1287 ac_cache_corrupted=: ;;
1290 if test "x$ac_old_val" != "x$ac_new_val"; then
1291 { echo "$as_me:$LINENO: error: \`$ac_var' has changed since the previous run:" >&5
1292 echo "$as_me: error: \`$ac_var' has changed since the previous run:" >&2;}
1293 { echo "$as_me:$LINENO: former value: $ac_old_val" >&5
1294 echo "$as_me: former value: $ac_old_val" >&2;}
1295 { echo "$as_me:$LINENO: current value: $ac_new_val" >&5
1296 echo "$as_me: current value: $ac_new_val" >&2;}
1297 ac_cache_corrupted=:
1300 # Pass precious variables to config.status.
1301 if test "$ac_new_set" = set; then
1303 *" "*|*" "*|*[\[\]\~\#\$\^\&\*\(\)\{\}\\\|\;\<\>\?\"\']*)
1304 ac_arg=$ac_var=`echo "$ac_new_val" | sed "s/'/'\\\\\\\\''/g"` ;;
1305 *) ac_arg=$ac_var=$ac_new_val ;;
1307 case " $ac_configure_args " in
1308 *" '$ac_arg' "*) ;; # Avoid dups. Use of quotes ensures accuracy.
1309 *) ac_configure_args="$ac_configure_args '$ac_arg'" ;;
1313 if $ac_cache_corrupted; then
1314 { echo "$as_me:$LINENO: error: changes in the environment can compromise the build" >&5
1315 echo "$as_me: error: changes in the environment can compromise the build" >&2;}
1316 { { echo "$as_me:$LINENO: error: run \`make distclean' and/or \`rm $cache_file' and start over" >&5
1317 echo "$as_me: error: run \`make distclean' and/or \`rm $cache_file' and start over" >&2;}
1318 { (exit 1); exit 1; }; }
1322 ac_cpp='$CPP $CPPFLAGS'
1323 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
1324 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
1325 ac_compiler_gnu=$ac_cv_c_compiler_gnu
1345 ac_config_headers="$ac_config_headers config.h:config.in"
1347 echo "$as_me:$LINENO: checking whether to enable maintainer-specific portions of Makefiles" >&5
1348 echo $ECHO_N "checking whether to enable maintainer-specific portions of Makefiles... $ECHO_C" >&6
1349 # Check whether --enable-maintainer-mode or --disable-maintainer-mode was given.
1350 if test "${enable_maintainer_mode+set}" = set; then
1351 enableval="$enable_maintainer_mode"
1352 USE_MAINTAINER_MODE=$enableval
1354 USE_MAINTAINER_MODE=no
1356 echo "$as_me:$LINENO: result: $USE_MAINTAINER_MODE" >&5
1357 echo "${ECHO_T}$USE_MAINTAINER_MODE" >&6
1360 if test $USE_MAINTAINER_MODE = yes; then
1361 MAINTAINER_MODE_TRUE=
1362 MAINTAINER_MODE_FALSE='#'
1364 MAINTAINER_MODE_TRUE='#'
1365 MAINTAINER_MODE_FALSE=
1368 MAINT=$MAINTAINER_MODE_TRUE
1373 ac_cpp='$CPP $CPPFLAGS'
1374 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
1375 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
1376 ac_compiler_gnu=$ac_cv_c_compiler_gnu
1377 if test -n "$ac_tool_prefix"; then
1378 # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args.
1379 set dummy ${ac_tool_prefix}gcc; ac_word=$2
1380 echo "$as_me:$LINENO: checking for $ac_word" >&5
1381 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1382 if test "${ac_cv_prog_CC+set}" = set; then
1383 echo $ECHO_N "(cached) $ECHO_C" >&6
1385 if test -n "$CC"; then
1386 ac_cv_prog_CC="$CC" # Let the user override the test.
1388 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1392 test -z "$as_dir" && as_dir=.
1393 for ac_exec_ext in '' $ac_executable_extensions; do
1394 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1395 ac_cv_prog_CC="${ac_tool_prefix}gcc"
1396 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
1405 if test -n "$CC"; then
1406 echo "$as_me:$LINENO: result: $CC" >&5
1407 echo "${ECHO_T}$CC" >&6
1409 echo "$as_me:$LINENO: result: no" >&5
1410 echo "${ECHO_T}no" >&6
1414 if test -z "$ac_cv_prog_CC"; then
1416 # Extract the first word of "gcc", so it can be a program name with args.
1417 set dummy gcc; ac_word=$2
1418 echo "$as_me:$LINENO: checking for $ac_word" >&5
1419 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1420 if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
1421 echo $ECHO_N "(cached) $ECHO_C" >&6
1423 if test -n "$ac_ct_CC"; then
1424 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
1426 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1430 test -z "$as_dir" && as_dir=.
1431 for ac_exec_ext in '' $ac_executable_extensions; do
1432 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1433 ac_cv_prog_ac_ct_CC="gcc"
1434 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
1442 ac_ct_CC=$ac_cv_prog_ac_ct_CC
1443 if test -n "$ac_ct_CC"; then
1444 echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
1445 echo "${ECHO_T}$ac_ct_CC" >&6
1447 echo "$as_me:$LINENO: result: no" >&5
1448 echo "${ECHO_T}no" >&6
1456 if test -z "$CC"; then
1457 if test -n "$ac_tool_prefix"; then
1458 # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args.
1459 set dummy ${ac_tool_prefix}cc; ac_word=$2
1460 echo "$as_me:$LINENO: checking for $ac_word" >&5
1461 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1462 if test "${ac_cv_prog_CC+set}" = set; then
1463 echo $ECHO_N "(cached) $ECHO_C" >&6
1465 if test -n "$CC"; then
1466 ac_cv_prog_CC="$CC" # Let the user override the test.
1468 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1472 test -z "$as_dir" && as_dir=.
1473 for ac_exec_ext in '' $ac_executable_extensions; do
1474 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1475 ac_cv_prog_CC="${ac_tool_prefix}cc"
1476 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
1485 if test -n "$CC"; then
1486 echo "$as_me:$LINENO: result: $CC" >&5
1487 echo "${ECHO_T}$CC" >&6
1489 echo "$as_me:$LINENO: result: no" >&5
1490 echo "${ECHO_T}no" >&6
1494 if test -z "$ac_cv_prog_CC"; then
1496 # Extract the first word of "cc", so it can be a program name with args.
1497 set dummy cc; ac_word=$2
1498 echo "$as_me:$LINENO: checking for $ac_word" >&5
1499 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1500 if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
1501 echo $ECHO_N "(cached) $ECHO_C" >&6
1503 if test -n "$ac_ct_CC"; then
1504 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
1506 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1510 test -z "$as_dir" && as_dir=.
1511 for ac_exec_ext in '' $ac_executable_extensions; do
1512 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1513 ac_cv_prog_ac_ct_CC="cc"
1514 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
1522 ac_ct_CC=$ac_cv_prog_ac_ct_CC
1523 if test -n "$ac_ct_CC"; then
1524 echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
1525 echo "${ECHO_T}$ac_ct_CC" >&6
1527 echo "$as_me:$LINENO: result: no" >&5
1528 echo "${ECHO_T}no" >&6
1537 if test -z "$CC"; then
1538 # Extract the first word of "cc", so it can be a program name with args.
1539 set dummy cc; ac_word=$2
1540 echo "$as_me:$LINENO: checking for $ac_word" >&5
1541 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1542 if test "${ac_cv_prog_CC+set}" = set; then
1543 echo $ECHO_N "(cached) $ECHO_C" >&6
1545 if test -n "$CC"; then
1546 ac_cv_prog_CC="$CC" # Let the user override the test.
1549 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1553 test -z "$as_dir" && as_dir=.
1554 for ac_exec_ext in '' $ac_executable_extensions; do
1555 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1556 if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then
1557 ac_prog_rejected=yes
1561 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
1567 if test $ac_prog_rejected = yes; then
1568 # We found a bogon in the path, so make sure we never use it.
1569 set dummy $ac_cv_prog_CC
1571 if test $# != 0; then
1572 # We chose a different compiler from the bogus one.
1573 # However, it has the same basename, so the bogon will be chosen
1574 # first if we set CC to just the basename; use the full file name.
1576 ac_cv_prog_CC="$as_dir/$ac_word${1+' '}$@"
1582 if test -n "$CC"; then
1583 echo "$as_me:$LINENO: result: $CC" >&5
1584 echo "${ECHO_T}$CC" >&6
1586 echo "$as_me:$LINENO: result: no" >&5
1587 echo "${ECHO_T}no" >&6
1591 if test -z "$CC"; then
1592 if test -n "$ac_tool_prefix"; then
1595 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
1596 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
1597 echo "$as_me:$LINENO: checking for $ac_word" >&5
1598 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1599 if test "${ac_cv_prog_CC+set}" = set; then
1600 echo $ECHO_N "(cached) $ECHO_C" >&6
1602 if test -n "$CC"; then
1603 ac_cv_prog_CC="$CC" # Let the user override the test.
1605 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1609 test -z "$as_dir" && as_dir=.
1610 for ac_exec_ext in '' $ac_executable_extensions; do
1611 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1612 ac_cv_prog_CC="$ac_tool_prefix$ac_prog"
1613 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
1622 if test -n "$CC"; then
1623 echo "$as_me:$LINENO: result: $CC" >&5
1624 echo "${ECHO_T}$CC" >&6
1626 echo "$as_me:$LINENO: result: no" >&5
1627 echo "${ECHO_T}no" >&6
1630 test -n "$CC" && break
1633 if test -z "$CC"; then
1637 # Extract the first word of "$ac_prog", so it can be a program name with args.
1638 set dummy $ac_prog; ac_word=$2
1639 echo "$as_me:$LINENO: checking for $ac_word" >&5
1640 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1641 if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
1642 echo $ECHO_N "(cached) $ECHO_C" >&6
1644 if test -n "$ac_ct_CC"; then
1645 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
1647 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1651 test -z "$as_dir" && as_dir=.
1652 for ac_exec_ext in '' $ac_executable_extensions; do
1653 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1654 ac_cv_prog_ac_ct_CC="$ac_prog"
1655 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
1663 ac_ct_CC=$ac_cv_prog_ac_ct_CC
1664 if test -n "$ac_ct_CC"; then
1665 echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
1666 echo "${ECHO_T}$ac_ct_CC" >&6
1668 echo "$as_me:$LINENO: result: no" >&5
1669 echo "${ECHO_T}no" >&6
1672 test -n "$ac_ct_CC" && break
1681 test -z "$CC" && { { echo "$as_me:$LINENO: error: no acceptable C compiler found in \$PATH
1682 See \`config.log' for more details." >&5
1683 echo "$as_me: error: no acceptable C compiler found in \$PATH
1684 See \`config.log' for more details." >&2;}
1685 { (exit 1); exit 1; }; }
1687 # Provide some information about the compiler.
1688 echo "$as_me:$LINENO:" \
1689 "checking for C compiler version" >&5
1690 ac_compiler=`set X $ac_compile; echo $2`
1691 { (eval echo "$as_me:$LINENO: \"$ac_compiler --version </dev/null >&5\"") >&5
1692 (eval $ac_compiler --version </dev/null >&5) 2>&5
1694 echo "$as_me:$LINENO: \$? = $ac_status" >&5
1695 (exit $ac_status); }
1696 { (eval echo "$as_me:$LINENO: \"$ac_compiler -v </dev/null >&5\"") >&5
1697 (eval $ac_compiler -v </dev/null >&5) 2>&5
1699 echo "$as_me:$LINENO: \$? = $ac_status" >&5
1700 (exit $ac_status); }
1701 { (eval echo "$as_me:$LINENO: \"$ac_compiler -V </dev/null >&5\"") >&5
1702 (eval $ac_compiler -V </dev/null >&5) 2>&5
1704 echo "$as_me:$LINENO: \$? = $ac_status" >&5
1705 (exit $ac_status); }
1707 cat >conftest.$ac_ext <<_ACEOF
1710 cat confdefs.h >>conftest.$ac_ext
1711 cat >>conftest.$ac_ext <<_ACEOF
1712 /* end confdefs.h. */
1722 ac_clean_files_save=$ac_clean_files
1723 ac_clean_files="$ac_clean_files a.out a.exe b.out"
1724 # Try to create an executable without -o first, disregard a.out.
1725 # It will help us diagnose broken compilers, and finding out an intuition
1727 echo "$as_me:$LINENO: checking for C compiler default output file name" >&5
1728 echo $ECHO_N "checking for C compiler default output file name... $ECHO_C" >&6
1729 ac_link_default=`echo "$ac_link" | sed 's/ -o *conftest[^ ]*//'`
1730 if { (eval echo "$as_me:$LINENO: \"$ac_link_default\"") >&5
1731 (eval $ac_link_default) 2>&5
1733 echo "$as_me:$LINENO: \$? = $ac_status" >&5
1734 (exit $ac_status); }; then
1735 # Find the output, starting from the most likely. This scheme is
1736 # not robust to junk in `.', hence go to wildcards (a.*) only as a last
1739 # Be careful to initialize this variable, since it used to be cached.
1740 # Otherwise an old cache value of `no' led to `EXEEXT = no' in a Makefile.
1742 # b.out is created by i960 compilers.
1743 for ac_file in a_out.exe a.exe conftest.exe a.out conftest a.* conftest.* b.out
1745 test -f "$ac_file" || continue
1747 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.o | *.obj )
1750 # This is the source file.
1753 # We found the default executable, but exeext='' is most
1757 ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
1758 # FIXME: I believe we export ac_cv_exeext for Libtool,
1759 # but it would be cool to find out if it's true. Does anybody
1760 # maintain Libtool? --akim.
1768 echo "$as_me: failed program was:" >&5
1769 sed 's/^/| /' conftest.$ac_ext >&5
1771 { { echo "$as_me:$LINENO: error: C compiler cannot create executables
1772 See \`config.log' for more details." >&5
1773 echo "$as_me: error: C compiler cannot create executables
1774 See \`config.log' for more details." >&2;}
1775 { (exit 77); exit 77; }; }
1778 ac_exeext=$ac_cv_exeext
1779 echo "$as_me:$LINENO: result: $ac_file" >&5
1780 echo "${ECHO_T}$ac_file" >&6
1782 # Check the compiler produces executables we can run. If not, either
1783 # the compiler is broken, or we cross compile.
1784 echo "$as_me:$LINENO: checking whether the C compiler works" >&5
1785 echo $ECHO_N "checking whether the C compiler works... $ECHO_C" >&6
1786 # FIXME: These cross compiler hacks should be removed for Autoconf 3.0
1787 # If not cross compiling, check that we can run a simple program.
1788 if test "$cross_compiling" != yes; then
1789 if { ac_try='./$ac_file'
1790 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
1793 echo "$as_me:$LINENO: \$? = $ac_status" >&5
1794 (exit $ac_status); }; }; then
1797 if test "$cross_compiling" = maybe; then
1800 { { echo "$as_me:$LINENO: error: cannot run C compiled programs.
1801 If you meant to cross compile, use \`--host'.
1802 See \`config.log' for more details." >&5
1803 echo "$as_me: error: cannot run C compiled programs.
1804 If you meant to cross compile, use \`--host'.
1805 See \`config.log' for more details." >&2;}
1806 { (exit 1); exit 1; }; }
1810 echo "$as_me:$LINENO: result: yes" >&5
1811 echo "${ECHO_T}yes" >&6
1813 rm -f a.out a.exe conftest$ac_cv_exeext b.out
1814 ac_clean_files=$ac_clean_files_save
1815 # Check the compiler produces executables we can run. If not, either
1816 # the compiler is broken, or we cross compile.
1817 echo "$as_me:$LINENO: checking whether we are cross compiling" >&5
1818 echo $ECHO_N "checking whether we are cross compiling... $ECHO_C" >&6
1819 echo "$as_me:$LINENO: result: $cross_compiling" >&5
1820 echo "${ECHO_T}$cross_compiling" >&6
1822 echo "$as_me:$LINENO: checking for suffix of executables" >&5
1823 echo $ECHO_N "checking for suffix of executables... $ECHO_C" >&6
1824 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
1825 (eval $ac_link) 2>&5
1827 echo "$as_me:$LINENO: \$? = $ac_status" >&5
1828 (exit $ac_status); }; then
1829 # If both `conftest.exe' and `conftest' are `present' (well, observable)
1830 # catch `conftest.exe'. For instance with Cygwin, `ls conftest' will
1831 # work properly (i.e., refer to `conftest.exe'), while it won't with
1833 for ac_file in conftest.exe conftest conftest.*; do
1834 test -f "$ac_file" || continue
1836 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.o | *.obj ) ;;
1837 *.* ) ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
1844 { { echo "$as_me:$LINENO: error: cannot compute suffix of executables: cannot compile and link
1845 See \`config.log' for more details." >&5
1846 echo "$as_me: error: cannot compute suffix of executables: cannot compile and link
1847 See \`config.log' for more details." >&2;}
1848 { (exit 1); exit 1; }; }
1851 rm -f conftest$ac_cv_exeext
1852 echo "$as_me:$LINENO: result: $ac_cv_exeext" >&5
1853 echo "${ECHO_T}$ac_cv_exeext" >&6
1855 rm -f conftest.$ac_ext
1856 EXEEXT=$ac_cv_exeext
1858 echo "$as_me:$LINENO: checking for suffix of object files" >&5
1859 echo $ECHO_N "checking for suffix of object files... $ECHO_C" >&6
1860 if test "${ac_cv_objext+set}" = set; then
1861 echo $ECHO_N "(cached) $ECHO_C" >&6
1863 cat >conftest.$ac_ext <<_ACEOF
1866 cat confdefs.h >>conftest.$ac_ext
1867 cat >>conftest.$ac_ext <<_ACEOF
1868 /* end confdefs.h. */
1878 rm -f conftest.o conftest.obj
1879 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
1880 (eval $ac_compile) 2>&5
1882 echo "$as_me:$LINENO: \$? = $ac_status" >&5
1883 (exit $ac_status); }; then
1884 for ac_file in `(ls conftest.o conftest.obj; ls conftest.*) 2>/dev/null`; do
1886 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg ) ;;
1887 *) ac_cv_objext=`expr "$ac_file" : '.*\.\(.*\)'`
1892 echo "$as_me: failed program was:" >&5
1893 sed 's/^/| /' conftest.$ac_ext >&5
1895 { { echo "$as_me:$LINENO: error: cannot compute suffix of object files: cannot compile
1896 See \`config.log' for more details." >&5
1897 echo "$as_me: error: cannot compute suffix of object files: cannot compile
1898 See \`config.log' for more details." >&2;}
1899 { (exit 1); exit 1; }; }
1902 rm -f conftest.$ac_cv_objext conftest.$ac_ext
1904 echo "$as_me:$LINENO: result: $ac_cv_objext" >&5
1905 echo "${ECHO_T}$ac_cv_objext" >&6
1906 OBJEXT=$ac_cv_objext
1908 echo "$as_me:$LINENO: checking whether we are using the GNU C compiler" >&5
1909 echo $ECHO_N "checking whether we are using the GNU C compiler... $ECHO_C" >&6
1910 if test "${ac_cv_c_compiler_gnu+set}" = set; then
1911 echo $ECHO_N "(cached) $ECHO_C" >&6
1913 cat >conftest.$ac_ext <<_ACEOF
1916 cat confdefs.h >>conftest.$ac_ext
1917 cat >>conftest.$ac_ext <<_ACEOF
1918 /* end confdefs.h. */
1931 rm -f conftest.$ac_objext
1932 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
1933 (eval $ac_compile) 2>conftest.er1
1935 grep -v '^ *+' conftest.er1 >conftest.err
1937 cat conftest.err >&5
1938 echo "$as_me:$LINENO: \$? = $ac_status" >&5
1939 (exit $ac_status); } &&
1940 { ac_try='test -z "$ac_c_werror_flag"
1941 || test ! -s conftest.err'
1942 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
1945 echo "$as_me:$LINENO: \$? = $ac_status" >&5
1946 (exit $ac_status); }; } &&
1947 { ac_try='test -s conftest.$ac_objext'
1948 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
1951 echo "$as_me:$LINENO: \$? = $ac_status" >&5
1952 (exit $ac_status); }; }; then
1955 echo "$as_me: failed program was:" >&5
1956 sed 's/^/| /' conftest.$ac_ext >&5
1960 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
1961 ac_cv_c_compiler_gnu=$ac_compiler_gnu
1964 echo "$as_me:$LINENO: result: $ac_cv_c_compiler_gnu" >&5
1965 echo "${ECHO_T}$ac_cv_c_compiler_gnu" >&6
1966 GCC=`test $ac_compiler_gnu = yes && echo yes`
1967 ac_test_CFLAGS=${CFLAGS+set}
1968 ac_save_CFLAGS=$CFLAGS
1970 echo "$as_me:$LINENO: checking whether $CC accepts -g" >&5
1971 echo $ECHO_N "checking whether $CC accepts -g... $ECHO_C" >&6
1972 if test "${ac_cv_prog_cc_g+set}" = set; then
1973 echo $ECHO_N "(cached) $ECHO_C" >&6
1975 cat >conftest.$ac_ext <<_ACEOF
1978 cat confdefs.h >>conftest.$ac_ext
1979 cat >>conftest.$ac_ext <<_ACEOF
1980 /* end confdefs.h. */
1990 rm -f conftest.$ac_objext
1991 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
1992 (eval $ac_compile) 2>conftest.er1
1994 grep -v '^ *+' conftest.er1 >conftest.err
1996 cat conftest.err >&5
1997 echo "$as_me:$LINENO: \$? = $ac_status" >&5
1998 (exit $ac_status); } &&
1999 { ac_try='test -z "$ac_c_werror_flag"
2000 || test ! -s conftest.err'
2001 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2004 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2005 (exit $ac_status); }; } &&
2006 { ac_try='test -s conftest.$ac_objext'
2007 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2010 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2011 (exit $ac_status); }; }; then
2014 echo "$as_me: failed program was:" >&5
2015 sed 's/^/| /' conftest.$ac_ext >&5
2019 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
2021 echo "$as_me:$LINENO: result: $ac_cv_prog_cc_g" >&5
2022 echo "${ECHO_T}$ac_cv_prog_cc_g" >&6
2023 if test "$ac_test_CFLAGS" = set; then
2024 CFLAGS=$ac_save_CFLAGS
2025 elif test $ac_cv_prog_cc_g = yes; then
2026 if test "$GCC" = yes; then
2032 if test "$GCC" = yes; then
2038 echo "$as_me:$LINENO: checking for $CC option to accept ANSI C" >&5
2039 echo $ECHO_N "checking for $CC option to accept ANSI C... $ECHO_C" >&6
2040 if test "${ac_cv_prog_cc_stdc+set}" = set; then
2041 echo $ECHO_N "(cached) $ECHO_C" >&6
2043 ac_cv_prog_cc_stdc=no
2045 cat >conftest.$ac_ext <<_ACEOF
2048 cat confdefs.h >>conftest.$ac_ext
2049 cat >>conftest.$ac_ext <<_ACEOF
2050 /* end confdefs.h. */
2053 #include <sys/types.h>
2054 #include <sys/stat.h>
2055 /* Most of the following tests are stolen from RCS 5.7's src/conf.sh. */
2056 struct buf { int x; };
2057 FILE * (*rcsopen) (struct buf *, struct stat *, int);
2058 static char *e (p, i)
2064 static char *f (char * (*g) (char **, int), char **p, ...)
2069 s = g (p, va_arg (v,int));
2074 /* OSF 4.0 Compaq cc is some sort of almost-ANSI by default. It has
2075 function prototypes and stuff, but not '\xHH' hex character constants.
2076 These don't provoke an error unfortunately, instead are silently treated
2077 as 'x'. The following induces an error, until -std1 is added to get
2078 proper ANSI mode. Curiously '\x00'!='x' always comes out true, for an
2079 array size at least. It's necessary to write '\x00'==0 to get something
2080 that's true only with -std1. */
2081 int osf4_cc_array ['\x00' == 0 ? 1 : -1];
2083 int test (int i, double x);
2084 struct s1 {int (*f) (int a);};
2085 struct s2 {int (*f) (double a);};
2086 int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
2092 return f (e, argv, 0) != argv[0] || f (e, argv, 1) != argv[1];
2097 # Don't try gcc -ansi; that turns off useful extensions and
2098 # breaks some systems' header files.
2099 # AIX -qlanglvl=ansi
2100 # Ultrix and OSF/1 -std1
2101 # HP-UX 10.20 and later -Ae
2102 # HP-UX older versions -Aa -D_HPUX_SOURCE
2103 # SVR4 -Xc -D__EXTENSIONS__
2104 for ac_arg in "" -qlanglvl=ansi -std1 -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
2106 CC="$ac_save_CC $ac_arg"
2107 rm -f conftest.$ac_objext
2108 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2109 (eval $ac_compile) 2>conftest.er1
2111 grep -v '^ *+' conftest.er1 >conftest.err
2113 cat conftest.err >&5
2114 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2115 (exit $ac_status); } &&
2116 { ac_try='test -z "$ac_c_werror_flag"
2117 || test ! -s conftest.err'
2118 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2121 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2122 (exit $ac_status); }; } &&
2123 { ac_try='test -s conftest.$ac_objext'
2124 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2127 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2128 (exit $ac_status); }; }; then
2129 ac_cv_prog_cc_stdc=$ac_arg
2132 echo "$as_me: failed program was:" >&5
2133 sed 's/^/| /' conftest.$ac_ext >&5
2136 rm -f conftest.err conftest.$ac_objext
2138 rm -f conftest.$ac_ext conftest.$ac_objext
2143 case "x$ac_cv_prog_cc_stdc" in
2145 echo "$as_me:$LINENO: result: none needed" >&5
2146 echo "${ECHO_T}none needed" >&6 ;;
2148 echo "$as_me:$LINENO: result: $ac_cv_prog_cc_stdc" >&5
2149 echo "${ECHO_T}$ac_cv_prog_cc_stdc" >&6
2150 CC="$CC $ac_cv_prog_cc_stdc" ;;
2153 # Some people use a C++ compiler to compile C. Since we use `exit',
2154 # in C++ we need to declare it. In case someone uses the same compiler
2155 # for both compiling C and C++ we need to have the C++ compiler decide
2156 # the declaration of exit, since it's the most demanding environment.
2157 cat >conftest.$ac_ext <<_ACEOF
2162 rm -f conftest.$ac_objext
2163 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2164 (eval $ac_compile) 2>conftest.er1
2166 grep -v '^ *+' conftest.er1 >conftest.err
2168 cat conftest.err >&5
2169 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2170 (exit $ac_status); } &&
2171 { ac_try='test -z "$ac_c_werror_flag"
2172 || test ! -s conftest.err'
2173 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2176 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2177 (exit $ac_status); }; } &&
2178 { ac_try='test -s conftest.$ac_objext'
2179 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2182 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2183 (exit $ac_status); }; }; then
2184 for ac_declaration in \
2186 'extern "C" void std::exit (int) throw (); using std::exit;' \
2187 'extern "C" void std::exit (int); using std::exit;' \
2188 'extern "C" void exit (int) throw ();' \
2189 'extern "C" void exit (int);' \
2192 cat >conftest.$ac_ext <<_ACEOF
2195 cat confdefs.h >>conftest.$ac_ext
2196 cat >>conftest.$ac_ext <<_ACEOF
2197 /* end confdefs.h. */
2208 rm -f conftest.$ac_objext
2209 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2210 (eval $ac_compile) 2>conftest.er1
2212 grep -v '^ *+' conftest.er1 >conftest.err
2214 cat conftest.err >&5
2215 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2216 (exit $ac_status); } &&
2217 { ac_try='test -z "$ac_c_werror_flag"
2218 || test ! -s conftest.err'
2219 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2222 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2223 (exit $ac_status); }; } &&
2224 { ac_try='test -s conftest.$ac_objext'
2225 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2228 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2229 (exit $ac_status); }; }; then
2232 echo "$as_me: failed program was:" >&5
2233 sed 's/^/| /' conftest.$ac_ext >&5
2237 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
2238 cat >conftest.$ac_ext <<_ACEOF
2241 cat confdefs.h >>conftest.$ac_ext
2242 cat >>conftest.$ac_ext <<_ACEOF
2243 /* end confdefs.h. */
2253 rm -f conftest.$ac_objext
2254 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2255 (eval $ac_compile) 2>conftest.er1
2257 grep -v '^ *+' conftest.er1 >conftest.err
2259 cat conftest.err >&5
2260 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2261 (exit $ac_status); } &&
2262 { ac_try='test -z "$ac_c_werror_flag"
2263 || test ! -s conftest.err'
2264 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2267 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2268 (exit $ac_status); }; } &&
2269 { ac_try='test -s conftest.$ac_objext'
2270 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2273 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2274 (exit $ac_status); }; }; then
2277 echo "$as_me: failed program was:" >&5
2278 sed 's/^/| /' conftest.$ac_ext >&5
2281 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
2284 if test -n "$ac_declaration"; then
2285 echo '#ifdef __cplusplus' >>confdefs.h
2286 echo $ac_declaration >>confdefs.h
2287 echo '#endif' >>confdefs.h
2291 echo "$as_me: failed program was:" >&5
2292 sed 's/^/| /' conftest.$ac_ext >&5
2295 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
2297 ac_cpp='$CPP $CPPFLAGS'
2298 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2299 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2300 ac_compiler_gnu=$ac_cv_c_compiler_gnu
2303 cat >>confdefs.h <<\_ACEOF
2304 #define _GNU_SOURCE 1
2310 ac_cpp='$CPP $CPPFLAGS'
2311 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2312 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2313 ac_compiler_gnu=$ac_cv_c_compiler_gnu
2314 echo "$as_me:$LINENO: checking how to run the C preprocessor" >&5
2315 echo $ECHO_N "checking how to run the C preprocessor... $ECHO_C" >&6
2316 # On Suns, sometimes $CPP names a directory.
2317 if test -n "$CPP" && test -d "$CPP"; then
2320 if test -z "$CPP"; then
2321 if test "${ac_cv_prog_CPP+set}" = set; then
2322 echo $ECHO_N "(cached) $ECHO_C" >&6
2324 # Double quotes because CPP needs to be expanded
2325 for CPP in "$CC -E" "$CC -E -traditional-cpp" "/lib/cpp"
2328 for ac_c_preproc_warn_flag in '' yes
2330 # Use a header file that comes with gcc, so configuring glibc
2331 # with a fresh cross-compiler works.
2332 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
2333 # <limits.h> exists even on freestanding compilers.
2334 # On the NeXT, cc -E runs the code through the compiler's parser,
2335 # not just through cpp. "Syntax error" is here to catch this case.
2336 cat >conftest.$ac_ext <<_ACEOF
2339 cat confdefs.h >>conftest.$ac_ext
2340 cat >>conftest.$ac_ext <<_ACEOF
2341 /* end confdefs.h. */
2343 # include <limits.h>
2345 # include <assert.h>
2349 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
2350 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
2352 grep -v '^ *+' conftest.er1 >conftest.err
2354 cat conftest.err >&5
2355 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2356 (exit $ac_status); } >/dev/null; then
2357 if test -s conftest.err; then
2358 ac_cpp_err=$ac_c_preproc_warn_flag
2359 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
2366 if test -z "$ac_cpp_err"; then
2369 echo "$as_me: failed program was:" >&5
2370 sed 's/^/| /' conftest.$ac_ext >&5
2372 # Broken: fails on valid input.
2375 rm -f conftest.err conftest.$ac_ext
2377 # OK, works on sane cases. Now check whether non-existent headers
2378 # can be detected and how.
2379 cat >conftest.$ac_ext <<_ACEOF
2382 cat confdefs.h >>conftest.$ac_ext
2383 cat >>conftest.$ac_ext <<_ACEOF
2384 /* end confdefs.h. */
2385 #include <ac_nonexistent.h>
2387 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
2388 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
2390 grep -v '^ *+' conftest.er1 >conftest.err
2392 cat conftest.err >&5
2393 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2394 (exit $ac_status); } >/dev/null; then
2395 if test -s conftest.err; then
2396 ac_cpp_err=$ac_c_preproc_warn_flag
2397 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
2404 if test -z "$ac_cpp_err"; then
2405 # Broken: success on invalid input.
2408 echo "$as_me: failed program was:" >&5
2409 sed 's/^/| /' conftest.$ac_ext >&5
2411 # Passes both tests.
2415 rm -f conftest.err conftest.$ac_ext
2418 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
2419 rm -f conftest.err conftest.$ac_ext
2420 if $ac_preproc_ok; then
2432 echo "$as_me:$LINENO: result: $CPP" >&5
2433 echo "${ECHO_T}$CPP" >&6
2435 for ac_c_preproc_warn_flag in '' yes
2437 # Use a header file that comes with gcc, so configuring glibc
2438 # with a fresh cross-compiler works.
2439 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
2440 # <limits.h> exists even on freestanding compilers.
2441 # On the NeXT, cc -E runs the code through the compiler's parser,
2442 # not just through cpp. "Syntax error" is here to catch this case.
2443 cat >conftest.$ac_ext <<_ACEOF
2446 cat confdefs.h >>conftest.$ac_ext
2447 cat >>conftest.$ac_ext <<_ACEOF
2448 /* end confdefs.h. */
2450 # include <limits.h>
2452 # include <assert.h>
2456 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
2457 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
2459 grep -v '^ *+' conftest.er1 >conftest.err
2461 cat conftest.err >&5
2462 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2463 (exit $ac_status); } >/dev/null; then
2464 if test -s conftest.err; then
2465 ac_cpp_err=$ac_c_preproc_warn_flag
2466 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
2473 if test -z "$ac_cpp_err"; then
2476 echo "$as_me: failed program was:" >&5
2477 sed 's/^/| /' conftest.$ac_ext >&5
2479 # Broken: fails on valid input.
2482 rm -f conftest.err conftest.$ac_ext
2484 # OK, works on sane cases. Now check whether non-existent headers
2485 # can be detected and how.
2486 cat >conftest.$ac_ext <<_ACEOF
2489 cat confdefs.h >>conftest.$ac_ext
2490 cat >>conftest.$ac_ext <<_ACEOF
2491 /* end confdefs.h. */
2492 #include <ac_nonexistent.h>
2494 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
2495 (eval $ac_cpp conftest.$ac_ext) 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); } >/dev/null; then
2502 if test -s conftest.err; then
2503 ac_cpp_err=$ac_c_preproc_warn_flag
2504 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
2511 if test -z "$ac_cpp_err"; then
2512 # Broken: success on invalid input.
2515 echo "$as_me: failed program was:" >&5
2516 sed 's/^/| /' conftest.$ac_ext >&5
2518 # Passes both tests.
2522 rm -f conftest.err conftest.$ac_ext
2525 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
2526 rm -f conftest.err conftest.$ac_ext
2527 if $ac_preproc_ok; then
2530 { { echo "$as_me:$LINENO: error: C preprocessor \"$CPP\" fails sanity check
2531 See \`config.log' for more details." >&5
2532 echo "$as_me: error: C preprocessor \"$CPP\" fails sanity check
2533 See \`config.log' for more details." >&2;}
2534 { (exit 1); exit 1; }; }
2538 ac_cpp='$CPP $CPPFLAGS'
2539 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2540 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2541 ac_compiler_gnu=$ac_cv_c_compiler_gnu
2544 echo "$as_me:$LINENO: checking for egrep" >&5
2545 echo $ECHO_N "checking for egrep... $ECHO_C" >&6
2546 if test "${ac_cv_prog_egrep+set}" = set; then
2547 echo $ECHO_N "(cached) $ECHO_C" >&6
2549 if echo a | (grep -E '(a|b)') >/dev/null 2>&1
2550 then ac_cv_prog_egrep='grep -E'
2551 else ac_cv_prog_egrep='egrep'
2554 echo "$as_me:$LINENO: result: $ac_cv_prog_egrep" >&5
2555 echo "${ECHO_T}$ac_cv_prog_egrep" >&6
2556 EGREP=$ac_cv_prog_egrep
2560 echo "$as_me:$LINENO: checking for AIX" >&5
2561 echo $ECHO_N "checking for AIX... $ECHO_C" >&6
2562 cat >conftest.$ac_ext <<_ACEOF
2565 cat confdefs.h >>conftest.$ac_ext
2566 cat >>conftest.$ac_ext <<_ACEOF
2567 /* end confdefs.h. */
2573 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
2574 $EGREP "yes" >/dev/null 2>&1; then
2575 echo "$as_me:$LINENO: result: yes" >&5
2576 echo "${ECHO_T}yes" >&6
2577 cat >>confdefs.h <<\_ACEOF
2578 #define _ALL_SOURCE 1
2582 echo "$as_me:$LINENO: result: no" >&5
2583 echo "${ECHO_T}no" >&6
2588 echo "$as_me:$LINENO: checking for library containing strerror" >&5
2589 echo $ECHO_N "checking for library containing strerror... $ECHO_C" >&6
2590 if test "${ac_cv_search_strerror+set}" = set; then
2591 echo $ECHO_N "(cached) $ECHO_C" >&6
2593 ac_func_search_save_LIBS=$LIBS
2594 ac_cv_search_strerror=no
2595 cat >conftest.$ac_ext <<_ACEOF
2598 cat confdefs.h >>conftest.$ac_ext
2599 cat >>conftest.$ac_ext <<_ACEOF
2600 /* end confdefs.h. */
2602 /* Override any gcc2 internal prototype to avoid an error. */
2606 /* We use char because int might match the return type of a gcc2
2607 builtin and then its argument prototype would still apply. */
2617 rm -f conftest.$ac_objext conftest$ac_exeext
2618 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
2619 (eval $ac_link) 2>conftest.er1
2621 grep -v '^ *+' conftest.er1 >conftest.err
2623 cat conftest.err >&5
2624 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2625 (exit $ac_status); } &&
2626 { ac_try='test -z "$ac_c_werror_flag"
2627 || test ! -s conftest.err'
2628 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2631 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2632 (exit $ac_status); }; } &&
2633 { ac_try='test -s conftest$ac_exeext'
2634 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2637 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2638 (exit $ac_status); }; }; then
2639 ac_cv_search_strerror="none required"
2641 echo "$as_me: failed program was:" >&5
2642 sed 's/^/| /' conftest.$ac_ext >&5
2645 rm -f conftest.err conftest.$ac_objext \
2646 conftest$ac_exeext conftest.$ac_ext
2647 if test "$ac_cv_search_strerror" = no; then
2648 for ac_lib in cposix; do
2649 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
2650 cat >conftest.$ac_ext <<_ACEOF
2653 cat confdefs.h >>conftest.$ac_ext
2654 cat >>conftest.$ac_ext <<_ACEOF
2655 /* end confdefs.h. */
2657 /* Override any gcc2 internal prototype to avoid an error. */
2661 /* We use char because int might match the return type of a gcc2
2662 builtin and then its argument prototype would still apply. */
2672 rm -f conftest.$ac_objext conftest$ac_exeext
2673 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
2674 (eval $ac_link) 2>conftest.er1
2676 grep -v '^ *+' conftest.er1 >conftest.err
2678 cat conftest.err >&5
2679 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2680 (exit $ac_status); } &&
2681 { ac_try='test -z "$ac_c_werror_flag"
2682 || test ! -s conftest.err'
2683 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2686 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2687 (exit $ac_status); }; } &&
2688 { ac_try='test -s conftest$ac_exeext'
2689 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2692 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2693 (exit $ac_status); }; }; then
2694 ac_cv_search_strerror="-l$ac_lib"
2697 echo "$as_me: failed program was:" >&5
2698 sed 's/^/| /' conftest.$ac_ext >&5
2701 rm -f conftest.err conftest.$ac_objext \
2702 conftest$ac_exeext conftest.$ac_ext
2705 LIBS=$ac_func_search_save_LIBS
2707 echo "$as_me:$LINENO: result: $ac_cv_search_strerror" >&5
2708 echo "${ECHO_T}$ac_cv_search_strerror" >&6
2709 if test "$ac_cv_search_strerror" != no; then
2710 test "$ac_cv_search_strerror" = "none required" || LIBS="$ac_cv_search_strerror $LIBS"
2717 echo "$as_me:$LINENO: checking for ${CC-cc} option to accept ANSI C" >&5
2718 echo $ECHO_N "checking for ${CC-cc} option to accept ANSI C... $ECHO_C" >&6
2719 if test "${am_cv_prog_cc_stdc+set}" = set; then
2720 echo $ECHO_N "(cached) $ECHO_C" >&6
2722 am_cv_prog_cc_stdc=no
2724 # Don't try gcc -ansi; that turns off useful extensions and
2725 # breaks some systems' header files.
2726 # AIX -qlanglvl=ansi
2727 # Ultrix and OSF/1 -std1
2728 # HP-UX 10.20 and later -Ae
2729 # HP-UX older versions -Aa -D_HPUX_SOURCE
2730 # SVR4 -Xc -D__EXTENSIONS__
2731 for ac_arg in "" -qlanglvl=ansi -std1 -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
2733 CC="$ac_save_CC $ac_arg"
2734 cat >conftest.$ac_ext <<_ACEOF
2737 cat confdefs.h >>conftest.$ac_ext
2738 cat >>conftest.$ac_ext <<_ACEOF
2739 /* end confdefs.h. */
2742 #include <sys/types.h>
2743 #include <sys/stat.h>
2744 /* Most of the following tests are stolen from RCS 5.7's src/conf.sh. */
2745 struct buf { int x; };
2746 FILE * (*rcsopen) (struct buf *, struct stat *, int);
2747 static char *e (p, i)
2753 static char *f (char * (*g) (char **, int), char **p, ...)
2758 s = g (p, va_arg (v,int));
2762 int test (int i, double x);
2763 struct s1 {int (*f) (int a);};
2764 struct s2 {int (*f) (double a);};
2765 int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
2773 return f (e, argv, 0) != argv[0] || f (e, argv, 1) != argv[1];
2779 rm -f conftest.$ac_objext
2780 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2781 (eval $ac_compile) 2>conftest.er1
2783 grep -v '^ *+' conftest.er1 >conftest.err
2785 cat conftest.err >&5
2786 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2787 (exit $ac_status); } &&
2788 { ac_try='test -z "$ac_c_werror_flag"
2789 || test ! -s conftest.err'
2790 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2793 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2794 (exit $ac_status); }; } &&
2795 { ac_try='test -s conftest.$ac_objext'
2796 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2799 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2800 (exit $ac_status); }; }; then
2801 am_cv_prog_cc_stdc="$ac_arg"; break
2803 echo "$as_me: failed program was:" >&5
2804 sed 's/^/| /' conftest.$ac_ext >&5
2807 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
2813 if test -z "$am_cv_prog_cc_stdc"; then
2814 echo "$as_me:$LINENO: result: none needed" >&5
2815 echo "${ECHO_T}none needed" >&6
2817 echo "$as_me:$LINENO: result: $am_cv_prog_cc_stdc" >&5
2818 echo "${ECHO_T}$am_cv_prog_cc_stdc" >&6
2820 case "x$am_cv_prog_cc_stdc" in
2822 *) CC="$CC $am_cv_prog_cc_stdc" ;;
2827 for ac_dir in `cd $srcdir;pwd`/.. $srcdir/`cd $srcdir;pwd`/..; do
2828 if test -f $ac_dir/install-sh; then
2830 ac_install_sh="$ac_aux_dir/install-sh -c"
2832 elif test -f $ac_dir/install.sh; then
2834 ac_install_sh="$ac_aux_dir/install.sh -c"
2836 elif test -f $ac_dir/shtool; then
2838 ac_install_sh="$ac_aux_dir/shtool install -c"
2842 if test -z "$ac_aux_dir"; then
2843 { { echo "$as_me:$LINENO: error: cannot find install-sh or install.sh in \`cd $srcdir;pwd\`/.. $srcdir/\`cd $srcdir;pwd\`/.." >&5
2844 echo "$as_me: error: cannot find install-sh or install.sh in \`cd $srcdir;pwd\`/.. $srcdir/\`cd $srcdir;pwd\`/.." >&2;}
2845 { (exit 1); exit 1; }; }
2847 ac_config_guess="$SHELL $ac_aux_dir/config.guess"
2848 ac_config_sub="$SHELL $ac_aux_dir/config.sub"
2849 ac_configure="$SHELL $ac_aux_dir/configure" # This should be Cygnus configure.
2851 # Make sure we can run config.sub.
2852 $ac_config_sub sun4 >/dev/null 2>&1 ||
2853 { { echo "$as_me:$LINENO: error: cannot run $ac_config_sub" >&5
2854 echo "$as_me: error: cannot run $ac_config_sub" >&2;}
2855 { (exit 1); exit 1; }; }
2857 echo "$as_me:$LINENO: checking build system type" >&5
2858 echo $ECHO_N "checking build system type... $ECHO_C" >&6
2859 if test "${ac_cv_build+set}" = set; then
2860 echo $ECHO_N "(cached) $ECHO_C" >&6
2862 ac_cv_build_alias=$build_alias
2863 test -z "$ac_cv_build_alias" &&
2864 ac_cv_build_alias=`$ac_config_guess`
2865 test -z "$ac_cv_build_alias" &&
2866 { { echo "$as_me:$LINENO: error: cannot guess build type; you must specify one" >&5
2867 echo "$as_me: error: cannot guess build type; you must specify one" >&2;}
2868 { (exit 1); exit 1; }; }
2869 ac_cv_build=`$ac_config_sub $ac_cv_build_alias` ||
2870 { { echo "$as_me:$LINENO: error: $ac_config_sub $ac_cv_build_alias failed" >&5
2871 echo "$as_me: error: $ac_config_sub $ac_cv_build_alias failed" >&2;}
2872 { (exit 1); exit 1; }; }
2875 echo "$as_me:$LINENO: result: $ac_cv_build" >&5
2876 echo "${ECHO_T}$ac_cv_build" >&6
2878 build_cpu=`echo $ac_cv_build | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\1/'`
2879 build_vendor=`echo $ac_cv_build | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\2/'`
2880 build_os=`echo $ac_cv_build | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\3/'`
2883 echo "$as_me:$LINENO: checking host system type" >&5
2884 echo $ECHO_N "checking host system type... $ECHO_C" >&6
2885 if test "${ac_cv_host+set}" = set; then
2886 echo $ECHO_N "(cached) $ECHO_C" >&6
2888 ac_cv_host_alias=$host_alias
2889 test -z "$ac_cv_host_alias" &&
2890 ac_cv_host_alias=$ac_cv_build_alias
2891 ac_cv_host=`$ac_config_sub $ac_cv_host_alias` ||
2892 { { echo "$as_me:$LINENO: error: $ac_config_sub $ac_cv_host_alias failed" >&5
2893 echo "$as_me: error: $ac_config_sub $ac_cv_host_alias failed" >&2;}
2894 { (exit 1); exit 1; }; }
2897 echo "$as_me:$LINENO: result: $ac_cv_host" >&5
2898 echo "${ECHO_T}$ac_cv_host" >&6
2900 host_cpu=`echo $ac_cv_host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\1/'`
2901 host_vendor=`echo $ac_cv_host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\2/'`
2902 host_os=`echo $ac_cv_host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\3/'`
2905 echo "$as_me:$LINENO: checking target system type" >&5
2906 echo $ECHO_N "checking target system type... $ECHO_C" >&6
2907 if test "${ac_cv_target+set}" = set; then
2908 echo $ECHO_N "(cached) $ECHO_C" >&6
2910 ac_cv_target_alias=$target_alias
2911 test "x$ac_cv_target_alias" = "x" &&
2912 ac_cv_target_alias=$ac_cv_host_alias
2913 ac_cv_target=`$ac_config_sub $ac_cv_target_alias` ||
2914 { { echo "$as_me:$LINENO: error: $ac_config_sub $ac_cv_target_alias failed" >&5
2915 echo "$as_me: error: $ac_config_sub $ac_cv_target_alias failed" >&2;}
2916 { (exit 1); exit 1; }; }
2919 echo "$as_me:$LINENO: result: $ac_cv_target" >&5
2920 echo "${ECHO_T}$ac_cv_target" >&6
2921 target=$ac_cv_target
2922 target_cpu=`echo $ac_cv_target | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\1/'`
2923 target_vendor=`echo $ac_cv_target | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\2/'`
2924 target_os=`echo $ac_cv_target | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\3/'`
2927 # The aliases save the names the user supplied, while $host etc.
2928 # will get canonicalized.
2929 test -n "$target_alias" &&
2930 test "$program_prefix$program_suffix$program_transform_name" = \
2932 program_prefix=${target_alias}-
2945 # If we haven't got the data from the intl directory,
2946 # assume NLS is disabled.
2955 if test -f ../intl/config.intl; then
2956 . ../intl/config.intl
2958 echo "$as_me:$LINENO: checking whether NLS is requested" >&5
2959 echo $ECHO_N "checking whether NLS is requested... $ECHO_C" >&6
2960 if test x"$USE_NLS" != xyes; then
2961 echo "$as_me:$LINENO: result: no" >&5
2962 echo "${ECHO_T}no" >&6
2964 echo "$as_me:$LINENO: result: yes" >&5
2965 echo "${ECHO_T}yes" >&6
2967 cat >>confdefs.h <<\_ACEOF
2968 #define ENABLE_NLS 1
2972 echo "$as_me:$LINENO: checking for catalogs to be installed" >&5
2973 echo $ECHO_N "checking for catalogs to be installed... $ECHO_C" >&6
2974 # Look for .po and .gmo files in the source directory.
2977 for cat in $srcdir/po/*.gmo $srcdir/po/*.po; do
2978 # If there aren't any .gmo files the shell will give us the
2979 # literal string "../path/to/srcdir/po/*.gmo" which has to be
2981 case "$cat" in *\**)
2984 # The quadruple backslash is collapsed to a double backslash
2985 # by the backticks, then collapsed again by the double quotes,
2986 # leaving us with one backslash in the sed expression (right
2987 # before the dot that mustn't act as a wildcard).
2988 cat=`echo $cat | sed -e "s!$srcdir/po/!!" -e "s!\\\\.po!.gmo!"`
2989 lang=`echo $cat | sed -e "s!\\\\.gmo!!"`
2990 # The user is allowed to set LINGUAS to a list of languages to
2991 # install catalogs for. If it's empty that means "all of them."
2992 if test "x$LINGUAS" = x; then
2993 CATALOGS="$CATALOGS $cat"
2994 XLINGUAS="$XLINGUAS $lang"
2996 case "$LINGUAS" in *$lang*)
2997 CATALOGS="$CATALOGS $cat"
2998 XLINGUAS="$XLINGUAS $lang"
3004 echo "$as_me:$LINENO: result: $LINGUAS" >&5
3005 echo "${ECHO_T}$LINGUAS" >&6
3018 localedir='${datadir}/locale'
3021 if test x"$USE_NLS" = xyes; then
3022 CONFIG_ALL="$CONFIG_ALL all-po"
3023 CONFIG_CLEAN="$CONFIG_CLEAN clean-po"
3024 CONFIG_INSTALL="$CONFIG_INSTALL install-po"
3025 CONFIG_UNINSTALL="$CONFIG_UNINSTALL uninstall-po"
3030 cat >>confdefs.h <<_ACEOF
3031 #define PACKAGE "$PACKAGE"
3036 debugdir=${libdir}/debug
3039 # Check whether --with-separate-debug-dir or --without-separate-debug-dir was given.
3040 if test "${with_separate_debug_dir+set}" = set; then
3041 withval="$with_separate_debug_dir"
3042 debugdir="${withval}"
3046 test "x$prefix" = xNONE && prefix="$ac_default_prefix"
3047 test "x$exec_prefix" = xNONE && exec_prefix='${prefix}'
3048 ac_define_dir=`eval echo $debugdir`
3049 ac_define_dir=`eval echo $ac_define_dir`
3051 cat >>confdefs.h <<_ACEOF
3052 #define DEBUGDIR "$ac_define_dir"
3056 #AC_DEFINE_UNQUOTED(DEBUGDIR, "$debugdir"),
3058 if test "x$exec_prefix" = xNONE || test "x$exec_prefix" = 'x${prefix}'; then
3059 if test "x$prefix" = xNONE; then
3060 test_prefix=/usr/local
3065 test_prefix=$exec_prefix
3068 "${test_prefix}"|"${test_prefix}/"*|\
3069 '${exec_prefix}'|'${exec_prefix}/'*)
3071 cat >>confdefs.h <<\_ACEOF
3072 #define DEBUGDIR_RELOCATABLE 1
3080 subdirs="$subdirs doc testsuite"
3083 # Provide defaults for some variables set by the per-host and per-target
3085 gdb_host_obs=posix-hdep.o
3087 if test "${target}" = "${host}"; then
3093 . $srcdir/configure.host
3095 . $srcdir/configure.tgt
3097 # Fetch the default architecture and default target vector from BFD.
3098 targ=$target; . $srcdir/../bfd/config.bfd
3100 # We only want the first architecture, so strip off the others if
3101 # there is more than one.
3102 targ_archs=`echo $targ_archs | sed 's/ .*//'`
3104 if test "x$targ_archs" != x; then
3106 cat >>confdefs.h <<_ACEOF
3107 #define DEFAULT_BFD_ARCH $targ_archs
3111 if test "x$targ_defvec" != x; then
3113 cat >>confdefs.h <<_ACEOF
3114 #define DEFAULT_BFD_VEC $targ_defvec
3119 test "$program_prefix" != NONE &&
3120 program_transform_name="s,^,$program_prefix,;$program_transform_name"
3121 # Use a double $ so make ignores it.
3122 test "$program_suffix" != NONE &&
3123 program_transform_name="s,\$,$program_suffix,;$program_transform_name"
3124 # Double any \ or $. echo might interpret backslashes.
3125 # By default was `s,x,x', remove it if useless.
3126 cat <<\_ACEOF >conftest.sed
3127 s/[\\$]/&&/g;s/;s,x,x,$//
3129 program_transform_name=`echo $program_transform_name | sed -f conftest.sed`
3133 # The CLI cannot be disabled yet, but may be in the future.
3136 # Check whether --enable-gdbcli or --disable-gdbcli was given.
3137 if test "${enable_gdbcli+set}" = set; then
3138 enableval="$enable_gdbcli"
3143 { { echo "$as_me:$LINENO: error: the command-line interface cannot be disabled yet" >&5
3144 echo "$as_me: error: the command-line interface cannot be disabled yet" >&2;}
3145 { (exit 1); exit 1; }; } ;;
3147 { { echo "$as_me:$LINENO: error: bad value $enableval for --enable-gdbcli" >&5
3148 echo "$as_me: error: bad value $enableval for --enable-gdbcli" >&2;}
3149 { (exit 1); exit 1; }; } ;;
3154 if test x"$enable_gdbcli" = xyes; then
3155 if test -d $srcdir/cli; then
3156 CONFIG_OBS="$CONFIG_OBS \$(SUBDIR_CLI_OBS)"
3157 CONFIG_DEPS="$CONFIG_DEPS \$(SUBDIR_CLI_DEPS)"
3158 CONFIG_SRCS="$CONFIG_SRCS \$(SUBDIR_CLI_SRCS)"
3159 ENABLE_CFLAGS="$ENABLE_CFLAGS \$(SUBDIR_CLI_CFLAGS)"
3164 # Check whether --enable-gdbmi or --disable-gdbmi was given.
3165 if test "${enable_gdbmi+set}" = set; then
3166 enableval="$enable_gdbmi"
3171 { { echo "$as_me:$LINENO: error: bad value $enableval for --enable-gdbmi" >&5
3172 echo "$as_me: error: bad value $enableval for --enable-gdbmi" >&2;}
3173 { (exit 1); exit 1; }; } ;;
3178 if test x"$enable_gdbmi" = xyes; then
3179 if test -d $srcdir/mi; then
3180 CONFIG_OBS="$CONFIG_OBS \$(SUBDIR_MI_OBS)"
3181 CONFIG_DEPS="$CONFIG_DEPS \$(SUBDIR_MI_DEPS)"
3182 CONFIG_SRCS="$CONFIG_SRCS \$(SUBDIR_MI_SRCS)"
3183 ENABLE_CFLAGS="$ENABLE_CFLAGS \$(SUBDIR_MI_CFLAGS)"
3188 # Check whether --enable-tui or --disable-tui was given.
3189 if test "${enable_tui+set}" = set; then
3190 enableval="$enable_tui"
3195 { { echo "$as_me:$LINENO: error: bad value $enableval for --enable-tui" >&5
3196 echo "$as_me: error: bad value $enableval for --enable-tui" >&2;}
3197 { (exit 1); exit 1; }; } ;;
3204 # Check whether --enable-gdbtk or --disable-gdbtk was given.
3205 if test "${enable_gdbtk+set}" = set; then
3206 enableval="$enable_gdbtk"
3211 { { echo "$as_me:$LINENO: error: bad value $enableval for --enable-gdbtk" >&5
3212 echo "$as_me: error: bad value $enableval for --enable-gdbtk" >&2;}
3213 { (exit 1); exit 1; }; } ;;
3216 if test -d $srcdir/gdbtk -a -d $srcdir/../itcl; then
3222 # We unconditionally disable gdbtk tests on selected platforms.
3225 { echo "$as_me:$LINENO: WARNING: gdbtk isn't supported on $host; disabling" >&5
3226 echo "$as_me: WARNING: gdbtk isn't supported on $host; disabling" >&2;}
3230 # Libunwind support.
3231 echo "$as_me:$LINENO: checking for ANSI C header files" >&5
3232 echo $ECHO_N "checking for ANSI C header files... $ECHO_C" >&6
3233 if test "${ac_cv_header_stdc+set}" = set; then
3234 echo $ECHO_N "(cached) $ECHO_C" >&6
3236 cat >conftest.$ac_ext <<_ACEOF
3239 cat confdefs.h >>conftest.$ac_ext
3240 cat >>conftest.$ac_ext <<_ACEOF
3241 /* end confdefs.h. */
3255 rm -f conftest.$ac_objext
3256 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
3257 (eval $ac_compile) 2>conftest.er1
3259 grep -v '^ *+' conftest.er1 >conftest.err
3261 cat conftest.err >&5
3262 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3263 (exit $ac_status); } &&
3264 { ac_try='test -z "$ac_c_werror_flag"
3265 || test ! -s conftest.err'
3266 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3269 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3270 (exit $ac_status); }; } &&
3271 { ac_try='test -s conftest.$ac_objext'
3272 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3275 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3276 (exit $ac_status); }; }; then
3277 ac_cv_header_stdc=yes
3279 echo "$as_me: failed program was:" >&5
3280 sed 's/^/| /' conftest.$ac_ext >&5
3282 ac_cv_header_stdc=no
3284 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
3286 if test $ac_cv_header_stdc = yes; then
3287 # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
3288 cat >conftest.$ac_ext <<_ACEOF
3291 cat confdefs.h >>conftest.$ac_ext
3292 cat >>conftest.$ac_ext <<_ACEOF
3293 /* end confdefs.h. */
3297 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
3298 $EGREP "memchr" >/dev/null 2>&1; then
3301 ac_cv_header_stdc=no
3307 if test $ac_cv_header_stdc = yes; then
3308 # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
3309 cat >conftest.$ac_ext <<_ACEOF
3312 cat confdefs.h >>conftest.$ac_ext
3313 cat >>conftest.$ac_ext <<_ACEOF
3314 /* end confdefs.h. */
3318 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
3319 $EGREP "free" >/dev/null 2>&1; then
3322 ac_cv_header_stdc=no
3328 if test $ac_cv_header_stdc = yes; then
3329 # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
3330 if test "$cross_compiling" = yes; then
3333 cat >conftest.$ac_ext <<_ACEOF
3336 cat confdefs.h >>conftest.$ac_ext
3337 cat >>conftest.$ac_ext <<_ACEOF
3338 /* end confdefs.h. */
3340 #if ((' ' & 0x0FF) == 0x020)
3341 # define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
3342 # define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
3344 # define ISLOWER(c) \
3345 (('a' <= (c) && (c) <= 'i') \
3346 || ('j' <= (c) && (c) <= 'r') \
3347 || ('s' <= (c) && (c) <= 'z'))
3348 # define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
3351 #define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
3356 for (i = 0; i < 256; i++)
3357 if (XOR (islower (i), ISLOWER (i))
3358 || toupper (i) != TOUPPER (i))
3363 rm -f conftest$ac_exeext
3364 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
3365 (eval $ac_link) 2>&5
3367 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3368 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
3369 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3372 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3373 (exit $ac_status); }; }; then
3376 echo "$as_me: program exited with status $ac_status" >&5
3377 echo "$as_me: failed program was:" >&5
3378 sed 's/^/| /' conftest.$ac_ext >&5
3381 ac_cv_header_stdc=no
3383 rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
3387 echo "$as_me:$LINENO: result: $ac_cv_header_stdc" >&5
3388 echo "${ECHO_T}$ac_cv_header_stdc" >&6
3389 if test $ac_cv_header_stdc = yes; then
3391 cat >>confdefs.h <<\_ACEOF
3392 #define STDC_HEADERS 1
3397 # On IRIX 5.3, sys/types and inttypes.h are conflicting.
3407 for ac_header in sys/types.h sys/stat.h stdlib.h string.h memory.h strings.h \
3408 inttypes.h stdint.h unistd.h
3410 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
3411 echo "$as_me:$LINENO: checking for $ac_header" >&5
3412 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
3413 if eval "test \"\${$as_ac_Header+set}\" = set"; then
3414 echo $ECHO_N "(cached) $ECHO_C" >&6
3416 cat >conftest.$ac_ext <<_ACEOF
3419 cat confdefs.h >>conftest.$ac_ext
3420 cat >>conftest.$ac_ext <<_ACEOF
3421 /* end confdefs.h. */
3422 $ac_includes_default
3424 #include <$ac_header>
3426 rm -f conftest.$ac_objext
3427 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
3428 (eval $ac_compile) 2>conftest.er1
3430 grep -v '^ *+' conftest.er1 >conftest.err
3432 cat conftest.err >&5
3433 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3434 (exit $ac_status); } &&
3435 { ac_try='test -z "$ac_c_werror_flag"
3436 || test ! -s conftest.err'
3437 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3440 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3441 (exit $ac_status); }; } &&
3442 { ac_try='test -s conftest.$ac_objext'
3443 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3446 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3447 (exit $ac_status); }; }; then
3448 eval "$as_ac_Header=yes"
3450 echo "$as_me: failed program was:" >&5
3451 sed 's/^/| /' conftest.$ac_ext >&5
3453 eval "$as_ac_Header=no"
3455 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
3457 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
3458 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
3459 if test `eval echo '${'$as_ac_Header'}'` = yes; then
3460 cat >>confdefs.h <<_ACEOF
3461 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
3470 # Check whether --with-libunwind or --without-libunwind was given.
3471 if test "${with_libunwind+set}" = set; then
3472 withval="$with_libunwind"
3473 case "${withval}" in
3474 yes) enable_libunwind=yes ;;
3475 no) enable_libunwind=no ;;
3476 *) { { echo "$as_me:$LINENO: error: bad value ${withval} for GDB with-libunwind option" >&5
3477 echo "$as_me: error: bad value ${withval} for GDB with-libunwind option" >&2;}
3478 { (exit 1); exit 1; }; } ;;
3483 for ac_header in libunwind.h
3485 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
3486 if eval "test \"\${$as_ac_Header+set}\" = set"; then
3487 echo "$as_me:$LINENO: checking for $ac_header" >&5
3488 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
3489 if eval "test \"\${$as_ac_Header+set}\" = set"; then
3490 echo $ECHO_N "(cached) $ECHO_C" >&6
3492 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
3493 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
3495 # Is the header compilable?
3496 echo "$as_me:$LINENO: checking $ac_header usability" >&5
3497 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
3498 cat >conftest.$ac_ext <<_ACEOF
3501 cat confdefs.h >>conftest.$ac_ext
3502 cat >>conftest.$ac_ext <<_ACEOF
3503 /* end confdefs.h. */
3504 $ac_includes_default
3505 #include <$ac_header>
3507 rm -f conftest.$ac_objext
3508 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
3509 (eval $ac_compile) 2>conftest.er1
3511 grep -v '^ *+' conftest.er1 >conftest.err
3513 cat conftest.err >&5
3514 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3515 (exit $ac_status); } &&
3516 { ac_try='test -z "$ac_c_werror_flag"
3517 || test ! -s conftest.err'
3518 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3521 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3522 (exit $ac_status); }; } &&
3523 { ac_try='test -s conftest.$ac_objext'
3524 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3527 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3528 (exit $ac_status); }; }; then
3529 ac_header_compiler=yes
3531 echo "$as_me: failed program was:" >&5
3532 sed 's/^/| /' conftest.$ac_ext >&5
3534 ac_header_compiler=no
3536 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
3537 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
3538 echo "${ECHO_T}$ac_header_compiler" >&6
3540 # Is the header present?
3541 echo "$as_me:$LINENO: checking $ac_header presence" >&5
3542 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
3543 cat >conftest.$ac_ext <<_ACEOF
3546 cat confdefs.h >>conftest.$ac_ext
3547 cat >>conftest.$ac_ext <<_ACEOF
3548 /* end confdefs.h. */
3549 #include <$ac_header>
3551 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
3552 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
3554 grep -v '^ *+' conftest.er1 >conftest.err
3556 cat conftest.err >&5
3557 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3558 (exit $ac_status); } >/dev/null; then
3559 if test -s conftest.err; then
3560 ac_cpp_err=$ac_c_preproc_warn_flag
3561 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
3568 if test -z "$ac_cpp_err"; then
3569 ac_header_preproc=yes
3571 echo "$as_me: failed program was:" >&5
3572 sed 's/^/| /' conftest.$ac_ext >&5
3574 ac_header_preproc=no
3576 rm -f conftest.err conftest.$ac_ext
3577 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
3578 echo "${ECHO_T}$ac_header_preproc" >&6
3580 # So? What about this header?
3581 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
3583 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
3584 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
3585 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
3586 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
3587 ac_header_preproc=yes
3590 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
3591 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
3592 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
3593 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
3594 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
3595 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
3596 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
3597 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
3598 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
3599 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
3600 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
3601 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
3604 ## ------------------------------------------ ##
3605 ## Report this to the AC_PACKAGE_NAME lists. ##
3606 ## ------------------------------------------ ##
3609 sed "s/^/$as_me: WARNING: /" >&2
3612 echo "$as_me:$LINENO: checking for $ac_header" >&5
3613 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
3614 if eval "test \"\${$as_ac_Header+set}\" = set"; then
3615 echo $ECHO_N "(cached) $ECHO_C" >&6
3617 eval "$as_ac_Header=\$ac_header_preproc"
3619 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
3620 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
3623 if test `eval echo '${'$as_ac_Header'}'` = yes; then
3624 cat >>confdefs.h <<_ACEOF
3625 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
3633 for ac_header in libunwind-ia64.h
3635 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
3636 if eval "test \"\${$as_ac_Header+set}\" = set"; then
3637 echo "$as_me:$LINENO: checking for $ac_header" >&5
3638 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
3639 if eval "test \"\${$as_ac_Header+set}\" = set"; then
3640 echo $ECHO_N "(cached) $ECHO_C" >&6
3642 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
3643 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
3645 # Is the header compilable?
3646 echo "$as_me:$LINENO: checking $ac_header usability" >&5
3647 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
3648 cat >conftest.$ac_ext <<_ACEOF
3651 cat confdefs.h >>conftest.$ac_ext
3652 cat >>conftest.$ac_ext <<_ACEOF
3653 /* end confdefs.h. */
3654 $ac_includes_default
3655 #include <$ac_header>
3657 rm -f conftest.$ac_objext
3658 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
3659 (eval $ac_compile) 2>conftest.er1
3661 grep -v '^ *+' conftest.er1 >conftest.err
3663 cat conftest.err >&5
3664 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3665 (exit $ac_status); } &&
3666 { ac_try='test -z "$ac_c_werror_flag"
3667 || test ! -s conftest.err'
3668 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3671 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3672 (exit $ac_status); }; } &&
3673 { ac_try='test -s conftest.$ac_objext'
3674 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3677 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3678 (exit $ac_status); }; }; then
3679 ac_header_compiler=yes
3681 echo "$as_me: failed program was:" >&5
3682 sed 's/^/| /' conftest.$ac_ext >&5
3684 ac_header_compiler=no
3686 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
3687 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
3688 echo "${ECHO_T}$ac_header_compiler" >&6
3690 # Is the header present?
3691 echo "$as_me:$LINENO: checking $ac_header presence" >&5
3692 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
3693 cat >conftest.$ac_ext <<_ACEOF
3696 cat confdefs.h >>conftest.$ac_ext
3697 cat >>conftest.$ac_ext <<_ACEOF
3698 /* end confdefs.h. */
3699 #include <$ac_header>
3701 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
3702 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
3704 grep -v '^ *+' conftest.er1 >conftest.err
3706 cat conftest.err >&5
3707 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3708 (exit $ac_status); } >/dev/null; then
3709 if test -s conftest.err; then
3710 ac_cpp_err=$ac_c_preproc_warn_flag
3711 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
3718 if test -z "$ac_cpp_err"; then
3719 ac_header_preproc=yes
3721 echo "$as_me: failed program was:" >&5
3722 sed 's/^/| /' conftest.$ac_ext >&5
3724 ac_header_preproc=no
3726 rm -f conftest.err conftest.$ac_ext
3727 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
3728 echo "${ECHO_T}$ac_header_preproc" >&6
3730 # So? What about this header?
3731 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
3733 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
3734 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
3735 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
3736 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
3737 ac_header_preproc=yes
3740 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
3741 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
3742 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
3743 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
3744 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
3745 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
3746 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
3747 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
3748 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
3749 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
3750 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
3751 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
3754 ## ------------------------------------------ ##
3755 ## Report this to the AC_PACKAGE_NAME lists. ##
3756 ## ------------------------------------------ ##
3759 sed "s/^/$as_me: WARNING: /" >&2
3762 echo "$as_me:$LINENO: checking for $ac_header" >&5
3763 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
3764 if eval "test \"\${$as_ac_Header+set}\" = set"; then
3765 echo $ECHO_N "(cached) $ECHO_C" >&6
3767 eval "$as_ac_Header=\$ac_header_preproc"
3769 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
3770 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
3773 if test `eval echo '${'$as_ac_Header'}'` = yes; then
3774 cat >>confdefs.h <<_ACEOF
3775 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
3782 if test x"$ac_cv_header_libunwind_h" = xyes -a x"$ac_cv_header_libunwind_ia64_h" = xyes; then
3783 enable_libunwind=yes;
3788 if test x"$enable_libunwind" = xyes; then
3790 for ac_header in libunwind.h
3792 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
3793 if eval "test \"\${$as_ac_Header+set}\" = set"; then
3794 echo "$as_me:$LINENO: checking for $ac_header" >&5
3795 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
3796 if eval "test \"\${$as_ac_Header+set}\" = set"; then
3797 echo $ECHO_N "(cached) $ECHO_C" >&6
3799 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
3800 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
3802 # Is the header compilable?
3803 echo "$as_me:$LINENO: checking $ac_header usability" >&5
3804 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
3805 cat >conftest.$ac_ext <<_ACEOF
3808 cat confdefs.h >>conftest.$ac_ext
3809 cat >>conftest.$ac_ext <<_ACEOF
3810 /* end confdefs.h. */
3811 $ac_includes_default
3812 #include <$ac_header>
3814 rm -f conftest.$ac_objext
3815 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
3816 (eval $ac_compile) 2>conftest.er1
3818 grep -v '^ *+' conftest.er1 >conftest.err
3820 cat conftest.err >&5
3821 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3822 (exit $ac_status); } &&
3823 { ac_try='test -z "$ac_c_werror_flag"
3824 || test ! -s conftest.err'
3825 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3828 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3829 (exit $ac_status); }; } &&
3830 { ac_try='test -s conftest.$ac_objext'
3831 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3834 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3835 (exit $ac_status); }; }; then
3836 ac_header_compiler=yes
3838 echo "$as_me: failed program was:" >&5
3839 sed 's/^/| /' conftest.$ac_ext >&5
3841 ac_header_compiler=no
3843 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
3844 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
3845 echo "${ECHO_T}$ac_header_compiler" >&6
3847 # Is the header present?
3848 echo "$as_me:$LINENO: checking $ac_header presence" >&5
3849 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
3850 cat >conftest.$ac_ext <<_ACEOF
3853 cat confdefs.h >>conftest.$ac_ext
3854 cat >>conftest.$ac_ext <<_ACEOF
3855 /* end confdefs.h. */
3856 #include <$ac_header>
3858 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
3859 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
3861 grep -v '^ *+' conftest.er1 >conftest.err
3863 cat conftest.err >&5
3864 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3865 (exit $ac_status); } >/dev/null; then
3866 if test -s conftest.err; then
3867 ac_cpp_err=$ac_c_preproc_warn_flag
3868 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
3875 if test -z "$ac_cpp_err"; then
3876 ac_header_preproc=yes
3878 echo "$as_me: failed program was:" >&5
3879 sed 's/^/| /' conftest.$ac_ext >&5
3881 ac_header_preproc=no
3883 rm -f conftest.err conftest.$ac_ext
3884 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
3885 echo "${ECHO_T}$ac_header_preproc" >&6
3887 # So? What about this header?
3888 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
3890 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
3891 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
3892 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
3893 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
3894 ac_header_preproc=yes
3897 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
3898 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
3899 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
3900 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
3901 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
3902 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
3903 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
3904 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
3905 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
3906 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
3907 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
3908 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
3911 ## ------------------------------------------ ##
3912 ## Report this to the AC_PACKAGE_NAME lists. ##
3913 ## ------------------------------------------ ##
3916 sed "s/^/$as_me: WARNING: /" >&2
3919 echo "$as_me:$LINENO: checking for $ac_header" >&5
3920 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
3921 if eval "test \"\${$as_ac_Header+set}\" = set"; then
3922 echo $ECHO_N "(cached) $ECHO_C" >&6
3924 eval "$as_ac_Header=\$ac_header_preproc"
3926 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
3927 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
3930 if test `eval echo '${'$as_ac_Header'}'` = yes; then
3931 cat >>confdefs.h <<_ACEOF
3932 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
3940 for ac_header in libunwind-ia64.h
3942 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
3943 if eval "test \"\${$as_ac_Header+set}\" = set"; then
3944 echo "$as_me:$LINENO: checking for $ac_header" >&5
3945 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
3946 if eval "test \"\${$as_ac_Header+set}\" = set"; then
3947 echo $ECHO_N "(cached) $ECHO_C" >&6
3949 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
3950 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
3952 # Is the header compilable?
3953 echo "$as_me:$LINENO: checking $ac_header usability" >&5
3954 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
3955 cat >conftest.$ac_ext <<_ACEOF
3958 cat confdefs.h >>conftest.$ac_ext
3959 cat >>conftest.$ac_ext <<_ACEOF
3960 /* end confdefs.h. */
3961 $ac_includes_default
3962 #include <$ac_header>
3964 rm -f conftest.$ac_objext
3965 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
3966 (eval $ac_compile) 2>conftest.er1
3968 grep -v '^ *+' conftest.er1 >conftest.err
3970 cat conftest.err >&5
3971 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3972 (exit $ac_status); } &&
3973 { ac_try='test -z "$ac_c_werror_flag"
3974 || test ! -s conftest.err'
3975 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3978 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3979 (exit $ac_status); }; } &&
3980 { ac_try='test -s conftest.$ac_objext'
3981 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3984 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3985 (exit $ac_status); }; }; then
3986 ac_header_compiler=yes
3988 echo "$as_me: failed program was:" >&5
3989 sed 's/^/| /' conftest.$ac_ext >&5
3991 ac_header_compiler=no
3993 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
3994 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
3995 echo "${ECHO_T}$ac_header_compiler" >&6
3997 # Is the header present?
3998 echo "$as_me:$LINENO: checking $ac_header presence" >&5
3999 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
4000 cat >conftest.$ac_ext <<_ACEOF
4003 cat confdefs.h >>conftest.$ac_ext
4004 cat >>conftest.$ac_ext <<_ACEOF
4005 /* end confdefs.h. */
4006 #include <$ac_header>
4008 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
4009 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
4011 grep -v '^ *+' conftest.er1 >conftest.err
4013 cat conftest.err >&5
4014 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4015 (exit $ac_status); } >/dev/null; then
4016 if test -s conftest.err; then
4017 ac_cpp_err=$ac_c_preproc_warn_flag
4018 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
4025 if test -z "$ac_cpp_err"; then
4026 ac_header_preproc=yes
4028 echo "$as_me: failed program was:" >&5
4029 sed 's/^/| /' conftest.$ac_ext >&5
4031 ac_header_preproc=no
4033 rm -f conftest.err conftest.$ac_ext
4034 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
4035 echo "${ECHO_T}$ac_header_preproc" >&6
4037 # So? What about this header?
4038 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
4040 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
4041 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
4042 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
4043 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
4044 ac_header_preproc=yes
4047 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
4048 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
4049 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
4050 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
4051 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
4052 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
4053 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
4054 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
4055 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
4056 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
4057 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
4058 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
4061 ## ------------------------------------------ ##
4062 ## Report this to the AC_PACKAGE_NAME lists. ##
4063 ## ------------------------------------------ ##
4066 sed "s/^/$as_me: WARNING: /" >&2
4069 echo "$as_me:$LINENO: checking for $ac_header" >&5
4070 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
4071 if eval "test \"\${$as_ac_Header+set}\" = set"; then
4072 echo $ECHO_N "(cached) $ECHO_C" >&6
4074 eval "$as_ac_Header=\$ac_header_preproc"
4076 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
4077 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
4080 if test `eval echo '${'$as_ac_Header'}'` = yes; then
4081 cat >>confdefs.h <<_ACEOF
4082 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
4090 cat >>confdefs.h <<\_ACEOF
4091 #define HAVE_LIBUNWIND 1
4094 CONFIG_OBS="$CONFIG_OBS libunwind-frame.o"
4095 CONFIG_DEPS="$CONFIG_DEPS libunwind-frame.o"
4096 CONFIG_SRCS="$CONFIG_SRCS libunwind-frame.c"
4099 # Profiling support.
4100 # Check whether --enable-profiling or --disable-profiling was given.
4101 if test "${enable_profiling+set}" = set; then
4102 enableval="$enable_profiling"
4107 { { echo "$as_me:$LINENO: error: bad value $enableval for --enable-profile" >&5
4108 echo "$as_me: error: bad value $enableval for --enable-profile" >&2;}
4109 { (exit 1); exit 1; }; } ;;
4117 for ac_func in monstartup _mcleanup
4119 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
4120 echo "$as_me:$LINENO: checking for $ac_func" >&5
4121 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
4122 if eval "test \"\${$as_ac_var+set}\" = set"; then
4123 echo $ECHO_N "(cached) $ECHO_C" >&6
4125 cat >conftest.$ac_ext <<_ACEOF
4128 cat confdefs.h >>conftest.$ac_ext
4129 cat >>conftest.$ac_ext <<_ACEOF
4130 /* end confdefs.h. */
4131 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
4132 For example, HP-UX 11i <limits.h> declares gettimeofday. */
4133 #define $ac_func innocuous_$ac_func
4135 /* System header to define __stub macros and hopefully few prototypes,
4136 which can conflict with char $ac_func (); below.
4137 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
4138 <limits.h> exists even on freestanding compilers. */
4141 # include <limits.h>
4143 # include <assert.h>
4148 /* Override any gcc2 internal prototype to avoid an error. */
4153 /* We use char because int might match the return type of a gcc2
4154 builtin and then its argument prototype would still apply. */
4156 /* The GNU C library defines this for functions which it implements
4157 to always fail with ENOSYS. Some functions are actually named
4158 something starting with __ and the normal name is an alias. */
4159 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
4162 char (*f) () = $ac_func;
4171 return f != $ac_func;
4176 rm -f conftest.$ac_objext conftest$ac_exeext
4177 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
4178 (eval $ac_link) 2>conftest.er1
4180 grep -v '^ *+' conftest.er1 >conftest.err
4182 cat conftest.err >&5
4183 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4184 (exit $ac_status); } &&
4185 { ac_try='test -z "$ac_c_werror_flag"
4186 || test ! -s conftest.err'
4187 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4190 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4191 (exit $ac_status); }; } &&
4192 { ac_try='test -s conftest$ac_exeext'
4193 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4196 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4197 (exit $ac_status); }; }; then
4198 eval "$as_ac_var=yes"
4200 echo "$as_me: failed program was:" >&5
4201 sed 's/^/| /' conftest.$ac_ext >&5
4203 eval "$as_ac_var=no"
4205 rm -f conftest.err conftest.$ac_objext \
4206 conftest$ac_exeext conftest.$ac_ext
4208 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
4209 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
4210 if test `eval echo '${'$as_ac_var'}'` = yes; then
4211 cat >>confdefs.h <<_ACEOF
4212 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
4218 echo "$as_me:$LINENO: checking for _etext" >&5
4219 echo $ECHO_N "checking for _etext... $ECHO_C" >&6
4220 if test "${ac_cv_var__etext+set}" = set; then
4221 echo $ECHO_N "(cached) $ECHO_C" >&6
4223 cat >conftest.$ac_ext <<_ACEOF
4226 cat confdefs.h >>conftest.$ac_ext
4227 cat >>conftest.$ac_ext <<_ACEOF
4228 /* end confdefs.h. */
4240 rm -f conftest.$ac_objext conftest$ac_exeext
4241 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
4242 (eval $ac_link) 2>conftest.er1
4244 grep -v '^ *+' conftest.er1 >conftest.err
4246 cat conftest.err >&5
4247 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4248 (exit $ac_status); } &&
4249 { ac_try='test -z "$ac_c_werror_flag"
4250 || test ! -s conftest.err'
4251 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4254 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4255 (exit $ac_status); }; } &&
4256 { ac_try='test -s conftest$ac_exeext'
4257 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4260 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4261 (exit $ac_status); }; }; then
4262 ac_cv_var__etext=yes
4264 echo "$as_me: failed program was:" >&5
4265 sed 's/^/| /' conftest.$ac_ext >&5
4269 rm -f conftest.err conftest.$ac_objext \
4270 conftest$ac_exeext conftest.$ac_ext
4272 echo "$as_me:$LINENO: result: $ac_cv_var__etext" >&5
4273 echo "${ECHO_T}$ac_cv_var__etext" >&6
4274 if test $ac_cv_var__etext = yes; then
4276 cat >>confdefs.h <<\_ACEOF
4277 #define HAVE__ETEXT 1
4281 echo "$as_me:$LINENO: checking for etext" >&5
4282 echo $ECHO_N "checking for etext... $ECHO_C" >&6
4283 if test "${ac_cv_var_etext+set}" = set; then
4284 echo $ECHO_N "(cached) $ECHO_C" >&6
4286 cat >conftest.$ac_ext <<_ACEOF
4289 cat confdefs.h >>conftest.$ac_ext
4290 cat >>conftest.$ac_ext <<_ACEOF
4291 /* end confdefs.h. */
4303 rm -f conftest.$ac_objext conftest$ac_exeext
4304 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
4305 (eval $ac_link) 2>conftest.er1
4307 grep -v '^ *+' conftest.er1 >conftest.err
4309 cat conftest.err >&5
4310 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4311 (exit $ac_status); } &&
4312 { ac_try='test -z "$ac_c_werror_flag"
4313 || test ! -s conftest.err'
4314 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4317 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4318 (exit $ac_status); }; } &&
4319 { ac_try='test -s conftest$ac_exeext'
4320 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4323 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4324 (exit $ac_status); }; }; then
4327 echo "$as_me: failed program was:" >&5
4328 sed 's/^/| /' conftest.$ac_ext >&5
4332 rm -f conftest.err conftest.$ac_objext \
4333 conftest$ac_exeext conftest.$ac_ext
4335 echo "$as_me:$LINENO: result: $ac_cv_var_etext" >&5
4336 echo "${ECHO_T}$ac_cv_var_etext" >&6
4337 if test $ac_cv_var_etext = yes; then
4339 cat >>confdefs.h <<\_ACEOF
4340 #define HAVE_ETEXT 1
4344 if test "$enable_profiling" = yes ; then
4345 if test $ac_cv_func_monstartup = no || test $ac_cv_func__mcleanup = no; then
4346 { { echo "$as_me:$LINENO: error: --enable-profiling requires monstartup and _mcleanup" >&5
4347 echo "$as_me: error: --enable-profiling requires monstartup and _mcleanup" >&2;}
4348 { (exit 1); exit 1; }; }
4351 OLD_CFLAGS="$CFLAGS"
4352 CFLAGS="$CFLAGS $PROFILE_CFLAGS"
4354 echo "$as_me:$LINENO: checking whether $CC supports -pg" >&5
4355 echo $ECHO_N "checking whether $CC supports -pg... $ECHO_C" >&6
4356 if test "${ac_cv_cc_supports_pg+set}" = set; then
4357 echo $ECHO_N "(cached) $ECHO_C" >&6
4359 cat >conftest.$ac_ext <<_ACEOF
4362 cat confdefs.h >>conftest.$ac_ext
4363 cat >>conftest.$ac_ext <<_ACEOF
4364 /* end confdefs.h. */
4374 rm -f conftest.$ac_objext
4375 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
4376 (eval $ac_compile) 2>conftest.er1
4378 grep -v '^ *+' conftest.er1 >conftest.err
4380 cat conftest.err >&5
4381 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4382 (exit $ac_status); } &&
4383 { ac_try='test -z "$ac_c_werror_flag"
4384 || test ! -s conftest.err'
4385 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4388 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4389 (exit $ac_status); }; } &&
4390 { ac_try='test -s conftest.$ac_objext'
4391 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4394 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4395 (exit $ac_status); }; }; then
4396 ac_cv_cc_supports_pg=yes
4398 echo "$as_me: failed program was:" >&5
4399 sed 's/^/| /' conftest.$ac_ext >&5
4401 ac_cv_cc_supports_pg=no
4403 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
4405 echo "$as_me:$LINENO: result: $ac_cv_cc_supports_pg" >&5
4406 echo "${ECHO_T}$ac_cv_cc_supports_pg" >&6
4408 if test $ac_cv_cc_supports_pg = no; then
4409 { { echo "$as_me:$LINENO: error: --enable-profiling requires a compiler which supports -pg" >&5
4410 echo "$as_me: error: --enable-profiling requires a compiler which supports -pg" >&2;}
4411 { (exit 1); exit 1; }; }
4414 CFLAGS="$OLD_CFLAGS"
4417 # --------------------- #
4418 # Checks for programs. #
4419 # --------------------- #
4421 for ac_prog in gawk mawk nawk awk
4423 # Extract the first word of "$ac_prog", so it can be a program name with args.
4424 set dummy $ac_prog; ac_word=$2
4425 echo "$as_me:$LINENO: checking for $ac_word" >&5
4426 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
4427 if test "${ac_cv_prog_AWK+set}" = set; then
4428 echo $ECHO_N "(cached) $ECHO_C" >&6
4430 if test -n "$AWK"; then
4431 ac_cv_prog_AWK="$AWK" # Let the user override the test.
4433 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4437 test -z "$as_dir" && as_dir=.
4438 for ac_exec_ext in '' $ac_executable_extensions; do
4439 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4440 ac_cv_prog_AWK="$ac_prog"
4441 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4450 if test -n "$AWK"; then
4451 echo "$as_me:$LINENO: result: $AWK" >&5
4452 echo "${ECHO_T}$AWK" >&6
4454 echo "$as_me:$LINENO: result: no" >&5
4455 echo "${ECHO_T}no" >&6
4458 test -n "$AWK" && break
4461 # Find a good install program. We prefer a C program (faster),
4462 # so one script is as good as another. But avoid the broken or
4463 # incompatible versions:
4464 # SysV /etc/install, /usr/sbin/install
4465 # SunOS /usr/etc/install
4466 # IRIX /sbin/install
4468 # AmigaOS /C/install, which installs bootblocks on floppy discs
4469 # AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag
4470 # AFS /usr/afsws/bin/install, which mishandles nonexistent args
4471 # SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff"
4472 # OS/2's system install, which has a completely different semantic
4473 # ./install, which can be erroneously created by make from ./install.sh.
4474 echo "$as_me:$LINENO: checking for a BSD-compatible install" >&5
4475 echo $ECHO_N "checking for a BSD-compatible install... $ECHO_C" >&6
4476 if test -z "$INSTALL"; then
4477 if test "${ac_cv_path_install+set}" = set; then
4478 echo $ECHO_N "(cached) $ECHO_C" >&6
4480 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4484 test -z "$as_dir" && as_dir=.
4485 # Account for people who put trailing slashes in PATH elements.
4487 ./ | .// | /cC/* | \
4488 /etc/* | /usr/sbin/* | /usr/etc/* | /sbin/* | /usr/afsws/bin/* | \
4489 ?:\\/os2\\/install\\/* | ?:\\/OS2\\/INSTALL\\/* | \
4492 # OSF1 and SCO ODT 3.0 have their own names for install.
4493 # Don't use installbsd from OSF since it installs stuff as root
4495 for ac_prog in ginstall scoinst install; do
4496 for ac_exec_ext in '' $ac_executable_extensions; do
4497 if $as_executable_p "$as_dir/$ac_prog$ac_exec_ext"; then
4498 if test $ac_prog = install &&
4499 grep dspmsg "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
4500 # AIX install. It has an incompatible calling convention.
4502 elif test $ac_prog = install &&
4503 grep pwplus "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
4504 # program-specific install script used by HP pwplus--don't use.
4507 ac_cv_path_install="$as_dir/$ac_prog$ac_exec_ext -c"
4519 if test "${ac_cv_path_install+set}" = set; then
4520 INSTALL=$ac_cv_path_install
4522 # As a last resort, use the slow shell script. We don't cache a
4523 # path for INSTALL within a source directory, because that will
4524 # break other packages using the cache if that directory is
4525 # removed, or if the path is relative.
4526 INSTALL=$ac_install_sh
4529 echo "$as_me:$LINENO: result: $INSTALL" >&5
4530 echo "${ECHO_T}$INSTALL" >&6
4532 # Use test -z because SunOS4 sh mishandles braces in ${var-val}.
4533 # It thinks the first close brace ends the variable substitution.
4534 test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}'
4536 test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL}'
4538 test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644'
4540 echo "$as_me:$LINENO: checking whether ln -s works" >&5
4541 echo $ECHO_N "checking whether ln -s works... $ECHO_C" >&6
4543 if test "$LN_S" = "ln -s"; then
4544 echo "$as_me:$LINENO: result: yes" >&5
4545 echo "${ECHO_T}yes" >&6
4547 echo "$as_me:$LINENO: result: no, using $LN_S" >&5
4548 echo "${ECHO_T}no, using $LN_S" >&6
4551 if test -n "$ac_tool_prefix"; then
4552 # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args.
4553 set dummy ${ac_tool_prefix}ranlib; ac_word=$2
4554 echo "$as_me:$LINENO: checking for $ac_word" >&5
4555 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
4556 if test "${ac_cv_prog_RANLIB+set}" = set; then
4557 echo $ECHO_N "(cached) $ECHO_C" >&6
4559 if test -n "$RANLIB"; then
4560 ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
4562 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4566 test -z "$as_dir" && as_dir=.
4567 for ac_exec_ext in '' $ac_executable_extensions; do
4568 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4569 ac_cv_prog_RANLIB="${ac_tool_prefix}ranlib"
4570 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4578 RANLIB=$ac_cv_prog_RANLIB
4579 if test -n "$RANLIB"; then
4580 echo "$as_me:$LINENO: result: $RANLIB" >&5
4581 echo "${ECHO_T}$RANLIB" >&6
4583 echo "$as_me:$LINENO: result: no" >&5
4584 echo "${ECHO_T}no" >&6
4588 if test -z "$ac_cv_prog_RANLIB"; then
4589 ac_ct_RANLIB=$RANLIB
4590 # Extract the first word of "ranlib", so it can be a program name with args.
4591 set dummy ranlib; ac_word=$2
4592 echo "$as_me:$LINENO: checking for $ac_word" >&5
4593 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
4594 if test "${ac_cv_prog_ac_ct_RANLIB+set}" = set; then
4595 echo $ECHO_N "(cached) $ECHO_C" >&6
4597 if test -n "$ac_ct_RANLIB"; then
4598 ac_cv_prog_ac_ct_RANLIB="$ac_ct_RANLIB" # Let the user override the test.
4600 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4604 test -z "$as_dir" && as_dir=.
4605 for ac_exec_ext in '' $ac_executable_extensions; do
4606 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4607 ac_cv_prog_ac_ct_RANLIB="ranlib"
4608 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4614 test -z "$ac_cv_prog_ac_ct_RANLIB" && ac_cv_prog_ac_ct_RANLIB=":"
4617 ac_ct_RANLIB=$ac_cv_prog_ac_ct_RANLIB
4618 if test -n "$ac_ct_RANLIB"; then
4619 echo "$as_me:$LINENO: result: $ac_ct_RANLIB" >&5
4620 echo "${ECHO_T}$ac_ct_RANLIB" >&6
4622 echo "$as_me:$LINENO: result: no" >&5
4623 echo "${ECHO_T}no" >&6
4626 RANLIB=$ac_ct_RANLIB
4628 RANLIB="$ac_cv_prog_RANLIB"
4631 for ac_prog in 'bison -y' byacc
4633 # Extract the first word of "$ac_prog", so it can be a program name with args.
4634 set dummy $ac_prog; ac_word=$2
4635 echo "$as_me:$LINENO: checking for $ac_word" >&5
4636 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
4637 if test "${ac_cv_prog_YACC+set}" = set; then
4638 echo $ECHO_N "(cached) $ECHO_C" >&6
4640 if test -n "$YACC"; then
4641 ac_cv_prog_YACC="$YACC" # Let the user override the test.
4643 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4647 test -z "$as_dir" && as_dir=.
4648 for ac_exec_ext in '' $ac_executable_extensions; do
4649 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4650 ac_cv_prog_YACC="$ac_prog"
4651 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4659 YACC=$ac_cv_prog_YACC
4660 if test -n "$YACC"; then
4661 echo "$as_me:$LINENO: result: $YACC" >&5
4662 echo "${ECHO_T}$YACC" >&6
4664 echo "$as_me:$LINENO: result: no" >&5
4665 echo "${ECHO_T}no" >&6
4668 test -n "$YACC" && break
4670 test -n "$YACC" || YACC="yacc"
4673 if test -n "$ac_tool_prefix"; then
4674 # Extract the first word of "${ac_tool_prefix}ar", so it can be a program name with args.
4675 set dummy ${ac_tool_prefix}ar; ac_word=$2
4676 echo "$as_me:$LINENO: checking for $ac_word" >&5
4677 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
4678 if test "${ac_cv_prog_AR+set}" = set; then
4679 echo $ECHO_N "(cached) $ECHO_C" >&6
4681 if test -n "$AR"; then
4682 ac_cv_prog_AR="$AR" # Let the user override the test.
4684 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4688 test -z "$as_dir" && as_dir=.
4689 for ac_exec_ext in '' $ac_executable_extensions; do
4690 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4691 ac_cv_prog_AR="${ac_tool_prefix}ar"
4692 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4701 if test -n "$AR"; then
4702 echo "$as_me:$LINENO: result: $AR" >&5
4703 echo "${ECHO_T}$AR" >&6
4705 echo "$as_me:$LINENO: result: no" >&5
4706 echo "${ECHO_T}no" >&6
4710 if test -z "$ac_cv_prog_AR"; then
4712 # Extract the first word of "ar", so it can be a program name with args.
4713 set dummy ar; ac_word=$2
4714 echo "$as_me:$LINENO: checking for $ac_word" >&5
4715 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
4716 if test "${ac_cv_prog_ac_ct_AR+set}" = set; then
4717 echo $ECHO_N "(cached) $ECHO_C" >&6
4719 if test -n "$ac_ct_AR"; then
4720 ac_cv_prog_ac_ct_AR="$ac_ct_AR" # Let the user override the test.
4722 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4726 test -z "$as_dir" && as_dir=.
4727 for ac_exec_ext in '' $ac_executable_extensions; do
4728 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4729 ac_cv_prog_ac_ct_AR="ar"
4730 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4738 ac_ct_AR=$ac_cv_prog_ac_ct_AR
4739 if test -n "$ac_ct_AR"; then
4740 echo "$as_me:$LINENO: result: $ac_ct_AR" >&5
4741 echo "${ECHO_T}$ac_ct_AR" >&6
4743 echo "$as_me:$LINENO: result: no" >&5
4744 echo "${ECHO_T}no" >&6
4752 if test -n "$ac_tool_prefix"; then
4753 # Extract the first word of "${ac_tool_prefix}dlltool", so it can be a program name with args.
4754 set dummy ${ac_tool_prefix}dlltool; ac_word=$2
4755 echo "$as_me:$LINENO: checking for $ac_word" >&5
4756 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
4757 if test "${ac_cv_prog_DLLTOOL+set}" = set; then
4758 echo $ECHO_N "(cached) $ECHO_C" >&6
4760 if test -n "$DLLTOOL"; then
4761 ac_cv_prog_DLLTOOL="$DLLTOOL" # Let the user override the test.
4763 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4767 test -z "$as_dir" && as_dir=.
4768 for ac_exec_ext in '' $ac_executable_extensions; do
4769 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4770 ac_cv_prog_DLLTOOL="${ac_tool_prefix}dlltool"
4771 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4779 DLLTOOL=$ac_cv_prog_DLLTOOL
4780 if test -n "$DLLTOOL"; then
4781 echo "$as_me:$LINENO: result: $DLLTOOL" >&5
4782 echo "${ECHO_T}$DLLTOOL" >&6
4784 echo "$as_me:$LINENO: result: no" >&5
4785 echo "${ECHO_T}no" >&6
4789 if test -z "$ac_cv_prog_DLLTOOL"; then
4790 ac_ct_DLLTOOL=$DLLTOOL
4791 # Extract the first word of "dlltool", so it can be a program name with args.
4792 set dummy dlltool; ac_word=$2
4793 echo "$as_me:$LINENO: checking for $ac_word" >&5
4794 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
4795 if test "${ac_cv_prog_ac_ct_DLLTOOL+set}" = set; then
4796 echo $ECHO_N "(cached) $ECHO_C" >&6
4798 if test -n "$ac_ct_DLLTOOL"; then
4799 ac_cv_prog_ac_ct_DLLTOOL="$ac_ct_DLLTOOL" # Let the user override the test.
4801 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4805 test -z "$as_dir" && as_dir=.
4806 for ac_exec_ext in '' $ac_executable_extensions; do
4807 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4808 ac_cv_prog_ac_ct_DLLTOOL="dlltool"
4809 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4817 ac_ct_DLLTOOL=$ac_cv_prog_ac_ct_DLLTOOL
4818 if test -n "$ac_ct_DLLTOOL"; then
4819 echo "$as_me:$LINENO: result: $ac_ct_DLLTOOL" >&5
4820 echo "${ECHO_T}$ac_ct_DLLTOOL" >&6
4822 echo "$as_me:$LINENO: result: no" >&5
4823 echo "${ECHO_T}no" >&6
4826 DLLTOOL=$ac_ct_DLLTOOL
4828 DLLTOOL="$ac_cv_prog_DLLTOOL"
4831 if test -n "$ac_tool_prefix"; then
4832 # Extract the first word of "${ac_tool_prefix}windres", so it can be a program name with args.
4833 set dummy ${ac_tool_prefix}windres; ac_word=$2
4834 echo "$as_me:$LINENO: checking for $ac_word" >&5
4835 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
4836 if test "${ac_cv_prog_WINDRES+set}" = set; then
4837 echo $ECHO_N "(cached) $ECHO_C" >&6
4839 if test -n "$WINDRES"; then
4840 ac_cv_prog_WINDRES="$WINDRES" # Let the user override the test.
4842 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4846 test -z "$as_dir" && as_dir=.
4847 for ac_exec_ext in '' $ac_executable_extensions; do
4848 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4849 ac_cv_prog_WINDRES="${ac_tool_prefix}windres"
4850 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4858 WINDRES=$ac_cv_prog_WINDRES
4859 if test -n "$WINDRES"; then
4860 echo "$as_me:$LINENO: result: $WINDRES" >&5
4861 echo "${ECHO_T}$WINDRES" >&6
4863 echo "$as_me:$LINENO: result: no" >&5
4864 echo "${ECHO_T}no" >&6
4868 if test -z "$ac_cv_prog_WINDRES"; then
4869 ac_ct_WINDRES=$WINDRES
4870 # Extract the first word of "windres", so it can be a program name with args.
4871 set dummy windres; ac_word=$2
4872 echo "$as_me:$LINENO: checking for $ac_word" >&5
4873 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
4874 if test "${ac_cv_prog_ac_ct_WINDRES+set}" = set; then
4875 echo $ECHO_N "(cached) $ECHO_C" >&6
4877 if test -n "$ac_ct_WINDRES"; then
4878 ac_cv_prog_ac_ct_WINDRES="$ac_ct_WINDRES" # Let the user override the test.
4880 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4884 test -z "$as_dir" && as_dir=.
4885 for ac_exec_ext in '' $ac_executable_extensions; do
4886 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4887 ac_cv_prog_ac_ct_WINDRES="windres"
4888 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4896 ac_ct_WINDRES=$ac_cv_prog_ac_ct_WINDRES
4897 if test -n "$ac_ct_WINDRES"; then
4898 echo "$as_me:$LINENO: result: $ac_ct_WINDRES" >&5
4899 echo "${ECHO_T}$ac_ct_WINDRES" >&6
4901 echo "$as_me:$LINENO: result: no" >&5
4902 echo "${ECHO_T}no" >&6
4905 WINDRES=$ac_ct_WINDRES
4907 WINDRES="$ac_cv_prog_WINDRES"
4911 # Needed for GNU/Hurd.
4912 if test -n "$ac_tool_prefix"; then
4913 # Extract the first word of "${ac_tool_prefix}mig", so it can be a program name with args.
4914 set dummy ${ac_tool_prefix}mig; ac_word=$2
4915 echo "$as_me:$LINENO: checking for $ac_word" >&5
4916 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
4917 if test "${ac_cv_prog_MIG+set}" = set; then
4918 echo $ECHO_N "(cached) $ECHO_C" >&6
4920 if test -n "$MIG"; then
4921 ac_cv_prog_MIG="$MIG" # Let the user override the test.
4923 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4927 test -z "$as_dir" && as_dir=.
4928 for ac_exec_ext in '' $ac_executable_extensions; do
4929 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4930 ac_cv_prog_MIG="${ac_tool_prefix}mig"
4931 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4940 if test -n "$MIG"; then
4941 echo "$as_me:$LINENO: result: $MIG" >&5
4942 echo "${ECHO_T}$MIG" >&6
4944 echo "$as_me:$LINENO: result: no" >&5
4945 echo "${ECHO_T}no" >&6
4949 if test -z "$ac_cv_prog_MIG"; then
4951 # Extract the first word of "mig", so it can be a program name with args.
4952 set dummy mig; ac_word=$2
4953 echo "$as_me:$LINENO: checking for $ac_word" >&5
4954 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
4955 if test "${ac_cv_prog_ac_ct_MIG+set}" = set; then
4956 echo $ECHO_N "(cached) $ECHO_C" >&6
4958 if test -n "$ac_ct_MIG"; then
4959 ac_cv_prog_ac_ct_MIG="$ac_ct_MIG" # Let the user override the test.
4961 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4965 test -z "$as_dir" && as_dir=.
4966 for ac_exec_ext in '' $ac_executable_extensions; do
4967 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4968 ac_cv_prog_ac_ct_MIG="mig"
4969 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4977 ac_ct_MIG=$ac_cv_prog_ac_ct_MIG
4978 if test -n "$ac_ct_MIG"; then
4979 echo "$as_me:$LINENO: result: $ac_ct_MIG" >&5
4980 echo "${ECHO_T}$ac_ct_MIG" >&6
4982 echo "$as_me:$LINENO: result: no" >&5
4983 echo "${ECHO_T}no" >&6
4988 MIG="$ac_cv_prog_MIG"
4992 # ---------------------- #
4993 # Checks for libraries. #
4994 # ---------------------- #
4996 # We might need to link with -lm; most simulators need it.
4998 echo "$as_me:$LINENO: checking for main in -lm" >&5
4999 echo $ECHO_N "checking for main in -lm... $ECHO_C" >&6
5000 if test "${ac_cv_lib_m_main+set}" = set; then
5001 echo $ECHO_N "(cached) $ECHO_C" >&6
5003 ac_check_lib_save_LIBS=$LIBS
5005 cat >conftest.$ac_ext <<_ACEOF
5008 cat confdefs.h >>conftest.$ac_ext
5009 cat >>conftest.$ac_ext <<_ACEOF
5010 /* end confdefs.h. */
5021 rm -f conftest.$ac_objext conftest$ac_exeext
5022 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
5023 (eval $ac_link) 2>conftest.er1
5025 grep -v '^ *+' conftest.er1 >conftest.err
5027 cat conftest.err >&5
5028 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5029 (exit $ac_status); } &&
5030 { ac_try='test -z "$ac_c_werror_flag"
5031 || test ! -s conftest.err'
5032 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5035 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5036 (exit $ac_status); }; } &&
5037 { ac_try='test -s conftest$ac_exeext'
5038 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5041 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5042 (exit $ac_status); }; }; then
5043 ac_cv_lib_m_main=yes
5045 echo "$as_me: failed program was:" >&5
5046 sed 's/^/| /' conftest.$ac_ext >&5
5050 rm -f conftest.err conftest.$ac_objext \
5051 conftest$ac_exeext conftest.$ac_ext
5052 LIBS=$ac_check_lib_save_LIBS
5054 echo "$as_me:$LINENO: result: $ac_cv_lib_m_main" >&5
5055 echo "${ECHO_T}$ac_cv_lib_m_main" >&6
5056 if test $ac_cv_lib_m_main = yes; then
5057 cat >>confdefs.h <<_ACEOF
5066 # We need to link with -lw to get `wctype' on Solaris before Solaris
5067 # 2.6. Solaris 2.6 and beyond have this function in libc, and have a
5068 # libw that some versions of the GNU linker cannot hanle (GNU ld 2.9.1
5069 # is known to have this problem). Therefore we avoid libw if we can.
5070 echo "$as_me:$LINENO: checking for wctype" >&5
5071 echo $ECHO_N "checking for wctype... $ECHO_C" >&6
5072 if test "${ac_cv_func_wctype+set}" = set; then
5073 echo $ECHO_N "(cached) $ECHO_C" >&6
5075 cat >conftest.$ac_ext <<_ACEOF
5078 cat confdefs.h >>conftest.$ac_ext
5079 cat >>conftest.$ac_ext <<_ACEOF
5080 /* end confdefs.h. */
5081 /* Define wctype to an innocuous variant, in case <limits.h> declares wctype.
5082 For example, HP-UX 11i <limits.h> declares gettimeofday. */
5083 #define wctype innocuous_wctype
5085 /* System header to define __stub macros and hopefully few prototypes,
5086 which can conflict with char wctype (); below.
5087 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
5088 <limits.h> exists even on freestanding compilers. */
5091 # include <limits.h>
5093 # include <assert.h>
5098 /* Override any gcc2 internal prototype to avoid an error. */
5103 /* We use char because int might match the return type of a gcc2
5104 builtin and then its argument prototype would still apply. */
5106 /* The GNU C library defines this for functions which it implements
5107 to always fail with ENOSYS. Some functions are actually named
5108 something starting with __ and the normal name is an alias. */
5109 #if defined (__stub_wctype) || defined (__stub___wctype)
5112 char (*f) () = wctype;
5126 rm -f conftest.$ac_objext conftest$ac_exeext
5127 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
5128 (eval $ac_link) 2>conftest.er1
5130 grep -v '^ *+' conftest.er1 >conftest.err
5132 cat conftest.err >&5
5133 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5134 (exit $ac_status); } &&
5135 { ac_try='test -z "$ac_c_werror_flag"
5136 || test ! -s conftest.err'
5137 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5140 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5141 (exit $ac_status); }; } &&
5142 { ac_try='test -s conftest$ac_exeext'
5143 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5146 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5147 (exit $ac_status); }; }; then
5148 ac_cv_func_wctype=yes
5150 echo "$as_me: failed program was:" >&5
5151 sed 's/^/| /' conftest.$ac_ext >&5
5153 ac_cv_func_wctype=no
5155 rm -f conftest.err conftest.$ac_objext \
5156 conftest$ac_exeext conftest.$ac_ext
5158 echo "$as_me:$LINENO: result: $ac_cv_func_wctype" >&5
5159 echo "${ECHO_T}$ac_cv_func_wctype" >&6
5160 if test $ac_cv_func_wctype = yes; then
5164 echo "$as_me:$LINENO: checking for wctype in -lw" >&5
5165 echo $ECHO_N "checking for wctype in -lw... $ECHO_C" >&6
5166 if test "${ac_cv_lib_w_wctype+set}" = set; then
5167 echo $ECHO_N "(cached) $ECHO_C" >&6
5169 ac_check_lib_save_LIBS=$LIBS
5171 cat >conftest.$ac_ext <<_ACEOF
5174 cat confdefs.h >>conftest.$ac_ext
5175 cat >>conftest.$ac_ext <<_ACEOF
5176 /* end confdefs.h. */
5178 /* Override any gcc2 internal prototype to avoid an error. */
5182 /* We use char because int might match the return type of a gcc2
5183 builtin and then its argument prototype would still apply. */
5193 rm -f conftest.$ac_objext conftest$ac_exeext
5194 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
5195 (eval $ac_link) 2>conftest.er1
5197 grep -v '^ *+' conftest.er1 >conftest.err
5199 cat conftest.err >&5
5200 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5201 (exit $ac_status); } &&
5202 { ac_try='test -z "$ac_c_werror_flag"
5203 || test ! -s conftest.err'
5204 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5207 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5208 (exit $ac_status); }; } &&
5209 { ac_try='test -s conftest$ac_exeext'
5210 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5213 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5214 (exit $ac_status); }; }; then
5215 ac_cv_lib_w_wctype=yes
5217 echo "$as_me: failed program was:" >&5
5218 sed 's/^/| /' conftest.$ac_ext >&5
5220 ac_cv_lib_w_wctype=no
5222 rm -f conftest.err conftest.$ac_objext \
5223 conftest$ac_exeext conftest.$ac_ext
5224 LIBS=$ac_check_lib_save_LIBS
5226 echo "$as_me:$LINENO: result: $ac_cv_lib_w_wctype" >&5
5227 echo "${ECHO_T}$ac_cv_lib_w_wctype" >&6
5228 if test $ac_cv_lib_w_wctype = yes; then
5229 cat >>confdefs.h <<_ACEOF
5240 # Some systems (e.g. Solaris) have `gethostbyname' in libnsl.
5241 echo "$as_me:$LINENO: checking for library containing gethostbyname" >&5
5242 echo $ECHO_N "checking for library containing gethostbyname... $ECHO_C" >&6
5243 if test "${ac_cv_search_gethostbyname+set}" = set; then
5244 echo $ECHO_N "(cached) $ECHO_C" >&6
5246 ac_func_search_save_LIBS=$LIBS
5247 ac_cv_search_gethostbyname=no
5248 cat >conftest.$ac_ext <<_ACEOF
5251 cat confdefs.h >>conftest.$ac_ext
5252 cat >>conftest.$ac_ext <<_ACEOF
5253 /* end confdefs.h. */
5255 /* Override any gcc2 internal prototype to avoid an error. */
5259 /* We use char because int might match the return type of a gcc2
5260 builtin and then its argument prototype would still apply. */
5261 char gethostbyname ();
5270 rm -f conftest.$ac_objext conftest$ac_exeext
5271 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
5272 (eval $ac_link) 2>conftest.er1
5274 grep -v '^ *+' conftest.er1 >conftest.err
5276 cat conftest.err >&5
5277 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5278 (exit $ac_status); } &&
5279 { ac_try='test -z "$ac_c_werror_flag"
5280 || test ! -s conftest.err'
5281 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5284 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5285 (exit $ac_status); }; } &&
5286 { ac_try='test -s conftest$ac_exeext'
5287 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5290 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5291 (exit $ac_status); }; }; then
5292 ac_cv_search_gethostbyname="none required"
5294 echo "$as_me: failed program was:" >&5
5295 sed 's/^/| /' conftest.$ac_ext >&5
5298 rm -f conftest.err conftest.$ac_objext \
5299 conftest$ac_exeext conftest.$ac_ext
5300 if test "$ac_cv_search_gethostbyname" = no; then
5301 for ac_lib in nsl; do
5302 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
5303 cat >conftest.$ac_ext <<_ACEOF
5306 cat confdefs.h >>conftest.$ac_ext
5307 cat >>conftest.$ac_ext <<_ACEOF
5308 /* end confdefs.h. */
5310 /* Override any gcc2 internal prototype to avoid an error. */
5314 /* We use char because int might match the return type of a gcc2
5315 builtin and then its argument prototype would still apply. */
5316 char gethostbyname ();
5325 rm -f conftest.$ac_objext conftest$ac_exeext
5326 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
5327 (eval $ac_link) 2>conftest.er1
5329 grep -v '^ *+' conftest.er1 >conftest.err
5331 cat conftest.err >&5
5332 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5333 (exit $ac_status); } &&
5334 { ac_try='test -z "$ac_c_werror_flag"
5335 || test ! -s conftest.err'
5336 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5339 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5340 (exit $ac_status); }; } &&
5341 { ac_try='test -s conftest$ac_exeext'
5342 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5345 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5346 (exit $ac_status); }; }; then
5347 ac_cv_search_gethostbyname="-l$ac_lib"
5350 echo "$as_me: failed program was:" >&5
5351 sed 's/^/| /' conftest.$ac_ext >&5
5354 rm -f conftest.err conftest.$ac_objext \
5355 conftest$ac_exeext conftest.$ac_ext
5358 LIBS=$ac_func_search_save_LIBS
5360 echo "$as_me:$LINENO: result: $ac_cv_search_gethostbyname" >&5
5361 echo "${ECHO_T}$ac_cv_search_gethostbyname" >&6
5362 if test "$ac_cv_search_gethostbyname" != no; then
5363 test "$ac_cv_search_gethostbyname" = "none required" || LIBS="$ac_cv_search_gethostbyname $LIBS"
5368 # Some systems (e.g. Solaris) have `socketpair' in libsocket.
5369 echo "$as_me:$LINENO: checking for library containing socketpair" >&5
5370 echo $ECHO_N "checking for library containing socketpair... $ECHO_C" >&6
5371 if test "${ac_cv_search_socketpair+set}" = set; then
5372 echo $ECHO_N "(cached) $ECHO_C" >&6
5374 ac_func_search_save_LIBS=$LIBS
5375 ac_cv_search_socketpair=no
5376 cat >conftest.$ac_ext <<_ACEOF
5379 cat confdefs.h >>conftest.$ac_ext
5380 cat >>conftest.$ac_ext <<_ACEOF
5381 /* end confdefs.h. */
5383 /* Override any gcc2 internal prototype to avoid an error. */
5387 /* We use char because int might match the return type of a gcc2
5388 builtin and then its argument prototype would still apply. */
5398 rm -f conftest.$ac_objext conftest$ac_exeext
5399 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
5400 (eval $ac_link) 2>conftest.er1
5402 grep -v '^ *+' conftest.er1 >conftest.err
5404 cat conftest.err >&5
5405 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5406 (exit $ac_status); } &&
5407 { ac_try='test -z "$ac_c_werror_flag"
5408 || test ! -s conftest.err'
5409 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5412 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5413 (exit $ac_status); }; } &&
5414 { ac_try='test -s conftest$ac_exeext'
5415 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5418 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5419 (exit $ac_status); }; }; then
5420 ac_cv_search_socketpair="none required"
5422 echo "$as_me: failed program was:" >&5
5423 sed 's/^/| /' conftest.$ac_ext >&5
5426 rm -f conftest.err conftest.$ac_objext \
5427 conftest$ac_exeext conftest.$ac_ext
5428 if test "$ac_cv_search_socketpair" = no; then
5429 for ac_lib in socket; do
5430 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
5431 cat >conftest.$ac_ext <<_ACEOF
5434 cat confdefs.h >>conftest.$ac_ext
5435 cat >>conftest.$ac_ext <<_ACEOF
5436 /* end confdefs.h. */
5438 /* Override any gcc2 internal prototype to avoid an error. */
5442 /* We use char because int might match the return type of a gcc2
5443 builtin and then its argument prototype would still apply. */
5453 rm -f conftest.$ac_objext conftest$ac_exeext
5454 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
5455 (eval $ac_link) 2>conftest.er1
5457 grep -v '^ *+' conftest.er1 >conftest.err
5459 cat conftest.err >&5
5460 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5461 (exit $ac_status); } &&
5462 { ac_try='test -z "$ac_c_werror_flag"
5463 || test ! -s conftest.err'
5464 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5467 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5468 (exit $ac_status); }; } &&
5469 { ac_try='test -s conftest$ac_exeext'
5470 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5473 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5474 (exit $ac_status); }; }; then
5475 ac_cv_search_socketpair="-l$ac_lib"
5478 echo "$as_me: failed program was:" >&5
5479 sed 's/^/| /' conftest.$ac_ext >&5
5482 rm -f conftest.err conftest.$ac_objext \
5483 conftest$ac_exeext conftest.$ac_ext
5486 LIBS=$ac_func_search_save_LIBS
5488 echo "$as_me:$LINENO: result: $ac_cv_search_socketpair" >&5
5489 echo "${ECHO_T}$ac_cv_search_socketpair" >&6
5490 if test "$ac_cv_search_socketpair" != no; then
5491 test "$ac_cv_search_socketpair" = "none required" || LIBS="$ac_cv_search_socketpair $LIBS"
5496 # For the TUI, we need enhanced curses functionality.
5498 # FIXME: kettenis/20040905: We prefer ncurses over the vendor-supplied
5499 # curses library because the latter might not provide all the
5500 # functionality we need. However, this leads to problems on systems
5501 # where the linker searches /usr/local/lib, but the compiler doesn't
5502 # search /usr/local/include, if ncurses is installed in /usr/local. A
5503 # default installation of ncurses on alpha*-dec-osf* will lead to such
5505 echo "$as_me:$LINENO: checking for library containing waddstr" >&5
5506 echo $ECHO_N "checking for library containing waddstr... $ECHO_C" >&6
5507 if test "${ac_cv_search_waddstr+set}" = set; then
5508 echo $ECHO_N "(cached) $ECHO_C" >&6
5510 ac_func_search_save_LIBS=$LIBS
5511 ac_cv_search_waddstr=no
5512 cat >conftest.$ac_ext <<_ACEOF
5515 cat confdefs.h >>conftest.$ac_ext
5516 cat >>conftest.$ac_ext <<_ACEOF
5517 /* end confdefs.h. */
5519 /* Override any gcc2 internal prototype to avoid an error. */
5523 /* We use char because int might match the return type of a gcc2
5524 builtin and then its argument prototype would still apply. */
5534 rm -f conftest.$ac_objext conftest$ac_exeext
5535 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
5536 (eval $ac_link) 2>conftest.er1
5538 grep -v '^ *+' conftest.er1 >conftest.err
5540 cat conftest.err >&5
5541 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5542 (exit $ac_status); } &&
5543 { ac_try='test -z "$ac_c_werror_flag"
5544 || test ! -s conftest.err'
5545 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5548 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5549 (exit $ac_status); }; } &&
5550 { ac_try='test -s conftest$ac_exeext'
5551 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5554 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5555 (exit $ac_status); }; }; then
5556 ac_cv_search_waddstr="none required"
5558 echo "$as_me: failed program was:" >&5
5559 sed 's/^/| /' conftest.$ac_ext >&5
5562 rm -f conftest.err conftest.$ac_objext \
5563 conftest$ac_exeext conftest.$ac_ext
5564 if test "$ac_cv_search_waddstr" = no; then
5565 for ac_lib in ncurses cursesX curses; do
5566 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
5567 cat >conftest.$ac_ext <<_ACEOF
5570 cat confdefs.h >>conftest.$ac_ext
5571 cat >>conftest.$ac_ext <<_ACEOF
5572 /* end confdefs.h. */
5574 /* Override any gcc2 internal prototype to avoid an error. */
5578 /* We use char because int might match the return type of a gcc2
5579 builtin and then its argument prototype would still apply. */
5589 rm -f conftest.$ac_objext conftest$ac_exeext
5590 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
5591 (eval $ac_link) 2>conftest.er1
5593 grep -v '^ *+' conftest.er1 >conftest.err
5595 cat conftest.err >&5
5596 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5597 (exit $ac_status); } &&
5598 { ac_try='test -z "$ac_c_werror_flag"
5599 || test ! -s conftest.err'
5600 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5603 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5604 (exit $ac_status); }; } &&
5605 { ac_try='test -s conftest$ac_exeext'
5606 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5609 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5610 (exit $ac_status); }; }; then
5611 ac_cv_search_waddstr="-l$ac_lib"
5614 echo "$as_me: failed program was:" >&5
5615 sed 's/^/| /' conftest.$ac_ext >&5
5618 rm -f conftest.err conftest.$ac_objext \
5619 conftest$ac_exeext conftest.$ac_ext
5622 LIBS=$ac_func_search_save_LIBS
5624 echo "$as_me:$LINENO: result: $ac_cv_search_waddstr" >&5
5625 echo "${ECHO_T}$ac_cv_search_waddstr" >&6
5626 if test "$ac_cv_search_waddstr" != no; then
5627 test "$ac_cv_search_waddstr" = "none required" || LIBS="$ac_cv_search_waddstr $LIBS"
5632 # On HP/UX we may need libxpdl for dlgetmodinfo (used by solib-pa64.c).
5633 echo "$as_me:$LINENO: checking for library containing dlgetmodinfo" >&5
5634 echo $ECHO_N "checking for library containing dlgetmodinfo... $ECHO_C" >&6
5635 if test "${ac_cv_search_dlgetmodinfo+set}" = set; then
5636 echo $ECHO_N "(cached) $ECHO_C" >&6
5638 ac_func_search_save_LIBS=$LIBS
5639 ac_cv_search_dlgetmodinfo=no
5640 cat >conftest.$ac_ext <<_ACEOF
5643 cat confdefs.h >>conftest.$ac_ext
5644 cat >>conftest.$ac_ext <<_ACEOF
5645 /* end confdefs.h. */
5647 /* Override any gcc2 internal prototype to avoid an error. */
5651 /* We use char because int might match the return type of a gcc2
5652 builtin and then its argument prototype would still apply. */
5653 char dlgetmodinfo ();
5662 rm -f conftest.$ac_objext conftest$ac_exeext
5663 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
5664 (eval $ac_link) 2>conftest.er1
5666 grep -v '^ *+' conftest.er1 >conftest.err
5668 cat conftest.err >&5
5669 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5670 (exit $ac_status); } &&
5671 { ac_try='test -z "$ac_c_werror_flag"
5672 || test ! -s conftest.err'
5673 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5676 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5677 (exit $ac_status); }; } &&
5678 { ac_try='test -s conftest$ac_exeext'
5679 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5682 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5683 (exit $ac_status); }; }; then
5684 ac_cv_search_dlgetmodinfo="none required"
5686 echo "$as_me: failed program was:" >&5
5687 sed 's/^/| /' conftest.$ac_ext >&5
5690 rm -f conftest.err conftest.$ac_objext \
5691 conftest$ac_exeext conftest.$ac_ext
5692 if test "$ac_cv_search_dlgetmodinfo" = no; then
5693 for ac_lib in dl xpdl; do
5694 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
5695 cat >conftest.$ac_ext <<_ACEOF
5698 cat confdefs.h >>conftest.$ac_ext
5699 cat >>conftest.$ac_ext <<_ACEOF
5700 /* end confdefs.h. */
5702 /* Override any gcc2 internal prototype to avoid an error. */
5706 /* We use char because int might match the return type of a gcc2
5707 builtin and then its argument prototype would still apply. */
5708 char dlgetmodinfo ();
5717 rm -f conftest.$ac_objext conftest$ac_exeext
5718 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
5719 (eval $ac_link) 2>conftest.er1
5721 grep -v '^ *+' conftest.er1 >conftest.err
5723 cat conftest.err >&5
5724 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5725 (exit $ac_status); } &&
5726 { ac_try='test -z "$ac_c_werror_flag"
5727 || test ! -s conftest.err'
5728 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5731 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5732 (exit $ac_status); }; } &&
5733 { ac_try='test -s conftest$ac_exeext'
5734 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5737 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5738 (exit $ac_status); }; }; then
5739 ac_cv_search_dlgetmodinfo="-l$ac_lib"
5742 echo "$as_me: failed program was:" >&5
5743 sed 's/^/| /' conftest.$ac_ext >&5
5746 rm -f conftest.err conftest.$ac_objext \
5747 conftest$ac_exeext conftest.$ac_ext
5750 LIBS=$ac_func_search_save_LIBS
5752 echo "$as_me:$LINENO: result: $ac_cv_search_dlgetmodinfo" >&5
5753 echo "${ECHO_T}$ac_cv_search_dlgetmodinfo" >&6
5754 if test "$ac_cv_search_dlgetmodinfo" != no; then
5755 test "$ac_cv_search_dlgetmodinfo" = "none required" || LIBS="$ac_cv_search_dlgetmodinfo $LIBS"
5760 # Since GDB uses Readline, we need termcap functionality. In many
5761 # cases this will be provided by the curses library, but some systems
5762 # have a seperate termcap library, or no curses library at all.
5766 if test -d $srcdir/libtermcap; then
5767 LIBS="../libtermcap/libtermcap.a $LIBS"
5768 ac_cv_search_tgetent="../libtermcap/libtermcap.a"
5771 ac_cv_search_tgetent="none required"
5774 ac_cv_search_tgetent="none required"
5775 CONFIG_OBS="$CONFIG_OBS win32-termcap.o"
5779 # These are the libraries checked by Readline.
5780 echo "$as_me:$LINENO: checking for library containing tgetent" >&5
5781 echo $ECHO_N "checking for library containing tgetent... $ECHO_C" >&6
5782 if test "${ac_cv_search_tgetent+set}" = set; then
5783 echo $ECHO_N "(cached) $ECHO_C" >&6
5785 ac_func_search_save_LIBS=$LIBS
5786 ac_cv_search_tgetent=no
5787 cat >conftest.$ac_ext <<_ACEOF
5790 cat confdefs.h >>conftest.$ac_ext
5791 cat >>conftest.$ac_ext <<_ACEOF
5792 /* end confdefs.h. */
5794 /* Override any gcc2 internal prototype to avoid an error. */
5798 /* We use char because int might match the return type of a gcc2
5799 builtin and then its argument prototype would still apply. */
5809 rm -f conftest.$ac_objext conftest$ac_exeext
5810 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
5811 (eval $ac_link) 2>conftest.er1
5813 grep -v '^ *+' conftest.er1 >conftest.err
5815 cat conftest.err >&5
5816 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5817 (exit $ac_status); } &&
5818 { ac_try='test -z "$ac_c_werror_flag"
5819 || test ! -s conftest.err'
5820 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5823 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5824 (exit $ac_status); }; } &&
5825 { ac_try='test -s conftest$ac_exeext'
5826 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5829 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5830 (exit $ac_status); }; }; then
5831 ac_cv_search_tgetent="none required"
5833 echo "$as_me: failed program was:" >&5
5834 sed 's/^/| /' conftest.$ac_ext >&5
5837 rm -f conftest.err conftest.$ac_objext \
5838 conftest$ac_exeext conftest.$ac_ext
5839 if test "$ac_cv_search_tgetent" = no; then
5840 for ac_lib in termcap tinfo curses ncurses; do
5841 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
5842 cat >conftest.$ac_ext <<_ACEOF
5845 cat confdefs.h >>conftest.$ac_ext
5846 cat >>conftest.$ac_ext <<_ACEOF
5847 /* end confdefs.h. */
5849 /* Override any gcc2 internal prototype to avoid an error. */
5853 /* We use char because int might match the return type of a gcc2
5854 builtin and then its argument prototype would still apply. */
5864 rm -f conftest.$ac_objext conftest$ac_exeext
5865 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
5866 (eval $ac_link) 2>conftest.er1
5868 grep -v '^ *+' conftest.er1 >conftest.err
5870 cat conftest.err >&5
5871 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5872 (exit $ac_status); } &&
5873 { ac_try='test -z "$ac_c_werror_flag"
5874 || test ! -s conftest.err'
5875 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5878 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5879 (exit $ac_status); }; } &&
5880 { ac_try='test -s conftest$ac_exeext'
5881 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5884 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5885 (exit $ac_status); }; }; then
5886 ac_cv_search_tgetent="-l$ac_lib"
5889 echo "$as_me: failed program was:" >&5
5890 sed 's/^/| /' conftest.$ac_ext >&5
5893 rm -f conftest.err conftest.$ac_objext \
5894 conftest$ac_exeext conftest.$ac_ext
5897 LIBS=$ac_func_search_save_LIBS
5899 echo "$as_me:$LINENO: result: $ac_cv_search_tgetent" >&5
5900 echo "${ECHO_T}$ac_cv_search_tgetent" >&6
5901 if test "$ac_cv_search_tgetent" != no; then
5902 test "$ac_cv_search_tgetent" = "none required" || LIBS="$ac_cv_search_tgetent $LIBS"
5907 if test "$ac_cv_search_tgetent" = no; then
5908 { { echo "$as_me:$LINENO: error: no termcap library found" >&5
5909 echo "$as_me: error: no termcap library found" >&2;}
5910 { (exit 1); exit 1; }; }
5914 # Check whether --with-system-readline or --without-system-readline was given.
5915 if test "${with_system_readline+set}" = set; then
5916 withval="$with_system_readline"
5920 if test "$with_system_readline" = yes; then
5925 READLINE='$(READLINE_DIR)/libreadline.a'
5926 READLINE_DEPS='$(READLINE)'
5927 READLINE_CFLAGS='-I$(READLINE_SRC)/..'
5934 # Check whether --with-expat or --without-expat was given.
5935 if test "${with_expat+set}" = set; then
5936 withval="$with_expat"
5941 echo "$as_me:$LINENO: checking whether to use expat" >&5
5942 echo $ECHO_N "checking whether to use expat... $ECHO_C" >&6
5943 echo "$as_me:$LINENO: result: $with_expat" >&5
5944 echo "${ECHO_T}$with_expat" >&6
5946 if test "${with_expat}" = no; then
5947 { echo "$as_me:$LINENO: WARNING: expat support disabled; some features may be unavailable." >&5
5948 echo "$as_me: WARNING: expat support disabled; some features may be unavailable." >&2;}
5952 if test "X$prefix" = "XNONE"; then
5953 acl_final_prefix="$ac_default_prefix"
5955 acl_final_prefix="$prefix"
5957 if test "X$exec_prefix" = "XNONE"; then
5958 acl_final_exec_prefix='${prefix}'
5960 acl_final_exec_prefix="$exec_prefix"
5962 acl_save_prefix="$prefix"
5963 prefix="$acl_final_prefix"
5964 eval acl_final_exec_prefix=\"$acl_final_exec_prefix\"
5965 prefix="$acl_save_prefix"
5968 # Check whether --with-gnu-ld or --without-gnu-ld was given.
5969 if test "${with_gnu_ld+set}" = set; then
5970 withval="$with_gnu_ld"
5971 test "$withval" = no || with_gnu_ld=yes
5975 # Prepare PATH_SEPARATOR.
5976 # The user is always right.
5977 if test "${PATH_SEPARATOR+set}" != set; then
5978 echo "#! /bin/sh" >conf$$.sh
5979 echo "exit 0" >>conf$$.sh
5981 if (PATH="/nonexistent;."; conf$$.sh) >/dev/null 2>&1; then
5989 if test "$GCC" = yes; then
5990 # Check if gcc -print-prog-name=ld gives a path.
5991 echo "$as_me:$LINENO: checking for ld used by GCC" >&5
5992 echo $ECHO_N "checking for ld used by GCC... $ECHO_C" >&6
5995 # gcc leaves a trailing carriage return which upsets mingw
5996 ac_prog=`($CC -print-prog-name=ld) 2>&5 | tr -d '\015'` ;;
5998 ac_prog=`($CC -print-prog-name=ld) 2>&5` ;;
6001 # Accept absolute paths.
6002 [\\/]* | [A-Za-z]:[\\/]*)
6003 re_direlt='/[^/][^/]*/\.\./'
6004 # Canonicalize the path of ld
6005 ac_prog=`echo $ac_prog| sed 's%\\\\%/%g'`
6006 while echo $ac_prog | grep "$re_direlt" > /dev/null 2>&1; do
6007 ac_prog=`echo $ac_prog| sed "s%$re_direlt%/%"`
6009 test -z "$LD" && LD="$ac_prog"
6012 # If it fails, then pretend we aren't using GCC.
6016 # If it is relative, then search for the first ld in PATH.
6020 elif test "$with_gnu_ld" = yes; then
6021 echo "$as_me:$LINENO: checking for GNU ld" >&5
6022 echo $ECHO_N "checking for GNU ld... $ECHO_C" >&6
6024 echo "$as_me:$LINENO: checking for non-GNU ld" >&5
6025 echo $ECHO_N "checking for non-GNU ld... $ECHO_C" >&6
6027 if test "${acl_cv_path_LD+set}" = set; then
6028 echo $ECHO_N "(cached) $ECHO_C" >&6
6030 if test -z "$LD"; then
6031 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS="${IFS}${PATH_SEPARATOR-:}"
6032 for ac_dir in $PATH; do
6033 test -z "$ac_dir" && ac_dir=.
6034 if test -f "$ac_dir/$ac_prog" || test -f "$ac_dir/$ac_prog$ac_exeext"; then
6035 acl_cv_path_LD="$ac_dir/$ac_prog"
6036 # Check to see if the program is GNU ld. I'd rather use --version,
6037 # but apparently some GNU ld's only accept -v.
6038 # Break only if it was the GNU/non-GNU ld that we prefer.
6039 if "$acl_cv_path_LD" -v 2>&1 < /dev/null | egrep '(GNU|with BFD)' > /dev/null; then
6040 test "$with_gnu_ld" != no && break
6042 test "$with_gnu_ld" != yes && break
6048 acl_cv_path_LD="$LD" # Let the user override the test with a path.
6052 LD="$acl_cv_path_LD"
6053 if test -n "$LD"; then
6054 echo "$as_me:$LINENO: result: $LD" >&5
6055 echo "${ECHO_T}$LD" >&6
6057 echo "$as_me:$LINENO: result: no" >&5
6058 echo "${ECHO_T}no" >&6
6060 test -z "$LD" && { { echo "$as_me:$LINENO: error: no acceptable ld found in \$PATH" >&5
6061 echo "$as_me: error: no acceptable ld found in \$PATH" >&2;}
6062 { (exit 1); exit 1; }; }
6063 echo "$as_me:$LINENO: checking if the linker ($LD) is GNU ld" >&5
6064 echo $ECHO_N "checking if the linker ($LD) is GNU ld... $ECHO_C" >&6
6065 if test "${acl_cv_prog_gnu_ld+set}" = set; then
6066 echo $ECHO_N "(cached) $ECHO_C" >&6
6068 # I'd rather use --version here, but apparently some GNU ld's only accept -v.
6069 if $LD -v 2>&1 </dev/null | egrep '(GNU|with BFD)' 1>&5; then
6070 acl_cv_prog_gnu_ld=yes
6072 acl_cv_prog_gnu_ld=no
6075 echo "$as_me:$LINENO: result: $acl_cv_prog_gnu_ld" >&5
6076 echo "${ECHO_T}$acl_cv_prog_gnu_ld" >&6
6077 with_gnu_ld=$acl_cv_prog_gnu_ld
6081 echo "$as_me:$LINENO: checking for shared library run path origin" >&5
6082 echo $ECHO_N "checking for shared library run path origin... $ECHO_C" >&6
6083 if test "${acl_cv_rpath+set}" = set; then
6084 echo $ECHO_N "(cached) $ECHO_C" >&6
6087 CC="$CC" GCC="$GCC" LDFLAGS="$LDFLAGS" LD="$LD" with_gnu_ld="$with_gnu_ld" \
6088 ${CONFIG_SHELL-/bin/sh} "$ac_aux_dir/config.rpath" "$host" > conftest.sh
6094 echo "$as_me:$LINENO: result: $acl_cv_rpath" >&5
6095 echo "${ECHO_T}$acl_cv_rpath" >&6
6097 libext="$acl_cv_libext"
6098 shlibext="$acl_cv_shlibext"
6099 hardcode_libdir_flag_spec="$acl_cv_hardcode_libdir_flag_spec"
6100 hardcode_libdir_separator="$acl_cv_hardcode_libdir_separator"
6101 hardcode_direct="$acl_cv_hardcode_direct"
6102 hardcode_minus_L="$acl_cv_hardcode_minus_L"
6103 # Check whether --enable-rpath or --disable-rpath was given.
6104 if test "${enable_rpath+set}" = set; then
6105 enableval="$enable_rpath"
6121 acl_save_prefix="$prefix"
6122 prefix="$acl_final_prefix"
6123 acl_save_exec_prefix="$exec_prefix"
6124 exec_prefix="$acl_final_exec_prefix"
6126 eval additional_includedir=\"$includedir\"
6127 eval additional_libdir=\"$libdir\"
6129 exec_prefix="$acl_save_exec_prefix"
6130 prefix="$acl_save_prefix"
6133 # Check whether --with-libexpat-prefix or --without-libexpat-prefix was given.
6134 if test "${with_libexpat_prefix+set}" = set; then
6135 withval="$with_libexpat_prefix"
6137 if test "X$withval" = "Xno"; then
6140 if test "X$withval" = "X"; then
6142 acl_save_prefix="$prefix"
6143 prefix="$acl_final_prefix"
6144 acl_save_exec_prefix="$exec_prefix"
6145 exec_prefix="$acl_final_exec_prefix"
6147 eval additional_includedir=\"$includedir\"
6148 eval additional_libdir=\"$libdir\"
6150 exec_prefix="$acl_save_exec_prefix"
6151 prefix="$acl_save_prefix"
6154 additional_includedir="$withval/include"
6155 additional_libdir="$withval/lib"
6165 names_already_handled=
6166 names_next_round='expat '
6167 while test -n "$names_next_round"; do
6168 names_this_round="$names_next_round"
6170 for name in $names_this_round; do
6172 for n in $names_already_handled; do
6173 if test "$n" = "$name"; then
6178 if test -z "$already_handled"; then
6179 names_already_handled="$names_already_handled $name"
6180 uppername=`echo "$name" | sed -e 'y|abcdefghijklmnopqrstuvwxyz./-|ABCDEFGHIJKLMNOPQRSTUVWXYZ___|'`
6181 eval value=\"\$HAVE_LIB$uppername\"
6182 if test -n "$value"; then
6183 if test "$value" = yes; then
6184 eval value=\"\$LIB$uppername\"
6185 test -z "$value" || LIBEXPAT="${LIBEXPAT}${LIBEXPAT:+ }$value"
6186 eval value=\"\$LTLIB$uppername\"
6187 test -z "$value" || LTLIBEXPAT="${LTLIBEXPAT}${LTLIBEXPAT:+ }$value"
6196 if test $use_additional = yes; then
6197 if test -n "$shlibext" && test -f "$additional_libdir/lib$name.$shlibext"; then
6198 found_dir="$additional_libdir"
6199 found_so="$additional_libdir/lib$name.$shlibext"
6200 if test -f "$additional_libdir/lib$name.la"; then
6201 found_la="$additional_libdir/lib$name.la"
6204 if test -f "$additional_libdir/lib$name.$libext"; then
6205 found_dir="$additional_libdir"
6206 found_a="$additional_libdir/lib$name.$libext"
6207 if test -f "$additional_libdir/lib$name.la"; then
6208 found_la="$additional_libdir/lib$name.la"
6213 if test "X$found_dir" = "X"; then
6214 for x in $LDFLAGS $LTLIBEXPAT; do
6216 acl_save_prefix="$prefix"
6217 prefix="$acl_final_prefix"
6218 acl_save_exec_prefix="$exec_prefix"
6219 exec_prefix="$acl_final_exec_prefix"
6221 exec_prefix="$acl_save_exec_prefix"
6222 prefix="$acl_save_prefix"
6226 dir=`echo "X$x" | sed -e 's/^X-L//'`
6227 if test -n "$shlibext" && test -f "$dir/lib$name.$shlibext"; then
6229 found_so="$dir/lib$name.$shlibext"
6230 if test -f "$dir/lib$name.la"; then
6231 found_la="$dir/lib$name.la"
6234 if test -f "$dir/lib$name.$libext"; then
6236 found_a="$dir/lib$name.$libext"
6237 if test -f "$dir/lib$name.la"; then
6238 found_la="$dir/lib$name.la"
6244 if test "X$found_dir" != "X"; then
6249 if test "X$found_dir" != "X"; then
6250 LTLIBEXPAT="${LTLIBEXPAT}${LTLIBEXPAT:+ }-L$found_dir -l$name"
6251 if test "X$found_so" != "X"; then
6252 if test "$enable_rpath" = no || test "X$found_dir" = "X/usr/lib"; then
6253 LIBEXPAT="${LIBEXPAT}${LIBEXPAT:+ }$found_so"
6256 for x in $ltrpathdirs; do
6257 if test "X$x" = "X$found_dir"; then
6262 if test -z "$haveit"; then
6263 ltrpathdirs="$ltrpathdirs $found_dir"
6265 if test "$hardcode_direct" = yes; then
6266 LIBEXPAT="${LIBEXPAT}${LIBEXPAT:+ }$found_so"
6268 if test -n "$hardcode_libdir_flag_spec" && test "$hardcode_minus_L" = no; then
6269 LIBEXPAT="${LIBEXPAT}${LIBEXPAT:+ }$found_so"
6271 for x in $rpathdirs; do
6272 if test "X$x" = "X$found_dir"; then
6277 if test -z "$haveit"; then
6278 rpathdirs="$rpathdirs $found_dir"
6282 for x in $LDFLAGS $LIBEXPAT; do
6284 acl_save_prefix="$prefix"
6285 prefix="$acl_final_prefix"
6286 acl_save_exec_prefix="$exec_prefix"
6287 exec_prefix="$acl_final_exec_prefix"
6289 exec_prefix="$acl_save_exec_prefix"
6290 prefix="$acl_save_prefix"
6292 if test "X$x" = "X-L$found_dir"; then
6297 if test -z "$haveit"; then
6298 LIBEXPAT="${LIBEXPAT}${LIBEXPAT:+ }-L$found_dir"
6300 if test "$hardcode_minus_L" != no; then
6301 LIBEXPAT="${LIBEXPAT}${LIBEXPAT:+ }$found_so"
6303 LIBEXPAT="${LIBEXPAT}${LIBEXPAT:+ }-l$name"
6309 if test "X$found_a" != "X"; then
6310 LIBEXPAT="${LIBEXPAT}${LIBEXPAT:+ }$found_a"
6312 LIBEXPAT="${LIBEXPAT}${LIBEXPAT:+ }-L$found_dir -l$name"
6315 additional_includedir=
6316 case "$found_dir" in
6318 basedir=`echo "X$found_dir" | sed -e 's,^X,,' -e 's,/lib/*$,,'`
6319 additional_includedir="$basedir/include"
6322 if test "X$additional_includedir" != "X"; then
6323 if test "X$additional_includedir" != "X/usr/include"; then
6325 if test "X$additional_includedir" = "X/usr/local/include"; then
6326 if test -n "$GCC"; then
6328 linux*) haveit=yes;;
6332 if test -z "$haveit"; then
6333 for x in $CPPFLAGS $INCEXPAT; do
6335 acl_save_prefix="$prefix"
6336 prefix="$acl_final_prefix"
6337 acl_save_exec_prefix="$exec_prefix"
6338 exec_prefix="$acl_final_exec_prefix"
6340 exec_prefix="$acl_save_exec_prefix"
6341 prefix="$acl_save_prefix"
6343 if test "X$x" = "X-I$additional_includedir"; then
6348 if test -z "$haveit"; then
6349 if test -d "$additional_includedir"; then
6350 INCEXPAT="${INCEXPAT}${INCEXPAT:+ }-I$additional_includedir"
6356 if test -n "$found_la"; then
6357 save_libdir="$libdir"
6359 */* | *\\*) . "$found_la" ;;
6360 *) . "./$found_la" ;;
6362 libdir="$save_libdir"
6363 for dep in $dependency_libs; do
6366 additional_libdir=`echo "X$dep" | sed -e 's/^X-L//'`
6367 if test "X$additional_libdir" != "X/usr/lib"; then
6369 if test "X$additional_libdir" = "X/usr/local/lib"; then
6370 if test -n "$GCC"; then
6372 linux*) haveit=yes;;
6376 if test -z "$haveit"; then
6378 for x in $LDFLAGS $LIBEXPAT; do
6380 acl_save_prefix="$prefix"
6381 prefix="$acl_final_prefix"
6382 acl_save_exec_prefix="$exec_prefix"
6383 exec_prefix="$acl_final_exec_prefix"
6385 exec_prefix="$acl_save_exec_prefix"
6386 prefix="$acl_save_prefix"
6388 if test "X$x" = "X-L$additional_libdir"; then
6393 if test -z "$haveit"; then
6394 if test -d "$additional_libdir"; then
6395 LIBEXPAT="${LIBEXPAT}${LIBEXPAT:+ }-L$additional_libdir"
6399 for x in $LDFLAGS $LTLIBEXPAT; do
6401 acl_save_prefix="$prefix"
6402 prefix="$acl_final_prefix"
6403 acl_save_exec_prefix="$exec_prefix"
6404 exec_prefix="$acl_final_exec_prefix"
6406 exec_prefix="$acl_save_exec_prefix"
6407 prefix="$acl_save_prefix"
6409 if test "X$x" = "X-L$additional_libdir"; then
6414 if test -z "$haveit"; then
6415 if test -d "$additional_libdir"; then
6416 LTLIBEXPAT="${LTLIBEXPAT}${LTLIBEXPAT:+ }-L$additional_libdir"
6423 dir=`echo "X$dep" | sed -e 's/^X-R//'`
6424 if test "$enable_rpath" != no; then
6426 for x in $rpathdirs; do
6427 if test "X$x" = "X$dir"; then
6432 if test -z "$haveit"; then
6433 rpathdirs="$rpathdirs $dir"
6436 for x in $ltrpathdirs; do
6437 if test "X$x" = "X$dir"; then
6442 if test -z "$haveit"; then
6443 ltrpathdirs="$ltrpathdirs $dir"
6448 names_next_round="$names_next_round "`echo "X$dep" | sed -e 's/^X-l//'`
6451 names_next_round="$names_next_round "`echo "X$dep" | sed -e 's,^X.*/,,' -e 's,^lib,,' -e 's,\.la$,,'`
6454 LIBEXPAT="${LIBEXPAT}${LIBEXPAT:+ }$dep"
6455 LTLIBEXPAT="${LTLIBEXPAT}${LTLIBEXPAT:+ }$dep"
6461 LIBEXPAT="${LIBEXPAT}${LIBEXPAT:+ }-l$name"
6462 LTLIBEXPAT="${LTLIBEXPAT}${LTLIBEXPAT:+ }-l$name"
6468 if test "X$rpathdirs" != "X"; then
6469 if test -n "$hardcode_libdir_separator"; then
6471 for found_dir in $rpathdirs; do
6472 alldirs="${alldirs}${alldirs:+$hardcode_libdir_separator}$found_dir"
6474 acl_save_libdir="$libdir"
6476 eval flag=\"$hardcode_libdir_flag_spec\"
6477 libdir="$acl_save_libdir"
6478 LIBEXPAT="${LIBEXPAT}${LIBEXPAT:+ }$flag"
6480 for found_dir in $rpathdirs; do
6481 acl_save_libdir="$libdir"
6483 eval flag=\"$hardcode_libdir_flag_spec\"
6484 libdir="$acl_save_libdir"
6485 LIBEXPAT="${LIBEXPAT}${LIBEXPAT:+ }$flag"
6489 if test "X$ltrpathdirs" != "X"; then
6490 for found_dir in $ltrpathdirs; do
6491 LTLIBEXPAT="${LTLIBEXPAT}${LTLIBEXPAT:+ }-R$found_dir"
6496 ac_save_CPPFLAGS="$CPPFLAGS"
6498 for element in $INCEXPAT; do
6500 for x in $CPPFLAGS; do
6502 acl_save_prefix="$prefix"
6503 prefix="$acl_final_prefix"
6504 acl_save_exec_prefix="$exec_prefix"
6505 exec_prefix="$acl_final_exec_prefix"
6507 exec_prefix="$acl_save_exec_prefix"
6508 prefix="$acl_save_prefix"
6510 if test "X$x" = "X$element"; then
6515 if test -z "$haveit"; then
6516 CPPFLAGS="${CPPFLAGS}${CPPFLAGS:+ }$element"
6521 echo "$as_me:$LINENO: checking for libexpat" >&5
6522 echo $ECHO_N "checking for libexpat... $ECHO_C" >&6
6523 if test "${ac_cv_libexpat+set}" = set; then
6524 echo $ECHO_N "(cached) $ECHO_C" >&6
6527 ac_save_LIBS="$LIBS"
6528 LIBS="$LIBS $LIBEXPAT"
6529 cat >conftest.$ac_ext <<_ACEOF
6532 cat confdefs.h >>conftest.$ac_ext
6533 cat >>conftest.$ac_ext <<_ACEOF
6534 /* end confdefs.h. */
6539 XML_Parser p = XML_ParserCreate (0);
6544 rm -f conftest.$ac_objext conftest$ac_exeext
6545 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
6546 (eval $ac_link) 2>conftest.er1
6548 grep -v '^ *+' conftest.er1 >conftest.err
6550 cat conftest.err >&5
6551 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6552 (exit $ac_status); } &&
6553 { ac_try='test -z "$ac_c_werror_flag"
6554 || test ! -s conftest.err'
6555 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6558 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6559 (exit $ac_status); }; } &&
6560 { ac_try='test -s conftest$ac_exeext'
6561 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6564 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6565 (exit $ac_status); }; }; then
6568 echo "$as_me: failed program was:" >&5
6569 sed 's/^/| /' conftest.$ac_ext >&5
6573 rm -f conftest.err conftest.$ac_objext \
6574 conftest$ac_exeext conftest.$ac_ext
6575 LIBS="$ac_save_LIBS"
6578 echo "$as_me:$LINENO: result: $ac_cv_libexpat" >&5
6579 echo "${ECHO_T}$ac_cv_libexpat" >&6
6580 if test "$ac_cv_libexpat" = yes; then
6583 cat >>confdefs.h <<\_ACEOF
6584 #define HAVE_LIBEXPAT 1
6587 echo "$as_me:$LINENO: checking how to link with libexpat" >&5
6588 echo $ECHO_N "checking how to link with libexpat... $ECHO_C" >&6
6589 echo "$as_me:$LINENO: result: $LIBEXPAT" >&5
6590 echo "${ECHO_T}$LIBEXPAT" >&6
6593 CPPFLAGS="$ac_save_CPPFLAGS"
6603 if test "$HAVE_LIBEXPAT" != yes; then
6604 if test "$with_expat" = yes; then
6605 { { echo "$as_me:$LINENO: error: expat is missing or unusable" >&5
6606 echo "$as_me: error: expat is missing or unusable" >&2;}
6607 { (exit 1); exit 1; }; }
6609 { echo "$as_me:$LINENO: WARNING: expat is missing or unusable; some features may be unavailable." >&5
6610 echo "$as_me: WARNING: expat is missing or unusable; some features may be unavailable." >&2;}
6614 LIBS="$LIBS $LIBEXPAT"
6616 for ac_func in XML_StopParser
6618 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
6619 echo "$as_me:$LINENO: checking for $ac_func" >&5
6620 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
6621 if eval "test \"\${$as_ac_var+set}\" = set"; then
6622 echo $ECHO_N "(cached) $ECHO_C" >&6
6624 cat >conftest.$ac_ext <<_ACEOF
6627 cat confdefs.h >>conftest.$ac_ext
6628 cat >>conftest.$ac_ext <<_ACEOF
6629 /* end confdefs.h. */
6630 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
6631 For example, HP-UX 11i <limits.h> declares gettimeofday. */
6632 #define $ac_func innocuous_$ac_func
6634 /* System header to define __stub macros and hopefully few prototypes,
6635 which can conflict with char $ac_func (); below.
6636 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
6637 <limits.h> exists even on freestanding compilers. */
6640 # include <limits.h>
6642 # include <assert.h>
6647 /* Override any gcc2 internal prototype to avoid an error. */
6652 /* We use char because int might match the return type of a gcc2
6653 builtin and then its argument prototype would still apply. */
6655 /* The GNU C library defines this for functions which it implements
6656 to always fail with ENOSYS. Some functions are actually named
6657 something starting with __ and the normal name is an alias. */
6658 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
6661 char (*f) () = $ac_func;
6670 return f != $ac_func;
6675 rm -f conftest.$ac_objext conftest$ac_exeext
6676 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
6677 (eval $ac_link) 2>conftest.er1
6679 grep -v '^ *+' conftest.er1 >conftest.err
6681 cat conftest.err >&5
6682 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6683 (exit $ac_status); } &&
6684 { ac_try='test -z "$ac_c_werror_flag"
6685 || test ! -s conftest.err'
6686 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6689 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6690 (exit $ac_status); }; } &&
6691 { ac_try='test -s conftest$ac_exeext'
6692 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6695 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6696 (exit $ac_status); }; }; then
6697 eval "$as_ac_var=yes"
6699 echo "$as_me: failed program was:" >&5
6700 sed 's/^/| /' conftest.$ac_ext >&5
6702 eval "$as_ac_var=no"
6704 rm -f conftest.err conftest.$ac_objext \
6705 conftest$ac_exeext conftest.$ac_ext
6707 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
6708 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
6709 if test `eval echo '${'$as_ac_var'}'` = yes; then
6710 cat >>confdefs.h <<_ACEOF
6711 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
6721 # ------------------------- #
6722 # Checks for header files. #
6723 # ------------------------- #
6731 for ac_hdr in dirent.h sys/ndir.h sys/dir.h ndir.h; do
6732 as_ac_Header=`echo "ac_cv_header_dirent_$ac_hdr" | $as_tr_sh`
6733 echo "$as_me:$LINENO: checking for $ac_hdr that defines DIR" >&5
6734 echo $ECHO_N "checking for $ac_hdr that defines DIR... $ECHO_C" >&6
6735 if eval "test \"\${$as_ac_Header+set}\" = set"; then
6736 echo $ECHO_N "(cached) $ECHO_C" >&6
6738 cat >conftest.$ac_ext <<_ACEOF
6741 cat confdefs.h >>conftest.$ac_ext
6742 cat >>conftest.$ac_ext <<_ACEOF
6743 /* end confdefs.h. */
6744 #include <sys/types.h>
6756 rm -f conftest.$ac_objext
6757 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
6758 (eval $ac_compile) 2>conftest.er1
6760 grep -v '^ *+' conftest.er1 >conftest.err
6762 cat conftest.err >&5
6763 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6764 (exit $ac_status); } &&
6765 { ac_try='test -z "$ac_c_werror_flag"
6766 || test ! -s conftest.err'
6767 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6770 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6771 (exit $ac_status); }; } &&
6772 { ac_try='test -s conftest.$ac_objext'
6773 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6776 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6777 (exit $ac_status); }; }; then
6778 eval "$as_ac_Header=yes"
6780 echo "$as_me: failed program was:" >&5
6781 sed 's/^/| /' conftest.$ac_ext >&5
6783 eval "$as_ac_Header=no"
6785 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
6787 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
6788 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
6789 if test `eval echo '${'$as_ac_Header'}'` = yes; then
6790 cat >>confdefs.h <<_ACEOF
6791 #define `echo "HAVE_$ac_hdr" | $as_tr_cpp` 1
6794 ac_header_dirent=$ac_hdr; break
6798 # Two versions of opendir et al. are in -ldir and -lx on SCO Xenix.
6799 if test $ac_header_dirent = dirent.h; then
6800 echo "$as_me:$LINENO: checking for library containing opendir" >&5
6801 echo $ECHO_N "checking for library containing opendir... $ECHO_C" >&6
6802 if test "${ac_cv_search_opendir+set}" = set; then
6803 echo $ECHO_N "(cached) $ECHO_C" >&6
6805 ac_func_search_save_LIBS=$LIBS
6806 ac_cv_search_opendir=no
6807 cat >conftest.$ac_ext <<_ACEOF
6810 cat confdefs.h >>conftest.$ac_ext
6811 cat >>conftest.$ac_ext <<_ACEOF
6812 /* end confdefs.h. */
6814 /* Override any gcc2 internal prototype to avoid an error. */
6818 /* We use char because int might match the return type of a gcc2
6819 builtin and then its argument prototype would still apply. */
6829 rm -f conftest.$ac_objext conftest$ac_exeext
6830 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
6831 (eval $ac_link) 2>conftest.er1
6833 grep -v '^ *+' conftest.er1 >conftest.err
6835 cat conftest.err >&5
6836 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6837 (exit $ac_status); } &&
6838 { ac_try='test -z "$ac_c_werror_flag"
6839 || test ! -s conftest.err'
6840 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6843 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6844 (exit $ac_status); }; } &&
6845 { ac_try='test -s conftest$ac_exeext'
6846 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6849 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6850 (exit $ac_status); }; }; then
6851 ac_cv_search_opendir="none required"
6853 echo "$as_me: failed program was:" >&5
6854 sed 's/^/| /' conftest.$ac_ext >&5
6857 rm -f conftest.err conftest.$ac_objext \
6858 conftest$ac_exeext conftest.$ac_ext
6859 if test "$ac_cv_search_opendir" = no; then
6860 for ac_lib in dir; do
6861 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
6862 cat >conftest.$ac_ext <<_ACEOF
6865 cat confdefs.h >>conftest.$ac_ext
6866 cat >>conftest.$ac_ext <<_ACEOF
6867 /* end confdefs.h. */
6869 /* Override any gcc2 internal prototype to avoid an error. */
6873 /* We use char because int might match the return type of a gcc2
6874 builtin and then its argument prototype would still apply. */
6884 rm -f conftest.$ac_objext conftest$ac_exeext
6885 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
6886 (eval $ac_link) 2>conftest.er1
6888 grep -v '^ *+' conftest.er1 >conftest.err
6890 cat conftest.err >&5
6891 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6892 (exit $ac_status); } &&
6893 { ac_try='test -z "$ac_c_werror_flag"
6894 || test ! -s conftest.err'
6895 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6898 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6899 (exit $ac_status); }; } &&
6900 { ac_try='test -s conftest$ac_exeext'
6901 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6904 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6905 (exit $ac_status); }; }; then
6906 ac_cv_search_opendir="-l$ac_lib"
6909 echo "$as_me: failed program was:" >&5
6910 sed 's/^/| /' conftest.$ac_ext >&5
6913 rm -f conftest.err conftest.$ac_objext \
6914 conftest$ac_exeext conftest.$ac_ext
6917 LIBS=$ac_func_search_save_LIBS
6919 echo "$as_me:$LINENO: result: $ac_cv_search_opendir" >&5
6920 echo "${ECHO_T}$ac_cv_search_opendir" >&6
6921 if test "$ac_cv_search_opendir" != no; then
6922 test "$ac_cv_search_opendir" = "none required" || LIBS="$ac_cv_search_opendir $LIBS"
6927 echo "$as_me:$LINENO: checking for library containing opendir" >&5
6928 echo $ECHO_N "checking for library containing opendir... $ECHO_C" >&6
6929 if test "${ac_cv_search_opendir+set}" = set; then
6930 echo $ECHO_N "(cached) $ECHO_C" >&6
6932 ac_func_search_save_LIBS=$LIBS
6933 ac_cv_search_opendir=no
6934 cat >conftest.$ac_ext <<_ACEOF
6937 cat confdefs.h >>conftest.$ac_ext
6938 cat >>conftest.$ac_ext <<_ACEOF
6939 /* end confdefs.h. */
6941 /* Override any gcc2 internal prototype to avoid an error. */
6945 /* We use char because int might match the return type of a gcc2
6946 builtin and then its argument prototype would still apply. */
6956 rm -f conftest.$ac_objext conftest$ac_exeext
6957 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
6958 (eval $ac_link) 2>conftest.er1
6960 grep -v '^ *+' conftest.er1 >conftest.err
6962 cat conftest.err >&5
6963 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6964 (exit $ac_status); } &&
6965 { ac_try='test -z "$ac_c_werror_flag"
6966 || test ! -s conftest.err'
6967 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6970 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6971 (exit $ac_status); }; } &&
6972 { ac_try='test -s conftest$ac_exeext'
6973 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6976 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6977 (exit $ac_status); }; }; then
6978 ac_cv_search_opendir="none required"
6980 echo "$as_me: failed program was:" >&5
6981 sed 's/^/| /' conftest.$ac_ext >&5
6984 rm -f conftest.err conftest.$ac_objext \
6985 conftest$ac_exeext conftest.$ac_ext
6986 if test "$ac_cv_search_opendir" = no; then
6988 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
6989 cat >conftest.$ac_ext <<_ACEOF
6992 cat confdefs.h >>conftest.$ac_ext
6993 cat >>conftest.$ac_ext <<_ACEOF
6994 /* end confdefs.h. */
6996 /* Override any gcc2 internal prototype to avoid an error. */
7000 /* We use char because int might match the return type of a gcc2
7001 builtin and then its argument prototype would still apply. */
7011 rm -f conftest.$ac_objext conftest$ac_exeext
7012 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
7013 (eval $ac_link) 2>conftest.er1
7015 grep -v '^ *+' conftest.er1 >conftest.err
7017 cat conftest.err >&5
7018 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7019 (exit $ac_status); } &&
7020 { ac_try='test -z "$ac_c_werror_flag"
7021 || test ! -s conftest.err'
7022 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7025 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7026 (exit $ac_status); }; } &&
7027 { ac_try='test -s conftest$ac_exeext'
7028 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7031 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7032 (exit $ac_status); }; }; then
7033 ac_cv_search_opendir="-l$ac_lib"
7036 echo "$as_me: failed program was:" >&5
7037 sed 's/^/| /' conftest.$ac_ext >&5
7040 rm -f conftest.err conftest.$ac_objext \
7041 conftest$ac_exeext conftest.$ac_ext
7044 LIBS=$ac_func_search_save_LIBS
7046 echo "$as_me:$LINENO: result: $ac_cv_search_opendir" >&5
7047 echo "${ECHO_T}$ac_cv_search_opendir" >&6
7048 if test "$ac_cv_search_opendir" != no; then
7049 test "$ac_cv_search_opendir" = "none required" || LIBS="$ac_cv_search_opendir $LIBS"
7055 echo "$as_me:$LINENO: checking whether stat file-mode macros are broken" >&5
7056 echo $ECHO_N "checking whether stat file-mode macros are broken... $ECHO_C" >&6
7057 if test "${ac_cv_header_stat_broken+set}" = set; then
7058 echo $ECHO_N "(cached) $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 <sys/types.h>
7067 #include <sys/stat.h>
7069 #if defined(S_ISBLK) && defined(S_IFDIR)
7070 # if S_ISBLK (S_IFDIR)
7075 #if defined(S_ISBLK) && defined(S_IFCHR)
7076 # if S_ISBLK (S_IFCHR)
7081 #if defined(S_ISLNK) && defined(S_IFREG)
7082 # if S_ISLNK (S_IFREG)
7087 #if defined(S_ISSOCK) && defined(S_IFREG)
7088 # if S_ISSOCK (S_IFREG)
7094 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
7095 $EGREP "You lose" >/dev/null 2>&1; then
7096 ac_cv_header_stat_broken=yes
7098 ac_cv_header_stat_broken=no
7103 echo "$as_me:$LINENO: result: $ac_cv_header_stat_broken" >&5
7104 echo "${ECHO_T}$ac_cv_header_stat_broken" >&6
7105 if test $ac_cv_header_stat_broken = yes; then
7107 cat >>confdefs.h <<\_ACEOF
7108 #define STAT_MACROS_BROKEN 1
7113 echo "$as_me:$LINENO: checking for ANSI C header files" >&5
7114 echo $ECHO_N "checking for ANSI C header files... $ECHO_C" >&6
7115 if test "${ac_cv_header_stdc+set}" = set; then
7116 echo $ECHO_N "(cached) $ECHO_C" >&6
7118 cat >conftest.$ac_ext <<_ACEOF
7121 cat confdefs.h >>conftest.$ac_ext
7122 cat >>conftest.$ac_ext <<_ACEOF
7123 /* end confdefs.h. */
7137 rm -f conftest.$ac_objext
7138 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
7139 (eval $ac_compile) 2>conftest.er1
7141 grep -v '^ *+' conftest.er1 >conftest.err
7143 cat conftest.err >&5
7144 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7145 (exit $ac_status); } &&
7146 { ac_try='test -z "$ac_c_werror_flag"
7147 || test ! -s conftest.err'
7148 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7151 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7152 (exit $ac_status); }; } &&
7153 { ac_try='test -s conftest.$ac_objext'
7154 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7157 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7158 (exit $ac_status); }; }; then
7159 ac_cv_header_stdc=yes
7161 echo "$as_me: failed program was:" >&5
7162 sed 's/^/| /' conftest.$ac_ext >&5
7164 ac_cv_header_stdc=no
7166 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
7168 if test $ac_cv_header_stdc = yes; then
7169 # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
7170 cat >conftest.$ac_ext <<_ACEOF
7173 cat confdefs.h >>conftest.$ac_ext
7174 cat >>conftest.$ac_ext <<_ACEOF
7175 /* end confdefs.h. */
7179 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
7180 $EGREP "memchr" >/dev/null 2>&1; then
7183 ac_cv_header_stdc=no
7189 if test $ac_cv_header_stdc = yes; then
7190 # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
7191 cat >conftest.$ac_ext <<_ACEOF
7194 cat confdefs.h >>conftest.$ac_ext
7195 cat >>conftest.$ac_ext <<_ACEOF
7196 /* end confdefs.h. */
7200 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
7201 $EGREP "free" >/dev/null 2>&1; then
7204 ac_cv_header_stdc=no
7210 if test $ac_cv_header_stdc = yes; then
7211 # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
7212 if test "$cross_compiling" = yes; then
7215 cat >conftest.$ac_ext <<_ACEOF
7218 cat confdefs.h >>conftest.$ac_ext
7219 cat >>conftest.$ac_ext <<_ACEOF
7220 /* end confdefs.h. */
7222 #if ((' ' & 0x0FF) == 0x020)
7223 # define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
7224 # define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
7226 # define ISLOWER(c) \
7227 (('a' <= (c) && (c) <= 'i') \
7228 || ('j' <= (c) && (c) <= 'r') \
7229 || ('s' <= (c) && (c) <= 'z'))
7230 # define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
7233 #define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
7238 for (i = 0; i < 256; i++)
7239 if (XOR (islower (i), ISLOWER (i))
7240 || toupper (i) != TOUPPER (i))
7245 rm -f conftest$ac_exeext
7246 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
7247 (eval $ac_link) 2>&5
7249 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7250 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
7251 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7254 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7255 (exit $ac_status); }; }; then
7258 echo "$as_me: program exited with status $ac_status" >&5
7259 echo "$as_me: failed program was:" >&5
7260 sed 's/^/| /' conftest.$ac_ext >&5
7263 ac_cv_header_stdc=no
7265 rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
7269 echo "$as_me:$LINENO: result: $ac_cv_header_stdc" >&5
7270 echo "${ECHO_T}$ac_cv_header_stdc" >&6
7271 if test $ac_cv_header_stdc = yes; then
7273 cat >>confdefs.h <<\_ACEOF
7274 #define STDC_HEADERS 1
7280 for ac_header in nlist.h
7282 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
7283 if eval "test \"\${$as_ac_Header+set}\" = set"; then
7284 echo "$as_me:$LINENO: checking for $ac_header" >&5
7285 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
7286 if eval "test \"\${$as_ac_Header+set}\" = set"; then
7287 echo $ECHO_N "(cached) $ECHO_C" >&6
7289 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
7290 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
7292 # Is the header compilable?
7293 echo "$as_me:$LINENO: checking $ac_header usability" >&5
7294 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
7295 cat >conftest.$ac_ext <<_ACEOF
7298 cat confdefs.h >>conftest.$ac_ext
7299 cat >>conftest.$ac_ext <<_ACEOF
7300 /* end confdefs.h. */
7301 $ac_includes_default
7302 #include <$ac_header>
7304 rm -f conftest.$ac_objext
7305 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
7306 (eval $ac_compile) 2>conftest.er1
7308 grep -v '^ *+' conftest.er1 >conftest.err
7310 cat conftest.err >&5
7311 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7312 (exit $ac_status); } &&
7313 { ac_try='test -z "$ac_c_werror_flag"
7314 || test ! -s conftest.err'
7315 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7318 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7319 (exit $ac_status); }; } &&
7320 { ac_try='test -s conftest.$ac_objext'
7321 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7324 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7325 (exit $ac_status); }; }; then
7326 ac_header_compiler=yes
7328 echo "$as_me: failed program was:" >&5
7329 sed 's/^/| /' conftest.$ac_ext >&5
7331 ac_header_compiler=no
7333 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
7334 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
7335 echo "${ECHO_T}$ac_header_compiler" >&6
7337 # Is the header present?
7338 echo "$as_me:$LINENO: checking $ac_header presence" >&5
7339 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
7340 cat >conftest.$ac_ext <<_ACEOF
7343 cat confdefs.h >>conftest.$ac_ext
7344 cat >>conftest.$ac_ext <<_ACEOF
7345 /* end confdefs.h. */
7346 #include <$ac_header>
7348 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
7349 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
7351 grep -v '^ *+' conftest.er1 >conftest.err
7353 cat conftest.err >&5
7354 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7355 (exit $ac_status); } >/dev/null; then
7356 if test -s conftest.err; then
7357 ac_cpp_err=$ac_c_preproc_warn_flag
7358 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
7365 if test -z "$ac_cpp_err"; then
7366 ac_header_preproc=yes
7368 echo "$as_me: failed program was:" >&5
7369 sed 's/^/| /' conftest.$ac_ext >&5
7371 ac_header_preproc=no
7373 rm -f conftest.err conftest.$ac_ext
7374 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
7375 echo "${ECHO_T}$ac_header_preproc" >&6
7377 # So? What about this header?
7378 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
7380 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
7381 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
7382 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
7383 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
7384 ac_header_preproc=yes
7387 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
7388 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
7389 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
7390 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
7391 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
7392 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
7393 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
7394 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
7395 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
7396 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
7397 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
7398 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
7401 ## ------------------------------------------ ##
7402 ## Report this to the AC_PACKAGE_NAME lists. ##
7403 ## ------------------------------------------ ##
7406 sed "s/^/$as_me: WARNING: /" >&2
7409 echo "$as_me:$LINENO: checking for $ac_header" >&5
7410 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
7411 if eval "test \"\${$as_ac_Header+set}\" = set"; then
7412 echo $ECHO_N "(cached) $ECHO_C" >&6
7414 eval "$as_ac_Header=\$ac_header_preproc"
7416 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
7417 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
7420 if test `eval echo '${'$as_ac_Header'}'` = yes; then
7421 cat >>confdefs.h <<_ACEOF
7422 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
7430 for ac_header in link.h
7432 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
7433 echo "$as_me:$LINENO: checking for $ac_header" >&5
7434 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
7435 if eval "test \"\${$as_ac_Header+set}\" = set"; then
7436 echo $ECHO_N "(cached) $ECHO_C" >&6
7438 cat >conftest.$ac_ext <<_ACEOF
7441 cat confdefs.h >>conftest.$ac_ext
7442 cat >>conftest.$ac_ext <<_ACEOF
7443 /* end confdefs.h. */
7444 #if HAVE_SYS_TYPES_H
7445 # include <sys/types.h>
7452 #include <$ac_header>
7454 rm -f conftest.$ac_objext
7455 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
7456 (eval $ac_compile) 2>conftest.er1
7458 grep -v '^ *+' conftest.er1 >conftest.err
7460 cat conftest.err >&5
7461 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7462 (exit $ac_status); } &&
7463 { ac_try='test -z "$ac_c_werror_flag"
7464 || test ! -s conftest.err'
7465 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7468 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7469 (exit $ac_status); }; } &&
7470 { ac_try='test -s conftest.$ac_objext'
7471 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7474 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7475 (exit $ac_status); }; }; then
7476 eval "$as_ac_Header=yes"
7478 echo "$as_me: failed program was:" >&5
7479 sed 's/^/| /' conftest.$ac_ext >&5
7481 eval "$as_ac_Header=no"
7483 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
7485 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
7486 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
7487 if test `eval echo '${'$as_ac_Header'}'` = yes; then
7488 cat >>confdefs.h <<_ACEOF
7489 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
7497 for ac_header in machine/reg.h
7499 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
7500 if eval "test \"\${$as_ac_Header+set}\" = set"; then
7501 echo "$as_me:$LINENO: checking for $ac_header" >&5
7502 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
7503 if eval "test \"\${$as_ac_Header+set}\" = set"; then
7504 echo $ECHO_N "(cached) $ECHO_C" >&6
7506 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
7507 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
7509 # Is the header compilable?
7510 echo "$as_me:$LINENO: checking $ac_header usability" >&5
7511 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
7512 cat >conftest.$ac_ext <<_ACEOF
7515 cat confdefs.h >>conftest.$ac_ext
7516 cat >>conftest.$ac_ext <<_ACEOF
7517 /* end confdefs.h. */
7518 $ac_includes_default
7519 #include <$ac_header>
7521 rm -f conftest.$ac_objext
7522 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
7523 (eval $ac_compile) 2>conftest.er1
7525 grep -v '^ *+' conftest.er1 >conftest.err
7527 cat conftest.err >&5
7528 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7529 (exit $ac_status); } &&
7530 { ac_try='test -z "$ac_c_werror_flag"
7531 || test ! -s conftest.err'
7532 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7535 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7536 (exit $ac_status); }; } &&
7537 { ac_try='test -s conftest.$ac_objext'
7538 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7541 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7542 (exit $ac_status); }; }; then
7543 ac_header_compiler=yes
7545 echo "$as_me: failed program was:" >&5
7546 sed 's/^/| /' conftest.$ac_ext >&5
7548 ac_header_compiler=no
7550 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
7551 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
7552 echo "${ECHO_T}$ac_header_compiler" >&6
7554 # Is the header present?
7555 echo "$as_me:$LINENO: checking $ac_header presence" >&5
7556 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
7557 cat >conftest.$ac_ext <<_ACEOF
7560 cat confdefs.h >>conftest.$ac_ext
7561 cat >>conftest.$ac_ext <<_ACEOF
7562 /* end confdefs.h. */
7563 #include <$ac_header>
7565 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
7566 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
7568 grep -v '^ *+' conftest.er1 >conftest.err
7570 cat conftest.err >&5
7571 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7572 (exit $ac_status); } >/dev/null; then
7573 if test -s conftest.err; then
7574 ac_cpp_err=$ac_c_preproc_warn_flag
7575 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
7582 if test -z "$ac_cpp_err"; then
7583 ac_header_preproc=yes
7585 echo "$as_me: failed program was:" >&5
7586 sed 's/^/| /' conftest.$ac_ext >&5
7588 ac_header_preproc=no
7590 rm -f conftest.err conftest.$ac_ext
7591 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
7592 echo "${ECHO_T}$ac_header_preproc" >&6
7594 # So? What about this header?
7595 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
7597 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
7598 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
7599 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
7600 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
7601 ac_header_preproc=yes
7604 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
7605 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
7606 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
7607 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
7608 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
7609 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
7610 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
7611 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
7612 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
7613 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
7614 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
7615 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
7618 ## ------------------------------------------ ##
7619 ## Report this to the AC_PACKAGE_NAME lists. ##
7620 ## ------------------------------------------ ##
7623 sed "s/^/$as_me: WARNING: /" >&2
7626 echo "$as_me:$LINENO: checking for $ac_header" >&5
7627 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
7628 if eval "test \"\${$as_ac_Header+set}\" = set"; then
7629 echo $ECHO_N "(cached) $ECHO_C" >&6
7631 eval "$as_ac_Header=\$ac_header_preproc"
7633 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
7634 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
7637 if test `eval echo '${'$as_ac_Header'}'` = yes; then
7638 cat >>confdefs.h <<_ACEOF
7639 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
7648 for ac_header in poll.h sys/poll.h
7650 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
7651 if eval "test \"\${$as_ac_Header+set}\" = set"; then
7652 echo "$as_me:$LINENO: checking for $ac_header" >&5
7653 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
7654 if eval "test \"\${$as_ac_Header+set}\" = set"; then
7655 echo $ECHO_N "(cached) $ECHO_C" >&6
7657 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
7658 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
7660 # Is the header compilable?
7661 echo "$as_me:$LINENO: checking $ac_header usability" >&5
7662 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
7663 cat >conftest.$ac_ext <<_ACEOF
7666 cat confdefs.h >>conftest.$ac_ext
7667 cat >>conftest.$ac_ext <<_ACEOF
7668 /* end confdefs.h. */
7669 $ac_includes_default
7670 #include <$ac_header>
7672 rm -f conftest.$ac_objext
7673 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
7674 (eval $ac_compile) 2>conftest.er1
7676 grep -v '^ *+' conftest.er1 >conftest.err
7678 cat conftest.err >&5
7679 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7680 (exit $ac_status); } &&
7681 { ac_try='test -z "$ac_c_werror_flag"
7682 || test ! -s conftest.err'
7683 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7686 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7687 (exit $ac_status); }; } &&
7688 { ac_try='test -s conftest.$ac_objext'
7689 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7692 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7693 (exit $ac_status); }; }; then
7694 ac_header_compiler=yes
7696 echo "$as_me: failed program was:" >&5
7697 sed 's/^/| /' conftest.$ac_ext >&5
7699 ac_header_compiler=no
7701 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
7702 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
7703 echo "${ECHO_T}$ac_header_compiler" >&6
7705 # Is the header present?
7706 echo "$as_me:$LINENO: checking $ac_header presence" >&5
7707 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
7708 cat >conftest.$ac_ext <<_ACEOF
7711 cat confdefs.h >>conftest.$ac_ext
7712 cat >>conftest.$ac_ext <<_ACEOF
7713 /* end confdefs.h. */
7714 #include <$ac_header>
7716 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
7717 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
7719 grep -v '^ *+' conftest.er1 >conftest.err
7721 cat conftest.err >&5
7722 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7723 (exit $ac_status); } >/dev/null; then
7724 if test -s conftest.err; then
7725 ac_cpp_err=$ac_c_preproc_warn_flag
7726 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
7733 if test -z "$ac_cpp_err"; then
7734 ac_header_preproc=yes
7736 echo "$as_me: failed program was:" >&5
7737 sed 's/^/| /' conftest.$ac_ext >&5
7739 ac_header_preproc=no
7741 rm -f conftest.err conftest.$ac_ext
7742 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
7743 echo "${ECHO_T}$ac_header_preproc" >&6
7745 # So? What about this header?
7746 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
7748 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
7749 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
7750 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
7751 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
7752 ac_header_preproc=yes
7755 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
7756 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
7757 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
7758 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
7759 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
7760 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
7761 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
7762 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
7763 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
7764 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
7765 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
7766 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
7769 ## ------------------------------------------ ##
7770 ## Report this to the AC_PACKAGE_NAME lists. ##
7771 ## ------------------------------------------ ##
7774 sed "s/^/$as_me: WARNING: /" >&2
7777 echo "$as_me:$LINENO: checking for $ac_header" >&5
7778 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
7779 if eval "test \"\${$as_ac_Header+set}\" = set"; then
7780 echo $ECHO_N "(cached) $ECHO_C" >&6
7782 eval "$as_ac_Header=\$ac_header_preproc"
7784 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
7785 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
7788 if test `eval echo '${'$as_ac_Header'}'` = yes; then
7789 cat >>confdefs.h <<_ACEOF
7790 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
7800 for ac_header in proc_service.h thread_db.h gnu/libc-version.h
7802 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
7803 if eval "test \"\${$as_ac_Header+set}\" = set"; then
7804 echo "$as_me:$LINENO: checking for $ac_header" >&5
7805 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
7806 if eval "test \"\${$as_ac_Header+set}\" = set"; then
7807 echo $ECHO_N "(cached) $ECHO_C" >&6
7809 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
7810 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
7812 # Is the header compilable?
7813 echo "$as_me:$LINENO: checking $ac_header usability" >&5
7814 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
7815 cat >conftest.$ac_ext <<_ACEOF
7818 cat confdefs.h >>conftest.$ac_ext
7819 cat >>conftest.$ac_ext <<_ACEOF
7820 /* end confdefs.h. */
7821 $ac_includes_default
7822 #include <$ac_header>
7824 rm -f conftest.$ac_objext
7825 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
7826 (eval $ac_compile) 2>conftest.er1
7828 grep -v '^ *+' conftest.er1 >conftest.err
7830 cat conftest.err >&5
7831 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7832 (exit $ac_status); } &&
7833 { ac_try='test -z "$ac_c_werror_flag"
7834 || test ! -s conftest.err'
7835 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7838 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7839 (exit $ac_status); }; } &&
7840 { ac_try='test -s conftest.$ac_objext'
7841 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7844 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7845 (exit $ac_status); }; }; then
7846 ac_header_compiler=yes
7848 echo "$as_me: failed program was:" >&5
7849 sed 's/^/| /' conftest.$ac_ext >&5
7851 ac_header_compiler=no
7853 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
7854 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
7855 echo "${ECHO_T}$ac_header_compiler" >&6
7857 # Is the header present?
7858 echo "$as_me:$LINENO: checking $ac_header presence" >&5
7859 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
7860 cat >conftest.$ac_ext <<_ACEOF
7863 cat confdefs.h >>conftest.$ac_ext
7864 cat >>conftest.$ac_ext <<_ACEOF
7865 /* end confdefs.h. */
7866 #include <$ac_header>
7868 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
7869 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
7871 grep -v '^ *+' conftest.er1 >conftest.err
7873 cat conftest.err >&5
7874 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7875 (exit $ac_status); } >/dev/null; then
7876 if test -s conftest.err; then
7877 ac_cpp_err=$ac_c_preproc_warn_flag
7878 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
7885 if test -z "$ac_cpp_err"; then
7886 ac_header_preproc=yes
7888 echo "$as_me: failed program was:" >&5
7889 sed 's/^/| /' conftest.$ac_ext >&5
7891 ac_header_preproc=no
7893 rm -f conftest.err conftest.$ac_ext
7894 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
7895 echo "${ECHO_T}$ac_header_preproc" >&6
7897 # So? What about this header?
7898 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
7900 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
7901 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
7902 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
7903 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
7904 ac_header_preproc=yes
7907 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
7908 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
7909 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
7910 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
7911 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
7912 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
7913 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
7914 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
7915 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
7916 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
7917 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
7918 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
7921 ## ------------------------------------------ ##
7922 ## Report this to the AC_PACKAGE_NAME lists. ##
7923 ## ------------------------------------------ ##
7926 sed "s/^/$as_me: WARNING: /" >&2
7929 echo "$as_me:$LINENO: checking for $ac_header" >&5
7930 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
7931 if eval "test \"\${$as_ac_Header+set}\" = set"; then
7932 echo $ECHO_N "(cached) $ECHO_C" >&6
7934 eval "$as_ac_Header=\$ac_header_preproc"
7936 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
7937 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
7940 if test `eval echo '${'$as_ac_Header'}'` = yes; then
7941 cat >>confdefs.h <<_ACEOF
7942 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
7950 for ac_header in signal.h
7952 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
7953 if eval "test \"\${$as_ac_Header+set}\" = set"; then
7954 echo "$as_me:$LINENO: checking for $ac_header" >&5
7955 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
7956 if eval "test \"\${$as_ac_Header+set}\" = set"; then
7957 echo $ECHO_N "(cached) $ECHO_C" >&6
7959 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
7960 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
7962 # Is the header compilable?
7963 echo "$as_me:$LINENO: checking $ac_header usability" >&5
7964 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
7965 cat >conftest.$ac_ext <<_ACEOF
7968 cat confdefs.h >>conftest.$ac_ext
7969 cat >>conftest.$ac_ext <<_ACEOF
7970 /* end confdefs.h. */
7971 $ac_includes_default
7972 #include <$ac_header>
7974 rm -f conftest.$ac_objext
7975 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
7976 (eval $ac_compile) 2>conftest.er1
7978 grep -v '^ *+' conftest.er1 >conftest.err
7980 cat conftest.err >&5
7981 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7982 (exit $ac_status); } &&
7983 { ac_try='test -z "$ac_c_werror_flag"
7984 || test ! -s conftest.err'
7985 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7988 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7989 (exit $ac_status); }; } &&
7990 { ac_try='test -s conftest.$ac_objext'
7991 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7994 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7995 (exit $ac_status); }; }; then
7996 ac_header_compiler=yes
7998 echo "$as_me: failed program was:" >&5
7999 sed 's/^/| /' conftest.$ac_ext >&5
8001 ac_header_compiler=no
8003 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
8004 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
8005 echo "${ECHO_T}$ac_header_compiler" >&6
8007 # Is the header present?
8008 echo "$as_me:$LINENO: checking $ac_header presence" >&5
8009 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
8010 cat >conftest.$ac_ext <<_ACEOF
8013 cat confdefs.h >>conftest.$ac_ext
8014 cat >>conftest.$ac_ext <<_ACEOF
8015 /* end confdefs.h. */
8016 #include <$ac_header>
8018 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
8019 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
8021 grep -v '^ *+' conftest.er1 >conftest.err
8023 cat conftest.err >&5
8024 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8025 (exit $ac_status); } >/dev/null; then
8026 if test -s conftest.err; then
8027 ac_cpp_err=$ac_c_preproc_warn_flag
8028 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
8035 if test -z "$ac_cpp_err"; then
8036 ac_header_preproc=yes
8038 echo "$as_me: failed program was:" >&5
8039 sed 's/^/| /' conftest.$ac_ext >&5
8041 ac_header_preproc=no
8043 rm -f conftest.err conftest.$ac_ext
8044 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
8045 echo "${ECHO_T}$ac_header_preproc" >&6
8047 # So? What about this header?
8048 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
8050 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
8051 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
8052 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
8053 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
8054 ac_header_preproc=yes
8057 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
8058 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
8059 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
8060 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
8061 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
8062 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
8063 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
8064 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
8065 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
8066 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
8067 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
8068 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
8071 ## ------------------------------------------ ##
8072 ## Report this to the AC_PACKAGE_NAME lists. ##
8073 ## ------------------------------------------ ##
8076 sed "s/^/$as_me: WARNING: /" >&2
8079 echo "$as_me:$LINENO: checking for $ac_header" >&5
8080 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
8081 if eval "test \"\${$as_ac_Header+set}\" = set"; then
8082 echo $ECHO_N "(cached) $ECHO_C" >&6
8084 eval "$as_ac_Header=\$ac_header_preproc"
8086 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
8087 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
8090 if test `eval echo '${'$as_ac_Header'}'` = yes; then
8091 cat >>confdefs.h <<_ACEOF
8092 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
8100 for ac_header in stddef.h
8102 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
8103 if eval "test \"\${$as_ac_Header+set}\" = set"; then
8104 echo "$as_me:$LINENO: checking for $ac_header" >&5
8105 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
8106 if eval "test \"\${$as_ac_Header+set}\" = set"; then
8107 echo $ECHO_N "(cached) $ECHO_C" >&6
8109 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
8110 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
8112 # Is the header compilable?
8113 echo "$as_me:$LINENO: checking $ac_header usability" >&5
8114 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
8115 cat >conftest.$ac_ext <<_ACEOF
8118 cat confdefs.h >>conftest.$ac_ext
8119 cat >>conftest.$ac_ext <<_ACEOF
8120 /* end confdefs.h. */
8121 $ac_includes_default
8122 #include <$ac_header>
8124 rm -f conftest.$ac_objext
8125 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
8126 (eval $ac_compile) 2>conftest.er1
8128 grep -v '^ *+' conftest.er1 >conftest.err
8130 cat conftest.err >&5
8131 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8132 (exit $ac_status); } &&
8133 { ac_try='test -z "$ac_c_werror_flag"
8134 || test ! -s conftest.err'
8135 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8138 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8139 (exit $ac_status); }; } &&
8140 { ac_try='test -s conftest.$ac_objext'
8141 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8144 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8145 (exit $ac_status); }; }; then
8146 ac_header_compiler=yes
8148 echo "$as_me: failed program was:" >&5
8149 sed 's/^/| /' conftest.$ac_ext >&5
8151 ac_header_compiler=no
8153 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
8154 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
8155 echo "${ECHO_T}$ac_header_compiler" >&6
8157 # Is the header present?
8158 echo "$as_me:$LINENO: checking $ac_header presence" >&5
8159 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
8160 cat >conftest.$ac_ext <<_ACEOF
8163 cat confdefs.h >>conftest.$ac_ext
8164 cat >>conftest.$ac_ext <<_ACEOF
8165 /* end confdefs.h. */
8166 #include <$ac_header>
8168 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
8169 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
8171 grep -v '^ *+' conftest.er1 >conftest.err
8173 cat conftest.err >&5
8174 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8175 (exit $ac_status); } >/dev/null; then
8176 if test -s conftest.err; then
8177 ac_cpp_err=$ac_c_preproc_warn_flag
8178 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
8185 if test -z "$ac_cpp_err"; then
8186 ac_header_preproc=yes
8188 echo "$as_me: failed program was:" >&5
8189 sed 's/^/| /' conftest.$ac_ext >&5
8191 ac_header_preproc=no
8193 rm -f conftest.err conftest.$ac_ext
8194 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
8195 echo "${ECHO_T}$ac_header_preproc" >&6
8197 # So? What about this header?
8198 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
8200 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
8201 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
8202 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
8203 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
8204 ac_header_preproc=yes
8207 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
8208 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
8209 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
8210 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
8211 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
8212 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
8213 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
8214 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
8215 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
8216 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
8217 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
8218 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
8221 ## ------------------------------------------ ##
8222 ## Report this to the AC_PACKAGE_NAME lists. ##
8223 ## ------------------------------------------ ##
8226 sed "s/^/$as_me: WARNING: /" >&2
8229 echo "$as_me:$LINENO: checking for $ac_header" >&5
8230 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
8231 if eval "test \"\${$as_ac_Header+set}\" = set"; then
8232 echo $ECHO_N "(cached) $ECHO_C" >&6
8234 eval "$as_ac_Header=\$ac_header_preproc"
8236 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
8237 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
8240 if test `eval echo '${'$as_ac_Header'}'` = yes; then
8241 cat >>confdefs.h <<_ACEOF
8242 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
8250 for ac_header in stdlib.h
8252 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
8253 if eval "test \"\${$as_ac_Header+set}\" = set"; then
8254 echo "$as_me:$LINENO: checking for $ac_header" >&5
8255 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
8256 if eval "test \"\${$as_ac_Header+set}\" = set"; then
8257 echo $ECHO_N "(cached) $ECHO_C" >&6
8259 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
8260 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
8262 # Is the header compilable?
8263 echo "$as_me:$LINENO: checking $ac_header usability" >&5
8264 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
8265 cat >conftest.$ac_ext <<_ACEOF
8268 cat confdefs.h >>conftest.$ac_ext
8269 cat >>conftest.$ac_ext <<_ACEOF
8270 /* end confdefs.h. */
8271 $ac_includes_default
8272 #include <$ac_header>
8274 rm -f conftest.$ac_objext
8275 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
8276 (eval $ac_compile) 2>conftest.er1
8278 grep -v '^ *+' conftest.er1 >conftest.err
8280 cat conftest.err >&5
8281 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8282 (exit $ac_status); } &&
8283 { ac_try='test -z "$ac_c_werror_flag"
8284 || test ! -s conftest.err'
8285 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8288 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8289 (exit $ac_status); }; } &&
8290 { ac_try='test -s conftest.$ac_objext'
8291 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8294 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8295 (exit $ac_status); }; }; then
8296 ac_header_compiler=yes
8298 echo "$as_me: failed program was:" >&5
8299 sed 's/^/| /' conftest.$ac_ext >&5
8301 ac_header_compiler=no
8303 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
8304 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
8305 echo "${ECHO_T}$ac_header_compiler" >&6
8307 # Is the header present?
8308 echo "$as_me:$LINENO: checking $ac_header presence" >&5
8309 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
8310 cat >conftest.$ac_ext <<_ACEOF
8313 cat confdefs.h >>conftest.$ac_ext
8314 cat >>conftest.$ac_ext <<_ACEOF
8315 /* end confdefs.h. */
8316 #include <$ac_header>
8318 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
8319 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
8321 grep -v '^ *+' conftest.er1 >conftest.err
8323 cat conftest.err >&5
8324 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8325 (exit $ac_status); } >/dev/null; then
8326 if test -s conftest.err; then
8327 ac_cpp_err=$ac_c_preproc_warn_flag
8328 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
8335 if test -z "$ac_cpp_err"; then
8336 ac_header_preproc=yes
8338 echo "$as_me: failed program was:" >&5
8339 sed 's/^/| /' conftest.$ac_ext >&5
8341 ac_header_preproc=no
8343 rm -f conftest.err conftest.$ac_ext
8344 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
8345 echo "${ECHO_T}$ac_header_preproc" >&6
8347 # So? What about this header?
8348 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
8350 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
8351 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
8352 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
8353 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
8354 ac_header_preproc=yes
8357 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
8358 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
8359 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
8360 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
8361 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
8362 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
8363 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
8364 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
8365 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
8366 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
8367 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
8368 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
8371 ## ------------------------------------------ ##
8372 ## Report this to the AC_PACKAGE_NAME lists. ##
8373 ## ------------------------------------------ ##
8376 sed "s/^/$as_me: WARNING: /" >&2
8379 echo "$as_me:$LINENO: checking for $ac_header" >&5
8380 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
8381 if eval "test \"\${$as_ac_Header+set}\" = set"; then
8382 echo $ECHO_N "(cached) $ECHO_C" >&6
8384 eval "$as_ac_Header=\$ac_header_preproc"
8386 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
8387 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
8390 if test `eval echo '${'$as_ac_Header'}'` = yes; then
8391 cat >>confdefs.h <<_ACEOF
8392 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
8400 for ac_header in stdint.h
8402 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
8403 if eval "test \"\${$as_ac_Header+set}\" = set"; then
8404 echo "$as_me:$LINENO: checking for $ac_header" >&5
8405 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
8406 if eval "test \"\${$as_ac_Header+set}\" = set"; then
8407 echo $ECHO_N "(cached) $ECHO_C" >&6
8409 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
8410 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
8412 # Is the header compilable?
8413 echo "$as_me:$LINENO: checking $ac_header usability" >&5
8414 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
8415 cat >conftest.$ac_ext <<_ACEOF
8418 cat confdefs.h >>conftest.$ac_ext
8419 cat >>conftest.$ac_ext <<_ACEOF
8420 /* end confdefs.h. */
8421 $ac_includes_default
8422 #include <$ac_header>
8424 rm -f conftest.$ac_objext
8425 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
8426 (eval $ac_compile) 2>conftest.er1
8428 grep -v '^ *+' conftest.er1 >conftest.err
8430 cat conftest.err >&5
8431 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8432 (exit $ac_status); } &&
8433 { ac_try='test -z "$ac_c_werror_flag"
8434 || test ! -s conftest.err'
8435 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8438 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8439 (exit $ac_status); }; } &&
8440 { ac_try='test -s conftest.$ac_objext'
8441 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8444 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8445 (exit $ac_status); }; }; then
8446 ac_header_compiler=yes
8448 echo "$as_me: failed program was:" >&5
8449 sed 's/^/| /' conftest.$ac_ext >&5
8451 ac_header_compiler=no
8453 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
8454 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
8455 echo "${ECHO_T}$ac_header_compiler" >&6
8457 # Is the header present?
8458 echo "$as_me:$LINENO: checking $ac_header presence" >&5
8459 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
8460 cat >conftest.$ac_ext <<_ACEOF
8463 cat confdefs.h >>conftest.$ac_ext
8464 cat >>conftest.$ac_ext <<_ACEOF
8465 /* end confdefs.h. */
8466 #include <$ac_header>
8468 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
8469 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
8471 grep -v '^ *+' conftest.er1 >conftest.err
8473 cat conftest.err >&5
8474 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8475 (exit $ac_status); } >/dev/null; then
8476 if test -s conftest.err; then
8477 ac_cpp_err=$ac_c_preproc_warn_flag
8478 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
8485 if test -z "$ac_cpp_err"; then
8486 ac_header_preproc=yes
8488 echo "$as_me: failed program was:" >&5
8489 sed 's/^/| /' conftest.$ac_ext >&5
8491 ac_header_preproc=no
8493 rm -f conftest.err conftest.$ac_ext
8494 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
8495 echo "${ECHO_T}$ac_header_preproc" >&6
8497 # So? What about this header?
8498 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
8500 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
8501 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
8502 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
8503 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
8504 ac_header_preproc=yes
8507 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
8508 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
8509 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
8510 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
8511 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
8512 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
8513 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
8514 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
8515 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
8516 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
8517 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
8518 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
8521 ## ------------------------------------------ ##
8522 ## Report this to the AC_PACKAGE_NAME lists. ##
8523 ## ------------------------------------------ ##
8526 sed "s/^/$as_me: WARNING: /" >&2
8529 echo "$as_me:$LINENO: checking for $ac_header" >&5
8530 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
8531 if eval "test \"\${$as_ac_Header+set}\" = set"; then
8532 echo $ECHO_N "(cached) $ECHO_C" >&6
8534 eval "$as_ac_Header=\$ac_header_preproc"
8536 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
8537 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
8540 if test `eval echo '${'$as_ac_Header'}'` = yes; then
8541 cat >>confdefs.h <<_ACEOF
8542 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
8552 for ac_header in string.h memory.h strings.h
8554 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
8555 if eval "test \"\${$as_ac_Header+set}\" = set"; then
8556 echo "$as_me:$LINENO: checking for $ac_header" >&5
8557 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
8558 if eval "test \"\${$as_ac_Header+set}\" = set"; then
8559 echo $ECHO_N "(cached) $ECHO_C" >&6
8561 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
8562 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
8564 # Is the header compilable?
8565 echo "$as_me:$LINENO: checking $ac_header usability" >&5
8566 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
8567 cat >conftest.$ac_ext <<_ACEOF
8570 cat confdefs.h >>conftest.$ac_ext
8571 cat >>conftest.$ac_ext <<_ACEOF
8572 /* end confdefs.h. */
8573 $ac_includes_default
8574 #include <$ac_header>
8576 rm -f conftest.$ac_objext
8577 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
8578 (eval $ac_compile) 2>conftest.er1
8580 grep -v '^ *+' conftest.er1 >conftest.err
8582 cat conftest.err >&5
8583 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8584 (exit $ac_status); } &&
8585 { ac_try='test -z "$ac_c_werror_flag"
8586 || test ! -s conftest.err'
8587 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8590 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8591 (exit $ac_status); }; } &&
8592 { ac_try='test -s conftest.$ac_objext'
8593 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8596 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8597 (exit $ac_status); }; }; then
8598 ac_header_compiler=yes
8600 echo "$as_me: failed program was:" >&5
8601 sed 's/^/| /' conftest.$ac_ext >&5
8603 ac_header_compiler=no
8605 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
8606 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
8607 echo "${ECHO_T}$ac_header_compiler" >&6
8609 # Is the header present?
8610 echo "$as_me:$LINENO: checking $ac_header presence" >&5
8611 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
8612 cat >conftest.$ac_ext <<_ACEOF
8615 cat confdefs.h >>conftest.$ac_ext
8616 cat >>conftest.$ac_ext <<_ACEOF
8617 /* end confdefs.h. */
8618 #include <$ac_header>
8620 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
8621 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
8623 grep -v '^ *+' conftest.er1 >conftest.err
8625 cat conftest.err >&5
8626 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8627 (exit $ac_status); } >/dev/null; then
8628 if test -s conftest.err; then
8629 ac_cpp_err=$ac_c_preproc_warn_flag
8630 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
8637 if test -z "$ac_cpp_err"; then
8638 ac_header_preproc=yes
8640 echo "$as_me: failed program was:" >&5
8641 sed 's/^/| /' conftest.$ac_ext >&5
8643 ac_header_preproc=no
8645 rm -f conftest.err conftest.$ac_ext
8646 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
8647 echo "${ECHO_T}$ac_header_preproc" >&6
8649 # So? What about this header?
8650 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
8652 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
8653 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
8654 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
8655 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
8656 ac_header_preproc=yes
8659 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
8660 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
8661 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
8662 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
8663 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
8664 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
8665 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
8666 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
8667 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
8668 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
8669 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
8670 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
8673 ## ------------------------------------------ ##
8674 ## Report this to the AC_PACKAGE_NAME lists. ##
8675 ## ------------------------------------------ ##
8678 sed "s/^/$as_me: WARNING: /" >&2
8681 echo "$as_me:$LINENO: checking for $ac_header" >&5
8682 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
8683 if eval "test \"\${$as_ac_Header+set}\" = set"; then
8684 echo $ECHO_N "(cached) $ECHO_C" >&6
8686 eval "$as_ac_Header=\$ac_header_preproc"
8688 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
8689 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
8692 if test `eval echo '${'$as_ac_Header'}'` = yes; then
8693 cat >>confdefs.h <<_ACEOF
8694 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
8702 for ac_header in sys/fault.h
8704 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
8705 if eval "test \"\${$as_ac_Header+set}\" = set"; then
8706 echo "$as_me:$LINENO: checking for $ac_header" >&5
8707 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
8708 if eval "test \"\${$as_ac_Header+set}\" = set"; then
8709 echo $ECHO_N "(cached) $ECHO_C" >&6
8711 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
8712 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
8714 # Is the header compilable?
8715 echo "$as_me:$LINENO: checking $ac_header usability" >&5
8716 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
8717 cat >conftest.$ac_ext <<_ACEOF
8720 cat confdefs.h >>conftest.$ac_ext
8721 cat >>conftest.$ac_ext <<_ACEOF
8722 /* end confdefs.h. */
8723 $ac_includes_default
8724 #include <$ac_header>
8726 rm -f conftest.$ac_objext
8727 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
8728 (eval $ac_compile) 2>conftest.er1
8730 grep -v '^ *+' conftest.er1 >conftest.err
8732 cat conftest.err >&5
8733 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8734 (exit $ac_status); } &&
8735 { ac_try='test -z "$ac_c_werror_flag"
8736 || test ! -s conftest.err'
8737 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8740 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8741 (exit $ac_status); }; } &&
8742 { ac_try='test -s conftest.$ac_objext'
8743 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8746 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8747 (exit $ac_status); }; }; then
8748 ac_header_compiler=yes
8750 echo "$as_me: failed program was:" >&5
8751 sed 's/^/| /' conftest.$ac_ext >&5
8753 ac_header_compiler=no
8755 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
8756 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
8757 echo "${ECHO_T}$ac_header_compiler" >&6
8759 # Is the header present?
8760 echo "$as_me:$LINENO: checking $ac_header presence" >&5
8761 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
8762 cat >conftest.$ac_ext <<_ACEOF
8765 cat confdefs.h >>conftest.$ac_ext
8766 cat >>conftest.$ac_ext <<_ACEOF
8767 /* end confdefs.h. */
8768 #include <$ac_header>
8770 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
8771 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
8773 grep -v '^ *+' conftest.er1 >conftest.err
8775 cat conftest.err >&5
8776 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8777 (exit $ac_status); } >/dev/null; then
8778 if test -s conftest.err; then
8779 ac_cpp_err=$ac_c_preproc_warn_flag
8780 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
8787 if test -z "$ac_cpp_err"; then
8788 ac_header_preproc=yes
8790 echo "$as_me: failed program was:" >&5
8791 sed 's/^/| /' conftest.$ac_ext >&5
8793 ac_header_preproc=no
8795 rm -f conftest.err conftest.$ac_ext
8796 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
8797 echo "${ECHO_T}$ac_header_preproc" >&6
8799 # So? What about this header?
8800 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
8802 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
8803 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
8804 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
8805 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
8806 ac_header_preproc=yes
8809 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
8810 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
8811 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
8812 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
8813 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
8814 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
8815 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
8816 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
8817 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
8818 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
8819 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
8820 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
8823 ## ------------------------------------------ ##
8824 ## Report this to the AC_PACKAGE_NAME lists. ##
8825 ## ------------------------------------------ ##
8828 sed "s/^/$as_me: WARNING: /" >&2
8831 echo "$as_me:$LINENO: checking for $ac_header" >&5
8832 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
8833 if eval "test \"\${$as_ac_Header+set}\" = set"; then
8834 echo $ECHO_N "(cached) $ECHO_C" >&6
8836 eval "$as_ac_Header=\$ac_header_preproc"
8838 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
8839 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
8842 if test `eval echo '${'$as_ac_Header'}'` = yes; then
8843 cat >>confdefs.h <<_ACEOF
8844 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
8852 for ac_header in sys/file.h
8854 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
8855 if eval "test \"\${$as_ac_Header+set}\" = set"; then
8856 echo "$as_me:$LINENO: checking for $ac_header" >&5
8857 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
8858 if eval "test \"\${$as_ac_Header+set}\" = set"; then
8859 echo $ECHO_N "(cached) $ECHO_C" >&6
8861 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
8862 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
8864 # Is the header compilable?
8865 echo "$as_me:$LINENO: checking $ac_header usability" >&5
8866 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
8867 cat >conftest.$ac_ext <<_ACEOF
8870 cat confdefs.h >>conftest.$ac_ext
8871 cat >>conftest.$ac_ext <<_ACEOF
8872 /* end confdefs.h. */
8873 $ac_includes_default
8874 #include <$ac_header>
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"
8886 || test ! -s conftest.err'
8887 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8890 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8891 (exit $ac_status); }; } &&
8892 { ac_try='test -s conftest.$ac_objext'
8893 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8896 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8897 (exit $ac_status); }; }; then
8898 ac_header_compiler=yes
8900 echo "$as_me: failed program was:" >&5
8901 sed 's/^/| /' conftest.$ac_ext >&5
8903 ac_header_compiler=no
8905 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
8906 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
8907 echo "${ECHO_T}$ac_header_compiler" >&6
8909 # Is the header present?
8910 echo "$as_me:$LINENO: checking $ac_header presence" >&5
8911 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
8912 cat >conftest.$ac_ext <<_ACEOF
8915 cat confdefs.h >>conftest.$ac_ext
8916 cat >>conftest.$ac_ext <<_ACEOF
8917 /* end confdefs.h. */
8918 #include <$ac_header>
8920 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
8921 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
8923 grep -v '^ *+' conftest.er1 >conftest.err
8925 cat conftest.err >&5
8926 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8927 (exit $ac_status); } >/dev/null; then
8928 if test -s conftest.err; then
8929 ac_cpp_err=$ac_c_preproc_warn_flag
8930 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
8937 if test -z "$ac_cpp_err"; then
8938 ac_header_preproc=yes
8940 echo "$as_me: failed program was:" >&5
8941 sed 's/^/| /' conftest.$ac_ext >&5
8943 ac_header_preproc=no
8945 rm -f conftest.err conftest.$ac_ext
8946 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
8947 echo "${ECHO_T}$ac_header_preproc" >&6
8949 # So? What about this header?
8950 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
8952 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
8953 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
8954 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
8955 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
8956 ac_header_preproc=yes
8959 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
8960 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
8961 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
8962 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
8963 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
8964 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
8965 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
8966 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
8967 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
8968 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
8969 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
8970 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
8973 ## ------------------------------------------ ##
8974 ## Report this to the AC_PACKAGE_NAME lists. ##
8975 ## ------------------------------------------ ##
8978 sed "s/^/$as_me: WARNING: /" >&2
8981 echo "$as_me:$LINENO: checking for $ac_header" >&5
8982 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
8983 if eval "test \"\${$as_ac_Header+set}\" = set"; then
8984 echo $ECHO_N "(cached) $ECHO_C" >&6
8986 eval "$as_ac_Header=\$ac_header_preproc"
8988 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
8989 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
8992 if test `eval echo '${'$as_ac_Header'}'` = yes; then
8993 cat >>confdefs.h <<_ACEOF
8994 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
9002 for ac_header in sys/filio.h
9004 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
9005 if eval "test \"\${$as_ac_Header+set}\" = set"; then
9006 echo "$as_me:$LINENO: checking for $ac_header" >&5
9007 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
9008 if eval "test \"\${$as_ac_Header+set}\" = set"; then
9009 echo $ECHO_N "(cached) $ECHO_C" >&6
9011 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
9012 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
9014 # Is the header compilable?
9015 echo "$as_me:$LINENO: checking $ac_header usability" >&5
9016 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
9017 cat >conftest.$ac_ext <<_ACEOF
9020 cat confdefs.h >>conftest.$ac_ext
9021 cat >>conftest.$ac_ext <<_ACEOF
9022 /* end confdefs.h. */
9023 $ac_includes_default
9024 #include <$ac_header>
9026 rm -f conftest.$ac_objext
9027 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
9028 (eval $ac_compile) 2>conftest.er1
9030 grep -v '^ *+' conftest.er1 >conftest.err
9032 cat conftest.err >&5
9033 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9034 (exit $ac_status); } &&
9035 { ac_try='test -z "$ac_c_werror_flag"
9036 || test ! -s conftest.err'
9037 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9040 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9041 (exit $ac_status); }; } &&
9042 { ac_try='test -s conftest.$ac_objext'
9043 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9046 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9047 (exit $ac_status); }; }; then
9048 ac_header_compiler=yes
9050 echo "$as_me: failed program was:" >&5
9051 sed 's/^/| /' conftest.$ac_ext >&5
9053 ac_header_compiler=no
9055 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
9056 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
9057 echo "${ECHO_T}$ac_header_compiler" >&6
9059 # Is the header present?
9060 echo "$as_me:$LINENO: checking $ac_header presence" >&5
9061 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
9062 cat >conftest.$ac_ext <<_ACEOF
9065 cat confdefs.h >>conftest.$ac_ext
9066 cat >>conftest.$ac_ext <<_ACEOF
9067 /* end confdefs.h. */
9068 #include <$ac_header>
9070 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
9071 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
9073 grep -v '^ *+' conftest.er1 >conftest.err
9075 cat conftest.err >&5
9076 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9077 (exit $ac_status); } >/dev/null; then
9078 if test -s conftest.err; then
9079 ac_cpp_err=$ac_c_preproc_warn_flag
9080 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
9087 if test -z "$ac_cpp_err"; then
9088 ac_header_preproc=yes
9090 echo "$as_me: failed program was:" >&5
9091 sed 's/^/| /' conftest.$ac_ext >&5
9093 ac_header_preproc=no
9095 rm -f conftest.err conftest.$ac_ext
9096 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
9097 echo "${ECHO_T}$ac_header_preproc" >&6
9099 # So? What about this header?
9100 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
9102 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
9103 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
9104 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
9105 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
9106 ac_header_preproc=yes
9109 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
9110 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
9111 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
9112 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
9113 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
9114 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
9115 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
9116 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
9117 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
9118 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
9119 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
9120 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
9123 ## ------------------------------------------ ##
9124 ## Report this to the AC_PACKAGE_NAME lists. ##
9125 ## ------------------------------------------ ##
9128 sed "s/^/$as_me: WARNING: /" >&2
9131 echo "$as_me:$LINENO: checking for $ac_header" >&5
9132 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
9133 if eval "test \"\${$as_ac_Header+set}\" = set"; then
9134 echo $ECHO_N "(cached) $ECHO_C" >&6
9136 eval "$as_ac_Header=\$ac_header_preproc"
9138 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
9139 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
9142 if test `eval echo '${'$as_ac_Header'}'` = yes; then
9143 cat >>confdefs.h <<_ACEOF
9144 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
9152 for ac_header in sys/ioctl.h
9154 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
9155 if eval "test \"\${$as_ac_Header+set}\" = set"; then
9156 echo "$as_me:$LINENO: checking for $ac_header" >&5
9157 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
9158 if eval "test \"\${$as_ac_Header+set}\" = set"; then
9159 echo $ECHO_N "(cached) $ECHO_C" >&6
9161 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
9162 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
9164 # Is the header compilable?
9165 echo "$as_me:$LINENO: checking $ac_header usability" >&5
9166 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
9167 cat >conftest.$ac_ext <<_ACEOF
9170 cat confdefs.h >>conftest.$ac_ext
9171 cat >>conftest.$ac_ext <<_ACEOF
9172 /* end confdefs.h. */
9173 $ac_includes_default
9174 #include <$ac_header>
9176 rm -f conftest.$ac_objext
9177 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
9178 (eval $ac_compile) 2>conftest.er1
9180 grep -v '^ *+' conftest.er1 >conftest.err
9182 cat conftest.err >&5
9183 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9184 (exit $ac_status); } &&
9185 { ac_try='test -z "$ac_c_werror_flag"
9186 || test ! -s conftest.err'
9187 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9190 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9191 (exit $ac_status); }; } &&
9192 { ac_try='test -s conftest.$ac_objext'
9193 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9196 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9197 (exit $ac_status); }; }; then
9198 ac_header_compiler=yes
9200 echo "$as_me: failed program was:" >&5
9201 sed 's/^/| /' conftest.$ac_ext >&5
9203 ac_header_compiler=no
9205 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
9206 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
9207 echo "${ECHO_T}$ac_header_compiler" >&6
9209 # Is the header present?
9210 echo "$as_me:$LINENO: checking $ac_header presence" >&5
9211 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
9212 cat >conftest.$ac_ext <<_ACEOF
9215 cat confdefs.h >>conftest.$ac_ext
9216 cat >>conftest.$ac_ext <<_ACEOF
9217 /* end confdefs.h. */
9218 #include <$ac_header>
9220 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
9221 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
9223 grep -v '^ *+' conftest.er1 >conftest.err
9225 cat conftest.err >&5
9226 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9227 (exit $ac_status); } >/dev/null; then
9228 if test -s conftest.err; then
9229 ac_cpp_err=$ac_c_preproc_warn_flag
9230 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
9237 if test -z "$ac_cpp_err"; then
9238 ac_header_preproc=yes
9240 echo "$as_me: failed program was:" >&5
9241 sed 's/^/| /' conftest.$ac_ext >&5
9243 ac_header_preproc=no
9245 rm -f conftest.err conftest.$ac_ext
9246 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
9247 echo "${ECHO_T}$ac_header_preproc" >&6
9249 # So? What about this header?
9250 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
9252 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
9253 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
9254 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
9255 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
9256 ac_header_preproc=yes
9259 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
9260 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
9261 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
9262 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
9263 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
9264 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
9265 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
9266 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
9267 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
9268 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
9269 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
9270 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
9273 ## ------------------------------------------ ##
9274 ## Report this to the AC_PACKAGE_NAME lists. ##
9275 ## ------------------------------------------ ##
9278 sed "s/^/$as_me: WARNING: /" >&2
9281 echo "$as_me:$LINENO: checking for $ac_header" >&5
9282 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
9283 if eval "test \"\${$as_ac_Header+set}\" = set"; then
9284 echo $ECHO_N "(cached) $ECHO_C" >&6
9286 eval "$as_ac_Header=\$ac_header_preproc"
9288 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
9289 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
9292 if test `eval echo '${'$as_ac_Header'}'` = yes; then
9293 cat >>confdefs.h <<_ACEOF
9294 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
9302 for ac_header in sys/param.h
9304 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
9305 if eval "test \"\${$as_ac_Header+set}\" = set"; then
9306 echo "$as_me:$LINENO: checking for $ac_header" >&5
9307 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
9308 if eval "test \"\${$as_ac_Header+set}\" = set"; then
9309 echo $ECHO_N "(cached) $ECHO_C" >&6
9311 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
9312 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
9314 # Is the header compilable?
9315 echo "$as_me:$LINENO: checking $ac_header usability" >&5
9316 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
9317 cat >conftest.$ac_ext <<_ACEOF
9320 cat confdefs.h >>conftest.$ac_ext
9321 cat >>conftest.$ac_ext <<_ACEOF
9322 /* end confdefs.h. */
9323 $ac_includes_default
9324 #include <$ac_header>
9326 rm -f conftest.$ac_objext
9327 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
9328 (eval $ac_compile) 2>conftest.er1
9330 grep -v '^ *+' conftest.er1 >conftest.err
9332 cat conftest.err >&5
9333 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9334 (exit $ac_status); } &&
9335 { ac_try='test -z "$ac_c_werror_flag"
9336 || test ! -s conftest.err'
9337 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9340 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9341 (exit $ac_status); }; } &&
9342 { ac_try='test -s conftest.$ac_objext'
9343 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9346 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9347 (exit $ac_status); }; }; then
9348 ac_header_compiler=yes
9350 echo "$as_me: failed program was:" >&5
9351 sed 's/^/| /' conftest.$ac_ext >&5
9353 ac_header_compiler=no
9355 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
9356 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
9357 echo "${ECHO_T}$ac_header_compiler" >&6
9359 # Is the header present?
9360 echo "$as_me:$LINENO: checking $ac_header presence" >&5
9361 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
9362 cat >conftest.$ac_ext <<_ACEOF
9365 cat confdefs.h >>conftest.$ac_ext
9366 cat >>conftest.$ac_ext <<_ACEOF
9367 /* end confdefs.h. */
9368 #include <$ac_header>
9370 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
9371 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
9373 grep -v '^ *+' conftest.er1 >conftest.err
9375 cat conftest.err >&5
9376 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9377 (exit $ac_status); } >/dev/null; then
9378 if test -s conftest.err; then
9379 ac_cpp_err=$ac_c_preproc_warn_flag
9380 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
9387 if test -z "$ac_cpp_err"; then
9388 ac_header_preproc=yes
9390 echo "$as_me: failed program was:" >&5
9391 sed 's/^/| /' conftest.$ac_ext >&5
9393 ac_header_preproc=no
9395 rm -f conftest.err conftest.$ac_ext
9396 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
9397 echo "${ECHO_T}$ac_header_preproc" >&6
9399 # So? What about this header?
9400 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
9402 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
9403 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
9404 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
9405 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
9406 ac_header_preproc=yes
9409 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
9410 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
9411 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
9412 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
9413 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
9414 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
9415 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
9416 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
9417 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
9418 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
9419 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
9420 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
9423 ## ------------------------------------------ ##
9424 ## Report this to the AC_PACKAGE_NAME lists. ##
9425 ## ------------------------------------------ ##
9428 sed "s/^/$as_me: WARNING: /" >&2
9431 echo "$as_me:$LINENO: checking for $ac_header" >&5
9432 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
9433 if eval "test \"\${$as_ac_Header+set}\" = set"; then
9434 echo $ECHO_N "(cached) $ECHO_C" >&6
9436 eval "$as_ac_Header=\$ac_header_preproc"
9438 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
9439 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
9442 if test `eval echo '${'$as_ac_Header'}'` = yes; then
9443 cat >>confdefs.h <<_ACEOF
9444 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
9452 for ac_header in sys/resource.h
9454 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
9455 if eval "test \"\${$as_ac_Header+set}\" = set"; then
9456 echo "$as_me:$LINENO: checking for $ac_header" >&5
9457 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
9458 if eval "test \"\${$as_ac_Header+set}\" = set"; then
9459 echo $ECHO_N "(cached) $ECHO_C" >&6
9461 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
9462 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
9464 # Is the header compilable?
9465 echo "$as_me:$LINENO: checking $ac_header usability" >&5
9466 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
9467 cat >conftest.$ac_ext <<_ACEOF
9470 cat confdefs.h >>conftest.$ac_ext
9471 cat >>conftest.$ac_ext <<_ACEOF
9472 /* end confdefs.h. */
9473 $ac_includes_default
9474 #include <$ac_header>
9476 rm -f conftest.$ac_objext
9477 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
9478 (eval $ac_compile) 2>conftest.er1
9480 grep -v '^ *+' conftest.er1 >conftest.err
9482 cat conftest.err >&5
9483 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9484 (exit $ac_status); } &&
9485 { ac_try='test -z "$ac_c_werror_flag"
9486 || test ! -s conftest.err'
9487 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9490 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9491 (exit $ac_status); }; } &&
9492 { ac_try='test -s conftest.$ac_objext'
9493 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9496 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9497 (exit $ac_status); }; }; then
9498 ac_header_compiler=yes
9500 echo "$as_me: failed program was:" >&5
9501 sed 's/^/| /' conftest.$ac_ext >&5
9503 ac_header_compiler=no
9505 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
9506 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
9507 echo "${ECHO_T}$ac_header_compiler" >&6
9509 # Is the header present?
9510 echo "$as_me:$LINENO: checking $ac_header presence" >&5
9511 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
9512 cat >conftest.$ac_ext <<_ACEOF
9515 cat confdefs.h >>conftest.$ac_ext
9516 cat >>conftest.$ac_ext <<_ACEOF
9517 /* end confdefs.h. */
9518 #include <$ac_header>
9520 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
9521 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
9523 grep -v '^ *+' conftest.er1 >conftest.err
9525 cat conftest.err >&5
9526 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9527 (exit $ac_status); } >/dev/null; then
9528 if test -s conftest.err; then
9529 ac_cpp_err=$ac_c_preproc_warn_flag
9530 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
9537 if test -z "$ac_cpp_err"; then
9538 ac_header_preproc=yes
9540 echo "$as_me: failed program was:" >&5
9541 sed 's/^/| /' conftest.$ac_ext >&5
9543 ac_header_preproc=no
9545 rm -f conftest.err conftest.$ac_ext
9546 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
9547 echo "${ECHO_T}$ac_header_preproc" >&6
9549 # So? What about this header?
9550 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
9552 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
9553 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
9554 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
9555 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
9556 ac_header_preproc=yes
9559 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
9560 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
9561 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
9562 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
9563 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
9564 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
9565 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
9566 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
9567 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
9568 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
9569 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
9570 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
9573 ## ------------------------------------------ ##
9574 ## Report this to the AC_PACKAGE_NAME lists. ##
9575 ## ------------------------------------------ ##
9578 sed "s/^/$as_me: WARNING: /" >&2
9581 echo "$as_me:$LINENO: checking for $ac_header" >&5
9582 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
9583 if eval "test \"\${$as_ac_Header+set}\" = set"; then
9584 echo $ECHO_N "(cached) $ECHO_C" >&6
9586 eval "$as_ac_Header=\$ac_header_preproc"
9588 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
9589 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
9592 if test `eval echo '${'$as_ac_Header'}'` = yes; then
9593 cat >>confdefs.h <<_ACEOF
9594 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
9602 for ac_header in sys/proc.h
9604 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
9605 echo "$as_me:$LINENO: checking for $ac_header" >&5
9606 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
9607 if eval "test \"\${$as_ac_Header+set}\" = set"; then
9608 echo $ECHO_N "(cached) $ECHO_C" >&6
9610 cat >conftest.$ac_ext <<_ACEOF
9613 cat confdefs.h >>conftest.$ac_ext
9614 cat >>conftest.$ac_ext <<_ACEOF
9615 /* end confdefs.h. */
9616 #if HAVE_SYS_PARAM_H
9617 # include <sys/param.h>
9621 #include <$ac_header>
9623 rm -f conftest.$ac_objext
9624 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
9625 (eval $ac_compile) 2>conftest.er1
9627 grep -v '^ *+' conftest.er1 >conftest.err
9629 cat conftest.err >&5
9630 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9631 (exit $ac_status); } &&
9632 { ac_try='test -z "$ac_c_werror_flag"
9633 || test ! -s conftest.err'
9634 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9637 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9638 (exit $ac_status); }; } &&
9639 { ac_try='test -s conftest.$ac_objext'
9640 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9643 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9644 (exit $ac_status); }; }; then
9645 eval "$as_ac_Header=yes"
9647 echo "$as_me: failed program was:" >&5
9648 sed 's/^/| /' conftest.$ac_ext >&5
9650 eval "$as_ac_Header=no"
9652 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
9654 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
9655 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
9656 if test `eval echo '${'$as_ac_Header'}'` = yes; then
9657 cat >>confdefs.h <<_ACEOF
9658 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
9666 for ac_header in sys/procfs.h
9668 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
9669 if eval "test \"\${$as_ac_Header+set}\" = set"; then
9670 echo "$as_me:$LINENO: checking for $ac_header" >&5
9671 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
9672 if eval "test \"\${$as_ac_Header+set}\" = set"; then
9673 echo $ECHO_N "(cached) $ECHO_C" >&6
9675 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
9676 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
9678 # Is the header compilable?
9679 echo "$as_me:$LINENO: checking $ac_header usability" >&5
9680 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
9681 cat >conftest.$ac_ext <<_ACEOF
9684 cat confdefs.h >>conftest.$ac_ext
9685 cat >>conftest.$ac_ext <<_ACEOF
9686 /* end confdefs.h. */
9687 $ac_includes_default
9688 #include <$ac_header>
9690 rm -f conftest.$ac_objext
9691 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
9692 (eval $ac_compile) 2>conftest.er1
9694 grep -v '^ *+' conftest.er1 >conftest.err
9696 cat conftest.err >&5
9697 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9698 (exit $ac_status); } &&
9699 { ac_try='test -z "$ac_c_werror_flag"
9700 || test ! -s conftest.err'
9701 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9704 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9705 (exit $ac_status); }; } &&
9706 { ac_try='test -s conftest.$ac_objext'
9707 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9710 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9711 (exit $ac_status); }; }; then
9712 ac_header_compiler=yes
9714 echo "$as_me: failed program was:" >&5
9715 sed 's/^/| /' conftest.$ac_ext >&5
9717 ac_header_compiler=no
9719 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
9720 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
9721 echo "${ECHO_T}$ac_header_compiler" >&6
9723 # Is the header present?
9724 echo "$as_me:$LINENO: checking $ac_header presence" >&5
9725 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
9726 cat >conftest.$ac_ext <<_ACEOF
9729 cat confdefs.h >>conftest.$ac_ext
9730 cat >>conftest.$ac_ext <<_ACEOF
9731 /* end confdefs.h. */
9732 #include <$ac_header>
9734 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
9735 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
9737 grep -v '^ *+' conftest.er1 >conftest.err
9739 cat conftest.err >&5
9740 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9741 (exit $ac_status); } >/dev/null; then
9742 if test -s conftest.err; then
9743 ac_cpp_err=$ac_c_preproc_warn_flag
9744 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
9751 if test -z "$ac_cpp_err"; then
9752 ac_header_preproc=yes
9754 echo "$as_me: failed program was:" >&5
9755 sed 's/^/| /' conftest.$ac_ext >&5
9757 ac_header_preproc=no
9759 rm -f conftest.err conftest.$ac_ext
9760 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
9761 echo "${ECHO_T}$ac_header_preproc" >&6
9763 # So? What about this header?
9764 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
9766 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
9767 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
9768 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
9769 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
9770 ac_header_preproc=yes
9773 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
9774 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
9775 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
9776 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
9777 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
9778 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
9779 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
9780 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
9781 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
9782 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
9783 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
9784 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
9787 ## ------------------------------------------ ##
9788 ## Report this to the AC_PACKAGE_NAME lists. ##
9789 ## ------------------------------------------ ##
9792 sed "s/^/$as_me: WARNING: /" >&2
9795 echo "$as_me:$LINENO: checking for $ac_header" >&5
9796 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
9797 if eval "test \"\${$as_ac_Header+set}\" = set"; then
9798 echo $ECHO_N "(cached) $ECHO_C" >&6
9800 eval "$as_ac_Header=\$ac_header_preproc"
9802 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
9803 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
9806 if test `eval echo '${'$as_ac_Header'}'` = yes; then
9807 cat >>confdefs.h <<_ACEOF
9808 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
9817 for ac_header in sys/ptrace.h ptrace.h
9819 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
9820 if eval "test \"\${$as_ac_Header+set}\" = set"; then
9821 echo "$as_me:$LINENO: checking for $ac_header" >&5
9822 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
9823 if eval "test \"\${$as_ac_Header+set}\" = set"; then
9824 echo $ECHO_N "(cached) $ECHO_C" >&6
9826 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
9827 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
9829 # Is the header compilable?
9830 echo "$as_me:$LINENO: checking $ac_header usability" >&5
9831 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
9832 cat >conftest.$ac_ext <<_ACEOF
9835 cat confdefs.h >>conftest.$ac_ext
9836 cat >>conftest.$ac_ext <<_ACEOF
9837 /* end confdefs.h. */
9838 $ac_includes_default
9839 #include <$ac_header>
9841 rm -f conftest.$ac_objext
9842 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
9843 (eval $ac_compile) 2>conftest.er1
9845 grep -v '^ *+' conftest.er1 >conftest.err
9847 cat conftest.err >&5
9848 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9849 (exit $ac_status); } &&
9850 { ac_try='test -z "$ac_c_werror_flag"
9851 || test ! -s conftest.err'
9852 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9855 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9856 (exit $ac_status); }; } &&
9857 { ac_try='test -s conftest.$ac_objext'
9858 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9861 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9862 (exit $ac_status); }; }; then
9863 ac_header_compiler=yes
9865 echo "$as_me: failed program was:" >&5
9866 sed 's/^/| /' conftest.$ac_ext >&5
9868 ac_header_compiler=no
9870 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
9871 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
9872 echo "${ECHO_T}$ac_header_compiler" >&6
9874 # Is the header present?
9875 echo "$as_me:$LINENO: checking $ac_header presence" >&5
9876 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
9877 cat >conftest.$ac_ext <<_ACEOF
9880 cat confdefs.h >>conftest.$ac_ext
9881 cat >>conftest.$ac_ext <<_ACEOF
9882 /* end confdefs.h. */
9883 #include <$ac_header>
9885 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
9886 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
9888 grep -v '^ *+' conftest.er1 >conftest.err
9890 cat conftest.err >&5
9891 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9892 (exit $ac_status); } >/dev/null; then
9893 if test -s conftest.err; then
9894 ac_cpp_err=$ac_c_preproc_warn_flag
9895 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
9902 if test -z "$ac_cpp_err"; then
9903 ac_header_preproc=yes
9905 echo "$as_me: failed program was:" >&5
9906 sed 's/^/| /' conftest.$ac_ext >&5
9908 ac_header_preproc=no
9910 rm -f conftest.err conftest.$ac_ext
9911 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
9912 echo "${ECHO_T}$ac_header_preproc" >&6
9914 # So? What about this header?
9915 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
9917 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
9918 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
9919 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
9920 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
9921 ac_header_preproc=yes
9924 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
9925 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
9926 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
9927 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
9928 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
9929 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
9930 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
9931 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
9932 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
9933 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
9934 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
9935 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
9938 ## ------------------------------------------ ##
9939 ## Report this to the AC_PACKAGE_NAME lists. ##
9940 ## ------------------------------------------ ##
9943 sed "s/^/$as_me: WARNING: /" >&2
9946 echo "$as_me:$LINENO: checking for $ac_header" >&5
9947 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
9948 if eval "test \"\${$as_ac_Header+set}\" = set"; then
9949 echo $ECHO_N "(cached) $ECHO_C" >&6
9951 eval "$as_ac_Header=\$ac_header_preproc"
9953 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
9954 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
9957 if test `eval echo '${'$as_ac_Header'}'` = yes; then
9958 cat >>confdefs.h <<_ACEOF
9959 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
9968 for ac_header in sys/reg.h sys/debugreg.h
9970 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
9971 if eval "test \"\${$as_ac_Header+set}\" = set"; then
9972 echo "$as_me:$LINENO: checking for $ac_header" >&5
9973 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
9974 if eval "test \"\${$as_ac_Header+set}\" = set"; then
9975 echo $ECHO_N "(cached) $ECHO_C" >&6
9977 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
9978 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
9980 # Is the header compilable?
9981 echo "$as_me:$LINENO: checking $ac_header usability" >&5
9982 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
9983 cat >conftest.$ac_ext <<_ACEOF
9986 cat confdefs.h >>conftest.$ac_ext
9987 cat >>conftest.$ac_ext <<_ACEOF
9988 /* end confdefs.h. */
9989 $ac_includes_default
9990 #include <$ac_header>
9992 rm -f conftest.$ac_objext
9993 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
9994 (eval $ac_compile) 2>conftest.er1
9996 grep -v '^ *+' conftest.er1 >conftest.err
9998 cat conftest.err >&5
9999 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10000 (exit $ac_status); } &&
10001 { ac_try='test -z "$ac_c_werror_flag"
10002 || test ! -s conftest.err'
10003 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10004 (eval $ac_try) 2>&5
10006 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10007 (exit $ac_status); }; } &&
10008 { ac_try='test -s conftest.$ac_objext'
10009 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10010 (eval $ac_try) 2>&5
10012 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10013 (exit $ac_status); }; }; then
10014 ac_header_compiler=yes
10016 echo "$as_me: failed program was:" >&5
10017 sed 's/^/| /' conftest.$ac_ext >&5
10019 ac_header_compiler=no
10021 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
10022 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
10023 echo "${ECHO_T}$ac_header_compiler" >&6
10025 # Is the header present?
10026 echo "$as_me:$LINENO: checking $ac_header presence" >&5
10027 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
10028 cat >conftest.$ac_ext <<_ACEOF
10031 cat confdefs.h >>conftest.$ac_ext
10032 cat >>conftest.$ac_ext <<_ACEOF
10033 /* end confdefs.h. */
10034 #include <$ac_header>
10036 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
10037 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
10039 grep -v '^ *+' conftest.er1 >conftest.err
10041 cat conftest.err >&5
10042 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10043 (exit $ac_status); } >/dev/null; then
10044 if test -s conftest.err; then
10045 ac_cpp_err=$ac_c_preproc_warn_flag
10046 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
10053 if test -z "$ac_cpp_err"; then
10054 ac_header_preproc=yes
10056 echo "$as_me: failed program was:" >&5
10057 sed 's/^/| /' conftest.$ac_ext >&5
10059 ac_header_preproc=no
10061 rm -f conftest.err conftest.$ac_ext
10062 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
10063 echo "${ECHO_T}$ac_header_preproc" >&6
10065 # So? What about this header?
10066 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
10068 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
10069 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
10070 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
10071 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
10072 ac_header_preproc=yes
10075 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
10076 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
10077 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
10078 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
10079 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
10080 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
10081 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
10082 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
10083 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
10084 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
10085 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
10086 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
10089 ## ------------------------------------------ ##
10090 ## Report this to the AC_PACKAGE_NAME lists. ##
10091 ## ------------------------------------------ ##
10094 sed "s/^/$as_me: WARNING: /" >&2
10097 echo "$as_me:$LINENO: checking for $ac_header" >&5
10098 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
10099 if eval "test \"\${$as_ac_Header+set}\" = set"; then
10100 echo $ECHO_N "(cached) $ECHO_C" >&6
10102 eval "$as_ac_Header=\$ac_header_preproc"
10104 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
10105 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
10108 if test `eval echo '${'$as_ac_Header'}'` = yes; then
10109 cat >>confdefs.h <<_ACEOF
10110 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
10118 for ac_header in sys/select.h
10120 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
10121 if eval "test \"\${$as_ac_Header+set}\" = set"; then
10122 echo "$as_me:$LINENO: checking for $ac_header" >&5
10123 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
10124 if eval "test \"\${$as_ac_Header+set}\" = set"; then
10125 echo $ECHO_N "(cached) $ECHO_C" >&6
10127 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
10128 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
10130 # Is the header compilable?
10131 echo "$as_me:$LINENO: checking $ac_header usability" >&5
10132 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
10133 cat >conftest.$ac_ext <<_ACEOF
10136 cat confdefs.h >>conftest.$ac_ext
10137 cat >>conftest.$ac_ext <<_ACEOF
10138 /* end confdefs.h. */
10139 $ac_includes_default
10140 #include <$ac_header>
10142 rm -f conftest.$ac_objext
10143 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
10144 (eval $ac_compile) 2>conftest.er1
10146 grep -v '^ *+' conftest.er1 >conftest.err
10148 cat conftest.err >&5
10149 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10150 (exit $ac_status); } &&
10151 { ac_try='test -z "$ac_c_werror_flag"
10152 || test ! -s conftest.err'
10153 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10154 (eval $ac_try) 2>&5
10156 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10157 (exit $ac_status); }; } &&
10158 { ac_try='test -s conftest.$ac_objext'
10159 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10160 (eval $ac_try) 2>&5
10162 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10163 (exit $ac_status); }; }; then
10164 ac_header_compiler=yes
10166 echo "$as_me: failed program was:" >&5
10167 sed 's/^/| /' conftest.$ac_ext >&5
10169 ac_header_compiler=no
10171 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
10172 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
10173 echo "${ECHO_T}$ac_header_compiler" >&6
10175 # Is the header present?
10176 echo "$as_me:$LINENO: checking $ac_header presence" >&5
10177 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
10178 cat >conftest.$ac_ext <<_ACEOF
10181 cat confdefs.h >>conftest.$ac_ext
10182 cat >>conftest.$ac_ext <<_ACEOF
10183 /* end confdefs.h. */
10184 #include <$ac_header>
10186 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
10187 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
10189 grep -v '^ *+' conftest.er1 >conftest.err
10191 cat conftest.err >&5
10192 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10193 (exit $ac_status); } >/dev/null; then
10194 if test -s conftest.err; then
10195 ac_cpp_err=$ac_c_preproc_warn_flag
10196 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
10203 if test -z "$ac_cpp_err"; then
10204 ac_header_preproc=yes
10206 echo "$as_me: failed program was:" >&5
10207 sed 's/^/| /' conftest.$ac_ext >&5
10209 ac_header_preproc=no
10211 rm -f conftest.err conftest.$ac_ext
10212 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
10213 echo "${ECHO_T}$ac_header_preproc" >&6
10215 # So? What about this header?
10216 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
10218 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
10219 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
10220 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
10221 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
10222 ac_header_preproc=yes
10225 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
10226 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
10227 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
10228 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
10229 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
10230 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
10231 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
10232 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
10233 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
10234 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
10235 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
10236 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
10239 ## ------------------------------------------ ##
10240 ## Report this to the AC_PACKAGE_NAME lists. ##
10241 ## ------------------------------------------ ##
10244 sed "s/^/$as_me: WARNING: /" >&2
10247 echo "$as_me:$LINENO: checking for $ac_header" >&5
10248 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
10249 if eval "test \"\${$as_ac_Header+set}\" = set"; then
10250 echo $ECHO_N "(cached) $ECHO_C" >&6
10252 eval "$as_ac_Header=\$ac_header_preproc"
10254 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
10255 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
10258 if test `eval echo '${'$as_ac_Header'}'` = yes; then
10259 cat >>confdefs.h <<_ACEOF
10260 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
10268 for ac_header in sys/syscall.h
10270 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
10271 if eval "test \"\${$as_ac_Header+set}\" = set"; then
10272 echo "$as_me:$LINENO: checking for $ac_header" >&5
10273 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
10274 if eval "test \"\${$as_ac_Header+set}\" = set"; then
10275 echo $ECHO_N "(cached) $ECHO_C" >&6
10277 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
10278 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
10280 # Is the header compilable?
10281 echo "$as_me:$LINENO: checking $ac_header usability" >&5
10282 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
10283 cat >conftest.$ac_ext <<_ACEOF
10286 cat confdefs.h >>conftest.$ac_ext
10287 cat >>conftest.$ac_ext <<_ACEOF
10288 /* end confdefs.h. */
10289 $ac_includes_default
10290 #include <$ac_header>
10292 rm -f conftest.$ac_objext
10293 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
10294 (eval $ac_compile) 2>conftest.er1
10296 grep -v '^ *+' conftest.er1 >conftest.err
10298 cat conftest.err >&5
10299 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10300 (exit $ac_status); } &&
10301 { ac_try='test -z "$ac_c_werror_flag"
10302 || test ! -s conftest.err'
10303 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10304 (eval $ac_try) 2>&5
10306 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10307 (exit $ac_status); }; } &&
10308 { ac_try='test -s conftest.$ac_objext'
10309 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10310 (eval $ac_try) 2>&5
10312 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10313 (exit $ac_status); }; }; then
10314 ac_header_compiler=yes
10316 echo "$as_me: failed program was:" >&5
10317 sed 's/^/| /' conftest.$ac_ext >&5
10319 ac_header_compiler=no
10321 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
10322 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
10323 echo "${ECHO_T}$ac_header_compiler" >&6
10325 # Is the header present?
10326 echo "$as_me:$LINENO: checking $ac_header presence" >&5
10327 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
10328 cat >conftest.$ac_ext <<_ACEOF
10331 cat confdefs.h >>conftest.$ac_ext
10332 cat >>conftest.$ac_ext <<_ACEOF
10333 /* end confdefs.h. */
10334 #include <$ac_header>
10336 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
10337 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
10339 grep -v '^ *+' conftest.er1 >conftest.err
10341 cat conftest.err >&5
10342 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10343 (exit $ac_status); } >/dev/null; then
10344 if test -s conftest.err; then
10345 ac_cpp_err=$ac_c_preproc_warn_flag
10346 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
10353 if test -z "$ac_cpp_err"; then
10354 ac_header_preproc=yes
10356 echo "$as_me: failed program was:" >&5
10357 sed 's/^/| /' conftest.$ac_ext >&5
10359 ac_header_preproc=no
10361 rm -f conftest.err conftest.$ac_ext
10362 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
10363 echo "${ECHO_T}$ac_header_preproc" >&6
10365 # So? What about this header?
10366 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
10368 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
10369 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
10370 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
10371 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
10372 ac_header_preproc=yes
10375 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
10376 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
10377 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
10378 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
10379 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
10380 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
10381 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
10382 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
10383 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
10384 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
10385 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
10386 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
10389 ## ------------------------------------------ ##
10390 ## Report this to the AC_PACKAGE_NAME lists. ##
10391 ## ------------------------------------------ ##
10394 sed "s/^/$as_me: WARNING: /" >&2
10397 echo "$as_me:$LINENO: checking for $ac_header" >&5
10398 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
10399 if eval "test \"\${$as_ac_Header+set}\" = set"; then
10400 echo $ECHO_N "(cached) $ECHO_C" >&6
10402 eval "$as_ac_Header=\$ac_header_preproc"
10404 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
10405 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
10408 if test `eval echo '${'$as_ac_Header'}'` = yes; then
10409 cat >>confdefs.h <<_ACEOF
10410 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
10418 for ac_header in sys/types.h
10420 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
10421 if eval "test \"\${$as_ac_Header+set}\" = set"; then
10422 echo "$as_me:$LINENO: checking for $ac_header" >&5
10423 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
10424 if eval "test \"\${$as_ac_Header+set}\" = set"; then
10425 echo $ECHO_N "(cached) $ECHO_C" >&6
10427 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
10428 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
10430 # Is the header compilable?
10431 echo "$as_me:$LINENO: checking $ac_header usability" >&5
10432 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
10433 cat >conftest.$ac_ext <<_ACEOF
10436 cat confdefs.h >>conftest.$ac_ext
10437 cat >>conftest.$ac_ext <<_ACEOF
10438 /* end confdefs.h. */
10439 $ac_includes_default
10440 #include <$ac_header>
10442 rm -f conftest.$ac_objext
10443 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
10444 (eval $ac_compile) 2>conftest.er1
10446 grep -v '^ *+' conftest.er1 >conftest.err
10448 cat conftest.err >&5
10449 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10450 (exit $ac_status); } &&
10451 { ac_try='test -z "$ac_c_werror_flag"
10452 || test ! -s conftest.err'
10453 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10454 (eval $ac_try) 2>&5
10456 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10457 (exit $ac_status); }; } &&
10458 { ac_try='test -s conftest.$ac_objext'
10459 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10460 (eval $ac_try) 2>&5
10462 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10463 (exit $ac_status); }; }; then
10464 ac_header_compiler=yes
10466 echo "$as_me: failed program was:" >&5
10467 sed 's/^/| /' conftest.$ac_ext >&5
10469 ac_header_compiler=no
10471 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
10472 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
10473 echo "${ECHO_T}$ac_header_compiler" >&6
10475 # Is the header present?
10476 echo "$as_me:$LINENO: checking $ac_header presence" >&5
10477 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
10478 cat >conftest.$ac_ext <<_ACEOF
10481 cat confdefs.h >>conftest.$ac_ext
10482 cat >>conftest.$ac_ext <<_ACEOF
10483 /* end confdefs.h. */
10484 #include <$ac_header>
10486 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
10487 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
10489 grep -v '^ *+' conftest.er1 >conftest.err
10491 cat conftest.err >&5
10492 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10493 (exit $ac_status); } >/dev/null; then
10494 if test -s conftest.err; then
10495 ac_cpp_err=$ac_c_preproc_warn_flag
10496 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
10503 if test -z "$ac_cpp_err"; then
10504 ac_header_preproc=yes
10506 echo "$as_me: failed program was:" >&5
10507 sed 's/^/| /' conftest.$ac_ext >&5
10509 ac_header_preproc=no
10511 rm -f conftest.err conftest.$ac_ext
10512 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
10513 echo "${ECHO_T}$ac_header_preproc" >&6
10515 # So? What about this header?
10516 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
10518 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
10519 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
10520 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
10521 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
10522 ac_header_preproc=yes
10525 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
10526 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
10527 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
10528 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
10529 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
10530 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
10531 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
10532 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
10533 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
10534 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
10535 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
10536 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
10539 ## ------------------------------------------ ##
10540 ## Report this to the AC_PACKAGE_NAME lists. ##
10541 ## ------------------------------------------ ##
10544 sed "s/^/$as_me: WARNING: /" >&2
10547 echo "$as_me:$LINENO: checking for $ac_header" >&5
10548 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
10549 if eval "test \"\${$as_ac_Header+set}\" = set"; then
10550 echo $ECHO_N "(cached) $ECHO_C" >&6
10552 eval "$as_ac_Header=\$ac_header_preproc"
10554 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
10555 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
10558 if test `eval echo '${'$as_ac_Header'}'` = yes; then
10559 cat >>confdefs.h <<_ACEOF
10560 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
10568 for ac_header in sys/user.h
10570 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
10571 echo "$as_me:$LINENO: checking for $ac_header" >&5
10572 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
10573 if eval "test \"\${$as_ac_Header+set}\" = set"; then
10574 echo $ECHO_N "(cached) $ECHO_C" >&6
10576 cat >conftest.$ac_ext <<_ACEOF
10579 cat confdefs.h >>conftest.$ac_ext
10580 cat >>conftest.$ac_ext <<_ACEOF
10581 /* end confdefs.h. */
10582 #if HAVE_SYS_PARAM_H
10583 # include <sys/param.h>
10587 #include <$ac_header>
10589 rm -f conftest.$ac_objext
10590 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
10591 (eval $ac_compile) 2>conftest.er1
10593 grep -v '^ *+' conftest.er1 >conftest.err
10595 cat conftest.err >&5
10596 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10597 (exit $ac_status); } &&
10598 { ac_try='test -z "$ac_c_werror_flag"
10599 || 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 eval "$as_ac_Header=yes"
10613 echo "$as_me: failed program was:" >&5
10614 sed 's/^/| /' conftest.$ac_ext >&5
10616 eval "$as_ac_Header=no"
10618 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
10620 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
10621 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
10622 if test `eval echo '${'$as_ac_Header'}'` = yes; then
10623 cat >>confdefs.h <<_ACEOF
10624 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
10633 for ac_header in sys/wait.h wait.h
10635 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
10636 if eval "test \"\${$as_ac_Header+set}\" = set"; then
10637 echo "$as_me:$LINENO: checking for $ac_header" >&5
10638 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
10639 if eval "test \"\${$as_ac_Header+set}\" = set"; then
10640 echo $ECHO_N "(cached) $ECHO_C" >&6
10642 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
10643 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
10645 # Is the header compilable?
10646 echo "$as_me:$LINENO: checking $ac_header usability" >&5
10647 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
10648 cat >conftest.$ac_ext <<_ACEOF
10651 cat confdefs.h >>conftest.$ac_ext
10652 cat >>conftest.$ac_ext <<_ACEOF
10653 /* end confdefs.h. */
10654 $ac_includes_default
10655 #include <$ac_header>
10657 rm -f conftest.$ac_objext
10658 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
10659 (eval $ac_compile) 2>conftest.er1
10661 grep -v '^ *+' conftest.er1 >conftest.err
10663 cat conftest.err >&5
10664 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10665 (exit $ac_status); } &&
10666 { ac_try='test -z "$ac_c_werror_flag"
10667 || test ! -s conftest.err'
10668 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10669 (eval $ac_try) 2>&5
10671 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10672 (exit $ac_status); }; } &&
10673 { ac_try='test -s conftest.$ac_objext'
10674 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10675 (eval $ac_try) 2>&5
10677 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10678 (exit $ac_status); }; }; then
10679 ac_header_compiler=yes
10681 echo "$as_me: failed program was:" >&5
10682 sed 's/^/| /' conftest.$ac_ext >&5
10684 ac_header_compiler=no
10686 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
10687 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
10688 echo "${ECHO_T}$ac_header_compiler" >&6
10690 # Is the header present?
10691 echo "$as_me:$LINENO: checking $ac_header presence" >&5
10692 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
10693 cat >conftest.$ac_ext <<_ACEOF
10696 cat confdefs.h >>conftest.$ac_ext
10697 cat >>conftest.$ac_ext <<_ACEOF
10698 /* end confdefs.h. */
10699 #include <$ac_header>
10701 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
10702 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
10704 grep -v '^ *+' conftest.er1 >conftest.err
10706 cat conftest.err >&5
10707 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10708 (exit $ac_status); } >/dev/null; then
10709 if test -s conftest.err; then
10710 ac_cpp_err=$ac_c_preproc_warn_flag
10711 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
10718 if test -z "$ac_cpp_err"; then
10719 ac_header_preproc=yes
10721 echo "$as_me: failed program was:" >&5
10722 sed 's/^/| /' conftest.$ac_ext >&5
10724 ac_header_preproc=no
10726 rm -f conftest.err conftest.$ac_ext
10727 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
10728 echo "${ECHO_T}$ac_header_preproc" >&6
10730 # So? What about this header?
10731 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
10733 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
10734 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
10735 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
10736 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
10737 ac_header_preproc=yes
10740 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
10741 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
10742 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
10743 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
10744 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
10745 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
10746 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
10747 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
10748 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
10749 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
10750 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
10751 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
10754 ## ------------------------------------------ ##
10755 ## Report this to the AC_PACKAGE_NAME lists. ##
10756 ## ------------------------------------------ ##
10759 sed "s/^/$as_me: WARNING: /" >&2
10762 echo "$as_me:$LINENO: checking for $ac_header" >&5
10763 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
10764 if eval "test \"\${$as_ac_Header+set}\" = set"; then
10765 echo $ECHO_N "(cached) $ECHO_C" >&6
10767 eval "$as_ac_Header=\$ac_header_preproc"
10769 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
10770 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
10773 if test `eval echo '${'$as_ac_Header'}'` = yes; then
10774 cat >>confdefs.h <<_ACEOF
10775 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
10785 for ac_header in termios.h termio.h sgtty.h
10787 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
10788 if eval "test \"\${$as_ac_Header+set}\" = set"; then
10789 echo "$as_me:$LINENO: checking for $ac_header" >&5
10790 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
10791 if eval "test \"\${$as_ac_Header+set}\" = set"; then
10792 echo $ECHO_N "(cached) $ECHO_C" >&6
10794 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
10795 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
10797 # Is the header compilable?
10798 echo "$as_me:$LINENO: checking $ac_header usability" >&5
10799 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
10800 cat >conftest.$ac_ext <<_ACEOF
10803 cat confdefs.h >>conftest.$ac_ext
10804 cat >>conftest.$ac_ext <<_ACEOF
10805 /* end confdefs.h. */
10806 $ac_includes_default
10807 #include <$ac_header>
10809 rm -f conftest.$ac_objext
10810 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
10811 (eval $ac_compile) 2>conftest.er1
10813 grep -v '^ *+' conftest.er1 >conftest.err
10815 cat conftest.err >&5
10816 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10817 (exit $ac_status); } &&
10818 { ac_try='test -z "$ac_c_werror_flag"
10819 || test ! -s conftest.err'
10820 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10821 (eval $ac_try) 2>&5
10823 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10824 (exit $ac_status); }; } &&
10825 { ac_try='test -s conftest.$ac_objext'
10826 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10827 (eval $ac_try) 2>&5
10829 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10830 (exit $ac_status); }; }; then
10831 ac_header_compiler=yes
10833 echo "$as_me: failed program was:" >&5
10834 sed 's/^/| /' conftest.$ac_ext >&5
10836 ac_header_compiler=no
10838 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
10839 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
10840 echo "${ECHO_T}$ac_header_compiler" >&6
10842 # Is the header present?
10843 echo "$as_me:$LINENO: checking $ac_header presence" >&5
10844 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
10845 cat >conftest.$ac_ext <<_ACEOF
10848 cat confdefs.h >>conftest.$ac_ext
10849 cat >>conftest.$ac_ext <<_ACEOF
10850 /* end confdefs.h. */
10851 #include <$ac_header>
10853 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
10854 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
10856 grep -v '^ *+' conftest.er1 >conftest.err
10858 cat conftest.err >&5
10859 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10860 (exit $ac_status); } >/dev/null; then
10861 if test -s conftest.err; then
10862 ac_cpp_err=$ac_c_preproc_warn_flag
10863 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
10870 if test -z "$ac_cpp_err"; then
10871 ac_header_preproc=yes
10873 echo "$as_me: failed program was:" >&5
10874 sed 's/^/| /' conftest.$ac_ext >&5
10876 ac_header_preproc=no
10878 rm -f conftest.err conftest.$ac_ext
10879 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
10880 echo "${ECHO_T}$ac_header_preproc" >&6
10882 # So? What about this header?
10883 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
10885 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
10886 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
10887 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
10888 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
10889 ac_header_preproc=yes
10892 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
10893 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
10894 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
10895 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
10896 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
10897 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
10898 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
10899 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
10900 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
10901 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
10902 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
10903 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
10906 ## ------------------------------------------ ##
10907 ## Report this to the AC_PACKAGE_NAME lists. ##
10908 ## ------------------------------------------ ##
10911 sed "s/^/$as_me: WARNING: /" >&2
10914 echo "$as_me:$LINENO: checking for $ac_header" >&5
10915 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
10916 if eval "test \"\${$as_ac_Header+set}\" = set"; then
10917 echo $ECHO_N "(cached) $ECHO_C" >&6
10919 eval "$as_ac_Header=\$ac_header_preproc"
10921 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
10922 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
10925 if test `eval echo '${'$as_ac_Header'}'` = yes; then
10926 cat >>confdefs.h <<_ACEOF
10927 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
10935 for ac_header in unistd.h
10937 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
10938 if eval "test \"\${$as_ac_Header+set}\" = set"; then
10939 echo "$as_me:$LINENO: checking for $ac_header" >&5
10940 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
10941 if eval "test \"\${$as_ac_Header+set}\" = set"; then
10942 echo $ECHO_N "(cached) $ECHO_C" >&6
10944 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
10945 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
10947 # Is the header compilable?
10948 echo "$as_me:$LINENO: checking $ac_header usability" >&5
10949 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
10950 cat >conftest.$ac_ext <<_ACEOF
10953 cat confdefs.h >>conftest.$ac_ext
10954 cat >>conftest.$ac_ext <<_ACEOF
10955 /* end confdefs.h. */
10956 $ac_includes_default
10957 #include <$ac_header>
10959 rm -f conftest.$ac_objext
10960 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
10961 (eval $ac_compile) 2>conftest.er1
10963 grep -v '^ *+' conftest.er1 >conftest.err
10965 cat conftest.err >&5
10966 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10967 (exit $ac_status); } &&
10968 { ac_try='test -z "$ac_c_werror_flag"
10969 || test ! -s conftest.err'
10970 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10971 (eval $ac_try) 2>&5
10973 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10974 (exit $ac_status); }; } &&
10975 { ac_try='test -s conftest.$ac_objext'
10976 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10977 (eval $ac_try) 2>&5
10979 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10980 (exit $ac_status); }; }; then
10981 ac_header_compiler=yes
10983 echo "$as_me: failed program was:" >&5
10984 sed 's/^/| /' conftest.$ac_ext >&5
10986 ac_header_compiler=no
10988 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
10989 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
10990 echo "${ECHO_T}$ac_header_compiler" >&6
10992 # Is the header present?
10993 echo "$as_me:$LINENO: checking $ac_header presence" >&5
10994 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
10995 cat >conftest.$ac_ext <<_ACEOF
10998 cat confdefs.h >>conftest.$ac_ext
10999 cat >>conftest.$ac_ext <<_ACEOF
11000 /* end confdefs.h. */
11001 #include <$ac_header>
11003 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
11004 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
11006 grep -v '^ *+' conftest.er1 >conftest.err
11008 cat conftest.err >&5
11009 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11010 (exit $ac_status); } >/dev/null; then
11011 if test -s conftest.err; then
11012 ac_cpp_err=$ac_c_preproc_warn_flag
11013 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
11020 if test -z "$ac_cpp_err"; then
11021 ac_header_preproc=yes
11023 echo "$as_me: failed program was:" >&5
11024 sed 's/^/| /' conftest.$ac_ext >&5
11026 ac_header_preproc=no
11028 rm -f conftest.err conftest.$ac_ext
11029 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
11030 echo "${ECHO_T}$ac_header_preproc" >&6
11032 # So? What about this header?
11033 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
11035 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
11036 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
11037 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
11038 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
11039 ac_header_preproc=yes
11042 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
11043 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
11044 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
11045 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
11046 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
11047 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
11048 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
11049 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
11050 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
11051 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
11052 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
11053 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
11056 ## ------------------------------------------ ##
11057 ## Report this to the AC_PACKAGE_NAME lists. ##
11058 ## ------------------------------------------ ##
11061 sed "s/^/$as_me: WARNING: /" >&2
11064 echo "$as_me:$LINENO: checking for $ac_header" >&5
11065 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
11066 if eval "test \"\${$as_ac_Header+set}\" = set"; then
11067 echo $ECHO_N "(cached) $ECHO_C" >&6
11069 eval "$as_ac_Header=\$ac_header_preproc"
11071 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
11072 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
11075 if test `eval echo '${'$as_ac_Header'}'` = yes; then
11076 cat >>confdefs.h <<_ACEOF
11077 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
11085 # On Solaris 2.[789], we need to define _MSE_INT_H to avoid a clash
11086 # between <widec.h> and <wchar.h> that would cause AC_CHECK_HEADERS to
11087 # think that we don't have <curses.h> if we're using GCC.
11090 if test "$GCC" = yes; then
11092 cat >>confdefs.h <<\_ACEOF
11093 #define _MSE_INT_H 1
11102 for ac_header in curses.h cursesX.h ncurses.h ncurses/ncurses.h
11104 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
11105 if eval "test \"\${$as_ac_Header+set}\" = set"; then
11106 echo "$as_me:$LINENO: checking for $ac_header" >&5
11107 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
11108 if eval "test \"\${$as_ac_Header+set}\" = set"; then
11109 echo $ECHO_N "(cached) $ECHO_C" >&6
11111 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
11112 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
11114 # Is the header compilable?
11115 echo "$as_me:$LINENO: checking $ac_header usability" >&5
11116 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
11117 cat >conftest.$ac_ext <<_ACEOF
11120 cat confdefs.h >>conftest.$ac_ext
11121 cat >>conftest.$ac_ext <<_ACEOF
11122 /* end confdefs.h. */
11123 $ac_includes_default
11124 #include <$ac_header>
11126 rm -f conftest.$ac_objext
11127 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
11128 (eval $ac_compile) 2>conftest.er1
11130 grep -v '^ *+' conftest.er1 >conftest.err
11132 cat conftest.err >&5
11133 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11134 (exit $ac_status); } &&
11135 { ac_try='test -z "$ac_c_werror_flag"
11136 || test ! -s conftest.err'
11137 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11138 (eval $ac_try) 2>&5
11140 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11141 (exit $ac_status); }; } &&
11142 { ac_try='test -s conftest.$ac_objext'
11143 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11144 (eval $ac_try) 2>&5
11146 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11147 (exit $ac_status); }; }; then
11148 ac_header_compiler=yes
11150 echo "$as_me: failed program was:" >&5
11151 sed 's/^/| /' conftest.$ac_ext >&5
11153 ac_header_compiler=no
11155 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
11156 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
11157 echo "${ECHO_T}$ac_header_compiler" >&6
11159 # Is the header present?
11160 echo "$as_me:$LINENO: checking $ac_header presence" >&5
11161 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
11162 cat >conftest.$ac_ext <<_ACEOF
11165 cat confdefs.h >>conftest.$ac_ext
11166 cat >>conftest.$ac_ext <<_ACEOF
11167 /* end confdefs.h. */
11168 #include <$ac_header>
11170 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
11171 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
11173 grep -v '^ *+' conftest.er1 >conftest.err
11175 cat conftest.err >&5
11176 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11177 (exit $ac_status); } >/dev/null; then
11178 if test -s conftest.err; then
11179 ac_cpp_err=$ac_c_preproc_warn_flag
11180 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
11187 if test -z "$ac_cpp_err"; then
11188 ac_header_preproc=yes
11190 echo "$as_me: failed program was:" >&5
11191 sed 's/^/| /' conftest.$ac_ext >&5
11193 ac_header_preproc=no
11195 rm -f conftest.err conftest.$ac_ext
11196 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
11197 echo "${ECHO_T}$ac_header_preproc" >&6
11199 # So? What about this header?
11200 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
11202 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
11203 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
11204 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
11205 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
11206 ac_header_preproc=yes
11209 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
11210 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
11211 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
11212 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
11213 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
11214 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
11215 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
11216 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
11217 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
11218 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
11219 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
11220 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
11223 ## ------------------------------------------ ##
11224 ## Report this to the AC_PACKAGE_NAME lists. ##
11225 ## ------------------------------------------ ##
11228 sed "s/^/$as_me: WARNING: /" >&2
11231 echo "$as_me:$LINENO: checking for $ac_header" >&5
11232 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
11233 if eval "test \"\${$as_ac_Header+set}\" = set"; then
11234 echo $ECHO_N "(cached) $ECHO_C" >&6
11236 eval "$as_ac_Header=\$ac_header_preproc"
11238 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
11239 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
11242 if test `eval echo '${'$as_ac_Header'}'` = yes; then
11243 cat >>confdefs.h <<_ACEOF
11244 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
11252 for ac_header in ncurses/term.h
11254 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
11255 if eval "test \"\${$as_ac_Header+set}\" = set"; then
11256 echo "$as_me:$LINENO: checking for $ac_header" >&5
11257 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
11258 if eval "test \"\${$as_ac_Header+set}\" = set"; then
11259 echo $ECHO_N "(cached) $ECHO_C" >&6
11261 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
11262 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
11264 # Is the header compilable?
11265 echo "$as_me:$LINENO: checking $ac_header usability" >&5
11266 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
11267 cat >conftest.$ac_ext <<_ACEOF
11270 cat confdefs.h >>conftest.$ac_ext
11271 cat >>conftest.$ac_ext <<_ACEOF
11272 /* end confdefs.h. */
11273 $ac_includes_default
11274 #include <$ac_header>
11276 rm -f conftest.$ac_objext
11277 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
11278 (eval $ac_compile) 2>conftest.er1
11280 grep -v '^ *+' conftest.er1 >conftest.err
11282 cat conftest.err >&5
11283 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11284 (exit $ac_status); } &&
11285 { ac_try='test -z "$ac_c_werror_flag"
11286 || test ! -s conftest.err'
11287 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11288 (eval $ac_try) 2>&5
11290 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11291 (exit $ac_status); }; } &&
11292 { ac_try='test -s conftest.$ac_objext'
11293 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11294 (eval $ac_try) 2>&5
11296 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11297 (exit $ac_status); }; }; then
11298 ac_header_compiler=yes
11300 echo "$as_me: failed program was:" >&5
11301 sed 's/^/| /' conftest.$ac_ext >&5
11303 ac_header_compiler=no
11305 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
11306 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
11307 echo "${ECHO_T}$ac_header_compiler" >&6
11309 # Is the header present?
11310 echo "$as_me:$LINENO: checking $ac_header presence" >&5
11311 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
11312 cat >conftest.$ac_ext <<_ACEOF
11315 cat confdefs.h >>conftest.$ac_ext
11316 cat >>conftest.$ac_ext <<_ACEOF
11317 /* end confdefs.h. */
11318 #include <$ac_header>
11320 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
11321 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
11323 grep -v '^ *+' conftest.er1 >conftest.err
11325 cat conftest.err >&5
11326 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11327 (exit $ac_status); } >/dev/null; then
11328 if test -s conftest.err; then
11329 ac_cpp_err=$ac_c_preproc_warn_flag
11330 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
11337 if test -z "$ac_cpp_err"; then
11338 ac_header_preproc=yes
11340 echo "$as_me: failed program was:" >&5
11341 sed 's/^/| /' conftest.$ac_ext >&5
11343 ac_header_preproc=no
11345 rm -f conftest.err conftest.$ac_ext
11346 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
11347 echo "${ECHO_T}$ac_header_preproc" >&6
11349 # So? What about this header?
11350 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
11352 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
11353 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
11354 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
11355 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
11356 ac_header_preproc=yes
11359 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
11360 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
11361 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
11362 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
11363 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
11364 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
11365 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
11366 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
11367 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
11368 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
11369 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
11370 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
11373 ## ------------------------------------------ ##
11374 ## Report this to the AC_PACKAGE_NAME lists. ##
11375 ## ------------------------------------------ ##
11378 sed "s/^/$as_me: WARNING: /" >&2
11381 echo "$as_me:$LINENO: checking for $ac_header" >&5
11382 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
11383 if eval "test \"\${$as_ac_Header+set}\" = set"; then
11384 echo $ECHO_N "(cached) $ECHO_C" >&6
11386 eval "$as_ac_Header=\$ac_header_preproc"
11388 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
11389 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
11392 if test `eval echo '${'$as_ac_Header'}'` = yes; then
11393 cat >>confdefs.h <<_ACEOF
11394 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
11402 for ac_header in term.h
11404 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
11405 echo "$as_me:$LINENO: checking for $ac_header" >&5
11406 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
11407 if eval "test \"\${$as_ac_Header+set}\" = set"; then
11408 echo $ECHO_N "(cached) $ECHO_C" >&6
11410 cat >conftest.$ac_ext <<_ACEOF
11413 cat confdefs.h >>conftest.$ac_ext
11414 cat >>conftest.$ac_ext <<_ACEOF
11415 /* end confdefs.h. */
11417 # include <curses.h>
11421 #include <$ac_header>
11423 rm -f conftest.$ac_objext
11424 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
11425 (eval $ac_compile) 2>conftest.er1
11427 grep -v '^ *+' conftest.er1 >conftest.err
11429 cat conftest.err >&5
11430 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11431 (exit $ac_status); } &&
11432 { ac_try='test -z "$ac_c_werror_flag"
11433 || test ! -s conftest.err'
11434 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11435 (eval $ac_try) 2>&5
11437 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11438 (exit $ac_status); }; } &&
11439 { ac_try='test -s conftest.$ac_objext'
11440 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11441 (eval $ac_try) 2>&5
11443 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11444 (exit $ac_status); }; }; then
11445 eval "$as_ac_Header=yes"
11447 echo "$as_me: failed program was:" >&5
11448 sed 's/^/| /' conftest.$ac_ext >&5
11450 eval "$as_ac_Header=no"
11452 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
11454 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
11455 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
11456 if test `eval echo '${'$as_ac_Header'}'` = yes; then
11457 cat >>confdefs.h <<_ACEOF
11458 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
11466 # Check for HP/UX 64-bit shared library support
11468 for ac_header in elf_hp.h
11470 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
11471 if eval "test \"\${$as_ac_Header+set}\" = set"; then
11472 echo "$as_me:$LINENO: checking for $ac_header" >&5
11473 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
11474 if eval "test \"\${$as_ac_Header+set}\" = set"; then
11475 echo $ECHO_N "(cached) $ECHO_C" >&6
11477 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
11478 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
11480 # Is the header compilable?
11481 echo "$as_me:$LINENO: checking $ac_header usability" >&5
11482 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
11483 cat >conftest.$ac_ext <<_ACEOF
11486 cat confdefs.h >>conftest.$ac_ext
11487 cat >>conftest.$ac_ext <<_ACEOF
11488 /* end confdefs.h. */
11489 $ac_includes_default
11490 #include <$ac_header>
11492 rm -f conftest.$ac_objext
11493 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
11494 (eval $ac_compile) 2>conftest.er1
11496 grep -v '^ *+' conftest.er1 >conftest.err
11498 cat conftest.err >&5
11499 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11500 (exit $ac_status); } &&
11501 { ac_try='test -z "$ac_c_werror_flag"
11502 || test ! -s conftest.err'
11503 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11504 (eval $ac_try) 2>&5
11506 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11507 (exit $ac_status); }; } &&
11508 { ac_try='test -s conftest.$ac_objext'
11509 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11510 (eval $ac_try) 2>&5
11512 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11513 (exit $ac_status); }; }; then
11514 ac_header_compiler=yes
11516 echo "$as_me: failed program was:" >&5
11517 sed 's/^/| /' conftest.$ac_ext >&5
11519 ac_header_compiler=no
11521 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
11522 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
11523 echo "${ECHO_T}$ac_header_compiler" >&6
11525 # Is the header present?
11526 echo "$as_me:$LINENO: checking $ac_header presence" >&5
11527 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
11528 cat >conftest.$ac_ext <<_ACEOF
11531 cat confdefs.h >>conftest.$ac_ext
11532 cat >>conftest.$ac_ext <<_ACEOF
11533 /* end confdefs.h. */
11534 #include <$ac_header>
11536 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
11537 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
11539 grep -v '^ *+' conftest.er1 >conftest.err
11541 cat conftest.err >&5
11542 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11543 (exit $ac_status); } >/dev/null; then
11544 if test -s conftest.err; then
11545 ac_cpp_err=$ac_c_preproc_warn_flag
11546 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
11553 if test -z "$ac_cpp_err"; then
11554 ac_header_preproc=yes
11556 echo "$as_me: failed program was:" >&5
11557 sed 's/^/| /' conftest.$ac_ext >&5
11559 ac_header_preproc=no
11561 rm -f conftest.err conftest.$ac_ext
11562 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
11563 echo "${ECHO_T}$ac_header_preproc" >&6
11565 # So? What about this header?
11566 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
11568 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
11569 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
11570 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
11571 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
11572 ac_header_preproc=yes
11575 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
11576 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
11577 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
11578 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
11579 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
11580 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
11581 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
11582 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
11583 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
11584 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
11585 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
11586 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
11589 ## ------------------------------------------ ##
11590 ## Report this to the AC_PACKAGE_NAME lists. ##
11591 ## ------------------------------------------ ##
11594 sed "s/^/$as_me: WARNING: /" >&2
11597 echo "$as_me:$LINENO: checking for $ac_header" >&5
11598 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
11599 if eval "test \"\${$as_ac_Header+set}\" = set"; then
11600 echo $ECHO_N "(cached) $ECHO_C" >&6
11602 eval "$as_ac_Header=\$ac_header_preproc"
11604 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
11605 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
11608 if test `eval echo '${'$as_ac_Header'}'` = yes; then
11609 cat >>confdefs.h <<_ACEOF
11610 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
11618 # FIXME: kettenis/20030102: In most cases we include these
11619 # unconditionally, so what's the point in checking these?
11622 for ac_header in ctype.h time.h
11624 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
11625 if eval "test \"\${$as_ac_Header+set}\" = set"; then
11626 echo "$as_me:$LINENO: checking for $ac_header" >&5
11627 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
11628 if eval "test \"\${$as_ac_Header+set}\" = set"; then
11629 echo $ECHO_N "(cached) $ECHO_C" >&6
11631 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
11632 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
11634 # Is the header compilable?
11635 echo "$as_me:$LINENO: checking $ac_header usability" >&5
11636 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
11637 cat >conftest.$ac_ext <<_ACEOF
11640 cat confdefs.h >>conftest.$ac_ext
11641 cat >>conftest.$ac_ext <<_ACEOF
11642 /* end confdefs.h. */
11643 $ac_includes_default
11644 #include <$ac_header>
11646 rm -f conftest.$ac_objext
11647 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
11648 (eval $ac_compile) 2>conftest.er1
11650 grep -v '^ *+' conftest.er1 >conftest.err
11652 cat conftest.err >&5
11653 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11654 (exit $ac_status); } &&
11655 { ac_try='test -z "$ac_c_werror_flag"
11656 || test ! -s conftest.err'
11657 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11658 (eval $ac_try) 2>&5
11660 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11661 (exit $ac_status); }; } &&
11662 { ac_try='test -s conftest.$ac_objext'
11663 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11664 (eval $ac_try) 2>&5
11666 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11667 (exit $ac_status); }; }; then
11668 ac_header_compiler=yes
11670 echo "$as_me: failed program was:" >&5
11671 sed 's/^/| /' conftest.$ac_ext >&5
11673 ac_header_compiler=no
11675 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
11676 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
11677 echo "${ECHO_T}$ac_header_compiler" >&6
11679 # Is the header present?
11680 echo "$as_me:$LINENO: checking $ac_header presence" >&5
11681 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
11682 cat >conftest.$ac_ext <<_ACEOF
11685 cat confdefs.h >>conftest.$ac_ext
11686 cat >>conftest.$ac_ext <<_ACEOF
11687 /* end confdefs.h. */
11688 #include <$ac_header>
11690 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
11691 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
11693 grep -v '^ *+' conftest.er1 >conftest.err
11695 cat conftest.err >&5
11696 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11697 (exit $ac_status); } >/dev/null; then
11698 if test -s conftest.err; then
11699 ac_cpp_err=$ac_c_preproc_warn_flag
11700 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
11707 if test -z "$ac_cpp_err"; then
11708 ac_header_preproc=yes
11710 echo "$as_me: failed program was:" >&5
11711 sed 's/^/| /' conftest.$ac_ext >&5
11713 ac_header_preproc=no
11715 rm -f conftest.err conftest.$ac_ext
11716 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
11717 echo "${ECHO_T}$ac_header_preproc" >&6
11719 # So? What about this header?
11720 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
11722 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
11723 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
11724 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
11725 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
11726 ac_header_preproc=yes
11729 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
11730 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
11731 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
11732 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
11733 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
11734 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
11735 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
11736 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
11737 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
11738 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
11739 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
11740 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
11743 ## ------------------------------------------ ##
11744 ## Report this to the AC_PACKAGE_NAME lists. ##
11745 ## ------------------------------------------ ##
11748 sed "s/^/$as_me: WARNING: /" >&2
11751 echo "$as_me:$LINENO: checking for $ac_header" >&5
11752 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
11753 if eval "test \"\${$as_ac_Header+set}\" = set"; then
11754 echo $ECHO_N "(cached) $ECHO_C" >&6
11756 eval "$as_ac_Header=\$ac_header_preproc"
11758 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
11759 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
11762 if test `eval echo '${'$as_ac_Header'}'` = yes; then
11763 cat >>confdefs.h <<_ACEOF
11764 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
11772 # Create a header we can use portably to get the standard integer types.
11775 inttype_headers=`echo inttypes.h sys/inttypes.h | sed -e 's/,/ /g'`
11777 acx_cv_header_stdint=stddef.h
11778 acx_cv_header_stdint_kind="(already complete)"
11779 for i in stdint.h $inttype_headers; do
11780 unset ac_cv_type_uintptr_t
11781 unset ac_cv_type_uintmax_t
11782 unset ac_cv_type_int_least32_t
11783 unset ac_cv_type_int_fast32_t
11784 unset ac_cv_type_uint64_t
11785 echo $ECHO_N "looking for a compliant stdint.h in $i, $ECHO_C" >&6
11786 echo "$as_me:$LINENO: checking for uintmax_t" >&5
11787 echo $ECHO_N "checking for uintmax_t... $ECHO_C" >&6
11788 if test "${ac_cv_type_uintmax_t+set}" = set; then
11789 echo $ECHO_N "(cached) $ECHO_C" >&6
11791 cat >conftest.$ac_ext <<_ACEOF
11794 cat confdefs.h >>conftest.$ac_ext
11795 cat >>conftest.$ac_ext <<_ACEOF
11796 /* end confdefs.h. */
11797 #include <sys/types.h>
11803 if ((uintmax_t *) 0)
11805 if (sizeof (uintmax_t))
11811 rm -f conftest.$ac_objext
11812 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
11813 (eval $ac_compile) 2>conftest.er1
11815 grep -v '^ *+' conftest.er1 >conftest.err
11817 cat conftest.err >&5
11818 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11819 (exit $ac_status); } &&
11820 { ac_try='test -z "$ac_c_werror_flag"
11821 || test ! -s conftest.err'
11822 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11823 (eval $ac_try) 2>&5
11825 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11826 (exit $ac_status); }; } &&
11827 { ac_try='test -s conftest.$ac_objext'
11828 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11829 (eval $ac_try) 2>&5
11831 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11832 (exit $ac_status); }; }; then
11833 ac_cv_type_uintmax_t=yes
11835 echo "$as_me: failed program was:" >&5
11836 sed 's/^/| /' conftest.$ac_ext >&5
11838 ac_cv_type_uintmax_t=no
11840 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
11842 echo "$as_me:$LINENO: result: $ac_cv_type_uintmax_t" >&5
11843 echo "${ECHO_T}$ac_cv_type_uintmax_t" >&6
11844 if test $ac_cv_type_uintmax_t = yes; then
11845 acx_cv_header_stdint=$i
11850 echo "$as_me:$LINENO: checking for uintptr_t" >&5
11851 echo $ECHO_N "checking for uintptr_t... $ECHO_C" >&6
11852 if test "${ac_cv_type_uintptr_t+set}" = set; then
11853 echo $ECHO_N "(cached) $ECHO_C" >&6
11855 cat >conftest.$ac_ext <<_ACEOF
11858 cat confdefs.h >>conftest.$ac_ext
11859 cat >>conftest.$ac_ext <<_ACEOF
11860 /* end confdefs.h. */
11861 #include <sys/types.h>
11867 if ((uintptr_t *) 0)
11869 if (sizeof (uintptr_t))
11875 rm -f conftest.$ac_objext
11876 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
11877 (eval $ac_compile) 2>conftest.er1
11879 grep -v '^ *+' conftest.er1 >conftest.err
11881 cat conftest.err >&5
11882 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11883 (exit $ac_status); } &&
11884 { ac_try='test -z "$ac_c_werror_flag"
11885 || test ! -s conftest.err'
11886 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11887 (eval $ac_try) 2>&5
11889 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11890 (exit $ac_status); }; } &&
11891 { ac_try='test -s conftest.$ac_objext'
11892 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11893 (eval $ac_try) 2>&5
11895 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11896 (exit $ac_status); }; }; then
11897 ac_cv_type_uintptr_t=yes
11899 echo "$as_me: failed program was:" >&5
11900 sed 's/^/| /' conftest.$ac_ext >&5
11902 ac_cv_type_uintptr_t=no
11904 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
11906 echo "$as_me:$LINENO: result: $ac_cv_type_uintptr_t" >&5
11907 echo "${ECHO_T}$ac_cv_type_uintptr_t" >&6
11908 if test $ac_cv_type_uintptr_t = yes; then
11911 acx_cv_header_stdint_kind="(mostly complete)"
11914 echo "$as_me:$LINENO: checking for int_least32_t" >&5
11915 echo $ECHO_N "checking for int_least32_t... $ECHO_C" >&6
11916 if test "${ac_cv_type_int_least32_t+set}" = set; then
11917 echo $ECHO_N "(cached) $ECHO_C" >&6
11919 cat >conftest.$ac_ext <<_ACEOF
11922 cat confdefs.h >>conftest.$ac_ext
11923 cat >>conftest.$ac_ext <<_ACEOF
11924 /* end confdefs.h. */
11925 #include <sys/types.h>
11931 if ((int_least32_t *) 0)
11933 if (sizeof (int_least32_t))
11939 rm -f conftest.$ac_objext
11940 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
11941 (eval $ac_compile) 2>conftest.er1
11943 grep -v '^ *+' conftest.er1 >conftest.err
11945 cat conftest.err >&5
11946 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11947 (exit $ac_status); } &&
11948 { ac_try='test -z "$ac_c_werror_flag"
11949 || test ! -s conftest.err'
11950 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11951 (eval $ac_try) 2>&5
11953 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11954 (exit $ac_status); }; } &&
11955 { ac_try='test -s conftest.$ac_objext'
11956 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11957 (eval $ac_try) 2>&5
11959 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11960 (exit $ac_status); }; }; then
11961 ac_cv_type_int_least32_t=yes
11963 echo "$as_me: failed program was:" >&5
11964 sed 's/^/| /' conftest.$ac_ext >&5
11966 ac_cv_type_int_least32_t=no
11968 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
11970 echo "$as_me:$LINENO: result: $ac_cv_type_int_least32_t" >&5
11971 echo "${ECHO_T}$ac_cv_type_int_least32_t" >&6
11972 if test $ac_cv_type_int_least32_t = yes; then
11975 acx_cv_header_stdint_kind="(mostly complete)"
11978 echo "$as_me:$LINENO: checking for int_fast32_t" >&5
11979 echo $ECHO_N "checking for int_fast32_t... $ECHO_C" >&6
11980 if test "${ac_cv_type_int_fast32_t+set}" = set; then
11981 echo $ECHO_N "(cached) $ECHO_C" >&6
11983 cat >conftest.$ac_ext <<_ACEOF
11986 cat confdefs.h >>conftest.$ac_ext
11987 cat >>conftest.$ac_ext <<_ACEOF
11988 /* end confdefs.h. */
11989 #include <sys/types.h>
11995 if ((int_fast32_t *) 0)
11997 if (sizeof (int_fast32_t))
12003 rm -f conftest.$ac_objext
12004 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
12005 (eval $ac_compile) 2>conftest.er1
12007 grep -v '^ *+' conftest.er1 >conftest.err
12009 cat conftest.err >&5
12010 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12011 (exit $ac_status); } &&
12012 { ac_try='test -z "$ac_c_werror_flag"
12013 || test ! -s conftest.err'
12014 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12015 (eval $ac_try) 2>&5
12017 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12018 (exit $ac_status); }; } &&
12019 { ac_try='test -s conftest.$ac_objext'
12020 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12021 (eval $ac_try) 2>&5
12023 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12024 (exit $ac_status); }; }; then
12025 ac_cv_type_int_fast32_t=yes
12027 echo "$as_me: failed program was:" >&5
12028 sed 's/^/| /' conftest.$ac_ext >&5
12030 ac_cv_type_int_fast32_t=no
12032 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
12034 echo "$as_me:$LINENO: result: $ac_cv_type_int_fast32_t" >&5
12035 echo "${ECHO_T}$ac_cv_type_int_fast32_t" >&6
12036 if test $ac_cv_type_int_fast32_t = yes; then
12039 acx_cv_header_stdint_kind="(mostly complete)"
12042 echo "$as_me:$LINENO: checking for uint64_t" >&5
12043 echo $ECHO_N "checking for uint64_t... $ECHO_C" >&6
12044 if test "${ac_cv_type_uint64_t+set}" = set; then
12045 echo $ECHO_N "(cached) $ECHO_C" >&6
12047 cat >conftest.$ac_ext <<_ACEOF
12050 cat confdefs.h >>conftest.$ac_ext
12051 cat >>conftest.$ac_ext <<_ACEOF
12052 /* end confdefs.h. */
12053 #include <sys/types.h>
12059 if ((uint64_t *) 0)
12061 if (sizeof (uint64_t))
12067 rm -f conftest.$ac_objext
12068 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
12069 (eval $ac_compile) 2>conftest.er1
12071 grep -v '^ *+' conftest.er1 >conftest.err
12073 cat conftest.err >&5
12074 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12075 (exit $ac_status); } &&
12076 { ac_try='test -z "$ac_c_werror_flag"
12077 || test ! -s conftest.err'
12078 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12079 (eval $ac_try) 2>&5
12081 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12082 (exit $ac_status); }; } &&
12083 { ac_try='test -s conftest.$ac_objext'
12084 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12085 (eval $ac_try) 2>&5
12087 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12088 (exit $ac_status); }; }; then
12089 ac_cv_type_uint64_t=yes
12091 echo "$as_me: failed program was:" >&5
12092 sed 's/^/| /' conftest.$ac_ext >&5
12094 ac_cv_type_uint64_t=no
12096 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
12098 echo "$as_me:$LINENO: result: $ac_cv_type_uint64_t" >&5
12099 echo "${ECHO_T}$ac_cv_type_uint64_t" >&6
12100 if test $ac_cv_type_uint64_t = yes; then
12103 acx_cv_header_stdint_kind="(lacks uint64_t)"
12108 if test "$acx_cv_header_stdint" = stddef.h; then
12109 acx_cv_header_stdint_kind="(lacks uintmax_t)"
12110 for i in stdint.h $inttype_headers; do
12111 unset ac_cv_type_uintptr_t
12112 unset ac_cv_type_uint32_t
12113 unset ac_cv_type_uint64_t
12114 echo $ECHO_N "looking for an incomplete stdint.h in $i, $ECHO_C" >&6
12115 echo "$as_me:$LINENO: checking for uint32_t" >&5
12116 echo $ECHO_N "checking for uint32_t... $ECHO_C" >&6
12117 if test "${ac_cv_type_uint32_t+set}" = set; then
12118 echo $ECHO_N "(cached) $ECHO_C" >&6
12120 cat >conftest.$ac_ext <<_ACEOF
12123 cat confdefs.h >>conftest.$ac_ext
12124 cat >>conftest.$ac_ext <<_ACEOF
12125 /* end confdefs.h. */
12126 #include <sys/types.h>
12132 if ((uint32_t *) 0)
12134 if (sizeof (uint32_t))
12140 rm -f conftest.$ac_objext
12141 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
12142 (eval $ac_compile) 2>conftest.er1
12144 grep -v '^ *+' conftest.er1 >conftest.err
12146 cat conftest.err >&5
12147 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12148 (exit $ac_status); } &&
12149 { ac_try='test -z "$ac_c_werror_flag"
12150 || test ! -s conftest.err'
12151 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12152 (eval $ac_try) 2>&5
12154 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12155 (exit $ac_status); }; } &&
12156 { ac_try='test -s conftest.$ac_objext'
12157 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12158 (eval $ac_try) 2>&5
12160 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12161 (exit $ac_status); }; }; then
12162 ac_cv_type_uint32_t=yes
12164 echo "$as_me: failed program was:" >&5
12165 sed 's/^/| /' conftest.$ac_ext >&5
12167 ac_cv_type_uint32_t=no
12169 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
12171 echo "$as_me:$LINENO: result: $ac_cv_type_uint32_t" >&5
12172 echo "${ECHO_T}$ac_cv_type_uint32_t" >&6
12173 if test $ac_cv_type_uint32_t = yes; then
12174 acx_cv_header_stdint=$i
12179 echo "$as_me:$LINENO: checking for uint64_t" >&5
12180 echo $ECHO_N "checking for uint64_t... $ECHO_C" >&6
12181 if test "${ac_cv_type_uint64_t+set}" = set; then
12182 echo $ECHO_N "(cached) $ECHO_C" >&6
12184 cat >conftest.$ac_ext <<_ACEOF
12187 cat confdefs.h >>conftest.$ac_ext
12188 cat >>conftest.$ac_ext <<_ACEOF
12189 /* end confdefs.h. */
12190 #include <sys/types.h>
12196 if ((uint64_t *) 0)
12198 if (sizeof (uint64_t))
12204 rm -f conftest.$ac_objext
12205 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
12206 (eval $ac_compile) 2>conftest.er1
12208 grep -v '^ *+' conftest.er1 >conftest.err
12210 cat conftest.err >&5
12211 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12212 (exit $ac_status); } &&
12213 { ac_try='test -z "$ac_c_werror_flag"
12214 || test ! -s conftest.err'
12215 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12216 (eval $ac_try) 2>&5
12218 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12219 (exit $ac_status); }; } &&
12220 { ac_try='test -s conftest.$ac_objext'
12221 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12222 (eval $ac_try) 2>&5
12224 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12225 (exit $ac_status); }; }; then
12226 ac_cv_type_uint64_t=yes
12228 echo "$as_me: failed program was:" >&5
12229 sed 's/^/| /' conftest.$ac_ext >&5
12231 ac_cv_type_uint64_t=no
12233 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
12235 echo "$as_me:$LINENO: result: $ac_cv_type_uint64_t" >&5
12236 echo "${ECHO_T}$ac_cv_type_uint64_t" >&6
12238 echo "$as_me:$LINENO: checking for uintptr_t" >&5
12239 echo $ECHO_N "checking for uintptr_t... $ECHO_C" >&6
12240 if test "${ac_cv_type_uintptr_t+set}" = set; then
12241 echo $ECHO_N "(cached) $ECHO_C" >&6
12243 cat >conftest.$ac_ext <<_ACEOF
12246 cat confdefs.h >>conftest.$ac_ext
12247 cat >>conftest.$ac_ext <<_ACEOF
12248 /* end confdefs.h. */
12249 #include <sys/types.h>
12255 if ((uintptr_t *) 0)
12257 if (sizeof (uintptr_t))
12263 rm -f conftest.$ac_objext
12264 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
12265 (eval $ac_compile) 2>conftest.er1
12267 grep -v '^ *+' conftest.er1 >conftest.err
12269 cat conftest.err >&5
12270 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12271 (exit $ac_status); } &&
12272 { ac_try='test -z "$ac_c_werror_flag"
12273 || test ! -s conftest.err'
12274 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12275 (eval $ac_try) 2>&5
12277 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12278 (exit $ac_status); }; } &&
12279 { ac_try='test -s conftest.$ac_objext'
12280 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12281 (eval $ac_try) 2>&5
12283 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12284 (exit $ac_status); }; }; then
12285 ac_cv_type_uintptr_t=yes
12287 echo "$as_me: failed program was:" >&5
12288 sed 's/^/| /' conftest.$ac_ext >&5
12290 ac_cv_type_uintptr_t=no
12292 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
12294 echo "$as_me:$LINENO: result: $ac_cv_type_uintptr_t" >&5
12295 echo "${ECHO_T}$ac_cv_type_uintptr_t" >&6
12300 if test "$acx_cv_header_stdint" = stddef.h; then
12301 acx_cv_header_stdint_kind="(u_intXX_t style)"
12302 for i in sys/types.h $inttype_headers; do
12303 unset ac_cv_type_u_int32_t
12304 unset ac_cv_type_u_int64_t
12305 echo $ECHO_N "looking for u_intXX_t types in $i, $ECHO_C" >&6
12306 echo "$as_me:$LINENO: checking for u_int32_t" >&5
12307 echo $ECHO_N "checking for u_int32_t... $ECHO_C" >&6
12308 if test "${ac_cv_type_u_int32_t+set}" = set; then
12309 echo $ECHO_N "(cached) $ECHO_C" >&6
12311 cat >conftest.$ac_ext <<_ACEOF
12314 cat confdefs.h >>conftest.$ac_ext
12315 cat >>conftest.$ac_ext <<_ACEOF
12316 /* end confdefs.h. */
12317 #include <sys/types.h>
12323 if ((u_int32_t *) 0)
12325 if (sizeof (u_int32_t))
12331 rm -f conftest.$ac_objext
12332 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
12333 (eval $ac_compile) 2>conftest.er1
12335 grep -v '^ *+' conftest.er1 >conftest.err
12337 cat conftest.err >&5
12338 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12339 (exit $ac_status); } &&
12340 { ac_try='test -z "$ac_c_werror_flag"
12341 || test ! -s conftest.err'
12342 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12343 (eval $ac_try) 2>&5
12345 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12346 (exit $ac_status); }; } &&
12347 { ac_try='test -s conftest.$ac_objext'
12348 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12349 (eval $ac_try) 2>&5
12351 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12352 (exit $ac_status); }; }; then
12353 ac_cv_type_u_int32_t=yes
12355 echo "$as_me: failed program was:" >&5
12356 sed 's/^/| /' conftest.$ac_ext >&5
12358 ac_cv_type_u_int32_t=no
12360 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
12362 echo "$as_me:$LINENO: result: $ac_cv_type_u_int32_t" >&5
12363 echo "${ECHO_T}$ac_cv_type_u_int32_t" >&6
12364 if test $ac_cv_type_u_int32_t = yes; then
12365 acx_cv_header_stdint=$i
12370 echo "$as_me:$LINENO: checking for u_int64_t" >&5
12371 echo $ECHO_N "checking for u_int64_t... $ECHO_C" >&6
12372 if test "${ac_cv_type_u_int64_t+set}" = set; then
12373 echo $ECHO_N "(cached) $ECHO_C" >&6
12375 cat >conftest.$ac_ext <<_ACEOF
12378 cat confdefs.h >>conftest.$ac_ext
12379 cat >>conftest.$ac_ext <<_ACEOF
12380 /* end confdefs.h. */
12381 #include <sys/types.h>
12387 if ((u_int64_t *) 0)
12389 if (sizeof (u_int64_t))
12395 rm -f conftest.$ac_objext
12396 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
12397 (eval $ac_compile) 2>conftest.er1
12399 grep -v '^ *+' conftest.er1 >conftest.err
12401 cat conftest.err >&5
12402 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12403 (exit $ac_status); } &&
12404 { ac_try='test -z "$ac_c_werror_flag"
12405 || test ! -s conftest.err'
12406 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12407 (eval $ac_try) 2>&5
12409 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12410 (exit $ac_status); }; } &&
12411 { ac_try='test -s conftest.$ac_objext'
12412 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12413 (eval $ac_try) 2>&5
12415 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12416 (exit $ac_status); }; }; then
12417 ac_cv_type_u_int64_t=yes
12419 echo "$as_me: failed program was:" >&5
12420 sed 's/^/| /' conftest.$ac_ext >&5
12422 ac_cv_type_u_int64_t=no
12424 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
12426 echo "$as_me:$LINENO: result: $ac_cv_type_u_int64_t" >&5
12427 echo "${ECHO_T}$ac_cv_type_u_int64_t" >&6
12432 if test "$acx_cv_header_stdint" = stddef.h; then
12433 acx_cv_header_stdint_kind="(using manual detection)"
12436 test -z "$ac_cv_type_uintptr_t" && ac_cv_type_uintptr_t=no
12437 test -z "$ac_cv_type_uint64_t" && ac_cv_type_uint64_t=no
12438 test -z "$ac_cv_type_u_int64_t" && ac_cv_type_u_int64_t=no
12439 test -z "$ac_cv_type_int_least32_t" && ac_cv_type_int_least32_t=no
12440 test -z "$ac_cv_type_int_fast32_t" && ac_cv_type_int_fast32_t=no
12442 # ----------------- Summarize what we found so far
12444 echo "$as_me:$LINENO: checking what to include in gdb_stdint.h" >&5
12445 echo $ECHO_N "checking what to include in gdb_stdint.h... $ECHO_C" >&6
12447 case `$as_basename gdb_stdint.h ||
12448 $as_expr X/gdb_stdint.h : '.*/\([^/][^/]*\)/*$' \| \
12449 Xgdb_stdint.h : 'X\(//\)$' \| \
12450 Xgdb_stdint.h : 'X\(/\)$' \| \
12451 . : '\(.\)' 2>/dev/null ||
12452 echo X/gdb_stdint.h |
12453 sed '/^.*\/\([^/][^/]*\)\/*$/{ s//\1/; q; }
12454 /^X\/\(\/\/\)$/{ s//\1/; q; }
12455 /^X\/\(\/\).*/{ s//\1/; q; }
12457 stdint.h) { echo "$as_me:$LINENO: WARNING: are you sure you want it there?" >&5
12458 echo "$as_me: WARNING: are you sure you want it there?" >&2;} ;;
12459 inttypes.h) { echo "$as_me:$LINENO: WARNING: are you sure you want it there?" >&5
12460 echo "$as_me: WARNING: are you sure you want it there?" >&2;} ;;
12464 echo "$as_me:$LINENO: result: $acx_cv_header_stdint $acx_cv_header_stdint_kind" >&5
12465 echo "${ECHO_T}$acx_cv_header_stdint $acx_cv_header_stdint_kind" >&6
12467 # ----------------- done included file, check C basic types --------
12469 # Lacking an uintptr_t? Test size of void *
12470 case "$acx_cv_header_stdint:$ac_cv_type_uintptr_t" in
12471 stddef.h:* | *:no) echo "$as_me:$LINENO: checking for void *" >&5
12472 echo $ECHO_N "checking for void *... $ECHO_C" >&6
12473 if test "${ac_cv_type_void_p+set}" = set; then
12474 echo $ECHO_N "(cached) $ECHO_C" >&6
12476 cat >conftest.$ac_ext <<_ACEOF
12479 cat confdefs.h >>conftest.$ac_ext
12480 cat >>conftest.$ac_ext <<_ACEOF
12481 /* end confdefs.h. */
12482 $ac_includes_default
12488 if (sizeof (void *))
12494 rm -f conftest.$ac_objext
12495 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
12496 (eval $ac_compile) 2>conftest.er1
12498 grep -v '^ *+' conftest.er1 >conftest.err
12500 cat conftest.err >&5
12501 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12502 (exit $ac_status); } &&
12503 { ac_try='test -z "$ac_c_werror_flag"
12504 || test ! -s conftest.err'
12505 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12506 (eval $ac_try) 2>&5
12508 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12509 (exit $ac_status); }; } &&
12510 { ac_try='test -s conftest.$ac_objext'
12511 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12512 (eval $ac_try) 2>&5
12514 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12515 (exit $ac_status); }; }; then
12516 ac_cv_type_void_p=yes
12518 echo "$as_me: failed program was:" >&5
12519 sed 's/^/| /' conftest.$ac_ext >&5
12521 ac_cv_type_void_p=no
12523 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
12525 echo "$as_me:$LINENO: result: $ac_cv_type_void_p" >&5
12526 echo "${ECHO_T}$ac_cv_type_void_p" >&6
12528 echo "$as_me:$LINENO: checking size of void *" >&5
12529 echo $ECHO_N "checking size of void *... $ECHO_C" >&6
12530 if test "${ac_cv_sizeof_void_p+set}" = set; then
12531 echo $ECHO_N "(cached) $ECHO_C" >&6
12533 if test "$ac_cv_type_void_p" = yes; then
12534 # The cast to unsigned long works around a bug in the HP C Compiler
12535 # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
12536 # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
12537 # This bug is HP SR number 8606223364.
12538 if test "$cross_compiling" = yes; then
12539 # Depending upon the size, compute the lo and hi bounds.
12540 cat >conftest.$ac_ext <<_ACEOF
12543 cat confdefs.h >>conftest.$ac_ext
12544 cat >>conftest.$ac_ext <<_ACEOF
12545 /* end confdefs.h. */
12546 $ac_includes_default
12550 static int test_array [1 - 2 * !(((long) (sizeof (void *))) >= 0)];
12557 rm -f conftest.$ac_objext
12558 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
12559 (eval $ac_compile) 2>conftest.er1
12561 grep -v '^ *+' conftest.er1 >conftest.err
12563 cat conftest.err >&5
12564 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12565 (exit $ac_status); } &&
12566 { ac_try='test -z "$ac_c_werror_flag"
12567 || test ! -s conftest.err'
12568 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12569 (eval $ac_try) 2>&5
12571 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12572 (exit $ac_status); }; } &&
12573 { ac_try='test -s conftest.$ac_objext'
12574 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12575 (eval $ac_try) 2>&5
12577 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12578 (exit $ac_status); }; }; then
12581 cat >conftest.$ac_ext <<_ACEOF
12584 cat confdefs.h >>conftest.$ac_ext
12585 cat >>conftest.$ac_ext <<_ACEOF
12586 /* end confdefs.h. */
12587 $ac_includes_default
12591 static int test_array [1 - 2 * !(((long) (sizeof (void *))) <= $ac_mid)];
12598 rm -f conftest.$ac_objext
12599 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
12600 (eval $ac_compile) 2>conftest.er1
12602 grep -v '^ *+' conftest.er1 >conftest.err
12604 cat conftest.err >&5
12605 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12606 (exit $ac_status); } &&
12607 { ac_try='test -z "$ac_c_werror_flag"
12608 || test ! -s conftest.err'
12609 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12610 (eval $ac_try) 2>&5
12612 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12613 (exit $ac_status); }; } &&
12614 { ac_try='test -s conftest.$ac_objext'
12615 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12616 (eval $ac_try) 2>&5
12618 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12619 (exit $ac_status); }; }; then
12620 ac_hi=$ac_mid; break
12622 echo "$as_me: failed program was:" >&5
12623 sed 's/^/| /' conftest.$ac_ext >&5
12625 ac_lo=`expr $ac_mid + 1`
12626 if test $ac_lo -le $ac_mid; then
12630 ac_mid=`expr 2 '*' $ac_mid + 1`
12632 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
12635 echo "$as_me: failed program was:" >&5
12636 sed 's/^/| /' conftest.$ac_ext >&5
12638 cat >conftest.$ac_ext <<_ACEOF
12641 cat confdefs.h >>conftest.$ac_ext
12642 cat >>conftest.$ac_ext <<_ACEOF
12643 /* end confdefs.h. */
12644 $ac_includes_default
12648 static int test_array [1 - 2 * !(((long) (sizeof (void *))) < 0)];
12655 rm -f conftest.$ac_objext
12656 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
12657 (eval $ac_compile) 2>conftest.er1
12659 grep -v '^ *+' conftest.er1 >conftest.err
12661 cat conftest.err >&5
12662 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12663 (exit $ac_status); } &&
12664 { ac_try='test -z "$ac_c_werror_flag"
12665 || test ! -s conftest.err'
12666 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12667 (eval $ac_try) 2>&5
12669 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12670 (exit $ac_status); }; } &&
12671 { ac_try='test -s conftest.$ac_objext'
12672 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12673 (eval $ac_try) 2>&5
12675 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12676 (exit $ac_status); }; }; then
12679 cat >conftest.$ac_ext <<_ACEOF
12682 cat confdefs.h >>conftest.$ac_ext
12683 cat >>conftest.$ac_ext <<_ACEOF
12684 /* end confdefs.h. */
12685 $ac_includes_default
12689 static int test_array [1 - 2 * !(((long) (sizeof (void *))) >= $ac_mid)];
12696 rm -f conftest.$ac_objext
12697 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
12698 (eval $ac_compile) 2>conftest.er1
12700 grep -v '^ *+' conftest.er1 >conftest.err
12702 cat conftest.err >&5
12703 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12704 (exit $ac_status); } &&
12705 { ac_try='test -z "$ac_c_werror_flag"
12706 || test ! -s conftest.err'
12707 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12708 (eval $ac_try) 2>&5
12710 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12711 (exit $ac_status); }; } &&
12712 { ac_try='test -s conftest.$ac_objext'
12713 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12714 (eval $ac_try) 2>&5
12716 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12717 (exit $ac_status); }; }; then
12718 ac_lo=$ac_mid; break
12720 echo "$as_me: failed program was:" >&5
12721 sed 's/^/| /' conftest.$ac_ext >&5
12723 ac_hi=`expr '(' $ac_mid ')' - 1`
12724 if test $ac_mid -le $ac_hi; then
12728 ac_mid=`expr 2 '*' $ac_mid`
12730 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
12733 echo "$as_me: failed program was:" >&5
12734 sed 's/^/| /' conftest.$ac_ext >&5
12738 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
12740 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
12741 # Binary search between lo and hi bounds.
12742 while test "x$ac_lo" != "x$ac_hi"; do
12743 ac_mid=`expr '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo`
12744 cat >conftest.$ac_ext <<_ACEOF
12747 cat confdefs.h >>conftest.$ac_ext
12748 cat >>conftest.$ac_ext <<_ACEOF
12749 /* end confdefs.h. */
12750 $ac_includes_default
12754 static int test_array [1 - 2 * !(((long) (sizeof (void *))) <= $ac_mid)];
12761 rm -f conftest.$ac_objext
12762 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
12763 (eval $ac_compile) 2>conftest.er1
12765 grep -v '^ *+' conftest.er1 >conftest.err
12767 cat conftest.err >&5
12768 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12769 (exit $ac_status); } &&
12770 { ac_try='test -z "$ac_c_werror_flag"
12771 || test ! -s conftest.err'
12772 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12773 (eval $ac_try) 2>&5
12775 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12776 (exit $ac_status); }; } &&
12777 { ac_try='test -s conftest.$ac_objext'
12778 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12779 (eval $ac_try) 2>&5
12781 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12782 (exit $ac_status); }; }; then
12785 echo "$as_me: failed program was:" >&5
12786 sed 's/^/| /' conftest.$ac_ext >&5
12788 ac_lo=`expr '(' $ac_mid ')' + 1`
12790 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
12793 ?*) ac_cv_sizeof_void_p=$ac_lo;;
12794 '') { { echo "$as_me:$LINENO: error: cannot compute sizeof (void *), 77
12795 See \`config.log' for more details." >&5
12796 echo "$as_me: error: cannot compute sizeof (void *), 77
12797 See \`config.log' for more details." >&2;}
12798 { (exit 1); exit 1; }; } ;;
12801 if test "$cross_compiling" = yes; then
12802 { { echo "$as_me:$LINENO: error: cannot run test program while cross compiling
12803 See \`config.log' for more details." >&5
12804 echo "$as_me: error: cannot run test program while cross compiling
12805 See \`config.log' for more details." >&2;}
12806 { (exit 1); exit 1; }; }
12808 cat >conftest.$ac_ext <<_ACEOF
12811 cat confdefs.h >>conftest.$ac_ext
12812 cat >>conftest.$ac_ext <<_ACEOF
12813 /* end confdefs.h. */
12814 $ac_includes_default
12815 long longval () { return (long) (sizeof (void *)); }
12816 unsigned long ulongval () { return (long) (sizeof (void *)); }
12818 #include <stdlib.h>
12823 FILE *f = fopen ("conftest.val", "w");
12826 if (((long) (sizeof (void *))) < 0)
12828 long i = longval ();
12829 if (i != ((long) (sizeof (void *))))
12831 fprintf (f, "%ld\n", i);
12835 unsigned long i = ulongval ();
12836 if (i != ((long) (sizeof (void *))))
12838 fprintf (f, "%lu\n", i);
12840 exit (ferror (f) || fclose (f) != 0);
12846 rm -f conftest$ac_exeext
12847 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
12848 (eval $ac_link) 2>&5
12850 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12851 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
12852 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12853 (eval $ac_try) 2>&5
12855 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12856 (exit $ac_status); }; }; then
12857 ac_cv_sizeof_void_p=`cat conftest.val`
12859 echo "$as_me: program exited with status $ac_status" >&5
12860 echo "$as_me: failed program was:" >&5
12861 sed 's/^/| /' conftest.$ac_ext >&5
12863 ( exit $ac_status )
12864 { { echo "$as_me:$LINENO: error: cannot compute sizeof (void *), 77
12865 See \`config.log' for more details." >&5
12866 echo "$as_me: error: cannot compute sizeof (void *), 77
12867 See \`config.log' for more details." >&2;}
12868 { (exit 1); exit 1; }; }
12870 rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
12875 ac_cv_sizeof_void_p=0
12878 echo "$as_me:$LINENO: result: $ac_cv_sizeof_void_p" >&5
12879 echo "${ECHO_T}$ac_cv_sizeof_void_p" >&6
12880 cat >>confdefs.h <<_ACEOF
12881 #define SIZEOF_VOID_P $ac_cv_sizeof_void_p
12887 # Lacking an uint64_t? Test size of long
12888 case "$acx_cv_header_stdint:$ac_cv_type_uint64_t:$ac_cv_type_u_int64_t" in
12889 stddef.h:*:* | *:no:no) echo "$as_me:$LINENO: checking for long" >&5
12890 echo $ECHO_N "checking for long... $ECHO_C" >&6
12891 if test "${ac_cv_type_long+set}" = set; then
12892 echo $ECHO_N "(cached) $ECHO_C" >&6
12894 cat >conftest.$ac_ext <<_ACEOF
12897 cat confdefs.h >>conftest.$ac_ext
12898 cat >>conftest.$ac_ext <<_ACEOF
12899 /* end confdefs.h. */
12900 $ac_includes_default
12912 rm -f conftest.$ac_objext
12913 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
12914 (eval $ac_compile) 2>conftest.er1
12916 grep -v '^ *+' conftest.er1 >conftest.err
12918 cat conftest.err >&5
12919 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12920 (exit $ac_status); } &&
12921 { ac_try='test -z "$ac_c_werror_flag"
12922 || test ! -s conftest.err'
12923 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12924 (eval $ac_try) 2>&5
12926 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12927 (exit $ac_status); }; } &&
12928 { ac_try='test -s conftest.$ac_objext'
12929 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12930 (eval $ac_try) 2>&5
12932 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12933 (exit $ac_status); }; }; then
12934 ac_cv_type_long=yes
12936 echo "$as_me: failed program was:" >&5
12937 sed 's/^/| /' conftest.$ac_ext >&5
12941 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
12943 echo "$as_me:$LINENO: result: $ac_cv_type_long" >&5
12944 echo "${ECHO_T}$ac_cv_type_long" >&6
12946 echo "$as_me:$LINENO: checking size of long" >&5
12947 echo $ECHO_N "checking size of long... $ECHO_C" >&6
12948 if test "${ac_cv_sizeof_long+set}" = set; then
12949 echo $ECHO_N "(cached) $ECHO_C" >&6
12951 if test "$ac_cv_type_long" = yes; then
12952 # The cast to unsigned long works around a bug in the HP C Compiler
12953 # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
12954 # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
12955 # This bug is HP SR number 8606223364.
12956 if test "$cross_compiling" = yes; then
12957 # Depending upon the size, compute the lo and hi bounds.
12958 cat >conftest.$ac_ext <<_ACEOF
12961 cat confdefs.h >>conftest.$ac_ext
12962 cat >>conftest.$ac_ext <<_ACEOF
12963 /* end confdefs.h. */
12964 $ac_includes_default
12968 static int test_array [1 - 2 * !(((long) (sizeof (long))) >= 0)];
12975 rm -f conftest.$ac_objext
12976 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
12977 (eval $ac_compile) 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); } &&
12984 { ac_try='test -z "$ac_c_werror_flag"
12985 || test ! -s conftest.err'
12986 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12987 (eval $ac_try) 2>&5
12989 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12990 (exit $ac_status); }; } &&
12991 { ac_try='test -s conftest.$ac_objext'
12992 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12993 (eval $ac_try) 2>&5
12995 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12996 (exit $ac_status); }; }; then
12999 cat >conftest.$ac_ext <<_ACEOF
13002 cat confdefs.h >>conftest.$ac_ext
13003 cat >>conftest.$ac_ext <<_ACEOF
13004 /* end confdefs.h. */
13005 $ac_includes_default
13009 static int test_array [1 - 2 * !(((long) (sizeof (long))) <= $ac_mid)];
13016 rm -f conftest.$ac_objext
13017 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
13018 (eval $ac_compile) 2>conftest.er1
13020 grep -v '^ *+' conftest.er1 >conftest.err
13022 cat conftest.err >&5
13023 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13024 (exit $ac_status); } &&
13025 { ac_try='test -z "$ac_c_werror_flag"
13026 || test ! -s conftest.err'
13027 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13028 (eval $ac_try) 2>&5
13030 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13031 (exit $ac_status); }; } &&
13032 { ac_try='test -s conftest.$ac_objext'
13033 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13034 (eval $ac_try) 2>&5
13036 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13037 (exit $ac_status); }; }; then
13038 ac_hi=$ac_mid; break
13040 echo "$as_me: failed program was:" >&5
13041 sed 's/^/| /' conftest.$ac_ext >&5
13043 ac_lo=`expr $ac_mid + 1`
13044 if test $ac_lo -le $ac_mid; then
13048 ac_mid=`expr 2 '*' $ac_mid + 1`
13050 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
13053 echo "$as_me: failed program was:" >&5
13054 sed 's/^/| /' conftest.$ac_ext >&5
13056 cat >conftest.$ac_ext <<_ACEOF
13059 cat confdefs.h >>conftest.$ac_ext
13060 cat >>conftest.$ac_ext <<_ACEOF
13061 /* end confdefs.h. */
13062 $ac_includes_default
13066 static int test_array [1 - 2 * !(((long) (sizeof (long))) < 0)];
13073 rm -f conftest.$ac_objext
13074 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
13075 (eval $ac_compile) 2>conftest.er1
13077 grep -v '^ *+' conftest.er1 >conftest.err
13079 cat conftest.err >&5
13080 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13081 (exit $ac_status); } &&
13082 { ac_try='test -z "$ac_c_werror_flag"
13083 || 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
13097 cat >conftest.$ac_ext <<_ACEOF
13100 cat confdefs.h >>conftest.$ac_ext
13101 cat >>conftest.$ac_ext <<_ACEOF
13102 /* end confdefs.h. */
13103 $ac_includes_default
13107 static int test_array [1 - 2 * !(((long) (sizeof (long))) >= $ac_mid)];
13114 rm -f conftest.$ac_objext
13115 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
13116 (eval $ac_compile) 2>conftest.er1
13118 grep -v '^ *+' conftest.er1 >conftest.err
13120 cat conftest.err >&5
13121 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13122 (exit $ac_status); } &&
13123 { ac_try='test -z "$ac_c_werror_flag"
13124 || test ! -s conftest.err'
13125 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13126 (eval $ac_try) 2>&5
13128 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13129 (exit $ac_status); }; } &&
13130 { ac_try='test -s conftest.$ac_objext'
13131 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13132 (eval $ac_try) 2>&5
13134 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13135 (exit $ac_status); }; }; then
13136 ac_lo=$ac_mid; break
13138 echo "$as_me: failed program was:" >&5
13139 sed 's/^/| /' conftest.$ac_ext >&5
13141 ac_hi=`expr '(' $ac_mid ')' - 1`
13142 if test $ac_mid -le $ac_hi; then
13146 ac_mid=`expr 2 '*' $ac_mid`
13148 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
13151 echo "$as_me: failed program was:" >&5
13152 sed 's/^/| /' conftest.$ac_ext >&5
13156 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
13158 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
13159 # Binary search between lo and hi bounds.
13160 while test "x$ac_lo" != "x$ac_hi"; do
13161 ac_mid=`expr '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo`
13162 cat >conftest.$ac_ext <<_ACEOF
13165 cat confdefs.h >>conftest.$ac_ext
13166 cat >>conftest.$ac_ext <<_ACEOF
13167 /* end confdefs.h. */
13168 $ac_includes_default
13172 static int test_array [1 - 2 * !(((long) (sizeof (long))) <= $ac_mid)];
13179 rm -f conftest.$ac_objext
13180 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
13181 (eval $ac_compile) 2>conftest.er1
13183 grep -v '^ *+' conftest.er1 >conftest.err
13185 cat conftest.err >&5
13186 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13187 (exit $ac_status); } &&
13188 { ac_try='test -z "$ac_c_werror_flag"
13189 || test ! -s conftest.err'
13190 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13191 (eval $ac_try) 2>&5
13193 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13194 (exit $ac_status); }; } &&
13195 { ac_try='test -s conftest.$ac_objext'
13196 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13197 (eval $ac_try) 2>&5
13199 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13200 (exit $ac_status); }; }; then
13203 echo "$as_me: failed program was:" >&5
13204 sed 's/^/| /' conftest.$ac_ext >&5
13206 ac_lo=`expr '(' $ac_mid ')' + 1`
13208 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
13211 ?*) ac_cv_sizeof_long=$ac_lo;;
13212 '') { { echo "$as_me:$LINENO: error: cannot compute sizeof (long), 77
13213 See \`config.log' for more details." >&5
13214 echo "$as_me: error: cannot compute sizeof (long), 77
13215 See \`config.log' for more details." >&2;}
13216 { (exit 1); exit 1; }; } ;;
13219 if test "$cross_compiling" = yes; then
13220 { { echo "$as_me:$LINENO: error: cannot run test program while cross compiling
13221 See \`config.log' for more details." >&5
13222 echo "$as_me: error: cannot run test program while cross compiling
13223 See \`config.log' for more details." >&2;}
13224 { (exit 1); exit 1; }; }
13226 cat >conftest.$ac_ext <<_ACEOF
13229 cat confdefs.h >>conftest.$ac_ext
13230 cat >>conftest.$ac_ext <<_ACEOF
13231 /* end confdefs.h. */
13232 $ac_includes_default
13233 long longval () { return (long) (sizeof (long)); }
13234 unsigned long ulongval () { return (long) (sizeof (long)); }
13236 #include <stdlib.h>
13241 FILE *f = fopen ("conftest.val", "w");
13244 if (((long) (sizeof (long))) < 0)
13246 long i = longval ();
13247 if (i != ((long) (sizeof (long))))
13249 fprintf (f, "%ld\n", i);
13253 unsigned long i = ulongval ();
13254 if (i != ((long) (sizeof (long))))
13256 fprintf (f, "%lu\n", i);
13258 exit (ferror (f) || fclose (f) != 0);
13264 rm -f conftest$ac_exeext
13265 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
13266 (eval $ac_link) 2>&5
13268 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13269 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
13270 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13271 (eval $ac_try) 2>&5
13273 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13274 (exit $ac_status); }; }; then
13275 ac_cv_sizeof_long=`cat conftest.val`
13277 echo "$as_me: program exited with status $ac_status" >&5
13278 echo "$as_me: failed program was:" >&5
13279 sed 's/^/| /' conftest.$ac_ext >&5
13281 ( exit $ac_status )
13282 { { echo "$as_me:$LINENO: error: cannot compute sizeof (long), 77
13283 See \`config.log' for more details." >&5
13284 echo "$as_me: error: cannot compute sizeof (long), 77
13285 See \`config.log' for more details." >&2;}
13286 { (exit 1); exit 1; }; }
13288 rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
13293 ac_cv_sizeof_long=0
13296 echo "$as_me:$LINENO: result: $ac_cv_sizeof_long" >&5
13297 echo "${ECHO_T}$ac_cv_sizeof_long" >&6
13298 cat >>confdefs.h <<_ACEOF
13299 #define SIZEOF_LONG $ac_cv_sizeof_long
13305 if test $acx_cv_header_stdint = stddef.h; then
13306 # Lacking a good header? Test size of everything and deduce all types.
13307 echo "$as_me:$LINENO: checking for int" >&5
13308 echo $ECHO_N "checking for int... $ECHO_C" >&6
13309 if test "${ac_cv_type_int+set}" = set; then
13310 echo $ECHO_N "(cached) $ECHO_C" >&6
13312 cat >conftest.$ac_ext <<_ACEOF
13315 cat confdefs.h >>conftest.$ac_ext
13316 cat >>conftest.$ac_ext <<_ACEOF
13317 /* end confdefs.h. */
13318 $ac_includes_default
13330 rm -f conftest.$ac_objext
13331 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
13332 (eval $ac_compile) 2>conftest.er1
13334 grep -v '^ *+' conftest.er1 >conftest.err
13336 cat conftest.err >&5
13337 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13338 (exit $ac_status); } &&
13339 { ac_try='test -z "$ac_c_werror_flag"
13340 || test ! -s conftest.err'
13341 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13342 (eval $ac_try) 2>&5
13344 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13345 (exit $ac_status); }; } &&
13346 { ac_try='test -s conftest.$ac_objext'
13347 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13348 (eval $ac_try) 2>&5
13350 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13351 (exit $ac_status); }; }; then
13354 echo "$as_me: failed program was:" >&5
13355 sed 's/^/| /' conftest.$ac_ext >&5
13359 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
13361 echo "$as_me:$LINENO: result: $ac_cv_type_int" >&5
13362 echo "${ECHO_T}$ac_cv_type_int" >&6
13364 echo "$as_me:$LINENO: checking size of int" >&5
13365 echo $ECHO_N "checking size of int... $ECHO_C" >&6
13366 if test "${ac_cv_sizeof_int+set}" = set; then
13367 echo $ECHO_N "(cached) $ECHO_C" >&6
13369 if test "$ac_cv_type_int" = yes; then
13370 # The cast to unsigned long works around a bug in the HP C Compiler
13371 # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
13372 # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
13373 # This bug is HP SR number 8606223364.
13374 if test "$cross_compiling" = yes; then
13375 # Depending upon the size, compute the lo and hi bounds.
13376 cat >conftest.$ac_ext <<_ACEOF
13379 cat confdefs.h >>conftest.$ac_ext
13380 cat >>conftest.$ac_ext <<_ACEOF
13381 /* end confdefs.h. */
13382 $ac_includes_default
13386 static int test_array [1 - 2 * !(((long) (sizeof (int))) >= 0)];
13393 rm -f conftest.$ac_objext
13394 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
13395 (eval $ac_compile) 2>conftest.er1
13397 grep -v '^ *+' conftest.er1 >conftest.err
13399 cat conftest.err >&5
13400 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13401 (exit $ac_status); } &&
13402 { ac_try='test -z "$ac_c_werror_flag"
13403 || test ! -s conftest.err'
13404 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13405 (eval $ac_try) 2>&5
13407 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13408 (exit $ac_status); }; } &&
13409 { ac_try='test -s conftest.$ac_objext'
13410 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13411 (eval $ac_try) 2>&5
13413 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13414 (exit $ac_status); }; }; then
13417 cat >conftest.$ac_ext <<_ACEOF
13420 cat confdefs.h >>conftest.$ac_ext
13421 cat >>conftest.$ac_ext <<_ACEOF
13422 /* end confdefs.h. */
13423 $ac_includes_default
13427 static int test_array [1 - 2 * !(((long) (sizeof (int))) <= $ac_mid)];
13434 rm -f conftest.$ac_objext
13435 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
13436 (eval $ac_compile) 2>conftest.er1
13438 grep -v '^ *+' conftest.er1 >conftest.err
13440 cat conftest.err >&5
13441 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13442 (exit $ac_status); } &&
13443 { ac_try='test -z "$ac_c_werror_flag"
13444 || test ! -s conftest.err'
13445 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13446 (eval $ac_try) 2>&5
13448 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13449 (exit $ac_status); }; } &&
13450 { ac_try='test -s conftest.$ac_objext'
13451 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13452 (eval $ac_try) 2>&5
13454 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13455 (exit $ac_status); }; }; then
13456 ac_hi=$ac_mid; break
13458 echo "$as_me: failed program was:" >&5
13459 sed 's/^/| /' conftest.$ac_ext >&5
13461 ac_lo=`expr $ac_mid + 1`
13462 if test $ac_lo -le $ac_mid; then
13466 ac_mid=`expr 2 '*' $ac_mid + 1`
13468 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
13471 echo "$as_me: failed program was:" >&5
13472 sed 's/^/| /' conftest.$ac_ext >&5
13474 cat >conftest.$ac_ext <<_ACEOF
13477 cat confdefs.h >>conftest.$ac_ext
13478 cat >>conftest.$ac_ext <<_ACEOF
13479 /* end confdefs.h. */
13480 $ac_includes_default
13484 static int test_array [1 - 2 * !(((long) (sizeof (int))) < 0)];
13491 rm -f conftest.$ac_objext
13492 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
13493 (eval $ac_compile) 2>conftest.er1
13495 grep -v '^ *+' conftest.er1 >conftest.err
13497 cat conftest.err >&5
13498 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13499 (exit $ac_status); } &&
13500 { ac_try='test -z "$ac_c_werror_flag"
13501 || test ! -s conftest.err'
13502 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13503 (eval $ac_try) 2>&5
13505 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13506 (exit $ac_status); }; } &&
13507 { ac_try='test -s conftest.$ac_objext'
13508 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13509 (eval $ac_try) 2>&5
13511 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13512 (exit $ac_status); }; }; then
13515 cat >conftest.$ac_ext <<_ACEOF
13518 cat confdefs.h >>conftest.$ac_ext
13519 cat >>conftest.$ac_ext <<_ACEOF
13520 /* end confdefs.h. */
13521 $ac_includes_default
13525 static int test_array [1 - 2 * !(((long) (sizeof (int))) >= $ac_mid)];
13532 rm -f conftest.$ac_objext
13533 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
13534 (eval $ac_compile) 2>conftest.er1
13536 grep -v '^ *+' conftest.er1 >conftest.err
13538 cat conftest.err >&5
13539 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13540 (exit $ac_status); } &&
13541 { ac_try='test -z "$ac_c_werror_flag"
13542 || test ! -s conftest.err'
13543 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13544 (eval $ac_try) 2>&5
13546 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13547 (exit $ac_status); }; } &&
13548 { ac_try='test -s conftest.$ac_objext'
13549 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13550 (eval $ac_try) 2>&5
13552 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13553 (exit $ac_status); }; }; then
13554 ac_lo=$ac_mid; break
13556 echo "$as_me: failed program was:" >&5
13557 sed 's/^/| /' conftest.$ac_ext >&5
13559 ac_hi=`expr '(' $ac_mid ')' - 1`
13560 if test $ac_mid -le $ac_hi; then
13564 ac_mid=`expr 2 '*' $ac_mid`
13566 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
13569 echo "$as_me: failed program was:" >&5
13570 sed 's/^/| /' conftest.$ac_ext >&5
13574 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
13576 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
13577 # Binary search between lo and hi bounds.
13578 while test "x$ac_lo" != "x$ac_hi"; do
13579 ac_mid=`expr '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo`
13580 cat >conftest.$ac_ext <<_ACEOF
13583 cat confdefs.h >>conftest.$ac_ext
13584 cat >>conftest.$ac_ext <<_ACEOF
13585 /* end confdefs.h. */
13586 $ac_includes_default
13590 static int test_array [1 - 2 * !(((long) (sizeof (int))) <= $ac_mid)];
13597 rm -f conftest.$ac_objext
13598 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
13599 (eval $ac_compile) 2>conftest.er1
13601 grep -v '^ *+' conftest.er1 >conftest.err
13603 cat conftest.err >&5
13604 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13605 (exit $ac_status); } &&
13606 { ac_try='test -z "$ac_c_werror_flag"
13607 || test ! -s conftest.err'
13608 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13609 (eval $ac_try) 2>&5
13611 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13612 (exit $ac_status); }; } &&
13613 { ac_try='test -s conftest.$ac_objext'
13614 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13615 (eval $ac_try) 2>&5
13617 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13618 (exit $ac_status); }; }; then
13621 echo "$as_me: failed program was:" >&5
13622 sed 's/^/| /' conftest.$ac_ext >&5
13624 ac_lo=`expr '(' $ac_mid ')' + 1`
13626 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
13629 ?*) ac_cv_sizeof_int=$ac_lo;;
13630 '') { { echo "$as_me:$LINENO: error: cannot compute sizeof (int), 77
13631 See \`config.log' for more details." >&5
13632 echo "$as_me: error: cannot compute sizeof (int), 77
13633 See \`config.log' for more details." >&2;}
13634 { (exit 1); exit 1; }; } ;;
13637 if test "$cross_compiling" = yes; then
13638 { { echo "$as_me:$LINENO: error: cannot run test program while cross compiling
13639 See \`config.log' for more details." >&5
13640 echo "$as_me: error: cannot run test program while cross compiling
13641 See \`config.log' for more details." >&2;}
13642 { (exit 1); exit 1; }; }
13644 cat >conftest.$ac_ext <<_ACEOF
13647 cat confdefs.h >>conftest.$ac_ext
13648 cat >>conftest.$ac_ext <<_ACEOF
13649 /* end confdefs.h. */
13650 $ac_includes_default
13651 long longval () { return (long) (sizeof (int)); }
13652 unsigned long ulongval () { return (long) (sizeof (int)); }
13654 #include <stdlib.h>
13659 FILE *f = fopen ("conftest.val", "w");
13662 if (((long) (sizeof (int))) < 0)
13664 long i = longval ();
13665 if (i != ((long) (sizeof (int))))
13667 fprintf (f, "%ld\n", i);
13671 unsigned long i = ulongval ();
13672 if (i != ((long) (sizeof (int))))
13674 fprintf (f, "%lu\n", i);
13676 exit (ferror (f) || fclose (f) != 0);
13682 rm -f conftest$ac_exeext
13683 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
13684 (eval $ac_link) 2>&5
13686 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13687 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
13688 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13689 (eval $ac_try) 2>&5
13691 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13692 (exit $ac_status); }; }; then
13693 ac_cv_sizeof_int=`cat conftest.val`
13695 echo "$as_me: program exited with status $ac_status" >&5
13696 echo "$as_me: failed program was:" >&5
13697 sed 's/^/| /' conftest.$ac_ext >&5
13699 ( exit $ac_status )
13700 { { echo "$as_me:$LINENO: error: cannot compute sizeof (int), 77
13701 See \`config.log' for more details." >&5
13702 echo "$as_me: error: cannot compute sizeof (int), 77
13703 See \`config.log' for more details." >&2;}
13704 { (exit 1); exit 1; }; }
13706 rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
13714 echo "$as_me:$LINENO: result: $ac_cv_sizeof_int" >&5
13715 echo "${ECHO_T}$ac_cv_sizeof_int" >&6
13716 cat >>confdefs.h <<_ACEOF
13717 #define SIZEOF_INT $ac_cv_sizeof_int
13721 echo "$as_me:$LINENO: checking for short" >&5
13722 echo $ECHO_N "checking for short... $ECHO_C" >&6
13723 if test "${ac_cv_type_short+set}" = set; then
13724 echo $ECHO_N "(cached) $ECHO_C" >&6
13726 cat >conftest.$ac_ext <<_ACEOF
13729 cat confdefs.h >>conftest.$ac_ext
13730 cat >>conftest.$ac_ext <<_ACEOF
13731 /* end confdefs.h. */
13732 $ac_includes_default
13738 if (sizeof (short))
13744 rm -f conftest.$ac_objext
13745 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
13746 (eval $ac_compile) 2>conftest.er1
13748 grep -v '^ *+' conftest.er1 >conftest.err
13750 cat conftest.err >&5
13751 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13752 (exit $ac_status); } &&
13753 { ac_try='test -z "$ac_c_werror_flag"
13754 || test ! -s conftest.err'
13755 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13756 (eval $ac_try) 2>&5
13758 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13759 (exit $ac_status); }; } &&
13760 { ac_try='test -s conftest.$ac_objext'
13761 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13762 (eval $ac_try) 2>&5
13764 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13765 (exit $ac_status); }; }; then
13766 ac_cv_type_short=yes
13768 echo "$as_me: failed program was:" >&5
13769 sed 's/^/| /' conftest.$ac_ext >&5
13771 ac_cv_type_short=no
13773 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
13775 echo "$as_me:$LINENO: result: $ac_cv_type_short" >&5
13776 echo "${ECHO_T}$ac_cv_type_short" >&6
13778 echo "$as_me:$LINENO: checking size of short" >&5
13779 echo $ECHO_N "checking size of short... $ECHO_C" >&6
13780 if test "${ac_cv_sizeof_short+set}" = set; then
13781 echo $ECHO_N "(cached) $ECHO_C" >&6
13783 if test "$ac_cv_type_short" = yes; then
13784 # The cast to unsigned long works around a bug in the HP C Compiler
13785 # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
13786 # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
13787 # This bug is HP SR number 8606223364.
13788 if test "$cross_compiling" = yes; then
13789 # Depending upon the size, compute the lo and hi bounds.
13790 cat >conftest.$ac_ext <<_ACEOF
13793 cat confdefs.h >>conftest.$ac_ext
13794 cat >>conftest.$ac_ext <<_ACEOF
13795 /* end confdefs.h. */
13796 $ac_includes_default
13800 static int test_array [1 - 2 * !(((long) (sizeof (short))) >= 0)];
13807 rm -f conftest.$ac_objext
13808 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
13809 (eval $ac_compile) 2>conftest.er1
13811 grep -v '^ *+' conftest.er1 >conftest.err
13813 cat conftest.err >&5
13814 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13815 (exit $ac_status); } &&
13816 { ac_try='test -z "$ac_c_werror_flag"
13817 || test ! -s conftest.err'
13818 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13819 (eval $ac_try) 2>&5
13821 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13822 (exit $ac_status); }; } &&
13823 { ac_try='test -s conftest.$ac_objext'
13824 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13825 (eval $ac_try) 2>&5
13827 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13828 (exit $ac_status); }; }; then
13831 cat >conftest.$ac_ext <<_ACEOF
13834 cat confdefs.h >>conftest.$ac_ext
13835 cat >>conftest.$ac_ext <<_ACEOF
13836 /* end confdefs.h. */
13837 $ac_includes_default
13841 static int test_array [1 - 2 * !(((long) (sizeof (short))) <= $ac_mid)];
13848 rm -f conftest.$ac_objext
13849 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
13850 (eval $ac_compile) 2>conftest.er1
13852 grep -v '^ *+' conftest.er1 >conftest.err
13854 cat conftest.err >&5
13855 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13856 (exit $ac_status); } &&
13857 { ac_try='test -z "$ac_c_werror_flag"
13858 || test ! -s conftest.err'
13859 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13860 (eval $ac_try) 2>&5
13862 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13863 (exit $ac_status); }; } &&
13864 { ac_try='test -s conftest.$ac_objext'
13865 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13866 (eval $ac_try) 2>&5
13868 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13869 (exit $ac_status); }; }; then
13870 ac_hi=$ac_mid; break
13872 echo "$as_me: failed program was:" >&5
13873 sed 's/^/| /' conftest.$ac_ext >&5
13875 ac_lo=`expr $ac_mid + 1`
13876 if test $ac_lo -le $ac_mid; then
13880 ac_mid=`expr 2 '*' $ac_mid + 1`
13882 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
13885 echo "$as_me: failed program was:" >&5
13886 sed 's/^/| /' conftest.$ac_ext >&5
13888 cat >conftest.$ac_ext <<_ACEOF
13891 cat confdefs.h >>conftest.$ac_ext
13892 cat >>conftest.$ac_ext <<_ACEOF
13893 /* end confdefs.h. */
13894 $ac_includes_default
13898 static int test_array [1 - 2 * !(((long) (sizeof (short))) < 0)];
13905 rm -f conftest.$ac_objext
13906 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
13907 (eval $ac_compile) 2>conftest.er1
13909 grep -v '^ *+' conftest.er1 >conftest.err
13911 cat conftest.err >&5
13912 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13913 (exit $ac_status); } &&
13914 { ac_try='test -z "$ac_c_werror_flag"
13915 || test ! -s conftest.err'
13916 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13917 (eval $ac_try) 2>&5
13919 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13920 (exit $ac_status); }; } &&
13921 { ac_try='test -s conftest.$ac_objext'
13922 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13923 (eval $ac_try) 2>&5
13925 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13926 (exit $ac_status); }; }; then
13929 cat >conftest.$ac_ext <<_ACEOF
13932 cat confdefs.h >>conftest.$ac_ext
13933 cat >>conftest.$ac_ext <<_ACEOF
13934 /* end confdefs.h. */
13935 $ac_includes_default
13939 static int test_array [1 - 2 * !(((long) (sizeof (short))) >= $ac_mid)];
13946 rm -f conftest.$ac_objext
13947 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
13948 (eval $ac_compile) 2>conftest.er1
13950 grep -v '^ *+' conftest.er1 >conftest.err
13952 cat conftest.err >&5
13953 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13954 (exit $ac_status); } &&
13955 { ac_try='test -z "$ac_c_werror_flag"
13956 || test ! -s conftest.err'
13957 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13958 (eval $ac_try) 2>&5
13960 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13961 (exit $ac_status); }; } &&
13962 { ac_try='test -s conftest.$ac_objext'
13963 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13964 (eval $ac_try) 2>&5
13966 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13967 (exit $ac_status); }; }; then
13968 ac_lo=$ac_mid; break
13970 echo "$as_me: failed program was:" >&5
13971 sed 's/^/| /' conftest.$ac_ext >&5
13973 ac_hi=`expr '(' $ac_mid ')' - 1`
13974 if test $ac_mid -le $ac_hi; then
13978 ac_mid=`expr 2 '*' $ac_mid`
13980 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
13983 echo "$as_me: failed program was:" >&5
13984 sed 's/^/| /' conftest.$ac_ext >&5
13988 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
13990 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
13991 # Binary search between lo and hi bounds.
13992 while test "x$ac_lo" != "x$ac_hi"; do
13993 ac_mid=`expr '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo`
13994 cat >conftest.$ac_ext <<_ACEOF
13997 cat confdefs.h >>conftest.$ac_ext
13998 cat >>conftest.$ac_ext <<_ACEOF
13999 /* end confdefs.h. */
14000 $ac_includes_default
14004 static int test_array [1 - 2 * !(((long) (sizeof (short))) <= $ac_mid)];
14011 rm -f conftest.$ac_objext
14012 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
14013 (eval $ac_compile) 2>conftest.er1
14015 grep -v '^ *+' conftest.er1 >conftest.err
14017 cat conftest.err >&5
14018 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14019 (exit $ac_status); } &&
14020 { ac_try='test -z "$ac_c_werror_flag"
14021 || test ! -s conftest.err'
14022 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14023 (eval $ac_try) 2>&5
14025 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14026 (exit $ac_status); }; } &&
14027 { ac_try='test -s conftest.$ac_objext'
14028 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14029 (eval $ac_try) 2>&5
14031 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14032 (exit $ac_status); }; }; then
14035 echo "$as_me: failed program was:" >&5
14036 sed 's/^/| /' conftest.$ac_ext >&5
14038 ac_lo=`expr '(' $ac_mid ')' + 1`
14040 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
14043 ?*) ac_cv_sizeof_short=$ac_lo;;
14044 '') { { echo "$as_me:$LINENO: error: cannot compute sizeof (short), 77
14045 See \`config.log' for more details." >&5
14046 echo "$as_me: error: cannot compute sizeof (short), 77
14047 See \`config.log' for more details." >&2;}
14048 { (exit 1); exit 1; }; } ;;
14051 if test "$cross_compiling" = yes; then
14052 { { echo "$as_me:$LINENO: error: cannot run test program while cross compiling
14053 See \`config.log' for more details." >&5
14054 echo "$as_me: error: cannot run test program while cross compiling
14055 See \`config.log' for more details." >&2;}
14056 { (exit 1); exit 1; }; }
14058 cat >conftest.$ac_ext <<_ACEOF
14061 cat confdefs.h >>conftest.$ac_ext
14062 cat >>conftest.$ac_ext <<_ACEOF
14063 /* end confdefs.h. */
14064 $ac_includes_default
14065 long longval () { return (long) (sizeof (short)); }
14066 unsigned long ulongval () { return (long) (sizeof (short)); }
14068 #include <stdlib.h>
14073 FILE *f = fopen ("conftest.val", "w");
14076 if (((long) (sizeof (short))) < 0)
14078 long i = longval ();
14079 if (i != ((long) (sizeof (short))))
14081 fprintf (f, "%ld\n", i);
14085 unsigned long i = ulongval ();
14086 if (i != ((long) (sizeof (short))))
14088 fprintf (f, "%lu\n", i);
14090 exit (ferror (f) || fclose (f) != 0);
14096 rm -f conftest$ac_exeext
14097 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
14098 (eval $ac_link) 2>&5
14100 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14101 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
14102 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14103 (eval $ac_try) 2>&5
14105 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14106 (exit $ac_status); }; }; then
14107 ac_cv_sizeof_short=`cat conftest.val`
14109 echo "$as_me: program exited with status $ac_status" >&5
14110 echo "$as_me: failed program was:" >&5
14111 sed 's/^/| /' conftest.$ac_ext >&5
14113 ( exit $ac_status )
14114 { { echo "$as_me:$LINENO: error: cannot compute sizeof (short), 77
14115 See \`config.log' for more details." >&5
14116 echo "$as_me: error: cannot compute sizeof (short), 77
14117 See \`config.log' for more details." >&2;}
14118 { (exit 1); exit 1; }; }
14120 rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
14125 ac_cv_sizeof_short=0
14128 echo "$as_me:$LINENO: result: $ac_cv_sizeof_short" >&5
14129 echo "${ECHO_T}$ac_cv_sizeof_short" >&6
14130 cat >>confdefs.h <<_ACEOF
14131 #define SIZEOF_SHORT $ac_cv_sizeof_short
14135 echo "$as_me:$LINENO: checking for char" >&5
14136 echo $ECHO_N "checking for char... $ECHO_C" >&6
14137 if test "${ac_cv_type_char+set}" = set; then
14138 echo $ECHO_N "(cached) $ECHO_C" >&6
14140 cat >conftest.$ac_ext <<_ACEOF
14143 cat confdefs.h >>conftest.$ac_ext
14144 cat >>conftest.$ac_ext <<_ACEOF
14145 /* end confdefs.h. */
14146 $ac_includes_default
14158 rm -f conftest.$ac_objext
14159 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
14160 (eval $ac_compile) 2>conftest.er1
14162 grep -v '^ *+' conftest.er1 >conftest.err
14164 cat conftest.err >&5
14165 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14166 (exit $ac_status); } &&
14167 { ac_try='test -z "$ac_c_werror_flag"
14168 || test ! -s conftest.err'
14169 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14170 (eval $ac_try) 2>&5
14172 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14173 (exit $ac_status); }; } &&
14174 { ac_try='test -s conftest.$ac_objext'
14175 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14176 (eval $ac_try) 2>&5
14178 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14179 (exit $ac_status); }; }; then
14180 ac_cv_type_char=yes
14182 echo "$as_me: failed program was:" >&5
14183 sed 's/^/| /' conftest.$ac_ext >&5
14187 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
14189 echo "$as_me:$LINENO: result: $ac_cv_type_char" >&5
14190 echo "${ECHO_T}$ac_cv_type_char" >&6
14192 echo "$as_me:$LINENO: checking size of char" >&5
14193 echo $ECHO_N "checking size of char... $ECHO_C" >&6
14194 if test "${ac_cv_sizeof_char+set}" = set; then
14195 echo $ECHO_N "(cached) $ECHO_C" >&6
14197 if test "$ac_cv_type_char" = yes; then
14198 # The cast to unsigned long works around a bug in the HP C Compiler
14199 # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
14200 # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
14201 # This bug is HP SR number 8606223364.
14202 if test "$cross_compiling" = yes; then
14203 # Depending upon the size, compute the lo and hi bounds.
14204 cat >conftest.$ac_ext <<_ACEOF
14207 cat confdefs.h >>conftest.$ac_ext
14208 cat >>conftest.$ac_ext <<_ACEOF
14209 /* end confdefs.h. */
14210 $ac_includes_default
14214 static int test_array [1 - 2 * !(((long) (sizeof (char))) >= 0)];
14221 rm -f conftest.$ac_objext
14222 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
14223 (eval $ac_compile) 2>conftest.er1
14225 grep -v '^ *+' conftest.er1 >conftest.err
14227 cat conftest.err >&5
14228 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14229 (exit $ac_status); } &&
14230 { ac_try='test -z "$ac_c_werror_flag"
14231 || test ! -s conftest.err'
14232 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14233 (eval $ac_try) 2>&5
14235 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14236 (exit $ac_status); }; } &&
14237 { ac_try='test -s conftest.$ac_objext'
14238 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14239 (eval $ac_try) 2>&5
14241 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14242 (exit $ac_status); }; }; then
14245 cat >conftest.$ac_ext <<_ACEOF
14248 cat confdefs.h >>conftest.$ac_ext
14249 cat >>conftest.$ac_ext <<_ACEOF
14250 /* end confdefs.h. */
14251 $ac_includes_default
14255 static int test_array [1 - 2 * !(((long) (sizeof (char))) <= $ac_mid)];
14262 rm -f conftest.$ac_objext
14263 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
14264 (eval $ac_compile) 2>conftest.er1
14266 grep -v '^ *+' conftest.er1 >conftest.err
14268 cat conftest.err >&5
14269 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14270 (exit $ac_status); } &&
14271 { ac_try='test -z "$ac_c_werror_flag"
14272 || test ! -s conftest.err'
14273 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14274 (eval $ac_try) 2>&5
14276 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14277 (exit $ac_status); }; } &&
14278 { ac_try='test -s conftest.$ac_objext'
14279 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14280 (eval $ac_try) 2>&5
14282 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14283 (exit $ac_status); }; }; then
14284 ac_hi=$ac_mid; break
14286 echo "$as_me: failed program was:" >&5
14287 sed 's/^/| /' conftest.$ac_ext >&5
14289 ac_lo=`expr $ac_mid + 1`
14290 if test $ac_lo -le $ac_mid; then
14294 ac_mid=`expr 2 '*' $ac_mid + 1`
14296 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
14299 echo "$as_me: failed program was:" >&5
14300 sed 's/^/| /' conftest.$ac_ext >&5
14302 cat >conftest.$ac_ext <<_ACEOF
14305 cat confdefs.h >>conftest.$ac_ext
14306 cat >>conftest.$ac_ext <<_ACEOF
14307 /* end confdefs.h. */
14308 $ac_includes_default
14312 static int test_array [1 - 2 * !(((long) (sizeof (char))) < 0)];
14319 rm -f conftest.$ac_objext
14320 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
14321 (eval $ac_compile) 2>conftest.er1
14323 grep -v '^ *+' conftest.er1 >conftest.err
14325 cat conftest.err >&5
14326 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14327 (exit $ac_status); } &&
14328 { ac_try='test -z "$ac_c_werror_flag"
14329 || test ! -s conftest.err'
14330 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14331 (eval $ac_try) 2>&5
14333 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14334 (exit $ac_status); }; } &&
14335 { ac_try='test -s conftest.$ac_objext'
14336 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14337 (eval $ac_try) 2>&5
14339 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14340 (exit $ac_status); }; }; then
14343 cat >conftest.$ac_ext <<_ACEOF
14346 cat confdefs.h >>conftest.$ac_ext
14347 cat >>conftest.$ac_ext <<_ACEOF
14348 /* end confdefs.h. */
14349 $ac_includes_default
14353 static int test_array [1 - 2 * !(((long) (sizeof (char))) >= $ac_mid)];
14360 rm -f conftest.$ac_objext
14361 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
14362 (eval $ac_compile) 2>conftest.er1
14364 grep -v '^ *+' conftest.er1 >conftest.err
14366 cat conftest.err >&5
14367 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14368 (exit $ac_status); } &&
14369 { ac_try='test -z "$ac_c_werror_flag"
14370 || test ! -s conftest.err'
14371 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14372 (eval $ac_try) 2>&5
14374 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14375 (exit $ac_status); }; } &&
14376 { ac_try='test -s conftest.$ac_objext'
14377 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14378 (eval $ac_try) 2>&5
14380 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14381 (exit $ac_status); }; }; then
14382 ac_lo=$ac_mid; break
14384 echo "$as_me: failed program was:" >&5
14385 sed 's/^/| /' conftest.$ac_ext >&5
14387 ac_hi=`expr '(' $ac_mid ')' - 1`
14388 if test $ac_mid -le $ac_hi; then
14392 ac_mid=`expr 2 '*' $ac_mid`
14394 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
14397 echo "$as_me: failed program was:" >&5
14398 sed 's/^/| /' conftest.$ac_ext >&5
14402 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
14404 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
14405 # Binary search between lo and hi bounds.
14406 while test "x$ac_lo" != "x$ac_hi"; do
14407 ac_mid=`expr '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo`
14408 cat >conftest.$ac_ext <<_ACEOF
14411 cat confdefs.h >>conftest.$ac_ext
14412 cat >>conftest.$ac_ext <<_ACEOF
14413 /* end confdefs.h. */
14414 $ac_includes_default
14418 static int test_array [1 - 2 * !(((long) (sizeof (char))) <= $ac_mid)];
14425 rm -f conftest.$ac_objext
14426 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
14427 (eval $ac_compile) 2>conftest.er1
14429 grep -v '^ *+' conftest.er1 >conftest.err
14431 cat conftest.err >&5
14432 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14433 (exit $ac_status); } &&
14434 { ac_try='test -z "$ac_c_werror_flag"
14435 || test ! -s conftest.err'
14436 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14437 (eval $ac_try) 2>&5
14439 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14440 (exit $ac_status); }; } &&
14441 { ac_try='test -s conftest.$ac_objext'
14442 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14443 (eval $ac_try) 2>&5
14445 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14446 (exit $ac_status); }; }; then
14449 echo "$as_me: failed program was:" >&5
14450 sed 's/^/| /' conftest.$ac_ext >&5
14452 ac_lo=`expr '(' $ac_mid ')' + 1`
14454 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
14457 ?*) ac_cv_sizeof_char=$ac_lo;;
14458 '') { { echo "$as_me:$LINENO: error: cannot compute sizeof (char), 77
14459 See \`config.log' for more details." >&5
14460 echo "$as_me: error: cannot compute sizeof (char), 77
14461 See \`config.log' for more details." >&2;}
14462 { (exit 1); exit 1; }; } ;;
14465 if test "$cross_compiling" = yes; then
14466 { { echo "$as_me:$LINENO: error: cannot run test program while cross compiling
14467 See \`config.log' for more details." >&5
14468 echo "$as_me: error: cannot run test program while cross compiling
14469 See \`config.log' for more details." >&2;}
14470 { (exit 1); exit 1; }; }
14472 cat >conftest.$ac_ext <<_ACEOF
14475 cat confdefs.h >>conftest.$ac_ext
14476 cat >>conftest.$ac_ext <<_ACEOF
14477 /* end confdefs.h. */
14478 $ac_includes_default
14479 long longval () { return (long) (sizeof (char)); }
14480 unsigned long ulongval () { return (long) (sizeof (char)); }
14482 #include <stdlib.h>
14487 FILE *f = fopen ("conftest.val", "w");
14490 if (((long) (sizeof (char))) < 0)
14492 long i = longval ();
14493 if (i != ((long) (sizeof (char))))
14495 fprintf (f, "%ld\n", i);
14499 unsigned long i = ulongval ();
14500 if (i != ((long) (sizeof (char))))
14502 fprintf (f, "%lu\n", i);
14504 exit (ferror (f) || fclose (f) != 0);
14510 rm -f conftest$ac_exeext
14511 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
14512 (eval $ac_link) 2>&5
14514 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14515 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
14516 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14517 (eval $ac_try) 2>&5
14519 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14520 (exit $ac_status); }; }; then
14521 ac_cv_sizeof_char=`cat conftest.val`
14523 echo "$as_me: program exited with status $ac_status" >&5
14524 echo "$as_me: failed program was:" >&5
14525 sed 's/^/| /' conftest.$ac_ext >&5
14527 ( exit $ac_status )
14528 { { echo "$as_me:$LINENO: error: cannot compute sizeof (char), 77
14529 See \`config.log' for more details." >&5
14530 echo "$as_me: error: cannot compute sizeof (char), 77
14531 See \`config.log' for more details." >&2;}
14532 { (exit 1); exit 1; }; }
14534 rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
14539 ac_cv_sizeof_char=0
14542 echo "$as_me:$LINENO: result: $ac_cv_sizeof_char" >&5
14543 echo "${ECHO_T}$ac_cv_sizeof_char" >&6
14544 cat >>confdefs.h <<_ACEOF
14545 #define SIZEOF_CHAR $ac_cv_sizeof_char
14550 echo "$as_me:$LINENO: checking for type equivalent to int8_t" >&5
14551 echo $ECHO_N "checking for type equivalent to int8_t... $ECHO_C" >&6
14552 case "$ac_cv_sizeof_char" in
14553 1) acx_cv_type_int8_t=char ;;
14554 *) { { echo "$as_me:$LINENO: error: no 8-bit type" >&5
14555 echo "$as_me: error: no 8-bit type" >&2;}
14556 { (exit please report a bug); exit please report a bug; }; }
14558 echo "$as_me:$LINENO: result: $acx_cv_type_int8_t" >&5
14559 echo "${ECHO_T}$acx_cv_type_int8_t" >&6
14561 echo "$as_me:$LINENO: checking for type equivalent to int16_t" >&5
14562 echo $ECHO_N "checking for type equivalent to int16_t... $ECHO_C" >&6
14563 case "$ac_cv_sizeof_int:$ac_cv_sizeof_short" in
14564 2:*) acx_cv_type_int16_t=int ;;
14565 *:2) acx_cv_type_int16_t=short ;;
14566 *) { { echo "$as_me:$LINENO: error: no 16-bit type" >&5
14567 echo "$as_me: error: no 16-bit type" >&2;}
14568 { (exit please report a bug); exit please report a bug; }; }
14570 echo "$as_me:$LINENO: result: $acx_cv_type_int16_t" >&5
14571 echo "${ECHO_T}$acx_cv_type_int16_t" >&6
14573 echo "$as_me:$LINENO: checking for type equivalent to int32_t" >&5
14574 echo $ECHO_N "checking for type equivalent to int32_t... $ECHO_C" >&6
14575 case "$ac_cv_sizeof_int:$ac_cv_sizeof_long" in
14576 4:*) acx_cv_type_int32_t=int ;;
14577 *:4) acx_cv_type_int32_t=long ;;
14578 *) { { echo "$as_me:$LINENO: error: no 32-bit type" >&5
14579 echo "$as_me: error: no 32-bit type" >&2;}
14580 { (exit please report a bug); exit please report a bug; }; }
14582 echo "$as_me:$LINENO: result: $acx_cv_type_int32_t" >&5
14583 echo "${ECHO_T}$acx_cv_type_int32_t" >&6
14586 # These tests are here to make the output prettier
14588 if test "$ac_cv_type_uint64_t" != yes && test "$ac_cv_type_u_int64_t" != yes; then
14589 case "$ac_cv_sizeof_long" in
14590 8) acx_cv_type_int64_t=long ;;
14592 echo "$as_me:$LINENO: checking for type equivalent to int64_t" >&5
14593 echo $ECHO_N "checking for type equivalent to int64_t... $ECHO_C" >&6
14594 echo "$as_me:$LINENO: result: ${acx_cv_type_int64_t-'using preprocessor symbols'}" >&5
14595 echo "${ECHO_T}${acx_cv_type_int64_t-'using preprocessor symbols'}" >&6
14598 # Now we can use the above types
14600 if test "$ac_cv_type_uintptr_t" != yes; then
14601 echo "$as_me:$LINENO: checking for type equivalent to intptr_t" >&5
14602 echo $ECHO_N "checking for type equivalent to intptr_t... $ECHO_C" >&6
14603 case $ac_cv_sizeof_void_p in
14604 2) acx_cv_type_intptr_t=int16_t ;;
14605 4) acx_cv_type_intptr_t=int32_t ;;
14606 8) acx_cv_type_intptr_t=int64_t ;;
14607 *) { { echo "$as_me:$LINENO: error: no equivalent for intptr_t" >&5
14608 echo "$as_me: error: no equivalent for intptr_t" >&2;}
14609 { (exit please report a bug); exit please report a bug; }; }
14611 echo "$as_me:$LINENO: result: $acx_cv_type_intptr_t" >&5
14612 echo "${ECHO_T}$acx_cv_type_intptr_t" >&6
14615 # ----------------- done all checks, emit header -------------
14616 ac_config_commands="$ac_config_commands gdb_stdint.h"
14621 # ------------------------- #
14622 # Checks for declarations. #
14623 # ------------------------- #
14625 echo "$as_me:$LINENO: checking whether free is declared" >&5
14626 echo $ECHO_N "checking whether free is declared... $ECHO_C" >&6
14627 if test "${ac_cv_have_decl_free+set}" = set; then
14628 echo $ECHO_N "(cached) $ECHO_C" >&6
14630 cat >conftest.$ac_ext <<_ACEOF
14633 cat confdefs.h >>conftest.$ac_ext
14634 cat >>conftest.$ac_ext <<_ACEOF
14635 /* end confdefs.h. */
14636 $ac_includes_default
14641 char *p = (char *) free;
14648 rm -f conftest.$ac_objext
14649 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
14650 (eval $ac_compile) 2>conftest.er1
14652 grep -v '^ *+' conftest.er1 >conftest.err
14654 cat conftest.err >&5
14655 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14656 (exit $ac_status); } &&
14657 { ac_try='test -z "$ac_c_werror_flag"
14658 || test ! -s conftest.err'
14659 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14660 (eval $ac_try) 2>&5
14662 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14663 (exit $ac_status); }; } &&
14664 { ac_try='test -s conftest.$ac_objext'
14665 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14666 (eval $ac_try) 2>&5
14668 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14669 (exit $ac_status); }; }; then
14670 ac_cv_have_decl_free=yes
14672 echo "$as_me: failed program was:" >&5
14673 sed 's/^/| /' conftest.$ac_ext >&5
14675 ac_cv_have_decl_free=no
14677 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
14679 echo "$as_me:$LINENO: result: $ac_cv_have_decl_free" >&5
14680 echo "${ECHO_T}$ac_cv_have_decl_free" >&6
14681 if test $ac_cv_have_decl_free = yes; then
14683 cat >>confdefs.h <<_ACEOF
14684 #define HAVE_DECL_FREE 1
14689 cat >>confdefs.h <<_ACEOF
14690 #define HAVE_DECL_FREE 0
14695 echo "$as_me:$LINENO: checking whether malloc is declared" >&5
14696 echo $ECHO_N "checking whether malloc is declared... $ECHO_C" >&6
14697 if test "${ac_cv_have_decl_malloc+set}" = set; then
14698 echo $ECHO_N "(cached) $ECHO_C" >&6
14700 cat >conftest.$ac_ext <<_ACEOF
14703 cat confdefs.h >>conftest.$ac_ext
14704 cat >>conftest.$ac_ext <<_ACEOF
14705 /* end confdefs.h. */
14706 $ac_includes_default
14711 char *p = (char *) malloc;
14718 rm -f conftest.$ac_objext
14719 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
14720 (eval $ac_compile) 2>conftest.er1
14722 grep -v '^ *+' conftest.er1 >conftest.err
14724 cat conftest.err >&5
14725 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14726 (exit $ac_status); } &&
14727 { ac_try='test -z "$ac_c_werror_flag"
14728 || test ! -s conftest.err'
14729 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14730 (eval $ac_try) 2>&5
14732 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14733 (exit $ac_status); }; } &&
14734 { ac_try='test -s conftest.$ac_objext'
14735 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14736 (eval $ac_try) 2>&5
14738 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14739 (exit $ac_status); }; }; then
14740 ac_cv_have_decl_malloc=yes
14742 echo "$as_me: failed program was:" >&5
14743 sed 's/^/| /' conftest.$ac_ext >&5
14745 ac_cv_have_decl_malloc=no
14747 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
14749 echo "$as_me:$LINENO: result: $ac_cv_have_decl_malloc" >&5
14750 echo "${ECHO_T}$ac_cv_have_decl_malloc" >&6
14751 if test $ac_cv_have_decl_malloc = yes; then
14753 cat >>confdefs.h <<_ACEOF
14754 #define HAVE_DECL_MALLOC 1
14759 cat >>confdefs.h <<_ACEOF
14760 #define HAVE_DECL_MALLOC 0
14765 echo "$as_me:$LINENO: checking whether realloc is declared" >&5
14766 echo $ECHO_N "checking whether realloc is declared... $ECHO_C" >&6
14767 if test "${ac_cv_have_decl_realloc+set}" = set; then
14768 echo $ECHO_N "(cached) $ECHO_C" >&6
14770 cat >conftest.$ac_ext <<_ACEOF
14773 cat confdefs.h >>conftest.$ac_ext
14774 cat >>conftest.$ac_ext <<_ACEOF
14775 /* end confdefs.h. */
14776 $ac_includes_default
14781 char *p = (char *) realloc;
14788 rm -f conftest.$ac_objext
14789 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
14790 (eval $ac_compile) 2>conftest.er1
14792 grep -v '^ *+' conftest.er1 >conftest.err
14794 cat conftest.err >&5
14795 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14796 (exit $ac_status); } &&
14797 { ac_try='test -z "$ac_c_werror_flag"
14798 || test ! -s conftest.err'
14799 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14800 (eval $ac_try) 2>&5
14802 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14803 (exit $ac_status); }; } &&
14804 { ac_try='test -s conftest.$ac_objext'
14805 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14806 (eval $ac_try) 2>&5
14808 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14809 (exit $ac_status); }; }; then
14810 ac_cv_have_decl_realloc=yes
14812 echo "$as_me: failed program was:" >&5
14813 sed 's/^/| /' conftest.$ac_ext >&5
14815 ac_cv_have_decl_realloc=no
14817 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
14819 echo "$as_me:$LINENO: result: $ac_cv_have_decl_realloc" >&5
14820 echo "${ECHO_T}$ac_cv_have_decl_realloc" >&6
14821 if test $ac_cv_have_decl_realloc = yes; then
14823 cat >>confdefs.h <<_ACEOF
14824 #define HAVE_DECL_REALLOC 1
14829 cat >>confdefs.h <<_ACEOF
14830 #define HAVE_DECL_REALLOC 0
14837 echo "$as_me:$LINENO: checking whether strerror is declared" >&5
14838 echo $ECHO_N "checking whether strerror is declared... $ECHO_C" >&6
14839 if test "${ac_cv_have_decl_strerror+set}" = set; then
14840 echo $ECHO_N "(cached) $ECHO_C" >&6
14842 cat >conftest.$ac_ext <<_ACEOF
14845 cat confdefs.h >>conftest.$ac_ext
14846 cat >>conftest.$ac_ext <<_ACEOF
14847 /* end confdefs.h. */
14848 $ac_includes_default
14853 char *p = (char *) strerror;
14860 rm -f conftest.$ac_objext
14861 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
14862 (eval $ac_compile) 2>conftest.er1
14864 grep -v '^ *+' conftest.er1 >conftest.err
14866 cat conftest.err >&5
14867 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14868 (exit $ac_status); } &&
14869 { ac_try='test -z "$ac_c_werror_flag"
14870 || test ! -s conftest.err'
14871 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14872 (eval $ac_try) 2>&5
14874 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14875 (exit $ac_status); }; } &&
14876 { ac_try='test -s conftest.$ac_objext'
14877 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14878 (eval $ac_try) 2>&5
14880 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14881 (exit $ac_status); }; }; then
14882 ac_cv_have_decl_strerror=yes
14884 echo "$as_me: failed program was:" >&5
14885 sed 's/^/| /' conftest.$ac_ext >&5
14887 ac_cv_have_decl_strerror=no
14889 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
14891 echo "$as_me:$LINENO: result: $ac_cv_have_decl_strerror" >&5
14892 echo "${ECHO_T}$ac_cv_have_decl_strerror" >&6
14893 if test $ac_cv_have_decl_strerror = yes; then
14895 cat >>confdefs.h <<_ACEOF
14896 #define HAVE_DECL_STRERROR 1
14901 cat >>confdefs.h <<_ACEOF
14902 #define HAVE_DECL_STRERROR 0
14907 echo "$as_me:$LINENO: checking whether strstr is declared" >&5
14908 echo $ECHO_N "checking whether strstr is declared... $ECHO_C" >&6
14909 if test "${ac_cv_have_decl_strstr+set}" = set; then
14910 echo $ECHO_N "(cached) $ECHO_C" >&6
14912 cat >conftest.$ac_ext <<_ACEOF
14915 cat confdefs.h >>conftest.$ac_ext
14916 cat >>conftest.$ac_ext <<_ACEOF
14917 /* end confdefs.h. */
14918 $ac_includes_default
14923 char *p = (char *) strstr;
14930 rm -f conftest.$ac_objext
14931 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
14932 (eval $ac_compile) 2>conftest.er1
14934 grep -v '^ *+' conftest.er1 >conftest.err
14936 cat conftest.err >&5
14937 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14938 (exit $ac_status); } &&
14939 { ac_try='test -z "$ac_c_werror_flag"
14940 || test ! -s conftest.err'
14941 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14942 (eval $ac_try) 2>&5
14944 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14945 (exit $ac_status); }; } &&
14946 { ac_try='test -s conftest.$ac_objext'
14947 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14948 (eval $ac_try) 2>&5
14950 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14951 (exit $ac_status); }; }; then
14952 ac_cv_have_decl_strstr=yes
14954 echo "$as_me: failed program was:" >&5
14955 sed 's/^/| /' conftest.$ac_ext >&5
14957 ac_cv_have_decl_strstr=no
14959 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
14961 echo "$as_me:$LINENO: result: $ac_cv_have_decl_strstr" >&5
14962 echo "${ECHO_T}$ac_cv_have_decl_strstr" >&6
14963 if test $ac_cv_have_decl_strstr = yes; then
14965 cat >>confdefs.h <<_ACEOF
14966 #define HAVE_DECL_STRSTR 1
14971 cat >>confdefs.h <<_ACEOF
14972 #define HAVE_DECL_STRSTR 0
14979 echo "$as_me:$LINENO: checking whether getopt is declared" >&5
14980 echo $ECHO_N "checking whether getopt is declared... $ECHO_C" >&6
14981 if test "${ac_cv_have_decl_getopt+set}" = set; then
14982 echo $ECHO_N "(cached) $ECHO_C" >&6
14984 cat >conftest.$ac_ext <<_ACEOF
14987 cat confdefs.h >>conftest.$ac_ext
14988 cat >>conftest.$ac_ext <<_ACEOF
14989 /* end confdefs.h. */
14990 $ac_includes_default
14995 char *p = (char *) getopt;
15002 rm -f conftest.$ac_objext
15003 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
15004 (eval $ac_compile) 2>conftest.er1
15006 grep -v '^ *+' conftest.er1 >conftest.err
15008 cat conftest.err >&5
15009 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15010 (exit $ac_status); } &&
15011 { ac_try='test -z "$ac_c_werror_flag"
15012 || test ! -s conftest.err'
15013 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15014 (eval $ac_try) 2>&5
15016 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15017 (exit $ac_status); }; } &&
15018 { ac_try='test -s conftest.$ac_objext'
15019 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15020 (eval $ac_try) 2>&5
15022 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15023 (exit $ac_status); }; }; then
15024 ac_cv_have_decl_getopt=yes
15026 echo "$as_me: failed program was:" >&5
15027 sed 's/^/| /' conftest.$ac_ext >&5
15029 ac_cv_have_decl_getopt=no
15031 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
15033 echo "$as_me:$LINENO: result: $ac_cv_have_decl_getopt" >&5
15034 echo "${ECHO_T}$ac_cv_have_decl_getopt" >&6
15035 if test $ac_cv_have_decl_getopt = yes; then
15037 cat >>confdefs.h <<_ACEOF
15038 #define HAVE_DECL_GETOPT 1
15043 cat >>confdefs.h <<_ACEOF
15044 #define HAVE_DECL_GETOPT 0
15049 echo "$as_me:$LINENO: checking whether snprintf is declared" >&5
15050 echo $ECHO_N "checking whether snprintf is declared... $ECHO_C" >&6
15051 if test "${ac_cv_have_decl_snprintf+set}" = set; then
15052 echo $ECHO_N "(cached) $ECHO_C" >&6
15054 cat >conftest.$ac_ext <<_ACEOF
15057 cat confdefs.h >>conftest.$ac_ext
15058 cat >>conftest.$ac_ext <<_ACEOF
15059 /* end confdefs.h. */
15060 $ac_includes_default
15065 char *p = (char *) snprintf;
15072 rm -f conftest.$ac_objext
15073 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
15074 (eval $ac_compile) 2>conftest.er1
15076 grep -v '^ *+' conftest.er1 >conftest.err
15078 cat conftest.err >&5
15079 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15080 (exit $ac_status); } &&
15081 { ac_try='test -z "$ac_c_werror_flag"
15082 || test ! -s conftest.err'
15083 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15084 (eval $ac_try) 2>&5
15086 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15087 (exit $ac_status); }; } &&
15088 { ac_try='test -s conftest.$ac_objext'
15089 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15090 (eval $ac_try) 2>&5
15092 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15093 (exit $ac_status); }; }; then
15094 ac_cv_have_decl_snprintf=yes
15096 echo "$as_me: failed program was:" >&5
15097 sed 's/^/| /' conftest.$ac_ext >&5
15099 ac_cv_have_decl_snprintf=no
15101 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
15103 echo "$as_me:$LINENO: result: $ac_cv_have_decl_snprintf" >&5
15104 echo "${ECHO_T}$ac_cv_have_decl_snprintf" >&6
15105 if test $ac_cv_have_decl_snprintf = yes; then
15107 cat >>confdefs.h <<_ACEOF
15108 #define HAVE_DECL_SNPRINTF 1
15113 cat >>confdefs.h <<_ACEOF
15114 #define HAVE_DECL_SNPRINTF 0
15119 echo "$as_me:$LINENO: checking whether vsnprintf is declared" >&5
15120 echo $ECHO_N "checking whether vsnprintf is declared... $ECHO_C" >&6
15121 if test "${ac_cv_have_decl_vsnprintf+set}" = set; then
15122 echo $ECHO_N "(cached) $ECHO_C" >&6
15124 cat >conftest.$ac_ext <<_ACEOF
15127 cat confdefs.h >>conftest.$ac_ext
15128 cat >>conftest.$ac_ext <<_ACEOF
15129 /* end confdefs.h. */
15130 $ac_includes_default
15135 char *p = (char *) vsnprintf;
15142 rm -f conftest.$ac_objext
15143 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
15144 (eval $ac_compile) 2>conftest.er1
15146 grep -v '^ *+' conftest.er1 >conftest.err
15148 cat conftest.err >&5
15149 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15150 (exit $ac_status); } &&
15151 { ac_try='test -z "$ac_c_werror_flag"
15152 || test ! -s conftest.err'
15153 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15154 (eval $ac_try) 2>&5
15156 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15157 (exit $ac_status); }; } &&
15158 { ac_try='test -s conftest.$ac_objext'
15159 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15160 (eval $ac_try) 2>&5
15162 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15163 (exit $ac_status); }; }; then
15164 ac_cv_have_decl_vsnprintf=yes
15166 echo "$as_me: failed program was:" >&5
15167 sed 's/^/| /' conftest.$ac_ext >&5
15169 ac_cv_have_decl_vsnprintf=no
15171 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
15173 echo "$as_me:$LINENO: result: $ac_cv_have_decl_vsnprintf" >&5
15174 echo "${ECHO_T}$ac_cv_have_decl_vsnprintf" >&6
15175 if test $ac_cv_have_decl_vsnprintf = yes; then
15177 cat >>confdefs.h <<_ACEOF
15178 #define HAVE_DECL_VSNPRINTF 1
15183 cat >>confdefs.h <<_ACEOF
15184 #define HAVE_DECL_VSNPRINTF 0
15192 # ----------------------- #
15193 # Checks for structures. #
15194 # ----------------------- #
15196 echo "$as_me:$LINENO: checking for struct stat.st_blocks" >&5
15197 echo $ECHO_N "checking for struct stat.st_blocks... $ECHO_C" >&6
15198 if test "${ac_cv_member_struct_stat_st_blocks+set}" = set; then
15199 echo $ECHO_N "(cached) $ECHO_C" >&6
15201 cat >conftest.$ac_ext <<_ACEOF
15204 cat confdefs.h >>conftest.$ac_ext
15205 cat >>conftest.$ac_ext <<_ACEOF
15206 /* end confdefs.h. */
15207 $ac_includes_default
15211 static struct stat ac_aggr;
15212 if (ac_aggr.st_blocks)
15218 rm -f conftest.$ac_objext
15219 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
15220 (eval $ac_compile) 2>conftest.er1
15222 grep -v '^ *+' conftest.er1 >conftest.err
15224 cat conftest.err >&5
15225 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15226 (exit $ac_status); } &&
15227 { ac_try='test -z "$ac_c_werror_flag"
15228 || test ! -s conftest.err'
15229 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15230 (eval $ac_try) 2>&5
15232 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15233 (exit $ac_status); }; } &&
15234 { ac_try='test -s conftest.$ac_objext'
15235 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15236 (eval $ac_try) 2>&5
15238 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15239 (exit $ac_status); }; }; then
15240 ac_cv_member_struct_stat_st_blocks=yes
15242 echo "$as_me: failed program was:" >&5
15243 sed 's/^/| /' conftest.$ac_ext >&5
15245 cat >conftest.$ac_ext <<_ACEOF
15248 cat confdefs.h >>conftest.$ac_ext
15249 cat >>conftest.$ac_ext <<_ACEOF
15250 /* end confdefs.h. */
15251 $ac_includes_default
15255 static struct stat ac_aggr;
15256 if (sizeof ac_aggr.st_blocks)
15262 rm -f conftest.$ac_objext
15263 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
15264 (eval $ac_compile) 2>conftest.er1
15266 grep -v '^ *+' conftest.er1 >conftest.err
15268 cat conftest.err >&5
15269 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15270 (exit $ac_status); } &&
15271 { ac_try='test -z "$ac_c_werror_flag"
15272 || test ! -s conftest.err'
15273 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15274 (eval $ac_try) 2>&5
15276 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15277 (exit $ac_status); }; } &&
15278 { ac_try='test -s conftest.$ac_objext'
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); }; }; then
15284 ac_cv_member_struct_stat_st_blocks=yes
15286 echo "$as_me: failed program was:" >&5
15287 sed 's/^/| /' conftest.$ac_ext >&5
15289 ac_cv_member_struct_stat_st_blocks=no
15291 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
15293 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
15295 echo "$as_me:$LINENO: result: $ac_cv_member_struct_stat_st_blocks" >&5
15296 echo "${ECHO_T}$ac_cv_member_struct_stat_st_blocks" >&6
15297 if test $ac_cv_member_struct_stat_st_blocks = yes; then
15299 cat >>confdefs.h <<_ACEOF
15300 #define HAVE_STRUCT_STAT_ST_BLOCKS 1
15306 echo "$as_me:$LINENO: checking for struct stat.st_blksize" >&5
15307 echo $ECHO_N "checking for struct stat.st_blksize... $ECHO_C" >&6
15308 if test "${ac_cv_member_struct_stat_st_blksize+set}" = set; then
15309 echo $ECHO_N "(cached) $ECHO_C" >&6
15311 cat >conftest.$ac_ext <<_ACEOF
15314 cat confdefs.h >>conftest.$ac_ext
15315 cat >>conftest.$ac_ext <<_ACEOF
15316 /* end confdefs.h. */
15317 $ac_includes_default
15321 static struct stat ac_aggr;
15322 if (ac_aggr.st_blksize)
15328 rm -f conftest.$ac_objext
15329 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
15330 (eval $ac_compile) 2>conftest.er1
15332 grep -v '^ *+' conftest.er1 >conftest.err
15334 cat conftest.err >&5
15335 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15336 (exit $ac_status); } &&
15337 { ac_try='test -z "$ac_c_werror_flag"
15338 || test ! -s conftest.err'
15339 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15340 (eval $ac_try) 2>&5
15342 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15343 (exit $ac_status); }; } &&
15344 { ac_try='test -s conftest.$ac_objext'
15345 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15346 (eval $ac_try) 2>&5
15348 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15349 (exit $ac_status); }; }; then
15350 ac_cv_member_struct_stat_st_blksize=yes
15352 echo "$as_me: failed program was:" >&5
15353 sed 's/^/| /' conftest.$ac_ext >&5
15355 cat >conftest.$ac_ext <<_ACEOF
15358 cat confdefs.h >>conftest.$ac_ext
15359 cat >>conftest.$ac_ext <<_ACEOF
15360 /* end confdefs.h. */
15361 $ac_includes_default
15365 static struct stat ac_aggr;
15366 if (sizeof ac_aggr.st_blksize)
15372 rm -f conftest.$ac_objext
15373 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
15374 (eval $ac_compile) 2>conftest.er1
15376 grep -v '^ *+' conftest.er1 >conftest.err
15378 cat conftest.err >&5
15379 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15380 (exit $ac_status); } &&
15381 { ac_try='test -z "$ac_c_werror_flag"
15382 || test ! -s conftest.err'
15383 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15384 (eval $ac_try) 2>&5
15386 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15387 (exit $ac_status); }; } &&
15388 { ac_try='test -s conftest.$ac_objext'
15389 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15390 (eval $ac_try) 2>&5
15392 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15393 (exit $ac_status); }; }; then
15394 ac_cv_member_struct_stat_st_blksize=yes
15396 echo "$as_me: failed program was:" >&5
15397 sed 's/^/| /' conftest.$ac_ext >&5
15399 ac_cv_member_struct_stat_st_blksize=no
15401 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
15403 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
15405 echo "$as_me:$LINENO: result: $ac_cv_member_struct_stat_st_blksize" >&5
15406 echo "${ECHO_T}$ac_cv_member_struct_stat_st_blksize" >&6
15407 if test $ac_cv_member_struct_stat_st_blksize = yes; then
15409 cat >>confdefs.h <<_ACEOF
15410 #define HAVE_STRUCT_STAT_ST_BLKSIZE 1
15417 # ------------------ #
15418 # Checks for types. #
15419 # ------------------ #
15421 echo "$as_me:$LINENO: checking return type of signal handlers" >&5
15422 echo $ECHO_N "checking return type of signal handlers... $ECHO_C" >&6
15423 if test "${ac_cv_type_signal+set}" = set; then
15424 echo $ECHO_N "(cached) $ECHO_C" >&6
15426 cat >conftest.$ac_ext <<_ACEOF
15429 cat confdefs.h >>conftest.$ac_ext
15430 cat >>conftest.$ac_ext <<_ACEOF
15431 /* end confdefs.h. */
15432 #include <sys/types.h>
15433 #include <signal.h>
15438 extern "C" void (*signal (int, void (*)(int)))(int);
15440 void (*signal ()) ();
15451 rm -f conftest.$ac_objext
15452 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
15453 (eval $ac_compile) 2>conftest.er1
15455 grep -v '^ *+' conftest.er1 >conftest.err
15457 cat conftest.err >&5
15458 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15459 (exit $ac_status); } &&
15460 { ac_try='test -z "$ac_c_werror_flag"
15461 || test ! -s conftest.err'
15462 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15463 (eval $ac_try) 2>&5
15465 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15466 (exit $ac_status); }; } &&
15467 { ac_try='test -s conftest.$ac_objext'
15468 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15469 (eval $ac_try) 2>&5
15471 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15472 (exit $ac_status); }; }; then
15473 ac_cv_type_signal=void
15475 echo "$as_me: failed program was:" >&5
15476 sed 's/^/| /' conftest.$ac_ext >&5
15478 ac_cv_type_signal=int
15480 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
15482 echo "$as_me:$LINENO: result: $ac_cv_type_signal" >&5
15483 echo "${ECHO_T}$ac_cv_type_signal" >&6
15485 cat >>confdefs.h <<_ACEOF
15486 #define RETSIGTYPE $ac_cv_type_signal
15490 echo "$as_me:$LINENO: checking for socklen_t" >&5
15491 echo $ECHO_N "checking for socklen_t... $ECHO_C" >&6
15492 if test "${ac_cv_type_socklen_t+set}" = set; then
15493 echo $ECHO_N "(cached) $ECHO_C" >&6
15495 cat >conftest.$ac_ext <<_ACEOF
15498 cat confdefs.h >>conftest.$ac_ext
15499 cat >>conftest.$ac_ext <<_ACEOF
15500 /* end confdefs.h. */
15501 #include <sys/types.h>
15502 #include <sys/socket.h>
15508 if ((socklen_t *) 0)
15510 if (sizeof (socklen_t))
15516 rm -f conftest.$ac_objext
15517 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
15518 (eval $ac_compile) 2>conftest.er1
15520 grep -v '^ *+' conftest.er1 >conftest.err
15522 cat conftest.err >&5
15523 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15524 (exit $ac_status); } &&
15525 { ac_try='test -z "$ac_c_werror_flag"
15526 || test ! -s conftest.err'
15527 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15528 (eval $ac_try) 2>&5
15530 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15531 (exit $ac_status); }; } &&
15532 { ac_try='test -s conftest.$ac_objext'
15533 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15534 (eval $ac_try) 2>&5
15536 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15537 (exit $ac_status); }; }; then
15538 ac_cv_type_socklen_t=yes
15540 echo "$as_me: failed program was:" >&5
15541 sed 's/^/| /' conftest.$ac_ext >&5
15543 ac_cv_type_socklen_t=no
15545 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
15547 echo "$as_me:$LINENO: result: $ac_cv_type_socklen_t" >&5
15548 echo "${ECHO_T}$ac_cv_type_socklen_t" >&6
15549 if test $ac_cv_type_socklen_t = yes; then
15551 cat >>confdefs.h <<_ACEOF
15552 #define HAVE_SOCKLEN_T 1
15558 echo "$as_me:$LINENO: checking for uintptr_t" >&5
15559 echo $ECHO_N "checking for uintptr_t... $ECHO_C" >&6
15560 if test "${ac_cv_type_uintptr_t+set}" = set; then
15561 echo $ECHO_N "(cached) $ECHO_C" >&6
15563 cat >conftest.$ac_ext <<_ACEOF
15566 cat confdefs.h >>conftest.$ac_ext
15567 cat >>conftest.$ac_ext <<_ACEOF
15568 /* end confdefs.h. */
15569 #include <stdint.h>
15574 if ((uintptr_t *) 0)
15576 if (sizeof (uintptr_t))
15582 rm -f conftest.$ac_objext
15583 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
15584 (eval $ac_compile) 2>conftest.er1
15586 grep -v '^ *+' conftest.er1 >conftest.err
15588 cat conftest.err >&5
15589 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15590 (exit $ac_status); } &&
15591 { ac_try='test -z "$ac_c_werror_flag"
15592 || test ! -s conftest.err'
15593 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15594 (eval $ac_try) 2>&5
15596 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15597 (exit $ac_status); }; } &&
15598 { ac_try='test -s conftest.$ac_objext'
15599 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15600 (eval $ac_try) 2>&5
15602 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15603 (exit $ac_status); }; }; then
15604 ac_cv_type_uintptr_t=yes
15606 echo "$as_me: failed program was:" >&5
15607 sed 's/^/| /' conftest.$ac_ext >&5
15609 ac_cv_type_uintptr_t=no
15611 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
15613 echo "$as_me:$LINENO: result: $ac_cv_type_uintptr_t" >&5
15614 echo "${ECHO_T}$ac_cv_type_uintptr_t" >&6
15615 if test $ac_cv_type_uintptr_t = yes; then
15617 cat >>confdefs.h <<_ACEOF
15618 #define HAVE_UINTPTR_T 1
15625 # ------------------------------------- #
15626 # Checks for compiler characteristics. #
15627 # ------------------------------------- #
15629 echo "$as_me:$LINENO: checking for an ANSI C-conforming const" >&5
15630 echo $ECHO_N "checking for an ANSI C-conforming const... $ECHO_C" >&6
15631 if test "${ac_cv_c_const+set}" = set; then
15632 echo $ECHO_N "(cached) $ECHO_C" >&6
15634 cat >conftest.$ac_ext <<_ACEOF
15637 cat confdefs.h >>conftest.$ac_ext
15638 cat >>conftest.$ac_ext <<_ACEOF
15639 /* end confdefs.h. */
15644 /* FIXME: Include the comments suggested by Paul. */
15645 #ifndef __cplusplus
15646 /* Ultrix mips cc rejects this. */
15647 typedef int charset[2];
15649 /* SunOS 4.1.1 cc rejects this. */
15650 char const *const *ccp;
15652 /* NEC SVR4.0.2 mips cc rejects this. */
15653 struct point {int x, y;};
15654 static struct point const zero = {0,0};
15655 /* AIX XL C 1.02.0.0 rejects this.
15656 It does not let you subtract one const X* pointer from another in
15657 an arm of an if-expression whose if-part is not a constant
15659 const char *g = "string";
15660 ccp = &g + (g ? g-g : 0);
15661 /* HPUX 7.0 cc rejects these. */
15664 ccp = (char const *const *) p;
15665 { /* SCO 3.2v4 cc rejects this. */
15667 char const *s = 0 ? (char *) 0 : (char const *) 0;
15671 { /* Someone thinks the Sun supposedly-ANSI compiler will reject this. */
15672 int x[] = {25, 17};
15673 const int *foo = &x[0];
15676 { /* Sun SC1.0 ANSI compiler rejects this -- but not the above. */
15677 typedef const int *iptr;
15681 { /* AIX XL C 1.02.0.0 rejects this saying
15682 "k.c", line 2.27: 1506-025 (S) Operand must be a modifiable lvalue. */
15683 struct s { int j; const int *ap[3]; };
15684 struct s *b; b->j = 5;
15686 { /* ULTRIX-32 V3.1 (Rev 9) vcc rejects this */
15687 const int foo = 10;
15695 rm -f conftest.$ac_objext
15696 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
15697 (eval $ac_compile) 2>conftest.er1
15699 grep -v '^ *+' conftest.er1 >conftest.err
15701 cat conftest.err >&5
15702 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15703 (exit $ac_status); } &&
15704 { ac_try='test -z "$ac_c_werror_flag"
15705 || test ! -s conftest.err'
15706 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15707 (eval $ac_try) 2>&5
15709 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15710 (exit $ac_status); }; } &&
15711 { ac_try='test -s conftest.$ac_objext'
15712 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15713 (eval $ac_try) 2>&5
15715 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15716 (exit $ac_status); }; }; then
15719 echo "$as_me: failed program was:" >&5
15720 sed 's/^/| /' conftest.$ac_ext >&5
15724 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
15726 echo "$as_me:$LINENO: result: $ac_cv_c_const" >&5
15727 echo "${ECHO_T}$ac_cv_c_const" >&6
15728 if test $ac_cv_c_const = no; then
15730 cat >>confdefs.h <<\_ACEOF
15736 echo "$as_me:$LINENO: checking for inline" >&5
15737 echo $ECHO_N "checking for inline... $ECHO_C" >&6
15738 if test "${ac_cv_c_inline+set}" = set; then
15739 echo $ECHO_N "(cached) $ECHO_C" >&6
15742 for ac_kw in inline __inline__ __inline; do
15743 cat >conftest.$ac_ext <<_ACEOF
15746 cat confdefs.h >>conftest.$ac_ext
15747 cat >>conftest.$ac_ext <<_ACEOF
15748 /* end confdefs.h. */
15749 #ifndef __cplusplus
15751 static $ac_kw foo_t static_foo () {return 0; }
15752 $ac_kw foo_t foo () {return 0; }
15756 rm -f conftest.$ac_objext
15757 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
15758 (eval $ac_compile) 2>conftest.er1
15760 grep -v '^ *+' conftest.er1 >conftest.err
15762 cat conftest.err >&5
15763 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15764 (exit $ac_status); } &&
15765 { ac_try='test -z "$ac_c_werror_flag"
15766 || test ! -s conftest.err'
15767 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15768 (eval $ac_try) 2>&5
15770 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15771 (exit $ac_status); }; } &&
15772 { ac_try='test -s conftest.$ac_objext'
15773 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15774 (eval $ac_try) 2>&5
15776 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15777 (exit $ac_status); }; }; then
15778 ac_cv_c_inline=$ac_kw; break
15780 echo "$as_me: failed program was:" >&5
15781 sed 's/^/| /' conftest.$ac_ext >&5
15784 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
15788 echo "$as_me:$LINENO: result: $ac_cv_c_inline" >&5
15789 echo "${ECHO_T}$ac_cv_c_inline" >&6
15792 case $ac_cv_c_inline in
15795 case $ac_cv_c_inline in
15797 *) ac_val=$ac_cv_c_inline;;
15799 cat >>confdefs.h <<_ACEOF
15800 #ifndef __cplusplus
15801 #define inline $ac_val
15807 echo "$as_me:$LINENO: checking whether byte ordering is bigendian" >&5
15808 echo $ECHO_N "checking whether byte ordering is bigendian... $ECHO_C" >&6
15809 if test "${ac_cv_c_bigendian+set}" = set; then
15810 echo $ECHO_N "(cached) $ECHO_C" >&6
15812 # See if sys/param.h defines the BYTE_ORDER macro.
15813 cat >conftest.$ac_ext <<_ACEOF
15816 cat confdefs.h >>conftest.$ac_ext
15817 cat >>conftest.$ac_ext <<_ACEOF
15818 /* end confdefs.h. */
15819 #include <sys/types.h>
15820 #include <sys/param.h>
15825 #if !BYTE_ORDER || !BIG_ENDIAN || !LITTLE_ENDIAN
15826 bogus endian macros
15833 rm -f conftest.$ac_objext
15834 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
15835 (eval $ac_compile) 2>conftest.er1
15837 grep -v '^ *+' conftest.er1 >conftest.err
15839 cat conftest.err >&5
15840 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15841 (exit $ac_status); } &&
15842 { ac_try='test -z "$ac_c_werror_flag"
15843 || test ! -s conftest.err'
15844 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15845 (eval $ac_try) 2>&5
15847 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15848 (exit $ac_status); }; } &&
15849 { ac_try='test -s conftest.$ac_objext'
15850 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15851 (eval $ac_try) 2>&5
15853 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15854 (exit $ac_status); }; }; then
15855 # It does; now see whether it defined to BIG_ENDIAN or not.
15856 cat >conftest.$ac_ext <<_ACEOF
15859 cat confdefs.h >>conftest.$ac_ext
15860 cat >>conftest.$ac_ext <<_ACEOF
15861 /* end confdefs.h. */
15862 #include <sys/types.h>
15863 #include <sys/param.h>
15868 #if BYTE_ORDER != BIG_ENDIAN
15876 rm -f conftest.$ac_objext
15877 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
15878 (eval $ac_compile) 2>conftest.er1
15880 grep -v '^ *+' conftest.er1 >conftest.err
15882 cat conftest.err >&5
15883 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15884 (exit $ac_status); } &&
15885 { ac_try='test -z "$ac_c_werror_flag"
15886 || test ! -s conftest.err'
15887 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15888 (eval $ac_try) 2>&5
15890 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15891 (exit $ac_status); }; } &&
15892 { ac_try='test -s conftest.$ac_objext'
15893 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15894 (eval $ac_try) 2>&5
15896 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15897 (exit $ac_status); }; }; then
15898 ac_cv_c_bigendian=yes
15900 echo "$as_me: failed program was:" >&5
15901 sed 's/^/| /' conftest.$ac_ext >&5
15903 ac_cv_c_bigendian=no
15905 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
15907 echo "$as_me: failed program was:" >&5
15908 sed 's/^/| /' conftest.$ac_ext >&5
15910 # It does not; compile a test program.
15911 if test "$cross_compiling" = yes; then
15912 # try to guess the endianness by grepping values into an object file
15913 ac_cv_c_bigendian=unknown
15914 cat >conftest.$ac_ext <<_ACEOF
15917 cat confdefs.h >>conftest.$ac_ext
15918 cat >>conftest.$ac_ext <<_ACEOF
15919 /* end confdefs.h. */
15920 short ascii_mm[] = { 0x4249, 0x4765, 0x6E44, 0x6961, 0x6E53, 0x7953, 0 };
15921 short ascii_ii[] = { 0x694C, 0x5454, 0x656C, 0x6E45, 0x6944, 0x6E61, 0 };
15922 void _ascii () { char *s = (char *) ascii_mm; s = (char *) ascii_ii; }
15923 short ebcdic_ii[] = { 0x89D3, 0xE3E3, 0x8593, 0x95C5, 0x89C4, 0x9581, 0 };
15924 short ebcdic_mm[] = { 0xC2C9, 0xC785, 0x95C4, 0x8981, 0x95E2, 0xA8E2, 0 };
15925 void _ebcdic () { char *s = (char *) ebcdic_mm; s = (char *) ebcdic_ii; }
15929 _ascii (); _ebcdic ();
15934 rm -f conftest.$ac_objext
15935 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
15936 (eval $ac_compile) 2>conftest.er1
15938 grep -v '^ *+' conftest.er1 >conftest.err
15940 cat conftest.err >&5
15941 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15942 (exit $ac_status); } &&
15943 { ac_try='test -z "$ac_c_werror_flag"
15944 || test ! -s conftest.err'
15945 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15946 (eval $ac_try) 2>&5
15948 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15949 (exit $ac_status); }; } &&
15950 { ac_try='test -s conftest.$ac_objext'
15951 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15952 (eval $ac_try) 2>&5
15954 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15955 (exit $ac_status); }; }; then
15956 if grep BIGenDianSyS conftest.$ac_objext >/dev/null ; then
15957 ac_cv_c_bigendian=yes
15959 if grep LiTTleEnDian conftest.$ac_objext >/dev/null ; then
15960 if test "$ac_cv_c_bigendian" = unknown; then
15961 ac_cv_c_bigendian=no
15963 # finding both strings is unlikely to happen, but who knows?
15964 ac_cv_c_bigendian=unknown
15968 echo "$as_me: failed program was:" >&5
15969 sed 's/^/| /' conftest.$ac_ext >&5
15972 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
15974 cat >conftest.$ac_ext <<_ACEOF
15977 cat confdefs.h >>conftest.$ac_ext
15978 cat >>conftest.$ac_ext <<_ACEOF
15979 /* end confdefs.h. */
15983 /* Are we little or big endian? From Harbison&Steele. */
15987 char c[sizeof (long)];
15990 exit (u.c[sizeof (long) - 1] == 1);
15993 rm -f conftest$ac_exeext
15994 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
15995 (eval $ac_link) 2>&5
15997 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15998 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
15999 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16000 (eval $ac_try) 2>&5
16002 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16003 (exit $ac_status); }; }; then
16004 ac_cv_c_bigendian=no
16006 echo "$as_me: program exited with status $ac_status" >&5
16007 echo "$as_me: failed program was:" >&5
16008 sed 's/^/| /' conftest.$ac_ext >&5
16010 ( exit $ac_status )
16011 ac_cv_c_bigendian=yes
16013 rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
16016 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
16018 echo "$as_me:$LINENO: result: $ac_cv_c_bigendian" >&5
16019 echo "${ECHO_T}$ac_cv_c_bigendian" >&6
16020 case $ac_cv_c_bigendian in
16023 cat >>confdefs.h <<\_ACEOF
16024 #define WORDS_BIGENDIAN 1
16030 { { echo "$as_me:$LINENO: error: unknown endianness
16031 presetting ac_cv_c_bigendian=no (or yes) will help" >&5
16032 echo "$as_me: error: unknown endianness
16033 presetting ac_cv_c_bigendian=no (or yes) will help" >&2;}
16034 { (exit 1); exit 1; }; } ;;
16038 # ------------------------------ #
16039 # Checks for library functions. #
16040 # ------------------------------ #
16042 # The Ultrix 4.2 mips builtin alloca declared by alloca.h only works
16043 # for constant arguments. Useless!
16044 echo "$as_me:$LINENO: checking for working alloca.h" >&5
16045 echo $ECHO_N "checking for working alloca.h... $ECHO_C" >&6
16046 if test "${ac_cv_working_alloca_h+set}" = set; then
16047 echo $ECHO_N "(cached) $ECHO_C" >&6
16049 cat >conftest.$ac_ext <<_ACEOF
16052 cat confdefs.h >>conftest.$ac_ext
16053 cat >>conftest.$ac_ext <<_ACEOF
16054 /* end confdefs.h. */
16055 #include <alloca.h>
16059 char *p = (char *) alloca (2 * sizeof (int));
16064 rm -f conftest.$ac_objext conftest$ac_exeext
16065 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
16066 (eval $ac_link) 2>conftest.er1
16068 grep -v '^ *+' conftest.er1 >conftest.err
16070 cat conftest.err >&5
16071 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16072 (exit $ac_status); } &&
16073 { ac_try='test -z "$ac_c_werror_flag"
16074 || test ! -s conftest.err'
16075 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16076 (eval $ac_try) 2>&5
16078 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16079 (exit $ac_status); }; } &&
16080 { ac_try='test -s conftest$ac_exeext'
16081 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16082 (eval $ac_try) 2>&5
16084 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16085 (exit $ac_status); }; }; then
16086 ac_cv_working_alloca_h=yes
16088 echo "$as_me: failed program was:" >&5
16089 sed 's/^/| /' conftest.$ac_ext >&5
16091 ac_cv_working_alloca_h=no
16093 rm -f conftest.err conftest.$ac_objext \
16094 conftest$ac_exeext conftest.$ac_ext
16096 echo "$as_me:$LINENO: result: $ac_cv_working_alloca_h" >&5
16097 echo "${ECHO_T}$ac_cv_working_alloca_h" >&6
16098 if test $ac_cv_working_alloca_h = yes; then
16100 cat >>confdefs.h <<\_ACEOF
16101 #define HAVE_ALLOCA_H 1
16106 echo "$as_me:$LINENO: checking for alloca" >&5
16107 echo $ECHO_N "checking for alloca... $ECHO_C" >&6
16108 if test "${ac_cv_func_alloca_works+set}" = set; then
16109 echo $ECHO_N "(cached) $ECHO_C" >&6
16111 cat >conftest.$ac_ext <<_ACEOF
16114 cat confdefs.h >>conftest.$ac_ext
16115 cat >>conftest.$ac_ext <<_ACEOF
16116 /* end confdefs.h. */
16118 # define alloca __builtin_alloca
16121 # include <malloc.h>
16122 # define alloca _alloca
16125 # include <alloca.h>
16130 # ifndef alloca /* predefined by HP cc +Olibcalls */
16141 char *p = (char *) alloca (1);
16146 rm -f conftest.$ac_objext conftest$ac_exeext
16147 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
16148 (eval $ac_link) 2>conftest.er1
16150 grep -v '^ *+' conftest.er1 >conftest.err
16152 cat conftest.err >&5
16153 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16154 (exit $ac_status); } &&
16155 { ac_try='test -z "$ac_c_werror_flag"
16156 || test ! -s conftest.err'
16157 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16158 (eval $ac_try) 2>&5
16160 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16161 (exit $ac_status); }; } &&
16162 { ac_try='test -s conftest$ac_exeext'
16163 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16164 (eval $ac_try) 2>&5
16166 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16167 (exit $ac_status); }; }; then
16168 ac_cv_func_alloca_works=yes
16170 echo "$as_me: failed program was:" >&5
16171 sed 's/^/| /' conftest.$ac_ext >&5
16173 ac_cv_func_alloca_works=no
16175 rm -f conftest.err conftest.$ac_objext \
16176 conftest$ac_exeext conftest.$ac_ext
16178 echo "$as_me:$LINENO: result: $ac_cv_func_alloca_works" >&5
16179 echo "${ECHO_T}$ac_cv_func_alloca_works" >&6
16181 if test $ac_cv_func_alloca_works = yes; then
16183 cat >>confdefs.h <<\_ACEOF
16184 #define HAVE_ALLOCA 1
16188 # The SVR3 libPW and SVR4 libucb both contain incompatible functions
16189 # that cause trouble. Some versions do not even contain alloca or
16190 # contain a buggy version. If you still want to use their alloca,
16191 # use ar to extract alloca.o from them instead of compiling alloca.c.
16193 ALLOCA=alloca.$ac_objext
16195 cat >>confdefs.h <<\_ACEOF
16200 echo "$as_me:$LINENO: checking whether \`alloca.c' needs Cray hooks" >&5
16201 echo $ECHO_N "checking whether \`alloca.c' needs Cray hooks... $ECHO_C" >&6
16202 if test "${ac_cv_os_cray+set}" = set; then
16203 echo $ECHO_N "(cached) $ECHO_C" >&6
16205 cat >conftest.$ac_ext <<_ACEOF
16208 cat confdefs.h >>conftest.$ac_ext
16209 cat >>conftest.$ac_ext <<_ACEOF
16210 /* end confdefs.h. */
16211 #if defined(CRAY) && ! defined(CRAY2)
16218 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
16219 $EGREP "webecray" >/dev/null 2>&1; then
16227 echo "$as_me:$LINENO: result: $ac_cv_os_cray" >&5
16228 echo "${ECHO_T}$ac_cv_os_cray" >&6
16229 if test $ac_cv_os_cray = yes; then
16230 for ac_func in _getb67 GETB67 getb67; do
16231 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
16232 echo "$as_me:$LINENO: checking for $ac_func" >&5
16233 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
16234 if eval "test \"\${$as_ac_var+set}\" = set"; then
16235 echo $ECHO_N "(cached) $ECHO_C" >&6
16237 cat >conftest.$ac_ext <<_ACEOF
16240 cat confdefs.h >>conftest.$ac_ext
16241 cat >>conftest.$ac_ext <<_ACEOF
16242 /* end confdefs.h. */
16243 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
16244 For example, HP-UX 11i <limits.h> declares gettimeofday. */
16245 #define $ac_func innocuous_$ac_func
16247 /* System header to define __stub macros and hopefully few prototypes,
16248 which can conflict with char $ac_func (); below.
16249 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
16250 <limits.h> exists even on freestanding compilers. */
16253 # include <limits.h>
16255 # include <assert.h>
16260 /* Override any gcc2 internal prototype to avoid an error. */
16265 /* We use char because int might match the return type of a gcc2
16266 builtin and then its argument prototype would still apply. */
16268 /* The GNU C library defines this for functions which it implements
16269 to always fail with ENOSYS. Some functions are actually named
16270 something starting with __ and the normal name is an alias. */
16271 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
16274 char (*f) () = $ac_func;
16283 return f != $ac_func;
16288 rm -f conftest.$ac_objext conftest$ac_exeext
16289 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
16290 (eval $ac_link) 2>conftest.er1
16292 grep -v '^ *+' conftest.er1 >conftest.err
16294 cat conftest.err >&5
16295 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16296 (exit $ac_status); } &&
16297 { ac_try='test -z "$ac_c_werror_flag"
16298 || test ! -s conftest.err'
16299 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16300 (eval $ac_try) 2>&5
16302 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16303 (exit $ac_status); }; } &&
16304 { ac_try='test -s conftest$ac_exeext'
16305 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16306 (eval $ac_try) 2>&5
16308 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16309 (exit $ac_status); }; }; then
16310 eval "$as_ac_var=yes"
16312 echo "$as_me: failed program was:" >&5
16313 sed 's/^/| /' conftest.$ac_ext >&5
16315 eval "$as_ac_var=no"
16317 rm -f conftest.err conftest.$ac_objext \
16318 conftest$ac_exeext conftest.$ac_ext
16320 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
16321 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
16322 if test `eval echo '${'$as_ac_var'}'` = yes; then
16324 cat >>confdefs.h <<_ACEOF
16325 #define CRAY_STACKSEG_END $ac_func
16334 echo "$as_me:$LINENO: checking stack direction for C alloca" >&5
16335 echo $ECHO_N "checking stack direction for C alloca... $ECHO_C" >&6
16336 if test "${ac_cv_c_stack_direction+set}" = set; then
16337 echo $ECHO_N "(cached) $ECHO_C" >&6
16339 if test "$cross_compiling" = yes; then
16340 ac_cv_c_stack_direction=0
16342 cat >conftest.$ac_ext <<_ACEOF
16345 cat confdefs.h >>conftest.$ac_ext
16346 cat >>conftest.$ac_ext <<_ACEOF
16347 /* end confdefs.h. */
16349 find_stack_direction ()
16351 static char *addr = 0;
16356 return find_stack_direction ();
16359 return (&dummy > addr) ? 1 : -1;
16365 exit (find_stack_direction () < 0);
16368 rm -f conftest$ac_exeext
16369 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
16370 (eval $ac_link) 2>&5
16372 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16373 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
16374 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16375 (eval $ac_try) 2>&5
16377 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16378 (exit $ac_status); }; }; then
16379 ac_cv_c_stack_direction=1
16381 echo "$as_me: program exited with status $ac_status" >&5
16382 echo "$as_me: failed program was:" >&5
16383 sed 's/^/| /' conftest.$ac_ext >&5
16385 ( exit $ac_status )
16386 ac_cv_c_stack_direction=-1
16388 rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
16391 echo "$as_me:$LINENO: result: $ac_cv_c_stack_direction" >&5
16392 echo "${ECHO_T}$ac_cv_c_stack_direction" >&6
16394 cat >>confdefs.h <<_ACEOF
16395 #define STACK_DIRECTION $ac_cv_c_stack_direction
16403 for ac_header in stdlib.h unistd.h
16405 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
16406 if eval "test \"\${$as_ac_Header+set}\" = set"; then
16407 echo "$as_me:$LINENO: checking for $ac_header" >&5
16408 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
16409 if eval "test \"\${$as_ac_Header+set}\" = set"; then
16410 echo $ECHO_N "(cached) $ECHO_C" >&6
16412 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
16413 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
16415 # Is the header compilable?
16416 echo "$as_me:$LINENO: checking $ac_header usability" >&5
16417 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
16418 cat >conftest.$ac_ext <<_ACEOF
16421 cat confdefs.h >>conftest.$ac_ext
16422 cat >>conftest.$ac_ext <<_ACEOF
16423 /* end confdefs.h. */
16424 $ac_includes_default
16425 #include <$ac_header>
16427 rm -f conftest.$ac_objext
16428 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
16429 (eval $ac_compile) 2>conftest.er1
16431 grep -v '^ *+' conftest.er1 >conftest.err
16433 cat conftest.err >&5
16434 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16435 (exit $ac_status); } &&
16436 { ac_try='test -z "$ac_c_werror_flag"
16437 || test ! -s conftest.err'
16438 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16439 (eval $ac_try) 2>&5
16441 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16442 (exit $ac_status); }; } &&
16443 { ac_try='test -s conftest.$ac_objext'
16444 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16445 (eval $ac_try) 2>&5
16447 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16448 (exit $ac_status); }; }; then
16449 ac_header_compiler=yes
16451 echo "$as_me: failed program was:" >&5
16452 sed 's/^/| /' conftest.$ac_ext >&5
16454 ac_header_compiler=no
16456 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
16457 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
16458 echo "${ECHO_T}$ac_header_compiler" >&6
16460 # Is the header present?
16461 echo "$as_me:$LINENO: checking $ac_header presence" >&5
16462 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
16463 cat >conftest.$ac_ext <<_ACEOF
16466 cat confdefs.h >>conftest.$ac_ext
16467 cat >>conftest.$ac_ext <<_ACEOF
16468 /* end confdefs.h. */
16469 #include <$ac_header>
16471 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
16472 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
16474 grep -v '^ *+' conftest.er1 >conftest.err
16476 cat conftest.err >&5
16477 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16478 (exit $ac_status); } >/dev/null; then
16479 if test -s conftest.err; then
16480 ac_cpp_err=$ac_c_preproc_warn_flag
16481 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
16488 if test -z "$ac_cpp_err"; then
16489 ac_header_preproc=yes
16491 echo "$as_me: failed program was:" >&5
16492 sed 's/^/| /' conftest.$ac_ext >&5
16494 ac_header_preproc=no
16496 rm -f conftest.err conftest.$ac_ext
16497 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
16498 echo "${ECHO_T}$ac_header_preproc" >&6
16500 # So? What about this header?
16501 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
16503 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
16504 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
16505 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
16506 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
16507 ac_header_preproc=yes
16510 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
16511 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
16512 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
16513 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
16514 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
16515 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
16516 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
16517 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
16518 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
16519 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
16520 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
16521 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
16524 ## ------------------------------------------ ##
16525 ## Report this to the AC_PACKAGE_NAME lists. ##
16526 ## ------------------------------------------ ##
16529 sed "s/^/$as_me: WARNING: /" >&2
16532 echo "$as_me:$LINENO: checking for $ac_header" >&5
16533 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
16534 if eval "test \"\${$as_ac_Header+set}\" = set"; then
16535 echo $ECHO_N "(cached) $ECHO_C" >&6
16537 eval "$as_ac_Header=\$ac_header_preproc"
16539 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
16540 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
16543 if test `eval echo '${'$as_ac_Header'}'` = yes; then
16544 cat >>confdefs.h <<_ACEOF
16545 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
16553 for ac_func in getpagesize
16555 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
16556 echo "$as_me:$LINENO: checking for $ac_func" >&5
16557 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
16558 if eval "test \"\${$as_ac_var+set}\" = set"; then
16559 echo $ECHO_N "(cached) $ECHO_C" >&6
16561 cat >conftest.$ac_ext <<_ACEOF
16564 cat confdefs.h >>conftest.$ac_ext
16565 cat >>conftest.$ac_ext <<_ACEOF
16566 /* end confdefs.h. */
16567 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
16568 For example, HP-UX 11i <limits.h> declares gettimeofday. */
16569 #define $ac_func innocuous_$ac_func
16571 /* System header to define __stub macros and hopefully few prototypes,
16572 which can conflict with char $ac_func (); below.
16573 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
16574 <limits.h> exists even on freestanding compilers. */
16577 # include <limits.h>
16579 # include <assert.h>
16584 /* Override any gcc2 internal prototype to avoid an error. */
16589 /* We use char because int might match the return type of a gcc2
16590 builtin and then its argument prototype would still apply. */
16592 /* The GNU C library defines this for functions which it implements
16593 to always fail with ENOSYS. Some functions are actually named
16594 something starting with __ and the normal name is an alias. */
16595 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
16598 char (*f) () = $ac_func;
16607 return f != $ac_func;
16612 rm -f conftest.$ac_objext conftest$ac_exeext
16613 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
16614 (eval $ac_link) 2>conftest.er1
16616 grep -v '^ *+' conftest.er1 >conftest.err
16618 cat conftest.err >&5
16619 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16620 (exit $ac_status); } &&
16621 { ac_try='test -z "$ac_c_werror_flag"
16622 || test ! -s conftest.err'
16623 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16624 (eval $ac_try) 2>&5
16626 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16627 (exit $ac_status); }; } &&
16628 { ac_try='test -s conftest$ac_exeext'
16629 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16630 (eval $ac_try) 2>&5
16632 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16633 (exit $ac_status); }; }; then
16634 eval "$as_ac_var=yes"
16636 echo "$as_me: failed program was:" >&5
16637 sed 's/^/| /' conftest.$ac_ext >&5
16639 eval "$as_ac_var=no"
16641 rm -f conftest.err conftest.$ac_objext \
16642 conftest$ac_exeext conftest.$ac_ext
16644 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
16645 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
16646 if test `eval echo '${'$as_ac_var'}'` = yes; then
16647 cat >>confdefs.h <<_ACEOF
16648 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
16654 echo "$as_me:$LINENO: checking for working mmap" >&5
16655 echo $ECHO_N "checking for working mmap... $ECHO_C" >&6
16656 if test "${ac_cv_func_mmap_fixed_mapped+set}" = set; then
16657 echo $ECHO_N "(cached) $ECHO_C" >&6
16659 if test "$cross_compiling" = yes; then
16660 ac_cv_func_mmap_fixed_mapped=no
16662 cat >conftest.$ac_ext <<_ACEOF
16665 cat confdefs.h >>conftest.$ac_ext
16666 cat >>conftest.$ac_ext <<_ACEOF
16667 /* end confdefs.h. */
16668 $ac_includes_default
16669 /* malloc might have been renamed as rpl_malloc. */
16672 /* Thanks to Mike Haertel and Jim Avera for this test.
16673 Here is a matrix of mmap possibilities:
16674 mmap private not fixed
16675 mmap private fixed at somewhere currently unmapped
16676 mmap private fixed at somewhere already mapped
16677 mmap shared not fixed
16678 mmap shared fixed at somewhere currently unmapped
16679 mmap shared fixed at somewhere already mapped
16680 For private mappings, we should verify that changes cannot be read()
16681 back from the file, nor mmap's back from the file at a different
16682 address. (There have been systems where private was not correctly
16683 implemented like the infamous i386 svr4.0, and systems where the
16684 VM page cache was not coherent with the file system buffer cache
16685 like early versions of FreeBSD and possibly contemporary NetBSD.)
16686 For shared mappings, we should conversely verify that changes get
16687 propagated back to all the places they're supposed to be.
16689 Grep wants private fixed already mapped.
16690 The main things grep needs to know about mmap are:
16691 * does it exist and is it safe to write into the mmap'd area
16692 * how to use it (BSD variants) */
16695 #include <sys/mman.h>
16697 #if !STDC_HEADERS && !HAVE_STDLIB_H
16701 /* This mess was copied from the GNU getpagesize.h. */
16702 #if !HAVE_GETPAGESIZE
16703 /* Assume that all systems that can run configure have sys/param.h. */
16704 # if !HAVE_SYS_PARAM_H
16705 # define HAVE_SYS_PARAM_H 1
16708 # ifdef _SC_PAGESIZE
16709 # define getpagesize() sysconf(_SC_PAGESIZE)
16710 # else /* no _SC_PAGESIZE */
16711 # if HAVE_SYS_PARAM_H
16712 # include <sys/param.h>
16713 # ifdef EXEC_PAGESIZE
16714 # define getpagesize() EXEC_PAGESIZE
16715 # else /* no EXEC_PAGESIZE */
16717 # define getpagesize() NBPG * CLSIZE
16720 # endif /* no CLSIZE */
16721 # else /* no NBPG */
16723 # define getpagesize() NBPC
16724 # else /* no NBPC */
16726 # define getpagesize() PAGESIZE
16727 # endif /* PAGESIZE */
16728 # endif /* no NBPC */
16729 # endif /* no NBPG */
16730 # endif /* no EXEC_PAGESIZE */
16731 # else /* no HAVE_SYS_PARAM_H */
16732 # define getpagesize() 8192 /* punt totally */
16733 # endif /* no HAVE_SYS_PARAM_H */
16734 # endif /* no _SC_PAGESIZE */
16736 #endif /* no HAVE_GETPAGESIZE */
16741 char *data, *data2, *data3;
16745 pagesize = getpagesize ();
16747 /* First, make a file with some known garbage in it. */
16748 data = (char *) malloc (pagesize);
16751 for (i = 0; i < pagesize; ++i)
16752 *(data + i) = rand ();
16754 fd = creat ("conftest.mmap", 0600);
16757 if (write (fd, data, pagesize) != pagesize)
16761 /* Next, try to mmap the file at a fixed address which already has
16762 something else allocated at it. If we can, also make sure that
16763 we see the same garbage. */
16764 fd = open ("conftest.mmap", O_RDWR);
16767 data2 = (char *) malloc (2 * pagesize);
16770 data2 += (pagesize - ((long) data2 & (pagesize - 1))) & (pagesize - 1);
16771 if (data2 != mmap (data2, pagesize, PROT_READ | PROT_WRITE,
16772 MAP_PRIVATE | MAP_FIXED, fd, 0L))
16774 for (i = 0; i < pagesize; ++i)
16775 if (*(data + i) != *(data2 + i))
16778 /* Finally, make sure that changes to the mapped area do not
16779 percolate back to the file as seen by read(). (This is a bug on
16780 some variants of i386 svr4.0.) */
16781 for (i = 0; i < pagesize; ++i)
16782 *(data2 + i) = *(data2 + i) + 1;
16783 data3 = (char *) malloc (pagesize);
16786 if (read (fd, data3, pagesize) != pagesize)
16788 for (i = 0; i < pagesize; ++i)
16789 if (*(data + i) != *(data3 + i))
16795 rm -f conftest$ac_exeext
16796 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
16797 (eval $ac_link) 2>&5
16799 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16800 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
16801 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16802 (eval $ac_try) 2>&5
16804 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16805 (exit $ac_status); }; }; then
16806 ac_cv_func_mmap_fixed_mapped=yes
16808 echo "$as_me: program exited with status $ac_status" >&5
16809 echo "$as_me: failed program was:" >&5
16810 sed 's/^/| /' conftest.$ac_ext >&5
16812 ( exit $ac_status )
16813 ac_cv_func_mmap_fixed_mapped=no
16815 rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
16818 echo "$as_me:$LINENO: result: $ac_cv_func_mmap_fixed_mapped" >&5
16819 echo "${ECHO_T}$ac_cv_func_mmap_fixed_mapped" >&6
16820 if test $ac_cv_func_mmap_fixed_mapped = yes; then
16822 cat >>confdefs.h <<\_ACEOF
16823 #define HAVE_MMAP 1
16827 rm -f conftest.mmap
16829 echo "$as_me:$LINENO: checking for pid_t" >&5
16830 echo $ECHO_N "checking for pid_t... $ECHO_C" >&6
16831 if test "${ac_cv_type_pid_t+set}" = set; then
16832 echo $ECHO_N "(cached) $ECHO_C" >&6
16834 cat >conftest.$ac_ext <<_ACEOF
16837 cat confdefs.h >>conftest.$ac_ext
16838 cat >>conftest.$ac_ext <<_ACEOF
16839 /* end confdefs.h. */
16840 $ac_includes_default
16846 if (sizeof (pid_t))
16852 rm -f conftest.$ac_objext
16853 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
16854 (eval $ac_compile) 2>conftest.er1
16856 grep -v '^ *+' conftest.er1 >conftest.err
16858 cat conftest.err >&5
16859 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16860 (exit $ac_status); } &&
16861 { ac_try='test -z "$ac_c_werror_flag"
16862 || test ! -s conftest.err'
16863 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16864 (eval $ac_try) 2>&5
16866 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16867 (exit $ac_status); }; } &&
16868 { ac_try='test -s conftest.$ac_objext'
16869 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16870 (eval $ac_try) 2>&5
16872 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16873 (exit $ac_status); }; }; then
16874 ac_cv_type_pid_t=yes
16876 echo "$as_me: failed program was:" >&5
16877 sed 's/^/| /' conftest.$ac_ext >&5
16879 ac_cv_type_pid_t=no
16881 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
16883 echo "$as_me:$LINENO: result: $ac_cv_type_pid_t" >&5
16884 echo "${ECHO_T}$ac_cv_type_pid_t" >&6
16885 if test $ac_cv_type_pid_t = yes; then
16889 cat >>confdefs.h <<_ACEOF
16897 for ac_header in unistd.h vfork.h
16899 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
16900 if eval "test \"\${$as_ac_Header+set}\" = set"; then
16901 echo "$as_me:$LINENO: checking for $ac_header" >&5
16902 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
16903 if eval "test \"\${$as_ac_Header+set}\" = set"; then
16904 echo $ECHO_N "(cached) $ECHO_C" >&6
16906 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
16907 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
16909 # Is the header compilable?
16910 echo "$as_me:$LINENO: checking $ac_header usability" >&5
16911 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
16912 cat >conftest.$ac_ext <<_ACEOF
16915 cat confdefs.h >>conftest.$ac_ext
16916 cat >>conftest.$ac_ext <<_ACEOF
16917 /* end confdefs.h. */
16918 $ac_includes_default
16919 #include <$ac_header>
16921 rm -f conftest.$ac_objext
16922 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
16923 (eval $ac_compile) 2>conftest.er1
16925 grep -v '^ *+' conftest.er1 >conftest.err
16927 cat conftest.err >&5
16928 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16929 (exit $ac_status); } &&
16930 { ac_try='test -z "$ac_c_werror_flag"
16931 || test ! -s conftest.err'
16932 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16933 (eval $ac_try) 2>&5
16935 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16936 (exit $ac_status); }; } &&
16937 { ac_try='test -s conftest.$ac_objext'
16938 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16939 (eval $ac_try) 2>&5
16941 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16942 (exit $ac_status); }; }; then
16943 ac_header_compiler=yes
16945 echo "$as_me: failed program was:" >&5
16946 sed 's/^/| /' conftest.$ac_ext >&5
16948 ac_header_compiler=no
16950 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
16951 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
16952 echo "${ECHO_T}$ac_header_compiler" >&6
16954 # Is the header present?
16955 echo "$as_me:$LINENO: checking $ac_header presence" >&5
16956 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
16957 cat >conftest.$ac_ext <<_ACEOF
16960 cat confdefs.h >>conftest.$ac_ext
16961 cat >>conftest.$ac_ext <<_ACEOF
16962 /* end confdefs.h. */
16963 #include <$ac_header>
16965 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
16966 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
16968 grep -v '^ *+' conftest.er1 >conftest.err
16970 cat conftest.err >&5
16971 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16972 (exit $ac_status); } >/dev/null; then
16973 if test -s conftest.err; then
16974 ac_cpp_err=$ac_c_preproc_warn_flag
16975 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
16982 if test -z "$ac_cpp_err"; then
16983 ac_header_preproc=yes
16985 echo "$as_me: failed program was:" >&5
16986 sed 's/^/| /' conftest.$ac_ext >&5
16988 ac_header_preproc=no
16990 rm -f conftest.err conftest.$ac_ext
16991 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
16992 echo "${ECHO_T}$ac_header_preproc" >&6
16994 # So? What about this header?
16995 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
16997 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
16998 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
16999 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
17000 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
17001 ac_header_preproc=yes
17004 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
17005 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
17006 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
17007 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
17008 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
17009 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
17010 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
17011 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
17012 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
17013 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
17014 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
17015 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
17018 ## ------------------------------------------ ##
17019 ## Report this to the AC_PACKAGE_NAME lists. ##
17020 ## ------------------------------------------ ##
17023 sed "s/^/$as_me: WARNING: /" >&2
17026 echo "$as_me:$LINENO: checking for $ac_header" >&5
17027 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
17028 if eval "test \"\${$as_ac_Header+set}\" = set"; then
17029 echo $ECHO_N "(cached) $ECHO_C" >&6
17031 eval "$as_ac_Header=\$ac_header_preproc"
17033 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
17034 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
17037 if test `eval echo '${'$as_ac_Header'}'` = yes; then
17038 cat >>confdefs.h <<_ACEOF
17039 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
17048 for ac_func in fork vfork
17050 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
17051 echo "$as_me:$LINENO: checking for $ac_func" >&5
17052 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
17053 if eval "test \"\${$as_ac_var+set}\" = set"; then
17054 echo $ECHO_N "(cached) $ECHO_C" >&6
17056 cat >conftest.$ac_ext <<_ACEOF
17059 cat confdefs.h >>conftest.$ac_ext
17060 cat >>conftest.$ac_ext <<_ACEOF
17061 /* end confdefs.h. */
17062 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
17063 For example, HP-UX 11i <limits.h> declares gettimeofday. */
17064 #define $ac_func innocuous_$ac_func
17066 /* System header to define __stub macros and hopefully few prototypes,
17067 which can conflict with char $ac_func (); below.
17068 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
17069 <limits.h> exists even on freestanding compilers. */
17072 # include <limits.h>
17074 # include <assert.h>
17079 /* Override any gcc2 internal prototype to avoid an error. */
17084 /* We use char because int might match the return type of a gcc2
17085 builtin and then its argument prototype would still apply. */
17087 /* The GNU C library defines this for functions which it implements
17088 to always fail with ENOSYS. Some functions are actually named
17089 something starting with __ and the normal name is an alias. */
17090 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
17093 char (*f) () = $ac_func;
17102 return f != $ac_func;
17107 rm -f conftest.$ac_objext conftest$ac_exeext
17108 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
17109 (eval $ac_link) 2>conftest.er1
17111 grep -v '^ *+' conftest.er1 >conftest.err
17113 cat conftest.err >&5
17114 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17115 (exit $ac_status); } &&
17116 { ac_try='test -z "$ac_c_werror_flag"
17117 || test ! -s conftest.err'
17118 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17119 (eval $ac_try) 2>&5
17121 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17122 (exit $ac_status); }; } &&
17123 { ac_try='test -s conftest$ac_exeext'
17124 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17125 (eval $ac_try) 2>&5
17127 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17128 (exit $ac_status); }; }; then
17129 eval "$as_ac_var=yes"
17131 echo "$as_me: failed program was:" >&5
17132 sed 's/^/| /' conftest.$ac_ext >&5
17134 eval "$as_ac_var=no"
17136 rm -f conftest.err conftest.$ac_objext \
17137 conftest$ac_exeext conftest.$ac_ext
17139 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
17140 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
17141 if test `eval echo '${'$as_ac_var'}'` = yes; then
17142 cat >>confdefs.h <<_ACEOF
17143 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
17149 if test "x$ac_cv_func_fork" = xyes; then
17150 echo "$as_me:$LINENO: checking for working fork" >&5
17151 echo $ECHO_N "checking for working fork... $ECHO_C" >&6
17152 if test "${ac_cv_func_fork_works+set}" = set; then
17153 echo $ECHO_N "(cached) $ECHO_C" >&6
17155 if test "$cross_compiling" = yes; then
17156 ac_cv_func_fork_works=cross
17158 cat >conftest.$ac_ext <<_ACEOF
17159 /* By Ruediger Kuhlmann. */
17160 #include <sys/types.h>
17162 # include <unistd.h>
17164 /* Some systems only have a dummy stub for fork() */
17172 rm -f conftest$ac_exeext
17173 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
17174 (eval $ac_link) 2>&5
17176 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17177 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
17178 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17179 (eval $ac_try) 2>&5
17181 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17182 (exit $ac_status); }; }; then
17183 ac_cv_func_fork_works=yes
17185 echo "$as_me: program exited with status $ac_status" >&5
17186 echo "$as_me: failed program was:" >&5
17187 sed 's/^/| /' conftest.$ac_ext >&5
17189 ( exit $ac_status )
17190 ac_cv_func_fork_works=no
17192 rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
17195 echo "$as_me:$LINENO: result: $ac_cv_func_fork_works" >&5
17196 echo "${ECHO_T}$ac_cv_func_fork_works" >&6
17199 ac_cv_func_fork_works=$ac_cv_func_fork
17201 if test "x$ac_cv_func_fork_works" = xcross; then
17203 *-*-amigaos* | *-*-msdosdjgpp*)
17204 # Override, as these systems have only a dummy fork() stub
17205 ac_cv_func_fork_works=no
17208 ac_cv_func_fork_works=yes
17211 { echo "$as_me:$LINENO: WARNING: result $ac_cv_func_fork_works guessed because of cross compilation" >&5
17212 echo "$as_me: WARNING: result $ac_cv_func_fork_works guessed because of cross compilation" >&2;}
17214 ac_cv_func_vfork_works=$ac_cv_func_vfork
17215 if test "x$ac_cv_func_vfork" = xyes; then
17216 echo "$as_me:$LINENO: checking for working vfork" >&5
17217 echo $ECHO_N "checking for working vfork... $ECHO_C" >&6
17218 if test "${ac_cv_func_vfork_works+set}" = set; then
17219 echo $ECHO_N "(cached) $ECHO_C" >&6
17221 if test "$cross_compiling" = yes; then
17222 ac_cv_func_vfork_works=cross
17224 cat >conftest.$ac_ext <<_ACEOF
17227 cat confdefs.h >>conftest.$ac_ext
17228 cat >>conftest.$ac_ext <<_ACEOF
17229 /* end confdefs.h. */
17230 /* Thanks to Paul Eggert for this test. */
17232 #include <stdlib.h>
17233 #include <sys/types.h>
17234 #include <sys/stat.h>
17235 #include <sys/wait.h>
17237 # include <unistd.h>
17240 # include <vfork.h>
17242 /* On some sparc systems, changes by the child to local and incoming
17243 argument registers are propagated back to the parent. The compiler
17244 is told about this with #include <vfork.h>, but some compilers
17245 (e.g. gcc -O) don't grok <vfork.h>. Test for this by using a
17246 static variable whose address is put into a register that is
17247 clobbered by the vfork. */
17250 sparc_address_test (int arg)
17252 sparc_address_test (arg) int arg;
17255 static pid_t child;
17273 pid_t parent = getpid ();
17276 sparc_address_test (0);
17281 /* Here is another test for sparc vfork register problems. This
17282 test uses lots of local variables, at least as many local
17283 variables as main has allocated so far including compiler
17284 temporaries. 4 locals are enough for gcc 1.40.3 on a Solaris
17285 4.1.3 sparc, but we use 8 to be safe. A buggy compiler should
17286 reuse the register of parent for one of the local variables,
17287 since it will think that parent can't possibly be used any more
17288 in this routine. Assigning to the local variable will thus
17289 munge parent in the parent process. */
17291 p = getpid(), p1 = getpid(), p2 = getpid(), p3 = getpid(),
17292 p4 = getpid(), p5 = getpid(), p6 = getpid(), p7 = getpid();
17293 /* Convince the compiler that p..p7 are live; otherwise, it might
17294 use the same hardware register for all 8 local variables. */
17295 if (p != p1 || p != p2 || p != p3 || p != p4
17296 || p != p5 || p != p6 || p != p7)
17299 /* On some systems (e.g. IRIX 3.3), vfork doesn't separate parent
17300 from child file descriptors. If the child closes a descriptor
17301 before it execs or exits, this munges the parent's descriptor
17302 as well. Test for this by closing stdout in the child. */
17303 _exit(close(fileno(stdout)) != 0);
17308 while (wait(&status) != child)
17311 /* Was there some problem with vforking? */
17314 /* Did the child fail? (This shouldn't happen.) */
17317 /* Did the vfork/compiler bug occur? */
17318 || parent != getpid()
17320 /* Did the file descriptor bug occur? */
17321 || fstat(fileno(stdout), &st) != 0
17326 rm -f conftest$ac_exeext
17327 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
17328 (eval $ac_link) 2>&5
17330 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17331 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
17332 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17333 (eval $ac_try) 2>&5
17335 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17336 (exit $ac_status); }; }; then
17337 ac_cv_func_vfork_works=yes
17339 echo "$as_me: program exited with status $ac_status" >&5
17340 echo "$as_me: failed program was:" >&5
17341 sed 's/^/| /' conftest.$ac_ext >&5
17343 ( exit $ac_status )
17344 ac_cv_func_vfork_works=no
17346 rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
17349 echo "$as_me:$LINENO: result: $ac_cv_func_vfork_works" >&5
17350 echo "${ECHO_T}$ac_cv_func_vfork_works" >&6
17353 if test "x$ac_cv_func_fork_works" = xcross; then
17354 ac_cv_func_vfork_works=$ac_cv_func_vfork
17355 { echo "$as_me:$LINENO: WARNING: result $ac_cv_func_vfork_works guessed because of cross compilation" >&5
17356 echo "$as_me: WARNING: result $ac_cv_func_vfork_works guessed because of cross compilation" >&2;}
17359 if test "x$ac_cv_func_vfork_works" = xyes; then
17361 cat >>confdefs.h <<\_ACEOF
17362 #define HAVE_WORKING_VFORK 1
17367 cat >>confdefs.h <<\_ACEOF
17372 if test "x$ac_cv_func_fork_works" = xyes; then
17374 cat >>confdefs.h <<\_ACEOF
17375 #define HAVE_WORKING_FORK 1
17382 for ac_func in canonicalize_file_name realpath
17384 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
17385 echo "$as_me:$LINENO: checking for $ac_func" >&5
17386 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
17387 if eval "test \"\${$as_ac_var+set}\" = set"; then
17388 echo $ECHO_N "(cached) $ECHO_C" >&6
17390 cat >conftest.$ac_ext <<_ACEOF
17393 cat confdefs.h >>conftest.$ac_ext
17394 cat >>conftest.$ac_ext <<_ACEOF
17395 /* end confdefs.h. */
17396 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
17397 For example, HP-UX 11i <limits.h> declares gettimeofday. */
17398 #define $ac_func innocuous_$ac_func
17400 /* System header to define __stub macros and hopefully few prototypes,
17401 which can conflict with char $ac_func (); below.
17402 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
17403 <limits.h> exists even on freestanding compilers. */
17406 # include <limits.h>
17408 # include <assert.h>
17413 /* Override any gcc2 internal prototype to avoid an error. */
17418 /* We use char because int might match the return type of a gcc2
17419 builtin and then its argument prototype would still apply. */
17421 /* The GNU C library defines this for functions which it implements
17422 to always fail with ENOSYS. Some functions are actually named
17423 something starting with __ and the normal name is an alias. */
17424 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
17427 char (*f) () = $ac_func;
17436 return f != $ac_func;
17441 rm -f conftest.$ac_objext conftest$ac_exeext
17442 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
17443 (eval $ac_link) 2>conftest.er1
17445 grep -v '^ *+' conftest.er1 >conftest.err
17447 cat conftest.err >&5
17448 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17449 (exit $ac_status); } &&
17450 { ac_try='test -z "$ac_c_werror_flag"
17451 || test ! -s conftest.err'
17452 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17453 (eval $ac_try) 2>&5
17455 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17456 (exit $ac_status); }; } &&
17457 { ac_try='test -s conftest$ac_exeext'
17458 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17459 (eval $ac_try) 2>&5
17461 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17462 (exit $ac_status); }; }; then
17463 eval "$as_ac_var=yes"
17465 echo "$as_me: failed program was:" >&5
17466 sed 's/^/| /' conftest.$ac_ext >&5
17468 eval "$as_ac_var=no"
17470 rm -f conftest.err conftest.$ac_objext \
17471 conftest$ac_exeext conftest.$ac_ext
17473 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
17474 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
17475 if test `eval echo '${'$as_ac_var'}'` = yes; then
17476 cat >>confdefs.h <<_ACEOF
17477 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
17484 for ac_func in getrusage
17486 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
17487 echo "$as_me:$LINENO: checking for $ac_func" >&5
17488 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
17489 if eval "test \"\${$as_ac_var+set}\" = set"; then
17490 echo $ECHO_N "(cached) $ECHO_C" >&6
17492 cat >conftest.$ac_ext <<_ACEOF
17495 cat confdefs.h >>conftest.$ac_ext
17496 cat >>conftest.$ac_ext <<_ACEOF
17497 /* end confdefs.h. */
17498 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
17499 For example, HP-UX 11i <limits.h> declares gettimeofday. */
17500 #define $ac_func innocuous_$ac_func
17502 /* System header to define __stub macros and hopefully few prototypes,
17503 which can conflict with char $ac_func (); below.
17504 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
17505 <limits.h> exists even on freestanding compilers. */
17508 # include <limits.h>
17510 # include <assert.h>
17515 /* Override any gcc2 internal prototype to avoid an error. */
17520 /* We use char because int might match the return type of a gcc2
17521 builtin and then its argument prototype would still apply. */
17523 /* The GNU C library defines this for functions which it implements
17524 to always fail with ENOSYS. Some functions are actually named
17525 something starting with __ and the normal name is an alias. */
17526 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
17529 char (*f) () = $ac_func;
17538 return f != $ac_func;
17543 rm -f conftest.$ac_objext conftest$ac_exeext
17544 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
17545 (eval $ac_link) 2>conftest.er1
17547 grep -v '^ *+' conftest.er1 >conftest.err
17549 cat conftest.err >&5
17550 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17551 (exit $ac_status); } &&
17552 { ac_try='test -z "$ac_c_werror_flag"
17553 || test ! -s conftest.err'
17554 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17555 (eval $ac_try) 2>&5
17557 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17558 (exit $ac_status); }; } &&
17559 { ac_try='test -s conftest$ac_exeext'
17560 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17561 (eval $ac_try) 2>&5
17563 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17564 (exit $ac_status); }; }; then
17565 eval "$as_ac_var=yes"
17567 echo "$as_me: failed program was:" >&5
17568 sed 's/^/| /' conftest.$ac_ext >&5
17570 eval "$as_ac_var=no"
17572 rm -f conftest.err conftest.$ac_objext \
17573 conftest$ac_exeext conftest.$ac_ext
17575 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
17576 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
17577 if test `eval echo '${'$as_ac_var'}'` = yes; then
17578 cat >>confdefs.h <<_ACEOF
17579 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
17587 for ac_func in getuid getgid
17589 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
17590 echo "$as_me:$LINENO: checking for $ac_func" >&5
17591 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
17592 if eval "test \"\${$as_ac_var+set}\" = set"; then
17593 echo $ECHO_N "(cached) $ECHO_C" >&6
17595 cat >conftest.$ac_ext <<_ACEOF
17598 cat confdefs.h >>conftest.$ac_ext
17599 cat >>conftest.$ac_ext <<_ACEOF
17600 /* end confdefs.h. */
17601 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
17602 For example, HP-UX 11i <limits.h> declares gettimeofday. */
17603 #define $ac_func innocuous_$ac_func
17605 /* System header to define __stub macros and hopefully few prototypes,
17606 which can conflict with char $ac_func (); below.
17607 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
17608 <limits.h> exists even on freestanding compilers. */
17611 # include <limits.h>
17613 # include <assert.h>
17618 /* Override any gcc2 internal prototype to avoid an error. */
17623 /* We use char because int might match the return type of a gcc2
17624 builtin and then its argument prototype would still apply. */
17626 /* The GNU C library defines this for functions which it implements
17627 to always fail with ENOSYS. Some functions are actually named
17628 something starting with __ and the normal name is an alias. */
17629 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
17632 char (*f) () = $ac_func;
17641 return f != $ac_func;
17646 rm -f conftest.$ac_objext conftest$ac_exeext
17647 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
17648 (eval $ac_link) 2>conftest.er1
17650 grep -v '^ *+' conftest.er1 >conftest.err
17652 cat conftest.err >&5
17653 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17654 (exit $ac_status); } &&
17655 { ac_try='test -z "$ac_c_werror_flag"
17656 || test ! -s conftest.err'
17657 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17658 (eval $ac_try) 2>&5
17660 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17661 (exit $ac_status); }; } &&
17662 { ac_try='test -s conftest$ac_exeext'
17663 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17664 (eval $ac_try) 2>&5
17666 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17667 (exit $ac_status); }; }; then
17668 eval "$as_ac_var=yes"
17670 echo "$as_me: failed program was:" >&5
17671 sed 's/^/| /' conftest.$ac_ext >&5
17673 eval "$as_ac_var=no"
17675 rm -f conftest.err conftest.$ac_objext \
17676 conftest$ac_exeext conftest.$ac_ext
17678 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
17679 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
17680 if test `eval echo '${'$as_ac_var'}'` = yes; then
17681 cat >>confdefs.h <<_ACEOF
17682 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
17689 for ac_func in poll
17691 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
17692 echo "$as_me:$LINENO: checking for $ac_func" >&5
17693 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
17694 if eval "test \"\${$as_ac_var+set}\" = set"; then
17695 echo $ECHO_N "(cached) $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 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
17704 For example, HP-UX 11i <limits.h> declares gettimeofday. */
17705 #define $ac_func innocuous_$ac_func
17707 /* System header to define __stub macros and hopefully few prototypes,
17708 which can conflict with char $ac_func (); below.
17709 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
17710 <limits.h> exists even on freestanding compilers. */
17713 # include <limits.h>
17715 # include <assert.h>
17720 /* Override any gcc2 internal prototype to avoid an error. */
17725 /* We use char because int might match the return type of a gcc2
17726 builtin and then its argument prototype would still apply. */
17728 /* The GNU C library defines this for functions which it implements
17729 to always fail with ENOSYS. Some functions are actually named
17730 something starting with __ and the normal name is an alias. */
17731 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
17734 char (*f) () = $ac_func;
17743 return f != $ac_func;
17748 rm -f conftest.$ac_objext conftest$ac_exeext
17749 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
17750 (eval $ac_link) 2>conftest.er1
17752 grep -v '^ *+' conftest.er1 >conftest.err
17754 cat conftest.err >&5
17755 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17756 (exit $ac_status); } &&
17757 { ac_try='test -z "$ac_c_werror_flag"
17758 || test ! -s conftest.err'
17759 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17760 (eval $ac_try) 2>&5
17762 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17763 (exit $ac_status); }; } &&
17764 { ac_try='test -s conftest$ac_exeext'
17765 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17766 (eval $ac_try) 2>&5
17768 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17769 (exit $ac_status); }; }; then
17770 eval "$as_ac_var=yes"
17772 echo "$as_me: failed program was:" >&5
17773 sed 's/^/| /' conftest.$ac_ext >&5
17775 eval "$as_ac_var=no"
17777 rm -f conftest.err conftest.$ac_objext \
17778 conftest$ac_exeext conftest.$ac_ext
17780 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
17781 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
17782 if test `eval echo '${'$as_ac_var'}'` = yes; then
17783 cat >>confdefs.h <<_ACEOF
17784 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
17791 for ac_func in pread64
17793 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
17794 echo "$as_me:$LINENO: checking for $ac_func" >&5
17795 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
17796 if eval "test \"\${$as_ac_var+set}\" = set"; then
17797 echo $ECHO_N "(cached) $ECHO_C" >&6
17799 cat >conftest.$ac_ext <<_ACEOF
17802 cat confdefs.h >>conftest.$ac_ext
17803 cat >>conftest.$ac_ext <<_ACEOF
17804 /* end confdefs.h. */
17805 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
17806 For example, HP-UX 11i <limits.h> declares gettimeofday. */
17807 #define $ac_func innocuous_$ac_func
17809 /* System header to define __stub macros and hopefully few prototypes,
17810 which can conflict with char $ac_func (); below.
17811 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
17812 <limits.h> exists even on freestanding compilers. */
17815 # include <limits.h>
17817 # include <assert.h>
17822 /* Override any gcc2 internal prototype to avoid an error. */
17827 /* We use char because int might match the return type of a gcc2
17828 builtin and then its argument prototype would still apply. */
17830 /* The GNU C library defines this for functions which it implements
17831 to always fail with ENOSYS. Some functions are actually named
17832 something starting with __ and the normal name is an alias. */
17833 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
17836 char (*f) () = $ac_func;
17845 return f != $ac_func;
17850 rm -f conftest.$ac_objext conftest$ac_exeext
17851 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
17852 (eval $ac_link) 2>conftest.er1
17854 grep -v '^ *+' conftest.er1 >conftest.err
17856 cat conftest.err >&5
17857 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17858 (exit $ac_status); } &&
17859 { ac_try='test -z "$ac_c_werror_flag"
17860 || test ! -s conftest.err'
17861 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17862 (eval $ac_try) 2>&5
17864 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17865 (exit $ac_status); }; } &&
17866 { ac_try='test -s conftest$ac_exeext'
17867 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17868 (eval $ac_try) 2>&5
17870 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17871 (exit $ac_status); }; }; then
17872 eval "$as_ac_var=yes"
17874 echo "$as_me: failed program was:" >&5
17875 sed 's/^/| /' conftest.$ac_ext >&5
17877 eval "$as_ac_var=no"
17879 rm -f conftest.err conftest.$ac_objext \
17880 conftest$ac_exeext conftest.$ac_ext
17882 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
17883 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
17884 if test `eval echo '${'$as_ac_var'}'` = yes; then
17885 cat >>confdefs.h <<_ACEOF
17886 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
17893 for ac_func in sbrk
17895 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
17896 echo "$as_me:$LINENO: checking for $ac_func" >&5
17897 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
17898 if eval "test \"\${$as_ac_var+set}\" = set"; then
17899 echo $ECHO_N "(cached) $ECHO_C" >&6
17901 cat >conftest.$ac_ext <<_ACEOF
17904 cat confdefs.h >>conftest.$ac_ext
17905 cat >>conftest.$ac_ext <<_ACEOF
17906 /* end confdefs.h. */
17907 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
17908 For example, HP-UX 11i <limits.h> declares gettimeofday. */
17909 #define $ac_func innocuous_$ac_func
17911 /* System header to define __stub macros and hopefully few prototypes,
17912 which can conflict with char $ac_func (); below.
17913 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
17914 <limits.h> exists even on freestanding compilers. */
17917 # include <limits.h>
17919 # include <assert.h>
17924 /* Override any gcc2 internal prototype to avoid an error. */
17929 /* We use char because int might match the return type of a gcc2
17930 builtin and then its argument prototype would still apply. */
17932 /* The GNU C library defines this for functions which it implements
17933 to always fail with ENOSYS. Some functions are actually named
17934 something starting with __ and the normal name is an alias. */
17935 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
17938 char (*f) () = $ac_func;
17947 return f != $ac_func;
17952 rm -f conftest.$ac_objext conftest$ac_exeext
17953 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
17954 (eval $ac_link) 2>conftest.er1
17956 grep -v '^ *+' conftest.er1 >conftest.err
17958 cat conftest.err >&5
17959 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17960 (exit $ac_status); } &&
17961 { ac_try='test -z "$ac_c_werror_flag"
17962 || test ! -s conftest.err'
17963 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17964 (eval $ac_try) 2>&5
17966 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17967 (exit $ac_status); }; } &&
17968 { ac_try='test -s conftest$ac_exeext'
17969 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17970 (eval $ac_try) 2>&5
17972 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17973 (exit $ac_status); }; }; then
17974 eval "$as_ac_var=yes"
17976 echo "$as_me: failed program was:" >&5
17977 sed 's/^/| /' conftest.$ac_ext >&5
17979 eval "$as_ac_var=no"
17981 rm -f conftest.err conftest.$ac_objext \
17982 conftest$ac_exeext conftest.$ac_ext
17984 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
17985 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
17986 if test `eval echo '${'$as_ac_var'}'` = yes; then
17987 cat >>confdefs.h <<_ACEOF
17988 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
17996 for ac_func in setpgid setpgrp
17998 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
17999 echo "$as_me:$LINENO: checking for $ac_func" >&5
18000 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
18001 if eval "test \"\${$as_ac_var+set}\" = set"; then
18002 echo $ECHO_N "(cached) $ECHO_C" >&6
18004 cat >conftest.$ac_ext <<_ACEOF
18007 cat confdefs.h >>conftest.$ac_ext
18008 cat >>conftest.$ac_ext <<_ACEOF
18009 /* end confdefs.h. */
18010 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
18011 For example, HP-UX 11i <limits.h> declares gettimeofday. */
18012 #define $ac_func innocuous_$ac_func
18014 /* System header to define __stub macros and hopefully few prototypes,
18015 which can conflict with char $ac_func (); below.
18016 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
18017 <limits.h> exists even on freestanding compilers. */
18020 # include <limits.h>
18022 # include <assert.h>
18027 /* Override any gcc2 internal prototype to avoid an error. */
18032 /* We use char because int might match the return type of a gcc2
18033 builtin and then its argument prototype would still apply. */
18035 /* The GNU C library defines this for functions which it implements
18036 to always fail with ENOSYS. Some functions are actually named
18037 something starting with __ and the normal name is an alias. */
18038 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
18041 char (*f) () = $ac_func;
18050 return f != $ac_func;
18055 rm -f conftest.$ac_objext conftest$ac_exeext
18056 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
18057 (eval $ac_link) 2>conftest.er1
18059 grep -v '^ *+' conftest.er1 >conftest.err
18061 cat conftest.err >&5
18062 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18063 (exit $ac_status); } &&
18064 { ac_try='test -z "$ac_c_werror_flag"
18065 || test ! -s conftest.err'
18066 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18067 (eval $ac_try) 2>&5
18069 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18070 (exit $ac_status); }; } &&
18071 { ac_try='test -s conftest$ac_exeext'
18072 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18073 (eval $ac_try) 2>&5
18075 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18076 (exit $ac_status); }; }; then
18077 eval "$as_ac_var=yes"
18079 echo "$as_me: failed program was:" >&5
18080 sed 's/^/| /' conftest.$ac_ext >&5
18082 eval "$as_ac_var=no"
18084 rm -f conftest.err conftest.$ac_objext \
18085 conftest$ac_exeext conftest.$ac_ext
18087 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
18088 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
18089 if test `eval echo '${'$as_ac_var'}'` = yes; then
18090 cat >>confdefs.h <<_ACEOF
18091 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
18100 for ac_func in sigaction sigprocmask sigsetmask
18102 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
18103 echo "$as_me:$LINENO: checking for $ac_func" >&5
18104 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
18105 if eval "test \"\${$as_ac_var+set}\" = set"; then
18106 echo $ECHO_N "(cached) $ECHO_C" >&6
18108 cat >conftest.$ac_ext <<_ACEOF
18111 cat confdefs.h >>conftest.$ac_ext
18112 cat >>conftest.$ac_ext <<_ACEOF
18113 /* end confdefs.h. */
18114 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
18115 For example, HP-UX 11i <limits.h> declares gettimeofday. */
18116 #define $ac_func innocuous_$ac_func
18118 /* System header to define __stub macros and hopefully few prototypes,
18119 which can conflict with char $ac_func (); below.
18120 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
18121 <limits.h> exists even on freestanding compilers. */
18124 # include <limits.h>
18126 # include <assert.h>
18131 /* Override any gcc2 internal prototype to avoid an error. */
18136 /* We use char because int might match the return type of a gcc2
18137 builtin and then its argument prototype would still apply. */
18139 /* The GNU C library defines this for functions which it implements
18140 to always fail with ENOSYS. Some functions are actually named
18141 something starting with __ and the normal name is an alias. */
18142 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
18145 char (*f) () = $ac_func;
18154 return f != $ac_func;
18159 rm -f conftest.$ac_objext conftest$ac_exeext
18160 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
18161 (eval $ac_link) 2>conftest.er1
18163 grep -v '^ *+' conftest.er1 >conftest.err
18165 cat conftest.err >&5
18166 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18167 (exit $ac_status); } &&
18168 { ac_try='test -z "$ac_c_werror_flag"
18169 || test ! -s conftest.err'
18170 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18171 (eval $ac_try) 2>&5
18173 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18174 (exit $ac_status); }; } &&
18175 { ac_try='test -s conftest$ac_exeext'
18176 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18177 (eval $ac_try) 2>&5
18179 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18180 (exit $ac_status); }; }; then
18181 eval "$as_ac_var=yes"
18183 echo "$as_me: failed program was:" >&5
18184 sed 's/^/| /' conftest.$ac_ext >&5
18186 eval "$as_ac_var=no"
18188 rm -f conftest.err conftest.$ac_objext \
18189 conftest$ac_exeext conftest.$ac_ext
18191 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
18192 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
18193 if test `eval echo '${'$as_ac_var'}'` = yes; then
18194 cat >>confdefs.h <<_ACEOF
18195 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
18202 for ac_func in socketpair
18204 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
18205 echo "$as_me:$LINENO: checking for $ac_func" >&5
18206 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
18207 if eval "test \"\${$as_ac_var+set}\" = set"; then
18208 echo $ECHO_N "(cached) $ECHO_C" >&6
18210 cat >conftest.$ac_ext <<_ACEOF
18213 cat confdefs.h >>conftest.$ac_ext
18214 cat >>conftest.$ac_ext <<_ACEOF
18215 /* end confdefs.h. */
18216 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
18217 For example, HP-UX 11i <limits.h> declares gettimeofday. */
18218 #define $ac_func innocuous_$ac_func
18220 /* System header to define __stub macros and hopefully few prototypes,
18221 which can conflict with char $ac_func (); below.
18222 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
18223 <limits.h> exists even on freestanding compilers. */
18226 # include <limits.h>
18228 # include <assert.h>
18233 /* Override any gcc2 internal prototype to avoid an error. */
18238 /* We use char because int might match the return type of a gcc2
18239 builtin and then its argument prototype would still apply. */
18241 /* The GNU C library defines this for functions which it implements
18242 to always fail with ENOSYS. Some functions are actually named
18243 something starting with __ and the normal name is an alias. */
18244 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
18247 char (*f) () = $ac_func;
18256 return f != $ac_func;
18261 rm -f conftest.$ac_objext conftest$ac_exeext
18262 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
18263 (eval $ac_link) 2>conftest.er1
18265 grep -v '^ *+' conftest.er1 >conftest.err
18267 cat conftest.err >&5
18268 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18269 (exit $ac_status); } &&
18270 { ac_try='test -z "$ac_c_werror_flag"
18271 || test ! -s conftest.err'
18272 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18273 (eval $ac_try) 2>&5
18275 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18276 (exit $ac_status); }; } &&
18277 { ac_try='test -s conftest$ac_exeext'
18278 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18279 (eval $ac_try) 2>&5
18281 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18282 (exit $ac_status); }; }; then
18283 eval "$as_ac_var=yes"
18285 echo "$as_me: failed program was:" >&5
18286 sed 's/^/| /' conftest.$ac_ext >&5
18288 eval "$as_ac_var=no"
18290 rm -f conftest.err conftest.$ac_objext \
18291 conftest$ac_exeext conftest.$ac_ext
18293 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
18294 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
18295 if test `eval echo '${'$as_ac_var'}'` = yes; then
18296 cat >>confdefs.h <<_ACEOF
18297 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
18304 for ac_func in syscall
18306 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
18307 echo "$as_me:$LINENO: checking for $ac_func" >&5
18308 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
18309 if eval "test \"\${$as_ac_var+set}\" = set"; then
18310 echo $ECHO_N "(cached) $ECHO_C" >&6
18312 cat >conftest.$ac_ext <<_ACEOF
18315 cat confdefs.h >>conftest.$ac_ext
18316 cat >>conftest.$ac_ext <<_ACEOF
18317 /* end confdefs.h. */
18318 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
18319 For example, HP-UX 11i <limits.h> declares gettimeofday. */
18320 #define $ac_func innocuous_$ac_func
18322 /* System header to define __stub macros and hopefully few prototypes,
18323 which can conflict with char $ac_func (); below.
18324 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
18325 <limits.h> exists even on freestanding compilers. */
18328 # include <limits.h>
18330 # include <assert.h>
18335 /* Override any gcc2 internal prototype to avoid an error. */
18340 /* We use char because int might match the return type of a gcc2
18341 builtin and then its argument prototype would still apply. */
18343 /* The GNU C library defines this for functions which it implements
18344 to always fail with ENOSYS. Some functions are actually named
18345 something starting with __ and the normal name is an alias. */
18346 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
18349 char (*f) () = $ac_func;
18358 return f != $ac_func;
18363 rm -f conftest.$ac_objext conftest$ac_exeext
18364 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
18365 (eval $ac_link) 2>conftest.er1
18367 grep -v '^ *+' conftest.er1 >conftest.err
18369 cat conftest.err >&5
18370 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18371 (exit $ac_status); } &&
18372 { ac_try='test -z "$ac_c_werror_flag"
18373 || test ! -s conftest.err'
18374 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18375 (eval $ac_try) 2>&5
18377 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18378 (exit $ac_status); }; } &&
18379 { ac_try='test -s conftest$ac_exeext'
18380 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18381 (eval $ac_try) 2>&5
18383 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18384 (exit $ac_status); }; }; then
18385 eval "$as_ac_var=yes"
18387 echo "$as_me: failed program was:" >&5
18388 sed 's/^/| /' conftest.$ac_ext >&5
18390 eval "$as_ac_var=no"
18392 rm -f conftest.err conftest.$ac_objext \
18393 conftest$ac_exeext conftest.$ac_ext
18395 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
18396 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
18397 if test `eval echo '${'$as_ac_var'}'` = yes; then
18398 cat >>confdefs.h <<_ACEOF
18399 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
18406 for ac_func in ttrace
18408 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
18409 echo "$as_me:$LINENO: checking for $ac_func" >&5
18410 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
18411 if eval "test \"\${$as_ac_var+set}\" = set"; then
18412 echo $ECHO_N "(cached) $ECHO_C" >&6
18414 cat >conftest.$ac_ext <<_ACEOF
18417 cat confdefs.h >>conftest.$ac_ext
18418 cat >>conftest.$ac_ext <<_ACEOF
18419 /* end confdefs.h. */
18420 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
18421 For example, HP-UX 11i <limits.h> declares gettimeofday. */
18422 #define $ac_func innocuous_$ac_func
18424 /* System header to define __stub macros and hopefully few prototypes,
18425 which can conflict with char $ac_func (); below.
18426 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
18427 <limits.h> exists even on freestanding compilers. */
18430 # include <limits.h>
18432 # include <assert.h>
18437 /* Override any gcc2 internal prototype to avoid an error. */
18442 /* We use char because int might match the return type of a gcc2
18443 builtin and then its argument prototype would still apply. */
18445 /* The GNU C library defines this for functions which it implements
18446 to always fail with ENOSYS. Some functions are actually named
18447 something starting with __ and the normal name is an alias. */
18448 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
18451 char (*f) () = $ac_func;
18460 return f != $ac_func;
18465 rm -f conftest.$ac_objext conftest$ac_exeext
18466 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
18467 (eval $ac_link) 2>conftest.er1
18469 grep -v '^ *+' conftest.er1 >conftest.err
18471 cat conftest.err >&5
18472 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18473 (exit $ac_status); } &&
18474 { ac_try='test -z "$ac_c_werror_flag"
18475 || test ! -s conftest.err'
18476 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18477 (eval $ac_try) 2>&5
18479 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18480 (exit $ac_status); }; } &&
18481 { ac_try='test -s conftest$ac_exeext'
18482 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18483 (eval $ac_try) 2>&5
18485 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18486 (exit $ac_status); }; }; then
18487 eval "$as_ac_var=yes"
18489 echo "$as_me: failed program was:" >&5
18490 sed 's/^/| /' conftest.$ac_ext >&5
18492 eval "$as_ac_var=no"
18494 rm -f conftest.err conftest.$ac_objext \
18495 conftest$ac_exeext conftest.$ac_ext
18497 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
18498 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
18499 if test `eval echo '${'$as_ac_var'}'` = yes; then
18500 cat >>confdefs.h <<_ACEOF
18501 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
18508 for ac_func in wborder
18510 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
18511 echo "$as_me:$LINENO: checking for $ac_func" >&5
18512 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
18513 if eval "test \"\${$as_ac_var+set}\" = set"; then
18514 echo $ECHO_N "(cached) $ECHO_C" >&6
18516 cat >conftest.$ac_ext <<_ACEOF
18519 cat confdefs.h >>conftest.$ac_ext
18520 cat >>conftest.$ac_ext <<_ACEOF
18521 /* end confdefs.h. */
18522 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
18523 For example, HP-UX 11i <limits.h> declares gettimeofday. */
18524 #define $ac_func innocuous_$ac_func
18526 /* System header to define __stub macros and hopefully few prototypes,
18527 which can conflict with char $ac_func (); below.
18528 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
18529 <limits.h> exists even on freestanding compilers. */
18532 # include <limits.h>
18534 # include <assert.h>
18539 /* Override any gcc2 internal prototype to avoid an error. */
18544 /* We use char because int might match the return type of a gcc2
18545 builtin and then its argument prototype would still apply. */
18547 /* The GNU C library defines this for functions which it implements
18548 to always fail with ENOSYS. Some functions are actually named
18549 something starting with __ and the normal name is an alias. */
18550 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
18553 char (*f) () = $ac_func;
18562 return f != $ac_func;
18567 rm -f conftest.$ac_objext conftest$ac_exeext
18568 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
18569 (eval $ac_link) 2>conftest.er1
18571 grep -v '^ *+' conftest.er1 >conftest.err
18573 cat conftest.err >&5
18574 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18575 (exit $ac_status); } &&
18576 { ac_try='test -z "$ac_c_werror_flag"
18577 || test ! -s conftest.err'
18578 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18579 (eval $ac_try) 2>&5
18581 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18582 (exit $ac_status); }; } &&
18583 { ac_try='test -s conftest$ac_exeext'
18584 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18585 (eval $ac_try) 2>&5
18587 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18588 (exit $ac_status); }; }; then
18589 eval "$as_ac_var=yes"
18591 echo "$as_me: failed program was:" >&5
18592 sed 's/^/| /' conftest.$ac_ext >&5
18594 eval "$as_ac_var=no"
18596 rm -f conftest.err conftest.$ac_objext \
18597 conftest$ac_exeext conftest.$ac_ext
18599 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
18600 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
18601 if test `eval echo '${'$as_ac_var'}'` = yes; then
18602 cat >>confdefs.h <<_ACEOF
18603 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
18610 # Check the return and argument types of ptrace. No canned test for
18611 # this, so roll our own.
18612 gdb_ptrace_headers='
18613 #if HAVE_SYS_TYPES_H
18614 # include <sys/types.h>
18616 #if HAVE_SYS_PTRACE_H
18617 # include <sys/ptrace.h>
18620 # include <unistd.h>
18623 # There is no point in checking if we don't have a prototype.
18624 echo "$as_me:$LINENO: checking whether ptrace is declared" >&5
18625 echo $ECHO_N "checking whether ptrace is declared... $ECHO_C" >&6
18626 if test "${ac_cv_have_decl_ptrace+set}" = set; then
18627 echo $ECHO_N "(cached) $ECHO_C" >&6
18629 cat >conftest.$ac_ext <<_ACEOF
18632 cat confdefs.h >>conftest.$ac_ext
18633 cat >>conftest.$ac_ext <<_ACEOF
18634 /* end confdefs.h. */
18635 $gdb_ptrace_headers
18641 char *p = (char *) ptrace;
18648 rm -f conftest.$ac_objext
18649 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
18650 (eval $ac_compile) 2>conftest.er1
18652 grep -v '^ *+' conftest.er1 >conftest.err
18654 cat conftest.err >&5
18655 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18656 (exit $ac_status); } &&
18657 { ac_try='test -z "$ac_c_werror_flag"
18658 || test ! -s conftest.err'
18659 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18660 (eval $ac_try) 2>&5
18662 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18663 (exit $ac_status); }; } &&
18664 { ac_try='test -s conftest.$ac_objext'
18665 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18666 (eval $ac_try) 2>&5
18668 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18669 (exit $ac_status); }; }; then
18670 ac_cv_have_decl_ptrace=yes
18672 echo "$as_me: failed program was:" >&5
18673 sed 's/^/| /' conftest.$ac_ext >&5
18675 ac_cv_have_decl_ptrace=no
18677 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
18679 echo "$as_me:$LINENO: result: $ac_cv_have_decl_ptrace" >&5
18680 echo "${ECHO_T}$ac_cv_have_decl_ptrace" >&6
18681 if test $ac_cv_have_decl_ptrace = yes; then
18683 cat >>confdefs.h <<_ACEOF
18684 #define HAVE_DECL_PTRACE 1
18689 cat >>confdefs.h <<_ACEOF
18690 #define HAVE_DECL_PTRACE 0
18694 : ${gdb_cv_func_ptrace_ret='int'}
18695 : ${gdb_cv_func_ptrace_args='int,int,long,long'}
18700 # Check return type.
18701 echo "$as_me:$LINENO: checking return type of ptrace" >&5
18702 echo $ECHO_N "checking return type of ptrace... $ECHO_C" >&6
18703 if test "${gdb_cv_func_ptrace_ret+set}" = set; then
18704 echo $ECHO_N "(cached) $ECHO_C" >&6
18706 cat >conftest.$ac_ext <<_ACEOF
18709 cat confdefs.h >>conftest.$ac_ext
18710 cat >>conftest.$ac_ext <<_ACEOF
18711 /* end confdefs.h. */
18712 $gdb_ptrace_headers
18716 extern int ptrace ();
18721 rm -f conftest.$ac_objext
18722 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
18723 (eval $ac_compile) 2>conftest.er1
18725 grep -v '^ *+' conftest.er1 >conftest.err
18727 cat conftest.err >&5
18728 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18729 (exit $ac_status); } &&
18730 { ac_try='test -z "$ac_c_werror_flag"
18731 || test ! -s conftest.err'
18732 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18733 (eval $ac_try) 2>&5
18735 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18736 (exit $ac_status); }; } &&
18737 { ac_try='test -s conftest.$ac_objext'
18738 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18739 (eval $ac_try) 2>&5
18741 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18742 (exit $ac_status); }; }; then
18743 gdb_cv_func_ptrace_ret='int'
18745 echo "$as_me: failed program was:" >&5
18746 sed 's/^/| /' conftest.$ac_ext >&5
18748 gdb_cv_func_ptrace_ret='long'
18750 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
18752 echo "$as_me:$LINENO: result: $gdb_cv_func_ptrace_ret" >&5
18753 echo "${ECHO_T}$gdb_cv_func_ptrace_ret" >&6
18755 cat >>confdefs.h <<_ACEOF
18756 #define PTRACE_TYPE_RET $gdb_cv_func_ptrace_ret
18759 # Check argument types.
18760 echo "$as_me:$LINENO: checking types of arguments for ptrace" >&5
18761 echo $ECHO_N "checking types of arguments for ptrace... $ECHO_C" >&6
18762 if test "${gdb_cv_func_ptrace_args+set}" = set; then
18763 echo $ECHO_N "(cached) $ECHO_C" >&6
18766 for gdb_arg1 in 'int' 'long'; do
18767 for gdb_arg2 in 'pid_t' 'int' 'long'; do
18768 for gdb_arg3 in 'int *' 'caddr_t' 'int' 'long'; do
18769 for gdb_arg4 in 'int' 'long'; do
18770 cat >conftest.$ac_ext <<_ACEOF
18773 cat confdefs.h >>conftest.$ac_ext
18774 cat >>conftest.$ac_ext <<_ACEOF
18775 /* end confdefs.h. */
18776 $gdb_ptrace_headers
18781 extern $gdb_cv_func_ptrace_ret
18782 ptrace ($gdb_arg1, $gdb_arg2, $gdb_arg3, $gdb_arg4);
18788 rm -f conftest.$ac_objext
18789 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
18790 (eval $ac_compile) 2>conftest.er1
18792 grep -v '^ *+' conftest.er1 >conftest.err
18794 cat conftest.err >&5
18795 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18796 (exit $ac_status); } &&
18797 { ac_try='test -z "$ac_c_werror_flag"
18798 || test ! -s conftest.err'
18799 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18800 (eval $ac_try) 2>&5
18802 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18803 (exit $ac_status); }; } &&
18804 { ac_try='test -s conftest.$ac_objext'
18805 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18806 (eval $ac_try) 2>&5
18808 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18809 (exit $ac_status); }; }; then
18810 gdb_cv_func_ptrace_args="$gdb_arg1,$gdb_arg2,$gdb_arg3,$gdb_arg4";
18813 echo "$as_me: failed program was:" >&5
18814 sed 's/^/| /' conftest.$ac_ext >&5
18817 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
18818 for gdb_arg5 in 'int *' 'int' 'long'; do
18819 cat >conftest.$ac_ext <<_ACEOF
18822 cat confdefs.h >>conftest.$ac_ext
18823 cat >>conftest.$ac_ext <<_ACEOF
18824 /* end confdefs.h. */
18825 $gdb_ptrace_headers
18830 extern $gdb_cv_func_ptrace_ret
18831 ptrace ($gdb_arg1, $gdb_arg2, $gdb_arg3, $gdb_arg4, $gdb_arg5);
18837 rm -f conftest.$ac_objext
18838 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
18839 (eval $ac_compile) 2>conftest.er1
18841 grep -v '^ *+' conftest.er1 >conftest.err
18843 cat conftest.err >&5
18844 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18845 (exit $ac_status); } &&
18846 { ac_try='test -z "$ac_c_werror_flag"
18847 || test ! -s conftest.err'
18848 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18849 (eval $ac_try) 2>&5
18851 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18852 (exit $ac_status); }; } &&
18853 { ac_try='test -s conftest.$ac_objext'
18854 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18855 (eval $ac_try) 2>&5
18857 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18858 (exit $ac_status); }; }; then
18860 gdb_cv_func_ptrace_args="$gdb_arg1,$gdb_arg2,$gdb_arg3,$gdb_arg4,$gdb_arg5";
18863 echo "$as_me: failed program was:" >&5
18864 sed 's/^/| /' conftest.$ac_ext >&5
18867 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
18873 # Provide a safe default value.
18874 : ${gdb_cv_func_ptrace_args='int,int,long,long'}
18877 echo "$as_me:$LINENO: result: $gdb_cv_func_ptrace_args" >&5
18878 echo "${ECHO_T}$gdb_cv_func_ptrace_args" >&6
18879 ac_save_IFS=$IFS; IFS=','
18880 set dummy `echo "$gdb_cv_func_ptrace_args" | sed 's/\*/\*/g'`
18884 cat >>confdefs.h <<_ACEOF
18885 #define PTRACE_TYPE_ARG3 $3
18888 if test -n "$5"; then
18890 cat >>confdefs.h <<_ACEOF
18891 #define PTRACE_TYPE_ARG5 $5
18896 if test "$cross_compiling" = no; then
18897 echo "$as_me:$LINENO: checking whether setpgrp takes no argument" >&5
18898 echo $ECHO_N "checking whether setpgrp takes no argument... $ECHO_C" >&6
18899 if test "${ac_cv_func_setpgrp_void+set}" = set; then
18900 echo $ECHO_N "(cached) $ECHO_C" >&6
18902 if test "$cross_compiling" = yes; then
18903 { { echo "$as_me:$LINENO: error: cannot check setpgrp when cross compiling" >&5
18904 echo "$as_me: error: cannot check setpgrp when cross compiling" >&2;}
18905 { (exit 1); exit 1; }; }
18907 cat >conftest.$ac_ext <<_ACEOF
18910 cat confdefs.h >>conftest.$ac_ext
18911 cat >>conftest.$ac_ext <<_ACEOF
18912 /* end confdefs.h. */
18914 # include <unistd.h>
18920 /* If this system has a BSD-style setpgrp which takes arguments,
18921 setpgrp(1, 1) will fail with ESRCH and return -1, in that case
18922 exit successfully. */
18923 exit (setpgrp (1,1) == -1 ? 0 : 1);
18928 rm -f conftest$ac_exeext
18929 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
18930 (eval $ac_link) 2>&5
18932 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18933 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
18934 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18935 (eval $ac_try) 2>&5
18937 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18938 (exit $ac_status); }; }; then
18939 ac_cv_func_setpgrp_void=no
18941 echo "$as_me: program exited with status $ac_status" >&5
18942 echo "$as_me: failed program was:" >&5
18943 sed 's/^/| /' conftest.$ac_ext >&5
18945 ( exit $ac_status )
18946 ac_cv_func_setpgrp_void=yes
18948 rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
18951 echo "$as_me:$LINENO: result: $ac_cv_func_setpgrp_void" >&5
18952 echo "${ECHO_T}$ac_cv_func_setpgrp_void" >&6
18953 if test $ac_cv_func_setpgrp_void = yes; then
18955 cat >>confdefs.h <<\_ACEOF
18956 #define SETPGRP_VOID 1
18962 echo "$as_me:$LINENO: checking whether setpgrp takes no argument" >&5
18963 echo $ECHO_N "checking whether setpgrp takes no argument... $ECHO_C" >&6
18964 if test "${ac_cv_func_setpgrp_void+set}" = set; then
18965 echo $ECHO_N "(cached) $ECHO_C" >&6
18967 cat >conftest.$ac_ext <<_ACEOF
18970 cat confdefs.h >>conftest.$ac_ext
18971 cat >>conftest.$ac_ext <<_ACEOF
18972 /* end confdefs.h. */
18974 #include <unistd.h>
18980 if (setpgrp(1,1) == -1)
18989 rm -f conftest.$ac_objext
18990 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
18991 (eval $ac_compile) 2>conftest.er1
18993 grep -v '^ *+' conftest.er1 >conftest.err
18995 cat conftest.err >&5
18996 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18997 (exit $ac_status); } &&
18998 { ac_try='test -z "$ac_c_werror_flag"
18999 || test ! -s conftest.err'
19000 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19001 (eval $ac_try) 2>&5
19003 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19004 (exit $ac_status); }; } &&
19005 { ac_try='test -s conftest.$ac_objext'
19006 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19007 (eval $ac_try) 2>&5
19009 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19010 (exit $ac_status); }; }; then
19011 ac_cv_func_setpgrp_void=no
19013 echo "$as_me: failed program was:" >&5
19014 sed 's/^/| /' conftest.$ac_ext >&5
19016 ac_cv_func_setpgrp_void=yes
19018 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
19020 echo "$as_me:$LINENO: result: $ac_cv_func_setpgrp_void" >&5
19021 echo "${ECHO_T}$ac_cv_func_setpgrp_void" >&6
19022 if test $ac_cv_func_setpgrp_void = yes; then
19023 cat >>confdefs.h <<\_ACEOF
19024 #define SETPGRP_VOID 1
19030 # Check if sigsetjmp is available. Using AC_CHECK_FUNCS won't do
19031 # since sigsetjmp might only be defined as a macro.
19032 echo "$as_me:$LINENO: checking for sigsetjmp" >&5
19033 echo $ECHO_N "checking for sigsetjmp... $ECHO_C" >&6
19034 if test "${gdb_cv_func_sigsetjmp+set}" = set; then
19035 echo $ECHO_N "(cached) $ECHO_C" >&6
19037 cat >conftest.$ac_ext <<_ACEOF
19040 cat confdefs.h >>conftest.$ac_ext
19041 cat >>conftest.$ac_ext <<_ACEOF
19042 /* end confdefs.h. */
19044 #include <setjmp.h>
19049 sigjmp_buf env; while (! sigsetjmp (env, 1)) siglongjmp (env, 1);
19054 rm -f conftest.$ac_objext
19055 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
19056 (eval $ac_compile) 2>conftest.er1
19058 grep -v '^ *+' conftest.er1 >conftest.err
19060 cat conftest.err >&5
19061 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19062 (exit $ac_status); } &&
19063 { ac_try='test -z "$ac_c_werror_flag"
19064 || test ! -s conftest.err'
19065 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19066 (eval $ac_try) 2>&5
19068 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19069 (exit $ac_status); }; } &&
19070 { ac_try='test -s conftest.$ac_objext'
19071 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19072 (eval $ac_try) 2>&5
19074 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19075 (exit $ac_status); }; }; then
19076 gdb_cv_func_sigsetjmp=yes
19078 echo "$as_me: failed program was:" >&5
19079 sed 's/^/| /' conftest.$ac_ext >&5
19081 gdb_cv_func_sigsetjmp=no
19083 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
19085 echo "$as_me:$LINENO: result: $gdb_cv_func_sigsetjmp" >&5
19086 echo "${ECHO_T}$gdb_cv_func_sigsetjmp" >&6
19087 if test $gdb_cv_func_sigsetjmp = yes; then
19089 cat >>confdefs.h <<\_ACEOF
19090 #define HAVE_SIGSETJMP 1
19095 # Assume we'll default to using the included libiberty regex.
19096 gdb_use_included_regex=yes
19098 # However, if the system regex is GNU regex, then default to *not*
19099 # using the included regex.
19100 echo "$as_me:$LINENO: checking for GNU regex" >&5
19101 echo $ECHO_N "checking for GNU regex... $ECHO_C" >&6
19102 if test "${gdb_cv_have_gnu_regex+set}" = set; then
19103 echo $ECHO_N "(cached) $ECHO_C" >&6
19105 cat >conftest.$ac_ext <<_ACEOF
19108 cat confdefs.h >>conftest.$ac_ext
19109 cat >>conftest.$ac_ext <<_ACEOF
19110 /* end confdefs.h. */
19111 #include <gnu-versions.h>
19115 #define REGEX_INTERFACE_VERSION 1
19116 #if _GNU_REGEX_INTERFACE_VERSION != REGEX_INTERFACE_VERSION
19117 # error "Version mismatch"
19123 rm -f conftest.$ac_objext
19124 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
19125 (eval $ac_compile) 2>conftest.er1
19127 grep -v '^ *+' conftest.er1 >conftest.err
19129 cat conftest.err >&5
19130 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19131 (exit $ac_status); } &&
19132 { ac_try='test -z "$ac_c_werror_flag"
19133 || test ! -s conftest.err'
19134 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19135 (eval $ac_try) 2>&5
19137 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19138 (exit $ac_status); }; } &&
19139 { ac_try='test -s conftest.$ac_objext'
19140 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19141 (eval $ac_try) 2>&5
19143 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19144 (exit $ac_status); }; }; then
19145 gdb_cv_have_gnu_regex=yes
19147 echo "$as_me: failed program was:" >&5
19148 sed 's/^/| /' conftest.$ac_ext >&5
19150 gdb_cv_have_gnu_regex=no
19152 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
19154 echo "$as_me:$LINENO: result: $gdb_cv_have_gnu_regex" >&5
19155 echo "${ECHO_T}$gdb_cv_have_gnu_regex" >&6
19156 if test $gdb_cv_have_gnu_regex = yes; then
19157 gdb_use_included_regex=no
19161 # Check whether --with-included-regex or --without-included-regex was given.
19162 if test "${with_included_regex+set}" = set; then
19163 withval="$with_included_regex"
19164 gdb_with_regex=$withval
19166 gdb_with_regex=$gdb_use_included_regex
19168 if test "$gdb_with_regex" = yes; then
19170 cat >>confdefs.h <<\_ACEOF
19171 #define USE_INCLUDED_REGEX 1
19176 # Check if <sys/proc.h> defines `struct thread' with a td_pcb member.
19177 echo "$as_me:$LINENO: checking for struct thread.td_pcb" >&5
19178 echo $ECHO_N "checking for struct thread.td_pcb... $ECHO_C" >&6
19179 if test "${ac_cv_member_struct_thread_td_pcb+set}" = set; then
19180 echo $ECHO_N "(cached) $ECHO_C" >&6
19182 cat >conftest.$ac_ext <<_ACEOF
19185 cat confdefs.h >>conftest.$ac_ext
19186 cat >>conftest.$ac_ext <<_ACEOF
19187 /* end confdefs.h. */
19188 #include <sys/param.h>
19189 #include <sys/proc.h>
19195 static struct thread ac_aggr;
19196 if (ac_aggr.td_pcb)
19202 rm -f conftest.$ac_objext
19203 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
19204 (eval $ac_compile) 2>conftest.er1
19206 grep -v '^ *+' conftest.er1 >conftest.err
19208 cat conftest.err >&5
19209 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19210 (exit $ac_status); } &&
19211 { ac_try='test -z "$ac_c_werror_flag"
19212 || test ! -s conftest.err'
19213 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19214 (eval $ac_try) 2>&5
19216 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19217 (exit $ac_status); }; } &&
19218 { ac_try='test -s conftest.$ac_objext'
19219 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19220 (eval $ac_try) 2>&5
19222 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19223 (exit $ac_status); }; }; then
19224 ac_cv_member_struct_thread_td_pcb=yes
19226 echo "$as_me: failed program was:" >&5
19227 sed 's/^/| /' conftest.$ac_ext >&5
19229 cat >conftest.$ac_ext <<_ACEOF
19232 cat confdefs.h >>conftest.$ac_ext
19233 cat >>conftest.$ac_ext <<_ACEOF
19234 /* end confdefs.h. */
19235 #include <sys/param.h>
19236 #include <sys/proc.h>
19242 static struct thread ac_aggr;
19243 if (sizeof ac_aggr.td_pcb)
19249 rm -f conftest.$ac_objext
19250 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
19251 (eval $ac_compile) 2>conftest.er1
19253 grep -v '^ *+' conftest.er1 >conftest.err
19255 cat conftest.err >&5
19256 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19257 (exit $ac_status); } &&
19258 { ac_try='test -z "$ac_c_werror_flag"
19259 || test ! -s conftest.err'
19260 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19261 (eval $ac_try) 2>&5
19263 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19264 (exit $ac_status); }; } &&
19265 { ac_try='test -s conftest.$ac_objext'
19266 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19267 (eval $ac_try) 2>&5
19269 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19270 (exit $ac_status); }; }; then
19271 ac_cv_member_struct_thread_td_pcb=yes
19273 echo "$as_me: failed program was:" >&5
19274 sed 's/^/| /' conftest.$ac_ext >&5
19276 ac_cv_member_struct_thread_td_pcb=no
19278 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
19280 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
19282 echo "$as_me:$LINENO: result: $ac_cv_member_struct_thread_td_pcb" >&5
19283 echo "${ECHO_T}$ac_cv_member_struct_thread_td_pcb" >&6
19284 if test $ac_cv_member_struct_thread_td_pcb = yes; then
19286 cat >>confdefs.h <<_ACEOF
19287 #define HAVE_STRUCT_THREAD_TD_PCB 1
19294 # See if <sys/lwp.h> defines `struct lwp`.
19295 echo "$as_me:$LINENO: checking for struct lwp" >&5
19296 echo $ECHO_N "checking for struct lwp... $ECHO_C" >&6
19297 if test "${gdb_cv_struct_lwp+set}" = set; then
19298 echo $ECHO_N "(cached) $ECHO_C" >&6
19300 cat >conftest.$ac_ext <<_ACEOF
19303 cat confdefs.h >>conftest.$ac_ext
19304 cat >>conftest.$ac_ext <<_ACEOF
19305 /* end confdefs.h. */
19306 #include <sys/param.h>
19307 #include <sys/lwp.h>
19316 rm -f conftest.$ac_objext
19317 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
19318 (eval $ac_compile) 2>conftest.er1
19320 grep -v '^ *+' conftest.er1 >conftest.err
19322 cat conftest.err >&5
19323 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19324 (exit $ac_status); } &&
19325 { ac_try='test -z "$ac_c_werror_flag"
19326 || test ! -s conftest.err'
19327 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19328 (eval $ac_try) 2>&5
19330 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19331 (exit $ac_status); }; } &&
19332 { ac_try='test -s conftest.$ac_objext'
19333 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19334 (eval $ac_try) 2>&5
19336 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19337 (exit $ac_status); }; }; then
19338 gdb_cv_struct_lwp=yes
19340 echo "$as_me: failed program was:" >&5
19341 sed 's/^/| /' conftest.$ac_ext >&5
19343 gdb_cv_struct_lwp=no
19345 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
19347 echo "$as_me:$LINENO: result: $gdb_cv_struct_lwp" >&5
19348 echo "${ECHO_T}$gdb_cv_struct_lwp" >&6
19349 if test $gdb_cv_struct_lwp = yes; then
19351 cat >>confdefs.h <<\_ACEOF
19352 #define HAVE_STRUCT_LWP 1
19357 # See if <machine/reg.h> degines `struct reg'.
19358 echo "$as_me:$LINENO: checking for struct reg in machine/reg.h" >&5
19359 echo $ECHO_N "checking for struct reg in machine/reg.h... $ECHO_C" >&6
19360 if test "${gdb_cv_struct_reg+set}" = set; then
19361 echo $ECHO_N "(cached) $ECHO_C" >&6
19363 cat >conftest.$ac_ext <<_ACEOF
19366 cat confdefs.h >>conftest.$ac_ext
19367 cat >>conftest.$ac_ext <<_ACEOF
19368 /* end confdefs.h. */
19369 #include <sys/types.h>
19370 #include <machine/reg.h>
19379 rm -f conftest.$ac_objext
19380 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
19381 (eval $ac_compile) 2>conftest.er1
19383 grep -v '^ *+' conftest.er1 >conftest.err
19385 cat conftest.err >&5
19386 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19387 (exit $ac_status); } &&
19388 { ac_try='test -z "$ac_c_werror_flag"
19389 || test ! -s conftest.err'
19390 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19391 (eval $ac_try) 2>&5
19393 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19394 (exit $ac_status); }; } &&
19395 { ac_try='test -s conftest.$ac_objext'
19396 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19397 (eval $ac_try) 2>&5
19399 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19400 (exit $ac_status); }; }; then
19401 gdb_cv_struct_reg=yes
19403 echo "$as_me: failed program was:" >&5
19404 sed 's/^/| /' conftest.$ac_ext >&5
19406 gdb_cv_struct_reg=no
19408 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
19410 echo "$as_me:$LINENO: result: $gdb_cv_struct_reg" >&5
19411 echo "${ECHO_T}$gdb_cv_struct_reg" >&6
19412 if test $gdb_cv_struct_reg = yes; then
19414 cat >>confdefs.h <<\_ACEOF
19415 #define HAVE_STRUCT_REG 1
19420 # See if <machine/reg.h> supports the %fs and %gs i386 segment registers.
19421 # Older i386 BSD's don't have the r_fs and r_gs members of `struct reg'.
19422 echo "$as_me:$LINENO: checking for struct reg.r_fs" >&5
19423 echo $ECHO_N "checking for struct reg.r_fs... $ECHO_C" >&6
19424 if test "${ac_cv_member_struct_reg_r_fs+set}" = set; then
19425 echo $ECHO_N "(cached) $ECHO_C" >&6
19427 cat >conftest.$ac_ext <<_ACEOF
19430 cat confdefs.h >>conftest.$ac_ext
19431 cat >>conftest.$ac_ext <<_ACEOF
19432 /* end confdefs.h. */
19433 #include <machine/reg.h>
19438 static struct reg ac_aggr;
19445 rm -f conftest.$ac_objext
19446 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
19447 (eval $ac_compile) 2>conftest.er1
19449 grep -v '^ *+' conftest.er1 >conftest.err
19451 cat conftest.err >&5
19452 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19453 (exit $ac_status); } &&
19454 { ac_try='test -z "$ac_c_werror_flag"
19455 || test ! -s conftest.err'
19456 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19457 (eval $ac_try) 2>&5
19459 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19460 (exit $ac_status); }; } &&
19461 { ac_try='test -s conftest.$ac_objext'
19462 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19463 (eval $ac_try) 2>&5
19465 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19466 (exit $ac_status); }; }; then
19467 ac_cv_member_struct_reg_r_fs=yes
19469 echo "$as_me: failed program was:" >&5
19470 sed 's/^/| /' conftest.$ac_ext >&5
19472 cat >conftest.$ac_ext <<_ACEOF
19475 cat confdefs.h >>conftest.$ac_ext
19476 cat >>conftest.$ac_ext <<_ACEOF
19477 /* end confdefs.h. */
19478 #include <machine/reg.h>
19483 static struct reg ac_aggr;
19484 if (sizeof ac_aggr.r_fs)
19490 rm -f conftest.$ac_objext
19491 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
19492 (eval $ac_compile) 2>conftest.er1
19494 grep -v '^ *+' conftest.er1 >conftest.err
19496 cat conftest.err >&5
19497 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19498 (exit $ac_status); } &&
19499 { ac_try='test -z "$ac_c_werror_flag"
19500 || test ! -s conftest.err'
19501 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19502 (eval $ac_try) 2>&5
19504 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19505 (exit $ac_status); }; } &&
19506 { ac_try='test -s conftest.$ac_objext'
19507 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19508 (eval $ac_try) 2>&5
19510 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19511 (exit $ac_status); }; }; then
19512 ac_cv_member_struct_reg_r_fs=yes
19514 echo "$as_me: failed program was:" >&5
19515 sed 's/^/| /' conftest.$ac_ext >&5
19517 ac_cv_member_struct_reg_r_fs=no
19519 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
19521 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
19523 echo "$as_me:$LINENO: result: $ac_cv_member_struct_reg_r_fs" >&5
19524 echo "${ECHO_T}$ac_cv_member_struct_reg_r_fs" >&6
19525 if test $ac_cv_member_struct_reg_r_fs = yes; then
19527 cat >>confdefs.h <<_ACEOF
19528 #define HAVE_STRUCT_REG_R_FS 1
19533 echo "$as_me:$LINENO: checking for struct reg.r_gs" >&5
19534 echo $ECHO_N "checking for struct reg.r_gs... $ECHO_C" >&6
19535 if test "${ac_cv_member_struct_reg_r_gs+set}" = set; then
19536 echo $ECHO_N "(cached) $ECHO_C" >&6
19538 cat >conftest.$ac_ext <<_ACEOF
19541 cat confdefs.h >>conftest.$ac_ext
19542 cat >>conftest.$ac_ext <<_ACEOF
19543 /* end confdefs.h. */
19544 #include <machine/reg.h>
19549 static struct reg ac_aggr;
19556 rm -f conftest.$ac_objext
19557 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
19558 (eval $ac_compile) 2>conftest.er1
19560 grep -v '^ *+' conftest.er1 >conftest.err
19562 cat conftest.err >&5
19563 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19564 (exit $ac_status); } &&
19565 { ac_try='test -z "$ac_c_werror_flag"
19566 || test ! -s conftest.err'
19567 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19568 (eval $ac_try) 2>&5
19570 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19571 (exit $ac_status); }; } &&
19572 { ac_try='test -s conftest.$ac_objext'
19573 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19574 (eval $ac_try) 2>&5
19576 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19577 (exit $ac_status); }; }; then
19578 ac_cv_member_struct_reg_r_gs=yes
19580 echo "$as_me: failed program was:" >&5
19581 sed 's/^/| /' conftest.$ac_ext >&5
19583 cat >conftest.$ac_ext <<_ACEOF
19586 cat confdefs.h >>conftest.$ac_ext
19587 cat >>conftest.$ac_ext <<_ACEOF
19588 /* end confdefs.h. */
19589 #include <machine/reg.h>
19594 static struct reg ac_aggr;
19595 if (sizeof ac_aggr.r_gs)
19601 rm -f conftest.$ac_objext
19602 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
19603 (eval $ac_compile) 2>conftest.er1
19605 grep -v '^ *+' conftest.er1 >conftest.err
19607 cat conftest.err >&5
19608 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19609 (exit $ac_status); } &&
19610 { ac_try='test -z "$ac_c_werror_flag"
19611 || test ! -s conftest.err'
19612 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19613 (eval $ac_try) 2>&5
19615 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19616 (exit $ac_status); }; } &&
19617 { ac_try='test -s conftest.$ac_objext'
19618 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19619 (eval $ac_try) 2>&5
19621 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19622 (exit $ac_status); }; }; then
19623 ac_cv_member_struct_reg_r_gs=yes
19625 echo "$as_me: failed program was:" >&5
19626 sed 's/^/| /' conftest.$ac_ext >&5
19628 ac_cv_member_struct_reg_r_gs=no
19630 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
19632 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
19634 echo "$as_me:$LINENO: result: $ac_cv_member_struct_reg_r_gs" >&5
19635 echo "${ECHO_T}$ac_cv_member_struct_reg_r_gs" >&6
19636 if test $ac_cv_member_struct_reg_r_gs = yes; then
19638 cat >>confdefs.h <<_ACEOF
19639 #define HAVE_STRUCT_REG_R_GS 1
19646 # See if <sys/ptrace.h> provides the PTRACE_GETREGS request.
19647 echo "$as_me:$LINENO: checking for PTRACE_GETREGS" >&5
19648 echo $ECHO_N "checking for PTRACE_GETREGS... $ECHO_C" >&6
19649 if test "${gdb_cv_have_ptrace_getregs+set}" = set; then
19650 echo $ECHO_N "(cached) $ECHO_C" >&6
19652 cat >conftest.$ac_ext <<_ACEOF
19655 cat confdefs.h >>conftest.$ac_ext
19656 cat >>conftest.$ac_ext <<_ACEOF
19657 /* end confdefs.h. */
19658 #include <sys/ptrace.h>
19667 rm -f conftest.$ac_objext
19668 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
19669 (eval $ac_compile) 2>conftest.er1
19671 grep -v '^ *+' conftest.er1 >conftest.err
19673 cat conftest.err >&5
19674 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19675 (exit $ac_status); } &&
19676 { ac_try='test -z "$ac_c_werror_flag"
19677 || test ! -s conftest.err'
19678 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19679 (eval $ac_try) 2>&5
19681 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19682 (exit $ac_status); }; } &&
19683 { ac_try='test -s conftest.$ac_objext'
19684 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19685 (eval $ac_try) 2>&5
19687 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19688 (exit $ac_status); }; }; then
19689 gdb_cv_have_ptrace_getregs=yes
19691 echo "$as_me: failed program was:" >&5
19692 sed 's/^/| /' conftest.$ac_ext >&5
19694 gdb_cv_have_ptrace_getregs=no
19696 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
19699 echo "$as_me:$LINENO: result: $gdb_cv_have_ptrace_getregs" >&5
19700 echo "${ECHO_T}$gdb_cv_have_ptrace_getregs" >&6
19701 if test $gdb_cv_have_ptrace_getregs = yes; then
19703 cat >>confdefs.h <<\_ACEOF
19704 #define HAVE_PTRACE_GETREGS 1
19709 # See if <sys/ptrace.h> provides the PTRACE_GETFPXREGS request.
19710 echo "$as_me:$LINENO: checking for PTRACE_GETFPXREGS" >&5
19711 echo $ECHO_N "checking for PTRACE_GETFPXREGS... $ECHO_C" >&6
19712 if test "${gdb_cv_have_ptrace_getfpxregs+set}" = set; then
19713 echo $ECHO_N "(cached) $ECHO_C" >&6
19715 cat >conftest.$ac_ext <<_ACEOF
19718 cat confdefs.h >>conftest.$ac_ext
19719 cat >>conftest.$ac_ext <<_ACEOF
19720 /* end confdefs.h. */
19721 #include <sys/ptrace.h>
19730 rm -f conftest.$ac_objext
19731 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
19732 (eval $ac_compile) 2>conftest.er1
19734 grep -v '^ *+' conftest.er1 >conftest.err
19736 cat conftest.err >&5
19737 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19738 (exit $ac_status); } &&
19739 { ac_try='test -z "$ac_c_werror_flag"
19740 || test ! -s conftest.err'
19741 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19742 (eval $ac_try) 2>&5
19744 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19745 (exit $ac_status); }; } &&
19746 { ac_try='test -s conftest.$ac_objext'
19747 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19748 (eval $ac_try) 2>&5
19750 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19751 (exit $ac_status); }; }; then
19752 gdb_cv_have_ptrace_getfpxregs=yes
19754 echo "$as_me: failed program was:" >&5
19755 sed 's/^/| /' conftest.$ac_ext >&5
19757 gdb_cv_have_ptrace_getfpxregs=no
19759 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
19762 echo "$as_me:$LINENO: result: $gdb_cv_have_ptrace_getfpxregs" >&5
19763 echo "${ECHO_T}$gdb_cv_have_ptrace_getfpxregs" >&6
19764 if test $gdb_cv_have_ptrace_getfpxregs = yes; then
19766 cat >>confdefs.h <<\_ACEOF
19767 #define HAVE_PTRACE_GETFPXREGS 1
19772 # See if <sys/ptrace.h> provides the PT_GETDBREGS request.
19773 echo "$as_me:$LINENO: checking for PT_GETDBREGS" >&5
19774 echo $ECHO_N "checking for PT_GETDBREGS... $ECHO_C" >&6
19775 if test "${gdb_cv_have_pt_getdbregs+set}" = set; then
19776 echo $ECHO_N "(cached) $ECHO_C" >&6
19778 cat >conftest.$ac_ext <<_ACEOF
19781 cat confdefs.h >>conftest.$ac_ext
19782 cat >>conftest.$ac_ext <<_ACEOF
19783 /* end confdefs.h. */
19784 #include <sys/types.h>
19785 #include <sys/ptrace.h>
19794 rm -f conftest.$ac_objext
19795 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
19796 (eval $ac_compile) 2>conftest.er1
19798 grep -v '^ *+' conftest.er1 >conftest.err
19800 cat conftest.err >&5
19801 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19802 (exit $ac_status); } &&
19803 { ac_try='test -z "$ac_c_werror_flag"
19804 || test ! -s conftest.err'
19805 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19806 (eval $ac_try) 2>&5
19808 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19809 (exit $ac_status); }; } &&
19810 { ac_try='test -s conftest.$ac_objext'
19811 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19812 (eval $ac_try) 2>&5
19814 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19815 (exit $ac_status); }; }; then
19816 gdb_cv_have_pt_getdbregs=yes
19818 echo "$as_me: failed program was:" >&5
19819 sed 's/^/| /' conftest.$ac_ext >&5
19821 gdb_cv_have_pt_getdbregs=no
19823 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
19826 echo "$as_me:$LINENO: result: $gdb_cv_have_pt_getdbregs" >&5
19827 echo "${ECHO_T}$gdb_cv_have_pt_getdbregs" >&6
19828 if test $gdb_cv_have_pt_getdbregs = yes; then
19830 cat >>confdefs.h <<\_ACEOF
19831 #define HAVE_PT_GETDBREGS 1
19836 # See if <sys/ptrace.h> provides the PT_GETXMMREGS request.
19837 echo "$as_me:$LINENO: checking for PT_GETXMMREGS" >&5
19838 echo $ECHO_N "checking for PT_GETXMMREGS... $ECHO_C" >&6
19839 if test "${gdb_cv_have_pt_getxmmregs+set}" = set; then
19840 echo $ECHO_N "(cached) $ECHO_C" >&6
19842 cat >conftest.$ac_ext <<_ACEOF
19845 cat confdefs.h >>conftest.$ac_ext
19846 cat >>conftest.$ac_ext <<_ACEOF
19847 /* end confdefs.h. */
19848 #include <sys/types.h>
19849 #include <sys/ptrace.h>
19858 rm -f conftest.$ac_objext
19859 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
19860 (eval $ac_compile) 2>conftest.er1
19862 grep -v '^ *+' conftest.er1 >conftest.err
19864 cat conftest.err >&5
19865 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19866 (exit $ac_status); } &&
19867 { ac_try='test -z "$ac_c_werror_flag"
19868 || test ! -s conftest.err'
19869 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19870 (eval $ac_try) 2>&5
19872 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19873 (exit $ac_status); }; } &&
19874 { ac_try='test -s conftest.$ac_objext'
19875 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19876 (eval $ac_try) 2>&5
19878 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19879 (exit $ac_status); }; }; then
19880 gdb_cv_have_pt_getxmmregs=yes
19882 echo "$as_me: failed program was:" >&5
19883 sed 's/^/| /' conftest.$ac_ext >&5
19885 gdb_cv_have_pt_getxmmregs=no
19887 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
19890 echo "$as_me:$LINENO: result: $gdb_cv_have_pt_getxmmregs" >&5
19891 echo "${ECHO_T}$gdb_cv_have_pt_getxmmregs" >&6
19892 if test $gdb_cv_have_pt_getxmmregs = yes; then
19894 cat >>confdefs.h <<\_ACEOF
19895 #define HAVE_PT_GETXMMREGS 1
19900 # Detect which type of /proc is in use, such as for Unixware or Solaris.
19902 if test "${target}" = "${host}"; then
19904 *-*-unixware* | *-*-sysv4.2* | *-*-sysv5* | *-*-interix* )
19906 cat >>confdefs.h <<\_ACEOF
19907 #define NEW_PROC_API 1
19911 *-*-solaris2.[6789] | *-*-solaris2.1[0-9])
19913 cat >>confdefs.h <<\_ACEOF
19914 #define NEW_PROC_API 1
19919 # Work around <sys/proc.h> needing _KMEMUSER problem on IRIX 5.
19921 cat >>confdefs.h <<\_ACEOF
19922 #define _KMEMUSER 1
19929 if test "$ac_cv_header_sys_procfs_h" = yes; then
19930 echo "$as_me:$LINENO: checking for pstatus_t in sys/procfs.h" >&5
19931 echo $ECHO_N "checking for pstatus_t in sys/procfs.h... $ECHO_C" >&6
19932 if test "${bfd_cv_have_sys_procfs_type_pstatus_t+set}" = set; then
19933 echo $ECHO_N "(cached) $ECHO_C" >&6
19935 cat >conftest.$ac_ext <<_ACEOF
19938 cat confdefs.h >>conftest.$ac_ext
19939 cat >>conftest.$ac_ext <<_ACEOF
19940 /* end confdefs.h. */
19943 #include <sys/procfs.h>
19952 rm -f conftest.$ac_objext
19953 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
19954 (eval $ac_compile) 2>conftest.er1
19956 grep -v '^ *+' conftest.er1 >conftest.err
19958 cat conftest.err >&5
19959 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19960 (exit $ac_status); } &&
19961 { ac_try='test -z "$ac_c_werror_flag"
19962 || test ! -s conftest.err'
19963 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19964 (eval $ac_try) 2>&5
19966 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19967 (exit $ac_status); }; } &&
19968 { ac_try='test -s conftest.$ac_objext'
19969 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19970 (eval $ac_try) 2>&5
19972 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19973 (exit $ac_status); }; }; then
19974 bfd_cv_have_sys_procfs_type_pstatus_t=yes
19976 echo "$as_me: failed program was:" >&5
19977 sed 's/^/| /' conftest.$ac_ext >&5
19979 bfd_cv_have_sys_procfs_type_pstatus_t=no
19982 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
19985 if test $bfd_cv_have_sys_procfs_type_pstatus_t = yes; then
19987 cat >>confdefs.h <<\_ACEOF
19988 #define HAVE_PSTATUS_T 1
19992 echo "$as_me:$LINENO: result: $bfd_cv_have_sys_procfs_type_pstatus_t" >&5
19993 echo "${ECHO_T}$bfd_cv_have_sys_procfs_type_pstatus_t" >&6
19995 echo "$as_me:$LINENO: checking for prrun_t in sys/procfs.h" >&5
19996 echo $ECHO_N "checking for prrun_t in sys/procfs.h... $ECHO_C" >&6
19997 if test "${bfd_cv_have_sys_procfs_type_prrun_t+set}" = set; then
19998 echo $ECHO_N "(cached) $ECHO_C" >&6
20000 cat >conftest.$ac_ext <<_ACEOF
20003 cat confdefs.h >>conftest.$ac_ext
20004 cat >>conftest.$ac_ext <<_ACEOF
20005 /* end confdefs.h. */
20008 #include <sys/procfs.h>
20017 rm -f conftest.$ac_objext
20018 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
20019 (eval $ac_compile) 2>conftest.er1
20021 grep -v '^ *+' conftest.er1 >conftest.err
20023 cat conftest.err >&5
20024 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20025 (exit $ac_status); } &&
20026 { ac_try='test -z "$ac_c_werror_flag"
20027 || test ! -s conftest.err'
20028 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20029 (eval $ac_try) 2>&5
20031 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20032 (exit $ac_status); }; } &&
20033 { ac_try='test -s conftest.$ac_objext'
20034 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20035 (eval $ac_try) 2>&5
20037 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20038 (exit $ac_status); }; }; then
20039 bfd_cv_have_sys_procfs_type_prrun_t=yes
20041 echo "$as_me: failed program was:" >&5
20042 sed 's/^/| /' conftest.$ac_ext >&5
20044 bfd_cv_have_sys_procfs_type_prrun_t=no
20047 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
20050 if test $bfd_cv_have_sys_procfs_type_prrun_t = yes; then
20052 cat >>confdefs.h <<\_ACEOF
20053 #define HAVE_PRRUN_T 1
20057 echo "$as_me:$LINENO: result: $bfd_cv_have_sys_procfs_type_prrun_t" >&5
20058 echo "${ECHO_T}$bfd_cv_have_sys_procfs_type_prrun_t" >&6
20060 echo "$as_me:$LINENO: checking for gregset_t in sys/procfs.h" >&5
20061 echo $ECHO_N "checking for gregset_t in sys/procfs.h... $ECHO_C" >&6
20062 if test "${bfd_cv_have_sys_procfs_type_gregset_t+set}" = set; then
20063 echo $ECHO_N "(cached) $ECHO_C" >&6
20065 cat >conftest.$ac_ext <<_ACEOF
20068 cat confdefs.h >>conftest.$ac_ext
20069 cat >>conftest.$ac_ext <<_ACEOF
20070 /* end confdefs.h. */
20073 #include <sys/procfs.h>
20082 rm -f conftest.$ac_objext
20083 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
20084 (eval $ac_compile) 2>conftest.er1
20086 grep -v '^ *+' conftest.er1 >conftest.err
20088 cat conftest.err >&5
20089 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20090 (exit $ac_status); } &&
20091 { ac_try='test -z "$ac_c_werror_flag"
20092 || test ! -s conftest.err'
20093 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20094 (eval $ac_try) 2>&5
20096 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20097 (exit $ac_status); }; } &&
20098 { ac_try='test -s conftest.$ac_objext'
20099 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20100 (eval $ac_try) 2>&5
20102 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20103 (exit $ac_status); }; }; then
20104 bfd_cv_have_sys_procfs_type_gregset_t=yes
20106 echo "$as_me: failed program was:" >&5
20107 sed 's/^/| /' conftest.$ac_ext >&5
20109 bfd_cv_have_sys_procfs_type_gregset_t=no
20112 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
20115 if test $bfd_cv_have_sys_procfs_type_gregset_t = yes; then
20117 cat >>confdefs.h <<\_ACEOF
20118 #define HAVE_GREGSET_T 1
20122 echo "$as_me:$LINENO: result: $bfd_cv_have_sys_procfs_type_gregset_t" >&5
20123 echo "${ECHO_T}$bfd_cv_have_sys_procfs_type_gregset_t" >&6
20125 echo "$as_me:$LINENO: checking for fpregset_t in sys/procfs.h" >&5
20126 echo $ECHO_N "checking for fpregset_t in sys/procfs.h... $ECHO_C" >&6
20127 if test "${bfd_cv_have_sys_procfs_type_fpregset_t+set}" = set; then
20128 echo $ECHO_N "(cached) $ECHO_C" >&6
20130 cat >conftest.$ac_ext <<_ACEOF
20133 cat confdefs.h >>conftest.$ac_ext
20134 cat >>conftest.$ac_ext <<_ACEOF
20135 /* end confdefs.h. */
20138 #include <sys/procfs.h>
20147 rm -f conftest.$ac_objext
20148 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
20149 (eval $ac_compile) 2>conftest.er1
20151 grep -v '^ *+' conftest.er1 >conftest.err
20153 cat conftest.err >&5
20154 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20155 (exit $ac_status); } &&
20156 { ac_try='test -z "$ac_c_werror_flag"
20157 || test ! -s conftest.err'
20158 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20159 (eval $ac_try) 2>&5
20161 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20162 (exit $ac_status); }; } &&
20163 { ac_try='test -s conftest.$ac_objext'
20164 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20165 (eval $ac_try) 2>&5
20167 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20168 (exit $ac_status); }; }; then
20169 bfd_cv_have_sys_procfs_type_fpregset_t=yes
20171 echo "$as_me: failed program was:" >&5
20172 sed 's/^/| /' conftest.$ac_ext >&5
20174 bfd_cv_have_sys_procfs_type_fpregset_t=no
20177 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
20180 if test $bfd_cv_have_sys_procfs_type_fpregset_t = yes; then
20182 cat >>confdefs.h <<\_ACEOF
20183 #define HAVE_FPREGSET_T 1
20187 echo "$as_me:$LINENO: result: $bfd_cv_have_sys_procfs_type_fpregset_t" >&5
20188 echo "${ECHO_T}$bfd_cv_have_sys_procfs_type_fpregset_t" >&6
20190 echo "$as_me:$LINENO: checking for prgregset_t in sys/procfs.h" >&5
20191 echo $ECHO_N "checking for prgregset_t in sys/procfs.h... $ECHO_C" >&6
20192 if test "${bfd_cv_have_sys_procfs_type_prgregset_t+set}" = set; then
20193 echo $ECHO_N "(cached) $ECHO_C" >&6
20195 cat >conftest.$ac_ext <<_ACEOF
20198 cat confdefs.h >>conftest.$ac_ext
20199 cat >>conftest.$ac_ext <<_ACEOF
20200 /* end confdefs.h. */
20203 #include <sys/procfs.h>
20212 rm -f conftest.$ac_objext
20213 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
20214 (eval $ac_compile) 2>conftest.er1
20216 grep -v '^ *+' conftest.er1 >conftest.err
20218 cat conftest.err >&5
20219 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20220 (exit $ac_status); } &&
20221 { ac_try='test -z "$ac_c_werror_flag"
20222 || test ! -s conftest.err'
20223 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20224 (eval $ac_try) 2>&5
20226 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20227 (exit $ac_status); }; } &&
20228 { ac_try='test -s conftest.$ac_objext'
20229 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20230 (eval $ac_try) 2>&5
20232 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20233 (exit $ac_status); }; }; then
20234 bfd_cv_have_sys_procfs_type_prgregset_t=yes
20236 echo "$as_me: failed program was:" >&5
20237 sed 's/^/| /' conftest.$ac_ext >&5
20239 bfd_cv_have_sys_procfs_type_prgregset_t=no
20242 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
20245 if test $bfd_cv_have_sys_procfs_type_prgregset_t = yes; then
20247 cat >>confdefs.h <<\_ACEOF
20248 #define HAVE_PRGREGSET_T 1
20252 echo "$as_me:$LINENO: result: $bfd_cv_have_sys_procfs_type_prgregset_t" >&5
20253 echo "${ECHO_T}$bfd_cv_have_sys_procfs_type_prgregset_t" >&6
20255 echo "$as_me:$LINENO: checking for prfpregset_t in sys/procfs.h" >&5
20256 echo $ECHO_N "checking for prfpregset_t in sys/procfs.h... $ECHO_C" >&6
20257 if test "${bfd_cv_have_sys_procfs_type_prfpregset_t+set}" = set; then
20258 echo $ECHO_N "(cached) $ECHO_C" >&6
20260 cat >conftest.$ac_ext <<_ACEOF
20263 cat confdefs.h >>conftest.$ac_ext
20264 cat >>conftest.$ac_ext <<_ACEOF
20265 /* end confdefs.h. */
20268 #include <sys/procfs.h>
20277 rm -f conftest.$ac_objext
20278 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
20279 (eval $ac_compile) 2>conftest.er1
20281 grep -v '^ *+' conftest.er1 >conftest.err
20283 cat conftest.err >&5
20284 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20285 (exit $ac_status); } &&
20286 { ac_try='test -z "$ac_c_werror_flag"
20287 || test ! -s conftest.err'
20288 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20289 (eval $ac_try) 2>&5
20291 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20292 (exit $ac_status); }; } &&
20293 { ac_try='test -s conftest.$ac_objext'
20294 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20295 (eval $ac_try) 2>&5
20297 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20298 (exit $ac_status); }; }; then
20299 bfd_cv_have_sys_procfs_type_prfpregset_t=yes
20301 echo "$as_me: failed program was:" >&5
20302 sed 's/^/| /' conftest.$ac_ext >&5
20304 bfd_cv_have_sys_procfs_type_prfpregset_t=no
20307 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
20310 if test $bfd_cv_have_sys_procfs_type_prfpregset_t = yes; then
20312 cat >>confdefs.h <<\_ACEOF
20313 #define HAVE_PRFPREGSET_T 1
20317 echo "$as_me:$LINENO: result: $bfd_cv_have_sys_procfs_type_prfpregset_t" >&5
20318 echo "${ECHO_T}$bfd_cv_have_sys_procfs_type_prfpregset_t" >&6
20320 echo "$as_me:$LINENO: checking for prgregset32_t in sys/procfs.h" >&5
20321 echo $ECHO_N "checking for prgregset32_t in sys/procfs.h... $ECHO_C" >&6
20322 if test "${bfd_cv_have_sys_procfs_type_prgregset32_t+set}" = set; then
20323 echo $ECHO_N "(cached) $ECHO_C" >&6
20325 cat >conftest.$ac_ext <<_ACEOF
20328 cat confdefs.h >>conftest.$ac_ext
20329 cat >>conftest.$ac_ext <<_ACEOF
20330 /* end confdefs.h. */
20333 #include <sys/procfs.h>
20342 rm -f conftest.$ac_objext
20343 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
20344 (eval $ac_compile) 2>conftest.er1
20346 grep -v '^ *+' conftest.er1 >conftest.err
20348 cat conftest.err >&5
20349 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20350 (exit $ac_status); } &&
20351 { ac_try='test -z "$ac_c_werror_flag"
20352 || test ! -s conftest.err'
20353 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20354 (eval $ac_try) 2>&5
20356 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20357 (exit $ac_status); }; } &&
20358 { ac_try='test -s conftest.$ac_objext'
20359 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20360 (eval $ac_try) 2>&5
20362 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20363 (exit $ac_status); }; }; then
20364 bfd_cv_have_sys_procfs_type_prgregset32_t=yes
20366 echo "$as_me: failed program was:" >&5
20367 sed 's/^/| /' conftest.$ac_ext >&5
20369 bfd_cv_have_sys_procfs_type_prgregset32_t=no
20372 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
20375 if test $bfd_cv_have_sys_procfs_type_prgregset32_t = yes; then
20377 cat >>confdefs.h <<\_ACEOF
20378 #define HAVE_PRGREGSET32_T 1
20382 echo "$as_me:$LINENO: result: $bfd_cv_have_sys_procfs_type_prgregset32_t" >&5
20383 echo "${ECHO_T}$bfd_cv_have_sys_procfs_type_prgregset32_t" >&6
20385 echo "$as_me:$LINENO: checking for prfpregset32_t in sys/procfs.h" >&5
20386 echo $ECHO_N "checking for prfpregset32_t in sys/procfs.h... $ECHO_C" >&6
20387 if test "${bfd_cv_have_sys_procfs_type_prfpregset32_t+set}" = set; then
20388 echo $ECHO_N "(cached) $ECHO_C" >&6
20390 cat >conftest.$ac_ext <<_ACEOF
20393 cat confdefs.h >>conftest.$ac_ext
20394 cat >>conftest.$ac_ext <<_ACEOF
20395 /* end confdefs.h. */
20398 #include <sys/procfs.h>
20402 prfpregset32_t avar
20407 rm -f conftest.$ac_objext
20408 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
20409 (eval $ac_compile) 2>conftest.er1
20411 grep -v '^ *+' conftest.er1 >conftest.err
20413 cat conftest.err >&5
20414 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20415 (exit $ac_status); } &&
20416 { ac_try='test -z "$ac_c_werror_flag"
20417 || test ! -s conftest.err'
20418 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20419 (eval $ac_try) 2>&5
20421 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20422 (exit $ac_status); }; } &&
20423 { ac_try='test -s conftest.$ac_objext'
20424 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20425 (eval $ac_try) 2>&5
20427 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20428 (exit $ac_status); }; }; then
20429 bfd_cv_have_sys_procfs_type_prfpregset32_t=yes
20431 echo "$as_me: failed program was:" >&5
20432 sed 's/^/| /' conftest.$ac_ext >&5
20434 bfd_cv_have_sys_procfs_type_prfpregset32_t=no
20437 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
20440 if test $bfd_cv_have_sys_procfs_type_prfpregset32_t = yes; then
20442 cat >>confdefs.h <<\_ACEOF
20443 #define HAVE_PRFPREGSET32_T 1
20447 echo "$as_me:$LINENO: result: $bfd_cv_have_sys_procfs_type_prfpregset32_t" >&5
20448 echo "${ECHO_T}$bfd_cv_have_sys_procfs_type_prfpregset32_t" >&6
20450 echo "$as_me:$LINENO: checking for lwpid_t in sys/procfs.h" >&5
20451 echo $ECHO_N "checking for lwpid_t in sys/procfs.h... $ECHO_C" >&6
20452 if test "${bfd_cv_have_sys_procfs_type_lwpid_t+set}" = set; then
20453 echo $ECHO_N "(cached) $ECHO_C" >&6
20455 cat >conftest.$ac_ext <<_ACEOF
20458 cat confdefs.h >>conftest.$ac_ext
20459 cat >>conftest.$ac_ext <<_ACEOF
20460 /* end confdefs.h. */
20463 #include <sys/procfs.h>
20472 rm -f conftest.$ac_objext
20473 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
20474 (eval $ac_compile) 2>conftest.er1
20476 grep -v '^ *+' conftest.er1 >conftest.err
20478 cat conftest.err >&5
20479 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20480 (exit $ac_status); } &&
20481 { ac_try='test -z "$ac_c_werror_flag"
20482 || test ! -s conftest.err'
20483 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20484 (eval $ac_try) 2>&5
20486 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20487 (exit $ac_status); }; } &&
20488 { ac_try='test -s conftest.$ac_objext'
20489 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20490 (eval $ac_try) 2>&5
20492 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20493 (exit $ac_status); }; }; then
20494 bfd_cv_have_sys_procfs_type_lwpid_t=yes
20496 echo "$as_me: failed program was:" >&5
20497 sed 's/^/| /' conftest.$ac_ext >&5
20499 bfd_cv_have_sys_procfs_type_lwpid_t=no
20502 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
20505 if test $bfd_cv_have_sys_procfs_type_lwpid_t = yes; then
20507 cat >>confdefs.h <<\_ACEOF
20508 #define HAVE_LWPID_T 1
20512 echo "$as_me:$LINENO: result: $bfd_cv_have_sys_procfs_type_lwpid_t" >&5
20513 echo "${ECHO_T}$bfd_cv_have_sys_procfs_type_lwpid_t" >&6
20515 echo "$as_me:$LINENO: checking for psaddr_t in sys/procfs.h" >&5
20516 echo $ECHO_N "checking for psaddr_t in sys/procfs.h... $ECHO_C" >&6
20517 if test "${bfd_cv_have_sys_procfs_type_psaddr_t+set}" = set; then
20518 echo $ECHO_N "(cached) $ECHO_C" >&6
20520 cat >conftest.$ac_ext <<_ACEOF
20523 cat confdefs.h >>conftest.$ac_ext
20524 cat >>conftest.$ac_ext <<_ACEOF
20525 /* end confdefs.h. */
20528 #include <sys/procfs.h>
20537 rm -f conftest.$ac_objext
20538 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
20539 (eval $ac_compile) 2>conftest.er1
20541 grep -v '^ *+' conftest.er1 >conftest.err
20543 cat conftest.err >&5
20544 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20545 (exit $ac_status); } &&
20546 { ac_try='test -z "$ac_c_werror_flag"
20547 || test ! -s conftest.err'
20548 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20549 (eval $ac_try) 2>&5
20551 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20552 (exit $ac_status); }; } &&
20553 { ac_try='test -s conftest.$ac_objext'
20554 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20555 (eval $ac_try) 2>&5
20557 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20558 (exit $ac_status); }; }; then
20559 bfd_cv_have_sys_procfs_type_psaddr_t=yes
20561 echo "$as_me: failed program was:" >&5
20562 sed 's/^/| /' conftest.$ac_ext >&5
20564 bfd_cv_have_sys_procfs_type_psaddr_t=no
20567 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
20570 if test $bfd_cv_have_sys_procfs_type_psaddr_t = yes; then
20572 cat >>confdefs.h <<\_ACEOF
20573 #define HAVE_PSADDR_T 1
20577 echo "$as_me:$LINENO: result: $bfd_cv_have_sys_procfs_type_psaddr_t" >&5
20578 echo "${ECHO_T}$bfd_cv_have_sys_procfs_type_psaddr_t" >&6
20580 echo "$as_me:$LINENO: checking for prsysent_t in sys/procfs.h" >&5
20581 echo $ECHO_N "checking for prsysent_t in sys/procfs.h... $ECHO_C" >&6
20582 if test "${bfd_cv_have_sys_procfs_type_prsysent_t+set}" = set; then
20583 echo $ECHO_N "(cached) $ECHO_C" >&6
20585 cat >conftest.$ac_ext <<_ACEOF
20588 cat confdefs.h >>conftest.$ac_ext
20589 cat >>conftest.$ac_ext <<_ACEOF
20590 /* end confdefs.h. */
20593 #include <sys/procfs.h>
20602 rm -f conftest.$ac_objext
20603 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
20604 (eval $ac_compile) 2>conftest.er1
20606 grep -v '^ *+' conftest.er1 >conftest.err
20608 cat conftest.err >&5
20609 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20610 (exit $ac_status); } &&
20611 { ac_try='test -z "$ac_c_werror_flag"
20612 || test ! -s conftest.err'
20613 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20614 (eval $ac_try) 2>&5
20616 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20617 (exit $ac_status); }; } &&
20618 { ac_try='test -s conftest.$ac_objext'
20619 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20620 (eval $ac_try) 2>&5
20622 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20623 (exit $ac_status); }; }; then
20624 bfd_cv_have_sys_procfs_type_prsysent_t=yes
20626 echo "$as_me: failed program was:" >&5
20627 sed 's/^/| /' conftest.$ac_ext >&5
20629 bfd_cv_have_sys_procfs_type_prsysent_t=no
20632 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
20635 if test $bfd_cv_have_sys_procfs_type_prsysent_t = yes; then
20637 cat >>confdefs.h <<\_ACEOF
20638 #define HAVE_PRSYSENT_T 1
20642 echo "$as_me:$LINENO: result: $bfd_cv_have_sys_procfs_type_prsysent_t" >&5
20643 echo "${ECHO_T}$bfd_cv_have_sys_procfs_type_prsysent_t" >&6
20645 echo "$as_me:$LINENO: checking for pr_sigset_t in sys/procfs.h" >&5
20646 echo $ECHO_N "checking for pr_sigset_t in sys/procfs.h... $ECHO_C" >&6
20647 if test "${bfd_cv_have_sys_procfs_type_pr_sigset_t+set}" = set; then
20648 echo $ECHO_N "(cached) $ECHO_C" >&6
20650 cat >conftest.$ac_ext <<_ACEOF
20653 cat confdefs.h >>conftest.$ac_ext
20654 cat >>conftest.$ac_ext <<_ACEOF
20655 /* end confdefs.h. */
20658 #include <sys/procfs.h>
20667 rm -f conftest.$ac_objext
20668 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
20669 (eval $ac_compile) 2>conftest.er1
20671 grep -v '^ *+' conftest.er1 >conftest.err
20673 cat conftest.err >&5
20674 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20675 (exit $ac_status); } &&
20676 { ac_try='test -z "$ac_c_werror_flag"
20677 || test ! -s conftest.err'
20678 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20679 (eval $ac_try) 2>&5
20681 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20682 (exit $ac_status); }; } &&
20683 { ac_try='test -s conftest.$ac_objext'
20684 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20685 (eval $ac_try) 2>&5
20687 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20688 (exit $ac_status); }; }; then
20689 bfd_cv_have_sys_procfs_type_pr_sigset_t=yes
20691 echo "$as_me: failed program was:" >&5
20692 sed 's/^/| /' conftest.$ac_ext >&5
20694 bfd_cv_have_sys_procfs_type_pr_sigset_t=no
20697 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
20700 if test $bfd_cv_have_sys_procfs_type_pr_sigset_t = yes; then
20702 cat >>confdefs.h <<\_ACEOF
20703 #define HAVE_PR_SIGSET_T 1
20707 echo "$as_me:$LINENO: result: $bfd_cv_have_sys_procfs_type_pr_sigset_t" >&5
20708 echo "${ECHO_T}$bfd_cv_have_sys_procfs_type_pr_sigset_t" >&6
20710 echo "$as_me:$LINENO: checking for pr_sigaction64_t in sys/procfs.h" >&5
20711 echo $ECHO_N "checking for pr_sigaction64_t in sys/procfs.h... $ECHO_C" >&6
20712 if test "${bfd_cv_have_sys_procfs_type_pr_sigaction64_t+set}" = set; then
20713 echo $ECHO_N "(cached) $ECHO_C" >&6
20715 cat >conftest.$ac_ext <<_ACEOF
20718 cat confdefs.h >>conftest.$ac_ext
20719 cat >>conftest.$ac_ext <<_ACEOF
20720 /* end confdefs.h. */
20723 #include <sys/procfs.h>
20727 pr_sigaction64_t avar
20732 rm -f conftest.$ac_objext
20733 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
20734 (eval $ac_compile) 2>conftest.er1
20736 grep -v '^ *+' conftest.er1 >conftest.err
20738 cat conftest.err >&5
20739 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20740 (exit $ac_status); } &&
20741 { ac_try='test -z "$ac_c_werror_flag"
20742 || test ! -s conftest.err'
20743 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20744 (eval $ac_try) 2>&5
20746 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20747 (exit $ac_status); }; } &&
20748 { ac_try='test -s conftest.$ac_objext'
20749 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20750 (eval $ac_try) 2>&5
20752 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20753 (exit $ac_status); }; }; then
20754 bfd_cv_have_sys_procfs_type_pr_sigaction64_t=yes
20756 echo "$as_me: failed program was:" >&5
20757 sed 's/^/| /' conftest.$ac_ext >&5
20759 bfd_cv_have_sys_procfs_type_pr_sigaction64_t=no
20762 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
20765 if test $bfd_cv_have_sys_procfs_type_pr_sigaction64_t = yes; then
20767 cat >>confdefs.h <<\_ACEOF
20768 #define HAVE_PR_SIGACTION64_T 1
20772 echo "$as_me:$LINENO: result: $bfd_cv_have_sys_procfs_type_pr_sigaction64_t" >&5
20773 echo "${ECHO_T}$bfd_cv_have_sys_procfs_type_pr_sigaction64_t" >&6
20775 echo "$as_me:$LINENO: checking for pr_siginfo64_t in sys/procfs.h" >&5
20776 echo $ECHO_N "checking for pr_siginfo64_t in sys/procfs.h... $ECHO_C" >&6
20777 if test "${bfd_cv_have_sys_procfs_type_pr_siginfo64_t+set}" = set; then
20778 echo $ECHO_N "(cached) $ECHO_C" >&6
20780 cat >conftest.$ac_ext <<_ACEOF
20783 cat confdefs.h >>conftest.$ac_ext
20784 cat >>conftest.$ac_ext <<_ACEOF
20785 /* end confdefs.h. */
20788 #include <sys/procfs.h>
20792 pr_siginfo64_t avar
20797 rm -f conftest.$ac_objext
20798 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
20799 (eval $ac_compile) 2>conftest.er1
20801 grep -v '^ *+' conftest.er1 >conftest.err
20803 cat conftest.err >&5
20804 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20805 (exit $ac_status); } &&
20806 { ac_try='test -z "$ac_c_werror_flag"
20807 || test ! -s conftest.err'
20808 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20809 (eval $ac_try) 2>&5
20811 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20812 (exit $ac_status); }; } &&
20813 { ac_try='test -s conftest.$ac_objext'
20814 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20815 (eval $ac_try) 2>&5
20817 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20818 (exit $ac_status); }; }; then
20819 bfd_cv_have_sys_procfs_type_pr_siginfo64_t=yes
20821 echo "$as_me: failed program was:" >&5
20822 sed 's/^/| /' conftest.$ac_ext >&5
20824 bfd_cv_have_sys_procfs_type_pr_siginfo64_t=no
20827 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
20830 if test $bfd_cv_have_sys_procfs_type_pr_siginfo64_t = yes; then
20832 cat >>confdefs.h <<\_ACEOF
20833 #define HAVE_PR_SIGINFO64_T 1
20837 echo "$as_me:$LINENO: result: $bfd_cv_have_sys_procfs_type_pr_siginfo64_t" >&5
20838 echo "${ECHO_T}$bfd_cv_have_sys_procfs_type_pr_siginfo64_t" >&6
20844 if test $bfd_cv_have_sys_procfs_type_prfpregset_t = yes; then
20845 echo "$as_me:$LINENO: checking whether prfpregset_t type is broken" >&5
20846 echo $ECHO_N "checking whether prfpregset_t type is broken... $ECHO_C" >&6
20847 if test "${gdb_cv_prfpregset_t_broken+set}" = set; then
20848 echo $ECHO_N "(cached) $ECHO_C" >&6
20850 if test "$cross_compiling" = yes; then
20851 gdb_cv_prfpregset_t_broken=yes
20853 cat >conftest.$ac_ext <<_ACEOF
20856 cat confdefs.h >>conftest.$ac_ext
20857 cat >>conftest.$ac_ext <<_ACEOF
20858 /* end confdefs.h. */
20859 #include <sys/procfs.h>
20862 if (sizeof (prfpregset_t) == sizeof (void *))
20867 rm -f conftest$ac_exeext
20868 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
20869 (eval $ac_link) 2>&5
20871 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20872 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
20873 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20874 (eval $ac_try) 2>&5
20876 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20877 (exit $ac_status); }; }; then
20878 gdb_cv_prfpregset_t_broken=no
20880 echo "$as_me: program exited with status $ac_status" >&5
20881 echo "$as_me: failed program was:" >&5
20882 sed 's/^/| /' conftest.$ac_ext >&5
20884 ( exit $ac_status )
20885 gdb_cv_prfpregset_t_broken=yes
20887 rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
20891 echo "$as_me:$LINENO: result: $gdb_cv_prfpregset_t_broken" >&5
20892 echo "${ECHO_T}$gdb_cv_prfpregset_t_broken" >&6
20893 if test $gdb_cv_prfpregset_t_broken = yes; then
20895 cat >>confdefs.h <<\_ACEOF
20896 #define PRFPREGSET_T_BROKEN 1
20903 echo "$as_me:$LINENO: checking for PIOCSET ioctl entry in sys/procfs.h" >&5
20904 echo $ECHO_N "checking for PIOCSET ioctl entry in sys/procfs.h... $ECHO_C" >&6
20905 if test "${gdb_cv_have_procfs_piocset+set}" = set; then
20906 echo $ECHO_N "(cached) $ECHO_C" >&6
20908 cat >conftest.$ac_ext <<_ACEOF
20911 cat confdefs.h >>conftest.$ac_ext
20912 cat >>conftest.$ac_ext <<_ACEOF
20913 /* end confdefs.h. */
20914 #include <unistd.h>
20915 #include <sys/types.h>
20916 #include <sys/procfs.h>
20923 dummy = ioctl(0, PIOCSET, &dummy);
20929 rm -f conftest.$ac_objext
20930 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
20931 (eval $ac_compile) 2>conftest.er1
20933 grep -v '^ *+' conftest.er1 >conftest.err
20935 cat conftest.err >&5
20936 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20937 (exit $ac_status); } &&
20938 { ac_try='test -z "$ac_c_werror_flag"
20939 || test ! -s conftest.err'
20940 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20941 (eval $ac_try) 2>&5
20943 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20944 (exit $ac_status); }; } &&
20945 { ac_try='test -s conftest.$ac_objext'
20946 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20947 (eval $ac_try) 2>&5
20949 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20950 (exit $ac_status); }; }; then
20951 gdb_cv_have_procfs_piocset=yes
20953 echo "$as_me: failed program was:" >&5
20954 sed 's/^/| /' conftest.$ac_ext >&5
20956 gdb_cv_have_procfs_piocset=no
20958 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
20961 echo "$as_me:$LINENO: result: $gdb_cv_have_procfs_piocset" >&5
20962 echo "${ECHO_T}$gdb_cv_have_procfs_piocset" >&6
20963 if test $gdb_cv_have_procfs_piocset = yes; then
20965 cat >>confdefs.h <<\_ACEOF
20966 #define HAVE_PROCFS_PIOCSET 1
20972 if test ${host} = ${target} ; then
20974 echo "$as_me:$LINENO: checking for member l_addr in struct link_map" >&5
20975 echo $ECHO_N "checking for member l_addr in struct link_map... $ECHO_C" >&6
20976 if test "${gdb_cv_have_struct_link_map_with_l_members+set}" = set; then
20977 echo $ECHO_N "(cached) $ECHO_C" >&6
20979 cat >conftest.$ac_ext <<_ACEOF
20982 cat confdefs.h >>conftest.$ac_ext
20983 cat >>conftest.$ac_ext <<_ACEOF
20984 /* end confdefs.h. */
20989 struct link_map lm; (void) lm.l_addr;
20994 rm -f conftest.$ac_objext
20995 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
20996 (eval $ac_compile) 2>conftest.er1
20998 grep -v '^ *+' conftest.er1 >conftest.err
21000 cat conftest.err >&5
21001 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21002 (exit $ac_status); } &&
21003 { ac_try='test -z "$ac_c_werror_flag"
21004 || test ! -s conftest.err'
21005 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21006 (eval $ac_try) 2>&5
21008 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21009 (exit $ac_status); }; } &&
21010 { ac_try='test -s conftest.$ac_objext'
21011 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21012 (eval $ac_try) 2>&5
21014 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21015 (exit $ac_status); }; }; then
21016 gdb_cv_have_struct_link_map_with_l_members=yes
21018 echo "$as_me: failed program was:" >&5
21019 sed 's/^/| /' conftest.$ac_ext >&5
21021 gdb_cv_have_struct_link_map_with_l_members=no
21023 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
21026 echo "$as_me:$LINENO: result: $gdb_cv_have_struct_link_map_with_l_members" >&5
21027 echo "${ECHO_T}$gdb_cv_have_struct_link_map_with_l_members" >&6
21028 if test $gdb_cv_have_struct_link_map_with_l_members = yes; then
21030 cat >>confdefs.h <<\_ACEOF
21031 #define HAVE_STRUCT_LINK_MAP_WITH_L_MEMBERS 1
21037 echo "$as_me:$LINENO: checking for member lm_addr in struct link_map" >&5
21038 echo $ECHO_N "checking for member lm_addr in struct link_map... $ECHO_C" >&6
21039 if test "${gdb_cv_have_struct_link_map_with_lm_members+set}" = set; then
21040 echo $ECHO_N "(cached) $ECHO_C" >&6
21042 cat >conftest.$ac_ext <<_ACEOF
21045 cat confdefs.h >>conftest.$ac_ext
21046 cat >>conftest.$ac_ext <<_ACEOF
21047 /* end confdefs.h. */
21048 #include <sys/types.h>
21053 struct link_map lm; (void) lm.lm_addr;
21058 rm -f conftest.$ac_objext
21059 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
21060 (eval $ac_compile) 2>conftest.er1
21062 grep -v '^ *+' conftest.er1 >conftest.err
21064 cat conftest.err >&5
21065 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21066 (exit $ac_status); } &&
21067 { ac_try='test -z "$ac_c_werror_flag"
21068 || test ! -s conftest.err'
21069 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21070 (eval $ac_try) 2>&5
21072 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21073 (exit $ac_status); }; } &&
21074 { ac_try='test -s conftest.$ac_objext'
21075 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21076 (eval $ac_try) 2>&5
21078 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21079 (exit $ac_status); }; }; then
21080 gdb_cv_have_struct_link_map_with_lm_members=yes
21082 echo "$as_me: failed program was:" >&5
21083 sed 's/^/| /' conftest.$ac_ext >&5
21085 gdb_cv_have_struct_link_map_with_lm_members=no
21087 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
21090 echo "$as_me:$LINENO: result: $gdb_cv_have_struct_link_map_with_lm_members" >&5
21091 echo "${ECHO_T}$gdb_cv_have_struct_link_map_with_lm_members" >&6
21092 if test $gdb_cv_have_struct_link_map_with_lm_members = yes; then
21094 cat >>confdefs.h <<\_ACEOF
21095 #define HAVE_STRUCT_LINK_MAP_WITH_LM_MEMBERS 1
21101 echo "$as_me:$LINENO: checking for member som_addr in struct so_map" >&5
21102 echo $ECHO_N "checking for member som_addr in struct so_map... $ECHO_C" >&6
21103 if test "${gdb_cv_have_struct_so_map_with_som_members+set}" = set; then
21104 echo $ECHO_N "(cached) $ECHO_C" >&6
21106 cat >conftest.$ac_ext <<_ACEOF
21109 cat confdefs.h >>conftest.$ac_ext
21110 cat >>conftest.$ac_ext <<_ACEOF
21111 /* end confdefs.h. */
21112 #include <sys/types.h>
21113 #ifdef HAVE_NLIST_H
21120 struct so_map lm; (void) lm.som_addr;
21125 rm -f conftest.$ac_objext
21126 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
21127 (eval $ac_compile) 2>conftest.er1
21129 grep -v '^ *+' conftest.er1 >conftest.err
21131 cat conftest.err >&5
21132 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21133 (exit $ac_status); } &&
21134 { ac_try='test -z "$ac_c_werror_flag"
21135 || test ! -s conftest.err'
21136 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21137 (eval $ac_try) 2>&5
21139 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21140 (exit $ac_status); }; } &&
21141 { ac_try='test -s conftest.$ac_objext'
21142 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21143 (eval $ac_try) 2>&5
21145 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21146 (exit $ac_status); }; }; then
21147 gdb_cv_have_struct_so_map_with_som_members=yes
21149 echo "$as_me: failed program was:" >&5
21150 sed 's/^/| /' conftest.$ac_ext >&5
21152 gdb_cv_have_struct_so_map_with_som_members=no
21154 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
21157 echo "$as_me:$LINENO: result: $gdb_cv_have_struct_so_map_with_som_members" >&5
21158 echo "${ECHO_T}$gdb_cv_have_struct_so_map_with_som_members" >&6
21159 if test $gdb_cv_have_struct_so_map_with_som_members = yes; then
21161 cat >>confdefs.h <<\_ACEOF
21162 #define HAVE_STRUCT_SO_MAP_WITH_SOM_MEMBERS 1
21168 echo "$as_me:$LINENO: checking for struct link_map32 in sys/link.h" >&5
21169 echo $ECHO_N "checking for struct link_map32 in sys/link.h... $ECHO_C" >&6
21170 if test "${gdb_cv_have_struct_link_map32+set}" = set; then
21171 echo $ECHO_N "(cached) $ECHO_C" >&6
21173 cat >conftest.$ac_ext <<_ACEOF
21176 cat confdefs.h >>conftest.$ac_ext
21177 cat >>conftest.$ac_ext <<_ACEOF
21178 /* end confdefs.h. */
21180 #include <sys/link.h>
21184 struct link_map32 l;
21189 rm -f conftest.$ac_objext
21190 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
21191 (eval $ac_compile) 2>conftest.er1
21193 grep -v '^ *+' conftest.er1 >conftest.err
21195 cat conftest.err >&5
21196 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21197 (exit $ac_status); } &&
21198 { ac_try='test -z "$ac_c_werror_flag"
21199 || test ! -s conftest.err'
21200 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21201 (eval $ac_try) 2>&5
21203 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21204 (exit $ac_status); }; } &&
21205 { ac_try='test -s conftest.$ac_objext'
21206 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21207 (eval $ac_try) 2>&5
21209 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21210 (exit $ac_status); }; }; then
21211 gdb_cv_have_struct_link_map32=yes
21213 echo "$as_me: failed program was:" >&5
21214 sed 's/^/| /' conftest.$ac_ext >&5
21216 gdb_cv_have_struct_link_map32=no
21218 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
21221 echo "$as_me:$LINENO: result: $gdb_cv_have_struct_link_map32" >&5
21222 echo "${ECHO_T}$gdb_cv_have_struct_link_map32" >&6
21223 if test $gdb_cv_have_struct_link_map32 = yes; then
21225 cat >>confdefs.h <<\_ACEOF
21226 #define HAVE_STRUCT_LINK_MAP32 1
21230 cat >>confdefs.h <<\_ACEOF
21231 #define _SYSCALL32 1
21237 # Check if the compiler supports the `long long' type.
21239 echo "$as_me:$LINENO: checking for long long support in compiler" >&5
21240 echo $ECHO_N "checking for long long support in compiler... $ECHO_C" >&6
21241 if test "${gdb_cv_c_long_long+set}" = set; then
21242 echo $ECHO_N "(cached) $ECHO_C" >&6
21244 cat >conftest.$ac_ext <<_ACEOF
21247 cat confdefs.h >>conftest.$ac_ext
21248 cat >>conftest.$ac_ext <<_ACEOF
21249 /* end confdefs.h. */
21250 extern long long foo;
21254 switch (foo & 2) { case 0: return 1; }
21259 rm -f conftest.$ac_objext
21260 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
21261 (eval $ac_compile) 2>conftest.er1
21263 grep -v '^ *+' conftest.er1 >conftest.err
21265 cat conftest.err >&5
21266 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21267 (exit $ac_status); } &&
21268 { ac_try='test -z "$ac_c_werror_flag"
21269 || test ! -s conftest.err'
21270 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21271 (eval $ac_try) 2>&5
21273 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21274 (exit $ac_status); }; } &&
21275 { ac_try='test -s conftest.$ac_objext'
21276 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21277 (eval $ac_try) 2>&5
21279 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21280 (exit $ac_status); }; }; then
21281 gdb_cv_c_long_long=yes
21283 echo "$as_me: failed program was:" >&5
21284 sed 's/^/| /' conftest.$ac_ext >&5
21286 gdb_cv_c_long_long=no
21288 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
21290 echo "$as_me:$LINENO: result: $gdb_cv_c_long_long" >&5
21291 echo "${ECHO_T}$gdb_cv_c_long_long" >&6
21292 if test $gdb_cv_c_long_long = yes; then
21294 cat >>confdefs.h <<\_ACEOF
21295 #define CC_HAS_LONG_LONG 1
21300 # Check if the compiler and runtime support printing long longs.
21302 echo "$as_me:$LINENO: checking for long long support in printf" >&5
21303 echo $ECHO_N "checking for long long support in printf... $ECHO_C" >&6
21304 if test "${gdb_cv_printf_has_long_long+set}" = set; then
21305 echo $ECHO_N "(cached) $ECHO_C" >&6
21307 if test "$cross_compiling" = yes; then
21308 gdb_cv_printf_has_long_long=no
21310 cat >conftest.$ac_ext <<_ACEOF
21313 cat confdefs.h >>conftest.$ac_ext
21314 cat >>conftest.$ac_ext <<_ACEOF
21315 /* end confdefs.h. */
21316 $ac_includes_default
21322 l = (l << 16) + 0x0123;
21323 l = (l << 16) + 0x4567;
21324 l = (l << 16) + 0x89ab;
21325 l = (l << 16) + 0xcdef;
21326 sprintf (buf, "0x%016llx", l);
21327 return (strcmp ("0x0123456789abcdef", buf));
21332 rm -f conftest$ac_exeext
21333 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
21334 (eval $ac_link) 2>&5
21336 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21337 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
21338 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21339 (eval $ac_try) 2>&5
21341 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21342 (exit $ac_status); }; }; then
21343 gdb_cv_printf_has_long_long=yes
21345 echo "$as_me: program exited with status $ac_status" >&5
21346 echo "$as_me: failed program was:" >&5
21347 sed 's/^/| /' conftest.$ac_ext >&5
21349 ( exit $ac_status )
21350 gdb_cv_printf_has_long_long=no
21352 rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
21355 echo "$as_me:$LINENO: result: $gdb_cv_printf_has_long_long" >&5
21356 echo "${ECHO_T}$gdb_cv_printf_has_long_long" >&6
21357 if test $gdb_cv_printf_has_long_long = yes; then
21359 cat >>confdefs.h <<\_ACEOF
21360 #define PRINTF_HAS_LONG_LONG 1
21365 # Check if the compiler and runtime support printing decfloats.
21367 echo "$as_me:$LINENO: checking for decfloat support in printf" >&5
21368 echo $ECHO_N "checking for decfloat support in printf... $ECHO_C" >&6
21369 if test "${gdb_cv_printf_has_decfloat+set}" = set; then
21370 echo $ECHO_N "(cached) $ECHO_C" >&6
21372 if test "$cross_compiling" = yes; then
21373 gdb_cv_printf_has_decfloat=no
21375 cat >conftest.$ac_ext <<_ACEOF
21378 cat confdefs.h >>conftest.$ac_ext
21379 cat >>conftest.$ac_ext <<_ACEOF
21380 /* end confdefs.h. */
21381 $ac_includes_default
21386 _Decimal32 d32 = 1.2345df;
21387 _Decimal64 d64 = 1.2345dd;
21388 _Decimal128 d128 = 1.2345dl;
21389 sprintf (buf, "Decimal32: %H\nDecimal64: %D\nDecimal128: %DD", d32, d64, d128);
21390 return (strcmp ("Decimal32: 1.2345\nDecimal64: 1.2345\nDecimal128: 1.2345", buf));
21395 rm -f conftest$ac_exeext
21396 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
21397 (eval $ac_link) 2>&5
21399 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21400 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
21401 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21402 (eval $ac_try) 2>&5
21404 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21405 (exit $ac_status); }; }; then
21406 gdb_cv_printf_has_decfloat=yes
21408 echo "$as_me: program exited with status $ac_status" >&5
21409 echo "$as_me: failed program was:" >&5
21410 sed 's/^/| /' conftest.$ac_ext >&5
21412 ( exit $ac_status )
21413 gdb_cv_printf_has_decfloat=no
21415 rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
21418 echo "$as_me:$LINENO: result: $gdb_cv_printf_has_decfloat" >&5
21419 echo "${ECHO_T}$gdb_cv_printf_has_decfloat" >&6
21420 if test $gdb_cv_printf_has_decfloat = yes; then
21422 cat >>confdefs.h <<\_ACEOF
21423 #define PRINTF_HAS_DECFLOAT 1
21428 # Check if the compiler supports the `long double' type. We can't use
21429 # AC_C_LONG_DOUBLE because that one does additional checks on the
21430 # constants defined in <float.h> that fail on some systems,
21431 # e.g. FreeBSD/i386 4.7 and OpenBSD/i386 3.6.
21433 echo "$as_me:$LINENO: checking for long double support in compiler" >&5
21434 echo $ECHO_N "checking for long double support in compiler... $ECHO_C" >&6
21435 if test "${gdb_cv_c_long_double+set}" = set; then
21436 echo $ECHO_N "(cached) $ECHO_C" >&6
21438 cat >conftest.$ac_ext <<_ACEOF
21441 cat confdefs.h >>conftest.$ac_ext
21442 cat >>conftest.$ac_ext <<_ACEOF
21443 /* end confdefs.h. */
21446 rm -f conftest.$ac_objext
21447 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
21448 (eval $ac_compile) 2>conftest.er1
21450 grep -v '^ *+' conftest.er1 >conftest.err
21452 cat conftest.err >&5
21453 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21454 (exit $ac_status); } &&
21455 { ac_try='test -z "$ac_c_werror_flag"
21456 || test ! -s conftest.err'
21457 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21458 (eval $ac_try) 2>&5
21460 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21461 (exit $ac_status); }; } &&
21462 { ac_try='test -s conftest.$ac_objext'
21463 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21464 (eval $ac_try) 2>&5
21466 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21467 (exit $ac_status); }; }; then
21468 gdb_cv_c_long_double=yes
21470 echo "$as_me: failed program was:" >&5
21471 sed 's/^/| /' conftest.$ac_ext >&5
21473 gdb_cv_c_long_double=no
21475 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
21477 echo "$as_me:$LINENO: result: $gdb_cv_c_long_double" >&5
21478 echo "${ECHO_T}$gdb_cv_c_long_double" >&6
21479 if test $gdb_cv_c_long_double = yes; then
21481 cat >>confdefs.h <<\_ACEOF
21482 #define HAVE_LONG_DOUBLE 1
21487 # Check if the compiler and runtime support printing long doubles.
21489 echo "$as_me:$LINENO: checking for long double support in printf" >&5
21490 echo $ECHO_N "checking for long double support in printf... $ECHO_C" >&6
21491 if test "${gdb_cv_printf_has_long_double+set}" = set; then
21492 echo $ECHO_N "(cached) $ECHO_C" >&6
21494 if test "$cross_compiling" = yes; then
21495 gdb_cv_printf_has_long_double=no
21497 cat >conftest.$ac_ext <<_ACEOF
21500 cat confdefs.h >>conftest.$ac_ext
21501 cat >>conftest.$ac_ext <<_ACEOF
21502 /* end confdefs.h. */
21503 $ac_includes_default
21508 long double f = 3.141592653;
21509 sprintf (buf, "%Lg", f);
21510 return (strncmp ("3.14159", buf, 7));
21515 rm -f conftest$ac_exeext
21516 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
21517 (eval $ac_link) 2>&5
21519 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21520 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
21521 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21522 (eval $ac_try) 2>&5
21524 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21525 (exit $ac_status); }; }; then
21526 gdb_cv_printf_has_long_double=yes
21528 echo "$as_me: program exited with status $ac_status" >&5
21529 echo "$as_me: failed program was:" >&5
21530 sed 's/^/| /' conftest.$ac_ext >&5
21532 ( exit $ac_status )
21533 gdb_cv_printf_has_long_double=no
21535 rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
21538 echo "$as_me:$LINENO: result: $gdb_cv_printf_has_long_double" >&5
21539 echo "${ECHO_T}$gdb_cv_printf_has_long_double" >&6
21540 if test $gdb_cv_printf_has_long_double = yes; then
21542 cat >>confdefs.h <<\_ACEOF
21543 #define PRINTF_HAS_LONG_DOUBLE 1
21548 # Check if the compiler and runtime support scanning long doubles.
21550 echo "$as_me:$LINENO: checking for long double support in scanf" >&5
21551 echo $ECHO_N "checking for long double support in scanf... $ECHO_C" >&6
21552 if test "${gdb_cv_scanf_has_long_double+set}" = set; then
21553 echo $ECHO_N "(cached) $ECHO_C" >&6
21555 if test "$cross_compiling" = yes; then
21556 gdb_cv_scanf_has_long_double=no
21558 cat >conftest.$ac_ext <<_ACEOF
21561 cat confdefs.h >>conftest.$ac_ext
21562 cat >>conftest.$ac_ext <<_ACEOF
21563 /* end confdefs.h. */
21568 char *buf = "3.141592653";
21570 sscanf (buf, "%Lg", &f);
21571 return !(f > 3.14159 && f < 3.14160);
21576 rm -f conftest$ac_exeext
21577 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
21578 (eval $ac_link) 2>&5
21580 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21581 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
21582 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21583 (eval $ac_try) 2>&5
21585 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21586 (exit $ac_status); }; }; then
21587 gdb_cv_scanf_has_long_double=yes
21589 echo "$as_me: program exited with status $ac_status" >&5
21590 echo "$as_me: failed program was:" >&5
21591 sed 's/^/| /' conftest.$ac_ext >&5
21593 ( exit $ac_status )
21594 gdb_cv_scanf_has_long_double=no
21596 rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
21599 echo "$as_me:$LINENO: result: $gdb_cv_scanf_has_long_double" >&5
21600 echo "${ECHO_T}$gdb_cv_scanf_has_long_double" >&6
21601 if test $gdb_cv_scanf_has_long_double = yes; then
21603 cat >>confdefs.h <<\_ACEOF
21604 #define SCANF_HAS_LONG_DOUBLE 1
21611 echo "$as_me:$LINENO: checking for -bbigtoc option" >&5
21612 echo $ECHO_N "checking for -bbigtoc option... $ECHO_C" >&6
21613 if test "${gdb_cv_bigtoc+set}" = set; then
21614 echo $ECHO_N "(cached) $ECHO_C" >&6
21617 SAVE_LDFLAGS=$LDFLAGS
21620 yes) gdb_cv_bigtoc=-Wl,-bbigtoc ;;
21621 *) gdb_cv_bigtoc=-bbigtoc ;;
21624 LDFLAGS=$LDFLAGS\ $gdb_cv_bigtoc
21625 cat >conftest.$ac_ext <<_ACEOF
21628 cat confdefs.h >>conftest.$ac_ext
21629 cat >>conftest.$ac_ext <<_ACEOF
21630 /* end confdefs.h. */
21640 rm -f conftest.$ac_objext conftest$ac_exeext
21641 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
21642 (eval $ac_link) 2>conftest.er1
21644 grep -v '^ *+' conftest.er1 >conftest.err
21646 cat conftest.err >&5
21647 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21648 (exit $ac_status); } &&
21649 { ac_try='test -z "$ac_c_werror_flag"
21650 || test ! -s conftest.err'
21651 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21652 (eval $ac_try) 2>&5
21654 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21655 (exit $ac_status); }; } &&
21656 { ac_try='test -s conftest$ac_exeext'
21657 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21658 (eval $ac_try) 2>&5
21660 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21661 (exit $ac_status); }; }; then
21664 echo "$as_me: failed program was:" >&5
21665 sed 's/^/| /' conftest.$ac_ext >&5
21669 rm -f conftest.err conftest.$ac_objext \
21670 conftest$ac_exeext conftest.$ac_ext
21671 LDFLAGS="${SAVE_LDFLAGS}"
21674 echo "$as_me:$LINENO: result: $gdb_cv_bigtoc" >&5
21675 echo "${ECHO_T}$gdb_cv_bigtoc" >&6
21676 CONFIG_LDFLAGS="${CONFIG_LDFLAGS} ${gdb_cv_bigtoc}"
21682 if test ${build} = ${host} -a ${host} = ${target} ; then
21685 echo "$as_me:$LINENO: checking for HPUX/OSF thread support" >&5
21686 echo $ECHO_N "checking for HPUX/OSF thread support... $ECHO_C" >&6
21687 if test -f /usr/include/dce/cma_config.h ; then
21688 if test "$GCC" = "yes" ; then
21689 echo "$as_me:$LINENO: result: yes" >&5
21690 echo "${ECHO_T}yes" >&6
21692 cat >>confdefs.h <<\_ACEOF
21693 #define HAVE_HPUX_THREAD_SUPPORT 1
21696 CONFIG_OBS="${CONFIG_OBS} hpux-thread.o"
21697 CONFIG_SRCS="${CONFIG_SRCS} hpux-thread.c"
21699 echo "$as_me:$LINENO: result: no (suppressed because you are not using GCC)" >&5
21700 echo "${ECHO_T}no (suppressed because you are not using GCC)" >&6
21703 echo "$as_me:$LINENO: result: no" >&5
21704 echo "${ECHO_T}no" >&6
21708 # See if thread_db library is around for Solaris thread debugging.
21709 # Note that we must explicitly test for version 1 of the library
21710 # because version 0 (present on Solaris 2.4 or earlier) doesn't have
21712 echo "$as_me:$LINENO: checking for Solaris thread debugging library" >&5
21713 echo $ECHO_N "checking for Solaris thread debugging library... $ECHO_C" >&6
21714 if test -f /usr/lib/libthread_db.so.1 ; then
21715 echo "$as_me:$LINENO: result: yes" >&5
21716 echo "${ECHO_T}yes" >&6
21718 cat >>confdefs.h <<\_ACEOF
21719 #define HAVE_THREAD_DB_LIB 1
21722 CONFIG_OBS="${CONFIG_OBS} sol-thread.o"
21723 CONFIG_SRCS="${CONFIG_SRCS} sol-thread.c"
21725 echo "$as_me:$LINENO: checking for dlopen in -ldl" >&5
21726 echo $ECHO_N "checking for dlopen in -ldl... $ECHO_C" >&6
21727 if test "${ac_cv_lib_dl_dlopen+set}" = set; then
21728 echo $ECHO_N "(cached) $ECHO_C" >&6
21730 ac_check_lib_save_LIBS=$LIBS
21732 cat >conftest.$ac_ext <<_ACEOF
21735 cat confdefs.h >>conftest.$ac_ext
21736 cat >>conftest.$ac_ext <<_ACEOF
21737 /* end confdefs.h. */
21739 /* Override any gcc2 internal prototype to avoid an error. */
21743 /* We use char because int might match the return type of a gcc2
21744 builtin and then its argument prototype would still apply. */
21754 rm -f conftest.$ac_objext conftest$ac_exeext
21755 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
21756 (eval $ac_link) 2>conftest.er1
21758 grep -v '^ *+' conftest.er1 >conftest.err
21760 cat conftest.err >&5
21761 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21762 (exit $ac_status); } &&
21763 { ac_try='test -z "$ac_c_werror_flag"
21764 || test ! -s conftest.err'
21765 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21766 (eval $ac_try) 2>&5
21768 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21769 (exit $ac_status); }; } &&
21770 { ac_try='test -s conftest$ac_exeext'
21771 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21772 (eval $ac_try) 2>&5
21774 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21775 (exit $ac_status); }; }; then
21776 ac_cv_lib_dl_dlopen=yes
21778 echo "$as_me: failed program was:" >&5
21779 sed 's/^/| /' conftest.$ac_ext >&5
21781 ac_cv_lib_dl_dlopen=no
21783 rm -f conftest.err conftest.$ac_objext \
21784 conftest$ac_exeext conftest.$ac_ext
21785 LIBS=$ac_check_lib_save_LIBS
21787 echo "$as_me:$LINENO: result: $ac_cv_lib_dl_dlopen" >&5
21788 echo "${ECHO_T}$ac_cv_lib_dl_dlopen" >&6
21789 if test $ac_cv_lib_dl_dlopen = yes; then
21790 cat >>confdefs.h <<_ACEOF
21791 #define HAVE_LIBDL 1
21798 if test "$GCC" = "yes" ; then
21799 # The GNU linker requires the -export-dynamic option to make
21800 # all symbols visible in the dynamic symbol table.
21801 hold_ldflags=$LDFLAGS
21802 echo "$as_me:$LINENO: checking for the ld -export-dynamic flag" >&5
21803 echo $ECHO_N "checking for the ld -export-dynamic flag... $ECHO_C" >&6
21804 LDFLAGS="${LDFLAGS} -Wl,-export-dynamic"
21805 cat >conftest.$ac_ext <<_ACEOF
21808 cat confdefs.h >>conftest.$ac_ext
21809 cat >>conftest.$ac_ext <<_ACEOF
21810 /* end confdefs.h. */
21820 rm -f conftest.$ac_objext conftest$ac_exeext
21821 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
21822 (eval $ac_link) 2>conftest.er1
21824 grep -v '^ *+' conftest.er1 >conftest.err
21826 cat conftest.err >&5
21827 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21828 (exit $ac_status); } &&
21829 { ac_try='test -z "$ac_c_werror_flag"
21830 || test ! -s conftest.err'
21831 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21832 (eval $ac_try) 2>&5
21834 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21835 (exit $ac_status); }; } &&
21836 { ac_try='test -s conftest$ac_exeext'
21837 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21838 (eval $ac_try) 2>&5
21840 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21841 (exit $ac_status); }; }; then
21844 echo "$as_me: failed program was:" >&5
21845 sed 's/^/| /' conftest.$ac_ext >&5
21849 rm -f conftest.err conftest.$ac_objext \
21850 conftest$ac_exeext conftest.$ac_ext
21851 LDFLAGS=$hold_ldflags
21852 echo "$as_me:$LINENO: result: $found" >&5
21853 echo "${ECHO_T}$found" >&6
21854 if test $found = yes; then
21855 CONFIG_LDFLAGS="${CONFIG_LDFLAGS} -Wl,-export-dynamic"
21858 # Sun randomly tweaked the prototypes in <proc_service.h>
21860 echo "$as_me:$LINENO: checking if <proc_service.h> is old" >&5
21861 echo $ECHO_N "checking if <proc_service.h> is old... $ECHO_C" >&6
21862 if test "${gdb_cv_proc_service_is_old+set}" = set; then
21863 echo $ECHO_N "(cached) $ECHO_C" >&6
21866 cat >conftest.$ac_ext <<_ACEOF
21869 cat confdefs.h >>conftest.$ac_ext
21870 cat >>conftest.$ac_ext <<_ACEOF
21871 /* end confdefs.h. */
21873 #include <proc_service.h>
21874 ps_err_e ps_pdwrite
21875 (struct ps_prochandle*, psaddr_t, const void*, size_t);
21885 rm -f conftest.$ac_objext
21886 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
21887 (eval $ac_compile) 2>conftest.er1
21889 grep -v '^ *+' conftest.er1 >conftest.err
21891 cat conftest.err >&5
21892 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21893 (exit $ac_status); } &&
21894 { ac_try='test -z "$ac_c_werror_flag"
21895 || test ! -s conftest.err'
21896 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21897 (eval $ac_try) 2>&5
21899 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21900 (exit $ac_status); }; } &&
21901 { ac_try='test -s conftest.$ac_objext'
21902 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21903 (eval $ac_try) 2>&5
21905 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21906 (exit $ac_status); }; }; then
21907 gdb_cv_proc_service_is_old=no
21909 echo "$as_me: failed program was:" >&5
21910 sed 's/^/| /' conftest.$ac_ext >&5
21912 gdb_cv_proc_service_is_old=yes
21914 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
21918 echo "$as_me:$LINENO: result: $gdb_cv_proc_service_is_old" >&5
21919 echo "${ECHO_T}$gdb_cv_proc_service_is_old" >&6
21920 if test $gdb_cv_proc_service_is_old = yes; then
21922 cat >>confdefs.h <<\_ACEOF
21923 #define PROC_SERVICE_IS_OLD 1
21928 echo "$as_me:$LINENO: result: no" >&5
21929 echo "${ECHO_T}no" >&6
21933 echo "$as_me:$LINENO: checking for AiX thread debugging library" >&5
21934 echo $ECHO_N "checking for AiX thread debugging library... $ECHO_C" >&6
21935 if test "${gdb_cv_have_aix_thread_debug+set}" = set; then
21936 echo $ECHO_N "(cached) $ECHO_C" >&6
21938 cat >conftest.$ac_ext <<_ACEOF
21941 cat confdefs.h >>conftest.$ac_ext
21942 cat >>conftest.$ac_ext <<_ACEOF
21943 /* end confdefs.h. */
21944 #include <sys/pthdebug.h>
21948 #ifndef PTHDB_VERSION_3
21955 rm -f conftest.$ac_objext
21956 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
21957 (eval $ac_compile) 2>conftest.er1
21959 grep -v '^ *+' conftest.er1 >conftest.err
21961 cat conftest.err >&5
21962 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21963 (exit $ac_status); } &&
21964 { ac_try='test -z "$ac_c_werror_flag"
21965 || test ! -s conftest.err'
21966 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21967 (eval $ac_try) 2>&5
21969 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21970 (exit $ac_status); }; } &&
21971 { ac_try='test -s conftest.$ac_objext'
21972 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21973 (eval $ac_try) 2>&5
21975 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21976 (exit $ac_status); }; }; then
21977 gdb_cv_have_aix_thread_debug=yes
21979 echo "$as_me: failed program was:" >&5
21980 sed 's/^/| /' conftest.$ac_ext >&5
21982 gdb_cv_have_aix_thread_debug=no
21984 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
21987 echo "$as_me:$LINENO: result: $gdb_cv_have_aix_thread_debug" >&5
21988 echo "${ECHO_T}$gdb_cv_have_aix_thread_debug" >&6
21989 if test $gdb_cv_have_aix_thread_debug = yes; then
21990 CONFIG_SRCS="${CONFIG_SRCS} aix-thread.c"
21991 CONFIG_OBS="${CONFIG_OBS} aix-thread.o"
21992 CONFIG_LDFLAGS="${CONFIG_LDFLAGS} -lpthdebug"
21999 if test "x$ac_cv_header_thread_db_h" = "xyes"; then
22000 echo "$as_me:$LINENO: checking whether <thread_db.h> has TD_NOTALLOC" >&5
22001 echo $ECHO_N "checking whether <thread_db.h> has TD_NOTALLOC... $ECHO_C" >&6
22002 if test "${gdb_cv_thread_db_h_has_td_notalloc+set}" = set; then
22003 echo $ECHO_N "(cached) $ECHO_C" >&6
22005 cat >conftest.$ac_ext <<_ACEOF
22008 cat confdefs.h >>conftest.$ac_ext
22009 cat >>conftest.$ac_ext <<_ACEOF
22010 /* end confdefs.h. */
22011 #include <thread_db.h>
22015 int i = TD_NOTALLOC;
22020 rm -f conftest.$ac_objext
22021 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
22022 (eval $ac_compile) 2>conftest.er1
22024 grep -v '^ *+' conftest.er1 >conftest.err
22026 cat conftest.err >&5
22027 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22028 (exit $ac_status); } &&
22029 { ac_try='test -z "$ac_c_werror_flag"
22030 || test ! -s conftest.err'
22031 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
22032 (eval $ac_try) 2>&5
22034 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22035 (exit $ac_status); }; } &&
22036 { ac_try='test -s conftest.$ac_objext'
22037 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
22038 (eval $ac_try) 2>&5
22040 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22041 (exit $ac_status); }; }; then
22042 gdb_cv_thread_db_h_has_td_notalloc=yes
22044 echo "$as_me: failed program was:" >&5
22045 sed 's/^/| /' conftest.$ac_ext >&5
22047 gdb_cv_thread_db_h_has_td_notalloc=no
22050 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
22053 echo "$as_me:$LINENO: result: $gdb_cv_thread_db_h_has_td_notalloc" >&5
22054 echo "${ECHO_T}$gdb_cv_thread_db_h_has_td_notalloc" >&6
22055 echo "$as_me:$LINENO: checking whether <thread_db.h> has TD_VERSION" >&5
22056 echo $ECHO_N "checking whether <thread_db.h> has TD_VERSION... $ECHO_C" >&6
22057 if test "${gdb_cv_thread_db_h_has_td_version+set}" = set; then
22058 echo $ECHO_N "(cached) $ECHO_C" >&6
22060 cat >conftest.$ac_ext <<_ACEOF
22063 cat confdefs.h >>conftest.$ac_ext
22064 cat >>conftest.$ac_ext <<_ACEOF
22065 /* end confdefs.h. */
22066 #include <thread_db.h>
22070 int i = TD_VERSION;
22075 rm -f conftest.$ac_objext
22076 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
22077 (eval $ac_compile) 2>conftest.er1
22079 grep -v '^ *+' conftest.er1 >conftest.err
22081 cat conftest.err >&5
22082 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22083 (exit $ac_status); } &&
22084 { ac_try='test -z "$ac_c_werror_flag"
22085 || test ! -s conftest.err'
22086 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
22087 (eval $ac_try) 2>&5
22089 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22090 (exit $ac_status); }; } &&
22091 { ac_try='test -s conftest.$ac_objext'
22092 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
22093 (eval $ac_try) 2>&5
22095 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22096 (exit $ac_status); }; }; then
22097 gdb_cv_thread_db_h_has_td_version=yes
22099 echo "$as_me: failed program was:" >&5
22100 sed 's/^/| /' conftest.$ac_ext >&5
22102 gdb_cv_thread_db_h_has_td_version=no
22105 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
22108 echo "$as_me:$LINENO: result: $gdb_cv_thread_db_h_has_td_version" >&5
22109 echo "${ECHO_T}$gdb_cv_thread_db_h_has_td_version" >&6
22110 echo "$as_me:$LINENO: checking whether <thread_db.h> has TD_NOTLS" >&5
22111 echo $ECHO_N "checking whether <thread_db.h> has TD_NOTLS... $ECHO_C" >&6
22112 if test "${gdb_cv_thread_db_h_has_td_notls+set}" = set; then
22113 echo $ECHO_N "(cached) $ECHO_C" >&6
22115 cat >conftest.$ac_ext <<_ACEOF
22118 cat confdefs.h >>conftest.$ac_ext
22119 cat >>conftest.$ac_ext <<_ACEOF
22120 /* end confdefs.h. */
22121 #include <thread_db.h>
22130 rm -f conftest.$ac_objext
22131 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
22132 (eval $ac_compile) 2>conftest.er1
22134 grep -v '^ *+' conftest.er1 >conftest.err
22136 cat conftest.err >&5
22137 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22138 (exit $ac_status); } &&
22139 { ac_try='test -z "$ac_c_werror_flag"
22140 || test ! -s conftest.err'
22141 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
22142 (eval $ac_try) 2>&5
22144 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22145 (exit $ac_status); }; } &&
22146 { ac_try='test -s conftest.$ac_objext'
22147 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
22148 (eval $ac_try) 2>&5
22150 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22151 (exit $ac_status); }; }; then
22152 gdb_cv_thread_db_h_has_td_notls=yes
22154 echo "$as_me: failed program was:" >&5
22155 sed 's/^/| /' conftest.$ac_ext >&5
22157 gdb_cv_thread_db_h_has_td_notls=no
22160 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
22163 echo "$as_me:$LINENO: result: $gdb_cv_thread_db_h_has_td_notls" >&5
22164 echo "${ECHO_T}$gdb_cv_thread_db_h_has_td_notls" >&6
22166 if test "x$gdb_cv_thread_db_h_has_td_notalloc" = "xyes"; then
22168 cat >>confdefs.h <<\_ACEOF
22169 #define THREAD_DB_HAS_TD_NOTALLOC 1
22173 if test "x$gdb_cv_thread_db_h_has_td_version" = "xyes"; then
22175 cat >>confdefs.h <<\_ACEOF
22176 #define THREAD_DB_HAS_TD_VERSION 1
22180 if test "x$gdb_cv_thread_db_h_has_td_notls" = "xyes"; then
22182 cat >>confdefs.h <<\_ACEOF
22183 #define THREAD_DB_HAS_TD_NOTLS 1
22188 if test "x$ac_cv_header_sys_syscall_h" = "xyes"; then
22189 echo "$as_me:$LINENO: checking whether <sys/syscall.h> has __NR_tkill" >&5
22190 echo $ECHO_N "checking whether <sys/syscall.h> has __NR_tkill... $ECHO_C" >&6
22191 if test "${gdb_cv_sys_syscall_h_has_tkill+set}" = set; then
22192 echo $ECHO_N "(cached) $ECHO_C" >&6
22194 cat >conftest.$ac_ext <<_ACEOF
22197 cat confdefs.h >>conftest.$ac_ext
22198 cat >>conftest.$ac_ext <<_ACEOF
22199 /* end confdefs.h. */
22200 #include <sys/syscall.h>
22204 int i = __NR_tkill;
22209 rm -f conftest.$ac_objext
22210 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
22211 (eval $ac_compile) 2>conftest.er1
22213 grep -v '^ *+' conftest.er1 >conftest.err
22215 cat conftest.err >&5
22216 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22217 (exit $ac_status); } &&
22218 { ac_try='test -z "$ac_c_werror_flag"
22219 || test ! -s conftest.err'
22220 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
22221 (eval $ac_try) 2>&5
22223 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22224 (exit $ac_status); }; } &&
22225 { ac_try='test -s conftest.$ac_objext'
22226 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
22227 (eval $ac_try) 2>&5
22229 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22230 (exit $ac_status); }; }; then
22231 gdb_cv_sys_syscall_h_has_tkill=yes
22233 echo "$as_me: failed program was:" >&5
22234 sed 's/^/| /' conftest.$ac_ext >&5
22236 gdb_cv_sys_syscall_h_has_tkill=no
22239 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
22242 echo "$as_me:$LINENO: result: $gdb_cv_sys_syscall_h_has_tkill" >&5
22243 echo "${ECHO_T}$gdb_cv_sys_syscall_h_has_tkill" >&6
22245 if test "x$gdb_cv_sys_syscall_h_has_tkill" = "xyes" && test "x$ac_cv_func_syscall" = "xyes"; then
22247 cat >>confdefs.h <<\_ACEOF
22248 #define HAVE_TKILL_SYSCALL 1
22255 # Check whether --with-sysroot or --without-sysroot was given.
22256 if test "${with_sysroot+set}" = set; then
22257 withval="$with_sysroot"
22259 case ${with_sysroot} in
22260 yes) TARGET_SYSTEM_ROOT='${exec_prefix}/${target_alias}/sys-root' ;;
22261 *) TARGET_SYSTEM_ROOT=$with_sysroot ;;
22264 TARGET_SYSTEM_ROOT_DEFINE='-DTARGET_SYSTEM_ROOT=\"$(TARGET_SYSTEM_ROOT)\"'
22266 if test "x$prefix" = xNONE; then
22267 test_prefix=/usr/local
22269 test_prefix=$prefix
22271 if test "x$exec_prefix" = xNONE || test "x$exec_prefix" = 'x${prefix}'; then
22272 test_exec_prefix=$test_prefix
22274 test_exec_prefix=$exec_prefix
22276 case ${TARGET_SYSTEM_ROOT} in
22277 "${test_prefix}"|"${test_prefix}/"*|\
22278 "${test_exec_prefix}"|"${test_exec_prefix}/"*|\
22279 '${prefix}'|'${prefix}/'*|\
22280 '${exec_prefix}'|'${exec_prefix}/'*)
22281 t="$TARGET_SYSTEM_ROOT_DEFINE -DTARGET_SYSTEM_ROOT_RELOCATABLE"
22282 TARGET_SYSTEM_ROOT_DEFINE="$t"
22288 TARGET_SYSTEM_ROOT=
22289 TARGET_SYSTEM_ROOT_DEFINE='-DTARGET_SYSTEM_ROOT=\"\"'
22295 # Check whether --enable-werror or --disable-werror was given.
22296 if test "${enable_werror+set}" = set; then
22297 enableval="$enable_werror"
22298 case "${enableval}" in
22299 yes | y) ERROR_ON_WARNING="yes" ;;
22300 no | n) ERROR_ON_WARNING="no" ;;
22301 *) { { echo "$as_me:$LINENO: error: bad value ${enableval} for --enable-werror" >&5
22302 echo "$as_me: error: bad value ${enableval} for --enable-werror" >&2;}
22303 { (exit 1); exit 1; }; } ;;
22307 # Enable -Werror by default when using gcc
22308 if test "${GCC}" = yes -a -z "${ERROR_ON_WARNING}" ; then
22309 ERROR_ON_WARNING=yes
22313 if test "${ERROR_ON_WARNING}" = yes ; then
22314 WERROR_CFLAGS="-Werror"
22317 # The entries after -Wno-pointer-sign are disabled warnings which may
22318 # be enabled in the future, which can not currently be used to build
22320 # NOTE: If you change this list, remember to update
22321 # gdb/doc/gdbint.texinfo.
22322 build_warnings="-Wall -Wdeclaration-after-statement -Wpointer-arith \
22323 -Wformat-nonliteral -Wno-pointer-sign \
22324 -Wno-unused -Wno-switch -Wno-char-subscripts"
22326 # Check whether --enable-build-warnings or --disable-build-warnings was given.
22327 if test "${enable_build_warnings+set}" = set; then
22328 enableval="$enable_build_warnings"
22329 case "${enableval}" in
22331 no) build_warnings="-w";;
22332 ,*) t=`echo "${enableval}" | sed -e "s/,/ /g"`
22333 build_warnings="${build_warnings} ${t}";;
22334 *,) t=`echo "${enableval}" | sed -e "s/,/ /g"`
22335 build_warnings="${t} ${build_warnings}";;
22336 *) build_warnings=`echo "${enableval}" | sed -e "s/,/ /g"`;;
22338 if test x"$silent" != x"yes" && test x"$build_warnings" != x""; then
22339 echo "Setting compiler warning flags = $build_warnings" 6>&1
22341 fi; # Check whether --enable-gdb-build-warnings or --disable-gdb-build-warnings was given.
22342 if test "${enable_gdb_build_warnings+set}" = set; then
22343 enableval="$enable_gdb_build_warnings"
22344 case "${enableval}" in
22346 no) build_warnings="-w";;
22347 ,*) t=`echo "${enableval}" | sed -e "s/,/ /g"`
22348 build_warnings="${build_warnings} ${t}";;
22349 *,) t=`echo "${enableval}" | sed -e "s/,/ /g"`
22350 build_warnings="${t} ${build_warnings}";;
22351 *) build_warnings=`echo "${enableval}" | sed -e "s/,/ /g"`;;
22353 if test x"$silent" != x"yes" && test x"$build_warnings" != x""; then
22354 echo "Setting GDB specific compiler warning flags = $build_warnings" 6>&1
22357 if test "x${build_warnings}" != x -a "x$GCC" = xyes
22359 echo "$as_me:$LINENO: checking compiler warning flags" >&5
22360 echo $ECHO_N "checking compiler warning flags... $ECHO_C" >&6
22361 # Separate out the -Werror flag as some files just cannot be
22362 # compiled with it enabled.
22363 for w in ${build_warnings}; do
22365 -Werr*) WERROR_CFLAGS=-Werror ;;
22366 *) # Check that GCC accepts it
22367 saved_CFLAGS="$CFLAGS"
22368 CFLAGS="$CFLAGS $w"
22369 cat >conftest.$ac_ext <<_ACEOF
22372 cat confdefs.h >>conftest.$ac_ext
22373 cat >>conftest.$ac_ext <<_ACEOF
22374 /* end confdefs.h. */
22384 rm -f conftest.$ac_objext
22385 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
22386 (eval $ac_compile) 2>conftest.er1
22388 grep -v '^ *+' conftest.er1 >conftest.err
22390 cat conftest.err >&5
22391 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22392 (exit $ac_status); } &&
22393 { ac_try='test -z "$ac_c_werror_flag"
22394 || test ! -s conftest.err'
22395 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
22396 (eval $ac_try) 2>&5
22398 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22399 (exit $ac_status); }; } &&
22400 { ac_try='test -s conftest.$ac_objext'
22401 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
22402 (eval $ac_try) 2>&5
22404 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22405 (exit $ac_status); }; }; then
22406 WARN_CFLAGS="${WARN_CFLAGS} $w"
22408 echo "$as_me: failed program was:" >&5
22409 sed 's/^/| /' conftest.$ac_ext >&5
22412 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
22413 CFLAGS="$saved_CFLAGS"
22416 echo "$as_me:$LINENO: result: ${WARN_CFLAGS} ${WERROR_CFLAGS}" >&5
22417 echo "${ECHO_T}${WARN_CFLAGS} ${WERROR_CFLAGS}" >&6
22422 # In the Cygwin environment, we need some additional flags.
22423 echo "$as_me:$LINENO: checking for cygwin" >&5
22424 echo $ECHO_N "checking for cygwin... $ECHO_C" >&6
22425 if test "${gdb_cv_os_cygwin+set}" = set; then
22426 echo $ECHO_N "(cached) $ECHO_C" >&6
22428 cat >conftest.$ac_ext <<_ACEOF
22431 cat confdefs.h >>conftest.$ac_ext
22432 cat >>conftest.$ac_ext <<_ACEOF
22433 /* end confdefs.h. */
22435 #if defined (__CYGWIN__) || defined (__CYGWIN32__)
22439 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
22440 $EGREP "lose" >/dev/null 2>&1; then
22441 gdb_cv_os_cygwin=yes
22443 gdb_cv_os_cygwin=no
22448 echo "$as_me:$LINENO: result: $gdb_cv_os_cygwin" >&5
22449 echo "${ECHO_T}$gdb_cv_os_cygwin" >&6
22452 SER_HARDWIRE="ser-base.o ser-unix.o ser-pipe.o ser-tcp.o"
22454 *go32* ) SER_HARDWIRE=ser-go32.o ;;
22455 *djgpp* ) SER_HARDWIRE=ser-go32.o ;;
22456 *mingw32*) SER_HARDWIRE="ser-base.o ser-tcp.o ser-mingw.o" ;;
22460 # libreadline needs libuser32.a in a cygwin environment
22462 if test x$gdb_cv_os_cygwin = xyes; then
22463 WIN32LIBS="-luser32"
22464 case "${target}" in
22465 *cygwin*) WIN32LIBS="$WIN32LIBS -limagehlp"
22470 # The ser-tcp.c module requires sockets.
22474 cat >>confdefs.h <<\_ACEOF
22475 #define USE_WIN32API 1
22478 WIN32LIBS="$WIN32LIBS -lws2_32"
22483 # Add ELF support to GDB, but only if BFD includes ELF support.
22485 OLD_LDFLAGS=$LDFLAGS
22487 CFLAGS="$CFLAGS -I${srcdir}/../include -I../bfd -I${srcdir}/../bfd"
22488 LDFLAGS="$LDFLAGS -L../bfd -L../libiberty"
22489 intl=`echo $LIBINTL | sed 's,${top_builddir}/,,g'`
22490 LIBS="$LIBS -lbfd -liberty $intl"
22491 echo "$as_me:$LINENO: checking for ELF support in BFD" >&5
22492 echo $ECHO_N "checking for ELF support in BFD... $ECHO_C" >&6
22493 if test "${gdb_cv_var_elf+set}" = set; then
22494 echo $ECHO_N "(cached) $ECHO_C" >&6
22496 cat >conftest.$ac_ext <<_ACEOF
22499 cat confdefs.h >>conftest.$ac_ext
22500 cat >>conftest.$ac_ext <<_ACEOF
22501 /* end confdefs.h. */
22502 #include <stdlib.h>
22504 #include "elf-bfd.h"
22509 bfd *abfd = NULL; bfd_get_elf_phdr_upper_bound (abfd);
22514 rm -f conftest.$ac_objext conftest$ac_exeext
22515 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
22516 (eval $ac_link) 2>conftest.er1
22518 grep -v '^ *+' conftest.er1 >conftest.err
22520 cat conftest.err >&5
22521 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22522 (exit $ac_status); } &&
22523 { ac_try='test -z "$ac_c_werror_flag"
22524 || test ! -s conftest.err'
22525 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
22526 (eval $ac_try) 2>&5
22528 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22529 (exit $ac_status); }; } &&
22530 { ac_try='test -s conftest$ac_exeext'
22531 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
22532 (eval $ac_try) 2>&5
22534 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22535 (exit $ac_status); }; }; then
22538 echo "$as_me: failed program was:" >&5
22539 sed 's/^/| /' conftest.$ac_ext >&5
22543 rm -f conftest.err conftest.$ac_objext \
22544 conftest$ac_exeext conftest.$ac_ext
22546 echo "$as_me:$LINENO: result: $gdb_cv_var_elf" >&5
22547 echo "${ECHO_T}$gdb_cv_var_elf" >&6
22548 if test $gdb_cv_var_elf = yes; then
22549 CONFIG_OBS="$CONFIG_OBS elfread.o"
22551 cat >>confdefs.h <<\_ACEOF
22557 LDFLAGS=$OLD_LDFLAGS
22560 # Add any host-specific objects to GDB.
22561 CONFIG_OBS="${CONFIG_OBS} ${gdb_host_obs}"
22563 LIBGUI="../libgui/src/libgui.a"
22564 GUI_CFLAGS_X="-I${srcdir}/../libgui/src"
22582 if test "${enable_gdbtk}" = "yes"; then
22584 # Gdbtk must have an absolute path to srcdir in order to run
22585 # properly when not installed.
22588 GDBTK_SRC_DIR=`pwd`
22593 # Ok, lets find the tcl configuration
22594 # First, look for one uninstalled.
22595 # the alternative search directory is invoked by --with-tclconfig
22598 if test x"${no_tcl}" = x ; then
22599 # we reset no_tcl in case something fails here
22602 # Check whether --with-tclconfig or --without-tclconfig was given.
22603 if test "${with_tclconfig+set}" = set; then
22604 withval="$with_tclconfig"
22605 with_tclconfig=${withval}
22607 echo "$as_me:$LINENO: checking for Tcl configuration" >&5
22608 echo $ECHO_N "checking for Tcl configuration... $ECHO_C" >&6
22609 if test "${ac_cv_c_tclconfig+set}" = set; then
22610 echo $ECHO_N "(cached) $ECHO_C" >&6
22614 # First check to see if --with-tclconfig was specified.
22615 if test x"${with_tclconfig}" != x ; then
22616 if test -f "${with_tclconfig}/tclConfig.sh" ; then
22617 ac_cv_c_tclconfig=`(cd ${with_tclconfig}; pwd)`
22619 { { echo "$as_me:$LINENO: error: ${with_tclconfig} directory doesn't contain tclConfig.sh" >&5
22620 echo "$as_me: error: ${with_tclconfig} directory doesn't contain tclConfig.sh" >&2;}
22621 { (exit 1); exit 1; }; }
22625 # then check for a private Tcl installation
22626 if test x"${ac_cv_c_tclconfig}" = x ; then
22629 `ls -dr ../tcl[7-9]* 2>/dev/null` \
22631 `ls -dr ../../tcl[7-9]* 2>/dev/null` \
22633 `ls -dr ../../../tcl[7-9]* 2>/dev/null` ; do
22634 if test -f "$i/${configdir}/tclConfig.sh" ; then
22635 ac_cv_c_tclconfig=`(cd $i/${configdir}; pwd)`
22640 # check in a few common install locations
22641 if test x"${ac_cv_c_tclconfig}" = x ; then
22642 for i in `ls -d ${prefix}/lib /usr/local/lib 2>/dev/null` ; do
22643 if test -f "$i/tclConfig.sh" ; then
22644 ac_cv_c_tclconfig=`(cd $i; pwd)`
22649 # check in a few other private locations
22650 if test x"${ac_cv_c_tclconfig}" = x ; then
22653 `ls -dr ${srcdir}/../tcl[7-9]* 2>/dev/null` ; do
22654 if test -f "$i/${configdir}/tclConfig.sh" ; then
22655 ac_cv_c_tclconfig=`(cd $i/${configdir}; pwd)`
22663 if test x"${ac_cv_c_tclconfig}" = x ; then
22664 TCLCONFIG="# no Tcl configs found"
22665 { echo "$as_me:$LINENO: WARNING: Can't find Tcl configuration definitions" >&5
22666 echo "$as_me: WARNING: Can't find Tcl configuration definitions" >&2;}
22669 TCLCONFIG=${ac_cv_c_tclconfig}/tclConfig.sh
22670 echo "$as_me:$LINENO: result: found $TCLCONFIG" >&5
22671 echo "${ECHO_T}found $TCLCONFIG" >&6
22675 if test -z "${no_tcl}"; then
22706 # Ok, lets find the tk configuration
22707 # First, look for one uninstalled.
22708 # the alternative search directory is invoked by --with-tkconfig
22711 if test x"${no_tk}" = x ; then
22712 # we reset no_tk in case something fails here
22715 # Check whether --with-tkconfig or --without-tkconfig was given.
22716 if test "${with_tkconfig+set}" = set; then
22717 withval="$with_tkconfig"
22718 with_tkconfig=${withval}
22720 echo "$as_me:$LINENO: checking for Tk configuration" >&5
22721 echo $ECHO_N "checking for Tk configuration... $ECHO_C" >&6
22722 if test "${ac_cv_c_tkconfig+set}" = set; then
22723 echo $ECHO_N "(cached) $ECHO_C" >&6
22727 # First check to see if --with-tkconfig was specified.
22728 if test x"${with_tkconfig}" != x ; then
22729 if test -f "${with_tkconfig}/tkConfig.sh" ; then
22730 ac_cv_c_tkconfig=`(cd ${with_tkconfig}; pwd)`
22732 { { echo "$as_me:$LINENO: error: ${with_tkconfig} directory doesn't contain tkConfig.sh" >&5
22733 echo "$as_me: error: ${with_tkconfig} directory doesn't contain tkConfig.sh" >&2;}
22734 { (exit 1); exit 1; }; }
22738 # then check for a private Tk library
22739 if test x"${ac_cv_c_tkconfig}" = x ; then
22742 `ls -dr ../tk[4-9]* 2>/dev/null` \
22744 `ls -dr ../../tk[4-9]* 2>/dev/null` \
22746 `ls -dr ../../../tk[4-9]* 2>/dev/null` ; do
22747 if test -f "$i/${configdir}/tkConfig.sh" ; then
22748 ac_cv_c_tkconfig=`(cd $i/${configdir}; pwd)`
22753 # check in a few common install locations
22754 if test x"${ac_cv_c_tkconfig}" = x ; then
22755 for i in `ls -d ${prefix}/lib /usr/local/lib 2>/dev/null` ; do
22756 if test -f "$i/tkConfig.sh" ; then
22757 ac_cv_c_tkconfig=`(cd $i; pwd)`
22762 # check in a few other private locations
22763 if test x"${ac_cv_c_tkconfig}" = x ; then
22766 `ls -dr ${srcdir}/../tk[4-9]* 2>/dev/null` ; do
22767 if test -f "$i/${configdir}/tkConfig.sh" ; then
22768 ac_cv_c_tkconfig=`(cd $i/${configdir}; pwd)`
22776 if test x"${ac_cv_c_tkconfig}" = x ; then
22777 TKCONFIG="# no Tk configs found"
22778 { echo "$as_me:$LINENO: WARNING: Can't find Tk configuration definitions" >&5
22779 echo "$as_me: WARNING: Can't find Tk configuration definitions" >&2;}
22782 TKCONFIG=${ac_cv_c_tkconfig}/tkConfig.sh
22783 echo "$as_me:$LINENO: result: found $TKCONFIG" >&5
22784 echo "${ECHO_T}found $TKCONFIG" >&6
22790 # now look for Tcl library stuff
22792 tcldir="../tcl/${configdir}/"
22794 TCL_DEPS="${tcldir}${TCL_LIB_FILE}"
22796 # If $no_tk is nonempty, then we can't do Tk, and there is no
22797 # point to doing Tcl.
22798 if test -z "${no_tk}"; then
22800 if test -f "$TKCONFIG" ; then
22818 # Ok, lets find the tcl source trees so we can use the headers
22819 # Warning: transition of version 9 to 10 will break this algorithm
22820 # because 10 sorts before 9. We also look for just tcl. We have to
22821 # be careful that we don't match stuff like tclX by accident.
22822 # the alternative search directory is involked by --with-tclinclude
22826 echo "$as_me:$LINENO: checking for Tcl private headers. dir=${configdir}" >&5
22827 echo $ECHO_N "checking for Tcl private headers. dir=${configdir}... $ECHO_C" >&6
22829 # Check whether --with-tclinclude or --without-tclinclude was given.
22830 if test "${with_tclinclude+set}" = set; then
22831 withval="$with_tclinclude"
22832 with_tclinclude=${withval}
22834 if test "${ac_cv_c_tclh+set}" = set; then
22835 echo $ECHO_N "(cached) $ECHO_C" >&6
22838 # first check to see if --with-tclinclude was specified
22839 if test x"${with_tclinclude}" != x ; then
22840 if test -f ${with_tclinclude}/tclInt.h ; then
22841 ac_cv_c_tclh=`(cd ${with_tclinclude}; pwd)`
22842 elif test -f ${with_tclinclude}/generic/tclInt.h ; then
22843 ac_cv_c_tclh=`(cd ${with_tclinclude}/generic; pwd)`
22845 { { echo "$as_me:$LINENO: error: ${with_tclinclude} directory doesn't contain private headers" >&5
22846 echo "$as_me: error: ${with_tclinclude} directory doesn't contain private headers" >&2;}
22847 { (exit 1); exit 1; }; }
22851 # next check if it came with Tcl configuration file
22852 if test x"${ac_cv_c_tclconfig}" = x ; then
22853 if test -f $ac_cv_c_tclconfig/../generic/tclInt.h ; then
22854 ac_cv_c_tclh=`(cd $ac_cv_c_tclconfig/..; pwd)`
22858 # next check in private source directory
22860 # since ls returns lowest version numbers first, reverse its output
22861 if test x"${ac_cv_c_tclh}" = x ; then
22864 `ls -dr ${srcdir}/../tcl[7-9]* 2>/dev/null` \
22865 ${srcdir}/../../tcl \
22866 `ls -dr ${srcdir}/../../tcl[7-9]* 2>/dev/null` \
22867 ${srcdir}/../../../tcl \
22868 `ls -dr ${srcdir}/../../../tcl[7-9]* 2>/dev/null ` ; do
22869 if test -f $i/generic/tclInt.h ; then
22870 ac_cv_c_tclh=`(cd $i/generic; pwd)`
22875 # finally check in a few common install locations
22877 # since ls returns lowest version numbers first, reverse its output
22878 if test x"${ac_cv_c_tclh}" = x ; then
22880 `ls -dr /usr/local/src/tcl[7-9]* 2>/dev/null` \
22881 `ls -dr /usr/local/lib/tcl[7-9]* 2>/dev/null` \
22882 /usr/local/src/tcl \
22883 /usr/local/lib/tcl \
22884 ${prefix}/include ; do
22885 if test -f $i/generic/tclInt.h ; then
22886 ac_cv_c_tclh=`(cd $i/generic; pwd)`
22891 # see if one is installed
22892 if test x"${ac_cv_c_tclh}" = x ; then
22893 if test "${ac_cv_header_tclInt_h+set}" = set; then
22894 echo "$as_me:$LINENO: checking for tclInt.h" >&5
22895 echo $ECHO_N "checking for tclInt.h... $ECHO_C" >&6
22896 if test "${ac_cv_header_tclInt_h+set}" = set; then
22897 echo $ECHO_N "(cached) $ECHO_C" >&6
22899 echo "$as_me:$LINENO: result: $ac_cv_header_tclInt_h" >&5
22900 echo "${ECHO_T}$ac_cv_header_tclInt_h" >&6
22902 # Is the header compilable?
22903 echo "$as_me:$LINENO: checking tclInt.h usability" >&5
22904 echo $ECHO_N "checking tclInt.h usability... $ECHO_C" >&6
22905 cat >conftest.$ac_ext <<_ACEOF
22908 cat confdefs.h >>conftest.$ac_ext
22909 cat >>conftest.$ac_ext <<_ACEOF
22910 /* end confdefs.h. */
22911 $ac_includes_default
22912 #include <tclInt.h>
22914 rm -f conftest.$ac_objext
22915 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
22916 (eval $ac_compile) 2>conftest.er1
22918 grep -v '^ *+' conftest.er1 >conftest.err
22920 cat conftest.err >&5
22921 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22922 (exit $ac_status); } &&
22923 { ac_try='test -z "$ac_c_werror_flag"
22924 || test ! -s conftest.err'
22925 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
22926 (eval $ac_try) 2>&5
22928 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22929 (exit $ac_status); }; } &&
22930 { ac_try='test -s conftest.$ac_objext'
22931 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
22932 (eval $ac_try) 2>&5
22934 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22935 (exit $ac_status); }; }; then
22936 ac_header_compiler=yes
22938 echo "$as_me: failed program was:" >&5
22939 sed 's/^/| /' conftest.$ac_ext >&5
22941 ac_header_compiler=no
22943 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
22944 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
22945 echo "${ECHO_T}$ac_header_compiler" >&6
22947 # Is the header present?
22948 echo "$as_me:$LINENO: checking tclInt.h presence" >&5
22949 echo $ECHO_N "checking tclInt.h presence... $ECHO_C" >&6
22950 cat >conftest.$ac_ext <<_ACEOF
22953 cat confdefs.h >>conftest.$ac_ext
22954 cat >>conftest.$ac_ext <<_ACEOF
22955 /* end confdefs.h. */
22956 #include <tclInt.h>
22958 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
22959 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
22961 grep -v '^ *+' conftest.er1 >conftest.err
22963 cat conftest.err >&5
22964 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22965 (exit $ac_status); } >/dev/null; then
22966 if test -s conftest.err; then
22967 ac_cpp_err=$ac_c_preproc_warn_flag
22968 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
22975 if test -z "$ac_cpp_err"; then
22976 ac_header_preproc=yes
22978 echo "$as_me: failed program was:" >&5
22979 sed 's/^/| /' conftest.$ac_ext >&5
22981 ac_header_preproc=no
22983 rm -f conftest.err conftest.$ac_ext
22984 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
22985 echo "${ECHO_T}$ac_header_preproc" >&6
22987 # So? What about this header?
22988 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
22990 { echo "$as_me:$LINENO: WARNING: tclInt.h: accepted by the compiler, rejected by the preprocessor!" >&5
22991 echo "$as_me: WARNING: tclInt.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
22992 { echo "$as_me:$LINENO: WARNING: tclInt.h: proceeding with the compiler's result" >&5
22993 echo "$as_me: WARNING: tclInt.h: proceeding with the compiler's result" >&2;}
22994 ac_header_preproc=yes
22997 { echo "$as_me:$LINENO: WARNING: tclInt.h: present but cannot be compiled" >&5
22998 echo "$as_me: WARNING: tclInt.h: present but cannot be compiled" >&2;}
22999 { echo "$as_me:$LINENO: WARNING: tclInt.h: check for missing prerequisite headers?" >&5
23000 echo "$as_me: WARNING: tclInt.h: check for missing prerequisite headers?" >&2;}
23001 { echo "$as_me:$LINENO: WARNING: tclInt.h: see the Autoconf documentation" >&5
23002 echo "$as_me: WARNING: tclInt.h: see the Autoconf documentation" >&2;}
23003 { echo "$as_me:$LINENO: WARNING: tclInt.h: section \"Present But Cannot Be Compiled\"" >&5
23004 echo "$as_me: WARNING: tclInt.h: section \"Present But Cannot Be Compiled\"" >&2;}
23005 { echo "$as_me:$LINENO: WARNING: tclInt.h: proceeding with the preprocessor's result" >&5
23006 echo "$as_me: WARNING: tclInt.h: proceeding with the preprocessor's result" >&2;}
23007 { echo "$as_me:$LINENO: WARNING: tclInt.h: in the future, the compiler will take precedence" >&5
23008 echo "$as_me: WARNING: tclInt.h: in the future, the compiler will take precedence" >&2;}
23011 ## ------------------------------------------ ##
23012 ## Report this to the AC_PACKAGE_NAME lists. ##
23013 ## ------------------------------------------ ##
23016 sed "s/^/$as_me: WARNING: /" >&2
23019 echo "$as_me:$LINENO: checking for tclInt.h" >&5
23020 echo $ECHO_N "checking for tclInt.h... $ECHO_C" >&6
23021 if test "${ac_cv_header_tclInt_h+set}" = set; then
23022 echo $ECHO_N "(cached) $ECHO_C" >&6
23024 ac_cv_header_tclInt_h=$ac_header_preproc
23026 echo "$as_me:$LINENO: result: $ac_cv_header_tclInt_h" >&5
23027 echo "${ECHO_T}$ac_cv_header_tclInt_h" >&6
23030 if test $ac_cv_header_tclInt_h = yes; then
23031 ac_cv_c_tclh=installed
23041 if test x"${ac_cv_c_tclh}" = x ; then
23042 TCLHDIR="# no Tcl private headers found"
23043 { { echo "$as_me:$LINENO: error: Can't find Tcl private headers" >&5
23044 echo "$as_me: error: Can't find Tcl private headers" >&2;}
23045 { (exit 1); exit 1; }; }
23047 if test x"${ac_cv_c_tclh}" != x ; then
23049 if test x"${ac_cv_c_tclh}" = x"installed" ; then
23050 echo "$as_me:$LINENO: result: is installed" >&5
23051 echo "${ECHO_T}is installed" >&6
23054 echo "$as_me:$LINENO: result: found in ${ac_cv_c_tclh}" >&5
23055 echo "${ECHO_T}found in ${ac_cv_c_tclh}" >&6
23056 # this hack is cause the TCLHDIR won't print if there is a "-I" in it.
23057 TCLHDIR="-I${ac_cv_c_tclh}"
23065 # Ok, lets find the tk source trees so we can use the headers
23066 # If the directory (presumably symlink) named "tk" exists, use that one
23067 # in preference to any others. Same logic is used when choosing library
23068 # and again with Tcl. The search order is the best place to look first, then in
23069 # decreasing significance. The loop breaks if the trigger file is found.
23070 # Note the gross little conversion here of srcdir by cd'ing to the found
23071 # directory. This converts the path from a relative to an absolute, so
23072 # recursive cache variables for the path will work right. We check all
23073 # the possible paths in one loop rather than many seperate loops to speed
23075 # the alternative search directory is involked by --with-tkinclude
23078 echo "$as_me:$LINENO: checking for Tk private headers" >&5
23079 echo $ECHO_N "checking for Tk private headers... $ECHO_C" >&6
23081 # Check whether --with-tkinclude or --without-tkinclude was given.
23082 if test "${with_tkinclude+set}" = set; then
23083 withval="$with_tkinclude"
23084 with_tkinclude=${withval}
23086 if test "${ac_cv_c_tkh+set}" = set; then
23087 echo $ECHO_N "(cached) $ECHO_C" >&6
23090 # first check to see if --with-tkinclude was specified
23091 if test x"${with_tkinclude}" != x ; then
23092 if test -f ${with_tkinclude}/tk.h ; then
23093 ac_cv_c_tkh=`(cd ${with_tkinclude}; pwd)`
23094 elif test -f ${with_tkinclude}/generic/tk.h ; then
23095 ac_cv_c_tkh=`(cd ${with_tkinclude}/generic; pwd)`
23097 { { echo "$as_me:$LINENO: error: ${with_tkinclude} directory doesn't contain private headers" >&5
23098 echo "$as_me: error: ${with_tkinclude} directory doesn't contain private headers" >&2;}
23099 { (exit 1); exit 1; }; }
23103 # next check if it came with Tk configuration file
23104 if test x"${ac_cv_c_tkconfig}" = x ; then
23105 if test -f $ac_cv_c_tkconfig/../generic/tk.h ; then
23106 ac_cv_c_tkh=`(cd $ac_cv_c_tkconfig/..; pwd)`
23110 # next check in private source directory
23112 # since ls returns lowest version numbers first, reverse its output
23113 if test x"${ac_cv_c_tkh}" = x ; then
23116 `ls -dr ${srcdir}/../tk[4-9]* 2>/dev/null` \
23117 ${srcdir}/../../tk \
23118 `ls -dr ${srcdir}/../../tk[4-9]* 2>/dev/null` \
23119 ${srcdir}/../../../tk \
23120 `ls -dr ${srcdir}/../../../tk[4-9]* 2>/dev/null ` ; do
23121 if test -f $i/generic/tk.h ; then
23122 ac_cv_c_tkh=`(cd $i/generic; pwd)`
23127 # finally check in a few common install locations
23129 # since ls returns lowest version numbers first, reverse its output
23130 if test x"${ac_cv_c_tkh}" = x ; then
23132 `ls -dr /usr/local/src/tk[4-9]* 2>/dev/null` \
23133 `ls -dr /usr/local/lib/tk[4-9]* 2>/dev/null` \
23134 /usr/local/src/tk \
23135 /usr/local/lib/tk \
23136 ${prefix}/include ; do
23137 if test -f $i/generic/tk.h ; then
23138 ac_cv_c_tkh=`(cd $i/generic; pwd)`
23143 # see if one is installed
23144 if test x"${ac_cv_c_tkh}" = x ; then
23145 if test "${ac_cv_header_tk_h+set}" = set; then
23146 echo "$as_me:$LINENO: checking for tk.h" >&5
23147 echo $ECHO_N "checking for tk.h... $ECHO_C" >&6
23148 if test "${ac_cv_header_tk_h+set}" = set; then
23149 echo $ECHO_N "(cached) $ECHO_C" >&6
23151 echo "$as_me:$LINENO: result: $ac_cv_header_tk_h" >&5
23152 echo "${ECHO_T}$ac_cv_header_tk_h" >&6
23154 # Is the header compilable?
23155 echo "$as_me:$LINENO: checking tk.h usability" >&5
23156 echo $ECHO_N "checking tk.h usability... $ECHO_C" >&6
23157 cat >conftest.$ac_ext <<_ACEOF
23160 cat confdefs.h >>conftest.$ac_ext
23161 cat >>conftest.$ac_ext <<_ACEOF
23162 /* end confdefs.h. */
23163 $ac_includes_default
23166 rm -f conftest.$ac_objext
23167 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
23168 (eval $ac_compile) 2>conftest.er1
23170 grep -v '^ *+' conftest.er1 >conftest.err
23172 cat conftest.err >&5
23173 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23174 (exit $ac_status); } &&
23175 { ac_try='test -z "$ac_c_werror_flag"
23176 || test ! -s conftest.err'
23177 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
23178 (eval $ac_try) 2>&5
23180 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23181 (exit $ac_status); }; } &&
23182 { ac_try='test -s conftest.$ac_objext'
23183 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
23184 (eval $ac_try) 2>&5
23186 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23187 (exit $ac_status); }; }; then
23188 ac_header_compiler=yes
23190 echo "$as_me: failed program was:" >&5
23191 sed 's/^/| /' conftest.$ac_ext >&5
23193 ac_header_compiler=no
23195 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
23196 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
23197 echo "${ECHO_T}$ac_header_compiler" >&6
23199 # Is the header present?
23200 echo "$as_me:$LINENO: checking tk.h presence" >&5
23201 echo $ECHO_N "checking tk.h presence... $ECHO_C" >&6
23202 cat >conftest.$ac_ext <<_ACEOF
23205 cat confdefs.h >>conftest.$ac_ext
23206 cat >>conftest.$ac_ext <<_ACEOF
23207 /* end confdefs.h. */
23210 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
23211 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
23213 grep -v '^ *+' conftest.er1 >conftest.err
23215 cat conftest.err >&5
23216 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23217 (exit $ac_status); } >/dev/null; then
23218 if test -s conftest.err; then
23219 ac_cpp_err=$ac_c_preproc_warn_flag
23220 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
23227 if test -z "$ac_cpp_err"; then
23228 ac_header_preproc=yes
23230 echo "$as_me: failed program was:" >&5
23231 sed 's/^/| /' conftest.$ac_ext >&5
23233 ac_header_preproc=no
23235 rm -f conftest.err conftest.$ac_ext
23236 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
23237 echo "${ECHO_T}$ac_header_preproc" >&6
23239 # So? What about this header?
23240 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
23242 { echo "$as_me:$LINENO: WARNING: tk.h: accepted by the compiler, rejected by the preprocessor!" >&5
23243 echo "$as_me: WARNING: tk.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
23244 { echo "$as_me:$LINENO: WARNING: tk.h: proceeding with the compiler's result" >&5
23245 echo "$as_me: WARNING: tk.h: proceeding with the compiler's result" >&2;}
23246 ac_header_preproc=yes
23249 { echo "$as_me:$LINENO: WARNING: tk.h: present but cannot be compiled" >&5
23250 echo "$as_me: WARNING: tk.h: present but cannot be compiled" >&2;}
23251 { echo "$as_me:$LINENO: WARNING: tk.h: check for missing prerequisite headers?" >&5
23252 echo "$as_me: WARNING: tk.h: check for missing prerequisite headers?" >&2;}
23253 { echo "$as_me:$LINENO: WARNING: tk.h: see the Autoconf documentation" >&5
23254 echo "$as_me: WARNING: tk.h: see the Autoconf documentation" >&2;}
23255 { echo "$as_me:$LINENO: WARNING: tk.h: section \"Present But Cannot Be Compiled\"" >&5
23256 echo "$as_me: WARNING: tk.h: section \"Present But Cannot Be Compiled\"" >&2;}
23257 { echo "$as_me:$LINENO: WARNING: tk.h: proceeding with the preprocessor's result" >&5
23258 echo "$as_me: WARNING: tk.h: proceeding with the preprocessor's result" >&2;}
23259 { echo "$as_me:$LINENO: WARNING: tk.h: in the future, the compiler will take precedence" >&5
23260 echo "$as_me: WARNING: tk.h: in the future, the compiler will take precedence" >&2;}
23263 ## ------------------------------------------ ##
23264 ## Report this to the AC_PACKAGE_NAME lists. ##
23265 ## ------------------------------------------ ##
23268 sed "s/^/$as_me: WARNING: /" >&2
23271 echo "$as_me:$LINENO: checking for tk.h" >&5
23272 echo $ECHO_N "checking for tk.h... $ECHO_C" >&6
23273 if test "${ac_cv_header_tk_h+set}" = set; then
23274 echo $ECHO_N "(cached) $ECHO_C" >&6
23276 ac_cv_header_tk_h=$ac_header_preproc
23278 echo "$as_me:$LINENO: result: $ac_cv_header_tk_h" >&5
23279 echo "${ECHO_T}$ac_cv_header_tk_h" >&6
23282 if test $ac_cv_header_tk_h = yes; then
23283 ac_cv_c_tkh=installed
23293 if test x"${ac_cv_c_tkh}" != x ; then
23295 if test x"${ac_cv_c_tkh}" = x"installed" ; then
23296 echo "$as_me:$LINENO: result: is installed" >&5
23297 echo "${ECHO_T}is installed" >&6
23300 echo "$as_me:$LINENO: result: found in ${ac_cv_c_tkh}" >&5
23301 echo "${ECHO_T}found in ${ac_cv_c_tkh}" >&6
23302 # this hack is cause the TKHDIR won't print if there is a "-I" in it.
23303 TKHDIR="-I${ac_cv_c_tkh}"
23306 TKHDIR="# no Tk directory found"
23307 { echo "$as_me:$LINENO: WARNING: Can't find Tk private headers" >&5
23308 echo "$as_me: WARNING: Can't find Tk private headers" >&2;}
23315 echo "$as_me:$LINENO: checking for Itcl private headers. srcdir=${srcdir}" >&5
23316 echo $ECHO_N "checking for Itcl private headers. srcdir=${srcdir}... $ECHO_C" >&6
23317 if test x"${ac_cv_c_itclh}" = x ; then
23318 for i in ${srcdir}/../itcl ${srcdir}/../../itcl ${srcdir}/../../../itcl ${srcdir}/../itcl/itcl; do
23319 if test -f $i/generic/itcl.h ; then
23320 ac_cv_c_itclh=`(cd $i/generic; pwd)`
23325 if test x"${ac_cv_c_itclh}" = x ; then
23326 ITCLHDIR="# no Itcl private headers found"
23327 { { echo "$as_me:$LINENO: error: Can't find Itcl private headers" >&5
23328 echo "$as_me: error: Can't find Itcl private headers" >&2;}
23329 { (exit 1); exit 1; }; }
23331 if test x"${ac_cv_c_itclh}" != x ; then
23332 ITCLHDIR="-I${ac_cv_c_itclh}"
23334 # should always be here
23335 # ITCLLIB="../itcl/itcl/unix/libitcl.a"
23340 echo "$as_me:$LINENO: checking for Itk private headers. srcdir=${srcdir}" >&5
23341 echo $ECHO_N "checking for Itk private headers. srcdir=${srcdir}... $ECHO_C" >&6
23342 if test x"${ac_cv_c_itkh}" = x ; then
23343 for i in ${srcdir}/../itcl ${srcdir}/../../itcl ${srcdir}/../../../itcl ${srcdir}/../itcl/itk; do
23344 if test -f $i/generic/itk.h ; then
23345 ac_cv_c_itkh=`(cd $i/generic; pwd)`
23350 if test x"${ac_cv_c_itkh}" = x ; then
23351 ITKHDIR="# no Itk private headers found"
23352 { { echo "$as_me:$LINENO: error: Can't find Itk private headers" >&5
23353 echo "$as_me: error: Can't find Itk private headers" >&2;}
23354 { (exit 1); exit 1; }; }
23356 if test x"${ac_cv_c_itkh}" != x ; then
23357 ITKHDIR="-I${ac_cv_c_itkh}"
23359 # should always be here
23360 # ITKLIB="../itcl/itk/unix/libitk.a"
23366 # now look for Tk library stuff
23368 tkdir="../tk/${configdir}/"
23370 TK_DEPS="${tkdir}${TK_LIB_FILE}"
23372 # now look for Itcl library stuff
23376 # Ok, lets find the itcl configuration
23377 # First, look for one uninstalled.
23378 # the alternative search directory is invoked by --with-itclconfig
23381 if test x"${no_itcl}" = x ; then
23382 # we reset no_itcl in case something fails here
23385 # Check whether --with-itclconfig or --without-itclconfig was given.
23386 if test "${with_itclconfig+set}" = set; then
23387 withval="$with_itclconfig"
23388 with_itclconfig=${withval}
23390 echo "$as_me:$LINENO: checking for Itcl configuration" >&5
23391 echo $ECHO_N "checking for Itcl configuration... $ECHO_C" >&6
23392 if test "${ac_cv_c_itclconfig+set}" = set; then
23393 echo $ECHO_N "(cached) $ECHO_C" >&6
23397 # First check to see if --with-itclconfig was specified.
23398 if test x"${with_itclconfig}" != x ; then
23399 if test -f "${with_itclconfig}/itclConfig.sh" ; then
23400 ac_cv_c_itclconfig=`(cd ${with_itclconfig}; pwd)`
23402 { { echo "$as_me:$LINENO: error: ${with_itclconfig} directory doesn't contain itclConfig.sh" >&5
23403 echo "$as_me: error: ${with_itclconfig} directory doesn't contain itclConfig.sh" >&2;}
23404 { (exit 1); exit 1; }; }
23408 # then check for a private Itcl library
23409 if test x"${ac_cv_c_itclconfig}" = x ; then
23412 `ls -dr ../itcl[4-9]*/itcl 2>/dev/null` \
23414 `ls -dr ../../itcl[4-9]*/itcl 2>/dev/null` \
23416 `ls -dr ../../../itcl[4-9]*/itcl 2>/dev/null` ; do
23417 if test -f "$i/itclConfig.sh" ; then
23418 ac_cv_c_itclconfig=`(cd $i; pwd)`
23423 # check in a few common install locations
23424 if test x"${ac_cv_c_itclconfig}" = x ; then
23425 for i in `ls -d ${prefix}/lib /usr/local/lib 2>/dev/null` ; do
23426 if test -f "$i/itclConfig.sh" ; then
23427 ac_cv_c_itclconfig=`(cd $i; pwd)`
23432 # check in a few other private locations
23433 if test x"${ac_cv_c_itclconfig}" = x ; then
23435 ${srcdir}/../itcl/itcl \
23436 `ls -dr ${srcdir}/../itcl[4-9]*/itcl 2>/dev/null` ; do
23437 if test -f "$i/itclConfig.sh" ; then
23438 ac_cv_c_itclconfig=`(cd $i; pwd)`
23446 if test x"${ac_cv_c_itclconfig}" = x ; then
23447 ITCLCONFIG="# no Itcl configs found"
23448 { echo "$as_me:$LINENO: WARNING: Can't find Itcl configuration definitions" >&5
23449 echo "$as_me: WARNING: Can't find Itcl configuration definitions" >&2;}
23452 ITCLCONFIG=${ac_cv_c_itclconfig}/itclConfig.sh
23453 echo "$as_me:$LINENO: result: found $ITCLCONFIG" >&5
23454 echo "${ECHO_T}found $ITCLCONFIG" >&6
23458 if test -z "${no_itcl}"; then
23460 if test -f "$ITCLCONFIG" ; then
23475 ITCLLIB="${ITCL_BUILD_LIB_SPEC}"
23476 ITCL_DEPS="${ITCL_LIB_FULL_PATH}"
23480 # now look for Itk library stuff
23483 # Ok, lets find the itk configuration
23484 # First, look for one uninstalled.
23485 # the alternative search directory is invoked by --with-itkconfig
23488 if test x"${no_itk}" = x ; then
23489 # we reset no_itk in case something fails here
23492 # Check whether --with-itkconfig or --without-itkconfig was given.
23493 if test "${with_itkconfig+set}" = set; then
23494 withval="$with_itkconfig"
23495 with_itkconfig=${withval}
23497 echo "$as_me:$LINENO: checking for Itk configuration" >&5
23498 echo $ECHO_N "checking for Itk configuration... $ECHO_C" >&6
23499 if test "${ac_cv_c_itkconfig+set}" = set; then
23500 echo $ECHO_N "(cached) $ECHO_C" >&6
23504 # First check to see if --with-itkconfig was specified.
23505 if test x"${with_itkconfig}" != x ; then
23506 if test -f "${with_itkconfig}/itkConfig.sh" ; then
23507 ac_cv_c_itkconfig=`(cd ${with_itkconfig}; pwd)`
23509 { { echo "$as_me:$LINENO: error: ${with_itkconfig} directory doesn't contain itkConfig.sh" >&5
23510 echo "$as_me: error: ${with_itkconfig} directory doesn't contain itkConfig.sh" >&2;}
23511 { (exit 1); exit 1; }; }
23515 # then check for a private Itk library
23516 if test x"${ac_cv_c_itkconfig}" = x ; then
23519 `ls -dr ../itcl[4-9]*/itk 2>/dev/null` \
23521 `ls -dr ../../itcl[4-9]*/itk 2>/dev/null` \
23523 `ls -dr ../../../itcl[4-9]*/itk 2>/dev/null` ; do
23524 if test -f "$i/itkConfig.sh" ; then
23525 ac_cv_c_itkconfig=`(cd $i; pwd)`
23530 # check in a few common install locations
23531 if test x"${ac_cv_c_itkconfig}" = x ; then
23532 for i in `ls -d ${prefix}/lib /usr/local/lib 2>/dev/null` ; do
23533 if test -f "$i/itkConfig.sh" ; then
23534 ac_cv_c_itkconfig=`(cd $i; pwd)`
23539 # check in a few other private locations
23540 if test x"${ac_cv_c_itkconfig}" = x ; then
23542 ${srcdir}/../itcl/itk \
23543 `ls -dr ${srcdir}/../itcl[4-9]*/itk 2>/dev/null` ; do
23544 if test -f "$i/itkConfig.sh" ; then
23545 ac_cv_c_itkconfig=`(cd $i; pwd)`
23553 if test x"${ac_cv_c_itkconfig}" = x ; then
23554 ITKCONFIG="# no Itk configs found"
23555 { echo "$as_me:$LINENO: WARNING: Can't find Itk configuration definitions" >&5
23556 echo "$as_me: WARNING: Can't find Itk configuration definitions" >&2;}
23559 ITKCONFIG=${ac_cv_c_itkconfig}/itkConfig.sh
23560 echo "$as_me:$LINENO: result: found $ITKCONFIG" >&5
23561 echo "${ECHO_T}found $ITKCONFIG" >&6
23566 if test -z "${no_itcl}"; then
23568 if test -f "$ITKCONFIG" ; then
23583 ITKLIB="${ITK_BUILD_LIB_SPEC}"
23584 ITK_DEPS="${ITK_LIB_FULL_PATH}"
23587 ENABLE_CFLAGS="${ENABLE_CFLAGS} \$(SUBDIR_GDBTK_CFLAGS)"
23589 # Include some libraries that Tcl and Tk want.
23590 TCL_LIBS='$(LIBGUI) $(ITCL) $(ITK) $(TK) $(TCL) $(X11_LDFLAGS) $(X11_LIBS)'
23591 # Yes, the ordering seems wrong here. But it isn't.
23592 # TK_LIBS is the list of libraries that need to be linked
23593 # after Tcl/Tk. Note that this isn't put into LIBS. If it
23594 # were in LIBS then any link tests after this point would
23595 # try to include things like `$(LIBGUI)', which wouldn't work.
23596 GDBTKLIBS="${TCL_LIBS} ${TK_LIBS}"
23598 CONFIG_OBS="${CONFIG_OBS} \$(SUBDIR_GDBTK_OBS)"
23599 CONFIG_DEPS="${CONFIG_DEPS} \$(SUBDIR_GDBTK_DEPS)"
23600 CONFIG_SRCS="${CONFIG_SRCS} \$(SUBDIR_GDBTK_SRCS)"
23601 CONFIG_ALL="${CONFIG_ALL} all-gdbtk"
23602 CONFIG_CLEAN="${CONFIG_CLEAN} clean-gdbtk"
23603 CONFIG_INSTALL="${CONFIG_INSTALL} install-gdbtk"
23604 CONFIG_UNINSTALL="${CONFIG_UNINSTALL} uninstall-gdbtk"
23606 if test x$gdb_cv_os_cygwin = xyes; then
23607 WIN32LIBS="${WIN32LIBS} -lshell32 -lgdi32 -lcomdlg32 -ladvapi32"
23608 WIN32LDAPP="-Wl,--subsystem,console"
23609 CONFIG_OBS="${CONFIG_OBS} gdbres.o"
23616 subdirs="$subdirs gdbtk"
23633 echo "$as_me:$LINENO: checking for X" >&5
23634 echo $ECHO_N "checking for X... $ECHO_C" >&6
23637 # Check whether --with-x or --without-x was given.
23638 if test "${with_x+set}" = set; then
23642 # $have_x is `yes', `no', `disabled', or empty when we do not yet know.
23643 if test "x$with_x" = xno; then
23644 # The user explicitly disabled X.
23647 if test "x$x_includes" != xNONE && test "x$x_libraries" != xNONE; then
23648 # Both variables are already set.
23651 if test "${ac_cv_have_x+set}" = set; then
23652 echo $ECHO_N "(cached) $ECHO_C" >&6
23654 # One or both of the vars are not set, and there is no cached value.
23655 ac_x_includes=no ac_x_libraries=no
23656 rm -fr conftest.dir
23657 if mkdir conftest.dir; then
23659 # Make sure to not put "make" in the Imakefile rules, since we grep it out.
23660 cat >Imakefile <<'_ACEOF'
23662 @echo 'ac_im_incroot="${INCROOT}"; ac_im_usrlibdir="${USRLIBDIR}"; ac_im_libdir="${LIBDIR}"'
23664 if (xmkmf) >/dev/null 2>/dev/null && test -f Makefile; then
23665 # GNU make sometimes prints "make[1]: Entering...", which would confuse us.
23666 eval `${MAKE-make} acfindx 2>/dev/null | grep -v make`
23667 # Open Windows xmkmf reportedly sets LIBDIR instead of USRLIBDIR.
23668 for ac_extension in a so sl; do
23669 if test ! -f $ac_im_usrlibdir/libX11.$ac_extension &&
23670 test -f $ac_im_libdir/libX11.$ac_extension; then
23671 ac_im_usrlibdir=$ac_im_libdir; break
23674 # Screen out bogus values from the imake configuration. They are
23675 # bogus both because they are the default anyway, and because
23676 # using them would break gcc on systems where it needs fixed includes.
23677 case $ac_im_incroot in
23679 *) test -f "$ac_im_incroot/X11/Xos.h" && ac_x_includes=$ac_im_incroot;;
23681 case $ac_im_usrlibdir in
23682 /usr/lib | /lib) ;;
23683 *) test -d "$ac_im_usrlibdir" && ac_x_libraries=$ac_im_usrlibdir ;;
23687 rm -fr conftest.dir
23690 # Standard set of common directories for X headers.
23691 # Check X11 before X11Rn because it is often a symlink to the current release.
23703 /usr/local/X11/include
23704 /usr/local/X11R6/include
23705 /usr/local/X11R5/include
23706 /usr/local/X11R4/include
23708 /usr/local/include/X11
23709 /usr/local/include/X11R6
23710 /usr/local/include/X11R5
23711 /usr/local/include/X11R4
23715 /usr/XFree86/include/X11
23719 /usr/unsupported/include
23720 /usr/athena/include
23721 /usr/local/x11r5/include
23722 /usr/lpp/Xamples/include
23724 /usr/openwin/include
23725 /usr/openwin/share/include'
23727 if test "$ac_x_includes" = no; then
23728 # Guess where to find include files, by looking for Intrinsic.h.
23729 # First, try using that file with no special directory specified.
23730 cat >conftest.$ac_ext <<_ACEOF
23733 cat confdefs.h >>conftest.$ac_ext
23734 cat >>conftest.$ac_ext <<_ACEOF
23735 /* end confdefs.h. */
23736 #include <X11/Intrinsic.h>
23738 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
23739 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
23741 grep -v '^ *+' conftest.er1 >conftest.err
23743 cat conftest.err >&5
23744 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23745 (exit $ac_status); } >/dev/null; then
23746 if test -s conftest.err; then
23747 ac_cpp_err=$ac_c_preproc_warn_flag
23748 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
23755 if test -z "$ac_cpp_err"; then
23756 # We can compile using X headers with no special include directory.
23759 echo "$as_me: failed program was:" >&5
23760 sed 's/^/| /' conftest.$ac_ext >&5
23762 for ac_dir in $ac_x_header_dirs; do
23763 if test -r "$ac_dir/X11/Intrinsic.h"; then
23764 ac_x_includes=$ac_dir
23769 rm -f conftest.err conftest.$ac_ext
23770 fi # $ac_x_includes = no
23772 if test "$ac_x_libraries" = no; then
23773 # Check for the libraries.
23774 # See if we find them without any special options.
23775 # Don't add to $LIBS permanently.
23778 cat >conftest.$ac_ext <<_ACEOF
23781 cat confdefs.h >>conftest.$ac_ext
23782 cat >>conftest.$ac_ext <<_ACEOF
23783 /* end confdefs.h. */
23784 #include <X11/Intrinsic.h>
23793 rm -f conftest.$ac_objext conftest$ac_exeext
23794 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
23795 (eval $ac_link) 2>conftest.er1
23797 grep -v '^ *+' conftest.er1 >conftest.err
23799 cat conftest.err >&5
23800 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23801 (exit $ac_status); } &&
23802 { ac_try='test -z "$ac_c_werror_flag"
23803 || test ! -s conftest.err'
23804 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
23805 (eval $ac_try) 2>&5
23807 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23808 (exit $ac_status); }; } &&
23809 { ac_try='test -s conftest$ac_exeext'
23810 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
23811 (eval $ac_try) 2>&5
23813 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23814 (exit $ac_status); }; }; then
23816 # We can link X programs with no special library path.
23819 echo "$as_me: failed program was:" >&5
23820 sed 's/^/| /' conftest.$ac_ext >&5
23823 for ac_dir in `echo "$ac_x_includes $ac_x_header_dirs" | sed s/include/lib/g`
23825 # Don't even attempt the hair of trying to link an X program!
23826 for ac_extension in a so sl; do
23827 if test -r $ac_dir/libXt.$ac_extension; then
23828 ac_x_libraries=$ac_dir
23834 rm -f conftest.err conftest.$ac_objext \
23835 conftest$ac_exeext conftest.$ac_ext
23836 fi # $ac_x_libraries = no
23838 if test "$ac_x_includes" = no || test "$ac_x_libraries" = no; then
23839 # Didn't find X anywhere. Cache the known absence of X.
23840 ac_cv_have_x="have_x=no"
23842 # Record where we found X for the cache.
23843 ac_cv_have_x="have_x=yes \
23844 ac_x_includes=$ac_x_includes ac_x_libraries=$ac_x_libraries"
23849 eval "$ac_cv_have_x"
23852 if test "$have_x" != yes; then
23853 echo "$as_me:$LINENO: result: $have_x" >&5
23854 echo "${ECHO_T}$have_x" >&6
23857 # If each of the values was on the command line, it overrides each guess.
23858 test "x$x_includes" = xNONE && x_includes=$ac_x_includes
23859 test "x$x_libraries" = xNONE && x_libraries=$ac_x_libraries
23860 # Update the cache value to reflect the command line values.
23861 ac_cv_have_x="have_x=yes \
23862 ac_x_includes=$x_includes ac_x_libraries=$x_libraries"
23863 echo "$as_me:$LINENO: result: libraries $x_libraries, headers $x_includes" >&5
23864 echo "${ECHO_T}libraries $x_libraries, headers $x_includes" >&6
23868 # Check whether we should enable the TUI, but only do so if we really
23870 if test x"$enable_tui" = xyes; then
23871 if test -d $srcdir/tui; then
23872 if test "$ac_cv_search_waddstr" != no; then
23873 CONFIG_OBS="$CONFIG_OBS \$(SUBDIR_TUI_OBS)"
23874 CONFIG_DEPS="$CONFIG_DEPS \$(SUBDIR_TUI_DEPS)"
23875 CONFIG_SRCS="$CONFIG_SRCS \$(SUBDIR_TUI_SRCS)"
23876 CONFIG_INITS="$CONFIG_INITS \$(SUBDIR_TUI_INITS)"
23877 ENABLE_CFLAGS="$ENABLE_CFLAGS \$(SUBDIR_TUI_CFLAGS)"
23878 CONFIG_ALL="${CONFIG_ALL} all-tui"
23879 CONFIG_CLEAN="${CONFIG_CLEAN} clean-tui"
23880 CONFIG_INSTALL="${CONFIG_INSTALL} install-tui"
23881 CONFIG_UNINSTALL="${CONFIG_UNINSTALL} uninstall-tui"
23883 { echo "$as_me:$LINENO: WARNING: no enhanced curses library found; disabling TUI" >&5
23884 echo "$as_me: WARNING: no enhanced curses library found; disabling TUI" >&2;}
23889 # Unlike the sim directory, whether a simulator is linked is controlled by
23890 # presence of a SIM= and a SIM_OBS= definition in the target '.mt' file.
23891 # This code just checks for a few cases where we'd like to ignore those
23892 # definitions, even when they're present in the '.mt' file. These cases
23893 # are when --disable-sim is specified, or if the simulator directory is
23894 # not part of the source tree.
23896 # Check whether --enable-sim or --disable-sim was given.
23897 if test "${enable_sim+set}" = set; then
23898 enableval="$enable_sim"
23899 echo "enable_sim = $enable_sim";
23900 echo "enableval = ${enableval}";
23901 case "${enableval}" in
23902 yes) ignore_sim=false ;;
23903 no) ignore_sim=true ;;
23904 *) ignore_sim=false ;;
23910 if test ! -d "${srcdir}/../sim"; then
23914 if test "${ignore_sim}" = "true"; then
23916 IGNORE_SIM_OBS="SIM_OBS="
23921 cat >>confdefs.h <<\_ACEOF
23940 # List of host floatformats.
23942 cat >>confdefs.h <<_ACEOF
23943 #define GDB_HOST_FLOAT_FORMAT $gdb_host_float_format
23947 cat >>confdefs.h <<_ACEOF
23948 #define GDB_HOST_DOUBLE_FORMAT $gdb_host_double_format
23952 cat >>confdefs.h <<_ACEOF
23953 #define GDB_HOST_LONG_DOUBLE_FORMAT $gdb_host_long_double_format
23957 # target_subdir is used by the testsuite to find the target libraries.
23959 if test "${host}" != "${target}"; then
23960 target_subdir="${target_alias}/"
23965 if test "${gdb_native}" = "yes"; then
23966 host_makefile_frag=${srcdir}/config/${gdb_host_cpu}/${gdb_host}.mh
23967 if test ! -f ${host_makefile_frag}; then
23968 { { echo "$as_me:$LINENO: error: \"*** Gdb does not support native target ${host}\"" >&5
23969 echo "$as_me: error: \"*** Gdb does not support native target ${host}\"" >&2;}
23970 { (exit 1); exit 1; }; }
23972 frags="$frags $host_makefile_frag"
23974 host_makefile_frag=/dev/null
23977 target_makefile_frag=${srcdir}/config/${gdb_target_cpu}/${gdb_target}.mt
23978 if test ! -f ${target_makefile_frag}; then
23979 { { echo "$as_me:$LINENO: error: \"*** Gdb does not support target ${target}\"" >&5
23980 echo "$as_me: error: \"*** Gdb does not support target ${target}\"" >&2;}
23981 { (exit 1); exit 1; }; }
23983 frags="$frags $target_makefile_frag"
23989 if test "${gdb_native}" = "yes"; then
23990 # We pick this up from the host configuration file (.mh) because we
23991 # do not have a native configuration Makefile fragment.
23992 nativefile=`sed -n '
23993 s/NAT_FILE[ ]*=[ ]*\([^ ]*\)/\1/p
23994 ' ${host_makefile_frag}`
23998 if test x"${gdb_osabi}" != x ; then
24000 cat >>confdefs.h <<_ACEOF
24001 #define GDB_OSABI_DEFAULT $gdb_osabi
24006 # Enable multi-ice-gdb-server.
24007 # Check whether --enable-multi-ice or --disable-multi-ice was given.
24008 if test "${enable_multi_ice+set}" = set; then
24009 enableval="$enable_multi_ice"
24013 *) { { echo "$as_me:$LINENO: error: bad value $enableval for --enable-multi-ice" >&5
24014 echo "$as_me: error: bad value $enableval for --enable-multi-ice" >&2;}
24015 { (exit 1); exit 1; }; } ;;
24018 if test "x$enable_multi_ice" = xyes; then
24021 subdirs="$subdirs multi-ice"
24025 # We only build gdbserver automatically in a native configuration.
24026 if test "$gdb_native" = "yes"; then
24027 echo "$as_me:$LINENO: checking whether gdbserver is supported on this host" >&5
24028 echo $ECHO_N "checking whether gdbserver is supported on this host... $ECHO_C" >&6
24029 if test "x$build_gdbserver" = xyes; then
24030 echo "$as_me:$LINENO: result: yes" >&5
24031 echo "${ECHO_T}yes" >&6
24034 subdirs="$subdirs gdbserver"
24037 echo "$as_me:$LINENO: result: no" >&5
24038 echo "${ECHO_T}no" >&6
24042 # If nativefile (NAT_FILE) is not set in config/*/*.m[ht] files, we link
24043 # to an empty version.
24050 if test "${nativefile}" != ""; then
24052 case "${nativefile}" in
24053 nm-*.h ) GDB_NM_FILE="config/${gdb_host_cpu}/${nativefile}" ;;
24054 * ) GDB_NM_FILE="${nativefile}"
24056 files="${files} ${GDB_NM_FILE}"
24057 links="${links} nm.h"
24059 cat >>confdefs.h <<_ACEOF
24060 #define GDB_NM_FILE "${GDB_NM_FILE}"
24066 ac_sources="$files"
24068 while test -n "$ac_sources"; do
24069 set $ac_dests; ac_dest=$1; shift; ac_dests=$*
24070 set $ac_sources; ac_source=$1; shift; ac_sources=$*
24071 ac_config_links_1="$ac_config_links_1 $ac_dest:$ac_source"
24073 ac_config_links="$ac_config_links $ac_config_links_1"
24080 cat >>confdefs.h <<\_ACEOF
24081 #define GDB_DEFAULT_HOST_CHARSET "ISO-8859-1"
24088 # Check whether --with-libiconv-prefix or --without-libiconv-prefix was given.
24089 if test "${with_libiconv_prefix+set}" = set; then
24090 withval="$with_libiconv_prefix"
24092 for dir in `echo "$withval" | tr : ' '`; do
24093 if test -d $dir/include; then CPPFLAGS="$CPPFLAGS -I$dir/include"; fi
24094 if test -d $dir/lib; then LDFLAGS="$LDFLAGS -L$dir/lib"; fi
24099 echo "$as_me:$LINENO: checking for iconv" >&5
24100 echo $ECHO_N "checking for iconv... $ECHO_C" >&6
24101 if test "${am_cv_func_iconv+set}" = set; then
24102 echo $ECHO_N "(cached) $ECHO_C" >&6
24105 am_cv_func_iconv="no, consider installing GNU libiconv"
24107 cat >conftest.$ac_ext <<_ACEOF
24110 cat confdefs.h >>conftest.$ac_ext
24111 cat >>conftest.$ac_ext <<_ACEOF
24112 /* end confdefs.h. */
24113 #include <stdlib.h>
24118 iconv_t cd = iconv_open("","");
24119 iconv(cd,NULL,NULL,NULL,NULL);
24125 rm -f conftest.$ac_objext conftest$ac_exeext
24126 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
24127 (eval $ac_link) 2>conftest.er1
24129 grep -v '^ *+' conftest.er1 >conftest.err
24131 cat conftest.err >&5
24132 echo "$as_me:$LINENO: \$? = $ac_status" >&5
24133 (exit $ac_status); } &&
24134 { ac_try='test -z "$ac_c_werror_flag"
24135 || test ! -s conftest.err'
24136 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
24137 (eval $ac_try) 2>&5
24139 echo "$as_me:$LINENO: \$? = $ac_status" >&5
24140 (exit $ac_status); }; } &&
24141 { ac_try='test -s conftest$ac_exeext'
24142 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
24143 (eval $ac_try) 2>&5
24145 echo "$as_me:$LINENO: \$? = $ac_status" >&5
24146 (exit $ac_status); }; }; then
24147 am_cv_func_iconv=yes
24149 echo "$as_me: failed program was:" >&5
24150 sed 's/^/| /' conftest.$ac_ext >&5
24153 rm -f conftest.err conftest.$ac_objext \
24154 conftest$ac_exeext conftest.$ac_ext
24155 if test "$am_cv_func_iconv" != yes; then
24156 am_save_LIBS="$LIBS"
24157 LIBS="$LIBS -liconv"
24158 cat >conftest.$ac_ext <<_ACEOF
24161 cat confdefs.h >>conftest.$ac_ext
24162 cat >>conftest.$ac_ext <<_ACEOF
24163 /* end confdefs.h. */
24164 #include <stdlib.h>
24169 iconv_t cd = iconv_open("","");
24170 iconv(cd,NULL,NULL,NULL,NULL);
24176 rm -f conftest.$ac_objext conftest$ac_exeext
24177 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
24178 (eval $ac_link) 2>conftest.er1
24180 grep -v '^ *+' conftest.er1 >conftest.err
24182 cat conftest.err >&5
24183 echo "$as_me:$LINENO: \$? = $ac_status" >&5
24184 (exit $ac_status); } &&
24185 { ac_try='test -z "$ac_c_werror_flag"
24186 || test ! -s conftest.err'
24187 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
24188 (eval $ac_try) 2>&5
24190 echo "$as_me:$LINENO: \$? = $ac_status" >&5
24191 (exit $ac_status); }; } &&
24192 { ac_try='test -s conftest$ac_exeext'
24193 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
24194 (eval $ac_try) 2>&5
24196 echo "$as_me:$LINENO: \$? = $ac_status" >&5
24197 (exit $ac_status); }; }; then
24198 am_cv_lib_iconv=yes
24199 am_cv_func_iconv=yes
24201 echo "$as_me: failed program was:" >&5
24202 sed 's/^/| /' conftest.$ac_ext >&5
24205 rm -f conftest.err conftest.$ac_objext \
24206 conftest$ac_exeext conftest.$ac_ext
24207 LIBS="$am_save_LIBS"
24211 echo "$as_me:$LINENO: result: $am_cv_func_iconv" >&5
24212 echo "${ECHO_T}$am_cv_func_iconv" >&6
24213 if test "$am_cv_func_iconv" = yes; then
24215 cat >>confdefs.h <<\_ACEOF
24216 #define HAVE_ICONV 1
24219 echo "$as_me:$LINENO: checking for iconv declaration" >&5
24220 echo $ECHO_N "checking for iconv declaration... $ECHO_C" >&6
24221 if test "${am_cv_proto_iconv+set}" = set; then
24222 echo $ECHO_N "(cached) $ECHO_C" >&6
24225 cat >conftest.$ac_ext <<_ACEOF
24228 cat confdefs.h >>conftest.$ac_ext
24229 cat >>conftest.$ac_ext <<_ACEOF
24230 /* end confdefs.h. */
24232 #include <stdlib.h>
24238 #if defined(__STDC__) || defined(__cplusplus)
24239 size_t iconv (iconv_t cd, char * *inbuf, size_t *inbytesleft, char * *outbuf, size_t *outbytesleft);
24252 rm -f conftest.$ac_objext
24253 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
24254 (eval $ac_compile) 2>conftest.er1
24256 grep -v '^ *+' conftest.er1 >conftest.err
24258 cat conftest.err >&5
24259 echo "$as_me:$LINENO: \$? = $ac_status" >&5
24260 (exit $ac_status); } &&
24261 { ac_try='test -z "$ac_c_werror_flag"
24262 || test ! -s conftest.err'
24263 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
24264 (eval $ac_try) 2>&5
24266 echo "$as_me:$LINENO: \$? = $ac_status" >&5
24267 (exit $ac_status); }; } &&
24268 { ac_try='test -s conftest.$ac_objext'
24269 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
24270 (eval $ac_try) 2>&5
24272 echo "$as_me:$LINENO: \$? = $ac_status" >&5
24273 (exit $ac_status); }; }; then
24274 am_cv_proto_iconv_arg1=""
24276 echo "$as_me: failed program was:" >&5
24277 sed 's/^/| /' conftest.$ac_ext >&5
24279 am_cv_proto_iconv_arg1="const"
24281 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
24282 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);"
24285 am_cv_proto_iconv=`echo "$am_cv_proto_iconv" | tr -s ' ' | sed -e 's/( /(/'`
24286 echo "$as_me:$LINENO: result: ${ac_t:-
24287 }$am_cv_proto_iconv" >&5
24288 echo "${ECHO_T}${ac_t:-
24289 }$am_cv_proto_iconv" >&6
24291 cat >>confdefs.h <<_ACEOF
24292 #define ICONV_CONST $am_cv_proto_iconv_arg1
24297 if test "$am_cv_lib_iconv" = yes; then
24303 ac_config_files="$ac_config_files Makefile .gdbinit:gdbinit.in"
24304 ac_config_commands="$ac_config_commands default"
24305 cat >confcache <<\_ACEOF
24306 # This file is a shell script that caches the results of configure
24307 # tests run on this system so they can be shared between configure
24308 # scripts and configure runs, see configure's option --config-cache.
24309 # It is not useful on other systems. If it contains results you don't
24310 # want to keep, you may remove or edit it.
24312 # config.status only pays attention to the cache file if you give it
24313 # the --recheck option to rerun configure.
24315 # `ac_cv_env_foo' variables (set or unset) will be overridden when
24316 # loading this file, other *unset* `ac_cv_foo' will be assigned the
24317 # following values.
24321 # The following way of writing the cache mishandles newlines in values,
24322 # but we know of no workaround that is simple, portable, and efficient.
24323 # So, don't put newlines in cache variables' values.
24324 # Ultrix sh set writes to stderr and can't be redirected directly,
24325 # and sets the high bit in the cache file unless we assign to the vars.
24328 case `(ac_space=' '; set | grep ac_space) 2>&1` in
24330 # `set' does not quote correctly, so add quotes (double-quote
24331 # substitution turns \\\\ into \\, and sed turns \\ into \).
24334 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p"
24337 # `set' quotes correctly as required by POSIX, so do not add quotes.
24339 "s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1=\\2/p"
24346 s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/
24348 /^ac_cv_env/!s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/
24350 if diff $cache_file confcache >/dev/null 2>&1; then :; else
24351 if test -w $cache_file; then
24352 test "x$cache_file" != "x/dev/null" && echo "updating cache $cache_file"
24353 cat confcache >$cache_file
24355 echo "not updating unwritable cache $cache_file"
24360 test "x$prefix" = xNONE && prefix=$ac_default_prefix
24361 # Let make expand exec_prefix.
24362 test "x$exec_prefix" = xNONE && exec_prefix='${prefix}'
24364 # VPATH may cause trouble with some makes, so we remove $(srcdir),
24365 # ${srcdir} and @srcdir@ from VPATH if srcdir is ".", strip leading and
24366 # trailing colons and then remove the whole line if VPATH becomes empty
24367 # (actually we leave an empty line to preserve line numbers).
24368 if test "x$srcdir" = x.; then
24369 ac_vpsub='/^[ ]*VPATH[ ]*=/{
24370 s/:*\$(srcdir):*/:/;
24371 s/:*\${srcdir}:*/:/;
24373 s/^\([^=]*=[ ]*\):*/\1/;
24379 DEFS=-DHAVE_CONFIG_H
24383 for ac_i in : $LIBOBJS; do test "x$ac_i" = x: && continue
24384 # 1. Remove the extension, and $U if already installed.
24385 ac_i=`echo "$ac_i" |
24386 sed 's/\$U\././;s/\.o$//;s/\.obj$//'`
24388 ac_libobjs="$ac_libobjs $ac_i\$U.$ac_objext"
24389 ac_ltlibobjs="$ac_ltlibobjs $ac_i"'$U.lo'
24391 LIBOBJS=$ac_libobjs
24393 LTLIBOBJS=$ac_ltlibobjs
24396 if test -z "${MAINTAINER_MODE_TRUE}" && test -z "${MAINTAINER_MODE_FALSE}"; then
24397 { { echo "$as_me:$LINENO: error: conditional \"MAINTAINER_MODE\" was never defined.
24398 Usually this means the macro was only invoked conditionally." >&5
24399 echo "$as_me: error: conditional \"MAINTAINER_MODE\" was never defined.
24400 Usually this means the macro was only invoked conditionally." >&2;}
24401 { (exit 1); exit 1; }; }
24404 : ${CONFIG_STATUS=./config.status}
24405 ac_clean_files_save=$ac_clean_files
24406 ac_clean_files="$ac_clean_files $CONFIG_STATUS"
24407 { echo "$as_me:$LINENO: creating $CONFIG_STATUS" >&5
24408 echo "$as_me: creating $CONFIG_STATUS" >&6;}
24409 cat >$CONFIG_STATUS <<_ACEOF
24411 # Generated by $as_me.
24412 # Run this file to recreate the current configuration.
24413 # Compiler output produced by configure, useful for debugging
24414 # configure, is in config.log if it exists.
24417 ac_cs_recheck=false
24419 SHELL=\${CONFIG_SHELL-$SHELL}
24422 cat >>$CONFIG_STATUS <<\_ACEOF
24423 ## --------------------- ##
24424 ## M4sh Initialization. ##
24425 ## --------------------- ##
24427 # Be Bourne compatible
24428 if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then
24431 # Zsh 3.x and 4.x performs word splitting on ${1+"$@"}, which
24432 # is contrary to our usage. Disable this feature.
24433 alias -g '${1+"$@"}'='"$@"'
24434 elif test -n "${BASH_VERSION+set}" && (set -o posix) >/dev/null 2>&1; then
24437 DUALCASE=1; export DUALCASE # for MKS sh
24439 # Support unset when possible.
24440 if ( (MAIL=60; unset MAIL) || exit) >/dev/null 2>&1; then
24447 # Work around bugs in pre-3.0 UWIN ksh.
24448 $as_unset ENV MAIL MAILPATH
24455 LANG LANGUAGE LC_ADDRESS LC_ALL LC_COLLATE LC_CTYPE LC_IDENTIFICATION \
24456 LC_MEASUREMENT LC_MESSAGES LC_MONETARY LC_NAME LC_NUMERIC LC_PAPER \
24457 LC_TELEPHONE LC_TIME
24459 if (set +x; test -z "`(eval $as_var=C; export $as_var) 2>&1`"); then
24460 eval $as_var=C; export $as_var
24466 # Required to use basename.
24467 if expr a : '\(a\)' >/dev/null 2>&1; then
24473 if (basename /) >/dev/null 2>&1 && test "X`basename / 2>&1`" = "X/"; then
24474 as_basename=basename
24480 # Name of the executable.
24481 as_me=`$as_basename "$0" ||
24482 $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
24483 X"$0" : 'X\(//\)$' \| \
24484 X"$0" : 'X\(/\)$' \| \
24485 . : '\(.\)' 2>/dev/null ||
24487 sed '/^.*\/\([^/][^/]*\)\/*$/{ s//\1/; q; }
24488 /^X\/\(\/\/\)$/{ s//\1/; q; }
24489 /^X\/\(\/\).*/{ s//\1/; q; }
24493 # PATH needs CR, and LINENO needs CR and PATH.
24494 # Avoid depending upon Character Ranges.
24495 as_cr_letters='abcdefghijklmnopqrstuvwxyz'
24496 as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
24497 as_cr_Letters=$as_cr_letters$as_cr_LETTERS
24498 as_cr_digits='0123456789'
24499 as_cr_alnum=$as_cr_Letters$as_cr_digits
24501 # The user is always right.
24502 if test "${PATH_SEPARATOR+set}" != set; then
24503 echo "#! /bin/sh" >conf$$.sh
24504 echo "exit 0" >>conf$$.sh
24506 if (PATH="/nonexistent;."; conf$$.sh) >/dev/null 2>&1; then
24515 as_lineno_1=$LINENO
24516 as_lineno_2=$LINENO
24517 as_lineno_3=`(expr $as_lineno_1 + 1) 2>/dev/null`
24518 test "x$as_lineno_1" != "x$as_lineno_2" &&
24519 test "x$as_lineno_3" = "x$as_lineno_2" || {
24520 # Find who we are. Look in the path if we contain no path at all
24523 *[\\/]* ) as_myself=$0 ;;
24524 *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
24525 for as_dir in $PATH
24528 test -z "$as_dir" && as_dir=.
24529 test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
24534 # We did not find ourselves, most probably we were run as `sh COMMAND'
24535 # in which case we are not to be found in the path.
24536 if test "x$as_myself" = x; then
24539 if test ! -f "$as_myself"; then
24540 { { echo "$as_me:$LINENO: error: cannot find myself; rerun with an absolute path" >&5
24541 echo "$as_me: error: cannot find myself; rerun with an absolute path" >&2;}
24542 { (exit 1); exit 1; }; }
24544 case $CONFIG_SHELL in
24546 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
24547 for as_dir in /bin$PATH_SEPARATOR/usr/bin$PATH_SEPARATOR$PATH
24550 test -z "$as_dir" && as_dir=.
24551 for as_base in sh bash ksh sh5; do
24554 if ("$as_dir/$as_base" -c '
24555 as_lineno_1=$LINENO
24556 as_lineno_2=$LINENO
24557 as_lineno_3=`(expr $as_lineno_1 + 1) 2>/dev/null`
24558 test "x$as_lineno_1" != "x$as_lineno_2" &&
24559 test "x$as_lineno_3" = "x$as_lineno_2" ') 2>/dev/null; then
24560 $as_unset BASH_ENV || test "${BASH_ENV+set}" != set || { BASH_ENV=; export BASH_ENV; }
24561 $as_unset ENV || test "${ENV+set}" != set || { ENV=; export ENV; }
24562 CONFIG_SHELL=$as_dir/$as_base
24563 export CONFIG_SHELL
24564 exec "$CONFIG_SHELL" "$0" ${1+"$@"}
24572 # Create $as_me.lineno as a copy of $as_myself, but with $LINENO
24573 # uniformly replaced by the line number. The first 'sed' inserts a
24574 # line-number line before each line; the second 'sed' does the real
24575 # work. The second script uses 'N' to pair each line-number line
24576 # with the numbered line, and appends trailing '-' during
24577 # substitution so that $LINENO is not a special case at line end.
24578 # (Raja R Harinath suggested sed '=', and Paul Eggert wrote the
24579 # second 'sed' script. Blame Lee E. McMahon for sed's syntax. :-)
24580 sed '=' <$as_myself |
24585 s,^\(['$as_cr_digits']*\)\(.*\)[$]LINENO\([^'$as_cr_alnum'_]\),\1\2\1\3,
24588 s,^['$as_cr_digits']*\n,,
24589 ' >$as_me.lineno &&
24590 chmod +x $as_me.lineno ||
24591 { { echo "$as_me:$LINENO: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&5
24592 echo "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2;}
24593 { (exit 1); exit 1; }; }
24595 # Don't try to exec as it changes $[0], causing all sort of problems
24596 # (the dirname of $[0] is not the place where we might find the
24597 # original and so on. Autoconf is especially sensible to this).
24599 # Exit status is that of the last command.
24604 case `echo "testing\c"; echo 1,2,3`,`echo -n testing; echo 1,2,3` in
24605 *c*,-n*) ECHO_N= ECHO_C='
24607 *c*,* ) ECHO_N=-n ECHO_C= ECHO_T= ;;
24608 *) ECHO_N= ECHO_C='\c' ECHO_T= ;;
24611 if expr a : '\(a\)' >/dev/null 2>&1; then
24617 rm -f conf$$ conf$$.exe conf$$.file
24619 if ln -s conf$$.file conf$$ 2>/dev/null; then
24620 # We could just check for DJGPP; but this test a) works b) is more generic
24621 # and c) will remain valid once DJGPP supports symlinks (DJGPP 2.04).
24622 if test -f conf$$.exe; then
24623 # Don't use ln at all; we don't have any links
24628 elif ln conf$$.file conf$$ 2>/dev/null; then
24633 rm -f conf$$ conf$$.exe conf$$.file
24635 if mkdir -p . 2>/dev/null; then
24638 test -d ./-p && rmdir ./-p
24642 as_executable_p="test -f"
24644 # Sed expression to map a string onto a valid CPP name.
24645 as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
24647 # Sed expression to map a string onto a valid variable name.
24648 as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
24652 # We need space, tab and new line, in precisely that order.
24662 # Open the log real soon, to keep \$[0] and so on meaningful, and to
24663 # report actual input values of CONFIG_FILES etc. instead of their
24664 # values after options handling. Logging --version etc. is OK.
24668 sed 'h;s/./-/g;s/^.../## /;s/...$/ ##/;p;x;p;x' <<_ASBOX
24669 ## Running $as_me. ##
24674 This file was extended by $as_me, which was
24675 generated by GNU Autoconf 2.59. Invocation command line was
24677 CONFIG_FILES = $CONFIG_FILES
24678 CONFIG_HEADERS = $CONFIG_HEADERS
24679 CONFIG_LINKS = $CONFIG_LINKS
24680 CONFIG_COMMANDS = $CONFIG_COMMANDS
24684 echo "on `(hostname || uname -n) 2>/dev/null | sed 1q`" >&5
24688 # Files that config.status was made for.
24689 if test -n "$ac_config_files"; then
24690 echo "config_files=\"$ac_config_files\"" >>$CONFIG_STATUS
24693 if test -n "$ac_config_headers"; then
24694 echo "config_headers=\"$ac_config_headers\"" >>$CONFIG_STATUS
24697 if test -n "$ac_config_links"; then
24698 echo "config_links=\"$ac_config_links\"" >>$CONFIG_STATUS
24701 if test -n "$ac_config_commands"; then
24702 echo "config_commands=\"$ac_config_commands\"" >>$CONFIG_STATUS
24705 cat >>$CONFIG_STATUS <<\_ACEOF
24708 \`$as_me' instantiates files from templates according to the
24709 current configuration.
24711 Usage: $0 [OPTIONS] [FILE]...
24713 -h, --help print this help, then exit
24714 -V, --version print version number, then exit
24715 -q, --quiet do not print progress messages
24716 -d, --debug don't remove temporary files
24717 --recheck update $as_me by reconfiguring in the same conditions
24718 --file=FILE[:TEMPLATE]
24719 instantiate the configuration file FILE
24720 --header=FILE[:TEMPLATE]
24721 instantiate the configuration header FILE
24723 Configuration files:
24726 Configuration headers:
24729 Configuration links:
24732 Configuration commands:
24735 Report bugs to <bug-autoconf@gnu.org>."
24738 cat >>$CONFIG_STATUS <<_ACEOF
24741 configured by $0, generated by GNU Autoconf 2.59,
24742 with options \\"`echo "$ac_configure_args" | sed 's/[\\""\`\$]/\\\\&/g'`\\"
24744 Copyright (C) 2003 Free Software Foundation, Inc.
24745 This config.status script is free software; the Free Software Foundation
24746 gives unlimited permission to copy, distribute and modify it."
24751 cat >>$CONFIG_STATUS <<\_ACEOF
24752 # If no file are specified by the user, then we need to provide default
24753 # value. By we need to know if files were specified by the user.
24759 ac_option=`expr "x$1" : 'x\([^=]*\)='`
24760 ac_optarg=`expr "x$1" : 'x[^=]*=\(.*\)'`
24768 *) # This is not an option, so the user has probably given explicit
24771 ac_need_defaults=false;;
24775 # Handling of the options.
24777 cat >>$CONFIG_STATUS <<\_ACEOF
24778 -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r)
24780 --version | --vers* | -V )
24781 echo "$ac_cs_version"; exit 0 ;;
24783 # Conflict between --help and --header
24784 { { echo "$as_me:$LINENO: error: ambiguous option: $1
24785 Try \`$0 --help' for more information." >&5
24786 echo "$as_me: error: ambiguous option: $1
24787 Try \`$0 --help' for more information." >&2;}
24788 { (exit 1); exit 1; }; };;
24789 --help | --hel | -h )
24790 echo "$ac_cs_usage"; exit 0 ;;
24791 --debug | --d* | -d )
24793 --file | --fil | --fi | --f )
24795 CONFIG_FILES="$CONFIG_FILES $ac_optarg"
24796 ac_need_defaults=false;;
24797 --header | --heade | --head | --hea )
24799 CONFIG_HEADERS="$CONFIG_HEADERS $ac_optarg"
24800 ac_need_defaults=false;;
24801 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
24802 | -silent | --silent | --silen | --sile | --sil | --si | --s)
24805 # This is an error.
24806 -*) { { echo "$as_me:$LINENO: error: unrecognized option: $1
24807 Try \`$0 --help' for more information." >&5
24808 echo "$as_me: error: unrecognized option: $1
24809 Try \`$0 --help' for more information." >&2;}
24810 { (exit 1); exit 1; }; } ;;
24812 *) ac_config_targets="$ac_config_targets $1" ;;
24818 ac_configure_extra_args=
24820 if $ac_cs_silent; then
24822 ac_configure_extra_args="$ac_configure_extra_args --silent"
24826 cat >>$CONFIG_STATUS <<_ACEOF
24827 if \$ac_cs_recheck; then
24828 echo "running $SHELL $0 " $ac_configure_args \$ac_configure_extra_args " --no-create --no-recursion" >&6
24829 exec $SHELL $0 $ac_configure_args \$ac_configure_extra_args --no-create --no-recursion
24834 cat >>$CONFIG_STATUS <<_ACEOF
24836 # INIT-COMMANDS section.
24842 acx_cv_header_stdint="$acx_cv_header_stdint"
24843 acx_cv_type_int8_t="$acx_cv_type_int8_t"
24844 acx_cv_type_int16_t="$acx_cv_type_int16_t"
24845 acx_cv_type_int32_t="$acx_cv_type_int32_t"
24846 acx_cv_type_int64_t="$acx_cv_type_int64_t"
24847 acx_cv_type_intptr_t="$acx_cv_type_intptr_t"
24848 ac_cv_type_uintmax_t="$ac_cv_type_uintmax_t"
24849 ac_cv_type_uintptr_t="$ac_cv_type_uintptr_t"
24850 ac_cv_type_uint64_t="$ac_cv_type_uint64_t"
24851 ac_cv_type_u_int64_t="$ac_cv_type_u_int64_t"
24852 ac_cv_type_u_int32_t="$ac_cv_type_u_int32_t"
24853 ac_cv_type_int_least32_t="$ac_cv_type_int_least32_t"
24854 ac_cv_type_int_fast32_t="$ac_cv_type_int_fast32_t"
24855 ac_cv_sizeof_void_p="$ac_cv_sizeof_void_p"
24858 gdb_host_cpu=$gdb_host_cpu
24859 gdb_target_cpu=$gdb_target_cpu
24860 nativefile=$nativefile
24867 cat >>$CONFIG_STATUS <<\_ACEOF
24868 for ac_config_target in $ac_config_targets
24870 case "$ac_config_target" in
24871 # Handling of arguments.
24872 "Makefile" ) CONFIG_FILES="$CONFIG_FILES Makefile" ;;
24873 ".gdbinit" ) CONFIG_FILES="$CONFIG_FILES .gdbinit:gdbinit.in" ;;
24874 "$ac_config_links_1" ) CONFIG_LINKS="$CONFIG_LINKS $ac_config_links_1" ;;
24875 "gdb_stdint.h" ) CONFIG_COMMANDS="$CONFIG_COMMANDS gdb_stdint.h" ;;
24876 "default" ) CONFIG_COMMANDS="$CONFIG_COMMANDS default" ;;
24877 "config.h" ) CONFIG_HEADERS="$CONFIG_HEADERS config.h:config.in" ;;
24878 *) { { echo "$as_me:$LINENO: error: invalid argument: $ac_config_target" >&5
24879 echo "$as_me: error: invalid argument: $ac_config_target" >&2;}
24880 { (exit 1); exit 1; }; };;
24884 # If the user did not use the arguments to specify the items to instantiate,
24885 # then the envvar interface is used. Set only those that are not.
24886 # We use the long form for the default assignment because of an extremely
24887 # bizarre bug on SunOS 4.1.3.
24888 if $ac_need_defaults; then
24889 test "${CONFIG_FILES+set}" = set || CONFIG_FILES=$config_files
24890 test "${CONFIG_HEADERS+set}" = set || CONFIG_HEADERS=$config_headers
24891 test "${CONFIG_LINKS+set}" = set || CONFIG_LINKS=$config_links
24892 test "${CONFIG_COMMANDS+set}" = set || CONFIG_COMMANDS=$config_commands
24895 # Have a temporary directory for convenience. Make it in the build tree
24896 # simply because there is no reason to put it here, and in addition,
24897 # creating and moving files from /tmp can sometimes cause problems.
24898 # Create a temporary directory, and hook for its removal unless debugging.
24901 trap 'exit_status=$?; rm -rf $tmp && exit $exit_status' 0
24902 trap '{ (exit 1); exit 1; }' 1 2 13 15
24905 # Create a (secure) tmp directory for tmp files.
24908 tmp=`(umask 077 && mktemp -d -q "./confstatXXXXXX") 2>/dev/null` &&
24909 test -n "$tmp" && test -d "$tmp"
24912 tmp=./confstat$$-$RANDOM
24913 (umask 077 && mkdir $tmp)
24916 echo "$me: cannot create a temporary directory in ." >&2
24917 { (exit 1); exit 1; }
24922 cat >>$CONFIG_STATUS <<_ACEOF
24925 # CONFIG_FILES section.
24928 # No need to generate the scripts if there are no CONFIG_FILES.
24929 # This happens for instance when ./config.status config.h
24930 if test -n "\$CONFIG_FILES"; then
24931 # Protect against being on the right side of a sed subst in config.status.
24932 sed 's/,@/@@/; s/@,/@@/; s/,;t t\$/@;t t/; /@;t t\$/s/[\\\\&,]/\\\\&/g;
24933 s/@@/,@/; s/@@/@,/; s/@;t t\$/,;t t/' >\$tmp/subs.sed <<\\CEOF
24934 s,@SHELL@,$SHELL,;t t
24935 s,@PATH_SEPARATOR@,$PATH_SEPARATOR,;t t
24936 s,@PACKAGE_NAME@,$PACKAGE_NAME,;t t
24937 s,@PACKAGE_TARNAME@,$PACKAGE_TARNAME,;t t
24938 s,@PACKAGE_VERSION@,$PACKAGE_VERSION,;t t
24939 s,@PACKAGE_STRING@,$PACKAGE_STRING,;t t
24940 s,@PACKAGE_BUGREPORT@,$PACKAGE_BUGREPORT,;t t
24941 s,@exec_prefix@,$exec_prefix,;t t
24942 s,@prefix@,$prefix,;t t
24943 s,@program_transform_name@,$program_transform_name,;t t
24944 s,@bindir@,$bindir,;t t
24945 s,@sbindir@,$sbindir,;t t
24946 s,@libexecdir@,$libexecdir,;t t
24947 s,@datadir@,$datadir,;t t
24948 s,@sysconfdir@,$sysconfdir,;t t
24949 s,@sharedstatedir@,$sharedstatedir,;t t
24950 s,@localstatedir@,$localstatedir,;t t
24951 s,@libdir@,$libdir,;t t
24952 s,@includedir@,$includedir,;t t
24953 s,@oldincludedir@,$oldincludedir,;t t
24954 s,@infodir@,$infodir,;t t
24955 s,@mandir@,$mandir,;t t
24956 s,@build_alias@,$build_alias,;t t
24957 s,@host_alias@,$host_alias,;t t
24958 s,@target_alias@,$target_alias,;t t
24959 s,@DEFS@,$DEFS,;t t
24960 s,@ECHO_C@,$ECHO_C,;t t
24961 s,@ECHO_N@,$ECHO_N,;t t
24962 s,@ECHO_T@,$ECHO_T,;t t
24963 s,@LIBS@,$LIBS,;t t
24964 s,@MAINTAINER_MODE_TRUE@,$MAINTAINER_MODE_TRUE,;t t
24965 s,@MAINTAINER_MODE_FALSE@,$MAINTAINER_MODE_FALSE,;t t
24966 s,@MAINT@,$MAINT,;t t
24968 s,@CFLAGS@,$CFLAGS,;t t
24969 s,@LDFLAGS@,$LDFLAGS,;t t
24970 s,@CPPFLAGS@,$CPPFLAGS,;t t
24971 s,@ac_ct_CC@,$ac_ct_CC,;t t
24972 s,@EXEEXT@,$EXEEXT,;t t
24973 s,@OBJEXT@,$OBJEXT,;t t
24975 s,@EGREP@,$EGREP,;t t
24976 s,@build@,$build,;t t
24977 s,@build_cpu@,$build_cpu,;t t
24978 s,@build_vendor@,$build_vendor,;t t
24979 s,@build_os@,$build_os,;t t
24980 s,@host@,$host,;t t
24981 s,@host_cpu@,$host_cpu,;t t
24982 s,@host_vendor@,$host_vendor,;t t
24983 s,@host_os@,$host_os,;t t
24984 s,@target@,$target,;t t
24985 s,@target_cpu@,$target_cpu,;t t
24986 s,@target_vendor@,$target_vendor,;t t
24987 s,@target_os@,$target_os,;t t
24988 s,@USE_NLS@,$USE_NLS,;t t
24989 s,@LIBINTL@,$LIBINTL,;t t
24990 s,@LIBINTL_DEP@,$LIBINTL_DEP,;t t
24991 s,@INCINTL@,$INCINTL,;t t
24992 s,@XGETTEXT@,$XGETTEXT,;t t
24993 s,@GMSGFMT@,$GMSGFMT,;t t
24994 s,@POSUB@,$POSUB,;t t
24995 s,@CATALOGS@,$CATALOGS,;t t
24996 s,@DATADIRNAME@,$DATADIRNAME,;t t
24997 s,@INSTOBJEXT@,$INSTOBJEXT,;t t
24998 s,@GENCAT@,$GENCAT,;t t
24999 s,@CATOBJEXT@,$CATOBJEXT,;t t
25000 s,@localedir@,$localedir,;t t
25001 s,@PACKAGE@,$PACKAGE,;t t
25002 s,@subdirs@,$subdirs,;t t
25004 s,@INSTALL_PROGRAM@,$INSTALL_PROGRAM,;t t
25005 s,@INSTALL_SCRIPT@,$INSTALL_SCRIPT,;t t
25006 s,@INSTALL_DATA@,$INSTALL_DATA,;t t
25007 s,@LN_S@,$LN_S,;t t
25008 s,@RANLIB@,$RANLIB,;t t
25009 s,@ac_ct_RANLIB@,$ac_ct_RANLIB,;t t
25010 s,@YACC@,$YACC,;t t
25012 s,@ac_ct_AR@,$ac_ct_AR,;t t
25013 s,@DLLTOOL@,$DLLTOOL,;t t
25014 s,@ac_ct_DLLTOOL@,$ac_ct_DLLTOOL,;t t
25015 s,@WINDRES@,$WINDRES,;t t
25016 s,@ac_ct_WINDRES@,$ac_ct_WINDRES,;t t
25018 s,@ac_ct_MIG@,$ac_ct_MIG,;t t
25019 s,@READLINE@,$READLINE,;t t
25020 s,@READLINE_DEPS@,$READLINE_DEPS,;t t
25021 s,@READLINE_CFLAGS@,$READLINE_CFLAGS,;t t
25022 s,@HAVE_LIBEXPAT@,$HAVE_LIBEXPAT,;t t
25023 s,@LIBEXPAT@,$LIBEXPAT,;t t
25024 s,@LTLIBEXPAT@,$LTLIBEXPAT,;t t
25025 s,@ALLOCA@,$ALLOCA,;t t
25026 s,@CONFIG_LDFLAGS@,$CONFIG_LDFLAGS,;t t
25027 s,@TARGET_SYSTEM_ROOT@,$TARGET_SYSTEM_ROOT,;t t
25028 s,@TARGET_SYSTEM_ROOT_DEFINE@,$TARGET_SYSTEM_ROOT_DEFINE,;t t
25029 s,@WARN_CFLAGS@,$WARN_CFLAGS,;t t
25030 s,@WERROR_CFLAGS@,$WERROR_CFLAGS,;t t
25031 s,@SER_HARDWIRE@,$SER_HARDWIRE,;t t
25032 s,@WIN32LIBS@,$WIN32LIBS,;t t
25033 s,@LIBGUI@,$LIBGUI,;t t
25034 s,@GUI_CFLAGS_X@,$GUI_CFLAGS_X,;t t
25035 s,@WIN32LDAPP@,$WIN32LDAPP,;t t
25036 s,@TCL_VERSION@,$TCL_VERSION,;t t
25037 s,@TCL_MAJOR_VERSION@,$TCL_MAJOR_VERSION,;t t
25038 s,@TCL_MINOR_VERSION@,$TCL_MINOR_VERSION,;t t
25039 s,@TCL_CC@,$TCL_CC,;t t
25040 s,@TCL_DEFS@,$TCL_DEFS,;t t
25041 s,@TCL_SHLIB_CFLAGS@,$TCL_SHLIB_CFLAGS,;t t
25042 s,@TCL_SHLIB_LD@,$TCL_SHLIB_LD,;t t
25043 s,@TCL_SHLIB_LD_LIBS@,$TCL_SHLIB_LD_LIBS,;t t
25044 s,@TCL_SHLIB_SUFFIX@,$TCL_SHLIB_SUFFIX,;t t
25045 s,@TCL_DL_LIBS@,$TCL_DL_LIBS,;t t
25046 s,@TCL_LD_FLAGS@,$TCL_LD_FLAGS,;t t
25047 s,@TCL_LD_SEARCH_FLAGS@,$TCL_LD_SEARCH_FLAGS,;t t
25048 s,@TCL_CC_SEARCH_FLAGS@,$TCL_CC_SEARCH_FLAGS,;t t
25049 s,@TCL_COMPAT_OBJS@,$TCL_COMPAT_OBJS,;t t
25050 s,@TCL_RANLIB@,$TCL_RANLIB,;t t
25051 s,@TCL_BUILD_LIB_SPEC@,$TCL_BUILD_LIB_SPEC,;t t
25052 s,@TCL_LIB_SPEC@,$TCL_LIB_SPEC,;t t
25053 s,@TCL_LIB_VERSIONS_OK@,$TCL_LIB_VERSIONS_OK,;t t
25054 s,@TK_VERSION@,$TK_VERSION,;t t
25055 s,@TK_DEFS@,$TK_DEFS,;t t
25056 s,@TK_BUILD_INCLUDES@,$TK_BUILD_INCLUDES,;t t
25057 s,@TK_XINCLUDES@,$TK_XINCLUDES,;t t
25058 s,@TK_XLIBSW@,$TK_XLIBSW,;t t
25059 s,@TK_BUILD_LIB_SPEC@,$TK_BUILD_LIB_SPEC,;t t
25060 s,@TK_LIB_SPEC@,$TK_LIB_SPEC,;t t
25061 s,@TCLHDIR@,$TCLHDIR,;t t
25062 s,@TKHDIR@,$TKHDIR,;t t
25063 s,@ITCLHDIR@,$ITCLHDIR,;t t
25064 s,@ITKHDIR@,$ITKHDIR,;t t
25065 s,@ITCL_VERSION@,$ITCL_VERSION,;t t
25066 s,@ITCL_DEFS@,$ITCL_DEFS,;t t
25067 s,@ITCL_BUILD_INCLUDES@,$ITCL_BUILD_INCLUDES,;t t
25068 s,@ITCL_BUILD_LIB_SPEC@,$ITCL_BUILD_LIB_SPEC,;t t
25069 s,@ITCL_LIB_SPEC@,$ITCL_LIB_SPEC,;t t
25070 s,@ITK_VERSION@,$ITK_VERSION,;t t
25071 s,@ITK_DEFS@,$ITK_DEFS,;t t
25072 s,@ITK_BUILD_INCLUDES@,$ITK_BUILD_INCLUDES,;t t
25073 s,@ITK_BUILD_LIB_SPEC@,$ITK_BUILD_LIB_SPEC,;t t
25074 s,@ITK_LIB_SPEC@,$ITK_LIB_SPEC,;t t
25075 s,@X_CFLAGS@,$X_CFLAGS,;t t
25076 s,@X_LDFLAGS@,$X_LDFLAGS,;t t
25077 s,@X_LIBS@,$X_LIBS,;t t
25078 s,@TCL_DEPS@,$TCL_DEPS,;t t
25079 s,@TK_DEPS@,$TK_DEPS,;t t
25080 s,@ITCLLIB@,$ITCLLIB,;t t
25081 s,@ITCL_DEPS@,$ITCL_DEPS,;t t
25082 s,@ITKLIB@,$ITKLIB,;t t
25083 s,@ITK_DEPS@,$ITK_DEPS,;t t
25084 s,@GDBTKLIBS@,$GDBTKLIBS,;t t
25085 s,@GDBTK_CFLAGS@,$GDBTK_CFLAGS,;t t
25086 s,@GDBTK_SRC_DIR@,$GDBTK_SRC_DIR,;t t
25087 s,@IGNORE_SIM@,$IGNORE_SIM,;t t
25088 s,@IGNORE_SIM_OBS@,$IGNORE_SIM_OBS,;t t
25089 s,@ENABLE_CFLAGS@,$ENABLE_CFLAGS,;t t
25090 s,@PROFILE_CFLAGS@,$PROFILE_CFLAGS,;t t
25091 s,@CONFIG_OBS@,$CONFIG_OBS,;t t
25092 s,@CONFIG_DEPS@,$CONFIG_DEPS,;t t
25093 s,@CONFIG_SRCS@,$CONFIG_SRCS,;t t
25094 s,@CONFIG_ALL@,$CONFIG_ALL,;t t
25095 s,@CONFIG_CLEAN@,$CONFIG_CLEAN,;t t
25096 s,@CONFIG_INSTALL@,$CONFIG_INSTALL,;t t
25097 s,@CONFIG_UNINSTALL@,$CONFIG_UNINSTALL,;t t
25098 s,@target_subdir@,$target_subdir,;t t
25099 s,@frags@,$frags,;t t
25100 s,@nm_h@,$nm_h,;t t
25101 s,@LIBICONV@,$LIBICONV,;t t
25102 s,@LIBOBJS@,$LIBOBJS,;t t
25103 s,@LTLIBOBJS@,$LTLIBOBJS,;t t
25104 /@host_makefile_frag@/r $host_makefile_frag
25105 s,@host_makefile_frag@,,;t t
25106 /@target_makefile_frag@/r $target_makefile_frag
25107 s,@target_makefile_frag@,,;t t
25112 cat >>$CONFIG_STATUS <<\_ACEOF
25113 # Split the substitutions into bite-sized pieces for seds with
25114 # small command number limits, like on Digital OSF/1 and HP-UX.
25115 ac_max_sed_lines=48
25116 ac_sed_frag=1 # Number of current file.
25117 ac_beg=1 # First line for current file.
25118 ac_end=$ac_max_sed_lines # Line after last line for current file.
25121 while $ac_more_lines; do
25122 if test $ac_beg -gt 1; then
25123 sed "1,${ac_beg}d; ${ac_end}q" $tmp/subs.sed >$tmp/subs.frag
25125 sed "${ac_end}q" $tmp/subs.sed >$tmp/subs.frag
25127 if test ! -s $tmp/subs.frag; then
25128 ac_more_lines=false
25130 # The purpose of the label and of the branching condition is to
25131 # speed up the sed processing (if there are no `@' at all, there
25132 # is no need to browse any of the substitutions).
25133 # These are the two extra sed commands mentioned above.
25135 /@[a-zA-Z_][a-zA-Z_0-9]*@/!b' && cat $tmp/subs.frag) >$tmp/subs-$ac_sed_frag.sed
25136 if test -z "$ac_sed_cmds"; then
25137 ac_sed_cmds="sed -f $tmp/subs-$ac_sed_frag.sed"
25139 ac_sed_cmds="$ac_sed_cmds | sed -f $tmp/subs-$ac_sed_frag.sed"
25141 ac_sed_frag=`expr $ac_sed_frag + 1`
25143 ac_end=`expr $ac_end + $ac_max_sed_lines`
25146 if test -z "$ac_sed_cmds"; then
25149 fi # test -n "$CONFIG_FILES"
25152 cat >>$CONFIG_STATUS <<\_ACEOF
25153 for ac_file in : $CONFIG_FILES; do test "x$ac_file" = x: && continue
25154 # Support "outfile[:infile[:infile...]]", defaulting infile="outfile.in".
25156 - | *:- | *:-:* ) # input from stdin
25158 ac_file_in=`echo "$ac_file" | sed 's,[^:]*:,,'`
25159 ac_file=`echo "$ac_file" | sed 's,:.*,,'` ;;
25160 *:* ) ac_file_in=`echo "$ac_file" | sed 's,[^:]*:,,'`
25161 ac_file=`echo "$ac_file" | sed 's,:.*,,'` ;;
25162 * ) ac_file_in=$ac_file.in ;;
25165 # Compute @srcdir@, @top_srcdir@, and @INSTALL@ for subdirectories.
25166 ac_dir=`(dirname "$ac_file") 2>/dev/null ||
25167 $as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
25168 X"$ac_file" : 'X\(//\)[^/]' \| \
25169 X"$ac_file" : 'X\(//\)$' \| \
25170 X"$ac_file" : 'X\(/\)' \| \
25171 . : '\(.\)' 2>/dev/null ||
25173 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
25174 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
25175 /^X\(\/\/\)$/{ s//\1/; q; }
25176 /^X\(\/\).*/{ s//\1/; q; }
25178 { if $as_mkdir_p; then
25183 while test ! -d "$as_dir"; do
25184 as_dirs="$as_dir $as_dirs"
25185 as_dir=`(dirname "$as_dir") 2>/dev/null ||
25186 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
25187 X"$as_dir" : 'X\(//\)[^/]' \| \
25188 X"$as_dir" : 'X\(//\)$' \| \
25189 X"$as_dir" : 'X\(/\)' \| \
25190 . : '\(.\)' 2>/dev/null ||
25192 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
25193 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
25194 /^X\(\/\/\)$/{ s//\1/; q; }
25195 /^X\(\/\).*/{ s//\1/; q; }
25198 test ! -n "$as_dirs" || mkdir $as_dirs
25199 fi || { { echo "$as_me:$LINENO: error: cannot create directory \"$ac_dir\"" >&5
25200 echo "$as_me: error: cannot create directory \"$ac_dir\"" >&2;}
25201 { (exit 1); exit 1; }; }; }
25205 if test "$ac_dir" != .; then
25206 ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'`
25207 # A "../" for each directory in $ac_dir_suffix.
25208 ac_top_builddir=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,../,g'`
25210 ac_dir_suffix= ac_top_builddir=
25214 .) # No --srcdir option. We are building in place.
25216 if test -z "$ac_top_builddir"; then
25219 ac_top_srcdir=`echo $ac_top_builddir | sed 's,/$,,'`
25221 [\\/]* | ?:[\\/]* ) # Absolute path.
25222 ac_srcdir=$srcdir$ac_dir_suffix;
25223 ac_top_srcdir=$srcdir ;;
25224 *) # Relative path.
25225 ac_srcdir=$ac_top_builddir$srcdir$ac_dir_suffix
25226 ac_top_srcdir=$ac_top_builddir$srcdir ;;
25229 # Do not use `cd foo && pwd` to compute absolute paths, because
25230 # the directories may not exist.
25232 .) ac_abs_builddir="$ac_dir";;
25235 .) ac_abs_builddir=`pwd`;;
25236 [\\/]* | ?:[\\/]* ) ac_abs_builddir="$ac_dir";;
25237 *) ac_abs_builddir=`pwd`/"$ac_dir";;
25240 case $ac_abs_builddir in
25241 .) ac_abs_top_builddir=${ac_top_builddir}.;;
25243 case ${ac_top_builddir}. in
25244 .) ac_abs_top_builddir=$ac_abs_builddir;;
25245 [\\/]* | ?:[\\/]* ) ac_abs_top_builddir=${ac_top_builddir}.;;
25246 *) ac_abs_top_builddir=$ac_abs_builddir/${ac_top_builddir}.;;
25249 case $ac_abs_builddir in
25250 .) ac_abs_srcdir=$ac_srcdir;;
25253 .) ac_abs_srcdir=$ac_abs_builddir;;
25254 [\\/]* | ?:[\\/]* ) ac_abs_srcdir=$ac_srcdir;;
25255 *) ac_abs_srcdir=$ac_abs_builddir/$ac_srcdir;;
25258 case $ac_abs_builddir in
25259 .) ac_abs_top_srcdir=$ac_top_srcdir;;
25261 case $ac_top_srcdir in
25262 .) ac_abs_top_srcdir=$ac_abs_builddir;;
25263 [\\/]* | ?:[\\/]* ) ac_abs_top_srcdir=$ac_top_srcdir;;
25264 *) ac_abs_top_srcdir=$ac_abs_builddir/$ac_top_srcdir;;
25270 [\\/$]* | ?:[\\/]* ) ac_INSTALL=$INSTALL ;;
25271 *) ac_INSTALL=$ac_top_builddir$INSTALL ;;
25274 if test x"$ac_file" != x-; then
25275 { echo "$as_me:$LINENO: creating $ac_file" >&5
25276 echo "$as_me: creating $ac_file" >&6;}
25279 # Let's still pretend it is `configure' which instantiates (i.e., don't
25280 # use $as_me), people would be surprised to read:
25281 # /* config.h. Generated by config.status. */
25282 if test x"$ac_file" = x-; then
25285 configure_input="$ac_file. "
25287 configure_input=$configure_input"Generated from `echo $ac_file_in |
25288 sed 's,.*/,,'` by configure."
25290 # First look for the input files in the build tree, otherwise in the
25292 ac_file_inputs=`IFS=:
25293 for f in $ac_file_in; do
25295 -) echo $tmp/stdin ;;
25297 # Absolute (can't be DOS-style, as IFS=:)
25298 test -f "$f" || { { echo "$as_me:$LINENO: error: cannot find input file: $f" >&5
25299 echo "$as_me: error: cannot find input file: $f" >&2;}
25300 { (exit 1); exit 1; }; }
25303 if test -f "$f"; then
25306 elif test -f "$srcdir/$f"; then
25311 { { echo "$as_me:$LINENO: error: cannot find input file: $f" >&5
25312 echo "$as_me: error: cannot find input file: $f" >&2;}
25313 { (exit 1); exit 1; }; }
25316 done` || { (exit 1); exit 1; }
25318 cat >>$CONFIG_STATUS <<_ACEOF
25322 cat >>$CONFIG_STATUS <<\_ACEOF
25324 /@[a-zA-Z_][a-zA-Z_0-9]*@/!b
25325 s,@configure_input@,$configure_input,;t t
25326 s,@srcdir@,$ac_srcdir,;t t
25327 s,@abs_srcdir@,$ac_abs_srcdir,;t t
25328 s,@top_srcdir@,$ac_top_srcdir,;t t
25329 s,@abs_top_srcdir@,$ac_abs_top_srcdir,;t t
25330 s,@builddir@,$ac_builddir,;t t
25331 s,@abs_builddir@,$ac_abs_builddir,;t t
25332 s,@top_builddir@,$ac_top_builddir,;t t
25333 s,@abs_top_builddir@,$ac_abs_top_builddir,;t t
25334 s,@INSTALL@,$ac_INSTALL,;t t
25335 " $ac_file_inputs | (eval "$ac_sed_cmds") >$tmp/out
25337 if test x"$ac_file" != x-; then
25338 mv $tmp/out $ac_file
25346 cat >>$CONFIG_STATUS <<\_ACEOF
25349 # CONFIG_HEADER section.
25352 # These sed commands are passed to sed as "A NAME B NAME C VALUE D", where
25353 # NAME is the cpp macro being defined and VALUE is the value it is being given.
25355 # ac_d sets the value in "#define NAME VALUE" lines.
25356 ac_dA='s,^\([ ]*\)#\([ ]*define[ ][ ]*\)'
25357 ac_dB='[ ].*$,\1#\2'
25360 # ac_u turns "#undef NAME" without trailing blanks into "#define NAME VALUE".
25361 ac_uA='s,^\([ ]*\)#\([ ]*\)undef\([ ][ ]*\)'
25362 ac_uB='$,\1#\2define\3'
25366 for ac_file in : $CONFIG_HEADERS; do test "x$ac_file" = x: && continue
25367 # Support "outfile[:infile[:infile...]]", defaulting infile="outfile.in".
25369 - | *:- | *:-:* ) # input from stdin
25371 ac_file_in=`echo "$ac_file" | sed 's,[^:]*:,,'`
25372 ac_file=`echo "$ac_file" | sed 's,:.*,,'` ;;
25373 *:* ) ac_file_in=`echo "$ac_file" | sed 's,[^:]*:,,'`
25374 ac_file=`echo "$ac_file" | sed 's,:.*,,'` ;;
25375 * ) ac_file_in=$ac_file.in ;;
25378 test x"$ac_file" != x- && { echo "$as_me:$LINENO: creating $ac_file" >&5
25379 echo "$as_me: creating $ac_file" >&6;}
25381 # First look for the input files in the build tree, otherwise in the
25383 ac_file_inputs=`IFS=:
25384 for f in $ac_file_in; do
25386 -) echo $tmp/stdin ;;
25388 # Absolute (can't be DOS-style, as IFS=:)
25389 test -f "$f" || { { echo "$as_me:$LINENO: error: cannot find input file: $f" >&5
25390 echo "$as_me: error: cannot find input file: $f" >&2;}
25391 { (exit 1); exit 1; }; }
25392 # Do quote $f, to prevent DOS paths from being IFS'd.
25395 if test -f "$f"; then
25398 elif test -f "$srcdir/$f"; then
25403 { { echo "$as_me:$LINENO: error: cannot find input file: $f" >&5
25404 echo "$as_me: error: cannot find input file: $f" >&2;}
25405 { (exit 1); exit 1; }; }
25408 done` || { (exit 1); exit 1; }
25409 # Remove the trailing spaces.
25410 sed 's/[ ]*$//' $ac_file_inputs >$tmp/in
25414 # Transform confdefs.h into two sed scripts, `conftest.defines' and
25415 # `conftest.undefs', that substitutes the proper values into
25416 # config.h.in to produce config.h. The first handles `#define'
25417 # templates, and the second `#undef' templates.
25418 # And first: Protect against being on the right side of a sed subst in
25419 # config.status. Protect against being in an unquoted here document
25420 # in config.status.
25421 rm -f conftest.defines conftest.undefs
25422 # Using a here document instead of a string reduces the quoting nightmare.
25423 # Putting comments in sed scripts is not portable.
25425 # `end' is used to avoid that the second main sed command (meant for
25426 # 0-ary CPP macros) applies to n-ary macro definitions.
25427 # See the Autoconf documentation for `clear'.
25428 cat >confdef2sed.sed <<\_ACEOF
25433 s,^[ ]*#[ ]*define[ ][ ]*\([^ (][^ (]*\)\(([^)]*)\)[ ]*\(.*\)$,${ac_dA}\1${ac_dB}\1\2${ac_dC}\3${ac_dD},gp
25435 s,^[ ]*#[ ]*define[ ][ ]*\([^ ][^ ]*\)[ ]*\(.*\)$,${ac_dA}\1${ac_dB}\1${ac_dC}\2${ac_dD},gp
25438 # If some macros were called several times there might be several times
25439 # the same #defines, which is useless. Nevertheless, we may not want to
25440 # sort them, since we want the *last* AC-DEFINE to be honored.
25441 uniq confdefs.h | sed -n -f confdef2sed.sed >conftest.defines
25442 sed 's/ac_d/ac_u/g' conftest.defines >conftest.undefs
25443 rm -f confdef2sed.sed
25445 # This sed command replaces #undef with comments. This is necessary, for
25446 # example, in the case of _POSIX_SOURCE, which is predefined and required
25447 # on some systems where configure will not decide to define it.
25448 cat >>conftest.undefs <<\_ACEOF
25449 s,^[ ]*#[ ]*undef[ ][ ]*[a-zA-Z_][a-zA-Z_0-9]*,/* & */,
25452 # Break up conftest.defines because some shells have a limit on the size
25453 # of here documents, and old seds have small limits too (100 cmds).
25454 echo ' # Handle all the #define templates only if necessary.' >>$CONFIG_STATUS
25455 echo ' if grep "^[ ]*#[ ]*define" $tmp/in >/dev/null; then' >>$CONFIG_STATUS
25456 echo ' # If there are no defines, we may have an empty if/fi' >>$CONFIG_STATUS
25457 echo ' :' >>$CONFIG_STATUS
25458 rm -f conftest.tail
25459 while grep . conftest.defines >/dev/null
25461 # Write a limited-size here document to $tmp/defines.sed.
25462 echo ' cat >$tmp/defines.sed <<CEOF' >>$CONFIG_STATUS
25463 # Speed up: don't consider the non `#define' lines.
25464 echo '/^[ ]*#[ ]*define/!b' >>$CONFIG_STATUS
25465 # Work around the forget-to-reset-the-flag bug.
25466 echo 't clr' >>$CONFIG_STATUS
25467 echo ': clr' >>$CONFIG_STATUS
25468 sed ${ac_max_here_lines}q conftest.defines >>$CONFIG_STATUS
25470 sed -f $tmp/defines.sed $tmp/in >$tmp/out
25472 mv $tmp/out $tmp/in
25474 sed 1,${ac_max_here_lines}d conftest.defines >conftest.tail
25475 rm -f conftest.defines
25476 mv conftest.tail conftest.defines
25478 rm -f conftest.defines
25479 echo ' fi # grep' >>$CONFIG_STATUS
25480 echo >>$CONFIG_STATUS
25482 # Break up conftest.undefs because some shells have a limit on the size
25483 # of here documents, and old seds have small limits too (100 cmds).
25484 echo ' # Handle all the #undef templates' >>$CONFIG_STATUS
25485 rm -f conftest.tail
25486 while grep . conftest.undefs >/dev/null
25488 # Write a limited-size here document to $tmp/undefs.sed.
25489 echo ' cat >$tmp/undefs.sed <<CEOF' >>$CONFIG_STATUS
25490 # Speed up: don't consider the non `#undef'
25491 echo '/^[ ]*#[ ]*undef/!b' >>$CONFIG_STATUS
25492 # Work around the forget-to-reset-the-flag bug.
25493 echo 't clr' >>$CONFIG_STATUS
25494 echo ': clr' >>$CONFIG_STATUS
25495 sed ${ac_max_here_lines}q conftest.undefs >>$CONFIG_STATUS
25497 sed -f $tmp/undefs.sed $tmp/in >$tmp/out
25499 mv $tmp/out $tmp/in
25501 sed 1,${ac_max_here_lines}d conftest.undefs >conftest.tail
25502 rm -f conftest.undefs
25503 mv conftest.tail conftest.undefs
25505 rm -f conftest.undefs
25507 cat >>$CONFIG_STATUS <<\_ACEOF
25508 # Let's still pretend it is `configure' which instantiates (i.e., don't
25509 # use $as_me), people would be surprised to read:
25510 # /* config.h. Generated by config.status. */
25511 if test x"$ac_file" = x-; then
25512 echo "/* Generated by configure. */" >$tmp/config.h
25514 echo "/* $ac_file. Generated by configure. */" >$tmp/config.h
25516 cat $tmp/in >>$tmp/config.h
25518 if test x"$ac_file" != x-; then
25519 if diff $ac_file $tmp/config.h >/dev/null 2>&1; then
25520 { echo "$as_me:$LINENO: $ac_file is unchanged" >&5
25521 echo "$as_me: $ac_file is unchanged" >&6;}
25523 ac_dir=`(dirname "$ac_file") 2>/dev/null ||
25524 $as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
25525 X"$ac_file" : 'X\(//\)[^/]' \| \
25526 X"$ac_file" : 'X\(//\)$' \| \
25527 X"$ac_file" : 'X\(/\)' \| \
25528 . : '\(.\)' 2>/dev/null ||
25530 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
25531 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
25532 /^X\(\/\/\)$/{ s//\1/; q; }
25533 /^X\(\/\).*/{ s//\1/; q; }
25535 { if $as_mkdir_p; then
25540 while test ! -d "$as_dir"; do
25541 as_dirs="$as_dir $as_dirs"
25542 as_dir=`(dirname "$as_dir") 2>/dev/null ||
25543 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
25544 X"$as_dir" : 'X\(//\)[^/]' \| \
25545 X"$as_dir" : 'X\(//\)$' \| \
25546 X"$as_dir" : 'X\(/\)' \| \
25547 . : '\(.\)' 2>/dev/null ||
25549 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
25550 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
25551 /^X\(\/\/\)$/{ s//\1/; q; }
25552 /^X\(\/\).*/{ s//\1/; q; }
25555 test ! -n "$as_dirs" || mkdir $as_dirs
25556 fi || { { echo "$as_me:$LINENO: error: cannot create directory \"$ac_dir\"" >&5
25557 echo "$as_me: error: cannot create directory \"$ac_dir\"" >&2;}
25558 { (exit 1); exit 1; }; }; }
25561 mv $tmp/config.h $ac_file
25565 rm -f $tmp/config.h
25569 cat >>$CONFIG_STATUS <<\_ACEOF
25572 # CONFIG_LINKS section.
25575 for ac_file in : $CONFIG_LINKS; do test "x$ac_file" = x: && continue
25576 ac_dest=`echo "$ac_file" | sed 's,:.*,,'`
25577 ac_source=`echo "$ac_file" | sed 's,[^:]*:,,'`
25579 { echo "$as_me:$LINENO: linking $srcdir/$ac_source to $ac_dest" >&5
25580 echo "$as_me: linking $srcdir/$ac_source to $ac_dest" >&6;}
25582 if test ! -r $srcdir/$ac_source; then
25583 { { echo "$as_me:$LINENO: error: $srcdir/$ac_source: file not found" >&5
25584 echo "$as_me: error: $srcdir/$ac_source: file not found" >&2;}
25585 { (exit 1); exit 1; }; }
25589 # Make relative symlinks.
25590 ac_dest_dir=`(dirname "$ac_dest") 2>/dev/null ||
25591 $as_expr X"$ac_dest" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
25592 X"$ac_dest" : 'X\(//\)[^/]' \| \
25593 X"$ac_dest" : 'X\(//\)$' \| \
25594 X"$ac_dest" : 'X\(/\)' \| \
25595 . : '\(.\)' 2>/dev/null ||
25597 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
25598 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
25599 /^X\(\/\/\)$/{ s//\1/; q; }
25600 /^X\(\/\).*/{ s//\1/; q; }
25602 { if $as_mkdir_p; then
25603 mkdir -p "$ac_dest_dir"
25605 as_dir="$ac_dest_dir"
25607 while test ! -d "$as_dir"; do
25608 as_dirs="$as_dir $as_dirs"
25609 as_dir=`(dirname "$as_dir") 2>/dev/null ||
25610 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
25611 X"$as_dir" : 'X\(//\)[^/]' \| \
25612 X"$as_dir" : 'X\(//\)$' \| \
25613 X"$as_dir" : 'X\(/\)' \| \
25614 . : '\(.\)' 2>/dev/null ||
25616 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
25617 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
25618 /^X\(\/\/\)$/{ s//\1/; q; }
25619 /^X\(\/\).*/{ s//\1/; q; }
25622 test ! -n "$as_dirs" || mkdir $as_dirs
25623 fi || { { echo "$as_me:$LINENO: error: cannot create directory \"$ac_dest_dir\"" >&5
25624 echo "$as_me: error: cannot create directory \"$ac_dest_dir\"" >&2;}
25625 { (exit 1); exit 1; }; }; }
25629 if test "$ac_dest_dir" != .; then
25630 ac_dir_suffix=/`echo "$ac_dest_dir" | sed 's,^\.[\\/],,'`
25631 # A "../" for each directory in $ac_dir_suffix.
25632 ac_top_builddir=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,../,g'`
25634 ac_dir_suffix= ac_top_builddir=
25638 .) # No --srcdir option. We are building in place.
25640 if test -z "$ac_top_builddir"; then
25643 ac_top_srcdir=`echo $ac_top_builddir | sed 's,/$,,'`
25645 [\\/]* | ?:[\\/]* ) # Absolute path.
25646 ac_srcdir=$srcdir$ac_dir_suffix;
25647 ac_top_srcdir=$srcdir ;;
25648 *) # Relative path.
25649 ac_srcdir=$ac_top_builddir$srcdir$ac_dir_suffix
25650 ac_top_srcdir=$ac_top_builddir$srcdir ;;
25653 # Do not use `cd foo && pwd` to compute absolute paths, because
25654 # the directories may not exist.
25656 .) ac_abs_builddir="$ac_dest_dir";;
25658 case "$ac_dest_dir" in
25659 .) ac_abs_builddir=`pwd`;;
25660 [\\/]* | ?:[\\/]* ) ac_abs_builddir="$ac_dest_dir";;
25661 *) ac_abs_builddir=`pwd`/"$ac_dest_dir";;
25664 case $ac_abs_builddir in
25665 .) ac_abs_top_builddir=${ac_top_builddir}.;;
25667 case ${ac_top_builddir}. in
25668 .) ac_abs_top_builddir=$ac_abs_builddir;;
25669 [\\/]* | ?:[\\/]* ) ac_abs_top_builddir=${ac_top_builddir}.;;
25670 *) ac_abs_top_builddir=$ac_abs_builddir/${ac_top_builddir}.;;
25673 case $ac_abs_builddir in
25674 .) ac_abs_srcdir=$ac_srcdir;;
25677 .) ac_abs_srcdir=$ac_abs_builddir;;
25678 [\\/]* | ?:[\\/]* ) ac_abs_srcdir=$ac_srcdir;;
25679 *) ac_abs_srcdir=$ac_abs_builddir/$ac_srcdir;;
25682 case $ac_abs_builddir in
25683 .) ac_abs_top_srcdir=$ac_top_srcdir;;
25685 case $ac_top_srcdir in
25686 .) ac_abs_top_srcdir=$ac_abs_builddir;;
25687 [\\/]* | ?:[\\/]* ) ac_abs_top_srcdir=$ac_top_srcdir;;
25688 *) ac_abs_top_srcdir=$ac_abs_builddir/$ac_top_srcdir;;
25694 [\\/$]* | ?:[\\/]* ) ac_rel_source=$srcdir/$ac_source ;;
25695 *) ac_rel_source=$ac_top_builddir$srcdir/$ac_source ;;
25698 # Try a symlink, then a hard link, then a copy.
25699 ln -s $ac_rel_source $ac_dest 2>/dev/null ||
25700 ln $srcdir/$ac_source $ac_dest 2>/dev/null ||
25701 cp -p $srcdir/$ac_source $ac_dest ||
25702 { { echo "$as_me:$LINENO: error: cannot link or copy $srcdir/$ac_source to $ac_dest" >&5
25703 echo "$as_me: error: cannot link or copy $srcdir/$ac_source to $ac_dest" >&2;}
25704 { (exit 1); exit 1; }; }
25707 cat >>$CONFIG_STATUS <<\_ACEOF
25710 # CONFIG_COMMANDS section.
25712 for ac_file in : $CONFIG_COMMANDS; do test "x$ac_file" = x: && continue
25713 ac_dest=`echo "$ac_file" | sed 's,:.*,,'`
25714 ac_source=`echo "$ac_file" | sed 's,[^:]*:,,'`
25715 ac_dir=`(dirname "$ac_dest") 2>/dev/null ||
25716 $as_expr X"$ac_dest" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
25717 X"$ac_dest" : 'X\(//\)[^/]' \| \
25718 X"$ac_dest" : 'X\(//\)$' \| \
25719 X"$ac_dest" : 'X\(/\)' \| \
25720 . : '\(.\)' 2>/dev/null ||
25722 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
25723 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
25724 /^X\(\/\/\)$/{ s//\1/; q; }
25725 /^X\(\/\).*/{ s//\1/; q; }
25727 { if $as_mkdir_p; then
25732 while test ! -d "$as_dir"; do
25733 as_dirs="$as_dir $as_dirs"
25734 as_dir=`(dirname "$as_dir") 2>/dev/null ||
25735 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
25736 X"$as_dir" : 'X\(//\)[^/]' \| \
25737 X"$as_dir" : 'X\(//\)$' \| \
25738 X"$as_dir" : 'X\(/\)' \| \
25739 . : '\(.\)' 2>/dev/null ||
25741 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
25742 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
25743 /^X\(\/\/\)$/{ s//\1/; q; }
25744 /^X\(\/\).*/{ s//\1/; q; }
25747 test ! -n "$as_dirs" || mkdir $as_dirs
25748 fi || { { echo "$as_me:$LINENO: error: cannot create directory \"$ac_dir\"" >&5
25749 echo "$as_me: error: cannot create directory \"$ac_dir\"" >&2;}
25750 { (exit 1); exit 1; }; }; }
25754 if test "$ac_dir" != .; then
25755 ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'`
25756 # A "../" for each directory in $ac_dir_suffix.
25757 ac_top_builddir=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,../,g'`
25759 ac_dir_suffix= ac_top_builddir=
25763 .) # No --srcdir option. We are building in place.
25765 if test -z "$ac_top_builddir"; then
25768 ac_top_srcdir=`echo $ac_top_builddir | sed 's,/$,,'`
25770 [\\/]* | ?:[\\/]* ) # Absolute path.
25771 ac_srcdir=$srcdir$ac_dir_suffix;
25772 ac_top_srcdir=$srcdir ;;
25773 *) # Relative path.
25774 ac_srcdir=$ac_top_builddir$srcdir$ac_dir_suffix
25775 ac_top_srcdir=$ac_top_builddir$srcdir ;;
25778 # Do not use `cd foo && pwd` to compute absolute paths, because
25779 # the directories may not exist.
25781 .) ac_abs_builddir="$ac_dir";;
25784 .) ac_abs_builddir=`pwd`;;
25785 [\\/]* | ?:[\\/]* ) ac_abs_builddir="$ac_dir";;
25786 *) ac_abs_builddir=`pwd`/"$ac_dir";;
25789 case $ac_abs_builddir in
25790 .) ac_abs_top_builddir=${ac_top_builddir}.;;
25792 case ${ac_top_builddir}. in
25793 .) ac_abs_top_builddir=$ac_abs_builddir;;
25794 [\\/]* | ?:[\\/]* ) ac_abs_top_builddir=${ac_top_builddir}.;;
25795 *) ac_abs_top_builddir=$ac_abs_builddir/${ac_top_builddir}.;;
25798 case $ac_abs_builddir in
25799 .) ac_abs_srcdir=$ac_srcdir;;
25802 .) ac_abs_srcdir=$ac_abs_builddir;;
25803 [\\/]* | ?:[\\/]* ) ac_abs_srcdir=$ac_srcdir;;
25804 *) ac_abs_srcdir=$ac_abs_builddir/$ac_srcdir;;
25807 case $ac_abs_builddir in
25808 .) ac_abs_top_srcdir=$ac_top_srcdir;;
25810 case $ac_top_srcdir in
25811 .) ac_abs_top_srcdir=$ac_abs_builddir;;
25812 [\\/]* | ?:[\\/]* ) ac_abs_top_srcdir=$ac_top_srcdir;;
25813 *) ac_abs_top_srcdir=$ac_abs_builddir/$ac_top_srcdir;;
25818 { echo "$as_me:$LINENO: executing $ac_dest commands" >&5
25819 echo "$as_me: executing $ac_dest commands" >&6;}
25822 if test "$GCC" = yes; then
25823 echo "/* generated for " `$CC --version | sed 1q` "*/" > tmp-stdint.h
25825 echo "/* generated for $CC */" > tmp-stdint.h
25828 sed 's/^ *//' >> tmp-stdint.h <<EOF
25830 #ifndef GCC_GENERATED_STDINT_H
25831 #define GCC_GENERATED_STDINT_H 1
25833 #include <sys/types.h>
25836 if test "$acx_cv_header_stdint" != stdint.h; then
25837 echo "#include <stddef.h>" >> tmp-stdint.h
25839 if test "$acx_cv_header_stdint" != stddef.h; then
25840 echo "#include <$acx_cv_header_stdint>" >> tmp-stdint.h
25843 sed 's/^ *//' >> tmp-stdint.h <<EOF
25844 /* glibc uses these symbols as guards to prevent redefinitions. */
25845 #ifdef __int8_t_defined
25850 #ifdef __uint32_t_defined
25856 # ----------------- done header, emit basic int types -------------
25857 if test "$acx_cv_header_stdint" = stddef.h; then
25858 sed 's/^ *//' >> tmp-stdint.h <<EOF
25862 #ifndef __uint8_t_defined
25863 #define __uint8_t_defined
25864 typedef unsigned $acx_cv_type_int8_t uint8_t;
25870 #ifndef __uint16_t_defined
25871 #define __uint16_t_defined
25872 typedef unsigned $acx_cv_type_int16_t uint16_t;
25878 #ifndef __uint32_t_defined
25879 #define __uint32_t_defined
25880 typedef unsigned $acx_cv_type_int32_t uint32_t;
25886 #ifndef __int8_t_defined
25887 #define __int8_t_defined
25888 typedef $acx_cv_type_int8_t int8_t;
25894 #ifndef __int16_t_defined
25895 #define __int16_t_defined
25896 typedef $acx_cv_type_int16_t int16_t;
25902 #ifndef __int32_t_defined
25903 #define __int32_t_defined
25904 typedef $acx_cv_type_int32_t int32_t;
25908 elif test "$ac_cv_type_u_int32_t" = yes; then
25909 sed 's/^ *//' >> tmp-stdint.h <<EOF
25911 /* int8_t int16_t int32_t defined by inet code, we do the u_intXX types */
25924 #ifndef __uint8_t_defined
25925 #define __uint8_t_defined
25926 typedef u_int8_t uint8_t;
25932 #ifndef __uint16_t_defined
25933 #define __uint16_t_defined
25934 typedef u_int16_t uint16_t;
25940 #ifndef __uint32_t_defined
25941 #define __uint32_t_defined
25942 typedef u_int32_t uint32_t;
25947 sed 's/^ *//' >> tmp-stdint.h <<EOF
25949 /* Some systems have guard macros to prevent redefinitions, define them. */
25971 # ------------- done basic int types, emit int64_t types ------------
25972 if test "$ac_cv_type_uint64_t" = yes; then
25973 sed 's/^ *//' >> tmp-stdint.h <<EOF
25975 /* system headers have good uint64_t and int64_t */
25983 elif test "$ac_cv_type_u_int64_t" = yes; then
25984 sed 's/^ *//' >> tmp-stdint.h <<EOF
25986 /* system headers have an u_int64_t (and int64_t) */
25992 #ifndef __uint64_t_defined
25993 #define __uint64_t_defined
25994 typedef u_int64_t uint64_t;
25998 elif test -n "$acx_cv_type_int64_t"; then
25999 sed 's/^ *//' >> tmp-stdint.h <<EOF
26001 /* architecture has a 64-bit type, $acx_cv_type_int64_t */
26004 typedef $acx_cv_type_int64_t int64_t;
26008 #ifndef __uint64_t_defined
26009 #define __uint64_t_defined
26010 typedef unsigned $acx_cv_type_int64_t uint64_t;
26015 sed 's/^ *//' >> tmp-stdint.h <<EOF
26017 /* some common heuristics for int64_t, using compiler-specific tests */
26018 #if defined __STDC_VERSION__ && (__STDC_VERSION__-0) >= 199901L
26021 #ifndef __int64_t_defined
26022 typedef long long int64_t;
26027 typedef unsigned long long uint64_t;
26030 #elif defined __GNUC__ && defined (__STDC__) && __STDC__-0
26031 /* NextStep 2.0 cc is really gcc 1.93 but it defines __GNUC__ = 2 and
26032 does not implement __extension__. But that compiler doesn't define
26034 # if __GNUC__ < 2 || (__NeXT__ && !__GNUC_MINOR__)
26035 # define __extension__
26040 __extension__ typedef long long int64_t;
26044 __extension__ typedef unsigned long long uint64_t;
26047 #elif !defined __STRICT_ANSI__
26048 # if defined _MSC_VER || defined __WATCOMC__ || defined __BORLANDC__
26052 typedef __int64 int64_t;
26056 typedef unsigned __int64 uint64_t;
26058 # endif /* compiler */
26060 #endif /* ANSI version */
26064 # ------------- done int64_t types, emit intptr types ------------
26065 if test "$ac_cv_type_uintptr_t" != yes; then
26066 sed 's/^ *//' >> tmp-stdint.h <<EOF
26068 /* Define intptr_t based on sizeof(void*) = $ac_cv_sizeof_void_p */
26069 #ifndef __uintptr_t_defined
26070 typedef u$acx_cv_type_intptr_t uintptr_t;
26072 #ifndef __intptr_t_defined
26073 typedef $acx_cv_type_intptr_t intptr_t;
26078 # ------------- done intptr types, emit int_least types ------------
26079 if test "$ac_cv_type_int_least32_t" != yes; then
26080 sed 's/^ *//' >> tmp-stdint.h <<EOF
26082 /* Define int_least types */
26083 typedef int8_t int_least8_t;
26084 typedef int16_t int_least16_t;
26085 typedef int32_t int_least32_t;
26087 typedef int64_t int_least64_t;
26090 typedef uint8_t uint_least8_t;
26091 typedef uint16_t uint_least16_t;
26092 typedef uint32_t uint_least32_t;
26094 typedef uint64_t uint_least64_t;
26099 # ------------- done intptr types, emit int_fast types ------------
26100 if test "$ac_cv_type_int_fast32_t" != yes; then
26101 sed 's/^ *//' >> tmp-stdint.h <<EOF
26103 /* Define int_fast types. short is often slow */
26104 typedef int8_t int_fast8_t;
26105 typedef int int_fast16_t;
26106 typedef int32_t int_fast32_t;
26108 typedef int64_t int_fast64_t;
26111 typedef uint8_t uint_fast8_t;
26112 typedef unsigned int uint_fast16_t;
26113 typedef uint32_t uint_fast32_t;
26115 typedef uint64_t uint_fast64_t;
26120 if test "$ac_cv_type_uintmax_t" != yes; then
26121 sed 's/^ *//' >> tmp-stdint.h <<EOF
26123 /* Define intmax based on what we found */
26125 typedef int64_t intmax_t;
26127 typedef long intmax_t;
26130 typedef uint64_t uintmax_t;
26132 typedef unsigned long uintmax_t;
26137 sed 's/^ *//' >> tmp-stdint.h <<EOF
26139 #endif /* GCC_GENERATED_STDINT_H */
26142 if test -r gdb_stdint.h && cmp -s tmp-stdint.h gdb_stdint.h; then
26145 mv -f tmp-stdint.h gdb_stdint.h
26151 sed -e '/^NAT_FILE[ ]*=/s,^NAT_FILE[ ]*=[ ]*,&config/'"${gdb_host_cpu}"'/,' <Makefile >Makefile.tmp
26152 mv -f Makefile.tmp Makefile
26155 case x$CONFIG_HEADERS in
26156 xconfig.h:config.in)
26164 cat >>$CONFIG_STATUS <<\_ACEOF
26166 { (exit 0); exit 0; }
26168 chmod +x $CONFIG_STATUS
26169 ac_clean_files=$ac_clean_files_save
26172 # configure is writing to config.log, and then calls config.status.
26173 # config.status does its own redirection, appending to config.log.
26174 # Unfortunately, on DOS this fails, as config.log is still kept open
26175 # by configure, so config.status won't be able to write to it; its
26176 # output is simply discarded. So we exec the FD to /dev/null,
26177 # effectively closing config.log, so it can be properly (re)opened and
26178 # appended to by config.status. When coming back to configure, we
26179 # need to make the FD available again.
26180 if test "$no_create" != yes; then
26182 ac_config_status_args=
26183 test "$silent" = yes &&
26184 ac_config_status_args="$ac_config_status_args --quiet"
26186 $SHELL $CONFIG_STATUS $ac_config_status_args || ac_cs_success=false
26188 # Use ||, not &&, to avoid exiting from the if with $? = 1, which
26189 # would make configure fail if this is the last instruction.
26190 $ac_cs_success || { (exit 1); exit 1; }
26194 # CONFIG_SUBDIRS section.
26196 if test "$no_recursion" != yes; then
26198 # Remove --cache-file and --srcdir arguments so they do not pile up.
26199 ac_sub_configure_args=
26201 for ac_arg in $ac_configure_args; do
26202 if test -n "$ac_prev"; then
26207 -cache-file | --cache-file | --cache-fil | --cache-fi \
26208 | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c)
26209 ac_prev=cache_file ;;
26210 -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \
26211 | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* \
26214 --config-cache | -C)
26216 -srcdir | --srcdir | --srcdi | --srcd | --src | --sr)
26218 -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*)
26220 -prefix | --prefix | --prefi | --pref | --pre | --pr | --p)
26222 -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*)
26224 *) ac_sub_configure_args="$ac_sub_configure_args $ac_arg" ;;
26228 # Always prepend --prefix to ensure using the same prefix
26229 # in subdir configurations.
26230 ac_sub_configure_args="--prefix=$prefix $ac_sub_configure_args"
26233 for ac_dir in : $subdirs; do test "x$ac_dir" = x: && continue
26235 # Do not complain, so a configure script can configure whichever
26236 # parts of a large source tree are present.
26237 test -d $srcdir/$ac_dir || continue
26239 { echo "$as_me:$LINENO: configuring in $ac_dir" >&5
26240 echo "$as_me: configuring in $ac_dir" >&6;}
26241 { if $as_mkdir_p; then
26246 while test ! -d "$as_dir"; do
26247 as_dirs="$as_dir $as_dirs"
26248 as_dir=`(dirname "$as_dir") 2>/dev/null ||
26249 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
26250 X"$as_dir" : 'X\(//\)[^/]' \| \
26251 X"$as_dir" : 'X\(//\)$' \| \
26252 X"$as_dir" : 'X\(/\)' \| \
26253 . : '\(.\)' 2>/dev/null ||
26255 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
26256 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
26257 /^X\(\/\/\)$/{ s//\1/; q; }
26258 /^X\(\/\).*/{ s//\1/; q; }
26261 test ! -n "$as_dirs" || mkdir $as_dirs
26262 fi || { { echo "$as_me:$LINENO: error: cannot create directory \"$ac_dir\"" >&5
26263 echo "$as_me: error: cannot create directory \"$ac_dir\"" >&2;}
26264 { (exit 1); exit 1; }; }; }
26268 if test "$ac_dir" != .; then
26269 ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'`
26270 # A "../" for each directory in $ac_dir_suffix.
26271 ac_top_builddir=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,../,g'`
26273 ac_dir_suffix= ac_top_builddir=
26277 .) # No --srcdir option. We are building in place.
26279 if test -z "$ac_top_builddir"; then
26282 ac_top_srcdir=`echo $ac_top_builddir | sed 's,/$,,'`
26284 [\\/]* | ?:[\\/]* ) # Absolute path.
26285 ac_srcdir=$srcdir$ac_dir_suffix;
26286 ac_top_srcdir=$srcdir ;;
26287 *) # Relative path.
26288 ac_srcdir=$ac_top_builddir$srcdir$ac_dir_suffix
26289 ac_top_srcdir=$ac_top_builddir$srcdir ;;
26292 # Do not use `cd foo && pwd` to compute absolute paths, because
26293 # the directories may not exist.
26295 .) ac_abs_builddir="$ac_dir";;
26298 .) ac_abs_builddir=`pwd`;;
26299 [\\/]* | ?:[\\/]* ) ac_abs_builddir="$ac_dir";;
26300 *) ac_abs_builddir=`pwd`/"$ac_dir";;
26303 case $ac_abs_builddir in
26304 .) ac_abs_top_builddir=${ac_top_builddir}.;;
26306 case ${ac_top_builddir}. in
26307 .) ac_abs_top_builddir=$ac_abs_builddir;;
26308 [\\/]* | ?:[\\/]* ) ac_abs_top_builddir=${ac_top_builddir}.;;
26309 *) ac_abs_top_builddir=$ac_abs_builddir/${ac_top_builddir}.;;
26312 case $ac_abs_builddir in
26313 .) ac_abs_srcdir=$ac_srcdir;;
26316 .) ac_abs_srcdir=$ac_abs_builddir;;
26317 [\\/]* | ?:[\\/]* ) ac_abs_srcdir=$ac_srcdir;;
26318 *) ac_abs_srcdir=$ac_abs_builddir/$ac_srcdir;;
26321 case $ac_abs_builddir in
26322 .) ac_abs_top_srcdir=$ac_top_srcdir;;
26324 case $ac_top_srcdir in
26325 .) ac_abs_top_srcdir=$ac_abs_builddir;;
26326 [\\/]* | ?:[\\/]* ) ac_abs_top_srcdir=$ac_top_srcdir;;
26327 *) ac_abs_top_srcdir=$ac_abs_builddir/$ac_top_srcdir;;
26334 # Check for guested configure; otherwise get Cygnus style configure.
26335 if test -f $ac_srcdir/configure.gnu; then
26336 ac_sub_configure="$SHELL '$ac_srcdir/configure.gnu'"
26337 elif test -f $ac_srcdir/configure; then
26338 ac_sub_configure="$SHELL '$ac_srcdir/configure'"
26339 elif test -f $ac_srcdir/configure.in; then
26340 ac_sub_configure=$ac_configure
26342 { echo "$as_me:$LINENO: WARNING: no configuration information is in $ac_dir" >&5
26343 echo "$as_me: WARNING: no configuration information is in $ac_dir" >&2;}
26347 # The recursion is here.
26348 if test -n "$ac_sub_configure"; then
26349 # Make the cache file name correct relative to the subdirectory.
26350 case $cache_file in
26351 [\\/]* | ?:[\\/]* ) ac_sub_cache_file=$cache_file ;;
26352 *) # Relative path.
26353 ac_sub_cache_file=$ac_top_builddir$cache_file ;;
26356 { echo "$as_me:$LINENO: running $ac_sub_configure $ac_sub_configure_args --cache-file=$ac_sub_cache_file --srcdir=$ac_srcdir" >&5
26357 echo "$as_me: running $ac_sub_configure $ac_sub_configure_args --cache-file=$ac_sub_cache_file --srcdir=$ac_srcdir" >&6;}
26358 # The eval makes quoting arguments work.
26359 eval $ac_sub_configure $ac_sub_configure_args \
26360 --cache-file=$ac_sub_cache_file --srcdir=$ac_srcdir ||
26361 { { echo "$as_me:$LINENO: error: $ac_sub_configure failed for $ac_dir" >&5
26362 echo "$as_me: error: $ac_sub_configure failed for $ac_dir" >&2;}
26363 { (exit 1); exit 1; }; }