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 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 xm_h tm_h 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-gnu-ld assume the C compiler uses GNU ld default=no
881 --with-libexpat-prefix[=DIR] search for libexpat in DIR/include and DIR/lib
882 --without-libexpat-prefix don't search for libexpat in includedir and libdir
883 --without-included-regex don't use included regex; this is the default
884 on systems with version 2 of the GNU C library
885 (use with caution on other system)
886 --with-sysroot=DIR Search for usr/lib et al within DIR.
887 --with-tclconfig=DIR Directory containing tcl configuration (tclConfig.sh)
888 --with-tkconfig=DIR Directory containing tk configuration (tkConfig.sh)
889 --with-tclinclude=DIR Directory where tcl private headers are
890 --with-tkinclude=DIR Directory where tk private headers are
891 --with-itclconfig Directory containing itcl configuration (itclConfig.sh)
892 --with-itkconfig Directory containing itk configuration (itkConfig.sh)
893 --with-x use the X Window System
894 --with-libiconv-prefix=DIR search for libiconv in DIR/include and DIR/lib
896 Some influential environment variables:
897 CC C compiler command
898 CFLAGS C compiler flags
899 LDFLAGS linker flags, e.g. -L<lib dir> if you have libraries in a
900 nonstandard directory <lib dir>
901 CPPFLAGS C/C++ preprocessor flags, e.g. -I<include dir> if you have
902 headers in a nonstandard directory <include dir>
905 Use these variables to override the choices made by `configure' or to help
906 it to find libraries and programs with nonstandard names/locations.
911 if test "$ac_init_help" = "recursive"; then
912 # If there are subdirs, report their specific --help.
914 for ac_dir in : $ac_subdirs_all; do test "x$ac_dir" = x: && continue
915 test -d $ac_dir || continue
918 if test "$ac_dir" != .; then
919 ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'`
920 # A "../" for each directory in $ac_dir_suffix.
921 ac_top_builddir=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,../,g'`
923 ac_dir_suffix= ac_top_builddir=
927 .) # No --srcdir option. We are building in place.
929 if test -z "$ac_top_builddir"; then
932 ac_top_srcdir=`echo $ac_top_builddir | sed 's,/$,,'`
934 [\\/]* | ?:[\\/]* ) # Absolute path.
935 ac_srcdir=$srcdir$ac_dir_suffix;
936 ac_top_srcdir=$srcdir ;;
938 ac_srcdir=$ac_top_builddir$srcdir$ac_dir_suffix
939 ac_top_srcdir=$ac_top_builddir$srcdir ;;
942 # Do not use `cd foo && pwd` to compute absolute paths, because
943 # the directories may not exist.
945 .) ac_abs_builddir="$ac_dir";;
948 .) ac_abs_builddir=`pwd`;;
949 [\\/]* | ?:[\\/]* ) ac_abs_builddir="$ac_dir";;
950 *) ac_abs_builddir=`pwd`/"$ac_dir";;
953 case $ac_abs_builddir in
954 .) ac_abs_top_builddir=${ac_top_builddir}.;;
956 case ${ac_top_builddir}. in
957 .) ac_abs_top_builddir=$ac_abs_builddir;;
958 [\\/]* | ?:[\\/]* ) ac_abs_top_builddir=${ac_top_builddir}.;;
959 *) ac_abs_top_builddir=$ac_abs_builddir/${ac_top_builddir}.;;
962 case $ac_abs_builddir in
963 .) ac_abs_srcdir=$ac_srcdir;;
966 .) ac_abs_srcdir=$ac_abs_builddir;;
967 [\\/]* | ?:[\\/]* ) ac_abs_srcdir=$ac_srcdir;;
968 *) ac_abs_srcdir=$ac_abs_builddir/$ac_srcdir;;
971 case $ac_abs_builddir in
972 .) ac_abs_top_srcdir=$ac_top_srcdir;;
974 case $ac_top_srcdir in
975 .) ac_abs_top_srcdir=$ac_abs_builddir;;
976 [\\/]* | ?:[\\/]* ) ac_abs_top_srcdir=$ac_top_srcdir;;
977 *) ac_abs_top_srcdir=$ac_abs_builddir/$ac_top_srcdir;;
982 # Check for guested configure; otherwise get Cygnus style configure.
983 if test -f $ac_srcdir/configure.gnu; then
985 $SHELL $ac_srcdir/configure.gnu --help=recursive
986 elif test -f $ac_srcdir/configure; then
988 $SHELL $ac_srcdir/configure --help=recursive
989 elif test -f $ac_srcdir/configure.ac ||
990 test -f $ac_srcdir/configure.in; then
994 echo "$as_me: WARNING: no configuration information is in $ac_dir" >&2
1000 test -n "$ac_init_help" && exit 0
1001 if $ac_init_version; then
1004 Copyright (C) 2003 Free Software Foundation, Inc.
1005 This configure script is free software; the Free Software Foundation
1006 gives unlimited permission to copy, distribute and modify it.
1012 This file contains any messages produced by compilers while
1013 running configure, to aid debugging if configure makes a mistake.
1015 It was created by $as_me, which was
1016 generated by GNU Autoconf 2.59. Invocation command line was
1027 hostname = `(hostname || uname -n) 2>/dev/null | sed 1q`
1028 uname -m = `(uname -m) 2>/dev/null || echo unknown`
1029 uname -r = `(uname -r) 2>/dev/null || echo unknown`
1030 uname -s = `(uname -s) 2>/dev/null || echo unknown`
1031 uname -v = `(uname -v) 2>/dev/null || echo unknown`
1033 /usr/bin/uname -p = `(/usr/bin/uname -p) 2>/dev/null || echo unknown`
1034 /bin/uname -X = `(/bin/uname -X) 2>/dev/null || echo unknown`
1036 /bin/arch = `(/bin/arch) 2>/dev/null || echo unknown`
1037 /usr/bin/arch -k = `(/usr/bin/arch -k) 2>/dev/null || echo unknown`
1038 /usr/convex/getsysinfo = `(/usr/convex/getsysinfo) 2>/dev/null || echo unknown`
1039 hostinfo = `(hostinfo) 2>/dev/null || echo unknown`
1040 /bin/machine = `(/bin/machine) 2>/dev/null || echo unknown`
1041 /usr/bin/oslevel = `(/usr/bin/oslevel) 2>/dev/null || echo unknown`
1042 /bin/universe = `(/bin/universe) 2>/dev/null || echo unknown`
1046 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1050 test -z "$as_dir" && as_dir=.
1051 echo "PATH: $as_dir"
1066 # Keep a trace of the command line.
1067 # Strip out --no-create and --no-recursion so they do not pile up.
1068 # Strip out --silent because we don't want to record it for future runs.
1069 # Also quote any args containing shell meta-characters.
1070 # Make two passes to allow for proper duplicate-argument suppression.
1075 ac_must_keep_next=false
1081 -no-create | --no-c* | -n | -no-recursion | --no-r*) continue ;;
1082 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
1083 | -silent | --silent | --silen | --sile | --sil)
1085 *" "*|*" "*|*[\[\]\~\#\$\^\&\*\(\)\{\}\\\|\;\<\>\?\"\']*)
1086 ac_arg=`echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;;
1089 1) ac_configure_args0="$ac_configure_args0 '$ac_arg'" ;;
1091 ac_configure_args1="$ac_configure_args1 '$ac_arg'"
1092 if test $ac_must_keep_next = true; then
1093 ac_must_keep_next=false # Got value, back to normal.
1096 *=* | --config-cache | -C | -disable-* | --disable-* \
1097 | -enable-* | --enable-* | -gas | --g* | -nfp | --nf* \
1098 | -q | -quiet | --q* | -silent | --sil* | -v | -verb* \
1099 | -with-* | --with-* | -without-* | --without-* | --x)
1100 case "$ac_configure_args0 " in
1101 "$ac_configure_args1"*" '$ac_arg' "* ) continue ;;
1104 -* ) ac_must_keep_next=true ;;
1107 ac_configure_args="$ac_configure_args$ac_sep'$ac_arg'"
1108 # Get rid of the leading space.
1114 $as_unset ac_configure_args0 || test "${ac_configure_args0+set}" != set || { ac_configure_args0=; export ac_configure_args0; }
1115 $as_unset ac_configure_args1 || test "${ac_configure_args1+set}" != set || { ac_configure_args1=; export ac_configure_args1; }
1117 # When interrupted or exit'd, cleanup temporary files, and complete
1118 # config.log. We remove comments because anyway the quotes in there
1119 # would cause problems or look ugly.
1120 # WARNING: Be sure not to use single quotes in there, as some shells,
1121 # such as our DU 5.0 friend, will then `close' the trap.
1122 trap 'exit_status=$?
1123 # Save into config.log some information that might help in debugging.
1128 ## ---------------- ##
1129 ## Cache variables. ##
1130 ## ---------------- ##
1133 # The following way of writing the cache mishandles newlines in values,
1136 case `(ac_space='"'"' '"'"'; set | grep ac_space) 2>&1` in
1139 "s/'"'"'/'"'"'\\\\'"'"''"'"'/g;
1140 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='"'"'\\2'"'"'/p"
1144 "s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1=\\2/p"
1151 ## ----------------- ##
1152 ## Output variables. ##
1153 ## ----------------- ##
1156 for ac_var in $ac_subst_vars
1158 eval ac_val=$`echo $ac_var`
1159 echo "$ac_var='"'"'$ac_val'"'"'"
1163 if test -n "$ac_subst_files"; then
1170 for ac_var in $ac_subst_files
1172 eval ac_val=$`echo $ac_var`
1173 echo "$ac_var='"'"'$ac_val'"'"'"
1178 if test -s confdefs.h; then
1185 sed "/^$/d" confdefs.h | sort
1188 test "$ac_signal" != 0 &&
1189 echo "$as_me: caught signal $ac_signal"
1190 echo "$as_me: exit $exit_status"
1192 rm -f core *.core &&
1193 rm -rf conftest* confdefs* conf$$* $ac_clean_files &&
1196 for ac_signal in 1 2 13 15; do
1197 trap 'ac_signal='$ac_signal'; { (exit 1); exit 1; }' $ac_signal
1201 # confdefs.h avoids OS command line length limits that DEFS can exceed.
1202 rm -rf conftest* confdefs.h
1203 # AIX cpp loses on an empty file, so make sure it contains at least a newline.
1206 # Predefined preprocessor variables.
1208 cat >>confdefs.h <<_ACEOF
1209 #define PACKAGE_NAME "$PACKAGE_NAME"
1213 cat >>confdefs.h <<_ACEOF
1214 #define PACKAGE_TARNAME "$PACKAGE_TARNAME"
1218 cat >>confdefs.h <<_ACEOF
1219 #define PACKAGE_VERSION "$PACKAGE_VERSION"
1223 cat >>confdefs.h <<_ACEOF
1224 #define PACKAGE_STRING "$PACKAGE_STRING"
1228 cat >>confdefs.h <<_ACEOF
1229 #define PACKAGE_BUGREPORT "$PACKAGE_BUGREPORT"
1233 # Let the site file select an alternate cache file if it wants to.
1234 # Prefer explicitly selected file to automatically selected ones.
1235 if test -z "$CONFIG_SITE"; then
1236 if test "x$prefix" != xNONE; then
1237 CONFIG_SITE="$prefix/share/config.site $prefix/etc/config.site"
1239 CONFIG_SITE="$ac_default_prefix/share/config.site $ac_default_prefix/etc/config.site"
1242 for ac_site_file in $CONFIG_SITE; do
1243 if test -r "$ac_site_file"; then
1244 { echo "$as_me:$LINENO: loading site script $ac_site_file" >&5
1245 echo "$as_me: loading site script $ac_site_file" >&6;}
1246 sed 's/^/| /' "$ac_site_file" >&5
1251 if test -r "$cache_file"; then
1252 # Some versions of bash will fail to source /dev/null (special
1253 # files actually), so we avoid doing that.
1254 if test -f "$cache_file"; then
1255 { echo "$as_me:$LINENO: loading cache $cache_file" >&5
1256 echo "$as_me: loading cache $cache_file" >&6;}
1258 [\\/]* | ?:[\\/]* ) . $cache_file;;
1259 *) . ./$cache_file;;
1263 { echo "$as_me:$LINENO: creating cache $cache_file" >&5
1264 echo "$as_me: creating cache $cache_file" >&6;}
1268 # Check that the precious variables saved in the cache have kept the same
1270 ac_cache_corrupted=false
1271 for ac_var in `(set) 2>&1 |
1272 sed -n 's/^ac_env_\([a-zA-Z_0-9]*\)_set=.*/\1/p'`; do
1273 eval ac_old_set=\$ac_cv_env_${ac_var}_set
1274 eval ac_new_set=\$ac_env_${ac_var}_set
1275 eval ac_old_val="\$ac_cv_env_${ac_var}_value"
1276 eval ac_new_val="\$ac_env_${ac_var}_value"
1277 case $ac_old_set,$ac_new_set in
1279 { echo "$as_me:$LINENO: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&5
1280 echo "$as_me: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&2;}
1281 ac_cache_corrupted=: ;;
1283 { echo "$as_me:$LINENO: error: \`$ac_var' was not set in the previous run" >&5
1284 echo "$as_me: error: \`$ac_var' was not set in the previous run" >&2;}
1285 ac_cache_corrupted=: ;;
1288 if test "x$ac_old_val" != "x$ac_new_val"; then
1289 { echo "$as_me:$LINENO: error: \`$ac_var' has changed since the previous run:" >&5
1290 echo "$as_me: error: \`$ac_var' has changed since the previous run:" >&2;}
1291 { echo "$as_me:$LINENO: former value: $ac_old_val" >&5
1292 echo "$as_me: former value: $ac_old_val" >&2;}
1293 { echo "$as_me:$LINENO: current value: $ac_new_val" >&5
1294 echo "$as_me: current value: $ac_new_val" >&2;}
1295 ac_cache_corrupted=:
1298 # Pass precious variables to config.status.
1299 if test "$ac_new_set" = set; then
1301 *" "*|*" "*|*[\[\]\~\#\$\^\&\*\(\)\{\}\\\|\;\<\>\?\"\']*)
1302 ac_arg=$ac_var=`echo "$ac_new_val" | sed "s/'/'\\\\\\\\''/g"` ;;
1303 *) ac_arg=$ac_var=$ac_new_val ;;
1305 case " $ac_configure_args " in
1306 *" '$ac_arg' "*) ;; # Avoid dups. Use of quotes ensures accuracy.
1307 *) ac_configure_args="$ac_configure_args '$ac_arg'" ;;
1311 if $ac_cache_corrupted; then
1312 { echo "$as_me:$LINENO: error: changes in the environment can compromise the build" >&5
1313 echo "$as_me: error: changes in the environment can compromise the build" >&2;}
1314 { { echo "$as_me:$LINENO: error: run \`make distclean' and/or \`rm $cache_file' and start over" >&5
1315 echo "$as_me: error: run \`make distclean' and/or \`rm $cache_file' and start over" >&2;}
1316 { (exit 1); exit 1; }; }
1320 ac_cpp='$CPP $CPPFLAGS'
1321 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
1322 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
1323 ac_compiler_gnu=$ac_cv_c_compiler_gnu
1343 ac_config_headers="$ac_config_headers config.h:config.in"
1345 echo "$as_me:$LINENO: checking whether to enable maintainer-specific portions of Makefiles" >&5
1346 echo $ECHO_N "checking whether to enable maintainer-specific portions of Makefiles... $ECHO_C" >&6
1347 # Check whether --enable-maintainer-mode or --disable-maintainer-mode was given.
1348 if test "${enable_maintainer_mode+set}" = set; then
1349 enableval="$enable_maintainer_mode"
1350 USE_MAINTAINER_MODE=$enableval
1352 USE_MAINTAINER_MODE=no
1354 echo "$as_me:$LINENO: result: $USE_MAINTAINER_MODE" >&5
1355 echo "${ECHO_T}$USE_MAINTAINER_MODE" >&6
1358 if test $USE_MAINTAINER_MODE = yes; then
1359 MAINTAINER_MODE_TRUE=
1360 MAINTAINER_MODE_FALSE='#'
1362 MAINTAINER_MODE_TRUE='#'
1363 MAINTAINER_MODE_FALSE=
1366 MAINT=$MAINTAINER_MODE_TRUE
1371 ac_cpp='$CPP $CPPFLAGS'
1372 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
1373 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
1374 ac_compiler_gnu=$ac_cv_c_compiler_gnu
1375 if test -n "$ac_tool_prefix"; then
1376 # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args.
1377 set dummy ${ac_tool_prefix}gcc; ac_word=$2
1378 echo "$as_me:$LINENO: checking for $ac_word" >&5
1379 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1380 if test "${ac_cv_prog_CC+set}" = set; then
1381 echo $ECHO_N "(cached) $ECHO_C" >&6
1383 if test -n "$CC"; then
1384 ac_cv_prog_CC="$CC" # Let the user override the test.
1386 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1390 test -z "$as_dir" && as_dir=.
1391 for ac_exec_ext in '' $ac_executable_extensions; do
1392 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1393 ac_cv_prog_CC="${ac_tool_prefix}gcc"
1394 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
1403 if test -n "$CC"; then
1404 echo "$as_me:$LINENO: result: $CC" >&5
1405 echo "${ECHO_T}$CC" >&6
1407 echo "$as_me:$LINENO: result: no" >&5
1408 echo "${ECHO_T}no" >&6
1412 if test -z "$ac_cv_prog_CC"; then
1414 # Extract the first word of "gcc", so it can be a program name with args.
1415 set dummy gcc; ac_word=$2
1416 echo "$as_me:$LINENO: checking for $ac_word" >&5
1417 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1418 if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
1419 echo $ECHO_N "(cached) $ECHO_C" >&6
1421 if test -n "$ac_ct_CC"; then
1422 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
1424 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1428 test -z "$as_dir" && as_dir=.
1429 for ac_exec_ext in '' $ac_executable_extensions; do
1430 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1431 ac_cv_prog_ac_ct_CC="gcc"
1432 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
1440 ac_ct_CC=$ac_cv_prog_ac_ct_CC
1441 if test -n "$ac_ct_CC"; then
1442 echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
1443 echo "${ECHO_T}$ac_ct_CC" >&6
1445 echo "$as_me:$LINENO: result: no" >&5
1446 echo "${ECHO_T}no" >&6
1454 if test -z "$CC"; then
1455 if test -n "$ac_tool_prefix"; then
1456 # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args.
1457 set dummy ${ac_tool_prefix}cc; ac_word=$2
1458 echo "$as_me:$LINENO: checking for $ac_word" >&5
1459 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1460 if test "${ac_cv_prog_CC+set}" = set; then
1461 echo $ECHO_N "(cached) $ECHO_C" >&6
1463 if test -n "$CC"; then
1464 ac_cv_prog_CC="$CC" # Let the user override the test.
1466 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1470 test -z "$as_dir" && as_dir=.
1471 for ac_exec_ext in '' $ac_executable_extensions; do
1472 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1473 ac_cv_prog_CC="${ac_tool_prefix}cc"
1474 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
1483 if test -n "$CC"; then
1484 echo "$as_me:$LINENO: result: $CC" >&5
1485 echo "${ECHO_T}$CC" >&6
1487 echo "$as_me:$LINENO: result: no" >&5
1488 echo "${ECHO_T}no" >&6
1492 if test -z "$ac_cv_prog_CC"; then
1494 # Extract the first word of "cc", so it can be a program name with args.
1495 set dummy cc; ac_word=$2
1496 echo "$as_me:$LINENO: checking for $ac_word" >&5
1497 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1498 if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
1499 echo $ECHO_N "(cached) $ECHO_C" >&6
1501 if test -n "$ac_ct_CC"; then
1502 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
1504 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1508 test -z "$as_dir" && as_dir=.
1509 for ac_exec_ext in '' $ac_executable_extensions; do
1510 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1511 ac_cv_prog_ac_ct_CC="cc"
1512 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
1520 ac_ct_CC=$ac_cv_prog_ac_ct_CC
1521 if test -n "$ac_ct_CC"; then
1522 echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
1523 echo "${ECHO_T}$ac_ct_CC" >&6
1525 echo "$as_me:$LINENO: result: no" >&5
1526 echo "${ECHO_T}no" >&6
1535 if test -z "$CC"; then
1536 # Extract the first word of "cc", so it can be a program name with args.
1537 set dummy cc; ac_word=$2
1538 echo "$as_me:$LINENO: checking for $ac_word" >&5
1539 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1540 if test "${ac_cv_prog_CC+set}" = set; then
1541 echo $ECHO_N "(cached) $ECHO_C" >&6
1543 if test -n "$CC"; then
1544 ac_cv_prog_CC="$CC" # Let the user override the test.
1547 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1551 test -z "$as_dir" && as_dir=.
1552 for ac_exec_ext in '' $ac_executable_extensions; do
1553 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1554 if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then
1555 ac_prog_rejected=yes
1559 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
1565 if test $ac_prog_rejected = yes; then
1566 # We found a bogon in the path, so make sure we never use it.
1567 set dummy $ac_cv_prog_CC
1569 if test $# != 0; then
1570 # We chose a different compiler from the bogus one.
1571 # However, it has the same basename, so the bogon will be chosen
1572 # first if we set CC to just the basename; use the full file name.
1574 ac_cv_prog_CC="$as_dir/$ac_word${1+' '}$@"
1580 if test -n "$CC"; then
1581 echo "$as_me:$LINENO: result: $CC" >&5
1582 echo "${ECHO_T}$CC" >&6
1584 echo "$as_me:$LINENO: result: no" >&5
1585 echo "${ECHO_T}no" >&6
1589 if test -z "$CC"; then
1590 if test -n "$ac_tool_prefix"; then
1593 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
1594 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
1595 echo "$as_me:$LINENO: checking for $ac_word" >&5
1596 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1597 if test "${ac_cv_prog_CC+set}" = set; then
1598 echo $ECHO_N "(cached) $ECHO_C" >&6
1600 if test -n "$CC"; then
1601 ac_cv_prog_CC="$CC" # Let the user override the test.
1603 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1607 test -z "$as_dir" && as_dir=.
1608 for ac_exec_ext in '' $ac_executable_extensions; do
1609 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1610 ac_cv_prog_CC="$ac_tool_prefix$ac_prog"
1611 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
1620 if test -n "$CC"; then
1621 echo "$as_me:$LINENO: result: $CC" >&5
1622 echo "${ECHO_T}$CC" >&6
1624 echo "$as_me:$LINENO: result: no" >&5
1625 echo "${ECHO_T}no" >&6
1628 test -n "$CC" && break
1631 if test -z "$CC"; then
1635 # Extract the first word of "$ac_prog", so it can be a program name with args.
1636 set dummy $ac_prog; ac_word=$2
1637 echo "$as_me:$LINENO: checking for $ac_word" >&5
1638 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1639 if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
1640 echo $ECHO_N "(cached) $ECHO_C" >&6
1642 if test -n "$ac_ct_CC"; then
1643 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
1645 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1649 test -z "$as_dir" && as_dir=.
1650 for ac_exec_ext in '' $ac_executable_extensions; do
1651 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1652 ac_cv_prog_ac_ct_CC="$ac_prog"
1653 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
1661 ac_ct_CC=$ac_cv_prog_ac_ct_CC
1662 if test -n "$ac_ct_CC"; then
1663 echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
1664 echo "${ECHO_T}$ac_ct_CC" >&6
1666 echo "$as_me:$LINENO: result: no" >&5
1667 echo "${ECHO_T}no" >&6
1670 test -n "$ac_ct_CC" && break
1679 test -z "$CC" && { { echo "$as_me:$LINENO: error: no acceptable C compiler found in \$PATH
1680 See \`config.log' for more details." >&5
1681 echo "$as_me: error: no acceptable C compiler found in \$PATH
1682 See \`config.log' for more details." >&2;}
1683 { (exit 1); exit 1; }; }
1685 # Provide some information about the compiler.
1686 echo "$as_me:$LINENO:" \
1687 "checking for C compiler version" >&5
1688 ac_compiler=`set X $ac_compile; echo $2`
1689 { (eval echo "$as_me:$LINENO: \"$ac_compiler --version </dev/null >&5\"") >&5
1690 (eval $ac_compiler --version </dev/null >&5) 2>&5
1692 echo "$as_me:$LINENO: \$? = $ac_status" >&5
1693 (exit $ac_status); }
1694 { (eval echo "$as_me:$LINENO: \"$ac_compiler -v </dev/null >&5\"") >&5
1695 (eval $ac_compiler -v </dev/null >&5) 2>&5
1697 echo "$as_me:$LINENO: \$? = $ac_status" >&5
1698 (exit $ac_status); }
1699 { (eval echo "$as_me:$LINENO: \"$ac_compiler -V </dev/null >&5\"") >&5
1700 (eval $ac_compiler -V </dev/null >&5) 2>&5
1702 echo "$as_me:$LINENO: \$? = $ac_status" >&5
1703 (exit $ac_status); }
1705 cat >conftest.$ac_ext <<_ACEOF
1708 cat confdefs.h >>conftest.$ac_ext
1709 cat >>conftest.$ac_ext <<_ACEOF
1710 /* end confdefs.h. */
1720 ac_clean_files_save=$ac_clean_files
1721 ac_clean_files="$ac_clean_files a.out a.exe b.out"
1722 # Try to create an executable without -o first, disregard a.out.
1723 # It will help us diagnose broken compilers, and finding out an intuition
1725 echo "$as_me:$LINENO: checking for C compiler default output file name" >&5
1726 echo $ECHO_N "checking for C compiler default output file name... $ECHO_C" >&6
1727 ac_link_default=`echo "$ac_link" | sed 's/ -o *conftest[^ ]*//'`
1728 if { (eval echo "$as_me:$LINENO: \"$ac_link_default\"") >&5
1729 (eval $ac_link_default) 2>&5
1731 echo "$as_me:$LINENO: \$? = $ac_status" >&5
1732 (exit $ac_status); }; then
1733 # Find the output, starting from the most likely. This scheme is
1734 # not robust to junk in `.', hence go to wildcards (a.*) only as a last
1737 # Be careful to initialize this variable, since it used to be cached.
1738 # Otherwise an old cache value of `no' led to `EXEEXT = no' in a Makefile.
1740 # b.out is created by i960 compilers.
1741 for ac_file in a_out.exe a.exe conftest.exe a.out conftest a.* conftest.* b.out
1743 test -f "$ac_file" || continue
1745 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.o | *.obj )
1748 # This is the source file.
1751 # We found the default executable, but exeext='' is most
1755 ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
1756 # FIXME: I believe we export ac_cv_exeext for Libtool,
1757 # but it would be cool to find out if it's true. Does anybody
1758 # maintain Libtool? --akim.
1766 echo "$as_me: failed program was:" >&5
1767 sed 's/^/| /' conftest.$ac_ext >&5
1769 { { echo "$as_me:$LINENO: error: C compiler cannot create executables
1770 See \`config.log' for more details." >&5
1771 echo "$as_me: error: C compiler cannot create executables
1772 See \`config.log' for more details." >&2;}
1773 { (exit 77); exit 77; }; }
1776 ac_exeext=$ac_cv_exeext
1777 echo "$as_me:$LINENO: result: $ac_file" >&5
1778 echo "${ECHO_T}$ac_file" >&6
1780 # Check the compiler produces executables we can run. If not, either
1781 # the compiler is broken, or we cross compile.
1782 echo "$as_me:$LINENO: checking whether the C compiler works" >&5
1783 echo $ECHO_N "checking whether the C compiler works... $ECHO_C" >&6
1784 # FIXME: These cross compiler hacks should be removed for Autoconf 3.0
1785 # If not cross compiling, check that we can run a simple program.
1786 if test "$cross_compiling" != yes; then
1787 if { ac_try='./$ac_file'
1788 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
1791 echo "$as_me:$LINENO: \$? = $ac_status" >&5
1792 (exit $ac_status); }; }; then
1795 if test "$cross_compiling" = maybe; then
1798 { { echo "$as_me:$LINENO: error: cannot run C compiled programs.
1799 If you meant to cross compile, use \`--host'.
1800 See \`config.log' for more details." >&5
1801 echo "$as_me: error: cannot run C compiled programs.
1802 If you meant to cross compile, use \`--host'.
1803 See \`config.log' for more details." >&2;}
1804 { (exit 1); exit 1; }; }
1808 echo "$as_me:$LINENO: result: yes" >&5
1809 echo "${ECHO_T}yes" >&6
1811 rm -f a.out a.exe conftest$ac_cv_exeext b.out
1812 ac_clean_files=$ac_clean_files_save
1813 # Check the compiler produces executables we can run. If not, either
1814 # the compiler is broken, or we cross compile.
1815 echo "$as_me:$LINENO: checking whether we are cross compiling" >&5
1816 echo $ECHO_N "checking whether we are cross compiling... $ECHO_C" >&6
1817 echo "$as_me:$LINENO: result: $cross_compiling" >&5
1818 echo "${ECHO_T}$cross_compiling" >&6
1820 echo "$as_me:$LINENO: checking for suffix of executables" >&5
1821 echo $ECHO_N "checking for suffix of executables... $ECHO_C" >&6
1822 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
1823 (eval $ac_link) 2>&5
1825 echo "$as_me:$LINENO: \$? = $ac_status" >&5
1826 (exit $ac_status); }; then
1827 # If both `conftest.exe' and `conftest' are `present' (well, observable)
1828 # catch `conftest.exe'. For instance with Cygwin, `ls conftest' will
1829 # work properly (i.e., refer to `conftest.exe'), while it won't with
1831 for ac_file in conftest.exe conftest conftest.*; do
1832 test -f "$ac_file" || continue
1834 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.o | *.obj ) ;;
1835 *.* ) ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
1842 { { echo "$as_me:$LINENO: error: cannot compute suffix of executables: cannot compile and link
1843 See \`config.log' for more details." >&5
1844 echo "$as_me: error: cannot compute suffix of executables: cannot compile and link
1845 See \`config.log' for more details." >&2;}
1846 { (exit 1); exit 1; }; }
1849 rm -f conftest$ac_cv_exeext
1850 echo "$as_me:$LINENO: result: $ac_cv_exeext" >&5
1851 echo "${ECHO_T}$ac_cv_exeext" >&6
1853 rm -f conftest.$ac_ext
1854 EXEEXT=$ac_cv_exeext
1856 echo "$as_me:$LINENO: checking for suffix of object files" >&5
1857 echo $ECHO_N "checking for suffix of object files... $ECHO_C" >&6
1858 if test "${ac_cv_objext+set}" = set; then
1859 echo $ECHO_N "(cached) $ECHO_C" >&6
1861 cat >conftest.$ac_ext <<_ACEOF
1864 cat confdefs.h >>conftest.$ac_ext
1865 cat >>conftest.$ac_ext <<_ACEOF
1866 /* end confdefs.h. */
1876 rm -f conftest.o conftest.obj
1877 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
1878 (eval $ac_compile) 2>&5
1880 echo "$as_me:$LINENO: \$? = $ac_status" >&5
1881 (exit $ac_status); }; then
1882 for ac_file in `(ls conftest.o conftest.obj; ls conftest.*) 2>/dev/null`; do
1884 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg ) ;;
1885 *) ac_cv_objext=`expr "$ac_file" : '.*\.\(.*\)'`
1890 echo "$as_me: failed program was:" >&5
1891 sed 's/^/| /' conftest.$ac_ext >&5
1893 { { echo "$as_me:$LINENO: error: cannot compute suffix of object files: cannot compile
1894 See \`config.log' for more details." >&5
1895 echo "$as_me: error: cannot compute suffix of object files: cannot compile
1896 See \`config.log' for more details." >&2;}
1897 { (exit 1); exit 1; }; }
1900 rm -f conftest.$ac_cv_objext conftest.$ac_ext
1902 echo "$as_me:$LINENO: result: $ac_cv_objext" >&5
1903 echo "${ECHO_T}$ac_cv_objext" >&6
1904 OBJEXT=$ac_cv_objext
1906 echo "$as_me:$LINENO: checking whether we are using the GNU C compiler" >&5
1907 echo $ECHO_N "checking whether we are using the GNU C compiler... $ECHO_C" >&6
1908 if test "${ac_cv_c_compiler_gnu+set}" = set; then
1909 echo $ECHO_N "(cached) $ECHO_C" >&6
1911 cat >conftest.$ac_ext <<_ACEOF
1914 cat confdefs.h >>conftest.$ac_ext
1915 cat >>conftest.$ac_ext <<_ACEOF
1916 /* end confdefs.h. */
1929 rm -f conftest.$ac_objext
1930 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
1931 (eval $ac_compile) 2>conftest.er1
1933 grep -v '^ *+' conftest.er1 >conftest.err
1935 cat conftest.err >&5
1936 echo "$as_me:$LINENO: \$? = $ac_status" >&5
1937 (exit $ac_status); } &&
1938 { ac_try='test -z "$ac_c_werror_flag"
1939 || test ! -s conftest.err'
1940 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
1943 echo "$as_me:$LINENO: \$? = $ac_status" >&5
1944 (exit $ac_status); }; } &&
1945 { ac_try='test -s conftest.$ac_objext'
1946 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
1949 echo "$as_me:$LINENO: \$? = $ac_status" >&5
1950 (exit $ac_status); }; }; then
1953 echo "$as_me: failed program was:" >&5
1954 sed 's/^/| /' conftest.$ac_ext >&5
1958 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
1959 ac_cv_c_compiler_gnu=$ac_compiler_gnu
1962 echo "$as_me:$LINENO: result: $ac_cv_c_compiler_gnu" >&5
1963 echo "${ECHO_T}$ac_cv_c_compiler_gnu" >&6
1964 GCC=`test $ac_compiler_gnu = yes && echo yes`
1965 ac_test_CFLAGS=${CFLAGS+set}
1966 ac_save_CFLAGS=$CFLAGS
1968 echo "$as_me:$LINENO: checking whether $CC accepts -g" >&5
1969 echo $ECHO_N "checking whether $CC accepts -g... $ECHO_C" >&6
1970 if test "${ac_cv_prog_cc_g+set}" = set; then
1971 echo $ECHO_N "(cached) $ECHO_C" >&6
1973 cat >conftest.$ac_ext <<_ACEOF
1976 cat confdefs.h >>conftest.$ac_ext
1977 cat >>conftest.$ac_ext <<_ACEOF
1978 /* end confdefs.h. */
1988 rm -f conftest.$ac_objext
1989 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
1990 (eval $ac_compile) 2>conftest.er1
1992 grep -v '^ *+' conftest.er1 >conftest.err
1994 cat conftest.err >&5
1995 echo "$as_me:$LINENO: \$? = $ac_status" >&5
1996 (exit $ac_status); } &&
1997 { ac_try='test -z "$ac_c_werror_flag"
1998 || test ! -s conftest.err'
1999 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2002 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2003 (exit $ac_status); }; } &&
2004 { ac_try='test -s conftest.$ac_objext'
2005 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2008 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2009 (exit $ac_status); }; }; then
2012 echo "$as_me: failed program was:" >&5
2013 sed 's/^/| /' conftest.$ac_ext >&5
2017 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
2019 echo "$as_me:$LINENO: result: $ac_cv_prog_cc_g" >&5
2020 echo "${ECHO_T}$ac_cv_prog_cc_g" >&6
2021 if test "$ac_test_CFLAGS" = set; then
2022 CFLAGS=$ac_save_CFLAGS
2023 elif test $ac_cv_prog_cc_g = yes; then
2024 if test "$GCC" = yes; then
2030 if test "$GCC" = yes; then
2036 echo "$as_me:$LINENO: checking for $CC option to accept ANSI C" >&5
2037 echo $ECHO_N "checking for $CC option to accept ANSI C... $ECHO_C" >&6
2038 if test "${ac_cv_prog_cc_stdc+set}" = set; then
2039 echo $ECHO_N "(cached) $ECHO_C" >&6
2041 ac_cv_prog_cc_stdc=no
2043 cat >conftest.$ac_ext <<_ACEOF
2046 cat confdefs.h >>conftest.$ac_ext
2047 cat >>conftest.$ac_ext <<_ACEOF
2048 /* end confdefs.h. */
2051 #include <sys/types.h>
2052 #include <sys/stat.h>
2053 /* Most of the following tests are stolen from RCS 5.7's src/conf.sh. */
2054 struct buf { int x; };
2055 FILE * (*rcsopen) (struct buf *, struct stat *, int);
2056 static char *e (p, i)
2062 static char *f (char * (*g) (char **, int), char **p, ...)
2067 s = g (p, va_arg (v,int));
2072 /* OSF 4.0 Compaq cc is some sort of almost-ANSI by default. It has
2073 function prototypes and stuff, but not '\xHH' hex character constants.
2074 These don't provoke an error unfortunately, instead are silently treated
2075 as 'x'. The following induces an error, until -std1 is added to get
2076 proper ANSI mode. Curiously '\x00'!='x' always comes out true, for an
2077 array size at least. It's necessary to write '\x00'==0 to get something
2078 that's true only with -std1. */
2079 int osf4_cc_array ['\x00' == 0 ? 1 : -1];
2081 int test (int i, double x);
2082 struct s1 {int (*f) (int a);};
2083 struct s2 {int (*f) (double a);};
2084 int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
2090 return f (e, argv, 0) != argv[0] || f (e, argv, 1) != argv[1];
2095 # Don't try gcc -ansi; that turns off useful extensions and
2096 # breaks some systems' header files.
2097 # AIX -qlanglvl=ansi
2098 # Ultrix and OSF/1 -std1
2099 # HP-UX 10.20 and later -Ae
2100 # HP-UX older versions -Aa -D_HPUX_SOURCE
2101 # SVR4 -Xc -D__EXTENSIONS__
2102 for ac_arg in "" -qlanglvl=ansi -std1 -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
2104 CC="$ac_save_CC $ac_arg"
2105 rm -f conftest.$ac_objext
2106 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2107 (eval $ac_compile) 2>conftest.er1
2109 grep -v '^ *+' conftest.er1 >conftest.err
2111 cat conftest.err >&5
2112 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2113 (exit $ac_status); } &&
2114 { ac_try='test -z "$ac_c_werror_flag"
2115 || test ! -s conftest.err'
2116 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2119 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2120 (exit $ac_status); }; } &&
2121 { ac_try='test -s conftest.$ac_objext'
2122 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2125 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2126 (exit $ac_status); }; }; then
2127 ac_cv_prog_cc_stdc=$ac_arg
2130 echo "$as_me: failed program was:" >&5
2131 sed 's/^/| /' conftest.$ac_ext >&5
2134 rm -f conftest.err conftest.$ac_objext
2136 rm -f conftest.$ac_ext conftest.$ac_objext
2141 case "x$ac_cv_prog_cc_stdc" in
2143 echo "$as_me:$LINENO: result: none needed" >&5
2144 echo "${ECHO_T}none needed" >&6 ;;
2146 echo "$as_me:$LINENO: result: $ac_cv_prog_cc_stdc" >&5
2147 echo "${ECHO_T}$ac_cv_prog_cc_stdc" >&6
2148 CC="$CC $ac_cv_prog_cc_stdc" ;;
2151 # Some people use a C++ compiler to compile C. Since we use `exit',
2152 # in C++ we need to declare it. In case someone uses the same compiler
2153 # for both compiling C and C++ we need to have the C++ compiler decide
2154 # the declaration of exit, since it's the most demanding environment.
2155 cat >conftest.$ac_ext <<_ACEOF
2160 rm -f conftest.$ac_objext
2161 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2162 (eval $ac_compile) 2>conftest.er1
2164 grep -v '^ *+' conftest.er1 >conftest.err
2166 cat conftest.err >&5
2167 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2168 (exit $ac_status); } &&
2169 { ac_try='test -z "$ac_c_werror_flag"
2170 || test ! -s conftest.err'
2171 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2174 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2175 (exit $ac_status); }; } &&
2176 { ac_try='test -s conftest.$ac_objext'
2177 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2180 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2181 (exit $ac_status); }; }; then
2182 for ac_declaration in \
2184 'extern "C" void std::exit (int) throw (); using std::exit;' \
2185 'extern "C" void std::exit (int); using std::exit;' \
2186 'extern "C" void exit (int) throw ();' \
2187 'extern "C" void exit (int);' \
2190 cat >conftest.$ac_ext <<_ACEOF
2193 cat confdefs.h >>conftest.$ac_ext
2194 cat >>conftest.$ac_ext <<_ACEOF
2195 /* end confdefs.h. */
2206 rm -f conftest.$ac_objext
2207 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2208 (eval $ac_compile) 2>conftest.er1
2210 grep -v '^ *+' conftest.er1 >conftest.err
2212 cat conftest.err >&5
2213 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2214 (exit $ac_status); } &&
2215 { ac_try='test -z "$ac_c_werror_flag"
2216 || test ! -s conftest.err'
2217 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2220 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2221 (exit $ac_status); }; } &&
2222 { ac_try='test -s conftest.$ac_objext'
2223 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2226 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2227 (exit $ac_status); }; }; then
2230 echo "$as_me: failed program was:" >&5
2231 sed 's/^/| /' conftest.$ac_ext >&5
2235 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
2236 cat >conftest.$ac_ext <<_ACEOF
2239 cat confdefs.h >>conftest.$ac_ext
2240 cat >>conftest.$ac_ext <<_ACEOF
2241 /* end confdefs.h. */
2251 rm -f conftest.$ac_objext
2252 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2253 (eval $ac_compile) 2>conftest.er1
2255 grep -v '^ *+' conftest.er1 >conftest.err
2257 cat conftest.err >&5
2258 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2259 (exit $ac_status); } &&
2260 { ac_try='test -z "$ac_c_werror_flag"
2261 || test ! -s conftest.err'
2262 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2265 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2266 (exit $ac_status); }; } &&
2267 { ac_try='test -s conftest.$ac_objext'
2268 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2271 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2272 (exit $ac_status); }; }; then
2275 echo "$as_me: failed program was:" >&5
2276 sed 's/^/| /' conftest.$ac_ext >&5
2279 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
2282 if test -n "$ac_declaration"; then
2283 echo '#ifdef __cplusplus' >>confdefs.h
2284 echo $ac_declaration >>confdefs.h
2285 echo '#endif' >>confdefs.h
2289 echo "$as_me: failed program was:" >&5
2290 sed 's/^/| /' conftest.$ac_ext >&5
2293 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
2295 ac_cpp='$CPP $CPPFLAGS'
2296 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2297 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2298 ac_compiler_gnu=$ac_cv_c_compiler_gnu
2301 cat >>confdefs.h <<\_ACEOF
2302 #define _GNU_SOURCE 1
2308 ac_cpp='$CPP $CPPFLAGS'
2309 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2310 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2311 ac_compiler_gnu=$ac_cv_c_compiler_gnu
2312 echo "$as_me:$LINENO: checking how to run the C preprocessor" >&5
2313 echo $ECHO_N "checking how to run the C preprocessor... $ECHO_C" >&6
2314 # On Suns, sometimes $CPP names a directory.
2315 if test -n "$CPP" && test -d "$CPP"; then
2318 if test -z "$CPP"; then
2319 if test "${ac_cv_prog_CPP+set}" = set; then
2320 echo $ECHO_N "(cached) $ECHO_C" >&6
2322 # Double quotes because CPP needs to be expanded
2323 for CPP in "$CC -E" "$CC -E -traditional-cpp" "/lib/cpp"
2326 for ac_c_preproc_warn_flag in '' yes
2328 # Use a header file that comes with gcc, so configuring glibc
2329 # with a fresh cross-compiler works.
2330 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
2331 # <limits.h> exists even on freestanding compilers.
2332 # On the NeXT, cc -E runs the code through the compiler's parser,
2333 # not just through cpp. "Syntax error" is here to catch this case.
2334 cat >conftest.$ac_ext <<_ACEOF
2337 cat confdefs.h >>conftest.$ac_ext
2338 cat >>conftest.$ac_ext <<_ACEOF
2339 /* end confdefs.h. */
2341 # include <limits.h>
2343 # include <assert.h>
2347 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
2348 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
2350 grep -v '^ *+' conftest.er1 >conftest.err
2352 cat conftest.err >&5
2353 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2354 (exit $ac_status); } >/dev/null; then
2355 if test -s conftest.err; then
2356 ac_cpp_err=$ac_c_preproc_warn_flag
2357 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
2364 if test -z "$ac_cpp_err"; then
2367 echo "$as_me: failed program was:" >&5
2368 sed 's/^/| /' conftest.$ac_ext >&5
2370 # Broken: fails on valid input.
2373 rm -f conftest.err conftest.$ac_ext
2375 # OK, works on sane cases. Now check whether non-existent headers
2376 # can be detected and how.
2377 cat >conftest.$ac_ext <<_ACEOF
2380 cat confdefs.h >>conftest.$ac_ext
2381 cat >>conftest.$ac_ext <<_ACEOF
2382 /* end confdefs.h. */
2383 #include <ac_nonexistent.h>
2385 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
2386 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
2388 grep -v '^ *+' conftest.er1 >conftest.err
2390 cat conftest.err >&5
2391 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2392 (exit $ac_status); } >/dev/null; then
2393 if test -s conftest.err; then
2394 ac_cpp_err=$ac_c_preproc_warn_flag
2395 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
2402 if test -z "$ac_cpp_err"; then
2403 # Broken: success on invalid input.
2406 echo "$as_me: failed program was:" >&5
2407 sed 's/^/| /' conftest.$ac_ext >&5
2409 # Passes both tests.
2413 rm -f conftest.err conftest.$ac_ext
2416 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
2417 rm -f conftest.err conftest.$ac_ext
2418 if $ac_preproc_ok; then
2430 echo "$as_me:$LINENO: result: $CPP" >&5
2431 echo "${ECHO_T}$CPP" >&6
2433 for ac_c_preproc_warn_flag in '' yes
2435 # Use a header file that comes with gcc, so configuring glibc
2436 # with a fresh cross-compiler works.
2437 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
2438 # <limits.h> exists even on freestanding compilers.
2439 # On the NeXT, cc -E runs the code through the compiler's parser,
2440 # not just through cpp. "Syntax error" is here to catch this case.
2441 cat >conftest.$ac_ext <<_ACEOF
2444 cat confdefs.h >>conftest.$ac_ext
2445 cat >>conftest.$ac_ext <<_ACEOF
2446 /* end confdefs.h. */
2448 # include <limits.h>
2450 # include <assert.h>
2454 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
2455 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
2457 grep -v '^ *+' conftest.er1 >conftest.err
2459 cat conftest.err >&5
2460 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2461 (exit $ac_status); } >/dev/null; then
2462 if test -s conftest.err; then
2463 ac_cpp_err=$ac_c_preproc_warn_flag
2464 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
2471 if test -z "$ac_cpp_err"; then
2474 echo "$as_me: failed program was:" >&5
2475 sed 's/^/| /' conftest.$ac_ext >&5
2477 # Broken: fails on valid input.
2480 rm -f conftest.err conftest.$ac_ext
2482 # OK, works on sane cases. Now check whether non-existent headers
2483 # can be detected and how.
2484 cat >conftest.$ac_ext <<_ACEOF
2487 cat confdefs.h >>conftest.$ac_ext
2488 cat >>conftest.$ac_ext <<_ACEOF
2489 /* end confdefs.h. */
2490 #include <ac_nonexistent.h>
2492 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
2493 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
2495 grep -v '^ *+' conftest.er1 >conftest.err
2497 cat conftest.err >&5
2498 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2499 (exit $ac_status); } >/dev/null; then
2500 if test -s conftest.err; then
2501 ac_cpp_err=$ac_c_preproc_warn_flag
2502 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
2509 if test -z "$ac_cpp_err"; then
2510 # Broken: success on invalid input.
2513 echo "$as_me: failed program was:" >&5
2514 sed 's/^/| /' conftest.$ac_ext >&5
2516 # Passes both tests.
2520 rm -f conftest.err conftest.$ac_ext
2523 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
2524 rm -f conftest.err conftest.$ac_ext
2525 if $ac_preproc_ok; then
2528 { { echo "$as_me:$LINENO: error: C preprocessor \"$CPP\" fails sanity check
2529 See \`config.log' for more details." >&5
2530 echo "$as_me: error: C preprocessor \"$CPP\" fails sanity check
2531 See \`config.log' for more details." >&2;}
2532 { (exit 1); exit 1; }; }
2536 ac_cpp='$CPP $CPPFLAGS'
2537 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2538 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2539 ac_compiler_gnu=$ac_cv_c_compiler_gnu
2542 echo "$as_me:$LINENO: checking for egrep" >&5
2543 echo $ECHO_N "checking for egrep... $ECHO_C" >&6
2544 if test "${ac_cv_prog_egrep+set}" = set; then
2545 echo $ECHO_N "(cached) $ECHO_C" >&6
2547 if echo a | (grep -E '(a|b)') >/dev/null 2>&1
2548 then ac_cv_prog_egrep='grep -E'
2549 else ac_cv_prog_egrep='egrep'
2552 echo "$as_me:$LINENO: result: $ac_cv_prog_egrep" >&5
2553 echo "${ECHO_T}$ac_cv_prog_egrep" >&6
2554 EGREP=$ac_cv_prog_egrep
2558 echo "$as_me:$LINENO: checking for AIX" >&5
2559 echo $ECHO_N "checking for AIX... $ECHO_C" >&6
2560 cat >conftest.$ac_ext <<_ACEOF
2563 cat confdefs.h >>conftest.$ac_ext
2564 cat >>conftest.$ac_ext <<_ACEOF
2565 /* end confdefs.h. */
2571 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
2572 $EGREP "yes" >/dev/null 2>&1; then
2573 echo "$as_me:$LINENO: result: yes" >&5
2574 echo "${ECHO_T}yes" >&6
2575 cat >>confdefs.h <<\_ACEOF
2576 #define _ALL_SOURCE 1
2580 echo "$as_me:$LINENO: result: no" >&5
2581 echo "${ECHO_T}no" >&6
2586 echo "$as_me:$LINENO: checking for library containing strerror" >&5
2587 echo $ECHO_N "checking for library containing strerror... $ECHO_C" >&6
2588 if test "${ac_cv_search_strerror+set}" = set; then
2589 echo $ECHO_N "(cached) $ECHO_C" >&6
2591 ac_func_search_save_LIBS=$LIBS
2592 ac_cv_search_strerror=no
2593 cat >conftest.$ac_ext <<_ACEOF
2596 cat confdefs.h >>conftest.$ac_ext
2597 cat >>conftest.$ac_ext <<_ACEOF
2598 /* end confdefs.h. */
2600 /* Override any gcc2 internal prototype to avoid an error. */
2604 /* We use char because int might match the return type of a gcc2
2605 builtin and then its argument prototype would still apply. */
2615 rm -f conftest.$ac_objext conftest$ac_exeext
2616 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
2617 (eval $ac_link) 2>conftest.er1
2619 grep -v '^ *+' conftest.er1 >conftest.err
2621 cat conftest.err >&5
2622 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2623 (exit $ac_status); } &&
2624 { ac_try='test -z "$ac_c_werror_flag"
2625 || test ! -s conftest.err'
2626 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2629 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2630 (exit $ac_status); }; } &&
2631 { ac_try='test -s conftest$ac_exeext'
2632 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2635 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2636 (exit $ac_status); }; }; then
2637 ac_cv_search_strerror="none required"
2639 echo "$as_me: failed program was:" >&5
2640 sed 's/^/| /' conftest.$ac_ext >&5
2643 rm -f conftest.err conftest.$ac_objext \
2644 conftest$ac_exeext conftest.$ac_ext
2645 if test "$ac_cv_search_strerror" = no; then
2646 for ac_lib in cposix; do
2647 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
2648 cat >conftest.$ac_ext <<_ACEOF
2651 cat confdefs.h >>conftest.$ac_ext
2652 cat >>conftest.$ac_ext <<_ACEOF
2653 /* end confdefs.h. */
2655 /* Override any gcc2 internal prototype to avoid an error. */
2659 /* We use char because int might match the return type of a gcc2
2660 builtin and then its argument prototype would still apply. */
2670 rm -f conftest.$ac_objext conftest$ac_exeext
2671 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
2672 (eval $ac_link) 2>conftest.er1
2674 grep -v '^ *+' conftest.er1 >conftest.err
2676 cat conftest.err >&5
2677 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2678 (exit $ac_status); } &&
2679 { ac_try='test -z "$ac_c_werror_flag"
2680 || test ! -s conftest.err'
2681 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2684 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2685 (exit $ac_status); }; } &&
2686 { ac_try='test -s conftest$ac_exeext'
2687 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2690 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2691 (exit $ac_status); }; }; then
2692 ac_cv_search_strerror="-l$ac_lib"
2695 echo "$as_me: failed program was:" >&5
2696 sed 's/^/| /' conftest.$ac_ext >&5
2699 rm -f conftest.err conftest.$ac_objext \
2700 conftest$ac_exeext conftest.$ac_ext
2703 LIBS=$ac_func_search_save_LIBS
2705 echo "$as_me:$LINENO: result: $ac_cv_search_strerror" >&5
2706 echo "${ECHO_T}$ac_cv_search_strerror" >&6
2707 if test "$ac_cv_search_strerror" != no; then
2708 test "$ac_cv_search_strerror" = "none required" || LIBS="$ac_cv_search_strerror $LIBS"
2715 echo "$as_me:$LINENO: checking for ${CC-cc} option to accept ANSI C" >&5
2716 echo $ECHO_N "checking for ${CC-cc} option to accept ANSI C... $ECHO_C" >&6
2717 if test "${am_cv_prog_cc_stdc+set}" = set; then
2718 echo $ECHO_N "(cached) $ECHO_C" >&6
2720 am_cv_prog_cc_stdc=no
2722 # Don't try gcc -ansi; that turns off useful extensions and
2723 # breaks some systems' header files.
2724 # AIX -qlanglvl=ansi
2725 # Ultrix and OSF/1 -std1
2726 # HP-UX 10.20 and later -Ae
2727 # HP-UX older versions -Aa -D_HPUX_SOURCE
2728 # SVR4 -Xc -D__EXTENSIONS__
2729 for ac_arg in "" -qlanglvl=ansi -std1 -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
2731 CC="$ac_save_CC $ac_arg"
2732 cat >conftest.$ac_ext <<_ACEOF
2735 cat confdefs.h >>conftest.$ac_ext
2736 cat >>conftest.$ac_ext <<_ACEOF
2737 /* end confdefs.h. */
2740 #include <sys/types.h>
2741 #include <sys/stat.h>
2742 /* Most of the following tests are stolen from RCS 5.7's src/conf.sh. */
2743 struct buf { int x; };
2744 FILE * (*rcsopen) (struct buf *, struct stat *, int);
2745 static char *e (p, i)
2751 static char *f (char * (*g) (char **, int), char **p, ...)
2756 s = g (p, va_arg (v,int));
2760 int test (int i, double x);
2761 struct s1 {int (*f) (int a);};
2762 struct s2 {int (*f) (double a);};
2763 int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
2771 return f (e, argv, 0) != argv[0] || f (e, argv, 1) != argv[1];
2777 rm -f conftest.$ac_objext
2778 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2779 (eval $ac_compile) 2>conftest.er1
2781 grep -v '^ *+' conftest.er1 >conftest.err
2783 cat conftest.err >&5
2784 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2785 (exit $ac_status); } &&
2786 { ac_try='test -z "$ac_c_werror_flag"
2787 || test ! -s conftest.err'
2788 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2791 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2792 (exit $ac_status); }; } &&
2793 { ac_try='test -s conftest.$ac_objext'
2794 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2797 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2798 (exit $ac_status); }; }; then
2799 am_cv_prog_cc_stdc="$ac_arg"; break
2801 echo "$as_me: failed program was:" >&5
2802 sed 's/^/| /' conftest.$ac_ext >&5
2805 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
2811 if test -z "$am_cv_prog_cc_stdc"; then
2812 echo "$as_me:$LINENO: result: none needed" >&5
2813 echo "${ECHO_T}none needed" >&6
2815 echo "$as_me:$LINENO: result: $am_cv_prog_cc_stdc" >&5
2816 echo "${ECHO_T}$am_cv_prog_cc_stdc" >&6
2818 case "x$am_cv_prog_cc_stdc" in
2820 *) CC="$CC $am_cv_prog_cc_stdc" ;;
2825 for ac_dir in `cd $srcdir;pwd`/.. $srcdir/`cd $srcdir;pwd`/..; do
2826 if test -f $ac_dir/install-sh; then
2828 ac_install_sh="$ac_aux_dir/install-sh -c"
2830 elif test -f $ac_dir/install.sh; then
2832 ac_install_sh="$ac_aux_dir/install.sh -c"
2834 elif test -f $ac_dir/shtool; then
2836 ac_install_sh="$ac_aux_dir/shtool install -c"
2840 if test -z "$ac_aux_dir"; then
2841 { { echo "$as_me:$LINENO: error: cannot find install-sh or install.sh in \`cd $srcdir;pwd\`/.. $srcdir/\`cd $srcdir;pwd\`/.." >&5
2842 echo "$as_me: error: cannot find install-sh or install.sh in \`cd $srcdir;pwd\`/.. $srcdir/\`cd $srcdir;pwd\`/.." >&2;}
2843 { (exit 1); exit 1; }; }
2845 ac_config_guess="$SHELL $ac_aux_dir/config.guess"
2846 ac_config_sub="$SHELL $ac_aux_dir/config.sub"
2847 ac_configure="$SHELL $ac_aux_dir/configure" # This should be Cygnus configure.
2849 # Make sure we can run config.sub.
2850 $ac_config_sub sun4 >/dev/null 2>&1 ||
2851 { { echo "$as_me:$LINENO: error: cannot run $ac_config_sub" >&5
2852 echo "$as_me: error: cannot run $ac_config_sub" >&2;}
2853 { (exit 1); exit 1; }; }
2855 echo "$as_me:$LINENO: checking build system type" >&5
2856 echo $ECHO_N "checking build system type... $ECHO_C" >&6
2857 if test "${ac_cv_build+set}" = set; then
2858 echo $ECHO_N "(cached) $ECHO_C" >&6
2860 ac_cv_build_alias=$build_alias
2861 test -z "$ac_cv_build_alias" &&
2862 ac_cv_build_alias=`$ac_config_guess`
2863 test -z "$ac_cv_build_alias" &&
2864 { { echo "$as_me:$LINENO: error: cannot guess build type; you must specify one" >&5
2865 echo "$as_me: error: cannot guess build type; you must specify one" >&2;}
2866 { (exit 1); exit 1; }; }
2867 ac_cv_build=`$ac_config_sub $ac_cv_build_alias` ||
2868 { { echo "$as_me:$LINENO: error: $ac_config_sub $ac_cv_build_alias failed" >&5
2869 echo "$as_me: error: $ac_config_sub $ac_cv_build_alias failed" >&2;}
2870 { (exit 1); exit 1; }; }
2873 echo "$as_me:$LINENO: result: $ac_cv_build" >&5
2874 echo "${ECHO_T}$ac_cv_build" >&6
2876 build_cpu=`echo $ac_cv_build | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\1/'`
2877 build_vendor=`echo $ac_cv_build | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\2/'`
2878 build_os=`echo $ac_cv_build | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\3/'`
2881 echo "$as_me:$LINENO: checking host system type" >&5
2882 echo $ECHO_N "checking host system type... $ECHO_C" >&6
2883 if test "${ac_cv_host+set}" = set; then
2884 echo $ECHO_N "(cached) $ECHO_C" >&6
2886 ac_cv_host_alias=$host_alias
2887 test -z "$ac_cv_host_alias" &&
2888 ac_cv_host_alias=$ac_cv_build_alias
2889 ac_cv_host=`$ac_config_sub $ac_cv_host_alias` ||
2890 { { echo "$as_me:$LINENO: error: $ac_config_sub $ac_cv_host_alias failed" >&5
2891 echo "$as_me: error: $ac_config_sub $ac_cv_host_alias failed" >&2;}
2892 { (exit 1); exit 1; }; }
2895 echo "$as_me:$LINENO: result: $ac_cv_host" >&5
2896 echo "${ECHO_T}$ac_cv_host" >&6
2898 host_cpu=`echo $ac_cv_host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\1/'`
2899 host_vendor=`echo $ac_cv_host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\2/'`
2900 host_os=`echo $ac_cv_host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\3/'`
2903 echo "$as_me:$LINENO: checking target system type" >&5
2904 echo $ECHO_N "checking target system type... $ECHO_C" >&6
2905 if test "${ac_cv_target+set}" = set; then
2906 echo $ECHO_N "(cached) $ECHO_C" >&6
2908 ac_cv_target_alias=$target_alias
2909 test "x$ac_cv_target_alias" = "x" &&
2910 ac_cv_target_alias=$ac_cv_host_alias
2911 ac_cv_target=`$ac_config_sub $ac_cv_target_alias` ||
2912 { { echo "$as_me:$LINENO: error: $ac_config_sub $ac_cv_target_alias failed" >&5
2913 echo "$as_me: error: $ac_config_sub $ac_cv_target_alias failed" >&2;}
2914 { (exit 1); exit 1; }; }
2917 echo "$as_me:$LINENO: result: $ac_cv_target" >&5
2918 echo "${ECHO_T}$ac_cv_target" >&6
2919 target=$ac_cv_target
2920 target_cpu=`echo $ac_cv_target | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\1/'`
2921 target_vendor=`echo $ac_cv_target | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\2/'`
2922 target_os=`echo $ac_cv_target | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\3/'`
2925 # The aliases save the names the user supplied, while $host etc.
2926 # will get canonicalized.
2927 test -n "$target_alias" &&
2928 test "$program_prefix$program_suffix$program_transform_name" = \
2930 program_prefix=${target_alias}-
2943 # If we haven't got the data from the intl directory,
2944 # assume NLS is disabled.
2953 if test -f ../intl/config.intl; then
2954 . ../intl/config.intl
2956 echo "$as_me:$LINENO: checking whether NLS is requested" >&5
2957 echo $ECHO_N "checking whether NLS is requested... $ECHO_C" >&6
2958 if test x"$USE_NLS" != xyes; then
2959 echo "$as_me:$LINENO: result: no" >&5
2960 echo "${ECHO_T}no" >&6
2962 echo "$as_me:$LINENO: result: yes" >&5
2963 echo "${ECHO_T}yes" >&6
2965 cat >>confdefs.h <<\_ACEOF
2966 #define ENABLE_NLS 1
2970 echo "$as_me:$LINENO: checking for catalogs to be installed" >&5
2971 echo $ECHO_N "checking for catalogs to be installed... $ECHO_C" >&6
2972 # Look for .po and .gmo files in the source directory.
2975 for cat in $srcdir/po/*.gmo $srcdir/po/*.po; do
2976 # If there aren't any .gmo files the shell will give us the
2977 # literal string "../path/to/srcdir/po/*.gmo" which has to be
2979 case "$cat" in *\**)
2982 # The quadruple backslash is collapsed to a double backslash
2983 # by the backticks, then collapsed again by the double quotes,
2984 # leaving us with one backslash in the sed expression (right
2985 # before the dot that mustn't act as a wildcard).
2986 cat=`echo $cat | sed -e "s!$srcdir/po/!!" -e "s!\\\\.po!.gmo!"`
2987 lang=`echo $cat | sed -e "s!\\\\.gmo!!"`
2988 # The user is allowed to set LINGUAS to a list of languages to
2989 # install catalogs for. If it's empty that means "all of them."
2990 if test "x$LINGUAS" = x; then
2991 CATALOGS="$CATALOGS $cat"
2992 XLINGUAS="$XLINGUAS $lang"
2994 case "$LINGUAS" in *$lang*)
2995 CATALOGS="$CATALOGS $cat"
2996 XLINGUAS="$XLINGUAS $lang"
3002 echo "$as_me:$LINENO: result: $LINGUAS" >&5
3003 echo "${ECHO_T}$LINGUAS" >&6
3016 localedir='${datadir}/locale'
3019 if test x"$USE_NLS" = xyes; then
3020 CONFIG_ALL="$CONFIG_ALL all-po"
3021 CONFIG_CLEAN="$CONFIG_CLEAN clean-po"
3022 CONFIG_INSTALL="$CONFIG_INSTALL install-po"
3023 CONFIG_UNINSTALL="$CONFIG_UNINSTALL uninstall-po"
3028 cat >>confdefs.h <<_ACEOF
3029 #define PACKAGE "$PACKAGE"
3034 debugdir=${libdir}/debug
3037 # Check whether --with-separate-debug-dir or --without-separate-debug-dir was given.
3038 if test "${with_separate_debug_dir+set}" = set; then
3039 withval="$with_separate_debug_dir"
3040 debugdir="${withval}"
3044 test "x$prefix" = xNONE && prefix="$ac_default_prefix"
3045 test "x$exec_prefix" = xNONE && exec_prefix='${prefix}'
3046 ac_define_dir=`eval echo $debugdir`
3047 ac_define_dir=`eval echo $ac_define_dir`
3049 cat >>confdefs.h <<_ACEOF
3050 #define DEBUGDIR "$ac_define_dir"
3054 #AC_DEFINE_UNQUOTED(DEBUGDIR, "$debugdir"),
3058 subdirs="$subdirs doc testsuite"
3061 # Provide defaults for some variables set by the per-host and per-target
3063 gdb_host_obs=posix-hdep.o
3065 if test "${target}" = "${host}"; then
3071 . $srcdir/configure.host
3073 . $srcdir/configure.tgt
3075 # Fetch the default architecture and default target vector from BFD.
3076 targ=$target; . $srcdir/../bfd/config.bfd
3078 # We only want the first architecture, so strip off the others if
3079 # there is more than one.
3080 targ_archs=`echo $targ_archs | sed 's/ .*//'`
3082 if test "x$targ_archs" != x; then
3084 cat >>confdefs.h <<_ACEOF
3085 #define DEFAULT_BFD_ARCH $targ_archs
3089 if test "x$targ_defvec" != x; then
3091 cat >>confdefs.h <<_ACEOF
3092 #define DEFAULT_BFD_VEC $targ_defvec
3097 test "$program_prefix" != NONE &&
3098 program_transform_name="s,^,$program_prefix,;$program_transform_name"
3099 # Use a double $ so make ignores it.
3100 test "$program_suffix" != NONE &&
3101 program_transform_name="s,\$,$program_suffix,;$program_transform_name"
3102 # Double any \ or $. echo might interpret backslashes.
3103 # By default was `s,x,x', remove it if useless.
3104 cat <<\_ACEOF >conftest.sed
3105 s/[\\$]/&&/g;s/;s,x,x,$//
3107 program_transform_name=`echo $program_transform_name | sed -f conftest.sed`
3111 # The CLI cannot be disabled yet, but may be in the future.
3114 # Check whether --enable-gdbcli or --disable-gdbcli was given.
3115 if test "${enable_gdbcli+set}" = set; then
3116 enableval="$enable_gdbcli"
3121 { { echo "$as_me:$LINENO: error: the command-line interface cannot be disabled yet" >&5
3122 echo "$as_me: error: the command-line interface cannot be disabled yet" >&2;}
3123 { (exit 1); exit 1; }; } ;;
3125 { { echo "$as_me:$LINENO: error: bad value $enableval for --enable-gdbcli" >&5
3126 echo "$as_me: error: bad value $enableval for --enable-gdbcli" >&2;}
3127 { (exit 1); exit 1; }; } ;;
3132 if test x"$enable_gdbcli" = xyes; then
3133 if test -d $srcdir/cli; then
3134 CONFIG_OBS="$CONFIG_OBS \$(SUBDIR_CLI_OBS)"
3135 CONFIG_DEPS="$CONFIG_DEPS \$(SUBDIR_CLI_DEPS)"
3136 CONFIG_SRCS="$CONFIG_SRCS \$(SUBDIR_CLI_SRCS)"
3137 ENABLE_CFLAGS="$ENABLE_CFLAGS \$(SUBDIR_CLI_CFLAGS)"
3142 # Check whether --enable-gdbmi or --disable-gdbmi was given.
3143 if test "${enable_gdbmi+set}" = set; then
3144 enableval="$enable_gdbmi"
3149 { { echo "$as_me:$LINENO: error: bad value $enableval for --enable-gdbmi" >&5
3150 echo "$as_me: error: bad value $enableval for --enable-gdbmi" >&2;}
3151 { (exit 1); exit 1; }; } ;;
3156 if test x"$enable_gdbmi" = xyes; then
3157 if test -d $srcdir/mi; then
3158 CONFIG_OBS="$CONFIG_OBS \$(SUBDIR_MI_OBS)"
3159 CONFIG_DEPS="$CONFIG_DEPS \$(SUBDIR_MI_DEPS)"
3160 CONFIG_SRCS="$CONFIG_SRCS \$(SUBDIR_MI_SRCS)"
3161 ENABLE_CFLAGS="$ENABLE_CFLAGS \$(SUBDIR_MI_CFLAGS)"
3166 # Check whether --enable-tui or --disable-tui was given.
3167 if test "${enable_tui+set}" = set; then
3168 enableval="$enable_tui"
3173 { { echo "$as_me:$LINENO: error: bad value $enableval for --enable-tui" >&5
3174 echo "$as_me: error: bad value $enableval for --enable-tui" >&2;}
3175 { (exit 1); exit 1; }; } ;;
3182 # Check whether --enable-gdbtk or --disable-gdbtk was given.
3183 if test "${enable_gdbtk+set}" = set; then
3184 enableval="$enable_gdbtk"
3189 { { echo "$as_me:$LINENO: error: bad value $enableval for --enable-gdbtk" >&5
3190 echo "$as_me: error: bad value $enableval for --enable-gdbtk" >&2;}
3191 { (exit 1); exit 1; }; } ;;
3194 if test -d $srcdir/gdbtk -a -d $srcdir/../itcl; then
3200 # We unconditionally disable gdbtk tests on selected platforms.
3203 { echo "$as_me:$LINENO: WARNING: gdbtk isn't supported on $host; disabling" >&5
3204 echo "$as_me: WARNING: gdbtk isn't supported on $host; disabling" >&2;}
3208 # Libunwind support.
3209 echo "$as_me:$LINENO: checking for ANSI C header files" >&5
3210 echo $ECHO_N "checking for ANSI C header files... $ECHO_C" >&6
3211 if test "${ac_cv_header_stdc+set}" = set; then
3212 echo $ECHO_N "(cached) $ECHO_C" >&6
3214 cat >conftest.$ac_ext <<_ACEOF
3217 cat confdefs.h >>conftest.$ac_ext
3218 cat >>conftest.$ac_ext <<_ACEOF
3219 /* end confdefs.h. */
3233 rm -f conftest.$ac_objext
3234 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
3235 (eval $ac_compile) 2>conftest.er1
3237 grep -v '^ *+' conftest.er1 >conftest.err
3239 cat conftest.err >&5
3240 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3241 (exit $ac_status); } &&
3242 { ac_try='test -z "$ac_c_werror_flag"
3243 || test ! -s conftest.err'
3244 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3247 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3248 (exit $ac_status); }; } &&
3249 { ac_try='test -s conftest.$ac_objext'
3250 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3253 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3254 (exit $ac_status); }; }; then
3255 ac_cv_header_stdc=yes
3257 echo "$as_me: failed program was:" >&5
3258 sed 's/^/| /' conftest.$ac_ext >&5
3260 ac_cv_header_stdc=no
3262 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
3264 if test $ac_cv_header_stdc = yes; then
3265 # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
3266 cat >conftest.$ac_ext <<_ACEOF
3269 cat confdefs.h >>conftest.$ac_ext
3270 cat >>conftest.$ac_ext <<_ACEOF
3271 /* end confdefs.h. */
3275 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
3276 $EGREP "memchr" >/dev/null 2>&1; then
3279 ac_cv_header_stdc=no
3285 if test $ac_cv_header_stdc = yes; then
3286 # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
3287 cat >conftest.$ac_ext <<_ACEOF
3290 cat confdefs.h >>conftest.$ac_ext
3291 cat >>conftest.$ac_ext <<_ACEOF
3292 /* end confdefs.h. */
3296 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
3297 $EGREP "free" >/dev/null 2>&1; then
3300 ac_cv_header_stdc=no
3306 if test $ac_cv_header_stdc = yes; then
3307 # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
3308 if test "$cross_compiling" = yes; then
3311 cat >conftest.$ac_ext <<_ACEOF
3314 cat confdefs.h >>conftest.$ac_ext
3315 cat >>conftest.$ac_ext <<_ACEOF
3316 /* end confdefs.h. */
3318 #if ((' ' & 0x0FF) == 0x020)
3319 # define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
3320 # define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
3322 # define ISLOWER(c) \
3323 (('a' <= (c) && (c) <= 'i') \
3324 || ('j' <= (c) && (c) <= 'r') \
3325 || ('s' <= (c) && (c) <= 'z'))
3326 # define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
3329 #define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
3334 for (i = 0; i < 256; i++)
3335 if (XOR (islower (i), ISLOWER (i))
3336 || toupper (i) != TOUPPER (i))
3341 rm -f conftest$ac_exeext
3342 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
3343 (eval $ac_link) 2>&5
3345 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3346 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
3347 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3350 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3351 (exit $ac_status); }; }; then
3354 echo "$as_me: program exited with status $ac_status" >&5
3355 echo "$as_me: failed program was:" >&5
3356 sed 's/^/| /' conftest.$ac_ext >&5
3359 ac_cv_header_stdc=no
3361 rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
3365 echo "$as_me:$LINENO: result: $ac_cv_header_stdc" >&5
3366 echo "${ECHO_T}$ac_cv_header_stdc" >&6
3367 if test $ac_cv_header_stdc = yes; then
3369 cat >>confdefs.h <<\_ACEOF
3370 #define STDC_HEADERS 1
3375 # On IRIX 5.3, sys/types and inttypes.h are conflicting.
3385 for ac_header in sys/types.h sys/stat.h stdlib.h string.h memory.h strings.h \
3386 inttypes.h stdint.h unistd.h
3388 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
3389 echo "$as_me:$LINENO: checking for $ac_header" >&5
3390 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
3391 if eval "test \"\${$as_ac_Header+set}\" = set"; then
3392 echo $ECHO_N "(cached) $ECHO_C" >&6
3394 cat >conftest.$ac_ext <<_ACEOF
3397 cat confdefs.h >>conftest.$ac_ext
3398 cat >>conftest.$ac_ext <<_ACEOF
3399 /* end confdefs.h. */
3400 $ac_includes_default
3402 #include <$ac_header>
3404 rm -f conftest.$ac_objext
3405 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
3406 (eval $ac_compile) 2>conftest.er1
3408 grep -v '^ *+' conftest.er1 >conftest.err
3410 cat conftest.err >&5
3411 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3412 (exit $ac_status); } &&
3413 { ac_try='test -z "$ac_c_werror_flag"
3414 || test ! -s conftest.err'
3415 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3418 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3419 (exit $ac_status); }; } &&
3420 { ac_try='test -s conftest.$ac_objext'
3421 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3424 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3425 (exit $ac_status); }; }; then
3426 eval "$as_ac_Header=yes"
3428 echo "$as_me: failed program was:" >&5
3429 sed 's/^/| /' conftest.$ac_ext >&5
3431 eval "$as_ac_Header=no"
3433 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
3435 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
3436 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
3437 if test `eval echo '${'$as_ac_Header'}'` = yes; then
3438 cat >>confdefs.h <<_ACEOF
3439 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
3448 # Check whether --with-libunwind or --without-libunwind was given.
3449 if test "${with_libunwind+set}" = set; then
3450 withval="$with_libunwind"
3451 case "${withval}" in
3452 yes) enable_libunwind=yes ;;
3453 no) enable_libunwind=no ;;
3454 *) { { echo "$as_me:$LINENO: error: bad value ${withval} for GDB with-libunwind option" >&5
3455 echo "$as_me: error: bad value ${withval} for GDB with-libunwind option" >&2;}
3456 { (exit 1); exit 1; }; } ;;
3461 for ac_header in libunwind.h
3463 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
3464 if eval "test \"\${$as_ac_Header+set}\" = set"; then
3465 echo "$as_me:$LINENO: checking for $ac_header" >&5
3466 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
3467 if eval "test \"\${$as_ac_Header+set}\" = set"; then
3468 echo $ECHO_N "(cached) $ECHO_C" >&6
3470 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
3471 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
3473 # Is the header compilable?
3474 echo "$as_me:$LINENO: checking $ac_header usability" >&5
3475 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
3476 cat >conftest.$ac_ext <<_ACEOF
3479 cat confdefs.h >>conftest.$ac_ext
3480 cat >>conftest.$ac_ext <<_ACEOF
3481 /* end confdefs.h. */
3482 $ac_includes_default
3483 #include <$ac_header>
3485 rm -f conftest.$ac_objext
3486 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
3487 (eval $ac_compile) 2>conftest.er1
3489 grep -v '^ *+' conftest.er1 >conftest.err
3491 cat conftest.err >&5
3492 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3493 (exit $ac_status); } &&
3494 { ac_try='test -z "$ac_c_werror_flag"
3495 || test ! -s conftest.err'
3496 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3499 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3500 (exit $ac_status); }; } &&
3501 { ac_try='test -s conftest.$ac_objext'
3502 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3505 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3506 (exit $ac_status); }; }; then
3507 ac_header_compiler=yes
3509 echo "$as_me: failed program was:" >&5
3510 sed 's/^/| /' conftest.$ac_ext >&5
3512 ac_header_compiler=no
3514 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
3515 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
3516 echo "${ECHO_T}$ac_header_compiler" >&6
3518 # Is the header present?
3519 echo "$as_me:$LINENO: checking $ac_header presence" >&5
3520 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
3521 cat >conftest.$ac_ext <<_ACEOF
3524 cat confdefs.h >>conftest.$ac_ext
3525 cat >>conftest.$ac_ext <<_ACEOF
3526 /* end confdefs.h. */
3527 #include <$ac_header>
3529 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
3530 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
3532 grep -v '^ *+' conftest.er1 >conftest.err
3534 cat conftest.err >&5
3535 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3536 (exit $ac_status); } >/dev/null; then
3537 if test -s conftest.err; then
3538 ac_cpp_err=$ac_c_preproc_warn_flag
3539 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
3546 if test -z "$ac_cpp_err"; then
3547 ac_header_preproc=yes
3549 echo "$as_me: failed program was:" >&5
3550 sed 's/^/| /' conftest.$ac_ext >&5
3552 ac_header_preproc=no
3554 rm -f conftest.err conftest.$ac_ext
3555 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
3556 echo "${ECHO_T}$ac_header_preproc" >&6
3558 # So? What about this header?
3559 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
3561 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
3562 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
3563 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
3564 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
3565 ac_header_preproc=yes
3568 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
3569 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
3570 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
3571 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
3572 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
3573 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
3574 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
3575 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
3576 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
3577 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
3578 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
3579 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
3582 ## ------------------------------------------ ##
3583 ## Report this to the AC_PACKAGE_NAME lists. ##
3584 ## ------------------------------------------ ##
3587 sed "s/^/$as_me: WARNING: /" >&2
3590 echo "$as_me:$LINENO: checking for $ac_header" >&5
3591 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
3592 if eval "test \"\${$as_ac_Header+set}\" = set"; then
3593 echo $ECHO_N "(cached) $ECHO_C" >&6
3595 eval "$as_ac_Header=\$ac_header_preproc"
3597 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
3598 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
3601 if test `eval echo '${'$as_ac_Header'}'` = yes; then
3602 cat >>confdefs.h <<_ACEOF
3603 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
3611 for ac_header in libunwind-ia64.h
3613 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
3614 if eval "test \"\${$as_ac_Header+set}\" = set"; then
3615 echo "$as_me:$LINENO: checking for $ac_header" >&5
3616 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
3617 if eval "test \"\${$as_ac_Header+set}\" = set"; then
3618 echo $ECHO_N "(cached) $ECHO_C" >&6
3620 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
3621 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
3623 # Is the header compilable?
3624 echo "$as_me:$LINENO: checking $ac_header usability" >&5
3625 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
3626 cat >conftest.$ac_ext <<_ACEOF
3629 cat confdefs.h >>conftest.$ac_ext
3630 cat >>conftest.$ac_ext <<_ACEOF
3631 /* end confdefs.h. */
3632 $ac_includes_default
3633 #include <$ac_header>
3635 rm -f conftest.$ac_objext
3636 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
3637 (eval $ac_compile) 2>conftest.er1
3639 grep -v '^ *+' conftest.er1 >conftest.err
3641 cat conftest.err >&5
3642 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3643 (exit $ac_status); } &&
3644 { ac_try='test -z "$ac_c_werror_flag"
3645 || test ! -s conftest.err'
3646 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3649 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3650 (exit $ac_status); }; } &&
3651 { ac_try='test -s conftest.$ac_objext'
3652 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3655 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3656 (exit $ac_status); }; }; then
3657 ac_header_compiler=yes
3659 echo "$as_me: failed program was:" >&5
3660 sed 's/^/| /' conftest.$ac_ext >&5
3662 ac_header_compiler=no
3664 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
3665 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
3666 echo "${ECHO_T}$ac_header_compiler" >&6
3668 # Is the header present?
3669 echo "$as_me:$LINENO: checking $ac_header presence" >&5
3670 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
3671 cat >conftest.$ac_ext <<_ACEOF
3674 cat confdefs.h >>conftest.$ac_ext
3675 cat >>conftest.$ac_ext <<_ACEOF
3676 /* end confdefs.h. */
3677 #include <$ac_header>
3679 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
3680 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
3682 grep -v '^ *+' conftest.er1 >conftest.err
3684 cat conftest.err >&5
3685 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3686 (exit $ac_status); } >/dev/null; then
3687 if test -s conftest.err; then
3688 ac_cpp_err=$ac_c_preproc_warn_flag
3689 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
3696 if test -z "$ac_cpp_err"; then
3697 ac_header_preproc=yes
3699 echo "$as_me: failed program was:" >&5
3700 sed 's/^/| /' conftest.$ac_ext >&5
3702 ac_header_preproc=no
3704 rm -f conftest.err conftest.$ac_ext
3705 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
3706 echo "${ECHO_T}$ac_header_preproc" >&6
3708 # So? What about this header?
3709 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
3711 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
3712 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
3713 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
3714 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
3715 ac_header_preproc=yes
3718 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
3719 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
3720 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
3721 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
3722 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
3723 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
3724 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
3725 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
3726 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
3727 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
3728 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
3729 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
3732 ## ------------------------------------------ ##
3733 ## Report this to the AC_PACKAGE_NAME lists. ##
3734 ## ------------------------------------------ ##
3737 sed "s/^/$as_me: WARNING: /" >&2
3740 echo "$as_me:$LINENO: checking for $ac_header" >&5
3741 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
3742 if eval "test \"\${$as_ac_Header+set}\" = set"; then
3743 echo $ECHO_N "(cached) $ECHO_C" >&6
3745 eval "$as_ac_Header=\$ac_header_preproc"
3747 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
3748 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
3751 if test `eval echo '${'$as_ac_Header'}'` = yes; then
3752 cat >>confdefs.h <<_ACEOF
3753 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
3760 if test x"$ac_cv_header_libunwind_h" = xyes -a x"$ac_cv_header_libunwind_ia64_h" = xyes; then
3761 enable_libunwind=yes;
3766 if test x"$enable_libunwind" = xyes; then
3768 for ac_header in libunwind.h
3770 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
3771 if eval "test \"\${$as_ac_Header+set}\" = set"; then
3772 echo "$as_me:$LINENO: checking for $ac_header" >&5
3773 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
3774 if eval "test \"\${$as_ac_Header+set}\" = set"; then
3775 echo $ECHO_N "(cached) $ECHO_C" >&6
3777 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
3778 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
3780 # Is the header compilable?
3781 echo "$as_me:$LINENO: checking $ac_header usability" >&5
3782 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
3783 cat >conftest.$ac_ext <<_ACEOF
3786 cat confdefs.h >>conftest.$ac_ext
3787 cat >>conftest.$ac_ext <<_ACEOF
3788 /* end confdefs.h. */
3789 $ac_includes_default
3790 #include <$ac_header>
3792 rm -f conftest.$ac_objext
3793 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
3794 (eval $ac_compile) 2>conftest.er1
3796 grep -v '^ *+' conftest.er1 >conftest.err
3798 cat conftest.err >&5
3799 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3800 (exit $ac_status); } &&
3801 { ac_try='test -z "$ac_c_werror_flag"
3802 || test ! -s conftest.err'
3803 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3806 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3807 (exit $ac_status); }; } &&
3808 { ac_try='test -s conftest.$ac_objext'
3809 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3812 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3813 (exit $ac_status); }; }; then
3814 ac_header_compiler=yes
3816 echo "$as_me: failed program was:" >&5
3817 sed 's/^/| /' conftest.$ac_ext >&5
3819 ac_header_compiler=no
3821 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
3822 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
3823 echo "${ECHO_T}$ac_header_compiler" >&6
3825 # Is the header present?
3826 echo "$as_me:$LINENO: checking $ac_header presence" >&5
3827 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
3828 cat >conftest.$ac_ext <<_ACEOF
3831 cat confdefs.h >>conftest.$ac_ext
3832 cat >>conftest.$ac_ext <<_ACEOF
3833 /* end confdefs.h. */
3834 #include <$ac_header>
3836 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
3837 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
3839 grep -v '^ *+' conftest.er1 >conftest.err
3841 cat conftest.err >&5
3842 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3843 (exit $ac_status); } >/dev/null; then
3844 if test -s conftest.err; then
3845 ac_cpp_err=$ac_c_preproc_warn_flag
3846 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
3853 if test -z "$ac_cpp_err"; then
3854 ac_header_preproc=yes
3856 echo "$as_me: failed program was:" >&5
3857 sed 's/^/| /' conftest.$ac_ext >&5
3859 ac_header_preproc=no
3861 rm -f conftest.err conftest.$ac_ext
3862 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
3863 echo "${ECHO_T}$ac_header_preproc" >&6
3865 # So? What about this header?
3866 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
3868 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
3869 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
3870 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
3871 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
3872 ac_header_preproc=yes
3875 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
3876 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
3877 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
3878 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
3879 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
3880 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
3881 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
3882 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
3883 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
3884 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
3885 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
3886 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
3889 ## ------------------------------------------ ##
3890 ## Report this to the AC_PACKAGE_NAME lists. ##
3891 ## ------------------------------------------ ##
3894 sed "s/^/$as_me: WARNING: /" >&2
3897 echo "$as_me:$LINENO: checking for $ac_header" >&5
3898 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
3899 if eval "test \"\${$as_ac_Header+set}\" = set"; then
3900 echo $ECHO_N "(cached) $ECHO_C" >&6
3902 eval "$as_ac_Header=\$ac_header_preproc"
3904 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
3905 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
3908 if test `eval echo '${'$as_ac_Header'}'` = yes; then
3909 cat >>confdefs.h <<_ACEOF
3910 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
3918 for ac_header in libunwind-ia64.h
3920 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
3921 if eval "test \"\${$as_ac_Header+set}\" = set"; then
3922 echo "$as_me:$LINENO: checking for $ac_header" >&5
3923 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
3924 if eval "test \"\${$as_ac_Header+set}\" = set"; then
3925 echo $ECHO_N "(cached) $ECHO_C" >&6
3927 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
3928 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
3930 # Is the header compilable?
3931 echo "$as_me:$LINENO: checking $ac_header usability" >&5
3932 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
3933 cat >conftest.$ac_ext <<_ACEOF
3936 cat confdefs.h >>conftest.$ac_ext
3937 cat >>conftest.$ac_ext <<_ACEOF
3938 /* end confdefs.h. */
3939 $ac_includes_default
3940 #include <$ac_header>
3942 rm -f conftest.$ac_objext
3943 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
3944 (eval $ac_compile) 2>conftest.er1
3946 grep -v '^ *+' conftest.er1 >conftest.err
3948 cat conftest.err >&5
3949 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3950 (exit $ac_status); } &&
3951 { ac_try='test -z "$ac_c_werror_flag"
3952 || test ! -s conftest.err'
3953 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3956 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3957 (exit $ac_status); }; } &&
3958 { ac_try='test -s conftest.$ac_objext'
3959 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3962 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3963 (exit $ac_status); }; }; then
3964 ac_header_compiler=yes
3966 echo "$as_me: failed program was:" >&5
3967 sed 's/^/| /' conftest.$ac_ext >&5
3969 ac_header_compiler=no
3971 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
3972 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
3973 echo "${ECHO_T}$ac_header_compiler" >&6
3975 # Is the header present?
3976 echo "$as_me:$LINENO: checking $ac_header presence" >&5
3977 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
3978 cat >conftest.$ac_ext <<_ACEOF
3981 cat confdefs.h >>conftest.$ac_ext
3982 cat >>conftest.$ac_ext <<_ACEOF
3983 /* end confdefs.h. */
3984 #include <$ac_header>
3986 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
3987 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
3989 grep -v '^ *+' conftest.er1 >conftest.err
3991 cat conftest.err >&5
3992 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3993 (exit $ac_status); } >/dev/null; then
3994 if test -s conftest.err; then
3995 ac_cpp_err=$ac_c_preproc_warn_flag
3996 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
4003 if test -z "$ac_cpp_err"; then
4004 ac_header_preproc=yes
4006 echo "$as_me: failed program was:" >&5
4007 sed 's/^/| /' conftest.$ac_ext >&5
4009 ac_header_preproc=no
4011 rm -f conftest.err conftest.$ac_ext
4012 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
4013 echo "${ECHO_T}$ac_header_preproc" >&6
4015 # So? What about this header?
4016 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
4018 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
4019 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
4020 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
4021 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
4022 ac_header_preproc=yes
4025 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
4026 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
4027 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
4028 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
4029 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
4030 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
4031 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
4032 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
4033 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
4034 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
4035 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
4036 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
4039 ## ------------------------------------------ ##
4040 ## Report this to the AC_PACKAGE_NAME lists. ##
4041 ## ------------------------------------------ ##
4044 sed "s/^/$as_me: WARNING: /" >&2
4047 echo "$as_me:$LINENO: checking for $ac_header" >&5
4048 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
4049 if eval "test \"\${$as_ac_Header+set}\" = set"; then
4050 echo $ECHO_N "(cached) $ECHO_C" >&6
4052 eval "$as_ac_Header=\$ac_header_preproc"
4054 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
4055 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
4058 if test `eval echo '${'$as_ac_Header'}'` = yes; then
4059 cat >>confdefs.h <<_ACEOF
4060 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
4068 cat >>confdefs.h <<\_ACEOF
4069 #define HAVE_LIBUNWIND 1
4072 CONFIG_OBS="$CONFIG_OBS libunwind-frame.o"
4073 CONFIG_DEPS="$CONFIG_DEPS libunwind-frame.o"
4074 CONFIG_SRCS="$CONFIG_SRCS libunwind-frame.c"
4077 # Profiling support.
4078 # Check whether --enable-profiling or --disable-profiling was given.
4079 if test "${enable_profiling+set}" = set; then
4080 enableval="$enable_profiling"
4085 { { echo "$as_me:$LINENO: error: bad value $enableval for --enable-profile" >&5
4086 echo "$as_me: error: bad value $enableval for --enable-profile" >&2;}
4087 { (exit 1); exit 1; }; } ;;
4095 for ac_func in monstartup _mcleanup
4097 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
4098 echo "$as_me:$LINENO: checking for $ac_func" >&5
4099 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
4100 if eval "test \"\${$as_ac_var+set}\" = set"; then
4101 echo $ECHO_N "(cached) $ECHO_C" >&6
4103 cat >conftest.$ac_ext <<_ACEOF
4106 cat confdefs.h >>conftest.$ac_ext
4107 cat >>conftest.$ac_ext <<_ACEOF
4108 /* end confdefs.h. */
4109 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
4110 For example, HP-UX 11i <limits.h> declares gettimeofday. */
4111 #define $ac_func innocuous_$ac_func
4113 /* System header to define __stub macros and hopefully few prototypes,
4114 which can conflict with char $ac_func (); below.
4115 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
4116 <limits.h> exists even on freestanding compilers. */
4119 # include <limits.h>
4121 # include <assert.h>
4126 /* Override any gcc2 internal prototype to avoid an error. */
4131 /* We use char because int might match the return type of a gcc2
4132 builtin and then its argument prototype would still apply. */
4134 /* The GNU C library defines this for functions which it implements
4135 to always fail with ENOSYS. Some functions are actually named
4136 something starting with __ and the normal name is an alias. */
4137 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
4140 char (*f) () = $ac_func;
4149 return f != $ac_func;
4154 rm -f conftest.$ac_objext conftest$ac_exeext
4155 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
4156 (eval $ac_link) 2>conftest.er1
4158 grep -v '^ *+' conftest.er1 >conftest.err
4160 cat conftest.err >&5
4161 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4162 (exit $ac_status); } &&
4163 { ac_try='test -z "$ac_c_werror_flag"
4164 || test ! -s conftest.err'
4165 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4168 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4169 (exit $ac_status); }; } &&
4170 { ac_try='test -s conftest$ac_exeext'
4171 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4174 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4175 (exit $ac_status); }; }; then
4176 eval "$as_ac_var=yes"
4178 echo "$as_me: failed program was:" >&5
4179 sed 's/^/| /' conftest.$ac_ext >&5
4181 eval "$as_ac_var=no"
4183 rm -f conftest.err conftest.$ac_objext \
4184 conftest$ac_exeext conftest.$ac_ext
4186 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
4187 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
4188 if test `eval echo '${'$as_ac_var'}'` = yes; then
4189 cat >>confdefs.h <<_ACEOF
4190 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
4196 echo "$as_me:$LINENO: checking for _etext" >&5
4197 echo $ECHO_N "checking for _etext... $ECHO_C" >&6
4198 if test "${ac_cv_var__etext+set}" = set; then
4199 echo $ECHO_N "(cached) $ECHO_C" >&6
4201 cat >conftest.$ac_ext <<_ACEOF
4204 cat confdefs.h >>conftest.$ac_ext
4205 cat >>conftest.$ac_ext <<_ACEOF
4206 /* end confdefs.h. */
4218 rm -f conftest.$ac_objext conftest$ac_exeext
4219 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
4220 (eval $ac_link) 2>conftest.er1
4222 grep -v '^ *+' conftest.er1 >conftest.err
4224 cat conftest.err >&5
4225 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4226 (exit $ac_status); } &&
4227 { ac_try='test -z "$ac_c_werror_flag"
4228 || test ! -s conftest.err'
4229 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4232 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4233 (exit $ac_status); }; } &&
4234 { ac_try='test -s conftest$ac_exeext'
4235 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4238 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4239 (exit $ac_status); }; }; then
4240 ac_cv_var__etext=yes
4242 echo "$as_me: failed program was:" >&5
4243 sed 's/^/| /' conftest.$ac_ext >&5
4247 rm -f conftest.err conftest.$ac_objext \
4248 conftest$ac_exeext conftest.$ac_ext
4250 echo "$as_me:$LINENO: result: $ac_cv_var__etext" >&5
4251 echo "${ECHO_T}$ac_cv_var__etext" >&6
4252 if test $ac_cv_var__etext = yes; then
4254 cat >>confdefs.h <<\_ACEOF
4255 #define HAVE__ETEXT 1
4259 if test "$enable_profiling" = yes ; then
4260 if test $ac_cv_func_monstartup = no || test $ac_cv_func__mcleanup = no; then
4261 { { echo "$as_me:$LINENO: error: --enable-profiling requires monstartup and _mcleanup" >&5
4262 echo "$as_me: error: --enable-profiling requires monstartup and _mcleanup" >&2;}
4263 { (exit 1); exit 1; }; }
4266 OLD_CFLAGS="$CFLAGS"
4267 CFLAGS="$CFLAGS $PROFILE_CFLAGS"
4269 echo "$as_me:$LINENO: checking whether $CC supports -pg" >&5
4270 echo $ECHO_N "checking whether $CC supports -pg... $ECHO_C" >&6
4271 if test "${ac_cv_cc_supports_pg+set}" = set; then
4272 echo $ECHO_N "(cached) $ECHO_C" >&6
4274 cat >conftest.$ac_ext <<_ACEOF
4277 cat confdefs.h >>conftest.$ac_ext
4278 cat >>conftest.$ac_ext <<_ACEOF
4279 /* end confdefs.h. */
4289 rm -f conftest.$ac_objext
4290 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
4291 (eval $ac_compile) 2>conftest.er1
4293 grep -v '^ *+' conftest.er1 >conftest.err
4295 cat conftest.err >&5
4296 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4297 (exit $ac_status); } &&
4298 { ac_try='test -z "$ac_c_werror_flag"
4299 || test ! -s conftest.err'
4300 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4303 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4304 (exit $ac_status); }; } &&
4305 { ac_try='test -s conftest.$ac_objext'
4306 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4309 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4310 (exit $ac_status); }; }; then
4311 ac_cv_cc_supports_pg=yes
4313 echo "$as_me: failed program was:" >&5
4314 sed 's/^/| /' conftest.$ac_ext >&5
4316 ac_cv_cc_supports_pg=no
4318 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
4320 echo "$as_me:$LINENO: result: $ac_cv_cc_supports_pg" >&5
4321 echo "${ECHO_T}$ac_cv_cc_supports_pg" >&6
4323 if test $ac_cv_cc_supports_pg = no; then
4324 { { echo "$as_me:$LINENO: error: --enable-profiling requires a compiler which supports -pg" >&5
4325 echo "$as_me: error: --enable-profiling requires a compiler which supports -pg" >&2;}
4326 { (exit 1); exit 1; }; }
4329 CFLAGS="$OLD_CFLAGS"
4332 # --------------------- #
4333 # Checks for programs. #
4334 # --------------------- #
4336 for ac_prog in gawk mawk nawk awk
4338 # Extract the first word of "$ac_prog", so it can be a program name with args.
4339 set dummy $ac_prog; ac_word=$2
4340 echo "$as_me:$LINENO: checking for $ac_word" >&5
4341 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
4342 if test "${ac_cv_prog_AWK+set}" = set; then
4343 echo $ECHO_N "(cached) $ECHO_C" >&6
4345 if test -n "$AWK"; then
4346 ac_cv_prog_AWK="$AWK" # Let the user override the test.
4348 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4352 test -z "$as_dir" && as_dir=.
4353 for ac_exec_ext in '' $ac_executable_extensions; do
4354 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4355 ac_cv_prog_AWK="$ac_prog"
4356 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4365 if test -n "$AWK"; then
4366 echo "$as_me:$LINENO: result: $AWK" >&5
4367 echo "${ECHO_T}$AWK" >&6
4369 echo "$as_me:$LINENO: result: no" >&5
4370 echo "${ECHO_T}no" >&6
4373 test -n "$AWK" && break
4376 # Find a good install program. We prefer a C program (faster),
4377 # so one script is as good as another. But avoid the broken or
4378 # incompatible versions:
4379 # SysV /etc/install, /usr/sbin/install
4380 # SunOS /usr/etc/install
4381 # IRIX /sbin/install
4383 # AmigaOS /C/install, which installs bootblocks on floppy discs
4384 # AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag
4385 # AFS /usr/afsws/bin/install, which mishandles nonexistent args
4386 # SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff"
4387 # OS/2's system install, which has a completely different semantic
4388 # ./install, which can be erroneously created by make from ./install.sh.
4389 echo "$as_me:$LINENO: checking for a BSD-compatible install" >&5
4390 echo $ECHO_N "checking for a BSD-compatible install... $ECHO_C" >&6
4391 if test -z "$INSTALL"; then
4392 if test "${ac_cv_path_install+set}" = set; then
4393 echo $ECHO_N "(cached) $ECHO_C" >&6
4395 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4399 test -z "$as_dir" && as_dir=.
4400 # Account for people who put trailing slashes in PATH elements.
4402 ./ | .// | /cC/* | \
4403 /etc/* | /usr/sbin/* | /usr/etc/* | /sbin/* | /usr/afsws/bin/* | \
4404 ?:\\/os2\\/install\\/* | ?:\\/OS2\\/INSTALL\\/* | \
4407 # OSF1 and SCO ODT 3.0 have their own names for install.
4408 # Don't use installbsd from OSF since it installs stuff as root
4410 for ac_prog in ginstall scoinst install; do
4411 for ac_exec_ext in '' $ac_executable_extensions; do
4412 if $as_executable_p "$as_dir/$ac_prog$ac_exec_ext"; then
4413 if test $ac_prog = install &&
4414 grep dspmsg "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
4415 # AIX install. It has an incompatible calling convention.
4417 elif test $ac_prog = install &&
4418 grep pwplus "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
4419 # program-specific install script used by HP pwplus--don't use.
4422 ac_cv_path_install="$as_dir/$ac_prog$ac_exec_ext -c"
4434 if test "${ac_cv_path_install+set}" = set; then
4435 INSTALL=$ac_cv_path_install
4437 # As a last resort, use the slow shell script. We don't cache a
4438 # path for INSTALL within a source directory, because that will
4439 # break other packages using the cache if that directory is
4440 # removed, or if the path is relative.
4441 INSTALL=$ac_install_sh
4444 echo "$as_me:$LINENO: result: $INSTALL" >&5
4445 echo "${ECHO_T}$INSTALL" >&6
4447 # Use test -z because SunOS4 sh mishandles braces in ${var-val}.
4448 # It thinks the first close brace ends the variable substitution.
4449 test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}'
4451 test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL}'
4453 test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644'
4455 echo "$as_me:$LINENO: checking whether ln -s works" >&5
4456 echo $ECHO_N "checking whether ln -s works... $ECHO_C" >&6
4458 if test "$LN_S" = "ln -s"; then
4459 echo "$as_me:$LINENO: result: yes" >&5
4460 echo "${ECHO_T}yes" >&6
4462 echo "$as_me:$LINENO: result: no, using $LN_S" >&5
4463 echo "${ECHO_T}no, using $LN_S" >&6
4466 if test -n "$ac_tool_prefix"; then
4467 # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args.
4468 set dummy ${ac_tool_prefix}ranlib; ac_word=$2
4469 echo "$as_me:$LINENO: checking for $ac_word" >&5
4470 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
4471 if test "${ac_cv_prog_RANLIB+set}" = set; then
4472 echo $ECHO_N "(cached) $ECHO_C" >&6
4474 if test -n "$RANLIB"; then
4475 ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
4477 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4481 test -z "$as_dir" && as_dir=.
4482 for ac_exec_ext in '' $ac_executable_extensions; do
4483 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4484 ac_cv_prog_RANLIB="${ac_tool_prefix}ranlib"
4485 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4493 RANLIB=$ac_cv_prog_RANLIB
4494 if test -n "$RANLIB"; then
4495 echo "$as_me:$LINENO: result: $RANLIB" >&5
4496 echo "${ECHO_T}$RANLIB" >&6
4498 echo "$as_me:$LINENO: result: no" >&5
4499 echo "${ECHO_T}no" >&6
4503 if test -z "$ac_cv_prog_RANLIB"; then
4504 ac_ct_RANLIB=$RANLIB
4505 # Extract the first word of "ranlib", so it can be a program name with args.
4506 set dummy ranlib; ac_word=$2
4507 echo "$as_me:$LINENO: checking for $ac_word" >&5
4508 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
4509 if test "${ac_cv_prog_ac_ct_RANLIB+set}" = set; then
4510 echo $ECHO_N "(cached) $ECHO_C" >&6
4512 if test -n "$ac_ct_RANLIB"; then
4513 ac_cv_prog_ac_ct_RANLIB="$ac_ct_RANLIB" # Let the user override the test.
4515 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4519 test -z "$as_dir" && as_dir=.
4520 for ac_exec_ext in '' $ac_executable_extensions; do
4521 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4522 ac_cv_prog_ac_ct_RANLIB="ranlib"
4523 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4529 test -z "$ac_cv_prog_ac_ct_RANLIB" && ac_cv_prog_ac_ct_RANLIB=":"
4532 ac_ct_RANLIB=$ac_cv_prog_ac_ct_RANLIB
4533 if test -n "$ac_ct_RANLIB"; then
4534 echo "$as_me:$LINENO: result: $ac_ct_RANLIB" >&5
4535 echo "${ECHO_T}$ac_ct_RANLIB" >&6
4537 echo "$as_me:$LINENO: result: no" >&5
4538 echo "${ECHO_T}no" >&6
4541 RANLIB=$ac_ct_RANLIB
4543 RANLIB="$ac_cv_prog_RANLIB"
4546 for ac_prog in 'bison -y' byacc
4548 # Extract the first word of "$ac_prog", so it can be a program name with args.
4549 set dummy $ac_prog; ac_word=$2
4550 echo "$as_me:$LINENO: checking for $ac_word" >&5
4551 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
4552 if test "${ac_cv_prog_YACC+set}" = set; then
4553 echo $ECHO_N "(cached) $ECHO_C" >&6
4555 if test -n "$YACC"; then
4556 ac_cv_prog_YACC="$YACC" # Let the user override the test.
4558 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4562 test -z "$as_dir" && as_dir=.
4563 for ac_exec_ext in '' $ac_executable_extensions; do
4564 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4565 ac_cv_prog_YACC="$ac_prog"
4566 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4574 YACC=$ac_cv_prog_YACC
4575 if test -n "$YACC"; then
4576 echo "$as_me:$LINENO: result: $YACC" >&5
4577 echo "${ECHO_T}$YACC" >&6
4579 echo "$as_me:$LINENO: result: no" >&5
4580 echo "${ECHO_T}no" >&6
4583 test -n "$YACC" && break
4585 test -n "$YACC" || YACC="yacc"
4588 if test -n "$ac_tool_prefix"; then
4589 # Extract the first word of "${ac_tool_prefix}ar", so it can be a program name with args.
4590 set dummy ${ac_tool_prefix}ar; ac_word=$2
4591 echo "$as_me:$LINENO: checking for $ac_word" >&5
4592 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
4593 if test "${ac_cv_prog_AR+set}" = set; then
4594 echo $ECHO_N "(cached) $ECHO_C" >&6
4596 if test -n "$AR"; then
4597 ac_cv_prog_AR="$AR" # Let the user override the test.
4599 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4603 test -z "$as_dir" && as_dir=.
4604 for ac_exec_ext in '' $ac_executable_extensions; do
4605 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4606 ac_cv_prog_AR="${ac_tool_prefix}ar"
4607 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4616 if test -n "$AR"; then
4617 echo "$as_me:$LINENO: result: $AR" >&5
4618 echo "${ECHO_T}$AR" >&6
4620 echo "$as_me:$LINENO: result: no" >&5
4621 echo "${ECHO_T}no" >&6
4625 if test -z "$ac_cv_prog_AR"; then
4627 # Extract the first word of "ar", so it can be a program name with args.
4628 set dummy ar; ac_word=$2
4629 echo "$as_me:$LINENO: checking for $ac_word" >&5
4630 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
4631 if test "${ac_cv_prog_ac_ct_AR+set}" = set; then
4632 echo $ECHO_N "(cached) $ECHO_C" >&6
4634 if test -n "$ac_ct_AR"; then
4635 ac_cv_prog_ac_ct_AR="$ac_ct_AR" # Let the user override the test.
4637 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4641 test -z "$as_dir" && as_dir=.
4642 for ac_exec_ext in '' $ac_executable_extensions; do
4643 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4644 ac_cv_prog_ac_ct_AR="ar"
4645 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4653 ac_ct_AR=$ac_cv_prog_ac_ct_AR
4654 if test -n "$ac_ct_AR"; then
4655 echo "$as_me:$LINENO: result: $ac_ct_AR" >&5
4656 echo "${ECHO_T}$ac_ct_AR" >&6
4658 echo "$as_me:$LINENO: result: no" >&5
4659 echo "${ECHO_T}no" >&6
4667 if test -n "$ac_tool_prefix"; then
4668 # Extract the first word of "${ac_tool_prefix}dlltool", so it can be a program name with args.
4669 set dummy ${ac_tool_prefix}dlltool; ac_word=$2
4670 echo "$as_me:$LINENO: checking for $ac_word" >&5
4671 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
4672 if test "${ac_cv_prog_DLLTOOL+set}" = set; then
4673 echo $ECHO_N "(cached) $ECHO_C" >&6
4675 if test -n "$DLLTOOL"; then
4676 ac_cv_prog_DLLTOOL="$DLLTOOL" # Let the user override the test.
4678 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4682 test -z "$as_dir" && as_dir=.
4683 for ac_exec_ext in '' $ac_executable_extensions; do
4684 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4685 ac_cv_prog_DLLTOOL="${ac_tool_prefix}dlltool"
4686 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4694 DLLTOOL=$ac_cv_prog_DLLTOOL
4695 if test -n "$DLLTOOL"; then
4696 echo "$as_me:$LINENO: result: $DLLTOOL" >&5
4697 echo "${ECHO_T}$DLLTOOL" >&6
4699 echo "$as_me:$LINENO: result: no" >&5
4700 echo "${ECHO_T}no" >&6
4704 if test -z "$ac_cv_prog_DLLTOOL"; then
4705 ac_ct_DLLTOOL=$DLLTOOL
4706 # Extract the first word of "dlltool", so it can be a program name with args.
4707 set dummy dlltool; ac_word=$2
4708 echo "$as_me:$LINENO: checking for $ac_word" >&5
4709 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
4710 if test "${ac_cv_prog_ac_ct_DLLTOOL+set}" = set; then
4711 echo $ECHO_N "(cached) $ECHO_C" >&6
4713 if test -n "$ac_ct_DLLTOOL"; then
4714 ac_cv_prog_ac_ct_DLLTOOL="$ac_ct_DLLTOOL" # Let the user override the test.
4716 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4720 test -z "$as_dir" && as_dir=.
4721 for ac_exec_ext in '' $ac_executable_extensions; do
4722 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4723 ac_cv_prog_ac_ct_DLLTOOL="dlltool"
4724 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4732 ac_ct_DLLTOOL=$ac_cv_prog_ac_ct_DLLTOOL
4733 if test -n "$ac_ct_DLLTOOL"; then
4734 echo "$as_me:$LINENO: result: $ac_ct_DLLTOOL" >&5
4735 echo "${ECHO_T}$ac_ct_DLLTOOL" >&6
4737 echo "$as_me:$LINENO: result: no" >&5
4738 echo "${ECHO_T}no" >&6
4741 DLLTOOL=$ac_ct_DLLTOOL
4743 DLLTOOL="$ac_cv_prog_DLLTOOL"
4746 if test -n "$ac_tool_prefix"; then
4747 # Extract the first word of "${ac_tool_prefix}windres", so it can be a program name with args.
4748 set dummy ${ac_tool_prefix}windres; ac_word=$2
4749 echo "$as_me:$LINENO: checking for $ac_word" >&5
4750 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
4751 if test "${ac_cv_prog_WINDRES+set}" = set; then
4752 echo $ECHO_N "(cached) $ECHO_C" >&6
4754 if test -n "$WINDRES"; then
4755 ac_cv_prog_WINDRES="$WINDRES" # Let the user override the test.
4757 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4761 test -z "$as_dir" && as_dir=.
4762 for ac_exec_ext in '' $ac_executable_extensions; do
4763 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4764 ac_cv_prog_WINDRES="${ac_tool_prefix}windres"
4765 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4773 WINDRES=$ac_cv_prog_WINDRES
4774 if test -n "$WINDRES"; then
4775 echo "$as_me:$LINENO: result: $WINDRES" >&5
4776 echo "${ECHO_T}$WINDRES" >&6
4778 echo "$as_me:$LINENO: result: no" >&5
4779 echo "${ECHO_T}no" >&6
4783 if test -z "$ac_cv_prog_WINDRES"; then
4784 ac_ct_WINDRES=$WINDRES
4785 # Extract the first word of "windres", so it can be a program name with args.
4786 set dummy windres; ac_word=$2
4787 echo "$as_me:$LINENO: checking for $ac_word" >&5
4788 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
4789 if test "${ac_cv_prog_ac_ct_WINDRES+set}" = set; then
4790 echo $ECHO_N "(cached) $ECHO_C" >&6
4792 if test -n "$ac_ct_WINDRES"; then
4793 ac_cv_prog_ac_ct_WINDRES="$ac_ct_WINDRES" # Let the user override the test.
4795 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4799 test -z "$as_dir" && as_dir=.
4800 for ac_exec_ext in '' $ac_executable_extensions; do
4801 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4802 ac_cv_prog_ac_ct_WINDRES="windres"
4803 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4811 ac_ct_WINDRES=$ac_cv_prog_ac_ct_WINDRES
4812 if test -n "$ac_ct_WINDRES"; then
4813 echo "$as_me:$LINENO: result: $ac_ct_WINDRES" >&5
4814 echo "${ECHO_T}$ac_ct_WINDRES" >&6
4816 echo "$as_me:$LINENO: result: no" >&5
4817 echo "${ECHO_T}no" >&6
4820 WINDRES=$ac_ct_WINDRES
4822 WINDRES="$ac_cv_prog_WINDRES"
4826 # Needed for GNU/Hurd.
4827 if test -n "$ac_tool_prefix"; then
4828 # Extract the first word of "${ac_tool_prefix}mig", so it can be a program name with args.
4829 set dummy ${ac_tool_prefix}mig; ac_word=$2
4830 echo "$as_me:$LINENO: checking for $ac_word" >&5
4831 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
4832 if test "${ac_cv_prog_MIG+set}" = set; then
4833 echo $ECHO_N "(cached) $ECHO_C" >&6
4835 if test -n "$MIG"; then
4836 ac_cv_prog_MIG="$MIG" # Let the user override the test.
4838 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4842 test -z "$as_dir" && as_dir=.
4843 for ac_exec_ext in '' $ac_executable_extensions; do
4844 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4845 ac_cv_prog_MIG="${ac_tool_prefix}mig"
4846 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4855 if test -n "$MIG"; then
4856 echo "$as_me:$LINENO: result: $MIG" >&5
4857 echo "${ECHO_T}$MIG" >&6
4859 echo "$as_me:$LINENO: result: no" >&5
4860 echo "${ECHO_T}no" >&6
4864 if test -z "$ac_cv_prog_MIG"; then
4866 # Extract the first word of "mig", so it can be a program name with args.
4867 set dummy mig; ac_word=$2
4868 echo "$as_me:$LINENO: checking for $ac_word" >&5
4869 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
4870 if test "${ac_cv_prog_ac_ct_MIG+set}" = set; then
4871 echo $ECHO_N "(cached) $ECHO_C" >&6
4873 if test -n "$ac_ct_MIG"; then
4874 ac_cv_prog_ac_ct_MIG="$ac_ct_MIG" # Let the user override the test.
4876 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4880 test -z "$as_dir" && as_dir=.
4881 for ac_exec_ext in '' $ac_executable_extensions; do
4882 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4883 ac_cv_prog_ac_ct_MIG="mig"
4884 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4892 ac_ct_MIG=$ac_cv_prog_ac_ct_MIG
4893 if test -n "$ac_ct_MIG"; then
4894 echo "$as_me:$LINENO: result: $ac_ct_MIG" >&5
4895 echo "${ECHO_T}$ac_ct_MIG" >&6
4897 echo "$as_me:$LINENO: result: no" >&5
4898 echo "${ECHO_T}no" >&6
4903 MIG="$ac_cv_prog_MIG"
4907 # ---------------------- #
4908 # Checks for libraries. #
4909 # ---------------------- #
4911 # We might need to link with -lm; most simulators need it.
4913 echo "$as_me:$LINENO: checking for main in -lm" >&5
4914 echo $ECHO_N "checking for main in -lm... $ECHO_C" >&6
4915 if test "${ac_cv_lib_m_main+set}" = set; then
4916 echo $ECHO_N "(cached) $ECHO_C" >&6
4918 ac_check_lib_save_LIBS=$LIBS
4920 cat >conftest.$ac_ext <<_ACEOF
4923 cat confdefs.h >>conftest.$ac_ext
4924 cat >>conftest.$ac_ext <<_ACEOF
4925 /* end confdefs.h. */
4936 rm -f conftest.$ac_objext conftest$ac_exeext
4937 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
4938 (eval $ac_link) 2>conftest.er1
4940 grep -v '^ *+' conftest.er1 >conftest.err
4942 cat conftest.err >&5
4943 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4944 (exit $ac_status); } &&
4945 { ac_try='test -z "$ac_c_werror_flag"
4946 || test ! -s conftest.err'
4947 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4950 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4951 (exit $ac_status); }; } &&
4952 { ac_try='test -s conftest$ac_exeext'
4953 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4956 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4957 (exit $ac_status); }; }; then
4958 ac_cv_lib_m_main=yes
4960 echo "$as_me: failed program was:" >&5
4961 sed 's/^/| /' conftest.$ac_ext >&5
4965 rm -f conftest.err conftest.$ac_objext \
4966 conftest$ac_exeext conftest.$ac_ext
4967 LIBS=$ac_check_lib_save_LIBS
4969 echo "$as_me:$LINENO: result: $ac_cv_lib_m_main" >&5
4970 echo "${ECHO_T}$ac_cv_lib_m_main" >&6
4971 if test $ac_cv_lib_m_main = yes; then
4972 cat >>confdefs.h <<_ACEOF
4981 # We need to link with -lw to get `wctype' on Solaris before Solaris
4982 # 2.6. Solaris 2.6 and beyond have this function in libc, and have a
4983 # libw that some versions of the GNU linker cannot hanle (GNU ld 2.9.1
4984 # is known to have this problem). Therefore we avoid libw if we can.
4985 echo "$as_me:$LINENO: checking for wctype" >&5
4986 echo $ECHO_N "checking for wctype... $ECHO_C" >&6
4987 if test "${ac_cv_func_wctype+set}" = set; then
4988 echo $ECHO_N "(cached) $ECHO_C" >&6
4990 cat >conftest.$ac_ext <<_ACEOF
4993 cat confdefs.h >>conftest.$ac_ext
4994 cat >>conftest.$ac_ext <<_ACEOF
4995 /* end confdefs.h. */
4996 /* Define wctype to an innocuous variant, in case <limits.h> declares wctype.
4997 For example, HP-UX 11i <limits.h> declares gettimeofday. */
4998 #define wctype innocuous_wctype
5000 /* System header to define __stub macros and hopefully few prototypes,
5001 which can conflict with char wctype (); below.
5002 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
5003 <limits.h> exists even on freestanding compilers. */
5006 # include <limits.h>
5008 # include <assert.h>
5013 /* Override any gcc2 internal prototype to avoid an error. */
5018 /* We use char because int might match the return type of a gcc2
5019 builtin and then its argument prototype would still apply. */
5021 /* The GNU C library defines this for functions which it implements
5022 to always fail with ENOSYS. Some functions are actually named
5023 something starting with __ and the normal name is an alias. */
5024 #if defined (__stub_wctype) || defined (__stub___wctype)
5027 char (*f) () = wctype;
5041 rm -f conftest.$ac_objext conftest$ac_exeext
5042 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
5043 (eval $ac_link) 2>conftest.er1
5045 grep -v '^ *+' conftest.er1 >conftest.err
5047 cat conftest.err >&5
5048 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5049 (exit $ac_status); } &&
5050 { ac_try='test -z "$ac_c_werror_flag"
5051 || test ! -s conftest.err'
5052 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5055 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5056 (exit $ac_status); }; } &&
5057 { ac_try='test -s conftest$ac_exeext'
5058 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5061 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5062 (exit $ac_status); }; }; then
5063 ac_cv_func_wctype=yes
5065 echo "$as_me: failed program was:" >&5
5066 sed 's/^/| /' conftest.$ac_ext >&5
5068 ac_cv_func_wctype=no
5070 rm -f conftest.err conftest.$ac_objext \
5071 conftest$ac_exeext conftest.$ac_ext
5073 echo "$as_me:$LINENO: result: $ac_cv_func_wctype" >&5
5074 echo "${ECHO_T}$ac_cv_func_wctype" >&6
5075 if test $ac_cv_func_wctype = yes; then
5079 echo "$as_me:$LINENO: checking for wctype in -lw" >&5
5080 echo $ECHO_N "checking for wctype in -lw... $ECHO_C" >&6
5081 if test "${ac_cv_lib_w_wctype+set}" = set; then
5082 echo $ECHO_N "(cached) $ECHO_C" >&6
5084 ac_check_lib_save_LIBS=$LIBS
5086 cat >conftest.$ac_ext <<_ACEOF
5089 cat confdefs.h >>conftest.$ac_ext
5090 cat >>conftest.$ac_ext <<_ACEOF
5091 /* end confdefs.h. */
5093 /* Override any gcc2 internal prototype to avoid an error. */
5097 /* We use char because int might match the return type of a gcc2
5098 builtin and then its argument prototype would still apply. */
5108 rm -f conftest.$ac_objext conftest$ac_exeext
5109 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
5110 (eval $ac_link) 2>conftest.er1
5112 grep -v '^ *+' conftest.er1 >conftest.err
5114 cat conftest.err >&5
5115 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5116 (exit $ac_status); } &&
5117 { ac_try='test -z "$ac_c_werror_flag"
5118 || test ! -s conftest.err'
5119 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5122 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5123 (exit $ac_status); }; } &&
5124 { ac_try='test -s conftest$ac_exeext'
5125 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5128 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5129 (exit $ac_status); }; }; then
5130 ac_cv_lib_w_wctype=yes
5132 echo "$as_me: failed program was:" >&5
5133 sed 's/^/| /' conftest.$ac_ext >&5
5135 ac_cv_lib_w_wctype=no
5137 rm -f conftest.err conftest.$ac_objext \
5138 conftest$ac_exeext conftest.$ac_ext
5139 LIBS=$ac_check_lib_save_LIBS
5141 echo "$as_me:$LINENO: result: $ac_cv_lib_w_wctype" >&5
5142 echo "${ECHO_T}$ac_cv_lib_w_wctype" >&6
5143 if test $ac_cv_lib_w_wctype = yes; then
5144 cat >>confdefs.h <<_ACEOF
5155 # Some systems (e.g. Solaris) have `gethostbyname' in libnsl.
5156 echo "$as_me:$LINENO: checking for library containing gethostbyname" >&5
5157 echo $ECHO_N "checking for library containing gethostbyname... $ECHO_C" >&6
5158 if test "${ac_cv_search_gethostbyname+set}" = set; then
5159 echo $ECHO_N "(cached) $ECHO_C" >&6
5161 ac_func_search_save_LIBS=$LIBS
5162 ac_cv_search_gethostbyname=no
5163 cat >conftest.$ac_ext <<_ACEOF
5166 cat confdefs.h >>conftest.$ac_ext
5167 cat >>conftest.$ac_ext <<_ACEOF
5168 /* end confdefs.h. */
5170 /* Override any gcc2 internal prototype to avoid an error. */
5174 /* We use char because int might match the return type of a gcc2
5175 builtin and then its argument prototype would still apply. */
5176 char gethostbyname ();
5185 rm -f conftest.$ac_objext conftest$ac_exeext
5186 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
5187 (eval $ac_link) 2>conftest.er1
5189 grep -v '^ *+' conftest.er1 >conftest.err
5191 cat conftest.err >&5
5192 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5193 (exit $ac_status); } &&
5194 { ac_try='test -z "$ac_c_werror_flag"
5195 || test ! -s conftest.err'
5196 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5199 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5200 (exit $ac_status); }; } &&
5201 { ac_try='test -s conftest$ac_exeext'
5202 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5205 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5206 (exit $ac_status); }; }; then
5207 ac_cv_search_gethostbyname="none required"
5209 echo "$as_me: failed program was:" >&5
5210 sed 's/^/| /' conftest.$ac_ext >&5
5213 rm -f conftest.err conftest.$ac_objext \
5214 conftest$ac_exeext conftest.$ac_ext
5215 if test "$ac_cv_search_gethostbyname" = no; then
5216 for ac_lib in nsl; do
5217 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
5218 cat >conftest.$ac_ext <<_ACEOF
5221 cat confdefs.h >>conftest.$ac_ext
5222 cat >>conftest.$ac_ext <<_ACEOF
5223 /* end confdefs.h. */
5225 /* Override any gcc2 internal prototype to avoid an error. */
5229 /* We use char because int might match the return type of a gcc2
5230 builtin and then its argument prototype would still apply. */
5231 char gethostbyname ();
5240 rm -f conftest.$ac_objext conftest$ac_exeext
5241 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
5242 (eval $ac_link) 2>conftest.er1
5244 grep -v '^ *+' conftest.er1 >conftest.err
5246 cat conftest.err >&5
5247 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5248 (exit $ac_status); } &&
5249 { ac_try='test -z "$ac_c_werror_flag"
5250 || test ! -s conftest.err'
5251 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5254 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5255 (exit $ac_status); }; } &&
5256 { ac_try='test -s conftest$ac_exeext'
5257 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5260 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5261 (exit $ac_status); }; }; then
5262 ac_cv_search_gethostbyname="-l$ac_lib"
5265 echo "$as_me: failed program was:" >&5
5266 sed 's/^/| /' conftest.$ac_ext >&5
5269 rm -f conftest.err conftest.$ac_objext \
5270 conftest$ac_exeext conftest.$ac_ext
5273 LIBS=$ac_func_search_save_LIBS
5275 echo "$as_me:$LINENO: result: $ac_cv_search_gethostbyname" >&5
5276 echo "${ECHO_T}$ac_cv_search_gethostbyname" >&6
5277 if test "$ac_cv_search_gethostbyname" != no; then
5278 test "$ac_cv_search_gethostbyname" = "none required" || LIBS="$ac_cv_search_gethostbyname $LIBS"
5283 # Some systems (e.g. Solaris) have `socketpair' in libsocket.
5284 echo "$as_me:$LINENO: checking for library containing socketpair" >&5
5285 echo $ECHO_N "checking for library containing socketpair... $ECHO_C" >&6
5286 if test "${ac_cv_search_socketpair+set}" = set; then
5287 echo $ECHO_N "(cached) $ECHO_C" >&6
5289 ac_func_search_save_LIBS=$LIBS
5290 ac_cv_search_socketpair=no
5291 cat >conftest.$ac_ext <<_ACEOF
5294 cat confdefs.h >>conftest.$ac_ext
5295 cat >>conftest.$ac_ext <<_ACEOF
5296 /* end confdefs.h. */
5298 /* Override any gcc2 internal prototype to avoid an error. */
5302 /* We use char because int might match the return type of a gcc2
5303 builtin and then its argument prototype would still apply. */
5313 rm -f conftest.$ac_objext conftest$ac_exeext
5314 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
5315 (eval $ac_link) 2>conftest.er1
5317 grep -v '^ *+' conftest.er1 >conftest.err
5319 cat conftest.err >&5
5320 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5321 (exit $ac_status); } &&
5322 { ac_try='test -z "$ac_c_werror_flag"
5323 || test ! -s conftest.err'
5324 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5327 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5328 (exit $ac_status); }; } &&
5329 { ac_try='test -s conftest$ac_exeext'
5330 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5333 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5334 (exit $ac_status); }; }; then
5335 ac_cv_search_socketpair="none required"
5337 echo "$as_me: failed program was:" >&5
5338 sed 's/^/| /' conftest.$ac_ext >&5
5341 rm -f conftest.err conftest.$ac_objext \
5342 conftest$ac_exeext conftest.$ac_ext
5343 if test "$ac_cv_search_socketpair" = no; then
5344 for ac_lib in socket; do
5345 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
5346 cat >conftest.$ac_ext <<_ACEOF
5349 cat confdefs.h >>conftest.$ac_ext
5350 cat >>conftest.$ac_ext <<_ACEOF
5351 /* end confdefs.h. */
5353 /* Override any gcc2 internal prototype to avoid an error. */
5357 /* We use char because int might match the return type of a gcc2
5358 builtin and then its argument prototype would still apply. */
5368 rm -f conftest.$ac_objext conftest$ac_exeext
5369 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
5370 (eval $ac_link) 2>conftest.er1
5372 grep -v '^ *+' conftest.er1 >conftest.err
5374 cat conftest.err >&5
5375 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5376 (exit $ac_status); } &&
5377 { ac_try='test -z "$ac_c_werror_flag"
5378 || test ! -s conftest.err'
5379 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5382 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5383 (exit $ac_status); }; } &&
5384 { ac_try='test -s conftest$ac_exeext'
5385 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5388 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5389 (exit $ac_status); }; }; then
5390 ac_cv_search_socketpair="-l$ac_lib"
5393 echo "$as_me: failed program was:" >&5
5394 sed 's/^/| /' conftest.$ac_ext >&5
5397 rm -f conftest.err conftest.$ac_objext \
5398 conftest$ac_exeext conftest.$ac_ext
5401 LIBS=$ac_func_search_save_LIBS
5403 echo "$as_me:$LINENO: result: $ac_cv_search_socketpair" >&5
5404 echo "${ECHO_T}$ac_cv_search_socketpair" >&6
5405 if test "$ac_cv_search_socketpair" != no; then
5406 test "$ac_cv_search_socketpair" = "none required" || LIBS="$ac_cv_search_socketpair $LIBS"
5411 # For the TUI, we need enhanced curses functionality.
5413 # FIXME: kettenis/20040905: We prefer ncurses over the vendor-supplied
5414 # curses library because the latter might not provide all the
5415 # functionality we need. However, this leads to problems on systems
5416 # where the linker searches /usr/local/lib, but the compiler doesn't
5417 # search /usr/local/include, if ncurses is installed in /usr/local. A
5418 # default installation of ncurses on alpha*-dec-osf* will lead to such
5420 echo "$as_me:$LINENO: checking for library containing waddstr" >&5
5421 echo $ECHO_N "checking for library containing waddstr... $ECHO_C" >&6
5422 if test "${ac_cv_search_waddstr+set}" = set; then
5423 echo $ECHO_N "(cached) $ECHO_C" >&6
5425 ac_func_search_save_LIBS=$LIBS
5426 ac_cv_search_waddstr=no
5427 cat >conftest.$ac_ext <<_ACEOF
5430 cat confdefs.h >>conftest.$ac_ext
5431 cat >>conftest.$ac_ext <<_ACEOF
5432 /* end confdefs.h. */
5434 /* Override any gcc2 internal prototype to avoid an error. */
5438 /* We use char because int might match the return type of a gcc2
5439 builtin and then its argument prototype would still apply. */
5449 rm -f conftest.$ac_objext conftest$ac_exeext
5450 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
5451 (eval $ac_link) 2>conftest.er1
5453 grep -v '^ *+' conftest.er1 >conftest.err
5455 cat conftest.err >&5
5456 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5457 (exit $ac_status); } &&
5458 { ac_try='test -z "$ac_c_werror_flag"
5459 || test ! -s conftest.err'
5460 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5463 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5464 (exit $ac_status); }; } &&
5465 { ac_try='test -s conftest$ac_exeext'
5466 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5469 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5470 (exit $ac_status); }; }; then
5471 ac_cv_search_waddstr="none required"
5473 echo "$as_me: failed program was:" >&5
5474 sed 's/^/| /' conftest.$ac_ext >&5
5477 rm -f conftest.err conftest.$ac_objext \
5478 conftest$ac_exeext conftest.$ac_ext
5479 if test "$ac_cv_search_waddstr" = no; then
5480 for ac_lib in ncurses cursesX curses; do
5481 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
5482 cat >conftest.$ac_ext <<_ACEOF
5485 cat confdefs.h >>conftest.$ac_ext
5486 cat >>conftest.$ac_ext <<_ACEOF
5487 /* end confdefs.h. */
5489 /* Override any gcc2 internal prototype to avoid an error. */
5493 /* We use char because int might match the return type of a gcc2
5494 builtin and then its argument prototype would still apply. */
5504 rm -f conftest.$ac_objext conftest$ac_exeext
5505 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
5506 (eval $ac_link) 2>conftest.er1
5508 grep -v '^ *+' conftest.er1 >conftest.err
5510 cat conftest.err >&5
5511 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5512 (exit $ac_status); } &&
5513 { ac_try='test -z "$ac_c_werror_flag"
5514 || test ! -s conftest.err'
5515 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5518 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5519 (exit $ac_status); }; } &&
5520 { ac_try='test -s conftest$ac_exeext'
5521 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5524 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5525 (exit $ac_status); }; }; then
5526 ac_cv_search_waddstr="-l$ac_lib"
5529 echo "$as_me: failed program was:" >&5
5530 sed 's/^/| /' conftest.$ac_ext >&5
5533 rm -f conftest.err conftest.$ac_objext \
5534 conftest$ac_exeext conftest.$ac_ext
5537 LIBS=$ac_func_search_save_LIBS
5539 echo "$as_me:$LINENO: result: $ac_cv_search_waddstr" >&5
5540 echo "${ECHO_T}$ac_cv_search_waddstr" >&6
5541 if test "$ac_cv_search_waddstr" != no; then
5542 test "$ac_cv_search_waddstr" = "none required" || LIBS="$ac_cv_search_waddstr $LIBS"
5547 # Since GDB uses Readline, we need termcap functionality. In many
5548 # cases this will be provided by the curses library, but some systems
5549 # have a seperate termcap library, or no curses library at all.
5553 if test -d $srcdir/libtermcap; then
5554 LIBS="../libtermcap/libtermcap.a $LIBS"
5555 ac_cv_search_tgetent="../libtermcap/libtermcap.a"
5558 ac_cv_search_tgetent="none required"
5561 ac_cv_search_tgetent="none required"
5562 CONFIG_OBS="$CONFIG_OBS win32-termcap.o"
5566 # These are the libraries checked by Readline.
5567 echo "$as_me:$LINENO: checking for library containing tgetent" >&5
5568 echo $ECHO_N "checking for library containing tgetent... $ECHO_C" >&6
5569 if test "${ac_cv_search_tgetent+set}" = set; then
5570 echo $ECHO_N "(cached) $ECHO_C" >&6
5572 ac_func_search_save_LIBS=$LIBS
5573 ac_cv_search_tgetent=no
5574 cat >conftest.$ac_ext <<_ACEOF
5577 cat confdefs.h >>conftest.$ac_ext
5578 cat >>conftest.$ac_ext <<_ACEOF
5579 /* end confdefs.h. */
5581 /* Override any gcc2 internal prototype to avoid an error. */
5585 /* We use char because int might match the return type of a gcc2
5586 builtin and then its argument prototype would still apply. */
5596 rm -f conftest.$ac_objext conftest$ac_exeext
5597 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
5598 (eval $ac_link) 2>conftest.er1
5600 grep -v '^ *+' conftest.er1 >conftest.err
5602 cat conftest.err >&5
5603 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5604 (exit $ac_status); } &&
5605 { ac_try='test -z "$ac_c_werror_flag"
5606 || test ! -s conftest.err'
5607 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5610 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5611 (exit $ac_status); }; } &&
5612 { ac_try='test -s conftest$ac_exeext'
5613 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5616 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5617 (exit $ac_status); }; }; then
5618 ac_cv_search_tgetent="none required"
5620 echo "$as_me: failed program was:" >&5
5621 sed 's/^/| /' conftest.$ac_ext >&5
5624 rm -f conftest.err conftest.$ac_objext \
5625 conftest$ac_exeext conftest.$ac_ext
5626 if test "$ac_cv_search_tgetent" = no; then
5627 for ac_lib in termcap tinfo curses ncurses; do
5628 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
5629 cat >conftest.$ac_ext <<_ACEOF
5632 cat confdefs.h >>conftest.$ac_ext
5633 cat >>conftest.$ac_ext <<_ACEOF
5634 /* end confdefs.h. */
5636 /* Override any gcc2 internal prototype to avoid an error. */
5640 /* We use char because int might match the return type of a gcc2
5641 builtin and then its argument prototype would still apply. */
5651 rm -f conftest.$ac_objext conftest$ac_exeext
5652 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
5653 (eval $ac_link) 2>conftest.er1
5655 grep -v '^ *+' conftest.er1 >conftest.err
5657 cat conftest.err >&5
5658 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5659 (exit $ac_status); } &&
5660 { ac_try='test -z "$ac_c_werror_flag"
5661 || test ! -s conftest.err'
5662 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5665 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5666 (exit $ac_status); }; } &&
5667 { ac_try='test -s conftest$ac_exeext'
5668 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5671 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5672 (exit $ac_status); }; }; then
5673 ac_cv_search_tgetent="-l$ac_lib"
5676 echo "$as_me: failed program was:" >&5
5677 sed 's/^/| /' conftest.$ac_ext >&5
5680 rm -f conftest.err conftest.$ac_objext \
5681 conftest$ac_exeext conftest.$ac_ext
5684 LIBS=$ac_func_search_save_LIBS
5686 echo "$as_me:$LINENO: result: $ac_cv_search_tgetent" >&5
5687 echo "${ECHO_T}$ac_cv_search_tgetent" >&6
5688 if test "$ac_cv_search_tgetent" != no; then
5689 test "$ac_cv_search_tgetent" = "none required" || LIBS="$ac_cv_search_tgetent $LIBS"
5694 if test "$ac_cv_search_tgetent" = no; then
5695 { { echo "$as_me:$LINENO: error: no termcap library found" >&5
5696 echo "$as_me: error: no termcap library found" >&2;}
5697 { (exit 1); exit 1; }; }
5701 if test "X$prefix" = "XNONE"; then
5702 acl_final_prefix="$ac_default_prefix"
5704 acl_final_prefix="$prefix"
5706 if test "X$exec_prefix" = "XNONE"; then
5707 acl_final_exec_prefix='${prefix}'
5709 acl_final_exec_prefix="$exec_prefix"
5711 acl_save_prefix="$prefix"
5712 prefix="$acl_final_prefix"
5713 eval acl_final_exec_prefix=\"$acl_final_exec_prefix\"
5714 prefix="$acl_save_prefix"
5717 # Check whether --with-gnu-ld or --without-gnu-ld was given.
5718 if test "${with_gnu_ld+set}" = set; then
5719 withval="$with_gnu_ld"
5720 test "$withval" = no || with_gnu_ld=yes
5724 # Prepare PATH_SEPARATOR.
5725 # The user is always right.
5726 if test "${PATH_SEPARATOR+set}" != set; then
5727 echo "#! /bin/sh" >conf$$.sh
5728 echo "exit 0" >>conf$$.sh
5730 if (PATH="/nonexistent;."; conf$$.sh) >/dev/null 2>&1; then
5738 if test "$GCC" = yes; then
5739 # Check if gcc -print-prog-name=ld gives a path.
5740 echo "$as_me:$LINENO: checking for ld used by GCC" >&5
5741 echo $ECHO_N "checking for ld used by GCC... $ECHO_C" >&6
5744 # gcc leaves a trailing carriage return which upsets mingw
5745 ac_prog=`($CC -print-prog-name=ld) 2>&5 | tr -d '\015'` ;;
5747 ac_prog=`($CC -print-prog-name=ld) 2>&5` ;;
5750 # Accept absolute paths.
5751 [\\/]* | [A-Za-z]:[\\/]*)
5752 re_direlt='/[^/][^/]*/\.\./'
5753 # Canonicalize the path of ld
5754 ac_prog=`echo $ac_prog| sed 's%\\\\%/%g'`
5755 while echo $ac_prog | grep "$re_direlt" > /dev/null 2>&1; do
5756 ac_prog=`echo $ac_prog| sed "s%$re_direlt%/%"`
5758 test -z "$LD" && LD="$ac_prog"
5761 # If it fails, then pretend we aren't using GCC.
5765 # If it is relative, then search for the first ld in PATH.
5769 elif test "$with_gnu_ld" = yes; then
5770 echo "$as_me:$LINENO: checking for GNU ld" >&5
5771 echo $ECHO_N "checking for GNU ld... $ECHO_C" >&6
5773 echo "$as_me:$LINENO: checking for non-GNU ld" >&5
5774 echo $ECHO_N "checking for non-GNU ld... $ECHO_C" >&6
5776 if test "${acl_cv_path_LD+set}" = set; then
5777 echo $ECHO_N "(cached) $ECHO_C" >&6
5779 if test -z "$LD"; then
5780 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS="${IFS}${PATH_SEPARATOR-:}"
5781 for ac_dir in $PATH; do
5782 test -z "$ac_dir" && ac_dir=.
5783 if test -f "$ac_dir/$ac_prog" || test -f "$ac_dir/$ac_prog$ac_exeext"; then
5784 acl_cv_path_LD="$ac_dir/$ac_prog"
5785 # Check to see if the program is GNU ld. I'd rather use --version,
5786 # but apparently some GNU ld's only accept -v.
5787 # Break only if it was the GNU/non-GNU ld that we prefer.
5788 if "$acl_cv_path_LD" -v 2>&1 < /dev/null | egrep '(GNU|with BFD)' > /dev/null; then
5789 test "$with_gnu_ld" != no && break
5791 test "$with_gnu_ld" != yes && break
5797 acl_cv_path_LD="$LD" # Let the user override the test with a path.
5801 LD="$acl_cv_path_LD"
5802 if test -n "$LD"; then
5803 echo "$as_me:$LINENO: result: $LD" >&5
5804 echo "${ECHO_T}$LD" >&6
5806 echo "$as_me:$LINENO: result: no" >&5
5807 echo "${ECHO_T}no" >&6
5809 test -z "$LD" && { { echo "$as_me:$LINENO: error: no acceptable ld found in \$PATH" >&5
5810 echo "$as_me: error: no acceptable ld found in \$PATH" >&2;}
5811 { (exit 1); exit 1; }; }
5812 echo "$as_me:$LINENO: checking if the linker ($LD) is GNU ld" >&5
5813 echo $ECHO_N "checking if the linker ($LD) is GNU ld... $ECHO_C" >&6
5814 if test "${acl_cv_prog_gnu_ld+set}" = set; then
5815 echo $ECHO_N "(cached) $ECHO_C" >&6
5817 # I'd rather use --version here, but apparently some GNU ld's only accept -v.
5818 if $LD -v 2>&1 </dev/null | egrep '(GNU|with BFD)' 1>&5; then
5819 acl_cv_prog_gnu_ld=yes
5821 acl_cv_prog_gnu_ld=no
5824 echo "$as_me:$LINENO: result: $acl_cv_prog_gnu_ld" >&5
5825 echo "${ECHO_T}$acl_cv_prog_gnu_ld" >&6
5826 with_gnu_ld=$acl_cv_prog_gnu_ld
5830 echo "$as_me:$LINENO: checking for shared library run path origin" >&5
5831 echo $ECHO_N "checking for shared library run path origin... $ECHO_C" >&6
5832 if test "${acl_cv_rpath+set}" = set; then
5833 echo $ECHO_N "(cached) $ECHO_C" >&6
5836 CC="$CC" GCC="$GCC" LDFLAGS="$LDFLAGS" LD="$LD" with_gnu_ld="$with_gnu_ld" \
5837 ${CONFIG_SHELL-/bin/sh} "$ac_aux_dir/config.rpath" "$host" > conftest.sh
5843 echo "$as_me:$LINENO: result: $acl_cv_rpath" >&5
5844 echo "${ECHO_T}$acl_cv_rpath" >&6
5846 libext="$acl_cv_libext"
5847 shlibext="$acl_cv_shlibext"
5848 hardcode_libdir_flag_spec="$acl_cv_hardcode_libdir_flag_spec"
5849 hardcode_libdir_separator="$acl_cv_hardcode_libdir_separator"
5850 hardcode_direct="$acl_cv_hardcode_direct"
5851 hardcode_minus_L="$acl_cv_hardcode_minus_L"
5852 # Check whether --enable-rpath or --disable-rpath was given.
5853 if test "${enable_rpath+set}" = set; then
5854 enableval="$enable_rpath"
5870 acl_save_prefix="$prefix"
5871 prefix="$acl_final_prefix"
5872 acl_save_exec_prefix="$exec_prefix"
5873 exec_prefix="$acl_final_exec_prefix"
5875 eval additional_includedir=\"$includedir\"
5876 eval additional_libdir=\"$libdir\"
5878 exec_prefix="$acl_save_exec_prefix"
5879 prefix="$acl_save_prefix"
5882 # Check whether --with-libexpat-prefix or --without-libexpat-prefix was given.
5883 if test "${with_libexpat_prefix+set}" = set; then
5884 withval="$with_libexpat_prefix"
5886 if test "X$withval" = "Xno"; then
5889 if test "X$withval" = "X"; then
5891 acl_save_prefix="$prefix"
5892 prefix="$acl_final_prefix"
5893 acl_save_exec_prefix="$exec_prefix"
5894 exec_prefix="$acl_final_exec_prefix"
5896 eval additional_includedir=\"$includedir\"
5897 eval additional_libdir=\"$libdir\"
5899 exec_prefix="$acl_save_exec_prefix"
5900 prefix="$acl_save_prefix"
5903 additional_includedir="$withval/include"
5904 additional_libdir="$withval/lib"
5914 names_already_handled=
5915 names_next_round='expat '
5916 while test -n "$names_next_round"; do
5917 names_this_round="$names_next_round"
5919 for name in $names_this_round; do
5921 for n in $names_already_handled; do
5922 if test "$n" = "$name"; then
5927 if test -z "$already_handled"; then
5928 names_already_handled="$names_already_handled $name"
5929 uppername=`echo "$name" | sed -e 'y|abcdefghijklmnopqrstuvwxyz./-|ABCDEFGHIJKLMNOPQRSTUVWXYZ___|'`
5930 eval value=\"\$HAVE_LIB$uppername\"
5931 if test -n "$value"; then
5932 if test "$value" = yes; then
5933 eval value=\"\$LIB$uppername\"
5934 test -z "$value" || LIBEXPAT="${LIBEXPAT}${LIBEXPAT:+ }$value"
5935 eval value=\"\$LTLIB$uppername\"
5936 test -z "$value" || LTLIBEXPAT="${LTLIBEXPAT}${LTLIBEXPAT:+ }$value"
5945 if test $use_additional = yes; then
5946 if test -n "$shlibext" && test -f "$additional_libdir/lib$name.$shlibext"; then
5947 found_dir="$additional_libdir"
5948 found_so="$additional_libdir/lib$name.$shlibext"
5949 if test -f "$additional_libdir/lib$name.la"; then
5950 found_la="$additional_libdir/lib$name.la"
5953 if test -f "$additional_libdir/lib$name.$libext"; then
5954 found_dir="$additional_libdir"
5955 found_a="$additional_libdir/lib$name.$libext"
5956 if test -f "$additional_libdir/lib$name.la"; then
5957 found_la="$additional_libdir/lib$name.la"
5962 if test "X$found_dir" = "X"; then
5963 for x in $LDFLAGS $LTLIBEXPAT; do
5965 acl_save_prefix="$prefix"
5966 prefix="$acl_final_prefix"
5967 acl_save_exec_prefix="$exec_prefix"
5968 exec_prefix="$acl_final_exec_prefix"
5970 exec_prefix="$acl_save_exec_prefix"
5971 prefix="$acl_save_prefix"
5975 dir=`echo "X$x" | sed -e 's/^X-L//'`
5976 if test -n "$shlibext" && test -f "$dir/lib$name.$shlibext"; then
5978 found_so="$dir/lib$name.$shlibext"
5979 if test -f "$dir/lib$name.la"; then
5980 found_la="$dir/lib$name.la"
5983 if test -f "$dir/lib$name.$libext"; then
5985 found_a="$dir/lib$name.$libext"
5986 if test -f "$dir/lib$name.la"; then
5987 found_la="$dir/lib$name.la"
5993 if test "X$found_dir" != "X"; then
5998 if test "X$found_dir" != "X"; then
5999 LTLIBEXPAT="${LTLIBEXPAT}${LTLIBEXPAT:+ }-L$found_dir -l$name"
6000 if test "X$found_so" != "X"; then
6001 if test "$enable_rpath" = no || test "X$found_dir" = "X/usr/lib"; then
6002 LIBEXPAT="${LIBEXPAT}${LIBEXPAT:+ }$found_so"
6005 for x in $ltrpathdirs; do
6006 if test "X$x" = "X$found_dir"; then
6011 if test -z "$haveit"; then
6012 ltrpathdirs="$ltrpathdirs $found_dir"
6014 if test "$hardcode_direct" = yes; then
6015 LIBEXPAT="${LIBEXPAT}${LIBEXPAT:+ }$found_so"
6017 if test -n "$hardcode_libdir_flag_spec" && test "$hardcode_minus_L" = no; then
6018 LIBEXPAT="${LIBEXPAT}${LIBEXPAT:+ }$found_so"
6020 for x in $rpathdirs; do
6021 if test "X$x" = "X$found_dir"; then
6026 if test -z "$haveit"; then
6027 rpathdirs="$rpathdirs $found_dir"
6031 for x in $LDFLAGS $LIBEXPAT; do
6033 acl_save_prefix="$prefix"
6034 prefix="$acl_final_prefix"
6035 acl_save_exec_prefix="$exec_prefix"
6036 exec_prefix="$acl_final_exec_prefix"
6038 exec_prefix="$acl_save_exec_prefix"
6039 prefix="$acl_save_prefix"
6041 if test "X$x" = "X-L$found_dir"; then
6046 if test -z "$haveit"; then
6047 LIBEXPAT="${LIBEXPAT}${LIBEXPAT:+ }-L$found_dir"
6049 if test "$hardcode_minus_L" != no; then
6050 LIBEXPAT="${LIBEXPAT}${LIBEXPAT:+ }$found_so"
6052 LIBEXPAT="${LIBEXPAT}${LIBEXPAT:+ }-l$name"
6058 if test "X$found_a" != "X"; then
6059 LIBEXPAT="${LIBEXPAT}${LIBEXPAT:+ }$found_a"
6061 LIBEXPAT="${LIBEXPAT}${LIBEXPAT:+ }-L$found_dir -l$name"
6064 additional_includedir=
6065 case "$found_dir" in
6067 basedir=`echo "X$found_dir" | sed -e 's,^X,,' -e 's,/lib/*$,,'`
6068 additional_includedir="$basedir/include"
6071 if test "X$additional_includedir" != "X"; then
6072 if test "X$additional_includedir" != "X/usr/include"; then
6074 if test "X$additional_includedir" = "X/usr/local/include"; then
6075 if test -n "$GCC"; then
6077 linux*) haveit=yes;;
6081 if test -z "$haveit"; then
6082 for x in $CPPFLAGS $INCEXPAT; do
6084 acl_save_prefix="$prefix"
6085 prefix="$acl_final_prefix"
6086 acl_save_exec_prefix="$exec_prefix"
6087 exec_prefix="$acl_final_exec_prefix"
6089 exec_prefix="$acl_save_exec_prefix"
6090 prefix="$acl_save_prefix"
6092 if test "X$x" = "X-I$additional_includedir"; then
6097 if test -z "$haveit"; then
6098 if test -d "$additional_includedir"; then
6099 INCEXPAT="${INCEXPAT}${INCEXPAT:+ }-I$additional_includedir"
6105 if test -n "$found_la"; then
6106 save_libdir="$libdir"
6108 */* | *\\*) . "$found_la" ;;
6109 *) . "./$found_la" ;;
6111 libdir="$save_libdir"
6112 for dep in $dependency_libs; do
6115 additional_libdir=`echo "X$dep" | sed -e 's/^X-L//'`
6116 if test "X$additional_libdir" != "X/usr/lib"; then
6118 if test "X$additional_libdir" = "X/usr/local/lib"; then
6119 if test -n "$GCC"; then
6121 linux*) haveit=yes;;
6125 if test -z "$haveit"; then
6127 for x in $LDFLAGS $LIBEXPAT; do
6129 acl_save_prefix="$prefix"
6130 prefix="$acl_final_prefix"
6131 acl_save_exec_prefix="$exec_prefix"
6132 exec_prefix="$acl_final_exec_prefix"
6134 exec_prefix="$acl_save_exec_prefix"
6135 prefix="$acl_save_prefix"
6137 if test "X$x" = "X-L$additional_libdir"; then
6142 if test -z "$haveit"; then
6143 if test -d "$additional_libdir"; then
6144 LIBEXPAT="${LIBEXPAT}${LIBEXPAT:+ }-L$additional_libdir"
6148 for x in $LDFLAGS $LTLIBEXPAT; do
6150 acl_save_prefix="$prefix"
6151 prefix="$acl_final_prefix"
6152 acl_save_exec_prefix="$exec_prefix"
6153 exec_prefix="$acl_final_exec_prefix"
6155 exec_prefix="$acl_save_exec_prefix"
6156 prefix="$acl_save_prefix"
6158 if test "X$x" = "X-L$additional_libdir"; then
6163 if test -z "$haveit"; then
6164 if test -d "$additional_libdir"; then
6165 LTLIBEXPAT="${LTLIBEXPAT}${LTLIBEXPAT:+ }-L$additional_libdir"
6172 dir=`echo "X$dep" | sed -e 's/^X-R//'`
6173 if test "$enable_rpath" != no; then
6175 for x in $rpathdirs; do
6176 if test "X$x" = "X$dir"; then
6181 if test -z "$haveit"; then
6182 rpathdirs="$rpathdirs $dir"
6185 for x in $ltrpathdirs; do
6186 if test "X$x" = "X$dir"; then
6191 if test -z "$haveit"; then
6192 ltrpathdirs="$ltrpathdirs $dir"
6197 names_next_round="$names_next_round "`echo "X$dep" | sed -e 's/^X-l//'`
6200 names_next_round="$names_next_round "`echo "X$dep" | sed -e 's,^X.*/,,' -e 's,^lib,,' -e 's,\.la$,,'`
6203 LIBEXPAT="${LIBEXPAT}${LIBEXPAT:+ }$dep"
6204 LTLIBEXPAT="${LTLIBEXPAT}${LTLIBEXPAT:+ }$dep"
6210 LIBEXPAT="${LIBEXPAT}${LIBEXPAT:+ }-l$name"
6211 LTLIBEXPAT="${LTLIBEXPAT}${LTLIBEXPAT:+ }-l$name"
6217 if test "X$rpathdirs" != "X"; then
6218 if test -n "$hardcode_libdir_separator"; then
6220 for found_dir in $rpathdirs; do
6221 alldirs="${alldirs}${alldirs:+$hardcode_libdir_separator}$found_dir"
6223 acl_save_libdir="$libdir"
6225 eval flag=\"$hardcode_libdir_flag_spec\"
6226 libdir="$acl_save_libdir"
6227 LIBEXPAT="${LIBEXPAT}${LIBEXPAT:+ }$flag"
6229 for found_dir in $rpathdirs; do
6230 acl_save_libdir="$libdir"
6232 eval flag=\"$hardcode_libdir_flag_spec\"
6233 libdir="$acl_save_libdir"
6234 LIBEXPAT="${LIBEXPAT}${LIBEXPAT:+ }$flag"
6238 if test "X$ltrpathdirs" != "X"; then
6239 for found_dir in $ltrpathdirs; do
6240 LTLIBEXPAT="${LTLIBEXPAT}${LTLIBEXPAT:+ }-R$found_dir"
6245 ac_save_CPPFLAGS="$CPPFLAGS"
6247 for element in $INCEXPAT; do
6249 for x in $CPPFLAGS; do
6251 acl_save_prefix="$prefix"
6252 prefix="$acl_final_prefix"
6253 acl_save_exec_prefix="$exec_prefix"
6254 exec_prefix="$acl_final_exec_prefix"
6256 exec_prefix="$acl_save_exec_prefix"
6257 prefix="$acl_save_prefix"
6259 if test "X$x" = "X$element"; then
6264 if test -z "$haveit"; then
6265 CPPFLAGS="${CPPFLAGS}${CPPFLAGS:+ }$element"
6270 echo "$as_me:$LINENO: checking for libexpat" >&5
6271 echo $ECHO_N "checking for libexpat... $ECHO_C" >&6
6272 if test "${ac_cv_libexpat+set}" = set; then
6273 echo $ECHO_N "(cached) $ECHO_C" >&6
6276 ac_save_LIBS="$LIBS"
6277 LIBS="$LIBS $LIBEXPAT"
6278 cat >conftest.$ac_ext <<_ACEOF
6281 cat confdefs.h >>conftest.$ac_ext
6282 cat >>conftest.$ac_ext <<_ACEOF
6283 /* end confdefs.h. */
6288 XML_Parser p = XML_ParserCreate (0);
6293 rm -f conftest.$ac_objext conftest$ac_exeext
6294 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
6295 (eval $ac_link) 2>conftest.er1
6297 grep -v '^ *+' conftest.er1 >conftest.err
6299 cat conftest.err >&5
6300 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6301 (exit $ac_status); } &&
6302 { ac_try='test -z "$ac_c_werror_flag"
6303 || test ! -s conftest.err'
6304 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6307 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6308 (exit $ac_status); }; } &&
6309 { ac_try='test -s conftest$ac_exeext'
6310 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6313 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6314 (exit $ac_status); }; }; then
6317 echo "$as_me: failed program was:" >&5
6318 sed 's/^/| /' conftest.$ac_ext >&5
6322 rm -f conftest.err conftest.$ac_objext \
6323 conftest$ac_exeext conftest.$ac_ext
6324 LIBS="$ac_save_LIBS"
6327 echo "$as_me:$LINENO: result: $ac_cv_libexpat" >&5
6328 echo "${ECHO_T}$ac_cv_libexpat" >&6
6329 if test "$ac_cv_libexpat" = yes; then
6332 cat >>confdefs.h <<\_ACEOF
6333 #define HAVE_LIBEXPAT 1
6336 echo "$as_me:$LINENO: checking how to link with libexpat" >&5
6337 echo $ECHO_N "checking how to link with libexpat... $ECHO_C" >&6
6338 echo "$as_me:$LINENO: result: $LIBEXPAT" >&5
6339 echo "${ECHO_T}$LIBEXPAT" >&6
6342 CPPFLAGS="$ac_save_CPPFLAGS"
6352 if test "$HAVE_LIBEXPAT" != yes; then
6353 { echo "$as_me:$LINENO: WARNING: expat is missing or unusable; some features may be disabled." >&5
6354 echo "$as_me: WARNING: expat is missing or unusable; some features may be disabled." >&2;}
6357 LIBS="$LIBS $LIBEXPAT"
6359 for ac_func in XML_StopParser
6361 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
6362 echo "$as_me:$LINENO: checking for $ac_func" >&5
6363 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
6364 if eval "test \"\${$as_ac_var+set}\" = set"; then
6365 echo $ECHO_N "(cached) $ECHO_C" >&6
6367 cat >conftest.$ac_ext <<_ACEOF
6370 cat confdefs.h >>conftest.$ac_ext
6371 cat >>conftest.$ac_ext <<_ACEOF
6372 /* end confdefs.h. */
6373 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
6374 For example, HP-UX 11i <limits.h> declares gettimeofday. */
6375 #define $ac_func innocuous_$ac_func
6377 /* System header to define __stub macros and hopefully few prototypes,
6378 which can conflict with char $ac_func (); below.
6379 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
6380 <limits.h> exists even on freestanding compilers. */
6383 # include <limits.h>
6385 # include <assert.h>
6390 /* Override any gcc2 internal prototype to avoid an error. */
6395 /* We use char because int might match the return type of a gcc2
6396 builtin and then its argument prototype would still apply. */
6398 /* The GNU C library defines this for functions which it implements
6399 to always fail with ENOSYS. Some functions are actually named
6400 something starting with __ and the normal name is an alias. */
6401 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
6404 char (*f) () = $ac_func;
6413 return f != $ac_func;
6418 rm -f conftest.$ac_objext conftest$ac_exeext
6419 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
6420 (eval $ac_link) 2>conftest.er1
6422 grep -v '^ *+' conftest.er1 >conftest.err
6424 cat conftest.err >&5
6425 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6426 (exit $ac_status); } &&
6427 { ac_try='test -z "$ac_c_werror_flag"
6428 || test ! -s conftest.err'
6429 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6432 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6433 (exit $ac_status); }; } &&
6434 { ac_try='test -s conftest$ac_exeext'
6435 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6438 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6439 (exit $ac_status); }; }; then
6440 eval "$as_ac_var=yes"
6442 echo "$as_me: failed program was:" >&5
6443 sed 's/^/| /' conftest.$ac_ext >&5
6445 eval "$as_ac_var=no"
6447 rm -f conftest.err conftest.$ac_objext \
6448 conftest$ac_exeext conftest.$ac_ext
6450 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
6451 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
6452 if test `eval echo '${'$as_ac_var'}'` = yes; then
6453 cat >>confdefs.h <<_ACEOF
6454 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
6463 # ------------------------- #
6464 # Checks for header files. #
6465 # ------------------------- #
6473 for ac_hdr in dirent.h sys/ndir.h sys/dir.h ndir.h; do
6474 as_ac_Header=`echo "ac_cv_header_dirent_$ac_hdr" | $as_tr_sh`
6475 echo "$as_me:$LINENO: checking for $ac_hdr that defines DIR" >&5
6476 echo $ECHO_N "checking for $ac_hdr that defines DIR... $ECHO_C" >&6
6477 if eval "test \"\${$as_ac_Header+set}\" = set"; then
6478 echo $ECHO_N "(cached) $ECHO_C" >&6
6480 cat >conftest.$ac_ext <<_ACEOF
6483 cat confdefs.h >>conftest.$ac_ext
6484 cat >>conftest.$ac_ext <<_ACEOF
6485 /* end confdefs.h. */
6486 #include <sys/types.h>
6498 rm -f conftest.$ac_objext
6499 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
6500 (eval $ac_compile) 2>conftest.er1
6502 grep -v '^ *+' conftest.er1 >conftest.err
6504 cat conftest.err >&5
6505 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6506 (exit $ac_status); } &&
6507 { ac_try='test -z "$ac_c_werror_flag"
6508 || test ! -s conftest.err'
6509 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6512 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6513 (exit $ac_status); }; } &&
6514 { ac_try='test -s conftest.$ac_objext'
6515 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6518 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6519 (exit $ac_status); }; }; then
6520 eval "$as_ac_Header=yes"
6522 echo "$as_me: failed program was:" >&5
6523 sed 's/^/| /' conftest.$ac_ext >&5
6525 eval "$as_ac_Header=no"
6527 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
6529 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
6530 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
6531 if test `eval echo '${'$as_ac_Header'}'` = yes; then
6532 cat >>confdefs.h <<_ACEOF
6533 #define `echo "HAVE_$ac_hdr" | $as_tr_cpp` 1
6536 ac_header_dirent=$ac_hdr; break
6540 # Two versions of opendir et al. are in -ldir and -lx on SCO Xenix.
6541 if test $ac_header_dirent = dirent.h; then
6542 echo "$as_me:$LINENO: checking for library containing opendir" >&5
6543 echo $ECHO_N "checking for library containing opendir... $ECHO_C" >&6
6544 if test "${ac_cv_search_opendir+set}" = set; then
6545 echo $ECHO_N "(cached) $ECHO_C" >&6
6547 ac_func_search_save_LIBS=$LIBS
6548 ac_cv_search_opendir=no
6549 cat >conftest.$ac_ext <<_ACEOF
6552 cat confdefs.h >>conftest.$ac_ext
6553 cat >>conftest.$ac_ext <<_ACEOF
6554 /* end confdefs.h. */
6556 /* Override any gcc2 internal prototype to avoid an error. */
6560 /* We use char because int might match the return type of a gcc2
6561 builtin and then its argument prototype would still apply. */
6571 rm -f conftest.$ac_objext conftest$ac_exeext
6572 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
6573 (eval $ac_link) 2>conftest.er1
6575 grep -v '^ *+' conftest.er1 >conftest.err
6577 cat conftest.err >&5
6578 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6579 (exit $ac_status); } &&
6580 { ac_try='test -z "$ac_c_werror_flag"
6581 || test ! -s conftest.err'
6582 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6585 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6586 (exit $ac_status); }; } &&
6587 { ac_try='test -s conftest$ac_exeext'
6588 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6591 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6592 (exit $ac_status); }; }; then
6593 ac_cv_search_opendir="none required"
6595 echo "$as_me: failed program was:" >&5
6596 sed 's/^/| /' conftest.$ac_ext >&5
6599 rm -f conftest.err conftest.$ac_objext \
6600 conftest$ac_exeext conftest.$ac_ext
6601 if test "$ac_cv_search_opendir" = no; then
6602 for ac_lib in dir; do
6603 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
6604 cat >conftest.$ac_ext <<_ACEOF
6607 cat confdefs.h >>conftest.$ac_ext
6608 cat >>conftest.$ac_ext <<_ACEOF
6609 /* end confdefs.h. */
6611 /* Override any gcc2 internal prototype to avoid an error. */
6615 /* We use char because int might match the return type of a gcc2
6616 builtin and then its argument prototype would still apply. */
6626 rm -f conftest.$ac_objext conftest$ac_exeext
6627 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
6628 (eval $ac_link) 2>conftest.er1
6630 grep -v '^ *+' conftest.er1 >conftest.err
6632 cat conftest.err >&5
6633 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6634 (exit $ac_status); } &&
6635 { ac_try='test -z "$ac_c_werror_flag"
6636 || test ! -s conftest.err'
6637 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6640 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6641 (exit $ac_status); }; } &&
6642 { ac_try='test -s conftest$ac_exeext'
6643 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6646 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6647 (exit $ac_status); }; }; then
6648 ac_cv_search_opendir="-l$ac_lib"
6651 echo "$as_me: failed program was:" >&5
6652 sed 's/^/| /' conftest.$ac_ext >&5
6655 rm -f conftest.err conftest.$ac_objext \
6656 conftest$ac_exeext conftest.$ac_ext
6659 LIBS=$ac_func_search_save_LIBS
6661 echo "$as_me:$LINENO: result: $ac_cv_search_opendir" >&5
6662 echo "${ECHO_T}$ac_cv_search_opendir" >&6
6663 if test "$ac_cv_search_opendir" != no; then
6664 test "$ac_cv_search_opendir" = "none required" || LIBS="$ac_cv_search_opendir $LIBS"
6669 echo "$as_me:$LINENO: checking for library containing opendir" >&5
6670 echo $ECHO_N "checking for library containing opendir... $ECHO_C" >&6
6671 if test "${ac_cv_search_opendir+set}" = set; then
6672 echo $ECHO_N "(cached) $ECHO_C" >&6
6674 ac_func_search_save_LIBS=$LIBS
6675 ac_cv_search_opendir=no
6676 cat >conftest.$ac_ext <<_ACEOF
6679 cat confdefs.h >>conftest.$ac_ext
6680 cat >>conftest.$ac_ext <<_ACEOF
6681 /* end confdefs.h. */
6683 /* Override any gcc2 internal prototype to avoid an error. */
6687 /* We use char because int might match the return type of a gcc2
6688 builtin and then its argument prototype would still apply. */
6698 rm -f conftest.$ac_objext conftest$ac_exeext
6699 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
6700 (eval $ac_link) 2>conftest.er1
6702 grep -v '^ *+' conftest.er1 >conftest.err
6704 cat conftest.err >&5
6705 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6706 (exit $ac_status); } &&
6707 { ac_try='test -z "$ac_c_werror_flag"
6708 || test ! -s conftest.err'
6709 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6712 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6713 (exit $ac_status); }; } &&
6714 { ac_try='test -s conftest$ac_exeext'
6715 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6718 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6719 (exit $ac_status); }; }; then
6720 ac_cv_search_opendir="none required"
6722 echo "$as_me: failed program was:" >&5
6723 sed 's/^/| /' conftest.$ac_ext >&5
6726 rm -f conftest.err conftest.$ac_objext \
6727 conftest$ac_exeext conftest.$ac_ext
6728 if test "$ac_cv_search_opendir" = no; then
6730 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
6731 cat >conftest.$ac_ext <<_ACEOF
6734 cat confdefs.h >>conftest.$ac_ext
6735 cat >>conftest.$ac_ext <<_ACEOF
6736 /* end confdefs.h. */
6738 /* Override any gcc2 internal prototype to avoid an error. */
6742 /* We use char because int might match the return type of a gcc2
6743 builtin and then its argument prototype would still apply. */
6753 rm -f conftest.$ac_objext conftest$ac_exeext
6754 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
6755 (eval $ac_link) 2>conftest.er1
6757 grep -v '^ *+' conftest.er1 >conftest.err
6759 cat conftest.err >&5
6760 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6761 (exit $ac_status); } &&
6762 { ac_try='test -z "$ac_c_werror_flag"
6763 || test ! -s conftest.err'
6764 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6767 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6768 (exit $ac_status); }; } &&
6769 { ac_try='test -s conftest$ac_exeext'
6770 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6773 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6774 (exit $ac_status); }; }; then
6775 ac_cv_search_opendir="-l$ac_lib"
6778 echo "$as_me: failed program was:" >&5
6779 sed 's/^/| /' conftest.$ac_ext >&5
6782 rm -f conftest.err conftest.$ac_objext \
6783 conftest$ac_exeext conftest.$ac_ext
6786 LIBS=$ac_func_search_save_LIBS
6788 echo "$as_me:$LINENO: result: $ac_cv_search_opendir" >&5
6789 echo "${ECHO_T}$ac_cv_search_opendir" >&6
6790 if test "$ac_cv_search_opendir" != no; then
6791 test "$ac_cv_search_opendir" = "none required" || LIBS="$ac_cv_search_opendir $LIBS"
6797 echo "$as_me:$LINENO: checking whether stat file-mode macros are broken" >&5
6798 echo $ECHO_N "checking whether stat file-mode macros are broken... $ECHO_C" >&6
6799 if test "${ac_cv_header_stat_broken+set}" = set; then
6800 echo $ECHO_N "(cached) $ECHO_C" >&6
6802 cat >conftest.$ac_ext <<_ACEOF
6805 cat confdefs.h >>conftest.$ac_ext
6806 cat >>conftest.$ac_ext <<_ACEOF
6807 /* end confdefs.h. */
6808 #include <sys/types.h>
6809 #include <sys/stat.h>
6811 #if defined(S_ISBLK) && defined(S_IFDIR)
6812 # if S_ISBLK (S_IFDIR)
6817 #if defined(S_ISBLK) && defined(S_IFCHR)
6818 # if S_ISBLK (S_IFCHR)
6823 #if defined(S_ISLNK) && defined(S_IFREG)
6824 # if S_ISLNK (S_IFREG)
6829 #if defined(S_ISSOCK) && defined(S_IFREG)
6830 # if S_ISSOCK (S_IFREG)
6836 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
6837 $EGREP "You lose" >/dev/null 2>&1; then
6838 ac_cv_header_stat_broken=yes
6840 ac_cv_header_stat_broken=no
6845 echo "$as_me:$LINENO: result: $ac_cv_header_stat_broken" >&5
6846 echo "${ECHO_T}$ac_cv_header_stat_broken" >&6
6847 if test $ac_cv_header_stat_broken = yes; then
6849 cat >>confdefs.h <<\_ACEOF
6850 #define STAT_MACROS_BROKEN 1
6855 echo "$as_me:$LINENO: checking for ANSI C header files" >&5
6856 echo $ECHO_N "checking for ANSI C header files... $ECHO_C" >&6
6857 if test "${ac_cv_header_stdc+set}" = set; then
6858 echo $ECHO_N "(cached) $ECHO_C" >&6
6860 cat >conftest.$ac_ext <<_ACEOF
6863 cat confdefs.h >>conftest.$ac_ext
6864 cat >>conftest.$ac_ext <<_ACEOF
6865 /* end confdefs.h. */
6879 rm -f conftest.$ac_objext
6880 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
6881 (eval $ac_compile) 2>conftest.er1
6883 grep -v '^ *+' conftest.er1 >conftest.err
6885 cat conftest.err >&5
6886 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6887 (exit $ac_status); } &&
6888 { ac_try='test -z "$ac_c_werror_flag"
6889 || test ! -s conftest.err'
6890 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6893 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6894 (exit $ac_status); }; } &&
6895 { ac_try='test -s conftest.$ac_objext'
6896 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6899 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6900 (exit $ac_status); }; }; then
6901 ac_cv_header_stdc=yes
6903 echo "$as_me: failed program was:" >&5
6904 sed 's/^/| /' conftest.$ac_ext >&5
6906 ac_cv_header_stdc=no
6908 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
6910 if test $ac_cv_header_stdc = yes; then
6911 # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
6912 cat >conftest.$ac_ext <<_ACEOF
6915 cat confdefs.h >>conftest.$ac_ext
6916 cat >>conftest.$ac_ext <<_ACEOF
6917 /* end confdefs.h. */
6921 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
6922 $EGREP "memchr" >/dev/null 2>&1; then
6925 ac_cv_header_stdc=no
6931 if test $ac_cv_header_stdc = yes; then
6932 # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
6933 cat >conftest.$ac_ext <<_ACEOF
6936 cat confdefs.h >>conftest.$ac_ext
6937 cat >>conftest.$ac_ext <<_ACEOF
6938 /* end confdefs.h. */
6942 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
6943 $EGREP "free" >/dev/null 2>&1; then
6946 ac_cv_header_stdc=no
6952 if test $ac_cv_header_stdc = yes; then
6953 # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
6954 if test "$cross_compiling" = yes; then
6957 cat >conftest.$ac_ext <<_ACEOF
6960 cat confdefs.h >>conftest.$ac_ext
6961 cat >>conftest.$ac_ext <<_ACEOF
6962 /* end confdefs.h. */
6964 #if ((' ' & 0x0FF) == 0x020)
6965 # define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
6966 # define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
6968 # define ISLOWER(c) \
6969 (('a' <= (c) && (c) <= 'i') \
6970 || ('j' <= (c) && (c) <= 'r') \
6971 || ('s' <= (c) && (c) <= 'z'))
6972 # define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
6975 #define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
6980 for (i = 0; i < 256; i++)
6981 if (XOR (islower (i), ISLOWER (i))
6982 || toupper (i) != TOUPPER (i))
6987 rm -f conftest$ac_exeext
6988 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
6989 (eval $ac_link) 2>&5
6991 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6992 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
6993 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6996 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6997 (exit $ac_status); }; }; then
7000 echo "$as_me: program exited with status $ac_status" >&5
7001 echo "$as_me: failed program was:" >&5
7002 sed 's/^/| /' conftest.$ac_ext >&5
7005 ac_cv_header_stdc=no
7007 rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
7011 echo "$as_me:$LINENO: result: $ac_cv_header_stdc" >&5
7012 echo "${ECHO_T}$ac_cv_header_stdc" >&6
7013 if test $ac_cv_header_stdc = yes; then
7015 cat >>confdefs.h <<\_ACEOF
7016 #define STDC_HEADERS 1
7022 for ac_header in nlist.h
7024 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
7025 if eval "test \"\${$as_ac_Header+set}\" = set"; then
7026 echo "$as_me:$LINENO: checking for $ac_header" >&5
7027 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
7028 if eval "test \"\${$as_ac_Header+set}\" = set"; then
7029 echo $ECHO_N "(cached) $ECHO_C" >&6
7031 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
7032 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
7034 # Is the header compilable?
7035 echo "$as_me:$LINENO: checking $ac_header usability" >&5
7036 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
7037 cat >conftest.$ac_ext <<_ACEOF
7040 cat confdefs.h >>conftest.$ac_ext
7041 cat >>conftest.$ac_ext <<_ACEOF
7042 /* end confdefs.h. */
7043 $ac_includes_default
7044 #include <$ac_header>
7046 rm -f conftest.$ac_objext
7047 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
7048 (eval $ac_compile) 2>conftest.er1
7050 grep -v '^ *+' conftest.er1 >conftest.err
7052 cat conftest.err >&5
7053 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7054 (exit $ac_status); } &&
7055 { ac_try='test -z "$ac_c_werror_flag"
7056 || test ! -s conftest.err'
7057 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7060 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7061 (exit $ac_status); }; } &&
7062 { ac_try='test -s conftest.$ac_objext'
7063 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7066 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7067 (exit $ac_status); }; }; then
7068 ac_header_compiler=yes
7070 echo "$as_me: failed program was:" >&5
7071 sed 's/^/| /' conftest.$ac_ext >&5
7073 ac_header_compiler=no
7075 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
7076 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
7077 echo "${ECHO_T}$ac_header_compiler" >&6
7079 # Is the header present?
7080 echo "$as_me:$LINENO: checking $ac_header presence" >&5
7081 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
7082 cat >conftest.$ac_ext <<_ACEOF
7085 cat confdefs.h >>conftest.$ac_ext
7086 cat >>conftest.$ac_ext <<_ACEOF
7087 /* end confdefs.h. */
7088 #include <$ac_header>
7090 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
7091 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
7093 grep -v '^ *+' conftest.er1 >conftest.err
7095 cat conftest.err >&5
7096 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7097 (exit $ac_status); } >/dev/null; then
7098 if test -s conftest.err; then
7099 ac_cpp_err=$ac_c_preproc_warn_flag
7100 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
7107 if test -z "$ac_cpp_err"; then
7108 ac_header_preproc=yes
7110 echo "$as_me: failed program was:" >&5
7111 sed 's/^/| /' conftest.$ac_ext >&5
7113 ac_header_preproc=no
7115 rm -f conftest.err conftest.$ac_ext
7116 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
7117 echo "${ECHO_T}$ac_header_preproc" >&6
7119 # So? What about this header?
7120 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
7122 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
7123 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
7124 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
7125 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
7126 ac_header_preproc=yes
7129 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
7130 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
7131 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
7132 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
7133 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
7134 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
7135 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
7136 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
7137 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
7138 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
7139 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
7140 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
7143 ## ------------------------------------------ ##
7144 ## Report this to the AC_PACKAGE_NAME lists. ##
7145 ## ------------------------------------------ ##
7148 sed "s/^/$as_me: WARNING: /" >&2
7151 echo "$as_me:$LINENO: checking for $ac_header" >&5
7152 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
7153 if eval "test \"\${$as_ac_Header+set}\" = set"; then
7154 echo $ECHO_N "(cached) $ECHO_C" >&6
7156 eval "$as_ac_Header=\$ac_header_preproc"
7158 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
7159 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
7162 if test `eval echo '${'$as_ac_Header'}'` = yes; then
7163 cat >>confdefs.h <<_ACEOF
7164 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
7172 for ac_header in link.h
7174 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
7175 echo "$as_me:$LINENO: checking for $ac_header" >&5
7176 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
7177 if eval "test \"\${$as_ac_Header+set}\" = set"; then
7178 echo $ECHO_N "(cached) $ECHO_C" >&6
7180 cat >conftest.$ac_ext <<_ACEOF
7183 cat confdefs.h >>conftest.$ac_ext
7184 cat >>conftest.$ac_ext <<_ACEOF
7185 /* end confdefs.h. */
7186 #if HAVE_SYS_TYPES_H
7187 # include <sys/types.h>
7194 #include <$ac_header>
7196 rm -f conftest.$ac_objext
7197 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
7198 (eval $ac_compile) 2>conftest.er1
7200 grep -v '^ *+' conftest.er1 >conftest.err
7202 cat conftest.err >&5
7203 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7204 (exit $ac_status); } &&
7205 { ac_try='test -z "$ac_c_werror_flag"
7206 || test ! -s conftest.err'
7207 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7210 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7211 (exit $ac_status); }; } &&
7212 { ac_try='test -s conftest.$ac_objext'
7213 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7216 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7217 (exit $ac_status); }; }; then
7218 eval "$as_ac_Header=yes"
7220 echo "$as_me: failed program was:" >&5
7221 sed 's/^/| /' conftest.$ac_ext >&5
7223 eval "$as_ac_Header=no"
7225 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
7227 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
7228 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
7229 if test `eval echo '${'$as_ac_Header'}'` = yes; then
7230 cat >>confdefs.h <<_ACEOF
7231 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
7239 for ac_header in machine/reg.h
7241 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
7242 if eval "test \"\${$as_ac_Header+set}\" = set"; then
7243 echo "$as_me:$LINENO: checking for $ac_header" >&5
7244 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
7245 if eval "test \"\${$as_ac_Header+set}\" = set"; then
7246 echo $ECHO_N "(cached) $ECHO_C" >&6
7248 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
7249 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
7251 # Is the header compilable?
7252 echo "$as_me:$LINENO: checking $ac_header usability" >&5
7253 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
7254 cat >conftest.$ac_ext <<_ACEOF
7257 cat confdefs.h >>conftest.$ac_ext
7258 cat >>conftest.$ac_ext <<_ACEOF
7259 /* end confdefs.h. */
7260 $ac_includes_default
7261 #include <$ac_header>
7263 rm -f conftest.$ac_objext
7264 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
7265 (eval $ac_compile) 2>conftest.er1
7267 grep -v '^ *+' conftest.er1 >conftest.err
7269 cat conftest.err >&5
7270 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7271 (exit $ac_status); } &&
7272 { ac_try='test -z "$ac_c_werror_flag"
7273 || test ! -s conftest.err'
7274 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7277 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7278 (exit $ac_status); }; } &&
7279 { ac_try='test -s conftest.$ac_objext'
7280 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7283 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7284 (exit $ac_status); }; }; then
7285 ac_header_compiler=yes
7287 echo "$as_me: failed program was:" >&5
7288 sed 's/^/| /' conftest.$ac_ext >&5
7290 ac_header_compiler=no
7292 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
7293 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
7294 echo "${ECHO_T}$ac_header_compiler" >&6
7296 # Is the header present?
7297 echo "$as_me:$LINENO: checking $ac_header presence" >&5
7298 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
7299 cat >conftest.$ac_ext <<_ACEOF
7302 cat confdefs.h >>conftest.$ac_ext
7303 cat >>conftest.$ac_ext <<_ACEOF
7304 /* end confdefs.h. */
7305 #include <$ac_header>
7307 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
7308 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
7310 grep -v '^ *+' conftest.er1 >conftest.err
7312 cat conftest.err >&5
7313 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7314 (exit $ac_status); } >/dev/null; then
7315 if test -s conftest.err; then
7316 ac_cpp_err=$ac_c_preproc_warn_flag
7317 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
7324 if test -z "$ac_cpp_err"; then
7325 ac_header_preproc=yes
7327 echo "$as_me: failed program was:" >&5
7328 sed 's/^/| /' conftest.$ac_ext >&5
7330 ac_header_preproc=no
7332 rm -f conftest.err conftest.$ac_ext
7333 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
7334 echo "${ECHO_T}$ac_header_preproc" >&6
7336 # So? What about this header?
7337 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
7339 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
7340 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
7341 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
7342 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
7343 ac_header_preproc=yes
7346 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
7347 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
7348 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
7349 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
7350 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
7351 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
7352 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
7353 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
7354 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
7355 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
7356 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
7357 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
7360 ## ------------------------------------------ ##
7361 ## Report this to the AC_PACKAGE_NAME lists. ##
7362 ## ------------------------------------------ ##
7365 sed "s/^/$as_me: WARNING: /" >&2
7368 echo "$as_me:$LINENO: checking for $ac_header" >&5
7369 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
7370 if eval "test \"\${$as_ac_Header+set}\" = set"; then
7371 echo $ECHO_N "(cached) $ECHO_C" >&6
7373 eval "$as_ac_Header=\$ac_header_preproc"
7375 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
7376 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
7379 if test `eval echo '${'$as_ac_Header'}'` = yes; then
7380 cat >>confdefs.h <<_ACEOF
7381 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
7390 for ac_header in poll.h sys/poll.h
7392 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
7393 if eval "test \"\${$as_ac_Header+set}\" = set"; then
7394 echo "$as_me:$LINENO: checking for $ac_header" >&5
7395 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
7396 if eval "test \"\${$as_ac_Header+set}\" = set"; then
7397 echo $ECHO_N "(cached) $ECHO_C" >&6
7399 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
7400 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
7402 # Is the header compilable?
7403 echo "$as_me:$LINENO: checking $ac_header usability" >&5
7404 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
7405 cat >conftest.$ac_ext <<_ACEOF
7408 cat confdefs.h >>conftest.$ac_ext
7409 cat >>conftest.$ac_ext <<_ACEOF
7410 /* end confdefs.h. */
7411 $ac_includes_default
7412 #include <$ac_header>
7414 rm -f conftest.$ac_objext
7415 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
7416 (eval $ac_compile) 2>conftest.er1
7418 grep -v '^ *+' conftest.er1 >conftest.err
7420 cat conftest.err >&5
7421 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7422 (exit $ac_status); } &&
7423 { ac_try='test -z "$ac_c_werror_flag"
7424 || test ! -s conftest.err'
7425 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7428 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7429 (exit $ac_status); }; } &&
7430 { ac_try='test -s conftest.$ac_objext'
7431 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7434 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7435 (exit $ac_status); }; }; then
7436 ac_header_compiler=yes
7438 echo "$as_me: failed program was:" >&5
7439 sed 's/^/| /' conftest.$ac_ext >&5
7441 ac_header_compiler=no
7443 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
7444 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
7445 echo "${ECHO_T}$ac_header_compiler" >&6
7447 # Is the header present?
7448 echo "$as_me:$LINENO: checking $ac_header presence" >&5
7449 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
7450 cat >conftest.$ac_ext <<_ACEOF
7453 cat confdefs.h >>conftest.$ac_ext
7454 cat >>conftest.$ac_ext <<_ACEOF
7455 /* end confdefs.h. */
7456 #include <$ac_header>
7458 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
7459 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
7461 grep -v '^ *+' conftest.er1 >conftest.err
7463 cat conftest.err >&5
7464 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7465 (exit $ac_status); } >/dev/null; then
7466 if test -s conftest.err; then
7467 ac_cpp_err=$ac_c_preproc_warn_flag
7468 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
7475 if test -z "$ac_cpp_err"; then
7476 ac_header_preproc=yes
7478 echo "$as_me: failed program was:" >&5
7479 sed 's/^/| /' conftest.$ac_ext >&5
7481 ac_header_preproc=no
7483 rm -f conftest.err conftest.$ac_ext
7484 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
7485 echo "${ECHO_T}$ac_header_preproc" >&6
7487 # So? What about this header?
7488 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
7490 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
7491 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
7492 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
7493 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
7494 ac_header_preproc=yes
7497 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
7498 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
7499 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
7500 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
7501 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
7502 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
7503 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
7504 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
7505 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
7506 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
7507 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
7508 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
7511 ## ------------------------------------------ ##
7512 ## Report this to the AC_PACKAGE_NAME lists. ##
7513 ## ------------------------------------------ ##
7516 sed "s/^/$as_me: WARNING: /" >&2
7519 echo "$as_me:$LINENO: checking for $ac_header" >&5
7520 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
7521 if eval "test \"\${$as_ac_Header+set}\" = set"; then
7522 echo $ECHO_N "(cached) $ECHO_C" >&6
7524 eval "$as_ac_Header=\$ac_header_preproc"
7526 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
7527 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
7530 if test `eval echo '${'$as_ac_Header'}'` = yes; then
7531 cat >>confdefs.h <<_ACEOF
7532 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
7542 for ac_header in proc_service.h thread_db.h gnu/libc-version.h
7544 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
7545 if eval "test \"\${$as_ac_Header+set}\" = set"; then
7546 echo "$as_me:$LINENO: checking for $ac_header" >&5
7547 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
7548 if eval "test \"\${$as_ac_Header+set}\" = set"; then
7549 echo $ECHO_N "(cached) $ECHO_C" >&6
7551 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
7552 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
7554 # Is the header compilable?
7555 echo "$as_me:$LINENO: checking $ac_header usability" >&5
7556 echo $ECHO_N "checking $ac_header usability... $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 $ac_includes_default
7564 #include <$ac_header>
7566 rm -f conftest.$ac_objext
7567 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
7568 (eval $ac_compile) 2>conftest.er1
7570 grep -v '^ *+' conftest.er1 >conftest.err
7572 cat conftest.err >&5
7573 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7574 (exit $ac_status); } &&
7575 { ac_try='test -z "$ac_c_werror_flag"
7576 || test ! -s conftest.err'
7577 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7580 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7581 (exit $ac_status); }; } &&
7582 { ac_try='test -s conftest.$ac_objext'
7583 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7586 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7587 (exit $ac_status); }; }; then
7588 ac_header_compiler=yes
7590 echo "$as_me: failed program was:" >&5
7591 sed 's/^/| /' conftest.$ac_ext >&5
7593 ac_header_compiler=no
7595 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
7596 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
7597 echo "${ECHO_T}$ac_header_compiler" >&6
7599 # Is the header present?
7600 echo "$as_me:$LINENO: checking $ac_header presence" >&5
7601 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
7602 cat >conftest.$ac_ext <<_ACEOF
7605 cat confdefs.h >>conftest.$ac_ext
7606 cat >>conftest.$ac_ext <<_ACEOF
7607 /* end confdefs.h. */
7608 #include <$ac_header>
7610 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
7611 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
7613 grep -v '^ *+' conftest.er1 >conftest.err
7615 cat conftest.err >&5
7616 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7617 (exit $ac_status); } >/dev/null; then
7618 if test -s conftest.err; then
7619 ac_cpp_err=$ac_c_preproc_warn_flag
7620 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
7627 if test -z "$ac_cpp_err"; then
7628 ac_header_preproc=yes
7630 echo "$as_me: failed program was:" >&5
7631 sed 's/^/| /' conftest.$ac_ext >&5
7633 ac_header_preproc=no
7635 rm -f conftest.err conftest.$ac_ext
7636 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
7637 echo "${ECHO_T}$ac_header_preproc" >&6
7639 # So? What about this header?
7640 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
7642 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
7643 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
7644 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
7645 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
7646 ac_header_preproc=yes
7649 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
7650 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
7651 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
7652 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
7653 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
7654 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
7655 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
7656 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
7657 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
7658 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
7659 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
7660 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
7663 ## ------------------------------------------ ##
7664 ## Report this to the AC_PACKAGE_NAME lists. ##
7665 ## ------------------------------------------ ##
7668 sed "s/^/$as_me: WARNING: /" >&2
7671 echo "$as_me:$LINENO: checking for $ac_header" >&5
7672 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
7673 if eval "test \"\${$as_ac_Header+set}\" = set"; then
7674 echo $ECHO_N "(cached) $ECHO_C" >&6
7676 eval "$as_ac_Header=\$ac_header_preproc"
7678 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
7679 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
7682 if test `eval echo '${'$as_ac_Header'}'` = yes; then
7683 cat >>confdefs.h <<_ACEOF
7684 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
7692 for ac_header in stddef.h
7694 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
7695 if eval "test \"\${$as_ac_Header+set}\" = set"; then
7696 echo "$as_me:$LINENO: checking for $ac_header" >&5
7697 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
7698 if eval "test \"\${$as_ac_Header+set}\" = set"; then
7699 echo $ECHO_N "(cached) $ECHO_C" >&6
7701 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
7702 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
7704 # Is the header compilable?
7705 echo "$as_me:$LINENO: checking $ac_header usability" >&5
7706 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
7707 cat >conftest.$ac_ext <<_ACEOF
7710 cat confdefs.h >>conftest.$ac_ext
7711 cat >>conftest.$ac_ext <<_ACEOF
7712 /* end confdefs.h. */
7713 $ac_includes_default
7714 #include <$ac_header>
7716 rm -f conftest.$ac_objext
7717 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
7718 (eval $ac_compile) 2>conftest.er1
7720 grep -v '^ *+' conftest.er1 >conftest.err
7722 cat conftest.err >&5
7723 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7724 (exit $ac_status); } &&
7725 { ac_try='test -z "$ac_c_werror_flag"
7726 || test ! -s conftest.err'
7727 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7730 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7731 (exit $ac_status); }; } &&
7732 { ac_try='test -s conftest.$ac_objext'
7733 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7736 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7737 (exit $ac_status); }; }; then
7738 ac_header_compiler=yes
7740 echo "$as_me: failed program was:" >&5
7741 sed 's/^/| /' conftest.$ac_ext >&5
7743 ac_header_compiler=no
7745 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
7746 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
7747 echo "${ECHO_T}$ac_header_compiler" >&6
7749 # Is the header present?
7750 echo "$as_me:$LINENO: checking $ac_header presence" >&5
7751 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
7752 cat >conftest.$ac_ext <<_ACEOF
7755 cat confdefs.h >>conftest.$ac_ext
7756 cat >>conftest.$ac_ext <<_ACEOF
7757 /* end confdefs.h. */
7758 #include <$ac_header>
7760 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
7761 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
7763 grep -v '^ *+' conftest.er1 >conftest.err
7765 cat conftest.err >&5
7766 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7767 (exit $ac_status); } >/dev/null; then
7768 if test -s conftest.err; then
7769 ac_cpp_err=$ac_c_preproc_warn_flag
7770 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
7777 if test -z "$ac_cpp_err"; then
7778 ac_header_preproc=yes
7780 echo "$as_me: failed program was:" >&5
7781 sed 's/^/| /' conftest.$ac_ext >&5
7783 ac_header_preproc=no
7785 rm -f conftest.err conftest.$ac_ext
7786 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
7787 echo "${ECHO_T}$ac_header_preproc" >&6
7789 # So? What about this header?
7790 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
7792 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
7793 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
7794 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
7795 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
7796 ac_header_preproc=yes
7799 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
7800 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
7801 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
7802 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
7803 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
7804 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
7805 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
7806 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
7807 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
7808 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
7809 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
7810 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
7813 ## ------------------------------------------ ##
7814 ## Report this to the AC_PACKAGE_NAME lists. ##
7815 ## ------------------------------------------ ##
7818 sed "s/^/$as_me: WARNING: /" >&2
7821 echo "$as_me:$LINENO: checking for $ac_header" >&5
7822 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
7823 if eval "test \"\${$as_ac_Header+set}\" = set"; then
7824 echo $ECHO_N "(cached) $ECHO_C" >&6
7826 eval "$as_ac_Header=\$ac_header_preproc"
7828 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
7829 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
7832 if test `eval echo '${'$as_ac_Header'}'` = yes; then
7833 cat >>confdefs.h <<_ACEOF
7834 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
7842 for ac_header in stdlib.h
7844 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
7845 if eval "test \"\${$as_ac_Header+set}\" = set"; then
7846 echo "$as_me:$LINENO: checking for $ac_header" >&5
7847 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
7848 if eval "test \"\${$as_ac_Header+set}\" = set"; then
7849 echo $ECHO_N "(cached) $ECHO_C" >&6
7851 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
7852 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
7854 # Is the header compilable?
7855 echo "$as_me:$LINENO: checking $ac_header usability" >&5
7856 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
7857 cat >conftest.$ac_ext <<_ACEOF
7860 cat confdefs.h >>conftest.$ac_ext
7861 cat >>conftest.$ac_ext <<_ACEOF
7862 /* end confdefs.h. */
7863 $ac_includes_default
7864 #include <$ac_header>
7866 rm -f conftest.$ac_objext
7867 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
7868 (eval $ac_compile) 2>conftest.er1
7870 grep -v '^ *+' conftest.er1 >conftest.err
7872 cat conftest.err >&5
7873 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7874 (exit $ac_status); } &&
7875 { ac_try='test -z "$ac_c_werror_flag"
7876 || test ! -s conftest.err'
7877 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7880 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7881 (exit $ac_status); }; } &&
7882 { ac_try='test -s conftest.$ac_objext'
7883 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7886 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7887 (exit $ac_status); }; }; then
7888 ac_header_compiler=yes
7890 echo "$as_me: failed program was:" >&5
7891 sed 's/^/| /' conftest.$ac_ext >&5
7893 ac_header_compiler=no
7895 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
7896 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
7897 echo "${ECHO_T}$ac_header_compiler" >&6
7899 # Is the header present?
7900 echo "$as_me:$LINENO: checking $ac_header presence" >&5
7901 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
7902 cat >conftest.$ac_ext <<_ACEOF
7905 cat confdefs.h >>conftest.$ac_ext
7906 cat >>conftest.$ac_ext <<_ACEOF
7907 /* end confdefs.h. */
7908 #include <$ac_header>
7910 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
7911 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
7913 grep -v '^ *+' conftest.er1 >conftest.err
7915 cat conftest.err >&5
7916 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7917 (exit $ac_status); } >/dev/null; then
7918 if test -s conftest.err; then
7919 ac_cpp_err=$ac_c_preproc_warn_flag
7920 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
7927 if test -z "$ac_cpp_err"; then
7928 ac_header_preproc=yes
7930 echo "$as_me: failed program was:" >&5
7931 sed 's/^/| /' conftest.$ac_ext >&5
7933 ac_header_preproc=no
7935 rm -f conftest.err conftest.$ac_ext
7936 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
7937 echo "${ECHO_T}$ac_header_preproc" >&6
7939 # So? What about this header?
7940 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
7942 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
7943 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
7944 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
7945 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
7946 ac_header_preproc=yes
7949 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
7950 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
7951 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
7952 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
7953 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
7954 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
7955 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
7956 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
7957 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
7958 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
7959 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
7960 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
7963 ## ------------------------------------------ ##
7964 ## Report this to the AC_PACKAGE_NAME lists. ##
7965 ## ------------------------------------------ ##
7968 sed "s/^/$as_me: WARNING: /" >&2
7971 echo "$as_me:$LINENO: checking for $ac_header" >&5
7972 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
7973 if eval "test \"\${$as_ac_Header+set}\" = set"; then
7974 echo $ECHO_N "(cached) $ECHO_C" >&6
7976 eval "$as_ac_Header=\$ac_header_preproc"
7978 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
7979 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
7982 if test `eval echo '${'$as_ac_Header'}'` = yes; then
7983 cat >>confdefs.h <<_ACEOF
7984 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
7992 for ac_header in stdint.h
7994 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
7995 if eval "test \"\${$as_ac_Header+set}\" = set"; then
7996 echo "$as_me:$LINENO: checking for $ac_header" >&5
7997 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
7998 if eval "test \"\${$as_ac_Header+set}\" = set"; then
7999 echo $ECHO_N "(cached) $ECHO_C" >&6
8001 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
8002 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
8004 # Is the header compilable?
8005 echo "$as_me:$LINENO: checking $ac_header usability" >&5
8006 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
8007 cat >conftest.$ac_ext <<_ACEOF
8010 cat confdefs.h >>conftest.$ac_ext
8011 cat >>conftest.$ac_ext <<_ACEOF
8012 /* end confdefs.h. */
8013 $ac_includes_default
8014 #include <$ac_header>
8016 rm -f conftest.$ac_objext
8017 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
8018 (eval $ac_compile) 2>conftest.er1
8020 grep -v '^ *+' conftest.er1 >conftest.err
8022 cat conftest.err >&5
8023 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8024 (exit $ac_status); } &&
8025 { ac_try='test -z "$ac_c_werror_flag"
8026 || test ! -s conftest.err'
8027 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8030 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8031 (exit $ac_status); }; } &&
8032 { ac_try='test -s conftest.$ac_objext'
8033 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8036 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8037 (exit $ac_status); }; }; then
8038 ac_header_compiler=yes
8040 echo "$as_me: failed program was:" >&5
8041 sed 's/^/| /' conftest.$ac_ext >&5
8043 ac_header_compiler=no
8045 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
8046 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
8047 echo "${ECHO_T}$ac_header_compiler" >&6
8049 # Is the header present?
8050 echo "$as_me:$LINENO: checking $ac_header presence" >&5
8051 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
8052 cat >conftest.$ac_ext <<_ACEOF
8055 cat confdefs.h >>conftest.$ac_ext
8056 cat >>conftest.$ac_ext <<_ACEOF
8057 /* end confdefs.h. */
8058 #include <$ac_header>
8060 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
8061 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
8063 grep -v '^ *+' conftest.er1 >conftest.err
8065 cat conftest.err >&5
8066 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8067 (exit $ac_status); } >/dev/null; then
8068 if test -s conftest.err; then
8069 ac_cpp_err=$ac_c_preproc_warn_flag
8070 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
8077 if test -z "$ac_cpp_err"; then
8078 ac_header_preproc=yes
8080 echo "$as_me: failed program was:" >&5
8081 sed 's/^/| /' conftest.$ac_ext >&5
8083 ac_header_preproc=no
8085 rm -f conftest.err conftest.$ac_ext
8086 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
8087 echo "${ECHO_T}$ac_header_preproc" >&6
8089 # So? What about this header?
8090 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
8092 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
8093 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
8094 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
8095 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
8096 ac_header_preproc=yes
8099 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
8100 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
8101 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
8102 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
8103 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
8104 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
8105 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
8106 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
8107 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
8108 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
8109 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
8110 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
8113 ## ------------------------------------------ ##
8114 ## Report this to the AC_PACKAGE_NAME lists. ##
8115 ## ------------------------------------------ ##
8118 sed "s/^/$as_me: WARNING: /" >&2
8121 echo "$as_me:$LINENO: checking for $ac_header" >&5
8122 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
8123 if eval "test \"\${$as_ac_Header+set}\" = set"; then
8124 echo $ECHO_N "(cached) $ECHO_C" >&6
8126 eval "$as_ac_Header=\$ac_header_preproc"
8128 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
8129 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
8132 if test `eval echo '${'$as_ac_Header'}'` = yes; then
8133 cat >>confdefs.h <<_ACEOF
8134 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
8144 for ac_header in string.h memory.h strings.h
8146 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
8147 if eval "test \"\${$as_ac_Header+set}\" = set"; then
8148 echo "$as_me:$LINENO: checking for $ac_header" >&5
8149 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
8150 if eval "test \"\${$as_ac_Header+set}\" = set"; then
8151 echo $ECHO_N "(cached) $ECHO_C" >&6
8153 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
8154 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
8156 # Is the header compilable?
8157 echo "$as_me:$LINENO: checking $ac_header usability" >&5
8158 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
8159 cat >conftest.$ac_ext <<_ACEOF
8162 cat confdefs.h >>conftest.$ac_ext
8163 cat >>conftest.$ac_ext <<_ACEOF
8164 /* end confdefs.h. */
8165 $ac_includes_default
8166 #include <$ac_header>
8168 rm -f conftest.$ac_objext
8169 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
8170 (eval $ac_compile) 2>conftest.er1
8172 grep -v '^ *+' conftest.er1 >conftest.err
8174 cat conftest.err >&5
8175 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8176 (exit $ac_status); } &&
8177 { ac_try='test -z "$ac_c_werror_flag"
8178 || test ! -s conftest.err'
8179 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8182 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8183 (exit $ac_status); }; } &&
8184 { ac_try='test -s conftest.$ac_objext'
8185 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8188 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8189 (exit $ac_status); }; }; then
8190 ac_header_compiler=yes
8192 echo "$as_me: failed program was:" >&5
8193 sed 's/^/| /' conftest.$ac_ext >&5
8195 ac_header_compiler=no
8197 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
8198 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
8199 echo "${ECHO_T}$ac_header_compiler" >&6
8201 # Is the header present?
8202 echo "$as_me:$LINENO: checking $ac_header presence" >&5
8203 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
8204 cat >conftest.$ac_ext <<_ACEOF
8207 cat confdefs.h >>conftest.$ac_ext
8208 cat >>conftest.$ac_ext <<_ACEOF
8209 /* end confdefs.h. */
8210 #include <$ac_header>
8212 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
8213 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
8215 grep -v '^ *+' conftest.er1 >conftest.err
8217 cat conftest.err >&5
8218 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8219 (exit $ac_status); } >/dev/null; then
8220 if test -s conftest.err; then
8221 ac_cpp_err=$ac_c_preproc_warn_flag
8222 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
8229 if test -z "$ac_cpp_err"; then
8230 ac_header_preproc=yes
8232 echo "$as_me: failed program was:" >&5
8233 sed 's/^/| /' conftest.$ac_ext >&5
8235 ac_header_preproc=no
8237 rm -f conftest.err conftest.$ac_ext
8238 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
8239 echo "${ECHO_T}$ac_header_preproc" >&6
8241 # So? What about this header?
8242 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
8244 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
8245 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
8246 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
8247 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
8248 ac_header_preproc=yes
8251 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
8252 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
8253 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
8254 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
8255 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
8256 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
8257 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
8258 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
8259 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
8260 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
8261 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
8262 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
8265 ## ------------------------------------------ ##
8266 ## Report this to the AC_PACKAGE_NAME lists. ##
8267 ## ------------------------------------------ ##
8270 sed "s/^/$as_me: WARNING: /" >&2
8273 echo "$as_me:$LINENO: checking for $ac_header" >&5
8274 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
8275 if eval "test \"\${$as_ac_Header+set}\" = set"; then
8276 echo $ECHO_N "(cached) $ECHO_C" >&6
8278 eval "$as_ac_Header=\$ac_header_preproc"
8280 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
8281 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
8284 if test `eval echo '${'$as_ac_Header'}'` = yes; then
8285 cat >>confdefs.h <<_ACEOF
8286 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
8294 for ac_header in sys/fault.h
8296 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
8297 if eval "test \"\${$as_ac_Header+set}\" = set"; then
8298 echo "$as_me:$LINENO: checking for $ac_header" >&5
8299 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
8300 if eval "test \"\${$as_ac_Header+set}\" = set"; then
8301 echo $ECHO_N "(cached) $ECHO_C" >&6
8303 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
8304 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
8306 # Is the header compilable?
8307 echo "$as_me:$LINENO: checking $ac_header usability" >&5
8308 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
8309 cat >conftest.$ac_ext <<_ACEOF
8312 cat confdefs.h >>conftest.$ac_ext
8313 cat >>conftest.$ac_ext <<_ACEOF
8314 /* end confdefs.h. */
8315 $ac_includes_default
8316 #include <$ac_header>
8318 rm -f conftest.$ac_objext
8319 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
8320 (eval $ac_compile) 2>conftest.er1
8322 grep -v '^ *+' conftest.er1 >conftest.err
8324 cat conftest.err >&5
8325 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8326 (exit $ac_status); } &&
8327 { ac_try='test -z "$ac_c_werror_flag"
8328 || test ! -s conftest.err'
8329 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8332 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8333 (exit $ac_status); }; } &&
8334 { ac_try='test -s conftest.$ac_objext'
8335 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8338 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8339 (exit $ac_status); }; }; then
8340 ac_header_compiler=yes
8342 echo "$as_me: failed program was:" >&5
8343 sed 's/^/| /' conftest.$ac_ext >&5
8345 ac_header_compiler=no
8347 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
8348 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
8349 echo "${ECHO_T}$ac_header_compiler" >&6
8351 # Is the header present?
8352 echo "$as_me:$LINENO: checking $ac_header presence" >&5
8353 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
8354 cat >conftest.$ac_ext <<_ACEOF
8357 cat confdefs.h >>conftest.$ac_ext
8358 cat >>conftest.$ac_ext <<_ACEOF
8359 /* end confdefs.h. */
8360 #include <$ac_header>
8362 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
8363 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
8365 grep -v '^ *+' conftest.er1 >conftest.err
8367 cat conftest.err >&5
8368 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8369 (exit $ac_status); } >/dev/null; then
8370 if test -s conftest.err; then
8371 ac_cpp_err=$ac_c_preproc_warn_flag
8372 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
8379 if test -z "$ac_cpp_err"; then
8380 ac_header_preproc=yes
8382 echo "$as_me: failed program was:" >&5
8383 sed 's/^/| /' conftest.$ac_ext >&5
8385 ac_header_preproc=no
8387 rm -f conftest.err conftest.$ac_ext
8388 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
8389 echo "${ECHO_T}$ac_header_preproc" >&6
8391 # So? What about this header?
8392 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
8394 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
8395 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
8396 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
8397 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
8398 ac_header_preproc=yes
8401 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
8402 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
8403 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
8404 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
8405 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
8406 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
8407 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
8408 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
8409 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
8410 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
8411 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
8412 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
8415 ## ------------------------------------------ ##
8416 ## Report this to the AC_PACKAGE_NAME lists. ##
8417 ## ------------------------------------------ ##
8420 sed "s/^/$as_me: WARNING: /" >&2
8423 echo "$as_me:$LINENO: checking for $ac_header" >&5
8424 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
8425 if eval "test \"\${$as_ac_Header+set}\" = set"; then
8426 echo $ECHO_N "(cached) $ECHO_C" >&6
8428 eval "$as_ac_Header=\$ac_header_preproc"
8430 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
8431 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
8434 if test `eval echo '${'$as_ac_Header'}'` = yes; then
8435 cat >>confdefs.h <<_ACEOF
8436 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
8444 for ac_header in sys/file.h
8446 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
8447 if eval "test \"\${$as_ac_Header+set}\" = set"; then
8448 echo "$as_me:$LINENO: checking for $ac_header" >&5
8449 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
8450 if eval "test \"\${$as_ac_Header+set}\" = set"; then
8451 echo $ECHO_N "(cached) $ECHO_C" >&6
8453 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
8454 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
8456 # Is the header compilable?
8457 echo "$as_me:$LINENO: checking $ac_header usability" >&5
8458 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
8459 cat >conftest.$ac_ext <<_ACEOF
8462 cat confdefs.h >>conftest.$ac_ext
8463 cat >>conftest.$ac_ext <<_ACEOF
8464 /* end confdefs.h. */
8465 $ac_includes_default
8466 #include <$ac_header>
8468 rm -f conftest.$ac_objext
8469 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
8470 (eval $ac_compile) 2>conftest.er1
8472 grep -v '^ *+' conftest.er1 >conftest.err
8474 cat conftest.err >&5
8475 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8476 (exit $ac_status); } &&
8477 { ac_try='test -z "$ac_c_werror_flag"
8478 || test ! -s conftest.err'
8479 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8482 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8483 (exit $ac_status); }; } &&
8484 { ac_try='test -s conftest.$ac_objext'
8485 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8488 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8489 (exit $ac_status); }; }; then
8490 ac_header_compiler=yes
8492 echo "$as_me: failed program was:" >&5
8493 sed 's/^/| /' conftest.$ac_ext >&5
8495 ac_header_compiler=no
8497 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
8498 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
8499 echo "${ECHO_T}$ac_header_compiler" >&6
8501 # Is the header present?
8502 echo "$as_me:$LINENO: checking $ac_header presence" >&5
8503 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
8504 cat >conftest.$ac_ext <<_ACEOF
8507 cat confdefs.h >>conftest.$ac_ext
8508 cat >>conftest.$ac_ext <<_ACEOF
8509 /* end confdefs.h. */
8510 #include <$ac_header>
8512 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
8513 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
8515 grep -v '^ *+' conftest.er1 >conftest.err
8517 cat conftest.err >&5
8518 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8519 (exit $ac_status); } >/dev/null; then
8520 if test -s conftest.err; then
8521 ac_cpp_err=$ac_c_preproc_warn_flag
8522 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
8529 if test -z "$ac_cpp_err"; then
8530 ac_header_preproc=yes
8532 echo "$as_me: failed program was:" >&5
8533 sed 's/^/| /' conftest.$ac_ext >&5
8535 ac_header_preproc=no
8537 rm -f conftest.err conftest.$ac_ext
8538 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
8539 echo "${ECHO_T}$ac_header_preproc" >&6
8541 # So? What about this header?
8542 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
8544 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
8545 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
8546 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
8547 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
8548 ac_header_preproc=yes
8551 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
8552 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
8553 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
8554 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
8555 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
8556 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
8557 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
8558 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
8559 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
8560 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
8561 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
8562 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
8565 ## ------------------------------------------ ##
8566 ## Report this to the AC_PACKAGE_NAME lists. ##
8567 ## ------------------------------------------ ##
8570 sed "s/^/$as_me: WARNING: /" >&2
8573 echo "$as_me:$LINENO: checking for $ac_header" >&5
8574 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
8575 if eval "test \"\${$as_ac_Header+set}\" = set"; then
8576 echo $ECHO_N "(cached) $ECHO_C" >&6
8578 eval "$as_ac_Header=\$ac_header_preproc"
8580 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
8581 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
8584 if test `eval echo '${'$as_ac_Header'}'` = yes; then
8585 cat >>confdefs.h <<_ACEOF
8586 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
8594 for ac_header in sys/filio.h
8596 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
8597 if eval "test \"\${$as_ac_Header+set}\" = set"; then
8598 echo "$as_me:$LINENO: checking for $ac_header" >&5
8599 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
8600 if eval "test \"\${$as_ac_Header+set}\" = set"; then
8601 echo $ECHO_N "(cached) $ECHO_C" >&6
8603 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
8604 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
8606 # Is the header compilable?
8607 echo "$as_me:$LINENO: checking $ac_header usability" >&5
8608 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
8609 cat >conftest.$ac_ext <<_ACEOF
8612 cat confdefs.h >>conftest.$ac_ext
8613 cat >>conftest.$ac_ext <<_ACEOF
8614 /* end confdefs.h. */
8615 $ac_includes_default
8616 #include <$ac_header>
8618 rm -f conftest.$ac_objext
8619 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
8620 (eval $ac_compile) 2>conftest.er1
8622 grep -v '^ *+' conftest.er1 >conftest.err
8624 cat conftest.err >&5
8625 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8626 (exit $ac_status); } &&
8627 { ac_try='test -z "$ac_c_werror_flag"
8628 || test ! -s conftest.err'
8629 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8632 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8633 (exit $ac_status); }; } &&
8634 { ac_try='test -s conftest.$ac_objext'
8635 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8638 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8639 (exit $ac_status); }; }; then
8640 ac_header_compiler=yes
8642 echo "$as_me: failed program was:" >&5
8643 sed 's/^/| /' conftest.$ac_ext >&5
8645 ac_header_compiler=no
8647 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
8648 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
8649 echo "${ECHO_T}$ac_header_compiler" >&6
8651 # Is the header present?
8652 echo "$as_me:$LINENO: checking $ac_header presence" >&5
8653 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
8654 cat >conftest.$ac_ext <<_ACEOF
8657 cat confdefs.h >>conftest.$ac_ext
8658 cat >>conftest.$ac_ext <<_ACEOF
8659 /* end confdefs.h. */
8660 #include <$ac_header>
8662 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
8663 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
8665 grep -v '^ *+' conftest.er1 >conftest.err
8667 cat conftest.err >&5
8668 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8669 (exit $ac_status); } >/dev/null; then
8670 if test -s conftest.err; then
8671 ac_cpp_err=$ac_c_preproc_warn_flag
8672 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
8679 if test -z "$ac_cpp_err"; then
8680 ac_header_preproc=yes
8682 echo "$as_me: failed program was:" >&5
8683 sed 's/^/| /' conftest.$ac_ext >&5
8685 ac_header_preproc=no
8687 rm -f conftest.err conftest.$ac_ext
8688 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
8689 echo "${ECHO_T}$ac_header_preproc" >&6
8691 # So? What about this header?
8692 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
8694 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
8695 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
8696 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
8697 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
8698 ac_header_preproc=yes
8701 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
8702 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
8703 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
8704 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
8705 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
8706 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
8707 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
8708 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
8709 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
8710 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
8711 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
8712 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
8715 ## ------------------------------------------ ##
8716 ## Report this to the AC_PACKAGE_NAME lists. ##
8717 ## ------------------------------------------ ##
8720 sed "s/^/$as_me: WARNING: /" >&2
8723 echo "$as_me:$LINENO: checking for $ac_header" >&5
8724 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
8725 if eval "test \"\${$as_ac_Header+set}\" = set"; then
8726 echo $ECHO_N "(cached) $ECHO_C" >&6
8728 eval "$as_ac_Header=\$ac_header_preproc"
8730 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
8731 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
8734 if test `eval echo '${'$as_ac_Header'}'` = yes; then
8735 cat >>confdefs.h <<_ACEOF
8736 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
8744 for ac_header in sys/ioctl.h
8746 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
8747 if eval "test \"\${$as_ac_Header+set}\" = set"; then
8748 echo "$as_me:$LINENO: checking for $ac_header" >&5
8749 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
8750 if eval "test \"\${$as_ac_Header+set}\" = set"; then
8751 echo $ECHO_N "(cached) $ECHO_C" >&6
8753 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
8754 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
8756 # Is the header compilable?
8757 echo "$as_me:$LINENO: checking $ac_header usability" >&5
8758 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
8759 cat >conftest.$ac_ext <<_ACEOF
8762 cat confdefs.h >>conftest.$ac_ext
8763 cat >>conftest.$ac_ext <<_ACEOF
8764 /* end confdefs.h. */
8765 $ac_includes_default
8766 #include <$ac_header>
8768 rm -f conftest.$ac_objext
8769 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
8770 (eval $ac_compile) 2>conftest.er1
8772 grep -v '^ *+' conftest.er1 >conftest.err
8774 cat conftest.err >&5
8775 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8776 (exit $ac_status); } &&
8777 { ac_try='test -z "$ac_c_werror_flag"
8778 || test ! -s conftest.err'
8779 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8782 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8783 (exit $ac_status); }; } &&
8784 { ac_try='test -s conftest.$ac_objext'
8785 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8788 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8789 (exit $ac_status); }; }; then
8790 ac_header_compiler=yes
8792 echo "$as_me: failed program was:" >&5
8793 sed 's/^/| /' conftest.$ac_ext >&5
8795 ac_header_compiler=no
8797 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
8798 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
8799 echo "${ECHO_T}$ac_header_compiler" >&6
8801 # Is the header present?
8802 echo "$as_me:$LINENO: checking $ac_header presence" >&5
8803 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
8804 cat >conftest.$ac_ext <<_ACEOF
8807 cat confdefs.h >>conftest.$ac_ext
8808 cat >>conftest.$ac_ext <<_ACEOF
8809 /* end confdefs.h. */
8810 #include <$ac_header>
8812 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
8813 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
8815 grep -v '^ *+' conftest.er1 >conftest.err
8817 cat conftest.err >&5
8818 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8819 (exit $ac_status); } >/dev/null; then
8820 if test -s conftest.err; then
8821 ac_cpp_err=$ac_c_preproc_warn_flag
8822 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
8829 if test -z "$ac_cpp_err"; then
8830 ac_header_preproc=yes
8832 echo "$as_me: failed program was:" >&5
8833 sed 's/^/| /' conftest.$ac_ext >&5
8835 ac_header_preproc=no
8837 rm -f conftest.err conftest.$ac_ext
8838 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
8839 echo "${ECHO_T}$ac_header_preproc" >&6
8841 # So? What about this header?
8842 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
8844 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
8845 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
8846 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
8847 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
8848 ac_header_preproc=yes
8851 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
8852 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
8853 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
8854 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
8855 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
8856 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
8857 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
8858 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
8859 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
8860 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
8861 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
8862 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
8865 ## ------------------------------------------ ##
8866 ## Report this to the AC_PACKAGE_NAME lists. ##
8867 ## ------------------------------------------ ##
8870 sed "s/^/$as_me: WARNING: /" >&2
8873 echo "$as_me:$LINENO: checking for $ac_header" >&5
8874 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
8875 if eval "test \"\${$as_ac_Header+set}\" = set"; then
8876 echo $ECHO_N "(cached) $ECHO_C" >&6
8878 eval "$as_ac_Header=\$ac_header_preproc"
8880 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
8881 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
8884 if test `eval echo '${'$as_ac_Header'}'` = yes; then
8885 cat >>confdefs.h <<_ACEOF
8886 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
8894 for ac_header in sys/param.h
8896 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
8897 if eval "test \"\${$as_ac_Header+set}\" = set"; then
8898 echo "$as_me:$LINENO: checking for $ac_header" >&5
8899 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
8900 if eval "test \"\${$as_ac_Header+set}\" = set"; then
8901 echo $ECHO_N "(cached) $ECHO_C" >&6
8903 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
8904 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
8906 # Is the header compilable?
8907 echo "$as_me:$LINENO: checking $ac_header usability" >&5
8908 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
8909 cat >conftest.$ac_ext <<_ACEOF
8912 cat confdefs.h >>conftest.$ac_ext
8913 cat >>conftest.$ac_ext <<_ACEOF
8914 /* end confdefs.h. */
8915 $ac_includes_default
8916 #include <$ac_header>
8918 rm -f conftest.$ac_objext
8919 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
8920 (eval $ac_compile) 2>conftest.er1
8922 grep -v '^ *+' conftest.er1 >conftest.err
8924 cat conftest.err >&5
8925 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8926 (exit $ac_status); } &&
8927 { ac_try='test -z "$ac_c_werror_flag"
8928 || test ! -s conftest.err'
8929 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8932 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8933 (exit $ac_status); }; } &&
8934 { ac_try='test -s conftest.$ac_objext'
8935 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8938 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8939 (exit $ac_status); }; }; then
8940 ac_header_compiler=yes
8942 echo "$as_me: failed program was:" >&5
8943 sed 's/^/| /' conftest.$ac_ext >&5
8945 ac_header_compiler=no
8947 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
8948 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
8949 echo "${ECHO_T}$ac_header_compiler" >&6
8951 # Is the header present?
8952 echo "$as_me:$LINENO: checking $ac_header presence" >&5
8953 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
8954 cat >conftest.$ac_ext <<_ACEOF
8957 cat confdefs.h >>conftest.$ac_ext
8958 cat >>conftest.$ac_ext <<_ACEOF
8959 /* end confdefs.h. */
8960 #include <$ac_header>
8962 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
8963 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
8965 grep -v '^ *+' conftest.er1 >conftest.err
8967 cat conftest.err >&5
8968 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8969 (exit $ac_status); } >/dev/null; then
8970 if test -s conftest.err; then
8971 ac_cpp_err=$ac_c_preproc_warn_flag
8972 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
8979 if test -z "$ac_cpp_err"; then
8980 ac_header_preproc=yes
8982 echo "$as_me: failed program was:" >&5
8983 sed 's/^/| /' conftest.$ac_ext >&5
8985 ac_header_preproc=no
8987 rm -f conftest.err conftest.$ac_ext
8988 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
8989 echo "${ECHO_T}$ac_header_preproc" >&6
8991 # So? What about this header?
8992 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
8994 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
8995 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
8996 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
8997 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
8998 ac_header_preproc=yes
9001 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
9002 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
9003 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
9004 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
9005 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
9006 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
9007 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
9008 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
9009 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
9010 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
9011 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
9012 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
9015 ## ------------------------------------------ ##
9016 ## Report this to the AC_PACKAGE_NAME lists. ##
9017 ## ------------------------------------------ ##
9020 sed "s/^/$as_me: WARNING: /" >&2
9023 echo "$as_me:$LINENO: checking for $ac_header" >&5
9024 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
9025 if eval "test \"\${$as_ac_Header+set}\" = set"; then
9026 echo $ECHO_N "(cached) $ECHO_C" >&6
9028 eval "$as_ac_Header=\$ac_header_preproc"
9030 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
9031 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
9034 if test `eval echo '${'$as_ac_Header'}'` = yes; then
9035 cat >>confdefs.h <<_ACEOF
9036 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
9044 for ac_header in sys/proc.h
9046 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
9047 echo "$as_me:$LINENO: checking for $ac_header" >&5
9048 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
9049 if eval "test \"\${$as_ac_Header+set}\" = set"; then
9050 echo $ECHO_N "(cached) $ECHO_C" >&6
9052 cat >conftest.$ac_ext <<_ACEOF
9055 cat confdefs.h >>conftest.$ac_ext
9056 cat >>conftest.$ac_ext <<_ACEOF
9057 /* end confdefs.h. */
9058 #if HAVE_SYS_PARAM_H
9059 # include <sys/param.h>
9063 #include <$ac_header>
9065 rm -f conftest.$ac_objext
9066 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
9067 (eval $ac_compile) 2>conftest.er1
9069 grep -v '^ *+' conftest.er1 >conftest.err
9071 cat conftest.err >&5
9072 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9073 (exit $ac_status); } &&
9074 { ac_try='test -z "$ac_c_werror_flag"
9075 || test ! -s conftest.err'
9076 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9079 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9080 (exit $ac_status); }; } &&
9081 { ac_try='test -s conftest.$ac_objext'
9082 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9085 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9086 (exit $ac_status); }; }; then
9087 eval "$as_ac_Header=yes"
9089 echo "$as_me: failed program was:" >&5
9090 sed 's/^/| /' conftest.$ac_ext >&5
9092 eval "$as_ac_Header=no"
9094 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
9096 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
9097 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
9098 if test `eval echo '${'$as_ac_Header'}'` = yes; then
9099 cat >>confdefs.h <<_ACEOF
9100 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
9108 for ac_header in sys/procfs.h
9110 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
9111 if eval "test \"\${$as_ac_Header+set}\" = set"; then
9112 echo "$as_me:$LINENO: checking for $ac_header" >&5
9113 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
9114 if eval "test \"\${$as_ac_Header+set}\" = set"; then
9115 echo $ECHO_N "(cached) $ECHO_C" >&6
9117 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
9118 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
9120 # Is the header compilable?
9121 echo "$as_me:$LINENO: checking $ac_header usability" >&5
9122 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
9123 cat >conftest.$ac_ext <<_ACEOF
9126 cat confdefs.h >>conftest.$ac_ext
9127 cat >>conftest.$ac_ext <<_ACEOF
9128 /* end confdefs.h. */
9129 $ac_includes_default
9130 #include <$ac_header>
9132 rm -f conftest.$ac_objext
9133 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
9134 (eval $ac_compile) 2>conftest.er1
9136 grep -v '^ *+' conftest.er1 >conftest.err
9138 cat conftest.err >&5
9139 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9140 (exit $ac_status); } &&
9141 { ac_try='test -z "$ac_c_werror_flag"
9142 || test ! -s conftest.err'
9143 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9146 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9147 (exit $ac_status); }; } &&
9148 { ac_try='test -s conftest.$ac_objext'
9149 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9152 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9153 (exit $ac_status); }; }; then
9154 ac_header_compiler=yes
9156 echo "$as_me: failed program was:" >&5
9157 sed 's/^/| /' conftest.$ac_ext >&5
9159 ac_header_compiler=no
9161 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
9162 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
9163 echo "${ECHO_T}$ac_header_compiler" >&6
9165 # Is the header present?
9166 echo "$as_me:$LINENO: checking $ac_header presence" >&5
9167 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
9168 cat >conftest.$ac_ext <<_ACEOF
9171 cat confdefs.h >>conftest.$ac_ext
9172 cat >>conftest.$ac_ext <<_ACEOF
9173 /* end confdefs.h. */
9174 #include <$ac_header>
9176 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
9177 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
9179 grep -v '^ *+' conftest.er1 >conftest.err
9181 cat conftest.err >&5
9182 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9183 (exit $ac_status); } >/dev/null; then
9184 if test -s conftest.err; then
9185 ac_cpp_err=$ac_c_preproc_warn_flag
9186 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
9193 if test -z "$ac_cpp_err"; then
9194 ac_header_preproc=yes
9196 echo "$as_me: failed program was:" >&5
9197 sed 's/^/| /' conftest.$ac_ext >&5
9199 ac_header_preproc=no
9201 rm -f conftest.err conftest.$ac_ext
9202 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
9203 echo "${ECHO_T}$ac_header_preproc" >&6
9205 # So? What about this header?
9206 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
9208 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
9209 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
9210 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
9211 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
9212 ac_header_preproc=yes
9215 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
9216 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
9217 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
9218 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
9219 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
9220 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
9221 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
9222 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
9223 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
9224 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
9225 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
9226 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
9229 ## ------------------------------------------ ##
9230 ## Report this to the AC_PACKAGE_NAME lists. ##
9231 ## ------------------------------------------ ##
9234 sed "s/^/$as_me: WARNING: /" >&2
9237 echo "$as_me:$LINENO: checking for $ac_header" >&5
9238 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
9239 if eval "test \"\${$as_ac_Header+set}\" = set"; then
9240 echo $ECHO_N "(cached) $ECHO_C" >&6
9242 eval "$as_ac_Header=\$ac_header_preproc"
9244 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
9245 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
9248 if test `eval echo '${'$as_ac_Header'}'` = yes; then
9249 cat >>confdefs.h <<_ACEOF
9250 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
9259 for ac_header in sys/ptrace.h ptrace.h
9261 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
9262 if eval "test \"\${$as_ac_Header+set}\" = set"; then
9263 echo "$as_me:$LINENO: checking for $ac_header" >&5
9264 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
9265 if eval "test \"\${$as_ac_Header+set}\" = set"; then
9266 echo $ECHO_N "(cached) $ECHO_C" >&6
9268 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
9269 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
9271 # Is the header compilable?
9272 echo "$as_me:$LINENO: checking $ac_header usability" >&5
9273 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
9274 cat >conftest.$ac_ext <<_ACEOF
9277 cat confdefs.h >>conftest.$ac_ext
9278 cat >>conftest.$ac_ext <<_ACEOF
9279 /* end confdefs.h. */
9280 $ac_includes_default
9281 #include <$ac_header>
9283 rm -f conftest.$ac_objext
9284 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
9285 (eval $ac_compile) 2>conftest.er1
9287 grep -v '^ *+' conftest.er1 >conftest.err
9289 cat conftest.err >&5
9290 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9291 (exit $ac_status); } &&
9292 { ac_try='test -z "$ac_c_werror_flag"
9293 || test ! -s conftest.err'
9294 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9297 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9298 (exit $ac_status); }; } &&
9299 { ac_try='test -s conftest.$ac_objext'
9300 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9303 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9304 (exit $ac_status); }; }; then
9305 ac_header_compiler=yes
9307 echo "$as_me: failed program was:" >&5
9308 sed 's/^/| /' conftest.$ac_ext >&5
9310 ac_header_compiler=no
9312 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
9313 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
9314 echo "${ECHO_T}$ac_header_compiler" >&6
9316 # Is the header present?
9317 echo "$as_me:$LINENO: checking $ac_header presence" >&5
9318 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
9319 cat >conftest.$ac_ext <<_ACEOF
9322 cat confdefs.h >>conftest.$ac_ext
9323 cat >>conftest.$ac_ext <<_ACEOF
9324 /* end confdefs.h. */
9325 #include <$ac_header>
9327 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
9328 (eval $ac_cpp conftest.$ac_ext) 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); } >/dev/null; then
9335 if test -s conftest.err; then
9336 ac_cpp_err=$ac_c_preproc_warn_flag
9337 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
9344 if test -z "$ac_cpp_err"; then
9345 ac_header_preproc=yes
9347 echo "$as_me: failed program was:" >&5
9348 sed 's/^/| /' conftest.$ac_ext >&5
9350 ac_header_preproc=no
9352 rm -f conftest.err conftest.$ac_ext
9353 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
9354 echo "${ECHO_T}$ac_header_preproc" >&6
9356 # So? What about this header?
9357 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
9359 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
9360 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
9361 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
9362 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
9363 ac_header_preproc=yes
9366 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
9367 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
9368 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
9369 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
9370 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
9371 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
9372 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
9373 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
9374 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
9375 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
9376 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
9377 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
9380 ## ------------------------------------------ ##
9381 ## Report this to the AC_PACKAGE_NAME lists. ##
9382 ## ------------------------------------------ ##
9385 sed "s/^/$as_me: WARNING: /" >&2
9388 echo "$as_me:$LINENO: checking for $ac_header" >&5
9389 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
9390 if eval "test \"\${$as_ac_Header+set}\" = set"; then
9391 echo $ECHO_N "(cached) $ECHO_C" >&6
9393 eval "$as_ac_Header=\$ac_header_preproc"
9395 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
9396 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
9399 if test `eval echo '${'$as_ac_Header'}'` = yes; then
9400 cat >>confdefs.h <<_ACEOF
9401 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
9410 for ac_header in sys/reg.h sys/debugreg.h
9412 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
9413 if eval "test \"\${$as_ac_Header+set}\" = set"; then
9414 echo "$as_me:$LINENO: checking for $ac_header" >&5
9415 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
9416 if eval "test \"\${$as_ac_Header+set}\" = set"; then
9417 echo $ECHO_N "(cached) $ECHO_C" >&6
9419 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
9420 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
9422 # Is the header compilable?
9423 echo "$as_me:$LINENO: checking $ac_header usability" >&5
9424 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
9425 cat >conftest.$ac_ext <<_ACEOF
9428 cat confdefs.h >>conftest.$ac_ext
9429 cat >>conftest.$ac_ext <<_ACEOF
9430 /* end confdefs.h. */
9431 $ac_includes_default
9432 #include <$ac_header>
9434 rm -f conftest.$ac_objext
9435 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
9436 (eval $ac_compile) 2>conftest.er1
9438 grep -v '^ *+' conftest.er1 >conftest.err
9440 cat conftest.err >&5
9441 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9442 (exit $ac_status); } &&
9443 { ac_try='test -z "$ac_c_werror_flag"
9444 || test ! -s conftest.err'
9445 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9448 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9449 (exit $ac_status); }; } &&
9450 { ac_try='test -s conftest.$ac_objext'
9451 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9454 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9455 (exit $ac_status); }; }; then
9456 ac_header_compiler=yes
9458 echo "$as_me: failed program was:" >&5
9459 sed 's/^/| /' conftest.$ac_ext >&5
9461 ac_header_compiler=no
9463 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
9464 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
9465 echo "${ECHO_T}$ac_header_compiler" >&6
9467 # Is the header present?
9468 echo "$as_me:$LINENO: checking $ac_header presence" >&5
9469 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
9470 cat >conftest.$ac_ext <<_ACEOF
9473 cat confdefs.h >>conftest.$ac_ext
9474 cat >>conftest.$ac_ext <<_ACEOF
9475 /* end confdefs.h. */
9476 #include <$ac_header>
9478 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
9479 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
9481 grep -v '^ *+' conftest.er1 >conftest.err
9483 cat conftest.err >&5
9484 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9485 (exit $ac_status); } >/dev/null; then
9486 if test -s conftest.err; then
9487 ac_cpp_err=$ac_c_preproc_warn_flag
9488 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
9495 if test -z "$ac_cpp_err"; then
9496 ac_header_preproc=yes
9498 echo "$as_me: failed program was:" >&5
9499 sed 's/^/| /' conftest.$ac_ext >&5
9501 ac_header_preproc=no
9503 rm -f conftest.err conftest.$ac_ext
9504 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
9505 echo "${ECHO_T}$ac_header_preproc" >&6
9507 # So? What about this header?
9508 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
9510 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
9511 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
9512 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
9513 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
9514 ac_header_preproc=yes
9517 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
9518 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
9519 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
9520 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
9521 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
9522 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
9523 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
9524 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
9525 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
9526 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
9527 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
9528 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
9531 ## ------------------------------------------ ##
9532 ## Report this to the AC_PACKAGE_NAME lists. ##
9533 ## ------------------------------------------ ##
9536 sed "s/^/$as_me: WARNING: /" >&2
9539 echo "$as_me:$LINENO: checking for $ac_header" >&5
9540 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
9541 if eval "test \"\${$as_ac_Header+set}\" = set"; then
9542 echo $ECHO_N "(cached) $ECHO_C" >&6
9544 eval "$as_ac_Header=\$ac_header_preproc"
9546 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
9547 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
9550 if test `eval echo '${'$as_ac_Header'}'` = yes; then
9551 cat >>confdefs.h <<_ACEOF
9552 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
9560 for ac_header in sys/select.h
9562 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
9563 if eval "test \"\${$as_ac_Header+set}\" = set"; then
9564 echo "$as_me:$LINENO: checking for $ac_header" >&5
9565 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
9566 if eval "test \"\${$as_ac_Header+set}\" = set"; then
9567 echo $ECHO_N "(cached) $ECHO_C" >&6
9569 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
9570 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
9572 # Is the header compilable?
9573 echo "$as_me:$LINENO: checking $ac_header usability" >&5
9574 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
9575 cat >conftest.$ac_ext <<_ACEOF
9578 cat confdefs.h >>conftest.$ac_ext
9579 cat >>conftest.$ac_ext <<_ACEOF
9580 /* end confdefs.h. */
9581 $ac_includes_default
9582 #include <$ac_header>
9584 rm -f conftest.$ac_objext
9585 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
9586 (eval $ac_compile) 2>conftest.er1
9588 grep -v '^ *+' conftest.er1 >conftest.err
9590 cat conftest.err >&5
9591 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9592 (exit $ac_status); } &&
9593 { ac_try='test -z "$ac_c_werror_flag"
9594 || test ! -s conftest.err'
9595 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9598 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9599 (exit $ac_status); }; } &&
9600 { ac_try='test -s conftest.$ac_objext'
9601 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9604 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9605 (exit $ac_status); }; }; then
9606 ac_header_compiler=yes
9608 echo "$as_me: failed program was:" >&5
9609 sed 's/^/| /' conftest.$ac_ext >&5
9611 ac_header_compiler=no
9613 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
9614 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
9615 echo "${ECHO_T}$ac_header_compiler" >&6
9617 # Is the header present?
9618 echo "$as_me:$LINENO: checking $ac_header presence" >&5
9619 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
9620 cat >conftest.$ac_ext <<_ACEOF
9623 cat confdefs.h >>conftest.$ac_ext
9624 cat >>conftest.$ac_ext <<_ACEOF
9625 /* end confdefs.h. */
9626 #include <$ac_header>
9628 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
9629 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
9631 grep -v '^ *+' conftest.er1 >conftest.err
9633 cat conftest.err >&5
9634 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9635 (exit $ac_status); } >/dev/null; then
9636 if test -s conftest.err; then
9637 ac_cpp_err=$ac_c_preproc_warn_flag
9638 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
9645 if test -z "$ac_cpp_err"; then
9646 ac_header_preproc=yes
9648 echo "$as_me: failed program was:" >&5
9649 sed 's/^/| /' conftest.$ac_ext >&5
9651 ac_header_preproc=no
9653 rm -f conftest.err conftest.$ac_ext
9654 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
9655 echo "${ECHO_T}$ac_header_preproc" >&6
9657 # So? What about this header?
9658 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
9660 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
9661 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
9662 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
9663 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
9664 ac_header_preproc=yes
9667 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
9668 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
9669 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
9670 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
9671 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
9672 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
9673 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
9674 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
9675 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
9676 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
9677 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
9678 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
9681 ## ------------------------------------------ ##
9682 ## Report this to the AC_PACKAGE_NAME lists. ##
9683 ## ------------------------------------------ ##
9686 sed "s/^/$as_me: WARNING: /" >&2
9689 echo "$as_me:$LINENO: checking for $ac_header" >&5
9690 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
9691 if eval "test \"\${$as_ac_Header+set}\" = set"; then
9692 echo $ECHO_N "(cached) $ECHO_C" >&6
9694 eval "$as_ac_Header=\$ac_header_preproc"
9696 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
9697 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
9700 if test `eval echo '${'$as_ac_Header'}'` = yes; then
9701 cat >>confdefs.h <<_ACEOF
9702 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
9710 for ac_header in sys/syscall.h
9712 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
9713 if eval "test \"\${$as_ac_Header+set}\" = set"; then
9714 echo "$as_me:$LINENO: checking for $ac_header" >&5
9715 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
9716 if eval "test \"\${$as_ac_Header+set}\" = set"; then
9717 echo $ECHO_N "(cached) $ECHO_C" >&6
9719 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
9720 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
9722 # Is the header compilable?
9723 echo "$as_me:$LINENO: checking $ac_header usability" >&5
9724 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
9725 cat >conftest.$ac_ext <<_ACEOF
9728 cat confdefs.h >>conftest.$ac_ext
9729 cat >>conftest.$ac_ext <<_ACEOF
9730 /* end confdefs.h. */
9731 $ac_includes_default
9732 #include <$ac_header>
9734 rm -f conftest.$ac_objext
9735 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
9736 (eval $ac_compile) 2>conftest.er1
9738 grep -v '^ *+' conftest.er1 >conftest.err
9740 cat conftest.err >&5
9741 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9742 (exit $ac_status); } &&
9743 { ac_try='test -z "$ac_c_werror_flag"
9744 || test ! -s conftest.err'
9745 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9748 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9749 (exit $ac_status); }; } &&
9750 { ac_try='test -s conftest.$ac_objext'
9751 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9754 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9755 (exit $ac_status); }; }; then
9756 ac_header_compiler=yes
9758 echo "$as_me: failed program was:" >&5
9759 sed 's/^/| /' conftest.$ac_ext >&5
9761 ac_header_compiler=no
9763 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
9764 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
9765 echo "${ECHO_T}$ac_header_compiler" >&6
9767 # Is the header present?
9768 echo "$as_me:$LINENO: checking $ac_header presence" >&5
9769 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
9770 cat >conftest.$ac_ext <<_ACEOF
9773 cat confdefs.h >>conftest.$ac_ext
9774 cat >>conftest.$ac_ext <<_ACEOF
9775 /* end confdefs.h. */
9776 #include <$ac_header>
9778 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
9779 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
9781 grep -v '^ *+' conftest.er1 >conftest.err
9783 cat conftest.err >&5
9784 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9785 (exit $ac_status); } >/dev/null; then
9786 if test -s conftest.err; then
9787 ac_cpp_err=$ac_c_preproc_warn_flag
9788 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
9795 if test -z "$ac_cpp_err"; then
9796 ac_header_preproc=yes
9798 echo "$as_me: failed program was:" >&5
9799 sed 's/^/| /' conftest.$ac_ext >&5
9801 ac_header_preproc=no
9803 rm -f conftest.err conftest.$ac_ext
9804 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
9805 echo "${ECHO_T}$ac_header_preproc" >&6
9807 # So? What about this header?
9808 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
9810 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
9811 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
9812 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
9813 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
9814 ac_header_preproc=yes
9817 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
9818 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
9819 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
9820 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
9821 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
9822 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
9823 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
9824 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
9825 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
9826 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
9827 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
9828 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
9831 ## ------------------------------------------ ##
9832 ## Report this to the AC_PACKAGE_NAME lists. ##
9833 ## ------------------------------------------ ##
9836 sed "s/^/$as_me: WARNING: /" >&2
9839 echo "$as_me:$LINENO: checking for $ac_header" >&5
9840 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
9841 if eval "test \"\${$as_ac_Header+set}\" = set"; then
9842 echo $ECHO_N "(cached) $ECHO_C" >&6
9844 eval "$as_ac_Header=\$ac_header_preproc"
9846 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
9847 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
9850 if test `eval echo '${'$as_ac_Header'}'` = yes; then
9851 cat >>confdefs.h <<_ACEOF
9852 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
9860 for ac_header in sys/types.h
9862 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
9863 if eval "test \"\${$as_ac_Header+set}\" = set"; then
9864 echo "$as_me:$LINENO: checking for $ac_header" >&5
9865 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
9866 if eval "test \"\${$as_ac_Header+set}\" = set"; then
9867 echo $ECHO_N "(cached) $ECHO_C" >&6
9869 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
9870 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
9872 # Is the header compilable?
9873 echo "$as_me:$LINENO: checking $ac_header usability" >&5
9874 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
9875 cat >conftest.$ac_ext <<_ACEOF
9878 cat confdefs.h >>conftest.$ac_ext
9879 cat >>conftest.$ac_ext <<_ACEOF
9880 /* end confdefs.h. */
9881 $ac_includes_default
9882 #include <$ac_header>
9884 rm -f conftest.$ac_objext
9885 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
9886 (eval $ac_compile) 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); } &&
9893 { ac_try='test -z "$ac_c_werror_flag"
9894 || test ! -s conftest.err'
9895 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9898 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9899 (exit $ac_status); }; } &&
9900 { ac_try='test -s conftest.$ac_objext'
9901 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9904 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9905 (exit $ac_status); }; }; then
9906 ac_header_compiler=yes
9908 echo "$as_me: failed program was:" >&5
9909 sed 's/^/| /' conftest.$ac_ext >&5
9911 ac_header_compiler=no
9913 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
9914 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
9915 echo "${ECHO_T}$ac_header_compiler" >&6
9917 # Is the header present?
9918 echo "$as_me:$LINENO: checking $ac_header presence" >&5
9919 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
9920 cat >conftest.$ac_ext <<_ACEOF
9923 cat confdefs.h >>conftest.$ac_ext
9924 cat >>conftest.$ac_ext <<_ACEOF
9925 /* end confdefs.h. */
9926 #include <$ac_header>
9928 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
9929 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
9931 grep -v '^ *+' conftest.er1 >conftest.err
9933 cat conftest.err >&5
9934 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9935 (exit $ac_status); } >/dev/null; then
9936 if test -s conftest.err; then
9937 ac_cpp_err=$ac_c_preproc_warn_flag
9938 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
9945 if test -z "$ac_cpp_err"; then
9946 ac_header_preproc=yes
9948 echo "$as_me: failed program was:" >&5
9949 sed 's/^/| /' conftest.$ac_ext >&5
9951 ac_header_preproc=no
9953 rm -f conftest.err conftest.$ac_ext
9954 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
9955 echo "${ECHO_T}$ac_header_preproc" >&6
9957 # So? What about this header?
9958 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
9960 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
9961 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
9962 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
9963 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
9964 ac_header_preproc=yes
9967 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
9968 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
9969 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
9970 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
9971 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
9972 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
9973 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
9974 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
9975 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
9976 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
9977 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
9978 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
9981 ## ------------------------------------------ ##
9982 ## Report this to the AC_PACKAGE_NAME lists. ##
9983 ## ------------------------------------------ ##
9986 sed "s/^/$as_me: WARNING: /" >&2
9989 echo "$as_me:$LINENO: checking for $ac_header" >&5
9990 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
9991 if eval "test \"\${$as_ac_Header+set}\" = set"; then
9992 echo $ECHO_N "(cached) $ECHO_C" >&6
9994 eval "$as_ac_Header=\$ac_header_preproc"
9996 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
9997 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
10000 if test `eval echo '${'$as_ac_Header'}'` = yes; then
10001 cat >>confdefs.h <<_ACEOF
10002 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
10010 for ac_header in sys/user.h
10012 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
10013 echo "$as_me:$LINENO: checking for $ac_header" >&5
10014 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
10015 if eval "test \"\${$as_ac_Header+set}\" = set"; then
10016 echo $ECHO_N "(cached) $ECHO_C" >&6
10018 cat >conftest.$ac_ext <<_ACEOF
10021 cat confdefs.h >>conftest.$ac_ext
10022 cat >>conftest.$ac_ext <<_ACEOF
10023 /* end confdefs.h. */
10024 #if HAVE_SYS_PARAM_H
10025 # include <sys/param.h>
10029 #include <$ac_header>
10031 rm -f conftest.$ac_objext
10032 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
10033 (eval $ac_compile) 2>conftest.er1
10035 grep -v '^ *+' conftest.er1 >conftest.err
10037 cat conftest.err >&5
10038 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10039 (exit $ac_status); } &&
10040 { ac_try='test -z "$ac_c_werror_flag"
10041 || test ! -s conftest.err'
10042 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10043 (eval $ac_try) 2>&5
10045 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10046 (exit $ac_status); }; } &&
10047 { ac_try='test -s conftest.$ac_objext'
10048 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10049 (eval $ac_try) 2>&5
10051 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10052 (exit $ac_status); }; }; then
10053 eval "$as_ac_Header=yes"
10055 echo "$as_me: failed program was:" >&5
10056 sed 's/^/| /' conftest.$ac_ext >&5
10058 eval "$as_ac_Header=no"
10060 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
10062 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
10063 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
10064 if test `eval echo '${'$as_ac_Header'}'` = yes; then
10065 cat >>confdefs.h <<_ACEOF
10066 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
10075 for ac_header in sys/wait.h wait.h
10077 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
10078 if eval "test \"\${$as_ac_Header+set}\" = set"; then
10079 echo "$as_me:$LINENO: checking for $ac_header" >&5
10080 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
10081 if eval "test \"\${$as_ac_Header+set}\" = set"; then
10082 echo $ECHO_N "(cached) $ECHO_C" >&6
10084 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
10085 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
10087 # Is the header compilable?
10088 echo "$as_me:$LINENO: checking $ac_header usability" >&5
10089 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
10090 cat >conftest.$ac_ext <<_ACEOF
10093 cat confdefs.h >>conftest.$ac_ext
10094 cat >>conftest.$ac_ext <<_ACEOF
10095 /* end confdefs.h. */
10096 $ac_includes_default
10097 #include <$ac_header>
10099 rm -f conftest.$ac_objext
10100 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
10101 (eval $ac_compile) 2>conftest.er1
10103 grep -v '^ *+' conftest.er1 >conftest.err
10105 cat conftest.err >&5
10106 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10107 (exit $ac_status); } &&
10108 { ac_try='test -z "$ac_c_werror_flag"
10109 || test ! -s conftest.err'
10110 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10111 (eval $ac_try) 2>&5
10113 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10114 (exit $ac_status); }; } &&
10115 { ac_try='test -s conftest.$ac_objext'
10116 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10117 (eval $ac_try) 2>&5
10119 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10120 (exit $ac_status); }; }; then
10121 ac_header_compiler=yes
10123 echo "$as_me: failed program was:" >&5
10124 sed 's/^/| /' conftest.$ac_ext >&5
10126 ac_header_compiler=no
10128 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
10129 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
10130 echo "${ECHO_T}$ac_header_compiler" >&6
10132 # Is the header present?
10133 echo "$as_me:$LINENO: checking $ac_header presence" >&5
10134 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
10135 cat >conftest.$ac_ext <<_ACEOF
10138 cat confdefs.h >>conftest.$ac_ext
10139 cat >>conftest.$ac_ext <<_ACEOF
10140 /* end confdefs.h. */
10141 #include <$ac_header>
10143 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
10144 (eval $ac_cpp conftest.$ac_ext) 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); } >/dev/null; then
10151 if test -s conftest.err; then
10152 ac_cpp_err=$ac_c_preproc_warn_flag
10153 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
10160 if test -z "$ac_cpp_err"; then
10161 ac_header_preproc=yes
10163 echo "$as_me: failed program was:" >&5
10164 sed 's/^/| /' conftest.$ac_ext >&5
10166 ac_header_preproc=no
10168 rm -f conftest.err conftest.$ac_ext
10169 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
10170 echo "${ECHO_T}$ac_header_preproc" >&6
10172 # So? What about this header?
10173 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
10175 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
10176 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
10177 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
10178 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
10179 ac_header_preproc=yes
10182 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
10183 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
10184 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
10185 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
10186 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
10187 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
10188 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
10189 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
10190 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
10191 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
10192 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
10193 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
10196 ## ------------------------------------------ ##
10197 ## Report this to the AC_PACKAGE_NAME lists. ##
10198 ## ------------------------------------------ ##
10201 sed "s/^/$as_me: WARNING: /" >&2
10204 echo "$as_me:$LINENO: checking for $ac_header" >&5
10205 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
10206 if eval "test \"\${$as_ac_Header+set}\" = set"; then
10207 echo $ECHO_N "(cached) $ECHO_C" >&6
10209 eval "$as_ac_Header=\$ac_header_preproc"
10211 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
10212 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
10215 if test `eval echo '${'$as_ac_Header'}'` = yes; then
10216 cat >>confdefs.h <<_ACEOF
10217 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
10227 for ac_header in termios.h termio.h sgtty.h
10229 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
10230 if eval "test \"\${$as_ac_Header+set}\" = set"; then
10231 echo "$as_me:$LINENO: checking for $ac_header" >&5
10232 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
10233 if eval "test \"\${$as_ac_Header+set}\" = set"; then
10234 echo $ECHO_N "(cached) $ECHO_C" >&6
10236 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
10237 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
10239 # Is the header compilable?
10240 echo "$as_me:$LINENO: checking $ac_header usability" >&5
10241 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
10242 cat >conftest.$ac_ext <<_ACEOF
10245 cat confdefs.h >>conftest.$ac_ext
10246 cat >>conftest.$ac_ext <<_ACEOF
10247 /* end confdefs.h. */
10248 $ac_includes_default
10249 #include <$ac_header>
10251 rm -f conftest.$ac_objext
10252 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
10253 (eval $ac_compile) 2>conftest.er1
10255 grep -v '^ *+' conftest.er1 >conftest.err
10257 cat conftest.err >&5
10258 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10259 (exit $ac_status); } &&
10260 { ac_try='test -z "$ac_c_werror_flag"
10261 || test ! -s conftest.err'
10262 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10263 (eval $ac_try) 2>&5
10265 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10266 (exit $ac_status); }; } &&
10267 { ac_try='test -s conftest.$ac_objext'
10268 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10269 (eval $ac_try) 2>&5
10271 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10272 (exit $ac_status); }; }; then
10273 ac_header_compiler=yes
10275 echo "$as_me: failed program was:" >&5
10276 sed 's/^/| /' conftest.$ac_ext >&5
10278 ac_header_compiler=no
10280 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
10281 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
10282 echo "${ECHO_T}$ac_header_compiler" >&6
10284 # Is the header present?
10285 echo "$as_me:$LINENO: checking $ac_header presence" >&5
10286 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
10287 cat >conftest.$ac_ext <<_ACEOF
10290 cat confdefs.h >>conftest.$ac_ext
10291 cat >>conftest.$ac_ext <<_ACEOF
10292 /* end confdefs.h. */
10293 #include <$ac_header>
10295 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
10296 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
10298 grep -v '^ *+' conftest.er1 >conftest.err
10300 cat conftest.err >&5
10301 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10302 (exit $ac_status); } >/dev/null; then
10303 if test -s conftest.err; then
10304 ac_cpp_err=$ac_c_preproc_warn_flag
10305 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
10312 if test -z "$ac_cpp_err"; then
10313 ac_header_preproc=yes
10315 echo "$as_me: failed program was:" >&5
10316 sed 's/^/| /' conftest.$ac_ext >&5
10318 ac_header_preproc=no
10320 rm -f conftest.err conftest.$ac_ext
10321 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
10322 echo "${ECHO_T}$ac_header_preproc" >&6
10324 # So? What about this header?
10325 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
10327 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
10328 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
10329 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
10330 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
10331 ac_header_preproc=yes
10334 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
10335 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
10336 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
10337 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
10338 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
10339 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
10340 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
10341 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
10342 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
10343 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
10344 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
10345 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
10348 ## ------------------------------------------ ##
10349 ## Report this to the AC_PACKAGE_NAME lists. ##
10350 ## ------------------------------------------ ##
10353 sed "s/^/$as_me: WARNING: /" >&2
10356 echo "$as_me:$LINENO: checking for $ac_header" >&5
10357 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
10358 if eval "test \"\${$as_ac_Header+set}\" = set"; then
10359 echo $ECHO_N "(cached) $ECHO_C" >&6
10361 eval "$as_ac_Header=\$ac_header_preproc"
10363 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
10364 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
10367 if test `eval echo '${'$as_ac_Header'}'` = yes; then
10368 cat >>confdefs.h <<_ACEOF
10369 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
10377 for ac_header in unistd.h
10379 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
10380 if eval "test \"\${$as_ac_Header+set}\" = set"; then
10381 echo "$as_me:$LINENO: checking for $ac_header" >&5
10382 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
10383 if eval "test \"\${$as_ac_Header+set}\" = set"; then
10384 echo $ECHO_N "(cached) $ECHO_C" >&6
10386 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
10387 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
10389 # Is the header compilable?
10390 echo "$as_me:$LINENO: checking $ac_header usability" >&5
10391 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
10392 cat >conftest.$ac_ext <<_ACEOF
10395 cat confdefs.h >>conftest.$ac_ext
10396 cat >>conftest.$ac_ext <<_ACEOF
10397 /* end confdefs.h. */
10398 $ac_includes_default
10399 #include <$ac_header>
10401 rm -f conftest.$ac_objext
10402 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
10403 (eval $ac_compile) 2>conftest.er1
10405 grep -v '^ *+' conftest.er1 >conftest.err
10407 cat conftest.err >&5
10408 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10409 (exit $ac_status); } &&
10410 { ac_try='test -z "$ac_c_werror_flag"
10411 || test ! -s conftest.err'
10412 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10413 (eval $ac_try) 2>&5
10415 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10416 (exit $ac_status); }; } &&
10417 { ac_try='test -s conftest.$ac_objext'
10418 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10419 (eval $ac_try) 2>&5
10421 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10422 (exit $ac_status); }; }; then
10423 ac_header_compiler=yes
10425 echo "$as_me: failed program was:" >&5
10426 sed 's/^/| /' conftest.$ac_ext >&5
10428 ac_header_compiler=no
10430 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
10431 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
10432 echo "${ECHO_T}$ac_header_compiler" >&6
10434 # Is the header present?
10435 echo "$as_me:$LINENO: checking $ac_header presence" >&5
10436 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
10437 cat >conftest.$ac_ext <<_ACEOF
10440 cat confdefs.h >>conftest.$ac_ext
10441 cat >>conftest.$ac_ext <<_ACEOF
10442 /* end confdefs.h. */
10443 #include <$ac_header>
10445 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
10446 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
10448 grep -v '^ *+' conftest.er1 >conftest.err
10450 cat conftest.err >&5
10451 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10452 (exit $ac_status); } >/dev/null; then
10453 if test -s conftest.err; then
10454 ac_cpp_err=$ac_c_preproc_warn_flag
10455 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
10462 if test -z "$ac_cpp_err"; then
10463 ac_header_preproc=yes
10465 echo "$as_me: failed program was:" >&5
10466 sed 's/^/| /' conftest.$ac_ext >&5
10468 ac_header_preproc=no
10470 rm -f conftest.err conftest.$ac_ext
10471 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
10472 echo "${ECHO_T}$ac_header_preproc" >&6
10474 # So? What about this header?
10475 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
10477 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
10478 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
10479 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
10480 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
10481 ac_header_preproc=yes
10484 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
10485 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
10486 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
10487 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
10488 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
10489 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
10490 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
10491 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
10492 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
10493 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
10494 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
10495 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
10498 ## ------------------------------------------ ##
10499 ## Report this to the AC_PACKAGE_NAME lists. ##
10500 ## ------------------------------------------ ##
10503 sed "s/^/$as_me: WARNING: /" >&2
10506 echo "$as_me:$LINENO: checking for $ac_header" >&5
10507 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
10508 if eval "test \"\${$as_ac_Header+set}\" = set"; then
10509 echo $ECHO_N "(cached) $ECHO_C" >&6
10511 eval "$as_ac_Header=\$ac_header_preproc"
10513 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
10514 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
10517 if test `eval echo '${'$as_ac_Header'}'` = yes; then
10518 cat >>confdefs.h <<_ACEOF
10519 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
10527 # On Solaris 2.[789], we need to define _MSE_INT_H to avoid a clash
10528 # between <widec.h> and <wchar.h> that would cause AC_CHECK_HEADERS to
10529 # think that we don't have <curses.h> if we're using GCC.
10532 if test "$GCC" = yes; then
10534 cat >>confdefs.h <<\_ACEOF
10535 #define _MSE_INT_H 1
10544 for ac_header in curses.h cursesX.h ncurses.h ncurses/ncurses.h
10546 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
10547 if eval "test \"\${$as_ac_Header+set}\" = set"; then
10548 echo "$as_me:$LINENO: checking for $ac_header" >&5
10549 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
10550 if eval "test \"\${$as_ac_Header+set}\" = set"; then
10551 echo $ECHO_N "(cached) $ECHO_C" >&6
10553 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
10554 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
10556 # Is the header compilable?
10557 echo "$as_me:$LINENO: checking $ac_header usability" >&5
10558 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
10559 cat >conftest.$ac_ext <<_ACEOF
10562 cat confdefs.h >>conftest.$ac_ext
10563 cat >>conftest.$ac_ext <<_ACEOF
10564 /* end confdefs.h. */
10565 $ac_includes_default
10566 #include <$ac_header>
10568 rm -f conftest.$ac_objext
10569 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
10570 (eval $ac_compile) 2>conftest.er1
10572 grep -v '^ *+' conftest.er1 >conftest.err
10574 cat conftest.err >&5
10575 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10576 (exit $ac_status); } &&
10577 { ac_try='test -z "$ac_c_werror_flag"
10578 || test ! -s conftest.err'
10579 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10580 (eval $ac_try) 2>&5
10582 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10583 (exit $ac_status); }; } &&
10584 { ac_try='test -s conftest.$ac_objext'
10585 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10586 (eval $ac_try) 2>&5
10588 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10589 (exit $ac_status); }; }; then
10590 ac_header_compiler=yes
10592 echo "$as_me: failed program was:" >&5
10593 sed 's/^/| /' conftest.$ac_ext >&5
10595 ac_header_compiler=no
10597 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
10598 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
10599 echo "${ECHO_T}$ac_header_compiler" >&6
10601 # Is the header present?
10602 echo "$as_me:$LINENO: checking $ac_header presence" >&5
10603 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
10604 cat >conftest.$ac_ext <<_ACEOF
10607 cat confdefs.h >>conftest.$ac_ext
10608 cat >>conftest.$ac_ext <<_ACEOF
10609 /* end confdefs.h. */
10610 #include <$ac_header>
10612 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
10613 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
10615 grep -v '^ *+' conftest.er1 >conftest.err
10617 cat conftest.err >&5
10618 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10619 (exit $ac_status); } >/dev/null; then
10620 if test -s conftest.err; then
10621 ac_cpp_err=$ac_c_preproc_warn_flag
10622 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
10629 if test -z "$ac_cpp_err"; then
10630 ac_header_preproc=yes
10632 echo "$as_me: failed program was:" >&5
10633 sed 's/^/| /' conftest.$ac_ext >&5
10635 ac_header_preproc=no
10637 rm -f conftest.err conftest.$ac_ext
10638 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
10639 echo "${ECHO_T}$ac_header_preproc" >&6
10641 # So? What about this header?
10642 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
10644 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
10645 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
10646 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
10647 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
10648 ac_header_preproc=yes
10651 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
10652 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
10653 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
10654 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
10655 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
10656 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
10657 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
10658 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
10659 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
10660 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
10661 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
10662 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
10665 ## ------------------------------------------ ##
10666 ## Report this to the AC_PACKAGE_NAME lists. ##
10667 ## ------------------------------------------ ##
10670 sed "s/^/$as_me: WARNING: /" >&2
10673 echo "$as_me:$LINENO: checking for $ac_header" >&5
10674 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
10675 if eval "test \"\${$as_ac_Header+set}\" = set"; then
10676 echo $ECHO_N "(cached) $ECHO_C" >&6
10678 eval "$as_ac_Header=\$ac_header_preproc"
10680 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
10681 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
10684 if test `eval echo '${'$as_ac_Header'}'` = yes; then
10685 cat >>confdefs.h <<_ACEOF
10686 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
10694 for ac_header in ncurses/term.h
10696 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
10697 if eval "test \"\${$as_ac_Header+set}\" = set"; then
10698 echo "$as_me:$LINENO: checking for $ac_header" >&5
10699 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
10700 if eval "test \"\${$as_ac_Header+set}\" = set"; then
10701 echo $ECHO_N "(cached) $ECHO_C" >&6
10703 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
10704 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
10706 # Is the header compilable?
10707 echo "$as_me:$LINENO: checking $ac_header usability" >&5
10708 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
10709 cat >conftest.$ac_ext <<_ACEOF
10712 cat confdefs.h >>conftest.$ac_ext
10713 cat >>conftest.$ac_ext <<_ACEOF
10714 /* end confdefs.h. */
10715 $ac_includes_default
10716 #include <$ac_header>
10718 rm -f conftest.$ac_objext
10719 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
10720 (eval $ac_compile) 2>conftest.er1
10722 grep -v '^ *+' conftest.er1 >conftest.err
10724 cat conftest.err >&5
10725 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10726 (exit $ac_status); } &&
10727 { ac_try='test -z "$ac_c_werror_flag"
10728 || test ! -s conftest.err'
10729 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10730 (eval $ac_try) 2>&5
10732 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10733 (exit $ac_status); }; } &&
10734 { ac_try='test -s conftest.$ac_objext'
10735 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10736 (eval $ac_try) 2>&5
10738 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10739 (exit $ac_status); }; }; then
10740 ac_header_compiler=yes
10742 echo "$as_me: failed program was:" >&5
10743 sed 's/^/| /' conftest.$ac_ext >&5
10745 ac_header_compiler=no
10747 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
10748 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
10749 echo "${ECHO_T}$ac_header_compiler" >&6
10751 # Is the header present?
10752 echo "$as_me:$LINENO: checking $ac_header presence" >&5
10753 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
10754 cat >conftest.$ac_ext <<_ACEOF
10757 cat confdefs.h >>conftest.$ac_ext
10758 cat >>conftest.$ac_ext <<_ACEOF
10759 /* end confdefs.h. */
10760 #include <$ac_header>
10762 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
10763 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
10765 grep -v '^ *+' conftest.er1 >conftest.err
10767 cat conftest.err >&5
10768 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10769 (exit $ac_status); } >/dev/null; then
10770 if test -s conftest.err; then
10771 ac_cpp_err=$ac_c_preproc_warn_flag
10772 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
10779 if test -z "$ac_cpp_err"; then
10780 ac_header_preproc=yes
10782 echo "$as_me: failed program was:" >&5
10783 sed 's/^/| /' conftest.$ac_ext >&5
10785 ac_header_preproc=no
10787 rm -f conftest.err conftest.$ac_ext
10788 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
10789 echo "${ECHO_T}$ac_header_preproc" >&6
10791 # So? What about this header?
10792 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
10794 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
10795 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
10796 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
10797 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
10798 ac_header_preproc=yes
10801 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
10802 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
10803 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
10804 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
10805 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
10806 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
10807 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
10808 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
10809 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
10810 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
10811 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
10812 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
10815 ## ------------------------------------------ ##
10816 ## Report this to the AC_PACKAGE_NAME lists. ##
10817 ## ------------------------------------------ ##
10820 sed "s/^/$as_me: WARNING: /" >&2
10823 echo "$as_me:$LINENO: checking for $ac_header" >&5
10824 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
10825 if eval "test \"\${$as_ac_Header+set}\" = set"; then
10826 echo $ECHO_N "(cached) $ECHO_C" >&6
10828 eval "$as_ac_Header=\$ac_header_preproc"
10830 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
10831 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
10834 if test `eval echo '${'$as_ac_Header'}'` = yes; then
10835 cat >>confdefs.h <<_ACEOF
10836 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
10844 for ac_header in term.h
10846 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
10847 echo "$as_me:$LINENO: checking for $ac_header" >&5
10848 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
10849 if eval "test \"\${$as_ac_Header+set}\" = set"; then
10850 echo $ECHO_N "(cached) $ECHO_C" >&6
10852 cat >conftest.$ac_ext <<_ACEOF
10855 cat confdefs.h >>conftest.$ac_ext
10856 cat >>conftest.$ac_ext <<_ACEOF
10857 /* end confdefs.h. */
10859 # include <curses.h>
10863 #include <$ac_header>
10865 rm -f conftest.$ac_objext
10866 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
10867 (eval $ac_compile) 2>conftest.er1
10869 grep -v '^ *+' conftest.er1 >conftest.err
10871 cat conftest.err >&5
10872 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10873 (exit $ac_status); } &&
10874 { ac_try='test -z "$ac_c_werror_flag"
10875 || test ! -s conftest.err'
10876 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10877 (eval $ac_try) 2>&5
10879 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10880 (exit $ac_status); }; } &&
10881 { ac_try='test -s conftest.$ac_objext'
10882 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10883 (eval $ac_try) 2>&5
10885 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10886 (exit $ac_status); }; }; then
10887 eval "$as_ac_Header=yes"
10889 echo "$as_me: failed program was:" >&5
10890 sed 's/^/| /' conftest.$ac_ext >&5
10892 eval "$as_ac_Header=no"
10894 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
10896 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
10897 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
10898 if test `eval echo '${'$as_ac_Header'}'` = yes; then
10899 cat >>confdefs.h <<_ACEOF
10900 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
10908 # FIXME: kettenis/20030102: In most cases we include these
10909 # unconditionally, so what's the point in checking these?
10912 for ac_header in ctype.h time.h
10914 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
10915 if eval "test \"\${$as_ac_Header+set}\" = set"; then
10916 echo "$as_me:$LINENO: checking for $ac_header" >&5
10917 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
10918 if eval "test \"\${$as_ac_Header+set}\" = set"; then
10919 echo $ECHO_N "(cached) $ECHO_C" >&6
10921 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
10922 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
10924 # Is the header compilable?
10925 echo "$as_me:$LINENO: checking $ac_header usability" >&5
10926 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
10927 cat >conftest.$ac_ext <<_ACEOF
10930 cat confdefs.h >>conftest.$ac_ext
10931 cat >>conftest.$ac_ext <<_ACEOF
10932 /* end confdefs.h. */
10933 $ac_includes_default
10934 #include <$ac_header>
10936 rm -f conftest.$ac_objext
10937 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
10938 (eval $ac_compile) 2>conftest.er1
10940 grep -v '^ *+' conftest.er1 >conftest.err
10942 cat conftest.err >&5
10943 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10944 (exit $ac_status); } &&
10945 { ac_try='test -z "$ac_c_werror_flag"
10946 || test ! -s conftest.err'
10947 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10948 (eval $ac_try) 2>&5
10950 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10951 (exit $ac_status); }; } &&
10952 { ac_try='test -s conftest.$ac_objext'
10953 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10954 (eval $ac_try) 2>&5
10956 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10957 (exit $ac_status); }; }; then
10958 ac_header_compiler=yes
10960 echo "$as_me: failed program was:" >&5
10961 sed 's/^/| /' conftest.$ac_ext >&5
10963 ac_header_compiler=no
10965 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
10966 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
10967 echo "${ECHO_T}$ac_header_compiler" >&6
10969 # Is the header present?
10970 echo "$as_me:$LINENO: checking $ac_header presence" >&5
10971 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
10972 cat >conftest.$ac_ext <<_ACEOF
10975 cat confdefs.h >>conftest.$ac_ext
10976 cat >>conftest.$ac_ext <<_ACEOF
10977 /* end confdefs.h. */
10978 #include <$ac_header>
10980 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
10981 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
10983 grep -v '^ *+' conftest.er1 >conftest.err
10985 cat conftest.err >&5
10986 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10987 (exit $ac_status); } >/dev/null; then
10988 if test -s conftest.err; then
10989 ac_cpp_err=$ac_c_preproc_warn_flag
10990 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
10997 if test -z "$ac_cpp_err"; then
10998 ac_header_preproc=yes
11000 echo "$as_me: failed program was:" >&5
11001 sed 's/^/| /' conftest.$ac_ext >&5
11003 ac_header_preproc=no
11005 rm -f conftest.err conftest.$ac_ext
11006 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
11007 echo "${ECHO_T}$ac_header_preproc" >&6
11009 # So? What about this header?
11010 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
11012 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
11013 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
11014 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
11015 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
11016 ac_header_preproc=yes
11019 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
11020 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
11021 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
11022 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
11023 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
11024 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
11025 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
11026 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
11027 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
11028 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
11029 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
11030 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
11033 ## ------------------------------------------ ##
11034 ## Report this to the AC_PACKAGE_NAME lists. ##
11035 ## ------------------------------------------ ##
11038 sed "s/^/$as_me: WARNING: /" >&2
11041 echo "$as_me:$LINENO: checking for $ac_header" >&5
11042 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
11043 if eval "test \"\${$as_ac_Header+set}\" = set"; then
11044 echo $ECHO_N "(cached) $ECHO_C" >&6
11046 eval "$as_ac_Header=\$ac_header_preproc"
11048 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
11049 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
11052 if test `eval echo '${'$as_ac_Header'}'` = yes; then
11053 cat >>confdefs.h <<_ACEOF
11054 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
11062 # Create a header we can use portably to get the standard integer types.
11065 inttype_headers=`echo inttypes.h sys/inttypes.h | sed -e 's/,/ /g'`
11067 acx_cv_header_stdint=stddef.h
11068 acx_cv_header_stdint_kind="(already complete)"
11069 for i in stdint.h $inttype_headers; do
11070 unset ac_cv_type_uintptr_t
11071 unset ac_cv_type_uintmax_t
11072 unset ac_cv_type_int_least32_t
11073 unset ac_cv_type_int_fast32_t
11074 unset ac_cv_type_uint64_t
11075 echo $ECHO_N "looking for a compliant stdint.h in $i, $ECHO_C" >&6
11076 echo "$as_me:$LINENO: checking for uintmax_t" >&5
11077 echo $ECHO_N "checking for uintmax_t... $ECHO_C" >&6
11078 if test "${ac_cv_type_uintmax_t+set}" = set; then
11079 echo $ECHO_N "(cached) $ECHO_C" >&6
11081 cat >conftest.$ac_ext <<_ACEOF
11084 cat confdefs.h >>conftest.$ac_ext
11085 cat >>conftest.$ac_ext <<_ACEOF
11086 /* end confdefs.h. */
11087 #include <sys/types.h>
11093 if ((uintmax_t *) 0)
11095 if (sizeof (uintmax_t))
11101 rm -f conftest.$ac_objext
11102 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
11103 (eval $ac_compile) 2>conftest.er1
11105 grep -v '^ *+' conftest.er1 >conftest.err
11107 cat conftest.err >&5
11108 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11109 (exit $ac_status); } &&
11110 { ac_try='test -z "$ac_c_werror_flag"
11111 || test ! -s conftest.err'
11112 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11113 (eval $ac_try) 2>&5
11115 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11116 (exit $ac_status); }; } &&
11117 { ac_try='test -s conftest.$ac_objext'
11118 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11119 (eval $ac_try) 2>&5
11121 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11122 (exit $ac_status); }; }; then
11123 ac_cv_type_uintmax_t=yes
11125 echo "$as_me: failed program was:" >&5
11126 sed 's/^/| /' conftest.$ac_ext >&5
11128 ac_cv_type_uintmax_t=no
11130 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
11132 echo "$as_me:$LINENO: result: $ac_cv_type_uintmax_t" >&5
11133 echo "${ECHO_T}$ac_cv_type_uintmax_t" >&6
11134 if test $ac_cv_type_uintmax_t = yes; then
11135 acx_cv_header_stdint=$i
11140 echo "$as_me:$LINENO: checking for uintptr_t" >&5
11141 echo $ECHO_N "checking for uintptr_t... $ECHO_C" >&6
11142 if test "${ac_cv_type_uintptr_t+set}" = set; then
11143 echo $ECHO_N "(cached) $ECHO_C" >&6
11145 cat >conftest.$ac_ext <<_ACEOF
11148 cat confdefs.h >>conftest.$ac_ext
11149 cat >>conftest.$ac_ext <<_ACEOF
11150 /* end confdefs.h. */
11151 #include <sys/types.h>
11157 if ((uintptr_t *) 0)
11159 if (sizeof (uintptr_t))
11165 rm -f conftest.$ac_objext
11166 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
11167 (eval $ac_compile) 2>conftest.er1
11169 grep -v '^ *+' conftest.er1 >conftest.err
11171 cat conftest.err >&5
11172 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11173 (exit $ac_status); } &&
11174 { ac_try='test -z "$ac_c_werror_flag"
11175 || test ! -s conftest.err'
11176 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11177 (eval $ac_try) 2>&5
11179 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11180 (exit $ac_status); }; } &&
11181 { ac_try='test -s conftest.$ac_objext'
11182 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11183 (eval $ac_try) 2>&5
11185 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11186 (exit $ac_status); }; }; then
11187 ac_cv_type_uintptr_t=yes
11189 echo "$as_me: failed program was:" >&5
11190 sed 's/^/| /' conftest.$ac_ext >&5
11192 ac_cv_type_uintptr_t=no
11194 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
11196 echo "$as_me:$LINENO: result: $ac_cv_type_uintptr_t" >&5
11197 echo "${ECHO_T}$ac_cv_type_uintptr_t" >&6
11198 if test $ac_cv_type_uintptr_t = yes; then
11201 acx_cv_header_stdint_kind="(mostly complete)"
11204 echo "$as_me:$LINENO: checking for int_least32_t" >&5
11205 echo $ECHO_N "checking for int_least32_t... $ECHO_C" >&6
11206 if test "${ac_cv_type_int_least32_t+set}" = set; then
11207 echo $ECHO_N "(cached) $ECHO_C" >&6
11209 cat >conftest.$ac_ext <<_ACEOF
11212 cat confdefs.h >>conftest.$ac_ext
11213 cat >>conftest.$ac_ext <<_ACEOF
11214 /* end confdefs.h. */
11215 #include <sys/types.h>
11221 if ((int_least32_t *) 0)
11223 if (sizeof (int_least32_t))
11229 rm -f conftest.$ac_objext
11230 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
11231 (eval $ac_compile) 2>conftest.er1
11233 grep -v '^ *+' conftest.er1 >conftest.err
11235 cat conftest.err >&5
11236 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11237 (exit $ac_status); } &&
11238 { ac_try='test -z "$ac_c_werror_flag"
11239 || test ! -s conftest.err'
11240 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11241 (eval $ac_try) 2>&5
11243 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11244 (exit $ac_status); }; } &&
11245 { ac_try='test -s conftest.$ac_objext'
11246 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11247 (eval $ac_try) 2>&5
11249 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11250 (exit $ac_status); }; }; then
11251 ac_cv_type_int_least32_t=yes
11253 echo "$as_me: failed program was:" >&5
11254 sed 's/^/| /' conftest.$ac_ext >&5
11256 ac_cv_type_int_least32_t=no
11258 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
11260 echo "$as_me:$LINENO: result: $ac_cv_type_int_least32_t" >&5
11261 echo "${ECHO_T}$ac_cv_type_int_least32_t" >&6
11262 if test $ac_cv_type_int_least32_t = yes; then
11265 acx_cv_header_stdint_kind="(mostly complete)"
11268 echo "$as_me:$LINENO: checking for int_fast32_t" >&5
11269 echo $ECHO_N "checking for int_fast32_t... $ECHO_C" >&6
11270 if test "${ac_cv_type_int_fast32_t+set}" = set; then
11271 echo $ECHO_N "(cached) $ECHO_C" >&6
11273 cat >conftest.$ac_ext <<_ACEOF
11276 cat confdefs.h >>conftest.$ac_ext
11277 cat >>conftest.$ac_ext <<_ACEOF
11278 /* end confdefs.h. */
11279 #include <sys/types.h>
11285 if ((int_fast32_t *) 0)
11287 if (sizeof (int_fast32_t))
11293 rm -f conftest.$ac_objext
11294 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
11295 (eval $ac_compile) 2>conftest.er1
11297 grep -v '^ *+' conftest.er1 >conftest.err
11299 cat conftest.err >&5
11300 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11301 (exit $ac_status); } &&
11302 { ac_try='test -z "$ac_c_werror_flag"
11303 || test ! -s conftest.err'
11304 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11305 (eval $ac_try) 2>&5
11307 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11308 (exit $ac_status); }; } &&
11309 { ac_try='test -s conftest.$ac_objext'
11310 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11311 (eval $ac_try) 2>&5
11313 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11314 (exit $ac_status); }; }; then
11315 ac_cv_type_int_fast32_t=yes
11317 echo "$as_me: failed program was:" >&5
11318 sed 's/^/| /' conftest.$ac_ext >&5
11320 ac_cv_type_int_fast32_t=no
11322 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
11324 echo "$as_me:$LINENO: result: $ac_cv_type_int_fast32_t" >&5
11325 echo "${ECHO_T}$ac_cv_type_int_fast32_t" >&6
11326 if test $ac_cv_type_int_fast32_t = yes; then
11329 acx_cv_header_stdint_kind="(mostly complete)"
11332 echo "$as_me:$LINENO: checking for uint64_t" >&5
11333 echo $ECHO_N "checking for uint64_t... $ECHO_C" >&6
11334 if test "${ac_cv_type_uint64_t+set}" = set; then
11335 echo $ECHO_N "(cached) $ECHO_C" >&6
11337 cat >conftest.$ac_ext <<_ACEOF
11340 cat confdefs.h >>conftest.$ac_ext
11341 cat >>conftest.$ac_ext <<_ACEOF
11342 /* end confdefs.h. */
11343 #include <sys/types.h>
11349 if ((uint64_t *) 0)
11351 if (sizeof (uint64_t))
11357 rm -f conftest.$ac_objext
11358 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
11359 (eval $ac_compile) 2>conftest.er1
11361 grep -v '^ *+' conftest.er1 >conftest.err
11363 cat conftest.err >&5
11364 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11365 (exit $ac_status); } &&
11366 { ac_try='test -z "$ac_c_werror_flag"
11367 || test ! -s conftest.err'
11368 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11369 (eval $ac_try) 2>&5
11371 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11372 (exit $ac_status); }; } &&
11373 { ac_try='test -s conftest.$ac_objext'
11374 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11375 (eval $ac_try) 2>&5
11377 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11378 (exit $ac_status); }; }; then
11379 ac_cv_type_uint64_t=yes
11381 echo "$as_me: failed program was:" >&5
11382 sed 's/^/| /' conftest.$ac_ext >&5
11384 ac_cv_type_uint64_t=no
11386 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
11388 echo "$as_me:$LINENO: result: $ac_cv_type_uint64_t" >&5
11389 echo "${ECHO_T}$ac_cv_type_uint64_t" >&6
11390 if test $ac_cv_type_uint64_t = yes; then
11393 acx_cv_header_stdint_kind="(lacks uint64_t)"
11398 if test "$acx_cv_header_stdint" = stddef.h; then
11399 acx_cv_header_stdint_kind="(lacks uintmax_t)"
11400 for i in stdint.h $inttype_headers; do
11401 unset ac_cv_type_uintptr_t
11402 unset ac_cv_type_uint32_t
11403 unset ac_cv_type_uint64_t
11404 echo $ECHO_N "looking for an incomplete stdint.h in $i, $ECHO_C" >&6
11405 echo "$as_me:$LINENO: checking for uint32_t" >&5
11406 echo $ECHO_N "checking for uint32_t... $ECHO_C" >&6
11407 if test "${ac_cv_type_uint32_t+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. */
11416 #include <sys/types.h>
11422 if ((uint32_t *) 0)
11424 if (sizeof (uint32_t))
11430 rm -f conftest.$ac_objext
11431 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
11432 (eval $ac_compile) 2>conftest.er1
11434 grep -v '^ *+' conftest.er1 >conftest.err
11436 cat conftest.err >&5
11437 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11438 (exit $ac_status); } &&
11439 { ac_try='test -z "$ac_c_werror_flag"
11440 || test ! -s conftest.err'
11441 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11442 (eval $ac_try) 2>&5
11444 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11445 (exit $ac_status); }; } &&
11446 { ac_try='test -s conftest.$ac_objext'
11447 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11448 (eval $ac_try) 2>&5
11450 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11451 (exit $ac_status); }; }; then
11452 ac_cv_type_uint32_t=yes
11454 echo "$as_me: failed program was:" >&5
11455 sed 's/^/| /' conftest.$ac_ext >&5
11457 ac_cv_type_uint32_t=no
11459 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
11461 echo "$as_me:$LINENO: result: $ac_cv_type_uint32_t" >&5
11462 echo "${ECHO_T}$ac_cv_type_uint32_t" >&6
11463 if test $ac_cv_type_uint32_t = yes; then
11464 acx_cv_header_stdint=$i
11469 echo "$as_me:$LINENO: checking for uint64_t" >&5
11470 echo $ECHO_N "checking for uint64_t... $ECHO_C" >&6
11471 if test "${ac_cv_type_uint64_t+set}" = set; then
11472 echo $ECHO_N "(cached) $ECHO_C" >&6
11474 cat >conftest.$ac_ext <<_ACEOF
11477 cat confdefs.h >>conftest.$ac_ext
11478 cat >>conftest.$ac_ext <<_ACEOF
11479 /* end confdefs.h. */
11480 #include <sys/types.h>
11486 if ((uint64_t *) 0)
11488 if (sizeof (uint64_t))
11494 rm -f conftest.$ac_objext
11495 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
11496 (eval $ac_compile) 2>conftest.er1
11498 grep -v '^ *+' conftest.er1 >conftest.err
11500 cat conftest.err >&5
11501 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11502 (exit $ac_status); } &&
11503 { ac_try='test -z "$ac_c_werror_flag"
11504 || test ! -s conftest.err'
11505 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11506 (eval $ac_try) 2>&5
11508 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11509 (exit $ac_status); }; } &&
11510 { ac_try='test -s conftest.$ac_objext'
11511 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11512 (eval $ac_try) 2>&5
11514 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11515 (exit $ac_status); }; }; then
11516 ac_cv_type_uint64_t=yes
11518 echo "$as_me: failed program was:" >&5
11519 sed 's/^/| /' conftest.$ac_ext >&5
11521 ac_cv_type_uint64_t=no
11523 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
11525 echo "$as_me:$LINENO: result: $ac_cv_type_uint64_t" >&5
11526 echo "${ECHO_T}$ac_cv_type_uint64_t" >&6
11528 echo "$as_me:$LINENO: checking for uintptr_t" >&5
11529 echo $ECHO_N "checking for uintptr_t... $ECHO_C" >&6
11530 if test "${ac_cv_type_uintptr_t+set}" = set; then
11531 echo $ECHO_N "(cached) $ECHO_C" >&6
11533 cat >conftest.$ac_ext <<_ACEOF
11536 cat confdefs.h >>conftest.$ac_ext
11537 cat >>conftest.$ac_ext <<_ACEOF
11538 /* end confdefs.h. */
11539 #include <sys/types.h>
11545 if ((uintptr_t *) 0)
11547 if (sizeof (uintptr_t))
11553 rm -f conftest.$ac_objext
11554 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
11555 (eval $ac_compile) 2>conftest.er1
11557 grep -v '^ *+' conftest.er1 >conftest.err
11559 cat conftest.err >&5
11560 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11561 (exit $ac_status); } &&
11562 { ac_try='test -z "$ac_c_werror_flag"
11563 || test ! -s conftest.err'
11564 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11565 (eval $ac_try) 2>&5
11567 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11568 (exit $ac_status); }; } &&
11569 { ac_try='test -s conftest.$ac_objext'
11570 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11571 (eval $ac_try) 2>&5
11573 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11574 (exit $ac_status); }; }; then
11575 ac_cv_type_uintptr_t=yes
11577 echo "$as_me: failed program was:" >&5
11578 sed 's/^/| /' conftest.$ac_ext >&5
11580 ac_cv_type_uintptr_t=no
11582 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
11584 echo "$as_me:$LINENO: result: $ac_cv_type_uintptr_t" >&5
11585 echo "${ECHO_T}$ac_cv_type_uintptr_t" >&6
11590 if test "$acx_cv_header_stdint" = stddef.h; then
11591 acx_cv_header_stdint_kind="(u_intXX_t style)"
11592 for i in sys/types.h $inttype_headers; do
11593 unset ac_cv_type_u_int32_t
11594 unset ac_cv_type_u_int64_t
11595 echo $ECHO_N "looking for u_intXX_t types in $i, $ECHO_C" >&6
11596 echo "$as_me:$LINENO: checking for u_int32_t" >&5
11597 echo $ECHO_N "checking for u_int32_t... $ECHO_C" >&6
11598 if test "${ac_cv_type_u_int32_t+set}" = set; then
11599 echo $ECHO_N "(cached) $ECHO_C" >&6
11601 cat >conftest.$ac_ext <<_ACEOF
11604 cat confdefs.h >>conftest.$ac_ext
11605 cat >>conftest.$ac_ext <<_ACEOF
11606 /* end confdefs.h. */
11607 #include <sys/types.h>
11613 if ((u_int32_t *) 0)
11615 if (sizeof (u_int32_t))
11621 rm -f conftest.$ac_objext
11622 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
11623 (eval $ac_compile) 2>conftest.er1
11625 grep -v '^ *+' conftest.er1 >conftest.err
11627 cat conftest.err >&5
11628 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11629 (exit $ac_status); } &&
11630 { ac_try='test -z "$ac_c_werror_flag"
11631 || test ! -s conftest.err'
11632 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11633 (eval $ac_try) 2>&5
11635 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11636 (exit $ac_status); }; } &&
11637 { ac_try='test -s conftest.$ac_objext'
11638 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11639 (eval $ac_try) 2>&5
11641 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11642 (exit $ac_status); }; }; then
11643 ac_cv_type_u_int32_t=yes
11645 echo "$as_me: failed program was:" >&5
11646 sed 's/^/| /' conftest.$ac_ext >&5
11648 ac_cv_type_u_int32_t=no
11650 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
11652 echo "$as_me:$LINENO: result: $ac_cv_type_u_int32_t" >&5
11653 echo "${ECHO_T}$ac_cv_type_u_int32_t" >&6
11654 if test $ac_cv_type_u_int32_t = yes; then
11655 acx_cv_header_stdint=$i
11660 echo "$as_me:$LINENO: checking for u_int64_t" >&5
11661 echo $ECHO_N "checking for u_int64_t... $ECHO_C" >&6
11662 if test "${ac_cv_type_u_int64_t+set}" = set; then
11663 echo $ECHO_N "(cached) $ECHO_C" >&6
11665 cat >conftest.$ac_ext <<_ACEOF
11668 cat confdefs.h >>conftest.$ac_ext
11669 cat >>conftest.$ac_ext <<_ACEOF
11670 /* end confdefs.h. */
11671 #include <sys/types.h>
11677 if ((u_int64_t *) 0)
11679 if (sizeof (u_int64_t))
11685 rm -f conftest.$ac_objext
11686 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
11687 (eval $ac_compile) 2>conftest.er1
11689 grep -v '^ *+' conftest.er1 >conftest.err
11691 cat conftest.err >&5
11692 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11693 (exit $ac_status); } &&
11694 { ac_try='test -z "$ac_c_werror_flag"
11695 || test ! -s conftest.err'
11696 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11697 (eval $ac_try) 2>&5
11699 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11700 (exit $ac_status); }; } &&
11701 { ac_try='test -s conftest.$ac_objext'
11702 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11703 (eval $ac_try) 2>&5
11705 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11706 (exit $ac_status); }; }; then
11707 ac_cv_type_u_int64_t=yes
11709 echo "$as_me: failed program was:" >&5
11710 sed 's/^/| /' conftest.$ac_ext >&5
11712 ac_cv_type_u_int64_t=no
11714 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
11716 echo "$as_me:$LINENO: result: $ac_cv_type_u_int64_t" >&5
11717 echo "${ECHO_T}$ac_cv_type_u_int64_t" >&6
11722 if test "$acx_cv_header_stdint" = stddef.h; then
11723 acx_cv_header_stdint_kind="(using manual detection)"
11726 test -z "$ac_cv_type_uintptr_t" && ac_cv_type_uintptr_t=no
11727 test -z "$ac_cv_type_uint64_t" && ac_cv_type_uint64_t=no
11728 test -z "$ac_cv_type_u_int64_t" && ac_cv_type_u_int64_t=no
11729 test -z "$ac_cv_type_int_least32_t" && ac_cv_type_int_least32_t=no
11730 test -z "$ac_cv_type_int_fast32_t" && ac_cv_type_int_fast32_t=no
11732 # ----------------- Summarize what we found so far
11734 echo "$as_me:$LINENO: checking what to include in gdb_stdint.h" >&5
11735 echo $ECHO_N "checking what to include in gdb_stdint.h... $ECHO_C" >&6
11737 case `$as_basename gdb_stdint.h ||
11738 $as_expr X/gdb_stdint.h : '.*/\([^/][^/]*\)/*$' \| \
11739 Xgdb_stdint.h : 'X\(//\)$' \| \
11740 Xgdb_stdint.h : 'X\(/\)$' \| \
11741 . : '\(.\)' 2>/dev/null ||
11742 echo X/gdb_stdint.h |
11743 sed '/^.*\/\([^/][^/]*\)\/*$/{ s//\1/; q; }
11744 /^X\/\(\/\/\)$/{ s//\1/; q; }
11745 /^X\/\(\/\).*/{ s//\1/; q; }
11747 stdint.h) { echo "$as_me:$LINENO: WARNING: are you sure you want it there?" >&5
11748 echo "$as_me: WARNING: are you sure you want it there?" >&2;} ;;
11749 inttypes.h) { echo "$as_me:$LINENO: WARNING: are you sure you want it there?" >&5
11750 echo "$as_me: WARNING: are you sure you want it there?" >&2;} ;;
11754 echo "$as_me:$LINENO: result: $acx_cv_header_stdint $acx_cv_header_stdint_kind" >&5
11755 echo "${ECHO_T}$acx_cv_header_stdint $acx_cv_header_stdint_kind" >&6
11757 # ----------------- done included file, check C basic types --------
11759 # Lacking an uintptr_t? Test size of void *
11760 case "$acx_cv_header_stdint:$ac_cv_type_uintptr_t" in
11761 stddef.h:* | *:no) echo "$as_me:$LINENO: checking for void *" >&5
11762 echo $ECHO_N "checking for void *... $ECHO_C" >&6
11763 if test "${ac_cv_type_void_p+set}" = set; then
11764 echo $ECHO_N "(cached) $ECHO_C" >&6
11766 cat >conftest.$ac_ext <<_ACEOF
11769 cat confdefs.h >>conftest.$ac_ext
11770 cat >>conftest.$ac_ext <<_ACEOF
11771 /* end confdefs.h. */
11772 $ac_includes_default
11778 if (sizeof (void *))
11784 rm -f conftest.$ac_objext
11785 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
11786 (eval $ac_compile) 2>conftest.er1
11788 grep -v '^ *+' conftest.er1 >conftest.err
11790 cat conftest.err >&5
11791 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11792 (exit $ac_status); } &&
11793 { ac_try='test -z "$ac_c_werror_flag"
11794 || test ! -s conftest.err'
11795 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11796 (eval $ac_try) 2>&5
11798 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11799 (exit $ac_status); }; } &&
11800 { ac_try='test -s conftest.$ac_objext'
11801 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11802 (eval $ac_try) 2>&5
11804 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11805 (exit $ac_status); }; }; then
11806 ac_cv_type_void_p=yes
11808 echo "$as_me: failed program was:" >&5
11809 sed 's/^/| /' conftest.$ac_ext >&5
11811 ac_cv_type_void_p=no
11813 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
11815 echo "$as_me:$LINENO: result: $ac_cv_type_void_p" >&5
11816 echo "${ECHO_T}$ac_cv_type_void_p" >&6
11818 echo "$as_me:$LINENO: checking size of void *" >&5
11819 echo $ECHO_N "checking size of void *... $ECHO_C" >&6
11820 if test "${ac_cv_sizeof_void_p+set}" = set; then
11821 echo $ECHO_N "(cached) $ECHO_C" >&6
11823 if test "$ac_cv_type_void_p" = yes; then
11824 # The cast to unsigned long works around a bug in the HP C Compiler
11825 # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
11826 # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
11827 # This bug is HP SR number 8606223364.
11828 if test "$cross_compiling" = yes; then
11829 # Depending upon the size, compute the lo and hi bounds.
11830 cat >conftest.$ac_ext <<_ACEOF
11833 cat confdefs.h >>conftest.$ac_ext
11834 cat >>conftest.$ac_ext <<_ACEOF
11835 /* end confdefs.h. */
11836 $ac_includes_default
11840 static int test_array [1 - 2 * !(((long) (sizeof (void *))) >= 0)];
11847 rm -f conftest.$ac_objext
11848 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
11849 (eval $ac_compile) 2>conftest.er1
11851 grep -v '^ *+' conftest.er1 >conftest.err
11853 cat conftest.err >&5
11854 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11855 (exit $ac_status); } &&
11856 { ac_try='test -z "$ac_c_werror_flag"
11857 || test ! -s conftest.err'
11858 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11859 (eval $ac_try) 2>&5
11861 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11862 (exit $ac_status); }; } &&
11863 { ac_try='test -s conftest.$ac_objext'
11864 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11865 (eval $ac_try) 2>&5
11867 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11868 (exit $ac_status); }; }; then
11871 cat >conftest.$ac_ext <<_ACEOF
11874 cat confdefs.h >>conftest.$ac_ext
11875 cat >>conftest.$ac_ext <<_ACEOF
11876 /* end confdefs.h. */
11877 $ac_includes_default
11881 static int test_array [1 - 2 * !(((long) (sizeof (void *))) <= $ac_mid)];
11888 rm -f conftest.$ac_objext
11889 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
11890 (eval $ac_compile) 2>conftest.er1
11892 grep -v '^ *+' conftest.er1 >conftest.err
11894 cat conftest.err >&5
11895 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11896 (exit $ac_status); } &&
11897 { ac_try='test -z "$ac_c_werror_flag"
11898 || test ! -s conftest.err'
11899 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11900 (eval $ac_try) 2>&5
11902 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11903 (exit $ac_status); }; } &&
11904 { ac_try='test -s conftest.$ac_objext'
11905 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11906 (eval $ac_try) 2>&5
11908 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11909 (exit $ac_status); }; }; then
11910 ac_hi=$ac_mid; break
11912 echo "$as_me: failed program was:" >&5
11913 sed 's/^/| /' conftest.$ac_ext >&5
11915 ac_lo=`expr $ac_mid + 1`
11916 if test $ac_lo -le $ac_mid; then
11920 ac_mid=`expr 2 '*' $ac_mid + 1`
11922 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
11925 echo "$as_me: failed program was:" >&5
11926 sed 's/^/| /' conftest.$ac_ext >&5
11928 cat >conftest.$ac_ext <<_ACEOF
11931 cat confdefs.h >>conftest.$ac_ext
11932 cat >>conftest.$ac_ext <<_ACEOF
11933 /* end confdefs.h. */
11934 $ac_includes_default
11938 static int test_array [1 - 2 * !(((long) (sizeof (void *))) < 0)];
11945 rm -f conftest.$ac_objext
11946 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
11947 (eval $ac_compile) 2>conftest.er1
11949 grep -v '^ *+' conftest.er1 >conftest.err
11951 cat conftest.err >&5
11952 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11953 (exit $ac_status); } &&
11954 { ac_try='test -z "$ac_c_werror_flag"
11955 || test ! -s conftest.err'
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); }; } &&
11961 { ac_try='test -s conftest.$ac_objext'
11962 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11963 (eval $ac_try) 2>&5
11965 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11966 (exit $ac_status); }; }; then
11969 cat >conftest.$ac_ext <<_ACEOF
11972 cat confdefs.h >>conftest.$ac_ext
11973 cat >>conftest.$ac_ext <<_ACEOF
11974 /* end confdefs.h. */
11975 $ac_includes_default
11979 static int test_array [1 - 2 * !(((long) (sizeof (void *))) >= $ac_mid)];
11986 rm -f conftest.$ac_objext
11987 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
11988 (eval $ac_compile) 2>conftest.er1
11990 grep -v '^ *+' conftest.er1 >conftest.err
11992 cat conftest.err >&5
11993 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11994 (exit $ac_status); } &&
11995 { ac_try='test -z "$ac_c_werror_flag"
11996 || test ! -s conftest.err'
11997 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11998 (eval $ac_try) 2>&5
12000 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12001 (exit $ac_status); }; } &&
12002 { ac_try='test -s conftest.$ac_objext'
12003 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12004 (eval $ac_try) 2>&5
12006 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12007 (exit $ac_status); }; }; then
12008 ac_lo=$ac_mid; break
12010 echo "$as_me: failed program was:" >&5
12011 sed 's/^/| /' conftest.$ac_ext >&5
12013 ac_hi=`expr '(' $ac_mid ')' - 1`
12014 if test $ac_mid -le $ac_hi; then
12018 ac_mid=`expr 2 '*' $ac_mid`
12020 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
12023 echo "$as_me: failed program was:" >&5
12024 sed 's/^/| /' conftest.$ac_ext >&5
12028 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
12030 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
12031 # Binary search between lo and hi bounds.
12032 while test "x$ac_lo" != "x$ac_hi"; do
12033 ac_mid=`expr '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo`
12034 cat >conftest.$ac_ext <<_ACEOF
12037 cat confdefs.h >>conftest.$ac_ext
12038 cat >>conftest.$ac_ext <<_ACEOF
12039 /* end confdefs.h. */
12040 $ac_includes_default
12044 static int test_array [1 - 2 * !(((long) (sizeof (void *))) <= $ac_mid)];
12051 rm -f conftest.$ac_objext
12052 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
12053 (eval $ac_compile) 2>conftest.er1
12055 grep -v '^ *+' conftest.er1 >conftest.err
12057 cat conftest.err >&5
12058 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12059 (exit $ac_status); } &&
12060 { ac_try='test -z "$ac_c_werror_flag"
12061 || test ! -s conftest.err'
12062 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12063 (eval $ac_try) 2>&5
12065 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12066 (exit $ac_status); }; } &&
12067 { ac_try='test -s conftest.$ac_objext'
12068 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12069 (eval $ac_try) 2>&5
12071 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12072 (exit $ac_status); }; }; then
12075 echo "$as_me: failed program was:" >&5
12076 sed 's/^/| /' conftest.$ac_ext >&5
12078 ac_lo=`expr '(' $ac_mid ')' + 1`
12080 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
12083 ?*) ac_cv_sizeof_void_p=$ac_lo;;
12084 '') { { echo "$as_me:$LINENO: error: cannot compute sizeof (void *), 77
12085 See \`config.log' for more details." >&5
12086 echo "$as_me: error: cannot compute sizeof (void *), 77
12087 See \`config.log' for more details." >&2;}
12088 { (exit 1); exit 1; }; } ;;
12091 if test "$cross_compiling" = yes; then
12092 { { echo "$as_me:$LINENO: error: cannot run test program while cross compiling
12093 See \`config.log' for more details." >&5
12094 echo "$as_me: error: cannot run test program while cross compiling
12095 See \`config.log' for more details." >&2;}
12096 { (exit 1); exit 1; }; }
12098 cat >conftest.$ac_ext <<_ACEOF
12101 cat confdefs.h >>conftest.$ac_ext
12102 cat >>conftest.$ac_ext <<_ACEOF
12103 /* end confdefs.h. */
12104 $ac_includes_default
12105 long longval () { return (long) (sizeof (void *)); }
12106 unsigned long ulongval () { return (long) (sizeof (void *)); }
12108 #include <stdlib.h>
12113 FILE *f = fopen ("conftest.val", "w");
12116 if (((long) (sizeof (void *))) < 0)
12118 long i = longval ();
12119 if (i != ((long) (sizeof (void *))))
12121 fprintf (f, "%ld\n", i);
12125 unsigned long i = ulongval ();
12126 if (i != ((long) (sizeof (void *))))
12128 fprintf (f, "%lu\n", i);
12130 exit (ferror (f) || fclose (f) != 0);
12136 rm -f conftest$ac_exeext
12137 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
12138 (eval $ac_link) 2>&5
12140 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12141 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
12142 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12143 (eval $ac_try) 2>&5
12145 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12146 (exit $ac_status); }; }; then
12147 ac_cv_sizeof_void_p=`cat conftest.val`
12149 echo "$as_me: program exited with status $ac_status" >&5
12150 echo "$as_me: failed program was:" >&5
12151 sed 's/^/| /' conftest.$ac_ext >&5
12153 ( exit $ac_status )
12154 { { echo "$as_me:$LINENO: error: cannot compute sizeof (void *), 77
12155 See \`config.log' for more details." >&5
12156 echo "$as_me: error: cannot compute sizeof (void *), 77
12157 See \`config.log' for more details." >&2;}
12158 { (exit 1); exit 1; }; }
12160 rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
12165 ac_cv_sizeof_void_p=0
12168 echo "$as_me:$LINENO: result: $ac_cv_sizeof_void_p" >&5
12169 echo "${ECHO_T}$ac_cv_sizeof_void_p" >&6
12170 cat >>confdefs.h <<_ACEOF
12171 #define SIZEOF_VOID_P $ac_cv_sizeof_void_p
12177 # Lacking an uint64_t? Test size of long
12178 case "$acx_cv_header_stdint:$ac_cv_type_uint64_t:$ac_cv_type_u_int64_t" in
12179 stddef.h:*:* | *:no:no) echo "$as_me:$LINENO: checking for long" >&5
12180 echo $ECHO_N "checking for long... $ECHO_C" >&6
12181 if test "${ac_cv_type_long+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 $ac_includes_default
12202 rm -f conftest.$ac_objext
12203 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
12204 (eval $ac_compile) 2>conftest.er1
12206 grep -v '^ *+' conftest.er1 >conftest.err
12208 cat conftest.err >&5
12209 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12210 (exit $ac_status); } &&
12211 { ac_try='test -z "$ac_c_werror_flag"
12212 || test ! -s conftest.err'
12213 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12214 (eval $ac_try) 2>&5
12216 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12217 (exit $ac_status); }; } &&
12218 { ac_try='test -s conftest.$ac_objext'
12219 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12220 (eval $ac_try) 2>&5
12222 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12223 (exit $ac_status); }; }; then
12224 ac_cv_type_long=yes
12226 echo "$as_me: failed program was:" >&5
12227 sed 's/^/| /' conftest.$ac_ext >&5
12231 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
12233 echo "$as_me:$LINENO: result: $ac_cv_type_long" >&5
12234 echo "${ECHO_T}$ac_cv_type_long" >&6
12236 echo "$as_me:$LINENO: checking size of long" >&5
12237 echo $ECHO_N "checking size of long... $ECHO_C" >&6
12238 if test "${ac_cv_sizeof_long+set}" = set; then
12239 echo $ECHO_N "(cached) $ECHO_C" >&6
12241 if test "$ac_cv_type_long" = yes; then
12242 # The cast to unsigned long works around a bug in the HP C Compiler
12243 # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
12244 # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
12245 # This bug is HP SR number 8606223364.
12246 if test "$cross_compiling" = yes; then
12247 # Depending upon the size, compute the lo and hi bounds.
12248 cat >conftest.$ac_ext <<_ACEOF
12251 cat confdefs.h >>conftest.$ac_ext
12252 cat >>conftest.$ac_ext <<_ACEOF
12253 /* end confdefs.h. */
12254 $ac_includes_default
12258 static int test_array [1 - 2 * !(((long) (sizeof (long))) >= 0)];
12265 rm -f conftest.$ac_objext
12266 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
12267 (eval $ac_compile) 2>conftest.er1
12269 grep -v '^ *+' conftest.er1 >conftest.err
12271 cat conftest.err >&5
12272 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12273 (exit $ac_status); } &&
12274 { ac_try='test -z "$ac_c_werror_flag"
12275 || test ! -s conftest.err'
12276 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12277 (eval $ac_try) 2>&5
12279 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12280 (exit $ac_status); }; } &&
12281 { ac_try='test -s conftest.$ac_objext'
12282 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12283 (eval $ac_try) 2>&5
12285 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12286 (exit $ac_status); }; }; then
12289 cat >conftest.$ac_ext <<_ACEOF
12292 cat confdefs.h >>conftest.$ac_ext
12293 cat >>conftest.$ac_ext <<_ACEOF
12294 /* end confdefs.h. */
12295 $ac_includes_default
12299 static int test_array [1 - 2 * !(((long) (sizeof (long))) <= $ac_mid)];
12306 rm -f conftest.$ac_objext
12307 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
12308 (eval $ac_compile) 2>conftest.er1
12310 grep -v '^ *+' conftest.er1 >conftest.err
12312 cat conftest.err >&5
12313 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12314 (exit $ac_status); } &&
12315 { ac_try='test -z "$ac_c_werror_flag"
12316 || test ! -s conftest.err'
12317 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12318 (eval $ac_try) 2>&5
12320 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12321 (exit $ac_status); }; } &&
12322 { ac_try='test -s conftest.$ac_objext'
12323 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12324 (eval $ac_try) 2>&5
12326 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12327 (exit $ac_status); }; }; then
12328 ac_hi=$ac_mid; break
12330 echo "$as_me: failed program was:" >&5
12331 sed 's/^/| /' conftest.$ac_ext >&5
12333 ac_lo=`expr $ac_mid + 1`
12334 if test $ac_lo -le $ac_mid; then
12338 ac_mid=`expr 2 '*' $ac_mid + 1`
12340 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
12343 echo "$as_me: failed program was:" >&5
12344 sed 's/^/| /' conftest.$ac_ext >&5
12346 cat >conftest.$ac_ext <<_ACEOF
12349 cat confdefs.h >>conftest.$ac_ext
12350 cat >>conftest.$ac_ext <<_ACEOF
12351 /* end confdefs.h. */
12352 $ac_includes_default
12356 static int test_array [1 - 2 * !(((long) (sizeof (long))) < 0)];
12363 rm -f conftest.$ac_objext
12364 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
12365 (eval $ac_compile) 2>conftest.er1
12367 grep -v '^ *+' conftest.er1 >conftest.err
12369 cat conftest.err >&5
12370 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12371 (exit $ac_status); } &&
12372 { ac_try='test -z "$ac_c_werror_flag"
12373 || test ! -s conftest.err'
12374 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12375 (eval $ac_try) 2>&5
12377 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12378 (exit $ac_status); }; } &&
12379 { ac_try='test -s conftest.$ac_objext'
12380 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12381 (eval $ac_try) 2>&5
12383 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12384 (exit $ac_status); }; }; then
12387 cat >conftest.$ac_ext <<_ACEOF
12390 cat confdefs.h >>conftest.$ac_ext
12391 cat >>conftest.$ac_ext <<_ACEOF
12392 /* end confdefs.h. */
12393 $ac_includes_default
12397 static int test_array [1 - 2 * !(((long) (sizeof (long))) >= $ac_mid)];
12404 rm -f conftest.$ac_objext
12405 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
12406 (eval $ac_compile) 2>conftest.er1
12408 grep -v '^ *+' conftest.er1 >conftest.err
12410 cat conftest.err >&5
12411 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12412 (exit $ac_status); } &&
12413 { ac_try='test -z "$ac_c_werror_flag"
12414 || test ! -s conftest.err'
12415 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12416 (eval $ac_try) 2>&5
12418 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12419 (exit $ac_status); }; } &&
12420 { ac_try='test -s conftest.$ac_objext'
12421 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12422 (eval $ac_try) 2>&5
12424 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12425 (exit $ac_status); }; }; then
12426 ac_lo=$ac_mid; break
12428 echo "$as_me: failed program was:" >&5
12429 sed 's/^/| /' conftest.$ac_ext >&5
12431 ac_hi=`expr '(' $ac_mid ')' - 1`
12432 if test $ac_mid -le $ac_hi; then
12436 ac_mid=`expr 2 '*' $ac_mid`
12438 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
12441 echo "$as_me: failed program was:" >&5
12442 sed 's/^/| /' conftest.$ac_ext >&5
12446 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
12448 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
12449 # Binary search between lo and hi bounds.
12450 while test "x$ac_lo" != "x$ac_hi"; do
12451 ac_mid=`expr '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo`
12452 cat >conftest.$ac_ext <<_ACEOF
12455 cat confdefs.h >>conftest.$ac_ext
12456 cat >>conftest.$ac_ext <<_ACEOF
12457 /* end confdefs.h. */
12458 $ac_includes_default
12462 static int test_array [1 - 2 * !(((long) (sizeof (long))) <= $ac_mid)];
12469 rm -f conftest.$ac_objext
12470 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
12471 (eval $ac_compile) 2>conftest.er1
12473 grep -v '^ *+' conftest.er1 >conftest.err
12475 cat conftest.err >&5
12476 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12477 (exit $ac_status); } &&
12478 { ac_try='test -z "$ac_c_werror_flag"
12479 || test ! -s conftest.err'
12480 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12481 (eval $ac_try) 2>&5
12483 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12484 (exit $ac_status); }; } &&
12485 { ac_try='test -s conftest.$ac_objext'
12486 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12487 (eval $ac_try) 2>&5
12489 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12490 (exit $ac_status); }; }; then
12493 echo "$as_me: failed program was:" >&5
12494 sed 's/^/| /' conftest.$ac_ext >&5
12496 ac_lo=`expr '(' $ac_mid ')' + 1`
12498 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
12501 ?*) ac_cv_sizeof_long=$ac_lo;;
12502 '') { { echo "$as_me:$LINENO: error: cannot compute sizeof (long), 77
12503 See \`config.log' for more details." >&5
12504 echo "$as_me: error: cannot compute sizeof (long), 77
12505 See \`config.log' for more details." >&2;}
12506 { (exit 1); exit 1; }; } ;;
12509 if test "$cross_compiling" = yes; then
12510 { { echo "$as_me:$LINENO: error: cannot run test program while cross compiling
12511 See \`config.log' for more details." >&5
12512 echo "$as_me: error: cannot run test program while cross compiling
12513 See \`config.log' for more details." >&2;}
12514 { (exit 1); exit 1; }; }
12516 cat >conftest.$ac_ext <<_ACEOF
12519 cat confdefs.h >>conftest.$ac_ext
12520 cat >>conftest.$ac_ext <<_ACEOF
12521 /* end confdefs.h. */
12522 $ac_includes_default
12523 long longval () { return (long) (sizeof (long)); }
12524 unsigned long ulongval () { return (long) (sizeof (long)); }
12526 #include <stdlib.h>
12531 FILE *f = fopen ("conftest.val", "w");
12534 if (((long) (sizeof (long))) < 0)
12536 long i = longval ();
12537 if (i != ((long) (sizeof (long))))
12539 fprintf (f, "%ld\n", i);
12543 unsigned long i = ulongval ();
12544 if (i != ((long) (sizeof (long))))
12546 fprintf (f, "%lu\n", i);
12548 exit (ferror (f) || fclose (f) != 0);
12554 rm -f conftest$ac_exeext
12555 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
12556 (eval $ac_link) 2>&5
12558 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12559 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
12560 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12561 (eval $ac_try) 2>&5
12563 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12564 (exit $ac_status); }; }; then
12565 ac_cv_sizeof_long=`cat conftest.val`
12567 echo "$as_me: program exited with status $ac_status" >&5
12568 echo "$as_me: failed program was:" >&5
12569 sed 's/^/| /' conftest.$ac_ext >&5
12571 ( exit $ac_status )
12572 { { echo "$as_me:$LINENO: error: cannot compute sizeof (long), 77
12573 See \`config.log' for more details." >&5
12574 echo "$as_me: error: cannot compute sizeof (long), 77
12575 See \`config.log' for more details." >&2;}
12576 { (exit 1); exit 1; }; }
12578 rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
12583 ac_cv_sizeof_long=0
12586 echo "$as_me:$LINENO: result: $ac_cv_sizeof_long" >&5
12587 echo "${ECHO_T}$ac_cv_sizeof_long" >&6
12588 cat >>confdefs.h <<_ACEOF
12589 #define SIZEOF_LONG $ac_cv_sizeof_long
12595 if test $acx_cv_header_stdint = stddef.h; then
12596 # Lacking a good header? Test size of everything and deduce all types.
12597 echo "$as_me:$LINENO: checking for int" >&5
12598 echo $ECHO_N "checking for int... $ECHO_C" >&6
12599 if test "${ac_cv_type_int+set}" = set; then
12600 echo $ECHO_N "(cached) $ECHO_C" >&6
12602 cat >conftest.$ac_ext <<_ACEOF
12605 cat confdefs.h >>conftest.$ac_ext
12606 cat >>conftest.$ac_ext <<_ACEOF
12607 /* end confdefs.h. */
12608 $ac_includes_default
12620 rm -f conftest.$ac_objext
12621 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
12622 (eval $ac_compile) 2>conftest.er1
12624 grep -v '^ *+' conftest.er1 >conftest.err
12626 cat conftest.err >&5
12627 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12628 (exit $ac_status); } &&
12629 { ac_try='test -z "$ac_c_werror_flag"
12630 || test ! -s conftest.err'
12631 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12632 (eval $ac_try) 2>&5
12634 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12635 (exit $ac_status); }; } &&
12636 { ac_try='test -s conftest.$ac_objext'
12637 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12638 (eval $ac_try) 2>&5
12640 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12641 (exit $ac_status); }; }; then
12644 echo "$as_me: failed program was:" >&5
12645 sed 's/^/| /' conftest.$ac_ext >&5
12649 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
12651 echo "$as_me:$LINENO: result: $ac_cv_type_int" >&5
12652 echo "${ECHO_T}$ac_cv_type_int" >&6
12654 echo "$as_me:$LINENO: checking size of int" >&5
12655 echo $ECHO_N "checking size of int... $ECHO_C" >&6
12656 if test "${ac_cv_sizeof_int+set}" = set; then
12657 echo $ECHO_N "(cached) $ECHO_C" >&6
12659 if test "$ac_cv_type_int" = yes; then
12660 # The cast to unsigned long works around a bug in the HP C Compiler
12661 # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
12662 # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
12663 # This bug is HP SR number 8606223364.
12664 if test "$cross_compiling" = yes; then
12665 # Depending upon the size, compute the lo and hi bounds.
12666 cat >conftest.$ac_ext <<_ACEOF
12669 cat confdefs.h >>conftest.$ac_ext
12670 cat >>conftest.$ac_ext <<_ACEOF
12671 /* end confdefs.h. */
12672 $ac_includes_default
12676 static int test_array [1 - 2 * !(((long) (sizeof (int))) >= 0)];
12683 rm -f conftest.$ac_objext
12684 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
12685 (eval $ac_compile) 2>conftest.er1
12687 grep -v '^ *+' conftest.er1 >conftest.err
12689 cat conftest.err >&5
12690 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12691 (exit $ac_status); } &&
12692 { ac_try='test -z "$ac_c_werror_flag"
12693 || test ! -s conftest.err'
12694 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12695 (eval $ac_try) 2>&5
12697 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12698 (exit $ac_status); }; } &&
12699 { ac_try='test -s conftest.$ac_objext'
12700 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12701 (eval $ac_try) 2>&5
12703 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12704 (exit $ac_status); }; }; then
12707 cat >conftest.$ac_ext <<_ACEOF
12710 cat confdefs.h >>conftest.$ac_ext
12711 cat >>conftest.$ac_ext <<_ACEOF
12712 /* end confdefs.h. */
12713 $ac_includes_default
12717 static int test_array [1 - 2 * !(((long) (sizeof (int))) <= $ac_mid)];
12724 rm -f conftest.$ac_objext
12725 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
12726 (eval $ac_compile) 2>conftest.er1
12728 grep -v '^ *+' conftest.er1 >conftest.err
12730 cat conftest.err >&5
12731 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12732 (exit $ac_status); } &&
12733 { ac_try='test -z "$ac_c_werror_flag"
12734 || test ! -s conftest.err'
12735 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12736 (eval $ac_try) 2>&5
12738 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12739 (exit $ac_status); }; } &&
12740 { ac_try='test -s conftest.$ac_objext'
12741 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12742 (eval $ac_try) 2>&5
12744 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12745 (exit $ac_status); }; }; then
12746 ac_hi=$ac_mid; break
12748 echo "$as_me: failed program was:" >&5
12749 sed 's/^/| /' conftest.$ac_ext >&5
12751 ac_lo=`expr $ac_mid + 1`
12752 if test $ac_lo -le $ac_mid; then
12756 ac_mid=`expr 2 '*' $ac_mid + 1`
12758 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
12761 echo "$as_me: failed program was:" >&5
12762 sed 's/^/| /' conftest.$ac_ext >&5
12764 cat >conftest.$ac_ext <<_ACEOF
12767 cat confdefs.h >>conftest.$ac_ext
12768 cat >>conftest.$ac_ext <<_ACEOF
12769 /* end confdefs.h. */
12770 $ac_includes_default
12774 static int test_array [1 - 2 * !(((long) (sizeof (int))) < 0)];
12781 rm -f conftest.$ac_objext
12782 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
12783 (eval $ac_compile) 2>conftest.er1
12785 grep -v '^ *+' conftest.er1 >conftest.err
12787 cat conftest.err >&5
12788 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12789 (exit $ac_status); } &&
12790 { ac_try='test -z "$ac_c_werror_flag"
12791 || test ! -s conftest.err'
12792 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12793 (eval $ac_try) 2>&5
12795 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12796 (exit $ac_status); }; } &&
12797 { ac_try='test -s conftest.$ac_objext'
12798 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12799 (eval $ac_try) 2>&5
12801 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12802 (exit $ac_status); }; }; then
12805 cat >conftest.$ac_ext <<_ACEOF
12808 cat confdefs.h >>conftest.$ac_ext
12809 cat >>conftest.$ac_ext <<_ACEOF
12810 /* end confdefs.h. */
12811 $ac_includes_default
12815 static int test_array [1 - 2 * !(((long) (sizeof (int))) >= $ac_mid)];
12822 rm -f conftest.$ac_objext
12823 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
12824 (eval $ac_compile) 2>conftest.er1
12826 grep -v '^ *+' conftest.er1 >conftest.err
12828 cat conftest.err >&5
12829 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12830 (exit $ac_status); } &&
12831 { ac_try='test -z "$ac_c_werror_flag"
12832 || test ! -s conftest.err'
12833 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12834 (eval $ac_try) 2>&5
12836 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12837 (exit $ac_status); }; } &&
12838 { ac_try='test -s conftest.$ac_objext'
12839 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12840 (eval $ac_try) 2>&5
12842 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12843 (exit $ac_status); }; }; then
12844 ac_lo=$ac_mid; break
12846 echo "$as_me: failed program was:" >&5
12847 sed 's/^/| /' conftest.$ac_ext >&5
12849 ac_hi=`expr '(' $ac_mid ')' - 1`
12850 if test $ac_mid -le $ac_hi; then
12854 ac_mid=`expr 2 '*' $ac_mid`
12856 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
12859 echo "$as_me: failed program was:" >&5
12860 sed 's/^/| /' conftest.$ac_ext >&5
12864 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
12866 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
12867 # Binary search between lo and hi bounds.
12868 while test "x$ac_lo" != "x$ac_hi"; do
12869 ac_mid=`expr '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo`
12870 cat >conftest.$ac_ext <<_ACEOF
12873 cat confdefs.h >>conftest.$ac_ext
12874 cat >>conftest.$ac_ext <<_ACEOF
12875 /* end confdefs.h. */
12876 $ac_includes_default
12880 static int test_array [1 - 2 * !(((long) (sizeof (int))) <= $ac_mid)];
12887 rm -f conftest.$ac_objext
12888 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
12889 (eval $ac_compile) 2>conftest.er1
12891 grep -v '^ *+' conftest.er1 >conftest.err
12893 cat conftest.err >&5
12894 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12895 (exit $ac_status); } &&
12896 { ac_try='test -z "$ac_c_werror_flag"
12897 || test ! -s conftest.err'
12898 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12899 (eval $ac_try) 2>&5
12901 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12902 (exit $ac_status); }; } &&
12903 { ac_try='test -s conftest.$ac_objext'
12904 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12905 (eval $ac_try) 2>&5
12907 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12908 (exit $ac_status); }; }; then
12911 echo "$as_me: failed program was:" >&5
12912 sed 's/^/| /' conftest.$ac_ext >&5
12914 ac_lo=`expr '(' $ac_mid ')' + 1`
12916 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
12919 ?*) ac_cv_sizeof_int=$ac_lo;;
12920 '') { { echo "$as_me:$LINENO: error: cannot compute sizeof (int), 77
12921 See \`config.log' for more details." >&5
12922 echo "$as_me: error: cannot compute sizeof (int), 77
12923 See \`config.log' for more details." >&2;}
12924 { (exit 1); exit 1; }; } ;;
12927 if test "$cross_compiling" = yes; then
12928 { { echo "$as_me:$LINENO: error: cannot run test program while cross compiling
12929 See \`config.log' for more details." >&5
12930 echo "$as_me: error: cannot run test program while cross compiling
12931 See \`config.log' for more details." >&2;}
12932 { (exit 1); exit 1; }; }
12934 cat >conftest.$ac_ext <<_ACEOF
12937 cat confdefs.h >>conftest.$ac_ext
12938 cat >>conftest.$ac_ext <<_ACEOF
12939 /* end confdefs.h. */
12940 $ac_includes_default
12941 long longval () { return (long) (sizeof (int)); }
12942 unsigned long ulongval () { return (long) (sizeof (int)); }
12944 #include <stdlib.h>
12949 FILE *f = fopen ("conftest.val", "w");
12952 if (((long) (sizeof (int))) < 0)
12954 long i = longval ();
12955 if (i != ((long) (sizeof (int))))
12957 fprintf (f, "%ld\n", i);
12961 unsigned long i = ulongval ();
12962 if (i != ((long) (sizeof (int))))
12964 fprintf (f, "%lu\n", i);
12966 exit (ferror (f) || fclose (f) != 0);
12972 rm -f conftest$ac_exeext
12973 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
12974 (eval $ac_link) 2>&5
12976 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12977 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
12978 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12979 (eval $ac_try) 2>&5
12981 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12982 (exit $ac_status); }; }; then
12983 ac_cv_sizeof_int=`cat conftest.val`
12985 echo "$as_me: program exited with status $ac_status" >&5
12986 echo "$as_me: failed program was:" >&5
12987 sed 's/^/| /' conftest.$ac_ext >&5
12989 ( exit $ac_status )
12990 { { echo "$as_me:$LINENO: error: cannot compute sizeof (int), 77
12991 See \`config.log' for more details." >&5
12992 echo "$as_me: error: cannot compute sizeof (int), 77
12993 See \`config.log' for more details." >&2;}
12994 { (exit 1); exit 1; }; }
12996 rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
13004 echo "$as_me:$LINENO: result: $ac_cv_sizeof_int" >&5
13005 echo "${ECHO_T}$ac_cv_sizeof_int" >&6
13006 cat >>confdefs.h <<_ACEOF
13007 #define SIZEOF_INT $ac_cv_sizeof_int
13011 echo "$as_me:$LINENO: checking for short" >&5
13012 echo $ECHO_N "checking for short... $ECHO_C" >&6
13013 if test "${ac_cv_type_short+set}" = set; then
13014 echo $ECHO_N "(cached) $ECHO_C" >&6
13016 cat >conftest.$ac_ext <<_ACEOF
13019 cat confdefs.h >>conftest.$ac_ext
13020 cat >>conftest.$ac_ext <<_ACEOF
13021 /* end confdefs.h. */
13022 $ac_includes_default
13028 if (sizeof (short))
13034 rm -f conftest.$ac_objext
13035 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
13036 (eval $ac_compile) 2>conftest.er1
13038 grep -v '^ *+' conftest.er1 >conftest.err
13040 cat conftest.err >&5
13041 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13042 (exit $ac_status); } &&
13043 { ac_try='test -z "$ac_c_werror_flag"
13044 || test ! -s conftest.err'
13045 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13046 (eval $ac_try) 2>&5
13048 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13049 (exit $ac_status); }; } &&
13050 { ac_try='test -s conftest.$ac_objext'
13051 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13052 (eval $ac_try) 2>&5
13054 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13055 (exit $ac_status); }; }; then
13056 ac_cv_type_short=yes
13058 echo "$as_me: failed program was:" >&5
13059 sed 's/^/| /' conftest.$ac_ext >&5
13061 ac_cv_type_short=no
13063 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
13065 echo "$as_me:$LINENO: result: $ac_cv_type_short" >&5
13066 echo "${ECHO_T}$ac_cv_type_short" >&6
13068 echo "$as_me:$LINENO: checking size of short" >&5
13069 echo $ECHO_N "checking size of short... $ECHO_C" >&6
13070 if test "${ac_cv_sizeof_short+set}" = set; then
13071 echo $ECHO_N "(cached) $ECHO_C" >&6
13073 if test "$ac_cv_type_short" = yes; then
13074 # The cast to unsigned long works around a bug in the HP C Compiler
13075 # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
13076 # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
13077 # This bug is HP SR number 8606223364.
13078 if test "$cross_compiling" = yes; then
13079 # Depending upon the size, compute the lo and hi bounds.
13080 cat >conftest.$ac_ext <<_ACEOF
13083 cat confdefs.h >>conftest.$ac_ext
13084 cat >>conftest.$ac_ext <<_ACEOF
13085 /* end confdefs.h. */
13086 $ac_includes_default
13090 static int test_array [1 - 2 * !(((long) (sizeof (short))) >= 0)];
13097 rm -f conftest.$ac_objext
13098 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
13099 (eval $ac_compile) 2>conftest.er1
13101 grep -v '^ *+' conftest.er1 >conftest.err
13103 cat conftest.err >&5
13104 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13105 (exit $ac_status); } &&
13106 { ac_try='test -z "$ac_c_werror_flag"
13107 || test ! -s conftest.err'
13108 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13109 (eval $ac_try) 2>&5
13111 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13112 (exit $ac_status); }; } &&
13113 { ac_try='test -s conftest.$ac_objext'
13114 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13115 (eval $ac_try) 2>&5
13117 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13118 (exit $ac_status); }; }; then
13121 cat >conftest.$ac_ext <<_ACEOF
13124 cat confdefs.h >>conftest.$ac_ext
13125 cat >>conftest.$ac_ext <<_ACEOF
13126 /* end confdefs.h. */
13127 $ac_includes_default
13131 static int test_array [1 - 2 * !(((long) (sizeof (short))) <= $ac_mid)];
13138 rm -f conftest.$ac_objext
13139 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
13140 (eval $ac_compile) 2>conftest.er1
13142 grep -v '^ *+' conftest.er1 >conftest.err
13144 cat conftest.err >&5
13145 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13146 (exit $ac_status); } &&
13147 { ac_try='test -z "$ac_c_werror_flag"
13148 || test ! -s conftest.err'
13149 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13150 (eval $ac_try) 2>&5
13152 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13153 (exit $ac_status); }; } &&
13154 { ac_try='test -s conftest.$ac_objext'
13155 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13156 (eval $ac_try) 2>&5
13158 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13159 (exit $ac_status); }; }; then
13160 ac_hi=$ac_mid; break
13162 echo "$as_me: failed program was:" >&5
13163 sed 's/^/| /' conftest.$ac_ext >&5
13165 ac_lo=`expr $ac_mid + 1`
13166 if test $ac_lo -le $ac_mid; then
13170 ac_mid=`expr 2 '*' $ac_mid + 1`
13172 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
13175 echo "$as_me: failed program was:" >&5
13176 sed 's/^/| /' conftest.$ac_ext >&5
13178 cat >conftest.$ac_ext <<_ACEOF
13181 cat confdefs.h >>conftest.$ac_ext
13182 cat >>conftest.$ac_ext <<_ACEOF
13183 /* end confdefs.h. */
13184 $ac_includes_default
13188 static int test_array [1 - 2 * !(((long) (sizeof (short))) < 0)];
13195 rm -f conftest.$ac_objext
13196 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
13197 (eval $ac_compile) 2>conftest.er1
13199 grep -v '^ *+' conftest.er1 >conftest.err
13201 cat conftest.err >&5
13202 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13203 (exit $ac_status); } &&
13204 { ac_try='test -z "$ac_c_werror_flag"
13205 || test ! -s conftest.err'
13206 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13207 (eval $ac_try) 2>&5
13209 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13210 (exit $ac_status); }; } &&
13211 { ac_try='test -s conftest.$ac_objext'
13212 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13213 (eval $ac_try) 2>&5
13215 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13216 (exit $ac_status); }; }; then
13219 cat >conftest.$ac_ext <<_ACEOF
13222 cat confdefs.h >>conftest.$ac_ext
13223 cat >>conftest.$ac_ext <<_ACEOF
13224 /* end confdefs.h. */
13225 $ac_includes_default
13229 static int test_array [1 - 2 * !(((long) (sizeof (short))) >= $ac_mid)];
13236 rm -f conftest.$ac_objext
13237 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
13238 (eval $ac_compile) 2>conftest.er1
13240 grep -v '^ *+' conftest.er1 >conftest.err
13242 cat conftest.err >&5
13243 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13244 (exit $ac_status); } &&
13245 { ac_try='test -z "$ac_c_werror_flag"
13246 || test ! -s conftest.err'
13247 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13248 (eval $ac_try) 2>&5
13250 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13251 (exit $ac_status); }; } &&
13252 { ac_try='test -s conftest.$ac_objext'
13253 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13254 (eval $ac_try) 2>&5
13256 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13257 (exit $ac_status); }; }; then
13258 ac_lo=$ac_mid; break
13260 echo "$as_me: failed program was:" >&5
13261 sed 's/^/| /' conftest.$ac_ext >&5
13263 ac_hi=`expr '(' $ac_mid ')' - 1`
13264 if test $ac_mid -le $ac_hi; then
13268 ac_mid=`expr 2 '*' $ac_mid`
13270 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
13273 echo "$as_me: failed program was:" >&5
13274 sed 's/^/| /' conftest.$ac_ext >&5
13278 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
13280 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
13281 # Binary search between lo and hi bounds.
13282 while test "x$ac_lo" != "x$ac_hi"; do
13283 ac_mid=`expr '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo`
13284 cat >conftest.$ac_ext <<_ACEOF
13287 cat confdefs.h >>conftest.$ac_ext
13288 cat >>conftest.$ac_ext <<_ACEOF
13289 /* end confdefs.h. */
13290 $ac_includes_default
13294 static int test_array [1 - 2 * !(((long) (sizeof (short))) <= $ac_mid)];
13301 rm -f conftest.$ac_objext
13302 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
13303 (eval $ac_compile) 2>conftest.er1
13305 grep -v '^ *+' conftest.er1 >conftest.err
13307 cat conftest.err >&5
13308 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13309 (exit $ac_status); } &&
13310 { ac_try='test -z "$ac_c_werror_flag"
13311 || test ! -s conftest.err'
13312 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13313 (eval $ac_try) 2>&5
13315 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13316 (exit $ac_status); }; } &&
13317 { ac_try='test -s conftest.$ac_objext'
13318 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13319 (eval $ac_try) 2>&5
13321 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13322 (exit $ac_status); }; }; then
13325 echo "$as_me: failed program was:" >&5
13326 sed 's/^/| /' conftest.$ac_ext >&5
13328 ac_lo=`expr '(' $ac_mid ')' + 1`
13330 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
13333 ?*) ac_cv_sizeof_short=$ac_lo;;
13334 '') { { echo "$as_me:$LINENO: error: cannot compute sizeof (short), 77
13335 See \`config.log' for more details." >&5
13336 echo "$as_me: error: cannot compute sizeof (short), 77
13337 See \`config.log' for more details." >&2;}
13338 { (exit 1); exit 1; }; } ;;
13341 if test "$cross_compiling" = yes; then
13342 { { echo "$as_me:$LINENO: error: cannot run test program while cross compiling
13343 See \`config.log' for more details." >&5
13344 echo "$as_me: error: cannot run test program while cross compiling
13345 See \`config.log' for more details." >&2;}
13346 { (exit 1); exit 1; }; }
13348 cat >conftest.$ac_ext <<_ACEOF
13351 cat confdefs.h >>conftest.$ac_ext
13352 cat >>conftest.$ac_ext <<_ACEOF
13353 /* end confdefs.h. */
13354 $ac_includes_default
13355 long longval () { return (long) (sizeof (short)); }
13356 unsigned long ulongval () { return (long) (sizeof (short)); }
13358 #include <stdlib.h>
13363 FILE *f = fopen ("conftest.val", "w");
13366 if (((long) (sizeof (short))) < 0)
13368 long i = longval ();
13369 if (i != ((long) (sizeof (short))))
13371 fprintf (f, "%ld\n", i);
13375 unsigned long i = ulongval ();
13376 if (i != ((long) (sizeof (short))))
13378 fprintf (f, "%lu\n", i);
13380 exit (ferror (f) || fclose (f) != 0);
13386 rm -f conftest$ac_exeext
13387 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
13388 (eval $ac_link) 2>&5
13390 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13391 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
13392 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13393 (eval $ac_try) 2>&5
13395 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13396 (exit $ac_status); }; }; then
13397 ac_cv_sizeof_short=`cat conftest.val`
13399 echo "$as_me: program exited with status $ac_status" >&5
13400 echo "$as_me: failed program was:" >&5
13401 sed 's/^/| /' conftest.$ac_ext >&5
13403 ( exit $ac_status )
13404 { { echo "$as_me:$LINENO: error: cannot compute sizeof (short), 77
13405 See \`config.log' for more details." >&5
13406 echo "$as_me: error: cannot compute sizeof (short), 77
13407 See \`config.log' for more details." >&2;}
13408 { (exit 1); exit 1; }; }
13410 rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
13415 ac_cv_sizeof_short=0
13418 echo "$as_me:$LINENO: result: $ac_cv_sizeof_short" >&5
13419 echo "${ECHO_T}$ac_cv_sizeof_short" >&6
13420 cat >>confdefs.h <<_ACEOF
13421 #define SIZEOF_SHORT $ac_cv_sizeof_short
13425 echo "$as_me:$LINENO: checking for char" >&5
13426 echo $ECHO_N "checking for char... $ECHO_C" >&6
13427 if test "${ac_cv_type_char+set}" = set; then
13428 echo $ECHO_N "(cached) $ECHO_C" >&6
13430 cat >conftest.$ac_ext <<_ACEOF
13433 cat confdefs.h >>conftest.$ac_ext
13434 cat >>conftest.$ac_ext <<_ACEOF
13435 /* end confdefs.h. */
13436 $ac_includes_default
13448 rm -f conftest.$ac_objext
13449 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
13450 (eval $ac_compile) 2>conftest.er1
13452 grep -v '^ *+' conftest.er1 >conftest.err
13454 cat conftest.err >&5
13455 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13456 (exit $ac_status); } &&
13457 { ac_try='test -z "$ac_c_werror_flag"
13458 || test ! -s conftest.err'
13459 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13460 (eval $ac_try) 2>&5
13462 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13463 (exit $ac_status); }; } &&
13464 { ac_try='test -s conftest.$ac_objext'
13465 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13466 (eval $ac_try) 2>&5
13468 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13469 (exit $ac_status); }; }; then
13470 ac_cv_type_char=yes
13472 echo "$as_me: failed program was:" >&5
13473 sed 's/^/| /' conftest.$ac_ext >&5
13477 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
13479 echo "$as_me:$LINENO: result: $ac_cv_type_char" >&5
13480 echo "${ECHO_T}$ac_cv_type_char" >&6
13482 echo "$as_me:$LINENO: checking size of char" >&5
13483 echo $ECHO_N "checking size of char... $ECHO_C" >&6
13484 if test "${ac_cv_sizeof_char+set}" = set; then
13485 echo $ECHO_N "(cached) $ECHO_C" >&6
13487 if test "$ac_cv_type_char" = yes; then
13488 # The cast to unsigned long works around a bug in the HP C Compiler
13489 # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
13490 # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
13491 # This bug is HP SR number 8606223364.
13492 if test "$cross_compiling" = yes; then
13493 # Depending upon the size, compute the lo and hi bounds.
13494 cat >conftest.$ac_ext <<_ACEOF
13497 cat confdefs.h >>conftest.$ac_ext
13498 cat >>conftest.$ac_ext <<_ACEOF
13499 /* end confdefs.h. */
13500 $ac_includes_default
13504 static int test_array [1 - 2 * !(((long) (sizeof (char))) >= 0)];
13511 rm -f conftest.$ac_objext
13512 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
13513 (eval $ac_compile) 2>conftest.er1
13515 grep -v '^ *+' conftest.er1 >conftest.err
13517 cat conftest.err >&5
13518 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13519 (exit $ac_status); } &&
13520 { ac_try='test -z "$ac_c_werror_flag"
13521 || test ! -s conftest.err'
13522 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13523 (eval $ac_try) 2>&5
13525 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13526 (exit $ac_status); }; } &&
13527 { ac_try='test -s conftest.$ac_objext'
13528 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13529 (eval $ac_try) 2>&5
13531 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13532 (exit $ac_status); }; }; then
13535 cat >conftest.$ac_ext <<_ACEOF
13538 cat confdefs.h >>conftest.$ac_ext
13539 cat >>conftest.$ac_ext <<_ACEOF
13540 /* end confdefs.h. */
13541 $ac_includes_default
13545 static int test_array [1 - 2 * !(((long) (sizeof (char))) <= $ac_mid)];
13552 rm -f conftest.$ac_objext
13553 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
13554 (eval $ac_compile) 2>conftest.er1
13556 grep -v '^ *+' conftest.er1 >conftest.err
13558 cat conftest.err >&5
13559 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13560 (exit $ac_status); } &&
13561 { ac_try='test -z "$ac_c_werror_flag"
13562 || test ! -s conftest.err'
13563 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13564 (eval $ac_try) 2>&5
13566 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13567 (exit $ac_status); }; } &&
13568 { ac_try='test -s conftest.$ac_objext'
13569 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13570 (eval $ac_try) 2>&5
13572 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13573 (exit $ac_status); }; }; then
13574 ac_hi=$ac_mid; break
13576 echo "$as_me: failed program was:" >&5
13577 sed 's/^/| /' conftest.$ac_ext >&5
13579 ac_lo=`expr $ac_mid + 1`
13580 if test $ac_lo -le $ac_mid; then
13584 ac_mid=`expr 2 '*' $ac_mid + 1`
13586 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
13589 echo "$as_me: failed program was:" >&5
13590 sed 's/^/| /' conftest.$ac_ext >&5
13592 cat >conftest.$ac_ext <<_ACEOF
13595 cat confdefs.h >>conftest.$ac_ext
13596 cat >>conftest.$ac_ext <<_ACEOF
13597 /* end confdefs.h. */
13598 $ac_includes_default
13602 static int test_array [1 - 2 * !(((long) (sizeof (char))) < 0)];
13609 rm -f conftest.$ac_objext
13610 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
13611 (eval $ac_compile) 2>conftest.er1
13613 grep -v '^ *+' conftest.er1 >conftest.err
13615 cat conftest.err >&5
13616 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13617 (exit $ac_status); } &&
13618 { ac_try='test -z "$ac_c_werror_flag"
13619 || test ! -s conftest.err'
13620 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13621 (eval $ac_try) 2>&5
13623 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13624 (exit $ac_status); }; } &&
13625 { ac_try='test -s conftest.$ac_objext'
13626 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13627 (eval $ac_try) 2>&5
13629 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13630 (exit $ac_status); }; }; then
13633 cat >conftest.$ac_ext <<_ACEOF
13636 cat confdefs.h >>conftest.$ac_ext
13637 cat >>conftest.$ac_ext <<_ACEOF
13638 /* end confdefs.h. */
13639 $ac_includes_default
13643 static int test_array [1 - 2 * !(((long) (sizeof (char))) >= $ac_mid)];
13650 rm -f conftest.$ac_objext
13651 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
13652 (eval $ac_compile) 2>conftest.er1
13654 grep -v '^ *+' conftest.er1 >conftest.err
13656 cat conftest.err >&5
13657 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13658 (exit $ac_status); } &&
13659 { ac_try='test -z "$ac_c_werror_flag"
13660 || test ! -s conftest.err'
13661 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13662 (eval $ac_try) 2>&5
13664 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13665 (exit $ac_status); }; } &&
13666 { ac_try='test -s conftest.$ac_objext'
13667 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13668 (eval $ac_try) 2>&5
13670 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13671 (exit $ac_status); }; }; then
13672 ac_lo=$ac_mid; break
13674 echo "$as_me: failed program was:" >&5
13675 sed 's/^/| /' conftest.$ac_ext >&5
13677 ac_hi=`expr '(' $ac_mid ')' - 1`
13678 if test $ac_mid -le $ac_hi; then
13682 ac_mid=`expr 2 '*' $ac_mid`
13684 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
13687 echo "$as_me: failed program was:" >&5
13688 sed 's/^/| /' conftest.$ac_ext >&5
13692 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
13694 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
13695 # Binary search between lo and hi bounds.
13696 while test "x$ac_lo" != "x$ac_hi"; do
13697 ac_mid=`expr '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo`
13698 cat >conftest.$ac_ext <<_ACEOF
13701 cat confdefs.h >>conftest.$ac_ext
13702 cat >>conftest.$ac_ext <<_ACEOF
13703 /* end confdefs.h. */
13704 $ac_includes_default
13708 static int test_array [1 - 2 * !(((long) (sizeof (char))) <= $ac_mid)];
13715 rm -f conftest.$ac_objext
13716 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
13717 (eval $ac_compile) 2>conftest.er1
13719 grep -v '^ *+' conftest.er1 >conftest.err
13721 cat conftest.err >&5
13722 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13723 (exit $ac_status); } &&
13724 { ac_try='test -z "$ac_c_werror_flag"
13725 || test ! -s conftest.err'
13726 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13727 (eval $ac_try) 2>&5
13729 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13730 (exit $ac_status); }; } &&
13731 { ac_try='test -s conftest.$ac_objext'
13732 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13733 (eval $ac_try) 2>&5
13735 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13736 (exit $ac_status); }; }; then
13739 echo "$as_me: failed program was:" >&5
13740 sed 's/^/| /' conftest.$ac_ext >&5
13742 ac_lo=`expr '(' $ac_mid ')' + 1`
13744 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
13747 ?*) ac_cv_sizeof_char=$ac_lo;;
13748 '') { { echo "$as_me:$LINENO: error: cannot compute sizeof (char), 77
13749 See \`config.log' for more details." >&5
13750 echo "$as_me: error: cannot compute sizeof (char), 77
13751 See \`config.log' for more details." >&2;}
13752 { (exit 1); exit 1; }; } ;;
13755 if test "$cross_compiling" = yes; then
13756 { { echo "$as_me:$LINENO: error: cannot run test program while cross compiling
13757 See \`config.log' for more details." >&5
13758 echo "$as_me: error: cannot run test program while cross compiling
13759 See \`config.log' for more details." >&2;}
13760 { (exit 1); exit 1; }; }
13762 cat >conftest.$ac_ext <<_ACEOF
13765 cat confdefs.h >>conftest.$ac_ext
13766 cat >>conftest.$ac_ext <<_ACEOF
13767 /* end confdefs.h. */
13768 $ac_includes_default
13769 long longval () { return (long) (sizeof (char)); }
13770 unsigned long ulongval () { return (long) (sizeof (char)); }
13772 #include <stdlib.h>
13777 FILE *f = fopen ("conftest.val", "w");
13780 if (((long) (sizeof (char))) < 0)
13782 long i = longval ();
13783 if (i != ((long) (sizeof (char))))
13785 fprintf (f, "%ld\n", i);
13789 unsigned long i = ulongval ();
13790 if (i != ((long) (sizeof (char))))
13792 fprintf (f, "%lu\n", i);
13794 exit (ferror (f) || fclose (f) != 0);
13800 rm -f conftest$ac_exeext
13801 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
13802 (eval $ac_link) 2>&5
13804 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13805 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
13806 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13807 (eval $ac_try) 2>&5
13809 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13810 (exit $ac_status); }; }; then
13811 ac_cv_sizeof_char=`cat conftest.val`
13813 echo "$as_me: program exited with status $ac_status" >&5
13814 echo "$as_me: failed program was:" >&5
13815 sed 's/^/| /' conftest.$ac_ext >&5
13817 ( exit $ac_status )
13818 { { echo "$as_me:$LINENO: error: cannot compute sizeof (char), 77
13819 See \`config.log' for more details." >&5
13820 echo "$as_me: error: cannot compute sizeof (char), 77
13821 See \`config.log' for more details." >&2;}
13822 { (exit 1); exit 1; }; }
13824 rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
13829 ac_cv_sizeof_char=0
13832 echo "$as_me:$LINENO: result: $ac_cv_sizeof_char" >&5
13833 echo "${ECHO_T}$ac_cv_sizeof_char" >&6
13834 cat >>confdefs.h <<_ACEOF
13835 #define SIZEOF_CHAR $ac_cv_sizeof_char
13840 echo "$as_me:$LINENO: checking for type equivalent to int8_t" >&5
13841 echo $ECHO_N "checking for type equivalent to int8_t... $ECHO_C" >&6
13842 case "$ac_cv_sizeof_char" in
13843 1) acx_cv_type_int8_t=char ;;
13844 *) { { echo "$as_me:$LINENO: error: no 8-bit type" >&5
13845 echo "$as_me: error: no 8-bit type" >&2;}
13846 { (exit please report a bug); exit please report a bug; }; }
13848 echo "$as_me:$LINENO: result: $acx_cv_type_int8_t" >&5
13849 echo "${ECHO_T}$acx_cv_type_int8_t" >&6
13851 echo "$as_me:$LINENO: checking for type equivalent to int16_t" >&5
13852 echo $ECHO_N "checking for type equivalent to int16_t... $ECHO_C" >&6
13853 case "$ac_cv_sizeof_int:$ac_cv_sizeof_short" in
13854 2:*) acx_cv_type_int16_t=int ;;
13855 *:2) acx_cv_type_int16_t=short ;;
13856 *) { { echo "$as_me:$LINENO: error: no 16-bit type" >&5
13857 echo "$as_me: error: no 16-bit type" >&2;}
13858 { (exit please report a bug); exit please report a bug; }; }
13860 echo "$as_me:$LINENO: result: $acx_cv_type_int16_t" >&5
13861 echo "${ECHO_T}$acx_cv_type_int16_t" >&6
13863 echo "$as_me:$LINENO: checking for type equivalent to int32_t" >&5
13864 echo $ECHO_N "checking for type equivalent to int32_t... $ECHO_C" >&6
13865 case "$ac_cv_sizeof_int:$ac_cv_sizeof_long" in
13866 4:*) acx_cv_type_int32_t=int ;;
13867 *:4) acx_cv_type_int32_t=long ;;
13868 *) { { echo "$as_me:$LINENO: error: no 32-bit type" >&5
13869 echo "$as_me: error: no 32-bit type" >&2;}
13870 { (exit please report a bug); exit please report a bug; }; }
13872 echo "$as_me:$LINENO: result: $acx_cv_type_int32_t" >&5
13873 echo "${ECHO_T}$acx_cv_type_int32_t" >&6
13876 # These tests are here to make the output prettier
13878 if test "$ac_cv_type_uint64_t" != yes && test "$ac_cv_type_u_int64_t" != yes; then
13879 case "$ac_cv_sizeof_long" in
13880 8) acx_cv_type_int64_t=long ;;
13882 echo "$as_me:$LINENO: checking for type equivalent to int64_t" >&5
13883 echo $ECHO_N "checking for type equivalent to int64_t... $ECHO_C" >&6
13884 echo "$as_me:$LINENO: result: ${acx_cv_type_int64_t-'using preprocessor symbols'}" >&5
13885 echo "${ECHO_T}${acx_cv_type_int64_t-'using preprocessor symbols'}" >&6
13888 # Now we can use the above types
13890 if test "$ac_cv_type_uintptr_t" != yes; then
13891 echo "$as_me:$LINENO: checking for type equivalent to intptr_t" >&5
13892 echo $ECHO_N "checking for type equivalent to intptr_t... $ECHO_C" >&6
13893 case $ac_cv_sizeof_void_p in
13894 2) acx_cv_type_intptr_t=int16_t ;;
13895 4) acx_cv_type_intptr_t=int32_t ;;
13896 8) acx_cv_type_intptr_t=int64_t ;;
13897 *) { { echo "$as_me:$LINENO: error: no equivalent for intptr_t" >&5
13898 echo "$as_me: error: no equivalent for intptr_t" >&2;}
13899 { (exit please report a bug); exit please report a bug; }; }
13901 echo "$as_me:$LINENO: result: $acx_cv_type_intptr_t" >&5
13902 echo "${ECHO_T}$acx_cv_type_intptr_t" >&6
13905 # ----------------- done all checks, emit header -------------
13906 ac_config_commands="$ac_config_commands gdb_stdint.h"
13911 # ------------------------- #
13912 # Checks for declarations. #
13913 # ------------------------- #
13915 echo "$as_me:$LINENO: checking whether free is declared" >&5
13916 echo $ECHO_N "checking whether free is declared... $ECHO_C" >&6
13917 if test "${ac_cv_have_decl_free+set}" = set; then
13918 echo $ECHO_N "(cached) $ECHO_C" >&6
13920 cat >conftest.$ac_ext <<_ACEOF
13923 cat confdefs.h >>conftest.$ac_ext
13924 cat >>conftest.$ac_ext <<_ACEOF
13925 /* end confdefs.h. */
13926 $ac_includes_default
13931 char *p = (char *) free;
13938 rm -f conftest.$ac_objext
13939 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
13940 (eval $ac_compile) 2>conftest.er1
13942 grep -v '^ *+' conftest.er1 >conftest.err
13944 cat conftest.err >&5
13945 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13946 (exit $ac_status); } &&
13947 { ac_try='test -z "$ac_c_werror_flag"
13948 || test ! -s conftest.err'
13949 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13950 (eval $ac_try) 2>&5
13952 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13953 (exit $ac_status); }; } &&
13954 { ac_try='test -s conftest.$ac_objext'
13955 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13956 (eval $ac_try) 2>&5
13958 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13959 (exit $ac_status); }; }; then
13960 ac_cv_have_decl_free=yes
13962 echo "$as_me: failed program was:" >&5
13963 sed 's/^/| /' conftest.$ac_ext >&5
13965 ac_cv_have_decl_free=no
13967 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
13969 echo "$as_me:$LINENO: result: $ac_cv_have_decl_free" >&5
13970 echo "${ECHO_T}$ac_cv_have_decl_free" >&6
13971 if test $ac_cv_have_decl_free = yes; then
13973 cat >>confdefs.h <<_ACEOF
13974 #define HAVE_DECL_FREE 1
13979 cat >>confdefs.h <<_ACEOF
13980 #define HAVE_DECL_FREE 0
13985 echo "$as_me:$LINENO: checking whether malloc is declared" >&5
13986 echo $ECHO_N "checking whether malloc is declared... $ECHO_C" >&6
13987 if test "${ac_cv_have_decl_malloc+set}" = set; then
13988 echo $ECHO_N "(cached) $ECHO_C" >&6
13990 cat >conftest.$ac_ext <<_ACEOF
13993 cat confdefs.h >>conftest.$ac_ext
13994 cat >>conftest.$ac_ext <<_ACEOF
13995 /* end confdefs.h. */
13996 $ac_includes_default
14001 char *p = (char *) malloc;
14008 rm -f conftest.$ac_objext
14009 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
14010 (eval $ac_compile) 2>conftest.er1
14012 grep -v '^ *+' conftest.er1 >conftest.err
14014 cat conftest.err >&5
14015 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14016 (exit $ac_status); } &&
14017 { ac_try='test -z "$ac_c_werror_flag"
14018 || test ! -s conftest.err'
14019 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14020 (eval $ac_try) 2>&5
14022 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14023 (exit $ac_status); }; } &&
14024 { ac_try='test -s conftest.$ac_objext'
14025 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14026 (eval $ac_try) 2>&5
14028 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14029 (exit $ac_status); }; }; then
14030 ac_cv_have_decl_malloc=yes
14032 echo "$as_me: failed program was:" >&5
14033 sed 's/^/| /' conftest.$ac_ext >&5
14035 ac_cv_have_decl_malloc=no
14037 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
14039 echo "$as_me:$LINENO: result: $ac_cv_have_decl_malloc" >&5
14040 echo "${ECHO_T}$ac_cv_have_decl_malloc" >&6
14041 if test $ac_cv_have_decl_malloc = yes; then
14043 cat >>confdefs.h <<_ACEOF
14044 #define HAVE_DECL_MALLOC 1
14049 cat >>confdefs.h <<_ACEOF
14050 #define HAVE_DECL_MALLOC 0
14055 echo "$as_me:$LINENO: checking whether realloc is declared" >&5
14056 echo $ECHO_N "checking whether realloc is declared... $ECHO_C" >&6
14057 if test "${ac_cv_have_decl_realloc+set}" = set; then
14058 echo $ECHO_N "(cached) $ECHO_C" >&6
14060 cat >conftest.$ac_ext <<_ACEOF
14063 cat confdefs.h >>conftest.$ac_ext
14064 cat >>conftest.$ac_ext <<_ACEOF
14065 /* end confdefs.h. */
14066 $ac_includes_default
14071 char *p = (char *) realloc;
14078 rm -f conftest.$ac_objext
14079 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
14080 (eval $ac_compile) 2>conftest.er1
14082 grep -v '^ *+' conftest.er1 >conftest.err
14084 cat conftest.err >&5
14085 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14086 (exit $ac_status); } &&
14087 { ac_try='test -z "$ac_c_werror_flag"
14088 || test ! -s conftest.err'
14089 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14090 (eval $ac_try) 2>&5
14092 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14093 (exit $ac_status); }; } &&
14094 { ac_try='test -s conftest.$ac_objext'
14095 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14096 (eval $ac_try) 2>&5
14098 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14099 (exit $ac_status); }; }; then
14100 ac_cv_have_decl_realloc=yes
14102 echo "$as_me: failed program was:" >&5
14103 sed 's/^/| /' conftest.$ac_ext >&5
14105 ac_cv_have_decl_realloc=no
14107 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
14109 echo "$as_me:$LINENO: result: $ac_cv_have_decl_realloc" >&5
14110 echo "${ECHO_T}$ac_cv_have_decl_realloc" >&6
14111 if test $ac_cv_have_decl_realloc = yes; then
14113 cat >>confdefs.h <<_ACEOF
14114 #define HAVE_DECL_REALLOC 1
14119 cat >>confdefs.h <<_ACEOF
14120 #define HAVE_DECL_REALLOC 0
14127 echo "$as_me:$LINENO: checking whether strerror is declared" >&5
14128 echo $ECHO_N "checking whether strerror is declared... $ECHO_C" >&6
14129 if test "${ac_cv_have_decl_strerror+set}" = set; then
14130 echo $ECHO_N "(cached) $ECHO_C" >&6
14132 cat >conftest.$ac_ext <<_ACEOF
14135 cat confdefs.h >>conftest.$ac_ext
14136 cat >>conftest.$ac_ext <<_ACEOF
14137 /* end confdefs.h. */
14138 $ac_includes_default
14143 char *p = (char *) strerror;
14150 rm -f conftest.$ac_objext
14151 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
14152 (eval $ac_compile) 2>conftest.er1
14154 grep -v '^ *+' conftest.er1 >conftest.err
14156 cat conftest.err >&5
14157 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14158 (exit $ac_status); } &&
14159 { ac_try='test -z "$ac_c_werror_flag"
14160 || test ! -s conftest.err'
14161 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14162 (eval $ac_try) 2>&5
14164 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14165 (exit $ac_status); }; } &&
14166 { ac_try='test -s conftest.$ac_objext'
14167 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14168 (eval $ac_try) 2>&5
14170 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14171 (exit $ac_status); }; }; then
14172 ac_cv_have_decl_strerror=yes
14174 echo "$as_me: failed program was:" >&5
14175 sed 's/^/| /' conftest.$ac_ext >&5
14177 ac_cv_have_decl_strerror=no
14179 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
14181 echo "$as_me:$LINENO: result: $ac_cv_have_decl_strerror" >&5
14182 echo "${ECHO_T}$ac_cv_have_decl_strerror" >&6
14183 if test $ac_cv_have_decl_strerror = yes; then
14185 cat >>confdefs.h <<_ACEOF
14186 #define HAVE_DECL_STRERROR 1
14191 cat >>confdefs.h <<_ACEOF
14192 #define HAVE_DECL_STRERROR 0
14197 echo "$as_me:$LINENO: checking whether strstr is declared" >&5
14198 echo $ECHO_N "checking whether strstr is declared... $ECHO_C" >&6
14199 if test "${ac_cv_have_decl_strstr+set}" = set; then
14200 echo $ECHO_N "(cached) $ECHO_C" >&6
14202 cat >conftest.$ac_ext <<_ACEOF
14205 cat confdefs.h >>conftest.$ac_ext
14206 cat >>conftest.$ac_ext <<_ACEOF
14207 /* end confdefs.h. */
14208 $ac_includes_default
14213 char *p = (char *) strstr;
14220 rm -f conftest.$ac_objext
14221 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
14222 (eval $ac_compile) 2>conftest.er1
14224 grep -v '^ *+' conftest.er1 >conftest.err
14226 cat conftest.err >&5
14227 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14228 (exit $ac_status); } &&
14229 { ac_try='test -z "$ac_c_werror_flag"
14230 || test ! -s conftest.err'
14231 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14232 (eval $ac_try) 2>&5
14234 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14235 (exit $ac_status); }; } &&
14236 { ac_try='test -s conftest.$ac_objext'
14237 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14238 (eval $ac_try) 2>&5
14240 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14241 (exit $ac_status); }; }; then
14242 ac_cv_have_decl_strstr=yes
14244 echo "$as_me: failed program was:" >&5
14245 sed 's/^/| /' conftest.$ac_ext >&5
14247 ac_cv_have_decl_strstr=no
14249 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
14251 echo "$as_me:$LINENO: result: $ac_cv_have_decl_strstr" >&5
14252 echo "${ECHO_T}$ac_cv_have_decl_strstr" >&6
14253 if test $ac_cv_have_decl_strstr = yes; then
14255 cat >>confdefs.h <<_ACEOF
14256 #define HAVE_DECL_STRSTR 1
14261 cat >>confdefs.h <<_ACEOF
14262 #define HAVE_DECL_STRSTR 0
14269 echo "$as_me:$LINENO: checking whether getopt is declared" >&5
14270 echo $ECHO_N "checking whether getopt is declared... $ECHO_C" >&6
14271 if test "${ac_cv_have_decl_getopt+set}" = set; then
14272 echo $ECHO_N "(cached) $ECHO_C" >&6
14274 cat >conftest.$ac_ext <<_ACEOF
14277 cat confdefs.h >>conftest.$ac_ext
14278 cat >>conftest.$ac_ext <<_ACEOF
14279 /* end confdefs.h. */
14280 $ac_includes_default
14285 char *p = (char *) getopt;
14292 rm -f conftest.$ac_objext
14293 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
14294 (eval $ac_compile) 2>conftest.er1
14296 grep -v '^ *+' conftest.er1 >conftest.err
14298 cat conftest.err >&5
14299 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14300 (exit $ac_status); } &&
14301 { ac_try='test -z "$ac_c_werror_flag"
14302 || test ! -s conftest.err'
14303 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14304 (eval $ac_try) 2>&5
14306 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14307 (exit $ac_status); }; } &&
14308 { ac_try='test -s conftest.$ac_objext'
14309 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14310 (eval $ac_try) 2>&5
14312 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14313 (exit $ac_status); }; }; then
14314 ac_cv_have_decl_getopt=yes
14316 echo "$as_me: failed program was:" >&5
14317 sed 's/^/| /' conftest.$ac_ext >&5
14319 ac_cv_have_decl_getopt=no
14321 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
14323 echo "$as_me:$LINENO: result: $ac_cv_have_decl_getopt" >&5
14324 echo "${ECHO_T}$ac_cv_have_decl_getopt" >&6
14325 if test $ac_cv_have_decl_getopt = yes; then
14327 cat >>confdefs.h <<_ACEOF
14328 #define HAVE_DECL_GETOPT 1
14333 cat >>confdefs.h <<_ACEOF
14334 #define HAVE_DECL_GETOPT 0
14339 echo "$as_me:$LINENO: checking whether snprintf is declared" >&5
14340 echo $ECHO_N "checking whether snprintf is declared... $ECHO_C" >&6
14341 if test "${ac_cv_have_decl_snprintf+set}" = set; then
14342 echo $ECHO_N "(cached) $ECHO_C" >&6
14344 cat >conftest.$ac_ext <<_ACEOF
14347 cat confdefs.h >>conftest.$ac_ext
14348 cat >>conftest.$ac_ext <<_ACEOF
14349 /* end confdefs.h. */
14350 $ac_includes_default
14355 char *p = (char *) snprintf;
14362 rm -f conftest.$ac_objext
14363 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
14364 (eval $ac_compile) 2>conftest.er1
14366 grep -v '^ *+' conftest.er1 >conftest.err
14368 cat conftest.err >&5
14369 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14370 (exit $ac_status); } &&
14371 { ac_try='test -z "$ac_c_werror_flag"
14372 || test ! -s conftest.err'
14373 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14374 (eval $ac_try) 2>&5
14376 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14377 (exit $ac_status); }; } &&
14378 { ac_try='test -s conftest.$ac_objext'
14379 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14380 (eval $ac_try) 2>&5
14382 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14383 (exit $ac_status); }; }; then
14384 ac_cv_have_decl_snprintf=yes
14386 echo "$as_me: failed program was:" >&5
14387 sed 's/^/| /' conftest.$ac_ext >&5
14389 ac_cv_have_decl_snprintf=no
14391 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
14393 echo "$as_me:$LINENO: result: $ac_cv_have_decl_snprintf" >&5
14394 echo "${ECHO_T}$ac_cv_have_decl_snprintf" >&6
14395 if test $ac_cv_have_decl_snprintf = yes; then
14397 cat >>confdefs.h <<_ACEOF
14398 #define HAVE_DECL_SNPRINTF 1
14403 cat >>confdefs.h <<_ACEOF
14404 #define HAVE_DECL_SNPRINTF 0
14409 echo "$as_me:$LINENO: checking whether vsnprintf is declared" >&5
14410 echo $ECHO_N "checking whether vsnprintf is declared... $ECHO_C" >&6
14411 if test "${ac_cv_have_decl_vsnprintf+set}" = set; then
14412 echo $ECHO_N "(cached) $ECHO_C" >&6
14414 cat >conftest.$ac_ext <<_ACEOF
14417 cat confdefs.h >>conftest.$ac_ext
14418 cat >>conftest.$ac_ext <<_ACEOF
14419 /* end confdefs.h. */
14420 $ac_includes_default
14425 char *p = (char *) vsnprintf;
14432 rm -f conftest.$ac_objext
14433 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
14434 (eval $ac_compile) 2>conftest.er1
14436 grep -v '^ *+' conftest.er1 >conftest.err
14438 cat conftest.err >&5
14439 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14440 (exit $ac_status); } &&
14441 { ac_try='test -z "$ac_c_werror_flag"
14442 || test ! -s conftest.err'
14443 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14444 (eval $ac_try) 2>&5
14446 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14447 (exit $ac_status); }; } &&
14448 { ac_try='test -s conftest.$ac_objext'
14449 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14450 (eval $ac_try) 2>&5
14452 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14453 (exit $ac_status); }; }; then
14454 ac_cv_have_decl_vsnprintf=yes
14456 echo "$as_me: failed program was:" >&5
14457 sed 's/^/| /' conftest.$ac_ext >&5
14459 ac_cv_have_decl_vsnprintf=no
14461 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
14463 echo "$as_me:$LINENO: result: $ac_cv_have_decl_vsnprintf" >&5
14464 echo "${ECHO_T}$ac_cv_have_decl_vsnprintf" >&6
14465 if test $ac_cv_have_decl_vsnprintf = yes; then
14467 cat >>confdefs.h <<_ACEOF
14468 #define HAVE_DECL_VSNPRINTF 1
14473 cat >>confdefs.h <<_ACEOF
14474 #define HAVE_DECL_VSNPRINTF 0
14482 # ----------------------- #
14483 # Checks for structures. #
14484 # ----------------------- #
14486 echo "$as_me:$LINENO: checking for struct stat.st_blocks" >&5
14487 echo $ECHO_N "checking for struct stat.st_blocks... $ECHO_C" >&6
14488 if test "${ac_cv_member_struct_stat_st_blocks+set}" = set; then
14489 echo $ECHO_N "(cached) $ECHO_C" >&6
14491 cat >conftest.$ac_ext <<_ACEOF
14494 cat confdefs.h >>conftest.$ac_ext
14495 cat >>conftest.$ac_ext <<_ACEOF
14496 /* end confdefs.h. */
14497 $ac_includes_default
14501 static struct stat ac_aggr;
14502 if (ac_aggr.st_blocks)
14508 rm -f conftest.$ac_objext
14509 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
14510 (eval $ac_compile) 2>conftest.er1
14512 grep -v '^ *+' conftest.er1 >conftest.err
14514 cat conftest.err >&5
14515 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14516 (exit $ac_status); } &&
14517 { ac_try='test -z "$ac_c_werror_flag"
14518 || test ! -s conftest.err'
14519 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14520 (eval $ac_try) 2>&5
14522 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14523 (exit $ac_status); }; } &&
14524 { ac_try='test -s conftest.$ac_objext'
14525 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14526 (eval $ac_try) 2>&5
14528 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14529 (exit $ac_status); }; }; then
14530 ac_cv_member_struct_stat_st_blocks=yes
14532 echo "$as_me: failed program was:" >&5
14533 sed 's/^/| /' conftest.$ac_ext >&5
14535 cat >conftest.$ac_ext <<_ACEOF
14538 cat confdefs.h >>conftest.$ac_ext
14539 cat >>conftest.$ac_ext <<_ACEOF
14540 /* end confdefs.h. */
14541 $ac_includes_default
14545 static struct stat ac_aggr;
14546 if (sizeof ac_aggr.st_blocks)
14552 rm -f conftest.$ac_objext
14553 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
14554 (eval $ac_compile) 2>conftest.er1
14556 grep -v '^ *+' conftest.er1 >conftest.err
14558 cat conftest.err >&5
14559 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14560 (exit $ac_status); } &&
14561 { ac_try='test -z "$ac_c_werror_flag"
14562 || test ! -s conftest.err'
14563 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14564 (eval $ac_try) 2>&5
14566 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14567 (exit $ac_status); }; } &&
14568 { ac_try='test -s conftest.$ac_objext'
14569 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14570 (eval $ac_try) 2>&5
14572 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14573 (exit $ac_status); }; }; then
14574 ac_cv_member_struct_stat_st_blocks=yes
14576 echo "$as_me: failed program was:" >&5
14577 sed 's/^/| /' conftest.$ac_ext >&5
14579 ac_cv_member_struct_stat_st_blocks=no
14581 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
14583 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
14585 echo "$as_me:$LINENO: result: $ac_cv_member_struct_stat_st_blocks" >&5
14586 echo "${ECHO_T}$ac_cv_member_struct_stat_st_blocks" >&6
14587 if test $ac_cv_member_struct_stat_st_blocks = yes; then
14589 cat >>confdefs.h <<_ACEOF
14590 #define HAVE_STRUCT_STAT_ST_BLOCKS 1
14596 echo "$as_me:$LINENO: checking for struct stat.st_blksize" >&5
14597 echo $ECHO_N "checking for struct stat.st_blksize... $ECHO_C" >&6
14598 if test "${ac_cv_member_struct_stat_st_blksize+set}" = set; then
14599 echo $ECHO_N "(cached) $ECHO_C" >&6
14601 cat >conftest.$ac_ext <<_ACEOF
14604 cat confdefs.h >>conftest.$ac_ext
14605 cat >>conftest.$ac_ext <<_ACEOF
14606 /* end confdefs.h. */
14607 $ac_includes_default
14611 static struct stat ac_aggr;
14612 if (ac_aggr.st_blksize)
14618 rm -f conftest.$ac_objext
14619 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
14620 (eval $ac_compile) 2>conftest.er1
14622 grep -v '^ *+' conftest.er1 >conftest.err
14624 cat conftest.err >&5
14625 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14626 (exit $ac_status); } &&
14627 { ac_try='test -z "$ac_c_werror_flag"
14628 || test ! -s conftest.err'
14629 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14630 (eval $ac_try) 2>&5
14632 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14633 (exit $ac_status); }; } &&
14634 { ac_try='test -s conftest.$ac_objext'
14635 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14636 (eval $ac_try) 2>&5
14638 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14639 (exit $ac_status); }; }; then
14640 ac_cv_member_struct_stat_st_blksize=yes
14642 echo "$as_me: failed program was:" >&5
14643 sed 's/^/| /' conftest.$ac_ext >&5
14645 cat >conftest.$ac_ext <<_ACEOF
14648 cat confdefs.h >>conftest.$ac_ext
14649 cat >>conftest.$ac_ext <<_ACEOF
14650 /* end confdefs.h. */
14651 $ac_includes_default
14655 static struct stat ac_aggr;
14656 if (sizeof ac_aggr.st_blksize)
14662 rm -f conftest.$ac_objext
14663 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
14664 (eval $ac_compile) 2>conftest.er1
14666 grep -v '^ *+' conftest.er1 >conftest.err
14668 cat conftest.err >&5
14669 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14670 (exit $ac_status); } &&
14671 { ac_try='test -z "$ac_c_werror_flag"
14672 || test ! -s conftest.err'
14673 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14674 (eval $ac_try) 2>&5
14676 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14677 (exit $ac_status); }; } &&
14678 { ac_try='test -s conftest.$ac_objext'
14679 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14680 (eval $ac_try) 2>&5
14682 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14683 (exit $ac_status); }; }; then
14684 ac_cv_member_struct_stat_st_blksize=yes
14686 echo "$as_me: failed program was:" >&5
14687 sed 's/^/| /' conftest.$ac_ext >&5
14689 ac_cv_member_struct_stat_st_blksize=no
14691 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
14693 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
14695 echo "$as_me:$LINENO: result: $ac_cv_member_struct_stat_st_blksize" >&5
14696 echo "${ECHO_T}$ac_cv_member_struct_stat_st_blksize" >&6
14697 if test $ac_cv_member_struct_stat_st_blksize = yes; then
14699 cat >>confdefs.h <<_ACEOF
14700 #define HAVE_STRUCT_STAT_ST_BLKSIZE 1
14707 # ------------------ #
14708 # Checks for types. #
14709 # ------------------ #
14711 echo "$as_me:$LINENO: checking return type of signal handlers" >&5
14712 echo $ECHO_N "checking return type of signal handlers... $ECHO_C" >&6
14713 if test "${ac_cv_type_signal+set}" = set; then
14714 echo $ECHO_N "(cached) $ECHO_C" >&6
14716 cat >conftest.$ac_ext <<_ACEOF
14719 cat confdefs.h >>conftest.$ac_ext
14720 cat >>conftest.$ac_ext <<_ACEOF
14721 /* end confdefs.h. */
14722 #include <sys/types.h>
14723 #include <signal.h>
14728 extern "C" void (*signal (int, void (*)(int)))(int);
14730 void (*signal ()) ();
14741 rm -f conftest.$ac_objext
14742 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
14743 (eval $ac_compile) 2>conftest.er1
14745 grep -v '^ *+' conftest.er1 >conftest.err
14747 cat conftest.err >&5
14748 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14749 (exit $ac_status); } &&
14750 { ac_try='test -z "$ac_c_werror_flag"
14751 || test ! -s conftest.err'
14752 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14753 (eval $ac_try) 2>&5
14755 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14756 (exit $ac_status); }; } &&
14757 { ac_try='test -s conftest.$ac_objext'
14758 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14759 (eval $ac_try) 2>&5
14761 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14762 (exit $ac_status); }; }; then
14763 ac_cv_type_signal=void
14765 echo "$as_me: failed program was:" >&5
14766 sed 's/^/| /' conftest.$ac_ext >&5
14768 ac_cv_type_signal=int
14770 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
14772 echo "$as_me:$LINENO: result: $ac_cv_type_signal" >&5
14773 echo "${ECHO_T}$ac_cv_type_signal" >&6
14775 cat >>confdefs.h <<_ACEOF
14776 #define RETSIGTYPE $ac_cv_type_signal
14780 echo "$as_me:$LINENO: checking for socklen_t" >&5
14781 echo $ECHO_N "checking for socklen_t... $ECHO_C" >&6
14782 if test "${ac_cv_type_socklen_t+set}" = set; then
14783 echo $ECHO_N "(cached) $ECHO_C" >&6
14785 cat >conftest.$ac_ext <<_ACEOF
14788 cat confdefs.h >>conftest.$ac_ext
14789 cat >>conftest.$ac_ext <<_ACEOF
14790 /* end confdefs.h. */
14791 #include <sys/types.h>
14792 #include <sys/socket.h>
14798 if ((socklen_t *) 0)
14800 if (sizeof (socklen_t))
14806 rm -f conftest.$ac_objext
14807 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
14808 (eval $ac_compile) 2>conftest.er1
14810 grep -v '^ *+' conftest.er1 >conftest.err
14812 cat conftest.err >&5
14813 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14814 (exit $ac_status); } &&
14815 { ac_try='test -z "$ac_c_werror_flag"
14816 || test ! -s conftest.err'
14817 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14818 (eval $ac_try) 2>&5
14820 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14821 (exit $ac_status); }; } &&
14822 { ac_try='test -s conftest.$ac_objext'
14823 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14824 (eval $ac_try) 2>&5
14826 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14827 (exit $ac_status); }; }; then
14828 ac_cv_type_socklen_t=yes
14830 echo "$as_me: failed program was:" >&5
14831 sed 's/^/| /' conftest.$ac_ext >&5
14833 ac_cv_type_socklen_t=no
14835 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
14837 echo "$as_me:$LINENO: result: $ac_cv_type_socklen_t" >&5
14838 echo "${ECHO_T}$ac_cv_type_socklen_t" >&6
14839 if test $ac_cv_type_socklen_t = yes; then
14841 cat >>confdefs.h <<_ACEOF
14842 #define HAVE_SOCKLEN_T 1
14848 echo "$as_me:$LINENO: checking for uintptr_t" >&5
14849 echo $ECHO_N "checking for uintptr_t... $ECHO_C" >&6
14850 if test "${ac_cv_type_uintptr_t+set}" = set; then
14851 echo $ECHO_N "(cached) $ECHO_C" >&6
14853 cat >conftest.$ac_ext <<_ACEOF
14856 cat confdefs.h >>conftest.$ac_ext
14857 cat >>conftest.$ac_ext <<_ACEOF
14858 /* end confdefs.h. */
14859 #include <stdint.h>
14864 if ((uintptr_t *) 0)
14866 if (sizeof (uintptr_t))
14872 rm -f conftest.$ac_objext
14873 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
14874 (eval $ac_compile) 2>conftest.er1
14876 grep -v '^ *+' conftest.er1 >conftest.err
14878 cat conftest.err >&5
14879 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14880 (exit $ac_status); } &&
14881 { ac_try='test -z "$ac_c_werror_flag"
14882 || test ! -s conftest.err'
14883 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14884 (eval $ac_try) 2>&5
14886 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14887 (exit $ac_status); }; } &&
14888 { ac_try='test -s conftest.$ac_objext'
14889 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14890 (eval $ac_try) 2>&5
14892 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14893 (exit $ac_status); }; }; then
14894 ac_cv_type_uintptr_t=yes
14896 echo "$as_me: failed program was:" >&5
14897 sed 's/^/| /' conftest.$ac_ext >&5
14899 ac_cv_type_uintptr_t=no
14901 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
14903 echo "$as_me:$LINENO: result: $ac_cv_type_uintptr_t" >&5
14904 echo "${ECHO_T}$ac_cv_type_uintptr_t" >&6
14905 if test $ac_cv_type_uintptr_t = yes; then
14907 cat >>confdefs.h <<_ACEOF
14908 #define HAVE_UINTPTR_T 1
14915 # ------------------------------------- #
14916 # Checks for compiler characteristics. #
14917 # ------------------------------------- #
14919 echo "$as_me:$LINENO: checking for an ANSI C-conforming const" >&5
14920 echo $ECHO_N "checking for an ANSI C-conforming const... $ECHO_C" >&6
14921 if test "${ac_cv_c_const+set}" = set; then
14922 echo $ECHO_N "(cached) $ECHO_C" >&6
14924 cat >conftest.$ac_ext <<_ACEOF
14927 cat confdefs.h >>conftest.$ac_ext
14928 cat >>conftest.$ac_ext <<_ACEOF
14929 /* end confdefs.h. */
14934 /* FIXME: Include the comments suggested by Paul. */
14935 #ifndef __cplusplus
14936 /* Ultrix mips cc rejects this. */
14937 typedef int charset[2];
14939 /* SunOS 4.1.1 cc rejects this. */
14940 char const *const *ccp;
14942 /* NEC SVR4.0.2 mips cc rejects this. */
14943 struct point {int x, y;};
14944 static struct point const zero = {0,0};
14945 /* AIX XL C 1.02.0.0 rejects this.
14946 It does not let you subtract one const X* pointer from another in
14947 an arm of an if-expression whose if-part is not a constant
14949 const char *g = "string";
14950 ccp = &g + (g ? g-g : 0);
14951 /* HPUX 7.0 cc rejects these. */
14954 ccp = (char const *const *) p;
14955 { /* SCO 3.2v4 cc rejects this. */
14957 char const *s = 0 ? (char *) 0 : (char const *) 0;
14961 { /* Someone thinks the Sun supposedly-ANSI compiler will reject this. */
14962 int x[] = {25, 17};
14963 const int *foo = &x[0];
14966 { /* Sun SC1.0 ANSI compiler rejects this -- but not the above. */
14967 typedef const int *iptr;
14971 { /* AIX XL C 1.02.0.0 rejects this saying
14972 "k.c", line 2.27: 1506-025 (S) Operand must be a modifiable lvalue. */
14973 struct s { int j; const int *ap[3]; };
14974 struct s *b; b->j = 5;
14976 { /* ULTRIX-32 V3.1 (Rev 9) vcc rejects this */
14977 const int foo = 10;
14985 rm -f conftest.$ac_objext
14986 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
14987 (eval $ac_compile) 2>conftest.er1
14989 grep -v '^ *+' conftest.er1 >conftest.err
14991 cat conftest.err >&5
14992 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14993 (exit $ac_status); } &&
14994 { ac_try='test -z "$ac_c_werror_flag"
14995 || test ! -s conftest.err'
14996 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14997 (eval $ac_try) 2>&5
14999 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15000 (exit $ac_status); }; } &&
15001 { ac_try='test -s conftest.$ac_objext'
15002 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15003 (eval $ac_try) 2>&5
15005 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15006 (exit $ac_status); }; }; then
15009 echo "$as_me: failed program was:" >&5
15010 sed 's/^/| /' conftest.$ac_ext >&5
15014 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
15016 echo "$as_me:$LINENO: result: $ac_cv_c_const" >&5
15017 echo "${ECHO_T}$ac_cv_c_const" >&6
15018 if test $ac_cv_c_const = no; then
15020 cat >>confdefs.h <<\_ACEOF
15026 echo "$as_me:$LINENO: checking for inline" >&5
15027 echo $ECHO_N "checking for inline... $ECHO_C" >&6
15028 if test "${ac_cv_c_inline+set}" = set; then
15029 echo $ECHO_N "(cached) $ECHO_C" >&6
15032 for ac_kw in inline __inline__ __inline; do
15033 cat >conftest.$ac_ext <<_ACEOF
15036 cat confdefs.h >>conftest.$ac_ext
15037 cat >>conftest.$ac_ext <<_ACEOF
15038 /* end confdefs.h. */
15039 #ifndef __cplusplus
15041 static $ac_kw foo_t static_foo () {return 0; }
15042 $ac_kw foo_t foo () {return 0; }
15046 rm -f conftest.$ac_objext
15047 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
15048 (eval $ac_compile) 2>conftest.er1
15050 grep -v '^ *+' conftest.er1 >conftest.err
15052 cat conftest.err >&5
15053 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15054 (exit $ac_status); } &&
15055 { ac_try='test -z "$ac_c_werror_flag"
15056 || test ! -s conftest.err'
15057 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15058 (eval $ac_try) 2>&5
15060 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15061 (exit $ac_status); }; } &&
15062 { ac_try='test -s conftest.$ac_objext'
15063 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15064 (eval $ac_try) 2>&5
15066 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15067 (exit $ac_status); }; }; then
15068 ac_cv_c_inline=$ac_kw; break
15070 echo "$as_me: failed program was:" >&5
15071 sed 's/^/| /' conftest.$ac_ext >&5
15074 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
15078 echo "$as_me:$LINENO: result: $ac_cv_c_inline" >&5
15079 echo "${ECHO_T}$ac_cv_c_inline" >&6
15082 case $ac_cv_c_inline in
15085 case $ac_cv_c_inline in
15087 *) ac_val=$ac_cv_c_inline;;
15089 cat >>confdefs.h <<_ACEOF
15090 #ifndef __cplusplus
15091 #define inline $ac_val
15098 # ------------------------------ #
15099 # Checks for library functions. #
15100 # ------------------------------ #
15102 # The Ultrix 4.2 mips builtin alloca declared by alloca.h only works
15103 # for constant arguments. Useless!
15104 echo "$as_me:$LINENO: checking for working alloca.h" >&5
15105 echo $ECHO_N "checking for working alloca.h... $ECHO_C" >&6
15106 if test "${ac_cv_working_alloca_h+set}" = set; then
15107 echo $ECHO_N "(cached) $ECHO_C" >&6
15109 cat >conftest.$ac_ext <<_ACEOF
15112 cat confdefs.h >>conftest.$ac_ext
15113 cat >>conftest.$ac_ext <<_ACEOF
15114 /* end confdefs.h. */
15115 #include <alloca.h>
15119 char *p = (char *) alloca (2 * sizeof (int));
15124 rm -f conftest.$ac_objext conftest$ac_exeext
15125 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
15126 (eval $ac_link) 2>conftest.er1
15128 grep -v '^ *+' conftest.er1 >conftest.err
15130 cat conftest.err >&5
15131 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15132 (exit $ac_status); } &&
15133 { ac_try='test -z "$ac_c_werror_flag"
15134 || test ! -s conftest.err'
15135 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15136 (eval $ac_try) 2>&5
15138 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15139 (exit $ac_status); }; } &&
15140 { ac_try='test -s conftest$ac_exeext'
15141 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15142 (eval $ac_try) 2>&5
15144 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15145 (exit $ac_status); }; }; then
15146 ac_cv_working_alloca_h=yes
15148 echo "$as_me: failed program was:" >&5
15149 sed 's/^/| /' conftest.$ac_ext >&5
15151 ac_cv_working_alloca_h=no
15153 rm -f conftest.err conftest.$ac_objext \
15154 conftest$ac_exeext conftest.$ac_ext
15156 echo "$as_me:$LINENO: result: $ac_cv_working_alloca_h" >&5
15157 echo "${ECHO_T}$ac_cv_working_alloca_h" >&6
15158 if test $ac_cv_working_alloca_h = yes; then
15160 cat >>confdefs.h <<\_ACEOF
15161 #define HAVE_ALLOCA_H 1
15166 echo "$as_me:$LINENO: checking for alloca" >&5
15167 echo $ECHO_N "checking for alloca... $ECHO_C" >&6
15168 if test "${ac_cv_func_alloca_works+set}" = set; then
15169 echo $ECHO_N "(cached) $ECHO_C" >&6
15171 cat >conftest.$ac_ext <<_ACEOF
15174 cat confdefs.h >>conftest.$ac_ext
15175 cat >>conftest.$ac_ext <<_ACEOF
15176 /* end confdefs.h. */
15178 # define alloca __builtin_alloca
15181 # include <malloc.h>
15182 # define alloca _alloca
15185 # include <alloca.h>
15190 # ifndef alloca /* predefined by HP cc +Olibcalls */
15201 char *p = (char *) alloca (1);
15206 rm -f conftest.$ac_objext conftest$ac_exeext
15207 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
15208 (eval $ac_link) 2>conftest.er1
15210 grep -v '^ *+' conftest.er1 >conftest.err
15212 cat conftest.err >&5
15213 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15214 (exit $ac_status); } &&
15215 { ac_try='test -z "$ac_c_werror_flag"
15216 || test ! -s conftest.err'
15217 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15218 (eval $ac_try) 2>&5
15220 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15221 (exit $ac_status); }; } &&
15222 { ac_try='test -s conftest$ac_exeext'
15223 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15224 (eval $ac_try) 2>&5
15226 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15227 (exit $ac_status); }; }; then
15228 ac_cv_func_alloca_works=yes
15230 echo "$as_me: failed program was:" >&5
15231 sed 's/^/| /' conftest.$ac_ext >&5
15233 ac_cv_func_alloca_works=no
15235 rm -f conftest.err conftest.$ac_objext \
15236 conftest$ac_exeext conftest.$ac_ext
15238 echo "$as_me:$LINENO: result: $ac_cv_func_alloca_works" >&5
15239 echo "${ECHO_T}$ac_cv_func_alloca_works" >&6
15241 if test $ac_cv_func_alloca_works = yes; then
15243 cat >>confdefs.h <<\_ACEOF
15244 #define HAVE_ALLOCA 1
15248 # The SVR3 libPW and SVR4 libucb both contain incompatible functions
15249 # that cause trouble. Some versions do not even contain alloca or
15250 # contain a buggy version. If you still want to use their alloca,
15251 # use ar to extract alloca.o from them instead of compiling alloca.c.
15253 ALLOCA=alloca.$ac_objext
15255 cat >>confdefs.h <<\_ACEOF
15260 echo "$as_me:$LINENO: checking whether \`alloca.c' needs Cray hooks" >&5
15261 echo $ECHO_N "checking whether \`alloca.c' needs Cray hooks... $ECHO_C" >&6
15262 if test "${ac_cv_os_cray+set}" = set; then
15263 echo $ECHO_N "(cached) $ECHO_C" >&6
15265 cat >conftest.$ac_ext <<_ACEOF
15268 cat confdefs.h >>conftest.$ac_ext
15269 cat >>conftest.$ac_ext <<_ACEOF
15270 /* end confdefs.h. */
15271 #if defined(CRAY) && ! defined(CRAY2)
15278 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
15279 $EGREP "webecray" >/dev/null 2>&1; then
15287 echo "$as_me:$LINENO: result: $ac_cv_os_cray" >&5
15288 echo "${ECHO_T}$ac_cv_os_cray" >&6
15289 if test $ac_cv_os_cray = yes; then
15290 for ac_func in _getb67 GETB67 getb67; do
15291 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
15292 echo "$as_me:$LINENO: checking for $ac_func" >&5
15293 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
15294 if eval "test \"\${$as_ac_var+set}\" = set"; then
15295 echo $ECHO_N "(cached) $ECHO_C" >&6
15297 cat >conftest.$ac_ext <<_ACEOF
15300 cat confdefs.h >>conftest.$ac_ext
15301 cat >>conftest.$ac_ext <<_ACEOF
15302 /* end confdefs.h. */
15303 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
15304 For example, HP-UX 11i <limits.h> declares gettimeofday. */
15305 #define $ac_func innocuous_$ac_func
15307 /* System header to define __stub macros and hopefully few prototypes,
15308 which can conflict with char $ac_func (); below.
15309 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
15310 <limits.h> exists even on freestanding compilers. */
15313 # include <limits.h>
15315 # include <assert.h>
15320 /* Override any gcc2 internal prototype to avoid an error. */
15325 /* We use char because int might match the return type of a gcc2
15326 builtin and then its argument prototype would still apply. */
15328 /* The GNU C library defines this for functions which it implements
15329 to always fail with ENOSYS. Some functions are actually named
15330 something starting with __ and the normal name is an alias. */
15331 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
15334 char (*f) () = $ac_func;
15343 return f != $ac_func;
15348 rm -f conftest.$ac_objext conftest$ac_exeext
15349 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
15350 (eval $ac_link) 2>conftest.er1
15352 grep -v '^ *+' conftest.er1 >conftest.err
15354 cat conftest.err >&5
15355 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15356 (exit $ac_status); } &&
15357 { ac_try='test -z "$ac_c_werror_flag"
15358 || test ! -s conftest.err'
15359 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15360 (eval $ac_try) 2>&5
15362 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15363 (exit $ac_status); }; } &&
15364 { ac_try='test -s conftest$ac_exeext'
15365 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15366 (eval $ac_try) 2>&5
15368 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15369 (exit $ac_status); }; }; then
15370 eval "$as_ac_var=yes"
15372 echo "$as_me: failed program was:" >&5
15373 sed 's/^/| /' conftest.$ac_ext >&5
15375 eval "$as_ac_var=no"
15377 rm -f conftest.err conftest.$ac_objext \
15378 conftest$ac_exeext conftest.$ac_ext
15380 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
15381 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
15382 if test `eval echo '${'$as_ac_var'}'` = yes; then
15384 cat >>confdefs.h <<_ACEOF
15385 #define CRAY_STACKSEG_END $ac_func
15394 echo "$as_me:$LINENO: checking stack direction for C alloca" >&5
15395 echo $ECHO_N "checking stack direction for C alloca... $ECHO_C" >&6
15396 if test "${ac_cv_c_stack_direction+set}" = set; then
15397 echo $ECHO_N "(cached) $ECHO_C" >&6
15399 if test "$cross_compiling" = yes; then
15400 ac_cv_c_stack_direction=0
15402 cat >conftest.$ac_ext <<_ACEOF
15405 cat confdefs.h >>conftest.$ac_ext
15406 cat >>conftest.$ac_ext <<_ACEOF
15407 /* end confdefs.h. */
15409 find_stack_direction ()
15411 static char *addr = 0;
15416 return find_stack_direction ();
15419 return (&dummy > addr) ? 1 : -1;
15425 exit (find_stack_direction () < 0);
15428 rm -f conftest$ac_exeext
15429 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
15430 (eval $ac_link) 2>&5
15432 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15433 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
15434 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15435 (eval $ac_try) 2>&5
15437 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15438 (exit $ac_status); }; }; then
15439 ac_cv_c_stack_direction=1
15441 echo "$as_me: program exited with status $ac_status" >&5
15442 echo "$as_me: failed program was:" >&5
15443 sed 's/^/| /' conftest.$ac_ext >&5
15445 ( exit $ac_status )
15446 ac_cv_c_stack_direction=-1
15448 rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
15451 echo "$as_me:$LINENO: result: $ac_cv_c_stack_direction" >&5
15452 echo "${ECHO_T}$ac_cv_c_stack_direction" >&6
15454 cat >>confdefs.h <<_ACEOF
15455 #define STACK_DIRECTION $ac_cv_c_stack_direction
15463 for ac_header in stdlib.h unistd.h
15465 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
15466 if eval "test \"\${$as_ac_Header+set}\" = set"; then
15467 echo "$as_me:$LINENO: checking for $ac_header" >&5
15468 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
15469 if eval "test \"\${$as_ac_Header+set}\" = set"; then
15470 echo $ECHO_N "(cached) $ECHO_C" >&6
15472 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
15473 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
15475 # Is the header compilable?
15476 echo "$as_me:$LINENO: checking $ac_header usability" >&5
15477 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
15478 cat >conftest.$ac_ext <<_ACEOF
15481 cat confdefs.h >>conftest.$ac_ext
15482 cat >>conftest.$ac_ext <<_ACEOF
15483 /* end confdefs.h. */
15484 $ac_includes_default
15485 #include <$ac_header>
15487 rm -f conftest.$ac_objext
15488 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
15489 (eval $ac_compile) 2>conftest.er1
15491 grep -v '^ *+' conftest.er1 >conftest.err
15493 cat conftest.err >&5
15494 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15495 (exit $ac_status); } &&
15496 { ac_try='test -z "$ac_c_werror_flag"
15497 || test ! -s conftest.err'
15498 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15499 (eval $ac_try) 2>&5
15501 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15502 (exit $ac_status); }; } &&
15503 { ac_try='test -s conftest.$ac_objext'
15504 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15505 (eval $ac_try) 2>&5
15507 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15508 (exit $ac_status); }; }; then
15509 ac_header_compiler=yes
15511 echo "$as_me: failed program was:" >&5
15512 sed 's/^/| /' conftest.$ac_ext >&5
15514 ac_header_compiler=no
15516 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
15517 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
15518 echo "${ECHO_T}$ac_header_compiler" >&6
15520 # Is the header present?
15521 echo "$as_me:$LINENO: checking $ac_header presence" >&5
15522 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
15523 cat >conftest.$ac_ext <<_ACEOF
15526 cat confdefs.h >>conftest.$ac_ext
15527 cat >>conftest.$ac_ext <<_ACEOF
15528 /* end confdefs.h. */
15529 #include <$ac_header>
15531 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
15532 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
15534 grep -v '^ *+' conftest.er1 >conftest.err
15536 cat conftest.err >&5
15537 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15538 (exit $ac_status); } >/dev/null; then
15539 if test -s conftest.err; then
15540 ac_cpp_err=$ac_c_preproc_warn_flag
15541 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
15548 if test -z "$ac_cpp_err"; then
15549 ac_header_preproc=yes
15551 echo "$as_me: failed program was:" >&5
15552 sed 's/^/| /' conftest.$ac_ext >&5
15554 ac_header_preproc=no
15556 rm -f conftest.err conftest.$ac_ext
15557 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
15558 echo "${ECHO_T}$ac_header_preproc" >&6
15560 # So? What about this header?
15561 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
15563 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
15564 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
15565 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
15566 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
15567 ac_header_preproc=yes
15570 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
15571 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
15572 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
15573 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
15574 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
15575 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
15576 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
15577 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
15578 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
15579 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
15580 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
15581 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
15584 ## ------------------------------------------ ##
15585 ## Report this to the AC_PACKAGE_NAME lists. ##
15586 ## ------------------------------------------ ##
15589 sed "s/^/$as_me: WARNING: /" >&2
15592 echo "$as_me:$LINENO: checking for $ac_header" >&5
15593 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
15594 if eval "test \"\${$as_ac_Header+set}\" = set"; then
15595 echo $ECHO_N "(cached) $ECHO_C" >&6
15597 eval "$as_ac_Header=\$ac_header_preproc"
15599 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
15600 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
15603 if test `eval echo '${'$as_ac_Header'}'` = yes; then
15604 cat >>confdefs.h <<_ACEOF
15605 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
15613 for ac_func in getpagesize
15615 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
15616 echo "$as_me:$LINENO: checking for $ac_func" >&5
15617 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
15618 if eval "test \"\${$as_ac_var+set}\" = set"; then
15619 echo $ECHO_N "(cached) $ECHO_C" >&6
15621 cat >conftest.$ac_ext <<_ACEOF
15624 cat confdefs.h >>conftest.$ac_ext
15625 cat >>conftest.$ac_ext <<_ACEOF
15626 /* end confdefs.h. */
15627 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
15628 For example, HP-UX 11i <limits.h> declares gettimeofday. */
15629 #define $ac_func innocuous_$ac_func
15631 /* System header to define __stub macros and hopefully few prototypes,
15632 which can conflict with char $ac_func (); below.
15633 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
15634 <limits.h> exists even on freestanding compilers. */
15637 # include <limits.h>
15639 # include <assert.h>
15644 /* Override any gcc2 internal prototype to avoid an error. */
15649 /* We use char because int might match the return type of a gcc2
15650 builtin and then its argument prototype would still apply. */
15652 /* The GNU C library defines this for functions which it implements
15653 to always fail with ENOSYS. Some functions are actually named
15654 something starting with __ and the normal name is an alias. */
15655 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
15658 char (*f) () = $ac_func;
15667 return f != $ac_func;
15672 rm -f conftest.$ac_objext conftest$ac_exeext
15673 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
15674 (eval $ac_link) 2>conftest.er1
15676 grep -v '^ *+' conftest.er1 >conftest.err
15678 cat conftest.err >&5
15679 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15680 (exit $ac_status); } &&
15681 { ac_try='test -z "$ac_c_werror_flag"
15682 || test ! -s conftest.err'
15683 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15684 (eval $ac_try) 2>&5
15686 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15687 (exit $ac_status); }; } &&
15688 { ac_try='test -s conftest$ac_exeext'
15689 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15690 (eval $ac_try) 2>&5
15692 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15693 (exit $ac_status); }; }; then
15694 eval "$as_ac_var=yes"
15696 echo "$as_me: failed program was:" >&5
15697 sed 's/^/| /' conftest.$ac_ext >&5
15699 eval "$as_ac_var=no"
15701 rm -f conftest.err conftest.$ac_objext \
15702 conftest$ac_exeext conftest.$ac_ext
15704 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
15705 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
15706 if test `eval echo '${'$as_ac_var'}'` = yes; then
15707 cat >>confdefs.h <<_ACEOF
15708 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
15714 echo "$as_me:$LINENO: checking for working mmap" >&5
15715 echo $ECHO_N "checking for working mmap... $ECHO_C" >&6
15716 if test "${ac_cv_func_mmap_fixed_mapped+set}" = set; then
15717 echo $ECHO_N "(cached) $ECHO_C" >&6
15719 if test "$cross_compiling" = yes; then
15720 ac_cv_func_mmap_fixed_mapped=no
15722 cat >conftest.$ac_ext <<_ACEOF
15725 cat confdefs.h >>conftest.$ac_ext
15726 cat >>conftest.$ac_ext <<_ACEOF
15727 /* end confdefs.h. */
15728 $ac_includes_default
15729 /* malloc might have been renamed as rpl_malloc. */
15732 /* Thanks to Mike Haertel and Jim Avera for this test.
15733 Here is a matrix of mmap possibilities:
15734 mmap private not fixed
15735 mmap private fixed at somewhere currently unmapped
15736 mmap private fixed at somewhere already mapped
15737 mmap shared not fixed
15738 mmap shared fixed at somewhere currently unmapped
15739 mmap shared fixed at somewhere already mapped
15740 For private mappings, we should verify that changes cannot be read()
15741 back from the file, nor mmap's back from the file at a different
15742 address. (There have been systems where private was not correctly
15743 implemented like the infamous i386 svr4.0, and systems where the
15744 VM page cache was not coherent with the file system buffer cache
15745 like early versions of FreeBSD and possibly contemporary NetBSD.)
15746 For shared mappings, we should conversely verify that changes get
15747 propagated back to all the places they're supposed to be.
15749 Grep wants private fixed already mapped.
15750 The main things grep needs to know about mmap are:
15751 * does it exist and is it safe to write into the mmap'd area
15752 * how to use it (BSD variants) */
15755 #include <sys/mman.h>
15757 #if !STDC_HEADERS && !HAVE_STDLIB_H
15761 /* This mess was copied from the GNU getpagesize.h. */
15762 #if !HAVE_GETPAGESIZE
15763 /* Assume that all systems that can run configure have sys/param.h. */
15764 # if !HAVE_SYS_PARAM_H
15765 # define HAVE_SYS_PARAM_H 1
15768 # ifdef _SC_PAGESIZE
15769 # define getpagesize() sysconf(_SC_PAGESIZE)
15770 # else /* no _SC_PAGESIZE */
15771 # if HAVE_SYS_PARAM_H
15772 # include <sys/param.h>
15773 # ifdef EXEC_PAGESIZE
15774 # define getpagesize() EXEC_PAGESIZE
15775 # else /* no EXEC_PAGESIZE */
15777 # define getpagesize() NBPG * CLSIZE
15780 # endif /* no CLSIZE */
15781 # else /* no NBPG */
15783 # define getpagesize() NBPC
15784 # else /* no NBPC */
15786 # define getpagesize() PAGESIZE
15787 # endif /* PAGESIZE */
15788 # endif /* no NBPC */
15789 # endif /* no NBPG */
15790 # endif /* no EXEC_PAGESIZE */
15791 # else /* no HAVE_SYS_PARAM_H */
15792 # define getpagesize() 8192 /* punt totally */
15793 # endif /* no HAVE_SYS_PARAM_H */
15794 # endif /* no _SC_PAGESIZE */
15796 #endif /* no HAVE_GETPAGESIZE */
15801 char *data, *data2, *data3;
15805 pagesize = getpagesize ();
15807 /* First, make a file with some known garbage in it. */
15808 data = (char *) malloc (pagesize);
15811 for (i = 0; i < pagesize; ++i)
15812 *(data + i) = rand ();
15814 fd = creat ("conftest.mmap", 0600);
15817 if (write (fd, data, pagesize) != pagesize)
15821 /* Next, try to mmap the file at a fixed address which already has
15822 something else allocated at it. If we can, also make sure that
15823 we see the same garbage. */
15824 fd = open ("conftest.mmap", O_RDWR);
15827 data2 = (char *) malloc (2 * pagesize);
15830 data2 += (pagesize - ((long) data2 & (pagesize - 1))) & (pagesize - 1);
15831 if (data2 != mmap (data2, pagesize, PROT_READ | PROT_WRITE,
15832 MAP_PRIVATE | MAP_FIXED, fd, 0L))
15834 for (i = 0; i < pagesize; ++i)
15835 if (*(data + i) != *(data2 + i))
15838 /* Finally, make sure that changes to the mapped area do not
15839 percolate back to the file as seen by read(). (This is a bug on
15840 some variants of i386 svr4.0.) */
15841 for (i = 0; i < pagesize; ++i)
15842 *(data2 + i) = *(data2 + i) + 1;
15843 data3 = (char *) malloc (pagesize);
15846 if (read (fd, data3, pagesize) != pagesize)
15848 for (i = 0; i < pagesize; ++i)
15849 if (*(data + i) != *(data3 + i))
15855 rm -f conftest$ac_exeext
15856 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
15857 (eval $ac_link) 2>&5
15859 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15860 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
15861 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15862 (eval $ac_try) 2>&5
15864 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15865 (exit $ac_status); }; }; then
15866 ac_cv_func_mmap_fixed_mapped=yes
15868 echo "$as_me: program exited with status $ac_status" >&5
15869 echo "$as_me: failed program was:" >&5
15870 sed 's/^/| /' conftest.$ac_ext >&5
15872 ( exit $ac_status )
15873 ac_cv_func_mmap_fixed_mapped=no
15875 rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
15878 echo "$as_me:$LINENO: result: $ac_cv_func_mmap_fixed_mapped" >&5
15879 echo "${ECHO_T}$ac_cv_func_mmap_fixed_mapped" >&6
15880 if test $ac_cv_func_mmap_fixed_mapped = yes; then
15882 cat >>confdefs.h <<\_ACEOF
15883 #define HAVE_MMAP 1
15887 rm -f conftest.mmap
15889 echo "$as_me:$LINENO: checking for pid_t" >&5
15890 echo $ECHO_N "checking for pid_t... $ECHO_C" >&6
15891 if test "${ac_cv_type_pid_t+set}" = set; then
15892 echo $ECHO_N "(cached) $ECHO_C" >&6
15894 cat >conftest.$ac_ext <<_ACEOF
15897 cat confdefs.h >>conftest.$ac_ext
15898 cat >>conftest.$ac_ext <<_ACEOF
15899 /* end confdefs.h. */
15900 $ac_includes_default
15906 if (sizeof (pid_t))
15912 rm -f conftest.$ac_objext
15913 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
15914 (eval $ac_compile) 2>conftest.er1
15916 grep -v '^ *+' conftest.er1 >conftest.err
15918 cat conftest.err >&5
15919 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15920 (exit $ac_status); } &&
15921 { ac_try='test -z "$ac_c_werror_flag"
15922 || test ! -s conftest.err'
15923 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15924 (eval $ac_try) 2>&5
15926 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15927 (exit $ac_status); }; } &&
15928 { ac_try='test -s conftest.$ac_objext'
15929 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15930 (eval $ac_try) 2>&5
15932 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15933 (exit $ac_status); }; }; then
15934 ac_cv_type_pid_t=yes
15936 echo "$as_me: failed program was:" >&5
15937 sed 's/^/| /' conftest.$ac_ext >&5
15939 ac_cv_type_pid_t=no
15941 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
15943 echo "$as_me:$LINENO: result: $ac_cv_type_pid_t" >&5
15944 echo "${ECHO_T}$ac_cv_type_pid_t" >&6
15945 if test $ac_cv_type_pid_t = yes; then
15949 cat >>confdefs.h <<_ACEOF
15957 for ac_header in unistd.h vfork.h
15959 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
15960 if eval "test \"\${$as_ac_Header+set}\" = set"; then
15961 echo "$as_me:$LINENO: checking for $ac_header" >&5
15962 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
15963 if eval "test \"\${$as_ac_Header+set}\" = set"; then
15964 echo $ECHO_N "(cached) $ECHO_C" >&6
15966 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
15967 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
15969 # Is the header compilable?
15970 echo "$as_me:$LINENO: checking $ac_header usability" >&5
15971 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
15972 cat >conftest.$ac_ext <<_ACEOF
15975 cat confdefs.h >>conftest.$ac_ext
15976 cat >>conftest.$ac_ext <<_ACEOF
15977 /* end confdefs.h. */
15978 $ac_includes_default
15979 #include <$ac_header>
15981 rm -f conftest.$ac_objext
15982 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
15983 (eval $ac_compile) 2>conftest.er1
15985 grep -v '^ *+' conftest.er1 >conftest.err
15987 cat conftest.err >&5
15988 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15989 (exit $ac_status); } &&
15990 { ac_try='test -z "$ac_c_werror_flag"
15991 || test ! -s conftest.err'
15992 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15993 (eval $ac_try) 2>&5
15995 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15996 (exit $ac_status); }; } &&
15997 { ac_try='test -s conftest.$ac_objext'
15998 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15999 (eval $ac_try) 2>&5
16001 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16002 (exit $ac_status); }; }; then
16003 ac_header_compiler=yes
16005 echo "$as_me: failed program was:" >&5
16006 sed 's/^/| /' conftest.$ac_ext >&5
16008 ac_header_compiler=no
16010 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
16011 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
16012 echo "${ECHO_T}$ac_header_compiler" >&6
16014 # Is the header present?
16015 echo "$as_me:$LINENO: checking $ac_header presence" >&5
16016 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
16017 cat >conftest.$ac_ext <<_ACEOF
16020 cat confdefs.h >>conftest.$ac_ext
16021 cat >>conftest.$ac_ext <<_ACEOF
16022 /* end confdefs.h. */
16023 #include <$ac_header>
16025 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
16026 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
16028 grep -v '^ *+' conftest.er1 >conftest.err
16030 cat conftest.err >&5
16031 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16032 (exit $ac_status); } >/dev/null; then
16033 if test -s conftest.err; then
16034 ac_cpp_err=$ac_c_preproc_warn_flag
16035 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
16042 if test -z "$ac_cpp_err"; then
16043 ac_header_preproc=yes
16045 echo "$as_me: failed program was:" >&5
16046 sed 's/^/| /' conftest.$ac_ext >&5
16048 ac_header_preproc=no
16050 rm -f conftest.err conftest.$ac_ext
16051 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
16052 echo "${ECHO_T}$ac_header_preproc" >&6
16054 # So? What about this header?
16055 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
16057 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
16058 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
16059 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
16060 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
16061 ac_header_preproc=yes
16064 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
16065 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
16066 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
16067 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
16068 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
16069 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
16070 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
16071 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
16072 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
16073 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
16074 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
16075 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
16078 ## ------------------------------------------ ##
16079 ## Report this to the AC_PACKAGE_NAME lists. ##
16080 ## ------------------------------------------ ##
16083 sed "s/^/$as_me: WARNING: /" >&2
16086 echo "$as_me:$LINENO: checking for $ac_header" >&5
16087 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
16088 if eval "test \"\${$as_ac_Header+set}\" = set"; then
16089 echo $ECHO_N "(cached) $ECHO_C" >&6
16091 eval "$as_ac_Header=\$ac_header_preproc"
16093 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
16094 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
16097 if test `eval echo '${'$as_ac_Header'}'` = yes; then
16098 cat >>confdefs.h <<_ACEOF
16099 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
16108 for ac_func in fork vfork
16110 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
16111 echo "$as_me:$LINENO: checking for $ac_func" >&5
16112 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
16113 if eval "test \"\${$as_ac_var+set}\" = set"; then
16114 echo $ECHO_N "(cached) $ECHO_C" >&6
16116 cat >conftest.$ac_ext <<_ACEOF
16119 cat confdefs.h >>conftest.$ac_ext
16120 cat >>conftest.$ac_ext <<_ACEOF
16121 /* end confdefs.h. */
16122 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
16123 For example, HP-UX 11i <limits.h> declares gettimeofday. */
16124 #define $ac_func innocuous_$ac_func
16126 /* System header to define __stub macros and hopefully few prototypes,
16127 which can conflict with char $ac_func (); below.
16128 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
16129 <limits.h> exists even on freestanding compilers. */
16132 # include <limits.h>
16134 # include <assert.h>
16139 /* Override any gcc2 internal prototype to avoid an error. */
16144 /* We use char because int might match the return type of a gcc2
16145 builtin and then its argument prototype would still apply. */
16147 /* The GNU C library defines this for functions which it implements
16148 to always fail with ENOSYS. Some functions are actually named
16149 something starting with __ and the normal name is an alias. */
16150 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
16153 char (*f) () = $ac_func;
16162 return f != $ac_func;
16167 rm -f conftest.$ac_objext conftest$ac_exeext
16168 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
16169 (eval $ac_link) 2>conftest.er1
16171 grep -v '^ *+' conftest.er1 >conftest.err
16173 cat conftest.err >&5
16174 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16175 (exit $ac_status); } &&
16176 { ac_try='test -z "$ac_c_werror_flag"
16177 || test ! -s conftest.err'
16178 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16179 (eval $ac_try) 2>&5
16181 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16182 (exit $ac_status); }; } &&
16183 { ac_try='test -s conftest$ac_exeext'
16184 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16185 (eval $ac_try) 2>&5
16187 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16188 (exit $ac_status); }; }; then
16189 eval "$as_ac_var=yes"
16191 echo "$as_me: failed program was:" >&5
16192 sed 's/^/| /' conftest.$ac_ext >&5
16194 eval "$as_ac_var=no"
16196 rm -f conftest.err conftest.$ac_objext \
16197 conftest$ac_exeext conftest.$ac_ext
16199 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
16200 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
16201 if test `eval echo '${'$as_ac_var'}'` = yes; then
16202 cat >>confdefs.h <<_ACEOF
16203 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
16209 if test "x$ac_cv_func_fork" = xyes; then
16210 echo "$as_me:$LINENO: checking for working fork" >&5
16211 echo $ECHO_N "checking for working fork... $ECHO_C" >&6
16212 if test "${ac_cv_func_fork_works+set}" = set; then
16213 echo $ECHO_N "(cached) $ECHO_C" >&6
16215 if test "$cross_compiling" = yes; then
16216 ac_cv_func_fork_works=cross
16218 cat >conftest.$ac_ext <<_ACEOF
16219 /* By Ruediger Kuhlmann. */
16220 #include <sys/types.h>
16222 # include <unistd.h>
16224 /* Some systems only have a dummy stub for fork() */
16232 rm -f conftest$ac_exeext
16233 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
16234 (eval $ac_link) 2>&5
16236 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16237 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
16238 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16239 (eval $ac_try) 2>&5
16241 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16242 (exit $ac_status); }; }; then
16243 ac_cv_func_fork_works=yes
16245 echo "$as_me: program exited with status $ac_status" >&5
16246 echo "$as_me: failed program was:" >&5
16247 sed 's/^/| /' conftest.$ac_ext >&5
16249 ( exit $ac_status )
16250 ac_cv_func_fork_works=no
16252 rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
16255 echo "$as_me:$LINENO: result: $ac_cv_func_fork_works" >&5
16256 echo "${ECHO_T}$ac_cv_func_fork_works" >&6
16259 ac_cv_func_fork_works=$ac_cv_func_fork
16261 if test "x$ac_cv_func_fork_works" = xcross; then
16263 *-*-amigaos* | *-*-msdosdjgpp*)
16264 # Override, as these systems have only a dummy fork() stub
16265 ac_cv_func_fork_works=no
16268 ac_cv_func_fork_works=yes
16271 { echo "$as_me:$LINENO: WARNING: result $ac_cv_func_fork_works guessed because of cross compilation" >&5
16272 echo "$as_me: WARNING: result $ac_cv_func_fork_works guessed because of cross compilation" >&2;}
16274 ac_cv_func_vfork_works=$ac_cv_func_vfork
16275 if test "x$ac_cv_func_vfork" = xyes; then
16276 echo "$as_me:$LINENO: checking for working vfork" >&5
16277 echo $ECHO_N "checking for working vfork... $ECHO_C" >&6
16278 if test "${ac_cv_func_vfork_works+set}" = set; then
16279 echo $ECHO_N "(cached) $ECHO_C" >&6
16281 if test "$cross_compiling" = yes; then
16282 ac_cv_func_vfork_works=cross
16284 cat >conftest.$ac_ext <<_ACEOF
16287 cat confdefs.h >>conftest.$ac_ext
16288 cat >>conftest.$ac_ext <<_ACEOF
16289 /* end confdefs.h. */
16290 /* Thanks to Paul Eggert for this test. */
16292 #include <stdlib.h>
16293 #include <sys/types.h>
16294 #include <sys/stat.h>
16295 #include <sys/wait.h>
16297 # include <unistd.h>
16300 # include <vfork.h>
16302 /* On some sparc systems, changes by the child to local and incoming
16303 argument registers are propagated back to the parent. The compiler
16304 is told about this with #include <vfork.h>, but some compilers
16305 (e.g. gcc -O) don't grok <vfork.h>. Test for this by using a
16306 static variable whose address is put into a register that is
16307 clobbered by the vfork. */
16310 sparc_address_test (int arg)
16312 sparc_address_test (arg) int arg;
16315 static pid_t child;
16333 pid_t parent = getpid ();
16336 sparc_address_test (0);
16341 /* Here is another test for sparc vfork register problems. This
16342 test uses lots of local variables, at least as many local
16343 variables as main has allocated so far including compiler
16344 temporaries. 4 locals are enough for gcc 1.40.3 on a Solaris
16345 4.1.3 sparc, but we use 8 to be safe. A buggy compiler should
16346 reuse the register of parent for one of the local variables,
16347 since it will think that parent can't possibly be used any more
16348 in this routine. Assigning to the local variable will thus
16349 munge parent in the parent process. */
16351 p = getpid(), p1 = getpid(), p2 = getpid(), p3 = getpid(),
16352 p4 = getpid(), p5 = getpid(), p6 = getpid(), p7 = getpid();
16353 /* Convince the compiler that p..p7 are live; otherwise, it might
16354 use the same hardware register for all 8 local variables. */
16355 if (p != p1 || p != p2 || p != p3 || p != p4
16356 || p != p5 || p != p6 || p != p7)
16359 /* On some systems (e.g. IRIX 3.3), vfork doesn't separate parent
16360 from child file descriptors. If the child closes a descriptor
16361 before it execs or exits, this munges the parent's descriptor
16362 as well. Test for this by closing stdout in the child. */
16363 _exit(close(fileno(stdout)) != 0);
16368 while (wait(&status) != child)
16371 /* Was there some problem with vforking? */
16374 /* Did the child fail? (This shouldn't happen.) */
16377 /* Did the vfork/compiler bug occur? */
16378 || parent != getpid()
16380 /* Did the file descriptor bug occur? */
16381 || fstat(fileno(stdout), &st) != 0
16386 rm -f conftest$ac_exeext
16387 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
16388 (eval $ac_link) 2>&5
16390 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16391 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
16392 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16393 (eval $ac_try) 2>&5
16395 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16396 (exit $ac_status); }; }; then
16397 ac_cv_func_vfork_works=yes
16399 echo "$as_me: program exited with status $ac_status" >&5
16400 echo "$as_me: failed program was:" >&5
16401 sed 's/^/| /' conftest.$ac_ext >&5
16403 ( exit $ac_status )
16404 ac_cv_func_vfork_works=no
16406 rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
16409 echo "$as_me:$LINENO: result: $ac_cv_func_vfork_works" >&5
16410 echo "${ECHO_T}$ac_cv_func_vfork_works" >&6
16413 if test "x$ac_cv_func_fork_works" = xcross; then
16414 ac_cv_func_vfork_works=$ac_cv_func_vfork
16415 { echo "$as_me:$LINENO: WARNING: result $ac_cv_func_vfork_works guessed because of cross compilation" >&5
16416 echo "$as_me: WARNING: result $ac_cv_func_vfork_works guessed because of cross compilation" >&2;}
16419 if test "x$ac_cv_func_vfork_works" = xyes; then
16421 cat >>confdefs.h <<\_ACEOF
16422 #define HAVE_WORKING_VFORK 1
16427 cat >>confdefs.h <<\_ACEOF
16432 if test "x$ac_cv_func_fork_works" = xyes; then
16434 cat >>confdefs.h <<\_ACEOF
16435 #define HAVE_WORKING_FORK 1
16442 for ac_func in canonicalize_file_name realpath
16444 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
16445 echo "$as_me:$LINENO: checking for $ac_func" >&5
16446 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
16447 if eval "test \"\${$as_ac_var+set}\" = set"; then
16448 echo $ECHO_N "(cached) $ECHO_C" >&6
16450 cat >conftest.$ac_ext <<_ACEOF
16453 cat confdefs.h >>conftest.$ac_ext
16454 cat >>conftest.$ac_ext <<_ACEOF
16455 /* end confdefs.h. */
16456 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
16457 For example, HP-UX 11i <limits.h> declares gettimeofday. */
16458 #define $ac_func innocuous_$ac_func
16460 /* System header to define __stub macros and hopefully few prototypes,
16461 which can conflict with char $ac_func (); below.
16462 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
16463 <limits.h> exists even on freestanding compilers. */
16466 # include <limits.h>
16468 # include <assert.h>
16473 /* Override any gcc2 internal prototype to avoid an error. */
16478 /* We use char because int might match the return type of a gcc2
16479 builtin and then its argument prototype would still apply. */
16481 /* The GNU C library defines this for functions which it implements
16482 to always fail with ENOSYS. Some functions are actually named
16483 something starting with __ and the normal name is an alias. */
16484 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
16487 char (*f) () = $ac_func;
16496 return f != $ac_func;
16501 rm -f conftest.$ac_objext conftest$ac_exeext
16502 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
16503 (eval $ac_link) 2>conftest.er1
16505 grep -v '^ *+' conftest.er1 >conftest.err
16507 cat conftest.err >&5
16508 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16509 (exit $ac_status); } &&
16510 { ac_try='test -z "$ac_c_werror_flag"
16511 || test ! -s conftest.err'
16512 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16513 (eval $ac_try) 2>&5
16515 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16516 (exit $ac_status); }; } &&
16517 { ac_try='test -s conftest$ac_exeext'
16518 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16519 (eval $ac_try) 2>&5
16521 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16522 (exit $ac_status); }; }; then
16523 eval "$as_ac_var=yes"
16525 echo "$as_me: failed program was:" >&5
16526 sed 's/^/| /' conftest.$ac_ext >&5
16528 eval "$as_ac_var=no"
16530 rm -f conftest.err conftest.$ac_objext \
16531 conftest$ac_exeext conftest.$ac_ext
16533 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
16534 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
16535 if test `eval echo '${'$as_ac_var'}'` = yes; then
16536 cat >>confdefs.h <<_ACEOF
16537 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
16545 for ac_func in getuid getgid
16547 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
16548 echo "$as_me:$LINENO: checking for $ac_func" >&5
16549 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
16550 if eval "test \"\${$as_ac_var+set}\" = set"; then
16551 echo $ECHO_N "(cached) $ECHO_C" >&6
16553 cat >conftest.$ac_ext <<_ACEOF
16556 cat confdefs.h >>conftest.$ac_ext
16557 cat >>conftest.$ac_ext <<_ACEOF
16558 /* end confdefs.h. */
16559 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
16560 For example, HP-UX 11i <limits.h> declares gettimeofday. */
16561 #define $ac_func innocuous_$ac_func
16563 /* System header to define __stub macros and hopefully few prototypes,
16564 which can conflict with char $ac_func (); below.
16565 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
16566 <limits.h> exists even on freestanding compilers. */
16569 # include <limits.h>
16571 # include <assert.h>
16576 /* Override any gcc2 internal prototype to avoid an error. */
16581 /* We use char because int might match the return type of a gcc2
16582 builtin and then its argument prototype would still apply. */
16584 /* The GNU C library defines this for functions which it implements
16585 to always fail with ENOSYS. Some functions are actually named
16586 something starting with __ and the normal name is an alias. */
16587 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
16590 char (*f) () = $ac_func;
16599 return f != $ac_func;
16604 rm -f conftest.$ac_objext conftest$ac_exeext
16605 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
16606 (eval $ac_link) 2>conftest.er1
16608 grep -v '^ *+' conftest.er1 >conftest.err
16610 cat conftest.err >&5
16611 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16612 (exit $ac_status); } &&
16613 { ac_try='test -z "$ac_c_werror_flag"
16614 || test ! -s conftest.err'
16615 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16616 (eval $ac_try) 2>&5
16618 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16619 (exit $ac_status); }; } &&
16620 { ac_try='test -s conftest$ac_exeext'
16621 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16622 (eval $ac_try) 2>&5
16624 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16625 (exit $ac_status); }; }; then
16626 eval "$as_ac_var=yes"
16628 echo "$as_me: failed program was:" >&5
16629 sed 's/^/| /' conftest.$ac_ext >&5
16631 eval "$as_ac_var=no"
16633 rm -f conftest.err conftest.$ac_objext \
16634 conftest$ac_exeext conftest.$ac_ext
16636 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
16637 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
16638 if test `eval echo '${'$as_ac_var'}'` = yes; then
16639 cat >>confdefs.h <<_ACEOF
16640 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
16647 for ac_func in poll
16649 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
16650 echo "$as_me:$LINENO: checking for $ac_func" >&5
16651 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
16652 if eval "test \"\${$as_ac_var+set}\" = set"; then
16653 echo $ECHO_N "(cached) $ECHO_C" >&6
16655 cat >conftest.$ac_ext <<_ACEOF
16658 cat confdefs.h >>conftest.$ac_ext
16659 cat >>conftest.$ac_ext <<_ACEOF
16660 /* end confdefs.h. */
16661 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
16662 For example, HP-UX 11i <limits.h> declares gettimeofday. */
16663 #define $ac_func innocuous_$ac_func
16665 /* System header to define __stub macros and hopefully few prototypes,
16666 which can conflict with char $ac_func (); below.
16667 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
16668 <limits.h> exists even on freestanding compilers. */
16671 # include <limits.h>
16673 # include <assert.h>
16678 /* Override any gcc2 internal prototype to avoid an error. */
16683 /* We use char because int might match the return type of a gcc2
16684 builtin and then its argument prototype would still apply. */
16686 /* The GNU C library defines this for functions which it implements
16687 to always fail with ENOSYS. Some functions are actually named
16688 something starting with __ and the normal name is an alias. */
16689 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
16692 char (*f) () = $ac_func;
16701 return f != $ac_func;
16706 rm -f conftest.$ac_objext conftest$ac_exeext
16707 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
16708 (eval $ac_link) 2>conftest.er1
16710 grep -v '^ *+' conftest.er1 >conftest.err
16712 cat conftest.err >&5
16713 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16714 (exit $ac_status); } &&
16715 { ac_try='test -z "$ac_c_werror_flag"
16716 || test ! -s conftest.err'
16717 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16718 (eval $ac_try) 2>&5
16720 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16721 (exit $ac_status); }; } &&
16722 { ac_try='test -s conftest$ac_exeext'
16723 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16724 (eval $ac_try) 2>&5
16726 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16727 (exit $ac_status); }; }; then
16728 eval "$as_ac_var=yes"
16730 echo "$as_me: failed program was:" >&5
16731 sed 's/^/| /' conftest.$ac_ext >&5
16733 eval "$as_ac_var=no"
16735 rm -f conftest.err conftest.$ac_objext \
16736 conftest$ac_exeext conftest.$ac_ext
16738 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
16739 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
16740 if test `eval echo '${'$as_ac_var'}'` = yes; then
16741 cat >>confdefs.h <<_ACEOF
16742 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
16749 for ac_func in pread64
16751 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
16752 echo "$as_me:$LINENO: checking for $ac_func" >&5
16753 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
16754 if eval "test \"\${$as_ac_var+set}\" = set"; then
16755 echo $ECHO_N "(cached) $ECHO_C" >&6
16757 cat >conftest.$ac_ext <<_ACEOF
16760 cat confdefs.h >>conftest.$ac_ext
16761 cat >>conftest.$ac_ext <<_ACEOF
16762 /* end confdefs.h. */
16763 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
16764 For example, HP-UX 11i <limits.h> declares gettimeofday. */
16765 #define $ac_func innocuous_$ac_func
16767 /* System header to define __stub macros and hopefully few prototypes,
16768 which can conflict with char $ac_func (); below.
16769 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
16770 <limits.h> exists even on freestanding compilers. */
16773 # include <limits.h>
16775 # include <assert.h>
16780 /* Override any gcc2 internal prototype to avoid an error. */
16785 /* We use char because int might match the return type of a gcc2
16786 builtin and then its argument prototype would still apply. */
16788 /* The GNU C library defines this for functions which it implements
16789 to always fail with ENOSYS. Some functions are actually named
16790 something starting with __ and the normal name is an alias. */
16791 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
16794 char (*f) () = $ac_func;
16803 return f != $ac_func;
16808 rm -f conftest.$ac_objext conftest$ac_exeext
16809 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
16810 (eval $ac_link) 2>conftest.er1
16812 grep -v '^ *+' conftest.er1 >conftest.err
16814 cat conftest.err >&5
16815 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16816 (exit $ac_status); } &&
16817 { ac_try='test -z "$ac_c_werror_flag"
16818 || test ! -s conftest.err'
16819 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16820 (eval $ac_try) 2>&5
16822 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16823 (exit $ac_status); }; } &&
16824 { ac_try='test -s conftest$ac_exeext'
16825 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16826 (eval $ac_try) 2>&5
16828 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16829 (exit $ac_status); }; }; then
16830 eval "$as_ac_var=yes"
16832 echo "$as_me: failed program was:" >&5
16833 sed 's/^/| /' conftest.$ac_ext >&5
16835 eval "$as_ac_var=no"
16837 rm -f conftest.err conftest.$ac_objext \
16838 conftest$ac_exeext conftest.$ac_ext
16840 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
16841 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
16842 if test `eval echo '${'$as_ac_var'}'` = yes; then
16843 cat >>confdefs.h <<_ACEOF
16844 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
16851 for ac_func in sbrk
16853 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
16854 echo "$as_me:$LINENO: checking for $ac_func" >&5
16855 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
16856 if eval "test \"\${$as_ac_var+set}\" = set"; then
16857 echo $ECHO_N "(cached) $ECHO_C" >&6
16859 cat >conftest.$ac_ext <<_ACEOF
16862 cat confdefs.h >>conftest.$ac_ext
16863 cat >>conftest.$ac_ext <<_ACEOF
16864 /* end confdefs.h. */
16865 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
16866 For example, HP-UX 11i <limits.h> declares gettimeofday. */
16867 #define $ac_func innocuous_$ac_func
16869 /* System header to define __stub macros and hopefully few prototypes,
16870 which can conflict with char $ac_func (); below.
16871 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
16872 <limits.h> exists even on freestanding compilers. */
16875 # include <limits.h>
16877 # include <assert.h>
16882 /* Override any gcc2 internal prototype to avoid an error. */
16887 /* We use char because int might match the return type of a gcc2
16888 builtin and then its argument prototype would still apply. */
16890 /* The GNU C library defines this for functions which it implements
16891 to always fail with ENOSYS. Some functions are actually named
16892 something starting with __ and the normal name is an alias. */
16893 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
16896 char (*f) () = $ac_func;
16905 return f != $ac_func;
16910 rm -f conftest.$ac_objext conftest$ac_exeext
16911 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
16912 (eval $ac_link) 2>conftest.er1
16914 grep -v '^ *+' conftest.er1 >conftest.err
16916 cat conftest.err >&5
16917 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16918 (exit $ac_status); } &&
16919 { ac_try='test -z "$ac_c_werror_flag"
16920 || test ! -s conftest.err'
16921 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16922 (eval $ac_try) 2>&5
16924 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16925 (exit $ac_status); }; } &&
16926 { ac_try='test -s conftest$ac_exeext'
16927 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16928 (eval $ac_try) 2>&5
16930 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16931 (exit $ac_status); }; }; then
16932 eval "$as_ac_var=yes"
16934 echo "$as_me: failed program was:" >&5
16935 sed 's/^/| /' conftest.$ac_ext >&5
16937 eval "$as_ac_var=no"
16939 rm -f conftest.err conftest.$ac_objext \
16940 conftest$ac_exeext conftest.$ac_ext
16942 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
16943 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
16944 if test `eval echo '${'$as_ac_var'}'` = yes; then
16945 cat >>confdefs.h <<_ACEOF
16946 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
16954 for ac_func in setpgid setpgrp
16956 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
16957 echo "$as_me:$LINENO: checking for $ac_func" >&5
16958 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
16959 if eval "test \"\${$as_ac_var+set}\" = set"; then
16960 echo $ECHO_N "(cached) $ECHO_C" >&6
16962 cat >conftest.$ac_ext <<_ACEOF
16965 cat confdefs.h >>conftest.$ac_ext
16966 cat >>conftest.$ac_ext <<_ACEOF
16967 /* end confdefs.h. */
16968 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
16969 For example, HP-UX 11i <limits.h> declares gettimeofday. */
16970 #define $ac_func innocuous_$ac_func
16972 /* System header to define __stub macros and hopefully few prototypes,
16973 which can conflict with char $ac_func (); below.
16974 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
16975 <limits.h> exists even on freestanding compilers. */
16978 # include <limits.h>
16980 # include <assert.h>
16985 /* Override any gcc2 internal prototype to avoid an error. */
16990 /* We use char because int might match the return type of a gcc2
16991 builtin and then its argument prototype would still apply. */
16993 /* The GNU C library defines this for functions which it implements
16994 to always fail with ENOSYS. Some functions are actually named
16995 something starting with __ and the normal name is an alias. */
16996 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
16999 char (*f) () = $ac_func;
17008 return f != $ac_func;
17013 rm -f conftest.$ac_objext conftest$ac_exeext
17014 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
17015 (eval $ac_link) 2>conftest.er1
17017 grep -v '^ *+' conftest.er1 >conftest.err
17019 cat conftest.err >&5
17020 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17021 (exit $ac_status); } &&
17022 { ac_try='test -z "$ac_c_werror_flag"
17023 || test ! -s conftest.err'
17024 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17025 (eval $ac_try) 2>&5
17027 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17028 (exit $ac_status); }; } &&
17029 { ac_try='test -s conftest$ac_exeext'
17030 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17031 (eval $ac_try) 2>&5
17033 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17034 (exit $ac_status); }; }; then
17035 eval "$as_ac_var=yes"
17037 echo "$as_me: failed program was:" >&5
17038 sed 's/^/| /' conftest.$ac_ext >&5
17040 eval "$as_ac_var=no"
17042 rm -f conftest.err conftest.$ac_objext \
17043 conftest$ac_exeext conftest.$ac_ext
17045 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
17046 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
17047 if test `eval echo '${'$as_ac_var'}'` = yes; then
17048 cat >>confdefs.h <<_ACEOF
17049 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
17058 for ac_func in sigaction sigprocmask sigsetmask
17060 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
17061 echo "$as_me:$LINENO: checking for $ac_func" >&5
17062 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
17063 if eval "test \"\${$as_ac_var+set}\" = set"; then
17064 echo $ECHO_N "(cached) $ECHO_C" >&6
17066 cat >conftest.$ac_ext <<_ACEOF
17069 cat confdefs.h >>conftest.$ac_ext
17070 cat >>conftest.$ac_ext <<_ACEOF
17071 /* end confdefs.h. */
17072 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
17073 For example, HP-UX 11i <limits.h> declares gettimeofday. */
17074 #define $ac_func innocuous_$ac_func
17076 /* System header to define __stub macros and hopefully few prototypes,
17077 which can conflict with char $ac_func (); below.
17078 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
17079 <limits.h> exists even on freestanding compilers. */
17082 # include <limits.h>
17084 # include <assert.h>
17089 /* Override any gcc2 internal prototype to avoid an error. */
17094 /* We use char because int might match the return type of a gcc2
17095 builtin and then its argument prototype would still apply. */
17097 /* The GNU C library defines this for functions which it implements
17098 to always fail with ENOSYS. Some functions are actually named
17099 something starting with __ and the normal name is an alias. */
17100 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
17103 char (*f) () = $ac_func;
17112 return f != $ac_func;
17117 rm -f conftest.$ac_objext conftest$ac_exeext
17118 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
17119 (eval $ac_link) 2>conftest.er1
17121 grep -v '^ *+' conftest.er1 >conftest.err
17123 cat conftest.err >&5
17124 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17125 (exit $ac_status); } &&
17126 { ac_try='test -z "$ac_c_werror_flag"
17127 || test ! -s conftest.err'
17128 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17129 (eval $ac_try) 2>&5
17131 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17132 (exit $ac_status); }; } &&
17133 { ac_try='test -s conftest$ac_exeext'
17134 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17135 (eval $ac_try) 2>&5
17137 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17138 (exit $ac_status); }; }; then
17139 eval "$as_ac_var=yes"
17141 echo "$as_me: failed program was:" >&5
17142 sed 's/^/| /' conftest.$ac_ext >&5
17144 eval "$as_ac_var=no"
17146 rm -f conftest.err conftest.$ac_objext \
17147 conftest$ac_exeext conftest.$ac_ext
17149 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
17150 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
17151 if test `eval echo '${'$as_ac_var'}'` = yes; then
17152 cat >>confdefs.h <<_ACEOF
17153 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
17160 for ac_func in socketpair
17162 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
17163 echo "$as_me:$LINENO: checking for $ac_func" >&5
17164 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
17165 if eval "test \"\${$as_ac_var+set}\" = set"; then
17166 echo $ECHO_N "(cached) $ECHO_C" >&6
17168 cat >conftest.$ac_ext <<_ACEOF
17171 cat confdefs.h >>conftest.$ac_ext
17172 cat >>conftest.$ac_ext <<_ACEOF
17173 /* end confdefs.h. */
17174 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
17175 For example, HP-UX 11i <limits.h> declares gettimeofday. */
17176 #define $ac_func innocuous_$ac_func
17178 /* System header to define __stub macros and hopefully few prototypes,
17179 which can conflict with char $ac_func (); below.
17180 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
17181 <limits.h> exists even on freestanding compilers. */
17184 # include <limits.h>
17186 # include <assert.h>
17191 /* Override any gcc2 internal prototype to avoid an error. */
17196 /* We use char because int might match the return type of a gcc2
17197 builtin and then its argument prototype would still apply. */
17199 /* The GNU C library defines this for functions which it implements
17200 to always fail with ENOSYS. Some functions are actually named
17201 something starting with __ and the normal name is an alias. */
17202 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
17205 char (*f) () = $ac_func;
17214 return f != $ac_func;
17219 rm -f conftest.$ac_objext conftest$ac_exeext
17220 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
17221 (eval $ac_link) 2>conftest.er1
17223 grep -v '^ *+' conftest.er1 >conftest.err
17225 cat conftest.err >&5
17226 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17227 (exit $ac_status); } &&
17228 { ac_try='test -z "$ac_c_werror_flag"
17229 || test ! -s conftest.err'
17230 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17231 (eval $ac_try) 2>&5
17233 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17234 (exit $ac_status); }; } &&
17235 { ac_try='test -s conftest$ac_exeext'
17236 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17237 (eval $ac_try) 2>&5
17239 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17240 (exit $ac_status); }; }; then
17241 eval "$as_ac_var=yes"
17243 echo "$as_me: failed program was:" >&5
17244 sed 's/^/| /' conftest.$ac_ext >&5
17246 eval "$as_ac_var=no"
17248 rm -f conftest.err conftest.$ac_objext \
17249 conftest$ac_exeext conftest.$ac_ext
17251 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
17252 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
17253 if test `eval echo '${'$as_ac_var'}'` = yes; then
17254 cat >>confdefs.h <<_ACEOF
17255 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
17262 for ac_func in syscall
17264 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
17265 echo "$as_me:$LINENO: checking for $ac_func" >&5
17266 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
17267 if eval "test \"\${$as_ac_var+set}\" = set"; then
17268 echo $ECHO_N "(cached) $ECHO_C" >&6
17270 cat >conftest.$ac_ext <<_ACEOF
17273 cat confdefs.h >>conftest.$ac_ext
17274 cat >>conftest.$ac_ext <<_ACEOF
17275 /* end confdefs.h. */
17276 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
17277 For example, HP-UX 11i <limits.h> declares gettimeofday. */
17278 #define $ac_func innocuous_$ac_func
17280 /* System header to define __stub macros and hopefully few prototypes,
17281 which can conflict with char $ac_func (); below.
17282 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
17283 <limits.h> exists even on freestanding compilers. */
17286 # include <limits.h>
17288 # include <assert.h>
17293 /* Override any gcc2 internal prototype to avoid an error. */
17298 /* We use char because int might match the return type of a gcc2
17299 builtin and then its argument prototype would still apply. */
17301 /* The GNU C library defines this for functions which it implements
17302 to always fail with ENOSYS. Some functions are actually named
17303 something starting with __ and the normal name is an alias. */
17304 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
17307 char (*f) () = $ac_func;
17316 return f != $ac_func;
17321 rm -f conftest.$ac_objext conftest$ac_exeext
17322 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
17323 (eval $ac_link) 2>conftest.er1
17325 grep -v '^ *+' conftest.er1 >conftest.err
17327 cat conftest.err >&5
17328 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17329 (exit $ac_status); } &&
17330 { ac_try='test -z "$ac_c_werror_flag"
17331 || test ! -s conftest.err'
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); }; } &&
17337 { ac_try='test -s conftest$ac_exeext'
17338 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17339 (eval $ac_try) 2>&5
17341 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17342 (exit $ac_status); }; }; then
17343 eval "$as_ac_var=yes"
17345 echo "$as_me: failed program was:" >&5
17346 sed 's/^/| /' conftest.$ac_ext >&5
17348 eval "$as_ac_var=no"
17350 rm -f conftest.err conftest.$ac_objext \
17351 conftest$ac_exeext conftest.$ac_ext
17353 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
17354 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
17355 if test `eval echo '${'$as_ac_var'}'` = yes; then
17356 cat >>confdefs.h <<_ACEOF
17357 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
17364 for ac_func in ttrace
17366 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
17367 echo "$as_me:$LINENO: checking for $ac_func" >&5
17368 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
17369 if eval "test \"\${$as_ac_var+set}\" = set"; then
17370 echo $ECHO_N "(cached) $ECHO_C" >&6
17372 cat >conftest.$ac_ext <<_ACEOF
17375 cat confdefs.h >>conftest.$ac_ext
17376 cat >>conftest.$ac_ext <<_ACEOF
17377 /* end confdefs.h. */
17378 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
17379 For example, HP-UX 11i <limits.h> declares gettimeofday. */
17380 #define $ac_func innocuous_$ac_func
17382 /* System header to define __stub macros and hopefully few prototypes,
17383 which can conflict with char $ac_func (); below.
17384 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
17385 <limits.h> exists even on freestanding compilers. */
17388 # include <limits.h>
17390 # include <assert.h>
17395 /* Override any gcc2 internal prototype to avoid an error. */
17400 /* We use char because int might match the return type of a gcc2
17401 builtin and then its argument prototype would still apply. */
17403 /* The GNU C library defines this for functions which it implements
17404 to always fail with ENOSYS. Some functions are actually named
17405 something starting with __ and the normal name is an alias. */
17406 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
17409 char (*f) () = $ac_func;
17418 return f != $ac_func;
17423 rm -f conftest.$ac_objext conftest$ac_exeext
17424 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
17425 (eval $ac_link) 2>conftest.er1
17427 grep -v '^ *+' conftest.er1 >conftest.err
17429 cat conftest.err >&5
17430 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17431 (exit $ac_status); } &&
17432 { ac_try='test -z "$ac_c_werror_flag"
17433 || test ! -s conftest.err'
17434 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17435 (eval $ac_try) 2>&5
17437 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17438 (exit $ac_status); }; } &&
17439 { ac_try='test -s conftest$ac_exeext'
17440 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17441 (eval $ac_try) 2>&5
17443 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17444 (exit $ac_status); }; }; then
17445 eval "$as_ac_var=yes"
17447 echo "$as_me: failed program was:" >&5
17448 sed 's/^/| /' conftest.$ac_ext >&5
17450 eval "$as_ac_var=no"
17452 rm -f conftest.err conftest.$ac_objext \
17453 conftest$ac_exeext conftest.$ac_ext
17455 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
17456 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
17457 if test `eval echo '${'$as_ac_var'}'` = yes; then
17458 cat >>confdefs.h <<_ACEOF
17459 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
17466 for ac_func in wborder
17468 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
17469 echo "$as_me:$LINENO: checking for $ac_func" >&5
17470 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
17471 if eval "test \"\${$as_ac_var+set}\" = set"; then
17472 echo $ECHO_N "(cached) $ECHO_C" >&6
17474 cat >conftest.$ac_ext <<_ACEOF
17477 cat confdefs.h >>conftest.$ac_ext
17478 cat >>conftest.$ac_ext <<_ACEOF
17479 /* end confdefs.h. */
17480 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
17481 For example, HP-UX 11i <limits.h> declares gettimeofday. */
17482 #define $ac_func innocuous_$ac_func
17484 /* System header to define __stub macros and hopefully few prototypes,
17485 which can conflict with char $ac_func (); below.
17486 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
17487 <limits.h> exists even on freestanding compilers. */
17490 # include <limits.h>
17492 # include <assert.h>
17497 /* Override any gcc2 internal prototype to avoid an error. */
17502 /* We use char because int might match the return type of a gcc2
17503 builtin and then its argument prototype would still apply. */
17505 /* The GNU C library defines this for functions which it implements
17506 to always fail with ENOSYS. Some functions are actually named
17507 something starting with __ and the normal name is an alias. */
17508 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
17511 char (*f) () = $ac_func;
17520 return f != $ac_func;
17525 rm -f conftest.$ac_objext conftest$ac_exeext
17526 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
17527 (eval $ac_link) 2>conftest.er1
17529 grep -v '^ *+' conftest.er1 >conftest.err
17531 cat conftest.err >&5
17532 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17533 (exit $ac_status); } &&
17534 { ac_try='test -z "$ac_c_werror_flag"
17535 || test ! -s conftest.err'
17536 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17537 (eval $ac_try) 2>&5
17539 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17540 (exit $ac_status); }; } &&
17541 { ac_try='test -s conftest$ac_exeext'
17542 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17543 (eval $ac_try) 2>&5
17545 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17546 (exit $ac_status); }; }; then
17547 eval "$as_ac_var=yes"
17549 echo "$as_me: failed program was:" >&5
17550 sed 's/^/| /' conftest.$ac_ext >&5
17552 eval "$as_ac_var=no"
17554 rm -f conftest.err conftest.$ac_objext \
17555 conftest$ac_exeext conftest.$ac_ext
17557 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
17558 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
17559 if test `eval echo '${'$as_ac_var'}'` = yes; then
17560 cat >>confdefs.h <<_ACEOF
17561 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
17568 # Check the return and argument types of ptrace. No canned test for
17569 # this, so roll our own.
17570 gdb_ptrace_headers='
17571 #if HAVE_SYS_TYPES_H
17572 # include <sys/types.h>
17574 #if HAVE_SYS_PTRACE_H
17575 # include <sys/ptrace.h>
17578 # include <unistd.h>
17581 # There is no point in checking if we don't have a prototype.
17582 echo "$as_me:$LINENO: checking whether ptrace is declared" >&5
17583 echo $ECHO_N "checking whether ptrace is declared... $ECHO_C" >&6
17584 if test "${ac_cv_have_decl_ptrace+set}" = set; then
17585 echo $ECHO_N "(cached) $ECHO_C" >&6
17587 cat >conftest.$ac_ext <<_ACEOF
17590 cat confdefs.h >>conftest.$ac_ext
17591 cat >>conftest.$ac_ext <<_ACEOF
17592 /* end confdefs.h. */
17593 $gdb_ptrace_headers
17599 char *p = (char *) ptrace;
17606 rm -f conftest.$ac_objext
17607 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
17608 (eval $ac_compile) 2>conftest.er1
17610 grep -v '^ *+' conftest.er1 >conftest.err
17612 cat conftest.err >&5
17613 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17614 (exit $ac_status); } &&
17615 { ac_try='test -z "$ac_c_werror_flag"
17616 || test ! -s conftest.err'
17617 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17618 (eval $ac_try) 2>&5
17620 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17621 (exit $ac_status); }; } &&
17622 { ac_try='test -s conftest.$ac_objext'
17623 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17624 (eval $ac_try) 2>&5
17626 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17627 (exit $ac_status); }; }; then
17628 ac_cv_have_decl_ptrace=yes
17630 echo "$as_me: failed program was:" >&5
17631 sed 's/^/| /' conftest.$ac_ext >&5
17633 ac_cv_have_decl_ptrace=no
17635 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
17637 echo "$as_me:$LINENO: result: $ac_cv_have_decl_ptrace" >&5
17638 echo "${ECHO_T}$ac_cv_have_decl_ptrace" >&6
17639 if test $ac_cv_have_decl_ptrace = yes; then
17641 cat >>confdefs.h <<_ACEOF
17642 #define HAVE_DECL_PTRACE 1
17647 cat >>confdefs.h <<_ACEOF
17648 #define HAVE_DECL_PTRACE 0
17652 : ${gdb_cv_func_ptrace_ret='int'}
17653 : ${gdb_cv_func_ptrace_args='int,int,long,long'}
17658 # Check return type.
17659 echo "$as_me:$LINENO: checking return type of ptrace" >&5
17660 echo $ECHO_N "checking return type of ptrace... $ECHO_C" >&6
17661 if test "${gdb_cv_func_ptrace_ret+set}" = set; then
17662 echo $ECHO_N "(cached) $ECHO_C" >&6
17664 cat >conftest.$ac_ext <<_ACEOF
17667 cat confdefs.h >>conftest.$ac_ext
17668 cat >>conftest.$ac_ext <<_ACEOF
17669 /* end confdefs.h. */
17670 $gdb_ptrace_headers
17674 extern int ptrace ();
17679 rm -f conftest.$ac_objext
17680 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
17681 (eval $ac_compile) 2>conftest.er1
17683 grep -v '^ *+' conftest.er1 >conftest.err
17685 cat conftest.err >&5
17686 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17687 (exit $ac_status); } &&
17688 { ac_try='test -z "$ac_c_werror_flag"
17689 || test ! -s conftest.err'
17690 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17691 (eval $ac_try) 2>&5
17693 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17694 (exit $ac_status); }; } &&
17695 { ac_try='test -s conftest.$ac_objext'
17696 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17697 (eval $ac_try) 2>&5
17699 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17700 (exit $ac_status); }; }; then
17701 gdb_cv_func_ptrace_ret='int'
17703 echo "$as_me: failed program was:" >&5
17704 sed 's/^/| /' conftest.$ac_ext >&5
17706 gdb_cv_func_ptrace_ret='long'
17708 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
17710 echo "$as_me:$LINENO: result: $gdb_cv_func_ptrace_ret" >&5
17711 echo "${ECHO_T}$gdb_cv_func_ptrace_ret" >&6
17713 cat >>confdefs.h <<_ACEOF
17714 #define PTRACE_TYPE_RET $gdb_cv_func_ptrace_ret
17717 # Check argument types.
17718 echo "$as_me:$LINENO: checking types of arguments for ptrace" >&5
17719 echo $ECHO_N "checking types of arguments for ptrace... $ECHO_C" >&6
17720 if test "${gdb_cv_func_ptrace_args+set}" = set; then
17721 echo $ECHO_N "(cached) $ECHO_C" >&6
17724 for gdb_arg1 in 'int' 'long'; do
17725 for gdb_arg2 in 'pid_t' 'int' 'long'; do
17726 for gdb_arg3 in 'int *' 'caddr_t' 'int' 'long'; do
17727 for gdb_arg4 in 'int' 'long'; do
17728 cat >conftest.$ac_ext <<_ACEOF
17731 cat confdefs.h >>conftest.$ac_ext
17732 cat >>conftest.$ac_ext <<_ACEOF
17733 /* end confdefs.h. */
17734 $gdb_ptrace_headers
17739 extern $gdb_cv_func_ptrace_ret
17740 ptrace ($gdb_arg1, $gdb_arg2, $gdb_arg3, $gdb_arg4);
17746 rm -f conftest.$ac_objext
17747 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
17748 (eval $ac_compile) 2>conftest.er1
17750 grep -v '^ *+' conftest.er1 >conftest.err
17752 cat conftest.err >&5
17753 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17754 (exit $ac_status); } &&
17755 { ac_try='test -z "$ac_c_werror_flag"
17756 || test ! -s conftest.err'
17757 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17758 (eval $ac_try) 2>&5
17760 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17761 (exit $ac_status); }; } &&
17762 { ac_try='test -s conftest.$ac_objext'
17763 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17764 (eval $ac_try) 2>&5
17766 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17767 (exit $ac_status); }; }; then
17768 gdb_cv_func_ptrace_args="$gdb_arg1,$gdb_arg2,$gdb_arg3,$gdb_arg4";
17771 echo "$as_me: failed program was:" >&5
17772 sed 's/^/| /' conftest.$ac_ext >&5
17775 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
17776 for gdb_arg5 in 'int *' 'int' 'long'; do
17777 cat >conftest.$ac_ext <<_ACEOF
17780 cat confdefs.h >>conftest.$ac_ext
17781 cat >>conftest.$ac_ext <<_ACEOF
17782 /* end confdefs.h. */
17783 $gdb_ptrace_headers
17788 extern $gdb_cv_func_ptrace_ret
17789 ptrace ($gdb_arg1, $gdb_arg2, $gdb_arg3, $gdb_arg4, $gdb_arg5);
17795 rm -f conftest.$ac_objext
17796 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
17797 (eval $ac_compile) 2>conftest.er1
17799 grep -v '^ *+' conftest.er1 >conftest.err
17801 cat conftest.err >&5
17802 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17803 (exit $ac_status); } &&
17804 { ac_try='test -z "$ac_c_werror_flag"
17805 || test ! -s conftest.err'
17806 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17807 (eval $ac_try) 2>&5
17809 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17810 (exit $ac_status); }; } &&
17811 { ac_try='test -s conftest.$ac_objext'
17812 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17813 (eval $ac_try) 2>&5
17815 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17816 (exit $ac_status); }; }; then
17818 gdb_cv_func_ptrace_args="$gdb_arg1,$gdb_arg2,$gdb_arg3,$gdb_arg4,$gdb_arg5";
17821 echo "$as_me: failed program was:" >&5
17822 sed 's/^/| /' conftest.$ac_ext >&5
17825 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
17831 # Provide a safe default value.
17832 : ${gdb_cv_func_ptrace_args='int,int,long,long'}
17835 echo "$as_me:$LINENO: result: $gdb_cv_func_ptrace_args" >&5
17836 echo "${ECHO_T}$gdb_cv_func_ptrace_args" >&6
17837 ac_save_IFS=$IFS; IFS=','
17838 set dummy `echo "$gdb_cv_func_ptrace_args" | sed 's/\*/\*/g'`
17842 cat >>confdefs.h <<_ACEOF
17843 #define PTRACE_TYPE_ARG3 $3
17846 if test -n "$5"; then
17848 cat >>confdefs.h <<_ACEOF
17849 #define PTRACE_TYPE_ARG5 $5
17854 if test "$cross_compiling" = no; then
17855 echo "$as_me:$LINENO: checking whether setpgrp takes no argument" >&5
17856 echo $ECHO_N "checking whether setpgrp takes no argument... $ECHO_C" >&6
17857 if test "${ac_cv_func_setpgrp_void+set}" = set; then
17858 echo $ECHO_N "(cached) $ECHO_C" >&6
17860 if test "$cross_compiling" = yes; then
17861 { { echo "$as_me:$LINENO: error: cannot check setpgrp when cross compiling" >&5
17862 echo "$as_me: error: cannot check setpgrp when cross compiling" >&2;}
17863 { (exit 1); exit 1; }; }
17865 cat >conftest.$ac_ext <<_ACEOF
17868 cat confdefs.h >>conftest.$ac_ext
17869 cat >>conftest.$ac_ext <<_ACEOF
17870 /* end confdefs.h. */
17872 # include <unistd.h>
17878 /* If this system has a BSD-style setpgrp which takes arguments,
17879 setpgrp(1, 1) will fail with ESRCH and return -1, in that case
17880 exit successfully. */
17881 exit (setpgrp (1,1) == -1 ? 0 : 1);
17886 rm -f conftest$ac_exeext
17887 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
17888 (eval $ac_link) 2>&5
17890 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17891 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
17892 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17893 (eval $ac_try) 2>&5
17895 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17896 (exit $ac_status); }; }; then
17897 ac_cv_func_setpgrp_void=no
17899 echo "$as_me: program exited with status $ac_status" >&5
17900 echo "$as_me: failed program was:" >&5
17901 sed 's/^/| /' conftest.$ac_ext >&5
17903 ( exit $ac_status )
17904 ac_cv_func_setpgrp_void=yes
17906 rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
17909 echo "$as_me:$LINENO: result: $ac_cv_func_setpgrp_void" >&5
17910 echo "${ECHO_T}$ac_cv_func_setpgrp_void" >&6
17911 if test $ac_cv_func_setpgrp_void = yes; then
17913 cat >>confdefs.h <<\_ACEOF
17914 #define SETPGRP_VOID 1
17920 echo "$as_me:$LINENO: checking whether setpgrp takes no argument" >&5
17921 echo $ECHO_N "checking whether setpgrp takes no argument... $ECHO_C" >&6
17922 if test "${ac_cv_func_setpgrp_void+set}" = set; then
17923 echo $ECHO_N "(cached) $ECHO_C" >&6
17925 cat >conftest.$ac_ext <<_ACEOF
17928 cat confdefs.h >>conftest.$ac_ext
17929 cat >>conftest.$ac_ext <<_ACEOF
17930 /* end confdefs.h. */
17932 #include <unistd.h>
17938 if (setpgrp(1,1) == -1)
17947 rm -f conftest.$ac_objext
17948 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
17949 (eval $ac_compile) 2>conftest.er1
17951 grep -v '^ *+' conftest.er1 >conftest.err
17953 cat conftest.err >&5
17954 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17955 (exit $ac_status); } &&
17956 { ac_try='test -z "$ac_c_werror_flag"
17957 || test ! -s conftest.err'
17958 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17959 (eval $ac_try) 2>&5
17961 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17962 (exit $ac_status); }; } &&
17963 { ac_try='test -s conftest.$ac_objext'
17964 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17965 (eval $ac_try) 2>&5
17967 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17968 (exit $ac_status); }; }; then
17969 ac_cv_func_setpgrp_void=no
17971 echo "$as_me: failed program was:" >&5
17972 sed 's/^/| /' conftest.$ac_ext >&5
17974 ac_cv_func_setpgrp_void=yes
17976 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
17978 echo "$as_me:$LINENO: result: $ac_cv_func_setpgrp_void" >&5
17979 echo "${ECHO_T}$ac_cv_func_setpgrp_void" >&6
17980 if test $ac_cv_func_setpgrp_void = yes; then
17981 cat >>confdefs.h <<\_ACEOF
17982 #define SETPGRP_VOID 1
17988 # Check if sigsetjmp is available. Using AC_CHECK_FUNCS won't do
17989 # since sigsetjmp might only be defined as a macro.
17990 echo "$as_me:$LINENO: checking for sigsetjmp" >&5
17991 echo $ECHO_N "checking for sigsetjmp... $ECHO_C" >&6
17992 if test "${gdb_cv_func_sigsetjmp+set}" = set; then
17993 echo $ECHO_N "(cached) $ECHO_C" >&6
17995 cat >conftest.$ac_ext <<_ACEOF
17998 cat confdefs.h >>conftest.$ac_ext
17999 cat >>conftest.$ac_ext <<_ACEOF
18000 /* end confdefs.h. */
18002 #include <setjmp.h>
18007 sigjmp_buf env; while (! sigsetjmp (env, 1)) siglongjmp (env, 1);
18012 rm -f conftest.$ac_objext
18013 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
18014 (eval $ac_compile) 2>conftest.er1
18016 grep -v '^ *+' conftest.er1 >conftest.err
18018 cat conftest.err >&5
18019 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18020 (exit $ac_status); } &&
18021 { ac_try='test -z "$ac_c_werror_flag"
18022 || test ! -s conftest.err'
18023 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18024 (eval $ac_try) 2>&5
18026 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18027 (exit $ac_status); }; } &&
18028 { ac_try='test -s conftest.$ac_objext'
18029 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18030 (eval $ac_try) 2>&5
18032 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18033 (exit $ac_status); }; }; then
18034 gdb_cv_func_sigsetjmp=yes
18036 echo "$as_me: failed program was:" >&5
18037 sed 's/^/| /' conftest.$ac_ext >&5
18039 gdb_cv_func_sigsetjmp=no
18041 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
18043 echo "$as_me:$LINENO: result: $gdb_cv_func_sigsetjmp" >&5
18044 echo "${ECHO_T}$gdb_cv_func_sigsetjmp" >&6
18045 if test $gdb_cv_func_sigsetjmp = yes; then
18047 cat >>confdefs.h <<\_ACEOF
18048 #define HAVE_SIGSETJMP 1
18053 # Assume we'll default to using the included libiberty regex.
18054 gdb_use_included_regex=yes
18056 # However, if the system regex is GNU regex, then default to *not*
18057 # using the included regex.
18058 echo "$as_me:$LINENO: checking for GNU regex" >&5
18059 echo $ECHO_N "checking for GNU regex... $ECHO_C" >&6
18060 if test "${gdb_cv_have_gnu_regex+set}" = set; then
18061 echo $ECHO_N "(cached) $ECHO_C" >&6
18063 cat >conftest.$ac_ext <<_ACEOF
18066 cat confdefs.h >>conftest.$ac_ext
18067 cat >>conftest.$ac_ext <<_ACEOF
18068 /* end confdefs.h. */
18069 #include <gnu-versions.h>
18073 #define REGEX_INTERFACE_VERSION 1
18074 #if _GNU_REGEX_INTERFACE_VERSION != REGEX_INTERFACE_VERSION
18075 # error "Version mismatch"
18081 rm -f conftest.$ac_objext
18082 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
18083 (eval $ac_compile) 2>conftest.er1
18085 grep -v '^ *+' conftest.er1 >conftest.err
18087 cat conftest.err >&5
18088 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18089 (exit $ac_status); } &&
18090 { ac_try='test -z "$ac_c_werror_flag"
18091 || test ! -s conftest.err'
18092 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18093 (eval $ac_try) 2>&5
18095 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18096 (exit $ac_status); }; } &&
18097 { ac_try='test -s conftest.$ac_objext'
18098 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18099 (eval $ac_try) 2>&5
18101 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18102 (exit $ac_status); }; }; then
18103 gdb_cv_have_gnu_regex=yes
18105 echo "$as_me: failed program was:" >&5
18106 sed 's/^/| /' conftest.$ac_ext >&5
18108 gdb_cv_have_gnu_regex=no
18110 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
18112 echo "$as_me:$LINENO: result: $gdb_cv_have_gnu_regex" >&5
18113 echo "${ECHO_T}$gdb_cv_have_gnu_regex" >&6
18114 if test $gdb_cv_have_gnu_regex = yes; then
18115 gdb_use_included_regex=no
18119 # Check whether --with-included-regex or --without-included-regex was given.
18120 if test "${with_included_regex+set}" = set; then
18121 withval="$with_included_regex"
18122 gdb_with_regex=$withval
18124 gdb_with_regex=$gdb_use_included_regex
18126 if test "$gdb_with_regex" = yes; then
18128 cat >>confdefs.h <<\_ACEOF
18129 #define USE_INCLUDED_REGEX 1
18134 # Check if <sys/proc.h> defines `struct thread' with a td_pcb member.
18135 echo "$as_me:$LINENO: checking for struct thread.td_pcb" >&5
18136 echo $ECHO_N "checking for struct thread.td_pcb... $ECHO_C" >&6
18137 if test "${ac_cv_member_struct_thread_td_pcb+set}" = set; then
18138 echo $ECHO_N "(cached) $ECHO_C" >&6
18140 cat >conftest.$ac_ext <<_ACEOF
18143 cat confdefs.h >>conftest.$ac_ext
18144 cat >>conftest.$ac_ext <<_ACEOF
18145 /* end confdefs.h. */
18146 #include <sys/param.h>
18147 #include <sys/proc.h>
18153 static struct thread ac_aggr;
18154 if (ac_aggr.td_pcb)
18160 rm -f conftest.$ac_objext
18161 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
18162 (eval $ac_compile) 2>conftest.er1
18164 grep -v '^ *+' conftest.er1 >conftest.err
18166 cat conftest.err >&5
18167 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18168 (exit $ac_status); } &&
18169 { ac_try='test -z "$ac_c_werror_flag"
18170 || test ! -s conftest.err'
18171 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18172 (eval $ac_try) 2>&5
18174 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18175 (exit $ac_status); }; } &&
18176 { ac_try='test -s conftest.$ac_objext'
18177 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18178 (eval $ac_try) 2>&5
18180 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18181 (exit $ac_status); }; }; then
18182 ac_cv_member_struct_thread_td_pcb=yes
18184 echo "$as_me: failed program was:" >&5
18185 sed 's/^/| /' conftest.$ac_ext >&5
18187 cat >conftest.$ac_ext <<_ACEOF
18190 cat confdefs.h >>conftest.$ac_ext
18191 cat >>conftest.$ac_ext <<_ACEOF
18192 /* end confdefs.h. */
18193 #include <sys/param.h>
18194 #include <sys/proc.h>
18200 static struct thread ac_aggr;
18201 if (sizeof ac_aggr.td_pcb)
18207 rm -f conftest.$ac_objext
18208 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
18209 (eval $ac_compile) 2>conftest.er1
18211 grep -v '^ *+' conftest.er1 >conftest.err
18213 cat conftest.err >&5
18214 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18215 (exit $ac_status); } &&
18216 { ac_try='test -z "$ac_c_werror_flag"
18217 || test ! -s conftest.err'
18218 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18219 (eval $ac_try) 2>&5
18221 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18222 (exit $ac_status); }; } &&
18223 { ac_try='test -s conftest.$ac_objext'
18224 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18225 (eval $ac_try) 2>&5
18227 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18228 (exit $ac_status); }; }; then
18229 ac_cv_member_struct_thread_td_pcb=yes
18231 echo "$as_me: failed program was:" >&5
18232 sed 's/^/| /' conftest.$ac_ext >&5
18234 ac_cv_member_struct_thread_td_pcb=no
18236 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
18238 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
18240 echo "$as_me:$LINENO: result: $ac_cv_member_struct_thread_td_pcb" >&5
18241 echo "${ECHO_T}$ac_cv_member_struct_thread_td_pcb" >&6
18242 if test $ac_cv_member_struct_thread_td_pcb = yes; then
18244 cat >>confdefs.h <<_ACEOF
18245 #define HAVE_STRUCT_THREAD_TD_PCB 1
18252 # See if <sys/lwp.h> defines `struct lwp`.
18253 echo "$as_me:$LINENO: checking for struct lwp" >&5
18254 echo $ECHO_N "checking for struct lwp... $ECHO_C" >&6
18255 if test "${gdb_cv_struct_lwp+set}" = set; then
18256 echo $ECHO_N "(cached) $ECHO_C" >&6
18258 cat >conftest.$ac_ext <<_ACEOF
18261 cat confdefs.h >>conftest.$ac_ext
18262 cat >>conftest.$ac_ext <<_ACEOF
18263 /* end confdefs.h. */
18264 #include <sys/param.h>
18265 #include <sys/lwp.h>
18274 rm -f conftest.$ac_objext
18275 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
18276 (eval $ac_compile) 2>conftest.er1
18278 grep -v '^ *+' conftest.er1 >conftest.err
18280 cat conftest.err >&5
18281 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18282 (exit $ac_status); } &&
18283 { ac_try='test -z "$ac_c_werror_flag"
18284 || test ! -s conftest.err'
18285 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18286 (eval $ac_try) 2>&5
18288 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18289 (exit $ac_status); }; } &&
18290 { ac_try='test -s conftest.$ac_objext'
18291 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18292 (eval $ac_try) 2>&5
18294 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18295 (exit $ac_status); }; }; then
18296 gdb_cv_struct_lwp=yes
18298 echo "$as_me: failed program was:" >&5
18299 sed 's/^/| /' conftest.$ac_ext >&5
18301 gdb_cv_struct_lwp=no
18303 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
18305 echo "$as_me:$LINENO: result: $gdb_cv_struct_lwp" >&5
18306 echo "${ECHO_T}$gdb_cv_struct_lwp" >&6
18307 if test $gdb_cv_struct_lwp = yes; then
18309 cat >>confdefs.h <<\_ACEOF
18310 #define HAVE_STRUCT_LWP 1
18315 # See if <machine/reg.h> degines `struct reg'.
18316 echo "$as_me:$LINENO: checking for struct reg in machine/reg.h" >&5
18317 echo $ECHO_N "checking for struct reg in machine/reg.h... $ECHO_C" >&6
18318 if test "${gdb_cv_struct_reg+set}" = set; then
18319 echo $ECHO_N "(cached) $ECHO_C" >&6
18321 cat >conftest.$ac_ext <<_ACEOF
18324 cat confdefs.h >>conftest.$ac_ext
18325 cat >>conftest.$ac_ext <<_ACEOF
18326 /* end confdefs.h. */
18327 #include <sys/types.h>
18328 #include <machine/reg.h>
18337 rm -f conftest.$ac_objext
18338 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
18339 (eval $ac_compile) 2>conftest.er1
18341 grep -v '^ *+' conftest.er1 >conftest.err
18343 cat conftest.err >&5
18344 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18345 (exit $ac_status); } &&
18346 { ac_try='test -z "$ac_c_werror_flag"
18347 || test ! -s conftest.err'
18348 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18349 (eval $ac_try) 2>&5
18351 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18352 (exit $ac_status); }; } &&
18353 { ac_try='test -s conftest.$ac_objext'
18354 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18355 (eval $ac_try) 2>&5
18357 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18358 (exit $ac_status); }; }; then
18359 gdb_cv_struct_reg=yes
18361 echo "$as_me: failed program was:" >&5
18362 sed 's/^/| /' conftest.$ac_ext >&5
18364 gdb_cv_struct_reg=no
18366 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
18368 echo "$as_me:$LINENO: result: $gdb_cv_struct_reg" >&5
18369 echo "${ECHO_T}$gdb_cv_struct_reg" >&6
18370 if test $gdb_cv_struct_reg = yes; then
18372 cat >>confdefs.h <<\_ACEOF
18373 #define HAVE_STRUCT_REG 1
18378 # See if <machine/reg.h> supports the %fs and %gs i386 segment registers.
18379 # Older i386 BSD's don't have the r_fs and r_gs members of `struct reg'.
18380 echo "$as_me:$LINENO: checking for struct reg.r_fs" >&5
18381 echo $ECHO_N "checking for struct reg.r_fs... $ECHO_C" >&6
18382 if test "${ac_cv_member_struct_reg_r_fs+set}" = set; then
18383 echo $ECHO_N "(cached) $ECHO_C" >&6
18385 cat >conftest.$ac_ext <<_ACEOF
18388 cat confdefs.h >>conftest.$ac_ext
18389 cat >>conftest.$ac_ext <<_ACEOF
18390 /* end confdefs.h. */
18391 #include <machine/reg.h>
18396 static struct reg ac_aggr;
18403 rm -f conftest.$ac_objext
18404 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
18405 (eval $ac_compile) 2>conftest.er1
18407 grep -v '^ *+' conftest.er1 >conftest.err
18409 cat conftest.err >&5
18410 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18411 (exit $ac_status); } &&
18412 { ac_try='test -z "$ac_c_werror_flag"
18413 || test ! -s conftest.err'
18414 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18415 (eval $ac_try) 2>&5
18417 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18418 (exit $ac_status); }; } &&
18419 { ac_try='test -s conftest.$ac_objext'
18420 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18421 (eval $ac_try) 2>&5
18423 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18424 (exit $ac_status); }; }; then
18425 ac_cv_member_struct_reg_r_fs=yes
18427 echo "$as_me: failed program was:" >&5
18428 sed 's/^/| /' conftest.$ac_ext >&5
18430 cat >conftest.$ac_ext <<_ACEOF
18433 cat confdefs.h >>conftest.$ac_ext
18434 cat >>conftest.$ac_ext <<_ACEOF
18435 /* end confdefs.h. */
18436 #include <machine/reg.h>
18441 static struct reg ac_aggr;
18442 if (sizeof ac_aggr.r_fs)
18448 rm -f conftest.$ac_objext
18449 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
18450 (eval $ac_compile) 2>conftest.er1
18452 grep -v '^ *+' conftest.er1 >conftest.err
18454 cat conftest.err >&5
18455 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18456 (exit $ac_status); } &&
18457 { ac_try='test -z "$ac_c_werror_flag"
18458 || test ! -s conftest.err'
18459 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18460 (eval $ac_try) 2>&5
18462 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18463 (exit $ac_status); }; } &&
18464 { ac_try='test -s conftest.$ac_objext'
18465 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18466 (eval $ac_try) 2>&5
18468 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18469 (exit $ac_status); }; }; then
18470 ac_cv_member_struct_reg_r_fs=yes
18472 echo "$as_me: failed program was:" >&5
18473 sed 's/^/| /' conftest.$ac_ext >&5
18475 ac_cv_member_struct_reg_r_fs=no
18477 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
18479 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
18481 echo "$as_me:$LINENO: result: $ac_cv_member_struct_reg_r_fs" >&5
18482 echo "${ECHO_T}$ac_cv_member_struct_reg_r_fs" >&6
18483 if test $ac_cv_member_struct_reg_r_fs = yes; then
18485 cat >>confdefs.h <<_ACEOF
18486 #define HAVE_STRUCT_REG_R_FS 1
18491 echo "$as_me:$LINENO: checking for struct reg.r_gs" >&5
18492 echo $ECHO_N "checking for struct reg.r_gs... $ECHO_C" >&6
18493 if test "${ac_cv_member_struct_reg_r_gs+set}" = set; then
18494 echo $ECHO_N "(cached) $ECHO_C" >&6
18496 cat >conftest.$ac_ext <<_ACEOF
18499 cat confdefs.h >>conftest.$ac_ext
18500 cat >>conftest.$ac_ext <<_ACEOF
18501 /* end confdefs.h. */
18502 #include <machine/reg.h>
18507 static struct reg ac_aggr;
18514 rm -f conftest.$ac_objext
18515 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
18516 (eval $ac_compile) 2>conftest.er1
18518 grep -v '^ *+' conftest.er1 >conftest.err
18520 cat conftest.err >&5
18521 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18522 (exit $ac_status); } &&
18523 { ac_try='test -z "$ac_c_werror_flag"
18524 || test ! -s conftest.err'
18525 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18526 (eval $ac_try) 2>&5
18528 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18529 (exit $ac_status); }; } &&
18530 { ac_try='test -s conftest.$ac_objext'
18531 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18532 (eval $ac_try) 2>&5
18534 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18535 (exit $ac_status); }; }; then
18536 ac_cv_member_struct_reg_r_gs=yes
18538 echo "$as_me: failed program was:" >&5
18539 sed 's/^/| /' conftest.$ac_ext >&5
18541 cat >conftest.$ac_ext <<_ACEOF
18544 cat confdefs.h >>conftest.$ac_ext
18545 cat >>conftest.$ac_ext <<_ACEOF
18546 /* end confdefs.h. */
18547 #include <machine/reg.h>
18552 static struct reg ac_aggr;
18553 if (sizeof ac_aggr.r_gs)
18559 rm -f conftest.$ac_objext
18560 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
18561 (eval $ac_compile) 2>conftest.er1
18563 grep -v '^ *+' conftest.er1 >conftest.err
18565 cat conftest.err >&5
18566 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18567 (exit $ac_status); } &&
18568 { ac_try='test -z "$ac_c_werror_flag"
18569 || test ! -s conftest.err'
18570 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18571 (eval $ac_try) 2>&5
18573 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18574 (exit $ac_status); }; } &&
18575 { ac_try='test -s conftest.$ac_objext'
18576 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18577 (eval $ac_try) 2>&5
18579 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18580 (exit $ac_status); }; }; then
18581 ac_cv_member_struct_reg_r_gs=yes
18583 echo "$as_me: failed program was:" >&5
18584 sed 's/^/| /' conftest.$ac_ext >&5
18586 ac_cv_member_struct_reg_r_gs=no
18588 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
18590 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
18592 echo "$as_me:$LINENO: result: $ac_cv_member_struct_reg_r_gs" >&5
18593 echo "${ECHO_T}$ac_cv_member_struct_reg_r_gs" >&6
18594 if test $ac_cv_member_struct_reg_r_gs = yes; then
18596 cat >>confdefs.h <<_ACEOF
18597 #define HAVE_STRUCT_REG_R_GS 1
18604 # See if <sys/ptrace.h> provides the PTRACE_GETREGS request.
18605 echo "$as_me:$LINENO: checking for PTRACE_GETREGS" >&5
18606 echo $ECHO_N "checking for PTRACE_GETREGS... $ECHO_C" >&6
18607 if test "${gdb_cv_have_ptrace_getregs+set}" = set; then
18608 echo $ECHO_N "(cached) $ECHO_C" >&6
18610 cat >conftest.$ac_ext <<_ACEOF
18613 cat confdefs.h >>conftest.$ac_ext
18614 cat >>conftest.$ac_ext <<_ACEOF
18615 /* end confdefs.h. */
18616 #include <sys/ptrace.h>
18625 rm -f conftest.$ac_objext
18626 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
18627 (eval $ac_compile) 2>conftest.er1
18629 grep -v '^ *+' conftest.er1 >conftest.err
18631 cat conftest.err >&5
18632 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18633 (exit $ac_status); } &&
18634 { ac_try='test -z "$ac_c_werror_flag"
18635 || test ! -s conftest.err'
18636 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18637 (eval $ac_try) 2>&5
18639 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18640 (exit $ac_status); }; } &&
18641 { ac_try='test -s conftest.$ac_objext'
18642 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18643 (eval $ac_try) 2>&5
18645 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18646 (exit $ac_status); }; }; then
18647 gdb_cv_have_ptrace_getregs=yes
18649 echo "$as_me: failed program was:" >&5
18650 sed 's/^/| /' conftest.$ac_ext >&5
18652 gdb_cv_have_ptrace_getregs=no
18654 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
18657 echo "$as_me:$LINENO: result: $gdb_cv_have_ptrace_getregs" >&5
18658 echo "${ECHO_T}$gdb_cv_have_ptrace_getregs" >&6
18659 if test $gdb_cv_have_ptrace_getregs = yes; then
18661 cat >>confdefs.h <<\_ACEOF
18662 #define HAVE_PTRACE_GETREGS 1
18667 # See if <sys/ptrace.h> provides the PTRACE_GETFPXREGS request.
18668 echo "$as_me:$LINENO: checking for PTRACE_GETFPXREGS" >&5
18669 echo $ECHO_N "checking for PTRACE_GETFPXREGS... $ECHO_C" >&6
18670 if test "${gdb_cv_have_ptrace_getfpxregs+set}" = set; then
18671 echo $ECHO_N "(cached) $ECHO_C" >&6
18673 cat >conftest.$ac_ext <<_ACEOF
18676 cat confdefs.h >>conftest.$ac_ext
18677 cat >>conftest.$ac_ext <<_ACEOF
18678 /* end confdefs.h. */
18679 #include <sys/ptrace.h>
18688 rm -f conftest.$ac_objext
18689 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
18690 (eval $ac_compile) 2>conftest.er1
18692 grep -v '^ *+' conftest.er1 >conftest.err
18694 cat conftest.err >&5
18695 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18696 (exit $ac_status); } &&
18697 { ac_try='test -z "$ac_c_werror_flag"
18698 || test ! -s conftest.err'
18699 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18700 (eval $ac_try) 2>&5
18702 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18703 (exit $ac_status); }; } &&
18704 { ac_try='test -s conftest.$ac_objext'
18705 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18706 (eval $ac_try) 2>&5
18708 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18709 (exit $ac_status); }; }; then
18710 gdb_cv_have_ptrace_getfpxregs=yes
18712 echo "$as_me: failed program was:" >&5
18713 sed 's/^/| /' conftest.$ac_ext >&5
18715 gdb_cv_have_ptrace_getfpxregs=no
18717 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
18720 echo "$as_me:$LINENO: result: $gdb_cv_have_ptrace_getfpxregs" >&5
18721 echo "${ECHO_T}$gdb_cv_have_ptrace_getfpxregs" >&6
18722 if test $gdb_cv_have_ptrace_getfpxregs = yes; then
18724 cat >>confdefs.h <<\_ACEOF
18725 #define HAVE_PTRACE_GETFPXREGS 1
18730 # See if <sys/ptrace.h> provides the PT_GETDBREGS request.
18731 echo "$as_me:$LINENO: checking for PT_GETDBREGS" >&5
18732 echo $ECHO_N "checking for PT_GETDBREGS... $ECHO_C" >&6
18733 if test "${gdb_cv_have_pt_getdbregs+set}" = set; then
18734 echo $ECHO_N "(cached) $ECHO_C" >&6
18736 cat >conftest.$ac_ext <<_ACEOF
18739 cat confdefs.h >>conftest.$ac_ext
18740 cat >>conftest.$ac_ext <<_ACEOF
18741 /* end confdefs.h. */
18742 #include <sys/types.h>
18743 #include <sys/ptrace.h>
18752 rm -f conftest.$ac_objext
18753 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
18754 (eval $ac_compile) 2>conftest.er1
18756 grep -v '^ *+' conftest.er1 >conftest.err
18758 cat conftest.err >&5
18759 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18760 (exit $ac_status); } &&
18761 { ac_try='test -z "$ac_c_werror_flag"
18762 || test ! -s conftest.err'
18763 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18764 (eval $ac_try) 2>&5
18766 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18767 (exit $ac_status); }; } &&
18768 { ac_try='test -s conftest.$ac_objext'
18769 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18770 (eval $ac_try) 2>&5
18772 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18773 (exit $ac_status); }; }; then
18774 gdb_cv_have_pt_getdbregs=yes
18776 echo "$as_me: failed program was:" >&5
18777 sed 's/^/| /' conftest.$ac_ext >&5
18779 gdb_cv_have_pt_getdbregs=no
18781 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
18784 echo "$as_me:$LINENO: result: $gdb_cv_have_pt_getdbregs" >&5
18785 echo "${ECHO_T}$gdb_cv_have_pt_getdbregs" >&6
18786 if test $gdb_cv_have_pt_getdbregs = yes; then
18788 cat >>confdefs.h <<\_ACEOF
18789 #define HAVE_PT_GETDBREGS 1
18794 # See if <sys/ptrace.h> provides the PT_GETXMMREGS request.
18795 echo "$as_me:$LINENO: checking for PT_GETXMMREGS" >&5
18796 echo $ECHO_N "checking for PT_GETXMMREGS... $ECHO_C" >&6
18797 if test "${gdb_cv_have_pt_getxmmregs+set}" = set; then
18798 echo $ECHO_N "(cached) $ECHO_C" >&6
18800 cat >conftest.$ac_ext <<_ACEOF
18803 cat confdefs.h >>conftest.$ac_ext
18804 cat >>conftest.$ac_ext <<_ACEOF
18805 /* end confdefs.h. */
18806 #include <sys/types.h>
18807 #include <sys/ptrace.h>
18816 rm -f conftest.$ac_objext
18817 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
18818 (eval $ac_compile) 2>conftest.er1
18820 grep -v '^ *+' conftest.er1 >conftest.err
18822 cat conftest.err >&5
18823 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18824 (exit $ac_status); } &&
18825 { ac_try='test -z "$ac_c_werror_flag"
18826 || test ! -s conftest.err'
18827 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18828 (eval $ac_try) 2>&5
18830 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18831 (exit $ac_status); }; } &&
18832 { ac_try='test -s conftest.$ac_objext'
18833 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18834 (eval $ac_try) 2>&5
18836 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18837 (exit $ac_status); }; }; then
18838 gdb_cv_have_pt_getxmmregs=yes
18840 echo "$as_me: failed program was:" >&5
18841 sed 's/^/| /' conftest.$ac_ext >&5
18843 gdb_cv_have_pt_getxmmregs=no
18845 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
18848 echo "$as_me:$LINENO: result: $gdb_cv_have_pt_getxmmregs" >&5
18849 echo "${ECHO_T}$gdb_cv_have_pt_getxmmregs" >&6
18850 if test $gdb_cv_have_pt_getxmmregs = yes; then
18852 cat >>confdefs.h <<\_ACEOF
18853 #define HAVE_PT_GETXMMREGS 1
18858 # If we are configured native on GNU/Linux, work around problems with
18860 # Also detect which type of /proc is in use, such as for Unixware or Solaris.
18862 if test "${target}" = "${host}"; then
18864 i[3456]86-*-linux*)
18866 cat >>confdefs.h <<\_ACEOF
18867 #define START_INFERIOR_TRAPS_EXPECTED 2
18871 cat >>confdefs.h <<\_ACEOF
18872 #define sys_quotactl 1
18876 *-*-unixware* | *-*-sysv4.2* | *-*-sysv5* | *-*-interix* )
18878 cat >>confdefs.h <<\_ACEOF
18879 #define NEW_PROC_API 1
18883 *-*-solaris2.[6789] | *-*-solaris2.1[0-9])
18885 cat >>confdefs.h <<\_ACEOF
18886 #define NEW_PROC_API 1
18891 # Work around <sys/proc.h> needing _KMEMUSER problem on IRIX 5.
18893 cat >>confdefs.h <<\_ACEOF
18894 #define _KMEMUSER 1
18901 if test "$ac_cv_header_sys_procfs_h" = yes; then
18902 echo "$as_me:$LINENO: checking for pstatus_t in sys/procfs.h" >&5
18903 echo $ECHO_N "checking for pstatus_t in sys/procfs.h... $ECHO_C" >&6
18904 if test "${bfd_cv_have_sys_procfs_type_pstatus_t+set}" = set; then
18905 echo $ECHO_N "(cached) $ECHO_C" >&6
18907 cat >conftest.$ac_ext <<_ACEOF
18910 cat confdefs.h >>conftest.$ac_ext
18911 cat >>conftest.$ac_ext <<_ACEOF
18912 /* end confdefs.h. */
18915 #include <sys/procfs.h>
18924 rm -f conftest.$ac_objext
18925 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
18926 (eval $ac_compile) 2>conftest.er1
18928 grep -v '^ *+' conftest.er1 >conftest.err
18930 cat conftest.err >&5
18931 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18932 (exit $ac_status); } &&
18933 { ac_try='test -z "$ac_c_werror_flag"
18934 || test ! -s conftest.err'
18935 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18936 (eval $ac_try) 2>&5
18938 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18939 (exit $ac_status); }; } &&
18940 { ac_try='test -s conftest.$ac_objext'
18941 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18942 (eval $ac_try) 2>&5
18944 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18945 (exit $ac_status); }; }; then
18946 bfd_cv_have_sys_procfs_type_pstatus_t=yes
18948 echo "$as_me: failed program was:" >&5
18949 sed 's/^/| /' conftest.$ac_ext >&5
18951 bfd_cv_have_sys_procfs_type_pstatus_t=no
18954 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
18957 if test $bfd_cv_have_sys_procfs_type_pstatus_t = yes; then
18959 cat >>confdefs.h <<\_ACEOF
18960 #define HAVE_PSTATUS_T 1
18964 echo "$as_me:$LINENO: result: $bfd_cv_have_sys_procfs_type_pstatus_t" >&5
18965 echo "${ECHO_T}$bfd_cv_have_sys_procfs_type_pstatus_t" >&6
18967 echo "$as_me:$LINENO: checking for prrun_t in sys/procfs.h" >&5
18968 echo $ECHO_N "checking for prrun_t in sys/procfs.h... $ECHO_C" >&6
18969 if test "${bfd_cv_have_sys_procfs_type_prrun_t+set}" = set; then
18970 echo $ECHO_N "(cached) $ECHO_C" >&6
18972 cat >conftest.$ac_ext <<_ACEOF
18975 cat confdefs.h >>conftest.$ac_ext
18976 cat >>conftest.$ac_ext <<_ACEOF
18977 /* end confdefs.h. */
18980 #include <sys/procfs.h>
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 bfd_cv_have_sys_procfs_type_prrun_t=yes
19013 echo "$as_me: failed program was:" >&5
19014 sed 's/^/| /' conftest.$ac_ext >&5
19016 bfd_cv_have_sys_procfs_type_prrun_t=no
19019 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
19022 if test $bfd_cv_have_sys_procfs_type_prrun_t = yes; then
19024 cat >>confdefs.h <<\_ACEOF
19025 #define HAVE_PRRUN_T 1
19029 echo "$as_me:$LINENO: result: $bfd_cv_have_sys_procfs_type_prrun_t" >&5
19030 echo "${ECHO_T}$bfd_cv_have_sys_procfs_type_prrun_t" >&6
19032 echo "$as_me:$LINENO: checking for gregset_t in sys/procfs.h" >&5
19033 echo $ECHO_N "checking for gregset_t in sys/procfs.h... $ECHO_C" >&6
19034 if test "${bfd_cv_have_sys_procfs_type_gregset_t+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. */
19045 #include <sys/procfs.h>
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 bfd_cv_have_sys_procfs_type_gregset_t=yes
19078 echo "$as_me: failed program was:" >&5
19079 sed 's/^/| /' conftest.$ac_ext >&5
19081 bfd_cv_have_sys_procfs_type_gregset_t=no
19084 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
19087 if test $bfd_cv_have_sys_procfs_type_gregset_t = yes; then
19089 cat >>confdefs.h <<\_ACEOF
19090 #define HAVE_GREGSET_T 1
19094 echo "$as_me:$LINENO: result: $bfd_cv_have_sys_procfs_type_gregset_t" >&5
19095 echo "${ECHO_T}$bfd_cv_have_sys_procfs_type_gregset_t" >&6
19097 echo "$as_me:$LINENO: checking for fpregset_t in sys/procfs.h" >&5
19098 echo $ECHO_N "checking for fpregset_t in sys/procfs.h... $ECHO_C" >&6
19099 if test "${bfd_cv_have_sys_procfs_type_fpregset_t+set}" = set; then
19100 echo $ECHO_N "(cached) $ECHO_C" >&6
19102 cat >conftest.$ac_ext <<_ACEOF
19105 cat confdefs.h >>conftest.$ac_ext
19106 cat >>conftest.$ac_ext <<_ACEOF
19107 /* end confdefs.h. */
19110 #include <sys/procfs.h>
19119 rm -f conftest.$ac_objext
19120 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
19121 (eval $ac_compile) 2>conftest.er1
19123 grep -v '^ *+' conftest.er1 >conftest.err
19125 cat conftest.err >&5
19126 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19127 (exit $ac_status); } &&
19128 { ac_try='test -z "$ac_c_werror_flag"
19129 || test ! -s conftest.err'
19130 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19131 (eval $ac_try) 2>&5
19133 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19134 (exit $ac_status); }; } &&
19135 { ac_try='test -s conftest.$ac_objext'
19136 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19137 (eval $ac_try) 2>&5
19139 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19140 (exit $ac_status); }; }; then
19141 bfd_cv_have_sys_procfs_type_fpregset_t=yes
19143 echo "$as_me: failed program was:" >&5
19144 sed 's/^/| /' conftest.$ac_ext >&5
19146 bfd_cv_have_sys_procfs_type_fpregset_t=no
19149 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
19152 if test $bfd_cv_have_sys_procfs_type_fpregset_t = yes; then
19154 cat >>confdefs.h <<\_ACEOF
19155 #define HAVE_FPREGSET_T 1
19159 echo "$as_me:$LINENO: result: $bfd_cv_have_sys_procfs_type_fpregset_t" >&5
19160 echo "${ECHO_T}$bfd_cv_have_sys_procfs_type_fpregset_t" >&6
19162 echo "$as_me:$LINENO: checking for prgregset_t in sys/procfs.h" >&5
19163 echo $ECHO_N "checking for prgregset_t in sys/procfs.h... $ECHO_C" >&6
19164 if test "${bfd_cv_have_sys_procfs_type_prgregset_t+set}" = set; then
19165 echo $ECHO_N "(cached) $ECHO_C" >&6
19167 cat >conftest.$ac_ext <<_ACEOF
19170 cat confdefs.h >>conftest.$ac_ext
19171 cat >>conftest.$ac_ext <<_ACEOF
19172 /* end confdefs.h. */
19175 #include <sys/procfs.h>
19184 rm -f conftest.$ac_objext
19185 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
19186 (eval $ac_compile) 2>conftest.er1
19188 grep -v '^ *+' conftest.er1 >conftest.err
19190 cat conftest.err >&5
19191 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19192 (exit $ac_status); } &&
19193 { ac_try='test -z "$ac_c_werror_flag"
19194 || test ! -s conftest.err'
19195 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19196 (eval $ac_try) 2>&5
19198 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19199 (exit $ac_status); }; } &&
19200 { ac_try='test -s conftest.$ac_objext'
19201 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19202 (eval $ac_try) 2>&5
19204 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19205 (exit $ac_status); }; }; then
19206 bfd_cv_have_sys_procfs_type_prgregset_t=yes
19208 echo "$as_me: failed program was:" >&5
19209 sed 's/^/| /' conftest.$ac_ext >&5
19211 bfd_cv_have_sys_procfs_type_prgregset_t=no
19214 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
19217 if test $bfd_cv_have_sys_procfs_type_prgregset_t = yes; then
19219 cat >>confdefs.h <<\_ACEOF
19220 #define HAVE_PRGREGSET_T 1
19224 echo "$as_me:$LINENO: result: $bfd_cv_have_sys_procfs_type_prgregset_t" >&5
19225 echo "${ECHO_T}$bfd_cv_have_sys_procfs_type_prgregset_t" >&6
19227 echo "$as_me:$LINENO: checking for prfpregset_t in sys/procfs.h" >&5
19228 echo $ECHO_N "checking for prfpregset_t in sys/procfs.h... $ECHO_C" >&6
19229 if test "${bfd_cv_have_sys_procfs_type_prfpregset_t+set}" = set; then
19230 echo $ECHO_N "(cached) $ECHO_C" >&6
19232 cat >conftest.$ac_ext <<_ACEOF
19235 cat confdefs.h >>conftest.$ac_ext
19236 cat >>conftest.$ac_ext <<_ACEOF
19237 /* end confdefs.h. */
19240 #include <sys/procfs.h>
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 bfd_cv_have_sys_procfs_type_prfpregset_t=yes
19273 echo "$as_me: failed program was:" >&5
19274 sed 's/^/| /' conftest.$ac_ext >&5
19276 bfd_cv_have_sys_procfs_type_prfpregset_t=no
19279 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
19282 if test $bfd_cv_have_sys_procfs_type_prfpregset_t = yes; then
19284 cat >>confdefs.h <<\_ACEOF
19285 #define HAVE_PRFPREGSET_T 1
19289 echo "$as_me:$LINENO: result: $bfd_cv_have_sys_procfs_type_prfpregset_t" >&5
19290 echo "${ECHO_T}$bfd_cv_have_sys_procfs_type_prfpregset_t" >&6
19292 echo "$as_me:$LINENO: checking for prgregset32_t in sys/procfs.h" >&5
19293 echo $ECHO_N "checking for prgregset32_t in sys/procfs.h... $ECHO_C" >&6
19294 if test "${bfd_cv_have_sys_procfs_type_prgregset32_t+set}" = set; then
19295 echo $ECHO_N "(cached) $ECHO_C" >&6
19297 cat >conftest.$ac_ext <<_ACEOF
19300 cat confdefs.h >>conftest.$ac_ext
19301 cat >>conftest.$ac_ext <<_ACEOF
19302 /* end confdefs.h. */
19305 #include <sys/procfs.h>
19314 rm -f conftest.$ac_objext
19315 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
19316 (eval $ac_compile) 2>conftest.er1
19318 grep -v '^ *+' conftest.er1 >conftest.err
19320 cat conftest.err >&5
19321 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19322 (exit $ac_status); } &&
19323 { ac_try='test -z "$ac_c_werror_flag"
19324 || test ! -s conftest.err'
19325 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19326 (eval $ac_try) 2>&5
19328 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19329 (exit $ac_status); }; } &&
19330 { ac_try='test -s conftest.$ac_objext'
19331 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19332 (eval $ac_try) 2>&5
19334 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19335 (exit $ac_status); }; }; then
19336 bfd_cv_have_sys_procfs_type_prgregset32_t=yes
19338 echo "$as_me: failed program was:" >&5
19339 sed 's/^/| /' conftest.$ac_ext >&5
19341 bfd_cv_have_sys_procfs_type_prgregset32_t=no
19344 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
19347 if test $bfd_cv_have_sys_procfs_type_prgregset32_t = yes; then
19349 cat >>confdefs.h <<\_ACEOF
19350 #define HAVE_PRGREGSET32_T 1
19354 echo "$as_me:$LINENO: result: $bfd_cv_have_sys_procfs_type_prgregset32_t" >&5
19355 echo "${ECHO_T}$bfd_cv_have_sys_procfs_type_prgregset32_t" >&6
19357 echo "$as_me:$LINENO: checking for prfpregset32_t in sys/procfs.h" >&5
19358 echo $ECHO_N "checking for prfpregset32_t in sys/procfs.h... $ECHO_C" >&6
19359 if test "${bfd_cv_have_sys_procfs_type_prfpregset32_t+set}" = set; then
19360 echo $ECHO_N "(cached) $ECHO_C" >&6
19362 cat >conftest.$ac_ext <<_ACEOF
19365 cat confdefs.h >>conftest.$ac_ext
19366 cat >>conftest.$ac_ext <<_ACEOF
19367 /* end confdefs.h. */
19370 #include <sys/procfs.h>
19374 prfpregset32_t avar
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 bfd_cv_have_sys_procfs_type_prfpregset32_t=yes
19403 echo "$as_me: failed program was:" >&5
19404 sed 's/^/| /' conftest.$ac_ext >&5
19406 bfd_cv_have_sys_procfs_type_prfpregset32_t=no
19409 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
19412 if test $bfd_cv_have_sys_procfs_type_prfpregset32_t = yes; then
19414 cat >>confdefs.h <<\_ACEOF
19415 #define HAVE_PRFPREGSET32_T 1
19419 echo "$as_me:$LINENO: result: $bfd_cv_have_sys_procfs_type_prfpregset32_t" >&5
19420 echo "${ECHO_T}$bfd_cv_have_sys_procfs_type_prfpregset32_t" >&6
19422 echo "$as_me:$LINENO: checking for lwpid_t in sys/procfs.h" >&5
19423 echo $ECHO_N "checking for lwpid_t in sys/procfs.h... $ECHO_C" >&6
19424 if test "${bfd_cv_have_sys_procfs_type_lwpid_t+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. */
19435 #include <sys/procfs.h>
19444 rm -f conftest.$ac_objext
19445 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
19446 (eval $ac_compile) 2>conftest.er1
19448 grep -v '^ *+' conftest.er1 >conftest.err
19450 cat conftest.err >&5
19451 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19452 (exit $ac_status); } &&
19453 { ac_try='test -z "$ac_c_werror_flag"
19454 || test ! -s conftest.err'
19455 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19456 (eval $ac_try) 2>&5
19458 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19459 (exit $ac_status); }; } &&
19460 { ac_try='test -s conftest.$ac_objext'
19461 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19462 (eval $ac_try) 2>&5
19464 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19465 (exit $ac_status); }; }; then
19466 bfd_cv_have_sys_procfs_type_lwpid_t=yes
19468 echo "$as_me: failed program was:" >&5
19469 sed 's/^/| /' conftest.$ac_ext >&5
19471 bfd_cv_have_sys_procfs_type_lwpid_t=no
19474 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
19477 if test $bfd_cv_have_sys_procfs_type_lwpid_t = yes; then
19479 cat >>confdefs.h <<\_ACEOF
19480 #define HAVE_LWPID_T 1
19484 echo "$as_me:$LINENO: result: $bfd_cv_have_sys_procfs_type_lwpid_t" >&5
19485 echo "${ECHO_T}$bfd_cv_have_sys_procfs_type_lwpid_t" >&6
19487 echo "$as_me:$LINENO: checking for psaddr_t in sys/procfs.h" >&5
19488 echo $ECHO_N "checking for psaddr_t in sys/procfs.h... $ECHO_C" >&6
19489 if test "${bfd_cv_have_sys_procfs_type_psaddr_t+set}" = set; then
19490 echo $ECHO_N "(cached) $ECHO_C" >&6
19492 cat >conftest.$ac_ext <<_ACEOF
19495 cat confdefs.h >>conftest.$ac_ext
19496 cat >>conftest.$ac_ext <<_ACEOF
19497 /* end confdefs.h. */
19500 #include <sys/procfs.h>
19509 rm -f conftest.$ac_objext
19510 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
19511 (eval $ac_compile) 2>conftest.er1
19513 grep -v '^ *+' conftest.er1 >conftest.err
19515 cat conftest.err >&5
19516 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19517 (exit $ac_status); } &&
19518 { ac_try='test -z "$ac_c_werror_flag"
19519 || test ! -s conftest.err'
19520 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19521 (eval $ac_try) 2>&5
19523 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19524 (exit $ac_status); }; } &&
19525 { ac_try='test -s conftest.$ac_objext'
19526 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19527 (eval $ac_try) 2>&5
19529 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19530 (exit $ac_status); }; }; then
19531 bfd_cv_have_sys_procfs_type_psaddr_t=yes
19533 echo "$as_me: failed program was:" >&5
19534 sed 's/^/| /' conftest.$ac_ext >&5
19536 bfd_cv_have_sys_procfs_type_psaddr_t=no
19539 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
19542 if test $bfd_cv_have_sys_procfs_type_psaddr_t = yes; then
19544 cat >>confdefs.h <<\_ACEOF
19545 #define HAVE_PSADDR_T 1
19549 echo "$as_me:$LINENO: result: $bfd_cv_have_sys_procfs_type_psaddr_t" >&5
19550 echo "${ECHO_T}$bfd_cv_have_sys_procfs_type_psaddr_t" >&6
19552 echo "$as_me:$LINENO: checking for prsysent_t in sys/procfs.h" >&5
19553 echo $ECHO_N "checking for prsysent_t in sys/procfs.h... $ECHO_C" >&6
19554 if test "${bfd_cv_have_sys_procfs_type_prsysent_t+set}" = set; then
19555 echo $ECHO_N "(cached) $ECHO_C" >&6
19557 cat >conftest.$ac_ext <<_ACEOF
19560 cat confdefs.h >>conftest.$ac_ext
19561 cat >>conftest.$ac_ext <<_ACEOF
19562 /* end confdefs.h. */
19565 #include <sys/procfs.h>
19574 rm -f conftest.$ac_objext
19575 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
19576 (eval $ac_compile) 2>conftest.er1
19578 grep -v '^ *+' conftest.er1 >conftest.err
19580 cat conftest.err >&5
19581 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19582 (exit $ac_status); } &&
19583 { ac_try='test -z "$ac_c_werror_flag"
19584 || test ! -s conftest.err'
19585 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19586 (eval $ac_try) 2>&5
19588 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19589 (exit $ac_status); }; } &&
19590 { ac_try='test -s conftest.$ac_objext'
19591 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19592 (eval $ac_try) 2>&5
19594 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19595 (exit $ac_status); }; }; then
19596 bfd_cv_have_sys_procfs_type_prsysent_t=yes
19598 echo "$as_me: failed program was:" >&5
19599 sed 's/^/| /' conftest.$ac_ext >&5
19601 bfd_cv_have_sys_procfs_type_prsysent_t=no
19604 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
19607 if test $bfd_cv_have_sys_procfs_type_prsysent_t = yes; then
19609 cat >>confdefs.h <<\_ACEOF
19610 #define HAVE_PRSYSENT_T 1
19614 echo "$as_me:$LINENO: result: $bfd_cv_have_sys_procfs_type_prsysent_t" >&5
19615 echo "${ECHO_T}$bfd_cv_have_sys_procfs_type_prsysent_t" >&6
19617 echo "$as_me:$LINENO: checking for pr_sigset_t in sys/procfs.h" >&5
19618 echo $ECHO_N "checking for pr_sigset_t in sys/procfs.h... $ECHO_C" >&6
19619 if test "${bfd_cv_have_sys_procfs_type_pr_sigset_t+set}" = set; then
19620 echo $ECHO_N "(cached) $ECHO_C" >&6
19622 cat >conftest.$ac_ext <<_ACEOF
19625 cat confdefs.h >>conftest.$ac_ext
19626 cat >>conftest.$ac_ext <<_ACEOF
19627 /* end confdefs.h. */
19630 #include <sys/procfs.h>
19639 rm -f conftest.$ac_objext
19640 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
19641 (eval $ac_compile) 2>conftest.er1
19643 grep -v '^ *+' conftest.er1 >conftest.err
19645 cat conftest.err >&5
19646 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19647 (exit $ac_status); } &&
19648 { ac_try='test -z "$ac_c_werror_flag"
19649 || test ! -s conftest.err'
19650 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19651 (eval $ac_try) 2>&5
19653 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19654 (exit $ac_status); }; } &&
19655 { ac_try='test -s conftest.$ac_objext'
19656 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19657 (eval $ac_try) 2>&5
19659 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19660 (exit $ac_status); }; }; then
19661 bfd_cv_have_sys_procfs_type_pr_sigset_t=yes
19663 echo "$as_me: failed program was:" >&5
19664 sed 's/^/| /' conftest.$ac_ext >&5
19666 bfd_cv_have_sys_procfs_type_pr_sigset_t=no
19669 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
19672 if test $bfd_cv_have_sys_procfs_type_pr_sigset_t = yes; then
19674 cat >>confdefs.h <<\_ACEOF
19675 #define HAVE_PR_SIGSET_T 1
19679 echo "$as_me:$LINENO: result: $bfd_cv_have_sys_procfs_type_pr_sigset_t" >&5
19680 echo "${ECHO_T}$bfd_cv_have_sys_procfs_type_pr_sigset_t" >&6
19682 echo "$as_me:$LINENO: checking for pr_sigaction64_t in sys/procfs.h" >&5
19683 echo $ECHO_N "checking for pr_sigaction64_t in sys/procfs.h... $ECHO_C" >&6
19684 if test "${bfd_cv_have_sys_procfs_type_pr_sigaction64_t+set}" = set; then
19685 echo $ECHO_N "(cached) $ECHO_C" >&6
19687 cat >conftest.$ac_ext <<_ACEOF
19690 cat confdefs.h >>conftest.$ac_ext
19691 cat >>conftest.$ac_ext <<_ACEOF
19692 /* end confdefs.h. */
19695 #include <sys/procfs.h>
19699 pr_sigaction64_t avar
19704 rm -f conftest.$ac_objext
19705 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
19706 (eval $ac_compile) 2>conftest.er1
19708 grep -v '^ *+' conftest.er1 >conftest.err
19710 cat conftest.err >&5
19711 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19712 (exit $ac_status); } &&
19713 { ac_try='test -z "$ac_c_werror_flag"
19714 || test ! -s conftest.err'
19715 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19716 (eval $ac_try) 2>&5
19718 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19719 (exit $ac_status); }; } &&
19720 { ac_try='test -s conftest.$ac_objext'
19721 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19722 (eval $ac_try) 2>&5
19724 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19725 (exit $ac_status); }; }; then
19726 bfd_cv_have_sys_procfs_type_pr_sigaction64_t=yes
19728 echo "$as_me: failed program was:" >&5
19729 sed 's/^/| /' conftest.$ac_ext >&5
19731 bfd_cv_have_sys_procfs_type_pr_sigaction64_t=no
19734 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
19737 if test $bfd_cv_have_sys_procfs_type_pr_sigaction64_t = yes; then
19739 cat >>confdefs.h <<\_ACEOF
19740 #define HAVE_PR_SIGACTION64_T 1
19744 echo "$as_me:$LINENO: result: $bfd_cv_have_sys_procfs_type_pr_sigaction64_t" >&5
19745 echo "${ECHO_T}$bfd_cv_have_sys_procfs_type_pr_sigaction64_t" >&6
19747 echo "$as_me:$LINENO: checking for pr_siginfo64_t in sys/procfs.h" >&5
19748 echo $ECHO_N "checking for pr_siginfo64_t in sys/procfs.h... $ECHO_C" >&6
19749 if test "${bfd_cv_have_sys_procfs_type_pr_siginfo64_t+set}" = set; then
19750 echo $ECHO_N "(cached) $ECHO_C" >&6
19752 cat >conftest.$ac_ext <<_ACEOF
19755 cat confdefs.h >>conftest.$ac_ext
19756 cat >>conftest.$ac_ext <<_ACEOF
19757 /* end confdefs.h. */
19760 #include <sys/procfs.h>
19764 pr_siginfo64_t avar
19769 rm -f conftest.$ac_objext
19770 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
19771 (eval $ac_compile) 2>conftest.er1
19773 grep -v '^ *+' conftest.er1 >conftest.err
19775 cat conftest.err >&5
19776 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19777 (exit $ac_status); } &&
19778 { ac_try='test -z "$ac_c_werror_flag"
19779 || test ! -s conftest.err'
19780 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19781 (eval $ac_try) 2>&5
19783 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19784 (exit $ac_status); }; } &&
19785 { ac_try='test -s conftest.$ac_objext'
19786 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19787 (eval $ac_try) 2>&5
19789 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19790 (exit $ac_status); }; }; then
19791 bfd_cv_have_sys_procfs_type_pr_siginfo64_t=yes
19793 echo "$as_me: failed program was:" >&5
19794 sed 's/^/| /' conftest.$ac_ext >&5
19796 bfd_cv_have_sys_procfs_type_pr_siginfo64_t=no
19799 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
19802 if test $bfd_cv_have_sys_procfs_type_pr_siginfo64_t = yes; then
19804 cat >>confdefs.h <<\_ACEOF
19805 #define HAVE_PR_SIGINFO64_T 1
19809 echo "$as_me:$LINENO: result: $bfd_cv_have_sys_procfs_type_pr_siginfo64_t" >&5
19810 echo "${ECHO_T}$bfd_cv_have_sys_procfs_type_pr_siginfo64_t" >&6
19816 if test $bfd_cv_have_sys_procfs_type_prfpregset_t = yes; then
19817 echo "$as_me:$LINENO: checking whether prfpregset_t type is broken" >&5
19818 echo $ECHO_N "checking whether prfpregset_t type is broken... $ECHO_C" >&6
19819 if test "${gdb_cv_prfpregset_t_broken+set}" = set; then
19820 echo $ECHO_N "(cached) $ECHO_C" >&6
19822 if test "$cross_compiling" = yes; then
19823 gdb_cv_prfpregset_t_broken=yes
19825 cat >conftest.$ac_ext <<_ACEOF
19828 cat confdefs.h >>conftest.$ac_ext
19829 cat >>conftest.$ac_ext <<_ACEOF
19830 /* end confdefs.h. */
19831 #include <sys/procfs.h>
19834 if (sizeof (prfpregset_t) == sizeof (void *))
19839 rm -f conftest$ac_exeext
19840 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
19841 (eval $ac_link) 2>&5
19843 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19844 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
19845 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19846 (eval $ac_try) 2>&5
19848 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19849 (exit $ac_status); }; }; then
19850 gdb_cv_prfpregset_t_broken=no
19852 echo "$as_me: program exited with status $ac_status" >&5
19853 echo "$as_me: failed program was:" >&5
19854 sed 's/^/| /' conftest.$ac_ext >&5
19856 ( exit $ac_status )
19857 gdb_cv_prfpregset_t_broken=yes
19859 rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
19863 echo "$as_me:$LINENO: result: $gdb_cv_prfpregset_t_broken" >&5
19864 echo "${ECHO_T}$gdb_cv_prfpregset_t_broken" >&6
19865 if test $gdb_cv_prfpregset_t_broken = yes; then
19867 cat >>confdefs.h <<\_ACEOF
19868 #define PRFPREGSET_T_BROKEN 1
19875 echo "$as_me:$LINENO: checking for PIOCSET ioctl entry in sys/procfs.h" >&5
19876 echo $ECHO_N "checking for PIOCSET ioctl entry in sys/procfs.h... $ECHO_C" >&6
19877 if test "${gdb_cv_have_procfs_piocset+set}" = set; then
19878 echo $ECHO_N "(cached) $ECHO_C" >&6
19880 cat >conftest.$ac_ext <<_ACEOF
19883 cat confdefs.h >>conftest.$ac_ext
19884 cat >>conftest.$ac_ext <<_ACEOF
19885 /* end confdefs.h. */
19886 #include <unistd.h>
19887 #include <sys/types.h>
19888 #include <sys/procfs.h>
19895 dummy = ioctl(0, PIOCSET, &dummy);
19901 rm -f conftest.$ac_objext
19902 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
19903 (eval $ac_compile) 2>conftest.er1
19905 grep -v '^ *+' conftest.er1 >conftest.err
19907 cat conftest.err >&5
19908 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19909 (exit $ac_status); } &&
19910 { ac_try='test -z "$ac_c_werror_flag"
19911 || test ! -s conftest.err'
19912 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19913 (eval $ac_try) 2>&5
19915 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19916 (exit $ac_status); }; } &&
19917 { ac_try='test -s conftest.$ac_objext'
19918 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19919 (eval $ac_try) 2>&5
19921 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19922 (exit $ac_status); }; }; then
19923 gdb_cv_have_procfs_piocset=yes
19925 echo "$as_me: failed program was:" >&5
19926 sed 's/^/| /' conftest.$ac_ext >&5
19928 gdb_cv_have_procfs_piocset=no
19930 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
19933 echo "$as_me:$LINENO: result: $gdb_cv_have_procfs_piocset" >&5
19934 echo "${ECHO_T}$gdb_cv_have_procfs_piocset" >&6
19935 if test $gdb_cv_have_procfs_piocset = yes; then
19937 cat >>confdefs.h <<\_ACEOF
19938 #define HAVE_PROCFS_PIOCSET 1
19944 if test ${host} = ${target} ; then
19946 echo "$as_me:$LINENO: checking for member l_addr in struct link_map" >&5
19947 echo $ECHO_N "checking for member l_addr in struct link_map... $ECHO_C" >&6
19948 if test "${gdb_cv_have_struct_link_map_with_l_members+set}" = set; then
19949 echo $ECHO_N "(cached) $ECHO_C" >&6
19951 cat >conftest.$ac_ext <<_ACEOF
19954 cat confdefs.h >>conftest.$ac_ext
19955 cat >>conftest.$ac_ext <<_ACEOF
19956 /* end confdefs.h. */
19961 struct link_map lm; (void) lm.l_addr;
19966 rm -f conftest.$ac_objext
19967 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
19968 (eval $ac_compile) 2>conftest.er1
19970 grep -v '^ *+' conftest.er1 >conftest.err
19972 cat conftest.err >&5
19973 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19974 (exit $ac_status); } &&
19975 { ac_try='test -z "$ac_c_werror_flag"
19976 || test ! -s conftest.err'
19977 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19978 (eval $ac_try) 2>&5
19980 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19981 (exit $ac_status); }; } &&
19982 { ac_try='test -s conftest.$ac_objext'
19983 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19984 (eval $ac_try) 2>&5
19986 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19987 (exit $ac_status); }; }; then
19988 gdb_cv_have_struct_link_map_with_l_members=yes
19990 echo "$as_me: failed program was:" >&5
19991 sed 's/^/| /' conftest.$ac_ext >&5
19993 gdb_cv_have_struct_link_map_with_l_members=no
19995 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
19998 echo "$as_me:$LINENO: result: $gdb_cv_have_struct_link_map_with_l_members" >&5
19999 echo "${ECHO_T}$gdb_cv_have_struct_link_map_with_l_members" >&6
20000 if test $gdb_cv_have_struct_link_map_with_l_members = yes; then
20002 cat >>confdefs.h <<\_ACEOF
20003 #define HAVE_STRUCT_LINK_MAP_WITH_L_MEMBERS 1
20009 echo "$as_me:$LINENO: checking for member lm_addr in struct link_map" >&5
20010 echo $ECHO_N "checking for member lm_addr in struct link_map... $ECHO_C" >&6
20011 if test "${gdb_cv_have_struct_link_map_with_lm_members+set}" = set; then
20012 echo $ECHO_N "(cached) $ECHO_C" >&6
20014 cat >conftest.$ac_ext <<_ACEOF
20017 cat confdefs.h >>conftest.$ac_ext
20018 cat >>conftest.$ac_ext <<_ACEOF
20019 /* end confdefs.h. */
20020 #include <sys/types.h>
20025 struct link_map lm; (void) lm.lm_addr;
20030 rm -f conftest.$ac_objext
20031 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
20032 (eval $ac_compile) 2>conftest.er1
20034 grep -v '^ *+' conftest.er1 >conftest.err
20036 cat conftest.err >&5
20037 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20038 (exit $ac_status); } &&
20039 { ac_try='test -z "$ac_c_werror_flag"
20040 || test ! -s conftest.err'
20041 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20042 (eval $ac_try) 2>&5
20044 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20045 (exit $ac_status); }; } &&
20046 { ac_try='test -s conftest.$ac_objext'
20047 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20048 (eval $ac_try) 2>&5
20050 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20051 (exit $ac_status); }; }; then
20052 gdb_cv_have_struct_link_map_with_lm_members=yes
20054 echo "$as_me: failed program was:" >&5
20055 sed 's/^/| /' conftest.$ac_ext >&5
20057 gdb_cv_have_struct_link_map_with_lm_members=no
20059 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
20062 echo "$as_me:$LINENO: result: $gdb_cv_have_struct_link_map_with_lm_members" >&5
20063 echo "${ECHO_T}$gdb_cv_have_struct_link_map_with_lm_members" >&6
20064 if test $gdb_cv_have_struct_link_map_with_lm_members = yes; then
20066 cat >>confdefs.h <<\_ACEOF
20067 #define HAVE_STRUCT_LINK_MAP_WITH_LM_MEMBERS 1
20073 echo "$as_me:$LINENO: checking for member som_addr in struct so_map" >&5
20074 echo $ECHO_N "checking for member som_addr in struct so_map... $ECHO_C" >&6
20075 if test "${gdb_cv_have_struct_so_map_with_som_members+set}" = set; then
20076 echo $ECHO_N "(cached) $ECHO_C" >&6
20078 cat >conftest.$ac_ext <<_ACEOF
20081 cat confdefs.h >>conftest.$ac_ext
20082 cat >>conftest.$ac_ext <<_ACEOF
20083 /* end confdefs.h. */
20084 #include <sys/types.h>
20085 #ifdef HAVE_NLIST_H
20092 struct so_map lm; (void) lm.som_addr;
20097 rm -f conftest.$ac_objext
20098 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
20099 (eval $ac_compile) 2>conftest.er1
20101 grep -v '^ *+' conftest.er1 >conftest.err
20103 cat conftest.err >&5
20104 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20105 (exit $ac_status); } &&
20106 { ac_try='test -z "$ac_c_werror_flag"
20107 || test ! -s conftest.err'
20108 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20109 (eval $ac_try) 2>&5
20111 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20112 (exit $ac_status); }; } &&
20113 { ac_try='test -s conftest.$ac_objext'
20114 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20115 (eval $ac_try) 2>&5
20117 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20118 (exit $ac_status); }; }; then
20119 gdb_cv_have_struct_so_map_with_som_members=yes
20121 echo "$as_me: failed program was:" >&5
20122 sed 's/^/| /' conftest.$ac_ext >&5
20124 gdb_cv_have_struct_so_map_with_som_members=no
20126 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
20129 echo "$as_me:$LINENO: result: $gdb_cv_have_struct_so_map_with_som_members" >&5
20130 echo "${ECHO_T}$gdb_cv_have_struct_so_map_with_som_members" >&6
20131 if test $gdb_cv_have_struct_so_map_with_som_members = yes; then
20133 cat >>confdefs.h <<\_ACEOF
20134 #define HAVE_STRUCT_SO_MAP_WITH_SOM_MEMBERS 1
20140 echo "$as_me:$LINENO: checking for struct link_map32 in sys/link.h" >&5
20141 echo $ECHO_N "checking for struct link_map32 in sys/link.h... $ECHO_C" >&6
20142 if test "${gdb_cv_have_struct_link_map32+set}" = set; then
20143 echo $ECHO_N "(cached) $ECHO_C" >&6
20145 cat >conftest.$ac_ext <<_ACEOF
20148 cat confdefs.h >>conftest.$ac_ext
20149 cat >>conftest.$ac_ext <<_ACEOF
20150 /* end confdefs.h. */
20152 #include <sys/link.h>
20156 struct link_map32 l;
20161 rm -f conftest.$ac_objext
20162 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
20163 (eval $ac_compile) 2>conftest.er1
20165 grep -v '^ *+' conftest.er1 >conftest.err
20167 cat conftest.err >&5
20168 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20169 (exit $ac_status); } &&
20170 { ac_try='test -z "$ac_c_werror_flag"
20171 || test ! -s conftest.err'
20172 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20173 (eval $ac_try) 2>&5
20175 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20176 (exit $ac_status); }; } &&
20177 { ac_try='test -s conftest.$ac_objext'
20178 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20179 (eval $ac_try) 2>&5
20181 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20182 (exit $ac_status); }; }; then
20183 gdb_cv_have_struct_link_map32=yes
20185 echo "$as_me: failed program was:" >&5
20186 sed 's/^/| /' conftest.$ac_ext >&5
20188 gdb_cv_have_struct_link_map32=no
20190 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
20193 echo "$as_me:$LINENO: result: $gdb_cv_have_struct_link_map32" >&5
20194 echo "${ECHO_T}$gdb_cv_have_struct_link_map32" >&6
20195 if test $gdb_cv_have_struct_link_map32 = yes; then
20197 cat >>confdefs.h <<\_ACEOF
20198 #define HAVE_STRUCT_LINK_MAP32 1
20202 cat >>confdefs.h <<\_ACEOF
20203 #define _SYSCALL32 1
20209 # Check if the compiler supports the `long long' type.
20211 echo "$as_me:$LINENO: checking for long long support in compiler" >&5
20212 echo $ECHO_N "checking for long long support in compiler... $ECHO_C" >&6
20213 if test "${gdb_cv_c_long_long+set}" = set; then
20214 echo $ECHO_N "(cached) $ECHO_C" >&6
20216 cat >conftest.$ac_ext <<_ACEOF
20219 cat confdefs.h >>conftest.$ac_ext
20220 cat >>conftest.$ac_ext <<_ACEOF
20221 /* end confdefs.h. */
20222 extern long long foo;
20226 switch (foo & 2) { case 0: return 1; }
20231 rm -f conftest.$ac_objext
20232 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
20233 (eval $ac_compile) 2>conftest.er1
20235 grep -v '^ *+' conftest.er1 >conftest.err
20237 cat conftest.err >&5
20238 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20239 (exit $ac_status); } &&
20240 { ac_try='test -z "$ac_c_werror_flag"
20241 || test ! -s conftest.err'
20242 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20243 (eval $ac_try) 2>&5
20245 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20246 (exit $ac_status); }; } &&
20247 { ac_try='test -s conftest.$ac_objext'
20248 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20249 (eval $ac_try) 2>&5
20251 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20252 (exit $ac_status); }; }; then
20253 gdb_cv_c_long_long=yes
20255 echo "$as_me: failed program was:" >&5
20256 sed 's/^/| /' conftest.$ac_ext >&5
20258 gdb_cv_c_long_long=no
20260 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
20262 echo "$as_me:$LINENO: result: $gdb_cv_c_long_long" >&5
20263 echo "${ECHO_T}$gdb_cv_c_long_long" >&6
20264 if test $gdb_cv_c_long_long = yes; then
20266 cat >>confdefs.h <<\_ACEOF
20267 #define CC_HAS_LONG_LONG 1
20272 # Check if the compiler and runtime support printing long longs.
20274 echo "$as_me:$LINENO: checking for long long support in printf" >&5
20275 echo $ECHO_N "checking for long long support in printf... $ECHO_C" >&6
20276 if test "${gdb_cv_printf_has_long_long+set}" = set; then
20277 echo $ECHO_N "(cached) $ECHO_C" >&6
20279 if test "$cross_compiling" = yes; then
20280 gdb_cv_printf_has_long_long=no
20282 cat >conftest.$ac_ext <<_ACEOF
20285 cat confdefs.h >>conftest.$ac_ext
20286 cat >>conftest.$ac_ext <<_ACEOF
20287 /* end confdefs.h. */
20288 $ac_includes_default
20294 l = (l << 16) + 0x0123;
20295 l = (l << 16) + 0x4567;
20296 l = (l << 16) + 0x89ab;
20297 l = (l << 16) + 0xcdef;
20298 sprintf (buf, "0x%016llx", l);
20299 return (strcmp ("0x0123456789abcdef", buf));
20304 rm -f conftest$ac_exeext
20305 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
20306 (eval $ac_link) 2>&5
20308 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20309 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
20310 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20311 (eval $ac_try) 2>&5
20313 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20314 (exit $ac_status); }; }; then
20315 gdb_cv_printf_has_long_long=yes
20317 echo "$as_me: program exited with status $ac_status" >&5
20318 echo "$as_me: failed program was:" >&5
20319 sed 's/^/| /' conftest.$ac_ext >&5
20321 ( exit $ac_status )
20322 gdb_cv_printf_has_long_long=no
20324 rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
20327 echo "$as_me:$LINENO: result: $gdb_cv_printf_has_long_long" >&5
20328 echo "${ECHO_T}$gdb_cv_printf_has_long_long" >&6
20329 if test $gdb_cv_printf_has_long_long = yes; then
20331 cat >>confdefs.h <<\_ACEOF
20332 #define PRINTF_HAS_LONG_LONG 1
20337 # Check if the compiler supports the `long double' type. We can't use
20338 # AC_C_LONG_DOUBLE because that one does additional checks on the
20339 # constants defined in <float.h> that fail on some systems,
20340 # e.g. FreeBSD/i386 4.7 and OpenBSD/i386 3.6.
20342 echo "$as_me:$LINENO: checking for long double support in compiler" >&5
20343 echo $ECHO_N "checking for long double support in compiler... $ECHO_C" >&6
20344 if test "${gdb_cv_c_long_double+set}" = set; then
20345 echo $ECHO_N "(cached) $ECHO_C" >&6
20347 cat >conftest.$ac_ext <<_ACEOF
20350 cat confdefs.h >>conftest.$ac_ext
20351 cat >>conftest.$ac_ext <<_ACEOF
20352 /* end confdefs.h. */
20355 rm -f conftest.$ac_objext
20356 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
20357 (eval $ac_compile) 2>conftest.er1
20359 grep -v '^ *+' conftest.er1 >conftest.err
20361 cat conftest.err >&5
20362 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20363 (exit $ac_status); } &&
20364 { ac_try='test -z "$ac_c_werror_flag"
20365 || test ! -s conftest.err'
20366 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20367 (eval $ac_try) 2>&5
20369 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20370 (exit $ac_status); }; } &&
20371 { ac_try='test -s conftest.$ac_objext'
20372 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20373 (eval $ac_try) 2>&5
20375 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20376 (exit $ac_status); }; }; then
20377 gdb_cv_c_long_double=yes
20379 echo "$as_me: failed program was:" >&5
20380 sed 's/^/| /' conftest.$ac_ext >&5
20382 gdb_cv_c_long_double=no
20384 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
20386 echo "$as_me:$LINENO: result: $gdb_cv_c_long_double" >&5
20387 echo "${ECHO_T}$gdb_cv_c_long_double" >&6
20388 if test $gdb_cv_c_long_double = yes; then
20390 cat >>confdefs.h <<\_ACEOF
20391 #define HAVE_LONG_DOUBLE 1
20396 # Check if the compiler and runtime support printing long doubles.
20398 echo "$as_me:$LINENO: checking for long double support in printf" >&5
20399 echo $ECHO_N "checking for long double support in printf... $ECHO_C" >&6
20400 if test "${gdb_cv_printf_has_long_double+set}" = set; then
20401 echo $ECHO_N "(cached) $ECHO_C" >&6
20403 if test "$cross_compiling" = yes; then
20404 gdb_cv_printf_has_long_double=no
20406 cat >conftest.$ac_ext <<_ACEOF
20409 cat confdefs.h >>conftest.$ac_ext
20410 cat >>conftest.$ac_ext <<_ACEOF
20411 /* end confdefs.h. */
20412 $ac_includes_default
20417 long double f = 3.141592653;
20418 sprintf (buf, "%Lg", f);
20419 return (strncmp ("3.14159", buf, 7));
20424 rm -f conftest$ac_exeext
20425 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
20426 (eval $ac_link) 2>&5
20428 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20429 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
20430 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20431 (eval $ac_try) 2>&5
20433 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20434 (exit $ac_status); }; }; then
20435 gdb_cv_printf_has_long_double=yes
20437 echo "$as_me: program exited with status $ac_status" >&5
20438 echo "$as_me: failed program was:" >&5
20439 sed 's/^/| /' conftest.$ac_ext >&5
20441 ( exit $ac_status )
20442 gdb_cv_printf_has_long_double=no
20444 rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
20447 echo "$as_me:$LINENO: result: $gdb_cv_printf_has_long_double" >&5
20448 echo "${ECHO_T}$gdb_cv_printf_has_long_double" >&6
20449 if test $gdb_cv_printf_has_long_double = yes; then
20451 cat >>confdefs.h <<\_ACEOF
20452 #define PRINTF_HAS_LONG_DOUBLE 1
20457 # Check if the compiler and runtime support scanning long doubles.
20459 echo "$as_me:$LINENO: checking for long double support in scanf" >&5
20460 echo $ECHO_N "checking for long double support in scanf... $ECHO_C" >&6
20461 if test "${gdb_cv_scanf_has_long_double+set}" = set; then
20462 echo $ECHO_N "(cached) $ECHO_C" >&6
20464 if test "$cross_compiling" = yes; then
20465 gdb_cv_scanf_has_long_double=no
20467 cat >conftest.$ac_ext <<_ACEOF
20470 cat confdefs.h >>conftest.$ac_ext
20471 cat >>conftest.$ac_ext <<_ACEOF
20472 /* end confdefs.h. */
20477 char *buf = "3.141592653";
20479 sscanf (buf, "%Lg", &f);
20480 return !(f > 3.14159 && f < 3.14160);
20485 rm -f conftest$ac_exeext
20486 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
20487 (eval $ac_link) 2>&5
20489 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20490 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
20491 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20492 (eval $ac_try) 2>&5
20494 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20495 (exit $ac_status); }; }; then
20496 gdb_cv_scanf_has_long_double=yes
20498 echo "$as_me: program exited with status $ac_status" >&5
20499 echo "$as_me: failed program was:" >&5
20500 sed 's/^/| /' conftest.$ac_ext >&5
20502 ( exit $ac_status )
20503 gdb_cv_scanf_has_long_double=no
20505 rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
20508 echo "$as_me:$LINENO: result: $gdb_cv_scanf_has_long_double" >&5
20509 echo "${ECHO_T}$gdb_cv_scanf_has_long_double" >&6
20510 if test $gdb_cv_scanf_has_long_double = yes; then
20512 cat >>confdefs.h <<\_ACEOF
20513 #define SCANF_HAS_LONG_DOUBLE 1
20520 echo "$as_me:$LINENO: checking for -bbigtoc option" >&5
20521 echo $ECHO_N "checking for -bbigtoc option... $ECHO_C" >&6
20522 if test "${gdb_cv_bigtoc+set}" = set; then
20523 echo $ECHO_N "(cached) $ECHO_C" >&6
20526 SAVE_LDFLAGS=$LDFLAGS
20529 yes) gdb_cv_bigtoc=-Wl,-bbigtoc ;;
20530 *) gdb_cv_bigtoc=-bbigtoc ;;
20533 LDFLAGS=$LDFLAGS\ $gdb_cv_bigtoc
20534 cat >conftest.$ac_ext <<_ACEOF
20537 cat confdefs.h >>conftest.$ac_ext
20538 cat >>conftest.$ac_ext <<_ACEOF
20539 /* end confdefs.h. */
20549 rm -f conftest.$ac_objext conftest$ac_exeext
20550 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
20551 (eval $ac_link) 2>conftest.er1
20553 grep -v '^ *+' conftest.er1 >conftest.err
20555 cat conftest.err >&5
20556 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20557 (exit $ac_status); } &&
20558 { ac_try='test -z "$ac_c_werror_flag"
20559 || test ! -s conftest.err'
20560 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20561 (eval $ac_try) 2>&5
20563 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20564 (exit $ac_status); }; } &&
20565 { ac_try='test -s conftest$ac_exeext'
20566 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20567 (eval $ac_try) 2>&5
20569 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20570 (exit $ac_status); }; }; then
20573 echo "$as_me: failed program was:" >&5
20574 sed 's/^/| /' conftest.$ac_ext >&5
20578 rm -f conftest.err conftest.$ac_objext \
20579 conftest$ac_exeext conftest.$ac_ext
20580 LDFLAGS="${SAVE_LDFLAGS}"
20583 echo "$as_me:$LINENO: result: $gdb_cv_bigtoc" >&5
20584 echo "${ECHO_T}$gdb_cv_bigtoc" >&6
20585 CONFIG_LDFLAGS="${CONFIG_LDFLAGS} ${gdb_cv_bigtoc}"
20591 if test ${build} = ${host} -a ${host} = ${target} ; then
20594 echo "$as_me:$LINENO: checking for HPUX/OSF thread support" >&5
20595 echo $ECHO_N "checking for HPUX/OSF thread support... $ECHO_C" >&6
20596 if test -f /usr/include/dce/cma_config.h ; then
20597 if test "$GCC" = "yes" ; then
20598 echo "$as_me:$LINENO: result: yes" >&5
20599 echo "${ECHO_T}yes" >&6
20601 cat >>confdefs.h <<\_ACEOF
20602 #define HAVE_HPUX_THREAD_SUPPORT 1
20605 CONFIG_OBS="${CONFIG_OBS} hpux-thread.o"
20606 CONFIG_SRCS="${CONFIG_SRCS} hpux-thread.c"
20608 echo "$as_me:$LINENO: result: no (suppressed because you are not using GCC)" >&5
20609 echo "${ECHO_T}no (suppressed because you are not using GCC)" >&6
20612 echo "$as_me:$LINENO: result: no" >&5
20613 echo "${ECHO_T}no" >&6
20617 # See if thread_db library is around for Solaris thread debugging.
20618 # Note that we must explicitly test for version 1 of the library
20619 # because version 0 (present on Solaris 2.4 or earlier) doesn't have
20621 echo "$as_me:$LINENO: checking for Solaris thread debugging library" >&5
20622 echo $ECHO_N "checking for Solaris thread debugging library... $ECHO_C" >&6
20623 if test -f /usr/lib/libthread_db.so.1 ; then
20624 echo "$as_me:$LINENO: result: yes" >&5
20625 echo "${ECHO_T}yes" >&6
20627 cat >>confdefs.h <<\_ACEOF
20628 #define HAVE_THREAD_DB_LIB 1
20631 CONFIG_OBS="${CONFIG_OBS} sol-thread.o"
20632 CONFIG_SRCS="${CONFIG_SRCS} sol-thread.c"
20634 echo "$as_me:$LINENO: checking for dlopen in -ldl" >&5
20635 echo $ECHO_N "checking for dlopen in -ldl... $ECHO_C" >&6
20636 if test "${ac_cv_lib_dl_dlopen+set}" = set; then
20637 echo $ECHO_N "(cached) $ECHO_C" >&6
20639 ac_check_lib_save_LIBS=$LIBS
20641 cat >conftest.$ac_ext <<_ACEOF
20644 cat confdefs.h >>conftest.$ac_ext
20645 cat >>conftest.$ac_ext <<_ACEOF
20646 /* end confdefs.h. */
20648 /* Override any gcc2 internal prototype to avoid an error. */
20652 /* We use char because int might match the return type of a gcc2
20653 builtin and then its argument prototype would still apply. */
20663 rm -f conftest.$ac_objext conftest$ac_exeext
20664 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
20665 (eval $ac_link) 2>conftest.er1
20667 grep -v '^ *+' conftest.er1 >conftest.err
20669 cat conftest.err >&5
20670 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20671 (exit $ac_status); } &&
20672 { ac_try='test -z "$ac_c_werror_flag"
20673 || test ! -s conftest.err'
20674 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20675 (eval $ac_try) 2>&5
20677 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20678 (exit $ac_status); }; } &&
20679 { ac_try='test -s conftest$ac_exeext'
20680 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20681 (eval $ac_try) 2>&5
20683 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20684 (exit $ac_status); }; }; then
20685 ac_cv_lib_dl_dlopen=yes
20687 echo "$as_me: failed program was:" >&5
20688 sed 's/^/| /' conftest.$ac_ext >&5
20690 ac_cv_lib_dl_dlopen=no
20692 rm -f conftest.err conftest.$ac_objext \
20693 conftest$ac_exeext conftest.$ac_ext
20694 LIBS=$ac_check_lib_save_LIBS
20696 echo "$as_me:$LINENO: result: $ac_cv_lib_dl_dlopen" >&5
20697 echo "${ECHO_T}$ac_cv_lib_dl_dlopen" >&6
20698 if test $ac_cv_lib_dl_dlopen = yes; then
20699 cat >>confdefs.h <<_ACEOF
20700 #define HAVE_LIBDL 1
20707 if test "$GCC" = "yes" ; then
20708 # The GNU linker requires the -export-dynamic option to make
20709 # all symbols visible in the dynamic symbol table.
20710 hold_ldflags=$LDFLAGS
20711 echo "$as_me:$LINENO: checking for the ld -export-dynamic flag" >&5
20712 echo $ECHO_N "checking for the ld -export-dynamic flag... $ECHO_C" >&6
20713 LDFLAGS="${LDFLAGS} -Wl,-export-dynamic"
20714 cat >conftest.$ac_ext <<_ACEOF
20717 cat confdefs.h >>conftest.$ac_ext
20718 cat >>conftest.$ac_ext <<_ACEOF
20719 /* end confdefs.h. */
20729 rm -f conftest.$ac_objext conftest$ac_exeext
20730 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
20731 (eval $ac_link) 2>conftest.er1
20733 grep -v '^ *+' conftest.er1 >conftest.err
20735 cat conftest.err >&5
20736 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20737 (exit $ac_status); } &&
20738 { ac_try='test -z "$ac_c_werror_flag"
20739 || test ! -s conftest.err'
20740 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20741 (eval $ac_try) 2>&5
20743 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20744 (exit $ac_status); }; } &&
20745 { ac_try='test -s conftest$ac_exeext'
20746 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20747 (eval $ac_try) 2>&5
20749 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20750 (exit $ac_status); }; }; then
20753 echo "$as_me: failed program was:" >&5
20754 sed 's/^/| /' conftest.$ac_ext >&5
20758 rm -f conftest.err conftest.$ac_objext \
20759 conftest$ac_exeext conftest.$ac_ext
20760 LDFLAGS=$hold_ldflags
20761 echo "$as_me:$LINENO: result: $found" >&5
20762 echo "${ECHO_T}$found" >&6
20763 if test $found = yes; then
20764 CONFIG_LDFLAGS="${CONFIG_LDFLAGS} -Wl,-export-dynamic"
20767 # Sun randomly tweaked the prototypes in <proc_service.h>
20769 echo "$as_me:$LINENO: checking if <proc_service.h> is old" >&5
20770 echo $ECHO_N "checking if <proc_service.h> is old... $ECHO_C" >&6
20771 if test "${gdb_cv_proc_service_is_old+set}" = set; then
20772 echo $ECHO_N "(cached) $ECHO_C" >&6
20775 cat >conftest.$ac_ext <<_ACEOF
20778 cat confdefs.h >>conftest.$ac_ext
20779 cat >>conftest.$ac_ext <<_ACEOF
20780 /* end confdefs.h. */
20782 #include <proc_service.h>
20783 ps_err_e ps_pdwrite
20784 (struct ps_prochandle*, psaddr_t, const void*, size_t);
20794 rm -f conftest.$ac_objext
20795 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
20796 (eval $ac_compile) 2>conftest.er1
20798 grep -v '^ *+' conftest.er1 >conftest.err
20800 cat conftest.err >&5
20801 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20802 (exit $ac_status); } &&
20803 { ac_try='test -z "$ac_c_werror_flag"
20804 || test ! -s conftest.err'
20805 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20806 (eval $ac_try) 2>&5
20808 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20809 (exit $ac_status); }; } &&
20810 { ac_try='test -s conftest.$ac_objext'
20811 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20812 (eval $ac_try) 2>&5
20814 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20815 (exit $ac_status); }; }; then
20816 gdb_cv_proc_service_is_old=no
20818 echo "$as_me: failed program was:" >&5
20819 sed 's/^/| /' conftest.$ac_ext >&5
20821 gdb_cv_proc_service_is_old=yes
20823 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
20827 echo "$as_me:$LINENO: result: $gdb_cv_proc_service_is_old" >&5
20828 echo "${ECHO_T}$gdb_cv_proc_service_is_old" >&6
20829 if test $gdb_cv_proc_service_is_old = yes; then
20831 cat >>confdefs.h <<\_ACEOF
20832 #define PROC_SERVICE_IS_OLD 1
20837 echo "$as_me:$LINENO: result: no" >&5
20838 echo "${ECHO_T}no" >&6
20842 echo "$as_me:$LINENO: checking for AiX thread debugging library" >&5
20843 echo $ECHO_N "checking for AiX thread debugging library... $ECHO_C" >&6
20844 if test "${gdb_cv_have_aix_thread_debug+set}" = set; then
20845 echo $ECHO_N "(cached) $ECHO_C" >&6
20847 cat >conftest.$ac_ext <<_ACEOF
20850 cat confdefs.h >>conftest.$ac_ext
20851 cat >>conftest.$ac_ext <<_ACEOF
20852 /* end confdefs.h. */
20853 #include <sys/pthdebug.h>
20857 #ifndef PTHDB_VERSION_3
20864 rm -f conftest.$ac_objext
20865 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
20866 (eval $ac_compile) 2>conftest.er1
20868 grep -v '^ *+' conftest.er1 >conftest.err
20870 cat conftest.err >&5
20871 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20872 (exit $ac_status); } &&
20873 { ac_try='test -z "$ac_c_werror_flag"
20874 || test ! -s conftest.err'
20875 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20876 (eval $ac_try) 2>&5
20878 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20879 (exit $ac_status); }; } &&
20880 { ac_try='test -s conftest.$ac_objext'
20881 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20882 (eval $ac_try) 2>&5
20884 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20885 (exit $ac_status); }; }; then
20886 gdb_cv_have_aix_thread_debug=yes
20888 echo "$as_me: failed program was:" >&5
20889 sed 's/^/| /' conftest.$ac_ext >&5
20891 gdb_cv_have_aix_thread_debug=no
20893 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
20896 echo "$as_me:$LINENO: result: $gdb_cv_have_aix_thread_debug" >&5
20897 echo "${ECHO_T}$gdb_cv_have_aix_thread_debug" >&6
20898 if test $gdb_cv_have_aix_thread_debug = yes; then
20899 CONFIG_SRCS="${CONFIG_SRCS} aix-thread.c"
20900 CONFIG_OBS="${CONFIG_OBS} aix-thread.o"
20901 CONFIG_LDFLAGS="${CONFIG_LDFLAGS} -lpthdebug"
20908 if test "x$ac_cv_header_thread_db_h" = "xyes"; then
20909 echo "$as_me:$LINENO: checking whether <thread_db.h> has TD_NOTALLOC" >&5
20910 echo $ECHO_N "checking whether <thread_db.h> has TD_NOTALLOC... $ECHO_C" >&6
20911 if test "${gdb_cv_thread_db_h_has_td_notalloc+set}" = set; then
20912 echo $ECHO_N "(cached) $ECHO_C" >&6
20914 cat >conftest.$ac_ext <<_ACEOF
20917 cat confdefs.h >>conftest.$ac_ext
20918 cat >>conftest.$ac_ext <<_ACEOF
20919 /* end confdefs.h. */
20920 #include <thread_db.h>
20924 int i = TD_NOTALLOC;
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_thread_db_h_has_td_notalloc=yes
20953 echo "$as_me: failed program was:" >&5
20954 sed 's/^/| /' conftest.$ac_ext >&5
20956 gdb_cv_thread_db_h_has_td_notalloc=no
20959 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
20962 echo "$as_me:$LINENO: result: $gdb_cv_thread_db_h_has_td_notalloc" >&5
20963 echo "${ECHO_T}$gdb_cv_thread_db_h_has_td_notalloc" >&6
20964 echo "$as_me:$LINENO: checking whether <thread_db.h> has TD_VERSION" >&5
20965 echo $ECHO_N "checking whether <thread_db.h> has TD_VERSION... $ECHO_C" >&6
20966 if test "${gdb_cv_thread_db_h_has_td_version+set}" = set; then
20967 echo $ECHO_N "(cached) $ECHO_C" >&6
20969 cat >conftest.$ac_ext <<_ACEOF
20972 cat confdefs.h >>conftest.$ac_ext
20973 cat >>conftest.$ac_ext <<_ACEOF
20974 /* end confdefs.h. */
20975 #include <thread_db.h>
20979 int i = TD_VERSION;
20984 rm -f conftest.$ac_objext
20985 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
20986 (eval $ac_compile) 2>conftest.er1
20988 grep -v '^ *+' conftest.er1 >conftest.err
20990 cat conftest.err >&5
20991 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20992 (exit $ac_status); } &&
20993 { ac_try='test -z "$ac_c_werror_flag"
20994 || test ! -s conftest.err'
20995 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20996 (eval $ac_try) 2>&5
20998 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20999 (exit $ac_status); }; } &&
21000 { ac_try='test -s conftest.$ac_objext'
21001 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21002 (eval $ac_try) 2>&5
21004 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21005 (exit $ac_status); }; }; then
21006 gdb_cv_thread_db_h_has_td_version=yes
21008 echo "$as_me: failed program was:" >&5
21009 sed 's/^/| /' conftest.$ac_ext >&5
21011 gdb_cv_thread_db_h_has_td_version=no
21014 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
21017 echo "$as_me:$LINENO: result: $gdb_cv_thread_db_h_has_td_version" >&5
21018 echo "${ECHO_T}$gdb_cv_thread_db_h_has_td_version" >&6
21019 echo "$as_me:$LINENO: checking whether <thread_db.h> has TD_NOTLS" >&5
21020 echo $ECHO_N "checking whether <thread_db.h> has TD_NOTLS... $ECHO_C" >&6
21021 if test "${gdb_cv_thread_db_h_has_td_notls+set}" = set; then
21022 echo $ECHO_N "(cached) $ECHO_C" >&6
21024 cat >conftest.$ac_ext <<_ACEOF
21027 cat confdefs.h >>conftest.$ac_ext
21028 cat >>conftest.$ac_ext <<_ACEOF
21029 /* end confdefs.h. */
21030 #include <thread_db.h>
21039 rm -f conftest.$ac_objext
21040 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
21041 (eval $ac_compile) 2>conftest.er1
21043 grep -v '^ *+' conftest.er1 >conftest.err
21045 cat conftest.err >&5
21046 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21047 (exit $ac_status); } &&
21048 { ac_try='test -z "$ac_c_werror_flag"
21049 || test ! -s conftest.err'
21050 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21051 (eval $ac_try) 2>&5
21053 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21054 (exit $ac_status); }; } &&
21055 { ac_try='test -s conftest.$ac_objext'
21056 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21057 (eval $ac_try) 2>&5
21059 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21060 (exit $ac_status); }; }; then
21061 gdb_cv_thread_db_h_has_td_notls=yes
21063 echo "$as_me: failed program was:" >&5
21064 sed 's/^/| /' conftest.$ac_ext >&5
21066 gdb_cv_thread_db_h_has_td_notls=no
21069 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
21072 echo "$as_me:$LINENO: result: $gdb_cv_thread_db_h_has_td_notls" >&5
21073 echo "${ECHO_T}$gdb_cv_thread_db_h_has_td_notls" >&6
21075 if test "x$gdb_cv_thread_db_h_has_td_notalloc" = "xyes"; then
21077 cat >>confdefs.h <<\_ACEOF
21078 #define THREAD_DB_HAS_TD_NOTALLOC 1
21082 if test "x$gdb_cv_thread_db_h_has_td_version" = "xyes"; then
21084 cat >>confdefs.h <<\_ACEOF
21085 #define THREAD_DB_HAS_TD_VERSION 1
21089 if test "x$gdb_cv_thread_db_h_has_td_notls" = "xyes"; then
21091 cat >>confdefs.h <<\_ACEOF
21092 #define THREAD_DB_HAS_TD_NOTLS 1
21097 if test "x$ac_cv_header_sys_syscall_h" = "xyes"; then
21098 echo "$as_me:$LINENO: checking whether <sys/syscall.h> has __NR_tkill" >&5
21099 echo $ECHO_N "checking whether <sys/syscall.h> has __NR_tkill... $ECHO_C" >&6
21100 if test "${gdb_cv_sys_syscall_h_has_tkill+set}" = set; then
21101 echo $ECHO_N "(cached) $ECHO_C" >&6
21103 cat >conftest.$ac_ext <<_ACEOF
21106 cat confdefs.h >>conftest.$ac_ext
21107 cat >>conftest.$ac_ext <<_ACEOF
21108 /* end confdefs.h. */
21109 #include <sys/syscall.h>
21113 int i = __NR_tkill;
21118 rm -f conftest.$ac_objext
21119 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
21120 (eval $ac_compile) 2>conftest.er1
21122 grep -v '^ *+' conftest.er1 >conftest.err
21124 cat conftest.err >&5
21125 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21126 (exit $ac_status); } &&
21127 { ac_try='test -z "$ac_c_werror_flag"
21128 || test ! -s conftest.err'
21129 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21130 (eval $ac_try) 2>&5
21132 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21133 (exit $ac_status); }; } &&
21134 { ac_try='test -s conftest.$ac_objext'
21135 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21136 (eval $ac_try) 2>&5
21138 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21139 (exit $ac_status); }; }; then
21140 gdb_cv_sys_syscall_h_has_tkill=yes
21142 echo "$as_me: failed program was:" >&5
21143 sed 's/^/| /' conftest.$ac_ext >&5
21145 gdb_cv_sys_syscall_h_has_tkill=no
21148 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
21151 echo "$as_me:$LINENO: result: $gdb_cv_sys_syscall_h_has_tkill" >&5
21152 echo "${ECHO_T}$gdb_cv_sys_syscall_h_has_tkill" >&6
21154 if test "x$gdb_cv_sys_syscall_h_has_tkill" = "xyes" && test "x$ac_cv_func_syscall" = "xyes"; then
21156 cat >>confdefs.h <<\_ACEOF
21157 #define HAVE_TKILL_SYSCALL 1
21164 # Check whether --with-sysroot or --without-sysroot was given.
21165 if test "${with_sysroot+set}" = set; then
21166 withval="$with_sysroot"
21168 case ${with_sysroot} in
21169 yes) TARGET_SYSTEM_ROOT='${exec_prefix}/${target_alias}/sys-root' ;;
21170 *) TARGET_SYSTEM_ROOT=$with_sysroot ;;
21173 TARGET_SYSTEM_ROOT_DEFINE='-DTARGET_SYSTEM_ROOT=\"$(TARGET_SYSTEM_ROOT)\"'
21175 if test "x$exec_prefix" = xNONE; then
21176 if test "x$prefix" = xNONE; then
21177 test_prefix=/usr/local
21179 test_prefix=$prefix
21182 test_prefix=$exec_prefix
21184 case ${TARGET_SYSTEM_ROOT} in
21185 "${test_prefix}"|"${test_prefix}/"*|\
21186 '${exec_prefix}'|'${exec_prefix}/'*)
21187 t="$TARGET_SYSTEM_ROOT_DEFINE -DTARGET_SYSTEM_ROOT_RELOCATABLE"
21188 TARGET_SYSTEM_ROOT_DEFINE="$t"
21194 TARGET_SYSTEM_ROOT=
21195 TARGET_SYSTEM_ROOT_DEFINE='-DTARGET_SYSTEM_ROOT=\"\"'
21201 # Check whether --enable-werror or --disable-werror was given.
21202 if test "${enable_werror+set}" = set; then
21203 enableval="$enable_werror"
21204 case "${enableval}" in
21205 yes | y) ERROR_ON_WARNING="yes" ;;
21206 no | n) ERROR_ON_WARNING="no" ;;
21207 *) { { echo "$as_me:$LINENO: error: bad value ${enableval} for --enable-werror" >&5
21208 echo "$as_me: error: bad value ${enableval} for --enable-werror" >&2;}
21209 { (exit 1); exit 1; }; } ;;
21213 # Enable -Werror by default when using gcc
21214 if test "${GCC}" = yes -a -z "${ERROR_ON_WARNING}" ; then
21215 ERROR_ON_WARNING=yes
21219 if test "${ERROR_ON_WARNING}" = yes ; then
21220 WERROR_CFLAGS="-Werror"
21223 # The entries after -Wno-pointer-sign are disabled warnings which may
21224 # be enabled in the future, which can not currently be used to build
21226 # NOTE: If you change this list, remember to update
21227 # gdb/doc/gdbint.texinfo.
21228 build_warnings="-Wall -Wdeclaration-after-statement -Wpointer-arith \
21229 -Wformat-nonliteral -Wno-pointer-sign \
21230 -Wno-unused -Wno-switch"
21232 # Check whether --enable-build-warnings or --disable-build-warnings was given.
21233 if test "${enable_build_warnings+set}" = set; then
21234 enableval="$enable_build_warnings"
21235 case "${enableval}" in
21237 no) build_warnings="-w";;
21238 ,*) t=`echo "${enableval}" | sed -e "s/,/ /g"`
21239 build_warnings="${build_warnings} ${t}";;
21240 *,) t=`echo "${enableval}" | sed -e "s/,/ /g"`
21241 build_warnings="${t} ${build_warnings}";;
21242 *) build_warnings=`echo "${enableval}" | sed -e "s/,/ /g"`;;
21244 if test x"$silent" != x"yes" && test x"$build_warnings" != x""; then
21245 echo "Setting compiler warning flags = $build_warnings" 6>&1
21247 fi; # Check whether --enable-gdb-build-warnings or --disable-gdb-build-warnings was given.
21248 if test "${enable_gdb_build_warnings+set}" = set; then
21249 enableval="$enable_gdb_build_warnings"
21250 case "${enableval}" in
21252 no) build_warnings="-w";;
21253 ,*) t=`echo "${enableval}" | sed -e "s/,/ /g"`
21254 build_warnings="${build_warnings} ${t}";;
21255 *,) t=`echo "${enableval}" | sed -e "s/,/ /g"`
21256 build_warnings="${t} ${build_warnings}";;
21257 *) build_warnings=`echo "${enableval}" | sed -e "s/,/ /g"`;;
21259 if test x"$silent" != x"yes" && test x"$build_warnings" != x""; then
21260 echo "Setting GDB specific compiler warning flags = $build_warnings" 6>&1
21263 if test "x${build_warnings}" != x -a "x$GCC" = xyes
21265 echo "$as_me:$LINENO: checking compiler warning flags" >&5
21266 echo $ECHO_N "checking compiler warning flags... $ECHO_C" >&6
21267 # Separate out the -Werror flag as some files just cannot be
21268 # compiled with it enabled.
21269 for w in ${build_warnings}; do
21271 -Werr*) WERROR_CFLAGS=-Werror ;;
21272 *) # Check that GCC accepts it
21273 saved_CFLAGS="$CFLAGS"
21274 CFLAGS="$CFLAGS $w"
21275 cat >conftest.$ac_ext <<_ACEOF
21278 cat confdefs.h >>conftest.$ac_ext
21279 cat >>conftest.$ac_ext <<_ACEOF
21280 /* end confdefs.h. */
21290 rm -f conftest.$ac_objext
21291 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
21292 (eval $ac_compile) 2>conftest.er1
21294 grep -v '^ *+' conftest.er1 >conftest.err
21296 cat conftest.err >&5
21297 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21298 (exit $ac_status); } &&
21299 { ac_try='test -z "$ac_c_werror_flag"
21300 || test ! -s conftest.err'
21301 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21302 (eval $ac_try) 2>&5
21304 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21305 (exit $ac_status); }; } &&
21306 { ac_try='test -s conftest.$ac_objext'
21307 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21308 (eval $ac_try) 2>&5
21310 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21311 (exit $ac_status); }; }; then
21312 WARN_CFLAGS="${WARN_CFLAGS} $w"
21314 echo "$as_me: failed program was:" >&5
21315 sed 's/^/| /' conftest.$ac_ext >&5
21318 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
21319 CFLAGS="$saved_CFLAGS"
21322 echo "$as_me:$LINENO: result: ${WARN_CFLAGS} ${WERROR_CFLAGS}" >&5
21323 echo "${ECHO_T}${WARN_CFLAGS} ${WERROR_CFLAGS}" >&6
21328 # In the Cygwin environment, we need some additional flags.
21329 echo "$as_me:$LINENO: checking for cygwin" >&5
21330 echo $ECHO_N "checking for cygwin... $ECHO_C" >&6
21331 if test "${gdb_cv_os_cygwin+set}" = set; then
21332 echo $ECHO_N "(cached) $ECHO_C" >&6
21334 cat >conftest.$ac_ext <<_ACEOF
21337 cat confdefs.h >>conftest.$ac_ext
21338 cat >>conftest.$ac_ext <<_ACEOF
21339 /* end confdefs.h. */
21341 #if defined (__CYGWIN__) || defined (__CYGWIN32__)
21345 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
21346 $EGREP "lose" >/dev/null 2>&1; then
21347 gdb_cv_os_cygwin=yes
21349 gdb_cv_os_cygwin=no
21354 echo "$as_me:$LINENO: result: $gdb_cv_os_cygwin" >&5
21355 echo "${ECHO_T}$gdb_cv_os_cygwin" >&6
21358 SER_HARDWIRE="ser-base.o ser-unix.o ser-pipe.o ser-tcp.o"
21360 *go32* ) SER_HARDWIRE=ser-go32.o ;;
21361 *djgpp* ) SER_HARDWIRE=ser-go32.o ;;
21362 *mingw32*) SER_HARDWIRE="ser-base.o ser-tcp.o ser-mingw.o" ;;
21366 # libreadline needs libuser32.a in a cygwin environment
21368 if test x$gdb_cv_os_cygwin = xyes; then
21369 WIN32LIBS="-luser32"
21370 case "${target}" in
21371 *cygwin*) WIN32LIBS="$WIN32LIBS -limagehlp"
21376 # The ser-tcp.c module requires sockets.
21380 cat >>confdefs.h <<\_ACEOF
21381 #define USE_WIN32API 1
21384 WIN32LIBS="$WIN32LIBS -lws2_32"
21389 # Add any host-specific objects to GDB.
21390 CONFIG_OBS="${CONFIG_OBS} ${gdb_host_obs}"
21392 LIBGUI="../libgui/src/libgui.a"
21393 GUI_CFLAGS_X="-I${srcdir}/../libgui/src"
21411 if test "${enable_gdbtk}" = "yes"; then
21413 # Gdbtk must have an absolute path to srcdir in order to run
21414 # properly when not installed.
21417 GDBTK_SRC_DIR=`pwd`
21422 # Ok, lets find the tcl configuration
21423 # First, look for one uninstalled.
21424 # the alternative search directory is invoked by --with-tclconfig
21427 if test x"${no_tcl}" = x ; then
21428 # we reset no_tcl in case something fails here
21431 # Check whether --with-tclconfig or --without-tclconfig was given.
21432 if test "${with_tclconfig+set}" = set; then
21433 withval="$with_tclconfig"
21434 with_tclconfig=${withval}
21436 echo "$as_me:$LINENO: checking for Tcl configuration" >&5
21437 echo $ECHO_N "checking for Tcl configuration... $ECHO_C" >&6
21438 if test "${ac_cv_c_tclconfig+set}" = set; then
21439 echo $ECHO_N "(cached) $ECHO_C" >&6
21443 # First check to see if --with-tclconfig was specified.
21444 if test x"${with_tclconfig}" != x ; then
21445 if test -f "${with_tclconfig}/tclConfig.sh" ; then
21446 ac_cv_c_tclconfig=`(cd ${with_tclconfig}; pwd)`
21448 { { echo "$as_me:$LINENO: error: ${with_tclconfig} directory doesn't contain tclConfig.sh" >&5
21449 echo "$as_me: error: ${with_tclconfig} directory doesn't contain tclConfig.sh" >&2;}
21450 { (exit 1); exit 1; }; }
21454 # then check for a private Tcl installation
21455 if test x"${ac_cv_c_tclconfig}" = x ; then
21458 `ls -dr ../tcl[7-9]* 2>/dev/null` \
21460 `ls -dr ../../tcl[7-9]* 2>/dev/null` \
21462 `ls -dr ../../../tcl[7-9]* 2>/dev/null` ; do
21463 if test -f "$i/${configdir}/tclConfig.sh" ; then
21464 ac_cv_c_tclconfig=`(cd $i/${configdir}; pwd)`
21469 # check in a few common install locations
21470 if test x"${ac_cv_c_tclconfig}" = x ; then
21471 for i in `ls -d ${prefix}/lib /usr/local/lib 2>/dev/null` ; do
21472 if test -f "$i/tclConfig.sh" ; then
21473 ac_cv_c_tclconfig=`(cd $i; pwd)`
21478 # check in a few other private locations
21479 if test x"${ac_cv_c_tclconfig}" = x ; then
21482 `ls -dr ${srcdir}/../tcl[7-9]* 2>/dev/null` ; do
21483 if test -f "$i/${configdir}/tclConfig.sh" ; then
21484 ac_cv_c_tclconfig=`(cd $i/${configdir}; pwd)`
21492 if test x"${ac_cv_c_tclconfig}" = x ; then
21493 TCLCONFIG="# no Tcl configs found"
21494 { echo "$as_me:$LINENO: WARNING: Can't find Tcl configuration definitions" >&5
21495 echo "$as_me: WARNING: Can't find Tcl configuration definitions" >&2;}
21498 TCLCONFIG=${ac_cv_c_tclconfig}/tclConfig.sh
21499 echo "$as_me:$LINENO: result: found $TCLCONFIG" >&5
21500 echo "${ECHO_T}found $TCLCONFIG" >&6
21504 if test -z "${no_tcl}"; then
21535 # Ok, lets find the tk configuration
21536 # First, look for one uninstalled.
21537 # the alternative search directory is invoked by --with-tkconfig
21540 if test x"${no_tk}" = x ; then
21541 # we reset no_tk in case something fails here
21544 # Check whether --with-tkconfig or --without-tkconfig was given.
21545 if test "${with_tkconfig+set}" = set; then
21546 withval="$with_tkconfig"
21547 with_tkconfig=${withval}
21549 echo "$as_me:$LINENO: checking for Tk configuration" >&5
21550 echo $ECHO_N "checking for Tk configuration... $ECHO_C" >&6
21551 if test "${ac_cv_c_tkconfig+set}" = set; then
21552 echo $ECHO_N "(cached) $ECHO_C" >&6
21556 # First check to see if --with-tkconfig was specified.
21557 if test x"${with_tkconfig}" != x ; then
21558 if test -f "${with_tkconfig}/tkConfig.sh" ; then
21559 ac_cv_c_tkconfig=`(cd ${with_tkconfig}; pwd)`
21561 { { echo "$as_me:$LINENO: error: ${with_tkconfig} directory doesn't contain tkConfig.sh" >&5
21562 echo "$as_me: error: ${with_tkconfig} directory doesn't contain tkConfig.sh" >&2;}
21563 { (exit 1); exit 1; }; }
21567 # then check for a private Tk library
21568 if test x"${ac_cv_c_tkconfig}" = x ; then
21571 `ls -dr ../tk[4-9]* 2>/dev/null` \
21573 `ls -dr ../../tk[4-9]* 2>/dev/null` \
21575 `ls -dr ../../../tk[4-9]* 2>/dev/null` ; do
21576 if test -f "$i/${configdir}/tkConfig.sh" ; then
21577 ac_cv_c_tkconfig=`(cd $i/${configdir}; pwd)`
21582 # check in a few common install locations
21583 if test x"${ac_cv_c_tkconfig}" = x ; then
21584 for i in `ls -d ${prefix}/lib /usr/local/lib 2>/dev/null` ; do
21585 if test -f "$i/tkConfig.sh" ; then
21586 ac_cv_c_tkconfig=`(cd $i; pwd)`
21591 # check in a few other private locations
21592 if test x"${ac_cv_c_tkconfig}" = x ; then
21595 `ls -dr ${srcdir}/../tk[4-9]* 2>/dev/null` ; do
21596 if test -f "$i/${configdir}/tkConfig.sh" ; then
21597 ac_cv_c_tkconfig=`(cd $i/${configdir}; pwd)`
21605 if test x"${ac_cv_c_tkconfig}" = x ; then
21606 TKCONFIG="# no Tk configs found"
21607 { echo "$as_me:$LINENO: WARNING: Can't find Tk configuration definitions" >&5
21608 echo "$as_me: WARNING: Can't find Tk configuration definitions" >&2;}
21611 TKCONFIG=${ac_cv_c_tkconfig}/tkConfig.sh
21612 echo "$as_me:$LINENO: result: found $TKCONFIG" >&5
21613 echo "${ECHO_T}found $TKCONFIG" >&6
21619 # now look for Tcl library stuff
21621 tcldir="../tcl/${configdir}/"
21623 TCL_DEPS="${tcldir}${TCL_LIB_FILE}"
21625 # If $no_tk is nonempty, then we can't do Tk, and there is no
21626 # point to doing Tcl.
21627 if test -z "${no_tk}"; then
21629 if test -f "$TKCONFIG" ; then
21647 # Ok, lets find the tcl source trees so we can use the headers
21648 # Warning: transition of version 9 to 10 will break this algorithm
21649 # because 10 sorts before 9. We also look for just tcl. We have to
21650 # be careful that we don't match stuff like tclX by accident.
21651 # the alternative search directory is involked by --with-tclinclude
21655 echo "$as_me:$LINENO: checking for Tcl private headers. dir=${configdir}" >&5
21656 echo $ECHO_N "checking for Tcl private headers. dir=${configdir}... $ECHO_C" >&6
21658 # Check whether --with-tclinclude or --without-tclinclude was given.
21659 if test "${with_tclinclude+set}" = set; then
21660 withval="$with_tclinclude"
21661 with_tclinclude=${withval}
21663 if test "${ac_cv_c_tclh+set}" = set; then
21664 echo $ECHO_N "(cached) $ECHO_C" >&6
21667 # first check to see if --with-tclinclude was specified
21668 if test x"${with_tclinclude}" != x ; then
21669 if test -f ${with_tclinclude}/tclInt.h ; then
21670 ac_cv_c_tclh=`(cd ${with_tclinclude}; pwd)`
21671 elif test -f ${with_tclinclude}/generic/tclInt.h ; then
21672 ac_cv_c_tclh=`(cd ${with_tclinclude}/generic; pwd)`
21674 { { echo "$as_me:$LINENO: error: ${with_tclinclude} directory doesn't contain private headers" >&5
21675 echo "$as_me: error: ${with_tclinclude} directory doesn't contain private headers" >&2;}
21676 { (exit 1); exit 1; }; }
21680 # next check if it came with Tcl configuration file
21681 if test x"${ac_cv_c_tclconfig}" = x ; then
21682 if test -f $ac_cv_c_tclconfig/../generic/tclInt.h ; then
21683 ac_cv_c_tclh=`(cd $ac_cv_c_tclconfig/..; pwd)`
21687 # next check in private source directory
21689 # since ls returns lowest version numbers first, reverse its output
21690 if test x"${ac_cv_c_tclh}" = x ; then
21693 `ls -dr ${srcdir}/../tcl[7-9]* 2>/dev/null` \
21694 ${srcdir}/../../tcl \
21695 `ls -dr ${srcdir}/../../tcl[7-9]* 2>/dev/null` \
21696 ${srcdir}/../../../tcl \
21697 `ls -dr ${srcdir}/../../../tcl[7-9]* 2>/dev/null ` ; do
21698 if test -f $i/generic/tclInt.h ; then
21699 ac_cv_c_tclh=`(cd $i/generic; pwd)`
21704 # finally check in a few common install locations
21706 # since ls returns lowest version numbers first, reverse its output
21707 if test x"${ac_cv_c_tclh}" = x ; then
21709 `ls -dr /usr/local/src/tcl[7-9]* 2>/dev/null` \
21710 `ls -dr /usr/local/lib/tcl[7-9]* 2>/dev/null` \
21711 /usr/local/src/tcl \
21712 /usr/local/lib/tcl \
21713 ${prefix}/include ; do
21714 if test -f $i/generic/tclInt.h ; then
21715 ac_cv_c_tclh=`(cd $i/generic; pwd)`
21720 # see if one is installed
21721 if test x"${ac_cv_c_tclh}" = x ; then
21722 if test "${ac_cv_header_tclInt_h+set}" = set; then
21723 echo "$as_me:$LINENO: checking for tclInt.h" >&5
21724 echo $ECHO_N "checking for tclInt.h... $ECHO_C" >&6
21725 if test "${ac_cv_header_tclInt_h+set}" = set; then
21726 echo $ECHO_N "(cached) $ECHO_C" >&6
21728 echo "$as_me:$LINENO: result: $ac_cv_header_tclInt_h" >&5
21729 echo "${ECHO_T}$ac_cv_header_tclInt_h" >&6
21731 # Is the header compilable?
21732 echo "$as_me:$LINENO: checking tclInt.h usability" >&5
21733 echo $ECHO_N "checking tclInt.h usability... $ECHO_C" >&6
21734 cat >conftest.$ac_ext <<_ACEOF
21737 cat confdefs.h >>conftest.$ac_ext
21738 cat >>conftest.$ac_ext <<_ACEOF
21739 /* end confdefs.h. */
21740 $ac_includes_default
21741 #include <tclInt.h>
21743 rm -f conftest.$ac_objext
21744 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
21745 (eval $ac_compile) 2>conftest.er1
21747 grep -v '^ *+' conftest.er1 >conftest.err
21749 cat conftest.err >&5
21750 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21751 (exit $ac_status); } &&
21752 { ac_try='test -z "$ac_c_werror_flag"
21753 || test ! -s conftest.err'
21754 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21755 (eval $ac_try) 2>&5
21757 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21758 (exit $ac_status); }; } &&
21759 { ac_try='test -s conftest.$ac_objext'
21760 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21761 (eval $ac_try) 2>&5
21763 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21764 (exit $ac_status); }; }; then
21765 ac_header_compiler=yes
21767 echo "$as_me: failed program was:" >&5
21768 sed 's/^/| /' conftest.$ac_ext >&5
21770 ac_header_compiler=no
21772 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
21773 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
21774 echo "${ECHO_T}$ac_header_compiler" >&6
21776 # Is the header present?
21777 echo "$as_me:$LINENO: checking tclInt.h presence" >&5
21778 echo $ECHO_N "checking tclInt.h presence... $ECHO_C" >&6
21779 cat >conftest.$ac_ext <<_ACEOF
21782 cat confdefs.h >>conftest.$ac_ext
21783 cat >>conftest.$ac_ext <<_ACEOF
21784 /* end confdefs.h. */
21785 #include <tclInt.h>
21787 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
21788 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
21790 grep -v '^ *+' conftest.er1 >conftest.err
21792 cat conftest.err >&5
21793 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21794 (exit $ac_status); } >/dev/null; then
21795 if test -s conftest.err; then
21796 ac_cpp_err=$ac_c_preproc_warn_flag
21797 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
21804 if test -z "$ac_cpp_err"; then
21805 ac_header_preproc=yes
21807 echo "$as_me: failed program was:" >&5
21808 sed 's/^/| /' conftest.$ac_ext >&5
21810 ac_header_preproc=no
21812 rm -f conftest.err conftest.$ac_ext
21813 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
21814 echo "${ECHO_T}$ac_header_preproc" >&6
21816 # So? What about this header?
21817 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
21819 { echo "$as_me:$LINENO: WARNING: tclInt.h: accepted by the compiler, rejected by the preprocessor!" >&5
21820 echo "$as_me: WARNING: tclInt.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
21821 { echo "$as_me:$LINENO: WARNING: tclInt.h: proceeding with the compiler's result" >&5
21822 echo "$as_me: WARNING: tclInt.h: proceeding with the compiler's result" >&2;}
21823 ac_header_preproc=yes
21826 { echo "$as_me:$LINENO: WARNING: tclInt.h: present but cannot be compiled" >&5
21827 echo "$as_me: WARNING: tclInt.h: present but cannot be compiled" >&2;}
21828 { echo "$as_me:$LINENO: WARNING: tclInt.h: check for missing prerequisite headers?" >&5
21829 echo "$as_me: WARNING: tclInt.h: check for missing prerequisite headers?" >&2;}
21830 { echo "$as_me:$LINENO: WARNING: tclInt.h: see the Autoconf documentation" >&5
21831 echo "$as_me: WARNING: tclInt.h: see the Autoconf documentation" >&2;}
21832 { echo "$as_me:$LINENO: WARNING: tclInt.h: section \"Present But Cannot Be Compiled\"" >&5
21833 echo "$as_me: WARNING: tclInt.h: section \"Present But Cannot Be Compiled\"" >&2;}
21834 { echo "$as_me:$LINENO: WARNING: tclInt.h: proceeding with the preprocessor's result" >&5
21835 echo "$as_me: WARNING: tclInt.h: proceeding with the preprocessor's result" >&2;}
21836 { echo "$as_me:$LINENO: WARNING: tclInt.h: in the future, the compiler will take precedence" >&5
21837 echo "$as_me: WARNING: tclInt.h: in the future, the compiler will take precedence" >&2;}
21840 ## ------------------------------------------ ##
21841 ## Report this to the AC_PACKAGE_NAME lists. ##
21842 ## ------------------------------------------ ##
21845 sed "s/^/$as_me: WARNING: /" >&2
21848 echo "$as_me:$LINENO: checking for tclInt.h" >&5
21849 echo $ECHO_N "checking for tclInt.h... $ECHO_C" >&6
21850 if test "${ac_cv_header_tclInt_h+set}" = set; then
21851 echo $ECHO_N "(cached) $ECHO_C" >&6
21853 ac_cv_header_tclInt_h=$ac_header_preproc
21855 echo "$as_me:$LINENO: result: $ac_cv_header_tclInt_h" >&5
21856 echo "${ECHO_T}$ac_cv_header_tclInt_h" >&6
21859 if test $ac_cv_header_tclInt_h = yes; then
21860 ac_cv_c_tclh=installed
21870 if test x"${ac_cv_c_tclh}" = x ; then
21871 TCLHDIR="# no Tcl private headers found"
21872 { { echo "$as_me:$LINENO: error: Can't find Tcl private headers" >&5
21873 echo "$as_me: error: Can't find Tcl private headers" >&2;}
21874 { (exit 1); exit 1; }; }
21876 if test x"${ac_cv_c_tclh}" != x ; then
21878 if test x"${ac_cv_c_tclh}" = x"installed" ; then
21879 echo "$as_me:$LINENO: result: is installed" >&5
21880 echo "${ECHO_T}is installed" >&6
21883 echo "$as_me:$LINENO: result: found in ${ac_cv_c_tclh}" >&5
21884 echo "${ECHO_T}found in ${ac_cv_c_tclh}" >&6
21885 # this hack is cause the TCLHDIR won't print if there is a "-I" in it.
21886 TCLHDIR="-I${ac_cv_c_tclh}"
21894 # Ok, lets find the tk source trees so we can use the headers
21895 # If the directory (presumably symlink) named "tk" exists, use that one
21896 # in preference to any others. Same logic is used when choosing library
21897 # and again with Tcl. The search order is the best place to look first, then in
21898 # decreasing significance. The loop breaks if the trigger file is found.
21899 # Note the gross little conversion here of srcdir by cd'ing to the found
21900 # directory. This converts the path from a relative to an absolute, so
21901 # recursive cache variables for the path will work right. We check all
21902 # the possible paths in one loop rather than many seperate loops to speed
21904 # the alternative search directory is involked by --with-tkinclude
21907 echo "$as_me:$LINENO: checking for Tk private headers" >&5
21908 echo $ECHO_N "checking for Tk private headers... $ECHO_C" >&6
21910 # Check whether --with-tkinclude or --without-tkinclude was given.
21911 if test "${with_tkinclude+set}" = set; then
21912 withval="$with_tkinclude"
21913 with_tkinclude=${withval}
21915 if test "${ac_cv_c_tkh+set}" = set; then
21916 echo $ECHO_N "(cached) $ECHO_C" >&6
21919 # first check to see if --with-tkinclude was specified
21920 if test x"${with_tkinclude}" != x ; then
21921 if test -f ${with_tkinclude}/tk.h ; then
21922 ac_cv_c_tkh=`(cd ${with_tkinclude}; pwd)`
21923 elif test -f ${with_tkinclude}/generic/tk.h ; then
21924 ac_cv_c_tkh=`(cd ${with_tkinclude}/generic; pwd)`
21926 { { echo "$as_me:$LINENO: error: ${with_tkinclude} directory doesn't contain private headers" >&5
21927 echo "$as_me: error: ${with_tkinclude} directory doesn't contain private headers" >&2;}
21928 { (exit 1); exit 1; }; }
21932 # next check if it came with Tk configuration file
21933 if test x"${ac_cv_c_tkconfig}" = x ; then
21934 if test -f $ac_cv_c_tkconfig/../generic/tk.h ; then
21935 ac_cv_c_tkh=`(cd $ac_cv_c_tkconfig/..; pwd)`
21939 # next check in private source directory
21941 # since ls returns lowest version numbers first, reverse its output
21942 if test x"${ac_cv_c_tkh}" = x ; then
21945 `ls -dr ${srcdir}/../tk[4-9]* 2>/dev/null` \
21946 ${srcdir}/../../tk \
21947 `ls -dr ${srcdir}/../../tk[4-9]* 2>/dev/null` \
21948 ${srcdir}/../../../tk \
21949 `ls -dr ${srcdir}/../../../tk[4-9]* 2>/dev/null ` ; do
21950 if test -f $i/generic/tk.h ; then
21951 ac_cv_c_tkh=`(cd $i/generic; pwd)`
21956 # finally check in a few common install locations
21958 # since ls returns lowest version numbers first, reverse its output
21959 if test x"${ac_cv_c_tkh}" = x ; then
21961 `ls -dr /usr/local/src/tk[4-9]* 2>/dev/null` \
21962 `ls -dr /usr/local/lib/tk[4-9]* 2>/dev/null` \
21963 /usr/local/src/tk \
21964 /usr/local/lib/tk \
21965 ${prefix}/include ; do
21966 if test -f $i/generic/tk.h ; then
21967 ac_cv_c_tkh=`(cd $i/generic; pwd)`
21972 # see if one is installed
21973 if test x"${ac_cv_c_tkh}" = x ; then
21974 if test "${ac_cv_header_tk_h+set}" = set; then
21975 echo "$as_me:$LINENO: checking for tk.h" >&5
21976 echo $ECHO_N "checking for tk.h... $ECHO_C" >&6
21977 if test "${ac_cv_header_tk_h+set}" = set; then
21978 echo $ECHO_N "(cached) $ECHO_C" >&6
21980 echo "$as_me:$LINENO: result: $ac_cv_header_tk_h" >&5
21981 echo "${ECHO_T}$ac_cv_header_tk_h" >&6
21983 # Is the header compilable?
21984 echo "$as_me:$LINENO: checking tk.h usability" >&5
21985 echo $ECHO_N "checking tk.h usability... $ECHO_C" >&6
21986 cat >conftest.$ac_ext <<_ACEOF
21989 cat confdefs.h >>conftest.$ac_ext
21990 cat >>conftest.$ac_ext <<_ACEOF
21991 /* end confdefs.h. */
21992 $ac_includes_default
21995 rm -f conftest.$ac_objext
21996 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
21997 (eval $ac_compile) 2>conftest.er1
21999 grep -v '^ *+' conftest.er1 >conftest.err
22001 cat conftest.err >&5
22002 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22003 (exit $ac_status); } &&
22004 { ac_try='test -z "$ac_c_werror_flag"
22005 || test ! -s conftest.err'
22006 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
22007 (eval $ac_try) 2>&5
22009 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22010 (exit $ac_status); }; } &&
22011 { ac_try='test -s conftest.$ac_objext'
22012 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
22013 (eval $ac_try) 2>&5
22015 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22016 (exit $ac_status); }; }; then
22017 ac_header_compiler=yes
22019 echo "$as_me: failed program was:" >&5
22020 sed 's/^/| /' conftest.$ac_ext >&5
22022 ac_header_compiler=no
22024 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
22025 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
22026 echo "${ECHO_T}$ac_header_compiler" >&6
22028 # Is the header present?
22029 echo "$as_me:$LINENO: checking tk.h presence" >&5
22030 echo $ECHO_N "checking tk.h presence... $ECHO_C" >&6
22031 cat >conftest.$ac_ext <<_ACEOF
22034 cat confdefs.h >>conftest.$ac_ext
22035 cat >>conftest.$ac_ext <<_ACEOF
22036 /* end confdefs.h. */
22039 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
22040 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
22042 grep -v '^ *+' conftest.er1 >conftest.err
22044 cat conftest.err >&5
22045 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22046 (exit $ac_status); } >/dev/null; then
22047 if test -s conftest.err; then
22048 ac_cpp_err=$ac_c_preproc_warn_flag
22049 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
22056 if test -z "$ac_cpp_err"; then
22057 ac_header_preproc=yes
22059 echo "$as_me: failed program was:" >&5
22060 sed 's/^/| /' conftest.$ac_ext >&5
22062 ac_header_preproc=no
22064 rm -f conftest.err conftest.$ac_ext
22065 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
22066 echo "${ECHO_T}$ac_header_preproc" >&6
22068 # So? What about this header?
22069 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
22071 { echo "$as_me:$LINENO: WARNING: tk.h: accepted by the compiler, rejected by the preprocessor!" >&5
22072 echo "$as_me: WARNING: tk.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
22073 { echo "$as_me:$LINENO: WARNING: tk.h: proceeding with the compiler's result" >&5
22074 echo "$as_me: WARNING: tk.h: proceeding with the compiler's result" >&2;}
22075 ac_header_preproc=yes
22078 { echo "$as_me:$LINENO: WARNING: tk.h: present but cannot be compiled" >&5
22079 echo "$as_me: WARNING: tk.h: present but cannot be compiled" >&2;}
22080 { echo "$as_me:$LINENO: WARNING: tk.h: check for missing prerequisite headers?" >&5
22081 echo "$as_me: WARNING: tk.h: check for missing prerequisite headers?" >&2;}
22082 { echo "$as_me:$LINENO: WARNING: tk.h: see the Autoconf documentation" >&5
22083 echo "$as_me: WARNING: tk.h: see the Autoconf documentation" >&2;}
22084 { echo "$as_me:$LINENO: WARNING: tk.h: section \"Present But Cannot Be Compiled\"" >&5
22085 echo "$as_me: WARNING: tk.h: section \"Present But Cannot Be Compiled\"" >&2;}
22086 { echo "$as_me:$LINENO: WARNING: tk.h: proceeding with the preprocessor's result" >&5
22087 echo "$as_me: WARNING: tk.h: proceeding with the preprocessor's result" >&2;}
22088 { echo "$as_me:$LINENO: WARNING: tk.h: in the future, the compiler will take precedence" >&5
22089 echo "$as_me: WARNING: tk.h: in the future, the compiler will take precedence" >&2;}
22092 ## ------------------------------------------ ##
22093 ## Report this to the AC_PACKAGE_NAME lists. ##
22094 ## ------------------------------------------ ##
22097 sed "s/^/$as_me: WARNING: /" >&2
22100 echo "$as_me:$LINENO: checking for tk.h" >&5
22101 echo $ECHO_N "checking for tk.h... $ECHO_C" >&6
22102 if test "${ac_cv_header_tk_h+set}" = set; then
22103 echo $ECHO_N "(cached) $ECHO_C" >&6
22105 ac_cv_header_tk_h=$ac_header_preproc
22107 echo "$as_me:$LINENO: result: $ac_cv_header_tk_h" >&5
22108 echo "${ECHO_T}$ac_cv_header_tk_h" >&6
22111 if test $ac_cv_header_tk_h = yes; then
22112 ac_cv_c_tkh=installed
22122 if test x"${ac_cv_c_tkh}" != x ; then
22124 if test x"${ac_cv_c_tkh}" = x"installed" ; then
22125 echo "$as_me:$LINENO: result: is installed" >&5
22126 echo "${ECHO_T}is installed" >&6
22129 echo "$as_me:$LINENO: result: found in ${ac_cv_c_tkh}" >&5
22130 echo "${ECHO_T}found in ${ac_cv_c_tkh}" >&6
22131 # this hack is cause the TKHDIR won't print if there is a "-I" in it.
22132 TKHDIR="-I${ac_cv_c_tkh}"
22135 TKHDIR="# no Tk directory found"
22136 { echo "$as_me:$LINENO: WARNING: Can't find Tk private headers" >&5
22137 echo "$as_me: WARNING: Can't find Tk private headers" >&2;}
22144 echo "$as_me:$LINENO: checking for Itcl private headers. srcdir=${srcdir}" >&5
22145 echo $ECHO_N "checking for Itcl private headers. srcdir=${srcdir}... $ECHO_C" >&6
22146 if test x"${ac_cv_c_itclh}" = x ; then
22147 for i in ${srcdir}/../itcl ${srcdir}/../../itcl ${srcdir}/../../../itcl ${srcdir}/../itcl/itcl; do
22148 if test -f $i/generic/itcl.h ; then
22149 ac_cv_c_itclh=`(cd $i/generic; pwd)`
22154 if test x"${ac_cv_c_itclh}" = x ; then
22155 ITCLHDIR="# no Itcl private headers found"
22156 { { echo "$as_me:$LINENO: error: Can't find Itcl private headers" >&5
22157 echo "$as_me: error: Can't find Itcl private headers" >&2;}
22158 { (exit 1); exit 1; }; }
22160 if test x"${ac_cv_c_itclh}" != x ; then
22161 ITCLHDIR="-I${ac_cv_c_itclh}"
22163 # should always be here
22164 # ITCLLIB="../itcl/itcl/unix/libitcl.a"
22169 echo "$as_me:$LINENO: checking for Itk private headers. srcdir=${srcdir}" >&5
22170 echo $ECHO_N "checking for Itk private headers. srcdir=${srcdir}... $ECHO_C" >&6
22171 if test x"${ac_cv_c_itkh}" = x ; then
22172 for i in ${srcdir}/../itcl ${srcdir}/../../itcl ${srcdir}/../../../itcl ${srcdir}/../itcl/itk; do
22173 if test -f $i/generic/itk.h ; then
22174 ac_cv_c_itkh=`(cd $i/generic; pwd)`
22179 if test x"${ac_cv_c_itkh}" = x ; then
22180 ITKHDIR="# no Itk private headers found"
22181 { { echo "$as_me:$LINENO: error: Can't find Itk private headers" >&5
22182 echo "$as_me: error: Can't find Itk private headers" >&2;}
22183 { (exit 1); exit 1; }; }
22185 if test x"${ac_cv_c_itkh}" != x ; then
22186 ITKHDIR="-I${ac_cv_c_itkh}"
22188 # should always be here
22189 # ITKLIB="../itcl/itk/unix/libitk.a"
22195 # now look for Tk library stuff
22197 tkdir="../tk/${configdir}/"
22199 TK_DEPS="${tkdir}${TK_LIB_FILE}"
22201 # now look for Itcl library stuff
22205 # Ok, lets find the itcl configuration
22206 # First, look for one uninstalled.
22207 # the alternative search directory is invoked by --with-itclconfig
22210 if test x"${no_itcl}" = x ; then
22211 # we reset no_itcl in case something fails here
22214 # Check whether --with-itclconfig or --without-itclconfig was given.
22215 if test "${with_itclconfig+set}" = set; then
22216 withval="$with_itclconfig"
22217 with_itclconfig=${withval}
22219 echo "$as_me:$LINENO: checking for Itcl configuration" >&5
22220 echo $ECHO_N "checking for Itcl configuration... $ECHO_C" >&6
22221 if test "${ac_cv_c_itclconfig+set}" = set; then
22222 echo $ECHO_N "(cached) $ECHO_C" >&6
22226 # First check to see if --with-itclconfig was specified.
22227 if test x"${with_itclconfig}" != x ; then
22228 if test -f "${with_itclconfig}/itclConfig.sh" ; then
22229 ac_cv_c_itclconfig=`(cd ${with_itclconfig}; pwd)`
22231 { { echo "$as_me:$LINENO: error: ${with_itclconfig} directory doesn't contain itclConfig.sh" >&5
22232 echo "$as_me: error: ${with_itclconfig} directory doesn't contain itclConfig.sh" >&2;}
22233 { (exit 1); exit 1; }; }
22237 # then check for a private Itcl library
22238 if test x"${ac_cv_c_itclconfig}" = x ; then
22241 `ls -dr ../itcl[4-9]*/itcl 2>/dev/null` \
22243 `ls -dr ../../itcl[4-9]*/itcl 2>/dev/null` \
22245 `ls -dr ../../../itcl[4-9]*/itcl 2>/dev/null` ; do
22246 if test -f "$i/itclConfig.sh" ; then
22247 ac_cv_c_itclconfig=`(cd $i; pwd)`
22252 # check in a few common install locations
22253 if test x"${ac_cv_c_itclconfig}" = x ; then
22254 for i in `ls -d ${prefix}/lib /usr/local/lib 2>/dev/null` ; do
22255 if test -f "$i/itclConfig.sh" ; then
22256 ac_cv_c_itclconfig=`(cd $i; pwd)`
22261 # check in a few other private locations
22262 if test x"${ac_cv_c_itclconfig}" = x ; then
22264 ${srcdir}/../itcl/itcl \
22265 `ls -dr ${srcdir}/../itcl[4-9]*/itcl 2>/dev/null` ; do
22266 if test -f "$i/itclConfig.sh" ; then
22267 ac_cv_c_itclconfig=`(cd $i; pwd)`
22275 if test x"${ac_cv_c_itclconfig}" = x ; then
22276 ITCLCONFIG="# no Itcl configs found"
22277 { echo "$as_me:$LINENO: WARNING: Can't find Itcl configuration definitions" >&5
22278 echo "$as_me: WARNING: Can't find Itcl configuration definitions" >&2;}
22281 ITCLCONFIG=${ac_cv_c_itclconfig}/itclConfig.sh
22282 echo "$as_me:$LINENO: result: found $ITCLCONFIG" >&5
22283 echo "${ECHO_T}found $ITCLCONFIG" >&6
22287 if test -z "${no_itcl}"; then
22289 if test -f "$ITCLCONFIG" ; then
22304 ITCLLIB="${ITCL_BUILD_LIB_SPEC}"
22305 ITCL_DEPS="${ITCL_LIB_FULL_PATH}"
22309 # now look for Itk library stuff
22312 # Ok, lets find the itk configuration
22313 # First, look for one uninstalled.
22314 # the alternative search directory is invoked by --with-itkconfig
22317 if test x"${no_itk}" = x ; then
22318 # we reset no_itk in case something fails here
22321 # Check whether --with-itkconfig or --without-itkconfig was given.
22322 if test "${with_itkconfig+set}" = set; then
22323 withval="$with_itkconfig"
22324 with_itkconfig=${withval}
22326 echo "$as_me:$LINENO: checking for Itk configuration" >&5
22327 echo $ECHO_N "checking for Itk configuration... $ECHO_C" >&6
22328 if test "${ac_cv_c_itkconfig+set}" = set; then
22329 echo $ECHO_N "(cached) $ECHO_C" >&6
22333 # First check to see if --with-itkconfig was specified.
22334 if test x"${with_itkconfig}" != x ; then
22335 if test -f "${with_itkconfig}/itkConfig.sh" ; then
22336 ac_cv_c_itkconfig=`(cd ${with_itkconfig}; pwd)`
22338 { { echo "$as_me:$LINENO: error: ${with_itkconfig} directory doesn't contain itkConfig.sh" >&5
22339 echo "$as_me: error: ${with_itkconfig} directory doesn't contain itkConfig.sh" >&2;}
22340 { (exit 1); exit 1; }; }
22344 # then check for a private Itk library
22345 if test x"${ac_cv_c_itkconfig}" = x ; then
22348 `ls -dr ../itcl[4-9]*/itk 2>/dev/null` \
22350 `ls -dr ../../itcl[4-9]*/itk 2>/dev/null` \
22352 `ls -dr ../../../itcl[4-9]*/itk 2>/dev/null` ; do
22353 if test -f "$i/itkConfig.sh" ; then
22354 ac_cv_c_itkconfig=`(cd $i; pwd)`
22359 # check in a few common install locations
22360 if test x"${ac_cv_c_itkconfig}" = x ; then
22361 for i in `ls -d ${prefix}/lib /usr/local/lib 2>/dev/null` ; do
22362 if test -f "$i/itkConfig.sh" ; then
22363 ac_cv_c_itkconfig=`(cd $i; pwd)`
22368 # check in a few other private locations
22369 if test x"${ac_cv_c_itkconfig}" = x ; then
22371 ${srcdir}/../itcl/itk \
22372 `ls -dr ${srcdir}/../itcl[4-9]*/itk 2>/dev/null` ; do
22373 if test -f "$i/itkConfig.sh" ; then
22374 ac_cv_c_itkconfig=`(cd $i; pwd)`
22382 if test x"${ac_cv_c_itkconfig}" = x ; then
22383 ITKCONFIG="# no Itk configs found"
22384 { echo "$as_me:$LINENO: WARNING: Can't find Itk configuration definitions" >&5
22385 echo "$as_me: WARNING: Can't find Itk configuration definitions" >&2;}
22388 ITKCONFIG=${ac_cv_c_itkconfig}/itkConfig.sh
22389 echo "$as_me:$LINENO: result: found $ITKCONFIG" >&5
22390 echo "${ECHO_T}found $ITKCONFIG" >&6
22395 if test -z "${no_itcl}"; then
22397 if test -f "$ITKCONFIG" ; then
22412 ITKLIB="${ITK_BUILD_LIB_SPEC}"
22413 ITK_DEPS="${ITK_LIB_FULL_PATH}"
22416 ENABLE_CFLAGS="${ENABLE_CFLAGS} \$(SUBDIR_GDBTK_CFLAGS)"
22418 # Include some libraries that Tcl and Tk want.
22419 TCL_LIBS='$(LIBGUI) $(ITCL) $(ITK) $(TK) $(TCL) $(X11_LDFLAGS) $(X11_LIBS)'
22420 # Yes, the ordering seems wrong here. But it isn't.
22421 # TK_LIBS is the list of libraries that need to be linked
22422 # after Tcl/Tk. Note that this isn't put into LIBS. If it
22423 # were in LIBS then any link tests after this point would
22424 # try to include things like `$(LIBGUI)', which wouldn't work.
22425 GDBTKLIBS="${TCL_LIBS} ${TK_LIBS}"
22427 CONFIG_OBS="${CONFIG_OBS} \$(SUBDIR_GDBTK_OBS)"
22428 CONFIG_DEPS="${CONFIG_DEPS} \$(SUBDIR_GDBTK_DEPS)"
22429 CONFIG_SRCS="${CONFIG_SRCS} \$(SUBDIR_GDBTK_SRCS)"
22430 CONFIG_ALL="${CONFIG_ALL} all-gdbtk"
22431 CONFIG_CLEAN="${CONFIG_CLEAN} clean-gdbtk"
22432 CONFIG_INSTALL="${CONFIG_INSTALL} install-gdbtk"
22433 CONFIG_UNINSTALL="${CONFIG_UNINSTALL} uninstall-gdbtk"
22435 if test x$gdb_cv_os_cygwin = xyes; then
22436 WIN32LIBS="${WIN32LIBS} -lshell32 -lgdi32 -lcomdlg32 -ladvapi32"
22437 WIN32LDAPP="-Wl,--subsystem,console"
22438 CONFIG_OBS="${CONFIG_OBS} gdbres.o"
22445 subdirs="$subdirs gdbtk"
22462 echo "$as_me:$LINENO: checking for X" >&5
22463 echo $ECHO_N "checking for X... $ECHO_C" >&6
22466 # Check whether --with-x or --without-x was given.
22467 if test "${with_x+set}" = set; then
22471 # $have_x is `yes', `no', `disabled', or empty when we do not yet know.
22472 if test "x$with_x" = xno; then
22473 # The user explicitly disabled X.
22476 if test "x$x_includes" != xNONE && test "x$x_libraries" != xNONE; then
22477 # Both variables are already set.
22480 if test "${ac_cv_have_x+set}" = set; then
22481 echo $ECHO_N "(cached) $ECHO_C" >&6
22483 # One or both of the vars are not set, and there is no cached value.
22484 ac_x_includes=no ac_x_libraries=no
22485 rm -fr conftest.dir
22486 if mkdir conftest.dir; then
22488 # Make sure to not put "make" in the Imakefile rules, since we grep it out.
22489 cat >Imakefile <<'_ACEOF'
22491 @echo 'ac_im_incroot="${INCROOT}"; ac_im_usrlibdir="${USRLIBDIR}"; ac_im_libdir="${LIBDIR}"'
22493 if (xmkmf) >/dev/null 2>/dev/null && test -f Makefile; then
22494 # GNU make sometimes prints "make[1]: Entering...", which would confuse us.
22495 eval `${MAKE-make} acfindx 2>/dev/null | grep -v make`
22496 # Open Windows xmkmf reportedly sets LIBDIR instead of USRLIBDIR.
22497 for ac_extension in a so sl; do
22498 if test ! -f $ac_im_usrlibdir/libX11.$ac_extension &&
22499 test -f $ac_im_libdir/libX11.$ac_extension; then
22500 ac_im_usrlibdir=$ac_im_libdir; break
22503 # Screen out bogus values from the imake configuration. They are
22504 # bogus both because they are the default anyway, and because
22505 # using them would break gcc on systems where it needs fixed includes.
22506 case $ac_im_incroot in
22508 *) test -f "$ac_im_incroot/X11/Xos.h" && ac_x_includes=$ac_im_incroot;;
22510 case $ac_im_usrlibdir in
22511 /usr/lib | /lib) ;;
22512 *) test -d "$ac_im_usrlibdir" && ac_x_libraries=$ac_im_usrlibdir ;;
22516 rm -fr conftest.dir
22519 # Standard set of common directories for X headers.
22520 # Check X11 before X11Rn because it is often a symlink to the current release.
22532 /usr/local/X11/include
22533 /usr/local/X11R6/include
22534 /usr/local/X11R5/include
22535 /usr/local/X11R4/include
22537 /usr/local/include/X11
22538 /usr/local/include/X11R6
22539 /usr/local/include/X11R5
22540 /usr/local/include/X11R4
22544 /usr/XFree86/include/X11
22548 /usr/unsupported/include
22549 /usr/athena/include
22550 /usr/local/x11r5/include
22551 /usr/lpp/Xamples/include
22553 /usr/openwin/include
22554 /usr/openwin/share/include'
22556 if test "$ac_x_includes" = no; then
22557 # Guess where to find include files, by looking for Intrinsic.h.
22558 # First, try using that file with no special directory specified.
22559 cat >conftest.$ac_ext <<_ACEOF
22562 cat confdefs.h >>conftest.$ac_ext
22563 cat >>conftest.$ac_ext <<_ACEOF
22564 /* end confdefs.h. */
22565 #include <X11/Intrinsic.h>
22567 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
22568 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
22570 grep -v '^ *+' conftest.er1 >conftest.err
22572 cat conftest.err >&5
22573 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22574 (exit $ac_status); } >/dev/null; then
22575 if test -s conftest.err; then
22576 ac_cpp_err=$ac_c_preproc_warn_flag
22577 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
22584 if test -z "$ac_cpp_err"; then
22585 # We can compile using X headers with no special include directory.
22588 echo "$as_me: failed program was:" >&5
22589 sed 's/^/| /' conftest.$ac_ext >&5
22591 for ac_dir in $ac_x_header_dirs; do
22592 if test -r "$ac_dir/X11/Intrinsic.h"; then
22593 ac_x_includes=$ac_dir
22598 rm -f conftest.err conftest.$ac_ext
22599 fi # $ac_x_includes = no
22601 if test "$ac_x_libraries" = no; then
22602 # Check for the libraries.
22603 # See if we find them without any special options.
22604 # Don't add to $LIBS permanently.
22607 cat >conftest.$ac_ext <<_ACEOF
22610 cat confdefs.h >>conftest.$ac_ext
22611 cat >>conftest.$ac_ext <<_ACEOF
22612 /* end confdefs.h. */
22613 #include <X11/Intrinsic.h>
22622 rm -f conftest.$ac_objext conftest$ac_exeext
22623 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
22624 (eval $ac_link) 2>conftest.er1
22626 grep -v '^ *+' conftest.er1 >conftest.err
22628 cat conftest.err >&5
22629 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22630 (exit $ac_status); } &&
22631 { ac_try='test -z "$ac_c_werror_flag"
22632 || test ! -s conftest.err'
22633 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
22634 (eval $ac_try) 2>&5
22636 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22637 (exit $ac_status); }; } &&
22638 { ac_try='test -s conftest$ac_exeext'
22639 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
22640 (eval $ac_try) 2>&5
22642 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22643 (exit $ac_status); }; }; then
22645 # We can link X programs with no special library path.
22648 echo "$as_me: failed program was:" >&5
22649 sed 's/^/| /' conftest.$ac_ext >&5
22652 for ac_dir in `echo "$ac_x_includes $ac_x_header_dirs" | sed s/include/lib/g`
22654 # Don't even attempt the hair of trying to link an X program!
22655 for ac_extension in a so sl; do
22656 if test -r $ac_dir/libXt.$ac_extension; then
22657 ac_x_libraries=$ac_dir
22663 rm -f conftest.err conftest.$ac_objext \
22664 conftest$ac_exeext conftest.$ac_ext
22665 fi # $ac_x_libraries = no
22667 if test "$ac_x_includes" = no || test "$ac_x_libraries" = no; then
22668 # Didn't find X anywhere. Cache the known absence of X.
22669 ac_cv_have_x="have_x=no"
22671 # Record where we found X for the cache.
22672 ac_cv_have_x="have_x=yes \
22673 ac_x_includes=$ac_x_includes ac_x_libraries=$ac_x_libraries"
22678 eval "$ac_cv_have_x"
22681 if test "$have_x" != yes; then
22682 echo "$as_me:$LINENO: result: $have_x" >&5
22683 echo "${ECHO_T}$have_x" >&6
22686 # If each of the values was on the command line, it overrides each guess.
22687 test "x$x_includes" = xNONE && x_includes=$ac_x_includes
22688 test "x$x_libraries" = xNONE && x_libraries=$ac_x_libraries
22689 # Update the cache value to reflect the command line values.
22690 ac_cv_have_x="have_x=yes \
22691 ac_x_includes=$x_includes ac_x_libraries=$x_libraries"
22692 echo "$as_me:$LINENO: result: libraries $x_libraries, headers $x_includes" >&5
22693 echo "${ECHO_T}libraries $x_libraries, headers $x_includes" >&6
22697 # Check whether we should enable the TUI, but only do so if we really
22699 if test x"$enable_tui" = xyes; then
22700 if test -d $srcdir/tui; then
22701 if test "$ac_cv_search_waddstr" != no; then
22702 CONFIG_OBS="$CONFIG_OBS \$(SUBDIR_TUI_OBS)"
22703 CONFIG_DEPS="$CONFIG_DEPS \$(SUBDIR_TUI_DEPS)"
22704 CONFIG_SRCS="$CONFIG_SRCS \$(SUBDIR_TUI_SRCS)"
22705 CONFIG_INITS="$CONFIG_INITS \$(SUBDIR_TUI_INITS)"
22706 ENABLE_CFLAGS="$ENABLE_CFLAGS \$(SUBDIR_TUI_CFLAGS)"
22707 CONFIG_ALL="${CONFIG_ALL} all-tui"
22708 CONFIG_CLEAN="${CONFIG_CLEAN} clean-tui"
22709 CONFIG_INSTALL="${CONFIG_INSTALL} install-tui"
22710 CONFIG_UNINSTALL="${CONFIG_UNINSTALL} uninstall-tui"
22712 { echo "$as_me:$LINENO: WARNING: no enhanced curses library found; disabling TUI" >&5
22713 echo "$as_me: WARNING: no enhanced curses library found; disabling TUI" >&2;}
22718 # Unlike the sim directory, whether a simulator is linked is controlled by
22719 # presence of a SIM= and a SIM_OBS= definition in the target '.mt' file.
22720 # This code just checks for a few cases where we'd like to ignore those
22721 # definitions, even when they're present in the '.mt' file. These cases
22722 # are when --disable-sim is specified, or if the simulator directory is
22723 # not part of the source tree.
22725 # Check whether --enable-sim or --disable-sim was given.
22726 if test "${enable_sim+set}" = set; then
22727 enableval="$enable_sim"
22728 echo "enable_sim = $enable_sim";
22729 echo "enableval = ${enableval}";
22730 case "${enableval}" in
22731 yes) ignore_sim=false ;;
22732 no) ignore_sim=true ;;
22733 *) ignore_sim=false ;;
22739 if test ! -d "${srcdir}/../sim"; then
22743 if test "${ignore_sim}" = "true"; then
22745 IGNORE_SIM_OBS="SIM_OBS="
22750 cat >>confdefs.h <<\_ACEOF
22769 # List of host floatformats.
22771 cat >>confdefs.h <<_ACEOF
22772 #define GDB_HOST_FLOAT_FORMAT $gdb_host_float_format
22776 cat >>confdefs.h <<_ACEOF
22777 #define GDB_HOST_DOUBLE_FORMAT $gdb_host_double_format
22781 cat >>confdefs.h <<_ACEOF
22782 #define GDB_HOST_LONG_DOUBLE_FORMAT $gdb_host_long_double_format
22786 # target_subdir is used by the testsuite to find the target libraries.
22788 if test "${host}" != "${target}"; then
22789 target_subdir="${target_alias}/"
22794 if test "${gdb_native}" = "yes"; then
22795 host_makefile_frag=${srcdir}/config/${gdb_host_cpu}/${gdb_host}.mh
22796 if test ! -f ${host_makefile_frag}; then
22797 { { echo "$as_me:$LINENO: error: \"*** Gdb does not support native target ${host}\"" >&5
22798 echo "$as_me: error: \"*** Gdb does not support native target ${host}\"" >&2;}
22799 { (exit 1); exit 1; }; }
22801 frags="$frags $host_makefile_frag"
22803 host_makefile_frag=/dev/null
22806 target_makefile_frag=${srcdir}/config/${gdb_target_cpu}/${gdb_target}.mt
22807 if test ! -f ${target_makefile_frag}; then
22808 { { echo "$as_me:$LINENO: error: \"*** Gdb does not support target ${target}\"" >&5
22809 echo "$as_me: error: \"*** Gdb does not support target ${target}\"" >&2;}
22810 { (exit 1); exit 1; }; }
22812 frags="$frags $target_makefile_frag"
22819 s/XM_FILE[ ]*=[ ]*\([^ ]*\)/\1/p
22820 ' ${host_makefile_frag}`
22822 targetfile=`sed -n '
22823 s/^[ ]*DEPRECATED_TM_FILE[ ]*=[ ]*\([^ ]*\)/\1/p
22824 ' ${target_makefile_frag}`
22826 if test "${gdb_native}" = "yes"; then
22827 # We pick this up from the host configuration file (.mh) because we
22828 # do not have a native configuration Makefile fragment.
22829 nativefile=`sed -n '
22830 s/NAT_FILE[ ]*=[ ]*\([^ ]*\)/\1/p
22831 ' ${host_makefile_frag}`
22835 if test x"${gdb_osabi}" != x ; then
22837 cat >>confdefs.h <<_ACEOF
22838 #define GDB_OSABI_DEFAULT $gdb_osabi
22843 # Enable multi-ice-gdb-server.
22844 # Check whether --enable-multi-ice or --disable-multi-ice was given.
22845 if test "${enable_multi_ice+set}" = set; then
22846 enableval="$enable_multi_ice"
22850 *) { { echo "$as_me:$LINENO: error: bad value $enableval for --enable-multi-ice" >&5
22851 echo "$as_me: error: bad value $enableval for --enable-multi-ice" >&2;}
22852 { (exit 1); exit 1; }; } ;;
22855 if test "x$enable_multi_ice" = xyes; then
22858 subdirs="$subdirs multi-ice"
22862 # We only build gdbserver automatically in a native configuration.
22863 if test "$gdb_native" = "yes"; then
22864 echo "$as_me:$LINENO: checking whether gdbserver is supported on this host" >&5
22865 echo $ECHO_N "checking whether gdbserver is supported on this host... $ECHO_C" >&6
22866 if test "x$build_gdbserver" = xyes; then
22867 echo "$as_me:$LINENO: result: yes" >&5
22868 echo "${ECHO_T}yes" >&6
22871 subdirs="$subdirs gdbserver"
22874 echo "$as_me:$LINENO: result: no" >&5
22875 echo "${ECHO_T}no" >&6
22879 # If hostfile (XM_FILE) and/or targetfile (DEPRECATED_TM_FILE) and/or
22880 # nativefile (NAT_FILE) is not set in config/*/*.m[ht] files, we link
22881 # to an empty version.
22888 if test "${hostfile}" != ""; then
22890 case "${hostfile}" in
22891 xm-*.h ) GDB_XM_FILE="config/${gdb_host_cpu}/${hostfile}" ;;
22892 * ) GDB_XM_FILE="${hostfile}"
22894 files="${files} ${GDB_XM_FILE}"
22895 links="${links} xm.h"
22897 cat >>confdefs.h <<_ACEOF
22898 #define GDB_XM_FILE "${GDB_XM_FILE}"
22906 if test "${targetfile}" != ""; then
22908 case "${targetfile}" in
22909 tm-*.h ) GDB_TM_FILE="config/${gdb_target_cpu}/${targetfile}" ;;
22910 * ) GDB_TM_FILE="${targetfile}"
22912 files="${files} ${GDB_TM_FILE}"
22913 links="${links} tm.h"
22915 cat >>confdefs.h <<_ACEOF
22916 #define GDB_TM_FILE "${GDB_TM_FILE}"
22924 if test "${nativefile}" != ""; then
22926 case "${nativefile}" in
22927 nm-*.h ) GDB_NM_FILE="config/${gdb_host_cpu}/${nativefile}" ;;
22928 * ) GDB_NM_FILE="${nativefile}"
22930 files="${files} ${GDB_NM_FILE}"
22931 links="${links} nm.h"
22933 cat >>confdefs.h <<_ACEOF
22934 #define GDB_NM_FILE "${GDB_NM_FILE}"
22940 ac_sources="$files"
22942 while test -n "$ac_sources"; do
22943 set $ac_dests; ac_dest=$1; shift; ac_dests=$*
22944 set $ac_sources; ac_source=$1; shift; ac_sources=$*
22945 ac_config_links_1="$ac_config_links_1 $ac_dest:$ac_source"
22947 ac_config_links="$ac_config_links $ac_config_links_1"
22954 cat >>confdefs.h <<\_ACEOF
22955 #define GDB_DEFAULT_HOST_CHARSET "ISO-8859-1"
22962 # Check whether --with-libiconv-prefix or --without-libiconv-prefix was given.
22963 if test "${with_libiconv_prefix+set}" = set; then
22964 withval="$with_libiconv_prefix"
22966 for dir in `echo "$withval" | tr : ' '`; do
22967 if test -d $dir/include; then CPPFLAGS="$CPPFLAGS -I$dir/include"; fi
22968 if test -d $dir/lib; then LDFLAGS="$LDFLAGS -L$dir/lib"; fi
22973 echo "$as_me:$LINENO: checking for iconv" >&5
22974 echo $ECHO_N "checking for iconv... $ECHO_C" >&6
22975 if test "${am_cv_func_iconv+set}" = set; then
22976 echo $ECHO_N "(cached) $ECHO_C" >&6
22979 am_cv_func_iconv="no, consider installing GNU libiconv"
22981 cat >conftest.$ac_ext <<_ACEOF
22984 cat confdefs.h >>conftest.$ac_ext
22985 cat >>conftest.$ac_ext <<_ACEOF
22986 /* end confdefs.h. */
22987 #include <stdlib.h>
22992 iconv_t cd = iconv_open("","");
22993 iconv(cd,NULL,NULL,NULL,NULL);
22999 rm -f conftest.$ac_objext conftest$ac_exeext
23000 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
23001 (eval $ac_link) 2>conftest.er1
23003 grep -v '^ *+' conftest.er1 >conftest.err
23005 cat conftest.err >&5
23006 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23007 (exit $ac_status); } &&
23008 { ac_try='test -z "$ac_c_werror_flag"
23009 || test ! -s conftest.err'
23010 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
23011 (eval $ac_try) 2>&5
23013 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23014 (exit $ac_status); }; } &&
23015 { ac_try='test -s conftest$ac_exeext'
23016 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
23017 (eval $ac_try) 2>&5
23019 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23020 (exit $ac_status); }; }; then
23021 am_cv_func_iconv=yes
23023 echo "$as_me: failed program was:" >&5
23024 sed 's/^/| /' conftest.$ac_ext >&5
23027 rm -f conftest.err conftest.$ac_objext \
23028 conftest$ac_exeext conftest.$ac_ext
23029 if test "$am_cv_func_iconv" != yes; then
23030 am_save_LIBS="$LIBS"
23031 LIBS="$LIBS -liconv"
23032 cat >conftest.$ac_ext <<_ACEOF
23035 cat confdefs.h >>conftest.$ac_ext
23036 cat >>conftest.$ac_ext <<_ACEOF
23037 /* end confdefs.h. */
23038 #include <stdlib.h>
23043 iconv_t cd = iconv_open("","");
23044 iconv(cd,NULL,NULL,NULL,NULL);
23050 rm -f conftest.$ac_objext conftest$ac_exeext
23051 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
23052 (eval $ac_link) 2>conftest.er1
23054 grep -v '^ *+' conftest.er1 >conftest.err
23056 cat conftest.err >&5
23057 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23058 (exit $ac_status); } &&
23059 { ac_try='test -z "$ac_c_werror_flag"
23060 || test ! -s conftest.err'
23061 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
23062 (eval $ac_try) 2>&5
23064 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23065 (exit $ac_status); }; } &&
23066 { ac_try='test -s conftest$ac_exeext'
23067 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
23068 (eval $ac_try) 2>&5
23070 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23071 (exit $ac_status); }; }; then
23072 am_cv_lib_iconv=yes
23073 am_cv_func_iconv=yes
23075 echo "$as_me: failed program was:" >&5
23076 sed 's/^/| /' conftest.$ac_ext >&5
23079 rm -f conftest.err conftest.$ac_objext \
23080 conftest$ac_exeext conftest.$ac_ext
23081 LIBS="$am_save_LIBS"
23085 echo "$as_me:$LINENO: result: $am_cv_func_iconv" >&5
23086 echo "${ECHO_T}$am_cv_func_iconv" >&6
23087 if test "$am_cv_func_iconv" = yes; then
23089 cat >>confdefs.h <<\_ACEOF
23090 #define HAVE_ICONV 1
23093 echo "$as_me:$LINENO: checking for iconv declaration" >&5
23094 echo $ECHO_N "checking for iconv declaration... $ECHO_C" >&6
23095 if test "${am_cv_proto_iconv+set}" = set; then
23096 echo $ECHO_N "(cached) $ECHO_C" >&6
23099 cat >conftest.$ac_ext <<_ACEOF
23102 cat confdefs.h >>conftest.$ac_ext
23103 cat >>conftest.$ac_ext <<_ACEOF
23104 /* end confdefs.h. */
23106 #include <stdlib.h>
23112 #if defined(__STDC__) || defined(__cplusplus)
23113 size_t iconv (iconv_t cd, char * *inbuf, size_t *inbytesleft, char * *outbuf, size_t *outbytesleft);
23126 rm -f conftest.$ac_objext
23127 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
23128 (eval $ac_compile) 2>conftest.er1
23130 grep -v '^ *+' conftest.er1 >conftest.err
23132 cat conftest.err >&5
23133 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23134 (exit $ac_status); } &&
23135 { ac_try='test -z "$ac_c_werror_flag"
23136 || test ! -s conftest.err'
23137 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
23138 (eval $ac_try) 2>&5
23140 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23141 (exit $ac_status); }; } &&
23142 { ac_try='test -s conftest.$ac_objext'
23143 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
23144 (eval $ac_try) 2>&5
23146 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23147 (exit $ac_status); }; }; then
23148 am_cv_proto_iconv_arg1=""
23150 echo "$as_me: failed program was:" >&5
23151 sed 's/^/| /' conftest.$ac_ext >&5
23153 am_cv_proto_iconv_arg1="const"
23155 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
23156 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);"
23159 am_cv_proto_iconv=`echo "$am_cv_proto_iconv" | tr -s ' ' | sed -e 's/( /(/'`
23160 echo "$as_me:$LINENO: result: ${ac_t:-
23161 }$am_cv_proto_iconv" >&5
23162 echo "${ECHO_T}${ac_t:-
23163 }$am_cv_proto_iconv" >&6
23165 cat >>confdefs.h <<_ACEOF
23166 #define ICONV_CONST $am_cv_proto_iconv_arg1
23171 if test "$am_cv_lib_iconv" = yes; then
23177 ac_config_files="$ac_config_files Makefile .gdbinit:gdbinit.in"
23178 ac_config_commands="$ac_config_commands default"
23179 cat >confcache <<\_ACEOF
23180 # This file is a shell script that caches the results of configure
23181 # tests run on this system so they can be shared between configure
23182 # scripts and configure runs, see configure's option --config-cache.
23183 # It is not useful on other systems. If it contains results you don't
23184 # want to keep, you may remove or edit it.
23186 # config.status only pays attention to the cache file if you give it
23187 # the --recheck option to rerun configure.
23189 # `ac_cv_env_foo' variables (set or unset) will be overridden when
23190 # loading this file, other *unset* `ac_cv_foo' will be assigned the
23191 # following values.
23195 # The following way of writing the cache mishandles newlines in values,
23196 # but we know of no workaround that is simple, portable, and efficient.
23197 # So, don't put newlines in cache variables' values.
23198 # Ultrix sh set writes to stderr and can't be redirected directly,
23199 # and sets the high bit in the cache file unless we assign to the vars.
23202 case `(ac_space=' '; set | grep ac_space) 2>&1` in
23204 # `set' does not quote correctly, so add quotes (double-quote
23205 # substitution turns \\\\ into \\, and sed turns \\ into \).
23208 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p"
23211 # `set' quotes correctly as required by POSIX, so do not add quotes.
23213 "s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1=\\2/p"
23220 s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/
23222 /^ac_cv_env/!s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/
23224 if diff $cache_file confcache >/dev/null 2>&1; then :; else
23225 if test -w $cache_file; then
23226 test "x$cache_file" != "x/dev/null" && echo "updating cache $cache_file"
23227 cat confcache >$cache_file
23229 echo "not updating unwritable cache $cache_file"
23234 test "x$prefix" = xNONE && prefix=$ac_default_prefix
23235 # Let make expand exec_prefix.
23236 test "x$exec_prefix" = xNONE && exec_prefix='${prefix}'
23238 # VPATH may cause trouble with some makes, so we remove $(srcdir),
23239 # ${srcdir} and @srcdir@ from VPATH if srcdir is ".", strip leading and
23240 # trailing colons and then remove the whole line if VPATH becomes empty
23241 # (actually we leave an empty line to preserve line numbers).
23242 if test "x$srcdir" = x.; then
23243 ac_vpsub='/^[ ]*VPATH[ ]*=/{
23244 s/:*\$(srcdir):*/:/;
23245 s/:*\${srcdir}:*/:/;
23247 s/^\([^=]*=[ ]*\):*/\1/;
23253 DEFS=-DHAVE_CONFIG_H
23257 for ac_i in : $LIBOBJS; do test "x$ac_i" = x: && continue
23258 # 1. Remove the extension, and $U if already installed.
23259 ac_i=`echo "$ac_i" |
23260 sed 's/\$U\././;s/\.o$//;s/\.obj$//'`
23262 ac_libobjs="$ac_libobjs $ac_i\$U.$ac_objext"
23263 ac_ltlibobjs="$ac_ltlibobjs $ac_i"'$U.lo'
23265 LIBOBJS=$ac_libobjs
23267 LTLIBOBJS=$ac_ltlibobjs
23270 if test -z "${MAINTAINER_MODE_TRUE}" && test -z "${MAINTAINER_MODE_FALSE}"; then
23271 { { echo "$as_me:$LINENO: error: conditional \"MAINTAINER_MODE\" was never defined.
23272 Usually this means the macro was only invoked conditionally." >&5
23273 echo "$as_me: error: conditional \"MAINTAINER_MODE\" was never defined.
23274 Usually this means the macro was only invoked conditionally." >&2;}
23275 { (exit 1); exit 1; }; }
23278 : ${CONFIG_STATUS=./config.status}
23279 ac_clean_files_save=$ac_clean_files
23280 ac_clean_files="$ac_clean_files $CONFIG_STATUS"
23281 { echo "$as_me:$LINENO: creating $CONFIG_STATUS" >&5
23282 echo "$as_me: creating $CONFIG_STATUS" >&6;}
23283 cat >$CONFIG_STATUS <<_ACEOF
23285 # Generated by $as_me.
23286 # Run this file to recreate the current configuration.
23287 # Compiler output produced by configure, useful for debugging
23288 # configure, is in config.log if it exists.
23291 ac_cs_recheck=false
23293 SHELL=\${CONFIG_SHELL-$SHELL}
23296 cat >>$CONFIG_STATUS <<\_ACEOF
23297 ## --------------------- ##
23298 ## M4sh Initialization. ##
23299 ## --------------------- ##
23301 # Be Bourne compatible
23302 if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then
23305 # Zsh 3.x and 4.x performs word splitting on ${1+"$@"}, which
23306 # is contrary to our usage. Disable this feature.
23307 alias -g '${1+"$@"}'='"$@"'
23308 elif test -n "${BASH_VERSION+set}" && (set -o posix) >/dev/null 2>&1; then
23311 DUALCASE=1; export DUALCASE # for MKS sh
23313 # Support unset when possible.
23314 if ( (MAIL=60; unset MAIL) || exit) >/dev/null 2>&1; then
23321 # Work around bugs in pre-3.0 UWIN ksh.
23322 $as_unset ENV MAIL MAILPATH
23329 LANG LANGUAGE LC_ADDRESS LC_ALL LC_COLLATE LC_CTYPE LC_IDENTIFICATION \
23330 LC_MEASUREMENT LC_MESSAGES LC_MONETARY LC_NAME LC_NUMERIC LC_PAPER \
23331 LC_TELEPHONE LC_TIME
23333 if (set +x; test -z "`(eval $as_var=C; export $as_var) 2>&1`"); then
23334 eval $as_var=C; export $as_var
23340 # Required to use basename.
23341 if expr a : '\(a\)' >/dev/null 2>&1; then
23347 if (basename /) >/dev/null 2>&1 && test "X`basename / 2>&1`" = "X/"; then
23348 as_basename=basename
23354 # Name of the executable.
23355 as_me=`$as_basename "$0" ||
23356 $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
23357 X"$0" : 'X\(//\)$' \| \
23358 X"$0" : 'X\(/\)$' \| \
23359 . : '\(.\)' 2>/dev/null ||
23361 sed '/^.*\/\([^/][^/]*\)\/*$/{ s//\1/; q; }
23362 /^X\/\(\/\/\)$/{ s//\1/; q; }
23363 /^X\/\(\/\).*/{ s//\1/; q; }
23367 # PATH needs CR, and LINENO needs CR and PATH.
23368 # Avoid depending upon Character Ranges.
23369 as_cr_letters='abcdefghijklmnopqrstuvwxyz'
23370 as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
23371 as_cr_Letters=$as_cr_letters$as_cr_LETTERS
23372 as_cr_digits='0123456789'
23373 as_cr_alnum=$as_cr_Letters$as_cr_digits
23375 # The user is always right.
23376 if test "${PATH_SEPARATOR+set}" != set; then
23377 echo "#! /bin/sh" >conf$$.sh
23378 echo "exit 0" >>conf$$.sh
23380 if (PATH="/nonexistent;."; conf$$.sh) >/dev/null 2>&1; then
23389 as_lineno_1=$LINENO
23390 as_lineno_2=$LINENO
23391 as_lineno_3=`(expr $as_lineno_1 + 1) 2>/dev/null`
23392 test "x$as_lineno_1" != "x$as_lineno_2" &&
23393 test "x$as_lineno_3" = "x$as_lineno_2" || {
23394 # Find who we are. Look in the path if we contain no path at all
23397 *[\\/]* ) as_myself=$0 ;;
23398 *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
23399 for as_dir in $PATH
23402 test -z "$as_dir" && as_dir=.
23403 test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
23408 # We did not find ourselves, most probably we were run as `sh COMMAND'
23409 # in which case we are not to be found in the path.
23410 if test "x$as_myself" = x; then
23413 if test ! -f "$as_myself"; then
23414 { { echo "$as_me:$LINENO: error: cannot find myself; rerun with an absolute path" >&5
23415 echo "$as_me: error: cannot find myself; rerun with an absolute path" >&2;}
23416 { (exit 1); exit 1; }; }
23418 case $CONFIG_SHELL in
23420 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
23421 for as_dir in /bin$PATH_SEPARATOR/usr/bin$PATH_SEPARATOR$PATH
23424 test -z "$as_dir" && as_dir=.
23425 for as_base in sh bash ksh sh5; do
23428 if ("$as_dir/$as_base" -c '
23429 as_lineno_1=$LINENO
23430 as_lineno_2=$LINENO
23431 as_lineno_3=`(expr $as_lineno_1 + 1) 2>/dev/null`
23432 test "x$as_lineno_1" != "x$as_lineno_2" &&
23433 test "x$as_lineno_3" = "x$as_lineno_2" ') 2>/dev/null; then
23434 $as_unset BASH_ENV || test "${BASH_ENV+set}" != set || { BASH_ENV=; export BASH_ENV; }
23435 $as_unset ENV || test "${ENV+set}" != set || { ENV=; export ENV; }
23436 CONFIG_SHELL=$as_dir/$as_base
23437 export CONFIG_SHELL
23438 exec "$CONFIG_SHELL" "$0" ${1+"$@"}
23446 # Create $as_me.lineno as a copy of $as_myself, but with $LINENO
23447 # uniformly replaced by the line number. The first 'sed' inserts a
23448 # line-number line before each line; the second 'sed' does the real
23449 # work. The second script uses 'N' to pair each line-number line
23450 # with the numbered line, and appends trailing '-' during
23451 # substitution so that $LINENO is not a special case at line end.
23452 # (Raja R Harinath suggested sed '=', and Paul Eggert wrote the
23453 # second 'sed' script. Blame Lee E. McMahon for sed's syntax. :-)
23454 sed '=' <$as_myself |
23459 s,^\(['$as_cr_digits']*\)\(.*\)[$]LINENO\([^'$as_cr_alnum'_]\),\1\2\1\3,
23462 s,^['$as_cr_digits']*\n,,
23463 ' >$as_me.lineno &&
23464 chmod +x $as_me.lineno ||
23465 { { echo "$as_me:$LINENO: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&5
23466 echo "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2;}
23467 { (exit 1); exit 1; }; }
23469 # Don't try to exec as it changes $[0], causing all sort of problems
23470 # (the dirname of $[0] is not the place where we might find the
23471 # original and so on. Autoconf is especially sensible to this).
23473 # Exit status is that of the last command.
23478 case `echo "testing\c"; echo 1,2,3`,`echo -n testing; echo 1,2,3` in
23479 *c*,-n*) ECHO_N= ECHO_C='
23481 *c*,* ) ECHO_N=-n ECHO_C= ECHO_T= ;;
23482 *) ECHO_N= ECHO_C='\c' ECHO_T= ;;
23485 if expr a : '\(a\)' >/dev/null 2>&1; then
23491 rm -f conf$$ conf$$.exe conf$$.file
23493 if ln -s conf$$.file conf$$ 2>/dev/null; then
23494 # We could just check for DJGPP; but this test a) works b) is more generic
23495 # and c) will remain valid once DJGPP supports symlinks (DJGPP 2.04).
23496 if test -f conf$$.exe; then
23497 # Don't use ln at all; we don't have any links
23502 elif ln conf$$.file conf$$ 2>/dev/null; then
23507 rm -f conf$$ conf$$.exe conf$$.file
23509 if mkdir -p . 2>/dev/null; then
23512 test -d ./-p && rmdir ./-p
23516 as_executable_p="test -f"
23518 # Sed expression to map a string onto a valid CPP name.
23519 as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
23521 # Sed expression to map a string onto a valid variable name.
23522 as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
23526 # We need space, tab and new line, in precisely that order.
23536 # Open the log real soon, to keep \$[0] and so on meaningful, and to
23537 # report actual input values of CONFIG_FILES etc. instead of their
23538 # values after options handling. Logging --version etc. is OK.
23542 sed 'h;s/./-/g;s/^.../## /;s/...$/ ##/;p;x;p;x' <<_ASBOX
23543 ## Running $as_me. ##
23548 This file was extended by $as_me, which was
23549 generated by GNU Autoconf 2.59. Invocation command line was
23551 CONFIG_FILES = $CONFIG_FILES
23552 CONFIG_HEADERS = $CONFIG_HEADERS
23553 CONFIG_LINKS = $CONFIG_LINKS
23554 CONFIG_COMMANDS = $CONFIG_COMMANDS
23558 echo "on `(hostname || uname -n) 2>/dev/null | sed 1q`" >&5
23562 # Files that config.status was made for.
23563 if test -n "$ac_config_files"; then
23564 echo "config_files=\"$ac_config_files\"" >>$CONFIG_STATUS
23567 if test -n "$ac_config_headers"; then
23568 echo "config_headers=\"$ac_config_headers\"" >>$CONFIG_STATUS
23571 if test -n "$ac_config_links"; then
23572 echo "config_links=\"$ac_config_links\"" >>$CONFIG_STATUS
23575 if test -n "$ac_config_commands"; then
23576 echo "config_commands=\"$ac_config_commands\"" >>$CONFIG_STATUS
23579 cat >>$CONFIG_STATUS <<\_ACEOF
23582 \`$as_me' instantiates files from templates according to the
23583 current configuration.
23585 Usage: $0 [OPTIONS] [FILE]...
23587 -h, --help print this help, then exit
23588 -V, --version print version number, then exit
23589 -q, --quiet do not print progress messages
23590 -d, --debug don't remove temporary files
23591 --recheck update $as_me by reconfiguring in the same conditions
23592 --file=FILE[:TEMPLATE]
23593 instantiate the configuration file FILE
23594 --header=FILE[:TEMPLATE]
23595 instantiate the configuration header FILE
23597 Configuration files:
23600 Configuration headers:
23603 Configuration links:
23606 Configuration commands:
23609 Report bugs to <bug-autoconf@gnu.org>."
23612 cat >>$CONFIG_STATUS <<_ACEOF
23615 configured by $0, generated by GNU Autoconf 2.59,
23616 with options \\"`echo "$ac_configure_args" | sed 's/[\\""\`\$]/\\\\&/g'`\\"
23618 Copyright (C) 2003 Free Software Foundation, Inc.
23619 This config.status script is free software; the Free Software Foundation
23620 gives unlimited permission to copy, distribute and modify it."
23625 cat >>$CONFIG_STATUS <<\_ACEOF
23626 # If no file are specified by the user, then we need to provide default
23627 # value. By we need to know if files were specified by the user.
23633 ac_option=`expr "x$1" : 'x\([^=]*\)='`
23634 ac_optarg=`expr "x$1" : 'x[^=]*=\(.*\)'`
23642 *) # This is not an option, so the user has probably given explicit
23645 ac_need_defaults=false;;
23649 # Handling of the options.
23651 cat >>$CONFIG_STATUS <<\_ACEOF
23652 -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r)
23654 --version | --vers* | -V )
23655 echo "$ac_cs_version"; exit 0 ;;
23657 # Conflict between --help and --header
23658 { { echo "$as_me:$LINENO: error: ambiguous option: $1
23659 Try \`$0 --help' for more information." >&5
23660 echo "$as_me: error: ambiguous option: $1
23661 Try \`$0 --help' for more information." >&2;}
23662 { (exit 1); exit 1; }; };;
23663 --help | --hel | -h )
23664 echo "$ac_cs_usage"; exit 0 ;;
23665 --debug | --d* | -d )
23667 --file | --fil | --fi | --f )
23669 CONFIG_FILES="$CONFIG_FILES $ac_optarg"
23670 ac_need_defaults=false;;
23671 --header | --heade | --head | --hea )
23673 CONFIG_HEADERS="$CONFIG_HEADERS $ac_optarg"
23674 ac_need_defaults=false;;
23675 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
23676 | -silent | --silent | --silen | --sile | --sil | --si | --s)
23679 # This is an error.
23680 -*) { { echo "$as_me:$LINENO: error: unrecognized option: $1
23681 Try \`$0 --help' for more information." >&5
23682 echo "$as_me: error: unrecognized option: $1
23683 Try \`$0 --help' for more information." >&2;}
23684 { (exit 1); exit 1; }; } ;;
23686 *) ac_config_targets="$ac_config_targets $1" ;;
23692 ac_configure_extra_args=
23694 if $ac_cs_silent; then
23696 ac_configure_extra_args="$ac_configure_extra_args --silent"
23700 cat >>$CONFIG_STATUS <<_ACEOF
23701 if \$ac_cs_recheck; then
23702 echo "running $SHELL $0 " $ac_configure_args \$ac_configure_extra_args " --no-create --no-recursion" >&6
23703 exec $SHELL $0 $ac_configure_args \$ac_configure_extra_args --no-create --no-recursion
23708 cat >>$CONFIG_STATUS <<_ACEOF
23710 # INIT-COMMANDS section.
23716 acx_cv_header_stdint="$acx_cv_header_stdint"
23717 acx_cv_type_int8_t="$acx_cv_type_int8_t"
23718 acx_cv_type_int16_t="$acx_cv_type_int16_t"
23719 acx_cv_type_int32_t="$acx_cv_type_int32_t"
23720 acx_cv_type_int64_t="$acx_cv_type_int64_t"
23721 acx_cv_type_intptr_t="$acx_cv_type_intptr_t"
23722 ac_cv_type_uintmax_t="$ac_cv_type_uintmax_t"
23723 ac_cv_type_uintptr_t="$ac_cv_type_uintptr_t"
23724 ac_cv_type_uint64_t="$ac_cv_type_uint64_t"
23725 ac_cv_type_u_int64_t="$ac_cv_type_u_int64_t"
23726 ac_cv_type_u_int32_t="$ac_cv_type_u_int32_t"
23727 ac_cv_type_int_least32_t="$ac_cv_type_int_least32_t"
23728 ac_cv_type_int_fast32_t="$ac_cv_type_int_fast32_t"
23729 ac_cv_sizeof_void_p="$ac_cv_sizeof_void_p"
23732 gdb_host_cpu=$gdb_host_cpu
23733 gdb_target_cpu=$gdb_target_cpu
23734 nativefile=$nativefile
23741 cat >>$CONFIG_STATUS <<\_ACEOF
23742 for ac_config_target in $ac_config_targets
23744 case "$ac_config_target" in
23745 # Handling of arguments.
23746 "Makefile" ) CONFIG_FILES="$CONFIG_FILES Makefile" ;;
23747 ".gdbinit" ) CONFIG_FILES="$CONFIG_FILES .gdbinit:gdbinit.in" ;;
23748 "$ac_config_links_1" ) CONFIG_LINKS="$CONFIG_LINKS $ac_config_links_1" ;;
23749 "gdb_stdint.h" ) CONFIG_COMMANDS="$CONFIG_COMMANDS gdb_stdint.h" ;;
23750 "default" ) CONFIG_COMMANDS="$CONFIG_COMMANDS default" ;;
23751 "config.h" ) CONFIG_HEADERS="$CONFIG_HEADERS config.h:config.in" ;;
23752 *) { { echo "$as_me:$LINENO: error: invalid argument: $ac_config_target" >&5
23753 echo "$as_me: error: invalid argument: $ac_config_target" >&2;}
23754 { (exit 1); exit 1; }; };;
23758 # If the user did not use the arguments to specify the items to instantiate,
23759 # then the envvar interface is used. Set only those that are not.
23760 # We use the long form for the default assignment because of an extremely
23761 # bizarre bug on SunOS 4.1.3.
23762 if $ac_need_defaults; then
23763 test "${CONFIG_FILES+set}" = set || CONFIG_FILES=$config_files
23764 test "${CONFIG_HEADERS+set}" = set || CONFIG_HEADERS=$config_headers
23765 test "${CONFIG_LINKS+set}" = set || CONFIG_LINKS=$config_links
23766 test "${CONFIG_COMMANDS+set}" = set || CONFIG_COMMANDS=$config_commands
23769 # Have a temporary directory for convenience. Make it in the build tree
23770 # simply because there is no reason to put it here, and in addition,
23771 # creating and moving files from /tmp can sometimes cause problems.
23772 # Create a temporary directory, and hook for its removal unless debugging.
23775 trap 'exit_status=$?; rm -rf $tmp && exit $exit_status' 0
23776 trap '{ (exit 1); exit 1; }' 1 2 13 15
23779 # Create a (secure) tmp directory for tmp files.
23782 tmp=`(umask 077 && mktemp -d -q "./confstatXXXXXX") 2>/dev/null` &&
23783 test -n "$tmp" && test -d "$tmp"
23786 tmp=./confstat$$-$RANDOM
23787 (umask 077 && mkdir $tmp)
23790 echo "$me: cannot create a temporary directory in ." >&2
23791 { (exit 1); exit 1; }
23796 cat >>$CONFIG_STATUS <<_ACEOF
23799 # CONFIG_FILES section.
23802 # No need to generate the scripts if there are no CONFIG_FILES.
23803 # This happens for instance when ./config.status config.h
23804 if test -n "\$CONFIG_FILES"; then
23805 # Protect against being on the right side of a sed subst in config.status.
23806 sed 's/,@/@@/; s/@,/@@/; s/,;t t\$/@;t t/; /@;t t\$/s/[\\\\&,]/\\\\&/g;
23807 s/@@/,@/; s/@@/@,/; s/@;t t\$/,;t t/' >\$tmp/subs.sed <<\\CEOF
23808 s,@SHELL@,$SHELL,;t t
23809 s,@PATH_SEPARATOR@,$PATH_SEPARATOR,;t t
23810 s,@PACKAGE_NAME@,$PACKAGE_NAME,;t t
23811 s,@PACKAGE_TARNAME@,$PACKAGE_TARNAME,;t t
23812 s,@PACKAGE_VERSION@,$PACKAGE_VERSION,;t t
23813 s,@PACKAGE_STRING@,$PACKAGE_STRING,;t t
23814 s,@PACKAGE_BUGREPORT@,$PACKAGE_BUGREPORT,;t t
23815 s,@exec_prefix@,$exec_prefix,;t t
23816 s,@prefix@,$prefix,;t t
23817 s,@program_transform_name@,$program_transform_name,;t t
23818 s,@bindir@,$bindir,;t t
23819 s,@sbindir@,$sbindir,;t t
23820 s,@libexecdir@,$libexecdir,;t t
23821 s,@datadir@,$datadir,;t t
23822 s,@sysconfdir@,$sysconfdir,;t t
23823 s,@sharedstatedir@,$sharedstatedir,;t t
23824 s,@localstatedir@,$localstatedir,;t t
23825 s,@libdir@,$libdir,;t t
23826 s,@includedir@,$includedir,;t t
23827 s,@oldincludedir@,$oldincludedir,;t t
23828 s,@infodir@,$infodir,;t t
23829 s,@mandir@,$mandir,;t t
23830 s,@build_alias@,$build_alias,;t t
23831 s,@host_alias@,$host_alias,;t t
23832 s,@target_alias@,$target_alias,;t t
23833 s,@DEFS@,$DEFS,;t t
23834 s,@ECHO_C@,$ECHO_C,;t t
23835 s,@ECHO_N@,$ECHO_N,;t t
23836 s,@ECHO_T@,$ECHO_T,;t t
23837 s,@LIBS@,$LIBS,;t t
23838 s,@MAINTAINER_MODE_TRUE@,$MAINTAINER_MODE_TRUE,;t t
23839 s,@MAINTAINER_MODE_FALSE@,$MAINTAINER_MODE_FALSE,;t t
23840 s,@MAINT@,$MAINT,;t t
23842 s,@CFLAGS@,$CFLAGS,;t t
23843 s,@LDFLAGS@,$LDFLAGS,;t t
23844 s,@CPPFLAGS@,$CPPFLAGS,;t t
23845 s,@ac_ct_CC@,$ac_ct_CC,;t t
23846 s,@EXEEXT@,$EXEEXT,;t t
23847 s,@OBJEXT@,$OBJEXT,;t t
23849 s,@EGREP@,$EGREP,;t t
23850 s,@build@,$build,;t t
23851 s,@build_cpu@,$build_cpu,;t t
23852 s,@build_vendor@,$build_vendor,;t t
23853 s,@build_os@,$build_os,;t t
23854 s,@host@,$host,;t t
23855 s,@host_cpu@,$host_cpu,;t t
23856 s,@host_vendor@,$host_vendor,;t t
23857 s,@host_os@,$host_os,;t t
23858 s,@target@,$target,;t t
23859 s,@target_cpu@,$target_cpu,;t t
23860 s,@target_vendor@,$target_vendor,;t t
23861 s,@target_os@,$target_os,;t t
23862 s,@USE_NLS@,$USE_NLS,;t t
23863 s,@LIBINTL@,$LIBINTL,;t t
23864 s,@LIBINTL_DEP@,$LIBINTL_DEP,;t t
23865 s,@INCINTL@,$INCINTL,;t t
23866 s,@XGETTEXT@,$XGETTEXT,;t t
23867 s,@GMSGFMT@,$GMSGFMT,;t t
23868 s,@POSUB@,$POSUB,;t t
23869 s,@CATALOGS@,$CATALOGS,;t t
23870 s,@DATADIRNAME@,$DATADIRNAME,;t t
23871 s,@INSTOBJEXT@,$INSTOBJEXT,;t t
23872 s,@GENCAT@,$GENCAT,;t t
23873 s,@CATOBJEXT@,$CATOBJEXT,;t t
23874 s,@localedir@,$localedir,;t t
23875 s,@PACKAGE@,$PACKAGE,;t t
23876 s,@subdirs@,$subdirs,;t t
23878 s,@INSTALL_PROGRAM@,$INSTALL_PROGRAM,;t t
23879 s,@INSTALL_SCRIPT@,$INSTALL_SCRIPT,;t t
23880 s,@INSTALL_DATA@,$INSTALL_DATA,;t t
23881 s,@LN_S@,$LN_S,;t t
23882 s,@RANLIB@,$RANLIB,;t t
23883 s,@ac_ct_RANLIB@,$ac_ct_RANLIB,;t t
23884 s,@YACC@,$YACC,;t t
23886 s,@ac_ct_AR@,$ac_ct_AR,;t t
23887 s,@DLLTOOL@,$DLLTOOL,;t t
23888 s,@ac_ct_DLLTOOL@,$ac_ct_DLLTOOL,;t t
23889 s,@WINDRES@,$WINDRES,;t t
23890 s,@ac_ct_WINDRES@,$ac_ct_WINDRES,;t t
23892 s,@ac_ct_MIG@,$ac_ct_MIG,;t t
23893 s,@HAVE_LIBEXPAT@,$HAVE_LIBEXPAT,;t t
23894 s,@LIBEXPAT@,$LIBEXPAT,;t t
23895 s,@LTLIBEXPAT@,$LTLIBEXPAT,;t t
23896 s,@ALLOCA@,$ALLOCA,;t t
23897 s,@CONFIG_LDFLAGS@,$CONFIG_LDFLAGS,;t t
23898 s,@TARGET_SYSTEM_ROOT@,$TARGET_SYSTEM_ROOT,;t t
23899 s,@TARGET_SYSTEM_ROOT_DEFINE@,$TARGET_SYSTEM_ROOT_DEFINE,;t t
23900 s,@WARN_CFLAGS@,$WARN_CFLAGS,;t t
23901 s,@WERROR_CFLAGS@,$WERROR_CFLAGS,;t t
23902 s,@SER_HARDWIRE@,$SER_HARDWIRE,;t t
23903 s,@WIN32LIBS@,$WIN32LIBS,;t t
23904 s,@LIBGUI@,$LIBGUI,;t t
23905 s,@GUI_CFLAGS_X@,$GUI_CFLAGS_X,;t t
23906 s,@WIN32LDAPP@,$WIN32LDAPP,;t t
23907 s,@TCL_VERSION@,$TCL_VERSION,;t t
23908 s,@TCL_MAJOR_VERSION@,$TCL_MAJOR_VERSION,;t t
23909 s,@TCL_MINOR_VERSION@,$TCL_MINOR_VERSION,;t t
23910 s,@TCL_CC@,$TCL_CC,;t t
23911 s,@TCL_DEFS@,$TCL_DEFS,;t t
23912 s,@TCL_SHLIB_CFLAGS@,$TCL_SHLIB_CFLAGS,;t t
23913 s,@TCL_SHLIB_LD@,$TCL_SHLIB_LD,;t t
23914 s,@TCL_SHLIB_LD_LIBS@,$TCL_SHLIB_LD_LIBS,;t t
23915 s,@TCL_SHLIB_SUFFIX@,$TCL_SHLIB_SUFFIX,;t t
23916 s,@TCL_DL_LIBS@,$TCL_DL_LIBS,;t t
23917 s,@TCL_LD_FLAGS@,$TCL_LD_FLAGS,;t t
23918 s,@TCL_LD_SEARCH_FLAGS@,$TCL_LD_SEARCH_FLAGS,;t t
23919 s,@TCL_CC_SEARCH_FLAGS@,$TCL_CC_SEARCH_FLAGS,;t t
23920 s,@TCL_COMPAT_OBJS@,$TCL_COMPAT_OBJS,;t t
23921 s,@TCL_RANLIB@,$TCL_RANLIB,;t t
23922 s,@TCL_BUILD_LIB_SPEC@,$TCL_BUILD_LIB_SPEC,;t t
23923 s,@TCL_LIB_SPEC@,$TCL_LIB_SPEC,;t t
23924 s,@TCL_LIB_VERSIONS_OK@,$TCL_LIB_VERSIONS_OK,;t t
23925 s,@TK_VERSION@,$TK_VERSION,;t t
23926 s,@TK_DEFS@,$TK_DEFS,;t t
23927 s,@TK_BUILD_INCLUDES@,$TK_BUILD_INCLUDES,;t t
23928 s,@TK_XINCLUDES@,$TK_XINCLUDES,;t t
23929 s,@TK_XLIBSW@,$TK_XLIBSW,;t t
23930 s,@TK_BUILD_LIB_SPEC@,$TK_BUILD_LIB_SPEC,;t t
23931 s,@TK_LIB_SPEC@,$TK_LIB_SPEC,;t t
23932 s,@TCLHDIR@,$TCLHDIR,;t t
23933 s,@TKHDIR@,$TKHDIR,;t t
23934 s,@ITCLHDIR@,$ITCLHDIR,;t t
23935 s,@ITKHDIR@,$ITKHDIR,;t t
23936 s,@ITCL_VERSION@,$ITCL_VERSION,;t t
23937 s,@ITCL_DEFS@,$ITCL_DEFS,;t t
23938 s,@ITCL_BUILD_INCLUDES@,$ITCL_BUILD_INCLUDES,;t t
23939 s,@ITCL_BUILD_LIB_SPEC@,$ITCL_BUILD_LIB_SPEC,;t t
23940 s,@ITCL_LIB_SPEC@,$ITCL_LIB_SPEC,;t t
23941 s,@ITK_VERSION@,$ITK_VERSION,;t t
23942 s,@ITK_DEFS@,$ITK_DEFS,;t t
23943 s,@ITK_BUILD_INCLUDES@,$ITK_BUILD_INCLUDES,;t t
23944 s,@ITK_BUILD_LIB_SPEC@,$ITK_BUILD_LIB_SPEC,;t t
23945 s,@ITK_LIB_SPEC@,$ITK_LIB_SPEC,;t t
23946 s,@X_CFLAGS@,$X_CFLAGS,;t t
23947 s,@X_LDFLAGS@,$X_LDFLAGS,;t t
23948 s,@X_LIBS@,$X_LIBS,;t t
23949 s,@TCL_DEPS@,$TCL_DEPS,;t t
23950 s,@TK_DEPS@,$TK_DEPS,;t t
23951 s,@ITCLLIB@,$ITCLLIB,;t t
23952 s,@ITCL_DEPS@,$ITCL_DEPS,;t t
23953 s,@ITKLIB@,$ITKLIB,;t t
23954 s,@ITK_DEPS@,$ITK_DEPS,;t t
23955 s,@GDBTKLIBS@,$GDBTKLIBS,;t t
23956 s,@GDBTK_CFLAGS@,$GDBTK_CFLAGS,;t t
23957 s,@GDBTK_SRC_DIR@,$GDBTK_SRC_DIR,;t t
23958 s,@IGNORE_SIM@,$IGNORE_SIM,;t t
23959 s,@IGNORE_SIM_OBS@,$IGNORE_SIM_OBS,;t t
23960 s,@ENABLE_CFLAGS@,$ENABLE_CFLAGS,;t t
23961 s,@PROFILE_CFLAGS@,$PROFILE_CFLAGS,;t t
23962 s,@CONFIG_OBS@,$CONFIG_OBS,;t t
23963 s,@CONFIG_DEPS@,$CONFIG_DEPS,;t t
23964 s,@CONFIG_SRCS@,$CONFIG_SRCS,;t t
23965 s,@CONFIG_ALL@,$CONFIG_ALL,;t t
23966 s,@CONFIG_CLEAN@,$CONFIG_CLEAN,;t t
23967 s,@CONFIG_INSTALL@,$CONFIG_INSTALL,;t t
23968 s,@CONFIG_UNINSTALL@,$CONFIG_UNINSTALL,;t t
23969 s,@target_subdir@,$target_subdir,;t t
23970 s,@frags@,$frags,;t t
23971 s,@xm_h@,$xm_h,;t t
23972 s,@tm_h@,$tm_h,;t t
23973 s,@nm_h@,$nm_h,;t t
23974 s,@LIBICONV@,$LIBICONV,;t t
23975 s,@LIBOBJS@,$LIBOBJS,;t t
23976 s,@LTLIBOBJS@,$LTLIBOBJS,;t t
23977 /@host_makefile_frag@/r $host_makefile_frag
23978 s,@host_makefile_frag@,,;t t
23979 /@target_makefile_frag@/r $target_makefile_frag
23980 s,@target_makefile_frag@,,;t t
23985 cat >>$CONFIG_STATUS <<\_ACEOF
23986 # Split the substitutions into bite-sized pieces for seds with
23987 # small command number limits, like on Digital OSF/1 and HP-UX.
23988 ac_max_sed_lines=48
23989 ac_sed_frag=1 # Number of current file.
23990 ac_beg=1 # First line for current file.
23991 ac_end=$ac_max_sed_lines # Line after last line for current file.
23994 while $ac_more_lines; do
23995 if test $ac_beg -gt 1; then
23996 sed "1,${ac_beg}d; ${ac_end}q" $tmp/subs.sed >$tmp/subs.frag
23998 sed "${ac_end}q" $tmp/subs.sed >$tmp/subs.frag
24000 if test ! -s $tmp/subs.frag; then
24001 ac_more_lines=false
24003 # The purpose of the label and of the branching condition is to
24004 # speed up the sed processing (if there are no `@' at all, there
24005 # is no need to browse any of the substitutions).
24006 # These are the two extra sed commands mentioned above.
24008 /@[a-zA-Z_][a-zA-Z_0-9]*@/!b' && cat $tmp/subs.frag) >$tmp/subs-$ac_sed_frag.sed
24009 if test -z "$ac_sed_cmds"; then
24010 ac_sed_cmds="sed -f $tmp/subs-$ac_sed_frag.sed"
24012 ac_sed_cmds="$ac_sed_cmds | sed -f $tmp/subs-$ac_sed_frag.sed"
24014 ac_sed_frag=`expr $ac_sed_frag + 1`
24016 ac_end=`expr $ac_end + $ac_max_sed_lines`
24019 if test -z "$ac_sed_cmds"; then
24022 fi # test -n "$CONFIG_FILES"
24025 cat >>$CONFIG_STATUS <<\_ACEOF
24026 for ac_file in : $CONFIG_FILES; do test "x$ac_file" = x: && continue
24027 # Support "outfile[:infile[:infile...]]", defaulting infile="outfile.in".
24029 - | *:- | *:-:* ) # input from stdin
24031 ac_file_in=`echo "$ac_file" | sed 's,[^:]*:,,'`
24032 ac_file=`echo "$ac_file" | sed 's,:.*,,'` ;;
24033 *:* ) ac_file_in=`echo "$ac_file" | sed 's,[^:]*:,,'`
24034 ac_file=`echo "$ac_file" | sed 's,:.*,,'` ;;
24035 * ) ac_file_in=$ac_file.in ;;
24038 # Compute @srcdir@, @top_srcdir@, and @INSTALL@ for subdirectories.
24039 ac_dir=`(dirname "$ac_file") 2>/dev/null ||
24040 $as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
24041 X"$ac_file" : 'X\(//\)[^/]' \| \
24042 X"$ac_file" : 'X\(//\)$' \| \
24043 X"$ac_file" : 'X\(/\)' \| \
24044 . : '\(.\)' 2>/dev/null ||
24046 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
24047 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
24048 /^X\(\/\/\)$/{ s//\1/; q; }
24049 /^X\(\/\).*/{ s//\1/; q; }
24051 { if $as_mkdir_p; then
24056 while test ! -d "$as_dir"; do
24057 as_dirs="$as_dir $as_dirs"
24058 as_dir=`(dirname "$as_dir") 2>/dev/null ||
24059 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
24060 X"$as_dir" : 'X\(//\)[^/]' \| \
24061 X"$as_dir" : 'X\(//\)$' \| \
24062 X"$as_dir" : 'X\(/\)' \| \
24063 . : '\(.\)' 2>/dev/null ||
24065 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
24066 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
24067 /^X\(\/\/\)$/{ s//\1/; q; }
24068 /^X\(\/\).*/{ s//\1/; q; }
24071 test ! -n "$as_dirs" || mkdir $as_dirs
24072 fi || { { echo "$as_me:$LINENO: error: cannot create directory \"$ac_dir\"" >&5
24073 echo "$as_me: error: cannot create directory \"$ac_dir\"" >&2;}
24074 { (exit 1); exit 1; }; }; }
24078 if test "$ac_dir" != .; then
24079 ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'`
24080 # A "../" for each directory in $ac_dir_suffix.
24081 ac_top_builddir=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,../,g'`
24083 ac_dir_suffix= ac_top_builddir=
24087 .) # No --srcdir option. We are building in place.
24089 if test -z "$ac_top_builddir"; then
24092 ac_top_srcdir=`echo $ac_top_builddir | sed 's,/$,,'`
24094 [\\/]* | ?:[\\/]* ) # Absolute path.
24095 ac_srcdir=$srcdir$ac_dir_suffix;
24096 ac_top_srcdir=$srcdir ;;
24097 *) # Relative path.
24098 ac_srcdir=$ac_top_builddir$srcdir$ac_dir_suffix
24099 ac_top_srcdir=$ac_top_builddir$srcdir ;;
24102 # Do not use `cd foo && pwd` to compute absolute paths, because
24103 # the directories may not exist.
24105 .) ac_abs_builddir="$ac_dir";;
24108 .) ac_abs_builddir=`pwd`;;
24109 [\\/]* | ?:[\\/]* ) ac_abs_builddir="$ac_dir";;
24110 *) ac_abs_builddir=`pwd`/"$ac_dir";;
24113 case $ac_abs_builddir in
24114 .) ac_abs_top_builddir=${ac_top_builddir}.;;
24116 case ${ac_top_builddir}. in
24117 .) ac_abs_top_builddir=$ac_abs_builddir;;
24118 [\\/]* | ?:[\\/]* ) ac_abs_top_builddir=${ac_top_builddir}.;;
24119 *) ac_abs_top_builddir=$ac_abs_builddir/${ac_top_builddir}.;;
24122 case $ac_abs_builddir in
24123 .) ac_abs_srcdir=$ac_srcdir;;
24126 .) ac_abs_srcdir=$ac_abs_builddir;;
24127 [\\/]* | ?:[\\/]* ) ac_abs_srcdir=$ac_srcdir;;
24128 *) ac_abs_srcdir=$ac_abs_builddir/$ac_srcdir;;
24131 case $ac_abs_builddir in
24132 .) ac_abs_top_srcdir=$ac_top_srcdir;;
24134 case $ac_top_srcdir in
24135 .) ac_abs_top_srcdir=$ac_abs_builddir;;
24136 [\\/]* | ?:[\\/]* ) ac_abs_top_srcdir=$ac_top_srcdir;;
24137 *) ac_abs_top_srcdir=$ac_abs_builddir/$ac_top_srcdir;;
24143 [\\/$]* | ?:[\\/]* ) ac_INSTALL=$INSTALL ;;
24144 *) ac_INSTALL=$ac_top_builddir$INSTALL ;;
24147 if test x"$ac_file" != x-; then
24148 { echo "$as_me:$LINENO: creating $ac_file" >&5
24149 echo "$as_me: creating $ac_file" >&6;}
24152 # Let's still pretend it is `configure' which instantiates (i.e., don't
24153 # use $as_me), people would be surprised to read:
24154 # /* config.h. Generated by config.status. */
24155 if test x"$ac_file" = x-; then
24158 configure_input="$ac_file. "
24160 configure_input=$configure_input"Generated from `echo $ac_file_in |
24161 sed 's,.*/,,'` by configure."
24163 # First look for the input files in the build tree, otherwise in the
24165 ac_file_inputs=`IFS=:
24166 for f in $ac_file_in; do
24168 -) echo $tmp/stdin ;;
24170 # Absolute (can't be DOS-style, as IFS=:)
24171 test -f "$f" || { { echo "$as_me:$LINENO: error: cannot find input file: $f" >&5
24172 echo "$as_me: error: cannot find input file: $f" >&2;}
24173 { (exit 1); exit 1; }; }
24176 if test -f "$f"; then
24179 elif test -f "$srcdir/$f"; then
24184 { { echo "$as_me:$LINENO: error: cannot find input file: $f" >&5
24185 echo "$as_me: error: cannot find input file: $f" >&2;}
24186 { (exit 1); exit 1; }; }
24189 done` || { (exit 1); exit 1; }
24191 cat >>$CONFIG_STATUS <<_ACEOF
24195 cat >>$CONFIG_STATUS <<\_ACEOF
24197 /@[a-zA-Z_][a-zA-Z_0-9]*@/!b
24198 s,@configure_input@,$configure_input,;t t
24199 s,@srcdir@,$ac_srcdir,;t t
24200 s,@abs_srcdir@,$ac_abs_srcdir,;t t
24201 s,@top_srcdir@,$ac_top_srcdir,;t t
24202 s,@abs_top_srcdir@,$ac_abs_top_srcdir,;t t
24203 s,@builddir@,$ac_builddir,;t t
24204 s,@abs_builddir@,$ac_abs_builddir,;t t
24205 s,@top_builddir@,$ac_top_builddir,;t t
24206 s,@abs_top_builddir@,$ac_abs_top_builddir,;t t
24207 s,@INSTALL@,$ac_INSTALL,;t t
24208 " $ac_file_inputs | (eval "$ac_sed_cmds") >$tmp/out
24210 if test x"$ac_file" != x-; then
24211 mv $tmp/out $ac_file
24219 cat >>$CONFIG_STATUS <<\_ACEOF
24222 # CONFIG_HEADER section.
24225 # These sed commands are passed to sed as "A NAME B NAME C VALUE D", where
24226 # NAME is the cpp macro being defined and VALUE is the value it is being given.
24228 # ac_d sets the value in "#define NAME VALUE" lines.
24229 ac_dA='s,^\([ ]*\)#\([ ]*define[ ][ ]*\)'
24230 ac_dB='[ ].*$,\1#\2'
24233 # ac_u turns "#undef NAME" without trailing blanks into "#define NAME VALUE".
24234 ac_uA='s,^\([ ]*\)#\([ ]*\)undef\([ ][ ]*\)'
24235 ac_uB='$,\1#\2define\3'
24239 for ac_file in : $CONFIG_HEADERS; do test "x$ac_file" = x: && continue
24240 # Support "outfile[:infile[:infile...]]", defaulting infile="outfile.in".
24242 - | *:- | *:-:* ) # input from stdin
24244 ac_file_in=`echo "$ac_file" | sed 's,[^:]*:,,'`
24245 ac_file=`echo "$ac_file" | sed 's,:.*,,'` ;;
24246 *:* ) ac_file_in=`echo "$ac_file" | sed 's,[^:]*:,,'`
24247 ac_file=`echo "$ac_file" | sed 's,:.*,,'` ;;
24248 * ) ac_file_in=$ac_file.in ;;
24251 test x"$ac_file" != x- && { echo "$as_me:$LINENO: creating $ac_file" >&5
24252 echo "$as_me: creating $ac_file" >&6;}
24254 # First look for the input files in the build tree, otherwise in the
24256 ac_file_inputs=`IFS=:
24257 for f in $ac_file_in; do
24259 -) echo $tmp/stdin ;;
24261 # Absolute (can't be DOS-style, as IFS=:)
24262 test -f "$f" || { { echo "$as_me:$LINENO: error: cannot find input file: $f" >&5
24263 echo "$as_me: error: cannot find input file: $f" >&2;}
24264 { (exit 1); exit 1; }; }
24265 # Do quote $f, to prevent DOS paths from being IFS'd.
24268 if test -f "$f"; then
24271 elif test -f "$srcdir/$f"; then
24276 { { echo "$as_me:$LINENO: error: cannot find input file: $f" >&5
24277 echo "$as_me: error: cannot find input file: $f" >&2;}
24278 { (exit 1); exit 1; }; }
24281 done` || { (exit 1); exit 1; }
24282 # Remove the trailing spaces.
24283 sed 's/[ ]*$//' $ac_file_inputs >$tmp/in
24287 # Transform confdefs.h into two sed scripts, `conftest.defines' and
24288 # `conftest.undefs', that substitutes the proper values into
24289 # config.h.in to produce config.h. The first handles `#define'
24290 # templates, and the second `#undef' templates.
24291 # And first: Protect against being on the right side of a sed subst in
24292 # config.status. Protect against being in an unquoted here document
24293 # in config.status.
24294 rm -f conftest.defines conftest.undefs
24295 # Using a here document instead of a string reduces the quoting nightmare.
24296 # Putting comments in sed scripts is not portable.
24298 # `end' is used to avoid that the second main sed command (meant for
24299 # 0-ary CPP macros) applies to n-ary macro definitions.
24300 # See the Autoconf documentation for `clear'.
24301 cat >confdef2sed.sed <<\_ACEOF
24306 s,^[ ]*#[ ]*define[ ][ ]*\([^ (][^ (]*\)\(([^)]*)\)[ ]*\(.*\)$,${ac_dA}\1${ac_dB}\1\2${ac_dC}\3${ac_dD},gp
24308 s,^[ ]*#[ ]*define[ ][ ]*\([^ ][^ ]*\)[ ]*\(.*\)$,${ac_dA}\1${ac_dB}\1${ac_dC}\2${ac_dD},gp
24311 # If some macros were called several times there might be several times
24312 # the same #defines, which is useless. Nevertheless, we may not want to
24313 # sort them, since we want the *last* AC-DEFINE to be honored.
24314 uniq confdefs.h | sed -n -f confdef2sed.sed >conftest.defines
24315 sed 's/ac_d/ac_u/g' conftest.defines >conftest.undefs
24316 rm -f confdef2sed.sed
24318 # This sed command replaces #undef with comments. This is necessary, for
24319 # example, in the case of _POSIX_SOURCE, which is predefined and required
24320 # on some systems where configure will not decide to define it.
24321 cat >>conftest.undefs <<\_ACEOF
24322 s,^[ ]*#[ ]*undef[ ][ ]*[a-zA-Z_][a-zA-Z_0-9]*,/* & */,
24325 # Break up conftest.defines because some shells have a limit on the size
24326 # of here documents, and old seds have small limits too (100 cmds).
24327 echo ' # Handle all the #define templates only if necessary.' >>$CONFIG_STATUS
24328 echo ' if grep "^[ ]*#[ ]*define" $tmp/in >/dev/null; then' >>$CONFIG_STATUS
24329 echo ' # If there are no defines, we may have an empty if/fi' >>$CONFIG_STATUS
24330 echo ' :' >>$CONFIG_STATUS
24331 rm -f conftest.tail
24332 while grep . conftest.defines >/dev/null
24334 # Write a limited-size here document to $tmp/defines.sed.
24335 echo ' cat >$tmp/defines.sed <<CEOF' >>$CONFIG_STATUS
24336 # Speed up: don't consider the non `#define' lines.
24337 echo '/^[ ]*#[ ]*define/!b' >>$CONFIG_STATUS
24338 # Work around the forget-to-reset-the-flag bug.
24339 echo 't clr' >>$CONFIG_STATUS
24340 echo ': clr' >>$CONFIG_STATUS
24341 sed ${ac_max_here_lines}q conftest.defines >>$CONFIG_STATUS
24343 sed -f $tmp/defines.sed $tmp/in >$tmp/out
24345 mv $tmp/out $tmp/in
24347 sed 1,${ac_max_here_lines}d conftest.defines >conftest.tail
24348 rm -f conftest.defines
24349 mv conftest.tail conftest.defines
24351 rm -f conftest.defines
24352 echo ' fi # grep' >>$CONFIG_STATUS
24353 echo >>$CONFIG_STATUS
24355 # Break up conftest.undefs because some shells have a limit on the size
24356 # of here documents, and old seds have small limits too (100 cmds).
24357 echo ' # Handle all the #undef templates' >>$CONFIG_STATUS
24358 rm -f conftest.tail
24359 while grep . conftest.undefs >/dev/null
24361 # Write a limited-size here document to $tmp/undefs.sed.
24362 echo ' cat >$tmp/undefs.sed <<CEOF' >>$CONFIG_STATUS
24363 # Speed up: don't consider the non `#undef'
24364 echo '/^[ ]*#[ ]*undef/!b' >>$CONFIG_STATUS
24365 # Work around the forget-to-reset-the-flag bug.
24366 echo 't clr' >>$CONFIG_STATUS
24367 echo ': clr' >>$CONFIG_STATUS
24368 sed ${ac_max_here_lines}q conftest.undefs >>$CONFIG_STATUS
24370 sed -f $tmp/undefs.sed $tmp/in >$tmp/out
24372 mv $tmp/out $tmp/in
24374 sed 1,${ac_max_here_lines}d conftest.undefs >conftest.tail
24375 rm -f conftest.undefs
24376 mv conftest.tail conftest.undefs
24378 rm -f conftest.undefs
24380 cat >>$CONFIG_STATUS <<\_ACEOF
24381 # Let's still pretend it is `configure' which instantiates (i.e., don't
24382 # use $as_me), people would be surprised to read:
24383 # /* config.h. Generated by config.status. */
24384 if test x"$ac_file" = x-; then
24385 echo "/* Generated by configure. */" >$tmp/config.h
24387 echo "/* $ac_file. Generated by configure. */" >$tmp/config.h
24389 cat $tmp/in >>$tmp/config.h
24391 if test x"$ac_file" != x-; then
24392 if diff $ac_file $tmp/config.h >/dev/null 2>&1; then
24393 { echo "$as_me:$LINENO: $ac_file is unchanged" >&5
24394 echo "$as_me: $ac_file is unchanged" >&6;}
24396 ac_dir=`(dirname "$ac_file") 2>/dev/null ||
24397 $as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
24398 X"$ac_file" : 'X\(//\)[^/]' \| \
24399 X"$ac_file" : 'X\(//\)$' \| \
24400 X"$ac_file" : 'X\(/\)' \| \
24401 . : '\(.\)' 2>/dev/null ||
24403 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
24404 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
24405 /^X\(\/\/\)$/{ s//\1/; q; }
24406 /^X\(\/\).*/{ s//\1/; q; }
24408 { if $as_mkdir_p; then
24413 while test ! -d "$as_dir"; do
24414 as_dirs="$as_dir $as_dirs"
24415 as_dir=`(dirname "$as_dir") 2>/dev/null ||
24416 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
24417 X"$as_dir" : 'X\(//\)[^/]' \| \
24418 X"$as_dir" : 'X\(//\)$' \| \
24419 X"$as_dir" : 'X\(/\)' \| \
24420 . : '\(.\)' 2>/dev/null ||
24422 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
24423 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
24424 /^X\(\/\/\)$/{ s//\1/; q; }
24425 /^X\(\/\).*/{ s//\1/; q; }
24428 test ! -n "$as_dirs" || mkdir $as_dirs
24429 fi || { { echo "$as_me:$LINENO: error: cannot create directory \"$ac_dir\"" >&5
24430 echo "$as_me: error: cannot create directory \"$ac_dir\"" >&2;}
24431 { (exit 1); exit 1; }; }; }
24434 mv $tmp/config.h $ac_file
24438 rm -f $tmp/config.h
24442 cat >>$CONFIG_STATUS <<\_ACEOF
24445 # CONFIG_LINKS section.
24448 for ac_file in : $CONFIG_LINKS; do test "x$ac_file" = x: && continue
24449 ac_dest=`echo "$ac_file" | sed 's,:.*,,'`
24450 ac_source=`echo "$ac_file" | sed 's,[^:]*:,,'`
24452 { echo "$as_me:$LINENO: linking $srcdir/$ac_source to $ac_dest" >&5
24453 echo "$as_me: linking $srcdir/$ac_source to $ac_dest" >&6;}
24455 if test ! -r $srcdir/$ac_source; then
24456 { { echo "$as_me:$LINENO: error: $srcdir/$ac_source: file not found" >&5
24457 echo "$as_me: error: $srcdir/$ac_source: file not found" >&2;}
24458 { (exit 1); exit 1; }; }
24462 # Make relative symlinks.
24463 ac_dest_dir=`(dirname "$ac_dest") 2>/dev/null ||
24464 $as_expr X"$ac_dest" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
24465 X"$ac_dest" : 'X\(//\)[^/]' \| \
24466 X"$ac_dest" : 'X\(//\)$' \| \
24467 X"$ac_dest" : 'X\(/\)' \| \
24468 . : '\(.\)' 2>/dev/null ||
24470 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
24471 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
24472 /^X\(\/\/\)$/{ s//\1/; q; }
24473 /^X\(\/\).*/{ s//\1/; q; }
24475 { if $as_mkdir_p; then
24476 mkdir -p "$ac_dest_dir"
24478 as_dir="$ac_dest_dir"
24480 while test ! -d "$as_dir"; do
24481 as_dirs="$as_dir $as_dirs"
24482 as_dir=`(dirname "$as_dir") 2>/dev/null ||
24483 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
24484 X"$as_dir" : 'X\(//\)[^/]' \| \
24485 X"$as_dir" : 'X\(//\)$' \| \
24486 X"$as_dir" : 'X\(/\)' \| \
24487 . : '\(.\)' 2>/dev/null ||
24489 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
24490 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
24491 /^X\(\/\/\)$/{ s//\1/; q; }
24492 /^X\(\/\).*/{ s//\1/; q; }
24495 test ! -n "$as_dirs" || mkdir $as_dirs
24496 fi || { { echo "$as_me:$LINENO: error: cannot create directory \"$ac_dest_dir\"" >&5
24497 echo "$as_me: error: cannot create directory \"$ac_dest_dir\"" >&2;}
24498 { (exit 1); exit 1; }; }; }
24502 if test "$ac_dest_dir" != .; then
24503 ac_dir_suffix=/`echo "$ac_dest_dir" | sed 's,^\.[\\/],,'`
24504 # A "../" for each directory in $ac_dir_suffix.
24505 ac_top_builddir=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,../,g'`
24507 ac_dir_suffix= ac_top_builddir=
24511 .) # No --srcdir option. We are building in place.
24513 if test -z "$ac_top_builddir"; then
24516 ac_top_srcdir=`echo $ac_top_builddir | sed 's,/$,,'`
24518 [\\/]* | ?:[\\/]* ) # Absolute path.
24519 ac_srcdir=$srcdir$ac_dir_suffix;
24520 ac_top_srcdir=$srcdir ;;
24521 *) # Relative path.
24522 ac_srcdir=$ac_top_builddir$srcdir$ac_dir_suffix
24523 ac_top_srcdir=$ac_top_builddir$srcdir ;;
24526 # Do not use `cd foo && pwd` to compute absolute paths, because
24527 # the directories may not exist.
24529 .) ac_abs_builddir="$ac_dest_dir";;
24531 case "$ac_dest_dir" in
24532 .) ac_abs_builddir=`pwd`;;
24533 [\\/]* | ?:[\\/]* ) ac_abs_builddir="$ac_dest_dir";;
24534 *) ac_abs_builddir=`pwd`/"$ac_dest_dir";;
24537 case $ac_abs_builddir in
24538 .) ac_abs_top_builddir=${ac_top_builddir}.;;
24540 case ${ac_top_builddir}. in
24541 .) ac_abs_top_builddir=$ac_abs_builddir;;
24542 [\\/]* | ?:[\\/]* ) ac_abs_top_builddir=${ac_top_builddir}.;;
24543 *) ac_abs_top_builddir=$ac_abs_builddir/${ac_top_builddir}.;;
24546 case $ac_abs_builddir in
24547 .) ac_abs_srcdir=$ac_srcdir;;
24550 .) ac_abs_srcdir=$ac_abs_builddir;;
24551 [\\/]* | ?:[\\/]* ) ac_abs_srcdir=$ac_srcdir;;
24552 *) ac_abs_srcdir=$ac_abs_builddir/$ac_srcdir;;
24555 case $ac_abs_builddir in
24556 .) ac_abs_top_srcdir=$ac_top_srcdir;;
24558 case $ac_top_srcdir in
24559 .) ac_abs_top_srcdir=$ac_abs_builddir;;
24560 [\\/]* | ?:[\\/]* ) ac_abs_top_srcdir=$ac_top_srcdir;;
24561 *) ac_abs_top_srcdir=$ac_abs_builddir/$ac_top_srcdir;;
24567 [\\/$]* | ?:[\\/]* ) ac_rel_source=$srcdir/$ac_source ;;
24568 *) ac_rel_source=$ac_top_builddir$srcdir/$ac_source ;;
24571 # Try a symlink, then a hard link, then a copy.
24572 ln -s $ac_rel_source $ac_dest 2>/dev/null ||
24573 ln $srcdir/$ac_source $ac_dest 2>/dev/null ||
24574 cp -p $srcdir/$ac_source $ac_dest ||
24575 { { echo "$as_me:$LINENO: error: cannot link or copy $srcdir/$ac_source to $ac_dest" >&5
24576 echo "$as_me: error: cannot link or copy $srcdir/$ac_source to $ac_dest" >&2;}
24577 { (exit 1); exit 1; }; }
24580 cat >>$CONFIG_STATUS <<\_ACEOF
24583 # CONFIG_COMMANDS section.
24585 for ac_file in : $CONFIG_COMMANDS; do test "x$ac_file" = x: && continue
24586 ac_dest=`echo "$ac_file" | sed 's,:.*,,'`
24587 ac_source=`echo "$ac_file" | sed 's,[^:]*:,,'`
24588 ac_dir=`(dirname "$ac_dest") 2>/dev/null ||
24589 $as_expr X"$ac_dest" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
24590 X"$ac_dest" : 'X\(//\)[^/]' \| \
24591 X"$ac_dest" : 'X\(//\)$' \| \
24592 X"$ac_dest" : 'X\(/\)' \| \
24593 . : '\(.\)' 2>/dev/null ||
24595 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
24596 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
24597 /^X\(\/\/\)$/{ s//\1/; q; }
24598 /^X\(\/\).*/{ s//\1/; q; }
24600 { if $as_mkdir_p; then
24605 while test ! -d "$as_dir"; do
24606 as_dirs="$as_dir $as_dirs"
24607 as_dir=`(dirname "$as_dir") 2>/dev/null ||
24608 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
24609 X"$as_dir" : 'X\(//\)[^/]' \| \
24610 X"$as_dir" : 'X\(//\)$' \| \
24611 X"$as_dir" : 'X\(/\)' \| \
24612 . : '\(.\)' 2>/dev/null ||
24614 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
24615 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
24616 /^X\(\/\/\)$/{ s//\1/; q; }
24617 /^X\(\/\).*/{ s//\1/; q; }
24620 test ! -n "$as_dirs" || mkdir $as_dirs
24621 fi || { { echo "$as_me:$LINENO: error: cannot create directory \"$ac_dir\"" >&5
24622 echo "$as_me: error: cannot create directory \"$ac_dir\"" >&2;}
24623 { (exit 1); exit 1; }; }; }
24627 if test "$ac_dir" != .; then
24628 ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'`
24629 # A "../" for each directory in $ac_dir_suffix.
24630 ac_top_builddir=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,../,g'`
24632 ac_dir_suffix= ac_top_builddir=
24636 .) # No --srcdir option. We are building in place.
24638 if test -z "$ac_top_builddir"; then
24641 ac_top_srcdir=`echo $ac_top_builddir | sed 's,/$,,'`
24643 [\\/]* | ?:[\\/]* ) # Absolute path.
24644 ac_srcdir=$srcdir$ac_dir_suffix;
24645 ac_top_srcdir=$srcdir ;;
24646 *) # Relative path.
24647 ac_srcdir=$ac_top_builddir$srcdir$ac_dir_suffix
24648 ac_top_srcdir=$ac_top_builddir$srcdir ;;
24651 # Do not use `cd foo && pwd` to compute absolute paths, because
24652 # the directories may not exist.
24654 .) ac_abs_builddir="$ac_dir";;
24657 .) ac_abs_builddir=`pwd`;;
24658 [\\/]* | ?:[\\/]* ) ac_abs_builddir="$ac_dir";;
24659 *) ac_abs_builddir=`pwd`/"$ac_dir";;
24662 case $ac_abs_builddir in
24663 .) ac_abs_top_builddir=${ac_top_builddir}.;;
24665 case ${ac_top_builddir}. in
24666 .) ac_abs_top_builddir=$ac_abs_builddir;;
24667 [\\/]* | ?:[\\/]* ) ac_abs_top_builddir=${ac_top_builddir}.;;
24668 *) ac_abs_top_builddir=$ac_abs_builddir/${ac_top_builddir}.;;
24671 case $ac_abs_builddir in
24672 .) ac_abs_srcdir=$ac_srcdir;;
24675 .) ac_abs_srcdir=$ac_abs_builddir;;
24676 [\\/]* | ?:[\\/]* ) ac_abs_srcdir=$ac_srcdir;;
24677 *) ac_abs_srcdir=$ac_abs_builddir/$ac_srcdir;;
24680 case $ac_abs_builddir in
24681 .) ac_abs_top_srcdir=$ac_top_srcdir;;
24683 case $ac_top_srcdir in
24684 .) ac_abs_top_srcdir=$ac_abs_builddir;;
24685 [\\/]* | ?:[\\/]* ) ac_abs_top_srcdir=$ac_top_srcdir;;
24686 *) ac_abs_top_srcdir=$ac_abs_builddir/$ac_top_srcdir;;
24691 { echo "$as_me:$LINENO: executing $ac_dest commands" >&5
24692 echo "$as_me: executing $ac_dest commands" >&6;}
24695 if test "$GCC" = yes; then
24696 echo "/* generated for " `$CC --version | sed 1q` "*/" > tmp-stdint.h
24698 echo "/* generated for $CC */" > tmp-stdint.h
24701 sed 's/^ *//' >> tmp-stdint.h <<EOF
24703 #ifndef GCC_GENERATED_STDINT_H
24704 #define GCC_GENERATED_STDINT_H 1
24706 #include <sys/types.h>
24709 if test "$acx_cv_header_stdint" != stdint.h; then
24710 echo "#include <stddef.h>" >> tmp-stdint.h
24712 if test "$acx_cv_header_stdint" != stddef.h; then
24713 echo "#include <$acx_cv_header_stdint>" >> tmp-stdint.h
24716 sed 's/^ *//' >> tmp-stdint.h <<EOF
24717 /* glibc uses these symbols as guards to prevent redefinitions. */
24718 #ifdef __int8_t_defined
24723 #ifdef __uint32_t_defined
24729 # ----------------- done header, emit basic int types -------------
24730 if test "$acx_cv_header_stdint" = stddef.h; then
24731 sed 's/^ *//' >> tmp-stdint.h <<EOF
24735 typedef unsigned $acx_cv_type_int8_t uint8_t;
24740 typedef unsigned $acx_cv_type_int16_t uint16_t;
24745 typedef unsigned $acx_cv_type_int32_t uint32_t;
24750 typedef $acx_cv_type_int8_t int8_t;
24755 typedef $acx_cv_type_int16_t int16_t;
24760 typedef $acx_cv_type_int32_t int32_t;
24763 elif test "$ac_cv_type_u_int32_t" = yes; then
24764 sed 's/^ *//' >> tmp-stdint.h <<EOF
24766 /* int8_t int16_t int32_t defined by inet code, we do the u_intXX types */
24779 typedef u_int8_t uint8_t;
24784 typedef u_int16_t uint16_t;
24789 typedef u_int32_t uint32_t;
24793 sed 's/^ *//' >> tmp-stdint.h <<EOF
24795 /* Some systems have guard macros to prevent redefinitions, define them. */
24817 # ------------- done basic int types, emit int64_t types ------------
24818 if test "$ac_cv_type_uint64_t" = yes; then
24819 sed 's/^ *//' >> tmp-stdint.h <<EOF
24821 /* system headers have good uint64_t and int64_t */
24829 elif test "$ac_cv_type_u_int64_t" = yes; then
24830 sed 's/^ *//' >> tmp-stdint.h <<EOF
24832 /* system headers have an u_int64_t (and int64_t) */
24838 typedef u_int64_t uint64_t;
24841 elif test -n "$acx_cv_type_int64_t"; then
24842 sed 's/^ *//' >> tmp-stdint.h <<EOF
24844 /* architecture has a 64-bit type, $acx_cv_type_int64_t */
24847 typedef $acx_cv_type_int64_t int64_t;
24851 typedef unsigned $acx_cv_type_int64_t uint64_t;
24855 sed 's/^ *//' >> tmp-stdint.h <<EOF
24857 /* some common heuristics for int64_t, using compiler-specific tests */
24858 #if defined __STDC_VERSION__ && (__STDC_VERSION__-0) >= 199901L
24861 typedef long long int64_t;
24865 typedef unsigned long long uint64_t;
24868 #elif defined __GNUC__ && defined (__STDC__) && __STDC__-0
24869 /* NextStep 2.0 cc is really gcc 1.93 but it defines __GNUC__ = 2 and
24870 does not implement __extension__. But that compiler doesn't define
24872 # if __GNUC__ < 2 || (__NeXT__ && !__GNUC_MINOR__)
24873 # define __extension__
24878 __extension__ typedef long long int64_t;
24882 __extension__ typedef unsigned long long uint64_t;
24885 #elif !defined __STRICT_ANSI__
24886 # if defined _MSC_VER || defined __WATCOMC__ || defined __BORLANDC__
24890 typedef __int64 int64_t;
24894 typedef unsigned __int64 uint64_t;
24896 # endif /* compiler */
24898 #endif /* ANSI version */
24902 # ------------- done int64_t types, emit intptr types ------------
24903 if test "$ac_cv_type_uintptr_t" != yes; then
24904 sed 's/^ *//' >> tmp-stdint.h <<EOF
24906 /* Define intptr_t based on sizeof(void*) = $ac_cv_sizeof_void_p */
24907 typedef u$acx_cv_type_intptr_t uintptr_t;
24908 typedef $acx_cv_type_intptr_t intptr_t;
24912 # ------------- done intptr types, emit int_least types ------------
24913 if test "$ac_cv_type_int_least32_t" != yes; then
24914 sed 's/^ *//' >> tmp-stdint.h <<EOF
24916 /* Define int_least types */
24917 typedef int8_t int_least8_t;
24918 typedef int16_t int_least16_t;
24919 typedef int32_t int_least32_t;
24921 typedef int64_t int_least64_t;
24924 typedef uint8_t uint_least8_t;
24925 typedef uint16_t uint_least16_t;
24926 typedef uint32_t uint_least32_t;
24928 typedef uint64_t uint_least64_t;
24933 # ------------- done intptr types, emit int_fast types ------------
24934 if test "$ac_cv_type_int_fast32_t" != yes; then
24935 sed 's/^ *//' >> tmp-stdint.h <<EOF
24937 /* Define int_fast types. short is often slow */
24938 typedef int8_t int_fast8_t;
24939 typedef int int_fast16_t;
24940 typedef int32_t int_fast32_t;
24942 typedef int64_t int_fast64_t;
24945 typedef uint8_t uint_fast8_t;
24946 typedef unsigned int uint_fast16_t;
24947 typedef uint32_t uint_fast32_t;
24949 typedef uint64_t uint_fast64_t;
24954 if test "$ac_cv_type_uintmax_t" != yes; then
24955 sed 's/^ *//' >> tmp-stdint.h <<EOF
24957 /* Define intmax based on what we found */
24959 typedef int64_t intmax_t;
24961 typedef long intmax_t;
24964 typedef uint64_t uintmax_t;
24966 typedef unsigned long uintmax_t;
24971 sed 's/^ *//' >> tmp-stdint.h <<EOF
24973 #endif /* GCC_GENERATED_STDINT_H */
24976 if test -r gdb_stdint.h && cmp -s tmp-stdint.h gdb_stdint.h; then
24979 mv -f tmp-stdint.h gdb_stdint.h
24985 sed -e '/^DEPRECATED_TM_FILE[ ]*=/s,^DEPRECATED_TM_FILE[ ]*=[ ]*,&config/'"${gdb_target_cpu}"'/,
24986 /^XM_FILE[ ]*=/s,^XM_FILE[ ]*=[ ]*,&config/'"${gdb_host_cpu}"'/,
24987 /^NAT_FILE[ ]*=/s,^NAT_FILE[ ]*=[ ]*,&config/'"${gdb_host_cpu}"'/,' <Makefile >Makefile.tmp
24988 mv -f Makefile.tmp Makefile
24991 case x$CONFIG_HEADERS in
24992 xconfig.h:config.in)
25000 cat >>$CONFIG_STATUS <<\_ACEOF
25002 { (exit 0); exit 0; }
25004 chmod +x $CONFIG_STATUS
25005 ac_clean_files=$ac_clean_files_save
25008 # configure is writing to config.log, and then calls config.status.
25009 # config.status does its own redirection, appending to config.log.
25010 # Unfortunately, on DOS this fails, as config.log is still kept open
25011 # by configure, so config.status won't be able to write to it; its
25012 # output is simply discarded. So we exec the FD to /dev/null,
25013 # effectively closing config.log, so it can be properly (re)opened and
25014 # appended to by config.status. When coming back to configure, we
25015 # need to make the FD available again.
25016 if test "$no_create" != yes; then
25018 ac_config_status_args=
25019 test "$silent" = yes &&
25020 ac_config_status_args="$ac_config_status_args --quiet"
25022 $SHELL $CONFIG_STATUS $ac_config_status_args || ac_cs_success=false
25024 # Use ||, not &&, to avoid exiting from the if with $? = 1, which
25025 # would make configure fail if this is the last instruction.
25026 $ac_cs_success || { (exit 1); exit 1; }
25030 # CONFIG_SUBDIRS section.
25032 if test "$no_recursion" != yes; then
25034 # Remove --cache-file and --srcdir arguments so they do not pile up.
25035 ac_sub_configure_args=
25037 for ac_arg in $ac_configure_args; do
25038 if test -n "$ac_prev"; then
25043 -cache-file | --cache-file | --cache-fil | --cache-fi \
25044 | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c)
25045 ac_prev=cache_file ;;
25046 -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \
25047 | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* \
25050 --config-cache | -C)
25052 -srcdir | --srcdir | --srcdi | --srcd | --src | --sr)
25054 -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*)
25056 -prefix | --prefix | --prefi | --pref | --pre | --pr | --p)
25058 -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*)
25060 *) ac_sub_configure_args="$ac_sub_configure_args $ac_arg" ;;
25064 # Always prepend --prefix to ensure using the same prefix
25065 # in subdir configurations.
25066 ac_sub_configure_args="--prefix=$prefix $ac_sub_configure_args"
25069 for ac_dir in : $subdirs; do test "x$ac_dir" = x: && continue
25071 # Do not complain, so a configure script can configure whichever
25072 # parts of a large source tree are present.
25073 test -d $srcdir/$ac_dir || continue
25075 { echo "$as_me:$LINENO: configuring in $ac_dir" >&5
25076 echo "$as_me: configuring in $ac_dir" >&6;}
25077 { if $as_mkdir_p; then
25082 while test ! -d "$as_dir"; do
25083 as_dirs="$as_dir $as_dirs"
25084 as_dir=`(dirname "$as_dir") 2>/dev/null ||
25085 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
25086 X"$as_dir" : 'X\(//\)[^/]' \| \
25087 X"$as_dir" : 'X\(//\)$' \| \
25088 X"$as_dir" : 'X\(/\)' \| \
25089 . : '\(.\)' 2>/dev/null ||
25091 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
25092 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
25093 /^X\(\/\/\)$/{ s//\1/; q; }
25094 /^X\(\/\).*/{ s//\1/; q; }
25097 test ! -n "$as_dirs" || mkdir $as_dirs
25098 fi || { { echo "$as_me:$LINENO: error: cannot create directory \"$ac_dir\"" >&5
25099 echo "$as_me: error: cannot create directory \"$ac_dir\"" >&2;}
25100 { (exit 1); exit 1; }; }; }
25104 if test "$ac_dir" != .; then
25105 ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'`
25106 # A "../" for each directory in $ac_dir_suffix.
25107 ac_top_builddir=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,../,g'`
25109 ac_dir_suffix= ac_top_builddir=
25113 .) # No --srcdir option. We are building in place.
25115 if test -z "$ac_top_builddir"; then
25118 ac_top_srcdir=`echo $ac_top_builddir | sed 's,/$,,'`
25120 [\\/]* | ?:[\\/]* ) # Absolute path.
25121 ac_srcdir=$srcdir$ac_dir_suffix;
25122 ac_top_srcdir=$srcdir ;;
25123 *) # Relative path.
25124 ac_srcdir=$ac_top_builddir$srcdir$ac_dir_suffix
25125 ac_top_srcdir=$ac_top_builddir$srcdir ;;
25128 # Do not use `cd foo && pwd` to compute absolute paths, because
25129 # the directories may not exist.
25131 .) ac_abs_builddir="$ac_dir";;
25134 .) ac_abs_builddir=`pwd`;;
25135 [\\/]* | ?:[\\/]* ) ac_abs_builddir="$ac_dir";;
25136 *) ac_abs_builddir=`pwd`/"$ac_dir";;
25139 case $ac_abs_builddir in
25140 .) ac_abs_top_builddir=${ac_top_builddir}.;;
25142 case ${ac_top_builddir}. in
25143 .) ac_abs_top_builddir=$ac_abs_builddir;;
25144 [\\/]* | ?:[\\/]* ) ac_abs_top_builddir=${ac_top_builddir}.;;
25145 *) ac_abs_top_builddir=$ac_abs_builddir/${ac_top_builddir}.;;
25148 case $ac_abs_builddir in
25149 .) ac_abs_srcdir=$ac_srcdir;;
25152 .) ac_abs_srcdir=$ac_abs_builddir;;
25153 [\\/]* | ?:[\\/]* ) ac_abs_srcdir=$ac_srcdir;;
25154 *) ac_abs_srcdir=$ac_abs_builddir/$ac_srcdir;;
25157 case $ac_abs_builddir in
25158 .) ac_abs_top_srcdir=$ac_top_srcdir;;
25160 case $ac_top_srcdir in
25161 .) ac_abs_top_srcdir=$ac_abs_builddir;;
25162 [\\/]* | ?:[\\/]* ) ac_abs_top_srcdir=$ac_top_srcdir;;
25163 *) ac_abs_top_srcdir=$ac_abs_builddir/$ac_top_srcdir;;
25170 # Check for guested configure; otherwise get Cygnus style configure.
25171 if test -f $ac_srcdir/configure.gnu; then
25172 ac_sub_configure="$SHELL '$ac_srcdir/configure.gnu'"
25173 elif test -f $ac_srcdir/configure; then
25174 ac_sub_configure="$SHELL '$ac_srcdir/configure'"
25175 elif test -f $ac_srcdir/configure.in; then
25176 ac_sub_configure=$ac_configure
25178 { echo "$as_me:$LINENO: WARNING: no configuration information is in $ac_dir" >&5
25179 echo "$as_me: WARNING: no configuration information is in $ac_dir" >&2;}
25183 # The recursion is here.
25184 if test -n "$ac_sub_configure"; then
25185 # Make the cache file name correct relative to the subdirectory.
25186 case $cache_file in
25187 [\\/]* | ?:[\\/]* ) ac_sub_cache_file=$cache_file ;;
25188 *) # Relative path.
25189 ac_sub_cache_file=$ac_top_builddir$cache_file ;;
25192 { echo "$as_me:$LINENO: running $ac_sub_configure $ac_sub_configure_args --cache-file=$ac_sub_cache_file --srcdir=$ac_srcdir" >&5
25193 echo "$as_me: running $ac_sub_configure $ac_sub_configure_args --cache-file=$ac_sub_cache_file --srcdir=$ac_srcdir" >&6;}
25194 # The eval makes quoting arguments work.
25195 eval $ac_sub_configure $ac_sub_configure_args \
25196 --cache-file=$ac_sub_cache_file --srcdir=$ac_srcdir ||
25197 { { echo "$as_me:$LINENO: error: $ac_sub_configure failed for $ac_dir" >&5
25198 echo "$as_me: error: $ac_sub_configure failed for $ac_dir" >&2;}
25199 { (exit 1); exit 1; }; }