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 # ------------------------- #
6358 # Checks for header files. #
6359 # ------------------------- #
6367 for ac_hdr in dirent.h sys/ndir.h sys/dir.h ndir.h; do
6368 as_ac_Header=`echo "ac_cv_header_dirent_$ac_hdr" | $as_tr_sh`
6369 echo "$as_me:$LINENO: checking for $ac_hdr that defines DIR" >&5
6370 echo $ECHO_N "checking for $ac_hdr that defines DIR... $ECHO_C" >&6
6371 if eval "test \"\${$as_ac_Header+set}\" = set"; then
6372 echo $ECHO_N "(cached) $ECHO_C" >&6
6374 cat >conftest.$ac_ext <<_ACEOF
6377 cat confdefs.h >>conftest.$ac_ext
6378 cat >>conftest.$ac_ext <<_ACEOF
6379 /* end confdefs.h. */
6380 #include <sys/types.h>
6392 rm -f conftest.$ac_objext
6393 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
6394 (eval $ac_compile) 2>conftest.er1
6396 grep -v '^ *+' conftest.er1 >conftest.err
6398 cat conftest.err >&5
6399 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6400 (exit $ac_status); } &&
6401 { ac_try='test -z "$ac_c_werror_flag"
6402 || test ! -s conftest.err'
6403 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6406 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6407 (exit $ac_status); }; } &&
6408 { ac_try='test -s conftest.$ac_objext'
6409 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6412 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6413 (exit $ac_status); }; }; then
6414 eval "$as_ac_Header=yes"
6416 echo "$as_me: failed program was:" >&5
6417 sed 's/^/| /' conftest.$ac_ext >&5
6419 eval "$as_ac_Header=no"
6421 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
6423 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
6424 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
6425 if test `eval echo '${'$as_ac_Header'}'` = yes; then
6426 cat >>confdefs.h <<_ACEOF
6427 #define `echo "HAVE_$ac_hdr" | $as_tr_cpp` 1
6430 ac_header_dirent=$ac_hdr; break
6434 # Two versions of opendir et al. are in -ldir and -lx on SCO Xenix.
6435 if test $ac_header_dirent = dirent.h; then
6436 echo "$as_me:$LINENO: checking for library containing opendir" >&5
6437 echo $ECHO_N "checking for library containing opendir... $ECHO_C" >&6
6438 if test "${ac_cv_search_opendir+set}" = set; then
6439 echo $ECHO_N "(cached) $ECHO_C" >&6
6441 ac_func_search_save_LIBS=$LIBS
6442 ac_cv_search_opendir=no
6443 cat >conftest.$ac_ext <<_ACEOF
6446 cat confdefs.h >>conftest.$ac_ext
6447 cat >>conftest.$ac_ext <<_ACEOF
6448 /* end confdefs.h. */
6450 /* Override any gcc2 internal prototype to avoid an error. */
6454 /* We use char because int might match the return type of a gcc2
6455 builtin and then its argument prototype would still apply. */
6465 rm -f conftest.$ac_objext conftest$ac_exeext
6466 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
6467 (eval $ac_link) 2>conftest.er1
6469 grep -v '^ *+' conftest.er1 >conftest.err
6471 cat conftest.err >&5
6472 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6473 (exit $ac_status); } &&
6474 { ac_try='test -z "$ac_c_werror_flag"
6475 || test ! -s conftest.err'
6476 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6479 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6480 (exit $ac_status); }; } &&
6481 { ac_try='test -s conftest$ac_exeext'
6482 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6485 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6486 (exit $ac_status); }; }; then
6487 ac_cv_search_opendir="none required"
6489 echo "$as_me: failed program was:" >&5
6490 sed 's/^/| /' conftest.$ac_ext >&5
6493 rm -f conftest.err conftest.$ac_objext \
6494 conftest$ac_exeext conftest.$ac_ext
6495 if test "$ac_cv_search_opendir" = no; then
6496 for ac_lib in dir; do
6497 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
6498 cat >conftest.$ac_ext <<_ACEOF
6501 cat confdefs.h >>conftest.$ac_ext
6502 cat >>conftest.$ac_ext <<_ACEOF
6503 /* end confdefs.h. */
6505 /* Override any gcc2 internal prototype to avoid an error. */
6509 /* We use char because int might match the return type of a gcc2
6510 builtin and then its argument prototype would still apply. */
6520 rm -f conftest.$ac_objext conftest$ac_exeext
6521 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
6522 (eval $ac_link) 2>conftest.er1
6524 grep -v '^ *+' conftest.er1 >conftest.err
6526 cat conftest.err >&5
6527 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6528 (exit $ac_status); } &&
6529 { ac_try='test -z "$ac_c_werror_flag"
6530 || test ! -s conftest.err'
6531 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6534 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6535 (exit $ac_status); }; } &&
6536 { ac_try='test -s conftest$ac_exeext'
6537 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6540 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6541 (exit $ac_status); }; }; then
6542 ac_cv_search_opendir="-l$ac_lib"
6545 echo "$as_me: failed program was:" >&5
6546 sed 's/^/| /' conftest.$ac_ext >&5
6549 rm -f conftest.err conftest.$ac_objext \
6550 conftest$ac_exeext conftest.$ac_ext
6553 LIBS=$ac_func_search_save_LIBS
6555 echo "$as_me:$LINENO: result: $ac_cv_search_opendir" >&5
6556 echo "${ECHO_T}$ac_cv_search_opendir" >&6
6557 if test "$ac_cv_search_opendir" != no; then
6558 test "$ac_cv_search_opendir" = "none required" || LIBS="$ac_cv_search_opendir $LIBS"
6563 echo "$as_me:$LINENO: checking for library containing opendir" >&5
6564 echo $ECHO_N "checking for library containing opendir... $ECHO_C" >&6
6565 if test "${ac_cv_search_opendir+set}" = set; then
6566 echo $ECHO_N "(cached) $ECHO_C" >&6
6568 ac_func_search_save_LIBS=$LIBS
6569 ac_cv_search_opendir=no
6570 cat >conftest.$ac_ext <<_ACEOF
6573 cat confdefs.h >>conftest.$ac_ext
6574 cat >>conftest.$ac_ext <<_ACEOF
6575 /* end confdefs.h. */
6577 /* Override any gcc2 internal prototype to avoid an error. */
6581 /* We use char because int might match the return type of a gcc2
6582 builtin and then its argument prototype would still apply. */
6592 rm -f conftest.$ac_objext conftest$ac_exeext
6593 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
6594 (eval $ac_link) 2>conftest.er1
6596 grep -v '^ *+' conftest.er1 >conftest.err
6598 cat conftest.err >&5
6599 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6600 (exit $ac_status); } &&
6601 { ac_try='test -z "$ac_c_werror_flag"
6602 || test ! -s conftest.err'
6603 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6606 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6607 (exit $ac_status); }; } &&
6608 { ac_try='test -s conftest$ac_exeext'
6609 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6612 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6613 (exit $ac_status); }; }; then
6614 ac_cv_search_opendir="none required"
6616 echo "$as_me: failed program was:" >&5
6617 sed 's/^/| /' conftest.$ac_ext >&5
6620 rm -f conftest.err conftest.$ac_objext \
6621 conftest$ac_exeext conftest.$ac_ext
6622 if test "$ac_cv_search_opendir" = no; then
6624 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
6625 cat >conftest.$ac_ext <<_ACEOF
6628 cat confdefs.h >>conftest.$ac_ext
6629 cat >>conftest.$ac_ext <<_ACEOF
6630 /* end confdefs.h. */
6632 /* Override any gcc2 internal prototype to avoid an error. */
6636 /* We use char because int might match the return type of a gcc2
6637 builtin and then its argument prototype would still apply. */
6647 rm -f conftest.$ac_objext conftest$ac_exeext
6648 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
6649 (eval $ac_link) 2>conftest.er1
6651 grep -v '^ *+' conftest.er1 >conftest.err
6653 cat conftest.err >&5
6654 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6655 (exit $ac_status); } &&
6656 { ac_try='test -z "$ac_c_werror_flag"
6657 || test ! -s conftest.err'
6658 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6661 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6662 (exit $ac_status); }; } &&
6663 { ac_try='test -s conftest$ac_exeext'
6664 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6667 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6668 (exit $ac_status); }; }; then
6669 ac_cv_search_opendir="-l$ac_lib"
6672 echo "$as_me: failed program was:" >&5
6673 sed 's/^/| /' conftest.$ac_ext >&5
6676 rm -f conftest.err conftest.$ac_objext \
6677 conftest$ac_exeext conftest.$ac_ext
6680 LIBS=$ac_func_search_save_LIBS
6682 echo "$as_me:$LINENO: result: $ac_cv_search_opendir" >&5
6683 echo "${ECHO_T}$ac_cv_search_opendir" >&6
6684 if test "$ac_cv_search_opendir" != no; then
6685 test "$ac_cv_search_opendir" = "none required" || LIBS="$ac_cv_search_opendir $LIBS"
6691 echo "$as_me:$LINENO: checking whether stat file-mode macros are broken" >&5
6692 echo $ECHO_N "checking whether stat file-mode macros are broken... $ECHO_C" >&6
6693 if test "${ac_cv_header_stat_broken+set}" = set; then
6694 echo $ECHO_N "(cached) $ECHO_C" >&6
6696 cat >conftest.$ac_ext <<_ACEOF
6699 cat confdefs.h >>conftest.$ac_ext
6700 cat >>conftest.$ac_ext <<_ACEOF
6701 /* end confdefs.h. */
6702 #include <sys/types.h>
6703 #include <sys/stat.h>
6705 #if defined(S_ISBLK) && defined(S_IFDIR)
6706 # if S_ISBLK (S_IFDIR)
6711 #if defined(S_ISBLK) && defined(S_IFCHR)
6712 # if S_ISBLK (S_IFCHR)
6717 #if defined(S_ISLNK) && defined(S_IFREG)
6718 # if S_ISLNK (S_IFREG)
6723 #if defined(S_ISSOCK) && defined(S_IFREG)
6724 # if S_ISSOCK (S_IFREG)
6730 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
6731 $EGREP "You lose" >/dev/null 2>&1; then
6732 ac_cv_header_stat_broken=yes
6734 ac_cv_header_stat_broken=no
6739 echo "$as_me:$LINENO: result: $ac_cv_header_stat_broken" >&5
6740 echo "${ECHO_T}$ac_cv_header_stat_broken" >&6
6741 if test $ac_cv_header_stat_broken = yes; then
6743 cat >>confdefs.h <<\_ACEOF
6744 #define STAT_MACROS_BROKEN 1
6749 echo "$as_me:$LINENO: checking for ANSI C header files" >&5
6750 echo $ECHO_N "checking for ANSI C header files... $ECHO_C" >&6
6751 if test "${ac_cv_header_stdc+set}" = set; then
6752 echo $ECHO_N "(cached) $ECHO_C" >&6
6754 cat >conftest.$ac_ext <<_ACEOF
6757 cat confdefs.h >>conftest.$ac_ext
6758 cat >>conftest.$ac_ext <<_ACEOF
6759 /* end confdefs.h. */
6773 rm -f conftest.$ac_objext
6774 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
6775 (eval $ac_compile) 2>conftest.er1
6777 grep -v '^ *+' conftest.er1 >conftest.err
6779 cat conftest.err >&5
6780 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6781 (exit $ac_status); } &&
6782 { ac_try='test -z "$ac_c_werror_flag"
6783 || test ! -s conftest.err'
6784 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6787 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6788 (exit $ac_status); }; } &&
6789 { ac_try='test -s conftest.$ac_objext'
6790 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6793 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6794 (exit $ac_status); }; }; then
6795 ac_cv_header_stdc=yes
6797 echo "$as_me: failed program was:" >&5
6798 sed 's/^/| /' conftest.$ac_ext >&5
6800 ac_cv_header_stdc=no
6802 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
6804 if test $ac_cv_header_stdc = yes; then
6805 # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
6806 cat >conftest.$ac_ext <<_ACEOF
6809 cat confdefs.h >>conftest.$ac_ext
6810 cat >>conftest.$ac_ext <<_ACEOF
6811 /* end confdefs.h. */
6815 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
6816 $EGREP "memchr" >/dev/null 2>&1; then
6819 ac_cv_header_stdc=no
6825 if test $ac_cv_header_stdc = yes; then
6826 # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
6827 cat >conftest.$ac_ext <<_ACEOF
6830 cat confdefs.h >>conftest.$ac_ext
6831 cat >>conftest.$ac_ext <<_ACEOF
6832 /* end confdefs.h. */
6836 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
6837 $EGREP "free" >/dev/null 2>&1; then
6840 ac_cv_header_stdc=no
6846 if test $ac_cv_header_stdc = yes; then
6847 # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
6848 if test "$cross_compiling" = yes; then
6851 cat >conftest.$ac_ext <<_ACEOF
6854 cat confdefs.h >>conftest.$ac_ext
6855 cat >>conftest.$ac_ext <<_ACEOF
6856 /* end confdefs.h. */
6858 #if ((' ' & 0x0FF) == 0x020)
6859 # define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
6860 # define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
6862 # define ISLOWER(c) \
6863 (('a' <= (c) && (c) <= 'i') \
6864 || ('j' <= (c) && (c) <= 'r') \
6865 || ('s' <= (c) && (c) <= 'z'))
6866 # define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
6869 #define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
6874 for (i = 0; i < 256; i++)
6875 if (XOR (islower (i), ISLOWER (i))
6876 || toupper (i) != TOUPPER (i))
6881 rm -f conftest$ac_exeext
6882 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
6883 (eval $ac_link) 2>&5
6885 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6886 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
6887 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6890 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6891 (exit $ac_status); }; }; then
6894 echo "$as_me: program exited with status $ac_status" >&5
6895 echo "$as_me: failed program was:" >&5
6896 sed 's/^/| /' conftest.$ac_ext >&5
6899 ac_cv_header_stdc=no
6901 rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
6905 echo "$as_me:$LINENO: result: $ac_cv_header_stdc" >&5
6906 echo "${ECHO_T}$ac_cv_header_stdc" >&6
6907 if test $ac_cv_header_stdc = yes; then
6909 cat >>confdefs.h <<\_ACEOF
6910 #define STDC_HEADERS 1
6916 for ac_header in nlist.h
6918 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
6919 if eval "test \"\${$as_ac_Header+set}\" = set"; then
6920 echo "$as_me:$LINENO: checking for $ac_header" >&5
6921 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
6922 if eval "test \"\${$as_ac_Header+set}\" = set"; then
6923 echo $ECHO_N "(cached) $ECHO_C" >&6
6925 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
6926 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
6928 # Is the header compilable?
6929 echo "$as_me:$LINENO: checking $ac_header usability" >&5
6930 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
6931 cat >conftest.$ac_ext <<_ACEOF
6934 cat confdefs.h >>conftest.$ac_ext
6935 cat >>conftest.$ac_ext <<_ACEOF
6936 /* end confdefs.h. */
6937 $ac_includes_default
6938 #include <$ac_header>
6940 rm -f conftest.$ac_objext
6941 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
6942 (eval $ac_compile) 2>conftest.er1
6944 grep -v '^ *+' conftest.er1 >conftest.err
6946 cat conftest.err >&5
6947 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6948 (exit $ac_status); } &&
6949 { ac_try='test -z "$ac_c_werror_flag"
6950 || test ! -s conftest.err'
6951 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6954 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6955 (exit $ac_status); }; } &&
6956 { ac_try='test -s conftest.$ac_objext'
6957 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6960 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6961 (exit $ac_status); }; }; then
6962 ac_header_compiler=yes
6964 echo "$as_me: failed program was:" >&5
6965 sed 's/^/| /' conftest.$ac_ext >&5
6967 ac_header_compiler=no
6969 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
6970 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
6971 echo "${ECHO_T}$ac_header_compiler" >&6
6973 # Is the header present?
6974 echo "$as_me:$LINENO: checking $ac_header presence" >&5
6975 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
6976 cat >conftest.$ac_ext <<_ACEOF
6979 cat confdefs.h >>conftest.$ac_ext
6980 cat >>conftest.$ac_ext <<_ACEOF
6981 /* end confdefs.h. */
6982 #include <$ac_header>
6984 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
6985 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
6987 grep -v '^ *+' conftest.er1 >conftest.err
6989 cat conftest.err >&5
6990 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6991 (exit $ac_status); } >/dev/null; then
6992 if test -s conftest.err; then
6993 ac_cpp_err=$ac_c_preproc_warn_flag
6994 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
7001 if test -z "$ac_cpp_err"; then
7002 ac_header_preproc=yes
7004 echo "$as_me: failed program was:" >&5
7005 sed 's/^/| /' conftest.$ac_ext >&5
7007 ac_header_preproc=no
7009 rm -f conftest.err conftest.$ac_ext
7010 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
7011 echo "${ECHO_T}$ac_header_preproc" >&6
7013 # So? What about this header?
7014 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
7016 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
7017 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
7018 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
7019 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
7020 ac_header_preproc=yes
7023 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
7024 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
7025 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
7026 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
7027 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
7028 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
7029 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
7030 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
7031 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
7032 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
7033 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
7034 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
7037 ## ------------------------------------------ ##
7038 ## Report this to the AC_PACKAGE_NAME lists. ##
7039 ## ------------------------------------------ ##
7042 sed "s/^/$as_me: WARNING: /" >&2
7045 echo "$as_me:$LINENO: checking for $ac_header" >&5
7046 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
7047 if eval "test \"\${$as_ac_Header+set}\" = set"; then
7048 echo $ECHO_N "(cached) $ECHO_C" >&6
7050 eval "$as_ac_Header=\$ac_header_preproc"
7052 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
7053 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
7056 if test `eval echo '${'$as_ac_Header'}'` = yes; then
7057 cat >>confdefs.h <<_ACEOF
7058 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
7066 for ac_header in link.h
7068 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
7069 echo "$as_me:$LINENO: checking for $ac_header" >&5
7070 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
7071 if eval "test \"\${$as_ac_Header+set}\" = set"; then
7072 echo $ECHO_N "(cached) $ECHO_C" >&6
7074 cat >conftest.$ac_ext <<_ACEOF
7077 cat confdefs.h >>conftest.$ac_ext
7078 cat >>conftest.$ac_ext <<_ACEOF
7079 /* end confdefs.h. */
7080 #if HAVE_SYS_TYPES_H
7081 # include <sys/types.h>
7088 #include <$ac_header>
7090 rm -f conftest.$ac_objext
7091 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
7092 (eval $ac_compile) 2>conftest.er1
7094 grep -v '^ *+' conftest.er1 >conftest.err
7096 cat conftest.err >&5
7097 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7098 (exit $ac_status); } &&
7099 { ac_try='test -z "$ac_c_werror_flag"
7100 || test ! -s conftest.err'
7101 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7104 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7105 (exit $ac_status); }; } &&
7106 { ac_try='test -s conftest.$ac_objext'
7107 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7110 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7111 (exit $ac_status); }; }; then
7112 eval "$as_ac_Header=yes"
7114 echo "$as_me: failed program was:" >&5
7115 sed 's/^/| /' conftest.$ac_ext >&5
7117 eval "$as_ac_Header=no"
7119 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
7121 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
7122 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
7123 if test `eval echo '${'$as_ac_Header'}'` = yes; then
7124 cat >>confdefs.h <<_ACEOF
7125 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
7133 for ac_header in machine/reg.h
7135 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
7136 if eval "test \"\${$as_ac_Header+set}\" = set"; then
7137 echo "$as_me:$LINENO: checking for $ac_header" >&5
7138 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
7139 if eval "test \"\${$as_ac_Header+set}\" = set"; then
7140 echo $ECHO_N "(cached) $ECHO_C" >&6
7142 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
7143 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
7145 # Is the header compilable?
7146 echo "$as_me:$LINENO: checking $ac_header usability" >&5
7147 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
7148 cat >conftest.$ac_ext <<_ACEOF
7151 cat confdefs.h >>conftest.$ac_ext
7152 cat >>conftest.$ac_ext <<_ACEOF
7153 /* end confdefs.h. */
7154 $ac_includes_default
7155 #include <$ac_header>
7157 rm -f conftest.$ac_objext
7158 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
7159 (eval $ac_compile) 2>conftest.er1
7161 grep -v '^ *+' conftest.er1 >conftest.err
7163 cat conftest.err >&5
7164 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7165 (exit $ac_status); } &&
7166 { ac_try='test -z "$ac_c_werror_flag"
7167 || test ! -s conftest.err'
7168 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7171 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7172 (exit $ac_status); }; } &&
7173 { ac_try='test -s conftest.$ac_objext'
7174 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7177 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7178 (exit $ac_status); }; }; then
7179 ac_header_compiler=yes
7181 echo "$as_me: failed program was:" >&5
7182 sed 's/^/| /' conftest.$ac_ext >&5
7184 ac_header_compiler=no
7186 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
7187 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
7188 echo "${ECHO_T}$ac_header_compiler" >&6
7190 # Is the header present?
7191 echo "$as_me:$LINENO: checking $ac_header presence" >&5
7192 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
7193 cat >conftest.$ac_ext <<_ACEOF
7196 cat confdefs.h >>conftest.$ac_ext
7197 cat >>conftest.$ac_ext <<_ACEOF
7198 /* end confdefs.h. */
7199 #include <$ac_header>
7201 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
7202 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
7204 grep -v '^ *+' conftest.er1 >conftest.err
7206 cat conftest.err >&5
7207 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7208 (exit $ac_status); } >/dev/null; then
7209 if test -s conftest.err; then
7210 ac_cpp_err=$ac_c_preproc_warn_flag
7211 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
7218 if test -z "$ac_cpp_err"; then
7219 ac_header_preproc=yes
7221 echo "$as_me: failed program was:" >&5
7222 sed 's/^/| /' conftest.$ac_ext >&5
7224 ac_header_preproc=no
7226 rm -f conftest.err conftest.$ac_ext
7227 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
7228 echo "${ECHO_T}$ac_header_preproc" >&6
7230 # So? What about this header?
7231 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
7233 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
7234 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
7235 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
7236 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
7237 ac_header_preproc=yes
7240 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
7241 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
7242 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
7243 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
7244 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
7245 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
7246 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
7247 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
7248 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
7249 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
7250 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
7251 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
7254 ## ------------------------------------------ ##
7255 ## Report this to the AC_PACKAGE_NAME lists. ##
7256 ## ------------------------------------------ ##
7259 sed "s/^/$as_me: WARNING: /" >&2
7262 echo "$as_me:$LINENO: checking for $ac_header" >&5
7263 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
7264 if eval "test \"\${$as_ac_Header+set}\" = set"; then
7265 echo $ECHO_N "(cached) $ECHO_C" >&6
7267 eval "$as_ac_Header=\$ac_header_preproc"
7269 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
7270 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
7273 if test `eval echo '${'$as_ac_Header'}'` = yes; then
7274 cat >>confdefs.h <<_ACEOF
7275 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
7284 for ac_header in poll.h sys/poll.h
7286 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
7287 if eval "test \"\${$as_ac_Header+set}\" = set"; then
7288 echo "$as_me:$LINENO: checking for $ac_header" >&5
7289 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
7290 if eval "test \"\${$as_ac_Header+set}\" = set"; then
7291 echo $ECHO_N "(cached) $ECHO_C" >&6
7293 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
7294 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
7296 # Is the header compilable?
7297 echo "$as_me:$LINENO: checking $ac_header usability" >&5
7298 echo $ECHO_N "checking $ac_header usability... $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 $ac_includes_default
7306 #include <$ac_header>
7308 rm -f conftest.$ac_objext
7309 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
7310 (eval $ac_compile) 2>conftest.er1
7312 grep -v '^ *+' conftest.er1 >conftest.err
7314 cat conftest.err >&5
7315 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7316 (exit $ac_status); } &&
7317 { ac_try='test -z "$ac_c_werror_flag"
7318 || test ! -s conftest.err'
7319 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7322 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7323 (exit $ac_status); }; } &&
7324 { ac_try='test -s conftest.$ac_objext'
7325 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7328 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7329 (exit $ac_status); }; }; then
7330 ac_header_compiler=yes
7332 echo "$as_me: failed program was:" >&5
7333 sed 's/^/| /' conftest.$ac_ext >&5
7335 ac_header_compiler=no
7337 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
7338 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
7339 echo "${ECHO_T}$ac_header_compiler" >&6
7341 # Is the header present?
7342 echo "$as_me:$LINENO: checking $ac_header presence" >&5
7343 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
7344 cat >conftest.$ac_ext <<_ACEOF
7347 cat confdefs.h >>conftest.$ac_ext
7348 cat >>conftest.$ac_ext <<_ACEOF
7349 /* end confdefs.h. */
7350 #include <$ac_header>
7352 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
7353 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
7355 grep -v '^ *+' conftest.er1 >conftest.err
7357 cat conftest.err >&5
7358 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7359 (exit $ac_status); } >/dev/null; then
7360 if test -s conftest.err; then
7361 ac_cpp_err=$ac_c_preproc_warn_flag
7362 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
7369 if test -z "$ac_cpp_err"; then
7370 ac_header_preproc=yes
7372 echo "$as_me: failed program was:" >&5
7373 sed 's/^/| /' conftest.$ac_ext >&5
7375 ac_header_preproc=no
7377 rm -f conftest.err conftest.$ac_ext
7378 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
7379 echo "${ECHO_T}$ac_header_preproc" >&6
7381 # So? What about this header?
7382 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
7384 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
7385 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
7386 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
7387 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
7388 ac_header_preproc=yes
7391 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
7392 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
7393 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
7394 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
7395 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
7396 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
7397 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
7398 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
7399 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
7400 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
7401 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
7402 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
7405 ## ------------------------------------------ ##
7406 ## Report this to the AC_PACKAGE_NAME lists. ##
7407 ## ------------------------------------------ ##
7410 sed "s/^/$as_me: WARNING: /" >&2
7413 echo "$as_me:$LINENO: checking for $ac_header" >&5
7414 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
7415 if eval "test \"\${$as_ac_Header+set}\" = set"; then
7416 echo $ECHO_N "(cached) $ECHO_C" >&6
7418 eval "$as_ac_Header=\$ac_header_preproc"
7420 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
7421 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
7424 if test `eval echo '${'$as_ac_Header'}'` = yes; then
7425 cat >>confdefs.h <<_ACEOF
7426 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
7436 for ac_header in proc_service.h thread_db.h gnu/libc-version.h
7438 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
7439 if eval "test \"\${$as_ac_Header+set}\" = set"; then
7440 echo "$as_me:$LINENO: checking for $ac_header" >&5
7441 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
7442 if eval "test \"\${$as_ac_Header+set}\" = set"; then
7443 echo $ECHO_N "(cached) $ECHO_C" >&6
7445 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
7446 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
7448 # Is the header compilable?
7449 echo "$as_me:$LINENO: checking $ac_header usability" >&5
7450 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
7451 cat >conftest.$ac_ext <<_ACEOF
7454 cat confdefs.h >>conftest.$ac_ext
7455 cat >>conftest.$ac_ext <<_ACEOF
7456 /* end confdefs.h. */
7457 $ac_includes_default
7458 #include <$ac_header>
7460 rm -f conftest.$ac_objext
7461 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
7462 (eval $ac_compile) 2>conftest.er1
7464 grep -v '^ *+' conftest.er1 >conftest.err
7466 cat conftest.err >&5
7467 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7468 (exit $ac_status); } &&
7469 { ac_try='test -z "$ac_c_werror_flag"
7470 || test ! -s conftest.err'
7471 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7474 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7475 (exit $ac_status); }; } &&
7476 { ac_try='test -s conftest.$ac_objext'
7477 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7480 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7481 (exit $ac_status); }; }; then
7482 ac_header_compiler=yes
7484 echo "$as_me: failed program was:" >&5
7485 sed 's/^/| /' conftest.$ac_ext >&5
7487 ac_header_compiler=no
7489 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
7490 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
7491 echo "${ECHO_T}$ac_header_compiler" >&6
7493 # Is the header present?
7494 echo "$as_me:$LINENO: checking $ac_header presence" >&5
7495 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
7496 cat >conftest.$ac_ext <<_ACEOF
7499 cat confdefs.h >>conftest.$ac_ext
7500 cat >>conftest.$ac_ext <<_ACEOF
7501 /* end confdefs.h. */
7502 #include <$ac_header>
7504 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
7505 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
7507 grep -v '^ *+' conftest.er1 >conftest.err
7509 cat conftest.err >&5
7510 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7511 (exit $ac_status); } >/dev/null; then
7512 if test -s conftest.err; then
7513 ac_cpp_err=$ac_c_preproc_warn_flag
7514 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
7521 if test -z "$ac_cpp_err"; then
7522 ac_header_preproc=yes
7524 echo "$as_me: failed program was:" >&5
7525 sed 's/^/| /' conftest.$ac_ext >&5
7527 ac_header_preproc=no
7529 rm -f conftest.err conftest.$ac_ext
7530 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
7531 echo "${ECHO_T}$ac_header_preproc" >&6
7533 # So? What about this header?
7534 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
7536 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
7537 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
7538 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
7539 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
7540 ac_header_preproc=yes
7543 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
7544 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
7545 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
7546 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
7547 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
7548 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
7549 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
7550 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
7551 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
7552 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
7553 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
7554 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
7557 ## ------------------------------------------ ##
7558 ## Report this to the AC_PACKAGE_NAME lists. ##
7559 ## ------------------------------------------ ##
7562 sed "s/^/$as_me: WARNING: /" >&2
7565 echo "$as_me:$LINENO: checking for $ac_header" >&5
7566 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
7567 if eval "test \"\${$as_ac_Header+set}\" = set"; then
7568 echo $ECHO_N "(cached) $ECHO_C" >&6
7570 eval "$as_ac_Header=\$ac_header_preproc"
7572 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
7573 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
7576 if test `eval echo '${'$as_ac_Header'}'` = yes; then
7577 cat >>confdefs.h <<_ACEOF
7578 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
7586 for ac_header in stddef.h
7588 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
7589 if eval "test \"\${$as_ac_Header+set}\" = set"; then
7590 echo "$as_me:$LINENO: checking for $ac_header" >&5
7591 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
7592 if eval "test \"\${$as_ac_Header+set}\" = set"; then
7593 echo $ECHO_N "(cached) $ECHO_C" >&6
7595 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
7596 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
7598 # Is the header compilable?
7599 echo "$as_me:$LINENO: checking $ac_header usability" >&5
7600 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
7601 cat >conftest.$ac_ext <<_ACEOF
7604 cat confdefs.h >>conftest.$ac_ext
7605 cat >>conftest.$ac_ext <<_ACEOF
7606 /* end confdefs.h. */
7607 $ac_includes_default
7608 #include <$ac_header>
7610 rm -f conftest.$ac_objext
7611 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
7612 (eval $ac_compile) 2>conftest.er1
7614 grep -v '^ *+' conftest.er1 >conftest.err
7616 cat conftest.err >&5
7617 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7618 (exit $ac_status); } &&
7619 { ac_try='test -z "$ac_c_werror_flag"
7620 || test ! -s conftest.err'
7621 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7624 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7625 (exit $ac_status); }; } &&
7626 { ac_try='test -s conftest.$ac_objext'
7627 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7630 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7631 (exit $ac_status); }; }; then
7632 ac_header_compiler=yes
7634 echo "$as_me: failed program was:" >&5
7635 sed 's/^/| /' conftest.$ac_ext >&5
7637 ac_header_compiler=no
7639 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
7640 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
7641 echo "${ECHO_T}$ac_header_compiler" >&6
7643 # Is the header present?
7644 echo "$as_me:$LINENO: checking $ac_header presence" >&5
7645 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
7646 cat >conftest.$ac_ext <<_ACEOF
7649 cat confdefs.h >>conftest.$ac_ext
7650 cat >>conftest.$ac_ext <<_ACEOF
7651 /* end confdefs.h. */
7652 #include <$ac_header>
7654 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
7655 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
7657 grep -v '^ *+' conftest.er1 >conftest.err
7659 cat conftest.err >&5
7660 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7661 (exit $ac_status); } >/dev/null; then
7662 if test -s conftest.err; then
7663 ac_cpp_err=$ac_c_preproc_warn_flag
7664 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
7671 if test -z "$ac_cpp_err"; then
7672 ac_header_preproc=yes
7674 echo "$as_me: failed program was:" >&5
7675 sed 's/^/| /' conftest.$ac_ext >&5
7677 ac_header_preproc=no
7679 rm -f conftest.err conftest.$ac_ext
7680 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
7681 echo "${ECHO_T}$ac_header_preproc" >&6
7683 # So? What about this header?
7684 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
7686 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
7687 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
7688 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
7689 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
7690 ac_header_preproc=yes
7693 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
7694 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
7695 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
7696 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
7697 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
7698 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
7699 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
7700 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
7701 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
7702 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
7703 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
7704 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
7707 ## ------------------------------------------ ##
7708 ## Report this to the AC_PACKAGE_NAME lists. ##
7709 ## ------------------------------------------ ##
7712 sed "s/^/$as_me: WARNING: /" >&2
7715 echo "$as_me:$LINENO: checking for $ac_header" >&5
7716 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
7717 if eval "test \"\${$as_ac_Header+set}\" = set"; then
7718 echo $ECHO_N "(cached) $ECHO_C" >&6
7720 eval "$as_ac_Header=\$ac_header_preproc"
7722 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
7723 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
7726 if test `eval echo '${'$as_ac_Header'}'` = yes; then
7727 cat >>confdefs.h <<_ACEOF
7728 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
7736 for ac_header in stdlib.h
7738 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
7739 if eval "test \"\${$as_ac_Header+set}\" = set"; then
7740 echo "$as_me:$LINENO: checking for $ac_header" >&5
7741 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
7742 if eval "test \"\${$as_ac_Header+set}\" = set"; then
7743 echo $ECHO_N "(cached) $ECHO_C" >&6
7745 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
7746 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
7748 # Is the header compilable?
7749 echo "$as_me:$LINENO: checking $ac_header usability" >&5
7750 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
7751 cat >conftest.$ac_ext <<_ACEOF
7754 cat confdefs.h >>conftest.$ac_ext
7755 cat >>conftest.$ac_ext <<_ACEOF
7756 /* end confdefs.h. */
7757 $ac_includes_default
7758 #include <$ac_header>
7760 rm -f conftest.$ac_objext
7761 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
7762 (eval $ac_compile) 2>conftest.er1
7764 grep -v '^ *+' conftest.er1 >conftest.err
7766 cat conftest.err >&5
7767 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7768 (exit $ac_status); } &&
7769 { ac_try='test -z "$ac_c_werror_flag"
7770 || test ! -s conftest.err'
7771 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7774 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7775 (exit $ac_status); }; } &&
7776 { ac_try='test -s conftest.$ac_objext'
7777 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7780 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7781 (exit $ac_status); }; }; then
7782 ac_header_compiler=yes
7784 echo "$as_me: failed program was:" >&5
7785 sed 's/^/| /' conftest.$ac_ext >&5
7787 ac_header_compiler=no
7789 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
7790 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
7791 echo "${ECHO_T}$ac_header_compiler" >&6
7793 # Is the header present?
7794 echo "$as_me:$LINENO: checking $ac_header presence" >&5
7795 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
7796 cat >conftest.$ac_ext <<_ACEOF
7799 cat confdefs.h >>conftest.$ac_ext
7800 cat >>conftest.$ac_ext <<_ACEOF
7801 /* end confdefs.h. */
7802 #include <$ac_header>
7804 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
7805 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
7807 grep -v '^ *+' conftest.er1 >conftest.err
7809 cat conftest.err >&5
7810 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7811 (exit $ac_status); } >/dev/null; then
7812 if test -s conftest.err; then
7813 ac_cpp_err=$ac_c_preproc_warn_flag
7814 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
7821 if test -z "$ac_cpp_err"; then
7822 ac_header_preproc=yes
7824 echo "$as_me: failed program was:" >&5
7825 sed 's/^/| /' conftest.$ac_ext >&5
7827 ac_header_preproc=no
7829 rm -f conftest.err conftest.$ac_ext
7830 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
7831 echo "${ECHO_T}$ac_header_preproc" >&6
7833 # So? What about this header?
7834 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
7836 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
7837 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
7838 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
7839 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
7840 ac_header_preproc=yes
7843 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
7844 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
7845 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
7846 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
7847 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
7848 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
7849 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
7850 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
7851 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
7852 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
7853 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
7854 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
7857 ## ------------------------------------------ ##
7858 ## Report this to the AC_PACKAGE_NAME lists. ##
7859 ## ------------------------------------------ ##
7862 sed "s/^/$as_me: WARNING: /" >&2
7865 echo "$as_me:$LINENO: checking for $ac_header" >&5
7866 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
7867 if eval "test \"\${$as_ac_Header+set}\" = set"; then
7868 echo $ECHO_N "(cached) $ECHO_C" >&6
7870 eval "$as_ac_Header=\$ac_header_preproc"
7872 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
7873 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
7876 if test `eval echo '${'$as_ac_Header'}'` = yes; then
7877 cat >>confdefs.h <<_ACEOF
7878 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
7886 for ac_header in stdint.h
7888 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
7889 if eval "test \"\${$as_ac_Header+set}\" = set"; then
7890 echo "$as_me:$LINENO: checking for $ac_header" >&5
7891 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
7892 if eval "test \"\${$as_ac_Header+set}\" = set"; then
7893 echo $ECHO_N "(cached) $ECHO_C" >&6
7895 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
7896 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
7898 # Is the header compilable?
7899 echo "$as_me:$LINENO: checking $ac_header usability" >&5
7900 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
7901 cat >conftest.$ac_ext <<_ACEOF
7904 cat confdefs.h >>conftest.$ac_ext
7905 cat >>conftest.$ac_ext <<_ACEOF
7906 /* end confdefs.h. */
7907 $ac_includes_default
7908 #include <$ac_header>
7910 rm -f conftest.$ac_objext
7911 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
7912 (eval $ac_compile) 2>conftest.er1
7914 grep -v '^ *+' conftest.er1 >conftest.err
7916 cat conftest.err >&5
7917 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7918 (exit $ac_status); } &&
7919 { ac_try='test -z "$ac_c_werror_flag"
7920 || test ! -s conftest.err'
7921 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7924 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7925 (exit $ac_status); }; } &&
7926 { ac_try='test -s conftest.$ac_objext'
7927 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7930 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7931 (exit $ac_status); }; }; then
7932 ac_header_compiler=yes
7934 echo "$as_me: failed program was:" >&5
7935 sed 's/^/| /' conftest.$ac_ext >&5
7937 ac_header_compiler=no
7939 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
7940 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
7941 echo "${ECHO_T}$ac_header_compiler" >&6
7943 # Is the header present?
7944 echo "$as_me:$LINENO: checking $ac_header presence" >&5
7945 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
7946 cat >conftest.$ac_ext <<_ACEOF
7949 cat confdefs.h >>conftest.$ac_ext
7950 cat >>conftest.$ac_ext <<_ACEOF
7951 /* end confdefs.h. */
7952 #include <$ac_header>
7954 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
7955 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
7957 grep -v '^ *+' conftest.er1 >conftest.err
7959 cat conftest.err >&5
7960 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7961 (exit $ac_status); } >/dev/null; then
7962 if test -s conftest.err; then
7963 ac_cpp_err=$ac_c_preproc_warn_flag
7964 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
7971 if test -z "$ac_cpp_err"; then
7972 ac_header_preproc=yes
7974 echo "$as_me: failed program was:" >&5
7975 sed 's/^/| /' conftest.$ac_ext >&5
7977 ac_header_preproc=no
7979 rm -f conftest.err conftest.$ac_ext
7980 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
7981 echo "${ECHO_T}$ac_header_preproc" >&6
7983 # So? What about this header?
7984 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
7986 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
7987 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
7988 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
7989 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
7990 ac_header_preproc=yes
7993 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
7994 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
7995 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
7996 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
7997 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
7998 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
7999 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
8000 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
8001 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
8002 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
8003 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
8004 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
8007 ## ------------------------------------------ ##
8008 ## Report this to the AC_PACKAGE_NAME lists. ##
8009 ## ------------------------------------------ ##
8012 sed "s/^/$as_me: WARNING: /" >&2
8015 echo "$as_me:$LINENO: checking for $ac_header" >&5
8016 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
8017 if eval "test \"\${$as_ac_Header+set}\" = set"; then
8018 echo $ECHO_N "(cached) $ECHO_C" >&6
8020 eval "$as_ac_Header=\$ac_header_preproc"
8022 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
8023 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
8026 if test `eval echo '${'$as_ac_Header'}'` = yes; then
8027 cat >>confdefs.h <<_ACEOF
8028 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
8038 for ac_header in string.h memory.h strings.h
8040 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
8041 if eval "test \"\${$as_ac_Header+set}\" = set"; then
8042 echo "$as_me:$LINENO: checking for $ac_header" >&5
8043 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
8044 if eval "test \"\${$as_ac_Header+set}\" = set"; then
8045 echo $ECHO_N "(cached) $ECHO_C" >&6
8047 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
8048 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
8050 # Is the header compilable?
8051 echo "$as_me:$LINENO: checking $ac_header usability" >&5
8052 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
8053 cat >conftest.$ac_ext <<_ACEOF
8056 cat confdefs.h >>conftest.$ac_ext
8057 cat >>conftest.$ac_ext <<_ACEOF
8058 /* end confdefs.h. */
8059 $ac_includes_default
8060 #include <$ac_header>
8062 rm -f conftest.$ac_objext
8063 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
8064 (eval $ac_compile) 2>conftest.er1
8066 grep -v '^ *+' conftest.er1 >conftest.err
8068 cat conftest.err >&5
8069 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8070 (exit $ac_status); } &&
8071 { ac_try='test -z "$ac_c_werror_flag"
8072 || test ! -s conftest.err'
8073 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8076 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8077 (exit $ac_status); }; } &&
8078 { ac_try='test -s conftest.$ac_objext'
8079 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8082 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8083 (exit $ac_status); }; }; then
8084 ac_header_compiler=yes
8086 echo "$as_me: failed program was:" >&5
8087 sed 's/^/| /' conftest.$ac_ext >&5
8089 ac_header_compiler=no
8091 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
8092 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
8093 echo "${ECHO_T}$ac_header_compiler" >&6
8095 # Is the header present?
8096 echo "$as_me:$LINENO: checking $ac_header presence" >&5
8097 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
8098 cat >conftest.$ac_ext <<_ACEOF
8101 cat confdefs.h >>conftest.$ac_ext
8102 cat >>conftest.$ac_ext <<_ACEOF
8103 /* end confdefs.h. */
8104 #include <$ac_header>
8106 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
8107 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
8109 grep -v '^ *+' conftest.er1 >conftest.err
8111 cat conftest.err >&5
8112 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8113 (exit $ac_status); } >/dev/null; then
8114 if test -s conftest.err; then
8115 ac_cpp_err=$ac_c_preproc_warn_flag
8116 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
8123 if test -z "$ac_cpp_err"; then
8124 ac_header_preproc=yes
8126 echo "$as_me: failed program was:" >&5
8127 sed 's/^/| /' conftest.$ac_ext >&5
8129 ac_header_preproc=no
8131 rm -f conftest.err conftest.$ac_ext
8132 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
8133 echo "${ECHO_T}$ac_header_preproc" >&6
8135 # So? What about this header?
8136 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
8138 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
8139 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
8140 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
8141 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
8142 ac_header_preproc=yes
8145 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
8146 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
8147 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
8148 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
8149 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
8150 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
8151 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
8152 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
8153 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
8154 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
8155 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
8156 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
8159 ## ------------------------------------------ ##
8160 ## Report this to the AC_PACKAGE_NAME lists. ##
8161 ## ------------------------------------------ ##
8164 sed "s/^/$as_me: WARNING: /" >&2
8167 echo "$as_me:$LINENO: checking for $ac_header" >&5
8168 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
8169 if eval "test \"\${$as_ac_Header+set}\" = set"; then
8170 echo $ECHO_N "(cached) $ECHO_C" >&6
8172 eval "$as_ac_Header=\$ac_header_preproc"
8174 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
8175 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
8178 if test `eval echo '${'$as_ac_Header'}'` = yes; then
8179 cat >>confdefs.h <<_ACEOF
8180 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
8188 for ac_header in sys/fault.h
8190 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
8191 if eval "test \"\${$as_ac_Header+set}\" = set"; then
8192 echo "$as_me:$LINENO: checking for $ac_header" >&5
8193 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
8194 if eval "test \"\${$as_ac_Header+set}\" = set"; then
8195 echo $ECHO_N "(cached) $ECHO_C" >&6
8197 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
8198 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
8200 # Is the header compilable?
8201 echo "$as_me:$LINENO: checking $ac_header usability" >&5
8202 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
8203 cat >conftest.$ac_ext <<_ACEOF
8206 cat confdefs.h >>conftest.$ac_ext
8207 cat >>conftest.$ac_ext <<_ACEOF
8208 /* end confdefs.h. */
8209 $ac_includes_default
8210 #include <$ac_header>
8212 rm -f conftest.$ac_objext
8213 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
8214 (eval $ac_compile) 2>conftest.er1
8216 grep -v '^ *+' conftest.er1 >conftest.err
8218 cat conftest.err >&5
8219 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8220 (exit $ac_status); } &&
8221 { ac_try='test -z "$ac_c_werror_flag"
8222 || test ! -s conftest.err'
8223 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8226 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8227 (exit $ac_status); }; } &&
8228 { ac_try='test -s conftest.$ac_objext'
8229 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8232 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8233 (exit $ac_status); }; }; then
8234 ac_header_compiler=yes
8236 echo "$as_me: failed program was:" >&5
8237 sed 's/^/| /' conftest.$ac_ext >&5
8239 ac_header_compiler=no
8241 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
8242 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
8243 echo "${ECHO_T}$ac_header_compiler" >&6
8245 # Is the header present?
8246 echo "$as_me:$LINENO: checking $ac_header presence" >&5
8247 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
8248 cat >conftest.$ac_ext <<_ACEOF
8251 cat confdefs.h >>conftest.$ac_ext
8252 cat >>conftest.$ac_ext <<_ACEOF
8253 /* end confdefs.h. */
8254 #include <$ac_header>
8256 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
8257 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
8259 grep -v '^ *+' conftest.er1 >conftest.err
8261 cat conftest.err >&5
8262 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8263 (exit $ac_status); } >/dev/null; then
8264 if test -s conftest.err; then
8265 ac_cpp_err=$ac_c_preproc_warn_flag
8266 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
8273 if test -z "$ac_cpp_err"; then
8274 ac_header_preproc=yes
8276 echo "$as_me: failed program was:" >&5
8277 sed 's/^/| /' conftest.$ac_ext >&5
8279 ac_header_preproc=no
8281 rm -f conftest.err conftest.$ac_ext
8282 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
8283 echo "${ECHO_T}$ac_header_preproc" >&6
8285 # So? What about this header?
8286 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
8288 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
8289 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
8290 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
8291 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
8292 ac_header_preproc=yes
8295 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
8296 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
8297 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
8298 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
8299 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
8300 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
8301 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
8302 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
8303 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
8304 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
8305 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
8306 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
8309 ## ------------------------------------------ ##
8310 ## Report this to the AC_PACKAGE_NAME lists. ##
8311 ## ------------------------------------------ ##
8314 sed "s/^/$as_me: WARNING: /" >&2
8317 echo "$as_me:$LINENO: checking for $ac_header" >&5
8318 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
8319 if eval "test \"\${$as_ac_Header+set}\" = set"; then
8320 echo $ECHO_N "(cached) $ECHO_C" >&6
8322 eval "$as_ac_Header=\$ac_header_preproc"
8324 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
8325 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
8328 if test `eval echo '${'$as_ac_Header'}'` = yes; then
8329 cat >>confdefs.h <<_ACEOF
8330 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
8338 for ac_header in sys/file.h
8340 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
8341 if eval "test \"\${$as_ac_Header+set}\" = set"; then
8342 echo "$as_me:$LINENO: checking for $ac_header" >&5
8343 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
8344 if eval "test \"\${$as_ac_Header+set}\" = set"; then
8345 echo $ECHO_N "(cached) $ECHO_C" >&6
8347 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
8348 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
8350 # Is the header compilable?
8351 echo "$as_me:$LINENO: checking $ac_header usability" >&5
8352 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
8353 cat >conftest.$ac_ext <<_ACEOF
8356 cat confdefs.h >>conftest.$ac_ext
8357 cat >>conftest.$ac_ext <<_ACEOF
8358 /* end confdefs.h. */
8359 $ac_includes_default
8360 #include <$ac_header>
8362 rm -f conftest.$ac_objext
8363 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
8364 (eval $ac_compile) 2>conftest.er1
8366 grep -v '^ *+' conftest.er1 >conftest.err
8368 cat conftest.err >&5
8369 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8370 (exit $ac_status); } &&
8371 { ac_try='test -z "$ac_c_werror_flag"
8372 || test ! -s conftest.err'
8373 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8376 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8377 (exit $ac_status); }; } &&
8378 { ac_try='test -s conftest.$ac_objext'
8379 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8382 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8383 (exit $ac_status); }; }; then
8384 ac_header_compiler=yes
8386 echo "$as_me: failed program was:" >&5
8387 sed 's/^/| /' conftest.$ac_ext >&5
8389 ac_header_compiler=no
8391 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
8392 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
8393 echo "${ECHO_T}$ac_header_compiler" >&6
8395 # Is the header present?
8396 echo "$as_me:$LINENO: checking $ac_header presence" >&5
8397 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
8398 cat >conftest.$ac_ext <<_ACEOF
8401 cat confdefs.h >>conftest.$ac_ext
8402 cat >>conftest.$ac_ext <<_ACEOF
8403 /* end confdefs.h. */
8404 #include <$ac_header>
8406 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
8407 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
8409 grep -v '^ *+' conftest.er1 >conftest.err
8411 cat conftest.err >&5
8412 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8413 (exit $ac_status); } >/dev/null; then
8414 if test -s conftest.err; then
8415 ac_cpp_err=$ac_c_preproc_warn_flag
8416 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
8423 if test -z "$ac_cpp_err"; then
8424 ac_header_preproc=yes
8426 echo "$as_me: failed program was:" >&5
8427 sed 's/^/| /' conftest.$ac_ext >&5
8429 ac_header_preproc=no
8431 rm -f conftest.err conftest.$ac_ext
8432 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
8433 echo "${ECHO_T}$ac_header_preproc" >&6
8435 # So? What about this header?
8436 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
8438 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
8439 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
8440 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
8441 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
8442 ac_header_preproc=yes
8445 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
8446 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
8447 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
8448 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
8449 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
8450 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
8451 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
8452 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
8453 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
8454 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
8455 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
8456 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
8459 ## ------------------------------------------ ##
8460 ## Report this to the AC_PACKAGE_NAME lists. ##
8461 ## ------------------------------------------ ##
8464 sed "s/^/$as_me: WARNING: /" >&2
8467 echo "$as_me:$LINENO: checking for $ac_header" >&5
8468 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
8469 if eval "test \"\${$as_ac_Header+set}\" = set"; then
8470 echo $ECHO_N "(cached) $ECHO_C" >&6
8472 eval "$as_ac_Header=\$ac_header_preproc"
8474 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
8475 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
8478 if test `eval echo '${'$as_ac_Header'}'` = yes; then
8479 cat >>confdefs.h <<_ACEOF
8480 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
8488 for ac_header in sys/filio.h
8490 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
8491 if eval "test \"\${$as_ac_Header+set}\" = set"; then
8492 echo "$as_me:$LINENO: checking for $ac_header" >&5
8493 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
8494 if eval "test \"\${$as_ac_Header+set}\" = set"; then
8495 echo $ECHO_N "(cached) $ECHO_C" >&6
8497 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
8498 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
8500 # Is the header compilable?
8501 echo "$as_me:$LINENO: checking $ac_header usability" >&5
8502 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
8503 cat >conftest.$ac_ext <<_ACEOF
8506 cat confdefs.h >>conftest.$ac_ext
8507 cat >>conftest.$ac_ext <<_ACEOF
8508 /* end confdefs.h. */
8509 $ac_includes_default
8510 #include <$ac_header>
8512 rm -f conftest.$ac_objext
8513 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
8514 (eval $ac_compile) 2>conftest.er1
8516 grep -v '^ *+' conftest.er1 >conftest.err
8518 cat conftest.err >&5
8519 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8520 (exit $ac_status); } &&
8521 { ac_try='test -z "$ac_c_werror_flag"
8522 || test ! -s conftest.err'
8523 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8526 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8527 (exit $ac_status); }; } &&
8528 { ac_try='test -s conftest.$ac_objext'
8529 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8532 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8533 (exit $ac_status); }; }; then
8534 ac_header_compiler=yes
8536 echo "$as_me: failed program was:" >&5
8537 sed 's/^/| /' conftest.$ac_ext >&5
8539 ac_header_compiler=no
8541 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
8542 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
8543 echo "${ECHO_T}$ac_header_compiler" >&6
8545 # Is the header present?
8546 echo "$as_me:$LINENO: checking $ac_header presence" >&5
8547 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
8548 cat >conftest.$ac_ext <<_ACEOF
8551 cat confdefs.h >>conftest.$ac_ext
8552 cat >>conftest.$ac_ext <<_ACEOF
8553 /* end confdefs.h. */
8554 #include <$ac_header>
8556 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
8557 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
8559 grep -v '^ *+' conftest.er1 >conftest.err
8561 cat conftest.err >&5
8562 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8563 (exit $ac_status); } >/dev/null; then
8564 if test -s conftest.err; then
8565 ac_cpp_err=$ac_c_preproc_warn_flag
8566 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
8573 if test -z "$ac_cpp_err"; then
8574 ac_header_preproc=yes
8576 echo "$as_me: failed program was:" >&5
8577 sed 's/^/| /' conftest.$ac_ext >&5
8579 ac_header_preproc=no
8581 rm -f conftest.err conftest.$ac_ext
8582 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
8583 echo "${ECHO_T}$ac_header_preproc" >&6
8585 # So? What about this header?
8586 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
8588 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
8589 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
8590 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
8591 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
8592 ac_header_preproc=yes
8595 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
8596 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
8597 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
8598 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
8599 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
8600 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
8601 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
8602 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
8603 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
8604 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
8605 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
8606 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
8609 ## ------------------------------------------ ##
8610 ## Report this to the AC_PACKAGE_NAME lists. ##
8611 ## ------------------------------------------ ##
8614 sed "s/^/$as_me: WARNING: /" >&2
8617 echo "$as_me:$LINENO: checking for $ac_header" >&5
8618 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
8619 if eval "test \"\${$as_ac_Header+set}\" = set"; then
8620 echo $ECHO_N "(cached) $ECHO_C" >&6
8622 eval "$as_ac_Header=\$ac_header_preproc"
8624 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
8625 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
8628 if test `eval echo '${'$as_ac_Header'}'` = yes; then
8629 cat >>confdefs.h <<_ACEOF
8630 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
8638 for ac_header in sys/ioctl.h
8640 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
8641 if eval "test \"\${$as_ac_Header+set}\" = set"; then
8642 echo "$as_me:$LINENO: checking for $ac_header" >&5
8643 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
8644 if eval "test \"\${$as_ac_Header+set}\" = set"; then
8645 echo $ECHO_N "(cached) $ECHO_C" >&6
8647 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
8648 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
8650 # Is the header compilable?
8651 echo "$as_me:$LINENO: checking $ac_header usability" >&5
8652 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
8653 cat >conftest.$ac_ext <<_ACEOF
8656 cat confdefs.h >>conftest.$ac_ext
8657 cat >>conftest.$ac_ext <<_ACEOF
8658 /* end confdefs.h. */
8659 $ac_includes_default
8660 #include <$ac_header>
8662 rm -f conftest.$ac_objext
8663 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
8664 (eval $ac_compile) 2>conftest.er1
8666 grep -v '^ *+' conftest.er1 >conftest.err
8668 cat conftest.err >&5
8669 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8670 (exit $ac_status); } &&
8671 { ac_try='test -z "$ac_c_werror_flag"
8672 || test ! -s conftest.err'
8673 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8676 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8677 (exit $ac_status); }; } &&
8678 { ac_try='test -s conftest.$ac_objext'
8679 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8682 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8683 (exit $ac_status); }; }; then
8684 ac_header_compiler=yes
8686 echo "$as_me: failed program was:" >&5
8687 sed 's/^/| /' conftest.$ac_ext >&5
8689 ac_header_compiler=no
8691 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
8692 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
8693 echo "${ECHO_T}$ac_header_compiler" >&6
8695 # Is the header present?
8696 echo "$as_me:$LINENO: checking $ac_header presence" >&5
8697 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
8698 cat >conftest.$ac_ext <<_ACEOF
8701 cat confdefs.h >>conftest.$ac_ext
8702 cat >>conftest.$ac_ext <<_ACEOF
8703 /* end confdefs.h. */
8704 #include <$ac_header>
8706 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
8707 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
8709 grep -v '^ *+' conftest.er1 >conftest.err
8711 cat conftest.err >&5
8712 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8713 (exit $ac_status); } >/dev/null; then
8714 if test -s conftest.err; then
8715 ac_cpp_err=$ac_c_preproc_warn_flag
8716 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
8723 if test -z "$ac_cpp_err"; then
8724 ac_header_preproc=yes
8726 echo "$as_me: failed program was:" >&5
8727 sed 's/^/| /' conftest.$ac_ext >&5
8729 ac_header_preproc=no
8731 rm -f conftest.err conftest.$ac_ext
8732 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
8733 echo "${ECHO_T}$ac_header_preproc" >&6
8735 # So? What about this header?
8736 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
8738 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
8739 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
8740 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
8741 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
8742 ac_header_preproc=yes
8745 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
8746 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
8747 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
8748 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
8749 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
8750 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
8751 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
8752 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
8753 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
8754 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
8755 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
8756 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
8759 ## ------------------------------------------ ##
8760 ## Report this to the AC_PACKAGE_NAME lists. ##
8761 ## ------------------------------------------ ##
8764 sed "s/^/$as_me: WARNING: /" >&2
8767 echo "$as_me:$LINENO: checking for $ac_header" >&5
8768 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
8769 if eval "test \"\${$as_ac_Header+set}\" = set"; then
8770 echo $ECHO_N "(cached) $ECHO_C" >&6
8772 eval "$as_ac_Header=\$ac_header_preproc"
8774 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
8775 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
8778 if test `eval echo '${'$as_ac_Header'}'` = yes; then
8779 cat >>confdefs.h <<_ACEOF
8780 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
8788 for ac_header in sys/param.h
8790 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
8791 if eval "test \"\${$as_ac_Header+set}\" = set"; then
8792 echo "$as_me:$LINENO: checking for $ac_header" >&5
8793 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
8794 if eval "test \"\${$as_ac_Header+set}\" = set"; then
8795 echo $ECHO_N "(cached) $ECHO_C" >&6
8797 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
8798 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
8800 # Is the header compilable?
8801 echo "$as_me:$LINENO: checking $ac_header usability" >&5
8802 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
8803 cat >conftest.$ac_ext <<_ACEOF
8806 cat confdefs.h >>conftest.$ac_ext
8807 cat >>conftest.$ac_ext <<_ACEOF
8808 /* end confdefs.h. */
8809 $ac_includes_default
8810 #include <$ac_header>
8812 rm -f conftest.$ac_objext
8813 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
8814 (eval $ac_compile) 2>conftest.er1
8816 grep -v '^ *+' conftest.er1 >conftest.err
8818 cat conftest.err >&5
8819 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8820 (exit $ac_status); } &&
8821 { ac_try='test -z "$ac_c_werror_flag"
8822 || test ! -s conftest.err'
8823 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8826 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8827 (exit $ac_status); }; } &&
8828 { ac_try='test -s conftest.$ac_objext'
8829 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8832 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8833 (exit $ac_status); }; }; then
8834 ac_header_compiler=yes
8836 echo "$as_me: failed program was:" >&5
8837 sed 's/^/| /' conftest.$ac_ext >&5
8839 ac_header_compiler=no
8841 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
8842 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
8843 echo "${ECHO_T}$ac_header_compiler" >&6
8845 # Is the header present?
8846 echo "$as_me:$LINENO: checking $ac_header presence" >&5
8847 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
8848 cat >conftest.$ac_ext <<_ACEOF
8851 cat confdefs.h >>conftest.$ac_ext
8852 cat >>conftest.$ac_ext <<_ACEOF
8853 /* end confdefs.h. */
8854 #include <$ac_header>
8856 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
8857 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
8859 grep -v '^ *+' conftest.er1 >conftest.err
8861 cat conftest.err >&5
8862 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8863 (exit $ac_status); } >/dev/null; then
8864 if test -s conftest.err; then
8865 ac_cpp_err=$ac_c_preproc_warn_flag
8866 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
8873 if test -z "$ac_cpp_err"; then
8874 ac_header_preproc=yes
8876 echo "$as_me: failed program was:" >&5
8877 sed 's/^/| /' conftest.$ac_ext >&5
8879 ac_header_preproc=no
8881 rm -f conftest.err conftest.$ac_ext
8882 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
8883 echo "${ECHO_T}$ac_header_preproc" >&6
8885 # So? What about this header?
8886 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
8888 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
8889 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
8890 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
8891 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
8892 ac_header_preproc=yes
8895 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
8896 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
8897 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
8898 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
8899 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
8900 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
8901 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
8902 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
8903 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
8904 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
8905 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
8906 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
8909 ## ------------------------------------------ ##
8910 ## Report this to the AC_PACKAGE_NAME lists. ##
8911 ## ------------------------------------------ ##
8914 sed "s/^/$as_me: WARNING: /" >&2
8917 echo "$as_me:$LINENO: checking for $ac_header" >&5
8918 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
8919 if eval "test \"\${$as_ac_Header+set}\" = set"; then
8920 echo $ECHO_N "(cached) $ECHO_C" >&6
8922 eval "$as_ac_Header=\$ac_header_preproc"
8924 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
8925 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
8928 if test `eval echo '${'$as_ac_Header'}'` = yes; then
8929 cat >>confdefs.h <<_ACEOF
8930 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
8938 for ac_header in sys/proc.h
8940 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
8941 echo "$as_me:$LINENO: checking for $ac_header" >&5
8942 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
8943 if eval "test \"\${$as_ac_Header+set}\" = set"; then
8944 echo $ECHO_N "(cached) $ECHO_C" >&6
8946 cat >conftest.$ac_ext <<_ACEOF
8949 cat confdefs.h >>conftest.$ac_ext
8950 cat >>conftest.$ac_ext <<_ACEOF
8951 /* end confdefs.h. */
8952 #if HAVE_SYS_PARAM_H
8953 # include <sys/param.h>
8957 #include <$ac_header>
8959 rm -f conftest.$ac_objext
8960 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
8961 (eval $ac_compile) 2>conftest.er1
8963 grep -v '^ *+' conftest.er1 >conftest.err
8965 cat conftest.err >&5
8966 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8967 (exit $ac_status); } &&
8968 { ac_try='test -z "$ac_c_werror_flag"
8969 || test ! -s conftest.err'
8970 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8973 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8974 (exit $ac_status); }; } &&
8975 { ac_try='test -s conftest.$ac_objext'
8976 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8979 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8980 (exit $ac_status); }; }; then
8981 eval "$as_ac_Header=yes"
8983 echo "$as_me: failed program was:" >&5
8984 sed 's/^/| /' conftest.$ac_ext >&5
8986 eval "$as_ac_Header=no"
8988 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
8990 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
8991 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
8992 if test `eval echo '${'$as_ac_Header'}'` = yes; then
8993 cat >>confdefs.h <<_ACEOF
8994 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
9002 for ac_header in sys/procfs.h
9004 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
9005 if eval "test \"\${$as_ac_Header+set}\" = set"; then
9006 echo "$as_me:$LINENO: checking for $ac_header" >&5
9007 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
9008 if eval "test \"\${$as_ac_Header+set}\" = set"; then
9009 echo $ECHO_N "(cached) $ECHO_C" >&6
9011 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
9012 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
9014 # Is the header compilable?
9015 echo "$as_me:$LINENO: checking $ac_header usability" >&5
9016 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
9017 cat >conftest.$ac_ext <<_ACEOF
9020 cat confdefs.h >>conftest.$ac_ext
9021 cat >>conftest.$ac_ext <<_ACEOF
9022 /* end confdefs.h. */
9023 $ac_includes_default
9024 #include <$ac_header>
9026 rm -f conftest.$ac_objext
9027 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
9028 (eval $ac_compile) 2>conftest.er1
9030 grep -v '^ *+' conftest.er1 >conftest.err
9032 cat conftest.err >&5
9033 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9034 (exit $ac_status); } &&
9035 { ac_try='test -z "$ac_c_werror_flag"
9036 || test ! -s conftest.err'
9037 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9040 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9041 (exit $ac_status); }; } &&
9042 { ac_try='test -s conftest.$ac_objext'
9043 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9046 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9047 (exit $ac_status); }; }; then
9048 ac_header_compiler=yes
9050 echo "$as_me: failed program was:" >&5
9051 sed 's/^/| /' conftest.$ac_ext >&5
9053 ac_header_compiler=no
9055 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
9056 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
9057 echo "${ECHO_T}$ac_header_compiler" >&6
9059 # Is the header present?
9060 echo "$as_me:$LINENO: checking $ac_header presence" >&5
9061 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
9062 cat >conftest.$ac_ext <<_ACEOF
9065 cat confdefs.h >>conftest.$ac_ext
9066 cat >>conftest.$ac_ext <<_ACEOF
9067 /* end confdefs.h. */
9068 #include <$ac_header>
9070 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
9071 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
9073 grep -v '^ *+' conftest.er1 >conftest.err
9075 cat conftest.err >&5
9076 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9077 (exit $ac_status); } >/dev/null; then
9078 if test -s conftest.err; then
9079 ac_cpp_err=$ac_c_preproc_warn_flag
9080 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
9087 if test -z "$ac_cpp_err"; then
9088 ac_header_preproc=yes
9090 echo "$as_me: failed program was:" >&5
9091 sed 's/^/| /' conftest.$ac_ext >&5
9093 ac_header_preproc=no
9095 rm -f conftest.err conftest.$ac_ext
9096 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
9097 echo "${ECHO_T}$ac_header_preproc" >&6
9099 # So? What about this header?
9100 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
9102 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
9103 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
9104 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
9105 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
9106 ac_header_preproc=yes
9109 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
9110 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
9111 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
9112 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
9113 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
9114 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
9115 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
9116 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
9117 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
9118 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
9119 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
9120 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
9123 ## ------------------------------------------ ##
9124 ## Report this to the AC_PACKAGE_NAME lists. ##
9125 ## ------------------------------------------ ##
9128 sed "s/^/$as_me: WARNING: /" >&2
9131 echo "$as_me:$LINENO: checking for $ac_header" >&5
9132 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
9133 if eval "test \"\${$as_ac_Header+set}\" = set"; then
9134 echo $ECHO_N "(cached) $ECHO_C" >&6
9136 eval "$as_ac_Header=\$ac_header_preproc"
9138 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
9139 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
9142 if test `eval echo '${'$as_ac_Header'}'` = yes; then
9143 cat >>confdefs.h <<_ACEOF
9144 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
9153 for ac_header in sys/ptrace.h ptrace.h
9155 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
9156 if eval "test \"\${$as_ac_Header+set}\" = set"; then
9157 echo "$as_me:$LINENO: checking for $ac_header" >&5
9158 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
9159 if eval "test \"\${$as_ac_Header+set}\" = set"; then
9160 echo $ECHO_N "(cached) $ECHO_C" >&6
9162 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
9163 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
9165 # Is the header compilable?
9166 echo "$as_me:$LINENO: checking $ac_header usability" >&5
9167 echo $ECHO_N "checking $ac_header usability... $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 $ac_includes_default
9175 #include <$ac_header>
9177 rm -f conftest.$ac_objext
9178 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
9179 (eval $ac_compile) 2>conftest.er1
9181 grep -v '^ *+' conftest.er1 >conftest.err
9183 cat conftest.err >&5
9184 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9185 (exit $ac_status); } &&
9186 { ac_try='test -z "$ac_c_werror_flag"
9187 || test ! -s conftest.err'
9188 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9191 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9192 (exit $ac_status); }; } &&
9193 { ac_try='test -s conftest.$ac_objext'
9194 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9197 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9198 (exit $ac_status); }; }; then
9199 ac_header_compiler=yes
9201 echo "$as_me: failed program was:" >&5
9202 sed 's/^/| /' conftest.$ac_ext >&5
9204 ac_header_compiler=no
9206 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
9207 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
9208 echo "${ECHO_T}$ac_header_compiler" >&6
9210 # Is the header present?
9211 echo "$as_me:$LINENO: checking $ac_header presence" >&5
9212 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
9213 cat >conftest.$ac_ext <<_ACEOF
9216 cat confdefs.h >>conftest.$ac_ext
9217 cat >>conftest.$ac_ext <<_ACEOF
9218 /* end confdefs.h. */
9219 #include <$ac_header>
9221 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
9222 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
9224 grep -v '^ *+' conftest.er1 >conftest.err
9226 cat conftest.err >&5
9227 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9228 (exit $ac_status); } >/dev/null; then
9229 if test -s conftest.err; then
9230 ac_cpp_err=$ac_c_preproc_warn_flag
9231 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
9238 if test -z "$ac_cpp_err"; then
9239 ac_header_preproc=yes
9241 echo "$as_me: failed program was:" >&5
9242 sed 's/^/| /' conftest.$ac_ext >&5
9244 ac_header_preproc=no
9246 rm -f conftest.err conftest.$ac_ext
9247 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
9248 echo "${ECHO_T}$ac_header_preproc" >&6
9250 # So? What about this header?
9251 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
9253 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
9254 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
9255 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
9256 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
9257 ac_header_preproc=yes
9260 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
9261 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
9262 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
9263 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
9264 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
9265 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
9266 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
9267 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
9268 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
9269 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
9270 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
9271 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
9274 ## ------------------------------------------ ##
9275 ## Report this to the AC_PACKAGE_NAME lists. ##
9276 ## ------------------------------------------ ##
9279 sed "s/^/$as_me: WARNING: /" >&2
9282 echo "$as_me:$LINENO: checking for $ac_header" >&5
9283 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
9284 if eval "test \"\${$as_ac_Header+set}\" = set"; then
9285 echo $ECHO_N "(cached) $ECHO_C" >&6
9287 eval "$as_ac_Header=\$ac_header_preproc"
9289 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
9290 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
9293 if test `eval echo '${'$as_ac_Header'}'` = yes; then
9294 cat >>confdefs.h <<_ACEOF
9295 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
9304 for ac_header in sys/reg.h sys/debugreg.h
9306 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
9307 if eval "test \"\${$as_ac_Header+set}\" = set"; then
9308 echo "$as_me:$LINENO: checking for $ac_header" >&5
9309 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
9310 if eval "test \"\${$as_ac_Header+set}\" = set"; then
9311 echo $ECHO_N "(cached) $ECHO_C" >&6
9313 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
9314 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
9316 # Is the header compilable?
9317 echo "$as_me:$LINENO: checking $ac_header usability" >&5
9318 echo $ECHO_N "checking $ac_header usability... $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 $ac_includes_default
9326 #include <$ac_header>
9328 rm -f conftest.$ac_objext
9329 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
9330 (eval $ac_compile) 2>conftest.er1
9332 grep -v '^ *+' conftest.er1 >conftest.err
9334 cat conftest.err >&5
9335 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9336 (exit $ac_status); } &&
9337 { ac_try='test -z "$ac_c_werror_flag"
9338 || test ! -s conftest.err'
9339 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9342 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9343 (exit $ac_status); }; } &&
9344 { ac_try='test -s conftest.$ac_objext'
9345 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9348 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9349 (exit $ac_status); }; }; then
9350 ac_header_compiler=yes
9352 echo "$as_me: failed program was:" >&5
9353 sed 's/^/| /' conftest.$ac_ext >&5
9355 ac_header_compiler=no
9357 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
9358 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
9359 echo "${ECHO_T}$ac_header_compiler" >&6
9361 # Is the header present?
9362 echo "$as_me:$LINENO: checking $ac_header presence" >&5
9363 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
9364 cat >conftest.$ac_ext <<_ACEOF
9367 cat confdefs.h >>conftest.$ac_ext
9368 cat >>conftest.$ac_ext <<_ACEOF
9369 /* end confdefs.h. */
9370 #include <$ac_header>
9372 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
9373 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
9375 grep -v '^ *+' conftest.er1 >conftest.err
9377 cat conftest.err >&5
9378 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9379 (exit $ac_status); } >/dev/null; then
9380 if test -s conftest.err; then
9381 ac_cpp_err=$ac_c_preproc_warn_flag
9382 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
9389 if test -z "$ac_cpp_err"; then
9390 ac_header_preproc=yes
9392 echo "$as_me: failed program was:" >&5
9393 sed 's/^/| /' conftest.$ac_ext >&5
9395 ac_header_preproc=no
9397 rm -f conftest.err conftest.$ac_ext
9398 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
9399 echo "${ECHO_T}$ac_header_preproc" >&6
9401 # So? What about this header?
9402 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
9404 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
9405 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
9406 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
9407 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
9408 ac_header_preproc=yes
9411 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
9412 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
9413 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
9414 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
9415 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
9416 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
9417 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
9418 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
9419 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
9420 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
9421 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
9422 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
9425 ## ------------------------------------------ ##
9426 ## Report this to the AC_PACKAGE_NAME lists. ##
9427 ## ------------------------------------------ ##
9430 sed "s/^/$as_me: WARNING: /" >&2
9433 echo "$as_me:$LINENO: checking for $ac_header" >&5
9434 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
9435 if eval "test \"\${$as_ac_Header+set}\" = set"; then
9436 echo $ECHO_N "(cached) $ECHO_C" >&6
9438 eval "$as_ac_Header=\$ac_header_preproc"
9440 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
9441 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
9444 if test `eval echo '${'$as_ac_Header'}'` = yes; then
9445 cat >>confdefs.h <<_ACEOF
9446 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
9454 for ac_header in sys/select.h
9456 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
9457 if eval "test \"\${$as_ac_Header+set}\" = set"; then
9458 echo "$as_me:$LINENO: checking for $ac_header" >&5
9459 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
9460 if eval "test \"\${$as_ac_Header+set}\" = set"; then
9461 echo $ECHO_N "(cached) $ECHO_C" >&6
9463 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
9464 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
9466 # Is the header compilable?
9467 echo "$as_me:$LINENO: checking $ac_header usability" >&5
9468 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
9469 cat >conftest.$ac_ext <<_ACEOF
9472 cat confdefs.h >>conftest.$ac_ext
9473 cat >>conftest.$ac_ext <<_ACEOF
9474 /* end confdefs.h. */
9475 $ac_includes_default
9476 #include <$ac_header>
9478 rm -f conftest.$ac_objext
9479 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
9480 (eval $ac_compile) 2>conftest.er1
9482 grep -v '^ *+' conftest.er1 >conftest.err
9484 cat conftest.err >&5
9485 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9486 (exit $ac_status); } &&
9487 { ac_try='test -z "$ac_c_werror_flag"
9488 || test ! -s conftest.err'
9489 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9492 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9493 (exit $ac_status); }; } &&
9494 { ac_try='test -s conftest.$ac_objext'
9495 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9498 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9499 (exit $ac_status); }; }; then
9500 ac_header_compiler=yes
9502 echo "$as_me: failed program was:" >&5
9503 sed 's/^/| /' conftest.$ac_ext >&5
9505 ac_header_compiler=no
9507 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
9508 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
9509 echo "${ECHO_T}$ac_header_compiler" >&6
9511 # Is the header present?
9512 echo "$as_me:$LINENO: checking $ac_header presence" >&5
9513 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
9514 cat >conftest.$ac_ext <<_ACEOF
9517 cat confdefs.h >>conftest.$ac_ext
9518 cat >>conftest.$ac_ext <<_ACEOF
9519 /* end confdefs.h. */
9520 #include <$ac_header>
9522 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
9523 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
9525 grep -v '^ *+' conftest.er1 >conftest.err
9527 cat conftest.err >&5
9528 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9529 (exit $ac_status); } >/dev/null; then
9530 if test -s conftest.err; then
9531 ac_cpp_err=$ac_c_preproc_warn_flag
9532 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
9539 if test -z "$ac_cpp_err"; then
9540 ac_header_preproc=yes
9542 echo "$as_me: failed program was:" >&5
9543 sed 's/^/| /' conftest.$ac_ext >&5
9545 ac_header_preproc=no
9547 rm -f conftest.err conftest.$ac_ext
9548 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
9549 echo "${ECHO_T}$ac_header_preproc" >&6
9551 # So? What about this header?
9552 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
9554 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
9555 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
9556 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
9557 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
9558 ac_header_preproc=yes
9561 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
9562 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
9563 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
9564 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
9565 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
9566 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
9567 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
9568 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
9569 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
9570 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
9571 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
9572 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
9575 ## ------------------------------------------ ##
9576 ## Report this to the AC_PACKAGE_NAME lists. ##
9577 ## ------------------------------------------ ##
9580 sed "s/^/$as_me: WARNING: /" >&2
9583 echo "$as_me:$LINENO: checking for $ac_header" >&5
9584 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
9585 if eval "test \"\${$as_ac_Header+set}\" = set"; then
9586 echo $ECHO_N "(cached) $ECHO_C" >&6
9588 eval "$as_ac_Header=\$ac_header_preproc"
9590 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
9591 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
9594 if test `eval echo '${'$as_ac_Header'}'` = yes; then
9595 cat >>confdefs.h <<_ACEOF
9596 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
9604 for ac_header in sys/syscall.h
9606 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
9607 if eval "test \"\${$as_ac_Header+set}\" = set"; then
9608 echo "$as_me:$LINENO: checking for $ac_header" >&5
9609 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
9610 if eval "test \"\${$as_ac_Header+set}\" = set"; then
9611 echo $ECHO_N "(cached) $ECHO_C" >&6
9613 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
9614 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
9616 # Is the header compilable?
9617 echo "$as_me:$LINENO: checking $ac_header usability" >&5
9618 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
9619 cat >conftest.$ac_ext <<_ACEOF
9622 cat confdefs.h >>conftest.$ac_ext
9623 cat >>conftest.$ac_ext <<_ACEOF
9624 /* end confdefs.h. */
9625 $ac_includes_default
9626 #include <$ac_header>
9628 rm -f conftest.$ac_objext
9629 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
9630 (eval $ac_compile) 2>conftest.er1
9632 grep -v '^ *+' conftest.er1 >conftest.err
9634 cat conftest.err >&5
9635 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9636 (exit $ac_status); } &&
9637 { ac_try='test -z "$ac_c_werror_flag"
9638 || test ! -s conftest.err'
9639 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9642 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9643 (exit $ac_status); }; } &&
9644 { ac_try='test -s conftest.$ac_objext'
9645 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9648 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9649 (exit $ac_status); }; }; then
9650 ac_header_compiler=yes
9652 echo "$as_me: failed program was:" >&5
9653 sed 's/^/| /' conftest.$ac_ext >&5
9655 ac_header_compiler=no
9657 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
9658 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
9659 echo "${ECHO_T}$ac_header_compiler" >&6
9661 # Is the header present?
9662 echo "$as_me:$LINENO: checking $ac_header presence" >&5
9663 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
9664 cat >conftest.$ac_ext <<_ACEOF
9667 cat confdefs.h >>conftest.$ac_ext
9668 cat >>conftest.$ac_ext <<_ACEOF
9669 /* end confdefs.h. */
9670 #include <$ac_header>
9672 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
9673 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
9675 grep -v '^ *+' conftest.er1 >conftest.err
9677 cat conftest.err >&5
9678 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9679 (exit $ac_status); } >/dev/null; then
9680 if test -s conftest.err; then
9681 ac_cpp_err=$ac_c_preproc_warn_flag
9682 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
9689 if test -z "$ac_cpp_err"; then
9690 ac_header_preproc=yes
9692 echo "$as_me: failed program was:" >&5
9693 sed 's/^/| /' conftest.$ac_ext >&5
9695 ac_header_preproc=no
9697 rm -f conftest.err conftest.$ac_ext
9698 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
9699 echo "${ECHO_T}$ac_header_preproc" >&6
9701 # So? What about this header?
9702 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
9704 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
9705 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
9706 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
9707 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
9708 ac_header_preproc=yes
9711 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
9712 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
9713 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
9714 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
9715 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
9716 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
9717 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
9718 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
9719 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
9720 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
9721 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
9722 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
9725 ## ------------------------------------------ ##
9726 ## Report this to the AC_PACKAGE_NAME lists. ##
9727 ## ------------------------------------------ ##
9730 sed "s/^/$as_me: WARNING: /" >&2
9733 echo "$as_me:$LINENO: checking for $ac_header" >&5
9734 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
9735 if eval "test \"\${$as_ac_Header+set}\" = set"; then
9736 echo $ECHO_N "(cached) $ECHO_C" >&6
9738 eval "$as_ac_Header=\$ac_header_preproc"
9740 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
9741 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
9744 if test `eval echo '${'$as_ac_Header'}'` = yes; then
9745 cat >>confdefs.h <<_ACEOF
9746 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
9754 for ac_header in sys/types.h
9756 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
9757 if eval "test \"\${$as_ac_Header+set}\" = set"; then
9758 echo "$as_me:$LINENO: checking for $ac_header" >&5
9759 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
9760 if eval "test \"\${$as_ac_Header+set}\" = set"; then
9761 echo $ECHO_N "(cached) $ECHO_C" >&6
9763 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
9764 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
9766 # Is the header compilable?
9767 echo "$as_me:$LINENO: checking $ac_header usability" >&5
9768 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
9769 cat >conftest.$ac_ext <<_ACEOF
9772 cat confdefs.h >>conftest.$ac_ext
9773 cat >>conftest.$ac_ext <<_ACEOF
9774 /* end confdefs.h. */
9775 $ac_includes_default
9776 #include <$ac_header>
9778 rm -f conftest.$ac_objext
9779 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
9780 (eval $ac_compile) 2>conftest.er1
9782 grep -v '^ *+' conftest.er1 >conftest.err
9784 cat conftest.err >&5
9785 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9786 (exit $ac_status); } &&
9787 { ac_try='test -z "$ac_c_werror_flag"
9788 || test ! -s conftest.err'
9789 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9792 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9793 (exit $ac_status); }; } &&
9794 { ac_try='test -s conftest.$ac_objext'
9795 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9798 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9799 (exit $ac_status); }; }; then
9800 ac_header_compiler=yes
9802 echo "$as_me: failed program was:" >&5
9803 sed 's/^/| /' conftest.$ac_ext >&5
9805 ac_header_compiler=no
9807 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
9808 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
9809 echo "${ECHO_T}$ac_header_compiler" >&6
9811 # Is the header present?
9812 echo "$as_me:$LINENO: checking $ac_header presence" >&5
9813 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
9814 cat >conftest.$ac_ext <<_ACEOF
9817 cat confdefs.h >>conftest.$ac_ext
9818 cat >>conftest.$ac_ext <<_ACEOF
9819 /* end confdefs.h. */
9820 #include <$ac_header>
9822 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
9823 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
9825 grep -v '^ *+' conftest.er1 >conftest.err
9827 cat conftest.err >&5
9828 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9829 (exit $ac_status); } >/dev/null; then
9830 if test -s conftest.err; then
9831 ac_cpp_err=$ac_c_preproc_warn_flag
9832 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
9839 if test -z "$ac_cpp_err"; then
9840 ac_header_preproc=yes
9842 echo "$as_me: failed program was:" >&5
9843 sed 's/^/| /' conftest.$ac_ext >&5
9845 ac_header_preproc=no
9847 rm -f conftest.err conftest.$ac_ext
9848 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
9849 echo "${ECHO_T}$ac_header_preproc" >&6
9851 # So? What about this header?
9852 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
9854 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
9855 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
9856 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
9857 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
9858 ac_header_preproc=yes
9861 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
9862 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
9863 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
9864 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
9865 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
9866 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
9867 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
9868 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
9869 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
9870 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
9871 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
9872 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
9875 ## ------------------------------------------ ##
9876 ## Report this to the AC_PACKAGE_NAME lists. ##
9877 ## ------------------------------------------ ##
9880 sed "s/^/$as_me: WARNING: /" >&2
9883 echo "$as_me:$LINENO: checking for $ac_header" >&5
9884 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
9885 if eval "test \"\${$as_ac_Header+set}\" = set"; then
9886 echo $ECHO_N "(cached) $ECHO_C" >&6
9888 eval "$as_ac_Header=\$ac_header_preproc"
9890 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
9891 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
9894 if test `eval echo '${'$as_ac_Header'}'` = yes; then
9895 cat >>confdefs.h <<_ACEOF
9896 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
9904 for ac_header in sys/user.h
9906 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
9907 echo "$as_me:$LINENO: checking for $ac_header" >&5
9908 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
9909 if eval "test \"\${$as_ac_Header+set}\" = set"; then
9910 echo $ECHO_N "(cached) $ECHO_C" >&6
9912 cat >conftest.$ac_ext <<_ACEOF
9915 cat confdefs.h >>conftest.$ac_ext
9916 cat >>conftest.$ac_ext <<_ACEOF
9917 /* end confdefs.h. */
9918 #if HAVE_SYS_PARAM_H
9919 # include <sys/param.h>
9923 #include <$ac_header>
9925 rm -f conftest.$ac_objext
9926 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
9927 (eval $ac_compile) 2>conftest.er1
9929 grep -v '^ *+' conftest.er1 >conftest.err
9931 cat conftest.err >&5
9932 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9933 (exit $ac_status); } &&
9934 { ac_try='test -z "$ac_c_werror_flag"
9935 || test ! -s conftest.err'
9936 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9939 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9940 (exit $ac_status); }; } &&
9941 { ac_try='test -s conftest.$ac_objext'
9942 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9945 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9946 (exit $ac_status); }; }; then
9947 eval "$as_ac_Header=yes"
9949 echo "$as_me: failed program was:" >&5
9950 sed 's/^/| /' conftest.$ac_ext >&5
9952 eval "$as_ac_Header=no"
9954 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
9956 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
9957 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
9958 if test `eval echo '${'$as_ac_Header'}'` = yes; then
9959 cat >>confdefs.h <<_ACEOF
9960 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
9969 for ac_header in sys/wait.h wait.h
9971 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
9972 if eval "test \"\${$as_ac_Header+set}\" = set"; then
9973 echo "$as_me:$LINENO: checking for $ac_header" >&5
9974 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
9975 if eval "test \"\${$as_ac_Header+set}\" = set"; then
9976 echo $ECHO_N "(cached) $ECHO_C" >&6
9978 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
9979 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
9981 # Is the header compilable?
9982 echo "$as_me:$LINENO: checking $ac_header usability" >&5
9983 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
9984 cat >conftest.$ac_ext <<_ACEOF
9987 cat confdefs.h >>conftest.$ac_ext
9988 cat >>conftest.$ac_ext <<_ACEOF
9989 /* end confdefs.h. */
9990 $ac_includes_default
9991 #include <$ac_header>
9993 rm -f conftest.$ac_objext
9994 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
9995 (eval $ac_compile) 2>conftest.er1
9997 grep -v '^ *+' conftest.er1 >conftest.err
9999 cat conftest.err >&5
10000 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10001 (exit $ac_status); } &&
10002 { ac_try='test -z "$ac_c_werror_flag"
10003 || test ! -s conftest.err'
10004 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10005 (eval $ac_try) 2>&5
10007 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10008 (exit $ac_status); }; } &&
10009 { ac_try='test -s conftest.$ac_objext'
10010 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10011 (eval $ac_try) 2>&5
10013 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10014 (exit $ac_status); }; }; then
10015 ac_header_compiler=yes
10017 echo "$as_me: failed program was:" >&5
10018 sed 's/^/| /' conftest.$ac_ext >&5
10020 ac_header_compiler=no
10022 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
10023 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
10024 echo "${ECHO_T}$ac_header_compiler" >&6
10026 # Is the header present?
10027 echo "$as_me:$LINENO: checking $ac_header presence" >&5
10028 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
10029 cat >conftest.$ac_ext <<_ACEOF
10032 cat confdefs.h >>conftest.$ac_ext
10033 cat >>conftest.$ac_ext <<_ACEOF
10034 /* end confdefs.h. */
10035 #include <$ac_header>
10037 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
10038 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
10040 grep -v '^ *+' conftest.er1 >conftest.err
10042 cat conftest.err >&5
10043 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10044 (exit $ac_status); } >/dev/null; then
10045 if test -s conftest.err; then
10046 ac_cpp_err=$ac_c_preproc_warn_flag
10047 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
10054 if test -z "$ac_cpp_err"; then
10055 ac_header_preproc=yes
10057 echo "$as_me: failed program was:" >&5
10058 sed 's/^/| /' conftest.$ac_ext >&5
10060 ac_header_preproc=no
10062 rm -f conftest.err conftest.$ac_ext
10063 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
10064 echo "${ECHO_T}$ac_header_preproc" >&6
10066 # So? What about this header?
10067 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
10069 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
10070 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
10071 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
10072 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
10073 ac_header_preproc=yes
10076 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
10077 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
10078 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
10079 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
10080 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
10081 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
10082 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
10083 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
10084 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
10085 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
10086 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
10087 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
10090 ## ------------------------------------------ ##
10091 ## Report this to the AC_PACKAGE_NAME lists. ##
10092 ## ------------------------------------------ ##
10095 sed "s/^/$as_me: WARNING: /" >&2
10098 echo "$as_me:$LINENO: checking for $ac_header" >&5
10099 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
10100 if eval "test \"\${$as_ac_Header+set}\" = set"; then
10101 echo $ECHO_N "(cached) $ECHO_C" >&6
10103 eval "$as_ac_Header=\$ac_header_preproc"
10105 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
10106 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
10109 if test `eval echo '${'$as_ac_Header'}'` = yes; then
10110 cat >>confdefs.h <<_ACEOF
10111 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
10121 for ac_header in termios.h termio.h sgtty.h
10123 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
10124 if eval "test \"\${$as_ac_Header+set}\" = set"; then
10125 echo "$as_me:$LINENO: checking for $ac_header" >&5
10126 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
10127 if eval "test \"\${$as_ac_Header+set}\" = set"; then
10128 echo $ECHO_N "(cached) $ECHO_C" >&6
10130 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
10131 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
10133 # Is the header compilable?
10134 echo "$as_me:$LINENO: checking $ac_header usability" >&5
10135 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
10136 cat >conftest.$ac_ext <<_ACEOF
10139 cat confdefs.h >>conftest.$ac_ext
10140 cat >>conftest.$ac_ext <<_ACEOF
10141 /* end confdefs.h. */
10142 $ac_includes_default
10143 #include <$ac_header>
10145 rm -f conftest.$ac_objext
10146 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
10147 (eval $ac_compile) 2>conftest.er1
10149 grep -v '^ *+' conftest.er1 >conftest.err
10151 cat conftest.err >&5
10152 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10153 (exit $ac_status); } &&
10154 { ac_try='test -z "$ac_c_werror_flag"
10155 || test ! -s conftest.err'
10156 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10157 (eval $ac_try) 2>&5
10159 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10160 (exit $ac_status); }; } &&
10161 { ac_try='test -s conftest.$ac_objext'
10162 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10163 (eval $ac_try) 2>&5
10165 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10166 (exit $ac_status); }; }; then
10167 ac_header_compiler=yes
10169 echo "$as_me: failed program was:" >&5
10170 sed 's/^/| /' conftest.$ac_ext >&5
10172 ac_header_compiler=no
10174 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
10175 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
10176 echo "${ECHO_T}$ac_header_compiler" >&6
10178 # Is the header present?
10179 echo "$as_me:$LINENO: checking $ac_header presence" >&5
10180 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
10181 cat >conftest.$ac_ext <<_ACEOF
10184 cat confdefs.h >>conftest.$ac_ext
10185 cat >>conftest.$ac_ext <<_ACEOF
10186 /* end confdefs.h. */
10187 #include <$ac_header>
10189 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
10190 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
10192 grep -v '^ *+' conftest.er1 >conftest.err
10194 cat conftest.err >&5
10195 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10196 (exit $ac_status); } >/dev/null; then
10197 if test -s conftest.err; then
10198 ac_cpp_err=$ac_c_preproc_warn_flag
10199 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
10206 if test -z "$ac_cpp_err"; then
10207 ac_header_preproc=yes
10209 echo "$as_me: failed program was:" >&5
10210 sed 's/^/| /' conftest.$ac_ext >&5
10212 ac_header_preproc=no
10214 rm -f conftest.err conftest.$ac_ext
10215 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
10216 echo "${ECHO_T}$ac_header_preproc" >&6
10218 # So? What about this header?
10219 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
10221 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
10222 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
10223 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
10224 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
10225 ac_header_preproc=yes
10228 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
10229 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
10230 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
10231 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
10232 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
10233 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
10234 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
10235 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
10236 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
10237 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
10238 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
10239 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
10242 ## ------------------------------------------ ##
10243 ## Report this to the AC_PACKAGE_NAME lists. ##
10244 ## ------------------------------------------ ##
10247 sed "s/^/$as_me: WARNING: /" >&2
10250 echo "$as_me:$LINENO: checking for $ac_header" >&5
10251 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
10252 if eval "test \"\${$as_ac_Header+set}\" = set"; then
10253 echo $ECHO_N "(cached) $ECHO_C" >&6
10255 eval "$as_ac_Header=\$ac_header_preproc"
10257 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
10258 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
10261 if test `eval echo '${'$as_ac_Header'}'` = yes; then
10262 cat >>confdefs.h <<_ACEOF
10263 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
10271 for ac_header in unistd.h
10273 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
10274 if eval "test \"\${$as_ac_Header+set}\" = set"; then
10275 echo "$as_me:$LINENO: checking for $ac_header" >&5
10276 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
10277 if eval "test \"\${$as_ac_Header+set}\" = set"; then
10278 echo $ECHO_N "(cached) $ECHO_C" >&6
10280 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
10281 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
10283 # Is the header compilable?
10284 echo "$as_me:$LINENO: checking $ac_header usability" >&5
10285 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
10286 cat >conftest.$ac_ext <<_ACEOF
10289 cat confdefs.h >>conftest.$ac_ext
10290 cat >>conftest.$ac_ext <<_ACEOF
10291 /* end confdefs.h. */
10292 $ac_includes_default
10293 #include <$ac_header>
10295 rm -f conftest.$ac_objext
10296 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
10297 (eval $ac_compile) 2>conftest.er1
10299 grep -v '^ *+' conftest.er1 >conftest.err
10301 cat conftest.err >&5
10302 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10303 (exit $ac_status); } &&
10304 { ac_try='test -z "$ac_c_werror_flag"
10305 || test ! -s conftest.err'
10306 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10307 (eval $ac_try) 2>&5
10309 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10310 (exit $ac_status); }; } &&
10311 { ac_try='test -s conftest.$ac_objext'
10312 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10313 (eval $ac_try) 2>&5
10315 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10316 (exit $ac_status); }; }; then
10317 ac_header_compiler=yes
10319 echo "$as_me: failed program was:" >&5
10320 sed 's/^/| /' conftest.$ac_ext >&5
10322 ac_header_compiler=no
10324 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
10325 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
10326 echo "${ECHO_T}$ac_header_compiler" >&6
10328 # Is the header present?
10329 echo "$as_me:$LINENO: checking $ac_header presence" >&5
10330 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
10331 cat >conftest.$ac_ext <<_ACEOF
10334 cat confdefs.h >>conftest.$ac_ext
10335 cat >>conftest.$ac_ext <<_ACEOF
10336 /* end confdefs.h. */
10337 #include <$ac_header>
10339 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
10340 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
10342 grep -v '^ *+' conftest.er1 >conftest.err
10344 cat conftest.err >&5
10345 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10346 (exit $ac_status); } >/dev/null; then
10347 if test -s conftest.err; then
10348 ac_cpp_err=$ac_c_preproc_warn_flag
10349 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
10356 if test -z "$ac_cpp_err"; then
10357 ac_header_preproc=yes
10359 echo "$as_me: failed program was:" >&5
10360 sed 's/^/| /' conftest.$ac_ext >&5
10362 ac_header_preproc=no
10364 rm -f conftest.err conftest.$ac_ext
10365 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
10366 echo "${ECHO_T}$ac_header_preproc" >&6
10368 # So? What about this header?
10369 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
10371 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
10372 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
10373 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
10374 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
10375 ac_header_preproc=yes
10378 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
10379 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
10380 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
10381 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
10382 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
10383 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
10384 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
10385 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
10386 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
10387 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
10388 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
10389 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
10392 ## ------------------------------------------ ##
10393 ## Report this to the AC_PACKAGE_NAME lists. ##
10394 ## ------------------------------------------ ##
10397 sed "s/^/$as_me: WARNING: /" >&2
10400 echo "$as_me:$LINENO: checking for $ac_header" >&5
10401 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
10402 if eval "test \"\${$as_ac_Header+set}\" = set"; then
10403 echo $ECHO_N "(cached) $ECHO_C" >&6
10405 eval "$as_ac_Header=\$ac_header_preproc"
10407 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
10408 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
10411 if test `eval echo '${'$as_ac_Header'}'` = yes; then
10412 cat >>confdefs.h <<_ACEOF
10413 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
10421 # On Solaris 2.[789], we need to define _MSE_INT_H to avoid a clash
10422 # between <widec.h> and <wchar.h> that would cause AC_CHECK_HEADERS to
10423 # think that we don't have <curses.h> if we're using GCC.
10426 if test "$GCC" = yes; then
10428 cat >>confdefs.h <<\_ACEOF
10429 #define _MSE_INT_H 1
10438 for ac_header in curses.h cursesX.h ncurses.h ncurses/ncurses.h
10440 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
10441 if eval "test \"\${$as_ac_Header+set}\" = set"; then
10442 echo "$as_me:$LINENO: checking for $ac_header" >&5
10443 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
10444 if eval "test \"\${$as_ac_Header+set}\" = set"; then
10445 echo $ECHO_N "(cached) $ECHO_C" >&6
10447 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
10448 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
10450 # Is the header compilable?
10451 echo "$as_me:$LINENO: checking $ac_header usability" >&5
10452 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
10453 cat >conftest.$ac_ext <<_ACEOF
10456 cat confdefs.h >>conftest.$ac_ext
10457 cat >>conftest.$ac_ext <<_ACEOF
10458 /* end confdefs.h. */
10459 $ac_includes_default
10460 #include <$ac_header>
10462 rm -f conftest.$ac_objext
10463 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
10464 (eval $ac_compile) 2>conftest.er1
10466 grep -v '^ *+' conftest.er1 >conftest.err
10468 cat conftest.err >&5
10469 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10470 (exit $ac_status); } &&
10471 { ac_try='test -z "$ac_c_werror_flag"
10472 || test ! -s conftest.err'
10473 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10474 (eval $ac_try) 2>&5
10476 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10477 (exit $ac_status); }; } &&
10478 { ac_try='test -s conftest.$ac_objext'
10479 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10480 (eval $ac_try) 2>&5
10482 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10483 (exit $ac_status); }; }; then
10484 ac_header_compiler=yes
10486 echo "$as_me: failed program was:" >&5
10487 sed 's/^/| /' conftest.$ac_ext >&5
10489 ac_header_compiler=no
10491 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
10492 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
10493 echo "${ECHO_T}$ac_header_compiler" >&6
10495 # Is the header present?
10496 echo "$as_me:$LINENO: checking $ac_header presence" >&5
10497 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
10498 cat >conftest.$ac_ext <<_ACEOF
10501 cat confdefs.h >>conftest.$ac_ext
10502 cat >>conftest.$ac_ext <<_ACEOF
10503 /* end confdefs.h. */
10504 #include <$ac_header>
10506 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
10507 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
10509 grep -v '^ *+' conftest.er1 >conftest.err
10511 cat conftest.err >&5
10512 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10513 (exit $ac_status); } >/dev/null; then
10514 if test -s conftest.err; then
10515 ac_cpp_err=$ac_c_preproc_warn_flag
10516 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
10523 if test -z "$ac_cpp_err"; then
10524 ac_header_preproc=yes
10526 echo "$as_me: failed program was:" >&5
10527 sed 's/^/| /' conftest.$ac_ext >&5
10529 ac_header_preproc=no
10531 rm -f conftest.err conftest.$ac_ext
10532 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
10533 echo "${ECHO_T}$ac_header_preproc" >&6
10535 # So? What about this header?
10536 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
10538 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
10539 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
10540 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
10541 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
10542 ac_header_preproc=yes
10545 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
10546 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
10547 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
10548 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
10549 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
10550 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
10551 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
10552 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
10553 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
10554 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
10555 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
10556 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
10559 ## ------------------------------------------ ##
10560 ## Report this to the AC_PACKAGE_NAME lists. ##
10561 ## ------------------------------------------ ##
10564 sed "s/^/$as_me: WARNING: /" >&2
10567 echo "$as_me:$LINENO: checking for $ac_header" >&5
10568 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
10569 if eval "test \"\${$as_ac_Header+set}\" = set"; then
10570 echo $ECHO_N "(cached) $ECHO_C" >&6
10572 eval "$as_ac_Header=\$ac_header_preproc"
10574 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
10575 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
10578 if test `eval echo '${'$as_ac_Header'}'` = yes; then
10579 cat >>confdefs.h <<_ACEOF
10580 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
10588 for ac_header in ncurses/term.h
10590 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
10591 if eval "test \"\${$as_ac_Header+set}\" = set"; then
10592 echo "$as_me:$LINENO: checking for $ac_header" >&5
10593 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
10594 if eval "test \"\${$as_ac_Header+set}\" = set"; then
10595 echo $ECHO_N "(cached) $ECHO_C" >&6
10597 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
10598 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
10600 # Is the header compilable?
10601 echo "$as_me:$LINENO: checking $ac_header usability" >&5
10602 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
10603 cat >conftest.$ac_ext <<_ACEOF
10606 cat confdefs.h >>conftest.$ac_ext
10607 cat >>conftest.$ac_ext <<_ACEOF
10608 /* end confdefs.h. */
10609 $ac_includes_default
10610 #include <$ac_header>
10612 rm -f conftest.$ac_objext
10613 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
10614 (eval $ac_compile) 2>conftest.er1
10616 grep -v '^ *+' conftest.er1 >conftest.err
10618 cat conftest.err >&5
10619 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10620 (exit $ac_status); } &&
10621 { ac_try='test -z "$ac_c_werror_flag"
10622 || test ! -s conftest.err'
10623 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10624 (eval $ac_try) 2>&5
10626 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10627 (exit $ac_status); }; } &&
10628 { ac_try='test -s conftest.$ac_objext'
10629 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10630 (eval $ac_try) 2>&5
10632 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10633 (exit $ac_status); }; }; then
10634 ac_header_compiler=yes
10636 echo "$as_me: failed program was:" >&5
10637 sed 's/^/| /' conftest.$ac_ext >&5
10639 ac_header_compiler=no
10641 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
10642 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
10643 echo "${ECHO_T}$ac_header_compiler" >&6
10645 # Is the header present?
10646 echo "$as_me:$LINENO: checking $ac_header presence" >&5
10647 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
10648 cat >conftest.$ac_ext <<_ACEOF
10651 cat confdefs.h >>conftest.$ac_ext
10652 cat >>conftest.$ac_ext <<_ACEOF
10653 /* end confdefs.h. */
10654 #include <$ac_header>
10656 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
10657 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
10659 grep -v '^ *+' conftest.er1 >conftest.err
10661 cat conftest.err >&5
10662 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10663 (exit $ac_status); } >/dev/null; then
10664 if test -s conftest.err; then
10665 ac_cpp_err=$ac_c_preproc_warn_flag
10666 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
10673 if test -z "$ac_cpp_err"; then
10674 ac_header_preproc=yes
10676 echo "$as_me: failed program was:" >&5
10677 sed 's/^/| /' conftest.$ac_ext >&5
10679 ac_header_preproc=no
10681 rm -f conftest.err conftest.$ac_ext
10682 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
10683 echo "${ECHO_T}$ac_header_preproc" >&6
10685 # So? What about this header?
10686 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
10688 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
10689 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
10690 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
10691 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
10692 ac_header_preproc=yes
10695 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
10696 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
10697 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
10698 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
10699 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
10700 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
10701 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
10702 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
10703 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
10704 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
10705 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
10706 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
10709 ## ------------------------------------------ ##
10710 ## Report this to the AC_PACKAGE_NAME lists. ##
10711 ## ------------------------------------------ ##
10714 sed "s/^/$as_me: WARNING: /" >&2
10717 echo "$as_me:$LINENO: checking for $ac_header" >&5
10718 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
10719 if eval "test \"\${$as_ac_Header+set}\" = set"; then
10720 echo $ECHO_N "(cached) $ECHO_C" >&6
10722 eval "$as_ac_Header=\$ac_header_preproc"
10724 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
10725 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
10728 if test `eval echo '${'$as_ac_Header'}'` = yes; then
10729 cat >>confdefs.h <<_ACEOF
10730 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
10738 for ac_header in term.h
10740 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
10741 echo "$as_me:$LINENO: checking for $ac_header" >&5
10742 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
10743 if eval "test \"\${$as_ac_Header+set}\" = set"; then
10744 echo $ECHO_N "(cached) $ECHO_C" >&6
10746 cat >conftest.$ac_ext <<_ACEOF
10749 cat confdefs.h >>conftest.$ac_ext
10750 cat >>conftest.$ac_ext <<_ACEOF
10751 /* end confdefs.h. */
10753 # include <curses.h>
10757 #include <$ac_header>
10759 rm -f conftest.$ac_objext
10760 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
10761 (eval $ac_compile) 2>conftest.er1
10763 grep -v '^ *+' conftest.er1 >conftest.err
10765 cat conftest.err >&5
10766 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10767 (exit $ac_status); } &&
10768 { ac_try='test -z "$ac_c_werror_flag"
10769 || test ! -s conftest.err'
10770 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10771 (eval $ac_try) 2>&5
10773 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10774 (exit $ac_status); }; } &&
10775 { ac_try='test -s conftest.$ac_objext'
10776 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10777 (eval $ac_try) 2>&5
10779 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10780 (exit $ac_status); }; }; then
10781 eval "$as_ac_Header=yes"
10783 echo "$as_me: failed program was:" >&5
10784 sed 's/^/| /' conftest.$ac_ext >&5
10786 eval "$as_ac_Header=no"
10788 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
10790 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
10791 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
10792 if test `eval echo '${'$as_ac_Header'}'` = yes; then
10793 cat >>confdefs.h <<_ACEOF
10794 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
10802 # FIXME: kettenis/20030102: In most cases we include these
10803 # unconditionally, so what's the point in checking these?
10806 for ac_header in ctype.h time.h
10808 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
10809 if eval "test \"\${$as_ac_Header+set}\" = set"; then
10810 echo "$as_me:$LINENO: checking for $ac_header" >&5
10811 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
10812 if eval "test \"\${$as_ac_Header+set}\" = set"; then
10813 echo $ECHO_N "(cached) $ECHO_C" >&6
10815 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
10816 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
10818 # Is the header compilable?
10819 echo "$as_me:$LINENO: checking $ac_header usability" >&5
10820 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
10821 cat >conftest.$ac_ext <<_ACEOF
10824 cat confdefs.h >>conftest.$ac_ext
10825 cat >>conftest.$ac_ext <<_ACEOF
10826 /* end confdefs.h. */
10827 $ac_includes_default
10828 #include <$ac_header>
10830 rm -f conftest.$ac_objext
10831 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
10832 (eval $ac_compile) 2>conftest.er1
10834 grep -v '^ *+' conftest.er1 >conftest.err
10836 cat conftest.err >&5
10837 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10838 (exit $ac_status); } &&
10839 { ac_try='test -z "$ac_c_werror_flag"
10840 || test ! -s conftest.err'
10841 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10842 (eval $ac_try) 2>&5
10844 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10845 (exit $ac_status); }; } &&
10846 { ac_try='test -s conftest.$ac_objext'
10847 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10848 (eval $ac_try) 2>&5
10850 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10851 (exit $ac_status); }; }; then
10852 ac_header_compiler=yes
10854 echo "$as_me: failed program was:" >&5
10855 sed 's/^/| /' conftest.$ac_ext >&5
10857 ac_header_compiler=no
10859 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
10860 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
10861 echo "${ECHO_T}$ac_header_compiler" >&6
10863 # Is the header present?
10864 echo "$as_me:$LINENO: checking $ac_header presence" >&5
10865 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
10866 cat >conftest.$ac_ext <<_ACEOF
10869 cat confdefs.h >>conftest.$ac_ext
10870 cat >>conftest.$ac_ext <<_ACEOF
10871 /* end confdefs.h. */
10872 #include <$ac_header>
10874 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
10875 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
10877 grep -v '^ *+' conftest.er1 >conftest.err
10879 cat conftest.err >&5
10880 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10881 (exit $ac_status); } >/dev/null; then
10882 if test -s conftest.err; then
10883 ac_cpp_err=$ac_c_preproc_warn_flag
10884 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
10891 if test -z "$ac_cpp_err"; then
10892 ac_header_preproc=yes
10894 echo "$as_me: failed program was:" >&5
10895 sed 's/^/| /' conftest.$ac_ext >&5
10897 ac_header_preproc=no
10899 rm -f conftest.err conftest.$ac_ext
10900 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
10901 echo "${ECHO_T}$ac_header_preproc" >&6
10903 # So? What about this header?
10904 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
10906 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
10907 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
10908 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
10909 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
10910 ac_header_preproc=yes
10913 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
10914 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
10915 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
10916 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
10917 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
10918 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
10919 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
10920 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
10921 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
10922 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
10923 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
10924 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
10927 ## ------------------------------------------ ##
10928 ## Report this to the AC_PACKAGE_NAME lists. ##
10929 ## ------------------------------------------ ##
10932 sed "s/^/$as_me: WARNING: /" >&2
10935 echo "$as_me:$LINENO: checking for $ac_header" >&5
10936 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
10937 if eval "test \"\${$as_ac_Header+set}\" = set"; then
10938 echo $ECHO_N "(cached) $ECHO_C" >&6
10940 eval "$as_ac_Header=\$ac_header_preproc"
10942 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
10943 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
10946 if test `eval echo '${'$as_ac_Header'}'` = yes; then
10947 cat >>confdefs.h <<_ACEOF
10948 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
10956 # Create a header we can use portably to get the standard integer types.
10959 inttype_headers=`echo inttypes.h sys/inttypes.h | sed -e 's/,/ /g'`
10961 acx_cv_header_stdint=stddef.h
10962 acx_cv_header_stdint_kind="(already complete)"
10963 for i in stdint.h $inttype_headers; do
10964 unset ac_cv_type_uintptr_t
10965 unset ac_cv_type_uintmax_t
10966 unset ac_cv_type_int_least32_t
10967 unset ac_cv_type_int_fast32_t
10968 unset ac_cv_type_uint64_t
10969 echo $ECHO_N "looking for a compliant stdint.h in $i, $ECHO_C" >&6
10970 echo "$as_me:$LINENO: checking for uintmax_t" >&5
10971 echo $ECHO_N "checking for uintmax_t... $ECHO_C" >&6
10972 if test "${ac_cv_type_uintmax_t+set}" = set; then
10973 echo $ECHO_N "(cached) $ECHO_C" >&6
10975 cat >conftest.$ac_ext <<_ACEOF
10978 cat confdefs.h >>conftest.$ac_ext
10979 cat >>conftest.$ac_ext <<_ACEOF
10980 /* end confdefs.h. */
10981 #include <sys/types.h>
10987 if ((uintmax_t *) 0)
10989 if (sizeof (uintmax_t))
10995 rm -f conftest.$ac_objext
10996 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
10997 (eval $ac_compile) 2>conftest.er1
10999 grep -v '^ *+' conftest.er1 >conftest.err
11001 cat conftest.err >&5
11002 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11003 (exit $ac_status); } &&
11004 { ac_try='test -z "$ac_c_werror_flag"
11005 || test ! -s conftest.err'
11006 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11007 (eval $ac_try) 2>&5
11009 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11010 (exit $ac_status); }; } &&
11011 { ac_try='test -s conftest.$ac_objext'
11012 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11013 (eval $ac_try) 2>&5
11015 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11016 (exit $ac_status); }; }; then
11017 ac_cv_type_uintmax_t=yes
11019 echo "$as_me: failed program was:" >&5
11020 sed 's/^/| /' conftest.$ac_ext >&5
11022 ac_cv_type_uintmax_t=no
11024 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
11026 echo "$as_me:$LINENO: result: $ac_cv_type_uintmax_t" >&5
11027 echo "${ECHO_T}$ac_cv_type_uintmax_t" >&6
11028 if test $ac_cv_type_uintmax_t = yes; then
11029 acx_cv_header_stdint=$i
11034 echo "$as_me:$LINENO: checking for uintptr_t" >&5
11035 echo $ECHO_N "checking for uintptr_t... $ECHO_C" >&6
11036 if test "${ac_cv_type_uintptr_t+set}" = set; then
11037 echo $ECHO_N "(cached) $ECHO_C" >&6
11039 cat >conftest.$ac_ext <<_ACEOF
11042 cat confdefs.h >>conftest.$ac_ext
11043 cat >>conftest.$ac_ext <<_ACEOF
11044 /* end confdefs.h. */
11045 #include <sys/types.h>
11051 if ((uintptr_t *) 0)
11053 if (sizeof (uintptr_t))
11059 rm -f conftest.$ac_objext
11060 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
11061 (eval $ac_compile) 2>conftest.er1
11063 grep -v '^ *+' conftest.er1 >conftest.err
11065 cat conftest.err >&5
11066 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11067 (exit $ac_status); } &&
11068 { ac_try='test -z "$ac_c_werror_flag"
11069 || test ! -s conftest.err'
11070 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11071 (eval $ac_try) 2>&5
11073 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11074 (exit $ac_status); }; } &&
11075 { ac_try='test -s conftest.$ac_objext'
11076 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11077 (eval $ac_try) 2>&5
11079 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11080 (exit $ac_status); }; }; then
11081 ac_cv_type_uintptr_t=yes
11083 echo "$as_me: failed program was:" >&5
11084 sed 's/^/| /' conftest.$ac_ext >&5
11086 ac_cv_type_uintptr_t=no
11088 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
11090 echo "$as_me:$LINENO: result: $ac_cv_type_uintptr_t" >&5
11091 echo "${ECHO_T}$ac_cv_type_uintptr_t" >&6
11092 if test $ac_cv_type_uintptr_t = yes; then
11095 acx_cv_header_stdint_kind="(mostly complete)"
11098 echo "$as_me:$LINENO: checking for int_least32_t" >&5
11099 echo $ECHO_N "checking for int_least32_t... $ECHO_C" >&6
11100 if test "${ac_cv_type_int_least32_t+set}" = set; then
11101 echo $ECHO_N "(cached) $ECHO_C" >&6
11103 cat >conftest.$ac_ext <<_ACEOF
11106 cat confdefs.h >>conftest.$ac_ext
11107 cat >>conftest.$ac_ext <<_ACEOF
11108 /* end confdefs.h. */
11109 #include <sys/types.h>
11115 if ((int_least32_t *) 0)
11117 if (sizeof (int_least32_t))
11123 rm -f conftest.$ac_objext
11124 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
11125 (eval $ac_compile) 2>conftest.er1
11127 grep -v '^ *+' conftest.er1 >conftest.err
11129 cat conftest.err >&5
11130 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11131 (exit $ac_status); } &&
11132 { ac_try='test -z "$ac_c_werror_flag"
11133 || test ! -s conftest.err'
11134 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11135 (eval $ac_try) 2>&5
11137 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11138 (exit $ac_status); }; } &&
11139 { ac_try='test -s conftest.$ac_objext'
11140 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11141 (eval $ac_try) 2>&5
11143 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11144 (exit $ac_status); }; }; then
11145 ac_cv_type_int_least32_t=yes
11147 echo "$as_me: failed program was:" >&5
11148 sed 's/^/| /' conftest.$ac_ext >&5
11150 ac_cv_type_int_least32_t=no
11152 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
11154 echo "$as_me:$LINENO: result: $ac_cv_type_int_least32_t" >&5
11155 echo "${ECHO_T}$ac_cv_type_int_least32_t" >&6
11156 if test $ac_cv_type_int_least32_t = yes; then
11159 acx_cv_header_stdint_kind="(mostly complete)"
11162 echo "$as_me:$LINENO: checking for int_fast32_t" >&5
11163 echo $ECHO_N "checking for int_fast32_t... $ECHO_C" >&6
11164 if test "${ac_cv_type_int_fast32_t+set}" = set; then
11165 echo $ECHO_N "(cached) $ECHO_C" >&6
11167 cat >conftest.$ac_ext <<_ACEOF
11170 cat confdefs.h >>conftest.$ac_ext
11171 cat >>conftest.$ac_ext <<_ACEOF
11172 /* end confdefs.h. */
11173 #include <sys/types.h>
11179 if ((int_fast32_t *) 0)
11181 if (sizeof (int_fast32_t))
11187 rm -f conftest.$ac_objext
11188 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
11189 (eval $ac_compile) 2>conftest.er1
11191 grep -v '^ *+' conftest.er1 >conftest.err
11193 cat conftest.err >&5
11194 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11195 (exit $ac_status); } &&
11196 { ac_try='test -z "$ac_c_werror_flag"
11197 || test ! -s conftest.err'
11198 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11199 (eval $ac_try) 2>&5
11201 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11202 (exit $ac_status); }; } &&
11203 { ac_try='test -s conftest.$ac_objext'
11204 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11205 (eval $ac_try) 2>&5
11207 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11208 (exit $ac_status); }; }; then
11209 ac_cv_type_int_fast32_t=yes
11211 echo "$as_me: failed program was:" >&5
11212 sed 's/^/| /' conftest.$ac_ext >&5
11214 ac_cv_type_int_fast32_t=no
11216 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
11218 echo "$as_me:$LINENO: result: $ac_cv_type_int_fast32_t" >&5
11219 echo "${ECHO_T}$ac_cv_type_int_fast32_t" >&6
11220 if test $ac_cv_type_int_fast32_t = yes; then
11223 acx_cv_header_stdint_kind="(mostly complete)"
11226 echo "$as_me:$LINENO: checking for uint64_t" >&5
11227 echo $ECHO_N "checking for uint64_t... $ECHO_C" >&6
11228 if test "${ac_cv_type_uint64_t+set}" = set; then
11229 echo $ECHO_N "(cached) $ECHO_C" >&6
11231 cat >conftest.$ac_ext <<_ACEOF
11234 cat confdefs.h >>conftest.$ac_ext
11235 cat >>conftest.$ac_ext <<_ACEOF
11236 /* end confdefs.h. */
11237 #include <sys/types.h>
11243 if ((uint64_t *) 0)
11245 if (sizeof (uint64_t))
11251 rm -f conftest.$ac_objext
11252 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
11253 (eval $ac_compile) 2>conftest.er1
11255 grep -v '^ *+' conftest.er1 >conftest.err
11257 cat conftest.err >&5
11258 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11259 (exit $ac_status); } &&
11260 { ac_try='test -z "$ac_c_werror_flag"
11261 || test ! -s conftest.err'
11262 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11263 (eval $ac_try) 2>&5
11265 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11266 (exit $ac_status); }; } &&
11267 { ac_try='test -s conftest.$ac_objext'
11268 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11269 (eval $ac_try) 2>&5
11271 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11272 (exit $ac_status); }; }; then
11273 ac_cv_type_uint64_t=yes
11275 echo "$as_me: failed program was:" >&5
11276 sed 's/^/| /' conftest.$ac_ext >&5
11278 ac_cv_type_uint64_t=no
11280 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
11282 echo "$as_me:$LINENO: result: $ac_cv_type_uint64_t" >&5
11283 echo "${ECHO_T}$ac_cv_type_uint64_t" >&6
11284 if test $ac_cv_type_uint64_t = yes; then
11287 acx_cv_header_stdint_kind="(lacks uint64_t)"
11292 if test "$acx_cv_header_stdint" = stddef.h; then
11293 acx_cv_header_stdint_kind="(lacks uintmax_t)"
11294 for i in stdint.h $inttype_headers; do
11295 unset ac_cv_type_uintptr_t
11296 unset ac_cv_type_uint32_t
11297 unset ac_cv_type_uint64_t
11298 echo $ECHO_N "looking for an incomplete stdint.h in $i, $ECHO_C" >&6
11299 echo "$as_me:$LINENO: checking for uint32_t" >&5
11300 echo $ECHO_N "checking for uint32_t... $ECHO_C" >&6
11301 if test "${ac_cv_type_uint32_t+set}" = set; then
11302 echo $ECHO_N "(cached) $ECHO_C" >&6
11304 cat >conftest.$ac_ext <<_ACEOF
11307 cat confdefs.h >>conftest.$ac_ext
11308 cat >>conftest.$ac_ext <<_ACEOF
11309 /* end confdefs.h. */
11310 #include <sys/types.h>
11316 if ((uint32_t *) 0)
11318 if (sizeof (uint32_t))
11324 rm -f conftest.$ac_objext
11325 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
11326 (eval $ac_compile) 2>conftest.er1
11328 grep -v '^ *+' conftest.er1 >conftest.err
11330 cat conftest.err >&5
11331 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11332 (exit $ac_status); } &&
11333 { ac_try='test -z "$ac_c_werror_flag"
11334 || test ! -s conftest.err'
11335 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11336 (eval $ac_try) 2>&5
11338 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11339 (exit $ac_status); }; } &&
11340 { ac_try='test -s conftest.$ac_objext'
11341 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11342 (eval $ac_try) 2>&5
11344 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11345 (exit $ac_status); }; }; then
11346 ac_cv_type_uint32_t=yes
11348 echo "$as_me: failed program was:" >&5
11349 sed 's/^/| /' conftest.$ac_ext >&5
11351 ac_cv_type_uint32_t=no
11353 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
11355 echo "$as_me:$LINENO: result: $ac_cv_type_uint32_t" >&5
11356 echo "${ECHO_T}$ac_cv_type_uint32_t" >&6
11357 if test $ac_cv_type_uint32_t = yes; then
11358 acx_cv_header_stdint=$i
11363 echo "$as_me:$LINENO: checking for uint64_t" >&5
11364 echo $ECHO_N "checking for uint64_t... $ECHO_C" >&6
11365 if test "${ac_cv_type_uint64_t+set}" = set; then
11366 echo $ECHO_N "(cached) $ECHO_C" >&6
11368 cat >conftest.$ac_ext <<_ACEOF
11371 cat confdefs.h >>conftest.$ac_ext
11372 cat >>conftest.$ac_ext <<_ACEOF
11373 /* end confdefs.h. */
11374 #include <sys/types.h>
11380 if ((uint64_t *) 0)
11382 if (sizeof (uint64_t))
11388 rm -f conftest.$ac_objext
11389 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
11390 (eval $ac_compile) 2>conftest.er1
11392 grep -v '^ *+' conftest.er1 >conftest.err
11394 cat conftest.err >&5
11395 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11396 (exit $ac_status); } &&
11397 { ac_try='test -z "$ac_c_werror_flag"
11398 || test ! -s conftest.err'
11399 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11400 (eval $ac_try) 2>&5
11402 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11403 (exit $ac_status); }; } &&
11404 { ac_try='test -s conftest.$ac_objext'
11405 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11406 (eval $ac_try) 2>&5
11408 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11409 (exit $ac_status); }; }; then
11410 ac_cv_type_uint64_t=yes
11412 echo "$as_me: failed program was:" >&5
11413 sed 's/^/| /' conftest.$ac_ext >&5
11415 ac_cv_type_uint64_t=no
11417 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
11419 echo "$as_me:$LINENO: result: $ac_cv_type_uint64_t" >&5
11420 echo "${ECHO_T}$ac_cv_type_uint64_t" >&6
11422 echo "$as_me:$LINENO: checking for uintptr_t" >&5
11423 echo $ECHO_N "checking for uintptr_t... $ECHO_C" >&6
11424 if test "${ac_cv_type_uintptr_t+set}" = set; then
11425 echo $ECHO_N "(cached) $ECHO_C" >&6
11427 cat >conftest.$ac_ext <<_ACEOF
11430 cat confdefs.h >>conftest.$ac_ext
11431 cat >>conftest.$ac_ext <<_ACEOF
11432 /* end confdefs.h. */
11433 #include <sys/types.h>
11439 if ((uintptr_t *) 0)
11441 if (sizeof (uintptr_t))
11447 rm -f conftest.$ac_objext
11448 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
11449 (eval $ac_compile) 2>conftest.er1
11451 grep -v '^ *+' conftest.er1 >conftest.err
11453 cat conftest.err >&5
11454 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11455 (exit $ac_status); } &&
11456 { ac_try='test -z "$ac_c_werror_flag"
11457 || test ! -s conftest.err'
11458 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11459 (eval $ac_try) 2>&5
11461 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11462 (exit $ac_status); }; } &&
11463 { ac_try='test -s conftest.$ac_objext'
11464 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11465 (eval $ac_try) 2>&5
11467 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11468 (exit $ac_status); }; }; then
11469 ac_cv_type_uintptr_t=yes
11471 echo "$as_me: failed program was:" >&5
11472 sed 's/^/| /' conftest.$ac_ext >&5
11474 ac_cv_type_uintptr_t=no
11476 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
11478 echo "$as_me:$LINENO: result: $ac_cv_type_uintptr_t" >&5
11479 echo "${ECHO_T}$ac_cv_type_uintptr_t" >&6
11484 if test "$acx_cv_header_stdint" = stddef.h; then
11485 acx_cv_header_stdint_kind="(u_intXX_t style)"
11486 for i in sys/types.h $inttype_headers; do
11487 unset ac_cv_type_u_int32_t
11488 unset ac_cv_type_u_int64_t
11489 echo $ECHO_N "looking for u_intXX_t types in $i, $ECHO_C" >&6
11490 echo "$as_me:$LINENO: checking for u_int32_t" >&5
11491 echo $ECHO_N "checking for u_int32_t... $ECHO_C" >&6
11492 if test "${ac_cv_type_u_int32_t+set}" = set; then
11493 echo $ECHO_N "(cached) $ECHO_C" >&6
11495 cat >conftest.$ac_ext <<_ACEOF
11498 cat confdefs.h >>conftest.$ac_ext
11499 cat >>conftest.$ac_ext <<_ACEOF
11500 /* end confdefs.h. */
11501 #include <sys/types.h>
11507 if ((u_int32_t *) 0)
11509 if (sizeof (u_int32_t))
11515 rm -f conftest.$ac_objext
11516 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
11517 (eval $ac_compile) 2>conftest.er1
11519 grep -v '^ *+' conftest.er1 >conftest.err
11521 cat conftest.err >&5
11522 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11523 (exit $ac_status); } &&
11524 { ac_try='test -z "$ac_c_werror_flag"
11525 || test ! -s conftest.err'
11526 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11527 (eval $ac_try) 2>&5
11529 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11530 (exit $ac_status); }; } &&
11531 { ac_try='test -s conftest.$ac_objext'
11532 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11533 (eval $ac_try) 2>&5
11535 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11536 (exit $ac_status); }; }; then
11537 ac_cv_type_u_int32_t=yes
11539 echo "$as_me: failed program was:" >&5
11540 sed 's/^/| /' conftest.$ac_ext >&5
11542 ac_cv_type_u_int32_t=no
11544 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
11546 echo "$as_me:$LINENO: result: $ac_cv_type_u_int32_t" >&5
11547 echo "${ECHO_T}$ac_cv_type_u_int32_t" >&6
11548 if test $ac_cv_type_u_int32_t = yes; then
11549 acx_cv_header_stdint=$i
11554 echo "$as_me:$LINENO: checking for u_int64_t" >&5
11555 echo $ECHO_N "checking for u_int64_t... $ECHO_C" >&6
11556 if test "${ac_cv_type_u_int64_t+set}" = set; then
11557 echo $ECHO_N "(cached) $ECHO_C" >&6
11559 cat >conftest.$ac_ext <<_ACEOF
11562 cat confdefs.h >>conftest.$ac_ext
11563 cat >>conftest.$ac_ext <<_ACEOF
11564 /* end confdefs.h. */
11565 #include <sys/types.h>
11571 if ((u_int64_t *) 0)
11573 if (sizeof (u_int64_t))
11579 rm -f conftest.$ac_objext
11580 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
11581 (eval $ac_compile) 2>conftest.er1
11583 grep -v '^ *+' conftest.er1 >conftest.err
11585 cat conftest.err >&5
11586 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11587 (exit $ac_status); } &&
11588 { ac_try='test -z "$ac_c_werror_flag"
11589 || test ! -s conftest.err'
11590 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11591 (eval $ac_try) 2>&5
11593 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11594 (exit $ac_status); }; } &&
11595 { ac_try='test -s conftest.$ac_objext'
11596 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11597 (eval $ac_try) 2>&5
11599 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11600 (exit $ac_status); }; }; then
11601 ac_cv_type_u_int64_t=yes
11603 echo "$as_me: failed program was:" >&5
11604 sed 's/^/| /' conftest.$ac_ext >&5
11606 ac_cv_type_u_int64_t=no
11608 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
11610 echo "$as_me:$LINENO: result: $ac_cv_type_u_int64_t" >&5
11611 echo "${ECHO_T}$ac_cv_type_u_int64_t" >&6
11616 if test "$acx_cv_header_stdint" = stddef.h; then
11617 acx_cv_header_stdint_kind="(using manual detection)"
11620 test -z "$ac_cv_type_uintptr_t" && ac_cv_type_uintptr_t=no
11621 test -z "$ac_cv_type_uint64_t" && ac_cv_type_uint64_t=no
11622 test -z "$ac_cv_type_u_int64_t" && ac_cv_type_u_int64_t=no
11623 test -z "$ac_cv_type_int_least32_t" && ac_cv_type_int_least32_t=no
11624 test -z "$ac_cv_type_int_fast32_t" && ac_cv_type_int_fast32_t=no
11626 # ----------------- Summarize what we found so far
11628 echo "$as_me:$LINENO: checking what to include in gdb_stdint.h" >&5
11629 echo $ECHO_N "checking what to include in gdb_stdint.h... $ECHO_C" >&6
11631 case `$as_basename gdb_stdint.h ||
11632 $as_expr X/gdb_stdint.h : '.*/\([^/][^/]*\)/*$' \| \
11633 Xgdb_stdint.h : 'X\(//\)$' \| \
11634 Xgdb_stdint.h : 'X\(/\)$' \| \
11635 . : '\(.\)' 2>/dev/null ||
11636 echo X/gdb_stdint.h |
11637 sed '/^.*\/\([^/][^/]*\)\/*$/{ s//\1/; q; }
11638 /^X\/\(\/\/\)$/{ s//\1/; q; }
11639 /^X\/\(\/\).*/{ s//\1/; q; }
11641 stdint.h) { echo "$as_me:$LINENO: WARNING: are you sure you want it there?" >&5
11642 echo "$as_me: WARNING: are you sure you want it there?" >&2;} ;;
11643 inttypes.h) { echo "$as_me:$LINENO: WARNING: are you sure you want it there?" >&5
11644 echo "$as_me: WARNING: are you sure you want it there?" >&2;} ;;
11648 echo "$as_me:$LINENO: result: $acx_cv_header_stdint $acx_cv_header_stdint_kind" >&5
11649 echo "${ECHO_T}$acx_cv_header_stdint $acx_cv_header_stdint_kind" >&6
11651 # ----------------- done included file, check C basic types --------
11653 # Lacking an uintptr_t? Test size of void *
11654 case "$acx_cv_header_stdint:$ac_cv_type_uintptr_t" in
11655 stddef.h:* | *:no) echo "$as_me:$LINENO: checking for void *" >&5
11656 echo $ECHO_N "checking for void *... $ECHO_C" >&6
11657 if test "${ac_cv_type_void_p+set}" = set; then
11658 echo $ECHO_N "(cached) $ECHO_C" >&6
11660 cat >conftest.$ac_ext <<_ACEOF
11663 cat confdefs.h >>conftest.$ac_ext
11664 cat >>conftest.$ac_ext <<_ACEOF
11665 /* end confdefs.h. */
11666 $ac_includes_default
11672 if (sizeof (void *))
11678 rm -f conftest.$ac_objext
11679 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
11680 (eval $ac_compile) 2>conftest.er1
11682 grep -v '^ *+' conftest.er1 >conftest.err
11684 cat conftest.err >&5
11685 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11686 (exit $ac_status); } &&
11687 { ac_try='test -z "$ac_c_werror_flag"
11688 || test ! -s conftest.err'
11689 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11690 (eval $ac_try) 2>&5
11692 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11693 (exit $ac_status); }; } &&
11694 { ac_try='test -s conftest.$ac_objext'
11695 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11696 (eval $ac_try) 2>&5
11698 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11699 (exit $ac_status); }; }; then
11700 ac_cv_type_void_p=yes
11702 echo "$as_me: failed program was:" >&5
11703 sed 's/^/| /' conftest.$ac_ext >&5
11705 ac_cv_type_void_p=no
11707 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
11709 echo "$as_me:$LINENO: result: $ac_cv_type_void_p" >&5
11710 echo "${ECHO_T}$ac_cv_type_void_p" >&6
11712 echo "$as_me:$LINENO: checking size of void *" >&5
11713 echo $ECHO_N "checking size of void *... $ECHO_C" >&6
11714 if test "${ac_cv_sizeof_void_p+set}" = set; then
11715 echo $ECHO_N "(cached) $ECHO_C" >&6
11717 if test "$ac_cv_type_void_p" = yes; then
11718 # The cast to unsigned long works around a bug in the HP C Compiler
11719 # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
11720 # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
11721 # This bug is HP SR number 8606223364.
11722 if test "$cross_compiling" = yes; then
11723 # Depending upon the size, compute the lo and hi bounds.
11724 cat >conftest.$ac_ext <<_ACEOF
11727 cat confdefs.h >>conftest.$ac_ext
11728 cat >>conftest.$ac_ext <<_ACEOF
11729 /* end confdefs.h. */
11730 $ac_includes_default
11734 static int test_array [1 - 2 * !(((long) (sizeof (void *))) >= 0)];
11741 rm -f conftest.$ac_objext
11742 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
11743 (eval $ac_compile) 2>conftest.er1
11745 grep -v '^ *+' conftest.er1 >conftest.err
11747 cat conftest.err >&5
11748 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11749 (exit $ac_status); } &&
11750 { ac_try='test -z "$ac_c_werror_flag"
11751 || test ! -s conftest.err'
11752 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11753 (eval $ac_try) 2>&5
11755 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11756 (exit $ac_status); }; } &&
11757 { ac_try='test -s conftest.$ac_objext'
11758 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11759 (eval $ac_try) 2>&5
11761 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11762 (exit $ac_status); }; }; then
11765 cat >conftest.$ac_ext <<_ACEOF
11768 cat confdefs.h >>conftest.$ac_ext
11769 cat >>conftest.$ac_ext <<_ACEOF
11770 /* end confdefs.h. */
11771 $ac_includes_default
11775 static int test_array [1 - 2 * !(((long) (sizeof (void *))) <= $ac_mid)];
11782 rm -f conftest.$ac_objext
11783 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
11784 (eval $ac_compile) 2>conftest.er1
11786 grep -v '^ *+' conftest.er1 >conftest.err
11788 cat conftest.err >&5
11789 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11790 (exit $ac_status); } &&
11791 { ac_try='test -z "$ac_c_werror_flag"
11792 || test ! -s conftest.err'
11793 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11794 (eval $ac_try) 2>&5
11796 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11797 (exit $ac_status); }; } &&
11798 { ac_try='test -s conftest.$ac_objext'
11799 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11800 (eval $ac_try) 2>&5
11802 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11803 (exit $ac_status); }; }; then
11804 ac_hi=$ac_mid; break
11806 echo "$as_me: failed program was:" >&5
11807 sed 's/^/| /' conftest.$ac_ext >&5
11809 ac_lo=`expr $ac_mid + 1`
11810 if test $ac_lo -le $ac_mid; then
11814 ac_mid=`expr 2 '*' $ac_mid + 1`
11816 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
11819 echo "$as_me: failed program was:" >&5
11820 sed 's/^/| /' conftest.$ac_ext >&5
11822 cat >conftest.$ac_ext <<_ACEOF
11825 cat confdefs.h >>conftest.$ac_ext
11826 cat >>conftest.$ac_ext <<_ACEOF
11827 /* end confdefs.h. */
11828 $ac_includes_default
11832 static int test_array [1 - 2 * !(((long) (sizeof (void *))) < 0)];
11839 rm -f conftest.$ac_objext
11840 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
11841 (eval $ac_compile) 2>conftest.er1
11843 grep -v '^ *+' conftest.er1 >conftest.err
11845 cat conftest.err >&5
11846 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11847 (exit $ac_status); } &&
11848 { ac_try='test -z "$ac_c_werror_flag"
11849 || test ! -s conftest.err'
11850 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11851 (eval $ac_try) 2>&5
11853 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11854 (exit $ac_status); }; } &&
11855 { ac_try='test -s conftest.$ac_objext'
11856 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11857 (eval $ac_try) 2>&5
11859 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11860 (exit $ac_status); }; }; then
11863 cat >conftest.$ac_ext <<_ACEOF
11866 cat confdefs.h >>conftest.$ac_ext
11867 cat >>conftest.$ac_ext <<_ACEOF
11868 /* end confdefs.h. */
11869 $ac_includes_default
11873 static int test_array [1 - 2 * !(((long) (sizeof (void *))) >= $ac_mid)];
11880 rm -f conftest.$ac_objext
11881 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
11882 (eval $ac_compile) 2>conftest.er1
11884 grep -v '^ *+' conftest.er1 >conftest.err
11886 cat conftest.err >&5
11887 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11888 (exit $ac_status); } &&
11889 { ac_try='test -z "$ac_c_werror_flag"
11890 || test ! -s conftest.err'
11891 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11892 (eval $ac_try) 2>&5
11894 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11895 (exit $ac_status); }; } &&
11896 { ac_try='test -s conftest.$ac_objext'
11897 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11898 (eval $ac_try) 2>&5
11900 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11901 (exit $ac_status); }; }; then
11902 ac_lo=$ac_mid; break
11904 echo "$as_me: failed program was:" >&5
11905 sed 's/^/| /' conftest.$ac_ext >&5
11907 ac_hi=`expr '(' $ac_mid ')' - 1`
11908 if test $ac_mid -le $ac_hi; then
11912 ac_mid=`expr 2 '*' $ac_mid`
11914 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
11917 echo "$as_me: failed program was:" >&5
11918 sed 's/^/| /' conftest.$ac_ext >&5
11922 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
11924 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
11925 # Binary search between lo and hi bounds.
11926 while test "x$ac_lo" != "x$ac_hi"; do
11927 ac_mid=`expr '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo`
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 *))) <= $ac_mid)];
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 echo "$as_me: failed program was:" >&5
11970 sed 's/^/| /' conftest.$ac_ext >&5
11972 ac_lo=`expr '(' $ac_mid ')' + 1`
11974 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
11977 ?*) ac_cv_sizeof_void_p=$ac_lo;;
11978 '') { { echo "$as_me:$LINENO: error: cannot compute sizeof (void *), 77
11979 See \`config.log' for more details." >&5
11980 echo "$as_me: error: cannot compute sizeof (void *), 77
11981 See \`config.log' for more details." >&2;}
11982 { (exit 1); exit 1; }; } ;;
11985 if test "$cross_compiling" = yes; then
11986 { { echo "$as_me:$LINENO: error: cannot run test program while cross compiling
11987 See \`config.log' for more details." >&5
11988 echo "$as_me: error: cannot run test program while cross compiling
11989 See \`config.log' for more details." >&2;}
11990 { (exit 1); exit 1; }; }
11992 cat >conftest.$ac_ext <<_ACEOF
11995 cat confdefs.h >>conftest.$ac_ext
11996 cat >>conftest.$ac_ext <<_ACEOF
11997 /* end confdefs.h. */
11998 $ac_includes_default
11999 long longval () { return (long) (sizeof (void *)); }
12000 unsigned long ulongval () { return (long) (sizeof (void *)); }
12002 #include <stdlib.h>
12007 FILE *f = fopen ("conftest.val", "w");
12010 if (((long) (sizeof (void *))) < 0)
12012 long i = longval ();
12013 if (i != ((long) (sizeof (void *))))
12015 fprintf (f, "%ld\n", i);
12019 unsigned long i = ulongval ();
12020 if (i != ((long) (sizeof (void *))))
12022 fprintf (f, "%lu\n", i);
12024 exit (ferror (f) || fclose (f) != 0);
12030 rm -f conftest$ac_exeext
12031 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
12032 (eval $ac_link) 2>&5
12034 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12035 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
12036 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12037 (eval $ac_try) 2>&5
12039 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12040 (exit $ac_status); }; }; then
12041 ac_cv_sizeof_void_p=`cat conftest.val`
12043 echo "$as_me: program exited with status $ac_status" >&5
12044 echo "$as_me: failed program was:" >&5
12045 sed 's/^/| /' conftest.$ac_ext >&5
12047 ( exit $ac_status )
12048 { { echo "$as_me:$LINENO: error: cannot compute sizeof (void *), 77
12049 See \`config.log' for more details." >&5
12050 echo "$as_me: error: cannot compute sizeof (void *), 77
12051 See \`config.log' for more details." >&2;}
12052 { (exit 1); exit 1; }; }
12054 rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
12059 ac_cv_sizeof_void_p=0
12062 echo "$as_me:$LINENO: result: $ac_cv_sizeof_void_p" >&5
12063 echo "${ECHO_T}$ac_cv_sizeof_void_p" >&6
12064 cat >>confdefs.h <<_ACEOF
12065 #define SIZEOF_VOID_P $ac_cv_sizeof_void_p
12071 # Lacking an uint64_t? Test size of long
12072 case "$acx_cv_header_stdint:$ac_cv_type_uint64_t:$ac_cv_type_u_int64_t" in
12073 stddef.h:*:* | *:no:no) echo "$as_me:$LINENO: checking for long" >&5
12074 echo $ECHO_N "checking for long... $ECHO_C" >&6
12075 if test "${ac_cv_type_long+set}" = set; then
12076 echo $ECHO_N "(cached) $ECHO_C" >&6
12078 cat >conftest.$ac_ext <<_ACEOF
12081 cat confdefs.h >>conftest.$ac_ext
12082 cat >>conftest.$ac_ext <<_ACEOF
12083 /* end confdefs.h. */
12084 $ac_includes_default
12096 rm -f conftest.$ac_objext
12097 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
12098 (eval $ac_compile) 2>conftest.er1
12100 grep -v '^ *+' conftest.er1 >conftest.err
12102 cat conftest.err >&5
12103 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12104 (exit $ac_status); } &&
12105 { ac_try='test -z "$ac_c_werror_flag"
12106 || test ! -s conftest.err'
12107 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12108 (eval $ac_try) 2>&5
12110 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12111 (exit $ac_status); }; } &&
12112 { ac_try='test -s conftest.$ac_objext'
12113 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12114 (eval $ac_try) 2>&5
12116 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12117 (exit $ac_status); }; }; then
12118 ac_cv_type_long=yes
12120 echo "$as_me: failed program was:" >&5
12121 sed 's/^/| /' conftest.$ac_ext >&5
12125 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
12127 echo "$as_me:$LINENO: result: $ac_cv_type_long" >&5
12128 echo "${ECHO_T}$ac_cv_type_long" >&6
12130 echo "$as_me:$LINENO: checking size of long" >&5
12131 echo $ECHO_N "checking size of long... $ECHO_C" >&6
12132 if test "${ac_cv_sizeof_long+set}" = set; then
12133 echo $ECHO_N "(cached) $ECHO_C" >&6
12135 if test "$ac_cv_type_long" = yes; then
12136 # The cast to unsigned long works around a bug in the HP C Compiler
12137 # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
12138 # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
12139 # This bug is HP SR number 8606223364.
12140 if test "$cross_compiling" = yes; then
12141 # Depending upon the size, compute the lo and hi bounds.
12142 cat >conftest.$ac_ext <<_ACEOF
12145 cat confdefs.h >>conftest.$ac_ext
12146 cat >>conftest.$ac_ext <<_ACEOF
12147 /* end confdefs.h. */
12148 $ac_includes_default
12152 static int test_array [1 - 2 * !(((long) (sizeof (long))) >= 0)];
12159 rm -f conftest.$ac_objext
12160 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
12161 (eval $ac_compile) 2>conftest.er1
12163 grep -v '^ *+' conftest.er1 >conftest.err
12165 cat conftest.err >&5
12166 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12167 (exit $ac_status); } &&
12168 { ac_try='test -z "$ac_c_werror_flag"
12169 || test ! -s conftest.err'
12170 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12171 (eval $ac_try) 2>&5
12173 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12174 (exit $ac_status); }; } &&
12175 { ac_try='test -s conftest.$ac_objext'
12176 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12177 (eval $ac_try) 2>&5
12179 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12180 (exit $ac_status); }; }; then
12183 cat >conftest.$ac_ext <<_ACEOF
12186 cat confdefs.h >>conftest.$ac_ext
12187 cat >>conftest.$ac_ext <<_ACEOF
12188 /* end confdefs.h. */
12189 $ac_includes_default
12193 static int test_array [1 - 2 * !(((long) (sizeof (long))) <= $ac_mid)];
12200 rm -f conftest.$ac_objext
12201 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
12202 (eval $ac_compile) 2>conftest.er1
12204 grep -v '^ *+' conftest.er1 >conftest.err
12206 cat conftest.err >&5
12207 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12208 (exit $ac_status); } &&
12209 { ac_try='test -z "$ac_c_werror_flag"
12210 || test ! -s conftest.err'
12211 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12212 (eval $ac_try) 2>&5
12214 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12215 (exit $ac_status); }; } &&
12216 { ac_try='test -s conftest.$ac_objext'
12217 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12218 (eval $ac_try) 2>&5
12220 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12221 (exit $ac_status); }; }; then
12222 ac_hi=$ac_mid; break
12224 echo "$as_me: failed program was:" >&5
12225 sed 's/^/| /' conftest.$ac_ext >&5
12227 ac_lo=`expr $ac_mid + 1`
12228 if test $ac_lo -le $ac_mid; then
12232 ac_mid=`expr 2 '*' $ac_mid + 1`
12234 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
12237 echo "$as_me: failed program was:" >&5
12238 sed 's/^/| /' conftest.$ac_ext >&5
12240 cat >conftest.$ac_ext <<_ACEOF
12243 cat confdefs.h >>conftest.$ac_ext
12244 cat >>conftest.$ac_ext <<_ACEOF
12245 /* end confdefs.h. */
12246 $ac_includes_default
12250 static int test_array [1 - 2 * !(((long) (sizeof (long))) < 0)];
12257 rm -f conftest.$ac_objext
12258 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
12259 (eval $ac_compile) 2>conftest.er1
12261 grep -v '^ *+' conftest.er1 >conftest.err
12263 cat conftest.err >&5
12264 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12265 (exit $ac_status); } &&
12266 { ac_try='test -z "$ac_c_werror_flag"
12267 || test ! -s conftest.err'
12268 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12269 (eval $ac_try) 2>&5
12271 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12272 (exit $ac_status); }; } &&
12273 { ac_try='test -s conftest.$ac_objext'
12274 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12275 (eval $ac_try) 2>&5
12277 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12278 (exit $ac_status); }; }; then
12281 cat >conftest.$ac_ext <<_ACEOF
12284 cat confdefs.h >>conftest.$ac_ext
12285 cat >>conftest.$ac_ext <<_ACEOF
12286 /* end confdefs.h. */
12287 $ac_includes_default
12291 static int test_array [1 - 2 * !(((long) (sizeof (long))) >= $ac_mid)];
12298 rm -f conftest.$ac_objext
12299 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
12300 (eval $ac_compile) 2>conftest.er1
12302 grep -v '^ *+' conftest.er1 >conftest.err
12304 cat conftest.err >&5
12305 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12306 (exit $ac_status); } &&
12307 { ac_try='test -z "$ac_c_werror_flag"
12308 || test ! -s conftest.err'
12309 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12310 (eval $ac_try) 2>&5
12312 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12313 (exit $ac_status); }; } &&
12314 { ac_try='test -s conftest.$ac_objext'
12315 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12316 (eval $ac_try) 2>&5
12318 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12319 (exit $ac_status); }; }; then
12320 ac_lo=$ac_mid; break
12322 echo "$as_me: failed program was:" >&5
12323 sed 's/^/| /' conftest.$ac_ext >&5
12325 ac_hi=`expr '(' $ac_mid ')' - 1`
12326 if test $ac_mid -le $ac_hi; then
12330 ac_mid=`expr 2 '*' $ac_mid`
12332 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
12335 echo "$as_me: failed program was:" >&5
12336 sed 's/^/| /' conftest.$ac_ext >&5
12340 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
12342 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
12343 # Binary search between lo and hi bounds.
12344 while test "x$ac_lo" != "x$ac_hi"; do
12345 ac_mid=`expr '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo`
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))) <= $ac_mid)];
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 echo "$as_me: failed program was:" >&5
12388 sed 's/^/| /' conftest.$ac_ext >&5
12390 ac_lo=`expr '(' $ac_mid ')' + 1`
12392 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
12395 ?*) ac_cv_sizeof_long=$ac_lo;;
12396 '') { { echo "$as_me:$LINENO: error: cannot compute sizeof (long), 77
12397 See \`config.log' for more details." >&5
12398 echo "$as_me: error: cannot compute sizeof (long), 77
12399 See \`config.log' for more details." >&2;}
12400 { (exit 1); exit 1; }; } ;;
12403 if test "$cross_compiling" = yes; then
12404 { { echo "$as_me:$LINENO: error: cannot run test program while cross compiling
12405 See \`config.log' for more details." >&5
12406 echo "$as_me: error: cannot run test program while cross compiling
12407 See \`config.log' for more details." >&2;}
12408 { (exit 1); exit 1; }; }
12410 cat >conftest.$ac_ext <<_ACEOF
12413 cat confdefs.h >>conftest.$ac_ext
12414 cat >>conftest.$ac_ext <<_ACEOF
12415 /* end confdefs.h. */
12416 $ac_includes_default
12417 long longval () { return (long) (sizeof (long)); }
12418 unsigned long ulongval () { return (long) (sizeof (long)); }
12420 #include <stdlib.h>
12425 FILE *f = fopen ("conftest.val", "w");
12428 if (((long) (sizeof (long))) < 0)
12430 long i = longval ();
12431 if (i != ((long) (sizeof (long))))
12433 fprintf (f, "%ld\n", i);
12437 unsigned long i = ulongval ();
12438 if (i != ((long) (sizeof (long))))
12440 fprintf (f, "%lu\n", i);
12442 exit (ferror (f) || fclose (f) != 0);
12448 rm -f conftest$ac_exeext
12449 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
12450 (eval $ac_link) 2>&5
12452 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12453 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
12454 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12455 (eval $ac_try) 2>&5
12457 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12458 (exit $ac_status); }; }; then
12459 ac_cv_sizeof_long=`cat conftest.val`
12461 echo "$as_me: program exited with status $ac_status" >&5
12462 echo "$as_me: failed program was:" >&5
12463 sed 's/^/| /' conftest.$ac_ext >&5
12465 ( exit $ac_status )
12466 { { echo "$as_me:$LINENO: error: cannot compute sizeof (long), 77
12467 See \`config.log' for more details." >&5
12468 echo "$as_me: error: cannot compute sizeof (long), 77
12469 See \`config.log' for more details." >&2;}
12470 { (exit 1); exit 1; }; }
12472 rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
12477 ac_cv_sizeof_long=0
12480 echo "$as_me:$LINENO: result: $ac_cv_sizeof_long" >&5
12481 echo "${ECHO_T}$ac_cv_sizeof_long" >&6
12482 cat >>confdefs.h <<_ACEOF
12483 #define SIZEOF_LONG $ac_cv_sizeof_long
12489 if test $acx_cv_header_stdint = stddef.h; then
12490 # Lacking a good header? Test size of everything and deduce all types.
12491 echo "$as_me:$LINENO: checking for int" >&5
12492 echo $ECHO_N "checking for int... $ECHO_C" >&6
12493 if test "${ac_cv_type_int+set}" = set; then
12494 echo $ECHO_N "(cached) $ECHO_C" >&6
12496 cat >conftest.$ac_ext <<_ACEOF
12499 cat confdefs.h >>conftest.$ac_ext
12500 cat >>conftest.$ac_ext <<_ACEOF
12501 /* end confdefs.h. */
12502 $ac_includes_default
12514 rm -f conftest.$ac_objext
12515 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
12516 (eval $ac_compile) 2>conftest.er1
12518 grep -v '^ *+' conftest.er1 >conftest.err
12520 cat conftest.err >&5
12521 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12522 (exit $ac_status); } &&
12523 { ac_try='test -z "$ac_c_werror_flag"
12524 || test ! -s conftest.err'
12525 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12526 (eval $ac_try) 2>&5
12528 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12529 (exit $ac_status); }; } &&
12530 { ac_try='test -s conftest.$ac_objext'
12531 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12532 (eval $ac_try) 2>&5
12534 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12535 (exit $ac_status); }; }; then
12538 echo "$as_me: failed program was:" >&5
12539 sed 's/^/| /' conftest.$ac_ext >&5
12543 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
12545 echo "$as_me:$LINENO: result: $ac_cv_type_int" >&5
12546 echo "${ECHO_T}$ac_cv_type_int" >&6
12548 echo "$as_me:$LINENO: checking size of int" >&5
12549 echo $ECHO_N "checking size of int... $ECHO_C" >&6
12550 if test "${ac_cv_sizeof_int+set}" = set; then
12551 echo $ECHO_N "(cached) $ECHO_C" >&6
12553 if test "$ac_cv_type_int" = yes; then
12554 # The cast to unsigned long works around a bug in the HP C Compiler
12555 # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
12556 # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
12557 # This bug is HP SR number 8606223364.
12558 if test "$cross_compiling" = yes; then
12559 # Depending upon the size, compute the lo and hi bounds.
12560 cat >conftest.$ac_ext <<_ACEOF
12563 cat confdefs.h >>conftest.$ac_ext
12564 cat >>conftest.$ac_ext <<_ACEOF
12565 /* end confdefs.h. */
12566 $ac_includes_default
12570 static int test_array [1 - 2 * !(((long) (sizeof (int))) >= 0)];
12577 rm -f conftest.$ac_objext
12578 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
12579 (eval $ac_compile) 2>conftest.er1
12581 grep -v '^ *+' conftest.er1 >conftest.err
12583 cat conftest.err >&5
12584 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12585 (exit $ac_status); } &&
12586 { ac_try='test -z "$ac_c_werror_flag"
12587 || test ! -s conftest.err'
12588 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12589 (eval $ac_try) 2>&5
12591 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12592 (exit $ac_status); }; } &&
12593 { ac_try='test -s conftest.$ac_objext'
12594 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12595 (eval $ac_try) 2>&5
12597 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12598 (exit $ac_status); }; }; then
12601 cat >conftest.$ac_ext <<_ACEOF
12604 cat confdefs.h >>conftest.$ac_ext
12605 cat >>conftest.$ac_ext <<_ACEOF
12606 /* end confdefs.h. */
12607 $ac_includes_default
12611 static int test_array [1 - 2 * !(((long) (sizeof (int))) <= $ac_mid)];
12618 rm -f conftest.$ac_objext
12619 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
12620 (eval $ac_compile) 2>conftest.er1
12622 grep -v '^ *+' conftest.er1 >conftest.err
12624 cat conftest.err >&5
12625 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12626 (exit $ac_status); } &&
12627 { ac_try='test -z "$ac_c_werror_flag"
12628 || test ! -s conftest.err'
12629 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12630 (eval $ac_try) 2>&5
12632 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12633 (exit $ac_status); }; } &&
12634 { ac_try='test -s conftest.$ac_objext'
12635 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12636 (eval $ac_try) 2>&5
12638 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12639 (exit $ac_status); }; }; then
12640 ac_hi=$ac_mid; break
12642 echo "$as_me: failed program was:" >&5
12643 sed 's/^/| /' conftest.$ac_ext >&5
12645 ac_lo=`expr $ac_mid + 1`
12646 if test $ac_lo -le $ac_mid; then
12650 ac_mid=`expr 2 '*' $ac_mid + 1`
12652 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
12655 echo "$as_me: failed program was:" >&5
12656 sed 's/^/| /' conftest.$ac_ext >&5
12658 cat >conftest.$ac_ext <<_ACEOF
12661 cat confdefs.h >>conftest.$ac_ext
12662 cat >>conftest.$ac_ext <<_ACEOF
12663 /* end confdefs.h. */
12664 $ac_includes_default
12668 static int test_array [1 - 2 * !(((long) (sizeof (int))) < 0)];
12675 rm -f conftest.$ac_objext
12676 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
12677 (eval $ac_compile) 2>conftest.er1
12679 grep -v '^ *+' conftest.er1 >conftest.err
12681 cat conftest.err >&5
12682 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12683 (exit $ac_status); } &&
12684 { ac_try='test -z "$ac_c_werror_flag"
12685 || test ! -s conftest.err'
12686 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12687 (eval $ac_try) 2>&5
12689 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12690 (exit $ac_status); }; } &&
12691 { ac_try='test -s conftest.$ac_objext'
12692 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12693 (eval $ac_try) 2>&5
12695 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12696 (exit $ac_status); }; }; then
12699 cat >conftest.$ac_ext <<_ACEOF
12702 cat confdefs.h >>conftest.$ac_ext
12703 cat >>conftest.$ac_ext <<_ACEOF
12704 /* end confdefs.h. */
12705 $ac_includes_default
12709 static int test_array [1 - 2 * !(((long) (sizeof (int))) >= $ac_mid)];
12716 rm -f conftest.$ac_objext
12717 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
12718 (eval $ac_compile) 2>conftest.er1
12720 grep -v '^ *+' conftest.er1 >conftest.err
12722 cat conftest.err >&5
12723 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12724 (exit $ac_status); } &&
12725 { ac_try='test -z "$ac_c_werror_flag"
12726 || test ! -s conftest.err'
12727 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12728 (eval $ac_try) 2>&5
12730 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12731 (exit $ac_status); }; } &&
12732 { ac_try='test -s conftest.$ac_objext'
12733 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12734 (eval $ac_try) 2>&5
12736 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12737 (exit $ac_status); }; }; then
12738 ac_lo=$ac_mid; break
12740 echo "$as_me: failed program was:" >&5
12741 sed 's/^/| /' conftest.$ac_ext >&5
12743 ac_hi=`expr '(' $ac_mid ')' - 1`
12744 if test $ac_mid -le $ac_hi; then
12748 ac_mid=`expr 2 '*' $ac_mid`
12750 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
12753 echo "$as_me: failed program was:" >&5
12754 sed 's/^/| /' conftest.$ac_ext >&5
12758 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
12760 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
12761 # Binary search between lo and hi bounds.
12762 while test "x$ac_lo" != "x$ac_hi"; do
12763 ac_mid=`expr '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo`
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))) <= $ac_mid)];
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 echo "$as_me: failed program was:" >&5
12806 sed 's/^/| /' conftest.$ac_ext >&5
12808 ac_lo=`expr '(' $ac_mid ')' + 1`
12810 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
12813 ?*) ac_cv_sizeof_int=$ac_lo;;
12814 '') { { echo "$as_me:$LINENO: error: cannot compute sizeof (int), 77
12815 See \`config.log' for more details." >&5
12816 echo "$as_me: error: cannot compute sizeof (int), 77
12817 See \`config.log' for more details." >&2;}
12818 { (exit 1); exit 1; }; } ;;
12821 if test "$cross_compiling" = yes; then
12822 { { echo "$as_me:$LINENO: error: cannot run test program while cross compiling
12823 See \`config.log' for more details." >&5
12824 echo "$as_me: error: cannot run test program while cross compiling
12825 See \`config.log' for more details." >&2;}
12826 { (exit 1); exit 1; }; }
12828 cat >conftest.$ac_ext <<_ACEOF
12831 cat confdefs.h >>conftest.$ac_ext
12832 cat >>conftest.$ac_ext <<_ACEOF
12833 /* end confdefs.h. */
12834 $ac_includes_default
12835 long longval () { return (long) (sizeof (int)); }
12836 unsigned long ulongval () { return (long) (sizeof (int)); }
12838 #include <stdlib.h>
12843 FILE *f = fopen ("conftest.val", "w");
12846 if (((long) (sizeof (int))) < 0)
12848 long i = longval ();
12849 if (i != ((long) (sizeof (int))))
12851 fprintf (f, "%ld\n", i);
12855 unsigned long i = ulongval ();
12856 if (i != ((long) (sizeof (int))))
12858 fprintf (f, "%lu\n", i);
12860 exit (ferror (f) || fclose (f) != 0);
12866 rm -f conftest$ac_exeext
12867 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
12868 (eval $ac_link) 2>&5
12870 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12871 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
12872 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12873 (eval $ac_try) 2>&5
12875 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12876 (exit $ac_status); }; }; then
12877 ac_cv_sizeof_int=`cat conftest.val`
12879 echo "$as_me: program exited with status $ac_status" >&5
12880 echo "$as_me: failed program was:" >&5
12881 sed 's/^/| /' conftest.$ac_ext >&5
12883 ( exit $ac_status )
12884 { { echo "$as_me:$LINENO: error: cannot compute sizeof (int), 77
12885 See \`config.log' for more details." >&5
12886 echo "$as_me: error: cannot compute sizeof (int), 77
12887 See \`config.log' for more details." >&2;}
12888 { (exit 1); exit 1; }; }
12890 rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
12898 echo "$as_me:$LINENO: result: $ac_cv_sizeof_int" >&5
12899 echo "${ECHO_T}$ac_cv_sizeof_int" >&6
12900 cat >>confdefs.h <<_ACEOF
12901 #define SIZEOF_INT $ac_cv_sizeof_int
12905 echo "$as_me:$LINENO: checking for short" >&5
12906 echo $ECHO_N "checking for short... $ECHO_C" >&6
12907 if test "${ac_cv_type_short+set}" = set; then
12908 echo $ECHO_N "(cached) $ECHO_C" >&6
12910 cat >conftest.$ac_ext <<_ACEOF
12913 cat confdefs.h >>conftest.$ac_ext
12914 cat >>conftest.$ac_ext <<_ACEOF
12915 /* end confdefs.h. */
12916 $ac_includes_default
12922 if (sizeof (short))
12928 rm -f conftest.$ac_objext
12929 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
12930 (eval $ac_compile) 2>conftest.er1
12932 grep -v '^ *+' conftest.er1 >conftest.err
12934 cat conftest.err >&5
12935 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12936 (exit $ac_status); } &&
12937 { ac_try='test -z "$ac_c_werror_flag"
12938 || test ! -s conftest.err'
12939 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12940 (eval $ac_try) 2>&5
12942 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12943 (exit $ac_status); }; } &&
12944 { ac_try='test -s conftest.$ac_objext'
12945 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12946 (eval $ac_try) 2>&5
12948 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12949 (exit $ac_status); }; }; then
12950 ac_cv_type_short=yes
12952 echo "$as_me: failed program was:" >&5
12953 sed 's/^/| /' conftest.$ac_ext >&5
12955 ac_cv_type_short=no
12957 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
12959 echo "$as_me:$LINENO: result: $ac_cv_type_short" >&5
12960 echo "${ECHO_T}$ac_cv_type_short" >&6
12962 echo "$as_me:$LINENO: checking size of short" >&5
12963 echo $ECHO_N "checking size of short... $ECHO_C" >&6
12964 if test "${ac_cv_sizeof_short+set}" = set; then
12965 echo $ECHO_N "(cached) $ECHO_C" >&6
12967 if test "$ac_cv_type_short" = yes; then
12968 # The cast to unsigned long works around a bug in the HP C Compiler
12969 # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
12970 # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
12971 # This bug is HP SR number 8606223364.
12972 if test "$cross_compiling" = yes; then
12973 # Depending upon the size, compute the lo and hi bounds.
12974 cat >conftest.$ac_ext <<_ACEOF
12977 cat confdefs.h >>conftest.$ac_ext
12978 cat >>conftest.$ac_ext <<_ACEOF
12979 /* end confdefs.h. */
12980 $ac_includes_default
12984 static int test_array [1 - 2 * !(((long) (sizeof (short))) >= 0)];
12991 rm -f conftest.$ac_objext
12992 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
12993 (eval $ac_compile) 2>conftest.er1
12995 grep -v '^ *+' conftest.er1 >conftest.err
12997 cat conftest.err >&5
12998 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12999 (exit $ac_status); } &&
13000 { ac_try='test -z "$ac_c_werror_flag"
13001 || test ! -s conftest.err'
13002 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13003 (eval $ac_try) 2>&5
13005 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13006 (exit $ac_status); }; } &&
13007 { ac_try='test -s conftest.$ac_objext'
13008 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13009 (eval $ac_try) 2>&5
13011 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13012 (exit $ac_status); }; }; then
13015 cat >conftest.$ac_ext <<_ACEOF
13018 cat confdefs.h >>conftest.$ac_ext
13019 cat >>conftest.$ac_ext <<_ACEOF
13020 /* end confdefs.h. */
13021 $ac_includes_default
13025 static int test_array [1 - 2 * !(((long) (sizeof (short))) <= $ac_mid)];
13032 rm -f conftest.$ac_objext
13033 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
13034 (eval $ac_compile) 2>conftest.er1
13036 grep -v '^ *+' conftest.er1 >conftest.err
13038 cat conftest.err >&5
13039 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13040 (exit $ac_status); } &&
13041 { ac_try='test -z "$ac_c_werror_flag"
13042 || test ! -s conftest.err'
13043 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13044 (eval $ac_try) 2>&5
13046 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13047 (exit $ac_status); }; } &&
13048 { ac_try='test -s conftest.$ac_objext'
13049 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13050 (eval $ac_try) 2>&5
13052 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13053 (exit $ac_status); }; }; then
13054 ac_hi=$ac_mid; break
13056 echo "$as_me: failed program was:" >&5
13057 sed 's/^/| /' conftest.$ac_ext >&5
13059 ac_lo=`expr $ac_mid + 1`
13060 if test $ac_lo -le $ac_mid; then
13064 ac_mid=`expr 2 '*' $ac_mid + 1`
13066 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
13069 echo "$as_me: failed program was:" >&5
13070 sed 's/^/| /' conftest.$ac_ext >&5
13072 cat >conftest.$ac_ext <<_ACEOF
13075 cat confdefs.h >>conftest.$ac_ext
13076 cat >>conftest.$ac_ext <<_ACEOF
13077 /* end confdefs.h. */
13078 $ac_includes_default
13082 static int test_array [1 - 2 * !(((long) (sizeof (short))) < 0)];
13089 rm -f conftest.$ac_objext
13090 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
13091 (eval $ac_compile) 2>conftest.er1
13093 grep -v '^ *+' conftest.er1 >conftest.err
13095 cat conftest.err >&5
13096 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13097 (exit $ac_status); } &&
13098 { ac_try='test -z "$ac_c_werror_flag"
13099 || test ! -s conftest.err'
13100 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13101 (eval $ac_try) 2>&5
13103 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13104 (exit $ac_status); }; } &&
13105 { ac_try='test -s conftest.$ac_objext'
13106 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13107 (eval $ac_try) 2>&5
13109 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13110 (exit $ac_status); }; }; then
13113 cat >conftest.$ac_ext <<_ACEOF
13116 cat confdefs.h >>conftest.$ac_ext
13117 cat >>conftest.$ac_ext <<_ACEOF
13118 /* end confdefs.h. */
13119 $ac_includes_default
13123 static int test_array [1 - 2 * !(((long) (sizeof (short))) >= $ac_mid)];
13130 rm -f conftest.$ac_objext
13131 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
13132 (eval $ac_compile) 2>conftest.er1
13134 grep -v '^ *+' conftest.er1 >conftest.err
13136 cat conftest.err >&5
13137 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13138 (exit $ac_status); } &&
13139 { ac_try='test -z "$ac_c_werror_flag"
13140 || test ! -s conftest.err'
13141 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13142 (eval $ac_try) 2>&5
13144 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13145 (exit $ac_status); }; } &&
13146 { ac_try='test -s conftest.$ac_objext'
13147 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13148 (eval $ac_try) 2>&5
13150 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13151 (exit $ac_status); }; }; then
13152 ac_lo=$ac_mid; break
13154 echo "$as_me: failed program was:" >&5
13155 sed 's/^/| /' conftest.$ac_ext >&5
13157 ac_hi=`expr '(' $ac_mid ')' - 1`
13158 if test $ac_mid -le $ac_hi; then
13162 ac_mid=`expr 2 '*' $ac_mid`
13164 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
13167 echo "$as_me: failed program was:" >&5
13168 sed 's/^/| /' conftest.$ac_ext >&5
13172 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
13174 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
13175 # Binary search between lo and hi bounds.
13176 while test "x$ac_lo" != "x$ac_hi"; do
13177 ac_mid=`expr '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo`
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))) <= $ac_mid)];
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 echo "$as_me: failed program was:" >&5
13220 sed 's/^/| /' conftest.$ac_ext >&5
13222 ac_lo=`expr '(' $ac_mid ')' + 1`
13224 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
13227 ?*) ac_cv_sizeof_short=$ac_lo;;
13228 '') { { echo "$as_me:$LINENO: error: cannot compute sizeof (short), 77
13229 See \`config.log' for more details." >&5
13230 echo "$as_me: error: cannot compute sizeof (short), 77
13231 See \`config.log' for more details." >&2;}
13232 { (exit 1); exit 1; }; } ;;
13235 if test "$cross_compiling" = yes; then
13236 { { echo "$as_me:$LINENO: error: cannot run test program while cross compiling
13237 See \`config.log' for more details." >&5
13238 echo "$as_me: error: cannot run test program while cross compiling
13239 See \`config.log' for more details." >&2;}
13240 { (exit 1); exit 1; }; }
13242 cat >conftest.$ac_ext <<_ACEOF
13245 cat confdefs.h >>conftest.$ac_ext
13246 cat >>conftest.$ac_ext <<_ACEOF
13247 /* end confdefs.h. */
13248 $ac_includes_default
13249 long longval () { return (long) (sizeof (short)); }
13250 unsigned long ulongval () { return (long) (sizeof (short)); }
13252 #include <stdlib.h>
13257 FILE *f = fopen ("conftest.val", "w");
13260 if (((long) (sizeof (short))) < 0)
13262 long i = longval ();
13263 if (i != ((long) (sizeof (short))))
13265 fprintf (f, "%ld\n", i);
13269 unsigned long i = ulongval ();
13270 if (i != ((long) (sizeof (short))))
13272 fprintf (f, "%lu\n", i);
13274 exit (ferror (f) || fclose (f) != 0);
13280 rm -f conftest$ac_exeext
13281 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
13282 (eval $ac_link) 2>&5
13284 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13285 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
13286 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13287 (eval $ac_try) 2>&5
13289 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13290 (exit $ac_status); }; }; then
13291 ac_cv_sizeof_short=`cat conftest.val`
13293 echo "$as_me: program exited with status $ac_status" >&5
13294 echo "$as_me: failed program was:" >&5
13295 sed 's/^/| /' conftest.$ac_ext >&5
13297 ( exit $ac_status )
13298 { { echo "$as_me:$LINENO: error: cannot compute sizeof (short), 77
13299 See \`config.log' for more details." >&5
13300 echo "$as_me: error: cannot compute sizeof (short), 77
13301 See \`config.log' for more details." >&2;}
13302 { (exit 1); exit 1; }; }
13304 rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
13309 ac_cv_sizeof_short=0
13312 echo "$as_me:$LINENO: result: $ac_cv_sizeof_short" >&5
13313 echo "${ECHO_T}$ac_cv_sizeof_short" >&6
13314 cat >>confdefs.h <<_ACEOF
13315 #define SIZEOF_SHORT $ac_cv_sizeof_short
13319 echo "$as_me:$LINENO: checking for char" >&5
13320 echo $ECHO_N "checking for char... $ECHO_C" >&6
13321 if test "${ac_cv_type_char+set}" = set; then
13322 echo $ECHO_N "(cached) $ECHO_C" >&6
13324 cat >conftest.$ac_ext <<_ACEOF
13327 cat confdefs.h >>conftest.$ac_ext
13328 cat >>conftest.$ac_ext <<_ACEOF
13329 /* end confdefs.h. */
13330 $ac_includes_default
13342 rm -f conftest.$ac_objext
13343 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
13344 (eval $ac_compile) 2>conftest.er1
13346 grep -v '^ *+' conftest.er1 >conftest.err
13348 cat conftest.err >&5
13349 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13350 (exit $ac_status); } &&
13351 { ac_try='test -z "$ac_c_werror_flag"
13352 || test ! -s conftest.err'
13353 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13354 (eval $ac_try) 2>&5
13356 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13357 (exit $ac_status); }; } &&
13358 { ac_try='test -s conftest.$ac_objext'
13359 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13360 (eval $ac_try) 2>&5
13362 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13363 (exit $ac_status); }; }; then
13364 ac_cv_type_char=yes
13366 echo "$as_me: failed program was:" >&5
13367 sed 's/^/| /' conftest.$ac_ext >&5
13371 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
13373 echo "$as_me:$LINENO: result: $ac_cv_type_char" >&5
13374 echo "${ECHO_T}$ac_cv_type_char" >&6
13376 echo "$as_me:$LINENO: checking size of char" >&5
13377 echo $ECHO_N "checking size of char... $ECHO_C" >&6
13378 if test "${ac_cv_sizeof_char+set}" = set; then
13379 echo $ECHO_N "(cached) $ECHO_C" >&6
13381 if test "$ac_cv_type_char" = yes; then
13382 # The cast to unsigned long works around a bug in the HP C Compiler
13383 # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
13384 # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
13385 # This bug is HP SR number 8606223364.
13386 if test "$cross_compiling" = yes; then
13387 # Depending upon the size, compute the lo and hi bounds.
13388 cat >conftest.$ac_ext <<_ACEOF
13391 cat confdefs.h >>conftest.$ac_ext
13392 cat >>conftest.$ac_ext <<_ACEOF
13393 /* end confdefs.h. */
13394 $ac_includes_default
13398 static int test_array [1 - 2 * !(((long) (sizeof (char))) >= 0)];
13405 rm -f conftest.$ac_objext
13406 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
13407 (eval $ac_compile) 2>conftest.er1
13409 grep -v '^ *+' conftest.er1 >conftest.err
13411 cat conftest.err >&5
13412 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13413 (exit $ac_status); } &&
13414 { ac_try='test -z "$ac_c_werror_flag"
13415 || test ! -s conftest.err'
13416 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13417 (eval $ac_try) 2>&5
13419 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13420 (exit $ac_status); }; } &&
13421 { ac_try='test -s conftest.$ac_objext'
13422 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13423 (eval $ac_try) 2>&5
13425 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13426 (exit $ac_status); }; }; then
13429 cat >conftest.$ac_ext <<_ACEOF
13432 cat confdefs.h >>conftest.$ac_ext
13433 cat >>conftest.$ac_ext <<_ACEOF
13434 /* end confdefs.h. */
13435 $ac_includes_default
13439 static int test_array [1 - 2 * !(((long) (sizeof (char))) <= $ac_mid)];
13446 rm -f conftest.$ac_objext
13447 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
13448 (eval $ac_compile) 2>conftest.er1
13450 grep -v '^ *+' conftest.er1 >conftest.err
13452 cat conftest.err >&5
13453 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13454 (exit $ac_status); } &&
13455 { ac_try='test -z "$ac_c_werror_flag"
13456 || test ! -s conftest.err'
13457 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13458 (eval $ac_try) 2>&5
13460 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13461 (exit $ac_status); }; } &&
13462 { ac_try='test -s conftest.$ac_objext'
13463 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13464 (eval $ac_try) 2>&5
13466 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13467 (exit $ac_status); }; }; then
13468 ac_hi=$ac_mid; break
13470 echo "$as_me: failed program was:" >&5
13471 sed 's/^/| /' conftest.$ac_ext >&5
13473 ac_lo=`expr $ac_mid + 1`
13474 if test $ac_lo -le $ac_mid; then
13478 ac_mid=`expr 2 '*' $ac_mid + 1`
13480 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
13483 echo "$as_me: failed program was:" >&5
13484 sed 's/^/| /' conftest.$ac_ext >&5
13486 cat >conftest.$ac_ext <<_ACEOF
13489 cat confdefs.h >>conftest.$ac_ext
13490 cat >>conftest.$ac_ext <<_ACEOF
13491 /* end confdefs.h. */
13492 $ac_includes_default
13496 static int test_array [1 - 2 * !(((long) (sizeof (char))) < 0)];
13503 rm -f conftest.$ac_objext
13504 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
13505 (eval $ac_compile) 2>conftest.er1
13507 grep -v '^ *+' conftest.er1 >conftest.err
13509 cat conftest.err >&5
13510 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13511 (exit $ac_status); } &&
13512 { ac_try='test -z "$ac_c_werror_flag"
13513 || test ! -s conftest.err'
13514 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13515 (eval $ac_try) 2>&5
13517 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13518 (exit $ac_status); }; } &&
13519 { ac_try='test -s conftest.$ac_objext'
13520 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13521 (eval $ac_try) 2>&5
13523 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13524 (exit $ac_status); }; }; then
13527 cat >conftest.$ac_ext <<_ACEOF
13530 cat confdefs.h >>conftest.$ac_ext
13531 cat >>conftest.$ac_ext <<_ACEOF
13532 /* end confdefs.h. */
13533 $ac_includes_default
13537 static int test_array [1 - 2 * !(((long) (sizeof (char))) >= $ac_mid)];
13544 rm -f conftest.$ac_objext
13545 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
13546 (eval $ac_compile) 2>conftest.er1
13548 grep -v '^ *+' conftest.er1 >conftest.err
13550 cat conftest.err >&5
13551 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13552 (exit $ac_status); } &&
13553 { ac_try='test -z "$ac_c_werror_flag"
13554 || test ! -s conftest.err'
13555 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13556 (eval $ac_try) 2>&5
13558 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13559 (exit $ac_status); }; } &&
13560 { ac_try='test -s conftest.$ac_objext'
13561 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13562 (eval $ac_try) 2>&5
13564 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13565 (exit $ac_status); }; }; then
13566 ac_lo=$ac_mid; break
13568 echo "$as_me: failed program was:" >&5
13569 sed 's/^/| /' conftest.$ac_ext >&5
13571 ac_hi=`expr '(' $ac_mid ')' - 1`
13572 if test $ac_mid -le $ac_hi; then
13576 ac_mid=`expr 2 '*' $ac_mid`
13578 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
13581 echo "$as_me: failed program was:" >&5
13582 sed 's/^/| /' conftest.$ac_ext >&5
13586 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
13588 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
13589 # Binary search between lo and hi bounds.
13590 while test "x$ac_lo" != "x$ac_hi"; do
13591 ac_mid=`expr '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo`
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))) <= $ac_mid)];
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 echo "$as_me: failed program was:" >&5
13634 sed 's/^/| /' conftest.$ac_ext >&5
13636 ac_lo=`expr '(' $ac_mid ')' + 1`
13638 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
13641 ?*) ac_cv_sizeof_char=$ac_lo;;
13642 '') { { echo "$as_me:$LINENO: error: cannot compute sizeof (char), 77
13643 See \`config.log' for more details." >&5
13644 echo "$as_me: error: cannot compute sizeof (char), 77
13645 See \`config.log' for more details." >&2;}
13646 { (exit 1); exit 1; }; } ;;
13649 if test "$cross_compiling" = yes; then
13650 { { echo "$as_me:$LINENO: error: cannot run test program while cross compiling
13651 See \`config.log' for more details." >&5
13652 echo "$as_me: error: cannot run test program while cross compiling
13653 See \`config.log' for more details." >&2;}
13654 { (exit 1); exit 1; }; }
13656 cat >conftest.$ac_ext <<_ACEOF
13659 cat confdefs.h >>conftest.$ac_ext
13660 cat >>conftest.$ac_ext <<_ACEOF
13661 /* end confdefs.h. */
13662 $ac_includes_default
13663 long longval () { return (long) (sizeof (char)); }
13664 unsigned long ulongval () { return (long) (sizeof (char)); }
13666 #include <stdlib.h>
13671 FILE *f = fopen ("conftest.val", "w");
13674 if (((long) (sizeof (char))) < 0)
13676 long i = longval ();
13677 if (i != ((long) (sizeof (char))))
13679 fprintf (f, "%ld\n", i);
13683 unsigned long i = ulongval ();
13684 if (i != ((long) (sizeof (char))))
13686 fprintf (f, "%lu\n", i);
13688 exit (ferror (f) || fclose (f) != 0);
13694 rm -f conftest$ac_exeext
13695 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
13696 (eval $ac_link) 2>&5
13698 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13699 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
13700 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13701 (eval $ac_try) 2>&5
13703 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13704 (exit $ac_status); }; }; then
13705 ac_cv_sizeof_char=`cat conftest.val`
13707 echo "$as_me: program exited with status $ac_status" >&5
13708 echo "$as_me: failed program was:" >&5
13709 sed 's/^/| /' conftest.$ac_ext >&5
13711 ( exit $ac_status )
13712 { { echo "$as_me:$LINENO: error: cannot compute sizeof (char), 77
13713 See \`config.log' for more details." >&5
13714 echo "$as_me: error: cannot compute sizeof (char), 77
13715 See \`config.log' for more details." >&2;}
13716 { (exit 1); exit 1; }; }
13718 rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
13723 ac_cv_sizeof_char=0
13726 echo "$as_me:$LINENO: result: $ac_cv_sizeof_char" >&5
13727 echo "${ECHO_T}$ac_cv_sizeof_char" >&6
13728 cat >>confdefs.h <<_ACEOF
13729 #define SIZEOF_CHAR $ac_cv_sizeof_char
13734 echo "$as_me:$LINENO: checking for type equivalent to int8_t" >&5
13735 echo $ECHO_N "checking for type equivalent to int8_t... $ECHO_C" >&6
13736 case "$ac_cv_sizeof_char" in
13737 1) acx_cv_type_int8_t=char ;;
13738 *) { { echo "$as_me:$LINENO: error: no 8-bit type" >&5
13739 echo "$as_me: error: no 8-bit type" >&2;}
13740 { (exit please report a bug); exit please report a bug; }; }
13742 echo "$as_me:$LINENO: result: $acx_cv_type_int8_t" >&5
13743 echo "${ECHO_T}$acx_cv_type_int8_t" >&6
13745 echo "$as_me:$LINENO: checking for type equivalent to int16_t" >&5
13746 echo $ECHO_N "checking for type equivalent to int16_t... $ECHO_C" >&6
13747 case "$ac_cv_sizeof_int:$ac_cv_sizeof_short" in
13748 2:*) acx_cv_type_int16_t=int ;;
13749 *:2) acx_cv_type_int16_t=short ;;
13750 *) { { echo "$as_me:$LINENO: error: no 16-bit type" >&5
13751 echo "$as_me: error: no 16-bit type" >&2;}
13752 { (exit please report a bug); exit please report a bug; }; }
13754 echo "$as_me:$LINENO: result: $acx_cv_type_int16_t" >&5
13755 echo "${ECHO_T}$acx_cv_type_int16_t" >&6
13757 echo "$as_me:$LINENO: checking for type equivalent to int32_t" >&5
13758 echo $ECHO_N "checking for type equivalent to int32_t... $ECHO_C" >&6
13759 case "$ac_cv_sizeof_int:$ac_cv_sizeof_long" in
13760 4:*) acx_cv_type_int32_t=int ;;
13761 *:4) acx_cv_type_int32_t=long ;;
13762 *) { { echo "$as_me:$LINENO: error: no 32-bit type" >&5
13763 echo "$as_me: error: no 32-bit type" >&2;}
13764 { (exit please report a bug); exit please report a bug; }; }
13766 echo "$as_me:$LINENO: result: $acx_cv_type_int32_t" >&5
13767 echo "${ECHO_T}$acx_cv_type_int32_t" >&6
13770 # These tests are here to make the output prettier
13772 if test "$ac_cv_type_uint64_t" != yes && test "$ac_cv_type_u_int64_t" != yes; then
13773 case "$ac_cv_sizeof_long" in
13774 8) acx_cv_type_int64_t=long ;;
13776 echo "$as_me:$LINENO: checking for type equivalent to int64_t" >&5
13777 echo $ECHO_N "checking for type equivalent to int64_t... $ECHO_C" >&6
13778 echo "$as_me:$LINENO: result: ${acx_cv_type_int64_t-'using preprocessor symbols'}" >&5
13779 echo "${ECHO_T}${acx_cv_type_int64_t-'using preprocessor symbols'}" >&6
13782 # Now we can use the above types
13784 if test "$ac_cv_type_uintptr_t" != yes; then
13785 echo "$as_me:$LINENO: checking for type equivalent to intptr_t" >&5
13786 echo $ECHO_N "checking for type equivalent to intptr_t... $ECHO_C" >&6
13787 case $ac_cv_sizeof_void_p in
13788 2) acx_cv_type_intptr_t=int16_t ;;
13789 4) acx_cv_type_intptr_t=int32_t ;;
13790 8) acx_cv_type_intptr_t=int64_t ;;
13791 *) { { echo "$as_me:$LINENO: error: no equivalent for intptr_t" >&5
13792 echo "$as_me: error: no equivalent for intptr_t" >&2;}
13793 { (exit please report a bug); exit please report a bug; }; }
13795 echo "$as_me:$LINENO: result: $acx_cv_type_intptr_t" >&5
13796 echo "${ECHO_T}$acx_cv_type_intptr_t" >&6
13799 # ----------------- done all checks, emit header -------------
13800 ac_config_commands="$ac_config_commands gdb_stdint.h"
13805 # ------------------------- #
13806 # Checks for declarations. #
13807 # ------------------------- #
13809 echo "$as_me:$LINENO: checking whether free is declared" >&5
13810 echo $ECHO_N "checking whether free is declared... $ECHO_C" >&6
13811 if test "${ac_cv_have_decl_free+set}" = set; then
13812 echo $ECHO_N "(cached) $ECHO_C" >&6
13814 cat >conftest.$ac_ext <<_ACEOF
13817 cat confdefs.h >>conftest.$ac_ext
13818 cat >>conftest.$ac_ext <<_ACEOF
13819 /* end confdefs.h. */
13820 $ac_includes_default
13825 char *p = (char *) free;
13832 rm -f conftest.$ac_objext
13833 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
13834 (eval $ac_compile) 2>conftest.er1
13836 grep -v '^ *+' conftest.er1 >conftest.err
13838 cat conftest.err >&5
13839 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13840 (exit $ac_status); } &&
13841 { ac_try='test -z "$ac_c_werror_flag"
13842 || test ! -s conftest.err'
13843 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13844 (eval $ac_try) 2>&5
13846 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13847 (exit $ac_status); }; } &&
13848 { ac_try='test -s conftest.$ac_objext'
13849 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13850 (eval $ac_try) 2>&5
13852 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13853 (exit $ac_status); }; }; then
13854 ac_cv_have_decl_free=yes
13856 echo "$as_me: failed program was:" >&5
13857 sed 's/^/| /' conftest.$ac_ext >&5
13859 ac_cv_have_decl_free=no
13861 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
13863 echo "$as_me:$LINENO: result: $ac_cv_have_decl_free" >&5
13864 echo "${ECHO_T}$ac_cv_have_decl_free" >&6
13865 if test $ac_cv_have_decl_free = yes; then
13867 cat >>confdefs.h <<_ACEOF
13868 #define HAVE_DECL_FREE 1
13873 cat >>confdefs.h <<_ACEOF
13874 #define HAVE_DECL_FREE 0
13879 echo "$as_me:$LINENO: checking whether malloc is declared" >&5
13880 echo $ECHO_N "checking whether malloc is declared... $ECHO_C" >&6
13881 if test "${ac_cv_have_decl_malloc+set}" = set; then
13882 echo $ECHO_N "(cached) $ECHO_C" >&6
13884 cat >conftest.$ac_ext <<_ACEOF
13887 cat confdefs.h >>conftest.$ac_ext
13888 cat >>conftest.$ac_ext <<_ACEOF
13889 /* end confdefs.h. */
13890 $ac_includes_default
13895 char *p = (char *) malloc;
13902 rm -f conftest.$ac_objext
13903 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
13904 (eval $ac_compile) 2>conftest.er1
13906 grep -v '^ *+' conftest.er1 >conftest.err
13908 cat conftest.err >&5
13909 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13910 (exit $ac_status); } &&
13911 { ac_try='test -z "$ac_c_werror_flag"
13912 || test ! -s conftest.err'
13913 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13914 (eval $ac_try) 2>&5
13916 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13917 (exit $ac_status); }; } &&
13918 { ac_try='test -s conftest.$ac_objext'
13919 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13920 (eval $ac_try) 2>&5
13922 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13923 (exit $ac_status); }; }; then
13924 ac_cv_have_decl_malloc=yes
13926 echo "$as_me: failed program was:" >&5
13927 sed 's/^/| /' conftest.$ac_ext >&5
13929 ac_cv_have_decl_malloc=no
13931 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
13933 echo "$as_me:$LINENO: result: $ac_cv_have_decl_malloc" >&5
13934 echo "${ECHO_T}$ac_cv_have_decl_malloc" >&6
13935 if test $ac_cv_have_decl_malloc = yes; then
13937 cat >>confdefs.h <<_ACEOF
13938 #define HAVE_DECL_MALLOC 1
13943 cat >>confdefs.h <<_ACEOF
13944 #define HAVE_DECL_MALLOC 0
13949 echo "$as_me:$LINENO: checking whether realloc is declared" >&5
13950 echo $ECHO_N "checking whether realloc is declared... $ECHO_C" >&6
13951 if test "${ac_cv_have_decl_realloc+set}" = set; then
13952 echo $ECHO_N "(cached) $ECHO_C" >&6
13954 cat >conftest.$ac_ext <<_ACEOF
13957 cat confdefs.h >>conftest.$ac_ext
13958 cat >>conftest.$ac_ext <<_ACEOF
13959 /* end confdefs.h. */
13960 $ac_includes_default
13965 char *p = (char *) realloc;
13972 rm -f conftest.$ac_objext
13973 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
13974 (eval $ac_compile) 2>conftest.er1
13976 grep -v '^ *+' conftest.er1 >conftest.err
13978 cat conftest.err >&5
13979 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13980 (exit $ac_status); } &&
13981 { ac_try='test -z "$ac_c_werror_flag"
13982 || test ! -s conftest.err'
13983 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13984 (eval $ac_try) 2>&5
13986 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13987 (exit $ac_status); }; } &&
13988 { ac_try='test -s conftest.$ac_objext'
13989 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13990 (eval $ac_try) 2>&5
13992 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13993 (exit $ac_status); }; }; then
13994 ac_cv_have_decl_realloc=yes
13996 echo "$as_me: failed program was:" >&5
13997 sed 's/^/| /' conftest.$ac_ext >&5
13999 ac_cv_have_decl_realloc=no
14001 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
14003 echo "$as_me:$LINENO: result: $ac_cv_have_decl_realloc" >&5
14004 echo "${ECHO_T}$ac_cv_have_decl_realloc" >&6
14005 if test $ac_cv_have_decl_realloc = yes; then
14007 cat >>confdefs.h <<_ACEOF
14008 #define HAVE_DECL_REALLOC 1
14013 cat >>confdefs.h <<_ACEOF
14014 #define HAVE_DECL_REALLOC 0
14021 echo "$as_me:$LINENO: checking whether strerror is declared" >&5
14022 echo $ECHO_N "checking whether strerror is declared... $ECHO_C" >&6
14023 if test "${ac_cv_have_decl_strerror+set}" = set; then
14024 echo $ECHO_N "(cached) $ECHO_C" >&6
14026 cat >conftest.$ac_ext <<_ACEOF
14029 cat confdefs.h >>conftest.$ac_ext
14030 cat >>conftest.$ac_ext <<_ACEOF
14031 /* end confdefs.h. */
14032 $ac_includes_default
14037 char *p = (char *) strerror;
14044 rm -f conftest.$ac_objext
14045 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
14046 (eval $ac_compile) 2>conftest.er1
14048 grep -v '^ *+' conftest.er1 >conftest.err
14050 cat conftest.err >&5
14051 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14052 (exit $ac_status); } &&
14053 { ac_try='test -z "$ac_c_werror_flag"
14054 || test ! -s conftest.err'
14055 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14056 (eval $ac_try) 2>&5
14058 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14059 (exit $ac_status); }; } &&
14060 { ac_try='test -s conftest.$ac_objext'
14061 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14062 (eval $ac_try) 2>&5
14064 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14065 (exit $ac_status); }; }; then
14066 ac_cv_have_decl_strerror=yes
14068 echo "$as_me: failed program was:" >&5
14069 sed 's/^/| /' conftest.$ac_ext >&5
14071 ac_cv_have_decl_strerror=no
14073 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
14075 echo "$as_me:$LINENO: result: $ac_cv_have_decl_strerror" >&5
14076 echo "${ECHO_T}$ac_cv_have_decl_strerror" >&6
14077 if test $ac_cv_have_decl_strerror = yes; then
14079 cat >>confdefs.h <<_ACEOF
14080 #define HAVE_DECL_STRERROR 1
14085 cat >>confdefs.h <<_ACEOF
14086 #define HAVE_DECL_STRERROR 0
14091 echo "$as_me:$LINENO: checking whether strstr is declared" >&5
14092 echo $ECHO_N "checking whether strstr is declared... $ECHO_C" >&6
14093 if test "${ac_cv_have_decl_strstr+set}" = set; then
14094 echo $ECHO_N "(cached) $ECHO_C" >&6
14096 cat >conftest.$ac_ext <<_ACEOF
14099 cat confdefs.h >>conftest.$ac_ext
14100 cat >>conftest.$ac_ext <<_ACEOF
14101 /* end confdefs.h. */
14102 $ac_includes_default
14107 char *p = (char *) strstr;
14114 rm -f conftest.$ac_objext
14115 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
14116 (eval $ac_compile) 2>conftest.er1
14118 grep -v '^ *+' conftest.er1 >conftest.err
14120 cat conftest.err >&5
14121 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14122 (exit $ac_status); } &&
14123 { ac_try='test -z "$ac_c_werror_flag"
14124 || test ! -s conftest.err'
14125 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14126 (eval $ac_try) 2>&5
14128 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14129 (exit $ac_status); }; } &&
14130 { ac_try='test -s conftest.$ac_objext'
14131 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14132 (eval $ac_try) 2>&5
14134 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14135 (exit $ac_status); }; }; then
14136 ac_cv_have_decl_strstr=yes
14138 echo "$as_me: failed program was:" >&5
14139 sed 's/^/| /' conftest.$ac_ext >&5
14141 ac_cv_have_decl_strstr=no
14143 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
14145 echo "$as_me:$LINENO: result: $ac_cv_have_decl_strstr" >&5
14146 echo "${ECHO_T}$ac_cv_have_decl_strstr" >&6
14147 if test $ac_cv_have_decl_strstr = yes; then
14149 cat >>confdefs.h <<_ACEOF
14150 #define HAVE_DECL_STRSTR 1
14155 cat >>confdefs.h <<_ACEOF
14156 #define HAVE_DECL_STRSTR 0
14163 echo "$as_me:$LINENO: checking whether getopt is declared" >&5
14164 echo $ECHO_N "checking whether getopt is declared... $ECHO_C" >&6
14165 if test "${ac_cv_have_decl_getopt+set}" = set; then
14166 echo $ECHO_N "(cached) $ECHO_C" >&6
14168 cat >conftest.$ac_ext <<_ACEOF
14171 cat confdefs.h >>conftest.$ac_ext
14172 cat >>conftest.$ac_ext <<_ACEOF
14173 /* end confdefs.h. */
14174 $ac_includes_default
14179 char *p = (char *) getopt;
14186 rm -f conftest.$ac_objext
14187 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
14188 (eval $ac_compile) 2>conftest.er1
14190 grep -v '^ *+' conftest.er1 >conftest.err
14192 cat conftest.err >&5
14193 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14194 (exit $ac_status); } &&
14195 { ac_try='test -z "$ac_c_werror_flag"
14196 || test ! -s conftest.err'
14197 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14198 (eval $ac_try) 2>&5
14200 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14201 (exit $ac_status); }; } &&
14202 { ac_try='test -s conftest.$ac_objext'
14203 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14204 (eval $ac_try) 2>&5
14206 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14207 (exit $ac_status); }; }; then
14208 ac_cv_have_decl_getopt=yes
14210 echo "$as_me: failed program was:" >&5
14211 sed 's/^/| /' conftest.$ac_ext >&5
14213 ac_cv_have_decl_getopt=no
14215 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
14217 echo "$as_me:$LINENO: result: $ac_cv_have_decl_getopt" >&5
14218 echo "${ECHO_T}$ac_cv_have_decl_getopt" >&6
14219 if test $ac_cv_have_decl_getopt = yes; then
14221 cat >>confdefs.h <<_ACEOF
14222 #define HAVE_DECL_GETOPT 1
14227 cat >>confdefs.h <<_ACEOF
14228 #define HAVE_DECL_GETOPT 0
14233 echo "$as_me:$LINENO: checking whether snprintf is declared" >&5
14234 echo $ECHO_N "checking whether snprintf is declared... $ECHO_C" >&6
14235 if test "${ac_cv_have_decl_snprintf+set}" = set; then
14236 echo $ECHO_N "(cached) $ECHO_C" >&6
14238 cat >conftest.$ac_ext <<_ACEOF
14241 cat confdefs.h >>conftest.$ac_ext
14242 cat >>conftest.$ac_ext <<_ACEOF
14243 /* end confdefs.h. */
14244 $ac_includes_default
14249 char *p = (char *) snprintf;
14256 rm -f conftest.$ac_objext
14257 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
14258 (eval $ac_compile) 2>conftest.er1
14260 grep -v '^ *+' conftest.er1 >conftest.err
14262 cat conftest.err >&5
14263 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14264 (exit $ac_status); } &&
14265 { ac_try='test -z "$ac_c_werror_flag"
14266 || test ! -s conftest.err'
14267 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14268 (eval $ac_try) 2>&5
14270 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14271 (exit $ac_status); }; } &&
14272 { ac_try='test -s conftest.$ac_objext'
14273 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14274 (eval $ac_try) 2>&5
14276 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14277 (exit $ac_status); }; }; then
14278 ac_cv_have_decl_snprintf=yes
14280 echo "$as_me: failed program was:" >&5
14281 sed 's/^/| /' conftest.$ac_ext >&5
14283 ac_cv_have_decl_snprintf=no
14285 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
14287 echo "$as_me:$LINENO: result: $ac_cv_have_decl_snprintf" >&5
14288 echo "${ECHO_T}$ac_cv_have_decl_snprintf" >&6
14289 if test $ac_cv_have_decl_snprintf = yes; then
14291 cat >>confdefs.h <<_ACEOF
14292 #define HAVE_DECL_SNPRINTF 1
14297 cat >>confdefs.h <<_ACEOF
14298 #define HAVE_DECL_SNPRINTF 0
14303 echo "$as_me:$LINENO: checking whether vsnprintf is declared" >&5
14304 echo $ECHO_N "checking whether vsnprintf is declared... $ECHO_C" >&6
14305 if test "${ac_cv_have_decl_vsnprintf+set}" = set; then
14306 echo $ECHO_N "(cached) $ECHO_C" >&6
14308 cat >conftest.$ac_ext <<_ACEOF
14311 cat confdefs.h >>conftest.$ac_ext
14312 cat >>conftest.$ac_ext <<_ACEOF
14313 /* end confdefs.h. */
14314 $ac_includes_default
14319 char *p = (char *) vsnprintf;
14326 rm -f conftest.$ac_objext
14327 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
14328 (eval $ac_compile) 2>conftest.er1
14330 grep -v '^ *+' conftest.er1 >conftest.err
14332 cat conftest.err >&5
14333 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14334 (exit $ac_status); } &&
14335 { ac_try='test -z "$ac_c_werror_flag"
14336 || test ! -s conftest.err'
14337 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14338 (eval $ac_try) 2>&5
14340 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14341 (exit $ac_status); }; } &&
14342 { ac_try='test -s conftest.$ac_objext'
14343 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14344 (eval $ac_try) 2>&5
14346 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14347 (exit $ac_status); }; }; then
14348 ac_cv_have_decl_vsnprintf=yes
14350 echo "$as_me: failed program was:" >&5
14351 sed 's/^/| /' conftest.$ac_ext >&5
14353 ac_cv_have_decl_vsnprintf=no
14355 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
14357 echo "$as_me:$LINENO: result: $ac_cv_have_decl_vsnprintf" >&5
14358 echo "${ECHO_T}$ac_cv_have_decl_vsnprintf" >&6
14359 if test $ac_cv_have_decl_vsnprintf = yes; then
14361 cat >>confdefs.h <<_ACEOF
14362 #define HAVE_DECL_VSNPRINTF 1
14367 cat >>confdefs.h <<_ACEOF
14368 #define HAVE_DECL_VSNPRINTF 0
14376 # ----------------------- #
14377 # Checks for structures. #
14378 # ----------------------- #
14380 echo "$as_me:$LINENO: checking for struct stat.st_blocks" >&5
14381 echo $ECHO_N "checking for struct stat.st_blocks... $ECHO_C" >&6
14382 if test "${ac_cv_member_struct_stat_st_blocks+set}" = set; then
14383 echo $ECHO_N "(cached) $ECHO_C" >&6
14385 cat >conftest.$ac_ext <<_ACEOF
14388 cat confdefs.h >>conftest.$ac_ext
14389 cat >>conftest.$ac_ext <<_ACEOF
14390 /* end confdefs.h. */
14391 $ac_includes_default
14395 static struct stat ac_aggr;
14396 if (ac_aggr.st_blocks)
14402 rm -f conftest.$ac_objext
14403 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
14404 (eval $ac_compile) 2>conftest.er1
14406 grep -v '^ *+' conftest.er1 >conftest.err
14408 cat conftest.err >&5
14409 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14410 (exit $ac_status); } &&
14411 { ac_try='test -z "$ac_c_werror_flag"
14412 || test ! -s conftest.err'
14413 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14414 (eval $ac_try) 2>&5
14416 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14417 (exit $ac_status); }; } &&
14418 { ac_try='test -s conftest.$ac_objext'
14419 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14420 (eval $ac_try) 2>&5
14422 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14423 (exit $ac_status); }; }; then
14424 ac_cv_member_struct_stat_st_blocks=yes
14426 echo "$as_me: failed program was:" >&5
14427 sed 's/^/| /' conftest.$ac_ext >&5
14429 cat >conftest.$ac_ext <<_ACEOF
14432 cat confdefs.h >>conftest.$ac_ext
14433 cat >>conftest.$ac_ext <<_ACEOF
14434 /* end confdefs.h. */
14435 $ac_includes_default
14439 static struct stat ac_aggr;
14440 if (sizeof ac_aggr.st_blocks)
14446 rm -f conftest.$ac_objext
14447 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
14448 (eval $ac_compile) 2>conftest.er1
14450 grep -v '^ *+' conftest.er1 >conftest.err
14452 cat conftest.err >&5
14453 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14454 (exit $ac_status); } &&
14455 { ac_try='test -z "$ac_c_werror_flag"
14456 || test ! -s conftest.err'
14457 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14458 (eval $ac_try) 2>&5
14460 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14461 (exit $ac_status); }; } &&
14462 { ac_try='test -s conftest.$ac_objext'
14463 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14464 (eval $ac_try) 2>&5
14466 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14467 (exit $ac_status); }; }; then
14468 ac_cv_member_struct_stat_st_blocks=yes
14470 echo "$as_me: failed program was:" >&5
14471 sed 's/^/| /' conftest.$ac_ext >&5
14473 ac_cv_member_struct_stat_st_blocks=no
14475 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
14477 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
14479 echo "$as_me:$LINENO: result: $ac_cv_member_struct_stat_st_blocks" >&5
14480 echo "${ECHO_T}$ac_cv_member_struct_stat_st_blocks" >&6
14481 if test $ac_cv_member_struct_stat_st_blocks = yes; then
14483 cat >>confdefs.h <<_ACEOF
14484 #define HAVE_STRUCT_STAT_ST_BLOCKS 1
14490 echo "$as_me:$LINENO: checking for struct stat.st_blksize" >&5
14491 echo $ECHO_N "checking for struct stat.st_blksize... $ECHO_C" >&6
14492 if test "${ac_cv_member_struct_stat_st_blksize+set}" = set; then
14493 echo $ECHO_N "(cached) $ECHO_C" >&6
14495 cat >conftest.$ac_ext <<_ACEOF
14498 cat confdefs.h >>conftest.$ac_ext
14499 cat >>conftest.$ac_ext <<_ACEOF
14500 /* end confdefs.h. */
14501 $ac_includes_default
14505 static struct stat ac_aggr;
14506 if (ac_aggr.st_blksize)
14512 rm -f conftest.$ac_objext
14513 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
14514 (eval $ac_compile) 2>conftest.er1
14516 grep -v '^ *+' conftest.er1 >conftest.err
14518 cat conftest.err >&5
14519 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14520 (exit $ac_status); } &&
14521 { ac_try='test -z "$ac_c_werror_flag"
14522 || test ! -s conftest.err'
14523 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14524 (eval $ac_try) 2>&5
14526 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14527 (exit $ac_status); }; } &&
14528 { ac_try='test -s conftest.$ac_objext'
14529 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14530 (eval $ac_try) 2>&5
14532 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14533 (exit $ac_status); }; }; then
14534 ac_cv_member_struct_stat_st_blksize=yes
14536 echo "$as_me: failed program was:" >&5
14537 sed 's/^/| /' conftest.$ac_ext >&5
14539 cat >conftest.$ac_ext <<_ACEOF
14542 cat confdefs.h >>conftest.$ac_ext
14543 cat >>conftest.$ac_ext <<_ACEOF
14544 /* end confdefs.h. */
14545 $ac_includes_default
14549 static struct stat ac_aggr;
14550 if (sizeof ac_aggr.st_blksize)
14556 rm -f conftest.$ac_objext
14557 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
14558 (eval $ac_compile) 2>conftest.er1
14560 grep -v '^ *+' conftest.er1 >conftest.err
14562 cat conftest.err >&5
14563 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14564 (exit $ac_status); } &&
14565 { ac_try='test -z "$ac_c_werror_flag"
14566 || test ! -s conftest.err'
14567 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14568 (eval $ac_try) 2>&5
14570 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14571 (exit $ac_status); }; } &&
14572 { ac_try='test -s conftest.$ac_objext'
14573 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14574 (eval $ac_try) 2>&5
14576 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14577 (exit $ac_status); }; }; then
14578 ac_cv_member_struct_stat_st_blksize=yes
14580 echo "$as_me: failed program was:" >&5
14581 sed 's/^/| /' conftest.$ac_ext >&5
14583 ac_cv_member_struct_stat_st_blksize=no
14585 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
14587 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
14589 echo "$as_me:$LINENO: result: $ac_cv_member_struct_stat_st_blksize" >&5
14590 echo "${ECHO_T}$ac_cv_member_struct_stat_st_blksize" >&6
14591 if test $ac_cv_member_struct_stat_st_blksize = yes; then
14593 cat >>confdefs.h <<_ACEOF
14594 #define HAVE_STRUCT_STAT_ST_BLKSIZE 1
14601 # ------------------ #
14602 # Checks for types. #
14603 # ------------------ #
14605 echo "$as_me:$LINENO: checking return type of signal handlers" >&5
14606 echo $ECHO_N "checking return type of signal handlers... $ECHO_C" >&6
14607 if test "${ac_cv_type_signal+set}" = set; then
14608 echo $ECHO_N "(cached) $ECHO_C" >&6
14610 cat >conftest.$ac_ext <<_ACEOF
14613 cat confdefs.h >>conftest.$ac_ext
14614 cat >>conftest.$ac_ext <<_ACEOF
14615 /* end confdefs.h. */
14616 #include <sys/types.h>
14617 #include <signal.h>
14622 extern "C" void (*signal (int, void (*)(int)))(int);
14624 void (*signal ()) ();
14635 rm -f conftest.$ac_objext
14636 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
14637 (eval $ac_compile) 2>conftest.er1
14639 grep -v '^ *+' conftest.er1 >conftest.err
14641 cat conftest.err >&5
14642 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14643 (exit $ac_status); } &&
14644 { ac_try='test -z "$ac_c_werror_flag"
14645 || test ! -s conftest.err'
14646 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14647 (eval $ac_try) 2>&5
14649 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14650 (exit $ac_status); }; } &&
14651 { ac_try='test -s conftest.$ac_objext'
14652 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14653 (eval $ac_try) 2>&5
14655 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14656 (exit $ac_status); }; }; then
14657 ac_cv_type_signal=void
14659 echo "$as_me: failed program was:" >&5
14660 sed 's/^/| /' conftest.$ac_ext >&5
14662 ac_cv_type_signal=int
14664 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
14666 echo "$as_me:$LINENO: result: $ac_cv_type_signal" >&5
14667 echo "${ECHO_T}$ac_cv_type_signal" >&6
14669 cat >>confdefs.h <<_ACEOF
14670 #define RETSIGTYPE $ac_cv_type_signal
14674 echo "$as_me:$LINENO: checking for socklen_t" >&5
14675 echo $ECHO_N "checking for socklen_t... $ECHO_C" >&6
14676 if test "${ac_cv_type_socklen_t+set}" = set; then
14677 echo $ECHO_N "(cached) $ECHO_C" >&6
14679 cat >conftest.$ac_ext <<_ACEOF
14682 cat confdefs.h >>conftest.$ac_ext
14683 cat >>conftest.$ac_ext <<_ACEOF
14684 /* end confdefs.h. */
14685 #include <sys/types.h>
14686 #include <sys/socket.h>
14692 if ((socklen_t *) 0)
14694 if (sizeof (socklen_t))
14700 rm -f conftest.$ac_objext
14701 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
14702 (eval $ac_compile) 2>conftest.er1
14704 grep -v '^ *+' conftest.er1 >conftest.err
14706 cat conftest.err >&5
14707 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14708 (exit $ac_status); } &&
14709 { ac_try='test -z "$ac_c_werror_flag"
14710 || test ! -s conftest.err'
14711 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14712 (eval $ac_try) 2>&5
14714 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14715 (exit $ac_status); }; } &&
14716 { ac_try='test -s conftest.$ac_objext'
14717 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14718 (eval $ac_try) 2>&5
14720 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14721 (exit $ac_status); }; }; then
14722 ac_cv_type_socklen_t=yes
14724 echo "$as_me: failed program was:" >&5
14725 sed 's/^/| /' conftest.$ac_ext >&5
14727 ac_cv_type_socklen_t=no
14729 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
14731 echo "$as_me:$LINENO: result: $ac_cv_type_socklen_t" >&5
14732 echo "${ECHO_T}$ac_cv_type_socklen_t" >&6
14733 if test $ac_cv_type_socklen_t = yes; then
14735 cat >>confdefs.h <<_ACEOF
14736 #define HAVE_SOCKLEN_T 1
14742 echo "$as_me:$LINENO: checking for uintptr_t" >&5
14743 echo $ECHO_N "checking for uintptr_t... $ECHO_C" >&6
14744 if test "${ac_cv_type_uintptr_t+set}" = set; then
14745 echo $ECHO_N "(cached) $ECHO_C" >&6
14747 cat >conftest.$ac_ext <<_ACEOF
14750 cat confdefs.h >>conftest.$ac_ext
14751 cat >>conftest.$ac_ext <<_ACEOF
14752 /* end confdefs.h. */
14753 #include <stdint.h>
14758 if ((uintptr_t *) 0)
14760 if (sizeof (uintptr_t))
14766 rm -f conftest.$ac_objext
14767 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
14768 (eval $ac_compile) 2>conftest.er1
14770 grep -v '^ *+' conftest.er1 >conftest.err
14772 cat conftest.err >&5
14773 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14774 (exit $ac_status); } &&
14775 { ac_try='test -z "$ac_c_werror_flag"
14776 || test ! -s conftest.err'
14777 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14778 (eval $ac_try) 2>&5
14780 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14781 (exit $ac_status); }; } &&
14782 { ac_try='test -s conftest.$ac_objext'
14783 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14784 (eval $ac_try) 2>&5
14786 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14787 (exit $ac_status); }; }; then
14788 ac_cv_type_uintptr_t=yes
14790 echo "$as_me: failed program was:" >&5
14791 sed 's/^/| /' conftest.$ac_ext >&5
14793 ac_cv_type_uintptr_t=no
14795 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
14797 echo "$as_me:$LINENO: result: $ac_cv_type_uintptr_t" >&5
14798 echo "${ECHO_T}$ac_cv_type_uintptr_t" >&6
14799 if test $ac_cv_type_uintptr_t = yes; then
14801 cat >>confdefs.h <<_ACEOF
14802 #define HAVE_UINTPTR_T 1
14809 # ------------------------------------- #
14810 # Checks for compiler characteristics. #
14811 # ------------------------------------- #
14813 echo "$as_me:$LINENO: checking for an ANSI C-conforming const" >&5
14814 echo $ECHO_N "checking for an ANSI C-conforming const... $ECHO_C" >&6
14815 if test "${ac_cv_c_const+set}" = set; then
14816 echo $ECHO_N "(cached) $ECHO_C" >&6
14818 cat >conftest.$ac_ext <<_ACEOF
14821 cat confdefs.h >>conftest.$ac_ext
14822 cat >>conftest.$ac_ext <<_ACEOF
14823 /* end confdefs.h. */
14828 /* FIXME: Include the comments suggested by Paul. */
14829 #ifndef __cplusplus
14830 /* Ultrix mips cc rejects this. */
14831 typedef int charset[2];
14833 /* SunOS 4.1.1 cc rejects this. */
14834 char const *const *ccp;
14836 /* NEC SVR4.0.2 mips cc rejects this. */
14837 struct point {int x, y;};
14838 static struct point const zero = {0,0};
14839 /* AIX XL C 1.02.0.0 rejects this.
14840 It does not let you subtract one const X* pointer from another in
14841 an arm of an if-expression whose if-part is not a constant
14843 const char *g = "string";
14844 ccp = &g + (g ? g-g : 0);
14845 /* HPUX 7.0 cc rejects these. */
14848 ccp = (char const *const *) p;
14849 { /* SCO 3.2v4 cc rejects this. */
14851 char const *s = 0 ? (char *) 0 : (char const *) 0;
14855 { /* Someone thinks the Sun supposedly-ANSI compiler will reject this. */
14856 int x[] = {25, 17};
14857 const int *foo = &x[0];
14860 { /* Sun SC1.0 ANSI compiler rejects this -- but not the above. */
14861 typedef const int *iptr;
14865 { /* AIX XL C 1.02.0.0 rejects this saying
14866 "k.c", line 2.27: 1506-025 (S) Operand must be a modifiable lvalue. */
14867 struct s { int j; const int *ap[3]; };
14868 struct s *b; b->j = 5;
14870 { /* ULTRIX-32 V3.1 (Rev 9) vcc rejects this */
14871 const int foo = 10;
14879 rm -f conftest.$ac_objext
14880 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
14881 (eval $ac_compile) 2>conftest.er1
14883 grep -v '^ *+' conftest.er1 >conftest.err
14885 cat conftest.err >&5
14886 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14887 (exit $ac_status); } &&
14888 { ac_try='test -z "$ac_c_werror_flag"
14889 || test ! -s conftest.err'
14890 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14891 (eval $ac_try) 2>&5
14893 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14894 (exit $ac_status); }; } &&
14895 { ac_try='test -s conftest.$ac_objext'
14896 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14897 (eval $ac_try) 2>&5
14899 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14900 (exit $ac_status); }; }; then
14903 echo "$as_me: failed program was:" >&5
14904 sed 's/^/| /' conftest.$ac_ext >&5
14908 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
14910 echo "$as_me:$LINENO: result: $ac_cv_c_const" >&5
14911 echo "${ECHO_T}$ac_cv_c_const" >&6
14912 if test $ac_cv_c_const = no; then
14914 cat >>confdefs.h <<\_ACEOF
14920 echo "$as_me:$LINENO: checking for inline" >&5
14921 echo $ECHO_N "checking for inline... $ECHO_C" >&6
14922 if test "${ac_cv_c_inline+set}" = set; then
14923 echo $ECHO_N "(cached) $ECHO_C" >&6
14926 for ac_kw in inline __inline__ __inline; do
14927 cat >conftest.$ac_ext <<_ACEOF
14930 cat confdefs.h >>conftest.$ac_ext
14931 cat >>conftest.$ac_ext <<_ACEOF
14932 /* end confdefs.h. */
14933 #ifndef __cplusplus
14935 static $ac_kw foo_t static_foo () {return 0; }
14936 $ac_kw foo_t foo () {return 0; }
14940 rm -f conftest.$ac_objext
14941 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
14942 (eval $ac_compile) 2>conftest.er1
14944 grep -v '^ *+' conftest.er1 >conftest.err
14946 cat conftest.err >&5
14947 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14948 (exit $ac_status); } &&
14949 { ac_try='test -z "$ac_c_werror_flag"
14950 || test ! -s conftest.err'
14951 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14952 (eval $ac_try) 2>&5
14954 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14955 (exit $ac_status); }; } &&
14956 { ac_try='test -s conftest.$ac_objext'
14957 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14958 (eval $ac_try) 2>&5
14960 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14961 (exit $ac_status); }; }; then
14962 ac_cv_c_inline=$ac_kw; break
14964 echo "$as_me: failed program was:" >&5
14965 sed 's/^/| /' conftest.$ac_ext >&5
14968 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
14972 echo "$as_me:$LINENO: result: $ac_cv_c_inline" >&5
14973 echo "${ECHO_T}$ac_cv_c_inline" >&6
14976 case $ac_cv_c_inline in
14979 case $ac_cv_c_inline in
14981 *) ac_val=$ac_cv_c_inline;;
14983 cat >>confdefs.h <<_ACEOF
14984 #ifndef __cplusplus
14985 #define inline $ac_val
14992 # ------------------------------ #
14993 # Checks for library functions. #
14994 # ------------------------------ #
14996 # The Ultrix 4.2 mips builtin alloca declared by alloca.h only works
14997 # for constant arguments. Useless!
14998 echo "$as_me:$LINENO: checking for working alloca.h" >&5
14999 echo $ECHO_N "checking for working alloca.h... $ECHO_C" >&6
15000 if test "${ac_cv_working_alloca_h+set}" = set; then
15001 echo $ECHO_N "(cached) $ECHO_C" >&6
15003 cat >conftest.$ac_ext <<_ACEOF
15006 cat confdefs.h >>conftest.$ac_ext
15007 cat >>conftest.$ac_ext <<_ACEOF
15008 /* end confdefs.h. */
15009 #include <alloca.h>
15013 char *p = (char *) alloca (2 * sizeof (int));
15018 rm -f conftest.$ac_objext conftest$ac_exeext
15019 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
15020 (eval $ac_link) 2>conftest.er1
15022 grep -v '^ *+' conftest.er1 >conftest.err
15024 cat conftest.err >&5
15025 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15026 (exit $ac_status); } &&
15027 { ac_try='test -z "$ac_c_werror_flag"
15028 || test ! -s conftest.err'
15029 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15030 (eval $ac_try) 2>&5
15032 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15033 (exit $ac_status); }; } &&
15034 { ac_try='test -s conftest$ac_exeext'
15035 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15036 (eval $ac_try) 2>&5
15038 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15039 (exit $ac_status); }; }; then
15040 ac_cv_working_alloca_h=yes
15042 echo "$as_me: failed program was:" >&5
15043 sed 's/^/| /' conftest.$ac_ext >&5
15045 ac_cv_working_alloca_h=no
15047 rm -f conftest.err conftest.$ac_objext \
15048 conftest$ac_exeext conftest.$ac_ext
15050 echo "$as_me:$LINENO: result: $ac_cv_working_alloca_h" >&5
15051 echo "${ECHO_T}$ac_cv_working_alloca_h" >&6
15052 if test $ac_cv_working_alloca_h = yes; then
15054 cat >>confdefs.h <<\_ACEOF
15055 #define HAVE_ALLOCA_H 1
15060 echo "$as_me:$LINENO: checking for alloca" >&5
15061 echo $ECHO_N "checking for alloca... $ECHO_C" >&6
15062 if test "${ac_cv_func_alloca_works+set}" = set; then
15063 echo $ECHO_N "(cached) $ECHO_C" >&6
15065 cat >conftest.$ac_ext <<_ACEOF
15068 cat confdefs.h >>conftest.$ac_ext
15069 cat >>conftest.$ac_ext <<_ACEOF
15070 /* end confdefs.h. */
15072 # define alloca __builtin_alloca
15075 # include <malloc.h>
15076 # define alloca _alloca
15079 # include <alloca.h>
15084 # ifndef alloca /* predefined by HP cc +Olibcalls */
15095 char *p = (char *) alloca (1);
15100 rm -f conftest.$ac_objext conftest$ac_exeext
15101 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
15102 (eval $ac_link) 2>conftest.er1
15104 grep -v '^ *+' conftest.er1 >conftest.err
15106 cat conftest.err >&5
15107 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15108 (exit $ac_status); } &&
15109 { ac_try='test -z "$ac_c_werror_flag"
15110 || test ! -s conftest.err'
15111 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15112 (eval $ac_try) 2>&5
15114 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15115 (exit $ac_status); }; } &&
15116 { ac_try='test -s conftest$ac_exeext'
15117 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15118 (eval $ac_try) 2>&5
15120 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15121 (exit $ac_status); }; }; then
15122 ac_cv_func_alloca_works=yes
15124 echo "$as_me: failed program was:" >&5
15125 sed 's/^/| /' conftest.$ac_ext >&5
15127 ac_cv_func_alloca_works=no
15129 rm -f conftest.err conftest.$ac_objext \
15130 conftest$ac_exeext conftest.$ac_ext
15132 echo "$as_me:$LINENO: result: $ac_cv_func_alloca_works" >&5
15133 echo "${ECHO_T}$ac_cv_func_alloca_works" >&6
15135 if test $ac_cv_func_alloca_works = yes; then
15137 cat >>confdefs.h <<\_ACEOF
15138 #define HAVE_ALLOCA 1
15142 # The SVR3 libPW and SVR4 libucb both contain incompatible functions
15143 # that cause trouble. Some versions do not even contain alloca or
15144 # contain a buggy version. If you still want to use their alloca,
15145 # use ar to extract alloca.o from them instead of compiling alloca.c.
15147 ALLOCA=alloca.$ac_objext
15149 cat >>confdefs.h <<\_ACEOF
15154 echo "$as_me:$LINENO: checking whether \`alloca.c' needs Cray hooks" >&5
15155 echo $ECHO_N "checking whether \`alloca.c' needs Cray hooks... $ECHO_C" >&6
15156 if test "${ac_cv_os_cray+set}" = set; then
15157 echo $ECHO_N "(cached) $ECHO_C" >&6
15159 cat >conftest.$ac_ext <<_ACEOF
15162 cat confdefs.h >>conftest.$ac_ext
15163 cat >>conftest.$ac_ext <<_ACEOF
15164 /* end confdefs.h. */
15165 #if defined(CRAY) && ! defined(CRAY2)
15172 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
15173 $EGREP "webecray" >/dev/null 2>&1; then
15181 echo "$as_me:$LINENO: result: $ac_cv_os_cray" >&5
15182 echo "${ECHO_T}$ac_cv_os_cray" >&6
15183 if test $ac_cv_os_cray = yes; then
15184 for ac_func in _getb67 GETB67 getb67; do
15185 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
15186 echo "$as_me:$LINENO: checking for $ac_func" >&5
15187 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
15188 if eval "test \"\${$as_ac_var+set}\" = set"; then
15189 echo $ECHO_N "(cached) $ECHO_C" >&6
15191 cat >conftest.$ac_ext <<_ACEOF
15194 cat confdefs.h >>conftest.$ac_ext
15195 cat >>conftest.$ac_ext <<_ACEOF
15196 /* end confdefs.h. */
15197 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
15198 For example, HP-UX 11i <limits.h> declares gettimeofday. */
15199 #define $ac_func innocuous_$ac_func
15201 /* System header to define __stub macros and hopefully few prototypes,
15202 which can conflict with char $ac_func (); below.
15203 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
15204 <limits.h> exists even on freestanding compilers. */
15207 # include <limits.h>
15209 # include <assert.h>
15214 /* Override any gcc2 internal prototype to avoid an error. */
15219 /* We use char because int might match the return type of a gcc2
15220 builtin and then its argument prototype would still apply. */
15222 /* The GNU C library defines this for functions which it implements
15223 to always fail with ENOSYS. Some functions are actually named
15224 something starting with __ and the normal name is an alias. */
15225 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
15228 char (*f) () = $ac_func;
15237 return f != $ac_func;
15242 rm -f conftest.$ac_objext conftest$ac_exeext
15243 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
15244 (eval $ac_link) 2>conftest.er1
15246 grep -v '^ *+' conftest.er1 >conftest.err
15248 cat conftest.err >&5
15249 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15250 (exit $ac_status); } &&
15251 { ac_try='test -z "$ac_c_werror_flag"
15252 || test ! -s conftest.err'
15253 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15254 (eval $ac_try) 2>&5
15256 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15257 (exit $ac_status); }; } &&
15258 { ac_try='test -s conftest$ac_exeext'
15259 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15260 (eval $ac_try) 2>&5
15262 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15263 (exit $ac_status); }; }; then
15264 eval "$as_ac_var=yes"
15266 echo "$as_me: failed program was:" >&5
15267 sed 's/^/| /' conftest.$ac_ext >&5
15269 eval "$as_ac_var=no"
15271 rm -f conftest.err conftest.$ac_objext \
15272 conftest$ac_exeext conftest.$ac_ext
15274 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
15275 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
15276 if test `eval echo '${'$as_ac_var'}'` = yes; then
15278 cat >>confdefs.h <<_ACEOF
15279 #define CRAY_STACKSEG_END $ac_func
15288 echo "$as_me:$LINENO: checking stack direction for C alloca" >&5
15289 echo $ECHO_N "checking stack direction for C alloca... $ECHO_C" >&6
15290 if test "${ac_cv_c_stack_direction+set}" = set; then
15291 echo $ECHO_N "(cached) $ECHO_C" >&6
15293 if test "$cross_compiling" = yes; then
15294 ac_cv_c_stack_direction=0
15296 cat >conftest.$ac_ext <<_ACEOF
15299 cat confdefs.h >>conftest.$ac_ext
15300 cat >>conftest.$ac_ext <<_ACEOF
15301 /* end confdefs.h. */
15303 find_stack_direction ()
15305 static char *addr = 0;
15310 return find_stack_direction ();
15313 return (&dummy > addr) ? 1 : -1;
15319 exit (find_stack_direction () < 0);
15322 rm -f conftest$ac_exeext
15323 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
15324 (eval $ac_link) 2>&5
15326 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15327 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
15328 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15329 (eval $ac_try) 2>&5
15331 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15332 (exit $ac_status); }; }; then
15333 ac_cv_c_stack_direction=1
15335 echo "$as_me: program exited with status $ac_status" >&5
15336 echo "$as_me: failed program was:" >&5
15337 sed 's/^/| /' conftest.$ac_ext >&5
15339 ( exit $ac_status )
15340 ac_cv_c_stack_direction=-1
15342 rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
15345 echo "$as_me:$LINENO: result: $ac_cv_c_stack_direction" >&5
15346 echo "${ECHO_T}$ac_cv_c_stack_direction" >&6
15348 cat >>confdefs.h <<_ACEOF
15349 #define STACK_DIRECTION $ac_cv_c_stack_direction
15357 for ac_header in stdlib.h unistd.h
15359 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
15360 if eval "test \"\${$as_ac_Header+set}\" = set"; then
15361 echo "$as_me:$LINENO: checking for $ac_header" >&5
15362 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
15363 if eval "test \"\${$as_ac_Header+set}\" = set"; then
15364 echo $ECHO_N "(cached) $ECHO_C" >&6
15366 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
15367 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
15369 # Is the header compilable?
15370 echo "$as_me:$LINENO: checking $ac_header usability" >&5
15371 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
15372 cat >conftest.$ac_ext <<_ACEOF
15375 cat confdefs.h >>conftest.$ac_ext
15376 cat >>conftest.$ac_ext <<_ACEOF
15377 /* end confdefs.h. */
15378 $ac_includes_default
15379 #include <$ac_header>
15381 rm -f conftest.$ac_objext
15382 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
15383 (eval $ac_compile) 2>conftest.er1
15385 grep -v '^ *+' conftest.er1 >conftest.err
15387 cat conftest.err >&5
15388 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15389 (exit $ac_status); } &&
15390 { ac_try='test -z "$ac_c_werror_flag"
15391 || test ! -s conftest.err'
15392 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15393 (eval $ac_try) 2>&5
15395 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15396 (exit $ac_status); }; } &&
15397 { ac_try='test -s conftest.$ac_objext'
15398 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15399 (eval $ac_try) 2>&5
15401 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15402 (exit $ac_status); }; }; then
15403 ac_header_compiler=yes
15405 echo "$as_me: failed program was:" >&5
15406 sed 's/^/| /' conftest.$ac_ext >&5
15408 ac_header_compiler=no
15410 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
15411 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
15412 echo "${ECHO_T}$ac_header_compiler" >&6
15414 # Is the header present?
15415 echo "$as_me:$LINENO: checking $ac_header presence" >&5
15416 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
15417 cat >conftest.$ac_ext <<_ACEOF
15420 cat confdefs.h >>conftest.$ac_ext
15421 cat >>conftest.$ac_ext <<_ACEOF
15422 /* end confdefs.h. */
15423 #include <$ac_header>
15425 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
15426 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
15428 grep -v '^ *+' conftest.er1 >conftest.err
15430 cat conftest.err >&5
15431 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15432 (exit $ac_status); } >/dev/null; then
15433 if test -s conftest.err; then
15434 ac_cpp_err=$ac_c_preproc_warn_flag
15435 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
15442 if test -z "$ac_cpp_err"; then
15443 ac_header_preproc=yes
15445 echo "$as_me: failed program was:" >&5
15446 sed 's/^/| /' conftest.$ac_ext >&5
15448 ac_header_preproc=no
15450 rm -f conftest.err conftest.$ac_ext
15451 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
15452 echo "${ECHO_T}$ac_header_preproc" >&6
15454 # So? What about this header?
15455 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
15457 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
15458 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
15459 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
15460 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
15461 ac_header_preproc=yes
15464 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
15465 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
15466 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
15467 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
15468 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
15469 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
15470 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
15471 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
15472 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
15473 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
15474 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
15475 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
15478 ## ------------------------------------------ ##
15479 ## Report this to the AC_PACKAGE_NAME lists. ##
15480 ## ------------------------------------------ ##
15483 sed "s/^/$as_me: WARNING: /" >&2
15486 echo "$as_me:$LINENO: checking for $ac_header" >&5
15487 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
15488 if eval "test \"\${$as_ac_Header+set}\" = set"; then
15489 echo $ECHO_N "(cached) $ECHO_C" >&6
15491 eval "$as_ac_Header=\$ac_header_preproc"
15493 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
15494 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
15497 if test `eval echo '${'$as_ac_Header'}'` = yes; then
15498 cat >>confdefs.h <<_ACEOF
15499 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
15507 for ac_func in getpagesize
15509 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
15510 echo "$as_me:$LINENO: checking for $ac_func" >&5
15511 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
15512 if eval "test \"\${$as_ac_var+set}\" = set"; then
15513 echo $ECHO_N "(cached) $ECHO_C" >&6
15515 cat >conftest.$ac_ext <<_ACEOF
15518 cat confdefs.h >>conftest.$ac_ext
15519 cat >>conftest.$ac_ext <<_ACEOF
15520 /* end confdefs.h. */
15521 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
15522 For example, HP-UX 11i <limits.h> declares gettimeofday. */
15523 #define $ac_func innocuous_$ac_func
15525 /* System header to define __stub macros and hopefully few prototypes,
15526 which can conflict with char $ac_func (); below.
15527 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
15528 <limits.h> exists even on freestanding compilers. */
15531 # include <limits.h>
15533 # include <assert.h>
15538 /* Override any gcc2 internal prototype to avoid an error. */
15543 /* We use char because int might match the return type of a gcc2
15544 builtin and then its argument prototype would still apply. */
15546 /* The GNU C library defines this for functions which it implements
15547 to always fail with ENOSYS. Some functions are actually named
15548 something starting with __ and the normal name is an alias. */
15549 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
15552 char (*f) () = $ac_func;
15561 return f != $ac_func;
15566 rm -f conftest.$ac_objext conftest$ac_exeext
15567 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
15568 (eval $ac_link) 2>conftest.er1
15570 grep -v '^ *+' conftest.er1 >conftest.err
15572 cat conftest.err >&5
15573 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15574 (exit $ac_status); } &&
15575 { ac_try='test -z "$ac_c_werror_flag"
15576 || test ! -s conftest.err'
15577 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15578 (eval $ac_try) 2>&5
15580 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15581 (exit $ac_status); }; } &&
15582 { ac_try='test -s conftest$ac_exeext'
15583 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15584 (eval $ac_try) 2>&5
15586 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15587 (exit $ac_status); }; }; then
15588 eval "$as_ac_var=yes"
15590 echo "$as_me: failed program was:" >&5
15591 sed 's/^/| /' conftest.$ac_ext >&5
15593 eval "$as_ac_var=no"
15595 rm -f conftest.err conftest.$ac_objext \
15596 conftest$ac_exeext conftest.$ac_ext
15598 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
15599 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
15600 if test `eval echo '${'$as_ac_var'}'` = yes; then
15601 cat >>confdefs.h <<_ACEOF
15602 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
15608 echo "$as_me:$LINENO: checking for working mmap" >&5
15609 echo $ECHO_N "checking for working mmap... $ECHO_C" >&6
15610 if test "${ac_cv_func_mmap_fixed_mapped+set}" = set; then
15611 echo $ECHO_N "(cached) $ECHO_C" >&6
15613 if test "$cross_compiling" = yes; then
15614 ac_cv_func_mmap_fixed_mapped=no
15616 cat >conftest.$ac_ext <<_ACEOF
15619 cat confdefs.h >>conftest.$ac_ext
15620 cat >>conftest.$ac_ext <<_ACEOF
15621 /* end confdefs.h. */
15622 $ac_includes_default
15623 /* malloc might have been renamed as rpl_malloc. */
15626 /* Thanks to Mike Haertel and Jim Avera for this test.
15627 Here is a matrix of mmap possibilities:
15628 mmap private not fixed
15629 mmap private fixed at somewhere currently unmapped
15630 mmap private fixed at somewhere already mapped
15631 mmap shared not fixed
15632 mmap shared fixed at somewhere currently unmapped
15633 mmap shared fixed at somewhere already mapped
15634 For private mappings, we should verify that changes cannot be read()
15635 back from the file, nor mmap's back from the file at a different
15636 address. (There have been systems where private was not correctly
15637 implemented like the infamous i386 svr4.0, and systems where the
15638 VM page cache was not coherent with the file system buffer cache
15639 like early versions of FreeBSD and possibly contemporary NetBSD.)
15640 For shared mappings, we should conversely verify that changes get
15641 propagated back to all the places they're supposed to be.
15643 Grep wants private fixed already mapped.
15644 The main things grep needs to know about mmap are:
15645 * does it exist and is it safe to write into the mmap'd area
15646 * how to use it (BSD variants) */
15649 #include <sys/mman.h>
15651 #if !STDC_HEADERS && !HAVE_STDLIB_H
15655 /* This mess was copied from the GNU getpagesize.h. */
15656 #if !HAVE_GETPAGESIZE
15657 /* Assume that all systems that can run configure have sys/param.h. */
15658 # if !HAVE_SYS_PARAM_H
15659 # define HAVE_SYS_PARAM_H 1
15662 # ifdef _SC_PAGESIZE
15663 # define getpagesize() sysconf(_SC_PAGESIZE)
15664 # else /* no _SC_PAGESIZE */
15665 # if HAVE_SYS_PARAM_H
15666 # include <sys/param.h>
15667 # ifdef EXEC_PAGESIZE
15668 # define getpagesize() EXEC_PAGESIZE
15669 # else /* no EXEC_PAGESIZE */
15671 # define getpagesize() NBPG * CLSIZE
15674 # endif /* no CLSIZE */
15675 # else /* no NBPG */
15677 # define getpagesize() NBPC
15678 # else /* no NBPC */
15680 # define getpagesize() PAGESIZE
15681 # endif /* PAGESIZE */
15682 # endif /* no NBPC */
15683 # endif /* no NBPG */
15684 # endif /* no EXEC_PAGESIZE */
15685 # else /* no HAVE_SYS_PARAM_H */
15686 # define getpagesize() 8192 /* punt totally */
15687 # endif /* no HAVE_SYS_PARAM_H */
15688 # endif /* no _SC_PAGESIZE */
15690 #endif /* no HAVE_GETPAGESIZE */
15695 char *data, *data2, *data3;
15699 pagesize = getpagesize ();
15701 /* First, make a file with some known garbage in it. */
15702 data = (char *) malloc (pagesize);
15705 for (i = 0; i < pagesize; ++i)
15706 *(data + i) = rand ();
15708 fd = creat ("conftest.mmap", 0600);
15711 if (write (fd, data, pagesize) != pagesize)
15715 /* Next, try to mmap the file at a fixed address which already has
15716 something else allocated at it. If we can, also make sure that
15717 we see the same garbage. */
15718 fd = open ("conftest.mmap", O_RDWR);
15721 data2 = (char *) malloc (2 * pagesize);
15724 data2 += (pagesize - ((long) data2 & (pagesize - 1))) & (pagesize - 1);
15725 if (data2 != mmap (data2, pagesize, PROT_READ | PROT_WRITE,
15726 MAP_PRIVATE | MAP_FIXED, fd, 0L))
15728 for (i = 0; i < pagesize; ++i)
15729 if (*(data + i) != *(data2 + i))
15732 /* Finally, make sure that changes to the mapped area do not
15733 percolate back to the file as seen by read(). (This is a bug on
15734 some variants of i386 svr4.0.) */
15735 for (i = 0; i < pagesize; ++i)
15736 *(data2 + i) = *(data2 + i) + 1;
15737 data3 = (char *) malloc (pagesize);
15740 if (read (fd, data3, pagesize) != pagesize)
15742 for (i = 0; i < pagesize; ++i)
15743 if (*(data + i) != *(data3 + i))
15749 rm -f conftest$ac_exeext
15750 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
15751 (eval $ac_link) 2>&5
15753 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15754 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
15755 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15756 (eval $ac_try) 2>&5
15758 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15759 (exit $ac_status); }; }; then
15760 ac_cv_func_mmap_fixed_mapped=yes
15762 echo "$as_me: program exited with status $ac_status" >&5
15763 echo "$as_me: failed program was:" >&5
15764 sed 's/^/| /' conftest.$ac_ext >&5
15766 ( exit $ac_status )
15767 ac_cv_func_mmap_fixed_mapped=no
15769 rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
15772 echo "$as_me:$LINENO: result: $ac_cv_func_mmap_fixed_mapped" >&5
15773 echo "${ECHO_T}$ac_cv_func_mmap_fixed_mapped" >&6
15774 if test $ac_cv_func_mmap_fixed_mapped = yes; then
15776 cat >>confdefs.h <<\_ACEOF
15777 #define HAVE_MMAP 1
15781 rm -f conftest.mmap
15783 echo "$as_me:$LINENO: checking for pid_t" >&5
15784 echo $ECHO_N "checking for pid_t... $ECHO_C" >&6
15785 if test "${ac_cv_type_pid_t+set}" = set; then
15786 echo $ECHO_N "(cached) $ECHO_C" >&6
15788 cat >conftest.$ac_ext <<_ACEOF
15791 cat confdefs.h >>conftest.$ac_ext
15792 cat >>conftest.$ac_ext <<_ACEOF
15793 /* end confdefs.h. */
15794 $ac_includes_default
15800 if (sizeof (pid_t))
15806 rm -f conftest.$ac_objext
15807 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
15808 (eval $ac_compile) 2>conftest.er1
15810 grep -v '^ *+' conftest.er1 >conftest.err
15812 cat conftest.err >&5
15813 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15814 (exit $ac_status); } &&
15815 { ac_try='test -z "$ac_c_werror_flag"
15816 || test ! -s conftest.err'
15817 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15818 (eval $ac_try) 2>&5
15820 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15821 (exit $ac_status); }; } &&
15822 { ac_try='test -s conftest.$ac_objext'
15823 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15824 (eval $ac_try) 2>&5
15826 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15827 (exit $ac_status); }; }; then
15828 ac_cv_type_pid_t=yes
15830 echo "$as_me: failed program was:" >&5
15831 sed 's/^/| /' conftest.$ac_ext >&5
15833 ac_cv_type_pid_t=no
15835 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
15837 echo "$as_me:$LINENO: result: $ac_cv_type_pid_t" >&5
15838 echo "${ECHO_T}$ac_cv_type_pid_t" >&6
15839 if test $ac_cv_type_pid_t = yes; then
15843 cat >>confdefs.h <<_ACEOF
15851 for ac_header in unistd.h vfork.h
15853 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
15854 if eval "test \"\${$as_ac_Header+set}\" = set"; then
15855 echo "$as_me:$LINENO: checking for $ac_header" >&5
15856 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
15857 if eval "test \"\${$as_ac_Header+set}\" = set"; then
15858 echo $ECHO_N "(cached) $ECHO_C" >&6
15860 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
15861 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
15863 # Is the header compilable?
15864 echo "$as_me:$LINENO: checking $ac_header usability" >&5
15865 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
15866 cat >conftest.$ac_ext <<_ACEOF
15869 cat confdefs.h >>conftest.$ac_ext
15870 cat >>conftest.$ac_ext <<_ACEOF
15871 /* end confdefs.h. */
15872 $ac_includes_default
15873 #include <$ac_header>
15875 rm -f conftest.$ac_objext
15876 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
15877 (eval $ac_compile) 2>conftest.er1
15879 grep -v '^ *+' conftest.er1 >conftest.err
15881 cat conftest.err >&5
15882 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15883 (exit $ac_status); } &&
15884 { ac_try='test -z "$ac_c_werror_flag"
15885 || test ! -s conftest.err'
15886 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15887 (eval $ac_try) 2>&5
15889 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15890 (exit $ac_status); }; } &&
15891 { ac_try='test -s conftest.$ac_objext'
15892 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15893 (eval $ac_try) 2>&5
15895 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15896 (exit $ac_status); }; }; then
15897 ac_header_compiler=yes
15899 echo "$as_me: failed program was:" >&5
15900 sed 's/^/| /' conftest.$ac_ext >&5
15902 ac_header_compiler=no
15904 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
15905 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
15906 echo "${ECHO_T}$ac_header_compiler" >&6
15908 # Is the header present?
15909 echo "$as_me:$LINENO: checking $ac_header presence" >&5
15910 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
15911 cat >conftest.$ac_ext <<_ACEOF
15914 cat confdefs.h >>conftest.$ac_ext
15915 cat >>conftest.$ac_ext <<_ACEOF
15916 /* end confdefs.h. */
15917 #include <$ac_header>
15919 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
15920 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
15922 grep -v '^ *+' conftest.er1 >conftest.err
15924 cat conftest.err >&5
15925 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15926 (exit $ac_status); } >/dev/null; then
15927 if test -s conftest.err; then
15928 ac_cpp_err=$ac_c_preproc_warn_flag
15929 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
15936 if test -z "$ac_cpp_err"; then
15937 ac_header_preproc=yes
15939 echo "$as_me: failed program was:" >&5
15940 sed 's/^/| /' conftest.$ac_ext >&5
15942 ac_header_preproc=no
15944 rm -f conftest.err conftest.$ac_ext
15945 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
15946 echo "${ECHO_T}$ac_header_preproc" >&6
15948 # So? What about this header?
15949 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
15951 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
15952 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
15953 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
15954 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
15955 ac_header_preproc=yes
15958 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
15959 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
15960 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
15961 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
15962 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
15963 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
15964 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
15965 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
15966 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
15967 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
15968 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
15969 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
15972 ## ------------------------------------------ ##
15973 ## Report this to the AC_PACKAGE_NAME lists. ##
15974 ## ------------------------------------------ ##
15977 sed "s/^/$as_me: WARNING: /" >&2
15980 echo "$as_me:$LINENO: checking for $ac_header" >&5
15981 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
15982 if eval "test \"\${$as_ac_Header+set}\" = set"; then
15983 echo $ECHO_N "(cached) $ECHO_C" >&6
15985 eval "$as_ac_Header=\$ac_header_preproc"
15987 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
15988 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
15991 if test `eval echo '${'$as_ac_Header'}'` = yes; then
15992 cat >>confdefs.h <<_ACEOF
15993 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
16002 for ac_func in fork vfork
16004 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
16005 echo "$as_me:$LINENO: checking for $ac_func" >&5
16006 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
16007 if eval "test \"\${$as_ac_var+set}\" = set"; then
16008 echo $ECHO_N "(cached) $ECHO_C" >&6
16010 cat >conftest.$ac_ext <<_ACEOF
16013 cat confdefs.h >>conftest.$ac_ext
16014 cat >>conftest.$ac_ext <<_ACEOF
16015 /* end confdefs.h. */
16016 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
16017 For example, HP-UX 11i <limits.h> declares gettimeofday. */
16018 #define $ac_func innocuous_$ac_func
16020 /* System header to define __stub macros and hopefully few prototypes,
16021 which can conflict with char $ac_func (); below.
16022 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
16023 <limits.h> exists even on freestanding compilers. */
16026 # include <limits.h>
16028 # include <assert.h>
16033 /* Override any gcc2 internal prototype to avoid an error. */
16038 /* We use char because int might match the return type of a gcc2
16039 builtin and then its argument prototype would still apply. */
16041 /* The GNU C library defines this for functions which it implements
16042 to always fail with ENOSYS. Some functions are actually named
16043 something starting with __ and the normal name is an alias. */
16044 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
16047 char (*f) () = $ac_func;
16056 return f != $ac_func;
16061 rm -f conftest.$ac_objext conftest$ac_exeext
16062 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
16063 (eval $ac_link) 2>conftest.er1
16065 grep -v '^ *+' conftest.er1 >conftest.err
16067 cat conftest.err >&5
16068 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16069 (exit $ac_status); } &&
16070 { ac_try='test -z "$ac_c_werror_flag"
16071 || test ! -s conftest.err'
16072 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16073 (eval $ac_try) 2>&5
16075 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16076 (exit $ac_status); }; } &&
16077 { ac_try='test -s conftest$ac_exeext'
16078 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16079 (eval $ac_try) 2>&5
16081 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16082 (exit $ac_status); }; }; then
16083 eval "$as_ac_var=yes"
16085 echo "$as_me: failed program was:" >&5
16086 sed 's/^/| /' conftest.$ac_ext >&5
16088 eval "$as_ac_var=no"
16090 rm -f conftest.err conftest.$ac_objext \
16091 conftest$ac_exeext conftest.$ac_ext
16093 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
16094 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
16095 if test `eval echo '${'$as_ac_var'}'` = yes; then
16096 cat >>confdefs.h <<_ACEOF
16097 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
16103 if test "x$ac_cv_func_fork" = xyes; then
16104 echo "$as_me:$LINENO: checking for working fork" >&5
16105 echo $ECHO_N "checking for working fork... $ECHO_C" >&6
16106 if test "${ac_cv_func_fork_works+set}" = set; then
16107 echo $ECHO_N "(cached) $ECHO_C" >&6
16109 if test "$cross_compiling" = yes; then
16110 ac_cv_func_fork_works=cross
16112 cat >conftest.$ac_ext <<_ACEOF
16113 /* By Ruediger Kuhlmann. */
16114 #include <sys/types.h>
16116 # include <unistd.h>
16118 /* Some systems only have a dummy stub for fork() */
16126 rm -f conftest$ac_exeext
16127 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
16128 (eval $ac_link) 2>&5
16130 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16131 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
16132 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16133 (eval $ac_try) 2>&5
16135 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16136 (exit $ac_status); }; }; then
16137 ac_cv_func_fork_works=yes
16139 echo "$as_me: program exited with status $ac_status" >&5
16140 echo "$as_me: failed program was:" >&5
16141 sed 's/^/| /' conftest.$ac_ext >&5
16143 ( exit $ac_status )
16144 ac_cv_func_fork_works=no
16146 rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
16149 echo "$as_me:$LINENO: result: $ac_cv_func_fork_works" >&5
16150 echo "${ECHO_T}$ac_cv_func_fork_works" >&6
16153 ac_cv_func_fork_works=$ac_cv_func_fork
16155 if test "x$ac_cv_func_fork_works" = xcross; then
16157 *-*-amigaos* | *-*-msdosdjgpp*)
16158 # Override, as these systems have only a dummy fork() stub
16159 ac_cv_func_fork_works=no
16162 ac_cv_func_fork_works=yes
16165 { echo "$as_me:$LINENO: WARNING: result $ac_cv_func_fork_works guessed because of cross compilation" >&5
16166 echo "$as_me: WARNING: result $ac_cv_func_fork_works guessed because of cross compilation" >&2;}
16168 ac_cv_func_vfork_works=$ac_cv_func_vfork
16169 if test "x$ac_cv_func_vfork" = xyes; then
16170 echo "$as_me:$LINENO: checking for working vfork" >&5
16171 echo $ECHO_N "checking for working vfork... $ECHO_C" >&6
16172 if test "${ac_cv_func_vfork_works+set}" = set; then
16173 echo $ECHO_N "(cached) $ECHO_C" >&6
16175 if test "$cross_compiling" = yes; then
16176 ac_cv_func_vfork_works=cross
16178 cat >conftest.$ac_ext <<_ACEOF
16181 cat confdefs.h >>conftest.$ac_ext
16182 cat >>conftest.$ac_ext <<_ACEOF
16183 /* end confdefs.h. */
16184 /* Thanks to Paul Eggert for this test. */
16186 #include <stdlib.h>
16187 #include <sys/types.h>
16188 #include <sys/stat.h>
16189 #include <sys/wait.h>
16191 # include <unistd.h>
16194 # include <vfork.h>
16196 /* On some sparc systems, changes by the child to local and incoming
16197 argument registers are propagated back to the parent. The compiler
16198 is told about this with #include <vfork.h>, but some compilers
16199 (e.g. gcc -O) don't grok <vfork.h>. Test for this by using a
16200 static variable whose address is put into a register that is
16201 clobbered by the vfork. */
16204 sparc_address_test (int arg)
16206 sparc_address_test (arg) int arg;
16209 static pid_t child;
16227 pid_t parent = getpid ();
16230 sparc_address_test (0);
16235 /* Here is another test for sparc vfork register problems. This
16236 test uses lots of local variables, at least as many local
16237 variables as main has allocated so far including compiler
16238 temporaries. 4 locals are enough for gcc 1.40.3 on a Solaris
16239 4.1.3 sparc, but we use 8 to be safe. A buggy compiler should
16240 reuse the register of parent for one of the local variables,
16241 since it will think that parent can't possibly be used any more
16242 in this routine. Assigning to the local variable will thus
16243 munge parent in the parent process. */
16245 p = getpid(), p1 = getpid(), p2 = getpid(), p3 = getpid(),
16246 p4 = getpid(), p5 = getpid(), p6 = getpid(), p7 = getpid();
16247 /* Convince the compiler that p..p7 are live; otherwise, it might
16248 use the same hardware register for all 8 local variables. */
16249 if (p != p1 || p != p2 || p != p3 || p != p4
16250 || p != p5 || p != p6 || p != p7)
16253 /* On some systems (e.g. IRIX 3.3), vfork doesn't separate parent
16254 from child file descriptors. If the child closes a descriptor
16255 before it execs or exits, this munges the parent's descriptor
16256 as well. Test for this by closing stdout in the child. */
16257 _exit(close(fileno(stdout)) != 0);
16262 while (wait(&status) != child)
16265 /* Was there some problem with vforking? */
16268 /* Did the child fail? (This shouldn't happen.) */
16271 /* Did the vfork/compiler bug occur? */
16272 || parent != getpid()
16274 /* Did the file descriptor bug occur? */
16275 || fstat(fileno(stdout), &st) != 0
16280 rm -f conftest$ac_exeext
16281 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
16282 (eval $ac_link) 2>&5
16284 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16285 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
16286 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16287 (eval $ac_try) 2>&5
16289 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16290 (exit $ac_status); }; }; then
16291 ac_cv_func_vfork_works=yes
16293 echo "$as_me: program exited with status $ac_status" >&5
16294 echo "$as_me: failed program was:" >&5
16295 sed 's/^/| /' conftest.$ac_ext >&5
16297 ( exit $ac_status )
16298 ac_cv_func_vfork_works=no
16300 rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
16303 echo "$as_me:$LINENO: result: $ac_cv_func_vfork_works" >&5
16304 echo "${ECHO_T}$ac_cv_func_vfork_works" >&6
16307 if test "x$ac_cv_func_fork_works" = xcross; then
16308 ac_cv_func_vfork_works=$ac_cv_func_vfork
16309 { echo "$as_me:$LINENO: WARNING: result $ac_cv_func_vfork_works guessed because of cross compilation" >&5
16310 echo "$as_me: WARNING: result $ac_cv_func_vfork_works guessed because of cross compilation" >&2;}
16313 if test "x$ac_cv_func_vfork_works" = xyes; then
16315 cat >>confdefs.h <<\_ACEOF
16316 #define HAVE_WORKING_VFORK 1
16321 cat >>confdefs.h <<\_ACEOF
16326 if test "x$ac_cv_func_fork_works" = xyes; then
16328 cat >>confdefs.h <<\_ACEOF
16329 #define HAVE_WORKING_FORK 1
16336 for ac_func in canonicalize_file_name realpath
16338 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
16339 echo "$as_me:$LINENO: checking for $ac_func" >&5
16340 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
16341 if eval "test \"\${$as_ac_var+set}\" = set"; then
16342 echo $ECHO_N "(cached) $ECHO_C" >&6
16344 cat >conftest.$ac_ext <<_ACEOF
16347 cat confdefs.h >>conftest.$ac_ext
16348 cat >>conftest.$ac_ext <<_ACEOF
16349 /* end confdefs.h. */
16350 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
16351 For example, HP-UX 11i <limits.h> declares gettimeofday. */
16352 #define $ac_func innocuous_$ac_func
16354 /* System header to define __stub macros and hopefully few prototypes,
16355 which can conflict with char $ac_func (); below.
16356 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
16357 <limits.h> exists even on freestanding compilers. */
16360 # include <limits.h>
16362 # include <assert.h>
16367 /* Override any gcc2 internal prototype to avoid an error. */
16372 /* We use char because int might match the return type of a gcc2
16373 builtin and then its argument prototype would still apply. */
16375 /* The GNU C library defines this for functions which it implements
16376 to always fail with ENOSYS. Some functions are actually named
16377 something starting with __ and the normal name is an alias. */
16378 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
16381 char (*f) () = $ac_func;
16390 return f != $ac_func;
16395 rm -f conftest.$ac_objext conftest$ac_exeext
16396 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
16397 (eval $ac_link) 2>conftest.er1
16399 grep -v '^ *+' conftest.er1 >conftest.err
16401 cat conftest.err >&5
16402 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16403 (exit $ac_status); } &&
16404 { ac_try='test -z "$ac_c_werror_flag"
16405 || test ! -s conftest.err'
16406 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16407 (eval $ac_try) 2>&5
16409 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16410 (exit $ac_status); }; } &&
16411 { ac_try='test -s conftest$ac_exeext'
16412 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16413 (eval $ac_try) 2>&5
16415 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16416 (exit $ac_status); }; }; then
16417 eval "$as_ac_var=yes"
16419 echo "$as_me: failed program was:" >&5
16420 sed 's/^/| /' conftest.$ac_ext >&5
16422 eval "$as_ac_var=no"
16424 rm -f conftest.err conftest.$ac_objext \
16425 conftest$ac_exeext conftest.$ac_ext
16427 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
16428 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
16429 if test `eval echo '${'$as_ac_var'}'` = yes; then
16430 cat >>confdefs.h <<_ACEOF
16431 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
16439 for ac_func in getuid getgid
16441 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
16442 echo "$as_me:$LINENO: checking for $ac_func" >&5
16443 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
16444 if eval "test \"\${$as_ac_var+set}\" = set"; then
16445 echo $ECHO_N "(cached) $ECHO_C" >&6
16447 cat >conftest.$ac_ext <<_ACEOF
16450 cat confdefs.h >>conftest.$ac_ext
16451 cat >>conftest.$ac_ext <<_ACEOF
16452 /* end confdefs.h. */
16453 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
16454 For example, HP-UX 11i <limits.h> declares gettimeofday. */
16455 #define $ac_func innocuous_$ac_func
16457 /* System header to define __stub macros and hopefully few prototypes,
16458 which can conflict with char $ac_func (); below.
16459 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
16460 <limits.h> exists even on freestanding compilers. */
16463 # include <limits.h>
16465 # include <assert.h>
16470 /* Override any gcc2 internal prototype to avoid an error. */
16475 /* We use char because int might match the return type of a gcc2
16476 builtin and then its argument prototype would still apply. */
16478 /* The GNU C library defines this for functions which it implements
16479 to always fail with ENOSYS. Some functions are actually named
16480 something starting with __ and the normal name is an alias. */
16481 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
16484 char (*f) () = $ac_func;
16493 return f != $ac_func;
16498 rm -f conftest.$ac_objext conftest$ac_exeext
16499 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
16500 (eval $ac_link) 2>conftest.er1
16502 grep -v '^ *+' conftest.er1 >conftest.err
16504 cat conftest.err >&5
16505 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16506 (exit $ac_status); } &&
16507 { ac_try='test -z "$ac_c_werror_flag"
16508 || test ! -s conftest.err'
16509 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16510 (eval $ac_try) 2>&5
16512 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16513 (exit $ac_status); }; } &&
16514 { ac_try='test -s conftest$ac_exeext'
16515 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16516 (eval $ac_try) 2>&5
16518 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16519 (exit $ac_status); }; }; then
16520 eval "$as_ac_var=yes"
16522 echo "$as_me: failed program was:" >&5
16523 sed 's/^/| /' conftest.$ac_ext >&5
16525 eval "$as_ac_var=no"
16527 rm -f conftest.err conftest.$ac_objext \
16528 conftest$ac_exeext conftest.$ac_ext
16530 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
16531 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
16532 if test `eval echo '${'$as_ac_var'}'` = yes; then
16533 cat >>confdefs.h <<_ACEOF
16534 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
16541 for ac_func in poll
16543 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
16544 echo "$as_me:$LINENO: checking for $ac_func" >&5
16545 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
16546 if eval "test \"\${$as_ac_var+set}\" = set"; then
16547 echo $ECHO_N "(cached) $ECHO_C" >&6
16549 cat >conftest.$ac_ext <<_ACEOF
16552 cat confdefs.h >>conftest.$ac_ext
16553 cat >>conftest.$ac_ext <<_ACEOF
16554 /* end confdefs.h. */
16555 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
16556 For example, HP-UX 11i <limits.h> declares gettimeofday. */
16557 #define $ac_func innocuous_$ac_func
16559 /* System header to define __stub macros and hopefully few prototypes,
16560 which can conflict with char $ac_func (); below.
16561 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
16562 <limits.h> exists even on freestanding compilers. */
16565 # include <limits.h>
16567 # include <assert.h>
16572 /* Override any gcc2 internal prototype to avoid an error. */
16577 /* We use char because int might match the return type of a gcc2
16578 builtin and then its argument prototype would still apply. */
16580 /* The GNU C library defines this for functions which it implements
16581 to always fail with ENOSYS. Some functions are actually named
16582 something starting with __ and the normal name is an alias. */
16583 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
16586 char (*f) () = $ac_func;
16595 return f != $ac_func;
16600 rm -f conftest.$ac_objext conftest$ac_exeext
16601 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
16602 (eval $ac_link) 2>conftest.er1
16604 grep -v '^ *+' conftest.er1 >conftest.err
16606 cat conftest.err >&5
16607 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16608 (exit $ac_status); } &&
16609 { ac_try='test -z "$ac_c_werror_flag"
16610 || test ! -s conftest.err'
16611 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16612 (eval $ac_try) 2>&5
16614 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16615 (exit $ac_status); }; } &&
16616 { ac_try='test -s conftest$ac_exeext'
16617 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16618 (eval $ac_try) 2>&5
16620 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16621 (exit $ac_status); }; }; then
16622 eval "$as_ac_var=yes"
16624 echo "$as_me: failed program was:" >&5
16625 sed 's/^/| /' conftest.$ac_ext >&5
16627 eval "$as_ac_var=no"
16629 rm -f conftest.err conftest.$ac_objext \
16630 conftest$ac_exeext conftest.$ac_ext
16632 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
16633 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
16634 if test `eval echo '${'$as_ac_var'}'` = yes; then
16635 cat >>confdefs.h <<_ACEOF
16636 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
16643 for ac_func in pread64
16645 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
16646 echo "$as_me:$LINENO: checking for $ac_func" >&5
16647 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
16648 if eval "test \"\${$as_ac_var+set}\" = set"; then
16649 echo $ECHO_N "(cached) $ECHO_C" >&6
16651 cat >conftest.$ac_ext <<_ACEOF
16654 cat confdefs.h >>conftest.$ac_ext
16655 cat >>conftest.$ac_ext <<_ACEOF
16656 /* end confdefs.h. */
16657 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
16658 For example, HP-UX 11i <limits.h> declares gettimeofday. */
16659 #define $ac_func innocuous_$ac_func
16661 /* System header to define __stub macros and hopefully few prototypes,
16662 which can conflict with char $ac_func (); below.
16663 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
16664 <limits.h> exists even on freestanding compilers. */
16667 # include <limits.h>
16669 # include <assert.h>
16674 /* Override any gcc2 internal prototype to avoid an error. */
16679 /* We use char because int might match the return type of a gcc2
16680 builtin and then its argument prototype would still apply. */
16682 /* The GNU C library defines this for functions which it implements
16683 to always fail with ENOSYS. Some functions are actually named
16684 something starting with __ and the normal name is an alias. */
16685 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
16688 char (*f) () = $ac_func;
16697 return f != $ac_func;
16702 rm -f conftest.$ac_objext conftest$ac_exeext
16703 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
16704 (eval $ac_link) 2>conftest.er1
16706 grep -v '^ *+' conftest.er1 >conftest.err
16708 cat conftest.err >&5
16709 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16710 (exit $ac_status); } &&
16711 { ac_try='test -z "$ac_c_werror_flag"
16712 || test ! -s conftest.err'
16713 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16714 (eval $ac_try) 2>&5
16716 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16717 (exit $ac_status); }; } &&
16718 { ac_try='test -s conftest$ac_exeext'
16719 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16720 (eval $ac_try) 2>&5
16722 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16723 (exit $ac_status); }; }; then
16724 eval "$as_ac_var=yes"
16726 echo "$as_me: failed program was:" >&5
16727 sed 's/^/| /' conftest.$ac_ext >&5
16729 eval "$as_ac_var=no"
16731 rm -f conftest.err conftest.$ac_objext \
16732 conftest$ac_exeext conftest.$ac_ext
16734 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
16735 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
16736 if test `eval echo '${'$as_ac_var'}'` = yes; then
16737 cat >>confdefs.h <<_ACEOF
16738 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
16745 for ac_func in sbrk
16747 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
16748 echo "$as_me:$LINENO: checking for $ac_func" >&5
16749 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
16750 if eval "test \"\${$as_ac_var+set}\" = set"; then
16751 echo $ECHO_N "(cached) $ECHO_C" >&6
16753 cat >conftest.$ac_ext <<_ACEOF
16756 cat confdefs.h >>conftest.$ac_ext
16757 cat >>conftest.$ac_ext <<_ACEOF
16758 /* end confdefs.h. */
16759 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
16760 For example, HP-UX 11i <limits.h> declares gettimeofday. */
16761 #define $ac_func innocuous_$ac_func
16763 /* System header to define __stub macros and hopefully few prototypes,
16764 which can conflict with char $ac_func (); below.
16765 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
16766 <limits.h> exists even on freestanding compilers. */
16769 # include <limits.h>
16771 # include <assert.h>
16776 /* Override any gcc2 internal prototype to avoid an error. */
16781 /* We use char because int might match the return type of a gcc2
16782 builtin and then its argument prototype would still apply. */
16784 /* The GNU C library defines this for functions which it implements
16785 to always fail with ENOSYS. Some functions are actually named
16786 something starting with __ and the normal name is an alias. */
16787 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
16790 char (*f) () = $ac_func;
16799 return f != $ac_func;
16804 rm -f conftest.$ac_objext conftest$ac_exeext
16805 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
16806 (eval $ac_link) 2>conftest.er1
16808 grep -v '^ *+' conftest.er1 >conftest.err
16810 cat conftest.err >&5
16811 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16812 (exit $ac_status); } &&
16813 { ac_try='test -z "$ac_c_werror_flag"
16814 || test ! -s conftest.err'
16815 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16816 (eval $ac_try) 2>&5
16818 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16819 (exit $ac_status); }; } &&
16820 { ac_try='test -s conftest$ac_exeext'
16821 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16822 (eval $ac_try) 2>&5
16824 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16825 (exit $ac_status); }; }; then
16826 eval "$as_ac_var=yes"
16828 echo "$as_me: failed program was:" >&5
16829 sed 's/^/| /' conftest.$ac_ext >&5
16831 eval "$as_ac_var=no"
16833 rm -f conftest.err conftest.$ac_objext \
16834 conftest$ac_exeext conftest.$ac_ext
16836 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
16837 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
16838 if test `eval echo '${'$as_ac_var'}'` = yes; then
16839 cat >>confdefs.h <<_ACEOF
16840 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
16848 for ac_func in setpgid setpgrp
16850 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
16851 echo "$as_me:$LINENO: checking for $ac_func" >&5
16852 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
16853 if eval "test \"\${$as_ac_var+set}\" = set"; then
16854 echo $ECHO_N "(cached) $ECHO_C" >&6
16856 cat >conftest.$ac_ext <<_ACEOF
16859 cat confdefs.h >>conftest.$ac_ext
16860 cat >>conftest.$ac_ext <<_ACEOF
16861 /* end confdefs.h. */
16862 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
16863 For example, HP-UX 11i <limits.h> declares gettimeofday. */
16864 #define $ac_func innocuous_$ac_func
16866 /* System header to define __stub macros and hopefully few prototypes,
16867 which can conflict with char $ac_func (); below.
16868 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
16869 <limits.h> exists even on freestanding compilers. */
16872 # include <limits.h>
16874 # include <assert.h>
16879 /* Override any gcc2 internal prototype to avoid an error. */
16884 /* We use char because int might match the return type of a gcc2
16885 builtin and then its argument prototype would still apply. */
16887 /* The GNU C library defines this for functions which it implements
16888 to always fail with ENOSYS. Some functions are actually named
16889 something starting with __ and the normal name is an alias. */
16890 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
16893 char (*f) () = $ac_func;
16902 return f != $ac_func;
16907 rm -f conftest.$ac_objext conftest$ac_exeext
16908 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
16909 (eval $ac_link) 2>conftest.er1
16911 grep -v '^ *+' conftest.er1 >conftest.err
16913 cat conftest.err >&5
16914 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16915 (exit $ac_status); } &&
16916 { ac_try='test -z "$ac_c_werror_flag"
16917 || test ! -s conftest.err'
16918 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16919 (eval $ac_try) 2>&5
16921 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16922 (exit $ac_status); }; } &&
16923 { ac_try='test -s conftest$ac_exeext'
16924 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16925 (eval $ac_try) 2>&5
16927 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16928 (exit $ac_status); }; }; then
16929 eval "$as_ac_var=yes"
16931 echo "$as_me: failed program was:" >&5
16932 sed 's/^/| /' conftest.$ac_ext >&5
16934 eval "$as_ac_var=no"
16936 rm -f conftest.err conftest.$ac_objext \
16937 conftest$ac_exeext conftest.$ac_ext
16939 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
16940 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
16941 if test `eval echo '${'$as_ac_var'}'` = yes; then
16942 cat >>confdefs.h <<_ACEOF
16943 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
16952 for ac_func in sigaction sigprocmask sigsetmask
16954 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
16955 echo "$as_me:$LINENO: checking for $ac_func" >&5
16956 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
16957 if eval "test \"\${$as_ac_var+set}\" = set"; then
16958 echo $ECHO_N "(cached) $ECHO_C" >&6
16960 cat >conftest.$ac_ext <<_ACEOF
16963 cat confdefs.h >>conftest.$ac_ext
16964 cat >>conftest.$ac_ext <<_ACEOF
16965 /* end confdefs.h. */
16966 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
16967 For example, HP-UX 11i <limits.h> declares gettimeofday. */
16968 #define $ac_func innocuous_$ac_func
16970 /* System header to define __stub macros and hopefully few prototypes,
16971 which can conflict with char $ac_func (); below.
16972 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
16973 <limits.h> exists even on freestanding compilers. */
16976 # include <limits.h>
16978 # include <assert.h>
16983 /* Override any gcc2 internal prototype to avoid an error. */
16988 /* We use char because int might match the return type of a gcc2
16989 builtin and then its argument prototype would still apply. */
16991 /* The GNU C library defines this for functions which it implements
16992 to always fail with ENOSYS. Some functions are actually named
16993 something starting with __ and the normal name is an alias. */
16994 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
16997 char (*f) () = $ac_func;
17006 return f != $ac_func;
17011 rm -f conftest.$ac_objext conftest$ac_exeext
17012 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
17013 (eval $ac_link) 2>conftest.er1
17015 grep -v '^ *+' conftest.er1 >conftest.err
17017 cat conftest.err >&5
17018 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17019 (exit $ac_status); } &&
17020 { ac_try='test -z "$ac_c_werror_flag"
17021 || test ! -s conftest.err'
17022 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17023 (eval $ac_try) 2>&5
17025 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17026 (exit $ac_status); }; } &&
17027 { ac_try='test -s conftest$ac_exeext'
17028 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17029 (eval $ac_try) 2>&5
17031 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17032 (exit $ac_status); }; }; then
17033 eval "$as_ac_var=yes"
17035 echo "$as_me: failed program was:" >&5
17036 sed 's/^/| /' conftest.$ac_ext >&5
17038 eval "$as_ac_var=no"
17040 rm -f conftest.err conftest.$ac_objext \
17041 conftest$ac_exeext conftest.$ac_ext
17043 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
17044 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
17045 if test `eval echo '${'$as_ac_var'}'` = yes; then
17046 cat >>confdefs.h <<_ACEOF
17047 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
17054 for ac_func in socketpair
17056 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
17057 echo "$as_me:$LINENO: checking for $ac_func" >&5
17058 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
17059 if eval "test \"\${$as_ac_var+set}\" = set"; then
17060 echo $ECHO_N "(cached) $ECHO_C" >&6
17062 cat >conftest.$ac_ext <<_ACEOF
17065 cat confdefs.h >>conftest.$ac_ext
17066 cat >>conftest.$ac_ext <<_ACEOF
17067 /* end confdefs.h. */
17068 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
17069 For example, HP-UX 11i <limits.h> declares gettimeofday. */
17070 #define $ac_func innocuous_$ac_func
17072 /* System header to define __stub macros and hopefully few prototypes,
17073 which can conflict with char $ac_func (); below.
17074 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
17075 <limits.h> exists even on freestanding compilers. */
17078 # include <limits.h>
17080 # include <assert.h>
17085 /* Override any gcc2 internal prototype to avoid an error. */
17090 /* We use char because int might match the return type of a gcc2
17091 builtin and then its argument prototype would still apply. */
17093 /* The GNU C library defines this for functions which it implements
17094 to always fail with ENOSYS. Some functions are actually named
17095 something starting with __ and the normal name is an alias. */
17096 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
17099 char (*f) () = $ac_func;
17108 return f != $ac_func;
17113 rm -f conftest.$ac_objext conftest$ac_exeext
17114 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
17115 (eval $ac_link) 2>conftest.er1
17117 grep -v '^ *+' conftest.er1 >conftest.err
17119 cat conftest.err >&5
17120 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17121 (exit $ac_status); } &&
17122 { ac_try='test -z "$ac_c_werror_flag"
17123 || test ! -s conftest.err'
17124 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17125 (eval $ac_try) 2>&5
17127 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17128 (exit $ac_status); }; } &&
17129 { ac_try='test -s conftest$ac_exeext'
17130 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17131 (eval $ac_try) 2>&5
17133 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17134 (exit $ac_status); }; }; then
17135 eval "$as_ac_var=yes"
17137 echo "$as_me: failed program was:" >&5
17138 sed 's/^/| /' conftest.$ac_ext >&5
17140 eval "$as_ac_var=no"
17142 rm -f conftest.err conftest.$ac_objext \
17143 conftest$ac_exeext conftest.$ac_ext
17145 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
17146 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
17147 if test `eval echo '${'$as_ac_var'}'` = yes; then
17148 cat >>confdefs.h <<_ACEOF
17149 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
17156 for ac_func in syscall
17158 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
17159 echo "$as_me:$LINENO: checking for $ac_func" >&5
17160 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
17161 if eval "test \"\${$as_ac_var+set}\" = set"; then
17162 echo $ECHO_N "(cached) $ECHO_C" >&6
17164 cat >conftest.$ac_ext <<_ACEOF
17167 cat confdefs.h >>conftest.$ac_ext
17168 cat >>conftest.$ac_ext <<_ACEOF
17169 /* end confdefs.h. */
17170 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
17171 For example, HP-UX 11i <limits.h> declares gettimeofday. */
17172 #define $ac_func innocuous_$ac_func
17174 /* System header to define __stub macros and hopefully few prototypes,
17175 which can conflict with char $ac_func (); below.
17176 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
17177 <limits.h> exists even on freestanding compilers. */
17180 # include <limits.h>
17182 # include <assert.h>
17187 /* Override any gcc2 internal prototype to avoid an error. */
17192 /* We use char because int might match the return type of a gcc2
17193 builtin and then its argument prototype would still apply. */
17195 /* The GNU C library defines this for functions which it implements
17196 to always fail with ENOSYS. Some functions are actually named
17197 something starting with __ and the normal name is an alias. */
17198 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
17201 char (*f) () = $ac_func;
17210 return f != $ac_func;
17215 rm -f conftest.$ac_objext conftest$ac_exeext
17216 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
17217 (eval $ac_link) 2>conftest.er1
17219 grep -v '^ *+' conftest.er1 >conftest.err
17221 cat conftest.err >&5
17222 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17223 (exit $ac_status); } &&
17224 { ac_try='test -z "$ac_c_werror_flag"
17225 || test ! -s conftest.err'
17226 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17227 (eval $ac_try) 2>&5
17229 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17230 (exit $ac_status); }; } &&
17231 { ac_try='test -s conftest$ac_exeext'
17232 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17233 (eval $ac_try) 2>&5
17235 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17236 (exit $ac_status); }; }; then
17237 eval "$as_ac_var=yes"
17239 echo "$as_me: failed program was:" >&5
17240 sed 's/^/| /' conftest.$ac_ext >&5
17242 eval "$as_ac_var=no"
17244 rm -f conftest.err conftest.$ac_objext \
17245 conftest$ac_exeext conftest.$ac_ext
17247 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
17248 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
17249 if test `eval echo '${'$as_ac_var'}'` = yes; then
17250 cat >>confdefs.h <<_ACEOF
17251 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
17258 for ac_func in ttrace
17260 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
17261 echo "$as_me:$LINENO: checking for $ac_func" >&5
17262 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
17263 if eval "test \"\${$as_ac_var+set}\" = set"; then
17264 echo $ECHO_N "(cached) $ECHO_C" >&6
17266 cat >conftest.$ac_ext <<_ACEOF
17269 cat confdefs.h >>conftest.$ac_ext
17270 cat >>conftest.$ac_ext <<_ACEOF
17271 /* end confdefs.h. */
17272 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
17273 For example, HP-UX 11i <limits.h> declares gettimeofday. */
17274 #define $ac_func innocuous_$ac_func
17276 /* System header to define __stub macros and hopefully few prototypes,
17277 which can conflict with char $ac_func (); below.
17278 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
17279 <limits.h> exists even on freestanding compilers. */
17282 # include <limits.h>
17284 # include <assert.h>
17289 /* Override any gcc2 internal prototype to avoid an error. */
17294 /* We use char because int might match the return type of a gcc2
17295 builtin and then its argument prototype would still apply. */
17297 /* The GNU C library defines this for functions which it implements
17298 to always fail with ENOSYS. Some functions are actually named
17299 something starting with __ and the normal name is an alias. */
17300 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
17303 char (*f) () = $ac_func;
17312 return f != $ac_func;
17317 rm -f conftest.$ac_objext conftest$ac_exeext
17318 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
17319 (eval $ac_link) 2>conftest.er1
17321 grep -v '^ *+' conftest.er1 >conftest.err
17323 cat conftest.err >&5
17324 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17325 (exit $ac_status); } &&
17326 { ac_try='test -z "$ac_c_werror_flag"
17327 || test ! -s conftest.err'
17328 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17329 (eval $ac_try) 2>&5
17331 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17332 (exit $ac_status); }; } &&
17333 { ac_try='test -s conftest$ac_exeext'
17334 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17335 (eval $ac_try) 2>&5
17337 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17338 (exit $ac_status); }; }; then
17339 eval "$as_ac_var=yes"
17341 echo "$as_me: failed program was:" >&5
17342 sed 's/^/| /' conftest.$ac_ext >&5
17344 eval "$as_ac_var=no"
17346 rm -f conftest.err conftest.$ac_objext \
17347 conftest$ac_exeext conftest.$ac_ext
17349 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
17350 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
17351 if test `eval echo '${'$as_ac_var'}'` = yes; then
17352 cat >>confdefs.h <<_ACEOF
17353 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
17360 for ac_func in wborder
17362 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
17363 echo "$as_me:$LINENO: checking for $ac_func" >&5
17364 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
17365 if eval "test \"\${$as_ac_var+set}\" = set"; then
17366 echo $ECHO_N "(cached) $ECHO_C" >&6
17368 cat >conftest.$ac_ext <<_ACEOF
17371 cat confdefs.h >>conftest.$ac_ext
17372 cat >>conftest.$ac_ext <<_ACEOF
17373 /* end confdefs.h. */
17374 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
17375 For example, HP-UX 11i <limits.h> declares gettimeofday. */
17376 #define $ac_func innocuous_$ac_func
17378 /* System header to define __stub macros and hopefully few prototypes,
17379 which can conflict with char $ac_func (); below.
17380 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
17381 <limits.h> exists even on freestanding compilers. */
17384 # include <limits.h>
17386 # include <assert.h>
17391 /* Override any gcc2 internal prototype to avoid an error. */
17396 /* We use char because int might match the return type of a gcc2
17397 builtin and then its argument prototype would still apply. */
17399 /* The GNU C library defines this for functions which it implements
17400 to always fail with ENOSYS. Some functions are actually named
17401 something starting with __ and the normal name is an alias. */
17402 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
17405 char (*f) () = $ac_func;
17414 return f != $ac_func;
17419 rm -f conftest.$ac_objext conftest$ac_exeext
17420 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
17421 (eval $ac_link) 2>conftest.er1
17423 grep -v '^ *+' conftest.er1 >conftest.err
17425 cat conftest.err >&5
17426 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17427 (exit $ac_status); } &&
17428 { ac_try='test -z "$ac_c_werror_flag"
17429 || test ! -s conftest.err'
17430 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17431 (eval $ac_try) 2>&5
17433 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17434 (exit $ac_status); }; } &&
17435 { ac_try='test -s conftest$ac_exeext'
17436 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17437 (eval $ac_try) 2>&5
17439 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17440 (exit $ac_status); }; }; then
17441 eval "$as_ac_var=yes"
17443 echo "$as_me: failed program was:" >&5
17444 sed 's/^/| /' conftest.$ac_ext >&5
17446 eval "$as_ac_var=no"
17448 rm -f conftest.err conftest.$ac_objext \
17449 conftest$ac_exeext conftest.$ac_ext
17451 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
17452 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
17453 if test `eval echo '${'$as_ac_var'}'` = yes; then
17454 cat >>confdefs.h <<_ACEOF
17455 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
17462 # Check the return and argument types of ptrace. No canned test for
17463 # this, so roll our own.
17464 gdb_ptrace_headers='
17465 #if HAVE_SYS_TYPES_H
17466 # include <sys/types.h>
17468 #if HAVE_SYS_PTRACE_H
17469 # include <sys/ptrace.h>
17472 # include <unistd.h>
17475 # There is no point in checking if we don't have a prototype.
17476 echo "$as_me:$LINENO: checking whether ptrace is declared" >&5
17477 echo $ECHO_N "checking whether ptrace is declared... $ECHO_C" >&6
17478 if test "${ac_cv_have_decl_ptrace+set}" = set; then
17479 echo $ECHO_N "(cached) $ECHO_C" >&6
17481 cat >conftest.$ac_ext <<_ACEOF
17484 cat confdefs.h >>conftest.$ac_ext
17485 cat >>conftest.$ac_ext <<_ACEOF
17486 /* end confdefs.h. */
17487 $gdb_ptrace_headers
17493 char *p = (char *) ptrace;
17500 rm -f conftest.$ac_objext
17501 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
17502 (eval $ac_compile) 2>conftest.er1
17504 grep -v '^ *+' conftest.er1 >conftest.err
17506 cat conftest.err >&5
17507 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17508 (exit $ac_status); } &&
17509 { ac_try='test -z "$ac_c_werror_flag"
17510 || test ! -s conftest.err'
17511 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17512 (eval $ac_try) 2>&5
17514 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17515 (exit $ac_status); }; } &&
17516 { ac_try='test -s conftest.$ac_objext'
17517 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17518 (eval $ac_try) 2>&5
17520 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17521 (exit $ac_status); }; }; then
17522 ac_cv_have_decl_ptrace=yes
17524 echo "$as_me: failed program was:" >&5
17525 sed 's/^/| /' conftest.$ac_ext >&5
17527 ac_cv_have_decl_ptrace=no
17529 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
17531 echo "$as_me:$LINENO: result: $ac_cv_have_decl_ptrace" >&5
17532 echo "${ECHO_T}$ac_cv_have_decl_ptrace" >&6
17533 if test $ac_cv_have_decl_ptrace = yes; then
17535 cat >>confdefs.h <<_ACEOF
17536 #define HAVE_DECL_PTRACE 1
17541 cat >>confdefs.h <<_ACEOF
17542 #define HAVE_DECL_PTRACE 0
17546 : ${gdb_cv_func_ptrace_ret='int'}
17547 : ${gdb_cv_func_ptrace_args='int,int,long,long'}
17552 # Check return type.
17553 echo "$as_me:$LINENO: checking return type of ptrace" >&5
17554 echo $ECHO_N "checking return type of ptrace... $ECHO_C" >&6
17555 if test "${gdb_cv_func_ptrace_ret+set}" = set; then
17556 echo $ECHO_N "(cached) $ECHO_C" >&6
17558 cat >conftest.$ac_ext <<_ACEOF
17561 cat confdefs.h >>conftest.$ac_ext
17562 cat >>conftest.$ac_ext <<_ACEOF
17563 /* end confdefs.h. */
17564 $gdb_ptrace_headers
17568 extern int ptrace ();
17573 rm -f conftest.$ac_objext
17574 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
17575 (eval $ac_compile) 2>conftest.er1
17577 grep -v '^ *+' conftest.er1 >conftest.err
17579 cat conftest.err >&5
17580 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17581 (exit $ac_status); } &&
17582 { ac_try='test -z "$ac_c_werror_flag"
17583 || test ! -s conftest.err'
17584 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17585 (eval $ac_try) 2>&5
17587 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17588 (exit $ac_status); }; } &&
17589 { ac_try='test -s conftest.$ac_objext'
17590 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17591 (eval $ac_try) 2>&5
17593 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17594 (exit $ac_status); }; }; then
17595 gdb_cv_func_ptrace_ret='int'
17597 echo "$as_me: failed program was:" >&5
17598 sed 's/^/| /' conftest.$ac_ext >&5
17600 gdb_cv_func_ptrace_ret='long'
17602 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
17604 echo "$as_me:$LINENO: result: $gdb_cv_func_ptrace_ret" >&5
17605 echo "${ECHO_T}$gdb_cv_func_ptrace_ret" >&6
17607 cat >>confdefs.h <<_ACEOF
17608 #define PTRACE_TYPE_RET $gdb_cv_func_ptrace_ret
17611 # Check argument types.
17612 echo "$as_me:$LINENO: checking types of arguments for ptrace" >&5
17613 echo $ECHO_N "checking types of arguments for ptrace... $ECHO_C" >&6
17614 if test "${gdb_cv_func_ptrace_args+set}" = set; then
17615 echo $ECHO_N "(cached) $ECHO_C" >&6
17618 for gdb_arg1 in 'int' 'long'; do
17619 for gdb_arg2 in 'pid_t' 'int' 'long'; do
17620 for gdb_arg3 in 'int *' 'caddr_t' 'int' 'long'; do
17621 for gdb_arg4 in 'int' 'long'; do
17622 cat >conftest.$ac_ext <<_ACEOF
17625 cat confdefs.h >>conftest.$ac_ext
17626 cat >>conftest.$ac_ext <<_ACEOF
17627 /* end confdefs.h. */
17628 $gdb_ptrace_headers
17633 extern $gdb_cv_func_ptrace_ret
17634 ptrace ($gdb_arg1, $gdb_arg2, $gdb_arg3, $gdb_arg4);
17640 rm -f conftest.$ac_objext
17641 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
17642 (eval $ac_compile) 2>conftest.er1
17644 grep -v '^ *+' conftest.er1 >conftest.err
17646 cat conftest.err >&5
17647 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17648 (exit $ac_status); } &&
17649 { ac_try='test -z "$ac_c_werror_flag"
17650 || test ! -s conftest.err'
17651 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17652 (eval $ac_try) 2>&5
17654 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17655 (exit $ac_status); }; } &&
17656 { ac_try='test -s conftest.$ac_objext'
17657 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17658 (eval $ac_try) 2>&5
17660 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17661 (exit $ac_status); }; }; then
17662 gdb_cv_func_ptrace_args="$gdb_arg1,$gdb_arg2,$gdb_arg3,$gdb_arg4";
17665 echo "$as_me: failed program was:" >&5
17666 sed 's/^/| /' conftest.$ac_ext >&5
17669 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
17670 for gdb_arg5 in 'int *' 'int' 'long'; do
17671 cat >conftest.$ac_ext <<_ACEOF
17674 cat confdefs.h >>conftest.$ac_ext
17675 cat >>conftest.$ac_ext <<_ACEOF
17676 /* end confdefs.h. */
17677 $gdb_ptrace_headers
17682 extern $gdb_cv_func_ptrace_ret
17683 ptrace ($gdb_arg1, $gdb_arg2, $gdb_arg3, $gdb_arg4, $gdb_arg5);
17689 rm -f conftest.$ac_objext
17690 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
17691 (eval $ac_compile) 2>conftest.er1
17693 grep -v '^ *+' conftest.er1 >conftest.err
17695 cat conftest.err >&5
17696 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17697 (exit $ac_status); } &&
17698 { ac_try='test -z "$ac_c_werror_flag"
17699 || test ! -s conftest.err'
17700 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17701 (eval $ac_try) 2>&5
17703 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17704 (exit $ac_status); }; } &&
17705 { ac_try='test -s conftest.$ac_objext'
17706 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17707 (eval $ac_try) 2>&5
17709 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17710 (exit $ac_status); }; }; then
17712 gdb_cv_func_ptrace_args="$gdb_arg1,$gdb_arg2,$gdb_arg3,$gdb_arg4,$gdb_arg5";
17715 echo "$as_me: failed program was:" >&5
17716 sed 's/^/| /' conftest.$ac_ext >&5
17719 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
17725 # Provide a safe default value.
17726 : ${gdb_cv_func_ptrace_args='int,int,long,long'}
17729 echo "$as_me:$LINENO: result: $gdb_cv_func_ptrace_args" >&5
17730 echo "${ECHO_T}$gdb_cv_func_ptrace_args" >&6
17731 ac_save_IFS=$IFS; IFS=','
17732 set dummy `echo "$gdb_cv_func_ptrace_args" | sed 's/\*/\*/g'`
17736 cat >>confdefs.h <<_ACEOF
17737 #define PTRACE_TYPE_ARG3 $3
17740 if test -n "$5"; then
17742 cat >>confdefs.h <<_ACEOF
17743 #define PTRACE_TYPE_ARG5 $5
17748 if test "$cross_compiling" = no; then
17749 echo "$as_me:$LINENO: checking whether setpgrp takes no argument" >&5
17750 echo $ECHO_N "checking whether setpgrp takes no argument... $ECHO_C" >&6
17751 if test "${ac_cv_func_setpgrp_void+set}" = set; then
17752 echo $ECHO_N "(cached) $ECHO_C" >&6
17754 if test "$cross_compiling" = yes; then
17755 { { echo "$as_me:$LINENO: error: cannot check setpgrp when cross compiling" >&5
17756 echo "$as_me: error: cannot check setpgrp when cross compiling" >&2;}
17757 { (exit 1); exit 1; }; }
17759 cat >conftest.$ac_ext <<_ACEOF
17762 cat confdefs.h >>conftest.$ac_ext
17763 cat >>conftest.$ac_ext <<_ACEOF
17764 /* end confdefs.h. */
17766 # include <unistd.h>
17772 /* If this system has a BSD-style setpgrp which takes arguments,
17773 setpgrp(1, 1) will fail with ESRCH and return -1, in that case
17774 exit successfully. */
17775 exit (setpgrp (1,1) == -1 ? 0 : 1);
17780 rm -f conftest$ac_exeext
17781 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
17782 (eval $ac_link) 2>&5
17784 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17785 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
17786 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17787 (eval $ac_try) 2>&5
17789 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17790 (exit $ac_status); }; }; then
17791 ac_cv_func_setpgrp_void=no
17793 echo "$as_me: program exited with status $ac_status" >&5
17794 echo "$as_me: failed program was:" >&5
17795 sed 's/^/| /' conftest.$ac_ext >&5
17797 ( exit $ac_status )
17798 ac_cv_func_setpgrp_void=yes
17800 rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
17803 echo "$as_me:$LINENO: result: $ac_cv_func_setpgrp_void" >&5
17804 echo "${ECHO_T}$ac_cv_func_setpgrp_void" >&6
17805 if test $ac_cv_func_setpgrp_void = yes; then
17807 cat >>confdefs.h <<\_ACEOF
17808 #define SETPGRP_VOID 1
17814 echo "$as_me:$LINENO: checking whether setpgrp takes no argument" >&5
17815 echo $ECHO_N "checking whether setpgrp takes no argument... $ECHO_C" >&6
17816 if test "${ac_cv_func_setpgrp_void+set}" = set; then
17817 echo $ECHO_N "(cached) $ECHO_C" >&6
17819 cat >conftest.$ac_ext <<_ACEOF
17822 cat confdefs.h >>conftest.$ac_ext
17823 cat >>conftest.$ac_ext <<_ACEOF
17824 /* end confdefs.h. */
17826 #include <unistd.h>
17832 if (setpgrp(1,1) == -1)
17841 rm -f conftest.$ac_objext
17842 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
17843 (eval $ac_compile) 2>conftest.er1
17845 grep -v '^ *+' conftest.er1 >conftest.err
17847 cat conftest.err >&5
17848 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17849 (exit $ac_status); } &&
17850 { ac_try='test -z "$ac_c_werror_flag"
17851 || test ! -s conftest.err'
17852 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17853 (eval $ac_try) 2>&5
17855 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17856 (exit $ac_status); }; } &&
17857 { ac_try='test -s conftest.$ac_objext'
17858 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17859 (eval $ac_try) 2>&5
17861 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17862 (exit $ac_status); }; }; then
17863 ac_cv_func_setpgrp_void=no
17865 echo "$as_me: failed program was:" >&5
17866 sed 's/^/| /' conftest.$ac_ext >&5
17868 ac_cv_func_setpgrp_void=yes
17870 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
17872 echo "$as_me:$LINENO: result: $ac_cv_func_setpgrp_void" >&5
17873 echo "${ECHO_T}$ac_cv_func_setpgrp_void" >&6
17874 if test $ac_cv_func_setpgrp_void = yes; then
17875 cat >>confdefs.h <<\_ACEOF
17876 #define SETPGRP_VOID 1
17882 # Check if sigsetjmp is available. Using AC_CHECK_FUNCS won't do
17883 # since sigsetjmp might only be defined as a macro.
17884 echo "$as_me:$LINENO: checking for sigsetjmp" >&5
17885 echo $ECHO_N "checking for sigsetjmp... $ECHO_C" >&6
17886 if test "${gdb_cv_func_sigsetjmp+set}" = set; then
17887 echo $ECHO_N "(cached) $ECHO_C" >&6
17889 cat >conftest.$ac_ext <<_ACEOF
17892 cat confdefs.h >>conftest.$ac_ext
17893 cat >>conftest.$ac_ext <<_ACEOF
17894 /* end confdefs.h. */
17896 #include <setjmp.h>
17901 sigjmp_buf env; while (! sigsetjmp (env, 1)) siglongjmp (env, 1);
17906 rm -f conftest.$ac_objext
17907 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
17908 (eval $ac_compile) 2>conftest.er1
17910 grep -v '^ *+' conftest.er1 >conftest.err
17912 cat conftest.err >&5
17913 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17914 (exit $ac_status); } &&
17915 { ac_try='test -z "$ac_c_werror_flag"
17916 || test ! -s conftest.err'
17917 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17918 (eval $ac_try) 2>&5
17920 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17921 (exit $ac_status); }; } &&
17922 { ac_try='test -s conftest.$ac_objext'
17923 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17924 (eval $ac_try) 2>&5
17926 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17927 (exit $ac_status); }; }; then
17928 gdb_cv_func_sigsetjmp=yes
17930 echo "$as_me: failed program was:" >&5
17931 sed 's/^/| /' conftest.$ac_ext >&5
17933 gdb_cv_func_sigsetjmp=no
17935 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
17937 echo "$as_me:$LINENO: result: $gdb_cv_func_sigsetjmp" >&5
17938 echo "${ECHO_T}$gdb_cv_func_sigsetjmp" >&6
17939 if test $gdb_cv_func_sigsetjmp = yes; then
17941 cat >>confdefs.h <<\_ACEOF
17942 #define HAVE_SIGSETJMP 1
17947 # Assume we'll default to using the included libiberty regex.
17948 gdb_use_included_regex=yes
17950 # However, if the system regex is GNU regex, then default to *not*
17951 # using the included regex.
17952 echo "$as_me:$LINENO: checking for GNU regex" >&5
17953 echo $ECHO_N "checking for GNU regex... $ECHO_C" >&6
17954 if test "${gdb_cv_have_gnu_regex+set}" = set; then
17955 echo $ECHO_N "(cached) $ECHO_C" >&6
17957 cat >conftest.$ac_ext <<_ACEOF
17960 cat confdefs.h >>conftest.$ac_ext
17961 cat >>conftest.$ac_ext <<_ACEOF
17962 /* end confdefs.h. */
17963 #include <gnu-versions.h>
17967 #define REGEX_INTERFACE_VERSION 1
17968 #if _GNU_REGEX_INTERFACE_VERSION != REGEX_INTERFACE_VERSION
17969 # error "Version mismatch"
17975 rm -f conftest.$ac_objext
17976 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
17977 (eval $ac_compile) 2>conftest.er1
17979 grep -v '^ *+' conftest.er1 >conftest.err
17981 cat conftest.err >&5
17982 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17983 (exit $ac_status); } &&
17984 { ac_try='test -z "$ac_c_werror_flag"
17985 || test ! -s conftest.err'
17986 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17987 (eval $ac_try) 2>&5
17989 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17990 (exit $ac_status); }; } &&
17991 { ac_try='test -s conftest.$ac_objext'
17992 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17993 (eval $ac_try) 2>&5
17995 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17996 (exit $ac_status); }; }; then
17997 gdb_cv_have_gnu_regex=yes
17999 echo "$as_me: failed program was:" >&5
18000 sed 's/^/| /' conftest.$ac_ext >&5
18002 gdb_cv_have_gnu_regex=no
18004 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
18006 echo "$as_me:$LINENO: result: $gdb_cv_have_gnu_regex" >&5
18007 echo "${ECHO_T}$gdb_cv_have_gnu_regex" >&6
18008 if test $gdb_cv_have_gnu_regex = yes; then
18009 gdb_use_included_regex=no
18013 # Check whether --with-included-regex or --without-included-regex was given.
18014 if test "${with_included_regex+set}" = set; then
18015 withval="$with_included_regex"
18016 gdb_with_regex=$withval
18018 gdb_with_regex=$gdb_use_included_regex
18020 if test "$gdb_with_regex" = yes; then
18022 cat >>confdefs.h <<\_ACEOF
18023 #define USE_INCLUDED_REGEX 1
18028 # Check if <sys/proc.h> defines `struct thread' with a td_pcb member.
18029 echo "$as_me:$LINENO: checking for struct thread.td_pcb" >&5
18030 echo $ECHO_N "checking for struct thread.td_pcb... $ECHO_C" >&6
18031 if test "${ac_cv_member_struct_thread_td_pcb+set}" = set; then
18032 echo $ECHO_N "(cached) $ECHO_C" >&6
18034 cat >conftest.$ac_ext <<_ACEOF
18037 cat confdefs.h >>conftest.$ac_ext
18038 cat >>conftest.$ac_ext <<_ACEOF
18039 /* end confdefs.h. */
18040 #include <sys/param.h>
18041 #include <sys/proc.h>
18047 static struct thread ac_aggr;
18048 if (ac_aggr.td_pcb)
18054 rm -f conftest.$ac_objext
18055 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
18056 (eval $ac_compile) 2>conftest.er1
18058 grep -v '^ *+' conftest.er1 >conftest.err
18060 cat conftest.err >&5
18061 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18062 (exit $ac_status); } &&
18063 { ac_try='test -z "$ac_c_werror_flag"
18064 || test ! -s conftest.err'
18065 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18066 (eval $ac_try) 2>&5
18068 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18069 (exit $ac_status); }; } &&
18070 { ac_try='test -s conftest.$ac_objext'
18071 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18072 (eval $ac_try) 2>&5
18074 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18075 (exit $ac_status); }; }; then
18076 ac_cv_member_struct_thread_td_pcb=yes
18078 echo "$as_me: failed program was:" >&5
18079 sed 's/^/| /' conftest.$ac_ext >&5
18081 cat >conftest.$ac_ext <<_ACEOF
18084 cat confdefs.h >>conftest.$ac_ext
18085 cat >>conftest.$ac_ext <<_ACEOF
18086 /* end confdefs.h. */
18087 #include <sys/param.h>
18088 #include <sys/proc.h>
18094 static struct thread ac_aggr;
18095 if (sizeof ac_aggr.td_pcb)
18101 rm -f conftest.$ac_objext
18102 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
18103 (eval $ac_compile) 2>conftest.er1
18105 grep -v '^ *+' conftest.er1 >conftest.err
18107 cat conftest.err >&5
18108 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18109 (exit $ac_status); } &&
18110 { ac_try='test -z "$ac_c_werror_flag"
18111 || test ! -s conftest.err'
18112 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18113 (eval $ac_try) 2>&5
18115 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18116 (exit $ac_status); }; } &&
18117 { ac_try='test -s conftest.$ac_objext'
18118 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18119 (eval $ac_try) 2>&5
18121 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18122 (exit $ac_status); }; }; then
18123 ac_cv_member_struct_thread_td_pcb=yes
18125 echo "$as_me: failed program was:" >&5
18126 sed 's/^/| /' conftest.$ac_ext >&5
18128 ac_cv_member_struct_thread_td_pcb=no
18130 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
18132 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
18134 echo "$as_me:$LINENO: result: $ac_cv_member_struct_thread_td_pcb" >&5
18135 echo "${ECHO_T}$ac_cv_member_struct_thread_td_pcb" >&6
18136 if test $ac_cv_member_struct_thread_td_pcb = yes; then
18138 cat >>confdefs.h <<_ACEOF
18139 #define HAVE_STRUCT_THREAD_TD_PCB 1
18146 # See if <sys/lwp.h> defines `struct lwp`.
18147 echo "$as_me:$LINENO: checking for struct lwp" >&5
18148 echo $ECHO_N "checking for struct lwp... $ECHO_C" >&6
18149 if test "${gdb_cv_struct_lwp+set}" = set; then
18150 echo $ECHO_N "(cached) $ECHO_C" >&6
18152 cat >conftest.$ac_ext <<_ACEOF
18155 cat confdefs.h >>conftest.$ac_ext
18156 cat >>conftest.$ac_ext <<_ACEOF
18157 /* end confdefs.h. */
18158 #include <sys/param.h>
18159 #include <sys/lwp.h>
18168 rm -f conftest.$ac_objext
18169 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
18170 (eval $ac_compile) 2>conftest.er1
18172 grep -v '^ *+' conftest.er1 >conftest.err
18174 cat conftest.err >&5
18175 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18176 (exit $ac_status); } &&
18177 { ac_try='test -z "$ac_c_werror_flag"
18178 || test ! -s conftest.err'
18179 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18180 (eval $ac_try) 2>&5
18182 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18183 (exit $ac_status); }; } &&
18184 { ac_try='test -s conftest.$ac_objext'
18185 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18186 (eval $ac_try) 2>&5
18188 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18189 (exit $ac_status); }; }; then
18190 gdb_cv_struct_lwp=yes
18192 echo "$as_me: failed program was:" >&5
18193 sed 's/^/| /' conftest.$ac_ext >&5
18195 gdb_cv_struct_lwp=no
18197 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
18199 echo "$as_me:$LINENO: result: $gdb_cv_struct_lwp" >&5
18200 echo "${ECHO_T}$gdb_cv_struct_lwp" >&6
18201 if test $gdb_cv_struct_lwp = yes; then
18203 cat >>confdefs.h <<\_ACEOF
18204 #define HAVE_STRUCT_LWP 1
18209 # See if <machine/reg.h> degines `struct reg'.
18210 echo "$as_me:$LINENO: checking for struct reg in machine/reg.h" >&5
18211 echo $ECHO_N "checking for struct reg in machine/reg.h... $ECHO_C" >&6
18212 if test "${gdb_cv_struct_reg+set}" = set; then
18213 echo $ECHO_N "(cached) $ECHO_C" >&6
18215 cat >conftest.$ac_ext <<_ACEOF
18218 cat confdefs.h >>conftest.$ac_ext
18219 cat >>conftest.$ac_ext <<_ACEOF
18220 /* end confdefs.h. */
18221 #include <sys/types.h>
18222 #include <machine/reg.h>
18231 rm -f conftest.$ac_objext
18232 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
18233 (eval $ac_compile) 2>conftest.er1
18235 grep -v '^ *+' conftest.er1 >conftest.err
18237 cat conftest.err >&5
18238 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18239 (exit $ac_status); } &&
18240 { ac_try='test -z "$ac_c_werror_flag"
18241 || test ! -s conftest.err'
18242 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18243 (eval $ac_try) 2>&5
18245 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18246 (exit $ac_status); }; } &&
18247 { ac_try='test -s conftest.$ac_objext'
18248 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18249 (eval $ac_try) 2>&5
18251 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18252 (exit $ac_status); }; }; then
18253 gdb_cv_struct_reg=yes
18255 echo "$as_me: failed program was:" >&5
18256 sed 's/^/| /' conftest.$ac_ext >&5
18258 gdb_cv_struct_reg=no
18260 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
18262 echo "$as_me:$LINENO: result: $gdb_cv_struct_reg" >&5
18263 echo "${ECHO_T}$gdb_cv_struct_reg" >&6
18264 if test $gdb_cv_struct_reg = yes; then
18266 cat >>confdefs.h <<\_ACEOF
18267 #define HAVE_STRUCT_REG 1
18272 # See if <machine/reg.h> supports the %fs and %gs i386 segment registers.
18273 # Older i386 BSD's don't have the r_fs and r_gs members of `struct reg'.
18274 echo "$as_me:$LINENO: checking for struct reg.r_fs" >&5
18275 echo $ECHO_N "checking for struct reg.r_fs... $ECHO_C" >&6
18276 if test "${ac_cv_member_struct_reg_r_fs+set}" = set; then
18277 echo $ECHO_N "(cached) $ECHO_C" >&6
18279 cat >conftest.$ac_ext <<_ACEOF
18282 cat confdefs.h >>conftest.$ac_ext
18283 cat >>conftest.$ac_ext <<_ACEOF
18284 /* end confdefs.h. */
18285 #include <machine/reg.h>
18290 static struct reg ac_aggr;
18297 rm -f conftest.$ac_objext
18298 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
18299 (eval $ac_compile) 2>conftest.er1
18301 grep -v '^ *+' conftest.er1 >conftest.err
18303 cat conftest.err >&5
18304 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18305 (exit $ac_status); } &&
18306 { ac_try='test -z "$ac_c_werror_flag"
18307 || test ! -s conftest.err'
18308 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18309 (eval $ac_try) 2>&5
18311 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18312 (exit $ac_status); }; } &&
18313 { ac_try='test -s conftest.$ac_objext'
18314 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18315 (eval $ac_try) 2>&5
18317 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18318 (exit $ac_status); }; }; then
18319 ac_cv_member_struct_reg_r_fs=yes
18321 echo "$as_me: failed program was:" >&5
18322 sed 's/^/| /' conftest.$ac_ext >&5
18324 cat >conftest.$ac_ext <<_ACEOF
18327 cat confdefs.h >>conftest.$ac_ext
18328 cat >>conftest.$ac_ext <<_ACEOF
18329 /* end confdefs.h. */
18330 #include <machine/reg.h>
18335 static struct reg ac_aggr;
18336 if (sizeof ac_aggr.r_fs)
18342 rm -f conftest.$ac_objext
18343 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
18344 (eval $ac_compile) 2>conftest.er1
18346 grep -v '^ *+' conftest.er1 >conftest.err
18348 cat conftest.err >&5
18349 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18350 (exit $ac_status); } &&
18351 { ac_try='test -z "$ac_c_werror_flag"
18352 || test ! -s conftest.err'
18353 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18354 (eval $ac_try) 2>&5
18356 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18357 (exit $ac_status); }; } &&
18358 { ac_try='test -s conftest.$ac_objext'
18359 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18360 (eval $ac_try) 2>&5
18362 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18363 (exit $ac_status); }; }; then
18364 ac_cv_member_struct_reg_r_fs=yes
18366 echo "$as_me: failed program was:" >&5
18367 sed 's/^/| /' conftest.$ac_ext >&5
18369 ac_cv_member_struct_reg_r_fs=no
18371 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
18373 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
18375 echo "$as_me:$LINENO: result: $ac_cv_member_struct_reg_r_fs" >&5
18376 echo "${ECHO_T}$ac_cv_member_struct_reg_r_fs" >&6
18377 if test $ac_cv_member_struct_reg_r_fs = yes; then
18379 cat >>confdefs.h <<_ACEOF
18380 #define HAVE_STRUCT_REG_R_FS 1
18385 echo "$as_me:$LINENO: checking for struct reg.r_gs" >&5
18386 echo $ECHO_N "checking for struct reg.r_gs... $ECHO_C" >&6
18387 if test "${ac_cv_member_struct_reg_r_gs+set}" = set; then
18388 echo $ECHO_N "(cached) $ECHO_C" >&6
18390 cat >conftest.$ac_ext <<_ACEOF
18393 cat confdefs.h >>conftest.$ac_ext
18394 cat >>conftest.$ac_ext <<_ACEOF
18395 /* end confdefs.h. */
18396 #include <machine/reg.h>
18401 static struct reg ac_aggr;
18408 rm -f conftest.$ac_objext
18409 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
18410 (eval $ac_compile) 2>conftest.er1
18412 grep -v '^ *+' conftest.er1 >conftest.err
18414 cat conftest.err >&5
18415 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18416 (exit $ac_status); } &&
18417 { ac_try='test -z "$ac_c_werror_flag"
18418 || test ! -s conftest.err'
18419 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18420 (eval $ac_try) 2>&5
18422 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18423 (exit $ac_status); }; } &&
18424 { ac_try='test -s conftest.$ac_objext'
18425 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18426 (eval $ac_try) 2>&5
18428 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18429 (exit $ac_status); }; }; then
18430 ac_cv_member_struct_reg_r_gs=yes
18432 echo "$as_me: failed program was:" >&5
18433 sed 's/^/| /' conftest.$ac_ext >&5
18435 cat >conftest.$ac_ext <<_ACEOF
18438 cat confdefs.h >>conftest.$ac_ext
18439 cat >>conftest.$ac_ext <<_ACEOF
18440 /* end confdefs.h. */
18441 #include <machine/reg.h>
18446 static struct reg ac_aggr;
18447 if (sizeof ac_aggr.r_gs)
18453 rm -f conftest.$ac_objext
18454 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
18455 (eval $ac_compile) 2>conftest.er1
18457 grep -v '^ *+' conftest.er1 >conftest.err
18459 cat conftest.err >&5
18460 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18461 (exit $ac_status); } &&
18462 { ac_try='test -z "$ac_c_werror_flag"
18463 || test ! -s conftest.err'
18464 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18465 (eval $ac_try) 2>&5
18467 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18468 (exit $ac_status); }; } &&
18469 { ac_try='test -s conftest.$ac_objext'
18470 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18471 (eval $ac_try) 2>&5
18473 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18474 (exit $ac_status); }; }; then
18475 ac_cv_member_struct_reg_r_gs=yes
18477 echo "$as_me: failed program was:" >&5
18478 sed 's/^/| /' conftest.$ac_ext >&5
18480 ac_cv_member_struct_reg_r_gs=no
18482 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
18484 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
18486 echo "$as_me:$LINENO: result: $ac_cv_member_struct_reg_r_gs" >&5
18487 echo "${ECHO_T}$ac_cv_member_struct_reg_r_gs" >&6
18488 if test $ac_cv_member_struct_reg_r_gs = yes; then
18490 cat >>confdefs.h <<_ACEOF
18491 #define HAVE_STRUCT_REG_R_GS 1
18498 # See if <sys/ptrace.h> provides the PTRACE_GETREGS request.
18499 echo "$as_me:$LINENO: checking for PTRACE_GETREGS" >&5
18500 echo $ECHO_N "checking for PTRACE_GETREGS... $ECHO_C" >&6
18501 if test "${gdb_cv_have_ptrace_getregs+set}" = set; then
18502 echo $ECHO_N "(cached) $ECHO_C" >&6
18504 cat >conftest.$ac_ext <<_ACEOF
18507 cat confdefs.h >>conftest.$ac_ext
18508 cat >>conftest.$ac_ext <<_ACEOF
18509 /* end confdefs.h. */
18510 #include <sys/ptrace.h>
18519 rm -f conftest.$ac_objext
18520 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
18521 (eval $ac_compile) 2>conftest.er1
18523 grep -v '^ *+' conftest.er1 >conftest.err
18525 cat conftest.err >&5
18526 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18527 (exit $ac_status); } &&
18528 { ac_try='test -z "$ac_c_werror_flag"
18529 || test ! -s conftest.err'
18530 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18531 (eval $ac_try) 2>&5
18533 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18534 (exit $ac_status); }; } &&
18535 { ac_try='test -s conftest.$ac_objext'
18536 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18537 (eval $ac_try) 2>&5
18539 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18540 (exit $ac_status); }; }; then
18541 gdb_cv_have_ptrace_getregs=yes
18543 echo "$as_me: failed program was:" >&5
18544 sed 's/^/| /' conftest.$ac_ext >&5
18546 gdb_cv_have_ptrace_getregs=no
18548 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
18551 echo "$as_me:$LINENO: result: $gdb_cv_have_ptrace_getregs" >&5
18552 echo "${ECHO_T}$gdb_cv_have_ptrace_getregs" >&6
18553 if test $gdb_cv_have_ptrace_getregs = yes; then
18555 cat >>confdefs.h <<\_ACEOF
18556 #define HAVE_PTRACE_GETREGS 1
18561 # See if <sys/ptrace.h> provides the PTRACE_GETFPXREGS request.
18562 echo "$as_me:$LINENO: checking for PTRACE_GETFPXREGS" >&5
18563 echo $ECHO_N "checking for PTRACE_GETFPXREGS... $ECHO_C" >&6
18564 if test "${gdb_cv_have_ptrace_getfpxregs+set}" = set; then
18565 echo $ECHO_N "(cached) $ECHO_C" >&6
18567 cat >conftest.$ac_ext <<_ACEOF
18570 cat confdefs.h >>conftest.$ac_ext
18571 cat >>conftest.$ac_ext <<_ACEOF
18572 /* end confdefs.h. */
18573 #include <sys/ptrace.h>
18582 rm -f conftest.$ac_objext
18583 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
18584 (eval $ac_compile) 2>conftest.er1
18586 grep -v '^ *+' conftest.er1 >conftest.err
18588 cat conftest.err >&5
18589 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18590 (exit $ac_status); } &&
18591 { ac_try='test -z "$ac_c_werror_flag"
18592 || test ! -s conftest.err'
18593 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18594 (eval $ac_try) 2>&5
18596 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18597 (exit $ac_status); }; } &&
18598 { ac_try='test -s conftest.$ac_objext'
18599 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18600 (eval $ac_try) 2>&5
18602 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18603 (exit $ac_status); }; }; then
18604 gdb_cv_have_ptrace_getfpxregs=yes
18606 echo "$as_me: failed program was:" >&5
18607 sed 's/^/| /' conftest.$ac_ext >&5
18609 gdb_cv_have_ptrace_getfpxregs=no
18611 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
18614 echo "$as_me:$LINENO: result: $gdb_cv_have_ptrace_getfpxregs" >&5
18615 echo "${ECHO_T}$gdb_cv_have_ptrace_getfpxregs" >&6
18616 if test $gdb_cv_have_ptrace_getfpxregs = yes; then
18618 cat >>confdefs.h <<\_ACEOF
18619 #define HAVE_PTRACE_GETFPXREGS 1
18624 # See if <sys/ptrace.h> provides the PT_GETDBREGS request.
18625 echo "$as_me:$LINENO: checking for PT_GETDBREGS" >&5
18626 echo $ECHO_N "checking for PT_GETDBREGS... $ECHO_C" >&6
18627 if test "${gdb_cv_have_pt_getdbregs+set}" = set; then
18628 echo $ECHO_N "(cached) $ECHO_C" >&6
18630 cat >conftest.$ac_ext <<_ACEOF
18633 cat confdefs.h >>conftest.$ac_ext
18634 cat >>conftest.$ac_ext <<_ACEOF
18635 /* end confdefs.h. */
18636 #include <sys/types.h>
18637 #include <sys/ptrace.h>
18646 rm -f conftest.$ac_objext
18647 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
18648 (eval $ac_compile) 2>conftest.er1
18650 grep -v '^ *+' conftest.er1 >conftest.err
18652 cat conftest.err >&5
18653 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18654 (exit $ac_status); } &&
18655 { ac_try='test -z "$ac_c_werror_flag"
18656 || test ! -s conftest.err'
18657 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18658 (eval $ac_try) 2>&5
18660 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18661 (exit $ac_status); }; } &&
18662 { ac_try='test -s conftest.$ac_objext'
18663 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18664 (eval $ac_try) 2>&5
18666 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18667 (exit $ac_status); }; }; then
18668 gdb_cv_have_pt_getdbregs=yes
18670 echo "$as_me: failed program was:" >&5
18671 sed 's/^/| /' conftest.$ac_ext >&5
18673 gdb_cv_have_pt_getdbregs=no
18675 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
18678 echo "$as_me:$LINENO: result: $gdb_cv_have_pt_getdbregs" >&5
18679 echo "${ECHO_T}$gdb_cv_have_pt_getdbregs" >&6
18680 if test $gdb_cv_have_pt_getdbregs = yes; then
18682 cat >>confdefs.h <<\_ACEOF
18683 #define HAVE_PT_GETDBREGS 1
18688 # See if <sys/ptrace.h> provides the PT_GETXMMREGS request.
18689 echo "$as_me:$LINENO: checking for PT_GETXMMREGS" >&5
18690 echo $ECHO_N "checking for PT_GETXMMREGS... $ECHO_C" >&6
18691 if test "${gdb_cv_have_pt_getxmmregs+set}" = set; then
18692 echo $ECHO_N "(cached) $ECHO_C" >&6
18694 cat >conftest.$ac_ext <<_ACEOF
18697 cat confdefs.h >>conftest.$ac_ext
18698 cat >>conftest.$ac_ext <<_ACEOF
18699 /* end confdefs.h. */
18700 #include <sys/types.h>
18701 #include <sys/ptrace.h>
18710 rm -f conftest.$ac_objext
18711 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
18712 (eval $ac_compile) 2>conftest.er1
18714 grep -v '^ *+' conftest.er1 >conftest.err
18716 cat conftest.err >&5
18717 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18718 (exit $ac_status); } &&
18719 { ac_try='test -z "$ac_c_werror_flag"
18720 || test ! -s conftest.err'
18721 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18722 (eval $ac_try) 2>&5
18724 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18725 (exit $ac_status); }; } &&
18726 { ac_try='test -s conftest.$ac_objext'
18727 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18728 (eval $ac_try) 2>&5
18730 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18731 (exit $ac_status); }; }; then
18732 gdb_cv_have_pt_getxmmregs=yes
18734 echo "$as_me: failed program was:" >&5
18735 sed 's/^/| /' conftest.$ac_ext >&5
18737 gdb_cv_have_pt_getxmmregs=no
18739 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
18742 echo "$as_me:$LINENO: result: $gdb_cv_have_pt_getxmmregs" >&5
18743 echo "${ECHO_T}$gdb_cv_have_pt_getxmmregs" >&6
18744 if test $gdb_cv_have_pt_getxmmregs = yes; then
18746 cat >>confdefs.h <<\_ACEOF
18747 #define HAVE_PT_GETXMMREGS 1
18752 # If we are configured native on GNU/Linux, work around problems with
18754 # Also detect which type of /proc is in use, such as for Unixware or Solaris.
18756 if test "${target}" = "${host}"; then
18758 i[3456]86-*-linux*)
18760 cat >>confdefs.h <<\_ACEOF
18761 #define START_INFERIOR_TRAPS_EXPECTED 2
18765 cat >>confdefs.h <<\_ACEOF
18766 #define sys_quotactl 1
18770 *-*-unixware* | *-*-sysv4.2* | *-*-sysv5* | *-*-interix* )
18772 cat >>confdefs.h <<\_ACEOF
18773 #define NEW_PROC_API 1
18777 *-*-solaris2.[6789] | *-*-solaris2.1[0-9])
18779 cat >>confdefs.h <<\_ACEOF
18780 #define NEW_PROC_API 1
18785 # Work around <sys/proc.h> needing _KMEMUSER problem on IRIX 5.
18787 cat >>confdefs.h <<\_ACEOF
18788 #define _KMEMUSER 1
18795 if test "$ac_cv_header_sys_procfs_h" = yes; then
18796 echo "$as_me:$LINENO: checking for pstatus_t in sys/procfs.h" >&5
18797 echo $ECHO_N "checking for pstatus_t in sys/procfs.h... $ECHO_C" >&6
18798 if test "${bfd_cv_have_sys_procfs_type_pstatus_t+set}" = set; then
18799 echo $ECHO_N "(cached) $ECHO_C" >&6
18801 cat >conftest.$ac_ext <<_ACEOF
18804 cat confdefs.h >>conftest.$ac_ext
18805 cat >>conftest.$ac_ext <<_ACEOF
18806 /* end confdefs.h. */
18809 #include <sys/procfs.h>
18818 rm -f conftest.$ac_objext
18819 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
18820 (eval $ac_compile) 2>conftest.er1
18822 grep -v '^ *+' conftest.er1 >conftest.err
18824 cat conftest.err >&5
18825 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18826 (exit $ac_status); } &&
18827 { ac_try='test -z "$ac_c_werror_flag"
18828 || test ! -s conftest.err'
18829 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18830 (eval $ac_try) 2>&5
18832 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18833 (exit $ac_status); }; } &&
18834 { ac_try='test -s conftest.$ac_objext'
18835 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18836 (eval $ac_try) 2>&5
18838 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18839 (exit $ac_status); }; }; then
18840 bfd_cv_have_sys_procfs_type_pstatus_t=yes
18842 echo "$as_me: failed program was:" >&5
18843 sed 's/^/| /' conftest.$ac_ext >&5
18845 bfd_cv_have_sys_procfs_type_pstatus_t=no
18848 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
18851 if test $bfd_cv_have_sys_procfs_type_pstatus_t = yes; then
18853 cat >>confdefs.h <<\_ACEOF
18854 #define HAVE_PSTATUS_T 1
18858 echo "$as_me:$LINENO: result: $bfd_cv_have_sys_procfs_type_pstatus_t" >&5
18859 echo "${ECHO_T}$bfd_cv_have_sys_procfs_type_pstatus_t" >&6
18861 echo "$as_me:$LINENO: checking for prrun_t in sys/procfs.h" >&5
18862 echo $ECHO_N "checking for prrun_t in sys/procfs.h... $ECHO_C" >&6
18863 if test "${bfd_cv_have_sys_procfs_type_prrun_t+set}" = set; then
18864 echo $ECHO_N "(cached) $ECHO_C" >&6
18866 cat >conftest.$ac_ext <<_ACEOF
18869 cat confdefs.h >>conftest.$ac_ext
18870 cat >>conftest.$ac_ext <<_ACEOF
18871 /* end confdefs.h. */
18874 #include <sys/procfs.h>
18883 rm -f conftest.$ac_objext
18884 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
18885 (eval $ac_compile) 2>conftest.er1
18887 grep -v '^ *+' conftest.er1 >conftest.err
18889 cat conftest.err >&5
18890 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18891 (exit $ac_status); } &&
18892 { ac_try='test -z "$ac_c_werror_flag"
18893 || test ! -s conftest.err'
18894 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18895 (eval $ac_try) 2>&5
18897 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18898 (exit $ac_status); }; } &&
18899 { ac_try='test -s conftest.$ac_objext'
18900 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18901 (eval $ac_try) 2>&5
18903 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18904 (exit $ac_status); }; }; then
18905 bfd_cv_have_sys_procfs_type_prrun_t=yes
18907 echo "$as_me: failed program was:" >&5
18908 sed 's/^/| /' conftest.$ac_ext >&5
18910 bfd_cv_have_sys_procfs_type_prrun_t=no
18913 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
18916 if test $bfd_cv_have_sys_procfs_type_prrun_t = yes; then
18918 cat >>confdefs.h <<\_ACEOF
18919 #define HAVE_PRRUN_T 1
18923 echo "$as_me:$LINENO: result: $bfd_cv_have_sys_procfs_type_prrun_t" >&5
18924 echo "${ECHO_T}$bfd_cv_have_sys_procfs_type_prrun_t" >&6
18926 echo "$as_me:$LINENO: checking for gregset_t in sys/procfs.h" >&5
18927 echo $ECHO_N "checking for gregset_t in sys/procfs.h... $ECHO_C" >&6
18928 if test "${bfd_cv_have_sys_procfs_type_gregset_t+set}" = set; then
18929 echo $ECHO_N "(cached) $ECHO_C" >&6
18931 cat >conftest.$ac_ext <<_ACEOF
18934 cat confdefs.h >>conftest.$ac_ext
18935 cat >>conftest.$ac_ext <<_ACEOF
18936 /* end confdefs.h. */
18939 #include <sys/procfs.h>
18948 rm -f conftest.$ac_objext
18949 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
18950 (eval $ac_compile) 2>conftest.er1
18952 grep -v '^ *+' conftest.er1 >conftest.err
18954 cat conftest.err >&5
18955 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18956 (exit $ac_status); } &&
18957 { ac_try='test -z "$ac_c_werror_flag"
18958 || test ! -s conftest.err'
18959 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18960 (eval $ac_try) 2>&5
18962 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18963 (exit $ac_status); }; } &&
18964 { ac_try='test -s conftest.$ac_objext'
18965 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18966 (eval $ac_try) 2>&5
18968 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18969 (exit $ac_status); }; }; then
18970 bfd_cv_have_sys_procfs_type_gregset_t=yes
18972 echo "$as_me: failed program was:" >&5
18973 sed 's/^/| /' conftest.$ac_ext >&5
18975 bfd_cv_have_sys_procfs_type_gregset_t=no
18978 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
18981 if test $bfd_cv_have_sys_procfs_type_gregset_t = yes; then
18983 cat >>confdefs.h <<\_ACEOF
18984 #define HAVE_GREGSET_T 1
18988 echo "$as_me:$LINENO: result: $bfd_cv_have_sys_procfs_type_gregset_t" >&5
18989 echo "${ECHO_T}$bfd_cv_have_sys_procfs_type_gregset_t" >&6
18991 echo "$as_me:$LINENO: checking for fpregset_t in sys/procfs.h" >&5
18992 echo $ECHO_N "checking for fpregset_t in sys/procfs.h... $ECHO_C" >&6
18993 if test "${bfd_cv_have_sys_procfs_type_fpregset_t+set}" = set; then
18994 echo $ECHO_N "(cached) $ECHO_C" >&6
18996 cat >conftest.$ac_ext <<_ACEOF
18999 cat confdefs.h >>conftest.$ac_ext
19000 cat >>conftest.$ac_ext <<_ACEOF
19001 /* end confdefs.h. */
19004 #include <sys/procfs.h>
19013 rm -f conftest.$ac_objext
19014 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
19015 (eval $ac_compile) 2>conftest.er1
19017 grep -v '^ *+' conftest.er1 >conftest.err
19019 cat conftest.err >&5
19020 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19021 (exit $ac_status); } &&
19022 { ac_try='test -z "$ac_c_werror_flag"
19023 || test ! -s conftest.err'
19024 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19025 (eval $ac_try) 2>&5
19027 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19028 (exit $ac_status); }; } &&
19029 { ac_try='test -s conftest.$ac_objext'
19030 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19031 (eval $ac_try) 2>&5
19033 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19034 (exit $ac_status); }; }; then
19035 bfd_cv_have_sys_procfs_type_fpregset_t=yes
19037 echo "$as_me: failed program was:" >&5
19038 sed 's/^/| /' conftest.$ac_ext >&5
19040 bfd_cv_have_sys_procfs_type_fpregset_t=no
19043 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
19046 if test $bfd_cv_have_sys_procfs_type_fpregset_t = yes; then
19048 cat >>confdefs.h <<\_ACEOF
19049 #define HAVE_FPREGSET_T 1
19053 echo "$as_me:$LINENO: result: $bfd_cv_have_sys_procfs_type_fpregset_t" >&5
19054 echo "${ECHO_T}$bfd_cv_have_sys_procfs_type_fpregset_t" >&6
19056 echo "$as_me:$LINENO: checking for prgregset_t in sys/procfs.h" >&5
19057 echo $ECHO_N "checking for prgregset_t in sys/procfs.h... $ECHO_C" >&6
19058 if test "${bfd_cv_have_sys_procfs_type_prgregset_t+set}" = set; then
19059 echo $ECHO_N "(cached) $ECHO_C" >&6
19061 cat >conftest.$ac_ext <<_ACEOF
19064 cat confdefs.h >>conftest.$ac_ext
19065 cat >>conftest.$ac_ext <<_ACEOF
19066 /* end confdefs.h. */
19069 #include <sys/procfs.h>
19078 rm -f conftest.$ac_objext
19079 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
19080 (eval $ac_compile) 2>conftest.er1
19082 grep -v '^ *+' conftest.er1 >conftest.err
19084 cat conftest.err >&5
19085 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19086 (exit $ac_status); } &&
19087 { ac_try='test -z "$ac_c_werror_flag"
19088 || test ! -s conftest.err'
19089 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19090 (eval $ac_try) 2>&5
19092 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19093 (exit $ac_status); }; } &&
19094 { ac_try='test -s conftest.$ac_objext'
19095 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19096 (eval $ac_try) 2>&5
19098 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19099 (exit $ac_status); }; }; then
19100 bfd_cv_have_sys_procfs_type_prgregset_t=yes
19102 echo "$as_me: failed program was:" >&5
19103 sed 's/^/| /' conftest.$ac_ext >&5
19105 bfd_cv_have_sys_procfs_type_prgregset_t=no
19108 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
19111 if test $bfd_cv_have_sys_procfs_type_prgregset_t = yes; then
19113 cat >>confdefs.h <<\_ACEOF
19114 #define HAVE_PRGREGSET_T 1
19118 echo "$as_me:$LINENO: result: $bfd_cv_have_sys_procfs_type_prgregset_t" >&5
19119 echo "${ECHO_T}$bfd_cv_have_sys_procfs_type_prgregset_t" >&6
19121 echo "$as_me:$LINENO: checking for prfpregset_t in sys/procfs.h" >&5
19122 echo $ECHO_N "checking for prfpregset_t in sys/procfs.h... $ECHO_C" >&6
19123 if test "${bfd_cv_have_sys_procfs_type_prfpregset_t+set}" = set; then
19124 echo $ECHO_N "(cached) $ECHO_C" >&6
19126 cat >conftest.$ac_ext <<_ACEOF
19129 cat confdefs.h >>conftest.$ac_ext
19130 cat >>conftest.$ac_ext <<_ACEOF
19131 /* end confdefs.h. */
19134 #include <sys/procfs.h>
19143 rm -f conftest.$ac_objext
19144 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
19145 (eval $ac_compile) 2>conftest.er1
19147 grep -v '^ *+' conftest.er1 >conftest.err
19149 cat conftest.err >&5
19150 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19151 (exit $ac_status); } &&
19152 { ac_try='test -z "$ac_c_werror_flag"
19153 || test ! -s conftest.err'
19154 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19155 (eval $ac_try) 2>&5
19157 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19158 (exit $ac_status); }; } &&
19159 { ac_try='test -s conftest.$ac_objext'
19160 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19161 (eval $ac_try) 2>&5
19163 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19164 (exit $ac_status); }; }; then
19165 bfd_cv_have_sys_procfs_type_prfpregset_t=yes
19167 echo "$as_me: failed program was:" >&5
19168 sed 's/^/| /' conftest.$ac_ext >&5
19170 bfd_cv_have_sys_procfs_type_prfpregset_t=no
19173 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
19176 if test $bfd_cv_have_sys_procfs_type_prfpregset_t = yes; then
19178 cat >>confdefs.h <<\_ACEOF
19179 #define HAVE_PRFPREGSET_T 1
19183 echo "$as_me:$LINENO: result: $bfd_cv_have_sys_procfs_type_prfpregset_t" >&5
19184 echo "${ECHO_T}$bfd_cv_have_sys_procfs_type_prfpregset_t" >&6
19186 echo "$as_me:$LINENO: checking for prgregset32_t in sys/procfs.h" >&5
19187 echo $ECHO_N "checking for prgregset32_t in sys/procfs.h... $ECHO_C" >&6
19188 if test "${bfd_cv_have_sys_procfs_type_prgregset32_t+set}" = set; then
19189 echo $ECHO_N "(cached) $ECHO_C" >&6
19191 cat >conftest.$ac_ext <<_ACEOF
19194 cat confdefs.h >>conftest.$ac_ext
19195 cat >>conftest.$ac_ext <<_ACEOF
19196 /* end confdefs.h. */
19199 #include <sys/procfs.h>
19208 rm -f conftest.$ac_objext
19209 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
19210 (eval $ac_compile) 2>conftest.er1
19212 grep -v '^ *+' conftest.er1 >conftest.err
19214 cat conftest.err >&5
19215 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19216 (exit $ac_status); } &&
19217 { ac_try='test -z "$ac_c_werror_flag"
19218 || test ! -s conftest.err'
19219 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19220 (eval $ac_try) 2>&5
19222 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19223 (exit $ac_status); }; } &&
19224 { ac_try='test -s conftest.$ac_objext'
19225 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19226 (eval $ac_try) 2>&5
19228 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19229 (exit $ac_status); }; }; then
19230 bfd_cv_have_sys_procfs_type_prgregset32_t=yes
19232 echo "$as_me: failed program was:" >&5
19233 sed 's/^/| /' conftest.$ac_ext >&5
19235 bfd_cv_have_sys_procfs_type_prgregset32_t=no
19238 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
19241 if test $bfd_cv_have_sys_procfs_type_prgregset32_t = yes; then
19243 cat >>confdefs.h <<\_ACEOF
19244 #define HAVE_PRGREGSET32_T 1
19248 echo "$as_me:$LINENO: result: $bfd_cv_have_sys_procfs_type_prgregset32_t" >&5
19249 echo "${ECHO_T}$bfd_cv_have_sys_procfs_type_prgregset32_t" >&6
19251 echo "$as_me:$LINENO: checking for prfpregset32_t in sys/procfs.h" >&5
19252 echo $ECHO_N "checking for prfpregset32_t in sys/procfs.h... $ECHO_C" >&6
19253 if test "${bfd_cv_have_sys_procfs_type_prfpregset32_t+set}" = set; then
19254 echo $ECHO_N "(cached) $ECHO_C" >&6
19256 cat >conftest.$ac_ext <<_ACEOF
19259 cat confdefs.h >>conftest.$ac_ext
19260 cat >>conftest.$ac_ext <<_ACEOF
19261 /* end confdefs.h. */
19264 #include <sys/procfs.h>
19268 prfpregset32_t avar
19273 rm -f conftest.$ac_objext
19274 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
19275 (eval $ac_compile) 2>conftest.er1
19277 grep -v '^ *+' conftest.er1 >conftest.err
19279 cat conftest.err >&5
19280 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19281 (exit $ac_status); } &&
19282 { ac_try='test -z "$ac_c_werror_flag"
19283 || test ! -s conftest.err'
19284 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19285 (eval $ac_try) 2>&5
19287 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19288 (exit $ac_status); }; } &&
19289 { ac_try='test -s conftest.$ac_objext'
19290 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19291 (eval $ac_try) 2>&5
19293 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19294 (exit $ac_status); }; }; then
19295 bfd_cv_have_sys_procfs_type_prfpregset32_t=yes
19297 echo "$as_me: failed program was:" >&5
19298 sed 's/^/| /' conftest.$ac_ext >&5
19300 bfd_cv_have_sys_procfs_type_prfpregset32_t=no
19303 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
19306 if test $bfd_cv_have_sys_procfs_type_prfpregset32_t = yes; then
19308 cat >>confdefs.h <<\_ACEOF
19309 #define HAVE_PRFPREGSET32_T 1
19313 echo "$as_me:$LINENO: result: $bfd_cv_have_sys_procfs_type_prfpregset32_t" >&5
19314 echo "${ECHO_T}$bfd_cv_have_sys_procfs_type_prfpregset32_t" >&6
19316 echo "$as_me:$LINENO: checking for lwpid_t in sys/procfs.h" >&5
19317 echo $ECHO_N "checking for lwpid_t in sys/procfs.h... $ECHO_C" >&6
19318 if test "${bfd_cv_have_sys_procfs_type_lwpid_t+set}" = set; then
19319 echo $ECHO_N "(cached) $ECHO_C" >&6
19321 cat >conftest.$ac_ext <<_ACEOF
19324 cat confdefs.h >>conftest.$ac_ext
19325 cat >>conftest.$ac_ext <<_ACEOF
19326 /* end confdefs.h. */
19329 #include <sys/procfs.h>
19338 rm -f conftest.$ac_objext
19339 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
19340 (eval $ac_compile) 2>conftest.er1
19342 grep -v '^ *+' conftest.er1 >conftest.err
19344 cat conftest.err >&5
19345 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19346 (exit $ac_status); } &&
19347 { ac_try='test -z "$ac_c_werror_flag"
19348 || test ! -s conftest.err'
19349 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19350 (eval $ac_try) 2>&5
19352 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19353 (exit $ac_status); }; } &&
19354 { ac_try='test -s conftest.$ac_objext'
19355 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19356 (eval $ac_try) 2>&5
19358 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19359 (exit $ac_status); }; }; then
19360 bfd_cv_have_sys_procfs_type_lwpid_t=yes
19362 echo "$as_me: failed program was:" >&5
19363 sed 's/^/| /' conftest.$ac_ext >&5
19365 bfd_cv_have_sys_procfs_type_lwpid_t=no
19368 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
19371 if test $bfd_cv_have_sys_procfs_type_lwpid_t = yes; then
19373 cat >>confdefs.h <<\_ACEOF
19374 #define HAVE_LWPID_T 1
19378 echo "$as_me:$LINENO: result: $bfd_cv_have_sys_procfs_type_lwpid_t" >&5
19379 echo "${ECHO_T}$bfd_cv_have_sys_procfs_type_lwpid_t" >&6
19381 echo "$as_me:$LINENO: checking for psaddr_t in sys/procfs.h" >&5
19382 echo $ECHO_N "checking for psaddr_t in sys/procfs.h... $ECHO_C" >&6
19383 if test "${bfd_cv_have_sys_procfs_type_psaddr_t+set}" = set; then
19384 echo $ECHO_N "(cached) $ECHO_C" >&6
19386 cat >conftest.$ac_ext <<_ACEOF
19389 cat confdefs.h >>conftest.$ac_ext
19390 cat >>conftest.$ac_ext <<_ACEOF
19391 /* end confdefs.h. */
19394 #include <sys/procfs.h>
19403 rm -f conftest.$ac_objext
19404 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
19405 (eval $ac_compile) 2>conftest.er1
19407 grep -v '^ *+' conftest.er1 >conftest.err
19409 cat conftest.err >&5
19410 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19411 (exit $ac_status); } &&
19412 { ac_try='test -z "$ac_c_werror_flag"
19413 || test ! -s conftest.err'
19414 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19415 (eval $ac_try) 2>&5
19417 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19418 (exit $ac_status); }; } &&
19419 { ac_try='test -s conftest.$ac_objext'
19420 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19421 (eval $ac_try) 2>&5
19423 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19424 (exit $ac_status); }; }; then
19425 bfd_cv_have_sys_procfs_type_psaddr_t=yes
19427 echo "$as_me: failed program was:" >&5
19428 sed 's/^/| /' conftest.$ac_ext >&5
19430 bfd_cv_have_sys_procfs_type_psaddr_t=no
19433 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
19436 if test $bfd_cv_have_sys_procfs_type_psaddr_t = yes; then
19438 cat >>confdefs.h <<\_ACEOF
19439 #define HAVE_PSADDR_T 1
19443 echo "$as_me:$LINENO: result: $bfd_cv_have_sys_procfs_type_psaddr_t" >&5
19444 echo "${ECHO_T}$bfd_cv_have_sys_procfs_type_psaddr_t" >&6
19446 echo "$as_me:$LINENO: checking for prsysent_t in sys/procfs.h" >&5
19447 echo $ECHO_N "checking for prsysent_t in sys/procfs.h... $ECHO_C" >&6
19448 if test "${bfd_cv_have_sys_procfs_type_prsysent_t+set}" = set; then
19449 echo $ECHO_N "(cached) $ECHO_C" >&6
19451 cat >conftest.$ac_ext <<_ACEOF
19454 cat confdefs.h >>conftest.$ac_ext
19455 cat >>conftest.$ac_ext <<_ACEOF
19456 /* end confdefs.h. */
19459 #include <sys/procfs.h>
19468 rm -f conftest.$ac_objext
19469 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
19470 (eval $ac_compile) 2>conftest.er1
19472 grep -v '^ *+' conftest.er1 >conftest.err
19474 cat conftest.err >&5
19475 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19476 (exit $ac_status); } &&
19477 { ac_try='test -z "$ac_c_werror_flag"
19478 || test ! -s conftest.err'
19479 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19480 (eval $ac_try) 2>&5
19482 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19483 (exit $ac_status); }; } &&
19484 { ac_try='test -s conftest.$ac_objext'
19485 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19486 (eval $ac_try) 2>&5
19488 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19489 (exit $ac_status); }; }; then
19490 bfd_cv_have_sys_procfs_type_prsysent_t=yes
19492 echo "$as_me: failed program was:" >&5
19493 sed 's/^/| /' conftest.$ac_ext >&5
19495 bfd_cv_have_sys_procfs_type_prsysent_t=no
19498 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
19501 if test $bfd_cv_have_sys_procfs_type_prsysent_t = yes; then
19503 cat >>confdefs.h <<\_ACEOF
19504 #define HAVE_PRSYSENT_T 1
19508 echo "$as_me:$LINENO: result: $bfd_cv_have_sys_procfs_type_prsysent_t" >&5
19509 echo "${ECHO_T}$bfd_cv_have_sys_procfs_type_prsysent_t" >&6
19511 echo "$as_me:$LINENO: checking for pr_sigset_t in sys/procfs.h" >&5
19512 echo $ECHO_N "checking for pr_sigset_t in sys/procfs.h... $ECHO_C" >&6
19513 if test "${bfd_cv_have_sys_procfs_type_pr_sigset_t+set}" = set; then
19514 echo $ECHO_N "(cached) $ECHO_C" >&6
19516 cat >conftest.$ac_ext <<_ACEOF
19519 cat confdefs.h >>conftest.$ac_ext
19520 cat >>conftest.$ac_ext <<_ACEOF
19521 /* end confdefs.h. */
19524 #include <sys/procfs.h>
19533 rm -f conftest.$ac_objext
19534 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
19535 (eval $ac_compile) 2>conftest.er1
19537 grep -v '^ *+' conftest.er1 >conftest.err
19539 cat conftest.err >&5
19540 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19541 (exit $ac_status); } &&
19542 { ac_try='test -z "$ac_c_werror_flag"
19543 || test ! -s conftest.err'
19544 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19545 (eval $ac_try) 2>&5
19547 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19548 (exit $ac_status); }; } &&
19549 { ac_try='test -s conftest.$ac_objext'
19550 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19551 (eval $ac_try) 2>&5
19553 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19554 (exit $ac_status); }; }; then
19555 bfd_cv_have_sys_procfs_type_pr_sigset_t=yes
19557 echo "$as_me: failed program was:" >&5
19558 sed 's/^/| /' conftest.$ac_ext >&5
19560 bfd_cv_have_sys_procfs_type_pr_sigset_t=no
19563 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
19566 if test $bfd_cv_have_sys_procfs_type_pr_sigset_t = yes; then
19568 cat >>confdefs.h <<\_ACEOF
19569 #define HAVE_PR_SIGSET_T 1
19573 echo "$as_me:$LINENO: result: $bfd_cv_have_sys_procfs_type_pr_sigset_t" >&5
19574 echo "${ECHO_T}$bfd_cv_have_sys_procfs_type_pr_sigset_t" >&6
19576 echo "$as_me:$LINENO: checking for pr_sigaction64_t in sys/procfs.h" >&5
19577 echo $ECHO_N "checking for pr_sigaction64_t in sys/procfs.h... $ECHO_C" >&6
19578 if test "${bfd_cv_have_sys_procfs_type_pr_sigaction64_t+set}" = set; then
19579 echo $ECHO_N "(cached) $ECHO_C" >&6
19581 cat >conftest.$ac_ext <<_ACEOF
19584 cat confdefs.h >>conftest.$ac_ext
19585 cat >>conftest.$ac_ext <<_ACEOF
19586 /* end confdefs.h. */
19589 #include <sys/procfs.h>
19593 pr_sigaction64_t avar
19598 rm -f conftest.$ac_objext
19599 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
19600 (eval $ac_compile) 2>conftest.er1
19602 grep -v '^ *+' conftest.er1 >conftest.err
19604 cat conftest.err >&5
19605 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19606 (exit $ac_status); } &&
19607 { ac_try='test -z "$ac_c_werror_flag"
19608 || test ! -s conftest.err'
19609 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19610 (eval $ac_try) 2>&5
19612 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19613 (exit $ac_status); }; } &&
19614 { ac_try='test -s conftest.$ac_objext'
19615 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19616 (eval $ac_try) 2>&5
19618 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19619 (exit $ac_status); }; }; then
19620 bfd_cv_have_sys_procfs_type_pr_sigaction64_t=yes
19622 echo "$as_me: failed program was:" >&5
19623 sed 's/^/| /' conftest.$ac_ext >&5
19625 bfd_cv_have_sys_procfs_type_pr_sigaction64_t=no
19628 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
19631 if test $bfd_cv_have_sys_procfs_type_pr_sigaction64_t = yes; then
19633 cat >>confdefs.h <<\_ACEOF
19634 #define HAVE_PR_SIGACTION64_T 1
19638 echo "$as_me:$LINENO: result: $bfd_cv_have_sys_procfs_type_pr_sigaction64_t" >&5
19639 echo "${ECHO_T}$bfd_cv_have_sys_procfs_type_pr_sigaction64_t" >&6
19641 echo "$as_me:$LINENO: checking for pr_siginfo64_t in sys/procfs.h" >&5
19642 echo $ECHO_N "checking for pr_siginfo64_t in sys/procfs.h... $ECHO_C" >&6
19643 if test "${bfd_cv_have_sys_procfs_type_pr_siginfo64_t+set}" = set; then
19644 echo $ECHO_N "(cached) $ECHO_C" >&6
19646 cat >conftest.$ac_ext <<_ACEOF
19649 cat confdefs.h >>conftest.$ac_ext
19650 cat >>conftest.$ac_ext <<_ACEOF
19651 /* end confdefs.h. */
19654 #include <sys/procfs.h>
19658 pr_siginfo64_t avar
19663 rm -f conftest.$ac_objext
19664 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
19665 (eval $ac_compile) 2>conftest.er1
19667 grep -v '^ *+' conftest.er1 >conftest.err
19669 cat conftest.err >&5
19670 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19671 (exit $ac_status); } &&
19672 { ac_try='test -z "$ac_c_werror_flag"
19673 || test ! -s conftest.err'
19674 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19675 (eval $ac_try) 2>&5
19677 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19678 (exit $ac_status); }; } &&
19679 { ac_try='test -s conftest.$ac_objext'
19680 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19681 (eval $ac_try) 2>&5
19683 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19684 (exit $ac_status); }; }; then
19685 bfd_cv_have_sys_procfs_type_pr_siginfo64_t=yes
19687 echo "$as_me: failed program was:" >&5
19688 sed 's/^/| /' conftest.$ac_ext >&5
19690 bfd_cv_have_sys_procfs_type_pr_siginfo64_t=no
19693 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
19696 if test $bfd_cv_have_sys_procfs_type_pr_siginfo64_t = yes; then
19698 cat >>confdefs.h <<\_ACEOF
19699 #define HAVE_PR_SIGINFO64_T 1
19703 echo "$as_me:$LINENO: result: $bfd_cv_have_sys_procfs_type_pr_siginfo64_t" >&5
19704 echo "${ECHO_T}$bfd_cv_have_sys_procfs_type_pr_siginfo64_t" >&6
19710 if test $bfd_cv_have_sys_procfs_type_prfpregset_t = yes; then
19711 echo "$as_me:$LINENO: checking whether prfpregset_t type is broken" >&5
19712 echo $ECHO_N "checking whether prfpregset_t type is broken... $ECHO_C" >&6
19713 if test "${gdb_cv_prfpregset_t_broken+set}" = set; then
19714 echo $ECHO_N "(cached) $ECHO_C" >&6
19716 if test "$cross_compiling" = yes; then
19717 gdb_cv_prfpregset_t_broken=yes
19719 cat >conftest.$ac_ext <<_ACEOF
19722 cat confdefs.h >>conftest.$ac_ext
19723 cat >>conftest.$ac_ext <<_ACEOF
19724 /* end confdefs.h. */
19725 #include <sys/procfs.h>
19728 if (sizeof (prfpregset_t) == sizeof (void *))
19733 rm -f conftest$ac_exeext
19734 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
19735 (eval $ac_link) 2>&5
19737 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19738 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
19739 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19740 (eval $ac_try) 2>&5
19742 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19743 (exit $ac_status); }; }; then
19744 gdb_cv_prfpregset_t_broken=no
19746 echo "$as_me: program exited with status $ac_status" >&5
19747 echo "$as_me: failed program was:" >&5
19748 sed 's/^/| /' conftest.$ac_ext >&5
19750 ( exit $ac_status )
19751 gdb_cv_prfpregset_t_broken=yes
19753 rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
19757 echo "$as_me:$LINENO: result: $gdb_cv_prfpregset_t_broken" >&5
19758 echo "${ECHO_T}$gdb_cv_prfpregset_t_broken" >&6
19759 if test $gdb_cv_prfpregset_t_broken = yes; then
19761 cat >>confdefs.h <<\_ACEOF
19762 #define PRFPREGSET_T_BROKEN 1
19769 echo "$as_me:$LINENO: checking for PIOCSET ioctl entry in sys/procfs.h" >&5
19770 echo $ECHO_N "checking for PIOCSET ioctl entry in sys/procfs.h... $ECHO_C" >&6
19771 if test "${gdb_cv_have_procfs_piocset+set}" = set; then
19772 echo $ECHO_N "(cached) $ECHO_C" >&6
19774 cat >conftest.$ac_ext <<_ACEOF
19777 cat confdefs.h >>conftest.$ac_ext
19778 cat >>conftest.$ac_ext <<_ACEOF
19779 /* end confdefs.h. */
19780 #include <unistd.h>
19781 #include <sys/types.h>
19782 #include <sys/procfs.h>
19789 dummy = ioctl(0, PIOCSET, &dummy);
19795 rm -f conftest.$ac_objext
19796 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
19797 (eval $ac_compile) 2>conftest.er1
19799 grep -v '^ *+' conftest.er1 >conftest.err
19801 cat conftest.err >&5
19802 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19803 (exit $ac_status); } &&
19804 { ac_try='test -z "$ac_c_werror_flag"
19805 || test ! -s conftest.err'
19806 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19807 (eval $ac_try) 2>&5
19809 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19810 (exit $ac_status); }; } &&
19811 { ac_try='test -s conftest.$ac_objext'
19812 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19813 (eval $ac_try) 2>&5
19815 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19816 (exit $ac_status); }; }; then
19817 gdb_cv_have_procfs_piocset=yes
19819 echo "$as_me: failed program was:" >&5
19820 sed 's/^/| /' conftest.$ac_ext >&5
19822 gdb_cv_have_procfs_piocset=no
19824 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
19827 echo "$as_me:$LINENO: result: $gdb_cv_have_procfs_piocset" >&5
19828 echo "${ECHO_T}$gdb_cv_have_procfs_piocset" >&6
19829 if test $gdb_cv_have_procfs_piocset = yes; then
19831 cat >>confdefs.h <<\_ACEOF
19832 #define HAVE_PROCFS_PIOCSET 1
19838 if test ${host} = ${target} ; then
19840 echo "$as_me:$LINENO: checking for member l_addr in struct link_map" >&5
19841 echo $ECHO_N "checking for member l_addr in struct link_map... $ECHO_C" >&6
19842 if test "${gdb_cv_have_struct_link_map_with_l_members+set}" = set; then
19843 echo $ECHO_N "(cached) $ECHO_C" >&6
19845 cat >conftest.$ac_ext <<_ACEOF
19848 cat confdefs.h >>conftest.$ac_ext
19849 cat >>conftest.$ac_ext <<_ACEOF
19850 /* end confdefs.h. */
19855 struct link_map lm; (void) lm.l_addr;
19860 rm -f conftest.$ac_objext
19861 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
19862 (eval $ac_compile) 2>conftest.er1
19864 grep -v '^ *+' conftest.er1 >conftest.err
19866 cat conftest.err >&5
19867 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19868 (exit $ac_status); } &&
19869 { ac_try='test -z "$ac_c_werror_flag"
19870 || test ! -s conftest.err'
19871 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19872 (eval $ac_try) 2>&5
19874 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19875 (exit $ac_status); }; } &&
19876 { ac_try='test -s conftest.$ac_objext'
19877 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19878 (eval $ac_try) 2>&5
19880 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19881 (exit $ac_status); }; }; then
19882 gdb_cv_have_struct_link_map_with_l_members=yes
19884 echo "$as_me: failed program was:" >&5
19885 sed 's/^/| /' conftest.$ac_ext >&5
19887 gdb_cv_have_struct_link_map_with_l_members=no
19889 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
19892 echo "$as_me:$LINENO: result: $gdb_cv_have_struct_link_map_with_l_members" >&5
19893 echo "${ECHO_T}$gdb_cv_have_struct_link_map_with_l_members" >&6
19894 if test $gdb_cv_have_struct_link_map_with_l_members = yes; then
19896 cat >>confdefs.h <<\_ACEOF
19897 #define HAVE_STRUCT_LINK_MAP_WITH_L_MEMBERS 1
19903 echo "$as_me:$LINENO: checking for member lm_addr in struct link_map" >&5
19904 echo $ECHO_N "checking for member lm_addr in struct link_map... $ECHO_C" >&6
19905 if test "${gdb_cv_have_struct_link_map_with_lm_members+set}" = set; then
19906 echo $ECHO_N "(cached) $ECHO_C" >&6
19908 cat >conftest.$ac_ext <<_ACEOF
19911 cat confdefs.h >>conftest.$ac_ext
19912 cat >>conftest.$ac_ext <<_ACEOF
19913 /* end confdefs.h. */
19914 #include <sys/types.h>
19919 struct link_map lm; (void) lm.lm_addr;
19924 rm -f conftest.$ac_objext
19925 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
19926 (eval $ac_compile) 2>conftest.er1
19928 grep -v '^ *+' conftest.er1 >conftest.err
19930 cat conftest.err >&5
19931 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19932 (exit $ac_status); } &&
19933 { ac_try='test -z "$ac_c_werror_flag"
19934 || test ! -s conftest.err'
19935 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19936 (eval $ac_try) 2>&5
19938 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19939 (exit $ac_status); }; } &&
19940 { ac_try='test -s conftest.$ac_objext'
19941 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19942 (eval $ac_try) 2>&5
19944 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19945 (exit $ac_status); }; }; then
19946 gdb_cv_have_struct_link_map_with_lm_members=yes
19948 echo "$as_me: failed program was:" >&5
19949 sed 's/^/| /' conftest.$ac_ext >&5
19951 gdb_cv_have_struct_link_map_with_lm_members=no
19953 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
19956 echo "$as_me:$LINENO: result: $gdb_cv_have_struct_link_map_with_lm_members" >&5
19957 echo "${ECHO_T}$gdb_cv_have_struct_link_map_with_lm_members" >&6
19958 if test $gdb_cv_have_struct_link_map_with_lm_members = yes; then
19960 cat >>confdefs.h <<\_ACEOF
19961 #define HAVE_STRUCT_LINK_MAP_WITH_LM_MEMBERS 1
19967 echo "$as_me:$LINENO: checking for member som_addr in struct so_map" >&5
19968 echo $ECHO_N "checking for member som_addr in struct so_map... $ECHO_C" >&6
19969 if test "${gdb_cv_have_struct_so_map_with_som_members+set}" = set; then
19970 echo $ECHO_N "(cached) $ECHO_C" >&6
19972 cat >conftest.$ac_ext <<_ACEOF
19975 cat confdefs.h >>conftest.$ac_ext
19976 cat >>conftest.$ac_ext <<_ACEOF
19977 /* end confdefs.h. */
19978 #include <sys/types.h>
19979 #ifdef HAVE_NLIST_H
19986 struct so_map lm; (void) lm.som_addr;
19991 rm -f conftest.$ac_objext
19992 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
19993 (eval $ac_compile) 2>conftest.er1
19995 grep -v '^ *+' conftest.er1 >conftest.err
19997 cat conftest.err >&5
19998 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19999 (exit $ac_status); } &&
20000 { ac_try='test -z "$ac_c_werror_flag"
20001 || test ! -s conftest.err'
20002 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20003 (eval $ac_try) 2>&5
20005 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20006 (exit $ac_status); }; } &&
20007 { ac_try='test -s conftest.$ac_objext'
20008 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20009 (eval $ac_try) 2>&5
20011 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20012 (exit $ac_status); }; }; then
20013 gdb_cv_have_struct_so_map_with_som_members=yes
20015 echo "$as_me: failed program was:" >&5
20016 sed 's/^/| /' conftest.$ac_ext >&5
20018 gdb_cv_have_struct_so_map_with_som_members=no
20020 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
20023 echo "$as_me:$LINENO: result: $gdb_cv_have_struct_so_map_with_som_members" >&5
20024 echo "${ECHO_T}$gdb_cv_have_struct_so_map_with_som_members" >&6
20025 if test $gdb_cv_have_struct_so_map_with_som_members = yes; then
20027 cat >>confdefs.h <<\_ACEOF
20028 #define HAVE_STRUCT_SO_MAP_WITH_SOM_MEMBERS 1
20034 echo "$as_me:$LINENO: checking for struct link_map32 in sys/link.h" >&5
20035 echo $ECHO_N "checking for struct link_map32 in sys/link.h... $ECHO_C" >&6
20036 if test "${gdb_cv_have_struct_link_map32+set}" = set; then
20037 echo $ECHO_N "(cached) $ECHO_C" >&6
20039 cat >conftest.$ac_ext <<_ACEOF
20042 cat confdefs.h >>conftest.$ac_ext
20043 cat >>conftest.$ac_ext <<_ACEOF
20044 /* end confdefs.h. */
20046 #include <sys/link.h>
20050 struct link_map32 l;
20055 rm -f conftest.$ac_objext
20056 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
20057 (eval $ac_compile) 2>conftest.er1
20059 grep -v '^ *+' conftest.er1 >conftest.err
20061 cat conftest.err >&5
20062 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20063 (exit $ac_status); } &&
20064 { ac_try='test -z "$ac_c_werror_flag"
20065 || test ! -s conftest.err'
20066 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20067 (eval $ac_try) 2>&5
20069 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20070 (exit $ac_status); }; } &&
20071 { ac_try='test -s conftest.$ac_objext'
20072 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20073 (eval $ac_try) 2>&5
20075 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20076 (exit $ac_status); }; }; then
20077 gdb_cv_have_struct_link_map32=yes
20079 echo "$as_me: failed program was:" >&5
20080 sed 's/^/| /' conftest.$ac_ext >&5
20082 gdb_cv_have_struct_link_map32=no
20084 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
20087 echo "$as_me:$LINENO: result: $gdb_cv_have_struct_link_map32" >&5
20088 echo "${ECHO_T}$gdb_cv_have_struct_link_map32" >&6
20089 if test $gdb_cv_have_struct_link_map32 = yes; then
20091 cat >>confdefs.h <<\_ACEOF
20092 #define HAVE_STRUCT_LINK_MAP32 1
20096 cat >>confdefs.h <<\_ACEOF
20097 #define _SYSCALL32 1
20103 # Check if the compiler supports the `long long' type.
20105 echo "$as_me:$LINENO: checking for long long support in compiler" >&5
20106 echo $ECHO_N "checking for long long support in compiler... $ECHO_C" >&6
20107 if test "${gdb_cv_c_long_long+set}" = set; then
20108 echo $ECHO_N "(cached) $ECHO_C" >&6
20110 cat >conftest.$ac_ext <<_ACEOF
20113 cat confdefs.h >>conftest.$ac_ext
20114 cat >>conftest.$ac_ext <<_ACEOF
20115 /* end confdefs.h. */
20116 extern long long foo;
20120 switch (foo & 2) { case 0: return 1; }
20125 rm -f conftest.$ac_objext
20126 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
20127 (eval $ac_compile) 2>conftest.er1
20129 grep -v '^ *+' conftest.er1 >conftest.err
20131 cat conftest.err >&5
20132 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20133 (exit $ac_status); } &&
20134 { ac_try='test -z "$ac_c_werror_flag"
20135 || test ! -s conftest.err'
20136 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20137 (eval $ac_try) 2>&5
20139 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20140 (exit $ac_status); }; } &&
20141 { ac_try='test -s conftest.$ac_objext'
20142 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20143 (eval $ac_try) 2>&5
20145 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20146 (exit $ac_status); }; }; then
20147 gdb_cv_c_long_long=yes
20149 echo "$as_me: failed program was:" >&5
20150 sed 's/^/| /' conftest.$ac_ext >&5
20152 gdb_cv_c_long_long=no
20154 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
20156 echo "$as_me:$LINENO: result: $gdb_cv_c_long_long" >&5
20157 echo "${ECHO_T}$gdb_cv_c_long_long" >&6
20158 if test $gdb_cv_c_long_long = yes; then
20160 cat >>confdefs.h <<\_ACEOF
20161 #define CC_HAS_LONG_LONG 1
20166 # Check if the compiler and runtime support printing long longs.
20168 echo "$as_me:$LINENO: checking for long long support in printf" >&5
20169 echo $ECHO_N "checking for long long support in printf... $ECHO_C" >&6
20170 if test "${gdb_cv_printf_has_long_long+set}" = set; then
20171 echo $ECHO_N "(cached) $ECHO_C" >&6
20173 if test "$cross_compiling" = yes; then
20174 gdb_cv_printf_has_long_long=no
20176 cat >conftest.$ac_ext <<_ACEOF
20179 cat confdefs.h >>conftest.$ac_ext
20180 cat >>conftest.$ac_ext <<_ACEOF
20181 /* end confdefs.h. */
20182 $ac_includes_default
20188 l = (l << 16) + 0x0123;
20189 l = (l << 16) + 0x4567;
20190 l = (l << 16) + 0x89ab;
20191 l = (l << 16) + 0xcdef;
20192 sprintf (buf, "0x%016llx", l);
20193 return (strcmp ("0x0123456789abcdef", buf));
20198 rm -f conftest$ac_exeext
20199 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
20200 (eval $ac_link) 2>&5
20202 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20203 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
20204 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20205 (eval $ac_try) 2>&5
20207 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20208 (exit $ac_status); }; }; then
20209 gdb_cv_printf_has_long_long=yes
20211 echo "$as_me: program exited with status $ac_status" >&5
20212 echo "$as_me: failed program was:" >&5
20213 sed 's/^/| /' conftest.$ac_ext >&5
20215 ( exit $ac_status )
20216 gdb_cv_printf_has_long_long=no
20218 rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
20221 echo "$as_me:$LINENO: result: $gdb_cv_printf_has_long_long" >&5
20222 echo "${ECHO_T}$gdb_cv_printf_has_long_long" >&6
20223 if test $gdb_cv_printf_has_long_long = yes; then
20225 cat >>confdefs.h <<\_ACEOF
20226 #define PRINTF_HAS_LONG_LONG 1
20231 # Check if the compiler supports the `long double' type. We can't use
20232 # AC_C_LONG_DOUBLE because that one does additional checks on the
20233 # constants defined in <float.h> that fail on some systems,
20234 # e.g. FreeBSD/i386 4.7 and OpenBSD/i386 3.6.
20236 echo "$as_me:$LINENO: checking for long double support in compiler" >&5
20237 echo $ECHO_N "checking for long double support in compiler... $ECHO_C" >&6
20238 if test "${gdb_cv_c_long_double+set}" = set; then
20239 echo $ECHO_N "(cached) $ECHO_C" >&6
20241 cat >conftest.$ac_ext <<_ACEOF
20244 cat confdefs.h >>conftest.$ac_ext
20245 cat >>conftest.$ac_ext <<_ACEOF
20246 /* end confdefs.h. */
20249 rm -f conftest.$ac_objext
20250 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
20251 (eval $ac_compile) 2>conftest.er1
20253 grep -v '^ *+' conftest.er1 >conftest.err
20255 cat conftest.err >&5
20256 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20257 (exit $ac_status); } &&
20258 { ac_try='test -z "$ac_c_werror_flag"
20259 || test ! -s conftest.err'
20260 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20261 (eval $ac_try) 2>&5
20263 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20264 (exit $ac_status); }; } &&
20265 { ac_try='test -s conftest.$ac_objext'
20266 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20267 (eval $ac_try) 2>&5
20269 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20270 (exit $ac_status); }; }; then
20271 gdb_cv_c_long_double=yes
20273 echo "$as_me: failed program was:" >&5
20274 sed 's/^/| /' conftest.$ac_ext >&5
20276 gdb_cv_c_long_double=no
20278 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
20280 echo "$as_me:$LINENO: result: $gdb_cv_c_long_double" >&5
20281 echo "${ECHO_T}$gdb_cv_c_long_double" >&6
20282 if test $gdb_cv_c_long_double = yes; then
20284 cat >>confdefs.h <<\_ACEOF
20285 #define HAVE_LONG_DOUBLE 1
20290 # Check if the compiler and runtime support printing long doubles.
20292 echo "$as_me:$LINENO: checking for long double support in printf" >&5
20293 echo $ECHO_N "checking for long double support in printf... $ECHO_C" >&6
20294 if test "${gdb_cv_printf_has_long_double+set}" = set; then
20295 echo $ECHO_N "(cached) $ECHO_C" >&6
20297 if test "$cross_compiling" = yes; then
20298 gdb_cv_printf_has_long_double=no
20300 cat >conftest.$ac_ext <<_ACEOF
20303 cat confdefs.h >>conftest.$ac_ext
20304 cat >>conftest.$ac_ext <<_ACEOF
20305 /* end confdefs.h. */
20306 $ac_includes_default
20311 long double f = 3.141592653;
20312 sprintf (buf, "%Lg", f);
20313 return (strncmp ("3.14159", buf, 7));
20318 rm -f conftest$ac_exeext
20319 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
20320 (eval $ac_link) 2>&5
20322 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20323 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
20324 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20325 (eval $ac_try) 2>&5
20327 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20328 (exit $ac_status); }; }; then
20329 gdb_cv_printf_has_long_double=yes
20331 echo "$as_me: program exited with status $ac_status" >&5
20332 echo "$as_me: failed program was:" >&5
20333 sed 's/^/| /' conftest.$ac_ext >&5
20335 ( exit $ac_status )
20336 gdb_cv_printf_has_long_double=no
20338 rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
20341 echo "$as_me:$LINENO: result: $gdb_cv_printf_has_long_double" >&5
20342 echo "${ECHO_T}$gdb_cv_printf_has_long_double" >&6
20343 if test $gdb_cv_printf_has_long_double = yes; then
20345 cat >>confdefs.h <<\_ACEOF
20346 #define PRINTF_HAS_LONG_DOUBLE 1
20351 # Check if the compiler and runtime support scanning long doubles.
20353 echo "$as_me:$LINENO: checking for long double support in scanf" >&5
20354 echo $ECHO_N "checking for long double support in scanf... $ECHO_C" >&6
20355 if test "${gdb_cv_scanf_has_long_double+set}" = set; then
20356 echo $ECHO_N "(cached) $ECHO_C" >&6
20358 if test "$cross_compiling" = yes; then
20359 gdb_cv_scanf_has_long_double=no
20361 cat >conftest.$ac_ext <<_ACEOF
20364 cat confdefs.h >>conftest.$ac_ext
20365 cat >>conftest.$ac_ext <<_ACEOF
20366 /* end confdefs.h. */
20371 char *buf = "3.141592653";
20373 sscanf (buf, "%Lg", &f);
20374 return !(f > 3.14159 && f < 3.14160);
20379 rm -f conftest$ac_exeext
20380 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
20381 (eval $ac_link) 2>&5
20383 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20384 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
20385 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20386 (eval $ac_try) 2>&5
20388 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20389 (exit $ac_status); }; }; then
20390 gdb_cv_scanf_has_long_double=yes
20392 echo "$as_me: program exited with status $ac_status" >&5
20393 echo "$as_me: failed program was:" >&5
20394 sed 's/^/| /' conftest.$ac_ext >&5
20396 ( exit $ac_status )
20397 gdb_cv_scanf_has_long_double=no
20399 rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
20402 echo "$as_me:$LINENO: result: $gdb_cv_scanf_has_long_double" >&5
20403 echo "${ECHO_T}$gdb_cv_scanf_has_long_double" >&6
20404 if test $gdb_cv_scanf_has_long_double = yes; then
20406 cat >>confdefs.h <<\_ACEOF
20407 #define SCANF_HAS_LONG_DOUBLE 1
20414 echo "$as_me:$LINENO: checking for -bbigtoc option" >&5
20415 echo $ECHO_N "checking for -bbigtoc option... $ECHO_C" >&6
20416 if test "${gdb_cv_bigtoc+set}" = set; then
20417 echo $ECHO_N "(cached) $ECHO_C" >&6
20420 SAVE_LDFLAGS=$LDFLAGS
20423 yes) gdb_cv_bigtoc=-Wl,-bbigtoc ;;
20424 *) gdb_cv_bigtoc=-bbigtoc ;;
20427 LDFLAGS=$LDFLAGS\ $gdb_cv_bigtoc
20428 cat >conftest.$ac_ext <<_ACEOF
20431 cat confdefs.h >>conftest.$ac_ext
20432 cat >>conftest.$ac_ext <<_ACEOF
20433 /* end confdefs.h. */
20443 rm -f conftest.$ac_objext conftest$ac_exeext
20444 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
20445 (eval $ac_link) 2>conftest.er1
20447 grep -v '^ *+' conftest.er1 >conftest.err
20449 cat conftest.err >&5
20450 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20451 (exit $ac_status); } &&
20452 { ac_try='test -z "$ac_c_werror_flag"
20453 || test ! -s conftest.err'
20454 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20455 (eval $ac_try) 2>&5
20457 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20458 (exit $ac_status); }; } &&
20459 { ac_try='test -s conftest$ac_exeext'
20460 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20461 (eval $ac_try) 2>&5
20463 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20464 (exit $ac_status); }; }; then
20467 echo "$as_me: failed program was:" >&5
20468 sed 's/^/| /' conftest.$ac_ext >&5
20472 rm -f conftest.err conftest.$ac_objext \
20473 conftest$ac_exeext conftest.$ac_ext
20474 LDFLAGS="${SAVE_LDFLAGS}"
20477 echo "$as_me:$LINENO: result: $gdb_cv_bigtoc" >&5
20478 echo "${ECHO_T}$gdb_cv_bigtoc" >&6
20479 CONFIG_LDFLAGS="${CONFIG_LDFLAGS} ${gdb_cv_bigtoc}"
20485 if test ${build} = ${host} -a ${host} = ${target} ; then
20488 echo "$as_me:$LINENO: checking for HPUX/OSF thread support" >&5
20489 echo $ECHO_N "checking for HPUX/OSF thread support... $ECHO_C" >&6
20490 if test -f /usr/include/dce/cma_config.h ; then
20491 if test "$GCC" = "yes" ; then
20492 echo "$as_me:$LINENO: result: yes" >&5
20493 echo "${ECHO_T}yes" >&6
20495 cat >>confdefs.h <<\_ACEOF
20496 #define HAVE_HPUX_THREAD_SUPPORT 1
20499 CONFIG_OBS="${CONFIG_OBS} hpux-thread.o"
20500 CONFIG_SRCS="${CONFIG_SRCS} hpux-thread.c"
20502 echo "$as_me:$LINENO: result: no (suppressed because you are not using GCC)" >&5
20503 echo "${ECHO_T}no (suppressed because you are not using GCC)" >&6
20506 echo "$as_me:$LINENO: result: no" >&5
20507 echo "${ECHO_T}no" >&6
20511 # See if thread_db library is around for Solaris thread debugging.
20512 # Note that we must explicitly test for version 1 of the library
20513 # because version 0 (present on Solaris 2.4 or earlier) doesn't have
20515 echo "$as_me:$LINENO: checking for Solaris thread debugging library" >&5
20516 echo $ECHO_N "checking for Solaris thread debugging library... $ECHO_C" >&6
20517 if test -f /usr/lib/libthread_db.so.1 ; then
20518 echo "$as_me:$LINENO: result: yes" >&5
20519 echo "${ECHO_T}yes" >&6
20521 cat >>confdefs.h <<\_ACEOF
20522 #define HAVE_THREAD_DB_LIB 1
20525 CONFIG_OBS="${CONFIG_OBS} sol-thread.o"
20526 CONFIG_SRCS="${CONFIG_SRCS} sol-thread.c"
20528 echo "$as_me:$LINENO: checking for dlopen in -ldl" >&5
20529 echo $ECHO_N "checking for dlopen in -ldl... $ECHO_C" >&6
20530 if test "${ac_cv_lib_dl_dlopen+set}" = set; then
20531 echo $ECHO_N "(cached) $ECHO_C" >&6
20533 ac_check_lib_save_LIBS=$LIBS
20535 cat >conftest.$ac_ext <<_ACEOF
20538 cat confdefs.h >>conftest.$ac_ext
20539 cat >>conftest.$ac_ext <<_ACEOF
20540 /* end confdefs.h. */
20542 /* Override any gcc2 internal prototype to avoid an error. */
20546 /* We use char because int might match the return type of a gcc2
20547 builtin and then its argument prototype would still apply. */
20557 rm -f conftest.$ac_objext conftest$ac_exeext
20558 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
20559 (eval $ac_link) 2>conftest.er1
20561 grep -v '^ *+' conftest.er1 >conftest.err
20563 cat conftest.err >&5
20564 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20565 (exit $ac_status); } &&
20566 { ac_try='test -z "$ac_c_werror_flag"
20567 || test ! -s conftest.err'
20568 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20569 (eval $ac_try) 2>&5
20571 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20572 (exit $ac_status); }; } &&
20573 { ac_try='test -s conftest$ac_exeext'
20574 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20575 (eval $ac_try) 2>&5
20577 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20578 (exit $ac_status); }; }; then
20579 ac_cv_lib_dl_dlopen=yes
20581 echo "$as_me: failed program was:" >&5
20582 sed 's/^/| /' conftest.$ac_ext >&5
20584 ac_cv_lib_dl_dlopen=no
20586 rm -f conftest.err conftest.$ac_objext \
20587 conftest$ac_exeext conftest.$ac_ext
20588 LIBS=$ac_check_lib_save_LIBS
20590 echo "$as_me:$LINENO: result: $ac_cv_lib_dl_dlopen" >&5
20591 echo "${ECHO_T}$ac_cv_lib_dl_dlopen" >&6
20592 if test $ac_cv_lib_dl_dlopen = yes; then
20593 cat >>confdefs.h <<_ACEOF
20594 #define HAVE_LIBDL 1
20601 if test "$GCC" = "yes" ; then
20602 # The GNU linker requires the -export-dynamic option to make
20603 # all symbols visible in the dynamic symbol table.
20604 hold_ldflags=$LDFLAGS
20605 echo "$as_me:$LINENO: checking for the ld -export-dynamic flag" >&5
20606 echo $ECHO_N "checking for the ld -export-dynamic flag... $ECHO_C" >&6
20607 LDFLAGS="${LDFLAGS} -Wl,-export-dynamic"
20608 cat >conftest.$ac_ext <<_ACEOF
20611 cat confdefs.h >>conftest.$ac_ext
20612 cat >>conftest.$ac_ext <<_ACEOF
20613 /* end confdefs.h. */
20623 rm -f conftest.$ac_objext conftest$ac_exeext
20624 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
20625 (eval $ac_link) 2>conftest.er1
20627 grep -v '^ *+' conftest.er1 >conftest.err
20629 cat conftest.err >&5
20630 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20631 (exit $ac_status); } &&
20632 { ac_try='test -z "$ac_c_werror_flag"
20633 || test ! -s conftest.err'
20634 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20635 (eval $ac_try) 2>&5
20637 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20638 (exit $ac_status); }; } &&
20639 { ac_try='test -s conftest$ac_exeext'
20640 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20641 (eval $ac_try) 2>&5
20643 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20644 (exit $ac_status); }; }; then
20647 echo "$as_me: failed program was:" >&5
20648 sed 's/^/| /' conftest.$ac_ext >&5
20652 rm -f conftest.err conftest.$ac_objext \
20653 conftest$ac_exeext conftest.$ac_ext
20654 LDFLAGS=$hold_ldflags
20655 echo "$as_me:$LINENO: result: $found" >&5
20656 echo "${ECHO_T}$found" >&6
20657 if test $found = yes; then
20658 CONFIG_LDFLAGS="${CONFIG_LDFLAGS} -Wl,-export-dynamic"
20661 # Sun randomly tweaked the prototypes in <proc_service.h>
20663 echo "$as_me:$LINENO: checking if <proc_service.h> is old" >&5
20664 echo $ECHO_N "checking if <proc_service.h> is old... $ECHO_C" >&6
20665 if test "${gdb_cv_proc_service_is_old+set}" = set; then
20666 echo $ECHO_N "(cached) $ECHO_C" >&6
20669 cat >conftest.$ac_ext <<_ACEOF
20672 cat confdefs.h >>conftest.$ac_ext
20673 cat >>conftest.$ac_ext <<_ACEOF
20674 /* end confdefs.h. */
20676 #include <proc_service.h>
20677 ps_err_e ps_pdwrite
20678 (struct ps_prochandle*, psaddr_t, const void*, size_t);
20688 rm -f conftest.$ac_objext
20689 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
20690 (eval $ac_compile) 2>conftest.er1
20692 grep -v '^ *+' conftest.er1 >conftest.err
20694 cat conftest.err >&5
20695 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20696 (exit $ac_status); } &&
20697 { ac_try='test -z "$ac_c_werror_flag"
20698 || test ! -s conftest.err'
20699 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20700 (eval $ac_try) 2>&5
20702 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20703 (exit $ac_status); }; } &&
20704 { ac_try='test -s conftest.$ac_objext'
20705 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20706 (eval $ac_try) 2>&5
20708 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20709 (exit $ac_status); }; }; then
20710 gdb_cv_proc_service_is_old=no
20712 echo "$as_me: failed program was:" >&5
20713 sed 's/^/| /' conftest.$ac_ext >&5
20715 gdb_cv_proc_service_is_old=yes
20717 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
20721 echo "$as_me:$LINENO: result: $gdb_cv_proc_service_is_old" >&5
20722 echo "${ECHO_T}$gdb_cv_proc_service_is_old" >&6
20723 if test $gdb_cv_proc_service_is_old = yes; then
20725 cat >>confdefs.h <<\_ACEOF
20726 #define PROC_SERVICE_IS_OLD 1
20731 echo "$as_me:$LINENO: result: no" >&5
20732 echo "${ECHO_T}no" >&6
20736 echo "$as_me:$LINENO: checking for AiX thread debugging library" >&5
20737 echo $ECHO_N "checking for AiX thread debugging library... $ECHO_C" >&6
20738 if test "${gdb_cv_have_aix_thread_debug+set}" = set; then
20739 echo $ECHO_N "(cached) $ECHO_C" >&6
20741 cat >conftest.$ac_ext <<_ACEOF
20744 cat confdefs.h >>conftest.$ac_ext
20745 cat >>conftest.$ac_ext <<_ACEOF
20746 /* end confdefs.h. */
20747 #include <sys/pthdebug.h>
20751 #ifndef PTHDB_VERSION_3
20758 rm -f conftest.$ac_objext
20759 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
20760 (eval $ac_compile) 2>conftest.er1
20762 grep -v '^ *+' conftest.er1 >conftest.err
20764 cat conftest.err >&5
20765 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20766 (exit $ac_status); } &&
20767 { ac_try='test -z "$ac_c_werror_flag"
20768 || test ! -s conftest.err'
20769 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20770 (eval $ac_try) 2>&5
20772 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20773 (exit $ac_status); }; } &&
20774 { ac_try='test -s conftest.$ac_objext'
20775 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20776 (eval $ac_try) 2>&5
20778 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20779 (exit $ac_status); }; }; then
20780 gdb_cv_have_aix_thread_debug=yes
20782 echo "$as_me: failed program was:" >&5
20783 sed 's/^/| /' conftest.$ac_ext >&5
20785 gdb_cv_have_aix_thread_debug=no
20787 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
20790 echo "$as_me:$LINENO: result: $gdb_cv_have_aix_thread_debug" >&5
20791 echo "${ECHO_T}$gdb_cv_have_aix_thread_debug" >&6
20792 if test $gdb_cv_have_aix_thread_debug = yes; then
20793 CONFIG_SRCS="${CONFIG_SRCS} aix-thread.c"
20794 CONFIG_OBS="${CONFIG_OBS} aix-thread.o"
20795 CONFIG_LDFLAGS="${CONFIG_LDFLAGS} -lpthdebug"
20802 if test "x$ac_cv_header_thread_db_h" = "xyes"; then
20803 echo "$as_me:$LINENO: checking whether <thread_db.h> has TD_NOTALLOC" >&5
20804 echo $ECHO_N "checking whether <thread_db.h> has TD_NOTALLOC... $ECHO_C" >&6
20805 if test "${gdb_cv_thread_db_h_has_td_notalloc+set}" = set; then
20806 echo $ECHO_N "(cached) $ECHO_C" >&6
20808 cat >conftest.$ac_ext <<_ACEOF
20811 cat confdefs.h >>conftest.$ac_ext
20812 cat >>conftest.$ac_ext <<_ACEOF
20813 /* end confdefs.h. */
20814 #include <thread_db.h>
20818 int i = TD_NOTALLOC;
20823 rm -f conftest.$ac_objext
20824 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
20825 (eval $ac_compile) 2>conftest.er1
20827 grep -v '^ *+' conftest.er1 >conftest.err
20829 cat conftest.err >&5
20830 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20831 (exit $ac_status); } &&
20832 { ac_try='test -z "$ac_c_werror_flag"
20833 || test ! -s conftest.err'
20834 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20835 (eval $ac_try) 2>&5
20837 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20838 (exit $ac_status); }; } &&
20839 { ac_try='test -s conftest.$ac_objext'
20840 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20841 (eval $ac_try) 2>&5
20843 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20844 (exit $ac_status); }; }; then
20845 gdb_cv_thread_db_h_has_td_notalloc=yes
20847 echo "$as_me: failed program was:" >&5
20848 sed 's/^/| /' conftest.$ac_ext >&5
20850 gdb_cv_thread_db_h_has_td_notalloc=no
20853 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
20856 echo "$as_me:$LINENO: result: $gdb_cv_thread_db_h_has_td_notalloc" >&5
20857 echo "${ECHO_T}$gdb_cv_thread_db_h_has_td_notalloc" >&6
20858 echo "$as_me:$LINENO: checking whether <thread_db.h> has TD_VERSION" >&5
20859 echo $ECHO_N "checking whether <thread_db.h> has TD_VERSION... $ECHO_C" >&6
20860 if test "${gdb_cv_thread_db_h_has_td_version+set}" = set; then
20861 echo $ECHO_N "(cached) $ECHO_C" >&6
20863 cat >conftest.$ac_ext <<_ACEOF
20866 cat confdefs.h >>conftest.$ac_ext
20867 cat >>conftest.$ac_ext <<_ACEOF
20868 /* end confdefs.h. */
20869 #include <thread_db.h>
20873 int i = TD_VERSION;
20878 rm -f conftest.$ac_objext
20879 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
20880 (eval $ac_compile) 2>conftest.er1
20882 grep -v '^ *+' conftest.er1 >conftest.err
20884 cat conftest.err >&5
20885 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20886 (exit $ac_status); } &&
20887 { ac_try='test -z "$ac_c_werror_flag"
20888 || test ! -s conftest.err'
20889 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20890 (eval $ac_try) 2>&5
20892 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20893 (exit $ac_status); }; } &&
20894 { ac_try='test -s conftest.$ac_objext'
20895 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20896 (eval $ac_try) 2>&5
20898 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20899 (exit $ac_status); }; }; then
20900 gdb_cv_thread_db_h_has_td_version=yes
20902 echo "$as_me: failed program was:" >&5
20903 sed 's/^/| /' conftest.$ac_ext >&5
20905 gdb_cv_thread_db_h_has_td_version=no
20908 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
20911 echo "$as_me:$LINENO: result: $gdb_cv_thread_db_h_has_td_version" >&5
20912 echo "${ECHO_T}$gdb_cv_thread_db_h_has_td_version" >&6
20913 echo "$as_me:$LINENO: checking whether <thread_db.h> has TD_NOTLS" >&5
20914 echo $ECHO_N "checking whether <thread_db.h> has TD_NOTLS... $ECHO_C" >&6
20915 if test "${gdb_cv_thread_db_h_has_td_notls+set}" = set; then
20916 echo $ECHO_N "(cached) $ECHO_C" >&6
20918 cat >conftest.$ac_ext <<_ACEOF
20921 cat confdefs.h >>conftest.$ac_ext
20922 cat >>conftest.$ac_ext <<_ACEOF
20923 /* end confdefs.h. */
20924 #include <thread_db.h>
20933 rm -f conftest.$ac_objext
20934 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
20935 (eval $ac_compile) 2>conftest.er1
20937 grep -v '^ *+' conftest.er1 >conftest.err
20939 cat conftest.err >&5
20940 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20941 (exit $ac_status); } &&
20942 { ac_try='test -z "$ac_c_werror_flag"
20943 || test ! -s conftest.err'
20944 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20945 (eval $ac_try) 2>&5
20947 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20948 (exit $ac_status); }; } &&
20949 { ac_try='test -s conftest.$ac_objext'
20950 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20951 (eval $ac_try) 2>&5
20953 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20954 (exit $ac_status); }; }; then
20955 gdb_cv_thread_db_h_has_td_notls=yes
20957 echo "$as_me: failed program was:" >&5
20958 sed 's/^/| /' conftest.$ac_ext >&5
20960 gdb_cv_thread_db_h_has_td_notls=no
20963 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
20966 echo "$as_me:$LINENO: result: $gdb_cv_thread_db_h_has_td_notls" >&5
20967 echo "${ECHO_T}$gdb_cv_thread_db_h_has_td_notls" >&6
20969 if test "x$gdb_cv_thread_db_h_has_td_notalloc" = "xyes"; then
20971 cat >>confdefs.h <<\_ACEOF
20972 #define THREAD_DB_HAS_TD_NOTALLOC 1
20976 if test "x$gdb_cv_thread_db_h_has_td_version" = "xyes"; then
20978 cat >>confdefs.h <<\_ACEOF
20979 #define THREAD_DB_HAS_TD_VERSION 1
20983 if test "x$gdb_cv_thread_db_h_has_td_notls" = "xyes"; then
20985 cat >>confdefs.h <<\_ACEOF
20986 #define THREAD_DB_HAS_TD_NOTLS 1
20991 if test "x$ac_cv_header_sys_syscall_h" = "xyes"; then
20992 echo "$as_me:$LINENO: checking whether <sys/syscall.h> has __NR_tkill" >&5
20993 echo $ECHO_N "checking whether <sys/syscall.h> has __NR_tkill... $ECHO_C" >&6
20994 if test "${gdb_cv_sys_syscall_h_has_tkill+set}" = set; then
20995 echo $ECHO_N "(cached) $ECHO_C" >&6
20997 cat >conftest.$ac_ext <<_ACEOF
21000 cat confdefs.h >>conftest.$ac_ext
21001 cat >>conftest.$ac_ext <<_ACEOF
21002 /* end confdefs.h. */
21003 #include <sys/syscall.h>
21007 int i = __NR_tkill;
21012 rm -f conftest.$ac_objext
21013 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
21014 (eval $ac_compile) 2>conftest.er1
21016 grep -v '^ *+' conftest.er1 >conftest.err
21018 cat conftest.err >&5
21019 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21020 (exit $ac_status); } &&
21021 { ac_try='test -z "$ac_c_werror_flag"
21022 || test ! -s conftest.err'
21023 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21024 (eval $ac_try) 2>&5
21026 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21027 (exit $ac_status); }; } &&
21028 { ac_try='test -s conftest.$ac_objext'
21029 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21030 (eval $ac_try) 2>&5
21032 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21033 (exit $ac_status); }; }; then
21034 gdb_cv_sys_syscall_h_has_tkill=yes
21036 echo "$as_me: failed program was:" >&5
21037 sed 's/^/| /' conftest.$ac_ext >&5
21039 gdb_cv_sys_syscall_h_has_tkill=no
21042 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
21045 echo "$as_me:$LINENO: result: $gdb_cv_sys_syscall_h_has_tkill" >&5
21046 echo "${ECHO_T}$gdb_cv_sys_syscall_h_has_tkill" >&6
21048 if test "x$gdb_cv_sys_syscall_h_has_tkill" = "xyes" && test "x$ac_cv_func_syscall" = "xyes"; then
21050 cat >>confdefs.h <<\_ACEOF
21051 #define HAVE_TKILL_SYSCALL 1
21058 # Check whether --with-sysroot or --without-sysroot was given.
21059 if test "${with_sysroot+set}" = set; then
21060 withval="$with_sysroot"
21062 case ${with_sysroot} in
21063 yes) TARGET_SYSTEM_ROOT='${exec_prefix}/${target_alias}/sys-root' ;;
21064 *) TARGET_SYSTEM_ROOT=$with_sysroot ;;
21067 TARGET_SYSTEM_ROOT_DEFINE='-DTARGET_SYSTEM_ROOT=\"$(TARGET_SYSTEM_ROOT)\"'
21069 if test "x$exec_prefix" = xNONE; then
21070 if test "x$prefix" = xNONE; then
21071 test_prefix=/usr/local
21073 test_prefix=$prefix
21076 test_prefix=$exec_prefix
21078 case ${TARGET_SYSTEM_ROOT} in
21079 "${test_prefix}"|"${test_prefix}/"*|\
21080 '${exec_prefix}'|'${exec_prefix}/'*)
21081 t="$TARGET_SYSTEM_ROOT_DEFINE -DTARGET_SYSTEM_ROOT_RELOCATABLE"
21082 TARGET_SYSTEM_ROOT_DEFINE="$t"
21088 TARGET_SYSTEM_ROOT=
21089 TARGET_SYSTEM_ROOT_DEFINE='-DTARGET_SYSTEM_ROOT=\"\"'
21095 # Check whether --enable-werror or --disable-werror was given.
21096 if test "${enable_werror+set}" = set; then
21097 enableval="$enable_werror"
21098 case "${enableval}" in
21099 yes | y) ERROR_ON_WARNING="yes" ;;
21100 no | n) ERROR_ON_WARNING="no" ;;
21101 *) { { echo "$as_me:$LINENO: error: bad value ${enableval} for --enable-werror" >&5
21102 echo "$as_me: error: bad value ${enableval} for --enable-werror" >&2;}
21103 { (exit 1); exit 1; }; } ;;
21107 # Enable -Werror by default when using gcc
21108 if test "${GCC}" = yes -a -z "${ERROR_ON_WARNING}" ; then
21109 ERROR_ON_WARNING=yes
21113 if test "${ERROR_ON_WARNING}" = yes ; then
21114 WERROR_CFLAGS="-Werror"
21117 # NOTE: Don't add -Wall or -Wunused, they both include
21118 # -Wunused-parameter which reports bogus warnings.
21119 # NOTE: If you add to this list, remember to update
21120 # gdb/doc/gdbint.texinfo.
21121 build_warnings="-Wimplicit -Wreturn-type -Wcomment -Wtrigraphs \
21122 -Wformat -Wparentheses -Wpointer-arith -Wformat-nonliteral \
21123 -Wunused-label -Wunused-function -Wno-pointer-sign"
21125 # GCC supports -Wuninitialized only with -O or -On, n != 0.
21126 if test x${CFLAGS+set} = xset; then
21127 case "${CFLAGS}" in
21130 build_warnings="${build_warnings} -Wuninitialized"
21134 build_warnings="${build_warnings} -Wuninitialized"
21137 # Up for debate: -Wswitch -Wcomment -trigraphs -Wtrigraphs
21138 # -Wunused-function -Wunused-variable -Wunused-value
21139 # -Wchar-subscripts -Wtraditional -Wshadow -Wcast-qual
21140 # -Wcast-align -Wwrite-strings -Wconversion -Wstrict-prototypes
21141 # -Wmissing-prototypes -Wmissing-declarations -Wredundant-decls
21142 # -Woverloaded-virtual -Winline -Werror"
21143 # Check whether --enable-build-warnings or --disable-build-warnings was given.
21144 if test "${enable_build_warnings+set}" = set; then
21145 enableval="$enable_build_warnings"
21146 case "${enableval}" in
21148 no) build_warnings="-w";;
21149 ,*) t=`echo "${enableval}" | sed -e "s/,/ /g"`
21150 build_warnings="${build_warnings} ${t}";;
21151 *,) t=`echo "${enableval}" | sed -e "s/,/ /g"`
21152 build_warnings="${t} ${build_warnings}";;
21153 *) build_warnings=`echo "${enableval}" | sed -e "s/,/ /g"`;;
21155 if test x"$silent" != x"yes" && test x"$build_warnings" != x""; then
21156 echo "Setting compiler warning flags = $build_warnings" 6>&1
21158 fi; # Check whether --enable-gdb-build-warnings or --disable-gdb-build-warnings was given.
21159 if test "${enable_gdb_build_warnings+set}" = set; then
21160 enableval="$enable_gdb_build_warnings"
21161 case "${enableval}" in
21163 no) build_warnings="-w";;
21164 ,*) t=`echo "${enableval}" | sed -e "s/,/ /g"`
21165 build_warnings="${build_warnings} ${t}";;
21166 *,) t=`echo "${enableval}" | sed -e "s/,/ /g"`
21167 build_warnings="${t} ${build_warnings}";;
21168 *) build_warnings=`echo "${enableval}" | sed -e "s/,/ /g"`;;
21170 if test x"$silent" != x"yes" && test x"$build_warnings" != x""; then
21171 echo "Setting GDB specific compiler warning flags = $build_warnings" 6>&1
21174 if test "x${build_warnings}" != x -a "x$GCC" = xyes
21176 echo "$as_me:$LINENO: checking compiler warning flags" >&5
21177 echo $ECHO_N "checking compiler warning flags... $ECHO_C" >&6
21178 # Separate out the -Werror flag as some files just cannot be
21179 # compiled with it enabled.
21180 for w in ${build_warnings}; do
21182 -Werr*) WERROR_CFLAGS=-Werror ;;
21183 *) # Check that GCC accepts it
21184 saved_CFLAGS="$CFLAGS"
21185 CFLAGS="$CFLAGS $w"
21186 cat >conftest.$ac_ext <<_ACEOF
21189 cat confdefs.h >>conftest.$ac_ext
21190 cat >>conftest.$ac_ext <<_ACEOF
21191 /* end confdefs.h. */
21201 rm -f conftest.$ac_objext
21202 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
21203 (eval $ac_compile) 2>conftest.er1
21205 grep -v '^ *+' conftest.er1 >conftest.err
21207 cat conftest.err >&5
21208 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21209 (exit $ac_status); } &&
21210 { ac_try='test -z "$ac_c_werror_flag"
21211 || test ! -s conftest.err'
21212 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21213 (eval $ac_try) 2>&5
21215 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21216 (exit $ac_status); }; } &&
21217 { ac_try='test -s conftest.$ac_objext'
21218 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21219 (eval $ac_try) 2>&5
21221 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21222 (exit $ac_status); }; }; then
21223 WARN_CFLAGS="${WARN_CFLAGS} $w"
21225 echo "$as_me: failed program was:" >&5
21226 sed 's/^/| /' conftest.$ac_ext >&5
21229 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
21230 CFLAGS="$saved_CFLAGS"
21233 echo "$as_me:$LINENO: result: ${WARN_CFLAGS}${WERROR_CFLAGS}" >&5
21234 echo "${ECHO_T}${WARN_CFLAGS}${WERROR_CFLAGS}" >&6
21239 # In the Cygwin environment, we need some additional flags.
21240 echo "$as_me:$LINENO: checking for cygwin" >&5
21241 echo $ECHO_N "checking for cygwin... $ECHO_C" >&6
21242 if test "${gdb_cv_os_cygwin+set}" = set; then
21243 echo $ECHO_N "(cached) $ECHO_C" >&6
21245 cat >conftest.$ac_ext <<_ACEOF
21248 cat confdefs.h >>conftest.$ac_ext
21249 cat >>conftest.$ac_ext <<_ACEOF
21250 /* end confdefs.h. */
21252 #if defined (__CYGWIN__) || defined (__CYGWIN32__)
21256 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
21257 $EGREP "lose" >/dev/null 2>&1; then
21258 gdb_cv_os_cygwin=yes
21260 gdb_cv_os_cygwin=no
21265 echo "$as_me:$LINENO: result: $gdb_cv_os_cygwin" >&5
21266 echo "${ECHO_T}$gdb_cv_os_cygwin" >&6
21269 SER_HARDWIRE="ser-base.o ser-unix.o ser-pipe.o ser-tcp.o"
21271 *go32* ) SER_HARDWIRE=ser-go32.o ;;
21272 *djgpp* ) SER_HARDWIRE=ser-go32.o ;;
21273 *mingw32*) SER_HARDWIRE="ser-base.o ser-tcp.o ser-mingw.o" ;;
21277 # libreadline needs libuser32.a in a cygwin environment
21279 if test x$gdb_cv_os_cygwin = xyes; then
21280 WIN32LIBS="-luser32"
21281 case "${target}" in
21282 *cygwin*) WIN32LIBS="$WIN32LIBS -limagehlp"
21287 # The ser-tcp.c module requires sockets.
21291 cat >>confdefs.h <<\_ACEOF
21292 #define USE_WIN32API 1
21295 WIN32LIBS="$WIN32LIBS -lws2_32"
21300 # Add any host-specific objects to GDB.
21301 CONFIG_OBS="${CONFIG_OBS} ${gdb_host_obs}"
21303 LIBGUI="../libgui/src/libgui.a"
21304 GUI_CFLAGS_X="-I${srcdir}/../libgui/src"
21322 if test "${enable_gdbtk}" = "yes"; then
21324 # Gdbtk must have an absolute path to srcdir in order to run
21325 # properly when not installed.
21328 GDBTK_SRC_DIR=`pwd`
21333 # Ok, lets find the tcl configuration
21334 # First, look for one uninstalled.
21335 # the alternative search directory is invoked by --with-tclconfig
21338 if test x"${no_tcl}" = x ; then
21339 # we reset no_tcl in case something fails here
21342 # Check whether --with-tclconfig or --without-tclconfig was given.
21343 if test "${with_tclconfig+set}" = set; then
21344 withval="$with_tclconfig"
21345 with_tclconfig=${withval}
21347 echo "$as_me:$LINENO: checking for Tcl configuration" >&5
21348 echo $ECHO_N "checking for Tcl configuration... $ECHO_C" >&6
21349 if test "${ac_cv_c_tclconfig+set}" = set; then
21350 echo $ECHO_N "(cached) $ECHO_C" >&6
21354 # First check to see if --with-tclconfig was specified.
21355 if test x"${with_tclconfig}" != x ; then
21356 if test -f "${with_tclconfig}/tclConfig.sh" ; then
21357 ac_cv_c_tclconfig=`(cd ${with_tclconfig}; pwd)`
21359 { { echo "$as_me:$LINENO: error: ${with_tclconfig} directory doesn't contain tclConfig.sh" >&5
21360 echo "$as_me: error: ${with_tclconfig} directory doesn't contain tclConfig.sh" >&2;}
21361 { (exit 1); exit 1; }; }
21365 # then check for a private Tcl installation
21366 if test x"${ac_cv_c_tclconfig}" = x ; then
21369 `ls -dr ../tcl[7-9]* 2>/dev/null` \
21371 `ls -dr ../../tcl[7-9]* 2>/dev/null` \
21373 `ls -dr ../../../tcl[7-9]* 2>/dev/null` ; do
21374 if test -f "$i/${configdir}/tclConfig.sh" ; then
21375 ac_cv_c_tclconfig=`(cd $i/${configdir}; pwd)`
21380 # check in a few common install locations
21381 if test x"${ac_cv_c_tclconfig}" = x ; then
21382 for i in `ls -d ${prefix}/lib /usr/local/lib 2>/dev/null` ; do
21383 if test -f "$i/tclConfig.sh" ; then
21384 ac_cv_c_tclconfig=`(cd $i; pwd)`
21389 # check in a few other private locations
21390 if test x"${ac_cv_c_tclconfig}" = x ; then
21393 `ls -dr ${srcdir}/../tcl[7-9]* 2>/dev/null` ; do
21394 if test -f "$i/${configdir}/tclConfig.sh" ; then
21395 ac_cv_c_tclconfig=`(cd $i/${configdir}; pwd)`
21403 if test x"${ac_cv_c_tclconfig}" = x ; then
21404 TCLCONFIG="# no Tcl configs found"
21405 { echo "$as_me:$LINENO: WARNING: Can't find Tcl configuration definitions" >&5
21406 echo "$as_me: WARNING: Can't find Tcl configuration definitions" >&2;}
21409 TCLCONFIG=${ac_cv_c_tclconfig}/tclConfig.sh
21410 echo "$as_me:$LINENO: result: found $TCLCONFIG" >&5
21411 echo "${ECHO_T}found $TCLCONFIG" >&6
21415 if test -z "${no_tcl}"; then
21446 # Ok, lets find the tk configuration
21447 # First, look for one uninstalled.
21448 # the alternative search directory is invoked by --with-tkconfig
21451 if test x"${no_tk}" = x ; then
21452 # we reset no_tk in case something fails here
21455 # Check whether --with-tkconfig or --without-tkconfig was given.
21456 if test "${with_tkconfig+set}" = set; then
21457 withval="$with_tkconfig"
21458 with_tkconfig=${withval}
21460 echo "$as_me:$LINENO: checking for Tk configuration" >&5
21461 echo $ECHO_N "checking for Tk configuration... $ECHO_C" >&6
21462 if test "${ac_cv_c_tkconfig+set}" = set; then
21463 echo $ECHO_N "(cached) $ECHO_C" >&6
21467 # First check to see if --with-tkconfig was specified.
21468 if test x"${with_tkconfig}" != x ; then
21469 if test -f "${with_tkconfig}/tkConfig.sh" ; then
21470 ac_cv_c_tkconfig=`(cd ${with_tkconfig}; pwd)`
21472 { { echo "$as_me:$LINENO: error: ${with_tkconfig} directory doesn't contain tkConfig.sh" >&5
21473 echo "$as_me: error: ${with_tkconfig} directory doesn't contain tkConfig.sh" >&2;}
21474 { (exit 1); exit 1; }; }
21478 # then check for a private Tk library
21479 if test x"${ac_cv_c_tkconfig}" = x ; then
21482 `ls -dr ../tk[4-9]* 2>/dev/null` \
21484 `ls -dr ../../tk[4-9]* 2>/dev/null` \
21486 `ls -dr ../../../tk[4-9]* 2>/dev/null` ; do
21487 if test -f "$i/${configdir}/tkConfig.sh" ; then
21488 ac_cv_c_tkconfig=`(cd $i/${configdir}; pwd)`
21493 # check in a few common install locations
21494 if test x"${ac_cv_c_tkconfig}" = x ; then
21495 for i in `ls -d ${prefix}/lib /usr/local/lib 2>/dev/null` ; do
21496 if test -f "$i/tkConfig.sh" ; then
21497 ac_cv_c_tkconfig=`(cd $i; pwd)`
21502 # check in a few other private locations
21503 if test x"${ac_cv_c_tkconfig}" = x ; then
21506 `ls -dr ${srcdir}/../tk[4-9]* 2>/dev/null` ; do
21507 if test -f "$i/${configdir}/tkConfig.sh" ; then
21508 ac_cv_c_tkconfig=`(cd $i/${configdir}; pwd)`
21516 if test x"${ac_cv_c_tkconfig}" = x ; then
21517 TKCONFIG="# no Tk configs found"
21518 { echo "$as_me:$LINENO: WARNING: Can't find Tk configuration definitions" >&5
21519 echo "$as_me: WARNING: Can't find Tk configuration definitions" >&2;}
21522 TKCONFIG=${ac_cv_c_tkconfig}/tkConfig.sh
21523 echo "$as_me:$LINENO: result: found $TKCONFIG" >&5
21524 echo "${ECHO_T}found $TKCONFIG" >&6
21530 # now look for Tcl library stuff
21532 tcldir="../tcl/${configdir}/"
21534 TCL_DEPS="${tcldir}${TCL_LIB_FILE}"
21536 # If $no_tk is nonempty, then we can't do Tk, and there is no
21537 # point to doing Tcl.
21538 if test -z "${no_tk}"; then
21540 if test -f "$TKCONFIG" ; then
21558 # Ok, lets find the tcl source trees so we can use the headers
21559 # Warning: transition of version 9 to 10 will break this algorithm
21560 # because 10 sorts before 9. We also look for just tcl. We have to
21561 # be careful that we don't match stuff like tclX by accident.
21562 # the alternative search directory is involked by --with-tclinclude
21566 echo "$as_me:$LINENO: checking for Tcl private headers. dir=${configdir}" >&5
21567 echo $ECHO_N "checking for Tcl private headers. dir=${configdir}... $ECHO_C" >&6
21569 # Check whether --with-tclinclude or --without-tclinclude was given.
21570 if test "${with_tclinclude+set}" = set; then
21571 withval="$with_tclinclude"
21572 with_tclinclude=${withval}
21574 if test "${ac_cv_c_tclh+set}" = set; then
21575 echo $ECHO_N "(cached) $ECHO_C" >&6
21578 # first check to see if --with-tclinclude was specified
21579 if test x"${with_tclinclude}" != x ; then
21580 if test -f ${with_tclinclude}/tclInt.h ; then
21581 ac_cv_c_tclh=`(cd ${with_tclinclude}; pwd)`
21582 elif test -f ${with_tclinclude}/generic/tclInt.h ; then
21583 ac_cv_c_tclh=`(cd ${with_tclinclude}/generic; pwd)`
21585 { { echo "$as_me:$LINENO: error: ${with_tclinclude} directory doesn't contain private headers" >&5
21586 echo "$as_me: error: ${with_tclinclude} directory doesn't contain private headers" >&2;}
21587 { (exit 1); exit 1; }; }
21591 # next check if it came with Tcl configuration file
21592 if test x"${ac_cv_c_tclconfig}" = x ; then
21593 if test -f $ac_cv_c_tclconfig/../generic/tclInt.h ; then
21594 ac_cv_c_tclh=`(cd $ac_cv_c_tclconfig/..; pwd)`
21598 # next check in private source directory
21600 # since ls returns lowest version numbers first, reverse its output
21601 if test x"${ac_cv_c_tclh}" = x ; then
21604 `ls -dr ${srcdir}/../tcl[7-9]* 2>/dev/null` \
21605 ${srcdir}/../../tcl \
21606 `ls -dr ${srcdir}/../../tcl[7-9]* 2>/dev/null` \
21607 ${srcdir}/../../../tcl \
21608 `ls -dr ${srcdir}/../../../tcl[7-9]* 2>/dev/null ` ; do
21609 if test -f $i/generic/tclInt.h ; then
21610 ac_cv_c_tclh=`(cd $i/generic; pwd)`
21615 # finally check in a few common install locations
21617 # since ls returns lowest version numbers first, reverse its output
21618 if test x"${ac_cv_c_tclh}" = x ; then
21620 `ls -dr /usr/local/src/tcl[7-9]* 2>/dev/null` \
21621 `ls -dr /usr/local/lib/tcl[7-9]* 2>/dev/null` \
21622 /usr/local/src/tcl \
21623 /usr/local/lib/tcl \
21624 ${prefix}/include ; do
21625 if test -f $i/generic/tclInt.h ; then
21626 ac_cv_c_tclh=`(cd $i/generic; pwd)`
21631 # see if one is installed
21632 if test x"${ac_cv_c_tclh}" = x ; then
21633 if test "${ac_cv_header_tclInt_h+set}" = set; then
21634 echo "$as_me:$LINENO: checking for tclInt.h" >&5
21635 echo $ECHO_N "checking for tclInt.h... $ECHO_C" >&6
21636 if test "${ac_cv_header_tclInt_h+set}" = set; then
21637 echo $ECHO_N "(cached) $ECHO_C" >&6
21639 echo "$as_me:$LINENO: result: $ac_cv_header_tclInt_h" >&5
21640 echo "${ECHO_T}$ac_cv_header_tclInt_h" >&6
21642 # Is the header compilable?
21643 echo "$as_me:$LINENO: checking tclInt.h usability" >&5
21644 echo $ECHO_N "checking tclInt.h usability... $ECHO_C" >&6
21645 cat >conftest.$ac_ext <<_ACEOF
21648 cat confdefs.h >>conftest.$ac_ext
21649 cat >>conftest.$ac_ext <<_ACEOF
21650 /* end confdefs.h. */
21651 $ac_includes_default
21652 #include <tclInt.h>
21654 rm -f conftest.$ac_objext
21655 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
21656 (eval $ac_compile) 2>conftest.er1
21658 grep -v '^ *+' conftest.er1 >conftest.err
21660 cat conftest.err >&5
21661 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21662 (exit $ac_status); } &&
21663 { ac_try='test -z "$ac_c_werror_flag"
21664 || test ! -s conftest.err'
21665 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21666 (eval $ac_try) 2>&5
21668 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21669 (exit $ac_status); }; } &&
21670 { ac_try='test -s conftest.$ac_objext'
21671 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21672 (eval $ac_try) 2>&5
21674 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21675 (exit $ac_status); }; }; then
21676 ac_header_compiler=yes
21678 echo "$as_me: failed program was:" >&5
21679 sed 's/^/| /' conftest.$ac_ext >&5
21681 ac_header_compiler=no
21683 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
21684 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
21685 echo "${ECHO_T}$ac_header_compiler" >&6
21687 # Is the header present?
21688 echo "$as_me:$LINENO: checking tclInt.h presence" >&5
21689 echo $ECHO_N "checking tclInt.h presence... $ECHO_C" >&6
21690 cat >conftest.$ac_ext <<_ACEOF
21693 cat confdefs.h >>conftest.$ac_ext
21694 cat >>conftest.$ac_ext <<_ACEOF
21695 /* end confdefs.h. */
21696 #include <tclInt.h>
21698 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
21699 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
21701 grep -v '^ *+' conftest.er1 >conftest.err
21703 cat conftest.err >&5
21704 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21705 (exit $ac_status); } >/dev/null; then
21706 if test -s conftest.err; then
21707 ac_cpp_err=$ac_c_preproc_warn_flag
21708 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
21715 if test -z "$ac_cpp_err"; then
21716 ac_header_preproc=yes
21718 echo "$as_me: failed program was:" >&5
21719 sed 's/^/| /' conftest.$ac_ext >&5
21721 ac_header_preproc=no
21723 rm -f conftest.err conftest.$ac_ext
21724 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
21725 echo "${ECHO_T}$ac_header_preproc" >&6
21727 # So? What about this header?
21728 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
21730 { echo "$as_me:$LINENO: WARNING: tclInt.h: accepted by the compiler, rejected by the preprocessor!" >&5
21731 echo "$as_me: WARNING: tclInt.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
21732 { echo "$as_me:$LINENO: WARNING: tclInt.h: proceeding with the compiler's result" >&5
21733 echo "$as_me: WARNING: tclInt.h: proceeding with the compiler's result" >&2;}
21734 ac_header_preproc=yes
21737 { echo "$as_me:$LINENO: WARNING: tclInt.h: present but cannot be compiled" >&5
21738 echo "$as_me: WARNING: tclInt.h: present but cannot be compiled" >&2;}
21739 { echo "$as_me:$LINENO: WARNING: tclInt.h: check for missing prerequisite headers?" >&5
21740 echo "$as_me: WARNING: tclInt.h: check for missing prerequisite headers?" >&2;}
21741 { echo "$as_me:$LINENO: WARNING: tclInt.h: see the Autoconf documentation" >&5
21742 echo "$as_me: WARNING: tclInt.h: see the Autoconf documentation" >&2;}
21743 { echo "$as_me:$LINENO: WARNING: tclInt.h: section \"Present But Cannot Be Compiled\"" >&5
21744 echo "$as_me: WARNING: tclInt.h: section \"Present But Cannot Be Compiled\"" >&2;}
21745 { echo "$as_me:$LINENO: WARNING: tclInt.h: proceeding with the preprocessor's result" >&5
21746 echo "$as_me: WARNING: tclInt.h: proceeding with the preprocessor's result" >&2;}
21747 { echo "$as_me:$LINENO: WARNING: tclInt.h: in the future, the compiler will take precedence" >&5
21748 echo "$as_me: WARNING: tclInt.h: in the future, the compiler will take precedence" >&2;}
21751 ## ------------------------------------------ ##
21752 ## Report this to the AC_PACKAGE_NAME lists. ##
21753 ## ------------------------------------------ ##
21756 sed "s/^/$as_me: WARNING: /" >&2
21759 echo "$as_me:$LINENO: checking for tclInt.h" >&5
21760 echo $ECHO_N "checking for tclInt.h... $ECHO_C" >&6
21761 if test "${ac_cv_header_tclInt_h+set}" = set; then
21762 echo $ECHO_N "(cached) $ECHO_C" >&6
21764 ac_cv_header_tclInt_h=$ac_header_preproc
21766 echo "$as_me:$LINENO: result: $ac_cv_header_tclInt_h" >&5
21767 echo "${ECHO_T}$ac_cv_header_tclInt_h" >&6
21770 if test $ac_cv_header_tclInt_h = yes; then
21771 ac_cv_c_tclh=installed
21781 if test x"${ac_cv_c_tclh}" = x ; then
21782 TCLHDIR="# no Tcl private headers found"
21783 { { echo "$as_me:$LINENO: error: Can't find Tcl private headers" >&5
21784 echo "$as_me: error: Can't find Tcl private headers" >&2;}
21785 { (exit 1); exit 1; }; }
21787 if test x"${ac_cv_c_tclh}" != x ; then
21789 if test x"${ac_cv_c_tclh}" = x"installed" ; then
21790 echo "$as_me:$LINENO: result: is installed" >&5
21791 echo "${ECHO_T}is installed" >&6
21794 echo "$as_me:$LINENO: result: found in ${ac_cv_c_tclh}" >&5
21795 echo "${ECHO_T}found in ${ac_cv_c_tclh}" >&6
21796 # this hack is cause the TCLHDIR won't print if there is a "-I" in it.
21797 TCLHDIR="-I${ac_cv_c_tclh}"
21805 # Ok, lets find the tk source trees so we can use the headers
21806 # If the directory (presumably symlink) named "tk" exists, use that one
21807 # in preference to any others. Same logic is used when choosing library
21808 # and again with Tcl. The search order is the best place to look first, then in
21809 # decreasing significance. The loop breaks if the trigger file is found.
21810 # Note the gross little conversion here of srcdir by cd'ing to the found
21811 # directory. This converts the path from a relative to an absolute, so
21812 # recursive cache variables for the path will work right. We check all
21813 # the possible paths in one loop rather than many seperate loops to speed
21815 # the alternative search directory is involked by --with-tkinclude
21818 echo "$as_me:$LINENO: checking for Tk private headers" >&5
21819 echo $ECHO_N "checking for Tk private headers... $ECHO_C" >&6
21821 # Check whether --with-tkinclude or --without-tkinclude was given.
21822 if test "${with_tkinclude+set}" = set; then
21823 withval="$with_tkinclude"
21824 with_tkinclude=${withval}
21826 if test "${ac_cv_c_tkh+set}" = set; then
21827 echo $ECHO_N "(cached) $ECHO_C" >&6
21830 # first check to see if --with-tkinclude was specified
21831 if test x"${with_tkinclude}" != x ; then
21832 if test -f ${with_tkinclude}/tk.h ; then
21833 ac_cv_c_tkh=`(cd ${with_tkinclude}; pwd)`
21834 elif test -f ${with_tkinclude}/generic/tk.h ; then
21835 ac_cv_c_tkh=`(cd ${with_tkinclude}/generic; pwd)`
21837 { { echo "$as_me:$LINENO: error: ${with_tkinclude} directory doesn't contain private headers" >&5
21838 echo "$as_me: error: ${with_tkinclude} directory doesn't contain private headers" >&2;}
21839 { (exit 1); exit 1; }; }
21843 # next check if it came with Tk configuration file
21844 if test x"${ac_cv_c_tkconfig}" = x ; then
21845 if test -f $ac_cv_c_tkconfig/../generic/tk.h ; then
21846 ac_cv_c_tkh=`(cd $ac_cv_c_tkconfig/..; pwd)`
21850 # next check in private source directory
21852 # since ls returns lowest version numbers first, reverse its output
21853 if test x"${ac_cv_c_tkh}" = x ; then
21856 `ls -dr ${srcdir}/../tk[4-9]* 2>/dev/null` \
21857 ${srcdir}/../../tk \
21858 `ls -dr ${srcdir}/../../tk[4-9]* 2>/dev/null` \
21859 ${srcdir}/../../../tk \
21860 `ls -dr ${srcdir}/../../../tk[4-9]* 2>/dev/null ` ; do
21861 if test -f $i/generic/tk.h ; then
21862 ac_cv_c_tkh=`(cd $i/generic; pwd)`
21867 # finally check in a few common install locations
21869 # since ls returns lowest version numbers first, reverse its output
21870 if test x"${ac_cv_c_tkh}" = x ; then
21872 `ls -dr /usr/local/src/tk[4-9]* 2>/dev/null` \
21873 `ls -dr /usr/local/lib/tk[4-9]* 2>/dev/null` \
21874 /usr/local/src/tk \
21875 /usr/local/lib/tk \
21876 ${prefix}/include ; do
21877 if test -f $i/generic/tk.h ; then
21878 ac_cv_c_tkh=`(cd $i/generic; pwd)`
21883 # see if one is installed
21884 if test x"${ac_cv_c_tkh}" = x ; then
21885 if test "${ac_cv_header_tk_h+set}" = set; then
21886 echo "$as_me:$LINENO: checking for tk.h" >&5
21887 echo $ECHO_N "checking for tk.h... $ECHO_C" >&6
21888 if test "${ac_cv_header_tk_h+set}" = set; then
21889 echo $ECHO_N "(cached) $ECHO_C" >&6
21891 echo "$as_me:$LINENO: result: $ac_cv_header_tk_h" >&5
21892 echo "${ECHO_T}$ac_cv_header_tk_h" >&6
21894 # Is the header compilable?
21895 echo "$as_me:$LINENO: checking tk.h usability" >&5
21896 echo $ECHO_N "checking tk.h usability... $ECHO_C" >&6
21897 cat >conftest.$ac_ext <<_ACEOF
21900 cat confdefs.h >>conftest.$ac_ext
21901 cat >>conftest.$ac_ext <<_ACEOF
21902 /* end confdefs.h. */
21903 $ac_includes_default
21906 rm -f conftest.$ac_objext
21907 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
21908 (eval $ac_compile) 2>conftest.er1
21910 grep -v '^ *+' conftest.er1 >conftest.err
21912 cat conftest.err >&5
21913 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21914 (exit $ac_status); } &&
21915 { ac_try='test -z "$ac_c_werror_flag"
21916 || test ! -s conftest.err'
21917 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21918 (eval $ac_try) 2>&5
21920 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21921 (exit $ac_status); }; } &&
21922 { ac_try='test -s conftest.$ac_objext'
21923 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21924 (eval $ac_try) 2>&5
21926 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21927 (exit $ac_status); }; }; then
21928 ac_header_compiler=yes
21930 echo "$as_me: failed program was:" >&5
21931 sed 's/^/| /' conftest.$ac_ext >&5
21933 ac_header_compiler=no
21935 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
21936 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
21937 echo "${ECHO_T}$ac_header_compiler" >&6
21939 # Is the header present?
21940 echo "$as_me:$LINENO: checking tk.h presence" >&5
21941 echo $ECHO_N "checking tk.h presence... $ECHO_C" >&6
21942 cat >conftest.$ac_ext <<_ACEOF
21945 cat confdefs.h >>conftest.$ac_ext
21946 cat >>conftest.$ac_ext <<_ACEOF
21947 /* end confdefs.h. */
21950 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
21951 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
21953 grep -v '^ *+' conftest.er1 >conftest.err
21955 cat conftest.err >&5
21956 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21957 (exit $ac_status); } >/dev/null; then
21958 if test -s conftest.err; then
21959 ac_cpp_err=$ac_c_preproc_warn_flag
21960 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
21967 if test -z "$ac_cpp_err"; then
21968 ac_header_preproc=yes
21970 echo "$as_me: failed program was:" >&5
21971 sed 's/^/| /' conftest.$ac_ext >&5
21973 ac_header_preproc=no
21975 rm -f conftest.err conftest.$ac_ext
21976 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
21977 echo "${ECHO_T}$ac_header_preproc" >&6
21979 # So? What about this header?
21980 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
21982 { echo "$as_me:$LINENO: WARNING: tk.h: accepted by the compiler, rejected by the preprocessor!" >&5
21983 echo "$as_me: WARNING: tk.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
21984 { echo "$as_me:$LINENO: WARNING: tk.h: proceeding with the compiler's result" >&5
21985 echo "$as_me: WARNING: tk.h: proceeding with the compiler's result" >&2;}
21986 ac_header_preproc=yes
21989 { echo "$as_me:$LINENO: WARNING: tk.h: present but cannot be compiled" >&5
21990 echo "$as_me: WARNING: tk.h: present but cannot be compiled" >&2;}
21991 { echo "$as_me:$LINENO: WARNING: tk.h: check for missing prerequisite headers?" >&5
21992 echo "$as_me: WARNING: tk.h: check for missing prerequisite headers?" >&2;}
21993 { echo "$as_me:$LINENO: WARNING: tk.h: see the Autoconf documentation" >&5
21994 echo "$as_me: WARNING: tk.h: see the Autoconf documentation" >&2;}
21995 { echo "$as_me:$LINENO: WARNING: tk.h: section \"Present But Cannot Be Compiled\"" >&5
21996 echo "$as_me: WARNING: tk.h: section \"Present But Cannot Be Compiled\"" >&2;}
21997 { echo "$as_me:$LINENO: WARNING: tk.h: proceeding with the preprocessor's result" >&5
21998 echo "$as_me: WARNING: tk.h: proceeding with the preprocessor's result" >&2;}
21999 { echo "$as_me:$LINENO: WARNING: tk.h: in the future, the compiler will take precedence" >&5
22000 echo "$as_me: WARNING: tk.h: in the future, the compiler will take precedence" >&2;}
22003 ## ------------------------------------------ ##
22004 ## Report this to the AC_PACKAGE_NAME lists. ##
22005 ## ------------------------------------------ ##
22008 sed "s/^/$as_me: WARNING: /" >&2
22011 echo "$as_me:$LINENO: checking for tk.h" >&5
22012 echo $ECHO_N "checking for tk.h... $ECHO_C" >&6
22013 if test "${ac_cv_header_tk_h+set}" = set; then
22014 echo $ECHO_N "(cached) $ECHO_C" >&6
22016 ac_cv_header_tk_h=$ac_header_preproc
22018 echo "$as_me:$LINENO: result: $ac_cv_header_tk_h" >&5
22019 echo "${ECHO_T}$ac_cv_header_tk_h" >&6
22022 if test $ac_cv_header_tk_h = yes; then
22023 ac_cv_c_tkh=installed
22033 if test x"${ac_cv_c_tkh}" != x ; then
22035 if test x"${ac_cv_c_tkh}" = x"installed" ; then
22036 echo "$as_me:$LINENO: result: is installed" >&5
22037 echo "${ECHO_T}is installed" >&6
22040 echo "$as_me:$LINENO: result: found in ${ac_cv_c_tkh}" >&5
22041 echo "${ECHO_T}found in ${ac_cv_c_tkh}" >&6
22042 # this hack is cause the TKHDIR won't print if there is a "-I" in it.
22043 TKHDIR="-I${ac_cv_c_tkh}"
22046 TKHDIR="# no Tk directory found"
22047 { echo "$as_me:$LINENO: WARNING: Can't find Tk private headers" >&5
22048 echo "$as_me: WARNING: Can't find Tk private headers" >&2;}
22055 echo "$as_me:$LINENO: checking for Itcl private headers. srcdir=${srcdir}" >&5
22056 echo $ECHO_N "checking for Itcl private headers. srcdir=${srcdir}... $ECHO_C" >&6
22057 if test x"${ac_cv_c_itclh}" = x ; then
22058 for i in ${srcdir}/../itcl ${srcdir}/../../itcl ${srcdir}/../../../itcl ${srcdir}/../itcl/itcl; do
22059 if test -f $i/generic/itcl.h ; then
22060 ac_cv_c_itclh=`(cd $i/generic; pwd)`
22065 if test x"${ac_cv_c_itclh}" = x ; then
22066 ITCLHDIR="# no Itcl private headers found"
22067 { { echo "$as_me:$LINENO: error: Can't find Itcl private headers" >&5
22068 echo "$as_me: error: Can't find Itcl private headers" >&2;}
22069 { (exit 1); exit 1; }; }
22071 if test x"${ac_cv_c_itclh}" != x ; then
22072 ITCLHDIR="-I${ac_cv_c_itclh}"
22074 # should always be here
22075 # ITCLLIB="../itcl/itcl/unix/libitcl.a"
22080 echo "$as_me:$LINENO: checking for Itk private headers. srcdir=${srcdir}" >&5
22081 echo $ECHO_N "checking for Itk private headers. srcdir=${srcdir}... $ECHO_C" >&6
22082 if test x"${ac_cv_c_itkh}" = x ; then
22083 for i in ${srcdir}/../itcl ${srcdir}/../../itcl ${srcdir}/../../../itcl ${srcdir}/../itcl/itk; do
22084 if test -f $i/generic/itk.h ; then
22085 ac_cv_c_itkh=`(cd $i/generic; pwd)`
22090 if test x"${ac_cv_c_itkh}" = x ; then
22091 ITKHDIR="# no Itk private headers found"
22092 { { echo "$as_me:$LINENO: error: Can't find Itk private headers" >&5
22093 echo "$as_me: error: Can't find Itk private headers" >&2;}
22094 { (exit 1); exit 1; }; }
22096 if test x"${ac_cv_c_itkh}" != x ; then
22097 ITKHDIR="-I${ac_cv_c_itkh}"
22099 # should always be here
22100 # ITKLIB="../itcl/itk/unix/libitk.a"
22106 # now look for Tk library stuff
22108 tkdir="../tk/${configdir}/"
22110 TK_DEPS="${tkdir}${TK_LIB_FILE}"
22112 # now look for Itcl library stuff
22116 # Ok, lets find the itcl configuration
22117 # First, look for one uninstalled.
22118 # the alternative search directory is invoked by --with-itclconfig
22121 if test x"${no_itcl}" = x ; then
22122 # we reset no_itcl in case something fails here
22125 # Check whether --with-itclconfig or --without-itclconfig was given.
22126 if test "${with_itclconfig+set}" = set; then
22127 withval="$with_itclconfig"
22128 with_itclconfig=${withval}
22130 echo "$as_me:$LINENO: checking for Itcl configuration" >&5
22131 echo $ECHO_N "checking for Itcl configuration... $ECHO_C" >&6
22132 if test "${ac_cv_c_itclconfig+set}" = set; then
22133 echo $ECHO_N "(cached) $ECHO_C" >&6
22137 # First check to see if --with-itclconfig was specified.
22138 if test x"${with_itclconfig}" != x ; then
22139 if test -f "${with_itclconfig}/itclConfig.sh" ; then
22140 ac_cv_c_itclconfig=`(cd ${with_itclconfig}; pwd)`
22142 { { echo "$as_me:$LINENO: error: ${with_itclconfig} directory doesn't contain itclConfig.sh" >&5
22143 echo "$as_me: error: ${with_itclconfig} directory doesn't contain itclConfig.sh" >&2;}
22144 { (exit 1); exit 1; }; }
22148 # then check for a private Itcl library
22149 if test x"${ac_cv_c_itclconfig}" = x ; then
22152 `ls -dr ../itcl[4-9]*/itcl 2>/dev/null` \
22154 `ls -dr ../../itcl[4-9]*/itcl 2>/dev/null` \
22156 `ls -dr ../../../itcl[4-9]*/itcl 2>/dev/null` ; do
22157 if test -f "$i/itclConfig.sh" ; then
22158 ac_cv_c_itclconfig=`(cd $i; pwd)`
22163 # check in a few common install locations
22164 if test x"${ac_cv_c_itclconfig}" = x ; then
22165 for i in `ls -d ${prefix}/lib /usr/local/lib 2>/dev/null` ; do
22166 if test -f "$i/itclConfig.sh" ; then
22167 ac_cv_c_itclconfig=`(cd $i; pwd)`
22172 # check in a few other private locations
22173 if test x"${ac_cv_c_itclconfig}" = x ; then
22175 ${srcdir}/../itcl/itcl \
22176 `ls -dr ${srcdir}/../itcl[4-9]*/itcl 2>/dev/null` ; do
22177 if test -f "$i/itclConfig.sh" ; then
22178 ac_cv_c_itclconfig=`(cd $i; pwd)`
22186 if test x"${ac_cv_c_itclconfig}" = x ; then
22187 ITCLCONFIG="# no Itcl configs found"
22188 { echo "$as_me:$LINENO: WARNING: Can't find Itcl configuration definitions" >&5
22189 echo "$as_me: WARNING: Can't find Itcl configuration definitions" >&2;}
22192 ITCLCONFIG=${ac_cv_c_itclconfig}/itclConfig.sh
22193 echo "$as_me:$LINENO: result: found $ITCLCONFIG" >&5
22194 echo "${ECHO_T}found $ITCLCONFIG" >&6
22198 if test -z "${no_itcl}"; then
22200 if test -f "$ITCLCONFIG" ; then
22215 ITCLLIB="${ITCL_BUILD_LIB_SPEC}"
22216 ITCL_DEPS="${ITCL_LIB_FULL_PATH}"
22220 # now look for Itk library stuff
22223 # Ok, lets find the itk configuration
22224 # First, look for one uninstalled.
22225 # the alternative search directory is invoked by --with-itkconfig
22228 if test x"${no_itk}" = x ; then
22229 # we reset no_itk in case something fails here
22232 # Check whether --with-itkconfig or --without-itkconfig was given.
22233 if test "${with_itkconfig+set}" = set; then
22234 withval="$with_itkconfig"
22235 with_itkconfig=${withval}
22237 echo "$as_me:$LINENO: checking for Itk configuration" >&5
22238 echo $ECHO_N "checking for Itk configuration... $ECHO_C" >&6
22239 if test "${ac_cv_c_itkconfig+set}" = set; then
22240 echo $ECHO_N "(cached) $ECHO_C" >&6
22244 # First check to see if --with-itkconfig was specified.
22245 if test x"${with_itkconfig}" != x ; then
22246 if test -f "${with_itkconfig}/itkConfig.sh" ; then
22247 ac_cv_c_itkconfig=`(cd ${with_itkconfig}; pwd)`
22249 { { echo "$as_me:$LINENO: error: ${with_itkconfig} directory doesn't contain itkConfig.sh" >&5
22250 echo "$as_me: error: ${with_itkconfig} directory doesn't contain itkConfig.sh" >&2;}
22251 { (exit 1); exit 1; }; }
22255 # then check for a private Itk library
22256 if test x"${ac_cv_c_itkconfig}" = x ; then
22259 `ls -dr ../itcl[4-9]*/itk 2>/dev/null` \
22261 `ls -dr ../../itcl[4-9]*/itk 2>/dev/null` \
22263 `ls -dr ../../../itcl[4-9]*/itk 2>/dev/null` ; do
22264 if test -f "$i/itkConfig.sh" ; then
22265 ac_cv_c_itkconfig=`(cd $i; pwd)`
22270 # check in a few common install locations
22271 if test x"${ac_cv_c_itkconfig}" = x ; then
22272 for i in `ls -d ${prefix}/lib /usr/local/lib 2>/dev/null` ; do
22273 if test -f "$i/itkConfig.sh" ; then
22274 ac_cv_c_itkconfig=`(cd $i; pwd)`
22279 # check in a few other private locations
22280 if test x"${ac_cv_c_itkconfig}" = x ; then
22282 ${srcdir}/../itcl/itk \
22283 `ls -dr ${srcdir}/../itcl[4-9]*/itk 2>/dev/null` ; do
22284 if test -f "$i/itkConfig.sh" ; then
22285 ac_cv_c_itkconfig=`(cd $i; pwd)`
22293 if test x"${ac_cv_c_itkconfig}" = x ; then
22294 ITKCONFIG="# no Itk configs found"
22295 { echo "$as_me:$LINENO: WARNING: Can't find Itk configuration definitions" >&5
22296 echo "$as_me: WARNING: Can't find Itk configuration definitions" >&2;}
22299 ITKCONFIG=${ac_cv_c_itkconfig}/itkConfig.sh
22300 echo "$as_me:$LINENO: result: found $ITKCONFIG" >&5
22301 echo "${ECHO_T}found $ITKCONFIG" >&6
22306 if test -z "${no_itcl}"; then
22308 if test -f "$ITKCONFIG" ; then
22323 ITKLIB="${ITK_BUILD_LIB_SPEC}"
22324 ITK_DEPS="${ITK_LIB_FULL_PATH}"
22327 ENABLE_CFLAGS="${ENABLE_CFLAGS} \$(SUBDIR_GDBTK_CFLAGS)"
22329 # Include some libraries that Tcl and Tk want.
22330 TCL_LIBS='$(LIBGUI) $(ITCL) $(ITK) $(TK) $(TCL) $(X11_LDFLAGS) $(X11_LIBS)'
22331 # Yes, the ordering seems wrong here. But it isn't.
22332 # TK_LIBS is the list of libraries that need to be linked
22333 # after Tcl/Tk. Note that this isn't put into LIBS. If it
22334 # were in LIBS then any link tests after this point would
22335 # try to include things like `$(LIBGUI)', which wouldn't work.
22336 GDBTKLIBS="${TCL_LIBS} ${TK_LIBS}"
22338 CONFIG_OBS="${CONFIG_OBS} \$(SUBDIR_GDBTK_OBS)"
22339 CONFIG_DEPS="${CONFIG_DEPS} \$(SUBDIR_GDBTK_DEPS)"
22340 CONFIG_SRCS="${CONFIG_SRCS} \$(SUBDIR_GDBTK_SRCS)"
22341 CONFIG_ALL="${CONFIG_ALL} all-gdbtk"
22342 CONFIG_CLEAN="${CONFIG_CLEAN} clean-gdbtk"
22343 CONFIG_INSTALL="${CONFIG_INSTALL} install-gdbtk"
22344 CONFIG_UNINSTALL="${CONFIG_UNINSTALL} uninstall-gdbtk"
22346 if test x$gdb_cv_os_cygwin = xyes; then
22347 WIN32LIBS="${WIN32LIBS} -lshell32 -lgdi32 -lcomdlg32 -ladvapi32"
22348 WIN32LDAPP="-Wl,--subsystem,console"
22349 CONFIG_OBS="${CONFIG_OBS} gdbres.o"
22356 subdirs="$subdirs gdbtk"
22373 echo "$as_me:$LINENO: checking for X" >&5
22374 echo $ECHO_N "checking for X... $ECHO_C" >&6
22377 # Check whether --with-x or --without-x was given.
22378 if test "${with_x+set}" = set; then
22382 # $have_x is `yes', `no', `disabled', or empty when we do not yet know.
22383 if test "x$with_x" = xno; then
22384 # The user explicitly disabled X.
22387 if test "x$x_includes" != xNONE && test "x$x_libraries" != xNONE; then
22388 # Both variables are already set.
22391 if test "${ac_cv_have_x+set}" = set; then
22392 echo $ECHO_N "(cached) $ECHO_C" >&6
22394 # One or both of the vars are not set, and there is no cached value.
22395 ac_x_includes=no ac_x_libraries=no
22396 rm -fr conftest.dir
22397 if mkdir conftest.dir; then
22399 # Make sure to not put "make" in the Imakefile rules, since we grep it out.
22400 cat >Imakefile <<'_ACEOF'
22402 @echo 'ac_im_incroot="${INCROOT}"; ac_im_usrlibdir="${USRLIBDIR}"; ac_im_libdir="${LIBDIR}"'
22404 if (xmkmf) >/dev/null 2>/dev/null && test -f Makefile; then
22405 # GNU make sometimes prints "make[1]: Entering...", which would confuse us.
22406 eval `${MAKE-make} acfindx 2>/dev/null | grep -v make`
22407 # Open Windows xmkmf reportedly sets LIBDIR instead of USRLIBDIR.
22408 for ac_extension in a so sl; do
22409 if test ! -f $ac_im_usrlibdir/libX11.$ac_extension &&
22410 test -f $ac_im_libdir/libX11.$ac_extension; then
22411 ac_im_usrlibdir=$ac_im_libdir; break
22414 # Screen out bogus values from the imake configuration. They are
22415 # bogus both because they are the default anyway, and because
22416 # using them would break gcc on systems where it needs fixed includes.
22417 case $ac_im_incroot in
22419 *) test -f "$ac_im_incroot/X11/Xos.h" && ac_x_includes=$ac_im_incroot;;
22421 case $ac_im_usrlibdir in
22422 /usr/lib | /lib) ;;
22423 *) test -d "$ac_im_usrlibdir" && ac_x_libraries=$ac_im_usrlibdir ;;
22427 rm -fr conftest.dir
22430 # Standard set of common directories for X headers.
22431 # Check X11 before X11Rn because it is often a symlink to the current release.
22443 /usr/local/X11/include
22444 /usr/local/X11R6/include
22445 /usr/local/X11R5/include
22446 /usr/local/X11R4/include
22448 /usr/local/include/X11
22449 /usr/local/include/X11R6
22450 /usr/local/include/X11R5
22451 /usr/local/include/X11R4
22455 /usr/XFree86/include/X11
22459 /usr/unsupported/include
22460 /usr/athena/include
22461 /usr/local/x11r5/include
22462 /usr/lpp/Xamples/include
22464 /usr/openwin/include
22465 /usr/openwin/share/include'
22467 if test "$ac_x_includes" = no; then
22468 # Guess where to find include files, by looking for Intrinsic.h.
22469 # First, try using that file with no special directory specified.
22470 cat >conftest.$ac_ext <<_ACEOF
22473 cat confdefs.h >>conftest.$ac_ext
22474 cat >>conftest.$ac_ext <<_ACEOF
22475 /* end confdefs.h. */
22476 #include <X11/Intrinsic.h>
22478 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
22479 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
22481 grep -v '^ *+' conftest.er1 >conftest.err
22483 cat conftest.err >&5
22484 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22485 (exit $ac_status); } >/dev/null; then
22486 if test -s conftest.err; then
22487 ac_cpp_err=$ac_c_preproc_warn_flag
22488 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
22495 if test -z "$ac_cpp_err"; then
22496 # We can compile using X headers with no special include directory.
22499 echo "$as_me: failed program was:" >&5
22500 sed 's/^/| /' conftest.$ac_ext >&5
22502 for ac_dir in $ac_x_header_dirs; do
22503 if test -r "$ac_dir/X11/Intrinsic.h"; then
22504 ac_x_includes=$ac_dir
22509 rm -f conftest.err conftest.$ac_ext
22510 fi # $ac_x_includes = no
22512 if test "$ac_x_libraries" = no; then
22513 # Check for the libraries.
22514 # See if we find them without any special options.
22515 # Don't add to $LIBS permanently.
22518 cat >conftest.$ac_ext <<_ACEOF
22521 cat confdefs.h >>conftest.$ac_ext
22522 cat >>conftest.$ac_ext <<_ACEOF
22523 /* end confdefs.h. */
22524 #include <X11/Intrinsic.h>
22533 rm -f conftest.$ac_objext conftest$ac_exeext
22534 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
22535 (eval $ac_link) 2>conftest.er1
22537 grep -v '^ *+' conftest.er1 >conftest.err
22539 cat conftest.err >&5
22540 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22541 (exit $ac_status); } &&
22542 { ac_try='test -z "$ac_c_werror_flag"
22543 || test ! -s conftest.err'
22544 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
22545 (eval $ac_try) 2>&5
22547 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22548 (exit $ac_status); }; } &&
22549 { ac_try='test -s conftest$ac_exeext'
22550 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
22551 (eval $ac_try) 2>&5
22553 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22554 (exit $ac_status); }; }; then
22556 # We can link X programs with no special library path.
22559 echo "$as_me: failed program was:" >&5
22560 sed 's/^/| /' conftest.$ac_ext >&5
22563 for ac_dir in `echo "$ac_x_includes $ac_x_header_dirs" | sed s/include/lib/g`
22565 # Don't even attempt the hair of trying to link an X program!
22566 for ac_extension in a so sl; do
22567 if test -r $ac_dir/libXt.$ac_extension; then
22568 ac_x_libraries=$ac_dir
22574 rm -f conftest.err conftest.$ac_objext \
22575 conftest$ac_exeext conftest.$ac_ext
22576 fi # $ac_x_libraries = no
22578 if test "$ac_x_includes" = no || test "$ac_x_libraries" = no; then
22579 # Didn't find X anywhere. Cache the known absence of X.
22580 ac_cv_have_x="have_x=no"
22582 # Record where we found X for the cache.
22583 ac_cv_have_x="have_x=yes \
22584 ac_x_includes=$ac_x_includes ac_x_libraries=$ac_x_libraries"
22589 eval "$ac_cv_have_x"
22592 if test "$have_x" != yes; then
22593 echo "$as_me:$LINENO: result: $have_x" >&5
22594 echo "${ECHO_T}$have_x" >&6
22597 # If each of the values was on the command line, it overrides each guess.
22598 test "x$x_includes" = xNONE && x_includes=$ac_x_includes
22599 test "x$x_libraries" = xNONE && x_libraries=$ac_x_libraries
22600 # Update the cache value to reflect the command line values.
22601 ac_cv_have_x="have_x=yes \
22602 ac_x_includes=$x_includes ac_x_libraries=$x_libraries"
22603 echo "$as_me:$LINENO: result: libraries $x_libraries, headers $x_includes" >&5
22604 echo "${ECHO_T}libraries $x_libraries, headers $x_includes" >&6
22608 # Check whether we should enable the TUI, but only do so if we really
22610 if test x"$enable_tui" = xyes; then
22611 if test -d $srcdir/tui; then
22612 if test "$ac_cv_search_waddstr" != no; then
22613 CONFIG_OBS="$CONFIG_OBS \$(SUBDIR_TUI_OBS)"
22614 CONFIG_DEPS="$CONFIG_DEPS \$(SUBDIR_TUI_DEPS)"
22615 CONFIG_SRCS="$CONFIG_SRCS \$(SUBDIR_TUI_SRCS)"
22616 CONFIG_INITS="$CONFIG_INITS \$(SUBDIR_TUI_INITS)"
22617 ENABLE_CFLAGS="$ENABLE_CFLAGS \$(SUBDIR_TUI_CFLAGS)"
22618 CONFIG_ALL="${CONFIG_ALL} all-tui"
22619 CONFIG_CLEAN="${CONFIG_CLEAN} clean-tui"
22620 CONFIG_INSTALL="${CONFIG_INSTALL} install-tui"
22621 CONFIG_UNINSTALL="${CONFIG_UNINSTALL} uninstall-tui"
22623 { echo "$as_me:$LINENO: WARNING: no enhanced curses library found; disabling TUI" >&5
22624 echo "$as_me: WARNING: no enhanced curses library found; disabling TUI" >&2;}
22629 # Unlike the sim directory, whether a simulator is linked is controlled by
22630 # presence of a SIM= and a SIM_OBS= definition in the target '.mt' file.
22631 # This code just checks for a few cases where we'd like to ignore those
22632 # definitions, even when they're present in the '.mt' file. These cases
22633 # are when --disable-sim is specified, or if the simulator directory is
22634 # not part of the source tree.
22636 # Check whether --enable-sim or --disable-sim was given.
22637 if test "${enable_sim+set}" = set; then
22638 enableval="$enable_sim"
22639 echo "enable_sim = $enable_sim";
22640 echo "enableval = ${enableval}";
22641 case "${enableval}" in
22642 yes) ignore_sim=false ;;
22643 no) ignore_sim=true ;;
22644 *) ignore_sim=false ;;
22650 if test ! -d "${srcdir}/../sim"; then
22654 if test "${ignore_sim}" = "true"; then
22656 IGNORE_SIM_OBS="SIM_OBS="
22661 cat >>confdefs.h <<\_ACEOF
22680 # List of host floatformats.
22682 cat >>confdefs.h <<_ACEOF
22683 #define GDB_HOST_FLOAT_FORMAT $gdb_host_float_format
22687 cat >>confdefs.h <<_ACEOF
22688 #define GDB_HOST_DOUBLE_FORMAT $gdb_host_double_format
22692 cat >>confdefs.h <<_ACEOF
22693 #define GDB_HOST_LONG_DOUBLE_FORMAT $gdb_host_long_double_format
22697 # target_subdir is used by the testsuite to find the target libraries.
22699 if test "${host}" != "${target}"; then
22700 target_subdir="${target_alias}/"
22705 if test "${gdb_native}" = "yes"; then
22706 host_makefile_frag=${srcdir}/config/${gdb_host_cpu}/${gdb_host}.mh
22707 if test ! -f ${host_makefile_frag}; then
22708 { { echo "$as_me:$LINENO: error: \"*** Gdb does not support native target ${host}\"" >&5
22709 echo "$as_me: error: \"*** Gdb does not support native target ${host}\"" >&2;}
22710 { (exit 1); exit 1; }; }
22712 frags="$frags $host_makefile_frag"
22714 host_makefile_frag=/dev/null
22717 target_makefile_frag=${srcdir}/config/${gdb_target_cpu}/${gdb_target}.mt
22718 if test ! -f ${target_makefile_frag}; then
22719 { { echo "$as_me:$LINENO: error: \"*** Gdb does not support target ${target}\"" >&5
22720 echo "$as_me: error: \"*** Gdb does not support target ${target}\"" >&2;}
22721 { (exit 1); exit 1; }; }
22723 frags="$frags $target_makefile_frag"
22730 s/XM_FILE[ ]*=[ ]*\([^ ]*\)/\1/p
22731 ' ${host_makefile_frag}`
22733 targetfile=`sed -n '
22734 s/DEPRECATED_TM_FILE[ ]*=[ ]*\([^ ]*\)/\1/p
22735 ' ${target_makefile_frag}`
22737 if test "${gdb_native}" = "yes"; then
22738 # We pick this up from the host configuration file (.mh) because we
22739 # do not have a native configuration Makefile fragment.
22740 nativefile=`sed -n '
22741 s/NAT_FILE[ ]*=[ ]*\([^ ]*\)/\1/p
22742 ' ${host_makefile_frag}`
22746 if test x"${gdb_osabi}" != x ; then
22748 cat >>confdefs.h <<_ACEOF
22749 #define GDB_OSABI_DEFAULT $gdb_osabi
22754 # Enable multi-ice-gdb-server.
22755 # Check whether --enable-multi-ice or --disable-multi-ice was given.
22756 if test "${enable_multi_ice+set}" = set; then
22757 enableval="$enable_multi_ice"
22761 *) { { echo "$as_me:$LINENO: error: bad value $enableval for --enable-multi-ice" >&5
22762 echo "$as_me: error: bad value $enableval for --enable-multi-ice" >&2;}
22763 { (exit 1); exit 1; }; } ;;
22766 if test "x$enable_multi_ice" = xyes; then
22769 subdirs="$subdirs multi-ice"
22773 # We only build gdbserver automatically in a native configuration.
22774 if test "$gdb_native" = "yes"; then
22775 echo "$as_me:$LINENO: checking whether gdbserver is supported on this host" >&5
22776 echo $ECHO_N "checking whether gdbserver is supported on this host... $ECHO_C" >&6
22777 if test "x$build_gdbserver" = xyes; then
22778 echo "$as_me:$LINENO: result: yes" >&5
22779 echo "${ECHO_T}yes" >&6
22782 subdirs="$subdirs gdbserver"
22785 echo "$as_me:$LINENO: result: no" >&5
22786 echo "${ECHO_T}no" >&6
22790 # If hostfile (XM_FILE) and/or targetfile (DEPRECATED_TM_FILE) and/or
22791 # nativefile (NAT_FILE) is not set in config/*/*.m[ht] files, we link
22792 # to an empty version.
22799 if test "${hostfile}" != ""; then
22801 case "${hostfile}" in
22802 xm-*.h ) GDB_XM_FILE="config/${gdb_host_cpu}/${hostfile}" ;;
22803 * ) GDB_XM_FILE="${hostfile}"
22805 files="${files} ${GDB_XM_FILE}"
22806 links="${links} xm.h"
22808 cat >>confdefs.h <<_ACEOF
22809 #define GDB_XM_FILE "${GDB_XM_FILE}"
22817 if test "${targetfile}" != ""; then
22819 case "${targetfile}" in
22820 tm-*.h ) GDB_TM_FILE="config/${gdb_target_cpu}/${targetfile}" ;;
22821 * ) GDB_TM_FILE="${targetfile}"
22823 files="${files} ${GDB_TM_FILE}"
22824 links="${links} tm.h"
22826 cat >>confdefs.h <<_ACEOF
22827 #define GDB_TM_FILE "${GDB_TM_FILE}"
22835 if test "${nativefile}" != ""; then
22837 case "${nativefile}" in
22838 nm-*.h ) GDB_NM_FILE="config/${gdb_host_cpu}/${nativefile}" ;;
22839 * ) GDB_NM_FILE="${nativefile}"
22841 files="${files} ${GDB_NM_FILE}"
22842 links="${links} nm.h"
22844 cat >>confdefs.h <<_ACEOF
22845 #define GDB_NM_FILE "${GDB_NM_FILE}"
22851 ac_sources="$files"
22853 while test -n "$ac_sources"; do
22854 set $ac_dests; ac_dest=$1; shift; ac_dests=$*
22855 set $ac_sources; ac_source=$1; shift; ac_sources=$*
22856 ac_config_links_1="$ac_config_links_1 $ac_dest:$ac_source"
22858 ac_config_links="$ac_config_links $ac_config_links_1"
22865 cat >>confdefs.h <<\_ACEOF
22866 #define GDB_DEFAULT_HOST_CHARSET "ISO-8859-1"
22873 # Check whether --with-libiconv-prefix or --without-libiconv-prefix was given.
22874 if test "${with_libiconv_prefix+set}" = set; then
22875 withval="$with_libiconv_prefix"
22877 for dir in `echo "$withval" | tr : ' '`; do
22878 if test -d $dir/include; then CPPFLAGS="$CPPFLAGS -I$dir/include"; fi
22879 if test -d $dir/lib; then LDFLAGS="$LDFLAGS -L$dir/lib"; fi
22884 echo "$as_me:$LINENO: checking for iconv" >&5
22885 echo $ECHO_N "checking for iconv... $ECHO_C" >&6
22886 if test "${am_cv_func_iconv+set}" = set; then
22887 echo $ECHO_N "(cached) $ECHO_C" >&6
22890 am_cv_func_iconv="no, consider installing GNU libiconv"
22892 cat >conftest.$ac_ext <<_ACEOF
22895 cat confdefs.h >>conftest.$ac_ext
22896 cat >>conftest.$ac_ext <<_ACEOF
22897 /* end confdefs.h. */
22898 #include <stdlib.h>
22903 iconv_t cd = iconv_open("","");
22904 iconv(cd,NULL,NULL,NULL,NULL);
22910 rm -f conftest.$ac_objext conftest$ac_exeext
22911 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
22912 (eval $ac_link) 2>conftest.er1
22914 grep -v '^ *+' conftest.er1 >conftest.err
22916 cat conftest.err >&5
22917 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22918 (exit $ac_status); } &&
22919 { ac_try='test -z "$ac_c_werror_flag"
22920 || test ! -s conftest.err'
22921 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
22922 (eval $ac_try) 2>&5
22924 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22925 (exit $ac_status); }; } &&
22926 { ac_try='test -s conftest$ac_exeext'
22927 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
22928 (eval $ac_try) 2>&5
22930 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22931 (exit $ac_status); }; }; then
22932 am_cv_func_iconv=yes
22934 echo "$as_me: failed program was:" >&5
22935 sed 's/^/| /' conftest.$ac_ext >&5
22938 rm -f conftest.err conftest.$ac_objext \
22939 conftest$ac_exeext conftest.$ac_ext
22940 if test "$am_cv_func_iconv" != yes; then
22941 am_save_LIBS="$LIBS"
22942 LIBS="$LIBS -liconv"
22943 cat >conftest.$ac_ext <<_ACEOF
22946 cat confdefs.h >>conftest.$ac_ext
22947 cat >>conftest.$ac_ext <<_ACEOF
22948 /* end confdefs.h. */
22949 #include <stdlib.h>
22954 iconv_t cd = iconv_open("","");
22955 iconv(cd,NULL,NULL,NULL,NULL);
22961 rm -f conftest.$ac_objext conftest$ac_exeext
22962 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
22963 (eval $ac_link) 2>conftest.er1
22965 grep -v '^ *+' conftest.er1 >conftest.err
22967 cat conftest.err >&5
22968 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22969 (exit $ac_status); } &&
22970 { ac_try='test -z "$ac_c_werror_flag"
22971 || test ! -s conftest.err'
22972 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
22973 (eval $ac_try) 2>&5
22975 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22976 (exit $ac_status); }; } &&
22977 { ac_try='test -s conftest$ac_exeext'
22978 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
22979 (eval $ac_try) 2>&5
22981 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22982 (exit $ac_status); }; }; then
22983 am_cv_lib_iconv=yes
22984 am_cv_func_iconv=yes
22986 echo "$as_me: failed program was:" >&5
22987 sed 's/^/| /' conftest.$ac_ext >&5
22990 rm -f conftest.err conftest.$ac_objext \
22991 conftest$ac_exeext conftest.$ac_ext
22992 LIBS="$am_save_LIBS"
22996 echo "$as_me:$LINENO: result: $am_cv_func_iconv" >&5
22997 echo "${ECHO_T}$am_cv_func_iconv" >&6
22998 if test "$am_cv_func_iconv" = yes; then
23000 cat >>confdefs.h <<\_ACEOF
23001 #define HAVE_ICONV 1
23004 echo "$as_me:$LINENO: checking for iconv declaration" >&5
23005 echo $ECHO_N "checking for iconv declaration... $ECHO_C" >&6
23006 if test "${am_cv_proto_iconv+set}" = set; then
23007 echo $ECHO_N "(cached) $ECHO_C" >&6
23010 cat >conftest.$ac_ext <<_ACEOF
23013 cat confdefs.h >>conftest.$ac_ext
23014 cat >>conftest.$ac_ext <<_ACEOF
23015 /* end confdefs.h. */
23017 #include <stdlib.h>
23023 #if defined(__STDC__) || defined(__cplusplus)
23024 size_t iconv (iconv_t cd, char * *inbuf, size_t *inbytesleft, char * *outbuf, size_t *outbytesleft);
23037 rm -f conftest.$ac_objext
23038 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
23039 (eval $ac_compile) 2>conftest.er1
23041 grep -v '^ *+' conftest.er1 >conftest.err
23043 cat conftest.err >&5
23044 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23045 (exit $ac_status); } &&
23046 { ac_try='test -z "$ac_c_werror_flag"
23047 || test ! -s conftest.err'
23048 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
23049 (eval $ac_try) 2>&5
23051 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23052 (exit $ac_status); }; } &&
23053 { ac_try='test -s conftest.$ac_objext'
23054 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
23055 (eval $ac_try) 2>&5
23057 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23058 (exit $ac_status); }; }; then
23059 am_cv_proto_iconv_arg1=""
23061 echo "$as_me: failed program was:" >&5
23062 sed 's/^/| /' conftest.$ac_ext >&5
23064 am_cv_proto_iconv_arg1="const"
23066 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
23067 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);"
23070 am_cv_proto_iconv=`echo "$am_cv_proto_iconv" | tr -s ' ' | sed -e 's/( /(/'`
23071 echo "$as_me:$LINENO: result: ${ac_t:-
23072 }$am_cv_proto_iconv" >&5
23073 echo "${ECHO_T}${ac_t:-
23074 }$am_cv_proto_iconv" >&6
23076 cat >>confdefs.h <<_ACEOF
23077 #define ICONV_CONST $am_cv_proto_iconv_arg1
23082 if test "$am_cv_lib_iconv" = yes; then
23088 ac_config_files="$ac_config_files Makefile .gdbinit:gdbinit.in"
23089 ac_config_commands="$ac_config_commands default"
23090 cat >confcache <<\_ACEOF
23091 # This file is a shell script that caches the results of configure
23092 # tests run on this system so they can be shared between configure
23093 # scripts and configure runs, see configure's option --config-cache.
23094 # It is not useful on other systems. If it contains results you don't
23095 # want to keep, you may remove or edit it.
23097 # config.status only pays attention to the cache file if you give it
23098 # the --recheck option to rerun configure.
23100 # `ac_cv_env_foo' variables (set or unset) will be overridden when
23101 # loading this file, other *unset* `ac_cv_foo' will be assigned the
23102 # following values.
23106 # The following way of writing the cache mishandles newlines in values,
23107 # but we know of no workaround that is simple, portable, and efficient.
23108 # So, don't put newlines in cache variables' values.
23109 # Ultrix sh set writes to stderr and can't be redirected directly,
23110 # and sets the high bit in the cache file unless we assign to the vars.
23113 case `(ac_space=' '; set | grep ac_space) 2>&1` in
23115 # `set' does not quote correctly, so add quotes (double-quote
23116 # substitution turns \\\\ into \\, and sed turns \\ into \).
23119 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p"
23122 # `set' quotes correctly as required by POSIX, so do not add quotes.
23124 "s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1=\\2/p"
23131 s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/
23133 /^ac_cv_env/!s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/
23135 if diff $cache_file confcache >/dev/null 2>&1; then :; else
23136 if test -w $cache_file; then
23137 test "x$cache_file" != "x/dev/null" && echo "updating cache $cache_file"
23138 cat confcache >$cache_file
23140 echo "not updating unwritable cache $cache_file"
23145 test "x$prefix" = xNONE && prefix=$ac_default_prefix
23146 # Let make expand exec_prefix.
23147 test "x$exec_prefix" = xNONE && exec_prefix='${prefix}'
23149 # VPATH may cause trouble with some makes, so we remove $(srcdir),
23150 # ${srcdir} and @srcdir@ from VPATH if srcdir is ".", strip leading and
23151 # trailing colons and then remove the whole line if VPATH becomes empty
23152 # (actually we leave an empty line to preserve line numbers).
23153 if test "x$srcdir" = x.; then
23154 ac_vpsub='/^[ ]*VPATH[ ]*=/{
23155 s/:*\$(srcdir):*/:/;
23156 s/:*\${srcdir}:*/:/;
23158 s/^\([^=]*=[ ]*\):*/\1/;
23164 DEFS=-DHAVE_CONFIG_H
23168 for ac_i in : $LIBOBJS; do test "x$ac_i" = x: && continue
23169 # 1. Remove the extension, and $U if already installed.
23170 ac_i=`echo "$ac_i" |
23171 sed 's/\$U\././;s/\.o$//;s/\.obj$//'`
23173 ac_libobjs="$ac_libobjs $ac_i\$U.$ac_objext"
23174 ac_ltlibobjs="$ac_ltlibobjs $ac_i"'$U.lo'
23176 LIBOBJS=$ac_libobjs
23178 LTLIBOBJS=$ac_ltlibobjs
23181 if test -z "${MAINTAINER_MODE_TRUE}" && test -z "${MAINTAINER_MODE_FALSE}"; then
23182 { { echo "$as_me:$LINENO: error: conditional \"MAINTAINER_MODE\" was never defined.
23183 Usually this means the macro was only invoked conditionally." >&5
23184 echo "$as_me: error: conditional \"MAINTAINER_MODE\" was never defined.
23185 Usually this means the macro was only invoked conditionally." >&2;}
23186 { (exit 1); exit 1; }; }
23189 : ${CONFIG_STATUS=./config.status}
23190 ac_clean_files_save=$ac_clean_files
23191 ac_clean_files="$ac_clean_files $CONFIG_STATUS"
23192 { echo "$as_me:$LINENO: creating $CONFIG_STATUS" >&5
23193 echo "$as_me: creating $CONFIG_STATUS" >&6;}
23194 cat >$CONFIG_STATUS <<_ACEOF
23196 # Generated by $as_me.
23197 # Run this file to recreate the current configuration.
23198 # Compiler output produced by configure, useful for debugging
23199 # configure, is in config.log if it exists.
23202 ac_cs_recheck=false
23204 SHELL=\${CONFIG_SHELL-$SHELL}
23207 cat >>$CONFIG_STATUS <<\_ACEOF
23208 ## --------------------- ##
23209 ## M4sh Initialization. ##
23210 ## --------------------- ##
23212 # Be Bourne compatible
23213 if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then
23216 # Zsh 3.x and 4.x performs word splitting on ${1+"$@"}, which
23217 # is contrary to our usage. Disable this feature.
23218 alias -g '${1+"$@"}'='"$@"'
23219 elif test -n "${BASH_VERSION+set}" && (set -o posix) >/dev/null 2>&1; then
23222 DUALCASE=1; export DUALCASE # for MKS sh
23224 # Support unset when possible.
23225 if ( (MAIL=60; unset MAIL) || exit) >/dev/null 2>&1; then
23232 # Work around bugs in pre-3.0 UWIN ksh.
23233 $as_unset ENV MAIL MAILPATH
23240 LANG LANGUAGE LC_ADDRESS LC_ALL LC_COLLATE LC_CTYPE LC_IDENTIFICATION \
23241 LC_MEASUREMENT LC_MESSAGES LC_MONETARY LC_NAME LC_NUMERIC LC_PAPER \
23242 LC_TELEPHONE LC_TIME
23244 if (set +x; test -z "`(eval $as_var=C; export $as_var) 2>&1`"); then
23245 eval $as_var=C; export $as_var
23251 # Required to use basename.
23252 if expr a : '\(a\)' >/dev/null 2>&1; then
23258 if (basename /) >/dev/null 2>&1 && test "X`basename / 2>&1`" = "X/"; then
23259 as_basename=basename
23265 # Name of the executable.
23266 as_me=`$as_basename "$0" ||
23267 $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
23268 X"$0" : 'X\(//\)$' \| \
23269 X"$0" : 'X\(/\)$' \| \
23270 . : '\(.\)' 2>/dev/null ||
23272 sed '/^.*\/\([^/][^/]*\)\/*$/{ s//\1/; q; }
23273 /^X\/\(\/\/\)$/{ s//\1/; q; }
23274 /^X\/\(\/\).*/{ s//\1/; q; }
23278 # PATH needs CR, and LINENO needs CR and PATH.
23279 # Avoid depending upon Character Ranges.
23280 as_cr_letters='abcdefghijklmnopqrstuvwxyz'
23281 as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
23282 as_cr_Letters=$as_cr_letters$as_cr_LETTERS
23283 as_cr_digits='0123456789'
23284 as_cr_alnum=$as_cr_Letters$as_cr_digits
23286 # The user is always right.
23287 if test "${PATH_SEPARATOR+set}" != set; then
23288 echo "#! /bin/sh" >conf$$.sh
23289 echo "exit 0" >>conf$$.sh
23291 if (PATH="/nonexistent;."; conf$$.sh) >/dev/null 2>&1; then
23300 as_lineno_1=$LINENO
23301 as_lineno_2=$LINENO
23302 as_lineno_3=`(expr $as_lineno_1 + 1) 2>/dev/null`
23303 test "x$as_lineno_1" != "x$as_lineno_2" &&
23304 test "x$as_lineno_3" = "x$as_lineno_2" || {
23305 # Find who we are. Look in the path if we contain no path at all
23308 *[\\/]* ) as_myself=$0 ;;
23309 *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
23310 for as_dir in $PATH
23313 test -z "$as_dir" && as_dir=.
23314 test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
23319 # We did not find ourselves, most probably we were run as `sh COMMAND'
23320 # in which case we are not to be found in the path.
23321 if test "x$as_myself" = x; then
23324 if test ! -f "$as_myself"; then
23325 { { echo "$as_me:$LINENO: error: cannot find myself; rerun with an absolute path" >&5
23326 echo "$as_me: error: cannot find myself; rerun with an absolute path" >&2;}
23327 { (exit 1); exit 1; }; }
23329 case $CONFIG_SHELL in
23331 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
23332 for as_dir in /bin$PATH_SEPARATOR/usr/bin$PATH_SEPARATOR$PATH
23335 test -z "$as_dir" && as_dir=.
23336 for as_base in sh bash ksh sh5; do
23339 if ("$as_dir/$as_base" -c '
23340 as_lineno_1=$LINENO
23341 as_lineno_2=$LINENO
23342 as_lineno_3=`(expr $as_lineno_1 + 1) 2>/dev/null`
23343 test "x$as_lineno_1" != "x$as_lineno_2" &&
23344 test "x$as_lineno_3" = "x$as_lineno_2" ') 2>/dev/null; then
23345 $as_unset BASH_ENV || test "${BASH_ENV+set}" != set || { BASH_ENV=; export BASH_ENV; }
23346 $as_unset ENV || test "${ENV+set}" != set || { ENV=; export ENV; }
23347 CONFIG_SHELL=$as_dir/$as_base
23348 export CONFIG_SHELL
23349 exec "$CONFIG_SHELL" "$0" ${1+"$@"}
23357 # Create $as_me.lineno as a copy of $as_myself, but with $LINENO
23358 # uniformly replaced by the line number. The first 'sed' inserts a
23359 # line-number line before each line; the second 'sed' does the real
23360 # work. The second script uses 'N' to pair each line-number line
23361 # with the numbered line, and appends trailing '-' during
23362 # substitution so that $LINENO is not a special case at line end.
23363 # (Raja R Harinath suggested sed '=', and Paul Eggert wrote the
23364 # second 'sed' script. Blame Lee E. McMahon for sed's syntax. :-)
23365 sed '=' <$as_myself |
23370 s,^\(['$as_cr_digits']*\)\(.*\)[$]LINENO\([^'$as_cr_alnum'_]\),\1\2\1\3,
23373 s,^['$as_cr_digits']*\n,,
23374 ' >$as_me.lineno &&
23375 chmod +x $as_me.lineno ||
23376 { { echo "$as_me:$LINENO: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&5
23377 echo "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2;}
23378 { (exit 1); exit 1; }; }
23380 # Don't try to exec as it changes $[0], causing all sort of problems
23381 # (the dirname of $[0] is not the place where we might find the
23382 # original and so on. Autoconf is especially sensible to this).
23384 # Exit status is that of the last command.
23389 case `echo "testing\c"; echo 1,2,3`,`echo -n testing; echo 1,2,3` in
23390 *c*,-n*) ECHO_N= ECHO_C='
23392 *c*,* ) ECHO_N=-n ECHO_C= ECHO_T= ;;
23393 *) ECHO_N= ECHO_C='\c' ECHO_T= ;;
23396 if expr a : '\(a\)' >/dev/null 2>&1; then
23402 rm -f conf$$ conf$$.exe conf$$.file
23404 if ln -s conf$$.file conf$$ 2>/dev/null; then
23405 # We could just check for DJGPP; but this test a) works b) is more generic
23406 # and c) will remain valid once DJGPP supports symlinks (DJGPP 2.04).
23407 if test -f conf$$.exe; then
23408 # Don't use ln at all; we don't have any links
23413 elif ln conf$$.file conf$$ 2>/dev/null; then
23418 rm -f conf$$ conf$$.exe conf$$.file
23420 if mkdir -p . 2>/dev/null; then
23423 test -d ./-p && rmdir ./-p
23427 as_executable_p="test -f"
23429 # Sed expression to map a string onto a valid CPP name.
23430 as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
23432 # Sed expression to map a string onto a valid variable name.
23433 as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
23437 # We need space, tab and new line, in precisely that order.
23447 # Open the log real soon, to keep \$[0] and so on meaningful, and to
23448 # report actual input values of CONFIG_FILES etc. instead of their
23449 # values after options handling. Logging --version etc. is OK.
23453 sed 'h;s/./-/g;s/^.../## /;s/...$/ ##/;p;x;p;x' <<_ASBOX
23454 ## Running $as_me. ##
23459 This file was extended by $as_me, which was
23460 generated by GNU Autoconf 2.59. Invocation command line was
23462 CONFIG_FILES = $CONFIG_FILES
23463 CONFIG_HEADERS = $CONFIG_HEADERS
23464 CONFIG_LINKS = $CONFIG_LINKS
23465 CONFIG_COMMANDS = $CONFIG_COMMANDS
23469 echo "on `(hostname || uname -n) 2>/dev/null | sed 1q`" >&5
23473 # Files that config.status was made for.
23474 if test -n "$ac_config_files"; then
23475 echo "config_files=\"$ac_config_files\"" >>$CONFIG_STATUS
23478 if test -n "$ac_config_headers"; then
23479 echo "config_headers=\"$ac_config_headers\"" >>$CONFIG_STATUS
23482 if test -n "$ac_config_links"; then
23483 echo "config_links=\"$ac_config_links\"" >>$CONFIG_STATUS
23486 if test -n "$ac_config_commands"; then
23487 echo "config_commands=\"$ac_config_commands\"" >>$CONFIG_STATUS
23490 cat >>$CONFIG_STATUS <<\_ACEOF
23493 \`$as_me' instantiates files from templates according to the
23494 current configuration.
23496 Usage: $0 [OPTIONS] [FILE]...
23498 -h, --help print this help, then exit
23499 -V, --version print version number, then exit
23500 -q, --quiet do not print progress messages
23501 -d, --debug don't remove temporary files
23502 --recheck update $as_me by reconfiguring in the same conditions
23503 --file=FILE[:TEMPLATE]
23504 instantiate the configuration file FILE
23505 --header=FILE[:TEMPLATE]
23506 instantiate the configuration header FILE
23508 Configuration files:
23511 Configuration headers:
23514 Configuration links:
23517 Configuration commands:
23520 Report bugs to <bug-autoconf@gnu.org>."
23523 cat >>$CONFIG_STATUS <<_ACEOF
23526 configured by $0, generated by GNU Autoconf 2.59,
23527 with options \\"`echo "$ac_configure_args" | sed 's/[\\""\`\$]/\\\\&/g'`\\"
23529 Copyright (C) 2003 Free Software Foundation, Inc.
23530 This config.status script is free software; the Free Software Foundation
23531 gives unlimited permission to copy, distribute and modify it."
23536 cat >>$CONFIG_STATUS <<\_ACEOF
23537 # If no file are specified by the user, then we need to provide default
23538 # value. By we need to know if files were specified by the user.
23544 ac_option=`expr "x$1" : 'x\([^=]*\)='`
23545 ac_optarg=`expr "x$1" : 'x[^=]*=\(.*\)'`
23553 *) # This is not an option, so the user has probably given explicit
23556 ac_need_defaults=false;;
23560 # Handling of the options.
23562 cat >>$CONFIG_STATUS <<\_ACEOF
23563 -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r)
23565 --version | --vers* | -V )
23566 echo "$ac_cs_version"; exit 0 ;;
23568 # Conflict between --help and --header
23569 { { echo "$as_me:$LINENO: error: ambiguous option: $1
23570 Try \`$0 --help' for more information." >&5
23571 echo "$as_me: error: ambiguous option: $1
23572 Try \`$0 --help' for more information." >&2;}
23573 { (exit 1); exit 1; }; };;
23574 --help | --hel | -h )
23575 echo "$ac_cs_usage"; exit 0 ;;
23576 --debug | --d* | -d )
23578 --file | --fil | --fi | --f )
23580 CONFIG_FILES="$CONFIG_FILES $ac_optarg"
23581 ac_need_defaults=false;;
23582 --header | --heade | --head | --hea )
23584 CONFIG_HEADERS="$CONFIG_HEADERS $ac_optarg"
23585 ac_need_defaults=false;;
23586 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
23587 | -silent | --silent | --silen | --sile | --sil | --si | --s)
23590 # This is an error.
23591 -*) { { echo "$as_me:$LINENO: error: unrecognized option: $1
23592 Try \`$0 --help' for more information." >&5
23593 echo "$as_me: error: unrecognized option: $1
23594 Try \`$0 --help' for more information." >&2;}
23595 { (exit 1); exit 1; }; } ;;
23597 *) ac_config_targets="$ac_config_targets $1" ;;
23603 ac_configure_extra_args=
23605 if $ac_cs_silent; then
23607 ac_configure_extra_args="$ac_configure_extra_args --silent"
23611 cat >>$CONFIG_STATUS <<_ACEOF
23612 if \$ac_cs_recheck; then
23613 echo "running $SHELL $0 " $ac_configure_args \$ac_configure_extra_args " --no-create --no-recursion" >&6
23614 exec $SHELL $0 $ac_configure_args \$ac_configure_extra_args --no-create --no-recursion
23619 cat >>$CONFIG_STATUS <<_ACEOF
23621 # INIT-COMMANDS section.
23627 acx_cv_header_stdint="$acx_cv_header_stdint"
23628 acx_cv_type_int8_t="$acx_cv_type_int8_t"
23629 acx_cv_type_int16_t="$acx_cv_type_int16_t"
23630 acx_cv_type_int32_t="$acx_cv_type_int32_t"
23631 acx_cv_type_int64_t="$acx_cv_type_int64_t"
23632 acx_cv_type_intptr_t="$acx_cv_type_intptr_t"
23633 ac_cv_type_uintmax_t="$ac_cv_type_uintmax_t"
23634 ac_cv_type_uintptr_t="$ac_cv_type_uintptr_t"
23635 ac_cv_type_uint64_t="$ac_cv_type_uint64_t"
23636 ac_cv_type_u_int64_t="$ac_cv_type_u_int64_t"
23637 ac_cv_type_u_int32_t="$ac_cv_type_u_int32_t"
23638 ac_cv_type_int_least32_t="$ac_cv_type_int_least32_t"
23639 ac_cv_type_int_fast32_t="$ac_cv_type_int_fast32_t"
23640 ac_cv_sizeof_void_p="$ac_cv_sizeof_void_p"
23643 gdb_host_cpu=$gdb_host_cpu
23644 gdb_target_cpu=$gdb_target_cpu
23645 nativefile=$nativefile
23652 cat >>$CONFIG_STATUS <<\_ACEOF
23653 for ac_config_target in $ac_config_targets
23655 case "$ac_config_target" in
23656 # Handling of arguments.
23657 "Makefile" ) CONFIG_FILES="$CONFIG_FILES Makefile" ;;
23658 ".gdbinit" ) CONFIG_FILES="$CONFIG_FILES .gdbinit:gdbinit.in" ;;
23659 "$ac_config_links_1" ) CONFIG_LINKS="$CONFIG_LINKS $ac_config_links_1" ;;
23660 "gdb_stdint.h" ) CONFIG_COMMANDS="$CONFIG_COMMANDS gdb_stdint.h" ;;
23661 "default" ) CONFIG_COMMANDS="$CONFIG_COMMANDS default" ;;
23662 "config.h" ) CONFIG_HEADERS="$CONFIG_HEADERS config.h:config.in" ;;
23663 *) { { echo "$as_me:$LINENO: error: invalid argument: $ac_config_target" >&5
23664 echo "$as_me: error: invalid argument: $ac_config_target" >&2;}
23665 { (exit 1); exit 1; }; };;
23669 # If the user did not use the arguments to specify the items to instantiate,
23670 # then the envvar interface is used. Set only those that are not.
23671 # We use the long form for the default assignment because of an extremely
23672 # bizarre bug on SunOS 4.1.3.
23673 if $ac_need_defaults; then
23674 test "${CONFIG_FILES+set}" = set || CONFIG_FILES=$config_files
23675 test "${CONFIG_HEADERS+set}" = set || CONFIG_HEADERS=$config_headers
23676 test "${CONFIG_LINKS+set}" = set || CONFIG_LINKS=$config_links
23677 test "${CONFIG_COMMANDS+set}" = set || CONFIG_COMMANDS=$config_commands
23680 # Have a temporary directory for convenience. Make it in the build tree
23681 # simply because there is no reason to put it here, and in addition,
23682 # creating and moving files from /tmp can sometimes cause problems.
23683 # Create a temporary directory, and hook for its removal unless debugging.
23686 trap 'exit_status=$?; rm -rf $tmp && exit $exit_status' 0
23687 trap '{ (exit 1); exit 1; }' 1 2 13 15
23690 # Create a (secure) tmp directory for tmp files.
23693 tmp=`(umask 077 && mktemp -d -q "./confstatXXXXXX") 2>/dev/null` &&
23694 test -n "$tmp" && test -d "$tmp"
23697 tmp=./confstat$$-$RANDOM
23698 (umask 077 && mkdir $tmp)
23701 echo "$me: cannot create a temporary directory in ." >&2
23702 { (exit 1); exit 1; }
23707 cat >>$CONFIG_STATUS <<_ACEOF
23710 # CONFIG_FILES section.
23713 # No need to generate the scripts if there are no CONFIG_FILES.
23714 # This happens for instance when ./config.status config.h
23715 if test -n "\$CONFIG_FILES"; then
23716 # Protect against being on the right side of a sed subst in config.status.
23717 sed 's/,@/@@/; s/@,/@@/; s/,;t t\$/@;t t/; /@;t t\$/s/[\\\\&,]/\\\\&/g;
23718 s/@@/,@/; s/@@/@,/; s/@;t t\$/,;t t/' >\$tmp/subs.sed <<\\CEOF
23719 s,@SHELL@,$SHELL,;t t
23720 s,@PATH_SEPARATOR@,$PATH_SEPARATOR,;t t
23721 s,@PACKAGE_NAME@,$PACKAGE_NAME,;t t
23722 s,@PACKAGE_TARNAME@,$PACKAGE_TARNAME,;t t
23723 s,@PACKAGE_VERSION@,$PACKAGE_VERSION,;t t
23724 s,@PACKAGE_STRING@,$PACKAGE_STRING,;t t
23725 s,@PACKAGE_BUGREPORT@,$PACKAGE_BUGREPORT,;t t
23726 s,@exec_prefix@,$exec_prefix,;t t
23727 s,@prefix@,$prefix,;t t
23728 s,@program_transform_name@,$program_transform_name,;t t
23729 s,@bindir@,$bindir,;t t
23730 s,@sbindir@,$sbindir,;t t
23731 s,@libexecdir@,$libexecdir,;t t
23732 s,@datadir@,$datadir,;t t
23733 s,@sysconfdir@,$sysconfdir,;t t
23734 s,@sharedstatedir@,$sharedstatedir,;t t
23735 s,@localstatedir@,$localstatedir,;t t
23736 s,@libdir@,$libdir,;t t
23737 s,@includedir@,$includedir,;t t
23738 s,@oldincludedir@,$oldincludedir,;t t
23739 s,@infodir@,$infodir,;t t
23740 s,@mandir@,$mandir,;t t
23741 s,@build_alias@,$build_alias,;t t
23742 s,@host_alias@,$host_alias,;t t
23743 s,@target_alias@,$target_alias,;t t
23744 s,@DEFS@,$DEFS,;t t
23745 s,@ECHO_C@,$ECHO_C,;t t
23746 s,@ECHO_N@,$ECHO_N,;t t
23747 s,@ECHO_T@,$ECHO_T,;t t
23748 s,@LIBS@,$LIBS,;t t
23749 s,@MAINTAINER_MODE_TRUE@,$MAINTAINER_MODE_TRUE,;t t
23750 s,@MAINTAINER_MODE_FALSE@,$MAINTAINER_MODE_FALSE,;t t
23751 s,@MAINT@,$MAINT,;t t
23753 s,@CFLAGS@,$CFLAGS,;t t
23754 s,@LDFLAGS@,$LDFLAGS,;t t
23755 s,@CPPFLAGS@,$CPPFLAGS,;t t
23756 s,@ac_ct_CC@,$ac_ct_CC,;t t
23757 s,@EXEEXT@,$EXEEXT,;t t
23758 s,@OBJEXT@,$OBJEXT,;t t
23760 s,@EGREP@,$EGREP,;t t
23761 s,@build@,$build,;t t
23762 s,@build_cpu@,$build_cpu,;t t
23763 s,@build_vendor@,$build_vendor,;t t
23764 s,@build_os@,$build_os,;t t
23765 s,@host@,$host,;t t
23766 s,@host_cpu@,$host_cpu,;t t
23767 s,@host_vendor@,$host_vendor,;t t
23768 s,@host_os@,$host_os,;t t
23769 s,@target@,$target,;t t
23770 s,@target_cpu@,$target_cpu,;t t
23771 s,@target_vendor@,$target_vendor,;t t
23772 s,@target_os@,$target_os,;t t
23773 s,@USE_NLS@,$USE_NLS,;t t
23774 s,@LIBINTL@,$LIBINTL,;t t
23775 s,@LIBINTL_DEP@,$LIBINTL_DEP,;t t
23776 s,@INCINTL@,$INCINTL,;t t
23777 s,@XGETTEXT@,$XGETTEXT,;t t
23778 s,@GMSGFMT@,$GMSGFMT,;t t
23779 s,@POSUB@,$POSUB,;t t
23780 s,@CATALOGS@,$CATALOGS,;t t
23781 s,@DATADIRNAME@,$DATADIRNAME,;t t
23782 s,@INSTOBJEXT@,$INSTOBJEXT,;t t
23783 s,@GENCAT@,$GENCAT,;t t
23784 s,@CATOBJEXT@,$CATOBJEXT,;t t
23785 s,@localedir@,$localedir,;t t
23786 s,@PACKAGE@,$PACKAGE,;t t
23787 s,@subdirs@,$subdirs,;t t
23789 s,@INSTALL_PROGRAM@,$INSTALL_PROGRAM,;t t
23790 s,@INSTALL_SCRIPT@,$INSTALL_SCRIPT,;t t
23791 s,@INSTALL_DATA@,$INSTALL_DATA,;t t
23792 s,@LN_S@,$LN_S,;t t
23793 s,@RANLIB@,$RANLIB,;t t
23794 s,@ac_ct_RANLIB@,$ac_ct_RANLIB,;t t
23795 s,@YACC@,$YACC,;t t
23797 s,@ac_ct_AR@,$ac_ct_AR,;t t
23798 s,@DLLTOOL@,$DLLTOOL,;t t
23799 s,@ac_ct_DLLTOOL@,$ac_ct_DLLTOOL,;t t
23800 s,@WINDRES@,$WINDRES,;t t
23801 s,@ac_ct_WINDRES@,$ac_ct_WINDRES,;t t
23803 s,@ac_ct_MIG@,$ac_ct_MIG,;t t
23804 s,@HAVE_LIBEXPAT@,$HAVE_LIBEXPAT,;t t
23805 s,@LIBEXPAT@,$LIBEXPAT,;t t
23806 s,@LTLIBEXPAT@,$LTLIBEXPAT,;t t
23807 s,@ALLOCA@,$ALLOCA,;t t
23808 s,@CONFIG_LDFLAGS@,$CONFIG_LDFLAGS,;t t
23809 s,@TARGET_SYSTEM_ROOT@,$TARGET_SYSTEM_ROOT,;t t
23810 s,@TARGET_SYSTEM_ROOT_DEFINE@,$TARGET_SYSTEM_ROOT_DEFINE,;t t
23811 s,@WARN_CFLAGS@,$WARN_CFLAGS,;t t
23812 s,@WERROR_CFLAGS@,$WERROR_CFLAGS,;t t
23813 s,@SER_HARDWIRE@,$SER_HARDWIRE,;t t
23814 s,@WIN32LIBS@,$WIN32LIBS,;t t
23815 s,@LIBGUI@,$LIBGUI,;t t
23816 s,@GUI_CFLAGS_X@,$GUI_CFLAGS_X,;t t
23817 s,@WIN32LDAPP@,$WIN32LDAPP,;t t
23818 s,@TCL_VERSION@,$TCL_VERSION,;t t
23819 s,@TCL_MAJOR_VERSION@,$TCL_MAJOR_VERSION,;t t
23820 s,@TCL_MINOR_VERSION@,$TCL_MINOR_VERSION,;t t
23821 s,@TCL_CC@,$TCL_CC,;t t
23822 s,@TCL_DEFS@,$TCL_DEFS,;t t
23823 s,@TCL_SHLIB_CFLAGS@,$TCL_SHLIB_CFLAGS,;t t
23824 s,@TCL_SHLIB_LD@,$TCL_SHLIB_LD,;t t
23825 s,@TCL_SHLIB_LD_LIBS@,$TCL_SHLIB_LD_LIBS,;t t
23826 s,@TCL_SHLIB_SUFFIX@,$TCL_SHLIB_SUFFIX,;t t
23827 s,@TCL_DL_LIBS@,$TCL_DL_LIBS,;t t
23828 s,@TCL_LD_FLAGS@,$TCL_LD_FLAGS,;t t
23829 s,@TCL_LD_SEARCH_FLAGS@,$TCL_LD_SEARCH_FLAGS,;t t
23830 s,@TCL_CC_SEARCH_FLAGS@,$TCL_CC_SEARCH_FLAGS,;t t
23831 s,@TCL_COMPAT_OBJS@,$TCL_COMPAT_OBJS,;t t
23832 s,@TCL_RANLIB@,$TCL_RANLIB,;t t
23833 s,@TCL_BUILD_LIB_SPEC@,$TCL_BUILD_LIB_SPEC,;t t
23834 s,@TCL_LIB_SPEC@,$TCL_LIB_SPEC,;t t
23835 s,@TCL_LIB_VERSIONS_OK@,$TCL_LIB_VERSIONS_OK,;t t
23836 s,@TK_VERSION@,$TK_VERSION,;t t
23837 s,@TK_DEFS@,$TK_DEFS,;t t
23838 s,@TK_BUILD_INCLUDES@,$TK_BUILD_INCLUDES,;t t
23839 s,@TK_XINCLUDES@,$TK_XINCLUDES,;t t
23840 s,@TK_XLIBSW@,$TK_XLIBSW,;t t
23841 s,@TK_BUILD_LIB_SPEC@,$TK_BUILD_LIB_SPEC,;t t
23842 s,@TK_LIB_SPEC@,$TK_LIB_SPEC,;t t
23843 s,@TCLHDIR@,$TCLHDIR,;t t
23844 s,@TKHDIR@,$TKHDIR,;t t
23845 s,@ITCLHDIR@,$ITCLHDIR,;t t
23846 s,@ITKHDIR@,$ITKHDIR,;t t
23847 s,@ITCL_VERSION@,$ITCL_VERSION,;t t
23848 s,@ITCL_DEFS@,$ITCL_DEFS,;t t
23849 s,@ITCL_BUILD_INCLUDES@,$ITCL_BUILD_INCLUDES,;t t
23850 s,@ITCL_BUILD_LIB_SPEC@,$ITCL_BUILD_LIB_SPEC,;t t
23851 s,@ITCL_LIB_SPEC@,$ITCL_LIB_SPEC,;t t
23852 s,@ITK_VERSION@,$ITK_VERSION,;t t
23853 s,@ITK_DEFS@,$ITK_DEFS,;t t
23854 s,@ITK_BUILD_INCLUDES@,$ITK_BUILD_INCLUDES,;t t
23855 s,@ITK_BUILD_LIB_SPEC@,$ITK_BUILD_LIB_SPEC,;t t
23856 s,@ITK_LIB_SPEC@,$ITK_LIB_SPEC,;t t
23857 s,@X_CFLAGS@,$X_CFLAGS,;t t
23858 s,@X_LDFLAGS@,$X_LDFLAGS,;t t
23859 s,@X_LIBS@,$X_LIBS,;t t
23860 s,@TCL_DEPS@,$TCL_DEPS,;t t
23861 s,@TK_DEPS@,$TK_DEPS,;t t
23862 s,@ITCLLIB@,$ITCLLIB,;t t
23863 s,@ITCL_DEPS@,$ITCL_DEPS,;t t
23864 s,@ITKLIB@,$ITKLIB,;t t
23865 s,@ITK_DEPS@,$ITK_DEPS,;t t
23866 s,@GDBTKLIBS@,$GDBTKLIBS,;t t
23867 s,@GDBTK_CFLAGS@,$GDBTK_CFLAGS,;t t
23868 s,@GDBTK_SRC_DIR@,$GDBTK_SRC_DIR,;t t
23869 s,@IGNORE_SIM@,$IGNORE_SIM,;t t
23870 s,@IGNORE_SIM_OBS@,$IGNORE_SIM_OBS,;t t
23871 s,@ENABLE_CFLAGS@,$ENABLE_CFLAGS,;t t
23872 s,@PROFILE_CFLAGS@,$PROFILE_CFLAGS,;t t
23873 s,@CONFIG_OBS@,$CONFIG_OBS,;t t
23874 s,@CONFIG_DEPS@,$CONFIG_DEPS,;t t
23875 s,@CONFIG_SRCS@,$CONFIG_SRCS,;t t
23876 s,@CONFIG_ALL@,$CONFIG_ALL,;t t
23877 s,@CONFIG_CLEAN@,$CONFIG_CLEAN,;t t
23878 s,@CONFIG_INSTALL@,$CONFIG_INSTALL,;t t
23879 s,@CONFIG_UNINSTALL@,$CONFIG_UNINSTALL,;t t
23880 s,@target_subdir@,$target_subdir,;t t
23881 s,@frags@,$frags,;t t
23882 s,@xm_h@,$xm_h,;t t
23883 s,@tm_h@,$tm_h,;t t
23884 s,@nm_h@,$nm_h,;t t
23885 s,@LIBICONV@,$LIBICONV,;t t
23886 s,@LIBOBJS@,$LIBOBJS,;t t
23887 s,@LTLIBOBJS@,$LTLIBOBJS,;t t
23888 /@host_makefile_frag@/r $host_makefile_frag
23889 s,@host_makefile_frag@,,;t t
23890 /@target_makefile_frag@/r $target_makefile_frag
23891 s,@target_makefile_frag@,,;t t
23896 cat >>$CONFIG_STATUS <<\_ACEOF
23897 # Split the substitutions into bite-sized pieces for seds with
23898 # small command number limits, like on Digital OSF/1 and HP-UX.
23899 ac_max_sed_lines=48
23900 ac_sed_frag=1 # Number of current file.
23901 ac_beg=1 # First line for current file.
23902 ac_end=$ac_max_sed_lines # Line after last line for current file.
23905 while $ac_more_lines; do
23906 if test $ac_beg -gt 1; then
23907 sed "1,${ac_beg}d; ${ac_end}q" $tmp/subs.sed >$tmp/subs.frag
23909 sed "${ac_end}q" $tmp/subs.sed >$tmp/subs.frag
23911 if test ! -s $tmp/subs.frag; then
23912 ac_more_lines=false
23914 # The purpose of the label and of the branching condition is to
23915 # speed up the sed processing (if there are no `@' at all, there
23916 # is no need to browse any of the substitutions).
23917 # These are the two extra sed commands mentioned above.
23919 /@[a-zA-Z_][a-zA-Z_0-9]*@/!b' && cat $tmp/subs.frag) >$tmp/subs-$ac_sed_frag.sed
23920 if test -z "$ac_sed_cmds"; then
23921 ac_sed_cmds="sed -f $tmp/subs-$ac_sed_frag.sed"
23923 ac_sed_cmds="$ac_sed_cmds | sed -f $tmp/subs-$ac_sed_frag.sed"
23925 ac_sed_frag=`expr $ac_sed_frag + 1`
23927 ac_end=`expr $ac_end + $ac_max_sed_lines`
23930 if test -z "$ac_sed_cmds"; then
23933 fi # test -n "$CONFIG_FILES"
23936 cat >>$CONFIG_STATUS <<\_ACEOF
23937 for ac_file in : $CONFIG_FILES; do test "x$ac_file" = x: && continue
23938 # Support "outfile[:infile[:infile...]]", defaulting infile="outfile.in".
23940 - | *:- | *:-:* ) # input from stdin
23942 ac_file_in=`echo "$ac_file" | sed 's,[^:]*:,,'`
23943 ac_file=`echo "$ac_file" | sed 's,:.*,,'` ;;
23944 *:* ) ac_file_in=`echo "$ac_file" | sed 's,[^:]*:,,'`
23945 ac_file=`echo "$ac_file" | sed 's,:.*,,'` ;;
23946 * ) ac_file_in=$ac_file.in ;;
23949 # Compute @srcdir@, @top_srcdir@, and @INSTALL@ for subdirectories.
23950 ac_dir=`(dirname "$ac_file") 2>/dev/null ||
23951 $as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
23952 X"$ac_file" : 'X\(//\)[^/]' \| \
23953 X"$ac_file" : 'X\(//\)$' \| \
23954 X"$ac_file" : 'X\(/\)' \| \
23955 . : '\(.\)' 2>/dev/null ||
23957 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
23958 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
23959 /^X\(\/\/\)$/{ s//\1/; q; }
23960 /^X\(\/\).*/{ s//\1/; q; }
23962 { if $as_mkdir_p; then
23967 while test ! -d "$as_dir"; do
23968 as_dirs="$as_dir $as_dirs"
23969 as_dir=`(dirname "$as_dir") 2>/dev/null ||
23970 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
23971 X"$as_dir" : 'X\(//\)[^/]' \| \
23972 X"$as_dir" : 'X\(//\)$' \| \
23973 X"$as_dir" : 'X\(/\)' \| \
23974 . : '\(.\)' 2>/dev/null ||
23976 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
23977 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
23978 /^X\(\/\/\)$/{ s//\1/; q; }
23979 /^X\(\/\).*/{ s//\1/; q; }
23982 test ! -n "$as_dirs" || mkdir $as_dirs
23983 fi || { { echo "$as_me:$LINENO: error: cannot create directory \"$ac_dir\"" >&5
23984 echo "$as_me: error: cannot create directory \"$ac_dir\"" >&2;}
23985 { (exit 1); exit 1; }; }; }
23989 if test "$ac_dir" != .; then
23990 ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'`
23991 # A "../" for each directory in $ac_dir_suffix.
23992 ac_top_builddir=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,../,g'`
23994 ac_dir_suffix= ac_top_builddir=
23998 .) # No --srcdir option. We are building in place.
24000 if test -z "$ac_top_builddir"; then
24003 ac_top_srcdir=`echo $ac_top_builddir | sed 's,/$,,'`
24005 [\\/]* | ?:[\\/]* ) # Absolute path.
24006 ac_srcdir=$srcdir$ac_dir_suffix;
24007 ac_top_srcdir=$srcdir ;;
24008 *) # Relative path.
24009 ac_srcdir=$ac_top_builddir$srcdir$ac_dir_suffix
24010 ac_top_srcdir=$ac_top_builddir$srcdir ;;
24013 # Do not use `cd foo && pwd` to compute absolute paths, because
24014 # the directories may not exist.
24016 .) ac_abs_builddir="$ac_dir";;
24019 .) ac_abs_builddir=`pwd`;;
24020 [\\/]* | ?:[\\/]* ) ac_abs_builddir="$ac_dir";;
24021 *) ac_abs_builddir=`pwd`/"$ac_dir";;
24024 case $ac_abs_builddir in
24025 .) ac_abs_top_builddir=${ac_top_builddir}.;;
24027 case ${ac_top_builddir}. in
24028 .) ac_abs_top_builddir=$ac_abs_builddir;;
24029 [\\/]* | ?:[\\/]* ) ac_abs_top_builddir=${ac_top_builddir}.;;
24030 *) ac_abs_top_builddir=$ac_abs_builddir/${ac_top_builddir}.;;
24033 case $ac_abs_builddir in
24034 .) ac_abs_srcdir=$ac_srcdir;;
24037 .) ac_abs_srcdir=$ac_abs_builddir;;
24038 [\\/]* | ?:[\\/]* ) ac_abs_srcdir=$ac_srcdir;;
24039 *) ac_abs_srcdir=$ac_abs_builddir/$ac_srcdir;;
24042 case $ac_abs_builddir in
24043 .) ac_abs_top_srcdir=$ac_top_srcdir;;
24045 case $ac_top_srcdir in
24046 .) ac_abs_top_srcdir=$ac_abs_builddir;;
24047 [\\/]* | ?:[\\/]* ) ac_abs_top_srcdir=$ac_top_srcdir;;
24048 *) ac_abs_top_srcdir=$ac_abs_builddir/$ac_top_srcdir;;
24054 [\\/$]* | ?:[\\/]* ) ac_INSTALL=$INSTALL ;;
24055 *) ac_INSTALL=$ac_top_builddir$INSTALL ;;
24058 if test x"$ac_file" != x-; then
24059 { echo "$as_me:$LINENO: creating $ac_file" >&5
24060 echo "$as_me: creating $ac_file" >&6;}
24063 # Let's still pretend it is `configure' which instantiates (i.e., don't
24064 # use $as_me), people would be surprised to read:
24065 # /* config.h. Generated by config.status. */
24066 if test x"$ac_file" = x-; then
24069 configure_input="$ac_file. "
24071 configure_input=$configure_input"Generated from `echo $ac_file_in |
24072 sed 's,.*/,,'` by configure."
24074 # First look for the input files in the build tree, otherwise in the
24076 ac_file_inputs=`IFS=:
24077 for f in $ac_file_in; do
24079 -) echo $tmp/stdin ;;
24081 # Absolute (can't be DOS-style, as IFS=:)
24082 test -f "$f" || { { echo "$as_me:$LINENO: error: cannot find input file: $f" >&5
24083 echo "$as_me: error: cannot find input file: $f" >&2;}
24084 { (exit 1); exit 1; }; }
24087 if test -f "$f"; then
24090 elif test -f "$srcdir/$f"; then
24095 { { echo "$as_me:$LINENO: error: cannot find input file: $f" >&5
24096 echo "$as_me: error: cannot find input file: $f" >&2;}
24097 { (exit 1); exit 1; }; }
24100 done` || { (exit 1); exit 1; }
24102 cat >>$CONFIG_STATUS <<_ACEOF
24106 cat >>$CONFIG_STATUS <<\_ACEOF
24108 /@[a-zA-Z_][a-zA-Z_0-9]*@/!b
24109 s,@configure_input@,$configure_input,;t t
24110 s,@srcdir@,$ac_srcdir,;t t
24111 s,@abs_srcdir@,$ac_abs_srcdir,;t t
24112 s,@top_srcdir@,$ac_top_srcdir,;t t
24113 s,@abs_top_srcdir@,$ac_abs_top_srcdir,;t t
24114 s,@builddir@,$ac_builddir,;t t
24115 s,@abs_builddir@,$ac_abs_builddir,;t t
24116 s,@top_builddir@,$ac_top_builddir,;t t
24117 s,@abs_top_builddir@,$ac_abs_top_builddir,;t t
24118 s,@INSTALL@,$ac_INSTALL,;t t
24119 " $ac_file_inputs | (eval "$ac_sed_cmds") >$tmp/out
24121 if test x"$ac_file" != x-; then
24122 mv $tmp/out $ac_file
24130 cat >>$CONFIG_STATUS <<\_ACEOF
24133 # CONFIG_HEADER section.
24136 # These sed commands are passed to sed as "A NAME B NAME C VALUE D", where
24137 # NAME is the cpp macro being defined and VALUE is the value it is being given.
24139 # ac_d sets the value in "#define NAME VALUE" lines.
24140 ac_dA='s,^\([ ]*\)#\([ ]*define[ ][ ]*\)'
24141 ac_dB='[ ].*$,\1#\2'
24144 # ac_u turns "#undef NAME" without trailing blanks into "#define NAME VALUE".
24145 ac_uA='s,^\([ ]*\)#\([ ]*\)undef\([ ][ ]*\)'
24146 ac_uB='$,\1#\2define\3'
24150 for ac_file in : $CONFIG_HEADERS; do test "x$ac_file" = x: && continue
24151 # Support "outfile[:infile[:infile...]]", defaulting infile="outfile.in".
24153 - | *:- | *:-:* ) # input from stdin
24155 ac_file_in=`echo "$ac_file" | sed 's,[^:]*:,,'`
24156 ac_file=`echo "$ac_file" | sed 's,:.*,,'` ;;
24157 *:* ) ac_file_in=`echo "$ac_file" | sed 's,[^:]*:,,'`
24158 ac_file=`echo "$ac_file" | sed 's,:.*,,'` ;;
24159 * ) ac_file_in=$ac_file.in ;;
24162 test x"$ac_file" != x- && { echo "$as_me:$LINENO: creating $ac_file" >&5
24163 echo "$as_me: creating $ac_file" >&6;}
24165 # First look for the input files in the build tree, otherwise in the
24167 ac_file_inputs=`IFS=:
24168 for f in $ac_file_in; do
24170 -) echo $tmp/stdin ;;
24172 # Absolute (can't be DOS-style, as IFS=:)
24173 test -f "$f" || { { echo "$as_me:$LINENO: error: cannot find input file: $f" >&5
24174 echo "$as_me: error: cannot find input file: $f" >&2;}
24175 { (exit 1); exit 1; }; }
24176 # Do quote $f, to prevent DOS paths from being IFS'd.
24179 if test -f "$f"; then
24182 elif test -f "$srcdir/$f"; then
24187 { { echo "$as_me:$LINENO: error: cannot find input file: $f" >&5
24188 echo "$as_me: error: cannot find input file: $f" >&2;}
24189 { (exit 1); exit 1; }; }
24192 done` || { (exit 1); exit 1; }
24193 # Remove the trailing spaces.
24194 sed 's/[ ]*$//' $ac_file_inputs >$tmp/in
24198 # Transform confdefs.h into two sed scripts, `conftest.defines' and
24199 # `conftest.undefs', that substitutes the proper values into
24200 # config.h.in to produce config.h. The first handles `#define'
24201 # templates, and the second `#undef' templates.
24202 # And first: Protect against being on the right side of a sed subst in
24203 # config.status. Protect against being in an unquoted here document
24204 # in config.status.
24205 rm -f conftest.defines conftest.undefs
24206 # Using a here document instead of a string reduces the quoting nightmare.
24207 # Putting comments in sed scripts is not portable.
24209 # `end' is used to avoid that the second main sed command (meant for
24210 # 0-ary CPP macros) applies to n-ary macro definitions.
24211 # See the Autoconf documentation for `clear'.
24212 cat >confdef2sed.sed <<\_ACEOF
24217 s,^[ ]*#[ ]*define[ ][ ]*\([^ (][^ (]*\)\(([^)]*)\)[ ]*\(.*\)$,${ac_dA}\1${ac_dB}\1\2${ac_dC}\3${ac_dD},gp
24219 s,^[ ]*#[ ]*define[ ][ ]*\([^ ][^ ]*\)[ ]*\(.*\)$,${ac_dA}\1${ac_dB}\1${ac_dC}\2${ac_dD},gp
24222 # If some macros were called several times there might be several times
24223 # the same #defines, which is useless. Nevertheless, we may not want to
24224 # sort them, since we want the *last* AC-DEFINE to be honored.
24225 uniq confdefs.h | sed -n -f confdef2sed.sed >conftest.defines
24226 sed 's/ac_d/ac_u/g' conftest.defines >conftest.undefs
24227 rm -f confdef2sed.sed
24229 # This sed command replaces #undef with comments. This is necessary, for
24230 # example, in the case of _POSIX_SOURCE, which is predefined and required
24231 # on some systems where configure will not decide to define it.
24232 cat >>conftest.undefs <<\_ACEOF
24233 s,^[ ]*#[ ]*undef[ ][ ]*[a-zA-Z_][a-zA-Z_0-9]*,/* & */,
24236 # Break up conftest.defines because some shells have a limit on the size
24237 # of here documents, and old seds have small limits too (100 cmds).
24238 echo ' # Handle all the #define templates only if necessary.' >>$CONFIG_STATUS
24239 echo ' if grep "^[ ]*#[ ]*define" $tmp/in >/dev/null; then' >>$CONFIG_STATUS
24240 echo ' # If there are no defines, we may have an empty if/fi' >>$CONFIG_STATUS
24241 echo ' :' >>$CONFIG_STATUS
24242 rm -f conftest.tail
24243 while grep . conftest.defines >/dev/null
24245 # Write a limited-size here document to $tmp/defines.sed.
24246 echo ' cat >$tmp/defines.sed <<CEOF' >>$CONFIG_STATUS
24247 # Speed up: don't consider the non `#define' lines.
24248 echo '/^[ ]*#[ ]*define/!b' >>$CONFIG_STATUS
24249 # Work around the forget-to-reset-the-flag bug.
24250 echo 't clr' >>$CONFIG_STATUS
24251 echo ': clr' >>$CONFIG_STATUS
24252 sed ${ac_max_here_lines}q conftest.defines >>$CONFIG_STATUS
24254 sed -f $tmp/defines.sed $tmp/in >$tmp/out
24256 mv $tmp/out $tmp/in
24258 sed 1,${ac_max_here_lines}d conftest.defines >conftest.tail
24259 rm -f conftest.defines
24260 mv conftest.tail conftest.defines
24262 rm -f conftest.defines
24263 echo ' fi # grep' >>$CONFIG_STATUS
24264 echo >>$CONFIG_STATUS
24266 # Break up conftest.undefs because some shells have a limit on the size
24267 # of here documents, and old seds have small limits too (100 cmds).
24268 echo ' # Handle all the #undef templates' >>$CONFIG_STATUS
24269 rm -f conftest.tail
24270 while grep . conftest.undefs >/dev/null
24272 # Write a limited-size here document to $tmp/undefs.sed.
24273 echo ' cat >$tmp/undefs.sed <<CEOF' >>$CONFIG_STATUS
24274 # Speed up: don't consider the non `#undef'
24275 echo '/^[ ]*#[ ]*undef/!b' >>$CONFIG_STATUS
24276 # Work around the forget-to-reset-the-flag bug.
24277 echo 't clr' >>$CONFIG_STATUS
24278 echo ': clr' >>$CONFIG_STATUS
24279 sed ${ac_max_here_lines}q conftest.undefs >>$CONFIG_STATUS
24281 sed -f $tmp/undefs.sed $tmp/in >$tmp/out
24283 mv $tmp/out $tmp/in
24285 sed 1,${ac_max_here_lines}d conftest.undefs >conftest.tail
24286 rm -f conftest.undefs
24287 mv conftest.tail conftest.undefs
24289 rm -f conftest.undefs
24291 cat >>$CONFIG_STATUS <<\_ACEOF
24292 # Let's still pretend it is `configure' which instantiates (i.e., don't
24293 # use $as_me), people would be surprised to read:
24294 # /* config.h. Generated by config.status. */
24295 if test x"$ac_file" = x-; then
24296 echo "/* Generated by configure. */" >$tmp/config.h
24298 echo "/* $ac_file. Generated by configure. */" >$tmp/config.h
24300 cat $tmp/in >>$tmp/config.h
24302 if test x"$ac_file" != x-; then
24303 if diff $ac_file $tmp/config.h >/dev/null 2>&1; then
24304 { echo "$as_me:$LINENO: $ac_file is unchanged" >&5
24305 echo "$as_me: $ac_file is unchanged" >&6;}
24307 ac_dir=`(dirname "$ac_file") 2>/dev/null ||
24308 $as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
24309 X"$ac_file" : 'X\(//\)[^/]' \| \
24310 X"$ac_file" : 'X\(//\)$' \| \
24311 X"$ac_file" : 'X\(/\)' \| \
24312 . : '\(.\)' 2>/dev/null ||
24314 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
24315 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
24316 /^X\(\/\/\)$/{ s//\1/; q; }
24317 /^X\(\/\).*/{ s//\1/; q; }
24319 { if $as_mkdir_p; then
24324 while test ! -d "$as_dir"; do
24325 as_dirs="$as_dir $as_dirs"
24326 as_dir=`(dirname "$as_dir") 2>/dev/null ||
24327 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
24328 X"$as_dir" : 'X\(//\)[^/]' \| \
24329 X"$as_dir" : 'X\(//\)$' \| \
24330 X"$as_dir" : 'X\(/\)' \| \
24331 . : '\(.\)' 2>/dev/null ||
24333 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
24334 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
24335 /^X\(\/\/\)$/{ s//\1/; q; }
24336 /^X\(\/\).*/{ s//\1/; q; }
24339 test ! -n "$as_dirs" || mkdir $as_dirs
24340 fi || { { echo "$as_me:$LINENO: error: cannot create directory \"$ac_dir\"" >&5
24341 echo "$as_me: error: cannot create directory \"$ac_dir\"" >&2;}
24342 { (exit 1); exit 1; }; }; }
24345 mv $tmp/config.h $ac_file
24349 rm -f $tmp/config.h
24353 cat >>$CONFIG_STATUS <<\_ACEOF
24356 # CONFIG_LINKS section.
24359 for ac_file in : $CONFIG_LINKS; do test "x$ac_file" = x: && continue
24360 ac_dest=`echo "$ac_file" | sed 's,:.*,,'`
24361 ac_source=`echo "$ac_file" | sed 's,[^:]*:,,'`
24363 { echo "$as_me:$LINENO: linking $srcdir/$ac_source to $ac_dest" >&5
24364 echo "$as_me: linking $srcdir/$ac_source to $ac_dest" >&6;}
24366 if test ! -r $srcdir/$ac_source; then
24367 { { echo "$as_me:$LINENO: error: $srcdir/$ac_source: file not found" >&5
24368 echo "$as_me: error: $srcdir/$ac_source: file not found" >&2;}
24369 { (exit 1); exit 1; }; }
24373 # Make relative symlinks.
24374 ac_dest_dir=`(dirname "$ac_dest") 2>/dev/null ||
24375 $as_expr X"$ac_dest" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
24376 X"$ac_dest" : 'X\(//\)[^/]' \| \
24377 X"$ac_dest" : 'X\(//\)$' \| \
24378 X"$ac_dest" : 'X\(/\)' \| \
24379 . : '\(.\)' 2>/dev/null ||
24381 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
24382 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
24383 /^X\(\/\/\)$/{ s//\1/; q; }
24384 /^X\(\/\).*/{ s//\1/; q; }
24386 { if $as_mkdir_p; then
24387 mkdir -p "$ac_dest_dir"
24389 as_dir="$ac_dest_dir"
24391 while test ! -d "$as_dir"; do
24392 as_dirs="$as_dir $as_dirs"
24393 as_dir=`(dirname "$as_dir") 2>/dev/null ||
24394 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
24395 X"$as_dir" : 'X\(//\)[^/]' \| \
24396 X"$as_dir" : 'X\(//\)$' \| \
24397 X"$as_dir" : 'X\(/\)' \| \
24398 . : '\(.\)' 2>/dev/null ||
24400 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
24401 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
24402 /^X\(\/\/\)$/{ s//\1/; q; }
24403 /^X\(\/\).*/{ s//\1/; q; }
24406 test ! -n "$as_dirs" || mkdir $as_dirs
24407 fi || { { echo "$as_me:$LINENO: error: cannot create directory \"$ac_dest_dir\"" >&5
24408 echo "$as_me: error: cannot create directory \"$ac_dest_dir\"" >&2;}
24409 { (exit 1); exit 1; }; }; }
24413 if test "$ac_dest_dir" != .; then
24414 ac_dir_suffix=/`echo "$ac_dest_dir" | sed 's,^\.[\\/],,'`
24415 # A "../" for each directory in $ac_dir_suffix.
24416 ac_top_builddir=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,../,g'`
24418 ac_dir_suffix= ac_top_builddir=
24422 .) # No --srcdir option. We are building in place.
24424 if test -z "$ac_top_builddir"; then
24427 ac_top_srcdir=`echo $ac_top_builddir | sed 's,/$,,'`
24429 [\\/]* | ?:[\\/]* ) # Absolute path.
24430 ac_srcdir=$srcdir$ac_dir_suffix;
24431 ac_top_srcdir=$srcdir ;;
24432 *) # Relative path.
24433 ac_srcdir=$ac_top_builddir$srcdir$ac_dir_suffix
24434 ac_top_srcdir=$ac_top_builddir$srcdir ;;
24437 # Do not use `cd foo && pwd` to compute absolute paths, because
24438 # the directories may not exist.
24440 .) ac_abs_builddir="$ac_dest_dir";;
24442 case "$ac_dest_dir" in
24443 .) ac_abs_builddir=`pwd`;;
24444 [\\/]* | ?:[\\/]* ) ac_abs_builddir="$ac_dest_dir";;
24445 *) ac_abs_builddir=`pwd`/"$ac_dest_dir";;
24448 case $ac_abs_builddir in
24449 .) ac_abs_top_builddir=${ac_top_builddir}.;;
24451 case ${ac_top_builddir}. in
24452 .) ac_abs_top_builddir=$ac_abs_builddir;;
24453 [\\/]* | ?:[\\/]* ) ac_abs_top_builddir=${ac_top_builddir}.;;
24454 *) ac_abs_top_builddir=$ac_abs_builddir/${ac_top_builddir}.;;
24457 case $ac_abs_builddir in
24458 .) ac_abs_srcdir=$ac_srcdir;;
24461 .) ac_abs_srcdir=$ac_abs_builddir;;
24462 [\\/]* | ?:[\\/]* ) ac_abs_srcdir=$ac_srcdir;;
24463 *) ac_abs_srcdir=$ac_abs_builddir/$ac_srcdir;;
24466 case $ac_abs_builddir in
24467 .) ac_abs_top_srcdir=$ac_top_srcdir;;
24469 case $ac_top_srcdir in
24470 .) ac_abs_top_srcdir=$ac_abs_builddir;;
24471 [\\/]* | ?:[\\/]* ) ac_abs_top_srcdir=$ac_top_srcdir;;
24472 *) ac_abs_top_srcdir=$ac_abs_builddir/$ac_top_srcdir;;
24478 [\\/$]* | ?:[\\/]* ) ac_rel_source=$srcdir/$ac_source ;;
24479 *) ac_rel_source=$ac_top_builddir$srcdir/$ac_source ;;
24482 # Try a symlink, then a hard link, then a copy.
24483 ln -s $ac_rel_source $ac_dest 2>/dev/null ||
24484 ln $srcdir/$ac_source $ac_dest 2>/dev/null ||
24485 cp -p $srcdir/$ac_source $ac_dest ||
24486 { { echo "$as_me:$LINENO: error: cannot link or copy $srcdir/$ac_source to $ac_dest" >&5
24487 echo "$as_me: error: cannot link or copy $srcdir/$ac_source to $ac_dest" >&2;}
24488 { (exit 1); exit 1; }; }
24491 cat >>$CONFIG_STATUS <<\_ACEOF
24494 # CONFIG_COMMANDS section.
24496 for ac_file in : $CONFIG_COMMANDS; do test "x$ac_file" = x: && continue
24497 ac_dest=`echo "$ac_file" | sed 's,:.*,,'`
24498 ac_source=`echo "$ac_file" | sed 's,[^:]*:,,'`
24499 ac_dir=`(dirname "$ac_dest") 2>/dev/null ||
24500 $as_expr X"$ac_dest" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
24501 X"$ac_dest" : 'X\(//\)[^/]' \| \
24502 X"$ac_dest" : 'X\(//\)$' \| \
24503 X"$ac_dest" : 'X\(/\)' \| \
24504 . : '\(.\)' 2>/dev/null ||
24506 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
24507 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
24508 /^X\(\/\/\)$/{ s//\1/; q; }
24509 /^X\(\/\).*/{ s//\1/; q; }
24511 { if $as_mkdir_p; then
24516 while test ! -d "$as_dir"; do
24517 as_dirs="$as_dir $as_dirs"
24518 as_dir=`(dirname "$as_dir") 2>/dev/null ||
24519 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
24520 X"$as_dir" : 'X\(//\)[^/]' \| \
24521 X"$as_dir" : 'X\(//\)$' \| \
24522 X"$as_dir" : 'X\(/\)' \| \
24523 . : '\(.\)' 2>/dev/null ||
24525 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
24526 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
24527 /^X\(\/\/\)$/{ s//\1/; q; }
24528 /^X\(\/\).*/{ s//\1/; q; }
24531 test ! -n "$as_dirs" || mkdir $as_dirs
24532 fi || { { echo "$as_me:$LINENO: error: cannot create directory \"$ac_dir\"" >&5
24533 echo "$as_me: error: cannot create directory \"$ac_dir\"" >&2;}
24534 { (exit 1); exit 1; }; }; }
24538 if test "$ac_dir" != .; then
24539 ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'`
24540 # A "../" for each directory in $ac_dir_suffix.
24541 ac_top_builddir=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,../,g'`
24543 ac_dir_suffix= ac_top_builddir=
24547 .) # No --srcdir option. We are building in place.
24549 if test -z "$ac_top_builddir"; then
24552 ac_top_srcdir=`echo $ac_top_builddir | sed 's,/$,,'`
24554 [\\/]* | ?:[\\/]* ) # Absolute path.
24555 ac_srcdir=$srcdir$ac_dir_suffix;
24556 ac_top_srcdir=$srcdir ;;
24557 *) # Relative path.
24558 ac_srcdir=$ac_top_builddir$srcdir$ac_dir_suffix
24559 ac_top_srcdir=$ac_top_builddir$srcdir ;;
24562 # Do not use `cd foo && pwd` to compute absolute paths, because
24563 # the directories may not exist.
24565 .) ac_abs_builddir="$ac_dir";;
24568 .) ac_abs_builddir=`pwd`;;
24569 [\\/]* | ?:[\\/]* ) ac_abs_builddir="$ac_dir";;
24570 *) ac_abs_builddir=`pwd`/"$ac_dir";;
24573 case $ac_abs_builddir in
24574 .) ac_abs_top_builddir=${ac_top_builddir}.;;
24576 case ${ac_top_builddir}. in
24577 .) ac_abs_top_builddir=$ac_abs_builddir;;
24578 [\\/]* | ?:[\\/]* ) ac_abs_top_builddir=${ac_top_builddir}.;;
24579 *) ac_abs_top_builddir=$ac_abs_builddir/${ac_top_builddir}.;;
24582 case $ac_abs_builddir in
24583 .) ac_abs_srcdir=$ac_srcdir;;
24586 .) ac_abs_srcdir=$ac_abs_builddir;;
24587 [\\/]* | ?:[\\/]* ) ac_abs_srcdir=$ac_srcdir;;
24588 *) ac_abs_srcdir=$ac_abs_builddir/$ac_srcdir;;
24591 case $ac_abs_builddir in
24592 .) ac_abs_top_srcdir=$ac_top_srcdir;;
24594 case $ac_top_srcdir in
24595 .) ac_abs_top_srcdir=$ac_abs_builddir;;
24596 [\\/]* | ?:[\\/]* ) ac_abs_top_srcdir=$ac_top_srcdir;;
24597 *) ac_abs_top_srcdir=$ac_abs_builddir/$ac_top_srcdir;;
24602 { echo "$as_me:$LINENO: executing $ac_dest commands" >&5
24603 echo "$as_me: executing $ac_dest commands" >&6;}
24606 if test "$GCC" = yes; then
24607 echo "/* generated for " `$CC --version | sed 1q` "*/" > tmp-stdint.h
24609 echo "/* generated for $CC */" > tmp-stdint.h
24612 sed 's/^ *//' >> tmp-stdint.h <<EOF
24614 #ifndef GCC_GENERATED_STDINT_H
24615 #define GCC_GENERATED_STDINT_H 1
24617 #include <sys/types.h>
24620 if test "$acx_cv_header_stdint" != stdint.h; then
24621 echo "#include <stddef.h>" >> tmp-stdint.h
24623 if test "$acx_cv_header_stdint" != stddef.h; then
24624 echo "#include <$acx_cv_header_stdint>" >> tmp-stdint.h
24627 sed 's/^ *//' >> tmp-stdint.h <<EOF
24628 /* glibc uses these symbols as guards to prevent redefinitions. */
24629 #ifdef __int8_t_defined
24634 #ifdef __uint32_t_defined
24640 # ----------------- done header, emit basic int types -------------
24641 if test "$acx_cv_header_stdint" = stddef.h; then
24642 sed 's/^ *//' >> tmp-stdint.h <<EOF
24646 typedef unsigned $acx_cv_type_int8_t uint8_t;
24651 typedef unsigned $acx_cv_type_int16_t uint16_t;
24656 typedef unsigned $acx_cv_type_int32_t uint32_t;
24661 typedef $acx_cv_type_int8_t int8_t;
24666 typedef $acx_cv_type_int16_t int16_t;
24671 typedef $acx_cv_type_int32_t int32_t;
24674 elif test "$ac_cv_type_u_int32_t" = yes; then
24675 sed 's/^ *//' >> tmp-stdint.h <<EOF
24677 /* int8_t int16_t int32_t defined by inet code, we do the u_intXX types */
24690 typedef u_int8_t uint8_t;
24695 typedef u_int16_t uint16_t;
24700 typedef u_int32_t uint32_t;
24704 sed 's/^ *//' >> tmp-stdint.h <<EOF
24706 /* Some systems have guard macros to prevent redefinitions, define them. */
24728 # ------------- done basic int types, emit int64_t types ------------
24729 if test "$ac_cv_type_uint64_t" = yes; then
24730 sed 's/^ *//' >> tmp-stdint.h <<EOF
24732 /* system headers have good uint64_t and int64_t */
24740 elif test "$ac_cv_type_u_int64_t" = yes; then
24741 sed 's/^ *//' >> tmp-stdint.h <<EOF
24743 /* system headers have an u_int64_t (and int64_t) */
24749 typedef u_int64_t uint64_t;
24752 elif test -n "$acx_cv_type_int64_t"; then
24753 sed 's/^ *//' >> tmp-stdint.h <<EOF
24755 /* architecture has a 64-bit type, $acx_cv_type_int64_t */
24758 typedef $acx_cv_type_int64_t int64_t;
24762 typedef unsigned $acx_cv_type_int64_t uint64_t;
24766 sed 's/^ *//' >> tmp-stdint.h <<EOF
24768 /* some common heuristics for int64_t, using compiler-specific tests */
24769 #if defined __STDC_VERSION__ && (__STDC_VERSION__-0) >= 199901L
24772 typedef long long int64_t;
24776 typedef unsigned long long uint64_t;
24779 #elif defined __GNUC__ && defined (__STDC__) && __STDC__-0
24780 /* NextStep 2.0 cc is really gcc 1.93 but it defines __GNUC__ = 2 and
24781 does not implement __extension__. But that compiler doesn't define
24783 # if __GNUC__ < 2 || (__NeXT__ && !__GNUC_MINOR__)
24784 # define __extension__
24789 __extension__ typedef long long int64_t;
24793 __extension__ typedef unsigned long long uint64_t;
24796 #elif !defined __STRICT_ANSI__
24797 # if defined _MSC_VER || defined __WATCOMC__ || defined __BORLANDC__
24801 typedef __int64 int64_t;
24805 typedef unsigned __int64 uint64_t;
24807 # endif /* compiler */
24809 #endif /* ANSI version */
24813 # ------------- done int64_t types, emit intptr types ------------
24814 if test "$ac_cv_type_uintptr_t" != yes; then
24815 sed 's/^ *//' >> tmp-stdint.h <<EOF
24817 /* Define intptr_t based on sizeof(void*) = $ac_cv_sizeof_void_p */
24818 typedef u$acx_cv_type_intptr_t uintptr_t;
24819 typedef $acx_cv_type_intptr_t intptr_t;
24823 # ------------- done intptr types, emit int_least types ------------
24824 if test "$ac_cv_type_int_least32_t" != yes; then
24825 sed 's/^ *//' >> tmp-stdint.h <<EOF
24827 /* Define int_least types */
24828 typedef int8_t int_least8_t;
24829 typedef int16_t int_least16_t;
24830 typedef int32_t int_least32_t;
24832 typedef int64_t int_least64_t;
24835 typedef uint8_t uint_least8_t;
24836 typedef uint16_t uint_least16_t;
24837 typedef uint32_t uint_least32_t;
24839 typedef uint64_t uint_least64_t;
24844 # ------------- done intptr types, emit int_fast types ------------
24845 if test "$ac_cv_type_int_fast32_t" != yes; then
24846 sed 's/^ *//' >> tmp-stdint.h <<EOF
24848 /* Define int_fast types. short is often slow */
24849 typedef int8_t int_fast8_t;
24850 typedef int int_fast16_t;
24851 typedef int32_t int_fast32_t;
24853 typedef int64_t int_fast64_t;
24856 typedef uint8_t uint_fast8_t;
24857 typedef unsigned int uint_fast16_t;
24858 typedef uint32_t uint_fast32_t;
24860 typedef uint64_t uint_fast64_t;
24865 if test "$ac_cv_type_uintmax_t" != yes; then
24866 sed 's/^ *//' >> tmp-stdint.h <<EOF
24868 /* Define intmax based on what we found */
24870 typedef int64_t intmax_t;
24872 typedef long intmax_t;
24875 typedef uint64_t uintmax_t;
24877 typedef unsigned long uintmax_t;
24882 sed 's/^ *//' >> tmp-stdint.h <<EOF
24884 #endif /* GCC_GENERATED_STDINT_H */
24887 if test -r gdb_stdint.h && cmp -s tmp-stdint.h gdb_stdint.h; then
24890 mv -f tmp-stdint.h gdb_stdint.h
24896 sed -e '/^DEPRECATED_TM_FILE[ ]*=/s,^DEPRECATED_TM_FILE[ ]*=[ ]*,&config/'"${gdb_target_cpu}"'/,
24897 /^XM_FILE[ ]*=/s,^XM_FILE[ ]*=[ ]*,&config/'"${gdb_host_cpu}"'/,
24898 /^NAT_FILE[ ]*=/s,^NAT_FILE[ ]*=[ ]*,&config/'"${gdb_host_cpu}"'/,' <Makefile >Makefile.tmp
24899 mv -f Makefile.tmp Makefile
24902 case x$CONFIG_HEADERS in
24903 xconfig.h:config.in)
24911 cat >>$CONFIG_STATUS <<\_ACEOF
24913 { (exit 0); exit 0; }
24915 chmod +x $CONFIG_STATUS
24916 ac_clean_files=$ac_clean_files_save
24919 # configure is writing to config.log, and then calls config.status.
24920 # config.status does its own redirection, appending to config.log.
24921 # Unfortunately, on DOS this fails, as config.log is still kept open
24922 # by configure, so config.status won't be able to write to it; its
24923 # output is simply discarded. So we exec the FD to /dev/null,
24924 # effectively closing config.log, so it can be properly (re)opened and
24925 # appended to by config.status. When coming back to configure, we
24926 # need to make the FD available again.
24927 if test "$no_create" != yes; then
24929 ac_config_status_args=
24930 test "$silent" = yes &&
24931 ac_config_status_args="$ac_config_status_args --quiet"
24933 $SHELL $CONFIG_STATUS $ac_config_status_args || ac_cs_success=false
24935 # Use ||, not &&, to avoid exiting from the if with $? = 1, which
24936 # would make configure fail if this is the last instruction.
24937 $ac_cs_success || { (exit 1); exit 1; }
24941 # CONFIG_SUBDIRS section.
24943 if test "$no_recursion" != yes; then
24945 # Remove --cache-file and --srcdir arguments so they do not pile up.
24946 ac_sub_configure_args=
24948 for ac_arg in $ac_configure_args; do
24949 if test -n "$ac_prev"; then
24954 -cache-file | --cache-file | --cache-fil | --cache-fi \
24955 | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c)
24956 ac_prev=cache_file ;;
24957 -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \
24958 | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* \
24961 --config-cache | -C)
24963 -srcdir | --srcdir | --srcdi | --srcd | --src | --sr)
24965 -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*)
24967 -prefix | --prefix | --prefi | --pref | --pre | --pr | --p)
24969 -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*)
24971 *) ac_sub_configure_args="$ac_sub_configure_args $ac_arg" ;;
24975 # Always prepend --prefix to ensure using the same prefix
24976 # in subdir configurations.
24977 ac_sub_configure_args="--prefix=$prefix $ac_sub_configure_args"
24980 for ac_dir in : $subdirs; do test "x$ac_dir" = x: && continue
24982 # Do not complain, so a configure script can configure whichever
24983 # parts of a large source tree are present.
24984 test -d $srcdir/$ac_dir || continue
24986 { echo "$as_me:$LINENO: configuring in $ac_dir" >&5
24987 echo "$as_me: configuring in $ac_dir" >&6;}
24988 { if $as_mkdir_p; then
24993 while test ! -d "$as_dir"; do
24994 as_dirs="$as_dir $as_dirs"
24995 as_dir=`(dirname "$as_dir") 2>/dev/null ||
24996 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
24997 X"$as_dir" : 'X\(//\)[^/]' \| \
24998 X"$as_dir" : 'X\(//\)$' \| \
24999 X"$as_dir" : 'X\(/\)' \| \
25000 . : '\(.\)' 2>/dev/null ||
25002 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
25003 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
25004 /^X\(\/\/\)$/{ s//\1/; q; }
25005 /^X\(\/\).*/{ s//\1/; q; }
25008 test ! -n "$as_dirs" || mkdir $as_dirs
25009 fi || { { echo "$as_me:$LINENO: error: cannot create directory \"$ac_dir\"" >&5
25010 echo "$as_me: error: cannot create directory \"$ac_dir\"" >&2;}
25011 { (exit 1); exit 1; }; }; }
25015 if test "$ac_dir" != .; then
25016 ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'`
25017 # A "../" for each directory in $ac_dir_suffix.
25018 ac_top_builddir=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,../,g'`
25020 ac_dir_suffix= ac_top_builddir=
25024 .) # No --srcdir option. We are building in place.
25026 if test -z "$ac_top_builddir"; then
25029 ac_top_srcdir=`echo $ac_top_builddir | sed 's,/$,,'`
25031 [\\/]* | ?:[\\/]* ) # Absolute path.
25032 ac_srcdir=$srcdir$ac_dir_suffix;
25033 ac_top_srcdir=$srcdir ;;
25034 *) # Relative path.
25035 ac_srcdir=$ac_top_builddir$srcdir$ac_dir_suffix
25036 ac_top_srcdir=$ac_top_builddir$srcdir ;;
25039 # Do not use `cd foo && pwd` to compute absolute paths, because
25040 # the directories may not exist.
25042 .) ac_abs_builddir="$ac_dir";;
25045 .) ac_abs_builddir=`pwd`;;
25046 [\\/]* | ?:[\\/]* ) ac_abs_builddir="$ac_dir";;
25047 *) ac_abs_builddir=`pwd`/"$ac_dir";;
25050 case $ac_abs_builddir in
25051 .) ac_abs_top_builddir=${ac_top_builddir}.;;
25053 case ${ac_top_builddir}. in
25054 .) ac_abs_top_builddir=$ac_abs_builddir;;
25055 [\\/]* | ?:[\\/]* ) ac_abs_top_builddir=${ac_top_builddir}.;;
25056 *) ac_abs_top_builddir=$ac_abs_builddir/${ac_top_builddir}.;;
25059 case $ac_abs_builddir in
25060 .) ac_abs_srcdir=$ac_srcdir;;
25063 .) ac_abs_srcdir=$ac_abs_builddir;;
25064 [\\/]* | ?:[\\/]* ) ac_abs_srcdir=$ac_srcdir;;
25065 *) ac_abs_srcdir=$ac_abs_builddir/$ac_srcdir;;
25068 case $ac_abs_builddir in
25069 .) ac_abs_top_srcdir=$ac_top_srcdir;;
25071 case $ac_top_srcdir in
25072 .) ac_abs_top_srcdir=$ac_abs_builddir;;
25073 [\\/]* | ?:[\\/]* ) ac_abs_top_srcdir=$ac_top_srcdir;;
25074 *) ac_abs_top_srcdir=$ac_abs_builddir/$ac_top_srcdir;;
25081 # Check for guested configure; otherwise get Cygnus style configure.
25082 if test -f $ac_srcdir/configure.gnu; then
25083 ac_sub_configure="$SHELL '$ac_srcdir/configure.gnu'"
25084 elif test -f $ac_srcdir/configure; then
25085 ac_sub_configure="$SHELL '$ac_srcdir/configure'"
25086 elif test -f $ac_srcdir/configure.in; then
25087 ac_sub_configure=$ac_configure
25089 { echo "$as_me:$LINENO: WARNING: no configuration information is in $ac_dir" >&5
25090 echo "$as_me: WARNING: no configuration information is in $ac_dir" >&2;}
25094 # The recursion is here.
25095 if test -n "$ac_sub_configure"; then
25096 # Make the cache file name correct relative to the subdirectory.
25097 case $cache_file in
25098 [\\/]* | ?:[\\/]* ) ac_sub_cache_file=$cache_file ;;
25099 *) # Relative path.
25100 ac_sub_cache_file=$ac_top_builddir$cache_file ;;
25103 { echo "$as_me:$LINENO: running $ac_sub_configure $ac_sub_configure_args --cache-file=$ac_sub_cache_file --srcdir=$ac_srcdir" >&5
25104 echo "$as_me: running $ac_sub_configure $ac_sub_configure_args --cache-file=$ac_sub_cache_file --srcdir=$ac_srcdir" >&6;}
25105 # The eval makes quoting arguments work.
25106 eval $ac_sub_configure $ac_sub_configure_args \
25107 --cache-file=$ac_sub_cache_file --srcdir=$ac_srcdir ||
25108 { { echo "$as_me:$LINENO: error: $ac_sub_configure failed for $ac_dir" >&5
25109 echo "$as_me: error: $ac_sub_configure failed for $ac_dir" >&2;}
25110 { (exit 1); exit 1; }; }