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 # Factoring default headers for most tests.
276 ac_includes_default="\
279 # include <sys/types.h>
282 # include <sys/stat.h>
293 # if !STDC_HEADERS && HAVE_MEMORY_H
299 # include <strings.h>
302 # include <inttypes.h>
313 ac_subdirs_all="$ac_subdirs_all doc testsuite"
314 ac_subdirs_all="$ac_subdirs_all gdbtk"
315 ac_subdirs_all="$ac_subdirs_all multi-ice"
316 ac_subdirs_all="$ac_subdirs_all gdbserver"
317 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 RANLIB ac_ct_RANLIB 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 GL_COND_LIBTOOL_TRUE GL_COND_LIBTOOL_FALSE GNULIB_MEMMEM GNULIB_MEMPCPY GNULIB_MEMRCHR GNULIB_STPCPY GNULIB_STPNCPY GNULIB_STRCHRNUL GNULIB_STRDUP GNULIB_STRNDUP GNULIB_STRNLEN GNULIB_STRPBRK GNULIB_STRSEP GNULIB_STRSTR GNULIB_STRCASESTR GNULIB_STRTOK_R GNULIB_MBSLEN GNULIB_MBSNLEN GNULIB_MBSCHR GNULIB_MBSRCHR GNULIB_MBSSTR GNULIB_MBSCASECMP GNULIB_MBSNCASECMP GNULIB_MBSPCASECMP GNULIB_MBSCASESTR GNULIB_MBSCSPN GNULIB_MBSPBRK GNULIB_MBSSPN GNULIB_MBSSEP GNULIB_MBSTOK_R GNULIB_STRERROR GNULIB_STRSIGNAL HAVE_DECL_MEMMEM HAVE_MEMPCPY HAVE_DECL_MEMRCHR HAVE_STPCPY HAVE_STPNCPY HAVE_STRCHRNUL HAVE_DECL_STRDUP HAVE_STRNDUP HAVE_DECL_STRNDUP HAVE_DECL_STRNLEN HAVE_STRPBRK HAVE_STRSEP HAVE_STRCASESTR HAVE_DECL_STRTOK_R HAVE_DECL_STRERROR HAVE_DECL_STRSIGNAL REPLACE_STRERROR REPLACE_STRSIGNAL REPLACE_MEMMEM REPLACE_STRCASESTR REPLACE_STRSTR HAVE_LONG_LONG_INT HAVE_UNSIGNED_LONG_LONG_INT HAVE_INTTYPES_H HAVE_SYS_TYPES_H INCLUDE_NEXT NEXT_STDINT_H HAVE_STDINT_H HAVE_SYS_INTTYPES_H HAVE_SYS_BITYPES_H BITSIZEOF_PTRDIFF_T BITSIZEOF_SIG_ATOMIC_T BITSIZEOF_SIZE_T BITSIZEOF_WCHAR_T BITSIZEOF_WINT_T HAVE_SIGNED_SIG_ATOMIC_T HAVE_SIGNED_WCHAR_T HAVE_SIGNED_WINT_T PTRDIFF_T_SUFFIX SIG_ATOMIC_T_SUFFIX SIZE_T_SUFFIX WCHAR_T_SUFFIX WINT_T_SUFFIX STDINT_H NEXT_STRING_H GNULIB_WCWIDTH HAVE_DECL_WCWIDTH REPLACE_WCWIDTH WCHAR_H HAVE_WCHAR_H NEXT_WCHAR_H LIBGNU_LIBDEPS LIBGNU_LTLIBDEPS PACKAGE INSTALL_PROGRAM INSTALL_SCRIPT INSTALL_DATA CYGPATH_W VERSION ACLOCAL AUTOCONF AUTOMAKE AUTOHEADER MAKEINFO install_sh STRIP ac_ct_STRIP INSTALL_STRIP_PROGRAM mkdir_p AWK SET_MAKE am__leading_dot AMTAR am__tar am__untar DEPDIR am__include am__quote AMDEP_TRUE AMDEP_FALSE AMDEPBACKSLASH CCDEPMODE am__fastdepCC_TRUE am__fastdepCC_FALSE subdirs TARGET_OBS PKGVERSION REPORT_BUGS_TO REPORT_BUGS_TEXI LN_S YACC AR ac_ct_AR DLLTOOL ac_ct_DLLTOOL WINDRES ac_ct_WINDRES MIG ac_ct_MIG READLINE READLINE_DEPS READLINE_CFLAGS HAVE_LIBEXPAT LIBEXPAT LTLIBEXPAT ALLOCA CONFIG_LDFLAGS TARGET_SYSTEM_ROOT TARGET_SYSTEM_ROOT_DEFINE WARN_CFLAGS WERROR_CFLAGS SER_HARDWIRE WIN32LIBS LIBGUI GUI_CFLAGS_X WIN32LDAPP TCL_VERSION TCL_MAJOR_VERSION TCL_MINOR_VERSION TCL_CC TCL_DEFS TCL_SHLIB_CFLAGS TCL_SHLIB_LD TCL_SHLIB_LD_LIBS TCL_SHLIB_SUFFIX TCL_DL_LIBS TCL_LD_FLAGS TCL_LD_SEARCH_FLAGS TCL_CC_SEARCH_FLAGS TCL_COMPAT_OBJS TCL_RANLIB TCL_BUILD_LIB_SPEC TCL_LIB_SPEC TCL_LIB_VERSIONS_OK TK_VERSION TK_DEFS TK_BUILD_INCLUDES TK_XINCLUDES TK_XLIBSW TK_BUILD_LIB_SPEC TK_LIB_SPEC TCLHDIR TKHDIR ITCLHDIR ITKHDIR ITCL_VERSION ITCL_DEFS ITCL_BUILD_INCLUDES ITCL_BUILD_LIB_SPEC ITCL_LIB_SPEC ITK_VERSION ITK_DEFS ITK_BUILD_INCLUDES ITK_BUILD_LIB_SPEC ITK_LIB_SPEC X_CFLAGS X_LDFLAGS X_LIBS TCL_DEPS TK_DEPS ITCLLIB ITCL_DEPS ITKLIB ITK_DEPS GDBTKLIBS GDBTK_CFLAGS GDBTK_SRC_DIR SIM SIM_OBS ENABLE_CFLAGS PROFILE_CFLAGS CONFIG_OBS CONFIG_DEPS CONFIG_SRCS CONFIG_ALL CONFIG_CLEAN CONFIG_INSTALL CONFIG_UNINSTALL target_subdir frags nm_h LIBICONV LIBOBJS LTLIBOBJS gl_LIBOBJS gl_LTLIBOBJS gltests_LIBOBJS gltests_LTLIBOBJS'
318 ac_subst_files='host_makefile_frag'
320 # Initialize some variables set by options.
322 ac_init_version=false
323 # The variables have the same names as the options, with
324 # dashes changed to underlines.
332 program_transform_name=s,x,x,
340 # Installation directory options.
341 # These are left unexpanded so users can "make install exec_prefix=/foo"
342 # and all the variables that are supposed to be based on exec_prefix
343 # by default will actually change.
344 # Use braces instead of parens because sh, perl, etc. also accept them.
345 bindir='${exec_prefix}/bin'
346 sbindir='${exec_prefix}/sbin'
347 libexecdir='${exec_prefix}/libexec'
348 datadir='${prefix}/share'
349 sysconfdir='${prefix}/etc'
350 sharedstatedir='${prefix}/com'
351 localstatedir='${prefix}/var'
352 libdir='${exec_prefix}/lib'
353 includedir='${prefix}/include'
354 oldincludedir='/usr/include'
355 infodir='${prefix}/info'
356 mandir='${prefix}/man'
361 # If the previous option needs an argument, assign it.
362 if test -n "$ac_prev"; then
363 eval "$ac_prev=\$ac_option"
368 ac_optarg=`expr "x$ac_option" : 'x[^=]*=\(.*\)'`
370 # Accept the important Cygnus configure options, so we can diagnose typos.
374 -bindir | --bindir | --bindi | --bind | --bin | --bi)
376 -bindir=* | --bindir=* | --bindi=* | --bind=* | --bin=* | --bi=*)
379 -build | --build | --buil | --bui | --bu)
380 ac_prev=build_alias ;;
381 -build=* | --build=* | --buil=* | --bui=* | --bu=*)
382 build_alias=$ac_optarg ;;
384 -cache-file | --cache-file | --cache-fil | --cache-fi \
385 | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c)
386 ac_prev=cache_file ;;
387 -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \
388 | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* | --c=*)
389 cache_file=$ac_optarg ;;
392 cache_file=config.cache ;;
394 -datadir | --datadir | --datadi | --datad | --data | --dat | --da)
396 -datadir=* | --datadir=* | --datadi=* | --datad=* | --data=* | --dat=* \
398 datadir=$ac_optarg ;;
400 -disable-* | --disable-*)
401 ac_feature=`expr "x$ac_option" : 'x-*disable-\(.*\)'`
402 # Reject names that are not valid shell variable names.
403 expr "x$ac_feature" : ".*[^-_$as_cr_alnum]" >/dev/null &&
404 { echo "$as_me: error: invalid feature name: $ac_feature" >&2
405 { (exit 1); exit 1; }; }
406 ac_feature=`echo $ac_feature | sed 's/-/_/g'`
407 eval "enable_$ac_feature=no" ;;
409 -enable-* | --enable-*)
410 ac_feature=`expr "x$ac_option" : 'x-*enable-\([^=]*\)'`
411 # Reject names that are not valid shell variable names.
412 expr "x$ac_feature" : ".*[^-_$as_cr_alnum]" >/dev/null &&
413 { echo "$as_me: error: invalid feature name: $ac_feature" >&2
414 { (exit 1); exit 1; }; }
415 ac_feature=`echo $ac_feature | sed 's/-/_/g'`
417 *=*) ac_optarg=`echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"`;;
420 eval "enable_$ac_feature='$ac_optarg'" ;;
422 -exec-prefix | --exec_prefix | --exec-prefix | --exec-prefi \
423 | --exec-pref | --exec-pre | --exec-pr | --exec-p | --exec- \
424 | --exec | --exe | --ex)
425 ac_prev=exec_prefix ;;
426 -exec-prefix=* | --exec_prefix=* | --exec-prefix=* | --exec-prefi=* \
427 | --exec-pref=* | --exec-pre=* | --exec-pr=* | --exec-p=* | --exec-=* \
428 | --exec=* | --exe=* | --ex=*)
429 exec_prefix=$ac_optarg ;;
431 -gas | --gas | --ga | --g)
432 # Obsolete; use --with-gas.
435 -help | --help | --hel | --he | -h)
437 -help=r* | --help=r* | --hel=r* | --he=r* | -hr*)
438 ac_init_help=recursive ;;
439 -help=s* | --help=s* | --hel=s* | --he=s* | -hs*)
440 ac_init_help=short ;;
442 -host | --host | --hos | --ho)
443 ac_prev=host_alias ;;
444 -host=* | --host=* | --hos=* | --ho=*)
445 host_alias=$ac_optarg ;;
447 -includedir | --includedir | --includedi | --included | --include \
448 | --includ | --inclu | --incl | --inc)
449 ac_prev=includedir ;;
450 -includedir=* | --includedir=* | --includedi=* | --included=* | --include=* \
451 | --includ=* | --inclu=* | --incl=* | --inc=*)
452 includedir=$ac_optarg ;;
454 -infodir | --infodir | --infodi | --infod | --info | --inf)
456 -infodir=* | --infodir=* | --infodi=* | --infod=* | --info=* | --inf=*)
457 infodir=$ac_optarg ;;
459 -libdir | --libdir | --libdi | --libd)
461 -libdir=* | --libdir=* | --libdi=* | --libd=*)
464 -libexecdir | --libexecdir | --libexecdi | --libexecd | --libexec \
465 | --libexe | --libex | --libe)
466 ac_prev=libexecdir ;;
467 -libexecdir=* | --libexecdir=* | --libexecdi=* | --libexecd=* | --libexec=* \
468 | --libexe=* | --libex=* | --libe=*)
469 libexecdir=$ac_optarg ;;
471 -localstatedir | --localstatedir | --localstatedi | --localstated \
472 | --localstate | --localstat | --localsta | --localst \
473 | --locals | --local | --loca | --loc | --lo)
474 ac_prev=localstatedir ;;
475 -localstatedir=* | --localstatedir=* | --localstatedi=* | --localstated=* \
476 | --localstate=* | --localstat=* | --localsta=* | --localst=* \
477 | --locals=* | --local=* | --loca=* | --loc=* | --lo=*)
478 localstatedir=$ac_optarg ;;
480 -mandir | --mandir | --mandi | --mand | --man | --ma | --m)
482 -mandir=* | --mandir=* | --mandi=* | --mand=* | --man=* | --ma=* | --m=*)
486 # Obsolete; use --without-fp.
489 -no-create | --no-create | --no-creat | --no-crea | --no-cre \
490 | --no-cr | --no-c | -n)
493 -no-recursion | --no-recursion | --no-recursio | --no-recursi \
494 | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r)
497 -oldincludedir | --oldincludedir | --oldincludedi | --oldincluded \
498 | --oldinclude | --oldinclud | --oldinclu | --oldincl | --oldinc \
499 | --oldin | --oldi | --old | --ol | --o)
500 ac_prev=oldincludedir ;;
501 -oldincludedir=* | --oldincludedir=* | --oldincludedi=* | --oldincluded=* \
502 | --oldinclude=* | --oldinclud=* | --oldinclu=* | --oldincl=* | --oldinc=* \
503 | --oldin=* | --oldi=* | --old=* | --ol=* | --o=*)
504 oldincludedir=$ac_optarg ;;
506 -prefix | --prefix | --prefi | --pref | --pre | --pr | --p)
508 -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*)
511 -program-prefix | --program-prefix | --program-prefi | --program-pref \
512 | --program-pre | --program-pr | --program-p)
513 ac_prev=program_prefix ;;
514 -program-prefix=* | --program-prefix=* | --program-prefi=* \
515 | --program-pref=* | --program-pre=* | --program-pr=* | --program-p=*)
516 program_prefix=$ac_optarg ;;
518 -program-suffix | --program-suffix | --program-suffi | --program-suff \
519 | --program-suf | --program-su | --program-s)
520 ac_prev=program_suffix ;;
521 -program-suffix=* | --program-suffix=* | --program-suffi=* \
522 | --program-suff=* | --program-suf=* | --program-su=* | --program-s=*)
523 program_suffix=$ac_optarg ;;
525 -program-transform-name | --program-transform-name \
526 | --program-transform-nam | --program-transform-na \
527 | --program-transform-n | --program-transform- \
528 | --program-transform | --program-transfor \
529 | --program-transfo | --program-transf \
530 | --program-trans | --program-tran \
531 | --progr-tra | --program-tr | --program-t)
532 ac_prev=program_transform_name ;;
533 -program-transform-name=* | --program-transform-name=* \
534 | --program-transform-nam=* | --program-transform-na=* \
535 | --program-transform-n=* | --program-transform-=* \
536 | --program-transform=* | --program-transfor=* \
537 | --program-transfo=* | --program-transf=* \
538 | --program-trans=* | --program-tran=* \
539 | --progr-tra=* | --program-tr=* | --program-t=*)
540 program_transform_name=$ac_optarg ;;
542 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
543 | -silent | --silent | --silen | --sile | --sil)
546 -sbindir | --sbindir | --sbindi | --sbind | --sbin | --sbi | --sb)
548 -sbindir=* | --sbindir=* | --sbindi=* | --sbind=* | --sbin=* \
550 sbindir=$ac_optarg ;;
552 -sharedstatedir | --sharedstatedir | --sharedstatedi \
553 | --sharedstated | --sharedstate | --sharedstat | --sharedsta \
554 | --sharedst | --shareds | --shared | --share | --shar \
556 ac_prev=sharedstatedir ;;
557 -sharedstatedir=* | --sharedstatedir=* | --sharedstatedi=* \
558 | --sharedstated=* | --sharedstate=* | --sharedstat=* | --sharedsta=* \
559 | --sharedst=* | --shareds=* | --shared=* | --share=* | --shar=* \
561 sharedstatedir=$ac_optarg ;;
563 -site | --site | --sit)
565 -site=* | --site=* | --sit=*)
568 -srcdir | --srcdir | --srcdi | --srcd | --src | --sr)
570 -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*)
573 -sysconfdir | --sysconfdir | --sysconfdi | --sysconfd | --sysconf \
574 | --syscon | --sysco | --sysc | --sys | --sy)
575 ac_prev=sysconfdir ;;
576 -sysconfdir=* | --sysconfdir=* | --sysconfdi=* | --sysconfd=* | --sysconf=* \
577 | --syscon=* | --sysco=* | --sysc=* | --sys=* | --sy=*)
578 sysconfdir=$ac_optarg ;;
580 -target | --target | --targe | --targ | --tar | --ta | --t)
581 ac_prev=target_alias ;;
582 -target=* | --target=* | --targe=* | --targ=* | --tar=* | --ta=* | --t=*)
583 target_alias=$ac_optarg ;;
585 -v | -verbose | --verbose | --verbos | --verbo | --verb)
588 -version | --version | --versio | --versi | --vers | -V)
592 ac_package=`expr "x$ac_option" : 'x-*with-\([^=]*\)'`
593 # Reject names that are not valid shell variable names.
594 expr "x$ac_package" : ".*[^-_$as_cr_alnum]" >/dev/null &&
595 { echo "$as_me: error: invalid package name: $ac_package" >&2
596 { (exit 1); exit 1; }; }
597 ac_package=`echo $ac_package| sed 's/-/_/g'`
599 *=*) ac_optarg=`echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"`;;
602 eval "with_$ac_package='$ac_optarg'" ;;
604 -without-* | --without-*)
605 ac_package=`expr "x$ac_option" : 'x-*without-\(.*\)'`
606 # Reject names that are not valid shell variable names.
607 expr "x$ac_package" : ".*[^-_$as_cr_alnum]" >/dev/null &&
608 { echo "$as_me: error: invalid package name: $ac_package" >&2
609 { (exit 1); exit 1; }; }
610 ac_package=`echo $ac_package | sed 's/-/_/g'`
611 eval "with_$ac_package=no" ;;
614 # Obsolete; use --with-x.
617 -x-includes | --x-includes | --x-include | --x-includ | --x-inclu \
618 | --x-incl | --x-inc | --x-in | --x-i)
619 ac_prev=x_includes ;;
620 -x-includes=* | --x-includes=* | --x-include=* | --x-includ=* | --x-inclu=* \
621 | --x-incl=* | --x-inc=* | --x-in=* | --x-i=*)
622 x_includes=$ac_optarg ;;
624 -x-libraries | --x-libraries | --x-librarie | --x-librari \
625 | --x-librar | --x-libra | --x-libr | --x-lib | --x-li | --x-l)
626 ac_prev=x_libraries ;;
627 -x-libraries=* | --x-libraries=* | --x-librarie=* | --x-librari=* \
628 | --x-librar=* | --x-libra=* | --x-libr=* | --x-lib=* | --x-li=* | --x-l=*)
629 x_libraries=$ac_optarg ;;
631 -*) { echo "$as_me: error: unrecognized option: $ac_option
632 Try \`$0 --help' for more information." >&2
633 { (exit 1); exit 1; }; }
637 ac_envvar=`expr "x$ac_option" : 'x\([^=]*\)='`
638 # Reject names that are not valid shell variable names.
639 expr "x$ac_envvar" : ".*[^_$as_cr_alnum]" >/dev/null &&
640 { echo "$as_me: error: invalid variable name: $ac_envvar" >&2
641 { (exit 1); exit 1; }; }
642 ac_optarg=`echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"`
643 eval "$ac_envvar='$ac_optarg'"
647 # FIXME: should be removed in autoconf 3.0.
648 echo "$as_me: WARNING: you should use --build, --host, --target" >&2
649 expr "x$ac_option" : ".*[^-._$as_cr_alnum]" >/dev/null &&
650 echo "$as_me: WARNING: invalid host type: $ac_option" >&2
651 : ${build_alias=$ac_option} ${host_alias=$ac_option} ${target_alias=$ac_option}
657 if test -n "$ac_prev"; then
658 ac_option=--`echo $ac_prev | sed 's/_/-/g'`
659 { echo "$as_me: error: missing argument to $ac_option" >&2
660 { (exit 1); exit 1; }; }
663 # Be sure to have absolute paths.
664 for ac_var in exec_prefix prefix
666 eval ac_val=$`echo $ac_var`
668 [\\/$]* | ?:[\\/]* | NONE | '' ) ;;
669 *) { echo "$as_me: error: expected an absolute directory name for --$ac_var: $ac_val" >&2
670 { (exit 1); exit 1; }; };;
674 # Be sure to have absolute paths.
675 for ac_var in bindir sbindir libexecdir datadir sysconfdir sharedstatedir \
676 localstatedir libdir includedir oldincludedir infodir mandir
678 eval ac_val=$`echo $ac_var`
680 [\\/$]* | ?:[\\/]* ) ;;
681 *) { echo "$as_me: error: expected an absolute directory name for --$ac_var: $ac_val" >&2
682 { (exit 1); exit 1; }; };;
686 # There might be people who depend on the old broken behavior: `$host'
687 # used to hold the argument of --host etc.
688 # FIXME: To remove some day.
693 # FIXME: To remove some day.
694 if test "x$host_alias" != x; then
695 if test "x$build_alias" = x; then
696 cross_compiling=maybe
697 echo "$as_me: WARNING: If you wanted to set the --build type, don't use --host.
698 If a cross compiler is detected then cross compile mode will be used." >&2
699 elif test "x$build_alias" != "x$host_alias"; then
705 test -n "$host_alias" && ac_tool_prefix=$host_alias-
707 test "$silent" = yes && exec 6>/dev/null
710 # Find the source files, if location was not specified.
711 if test -z "$srcdir"; then
712 ac_srcdir_defaulted=yes
713 # Try the directory containing this script, then its parent.
714 ac_confdir=`(dirname "$0") 2>/dev/null ||
715 $as_expr X"$0" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
716 X"$0" : 'X\(//\)[^/]' \| \
717 X"$0" : 'X\(//\)$' \| \
718 X"$0" : 'X\(/\)' \| \
719 . : '\(.\)' 2>/dev/null ||
721 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
722 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
723 /^X\(\/\/\)$/{ s//\1/; q; }
724 /^X\(\/\).*/{ s//\1/; q; }
727 if test ! -r $srcdir/$ac_unique_file; then
731 ac_srcdir_defaulted=no
733 if test ! -r $srcdir/$ac_unique_file; then
734 if test "$ac_srcdir_defaulted" = yes; then
735 { echo "$as_me: error: cannot find sources ($ac_unique_file) in $ac_confdir or .." >&2
736 { (exit 1); exit 1; }; }
738 { echo "$as_me: error: cannot find sources ($ac_unique_file) in $srcdir" >&2
739 { (exit 1); exit 1; }; }
742 (cd $srcdir && test -r ./$ac_unique_file) 2>/dev/null ||
743 { echo "$as_me: error: sources are in $srcdir, but \`cd $srcdir' does not work" >&2
744 { (exit 1); exit 1; }; }
745 srcdir=`echo "$srcdir" | sed 's%\([^\\/]\)[\\/]*$%\1%'`
746 ac_env_build_alias_set=${build_alias+set}
747 ac_env_build_alias_value=$build_alias
748 ac_cv_env_build_alias_set=${build_alias+set}
749 ac_cv_env_build_alias_value=$build_alias
750 ac_env_host_alias_set=${host_alias+set}
751 ac_env_host_alias_value=$host_alias
752 ac_cv_env_host_alias_set=${host_alias+set}
753 ac_cv_env_host_alias_value=$host_alias
754 ac_env_target_alias_set=${target_alias+set}
755 ac_env_target_alias_value=$target_alias
756 ac_cv_env_target_alias_set=${target_alias+set}
757 ac_cv_env_target_alias_value=$target_alias
758 ac_env_CC_set=${CC+set}
760 ac_cv_env_CC_set=${CC+set}
761 ac_cv_env_CC_value=$CC
762 ac_env_CFLAGS_set=${CFLAGS+set}
763 ac_env_CFLAGS_value=$CFLAGS
764 ac_cv_env_CFLAGS_set=${CFLAGS+set}
765 ac_cv_env_CFLAGS_value=$CFLAGS
766 ac_env_LDFLAGS_set=${LDFLAGS+set}
767 ac_env_LDFLAGS_value=$LDFLAGS
768 ac_cv_env_LDFLAGS_set=${LDFLAGS+set}
769 ac_cv_env_LDFLAGS_value=$LDFLAGS
770 ac_env_CPPFLAGS_set=${CPPFLAGS+set}
771 ac_env_CPPFLAGS_value=$CPPFLAGS
772 ac_cv_env_CPPFLAGS_set=${CPPFLAGS+set}
773 ac_cv_env_CPPFLAGS_value=$CPPFLAGS
774 ac_env_CPP_set=${CPP+set}
775 ac_env_CPP_value=$CPP
776 ac_cv_env_CPP_set=${CPP+set}
777 ac_cv_env_CPP_value=$CPP
780 # Report the --help message.
782 if test "$ac_init_help" = "long"; then
783 # Omit some internal or obsolete options to make the list less imposing.
784 # This message is too long to be a string in the A/UX 3.1 sh.
786 \`configure' configures this package to adapt to many kinds of systems.
788 Usage: $0 [OPTION]... [VAR=VALUE]...
790 To assign environment variables (e.g., CC, CFLAGS...), specify them as
791 VAR=VALUE. See below for descriptions of some of the useful variables.
793 Defaults for the options are specified in brackets.
796 -h, --help display this help and exit
797 --help=short display options specific to this package
798 --help=recursive display the short help of all the included packages
799 -V, --version display version information and exit
800 -q, --quiet, --silent do not print \`checking...' messages
801 --cache-file=FILE cache test results in FILE [disabled]
802 -C, --config-cache alias for \`--cache-file=config.cache'
803 -n, --no-create do not create output files
804 --srcdir=DIR find the sources in DIR [configure dir or \`..']
809 Installation directories:
810 --prefix=PREFIX install architecture-independent files in PREFIX
812 --exec-prefix=EPREFIX install architecture-dependent files in EPREFIX
815 By default, \`make install' will install all the files in
816 \`$ac_default_prefix/bin', \`$ac_default_prefix/lib' etc. You can specify
817 an installation prefix other than \`$ac_default_prefix' using \`--prefix',
818 for instance \`--prefix=\$HOME'.
820 For better control, use the options below.
822 Fine tuning of the installation directories:
823 --bindir=DIR user executables [EPREFIX/bin]
824 --sbindir=DIR system admin executables [EPREFIX/sbin]
825 --libexecdir=DIR program executables [EPREFIX/libexec]
826 --datadir=DIR read-only architecture-independent data [PREFIX/share]
827 --sysconfdir=DIR read-only single-machine data [PREFIX/etc]
828 --sharedstatedir=DIR modifiable architecture-independent data [PREFIX/com]
829 --localstatedir=DIR modifiable single-machine data [PREFIX/var]
830 --libdir=DIR object code libraries [EPREFIX/lib]
831 --includedir=DIR C header files [PREFIX/include]
832 --oldincludedir=DIR C header files for non-gcc [/usr/include]
833 --infodir=DIR info documentation [PREFIX/info]
834 --mandir=DIR man documentation [PREFIX/man]
840 --program-prefix=PREFIX prepend PREFIX to installed program names
841 --program-suffix=SUFFIX append SUFFIX to installed program names
842 --program-transform-name=PROGRAM run sed PROGRAM on installed program names
845 --x-includes=DIR X include files are in DIR
846 --x-libraries=DIR X library files are in DIR
849 --build=BUILD configure for building on BUILD [guessed]
850 --host=HOST cross-compile to build programs to run on HOST [BUILD]
851 --target=TARGET configure for building compilers for TARGET [HOST]
855 if test -n "$ac_init_help"; then
860 --disable-FEATURE do not include FEATURE (same as --enable-FEATURE=no)
861 --enable-FEATURE[=ARG] include FEATURE [ARG=yes]
862 --enable-maintainer-mode enable make rules and dependencies not useful
863 (and sometimes confusing) to the casual installer
864 --disable-dependency-tracking speeds up one-time build
865 --enable-dependency-tracking do not reject slow dependency extractors
866 --enable-targets alternative target configurations
867 --enable-64-bit-bfd 64-bit support (on hosts with narrower word sizes)
868 --disable-gdbcli disable command-line interface (CLI)
869 --disable-gdbmi disable machine-interface (MI)
870 --enable-tui enable full-screen terminal user interface (TUI)
871 --enable-gdbtk enable gdbtk graphical user interface (GUI)
872 --enable-profiling enable profiling of GDB
873 --disable-rpath do not hardcode runtime library paths
874 --enable-werror treat compile warnings as errors
875 --enable-build-warnings Enable build-time compiler warnings if gcc is used
876 --enable-gdb-build-warnings Enable GDB specific build-time compiler warnings if gcc is used
877 --enable-sim Link gdb with simulator
878 --enable-multi-ice build the multi-ice-gdb-server
881 --with-PACKAGE[=ARG] use PACKAGE [ARG=yes]
882 --without-PACKAGE do not use PACKAGE (same as --with-PACKAGE=no)
883 --with-separate-debug-dir=path Look for global separate debug info in this path LIBDIR/debug
884 --with-libunwind Use libunwind frame unwinding support
885 --with-pkgversion=PKG Use PKG in the version string in place of "GDB"
886 --with-bugurl=URL Direct users to URL to report a bug
887 --with-system-readline use installed readline library
888 --with-expat include expat support (auto/yes/no)
889 --with-gnu-ld assume the C compiler uses GNU ld default=no
890 --with-libexpat-prefix[=DIR] search for libexpat in DIR/include and DIR/lib
891 --without-libexpat-prefix don't search for libexpat in includedir and libdir
892 --without-included-regex don't use included regex; this is the default
893 on systems with version 2 of the GNU C library
894 (use with caution on other system)
895 --with-sysroot=DIR Search for usr/lib et al within DIR.
896 --with-tclconfig=DIR Directory containing tcl configuration (tclConfig.sh)
897 --with-tkconfig=DIR Directory containing tk configuration (tkConfig.sh)
898 --with-tclinclude=DIR Directory where tcl private headers are
899 --with-tkinclude=DIR Directory where tk private headers are
900 --with-itclconfig Directory containing itcl configuration (itclConfig.sh)
901 --with-itkconfig Directory containing itk configuration (itkConfig.sh)
902 --with-x use the X Window System
903 --with-libiconv-prefix=DIR search for libiconv in DIR/include and DIR/lib
905 Some influential environment variables:
906 CC C compiler command
907 CFLAGS C compiler flags
908 LDFLAGS linker flags, e.g. -L<lib dir> if you have libraries in a
909 nonstandard directory <lib dir>
910 CPPFLAGS C/C++ preprocessor flags, e.g. -I<include dir> if you have
911 headers in a nonstandard directory <include dir>
914 Use these variables to override the choices made by `configure' or to help
915 it to find libraries and programs with nonstandard names/locations.
920 if test "$ac_init_help" = "recursive"; then
921 # If there are subdirs, report their specific --help.
923 for ac_dir in : $ac_subdirs_all; do test "x$ac_dir" = x: && continue
924 test -d $ac_dir || continue
927 if test "$ac_dir" != .; then
928 ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'`
929 # A "../" for each directory in $ac_dir_suffix.
930 ac_top_builddir=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,../,g'`
932 ac_dir_suffix= ac_top_builddir=
936 .) # No --srcdir option. We are building in place.
938 if test -z "$ac_top_builddir"; then
941 ac_top_srcdir=`echo $ac_top_builddir | sed 's,/$,,'`
943 [\\/]* | ?:[\\/]* ) # Absolute path.
944 ac_srcdir=$srcdir$ac_dir_suffix;
945 ac_top_srcdir=$srcdir ;;
947 ac_srcdir=$ac_top_builddir$srcdir$ac_dir_suffix
948 ac_top_srcdir=$ac_top_builddir$srcdir ;;
951 # Do not use `cd foo && pwd` to compute absolute paths, because
952 # the directories may not exist.
954 .) ac_abs_builddir="$ac_dir";;
957 .) ac_abs_builddir=`pwd`;;
958 [\\/]* | ?:[\\/]* ) ac_abs_builddir="$ac_dir";;
959 *) ac_abs_builddir=`pwd`/"$ac_dir";;
962 case $ac_abs_builddir in
963 .) ac_abs_top_builddir=${ac_top_builddir}.;;
965 case ${ac_top_builddir}. in
966 .) ac_abs_top_builddir=$ac_abs_builddir;;
967 [\\/]* | ?:[\\/]* ) ac_abs_top_builddir=${ac_top_builddir}.;;
968 *) ac_abs_top_builddir=$ac_abs_builddir/${ac_top_builddir}.;;
971 case $ac_abs_builddir in
972 .) ac_abs_srcdir=$ac_srcdir;;
975 .) ac_abs_srcdir=$ac_abs_builddir;;
976 [\\/]* | ?:[\\/]* ) ac_abs_srcdir=$ac_srcdir;;
977 *) ac_abs_srcdir=$ac_abs_builddir/$ac_srcdir;;
980 case $ac_abs_builddir in
981 .) ac_abs_top_srcdir=$ac_top_srcdir;;
983 case $ac_top_srcdir in
984 .) ac_abs_top_srcdir=$ac_abs_builddir;;
985 [\\/]* | ?:[\\/]* ) ac_abs_top_srcdir=$ac_top_srcdir;;
986 *) ac_abs_top_srcdir=$ac_abs_builddir/$ac_top_srcdir;;
991 # Check for guested configure; otherwise get Cygnus style configure.
992 if test -f $ac_srcdir/configure.gnu; then
994 $SHELL $ac_srcdir/configure.gnu --help=recursive
995 elif test -f $ac_srcdir/configure; then
997 $SHELL $ac_srcdir/configure --help=recursive
998 elif test -f $ac_srcdir/configure.ac ||
999 test -f $ac_srcdir/configure.in; then
1001 $ac_configure --help
1003 echo "$as_me: WARNING: no configuration information is in $ac_dir" >&2
1009 test -n "$ac_init_help" && exit 0
1010 if $ac_init_version; then
1013 Copyright (C) 2003 Free Software Foundation, Inc.
1014 This configure script is free software; the Free Software Foundation
1015 gives unlimited permission to copy, distribute and modify it.
1021 This file contains any messages produced by compilers while
1022 running configure, to aid debugging if configure makes a mistake.
1024 It was created by $as_me, which was
1025 generated by GNU Autoconf 2.59. Invocation command line was
1036 hostname = `(hostname || uname -n) 2>/dev/null | sed 1q`
1037 uname -m = `(uname -m) 2>/dev/null || echo unknown`
1038 uname -r = `(uname -r) 2>/dev/null || echo unknown`
1039 uname -s = `(uname -s) 2>/dev/null || echo unknown`
1040 uname -v = `(uname -v) 2>/dev/null || echo unknown`
1042 /usr/bin/uname -p = `(/usr/bin/uname -p) 2>/dev/null || echo unknown`
1043 /bin/uname -X = `(/bin/uname -X) 2>/dev/null || echo unknown`
1045 /bin/arch = `(/bin/arch) 2>/dev/null || echo unknown`
1046 /usr/bin/arch -k = `(/usr/bin/arch -k) 2>/dev/null || echo unknown`
1047 /usr/convex/getsysinfo = `(/usr/convex/getsysinfo) 2>/dev/null || echo unknown`
1048 hostinfo = `(hostinfo) 2>/dev/null || echo unknown`
1049 /bin/machine = `(/bin/machine) 2>/dev/null || echo unknown`
1050 /usr/bin/oslevel = `(/usr/bin/oslevel) 2>/dev/null || echo unknown`
1051 /bin/universe = `(/bin/universe) 2>/dev/null || echo unknown`
1055 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1059 test -z "$as_dir" && as_dir=.
1060 echo "PATH: $as_dir"
1075 # Keep a trace of the command line.
1076 # Strip out --no-create and --no-recursion so they do not pile up.
1077 # Strip out --silent because we don't want to record it for future runs.
1078 # Also quote any args containing shell meta-characters.
1079 # Make two passes to allow for proper duplicate-argument suppression.
1084 ac_must_keep_next=false
1090 -no-create | --no-c* | -n | -no-recursion | --no-r*) continue ;;
1091 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
1092 | -silent | --silent | --silen | --sile | --sil)
1094 *" "*|*" "*|*[\[\]\~\#\$\^\&\*\(\)\{\}\\\|\;\<\>\?\"\']*)
1095 ac_arg=`echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;;
1098 1) ac_configure_args0="$ac_configure_args0 '$ac_arg'" ;;
1100 ac_configure_args1="$ac_configure_args1 '$ac_arg'"
1101 if test $ac_must_keep_next = true; then
1102 ac_must_keep_next=false # Got value, back to normal.
1105 *=* | --config-cache | -C | -disable-* | --disable-* \
1106 | -enable-* | --enable-* | -gas | --g* | -nfp | --nf* \
1107 | -q | -quiet | --q* | -silent | --sil* | -v | -verb* \
1108 | -with-* | --with-* | -without-* | --without-* | --x)
1109 case "$ac_configure_args0 " in
1110 "$ac_configure_args1"*" '$ac_arg' "* ) continue ;;
1113 -* ) ac_must_keep_next=true ;;
1116 ac_configure_args="$ac_configure_args$ac_sep'$ac_arg'"
1117 # Get rid of the leading space.
1123 $as_unset ac_configure_args0 || test "${ac_configure_args0+set}" != set || { ac_configure_args0=; export ac_configure_args0; }
1124 $as_unset ac_configure_args1 || test "${ac_configure_args1+set}" != set || { ac_configure_args1=; export ac_configure_args1; }
1126 # When interrupted or exit'd, cleanup temporary files, and complete
1127 # config.log. We remove comments because anyway the quotes in there
1128 # would cause problems or look ugly.
1129 # WARNING: Be sure not to use single quotes in there, as some shells,
1130 # such as our DU 5.0 friend, will then `close' the trap.
1131 trap 'exit_status=$?
1132 # Save into config.log some information that might help in debugging.
1137 ## ---------------- ##
1138 ## Cache variables. ##
1139 ## ---------------- ##
1142 # The following way of writing the cache mishandles newlines in values,
1145 case `(ac_space='"'"' '"'"'; set | grep ac_space) 2>&1` in
1148 "s/'"'"'/'"'"'\\\\'"'"''"'"'/g;
1149 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='"'"'\\2'"'"'/p"
1153 "s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1=\\2/p"
1160 ## ----------------- ##
1161 ## Output variables. ##
1162 ## ----------------- ##
1165 for ac_var in $ac_subst_vars
1167 eval ac_val=$`echo $ac_var`
1168 echo "$ac_var='"'"'$ac_val'"'"'"
1172 if test -n "$ac_subst_files"; then
1179 for ac_var in $ac_subst_files
1181 eval ac_val=$`echo $ac_var`
1182 echo "$ac_var='"'"'$ac_val'"'"'"
1187 if test -s confdefs.h; then
1194 sed "/^$/d" confdefs.h | sort
1197 test "$ac_signal" != 0 &&
1198 echo "$as_me: caught signal $ac_signal"
1199 echo "$as_me: exit $exit_status"
1201 rm -f core *.core &&
1202 rm -rf conftest* confdefs* conf$$* $ac_clean_files &&
1205 for ac_signal in 1 2 13 15; do
1206 trap 'ac_signal='$ac_signal'; { (exit 1); exit 1; }' $ac_signal
1210 # confdefs.h avoids OS command line length limits that DEFS can exceed.
1211 rm -rf conftest* confdefs.h
1212 # AIX cpp loses on an empty file, so make sure it contains at least a newline.
1215 # Predefined preprocessor variables.
1217 cat >>confdefs.h <<_ACEOF
1218 #define PACKAGE_NAME "$PACKAGE_NAME"
1222 cat >>confdefs.h <<_ACEOF
1223 #define PACKAGE_TARNAME "$PACKAGE_TARNAME"
1227 cat >>confdefs.h <<_ACEOF
1228 #define PACKAGE_VERSION "$PACKAGE_VERSION"
1232 cat >>confdefs.h <<_ACEOF
1233 #define PACKAGE_STRING "$PACKAGE_STRING"
1237 cat >>confdefs.h <<_ACEOF
1238 #define PACKAGE_BUGREPORT "$PACKAGE_BUGREPORT"
1242 # Let the site file select an alternate cache file if it wants to.
1243 # Prefer explicitly selected file to automatically selected ones.
1244 if test -z "$CONFIG_SITE"; then
1245 if test "x$prefix" != xNONE; then
1246 CONFIG_SITE="$prefix/share/config.site $prefix/etc/config.site"
1248 CONFIG_SITE="$ac_default_prefix/share/config.site $ac_default_prefix/etc/config.site"
1251 for ac_site_file in $CONFIG_SITE; do
1252 if test -r "$ac_site_file"; then
1253 { echo "$as_me:$LINENO: loading site script $ac_site_file" >&5
1254 echo "$as_me: loading site script $ac_site_file" >&6;}
1255 sed 's/^/| /' "$ac_site_file" >&5
1260 if test -r "$cache_file"; then
1261 # Some versions of bash will fail to source /dev/null (special
1262 # files actually), so we avoid doing that.
1263 if test -f "$cache_file"; then
1264 { echo "$as_me:$LINENO: loading cache $cache_file" >&5
1265 echo "$as_me: loading cache $cache_file" >&6;}
1267 [\\/]* | ?:[\\/]* ) . $cache_file;;
1268 *) . ./$cache_file;;
1272 { echo "$as_me:$LINENO: creating cache $cache_file" >&5
1273 echo "$as_me: creating cache $cache_file" >&6;}
1277 # Check that the precious variables saved in the cache have kept the same
1279 ac_cache_corrupted=false
1280 for ac_var in `(set) 2>&1 |
1281 sed -n 's/^ac_env_\([a-zA-Z_0-9]*\)_set=.*/\1/p'`; do
1282 eval ac_old_set=\$ac_cv_env_${ac_var}_set
1283 eval ac_new_set=\$ac_env_${ac_var}_set
1284 eval ac_old_val="\$ac_cv_env_${ac_var}_value"
1285 eval ac_new_val="\$ac_env_${ac_var}_value"
1286 case $ac_old_set,$ac_new_set in
1288 { echo "$as_me:$LINENO: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&5
1289 echo "$as_me: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&2;}
1290 ac_cache_corrupted=: ;;
1292 { echo "$as_me:$LINENO: error: \`$ac_var' was not set in the previous run" >&5
1293 echo "$as_me: error: \`$ac_var' was not set in the previous run" >&2;}
1294 ac_cache_corrupted=: ;;
1297 if test "x$ac_old_val" != "x$ac_new_val"; then
1298 # differences in whitespace do not lead to failure.
1299 ac_old_val_w=`echo x $ac_old_val`
1300 ac_new_val_w=`echo x $ac_new_val`
1301 if test "$ac_old_val_w" != "$ac_new_val_w"; then
1302 { echo "$as_me:$LINENO: error: \`$ac_var' has changed since the previous run:" >&5
1303 echo "$as_me: error: \`$ac_var' has changed since the previous run:" >&2;}
1304 ac_cache_corrupted=:
1306 { echo "$as_me:$LINENO: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&5
1307 echo "$as_me: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&2;}
1308 eval $ac_var=\$ac_old_val
1310 { echo "$as_me:$LINENO: former value: \`$ac_old_val'" >&5
1311 echo "$as_me: former value: \`$ac_old_val'" >&2;}
1312 { echo "$as_me:$LINENO: current value: \`$ac_new_val'" >&5
1313 echo "$as_me: current value: \`$ac_new_val'" >&2;}
1316 # Pass precious variables to config.status.
1317 if test "$ac_new_set" = set; then
1319 *" "*|*" "*|*[\[\]\~\#\$\^\&\*\(\)\{\}\\\|\;\<\>\?\"\']*)
1320 ac_arg=$ac_var=`echo "$ac_new_val" | sed "s/'/'\\\\\\\\''/g"` ;;
1321 *) ac_arg=$ac_var=$ac_new_val ;;
1323 case " $ac_configure_args " in
1324 *" '$ac_arg' "*) ;; # Avoid dups. Use of quotes ensures accuracy.
1325 *) ac_configure_args="$ac_configure_args '$ac_arg'" ;;
1329 if $ac_cache_corrupted; then
1330 { echo "$as_me:$LINENO: error: changes in the environment can compromise the build" >&5
1331 echo "$as_me: error: changes in the environment can compromise the build" >&2;}
1332 { { echo "$as_me:$LINENO: error: run \`make distclean' and/or \`rm $cache_file' and start over" >&5
1333 echo "$as_me: error: run \`make distclean' and/or \`rm $cache_file' and start over" >&2;}
1334 { (exit 1); exit 1; }; }
1338 ac_cpp='$CPP $CPPFLAGS'
1339 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
1340 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
1341 ac_compiler_gnu=$ac_cv_c_compiler_gnu
1344 gl_header_list="$gl_header_list stdint.h"
1345 gl_header_list="$gl_header_list wchar.h"
1346 gl_header_list="$gl_header_list string.h"
1364 ac_config_headers="$ac_config_headers config.h:config.in"
1366 echo "$as_me:$LINENO: checking whether to enable maintainer-specific portions of Makefiles" >&5
1367 echo $ECHO_N "checking whether to enable maintainer-specific portions of Makefiles... $ECHO_C" >&6
1368 # Check whether --enable-maintainer-mode or --disable-maintainer-mode was given.
1369 if test "${enable_maintainer_mode+set}" = set; then
1370 enableval="$enable_maintainer_mode"
1371 USE_MAINTAINER_MODE=$enableval
1373 USE_MAINTAINER_MODE=no
1375 echo "$as_me:$LINENO: result: $USE_MAINTAINER_MODE" >&5
1376 echo "${ECHO_T}$USE_MAINTAINER_MODE" >&6
1379 if test $USE_MAINTAINER_MODE = yes; then
1380 MAINTAINER_MODE_TRUE=
1381 MAINTAINER_MODE_FALSE='#'
1383 MAINTAINER_MODE_TRUE='#'
1384 MAINTAINER_MODE_FALSE=
1387 MAINT=$MAINTAINER_MODE_TRUE
1392 ac_cpp='$CPP $CPPFLAGS'
1393 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
1394 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
1395 ac_compiler_gnu=$ac_cv_c_compiler_gnu
1396 if test -n "$ac_tool_prefix"; then
1397 # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args.
1398 set dummy ${ac_tool_prefix}gcc; ac_word=$2
1399 echo "$as_me:$LINENO: checking for $ac_word" >&5
1400 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1401 if test "${ac_cv_prog_CC+set}" = set; then
1402 echo $ECHO_N "(cached) $ECHO_C" >&6
1404 if test -n "$CC"; then
1405 ac_cv_prog_CC="$CC" # Let the user override the test.
1407 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1411 test -z "$as_dir" && as_dir=.
1412 for ac_exec_ext in '' $ac_executable_extensions; do
1413 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1414 ac_cv_prog_CC="${ac_tool_prefix}gcc"
1415 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
1424 if test -n "$CC"; then
1425 echo "$as_me:$LINENO: result: $CC" >&5
1426 echo "${ECHO_T}$CC" >&6
1428 echo "$as_me:$LINENO: result: no" >&5
1429 echo "${ECHO_T}no" >&6
1433 if test -z "$ac_cv_prog_CC"; then
1435 # Extract the first word of "gcc", so it can be a program name with args.
1436 set dummy gcc; ac_word=$2
1437 echo "$as_me:$LINENO: checking for $ac_word" >&5
1438 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1439 if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
1440 echo $ECHO_N "(cached) $ECHO_C" >&6
1442 if test -n "$ac_ct_CC"; then
1443 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
1445 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1449 test -z "$as_dir" && as_dir=.
1450 for ac_exec_ext in '' $ac_executable_extensions; do
1451 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1452 ac_cv_prog_ac_ct_CC="gcc"
1453 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
1461 ac_ct_CC=$ac_cv_prog_ac_ct_CC
1462 if test -n "$ac_ct_CC"; then
1463 echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
1464 echo "${ECHO_T}$ac_ct_CC" >&6
1466 echo "$as_me:$LINENO: result: no" >&5
1467 echo "${ECHO_T}no" >&6
1475 if test -z "$CC"; then
1476 if test -n "$ac_tool_prefix"; then
1477 # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args.
1478 set dummy ${ac_tool_prefix}cc; ac_word=$2
1479 echo "$as_me:$LINENO: checking for $ac_word" >&5
1480 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1481 if test "${ac_cv_prog_CC+set}" = set; then
1482 echo $ECHO_N "(cached) $ECHO_C" >&6
1484 if test -n "$CC"; then
1485 ac_cv_prog_CC="$CC" # Let the user override the test.
1487 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1491 test -z "$as_dir" && as_dir=.
1492 for ac_exec_ext in '' $ac_executable_extensions; do
1493 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1494 ac_cv_prog_CC="${ac_tool_prefix}cc"
1495 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
1504 if test -n "$CC"; then
1505 echo "$as_me:$LINENO: result: $CC" >&5
1506 echo "${ECHO_T}$CC" >&6
1508 echo "$as_me:$LINENO: result: no" >&5
1509 echo "${ECHO_T}no" >&6
1513 if test -z "$ac_cv_prog_CC"; then
1515 # Extract the first word of "cc", so it can be a program name with args.
1516 set dummy cc; ac_word=$2
1517 echo "$as_me:$LINENO: checking for $ac_word" >&5
1518 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1519 if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
1520 echo $ECHO_N "(cached) $ECHO_C" >&6
1522 if test -n "$ac_ct_CC"; then
1523 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
1525 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1529 test -z "$as_dir" && as_dir=.
1530 for ac_exec_ext in '' $ac_executable_extensions; do
1531 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1532 ac_cv_prog_ac_ct_CC="cc"
1533 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
1541 ac_ct_CC=$ac_cv_prog_ac_ct_CC
1542 if test -n "$ac_ct_CC"; then
1543 echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
1544 echo "${ECHO_T}$ac_ct_CC" >&6
1546 echo "$as_me:$LINENO: result: no" >&5
1547 echo "${ECHO_T}no" >&6
1556 if test -z "$CC"; then
1557 # Extract the first word of "cc", so it can be a program name with args.
1558 set dummy cc; ac_word=$2
1559 echo "$as_me:$LINENO: checking for $ac_word" >&5
1560 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1561 if test "${ac_cv_prog_CC+set}" = set; then
1562 echo $ECHO_N "(cached) $ECHO_C" >&6
1564 if test -n "$CC"; then
1565 ac_cv_prog_CC="$CC" # Let the user override the test.
1568 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1572 test -z "$as_dir" && as_dir=.
1573 for ac_exec_ext in '' $ac_executable_extensions; do
1574 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1575 if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then
1576 ac_prog_rejected=yes
1580 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
1586 if test $ac_prog_rejected = yes; then
1587 # We found a bogon in the path, so make sure we never use it.
1588 set dummy $ac_cv_prog_CC
1590 if test $# != 0; then
1591 # We chose a different compiler from the bogus one.
1592 # However, it has the same basename, so the bogon will be chosen
1593 # first if we set CC to just the basename; use the full file name.
1595 ac_cv_prog_CC="$as_dir/$ac_word${1+' '}$@"
1601 if test -n "$CC"; then
1602 echo "$as_me:$LINENO: result: $CC" >&5
1603 echo "${ECHO_T}$CC" >&6
1605 echo "$as_me:$LINENO: result: no" >&5
1606 echo "${ECHO_T}no" >&6
1610 if test -z "$CC"; then
1611 if test -n "$ac_tool_prefix"; then
1614 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
1615 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
1616 echo "$as_me:$LINENO: checking for $ac_word" >&5
1617 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1618 if test "${ac_cv_prog_CC+set}" = set; then
1619 echo $ECHO_N "(cached) $ECHO_C" >&6
1621 if test -n "$CC"; then
1622 ac_cv_prog_CC="$CC" # Let the user override the test.
1624 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1628 test -z "$as_dir" && as_dir=.
1629 for ac_exec_ext in '' $ac_executable_extensions; do
1630 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1631 ac_cv_prog_CC="$ac_tool_prefix$ac_prog"
1632 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
1641 if test -n "$CC"; then
1642 echo "$as_me:$LINENO: result: $CC" >&5
1643 echo "${ECHO_T}$CC" >&6
1645 echo "$as_me:$LINENO: result: no" >&5
1646 echo "${ECHO_T}no" >&6
1649 test -n "$CC" && break
1652 if test -z "$CC"; then
1656 # Extract the first word of "$ac_prog", so it can be a program name with args.
1657 set dummy $ac_prog; ac_word=$2
1658 echo "$as_me:$LINENO: checking for $ac_word" >&5
1659 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1660 if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
1661 echo $ECHO_N "(cached) $ECHO_C" >&6
1663 if test -n "$ac_ct_CC"; then
1664 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
1666 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1670 test -z "$as_dir" && as_dir=.
1671 for ac_exec_ext in '' $ac_executable_extensions; do
1672 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1673 ac_cv_prog_ac_ct_CC="$ac_prog"
1674 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
1682 ac_ct_CC=$ac_cv_prog_ac_ct_CC
1683 if test -n "$ac_ct_CC"; then
1684 echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
1685 echo "${ECHO_T}$ac_ct_CC" >&6
1687 echo "$as_me:$LINENO: result: no" >&5
1688 echo "${ECHO_T}no" >&6
1691 test -n "$ac_ct_CC" && break
1700 test -z "$CC" && { { echo "$as_me:$LINENO: error: no acceptable C compiler found in \$PATH
1701 See \`config.log' for more details." >&5
1702 echo "$as_me: error: no acceptable C compiler found in \$PATH
1703 See \`config.log' for more details." >&2;}
1704 { (exit 1); exit 1; }; }
1706 # Provide some information about the compiler.
1707 echo "$as_me:$LINENO:" \
1708 "checking for C compiler version" >&5
1709 ac_compiler=`set X $ac_compile; echo $2`
1710 { (eval echo "$as_me:$LINENO: \"$ac_compiler --version </dev/null >&5\"") >&5
1711 (eval $ac_compiler --version </dev/null >&5) 2>&5
1713 echo "$as_me:$LINENO: \$? = $ac_status" >&5
1714 (exit $ac_status); }
1715 { (eval echo "$as_me:$LINENO: \"$ac_compiler -v </dev/null >&5\"") >&5
1716 (eval $ac_compiler -v </dev/null >&5) 2>&5
1718 echo "$as_me:$LINENO: \$? = $ac_status" >&5
1719 (exit $ac_status); }
1720 { (eval echo "$as_me:$LINENO: \"$ac_compiler -V </dev/null >&5\"") >&5
1721 (eval $ac_compiler -V </dev/null >&5) 2>&5
1723 echo "$as_me:$LINENO: \$? = $ac_status" >&5
1724 (exit $ac_status); }
1726 cat >conftest.$ac_ext <<_ACEOF
1729 cat confdefs.h >>conftest.$ac_ext
1730 cat >>conftest.$ac_ext <<_ACEOF
1731 /* end confdefs.h. */
1741 ac_clean_files_save=$ac_clean_files
1742 ac_clean_files="$ac_clean_files a.out a.exe b.out"
1743 # Try to create an executable without -o first, disregard a.out.
1744 # It will help us diagnose broken compilers, and finding out an intuition
1746 echo "$as_me:$LINENO: checking for C compiler default output file name" >&5
1747 echo $ECHO_N "checking for C compiler default output file name... $ECHO_C" >&6
1748 ac_link_default=`echo "$ac_link" | sed 's/ -o *conftest[^ ]*//'`
1749 if { (eval echo "$as_me:$LINENO: \"$ac_link_default\"") >&5
1750 (eval $ac_link_default) 2>&5
1752 echo "$as_me:$LINENO: \$? = $ac_status" >&5
1753 (exit $ac_status); }; then
1754 # Find the output, starting from the most likely. This scheme is
1755 # not robust to junk in `.', hence go to wildcards (a.*) only as a last
1758 # Be careful to initialize this variable, since it used to be cached.
1759 # Otherwise an old cache value of `no' led to `EXEEXT = no' in a Makefile.
1761 # b.out is created by i960 compilers.
1762 for ac_file in a_out.exe a.exe conftest.exe a.out conftest a.* conftest.* b.out
1764 test -f "$ac_file" || continue
1766 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.o | *.obj )
1769 # This is the source file.
1772 # We found the default executable, but exeext='' is most
1776 ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
1777 # FIXME: I believe we export ac_cv_exeext for Libtool,
1778 # but it would be cool to find out if it's true. Does anybody
1779 # maintain Libtool? --akim.
1787 echo "$as_me: failed program was:" >&5
1788 sed 's/^/| /' conftest.$ac_ext >&5
1790 { { echo "$as_me:$LINENO: error: C compiler cannot create executables
1791 See \`config.log' for more details." >&5
1792 echo "$as_me: error: C compiler cannot create executables
1793 See \`config.log' for more details." >&2;}
1794 { (exit 77); exit 77; }; }
1797 ac_exeext=$ac_cv_exeext
1798 echo "$as_me:$LINENO: result: $ac_file" >&5
1799 echo "${ECHO_T}$ac_file" >&6
1801 # Check the compiler produces executables we can run. If not, either
1802 # the compiler is broken, or we cross compile.
1803 echo "$as_me:$LINENO: checking whether the C compiler works" >&5
1804 echo $ECHO_N "checking whether the C compiler works... $ECHO_C" >&6
1805 # FIXME: These cross compiler hacks should be removed for Autoconf 3.0
1806 # If not cross compiling, check that we can run a simple program.
1807 if test "$cross_compiling" != yes; then
1808 if { ac_try='./$ac_file'
1809 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
1812 echo "$as_me:$LINENO: \$? = $ac_status" >&5
1813 (exit $ac_status); }; }; then
1816 if test "$cross_compiling" = maybe; then
1819 { { echo "$as_me:$LINENO: error: cannot run C compiled programs.
1820 If you meant to cross compile, use \`--host'.
1821 See \`config.log' for more details." >&5
1822 echo "$as_me: error: cannot run C compiled programs.
1823 If you meant to cross compile, use \`--host'.
1824 See \`config.log' for more details." >&2;}
1825 { (exit 1); exit 1; }; }
1829 echo "$as_me:$LINENO: result: yes" >&5
1830 echo "${ECHO_T}yes" >&6
1832 rm -f a.out a.exe conftest$ac_cv_exeext b.out
1833 ac_clean_files=$ac_clean_files_save
1834 # Check the compiler produces executables we can run. If not, either
1835 # the compiler is broken, or we cross compile.
1836 echo "$as_me:$LINENO: checking whether we are cross compiling" >&5
1837 echo $ECHO_N "checking whether we are cross compiling... $ECHO_C" >&6
1838 echo "$as_me:$LINENO: result: $cross_compiling" >&5
1839 echo "${ECHO_T}$cross_compiling" >&6
1841 echo "$as_me:$LINENO: checking for suffix of executables" >&5
1842 echo $ECHO_N "checking for suffix of executables... $ECHO_C" >&6
1843 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
1844 (eval $ac_link) 2>&5
1846 echo "$as_me:$LINENO: \$? = $ac_status" >&5
1847 (exit $ac_status); }; then
1848 # If both `conftest.exe' and `conftest' are `present' (well, observable)
1849 # catch `conftest.exe'. For instance with Cygwin, `ls conftest' will
1850 # work properly (i.e., refer to `conftest.exe'), while it won't with
1852 for ac_file in conftest.exe conftest conftest.*; do
1853 test -f "$ac_file" || continue
1855 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.o | *.obj ) ;;
1856 *.* ) ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
1863 { { echo "$as_me:$LINENO: error: cannot compute suffix of executables: cannot compile and link
1864 See \`config.log' for more details." >&5
1865 echo "$as_me: error: cannot compute suffix of executables: cannot compile and link
1866 See \`config.log' for more details." >&2;}
1867 { (exit 1); exit 1; }; }
1870 rm -f conftest$ac_cv_exeext
1871 echo "$as_me:$LINENO: result: $ac_cv_exeext" >&5
1872 echo "${ECHO_T}$ac_cv_exeext" >&6
1874 rm -f conftest.$ac_ext
1875 EXEEXT=$ac_cv_exeext
1877 echo "$as_me:$LINENO: checking for suffix of object files" >&5
1878 echo $ECHO_N "checking for suffix of object files... $ECHO_C" >&6
1879 if test "${ac_cv_objext+set}" = set; then
1880 echo $ECHO_N "(cached) $ECHO_C" >&6
1882 cat >conftest.$ac_ext <<_ACEOF
1885 cat confdefs.h >>conftest.$ac_ext
1886 cat >>conftest.$ac_ext <<_ACEOF
1887 /* end confdefs.h. */
1897 rm -f conftest.o conftest.obj
1898 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
1899 (eval $ac_compile) 2>&5
1901 echo "$as_me:$LINENO: \$? = $ac_status" >&5
1902 (exit $ac_status); }; then
1903 for ac_file in `(ls conftest.o conftest.obj; ls conftest.*) 2>/dev/null`; do
1905 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg ) ;;
1906 *) ac_cv_objext=`expr "$ac_file" : '.*\.\(.*\)'`
1911 echo "$as_me: failed program was:" >&5
1912 sed 's/^/| /' conftest.$ac_ext >&5
1914 { { echo "$as_me:$LINENO: error: cannot compute suffix of object files: cannot compile
1915 See \`config.log' for more details." >&5
1916 echo "$as_me: error: cannot compute suffix of object files: cannot compile
1917 See \`config.log' for more details." >&2;}
1918 { (exit 1); exit 1; }; }
1921 rm -f conftest.$ac_cv_objext conftest.$ac_ext
1923 echo "$as_me:$LINENO: result: $ac_cv_objext" >&5
1924 echo "${ECHO_T}$ac_cv_objext" >&6
1925 OBJEXT=$ac_cv_objext
1927 echo "$as_me:$LINENO: checking whether we are using the GNU C compiler" >&5
1928 echo $ECHO_N "checking whether we are using the GNU C compiler... $ECHO_C" >&6
1929 if test "${ac_cv_c_compiler_gnu+set}" = set; then
1930 echo $ECHO_N "(cached) $ECHO_C" >&6
1932 cat >conftest.$ac_ext <<_ACEOF
1935 cat confdefs.h >>conftest.$ac_ext
1936 cat >>conftest.$ac_ext <<_ACEOF
1937 /* end confdefs.h. */
1950 rm -f conftest.$ac_objext
1951 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
1952 (eval $ac_compile) 2>conftest.er1
1954 grep -v '^ *+' conftest.er1 >conftest.err
1956 cat conftest.err >&5
1957 echo "$as_me:$LINENO: \$? = $ac_status" >&5
1958 (exit $ac_status); } &&
1959 { ac_try='test -z "$ac_c_werror_flag"
1960 || test ! -s conftest.err'
1961 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
1964 echo "$as_me:$LINENO: \$? = $ac_status" >&5
1965 (exit $ac_status); }; } &&
1966 { ac_try='test -s conftest.$ac_objext'
1967 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
1970 echo "$as_me:$LINENO: \$? = $ac_status" >&5
1971 (exit $ac_status); }; }; then
1974 echo "$as_me: failed program was:" >&5
1975 sed 's/^/| /' conftest.$ac_ext >&5
1979 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
1980 ac_cv_c_compiler_gnu=$ac_compiler_gnu
1983 echo "$as_me:$LINENO: result: $ac_cv_c_compiler_gnu" >&5
1984 echo "${ECHO_T}$ac_cv_c_compiler_gnu" >&6
1985 GCC=`test $ac_compiler_gnu = yes && echo yes`
1986 ac_test_CFLAGS=${CFLAGS+set}
1987 ac_save_CFLAGS=$CFLAGS
1989 echo "$as_me:$LINENO: checking whether $CC accepts -g" >&5
1990 echo $ECHO_N "checking whether $CC accepts -g... $ECHO_C" >&6
1991 if test "${ac_cv_prog_cc_g+set}" = set; then
1992 echo $ECHO_N "(cached) $ECHO_C" >&6
1994 cat >conftest.$ac_ext <<_ACEOF
1997 cat confdefs.h >>conftest.$ac_ext
1998 cat >>conftest.$ac_ext <<_ACEOF
1999 /* end confdefs.h. */
2009 rm -f conftest.$ac_objext
2010 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2011 (eval $ac_compile) 2>conftest.er1
2013 grep -v '^ *+' conftest.er1 >conftest.err
2015 cat conftest.err >&5
2016 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2017 (exit $ac_status); } &&
2018 { ac_try='test -z "$ac_c_werror_flag"
2019 || test ! -s conftest.err'
2020 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2023 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2024 (exit $ac_status); }; } &&
2025 { ac_try='test -s conftest.$ac_objext'
2026 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2029 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2030 (exit $ac_status); }; }; then
2033 echo "$as_me: failed program was:" >&5
2034 sed 's/^/| /' conftest.$ac_ext >&5
2038 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
2040 echo "$as_me:$LINENO: result: $ac_cv_prog_cc_g" >&5
2041 echo "${ECHO_T}$ac_cv_prog_cc_g" >&6
2042 if test "$ac_test_CFLAGS" = set; then
2043 CFLAGS=$ac_save_CFLAGS
2044 elif test $ac_cv_prog_cc_g = yes; then
2045 if test "$GCC" = yes; then
2051 if test "$GCC" = yes; then
2057 echo "$as_me:$LINENO: checking for $CC option to accept ANSI C" >&5
2058 echo $ECHO_N "checking for $CC option to accept ANSI C... $ECHO_C" >&6
2059 if test "${ac_cv_prog_cc_stdc+set}" = set; then
2060 echo $ECHO_N "(cached) $ECHO_C" >&6
2062 ac_cv_prog_cc_stdc=no
2064 cat >conftest.$ac_ext <<_ACEOF
2067 cat confdefs.h >>conftest.$ac_ext
2068 cat >>conftest.$ac_ext <<_ACEOF
2069 /* end confdefs.h. */
2072 #include <sys/types.h>
2073 #include <sys/stat.h>
2074 /* Most of the following tests are stolen from RCS 5.7's src/conf.sh. */
2075 struct buf { int x; };
2076 FILE * (*rcsopen) (struct buf *, struct stat *, int);
2077 static char *e (p, i)
2083 static char *f (char * (*g) (char **, int), char **p, ...)
2088 s = g (p, va_arg (v,int));
2093 /* OSF 4.0 Compaq cc is some sort of almost-ANSI by default. It has
2094 function prototypes and stuff, but not '\xHH' hex character constants.
2095 These don't provoke an error unfortunately, instead are silently treated
2096 as 'x'. The following induces an error, until -std1 is added to get
2097 proper ANSI mode. Curiously '\x00'!='x' always comes out true, for an
2098 array size at least. It's necessary to write '\x00'==0 to get something
2099 that's true only with -std1. */
2100 int osf4_cc_array ['\x00' == 0 ? 1 : -1];
2102 int test (int i, double x);
2103 struct s1 {int (*f) (int a);};
2104 struct s2 {int (*f) (double a);};
2105 int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
2111 return f (e, argv, 0) != argv[0] || f (e, argv, 1) != argv[1];
2116 # Don't try gcc -ansi; that turns off useful extensions and
2117 # breaks some systems' header files.
2118 # AIX -qlanglvl=ansi
2119 # Ultrix and OSF/1 -std1
2120 # HP-UX 10.20 and later -Ae
2121 # HP-UX older versions -Aa -D_HPUX_SOURCE
2122 # SVR4 -Xc -D__EXTENSIONS__
2123 for ac_arg in "" -qlanglvl=ansi -std1 -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
2125 CC="$ac_save_CC $ac_arg"
2126 rm -f conftest.$ac_objext
2127 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2128 (eval $ac_compile) 2>conftest.er1
2130 grep -v '^ *+' conftest.er1 >conftest.err
2132 cat conftest.err >&5
2133 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2134 (exit $ac_status); } &&
2135 { ac_try='test -z "$ac_c_werror_flag"
2136 || test ! -s conftest.err'
2137 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2140 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2141 (exit $ac_status); }; } &&
2142 { ac_try='test -s conftest.$ac_objext'
2143 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2146 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2147 (exit $ac_status); }; }; then
2148 ac_cv_prog_cc_stdc=$ac_arg
2151 echo "$as_me: failed program was:" >&5
2152 sed 's/^/| /' conftest.$ac_ext >&5
2155 rm -f conftest.err conftest.$ac_objext
2157 rm -f conftest.$ac_ext conftest.$ac_objext
2162 case "x$ac_cv_prog_cc_stdc" in
2164 echo "$as_me:$LINENO: result: none needed" >&5
2165 echo "${ECHO_T}none needed" >&6 ;;
2167 echo "$as_me:$LINENO: result: $ac_cv_prog_cc_stdc" >&5
2168 echo "${ECHO_T}$ac_cv_prog_cc_stdc" >&6
2169 CC="$CC $ac_cv_prog_cc_stdc" ;;
2172 # Some people use a C++ compiler to compile C. Since we use `exit',
2173 # in C++ we need to declare it. In case someone uses the same compiler
2174 # for both compiling C and C++ we need to have the C++ compiler decide
2175 # the declaration of exit, since it's the most demanding environment.
2176 cat >conftest.$ac_ext <<_ACEOF
2181 rm -f conftest.$ac_objext
2182 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2183 (eval $ac_compile) 2>conftest.er1
2185 grep -v '^ *+' conftest.er1 >conftest.err
2187 cat conftest.err >&5
2188 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2189 (exit $ac_status); } &&
2190 { ac_try='test -z "$ac_c_werror_flag"
2191 || test ! -s conftest.err'
2192 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2195 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2196 (exit $ac_status); }; } &&
2197 { ac_try='test -s conftest.$ac_objext'
2198 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2201 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2202 (exit $ac_status); }; }; then
2203 for ac_declaration in \
2205 'extern "C" void std::exit (int) throw (); using std::exit;' \
2206 'extern "C" void std::exit (int); using std::exit;' \
2207 'extern "C" void exit (int) throw ();' \
2208 'extern "C" void exit (int);' \
2211 cat >conftest.$ac_ext <<_ACEOF
2214 cat confdefs.h >>conftest.$ac_ext
2215 cat >>conftest.$ac_ext <<_ACEOF
2216 /* end confdefs.h. */
2227 rm -f conftest.$ac_objext
2228 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2229 (eval $ac_compile) 2>conftest.er1
2231 grep -v '^ *+' conftest.er1 >conftest.err
2233 cat conftest.err >&5
2234 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2235 (exit $ac_status); } &&
2236 { ac_try='test -z "$ac_c_werror_flag"
2237 || test ! -s conftest.err'
2238 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2241 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2242 (exit $ac_status); }; } &&
2243 { ac_try='test -s conftest.$ac_objext'
2244 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2247 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2248 (exit $ac_status); }; }; then
2251 echo "$as_me: failed program was:" >&5
2252 sed 's/^/| /' conftest.$ac_ext >&5
2256 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
2257 cat >conftest.$ac_ext <<_ACEOF
2260 cat confdefs.h >>conftest.$ac_ext
2261 cat >>conftest.$ac_ext <<_ACEOF
2262 /* end confdefs.h. */
2272 rm -f conftest.$ac_objext
2273 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2274 (eval $ac_compile) 2>conftest.er1
2276 grep -v '^ *+' conftest.er1 >conftest.err
2278 cat conftest.err >&5
2279 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2280 (exit $ac_status); } &&
2281 { ac_try='test -z "$ac_c_werror_flag"
2282 || test ! -s conftest.err'
2283 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2286 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2287 (exit $ac_status); }; } &&
2288 { ac_try='test -s conftest.$ac_objext'
2289 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2292 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2293 (exit $ac_status); }; }; then
2296 echo "$as_me: failed program was:" >&5
2297 sed 's/^/| /' conftest.$ac_ext >&5
2300 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
2303 if test -n "$ac_declaration"; then
2304 echo '#ifdef __cplusplus' >>confdefs.h
2305 echo $ac_declaration >>confdefs.h
2306 echo '#endif' >>confdefs.h
2310 echo "$as_me: failed program was:" >&5
2311 sed 's/^/| /' conftest.$ac_ext >&5
2314 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
2316 ac_cpp='$CPP $CPPFLAGS'
2317 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2318 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2319 ac_compiler_gnu=$ac_cv_c_compiler_gnu
2322 cat >>confdefs.h <<\_ACEOF
2323 #define _GNU_SOURCE 1
2329 ac_cpp='$CPP $CPPFLAGS'
2330 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2331 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2332 ac_compiler_gnu=$ac_cv_c_compiler_gnu
2333 echo "$as_me:$LINENO: checking how to run the C preprocessor" >&5
2334 echo $ECHO_N "checking how to run the C preprocessor... $ECHO_C" >&6
2335 # On Suns, sometimes $CPP names a directory.
2336 if test -n "$CPP" && test -d "$CPP"; then
2339 if test -z "$CPP"; then
2340 if test "${ac_cv_prog_CPP+set}" = set; then
2341 echo $ECHO_N "(cached) $ECHO_C" >&6
2343 # Double quotes because CPP needs to be expanded
2344 for CPP in "$CC -E" "$CC -E -traditional-cpp" "/lib/cpp"
2347 for ac_c_preproc_warn_flag in '' yes
2349 # Use a header file that comes with gcc, so configuring glibc
2350 # with a fresh cross-compiler works.
2351 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
2352 # <limits.h> exists even on freestanding compilers.
2353 # On the NeXT, cc -E runs the code through the compiler's parser,
2354 # not just through cpp. "Syntax error" is here to catch this case.
2355 cat >conftest.$ac_ext <<_ACEOF
2358 cat confdefs.h >>conftest.$ac_ext
2359 cat >>conftest.$ac_ext <<_ACEOF
2360 /* end confdefs.h. */
2362 # include <limits.h>
2364 # include <assert.h>
2368 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
2369 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
2371 grep -v '^ *+' conftest.er1 >conftest.err
2373 cat conftest.err >&5
2374 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2375 (exit $ac_status); } >/dev/null; then
2376 if test -s conftest.err; then
2377 ac_cpp_err=$ac_c_preproc_warn_flag
2378 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
2385 if test -z "$ac_cpp_err"; then
2388 echo "$as_me: failed program was:" >&5
2389 sed 's/^/| /' conftest.$ac_ext >&5
2391 # Broken: fails on valid input.
2394 rm -f conftest.err conftest.$ac_ext
2396 # OK, works on sane cases. Now check whether non-existent headers
2397 # can be detected and how.
2398 cat >conftest.$ac_ext <<_ACEOF
2401 cat confdefs.h >>conftest.$ac_ext
2402 cat >>conftest.$ac_ext <<_ACEOF
2403 /* end confdefs.h. */
2404 #include <ac_nonexistent.h>
2406 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
2407 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
2409 grep -v '^ *+' conftest.er1 >conftest.err
2411 cat conftest.err >&5
2412 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2413 (exit $ac_status); } >/dev/null; then
2414 if test -s conftest.err; then
2415 ac_cpp_err=$ac_c_preproc_warn_flag
2416 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
2423 if test -z "$ac_cpp_err"; then
2424 # Broken: success on invalid input.
2427 echo "$as_me: failed program was:" >&5
2428 sed 's/^/| /' conftest.$ac_ext >&5
2430 # Passes both tests.
2434 rm -f conftest.err conftest.$ac_ext
2437 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
2438 rm -f conftest.err conftest.$ac_ext
2439 if $ac_preproc_ok; then
2451 echo "$as_me:$LINENO: result: $CPP" >&5
2452 echo "${ECHO_T}$CPP" >&6
2454 for ac_c_preproc_warn_flag in '' yes
2456 # Use a header file that comes with gcc, so configuring glibc
2457 # with a fresh cross-compiler works.
2458 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
2459 # <limits.h> exists even on freestanding compilers.
2460 # On the NeXT, cc -E runs the code through the compiler's parser,
2461 # not just through cpp. "Syntax error" is here to catch this case.
2462 cat >conftest.$ac_ext <<_ACEOF
2465 cat confdefs.h >>conftest.$ac_ext
2466 cat >>conftest.$ac_ext <<_ACEOF
2467 /* end confdefs.h. */
2469 # include <limits.h>
2471 # include <assert.h>
2475 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
2476 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
2478 grep -v '^ *+' conftest.er1 >conftest.err
2480 cat conftest.err >&5
2481 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2482 (exit $ac_status); } >/dev/null; then
2483 if test -s conftest.err; then
2484 ac_cpp_err=$ac_c_preproc_warn_flag
2485 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
2492 if test -z "$ac_cpp_err"; then
2495 echo "$as_me: failed program was:" >&5
2496 sed 's/^/| /' conftest.$ac_ext >&5
2498 # Broken: fails on valid input.
2501 rm -f conftest.err conftest.$ac_ext
2503 # OK, works on sane cases. Now check whether non-existent headers
2504 # can be detected and how.
2505 cat >conftest.$ac_ext <<_ACEOF
2508 cat confdefs.h >>conftest.$ac_ext
2509 cat >>conftest.$ac_ext <<_ACEOF
2510 /* end confdefs.h. */
2511 #include <ac_nonexistent.h>
2513 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
2514 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
2516 grep -v '^ *+' conftest.er1 >conftest.err
2518 cat conftest.err >&5
2519 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2520 (exit $ac_status); } >/dev/null; then
2521 if test -s conftest.err; then
2522 ac_cpp_err=$ac_c_preproc_warn_flag
2523 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
2530 if test -z "$ac_cpp_err"; then
2531 # Broken: success on invalid input.
2534 echo "$as_me: failed program was:" >&5
2535 sed 's/^/| /' conftest.$ac_ext >&5
2537 # Passes both tests.
2541 rm -f conftest.err conftest.$ac_ext
2544 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
2545 rm -f conftest.err conftest.$ac_ext
2546 if $ac_preproc_ok; then
2549 { { echo "$as_me:$LINENO: error: C preprocessor \"$CPP\" fails sanity check
2550 See \`config.log' for more details." >&5
2551 echo "$as_me: error: C preprocessor \"$CPP\" fails sanity check
2552 See \`config.log' for more details." >&2;}
2553 { (exit 1); exit 1; }; }
2557 ac_cpp='$CPP $CPPFLAGS'
2558 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2559 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2560 ac_compiler_gnu=$ac_cv_c_compiler_gnu
2563 echo "$as_me:$LINENO: checking for egrep" >&5
2564 echo $ECHO_N "checking for egrep... $ECHO_C" >&6
2565 if test "${ac_cv_prog_egrep+set}" = set; then
2566 echo $ECHO_N "(cached) $ECHO_C" >&6
2568 if echo a | (grep -E '(a|b)') >/dev/null 2>&1
2569 then ac_cv_prog_egrep='grep -E'
2570 else ac_cv_prog_egrep='egrep'
2573 echo "$as_me:$LINENO: result: $ac_cv_prog_egrep" >&5
2574 echo "${ECHO_T}$ac_cv_prog_egrep" >&6
2575 EGREP=$ac_cv_prog_egrep
2579 echo "$as_me:$LINENO: checking for AIX" >&5
2580 echo $ECHO_N "checking for AIX... $ECHO_C" >&6
2581 cat >conftest.$ac_ext <<_ACEOF
2584 cat confdefs.h >>conftest.$ac_ext
2585 cat >>conftest.$ac_ext <<_ACEOF
2586 /* end confdefs.h. */
2592 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
2593 $EGREP "yes" >/dev/null 2>&1; then
2594 echo "$as_me:$LINENO: result: yes" >&5
2595 echo "${ECHO_T}yes" >&6
2596 cat >>confdefs.h <<\_ACEOF
2597 #define _ALL_SOURCE 1
2601 echo "$as_me:$LINENO: result: no" >&5
2602 echo "${ECHO_T}no" >&6
2607 echo "$as_me:$LINENO: checking for library containing strerror" >&5
2608 echo $ECHO_N "checking for library containing strerror... $ECHO_C" >&6
2609 if test "${ac_cv_search_strerror+set}" = set; then
2610 echo $ECHO_N "(cached) $ECHO_C" >&6
2612 ac_func_search_save_LIBS=$LIBS
2613 ac_cv_search_strerror=no
2614 cat >conftest.$ac_ext <<_ACEOF
2617 cat confdefs.h >>conftest.$ac_ext
2618 cat >>conftest.$ac_ext <<_ACEOF
2619 /* end confdefs.h. */
2621 /* Override any gcc2 internal prototype to avoid an error. */
2625 /* We use char because int might match the return type of a gcc2
2626 builtin and then its argument prototype would still apply. */
2636 rm -f conftest.$ac_objext conftest$ac_exeext
2637 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
2638 (eval $ac_link) 2>conftest.er1
2640 grep -v '^ *+' conftest.er1 >conftest.err
2642 cat conftest.err >&5
2643 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2644 (exit $ac_status); } &&
2645 { ac_try='test -z "$ac_c_werror_flag"
2646 || test ! -s conftest.err'
2647 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2650 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2651 (exit $ac_status); }; } &&
2652 { ac_try='test -s conftest$ac_exeext'
2653 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2656 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2657 (exit $ac_status); }; }; then
2658 ac_cv_search_strerror="none required"
2660 echo "$as_me: failed program was:" >&5
2661 sed 's/^/| /' conftest.$ac_ext >&5
2664 rm -f conftest.err conftest.$ac_objext \
2665 conftest$ac_exeext conftest.$ac_ext
2666 if test "$ac_cv_search_strerror" = no; then
2667 for ac_lib in cposix; do
2668 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
2669 cat >conftest.$ac_ext <<_ACEOF
2672 cat confdefs.h >>conftest.$ac_ext
2673 cat >>conftest.$ac_ext <<_ACEOF
2674 /* end confdefs.h. */
2676 /* Override any gcc2 internal prototype to avoid an error. */
2680 /* We use char because int might match the return type of a gcc2
2681 builtin and then its argument prototype would still apply. */
2691 rm -f conftest.$ac_objext conftest$ac_exeext
2692 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
2693 (eval $ac_link) 2>conftest.er1
2695 grep -v '^ *+' conftest.er1 >conftest.err
2697 cat conftest.err >&5
2698 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2699 (exit $ac_status); } &&
2700 { ac_try='test -z "$ac_c_werror_flag"
2701 || test ! -s conftest.err'
2702 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2705 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2706 (exit $ac_status); }; } &&
2707 { ac_try='test -s conftest$ac_exeext'
2708 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2711 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2712 (exit $ac_status); }; }; then
2713 ac_cv_search_strerror="-l$ac_lib"
2716 echo "$as_me: failed program was:" >&5
2717 sed 's/^/| /' conftest.$ac_ext >&5
2720 rm -f conftest.err conftest.$ac_objext \
2721 conftest$ac_exeext conftest.$ac_ext
2724 LIBS=$ac_func_search_save_LIBS
2726 echo "$as_me:$LINENO: result: $ac_cv_search_strerror" >&5
2727 echo "${ECHO_T}$ac_cv_search_strerror" >&6
2728 if test "$ac_cv_search_strerror" != no; then
2729 test "$ac_cv_search_strerror" = "none required" || LIBS="$ac_cv_search_strerror $LIBS"
2733 if test -n "$ac_tool_prefix"; then
2734 # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args.
2735 set dummy ${ac_tool_prefix}ranlib; ac_word=$2
2736 echo "$as_me:$LINENO: checking for $ac_word" >&5
2737 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
2738 if test "${ac_cv_prog_RANLIB+set}" = set; then
2739 echo $ECHO_N "(cached) $ECHO_C" >&6
2741 if test -n "$RANLIB"; then
2742 ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
2744 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2748 test -z "$as_dir" && as_dir=.
2749 for ac_exec_ext in '' $ac_executable_extensions; do
2750 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2751 ac_cv_prog_RANLIB="${ac_tool_prefix}ranlib"
2752 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2760 RANLIB=$ac_cv_prog_RANLIB
2761 if test -n "$RANLIB"; then
2762 echo "$as_me:$LINENO: result: $RANLIB" >&5
2763 echo "${ECHO_T}$RANLIB" >&6
2765 echo "$as_me:$LINENO: result: no" >&5
2766 echo "${ECHO_T}no" >&6
2770 if test -z "$ac_cv_prog_RANLIB"; then
2771 ac_ct_RANLIB=$RANLIB
2772 # Extract the first word of "ranlib", so it can be a program name with args.
2773 set dummy ranlib; ac_word=$2
2774 echo "$as_me:$LINENO: checking for $ac_word" >&5
2775 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
2776 if test "${ac_cv_prog_ac_ct_RANLIB+set}" = set; then
2777 echo $ECHO_N "(cached) $ECHO_C" >&6
2779 if test -n "$ac_ct_RANLIB"; then
2780 ac_cv_prog_ac_ct_RANLIB="$ac_ct_RANLIB" # Let the user override the test.
2782 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2786 test -z "$as_dir" && as_dir=.
2787 for ac_exec_ext in '' $ac_executable_extensions; do
2788 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2789 ac_cv_prog_ac_ct_RANLIB="ranlib"
2790 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2796 test -z "$ac_cv_prog_ac_ct_RANLIB" && ac_cv_prog_ac_ct_RANLIB=":"
2799 ac_ct_RANLIB=$ac_cv_prog_ac_ct_RANLIB
2800 if test -n "$ac_ct_RANLIB"; then
2801 echo "$as_me:$LINENO: result: $ac_ct_RANLIB" >&5
2802 echo "${ECHO_T}$ac_ct_RANLIB" >&6
2804 echo "$as_me:$LINENO: result: no" >&5
2805 echo "${ECHO_T}no" >&6
2808 RANLIB=$ac_ct_RANLIB
2810 RANLIB="$ac_cv_prog_RANLIB"
2813 echo "$as_me:$LINENO: checking for ANSI C header files" >&5
2814 echo $ECHO_N "checking for ANSI C header files... $ECHO_C" >&6
2815 if test "${ac_cv_header_stdc+set}" = set; then
2816 echo $ECHO_N "(cached) $ECHO_C" >&6
2818 cat >conftest.$ac_ext <<_ACEOF
2821 cat confdefs.h >>conftest.$ac_ext
2822 cat >>conftest.$ac_ext <<_ACEOF
2823 /* end confdefs.h. */
2837 rm -f conftest.$ac_objext
2838 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2839 (eval $ac_compile) 2>conftest.er1
2841 grep -v '^ *+' conftest.er1 >conftest.err
2843 cat conftest.err >&5
2844 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2845 (exit $ac_status); } &&
2846 { ac_try='test -z "$ac_c_werror_flag"
2847 || test ! -s conftest.err'
2848 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2851 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2852 (exit $ac_status); }; } &&
2853 { ac_try='test -s conftest.$ac_objext'
2854 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2857 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2858 (exit $ac_status); }; }; then
2859 ac_cv_header_stdc=yes
2861 echo "$as_me: failed program was:" >&5
2862 sed 's/^/| /' conftest.$ac_ext >&5
2864 ac_cv_header_stdc=no
2866 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
2868 if test $ac_cv_header_stdc = yes; then
2869 # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
2870 cat >conftest.$ac_ext <<_ACEOF
2873 cat confdefs.h >>conftest.$ac_ext
2874 cat >>conftest.$ac_ext <<_ACEOF
2875 /* end confdefs.h. */
2879 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
2880 $EGREP "memchr" >/dev/null 2>&1; then
2883 ac_cv_header_stdc=no
2889 if test $ac_cv_header_stdc = yes; then
2890 # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
2891 cat >conftest.$ac_ext <<_ACEOF
2894 cat confdefs.h >>conftest.$ac_ext
2895 cat >>conftest.$ac_ext <<_ACEOF
2896 /* end confdefs.h. */
2900 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
2901 $EGREP "free" >/dev/null 2>&1; then
2904 ac_cv_header_stdc=no
2910 if test $ac_cv_header_stdc = yes; then
2911 # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
2912 if test "$cross_compiling" = yes; then
2915 cat >conftest.$ac_ext <<_ACEOF
2918 cat confdefs.h >>conftest.$ac_ext
2919 cat >>conftest.$ac_ext <<_ACEOF
2920 /* end confdefs.h. */
2922 #if ((' ' & 0x0FF) == 0x020)
2923 # define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
2924 # define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
2926 # define ISLOWER(c) \
2927 (('a' <= (c) && (c) <= 'i') \
2928 || ('j' <= (c) && (c) <= 'r') \
2929 || ('s' <= (c) && (c) <= 'z'))
2930 # define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
2933 #define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
2938 for (i = 0; i < 256; i++)
2939 if (XOR (islower (i), ISLOWER (i))
2940 || toupper (i) != TOUPPER (i))
2945 rm -f conftest$ac_exeext
2946 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
2947 (eval $ac_link) 2>&5
2949 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2950 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
2951 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2954 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2955 (exit $ac_status); }; }; then
2958 echo "$as_me: program exited with status $ac_status" >&5
2959 echo "$as_me: failed program was:" >&5
2960 sed 's/^/| /' conftest.$ac_ext >&5
2963 ac_cv_header_stdc=no
2965 rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
2969 echo "$as_me:$LINENO: result: $ac_cv_header_stdc" >&5
2970 echo "${ECHO_T}$ac_cv_header_stdc" >&6
2971 if test $ac_cv_header_stdc = yes; then
2973 cat >>confdefs.h <<\_ACEOF
2974 #define STDC_HEADERS 1
2979 # On IRIX 5.3, sys/types and inttypes.h are conflicting.
2989 for ac_header in sys/types.h sys/stat.h stdlib.h string.h memory.h strings.h \
2990 inttypes.h stdint.h unistd.h
2992 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
2993 echo "$as_me:$LINENO: checking for $ac_header" >&5
2994 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
2995 if eval "test \"\${$as_ac_Header+set}\" = set"; then
2996 echo $ECHO_N "(cached) $ECHO_C" >&6
2998 cat >conftest.$ac_ext <<_ACEOF
3001 cat confdefs.h >>conftest.$ac_ext
3002 cat >>conftest.$ac_ext <<_ACEOF
3003 /* end confdefs.h. */
3004 $ac_includes_default
3006 #include <$ac_header>
3008 rm -f conftest.$ac_objext
3009 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
3010 (eval $ac_compile) 2>conftest.er1
3012 grep -v '^ *+' conftest.er1 >conftest.err
3014 cat conftest.err >&5
3015 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3016 (exit $ac_status); } &&
3017 { ac_try='test -z "$ac_c_werror_flag"
3018 || test ! -s conftest.err'
3019 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3022 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3023 (exit $ac_status); }; } &&
3024 { ac_try='test -s conftest.$ac_objext'
3025 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3028 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3029 (exit $ac_status); }; }; then
3030 eval "$as_ac_Header=yes"
3032 echo "$as_me: failed program was:" >&5
3033 sed 's/^/| /' conftest.$ac_ext >&5
3035 eval "$as_ac_Header=no"
3037 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
3039 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
3040 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
3041 if test `eval echo '${'$as_ac_Header'}'` = yes; then
3042 cat >>confdefs.h <<_ACEOF
3043 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
3052 if test "${ac_cv_header_minix_config_h+set}" = set; then
3053 echo "$as_me:$LINENO: checking for minix/config.h" >&5
3054 echo $ECHO_N "checking for minix/config.h... $ECHO_C" >&6
3055 if test "${ac_cv_header_minix_config_h+set}" = set; then
3056 echo $ECHO_N "(cached) $ECHO_C" >&6
3058 echo "$as_me:$LINENO: result: $ac_cv_header_minix_config_h" >&5
3059 echo "${ECHO_T}$ac_cv_header_minix_config_h" >&6
3061 # Is the header compilable?
3062 echo "$as_me:$LINENO: checking minix/config.h usability" >&5
3063 echo $ECHO_N "checking minix/config.h usability... $ECHO_C" >&6
3064 cat >conftest.$ac_ext <<_ACEOF
3067 cat confdefs.h >>conftest.$ac_ext
3068 cat >>conftest.$ac_ext <<_ACEOF
3069 /* end confdefs.h. */
3070 $ac_includes_default
3071 #include <minix/config.h>
3073 rm -f conftest.$ac_objext
3074 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
3075 (eval $ac_compile) 2>conftest.er1
3077 grep -v '^ *+' conftest.er1 >conftest.err
3079 cat conftest.err >&5
3080 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3081 (exit $ac_status); } &&
3082 { ac_try='test -z "$ac_c_werror_flag"
3083 || test ! -s conftest.err'
3084 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3087 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3088 (exit $ac_status); }; } &&
3089 { ac_try='test -s conftest.$ac_objext'
3090 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3093 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3094 (exit $ac_status); }; }; then
3095 ac_header_compiler=yes
3097 echo "$as_me: failed program was:" >&5
3098 sed 's/^/| /' conftest.$ac_ext >&5
3100 ac_header_compiler=no
3102 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
3103 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
3104 echo "${ECHO_T}$ac_header_compiler" >&6
3106 # Is the header present?
3107 echo "$as_me:$LINENO: checking minix/config.h presence" >&5
3108 echo $ECHO_N "checking minix/config.h presence... $ECHO_C" >&6
3109 cat >conftest.$ac_ext <<_ACEOF
3112 cat confdefs.h >>conftest.$ac_ext
3113 cat >>conftest.$ac_ext <<_ACEOF
3114 /* end confdefs.h. */
3115 #include <minix/config.h>
3117 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
3118 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
3120 grep -v '^ *+' conftest.er1 >conftest.err
3122 cat conftest.err >&5
3123 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3124 (exit $ac_status); } >/dev/null; then
3125 if test -s conftest.err; then
3126 ac_cpp_err=$ac_c_preproc_warn_flag
3127 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
3134 if test -z "$ac_cpp_err"; then
3135 ac_header_preproc=yes
3137 echo "$as_me: failed program was:" >&5
3138 sed 's/^/| /' conftest.$ac_ext >&5
3140 ac_header_preproc=no
3142 rm -f conftest.err conftest.$ac_ext
3143 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
3144 echo "${ECHO_T}$ac_header_preproc" >&6
3146 # So? What about this header?
3147 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
3149 { echo "$as_me:$LINENO: WARNING: minix/config.h: accepted by the compiler, rejected by the preprocessor!" >&5
3150 echo "$as_me: WARNING: minix/config.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
3151 { echo "$as_me:$LINENO: WARNING: minix/config.h: proceeding with the compiler's result" >&5
3152 echo "$as_me: WARNING: minix/config.h: proceeding with the compiler's result" >&2;}
3153 ac_header_preproc=yes
3156 { echo "$as_me:$LINENO: WARNING: minix/config.h: present but cannot be compiled" >&5
3157 echo "$as_me: WARNING: minix/config.h: present but cannot be compiled" >&2;}
3158 { echo "$as_me:$LINENO: WARNING: minix/config.h: check for missing prerequisite headers?" >&5
3159 echo "$as_me: WARNING: minix/config.h: check for missing prerequisite headers?" >&2;}
3160 { echo "$as_me:$LINENO: WARNING: minix/config.h: see the Autoconf documentation" >&5
3161 echo "$as_me: WARNING: minix/config.h: see the Autoconf documentation" >&2;}
3162 { echo "$as_me:$LINENO: WARNING: minix/config.h: section \"Present But Cannot Be Compiled\"" >&5
3163 echo "$as_me: WARNING: minix/config.h: section \"Present But Cannot Be Compiled\"" >&2;}
3164 { echo "$as_me:$LINENO: WARNING: minix/config.h: proceeding with the preprocessor's result" >&5
3165 echo "$as_me: WARNING: minix/config.h: proceeding with the preprocessor's result" >&2;}
3166 { echo "$as_me:$LINENO: WARNING: minix/config.h: in the future, the compiler will take precedence" >&5
3167 echo "$as_me: WARNING: minix/config.h: in the future, the compiler will take precedence" >&2;}
3170 ## ------------------------------------------ ##
3171 ## Report this to the AC_PACKAGE_NAME lists. ##
3172 ## ------------------------------------------ ##
3175 sed "s/^/$as_me: WARNING: /" >&2
3178 echo "$as_me:$LINENO: checking for minix/config.h" >&5
3179 echo $ECHO_N "checking for minix/config.h... $ECHO_C" >&6
3180 if test "${ac_cv_header_minix_config_h+set}" = set; then
3181 echo $ECHO_N "(cached) $ECHO_C" >&6
3183 ac_cv_header_minix_config_h=$ac_header_preproc
3185 echo "$as_me:$LINENO: result: $ac_cv_header_minix_config_h" >&5
3186 echo "${ECHO_T}$ac_cv_header_minix_config_h" >&6
3189 if test $ac_cv_header_minix_config_h = yes; then
3196 if test "$MINIX" = yes; then
3198 cat >>confdefs.h <<\_ACEOF
3199 #define _POSIX_SOURCE 1
3203 cat >>confdefs.h <<\_ACEOF
3204 #define _POSIX_1_SOURCE 2
3208 cat >>confdefs.h <<\_ACEOF
3216 echo "$as_me:$LINENO: checking whether it is safe to define __EXTENSIONS__" >&5
3217 echo $ECHO_N "checking whether it is safe to define __EXTENSIONS__... $ECHO_C" >&6
3218 if test "${ac_cv_safe_to_define___extensions__+set}" = set; then
3219 echo $ECHO_N "(cached) $ECHO_C" >&6
3221 cat >conftest.$ac_ext <<_ACEOF
3224 cat confdefs.h >>conftest.$ac_ext
3225 cat >>conftest.$ac_ext <<_ACEOF
3226 /* end confdefs.h. */
3228 # define __EXTENSIONS__ 1
3229 $ac_includes_default
3238 rm -f conftest.$ac_objext
3239 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
3240 (eval $ac_compile) 2>conftest.er1
3242 grep -v '^ *+' conftest.er1 >conftest.err
3244 cat conftest.err >&5
3245 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3246 (exit $ac_status); } &&
3247 { ac_try='test -z "$ac_c_werror_flag"
3248 || test ! -s conftest.err'
3249 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3252 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3253 (exit $ac_status); }; } &&
3254 { ac_try='test -s conftest.$ac_objext'
3255 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3258 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3259 (exit $ac_status); }; }; then
3260 ac_cv_safe_to_define___extensions__=yes
3262 echo "$as_me: failed program was:" >&5
3263 sed 's/^/| /' conftest.$ac_ext >&5
3265 ac_cv_safe_to_define___extensions__=no
3267 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
3269 echo "$as_me:$LINENO: result: $ac_cv_safe_to_define___extensions__" >&5
3270 echo "${ECHO_T}$ac_cv_safe_to_define___extensions__" >&6
3271 test $ac_cv_safe_to_define___extensions__ = yes &&
3272 cat >>confdefs.h <<\_ACEOF
3273 #define __EXTENSIONS__ 1
3276 cat >>confdefs.h <<\_ACEOF
3277 #define _ALL_SOURCE 1
3280 cat >>confdefs.h <<\_ACEOF
3281 #define _GNU_SOURCE 1
3284 cat >>confdefs.h <<\_ACEOF
3285 #define _POSIX_PTHREAD_SEMANTICS 1
3288 cat >>confdefs.h <<\_ACEOF
3289 #define _TANDEM_SOURCE 1
3301 echo "$as_me:$LINENO: checking for ${CC-cc} option to accept ANSI C" >&5
3302 echo $ECHO_N "checking for ${CC-cc} option to accept ANSI C... $ECHO_C" >&6
3303 if test "${am_cv_prog_cc_stdc+set}" = set; then
3304 echo $ECHO_N "(cached) $ECHO_C" >&6
3306 am_cv_prog_cc_stdc=no
3308 # Don't try gcc -ansi; that turns off useful extensions and
3309 # breaks some systems' header files.
3310 # AIX -qlanglvl=ansi
3311 # Ultrix and OSF/1 -std1
3312 # HP-UX 10.20 and later -Ae
3313 # HP-UX older versions -Aa -D_HPUX_SOURCE
3314 # SVR4 -Xc -D__EXTENSIONS__
3315 for ac_arg in "" -qlanglvl=ansi -std1 -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
3317 CC="$ac_save_CC $ac_arg"
3318 cat >conftest.$ac_ext <<_ACEOF
3321 cat confdefs.h >>conftest.$ac_ext
3322 cat >>conftest.$ac_ext <<_ACEOF
3323 /* end confdefs.h. */
3326 #include <sys/types.h>
3327 #include <sys/stat.h>
3328 /* Most of the following tests are stolen from RCS 5.7's src/conf.sh. */
3329 struct buf { int x; };
3330 FILE * (*rcsopen) (struct buf *, struct stat *, int);
3331 static char *e (p, i)
3337 static char *f (char * (*g) (char **, int), char **p, ...)
3342 s = g (p, va_arg (v,int));
3346 int test (int i, double x);
3347 struct s1 {int (*f) (int a);};
3348 struct s2 {int (*f) (double a);};
3349 int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
3357 return f (e, argv, 0) != argv[0] || f (e, argv, 1) != argv[1];
3363 rm -f conftest.$ac_objext
3364 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
3365 (eval $ac_compile) 2>conftest.er1
3367 grep -v '^ *+' conftest.er1 >conftest.err
3369 cat conftest.err >&5
3370 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3371 (exit $ac_status); } &&
3372 { ac_try='test -z "$ac_c_werror_flag"
3373 || test ! -s conftest.err'
3374 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3377 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3378 (exit $ac_status); }; } &&
3379 { ac_try='test -s conftest.$ac_objext'
3380 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3383 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3384 (exit $ac_status); }; }; then
3385 am_cv_prog_cc_stdc="$ac_arg"; break
3387 echo "$as_me: failed program was:" >&5
3388 sed 's/^/| /' conftest.$ac_ext >&5
3391 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
3397 if test -z "$am_cv_prog_cc_stdc"; then
3398 echo "$as_me:$LINENO: result: none needed" >&5
3399 echo "${ECHO_T}none needed" >&6
3401 echo "$as_me:$LINENO: result: $am_cv_prog_cc_stdc" >&5
3402 echo "${ECHO_T}$am_cv_prog_cc_stdc" >&6
3404 case "x$am_cv_prog_cc_stdc" in
3406 *) CC="$CC $am_cv_prog_cc_stdc" ;;
3411 for ac_dir in .. $srcdir/..; do
3412 if test -f $ac_dir/install-sh; then
3414 ac_install_sh="$ac_aux_dir/install-sh -c"
3416 elif test -f $ac_dir/install.sh; then
3418 ac_install_sh="$ac_aux_dir/install.sh -c"
3420 elif test -f $ac_dir/shtool; then
3422 ac_install_sh="$ac_aux_dir/shtool install -c"
3426 if test -z "$ac_aux_dir"; then
3427 { { echo "$as_me:$LINENO: error: cannot find install-sh or install.sh in .. $srcdir/.." >&5
3428 echo "$as_me: error: cannot find install-sh or install.sh in .. $srcdir/.." >&2;}
3429 { (exit 1); exit 1; }; }
3431 ac_config_guess="$SHELL $ac_aux_dir/config.guess"
3432 ac_config_sub="$SHELL $ac_aux_dir/config.sub"
3433 ac_configure="$SHELL $ac_aux_dir/configure" # This should be Cygnus configure.
3435 # Make sure we can run config.sub.
3436 $ac_config_sub sun4 >/dev/null 2>&1 ||
3437 { { echo "$as_me:$LINENO: error: cannot run $ac_config_sub" >&5
3438 echo "$as_me: error: cannot run $ac_config_sub" >&2;}
3439 { (exit 1); exit 1; }; }
3441 echo "$as_me:$LINENO: checking build system type" >&5
3442 echo $ECHO_N "checking build system type... $ECHO_C" >&6
3443 if test "${ac_cv_build+set}" = set; then
3444 echo $ECHO_N "(cached) $ECHO_C" >&6
3446 ac_cv_build_alias=$build_alias
3447 test -z "$ac_cv_build_alias" &&
3448 ac_cv_build_alias=`$ac_config_guess`
3449 test -z "$ac_cv_build_alias" &&
3450 { { echo "$as_me:$LINENO: error: cannot guess build type; you must specify one" >&5
3451 echo "$as_me: error: cannot guess build type; you must specify one" >&2;}
3452 { (exit 1); exit 1; }; }
3453 ac_cv_build=`$ac_config_sub $ac_cv_build_alias` ||
3454 { { echo "$as_me:$LINENO: error: $ac_config_sub $ac_cv_build_alias failed" >&5
3455 echo "$as_me: error: $ac_config_sub $ac_cv_build_alias failed" >&2;}
3456 { (exit 1); exit 1; }; }
3459 echo "$as_me:$LINENO: result: $ac_cv_build" >&5
3460 echo "${ECHO_T}$ac_cv_build" >&6
3462 build_cpu=`echo $ac_cv_build | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\1/'`
3463 build_vendor=`echo $ac_cv_build | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\2/'`
3464 build_os=`echo $ac_cv_build | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\3/'`
3467 echo "$as_me:$LINENO: checking host system type" >&5
3468 echo $ECHO_N "checking host system type... $ECHO_C" >&6
3469 if test "${ac_cv_host+set}" = set; then
3470 echo $ECHO_N "(cached) $ECHO_C" >&6
3472 ac_cv_host_alias=$host_alias
3473 test -z "$ac_cv_host_alias" &&
3474 ac_cv_host_alias=$ac_cv_build_alias
3475 ac_cv_host=`$ac_config_sub $ac_cv_host_alias` ||
3476 { { echo "$as_me:$LINENO: error: $ac_config_sub $ac_cv_host_alias failed" >&5
3477 echo "$as_me: error: $ac_config_sub $ac_cv_host_alias failed" >&2;}
3478 { (exit 1); exit 1; }; }
3481 echo "$as_me:$LINENO: result: $ac_cv_host" >&5
3482 echo "${ECHO_T}$ac_cv_host" >&6
3484 host_cpu=`echo $ac_cv_host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\1/'`
3485 host_vendor=`echo $ac_cv_host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\2/'`
3486 host_os=`echo $ac_cv_host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\3/'`
3489 echo "$as_me:$LINENO: checking target system type" >&5
3490 echo $ECHO_N "checking target system type... $ECHO_C" >&6
3491 if test "${ac_cv_target+set}" = set; then
3492 echo $ECHO_N "(cached) $ECHO_C" >&6
3494 ac_cv_target_alias=$target_alias
3495 test "x$ac_cv_target_alias" = "x" &&
3496 ac_cv_target_alias=$ac_cv_host_alias
3497 ac_cv_target=`$ac_config_sub $ac_cv_target_alias` ||
3498 { { echo "$as_me:$LINENO: error: $ac_config_sub $ac_cv_target_alias failed" >&5
3499 echo "$as_me: error: $ac_config_sub $ac_cv_target_alias failed" >&2;}
3500 { (exit 1); exit 1; }; }
3503 echo "$as_me:$LINENO: result: $ac_cv_target" >&5
3504 echo "${ECHO_T}$ac_cv_target" >&6
3505 target=$ac_cv_target
3506 target_cpu=`echo $ac_cv_target | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\1/'`
3507 target_vendor=`echo $ac_cv_target | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\2/'`
3508 target_os=`echo $ac_cv_target | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\3/'`
3511 # The aliases save the names the user supplied, while $host etc.
3512 # will get canonicalized.
3513 test -n "$target_alias" &&
3514 test "$program_prefix$program_suffix$program_transform_name" = \
3516 program_prefix=${target_alias}-
3529 # If we haven't got the data from the intl directory,
3530 # assume NLS is disabled.
3539 if test -f ../intl/config.intl; then
3540 . ../intl/config.intl
3542 echo "$as_me:$LINENO: checking whether NLS is requested" >&5
3543 echo $ECHO_N "checking whether NLS is requested... $ECHO_C" >&6
3544 if test x"$USE_NLS" != xyes; then
3545 echo "$as_me:$LINENO: result: no" >&5
3546 echo "${ECHO_T}no" >&6
3548 echo "$as_me:$LINENO: result: yes" >&5
3549 echo "${ECHO_T}yes" >&6
3551 cat >>confdefs.h <<\_ACEOF
3552 #define ENABLE_NLS 1
3556 echo "$as_me:$LINENO: checking for catalogs to be installed" >&5
3557 echo $ECHO_N "checking for catalogs to be installed... $ECHO_C" >&6
3558 # Look for .po and .gmo files in the source directory.
3561 for cat in $srcdir/po/*.gmo $srcdir/po/*.po; do
3562 # If there aren't any .gmo files the shell will give us the
3563 # literal string "../path/to/srcdir/po/*.gmo" which has to be
3565 case "$cat" in *\**)
3568 # The quadruple backslash is collapsed to a double backslash
3569 # by the backticks, then collapsed again by the double quotes,
3570 # leaving us with one backslash in the sed expression (right
3571 # before the dot that mustn't act as a wildcard).
3572 cat=`echo $cat | sed -e "s!$srcdir/po/!!" -e "s!\\\\.po!.gmo!"`
3573 lang=`echo $cat | sed -e "s!\\\\.gmo!!"`
3574 # The user is allowed to set LINGUAS to a list of languages to
3575 # install catalogs for. If it's empty that means "all of them."
3576 if test "x$LINGUAS" = x; then
3577 CATALOGS="$CATALOGS $cat"
3578 XLINGUAS="$XLINGUAS $lang"
3580 case "$LINGUAS" in *$lang*)
3581 CATALOGS="$CATALOGS $cat"
3582 XLINGUAS="$XLINGUAS $lang"
3588 echo "$as_me:$LINENO: result: $LINGUAS" >&5
3589 echo "${ECHO_T}$LINGUAS" >&6
3602 localedir='${datadir}/locale'
3605 if test x"$USE_NLS" = xyes; then
3606 CONFIG_ALL="$CONFIG_ALL all-po"
3607 CONFIG_CLEAN="$CONFIG_CLEAN clean-po"
3608 CONFIG_INSTALL="$CONFIG_INSTALL install-po"
3609 CONFIG_UNINSTALL="$CONFIG_UNINSTALL uninstall-po"
3625 GNULIB_STRCASESTR=0;
3632 GNULIB_MBSCASECMP=0;
3633 GNULIB_MBSNCASECMP=0;
3634 GNULIB_MBSPCASECMP=0;
3635 GNULIB_MBSCASESTR=0;
3645 HAVE_DECL_MEMRCHR=1;
3651 HAVE_DECL_STRNDUP=1;
3652 HAVE_DECL_STRNLEN=1;
3656 HAVE_DECL_STRTOK_R=1;
3657 HAVE_DECL_STRERROR=1;
3658 HAVE_DECL_STRSIGNAL=1;
3660 REPLACE_STRSIGNAL=0;
3662 REPLACE_STRCASESTR=0;
3666 echo "$as_me:$LINENO: checking whether memmem is declared" >&5
3667 echo $ECHO_N "checking whether memmem is declared... $ECHO_C" >&6
3668 if test "${ac_cv_have_decl_memmem+set}" = set; then
3669 echo $ECHO_N "(cached) $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 $ac_includes_default
3682 char *p = (char *) memmem;
3689 rm -f conftest.$ac_objext
3690 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
3691 (eval $ac_compile) 2>conftest.er1
3693 grep -v '^ *+' conftest.er1 >conftest.err
3695 cat conftest.err >&5
3696 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3697 (exit $ac_status); } &&
3698 { ac_try='test -z "$ac_c_werror_flag"
3699 || test ! -s conftest.err'
3700 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3703 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3704 (exit $ac_status); }; } &&
3705 { ac_try='test -s conftest.$ac_objext'
3706 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3709 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3710 (exit $ac_status); }; }; then
3711 ac_cv_have_decl_memmem=yes
3713 echo "$as_me: failed program was:" >&5
3714 sed 's/^/| /' conftest.$ac_ext >&5
3716 ac_cv_have_decl_memmem=no
3718 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
3720 echo "$as_me:$LINENO: result: $ac_cv_have_decl_memmem" >&5
3721 echo "${ECHO_T}$ac_cv_have_decl_memmem" >&6
3722 if test $ac_cv_have_decl_memmem = yes; then
3724 cat >>confdefs.h <<_ACEOF
3725 #define HAVE_DECL_MEMMEM 1
3730 cat >>confdefs.h <<_ACEOF
3731 #define HAVE_DECL_MEMMEM 0
3751 for ac_func in memmem
3753 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
3754 echo "$as_me:$LINENO: checking for $ac_func" >&5
3755 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
3756 if eval "test \"\${$as_ac_var+set}\" = set"; then
3757 echo $ECHO_N "(cached) $ECHO_C" >&6
3759 cat >conftest.$ac_ext <<_ACEOF
3762 cat confdefs.h >>conftest.$ac_ext
3763 cat >>conftest.$ac_ext <<_ACEOF
3764 /* end confdefs.h. */
3765 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
3766 For example, HP-UX 11i <limits.h> declares gettimeofday. */
3767 #define $ac_func innocuous_$ac_func
3769 /* System header to define __stub macros and hopefully few prototypes,
3770 which can conflict with char $ac_func (); below.
3771 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
3772 <limits.h> exists even on freestanding compilers. */
3775 # include <limits.h>
3777 # include <assert.h>
3782 /* Override any gcc2 internal prototype to avoid an error. */
3787 /* We use char because int might match the return type of a gcc2
3788 builtin and then its argument prototype would still apply. */
3790 /* The GNU C library defines this for functions which it implements
3791 to always fail with ENOSYS. Some functions are actually named
3792 something starting with __ and the normal name is an alias. */
3793 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
3796 char (*f) () = $ac_func;
3805 return f != $ac_func;
3810 rm -f conftest.$ac_objext conftest$ac_exeext
3811 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
3812 (eval $ac_link) 2>conftest.er1
3814 grep -v '^ *+' conftest.er1 >conftest.err
3816 cat conftest.err >&5
3817 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3818 (exit $ac_status); } &&
3819 { ac_try='test -z "$ac_c_werror_flag"
3820 || test ! -s conftest.err'
3821 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3824 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3825 (exit $ac_status); }; } &&
3826 { ac_try='test -s conftest$ac_exeext'
3827 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3830 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3831 (exit $ac_status); }; }; then
3832 eval "$as_ac_var=yes"
3834 echo "$as_me: failed program was:" >&5
3835 sed 's/^/| /' conftest.$ac_ext >&5
3837 eval "$as_ac_var=no"
3839 rm -f conftest.err conftest.$ac_objext \
3840 conftest$ac_exeext conftest.$ac_ext
3842 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
3843 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
3844 if test `eval echo '${'$as_ac_var'}'` = yes; then
3845 cat >>confdefs.h <<_ACEOF
3846 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
3851 gl_LIBOBJS="$gl_LIBOBJS $ac_func.$ac_objext"
3864 if test $ac_cv_have_decl_memmem = no; then
3870 echo "$as_me:$LINENO: checking for long long int" >&5
3871 echo $ECHO_N "checking for long long int... $ECHO_C" >&6
3872 if test "${ac_cv_type_long_long_int+set}" = set; then
3873 echo $ECHO_N "(cached) $ECHO_C" >&6
3875 cat >conftest.$ac_ext <<_ACEOF
3879 cat confdefs.h >>conftest.$ac_ext
3880 cat >>conftest.$ac_ext <<_ACEOF
3881 /* end confdefs.h. */
3882 /* For now, do not test the preprocessor; as of 2007 there are too many
3883 implementations with broken preprocessors. Perhaps this can
3884 be revisited in 2012. In the meantime, code should not expect
3885 #if to work with literals wider than 32 bits. */
3886 /* Test literals. */
3887 long long int ll = 9223372036854775807ll;
3888 long long int nll = -9223372036854775807LL;
3889 unsigned long long int ull = 18446744073709551615ULL;
3890 /* Test constant expressions. */
3891 typedef int a[((-9223372036854775807LL < 0 && 0 < 9223372036854775807ll)
3893 typedef int b[(18446744073709551615ULL <= (unsigned long long int) -1
3899 /* Test availability of runtime routines for shift and division. */
3900 long long int llmax = 9223372036854775807ll;
3901 unsigned long long int ullmax = 18446744073709551615ull;
3902 return ((ll << 63) | (ll >> 63) | (ll < i) | (ll > i)
3903 | (llmax / ll) | (llmax % ll)
3904 | (ull << 63) | (ull >> 63) | (ull << i) | (ull >> i)
3905 | (ullmax / ull) | (ullmax % ull));
3911 rm -f conftest.$ac_objext conftest$ac_exeext
3912 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
3913 (eval $ac_link) 2>conftest.er1
3915 grep -v '^ *+' conftest.er1 >conftest.err
3917 cat conftest.err >&5
3918 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3919 (exit $ac_status); } &&
3920 { ac_try='test -z "$ac_c_werror_flag"
3921 || test ! -s conftest.err'
3922 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3925 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3926 (exit $ac_status); }; } &&
3927 { ac_try='test -s conftest$ac_exeext'
3928 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3931 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3932 (exit $ac_status); }; }; then
3933 if test "$cross_compiling" = yes; then
3934 ac_cv_type_long_long_int=yes
3936 cat >conftest.$ac_ext <<_ACEOF
3939 cat confdefs.h >>conftest.$ac_ext
3940 cat >>conftest.$ac_ext <<_ACEOF
3941 /* end confdefs.h. */
3945 (1LL << (sizeof (long long int) * CHAR_BIT - 2))
3946 # define LLONG_MAX (HALF - 1 + HALF)
3951 long long int n = 1;
3955 long long int m = n << i;
3958 if (LLONG_MAX / 2 < m)
3966 rm -f conftest$ac_exeext
3967 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
3968 (eval $ac_link) 2>&5
3970 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3971 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
3972 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3975 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3976 (exit $ac_status); }; }; then
3977 ac_cv_type_long_long_int=yes
3979 echo "$as_me: program exited with status $ac_status" >&5
3980 echo "$as_me: failed program was:" >&5
3981 sed 's/^/| /' conftest.$ac_ext >&5
3984 ac_cv_type_long_long_int=no
3986 rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
3989 echo "$as_me: failed program was:" >&5
3990 sed 's/^/| /' conftest.$ac_ext >&5
3992 ac_cv_type_long_long_int=no
3994 rm -f conftest.err conftest.$ac_objext \
3995 conftest$ac_exeext conftest.$ac_ext
3997 echo "$as_me:$LINENO: result: $ac_cv_type_long_long_int" >&5
3998 echo "${ECHO_T}$ac_cv_type_long_long_int" >&6
3999 if test $ac_cv_type_long_long_int = yes; then
4001 cat >>confdefs.h <<\_ACEOF
4002 #define HAVE_LONG_LONG_INT 1
4008 echo "$as_me:$LINENO: checking for unsigned long long int" >&5
4009 echo $ECHO_N "checking for unsigned long long int... $ECHO_C" >&6
4010 if test "${ac_cv_type_unsigned_long_long_int+set}" = set; then
4011 echo $ECHO_N "(cached) $ECHO_C" >&6
4013 cat >conftest.$ac_ext <<_ACEOF
4017 cat confdefs.h >>conftest.$ac_ext
4018 cat >>conftest.$ac_ext <<_ACEOF
4019 /* end confdefs.h. */
4020 /* For now, do not test the preprocessor; as of 2007 there are too many
4021 implementations with broken preprocessors. Perhaps this can
4022 be revisited in 2012. In the meantime, code should not expect
4023 #if to work with literals wider than 32 bits. */
4024 /* Test literals. */
4025 long long int ll = 9223372036854775807ll;
4026 long long int nll = -9223372036854775807LL;
4027 unsigned long long int ull = 18446744073709551615ULL;
4028 /* Test constant expressions. */
4029 typedef int a[((-9223372036854775807LL < 0 && 0 < 9223372036854775807ll)
4031 typedef int b[(18446744073709551615ULL <= (unsigned long long int) -1
4037 /* Test availability of runtime routines for shift and division. */
4038 long long int llmax = 9223372036854775807ll;
4039 unsigned long long int ullmax = 18446744073709551615ull;
4040 return ((ll << 63) | (ll >> 63) | (ll < i) | (ll > i)
4041 | (llmax / ll) | (llmax % ll)
4042 | (ull << 63) | (ull >> 63) | (ull << i) | (ull >> i)
4043 | (ullmax / ull) | (ullmax % ull));
4049 rm -f conftest.$ac_objext conftest$ac_exeext
4050 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
4051 (eval $ac_link) 2>conftest.er1
4053 grep -v '^ *+' conftest.er1 >conftest.err
4055 cat conftest.err >&5
4056 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4057 (exit $ac_status); } &&
4058 { ac_try='test -z "$ac_c_werror_flag"
4059 || test ! -s conftest.err'
4060 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4063 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4064 (exit $ac_status); }; } &&
4065 { ac_try='test -s conftest$ac_exeext'
4066 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4069 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4070 (exit $ac_status); }; }; then
4071 ac_cv_type_unsigned_long_long_int=yes
4073 echo "$as_me: failed program was:" >&5
4074 sed 's/^/| /' conftest.$ac_ext >&5
4076 ac_cv_type_unsigned_long_long_int=no
4078 rm -f conftest.err conftest.$ac_objext \
4079 conftest$ac_exeext conftest.$ac_ext
4081 echo "$as_me:$LINENO: result: $ac_cv_type_unsigned_long_long_int" >&5
4082 echo "${ECHO_T}$ac_cv_type_unsigned_long_long_int" >&6
4083 if test $ac_cv_type_unsigned_long_long_int = yes; then
4085 cat >>confdefs.h <<\_ACEOF
4086 #define HAVE_UNSIGNED_LONG_LONG_INT 1
4093 echo "$as_me:$LINENO: checking whether the preprocessor supports include_next" >&5
4094 echo $ECHO_N "checking whether the preprocessor supports include_next... $ECHO_C" >&6
4095 if test "${gl_cv_have_include_next+set}" = set; then
4096 echo $ECHO_N "(cached) $ECHO_C" >&6
4098 rm -rf conftestd1 conftestd2
4099 mkdir conftestd1 conftestd2
4100 cat <<EOF > conftestd1/conftest.h
4101 #define DEFINED_IN_CONFTESTD1
4102 #include_next <conftest.h>
4103 #ifdef DEFINED_IN_CONFTESTD2
4106 #error "include_next doesn't work"
4109 cat <<EOF > conftestd2/conftest.h
4110 #ifndef DEFINED_IN_CONFTESTD1
4111 #error "include_next test doesn't work"
4113 #define DEFINED_IN_CONFTESTD2
4115 save_CPPFLAGS="$CPPFLAGS"
4116 CPPFLAGS="$CPPFLAGS -Iconftestd1 -Iconftestd2"
4117 cat >conftest.$ac_ext <<_ACEOF
4118 #include <conftest.h>
4120 rm -f conftest.$ac_objext
4121 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
4122 (eval $ac_compile) 2>conftest.er1
4124 grep -v '^ *+' conftest.er1 >conftest.err
4126 cat conftest.err >&5
4127 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4128 (exit $ac_status); } &&
4129 { ac_try='test -z "$ac_c_werror_flag"
4130 || test ! -s conftest.err'
4131 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4134 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4135 (exit $ac_status); }; } &&
4136 { ac_try='test -s conftest.$ac_objext'
4137 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4140 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4141 (exit $ac_status); }; }; then
4142 gl_cv_have_include_next=yes
4144 echo "$as_me: failed program was:" >&5
4145 sed 's/^/| /' conftest.$ac_ext >&5
4147 gl_cv_have_include_next=no
4149 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
4150 CPPFLAGS="$save_CPPFLAGS"
4151 rm -rf conftestd1 conftestd2
4154 echo "$as_me:$LINENO: result: $gl_cv_have_include_next" >&5
4155 echo "${ECHO_T}$gl_cv_have_include_next" >&6
4156 if test $gl_cv_have_include_next = yes; then
4159 cat >>confdefs.h <<\_ACEOF
4160 #define HAVE_INCLUDE_NEXT 1
4164 INCLUDE_NEXT=include_next
4166 INCLUDE_NEXT=include
4175 for ac_header in $gl_header_list
4177 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
4178 if eval "test \"\${$as_ac_Header+set}\" = set"; then
4179 echo "$as_me:$LINENO: checking for $ac_header" >&5
4180 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
4181 if eval "test \"\${$as_ac_Header+set}\" = set"; then
4182 echo $ECHO_N "(cached) $ECHO_C" >&6
4184 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
4185 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
4187 # Is the header compilable?
4188 echo "$as_me:$LINENO: checking $ac_header usability" >&5
4189 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
4190 cat >conftest.$ac_ext <<_ACEOF
4193 cat confdefs.h >>conftest.$ac_ext
4194 cat >>conftest.$ac_ext <<_ACEOF
4195 /* end confdefs.h. */
4196 $ac_includes_default
4197 #include <$ac_header>
4199 rm -f conftest.$ac_objext
4200 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
4201 (eval $ac_compile) 2>conftest.er1
4203 grep -v '^ *+' conftest.er1 >conftest.err
4205 cat conftest.err >&5
4206 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4207 (exit $ac_status); } &&
4208 { ac_try='test -z "$ac_c_werror_flag"
4209 || test ! -s conftest.err'
4210 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4213 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4214 (exit $ac_status); }; } &&
4215 { ac_try='test -s conftest.$ac_objext'
4216 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4219 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4220 (exit $ac_status); }; }; then
4221 ac_header_compiler=yes
4223 echo "$as_me: failed program was:" >&5
4224 sed 's/^/| /' conftest.$ac_ext >&5
4226 ac_header_compiler=no
4228 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
4229 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
4230 echo "${ECHO_T}$ac_header_compiler" >&6
4232 # Is the header present?
4233 echo "$as_me:$LINENO: checking $ac_header presence" >&5
4234 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
4235 cat >conftest.$ac_ext <<_ACEOF
4238 cat confdefs.h >>conftest.$ac_ext
4239 cat >>conftest.$ac_ext <<_ACEOF
4240 /* end confdefs.h. */
4241 #include <$ac_header>
4243 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
4244 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
4246 grep -v '^ *+' conftest.er1 >conftest.err
4248 cat conftest.err >&5
4249 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4250 (exit $ac_status); } >/dev/null; then
4251 if test -s conftest.err; then
4252 ac_cpp_err=$ac_c_preproc_warn_flag
4253 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
4260 if test -z "$ac_cpp_err"; then
4261 ac_header_preproc=yes
4263 echo "$as_me: failed program was:" >&5
4264 sed 's/^/| /' conftest.$ac_ext >&5
4266 ac_header_preproc=no
4268 rm -f conftest.err conftest.$ac_ext
4269 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
4270 echo "${ECHO_T}$ac_header_preproc" >&6
4272 # So? What about this header?
4273 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
4275 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
4276 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
4277 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
4278 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
4279 ac_header_preproc=yes
4282 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
4283 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
4284 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
4285 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
4286 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
4287 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
4288 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
4289 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
4290 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
4291 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
4292 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
4293 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
4296 ## ------------------------------------------ ##
4297 ## Report this to the AC_PACKAGE_NAME lists. ##
4298 ## ------------------------------------------ ##
4301 sed "s/^/$as_me: WARNING: /" >&2
4304 echo "$as_me:$LINENO: checking for $ac_header" >&5
4305 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
4306 if eval "test \"\${$as_ac_Header+set}\" = set"; then
4307 echo $ECHO_N "(cached) $ECHO_C" >&6
4309 eval "$as_ac_Header=\$ac_header_preproc"
4311 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
4312 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
4315 if test `eval echo '${'$as_ac_Header'}'` = yes; then
4316 cat >>confdefs.h <<_ACEOF
4317 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
4335 echo "$as_me:$LINENO: checking for C/C++ restrict keyword" >&5
4336 echo $ECHO_N "checking for C/C++ restrict keyword... $ECHO_C" >&6
4337 if test "${ac_cv_c_restrict+set}" = set; then
4338 echo $ECHO_N "(cached) $ECHO_C" >&6
4341 # The order here caters to the fact that C++ does not require restrict.
4342 for ac_kw in __restrict __restrict__ _Restrict restrict; do
4343 cat >conftest.$ac_ext <<_ACEOF
4346 cat confdefs.h >>conftest.$ac_ext
4347 cat >>conftest.$ac_ext <<_ACEOF
4348 /* end confdefs.h. */
4349 typedef int * int_ptr;
4350 int foo (int_ptr $ac_kw ip) {
4364 rm -f conftest.$ac_objext
4365 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
4366 (eval $ac_compile) 2>conftest.er1
4368 grep -v '^ *+' conftest.er1 >conftest.err
4370 cat conftest.err >&5
4371 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4372 (exit $ac_status); } &&
4373 { ac_try='test -z "$ac_c_werror_flag"
4374 || test ! -s conftest.err'
4375 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4378 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4379 (exit $ac_status); }; } &&
4380 { ac_try='test -s conftest.$ac_objext'
4381 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4384 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4385 (exit $ac_status); }; }; then
4386 ac_cv_c_restrict=$ac_kw
4388 echo "$as_me: failed program was:" >&5
4389 sed 's/^/| /' conftest.$ac_ext >&5
4392 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
4393 test "$ac_cv_c_restrict" != no && break
4397 echo "$as_me:$LINENO: result: $ac_cv_c_restrict" >&5
4398 echo "${ECHO_T}$ac_cv_c_restrict" >&6
4401 case $ac_cv_c_restrict in
4403 no) cat >>confdefs.h <<\_ACEOF
4407 *) cat >>confdefs.h <<_ACEOF
4408 #define restrict $ac_cv_c_restrict
4433 if test $gl_cv_have_include_next = yes; then
4434 gl_cv_next_string_h='<'string.h'>'
4436 echo "$as_me:$LINENO: checking absolute name of <string.h>" >&5
4437 echo $ECHO_N "checking absolute name of <string.h>... $ECHO_C" >&6
4438 if test "${gl_cv_next_string_h+set}" = set; then
4439 echo $ECHO_N "(cached) $ECHO_C" >&6
4442 if test $ac_cv_header_string_h = yes; then
4443 cat >conftest.$ac_ext <<_ACEOF
4446 cat confdefs.h >>conftest.$ac_ext
4447 cat >>conftest.$ac_ext <<_ACEOF
4448 /* end confdefs.h. */
4452 gl_cv_next_string_h='"'`(eval "$ac_cpp conftest.$ac_ext") 2>&5 |
4453 sed -n '\#/string.h#{
4454 s#.*"\(.*/string.h\)".*#\1#
4460 gl_cv_next_string_h='<'string.h'>'
4464 echo "$as_me:$LINENO: result: $gl_cv_next_string_h" >&5
4465 echo "${ECHO_T}$gl_cv_next_string_h" >&6
4467 NEXT_STRING_H=$gl_cv_next_string_h
4474 HAVE_DECL_WCWIDTH=1;
4483 GL_COND_LIBTOOL_TRUE=
4484 GL_COND_LIBTOOL_FALSE='#'
4486 GL_COND_LIBTOOL_TRUE='#'
4487 GL_COND_LIBTOOL_FALSE=
4490 gl_cond_libtool=false
4496 gl_source_base='gnulib'
4506 for ac_func in memchr
4508 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
4509 echo "$as_me:$LINENO: checking for $ac_func" >&5
4510 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
4511 if eval "test \"\${$as_ac_var+set}\" = set"; then
4512 echo $ECHO_N "(cached) $ECHO_C" >&6
4514 cat >conftest.$ac_ext <<_ACEOF
4517 cat confdefs.h >>conftest.$ac_ext
4518 cat >>conftest.$ac_ext <<_ACEOF
4519 /* end confdefs.h. */
4520 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
4521 For example, HP-UX 11i <limits.h> declares gettimeofday. */
4522 #define $ac_func innocuous_$ac_func
4524 /* System header to define __stub macros and hopefully few prototypes,
4525 which can conflict with char $ac_func (); below.
4526 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
4527 <limits.h> exists even on freestanding compilers. */
4530 # include <limits.h>
4532 # include <assert.h>
4537 /* Override any gcc2 internal prototype to avoid an error. */
4542 /* We use char because int might match the return type of a gcc2
4543 builtin and then its argument prototype would still apply. */
4545 /* The GNU C library defines this for functions which it implements
4546 to always fail with ENOSYS. Some functions are actually named
4547 something starting with __ and the normal name is an alias. */
4548 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
4551 char (*f) () = $ac_func;
4560 return f != $ac_func;
4565 rm -f conftest.$ac_objext conftest$ac_exeext
4566 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
4567 (eval $ac_link) 2>conftest.er1
4569 grep -v '^ *+' conftest.er1 >conftest.err
4571 cat conftest.err >&5
4572 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4573 (exit $ac_status); } &&
4574 { ac_try='test -z "$ac_c_werror_flag"
4575 || test ! -s conftest.err'
4576 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4579 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4580 (exit $ac_status); }; } &&
4581 { ac_try='test -s conftest$ac_exeext'
4582 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4585 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4586 (exit $ac_status); }; }; then
4587 eval "$as_ac_var=yes"
4589 echo "$as_me: failed program was:" >&5
4590 sed 's/^/| /' conftest.$ac_ext >&5
4592 eval "$as_ac_var=no"
4594 rm -f conftest.err conftest.$ac_objext \
4595 conftest$ac_exeext conftest.$ac_ext
4597 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
4598 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
4599 if test `eval echo '${'$as_ac_var'}'` = yes; then
4600 cat >>confdefs.h <<_ACEOF
4601 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
4606 gl_LIBOBJS="$gl_LIBOBJS $ac_func.$ac_objext"
4612 if test $ac_cv_func_memchr = no; then
4615 for ac_header in bp-sym.h
4617 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
4618 if eval "test \"\${$as_ac_Header+set}\" = set"; then
4619 echo "$as_me:$LINENO: checking for $ac_header" >&5
4620 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
4621 if eval "test \"\${$as_ac_Header+set}\" = set"; then
4622 echo $ECHO_N "(cached) $ECHO_C" >&6
4624 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
4625 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
4627 # Is the header compilable?
4628 echo "$as_me:$LINENO: checking $ac_header usability" >&5
4629 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
4630 cat >conftest.$ac_ext <<_ACEOF
4633 cat confdefs.h >>conftest.$ac_ext
4634 cat >>conftest.$ac_ext <<_ACEOF
4635 /* end confdefs.h. */
4636 $ac_includes_default
4637 #include <$ac_header>
4639 rm -f conftest.$ac_objext
4640 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
4641 (eval $ac_compile) 2>conftest.er1
4643 grep -v '^ *+' conftest.er1 >conftest.err
4645 cat conftest.err >&5
4646 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4647 (exit $ac_status); } &&
4648 { ac_try='test -z "$ac_c_werror_flag"
4649 || test ! -s conftest.err'
4650 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4653 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4654 (exit $ac_status); }; } &&
4655 { ac_try='test -s conftest.$ac_objext'
4656 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4659 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4660 (exit $ac_status); }; }; then
4661 ac_header_compiler=yes
4663 echo "$as_me: failed program was:" >&5
4664 sed 's/^/| /' conftest.$ac_ext >&5
4666 ac_header_compiler=no
4668 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
4669 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
4670 echo "${ECHO_T}$ac_header_compiler" >&6
4672 # Is the header present?
4673 echo "$as_me:$LINENO: checking $ac_header presence" >&5
4674 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
4675 cat >conftest.$ac_ext <<_ACEOF
4678 cat confdefs.h >>conftest.$ac_ext
4679 cat >>conftest.$ac_ext <<_ACEOF
4680 /* end confdefs.h. */
4681 #include <$ac_header>
4683 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
4684 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
4686 grep -v '^ *+' conftest.er1 >conftest.err
4688 cat conftest.err >&5
4689 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4690 (exit $ac_status); } >/dev/null; then
4691 if test -s conftest.err; then
4692 ac_cpp_err=$ac_c_preproc_warn_flag
4693 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
4700 if test -z "$ac_cpp_err"; then
4701 ac_header_preproc=yes
4703 echo "$as_me: failed program was:" >&5
4704 sed 's/^/| /' conftest.$ac_ext >&5
4706 ac_header_preproc=no
4708 rm -f conftest.err conftest.$ac_ext
4709 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
4710 echo "${ECHO_T}$ac_header_preproc" >&6
4712 # So? What about this header?
4713 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
4715 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
4716 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
4717 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
4718 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
4719 ac_header_preproc=yes
4722 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
4723 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
4724 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
4725 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
4726 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
4727 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
4728 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
4729 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
4730 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
4731 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
4732 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
4733 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
4736 ## ------------------------------------------ ##
4737 ## Report this to the AC_PACKAGE_NAME lists. ##
4738 ## ------------------------------------------ ##
4741 sed "s/^/$as_me: WARNING: /" >&2
4744 echo "$as_me:$LINENO: checking for $ac_header" >&5
4745 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
4746 if eval "test \"\${$as_ac_Header+set}\" = set"; then
4747 echo $ECHO_N "(cached) $ECHO_C" >&6
4749 eval "$as_ac_Header=\$ac_header_preproc"
4751 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
4752 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
4755 if test `eval echo '${'$as_ac_Header'}'` = yes; then
4756 cat >>confdefs.h <<_ACEOF
4757 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
4768 echo "$as_me:$LINENO: checking for working memcmp" >&5
4769 echo $ECHO_N "checking for working memcmp... $ECHO_C" >&6
4770 if test "${ac_cv_func_memcmp_working+set}" = set; then
4771 echo $ECHO_N "(cached) $ECHO_C" >&6
4773 if test "$cross_compiling" = yes; then
4774 ac_cv_func_memcmp_working=no
4776 cat >conftest.$ac_ext <<_ACEOF
4779 cat confdefs.h >>conftest.$ac_ext
4780 cat >>conftest.$ac_ext <<_ACEOF
4781 /* end confdefs.h. */
4782 $ac_includes_default
4787 /* Some versions of memcmp are not 8-bit clean. */
4788 char c0 = 0x40, c1 = 0x80, c2 = 0x81;
4789 if (memcmp(&c0, &c2, 1) >= 0 || memcmp(&c1, &c2, 1) >= 0)
4792 /* The Next x86 OpenStep bug shows up only when comparing 16 bytes
4793 or more and with at least one buffer not starting on a 4-byte boundary.
4794 William Lewis provided this test program. */
4799 for (i = 0; i < 4; i++)
4803 strcpy (a, "--------01111111");
4804 strcpy (b, "--------10000000");
4805 if (memcmp (a, b, 16) >= 0)
4815 rm -f conftest$ac_exeext
4816 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
4817 (eval $ac_link) 2>&5
4819 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4820 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
4821 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4824 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4825 (exit $ac_status); }; }; then
4826 ac_cv_func_memcmp_working=yes
4828 echo "$as_me: program exited with status $ac_status" >&5
4829 echo "$as_me: failed program was:" >&5
4830 sed 's/^/| /' conftest.$ac_ext >&5
4833 ac_cv_func_memcmp_working=no
4835 rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
4838 echo "$as_me:$LINENO: result: $ac_cv_func_memcmp_working" >&5
4839 echo "${ECHO_T}$ac_cv_func_memcmp_working" >&6
4840 test $ac_cv_func_memcmp_working = no &&
4847 gl_LIBOBJS="$gl_LIBOBJS memcmp.$ac_objext"
4850 if test $ac_cv_func_memcmp_working = no; then
4852 cat >>confdefs.h <<\_ACEOF
4853 #define memcmp rpl_memcmp
4861 if test $ac_cv_have_decl_memmem = yes; then
4862 echo "$as_me:$LINENO: checking whether memmem works in linear time" >&5
4863 echo $ECHO_N "checking whether memmem works in linear time... $ECHO_C" >&6
4864 if test "${gl_cv_func_memmem_works+set}" = set; then
4865 echo $ECHO_N "(cached) $ECHO_C" >&6
4867 if test "$cross_compiling" = yes; then
4868 gl_cv_func_memmem_works="guessing no"
4870 cat >conftest.$ac_ext <<_ACEOF
4873 cat confdefs.h >>conftest.$ac_ext
4874 cat >>conftest.$ac_ext <<_ACEOF
4875 /* end confdefs.h. */
4877 #include <string.h> /* for memmem */
4878 #include <stdlib.h> /* for malloc */
4879 #include <unistd.h> /* for alarm */
4885 char *haystack = (char *) malloc (2 * m + 1);
4886 char *needle = (char *) malloc (m + 1);
4888 /* Failure to compile this test due to missing alarm is okay,
4889 since all such platforms (mingw) also lack memmem. */
4891 /* Check for quadratic performance. */
4892 if (haystack && needle)
4894 memset (haystack, 'A', 2 * m);
4895 haystack[2 * m] = 'B';
4896 memset (needle, 'A', m);
4898 result = memmem (haystack, 2 * m + 1, needle, m + 1);
4900 /* Check for empty needle behavior. */
4901 return !result || !memmem ("a", 1, 0, 0);
4906 rm -f conftest$ac_exeext
4907 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
4908 (eval $ac_link) 2>&5
4910 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4911 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
4912 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4915 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4916 (exit $ac_status); }; }; then
4917 gl_cv_func_memmem_works=yes
4919 echo "$as_me: program exited with status $ac_status" >&5
4920 echo "$as_me: failed program was:" >&5
4921 sed 's/^/| /' conftest.$ac_ext >&5
4924 gl_cv_func_memmem_works=no
4926 rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
4929 echo "$as_me:$LINENO: result: $gl_cv_func_memmem_works" >&5
4930 echo "${ECHO_T}$gl_cv_func_memmem_works" >&6
4931 if test "$gl_cv_func_memmem_works" != yes; then
4940 gl_LIBOBJS="$gl_LIBOBJS memmem.$ac_objext"
4957 for ac_func in memmem
4959 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
4960 echo "$as_me:$LINENO: checking for $ac_func" >&5
4961 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
4962 if eval "test \"\${$as_ac_var+set}\" = set"; then
4963 echo $ECHO_N "(cached) $ECHO_C" >&6
4965 cat >conftest.$ac_ext <<_ACEOF
4968 cat confdefs.h >>conftest.$ac_ext
4969 cat >>conftest.$ac_ext <<_ACEOF
4970 /* end confdefs.h. */
4971 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
4972 For example, HP-UX 11i <limits.h> declares gettimeofday. */
4973 #define $ac_func innocuous_$ac_func
4975 /* System header to define __stub macros and hopefully few prototypes,
4976 which can conflict with char $ac_func (); below.
4977 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
4978 <limits.h> exists even on freestanding compilers. */
4981 # include <limits.h>
4983 # include <assert.h>
4988 /* Override any gcc2 internal prototype to avoid an error. */
4993 /* We use char because int might match the return type of a gcc2
4994 builtin and then its argument prototype would still apply. */
4996 /* The GNU C library defines this for functions which it implements
4997 to always fail with ENOSYS. Some functions are actually named
4998 something starting with __ and the normal name is an alias. */
4999 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
5002 char (*f) () = $ac_func;
5011 return f != $ac_func;
5016 rm -f conftest.$ac_objext conftest$ac_exeext
5017 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
5018 (eval $ac_link) 2>conftest.er1
5020 grep -v '^ *+' conftest.er1 >conftest.err
5022 cat conftest.err >&5
5023 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5024 (exit $ac_status); } &&
5025 { ac_try='test -z "$ac_c_werror_flag"
5026 || test ! -s conftest.err'
5027 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5030 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5031 (exit $ac_status); }; } &&
5032 { ac_try='test -s conftest$ac_exeext'
5033 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5036 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5037 (exit $ac_status); }; }; then
5038 eval "$as_ac_var=yes"
5040 echo "$as_me: failed program was:" >&5
5041 sed 's/^/| /' conftest.$ac_ext >&5
5043 eval "$as_ac_var=no"
5045 rm -f conftest.err conftest.$ac_objext \
5046 conftest$ac_exeext conftest.$ac_ext
5048 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
5049 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
5050 if test `eval echo '${'$as_ac_var'}'` = yes; then
5051 cat >>confdefs.h <<_ACEOF
5052 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
5057 gl_LIBOBJS="$gl_LIBOBJS $ac_func.$ac_objext"
5070 if test $ac_cv_have_decl_memmem = no; then
5082 if test $ac_cv_type_long_long_int = yes; then
5083 HAVE_LONG_LONG_INT=1
5085 HAVE_LONG_LONG_INT=0
5089 if test $ac_cv_type_unsigned_long_long_int = yes; then
5090 HAVE_UNSIGNED_LONG_LONG_INT=1
5092 HAVE_UNSIGNED_LONG_LONG_INT=0
5096 if test $ac_cv_header_inttypes_h = yes; then
5103 if test $ac_cv_header_sys_types_h = yes; then
5121 if test $gl_cv_have_include_next = yes; then
5122 gl_cv_next_stdint_h='<'stdint.h'>'
5124 echo "$as_me:$LINENO: checking absolute name of <stdint.h>" >&5
5125 echo $ECHO_N "checking absolute name of <stdint.h>... $ECHO_C" >&6
5126 if test "${gl_cv_next_stdint_h+set}" = set; then
5127 echo $ECHO_N "(cached) $ECHO_C" >&6
5130 if test $ac_cv_header_stdint_h = yes; then
5131 cat >conftest.$ac_ext <<_ACEOF
5134 cat confdefs.h >>conftest.$ac_ext
5135 cat >>conftest.$ac_ext <<_ACEOF
5136 /* end confdefs.h. */
5140 gl_cv_next_stdint_h='"'`(eval "$ac_cpp conftest.$ac_ext") 2>&5 |
5141 sed -n '\#/stdint.h#{
5142 s#.*"\(.*/stdint.h\)".*#\1#
5148 gl_cv_next_stdint_h='<'stdint.h'>'
5152 echo "$as_me:$LINENO: result: $gl_cv_next_stdint_h" >&5
5153 echo "${ECHO_T}$gl_cv_next_stdint_h" >&6
5155 NEXT_STDINT_H=$gl_cv_next_stdint_h
5159 if test $ac_cv_header_stdint_h = yes; then
5166 if test $ac_cv_header_stdint_h = yes; then
5167 echo "$as_me:$LINENO: checking whether stdint.h conforms to C99" >&5
5168 echo $ECHO_N "checking whether stdint.h conforms to C99... $ECHO_C" >&6
5169 if test "${gl_cv_header_working_stdint_h+set}" = set; then
5170 echo $ECHO_N "(cached) $ECHO_C" >&6
5172 gl_cv_header_working_stdint_h=no
5173 cat >conftest.$ac_ext <<_ACEOF
5177 cat confdefs.h >>conftest.$ac_ext
5178 cat >>conftest.$ac_ext <<_ACEOF
5179 /* end confdefs.h. */
5181 #define __STDC_LIMIT_MACROS 1 /* to make it work also in C++ mode */
5182 #define __STDC_CONSTANT_MACROS 1 /* to make it work also in C++ mode */
5183 #define _GL_JUST_INCLUDE_SYSTEM_STDINT_H 1 /* work if build isn't clean */
5185 /* Dragonfly defines WCHAR_MIN, WCHAR_MAX only in <wchar.h>. */
5186 #if !(defined WCHAR_MIN && defined WCHAR_MAX)
5187 #error "WCHAR_MIN, WCHAR_MAX not defined in <stdint.h>"
5191 /* BSD/OS 4.0.1 has a bug: <stddef.h>, <stdio.h> and <time.h> must be
5192 included before <wchar.h>. */
5203 int8_t a1 = INT8_MAX;
5204 int8_t a1min = INT8_MIN;
5207 int16_t a2 = INT16_MAX;
5208 int16_t a2min = INT16_MIN;
5211 int32_t a3 = INT32_MAX;
5212 int32_t a3min = INT32_MIN;
5215 int64_t a4 = INT64_MAX;
5216 int64_t a4min = INT64_MIN;
5219 uint8_t b1 = UINT8_MAX;
5221 typedef int b1[(unsigned char) -1 != 255 ? 1 : -1];
5224 uint16_t b2 = UINT16_MAX;
5227 uint32_t b3 = UINT32_MAX;
5230 uint64_t b4 = UINT64_MAX;
5232 int_least8_t c1 = INT8_C (0x7f);
5233 int_least8_t c1max = INT_LEAST8_MAX;
5234 int_least8_t c1min = INT_LEAST8_MIN;
5235 int_least16_t c2 = INT16_C (0x7fff);
5236 int_least16_t c2max = INT_LEAST16_MAX;
5237 int_least16_t c2min = INT_LEAST16_MIN;
5238 int_least32_t c3 = INT32_C (0x7fffffff);
5239 int_least32_t c3max = INT_LEAST32_MAX;
5240 int_least32_t c3min = INT_LEAST32_MIN;
5241 int_least64_t c4 = INT64_C (0x7fffffffffffffff);
5242 int_least64_t c4max = INT_LEAST64_MAX;
5243 int_least64_t c4min = INT_LEAST64_MIN;
5244 uint_least8_t d1 = UINT8_C (0xff);
5245 uint_least8_t d1max = UINT_LEAST8_MAX;
5246 uint_least16_t d2 = UINT16_C (0xffff);
5247 uint_least16_t d2max = UINT_LEAST16_MAX;
5248 uint_least32_t d3 = UINT32_C (0xffffffff);
5249 uint_least32_t d3max = UINT_LEAST32_MAX;
5250 uint_least64_t d4 = UINT64_C (0xffffffffffffffff);
5251 uint_least64_t d4max = UINT_LEAST64_MAX;
5252 int_fast8_t e1 = INT_FAST8_MAX;
5253 int_fast8_t e1min = INT_FAST8_MIN;
5254 int_fast16_t e2 = INT_FAST16_MAX;
5255 int_fast16_t e2min = INT_FAST16_MIN;
5256 int_fast32_t e3 = INT_FAST32_MAX;
5257 int_fast32_t e3min = INT_FAST32_MIN;
5258 int_fast64_t e4 = INT_FAST64_MAX;
5259 int_fast64_t e4min = INT_FAST64_MIN;
5260 uint_fast8_t f1 = UINT_FAST8_MAX;
5261 uint_fast16_t f2 = UINT_FAST16_MAX;
5262 uint_fast32_t f3 = UINT_FAST32_MAX;
5263 uint_fast64_t f4 = UINT_FAST64_MAX;
5265 intptr_t g = INTPTR_MAX;
5266 intptr_t gmin = INTPTR_MIN;
5269 uintptr_t h = UINTPTR_MAX;
5271 intmax_t i = INTMAX_MAX;
5272 uintmax_t j = UINTMAX_MAX;
5274 #include <limits.h> /* for CHAR_BIT */
5275 #define TYPE_MINIMUM(t) \
5276 ((t) ((t) 0 < (t) -1 ? (t) 0 : ~ (t) 0 << (sizeof (t) * CHAR_BIT - 1)))
5277 #define TYPE_MAXIMUM(t) \
5278 ((t) ((t) 0 < (t) -1 ? (t) -1 : ~ (~ (t) 0 << (sizeof (t) * CHAR_BIT - 1))))
5281 PTRDIFF_MIN == TYPE_MINIMUM (ptrdiff_t)
5282 && PTRDIFF_MAX == TYPE_MAXIMUM (ptrdiff_t)
5284 /* Detect bug in FreeBSD 6.0 / ia64. */
5285 int check_SIG_ATOMIC:
5286 SIG_ATOMIC_MIN == TYPE_MINIMUM (sig_atomic_t)
5287 && SIG_ATOMIC_MAX == TYPE_MAXIMUM (sig_atomic_t)
5289 int check_SIZE: SIZE_MAX == TYPE_MAXIMUM (size_t) ? 1 : -1;
5291 WCHAR_MIN == TYPE_MINIMUM (wchar_t)
5292 && WCHAR_MAX == TYPE_MAXIMUM (wchar_t)
5294 /* Detect bug in mingw. */
5296 WINT_MIN == TYPE_MINIMUM (wint_t)
5297 && WINT_MAX == TYPE_MAXIMUM (wint_t)
5300 /* Detect bugs in glibc 2.4 and Solaris 10 stdint.h, among others. */
5302 (-1 < UINT8_C (0)) == (-1 < (uint_least8_t) 0) ? 1 : -1;
5304 (-1 < UINT16_C (0)) == (-1 < (uint_least16_t) 0) ? 1 : -1;
5306 /* Detect bugs in OpenBSD 3.9 stdint.h. */
5308 int check_uint8: (uint8_t) -1 == UINT8_MAX ? 1 : -1;
5311 int check_uint16: (uint16_t) -1 == UINT16_MAX ? 1 : -1;
5314 int check_uint32: (uint32_t) -1 == UINT32_MAX ? 1 : -1;
5317 int check_uint64: (uint64_t) -1 == UINT64_MAX ? 1 : -1;
5319 int check_uint_least8: (uint_least8_t) -1 == UINT_LEAST8_MAX ? 1 : -1;
5320 int check_uint_least16: (uint_least16_t) -1 == UINT_LEAST16_MAX ? 1 : -1;
5321 int check_uint_least32: (uint_least32_t) -1 == UINT_LEAST32_MAX ? 1 : -1;
5322 int check_uint_least64: (uint_least64_t) -1 == UINT_LEAST64_MAX ? 1 : -1;
5323 int check_uint_fast8: (uint_fast8_t) -1 == UINT_FAST8_MAX ? 1 : -1;
5324 int check_uint_fast16: (uint_fast16_t) -1 == UINT_FAST16_MAX ? 1 : -1;
5325 int check_uint_fast32: (uint_fast32_t) -1 == UINT_FAST32_MAX ? 1 : -1;
5326 int check_uint_fast64: (uint_fast64_t) -1 == UINT_FAST64_MAX ? 1 : -1;
5327 int check_uintptr: (uintptr_t) -1 == UINTPTR_MAX ? 1 : -1;
5328 int check_uintmax: (uintmax_t) -1 == UINTMAX_MAX ? 1 : -1;
5329 int check_size: (size_t) -1 == SIZE_MAX ? 1 : -1;
5340 rm -f conftest.$ac_objext
5341 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
5342 (eval $ac_compile) 2>conftest.er1
5344 grep -v '^ *+' conftest.er1 >conftest.err
5346 cat conftest.err >&5
5347 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5348 (exit $ac_status); } &&
5349 { ac_try='test -z "$ac_c_werror_flag"
5350 || test ! -s conftest.err'
5351 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5354 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5355 (exit $ac_status); }; } &&
5356 { ac_try='test -s conftest.$ac_objext'
5357 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5360 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5361 (exit $ac_status); }; }; then
5362 gl_cv_header_working_stdint_h=yes
5364 echo "$as_me: failed program was:" >&5
5365 sed 's/^/| /' conftest.$ac_ext >&5
5368 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
5370 echo "$as_me:$LINENO: result: $gl_cv_header_working_stdint_h" >&5
5371 echo "${ECHO_T}$gl_cv_header_working_stdint_h" >&6
5373 if test "$gl_cv_header_working_stdint_h" = yes; then
5378 for ac_header in sys/inttypes.h sys/bitypes.h
5380 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
5381 if eval "test \"\${$as_ac_Header+set}\" = set"; then
5382 echo "$as_me:$LINENO: checking for $ac_header" >&5
5383 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
5384 if eval "test \"\${$as_ac_Header+set}\" = set"; then
5385 echo $ECHO_N "(cached) $ECHO_C" >&6
5387 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
5388 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
5390 # Is the header compilable?
5391 echo "$as_me:$LINENO: checking $ac_header usability" >&5
5392 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
5393 cat >conftest.$ac_ext <<_ACEOF
5396 cat confdefs.h >>conftest.$ac_ext
5397 cat >>conftest.$ac_ext <<_ACEOF
5398 /* end confdefs.h. */
5399 $ac_includes_default
5400 #include <$ac_header>
5402 rm -f conftest.$ac_objext
5403 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
5404 (eval $ac_compile) 2>conftest.er1
5406 grep -v '^ *+' conftest.er1 >conftest.err
5408 cat conftest.err >&5
5409 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5410 (exit $ac_status); } &&
5411 { ac_try='test -z "$ac_c_werror_flag"
5412 || test ! -s conftest.err'
5413 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5416 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5417 (exit $ac_status); }; } &&
5418 { ac_try='test -s conftest.$ac_objext'
5419 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5422 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5423 (exit $ac_status); }; }; then
5424 ac_header_compiler=yes
5426 echo "$as_me: failed program was:" >&5
5427 sed 's/^/| /' conftest.$ac_ext >&5
5429 ac_header_compiler=no
5431 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
5432 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
5433 echo "${ECHO_T}$ac_header_compiler" >&6
5435 # Is the header present?
5436 echo "$as_me:$LINENO: checking $ac_header presence" >&5
5437 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
5438 cat >conftest.$ac_ext <<_ACEOF
5441 cat confdefs.h >>conftest.$ac_ext
5442 cat >>conftest.$ac_ext <<_ACEOF
5443 /* end confdefs.h. */
5444 #include <$ac_header>
5446 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
5447 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
5449 grep -v '^ *+' conftest.er1 >conftest.err
5451 cat conftest.err >&5
5452 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5453 (exit $ac_status); } >/dev/null; then
5454 if test -s conftest.err; then
5455 ac_cpp_err=$ac_c_preproc_warn_flag
5456 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
5463 if test -z "$ac_cpp_err"; then
5464 ac_header_preproc=yes
5466 echo "$as_me: failed program was:" >&5
5467 sed 's/^/| /' conftest.$ac_ext >&5
5469 ac_header_preproc=no
5471 rm -f conftest.err conftest.$ac_ext
5472 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
5473 echo "${ECHO_T}$ac_header_preproc" >&6
5475 # So? What about this header?
5476 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
5478 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
5479 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
5480 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
5481 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
5482 ac_header_preproc=yes
5485 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
5486 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
5487 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
5488 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
5489 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
5490 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
5491 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
5492 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
5493 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
5494 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
5495 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
5496 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
5499 ## ------------------------------------------ ##
5500 ## Report this to the AC_PACKAGE_NAME lists. ##
5501 ## ------------------------------------------ ##
5504 sed "s/^/$as_me: WARNING: /" >&2
5507 echo "$as_me:$LINENO: checking for $ac_header" >&5
5508 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
5509 if eval "test \"\${$as_ac_Header+set}\" = set"; then
5510 echo $ECHO_N "(cached) $ECHO_C" >&6
5512 eval "$as_ac_Header=\$ac_header_preproc"
5514 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
5515 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
5518 if test `eval echo '${'$as_ac_Header'}'` = yes; then
5519 cat >>confdefs.h <<_ACEOF
5520 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
5527 if test $ac_cv_header_sys_inttypes_h = yes; then
5528 HAVE_SYS_INTTYPES_H=1
5530 HAVE_SYS_INTTYPES_H=0
5533 if test $ac_cv_header_sys_bitypes_h = yes; then
5534 HAVE_SYS_BITYPES_H=1
5536 HAVE_SYS_BITYPES_H=0
5556 for gltype in ptrdiff_t sig_atomic_t size_t wchar_t wint_t ; do
5557 echo "$as_me:$LINENO: checking for bit size of $gltype" >&5
5558 echo $ECHO_N "checking for bit size of $gltype... $ECHO_C" >&6
5559 if eval "test \"\${gl_cv_bitsizeof_${gltype}+set}\" = set"; then
5560 echo $ECHO_N "(cached) $ECHO_C" >&6
5562 if test "$cross_compiling" = yes; then
5563 # Depending upon the size, compute the lo and hi bounds.
5564 cat >conftest.$ac_ext <<_ACEOF
5567 cat confdefs.h >>conftest.$ac_ext
5568 cat >>conftest.$ac_ext <<_ACEOF
5569 /* end confdefs.h. */
5571 /* BSD/OS 4.0.1 has a bug: <stddef.h>, <stdio.h> and <time.h> must be
5572 included before <wchar.h>. */
5585 static int test_array [1 - 2 * !((sizeof ($gltype) * CHAR_BIT) >= 0)];
5592 rm -f conftest.$ac_objext
5593 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
5594 (eval $ac_compile) 2>conftest.er1
5596 grep -v '^ *+' conftest.er1 >conftest.err
5598 cat conftest.err >&5
5599 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5600 (exit $ac_status); } &&
5601 { ac_try='test -z "$ac_c_werror_flag"
5602 || test ! -s conftest.err'
5603 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5606 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5607 (exit $ac_status); }; } &&
5608 { ac_try='test -s conftest.$ac_objext'
5609 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5612 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5613 (exit $ac_status); }; }; then
5616 cat >conftest.$ac_ext <<_ACEOF
5619 cat confdefs.h >>conftest.$ac_ext
5620 cat >>conftest.$ac_ext <<_ACEOF
5621 /* end confdefs.h. */
5623 /* BSD/OS 4.0.1 has a bug: <stddef.h>, <stdio.h> and <time.h> must be
5624 included before <wchar.h>. */
5637 static int test_array [1 - 2 * !((sizeof ($gltype) * CHAR_BIT) <= $ac_mid)];
5644 rm -f conftest.$ac_objext
5645 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
5646 (eval $ac_compile) 2>conftest.er1
5648 grep -v '^ *+' conftest.er1 >conftest.err
5650 cat conftest.err >&5
5651 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5652 (exit $ac_status); } &&
5653 { ac_try='test -z "$ac_c_werror_flag"
5654 || test ! -s conftest.err'
5655 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5658 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5659 (exit $ac_status); }; } &&
5660 { ac_try='test -s conftest.$ac_objext'
5661 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5664 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5665 (exit $ac_status); }; }; then
5666 ac_hi=$ac_mid; break
5668 echo "$as_me: failed program was:" >&5
5669 sed 's/^/| /' conftest.$ac_ext >&5
5671 ac_lo=`expr $ac_mid + 1`
5672 if test $ac_lo -le $ac_mid; then
5676 ac_mid=`expr 2 '*' $ac_mid + 1`
5678 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
5681 echo "$as_me: failed program was:" >&5
5682 sed 's/^/| /' conftest.$ac_ext >&5
5684 cat >conftest.$ac_ext <<_ACEOF
5687 cat confdefs.h >>conftest.$ac_ext
5688 cat >>conftest.$ac_ext <<_ACEOF
5689 /* end confdefs.h. */
5691 /* BSD/OS 4.0.1 has a bug: <stddef.h>, <stdio.h> and <time.h> must be
5692 included before <wchar.h>. */
5705 static int test_array [1 - 2 * !((sizeof ($gltype) * CHAR_BIT) < 0)];
5712 rm -f conftest.$ac_objext
5713 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
5714 (eval $ac_compile) 2>conftest.er1
5716 grep -v '^ *+' conftest.er1 >conftest.err
5718 cat conftest.err >&5
5719 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5720 (exit $ac_status); } &&
5721 { ac_try='test -z "$ac_c_werror_flag"
5722 || test ! -s conftest.err'
5723 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5726 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5727 (exit $ac_status); }; } &&
5728 { ac_try='test -s conftest.$ac_objext'
5729 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5732 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5733 (exit $ac_status); }; }; then
5736 cat >conftest.$ac_ext <<_ACEOF
5739 cat confdefs.h >>conftest.$ac_ext
5740 cat >>conftest.$ac_ext <<_ACEOF
5741 /* end confdefs.h. */
5743 /* BSD/OS 4.0.1 has a bug: <stddef.h>, <stdio.h> and <time.h> must be
5744 included before <wchar.h>. */
5757 static int test_array [1 - 2 * !((sizeof ($gltype) * CHAR_BIT) >= $ac_mid)];
5764 rm -f conftest.$ac_objext
5765 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
5766 (eval $ac_compile) 2>conftest.er1
5768 grep -v '^ *+' conftest.er1 >conftest.err
5770 cat conftest.err >&5
5771 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5772 (exit $ac_status); } &&
5773 { ac_try='test -z "$ac_c_werror_flag"
5774 || test ! -s conftest.err'
5775 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5778 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5779 (exit $ac_status); }; } &&
5780 { ac_try='test -s conftest.$ac_objext'
5781 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5784 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5785 (exit $ac_status); }; }; then
5786 ac_lo=$ac_mid; break
5788 echo "$as_me: failed program was:" >&5
5789 sed 's/^/| /' conftest.$ac_ext >&5
5791 ac_hi=`expr '(' $ac_mid ')' - 1`
5792 if test $ac_mid -le $ac_hi; then
5796 ac_mid=`expr 2 '*' $ac_mid`
5798 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
5801 echo "$as_me: failed program was:" >&5
5802 sed 's/^/| /' conftest.$ac_ext >&5
5806 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
5808 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
5809 # Binary search between lo and hi bounds.
5810 while test "x$ac_lo" != "x$ac_hi"; do
5811 ac_mid=`expr '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo`
5812 cat >conftest.$ac_ext <<_ACEOF
5815 cat confdefs.h >>conftest.$ac_ext
5816 cat >>conftest.$ac_ext <<_ACEOF
5817 /* end confdefs.h. */
5819 /* BSD/OS 4.0.1 has a bug: <stddef.h>, <stdio.h> and <time.h> must be
5820 included before <wchar.h>. */
5833 static int test_array [1 - 2 * !((sizeof ($gltype) * CHAR_BIT) <= $ac_mid)];
5840 rm -f conftest.$ac_objext
5841 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
5842 (eval $ac_compile) 2>conftest.er1
5844 grep -v '^ *+' conftest.er1 >conftest.err
5846 cat conftest.err >&5
5847 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5848 (exit $ac_status); } &&
5849 { ac_try='test -z "$ac_c_werror_flag"
5850 || test ! -s conftest.err'
5851 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5854 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5855 (exit $ac_status); }; } &&
5856 { ac_try='test -s conftest.$ac_objext'
5857 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5860 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5861 (exit $ac_status); }; }; then
5864 echo "$as_me: failed program was:" >&5
5865 sed 's/^/| /' conftest.$ac_ext >&5
5867 ac_lo=`expr '(' $ac_mid ')' + 1`
5869 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
5873 '') result=unknown ;;
5876 if test "$cross_compiling" = yes; then
5877 { { echo "$as_me:$LINENO: error: cannot run test program while cross compiling
5878 See \`config.log' for more details." >&5
5879 echo "$as_me: error: cannot run test program while cross compiling
5880 See \`config.log' for more details." >&2;}
5881 { (exit 1); exit 1; }; }
5883 cat >conftest.$ac_ext <<_ACEOF
5886 cat confdefs.h >>conftest.$ac_ext
5887 cat >>conftest.$ac_ext <<_ACEOF
5888 /* end confdefs.h. */
5890 /* BSD/OS 4.0.1 has a bug: <stddef.h>, <stdio.h> and <time.h> must be
5891 included before <wchar.h>. */
5901 long longval () { return sizeof ($gltype) * CHAR_BIT; }
5902 unsigned long ulongval () { return sizeof ($gltype) * CHAR_BIT; }
5909 FILE *f = fopen ("conftest.val", "w");
5912 if ((sizeof ($gltype) * CHAR_BIT) < 0)
5914 long i = longval ();
5915 if (i != (sizeof ($gltype) * CHAR_BIT))
5917 fprintf (f, "%ld\n", i);
5921 unsigned long i = ulongval ();
5922 if (i != (sizeof ($gltype) * CHAR_BIT))
5924 fprintf (f, "%lu\n", i);
5926 exit (ferror (f) || fclose (f) != 0);
5932 rm -f conftest$ac_exeext
5933 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
5934 (eval $ac_link) 2>&5
5936 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5937 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
5938 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5941 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5942 (exit $ac_status); }; }; then
5943 result=`cat conftest.val`
5945 echo "$as_me: program exited with status $ac_status" >&5
5946 echo "$as_me: failed program was:" >&5
5947 sed 's/^/| /' conftest.$ac_ext >&5
5952 rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
5956 eval gl_cv_bitsizeof_${gltype}=\$result
5959 echo "$as_me:$LINENO: result: `eval echo '${'gl_cv_bitsizeof_${gltype}'}'`" >&5
5960 echo "${ECHO_T}`eval echo '${'gl_cv_bitsizeof_${gltype}'}'`" >&6
5961 eval result=\$gl_cv_bitsizeof_${gltype}
5962 if test $result = unknown; then
5965 GLTYPE=`echo "$gltype" | tr 'abcdefghijklmnopqrstuvwxyz ' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ_'`
5966 cat >>confdefs.h <<_ACEOF
5967 #define BITSIZEOF_${GLTYPE} $result
5970 eval BITSIZEOF_${GLTYPE}=\$result
5979 for gltype in sig_atomic_t wchar_t wint_t ; do
5980 echo "$as_me:$LINENO: checking whether $gltype is signed" >&5
5981 echo $ECHO_N "checking whether $gltype is signed... $ECHO_C" >&6
5982 if eval "test \"\${gl_cv_type_${gltype}_signed+set}\" = set"; then
5983 echo $ECHO_N "(cached) $ECHO_C" >&6
5985 cat >conftest.$ac_ext <<_ACEOF
5988 cat confdefs.h >>conftest.$ac_ext
5989 cat >>conftest.$ac_ext <<_ACEOF
5990 /* end confdefs.h. */
5992 /* BSD/OS 4.0.1 has a bug: <stddef.h>, <stdio.h> and <time.h> must be
5993 included before <wchar.h>. */
6002 int verify[2 * (($gltype) -1 < ($gltype) 0) - 1];
6011 rm -f conftest.$ac_objext
6012 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
6013 (eval $ac_compile) 2>conftest.er1
6015 grep -v '^ *+' conftest.er1 >conftest.err
6017 cat conftest.err >&5
6018 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6019 (exit $ac_status); } &&
6020 { ac_try='test -z "$ac_c_werror_flag"
6021 || test ! -s conftest.err'
6022 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6025 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6026 (exit $ac_status); }; } &&
6027 { ac_try='test -s conftest.$ac_objext'
6028 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6031 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6032 (exit $ac_status); }; }; then
6035 echo "$as_me: failed program was:" >&5
6036 sed 's/^/| /' conftest.$ac_ext >&5
6040 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
6041 eval gl_cv_type_${gltype}_signed=\$result
6044 echo "$as_me:$LINENO: result: `eval echo '${'gl_cv_type_${gltype}_signed'}'`" >&5
6045 echo "${ECHO_T}`eval echo '${'gl_cv_type_${gltype}_signed'}'`" >&6
6046 eval result=\$gl_cv_type_${gltype}_signed
6047 GLTYPE=`echo $gltype | tr 'abcdefghijklmnopqrstuvwxyz ' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ_'`
6048 if test "$result" = yes; then
6049 cat >>confdefs.h <<_ACEOF
6050 #define HAVE_SIGNED_${GLTYPE} 1
6053 eval HAVE_SIGNED_${GLTYPE}=1
6055 eval HAVE_SIGNED_${GLTYPE}=0
6060 gl_cv_type_ptrdiff_t_signed=yes
6061 gl_cv_type_size_t_signed=no
6069 for gltype in ptrdiff_t sig_atomic_t size_t wchar_t wint_t ; do
6070 echo "$as_me:$LINENO: checking for $gltype integer literal suffix" >&5
6071 echo $ECHO_N "checking for $gltype integer literal suffix... $ECHO_C" >&6
6072 if eval "test \"\${gl_cv_type_${gltype}_suffix+set}\" = set"; then
6073 echo $ECHO_N "(cached) $ECHO_C" >&6
6075 eval gl_cv_type_${gltype}_suffix=no
6076 eval result=\$gl_cv_type_${gltype}_signed
6077 if test "$result" = yes; then
6082 for glsuf in "$glsufu" ${glsufu}l ${glsufu}ll ${glsufu}i64; do
6085 l) gltype1='long int';;
6086 ll) gltype1='long long int';;
6087 i64) gltype1='__int64';;
6088 u) gltype1='unsigned int';;
6089 ul) gltype1='unsigned long int';;
6090 ull) gltype1='unsigned long long int';;
6091 ui64)gltype1='unsigned __int64';;
6093 cat >conftest.$ac_ext <<_ACEOF
6096 cat confdefs.h >>conftest.$ac_ext
6097 cat >>conftest.$ac_ext <<_ACEOF
6098 /* end confdefs.h. */
6100 /* BSD/OS 4.0.1 has a bug: <stddef.h>, <stdio.h> and <time.h> must be
6101 included before <wchar.h>. */
6111 extern $gltype1 foo;
6120 rm -f conftest.$ac_objext
6121 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
6122 (eval $ac_compile) 2>conftest.er1
6124 grep -v '^ *+' conftest.er1 >conftest.err
6126 cat conftest.err >&5
6127 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6128 (exit $ac_status); } &&
6129 { ac_try='test -z "$ac_c_werror_flag"
6130 || test ! -s conftest.err'
6131 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6134 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6135 (exit $ac_status); }; } &&
6136 { ac_try='test -s conftest.$ac_objext'
6137 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6140 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6141 (exit $ac_status); }; }; then
6142 eval gl_cv_type_${gltype}_suffix=\$glsuf
6144 echo "$as_me: failed program was:" >&5
6145 sed 's/^/| /' conftest.$ac_ext >&5
6148 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
6149 eval result=\$gl_cv_type_${gltype}_suffix
6150 test "$result" != no && break
6153 echo "$as_me:$LINENO: result: `eval echo '${'gl_cv_type_${gltype}_suffix'}'`" >&5
6154 echo "${ECHO_T}`eval echo '${'gl_cv_type_${gltype}_suffix'}'`" >&6
6155 GLTYPE=`echo $gltype | tr 'abcdefghijklmnopqrstuvwxyz ' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ_'`
6156 eval result=\$gl_cv_type_${gltype}_suffix
6157 test "$result" = no && result=
6158 eval ${GLTYPE}_SUFFIX=\$result
6159 cat >>confdefs.h <<_ACEOF
6160 #define ${GLTYPE}_SUFFIX $result
6176 echo "$as_me:$LINENO: checking whether <wchar.h> is standalone" >&5
6177 echo $ECHO_N "checking whether <wchar.h> is standalone... $ECHO_C" >&6
6178 if test "${gl_cv_header_wchar_h_standalone+set}" = set; then
6179 echo $ECHO_N "(cached) $ECHO_C" >&6
6181 cat >conftest.$ac_ext <<_ACEOF
6185 rm -f conftest.$ac_objext
6186 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
6187 (eval $ac_compile) 2>conftest.er1
6189 grep -v '^ *+' conftest.er1 >conftest.err
6191 cat conftest.err >&5
6192 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6193 (exit $ac_status); } &&
6194 { ac_try='test -z "$ac_c_werror_flag"
6195 || test ! -s conftest.err'
6196 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6199 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6200 (exit $ac_status); }; } &&
6201 { ac_try='test -s conftest.$ac_objext'
6202 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6205 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6206 (exit $ac_status); }; }; then
6207 gl_cv_header_wchar_h_standalone=yes
6209 echo "$as_me: failed program was:" >&5
6210 sed 's/^/| /' conftest.$ac_ext >&5
6212 gl_cv_header_wchar_h_standalone=no
6214 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
6216 echo "$as_me:$LINENO: result: $gl_cv_header_wchar_h_standalone" >&5
6217 echo "${ECHO_T}$gl_cv_header_wchar_h_standalone" >&6
6218 if test $gl_cv_header_wchar_h_standalone != yes; then
6229 if test $ac_cv_header_wchar_h = yes; then
6246 if test $gl_cv_have_include_next = yes; then
6247 gl_cv_next_wchar_h='<'wchar.h'>'
6249 echo "$as_me:$LINENO: checking absolute name of <wchar.h>" >&5
6250 echo $ECHO_N "checking absolute name of <wchar.h>... $ECHO_C" >&6
6251 if test "${gl_cv_next_wchar_h+set}" = set; then
6252 echo $ECHO_N "(cached) $ECHO_C" >&6
6255 if test $ac_cv_header_wchar_h = yes; then
6256 cat >conftest.$ac_ext <<_ACEOF
6259 cat confdefs.h >>conftest.$ac_ext
6260 cat >>conftest.$ac_ext <<_ACEOF
6261 /* end confdefs.h. */
6265 gl_cv_next_wchar_h='"'`(eval "$ac_cpp conftest.$ac_ext") 2>&5 |
6266 sed -n '\#/wchar.h#{
6267 s#.*"\(.*/wchar.h\)".*#\1#
6273 gl_cv_next_wchar_h='<'wchar.h'>'
6277 echo "$as_me:$LINENO: result: $gl_cv_next_wchar_h" >&5
6278 echo "${ECHO_T}$gl_cv_next_wchar_h" >&6
6280 NEXT_WCHAR_H=$gl_cv_next_wchar_h
6294 gl_source_base='tests'
6299 LIBGNU_LIBDEPS="$gl_libdeps"
6301 LIBGNU_LTLIBDEPS="$gl_ltlibdeps"
6307 cat >>confdefs.h <<_ACEOF
6308 #define PACKAGE "$PACKAGE"
6313 # GDB does not use automake, but gnulib does. This line lets us
6314 # generate its Makefile.in.
6315 am__api_version="1.9"
6316 # Find a good install program. We prefer a C program (faster),
6317 # so one script is as good as another. But avoid the broken or
6318 # incompatible versions:
6319 # SysV /etc/install, /usr/sbin/install
6320 # SunOS /usr/etc/install
6321 # IRIX /sbin/install
6323 # AmigaOS /C/install, which installs bootblocks on floppy discs
6324 # AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag
6325 # AFS /usr/afsws/bin/install, which mishandles nonexistent args
6326 # SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff"
6327 # OS/2's system install, which has a completely different semantic
6328 # ./install, which can be erroneously created by make from ./install.sh.
6329 echo "$as_me:$LINENO: checking for a BSD-compatible install" >&5
6330 echo $ECHO_N "checking for a BSD-compatible install... $ECHO_C" >&6
6331 if test -z "$INSTALL"; then
6332 if test "${ac_cv_path_install+set}" = set; then
6333 echo $ECHO_N "(cached) $ECHO_C" >&6
6335 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6339 test -z "$as_dir" && as_dir=.
6340 # Account for people who put trailing slashes in PATH elements.
6342 ./ | .// | /cC/* | \
6343 /etc/* | /usr/sbin/* | /usr/etc/* | /sbin/* | /usr/afsws/bin/* | \
6344 ?:\\/os2\\/install\\/* | ?:\\/OS2\\/INSTALL\\/* | \
6347 # OSF1 and SCO ODT 3.0 have their own names for install.
6348 # Don't use installbsd from OSF since it installs stuff as root
6350 for ac_prog in ginstall scoinst install; do
6351 for ac_exec_ext in '' $ac_executable_extensions; do
6352 if $as_executable_p "$as_dir/$ac_prog$ac_exec_ext"; then
6353 if test $ac_prog = install &&
6354 grep dspmsg "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
6355 # AIX install. It has an incompatible calling convention.
6357 elif test $ac_prog = install &&
6358 grep pwplus "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
6359 # program-specific install script used by HP pwplus--don't use.
6362 ac_cv_path_install="$as_dir/$ac_prog$ac_exec_ext -c"
6374 if test "${ac_cv_path_install+set}" = set; then
6375 INSTALL=$ac_cv_path_install
6377 # As a last resort, use the slow shell script. We don't cache a
6378 # path for INSTALL within a source directory, because that will
6379 # break other packages using the cache if that directory is
6380 # removed, or if the path is relative.
6381 INSTALL=$ac_install_sh
6384 echo "$as_me:$LINENO: result: $INSTALL" >&5
6385 echo "${ECHO_T}$INSTALL" >&6
6387 # Use test -z because SunOS4 sh mishandles braces in ${var-val}.
6388 # It thinks the first close brace ends the variable substitution.
6389 test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}'
6391 test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL}'
6393 test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644'
6395 echo "$as_me:$LINENO: checking whether build environment is sane" >&5
6396 echo $ECHO_N "checking whether build environment is sane... $ECHO_C" >&6
6399 echo timestamp > conftest.file
6400 # Do `set' in a subshell so we don't clobber the current shell's
6401 # arguments. Must try -L first in case configure is actually a
6402 # symlink; some systems play weird games with the mod time of symlinks
6403 # (eg FreeBSD returns the mod time of the symlink's containing
6406 set X `ls -Lt $srcdir/configure conftest.file 2> /dev/null`
6407 if test "$*" = "X"; then
6409 set X `ls -t $srcdir/configure conftest.file`
6412 if test "$*" != "X $srcdir/configure conftest.file" \
6413 && test "$*" != "X conftest.file $srcdir/configure"; then
6415 # If neither matched, then we have a broken ls. This can happen
6416 # if, for instance, CONFIG_SHELL is bash and it inherits a
6417 # broken ls alias from the environment. This has actually
6418 # happened. Such a system could not be considered "sane".
6419 { { echo "$as_me:$LINENO: error: ls -t appears to fail. Make sure there is not a broken
6420 alias in your environment" >&5
6421 echo "$as_me: error: ls -t appears to fail. Make sure there is not a broken
6422 alias in your environment" >&2;}
6423 { (exit 1); exit 1; }; }
6426 test "$2" = conftest.file
6432 { { echo "$as_me:$LINENO: error: newly created file is older than distributed files!
6433 Check your system clock" >&5
6434 echo "$as_me: error: newly created file is older than distributed files!
6435 Check your system clock" >&2;}
6436 { (exit 1); exit 1; }; }
6438 echo "$as_me:$LINENO: result: yes" >&5
6439 echo "${ECHO_T}yes" >&6
6440 test "$program_prefix" != NONE &&
6441 program_transform_name="s,^,$program_prefix,;$program_transform_name"
6442 # Use a double $ so make ignores it.
6443 test "$program_suffix" != NONE &&
6444 program_transform_name="s,\$,$program_suffix,;$program_transform_name"
6445 # Double any \ or $. echo might interpret backslashes.
6446 # By default was `s,x,x', remove it if useless.
6447 cat <<\_ACEOF >conftest.sed
6448 s/[\\$]/&&/g;s/;s,x,x,$//
6450 program_transform_name=`echo $program_transform_name | sed -f conftest.sed`
6453 # expand $ac_aux_dir to an absolute path
6454 am_aux_dir=`cd $ac_aux_dir && pwd`
6456 test x"${MISSING+set}" = xset || MISSING="\${SHELL} $am_aux_dir/missing"
6457 # Use eval to expand $SHELL
6458 if eval "$MISSING --run true"; then
6459 am_missing_run="$MISSING --run "
6462 { echo "$as_me:$LINENO: WARNING: \`missing' script is too old or missing" >&5
6463 echo "$as_me: WARNING: \`missing' script is too old or missing" >&2;}
6466 if mkdir -p --version . >/dev/null 2>&1 && test ! -d ./--version; then
6467 # We used to keeping the `.' as first argument, in order to
6468 # allow $(mkdir_p) to be used without argument. As in
6469 # $(mkdir_p) $(somedir)
6470 # where $(somedir) is conditionally defined. However this is wrong
6472 # 1. if the package is installed by a user who cannot write `.'
6473 # make install will fail,
6474 # 2. the above comment should most certainly read
6475 # $(mkdir_p) $(DESTDIR)$(somedir)
6476 # so it does not work when $(somedir) is undefined and
6477 # $(DESTDIR) is not.
6478 # To support the latter case, we have to write
6479 # test -z "$(somedir)" || $(mkdir_p) $(DESTDIR)$(somedir),
6480 # so the `.' trick is pointless.
6481 mkdir_p='mkdir -p --'
6483 # On NextStep and OpenStep, the `mkdir' command does not
6484 # recognize any option. It will interpret all options as
6485 # directories to create, and then abort because `.' already
6487 for d in ./-p ./--version;
6489 test -d $d && rmdir $d
6491 # $(mkinstalldirs) is defined by Automake if mkinstalldirs exists.
6492 if test -f "$ac_aux_dir/mkinstalldirs"; then
6493 mkdir_p='$(mkinstalldirs)'
6495 mkdir_p='$(install_sh) -d'
6499 for ac_prog in gawk mawk nawk awk
6501 # Extract the first word of "$ac_prog", so it can be a program name with args.
6502 set dummy $ac_prog; ac_word=$2
6503 echo "$as_me:$LINENO: checking for $ac_word" >&5
6504 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
6505 if test "${ac_cv_prog_AWK+set}" = set; then
6506 echo $ECHO_N "(cached) $ECHO_C" >&6
6508 if test -n "$AWK"; then
6509 ac_cv_prog_AWK="$AWK" # Let the user override the test.
6511 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6515 test -z "$as_dir" && as_dir=.
6516 for ac_exec_ext in '' $ac_executable_extensions; do
6517 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
6518 ac_cv_prog_AWK="$ac_prog"
6519 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6528 if test -n "$AWK"; then
6529 echo "$as_me:$LINENO: result: $AWK" >&5
6530 echo "${ECHO_T}$AWK" >&6
6532 echo "$as_me:$LINENO: result: no" >&5
6533 echo "${ECHO_T}no" >&6
6536 test -n "$AWK" && break
6539 echo "$as_me:$LINENO: checking whether ${MAKE-make} sets \$(MAKE)" >&5
6540 echo $ECHO_N "checking whether ${MAKE-make} sets \$(MAKE)... $ECHO_C" >&6
6541 set dummy ${MAKE-make}; ac_make=`echo "$2" | sed 'y,:./+-,___p_,'`
6542 if eval "test \"\${ac_cv_prog_make_${ac_make}_set+set}\" = set"; then
6543 echo $ECHO_N "(cached) $ECHO_C" >&6
6545 cat >conftest.make <<\_ACEOF
6547 @echo 'ac_maketemp="$(MAKE)"'
6549 # GNU make sometimes prints "make[1]: Entering...", which would confuse us.
6550 eval `${MAKE-make} -f conftest.make 2>/dev/null | grep temp=`
6551 if test -n "$ac_maketemp"; then
6552 eval ac_cv_prog_make_${ac_make}_set=yes
6554 eval ac_cv_prog_make_${ac_make}_set=no
6558 if eval "test \"`echo '$ac_cv_prog_make_'${ac_make}_set`\" = yes"; then
6559 echo "$as_me:$LINENO: result: yes" >&5
6560 echo "${ECHO_T}yes" >&6
6563 echo "$as_me:$LINENO: result: no" >&5
6564 echo "${ECHO_T}no" >&6
6565 SET_MAKE="MAKE=${MAKE-make}"
6568 rm -rf .tst 2>/dev/null
6569 mkdir .tst 2>/dev/null
6570 if test -d .tst; then
6575 rmdir .tst 2>/dev/null
6577 DEPDIR="${am__leading_dot}deps"
6579 ac_config_commands="$ac_config_commands depfiles"
6582 am_make=${MAKE-make}
6583 cat > confinc << 'END'
6588 # If we don't find an include directive, just comment out the code.
6589 echo "$as_me:$LINENO: checking for style of include used by $am_make" >&5
6590 echo $ECHO_N "checking for style of include used by $am_make... $ECHO_C" >&6
6594 # First try GNU make style include.
6595 echo "include confinc" > confmf
6596 # We grep out `Entering directory' and `Leaving directory'
6597 # messages which can occur if `w' ends up in MAKEFLAGS.
6598 # In particular we don't look at `^make:' because GNU make might
6599 # be invoked under some other name (usually "gmake"), in which
6600 # case it prints its new name instead of `make'.
6601 if test "`$am_make -s -f confmf 2> /dev/null | grep -v 'ing directory'`" = "done"; then
6606 # Now try BSD make style include.
6607 if test "$am__include" = "#"; then
6608 echo '.include "confinc"' > confmf
6609 if test "`$am_make -s -f confmf 2> /dev/null`" = "done"; then
6610 am__include=.include
6617 echo "$as_me:$LINENO: result: $_am_result" >&5
6618 echo "${ECHO_T}$_am_result" >&6
6619 rm -f confinc confmf
6621 # Check whether --enable-dependency-tracking or --disable-dependency-tracking was given.
6622 if test "${enable_dependency_tracking+set}" = set; then
6623 enableval="$enable_dependency_tracking"
6626 if test "x$enable_dependency_tracking" != xno; then
6627 am_depcomp="$ac_aux_dir/depcomp"
6632 if test "x$enable_dependency_tracking" != xno; then
6642 # test to see if srcdir already configured
6643 if test "`cd $srcdir && pwd`" != "`pwd`" &&
6644 test -f $srcdir/config.status; then
6645 { { echo "$as_me:$LINENO: error: source directory already configured; run \"make distclean\" there first" >&5
6646 echo "$as_me: error: source directory already configured; run \"make distclean\" there first" >&2;}
6647 { (exit 1); exit 1; }; }
6650 # test whether we have cygpath
6651 if test -z "$CYGPATH_W"; then
6652 if (cygpath --version) >/dev/null 2>/dev/null; then
6653 CYGPATH_W='cygpath -w'
6660 # Define the identity of the package.
6662 VERSION=UNUSED-VERSION
6665 # Some tools Automake needs.
6667 ACLOCAL=${ACLOCAL-"${am_missing_run}aclocal-${am__api_version}"}
6670 AUTOCONF=${AUTOCONF-"${am_missing_run}autoconf"}
6673 AUTOMAKE=${AUTOMAKE-"${am_missing_run}automake-${am__api_version}"}
6676 AUTOHEADER=${AUTOHEADER-"${am_missing_run}autoheader"}
6679 MAKEINFO=${MAKEINFO-"${am_missing_run}makeinfo"}
6681 install_sh=${install_sh-"$am_aux_dir/install-sh"}
6683 # Installed binaries are usually stripped using `strip' when the user
6684 # run `make install-strip'. However `strip' might not be the right
6685 # tool to use in cross-compilation environments, therefore Automake
6686 # will honor the `STRIP' environment variable to overrule this program.
6687 if test "$cross_compiling" != no; then
6688 if test -n "$ac_tool_prefix"; then
6689 # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args.
6690 set dummy ${ac_tool_prefix}strip; ac_word=$2
6691 echo "$as_me:$LINENO: checking for $ac_word" >&5
6692 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
6693 if test "${ac_cv_prog_STRIP+set}" = set; then
6694 echo $ECHO_N "(cached) $ECHO_C" >&6
6696 if test -n "$STRIP"; then
6697 ac_cv_prog_STRIP="$STRIP" # Let the user override the test.
6699 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6703 test -z "$as_dir" && as_dir=.
6704 for ac_exec_ext in '' $ac_executable_extensions; do
6705 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
6706 ac_cv_prog_STRIP="${ac_tool_prefix}strip"
6707 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6715 STRIP=$ac_cv_prog_STRIP
6716 if test -n "$STRIP"; then
6717 echo "$as_me:$LINENO: result: $STRIP" >&5
6718 echo "${ECHO_T}$STRIP" >&6
6720 echo "$as_me:$LINENO: result: no" >&5
6721 echo "${ECHO_T}no" >&6
6725 if test -z "$ac_cv_prog_STRIP"; then
6727 # Extract the first word of "strip", so it can be a program name with args.
6728 set dummy strip; ac_word=$2
6729 echo "$as_me:$LINENO: checking for $ac_word" >&5
6730 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
6731 if test "${ac_cv_prog_ac_ct_STRIP+set}" = set; then
6732 echo $ECHO_N "(cached) $ECHO_C" >&6
6734 if test -n "$ac_ct_STRIP"; then
6735 ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test.
6737 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6741 test -z "$as_dir" && as_dir=.
6742 for ac_exec_ext in '' $ac_executable_extensions; do
6743 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
6744 ac_cv_prog_ac_ct_STRIP="strip"
6745 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6751 test -z "$ac_cv_prog_ac_ct_STRIP" && ac_cv_prog_ac_ct_STRIP=":"
6754 ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP
6755 if test -n "$ac_ct_STRIP"; then
6756 echo "$as_me:$LINENO: result: $ac_ct_STRIP" >&5
6757 echo "${ECHO_T}$ac_ct_STRIP" >&6
6759 echo "$as_me:$LINENO: result: no" >&5
6760 echo "${ECHO_T}no" >&6
6765 STRIP="$ac_cv_prog_STRIP"
6769 INSTALL_STRIP_PROGRAM="\${SHELL} \$(install_sh) -c -s"
6771 # We need awk for the "check" target. The system "awk" is bad on
6773 # Always define AMTAR for backward compatibility.
6775 AMTAR=${AMTAR-"${am_missing_run}tar"}
6777 am__tar='${AMTAR} chof - "$$tardir"'; am__untar='${AMTAR} xf -'
6782 depcc="$CC" am_compiler_list=
6784 echo "$as_me:$LINENO: checking dependency style of $depcc" >&5
6785 echo $ECHO_N "checking dependency style of $depcc... $ECHO_C" >&6
6786 if test "${am_cv_CC_dependencies_compiler_type+set}" = set; then
6787 echo $ECHO_N "(cached) $ECHO_C" >&6
6789 if test -z "$AMDEP_TRUE" && test -f "$am_depcomp"; then
6790 # We make a subdir and do the tests there. Otherwise we can end up
6791 # making bogus files that we don't know about and never remove. For
6792 # instance it was reported that on HP-UX the gcc test will end up
6793 # making a dummy file named `D' -- because `-MD' means `put the output
6796 # Copy depcomp to subdir because otherwise we won't find it if we're
6797 # using a relative directory.
6798 cp "$am_depcomp" conftest.dir
6800 # We will build objects and dependencies in a subdirectory because
6801 # it helps to detect inapplicable dependency modes. For instance
6802 # both Tru64's cc and ICC support -MD to output dependencies as a
6803 # side effect of compilation, but ICC will put the dependencies in
6804 # the current directory while Tru64 will put them in the object
6808 am_cv_CC_dependencies_compiler_type=none
6809 if test "$am_compiler_list" = ""; then
6810 am_compiler_list=`sed -n 's/^#*\([a-zA-Z0-9]*\))$/\1/p' < ./depcomp`
6812 for depmode in $am_compiler_list; do
6813 # Setup a source with many dependencies, because some compilers
6814 # like to wrap large dependency lists on column 80 (with \), and
6815 # we should not choose a depcomp mode which is confused by this.
6817 # We need to recreate these files for each test, as the compiler may
6818 # overwrite some of them when testing with obscure command lines.
6819 # This happens at least with the AIX C compiler.
6821 for i in 1 2 3 4 5 6; do
6822 echo '#include "conftst'$i'.h"' >> sub/conftest.c
6823 # Using `: > sub/conftst$i.h' creates only sub/conftst1.h with
6824 # Solaris 8's {/usr,}/bin/sh.
6825 touch sub/conftst$i.h
6827 echo "${am__include} ${am__quote}sub/conftest.Po${am__quote}" > confmf
6831 # after this tag, mechanisms are not by side-effect, so they'll
6832 # only be used when explicitly requested
6833 if test "x$enable_dependency_tracking" = xyes; then
6841 # We check with `-c' and `-o' for the sake of the "dashmstdout"
6842 # mode. It turns out that the SunPro C++ compiler does not properly
6843 # handle `-M -o', and we need to detect this.
6844 if depmode=$depmode \
6845 source=sub/conftest.c object=sub/conftest.${OBJEXT-o} \
6846 depfile=sub/conftest.Po tmpdepfile=sub/conftest.TPo \
6847 $SHELL ./depcomp $depcc -c -o sub/conftest.${OBJEXT-o} sub/conftest.c \
6848 >/dev/null 2>conftest.err &&
6849 grep sub/conftst6.h sub/conftest.Po > /dev/null 2>&1 &&
6850 grep sub/conftest.${OBJEXT-o} sub/conftest.Po > /dev/null 2>&1 &&
6851 ${MAKE-make} -s -f confmf > /dev/null 2>&1; then
6852 # icc doesn't choke on unknown options, it will just issue warnings
6853 # or remarks (even with -Werror). So we grep stderr for any message
6854 # that says an option was ignored or not supported.
6855 # When given -MP, icc 7.0 and 7.1 complain thusly:
6856 # icc: Command line warning: ignoring option '-M'; no argument required
6857 # The diagnosis changed in icc 8.0:
6858 # icc: Command line remark: option '-MP' not supported
6859 if (grep 'ignoring option' conftest.err ||
6860 grep 'not supported' conftest.err) >/dev/null 2>&1; then :; else
6861 am_cv_CC_dependencies_compiler_type=$depmode
6870 am_cv_CC_dependencies_compiler_type=none
6874 echo "$as_me:$LINENO: result: $am_cv_CC_dependencies_compiler_type" >&5
6875 echo "${ECHO_T}$am_cv_CC_dependencies_compiler_type" >&6
6876 CCDEPMODE=depmode=$am_cv_CC_dependencies_compiler_type
6881 test "x$enable_dependency_tracking" != xno \
6882 && test "$am_cv_CC_dependencies_compiler_type" = gcc3; then
6884 am__fastdepCC_FALSE='#'
6886 am__fastdepCC_TRUE='#'
6887 am__fastdepCC_FALSE=
6893 debugdir=${libdir}/debug
6896 # Check whether --with-separate-debug-dir or --without-separate-debug-dir was given.
6897 if test "${with_separate_debug_dir+set}" = set; then
6898 withval="$with_separate_debug_dir"
6899 debugdir="${withval}"
6903 test "x$prefix" = xNONE && prefix="$ac_default_prefix"
6904 test "x$exec_prefix" = xNONE && exec_prefix='${prefix}'
6905 ac_define_dir=`eval echo $debugdir`
6906 ac_define_dir=`eval echo $ac_define_dir`
6908 cat >>confdefs.h <<_ACEOF
6909 #define DEBUGDIR "$ac_define_dir"
6913 #AC_DEFINE_UNQUOTED(DEBUGDIR, "$debugdir"),
6915 if test "x$exec_prefix" = xNONE || test "x$exec_prefix" = 'x${prefix}'; then
6916 if test "x$prefix" = xNONE; then
6917 test_prefix=/usr/local
6922 test_prefix=$exec_prefix
6925 "${test_prefix}"|"${test_prefix}/"*|\
6926 '${exec_prefix}'|'${exec_prefix}/'*)
6928 cat >>confdefs.h <<\_ACEOF
6929 #define DEBUGDIR_RELOCATABLE 1
6937 subdirs="$subdirs doc testsuite"
6940 # Check whether to support alternative target configurations
6941 # Check whether --enable-targets or --disable-targets was given.
6942 if test "${enable_targets+set}" = set; then
6943 enableval="$enable_targets"
6944 case "${enableval}" in
6945 yes | "") { { echo "$as_me:$LINENO: error: enable-targets option must specify target names or 'all'" >&5
6946 echo "$as_me: error: enable-targets option must specify target names or 'all'" >&2;}
6947 { (exit 1); exit 1; }; }
6949 no) enable_targets= ;;
6950 *) enable_targets=$enableval ;;
6954 # Check whether to enable 64-bit support on 32-bit hosts
6955 # Check whether --enable-64-bit-bfd or --disable-64-bit-bfd was given.
6956 if test "${enable_64_bit_bfd+set}" = set; then
6957 enableval="$enable_64_bit_bfd"
6958 case "${enableval}" in
6961 *) { { echo "$as_me:$LINENO: error: bad value ${enableval} for 64-bit-bfd option" >&5
6962 echo "$as_me: error: bad value ${enableval} for 64-bit-bfd option" >&2;}
6963 { (exit 1); exit 1; }; } ;;
6968 # Provide defaults for some variables set by the per-host and per-target
6970 gdb_host_obs=posix-hdep.o
6972 if test "${target}" = "${host}"; then
6978 . $srcdir/configure.host
6980 # Accumulate some settings from configure.tgt over all enabled targets
6985 for targ_alias in `echo $target_alias $enable_targets | sed 's/,/ /g'`
6987 if test "$targ_alias" = "all"; then
6990 # Canonicalize the secondary target names.
6991 result=`$ac_config_sub $targ_alias 2>/dev/null`
6992 if test -n "$result"; then
6998 . ${srcdir}/configure.tgt
7000 # Target-specific object files
7001 for i in ${gdb_target_obs}; do
7002 case " $TARGET_OBS " in
7005 TARGET_OBS="$TARGET_OBS ${i}"
7010 # Check whether this target needs 64-bit CORE_ADDR
7011 if test x${want64} = xfalse; then
7012 . ${srcdir}/../bfd/config.bfd
7017 if test x${all_targets} = xtrue; then
7019 # We want all 64-bit targets if we either:
7020 # - run on a 64-bit host or
7021 # - already require 64-bit support for some other target or
7022 # - the --enable-64-bit-bfd option was supplied
7023 # Otherwise we only support all 32-bit targets.
7025 # NOTE: This test must be in sync with the corresponding
7028 if test x${want64} = xfalse; then
7029 echo "$as_me:$LINENO: checking for long" >&5
7030 echo $ECHO_N "checking for long... $ECHO_C" >&6
7031 if test "${ac_cv_type_long+set}" = set; then
7032 echo $ECHO_N "(cached) $ECHO_C" >&6
7034 cat >conftest.$ac_ext <<_ACEOF
7037 cat confdefs.h >>conftest.$ac_ext
7038 cat >>conftest.$ac_ext <<_ACEOF
7039 /* end confdefs.h. */
7040 $ac_includes_default
7052 rm -f conftest.$ac_objext
7053 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
7054 (eval $ac_compile) 2>conftest.er1
7056 grep -v '^ *+' conftest.er1 >conftest.err
7058 cat conftest.err >&5
7059 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7060 (exit $ac_status); } &&
7061 { ac_try='test -z "$ac_c_werror_flag"
7062 || test ! -s conftest.err'
7063 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7066 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7067 (exit $ac_status); }; } &&
7068 { ac_try='test -s conftest.$ac_objext'
7069 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7072 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7073 (exit $ac_status); }; }; then
7076 echo "$as_me: failed program was:" >&5
7077 sed 's/^/| /' conftest.$ac_ext >&5
7081 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
7083 echo "$as_me:$LINENO: result: $ac_cv_type_long" >&5
7084 echo "${ECHO_T}$ac_cv_type_long" >&6
7086 echo "$as_me:$LINENO: checking size of long" >&5
7087 echo $ECHO_N "checking size of long... $ECHO_C" >&6
7088 if test "${ac_cv_sizeof_long+set}" = set; then
7089 echo $ECHO_N "(cached) $ECHO_C" >&6
7091 if test "$ac_cv_type_long" = yes; then
7092 # The cast to unsigned long works around a bug in the HP C Compiler
7093 # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
7094 # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
7095 # This bug is HP SR number 8606223364.
7096 if test "$cross_compiling" = yes; then
7097 # Depending upon the size, compute the lo and hi bounds.
7098 cat >conftest.$ac_ext <<_ACEOF
7101 cat confdefs.h >>conftest.$ac_ext
7102 cat >>conftest.$ac_ext <<_ACEOF
7103 /* end confdefs.h. */
7104 $ac_includes_default
7108 static int test_array [1 - 2 * !(((long) (sizeof (long))) >= 0)];
7115 rm -f conftest.$ac_objext
7116 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
7117 (eval $ac_compile) 2>conftest.er1
7119 grep -v '^ *+' conftest.er1 >conftest.err
7121 cat conftest.err >&5
7122 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7123 (exit $ac_status); } &&
7124 { ac_try='test -z "$ac_c_werror_flag"
7125 || test ! -s conftest.err'
7126 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7129 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7130 (exit $ac_status); }; } &&
7131 { ac_try='test -s conftest.$ac_objext'
7132 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7135 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7136 (exit $ac_status); }; }; then
7139 cat >conftest.$ac_ext <<_ACEOF
7142 cat confdefs.h >>conftest.$ac_ext
7143 cat >>conftest.$ac_ext <<_ACEOF
7144 /* end confdefs.h. */
7145 $ac_includes_default
7149 static int test_array [1 - 2 * !(((long) (sizeof (long))) <= $ac_mid)];
7156 rm -f conftest.$ac_objext
7157 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
7158 (eval $ac_compile) 2>conftest.er1
7160 grep -v '^ *+' conftest.er1 >conftest.err
7162 cat conftest.err >&5
7163 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7164 (exit $ac_status); } &&
7165 { ac_try='test -z "$ac_c_werror_flag"
7166 || test ! -s conftest.err'
7167 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7170 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7171 (exit $ac_status); }; } &&
7172 { ac_try='test -s conftest.$ac_objext'
7173 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7176 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7177 (exit $ac_status); }; }; then
7178 ac_hi=$ac_mid; break
7180 echo "$as_me: failed program was:" >&5
7181 sed 's/^/| /' conftest.$ac_ext >&5
7183 ac_lo=`expr $ac_mid + 1`
7184 if test $ac_lo -le $ac_mid; then
7188 ac_mid=`expr 2 '*' $ac_mid + 1`
7190 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
7193 echo "$as_me: failed program was:" >&5
7194 sed 's/^/| /' conftest.$ac_ext >&5
7196 cat >conftest.$ac_ext <<_ACEOF
7199 cat confdefs.h >>conftest.$ac_ext
7200 cat >>conftest.$ac_ext <<_ACEOF
7201 /* end confdefs.h. */
7202 $ac_includes_default
7206 static int test_array [1 - 2 * !(((long) (sizeof (long))) < 0)];
7213 rm -f conftest.$ac_objext
7214 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
7215 (eval $ac_compile) 2>conftest.er1
7217 grep -v '^ *+' conftest.er1 >conftest.err
7219 cat conftest.err >&5
7220 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7221 (exit $ac_status); } &&
7222 { ac_try='test -z "$ac_c_werror_flag"
7223 || test ! -s conftest.err'
7224 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7227 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7228 (exit $ac_status); }; } &&
7229 { ac_try='test -s conftest.$ac_objext'
7230 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7233 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7234 (exit $ac_status); }; }; then
7237 cat >conftest.$ac_ext <<_ACEOF
7240 cat confdefs.h >>conftest.$ac_ext
7241 cat >>conftest.$ac_ext <<_ACEOF
7242 /* end confdefs.h. */
7243 $ac_includes_default
7247 static int test_array [1 - 2 * !(((long) (sizeof (long))) >= $ac_mid)];
7254 rm -f conftest.$ac_objext
7255 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
7256 (eval $ac_compile) 2>conftest.er1
7258 grep -v '^ *+' conftest.er1 >conftest.err
7260 cat conftest.err >&5
7261 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7262 (exit $ac_status); } &&
7263 { ac_try='test -z "$ac_c_werror_flag"
7264 || test ! -s conftest.err'
7265 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7268 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7269 (exit $ac_status); }; } &&
7270 { ac_try='test -s conftest.$ac_objext'
7271 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7274 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7275 (exit $ac_status); }; }; then
7276 ac_lo=$ac_mid; break
7278 echo "$as_me: failed program was:" >&5
7279 sed 's/^/| /' conftest.$ac_ext >&5
7281 ac_hi=`expr '(' $ac_mid ')' - 1`
7282 if test $ac_mid -le $ac_hi; then
7286 ac_mid=`expr 2 '*' $ac_mid`
7288 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
7291 echo "$as_me: failed program was:" >&5
7292 sed 's/^/| /' conftest.$ac_ext >&5
7296 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
7298 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
7299 # Binary search between lo and hi bounds.
7300 while test "x$ac_lo" != "x$ac_hi"; do
7301 ac_mid=`expr '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo`
7302 cat >conftest.$ac_ext <<_ACEOF
7305 cat confdefs.h >>conftest.$ac_ext
7306 cat >>conftest.$ac_ext <<_ACEOF
7307 /* end confdefs.h. */
7308 $ac_includes_default
7312 static int test_array [1 - 2 * !(((long) (sizeof (long))) <= $ac_mid)];
7319 rm -f conftest.$ac_objext
7320 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
7321 (eval $ac_compile) 2>conftest.er1
7323 grep -v '^ *+' conftest.er1 >conftest.err
7325 cat conftest.err >&5
7326 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7327 (exit $ac_status); } &&
7328 { ac_try='test -z "$ac_c_werror_flag"
7329 || test ! -s conftest.err'
7330 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7333 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7334 (exit $ac_status); }; } &&
7335 { ac_try='test -s conftest.$ac_objext'
7336 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7339 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7340 (exit $ac_status); }; }; then
7343 echo "$as_me: failed program was:" >&5
7344 sed 's/^/| /' conftest.$ac_ext >&5
7346 ac_lo=`expr '(' $ac_mid ')' + 1`
7348 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
7351 ?*) ac_cv_sizeof_long=$ac_lo;;
7352 '') { { echo "$as_me:$LINENO: error: cannot compute sizeof (long), 77
7353 See \`config.log' for more details." >&5
7354 echo "$as_me: error: cannot compute sizeof (long), 77
7355 See \`config.log' for more details." >&2;}
7356 { (exit 1); exit 1; }; } ;;
7359 if test "$cross_compiling" = yes; then
7360 { { echo "$as_me:$LINENO: error: cannot run test program while cross compiling
7361 See \`config.log' for more details." >&5
7362 echo "$as_me: error: cannot run test program while cross compiling
7363 See \`config.log' for more details." >&2;}
7364 { (exit 1); exit 1; }; }
7366 cat >conftest.$ac_ext <<_ACEOF
7369 cat confdefs.h >>conftest.$ac_ext
7370 cat >>conftest.$ac_ext <<_ACEOF
7371 /* end confdefs.h. */
7372 $ac_includes_default
7373 long longval () { return (long) (sizeof (long)); }
7374 unsigned long ulongval () { return (long) (sizeof (long)); }
7381 FILE *f = fopen ("conftest.val", "w");
7384 if (((long) (sizeof (long))) < 0)
7386 long i = longval ();
7387 if (i != ((long) (sizeof (long))))
7389 fprintf (f, "%ld\n", i);
7393 unsigned long i = ulongval ();
7394 if (i != ((long) (sizeof (long))))
7396 fprintf (f, "%lu\n", i);
7398 exit (ferror (f) || fclose (f) != 0);
7404 rm -f conftest$ac_exeext
7405 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
7406 (eval $ac_link) 2>&5
7408 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7409 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
7410 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7413 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7414 (exit $ac_status); }; }; then
7415 ac_cv_sizeof_long=`cat conftest.val`
7417 echo "$as_me: program exited with status $ac_status" >&5
7418 echo "$as_me: failed program was:" >&5
7419 sed 's/^/| /' conftest.$ac_ext >&5
7422 { { echo "$as_me:$LINENO: error: cannot compute sizeof (long), 77
7423 See \`config.log' for more details." >&5
7424 echo "$as_me: error: cannot compute sizeof (long), 77
7425 See \`config.log' for more details." >&2;}
7426 { (exit 1); exit 1; }; }
7428 rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
7436 echo "$as_me:$LINENO: result: $ac_cv_sizeof_long" >&5
7437 echo "${ECHO_T}$ac_cv_sizeof_long" >&6
7438 cat >>confdefs.h <<_ACEOF
7439 #define SIZEOF_LONG $ac_cv_sizeof_long
7443 if test "x${ac_cv_sizeof_long}" = "x8"; then
7447 if test x${want64} = xtrue; then
7448 TARGET_OBS='$(ALL_TARGET_OBS) $(ALL_64_TARGET_OBS)'
7450 TARGET_OBS='$(ALL_TARGET_OBS)'
7456 # For other settings, only the main target counts.
7460 targ=$target; . ${srcdir}/configure.tgt
7462 # Fetch the default architecture and default target vector from BFD.
7463 targ=$target; . $srcdir/../bfd/config.bfd
7465 # We only want the first architecture, so strip off the others if
7466 # there is more than one.
7467 targ_archs=`echo $targ_archs | sed 's/ .*//'`
7469 if test "x$targ_archs" != x; then
7471 cat >>confdefs.h <<_ACEOF
7472 #define DEFAULT_BFD_ARCH $targ_archs
7476 if test "x$targ_defvec" != x; then
7478 cat >>confdefs.h <<_ACEOF
7479 #define DEFAULT_BFD_VEC $targ_defvec
7484 # The CLI cannot be disabled yet, but may be in the future.
7487 # Check whether --enable-gdbcli or --disable-gdbcli was given.
7488 if test "${enable_gdbcli+set}" = set; then
7489 enableval="$enable_gdbcli"
7494 { { echo "$as_me:$LINENO: error: the command-line interface cannot be disabled yet" >&5
7495 echo "$as_me: error: the command-line interface cannot be disabled yet" >&2;}
7496 { (exit 1); exit 1; }; } ;;
7498 { { echo "$as_me:$LINENO: error: bad value $enableval for --enable-gdbcli" >&5
7499 echo "$as_me: error: bad value $enableval for --enable-gdbcli" >&2;}
7500 { (exit 1); exit 1; }; } ;;
7505 if test x"$enable_gdbcli" = xyes; then
7506 if test -d $srcdir/cli; then
7507 CONFIG_OBS="$CONFIG_OBS \$(SUBDIR_CLI_OBS)"
7508 CONFIG_DEPS="$CONFIG_DEPS \$(SUBDIR_CLI_DEPS)"
7509 CONFIG_SRCS="$CONFIG_SRCS \$(SUBDIR_CLI_SRCS)"
7510 ENABLE_CFLAGS="$ENABLE_CFLAGS \$(SUBDIR_CLI_CFLAGS)"
7515 # Check whether --enable-gdbmi or --disable-gdbmi was given.
7516 if test "${enable_gdbmi+set}" = set; then
7517 enableval="$enable_gdbmi"
7522 { { echo "$as_me:$LINENO: error: bad value $enableval for --enable-gdbmi" >&5
7523 echo "$as_me: error: bad value $enableval for --enable-gdbmi" >&2;}
7524 { (exit 1); exit 1; }; } ;;
7529 if test x"$enable_gdbmi" = xyes; then
7530 if test -d $srcdir/mi; then
7531 CONFIG_OBS="$CONFIG_OBS \$(SUBDIR_MI_OBS)"
7532 CONFIG_DEPS="$CONFIG_DEPS \$(SUBDIR_MI_DEPS)"
7533 CONFIG_SRCS="$CONFIG_SRCS \$(SUBDIR_MI_SRCS)"
7534 ENABLE_CFLAGS="$ENABLE_CFLAGS \$(SUBDIR_MI_CFLAGS)"
7539 # Check whether --enable-tui or --disable-tui was given.
7540 if test "${enable_tui+set}" = set; then
7541 enableval="$enable_tui"
7546 { { echo "$as_me:$LINENO: error: bad value $enableval for --enable-tui" >&5
7547 echo "$as_me: error: bad value $enableval for --enable-tui" >&2;}
7548 { (exit 1); exit 1; }; } ;;
7555 # Check whether --enable-gdbtk or --disable-gdbtk was given.
7556 if test "${enable_gdbtk+set}" = set; then
7557 enableval="$enable_gdbtk"
7562 { { echo "$as_me:$LINENO: error: bad value $enableval for --enable-gdbtk" >&5
7563 echo "$as_me: error: bad value $enableval for --enable-gdbtk" >&2;}
7564 { (exit 1); exit 1; }; } ;;
7567 if test -d $srcdir/gdbtk -a -d $srcdir/../itcl; then
7573 # We unconditionally disable gdbtk tests on selected platforms.
7576 { echo "$as_me:$LINENO: WARNING: gdbtk isn't supported on $host; disabling" >&5
7577 echo "$as_me: WARNING: gdbtk isn't supported on $host; disabling" >&2;}
7581 # Libunwind support.
7583 # Check whether --with-libunwind or --without-libunwind was given.
7584 if test "${with_libunwind+set}" = set; then
7585 withval="$with_libunwind"
7586 case "${withval}" in
7587 yes) enable_libunwind=yes ;;
7588 no) enable_libunwind=no ;;
7589 *) { { echo "$as_me:$LINENO: error: bad value ${withval} for GDB with-libunwind option" >&5
7590 echo "$as_me: error: bad value ${withval} for GDB with-libunwind option" >&2;}
7591 { (exit 1); exit 1; }; } ;;
7596 for ac_header in libunwind.h
7598 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
7599 if eval "test \"\${$as_ac_Header+set}\" = set"; then
7600 echo "$as_me:$LINENO: checking for $ac_header" >&5
7601 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
7602 if eval "test \"\${$as_ac_Header+set}\" = set"; then
7603 echo $ECHO_N "(cached) $ECHO_C" >&6
7605 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
7606 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
7608 # Is the header compilable?
7609 echo "$as_me:$LINENO: checking $ac_header usability" >&5
7610 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
7611 cat >conftest.$ac_ext <<_ACEOF
7614 cat confdefs.h >>conftest.$ac_ext
7615 cat >>conftest.$ac_ext <<_ACEOF
7616 /* end confdefs.h. */
7617 $ac_includes_default
7618 #include <$ac_header>
7620 rm -f conftest.$ac_objext
7621 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
7622 (eval $ac_compile) 2>conftest.er1
7624 grep -v '^ *+' conftest.er1 >conftest.err
7626 cat conftest.err >&5
7627 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7628 (exit $ac_status); } &&
7629 { ac_try='test -z "$ac_c_werror_flag"
7630 || test ! -s conftest.err'
7631 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7634 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7635 (exit $ac_status); }; } &&
7636 { ac_try='test -s conftest.$ac_objext'
7637 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7640 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7641 (exit $ac_status); }; }; then
7642 ac_header_compiler=yes
7644 echo "$as_me: failed program was:" >&5
7645 sed 's/^/| /' conftest.$ac_ext >&5
7647 ac_header_compiler=no
7649 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
7650 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
7651 echo "${ECHO_T}$ac_header_compiler" >&6
7653 # Is the header present?
7654 echo "$as_me:$LINENO: checking $ac_header presence" >&5
7655 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
7656 cat >conftest.$ac_ext <<_ACEOF
7659 cat confdefs.h >>conftest.$ac_ext
7660 cat >>conftest.$ac_ext <<_ACEOF
7661 /* end confdefs.h. */
7662 #include <$ac_header>
7664 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
7665 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
7667 grep -v '^ *+' conftest.er1 >conftest.err
7669 cat conftest.err >&5
7670 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7671 (exit $ac_status); } >/dev/null; then
7672 if test -s conftest.err; then
7673 ac_cpp_err=$ac_c_preproc_warn_flag
7674 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
7681 if test -z "$ac_cpp_err"; then
7682 ac_header_preproc=yes
7684 echo "$as_me: failed program was:" >&5
7685 sed 's/^/| /' conftest.$ac_ext >&5
7687 ac_header_preproc=no
7689 rm -f conftest.err conftest.$ac_ext
7690 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
7691 echo "${ECHO_T}$ac_header_preproc" >&6
7693 # So? What about this header?
7694 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
7696 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
7697 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
7698 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
7699 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
7700 ac_header_preproc=yes
7703 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
7704 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
7705 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
7706 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
7707 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
7708 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
7709 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
7710 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
7711 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
7712 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
7713 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
7714 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
7717 ## ------------------------------------------ ##
7718 ## Report this to the AC_PACKAGE_NAME lists. ##
7719 ## ------------------------------------------ ##
7722 sed "s/^/$as_me: WARNING: /" >&2
7725 echo "$as_me:$LINENO: checking for $ac_header" >&5
7726 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
7727 if eval "test \"\${$as_ac_Header+set}\" = set"; then
7728 echo $ECHO_N "(cached) $ECHO_C" >&6
7730 eval "$as_ac_Header=\$ac_header_preproc"
7732 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
7733 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
7736 if test `eval echo '${'$as_ac_Header'}'` = yes; then
7737 cat >>confdefs.h <<_ACEOF
7738 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
7746 for ac_header in libunwind-ia64.h
7748 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
7749 if eval "test \"\${$as_ac_Header+set}\" = set"; then
7750 echo "$as_me:$LINENO: checking for $ac_header" >&5
7751 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
7752 if eval "test \"\${$as_ac_Header+set}\" = set"; then
7753 echo $ECHO_N "(cached) $ECHO_C" >&6
7755 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
7756 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
7758 # Is the header compilable?
7759 echo "$as_me:$LINENO: checking $ac_header usability" >&5
7760 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
7761 cat >conftest.$ac_ext <<_ACEOF
7764 cat confdefs.h >>conftest.$ac_ext
7765 cat >>conftest.$ac_ext <<_ACEOF
7766 /* end confdefs.h. */
7767 $ac_includes_default
7768 #include <$ac_header>
7770 rm -f conftest.$ac_objext
7771 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
7772 (eval $ac_compile) 2>conftest.er1
7774 grep -v '^ *+' conftest.er1 >conftest.err
7776 cat conftest.err >&5
7777 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7778 (exit $ac_status); } &&
7779 { ac_try='test -z "$ac_c_werror_flag"
7780 || test ! -s conftest.err'
7781 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7784 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7785 (exit $ac_status); }; } &&
7786 { ac_try='test -s conftest.$ac_objext'
7787 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7790 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7791 (exit $ac_status); }; }; then
7792 ac_header_compiler=yes
7794 echo "$as_me: failed program was:" >&5
7795 sed 's/^/| /' conftest.$ac_ext >&5
7797 ac_header_compiler=no
7799 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
7800 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
7801 echo "${ECHO_T}$ac_header_compiler" >&6
7803 # Is the header present?
7804 echo "$as_me:$LINENO: checking $ac_header presence" >&5
7805 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
7806 cat >conftest.$ac_ext <<_ACEOF
7809 cat confdefs.h >>conftest.$ac_ext
7810 cat >>conftest.$ac_ext <<_ACEOF
7811 /* end confdefs.h. */
7812 #include <$ac_header>
7814 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
7815 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
7817 grep -v '^ *+' conftest.er1 >conftest.err
7819 cat conftest.err >&5
7820 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7821 (exit $ac_status); } >/dev/null; then
7822 if test -s conftest.err; then
7823 ac_cpp_err=$ac_c_preproc_warn_flag
7824 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
7831 if test -z "$ac_cpp_err"; then
7832 ac_header_preproc=yes
7834 echo "$as_me: failed program was:" >&5
7835 sed 's/^/| /' conftest.$ac_ext >&5
7837 ac_header_preproc=no
7839 rm -f conftest.err conftest.$ac_ext
7840 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
7841 echo "${ECHO_T}$ac_header_preproc" >&6
7843 # So? What about this header?
7844 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
7846 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
7847 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
7848 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
7849 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
7850 ac_header_preproc=yes
7853 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
7854 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
7855 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
7856 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
7857 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
7858 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
7859 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
7860 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
7861 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
7862 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
7863 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
7864 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
7867 ## ------------------------------------------ ##
7868 ## Report this to the AC_PACKAGE_NAME lists. ##
7869 ## ------------------------------------------ ##
7872 sed "s/^/$as_me: WARNING: /" >&2
7875 echo "$as_me:$LINENO: checking for $ac_header" >&5
7876 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
7877 if eval "test \"\${$as_ac_Header+set}\" = set"; then
7878 echo $ECHO_N "(cached) $ECHO_C" >&6
7880 eval "$as_ac_Header=\$ac_header_preproc"
7882 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
7883 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
7886 if test `eval echo '${'$as_ac_Header'}'` = yes; then
7887 cat >>confdefs.h <<_ACEOF
7888 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
7895 if test x"$ac_cv_header_libunwind_h" = xyes -a x"$ac_cv_header_libunwind_ia64_h" = xyes; then
7896 enable_libunwind=yes;
7901 if test x"$enable_libunwind" = xyes; then
7903 for ac_header in libunwind.h
7905 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
7906 if eval "test \"\${$as_ac_Header+set}\" = set"; then
7907 echo "$as_me:$LINENO: checking for $ac_header" >&5
7908 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
7909 if eval "test \"\${$as_ac_Header+set}\" = set"; then
7910 echo $ECHO_N "(cached) $ECHO_C" >&6
7912 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
7913 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
7915 # Is the header compilable?
7916 echo "$as_me:$LINENO: checking $ac_header usability" >&5
7917 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
7918 cat >conftest.$ac_ext <<_ACEOF
7921 cat confdefs.h >>conftest.$ac_ext
7922 cat >>conftest.$ac_ext <<_ACEOF
7923 /* end confdefs.h. */
7924 $ac_includes_default
7925 #include <$ac_header>
7927 rm -f conftest.$ac_objext
7928 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
7929 (eval $ac_compile) 2>conftest.er1
7931 grep -v '^ *+' conftest.er1 >conftest.err
7933 cat conftest.err >&5
7934 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7935 (exit $ac_status); } &&
7936 { ac_try='test -z "$ac_c_werror_flag"
7937 || test ! -s conftest.err'
7938 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7941 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7942 (exit $ac_status); }; } &&
7943 { ac_try='test -s conftest.$ac_objext'
7944 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7947 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7948 (exit $ac_status); }; }; then
7949 ac_header_compiler=yes
7951 echo "$as_me: failed program was:" >&5
7952 sed 's/^/| /' conftest.$ac_ext >&5
7954 ac_header_compiler=no
7956 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
7957 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
7958 echo "${ECHO_T}$ac_header_compiler" >&6
7960 # Is the header present?
7961 echo "$as_me:$LINENO: checking $ac_header presence" >&5
7962 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
7963 cat >conftest.$ac_ext <<_ACEOF
7966 cat confdefs.h >>conftest.$ac_ext
7967 cat >>conftest.$ac_ext <<_ACEOF
7968 /* end confdefs.h. */
7969 #include <$ac_header>
7971 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
7972 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
7974 grep -v '^ *+' conftest.er1 >conftest.err
7976 cat conftest.err >&5
7977 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7978 (exit $ac_status); } >/dev/null; then
7979 if test -s conftest.err; then
7980 ac_cpp_err=$ac_c_preproc_warn_flag
7981 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
7988 if test -z "$ac_cpp_err"; then
7989 ac_header_preproc=yes
7991 echo "$as_me: failed program was:" >&5
7992 sed 's/^/| /' conftest.$ac_ext >&5
7994 ac_header_preproc=no
7996 rm -f conftest.err conftest.$ac_ext
7997 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
7998 echo "${ECHO_T}$ac_header_preproc" >&6
8000 # So? What about this header?
8001 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
8003 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
8004 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
8005 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
8006 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
8007 ac_header_preproc=yes
8010 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
8011 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
8012 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
8013 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
8014 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
8015 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
8016 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
8017 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
8018 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
8019 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
8020 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
8021 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
8024 ## ------------------------------------------ ##
8025 ## Report this to the AC_PACKAGE_NAME lists. ##
8026 ## ------------------------------------------ ##
8029 sed "s/^/$as_me: WARNING: /" >&2
8032 echo "$as_me:$LINENO: checking for $ac_header" >&5
8033 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
8034 if eval "test \"\${$as_ac_Header+set}\" = set"; then
8035 echo $ECHO_N "(cached) $ECHO_C" >&6
8037 eval "$as_ac_Header=\$ac_header_preproc"
8039 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
8040 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
8043 if test `eval echo '${'$as_ac_Header'}'` = yes; then
8044 cat >>confdefs.h <<_ACEOF
8045 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
8053 for ac_header in libunwind-ia64.h
8055 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
8056 if eval "test \"\${$as_ac_Header+set}\" = set"; then
8057 echo "$as_me:$LINENO: checking for $ac_header" >&5
8058 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
8059 if eval "test \"\${$as_ac_Header+set}\" = set"; then
8060 echo $ECHO_N "(cached) $ECHO_C" >&6
8062 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
8063 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
8065 # Is the header compilable?
8066 echo "$as_me:$LINENO: checking $ac_header usability" >&5
8067 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
8068 cat >conftest.$ac_ext <<_ACEOF
8071 cat confdefs.h >>conftest.$ac_ext
8072 cat >>conftest.$ac_ext <<_ACEOF
8073 /* end confdefs.h. */
8074 $ac_includes_default
8075 #include <$ac_header>
8077 rm -f conftest.$ac_objext
8078 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
8079 (eval $ac_compile) 2>conftest.er1
8081 grep -v '^ *+' conftest.er1 >conftest.err
8083 cat conftest.err >&5
8084 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8085 (exit $ac_status); } &&
8086 { ac_try='test -z "$ac_c_werror_flag"
8087 || test ! -s conftest.err'
8088 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8091 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8092 (exit $ac_status); }; } &&
8093 { ac_try='test -s conftest.$ac_objext'
8094 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8097 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8098 (exit $ac_status); }; }; then
8099 ac_header_compiler=yes
8101 echo "$as_me: failed program was:" >&5
8102 sed 's/^/| /' conftest.$ac_ext >&5
8104 ac_header_compiler=no
8106 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
8107 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
8108 echo "${ECHO_T}$ac_header_compiler" >&6
8110 # Is the header present?
8111 echo "$as_me:$LINENO: checking $ac_header presence" >&5
8112 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
8113 cat >conftest.$ac_ext <<_ACEOF
8116 cat confdefs.h >>conftest.$ac_ext
8117 cat >>conftest.$ac_ext <<_ACEOF
8118 /* end confdefs.h. */
8119 #include <$ac_header>
8121 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
8122 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
8124 grep -v '^ *+' conftest.er1 >conftest.err
8126 cat conftest.err >&5
8127 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8128 (exit $ac_status); } >/dev/null; then
8129 if test -s conftest.err; then
8130 ac_cpp_err=$ac_c_preproc_warn_flag
8131 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
8138 if test -z "$ac_cpp_err"; then
8139 ac_header_preproc=yes
8141 echo "$as_me: failed program was:" >&5
8142 sed 's/^/| /' conftest.$ac_ext >&5
8144 ac_header_preproc=no
8146 rm -f conftest.err conftest.$ac_ext
8147 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
8148 echo "${ECHO_T}$ac_header_preproc" >&6
8150 # So? What about this header?
8151 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
8153 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
8154 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
8155 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
8156 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
8157 ac_header_preproc=yes
8160 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
8161 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
8162 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
8163 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
8164 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
8165 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
8166 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
8167 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
8168 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
8169 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
8170 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
8171 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
8174 ## ------------------------------------------ ##
8175 ## Report this to the AC_PACKAGE_NAME lists. ##
8176 ## ------------------------------------------ ##
8179 sed "s/^/$as_me: WARNING: /" >&2
8182 echo "$as_me:$LINENO: checking for $ac_header" >&5
8183 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
8184 if eval "test \"\${$as_ac_Header+set}\" = set"; then
8185 echo $ECHO_N "(cached) $ECHO_C" >&6
8187 eval "$as_ac_Header=\$ac_header_preproc"
8189 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
8190 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
8193 if test `eval echo '${'$as_ac_Header'}'` = yes; then
8194 cat >>confdefs.h <<_ACEOF
8195 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
8203 cat >>confdefs.h <<\_ACEOF
8204 #define HAVE_LIBUNWIND 1
8207 CONFIG_OBS="$CONFIG_OBS libunwind-frame.o"
8208 CONFIG_DEPS="$CONFIG_DEPS libunwind-frame.o"
8209 CONFIG_SRCS="$CONFIG_SRCS libunwind-frame.c"
8212 # Profiling support.
8213 # Check whether --enable-profiling or --disable-profiling was given.
8214 if test "${enable_profiling+set}" = set; then
8215 enableval="$enable_profiling"
8220 { { echo "$as_me:$LINENO: error: bad value $enableval for --enable-profile" >&5
8221 echo "$as_me: error: bad value $enableval for --enable-profile" >&2;}
8222 { (exit 1); exit 1; }; } ;;
8230 for ac_func in monstartup _mcleanup
8232 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
8233 echo "$as_me:$LINENO: checking for $ac_func" >&5
8234 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
8235 if eval "test \"\${$as_ac_var+set}\" = set"; then
8236 echo $ECHO_N "(cached) $ECHO_C" >&6
8238 cat >conftest.$ac_ext <<_ACEOF
8241 cat confdefs.h >>conftest.$ac_ext
8242 cat >>conftest.$ac_ext <<_ACEOF
8243 /* end confdefs.h. */
8244 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
8245 For example, HP-UX 11i <limits.h> declares gettimeofday. */
8246 #define $ac_func innocuous_$ac_func
8248 /* System header to define __stub macros and hopefully few prototypes,
8249 which can conflict with char $ac_func (); below.
8250 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
8251 <limits.h> exists even on freestanding compilers. */
8254 # include <limits.h>
8256 # include <assert.h>
8261 /* Override any gcc2 internal prototype to avoid an error. */
8266 /* We use char because int might match the return type of a gcc2
8267 builtin and then its argument prototype would still apply. */
8269 /* The GNU C library defines this for functions which it implements
8270 to always fail with ENOSYS. Some functions are actually named
8271 something starting with __ and the normal name is an alias. */
8272 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
8275 char (*f) () = $ac_func;
8284 return f != $ac_func;
8289 rm -f conftest.$ac_objext conftest$ac_exeext
8290 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
8291 (eval $ac_link) 2>conftest.er1
8293 grep -v '^ *+' conftest.er1 >conftest.err
8295 cat conftest.err >&5
8296 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8297 (exit $ac_status); } &&
8298 { ac_try='test -z "$ac_c_werror_flag"
8299 || test ! -s conftest.err'
8300 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8303 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8304 (exit $ac_status); }; } &&
8305 { ac_try='test -s conftest$ac_exeext'
8306 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8309 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8310 (exit $ac_status); }; }; then
8311 eval "$as_ac_var=yes"
8313 echo "$as_me: failed program was:" >&5
8314 sed 's/^/| /' conftest.$ac_ext >&5
8316 eval "$as_ac_var=no"
8318 rm -f conftest.err conftest.$ac_objext \
8319 conftest$ac_exeext conftest.$ac_ext
8321 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
8322 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
8323 if test `eval echo '${'$as_ac_var'}'` = yes; then
8324 cat >>confdefs.h <<_ACEOF
8325 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
8331 echo "$as_me:$LINENO: checking for _etext" >&5
8332 echo $ECHO_N "checking for _etext... $ECHO_C" >&6
8333 if test "${ac_cv_var__etext+set}" = set; then
8334 echo $ECHO_N "(cached) $ECHO_C" >&6
8336 cat >conftest.$ac_ext <<_ACEOF
8339 cat confdefs.h >>conftest.$ac_ext
8340 cat >>conftest.$ac_ext <<_ACEOF
8341 /* end confdefs.h. */
8353 rm -f conftest.$ac_objext conftest$ac_exeext
8354 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
8355 (eval $ac_link) 2>conftest.er1
8357 grep -v '^ *+' conftest.er1 >conftest.err
8359 cat conftest.err >&5
8360 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8361 (exit $ac_status); } &&
8362 { ac_try='test -z "$ac_c_werror_flag"
8363 || test ! -s conftest.err'
8364 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8367 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8368 (exit $ac_status); }; } &&
8369 { ac_try='test -s conftest$ac_exeext'
8370 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8373 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8374 (exit $ac_status); }; }; then
8375 ac_cv_var__etext=yes
8377 echo "$as_me: failed program was:" >&5
8378 sed 's/^/| /' conftest.$ac_ext >&5
8382 rm -f conftest.err conftest.$ac_objext \
8383 conftest$ac_exeext conftest.$ac_ext
8385 echo "$as_me:$LINENO: result: $ac_cv_var__etext" >&5
8386 echo "${ECHO_T}$ac_cv_var__etext" >&6
8387 if test $ac_cv_var__etext = yes; then
8389 cat >>confdefs.h <<\_ACEOF
8390 #define HAVE__ETEXT 1
8394 echo "$as_me:$LINENO: checking for etext" >&5
8395 echo $ECHO_N "checking for etext... $ECHO_C" >&6
8396 if test "${ac_cv_var_etext+set}" = set; then
8397 echo $ECHO_N "(cached) $ECHO_C" >&6
8399 cat >conftest.$ac_ext <<_ACEOF
8402 cat confdefs.h >>conftest.$ac_ext
8403 cat >>conftest.$ac_ext <<_ACEOF
8404 /* end confdefs.h. */
8416 rm -f conftest.$ac_objext conftest$ac_exeext
8417 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
8418 (eval $ac_link) 2>conftest.er1
8420 grep -v '^ *+' conftest.er1 >conftest.err
8422 cat conftest.err >&5
8423 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8424 (exit $ac_status); } &&
8425 { ac_try='test -z "$ac_c_werror_flag"
8426 || test ! -s conftest.err'
8427 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8430 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8431 (exit $ac_status); }; } &&
8432 { ac_try='test -s conftest$ac_exeext'
8433 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8436 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8437 (exit $ac_status); }; }; then
8440 echo "$as_me: failed program was:" >&5
8441 sed 's/^/| /' conftest.$ac_ext >&5
8445 rm -f conftest.err conftest.$ac_objext \
8446 conftest$ac_exeext conftest.$ac_ext
8448 echo "$as_me:$LINENO: result: $ac_cv_var_etext" >&5
8449 echo "${ECHO_T}$ac_cv_var_etext" >&6
8450 if test $ac_cv_var_etext = yes; then
8452 cat >>confdefs.h <<\_ACEOF
8453 #define HAVE_ETEXT 1
8457 if test "$enable_profiling" = yes ; then
8458 if test $ac_cv_func_monstartup = no || test $ac_cv_func__mcleanup = no; then
8459 { { echo "$as_me:$LINENO: error: --enable-profiling requires monstartup and _mcleanup" >&5
8460 echo "$as_me: error: --enable-profiling requires monstartup and _mcleanup" >&2;}
8461 { (exit 1); exit 1; }; }
8464 OLD_CFLAGS="$CFLAGS"
8465 CFLAGS="$CFLAGS $PROFILE_CFLAGS"
8467 echo "$as_me:$LINENO: checking whether $CC supports -pg" >&5
8468 echo $ECHO_N "checking whether $CC supports -pg... $ECHO_C" >&6
8469 if test "${ac_cv_cc_supports_pg+set}" = set; then
8470 echo $ECHO_N "(cached) $ECHO_C" >&6
8472 cat >conftest.$ac_ext <<_ACEOF
8475 cat confdefs.h >>conftest.$ac_ext
8476 cat >>conftest.$ac_ext <<_ACEOF
8477 /* end confdefs.h. */
8487 rm -f conftest.$ac_objext
8488 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
8489 (eval $ac_compile) 2>conftest.er1
8491 grep -v '^ *+' conftest.er1 >conftest.err
8493 cat conftest.err >&5
8494 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8495 (exit $ac_status); } &&
8496 { ac_try='test -z "$ac_c_werror_flag"
8497 || test ! -s conftest.err'
8498 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8501 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8502 (exit $ac_status); }; } &&
8503 { ac_try='test -s conftest.$ac_objext'
8504 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8507 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8508 (exit $ac_status); }; }; then
8509 ac_cv_cc_supports_pg=yes
8511 echo "$as_me: failed program was:" >&5
8512 sed 's/^/| /' conftest.$ac_ext >&5
8514 ac_cv_cc_supports_pg=no
8516 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
8518 echo "$as_me:$LINENO: result: $ac_cv_cc_supports_pg" >&5
8519 echo "${ECHO_T}$ac_cv_cc_supports_pg" >&6
8521 if test $ac_cv_cc_supports_pg = no; then
8522 { { echo "$as_me:$LINENO: error: --enable-profiling requires a compiler which supports -pg" >&5
8523 echo "$as_me: error: --enable-profiling requires a compiler which supports -pg" >&2;}
8524 { (exit 1); exit 1; }; }
8527 CFLAGS="$OLD_CFLAGS"
8532 # Check whether --with-pkgversion or --without-pkgversion was given.
8533 if test "${with_pkgversion+set}" = set; then
8534 withval="$with_pkgversion"
8536 yes) { { echo "$as_me:$LINENO: error: package version not specified" >&5
8537 echo "$as_me: error: package version not specified" >&2;}
8538 { (exit 1); exit 1; }; } ;;
8540 *) PKGVERSION="($withval) " ;;
8550 # Check whether --with-bugurl or --without-bugurl was given.
8551 if test "${with_bugurl+set}" = set; then
8552 withval="$with_bugurl"
8554 yes) { { echo "$as_me:$LINENO: error: bug URL not specified" >&5
8555 echo "$as_me: error: bug URL not specified" >&2;}
8556 { (exit 1); exit 1; }; } ;;
8559 *) BUGURL="$withval"
8563 BUGURL="http://www.gnu.org/software/gdb/bugs/"
8572 REPORT_BUGS_TO="<$BUGURL>"
8573 REPORT_BUGS_TEXI=@uref{`echo "$BUGURL" | sed 's/@/@@/g'`}
8580 cat >>confdefs.h <<_ACEOF
8581 #define PKGVERSION "$PKGVERSION"
8585 cat >>confdefs.h <<_ACEOF
8586 #define REPORT_BUGS_TO "$REPORT_BUGS_TO"
8590 # --------------------- #
8591 # Checks for programs. #
8592 # --------------------- #
8594 for ac_prog in gawk mawk nawk awk
8596 # Extract the first word of "$ac_prog", so it can be a program name with args.
8597 set dummy $ac_prog; ac_word=$2
8598 echo "$as_me:$LINENO: checking for $ac_word" >&5
8599 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
8600 if test "${ac_cv_prog_AWK+set}" = set; then
8601 echo $ECHO_N "(cached) $ECHO_C" >&6
8603 if test -n "$AWK"; then
8604 ac_cv_prog_AWK="$AWK" # Let the user override the test.
8606 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8610 test -z "$as_dir" && as_dir=.
8611 for ac_exec_ext in '' $ac_executable_extensions; do
8612 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
8613 ac_cv_prog_AWK="$ac_prog"
8614 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
8623 if test -n "$AWK"; then
8624 echo "$as_me:$LINENO: result: $AWK" >&5
8625 echo "${ECHO_T}$AWK" >&6
8627 echo "$as_me:$LINENO: result: no" >&5
8628 echo "${ECHO_T}no" >&6
8631 test -n "$AWK" && break
8634 # Find a good install program. We prefer a C program (faster),
8635 # so one script is as good as another. But avoid the broken or
8636 # incompatible versions:
8637 # SysV /etc/install, /usr/sbin/install
8638 # SunOS /usr/etc/install
8639 # IRIX /sbin/install
8641 # AmigaOS /C/install, which installs bootblocks on floppy discs
8642 # AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag
8643 # AFS /usr/afsws/bin/install, which mishandles nonexistent args
8644 # SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff"
8645 # OS/2's system install, which has a completely different semantic
8646 # ./install, which can be erroneously created by make from ./install.sh.
8647 echo "$as_me:$LINENO: checking for a BSD-compatible install" >&5
8648 echo $ECHO_N "checking for a BSD-compatible install... $ECHO_C" >&6
8649 if test -z "$INSTALL"; then
8650 if test "${ac_cv_path_install+set}" = set; then
8651 echo $ECHO_N "(cached) $ECHO_C" >&6
8653 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8657 test -z "$as_dir" && as_dir=.
8658 # Account for people who put trailing slashes in PATH elements.
8660 ./ | .// | /cC/* | \
8661 /etc/* | /usr/sbin/* | /usr/etc/* | /sbin/* | /usr/afsws/bin/* | \
8662 ?:\\/os2\\/install\\/* | ?:\\/OS2\\/INSTALL\\/* | \
8665 # OSF1 and SCO ODT 3.0 have their own names for install.
8666 # Don't use installbsd from OSF since it installs stuff as root
8668 for ac_prog in ginstall scoinst install; do
8669 for ac_exec_ext in '' $ac_executable_extensions; do
8670 if $as_executable_p "$as_dir/$ac_prog$ac_exec_ext"; then
8671 if test $ac_prog = install &&
8672 grep dspmsg "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
8673 # AIX install. It has an incompatible calling convention.
8675 elif test $ac_prog = install &&
8676 grep pwplus "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
8677 # program-specific install script used by HP pwplus--don't use.
8680 ac_cv_path_install="$as_dir/$ac_prog$ac_exec_ext -c"
8692 if test "${ac_cv_path_install+set}" = set; then
8693 INSTALL=$ac_cv_path_install
8695 # As a last resort, use the slow shell script. We don't cache a
8696 # path for INSTALL within a source directory, because that will
8697 # break other packages using the cache if that directory is
8698 # removed, or if the path is relative.
8699 INSTALL=$ac_install_sh
8702 echo "$as_me:$LINENO: result: $INSTALL" >&5
8703 echo "${ECHO_T}$INSTALL" >&6
8705 # Use test -z because SunOS4 sh mishandles braces in ${var-val}.
8706 # It thinks the first close brace ends the variable substitution.
8707 test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}'
8709 test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL}'
8711 test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644'
8713 echo "$as_me:$LINENO: checking whether ln -s works" >&5
8714 echo $ECHO_N "checking whether ln -s works... $ECHO_C" >&6
8716 if test "$LN_S" = "ln -s"; then
8717 echo "$as_me:$LINENO: result: yes" >&5
8718 echo "${ECHO_T}yes" >&6
8720 echo "$as_me:$LINENO: result: no, using $LN_S" >&5
8721 echo "${ECHO_T}no, using $LN_S" >&6
8724 if test -n "$ac_tool_prefix"; then
8725 # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args.
8726 set dummy ${ac_tool_prefix}ranlib; ac_word=$2
8727 echo "$as_me:$LINENO: checking for $ac_word" >&5
8728 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
8729 if test "${ac_cv_prog_RANLIB+set}" = set; then
8730 echo $ECHO_N "(cached) $ECHO_C" >&6
8732 if test -n "$RANLIB"; then
8733 ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
8735 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8739 test -z "$as_dir" && as_dir=.
8740 for ac_exec_ext in '' $ac_executable_extensions; do
8741 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
8742 ac_cv_prog_RANLIB="${ac_tool_prefix}ranlib"
8743 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
8751 RANLIB=$ac_cv_prog_RANLIB
8752 if test -n "$RANLIB"; then
8753 echo "$as_me:$LINENO: result: $RANLIB" >&5
8754 echo "${ECHO_T}$RANLIB" >&6
8756 echo "$as_me:$LINENO: result: no" >&5
8757 echo "${ECHO_T}no" >&6
8761 if test -z "$ac_cv_prog_RANLIB"; then
8762 ac_ct_RANLIB=$RANLIB
8763 # Extract the first word of "ranlib", so it can be a program name with args.
8764 set dummy ranlib; ac_word=$2
8765 echo "$as_me:$LINENO: checking for $ac_word" >&5
8766 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
8767 if test "${ac_cv_prog_ac_ct_RANLIB+set}" = set; then
8768 echo $ECHO_N "(cached) $ECHO_C" >&6
8770 if test -n "$ac_ct_RANLIB"; then
8771 ac_cv_prog_ac_ct_RANLIB="$ac_ct_RANLIB" # Let the user override the test.
8773 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8777 test -z "$as_dir" && as_dir=.
8778 for ac_exec_ext in '' $ac_executable_extensions; do
8779 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
8780 ac_cv_prog_ac_ct_RANLIB="ranlib"
8781 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
8787 test -z "$ac_cv_prog_ac_ct_RANLIB" && ac_cv_prog_ac_ct_RANLIB=":"
8790 ac_ct_RANLIB=$ac_cv_prog_ac_ct_RANLIB
8791 if test -n "$ac_ct_RANLIB"; then
8792 echo "$as_me:$LINENO: result: $ac_ct_RANLIB" >&5
8793 echo "${ECHO_T}$ac_ct_RANLIB" >&6
8795 echo "$as_me:$LINENO: result: no" >&5
8796 echo "${ECHO_T}no" >&6
8799 RANLIB=$ac_ct_RANLIB
8801 RANLIB="$ac_cv_prog_RANLIB"
8804 for ac_prog in 'bison -y' byacc
8806 # Extract the first word of "$ac_prog", so it can be a program name with args.
8807 set dummy $ac_prog; ac_word=$2
8808 echo "$as_me:$LINENO: checking for $ac_word" >&5
8809 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
8810 if test "${ac_cv_prog_YACC+set}" = set; then
8811 echo $ECHO_N "(cached) $ECHO_C" >&6
8813 if test -n "$YACC"; then
8814 ac_cv_prog_YACC="$YACC" # Let the user override the test.
8816 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8820 test -z "$as_dir" && as_dir=.
8821 for ac_exec_ext in '' $ac_executable_extensions; do
8822 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
8823 ac_cv_prog_YACC="$ac_prog"
8824 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
8832 YACC=$ac_cv_prog_YACC
8833 if test -n "$YACC"; then
8834 echo "$as_me:$LINENO: result: $YACC" >&5
8835 echo "${ECHO_T}$YACC" >&6
8837 echo "$as_me:$LINENO: result: no" >&5
8838 echo "${ECHO_T}no" >&6
8841 test -n "$YACC" && break
8843 test -n "$YACC" || YACC="yacc"
8846 if test -n "$ac_tool_prefix"; then
8847 # Extract the first word of "${ac_tool_prefix}ar", so it can be a program name with args.
8848 set dummy ${ac_tool_prefix}ar; ac_word=$2
8849 echo "$as_me:$LINENO: checking for $ac_word" >&5
8850 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
8851 if test "${ac_cv_prog_AR+set}" = set; then
8852 echo $ECHO_N "(cached) $ECHO_C" >&6
8854 if test -n "$AR"; then
8855 ac_cv_prog_AR="$AR" # Let the user override the test.
8857 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8861 test -z "$as_dir" && as_dir=.
8862 for ac_exec_ext in '' $ac_executable_extensions; do
8863 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
8864 ac_cv_prog_AR="${ac_tool_prefix}ar"
8865 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
8874 if test -n "$AR"; then
8875 echo "$as_me:$LINENO: result: $AR" >&5
8876 echo "${ECHO_T}$AR" >&6
8878 echo "$as_me:$LINENO: result: no" >&5
8879 echo "${ECHO_T}no" >&6
8883 if test -z "$ac_cv_prog_AR"; then
8885 # Extract the first word of "ar", so it can be a program name with args.
8886 set dummy ar; ac_word=$2
8887 echo "$as_me:$LINENO: checking for $ac_word" >&5
8888 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
8889 if test "${ac_cv_prog_ac_ct_AR+set}" = set; then
8890 echo $ECHO_N "(cached) $ECHO_C" >&6
8892 if test -n "$ac_ct_AR"; then
8893 ac_cv_prog_ac_ct_AR="$ac_ct_AR" # Let the user override the test.
8895 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8899 test -z "$as_dir" && as_dir=.
8900 for ac_exec_ext in '' $ac_executable_extensions; do
8901 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
8902 ac_cv_prog_ac_ct_AR="ar"
8903 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
8911 ac_ct_AR=$ac_cv_prog_ac_ct_AR
8912 if test -n "$ac_ct_AR"; then
8913 echo "$as_me:$LINENO: result: $ac_ct_AR" >&5
8914 echo "${ECHO_T}$ac_ct_AR" >&6
8916 echo "$as_me:$LINENO: result: no" >&5
8917 echo "${ECHO_T}no" >&6
8925 if test -n "$ac_tool_prefix"; then
8926 # Extract the first word of "${ac_tool_prefix}dlltool", so it can be a program name with args.
8927 set dummy ${ac_tool_prefix}dlltool; ac_word=$2
8928 echo "$as_me:$LINENO: checking for $ac_word" >&5
8929 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
8930 if test "${ac_cv_prog_DLLTOOL+set}" = set; then
8931 echo $ECHO_N "(cached) $ECHO_C" >&6
8933 if test -n "$DLLTOOL"; then
8934 ac_cv_prog_DLLTOOL="$DLLTOOL" # Let the user override the test.
8936 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8940 test -z "$as_dir" && as_dir=.
8941 for ac_exec_ext in '' $ac_executable_extensions; do
8942 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
8943 ac_cv_prog_DLLTOOL="${ac_tool_prefix}dlltool"
8944 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
8952 DLLTOOL=$ac_cv_prog_DLLTOOL
8953 if test -n "$DLLTOOL"; then
8954 echo "$as_me:$LINENO: result: $DLLTOOL" >&5
8955 echo "${ECHO_T}$DLLTOOL" >&6
8957 echo "$as_me:$LINENO: result: no" >&5
8958 echo "${ECHO_T}no" >&6
8962 if test -z "$ac_cv_prog_DLLTOOL"; then
8963 ac_ct_DLLTOOL=$DLLTOOL
8964 # Extract the first word of "dlltool", so it can be a program name with args.
8965 set dummy dlltool; ac_word=$2
8966 echo "$as_me:$LINENO: checking for $ac_word" >&5
8967 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
8968 if test "${ac_cv_prog_ac_ct_DLLTOOL+set}" = set; then
8969 echo $ECHO_N "(cached) $ECHO_C" >&6
8971 if test -n "$ac_ct_DLLTOOL"; then
8972 ac_cv_prog_ac_ct_DLLTOOL="$ac_ct_DLLTOOL" # Let the user override the test.
8974 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8978 test -z "$as_dir" && as_dir=.
8979 for ac_exec_ext in '' $ac_executable_extensions; do
8980 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
8981 ac_cv_prog_ac_ct_DLLTOOL="dlltool"
8982 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
8990 ac_ct_DLLTOOL=$ac_cv_prog_ac_ct_DLLTOOL
8991 if test -n "$ac_ct_DLLTOOL"; then
8992 echo "$as_me:$LINENO: result: $ac_ct_DLLTOOL" >&5
8993 echo "${ECHO_T}$ac_ct_DLLTOOL" >&6
8995 echo "$as_me:$LINENO: result: no" >&5
8996 echo "${ECHO_T}no" >&6
8999 DLLTOOL=$ac_ct_DLLTOOL
9001 DLLTOOL="$ac_cv_prog_DLLTOOL"
9004 if test -n "$ac_tool_prefix"; then
9005 # Extract the first word of "${ac_tool_prefix}windres", so it can be a program name with args.
9006 set dummy ${ac_tool_prefix}windres; ac_word=$2
9007 echo "$as_me:$LINENO: checking for $ac_word" >&5
9008 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
9009 if test "${ac_cv_prog_WINDRES+set}" = set; then
9010 echo $ECHO_N "(cached) $ECHO_C" >&6
9012 if test -n "$WINDRES"; then
9013 ac_cv_prog_WINDRES="$WINDRES" # Let the user override the test.
9015 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9019 test -z "$as_dir" && as_dir=.
9020 for ac_exec_ext in '' $ac_executable_extensions; do
9021 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
9022 ac_cv_prog_WINDRES="${ac_tool_prefix}windres"
9023 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
9031 WINDRES=$ac_cv_prog_WINDRES
9032 if test -n "$WINDRES"; then
9033 echo "$as_me:$LINENO: result: $WINDRES" >&5
9034 echo "${ECHO_T}$WINDRES" >&6
9036 echo "$as_me:$LINENO: result: no" >&5
9037 echo "${ECHO_T}no" >&6
9041 if test -z "$ac_cv_prog_WINDRES"; then
9042 ac_ct_WINDRES=$WINDRES
9043 # Extract the first word of "windres", so it can be a program name with args.
9044 set dummy windres; ac_word=$2
9045 echo "$as_me:$LINENO: checking for $ac_word" >&5
9046 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
9047 if test "${ac_cv_prog_ac_ct_WINDRES+set}" = set; then
9048 echo $ECHO_N "(cached) $ECHO_C" >&6
9050 if test -n "$ac_ct_WINDRES"; then
9051 ac_cv_prog_ac_ct_WINDRES="$ac_ct_WINDRES" # Let the user override the test.
9053 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9057 test -z "$as_dir" && as_dir=.
9058 for ac_exec_ext in '' $ac_executable_extensions; do
9059 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
9060 ac_cv_prog_ac_ct_WINDRES="windres"
9061 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
9069 ac_ct_WINDRES=$ac_cv_prog_ac_ct_WINDRES
9070 if test -n "$ac_ct_WINDRES"; then
9071 echo "$as_me:$LINENO: result: $ac_ct_WINDRES" >&5
9072 echo "${ECHO_T}$ac_ct_WINDRES" >&6
9074 echo "$as_me:$LINENO: result: no" >&5
9075 echo "${ECHO_T}no" >&6
9078 WINDRES=$ac_ct_WINDRES
9080 WINDRES="$ac_cv_prog_WINDRES"
9084 # Needed for GNU/Hurd.
9085 if test -n "$ac_tool_prefix"; then
9086 # Extract the first word of "${ac_tool_prefix}mig", so it can be a program name with args.
9087 set dummy ${ac_tool_prefix}mig; ac_word=$2
9088 echo "$as_me:$LINENO: checking for $ac_word" >&5
9089 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
9090 if test "${ac_cv_prog_MIG+set}" = set; then
9091 echo $ECHO_N "(cached) $ECHO_C" >&6
9093 if test -n "$MIG"; then
9094 ac_cv_prog_MIG="$MIG" # Let the user override the test.
9096 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9100 test -z "$as_dir" && as_dir=.
9101 for ac_exec_ext in '' $ac_executable_extensions; do
9102 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
9103 ac_cv_prog_MIG="${ac_tool_prefix}mig"
9104 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
9113 if test -n "$MIG"; then
9114 echo "$as_me:$LINENO: result: $MIG" >&5
9115 echo "${ECHO_T}$MIG" >&6
9117 echo "$as_me:$LINENO: result: no" >&5
9118 echo "${ECHO_T}no" >&6
9122 if test -z "$ac_cv_prog_MIG"; then
9124 # Extract the first word of "mig", so it can be a program name with args.
9125 set dummy mig; ac_word=$2
9126 echo "$as_me:$LINENO: checking for $ac_word" >&5
9127 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
9128 if test "${ac_cv_prog_ac_ct_MIG+set}" = set; then
9129 echo $ECHO_N "(cached) $ECHO_C" >&6
9131 if test -n "$ac_ct_MIG"; then
9132 ac_cv_prog_ac_ct_MIG="$ac_ct_MIG" # Let the user override the test.
9134 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9138 test -z "$as_dir" && as_dir=.
9139 for ac_exec_ext in '' $ac_executable_extensions; do
9140 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
9141 ac_cv_prog_ac_ct_MIG="mig"
9142 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
9150 ac_ct_MIG=$ac_cv_prog_ac_ct_MIG
9151 if test -n "$ac_ct_MIG"; then
9152 echo "$as_me:$LINENO: result: $ac_ct_MIG" >&5
9153 echo "${ECHO_T}$ac_ct_MIG" >&6
9155 echo "$as_me:$LINENO: result: no" >&5
9156 echo "${ECHO_T}no" >&6
9161 MIG="$ac_cv_prog_MIG"
9165 # ---------------------- #
9166 # Checks for libraries. #
9167 # ---------------------- #
9169 # We might need to link with -lm; most simulators need it.
9171 echo "$as_me:$LINENO: checking for main in -lm" >&5
9172 echo $ECHO_N "checking for main in -lm... $ECHO_C" >&6
9173 if test "${ac_cv_lib_m_main+set}" = set; then
9174 echo $ECHO_N "(cached) $ECHO_C" >&6
9176 ac_check_lib_save_LIBS=$LIBS
9178 cat >conftest.$ac_ext <<_ACEOF
9181 cat confdefs.h >>conftest.$ac_ext
9182 cat >>conftest.$ac_ext <<_ACEOF
9183 /* end confdefs.h. */
9194 rm -f conftest.$ac_objext conftest$ac_exeext
9195 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
9196 (eval $ac_link) 2>conftest.er1
9198 grep -v '^ *+' conftest.er1 >conftest.err
9200 cat conftest.err >&5
9201 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9202 (exit $ac_status); } &&
9203 { ac_try='test -z "$ac_c_werror_flag"
9204 || test ! -s conftest.err'
9205 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9208 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9209 (exit $ac_status); }; } &&
9210 { ac_try='test -s conftest$ac_exeext'
9211 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9214 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9215 (exit $ac_status); }; }; then
9216 ac_cv_lib_m_main=yes
9218 echo "$as_me: failed program was:" >&5
9219 sed 's/^/| /' conftest.$ac_ext >&5
9223 rm -f conftest.err conftest.$ac_objext \
9224 conftest$ac_exeext conftest.$ac_ext
9225 LIBS=$ac_check_lib_save_LIBS
9227 echo "$as_me:$LINENO: result: $ac_cv_lib_m_main" >&5
9228 echo "${ECHO_T}$ac_cv_lib_m_main" >&6
9229 if test $ac_cv_lib_m_main = yes; then
9230 cat >>confdefs.h <<_ACEOF
9239 # We need to link with -lw to get `wctype' on Solaris before Solaris
9240 # 2.6. Solaris 2.6 and beyond have this function in libc, and have a
9241 # libw that some versions of the GNU linker cannot hanle (GNU ld 2.9.1
9242 # is known to have this problem). Therefore we avoid libw if we can.
9243 echo "$as_me:$LINENO: checking for wctype" >&5
9244 echo $ECHO_N "checking for wctype... $ECHO_C" >&6
9245 if test "${ac_cv_func_wctype+set}" = set; then
9246 echo $ECHO_N "(cached) $ECHO_C" >&6
9248 cat >conftest.$ac_ext <<_ACEOF
9251 cat confdefs.h >>conftest.$ac_ext
9252 cat >>conftest.$ac_ext <<_ACEOF
9253 /* end confdefs.h. */
9254 /* Define wctype to an innocuous variant, in case <limits.h> declares wctype.
9255 For example, HP-UX 11i <limits.h> declares gettimeofday. */
9256 #define wctype innocuous_wctype
9258 /* System header to define __stub macros and hopefully few prototypes,
9259 which can conflict with char wctype (); below.
9260 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
9261 <limits.h> exists even on freestanding compilers. */
9264 # include <limits.h>
9266 # include <assert.h>
9271 /* Override any gcc2 internal prototype to avoid an error. */
9276 /* We use char because int might match the return type of a gcc2
9277 builtin and then its argument prototype would still apply. */
9279 /* The GNU C library defines this for functions which it implements
9280 to always fail with ENOSYS. Some functions are actually named
9281 something starting with __ and the normal name is an alias. */
9282 #if defined (__stub_wctype) || defined (__stub___wctype)
9285 char (*f) () = wctype;
9299 rm -f conftest.$ac_objext conftest$ac_exeext
9300 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
9301 (eval $ac_link) 2>conftest.er1
9303 grep -v '^ *+' conftest.er1 >conftest.err
9305 cat conftest.err >&5
9306 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9307 (exit $ac_status); } &&
9308 { ac_try='test -z "$ac_c_werror_flag"
9309 || test ! -s conftest.err'
9310 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9313 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9314 (exit $ac_status); }; } &&
9315 { ac_try='test -s conftest$ac_exeext'
9316 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9319 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9320 (exit $ac_status); }; }; then
9321 ac_cv_func_wctype=yes
9323 echo "$as_me: failed program was:" >&5
9324 sed 's/^/| /' conftest.$ac_ext >&5
9326 ac_cv_func_wctype=no
9328 rm -f conftest.err conftest.$ac_objext \
9329 conftest$ac_exeext conftest.$ac_ext
9331 echo "$as_me:$LINENO: result: $ac_cv_func_wctype" >&5
9332 echo "${ECHO_T}$ac_cv_func_wctype" >&6
9333 if test $ac_cv_func_wctype = yes; then
9337 echo "$as_me:$LINENO: checking for wctype in -lw" >&5
9338 echo $ECHO_N "checking for wctype in -lw... $ECHO_C" >&6
9339 if test "${ac_cv_lib_w_wctype+set}" = set; then
9340 echo $ECHO_N "(cached) $ECHO_C" >&6
9342 ac_check_lib_save_LIBS=$LIBS
9344 cat >conftest.$ac_ext <<_ACEOF
9347 cat confdefs.h >>conftest.$ac_ext
9348 cat >>conftest.$ac_ext <<_ACEOF
9349 /* end confdefs.h. */
9351 /* Override any gcc2 internal prototype to avoid an error. */
9355 /* We use char because int might match the return type of a gcc2
9356 builtin and then its argument prototype would still apply. */
9366 rm -f conftest.$ac_objext conftest$ac_exeext
9367 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
9368 (eval $ac_link) 2>conftest.er1
9370 grep -v '^ *+' conftest.er1 >conftest.err
9372 cat conftest.err >&5
9373 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9374 (exit $ac_status); } &&
9375 { ac_try='test -z "$ac_c_werror_flag"
9376 || test ! -s conftest.err'
9377 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9380 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9381 (exit $ac_status); }; } &&
9382 { ac_try='test -s conftest$ac_exeext'
9383 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9386 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9387 (exit $ac_status); }; }; then
9388 ac_cv_lib_w_wctype=yes
9390 echo "$as_me: failed program was:" >&5
9391 sed 's/^/| /' conftest.$ac_ext >&5
9393 ac_cv_lib_w_wctype=no
9395 rm -f conftest.err conftest.$ac_objext \
9396 conftest$ac_exeext conftest.$ac_ext
9397 LIBS=$ac_check_lib_save_LIBS
9399 echo "$as_me:$LINENO: result: $ac_cv_lib_w_wctype" >&5
9400 echo "${ECHO_T}$ac_cv_lib_w_wctype" >&6
9401 if test $ac_cv_lib_w_wctype = yes; then
9402 cat >>confdefs.h <<_ACEOF
9413 # Some systems (e.g. Solaris) have `gethostbyname' in libnsl.
9414 echo "$as_me:$LINENO: checking for library containing gethostbyname" >&5
9415 echo $ECHO_N "checking for library containing gethostbyname... $ECHO_C" >&6
9416 if test "${ac_cv_search_gethostbyname+set}" = set; then
9417 echo $ECHO_N "(cached) $ECHO_C" >&6
9419 ac_func_search_save_LIBS=$LIBS
9420 ac_cv_search_gethostbyname=no
9421 cat >conftest.$ac_ext <<_ACEOF
9424 cat confdefs.h >>conftest.$ac_ext
9425 cat >>conftest.$ac_ext <<_ACEOF
9426 /* end confdefs.h. */
9428 /* Override any gcc2 internal prototype to avoid an error. */
9432 /* We use char because int might match the return type of a gcc2
9433 builtin and then its argument prototype would still apply. */
9434 char gethostbyname ();
9443 rm -f conftest.$ac_objext conftest$ac_exeext
9444 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
9445 (eval $ac_link) 2>conftest.er1
9447 grep -v '^ *+' conftest.er1 >conftest.err
9449 cat conftest.err >&5
9450 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9451 (exit $ac_status); } &&
9452 { ac_try='test -z "$ac_c_werror_flag"
9453 || test ! -s conftest.err'
9454 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9457 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9458 (exit $ac_status); }; } &&
9459 { ac_try='test -s conftest$ac_exeext'
9460 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9463 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9464 (exit $ac_status); }; }; then
9465 ac_cv_search_gethostbyname="none required"
9467 echo "$as_me: failed program was:" >&5
9468 sed 's/^/| /' conftest.$ac_ext >&5
9471 rm -f conftest.err conftest.$ac_objext \
9472 conftest$ac_exeext conftest.$ac_ext
9473 if test "$ac_cv_search_gethostbyname" = no; then
9474 for ac_lib in nsl; do
9475 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
9476 cat >conftest.$ac_ext <<_ACEOF
9479 cat confdefs.h >>conftest.$ac_ext
9480 cat >>conftest.$ac_ext <<_ACEOF
9481 /* end confdefs.h. */
9483 /* Override any gcc2 internal prototype to avoid an error. */
9487 /* We use char because int might match the return type of a gcc2
9488 builtin and then its argument prototype would still apply. */
9489 char gethostbyname ();
9498 rm -f conftest.$ac_objext conftest$ac_exeext
9499 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
9500 (eval $ac_link) 2>conftest.er1
9502 grep -v '^ *+' conftest.er1 >conftest.err
9504 cat conftest.err >&5
9505 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9506 (exit $ac_status); } &&
9507 { ac_try='test -z "$ac_c_werror_flag"
9508 || test ! -s conftest.err'
9509 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9512 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9513 (exit $ac_status); }; } &&
9514 { ac_try='test -s conftest$ac_exeext'
9515 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9518 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9519 (exit $ac_status); }; }; then
9520 ac_cv_search_gethostbyname="-l$ac_lib"
9523 echo "$as_me: failed program was:" >&5
9524 sed 's/^/| /' conftest.$ac_ext >&5
9527 rm -f conftest.err conftest.$ac_objext \
9528 conftest$ac_exeext conftest.$ac_ext
9531 LIBS=$ac_func_search_save_LIBS
9533 echo "$as_me:$LINENO: result: $ac_cv_search_gethostbyname" >&5
9534 echo "${ECHO_T}$ac_cv_search_gethostbyname" >&6
9535 if test "$ac_cv_search_gethostbyname" != no; then
9536 test "$ac_cv_search_gethostbyname" = "none required" || LIBS="$ac_cv_search_gethostbyname $LIBS"
9541 # Some systems (e.g. Solaris) have `socketpair' in libsocket.
9542 echo "$as_me:$LINENO: checking for library containing socketpair" >&5
9543 echo $ECHO_N "checking for library containing socketpair... $ECHO_C" >&6
9544 if test "${ac_cv_search_socketpair+set}" = set; then
9545 echo $ECHO_N "(cached) $ECHO_C" >&6
9547 ac_func_search_save_LIBS=$LIBS
9548 ac_cv_search_socketpair=no
9549 cat >conftest.$ac_ext <<_ACEOF
9552 cat confdefs.h >>conftest.$ac_ext
9553 cat >>conftest.$ac_ext <<_ACEOF
9554 /* end confdefs.h. */
9556 /* Override any gcc2 internal prototype to avoid an error. */
9560 /* We use char because int might match the return type of a gcc2
9561 builtin and then its argument prototype would still apply. */
9571 rm -f conftest.$ac_objext conftest$ac_exeext
9572 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
9573 (eval $ac_link) 2>conftest.er1
9575 grep -v '^ *+' conftest.er1 >conftest.err
9577 cat conftest.err >&5
9578 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9579 (exit $ac_status); } &&
9580 { ac_try='test -z "$ac_c_werror_flag"
9581 || test ! -s conftest.err'
9582 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9585 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9586 (exit $ac_status); }; } &&
9587 { ac_try='test -s conftest$ac_exeext'
9588 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9591 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9592 (exit $ac_status); }; }; then
9593 ac_cv_search_socketpair="none required"
9595 echo "$as_me: failed program was:" >&5
9596 sed 's/^/| /' conftest.$ac_ext >&5
9599 rm -f conftest.err conftest.$ac_objext \
9600 conftest$ac_exeext conftest.$ac_ext
9601 if test "$ac_cv_search_socketpair" = no; then
9602 for ac_lib in socket; do
9603 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
9604 cat >conftest.$ac_ext <<_ACEOF
9607 cat confdefs.h >>conftest.$ac_ext
9608 cat >>conftest.$ac_ext <<_ACEOF
9609 /* end confdefs.h. */
9611 /* Override any gcc2 internal prototype to avoid an error. */
9615 /* We use char because int might match the return type of a gcc2
9616 builtin and then its argument prototype would still apply. */
9626 rm -f conftest.$ac_objext conftest$ac_exeext
9627 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
9628 (eval $ac_link) 2>conftest.er1
9630 grep -v '^ *+' conftest.er1 >conftest.err
9632 cat conftest.err >&5
9633 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9634 (exit $ac_status); } &&
9635 { ac_try='test -z "$ac_c_werror_flag"
9636 || test ! -s conftest.err'
9637 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9640 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9641 (exit $ac_status); }; } &&
9642 { ac_try='test -s conftest$ac_exeext'
9643 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9646 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9647 (exit $ac_status); }; }; then
9648 ac_cv_search_socketpair="-l$ac_lib"
9651 echo "$as_me: failed program was:" >&5
9652 sed 's/^/| /' conftest.$ac_ext >&5
9655 rm -f conftest.err conftest.$ac_objext \
9656 conftest$ac_exeext conftest.$ac_ext
9659 LIBS=$ac_func_search_save_LIBS
9661 echo "$as_me:$LINENO: result: $ac_cv_search_socketpair" >&5
9662 echo "${ECHO_T}$ac_cv_search_socketpair" >&6
9663 if test "$ac_cv_search_socketpair" != no; then
9664 test "$ac_cv_search_socketpair" = "none required" || LIBS="$ac_cv_search_socketpair $LIBS"
9669 # Link in zlib if we can. This allows us to read compressed debug sections.
9670 echo "$as_me:$LINENO: checking for library containing zlibVersion" >&5
9671 echo $ECHO_N "checking for library containing zlibVersion... $ECHO_C" >&6
9672 if test "${ac_cv_search_zlibVersion+set}" = set; then
9673 echo $ECHO_N "(cached) $ECHO_C" >&6
9675 ac_func_search_save_LIBS=$LIBS
9676 ac_cv_search_zlibVersion=no
9677 cat >conftest.$ac_ext <<_ACEOF
9680 cat confdefs.h >>conftest.$ac_ext
9681 cat >>conftest.$ac_ext <<_ACEOF
9682 /* end confdefs.h. */
9684 /* Override any gcc2 internal prototype to avoid an error. */
9688 /* We use char because int might match the return type of a gcc2
9689 builtin and then its argument prototype would still apply. */
9690 char zlibVersion ();
9699 rm -f conftest.$ac_objext conftest$ac_exeext
9700 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
9701 (eval $ac_link) 2>conftest.er1
9703 grep -v '^ *+' conftest.er1 >conftest.err
9705 cat conftest.err >&5
9706 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9707 (exit $ac_status); } &&
9708 { ac_try='test -z "$ac_c_werror_flag"
9709 || test ! -s conftest.err'
9710 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9713 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9714 (exit $ac_status); }; } &&
9715 { ac_try='test -s conftest$ac_exeext'
9716 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9719 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9720 (exit $ac_status); }; }; then
9721 ac_cv_search_zlibVersion="none required"
9723 echo "$as_me: failed program was:" >&5
9724 sed 's/^/| /' conftest.$ac_ext >&5
9727 rm -f conftest.err conftest.$ac_objext \
9728 conftest$ac_exeext conftest.$ac_ext
9729 if test "$ac_cv_search_zlibVersion" = no; then
9731 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
9732 cat >conftest.$ac_ext <<_ACEOF
9735 cat confdefs.h >>conftest.$ac_ext
9736 cat >>conftest.$ac_ext <<_ACEOF
9737 /* end confdefs.h. */
9739 /* Override any gcc2 internal prototype to avoid an error. */
9743 /* We use char because int might match the return type of a gcc2
9744 builtin and then its argument prototype would still apply. */
9745 char zlibVersion ();
9754 rm -f conftest.$ac_objext conftest$ac_exeext
9755 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
9756 (eval $ac_link) 2>conftest.er1
9758 grep -v '^ *+' conftest.er1 >conftest.err
9760 cat conftest.err >&5
9761 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9762 (exit $ac_status); } &&
9763 { ac_try='test -z "$ac_c_werror_flag"
9764 || test ! -s conftest.err'
9765 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9768 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9769 (exit $ac_status); }; } &&
9770 { ac_try='test -s conftest$ac_exeext'
9771 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9774 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9775 (exit $ac_status); }; }; then
9776 ac_cv_search_zlibVersion="-l$ac_lib"
9779 echo "$as_me: failed program was:" >&5
9780 sed 's/^/| /' conftest.$ac_ext >&5
9783 rm -f conftest.err conftest.$ac_objext \
9784 conftest$ac_exeext conftest.$ac_ext
9787 LIBS=$ac_func_search_save_LIBS
9789 echo "$as_me:$LINENO: result: $ac_cv_search_zlibVersion" >&5
9790 echo "${ECHO_T}$ac_cv_search_zlibVersion" >&6
9791 if test "$ac_cv_search_zlibVersion" != no; then
9792 test "$ac_cv_search_zlibVersion" = "none required" || LIBS="$ac_cv_search_zlibVersion $LIBS"
9794 for ac_header in zlib.h
9796 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
9797 if eval "test \"\${$as_ac_Header+set}\" = set"; then
9798 echo "$as_me:$LINENO: checking for $ac_header" >&5
9799 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
9800 if eval "test \"\${$as_ac_Header+set}\" = set"; then
9801 echo $ECHO_N "(cached) $ECHO_C" >&6
9803 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
9804 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
9806 # Is the header compilable?
9807 echo "$as_me:$LINENO: checking $ac_header usability" >&5
9808 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
9809 cat >conftest.$ac_ext <<_ACEOF
9812 cat confdefs.h >>conftest.$ac_ext
9813 cat >>conftest.$ac_ext <<_ACEOF
9814 /* end confdefs.h. */
9815 $ac_includes_default
9816 #include <$ac_header>
9818 rm -f conftest.$ac_objext
9819 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
9820 (eval $ac_compile) 2>conftest.er1
9822 grep -v '^ *+' conftest.er1 >conftest.err
9824 cat conftest.err >&5
9825 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9826 (exit $ac_status); } &&
9827 { ac_try='test -z "$ac_c_werror_flag"
9828 || test ! -s conftest.err'
9829 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9832 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9833 (exit $ac_status); }; } &&
9834 { ac_try='test -s conftest.$ac_objext'
9835 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9838 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9839 (exit $ac_status); }; }; then
9840 ac_header_compiler=yes
9842 echo "$as_me: failed program was:" >&5
9843 sed 's/^/| /' conftest.$ac_ext >&5
9845 ac_header_compiler=no
9847 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
9848 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
9849 echo "${ECHO_T}$ac_header_compiler" >&6
9851 # Is the header present?
9852 echo "$as_me:$LINENO: checking $ac_header presence" >&5
9853 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
9854 cat >conftest.$ac_ext <<_ACEOF
9857 cat confdefs.h >>conftest.$ac_ext
9858 cat >>conftest.$ac_ext <<_ACEOF
9859 /* end confdefs.h. */
9860 #include <$ac_header>
9862 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
9863 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
9865 grep -v '^ *+' conftest.er1 >conftest.err
9867 cat conftest.err >&5
9868 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9869 (exit $ac_status); } >/dev/null; then
9870 if test -s conftest.err; then
9871 ac_cpp_err=$ac_c_preproc_warn_flag
9872 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
9879 if test -z "$ac_cpp_err"; then
9880 ac_header_preproc=yes
9882 echo "$as_me: failed program was:" >&5
9883 sed 's/^/| /' conftest.$ac_ext >&5
9885 ac_header_preproc=no
9887 rm -f conftest.err conftest.$ac_ext
9888 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
9889 echo "${ECHO_T}$ac_header_preproc" >&6
9891 # So? What about this header?
9892 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
9894 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
9895 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
9896 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
9897 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
9898 ac_header_preproc=yes
9901 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
9902 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
9903 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
9904 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
9905 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
9906 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
9907 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
9908 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
9909 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
9910 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
9911 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
9912 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
9915 ## ------------------------------------------ ##
9916 ## Report this to the AC_PACKAGE_NAME lists. ##
9917 ## ------------------------------------------ ##
9920 sed "s/^/$as_me: WARNING: /" >&2
9923 echo "$as_me:$LINENO: checking for $ac_header" >&5
9924 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
9925 if eval "test \"\${$as_ac_Header+set}\" = set"; then
9926 echo $ECHO_N "(cached) $ECHO_C" >&6
9928 eval "$as_ac_Header=\$ac_header_preproc"
9930 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
9931 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
9934 if test `eval echo '${'$as_ac_Header'}'` = yes; then
9935 cat >>confdefs.h <<_ACEOF
9936 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
9946 # For the TUI, we need enhanced curses functionality.
9948 # FIXME: kettenis/20040905: We prefer ncurses over the vendor-supplied
9949 # curses library because the latter might not provide all the
9950 # functionality we need. However, this leads to problems on systems
9951 # where the linker searches /usr/local/lib, but the compiler doesn't
9952 # search /usr/local/include, if ncurses is installed in /usr/local. A
9953 # default installation of ncurses on alpha*-dec-osf* will lead to such
9955 echo "$as_me:$LINENO: checking for library containing waddstr" >&5
9956 echo $ECHO_N "checking for library containing waddstr... $ECHO_C" >&6
9957 if test "${ac_cv_search_waddstr+set}" = set; then
9958 echo $ECHO_N "(cached) $ECHO_C" >&6
9960 ac_func_search_save_LIBS=$LIBS
9961 ac_cv_search_waddstr=no
9962 cat >conftest.$ac_ext <<_ACEOF
9965 cat confdefs.h >>conftest.$ac_ext
9966 cat >>conftest.$ac_ext <<_ACEOF
9967 /* end confdefs.h. */
9969 /* Override any gcc2 internal prototype to avoid an error. */
9973 /* We use char because int might match the return type of a gcc2
9974 builtin and then its argument prototype would still apply. */
9984 rm -f conftest.$ac_objext conftest$ac_exeext
9985 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
9986 (eval $ac_link) 2>conftest.er1
9988 grep -v '^ *+' conftest.er1 >conftest.err
9990 cat conftest.err >&5
9991 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9992 (exit $ac_status); } &&
9993 { ac_try='test -z "$ac_c_werror_flag"
9994 || test ! -s conftest.err'
9995 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9998 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9999 (exit $ac_status); }; } &&
10000 { ac_try='test -s conftest$ac_exeext'
10001 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10002 (eval $ac_try) 2>&5
10004 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10005 (exit $ac_status); }; }; then
10006 ac_cv_search_waddstr="none required"
10008 echo "$as_me: failed program was:" >&5
10009 sed 's/^/| /' conftest.$ac_ext >&5
10012 rm -f conftest.err conftest.$ac_objext \
10013 conftest$ac_exeext conftest.$ac_ext
10014 if test "$ac_cv_search_waddstr" = no; then
10015 for ac_lib in ncurses cursesX curses; do
10016 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
10017 cat >conftest.$ac_ext <<_ACEOF
10020 cat confdefs.h >>conftest.$ac_ext
10021 cat >>conftest.$ac_ext <<_ACEOF
10022 /* end confdefs.h. */
10024 /* Override any gcc2 internal prototype to avoid an error. */
10028 /* We use char because int might match the return type of a gcc2
10029 builtin and then its argument prototype would still apply. */
10039 rm -f conftest.$ac_objext conftest$ac_exeext
10040 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
10041 (eval $ac_link) 2>conftest.er1
10043 grep -v '^ *+' conftest.er1 >conftest.err
10045 cat conftest.err >&5
10046 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10047 (exit $ac_status); } &&
10048 { ac_try='test -z "$ac_c_werror_flag"
10049 || test ! -s conftest.err'
10050 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10051 (eval $ac_try) 2>&5
10053 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10054 (exit $ac_status); }; } &&
10055 { ac_try='test -s conftest$ac_exeext'
10056 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10057 (eval $ac_try) 2>&5
10059 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10060 (exit $ac_status); }; }; then
10061 ac_cv_search_waddstr="-l$ac_lib"
10064 echo "$as_me: failed program was:" >&5
10065 sed 's/^/| /' conftest.$ac_ext >&5
10068 rm -f conftest.err conftest.$ac_objext \
10069 conftest$ac_exeext conftest.$ac_ext
10072 LIBS=$ac_func_search_save_LIBS
10074 echo "$as_me:$LINENO: result: $ac_cv_search_waddstr" >&5
10075 echo "${ECHO_T}$ac_cv_search_waddstr" >&6
10076 if test "$ac_cv_search_waddstr" != no; then
10077 test "$ac_cv_search_waddstr" = "none required" || LIBS="$ac_cv_search_waddstr $LIBS"
10082 # On HP/UX we may need libxpdl for dlgetmodinfo (used by solib-pa64.c).
10083 echo "$as_me:$LINENO: checking for library containing dlgetmodinfo" >&5
10084 echo $ECHO_N "checking for library containing dlgetmodinfo... $ECHO_C" >&6
10085 if test "${ac_cv_search_dlgetmodinfo+set}" = set; then
10086 echo $ECHO_N "(cached) $ECHO_C" >&6
10088 ac_func_search_save_LIBS=$LIBS
10089 ac_cv_search_dlgetmodinfo=no
10090 cat >conftest.$ac_ext <<_ACEOF
10093 cat confdefs.h >>conftest.$ac_ext
10094 cat >>conftest.$ac_ext <<_ACEOF
10095 /* end confdefs.h. */
10097 /* Override any gcc2 internal prototype to avoid an error. */
10101 /* We use char because int might match the return type of a gcc2
10102 builtin and then its argument prototype would still apply. */
10103 char dlgetmodinfo ();
10112 rm -f conftest.$ac_objext conftest$ac_exeext
10113 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
10114 (eval $ac_link) 2>conftest.er1
10116 grep -v '^ *+' conftest.er1 >conftest.err
10118 cat conftest.err >&5
10119 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10120 (exit $ac_status); } &&
10121 { ac_try='test -z "$ac_c_werror_flag"
10122 || test ! -s conftest.err'
10123 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10124 (eval $ac_try) 2>&5
10126 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10127 (exit $ac_status); }; } &&
10128 { ac_try='test -s conftest$ac_exeext'
10129 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10130 (eval $ac_try) 2>&5
10132 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10133 (exit $ac_status); }; }; then
10134 ac_cv_search_dlgetmodinfo="none required"
10136 echo "$as_me: failed program was:" >&5
10137 sed 's/^/| /' conftest.$ac_ext >&5
10140 rm -f conftest.err conftest.$ac_objext \
10141 conftest$ac_exeext conftest.$ac_ext
10142 if test "$ac_cv_search_dlgetmodinfo" = no; then
10143 for ac_lib in dl xpdl; do
10144 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
10145 cat >conftest.$ac_ext <<_ACEOF
10148 cat confdefs.h >>conftest.$ac_ext
10149 cat >>conftest.$ac_ext <<_ACEOF
10150 /* end confdefs.h. */
10152 /* Override any gcc2 internal prototype to avoid an error. */
10156 /* We use char because int might match the return type of a gcc2
10157 builtin and then its argument prototype would still apply. */
10158 char dlgetmodinfo ();
10167 rm -f conftest.$ac_objext conftest$ac_exeext
10168 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
10169 (eval $ac_link) 2>conftest.er1
10171 grep -v '^ *+' conftest.er1 >conftest.err
10173 cat conftest.err >&5
10174 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10175 (exit $ac_status); } &&
10176 { ac_try='test -z "$ac_c_werror_flag"
10177 || test ! -s conftest.err'
10178 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10179 (eval $ac_try) 2>&5
10181 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10182 (exit $ac_status); }; } &&
10183 { ac_try='test -s conftest$ac_exeext'
10184 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10185 (eval $ac_try) 2>&5
10187 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10188 (exit $ac_status); }; }; then
10189 ac_cv_search_dlgetmodinfo="-l$ac_lib"
10192 echo "$as_me: failed program was:" >&5
10193 sed 's/^/| /' conftest.$ac_ext >&5
10196 rm -f conftest.err conftest.$ac_objext \
10197 conftest$ac_exeext conftest.$ac_ext
10200 LIBS=$ac_func_search_save_LIBS
10202 echo "$as_me:$LINENO: result: $ac_cv_search_dlgetmodinfo" >&5
10203 echo "${ECHO_T}$ac_cv_search_dlgetmodinfo" >&6
10204 if test "$ac_cv_search_dlgetmodinfo" != no; then
10205 test "$ac_cv_search_dlgetmodinfo" = "none required" || LIBS="$ac_cv_search_dlgetmodinfo $LIBS"
10210 # Since GDB uses Readline, we need termcap functionality. In many
10211 # cases this will be provided by the curses library, but some systems
10212 # have a seperate termcap library, or no curses library at all.
10216 if test -d $srcdir/libtermcap; then
10217 LIBS="../libtermcap/libtermcap.a $LIBS"
10218 ac_cv_search_tgetent="../libtermcap/libtermcap.a"
10221 ac_cv_search_tgetent="none required"
10224 ac_cv_search_tgetent="none required"
10225 CONFIG_OBS="$CONFIG_OBS win32-termcap.o"
10229 # These are the libraries checked by Readline.
10230 echo "$as_me:$LINENO: checking for library containing tgetent" >&5
10231 echo $ECHO_N "checking for library containing tgetent... $ECHO_C" >&6
10232 if test "${ac_cv_search_tgetent+set}" = set; then
10233 echo $ECHO_N "(cached) $ECHO_C" >&6
10235 ac_func_search_save_LIBS=$LIBS
10236 ac_cv_search_tgetent=no
10237 cat >conftest.$ac_ext <<_ACEOF
10240 cat confdefs.h >>conftest.$ac_ext
10241 cat >>conftest.$ac_ext <<_ACEOF
10242 /* end confdefs.h. */
10244 /* Override any gcc2 internal prototype to avoid an error. */
10248 /* We use char because int might match the return type of a gcc2
10249 builtin and then its argument prototype would still apply. */
10259 rm -f conftest.$ac_objext conftest$ac_exeext
10260 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
10261 (eval $ac_link) 2>conftest.er1
10263 grep -v '^ *+' conftest.er1 >conftest.err
10265 cat conftest.err >&5
10266 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10267 (exit $ac_status); } &&
10268 { ac_try='test -z "$ac_c_werror_flag"
10269 || test ! -s conftest.err'
10270 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10271 (eval $ac_try) 2>&5
10273 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10274 (exit $ac_status); }; } &&
10275 { ac_try='test -s conftest$ac_exeext'
10276 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10277 (eval $ac_try) 2>&5
10279 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10280 (exit $ac_status); }; }; then
10281 ac_cv_search_tgetent="none required"
10283 echo "$as_me: failed program was:" >&5
10284 sed 's/^/| /' conftest.$ac_ext >&5
10287 rm -f conftest.err conftest.$ac_objext \
10288 conftest$ac_exeext conftest.$ac_ext
10289 if test "$ac_cv_search_tgetent" = no; then
10290 for ac_lib in termcap tinfo curses ncurses; do
10291 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
10292 cat >conftest.$ac_ext <<_ACEOF
10295 cat confdefs.h >>conftest.$ac_ext
10296 cat >>conftest.$ac_ext <<_ACEOF
10297 /* end confdefs.h. */
10299 /* Override any gcc2 internal prototype to avoid an error. */
10303 /* We use char because int might match the return type of a gcc2
10304 builtin and then its argument prototype would still apply. */
10314 rm -f conftest.$ac_objext conftest$ac_exeext
10315 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
10316 (eval $ac_link) 2>conftest.er1
10318 grep -v '^ *+' conftest.er1 >conftest.err
10320 cat conftest.err >&5
10321 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10322 (exit $ac_status); } &&
10323 { ac_try='test -z "$ac_c_werror_flag"
10324 || test ! -s conftest.err'
10325 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10326 (eval $ac_try) 2>&5
10328 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10329 (exit $ac_status); }; } &&
10330 { ac_try='test -s conftest$ac_exeext'
10331 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10332 (eval $ac_try) 2>&5
10334 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10335 (exit $ac_status); }; }; then
10336 ac_cv_search_tgetent="-l$ac_lib"
10339 echo "$as_me: failed program was:" >&5
10340 sed 's/^/| /' conftest.$ac_ext >&5
10343 rm -f conftest.err conftest.$ac_objext \
10344 conftest$ac_exeext conftest.$ac_ext
10347 LIBS=$ac_func_search_save_LIBS
10349 echo "$as_me:$LINENO: result: $ac_cv_search_tgetent" >&5
10350 echo "${ECHO_T}$ac_cv_search_tgetent" >&6
10351 if test "$ac_cv_search_tgetent" != no; then
10352 test "$ac_cv_search_tgetent" = "none required" || LIBS="$ac_cv_search_tgetent $LIBS"
10357 if test "$ac_cv_search_tgetent" = no; then
10358 { { echo "$as_me:$LINENO: error: no termcap library found" >&5
10359 echo "$as_me: error: no termcap library found" >&2;}
10360 { (exit 1); exit 1; }; }
10364 # Check whether --with-system-readline or --without-system-readline was given.
10365 if test "${with_system_readline+set}" = set; then
10366 withval="$with_system_readline"
10370 if test "$with_system_readline" = yes; then
10371 READLINE=-lreadline
10375 READLINE='$(READLINE_DIR)/libreadline.a'
10376 READLINE_DEPS='$(READLINE)'
10377 READLINE_CFLAGS='-I$(READLINE_SRC)/..'
10384 # Check whether --with-expat or --without-expat was given.
10385 if test "${with_expat+set}" = set; then
10386 withval="$with_expat"
10391 echo "$as_me:$LINENO: checking whether to use expat" >&5
10392 echo $ECHO_N "checking whether to use expat... $ECHO_C" >&6
10393 echo "$as_me:$LINENO: result: $with_expat" >&5
10394 echo "${ECHO_T}$with_expat" >&6
10396 if test "${with_expat}" = no; then
10397 { echo "$as_me:$LINENO: WARNING: expat support disabled; some features may be unavailable." >&5
10398 echo "$as_me: WARNING: expat support disabled; some features may be unavailable." >&2;}
10402 if test "X$prefix" = "XNONE"; then
10403 acl_final_prefix="$ac_default_prefix"
10405 acl_final_prefix="$prefix"
10407 if test "X$exec_prefix" = "XNONE"; then
10408 acl_final_exec_prefix='${prefix}'
10410 acl_final_exec_prefix="$exec_prefix"
10412 acl_save_prefix="$prefix"
10413 prefix="$acl_final_prefix"
10414 eval acl_final_exec_prefix=\"$acl_final_exec_prefix\"
10415 prefix="$acl_save_prefix"
10418 # Check whether --with-gnu-ld or --without-gnu-ld was given.
10419 if test "${with_gnu_ld+set}" = set; then
10420 withval="$with_gnu_ld"
10421 test "$withval" = no || with_gnu_ld=yes
10425 # Prepare PATH_SEPARATOR.
10426 # The user is always right.
10427 if test "${PATH_SEPARATOR+set}" != set; then
10428 echo "#! /bin/sh" >conf$$.sh
10429 echo "exit 0" >>conf$$.sh
10431 if (PATH="/nonexistent;."; conf$$.sh) >/dev/null 2>&1; then
10439 if test "$GCC" = yes; then
10440 # Check if gcc -print-prog-name=ld gives a path.
10441 echo "$as_me:$LINENO: checking for ld used by GCC" >&5
10442 echo $ECHO_N "checking for ld used by GCC... $ECHO_C" >&6
10445 # gcc leaves a trailing carriage return which upsets mingw
10446 ac_prog=`($CC -print-prog-name=ld) 2>&5 | tr -d '\015'` ;;
10448 ac_prog=`($CC -print-prog-name=ld) 2>&5` ;;
10451 # Accept absolute paths.
10452 [\\/]* | [A-Za-z]:[\\/]*)
10453 re_direlt='/[^/][^/]*/\.\./'
10454 # Canonicalize the path of ld
10455 ac_prog=`echo $ac_prog| sed 's%\\\\%/%g'`
10456 while echo $ac_prog | grep "$re_direlt" > /dev/null 2>&1; do
10457 ac_prog=`echo $ac_prog| sed "s%$re_direlt%/%"`
10459 test -z "$LD" && LD="$ac_prog"
10462 # If it fails, then pretend we aren't using GCC.
10466 # If it is relative, then search for the first ld in PATH.
10467 with_gnu_ld=unknown
10470 elif test "$with_gnu_ld" = yes; then
10471 echo "$as_me:$LINENO: checking for GNU ld" >&5
10472 echo $ECHO_N "checking for GNU ld... $ECHO_C" >&6
10474 echo "$as_me:$LINENO: checking for non-GNU ld" >&5
10475 echo $ECHO_N "checking for non-GNU ld... $ECHO_C" >&6
10477 if test "${acl_cv_path_LD+set}" = set; then
10478 echo $ECHO_N "(cached) $ECHO_C" >&6
10480 if test -z "$LD"; then
10481 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS="${IFS}${PATH_SEPARATOR-:}"
10482 for ac_dir in $PATH; do
10483 test -z "$ac_dir" && ac_dir=.
10484 if test -f "$ac_dir/$ac_prog" || test -f "$ac_dir/$ac_prog$ac_exeext"; then
10485 acl_cv_path_LD="$ac_dir/$ac_prog"
10486 # Check to see if the program is GNU ld. I'd rather use --version,
10487 # but apparently some GNU ld's only accept -v.
10488 # Break only if it was the GNU/non-GNU ld that we prefer.
10489 if "$acl_cv_path_LD" -v 2>&1 < /dev/null | egrep '(GNU|with BFD)' > /dev/null; then
10490 test "$with_gnu_ld" != no && break
10492 test "$with_gnu_ld" != yes && break
10498 acl_cv_path_LD="$LD" # Let the user override the test with a path.
10502 LD="$acl_cv_path_LD"
10503 if test -n "$LD"; then
10504 echo "$as_me:$LINENO: result: $LD" >&5
10505 echo "${ECHO_T}$LD" >&6
10507 echo "$as_me:$LINENO: result: no" >&5
10508 echo "${ECHO_T}no" >&6
10510 test -z "$LD" && { { echo "$as_me:$LINENO: error: no acceptable ld found in \$PATH" >&5
10511 echo "$as_me: error: no acceptable ld found in \$PATH" >&2;}
10512 { (exit 1); exit 1; }; }
10513 echo "$as_me:$LINENO: checking if the linker ($LD) is GNU ld" >&5
10514 echo $ECHO_N "checking if the linker ($LD) is GNU ld... $ECHO_C" >&6
10515 if test "${acl_cv_prog_gnu_ld+set}" = set; then
10516 echo $ECHO_N "(cached) $ECHO_C" >&6
10518 # I'd rather use --version here, but apparently some GNU ld's only accept -v.
10519 if $LD -v 2>&1 </dev/null | egrep '(GNU|with BFD)' 1>&5; then
10520 acl_cv_prog_gnu_ld=yes
10522 acl_cv_prog_gnu_ld=no
10525 echo "$as_me:$LINENO: result: $acl_cv_prog_gnu_ld" >&5
10526 echo "${ECHO_T}$acl_cv_prog_gnu_ld" >&6
10527 with_gnu_ld=$acl_cv_prog_gnu_ld
10531 echo "$as_me:$LINENO: checking for shared library run path origin" >&5
10532 echo $ECHO_N "checking for shared library run path origin... $ECHO_C" >&6
10533 if test "${acl_cv_rpath+set}" = set; then
10534 echo $ECHO_N "(cached) $ECHO_C" >&6
10537 CC="$CC" GCC="$GCC" LDFLAGS="$LDFLAGS" LD="$LD" with_gnu_ld="$with_gnu_ld" \
10538 ${CONFIG_SHELL-/bin/sh} "$ac_aux_dir/config.rpath" "$host" > conftest.sh
10540 rm -f ./conftest.sh
10544 echo "$as_me:$LINENO: result: $acl_cv_rpath" >&5
10545 echo "${ECHO_T}$acl_cv_rpath" >&6
10547 libext="$acl_cv_libext"
10548 shlibext="$acl_cv_shlibext"
10549 hardcode_libdir_flag_spec="$acl_cv_hardcode_libdir_flag_spec"
10550 hardcode_libdir_separator="$acl_cv_hardcode_libdir_separator"
10551 hardcode_direct="$acl_cv_hardcode_direct"
10552 hardcode_minus_L="$acl_cv_hardcode_minus_L"
10553 # Check whether --enable-rpath or --disable-rpath was given.
10554 if test "${enable_rpath+set}" = set; then
10555 enableval="$enable_rpath"
10571 acl_save_prefix="$prefix"
10572 prefix="$acl_final_prefix"
10573 acl_save_exec_prefix="$exec_prefix"
10574 exec_prefix="$acl_final_exec_prefix"
10576 eval additional_includedir=\"$includedir\"
10577 eval additional_libdir=\"$libdir\"
10579 exec_prefix="$acl_save_exec_prefix"
10580 prefix="$acl_save_prefix"
10583 # Check whether --with-libexpat-prefix or --without-libexpat-prefix was given.
10584 if test "${with_libexpat_prefix+set}" = set; then
10585 withval="$with_libexpat_prefix"
10587 if test "X$withval" = "Xno"; then
10590 if test "X$withval" = "X"; then
10592 acl_save_prefix="$prefix"
10593 prefix="$acl_final_prefix"
10594 acl_save_exec_prefix="$exec_prefix"
10595 exec_prefix="$acl_final_exec_prefix"
10597 eval additional_includedir=\"$includedir\"
10598 eval additional_libdir=\"$libdir\"
10600 exec_prefix="$acl_save_exec_prefix"
10601 prefix="$acl_save_prefix"
10604 additional_includedir="$withval/include"
10605 additional_libdir="$withval/lib"
10615 names_already_handled=
10616 names_next_round='expat '
10617 while test -n "$names_next_round"; do
10618 names_this_round="$names_next_round"
10620 for name in $names_this_round; do
10622 for n in $names_already_handled; do
10623 if test "$n" = "$name"; then
10624 already_handled=yes
10628 if test -z "$already_handled"; then
10629 names_already_handled="$names_already_handled $name"
10630 uppername=`echo "$name" | sed -e 'y|abcdefghijklmnopqrstuvwxyz./-|ABCDEFGHIJKLMNOPQRSTUVWXYZ___|'`
10631 eval value=\"\$HAVE_LIB$uppername\"
10632 if test -n "$value"; then
10633 if test "$value" = yes; then
10634 eval value=\"\$LIB$uppername\"
10635 test -z "$value" || LIBEXPAT="${LIBEXPAT}${LIBEXPAT:+ }$value"
10636 eval value=\"\$LTLIB$uppername\"
10637 test -z "$value" || LTLIBEXPAT="${LTLIBEXPAT}${LTLIBEXPAT:+ }$value"
10646 if test $use_additional = yes; then
10647 if test -n "$shlibext" && test -f "$additional_libdir/lib$name.$shlibext"; then
10648 found_dir="$additional_libdir"
10649 found_so="$additional_libdir/lib$name.$shlibext"
10650 if test -f "$additional_libdir/lib$name.la"; then
10651 found_la="$additional_libdir/lib$name.la"
10654 if test -f "$additional_libdir/lib$name.$libext"; then
10655 found_dir="$additional_libdir"
10656 found_a="$additional_libdir/lib$name.$libext"
10657 if test -f "$additional_libdir/lib$name.la"; then
10658 found_la="$additional_libdir/lib$name.la"
10663 if test "X$found_dir" = "X"; then
10664 for x in $LDFLAGS $LTLIBEXPAT; do
10666 acl_save_prefix="$prefix"
10667 prefix="$acl_final_prefix"
10668 acl_save_exec_prefix="$exec_prefix"
10669 exec_prefix="$acl_final_exec_prefix"
10671 exec_prefix="$acl_save_exec_prefix"
10672 prefix="$acl_save_prefix"
10676 dir=`echo "X$x" | sed -e 's/^X-L//'`
10677 if test -n "$shlibext" && test -f "$dir/lib$name.$shlibext"; then
10679 found_so="$dir/lib$name.$shlibext"
10680 if test -f "$dir/lib$name.la"; then
10681 found_la="$dir/lib$name.la"
10684 if test -f "$dir/lib$name.$libext"; then
10686 found_a="$dir/lib$name.$libext"
10687 if test -f "$dir/lib$name.la"; then
10688 found_la="$dir/lib$name.la"
10694 if test "X$found_dir" != "X"; then
10699 if test "X$found_dir" != "X"; then
10700 LTLIBEXPAT="${LTLIBEXPAT}${LTLIBEXPAT:+ }-L$found_dir -l$name"
10701 if test "X$found_so" != "X"; then
10702 if test "$enable_rpath" = no || test "X$found_dir" = "X/usr/lib"; then
10703 LIBEXPAT="${LIBEXPAT}${LIBEXPAT:+ }$found_so"
10706 for x in $ltrpathdirs; do
10707 if test "X$x" = "X$found_dir"; then
10712 if test -z "$haveit"; then
10713 ltrpathdirs="$ltrpathdirs $found_dir"
10715 if test "$hardcode_direct" = yes; then
10716 LIBEXPAT="${LIBEXPAT}${LIBEXPAT:+ }$found_so"
10718 if test -n "$hardcode_libdir_flag_spec" && test "$hardcode_minus_L" = no; then
10719 LIBEXPAT="${LIBEXPAT}${LIBEXPAT:+ }$found_so"
10721 for x in $rpathdirs; do
10722 if test "X$x" = "X$found_dir"; then
10727 if test -z "$haveit"; then
10728 rpathdirs="$rpathdirs $found_dir"
10732 for x in $LDFLAGS $LIBEXPAT; do
10734 acl_save_prefix="$prefix"
10735 prefix="$acl_final_prefix"
10736 acl_save_exec_prefix="$exec_prefix"
10737 exec_prefix="$acl_final_exec_prefix"
10739 exec_prefix="$acl_save_exec_prefix"
10740 prefix="$acl_save_prefix"
10742 if test "X$x" = "X-L$found_dir"; then
10747 if test -z "$haveit"; then
10748 LIBEXPAT="${LIBEXPAT}${LIBEXPAT:+ }-L$found_dir"
10750 if test "$hardcode_minus_L" != no; then
10751 LIBEXPAT="${LIBEXPAT}${LIBEXPAT:+ }$found_so"
10753 LIBEXPAT="${LIBEXPAT}${LIBEXPAT:+ }-l$name"
10759 if test "X$found_a" != "X"; then
10760 LIBEXPAT="${LIBEXPAT}${LIBEXPAT:+ }$found_a"
10762 LIBEXPAT="${LIBEXPAT}${LIBEXPAT:+ }-L$found_dir -l$name"
10765 additional_includedir=
10766 case "$found_dir" in
10768 basedir=`echo "X$found_dir" | sed -e 's,^X,,' -e 's,/lib/*$,,'`
10769 additional_includedir="$basedir/include"
10772 if test "X$additional_includedir" != "X"; then
10773 if test "X$additional_includedir" != "X/usr/include"; then
10775 if test "X$additional_includedir" = "X/usr/local/include"; then
10776 if test -n "$GCC"; then
10778 linux*) haveit=yes;;
10782 if test -z "$haveit"; then
10783 for x in $CPPFLAGS $INCEXPAT; do
10785 acl_save_prefix="$prefix"
10786 prefix="$acl_final_prefix"
10787 acl_save_exec_prefix="$exec_prefix"
10788 exec_prefix="$acl_final_exec_prefix"
10790 exec_prefix="$acl_save_exec_prefix"
10791 prefix="$acl_save_prefix"
10793 if test "X$x" = "X-I$additional_includedir"; then
10798 if test -z "$haveit"; then
10799 if test -d "$additional_includedir"; then
10800 INCEXPAT="${INCEXPAT}${INCEXPAT:+ }-I$additional_includedir"
10806 if test -n "$found_la"; then
10807 save_libdir="$libdir"
10808 case "$found_la" in
10809 */* | *\\*) . "$found_la" ;;
10810 *) . "./$found_la" ;;
10812 libdir="$save_libdir"
10813 for dep in $dependency_libs; do
10816 additional_libdir=`echo "X$dep" | sed -e 's/^X-L//'`
10817 if test "X$additional_libdir" != "X/usr/lib"; then
10819 if test "X$additional_libdir" = "X/usr/local/lib"; then
10820 if test -n "$GCC"; then
10822 linux*) haveit=yes;;
10826 if test -z "$haveit"; then
10828 for x in $LDFLAGS $LIBEXPAT; do
10830 acl_save_prefix="$prefix"
10831 prefix="$acl_final_prefix"
10832 acl_save_exec_prefix="$exec_prefix"
10833 exec_prefix="$acl_final_exec_prefix"
10835 exec_prefix="$acl_save_exec_prefix"
10836 prefix="$acl_save_prefix"
10838 if test "X$x" = "X-L$additional_libdir"; then
10843 if test -z "$haveit"; then
10844 if test -d "$additional_libdir"; then
10845 LIBEXPAT="${LIBEXPAT}${LIBEXPAT:+ }-L$additional_libdir"
10849 for x in $LDFLAGS $LTLIBEXPAT; do
10851 acl_save_prefix="$prefix"
10852 prefix="$acl_final_prefix"
10853 acl_save_exec_prefix="$exec_prefix"
10854 exec_prefix="$acl_final_exec_prefix"
10856 exec_prefix="$acl_save_exec_prefix"
10857 prefix="$acl_save_prefix"
10859 if test "X$x" = "X-L$additional_libdir"; then
10864 if test -z "$haveit"; then
10865 if test -d "$additional_libdir"; then
10866 LTLIBEXPAT="${LTLIBEXPAT}${LTLIBEXPAT:+ }-L$additional_libdir"
10873 dir=`echo "X$dep" | sed -e 's/^X-R//'`
10874 if test "$enable_rpath" != no; then
10876 for x in $rpathdirs; do
10877 if test "X$x" = "X$dir"; then
10882 if test -z "$haveit"; then
10883 rpathdirs="$rpathdirs $dir"
10886 for x in $ltrpathdirs; do
10887 if test "X$x" = "X$dir"; then
10892 if test -z "$haveit"; then
10893 ltrpathdirs="$ltrpathdirs $dir"
10898 names_next_round="$names_next_round "`echo "X$dep" | sed -e 's/^X-l//'`
10901 names_next_round="$names_next_round "`echo "X$dep" | sed -e 's,^X.*/,,' -e 's,^lib,,' -e 's,\.la$,,'`
10904 LIBEXPAT="${LIBEXPAT}${LIBEXPAT:+ }$dep"
10905 LTLIBEXPAT="${LTLIBEXPAT}${LTLIBEXPAT:+ }$dep"
10911 LIBEXPAT="${LIBEXPAT}${LIBEXPAT:+ }-l$name"
10912 LTLIBEXPAT="${LTLIBEXPAT}${LTLIBEXPAT:+ }-l$name"
10918 if test "X$rpathdirs" != "X"; then
10919 if test -n "$hardcode_libdir_separator"; then
10921 for found_dir in $rpathdirs; do
10922 alldirs="${alldirs}${alldirs:+$hardcode_libdir_separator}$found_dir"
10924 acl_save_libdir="$libdir"
10926 eval flag=\"$hardcode_libdir_flag_spec\"
10927 libdir="$acl_save_libdir"
10928 LIBEXPAT="${LIBEXPAT}${LIBEXPAT:+ }$flag"
10930 for found_dir in $rpathdirs; do
10931 acl_save_libdir="$libdir"
10932 libdir="$found_dir"
10933 eval flag=\"$hardcode_libdir_flag_spec\"
10934 libdir="$acl_save_libdir"
10935 LIBEXPAT="${LIBEXPAT}${LIBEXPAT:+ }$flag"
10939 if test "X$ltrpathdirs" != "X"; then
10940 for found_dir in $ltrpathdirs; do
10941 LTLIBEXPAT="${LTLIBEXPAT}${LTLIBEXPAT:+ }-R$found_dir"
10946 ac_save_CPPFLAGS="$CPPFLAGS"
10948 for element in $INCEXPAT; do
10950 for x in $CPPFLAGS; do
10952 acl_save_prefix="$prefix"
10953 prefix="$acl_final_prefix"
10954 acl_save_exec_prefix="$exec_prefix"
10955 exec_prefix="$acl_final_exec_prefix"
10957 exec_prefix="$acl_save_exec_prefix"
10958 prefix="$acl_save_prefix"
10960 if test "X$x" = "X$element"; then
10965 if test -z "$haveit"; then
10966 CPPFLAGS="${CPPFLAGS}${CPPFLAGS:+ }$element"
10971 echo "$as_me:$LINENO: checking for libexpat" >&5
10972 echo $ECHO_N "checking for libexpat... $ECHO_C" >&6
10973 if test "${ac_cv_libexpat+set}" = set; then
10974 echo $ECHO_N "(cached) $ECHO_C" >&6
10977 ac_save_LIBS="$LIBS"
10978 LIBS="$LIBS $LIBEXPAT"
10979 cat >conftest.$ac_ext <<_ACEOF
10982 cat confdefs.h >>conftest.$ac_ext
10983 cat >>conftest.$ac_ext <<_ACEOF
10984 /* end confdefs.h. */
10989 XML_Parser p = XML_ParserCreate (0);
10994 rm -f conftest.$ac_objext conftest$ac_exeext
10995 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
10996 (eval $ac_link) 2>conftest.er1
10998 grep -v '^ *+' conftest.er1 >conftest.err
11000 cat conftest.err >&5
11001 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11002 (exit $ac_status); } &&
11003 { ac_try='test -z "$ac_c_werror_flag"
11004 || test ! -s conftest.err'
11005 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11006 (eval $ac_try) 2>&5
11008 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11009 (exit $ac_status); }; } &&
11010 { ac_try='test -s conftest$ac_exeext'
11011 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11012 (eval $ac_try) 2>&5
11014 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11015 (exit $ac_status); }; }; then
11018 echo "$as_me: failed program was:" >&5
11019 sed 's/^/| /' conftest.$ac_ext >&5
11023 rm -f conftest.err conftest.$ac_objext \
11024 conftest$ac_exeext conftest.$ac_ext
11025 LIBS="$ac_save_LIBS"
11028 echo "$as_me:$LINENO: result: $ac_cv_libexpat" >&5
11029 echo "${ECHO_T}$ac_cv_libexpat" >&6
11030 if test "$ac_cv_libexpat" = yes; then
11033 cat >>confdefs.h <<\_ACEOF
11034 #define HAVE_LIBEXPAT 1
11037 echo "$as_me:$LINENO: checking how to link with libexpat" >&5
11038 echo $ECHO_N "checking how to link with libexpat... $ECHO_C" >&6
11039 echo "$as_me:$LINENO: result: $LIBEXPAT" >&5
11040 echo "${ECHO_T}$LIBEXPAT" >&6
11043 CPPFLAGS="$ac_save_CPPFLAGS"
11053 if test "$HAVE_LIBEXPAT" != yes; then
11054 if test "$with_expat" = yes; then
11055 { { echo "$as_me:$LINENO: error: expat is missing or unusable" >&5
11056 echo "$as_me: error: expat is missing or unusable" >&2;}
11057 { (exit 1); exit 1; }; }
11059 { echo "$as_me:$LINENO: WARNING: expat is missing or unusable; some features may be unavailable." >&5
11060 echo "$as_me: WARNING: expat is missing or unusable; some features may be unavailable." >&2;}
11064 LIBS="$LIBS $LIBEXPAT"
11066 for ac_func in XML_StopParser
11068 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
11069 echo "$as_me:$LINENO: checking for $ac_func" >&5
11070 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
11071 if eval "test \"\${$as_ac_var+set}\" = set"; then
11072 echo $ECHO_N "(cached) $ECHO_C" >&6
11074 cat >conftest.$ac_ext <<_ACEOF
11077 cat confdefs.h >>conftest.$ac_ext
11078 cat >>conftest.$ac_ext <<_ACEOF
11079 /* end confdefs.h. */
11080 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
11081 For example, HP-UX 11i <limits.h> declares gettimeofday. */
11082 #define $ac_func innocuous_$ac_func
11084 /* System header to define __stub macros and hopefully few prototypes,
11085 which can conflict with char $ac_func (); below.
11086 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
11087 <limits.h> exists even on freestanding compilers. */
11090 # include <limits.h>
11092 # include <assert.h>
11097 /* Override any gcc2 internal prototype to avoid an error. */
11102 /* We use char because int might match the return type of a gcc2
11103 builtin and then its argument prototype would still apply. */
11105 /* The GNU C library defines this for functions which it implements
11106 to always fail with ENOSYS. Some functions are actually named
11107 something starting with __ and the normal name is an alias. */
11108 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
11111 char (*f) () = $ac_func;
11120 return f != $ac_func;
11125 rm -f conftest.$ac_objext conftest$ac_exeext
11126 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
11127 (eval $ac_link) 2>conftest.er1
11129 grep -v '^ *+' conftest.er1 >conftest.err
11131 cat conftest.err >&5
11132 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11133 (exit $ac_status); } &&
11134 { ac_try='test -z "$ac_c_werror_flag"
11135 || test ! -s conftest.err'
11136 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11137 (eval $ac_try) 2>&5
11139 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11140 (exit $ac_status); }; } &&
11141 { ac_try='test -s conftest$ac_exeext'
11142 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11143 (eval $ac_try) 2>&5
11145 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11146 (exit $ac_status); }; }; then
11147 eval "$as_ac_var=yes"
11149 echo "$as_me: failed program was:" >&5
11150 sed 's/^/| /' conftest.$ac_ext >&5
11152 eval "$as_ac_var=no"
11154 rm -f conftest.err conftest.$ac_objext \
11155 conftest$ac_exeext conftest.$ac_ext
11157 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
11158 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
11159 if test `eval echo '${'$as_ac_var'}'` = yes; then
11160 cat >>confdefs.h <<_ACEOF
11161 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
11171 # ------------------------- #
11172 # Checks for header files. #
11173 # ------------------------- #
11180 ac_header_dirent=no
11181 for ac_hdr in dirent.h sys/ndir.h sys/dir.h ndir.h; do
11182 as_ac_Header=`echo "ac_cv_header_dirent_$ac_hdr" | $as_tr_sh`
11183 echo "$as_me:$LINENO: checking for $ac_hdr that defines DIR" >&5
11184 echo $ECHO_N "checking for $ac_hdr that defines DIR... $ECHO_C" >&6
11185 if eval "test \"\${$as_ac_Header+set}\" = set"; then
11186 echo $ECHO_N "(cached) $ECHO_C" >&6
11188 cat >conftest.$ac_ext <<_ACEOF
11191 cat confdefs.h >>conftest.$ac_ext
11192 cat >>conftest.$ac_ext <<_ACEOF
11193 /* end confdefs.h. */
11194 #include <sys/types.h>
11206 rm -f conftest.$ac_objext
11207 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
11208 (eval $ac_compile) 2>conftest.er1
11210 grep -v '^ *+' conftest.er1 >conftest.err
11212 cat conftest.err >&5
11213 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11214 (exit $ac_status); } &&
11215 { ac_try='test -z "$ac_c_werror_flag"
11216 || test ! -s conftest.err'
11217 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11218 (eval $ac_try) 2>&5
11220 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11221 (exit $ac_status); }; } &&
11222 { ac_try='test -s conftest.$ac_objext'
11223 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11224 (eval $ac_try) 2>&5
11226 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11227 (exit $ac_status); }; }; then
11228 eval "$as_ac_Header=yes"
11230 echo "$as_me: failed program was:" >&5
11231 sed 's/^/| /' conftest.$ac_ext >&5
11233 eval "$as_ac_Header=no"
11235 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
11237 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
11238 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
11239 if test `eval echo '${'$as_ac_Header'}'` = yes; then
11240 cat >>confdefs.h <<_ACEOF
11241 #define `echo "HAVE_$ac_hdr" | $as_tr_cpp` 1
11244 ac_header_dirent=$ac_hdr; break
11248 # Two versions of opendir et al. are in -ldir and -lx on SCO Xenix.
11249 if test $ac_header_dirent = dirent.h; then
11250 echo "$as_me:$LINENO: checking for library containing opendir" >&5
11251 echo $ECHO_N "checking for library containing opendir... $ECHO_C" >&6
11252 if test "${ac_cv_search_opendir+set}" = set; then
11253 echo $ECHO_N "(cached) $ECHO_C" >&6
11255 ac_func_search_save_LIBS=$LIBS
11256 ac_cv_search_opendir=no
11257 cat >conftest.$ac_ext <<_ACEOF
11260 cat confdefs.h >>conftest.$ac_ext
11261 cat >>conftest.$ac_ext <<_ACEOF
11262 /* end confdefs.h. */
11264 /* Override any gcc2 internal prototype to avoid an error. */
11268 /* We use char because int might match the return type of a gcc2
11269 builtin and then its argument prototype would still apply. */
11279 rm -f conftest.$ac_objext conftest$ac_exeext
11280 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
11281 (eval $ac_link) 2>conftest.er1
11283 grep -v '^ *+' conftest.er1 >conftest.err
11285 cat conftest.err >&5
11286 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11287 (exit $ac_status); } &&
11288 { ac_try='test -z "$ac_c_werror_flag"
11289 || test ! -s conftest.err'
11290 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11291 (eval $ac_try) 2>&5
11293 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11294 (exit $ac_status); }; } &&
11295 { ac_try='test -s conftest$ac_exeext'
11296 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11297 (eval $ac_try) 2>&5
11299 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11300 (exit $ac_status); }; }; then
11301 ac_cv_search_opendir="none required"
11303 echo "$as_me: failed program was:" >&5
11304 sed 's/^/| /' conftest.$ac_ext >&5
11307 rm -f conftest.err conftest.$ac_objext \
11308 conftest$ac_exeext conftest.$ac_ext
11309 if test "$ac_cv_search_opendir" = no; then
11310 for ac_lib in dir; do
11311 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
11312 cat >conftest.$ac_ext <<_ACEOF
11315 cat confdefs.h >>conftest.$ac_ext
11316 cat >>conftest.$ac_ext <<_ACEOF
11317 /* end confdefs.h. */
11319 /* Override any gcc2 internal prototype to avoid an error. */
11323 /* We use char because int might match the return type of a gcc2
11324 builtin and then its argument prototype would still apply. */
11334 rm -f conftest.$ac_objext conftest$ac_exeext
11335 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
11336 (eval $ac_link) 2>conftest.er1
11338 grep -v '^ *+' conftest.er1 >conftest.err
11340 cat conftest.err >&5
11341 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11342 (exit $ac_status); } &&
11343 { ac_try='test -z "$ac_c_werror_flag"
11344 || test ! -s conftest.err'
11345 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11346 (eval $ac_try) 2>&5
11348 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11349 (exit $ac_status); }; } &&
11350 { ac_try='test -s conftest$ac_exeext'
11351 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11352 (eval $ac_try) 2>&5
11354 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11355 (exit $ac_status); }; }; then
11356 ac_cv_search_opendir="-l$ac_lib"
11359 echo "$as_me: failed program was:" >&5
11360 sed 's/^/| /' conftest.$ac_ext >&5
11363 rm -f conftest.err conftest.$ac_objext \
11364 conftest$ac_exeext conftest.$ac_ext
11367 LIBS=$ac_func_search_save_LIBS
11369 echo "$as_me:$LINENO: result: $ac_cv_search_opendir" >&5
11370 echo "${ECHO_T}$ac_cv_search_opendir" >&6
11371 if test "$ac_cv_search_opendir" != no; then
11372 test "$ac_cv_search_opendir" = "none required" || LIBS="$ac_cv_search_opendir $LIBS"
11377 echo "$as_me:$LINENO: checking for library containing opendir" >&5
11378 echo $ECHO_N "checking for library containing opendir... $ECHO_C" >&6
11379 if test "${ac_cv_search_opendir+set}" = set; then
11380 echo $ECHO_N "(cached) $ECHO_C" >&6
11382 ac_func_search_save_LIBS=$LIBS
11383 ac_cv_search_opendir=no
11384 cat >conftest.$ac_ext <<_ACEOF
11387 cat confdefs.h >>conftest.$ac_ext
11388 cat >>conftest.$ac_ext <<_ACEOF
11389 /* end confdefs.h. */
11391 /* Override any gcc2 internal prototype to avoid an error. */
11395 /* We use char because int might match the return type of a gcc2
11396 builtin and then its argument prototype would still apply. */
11406 rm -f conftest.$ac_objext conftest$ac_exeext
11407 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
11408 (eval $ac_link) 2>conftest.er1
11410 grep -v '^ *+' conftest.er1 >conftest.err
11412 cat conftest.err >&5
11413 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11414 (exit $ac_status); } &&
11415 { ac_try='test -z "$ac_c_werror_flag"
11416 || test ! -s conftest.err'
11417 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11418 (eval $ac_try) 2>&5
11420 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11421 (exit $ac_status); }; } &&
11422 { ac_try='test -s conftest$ac_exeext'
11423 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11424 (eval $ac_try) 2>&5
11426 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11427 (exit $ac_status); }; }; then
11428 ac_cv_search_opendir="none required"
11430 echo "$as_me: failed program was:" >&5
11431 sed 's/^/| /' conftest.$ac_ext >&5
11434 rm -f conftest.err conftest.$ac_objext \
11435 conftest$ac_exeext conftest.$ac_ext
11436 if test "$ac_cv_search_opendir" = no; then
11437 for ac_lib in x; do
11438 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
11439 cat >conftest.$ac_ext <<_ACEOF
11442 cat confdefs.h >>conftest.$ac_ext
11443 cat >>conftest.$ac_ext <<_ACEOF
11444 /* end confdefs.h. */
11446 /* Override any gcc2 internal prototype to avoid an error. */
11450 /* We use char because int might match the return type of a gcc2
11451 builtin and then its argument prototype would still apply. */
11461 rm -f conftest.$ac_objext conftest$ac_exeext
11462 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
11463 (eval $ac_link) 2>conftest.er1
11465 grep -v '^ *+' conftest.er1 >conftest.err
11467 cat conftest.err >&5
11468 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11469 (exit $ac_status); } &&
11470 { ac_try='test -z "$ac_c_werror_flag"
11471 || test ! -s conftest.err'
11472 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11473 (eval $ac_try) 2>&5
11475 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11476 (exit $ac_status); }; } &&
11477 { ac_try='test -s conftest$ac_exeext'
11478 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11479 (eval $ac_try) 2>&5
11481 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11482 (exit $ac_status); }; }; then
11483 ac_cv_search_opendir="-l$ac_lib"
11486 echo "$as_me: failed program was:" >&5
11487 sed 's/^/| /' conftest.$ac_ext >&5
11490 rm -f conftest.err conftest.$ac_objext \
11491 conftest$ac_exeext conftest.$ac_ext
11494 LIBS=$ac_func_search_save_LIBS
11496 echo "$as_me:$LINENO: result: $ac_cv_search_opendir" >&5
11497 echo "${ECHO_T}$ac_cv_search_opendir" >&6
11498 if test "$ac_cv_search_opendir" != no; then
11499 test "$ac_cv_search_opendir" = "none required" || LIBS="$ac_cv_search_opendir $LIBS"
11505 echo "$as_me:$LINENO: checking whether stat file-mode macros are broken" >&5
11506 echo $ECHO_N "checking whether stat file-mode macros are broken... $ECHO_C" >&6
11507 if test "${ac_cv_header_stat_broken+set}" = set; then
11508 echo $ECHO_N "(cached) $ECHO_C" >&6
11510 cat >conftest.$ac_ext <<_ACEOF
11513 cat confdefs.h >>conftest.$ac_ext
11514 cat >>conftest.$ac_ext <<_ACEOF
11515 /* end confdefs.h. */
11516 #include <sys/types.h>
11517 #include <sys/stat.h>
11519 #if defined(S_ISBLK) && defined(S_IFDIR)
11520 # if S_ISBLK (S_IFDIR)
11525 #if defined(S_ISBLK) && defined(S_IFCHR)
11526 # if S_ISBLK (S_IFCHR)
11531 #if defined(S_ISLNK) && defined(S_IFREG)
11532 # if S_ISLNK (S_IFREG)
11537 #if defined(S_ISSOCK) && defined(S_IFREG)
11538 # if S_ISSOCK (S_IFREG)
11544 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
11545 $EGREP "You lose" >/dev/null 2>&1; then
11546 ac_cv_header_stat_broken=yes
11548 ac_cv_header_stat_broken=no
11553 echo "$as_me:$LINENO: result: $ac_cv_header_stat_broken" >&5
11554 echo "${ECHO_T}$ac_cv_header_stat_broken" >&6
11555 if test $ac_cv_header_stat_broken = yes; then
11557 cat >>confdefs.h <<\_ACEOF
11558 #define STAT_MACROS_BROKEN 1
11563 echo "$as_me:$LINENO: checking for ANSI C header files" >&5
11564 echo $ECHO_N "checking for ANSI C header files... $ECHO_C" >&6
11565 if test "${ac_cv_header_stdc+set}" = set; then
11566 echo $ECHO_N "(cached) $ECHO_C" >&6
11568 cat >conftest.$ac_ext <<_ACEOF
11571 cat confdefs.h >>conftest.$ac_ext
11572 cat >>conftest.$ac_ext <<_ACEOF
11573 /* end confdefs.h. */
11574 #include <stdlib.h>
11575 #include <stdarg.h>
11576 #include <string.h>
11587 rm -f conftest.$ac_objext
11588 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
11589 (eval $ac_compile) 2>conftest.er1
11591 grep -v '^ *+' conftest.er1 >conftest.err
11593 cat conftest.err >&5
11594 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11595 (exit $ac_status); } &&
11596 { ac_try='test -z "$ac_c_werror_flag"
11597 || test ! -s conftest.err'
11598 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11599 (eval $ac_try) 2>&5
11601 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11602 (exit $ac_status); }; } &&
11603 { ac_try='test -s conftest.$ac_objext'
11604 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11605 (eval $ac_try) 2>&5
11607 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11608 (exit $ac_status); }; }; then
11609 ac_cv_header_stdc=yes
11611 echo "$as_me: failed program was:" >&5
11612 sed 's/^/| /' conftest.$ac_ext >&5
11614 ac_cv_header_stdc=no
11616 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
11618 if test $ac_cv_header_stdc = yes; then
11619 # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
11620 cat >conftest.$ac_ext <<_ACEOF
11623 cat confdefs.h >>conftest.$ac_ext
11624 cat >>conftest.$ac_ext <<_ACEOF
11625 /* end confdefs.h. */
11626 #include <string.h>
11629 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
11630 $EGREP "memchr" >/dev/null 2>&1; then
11633 ac_cv_header_stdc=no
11639 if test $ac_cv_header_stdc = yes; then
11640 # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
11641 cat >conftest.$ac_ext <<_ACEOF
11644 cat confdefs.h >>conftest.$ac_ext
11645 cat >>conftest.$ac_ext <<_ACEOF
11646 /* end confdefs.h. */
11647 #include <stdlib.h>
11650 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
11651 $EGREP "free" >/dev/null 2>&1; then
11654 ac_cv_header_stdc=no
11660 if test $ac_cv_header_stdc = yes; then
11661 # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
11662 if test "$cross_compiling" = yes; then
11665 cat >conftest.$ac_ext <<_ACEOF
11668 cat confdefs.h >>conftest.$ac_ext
11669 cat >>conftest.$ac_ext <<_ACEOF
11670 /* end confdefs.h. */
11672 #if ((' ' & 0x0FF) == 0x020)
11673 # define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
11674 # define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
11676 # define ISLOWER(c) \
11677 (('a' <= (c) && (c) <= 'i') \
11678 || ('j' <= (c) && (c) <= 'r') \
11679 || ('s' <= (c) && (c) <= 'z'))
11680 # define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
11683 #define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
11688 for (i = 0; i < 256; i++)
11689 if (XOR (islower (i), ISLOWER (i))
11690 || toupper (i) != TOUPPER (i))
11695 rm -f conftest$ac_exeext
11696 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
11697 (eval $ac_link) 2>&5
11699 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11700 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
11701 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11702 (eval $ac_try) 2>&5
11704 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11705 (exit $ac_status); }; }; then
11708 echo "$as_me: program exited with status $ac_status" >&5
11709 echo "$as_me: failed program was:" >&5
11710 sed 's/^/| /' conftest.$ac_ext >&5
11712 ( exit $ac_status )
11713 ac_cv_header_stdc=no
11715 rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
11719 echo "$as_me:$LINENO: result: $ac_cv_header_stdc" >&5
11720 echo "${ECHO_T}$ac_cv_header_stdc" >&6
11721 if test $ac_cv_header_stdc = yes; then
11723 cat >>confdefs.h <<\_ACEOF
11724 #define STDC_HEADERS 1
11730 for ac_header in nlist.h
11732 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
11733 if eval "test \"\${$as_ac_Header+set}\" = set"; then
11734 echo "$as_me:$LINENO: checking for $ac_header" >&5
11735 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
11736 if eval "test \"\${$as_ac_Header+set}\" = set"; then
11737 echo $ECHO_N "(cached) $ECHO_C" >&6
11739 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
11740 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
11742 # Is the header compilable?
11743 echo "$as_me:$LINENO: checking $ac_header usability" >&5
11744 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
11745 cat >conftest.$ac_ext <<_ACEOF
11748 cat confdefs.h >>conftest.$ac_ext
11749 cat >>conftest.$ac_ext <<_ACEOF
11750 /* end confdefs.h. */
11751 $ac_includes_default
11752 #include <$ac_header>
11754 rm -f conftest.$ac_objext
11755 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
11756 (eval $ac_compile) 2>conftest.er1
11758 grep -v '^ *+' conftest.er1 >conftest.err
11760 cat conftest.err >&5
11761 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11762 (exit $ac_status); } &&
11763 { ac_try='test -z "$ac_c_werror_flag"
11764 || test ! -s conftest.err'
11765 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11766 (eval $ac_try) 2>&5
11768 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11769 (exit $ac_status); }; } &&
11770 { ac_try='test -s conftest.$ac_objext'
11771 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11772 (eval $ac_try) 2>&5
11774 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11775 (exit $ac_status); }; }; then
11776 ac_header_compiler=yes
11778 echo "$as_me: failed program was:" >&5
11779 sed 's/^/| /' conftest.$ac_ext >&5
11781 ac_header_compiler=no
11783 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
11784 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
11785 echo "${ECHO_T}$ac_header_compiler" >&6
11787 # Is the header present?
11788 echo "$as_me:$LINENO: checking $ac_header presence" >&5
11789 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
11790 cat >conftest.$ac_ext <<_ACEOF
11793 cat confdefs.h >>conftest.$ac_ext
11794 cat >>conftest.$ac_ext <<_ACEOF
11795 /* end confdefs.h. */
11796 #include <$ac_header>
11798 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
11799 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
11801 grep -v '^ *+' conftest.er1 >conftest.err
11803 cat conftest.err >&5
11804 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11805 (exit $ac_status); } >/dev/null; then
11806 if test -s conftest.err; then
11807 ac_cpp_err=$ac_c_preproc_warn_flag
11808 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
11815 if test -z "$ac_cpp_err"; then
11816 ac_header_preproc=yes
11818 echo "$as_me: failed program was:" >&5
11819 sed 's/^/| /' conftest.$ac_ext >&5
11821 ac_header_preproc=no
11823 rm -f conftest.err conftest.$ac_ext
11824 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
11825 echo "${ECHO_T}$ac_header_preproc" >&6
11827 # So? What about this header?
11828 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
11830 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
11831 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
11832 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
11833 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
11834 ac_header_preproc=yes
11837 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
11838 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
11839 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
11840 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
11841 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
11842 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
11843 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
11844 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
11845 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
11846 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
11847 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
11848 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
11851 ## ------------------------------------------ ##
11852 ## Report this to the AC_PACKAGE_NAME lists. ##
11853 ## ------------------------------------------ ##
11856 sed "s/^/$as_me: WARNING: /" >&2
11859 echo "$as_me:$LINENO: checking for $ac_header" >&5
11860 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
11861 if eval "test \"\${$as_ac_Header+set}\" = set"; then
11862 echo $ECHO_N "(cached) $ECHO_C" >&6
11864 eval "$as_ac_Header=\$ac_header_preproc"
11866 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
11867 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
11870 if test `eval echo '${'$as_ac_Header'}'` = yes; then
11871 cat >>confdefs.h <<_ACEOF
11872 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
11880 for ac_header in link.h
11882 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
11883 echo "$as_me:$LINENO: checking for $ac_header" >&5
11884 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
11885 if eval "test \"\${$as_ac_Header+set}\" = set"; then
11886 echo $ECHO_N "(cached) $ECHO_C" >&6
11888 cat >conftest.$ac_ext <<_ACEOF
11891 cat confdefs.h >>conftest.$ac_ext
11892 cat >>conftest.$ac_ext <<_ACEOF
11893 /* end confdefs.h. */
11894 #if HAVE_SYS_TYPES_H
11895 # include <sys/types.h>
11898 # include <nlist.h>
11902 #include <$ac_header>
11904 rm -f conftest.$ac_objext
11905 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
11906 (eval $ac_compile) 2>conftest.er1
11908 grep -v '^ *+' conftest.er1 >conftest.err
11910 cat conftest.err >&5
11911 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11912 (exit $ac_status); } &&
11913 { ac_try='test -z "$ac_c_werror_flag"
11914 || test ! -s conftest.err'
11915 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11916 (eval $ac_try) 2>&5
11918 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11919 (exit $ac_status); }; } &&
11920 { ac_try='test -s conftest.$ac_objext'
11921 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11922 (eval $ac_try) 2>&5
11924 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11925 (exit $ac_status); }; }; then
11926 eval "$as_ac_Header=yes"
11928 echo "$as_me: failed program was:" >&5
11929 sed 's/^/| /' conftest.$ac_ext >&5
11931 eval "$as_ac_Header=no"
11933 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
11935 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
11936 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
11937 if test `eval echo '${'$as_ac_Header'}'` = yes; then
11938 cat >>confdefs.h <<_ACEOF
11939 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
11947 for ac_header in machine/reg.h
11949 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
11950 if eval "test \"\${$as_ac_Header+set}\" = set"; then
11951 echo "$as_me:$LINENO: checking for $ac_header" >&5
11952 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
11953 if eval "test \"\${$as_ac_Header+set}\" = set"; then
11954 echo $ECHO_N "(cached) $ECHO_C" >&6
11956 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
11957 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
11959 # Is the header compilable?
11960 echo "$as_me:$LINENO: checking $ac_header usability" >&5
11961 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
11962 cat >conftest.$ac_ext <<_ACEOF
11965 cat confdefs.h >>conftest.$ac_ext
11966 cat >>conftest.$ac_ext <<_ACEOF
11967 /* end confdefs.h. */
11968 $ac_includes_default
11969 #include <$ac_header>
11971 rm -f conftest.$ac_objext
11972 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
11973 (eval $ac_compile) 2>conftest.er1
11975 grep -v '^ *+' conftest.er1 >conftest.err
11977 cat conftest.err >&5
11978 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11979 (exit $ac_status); } &&
11980 { ac_try='test -z "$ac_c_werror_flag"
11981 || test ! -s conftest.err'
11982 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11983 (eval $ac_try) 2>&5
11985 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11986 (exit $ac_status); }; } &&
11987 { ac_try='test -s conftest.$ac_objext'
11988 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11989 (eval $ac_try) 2>&5
11991 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11992 (exit $ac_status); }; }; then
11993 ac_header_compiler=yes
11995 echo "$as_me: failed program was:" >&5
11996 sed 's/^/| /' conftest.$ac_ext >&5
11998 ac_header_compiler=no
12000 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
12001 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
12002 echo "${ECHO_T}$ac_header_compiler" >&6
12004 # Is the header present?
12005 echo "$as_me:$LINENO: checking $ac_header presence" >&5
12006 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
12007 cat >conftest.$ac_ext <<_ACEOF
12010 cat confdefs.h >>conftest.$ac_ext
12011 cat >>conftest.$ac_ext <<_ACEOF
12012 /* end confdefs.h. */
12013 #include <$ac_header>
12015 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
12016 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
12018 grep -v '^ *+' conftest.er1 >conftest.err
12020 cat conftest.err >&5
12021 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12022 (exit $ac_status); } >/dev/null; then
12023 if test -s conftest.err; then
12024 ac_cpp_err=$ac_c_preproc_warn_flag
12025 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
12032 if test -z "$ac_cpp_err"; then
12033 ac_header_preproc=yes
12035 echo "$as_me: failed program was:" >&5
12036 sed 's/^/| /' conftest.$ac_ext >&5
12038 ac_header_preproc=no
12040 rm -f conftest.err conftest.$ac_ext
12041 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
12042 echo "${ECHO_T}$ac_header_preproc" >&6
12044 # So? What about this header?
12045 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
12047 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
12048 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
12049 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
12050 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
12051 ac_header_preproc=yes
12054 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
12055 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
12056 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
12057 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
12058 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
12059 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
12060 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
12061 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
12062 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
12063 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
12064 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
12065 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
12068 ## ------------------------------------------ ##
12069 ## Report this to the AC_PACKAGE_NAME lists. ##
12070 ## ------------------------------------------ ##
12073 sed "s/^/$as_me: WARNING: /" >&2
12076 echo "$as_me:$LINENO: checking for $ac_header" >&5
12077 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
12078 if eval "test \"\${$as_ac_Header+set}\" = set"; then
12079 echo $ECHO_N "(cached) $ECHO_C" >&6
12081 eval "$as_ac_Header=\$ac_header_preproc"
12083 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
12084 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
12087 if test `eval echo '${'$as_ac_Header'}'` = yes; then
12088 cat >>confdefs.h <<_ACEOF
12089 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
12098 for ac_header in poll.h sys/poll.h
12100 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
12101 if eval "test \"\${$as_ac_Header+set}\" = set"; then
12102 echo "$as_me:$LINENO: checking for $ac_header" >&5
12103 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
12104 if eval "test \"\${$as_ac_Header+set}\" = set"; then
12105 echo $ECHO_N "(cached) $ECHO_C" >&6
12107 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
12108 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
12110 # Is the header compilable?
12111 echo "$as_me:$LINENO: checking $ac_header usability" >&5
12112 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
12113 cat >conftest.$ac_ext <<_ACEOF
12116 cat confdefs.h >>conftest.$ac_ext
12117 cat >>conftest.$ac_ext <<_ACEOF
12118 /* end confdefs.h. */
12119 $ac_includes_default
12120 #include <$ac_header>
12122 rm -f conftest.$ac_objext
12123 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
12124 (eval $ac_compile) 2>conftest.er1
12126 grep -v '^ *+' conftest.er1 >conftest.err
12128 cat conftest.err >&5
12129 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12130 (exit $ac_status); } &&
12131 { ac_try='test -z "$ac_c_werror_flag"
12132 || test ! -s conftest.err'
12133 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12134 (eval $ac_try) 2>&5
12136 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12137 (exit $ac_status); }; } &&
12138 { ac_try='test -s conftest.$ac_objext'
12139 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12140 (eval $ac_try) 2>&5
12142 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12143 (exit $ac_status); }; }; then
12144 ac_header_compiler=yes
12146 echo "$as_me: failed program was:" >&5
12147 sed 's/^/| /' conftest.$ac_ext >&5
12149 ac_header_compiler=no
12151 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
12152 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
12153 echo "${ECHO_T}$ac_header_compiler" >&6
12155 # Is the header present?
12156 echo "$as_me:$LINENO: checking $ac_header presence" >&5
12157 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
12158 cat >conftest.$ac_ext <<_ACEOF
12161 cat confdefs.h >>conftest.$ac_ext
12162 cat >>conftest.$ac_ext <<_ACEOF
12163 /* end confdefs.h. */
12164 #include <$ac_header>
12166 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
12167 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
12169 grep -v '^ *+' conftest.er1 >conftest.err
12171 cat conftest.err >&5
12172 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12173 (exit $ac_status); } >/dev/null; then
12174 if test -s conftest.err; then
12175 ac_cpp_err=$ac_c_preproc_warn_flag
12176 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
12183 if test -z "$ac_cpp_err"; then
12184 ac_header_preproc=yes
12186 echo "$as_me: failed program was:" >&5
12187 sed 's/^/| /' conftest.$ac_ext >&5
12189 ac_header_preproc=no
12191 rm -f conftest.err conftest.$ac_ext
12192 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
12193 echo "${ECHO_T}$ac_header_preproc" >&6
12195 # So? What about this header?
12196 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
12198 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
12199 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
12200 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
12201 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
12202 ac_header_preproc=yes
12205 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
12206 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
12207 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
12208 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
12209 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
12210 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
12211 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
12212 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
12213 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
12214 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
12215 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
12216 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
12219 ## ------------------------------------------ ##
12220 ## Report this to the AC_PACKAGE_NAME lists. ##
12221 ## ------------------------------------------ ##
12224 sed "s/^/$as_me: WARNING: /" >&2
12227 echo "$as_me:$LINENO: checking for $ac_header" >&5
12228 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
12229 if eval "test \"\${$as_ac_Header+set}\" = set"; then
12230 echo $ECHO_N "(cached) $ECHO_C" >&6
12232 eval "$as_ac_Header=\$ac_header_preproc"
12234 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
12235 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
12238 if test `eval echo '${'$as_ac_Header'}'` = yes; then
12239 cat >>confdefs.h <<_ACEOF
12240 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
12250 for ac_header in proc_service.h thread_db.h gnu/libc-version.h
12252 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
12253 if eval "test \"\${$as_ac_Header+set}\" = set"; then
12254 echo "$as_me:$LINENO: checking for $ac_header" >&5
12255 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
12256 if eval "test \"\${$as_ac_Header+set}\" = set"; then
12257 echo $ECHO_N "(cached) $ECHO_C" >&6
12259 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
12260 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
12262 # Is the header compilable?
12263 echo "$as_me:$LINENO: checking $ac_header usability" >&5
12264 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
12265 cat >conftest.$ac_ext <<_ACEOF
12268 cat confdefs.h >>conftest.$ac_ext
12269 cat >>conftest.$ac_ext <<_ACEOF
12270 /* end confdefs.h. */
12271 $ac_includes_default
12272 #include <$ac_header>
12274 rm -f conftest.$ac_objext
12275 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
12276 (eval $ac_compile) 2>conftest.er1
12278 grep -v '^ *+' conftest.er1 >conftest.err
12280 cat conftest.err >&5
12281 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12282 (exit $ac_status); } &&
12283 { ac_try='test -z "$ac_c_werror_flag"
12284 || test ! -s conftest.err'
12285 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12286 (eval $ac_try) 2>&5
12288 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12289 (exit $ac_status); }; } &&
12290 { ac_try='test -s conftest.$ac_objext'
12291 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12292 (eval $ac_try) 2>&5
12294 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12295 (exit $ac_status); }; }; then
12296 ac_header_compiler=yes
12298 echo "$as_me: failed program was:" >&5
12299 sed 's/^/| /' conftest.$ac_ext >&5
12301 ac_header_compiler=no
12303 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
12304 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
12305 echo "${ECHO_T}$ac_header_compiler" >&6
12307 # Is the header present?
12308 echo "$as_me:$LINENO: checking $ac_header presence" >&5
12309 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
12310 cat >conftest.$ac_ext <<_ACEOF
12313 cat confdefs.h >>conftest.$ac_ext
12314 cat >>conftest.$ac_ext <<_ACEOF
12315 /* end confdefs.h. */
12316 #include <$ac_header>
12318 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
12319 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
12321 grep -v '^ *+' conftest.er1 >conftest.err
12323 cat conftest.err >&5
12324 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12325 (exit $ac_status); } >/dev/null; then
12326 if test -s conftest.err; then
12327 ac_cpp_err=$ac_c_preproc_warn_flag
12328 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
12335 if test -z "$ac_cpp_err"; then
12336 ac_header_preproc=yes
12338 echo "$as_me: failed program was:" >&5
12339 sed 's/^/| /' conftest.$ac_ext >&5
12341 ac_header_preproc=no
12343 rm -f conftest.err conftest.$ac_ext
12344 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
12345 echo "${ECHO_T}$ac_header_preproc" >&6
12347 # So? What about this header?
12348 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
12350 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
12351 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
12352 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
12353 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
12354 ac_header_preproc=yes
12357 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
12358 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
12359 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
12360 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
12361 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
12362 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
12363 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
12364 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
12365 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
12366 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
12367 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
12368 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
12371 ## ------------------------------------------ ##
12372 ## Report this to the AC_PACKAGE_NAME lists. ##
12373 ## ------------------------------------------ ##
12376 sed "s/^/$as_me: WARNING: /" >&2
12379 echo "$as_me:$LINENO: checking for $ac_header" >&5
12380 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
12381 if eval "test \"\${$as_ac_Header+set}\" = set"; then
12382 echo $ECHO_N "(cached) $ECHO_C" >&6
12384 eval "$as_ac_Header=\$ac_header_preproc"
12386 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
12387 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
12390 if test `eval echo '${'$as_ac_Header'}'` = yes; then
12391 cat >>confdefs.h <<_ACEOF
12392 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
12400 for ac_header in signal.h
12402 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
12403 if eval "test \"\${$as_ac_Header+set}\" = set"; then
12404 echo "$as_me:$LINENO: checking for $ac_header" >&5
12405 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
12406 if eval "test \"\${$as_ac_Header+set}\" = set"; then
12407 echo $ECHO_N "(cached) $ECHO_C" >&6
12409 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
12410 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
12412 # Is the header compilable?
12413 echo "$as_me:$LINENO: checking $ac_header usability" >&5
12414 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
12415 cat >conftest.$ac_ext <<_ACEOF
12418 cat confdefs.h >>conftest.$ac_ext
12419 cat >>conftest.$ac_ext <<_ACEOF
12420 /* end confdefs.h. */
12421 $ac_includes_default
12422 #include <$ac_header>
12424 rm -f conftest.$ac_objext
12425 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
12426 (eval $ac_compile) 2>conftest.er1
12428 grep -v '^ *+' conftest.er1 >conftest.err
12430 cat conftest.err >&5
12431 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12432 (exit $ac_status); } &&
12433 { ac_try='test -z "$ac_c_werror_flag"
12434 || test ! -s conftest.err'
12435 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12436 (eval $ac_try) 2>&5
12438 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12439 (exit $ac_status); }; } &&
12440 { ac_try='test -s conftest.$ac_objext'
12441 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12442 (eval $ac_try) 2>&5
12444 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12445 (exit $ac_status); }; }; then
12446 ac_header_compiler=yes
12448 echo "$as_me: failed program was:" >&5
12449 sed 's/^/| /' conftest.$ac_ext >&5
12451 ac_header_compiler=no
12453 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
12454 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
12455 echo "${ECHO_T}$ac_header_compiler" >&6
12457 # Is the header present?
12458 echo "$as_me:$LINENO: checking $ac_header presence" >&5
12459 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
12460 cat >conftest.$ac_ext <<_ACEOF
12463 cat confdefs.h >>conftest.$ac_ext
12464 cat >>conftest.$ac_ext <<_ACEOF
12465 /* end confdefs.h. */
12466 #include <$ac_header>
12468 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
12469 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
12471 grep -v '^ *+' conftest.er1 >conftest.err
12473 cat conftest.err >&5
12474 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12475 (exit $ac_status); } >/dev/null; then
12476 if test -s conftest.err; then
12477 ac_cpp_err=$ac_c_preproc_warn_flag
12478 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
12485 if test -z "$ac_cpp_err"; then
12486 ac_header_preproc=yes
12488 echo "$as_me: failed program was:" >&5
12489 sed 's/^/| /' conftest.$ac_ext >&5
12491 ac_header_preproc=no
12493 rm -f conftest.err conftest.$ac_ext
12494 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
12495 echo "${ECHO_T}$ac_header_preproc" >&6
12497 # So? What about this header?
12498 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
12500 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
12501 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
12502 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
12503 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
12504 ac_header_preproc=yes
12507 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
12508 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
12509 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
12510 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
12511 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
12512 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
12513 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
12514 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
12515 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
12516 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
12517 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
12518 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
12521 ## ------------------------------------------ ##
12522 ## Report this to the AC_PACKAGE_NAME lists. ##
12523 ## ------------------------------------------ ##
12526 sed "s/^/$as_me: WARNING: /" >&2
12529 echo "$as_me:$LINENO: checking for $ac_header" >&5
12530 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
12531 if eval "test \"\${$as_ac_Header+set}\" = set"; then
12532 echo $ECHO_N "(cached) $ECHO_C" >&6
12534 eval "$as_ac_Header=\$ac_header_preproc"
12536 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
12537 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
12540 if test `eval echo '${'$as_ac_Header'}'` = yes; then
12541 cat >>confdefs.h <<_ACEOF
12542 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
12550 for ac_header in stddef.h
12552 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
12553 if eval "test \"\${$as_ac_Header+set}\" = set"; then
12554 echo "$as_me:$LINENO: checking for $ac_header" >&5
12555 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
12556 if eval "test \"\${$as_ac_Header+set}\" = set"; then
12557 echo $ECHO_N "(cached) $ECHO_C" >&6
12559 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
12560 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
12562 # Is the header compilable?
12563 echo "$as_me:$LINENO: checking $ac_header usability" >&5
12564 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
12565 cat >conftest.$ac_ext <<_ACEOF
12568 cat confdefs.h >>conftest.$ac_ext
12569 cat >>conftest.$ac_ext <<_ACEOF
12570 /* end confdefs.h. */
12571 $ac_includes_default
12572 #include <$ac_header>
12574 rm -f conftest.$ac_objext
12575 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
12576 (eval $ac_compile) 2>conftest.er1
12578 grep -v '^ *+' conftest.er1 >conftest.err
12580 cat conftest.err >&5
12581 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12582 (exit $ac_status); } &&
12583 { ac_try='test -z "$ac_c_werror_flag"
12584 || test ! -s conftest.err'
12585 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12586 (eval $ac_try) 2>&5
12588 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12589 (exit $ac_status); }; } &&
12590 { ac_try='test -s conftest.$ac_objext'
12591 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12592 (eval $ac_try) 2>&5
12594 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12595 (exit $ac_status); }; }; then
12596 ac_header_compiler=yes
12598 echo "$as_me: failed program was:" >&5
12599 sed 's/^/| /' conftest.$ac_ext >&5
12601 ac_header_compiler=no
12603 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
12604 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
12605 echo "${ECHO_T}$ac_header_compiler" >&6
12607 # Is the header present?
12608 echo "$as_me:$LINENO: checking $ac_header presence" >&5
12609 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
12610 cat >conftest.$ac_ext <<_ACEOF
12613 cat confdefs.h >>conftest.$ac_ext
12614 cat >>conftest.$ac_ext <<_ACEOF
12615 /* end confdefs.h. */
12616 #include <$ac_header>
12618 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
12619 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
12621 grep -v '^ *+' conftest.er1 >conftest.err
12623 cat conftest.err >&5
12624 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12625 (exit $ac_status); } >/dev/null; then
12626 if test -s conftest.err; then
12627 ac_cpp_err=$ac_c_preproc_warn_flag
12628 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
12635 if test -z "$ac_cpp_err"; then
12636 ac_header_preproc=yes
12638 echo "$as_me: failed program was:" >&5
12639 sed 's/^/| /' conftest.$ac_ext >&5
12641 ac_header_preproc=no
12643 rm -f conftest.err conftest.$ac_ext
12644 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
12645 echo "${ECHO_T}$ac_header_preproc" >&6
12647 # So? What about this header?
12648 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
12650 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
12651 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
12652 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
12653 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
12654 ac_header_preproc=yes
12657 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
12658 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
12659 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
12660 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
12661 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
12662 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
12663 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
12664 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
12665 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
12666 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
12667 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
12668 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
12671 ## ------------------------------------------ ##
12672 ## Report this to the AC_PACKAGE_NAME lists. ##
12673 ## ------------------------------------------ ##
12676 sed "s/^/$as_me: WARNING: /" >&2
12679 echo "$as_me:$LINENO: checking for $ac_header" >&5
12680 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
12681 if eval "test \"\${$as_ac_Header+set}\" = set"; then
12682 echo $ECHO_N "(cached) $ECHO_C" >&6
12684 eval "$as_ac_Header=\$ac_header_preproc"
12686 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
12687 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
12690 if test `eval echo '${'$as_ac_Header'}'` = yes; then
12691 cat >>confdefs.h <<_ACEOF
12692 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
12700 for ac_header in stdlib.h
12702 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
12703 if eval "test \"\${$as_ac_Header+set}\" = set"; then
12704 echo "$as_me:$LINENO: checking for $ac_header" >&5
12705 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
12706 if eval "test \"\${$as_ac_Header+set}\" = set"; then
12707 echo $ECHO_N "(cached) $ECHO_C" >&6
12709 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
12710 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
12712 # Is the header compilable?
12713 echo "$as_me:$LINENO: checking $ac_header usability" >&5
12714 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
12715 cat >conftest.$ac_ext <<_ACEOF
12718 cat confdefs.h >>conftest.$ac_ext
12719 cat >>conftest.$ac_ext <<_ACEOF
12720 /* end confdefs.h. */
12721 $ac_includes_default
12722 #include <$ac_header>
12724 rm -f conftest.$ac_objext
12725 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
12726 (eval $ac_compile) 2>conftest.er1
12728 grep -v '^ *+' conftest.er1 >conftest.err
12730 cat conftest.err >&5
12731 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12732 (exit $ac_status); } &&
12733 { ac_try='test -z "$ac_c_werror_flag"
12734 || test ! -s conftest.err'
12735 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12736 (eval $ac_try) 2>&5
12738 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12739 (exit $ac_status); }; } &&
12740 { ac_try='test -s conftest.$ac_objext'
12741 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12742 (eval $ac_try) 2>&5
12744 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12745 (exit $ac_status); }; }; then
12746 ac_header_compiler=yes
12748 echo "$as_me: failed program was:" >&5
12749 sed 's/^/| /' conftest.$ac_ext >&5
12751 ac_header_compiler=no
12753 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
12754 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
12755 echo "${ECHO_T}$ac_header_compiler" >&6
12757 # Is the header present?
12758 echo "$as_me:$LINENO: checking $ac_header presence" >&5
12759 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
12760 cat >conftest.$ac_ext <<_ACEOF
12763 cat confdefs.h >>conftest.$ac_ext
12764 cat >>conftest.$ac_ext <<_ACEOF
12765 /* end confdefs.h. */
12766 #include <$ac_header>
12768 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
12769 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
12771 grep -v '^ *+' conftest.er1 >conftest.err
12773 cat conftest.err >&5
12774 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12775 (exit $ac_status); } >/dev/null; then
12776 if test -s conftest.err; then
12777 ac_cpp_err=$ac_c_preproc_warn_flag
12778 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
12785 if test -z "$ac_cpp_err"; then
12786 ac_header_preproc=yes
12788 echo "$as_me: failed program was:" >&5
12789 sed 's/^/| /' conftest.$ac_ext >&5
12791 ac_header_preproc=no
12793 rm -f conftest.err conftest.$ac_ext
12794 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
12795 echo "${ECHO_T}$ac_header_preproc" >&6
12797 # So? What about this header?
12798 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
12800 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
12801 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
12802 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
12803 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
12804 ac_header_preproc=yes
12807 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
12808 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
12809 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
12810 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
12811 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
12812 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
12813 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
12814 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
12815 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
12816 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
12817 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
12818 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
12821 ## ------------------------------------------ ##
12822 ## Report this to the AC_PACKAGE_NAME lists. ##
12823 ## ------------------------------------------ ##
12826 sed "s/^/$as_me: WARNING: /" >&2
12829 echo "$as_me:$LINENO: checking for $ac_header" >&5
12830 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
12831 if eval "test \"\${$as_ac_Header+set}\" = set"; then
12832 echo $ECHO_N "(cached) $ECHO_C" >&6
12834 eval "$as_ac_Header=\$ac_header_preproc"
12836 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
12837 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
12840 if test `eval echo '${'$as_ac_Header'}'` = yes; then
12841 cat >>confdefs.h <<_ACEOF
12842 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
12850 for ac_header in stdint.h
12852 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
12853 if eval "test \"\${$as_ac_Header+set}\" = set"; then
12854 echo "$as_me:$LINENO: checking for $ac_header" >&5
12855 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
12856 if eval "test \"\${$as_ac_Header+set}\" = set"; then
12857 echo $ECHO_N "(cached) $ECHO_C" >&6
12859 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
12860 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
12862 # Is the header compilable?
12863 echo "$as_me:$LINENO: checking $ac_header usability" >&5
12864 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
12865 cat >conftest.$ac_ext <<_ACEOF
12868 cat confdefs.h >>conftest.$ac_ext
12869 cat >>conftest.$ac_ext <<_ACEOF
12870 /* end confdefs.h. */
12871 $ac_includes_default
12872 #include <$ac_header>
12874 rm -f conftest.$ac_objext
12875 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
12876 (eval $ac_compile) 2>conftest.er1
12878 grep -v '^ *+' conftest.er1 >conftest.err
12880 cat conftest.err >&5
12881 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12882 (exit $ac_status); } &&
12883 { ac_try='test -z "$ac_c_werror_flag"
12884 || test ! -s conftest.err'
12885 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12886 (eval $ac_try) 2>&5
12888 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12889 (exit $ac_status); }; } &&
12890 { ac_try='test -s conftest.$ac_objext'
12891 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12892 (eval $ac_try) 2>&5
12894 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12895 (exit $ac_status); }; }; then
12896 ac_header_compiler=yes
12898 echo "$as_me: failed program was:" >&5
12899 sed 's/^/| /' conftest.$ac_ext >&5
12901 ac_header_compiler=no
12903 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
12904 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
12905 echo "${ECHO_T}$ac_header_compiler" >&6
12907 # Is the header present?
12908 echo "$as_me:$LINENO: checking $ac_header presence" >&5
12909 echo $ECHO_N "checking $ac_header presence... $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 #include <$ac_header>
12918 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
12919 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
12921 grep -v '^ *+' conftest.er1 >conftest.err
12923 cat conftest.err >&5
12924 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12925 (exit $ac_status); } >/dev/null; then
12926 if test -s conftest.err; then
12927 ac_cpp_err=$ac_c_preproc_warn_flag
12928 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
12935 if test -z "$ac_cpp_err"; then
12936 ac_header_preproc=yes
12938 echo "$as_me: failed program was:" >&5
12939 sed 's/^/| /' conftest.$ac_ext >&5
12941 ac_header_preproc=no
12943 rm -f conftest.err conftest.$ac_ext
12944 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
12945 echo "${ECHO_T}$ac_header_preproc" >&6
12947 # So? What about this header?
12948 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
12950 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
12951 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
12952 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
12953 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
12954 ac_header_preproc=yes
12957 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
12958 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
12959 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
12960 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
12961 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
12962 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
12963 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
12964 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
12965 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
12966 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
12967 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
12968 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
12971 ## ------------------------------------------ ##
12972 ## Report this to the AC_PACKAGE_NAME lists. ##
12973 ## ------------------------------------------ ##
12976 sed "s/^/$as_me: WARNING: /" >&2
12979 echo "$as_me:$LINENO: checking for $ac_header" >&5
12980 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
12981 if eval "test \"\${$as_ac_Header+set}\" = set"; then
12982 echo $ECHO_N "(cached) $ECHO_C" >&6
12984 eval "$as_ac_Header=\$ac_header_preproc"
12986 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
12987 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
12990 if test `eval echo '${'$as_ac_Header'}'` = yes; then
12991 cat >>confdefs.h <<_ACEOF
12992 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
13002 for ac_header in string.h memory.h strings.h
13004 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
13005 if eval "test \"\${$as_ac_Header+set}\" = set"; then
13006 echo "$as_me:$LINENO: checking for $ac_header" >&5
13007 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
13008 if eval "test \"\${$as_ac_Header+set}\" = set"; then
13009 echo $ECHO_N "(cached) $ECHO_C" >&6
13011 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
13012 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
13014 # Is the header compilable?
13015 echo "$as_me:$LINENO: checking $ac_header usability" >&5
13016 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
13017 cat >conftest.$ac_ext <<_ACEOF
13020 cat confdefs.h >>conftest.$ac_ext
13021 cat >>conftest.$ac_ext <<_ACEOF
13022 /* end confdefs.h. */
13023 $ac_includes_default
13024 #include <$ac_header>
13026 rm -f conftest.$ac_objext
13027 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
13028 (eval $ac_compile) 2>conftest.er1
13030 grep -v '^ *+' conftest.er1 >conftest.err
13032 cat conftest.err >&5
13033 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13034 (exit $ac_status); } &&
13035 { ac_try='test -z "$ac_c_werror_flag"
13036 || test ! -s conftest.err'
13037 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13038 (eval $ac_try) 2>&5
13040 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13041 (exit $ac_status); }; } &&
13042 { ac_try='test -s conftest.$ac_objext'
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); }; }; then
13048 ac_header_compiler=yes
13050 echo "$as_me: failed program was:" >&5
13051 sed 's/^/| /' conftest.$ac_ext >&5
13053 ac_header_compiler=no
13055 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
13056 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
13057 echo "${ECHO_T}$ac_header_compiler" >&6
13059 # Is the header present?
13060 echo "$as_me:$LINENO: checking $ac_header presence" >&5
13061 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
13062 cat >conftest.$ac_ext <<_ACEOF
13065 cat confdefs.h >>conftest.$ac_ext
13066 cat >>conftest.$ac_ext <<_ACEOF
13067 /* end confdefs.h. */
13068 #include <$ac_header>
13070 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
13071 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
13073 grep -v '^ *+' conftest.er1 >conftest.err
13075 cat conftest.err >&5
13076 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13077 (exit $ac_status); } >/dev/null; then
13078 if test -s conftest.err; then
13079 ac_cpp_err=$ac_c_preproc_warn_flag
13080 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
13087 if test -z "$ac_cpp_err"; then
13088 ac_header_preproc=yes
13090 echo "$as_me: failed program was:" >&5
13091 sed 's/^/| /' conftest.$ac_ext >&5
13093 ac_header_preproc=no
13095 rm -f conftest.err conftest.$ac_ext
13096 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
13097 echo "${ECHO_T}$ac_header_preproc" >&6
13099 # So? What about this header?
13100 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
13102 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
13103 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
13104 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
13105 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
13106 ac_header_preproc=yes
13109 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
13110 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
13111 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
13112 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
13113 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
13114 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
13115 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
13116 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
13117 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
13118 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
13119 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
13120 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
13123 ## ------------------------------------------ ##
13124 ## Report this to the AC_PACKAGE_NAME lists. ##
13125 ## ------------------------------------------ ##
13128 sed "s/^/$as_me: WARNING: /" >&2
13131 echo "$as_me:$LINENO: checking for $ac_header" >&5
13132 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
13133 if eval "test \"\${$as_ac_Header+set}\" = set"; then
13134 echo $ECHO_N "(cached) $ECHO_C" >&6
13136 eval "$as_ac_Header=\$ac_header_preproc"
13138 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
13139 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
13142 if test `eval echo '${'$as_ac_Header'}'` = yes; then
13143 cat >>confdefs.h <<_ACEOF
13144 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
13152 for ac_header in sys/fault.h
13154 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
13155 if eval "test \"\${$as_ac_Header+set}\" = set"; then
13156 echo "$as_me:$LINENO: checking for $ac_header" >&5
13157 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
13158 if eval "test \"\${$as_ac_Header+set}\" = set"; then
13159 echo $ECHO_N "(cached) $ECHO_C" >&6
13161 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
13162 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
13164 # Is the header compilable?
13165 echo "$as_me:$LINENO: checking $ac_header usability" >&5
13166 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
13167 cat >conftest.$ac_ext <<_ACEOF
13170 cat confdefs.h >>conftest.$ac_ext
13171 cat >>conftest.$ac_ext <<_ACEOF
13172 /* end confdefs.h. */
13173 $ac_includes_default
13174 #include <$ac_header>
13176 rm -f conftest.$ac_objext
13177 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
13178 (eval $ac_compile) 2>conftest.er1
13180 grep -v '^ *+' conftest.er1 >conftest.err
13182 cat conftest.err >&5
13183 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13184 (exit $ac_status); } &&
13185 { ac_try='test -z "$ac_c_werror_flag"
13186 || test ! -s conftest.err'
13187 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13188 (eval $ac_try) 2>&5
13190 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13191 (exit $ac_status); }; } &&
13192 { ac_try='test -s conftest.$ac_objext'
13193 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13194 (eval $ac_try) 2>&5
13196 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13197 (exit $ac_status); }; }; then
13198 ac_header_compiler=yes
13200 echo "$as_me: failed program was:" >&5
13201 sed 's/^/| /' conftest.$ac_ext >&5
13203 ac_header_compiler=no
13205 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
13206 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
13207 echo "${ECHO_T}$ac_header_compiler" >&6
13209 # Is the header present?
13210 echo "$as_me:$LINENO: checking $ac_header presence" >&5
13211 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
13212 cat >conftest.$ac_ext <<_ACEOF
13215 cat confdefs.h >>conftest.$ac_ext
13216 cat >>conftest.$ac_ext <<_ACEOF
13217 /* end confdefs.h. */
13218 #include <$ac_header>
13220 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
13221 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
13223 grep -v '^ *+' conftest.er1 >conftest.err
13225 cat conftest.err >&5
13226 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13227 (exit $ac_status); } >/dev/null; then
13228 if test -s conftest.err; then
13229 ac_cpp_err=$ac_c_preproc_warn_flag
13230 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
13237 if test -z "$ac_cpp_err"; then
13238 ac_header_preproc=yes
13240 echo "$as_me: failed program was:" >&5
13241 sed 's/^/| /' conftest.$ac_ext >&5
13243 ac_header_preproc=no
13245 rm -f conftest.err conftest.$ac_ext
13246 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
13247 echo "${ECHO_T}$ac_header_preproc" >&6
13249 # So? What about this header?
13250 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
13252 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
13253 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
13254 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
13255 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
13256 ac_header_preproc=yes
13259 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
13260 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
13261 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
13262 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
13263 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
13264 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
13265 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
13266 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
13267 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
13268 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
13269 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
13270 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
13273 ## ------------------------------------------ ##
13274 ## Report this to the AC_PACKAGE_NAME lists. ##
13275 ## ------------------------------------------ ##
13278 sed "s/^/$as_me: WARNING: /" >&2
13281 echo "$as_me:$LINENO: checking for $ac_header" >&5
13282 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
13283 if eval "test \"\${$as_ac_Header+set}\" = set"; then
13284 echo $ECHO_N "(cached) $ECHO_C" >&6
13286 eval "$as_ac_Header=\$ac_header_preproc"
13288 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
13289 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
13292 if test `eval echo '${'$as_ac_Header'}'` = yes; then
13293 cat >>confdefs.h <<_ACEOF
13294 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
13302 for ac_header in sys/file.h
13304 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
13305 if eval "test \"\${$as_ac_Header+set}\" = set"; then
13306 echo "$as_me:$LINENO: checking for $ac_header" >&5
13307 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
13308 if eval "test \"\${$as_ac_Header+set}\" = set"; then
13309 echo $ECHO_N "(cached) $ECHO_C" >&6
13311 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
13312 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
13314 # Is the header compilable?
13315 echo "$as_me:$LINENO: checking $ac_header usability" >&5
13316 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
13317 cat >conftest.$ac_ext <<_ACEOF
13320 cat confdefs.h >>conftest.$ac_ext
13321 cat >>conftest.$ac_ext <<_ACEOF
13322 /* end confdefs.h. */
13323 $ac_includes_default
13324 #include <$ac_header>
13326 rm -f conftest.$ac_objext
13327 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
13328 (eval $ac_compile) 2>conftest.er1
13330 grep -v '^ *+' conftest.er1 >conftest.err
13332 cat conftest.err >&5
13333 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13334 (exit $ac_status); } &&
13335 { ac_try='test -z "$ac_c_werror_flag"
13336 || test ! -s conftest.err'
13337 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13338 (eval $ac_try) 2>&5
13340 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13341 (exit $ac_status); }; } &&
13342 { ac_try='test -s conftest.$ac_objext'
13343 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13344 (eval $ac_try) 2>&5
13346 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13347 (exit $ac_status); }; }; then
13348 ac_header_compiler=yes
13350 echo "$as_me: failed program was:" >&5
13351 sed 's/^/| /' conftest.$ac_ext >&5
13353 ac_header_compiler=no
13355 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
13356 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
13357 echo "${ECHO_T}$ac_header_compiler" >&6
13359 # Is the header present?
13360 echo "$as_me:$LINENO: checking $ac_header presence" >&5
13361 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
13362 cat >conftest.$ac_ext <<_ACEOF
13365 cat confdefs.h >>conftest.$ac_ext
13366 cat >>conftest.$ac_ext <<_ACEOF
13367 /* end confdefs.h. */
13368 #include <$ac_header>
13370 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
13371 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
13373 grep -v '^ *+' conftest.er1 >conftest.err
13375 cat conftest.err >&5
13376 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13377 (exit $ac_status); } >/dev/null; then
13378 if test -s conftest.err; then
13379 ac_cpp_err=$ac_c_preproc_warn_flag
13380 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
13387 if test -z "$ac_cpp_err"; then
13388 ac_header_preproc=yes
13390 echo "$as_me: failed program was:" >&5
13391 sed 's/^/| /' conftest.$ac_ext >&5
13393 ac_header_preproc=no
13395 rm -f conftest.err conftest.$ac_ext
13396 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
13397 echo "${ECHO_T}$ac_header_preproc" >&6
13399 # So? What about this header?
13400 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
13402 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
13403 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
13404 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
13405 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
13406 ac_header_preproc=yes
13409 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
13410 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
13411 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
13412 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
13413 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
13414 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
13415 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
13416 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
13417 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
13418 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
13419 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
13420 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
13423 ## ------------------------------------------ ##
13424 ## Report this to the AC_PACKAGE_NAME lists. ##
13425 ## ------------------------------------------ ##
13428 sed "s/^/$as_me: WARNING: /" >&2
13431 echo "$as_me:$LINENO: checking for $ac_header" >&5
13432 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
13433 if eval "test \"\${$as_ac_Header+set}\" = set"; then
13434 echo $ECHO_N "(cached) $ECHO_C" >&6
13436 eval "$as_ac_Header=\$ac_header_preproc"
13438 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
13439 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
13442 if test `eval echo '${'$as_ac_Header'}'` = yes; then
13443 cat >>confdefs.h <<_ACEOF
13444 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
13452 for ac_header in sys/filio.h
13454 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
13455 if eval "test \"\${$as_ac_Header+set}\" = set"; then
13456 echo "$as_me:$LINENO: checking for $ac_header" >&5
13457 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
13458 if eval "test \"\${$as_ac_Header+set}\" = set"; then
13459 echo $ECHO_N "(cached) $ECHO_C" >&6
13461 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
13462 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
13464 # Is the header compilable?
13465 echo "$as_me:$LINENO: checking $ac_header usability" >&5
13466 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
13467 cat >conftest.$ac_ext <<_ACEOF
13470 cat confdefs.h >>conftest.$ac_ext
13471 cat >>conftest.$ac_ext <<_ACEOF
13472 /* end confdefs.h. */
13473 $ac_includes_default
13474 #include <$ac_header>
13476 rm -f conftest.$ac_objext
13477 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
13478 (eval $ac_compile) 2>conftest.er1
13480 grep -v '^ *+' conftest.er1 >conftest.err
13482 cat conftest.err >&5
13483 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13484 (exit $ac_status); } &&
13485 { ac_try='test -z "$ac_c_werror_flag"
13486 || test ! -s conftest.err'
13487 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13488 (eval $ac_try) 2>&5
13490 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13491 (exit $ac_status); }; } &&
13492 { ac_try='test -s conftest.$ac_objext'
13493 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13494 (eval $ac_try) 2>&5
13496 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13497 (exit $ac_status); }; }; then
13498 ac_header_compiler=yes
13500 echo "$as_me: failed program was:" >&5
13501 sed 's/^/| /' conftest.$ac_ext >&5
13503 ac_header_compiler=no
13505 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
13506 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
13507 echo "${ECHO_T}$ac_header_compiler" >&6
13509 # Is the header present?
13510 echo "$as_me:$LINENO: checking $ac_header presence" >&5
13511 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
13512 cat >conftest.$ac_ext <<_ACEOF
13515 cat confdefs.h >>conftest.$ac_ext
13516 cat >>conftest.$ac_ext <<_ACEOF
13517 /* end confdefs.h. */
13518 #include <$ac_header>
13520 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
13521 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
13523 grep -v '^ *+' conftest.er1 >conftest.err
13525 cat conftest.err >&5
13526 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13527 (exit $ac_status); } >/dev/null; then
13528 if test -s conftest.err; then
13529 ac_cpp_err=$ac_c_preproc_warn_flag
13530 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
13537 if test -z "$ac_cpp_err"; then
13538 ac_header_preproc=yes
13540 echo "$as_me: failed program was:" >&5
13541 sed 's/^/| /' conftest.$ac_ext >&5
13543 ac_header_preproc=no
13545 rm -f conftest.err conftest.$ac_ext
13546 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
13547 echo "${ECHO_T}$ac_header_preproc" >&6
13549 # So? What about this header?
13550 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
13552 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
13553 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
13554 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
13555 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
13556 ac_header_preproc=yes
13559 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
13560 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
13561 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
13562 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
13563 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
13564 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
13565 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
13566 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
13567 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
13568 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
13569 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
13570 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
13573 ## ------------------------------------------ ##
13574 ## Report this to the AC_PACKAGE_NAME lists. ##
13575 ## ------------------------------------------ ##
13578 sed "s/^/$as_me: WARNING: /" >&2
13581 echo "$as_me:$LINENO: checking for $ac_header" >&5
13582 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
13583 if eval "test \"\${$as_ac_Header+set}\" = set"; then
13584 echo $ECHO_N "(cached) $ECHO_C" >&6
13586 eval "$as_ac_Header=\$ac_header_preproc"
13588 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
13589 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
13592 if test `eval echo '${'$as_ac_Header'}'` = yes; then
13593 cat >>confdefs.h <<_ACEOF
13594 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
13602 for ac_header in sys/ioctl.h
13604 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
13605 if eval "test \"\${$as_ac_Header+set}\" = set"; then
13606 echo "$as_me:$LINENO: checking for $ac_header" >&5
13607 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
13608 if eval "test \"\${$as_ac_Header+set}\" = set"; then
13609 echo $ECHO_N "(cached) $ECHO_C" >&6
13611 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
13612 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
13614 # Is the header compilable?
13615 echo "$as_me:$LINENO: checking $ac_header usability" >&5
13616 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
13617 cat >conftest.$ac_ext <<_ACEOF
13620 cat confdefs.h >>conftest.$ac_ext
13621 cat >>conftest.$ac_ext <<_ACEOF
13622 /* end confdefs.h. */
13623 $ac_includes_default
13624 #include <$ac_header>
13626 rm -f conftest.$ac_objext
13627 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
13628 (eval $ac_compile) 2>conftest.er1
13630 grep -v '^ *+' conftest.er1 >conftest.err
13632 cat conftest.err >&5
13633 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13634 (exit $ac_status); } &&
13635 { ac_try='test -z "$ac_c_werror_flag"
13636 || test ! -s conftest.err'
13637 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13638 (eval $ac_try) 2>&5
13640 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13641 (exit $ac_status); }; } &&
13642 { ac_try='test -s conftest.$ac_objext'
13643 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13644 (eval $ac_try) 2>&5
13646 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13647 (exit $ac_status); }; }; then
13648 ac_header_compiler=yes
13650 echo "$as_me: failed program was:" >&5
13651 sed 's/^/| /' conftest.$ac_ext >&5
13653 ac_header_compiler=no
13655 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
13656 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
13657 echo "${ECHO_T}$ac_header_compiler" >&6
13659 # Is the header present?
13660 echo "$as_me:$LINENO: checking $ac_header presence" >&5
13661 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
13662 cat >conftest.$ac_ext <<_ACEOF
13665 cat confdefs.h >>conftest.$ac_ext
13666 cat >>conftest.$ac_ext <<_ACEOF
13667 /* end confdefs.h. */
13668 #include <$ac_header>
13670 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
13671 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
13673 grep -v '^ *+' conftest.er1 >conftest.err
13675 cat conftest.err >&5
13676 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13677 (exit $ac_status); } >/dev/null; then
13678 if test -s conftest.err; then
13679 ac_cpp_err=$ac_c_preproc_warn_flag
13680 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
13687 if test -z "$ac_cpp_err"; then
13688 ac_header_preproc=yes
13690 echo "$as_me: failed program was:" >&5
13691 sed 's/^/| /' conftest.$ac_ext >&5
13693 ac_header_preproc=no
13695 rm -f conftest.err conftest.$ac_ext
13696 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
13697 echo "${ECHO_T}$ac_header_preproc" >&6
13699 # So? What about this header?
13700 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
13702 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
13703 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
13704 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
13705 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
13706 ac_header_preproc=yes
13709 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
13710 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
13711 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
13712 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
13713 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
13714 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
13715 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
13716 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
13717 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
13718 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
13719 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
13720 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
13723 ## ------------------------------------------ ##
13724 ## Report this to the AC_PACKAGE_NAME lists. ##
13725 ## ------------------------------------------ ##
13728 sed "s/^/$as_me: WARNING: /" >&2
13731 echo "$as_me:$LINENO: checking for $ac_header" >&5
13732 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
13733 if eval "test \"\${$as_ac_Header+set}\" = set"; then
13734 echo $ECHO_N "(cached) $ECHO_C" >&6
13736 eval "$as_ac_Header=\$ac_header_preproc"
13738 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
13739 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
13742 if test `eval echo '${'$as_ac_Header'}'` = yes; then
13743 cat >>confdefs.h <<_ACEOF
13744 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
13752 for ac_header in sys/param.h
13754 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
13755 if eval "test \"\${$as_ac_Header+set}\" = set"; then
13756 echo "$as_me:$LINENO: checking for $ac_header" >&5
13757 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
13758 if eval "test \"\${$as_ac_Header+set}\" = set"; then
13759 echo $ECHO_N "(cached) $ECHO_C" >&6
13761 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
13762 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
13764 # Is the header compilable?
13765 echo "$as_me:$LINENO: checking $ac_header usability" >&5
13766 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
13767 cat >conftest.$ac_ext <<_ACEOF
13770 cat confdefs.h >>conftest.$ac_ext
13771 cat >>conftest.$ac_ext <<_ACEOF
13772 /* end confdefs.h. */
13773 $ac_includes_default
13774 #include <$ac_header>
13776 rm -f conftest.$ac_objext
13777 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
13778 (eval $ac_compile) 2>conftest.er1
13780 grep -v '^ *+' conftest.er1 >conftest.err
13782 cat conftest.err >&5
13783 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13784 (exit $ac_status); } &&
13785 { ac_try='test -z "$ac_c_werror_flag"
13786 || test ! -s conftest.err'
13787 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13788 (eval $ac_try) 2>&5
13790 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13791 (exit $ac_status); }; } &&
13792 { ac_try='test -s conftest.$ac_objext'
13793 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13794 (eval $ac_try) 2>&5
13796 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13797 (exit $ac_status); }; }; then
13798 ac_header_compiler=yes
13800 echo "$as_me: failed program was:" >&5
13801 sed 's/^/| /' conftest.$ac_ext >&5
13803 ac_header_compiler=no
13805 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
13806 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
13807 echo "${ECHO_T}$ac_header_compiler" >&6
13809 # Is the header present?
13810 echo "$as_me:$LINENO: checking $ac_header presence" >&5
13811 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
13812 cat >conftest.$ac_ext <<_ACEOF
13815 cat confdefs.h >>conftest.$ac_ext
13816 cat >>conftest.$ac_ext <<_ACEOF
13817 /* end confdefs.h. */
13818 #include <$ac_header>
13820 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
13821 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
13823 grep -v '^ *+' conftest.er1 >conftest.err
13825 cat conftest.err >&5
13826 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13827 (exit $ac_status); } >/dev/null; then
13828 if test -s conftest.err; then
13829 ac_cpp_err=$ac_c_preproc_warn_flag
13830 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
13837 if test -z "$ac_cpp_err"; then
13838 ac_header_preproc=yes
13840 echo "$as_me: failed program was:" >&5
13841 sed 's/^/| /' conftest.$ac_ext >&5
13843 ac_header_preproc=no
13845 rm -f conftest.err conftest.$ac_ext
13846 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
13847 echo "${ECHO_T}$ac_header_preproc" >&6
13849 # So? What about this header?
13850 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
13852 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
13853 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
13854 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
13855 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
13856 ac_header_preproc=yes
13859 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
13860 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
13861 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
13862 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
13863 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
13864 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
13865 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
13866 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
13867 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
13868 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
13869 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
13870 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
13873 ## ------------------------------------------ ##
13874 ## Report this to the AC_PACKAGE_NAME lists. ##
13875 ## ------------------------------------------ ##
13878 sed "s/^/$as_me: WARNING: /" >&2
13881 echo "$as_me:$LINENO: checking for $ac_header" >&5
13882 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
13883 if eval "test \"\${$as_ac_Header+set}\" = set"; then
13884 echo $ECHO_N "(cached) $ECHO_C" >&6
13886 eval "$as_ac_Header=\$ac_header_preproc"
13888 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
13889 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
13892 if test `eval echo '${'$as_ac_Header'}'` = yes; then
13893 cat >>confdefs.h <<_ACEOF
13894 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
13902 for ac_header in sys/resource.h
13904 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
13905 if eval "test \"\${$as_ac_Header+set}\" = set"; then
13906 echo "$as_me:$LINENO: checking for $ac_header" >&5
13907 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
13908 if eval "test \"\${$as_ac_Header+set}\" = set"; then
13909 echo $ECHO_N "(cached) $ECHO_C" >&6
13911 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
13912 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
13914 # Is the header compilable?
13915 echo "$as_me:$LINENO: checking $ac_header usability" >&5
13916 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
13917 cat >conftest.$ac_ext <<_ACEOF
13920 cat confdefs.h >>conftest.$ac_ext
13921 cat >>conftest.$ac_ext <<_ACEOF
13922 /* end confdefs.h. */
13923 $ac_includes_default
13924 #include <$ac_header>
13926 rm -f conftest.$ac_objext
13927 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
13928 (eval $ac_compile) 2>conftest.er1
13930 grep -v '^ *+' conftest.er1 >conftest.err
13932 cat conftest.err >&5
13933 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13934 (exit $ac_status); } &&
13935 { ac_try='test -z "$ac_c_werror_flag"
13936 || test ! -s conftest.err'
13937 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13938 (eval $ac_try) 2>&5
13940 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13941 (exit $ac_status); }; } &&
13942 { ac_try='test -s conftest.$ac_objext'
13943 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13944 (eval $ac_try) 2>&5
13946 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13947 (exit $ac_status); }; }; then
13948 ac_header_compiler=yes
13950 echo "$as_me: failed program was:" >&5
13951 sed 's/^/| /' conftest.$ac_ext >&5
13953 ac_header_compiler=no
13955 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
13956 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
13957 echo "${ECHO_T}$ac_header_compiler" >&6
13959 # Is the header present?
13960 echo "$as_me:$LINENO: checking $ac_header presence" >&5
13961 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
13962 cat >conftest.$ac_ext <<_ACEOF
13965 cat confdefs.h >>conftest.$ac_ext
13966 cat >>conftest.$ac_ext <<_ACEOF
13967 /* end confdefs.h. */
13968 #include <$ac_header>
13970 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
13971 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
13973 grep -v '^ *+' conftest.er1 >conftest.err
13975 cat conftest.err >&5
13976 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13977 (exit $ac_status); } >/dev/null; then
13978 if test -s conftest.err; then
13979 ac_cpp_err=$ac_c_preproc_warn_flag
13980 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
13987 if test -z "$ac_cpp_err"; then
13988 ac_header_preproc=yes
13990 echo "$as_me: failed program was:" >&5
13991 sed 's/^/| /' conftest.$ac_ext >&5
13993 ac_header_preproc=no
13995 rm -f conftest.err conftest.$ac_ext
13996 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
13997 echo "${ECHO_T}$ac_header_preproc" >&6
13999 # So? What about this header?
14000 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
14002 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
14003 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
14004 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
14005 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
14006 ac_header_preproc=yes
14009 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
14010 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
14011 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
14012 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
14013 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
14014 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
14015 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
14016 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
14017 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
14018 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
14019 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
14020 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
14023 ## ------------------------------------------ ##
14024 ## Report this to the AC_PACKAGE_NAME lists. ##
14025 ## ------------------------------------------ ##
14028 sed "s/^/$as_me: WARNING: /" >&2
14031 echo "$as_me:$LINENO: checking for $ac_header" >&5
14032 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
14033 if eval "test \"\${$as_ac_Header+set}\" = set"; then
14034 echo $ECHO_N "(cached) $ECHO_C" >&6
14036 eval "$as_ac_Header=\$ac_header_preproc"
14038 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
14039 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
14042 if test `eval echo '${'$as_ac_Header'}'` = yes; then
14043 cat >>confdefs.h <<_ACEOF
14044 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
14052 for ac_header in sys/proc.h
14054 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
14055 echo "$as_me:$LINENO: checking for $ac_header" >&5
14056 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
14057 if eval "test \"\${$as_ac_Header+set}\" = set"; then
14058 echo $ECHO_N "(cached) $ECHO_C" >&6
14060 cat >conftest.$ac_ext <<_ACEOF
14063 cat confdefs.h >>conftest.$ac_ext
14064 cat >>conftest.$ac_ext <<_ACEOF
14065 /* end confdefs.h. */
14066 #if HAVE_SYS_PARAM_H
14067 # include <sys/param.h>
14071 #include <$ac_header>
14073 rm -f conftest.$ac_objext
14074 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
14075 (eval $ac_compile) 2>conftest.er1
14077 grep -v '^ *+' conftest.er1 >conftest.err
14079 cat conftest.err >&5
14080 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14081 (exit $ac_status); } &&
14082 { ac_try='test -z "$ac_c_werror_flag"
14083 || test ! -s conftest.err'
14084 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14085 (eval $ac_try) 2>&5
14087 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14088 (exit $ac_status); }; } &&
14089 { ac_try='test -s conftest.$ac_objext'
14090 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14091 (eval $ac_try) 2>&5
14093 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14094 (exit $ac_status); }; }; then
14095 eval "$as_ac_Header=yes"
14097 echo "$as_me: failed program was:" >&5
14098 sed 's/^/| /' conftest.$ac_ext >&5
14100 eval "$as_ac_Header=no"
14102 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
14104 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
14105 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
14106 if test `eval echo '${'$as_ac_Header'}'` = yes; then
14107 cat >>confdefs.h <<_ACEOF
14108 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
14116 for ac_header in sys/procfs.h
14118 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
14119 if eval "test \"\${$as_ac_Header+set}\" = set"; then
14120 echo "$as_me:$LINENO: checking for $ac_header" >&5
14121 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
14122 if eval "test \"\${$as_ac_Header+set}\" = set"; then
14123 echo $ECHO_N "(cached) $ECHO_C" >&6
14125 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
14126 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
14128 # Is the header compilable?
14129 echo "$as_me:$LINENO: checking $ac_header usability" >&5
14130 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
14131 cat >conftest.$ac_ext <<_ACEOF
14134 cat confdefs.h >>conftest.$ac_ext
14135 cat >>conftest.$ac_ext <<_ACEOF
14136 /* end confdefs.h. */
14137 $ac_includes_default
14138 #include <$ac_header>
14140 rm -f conftest.$ac_objext
14141 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
14142 (eval $ac_compile) 2>conftest.er1
14144 grep -v '^ *+' conftest.er1 >conftest.err
14146 cat conftest.err >&5
14147 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14148 (exit $ac_status); } &&
14149 { ac_try='test -z "$ac_c_werror_flag"
14150 || test ! -s conftest.err'
14151 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14152 (eval $ac_try) 2>&5
14154 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14155 (exit $ac_status); }; } &&
14156 { ac_try='test -s conftest.$ac_objext'
14157 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14158 (eval $ac_try) 2>&5
14160 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14161 (exit $ac_status); }; }; then
14162 ac_header_compiler=yes
14164 echo "$as_me: failed program was:" >&5
14165 sed 's/^/| /' conftest.$ac_ext >&5
14167 ac_header_compiler=no
14169 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
14170 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
14171 echo "${ECHO_T}$ac_header_compiler" >&6
14173 # Is the header present?
14174 echo "$as_me:$LINENO: checking $ac_header presence" >&5
14175 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
14176 cat >conftest.$ac_ext <<_ACEOF
14179 cat confdefs.h >>conftest.$ac_ext
14180 cat >>conftest.$ac_ext <<_ACEOF
14181 /* end confdefs.h. */
14182 #include <$ac_header>
14184 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
14185 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
14187 grep -v '^ *+' conftest.er1 >conftest.err
14189 cat conftest.err >&5
14190 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14191 (exit $ac_status); } >/dev/null; then
14192 if test -s conftest.err; then
14193 ac_cpp_err=$ac_c_preproc_warn_flag
14194 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
14201 if test -z "$ac_cpp_err"; then
14202 ac_header_preproc=yes
14204 echo "$as_me: failed program was:" >&5
14205 sed 's/^/| /' conftest.$ac_ext >&5
14207 ac_header_preproc=no
14209 rm -f conftest.err conftest.$ac_ext
14210 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
14211 echo "${ECHO_T}$ac_header_preproc" >&6
14213 # So? What about this header?
14214 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
14216 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
14217 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
14218 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
14219 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
14220 ac_header_preproc=yes
14223 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
14224 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
14225 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
14226 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
14227 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
14228 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
14229 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
14230 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
14231 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
14232 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
14233 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
14234 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
14237 ## ------------------------------------------ ##
14238 ## Report this to the AC_PACKAGE_NAME lists. ##
14239 ## ------------------------------------------ ##
14242 sed "s/^/$as_me: WARNING: /" >&2
14245 echo "$as_me:$LINENO: checking for $ac_header" >&5
14246 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
14247 if eval "test \"\${$as_ac_Header+set}\" = set"; then
14248 echo $ECHO_N "(cached) $ECHO_C" >&6
14250 eval "$as_ac_Header=\$ac_header_preproc"
14252 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
14253 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
14256 if test `eval echo '${'$as_ac_Header'}'` = yes; then
14257 cat >>confdefs.h <<_ACEOF
14258 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
14267 for ac_header in sys/ptrace.h ptrace.h
14269 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
14270 if eval "test \"\${$as_ac_Header+set}\" = set"; then
14271 echo "$as_me:$LINENO: checking for $ac_header" >&5
14272 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
14273 if eval "test \"\${$as_ac_Header+set}\" = set"; then
14274 echo $ECHO_N "(cached) $ECHO_C" >&6
14276 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
14277 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
14279 # Is the header compilable?
14280 echo "$as_me:$LINENO: checking $ac_header usability" >&5
14281 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
14282 cat >conftest.$ac_ext <<_ACEOF
14285 cat confdefs.h >>conftest.$ac_ext
14286 cat >>conftest.$ac_ext <<_ACEOF
14287 /* end confdefs.h. */
14288 $ac_includes_default
14289 #include <$ac_header>
14291 rm -f conftest.$ac_objext
14292 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
14293 (eval $ac_compile) 2>conftest.er1
14295 grep -v '^ *+' conftest.er1 >conftest.err
14297 cat conftest.err >&5
14298 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14299 (exit $ac_status); } &&
14300 { ac_try='test -z "$ac_c_werror_flag"
14301 || test ! -s conftest.err'
14302 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14303 (eval $ac_try) 2>&5
14305 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14306 (exit $ac_status); }; } &&
14307 { ac_try='test -s conftest.$ac_objext'
14308 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14309 (eval $ac_try) 2>&5
14311 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14312 (exit $ac_status); }; }; then
14313 ac_header_compiler=yes
14315 echo "$as_me: failed program was:" >&5
14316 sed 's/^/| /' conftest.$ac_ext >&5
14318 ac_header_compiler=no
14320 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
14321 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
14322 echo "${ECHO_T}$ac_header_compiler" >&6
14324 # Is the header present?
14325 echo "$as_me:$LINENO: checking $ac_header presence" >&5
14326 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
14327 cat >conftest.$ac_ext <<_ACEOF
14330 cat confdefs.h >>conftest.$ac_ext
14331 cat >>conftest.$ac_ext <<_ACEOF
14332 /* end confdefs.h. */
14333 #include <$ac_header>
14335 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
14336 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
14338 grep -v '^ *+' conftest.er1 >conftest.err
14340 cat conftest.err >&5
14341 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14342 (exit $ac_status); } >/dev/null; then
14343 if test -s conftest.err; then
14344 ac_cpp_err=$ac_c_preproc_warn_flag
14345 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
14352 if test -z "$ac_cpp_err"; then
14353 ac_header_preproc=yes
14355 echo "$as_me: failed program was:" >&5
14356 sed 's/^/| /' conftest.$ac_ext >&5
14358 ac_header_preproc=no
14360 rm -f conftest.err conftest.$ac_ext
14361 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
14362 echo "${ECHO_T}$ac_header_preproc" >&6
14364 # So? What about this header?
14365 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
14367 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
14368 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
14369 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
14370 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
14371 ac_header_preproc=yes
14374 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
14375 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
14376 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
14377 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
14378 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
14379 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
14380 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
14381 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
14382 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
14383 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
14384 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
14385 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
14388 ## ------------------------------------------ ##
14389 ## Report this to the AC_PACKAGE_NAME lists. ##
14390 ## ------------------------------------------ ##
14393 sed "s/^/$as_me: WARNING: /" >&2
14396 echo "$as_me:$LINENO: checking for $ac_header" >&5
14397 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
14398 if eval "test \"\${$as_ac_Header+set}\" = set"; then
14399 echo $ECHO_N "(cached) $ECHO_C" >&6
14401 eval "$as_ac_Header=\$ac_header_preproc"
14403 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
14404 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
14407 if test `eval echo '${'$as_ac_Header'}'` = yes; then
14408 cat >>confdefs.h <<_ACEOF
14409 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
14418 for ac_header in sys/reg.h sys/debugreg.h
14420 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
14421 if eval "test \"\${$as_ac_Header+set}\" = set"; then
14422 echo "$as_me:$LINENO: checking for $ac_header" >&5
14423 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
14424 if eval "test \"\${$as_ac_Header+set}\" = set"; then
14425 echo $ECHO_N "(cached) $ECHO_C" >&6
14427 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
14428 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
14430 # Is the header compilable?
14431 echo "$as_me:$LINENO: checking $ac_header usability" >&5
14432 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
14433 cat >conftest.$ac_ext <<_ACEOF
14436 cat confdefs.h >>conftest.$ac_ext
14437 cat >>conftest.$ac_ext <<_ACEOF
14438 /* end confdefs.h. */
14439 $ac_includes_default
14440 #include <$ac_header>
14442 rm -f conftest.$ac_objext
14443 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
14444 (eval $ac_compile) 2>conftest.er1
14446 grep -v '^ *+' conftest.er1 >conftest.err
14448 cat conftest.err >&5
14449 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14450 (exit $ac_status); } &&
14451 { ac_try='test -z "$ac_c_werror_flag"
14452 || test ! -s conftest.err'
14453 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14454 (eval $ac_try) 2>&5
14456 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14457 (exit $ac_status); }; } &&
14458 { ac_try='test -s conftest.$ac_objext'
14459 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14460 (eval $ac_try) 2>&5
14462 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14463 (exit $ac_status); }; }; then
14464 ac_header_compiler=yes
14466 echo "$as_me: failed program was:" >&5
14467 sed 's/^/| /' conftest.$ac_ext >&5
14469 ac_header_compiler=no
14471 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
14472 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
14473 echo "${ECHO_T}$ac_header_compiler" >&6
14475 # Is the header present?
14476 echo "$as_me:$LINENO: checking $ac_header presence" >&5
14477 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
14478 cat >conftest.$ac_ext <<_ACEOF
14481 cat confdefs.h >>conftest.$ac_ext
14482 cat >>conftest.$ac_ext <<_ACEOF
14483 /* end confdefs.h. */
14484 #include <$ac_header>
14486 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
14487 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
14489 grep -v '^ *+' conftest.er1 >conftest.err
14491 cat conftest.err >&5
14492 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14493 (exit $ac_status); } >/dev/null; then
14494 if test -s conftest.err; then
14495 ac_cpp_err=$ac_c_preproc_warn_flag
14496 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
14503 if test -z "$ac_cpp_err"; then
14504 ac_header_preproc=yes
14506 echo "$as_me: failed program was:" >&5
14507 sed 's/^/| /' conftest.$ac_ext >&5
14509 ac_header_preproc=no
14511 rm -f conftest.err conftest.$ac_ext
14512 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
14513 echo "${ECHO_T}$ac_header_preproc" >&6
14515 # So? What about this header?
14516 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
14518 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
14519 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
14520 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
14521 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
14522 ac_header_preproc=yes
14525 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
14526 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
14527 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
14528 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
14529 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
14530 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
14531 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
14532 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
14533 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
14534 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
14535 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
14536 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
14539 ## ------------------------------------------ ##
14540 ## Report this to the AC_PACKAGE_NAME lists. ##
14541 ## ------------------------------------------ ##
14544 sed "s/^/$as_me: WARNING: /" >&2
14547 echo "$as_me:$LINENO: checking for $ac_header" >&5
14548 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
14549 if eval "test \"\${$as_ac_Header+set}\" = set"; then
14550 echo $ECHO_N "(cached) $ECHO_C" >&6
14552 eval "$as_ac_Header=\$ac_header_preproc"
14554 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
14555 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
14558 if test `eval echo '${'$as_ac_Header'}'` = yes; then
14559 cat >>confdefs.h <<_ACEOF
14560 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
14568 for ac_header in sys/select.h
14570 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
14571 if eval "test \"\${$as_ac_Header+set}\" = set"; then
14572 echo "$as_me:$LINENO: checking for $ac_header" >&5
14573 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
14574 if eval "test \"\${$as_ac_Header+set}\" = set"; then
14575 echo $ECHO_N "(cached) $ECHO_C" >&6
14577 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
14578 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
14580 # Is the header compilable?
14581 echo "$as_me:$LINENO: checking $ac_header usability" >&5
14582 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
14583 cat >conftest.$ac_ext <<_ACEOF
14586 cat confdefs.h >>conftest.$ac_ext
14587 cat >>conftest.$ac_ext <<_ACEOF
14588 /* end confdefs.h. */
14589 $ac_includes_default
14590 #include <$ac_header>
14592 rm -f conftest.$ac_objext
14593 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
14594 (eval $ac_compile) 2>conftest.er1
14596 grep -v '^ *+' conftest.er1 >conftest.err
14598 cat conftest.err >&5
14599 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14600 (exit $ac_status); } &&
14601 { ac_try='test -z "$ac_c_werror_flag"
14602 || test ! -s conftest.err'
14603 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14604 (eval $ac_try) 2>&5
14606 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14607 (exit $ac_status); }; } &&
14608 { ac_try='test -s conftest.$ac_objext'
14609 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14610 (eval $ac_try) 2>&5
14612 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14613 (exit $ac_status); }; }; then
14614 ac_header_compiler=yes
14616 echo "$as_me: failed program was:" >&5
14617 sed 's/^/| /' conftest.$ac_ext >&5
14619 ac_header_compiler=no
14621 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
14622 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
14623 echo "${ECHO_T}$ac_header_compiler" >&6
14625 # Is the header present?
14626 echo "$as_me:$LINENO: checking $ac_header presence" >&5
14627 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
14628 cat >conftest.$ac_ext <<_ACEOF
14631 cat confdefs.h >>conftest.$ac_ext
14632 cat >>conftest.$ac_ext <<_ACEOF
14633 /* end confdefs.h. */
14634 #include <$ac_header>
14636 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
14637 (eval $ac_cpp conftest.$ac_ext) 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); } >/dev/null; then
14644 if test -s conftest.err; then
14645 ac_cpp_err=$ac_c_preproc_warn_flag
14646 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
14653 if test -z "$ac_cpp_err"; then
14654 ac_header_preproc=yes
14656 echo "$as_me: failed program was:" >&5
14657 sed 's/^/| /' conftest.$ac_ext >&5
14659 ac_header_preproc=no
14661 rm -f conftest.err conftest.$ac_ext
14662 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
14663 echo "${ECHO_T}$ac_header_preproc" >&6
14665 # So? What about this header?
14666 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
14668 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
14669 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
14670 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
14671 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
14672 ac_header_preproc=yes
14675 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
14676 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
14677 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
14678 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
14679 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
14680 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
14681 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
14682 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
14683 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
14684 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
14685 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
14686 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
14689 ## ------------------------------------------ ##
14690 ## Report this to the AC_PACKAGE_NAME lists. ##
14691 ## ------------------------------------------ ##
14694 sed "s/^/$as_me: WARNING: /" >&2
14697 echo "$as_me:$LINENO: checking for $ac_header" >&5
14698 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
14699 if eval "test \"\${$as_ac_Header+set}\" = set"; then
14700 echo $ECHO_N "(cached) $ECHO_C" >&6
14702 eval "$as_ac_Header=\$ac_header_preproc"
14704 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
14705 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
14708 if test `eval echo '${'$as_ac_Header'}'` = yes; then
14709 cat >>confdefs.h <<_ACEOF
14710 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
14718 for ac_header in sys/syscall.h
14720 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
14721 if eval "test \"\${$as_ac_Header+set}\" = set"; then
14722 echo "$as_me:$LINENO: checking for $ac_header" >&5
14723 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
14724 if eval "test \"\${$as_ac_Header+set}\" = set"; then
14725 echo $ECHO_N "(cached) $ECHO_C" >&6
14727 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
14728 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
14730 # Is the header compilable?
14731 echo "$as_me:$LINENO: checking $ac_header usability" >&5
14732 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
14733 cat >conftest.$ac_ext <<_ACEOF
14736 cat confdefs.h >>conftest.$ac_ext
14737 cat >>conftest.$ac_ext <<_ACEOF
14738 /* end confdefs.h. */
14739 $ac_includes_default
14740 #include <$ac_header>
14742 rm -f conftest.$ac_objext
14743 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
14744 (eval $ac_compile) 2>conftest.er1
14746 grep -v '^ *+' conftest.er1 >conftest.err
14748 cat conftest.err >&5
14749 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14750 (exit $ac_status); } &&
14751 { ac_try='test -z "$ac_c_werror_flag"
14752 || test ! -s conftest.err'
14753 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14754 (eval $ac_try) 2>&5
14756 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14757 (exit $ac_status); }; } &&
14758 { ac_try='test -s conftest.$ac_objext'
14759 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14760 (eval $ac_try) 2>&5
14762 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14763 (exit $ac_status); }; }; then
14764 ac_header_compiler=yes
14766 echo "$as_me: failed program was:" >&5
14767 sed 's/^/| /' conftest.$ac_ext >&5
14769 ac_header_compiler=no
14771 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
14772 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
14773 echo "${ECHO_T}$ac_header_compiler" >&6
14775 # Is the header present?
14776 echo "$as_me:$LINENO: checking $ac_header presence" >&5
14777 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
14778 cat >conftest.$ac_ext <<_ACEOF
14781 cat confdefs.h >>conftest.$ac_ext
14782 cat >>conftest.$ac_ext <<_ACEOF
14783 /* end confdefs.h. */
14784 #include <$ac_header>
14786 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
14787 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
14789 grep -v '^ *+' conftest.er1 >conftest.err
14791 cat conftest.err >&5
14792 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14793 (exit $ac_status); } >/dev/null; then
14794 if test -s conftest.err; then
14795 ac_cpp_err=$ac_c_preproc_warn_flag
14796 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
14803 if test -z "$ac_cpp_err"; then
14804 ac_header_preproc=yes
14806 echo "$as_me: failed program was:" >&5
14807 sed 's/^/| /' conftest.$ac_ext >&5
14809 ac_header_preproc=no
14811 rm -f conftest.err conftest.$ac_ext
14812 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
14813 echo "${ECHO_T}$ac_header_preproc" >&6
14815 # So? What about this header?
14816 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
14818 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
14819 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
14820 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
14821 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
14822 ac_header_preproc=yes
14825 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
14826 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
14827 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
14828 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
14829 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
14830 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
14831 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
14832 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
14833 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
14834 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
14835 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
14836 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
14839 ## ------------------------------------------ ##
14840 ## Report this to the AC_PACKAGE_NAME lists. ##
14841 ## ------------------------------------------ ##
14844 sed "s/^/$as_me: WARNING: /" >&2
14847 echo "$as_me:$LINENO: checking for $ac_header" >&5
14848 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
14849 if eval "test \"\${$as_ac_Header+set}\" = set"; then
14850 echo $ECHO_N "(cached) $ECHO_C" >&6
14852 eval "$as_ac_Header=\$ac_header_preproc"
14854 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
14855 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
14858 if test `eval echo '${'$as_ac_Header'}'` = yes; then
14859 cat >>confdefs.h <<_ACEOF
14860 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
14868 for ac_header in sys/types.h
14870 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
14871 if eval "test \"\${$as_ac_Header+set}\" = set"; then
14872 echo "$as_me:$LINENO: checking for $ac_header" >&5
14873 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
14874 if eval "test \"\${$as_ac_Header+set}\" = set"; then
14875 echo $ECHO_N "(cached) $ECHO_C" >&6
14877 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
14878 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
14880 # Is the header compilable?
14881 echo "$as_me:$LINENO: checking $ac_header usability" >&5
14882 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
14883 cat >conftest.$ac_ext <<_ACEOF
14886 cat confdefs.h >>conftest.$ac_ext
14887 cat >>conftest.$ac_ext <<_ACEOF
14888 /* end confdefs.h. */
14889 $ac_includes_default
14890 #include <$ac_header>
14892 rm -f conftest.$ac_objext
14893 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
14894 (eval $ac_compile) 2>conftest.er1
14896 grep -v '^ *+' conftest.er1 >conftest.err
14898 cat conftest.err >&5
14899 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14900 (exit $ac_status); } &&
14901 { ac_try='test -z "$ac_c_werror_flag"
14902 || test ! -s conftest.err'
14903 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14904 (eval $ac_try) 2>&5
14906 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14907 (exit $ac_status); }; } &&
14908 { ac_try='test -s conftest.$ac_objext'
14909 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14910 (eval $ac_try) 2>&5
14912 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14913 (exit $ac_status); }; }; then
14914 ac_header_compiler=yes
14916 echo "$as_me: failed program was:" >&5
14917 sed 's/^/| /' conftest.$ac_ext >&5
14919 ac_header_compiler=no
14921 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
14922 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
14923 echo "${ECHO_T}$ac_header_compiler" >&6
14925 # Is the header present?
14926 echo "$as_me:$LINENO: checking $ac_header presence" >&5
14927 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
14928 cat >conftest.$ac_ext <<_ACEOF
14931 cat confdefs.h >>conftest.$ac_ext
14932 cat >>conftest.$ac_ext <<_ACEOF
14933 /* end confdefs.h. */
14934 #include <$ac_header>
14936 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
14937 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
14939 grep -v '^ *+' conftest.er1 >conftest.err
14941 cat conftest.err >&5
14942 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14943 (exit $ac_status); } >/dev/null; then
14944 if test -s conftest.err; then
14945 ac_cpp_err=$ac_c_preproc_warn_flag
14946 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
14953 if test -z "$ac_cpp_err"; then
14954 ac_header_preproc=yes
14956 echo "$as_me: failed program was:" >&5
14957 sed 's/^/| /' conftest.$ac_ext >&5
14959 ac_header_preproc=no
14961 rm -f conftest.err conftest.$ac_ext
14962 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
14963 echo "${ECHO_T}$ac_header_preproc" >&6
14965 # So? What about this header?
14966 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
14968 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
14969 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
14970 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
14971 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
14972 ac_header_preproc=yes
14975 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
14976 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
14977 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
14978 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
14979 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
14980 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
14981 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
14982 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
14983 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
14984 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
14985 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
14986 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
14989 ## ------------------------------------------ ##
14990 ## Report this to the AC_PACKAGE_NAME lists. ##
14991 ## ------------------------------------------ ##
14994 sed "s/^/$as_me: WARNING: /" >&2
14997 echo "$as_me:$LINENO: checking for $ac_header" >&5
14998 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
14999 if eval "test \"\${$as_ac_Header+set}\" = set"; then
15000 echo $ECHO_N "(cached) $ECHO_C" >&6
15002 eval "$as_ac_Header=\$ac_header_preproc"
15004 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
15005 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
15008 if test `eval echo '${'$as_ac_Header'}'` = yes; then
15009 cat >>confdefs.h <<_ACEOF
15010 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
15018 for ac_header in sys/user.h
15020 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
15021 echo "$as_me:$LINENO: checking for $ac_header" >&5
15022 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
15023 if eval "test \"\${$as_ac_Header+set}\" = set"; then
15024 echo $ECHO_N "(cached) $ECHO_C" >&6
15026 cat >conftest.$ac_ext <<_ACEOF
15029 cat confdefs.h >>conftest.$ac_ext
15030 cat >>conftest.$ac_ext <<_ACEOF
15031 /* end confdefs.h. */
15032 #if HAVE_SYS_PARAM_H
15033 # include <sys/param.h>
15037 #include <$ac_header>
15039 rm -f conftest.$ac_objext
15040 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
15041 (eval $ac_compile) 2>conftest.er1
15043 grep -v '^ *+' conftest.er1 >conftest.err
15045 cat conftest.err >&5
15046 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15047 (exit $ac_status); } &&
15048 { ac_try='test -z "$ac_c_werror_flag"
15049 || test ! -s conftest.err'
15050 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15051 (eval $ac_try) 2>&5
15053 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15054 (exit $ac_status); }; } &&
15055 { ac_try='test -s conftest.$ac_objext'
15056 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15057 (eval $ac_try) 2>&5
15059 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15060 (exit $ac_status); }; }; then
15061 eval "$as_ac_Header=yes"
15063 echo "$as_me: failed program was:" >&5
15064 sed 's/^/| /' conftest.$ac_ext >&5
15066 eval "$as_ac_Header=no"
15068 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
15070 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
15071 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
15072 if test `eval echo '${'$as_ac_Header'}'` = yes; then
15073 cat >>confdefs.h <<_ACEOF
15074 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
15083 for ac_header in sys/wait.h wait.h
15085 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
15086 if eval "test \"\${$as_ac_Header+set}\" = set"; then
15087 echo "$as_me:$LINENO: checking for $ac_header" >&5
15088 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
15089 if eval "test \"\${$as_ac_Header+set}\" = set"; then
15090 echo $ECHO_N "(cached) $ECHO_C" >&6
15092 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
15093 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
15095 # Is the header compilable?
15096 echo "$as_me:$LINENO: checking $ac_header usability" >&5
15097 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
15098 cat >conftest.$ac_ext <<_ACEOF
15101 cat confdefs.h >>conftest.$ac_ext
15102 cat >>conftest.$ac_ext <<_ACEOF
15103 /* end confdefs.h. */
15104 $ac_includes_default
15105 #include <$ac_header>
15107 rm -f conftest.$ac_objext
15108 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
15109 (eval $ac_compile) 2>conftest.er1
15111 grep -v '^ *+' conftest.er1 >conftest.err
15113 cat conftest.err >&5
15114 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15115 (exit $ac_status); } &&
15116 { ac_try='test -z "$ac_c_werror_flag"
15117 || test ! -s conftest.err'
15118 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15119 (eval $ac_try) 2>&5
15121 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15122 (exit $ac_status); }; } &&
15123 { ac_try='test -s conftest.$ac_objext'
15124 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15125 (eval $ac_try) 2>&5
15127 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15128 (exit $ac_status); }; }; then
15129 ac_header_compiler=yes
15131 echo "$as_me: failed program was:" >&5
15132 sed 's/^/| /' conftest.$ac_ext >&5
15134 ac_header_compiler=no
15136 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
15137 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
15138 echo "${ECHO_T}$ac_header_compiler" >&6
15140 # Is the header present?
15141 echo "$as_me:$LINENO: checking $ac_header presence" >&5
15142 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
15143 cat >conftest.$ac_ext <<_ACEOF
15146 cat confdefs.h >>conftest.$ac_ext
15147 cat >>conftest.$ac_ext <<_ACEOF
15148 /* end confdefs.h. */
15149 #include <$ac_header>
15151 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
15152 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
15154 grep -v '^ *+' conftest.er1 >conftest.err
15156 cat conftest.err >&5
15157 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15158 (exit $ac_status); } >/dev/null; then
15159 if test -s conftest.err; then
15160 ac_cpp_err=$ac_c_preproc_warn_flag
15161 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
15168 if test -z "$ac_cpp_err"; then
15169 ac_header_preproc=yes
15171 echo "$as_me: failed program was:" >&5
15172 sed 's/^/| /' conftest.$ac_ext >&5
15174 ac_header_preproc=no
15176 rm -f conftest.err conftest.$ac_ext
15177 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
15178 echo "${ECHO_T}$ac_header_preproc" >&6
15180 # So? What about this header?
15181 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
15183 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
15184 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
15185 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
15186 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
15187 ac_header_preproc=yes
15190 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
15191 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
15192 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
15193 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
15194 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
15195 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
15196 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
15197 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
15198 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
15199 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
15200 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
15201 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
15204 ## ------------------------------------------ ##
15205 ## Report this to the AC_PACKAGE_NAME lists. ##
15206 ## ------------------------------------------ ##
15209 sed "s/^/$as_me: WARNING: /" >&2
15212 echo "$as_me:$LINENO: checking for $ac_header" >&5
15213 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
15214 if eval "test \"\${$as_ac_Header+set}\" = set"; then
15215 echo $ECHO_N "(cached) $ECHO_C" >&6
15217 eval "$as_ac_Header=\$ac_header_preproc"
15219 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
15220 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
15223 if test `eval echo '${'$as_ac_Header'}'` = yes; then
15224 cat >>confdefs.h <<_ACEOF
15225 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
15235 for ac_header in termios.h termio.h sgtty.h
15237 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
15238 if eval "test \"\${$as_ac_Header+set}\" = set"; then
15239 echo "$as_me:$LINENO: checking for $ac_header" >&5
15240 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
15241 if eval "test \"\${$as_ac_Header+set}\" = set"; then
15242 echo $ECHO_N "(cached) $ECHO_C" >&6
15244 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
15245 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
15247 # Is the header compilable?
15248 echo "$as_me:$LINENO: checking $ac_header usability" >&5
15249 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
15250 cat >conftest.$ac_ext <<_ACEOF
15253 cat confdefs.h >>conftest.$ac_ext
15254 cat >>conftest.$ac_ext <<_ACEOF
15255 /* end confdefs.h. */
15256 $ac_includes_default
15257 #include <$ac_header>
15259 rm -f conftest.$ac_objext
15260 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
15261 (eval $ac_compile) 2>conftest.er1
15263 grep -v '^ *+' conftest.er1 >conftest.err
15265 cat conftest.err >&5
15266 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15267 (exit $ac_status); } &&
15268 { ac_try='test -z "$ac_c_werror_flag"
15269 || test ! -s conftest.err'
15270 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15271 (eval $ac_try) 2>&5
15273 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15274 (exit $ac_status); }; } &&
15275 { ac_try='test -s conftest.$ac_objext'
15276 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15277 (eval $ac_try) 2>&5
15279 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15280 (exit $ac_status); }; }; then
15281 ac_header_compiler=yes
15283 echo "$as_me: failed program was:" >&5
15284 sed 's/^/| /' conftest.$ac_ext >&5
15286 ac_header_compiler=no
15288 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
15289 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
15290 echo "${ECHO_T}$ac_header_compiler" >&6
15292 # Is the header present?
15293 echo "$as_me:$LINENO: checking $ac_header presence" >&5
15294 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
15295 cat >conftest.$ac_ext <<_ACEOF
15298 cat confdefs.h >>conftest.$ac_ext
15299 cat >>conftest.$ac_ext <<_ACEOF
15300 /* end confdefs.h. */
15301 #include <$ac_header>
15303 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
15304 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
15306 grep -v '^ *+' conftest.er1 >conftest.err
15308 cat conftest.err >&5
15309 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15310 (exit $ac_status); } >/dev/null; then
15311 if test -s conftest.err; then
15312 ac_cpp_err=$ac_c_preproc_warn_flag
15313 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
15320 if test -z "$ac_cpp_err"; then
15321 ac_header_preproc=yes
15323 echo "$as_me: failed program was:" >&5
15324 sed 's/^/| /' conftest.$ac_ext >&5
15326 ac_header_preproc=no
15328 rm -f conftest.err conftest.$ac_ext
15329 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
15330 echo "${ECHO_T}$ac_header_preproc" >&6
15332 # So? What about this header?
15333 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
15335 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
15336 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
15337 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
15338 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
15339 ac_header_preproc=yes
15342 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
15343 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
15344 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
15345 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
15346 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
15347 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
15348 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
15349 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
15350 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
15351 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
15352 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
15353 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
15356 ## ------------------------------------------ ##
15357 ## Report this to the AC_PACKAGE_NAME lists. ##
15358 ## ------------------------------------------ ##
15361 sed "s/^/$as_me: WARNING: /" >&2
15364 echo "$as_me:$LINENO: checking for $ac_header" >&5
15365 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
15366 if eval "test \"\${$as_ac_Header+set}\" = set"; then
15367 echo $ECHO_N "(cached) $ECHO_C" >&6
15369 eval "$as_ac_Header=\$ac_header_preproc"
15371 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
15372 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
15375 if test `eval echo '${'$as_ac_Header'}'` = yes; then
15376 cat >>confdefs.h <<_ACEOF
15377 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
15385 for ac_header in unistd.h
15387 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
15388 if eval "test \"\${$as_ac_Header+set}\" = set"; then
15389 echo "$as_me:$LINENO: checking for $ac_header" >&5
15390 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
15391 if eval "test \"\${$as_ac_Header+set}\" = set"; then
15392 echo $ECHO_N "(cached) $ECHO_C" >&6
15394 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
15395 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
15397 # Is the header compilable?
15398 echo "$as_me:$LINENO: checking $ac_header usability" >&5
15399 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
15400 cat >conftest.$ac_ext <<_ACEOF
15403 cat confdefs.h >>conftest.$ac_ext
15404 cat >>conftest.$ac_ext <<_ACEOF
15405 /* end confdefs.h. */
15406 $ac_includes_default
15407 #include <$ac_header>
15409 rm -f conftest.$ac_objext
15410 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
15411 (eval $ac_compile) 2>conftest.er1
15413 grep -v '^ *+' conftest.er1 >conftest.err
15415 cat conftest.err >&5
15416 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15417 (exit $ac_status); } &&
15418 { ac_try='test -z "$ac_c_werror_flag"
15419 || test ! -s conftest.err'
15420 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15421 (eval $ac_try) 2>&5
15423 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15424 (exit $ac_status); }; } &&
15425 { ac_try='test -s conftest.$ac_objext'
15426 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15427 (eval $ac_try) 2>&5
15429 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15430 (exit $ac_status); }; }; then
15431 ac_header_compiler=yes
15433 echo "$as_me: failed program was:" >&5
15434 sed 's/^/| /' conftest.$ac_ext >&5
15436 ac_header_compiler=no
15438 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
15439 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
15440 echo "${ECHO_T}$ac_header_compiler" >&6
15442 # Is the header present?
15443 echo "$as_me:$LINENO: checking $ac_header presence" >&5
15444 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
15445 cat >conftest.$ac_ext <<_ACEOF
15448 cat confdefs.h >>conftest.$ac_ext
15449 cat >>conftest.$ac_ext <<_ACEOF
15450 /* end confdefs.h. */
15451 #include <$ac_header>
15453 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
15454 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
15456 grep -v '^ *+' conftest.er1 >conftest.err
15458 cat conftest.err >&5
15459 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15460 (exit $ac_status); } >/dev/null; then
15461 if test -s conftest.err; then
15462 ac_cpp_err=$ac_c_preproc_warn_flag
15463 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
15470 if test -z "$ac_cpp_err"; then
15471 ac_header_preproc=yes
15473 echo "$as_me: failed program was:" >&5
15474 sed 's/^/| /' conftest.$ac_ext >&5
15476 ac_header_preproc=no
15478 rm -f conftest.err conftest.$ac_ext
15479 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
15480 echo "${ECHO_T}$ac_header_preproc" >&6
15482 # So? What about this header?
15483 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
15485 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
15486 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
15487 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
15488 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
15489 ac_header_preproc=yes
15492 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
15493 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
15494 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
15495 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
15496 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
15497 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
15498 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
15499 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
15500 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
15501 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
15502 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
15503 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
15506 ## ------------------------------------------ ##
15507 ## Report this to the AC_PACKAGE_NAME lists. ##
15508 ## ------------------------------------------ ##
15511 sed "s/^/$as_me: WARNING: /" >&2
15514 echo "$as_me:$LINENO: checking for $ac_header" >&5
15515 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
15516 if eval "test \"\${$as_ac_Header+set}\" = set"; then
15517 echo $ECHO_N "(cached) $ECHO_C" >&6
15519 eval "$as_ac_Header=\$ac_header_preproc"
15521 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
15522 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
15525 if test `eval echo '${'$as_ac_Header'}'` = yes; then
15526 cat >>confdefs.h <<_ACEOF
15527 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
15535 # On Solaris 2.[789], we need to define _MSE_INT_H to avoid a clash
15536 # between <widec.h> and <wchar.h> that would cause AC_CHECK_HEADERS to
15537 # think that we don't have <curses.h> if we're using GCC.
15540 if test "$GCC" = yes; then
15542 cat >>confdefs.h <<\_ACEOF
15543 #define _MSE_INT_H 1
15552 for ac_header in curses.h cursesX.h ncurses.h ncurses/ncurses.h
15554 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
15555 if eval "test \"\${$as_ac_Header+set}\" = set"; then
15556 echo "$as_me:$LINENO: checking for $ac_header" >&5
15557 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
15558 if eval "test \"\${$as_ac_Header+set}\" = set"; then
15559 echo $ECHO_N "(cached) $ECHO_C" >&6
15561 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
15562 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
15564 # Is the header compilable?
15565 echo "$as_me:$LINENO: checking $ac_header usability" >&5
15566 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
15567 cat >conftest.$ac_ext <<_ACEOF
15570 cat confdefs.h >>conftest.$ac_ext
15571 cat >>conftest.$ac_ext <<_ACEOF
15572 /* end confdefs.h. */
15573 $ac_includes_default
15574 #include <$ac_header>
15576 rm -f conftest.$ac_objext
15577 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
15578 (eval $ac_compile) 2>conftest.er1
15580 grep -v '^ *+' conftest.er1 >conftest.err
15582 cat conftest.err >&5
15583 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15584 (exit $ac_status); } &&
15585 { ac_try='test -z "$ac_c_werror_flag"
15586 || test ! -s conftest.err'
15587 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15588 (eval $ac_try) 2>&5
15590 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15591 (exit $ac_status); }; } &&
15592 { ac_try='test -s conftest.$ac_objext'
15593 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15594 (eval $ac_try) 2>&5
15596 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15597 (exit $ac_status); }; }; then
15598 ac_header_compiler=yes
15600 echo "$as_me: failed program was:" >&5
15601 sed 's/^/| /' conftest.$ac_ext >&5
15603 ac_header_compiler=no
15605 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
15606 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
15607 echo "${ECHO_T}$ac_header_compiler" >&6
15609 # Is the header present?
15610 echo "$as_me:$LINENO: checking $ac_header presence" >&5
15611 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
15612 cat >conftest.$ac_ext <<_ACEOF
15615 cat confdefs.h >>conftest.$ac_ext
15616 cat >>conftest.$ac_ext <<_ACEOF
15617 /* end confdefs.h. */
15618 #include <$ac_header>
15620 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
15621 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
15623 grep -v '^ *+' conftest.er1 >conftest.err
15625 cat conftest.err >&5
15626 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15627 (exit $ac_status); } >/dev/null; then
15628 if test -s conftest.err; then
15629 ac_cpp_err=$ac_c_preproc_warn_flag
15630 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
15637 if test -z "$ac_cpp_err"; then
15638 ac_header_preproc=yes
15640 echo "$as_me: failed program was:" >&5
15641 sed 's/^/| /' conftest.$ac_ext >&5
15643 ac_header_preproc=no
15645 rm -f conftest.err conftest.$ac_ext
15646 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
15647 echo "${ECHO_T}$ac_header_preproc" >&6
15649 # So? What about this header?
15650 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
15652 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
15653 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
15654 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
15655 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
15656 ac_header_preproc=yes
15659 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
15660 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
15661 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
15662 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
15663 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
15664 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
15665 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
15666 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
15667 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
15668 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
15669 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
15670 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
15673 ## ------------------------------------------ ##
15674 ## Report this to the AC_PACKAGE_NAME lists. ##
15675 ## ------------------------------------------ ##
15678 sed "s/^/$as_me: WARNING: /" >&2
15681 echo "$as_me:$LINENO: checking for $ac_header" >&5
15682 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
15683 if eval "test \"\${$as_ac_Header+set}\" = set"; then
15684 echo $ECHO_N "(cached) $ECHO_C" >&6
15686 eval "$as_ac_Header=\$ac_header_preproc"
15688 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
15689 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
15692 if test `eval echo '${'$as_ac_Header'}'` = yes; then
15693 cat >>confdefs.h <<_ACEOF
15694 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
15702 for ac_header in ncurses/term.h
15704 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
15705 if eval "test \"\${$as_ac_Header+set}\" = set"; then
15706 echo "$as_me:$LINENO: checking for $ac_header" >&5
15707 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
15708 if eval "test \"\${$as_ac_Header+set}\" = set"; then
15709 echo $ECHO_N "(cached) $ECHO_C" >&6
15711 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
15712 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
15714 # Is the header compilable?
15715 echo "$as_me:$LINENO: checking $ac_header usability" >&5
15716 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
15717 cat >conftest.$ac_ext <<_ACEOF
15720 cat confdefs.h >>conftest.$ac_ext
15721 cat >>conftest.$ac_ext <<_ACEOF
15722 /* end confdefs.h. */
15723 $ac_includes_default
15724 #include <$ac_header>
15726 rm -f conftest.$ac_objext
15727 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
15728 (eval $ac_compile) 2>conftest.er1
15730 grep -v '^ *+' conftest.er1 >conftest.err
15732 cat conftest.err >&5
15733 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15734 (exit $ac_status); } &&
15735 { ac_try='test -z "$ac_c_werror_flag"
15736 || test ! -s conftest.err'
15737 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15738 (eval $ac_try) 2>&5
15740 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15741 (exit $ac_status); }; } &&
15742 { ac_try='test -s conftest.$ac_objext'
15743 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15744 (eval $ac_try) 2>&5
15746 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15747 (exit $ac_status); }; }; then
15748 ac_header_compiler=yes
15750 echo "$as_me: failed program was:" >&5
15751 sed 's/^/| /' conftest.$ac_ext >&5
15753 ac_header_compiler=no
15755 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
15756 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
15757 echo "${ECHO_T}$ac_header_compiler" >&6
15759 # Is the header present?
15760 echo "$as_me:$LINENO: checking $ac_header presence" >&5
15761 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
15762 cat >conftest.$ac_ext <<_ACEOF
15765 cat confdefs.h >>conftest.$ac_ext
15766 cat >>conftest.$ac_ext <<_ACEOF
15767 /* end confdefs.h. */
15768 #include <$ac_header>
15770 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
15771 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
15773 grep -v '^ *+' conftest.er1 >conftest.err
15775 cat conftest.err >&5
15776 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15777 (exit $ac_status); } >/dev/null; then
15778 if test -s conftest.err; then
15779 ac_cpp_err=$ac_c_preproc_warn_flag
15780 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
15787 if test -z "$ac_cpp_err"; then
15788 ac_header_preproc=yes
15790 echo "$as_me: failed program was:" >&5
15791 sed 's/^/| /' conftest.$ac_ext >&5
15793 ac_header_preproc=no
15795 rm -f conftest.err conftest.$ac_ext
15796 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
15797 echo "${ECHO_T}$ac_header_preproc" >&6
15799 # So? What about this header?
15800 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
15802 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
15803 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
15804 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
15805 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
15806 ac_header_preproc=yes
15809 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
15810 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
15811 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
15812 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
15813 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
15814 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
15815 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
15816 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
15817 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
15818 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
15819 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
15820 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
15823 ## ------------------------------------------ ##
15824 ## Report this to the AC_PACKAGE_NAME lists. ##
15825 ## ------------------------------------------ ##
15828 sed "s/^/$as_me: WARNING: /" >&2
15831 echo "$as_me:$LINENO: checking for $ac_header" >&5
15832 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
15833 if eval "test \"\${$as_ac_Header+set}\" = set"; then
15834 echo $ECHO_N "(cached) $ECHO_C" >&6
15836 eval "$as_ac_Header=\$ac_header_preproc"
15838 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
15839 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
15842 if test `eval echo '${'$as_ac_Header'}'` = yes; then
15843 cat >>confdefs.h <<_ACEOF
15844 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
15852 for ac_header in term.h
15854 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
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 cat >conftest.$ac_ext <<_ACEOF
15863 cat confdefs.h >>conftest.$ac_ext
15864 cat >>conftest.$ac_ext <<_ACEOF
15865 /* end confdefs.h. */
15867 # include <curses.h>
15871 #include <$ac_header>
15873 rm -f conftest.$ac_objext
15874 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
15875 (eval $ac_compile) 2>conftest.er1
15877 grep -v '^ *+' conftest.er1 >conftest.err
15879 cat conftest.err >&5
15880 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15881 (exit $ac_status); } &&
15882 { ac_try='test -z "$ac_c_werror_flag"
15883 || test ! -s conftest.err'
15884 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15885 (eval $ac_try) 2>&5
15887 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15888 (exit $ac_status); }; } &&
15889 { ac_try='test -s conftest.$ac_objext'
15890 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15891 (eval $ac_try) 2>&5
15893 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15894 (exit $ac_status); }; }; then
15895 eval "$as_ac_Header=yes"
15897 echo "$as_me: failed program was:" >&5
15898 sed 's/^/| /' conftest.$ac_ext >&5
15900 eval "$as_ac_Header=no"
15902 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
15904 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
15905 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
15906 if test `eval echo '${'$as_ac_Header'}'` = yes; then
15907 cat >>confdefs.h <<_ACEOF
15908 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
15916 # Check for HP/UX 64-bit shared library support
15918 for ac_header in elf_hp.h
15920 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
15921 if eval "test \"\${$as_ac_Header+set}\" = set"; then
15922 echo "$as_me:$LINENO: checking for $ac_header" >&5
15923 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
15924 if eval "test \"\${$as_ac_Header+set}\" = set"; then
15925 echo $ECHO_N "(cached) $ECHO_C" >&6
15927 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
15928 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
15930 # Is the header compilable?
15931 echo "$as_me:$LINENO: checking $ac_header usability" >&5
15932 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
15933 cat >conftest.$ac_ext <<_ACEOF
15936 cat confdefs.h >>conftest.$ac_ext
15937 cat >>conftest.$ac_ext <<_ACEOF
15938 /* end confdefs.h. */
15939 $ac_includes_default
15940 #include <$ac_header>
15942 rm -f conftest.$ac_objext
15943 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
15944 (eval $ac_compile) 2>conftest.er1
15946 grep -v '^ *+' conftest.er1 >conftest.err
15948 cat conftest.err >&5
15949 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15950 (exit $ac_status); } &&
15951 { ac_try='test -z "$ac_c_werror_flag"
15952 || test ! -s conftest.err'
15953 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15954 (eval $ac_try) 2>&5
15956 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15957 (exit $ac_status); }; } &&
15958 { ac_try='test -s conftest.$ac_objext'
15959 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15960 (eval $ac_try) 2>&5
15962 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15963 (exit $ac_status); }; }; then
15964 ac_header_compiler=yes
15966 echo "$as_me: failed program was:" >&5
15967 sed 's/^/| /' conftest.$ac_ext >&5
15969 ac_header_compiler=no
15971 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
15972 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
15973 echo "${ECHO_T}$ac_header_compiler" >&6
15975 # Is the header present?
15976 echo "$as_me:$LINENO: checking $ac_header presence" >&5
15977 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
15978 cat >conftest.$ac_ext <<_ACEOF
15981 cat confdefs.h >>conftest.$ac_ext
15982 cat >>conftest.$ac_ext <<_ACEOF
15983 /* end confdefs.h. */
15984 #include <$ac_header>
15986 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
15987 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
15989 grep -v '^ *+' conftest.er1 >conftest.err
15991 cat conftest.err >&5
15992 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15993 (exit $ac_status); } >/dev/null; then
15994 if test -s conftest.err; then
15995 ac_cpp_err=$ac_c_preproc_warn_flag
15996 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
16003 if test -z "$ac_cpp_err"; then
16004 ac_header_preproc=yes
16006 echo "$as_me: failed program was:" >&5
16007 sed 's/^/| /' conftest.$ac_ext >&5
16009 ac_header_preproc=no
16011 rm -f conftest.err conftest.$ac_ext
16012 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
16013 echo "${ECHO_T}$ac_header_preproc" >&6
16015 # So? What about this header?
16016 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
16018 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
16019 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
16020 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
16021 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
16022 ac_header_preproc=yes
16025 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
16026 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
16027 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
16028 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
16029 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
16030 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
16031 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
16032 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
16033 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
16034 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
16035 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
16036 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
16039 ## ------------------------------------------ ##
16040 ## Report this to the AC_PACKAGE_NAME lists. ##
16041 ## ------------------------------------------ ##
16044 sed "s/^/$as_me: WARNING: /" >&2
16047 echo "$as_me:$LINENO: checking for $ac_header" >&5
16048 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
16049 if eval "test \"\${$as_ac_Header+set}\" = set"; then
16050 echo $ECHO_N "(cached) $ECHO_C" >&6
16052 eval "$as_ac_Header=\$ac_header_preproc"
16054 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
16055 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
16058 if test `eval echo '${'$as_ac_Header'}'` = yes; then
16059 cat >>confdefs.h <<_ACEOF
16060 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
16068 # FIXME: kettenis/20030102: In most cases we include these
16069 # unconditionally, so what's the point in checking these?
16072 for ac_header in ctype.h time.h
16074 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
16075 if eval "test \"\${$as_ac_Header+set}\" = set"; then
16076 echo "$as_me:$LINENO: checking for $ac_header" >&5
16077 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
16078 if eval "test \"\${$as_ac_Header+set}\" = set"; then
16079 echo $ECHO_N "(cached) $ECHO_C" >&6
16081 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
16082 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
16084 # Is the header compilable?
16085 echo "$as_me:$LINENO: checking $ac_header usability" >&5
16086 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
16087 cat >conftest.$ac_ext <<_ACEOF
16090 cat confdefs.h >>conftest.$ac_ext
16091 cat >>conftest.$ac_ext <<_ACEOF
16092 /* end confdefs.h. */
16093 $ac_includes_default
16094 #include <$ac_header>
16096 rm -f conftest.$ac_objext
16097 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
16098 (eval $ac_compile) 2>conftest.er1
16100 grep -v '^ *+' conftest.er1 >conftest.err
16102 cat conftest.err >&5
16103 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16104 (exit $ac_status); } &&
16105 { ac_try='test -z "$ac_c_werror_flag"
16106 || test ! -s conftest.err'
16107 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16108 (eval $ac_try) 2>&5
16110 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16111 (exit $ac_status); }; } &&
16112 { ac_try='test -s conftest.$ac_objext'
16113 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16114 (eval $ac_try) 2>&5
16116 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16117 (exit $ac_status); }; }; then
16118 ac_header_compiler=yes
16120 echo "$as_me: failed program was:" >&5
16121 sed 's/^/| /' conftest.$ac_ext >&5
16123 ac_header_compiler=no
16125 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
16126 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
16127 echo "${ECHO_T}$ac_header_compiler" >&6
16129 # Is the header present?
16130 echo "$as_me:$LINENO: checking $ac_header presence" >&5
16131 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
16132 cat >conftest.$ac_ext <<_ACEOF
16135 cat confdefs.h >>conftest.$ac_ext
16136 cat >>conftest.$ac_ext <<_ACEOF
16137 /* end confdefs.h. */
16138 #include <$ac_header>
16140 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
16141 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
16143 grep -v '^ *+' conftest.er1 >conftest.err
16145 cat conftest.err >&5
16146 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16147 (exit $ac_status); } >/dev/null; then
16148 if test -s conftest.err; then
16149 ac_cpp_err=$ac_c_preproc_warn_flag
16150 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
16157 if test -z "$ac_cpp_err"; then
16158 ac_header_preproc=yes
16160 echo "$as_me: failed program was:" >&5
16161 sed 's/^/| /' conftest.$ac_ext >&5
16163 ac_header_preproc=no
16165 rm -f conftest.err conftest.$ac_ext
16166 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
16167 echo "${ECHO_T}$ac_header_preproc" >&6
16169 # So? What about this header?
16170 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
16172 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
16173 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
16174 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
16175 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
16176 ac_header_preproc=yes
16179 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
16180 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
16181 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
16182 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
16183 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
16184 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
16185 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
16186 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
16187 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
16188 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
16189 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
16190 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
16193 ## ------------------------------------------ ##
16194 ## Report this to the AC_PACKAGE_NAME lists. ##
16195 ## ------------------------------------------ ##
16198 sed "s/^/$as_me: WARNING: /" >&2
16201 echo "$as_me:$LINENO: checking for $ac_header" >&5
16202 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
16203 if eval "test \"\${$as_ac_Header+set}\" = set"; then
16204 echo $ECHO_N "(cached) $ECHO_C" >&6
16206 eval "$as_ac_Header=\$ac_header_preproc"
16208 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
16209 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
16212 if test `eval echo '${'$as_ac_Header'}'` = yes; then
16213 cat >>confdefs.h <<_ACEOF
16214 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
16222 # Create a header we can use portably to get the standard integer types.
16225 inttype_headers=`echo inttypes.h sys/inttypes.h | sed -e 's/,/ /g'`
16227 acx_cv_header_stdint=stddef.h
16228 acx_cv_header_stdint_kind="(already complete)"
16229 for i in stdint.h $inttype_headers; do
16230 unset ac_cv_type_uintptr_t
16231 unset ac_cv_type_uintmax_t
16232 unset ac_cv_type_int_least32_t
16233 unset ac_cv_type_int_fast32_t
16234 unset ac_cv_type_uint64_t
16235 echo $ECHO_N "looking for a compliant stdint.h in $i, $ECHO_C" >&6
16236 echo "$as_me:$LINENO: checking for uintmax_t" >&5
16237 echo $ECHO_N "checking for uintmax_t... $ECHO_C" >&6
16238 if test "${ac_cv_type_uintmax_t+set}" = set; then
16239 echo $ECHO_N "(cached) $ECHO_C" >&6
16241 cat >conftest.$ac_ext <<_ACEOF
16244 cat confdefs.h >>conftest.$ac_ext
16245 cat >>conftest.$ac_ext <<_ACEOF
16246 /* end confdefs.h. */
16247 #include <sys/types.h>
16253 if ((uintmax_t *) 0)
16255 if (sizeof (uintmax_t))
16261 rm -f conftest.$ac_objext
16262 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
16263 (eval $ac_compile) 2>conftest.er1
16265 grep -v '^ *+' conftest.er1 >conftest.err
16267 cat conftest.err >&5
16268 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16269 (exit $ac_status); } &&
16270 { ac_try='test -z "$ac_c_werror_flag"
16271 || test ! -s conftest.err'
16272 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16273 (eval $ac_try) 2>&5
16275 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16276 (exit $ac_status); }; } &&
16277 { ac_try='test -s conftest.$ac_objext'
16278 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16279 (eval $ac_try) 2>&5
16281 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16282 (exit $ac_status); }; }; then
16283 ac_cv_type_uintmax_t=yes
16285 echo "$as_me: failed program was:" >&5
16286 sed 's/^/| /' conftest.$ac_ext >&5
16288 ac_cv_type_uintmax_t=no
16290 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
16292 echo "$as_me:$LINENO: result: $ac_cv_type_uintmax_t" >&5
16293 echo "${ECHO_T}$ac_cv_type_uintmax_t" >&6
16294 if test $ac_cv_type_uintmax_t = yes; then
16295 acx_cv_header_stdint=$i
16300 echo "$as_me:$LINENO: checking for uintptr_t" >&5
16301 echo $ECHO_N "checking for uintptr_t... $ECHO_C" >&6
16302 if test "${ac_cv_type_uintptr_t+set}" = set; then
16303 echo $ECHO_N "(cached) $ECHO_C" >&6
16305 cat >conftest.$ac_ext <<_ACEOF
16308 cat confdefs.h >>conftest.$ac_ext
16309 cat >>conftest.$ac_ext <<_ACEOF
16310 /* end confdefs.h. */
16311 #include <sys/types.h>
16317 if ((uintptr_t *) 0)
16319 if (sizeof (uintptr_t))
16325 rm -f conftest.$ac_objext
16326 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
16327 (eval $ac_compile) 2>conftest.er1
16329 grep -v '^ *+' conftest.er1 >conftest.err
16331 cat conftest.err >&5
16332 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16333 (exit $ac_status); } &&
16334 { ac_try='test -z "$ac_c_werror_flag"
16335 || test ! -s conftest.err'
16336 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16337 (eval $ac_try) 2>&5
16339 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16340 (exit $ac_status); }; } &&
16341 { ac_try='test -s conftest.$ac_objext'
16342 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16343 (eval $ac_try) 2>&5
16345 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16346 (exit $ac_status); }; }; then
16347 ac_cv_type_uintptr_t=yes
16349 echo "$as_me: failed program was:" >&5
16350 sed 's/^/| /' conftest.$ac_ext >&5
16352 ac_cv_type_uintptr_t=no
16354 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
16356 echo "$as_me:$LINENO: result: $ac_cv_type_uintptr_t" >&5
16357 echo "${ECHO_T}$ac_cv_type_uintptr_t" >&6
16358 if test $ac_cv_type_uintptr_t = yes; then
16361 acx_cv_header_stdint_kind="(mostly complete)"
16364 echo "$as_me:$LINENO: checking for int_least32_t" >&5
16365 echo $ECHO_N "checking for int_least32_t... $ECHO_C" >&6
16366 if test "${ac_cv_type_int_least32_t+set}" = set; then
16367 echo $ECHO_N "(cached) $ECHO_C" >&6
16369 cat >conftest.$ac_ext <<_ACEOF
16372 cat confdefs.h >>conftest.$ac_ext
16373 cat >>conftest.$ac_ext <<_ACEOF
16374 /* end confdefs.h. */
16375 #include <sys/types.h>
16381 if ((int_least32_t *) 0)
16383 if (sizeof (int_least32_t))
16389 rm -f conftest.$ac_objext
16390 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
16391 (eval $ac_compile) 2>conftest.er1
16393 grep -v '^ *+' conftest.er1 >conftest.err
16395 cat conftest.err >&5
16396 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16397 (exit $ac_status); } &&
16398 { ac_try='test -z "$ac_c_werror_flag"
16399 || test ! -s conftest.err'
16400 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16401 (eval $ac_try) 2>&5
16403 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16404 (exit $ac_status); }; } &&
16405 { ac_try='test -s conftest.$ac_objext'
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); }; }; then
16411 ac_cv_type_int_least32_t=yes
16413 echo "$as_me: failed program was:" >&5
16414 sed 's/^/| /' conftest.$ac_ext >&5
16416 ac_cv_type_int_least32_t=no
16418 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
16420 echo "$as_me:$LINENO: result: $ac_cv_type_int_least32_t" >&5
16421 echo "${ECHO_T}$ac_cv_type_int_least32_t" >&6
16422 if test $ac_cv_type_int_least32_t = yes; then
16425 acx_cv_header_stdint_kind="(mostly complete)"
16428 echo "$as_me:$LINENO: checking for int_fast32_t" >&5
16429 echo $ECHO_N "checking for int_fast32_t... $ECHO_C" >&6
16430 if test "${ac_cv_type_int_fast32_t+set}" = set; then
16431 echo $ECHO_N "(cached) $ECHO_C" >&6
16433 cat >conftest.$ac_ext <<_ACEOF
16436 cat confdefs.h >>conftest.$ac_ext
16437 cat >>conftest.$ac_ext <<_ACEOF
16438 /* end confdefs.h. */
16439 #include <sys/types.h>
16445 if ((int_fast32_t *) 0)
16447 if (sizeof (int_fast32_t))
16453 rm -f conftest.$ac_objext
16454 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
16455 (eval $ac_compile) 2>conftest.er1
16457 grep -v '^ *+' conftest.er1 >conftest.err
16459 cat conftest.err >&5
16460 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16461 (exit $ac_status); } &&
16462 { ac_try='test -z "$ac_c_werror_flag"
16463 || test ! -s conftest.err'
16464 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16465 (eval $ac_try) 2>&5
16467 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16468 (exit $ac_status); }; } &&
16469 { ac_try='test -s conftest.$ac_objext'
16470 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16471 (eval $ac_try) 2>&5
16473 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16474 (exit $ac_status); }; }; then
16475 ac_cv_type_int_fast32_t=yes
16477 echo "$as_me: failed program was:" >&5
16478 sed 's/^/| /' conftest.$ac_ext >&5
16480 ac_cv_type_int_fast32_t=no
16482 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
16484 echo "$as_me:$LINENO: result: $ac_cv_type_int_fast32_t" >&5
16485 echo "${ECHO_T}$ac_cv_type_int_fast32_t" >&6
16486 if test $ac_cv_type_int_fast32_t = yes; then
16489 acx_cv_header_stdint_kind="(mostly complete)"
16492 echo "$as_me:$LINENO: checking for uint64_t" >&5
16493 echo $ECHO_N "checking for uint64_t... $ECHO_C" >&6
16494 if test "${ac_cv_type_uint64_t+set}" = set; then
16495 echo $ECHO_N "(cached) $ECHO_C" >&6
16497 cat >conftest.$ac_ext <<_ACEOF
16500 cat confdefs.h >>conftest.$ac_ext
16501 cat >>conftest.$ac_ext <<_ACEOF
16502 /* end confdefs.h. */
16503 #include <sys/types.h>
16509 if ((uint64_t *) 0)
16511 if (sizeof (uint64_t))
16517 rm -f conftest.$ac_objext
16518 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
16519 (eval $ac_compile) 2>conftest.er1
16521 grep -v '^ *+' conftest.er1 >conftest.err
16523 cat conftest.err >&5
16524 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16525 (exit $ac_status); } &&
16526 { ac_try='test -z "$ac_c_werror_flag"
16527 || test ! -s conftest.err'
16528 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16529 (eval $ac_try) 2>&5
16531 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16532 (exit $ac_status); }; } &&
16533 { ac_try='test -s conftest.$ac_objext'
16534 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16535 (eval $ac_try) 2>&5
16537 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16538 (exit $ac_status); }; }; then
16539 ac_cv_type_uint64_t=yes
16541 echo "$as_me: failed program was:" >&5
16542 sed 's/^/| /' conftest.$ac_ext >&5
16544 ac_cv_type_uint64_t=no
16546 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
16548 echo "$as_me:$LINENO: result: $ac_cv_type_uint64_t" >&5
16549 echo "${ECHO_T}$ac_cv_type_uint64_t" >&6
16550 if test $ac_cv_type_uint64_t = yes; then
16553 acx_cv_header_stdint_kind="(lacks uint64_t)"
16558 if test "$acx_cv_header_stdint" = stddef.h; then
16559 acx_cv_header_stdint_kind="(lacks uintmax_t)"
16560 for i in stdint.h $inttype_headers; do
16561 unset ac_cv_type_uintptr_t
16562 unset ac_cv_type_uint32_t
16563 unset ac_cv_type_uint64_t
16564 echo $ECHO_N "looking for an incomplete stdint.h in $i, $ECHO_C" >&6
16565 echo "$as_me:$LINENO: checking for uint32_t" >&5
16566 echo $ECHO_N "checking for uint32_t... $ECHO_C" >&6
16567 if test "${ac_cv_type_uint32_t+set}" = set; then
16568 echo $ECHO_N "(cached) $ECHO_C" >&6
16570 cat >conftest.$ac_ext <<_ACEOF
16573 cat confdefs.h >>conftest.$ac_ext
16574 cat >>conftest.$ac_ext <<_ACEOF
16575 /* end confdefs.h. */
16576 #include <sys/types.h>
16582 if ((uint32_t *) 0)
16584 if (sizeof (uint32_t))
16590 rm -f conftest.$ac_objext
16591 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
16592 (eval $ac_compile) 2>conftest.er1
16594 grep -v '^ *+' conftest.er1 >conftest.err
16596 cat conftest.err >&5
16597 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16598 (exit $ac_status); } &&
16599 { ac_try='test -z "$ac_c_werror_flag"
16600 || test ! -s conftest.err'
16601 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16602 (eval $ac_try) 2>&5
16604 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16605 (exit $ac_status); }; } &&
16606 { ac_try='test -s conftest.$ac_objext'
16607 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16608 (eval $ac_try) 2>&5
16610 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16611 (exit $ac_status); }; }; then
16612 ac_cv_type_uint32_t=yes
16614 echo "$as_me: failed program was:" >&5
16615 sed 's/^/| /' conftest.$ac_ext >&5
16617 ac_cv_type_uint32_t=no
16619 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
16621 echo "$as_me:$LINENO: result: $ac_cv_type_uint32_t" >&5
16622 echo "${ECHO_T}$ac_cv_type_uint32_t" >&6
16623 if test $ac_cv_type_uint32_t = yes; then
16624 acx_cv_header_stdint=$i
16629 echo "$as_me:$LINENO: checking for uint64_t" >&5
16630 echo $ECHO_N "checking for uint64_t... $ECHO_C" >&6
16631 if test "${ac_cv_type_uint64_t+set}" = set; then
16632 echo $ECHO_N "(cached) $ECHO_C" >&6
16634 cat >conftest.$ac_ext <<_ACEOF
16637 cat confdefs.h >>conftest.$ac_ext
16638 cat >>conftest.$ac_ext <<_ACEOF
16639 /* end confdefs.h. */
16640 #include <sys/types.h>
16646 if ((uint64_t *) 0)
16648 if (sizeof (uint64_t))
16654 rm -f conftest.$ac_objext
16655 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
16656 (eval $ac_compile) 2>conftest.er1
16658 grep -v '^ *+' conftest.er1 >conftest.err
16660 cat conftest.err >&5
16661 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16662 (exit $ac_status); } &&
16663 { ac_try='test -z "$ac_c_werror_flag"
16664 || test ! -s conftest.err'
16665 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16666 (eval $ac_try) 2>&5
16668 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16669 (exit $ac_status); }; } &&
16670 { ac_try='test -s conftest.$ac_objext'
16671 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16672 (eval $ac_try) 2>&5
16674 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16675 (exit $ac_status); }; }; then
16676 ac_cv_type_uint64_t=yes
16678 echo "$as_me: failed program was:" >&5
16679 sed 's/^/| /' conftest.$ac_ext >&5
16681 ac_cv_type_uint64_t=no
16683 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
16685 echo "$as_me:$LINENO: result: $ac_cv_type_uint64_t" >&5
16686 echo "${ECHO_T}$ac_cv_type_uint64_t" >&6
16688 echo "$as_me:$LINENO: checking for uintptr_t" >&5
16689 echo $ECHO_N "checking for uintptr_t... $ECHO_C" >&6
16690 if test "${ac_cv_type_uintptr_t+set}" = set; then
16691 echo $ECHO_N "(cached) $ECHO_C" >&6
16693 cat >conftest.$ac_ext <<_ACEOF
16696 cat confdefs.h >>conftest.$ac_ext
16697 cat >>conftest.$ac_ext <<_ACEOF
16698 /* end confdefs.h. */
16699 #include <sys/types.h>
16705 if ((uintptr_t *) 0)
16707 if (sizeof (uintptr_t))
16713 rm -f conftest.$ac_objext
16714 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
16715 (eval $ac_compile) 2>conftest.er1
16717 grep -v '^ *+' conftest.er1 >conftest.err
16719 cat conftest.err >&5
16720 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16721 (exit $ac_status); } &&
16722 { ac_try='test -z "$ac_c_werror_flag"
16723 || test ! -s conftest.err'
16724 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16725 (eval $ac_try) 2>&5
16727 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16728 (exit $ac_status); }; } &&
16729 { ac_try='test -s conftest.$ac_objext'
16730 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16731 (eval $ac_try) 2>&5
16733 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16734 (exit $ac_status); }; }; then
16735 ac_cv_type_uintptr_t=yes
16737 echo "$as_me: failed program was:" >&5
16738 sed 's/^/| /' conftest.$ac_ext >&5
16740 ac_cv_type_uintptr_t=no
16742 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
16744 echo "$as_me:$LINENO: result: $ac_cv_type_uintptr_t" >&5
16745 echo "${ECHO_T}$ac_cv_type_uintptr_t" >&6
16750 if test "$acx_cv_header_stdint" = stddef.h; then
16751 acx_cv_header_stdint_kind="(u_intXX_t style)"
16752 for i in sys/types.h $inttype_headers; do
16753 unset ac_cv_type_u_int32_t
16754 unset ac_cv_type_u_int64_t
16755 echo $ECHO_N "looking for u_intXX_t types in $i, $ECHO_C" >&6
16756 echo "$as_me:$LINENO: checking for u_int32_t" >&5
16757 echo $ECHO_N "checking for u_int32_t... $ECHO_C" >&6
16758 if test "${ac_cv_type_u_int32_t+set}" = set; then
16759 echo $ECHO_N "(cached) $ECHO_C" >&6
16761 cat >conftest.$ac_ext <<_ACEOF
16764 cat confdefs.h >>conftest.$ac_ext
16765 cat >>conftest.$ac_ext <<_ACEOF
16766 /* end confdefs.h. */
16767 #include <sys/types.h>
16773 if ((u_int32_t *) 0)
16775 if (sizeof (u_int32_t))
16781 rm -f conftest.$ac_objext
16782 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
16783 (eval $ac_compile) 2>conftest.er1
16785 grep -v '^ *+' conftest.er1 >conftest.err
16787 cat conftest.err >&5
16788 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16789 (exit $ac_status); } &&
16790 { ac_try='test -z "$ac_c_werror_flag"
16791 || test ! -s conftest.err'
16792 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16793 (eval $ac_try) 2>&5
16795 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16796 (exit $ac_status); }; } &&
16797 { ac_try='test -s conftest.$ac_objext'
16798 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16799 (eval $ac_try) 2>&5
16801 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16802 (exit $ac_status); }; }; then
16803 ac_cv_type_u_int32_t=yes
16805 echo "$as_me: failed program was:" >&5
16806 sed 's/^/| /' conftest.$ac_ext >&5
16808 ac_cv_type_u_int32_t=no
16810 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
16812 echo "$as_me:$LINENO: result: $ac_cv_type_u_int32_t" >&5
16813 echo "${ECHO_T}$ac_cv_type_u_int32_t" >&6
16814 if test $ac_cv_type_u_int32_t = yes; then
16815 acx_cv_header_stdint=$i
16820 echo "$as_me:$LINENO: checking for u_int64_t" >&5
16821 echo $ECHO_N "checking for u_int64_t... $ECHO_C" >&6
16822 if test "${ac_cv_type_u_int64_t+set}" = set; then
16823 echo $ECHO_N "(cached) $ECHO_C" >&6
16825 cat >conftest.$ac_ext <<_ACEOF
16828 cat confdefs.h >>conftest.$ac_ext
16829 cat >>conftest.$ac_ext <<_ACEOF
16830 /* end confdefs.h. */
16831 #include <sys/types.h>
16837 if ((u_int64_t *) 0)
16839 if (sizeof (u_int64_t))
16845 rm -f conftest.$ac_objext
16846 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
16847 (eval $ac_compile) 2>conftest.er1
16849 grep -v '^ *+' conftest.er1 >conftest.err
16851 cat conftest.err >&5
16852 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16853 (exit $ac_status); } &&
16854 { ac_try='test -z "$ac_c_werror_flag"
16855 || test ! -s conftest.err'
16856 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16857 (eval $ac_try) 2>&5
16859 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16860 (exit $ac_status); }; } &&
16861 { ac_try='test -s conftest.$ac_objext'
16862 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16863 (eval $ac_try) 2>&5
16865 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16866 (exit $ac_status); }; }; then
16867 ac_cv_type_u_int64_t=yes
16869 echo "$as_me: failed program was:" >&5
16870 sed 's/^/| /' conftest.$ac_ext >&5
16872 ac_cv_type_u_int64_t=no
16874 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
16876 echo "$as_me:$LINENO: result: $ac_cv_type_u_int64_t" >&5
16877 echo "${ECHO_T}$ac_cv_type_u_int64_t" >&6
16882 if test "$acx_cv_header_stdint" = stddef.h; then
16883 acx_cv_header_stdint_kind="(using manual detection)"
16886 test -z "$ac_cv_type_uintptr_t" && ac_cv_type_uintptr_t=no
16887 test -z "$ac_cv_type_uint64_t" && ac_cv_type_uint64_t=no
16888 test -z "$ac_cv_type_u_int64_t" && ac_cv_type_u_int64_t=no
16889 test -z "$ac_cv_type_int_least32_t" && ac_cv_type_int_least32_t=no
16890 test -z "$ac_cv_type_int_fast32_t" && ac_cv_type_int_fast32_t=no
16892 # ----------------- Summarize what we found so far
16894 echo "$as_me:$LINENO: checking what to include in gdb_stdint.h" >&5
16895 echo $ECHO_N "checking what to include in gdb_stdint.h... $ECHO_C" >&6
16897 case `$as_basename gdb_stdint.h ||
16898 $as_expr X/gdb_stdint.h : '.*/\([^/][^/]*\)/*$' \| \
16899 Xgdb_stdint.h : 'X\(//\)$' \| \
16900 Xgdb_stdint.h : 'X\(/\)$' \| \
16901 . : '\(.\)' 2>/dev/null ||
16902 echo X/gdb_stdint.h |
16903 sed '/^.*\/\([^/][^/]*\)\/*$/{ s//\1/; q; }
16904 /^X\/\(\/\/\)$/{ s//\1/; q; }
16905 /^X\/\(\/\).*/{ s//\1/; q; }
16907 stdint.h) { echo "$as_me:$LINENO: WARNING: are you sure you want it there?" >&5
16908 echo "$as_me: WARNING: are you sure you want it there?" >&2;} ;;
16909 inttypes.h) { echo "$as_me:$LINENO: WARNING: are you sure you want it there?" >&5
16910 echo "$as_me: WARNING: are you sure you want it there?" >&2;} ;;
16914 echo "$as_me:$LINENO: result: $acx_cv_header_stdint $acx_cv_header_stdint_kind" >&5
16915 echo "${ECHO_T}$acx_cv_header_stdint $acx_cv_header_stdint_kind" >&6
16917 # ----------------- done included file, check C basic types --------
16919 # Lacking an uintptr_t? Test size of void *
16920 case "$acx_cv_header_stdint:$ac_cv_type_uintptr_t" in
16921 stddef.h:* | *:no) echo "$as_me:$LINENO: checking for void *" >&5
16922 echo $ECHO_N "checking for void *... $ECHO_C" >&6
16923 if test "${ac_cv_type_void_p+set}" = set; then
16924 echo $ECHO_N "(cached) $ECHO_C" >&6
16926 cat >conftest.$ac_ext <<_ACEOF
16929 cat confdefs.h >>conftest.$ac_ext
16930 cat >>conftest.$ac_ext <<_ACEOF
16931 /* end confdefs.h. */
16932 $ac_includes_default
16938 if (sizeof (void *))
16944 rm -f conftest.$ac_objext
16945 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
16946 (eval $ac_compile) 2>conftest.er1
16948 grep -v '^ *+' conftest.er1 >conftest.err
16950 cat conftest.err >&5
16951 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16952 (exit $ac_status); } &&
16953 { ac_try='test -z "$ac_c_werror_flag"
16954 || test ! -s conftest.err'
16955 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16956 (eval $ac_try) 2>&5
16958 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16959 (exit $ac_status); }; } &&
16960 { ac_try='test -s conftest.$ac_objext'
16961 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16962 (eval $ac_try) 2>&5
16964 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16965 (exit $ac_status); }; }; then
16966 ac_cv_type_void_p=yes
16968 echo "$as_me: failed program was:" >&5
16969 sed 's/^/| /' conftest.$ac_ext >&5
16971 ac_cv_type_void_p=no
16973 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
16975 echo "$as_me:$LINENO: result: $ac_cv_type_void_p" >&5
16976 echo "${ECHO_T}$ac_cv_type_void_p" >&6
16978 echo "$as_me:$LINENO: checking size of void *" >&5
16979 echo $ECHO_N "checking size of void *... $ECHO_C" >&6
16980 if test "${ac_cv_sizeof_void_p+set}" = set; then
16981 echo $ECHO_N "(cached) $ECHO_C" >&6
16983 if test "$ac_cv_type_void_p" = yes; then
16984 # The cast to unsigned long works around a bug in the HP C Compiler
16985 # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
16986 # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
16987 # This bug is HP SR number 8606223364.
16988 if test "$cross_compiling" = yes; then
16989 # Depending upon the size, compute the lo and hi bounds.
16990 cat >conftest.$ac_ext <<_ACEOF
16993 cat confdefs.h >>conftest.$ac_ext
16994 cat >>conftest.$ac_ext <<_ACEOF
16995 /* end confdefs.h. */
16996 $ac_includes_default
17000 static int test_array [1 - 2 * !(((long) (sizeof (void *))) >= 0)];
17007 rm -f conftest.$ac_objext
17008 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
17009 (eval $ac_compile) 2>conftest.er1
17011 grep -v '^ *+' conftest.er1 >conftest.err
17013 cat conftest.err >&5
17014 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17015 (exit $ac_status); } &&
17016 { ac_try='test -z "$ac_c_werror_flag"
17017 || test ! -s conftest.err'
17018 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17019 (eval $ac_try) 2>&5
17021 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17022 (exit $ac_status); }; } &&
17023 { ac_try='test -s conftest.$ac_objext'
17024 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17025 (eval $ac_try) 2>&5
17027 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17028 (exit $ac_status); }; }; then
17031 cat >conftest.$ac_ext <<_ACEOF
17034 cat confdefs.h >>conftest.$ac_ext
17035 cat >>conftest.$ac_ext <<_ACEOF
17036 /* end confdefs.h. */
17037 $ac_includes_default
17041 static int test_array [1 - 2 * !(((long) (sizeof (void *))) <= $ac_mid)];
17048 rm -f conftest.$ac_objext
17049 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
17050 (eval $ac_compile) 2>conftest.er1
17052 grep -v '^ *+' conftest.er1 >conftest.err
17054 cat conftest.err >&5
17055 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17056 (exit $ac_status); } &&
17057 { ac_try='test -z "$ac_c_werror_flag"
17058 || test ! -s conftest.err'
17059 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17060 (eval $ac_try) 2>&5
17062 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17063 (exit $ac_status); }; } &&
17064 { ac_try='test -s conftest.$ac_objext'
17065 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17066 (eval $ac_try) 2>&5
17068 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17069 (exit $ac_status); }; }; then
17070 ac_hi=$ac_mid; break
17072 echo "$as_me: failed program was:" >&5
17073 sed 's/^/| /' conftest.$ac_ext >&5
17075 ac_lo=`expr $ac_mid + 1`
17076 if test $ac_lo -le $ac_mid; then
17080 ac_mid=`expr 2 '*' $ac_mid + 1`
17082 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
17085 echo "$as_me: failed program was:" >&5
17086 sed 's/^/| /' conftest.$ac_ext >&5
17088 cat >conftest.$ac_ext <<_ACEOF
17091 cat confdefs.h >>conftest.$ac_ext
17092 cat >>conftest.$ac_ext <<_ACEOF
17093 /* end confdefs.h. */
17094 $ac_includes_default
17098 static int test_array [1 - 2 * !(((long) (sizeof (void *))) < 0)];
17105 rm -f conftest.$ac_objext
17106 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
17107 (eval $ac_compile) 2>conftest.er1
17109 grep -v '^ *+' conftest.er1 >conftest.err
17111 cat conftest.err >&5
17112 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17113 (exit $ac_status); } &&
17114 { ac_try='test -z "$ac_c_werror_flag"
17115 || test ! -s conftest.err'
17116 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17117 (eval $ac_try) 2>&5
17119 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17120 (exit $ac_status); }; } &&
17121 { ac_try='test -s conftest.$ac_objext'
17122 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17123 (eval $ac_try) 2>&5
17125 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17126 (exit $ac_status); }; }; then
17129 cat >conftest.$ac_ext <<_ACEOF
17132 cat confdefs.h >>conftest.$ac_ext
17133 cat >>conftest.$ac_ext <<_ACEOF
17134 /* end confdefs.h. */
17135 $ac_includes_default
17139 static int test_array [1 - 2 * !(((long) (sizeof (void *))) >= $ac_mid)];
17146 rm -f conftest.$ac_objext
17147 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
17148 (eval $ac_compile) 2>conftest.er1
17150 grep -v '^ *+' conftest.er1 >conftest.err
17152 cat conftest.err >&5
17153 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17154 (exit $ac_status); } &&
17155 { ac_try='test -z "$ac_c_werror_flag"
17156 || test ! -s conftest.err'
17157 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17158 (eval $ac_try) 2>&5
17160 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17161 (exit $ac_status); }; } &&
17162 { ac_try='test -s conftest.$ac_objext'
17163 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17164 (eval $ac_try) 2>&5
17166 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17167 (exit $ac_status); }; }; then
17168 ac_lo=$ac_mid; break
17170 echo "$as_me: failed program was:" >&5
17171 sed 's/^/| /' conftest.$ac_ext >&5
17173 ac_hi=`expr '(' $ac_mid ')' - 1`
17174 if test $ac_mid -le $ac_hi; then
17178 ac_mid=`expr 2 '*' $ac_mid`
17180 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
17183 echo "$as_me: failed program was:" >&5
17184 sed 's/^/| /' conftest.$ac_ext >&5
17188 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
17190 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
17191 # Binary search between lo and hi bounds.
17192 while test "x$ac_lo" != "x$ac_hi"; do
17193 ac_mid=`expr '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo`
17194 cat >conftest.$ac_ext <<_ACEOF
17197 cat confdefs.h >>conftest.$ac_ext
17198 cat >>conftest.$ac_ext <<_ACEOF
17199 /* end confdefs.h. */
17200 $ac_includes_default
17204 static int test_array [1 - 2 * !(((long) (sizeof (void *))) <= $ac_mid)];
17211 rm -f conftest.$ac_objext
17212 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
17213 (eval $ac_compile) 2>conftest.er1
17215 grep -v '^ *+' conftest.er1 >conftest.err
17217 cat conftest.err >&5
17218 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17219 (exit $ac_status); } &&
17220 { ac_try='test -z "$ac_c_werror_flag"
17221 || test ! -s conftest.err'
17222 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17223 (eval $ac_try) 2>&5
17225 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17226 (exit $ac_status); }; } &&
17227 { ac_try='test -s conftest.$ac_objext'
17228 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17229 (eval $ac_try) 2>&5
17231 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17232 (exit $ac_status); }; }; then
17235 echo "$as_me: failed program was:" >&5
17236 sed 's/^/| /' conftest.$ac_ext >&5
17238 ac_lo=`expr '(' $ac_mid ')' + 1`
17240 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
17243 ?*) ac_cv_sizeof_void_p=$ac_lo;;
17244 '') { { echo "$as_me:$LINENO: error: cannot compute sizeof (void *), 77
17245 See \`config.log' for more details." >&5
17246 echo "$as_me: error: cannot compute sizeof (void *), 77
17247 See \`config.log' for more details." >&2;}
17248 { (exit 1); exit 1; }; } ;;
17251 if test "$cross_compiling" = yes; then
17252 { { echo "$as_me:$LINENO: error: cannot run test program while cross compiling
17253 See \`config.log' for more details." >&5
17254 echo "$as_me: error: cannot run test program while cross compiling
17255 See \`config.log' for more details." >&2;}
17256 { (exit 1); exit 1; }; }
17258 cat >conftest.$ac_ext <<_ACEOF
17261 cat confdefs.h >>conftest.$ac_ext
17262 cat >>conftest.$ac_ext <<_ACEOF
17263 /* end confdefs.h. */
17264 $ac_includes_default
17265 long longval () { return (long) (sizeof (void *)); }
17266 unsigned long ulongval () { return (long) (sizeof (void *)); }
17268 #include <stdlib.h>
17273 FILE *f = fopen ("conftest.val", "w");
17276 if (((long) (sizeof (void *))) < 0)
17278 long i = longval ();
17279 if (i != ((long) (sizeof (void *))))
17281 fprintf (f, "%ld\n", i);
17285 unsigned long i = ulongval ();
17286 if (i != ((long) (sizeof (void *))))
17288 fprintf (f, "%lu\n", i);
17290 exit (ferror (f) || fclose (f) != 0);
17296 rm -f conftest$ac_exeext
17297 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
17298 (eval $ac_link) 2>&5
17300 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17301 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
17302 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17303 (eval $ac_try) 2>&5
17305 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17306 (exit $ac_status); }; }; then
17307 ac_cv_sizeof_void_p=`cat conftest.val`
17309 echo "$as_me: program exited with status $ac_status" >&5
17310 echo "$as_me: failed program was:" >&5
17311 sed 's/^/| /' conftest.$ac_ext >&5
17313 ( exit $ac_status )
17314 { { echo "$as_me:$LINENO: error: cannot compute sizeof (void *), 77
17315 See \`config.log' for more details." >&5
17316 echo "$as_me: error: cannot compute sizeof (void *), 77
17317 See \`config.log' for more details." >&2;}
17318 { (exit 1); exit 1; }; }
17320 rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
17325 ac_cv_sizeof_void_p=0
17328 echo "$as_me:$LINENO: result: $ac_cv_sizeof_void_p" >&5
17329 echo "${ECHO_T}$ac_cv_sizeof_void_p" >&6
17330 cat >>confdefs.h <<_ACEOF
17331 #define SIZEOF_VOID_P $ac_cv_sizeof_void_p
17337 # Lacking an uint64_t? Test size of long
17338 case "$acx_cv_header_stdint:$ac_cv_type_uint64_t:$ac_cv_type_u_int64_t" in
17339 stddef.h:*:* | *:no:no) echo "$as_me:$LINENO: checking for long" >&5
17340 echo $ECHO_N "checking for long... $ECHO_C" >&6
17341 if test "${ac_cv_type_long+set}" = set; then
17342 echo $ECHO_N "(cached) $ECHO_C" >&6
17344 cat >conftest.$ac_ext <<_ACEOF
17347 cat confdefs.h >>conftest.$ac_ext
17348 cat >>conftest.$ac_ext <<_ACEOF
17349 /* end confdefs.h. */
17350 $ac_includes_default
17362 rm -f conftest.$ac_objext
17363 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
17364 (eval $ac_compile) 2>conftest.er1
17366 grep -v '^ *+' conftest.er1 >conftest.err
17368 cat conftest.err >&5
17369 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17370 (exit $ac_status); } &&
17371 { ac_try='test -z "$ac_c_werror_flag"
17372 || test ! -s conftest.err'
17373 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17374 (eval $ac_try) 2>&5
17376 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17377 (exit $ac_status); }; } &&
17378 { ac_try='test -s conftest.$ac_objext'
17379 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17380 (eval $ac_try) 2>&5
17382 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17383 (exit $ac_status); }; }; then
17384 ac_cv_type_long=yes
17386 echo "$as_me: failed program was:" >&5
17387 sed 's/^/| /' conftest.$ac_ext >&5
17391 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
17393 echo "$as_me:$LINENO: result: $ac_cv_type_long" >&5
17394 echo "${ECHO_T}$ac_cv_type_long" >&6
17396 echo "$as_me:$LINENO: checking size of long" >&5
17397 echo $ECHO_N "checking size of long... $ECHO_C" >&6
17398 if test "${ac_cv_sizeof_long+set}" = set; then
17399 echo $ECHO_N "(cached) $ECHO_C" >&6
17401 if test "$ac_cv_type_long" = yes; then
17402 # The cast to unsigned long works around a bug in the HP C Compiler
17403 # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
17404 # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
17405 # This bug is HP SR number 8606223364.
17406 if test "$cross_compiling" = yes; then
17407 # Depending upon the size, compute the lo and hi bounds.
17408 cat >conftest.$ac_ext <<_ACEOF
17411 cat confdefs.h >>conftest.$ac_ext
17412 cat >>conftest.$ac_ext <<_ACEOF
17413 /* end confdefs.h. */
17414 $ac_includes_default
17418 static int test_array [1 - 2 * !(((long) (sizeof (long))) >= 0)];
17425 rm -f conftest.$ac_objext
17426 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
17427 (eval $ac_compile) 2>conftest.er1
17429 grep -v '^ *+' conftest.er1 >conftest.err
17431 cat conftest.err >&5
17432 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17433 (exit $ac_status); } &&
17434 { ac_try='test -z "$ac_c_werror_flag"
17435 || test ! -s conftest.err'
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); }; } &&
17441 { ac_try='test -s conftest.$ac_objext'
17442 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17443 (eval $ac_try) 2>&5
17445 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17446 (exit $ac_status); }; }; then
17449 cat >conftest.$ac_ext <<_ACEOF
17452 cat confdefs.h >>conftest.$ac_ext
17453 cat >>conftest.$ac_ext <<_ACEOF
17454 /* end confdefs.h. */
17455 $ac_includes_default
17459 static int test_array [1 - 2 * !(((long) (sizeof (long))) <= $ac_mid)];
17466 rm -f conftest.$ac_objext
17467 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
17468 (eval $ac_compile) 2>conftest.er1
17470 grep -v '^ *+' conftest.er1 >conftest.err
17472 cat conftest.err >&5
17473 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17474 (exit $ac_status); } &&
17475 { ac_try='test -z "$ac_c_werror_flag"
17476 || test ! -s conftest.err'
17477 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17478 (eval $ac_try) 2>&5
17480 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17481 (exit $ac_status); }; } &&
17482 { ac_try='test -s conftest.$ac_objext'
17483 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17484 (eval $ac_try) 2>&5
17486 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17487 (exit $ac_status); }; }; then
17488 ac_hi=$ac_mid; break
17490 echo "$as_me: failed program was:" >&5
17491 sed 's/^/| /' conftest.$ac_ext >&5
17493 ac_lo=`expr $ac_mid + 1`
17494 if test $ac_lo -le $ac_mid; then
17498 ac_mid=`expr 2 '*' $ac_mid + 1`
17500 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
17503 echo "$as_me: failed program was:" >&5
17504 sed 's/^/| /' conftest.$ac_ext >&5
17506 cat >conftest.$ac_ext <<_ACEOF
17509 cat confdefs.h >>conftest.$ac_ext
17510 cat >>conftest.$ac_ext <<_ACEOF
17511 /* end confdefs.h. */
17512 $ac_includes_default
17516 static int test_array [1 - 2 * !(((long) (sizeof (long))) < 0)];
17523 rm -f conftest.$ac_objext
17524 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
17525 (eval $ac_compile) 2>conftest.er1
17527 grep -v '^ *+' conftest.er1 >conftest.err
17529 cat conftest.err >&5
17530 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17531 (exit $ac_status); } &&
17532 { ac_try='test -z "$ac_c_werror_flag"
17533 || test ! -s conftest.err'
17534 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17535 (eval $ac_try) 2>&5
17537 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17538 (exit $ac_status); }; } &&
17539 { ac_try='test -s conftest.$ac_objext'
17540 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17541 (eval $ac_try) 2>&5
17543 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17544 (exit $ac_status); }; }; then
17547 cat >conftest.$ac_ext <<_ACEOF
17550 cat confdefs.h >>conftest.$ac_ext
17551 cat >>conftest.$ac_ext <<_ACEOF
17552 /* end confdefs.h. */
17553 $ac_includes_default
17557 static int test_array [1 - 2 * !(((long) (sizeof (long))) >= $ac_mid)];
17564 rm -f conftest.$ac_objext
17565 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
17566 (eval $ac_compile) 2>conftest.er1
17568 grep -v '^ *+' conftest.er1 >conftest.err
17570 cat conftest.err >&5
17571 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17572 (exit $ac_status); } &&
17573 { ac_try='test -z "$ac_c_werror_flag"
17574 || test ! -s conftest.err'
17575 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17576 (eval $ac_try) 2>&5
17578 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17579 (exit $ac_status); }; } &&
17580 { ac_try='test -s conftest.$ac_objext'
17581 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17582 (eval $ac_try) 2>&5
17584 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17585 (exit $ac_status); }; }; then
17586 ac_lo=$ac_mid; break
17588 echo "$as_me: failed program was:" >&5
17589 sed 's/^/| /' conftest.$ac_ext >&5
17591 ac_hi=`expr '(' $ac_mid ')' - 1`
17592 if test $ac_mid -le $ac_hi; then
17596 ac_mid=`expr 2 '*' $ac_mid`
17598 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
17601 echo "$as_me: failed program was:" >&5
17602 sed 's/^/| /' conftest.$ac_ext >&5
17606 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
17608 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
17609 # Binary search between lo and hi bounds.
17610 while test "x$ac_lo" != "x$ac_hi"; do
17611 ac_mid=`expr '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo`
17612 cat >conftest.$ac_ext <<_ACEOF
17615 cat confdefs.h >>conftest.$ac_ext
17616 cat >>conftest.$ac_ext <<_ACEOF
17617 /* end confdefs.h. */
17618 $ac_includes_default
17622 static int test_array [1 - 2 * !(((long) (sizeof (long))) <= $ac_mid)];
17629 rm -f conftest.$ac_objext
17630 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
17631 (eval $ac_compile) 2>conftest.er1
17633 grep -v '^ *+' conftest.er1 >conftest.err
17635 cat conftest.err >&5
17636 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17637 (exit $ac_status); } &&
17638 { ac_try='test -z "$ac_c_werror_flag"
17639 || test ! -s conftest.err'
17640 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17641 (eval $ac_try) 2>&5
17643 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17644 (exit $ac_status); }; } &&
17645 { ac_try='test -s conftest.$ac_objext'
17646 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17647 (eval $ac_try) 2>&5
17649 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17650 (exit $ac_status); }; }; then
17653 echo "$as_me: failed program was:" >&5
17654 sed 's/^/| /' conftest.$ac_ext >&5
17656 ac_lo=`expr '(' $ac_mid ')' + 1`
17658 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
17661 ?*) ac_cv_sizeof_long=$ac_lo;;
17662 '') { { echo "$as_me:$LINENO: error: cannot compute sizeof (long), 77
17663 See \`config.log' for more details." >&5
17664 echo "$as_me: error: cannot compute sizeof (long), 77
17665 See \`config.log' for more details." >&2;}
17666 { (exit 1); exit 1; }; } ;;
17669 if test "$cross_compiling" = yes; then
17670 { { echo "$as_me:$LINENO: error: cannot run test program while cross compiling
17671 See \`config.log' for more details." >&5
17672 echo "$as_me: error: cannot run test program while cross compiling
17673 See \`config.log' for more details." >&2;}
17674 { (exit 1); exit 1; }; }
17676 cat >conftest.$ac_ext <<_ACEOF
17679 cat confdefs.h >>conftest.$ac_ext
17680 cat >>conftest.$ac_ext <<_ACEOF
17681 /* end confdefs.h. */
17682 $ac_includes_default
17683 long longval () { return (long) (sizeof (long)); }
17684 unsigned long ulongval () { return (long) (sizeof (long)); }
17686 #include <stdlib.h>
17691 FILE *f = fopen ("conftest.val", "w");
17694 if (((long) (sizeof (long))) < 0)
17696 long i = longval ();
17697 if (i != ((long) (sizeof (long))))
17699 fprintf (f, "%ld\n", i);
17703 unsigned long i = ulongval ();
17704 if (i != ((long) (sizeof (long))))
17706 fprintf (f, "%lu\n", i);
17708 exit (ferror (f) || fclose (f) != 0);
17714 rm -f conftest$ac_exeext
17715 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
17716 (eval $ac_link) 2>&5
17718 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17719 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
17720 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17721 (eval $ac_try) 2>&5
17723 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17724 (exit $ac_status); }; }; then
17725 ac_cv_sizeof_long=`cat conftest.val`
17727 echo "$as_me: program exited with status $ac_status" >&5
17728 echo "$as_me: failed program was:" >&5
17729 sed 's/^/| /' conftest.$ac_ext >&5
17731 ( exit $ac_status )
17732 { { echo "$as_me:$LINENO: error: cannot compute sizeof (long), 77
17733 See \`config.log' for more details." >&5
17734 echo "$as_me: error: cannot compute sizeof (long), 77
17735 See \`config.log' for more details." >&2;}
17736 { (exit 1); exit 1; }; }
17738 rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
17743 ac_cv_sizeof_long=0
17746 echo "$as_me:$LINENO: result: $ac_cv_sizeof_long" >&5
17747 echo "${ECHO_T}$ac_cv_sizeof_long" >&6
17748 cat >>confdefs.h <<_ACEOF
17749 #define SIZEOF_LONG $ac_cv_sizeof_long
17755 if test $acx_cv_header_stdint = stddef.h; then
17756 # Lacking a good header? Test size of everything and deduce all types.
17757 echo "$as_me:$LINENO: checking for int" >&5
17758 echo $ECHO_N "checking for int... $ECHO_C" >&6
17759 if test "${ac_cv_type_int+set}" = set; then
17760 echo $ECHO_N "(cached) $ECHO_C" >&6
17762 cat >conftest.$ac_ext <<_ACEOF
17765 cat confdefs.h >>conftest.$ac_ext
17766 cat >>conftest.$ac_ext <<_ACEOF
17767 /* end confdefs.h. */
17768 $ac_includes_default
17780 rm -f conftest.$ac_objext
17781 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
17782 (eval $ac_compile) 2>conftest.er1
17784 grep -v '^ *+' conftest.er1 >conftest.err
17786 cat conftest.err >&5
17787 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17788 (exit $ac_status); } &&
17789 { ac_try='test -z "$ac_c_werror_flag"
17790 || test ! -s conftest.err'
17791 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17792 (eval $ac_try) 2>&5
17794 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17795 (exit $ac_status); }; } &&
17796 { ac_try='test -s conftest.$ac_objext'
17797 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17798 (eval $ac_try) 2>&5
17800 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17801 (exit $ac_status); }; }; then
17804 echo "$as_me: failed program was:" >&5
17805 sed 's/^/| /' conftest.$ac_ext >&5
17809 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
17811 echo "$as_me:$LINENO: result: $ac_cv_type_int" >&5
17812 echo "${ECHO_T}$ac_cv_type_int" >&6
17814 echo "$as_me:$LINENO: checking size of int" >&5
17815 echo $ECHO_N "checking size of int... $ECHO_C" >&6
17816 if test "${ac_cv_sizeof_int+set}" = set; then
17817 echo $ECHO_N "(cached) $ECHO_C" >&6
17819 if test "$ac_cv_type_int" = yes; then
17820 # The cast to unsigned long works around a bug in the HP C Compiler
17821 # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
17822 # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
17823 # This bug is HP SR number 8606223364.
17824 if test "$cross_compiling" = yes; then
17825 # Depending upon the size, compute the lo and hi bounds.
17826 cat >conftest.$ac_ext <<_ACEOF
17829 cat confdefs.h >>conftest.$ac_ext
17830 cat >>conftest.$ac_ext <<_ACEOF
17831 /* end confdefs.h. */
17832 $ac_includes_default
17836 static int test_array [1 - 2 * !(((long) (sizeof (int))) >= 0)];
17843 rm -f conftest.$ac_objext
17844 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
17845 (eval $ac_compile) 2>conftest.er1
17847 grep -v '^ *+' conftest.er1 >conftest.err
17849 cat conftest.err >&5
17850 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17851 (exit $ac_status); } &&
17852 { ac_try='test -z "$ac_c_werror_flag"
17853 || test ! -s conftest.err'
17854 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17855 (eval $ac_try) 2>&5
17857 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17858 (exit $ac_status); }; } &&
17859 { ac_try='test -s conftest.$ac_objext'
17860 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17861 (eval $ac_try) 2>&5
17863 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17864 (exit $ac_status); }; }; then
17867 cat >conftest.$ac_ext <<_ACEOF
17870 cat confdefs.h >>conftest.$ac_ext
17871 cat >>conftest.$ac_ext <<_ACEOF
17872 /* end confdefs.h. */
17873 $ac_includes_default
17877 static int test_array [1 - 2 * !(((long) (sizeof (int))) <= $ac_mid)];
17884 rm -f conftest.$ac_objext
17885 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
17886 (eval $ac_compile) 2>conftest.er1
17888 grep -v '^ *+' conftest.er1 >conftest.err
17890 cat conftest.err >&5
17891 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17892 (exit $ac_status); } &&
17893 { ac_try='test -z "$ac_c_werror_flag"
17894 || test ! -s conftest.err'
17895 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17896 (eval $ac_try) 2>&5
17898 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17899 (exit $ac_status); }; } &&
17900 { ac_try='test -s conftest.$ac_objext'
17901 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17902 (eval $ac_try) 2>&5
17904 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17905 (exit $ac_status); }; }; then
17906 ac_hi=$ac_mid; break
17908 echo "$as_me: failed program was:" >&5
17909 sed 's/^/| /' conftest.$ac_ext >&5
17911 ac_lo=`expr $ac_mid + 1`
17912 if test $ac_lo -le $ac_mid; then
17916 ac_mid=`expr 2 '*' $ac_mid + 1`
17918 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
17921 echo "$as_me: failed program was:" >&5
17922 sed 's/^/| /' conftest.$ac_ext >&5
17924 cat >conftest.$ac_ext <<_ACEOF
17927 cat confdefs.h >>conftest.$ac_ext
17928 cat >>conftest.$ac_ext <<_ACEOF
17929 /* end confdefs.h. */
17930 $ac_includes_default
17934 static int test_array [1 - 2 * !(((long) (sizeof (int))) < 0)];
17941 rm -f conftest.$ac_objext
17942 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
17943 (eval $ac_compile) 2>conftest.er1
17945 grep -v '^ *+' conftest.er1 >conftest.err
17947 cat conftest.err >&5
17948 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17949 (exit $ac_status); } &&
17950 { ac_try='test -z "$ac_c_werror_flag"
17951 || test ! -s conftest.err'
17952 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17953 (eval $ac_try) 2>&5
17955 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17956 (exit $ac_status); }; } &&
17957 { ac_try='test -s conftest.$ac_objext'
17958 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17959 (eval $ac_try) 2>&5
17961 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17962 (exit $ac_status); }; }; then
17965 cat >conftest.$ac_ext <<_ACEOF
17968 cat confdefs.h >>conftest.$ac_ext
17969 cat >>conftest.$ac_ext <<_ACEOF
17970 /* end confdefs.h. */
17971 $ac_includes_default
17975 static int test_array [1 - 2 * !(((long) (sizeof (int))) >= $ac_mid)];
17982 rm -f conftest.$ac_objext
17983 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
17984 (eval $ac_compile) 2>conftest.er1
17986 grep -v '^ *+' conftest.er1 >conftest.err
17988 cat conftest.err >&5
17989 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17990 (exit $ac_status); } &&
17991 { ac_try='test -z "$ac_c_werror_flag"
17992 || test ! -s conftest.err'
17993 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17994 (eval $ac_try) 2>&5
17996 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17997 (exit $ac_status); }; } &&
17998 { ac_try='test -s conftest.$ac_objext'
17999 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18000 (eval $ac_try) 2>&5
18002 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18003 (exit $ac_status); }; }; then
18004 ac_lo=$ac_mid; break
18006 echo "$as_me: failed program was:" >&5
18007 sed 's/^/| /' conftest.$ac_ext >&5
18009 ac_hi=`expr '(' $ac_mid ')' - 1`
18010 if test $ac_mid -le $ac_hi; then
18014 ac_mid=`expr 2 '*' $ac_mid`
18016 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
18019 echo "$as_me: failed program was:" >&5
18020 sed 's/^/| /' conftest.$ac_ext >&5
18024 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
18026 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
18027 # Binary search between lo and hi bounds.
18028 while test "x$ac_lo" != "x$ac_hi"; do
18029 ac_mid=`expr '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo`
18030 cat >conftest.$ac_ext <<_ACEOF
18033 cat confdefs.h >>conftest.$ac_ext
18034 cat >>conftest.$ac_ext <<_ACEOF
18035 /* end confdefs.h. */
18036 $ac_includes_default
18040 static int test_array [1 - 2 * !(((long) (sizeof (int))) <= $ac_mid)];
18047 rm -f conftest.$ac_objext
18048 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
18049 (eval $ac_compile) 2>conftest.er1
18051 grep -v '^ *+' conftest.er1 >conftest.err
18053 cat conftest.err >&5
18054 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18055 (exit $ac_status); } &&
18056 { ac_try='test -z "$ac_c_werror_flag"
18057 || test ! -s conftest.err'
18058 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18059 (eval $ac_try) 2>&5
18061 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18062 (exit $ac_status); }; } &&
18063 { ac_try='test -s conftest.$ac_objext'
18064 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18065 (eval $ac_try) 2>&5
18067 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18068 (exit $ac_status); }; }; then
18071 echo "$as_me: failed program was:" >&5
18072 sed 's/^/| /' conftest.$ac_ext >&5
18074 ac_lo=`expr '(' $ac_mid ')' + 1`
18076 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
18079 ?*) ac_cv_sizeof_int=$ac_lo;;
18080 '') { { echo "$as_me:$LINENO: error: cannot compute sizeof (int), 77
18081 See \`config.log' for more details." >&5
18082 echo "$as_me: error: cannot compute sizeof (int), 77
18083 See \`config.log' for more details." >&2;}
18084 { (exit 1); exit 1; }; } ;;
18087 if test "$cross_compiling" = yes; then
18088 { { echo "$as_me:$LINENO: error: cannot run test program while cross compiling
18089 See \`config.log' for more details." >&5
18090 echo "$as_me: error: cannot run test program while cross compiling
18091 See \`config.log' for more details." >&2;}
18092 { (exit 1); exit 1; }; }
18094 cat >conftest.$ac_ext <<_ACEOF
18097 cat confdefs.h >>conftest.$ac_ext
18098 cat >>conftest.$ac_ext <<_ACEOF
18099 /* end confdefs.h. */
18100 $ac_includes_default
18101 long longval () { return (long) (sizeof (int)); }
18102 unsigned long ulongval () { return (long) (sizeof (int)); }
18104 #include <stdlib.h>
18109 FILE *f = fopen ("conftest.val", "w");
18112 if (((long) (sizeof (int))) < 0)
18114 long i = longval ();
18115 if (i != ((long) (sizeof (int))))
18117 fprintf (f, "%ld\n", i);
18121 unsigned long i = ulongval ();
18122 if (i != ((long) (sizeof (int))))
18124 fprintf (f, "%lu\n", i);
18126 exit (ferror (f) || fclose (f) != 0);
18132 rm -f conftest$ac_exeext
18133 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
18134 (eval $ac_link) 2>&5
18136 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18137 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
18138 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18139 (eval $ac_try) 2>&5
18141 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18142 (exit $ac_status); }; }; then
18143 ac_cv_sizeof_int=`cat conftest.val`
18145 echo "$as_me: program exited with status $ac_status" >&5
18146 echo "$as_me: failed program was:" >&5
18147 sed 's/^/| /' conftest.$ac_ext >&5
18149 ( exit $ac_status )
18150 { { echo "$as_me:$LINENO: error: cannot compute sizeof (int), 77
18151 See \`config.log' for more details." >&5
18152 echo "$as_me: error: cannot compute sizeof (int), 77
18153 See \`config.log' for more details." >&2;}
18154 { (exit 1); exit 1; }; }
18156 rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
18164 echo "$as_me:$LINENO: result: $ac_cv_sizeof_int" >&5
18165 echo "${ECHO_T}$ac_cv_sizeof_int" >&6
18166 cat >>confdefs.h <<_ACEOF
18167 #define SIZEOF_INT $ac_cv_sizeof_int
18171 echo "$as_me:$LINENO: checking for short" >&5
18172 echo $ECHO_N "checking for short... $ECHO_C" >&6
18173 if test "${ac_cv_type_short+set}" = set; then
18174 echo $ECHO_N "(cached) $ECHO_C" >&6
18176 cat >conftest.$ac_ext <<_ACEOF
18179 cat confdefs.h >>conftest.$ac_ext
18180 cat >>conftest.$ac_ext <<_ACEOF
18181 /* end confdefs.h. */
18182 $ac_includes_default
18188 if (sizeof (short))
18194 rm -f conftest.$ac_objext
18195 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
18196 (eval $ac_compile) 2>conftest.er1
18198 grep -v '^ *+' conftest.er1 >conftest.err
18200 cat conftest.err >&5
18201 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18202 (exit $ac_status); } &&
18203 { ac_try='test -z "$ac_c_werror_flag"
18204 || test ! -s conftest.err'
18205 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18206 (eval $ac_try) 2>&5
18208 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18209 (exit $ac_status); }; } &&
18210 { ac_try='test -s conftest.$ac_objext'
18211 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18212 (eval $ac_try) 2>&5
18214 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18215 (exit $ac_status); }; }; then
18216 ac_cv_type_short=yes
18218 echo "$as_me: failed program was:" >&5
18219 sed 's/^/| /' conftest.$ac_ext >&5
18221 ac_cv_type_short=no
18223 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
18225 echo "$as_me:$LINENO: result: $ac_cv_type_short" >&5
18226 echo "${ECHO_T}$ac_cv_type_short" >&6
18228 echo "$as_me:$LINENO: checking size of short" >&5
18229 echo $ECHO_N "checking size of short... $ECHO_C" >&6
18230 if test "${ac_cv_sizeof_short+set}" = set; then
18231 echo $ECHO_N "(cached) $ECHO_C" >&6
18233 if test "$ac_cv_type_short" = yes; then
18234 # The cast to unsigned long works around a bug in the HP C Compiler
18235 # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
18236 # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
18237 # This bug is HP SR number 8606223364.
18238 if test "$cross_compiling" = yes; then
18239 # Depending upon the size, compute the lo and hi bounds.
18240 cat >conftest.$ac_ext <<_ACEOF
18243 cat confdefs.h >>conftest.$ac_ext
18244 cat >>conftest.$ac_ext <<_ACEOF
18245 /* end confdefs.h. */
18246 $ac_includes_default
18250 static int test_array [1 - 2 * !(((long) (sizeof (short))) >= 0)];
18257 rm -f conftest.$ac_objext
18258 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
18259 (eval $ac_compile) 2>conftest.er1
18261 grep -v '^ *+' conftest.er1 >conftest.err
18263 cat conftest.err >&5
18264 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18265 (exit $ac_status); } &&
18266 { ac_try='test -z "$ac_c_werror_flag"
18267 || test ! -s conftest.err'
18268 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18269 (eval $ac_try) 2>&5
18271 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18272 (exit $ac_status); }; } &&
18273 { ac_try='test -s conftest.$ac_objext'
18274 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18275 (eval $ac_try) 2>&5
18277 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18278 (exit $ac_status); }; }; then
18281 cat >conftest.$ac_ext <<_ACEOF
18284 cat confdefs.h >>conftest.$ac_ext
18285 cat >>conftest.$ac_ext <<_ACEOF
18286 /* end confdefs.h. */
18287 $ac_includes_default
18291 static int test_array [1 - 2 * !(((long) (sizeof (short))) <= $ac_mid)];
18298 rm -f conftest.$ac_objext
18299 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
18300 (eval $ac_compile) 2>conftest.er1
18302 grep -v '^ *+' conftest.er1 >conftest.err
18304 cat conftest.err >&5
18305 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18306 (exit $ac_status); } &&
18307 { ac_try='test -z "$ac_c_werror_flag"
18308 || test ! -s conftest.err'
18309 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18310 (eval $ac_try) 2>&5
18312 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18313 (exit $ac_status); }; } &&
18314 { ac_try='test -s conftest.$ac_objext'
18315 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18316 (eval $ac_try) 2>&5
18318 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18319 (exit $ac_status); }; }; then
18320 ac_hi=$ac_mid; break
18322 echo "$as_me: failed program was:" >&5
18323 sed 's/^/| /' conftest.$ac_ext >&5
18325 ac_lo=`expr $ac_mid + 1`
18326 if test $ac_lo -le $ac_mid; then
18330 ac_mid=`expr 2 '*' $ac_mid + 1`
18332 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
18335 echo "$as_me: failed program was:" >&5
18336 sed 's/^/| /' conftest.$ac_ext >&5
18338 cat >conftest.$ac_ext <<_ACEOF
18341 cat confdefs.h >>conftest.$ac_ext
18342 cat >>conftest.$ac_ext <<_ACEOF
18343 /* end confdefs.h. */
18344 $ac_includes_default
18348 static int test_array [1 - 2 * !(((long) (sizeof (short))) < 0)];
18355 rm -f conftest.$ac_objext
18356 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
18357 (eval $ac_compile) 2>conftest.er1
18359 grep -v '^ *+' conftest.er1 >conftest.err
18361 cat conftest.err >&5
18362 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18363 (exit $ac_status); } &&
18364 { ac_try='test -z "$ac_c_werror_flag"
18365 || test ! -s conftest.err'
18366 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18367 (eval $ac_try) 2>&5
18369 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18370 (exit $ac_status); }; } &&
18371 { ac_try='test -s conftest.$ac_objext'
18372 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18373 (eval $ac_try) 2>&5
18375 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18376 (exit $ac_status); }; }; then
18379 cat >conftest.$ac_ext <<_ACEOF
18382 cat confdefs.h >>conftest.$ac_ext
18383 cat >>conftest.$ac_ext <<_ACEOF
18384 /* end confdefs.h. */
18385 $ac_includes_default
18389 static int test_array [1 - 2 * !(((long) (sizeof (short))) >= $ac_mid)];
18396 rm -f conftest.$ac_objext
18397 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
18398 (eval $ac_compile) 2>conftest.er1
18400 grep -v '^ *+' conftest.er1 >conftest.err
18402 cat conftest.err >&5
18403 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18404 (exit $ac_status); } &&
18405 { ac_try='test -z "$ac_c_werror_flag"
18406 || test ! -s conftest.err'
18407 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18408 (eval $ac_try) 2>&5
18410 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18411 (exit $ac_status); }; } &&
18412 { ac_try='test -s conftest.$ac_objext'
18413 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18414 (eval $ac_try) 2>&5
18416 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18417 (exit $ac_status); }; }; then
18418 ac_lo=$ac_mid; break
18420 echo "$as_me: failed program was:" >&5
18421 sed 's/^/| /' conftest.$ac_ext >&5
18423 ac_hi=`expr '(' $ac_mid ')' - 1`
18424 if test $ac_mid -le $ac_hi; then
18428 ac_mid=`expr 2 '*' $ac_mid`
18430 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
18433 echo "$as_me: failed program was:" >&5
18434 sed 's/^/| /' conftest.$ac_ext >&5
18438 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
18440 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
18441 # Binary search between lo and hi bounds.
18442 while test "x$ac_lo" != "x$ac_hi"; do
18443 ac_mid=`expr '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo`
18444 cat >conftest.$ac_ext <<_ACEOF
18447 cat confdefs.h >>conftest.$ac_ext
18448 cat >>conftest.$ac_ext <<_ACEOF
18449 /* end confdefs.h. */
18450 $ac_includes_default
18454 static int test_array [1 - 2 * !(((long) (sizeof (short))) <= $ac_mid)];
18461 rm -f conftest.$ac_objext
18462 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
18463 (eval $ac_compile) 2>conftest.er1
18465 grep -v '^ *+' conftest.er1 >conftest.err
18467 cat conftest.err >&5
18468 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18469 (exit $ac_status); } &&
18470 { ac_try='test -z "$ac_c_werror_flag"
18471 || test ! -s conftest.err'
18472 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18473 (eval $ac_try) 2>&5
18475 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18476 (exit $ac_status); }; } &&
18477 { ac_try='test -s conftest.$ac_objext'
18478 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18479 (eval $ac_try) 2>&5
18481 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18482 (exit $ac_status); }; }; then
18485 echo "$as_me: failed program was:" >&5
18486 sed 's/^/| /' conftest.$ac_ext >&5
18488 ac_lo=`expr '(' $ac_mid ')' + 1`
18490 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
18493 ?*) ac_cv_sizeof_short=$ac_lo;;
18494 '') { { echo "$as_me:$LINENO: error: cannot compute sizeof (short), 77
18495 See \`config.log' for more details." >&5
18496 echo "$as_me: error: cannot compute sizeof (short), 77
18497 See \`config.log' for more details." >&2;}
18498 { (exit 1); exit 1; }; } ;;
18501 if test "$cross_compiling" = yes; then
18502 { { echo "$as_me:$LINENO: error: cannot run test program while cross compiling
18503 See \`config.log' for more details." >&5
18504 echo "$as_me: error: cannot run test program while cross compiling
18505 See \`config.log' for more details." >&2;}
18506 { (exit 1); exit 1; }; }
18508 cat >conftest.$ac_ext <<_ACEOF
18511 cat confdefs.h >>conftest.$ac_ext
18512 cat >>conftest.$ac_ext <<_ACEOF
18513 /* end confdefs.h. */
18514 $ac_includes_default
18515 long longval () { return (long) (sizeof (short)); }
18516 unsigned long ulongval () { return (long) (sizeof (short)); }
18518 #include <stdlib.h>
18523 FILE *f = fopen ("conftest.val", "w");
18526 if (((long) (sizeof (short))) < 0)
18528 long i = longval ();
18529 if (i != ((long) (sizeof (short))))
18531 fprintf (f, "%ld\n", i);
18535 unsigned long i = ulongval ();
18536 if (i != ((long) (sizeof (short))))
18538 fprintf (f, "%lu\n", i);
18540 exit (ferror (f) || fclose (f) != 0);
18546 rm -f conftest$ac_exeext
18547 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
18548 (eval $ac_link) 2>&5
18550 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18551 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
18552 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18553 (eval $ac_try) 2>&5
18555 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18556 (exit $ac_status); }; }; then
18557 ac_cv_sizeof_short=`cat conftest.val`
18559 echo "$as_me: program exited with status $ac_status" >&5
18560 echo "$as_me: failed program was:" >&5
18561 sed 's/^/| /' conftest.$ac_ext >&5
18563 ( exit $ac_status )
18564 { { echo "$as_me:$LINENO: error: cannot compute sizeof (short), 77
18565 See \`config.log' for more details." >&5
18566 echo "$as_me: error: cannot compute sizeof (short), 77
18567 See \`config.log' for more details." >&2;}
18568 { (exit 1); exit 1; }; }
18570 rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
18575 ac_cv_sizeof_short=0
18578 echo "$as_me:$LINENO: result: $ac_cv_sizeof_short" >&5
18579 echo "${ECHO_T}$ac_cv_sizeof_short" >&6
18580 cat >>confdefs.h <<_ACEOF
18581 #define SIZEOF_SHORT $ac_cv_sizeof_short
18585 echo "$as_me:$LINENO: checking for char" >&5
18586 echo $ECHO_N "checking for char... $ECHO_C" >&6
18587 if test "${ac_cv_type_char+set}" = set; then
18588 echo $ECHO_N "(cached) $ECHO_C" >&6
18590 cat >conftest.$ac_ext <<_ACEOF
18593 cat confdefs.h >>conftest.$ac_ext
18594 cat >>conftest.$ac_ext <<_ACEOF
18595 /* end confdefs.h. */
18596 $ac_includes_default
18608 rm -f conftest.$ac_objext
18609 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
18610 (eval $ac_compile) 2>conftest.er1
18612 grep -v '^ *+' conftest.er1 >conftest.err
18614 cat conftest.err >&5
18615 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18616 (exit $ac_status); } &&
18617 { ac_try='test -z "$ac_c_werror_flag"
18618 || test ! -s conftest.err'
18619 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18620 (eval $ac_try) 2>&5
18622 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18623 (exit $ac_status); }; } &&
18624 { ac_try='test -s conftest.$ac_objext'
18625 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18626 (eval $ac_try) 2>&5
18628 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18629 (exit $ac_status); }; }; then
18630 ac_cv_type_char=yes
18632 echo "$as_me: failed program was:" >&5
18633 sed 's/^/| /' conftest.$ac_ext >&5
18637 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
18639 echo "$as_me:$LINENO: result: $ac_cv_type_char" >&5
18640 echo "${ECHO_T}$ac_cv_type_char" >&6
18642 echo "$as_me:$LINENO: checking size of char" >&5
18643 echo $ECHO_N "checking size of char... $ECHO_C" >&6
18644 if test "${ac_cv_sizeof_char+set}" = set; then
18645 echo $ECHO_N "(cached) $ECHO_C" >&6
18647 if test "$ac_cv_type_char" = yes; then
18648 # The cast to unsigned long works around a bug in the HP C Compiler
18649 # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
18650 # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
18651 # This bug is HP SR number 8606223364.
18652 if test "$cross_compiling" = yes; then
18653 # Depending upon the size, compute the lo and hi bounds.
18654 cat >conftest.$ac_ext <<_ACEOF
18657 cat confdefs.h >>conftest.$ac_ext
18658 cat >>conftest.$ac_ext <<_ACEOF
18659 /* end confdefs.h. */
18660 $ac_includes_default
18664 static int test_array [1 - 2 * !(((long) (sizeof (char))) >= 0)];
18671 rm -f conftest.$ac_objext
18672 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
18673 (eval $ac_compile) 2>conftest.er1
18675 grep -v '^ *+' conftest.er1 >conftest.err
18677 cat conftest.err >&5
18678 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18679 (exit $ac_status); } &&
18680 { ac_try='test -z "$ac_c_werror_flag"
18681 || test ! -s conftest.err'
18682 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18683 (eval $ac_try) 2>&5
18685 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18686 (exit $ac_status); }; } &&
18687 { ac_try='test -s conftest.$ac_objext'
18688 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18689 (eval $ac_try) 2>&5
18691 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18692 (exit $ac_status); }; }; then
18695 cat >conftest.$ac_ext <<_ACEOF
18698 cat confdefs.h >>conftest.$ac_ext
18699 cat >>conftest.$ac_ext <<_ACEOF
18700 /* end confdefs.h. */
18701 $ac_includes_default
18705 static int test_array [1 - 2 * !(((long) (sizeof (char))) <= $ac_mid)];
18712 rm -f conftest.$ac_objext
18713 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
18714 (eval $ac_compile) 2>conftest.er1
18716 grep -v '^ *+' conftest.er1 >conftest.err
18718 cat conftest.err >&5
18719 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18720 (exit $ac_status); } &&
18721 { ac_try='test -z "$ac_c_werror_flag"
18722 || test ! -s conftest.err'
18723 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18724 (eval $ac_try) 2>&5
18726 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18727 (exit $ac_status); }; } &&
18728 { ac_try='test -s conftest.$ac_objext'
18729 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18730 (eval $ac_try) 2>&5
18732 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18733 (exit $ac_status); }; }; then
18734 ac_hi=$ac_mid; break
18736 echo "$as_me: failed program was:" >&5
18737 sed 's/^/| /' conftest.$ac_ext >&5
18739 ac_lo=`expr $ac_mid + 1`
18740 if test $ac_lo -le $ac_mid; then
18744 ac_mid=`expr 2 '*' $ac_mid + 1`
18746 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
18749 echo "$as_me: failed program was:" >&5
18750 sed 's/^/| /' conftest.$ac_ext >&5
18752 cat >conftest.$ac_ext <<_ACEOF
18755 cat confdefs.h >>conftest.$ac_ext
18756 cat >>conftest.$ac_ext <<_ACEOF
18757 /* end confdefs.h. */
18758 $ac_includes_default
18762 static int test_array [1 - 2 * !(((long) (sizeof (char))) < 0)];
18769 rm -f conftest.$ac_objext
18770 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
18771 (eval $ac_compile) 2>conftest.er1
18773 grep -v '^ *+' conftest.er1 >conftest.err
18775 cat conftest.err >&5
18776 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18777 (exit $ac_status); } &&
18778 { ac_try='test -z "$ac_c_werror_flag"
18779 || test ! -s conftest.err'
18780 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18781 (eval $ac_try) 2>&5
18783 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18784 (exit $ac_status); }; } &&
18785 { ac_try='test -s conftest.$ac_objext'
18786 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18787 (eval $ac_try) 2>&5
18789 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18790 (exit $ac_status); }; }; then
18793 cat >conftest.$ac_ext <<_ACEOF
18796 cat confdefs.h >>conftest.$ac_ext
18797 cat >>conftest.$ac_ext <<_ACEOF
18798 /* end confdefs.h. */
18799 $ac_includes_default
18803 static int test_array [1 - 2 * !(((long) (sizeof (char))) >= $ac_mid)];
18810 rm -f conftest.$ac_objext
18811 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
18812 (eval $ac_compile) 2>conftest.er1
18814 grep -v '^ *+' conftest.er1 >conftest.err
18816 cat conftest.err >&5
18817 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18818 (exit $ac_status); } &&
18819 { ac_try='test -z "$ac_c_werror_flag"
18820 || test ! -s conftest.err'
18821 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18822 (eval $ac_try) 2>&5
18824 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18825 (exit $ac_status); }; } &&
18826 { ac_try='test -s conftest.$ac_objext'
18827 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18828 (eval $ac_try) 2>&5
18830 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18831 (exit $ac_status); }; }; then
18832 ac_lo=$ac_mid; break
18834 echo "$as_me: failed program was:" >&5
18835 sed 's/^/| /' conftest.$ac_ext >&5
18837 ac_hi=`expr '(' $ac_mid ')' - 1`
18838 if test $ac_mid -le $ac_hi; then
18842 ac_mid=`expr 2 '*' $ac_mid`
18844 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
18847 echo "$as_me: failed program was:" >&5
18848 sed 's/^/| /' conftest.$ac_ext >&5
18852 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
18854 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
18855 # Binary search between lo and hi bounds.
18856 while test "x$ac_lo" != "x$ac_hi"; do
18857 ac_mid=`expr '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo`
18858 cat >conftest.$ac_ext <<_ACEOF
18861 cat confdefs.h >>conftest.$ac_ext
18862 cat >>conftest.$ac_ext <<_ACEOF
18863 /* end confdefs.h. */
18864 $ac_includes_default
18868 static int test_array [1 - 2 * !(((long) (sizeof (char))) <= $ac_mid)];
18875 rm -f conftest.$ac_objext
18876 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
18877 (eval $ac_compile) 2>conftest.er1
18879 grep -v '^ *+' conftest.er1 >conftest.err
18881 cat conftest.err >&5
18882 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18883 (exit $ac_status); } &&
18884 { ac_try='test -z "$ac_c_werror_flag"
18885 || test ! -s conftest.err'
18886 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18887 (eval $ac_try) 2>&5
18889 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18890 (exit $ac_status); }; } &&
18891 { ac_try='test -s conftest.$ac_objext'
18892 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18893 (eval $ac_try) 2>&5
18895 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18896 (exit $ac_status); }; }; then
18899 echo "$as_me: failed program was:" >&5
18900 sed 's/^/| /' conftest.$ac_ext >&5
18902 ac_lo=`expr '(' $ac_mid ')' + 1`
18904 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
18907 ?*) ac_cv_sizeof_char=$ac_lo;;
18908 '') { { echo "$as_me:$LINENO: error: cannot compute sizeof (char), 77
18909 See \`config.log' for more details." >&5
18910 echo "$as_me: error: cannot compute sizeof (char), 77
18911 See \`config.log' for more details." >&2;}
18912 { (exit 1); exit 1; }; } ;;
18915 if test "$cross_compiling" = yes; then
18916 { { echo "$as_me:$LINENO: error: cannot run test program while cross compiling
18917 See \`config.log' for more details." >&5
18918 echo "$as_me: error: cannot run test program while cross compiling
18919 See \`config.log' for more details." >&2;}
18920 { (exit 1); exit 1; }; }
18922 cat >conftest.$ac_ext <<_ACEOF
18925 cat confdefs.h >>conftest.$ac_ext
18926 cat >>conftest.$ac_ext <<_ACEOF
18927 /* end confdefs.h. */
18928 $ac_includes_default
18929 long longval () { return (long) (sizeof (char)); }
18930 unsigned long ulongval () { return (long) (sizeof (char)); }
18932 #include <stdlib.h>
18937 FILE *f = fopen ("conftest.val", "w");
18940 if (((long) (sizeof (char))) < 0)
18942 long i = longval ();
18943 if (i != ((long) (sizeof (char))))
18945 fprintf (f, "%ld\n", i);
18949 unsigned long i = ulongval ();
18950 if (i != ((long) (sizeof (char))))
18952 fprintf (f, "%lu\n", i);
18954 exit (ferror (f) || fclose (f) != 0);
18960 rm -f conftest$ac_exeext
18961 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
18962 (eval $ac_link) 2>&5
18964 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18965 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
18966 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18967 (eval $ac_try) 2>&5
18969 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18970 (exit $ac_status); }; }; then
18971 ac_cv_sizeof_char=`cat conftest.val`
18973 echo "$as_me: program exited with status $ac_status" >&5
18974 echo "$as_me: failed program was:" >&5
18975 sed 's/^/| /' conftest.$ac_ext >&5
18977 ( exit $ac_status )
18978 { { echo "$as_me:$LINENO: error: cannot compute sizeof (char), 77
18979 See \`config.log' for more details." >&5
18980 echo "$as_me: error: cannot compute sizeof (char), 77
18981 See \`config.log' for more details." >&2;}
18982 { (exit 1); exit 1; }; }
18984 rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
18989 ac_cv_sizeof_char=0
18992 echo "$as_me:$LINENO: result: $ac_cv_sizeof_char" >&5
18993 echo "${ECHO_T}$ac_cv_sizeof_char" >&6
18994 cat >>confdefs.h <<_ACEOF
18995 #define SIZEOF_CHAR $ac_cv_sizeof_char
19000 echo "$as_me:$LINENO: checking for type equivalent to int8_t" >&5
19001 echo $ECHO_N "checking for type equivalent to int8_t... $ECHO_C" >&6
19002 case "$ac_cv_sizeof_char" in
19003 1) acx_cv_type_int8_t=char ;;
19004 *) { { echo "$as_me:$LINENO: error: no 8-bit type" >&5
19005 echo "$as_me: error: no 8-bit type" >&2;}
19006 { (exit please report a bug); exit please report a bug; }; }
19008 echo "$as_me:$LINENO: result: $acx_cv_type_int8_t" >&5
19009 echo "${ECHO_T}$acx_cv_type_int8_t" >&6
19011 echo "$as_me:$LINENO: checking for type equivalent to int16_t" >&5
19012 echo $ECHO_N "checking for type equivalent to int16_t... $ECHO_C" >&6
19013 case "$ac_cv_sizeof_int:$ac_cv_sizeof_short" in
19014 2:*) acx_cv_type_int16_t=int ;;
19015 *:2) acx_cv_type_int16_t=short ;;
19016 *) { { echo "$as_me:$LINENO: error: no 16-bit type" >&5
19017 echo "$as_me: error: no 16-bit type" >&2;}
19018 { (exit please report a bug); exit please report a bug; }; }
19020 echo "$as_me:$LINENO: result: $acx_cv_type_int16_t" >&5
19021 echo "${ECHO_T}$acx_cv_type_int16_t" >&6
19023 echo "$as_me:$LINENO: checking for type equivalent to int32_t" >&5
19024 echo $ECHO_N "checking for type equivalent to int32_t... $ECHO_C" >&6
19025 case "$ac_cv_sizeof_int:$ac_cv_sizeof_long" in
19026 4:*) acx_cv_type_int32_t=int ;;
19027 *:4) acx_cv_type_int32_t=long ;;
19028 *) { { echo "$as_me:$LINENO: error: no 32-bit type" >&5
19029 echo "$as_me: error: no 32-bit type" >&2;}
19030 { (exit please report a bug); exit please report a bug; }; }
19032 echo "$as_me:$LINENO: result: $acx_cv_type_int32_t" >&5
19033 echo "${ECHO_T}$acx_cv_type_int32_t" >&6
19036 # These tests are here to make the output prettier
19038 if test "$ac_cv_type_uint64_t" != yes && test "$ac_cv_type_u_int64_t" != yes; then
19039 case "$ac_cv_sizeof_long" in
19040 8) acx_cv_type_int64_t=long ;;
19042 echo "$as_me:$LINENO: checking for type equivalent to int64_t" >&5
19043 echo $ECHO_N "checking for type equivalent to int64_t... $ECHO_C" >&6
19044 echo "$as_me:$LINENO: result: ${acx_cv_type_int64_t-'using preprocessor symbols'}" >&5
19045 echo "${ECHO_T}${acx_cv_type_int64_t-'using preprocessor symbols'}" >&6
19048 # Now we can use the above types
19050 if test "$ac_cv_type_uintptr_t" != yes; then
19051 echo "$as_me:$LINENO: checking for type equivalent to intptr_t" >&5
19052 echo $ECHO_N "checking for type equivalent to intptr_t... $ECHO_C" >&6
19053 case $ac_cv_sizeof_void_p in
19054 2) acx_cv_type_intptr_t=int16_t ;;
19055 4) acx_cv_type_intptr_t=int32_t ;;
19056 8) acx_cv_type_intptr_t=int64_t ;;
19057 *) { { echo "$as_me:$LINENO: error: no equivalent for intptr_t" >&5
19058 echo "$as_me: error: no equivalent for intptr_t" >&2;}
19059 { (exit please report a bug); exit please report a bug; }; }
19061 echo "$as_me:$LINENO: result: $acx_cv_type_intptr_t" >&5
19062 echo "${ECHO_T}$acx_cv_type_intptr_t" >&6
19065 # ----------------- done all checks, emit header -------------
19066 ac_config_commands="$ac_config_commands gdb_stdint.h"
19071 # ------------------------- #
19072 # Checks for declarations. #
19073 # ------------------------- #
19075 echo "$as_me:$LINENO: checking whether free is declared" >&5
19076 echo $ECHO_N "checking whether free is declared... $ECHO_C" >&6
19077 if test "${ac_cv_have_decl_free+set}" = set; then
19078 echo $ECHO_N "(cached) $ECHO_C" >&6
19080 cat >conftest.$ac_ext <<_ACEOF
19083 cat confdefs.h >>conftest.$ac_ext
19084 cat >>conftest.$ac_ext <<_ACEOF
19085 /* end confdefs.h. */
19086 $ac_includes_default
19091 char *p = (char *) free;
19098 rm -f conftest.$ac_objext
19099 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
19100 (eval $ac_compile) 2>conftest.er1
19102 grep -v '^ *+' conftest.er1 >conftest.err
19104 cat conftest.err >&5
19105 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19106 (exit $ac_status); } &&
19107 { ac_try='test -z "$ac_c_werror_flag"
19108 || test ! -s conftest.err'
19109 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19110 (eval $ac_try) 2>&5
19112 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19113 (exit $ac_status); }; } &&
19114 { ac_try='test -s conftest.$ac_objext'
19115 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19116 (eval $ac_try) 2>&5
19118 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19119 (exit $ac_status); }; }; then
19120 ac_cv_have_decl_free=yes
19122 echo "$as_me: failed program was:" >&5
19123 sed 's/^/| /' conftest.$ac_ext >&5
19125 ac_cv_have_decl_free=no
19127 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
19129 echo "$as_me:$LINENO: result: $ac_cv_have_decl_free" >&5
19130 echo "${ECHO_T}$ac_cv_have_decl_free" >&6
19131 if test $ac_cv_have_decl_free = yes; then
19133 cat >>confdefs.h <<_ACEOF
19134 #define HAVE_DECL_FREE 1
19139 cat >>confdefs.h <<_ACEOF
19140 #define HAVE_DECL_FREE 0
19145 echo "$as_me:$LINENO: checking whether malloc is declared" >&5
19146 echo $ECHO_N "checking whether malloc is declared... $ECHO_C" >&6
19147 if test "${ac_cv_have_decl_malloc+set}" = set; then
19148 echo $ECHO_N "(cached) $ECHO_C" >&6
19150 cat >conftest.$ac_ext <<_ACEOF
19153 cat confdefs.h >>conftest.$ac_ext
19154 cat >>conftest.$ac_ext <<_ACEOF
19155 /* end confdefs.h. */
19156 $ac_includes_default
19161 char *p = (char *) malloc;
19168 rm -f conftest.$ac_objext
19169 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
19170 (eval $ac_compile) 2>conftest.er1
19172 grep -v '^ *+' conftest.er1 >conftest.err
19174 cat conftest.err >&5
19175 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19176 (exit $ac_status); } &&
19177 { ac_try='test -z "$ac_c_werror_flag"
19178 || test ! -s conftest.err'
19179 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19180 (eval $ac_try) 2>&5
19182 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19183 (exit $ac_status); }; } &&
19184 { ac_try='test -s conftest.$ac_objext'
19185 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19186 (eval $ac_try) 2>&5
19188 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19189 (exit $ac_status); }; }; then
19190 ac_cv_have_decl_malloc=yes
19192 echo "$as_me: failed program was:" >&5
19193 sed 's/^/| /' conftest.$ac_ext >&5
19195 ac_cv_have_decl_malloc=no
19197 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
19199 echo "$as_me:$LINENO: result: $ac_cv_have_decl_malloc" >&5
19200 echo "${ECHO_T}$ac_cv_have_decl_malloc" >&6
19201 if test $ac_cv_have_decl_malloc = yes; then
19203 cat >>confdefs.h <<_ACEOF
19204 #define HAVE_DECL_MALLOC 1
19209 cat >>confdefs.h <<_ACEOF
19210 #define HAVE_DECL_MALLOC 0
19215 echo "$as_me:$LINENO: checking whether realloc is declared" >&5
19216 echo $ECHO_N "checking whether realloc is declared... $ECHO_C" >&6
19217 if test "${ac_cv_have_decl_realloc+set}" = set; then
19218 echo $ECHO_N "(cached) $ECHO_C" >&6
19220 cat >conftest.$ac_ext <<_ACEOF
19223 cat confdefs.h >>conftest.$ac_ext
19224 cat >>conftest.$ac_ext <<_ACEOF
19225 /* end confdefs.h. */
19226 $ac_includes_default
19231 char *p = (char *) realloc;
19238 rm -f conftest.$ac_objext
19239 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
19240 (eval $ac_compile) 2>conftest.er1
19242 grep -v '^ *+' conftest.er1 >conftest.err
19244 cat conftest.err >&5
19245 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19246 (exit $ac_status); } &&
19247 { ac_try='test -z "$ac_c_werror_flag"
19248 || test ! -s conftest.err'
19249 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19250 (eval $ac_try) 2>&5
19252 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19253 (exit $ac_status); }; } &&
19254 { ac_try='test -s conftest.$ac_objext'
19255 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19256 (eval $ac_try) 2>&5
19258 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19259 (exit $ac_status); }; }; then
19260 ac_cv_have_decl_realloc=yes
19262 echo "$as_me: failed program was:" >&5
19263 sed 's/^/| /' conftest.$ac_ext >&5
19265 ac_cv_have_decl_realloc=no
19267 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
19269 echo "$as_me:$LINENO: result: $ac_cv_have_decl_realloc" >&5
19270 echo "${ECHO_T}$ac_cv_have_decl_realloc" >&6
19271 if test $ac_cv_have_decl_realloc = yes; then
19273 cat >>confdefs.h <<_ACEOF
19274 #define HAVE_DECL_REALLOC 1
19279 cat >>confdefs.h <<_ACEOF
19280 #define HAVE_DECL_REALLOC 0
19287 echo "$as_me:$LINENO: checking whether strerror is declared" >&5
19288 echo $ECHO_N "checking whether strerror is declared... $ECHO_C" >&6
19289 if test "${ac_cv_have_decl_strerror+set}" = set; then
19290 echo $ECHO_N "(cached) $ECHO_C" >&6
19292 cat >conftest.$ac_ext <<_ACEOF
19295 cat confdefs.h >>conftest.$ac_ext
19296 cat >>conftest.$ac_ext <<_ACEOF
19297 /* end confdefs.h. */
19298 $ac_includes_default
19303 char *p = (char *) strerror;
19310 rm -f conftest.$ac_objext
19311 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
19312 (eval $ac_compile) 2>conftest.er1
19314 grep -v '^ *+' conftest.er1 >conftest.err
19316 cat conftest.err >&5
19317 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19318 (exit $ac_status); } &&
19319 { ac_try='test -z "$ac_c_werror_flag"
19320 || test ! -s conftest.err'
19321 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19322 (eval $ac_try) 2>&5
19324 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19325 (exit $ac_status); }; } &&
19326 { ac_try='test -s conftest.$ac_objext'
19327 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19328 (eval $ac_try) 2>&5
19330 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19331 (exit $ac_status); }; }; then
19332 ac_cv_have_decl_strerror=yes
19334 echo "$as_me: failed program was:" >&5
19335 sed 's/^/| /' conftest.$ac_ext >&5
19337 ac_cv_have_decl_strerror=no
19339 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
19341 echo "$as_me:$LINENO: result: $ac_cv_have_decl_strerror" >&5
19342 echo "${ECHO_T}$ac_cv_have_decl_strerror" >&6
19343 if test $ac_cv_have_decl_strerror = yes; then
19345 cat >>confdefs.h <<_ACEOF
19346 #define HAVE_DECL_STRERROR 1
19351 cat >>confdefs.h <<_ACEOF
19352 #define HAVE_DECL_STRERROR 0
19357 echo "$as_me:$LINENO: checking whether strstr is declared" >&5
19358 echo $ECHO_N "checking whether strstr is declared... $ECHO_C" >&6
19359 if test "${ac_cv_have_decl_strstr+set}" = set; then
19360 echo $ECHO_N "(cached) $ECHO_C" >&6
19362 cat >conftest.$ac_ext <<_ACEOF
19365 cat confdefs.h >>conftest.$ac_ext
19366 cat >>conftest.$ac_ext <<_ACEOF
19367 /* end confdefs.h. */
19368 $ac_includes_default
19373 char *p = (char *) strstr;
19380 rm -f conftest.$ac_objext
19381 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
19382 (eval $ac_compile) 2>conftest.er1
19384 grep -v '^ *+' conftest.er1 >conftest.err
19386 cat conftest.err >&5
19387 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19388 (exit $ac_status); } &&
19389 { ac_try='test -z "$ac_c_werror_flag"
19390 || test ! -s conftest.err'
19391 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19392 (eval $ac_try) 2>&5
19394 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19395 (exit $ac_status); }; } &&
19396 { ac_try='test -s conftest.$ac_objext'
19397 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19398 (eval $ac_try) 2>&5
19400 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19401 (exit $ac_status); }; }; then
19402 ac_cv_have_decl_strstr=yes
19404 echo "$as_me: failed program was:" >&5
19405 sed 's/^/| /' conftest.$ac_ext >&5
19407 ac_cv_have_decl_strstr=no
19409 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
19411 echo "$as_me:$LINENO: result: $ac_cv_have_decl_strstr" >&5
19412 echo "${ECHO_T}$ac_cv_have_decl_strstr" >&6
19413 if test $ac_cv_have_decl_strstr = yes; then
19415 cat >>confdefs.h <<_ACEOF
19416 #define HAVE_DECL_STRSTR 1
19421 cat >>confdefs.h <<_ACEOF
19422 #define HAVE_DECL_STRSTR 0
19429 echo "$as_me:$LINENO: checking whether getopt is declared" >&5
19430 echo $ECHO_N "checking whether getopt is declared... $ECHO_C" >&6
19431 if test "${ac_cv_have_decl_getopt+set}" = set; then
19432 echo $ECHO_N "(cached) $ECHO_C" >&6
19434 cat >conftest.$ac_ext <<_ACEOF
19437 cat confdefs.h >>conftest.$ac_ext
19438 cat >>conftest.$ac_ext <<_ACEOF
19439 /* end confdefs.h. */
19440 $ac_includes_default
19445 char *p = (char *) getopt;
19452 rm -f conftest.$ac_objext
19453 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
19454 (eval $ac_compile) 2>conftest.er1
19456 grep -v '^ *+' conftest.er1 >conftest.err
19458 cat conftest.err >&5
19459 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19460 (exit $ac_status); } &&
19461 { ac_try='test -z "$ac_c_werror_flag"
19462 || test ! -s conftest.err'
19463 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19464 (eval $ac_try) 2>&5
19466 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19467 (exit $ac_status); }; } &&
19468 { ac_try='test -s conftest.$ac_objext'
19469 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19470 (eval $ac_try) 2>&5
19472 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19473 (exit $ac_status); }; }; then
19474 ac_cv_have_decl_getopt=yes
19476 echo "$as_me: failed program was:" >&5
19477 sed 's/^/| /' conftest.$ac_ext >&5
19479 ac_cv_have_decl_getopt=no
19481 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
19483 echo "$as_me:$LINENO: result: $ac_cv_have_decl_getopt" >&5
19484 echo "${ECHO_T}$ac_cv_have_decl_getopt" >&6
19485 if test $ac_cv_have_decl_getopt = yes; then
19487 cat >>confdefs.h <<_ACEOF
19488 #define HAVE_DECL_GETOPT 1
19493 cat >>confdefs.h <<_ACEOF
19494 #define HAVE_DECL_GETOPT 0
19499 echo "$as_me:$LINENO: checking whether snprintf is declared" >&5
19500 echo $ECHO_N "checking whether snprintf is declared... $ECHO_C" >&6
19501 if test "${ac_cv_have_decl_snprintf+set}" = set; then
19502 echo $ECHO_N "(cached) $ECHO_C" >&6
19504 cat >conftest.$ac_ext <<_ACEOF
19507 cat confdefs.h >>conftest.$ac_ext
19508 cat >>conftest.$ac_ext <<_ACEOF
19509 /* end confdefs.h. */
19510 $ac_includes_default
19515 char *p = (char *) snprintf;
19522 rm -f conftest.$ac_objext
19523 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
19524 (eval $ac_compile) 2>conftest.er1
19526 grep -v '^ *+' conftest.er1 >conftest.err
19528 cat conftest.err >&5
19529 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19530 (exit $ac_status); } &&
19531 { ac_try='test -z "$ac_c_werror_flag"
19532 || test ! -s conftest.err'
19533 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19534 (eval $ac_try) 2>&5
19536 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19537 (exit $ac_status); }; } &&
19538 { ac_try='test -s conftest.$ac_objext'
19539 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19540 (eval $ac_try) 2>&5
19542 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19543 (exit $ac_status); }; }; then
19544 ac_cv_have_decl_snprintf=yes
19546 echo "$as_me: failed program was:" >&5
19547 sed 's/^/| /' conftest.$ac_ext >&5
19549 ac_cv_have_decl_snprintf=no
19551 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
19553 echo "$as_me:$LINENO: result: $ac_cv_have_decl_snprintf" >&5
19554 echo "${ECHO_T}$ac_cv_have_decl_snprintf" >&6
19555 if test $ac_cv_have_decl_snprintf = yes; then
19557 cat >>confdefs.h <<_ACEOF
19558 #define HAVE_DECL_SNPRINTF 1
19563 cat >>confdefs.h <<_ACEOF
19564 #define HAVE_DECL_SNPRINTF 0
19569 echo "$as_me:$LINENO: checking whether vsnprintf is declared" >&5
19570 echo $ECHO_N "checking whether vsnprintf is declared... $ECHO_C" >&6
19571 if test "${ac_cv_have_decl_vsnprintf+set}" = set; then
19572 echo $ECHO_N "(cached) $ECHO_C" >&6
19574 cat >conftest.$ac_ext <<_ACEOF
19577 cat confdefs.h >>conftest.$ac_ext
19578 cat >>conftest.$ac_ext <<_ACEOF
19579 /* end confdefs.h. */
19580 $ac_includes_default
19585 char *p = (char *) vsnprintf;
19592 rm -f conftest.$ac_objext
19593 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
19594 (eval $ac_compile) 2>conftest.er1
19596 grep -v '^ *+' conftest.er1 >conftest.err
19598 cat conftest.err >&5
19599 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19600 (exit $ac_status); } &&
19601 { ac_try='test -z "$ac_c_werror_flag"
19602 || test ! -s conftest.err'
19603 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19604 (eval $ac_try) 2>&5
19606 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19607 (exit $ac_status); }; } &&
19608 { ac_try='test -s conftest.$ac_objext'
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); }; }; then
19614 ac_cv_have_decl_vsnprintf=yes
19616 echo "$as_me: failed program was:" >&5
19617 sed 's/^/| /' conftest.$ac_ext >&5
19619 ac_cv_have_decl_vsnprintf=no
19621 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
19623 echo "$as_me:$LINENO: result: $ac_cv_have_decl_vsnprintf" >&5
19624 echo "${ECHO_T}$ac_cv_have_decl_vsnprintf" >&6
19625 if test $ac_cv_have_decl_vsnprintf = yes; then
19627 cat >>confdefs.h <<_ACEOF
19628 #define HAVE_DECL_VSNPRINTF 1
19633 cat >>confdefs.h <<_ACEOF
19634 #define HAVE_DECL_VSNPRINTF 0
19642 # ----------------------- #
19643 # Checks for structures. #
19644 # ----------------------- #
19646 echo "$as_me:$LINENO: checking for struct stat.st_blocks" >&5
19647 echo $ECHO_N "checking for struct stat.st_blocks... $ECHO_C" >&6
19648 if test "${ac_cv_member_struct_stat_st_blocks+set}" = set; then
19649 echo $ECHO_N "(cached) $ECHO_C" >&6
19651 cat >conftest.$ac_ext <<_ACEOF
19654 cat confdefs.h >>conftest.$ac_ext
19655 cat >>conftest.$ac_ext <<_ACEOF
19656 /* end confdefs.h. */
19657 $ac_includes_default
19661 static struct stat ac_aggr;
19662 if (ac_aggr.st_blocks)
19668 rm -f conftest.$ac_objext
19669 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
19670 (eval $ac_compile) 2>conftest.er1
19672 grep -v '^ *+' conftest.er1 >conftest.err
19674 cat conftest.err >&5
19675 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19676 (exit $ac_status); } &&
19677 { ac_try='test -z "$ac_c_werror_flag"
19678 || test ! -s conftest.err'
19679 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19680 (eval $ac_try) 2>&5
19682 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19683 (exit $ac_status); }; } &&
19684 { ac_try='test -s conftest.$ac_objext'
19685 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19686 (eval $ac_try) 2>&5
19688 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19689 (exit $ac_status); }; }; then
19690 ac_cv_member_struct_stat_st_blocks=yes
19692 echo "$as_me: failed program was:" >&5
19693 sed 's/^/| /' conftest.$ac_ext >&5
19695 cat >conftest.$ac_ext <<_ACEOF
19698 cat confdefs.h >>conftest.$ac_ext
19699 cat >>conftest.$ac_ext <<_ACEOF
19700 /* end confdefs.h. */
19701 $ac_includes_default
19705 static struct stat ac_aggr;
19706 if (sizeof ac_aggr.st_blocks)
19712 rm -f conftest.$ac_objext
19713 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
19714 (eval $ac_compile) 2>conftest.er1
19716 grep -v '^ *+' conftest.er1 >conftest.err
19718 cat conftest.err >&5
19719 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19720 (exit $ac_status); } &&
19721 { ac_try='test -z "$ac_c_werror_flag"
19722 || test ! -s conftest.err'
19723 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19724 (eval $ac_try) 2>&5
19726 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19727 (exit $ac_status); }; } &&
19728 { ac_try='test -s conftest.$ac_objext'
19729 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19730 (eval $ac_try) 2>&5
19732 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19733 (exit $ac_status); }; }; then
19734 ac_cv_member_struct_stat_st_blocks=yes
19736 echo "$as_me: failed program was:" >&5
19737 sed 's/^/| /' conftest.$ac_ext >&5
19739 ac_cv_member_struct_stat_st_blocks=no
19741 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
19743 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
19745 echo "$as_me:$LINENO: result: $ac_cv_member_struct_stat_st_blocks" >&5
19746 echo "${ECHO_T}$ac_cv_member_struct_stat_st_blocks" >&6
19747 if test $ac_cv_member_struct_stat_st_blocks = yes; then
19749 cat >>confdefs.h <<_ACEOF
19750 #define HAVE_STRUCT_STAT_ST_BLOCKS 1
19756 echo "$as_me:$LINENO: checking for struct stat.st_blksize" >&5
19757 echo $ECHO_N "checking for struct stat.st_blksize... $ECHO_C" >&6
19758 if test "${ac_cv_member_struct_stat_st_blksize+set}" = set; then
19759 echo $ECHO_N "(cached) $ECHO_C" >&6
19761 cat >conftest.$ac_ext <<_ACEOF
19764 cat confdefs.h >>conftest.$ac_ext
19765 cat >>conftest.$ac_ext <<_ACEOF
19766 /* end confdefs.h. */
19767 $ac_includes_default
19771 static struct stat ac_aggr;
19772 if (ac_aggr.st_blksize)
19778 rm -f conftest.$ac_objext
19779 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
19780 (eval $ac_compile) 2>conftest.er1
19782 grep -v '^ *+' conftest.er1 >conftest.err
19784 cat conftest.err >&5
19785 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19786 (exit $ac_status); } &&
19787 { ac_try='test -z "$ac_c_werror_flag"
19788 || test ! -s conftest.err'
19789 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19790 (eval $ac_try) 2>&5
19792 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19793 (exit $ac_status); }; } &&
19794 { ac_try='test -s conftest.$ac_objext'
19795 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19796 (eval $ac_try) 2>&5
19798 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19799 (exit $ac_status); }; }; then
19800 ac_cv_member_struct_stat_st_blksize=yes
19802 echo "$as_me: failed program was:" >&5
19803 sed 's/^/| /' conftest.$ac_ext >&5
19805 cat >conftest.$ac_ext <<_ACEOF
19808 cat confdefs.h >>conftest.$ac_ext
19809 cat >>conftest.$ac_ext <<_ACEOF
19810 /* end confdefs.h. */
19811 $ac_includes_default
19815 static struct stat ac_aggr;
19816 if (sizeof ac_aggr.st_blksize)
19822 rm -f conftest.$ac_objext
19823 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
19824 (eval $ac_compile) 2>conftest.er1
19826 grep -v '^ *+' conftest.er1 >conftest.err
19828 cat conftest.err >&5
19829 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19830 (exit $ac_status); } &&
19831 { ac_try='test -z "$ac_c_werror_flag"
19832 || test ! -s conftest.err'
19833 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19834 (eval $ac_try) 2>&5
19836 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19837 (exit $ac_status); }; } &&
19838 { ac_try='test -s conftest.$ac_objext'
19839 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19840 (eval $ac_try) 2>&5
19842 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19843 (exit $ac_status); }; }; then
19844 ac_cv_member_struct_stat_st_blksize=yes
19846 echo "$as_me: failed program was:" >&5
19847 sed 's/^/| /' conftest.$ac_ext >&5
19849 ac_cv_member_struct_stat_st_blksize=no
19851 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
19853 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
19855 echo "$as_me:$LINENO: result: $ac_cv_member_struct_stat_st_blksize" >&5
19856 echo "${ECHO_T}$ac_cv_member_struct_stat_st_blksize" >&6
19857 if test $ac_cv_member_struct_stat_st_blksize = yes; then
19859 cat >>confdefs.h <<_ACEOF
19860 #define HAVE_STRUCT_STAT_ST_BLKSIZE 1
19867 # ------------------ #
19868 # Checks for types. #
19869 # ------------------ #
19871 echo "$as_me:$LINENO: checking return type of signal handlers" >&5
19872 echo $ECHO_N "checking return type of signal handlers... $ECHO_C" >&6
19873 if test "${ac_cv_type_signal+set}" = set; then
19874 echo $ECHO_N "(cached) $ECHO_C" >&6
19876 cat >conftest.$ac_ext <<_ACEOF
19879 cat confdefs.h >>conftest.$ac_ext
19880 cat >>conftest.$ac_ext <<_ACEOF
19881 /* end confdefs.h. */
19882 #include <sys/types.h>
19883 #include <signal.h>
19888 extern "C" void (*signal (int, void (*)(int)))(int);
19890 void (*signal ()) ();
19901 rm -f conftest.$ac_objext
19902 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
19903 (eval $ac_compile) 2>conftest.er1
19905 grep -v '^ *+' conftest.er1 >conftest.err
19907 cat conftest.err >&5
19908 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19909 (exit $ac_status); } &&
19910 { ac_try='test -z "$ac_c_werror_flag"
19911 || test ! -s conftest.err'
19912 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19913 (eval $ac_try) 2>&5
19915 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19916 (exit $ac_status); }; } &&
19917 { ac_try='test -s conftest.$ac_objext'
19918 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19919 (eval $ac_try) 2>&5
19921 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19922 (exit $ac_status); }; }; then
19923 ac_cv_type_signal=void
19925 echo "$as_me: failed program was:" >&5
19926 sed 's/^/| /' conftest.$ac_ext >&5
19928 ac_cv_type_signal=int
19930 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
19932 echo "$as_me:$LINENO: result: $ac_cv_type_signal" >&5
19933 echo "${ECHO_T}$ac_cv_type_signal" >&6
19935 cat >>confdefs.h <<_ACEOF
19936 #define RETSIGTYPE $ac_cv_type_signal
19940 echo "$as_me:$LINENO: checking for socklen_t" >&5
19941 echo $ECHO_N "checking for socklen_t... $ECHO_C" >&6
19942 if test "${ac_cv_type_socklen_t+set}" = set; then
19943 echo $ECHO_N "(cached) $ECHO_C" >&6
19945 cat >conftest.$ac_ext <<_ACEOF
19948 cat confdefs.h >>conftest.$ac_ext
19949 cat >>conftest.$ac_ext <<_ACEOF
19950 /* end confdefs.h. */
19951 #include <sys/types.h>
19952 #include <sys/socket.h>
19958 if ((socklen_t *) 0)
19960 if (sizeof (socklen_t))
19966 rm -f conftest.$ac_objext
19967 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
19968 (eval $ac_compile) 2>conftest.er1
19970 grep -v '^ *+' conftest.er1 >conftest.err
19972 cat conftest.err >&5
19973 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19974 (exit $ac_status); } &&
19975 { ac_try='test -z "$ac_c_werror_flag"
19976 || test ! -s conftest.err'
19977 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19978 (eval $ac_try) 2>&5
19980 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19981 (exit $ac_status); }; } &&
19982 { ac_try='test -s conftest.$ac_objext'
19983 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19984 (eval $ac_try) 2>&5
19986 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19987 (exit $ac_status); }; }; then
19988 ac_cv_type_socklen_t=yes
19990 echo "$as_me: failed program was:" >&5
19991 sed 's/^/| /' conftest.$ac_ext >&5
19993 ac_cv_type_socklen_t=no
19995 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
19997 echo "$as_me:$LINENO: result: $ac_cv_type_socklen_t" >&5
19998 echo "${ECHO_T}$ac_cv_type_socklen_t" >&6
19999 if test $ac_cv_type_socklen_t = yes; then
20001 cat >>confdefs.h <<_ACEOF
20002 #define HAVE_SOCKLEN_T 1
20008 echo "$as_me:$LINENO: checking for uintptr_t" >&5
20009 echo $ECHO_N "checking for uintptr_t... $ECHO_C" >&6
20010 if test "${ac_cv_type_uintptr_t+set}" = set; then
20011 echo $ECHO_N "(cached) $ECHO_C" >&6
20013 cat >conftest.$ac_ext <<_ACEOF
20016 cat confdefs.h >>conftest.$ac_ext
20017 cat >>conftest.$ac_ext <<_ACEOF
20018 /* end confdefs.h. */
20019 #include <stdint.h>
20024 if ((uintptr_t *) 0)
20026 if (sizeof (uintptr_t))
20032 rm -f conftest.$ac_objext
20033 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
20034 (eval $ac_compile) 2>conftest.er1
20036 grep -v '^ *+' conftest.er1 >conftest.err
20038 cat conftest.err >&5
20039 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20040 (exit $ac_status); } &&
20041 { ac_try='test -z "$ac_c_werror_flag"
20042 || test ! -s conftest.err'
20043 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20044 (eval $ac_try) 2>&5
20046 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20047 (exit $ac_status); }; } &&
20048 { ac_try='test -s conftest.$ac_objext'
20049 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20050 (eval $ac_try) 2>&5
20052 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20053 (exit $ac_status); }; }; then
20054 ac_cv_type_uintptr_t=yes
20056 echo "$as_me: failed program was:" >&5
20057 sed 's/^/| /' conftest.$ac_ext >&5
20059 ac_cv_type_uintptr_t=no
20061 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
20063 echo "$as_me:$LINENO: result: $ac_cv_type_uintptr_t" >&5
20064 echo "${ECHO_T}$ac_cv_type_uintptr_t" >&6
20065 if test $ac_cv_type_uintptr_t = yes; then
20067 cat >>confdefs.h <<_ACEOF
20068 #define HAVE_UINTPTR_T 1
20075 # ------------------------------------- #
20076 # Checks for compiler characteristics. #
20077 # ------------------------------------- #
20079 echo "$as_me:$LINENO: checking for an ANSI C-conforming const" >&5
20080 echo $ECHO_N "checking for an ANSI C-conforming const... $ECHO_C" >&6
20081 if test "${ac_cv_c_const+set}" = set; then
20082 echo $ECHO_N "(cached) $ECHO_C" >&6
20084 cat >conftest.$ac_ext <<_ACEOF
20087 cat confdefs.h >>conftest.$ac_ext
20088 cat >>conftest.$ac_ext <<_ACEOF
20089 /* end confdefs.h. */
20094 /* FIXME: Include the comments suggested by Paul. */
20095 #ifndef __cplusplus
20096 /* Ultrix mips cc rejects this. */
20097 typedef int charset[2];
20099 /* SunOS 4.1.1 cc rejects this. */
20100 char const *const *ccp;
20102 /* NEC SVR4.0.2 mips cc rejects this. */
20103 struct point {int x, y;};
20104 static struct point const zero = {0,0};
20105 /* AIX XL C 1.02.0.0 rejects this.
20106 It does not let you subtract one const X* pointer from another in
20107 an arm of an if-expression whose if-part is not a constant
20109 const char *g = "string";
20110 ccp = &g + (g ? g-g : 0);
20111 /* HPUX 7.0 cc rejects these. */
20114 ccp = (char const *const *) p;
20115 { /* SCO 3.2v4 cc rejects this. */
20117 char const *s = 0 ? (char *) 0 : (char const *) 0;
20121 { /* Someone thinks the Sun supposedly-ANSI compiler will reject this. */
20122 int x[] = {25, 17};
20123 const int *foo = &x[0];
20126 { /* Sun SC1.0 ANSI compiler rejects this -- but not the above. */
20127 typedef const int *iptr;
20131 { /* AIX XL C 1.02.0.0 rejects this saying
20132 "k.c", line 2.27: 1506-025 (S) Operand must be a modifiable lvalue. */
20133 struct s { int j; const int *ap[3]; };
20134 struct s *b; b->j = 5;
20136 { /* ULTRIX-32 V3.1 (Rev 9) vcc rejects this */
20137 const int foo = 10;
20145 rm -f conftest.$ac_objext
20146 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
20147 (eval $ac_compile) 2>conftest.er1
20149 grep -v '^ *+' conftest.er1 >conftest.err
20151 cat conftest.err >&5
20152 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20153 (exit $ac_status); } &&
20154 { ac_try='test -z "$ac_c_werror_flag"
20155 || test ! -s conftest.err'
20156 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20157 (eval $ac_try) 2>&5
20159 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20160 (exit $ac_status); }; } &&
20161 { ac_try='test -s conftest.$ac_objext'
20162 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20163 (eval $ac_try) 2>&5
20165 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20166 (exit $ac_status); }; }; then
20169 echo "$as_me: failed program was:" >&5
20170 sed 's/^/| /' conftest.$ac_ext >&5
20174 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
20176 echo "$as_me:$LINENO: result: $ac_cv_c_const" >&5
20177 echo "${ECHO_T}$ac_cv_c_const" >&6
20178 if test $ac_cv_c_const = no; then
20180 cat >>confdefs.h <<\_ACEOF
20186 echo "$as_me:$LINENO: checking for inline" >&5
20187 echo $ECHO_N "checking for inline... $ECHO_C" >&6
20188 if test "${ac_cv_c_inline+set}" = set; then
20189 echo $ECHO_N "(cached) $ECHO_C" >&6
20192 for ac_kw in inline __inline__ __inline; do
20193 cat >conftest.$ac_ext <<_ACEOF
20196 cat confdefs.h >>conftest.$ac_ext
20197 cat >>conftest.$ac_ext <<_ACEOF
20198 /* end confdefs.h. */
20199 #ifndef __cplusplus
20201 static $ac_kw foo_t static_foo () {return 0; }
20202 $ac_kw foo_t foo () {return 0; }
20206 rm -f conftest.$ac_objext
20207 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
20208 (eval $ac_compile) 2>conftest.er1
20210 grep -v '^ *+' conftest.er1 >conftest.err
20212 cat conftest.err >&5
20213 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20214 (exit $ac_status); } &&
20215 { ac_try='test -z "$ac_c_werror_flag"
20216 || test ! -s conftest.err'
20217 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20218 (eval $ac_try) 2>&5
20220 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20221 (exit $ac_status); }; } &&
20222 { ac_try='test -s conftest.$ac_objext'
20223 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20224 (eval $ac_try) 2>&5
20226 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20227 (exit $ac_status); }; }; then
20228 ac_cv_c_inline=$ac_kw; break
20230 echo "$as_me: failed program was:" >&5
20231 sed 's/^/| /' conftest.$ac_ext >&5
20234 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
20238 echo "$as_me:$LINENO: result: $ac_cv_c_inline" >&5
20239 echo "${ECHO_T}$ac_cv_c_inline" >&6
20242 case $ac_cv_c_inline in
20245 case $ac_cv_c_inline in
20247 *) ac_val=$ac_cv_c_inline;;
20249 cat >>confdefs.h <<_ACEOF
20250 #ifndef __cplusplus
20251 #define inline $ac_val
20257 echo "$as_me:$LINENO: checking whether byte ordering is bigendian" >&5
20258 echo $ECHO_N "checking whether byte ordering is bigendian... $ECHO_C" >&6
20259 if test "${ac_cv_c_bigendian+set}" = set; then
20260 echo $ECHO_N "(cached) $ECHO_C" >&6
20262 # See if sys/param.h defines the BYTE_ORDER macro.
20263 cat >conftest.$ac_ext <<_ACEOF
20266 cat confdefs.h >>conftest.$ac_ext
20267 cat >>conftest.$ac_ext <<_ACEOF
20268 /* end confdefs.h. */
20269 #include <sys/types.h>
20270 #include <sys/param.h>
20275 #if !BYTE_ORDER || !BIG_ENDIAN || !LITTLE_ENDIAN
20276 bogus endian macros
20283 rm -f conftest.$ac_objext
20284 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
20285 (eval $ac_compile) 2>conftest.er1
20287 grep -v '^ *+' conftest.er1 >conftest.err
20289 cat conftest.err >&5
20290 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20291 (exit $ac_status); } &&
20292 { ac_try='test -z "$ac_c_werror_flag"
20293 || test ! -s conftest.err'
20294 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20295 (eval $ac_try) 2>&5
20297 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20298 (exit $ac_status); }; } &&
20299 { ac_try='test -s conftest.$ac_objext'
20300 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20301 (eval $ac_try) 2>&5
20303 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20304 (exit $ac_status); }; }; then
20305 # It does; now see whether it defined to BIG_ENDIAN or not.
20306 cat >conftest.$ac_ext <<_ACEOF
20309 cat confdefs.h >>conftest.$ac_ext
20310 cat >>conftest.$ac_ext <<_ACEOF
20311 /* end confdefs.h. */
20312 #include <sys/types.h>
20313 #include <sys/param.h>
20318 #if BYTE_ORDER != BIG_ENDIAN
20326 rm -f conftest.$ac_objext
20327 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
20328 (eval $ac_compile) 2>conftest.er1
20330 grep -v '^ *+' conftest.er1 >conftest.err
20332 cat conftest.err >&5
20333 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20334 (exit $ac_status); } &&
20335 { ac_try='test -z "$ac_c_werror_flag"
20336 || test ! -s conftest.err'
20337 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20338 (eval $ac_try) 2>&5
20340 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20341 (exit $ac_status); }; } &&
20342 { ac_try='test -s conftest.$ac_objext'
20343 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20344 (eval $ac_try) 2>&5
20346 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20347 (exit $ac_status); }; }; then
20348 ac_cv_c_bigendian=yes
20350 echo "$as_me: failed program was:" >&5
20351 sed 's/^/| /' conftest.$ac_ext >&5
20353 ac_cv_c_bigendian=no
20355 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
20357 echo "$as_me: failed program was:" >&5
20358 sed 's/^/| /' conftest.$ac_ext >&5
20360 # It does not; compile a test program.
20361 if test "$cross_compiling" = yes; then
20362 # try to guess the endianness by grepping values into an object file
20363 ac_cv_c_bigendian=unknown
20364 cat >conftest.$ac_ext <<_ACEOF
20367 cat confdefs.h >>conftest.$ac_ext
20368 cat >>conftest.$ac_ext <<_ACEOF
20369 /* end confdefs.h. */
20370 short ascii_mm[] = { 0x4249, 0x4765, 0x6E44, 0x6961, 0x6E53, 0x7953, 0 };
20371 short ascii_ii[] = { 0x694C, 0x5454, 0x656C, 0x6E45, 0x6944, 0x6E61, 0 };
20372 void _ascii () { char *s = (char *) ascii_mm; s = (char *) ascii_ii; }
20373 short ebcdic_ii[] = { 0x89D3, 0xE3E3, 0x8593, 0x95C5, 0x89C4, 0x9581, 0 };
20374 short ebcdic_mm[] = { 0xC2C9, 0xC785, 0x95C4, 0x8981, 0x95E2, 0xA8E2, 0 };
20375 void _ebcdic () { char *s = (char *) ebcdic_mm; s = (char *) ebcdic_ii; }
20379 _ascii (); _ebcdic ();
20384 rm -f conftest.$ac_objext
20385 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
20386 (eval $ac_compile) 2>conftest.er1
20388 grep -v '^ *+' conftest.er1 >conftest.err
20390 cat conftest.err >&5
20391 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20392 (exit $ac_status); } &&
20393 { ac_try='test -z "$ac_c_werror_flag"
20394 || test ! -s conftest.err'
20395 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20396 (eval $ac_try) 2>&5
20398 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20399 (exit $ac_status); }; } &&
20400 { ac_try='test -s conftest.$ac_objext'
20401 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20402 (eval $ac_try) 2>&5
20404 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20405 (exit $ac_status); }; }; then
20406 if grep BIGenDianSyS conftest.$ac_objext >/dev/null ; then
20407 ac_cv_c_bigendian=yes
20409 if grep LiTTleEnDian conftest.$ac_objext >/dev/null ; then
20410 if test "$ac_cv_c_bigendian" = unknown; then
20411 ac_cv_c_bigendian=no
20413 # finding both strings is unlikely to happen, but who knows?
20414 ac_cv_c_bigendian=unknown
20418 echo "$as_me: failed program was:" >&5
20419 sed 's/^/| /' conftest.$ac_ext >&5
20422 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
20424 cat >conftest.$ac_ext <<_ACEOF
20427 cat confdefs.h >>conftest.$ac_ext
20428 cat >>conftest.$ac_ext <<_ACEOF
20429 /* end confdefs.h. */
20433 /* Are we little or big endian? From Harbison&Steele. */
20437 char c[sizeof (long)];
20440 exit (u.c[sizeof (long) - 1] == 1);
20443 rm -f conftest$ac_exeext
20444 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
20445 (eval $ac_link) 2>&5
20447 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20448 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
20449 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20450 (eval $ac_try) 2>&5
20452 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20453 (exit $ac_status); }; }; then
20454 ac_cv_c_bigendian=no
20456 echo "$as_me: program exited with status $ac_status" >&5
20457 echo "$as_me: failed program was:" >&5
20458 sed 's/^/| /' conftest.$ac_ext >&5
20460 ( exit $ac_status )
20461 ac_cv_c_bigendian=yes
20463 rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
20466 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
20468 echo "$as_me:$LINENO: result: $ac_cv_c_bigendian" >&5
20469 echo "${ECHO_T}$ac_cv_c_bigendian" >&6
20470 case $ac_cv_c_bigendian in
20473 cat >>confdefs.h <<\_ACEOF
20474 #define WORDS_BIGENDIAN 1
20480 { { echo "$as_me:$LINENO: error: unknown endianness
20481 presetting ac_cv_c_bigendian=no (or yes) will help" >&5
20482 echo "$as_me: error: unknown endianness
20483 presetting ac_cv_c_bigendian=no (or yes) will help" >&2;}
20484 { (exit 1); exit 1; }; } ;;
20488 # ------------------------------ #
20489 # Checks for library functions. #
20490 # ------------------------------ #
20492 # The Ultrix 4.2 mips builtin alloca declared by alloca.h only works
20493 # for constant arguments. Useless!
20494 echo "$as_me:$LINENO: checking for working alloca.h" >&5
20495 echo $ECHO_N "checking for working alloca.h... $ECHO_C" >&6
20496 if test "${ac_cv_working_alloca_h+set}" = set; then
20497 echo $ECHO_N "(cached) $ECHO_C" >&6
20499 cat >conftest.$ac_ext <<_ACEOF
20502 cat confdefs.h >>conftest.$ac_ext
20503 cat >>conftest.$ac_ext <<_ACEOF
20504 /* end confdefs.h. */
20505 #include <alloca.h>
20509 char *p = (char *) alloca (2 * sizeof (int));
20514 rm -f conftest.$ac_objext conftest$ac_exeext
20515 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
20516 (eval $ac_link) 2>conftest.er1
20518 grep -v '^ *+' conftest.er1 >conftest.err
20520 cat conftest.err >&5
20521 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20522 (exit $ac_status); } &&
20523 { ac_try='test -z "$ac_c_werror_flag"
20524 || test ! -s conftest.err'
20525 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20526 (eval $ac_try) 2>&5
20528 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20529 (exit $ac_status); }; } &&
20530 { ac_try='test -s conftest$ac_exeext'
20531 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20532 (eval $ac_try) 2>&5
20534 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20535 (exit $ac_status); }; }; then
20536 ac_cv_working_alloca_h=yes
20538 echo "$as_me: failed program was:" >&5
20539 sed 's/^/| /' conftest.$ac_ext >&5
20541 ac_cv_working_alloca_h=no
20543 rm -f conftest.err conftest.$ac_objext \
20544 conftest$ac_exeext conftest.$ac_ext
20546 echo "$as_me:$LINENO: result: $ac_cv_working_alloca_h" >&5
20547 echo "${ECHO_T}$ac_cv_working_alloca_h" >&6
20548 if test $ac_cv_working_alloca_h = yes; then
20550 cat >>confdefs.h <<\_ACEOF
20551 #define HAVE_ALLOCA_H 1
20556 echo "$as_me:$LINENO: checking for alloca" >&5
20557 echo $ECHO_N "checking for alloca... $ECHO_C" >&6
20558 if test "${ac_cv_func_alloca_works+set}" = set; then
20559 echo $ECHO_N "(cached) $ECHO_C" >&6
20561 cat >conftest.$ac_ext <<_ACEOF
20564 cat confdefs.h >>conftest.$ac_ext
20565 cat >>conftest.$ac_ext <<_ACEOF
20566 /* end confdefs.h. */
20568 # define alloca __builtin_alloca
20571 # include <malloc.h>
20572 # define alloca _alloca
20575 # include <alloca.h>
20580 # ifndef alloca /* predefined by HP cc +Olibcalls */
20591 char *p = (char *) alloca (1);
20596 rm -f conftest.$ac_objext conftest$ac_exeext
20597 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
20598 (eval $ac_link) 2>conftest.er1
20600 grep -v '^ *+' conftest.er1 >conftest.err
20602 cat conftest.err >&5
20603 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20604 (exit $ac_status); } &&
20605 { ac_try='test -z "$ac_c_werror_flag"
20606 || test ! -s conftest.err'
20607 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20608 (eval $ac_try) 2>&5
20610 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20611 (exit $ac_status); }; } &&
20612 { ac_try='test -s conftest$ac_exeext'
20613 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20614 (eval $ac_try) 2>&5
20616 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20617 (exit $ac_status); }; }; then
20618 ac_cv_func_alloca_works=yes
20620 echo "$as_me: failed program was:" >&5
20621 sed 's/^/| /' conftest.$ac_ext >&5
20623 ac_cv_func_alloca_works=no
20625 rm -f conftest.err conftest.$ac_objext \
20626 conftest$ac_exeext conftest.$ac_ext
20628 echo "$as_me:$LINENO: result: $ac_cv_func_alloca_works" >&5
20629 echo "${ECHO_T}$ac_cv_func_alloca_works" >&6
20631 if test $ac_cv_func_alloca_works = yes; then
20633 cat >>confdefs.h <<\_ACEOF
20634 #define HAVE_ALLOCA 1
20638 # The SVR3 libPW and SVR4 libucb both contain incompatible functions
20639 # that cause trouble. Some versions do not even contain alloca or
20640 # contain a buggy version. If you still want to use their alloca,
20641 # use ar to extract alloca.o from them instead of compiling alloca.c.
20643 ALLOCA=alloca.$ac_objext
20645 cat >>confdefs.h <<\_ACEOF
20650 echo "$as_me:$LINENO: checking whether \`alloca.c' needs Cray hooks" >&5
20651 echo $ECHO_N "checking whether \`alloca.c' needs Cray hooks... $ECHO_C" >&6
20652 if test "${ac_cv_os_cray+set}" = set; then
20653 echo $ECHO_N "(cached) $ECHO_C" >&6
20655 cat >conftest.$ac_ext <<_ACEOF
20658 cat confdefs.h >>conftest.$ac_ext
20659 cat >>conftest.$ac_ext <<_ACEOF
20660 /* end confdefs.h. */
20661 #if defined(CRAY) && ! defined(CRAY2)
20668 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
20669 $EGREP "webecray" >/dev/null 2>&1; then
20677 echo "$as_me:$LINENO: result: $ac_cv_os_cray" >&5
20678 echo "${ECHO_T}$ac_cv_os_cray" >&6
20679 if test $ac_cv_os_cray = yes; then
20680 for ac_func in _getb67 GETB67 getb67; do
20681 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
20682 echo "$as_me:$LINENO: checking for $ac_func" >&5
20683 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
20684 if eval "test \"\${$as_ac_var+set}\" = set"; then
20685 echo $ECHO_N "(cached) $ECHO_C" >&6
20687 cat >conftest.$ac_ext <<_ACEOF
20690 cat confdefs.h >>conftest.$ac_ext
20691 cat >>conftest.$ac_ext <<_ACEOF
20692 /* end confdefs.h. */
20693 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
20694 For example, HP-UX 11i <limits.h> declares gettimeofday. */
20695 #define $ac_func innocuous_$ac_func
20697 /* System header to define __stub macros and hopefully few prototypes,
20698 which can conflict with char $ac_func (); below.
20699 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
20700 <limits.h> exists even on freestanding compilers. */
20703 # include <limits.h>
20705 # include <assert.h>
20710 /* Override any gcc2 internal prototype to avoid an error. */
20715 /* We use char because int might match the return type of a gcc2
20716 builtin and then its argument prototype would still apply. */
20718 /* The GNU C library defines this for functions which it implements
20719 to always fail with ENOSYS. Some functions are actually named
20720 something starting with __ and the normal name is an alias. */
20721 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
20724 char (*f) () = $ac_func;
20733 return f != $ac_func;
20738 rm -f conftest.$ac_objext conftest$ac_exeext
20739 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
20740 (eval $ac_link) 2>conftest.er1
20742 grep -v '^ *+' conftest.er1 >conftest.err
20744 cat conftest.err >&5
20745 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20746 (exit $ac_status); } &&
20747 { ac_try='test -z "$ac_c_werror_flag"
20748 || test ! -s conftest.err'
20749 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20750 (eval $ac_try) 2>&5
20752 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20753 (exit $ac_status); }; } &&
20754 { ac_try='test -s conftest$ac_exeext'
20755 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20756 (eval $ac_try) 2>&5
20758 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20759 (exit $ac_status); }; }; then
20760 eval "$as_ac_var=yes"
20762 echo "$as_me: failed program was:" >&5
20763 sed 's/^/| /' conftest.$ac_ext >&5
20765 eval "$as_ac_var=no"
20767 rm -f conftest.err conftest.$ac_objext \
20768 conftest$ac_exeext conftest.$ac_ext
20770 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
20771 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
20772 if test `eval echo '${'$as_ac_var'}'` = yes; then
20774 cat >>confdefs.h <<_ACEOF
20775 #define CRAY_STACKSEG_END $ac_func
20784 echo "$as_me:$LINENO: checking stack direction for C alloca" >&5
20785 echo $ECHO_N "checking stack direction for C alloca... $ECHO_C" >&6
20786 if test "${ac_cv_c_stack_direction+set}" = set; then
20787 echo $ECHO_N "(cached) $ECHO_C" >&6
20789 if test "$cross_compiling" = yes; then
20790 ac_cv_c_stack_direction=0
20792 cat >conftest.$ac_ext <<_ACEOF
20795 cat confdefs.h >>conftest.$ac_ext
20796 cat >>conftest.$ac_ext <<_ACEOF
20797 /* end confdefs.h. */
20799 find_stack_direction ()
20801 static char *addr = 0;
20806 return find_stack_direction ();
20809 return (&dummy > addr) ? 1 : -1;
20815 exit (find_stack_direction () < 0);
20818 rm -f conftest$ac_exeext
20819 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
20820 (eval $ac_link) 2>&5
20822 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20823 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
20824 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20825 (eval $ac_try) 2>&5
20827 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20828 (exit $ac_status); }; }; then
20829 ac_cv_c_stack_direction=1
20831 echo "$as_me: program exited with status $ac_status" >&5
20832 echo "$as_me: failed program was:" >&5
20833 sed 's/^/| /' conftest.$ac_ext >&5
20835 ( exit $ac_status )
20836 ac_cv_c_stack_direction=-1
20838 rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
20841 echo "$as_me:$LINENO: result: $ac_cv_c_stack_direction" >&5
20842 echo "${ECHO_T}$ac_cv_c_stack_direction" >&6
20844 cat >>confdefs.h <<_ACEOF
20845 #define STACK_DIRECTION $ac_cv_c_stack_direction
20853 for ac_header in stdlib.h unistd.h
20855 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
20856 if eval "test \"\${$as_ac_Header+set}\" = set"; then
20857 echo "$as_me:$LINENO: checking for $ac_header" >&5
20858 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
20859 if eval "test \"\${$as_ac_Header+set}\" = set"; then
20860 echo $ECHO_N "(cached) $ECHO_C" >&6
20862 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
20863 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
20865 # Is the header compilable?
20866 echo "$as_me:$LINENO: checking $ac_header usability" >&5
20867 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
20868 cat >conftest.$ac_ext <<_ACEOF
20871 cat confdefs.h >>conftest.$ac_ext
20872 cat >>conftest.$ac_ext <<_ACEOF
20873 /* end confdefs.h. */
20874 $ac_includes_default
20875 #include <$ac_header>
20877 rm -f conftest.$ac_objext
20878 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
20879 (eval $ac_compile) 2>conftest.er1
20881 grep -v '^ *+' conftest.er1 >conftest.err
20883 cat conftest.err >&5
20884 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20885 (exit $ac_status); } &&
20886 { ac_try='test -z "$ac_c_werror_flag"
20887 || test ! -s conftest.err'
20888 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20889 (eval $ac_try) 2>&5
20891 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20892 (exit $ac_status); }; } &&
20893 { ac_try='test -s conftest.$ac_objext'
20894 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20895 (eval $ac_try) 2>&5
20897 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20898 (exit $ac_status); }; }; then
20899 ac_header_compiler=yes
20901 echo "$as_me: failed program was:" >&5
20902 sed 's/^/| /' conftest.$ac_ext >&5
20904 ac_header_compiler=no
20906 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
20907 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
20908 echo "${ECHO_T}$ac_header_compiler" >&6
20910 # Is the header present?
20911 echo "$as_me:$LINENO: checking $ac_header presence" >&5
20912 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
20913 cat >conftest.$ac_ext <<_ACEOF
20916 cat confdefs.h >>conftest.$ac_ext
20917 cat >>conftest.$ac_ext <<_ACEOF
20918 /* end confdefs.h. */
20919 #include <$ac_header>
20921 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
20922 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
20924 grep -v '^ *+' conftest.er1 >conftest.err
20926 cat conftest.err >&5
20927 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20928 (exit $ac_status); } >/dev/null; then
20929 if test -s conftest.err; then
20930 ac_cpp_err=$ac_c_preproc_warn_flag
20931 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
20938 if test -z "$ac_cpp_err"; then
20939 ac_header_preproc=yes
20941 echo "$as_me: failed program was:" >&5
20942 sed 's/^/| /' conftest.$ac_ext >&5
20944 ac_header_preproc=no
20946 rm -f conftest.err conftest.$ac_ext
20947 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
20948 echo "${ECHO_T}$ac_header_preproc" >&6
20950 # So? What about this header?
20951 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
20953 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
20954 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
20955 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
20956 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
20957 ac_header_preproc=yes
20960 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
20961 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
20962 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
20963 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
20964 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
20965 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
20966 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
20967 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
20968 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
20969 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
20970 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
20971 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
20974 ## ------------------------------------------ ##
20975 ## Report this to the AC_PACKAGE_NAME lists. ##
20976 ## ------------------------------------------ ##
20979 sed "s/^/$as_me: WARNING: /" >&2
20982 echo "$as_me:$LINENO: checking for $ac_header" >&5
20983 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
20984 if eval "test \"\${$as_ac_Header+set}\" = set"; then
20985 echo $ECHO_N "(cached) $ECHO_C" >&6
20987 eval "$as_ac_Header=\$ac_header_preproc"
20989 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
20990 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
20993 if test `eval echo '${'$as_ac_Header'}'` = yes; then
20994 cat >>confdefs.h <<_ACEOF
20995 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
21003 for ac_func in getpagesize
21005 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
21006 echo "$as_me:$LINENO: checking for $ac_func" >&5
21007 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
21008 if eval "test \"\${$as_ac_var+set}\" = set"; then
21009 echo $ECHO_N "(cached) $ECHO_C" >&6
21011 cat >conftest.$ac_ext <<_ACEOF
21014 cat confdefs.h >>conftest.$ac_ext
21015 cat >>conftest.$ac_ext <<_ACEOF
21016 /* end confdefs.h. */
21017 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
21018 For example, HP-UX 11i <limits.h> declares gettimeofday. */
21019 #define $ac_func innocuous_$ac_func
21021 /* System header to define __stub macros and hopefully few prototypes,
21022 which can conflict with char $ac_func (); below.
21023 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
21024 <limits.h> exists even on freestanding compilers. */
21027 # include <limits.h>
21029 # include <assert.h>
21034 /* Override any gcc2 internal prototype to avoid an error. */
21039 /* We use char because int might match the return type of a gcc2
21040 builtin and then its argument prototype would still apply. */
21042 /* The GNU C library defines this for functions which it implements
21043 to always fail with ENOSYS. Some functions are actually named
21044 something starting with __ and the normal name is an alias. */
21045 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
21048 char (*f) () = $ac_func;
21057 return f != $ac_func;
21062 rm -f conftest.$ac_objext conftest$ac_exeext
21063 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
21064 (eval $ac_link) 2>conftest.er1
21066 grep -v '^ *+' conftest.er1 >conftest.err
21068 cat conftest.err >&5
21069 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21070 (exit $ac_status); } &&
21071 { ac_try='test -z "$ac_c_werror_flag"
21072 || test ! -s conftest.err'
21073 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21074 (eval $ac_try) 2>&5
21076 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21077 (exit $ac_status); }; } &&
21078 { ac_try='test -s conftest$ac_exeext'
21079 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21080 (eval $ac_try) 2>&5
21082 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21083 (exit $ac_status); }; }; then
21084 eval "$as_ac_var=yes"
21086 echo "$as_me: failed program was:" >&5
21087 sed 's/^/| /' conftest.$ac_ext >&5
21089 eval "$as_ac_var=no"
21091 rm -f conftest.err conftest.$ac_objext \
21092 conftest$ac_exeext conftest.$ac_ext
21094 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
21095 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
21096 if test `eval echo '${'$as_ac_var'}'` = yes; then
21097 cat >>confdefs.h <<_ACEOF
21098 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
21104 echo "$as_me:$LINENO: checking for working mmap" >&5
21105 echo $ECHO_N "checking for working mmap... $ECHO_C" >&6
21106 if test "${ac_cv_func_mmap_fixed_mapped+set}" = set; then
21107 echo $ECHO_N "(cached) $ECHO_C" >&6
21109 if test "$cross_compiling" = yes; then
21110 ac_cv_func_mmap_fixed_mapped=no
21112 cat >conftest.$ac_ext <<_ACEOF
21115 cat confdefs.h >>conftest.$ac_ext
21116 cat >>conftest.$ac_ext <<_ACEOF
21117 /* end confdefs.h. */
21118 $ac_includes_default
21119 /* malloc might have been renamed as rpl_malloc. */
21122 /* Thanks to Mike Haertel and Jim Avera for this test.
21123 Here is a matrix of mmap possibilities:
21124 mmap private not fixed
21125 mmap private fixed at somewhere currently unmapped
21126 mmap private fixed at somewhere already mapped
21127 mmap shared not fixed
21128 mmap shared fixed at somewhere currently unmapped
21129 mmap shared fixed at somewhere already mapped
21130 For private mappings, we should verify that changes cannot be read()
21131 back from the file, nor mmap's back from the file at a different
21132 address. (There have been systems where private was not correctly
21133 implemented like the infamous i386 svr4.0, and systems where the
21134 VM page cache was not coherent with the file system buffer cache
21135 like early versions of FreeBSD and possibly contemporary NetBSD.)
21136 For shared mappings, we should conversely verify that changes get
21137 propagated back to all the places they're supposed to be.
21139 Grep wants private fixed already mapped.
21140 The main things grep needs to know about mmap are:
21141 * does it exist and is it safe to write into the mmap'd area
21142 * how to use it (BSD variants) */
21145 #include <sys/mman.h>
21147 #if !STDC_HEADERS && !HAVE_STDLIB_H
21151 /* This mess was copied from the GNU getpagesize.h. */
21152 #if !HAVE_GETPAGESIZE
21153 /* Assume that all systems that can run configure have sys/param.h. */
21154 # if !HAVE_SYS_PARAM_H
21155 # define HAVE_SYS_PARAM_H 1
21158 # ifdef _SC_PAGESIZE
21159 # define getpagesize() sysconf(_SC_PAGESIZE)
21160 # else /* no _SC_PAGESIZE */
21161 # if HAVE_SYS_PARAM_H
21162 # include <sys/param.h>
21163 # ifdef EXEC_PAGESIZE
21164 # define getpagesize() EXEC_PAGESIZE
21165 # else /* no EXEC_PAGESIZE */
21167 # define getpagesize() NBPG * CLSIZE
21170 # endif /* no CLSIZE */
21171 # else /* no NBPG */
21173 # define getpagesize() NBPC
21174 # else /* no NBPC */
21176 # define getpagesize() PAGESIZE
21177 # endif /* PAGESIZE */
21178 # endif /* no NBPC */
21179 # endif /* no NBPG */
21180 # endif /* no EXEC_PAGESIZE */
21181 # else /* no HAVE_SYS_PARAM_H */
21182 # define getpagesize() 8192 /* punt totally */
21183 # endif /* no HAVE_SYS_PARAM_H */
21184 # endif /* no _SC_PAGESIZE */
21186 #endif /* no HAVE_GETPAGESIZE */
21191 char *data, *data2, *data3;
21195 pagesize = getpagesize ();
21197 /* First, make a file with some known garbage in it. */
21198 data = (char *) malloc (pagesize);
21201 for (i = 0; i < pagesize; ++i)
21202 *(data + i) = rand ();
21204 fd = creat ("conftest.mmap", 0600);
21207 if (write (fd, data, pagesize) != pagesize)
21211 /* Next, try to mmap the file at a fixed address which already has
21212 something else allocated at it. If we can, also make sure that
21213 we see the same garbage. */
21214 fd = open ("conftest.mmap", O_RDWR);
21217 data2 = (char *) malloc (2 * pagesize);
21220 data2 += (pagesize - ((long) data2 & (pagesize - 1))) & (pagesize - 1);
21221 if (data2 != mmap (data2, pagesize, PROT_READ | PROT_WRITE,
21222 MAP_PRIVATE | MAP_FIXED, fd, 0L))
21224 for (i = 0; i < pagesize; ++i)
21225 if (*(data + i) != *(data2 + i))
21228 /* Finally, make sure that changes to the mapped area do not
21229 percolate back to the file as seen by read(). (This is a bug on
21230 some variants of i386 svr4.0.) */
21231 for (i = 0; i < pagesize; ++i)
21232 *(data2 + i) = *(data2 + i) + 1;
21233 data3 = (char *) malloc (pagesize);
21236 if (read (fd, data3, pagesize) != pagesize)
21238 for (i = 0; i < pagesize; ++i)
21239 if (*(data + i) != *(data3 + i))
21245 rm -f conftest$ac_exeext
21246 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
21247 (eval $ac_link) 2>&5
21249 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21250 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
21251 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21252 (eval $ac_try) 2>&5
21254 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21255 (exit $ac_status); }; }; then
21256 ac_cv_func_mmap_fixed_mapped=yes
21258 echo "$as_me: program exited with status $ac_status" >&5
21259 echo "$as_me: failed program was:" >&5
21260 sed 's/^/| /' conftest.$ac_ext >&5
21262 ( exit $ac_status )
21263 ac_cv_func_mmap_fixed_mapped=no
21265 rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
21268 echo "$as_me:$LINENO: result: $ac_cv_func_mmap_fixed_mapped" >&5
21269 echo "${ECHO_T}$ac_cv_func_mmap_fixed_mapped" >&6
21270 if test $ac_cv_func_mmap_fixed_mapped = yes; then
21272 cat >>confdefs.h <<\_ACEOF
21273 #define HAVE_MMAP 1
21277 rm -f conftest.mmap
21279 echo "$as_me:$LINENO: checking for pid_t" >&5
21280 echo $ECHO_N "checking for pid_t... $ECHO_C" >&6
21281 if test "${ac_cv_type_pid_t+set}" = set; then
21282 echo $ECHO_N "(cached) $ECHO_C" >&6
21284 cat >conftest.$ac_ext <<_ACEOF
21287 cat confdefs.h >>conftest.$ac_ext
21288 cat >>conftest.$ac_ext <<_ACEOF
21289 /* end confdefs.h. */
21290 $ac_includes_default
21296 if (sizeof (pid_t))
21302 rm -f conftest.$ac_objext
21303 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
21304 (eval $ac_compile) 2>conftest.er1
21306 grep -v '^ *+' conftest.er1 >conftest.err
21308 cat conftest.err >&5
21309 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21310 (exit $ac_status); } &&
21311 { ac_try='test -z "$ac_c_werror_flag"
21312 || test ! -s conftest.err'
21313 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21314 (eval $ac_try) 2>&5
21316 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21317 (exit $ac_status); }; } &&
21318 { ac_try='test -s conftest.$ac_objext'
21319 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21320 (eval $ac_try) 2>&5
21322 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21323 (exit $ac_status); }; }; then
21324 ac_cv_type_pid_t=yes
21326 echo "$as_me: failed program was:" >&5
21327 sed 's/^/| /' conftest.$ac_ext >&5
21329 ac_cv_type_pid_t=no
21331 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
21333 echo "$as_me:$LINENO: result: $ac_cv_type_pid_t" >&5
21334 echo "${ECHO_T}$ac_cv_type_pid_t" >&6
21335 if test $ac_cv_type_pid_t = yes; then
21339 cat >>confdefs.h <<_ACEOF
21347 for ac_header in unistd.h vfork.h
21349 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
21350 if eval "test \"\${$as_ac_Header+set}\" = set"; then
21351 echo "$as_me:$LINENO: checking for $ac_header" >&5
21352 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
21353 if eval "test \"\${$as_ac_Header+set}\" = set"; then
21354 echo $ECHO_N "(cached) $ECHO_C" >&6
21356 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
21357 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
21359 # Is the header compilable?
21360 echo "$as_me:$LINENO: checking $ac_header usability" >&5
21361 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
21362 cat >conftest.$ac_ext <<_ACEOF
21365 cat confdefs.h >>conftest.$ac_ext
21366 cat >>conftest.$ac_ext <<_ACEOF
21367 /* end confdefs.h. */
21368 $ac_includes_default
21369 #include <$ac_header>
21371 rm -f conftest.$ac_objext
21372 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
21373 (eval $ac_compile) 2>conftest.er1
21375 grep -v '^ *+' conftest.er1 >conftest.err
21377 cat conftest.err >&5
21378 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21379 (exit $ac_status); } &&
21380 { ac_try='test -z "$ac_c_werror_flag"
21381 || test ! -s conftest.err'
21382 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21383 (eval $ac_try) 2>&5
21385 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21386 (exit $ac_status); }; } &&
21387 { ac_try='test -s conftest.$ac_objext'
21388 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21389 (eval $ac_try) 2>&5
21391 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21392 (exit $ac_status); }; }; then
21393 ac_header_compiler=yes
21395 echo "$as_me: failed program was:" >&5
21396 sed 's/^/| /' conftest.$ac_ext >&5
21398 ac_header_compiler=no
21400 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
21401 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
21402 echo "${ECHO_T}$ac_header_compiler" >&6
21404 # Is the header present?
21405 echo "$as_me:$LINENO: checking $ac_header presence" >&5
21406 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
21407 cat >conftest.$ac_ext <<_ACEOF
21410 cat confdefs.h >>conftest.$ac_ext
21411 cat >>conftest.$ac_ext <<_ACEOF
21412 /* end confdefs.h. */
21413 #include <$ac_header>
21415 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
21416 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
21418 grep -v '^ *+' conftest.er1 >conftest.err
21420 cat conftest.err >&5
21421 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21422 (exit $ac_status); } >/dev/null; then
21423 if test -s conftest.err; then
21424 ac_cpp_err=$ac_c_preproc_warn_flag
21425 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
21432 if test -z "$ac_cpp_err"; then
21433 ac_header_preproc=yes
21435 echo "$as_me: failed program was:" >&5
21436 sed 's/^/| /' conftest.$ac_ext >&5
21438 ac_header_preproc=no
21440 rm -f conftest.err conftest.$ac_ext
21441 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
21442 echo "${ECHO_T}$ac_header_preproc" >&6
21444 # So? What about this header?
21445 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
21447 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
21448 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
21449 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
21450 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
21451 ac_header_preproc=yes
21454 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
21455 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
21456 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
21457 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
21458 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
21459 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
21460 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
21461 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
21462 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
21463 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
21464 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
21465 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
21468 ## ------------------------------------------ ##
21469 ## Report this to the AC_PACKAGE_NAME lists. ##
21470 ## ------------------------------------------ ##
21473 sed "s/^/$as_me: WARNING: /" >&2
21476 echo "$as_me:$LINENO: checking for $ac_header" >&5
21477 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
21478 if eval "test \"\${$as_ac_Header+set}\" = set"; then
21479 echo $ECHO_N "(cached) $ECHO_C" >&6
21481 eval "$as_ac_Header=\$ac_header_preproc"
21483 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
21484 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
21487 if test `eval echo '${'$as_ac_Header'}'` = yes; then
21488 cat >>confdefs.h <<_ACEOF
21489 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
21498 for ac_func in fork vfork
21500 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
21501 echo "$as_me:$LINENO: checking for $ac_func" >&5
21502 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
21503 if eval "test \"\${$as_ac_var+set}\" = set"; then
21504 echo $ECHO_N "(cached) $ECHO_C" >&6
21506 cat >conftest.$ac_ext <<_ACEOF
21509 cat confdefs.h >>conftest.$ac_ext
21510 cat >>conftest.$ac_ext <<_ACEOF
21511 /* end confdefs.h. */
21512 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
21513 For example, HP-UX 11i <limits.h> declares gettimeofday. */
21514 #define $ac_func innocuous_$ac_func
21516 /* System header to define __stub macros and hopefully few prototypes,
21517 which can conflict with char $ac_func (); below.
21518 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
21519 <limits.h> exists even on freestanding compilers. */
21522 # include <limits.h>
21524 # include <assert.h>
21529 /* Override any gcc2 internal prototype to avoid an error. */
21534 /* We use char because int might match the return type of a gcc2
21535 builtin and then its argument prototype would still apply. */
21537 /* The GNU C library defines this for functions which it implements
21538 to always fail with ENOSYS. Some functions are actually named
21539 something starting with __ and the normal name is an alias. */
21540 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
21543 char (*f) () = $ac_func;
21552 return f != $ac_func;
21557 rm -f conftest.$ac_objext conftest$ac_exeext
21558 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
21559 (eval $ac_link) 2>conftest.er1
21561 grep -v '^ *+' conftest.er1 >conftest.err
21563 cat conftest.err >&5
21564 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21565 (exit $ac_status); } &&
21566 { ac_try='test -z "$ac_c_werror_flag"
21567 || test ! -s conftest.err'
21568 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21569 (eval $ac_try) 2>&5
21571 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21572 (exit $ac_status); }; } &&
21573 { ac_try='test -s conftest$ac_exeext'
21574 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21575 (eval $ac_try) 2>&5
21577 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21578 (exit $ac_status); }; }; then
21579 eval "$as_ac_var=yes"
21581 echo "$as_me: failed program was:" >&5
21582 sed 's/^/| /' conftest.$ac_ext >&5
21584 eval "$as_ac_var=no"
21586 rm -f conftest.err conftest.$ac_objext \
21587 conftest$ac_exeext conftest.$ac_ext
21589 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
21590 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
21591 if test `eval echo '${'$as_ac_var'}'` = yes; then
21592 cat >>confdefs.h <<_ACEOF
21593 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
21599 if test "x$ac_cv_func_fork" = xyes; then
21600 echo "$as_me:$LINENO: checking for working fork" >&5
21601 echo $ECHO_N "checking for working fork... $ECHO_C" >&6
21602 if test "${ac_cv_func_fork_works+set}" = set; then
21603 echo $ECHO_N "(cached) $ECHO_C" >&6
21605 if test "$cross_compiling" = yes; then
21606 ac_cv_func_fork_works=cross
21608 cat >conftest.$ac_ext <<_ACEOF
21609 /* By Ruediger Kuhlmann. */
21610 #include <sys/types.h>
21612 # include <unistd.h>
21614 /* Some systems only have a dummy stub for fork() */
21622 rm -f conftest$ac_exeext
21623 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
21624 (eval $ac_link) 2>&5
21626 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21627 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
21628 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21629 (eval $ac_try) 2>&5
21631 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21632 (exit $ac_status); }; }; then
21633 ac_cv_func_fork_works=yes
21635 echo "$as_me: program exited with status $ac_status" >&5
21636 echo "$as_me: failed program was:" >&5
21637 sed 's/^/| /' conftest.$ac_ext >&5
21639 ( exit $ac_status )
21640 ac_cv_func_fork_works=no
21642 rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
21645 echo "$as_me:$LINENO: result: $ac_cv_func_fork_works" >&5
21646 echo "${ECHO_T}$ac_cv_func_fork_works" >&6
21649 ac_cv_func_fork_works=$ac_cv_func_fork
21651 if test "x$ac_cv_func_fork_works" = xcross; then
21653 *-*-amigaos* | *-*-msdosdjgpp*)
21654 # Override, as these systems have only a dummy fork() stub
21655 ac_cv_func_fork_works=no
21658 ac_cv_func_fork_works=yes
21661 { echo "$as_me:$LINENO: WARNING: result $ac_cv_func_fork_works guessed because of cross compilation" >&5
21662 echo "$as_me: WARNING: result $ac_cv_func_fork_works guessed because of cross compilation" >&2;}
21664 ac_cv_func_vfork_works=$ac_cv_func_vfork
21665 if test "x$ac_cv_func_vfork" = xyes; then
21666 echo "$as_me:$LINENO: checking for working vfork" >&5
21667 echo $ECHO_N "checking for working vfork... $ECHO_C" >&6
21668 if test "${ac_cv_func_vfork_works+set}" = set; then
21669 echo $ECHO_N "(cached) $ECHO_C" >&6
21671 if test "$cross_compiling" = yes; then
21672 ac_cv_func_vfork_works=cross
21674 cat >conftest.$ac_ext <<_ACEOF
21677 cat confdefs.h >>conftest.$ac_ext
21678 cat >>conftest.$ac_ext <<_ACEOF
21679 /* end confdefs.h. */
21680 /* Thanks to Paul Eggert for this test. */
21682 #include <stdlib.h>
21683 #include <sys/types.h>
21684 #include <sys/stat.h>
21685 #include <sys/wait.h>
21687 # include <unistd.h>
21690 # include <vfork.h>
21692 /* On some sparc systems, changes by the child to local and incoming
21693 argument registers are propagated back to the parent. The compiler
21694 is told about this with #include <vfork.h>, but some compilers
21695 (e.g. gcc -O) don't grok <vfork.h>. Test for this by using a
21696 static variable whose address is put into a register that is
21697 clobbered by the vfork. */
21700 sparc_address_test (int arg)
21702 sparc_address_test (arg) int arg;
21705 static pid_t child;
21723 pid_t parent = getpid ();
21726 sparc_address_test (0);
21731 /* Here is another test for sparc vfork register problems. This
21732 test uses lots of local variables, at least as many local
21733 variables as main has allocated so far including compiler
21734 temporaries. 4 locals are enough for gcc 1.40.3 on a Solaris
21735 4.1.3 sparc, but we use 8 to be safe. A buggy compiler should
21736 reuse the register of parent for one of the local variables,
21737 since it will think that parent can't possibly be used any more
21738 in this routine. Assigning to the local variable will thus
21739 munge parent in the parent process. */
21741 p = getpid(), p1 = getpid(), p2 = getpid(), p3 = getpid(),
21742 p4 = getpid(), p5 = getpid(), p6 = getpid(), p7 = getpid();
21743 /* Convince the compiler that p..p7 are live; otherwise, it might
21744 use the same hardware register for all 8 local variables. */
21745 if (p != p1 || p != p2 || p != p3 || p != p4
21746 || p != p5 || p != p6 || p != p7)
21749 /* On some systems (e.g. IRIX 3.3), vfork doesn't separate parent
21750 from child file descriptors. If the child closes a descriptor
21751 before it execs or exits, this munges the parent's descriptor
21752 as well. Test for this by closing stdout in the child. */
21753 _exit(close(fileno(stdout)) != 0);
21758 while (wait(&status) != child)
21761 /* Was there some problem with vforking? */
21764 /* Did the child fail? (This shouldn't happen.) */
21767 /* Did the vfork/compiler bug occur? */
21768 || parent != getpid()
21770 /* Did the file descriptor bug occur? */
21771 || fstat(fileno(stdout), &st) != 0
21776 rm -f conftest$ac_exeext
21777 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
21778 (eval $ac_link) 2>&5
21780 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21781 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
21782 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21783 (eval $ac_try) 2>&5
21785 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21786 (exit $ac_status); }; }; then
21787 ac_cv_func_vfork_works=yes
21789 echo "$as_me: program exited with status $ac_status" >&5
21790 echo "$as_me: failed program was:" >&5
21791 sed 's/^/| /' conftest.$ac_ext >&5
21793 ( exit $ac_status )
21794 ac_cv_func_vfork_works=no
21796 rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
21799 echo "$as_me:$LINENO: result: $ac_cv_func_vfork_works" >&5
21800 echo "${ECHO_T}$ac_cv_func_vfork_works" >&6
21803 if test "x$ac_cv_func_fork_works" = xcross; then
21804 ac_cv_func_vfork_works=$ac_cv_func_vfork
21805 { echo "$as_me:$LINENO: WARNING: result $ac_cv_func_vfork_works guessed because of cross compilation" >&5
21806 echo "$as_me: WARNING: result $ac_cv_func_vfork_works guessed because of cross compilation" >&2;}
21809 if test "x$ac_cv_func_vfork_works" = xyes; then
21811 cat >>confdefs.h <<\_ACEOF
21812 #define HAVE_WORKING_VFORK 1
21817 cat >>confdefs.h <<\_ACEOF
21822 if test "x$ac_cv_func_fork_works" = xyes; then
21824 cat >>confdefs.h <<\_ACEOF
21825 #define HAVE_WORKING_FORK 1
21832 for ac_func in canonicalize_file_name realpath
21834 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
21835 echo "$as_me:$LINENO: checking for $ac_func" >&5
21836 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
21837 if eval "test \"\${$as_ac_var+set}\" = set"; then
21838 echo $ECHO_N "(cached) $ECHO_C" >&6
21840 cat >conftest.$ac_ext <<_ACEOF
21843 cat confdefs.h >>conftest.$ac_ext
21844 cat >>conftest.$ac_ext <<_ACEOF
21845 /* end confdefs.h. */
21846 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
21847 For example, HP-UX 11i <limits.h> declares gettimeofday. */
21848 #define $ac_func innocuous_$ac_func
21850 /* System header to define __stub macros and hopefully few prototypes,
21851 which can conflict with char $ac_func (); below.
21852 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
21853 <limits.h> exists even on freestanding compilers. */
21856 # include <limits.h>
21858 # include <assert.h>
21863 /* Override any gcc2 internal prototype to avoid an error. */
21868 /* We use char because int might match the return type of a gcc2
21869 builtin and then its argument prototype would still apply. */
21871 /* The GNU C library defines this for functions which it implements
21872 to always fail with ENOSYS. Some functions are actually named
21873 something starting with __ and the normal name is an alias. */
21874 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
21877 char (*f) () = $ac_func;
21886 return f != $ac_func;
21891 rm -f conftest.$ac_objext conftest$ac_exeext
21892 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
21893 (eval $ac_link) 2>conftest.er1
21895 grep -v '^ *+' conftest.er1 >conftest.err
21897 cat conftest.err >&5
21898 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21899 (exit $ac_status); } &&
21900 { ac_try='test -z "$ac_c_werror_flag"
21901 || test ! -s conftest.err'
21902 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21903 (eval $ac_try) 2>&5
21905 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21906 (exit $ac_status); }; } &&
21907 { ac_try='test -s conftest$ac_exeext'
21908 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21909 (eval $ac_try) 2>&5
21911 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21912 (exit $ac_status); }; }; then
21913 eval "$as_ac_var=yes"
21915 echo "$as_me: failed program was:" >&5
21916 sed 's/^/| /' conftest.$ac_ext >&5
21918 eval "$as_ac_var=no"
21920 rm -f conftest.err conftest.$ac_objext \
21921 conftest$ac_exeext conftest.$ac_ext
21923 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
21924 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
21925 if test `eval echo '${'$as_ac_var'}'` = yes; then
21926 cat >>confdefs.h <<_ACEOF
21927 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
21934 for ac_func in getrusage
21936 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
21937 echo "$as_me:$LINENO: checking for $ac_func" >&5
21938 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
21939 if eval "test \"\${$as_ac_var+set}\" = set"; then
21940 echo $ECHO_N "(cached) $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. */
21948 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
21949 For example, HP-UX 11i <limits.h> declares gettimeofday. */
21950 #define $ac_func innocuous_$ac_func
21952 /* System header to define __stub macros and hopefully few prototypes,
21953 which can conflict with char $ac_func (); below.
21954 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
21955 <limits.h> exists even on freestanding compilers. */
21958 # include <limits.h>
21960 # include <assert.h>
21965 /* Override any gcc2 internal prototype to avoid an error. */
21970 /* We use char because int might match the return type of a gcc2
21971 builtin and then its argument prototype would still apply. */
21973 /* The GNU C library defines this for functions which it implements
21974 to always fail with ENOSYS. Some functions are actually named
21975 something starting with __ and the normal name is an alias. */
21976 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
21979 char (*f) () = $ac_func;
21988 return f != $ac_func;
21993 rm -f conftest.$ac_objext conftest$ac_exeext
21994 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
21995 (eval $ac_link) 2>conftest.er1
21997 grep -v '^ *+' conftest.er1 >conftest.err
21999 cat conftest.err >&5
22000 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22001 (exit $ac_status); } &&
22002 { ac_try='test -z "$ac_c_werror_flag"
22003 || test ! -s conftest.err'
22004 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
22005 (eval $ac_try) 2>&5
22007 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22008 (exit $ac_status); }; } &&
22009 { ac_try='test -s conftest$ac_exeext'
22010 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
22011 (eval $ac_try) 2>&5
22013 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22014 (exit $ac_status); }; }; then
22015 eval "$as_ac_var=yes"
22017 echo "$as_me: failed program was:" >&5
22018 sed 's/^/| /' conftest.$ac_ext >&5
22020 eval "$as_ac_var=no"
22022 rm -f conftest.err conftest.$ac_objext \
22023 conftest$ac_exeext conftest.$ac_ext
22025 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
22026 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
22027 if test `eval echo '${'$as_ac_var'}'` = yes; then
22028 cat >>confdefs.h <<_ACEOF
22029 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
22037 for ac_func in getuid getgid
22039 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
22040 echo "$as_me:$LINENO: checking for $ac_func" >&5
22041 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
22042 if eval "test \"\${$as_ac_var+set}\" = set"; then
22043 echo $ECHO_N "(cached) $ECHO_C" >&6
22045 cat >conftest.$ac_ext <<_ACEOF
22048 cat confdefs.h >>conftest.$ac_ext
22049 cat >>conftest.$ac_ext <<_ACEOF
22050 /* end confdefs.h. */
22051 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
22052 For example, HP-UX 11i <limits.h> declares gettimeofday. */
22053 #define $ac_func innocuous_$ac_func
22055 /* System header to define __stub macros and hopefully few prototypes,
22056 which can conflict with char $ac_func (); below.
22057 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
22058 <limits.h> exists even on freestanding compilers. */
22061 # include <limits.h>
22063 # include <assert.h>
22068 /* Override any gcc2 internal prototype to avoid an error. */
22073 /* We use char because int might match the return type of a gcc2
22074 builtin and then its argument prototype would still apply. */
22076 /* The GNU C library defines this for functions which it implements
22077 to always fail with ENOSYS. Some functions are actually named
22078 something starting with __ and the normal name is an alias. */
22079 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
22082 char (*f) () = $ac_func;
22091 return f != $ac_func;
22096 rm -f conftest.$ac_objext conftest$ac_exeext
22097 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
22098 (eval $ac_link) 2>conftest.er1
22100 grep -v '^ *+' conftest.er1 >conftest.err
22102 cat conftest.err >&5
22103 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22104 (exit $ac_status); } &&
22105 { ac_try='test -z "$ac_c_werror_flag"
22106 || test ! -s conftest.err'
22107 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
22108 (eval $ac_try) 2>&5
22110 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22111 (exit $ac_status); }; } &&
22112 { ac_try='test -s conftest$ac_exeext'
22113 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
22114 (eval $ac_try) 2>&5
22116 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22117 (exit $ac_status); }; }; then
22118 eval "$as_ac_var=yes"
22120 echo "$as_me: failed program was:" >&5
22121 sed 's/^/| /' conftest.$ac_ext >&5
22123 eval "$as_ac_var=no"
22125 rm -f conftest.err conftest.$ac_objext \
22126 conftest$ac_exeext conftest.$ac_ext
22128 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
22129 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
22130 if test `eval echo '${'$as_ac_var'}'` = yes; then
22131 cat >>confdefs.h <<_ACEOF
22132 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
22139 for ac_func in poll
22141 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
22142 echo "$as_me:$LINENO: checking for $ac_func" >&5
22143 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
22144 if eval "test \"\${$as_ac_var+set}\" = set"; then
22145 echo $ECHO_N "(cached) $ECHO_C" >&6
22147 cat >conftest.$ac_ext <<_ACEOF
22150 cat confdefs.h >>conftest.$ac_ext
22151 cat >>conftest.$ac_ext <<_ACEOF
22152 /* end confdefs.h. */
22153 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
22154 For example, HP-UX 11i <limits.h> declares gettimeofday. */
22155 #define $ac_func innocuous_$ac_func
22157 /* System header to define __stub macros and hopefully few prototypes,
22158 which can conflict with char $ac_func (); below.
22159 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
22160 <limits.h> exists even on freestanding compilers. */
22163 # include <limits.h>
22165 # include <assert.h>
22170 /* Override any gcc2 internal prototype to avoid an error. */
22175 /* We use char because int might match the return type of a gcc2
22176 builtin and then its argument prototype would still apply. */
22178 /* The GNU C library defines this for functions which it implements
22179 to always fail with ENOSYS. Some functions are actually named
22180 something starting with __ and the normal name is an alias. */
22181 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
22184 char (*f) () = $ac_func;
22193 return f != $ac_func;
22198 rm -f conftest.$ac_objext conftest$ac_exeext
22199 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
22200 (eval $ac_link) 2>conftest.er1
22202 grep -v '^ *+' conftest.er1 >conftest.err
22204 cat conftest.err >&5
22205 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22206 (exit $ac_status); } &&
22207 { ac_try='test -z "$ac_c_werror_flag"
22208 || test ! -s conftest.err'
22209 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
22210 (eval $ac_try) 2>&5
22212 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22213 (exit $ac_status); }; } &&
22214 { ac_try='test -s conftest$ac_exeext'
22215 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
22216 (eval $ac_try) 2>&5
22218 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22219 (exit $ac_status); }; }; then
22220 eval "$as_ac_var=yes"
22222 echo "$as_me: failed program was:" >&5
22223 sed 's/^/| /' conftest.$ac_ext >&5
22225 eval "$as_ac_var=no"
22227 rm -f conftest.err conftest.$ac_objext \
22228 conftest$ac_exeext conftest.$ac_ext
22230 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
22231 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
22232 if test `eval echo '${'$as_ac_var'}'` = yes; then
22233 cat >>confdefs.h <<_ACEOF
22234 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
22241 for ac_func in pread64
22243 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
22244 echo "$as_me:$LINENO: checking for $ac_func" >&5
22245 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
22246 if eval "test \"\${$as_ac_var+set}\" = set"; then
22247 echo $ECHO_N "(cached) $ECHO_C" >&6
22249 cat >conftest.$ac_ext <<_ACEOF
22252 cat confdefs.h >>conftest.$ac_ext
22253 cat >>conftest.$ac_ext <<_ACEOF
22254 /* end confdefs.h. */
22255 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
22256 For example, HP-UX 11i <limits.h> declares gettimeofday. */
22257 #define $ac_func innocuous_$ac_func
22259 /* System header to define __stub macros and hopefully few prototypes,
22260 which can conflict with char $ac_func (); below.
22261 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
22262 <limits.h> exists even on freestanding compilers. */
22265 # include <limits.h>
22267 # include <assert.h>
22272 /* Override any gcc2 internal prototype to avoid an error. */
22277 /* We use char because int might match the return type of a gcc2
22278 builtin and then its argument prototype would still apply. */
22280 /* The GNU C library defines this for functions which it implements
22281 to always fail with ENOSYS. Some functions are actually named
22282 something starting with __ and the normal name is an alias. */
22283 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
22286 char (*f) () = $ac_func;
22295 return f != $ac_func;
22300 rm -f conftest.$ac_objext conftest$ac_exeext
22301 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
22302 (eval $ac_link) 2>conftest.er1
22304 grep -v '^ *+' conftest.er1 >conftest.err
22306 cat conftest.err >&5
22307 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22308 (exit $ac_status); } &&
22309 { ac_try='test -z "$ac_c_werror_flag"
22310 || test ! -s conftest.err'
22311 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
22312 (eval $ac_try) 2>&5
22314 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22315 (exit $ac_status); }; } &&
22316 { ac_try='test -s conftest$ac_exeext'
22317 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
22318 (eval $ac_try) 2>&5
22320 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22321 (exit $ac_status); }; }; then
22322 eval "$as_ac_var=yes"
22324 echo "$as_me: failed program was:" >&5
22325 sed 's/^/| /' conftest.$ac_ext >&5
22327 eval "$as_ac_var=no"
22329 rm -f conftest.err conftest.$ac_objext \
22330 conftest$ac_exeext conftest.$ac_ext
22332 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
22333 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
22334 if test `eval echo '${'$as_ac_var'}'` = yes; then
22335 cat >>confdefs.h <<_ACEOF
22336 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
22343 for ac_func in sbrk
22345 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
22346 echo "$as_me:$LINENO: checking for $ac_func" >&5
22347 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
22348 if eval "test \"\${$as_ac_var+set}\" = set"; then
22349 echo $ECHO_N "(cached) $ECHO_C" >&6
22351 cat >conftest.$ac_ext <<_ACEOF
22354 cat confdefs.h >>conftest.$ac_ext
22355 cat >>conftest.$ac_ext <<_ACEOF
22356 /* end confdefs.h. */
22357 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
22358 For example, HP-UX 11i <limits.h> declares gettimeofday. */
22359 #define $ac_func innocuous_$ac_func
22361 /* System header to define __stub macros and hopefully few prototypes,
22362 which can conflict with char $ac_func (); below.
22363 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
22364 <limits.h> exists even on freestanding compilers. */
22367 # include <limits.h>
22369 # include <assert.h>
22374 /* Override any gcc2 internal prototype to avoid an error. */
22379 /* We use char because int might match the return type of a gcc2
22380 builtin and then its argument prototype would still apply. */
22382 /* The GNU C library defines this for functions which it implements
22383 to always fail with ENOSYS. Some functions are actually named
22384 something starting with __ and the normal name is an alias. */
22385 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
22388 char (*f) () = $ac_func;
22397 return f != $ac_func;
22402 rm -f conftest.$ac_objext conftest$ac_exeext
22403 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
22404 (eval $ac_link) 2>conftest.er1
22406 grep -v '^ *+' conftest.er1 >conftest.err
22408 cat conftest.err >&5
22409 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22410 (exit $ac_status); } &&
22411 { ac_try='test -z "$ac_c_werror_flag"
22412 || test ! -s conftest.err'
22413 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
22414 (eval $ac_try) 2>&5
22416 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22417 (exit $ac_status); }; } &&
22418 { ac_try='test -s conftest$ac_exeext'
22419 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
22420 (eval $ac_try) 2>&5
22422 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22423 (exit $ac_status); }; }; then
22424 eval "$as_ac_var=yes"
22426 echo "$as_me: failed program was:" >&5
22427 sed 's/^/| /' conftest.$ac_ext >&5
22429 eval "$as_ac_var=no"
22431 rm -f conftest.err conftest.$ac_objext \
22432 conftest$ac_exeext conftest.$ac_ext
22434 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
22435 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
22436 if test `eval echo '${'$as_ac_var'}'` = yes; then
22437 cat >>confdefs.h <<_ACEOF
22438 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
22447 for ac_func in setpgid setpgrp setsid
22449 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
22450 echo "$as_me:$LINENO: checking for $ac_func" >&5
22451 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
22452 if eval "test \"\${$as_ac_var+set}\" = set"; then
22453 echo $ECHO_N "(cached) $ECHO_C" >&6
22455 cat >conftest.$ac_ext <<_ACEOF
22458 cat confdefs.h >>conftest.$ac_ext
22459 cat >>conftest.$ac_ext <<_ACEOF
22460 /* end confdefs.h. */
22461 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
22462 For example, HP-UX 11i <limits.h> declares gettimeofday. */
22463 #define $ac_func innocuous_$ac_func
22465 /* System header to define __stub macros and hopefully few prototypes,
22466 which can conflict with char $ac_func (); below.
22467 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
22468 <limits.h> exists even on freestanding compilers. */
22471 # include <limits.h>
22473 # include <assert.h>
22478 /* Override any gcc2 internal prototype to avoid an error. */
22483 /* We use char because int might match the return type of a gcc2
22484 builtin and then its argument prototype would still apply. */
22486 /* The GNU C library defines this for functions which it implements
22487 to always fail with ENOSYS. Some functions are actually named
22488 something starting with __ and the normal name is an alias. */
22489 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
22492 char (*f) () = $ac_func;
22501 return f != $ac_func;
22506 rm -f conftest.$ac_objext conftest$ac_exeext
22507 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
22508 (eval $ac_link) 2>conftest.er1
22510 grep -v '^ *+' conftest.er1 >conftest.err
22512 cat conftest.err >&5
22513 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22514 (exit $ac_status); } &&
22515 { ac_try='test -z "$ac_c_werror_flag"
22516 || test ! -s conftest.err'
22517 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
22518 (eval $ac_try) 2>&5
22520 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22521 (exit $ac_status); }; } &&
22522 { ac_try='test -s conftest$ac_exeext'
22523 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
22524 (eval $ac_try) 2>&5
22526 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22527 (exit $ac_status); }; }; then
22528 eval "$as_ac_var=yes"
22530 echo "$as_me: failed program was:" >&5
22531 sed 's/^/| /' conftest.$ac_ext >&5
22533 eval "$as_ac_var=no"
22535 rm -f conftest.err conftest.$ac_objext \
22536 conftest$ac_exeext conftest.$ac_ext
22538 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
22539 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
22540 if test `eval echo '${'$as_ac_var'}'` = yes; then
22541 cat >>confdefs.h <<_ACEOF
22542 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
22551 for ac_func in sigaction sigprocmask sigsetmask
22553 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
22554 echo "$as_me:$LINENO: checking for $ac_func" >&5
22555 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
22556 if eval "test \"\${$as_ac_var+set}\" = set"; then
22557 echo $ECHO_N "(cached) $ECHO_C" >&6
22559 cat >conftest.$ac_ext <<_ACEOF
22562 cat confdefs.h >>conftest.$ac_ext
22563 cat >>conftest.$ac_ext <<_ACEOF
22564 /* end confdefs.h. */
22565 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
22566 For example, HP-UX 11i <limits.h> declares gettimeofday. */
22567 #define $ac_func innocuous_$ac_func
22569 /* System header to define __stub macros and hopefully few prototypes,
22570 which can conflict with char $ac_func (); below.
22571 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
22572 <limits.h> exists even on freestanding compilers. */
22575 # include <limits.h>
22577 # include <assert.h>
22582 /* Override any gcc2 internal prototype to avoid an error. */
22587 /* We use char because int might match the return type of a gcc2
22588 builtin and then its argument prototype would still apply. */
22590 /* The GNU C library defines this for functions which it implements
22591 to always fail with ENOSYS. Some functions are actually named
22592 something starting with __ and the normal name is an alias. */
22593 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
22596 char (*f) () = $ac_func;
22605 return f != $ac_func;
22610 rm -f conftest.$ac_objext conftest$ac_exeext
22611 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
22612 (eval $ac_link) 2>conftest.er1
22614 grep -v '^ *+' conftest.er1 >conftest.err
22616 cat conftest.err >&5
22617 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22618 (exit $ac_status); } &&
22619 { ac_try='test -z "$ac_c_werror_flag"
22620 || test ! -s conftest.err'
22621 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
22622 (eval $ac_try) 2>&5
22624 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22625 (exit $ac_status); }; } &&
22626 { ac_try='test -s conftest$ac_exeext'
22627 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
22628 (eval $ac_try) 2>&5
22630 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22631 (exit $ac_status); }; }; then
22632 eval "$as_ac_var=yes"
22634 echo "$as_me: failed program was:" >&5
22635 sed 's/^/| /' conftest.$ac_ext >&5
22637 eval "$as_ac_var=no"
22639 rm -f conftest.err conftest.$ac_objext \
22640 conftest$ac_exeext conftest.$ac_ext
22642 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
22643 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
22644 if test `eval echo '${'$as_ac_var'}'` = yes; then
22645 cat >>confdefs.h <<_ACEOF
22646 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
22653 for ac_func in socketpair
22655 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
22656 echo "$as_me:$LINENO: checking for $ac_func" >&5
22657 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
22658 if eval "test \"\${$as_ac_var+set}\" = set"; then
22659 echo $ECHO_N "(cached) $ECHO_C" >&6
22661 cat >conftest.$ac_ext <<_ACEOF
22664 cat confdefs.h >>conftest.$ac_ext
22665 cat >>conftest.$ac_ext <<_ACEOF
22666 /* end confdefs.h. */
22667 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
22668 For example, HP-UX 11i <limits.h> declares gettimeofday. */
22669 #define $ac_func innocuous_$ac_func
22671 /* System header to define __stub macros and hopefully few prototypes,
22672 which can conflict with char $ac_func (); below.
22673 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
22674 <limits.h> exists even on freestanding compilers. */
22677 # include <limits.h>
22679 # include <assert.h>
22684 /* Override any gcc2 internal prototype to avoid an error. */
22689 /* We use char because int might match the return type of a gcc2
22690 builtin and then its argument prototype would still apply. */
22692 /* The GNU C library defines this for functions which it implements
22693 to always fail with ENOSYS. Some functions are actually named
22694 something starting with __ and the normal name is an alias. */
22695 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
22698 char (*f) () = $ac_func;
22707 return f != $ac_func;
22712 rm -f conftest.$ac_objext conftest$ac_exeext
22713 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
22714 (eval $ac_link) 2>conftest.er1
22716 grep -v '^ *+' conftest.er1 >conftest.err
22718 cat conftest.err >&5
22719 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22720 (exit $ac_status); } &&
22721 { ac_try='test -z "$ac_c_werror_flag"
22722 || test ! -s conftest.err'
22723 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
22724 (eval $ac_try) 2>&5
22726 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22727 (exit $ac_status); }; } &&
22728 { ac_try='test -s conftest$ac_exeext'
22729 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
22730 (eval $ac_try) 2>&5
22732 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22733 (exit $ac_status); }; }; then
22734 eval "$as_ac_var=yes"
22736 echo "$as_me: failed program was:" >&5
22737 sed 's/^/| /' conftest.$ac_ext >&5
22739 eval "$as_ac_var=no"
22741 rm -f conftest.err conftest.$ac_objext \
22742 conftest$ac_exeext conftest.$ac_ext
22744 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
22745 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
22746 if test `eval echo '${'$as_ac_var'}'` = yes; then
22747 cat >>confdefs.h <<_ACEOF
22748 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
22755 for ac_func in syscall
22757 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
22758 echo "$as_me:$LINENO: checking for $ac_func" >&5
22759 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
22760 if eval "test \"\${$as_ac_var+set}\" = set"; then
22761 echo $ECHO_N "(cached) $ECHO_C" >&6
22763 cat >conftest.$ac_ext <<_ACEOF
22766 cat confdefs.h >>conftest.$ac_ext
22767 cat >>conftest.$ac_ext <<_ACEOF
22768 /* end confdefs.h. */
22769 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
22770 For example, HP-UX 11i <limits.h> declares gettimeofday. */
22771 #define $ac_func innocuous_$ac_func
22773 /* System header to define __stub macros and hopefully few prototypes,
22774 which can conflict with char $ac_func (); below.
22775 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
22776 <limits.h> exists even on freestanding compilers. */
22779 # include <limits.h>
22781 # include <assert.h>
22786 /* Override any gcc2 internal prototype to avoid an error. */
22791 /* We use char because int might match the return type of a gcc2
22792 builtin and then its argument prototype would still apply. */
22794 /* The GNU C library defines this for functions which it implements
22795 to always fail with ENOSYS. Some functions are actually named
22796 something starting with __ and the normal name is an alias. */
22797 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
22800 char (*f) () = $ac_func;
22809 return f != $ac_func;
22814 rm -f conftest.$ac_objext conftest$ac_exeext
22815 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
22816 (eval $ac_link) 2>conftest.er1
22818 grep -v '^ *+' conftest.er1 >conftest.err
22820 cat conftest.err >&5
22821 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22822 (exit $ac_status); } &&
22823 { ac_try='test -z "$ac_c_werror_flag"
22824 || test ! -s conftest.err'
22825 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
22826 (eval $ac_try) 2>&5
22828 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22829 (exit $ac_status); }; } &&
22830 { ac_try='test -s conftest$ac_exeext'
22831 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
22832 (eval $ac_try) 2>&5
22834 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22835 (exit $ac_status); }; }; then
22836 eval "$as_ac_var=yes"
22838 echo "$as_me: failed program was:" >&5
22839 sed 's/^/| /' conftest.$ac_ext >&5
22841 eval "$as_ac_var=no"
22843 rm -f conftest.err conftest.$ac_objext \
22844 conftest$ac_exeext conftest.$ac_ext
22846 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
22847 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
22848 if test `eval echo '${'$as_ac_var'}'` = yes; then
22849 cat >>confdefs.h <<_ACEOF
22850 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
22857 for ac_func in ttrace
22859 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
22860 echo "$as_me:$LINENO: checking for $ac_func" >&5
22861 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
22862 if eval "test \"\${$as_ac_var+set}\" = set"; then
22863 echo $ECHO_N "(cached) $ECHO_C" >&6
22865 cat >conftest.$ac_ext <<_ACEOF
22868 cat confdefs.h >>conftest.$ac_ext
22869 cat >>conftest.$ac_ext <<_ACEOF
22870 /* end confdefs.h. */
22871 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
22872 For example, HP-UX 11i <limits.h> declares gettimeofday. */
22873 #define $ac_func innocuous_$ac_func
22875 /* System header to define __stub macros and hopefully few prototypes,
22876 which can conflict with char $ac_func (); below.
22877 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
22878 <limits.h> exists even on freestanding compilers. */
22881 # include <limits.h>
22883 # include <assert.h>
22888 /* Override any gcc2 internal prototype to avoid an error. */
22893 /* We use char because int might match the return type of a gcc2
22894 builtin and then its argument prototype would still apply. */
22896 /* The GNU C library defines this for functions which it implements
22897 to always fail with ENOSYS. Some functions are actually named
22898 something starting with __ and the normal name is an alias. */
22899 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
22902 char (*f) () = $ac_func;
22911 return f != $ac_func;
22916 rm -f conftest.$ac_objext conftest$ac_exeext
22917 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
22918 (eval $ac_link) 2>conftest.er1
22920 grep -v '^ *+' conftest.er1 >conftest.err
22922 cat conftest.err >&5
22923 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22924 (exit $ac_status); } &&
22925 { ac_try='test -z "$ac_c_werror_flag"
22926 || test ! -s conftest.err'
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); }; } &&
22932 { ac_try='test -s conftest$ac_exeext'
22933 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
22934 (eval $ac_try) 2>&5
22936 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22937 (exit $ac_status); }; }; then
22938 eval "$as_ac_var=yes"
22940 echo "$as_me: failed program was:" >&5
22941 sed 's/^/| /' conftest.$ac_ext >&5
22943 eval "$as_ac_var=no"
22945 rm -f conftest.err conftest.$ac_objext \
22946 conftest$ac_exeext conftest.$ac_ext
22948 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
22949 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
22950 if test `eval echo '${'$as_ac_var'}'` = yes; then
22951 cat >>confdefs.h <<_ACEOF
22952 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
22959 for ac_func in wborder
22961 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
22962 echo "$as_me:$LINENO: checking for $ac_func" >&5
22963 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
22964 if eval "test \"\${$as_ac_var+set}\" = set"; then
22965 echo $ECHO_N "(cached) $ECHO_C" >&6
22967 cat >conftest.$ac_ext <<_ACEOF
22970 cat confdefs.h >>conftest.$ac_ext
22971 cat >>conftest.$ac_ext <<_ACEOF
22972 /* end confdefs.h. */
22973 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
22974 For example, HP-UX 11i <limits.h> declares gettimeofday. */
22975 #define $ac_func innocuous_$ac_func
22977 /* System header to define __stub macros and hopefully few prototypes,
22978 which can conflict with char $ac_func (); below.
22979 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
22980 <limits.h> exists even on freestanding compilers. */
22983 # include <limits.h>
22985 # include <assert.h>
22990 /* Override any gcc2 internal prototype to avoid an error. */
22995 /* We use char because int might match the return type of a gcc2
22996 builtin and then its argument prototype would still apply. */
22998 /* The GNU C library defines this for functions which it implements
22999 to always fail with ENOSYS. Some functions are actually named
23000 something starting with __ and the normal name is an alias. */
23001 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
23004 char (*f) () = $ac_func;
23013 return f != $ac_func;
23018 rm -f conftest.$ac_objext conftest$ac_exeext
23019 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
23020 (eval $ac_link) 2>conftest.er1
23022 grep -v '^ *+' conftest.er1 >conftest.err
23024 cat conftest.err >&5
23025 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23026 (exit $ac_status); } &&
23027 { ac_try='test -z "$ac_c_werror_flag"
23028 || test ! -s conftest.err'
23029 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
23030 (eval $ac_try) 2>&5
23032 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23033 (exit $ac_status); }; } &&
23034 { ac_try='test -s conftest$ac_exeext'
23035 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
23036 (eval $ac_try) 2>&5
23038 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23039 (exit $ac_status); }; }; then
23040 eval "$as_ac_var=yes"
23042 echo "$as_me: failed program was:" >&5
23043 sed 's/^/| /' conftest.$ac_ext >&5
23045 eval "$as_ac_var=no"
23047 rm -f conftest.err conftest.$ac_objext \
23048 conftest$ac_exeext conftest.$ac_ext
23050 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
23051 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
23052 if test `eval echo '${'$as_ac_var'}'` = yes; then
23053 cat >>confdefs.h <<_ACEOF
23054 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
23061 # Check the return and argument types of ptrace. No canned test for
23062 # this, so roll our own.
23063 gdb_ptrace_headers='
23064 #if HAVE_SYS_TYPES_H
23065 # include <sys/types.h>
23067 #if HAVE_SYS_PTRACE_H
23068 # include <sys/ptrace.h>
23071 # include <unistd.h>
23074 # There is no point in checking if we don't have a prototype.
23075 echo "$as_me:$LINENO: checking whether ptrace is declared" >&5
23076 echo $ECHO_N "checking whether ptrace is declared... $ECHO_C" >&6
23077 if test "${ac_cv_have_decl_ptrace+set}" = set; then
23078 echo $ECHO_N "(cached) $ECHO_C" >&6
23080 cat >conftest.$ac_ext <<_ACEOF
23083 cat confdefs.h >>conftest.$ac_ext
23084 cat >>conftest.$ac_ext <<_ACEOF
23085 /* end confdefs.h. */
23086 $gdb_ptrace_headers
23092 char *p = (char *) ptrace;
23099 rm -f conftest.$ac_objext
23100 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
23101 (eval $ac_compile) 2>conftest.er1
23103 grep -v '^ *+' conftest.er1 >conftest.err
23105 cat conftest.err >&5
23106 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23107 (exit $ac_status); } &&
23108 { ac_try='test -z "$ac_c_werror_flag"
23109 || test ! -s conftest.err'
23110 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
23111 (eval $ac_try) 2>&5
23113 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23114 (exit $ac_status); }; } &&
23115 { ac_try='test -s conftest.$ac_objext'
23116 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
23117 (eval $ac_try) 2>&5
23119 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23120 (exit $ac_status); }; }; then
23121 ac_cv_have_decl_ptrace=yes
23123 echo "$as_me: failed program was:" >&5
23124 sed 's/^/| /' conftest.$ac_ext >&5
23126 ac_cv_have_decl_ptrace=no
23128 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
23130 echo "$as_me:$LINENO: result: $ac_cv_have_decl_ptrace" >&5
23131 echo "${ECHO_T}$ac_cv_have_decl_ptrace" >&6
23132 if test $ac_cv_have_decl_ptrace = yes; then
23134 cat >>confdefs.h <<_ACEOF
23135 #define HAVE_DECL_PTRACE 1
23140 cat >>confdefs.h <<_ACEOF
23141 #define HAVE_DECL_PTRACE 0
23145 : ${gdb_cv_func_ptrace_ret='int'}
23146 : ${gdb_cv_func_ptrace_args='int,int,long,long'}
23151 # Check return type.
23152 echo "$as_me:$LINENO: checking return type of ptrace" >&5
23153 echo $ECHO_N "checking return type of ptrace... $ECHO_C" >&6
23154 if test "${gdb_cv_func_ptrace_ret+set}" = set; then
23155 echo $ECHO_N "(cached) $ECHO_C" >&6
23157 cat >conftest.$ac_ext <<_ACEOF
23160 cat confdefs.h >>conftest.$ac_ext
23161 cat >>conftest.$ac_ext <<_ACEOF
23162 /* end confdefs.h. */
23163 $gdb_ptrace_headers
23167 extern int ptrace ();
23172 rm -f conftest.$ac_objext
23173 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
23174 (eval $ac_compile) 2>conftest.er1
23176 grep -v '^ *+' conftest.er1 >conftest.err
23178 cat conftest.err >&5
23179 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23180 (exit $ac_status); } &&
23181 { ac_try='test -z "$ac_c_werror_flag"
23182 || test ! -s conftest.err'
23183 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
23184 (eval $ac_try) 2>&5
23186 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23187 (exit $ac_status); }; } &&
23188 { ac_try='test -s conftest.$ac_objext'
23189 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
23190 (eval $ac_try) 2>&5
23192 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23193 (exit $ac_status); }; }; then
23194 gdb_cv_func_ptrace_ret='int'
23196 echo "$as_me: failed program was:" >&5
23197 sed 's/^/| /' conftest.$ac_ext >&5
23199 gdb_cv_func_ptrace_ret='long'
23201 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
23203 echo "$as_me:$LINENO: result: $gdb_cv_func_ptrace_ret" >&5
23204 echo "${ECHO_T}$gdb_cv_func_ptrace_ret" >&6
23206 cat >>confdefs.h <<_ACEOF
23207 #define PTRACE_TYPE_RET $gdb_cv_func_ptrace_ret
23210 # Check argument types.
23211 echo "$as_me:$LINENO: checking types of arguments for ptrace" >&5
23212 echo $ECHO_N "checking types of arguments for ptrace... $ECHO_C" >&6
23213 if test "${gdb_cv_func_ptrace_args+set}" = set; then
23214 echo $ECHO_N "(cached) $ECHO_C" >&6
23217 for gdb_arg1 in 'int' 'long'; do
23218 for gdb_arg2 in 'pid_t' 'int' 'long'; do
23219 for gdb_arg3 in 'int *' 'caddr_t' 'int' 'long' 'void *'; do
23220 for gdb_arg4 in 'int' 'long'; do
23221 cat >conftest.$ac_ext <<_ACEOF
23224 cat confdefs.h >>conftest.$ac_ext
23225 cat >>conftest.$ac_ext <<_ACEOF
23226 /* end confdefs.h. */
23227 $gdb_ptrace_headers
23232 extern $gdb_cv_func_ptrace_ret
23233 ptrace ($gdb_arg1, $gdb_arg2, $gdb_arg3, $gdb_arg4);
23239 rm -f conftest.$ac_objext
23240 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
23241 (eval $ac_compile) 2>conftest.er1
23243 grep -v '^ *+' conftest.er1 >conftest.err
23245 cat conftest.err >&5
23246 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23247 (exit $ac_status); } &&
23248 { ac_try='test -z "$ac_c_werror_flag"
23249 || test ! -s conftest.err'
23250 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
23251 (eval $ac_try) 2>&5
23253 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23254 (exit $ac_status); }; } &&
23255 { ac_try='test -s conftest.$ac_objext'
23256 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
23257 (eval $ac_try) 2>&5
23259 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23260 (exit $ac_status); }; }; then
23261 gdb_cv_func_ptrace_args="$gdb_arg1,$gdb_arg2,$gdb_arg3,$gdb_arg4";
23264 echo "$as_me: failed program was:" >&5
23265 sed 's/^/| /' conftest.$ac_ext >&5
23268 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
23269 for gdb_arg5 in 'int *' 'int' 'long'; do
23270 cat >conftest.$ac_ext <<_ACEOF
23273 cat confdefs.h >>conftest.$ac_ext
23274 cat >>conftest.$ac_ext <<_ACEOF
23275 /* end confdefs.h. */
23276 $gdb_ptrace_headers
23281 extern $gdb_cv_func_ptrace_ret
23282 ptrace ($gdb_arg1, $gdb_arg2, $gdb_arg3, $gdb_arg4, $gdb_arg5);
23288 rm -f conftest.$ac_objext
23289 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
23290 (eval $ac_compile) 2>conftest.er1
23292 grep -v '^ *+' conftest.er1 >conftest.err
23294 cat conftest.err >&5
23295 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23296 (exit $ac_status); } &&
23297 { ac_try='test -z "$ac_c_werror_flag"
23298 || test ! -s conftest.err'
23299 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
23300 (eval $ac_try) 2>&5
23302 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23303 (exit $ac_status); }; } &&
23304 { ac_try='test -s conftest.$ac_objext'
23305 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
23306 (eval $ac_try) 2>&5
23308 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23309 (exit $ac_status); }; }; then
23311 gdb_cv_func_ptrace_args="$gdb_arg1,$gdb_arg2,$gdb_arg3,$gdb_arg4,$gdb_arg5";
23314 echo "$as_me: failed program was:" >&5
23315 sed 's/^/| /' conftest.$ac_ext >&5
23318 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
23324 # Provide a safe default value.
23325 : ${gdb_cv_func_ptrace_args='int,int,long,long'}
23328 echo "$as_me:$LINENO: result: $gdb_cv_func_ptrace_args" >&5
23329 echo "${ECHO_T}$gdb_cv_func_ptrace_args" >&6
23330 ac_save_IFS=$IFS; IFS=','
23331 set dummy `echo "$gdb_cv_func_ptrace_args" | sed 's/\*/\*/g'`
23335 cat >>confdefs.h <<_ACEOF
23336 #define PTRACE_TYPE_ARG3 $3
23339 if test -n "$5"; then
23341 cat >>confdefs.h <<_ACEOF
23342 #define PTRACE_TYPE_ARG5 $5
23347 if test "$cross_compiling" = no; then
23348 echo "$as_me:$LINENO: checking whether setpgrp takes no argument" >&5
23349 echo $ECHO_N "checking whether setpgrp takes no argument... $ECHO_C" >&6
23350 if test "${ac_cv_func_setpgrp_void+set}" = set; then
23351 echo $ECHO_N "(cached) $ECHO_C" >&6
23353 if test "$cross_compiling" = yes; then
23354 { { echo "$as_me:$LINENO: error: cannot check setpgrp when cross compiling" >&5
23355 echo "$as_me: error: cannot check setpgrp when cross compiling" >&2;}
23356 { (exit 1); exit 1; }; }
23358 cat >conftest.$ac_ext <<_ACEOF
23361 cat confdefs.h >>conftest.$ac_ext
23362 cat >>conftest.$ac_ext <<_ACEOF
23363 /* end confdefs.h. */
23365 # include <unistd.h>
23371 /* If this system has a BSD-style setpgrp which takes arguments,
23372 setpgrp(1, 1) will fail with ESRCH and return -1, in that case
23373 exit successfully. */
23374 exit (setpgrp (1,1) == -1 ? 0 : 1);
23379 rm -f conftest$ac_exeext
23380 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
23381 (eval $ac_link) 2>&5
23383 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23384 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
23385 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
23386 (eval $ac_try) 2>&5
23388 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23389 (exit $ac_status); }; }; then
23390 ac_cv_func_setpgrp_void=no
23392 echo "$as_me: program exited with status $ac_status" >&5
23393 echo "$as_me: failed program was:" >&5
23394 sed 's/^/| /' conftest.$ac_ext >&5
23396 ( exit $ac_status )
23397 ac_cv_func_setpgrp_void=yes
23399 rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
23402 echo "$as_me:$LINENO: result: $ac_cv_func_setpgrp_void" >&5
23403 echo "${ECHO_T}$ac_cv_func_setpgrp_void" >&6
23404 if test $ac_cv_func_setpgrp_void = yes; then
23406 cat >>confdefs.h <<\_ACEOF
23407 #define SETPGRP_VOID 1
23413 echo "$as_me:$LINENO: checking whether setpgrp takes no argument" >&5
23414 echo $ECHO_N "checking whether setpgrp takes no argument... $ECHO_C" >&6
23415 if test "${ac_cv_func_setpgrp_void+set}" = set; then
23416 echo $ECHO_N "(cached) $ECHO_C" >&6
23418 cat >conftest.$ac_ext <<_ACEOF
23421 cat confdefs.h >>conftest.$ac_ext
23422 cat >>conftest.$ac_ext <<_ACEOF
23423 /* end confdefs.h. */
23425 #include <unistd.h>
23431 if (setpgrp(1,1) == -1)
23440 rm -f conftest.$ac_objext
23441 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
23442 (eval $ac_compile) 2>conftest.er1
23444 grep -v '^ *+' conftest.er1 >conftest.err
23446 cat conftest.err >&5
23447 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23448 (exit $ac_status); } &&
23449 { ac_try='test -z "$ac_c_werror_flag"
23450 || test ! -s conftest.err'
23451 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
23452 (eval $ac_try) 2>&5
23454 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23455 (exit $ac_status); }; } &&
23456 { ac_try='test -s conftest.$ac_objext'
23457 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
23458 (eval $ac_try) 2>&5
23460 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23461 (exit $ac_status); }; }; then
23462 ac_cv_func_setpgrp_void=no
23464 echo "$as_me: failed program was:" >&5
23465 sed 's/^/| /' conftest.$ac_ext >&5
23467 ac_cv_func_setpgrp_void=yes
23469 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
23471 echo "$as_me:$LINENO: result: $ac_cv_func_setpgrp_void" >&5
23472 echo "${ECHO_T}$ac_cv_func_setpgrp_void" >&6
23473 if test $ac_cv_func_setpgrp_void = yes; then
23474 cat >>confdefs.h <<\_ACEOF
23475 #define SETPGRP_VOID 1
23481 # Check if sigsetjmp is available. Using AC_CHECK_FUNCS won't do
23482 # since sigsetjmp might only be defined as a macro.
23483 echo "$as_me:$LINENO: checking for sigsetjmp" >&5
23484 echo $ECHO_N "checking for sigsetjmp... $ECHO_C" >&6
23485 if test "${gdb_cv_func_sigsetjmp+set}" = set; then
23486 echo $ECHO_N "(cached) $ECHO_C" >&6
23488 cat >conftest.$ac_ext <<_ACEOF
23491 cat confdefs.h >>conftest.$ac_ext
23492 cat >>conftest.$ac_ext <<_ACEOF
23493 /* end confdefs.h. */
23495 #include <setjmp.h>
23500 sigjmp_buf env; while (! sigsetjmp (env, 1)) siglongjmp (env, 1);
23505 rm -f conftest.$ac_objext
23506 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
23507 (eval $ac_compile) 2>conftest.er1
23509 grep -v '^ *+' conftest.er1 >conftest.err
23511 cat conftest.err >&5
23512 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23513 (exit $ac_status); } &&
23514 { ac_try='test -z "$ac_c_werror_flag"
23515 || test ! -s conftest.err'
23516 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
23517 (eval $ac_try) 2>&5
23519 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23520 (exit $ac_status); }; } &&
23521 { ac_try='test -s conftest.$ac_objext'
23522 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
23523 (eval $ac_try) 2>&5
23525 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23526 (exit $ac_status); }; }; then
23527 gdb_cv_func_sigsetjmp=yes
23529 echo "$as_me: failed program was:" >&5
23530 sed 's/^/| /' conftest.$ac_ext >&5
23532 gdb_cv_func_sigsetjmp=no
23534 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
23536 echo "$as_me:$LINENO: result: $gdb_cv_func_sigsetjmp" >&5
23537 echo "${ECHO_T}$gdb_cv_func_sigsetjmp" >&6
23538 if test $gdb_cv_func_sigsetjmp = yes; then
23540 cat >>confdefs.h <<\_ACEOF
23541 #define HAVE_SIGSETJMP 1
23546 # Assume we'll default to using the included libiberty regex.
23547 gdb_use_included_regex=yes
23549 # However, if the system regex is GNU regex, then default to *not*
23550 # using the included regex.
23551 echo "$as_me:$LINENO: checking for GNU regex" >&5
23552 echo $ECHO_N "checking for GNU regex... $ECHO_C" >&6
23553 if test "${gdb_cv_have_gnu_regex+set}" = set; then
23554 echo $ECHO_N "(cached) $ECHO_C" >&6
23556 cat >conftest.$ac_ext <<_ACEOF
23559 cat confdefs.h >>conftest.$ac_ext
23560 cat >>conftest.$ac_ext <<_ACEOF
23561 /* end confdefs.h. */
23562 #include <gnu-versions.h>
23566 #define REGEX_INTERFACE_VERSION 1
23567 #if _GNU_REGEX_INTERFACE_VERSION != REGEX_INTERFACE_VERSION
23568 # error "Version mismatch"
23574 rm -f conftest.$ac_objext
23575 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
23576 (eval $ac_compile) 2>conftest.er1
23578 grep -v '^ *+' conftest.er1 >conftest.err
23580 cat conftest.err >&5
23581 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23582 (exit $ac_status); } &&
23583 { ac_try='test -z "$ac_c_werror_flag"
23584 || test ! -s conftest.err'
23585 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
23586 (eval $ac_try) 2>&5
23588 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23589 (exit $ac_status); }; } &&
23590 { ac_try='test -s conftest.$ac_objext'
23591 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
23592 (eval $ac_try) 2>&5
23594 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23595 (exit $ac_status); }; }; then
23596 gdb_cv_have_gnu_regex=yes
23598 echo "$as_me: failed program was:" >&5
23599 sed 's/^/| /' conftest.$ac_ext >&5
23601 gdb_cv_have_gnu_regex=no
23603 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
23605 echo "$as_me:$LINENO: result: $gdb_cv_have_gnu_regex" >&5
23606 echo "${ECHO_T}$gdb_cv_have_gnu_regex" >&6
23607 if test $gdb_cv_have_gnu_regex = yes; then
23608 gdb_use_included_regex=no
23612 # Check whether --with-included-regex or --without-included-regex was given.
23613 if test "${with_included_regex+set}" = set; then
23614 withval="$with_included_regex"
23615 gdb_with_regex=$withval
23617 gdb_with_regex=$gdb_use_included_regex
23619 if test "$gdb_with_regex" = yes; then
23621 cat >>confdefs.h <<\_ACEOF
23622 #define USE_INCLUDED_REGEX 1
23627 # Check if <sys/proc.h> defines `struct thread' with a td_pcb member.
23628 echo "$as_me:$LINENO: checking for struct thread.td_pcb" >&5
23629 echo $ECHO_N "checking for struct thread.td_pcb... $ECHO_C" >&6
23630 if test "${ac_cv_member_struct_thread_td_pcb+set}" = set; then
23631 echo $ECHO_N "(cached) $ECHO_C" >&6
23633 cat >conftest.$ac_ext <<_ACEOF
23636 cat confdefs.h >>conftest.$ac_ext
23637 cat >>conftest.$ac_ext <<_ACEOF
23638 /* end confdefs.h. */
23639 #include <sys/param.h>
23640 #include <sys/proc.h>
23646 static struct thread ac_aggr;
23647 if (ac_aggr.td_pcb)
23653 rm -f conftest.$ac_objext
23654 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
23655 (eval $ac_compile) 2>conftest.er1
23657 grep -v '^ *+' conftest.er1 >conftest.err
23659 cat conftest.err >&5
23660 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23661 (exit $ac_status); } &&
23662 { ac_try='test -z "$ac_c_werror_flag"
23663 || test ! -s conftest.err'
23664 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
23665 (eval $ac_try) 2>&5
23667 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23668 (exit $ac_status); }; } &&
23669 { ac_try='test -s conftest.$ac_objext'
23670 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
23671 (eval $ac_try) 2>&5
23673 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23674 (exit $ac_status); }; }; then
23675 ac_cv_member_struct_thread_td_pcb=yes
23677 echo "$as_me: failed program was:" >&5
23678 sed 's/^/| /' conftest.$ac_ext >&5
23680 cat >conftest.$ac_ext <<_ACEOF
23683 cat confdefs.h >>conftest.$ac_ext
23684 cat >>conftest.$ac_ext <<_ACEOF
23685 /* end confdefs.h. */
23686 #include <sys/param.h>
23687 #include <sys/proc.h>
23693 static struct thread ac_aggr;
23694 if (sizeof ac_aggr.td_pcb)
23700 rm -f conftest.$ac_objext
23701 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
23702 (eval $ac_compile) 2>conftest.er1
23704 grep -v '^ *+' conftest.er1 >conftest.err
23706 cat conftest.err >&5
23707 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23708 (exit $ac_status); } &&
23709 { ac_try='test -z "$ac_c_werror_flag"
23710 || test ! -s conftest.err'
23711 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
23712 (eval $ac_try) 2>&5
23714 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23715 (exit $ac_status); }; } &&
23716 { ac_try='test -s conftest.$ac_objext'
23717 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
23718 (eval $ac_try) 2>&5
23720 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23721 (exit $ac_status); }; }; then
23722 ac_cv_member_struct_thread_td_pcb=yes
23724 echo "$as_me: failed program was:" >&5
23725 sed 's/^/| /' conftest.$ac_ext >&5
23727 ac_cv_member_struct_thread_td_pcb=no
23729 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
23731 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
23733 echo "$as_me:$LINENO: result: $ac_cv_member_struct_thread_td_pcb" >&5
23734 echo "${ECHO_T}$ac_cv_member_struct_thread_td_pcb" >&6
23735 if test $ac_cv_member_struct_thread_td_pcb = yes; then
23737 cat >>confdefs.h <<_ACEOF
23738 #define HAVE_STRUCT_THREAD_TD_PCB 1
23745 # See if <sys/lwp.h> defines `struct lwp`.
23746 echo "$as_me:$LINENO: checking for struct lwp" >&5
23747 echo $ECHO_N "checking for struct lwp... $ECHO_C" >&6
23748 if test "${gdb_cv_struct_lwp+set}" = set; then
23749 echo $ECHO_N "(cached) $ECHO_C" >&6
23751 cat >conftest.$ac_ext <<_ACEOF
23754 cat confdefs.h >>conftest.$ac_ext
23755 cat >>conftest.$ac_ext <<_ACEOF
23756 /* end confdefs.h. */
23757 #include <sys/param.h>
23758 #include <sys/lwp.h>
23767 rm -f conftest.$ac_objext
23768 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
23769 (eval $ac_compile) 2>conftest.er1
23771 grep -v '^ *+' conftest.er1 >conftest.err
23773 cat conftest.err >&5
23774 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23775 (exit $ac_status); } &&
23776 { ac_try='test -z "$ac_c_werror_flag"
23777 || test ! -s conftest.err'
23778 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
23779 (eval $ac_try) 2>&5
23781 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23782 (exit $ac_status); }; } &&
23783 { ac_try='test -s conftest.$ac_objext'
23784 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
23785 (eval $ac_try) 2>&5
23787 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23788 (exit $ac_status); }; }; then
23789 gdb_cv_struct_lwp=yes
23791 echo "$as_me: failed program was:" >&5
23792 sed 's/^/| /' conftest.$ac_ext >&5
23794 gdb_cv_struct_lwp=no
23796 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
23798 echo "$as_me:$LINENO: result: $gdb_cv_struct_lwp" >&5
23799 echo "${ECHO_T}$gdb_cv_struct_lwp" >&6
23800 if test $gdb_cv_struct_lwp = yes; then
23802 cat >>confdefs.h <<\_ACEOF
23803 #define HAVE_STRUCT_LWP 1
23808 # See if <machine/reg.h> degines `struct reg'.
23809 echo "$as_me:$LINENO: checking for struct reg in machine/reg.h" >&5
23810 echo $ECHO_N "checking for struct reg in machine/reg.h... $ECHO_C" >&6
23811 if test "${gdb_cv_struct_reg+set}" = set; then
23812 echo $ECHO_N "(cached) $ECHO_C" >&6
23814 cat >conftest.$ac_ext <<_ACEOF
23817 cat confdefs.h >>conftest.$ac_ext
23818 cat >>conftest.$ac_ext <<_ACEOF
23819 /* end confdefs.h. */
23820 #include <sys/types.h>
23821 #include <machine/reg.h>
23830 rm -f conftest.$ac_objext
23831 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
23832 (eval $ac_compile) 2>conftest.er1
23834 grep -v '^ *+' conftest.er1 >conftest.err
23836 cat conftest.err >&5
23837 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23838 (exit $ac_status); } &&
23839 { ac_try='test -z "$ac_c_werror_flag"
23840 || test ! -s conftest.err'
23841 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
23842 (eval $ac_try) 2>&5
23844 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23845 (exit $ac_status); }; } &&
23846 { ac_try='test -s conftest.$ac_objext'
23847 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
23848 (eval $ac_try) 2>&5
23850 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23851 (exit $ac_status); }; }; then
23852 gdb_cv_struct_reg=yes
23854 echo "$as_me: failed program was:" >&5
23855 sed 's/^/| /' conftest.$ac_ext >&5
23857 gdb_cv_struct_reg=no
23859 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
23861 echo "$as_me:$LINENO: result: $gdb_cv_struct_reg" >&5
23862 echo "${ECHO_T}$gdb_cv_struct_reg" >&6
23863 if test $gdb_cv_struct_reg = yes; then
23865 cat >>confdefs.h <<\_ACEOF
23866 #define HAVE_STRUCT_REG 1
23871 # See if <machine/reg.h> supports the %fs and %gs i386 segment registers.
23872 # Older i386 BSD's don't have the r_fs and r_gs members of `struct reg'.
23873 echo "$as_me:$LINENO: checking for struct reg.r_fs" >&5
23874 echo $ECHO_N "checking for struct reg.r_fs... $ECHO_C" >&6
23875 if test "${ac_cv_member_struct_reg_r_fs+set}" = set; then
23876 echo $ECHO_N "(cached) $ECHO_C" >&6
23878 cat >conftest.$ac_ext <<_ACEOF
23881 cat confdefs.h >>conftest.$ac_ext
23882 cat >>conftest.$ac_ext <<_ACEOF
23883 /* end confdefs.h. */
23884 #include <machine/reg.h>
23889 static struct reg ac_aggr;
23896 rm -f conftest.$ac_objext
23897 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
23898 (eval $ac_compile) 2>conftest.er1
23900 grep -v '^ *+' conftest.er1 >conftest.err
23902 cat conftest.err >&5
23903 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23904 (exit $ac_status); } &&
23905 { ac_try='test -z "$ac_c_werror_flag"
23906 || test ! -s conftest.err'
23907 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
23908 (eval $ac_try) 2>&5
23910 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23911 (exit $ac_status); }; } &&
23912 { ac_try='test -s conftest.$ac_objext'
23913 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
23914 (eval $ac_try) 2>&5
23916 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23917 (exit $ac_status); }; }; then
23918 ac_cv_member_struct_reg_r_fs=yes
23920 echo "$as_me: failed program was:" >&5
23921 sed 's/^/| /' conftest.$ac_ext >&5
23923 cat >conftest.$ac_ext <<_ACEOF
23926 cat confdefs.h >>conftest.$ac_ext
23927 cat >>conftest.$ac_ext <<_ACEOF
23928 /* end confdefs.h. */
23929 #include <machine/reg.h>
23934 static struct reg ac_aggr;
23935 if (sizeof ac_aggr.r_fs)
23941 rm -f conftest.$ac_objext
23942 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
23943 (eval $ac_compile) 2>conftest.er1
23945 grep -v '^ *+' conftest.er1 >conftest.err
23947 cat conftest.err >&5
23948 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23949 (exit $ac_status); } &&
23950 { ac_try='test -z "$ac_c_werror_flag"
23951 || test ! -s conftest.err'
23952 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
23953 (eval $ac_try) 2>&5
23955 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23956 (exit $ac_status); }; } &&
23957 { ac_try='test -s conftest.$ac_objext'
23958 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
23959 (eval $ac_try) 2>&5
23961 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23962 (exit $ac_status); }; }; then
23963 ac_cv_member_struct_reg_r_fs=yes
23965 echo "$as_me: failed program was:" >&5
23966 sed 's/^/| /' conftest.$ac_ext >&5
23968 ac_cv_member_struct_reg_r_fs=no
23970 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
23972 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
23974 echo "$as_me:$LINENO: result: $ac_cv_member_struct_reg_r_fs" >&5
23975 echo "${ECHO_T}$ac_cv_member_struct_reg_r_fs" >&6
23976 if test $ac_cv_member_struct_reg_r_fs = yes; then
23978 cat >>confdefs.h <<_ACEOF
23979 #define HAVE_STRUCT_REG_R_FS 1
23984 echo "$as_me:$LINENO: checking for struct reg.r_gs" >&5
23985 echo $ECHO_N "checking for struct reg.r_gs... $ECHO_C" >&6
23986 if test "${ac_cv_member_struct_reg_r_gs+set}" = set; then
23987 echo $ECHO_N "(cached) $ECHO_C" >&6
23989 cat >conftest.$ac_ext <<_ACEOF
23992 cat confdefs.h >>conftest.$ac_ext
23993 cat >>conftest.$ac_ext <<_ACEOF
23994 /* end confdefs.h. */
23995 #include <machine/reg.h>
24000 static struct reg ac_aggr;
24007 rm -f conftest.$ac_objext
24008 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
24009 (eval $ac_compile) 2>conftest.er1
24011 grep -v '^ *+' conftest.er1 >conftest.err
24013 cat conftest.err >&5
24014 echo "$as_me:$LINENO: \$? = $ac_status" >&5
24015 (exit $ac_status); } &&
24016 { ac_try='test -z "$ac_c_werror_flag"
24017 || test ! -s conftest.err'
24018 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
24019 (eval $ac_try) 2>&5
24021 echo "$as_me:$LINENO: \$? = $ac_status" >&5
24022 (exit $ac_status); }; } &&
24023 { ac_try='test -s conftest.$ac_objext'
24024 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
24025 (eval $ac_try) 2>&5
24027 echo "$as_me:$LINENO: \$? = $ac_status" >&5
24028 (exit $ac_status); }; }; then
24029 ac_cv_member_struct_reg_r_gs=yes
24031 echo "$as_me: failed program was:" >&5
24032 sed 's/^/| /' conftest.$ac_ext >&5
24034 cat >conftest.$ac_ext <<_ACEOF
24037 cat confdefs.h >>conftest.$ac_ext
24038 cat >>conftest.$ac_ext <<_ACEOF
24039 /* end confdefs.h. */
24040 #include <machine/reg.h>
24045 static struct reg ac_aggr;
24046 if (sizeof ac_aggr.r_gs)
24052 rm -f conftest.$ac_objext
24053 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
24054 (eval $ac_compile) 2>conftest.er1
24056 grep -v '^ *+' conftest.er1 >conftest.err
24058 cat conftest.err >&5
24059 echo "$as_me:$LINENO: \$? = $ac_status" >&5
24060 (exit $ac_status); } &&
24061 { ac_try='test -z "$ac_c_werror_flag"
24062 || test ! -s conftest.err'
24063 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
24064 (eval $ac_try) 2>&5
24066 echo "$as_me:$LINENO: \$? = $ac_status" >&5
24067 (exit $ac_status); }; } &&
24068 { ac_try='test -s conftest.$ac_objext'
24069 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
24070 (eval $ac_try) 2>&5
24072 echo "$as_me:$LINENO: \$? = $ac_status" >&5
24073 (exit $ac_status); }; }; then
24074 ac_cv_member_struct_reg_r_gs=yes
24076 echo "$as_me: failed program was:" >&5
24077 sed 's/^/| /' conftest.$ac_ext >&5
24079 ac_cv_member_struct_reg_r_gs=no
24081 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
24083 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
24085 echo "$as_me:$LINENO: result: $ac_cv_member_struct_reg_r_gs" >&5
24086 echo "${ECHO_T}$ac_cv_member_struct_reg_r_gs" >&6
24087 if test $ac_cv_member_struct_reg_r_gs = yes; then
24089 cat >>confdefs.h <<_ACEOF
24090 #define HAVE_STRUCT_REG_R_GS 1
24097 # See if <sys/ptrace.h> provides the PTRACE_GETREGS request.
24098 echo "$as_me:$LINENO: checking for PTRACE_GETREGS" >&5
24099 echo $ECHO_N "checking for PTRACE_GETREGS... $ECHO_C" >&6
24100 if test "${gdb_cv_have_ptrace_getregs+set}" = set; then
24101 echo $ECHO_N "(cached) $ECHO_C" >&6
24103 cat >conftest.$ac_ext <<_ACEOF
24106 cat confdefs.h >>conftest.$ac_ext
24107 cat >>conftest.$ac_ext <<_ACEOF
24108 /* end confdefs.h. */
24109 #include <sys/ptrace.h>
24118 rm -f conftest.$ac_objext
24119 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
24120 (eval $ac_compile) 2>conftest.er1
24122 grep -v '^ *+' conftest.er1 >conftest.err
24124 cat conftest.err >&5
24125 echo "$as_me:$LINENO: \$? = $ac_status" >&5
24126 (exit $ac_status); } &&
24127 { ac_try='test -z "$ac_c_werror_flag"
24128 || test ! -s conftest.err'
24129 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
24130 (eval $ac_try) 2>&5
24132 echo "$as_me:$LINENO: \$? = $ac_status" >&5
24133 (exit $ac_status); }; } &&
24134 { ac_try='test -s conftest.$ac_objext'
24135 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
24136 (eval $ac_try) 2>&5
24138 echo "$as_me:$LINENO: \$? = $ac_status" >&5
24139 (exit $ac_status); }; }; then
24140 gdb_cv_have_ptrace_getregs=yes
24142 echo "$as_me: failed program was:" >&5
24143 sed 's/^/| /' conftest.$ac_ext >&5
24145 gdb_cv_have_ptrace_getregs=no
24147 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
24150 echo "$as_me:$LINENO: result: $gdb_cv_have_ptrace_getregs" >&5
24151 echo "${ECHO_T}$gdb_cv_have_ptrace_getregs" >&6
24152 if test $gdb_cv_have_ptrace_getregs = yes; then
24154 cat >>confdefs.h <<\_ACEOF
24155 #define HAVE_PTRACE_GETREGS 1
24160 # See if <sys/ptrace.h> provides the PTRACE_GETFPXREGS request.
24161 echo "$as_me:$LINENO: checking for PTRACE_GETFPXREGS" >&5
24162 echo $ECHO_N "checking for PTRACE_GETFPXREGS... $ECHO_C" >&6
24163 if test "${gdb_cv_have_ptrace_getfpxregs+set}" = set; then
24164 echo $ECHO_N "(cached) $ECHO_C" >&6
24166 cat >conftest.$ac_ext <<_ACEOF
24169 cat confdefs.h >>conftest.$ac_ext
24170 cat >>conftest.$ac_ext <<_ACEOF
24171 /* end confdefs.h. */
24172 #include <sys/ptrace.h>
24181 rm -f conftest.$ac_objext
24182 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
24183 (eval $ac_compile) 2>conftest.er1
24185 grep -v '^ *+' conftest.er1 >conftest.err
24187 cat conftest.err >&5
24188 echo "$as_me:$LINENO: \$? = $ac_status" >&5
24189 (exit $ac_status); } &&
24190 { ac_try='test -z "$ac_c_werror_flag"
24191 || test ! -s conftest.err'
24192 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
24193 (eval $ac_try) 2>&5
24195 echo "$as_me:$LINENO: \$? = $ac_status" >&5
24196 (exit $ac_status); }; } &&
24197 { ac_try='test -s conftest.$ac_objext'
24198 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
24199 (eval $ac_try) 2>&5
24201 echo "$as_me:$LINENO: \$? = $ac_status" >&5
24202 (exit $ac_status); }; }; then
24203 gdb_cv_have_ptrace_getfpxregs=yes
24205 echo "$as_me: failed program was:" >&5
24206 sed 's/^/| /' conftest.$ac_ext >&5
24208 gdb_cv_have_ptrace_getfpxregs=no
24210 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
24213 echo "$as_me:$LINENO: result: $gdb_cv_have_ptrace_getfpxregs" >&5
24214 echo "${ECHO_T}$gdb_cv_have_ptrace_getfpxregs" >&6
24215 if test $gdb_cv_have_ptrace_getfpxregs = yes; then
24217 cat >>confdefs.h <<\_ACEOF
24218 #define HAVE_PTRACE_GETFPXREGS 1
24223 # See if <sys/ptrace.h> provides the PT_GETDBREGS request.
24224 echo "$as_me:$LINENO: checking for PT_GETDBREGS" >&5
24225 echo $ECHO_N "checking for PT_GETDBREGS... $ECHO_C" >&6
24226 if test "${gdb_cv_have_pt_getdbregs+set}" = set; then
24227 echo $ECHO_N "(cached) $ECHO_C" >&6
24229 cat >conftest.$ac_ext <<_ACEOF
24232 cat confdefs.h >>conftest.$ac_ext
24233 cat >>conftest.$ac_ext <<_ACEOF
24234 /* end confdefs.h. */
24235 #include <sys/types.h>
24236 #include <sys/ptrace.h>
24245 rm -f conftest.$ac_objext
24246 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
24247 (eval $ac_compile) 2>conftest.er1
24249 grep -v '^ *+' conftest.er1 >conftest.err
24251 cat conftest.err >&5
24252 echo "$as_me:$LINENO: \$? = $ac_status" >&5
24253 (exit $ac_status); } &&
24254 { ac_try='test -z "$ac_c_werror_flag"
24255 || test ! -s conftest.err'
24256 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
24257 (eval $ac_try) 2>&5
24259 echo "$as_me:$LINENO: \$? = $ac_status" >&5
24260 (exit $ac_status); }; } &&
24261 { ac_try='test -s conftest.$ac_objext'
24262 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
24263 (eval $ac_try) 2>&5
24265 echo "$as_me:$LINENO: \$? = $ac_status" >&5
24266 (exit $ac_status); }; }; then
24267 gdb_cv_have_pt_getdbregs=yes
24269 echo "$as_me: failed program was:" >&5
24270 sed 's/^/| /' conftest.$ac_ext >&5
24272 gdb_cv_have_pt_getdbregs=no
24274 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
24277 echo "$as_me:$LINENO: result: $gdb_cv_have_pt_getdbregs" >&5
24278 echo "${ECHO_T}$gdb_cv_have_pt_getdbregs" >&6
24279 if test $gdb_cv_have_pt_getdbregs = yes; then
24281 cat >>confdefs.h <<\_ACEOF
24282 #define HAVE_PT_GETDBREGS 1
24287 # See if <sys/ptrace.h> provides the PT_GETXMMREGS request.
24288 echo "$as_me:$LINENO: checking for PT_GETXMMREGS" >&5
24289 echo $ECHO_N "checking for PT_GETXMMREGS... $ECHO_C" >&6
24290 if test "${gdb_cv_have_pt_getxmmregs+set}" = set; then
24291 echo $ECHO_N "(cached) $ECHO_C" >&6
24293 cat >conftest.$ac_ext <<_ACEOF
24296 cat confdefs.h >>conftest.$ac_ext
24297 cat >>conftest.$ac_ext <<_ACEOF
24298 /* end confdefs.h. */
24299 #include <sys/types.h>
24300 #include <sys/ptrace.h>
24309 rm -f conftest.$ac_objext
24310 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
24311 (eval $ac_compile) 2>conftest.er1
24313 grep -v '^ *+' conftest.er1 >conftest.err
24315 cat conftest.err >&5
24316 echo "$as_me:$LINENO: \$? = $ac_status" >&5
24317 (exit $ac_status); } &&
24318 { ac_try='test -z "$ac_c_werror_flag"
24319 || test ! -s conftest.err'
24320 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
24321 (eval $ac_try) 2>&5
24323 echo "$as_me:$LINENO: \$? = $ac_status" >&5
24324 (exit $ac_status); }; } &&
24325 { ac_try='test -s conftest.$ac_objext'
24326 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
24327 (eval $ac_try) 2>&5
24329 echo "$as_me:$LINENO: \$? = $ac_status" >&5
24330 (exit $ac_status); }; }; then
24331 gdb_cv_have_pt_getxmmregs=yes
24333 echo "$as_me: failed program was:" >&5
24334 sed 's/^/| /' conftest.$ac_ext >&5
24336 gdb_cv_have_pt_getxmmregs=no
24338 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
24341 echo "$as_me:$LINENO: result: $gdb_cv_have_pt_getxmmregs" >&5
24342 echo "${ECHO_T}$gdb_cv_have_pt_getxmmregs" >&6
24343 if test $gdb_cv_have_pt_getxmmregs = yes; then
24345 cat >>confdefs.h <<\_ACEOF
24346 #define HAVE_PT_GETXMMREGS 1
24351 # Detect which type of /proc is in use, such as for Unixware or Solaris.
24353 if test "${target}" = "${host}"; then
24355 *-*-unixware* | *-*-sysv4.2* | *-*-sysv5* | *-*-interix* )
24357 cat >>confdefs.h <<\_ACEOF
24358 #define NEW_PROC_API 1
24362 *-*-solaris2.[6789] | *-*-solaris2.1[0-9]*)
24364 cat >>confdefs.h <<\_ACEOF
24365 #define NEW_PROC_API 1
24370 # Work around <sys/proc.h> needing _KMEMUSER problem on IRIX 5.
24372 cat >>confdefs.h <<\_ACEOF
24373 #define _KMEMUSER 1
24380 if test "$ac_cv_header_sys_procfs_h" = yes; then
24381 echo "$as_me:$LINENO: checking for pstatus_t in sys/procfs.h" >&5
24382 echo $ECHO_N "checking for pstatus_t in sys/procfs.h... $ECHO_C" >&6
24383 if test "${bfd_cv_have_sys_procfs_type_pstatus_t+set}" = set; then
24384 echo $ECHO_N "(cached) $ECHO_C" >&6
24386 cat >conftest.$ac_ext <<_ACEOF
24389 cat confdefs.h >>conftest.$ac_ext
24390 cat >>conftest.$ac_ext <<_ACEOF
24391 /* end confdefs.h. */
24394 #include <sys/procfs.h>
24403 rm -f conftest.$ac_objext
24404 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
24405 (eval $ac_compile) 2>conftest.er1
24407 grep -v '^ *+' conftest.er1 >conftest.err
24409 cat conftest.err >&5
24410 echo "$as_me:$LINENO: \$? = $ac_status" >&5
24411 (exit $ac_status); } &&
24412 { ac_try='test -z "$ac_c_werror_flag"
24413 || test ! -s conftest.err'
24414 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
24415 (eval $ac_try) 2>&5
24417 echo "$as_me:$LINENO: \$? = $ac_status" >&5
24418 (exit $ac_status); }; } &&
24419 { ac_try='test -s conftest.$ac_objext'
24420 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
24421 (eval $ac_try) 2>&5
24423 echo "$as_me:$LINENO: \$? = $ac_status" >&5
24424 (exit $ac_status); }; }; then
24425 bfd_cv_have_sys_procfs_type_pstatus_t=yes
24427 echo "$as_me: failed program was:" >&5
24428 sed 's/^/| /' conftest.$ac_ext >&5
24430 bfd_cv_have_sys_procfs_type_pstatus_t=no
24433 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
24436 if test $bfd_cv_have_sys_procfs_type_pstatus_t = yes; then
24438 cat >>confdefs.h <<\_ACEOF
24439 #define HAVE_PSTATUS_T 1
24443 echo "$as_me:$LINENO: result: $bfd_cv_have_sys_procfs_type_pstatus_t" >&5
24444 echo "${ECHO_T}$bfd_cv_have_sys_procfs_type_pstatus_t" >&6
24446 echo "$as_me:$LINENO: checking for prrun_t in sys/procfs.h" >&5
24447 echo $ECHO_N "checking for prrun_t in sys/procfs.h... $ECHO_C" >&6
24448 if test "${bfd_cv_have_sys_procfs_type_prrun_t+set}" = set; then
24449 echo $ECHO_N "(cached) $ECHO_C" >&6
24451 cat >conftest.$ac_ext <<_ACEOF
24454 cat confdefs.h >>conftest.$ac_ext
24455 cat >>conftest.$ac_ext <<_ACEOF
24456 /* end confdefs.h. */
24459 #include <sys/procfs.h>
24468 rm -f conftest.$ac_objext
24469 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
24470 (eval $ac_compile) 2>conftest.er1
24472 grep -v '^ *+' conftest.er1 >conftest.err
24474 cat conftest.err >&5
24475 echo "$as_me:$LINENO: \$? = $ac_status" >&5
24476 (exit $ac_status); } &&
24477 { ac_try='test -z "$ac_c_werror_flag"
24478 || test ! -s conftest.err'
24479 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
24480 (eval $ac_try) 2>&5
24482 echo "$as_me:$LINENO: \$? = $ac_status" >&5
24483 (exit $ac_status); }; } &&
24484 { ac_try='test -s conftest.$ac_objext'
24485 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
24486 (eval $ac_try) 2>&5
24488 echo "$as_me:$LINENO: \$? = $ac_status" >&5
24489 (exit $ac_status); }; }; then
24490 bfd_cv_have_sys_procfs_type_prrun_t=yes
24492 echo "$as_me: failed program was:" >&5
24493 sed 's/^/| /' conftest.$ac_ext >&5
24495 bfd_cv_have_sys_procfs_type_prrun_t=no
24498 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
24501 if test $bfd_cv_have_sys_procfs_type_prrun_t = yes; then
24503 cat >>confdefs.h <<\_ACEOF
24504 #define HAVE_PRRUN_T 1
24508 echo "$as_me:$LINENO: result: $bfd_cv_have_sys_procfs_type_prrun_t" >&5
24509 echo "${ECHO_T}$bfd_cv_have_sys_procfs_type_prrun_t" >&6
24511 echo "$as_me:$LINENO: checking for gregset_t in sys/procfs.h" >&5
24512 echo $ECHO_N "checking for gregset_t in sys/procfs.h... $ECHO_C" >&6
24513 if test "${bfd_cv_have_sys_procfs_type_gregset_t+set}" = set; then
24514 echo $ECHO_N "(cached) $ECHO_C" >&6
24516 cat >conftest.$ac_ext <<_ACEOF
24519 cat confdefs.h >>conftest.$ac_ext
24520 cat >>conftest.$ac_ext <<_ACEOF
24521 /* end confdefs.h. */
24524 #include <sys/procfs.h>
24533 rm -f conftest.$ac_objext
24534 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
24535 (eval $ac_compile) 2>conftest.er1
24537 grep -v '^ *+' conftest.er1 >conftest.err
24539 cat conftest.err >&5
24540 echo "$as_me:$LINENO: \$? = $ac_status" >&5
24541 (exit $ac_status); } &&
24542 { ac_try='test -z "$ac_c_werror_flag"
24543 || test ! -s conftest.err'
24544 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
24545 (eval $ac_try) 2>&5
24547 echo "$as_me:$LINENO: \$? = $ac_status" >&5
24548 (exit $ac_status); }; } &&
24549 { ac_try='test -s conftest.$ac_objext'
24550 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
24551 (eval $ac_try) 2>&5
24553 echo "$as_me:$LINENO: \$? = $ac_status" >&5
24554 (exit $ac_status); }; }; then
24555 bfd_cv_have_sys_procfs_type_gregset_t=yes
24557 echo "$as_me: failed program was:" >&5
24558 sed 's/^/| /' conftest.$ac_ext >&5
24560 bfd_cv_have_sys_procfs_type_gregset_t=no
24563 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
24566 if test $bfd_cv_have_sys_procfs_type_gregset_t = yes; then
24568 cat >>confdefs.h <<\_ACEOF
24569 #define HAVE_GREGSET_T 1
24573 echo "$as_me:$LINENO: result: $bfd_cv_have_sys_procfs_type_gregset_t" >&5
24574 echo "${ECHO_T}$bfd_cv_have_sys_procfs_type_gregset_t" >&6
24576 echo "$as_me:$LINENO: checking for fpregset_t in sys/procfs.h" >&5
24577 echo $ECHO_N "checking for fpregset_t in sys/procfs.h... $ECHO_C" >&6
24578 if test "${bfd_cv_have_sys_procfs_type_fpregset_t+set}" = set; then
24579 echo $ECHO_N "(cached) $ECHO_C" >&6
24581 cat >conftest.$ac_ext <<_ACEOF
24584 cat confdefs.h >>conftest.$ac_ext
24585 cat >>conftest.$ac_ext <<_ACEOF
24586 /* end confdefs.h. */
24589 #include <sys/procfs.h>
24598 rm -f conftest.$ac_objext
24599 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
24600 (eval $ac_compile) 2>conftest.er1
24602 grep -v '^ *+' conftest.er1 >conftest.err
24604 cat conftest.err >&5
24605 echo "$as_me:$LINENO: \$? = $ac_status" >&5
24606 (exit $ac_status); } &&
24607 { ac_try='test -z "$ac_c_werror_flag"
24608 || test ! -s conftest.err'
24609 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
24610 (eval $ac_try) 2>&5
24612 echo "$as_me:$LINENO: \$? = $ac_status" >&5
24613 (exit $ac_status); }; } &&
24614 { ac_try='test -s conftest.$ac_objext'
24615 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
24616 (eval $ac_try) 2>&5
24618 echo "$as_me:$LINENO: \$? = $ac_status" >&5
24619 (exit $ac_status); }; }; then
24620 bfd_cv_have_sys_procfs_type_fpregset_t=yes
24622 echo "$as_me: failed program was:" >&5
24623 sed 's/^/| /' conftest.$ac_ext >&5
24625 bfd_cv_have_sys_procfs_type_fpregset_t=no
24628 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
24631 if test $bfd_cv_have_sys_procfs_type_fpregset_t = yes; then
24633 cat >>confdefs.h <<\_ACEOF
24634 #define HAVE_FPREGSET_T 1
24638 echo "$as_me:$LINENO: result: $bfd_cv_have_sys_procfs_type_fpregset_t" >&5
24639 echo "${ECHO_T}$bfd_cv_have_sys_procfs_type_fpregset_t" >&6
24641 echo "$as_me:$LINENO: checking for prgregset_t in sys/procfs.h" >&5
24642 echo $ECHO_N "checking for prgregset_t in sys/procfs.h... $ECHO_C" >&6
24643 if test "${bfd_cv_have_sys_procfs_type_prgregset_t+set}" = set; then
24644 echo $ECHO_N "(cached) $ECHO_C" >&6
24646 cat >conftest.$ac_ext <<_ACEOF
24649 cat confdefs.h >>conftest.$ac_ext
24650 cat >>conftest.$ac_ext <<_ACEOF
24651 /* end confdefs.h. */
24654 #include <sys/procfs.h>
24663 rm -f conftest.$ac_objext
24664 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
24665 (eval $ac_compile) 2>conftest.er1
24667 grep -v '^ *+' conftest.er1 >conftest.err
24669 cat conftest.err >&5
24670 echo "$as_me:$LINENO: \$? = $ac_status" >&5
24671 (exit $ac_status); } &&
24672 { ac_try='test -z "$ac_c_werror_flag"
24673 || test ! -s conftest.err'
24674 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
24675 (eval $ac_try) 2>&5
24677 echo "$as_me:$LINENO: \$? = $ac_status" >&5
24678 (exit $ac_status); }; } &&
24679 { ac_try='test -s conftest.$ac_objext'
24680 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
24681 (eval $ac_try) 2>&5
24683 echo "$as_me:$LINENO: \$? = $ac_status" >&5
24684 (exit $ac_status); }; }; then
24685 bfd_cv_have_sys_procfs_type_prgregset_t=yes
24687 echo "$as_me: failed program was:" >&5
24688 sed 's/^/| /' conftest.$ac_ext >&5
24690 bfd_cv_have_sys_procfs_type_prgregset_t=no
24693 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
24696 if test $bfd_cv_have_sys_procfs_type_prgregset_t = yes; then
24698 cat >>confdefs.h <<\_ACEOF
24699 #define HAVE_PRGREGSET_T 1
24703 echo "$as_me:$LINENO: result: $bfd_cv_have_sys_procfs_type_prgregset_t" >&5
24704 echo "${ECHO_T}$bfd_cv_have_sys_procfs_type_prgregset_t" >&6
24706 echo "$as_me:$LINENO: checking for prfpregset_t in sys/procfs.h" >&5
24707 echo $ECHO_N "checking for prfpregset_t in sys/procfs.h... $ECHO_C" >&6
24708 if test "${bfd_cv_have_sys_procfs_type_prfpregset_t+set}" = set; then
24709 echo $ECHO_N "(cached) $ECHO_C" >&6
24711 cat >conftest.$ac_ext <<_ACEOF
24714 cat confdefs.h >>conftest.$ac_ext
24715 cat >>conftest.$ac_ext <<_ACEOF
24716 /* end confdefs.h. */
24719 #include <sys/procfs.h>
24728 rm -f conftest.$ac_objext
24729 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
24730 (eval $ac_compile) 2>conftest.er1
24732 grep -v '^ *+' conftest.er1 >conftest.err
24734 cat conftest.err >&5
24735 echo "$as_me:$LINENO: \$? = $ac_status" >&5
24736 (exit $ac_status); } &&
24737 { ac_try='test -z "$ac_c_werror_flag"
24738 || test ! -s conftest.err'
24739 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
24740 (eval $ac_try) 2>&5
24742 echo "$as_me:$LINENO: \$? = $ac_status" >&5
24743 (exit $ac_status); }; } &&
24744 { ac_try='test -s conftest.$ac_objext'
24745 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
24746 (eval $ac_try) 2>&5
24748 echo "$as_me:$LINENO: \$? = $ac_status" >&5
24749 (exit $ac_status); }; }; then
24750 bfd_cv_have_sys_procfs_type_prfpregset_t=yes
24752 echo "$as_me: failed program was:" >&5
24753 sed 's/^/| /' conftest.$ac_ext >&5
24755 bfd_cv_have_sys_procfs_type_prfpregset_t=no
24758 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
24761 if test $bfd_cv_have_sys_procfs_type_prfpregset_t = yes; then
24763 cat >>confdefs.h <<\_ACEOF
24764 #define HAVE_PRFPREGSET_T 1
24768 echo "$as_me:$LINENO: result: $bfd_cv_have_sys_procfs_type_prfpregset_t" >&5
24769 echo "${ECHO_T}$bfd_cv_have_sys_procfs_type_prfpregset_t" >&6
24771 echo "$as_me:$LINENO: checking for prgregset32_t in sys/procfs.h" >&5
24772 echo $ECHO_N "checking for prgregset32_t in sys/procfs.h... $ECHO_C" >&6
24773 if test "${bfd_cv_have_sys_procfs_type_prgregset32_t+set}" = set; then
24774 echo $ECHO_N "(cached) $ECHO_C" >&6
24776 cat >conftest.$ac_ext <<_ACEOF
24779 cat confdefs.h >>conftest.$ac_ext
24780 cat >>conftest.$ac_ext <<_ACEOF
24781 /* end confdefs.h. */
24784 #include <sys/procfs.h>
24793 rm -f conftest.$ac_objext
24794 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
24795 (eval $ac_compile) 2>conftest.er1
24797 grep -v '^ *+' conftest.er1 >conftest.err
24799 cat conftest.err >&5
24800 echo "$as_me:$LINENO: \$? = $ac_status" >&5
24801 (exit $ac_status); } &&
24802 { ac_try='test -z "$ac_c_werror_flag"
24803 || test ! -s conftest.err'
24804 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
24805 (eval $ac_try) 2>&5
24807 echo "$as_me:$LINENO: \$? = $ac_status" >&5
24808 (exit $ac_status); }; } &&
24809 { ac_try='test -s conftest.$ac_objext'
24810 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
24811 (eval $ac_try) 2>&5
24813 echo "$as_me:$LINENO: \$? = $ac_status" >&5
24814 (exit $ac_status); }; }; then
24815 bfd_cv_have_sys_procfs_type_prgregset32_t=yes
24817 echo "$as_me: failed program was:" >&5
24818 sed 's/^/| /' conftest.$ac_ext >&5
24820 bfd_cv_have_sys_procfs_type_prgregset32_t=no
24823 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
24826 if test $bfd_cv_have_sys_procfs_type_prgregset32_t = yes; then
24828 cat >>confdefs.h <<\_ACEOF
24829 #define HAVE_PRGREGSET32_T 1
24833 echo "$as_me:$LINENO: result: $bfd_cv_have_sys_procfs_type_prgregset32_t" >&5
24834 echo "${ECHO_T}$bfd_cv_have_sys_procfs_type_prgregset32_t" >&6
24836 echo "$as_me:$LINENO: checking for prfpregset32_t in sys/procfs.h" >&5
24837 echo $ECHO_N "checking for prfpregset32_t in sys/procfs.h... $ECHO_C" >&6
24838 if test "${bfd_cv_have_sys_procfs_type_prfpregset32_t+set}" = set; then
24839 echo $ECHO_N "(cached) $ECHO_C" >&6
24841 cat >conftest.$ac_ext <<_ACEOF
24844 cat confdefs.h >>conftest.$ac_ext
24845 cat >>conftest.$ac_ext <<_ACEOF
24846 /* end confdefs.h. */
24849 #include <sys/procfs.h>
24853 prfpregset32_t avar
24858 rm -f conftest.$ac_objext
24859 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
24860 (eval $ac_compile) 2>conftest.er1
24862 grep -v '^ *+' conftest.er1 >conftest.err
24864 cat conftest.err >&5
24865 echo "$as_me:$LINENO: \$? = $ac_status" >&5
24866 (exit $ac_status); } &&
24867 { ac_try='test -z "$ac_c_werror_flag"
24868 || test ! -s conftest.err'
24869 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
24870 (eval $ac_try) 2>&5
24872 echo "$as_me:$LINENO: \$? = $ac_status" >&5
24873 (exit $ac_status); }; } &&
24874 { ac_try='test -s conftest.$ac_objext'
24875 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
24876 (eval $ac_try) 2>&5
24878 echo "$as_me:$LINENO: \$? = $ac_status" >&5
24879 (exit $ac_status); }; }; then
24880 bfd_cv_have_sys_procfs_type_prfpregset32_t=yes
24882 echo "$as_me: failed program was:" >&5
24883 sed 's/^/| /' conftest.$ac_ext >&5
24885 bfd_cv_have_sys_procfs_type_prfpregset32_t=no
24888 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
24891 if test $bfd_cv_have_sys_procfs_type_prfpregset32_t = yes; then
24893 cat >>confdefs.h <<\_ACEOF
24894 #define HAVE_PRFPREGSET32_T 1
24898 echo "$as_me:$LINENO: result: $bfd_cv_have_sys_procfs_type_prfpregset32_t" >&5
24899 echo "${ECHO_T}$bfd_cv_have_sys_procfs_type_prfpregset32_t" >&6
24901 echo "$as_me:$LINENO: checking for lwpid_t in sys/procfs.h" >&5
24902 echo $ECHO_N "checking for lwpid_t in sys/procfs.h... $ECHO_C" >&6
24903 if test "${bfd_cv_have_sys_procfs_type_lwpid_t+set}" = set; then
24904 echo $ECHO_N "(cached) $ECHO_C" >&6
24906 cat >conftest.$ac_ext <<_ACEOF
24909 cat confdefs.h >>conftest.$ac_ext
24910 cat >>conftest.$ac_ext <<_ACEOF
24911 /* end confdefs.h. */
24914 #include <sys/procfs.h>
24923 rm -f conftest.$ac_objext
24924 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
24925 (eval $ac_compile) 2>conftest.er1
24927 grep -v '^ *+' conftest.er1 >conftest.err
24929 cat conftest.err >&5
24930 echo "$as_me:$LINENO: \$? = $ac_status" >&5
24931 (exit $ac_status); } &&
24932 { ac_try='test -z "$ac_c_werror_flag"
24933 || test ! -s conftest.err'
24934 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
24935 (eval $ac_try) 2>&5
24937 echo "$as_me:$LINENO: \$? = $ac_status" >&5
24938 (exit $ac_status); }; } &&
24939 { ac_try='test -s conftest.$ac_objext'
24940 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
24941 (eval $ac_try) 2>&5
24943 echo "$as_me:$LINENO: \$? = $ac_status" >&5
24944 (exit $ac_status); }; }; then
24945 bfd_cv_have_sys_procfs_type_lwpid_t=yes
24947 echo "$as_me: failed program was:" >&5
24948 sed 's/^/| /' conftest.$ac_ext >&5
24950 bfd_cv_have_sys_procfs_type_lwpid_t=no
24953 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
24956 if test $bfd_cv_have_sys_procfs_type_lwpid_t = yes; then
24958 cat >>confdefs.h <<\_ACEOF
24959 #define HAVE_LWPID_T 1
24963 echo "$as_me:$LINENO: result: $bfd_cv_have_sys_procfs_type_lwpid_t" >&5
24964 echo "${ECHO_T}$bfd_cv_have_sys_procfs_type_lwpid_t" >&6
24966 echo "$as_me:$LINENO: checking for psaddr_t in sys/procfs.h" >&5
24967 echo $ECHO_N "checking for psaddr_t in sys/procfs.h... $ECHO_C" >&6
24968 if test "${bfd_cv_have_sys_procfs_type_psaddr_t+set}" = set; then
24969 echo $ECHO_N "(cached) $ECHO_C" >&6
24971 cat >conftest.$ac_ext <<_ACEOF
24974 cat confdefs.h >>conftest.$ac_ext
24975 cat >>conftest.$ac_ext <<_ACEOF
24976 /* end confdefs.h. */
24979 #include <sys/procfs.h>
24988 rm -f conftest.$ac_objext
24989 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
24990 (eval $ac_compile) 2>conftest.er1
24992 grep -v '^ *+' conftest.er1 >conftest.err
24994 cat conftest.err >&5
24995 echo "$as_me:$LINENO: \$? = $ac_status" >&5
24996 (exit $ac_status); } &&
24997 { ac_try='test -z "$ac_c_werror_flag"
24998 || test ! -s conftest.err'
24999 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
25000 (eval $ac_try) 2>&5
25002 echo "$as_me:$LINENO: \$? = $ac_status" >&5
25003 (exit $ac_status); }; } &&
25004 { ac_try='test -s conftest.$ac_objext'
25005 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
25006 (eval $ac_try) 2>&5
25008 echo "$as_me:$LINENO: \$? = $ac_status" >&5
25009 (exit $ac_status); }; }; then
25010 bfd_cv_have_sys_procfs_type_psaddr_t=yes
25012 echo "$as_me: failed program was:" >&5
25013 sed 's/^/| /' conftest.$ac_ext >&5
25015 bfd_cv_have_sys_procfs_type_psaddr_t=no
25018 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
25021 if test $bfd_cv_have_sys_procfs_type_psaddr_t = yes; then
25023 cat >>confdefs.h <<\_ACEOF
25024 #define HAVE_PSADDR_T 1
25028 echo "$as_me:$LINENO: result: $bfd_cv_have_sys_procfs_type_psaddr_t" >&5
25029 echo "${ECHO_T}$bfd_cv_have_sys_procfs_type_psaddr_t" >&6
25031 echo "$as_me:$LINENO: checking for prsysent_t in sys/procfs.h" >&5
25032 echo $ECHO_N "checking for prsysent_t in sys/procfs.h... $ECHO_C" >&6
25033 if test "${bfd_cv_have_sys_procfs_type_prsysent_t+set}" = set; then
25034 echo $ECHO_N "(cached) $ECHO_C" >&6
25036 cat >conftest.$ac_ext <<_ACEOF
25039 cat confdefs.h >>conftest.$ac_ext
25040 cat >>conftest.$ac_ext <<_ACEOF
25041 /* end confdefs.h. */
25044 #include <sys/procfs.h>
25053 rm -f conftest.$ac_objext
25054 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
25055 (eval $ac_compile) 2>conftest.er1
25057 grep -v '^ *+' conftest.er1 >conftest.err
25059 cat conftest.err >&5
25060 echo "$as_me:$LINENO: \$? = $ac_status" >&5
25061 (exit $ac_status); } &&
25062 { ac_try='test -z "$ac_c_werror_flag"
25063 || test ! -s conftest.err'
25064 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
25065 (eval $ac_try) 2>&5
25067 echo "$as_me:$LINENO: \$? = $ac_status" >&5
25068 (exit $ac_status); }; } &&
25069 { ac_try='test -s conftest.$ac_objext'
25070 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
25071 (eval $ac_try) 2>&5
25073 echo "$as_me:$LINENO: \$? = $ac_status" >&5
25074 (exit $ac_status); }; }; then
25075 bfd_cv_have_sys_procfs_type_prsysent_t=yes
25077 echo "$as_me: failed program was:" >&5
25078 sed 's/^/| /' conftest.$ac_ext >&5
25080 bfd_cv_have_sys_procfs_type_prsysent_t=no
25083 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
25086 if test $bfd_cv_have_sys_procfs_type_prsysent_t = yes; then
25088 cat >>confdefs.h <<\_ACEOF
25089 #define HAVE_PRSYSENT_T 1
25093 echo "$as_me:$LINENO: result: $bfd_cv_have_sys_procfs_type_prsysent_t" >&5
25094 echo "${ECHO_T}$bfd_cv_have_sys_procfs_type_prsysent_t" >&6
25096 echo "$as_me:$LINENO: checking for pr_sigset_t in sys/procfs.h" >&5
25097 echo $ECHO_N "checking for pr_sigset_t in sys/procfs.h... $ECHO_C" >&6
25098 if test "${bfd_cv_have_sys_procfs_type_pr_sigset_t+set}" = set; then
25099 echo $ECHO_N "(cached) $ECHO_C" >&6
25101 cat >conftest.$ac_ext <<_ACEOF
25104 cat confdefs.h >>conftest.$ac_ext
25105 cat >>conftest.$ac_ext <<_ACEOF
25106 /* end confdefs.h. */
25109 #include <sys/procfs.h>
25118 rm -f conftest.$ac_objext
25119 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
25120 (eval $ac_compile) 2>conftest.er1
25122 grep -v '^ *+' conftest.er1 >conftest.err
25124 cat conftest.err >&5
25125 echo "$as_me:$LINENO: \$? = $ac_status" >&5
25126 (exit $ac_status); } &&
25127 { ac_try='test -z "$ac_c_werror_flag"
25128 || test ! -s conftest.err'
25129 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
25130 (eval $ac_try) 2>&5
25132 echo "$as_me:$LINENO: \$? = $ac_status" >&5
25133 (exit $ac_status); }; } &&
25134 { ac_try='test -s conftest.$ac_objext'
25135 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
25136 (eval $ac_try) 2>&5
25138 echo "$as_me:$LINENO: \$? = $ac_status" >&5
25139 (exit $ac_status); }; }; then
25140 bfd_cv_have_sys_procfs_type_pr_sigset_t=yes
25142 echo "$as_me: failed program was:" >&5
25143 sed 's/^/| /' conftest.$ac_ext >&5
25145 bfd_cv_have_sys_procfs_type_pr_sigset_t=no
25148 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
25151 if test $bfd_cv_have_sys_procfs_type_pr_sigset_t = yes; then
25153 cat >>confdefs.h <<\_ACEOF
25154 #define HAVE_PR_SIGSET_T 1
25158 echo "$as_me:$LINENO: result: $bfd_cv_have_sys_procfs_type_pr_sigset_t" >&5
25159 echo "${ECHO_T}$bfd_cv_have_sys_procfs_type_pr_sigset_t" >&6
25161 echo "$as_me:$LINENO: checking for pr_sigaction64_t in sys/procfs.h" >&5
25162 echo $ECHO_N "checking for pr_sigaction64_t in sys/procfs.h... $ECHO_C" >&6
25163 if test "${bfd_cv_have_sys_procfs_type_pr_sigaction64_t+set}" = set; then
25164 echo $ECHO_N "(cached) $ECHO_C" >&6
25166 cat >conftest.$ac_ext <<_ACEOF
25169 cat confdefs.h >>conftest.$ac_ext
25170 cat >>conftest.$ac_ext <<_ACEOF
25171 /* end confdefs.h. */
25174 #include <sys/procfs.h>
25178 pr_sigaction64_t avar
25183 rm -f conftest.$ac_objext
25184 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
25185 (eval $ac_compile) 2>conftest.er1
25187 grep -v '^ *+' conftest.er1 >conftest.err
25189 cat conftest.err >&5
25190 echo "$as_me:$LINENO: \$? = $ac_status" >&5
25191 (exit $ac_status); } &&
25192 { ac_try='test -z "$ac_c_werror_flag"
25193 || test ! -s conftest.err'
25194 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
25195 (eval $ac_try) 2>&5
25197 echo "$as_me:$LINENO: \$? = $ac_status" >&5
25198 (exit $ac_status); }; } &&
25199 { ac_try='test -s conftest.$ac_objext'
25200 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
25201 (eval $ac_try) 2>&5
25203 echo "$as_me:$LINENO: \$? = $ac_status" >&5
25204 (exit $ac_status); }; }; then
25205 bfd_cv_have_sys_procfs_type_pr_sigaction64_t=yes
25207 echo "$as_me: failed program was:" >&5
25208 sed 's/^/| /' conftest.$ac_ext >&5
25210 bfd_cv_have_sys_procfs_type_pr_sigaction64_t=no
25213 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
25216 if test $bfd_cv_have_sys_procfs_type_pr_sigaction64_t = yes; then
25218 cat >>confdefs.h <<\_ACEOF
25219 #define HAVE_PR_SIGACTION64_T 1
25223 echo "$as_me:$LINENO: result: $bfd_cv_have_sys_procfs_type_pr_sigaction64_t" >&5
25224 echo "${ECHO_T}$bfd_cv_have_sys_procfs_type_pr_sigaction64_t" >&6
25226 echo "$as_me:$LINENO: checking for pr_siginfo64_t in sys/procfs.h" >&5
25227 echo $ECHO_N "checking for pr_siginfo64_t in sys/procfs.h... $ECHO_C" >&6
25228 if test "${bfd_cv_have_sys_procfs_type_pr_siginfo64_t+set}" = set; then
25229 echo $ECHO_N "(cached) $ECHO_C" >&6
25231 cat >conftest.$ac_ext <<_ACEOF
25234 cat confdefs.h >>conftest.$ac_ext
25235 cat >>conftest.$ac_ext <<_ACEOF
25236 /* end confdefs.h. */
25239 #include <sys/procfs.h>
25243 pr_siginfo64_t avar
25248 rm -f conftest.$ac_objext
25249 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
25250 (eval $ac_compile) 2>conftest.er1
25252 grep -v '^ *+' conftest.er1 >conftest.err
25254 cat conftest.err >&5
25255 echo "$as_me:$LINENO: \$? = $ac_status" >&5
25256 (exit $ac_status); } &&
25257 { ac_try='test -z "$ac_c_werror_flag"
25258 || test ! -s conftest.err'
25259 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
25260 (eval $ac_try) 2>&5
25262 echo "$as_me:$LINENO: \$? = $ac_status" >&5
25263 (exit $ac_status); }; } &&
25264 { ac_try='test -s conftest.$ac_objext'
25265 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
25266 (eval $ac_try) 2>&5
25268 echo "$as_me:$LINENO: \$? = $ac_status" >&5
25269 (exit $ac_status); }; }; then
25270 bfd_cv_have_sys_procfs_type_pr_siginfo64_t=yes
25272 echo "$as_me: failed program was:" >&5
25273 sed 's/^/| /' conftest.$ac_ext >&5
25275 bfd_cv_have_sys_procfs_type_pr_siginfo64_t=no
25278 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
25281 if test $bfd_cv_have_sys_procfs_type_pr_siginfo64_t = yes; then
25283 cat >>confdefs.h <<\_ACEOF
25284 #define HAVE_PR_SIGINFO64_T 1
25288 echo "$as_me:$LINENO: result: $bfd_cv_have_sys_procfs_type_pr_siginfo64_t" >&5
25289 echo "${ECHO_T}$bfd_cv_have_sys_procfs_type_pr_siginfo64_t" >&6
25295 if test $bfd_cv_have_sys_procfs_type_prfpregset_t = yes; then
25296 echo "$as_me:$LINENO: checking whether prfpregset_t type is broken" >&5
25297 echo $ECHO_N "checking whether prfpregset_t type is broken... $ECHO_C" >&6
25298 if test "${gdb_cv_prfpregset_t_broken+set}" = set; then
25299 echo $ECHO_N "(cached) $ECHO_C" >&6
25301 if test "$cross_compiling" = yes; then
25302 gdb_cv_prfpregset_t_broken=yes
25304 cat >conftest.$ac_ext <<_ACEOF
25307 cat confdefs.h >>conftest.$ac_ext
25308 cat >>conftest.$ac_ext <<_ACEOF
25309 /* end confdefs.h. */
25310 #include <sys/procfs.h>
25313 if (sizeof (prfpregset_t) == sizeof (void *))
25318 rm -f conftest$ac_exeext
25319 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
25320 (eval $ac_link) 2>&5
25322 echo "$as_me:$LINENO: \$? = $ac_status" >&5
25323 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
25324 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
25325 (eval $ac_try) 2>&5
25327 echo "$as_me:$LINENO: \$? = $ac_status" >&5
25328 (exit $ac_status); }; }; then
25329 gdb_cv_prfpregset_t_broken=no
25331 echo "$as_me: program exited with status $ac_status" >&5
25332 echo "$as_me: failed program was:" >&5
25333 sed 's/^/| /' conftest.$ac_ext >&5
25335 ( exit $ac_status )
25336 gdb_cv_prfpregset_t_broken=yes
25338 rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
25342 echo "$as_me:$LINENO: result: $gdb_cv_prfpregset_t_broken" >&5
25343 echo "${ECHO_T}$gdb_cv_prfpregset_t_broken" >&6
25344 if test $gdb_cv_prfpregset_t_broken = yes; then
25346 cat >>confdefs.h <<\_ACEOF
25347 #define PRFPREGSET_T_BROKEN 1
25354 echo "$as_me:$LINENO: checking for PIOCSET ioctl entry in sys/procfs.h" >&5
25355 echo $ECHO_N "checking for PIOCSET ioctl entry in sys/procfs.h... $ECHO_C" >&6
25356 if test "${gdb_cv_have_procfs_piocset+set}" = set; then
25357 echo $ECHO_N "(cached) $ECHO_C" >&6
25359 cat >conftest.$ac_ext <<_ACEOF
25362 cat confdefs.h >>conftest.$ac_ext
25363 cat >>conftest.$ac_ext <<_ACEOF
25364 /* end confdefs.h. */
25365 #include <unistd.h>
25366 #include <sys/types.h>
25367 #include <sys/procfs.h>
25374 dummy = ioctl(0, PIOCSET, &dummy);
25380 rm -f conftest.$ac_objext
25381 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
25382 (eval $ac_compile) 2>conftest.er1
25384 grep -v '^ *+' conftest.er1 >conftest.err
25386 cat conftest.err >&5
25387 echo "$as_me:$LINENO: \$? = $ac_status" >&5
25388 (exit $ac_status); } &&
25389 { ac_try='test -z "$ac_c_werror_flag"
25390 || test ! -s conftest.err'
25391 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
25392 (eval $ac_try) 2>&5
25394 echo "$as_me:$LINENO: \$? = $ac_status" >&5
25395 (exit $ac_status); }; } &&
25396 { ac_try='test -s conftest.$ac_objext'
25397 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
25398 (eval $ac_try) 2>&5
25400 echo "$as_me:$LINENO: \$? = $ac_status" >&5
25401 (exit $ac_status); }; }; then
25402 gdb_cv_have_procfs_piocset=yes
25404 echo "$as_me: failed program was:" >&5
25405 sed 's/^/| /' conftest.$ac_ext >&5
25407 gdb_cv_have_procfs_piocset=no
25409 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
25412 echo "$as_me:$LINENO: result: $gdb_cv_have_procfs_piocset" >&5
25413 echo "${ECHO_T}$gdb_cv_have_procfs_piocset" >&6
25414 if test $gdb_cv_have_procfs_piocset = yes; then
25416 cat >>confdefs.h <<\_ACEOF
25417 #define HAVE_PROCFS_PIOCSET 1
25423 if test ${host} = ${target} ; then
25425 echo "$as_me:$LINENO: checking for member l_addr in struct link_map" >&5
25426 echo $ECHO_N "checking for member l_addr in struct link_map... $ECHO_C" >&6
25427 if test "${gdb_cv_have_struct_link_map_with_l_members+set}" = set; then
25428 echo $ECHO_N "(cached) $ECHO_C" >&6
25430 cat >conftest.$ac_ext <<_ACEOF
25433 cat confdefs.h >>conftest.$ac_ext
25434 cat >>conftest.$ac_ext <<_ACEOF
25435 /* end confdefs.h. */
25440 struct link_map lm; (void) lm.l_addr;
25445 rm -f conftest.$ac_objext
25446 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
25447 (eval $ac_compile) 2>conftest.er1
25449 grep -v '^ *+' conftest.er1 >conftest.err
25451 cat conftest.err >&5
25452 echo "$as_me:$LINENO: \$? = $ac_status" >&5
25453 (exit $ac_status); } &&
25454 { ac_try='test -z "$ac_c_werror_flag"
25455 || test ! -s conftest.err'
25456 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
25457 (eval $ac_try) 2>&5
25459 echo "$as_me:$LINENO: \$? = $ac_status" >&5
25460 (exit $ac_status); }; } &&
25461 { ac_try='test -s conftest.$ac_objext'
25462 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
25463 (eval $ac_try) 2>&5
25465 echo "$as_me:$LINENO: \$? = $ac_status" >&5
25466 (exit $ac_status); }; }; then
25467 gdb_cv_have_struct_link_map_with_l_members=yes
25469 echo "$as_me: failed program was:" >&5
25470 sed 's/^/| /' conftest.$ac_ext >&5
25472 gdb_cv_have_struct_link_map_with_l_members=no
25474 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
25477 echo "$as_me:$LINENO: result: $gdb_cv_have_struct_link_map_with_l_members" >&5
25478 echo "${ECHO_T}$gdb_cv_have_struct_link_map_with_l_members" >&6
25479 if test $gdb_cv_have_struct_link_map_with_l_members = yes; then
25481 cat >>confdefs.h <<\_ACEOF
25482 #define HAVE_STRUCT_LINK_MAP_WITH_L_MEMBERS 1
25488 echo "$as_me:$LINENO: checking for member lm_addr in struct link_map" >&5
25489 echo $ECHO_N "checking for member lm_addr in struct link_map... $ECHO_C" >&6
25490 if test "${gdb_cv_have_struct_link_map_with_lm_members+set}" = set; then
25491 echo $ECHO_N "(cached) $ECHO_C" >&6
25493 cat >conftest.$ac_ext <<_ACEOF
25496 cat confdefs.h >>conftest.$ac_ext
25497 cat >>conftest.$ac_ext <<_ACEOF
25498 /* end confdefs.h. */
25499 #include <sys/types.h>
25504 struct link_map lm; (void) lm.lm_addr;
25509 rm -f conftest.$ac_objext
25510 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
25511 (eval $ac_compile) 2>conftest.er1
25513 grep -v '^ *+' conftest.er1 >conftest.err
25515 cat conftest.err >&5
25516 echo "$as_me:$LINENO: \$? = $ac_status" >&5
25517 (exit $ac_status); } &&
25518 { ac_try='test -z "$ac_c_werror_flag"
25519 || test ! -s conftest.err'
25520 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
25521 (eval $ac_try) 2>&5
25523 echo "$as_me:$LINENO: \$? = $ac_status" >&5
25524 (exit $ac_status); }; } &&
25525 { ac_try='test -s conftest.$ac_objext'
25526 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
25527 (eval $ac_try) 2>&5
25529 echo "$as_me:$LINENO: \$? = $ac_status" >&5
25530 (exit $ac_status); }; }; then
25531 gdb_cv_have_struct_link_map_with_lm_members=yes
25533 echo "$as_me: failed program was:" >&5
25534 sed 's/^/| /' conftest.$ac_ext >&5
25536 gdb_cv_have_struct_link_map_with_lm_members=no
25538 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
25541 echo "$as_me:$LINENO: result: $gdb_cv_have_struct_link_map_with_lm_members" >&5
25542 echo "${ECHO_T}$gdb_cv_have_struct_link_map_with_lm_members" >&6
25543 if test $gdb_cv_have_struct_link_map_with_lm_members = yes; then
25545 cat >>confdefs.h <<\_ACEOF
25546 #define HAVE_STRUCT_LINK_MAP_WITH_LM_MEMBERS 1
25552 echo "$as_me:$LINENO: checking for member som_addr in struct so_map" >&5
25553 echo $ECHO_N "checking for member som_addr in struct so_map... $ECHO_C" >&6
25554 if test "${gdb_cv_have_struct_so_map_with_som_members+set}" = set; then
25555 echo $ECHO_N "(cached) $ECHO_C" >&6
25557 cat >conftest.$ac_ext <<_ACEOF
25560 cat confdefs.h >>conftest.$ac_ext
25561 cat >>conftest.$ac_ext <<_ACEOF
25562 /* end confdefs.h. */
25563 #include <sys/types.h>
25564 #ifdef HAVE_NLIST_H
25571 struct so_map lm; (void) lm.som_addr;
25576 rm -f conftest.$ac_objext
25577 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
25578 (eval $ac_compile) 2>conftest.er1
25580 grep -v '^ *+' conftest.er1 >conftest.err
25582 cat conftest.err >&5
25583 echo "$as_me:$LINENO: \$? = $ac_status" >&5
25584 (exit $ac_status); } &&
25585 { ac_try='test -z "$ac_c_werror_flag"
25586 || test ! -s conftest.err'
25587 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
25588 (eval $ac_try) 2>&5
25590 echo "$as_me:$LINENO: \$? = $ac_status" >&5
25591 (exit $ac_status); }; } &&
25592 { ac_try='test -s conftest.$ac_objext'
25593 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
25594 (eval $ac_try) 2>&5
25596 echo "$as_me:$LINENO: \$? = $ac_status" >&5
25597 (exit $ac_status); }; }; then
25598 gdb_cv_have_struct_so_map_with_som_members=yes
25600 echo "$as_me: failed program was:" >&5
25601 sed 's/^/| /' conftest.$ac_ext >&5
25603 gdb_cv_have_struct_so_map_with_som_members=no
25605 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
25608 echo "$as_me:$LINENO: result: $gdb_cv_have_struct_so_map_with_som_members" >&5
25609 echo "${ECHO_T}$gdb_cv_have_struct_so_map_with_som_members" >&6
25610 if test $gdb_cv_have_struct_so_map_with_som_members = yes; then
25612 cat >>confdefs.h <<\_ACEOF
25613 #define HAVE_STRUCT_SO_MAP_WITH_SOM_MEMBERS 1
25619 echo "$as_me:$LINENO: checking for struct link_map32 in sys/link.h" >&5
25620 echo $ECHO_N "checking for struct link_map32 in sys/link.h... $ECHO_C" >&6
25621 if test "${gdb_cv_have_struct_link_map32+set}" = set; then
25622 echo $ECHO_N "(cached) $ECHO_C" >&6
25624 cat >conftest.$ac_ext <<_ACEOF
25627 cat confdefs.h >>conftest.$ac_ext
25628 cat >>conftest.$ac_ext <<_ACEOF
25629 /* end confdefs.h. */
25631 #include <sys/link.h>
25635 struct link_map32 l;
25640 rm -f conftest.$ac_objext
25641 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
25642 (eval $ac_compile) 2>conftest.er1
25644 grep -v '^ *+' conftest.er1 >conftest.err
25646 cat conftest.err >&5
25647 echo "$as_me:$LINENO: \$? = $ac_status" >&5
25648 (exit $ac_status); } &&
25649 { ac_try='test -z "$ac_c_werror_flag"
25650 || test ! -s conftest.err'
25651 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
25652 (eval $ac_try) 2>&5
25654 echo "$as_me:$LINENO: \$? = $ac_status" >&5
25655 (exit $ac_status); }; } &&
25656 { ac_try='test -s conftest.$ac_objext'
25657 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
25658 (eval $ac_try) 2>&5
25660 echo "$as_me:$LINENO: \$? = $ac_status" >&5
25661 (exit $ac_status); }; }; then
25662 gdb_cv_have_struct_link_map32=yes
25664 echo "$as_me: failed program was:" >&5
25665 sed 's/^/| /' conftest.$ac_ext >&5
25667 gdb_cv_have_struct_link_map32=no
25669 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
25672 echo "$as_me:$LINENO: result: $gdb_cv_have_struct_link_map32" >&5
25673 echo "${ECHO_T}$gdb_cv_have_struct_link_map32" >&6
25674 if test $gdb_cv_have_struct_link_map32 = yes; then
25676 cat >>confdefs.h <<\_ACEOF
25677 #define HAVE_STRUCT_LINK_MAP32 1
25681 cat >>confdefs.h <<\_ACEOF
25682 #define _SYSCALL32 1
25688 # Check if the compiler supports the `long long' type.
25690 echo "$as_me:$LINENO: checking for long long support in compiler" >&5
25691 echo $ECHO_N "checking for long long support in compiler... $ECHO_C" >&6
25692 if test "${gdb_cv_c_long_long+set}" = set; then
25693 echo $ECHO_N "(cached) $ECHO_C" >&6
25695 cat >conftest.$ac_ext <<_ACEOF
25698 cat confdefs.h >>conftest.$ac_ext
25699 cat >>conftest.$ac_ext <<_ACEOF
25700 /* end confdefs.h. */
25701 extern long long foo;
25705 switch (foo & 2) { case 0: return 1; }
25710 rm -f conftest.$ac_objext
25711 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
25712 (eval $ac_compile) 2>conftest.er1
25714 grep -v '^ *+' conftest.er1 >conftest.err
25716 cat conftest.err >&5
25717 echo "$as_me:$LINENO: \$? = $ac_status" >&5
25718 (exit $ac_status); } &&
25719 { ac_try='test -z "$ac_c_werror_flag"
25720 || test ! -s conftest.err'
25721 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
25722 (eval $ac_try) 2>&5
25724 echo "$as_me:$LINENO: \$? = $ac_status" >&5
25725 (exit $ac_status); }; } &&
25726 { ac_try='test -s conftest.$ac_objext'
25727 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
25728 (eval $ac_try) 2>&5
25730 echo "$as_me:$LINENO: \$? = $ac_status" >&5
25731 (exit $ac_status); }; }; then
25732 gdb_cv_c_long_long=yes
25734 echo "$as_me: failed program was:" >&5
25735 sed 's/^/| /' conftest.$ac_ext >&5
25737 gdb_cv_c_long_long=no
25739 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
25741 echo "$as_me:$LINENO: result: $gdb_cv_c_long_long" >&5
25742 echo "${ECHO_T}$gdb_cv_c_long_long" >&6
25743 if test $gdb_cv_c_long_long = yes; then
25745 cat >>confdefs.h <<\_ACEOF
25746 #define CC_HAS_LONG_LONG 1
25751 # Check if the compiler and runtime support printing long longs.
25753 echo "$as_me:$LINENO: checking for long long support in printf" >&5
25754 echo $ECHO_N "checking for long long support in printf... $ECHO_C" >&6
25755 if test "${gdb_cv_printf_has_long_long+set}" = set; then
25756 echo $ECHO_N "(cached) $ECHO_C" >&6
25758 if test "$cross_compiling" = yes; then
25759 gdb_cv_printf_has_long_long=no
25761 cat >conftest.$ac_ext <<_ACEOF
25764 cat confdefs.h >>conftest.$ac_ext
25765 cat >>conftest.$ac_ext <<_ACEOF
25766 /* end confdefs.h. */
25767 $ac_includes_default
25773 l = (l << 16) + 0x0123;
25774 l = (l << 16) + 0x4567;
25775 l = (l << 16) + 0x89ab;
25776 l = (l << 16) + 0xcdef;
25777 sprintf (buf, "0x%016llx", l);
25778 return (strcmp ("0x0123456789abcdef", buf));
25783 rm -f conftest$ac_exeext
25784 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
25785 (eval $ac_link) 2>&5
25787 echo "$as_me:$LINENO: \$? = $ac_status" >&5
25788 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
25789 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
25790 (eval $ac_try) 2>&5
25792 echo "$as_me:$LINENO: \$? = $ac_status" >&5
25793 (exit $ac_status); }; }; then
25794 gdb_cv_printf_has_long_long=yes
25796 echo "$as_me: program exited with status $ac_status" >&5
25797 echo "$as_me: failed program was:" >&5
25798 sed 's/^/| /' conftest.$ac_ext >&5
25800 ( exit $ac_status )
25801 gdb_cv_printf_has_long_long=no
25803 rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
25806 echo "$as_me:$LINENO: result: $gdb_cv_printf_has_long_long" >&5
25807 echo "${ECHO_T}$gdb_cv_printf_has_long_long" >&6
25808 if test $gdb_cv_printf_has_long_long = yes; then
25810 cat >>confdefs.h <<\_ACEOF
25811 #define PRINTF_HAS_LONG_LONG 1
25816 # Check if the compiler and runtime support printing decfloats.
25818 echo "$as_me:$LINENO: checking for decfloat support in printf" >&5
25819 echo $ECHO_N "checking for decfloat support in printf... $ECHO_C" >&6
25820 if test "${gdb_cv_printf_has_decfloat+set}" = set; then
25821 echo $ECHO_N "(cached) $ECHO_C" >&6
25823 if test "$cross_compiling" = yes; then
25824 gdb_cv_printf_has_decfloat=no
25826 cat >conftest.$ac_ext <<_ACEOF
25829 cat confdefs.h >>conftest.$ac_ext
25830 cat >>conftest.$ac_ext <<_ACEOF
25831 /* end confdefs.h. */
25832 $ac_includes_default
25837 _Decimal32 d32 = 1.2345df;
25838 _Decimal64 d64 = 1.2345dd;
25839 _Decimal128 d128 = 1.2345dl;
25840 sprintf (buf, "Decimal32: %H\nDecimal64: %D\nDecimal128: %DD", d32, d64, d128);
25841 return (strcmp ("Decimal32: 1.2345\nDecimal64: 1.2345\nDecimal128: 1.2345", buf));
25846 rm -f conftest$ac_exeext
25847 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
25848 (eval $ac_link) 2>&5
25850 echo "$as_me:$LINENO: \$? = $ac_status" >&5
25851 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
25852 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
25853 (eval $ac_try) 2>&5
25855 echo "$as_me:$LINENO: \$? = $ac_status" >&5
25856 (exit $ac_status); }; }; then
25857 gdb_cv_printf_has_decfloat=yes
25859 echo "$as_me: program exited with status $ac_status" >&5
25860 echo "$as_me: failed program was:" >&5
25861 sed 's/^/| /' conftest.$ac_ext >&5
25863 ( exit $ac_status )
25864 gdb_cv_printf_has_decfloat=no
25866 rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
25869 echo "$as_me:$LINENO: result: $gdb_cv_printf_has_decfloat" >&5
25870 echo "${ECHO_T}$gdb_cv_printf_has_decfloat" >&6
25871 if test $gdb_cv_printf_has_decfloat = yes; then
25873 cat >>confdefs.h <<\_ACEOF
25874 #define PRINTF_HAS_DECFLOAT 1
25879 # Check if the compiler supports the `long double' type. We can't use
25880 # AC_C_LONG_DOUBLE because that one does additional checks on the
25881 # constants defined in <float.h> that fail on some systems,
25882 # e.g. FreeBSD/i386 4.7 and OpenBSD/i386 3.6.
25884 echo "$as_me:$LINENO: checking for long double support in compiler" >&5
25885 echo $ECHO_N "checking for long double support in compiler... $ECHO_C" >&6
25886 if test "${gdb_cv_c_long_double+set}" = set; then
25887 echo $ECHO_N "(cached) $ECHO_C" >&6
25889 cat >conftest.$ac_ext <<_ACEOF
25892 cat confdefs.h >>conftest.$ac_ext
25893 cat >>conftest.$ac_ext <<_ACEOF
25894 /* end confdefs.h. */
25897 rm -f conftest.$ac_objext
25898 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
25899 (eval $ac_compile) 2>conftest.er1
25901 grep -v '^ *+' conftest.er1 >conftest.err
25903 cat conftest.err >&5
25904 echo "$as_me:$LINENO: \$? = $ac_status" >&5
25905 (exit $ac_status); } &&
25906 { ac_try='test -z "$ac_c_werror_flag"
25907 || test ! -s conftest.err'
25908 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
25909 (eval $ac_try) 2>&5
25911 echo "$as_me:$LINENO: \$? = $ac_status" >&5
25912 (exit $ac_status); }; } &&
25913 { ac_try='test -s conftest.$ac_objext'
25914 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
25915 (eval $ac_try) 2>&5
25917 echo "$as_me:$LINENO: \$? = $ac_status" >&5
25918 (exit $ac_status); }; }; then
25919 gdb_cv_c_long_double=yes
25921 echo "$as_me: failed program was:" >&5
25922 sed 's/^/| /' conftest.$ac_ext >&5
25924 gdb_cv_c_long_double=no
25926 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
25928 echo "$as_me:$LINENO: result: $gdb_cv_c_long_double" >&5
25929 echo "${ECHO_T}$gdb_cv_c_long_double" >&6
25930 if test $gdb_cv_c_long_double = yes; then
25932 cat >>confdefs.h <<\_ACEOF
25933 #define HAVE_LONG_DOUBLE 1
25938 # Check if the compiler and runtime support printing long doubles.
25940 echo "$as_me:$LINENO: checking for long double support in printf" >&5
25941 echo $ECHO_N "checking for long double support in printf... $ECHO_C" >&6
25942 if test "${gdb_cv_printf_has_long_double+set}" = set; then
25943 echo $ECHO_N "(cached) $ECHO_C" >&6
25945 if test "$cross_compiling" = yes; then
25946 gdb_cv_printf_has_long_double=no
25948 cat >conftest.$ac_ext <<_ACEOF
25951 cat confdefs.h >>conftest.$ac_ext
25952 cat >>conftest.$ac_ext <<_ACEOF
25953 /* end confdefs.h. */
25954 $ac_includes_default
25959 long double f = 3.141592653;
25960 sprintf (buf, "%Lg", f);
25961 return (strncmp ("3.14159", buf, 7));
25966 rm -f conftest$ac_exeext
25967 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
25968 (eval $ac_link) 2>&5
25970 echo "$as_me:$LINENO: \$? = $ac_status" >&5
25971 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
25972 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
25973 (eval $ac_try) 2>&5
25975 echo "$as_me:$LINENO: \$? = $ac_status" >&5
25976 (exit $ac_status); }; }; then
25977 gdb_cv_printf_has_long_double=yes
25979 echo "$as_me: program exited with status $ac_status" >&5
25980 echo "$as_me: failed program was:" >&5
25981 sed 's/^/| /' conftest.$ac_ext >&5
25983 ( exit $ac_status )
25984 gdb_cv_printf_has_long_double=no
25986 rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
25989 echo "$as_me:$LINENO: result: $gdb_cv_printf_has_long_double" >&5
25990 echo "${ECHO_T}$gdb_cv_printf_has_long_double" >&6
25991 if test $gdb_cv_printf_has_long_double = yes; then
25993 cat >>confdefs.h <<\_ACEOF
25994 #define PRINTF_HAS_LONG_DOUBLE 1
25999 # Check if the compiler and runtime support scanning long doubles.
26001 echo "$as_me:$LINENO: checking for long double support in scanf" >&5
26002 echo $ECHO_N "checking for long double support in scanf... $ECHO_C" >&6
26003 if test "${gdb_cv_scanf_has_long_double+set}" = set; then
26004 echo $ECHO_N "(cached) $ECHO_C" >&6
26006 if test "$cross_compiling" = yes; then
26007 gdb_cv_scanf_has_long_double=no
26009 cat >conftest.$ac_ext <<_ACEOF
26012 cat confdefs.h >>conftest.$ac_ext
26013 cat >>conftest.$ac_ext <<_ACEOF
26014 /* end confdefs.h. */
26019 char *buf = "3.141592653";
26021 sscanf (buf, "%Lg", &f);
26022 return !(f > 3.14159 && f < 3.14160);
26027 rm -f conftest$ac_exeext
26028 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
26029 (eval $ac_link) 2>&5
26031 echo "$as_me:$LINENO: \$? = $ac_status" >&5
26032 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
26033 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
26034 (eval $ac_try) 2>&5
26036 echo "$as_me:$LINENO: \$? = $ac_status" >&5
26037 (exit $ac_status); }; }; then
26038 gdb_cv_scanf_has_long_double=yes
26040 echo "$as_me: program exited with status $ac_status" >&5
26041 echo "$as_me: failed program was:" >&5
26042 sed 's/^/| /' conftest.$ac_ext >&5
26044 ( exit $ac_status )
26045 gdb_cv_scanf_has_long_double=no
26047 rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
26050 echo "$as_me:$LINENO: result: $gdb_cv_scanf_has_long_double" >&5
26051 echo "${ECHO_T}$gdb_cv_scanf_has_long_double" >&6
26052 if test $gdb_cv_scanf_has_long_double = yes; then
26054 cat >>confdefs.h <<\_ACEOF
26055 #define SCANF_HAS_LONG_DOUBLE 1
26062 echo "$as_me:$LINENO: checking for -bbigtoc option" >&5
26063 echo $ECHO_N "checking for -bbigtoc option... $ECHO_C" >&6
26064 if test "${gdb_cv_bigtoc+set}" = set; then
26065 echo $ECHO_N "(cached) $ECHO_C" >&6
26068 SAVE_LDFLAGS=$LDFLAGS
26071 yes) gdb_cv_bigtoc=-Wl,-bbigtoc ;;
26072 *) gdb_cv_bigtoc=-bbigtoc ;;
26075 LDFLAGS=$LDFLAGS\ $gdb_cv_bigtoc
26076 cat >conftest.$ac_ext <<_ACEOF
26079 cat confdefs.h >>conftest.$ac_ext
26080 cat >>conftest.$ac_ext <<_ACEOF
26081 /* end confdefs.h. */
26091 rm -f conftest.$ac_objext conftest$ac_exeext
26092 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
26093 (eval $ac_link) 2>conftest.er1
26095 grep -v '^ *+' conftest.er1 >conftest.err
26097 cat conftest.err >&5
26098 echo "$as_me:$LINENO: \$? = $ac_status" >&5
26099 (exit $ac_status); } &&
26100 { ac_try='test -z "$ac_c_werror_flag"
26101 || test ! -s conftest.err'
26102 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
26103 (eval $ac_try) 2>&5
26105 echo "$as_me:$LINENO: \$? = $ac_status" >&5
26106 (exit $ac_status); }; } &&
26107 { ac_try='test -s conftest$ac_exeext'
26108 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
26109 (eval $ac_try) 2>&5
26111 echo "$as_me:$LINENO: \$? = $ac_status" >&5
26112 (exit $ac_status); }; }; then
26115 echo "$as_me: failed program was:" >&5
26116 sed 's/^/| /' conftest.$ac_ext >&5
26120 rm -f conftest.err conftest.$ac_objext \
26121 conftest$ac_exeext conftest.$ac_ext
26122 LDFLAGS="${SAVE_LDFLAGS}"
26125 echo "$as_me:$LINENO: result: $gdb_cv_bigtoc" >&5
26126 echo "${ECHO_T}$gdb_cv_bigtoc" >&6
26127 CONFIG_LDFLAGS="${CONFIG_LDFLAGS} ${gdb_cv_bigtoc}"
26133 if test ${build} = ${host} -a ${host} = ${target} ; then
26136 echo "$as_me:$LINENO: checking for HPUX/OSF thread support" >&5
26137 echo $ECHO_N "checking for HPUX/OSF thread support... $ECHO_C" >&6
26138 if test -f /usr/include/dce/cma_config.h ; then
26139 if test "$GCC" = "yes" ; then
26140 echo "$as_me:$LINENO: result: yes" >&5
26141 echo "${ECHO_T}yes" >&6
26143 cat >>confdefs.h <<\_ACEOF
26144 #define HAVE_HPUX_THREAD_SUPPORT 1
26147 CONFIG_OBS="${CONFIG_OBS} hpux-thread.o"
26148 CONFIG_SRCS="${CONFIG_SRCS} hpux-thread.c"
26150 echo "$as_me:$LINENO: result: no (suppressed because you are not using GCC)" >&5
26151 echo "${ECHO_T}no (suppressed because you are not using GCC)" >&6
26154 echo "$as_me:$LINENO: result: no" >&5
26155 echo "${ECHO_T}no" >&6
26159 # See if thread_db library is around for Solaris thread debugging.
26160 # Note that we must explicitly test for version 1 of the library
26161 # because version 0 (present on Solaris 2.4 or earlier) doesn't have
26163 echo "$as_me:$LINENO: checking for Solaris thread debugging library" >&5
26164 echo $ECHO_N "checking for Solaris thread debugging library... $ECHO_C" >&6
26165 if test -f /usr/lib/libthread_db.so.1 ; then
26166 echo "$as_me:$LINENO: result: yes" >&5
26167 echo "${ECHO_T}yes" >&6
26169 cat >>confdefs.h <<\_ACEOF
26170 #define HAVE_THREAD_DB_LIB 1
26173 CONFIG_OBS="${CONFIG_OBS} sol-thread.o"
26174 CONFIG_SRCS="${CONFIG_SRCS} sol-thread.c"
26176 echo "$as_me:$LINENO: checking for dlopen in -ldl" >&5
26177 echo $ECHO_N "checking for dlopen in -ldl... $ECHO_C" >&6
26178 if test "${ac_cv_lib_dl_dlopen+set}" = set; then
26179 echo $ECHO_N "(cached) $ECHO_C" >&6
26181 ac_check_lib_save_LIBS=$LIBS
26183 cat >conftest.$ac_ext <<_ACEOF
26186 cat confdefs.h >>conftest.$ac_ext
26187 cat >>conftest.$ac_ext <<_ACEOF
26188 /* end confdefs.h. */
26190 /* Override any gcc2 internal prototype to avoid an error. */
26194 /* We use char because int might match the return type of a gcc2
26195 builtin and then its argument prototype would still apply. */
26205 rm -f conftest.$ac_objext conftest$ac_exeext
26206 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
26207 (eval $ac_link) 2>conftest.er1
26209 grep -v '^ *+' conftest.er1 >conftest.err
26211 cat conftest.err >&5
26212 echo "$as_me:$LINENO: \$? = $ac_status" >&5
26213 (exit $ac_status); } &&
26214 { ac_try='test -z "$ac_c_werror_flag"
26215 || test ! -s conftest.err'
26216 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
26217 (eval $ac_try) 2>&5
26219 echo "$as_me:$LINENO: \$? = $ac_status" >&5
26220 (exit $ac_status); }; } &&
26221 { ac_try='test -s conftest$ac_exeext'
26222 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
26223 (eval $ac_try) 2>&5
26225 echo "$as_me:$LINENO: \$? = $ac_status" >&5
26226 (exit $ac_status); }; }; then
26227 ac_cv_lib_dl_dlopen=yes
26229 echo "$as_me: failed program was:" >&5
26230 sed 's/^/| /' conftest.$ac_ext >&5
26232 ac_cv_lib_dl_dlopen=no
26234 rm -f conftest.err conftest.$ac_objext \
26235 conftest$ac_exeext conftest.$ac_ext
26236 LIBS=$ac_check_lib_save_LIBS
26238 echo "$as_me:$LINENO: result: $ac_cv_lib_dl_dlopen" >&5
26239 echo "${ECHO_T}$ac_cv_lib_dl_dlopen" >&6
26240 if test $ac_cv_lib_dl_dlopen = yes; then
26241 cat >>confdefs.h <<_ACEOF
26242 #define HAVE_LIBDL 1
26249 if test "$GCC" = "yes" ; then
26250 # The GNU linker requires the -export-dynamic option to make
26251 # all symbols visible in the dynamic symbol table.
26252 hold_ldflags=$LDFLAGS
26253 echo "$as_me:$LINENO: checking for the ld -export-dynamic flag" >&5
26254 echo $ECHO_N "checking for the ld -export-dynamic flag... $ECHO_C" >&6
26255 LDFLAGS="${LDFLAGS} -Wl,-export-dynamic"
26256 cat >conftest.$ac_ext <<_ACEOF
26259 cat confdefs.h >>conftest.$ac_ext
26260 cat >>conftest.$ac_ext <<_ACEOF
26261 /* end confdefs.h. */
26271 rm -f conftest.$ac_objext conftest$ac_exeext
26272 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
26273 (eval $ac_link) 2>conftest.er1
26275 grep -v '^ *+' conftest.er1 >conftest.err
26277 cat conftest.err >&5
26278 echo "$as_me:$LINENO: \$? = $ac_status" >&5
26279 (exit $ac_status); } &&
26280 { ac_try='test -z "$ac_c_werror_flag"
26281 || test ! -s conftest.err'
26282 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
26283 (eval $ac_try) 2>&5
26285 echo "$as_me:$LINENO: \$? = $ac_status" >&5
26286 (exit $ac_status); }; } &&
26287 { ac_try='test -s conftest$ac_exeext'
26288 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
26289 (eval $ac_try) 2>&5
26291 echo "$as_me:$LINENO: \$? = $ac_status" >&5
26292 (exit $ac_status); }; }; then
26295 echo "$as_me: failed program was:" >&5
26296 sed 's/^/| /' conftest.$ac_ext >&5
26300 rm -f conftest.err conftest.$ac_objext \
26301 conftest$ac_exeext conftest.$ac_ext
26302 LDFLAGS=$hold_ldflags
26303 echo "$as_me:$LINENO: result: $found" >&5
26304 echo "${ECHO_T}$found" >&6
26305 if test $found = yes; then
26306 CONFIG_LDFLAGS="${CONFIG_LDFLAGS} -Wl,-export-dynamic"
26309 # Sun randomly tweaked the prototypes in <proc_service.h>
26311 echo "$as_me:$LINENO: checking if <proc_service.h> is old" >&5
26312 echo $ECHO_N "checking if <proc_service.h> is old... $ECHO_C" >&6
26313 if test "${gdb_cv_proc_service_is_old+set}" = set; then
26314 echo $ECHO_N "(cached) $ECHO_C" >&6
26317 cat >conftest.$ac_ext <<_ACEOF
26320 cat confdefs.h >>conftest.$ac_ext
26321 cat >>conftest.$ac_ext <<_ACEOF
26322 /* end confdefs.h. */
26324 #include <proc_service.h>
26325 ps_err_e ps_pdwrite
26326 (struct ps_prochandle*, psaddr_t, const void*, size_t);
26336 rm -f conftest.$ac_objext
26337 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
26338 (eval $ac_compile) 2>conftest.er1
26340 grep -v '^ *+' conftest.er1 >conftest.err
26342 cat conftest.err >&5
26343 echo "$as_me:$LINENO: \$? = $ac_status" >&5
26344 (exit $ac_status); } &&
26345 { ac_try='test -z "$ac_c_werror_flag"
26346 || test ! -s conftest.err'
26347 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
26348 (eval $ac_try) 2>&5
26350 echo "$as_me:$LINENO: \$? = $ac_status" >&5
26351 (exit $ac_status); }; } &&
26352 { ac_try='test -s conftest.$ac_objext'
26353 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
26354 (eval $ac_try) 2>&5
26356 echo "$as_me:$LINENO: \$? = $ac_status" >&5
26357 (exit $ac_status); }; }; then
26358 gdb_cv_proc_service_is_old=no
26360 echo "$as_me: failed program was:" >&5
26361 sed 's/^/| /' conftest.$ac_ext >&5
26363 gdb_cv_proc_service_is_old=yes
26365 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
26369 echo "$as_me:$LINENO: result: $gdb_cv_proc_service_is_old" >&5
26370 echo "${ECHO_T}$gdb_cv_proc_service_is_old" >&6
26371 if test $gdb_cv_proc_service_is_old = yes; then
26373 cat >>confdefs.h <<\_ACEOF
26374 #define PROC_SERVICE_IS_OLD 1
26379 echo "$as_me:$LINENO: result: no" >&5
26380 echo "${ECHO_T}no" >&6
26384 echo "$as_me:$LINENO: checking for AiX thread debugging library" >&5
26385 echo $ECHO_N "checking for AiX thread debugging library... $ECHO_C" >&6
26386 if test "${gdb_cv_have_aix_thread_debug+set}" = set; then
26387 echo $ECHO_N "(cached) $ECHO_C" >&6
26389 cat >conftest.$ac_ext <<_ACEOF
26392 cat confdefs.h >>conftest.$ac_ext
26393 cat >>conftest.$ac_ext <<_ACEOF
26394 /* end confdefs.h. */
26395 #include <sys/pthdebug.h>
26399 #ifndef PTHDB_VERSION_3
26406 rm -f conftest.$ac_objext
26407 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
26408 (eval $ac_compile) 2>conftest.er1
26410 grep -v '^ *+' conftest.er1 >conftest.err
26412 cat conftest.err >&5
26413 echo "$as_me:$LINENO: \$? = $ac_status" >&5
26414 (exit $ac_status); } &&
26415 { ac_try='test -z "$ac_c_werror_flag"
26416 || test ! -s conftest.err'
26417 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
26418 (eval $ac_try) 2>&5
26420 echo "$as_me:$LINENO: \$? = $ac_status" >&5
26421 (exit $ac_status); }; } &&
26422 { ac_try='test -s conftest.$ac_objext'
26423 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
26424 (eval $ac_try) 2>&5
26426 echo "$as_me:$LINENO: \$? = $ac_status" >&5
26427 (exit $ac_status); }; }; then
26428 gdb_cv_have_aix_thread_debug=yes
26430 echo "$as_me: failed program was:" >&5
26431 sed 's/^/| /' conftest.$ac_ext >&5
26433 gdb_cv_have_aix_thread_debug=no
26435 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
26438 echo "$as_me:$LINENO: result: $gdb_cv_have_aix_thread_debug" >&5
26439 echo "${ECHO_T}$gdb_cv_have_aix_thread_debug" >&6
26440 if test $gdb_cv_have_aix_thread_debug = yes; then
26441 CONFIG_SRCS="${CONFIG_SRCS} aix-thread.c"
26442 CONFIG_OBS="${CONFIG_OBS} aix-thread.o"
26443 CONFIG_LDFLAGS="${CONFIG_LDFLAGS} -lpthdebug"
26450 if test "x$ac_cv_header_thread_db_h" = "xyes"; then
26451 echo "$as_me:$LINENO: checking whether <thread_db.h> has TD_NOTALLOC" >&5
26452 echo $ECHO_N "checking whether <thread_db.h> has TD_NOTALLOC... $ECHO_C" >&6
26453 if test "${gdb_cv_thread_db_h_has_td_notalloc+set}" = set; then
26454 echo $ECHO_N "(cached) $ECHO_C" >&6
26456 cat >conftest.$ac_ext <<_ACEOF
26459 cat confdefs.h >>conftest.$ac_ext
26460 cat >>conftest.$ac_ext <<_ACEOF
26461 /* end confdefs.h. */
26462 #include <thread_db.h>
26466 int i = TD_NOTALLOC;
26471 rm -f conftest.$ac_objext
26472 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
26473 (eval $ac_compile) 2>conftest.er1
26475 grep -v '^ *+' conftest.er1 >conftest.err
26477 cat conftest.err >&5
26478 echo "$as_me:$LINENO: \$? = $ac_status" >&5
26479 (exit $ac_status); } &&
26480 { ac_try='test -z "$ac_c_werror_flag"
26481 || test ! -s conftest.err'
26482 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
26483 (eval $ac_try) 2>&5
26485 echo "$as_me:$LINENO: \$? = $ac_status" >&5
26486 (exit $ac_status); }; } &&
26487 { ac_try='test -s conftest.$ac_objext'
26488 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
26489 (eval $ac_try) 2>&5
26491 echo "$as_me:$LINENO: \$? = $ac_status" >&5
26492 (exit $ac_status); }; }; then
26493 gdb_cv_thread_db_h_has_td_notalloc=yes
26495 echo "$as_me: failed program was:" >&5
26496 sed 's/^/| /' conftest.$ac_ext >&5
26498 gdb_cv_thread_db_h_has_td_notalloc=no
26501 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
26504 echo "$as_me:$LINENO: result: $gdb_cv_thread_db_h_has_td_notalloc" >&5
26505 echo "${ECHO_T}$gdb_cv_thread_db_h_has_td_notalloc" >&6
26506 echo "$as_me:$LINENO: checking whether <thread_db.h> has TD_VERSION" >&5
26507 echo $ECHO_N "checking whether <thread_db.h> has TD_VERSION... $ECHO_C" >&6
26508 if test "${gdb_cv_thread_db_h_has_td_version+set}" = set; then
26509 echo $ECHO_N "(cached) $ECHO_C" >&6
26511 cat >conftest.$ac_ext <<_ACEOF
26514 cat confdefs.h >>conftest.$ac_ext
26515 cat >>conftest.$ac_ext <<_ACEOF
26516 /* end confdefs.h. */
26517 #include <thread_db.h>
26521 int i = TD_VERSION;
26526 rm -f conftest.$ac_objext
26527 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
26528 (eval $ac_compile) 2>conftest.er1
26530 grep -v '^ *+' conftest.er1 >conftest.err
26532 cat conftest.err >&5
26533 echo "$as_me:$LINENO: \$? = $ac_status" >&5
26534 (exit $ac_status); } &&
26535 { ac_try='test -z "$ac_c_werror_flag"
26536 || test ! -s conftest.err'
26537 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
26538 (eval $ac_try) 2>&5
26540 echo "$as_me:$LINENO: \$? = $ac_status" >&5
26541 (exit $ac_status); }; } &&
26542 { ac_try='test -s conftest.$ac_objext'
26543 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
26544 (eval $ac_try) 2>&5
26546 echo "$as_me:$LINENO: \$? = $ac_status" >&5
26547 (exit $ac_status); }; }; then
26548 gdb_cv_thread_db_h_has_td_version=yes
26550 echo "$as_me: failed program was:" >&5
26551 sed 's/^/| /' conftest.$ac_ext >&5
26553 gdb_cv_thread_db_h_has_td_version=no
26556 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
26559 echo "$as_me:$LINENO: result: $gdb_cv_thread_db_h_has_td_version" >&5
26560 echo "${ECHO_T}$gdb_cv_thread_db_h_has_td_version" >&6
26561 echo "$as_me:$LINENO: checking whether <thread_db.h> has TD_NOTLS" >&5
26562 echo $ECHO_N "checking whether <thread_db.h> has TD_NOTLS... $ECHO_C" >&6
26563 if test "${gdb_cv_thread_db_h_has_td_notls+set}" = set; then
26564 echo $ECHO_N "(cached) $ECHO_C" >&6
26566 cat >conftest.$ac_ext <<_ACEOF
26569 cat confdefs.h >>conftest.$ac_ext
26570 cat >>conftest.$ac_ext <<_ACEOF
26571 /* end confdefs.h. */
26572 #include <thread_db.h>
26581 rm -f conftest.$ac_objext
26582 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
26583 (eval $ac_compile) 2>conftest.er1
26585 grep -v '^ *+' conftest.er1 >conftest.err
26587 cat conftest.err >&5
26588 echo "$as_me:$LINENO: \$? = $ac_status" >&5
26589 (exit $ac_status); } &&
26590 { ac_try='test -z "$ac_c_werror_flag"
26591 || test ! -s conftest.err'
26592 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
26593 (eval $ac_try) 2>&5
26595 echo "$as_me:$LINENO: \$? = $ac_status" >&5
26596 (exit $ac_status); }; } &&
26597 { ac_try='test -s conftest.$ac_objext'
26598 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
26599 (eval $ac_try) 2>&5
26601 echo "$as_me:$LINENO: \$? = $ac_status" >&5
26602 (exit $ac_status); }; }; then
26603 gdb_cv_thread_db_h_has_td_notls=yes
26605 echo "$as_me: failed program was:" >&5
26606 sed 's/^/| /' conftest.$ac_ext >&5
26608 gdb_cv_thread_db_h_has_td_notls=no
26611 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
26614 echo "$as_me:$LINENO: result: $gdb_cv_thread_db_h_has_td_notls" >&5
26615 echo "${ECHO_T}$gdb_cv_thread_db_h_has_td_notls" >&6
26617 if test "x$gdb_cv_thread_db_h_has_td_notalloc" = "xyes"; then
26619 cat >>confdefs.h <<\_ACEOF
26620 #define THREAD_DB_HAS_TD_NOTALLOC 1
26624 if test "x$gdb_cv_thread_db_h_has_td_version" = "xyes"; then
26626 cat >>confdefs.h <<\_ACEOF
26627 #define THREAD_DB_HAS_TD_VERSION 1
26631 if test "x$gdb_cv_thread_db_h_has_td_notls" = "xyes"; then
26633 cat >>confdefs.h <<\_ACEOF
26634 #define THREAD_DB_HAS_TD_NOTLS 1
26639 if test "x$ac_cv_header_sys_syscall_h" = "xyes"; then
26640 echo "$as_me:$LINENO: checking whether <sys/syscall.h> has __NR_tkill" >&5
26641 echo $ECHO_N "checking whether <sys/syscall.h> has __NR_tkill... $ECHO_C" >&6
26642 if test "${gdb_cv_sys_syscall_h_has_tkill+set}" = set; then
26643 echo $ECHO_N "(cached) $ECHO_C" >&6
26645 cat >conftest.$ac_ext <<_ACEOF
26648 cat confdefs.h >>conftest.$ac_ext
26649 cat >>conftest.$ac_ext <<_ACEOF
26650 /* end confdefs.h. */
26651 #include <sys/syscall.h>
26655 int i = __NR_tkill;
26660 rm -f conftest.$ac_objext
26661 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
26662 (eval $ac_compile) 2>conftest.er1
26664 grep -v '^ *+' conftest.er1 >conftest.err
26666 cat conftest.err >&5
26667 echo "$as_me:$LINENO: \$? = $ac_status" >&5
26668 (exit $ac_status); } &&
26669 { ac_try='test -z "$ac_c_werror_flag"
26670 || test ! -s conftest.err'
26671 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
26672 (eval $ac_try) 2>&5
26674 echo "$as_me:$LINENO: \$? = $ac_status" >&5
26675 (exit $ac_status); }; } &&
26676 { ac_try='test -s conftest.$ac_objext'
26677 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
26678 (eval $ac_try) 2>&5
26680 echo "$as_me:$LINENO: \$? = $ac_status" >&5
26681 (exit $ac_status); }; }; then
26682 gdb_cv_sys_syscall_h_has_tkill=yes
26684 echo "$as_me: failed program was:" >&5
26685 sed 's/^/| /' conftest.$ac_ext >&5
26687 gdb_cv_sys_syscall_h_has_tkill=no
26690 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
26693 echo "$as_me:$LINENO: result: $gdb_cv_sys_syscall_h_has_tkill" >&5
26694 echo "${ECHO_T}$gdb_cv_sys_syscall_h_has_tkill" >&6
26696 if test "x$gdb_cv_sys_syscall_h_has_tkill" = "xyes" && test "x$ac_cv_func_syscall" = "xyes"; then
26698 cat >>confdefs.h <<\_ACEOF
26699 #define HAVE_TKILL_SYSCALL 1
26706 # Check whether --with-sysroot or --without-sysroot was given.
26707 if test "${with_sysroot+set}" = set; then
26708 withval="$with_sysroot"
26710 case ${with_sysroot} in
26711 yes) TARGET_SYSTEM_ROOT='${exec_prefix}/${target_alias}/sys-root' ;;
26712 *) TARGET_SYSTEM_ROOT=$with_sysroot ;;
26715 TARGET_SYSTEM_ROOT_DEFINE='-DTARGET_SYSTEM_ROOT=\"$(TARGET_SYSTEM_ROOT)\"'
26717 if test "x$prefix" = xNONE; then
26718 test_prefix=/usr/local
26720 test_prefix=$prefix
26722 if test "x$exec_prefix" = xNONE || test "x$exec_prefix" = 'x${prefix}'; then
26723 test_exec_prefix=$test_prefix
26725 test_exec_prefix=$exec_prefix
26727 case ${TARGET_SYSTEM_ROOT} in
26728 "${test_prefix}"|"${test_prefix}/"*|\
26729 "${test_exec_prefix}"|"${test_exec_prefix}/"*|\
26730 '${prefix}'|'${prefix}/'*|\
26731 '${exec_prefix}'|'${exec_prefix}/'*)
26732 t="$TARGET_SYSTEM_ROOT_DEFINE -DTARGET_SYSTEM_ROOT_RELOCATABLE"
26733 TARGET_SYSTEM_ROOT_DEFINE="$t"
26739 TARGET_SYSTEM_ROOT=
26740 TARGET_SYSTEM_ROOT_DEFINE='-DTARGET_SYSTEM_ROOT=\"\"'
26746 # Check whether --enable-werror or --disable-werror was given.
26747 if test "${enable_werror+set}" = set; then
26748 enableval="$enable_werror"
26749 case "${enableval}" in
26750 yes | y) ERROR_ON_WARNING="yes" ;;
26751 no | n) ERROR_ON_WARNING="no" ;;
26752 *) { { echo "$as_me:$LINENO: error: bad value ${enableval} for --enable-werror" >&5
26753 echo "$as_me: error: bad value ${enableval} for --enable-werror" >&2;}
26754 { (exit 1); exit 1; }; } ;;
26758 # Enable -Werror by default when using gcc
26759 if test "${GCC}" = yes -a -z "${ERROR_ON_WARNING}" ; then
26760 ERROR_ON_WARNING=yes
26764 if test "${ERROR_ON_WARNING}" = yes ; then
26765 WERROR_CFLAGS="-Werror"
26768 # The entries after -Wno-pointer-sign are disabled warnings which may
26769 # be enabled in the future, which can not currently be used to build
26771 # NOTE: If you change this list, remember to update
26772 # gdb/doc/gdbint.texinfo.
26773 build_warnings="-Wall -Wdeclaration-after-statement -Wpointer-arith \
26774 -Wformat-nonliteral -Wno-pointer-sign \
26775 -Wno-unused -Wno-switch -Wno-char-subscripts"
26777 # Check whether --enable-build-warnings or --disable-build-warnings was given.
26778 if test "${enable_build_warnings+set}" = set; then
26779 enableval="$enable_build_warnings"
26780 case "${enableval}" in
26782 no) build_warnings="-w";;
26783 ,*) t=`echo "${enableval}" | sed -e "s/,/ /g"`
26784 build_warnings="${build_warnings} ${t}";;
26785 *,) t=`echo "${enableval}" | sed -e "s/,/ /g"`
26786 build_warnings="${t} ${build_warnings}";;
26787 *) build_warnings=`echo "${enableval}" | sed -e "s/,/ /g"`;;
26789 if test x"$silent" != x"yes" && test x"$build_warnings" != x""; then
26790 echo "Setting compiler warning flags = $build_warnings" 6>&1
26792 fi; # Check whether --enable-gdb-build-warnings or --disable-gdb-build-warnings was given.
26793 if test "${enable_gdb_build_warnings+set}" = set; then
26794 enableval="$enable_gdb_build_warnings"
26795 case "${enableval}" in
26797 no) build_warnings="-w";;
26798 ,*) t=`echo "${enableval}" | sed -e "s/,/ /g"`
26799 build_warnings="${build_warnings} ${t}";;
26800 *,) t=`echo "${enableval}" | sed -e "s/,/ /g"`
26801 build_warnings="${t} ${build_warnings}";;
26802 *) build_warnings=`echo "${enableval}" | sed -e "s/,/ /g"`;;
26804 if test x"$silent" != x"yes" && test x"$build_warnings" != x""; then
26805 echo "Setting GDB specific compiler warning flags = $build_warnings" 6>&1
26808 if test "x${build_warnings}" != x -a "x$GCC" = xyes
26810 echo "$as_me:$LINENO: checking compiler warning flags" >&5
26811 echo $ECHO_N "checking compiler warning flags... $ECHO_C" >&6
26812 # Separate out the -Werror flag as some files just cannot be
26813 # compiled with it enabled.
26814 for w in ${build_warnings}; do
26816 -Werr*) WERROR_CFLAGS=-Werror ;;
26817 *) # Check that GCC accepts it
26818 saved_CFLAGS="$CFLAGS"
26819 CFLAGS="$CFLAGS $w"
26820 cat >conftest.$ac_ext <<_ACEOF
26823 cat confdefs.h >>conftest.$ac_ext
26824 cat >>conftest.$ac_ext <<_ACEOF
26825 /* end confdefs.h. */
26835 rm -f conftest.$ac_objext
26836 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
26837 (eval $ac_compile) 2>conftest.er1
26839 grep -v '^ *+' conftest.er1 >conftest.err
26841 cat conftest.err >&5
26842 echo "$as_me:$LINENO: \$? = $ac_status" >&5
26843 (exit $ac_status); } &&
26844 { ac_try='test -z "$ac_c_werror_flag"
26845 || test ! -s conftest.err'
26846 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
26847 (eval $ac_try) 2>&5
26849 echo "$as_me:$LINENO: \$? = $ac_status" >&5
26850 (exit $ac_status); }; } &&
26851 { ac_try='test -s conftest.$ac_objext'
26852 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
26853 (eval $ac_try) 2>&5
26855 echo "$as_me:$LINENO: \$? = $ac_status" >&5
26856 (exit $ac_status); }; }; then
26857 WARN_CFLAGS="${WARN_CFLAGS} $w"
26859 echo "$as_me: failed program was:" >&5
26860 sed 's/^/| /' conftest.$ac_ext >&5
26863 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
26864 CFLAGS="$saved_CFLAGS"
26867 echo "$as_me:$LINENO: result: ${WARN_CFLAGS} ${WERROR_CFLAGS}" >&5
26868 echo "${ECHO_T}${WARN_CFLAGS} ${WERROR_CFLAGS}" >&6
26873 # In the Cygwin environment, we need some additional flags.
26874 echo "$as_me:$LINENO: checking for cygwin" >&5
26875 echo $ECHO_N "checking for cygwin... $ECHO_C" >&6
26876 if test "${gdb_cv_os_cygwin+set}" = set; then
26877 echo $ECHO_N "(cached) $ECHO_C" >&6
26879 cat >conftest.$ac_ext <<_ACEOF
26882 cat confdefs.h >>conftest.$ac_ext
26883 cat >>conftest.$ac_ext <<_ACEOF
26884 /* end confdefs.h. */
26886 #if defined (__CYGWIN__) || defined (__CYGWIN32__)
26890 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
26891 $EGREP "lose" >/dev/null 2>&1; then
26892 gdb_cv_os_cygwin=yes
26894 gdb_cv_os_cygwin=no
26899 echo "$as_me:$LINENO: result: $gdb_cv_os_cygwin" >&5
26900 echo "${ECHO_T}$gdb_cv_os_cygwin" >&6
26903 SER_HARDWIRE="ser-base.o ser-unix.o ser-pipe.o ser-tcp.o"
26905 *go32* ) SER_HARDWIRE=ser-go32.o ;;
26906 *djgpp* ) SER_HARDWIRE=ser-go32.o ;;
26907 *mingw32*) SER_HARDWIRE="ser-base.o ser-tcp.o ser-mingw.o" ;;
26911 # libreadline needs libuser32.a in a cygwin environment
26913 if test x$gdb_cv_os_cygwin = xyes; then
26914 WIN32LIBS="-luser32"
26915 case "${target}" in
26916 *cygwin*) WIN32LIBS="$WIN32LIBS -limagehlp"
26921 # The ser-tcp.c module requires sockets.
26925 cat >>confdefs.h <<\_ACEOF
26926 #define USE_WIN32API 1
26929 WIN32LIBS="$WIN32LIBS -lws2_32"
26934 # Add ELF support to GDB, but only if BFD includes ELF support.
26936 OLD_LDFLAGS=$LDFLAGS
26938 CFLAGS="$CFLAGS -I${srcdir}/../include -I../bfd -I${srcdir}/../bfd"
26939 LDFLAGS="$LDFLAGS -L../bfd -L../libiberty"
26940 intl=`echo $LIBINTL | sed 's,${top_builddir}/,,g'`
26941 LIBS="$LIBS -lbfd -liberty $intl"
26942 echo "$as_me:$LINENO: checking for ELF support in BFD" >&5
26943 echo $ECHO_N "checking for ELF support in BFD... $ECHO_C" >&6
26944 if test "${gdb_cv_var_elf+set}" = set; then
26945 echo $ECHO_N "(cached) $ECHO_C" >&6
26947 cat >conftest.$ac_ext <<_ACEOF
26950 cat confdefs.h >>conftest.$ac_ext
26951 cat >>conftest.$ac_ext <<_ACEOF
26952 /* end confdefs.h. */
26953 #include <stdlib.h>
26955 #include "elf-bfd.h"
26960 bfd *abfd = NULL; bfd_get_elf_phdr_upper_bound (abfd);
26965 rm -f conftest.$ac_objext conftest$ac_exeext
26966 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
26967 (eval $ac_link) 2>conftest.er1
26969 grep -v '^ *+' conftest.er1 >conftest.err
26971 cat conftest.err >&5
26972 echo "$as_me:$LINENO: \$? = $ac_status" >&5
26973 (exit $ac_status); } &&
26974 { ac_try='test -z "$ac_c_werror_flag"
26975 || test ! -s conftest.err'
26976 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
26977 (eval $ac_try) 2>&5
26979 echo "$as_me:$LINENO: \$? = $ac_status" >&5
26980 (exit $ac_status); }; } &&
26981 { ac_try='test -s conftest$ac_exeext'
26982 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
26983 (eval $ac_try) 2>&5
26985 echo "$as_me:$LINENO: \$? = $ac_status" >&5
26986 (exit $ac_status); }; }; then
26989 echo "$as_me: failed program was:" >&5
26990 sed 's/^/| /' conftest.$ac_ext >&5
26994 rm -f conftest.err conftest.$ac_objext \
26995 conftest$ac_exeext conftest.$ac_ext
26997 echo "$as_me:$LINENO: result: $gdb_cv_var_elf" >&5
26998 echo "${ECHO_T}$gdb_cv_var_elf" >&6
26999 if test $gdb_cv_var_elf = yes; then
27000 CONFIG_OBS="$CONFIG_OBS elfread.o"
27002 cat >>confdefs.h <<\_ACEOF
27008 LDFLAGS=$OLD_LDFLAGS
27011 # Add any host-specific objects to GDB.
27012 CONFIG_OBS="${CONFIG_OBS} ${gdb_host_obs}"
27014 LIBGUI="../libgui/src/libgui.a"
27015 GUI_CFLAGS_X="-I${srcdir}/../libgui/src"
27024 *-*-cygwin* | *-*-mingw* )
27033 if test "${enable_gdbtk}" = "yes"; then
27035 # Gdbtk must have an absolute path to srcdir in order to run
27036 # properly when not installed.
27039 GDBTK_SRC_DIR=`pwd`
27044 # Ok, lets find the tcl configuration
27045 # First, look for one uninstalled.
27046 # the alternative search directory is invoked by --with-tclconfig
27049 if test x"${no_tcl}" = x ; then
27050 # we reset no_tcl in case something fails here
27053 # Check whether --with-tclconfig or --without-tclconfig was given.
27054 if test "${with_tclconfig+set}" = set; then
27055 withval="$with_tclconfig"
27056 with_tclconfig=${withval}
27058 echo "$as_me:$LINENO: checking for Tcl configuration" >&5
27059 echo $ECHO_N "checking for Tcl configuration... $ECHO_C" >&6
27060 if test "${ac_cv_c_tclconfig+set}" = set; then
27061 echo $ECHO_N "(cached) $ECHO_C" >&6
27065 # First check to see if --with-tclconfig was specified.
27066 if test x"${with_tclconfig}" != x ; then
27067 if test -f "${with_tclconfig}/tclConfig.sh" ; then
27068 ac_cv_c_tclconfig=`(cd ${with_tclconfig}; pwd)`
27070 { { echo "$as_me:$LINENO: error: ${with_tclconfig} directory doesn't contain tclConfig.sh" >&5
27071 echo "$as_me: error: ${with_tclconfig} directory doesn't contain tclConfig.sh" >&2;}
27072 { (exit 1); exit 1; }; }
27076 # then check for a private Tcl installation
27077 if test x"${ac_cv_c_tclconfig}" = x ; then
27080 `ls -dr ../tcl[7-9]* 2>/dev/null` \
27082 `ls -dr ../../tcl[7-9]* 2>/dev/null` \
27084 `ls -dr ../../../tcl[7-9]* 2>/dev/null` ; do
27085 if test -f "$i/${configdir}/tclConfig.sh" ; then
27086 ac_cv_c_tclconfig=`(cd $i/${configdir}; pwd)`
27091 # check in a few common install locations
27092 if test x"${ac_cv_c_tclconfig}" = x ; then
27093 for i in `ls -d ${prefix}/lib /usr/local/lib 2>/dev/null` ; do
27094 if test -f "$i/tclConfig.sh" ; then
27095 ac_cv_c_tclconfig=`(cd $i; pwd)`
27100 # check in a few other private locations
27101 if test x"${ac_cv_c_tclconfig}" = x ; then
27104 `ls -dr ${srcdir}/../tcl[7-9]* 2>/dev/null` ; do
27105 if test -f "$i/${configdir}/tclConfig.sh" ; then
27106 ac_cv_c_tclconfig=`(cd $i/${configdir}; pwd)`
27114 if test x"${ac_cv_c_tclconfig}" = x ; then
27115 TCLCONFIG="# no Tcl configs found"
27116 { echo "$as_me:$LINENO: WARNING: Can't find Tcl configuration definitions" >&5
27117 echo "$as_me: WARNING: Can't find Tcl configuration definitions" >&2;}
27120 TCLCONFIG=${ac_cv_c_tclconfig}/tclConfig.sh
27121 echo "$as_me:$LINENO: result: found $TCLCONFIG" >&5
27122 echo "${ECHO_T}found $TCLCONFIG" >&6
27126 if test -z "${no_tcl}"; then
27157 # Ok, lets find the tk configuration
27158 # First, look for one uninstalled.
27159 # the alternative search directory is invoked by --with-tkconfig
27162 if test x"${no_tk}" = x ; then
27163 # we reset no_tk in case something fails here
27166 # Check whether --with-tkconfig or --without-tkconfig was given.
27167 if test "${with_tkconfig+set}" = set; then
27168 withval="$with_tkconfig"
27169 with_tkconfig=${withval}
27171 echo "$as_me:$LINENO: checking for Tk configuration" >&5
27172 echo $ECHO_N "checking for Tk configuration... $ECHO_C" >&6
27173 if test "${ac_cv_c_tkconfig+set}" = set; then
27174 echo $ECHO_N "(cached) $ECHO_C" >&6
27178 # First check to see if --with-tkconfig was specified.
27179 if test x"${with_tkconfig}" != x ; then
27180 if test -f "${with_tkconfig}/tkConfig.sh" ; then
27181 ac_cv_c_tkconfig=`(cd ${with_tkconfig}; pwd)`
27183 { { echo "$as_me:$LINENO: error: ${with_tkconfig} directory doesn't contain tkConfig.sh" >&5
27184 echo "$as_me: error: ${with_tkconfig} directory doesn't contain tkConfig.sh" >&2;}
27185 { (exit 1); exit 1; }; }
27189 # then check for a private Tk library
27190 if test x"${ac_cv_c_tkconfig}" = x ; then
27193 `ls -dr ../tk[4-9]* 2>/dev/null` \
27195 `ls -dr ../../tk[4-9]* 2>/dev/null` \
27197 `ls -dr ../../../tk[4-9]* 2>/dev/null` ; do
27198 if test -f "$i/${configdir}/tkConfig.sh" ; then
27199 ac_cv_c_tkconfig=`(cd $i/${configdir}; pwd)`
27204 # check in a few common install locations
27205 if test x"${ac_cv_c_tkconfig}" = x ; then
27206 for i in `ls -d ${prefix}/lib /usr/local/lib 2>/dev/null` ; do
27207 if test -f "$i/tkConfig.sh" ; then
27208 ac_cv_c_tkconfig=`(cd $i; pwd)`
27213 # check in a few other private locations
27214 if test x"${ac_cv_c_tkconfig}" = x ; then
27217 `ls -dr ${srcdir}/../tk[4-9]* 2>/dev/null` ; do
27218 if test -f "$i/${configdir}/tkConfig.sh" ; then
27219 ac_cv_c_tkconfig=`(cd $i/${configdir}; pwd)`
27227 if test x"${ac_cv_c_tkconfig}" = x ; then
27228 TKCONFIG="# no Tk configs found"
27229 { echo "$as_me:$LINENO: WARNING: Can't find Tk configuration definitions" >&5
27230 echo "$as_me: WARNING: Can't find Tk configuration definitions" >&2;}
27233 TKCONFIG=${ac_cv_c_tkconfig}/tkConfig.sh
27234 echo "$as_me:$LINENO: result: found $TKCONFIG" >&5
27235 echo "${ECHO_T}found $TKCONFIG" >&6
27241 # now look for Tcl library stuff
27243 tcldir="../tcl/${configdir}/"
27245 TCL_DEPS="${tcldir}${TCL_LIB_FILE}"
27247 # If $no_tk is nonempty, then we can't do Tk, and there is no
27248 # point to doing Tcl.
27249 if test -z "${no_tk}"; then
27251 if test -f "$TKCONFIG" ; then
27269 # Ok, lets find the tcl source trees so we can use the headers
27270 # Warning: transition of version 9 to 10 will break this algorithm
27271 # because 10 sorts before 9. We also look for just tcl. We have to
27272 # be careful that we don't match stuff like tclX by accident.
27273 # the alternative search directory is involked by --with-tclinclude
27277 echo "$as_me:$LINENO: checking for Tcl private headers. dir=${configdir}" >&5
27278 echo $ECHO_N "checking for Tcl private headers. dir=${configdir}... $ECHO_C" >&6
27280 # Check whether --with-tclinclude or --without-tclinclude was given.
27281 if test "${with_tclinclude+set}" = set; then
27282 withval="$with_tclinclude"
27283 with_tclinclude=${withval}
27285 if test "${ac_cv_c_tclh+set}" = set; then
27286 echo $ECHO_N "(cached) $ECHO_C" >&6
27289 # first check to see if --with-tclinclude was specified
27290 if test x"${with_tclinclude}" != x ; then
27291 if test -f ${with_tclinclude}/tclInt.h ; then
27292 ac_cv_c_tclh=`(cd ${with_tclinclude}; pwd)`
27293 elif test -f ${with_tclinclude}/generic/tclInt.h ; then
27294 ac_cv_c_tclh=`(cd ${with_tclinclude}/generic; pwd)`
27296 { { echo "$as_me:$LINENO: error: ${with_tclinclude} directory doesn't contain private headers" >&5
27297 echo "$as_me: error: ${with_tclinclude} directory doesn't contain private headers" >&2;}
27298 { (exit 1); exit 1; }; }
27302 # next check if it came with Tcl configuration file
27303 if test x"${ac_cv_c_tclconfig}" = x ; then
27304 if test -f $ac_cv_c_tclconfig/../generic/tclInt.h ; then
27305 ac_cv_c_tclh=`(cd $ac_cv_c_tclconfig/..; pwd)`
27309 # next check in private source directory
27311 # since ls returns lowest version numbers first, reverse its output
27312 if test x"${ac_cv_c_tclh}" = x ; then
27315 `ls -dr ${srcdir}/../tcl[7-9]* 2>/dev/null` \
27316 ${srcdir}/../../tcl \
27317 `ls -dr ${srcdir}/../../tcl[7-9]* 2>/dev/null` \
27318 ${srcdir}/../../../tcl \
27319 `ls -dr ${srcdir}/../../../tcl[7-9]* 2>/dev/null ` ; do
27320 if test -f $i/generic/tclInt.h ; then
27321 ac_cv_c_tclh=`(cd $i/generic; pwd)`
27326 # finally check in a few common install locations
27328 # since ls returns lowest version numbers first, reverse its output
27329 if test x"${ac_cv_c_tclh}" = x ; then
27331 `ls -dr /usr/local/src/tcl[7-9]* 2>/dev/null` \
27332 `ls -dr /usr/local/lib/tcl[7-9]* 2>/dev/null` \
27333 /usr/local/src/tcl \
27334 /usr/local/lib/tcl \
27335 ${prefix}/include ; do
27336 if test -f $i/generic/tclInt.h ; then
27337 ac_cv_c_tclh=`(cd $i/generic; pwd)`
27342 # see if one is installed
27343 if test x"${ac_cv_c_tclh}" = x ; then
27344 if test "${ac_cv_header_tclInt_h+set}" = set; then
27345 echo "$as_me:$LINENO: checking for tclInt.h" >&5
27346 echo $ECHO_N "checking for tclInt.h... $ECHO_C" >&6
27347 if test "${ac_cv_header_tclInt_h+set}" = set; then
27348 echo $ECHO_N "(cached) $ECHO_C" >&6
27350 echo "$as_me:$LINENO: result: $ac_cv_header_tclInt_h" >&5
27351 echo "${ECHO_T}$ac_cv_header_tclInt_h" >&6
27353 # Is the header compilable?
27354 echo "$as_me:$LINENO: checking tclInt.h usability" >&5
27355 echo $ECHO_N "checking tclInt.h usability... $ECHO_C" >&6
27356 cat >conftest.$ac_ext <<_ACEOF
27359 cat confdefs.h >>conftest.$ac_ext
27360 cat >>conftest.$ac_ext <<_ACEOF
27361 /* end confdefs.h. */
27362 $ac_includes_default
27363 #include <tclInt.h>
27365 rm -f conftest.$ac_objext
27366 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
27367 (eval $ac_compile) 2>conftest.er1
27369 grep -v '^ *+' conftest.er1 >conftest.err
27371 cat conftest.err >&5
27372 echo "$as_me:$LINENO: \$? = $ac_status" >&5
27373 (exit $ac_status); } &&
27374 { ac_try='test -z "$ac_c_werror_flag"
27375 || test ! -s conftest.err'
27376 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
27377 (eval $ac_try) 2>&5
27379 echo "$as_me:$LINENO: \$? = $ac_status" >&5
27380 (exit $ac_status); }; } &&
27381 { ac_try='test -s conftest.$ac_objext'
27382 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
27383 (eval $ac_try) 2>&5
27385 echo "$as_me:$LINENO: \$? = $ac_status" >&5
27386 (exit $ac_status); }; }; then
27387 ac_header_compiler=yes
27389 echo "$as_me: failed program was:" >&5
27390 sed 's/^/| /' conftest.$ac_ext >&5
27392 ac_header_compiler=no
27394 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
27395 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
27396 echo "${ECHO_T}$ac_header_compiler" >&6
27398 # Is the header present?
27399 echo "$as_me:$LINENO: checking tclInt.h presence" >&5
27400 echo $ECHO_N "checking tclInt.h presence... $ECHO_C" >&6
27401 cat >conftest.$ac_ext <<_ACEOF
27404 cat confdefs.h >>conftest.$ac_ext
27405 cat >>conftest.$ac_ext <<_ACEOF
27406 /* end confdefs.h. */
27407 #include <tclInt.h>
27409 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
27410 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
27412 grep -v '^ *+' conftest.er1 >conftest.err
27414 cat conftest.err >&5
27415 echo "$as_me:$LINENO: \$? = $ac_status" >&5
27416 (exit $ac_status); } >/dev/null; then
27417 if test -s conftest.err; then
27418 ac_cpp_err=$ac_c_preproc_warn_flag
27419 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
27426 if test -z "$ac_cpp_err"; then
27427 ac_header_preproc=yes
27429 echo "$as_me: failed program was:" >&5
27430 sed 's/^/| /' conftest.$ac_ext >&5
27432 ac_header_preproc=no
27434 rm -f conftest.err conftest.$ac_ext
27435 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
27436 echo "${ECHO_T}$ac_header_preproc" >&6
27438 # So? What about this header?
27439 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
27441 { echo "$as_me:$LINENO: WARNING: tclInt.h: accepted by the compiler, rejected by the preprocessor!" >&5
27442 echo "$as_me: WARNING: tclInt.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
27443 { echo "$as_me:$LINENO: WARNING: tclInt.h: proceeding with the compiler's result" >&5
27444 echo "$as_me: WARNING: tclInt.h: proceeding with the compiler's result" >&2;}
27445 ac_header_preproc=yes
27448 { echo "$as_me:$LINENO: WARNING: tclInt.h: present but cannot be compiled" >&5
27449 echo "$as_me: WARNING: tclInt.h: present but cannot be compiled" >&2;}
27450 { echo "$as_me:$LINENO: WARNING: tclInt.h: check for missing prerequisite headers?" >&5
27451 echo "$as_me: WARNING: tclInt.h: check for missing prerequisite headers?" >&2;}
27452 { echo "$as_me:$LINENO: WARNING: tclInt.h: see the Autoconf documentation" >&5
27453 echo "$as_me: WARNING: tclInt.h: see the Autoconf documentation" >&2;}
27454 { echo "$as_me:$LINENO: WARNING: tclInt.h: section \"Present But Cannot Be Compiled\"" >&5
27455 echo "$as_me: WARNING: tclInt.h: section \"Present But Cannot Be Compiled\"" >&2;}
27456 { echo "$as_me:$LINENO: WARNING: tclInt.h: proceeding with the preprocessor's result" >&5
27457 echo "$as_me: WARNING: tclInt.h: proceeding with the preprocessor's result" >&2;}
27458 { echo "$as_me:$LINENO: WARNING: tclInt.h: in the future, the compiler will take precedence" >&5
27459 echo "$as_me: WARNING: tclInt.h: in the future, the compiler will take precedence" >&2;}
27462 ## ------------------------------------------ ##
27463 ## Report this to the AC_PACKAGE_NAME lists. ##
27464 ## ------------------------------------------ ##
27467 sed "s/^/$as_me: WARNING: /" >&2
27470 echo "$as_me:$LINENO: checking for tclInt.h" >&5
27471 echo $ECHO_N "checking for tclInt.h... $ECHO_C" >&6
27472 if test "${ac_cv_header_tclInt_h+set}" = set; then
27473 echo $ECHO_N "(cached) $ECHO_C" >&6
27475 ac_cv_header_tclInt_h=$ac_header_preproc
27477 echo "$as_me:$LINENO: result: $ac_cv_header_tclInt_h" >&5
27478 echo "${ECHO_T}$ac_cv_header_tclInt_h" >&6
27481 if test $ac_cv_header_tclInt_h = yes; then
27482 ac_cv_c_tclh=installed
27492 if test x"${ac_cv_c_tclh}" = x ; then
27493 TCLHDIR="# no Tcl private headers found"
27494 { { echo "$as_me:$LINENO: error: Can't find Tcl private headers" >&5
27495 echo "$as_me: error: Can't find Tcl private headers" >&2;}
27496 { (exit 1); exit 1; }; }
27498 if test x"${ac_cv_c_tclh}" != x ; then
27500 if test x"${ac_cv_c_tclh}" = x"installed" ; then
27501 echo "$as_me:$LINENO: result: is installed" >&5
27502 echo "${ECHO_T}is installed" >&6
27505 echo "$as_me:$LINENO: result: found in ${ac_cv_c_tclh}" >&5
27506 echo "${ECHO_T}found in ${ac_cv_c_tclh}" >&6
27507 # this hack is cause the TCLHDIR won't print if there is a "-I" in it.
27508 TCLHDIR="-I${ac_cv_c_tclh}"
27516 # Ok, lets find the tk source trees so we can use the headers
27517 # If the directory (presumably symlink) named "tk" exists, use that one
27518 # in preference to any others. Same logic is used when choosing library
27519 # and again with Tcl. The search order is the best place to look first, then in
27520 # decreasing significance. The loop breaks if the trigger file is found.
27521 # Note the gross little conversion here of srcdir by cd'ing to the found
27522 # directory. This converts the path from a relative to an absolute, so
27523 # recursive cache variables for the path will work right. We check all
27524 # the possible paths in one loop rather than many seperate loops to speed
27526 # the alternative search directory is involked by --with-tkinclude
27529 echo "$as_me:$LINENO: checking for Tk private headers" >&5
27530 echo $ECHO_N "checking for Tk private headers... $ECHO_C" >&6
27532 # Check whether --with-tkinclude or --without-tkinclude was given.
27533 if test "${with_tkinclude+set}" = set; then
27534 withval="$with_tkinclude"
27535 with_tkinclude=${withval}
27537 if test "${ac_cv_c_tkh+set}" = set; then
27538 echo $ECHO_N "(cached) $ECHO_C" >&6
27541 # first check to see if --with-tkinclude was specified
27542 if test x"${with_tkinclude}" != x ; then
27543 if test -f ${with_tkinclude}/tk.h ; then
27544 ac_cv_c_tkh=`(cd ${with_tkinclude}; pwd)`
27545 elif test -f ${with_tkinclude}/generic/tk.h ; then
27546 ac_cv_c_tkh=`(cd ${with_tkinclude}/generic; pwd)`
27548 { { echo "$as_me:$LINENO: error: ${with_tkinclude} directory doesn't contain private headers" >&5
27549 echo "$as_me: error: ${with_tkinclude} directory doesn't contain private headers" >&2;}
27550 { (exit 1); exit 1; }; }
27554 # next check if it came with Tk configuration file
27555 if test x"${ac_cv_c_tkconfig}" = x ; then
27556 if test -f $ac_cv_c_tkconfig/../generic/tk.h ; then
27557 ac_cv_c_tkh=`(cd $ac_cv_c_tkconfig/..; pwd)`
27561 # next check in private source directory
27563 # since ls returns lowest version numbers first, reverse its output
27564 if test x"${ac_cv_c_tkh}" = x ; then
27567 `ls -dr ${srcdir}/../tk[4-9]* 2>/dev/null` \
27568 ${srcdir}/../../tk \
27569 `ls -dr ${srcdir}/../../tk[4-9]* 2>/dev/null` \
27570 ${srcdir}/../../../tk \
27571 `ls -dr ${srcdir}/../../../tk[4-9]* 2>/dev/null ` ; do
27572 if test -f $i/generic/tk.h ; then
27573 ac_cv_c_tkh=`(cd $i/generic; pwd)`
27578 # finally check in a few common install locations
27580 # since ls returns lowest version numbers first, reverse its output
27581 if test x"${ac_cv_c_tkh}" = x ; then
27583 `ls -dr /usr/local/src/tk[4-9]* 2>/dev/null` \
27584 `ls -dr /usr/local/lib/tk[4-9]* 2>/dev/null` \
27585 /usr/local/src/tk \
27586 /usr/local/lib/tk \
27587 ${prefix}/include ; do
27588 if test -f $i/generic/tk.h ; then
27589 ac_cv_c_tkh=`(cd $i/generic; pwd)`
27594 # see if one is installed
27595 if test x"${ac_cv_c_tkh}" = x ; then
27596 if test "${ac_cv_header_tk_h+set}" = set; then
27597 echo "$as_me:$LINENO: checking for tk.h" >&5
27598 echo $ECHO_N "checking for tk.h... $ECHO_C" >&6
27599 if test "${ac_cv_header_tk_h+set}" = set; then
27600 echo $ECHO_N "(cached) $ECHO_C" >&6
27602 echo "$as_me:$LINENO: result: $ac_cv_header_tk_h" >&5
27603 echo "${ECHO_T}$ac_cv_header_tk_h" >&6
27605 # Is the header compilable?
27606 echo "$as_me:$LINENO: checking tk.h usability" >&5
27607 echo $ECHO_N "checking tk.h usability... $ECHO_C" >&6
27608 cat >conftest.$ac_ext <<_ACEOF
27611 cat confdefs.h >>conftest.$ac_ext
27612 cat >>conftest.$ac_ext <<_ACEOF
27613 /* end confdefs.h. */
27614 $ac_includes_default
27617 rm -f conftest.$ac_objext
27618 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
27619 (eval $ac_compile) 2>conftest.er1
27621 grep -v '^ *+' conftest.er1 >conftest.err
27623 cat conftest.err >&5
27624 echo "$as_me:$LINENO: \$? = $ac_status" >&5
27625 (exit $ac_status); } &&
27626 { ac_try='test -z "$ac_c_werror_flag"
27627 || test ! -s conftest.err'
27628 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
27629 (eval $ac_try) 2>&5
27631 echo "$as_me:$LINENO: \$? = $ac_status" >&5
27632 (exit $ac_status); }; } &&
27633 { ac_try='test -s conftest.$ac_objext'
27634 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
27635 (eval $ac_try) 2>&5
27637 echo "$as_me:$LINENO: \$? = $ac_status" >&5
27638 (exit $ac_status); }; }; then
27639 ac_header_compiler=yes
27641 echo "$as_me: failed program was:" >&5
27642 sed 's/^/| /' conftest.$ac_ext >&5
27644 ac_header_compiler=no
27646 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
27647 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
27648 echo "${ECHO_T}$ac_header_compiler" >&6
27650 # Is the header present?
27651 echo "$as_me:$LINENO: checking tk.h presence" >&5
27652 echo $ECHO_N "checking tk.h presence... $ECHO_C" >&6
27653 cat >conftest.$ac_ext <<_ACEOF
27656 cat confdefs.h >>conftest.$ac_ext
27657 cat >>conftest.$ac_ext <<_ACEOF
27658 /* end confdefs.h. */
27661 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
27662 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
27664 grep -v '^ *+' conftest.er1 >conftest.err
27666 cat conftest.err >&5
27667 echo "$as_me:$LINENO: \$? = $ac_status" >&5
27668 (exit $ac_status); } >/dev/null; then
27669 if test -s conftest.err; then
27670 ac_cpp_err=$ac_c_preproc_warn_flag
27671 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
27678 if test -z "$ac_cpp_err"; then
27679 ac_header_preproc=yes
27681 echo "$as_me: failed program was:" >&5
27682 sed 's/^/| /' conftest.$ac_ext >&5
27684 ac_header_preproc=no
27686 rm -f conftest.err conftest.$ac_ext
27687 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
27688 echo "${ECHO_T}$ac_header_preproc" >&6
27690 # So? What about this header?
27691 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
27693 { echo "$as_me:$LINENO: WARNING: tk.h: accepted by the compiler, rejected by the preprocessor!" >&5
27694 echo "$as_me: WARNING: tk.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
27695 { echo "$as_me:$LINENO: WARNING: tk.h: proceeding with the compiler's result" >&5
27696 echo "$as_me: WARNING: tk.h: proceeding with the compiler's result" >&2;}
27697 ac_header_preproc=yes
27700 { echo "$as_me:$LINENO: WARNING: tk.h: present but cannot be compiled" >&5
27701 echo "$as_me: WARNING: tk.h: present but cannot be compiled" >&2;}
27702 { echo "$as_me:$LINENO: WARNING: tk.h: check for missing prerequisite headers?" >&5
27703 echo "$as_me: WARNING: tk.h: check for missing prerequisite headers?" >&2;}
27704 { echo "$as_me:$LINENO: WARNING: tk.h: see the Autoconf documentation" >&5
27705 echo "$as_me: WARNING: tk.h: see the Autoconf documentation" >&2;}
27706 { echo "$as_me:$LINENO: WARNING: tk.h: section \"Present But Cannot Be Compiled\"" >&5
27707 echo "$as_me: WARNING: tk.h: section \"Present But Cannot Be Compiled\"" >&2;}
27708 { echo "$as_me:$LINENO: WARNING: tk.h: proceeding with the preprocessor's result" >&5
27709 echo "$as_me: WARNING: tk.h: proceeding with the preprocessor's result" >&2;}
27710 { echo "$as_me:$LINENO: WARNING: tk.h: in the future, the compiler will take precedence" >&5
27711 echo "$as_me: WARNING: tk.h: in the future, the compiler will take precedence" >&2;}
27714 ## ------------------------------------------ ##
27715 ## Report this to the AC_PACKAGE_NAME lists. ##
27716 ## ------------------------------------------ ##
27719 sed "s/^/$as_me: WARNING: /" >&2
27722 echo "$as_me:$LINENO: checking for tk.h" >&5
27723 echo $ECHO_N "checking for tk.h... $ECHO_C" >&6
27724 if test "${ac_cv_header_tk_h+set}" = set; then
27725 echo $ECHO_N "(cached) $ECHO_C" >&6
27727 ac_cv_header_tk_h=$ac_header_preproc
27729 echo "$as_me:$LINENO: result: $ac_cv_header_tk_h" >&5
27730 echo "${ECHO_T}$ac_cv_header_tk_h" >&6
27733 if test $ac_cv_header_tk_h = yes; then
27734 ac_cv_c_tkh=installed
27744 if test x"${ac_cv_c_tkh}" != x ; then
27746 if test x"${ac_cv_c_tkh}" = x"installed" ; then
27747 echo "$as_me:$LINENO: result: is installed" >&5
27748 echo "${ECHO_T}is installed" >&6
27751 echo "$as_me:$LINENO: result: found in ${ac_cv_c_tkh}" >&5
27752 echo "${ECHO_T}found in ${ac_cv_c_tkh}" >&6
27753 # this hack is cause the TKHDIR won't print if there is a "-I" in it.
27754 TKHDIR="-I${ac_cv_c_tkh}"
27757 TKHDIR="# no Tk directory found"
27758 { echo "$as_me:$LINENO: WARNING: Can't find Tk private headers" >&5
27759 echo "$as_me: WARNING: Can't find Tk private headers" >&2;}
27766 echo "$as_me:$LINENO: checking for Itcl private headers. srcdir=${srcdir}" >&5
27767 echo $ECHO_N "checking for Itcl private headers. srcdir=${srcdir}... $ECHO_C" >&6
27768 if test x"${ac_cv_c_itclh}" = x ; then
27769 for i in ${srcdir}/../itcl ${srcdir}/../../itcl ${srcdir}/../../../itcl ${srcdir}/../itcl/itcl; do
27770 if test -f $i/generic/itcl.h ; then
27771 ac_cv_c_itclh=`(cd $i/generic; pwd)`
27776 if test x"${ac_cv_c_itclh}" = x ; then
27777 ITCLHDIR="# no Itcl private headers found"
27778 { { echo "$as_me:$LINENO: error: Can't find Itcl private headers" >&5
27779 echo "$as_me: error: Can't find Itcl private headers" >&2;}
27780 { (exit 1); exit 1; }; }
27782 if test x"${ac_cv_c_itclh}" != x ; then
27783 ITCLHDIR="-I${ac_cv_c_itclh}"
27785 # should always be here
27786 # ITCLLIB="../itcl/itcl/unix/libitcl.a"
27791 echo "$as_me:$LINENO: checking for Itk private headers. srcdir=${srcdir}" >&5
27792 echo $ECHO_N "checking for Itk private headers. srcdir=${srcdir}... $ECHO_C" >&6
27793 if test x"${ac_cv_c_itkh}" = x ; then
27794 for i in ${srcdir}/../itcl ${srcdir}/../../itcl ${srcdir}/../../../itcl ${srcdir}/../itcl/itk; do
27795 if test -f $i/generic/itk.h ; then
27796 ac_cv_c_itkh=`(cd $i/generic; pwd)`
27801 if test x"${ac_cv_c_itkh}" = x ; then
27802 ITKHDIR="# no Itk private headers found"
27803 { { echo "$as_me:$LINENO: error: Can't find Itk private headers" >&5
27804 echo "$as_me: error: Can't find Itk private headers" >&2;}
27805 { (exit 1); exit 1; }; }
27807 if test x"${ac_cv_c_itkh}" != x ; then
27808 ITKHDIR="-I${ac_cv_c_itkh}"
27810 # should always be here
27811 # ITKLIB="../itcl/itk/unix/libitk.a"
27817 # now look for Tk library stuff
27819 tkdir="../tk/${configdir}/"
27821 TK_DEPS="${tkdir}${TK_LIB_FILE}"
27823 # now look for Itcl library stuff
27827 # Ok, lets find the itcl configuration
27828 # First, look for one uninstalled.
27829 # the alternative search directory is invoked by --with-itclconfig
27832 if test x"${no_itcl}" = x ; then
27833 # we reset no_itcl in case something fails here
27836 # Check whether --with-itclconfig or --without-itclconfig was given.
27837 if test "${with_itclconfig+set}" = set; then
27838 withval="$with_itclconfig"
27839 with_itclconfig=${withval}
27841 echo "$as_me:$LINENO: checking for Itcl configuration" >&5
27842 echo $ECHO_N "checking for Itcl configuration... $ECHO_C" >&6
27843 if test "${ac_cv_c_itclconfig+set}" = set; then
27844 echo $ECHO_N "(cached) $ECHO_C" >&6
27848 # First check to see if --with-itclconfig was specified.
27849 if test x"${with_itclconfig}" != x ; then
27850 if test -f "${with_itclconfig}/itclConfig.sh" ; then
27851 ac_cv_c_itclconfig=`(cd ${with_itclconfig}; pwd)`
27853 { { echo "$as_me:$LINENO: error: ${with_itclconfig} directory doesn't contain itclConfig.sh" >&5
27854 echo "$as_me: error: ${with_itclconfig} directory doesn't contain itclConfig.sh" >&2;}
27855 { (exit 1); exit 1; }; }
27859 # then check for a private Itcl library
27860 if test x"${ac_cv_c_itclconfig}" = x ; then
27863 `ls -dr ../itcl[4-9]*/itcl 2>/dev/null` \
27865 `ls -dr ../../itcl[4-9]*/itcl 2>/dev/null` \
27867 `ls -dr ../../../itcl[4-9]*/itcl 2>/dev/null` ; do
27868 if test -f "$i/itclConfig.sh" ; then
27869 ac_cv_c_itclconfig=`(cd $i; pwd)`
27874 # check in a few common install locations
27875 if test x"${ac_cv_c_itclconfig}" = x ; then
27876 for i in `ls -d ${prefix}/lib /usr/local/lib 2>/dev/null` ; do
27877 if test -f "$i/itclConfig.sh" ; then
27878 ac_cv_c_itclconfig=`(cd $i; pwd)`
27883 # check in a few other private locations
27884 if test x"${ac_cv_c_itclconfig}" = x ; then
27886 ${srcdir}/../itcl/itcl \
27887 `ls -dr ${srcdir}/../itcl[4-9]*/itcl 2>/dev/null` ; do
27888 if test -f "$i/itclConfig.sh" ; then
27889 ac_cv_c_itclconfig=`(cd $i; pwd)`
27897 if test x"${ac_cv_c_itclconfig}" = x ; then
27898 ITCLCONFIG="# no Itcl configs found"
27899 { echo "$as_me:$LINENO: WARNING: Can't find Itcl configuration definitions" >&5
27900 echo "$as_me: WARNING: Can't find Itcl configuration definitions" >&2;}
27903 ITCLCONFIG=${ac_cv_c_itclconfig}/itclConfig.sh
27904 echo "$as_me:$LINENO: result: found $ITCLCONFIG" >&5
27905 echo "${ECHO_T}found $ITCLCONFIG" >&6
27909 if test -z "${no_itcl}"; then
27911 if test -f "$ITCLCONFIG" ; then
27926 ITCLLIB="${ITCL_BUILD_LIB_SPEC}"
27927 ITCL_DEPS="${ITCL_LIB_FULL_PATH}"
27931 # now look for Itk library stuff
27934 # Ok, lets find the itk configuration
27935 # First, look for one uninstalled.
27936 # the alternative search directory is invoked by --with-itkconfig
27939 if test x"${no_itk}" = x ; then
27940 # we reset no_itk in case something fails here
27943 # Check whether --with-itkconfig or --without-itkconfig was given.
27944 if test "${with_itkconfig+set}" = set; then
27945 withval="$with_itkconfig"
27946 with_itkconfig=${withval}
27948 echo "$as_me:$LINENO: checking for Itk configuration" >&5
27949 echo $ECHO_N "checking for Itk configuration... $ECHO_C" >&6
27950 if test "${ac_cv_c_itkconfig+set}" = set; then
27951 echo $ECHO_N "(cached) $ECHO_C" >&6
27955 # First check to see if --with-itkconfig was specified.
27956 if test x"${with_itkconfig}" != x ; then
27957 if test -f "${with_itkconfig}/itkConfig.sh" ; then
27958 ac_cv_c_itkconfig=`(cd ${with_itkconfig}; pwd)`
27960 { { echo "$as_me:$LINENO: error: ${with_itkconfig} directory doesn't contain itkConfig.sh" >&5
27961 echo "$as_me: error: ${with_itkconfig} directory doesn't contain itkConfig.sh" >&2;}
27962 { (exit 1); exit 1; }; }
27966 # then check for a private Itk library
27967 if test x"${ac_cv_c_itkconfig}" = x ; then
27970 `ls -dr ../itcl[4-9]*/itk 2>/dev/null` \
27972 `ls -dr ../../itcl[4-9]*/itk 2>/dev/null` \
27974 `ls -dr ../../../itcl[4-9]*/itk 2>/dev/null` ; do
27975 if test -f "$i/itkConfig.sh" ; then
27976 ac_cv_c_itkconfig=`(cd $i; pwd)`
27981 # check in a few common install locations
27982 if test x"${ac_cv_c_itkconfig}" = x ; then
27983 for i in `ls -d ${prefix}/lib /usr/local/lib 2>/dev/null` ; do
27984 if test -f "$i/itkConfig.sh" ; then
27985 ac_cv_c_itkconfig=`(cd $i; pwd)`
27990 # check in a few other private locations
27991 if test x"${ac_cv_c_itkconfig}" = x ; then
27993 ${srcdir}/../itcl/itk \
27994 `ls -dr ${srcdir}/../itcl[4-9]*/itk 2>/dev/null` ; do
27995 if test -f "$i/itkConfig.sh" ; then
27996 ac_cv_c_itkconfig=`(cd $i; pwd)`
28004 if test x"${ac_cv_c_itkconfig}" = x ; then
28005 ITKCONFIG="# no Itk configs found"
28006 { echo "$as_me:$LINENO: WARNING: Can't find Itk configuration definitions" >&5
28007 echo "$as_me: WARNING: Can't find Itk configuration definitions" >&2;}
28010 ITKCONFIG=${ac_cv_c_itkconfig}/itkConfig.sh
28011 echo "$as_me:$LINENO: result: found $ITKCONFIG" >&5
28012 echo "${ECHO_T}found $ITKCONFIG" >&6
28017 if test -z "${no_itcl}"; then
28019 if test -f "$ITKCONFIG" ; then
28034 ITKLIB="${ITK_BUILD_LIB_SPEC}"
28035 ITK_DEPS="${ITK_LIB_FULL_PATH}"
28038 ENABLE_CFLAGS="${ENABLE_CFLAGS} \$(SUBDIR_GDBTK_CFLAGS)"
28040 # Include some libraries that Tcl and Tk want.
28041 TCL_LIBS='$(LIBGUI) $(ITCL) $(ITK) $(TK) $(TCL) $(X11_LDFLAGS) $(X11_LIBS)'
28042 # Yes, the ordering seems wrong here. But it isn't.
28043 # TK_LIBS is the list of libraries that need to be linked
28044 # after Tcl/Tk. Note that this isn't put into LIBS. If it
28045 # were in LIBS then any link tests after this point would
28046 # try to include things like `$(LIBGUI)', which wouldn't work.
28047 GDBTKLIBS="${TCL_LIBS} ${TK_LIBS}"
28049 CONFIG_OBS="${CONFIG_OBS} \$(SUBDIR_GDBTK_OBS)"
28050 CONFIG_DEPS="${CONFIG_DEPS} \$(SUBDIR_GDBTK_DEPS)"
28051 CONFIG_SRCS="${CONFIG_SRCS} \$(SUBDIR_GDBTK_SRCS)"
28052 CONFIG_ALL="${CONFIG_ALL} all-gdbtk"
28053 CONFIG_CLEAN="${CONFIG_CLEAN} clean-gdbtk"
28054 CONFIG_INSTALL="${CONFIG_INSTALL} install-gdbtk"
28055 CONFIG_UNINSTALL="${CONFIG_UNINSTALL} uninstall-gdbtk"
28057 if test x$gdb_cv_os_cygwin = xyes; then
28058 WIN32LIBS="${WIN32LIBS} -lshell32 -lgdi32 -lcomdlg32 -ladvapi32"
28059 WIN32LDAPP="-Wl,--subsystem,console"
28060 CONFIG_OBS="${CONFIG_OBS} gdbres.o"
28067 subdirs="$subdirs gdbtk"
28084 echo "$as_me:$LINENO: checking for X" >&5
28085 echo $ECHO_N "checking for X... $ECHO_C" >&6
28088 # Check whether --with-x or --without-x was given.
28089 if test "${with_x+set}" = set; then
28093 # $have_x is `yes', `no', `disabled', or empty when we do not yet know.
28094 if test "x$with_x" = xno; then
28095 # The user explicitly disabled X.
28098 if test "x$x_includes" != xNONE && test "x$x_libraries" != xNONE; then
28099 # Both variables are already set.
28102 if test "${ac_cv_have_x+set}" = set; then
28103 echo $ECHO_N "(cached) $ECHO_C" >&6
28105 # One or both of the vars are not set, and there is no cached value.
28106 ac_x_includes=no ac_x_libraries=no
28107 rm -fr conftest.dir
28108 if mkdir conftest.dir; then
28110 # Make sure to not put "make" in the Imakefile rules, since we grep it out.
28111 cat >Imakefile <<'_ACEOF'
28113 @echo 'ac_im_incroot="${INCROOT}"; ac_im_usrlibdir="${USRLIBDIR}"; ac_im_libdir="${LIBDIR}"'
28115 if (xmkmf) >/dev/null 2>/dev/null && test -f Makefile; then
28116 # GNU make sometimes prints "make[1]: Entering...", which would confuse us.
28117 eval `${MAKE-make} acfindx 2>/dev/null | grep -v make`
28118 # Open Windows xmkmf reportedly sets LIBDIR instead of USRLIBDIR.
28119 for ac_extension in a so sl; do
28120 if test ! -f $ac_im_usrlibdir/libX11.$ac_extension &&
28121 test -f $ac_im_libdir/libX11.$ac_extension; then
28122 ac_im_usrlibdir=$ac_im_libdir; break
28125 # Screen out bogus values from the imake configuration. They are
28126 # bogus both because they are the default anyway, and because
28127 # using them would break gcc on systems where it needs fixed includes.
28128 case $ac_im_incroot in
28130 *) test -f "$ac_im_incroot/X11/Xos.h" && ac_x_includes=$ac_im_incroot;;
28132 case $ac_im_usrlibdir in
28133 /usr/lib | /lib) ;;
28134 *) test -d "$ac_im_usrlibdir" && ac_x_libraries=$ac_im_usrlibdir ;;
28138 rm -fr conftest.dir
28141 # Standard set of common directories for X headers.
28142 # Check X11 before X11Rn because it is often a symlink to the current release.
28154 /usr/local/X11/include
28155 /usr/local/X11R6/include
28156 /usr/local/X11R5/include
28157 /usr/local/X11R4/include
28159 /usr/local/include/X11
28160 /usr/local/include/X11R6
28161 /usr/local/include/X11R5
28162 /usr/local/include/X11R4
28166 /usr/XFree86/include/X11
28170 /usr/unsupported/include
28171 /usr/athena/include
28172 /usr/local/x11r5/include
28173 /usr/lpp/Xamples/include
28175 /usr/openwin/include
28176 /usr/openwin/share/include'
28178 if test "$ac_x_includes" = no; then
28179 # Guess where to find include files, by looking for Intrinsic.h.
28180 # First, try using that file with no special directory specified.
28181 cat >conftest.$ac_ext <<_ACEOF
28184 cat confdefs.h >>conftest.$ac_ext
28185 cat >>conftest.$ac_ext <<_ACEOF
28186 /* end confdefs.h. */
28187 #include <X11/Intrinsic.h>
28189 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
28190 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
28192 grep -v '^ *+' conftest.er1 >conftest.err
28194 cat conftest.err >&5
28195 echo "$as_me:$LINENO: \$? = $ac_status" >&5
28196 (exit $ac_status); } >/dev/null; then
28197 if test -s conftest.err; then
28198 ac_cpp_err=$ac_c_preproc_warn_flag
28199 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
28206 if test -z "$ac_cpp_err"; then
28207 # We can compile using X headers with no special include directory.
28210 echo "$as_me: failed program was:" >&5
28211 sed 's/^/| /' conftest.$ac_ext >&5
28213 for ac_dir in $ac_x_header_dirs; do
28214 if test -r "$ac_dir/X11/Intrinsic.h"; then
28215 ac_x_includes=$ac_dir
28220 rm -f conftest.err conftest.$ac_ext
28221 fi # $ac_x_includes = no
28223 if test "$ac_x_libraries" = no; then
28224 # Check for the libraries.
28225 # See if we find them without any special options.
28226 # Don't add to $LIBS permanently.
28229 cat >conftest.$ac_ext <<_ACEOF
28232 cat confdefs.h >>conftest.$ac_ext
28233 cat >>conftest.$ac_ext <<_ACEOF
28234 /* end confdefs.h. */
28235 #include <X11/Intrinsic.h>
28244 rm -f conftest.$ac_objext conftest$ac_exeext
28245 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
28246 (eval $ac_link) 2>conftest.er1
28248 grep -v '^ *+' conftest.er1 >conftest.err
28250 cat conftest.err >&5
28251 echo "$as_me:$LINENO: \$? = $ac_status" >&5
28252 (exit $ac_status); } &&
28253 { ac_try='test -z "$ac_c_werror_flag"
28254 || test ! -s conftest.err'
28255 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
28256 (eval $ac_try) 2>&5
28258 echo "$as_me:$LINENO: \$? = $ac_status" >&5
28259 (exit $ac_status); }; } &&
28260 { ac_try='test -s conftest$ac_exeext'
28261 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
28262 (eval $ac_try) 2>&5
28264 echo "$as_me:$LINENO: \$? = $ac_status" >&5
28265 (exit $ac_status); }; }; then
28267 # We can link X programs with no special library path.
28270 echo "$as_me: failed program was:" >&5
28271 sed 's/^/| /' conftest.$ac_ext >&5
28274 for ac_dir in `echo "$ac_x_includes $ac_x_header_dirs" | sed s/include/lib/g`
28276 # Don't even attempt the hair of trying to link an X program!
28277 for ac_extension in a so sl; do
28278 if test -r $ac_dir/libXt.$ac_extension; then
28279 ac_x_libraries=$ac_dir
28285 rm -f conftest.err conftest.$ac_objext \
28286 conftest$ac_exeext conftest.$ac_ext
28287 fi # $ac_x_libraries = no
28289 if test "$ac_x_includes" = no || test "$ac_x_libraries" = no; then
28290 # Didn't find X anywhere. Cache the known absence of X.
28291 ac_cv_have_x="have_x=no"
28293 # Record where we found X for the cache.
28294 ac_cv_have_x="have_x=yes \
28295 ac_x_includes=$ac_x_includes ac_x_libraries=$ac_x_libraries"
28300 eval "$ac_cv_have_x"
28303 if test "$have_x" != yes; then
28304 echo "$as_me:$LINENO: result: $have_x" >&5
28305 echo "${ECHO_T}$have_x" >&6
28308 # If each of the values was on the command line, it overrides each guess.
28309 test "x$x_includes" = xNONE && x_includes=$ac_x_includes
28310 test "x$x_libraries" = xNONE && x_libraries=$ac_x_libraries
28311 # Update the cache value to reflect the command line values.
28312 ac_cv_have_x="have_x=yes \
28313 ac_x_includes=$x_includes ac_x_libraries=$x_libraries"
28314 echo "$as_me:$LINENO: result: libraries $x_libraries, headers $x_includes" >&5
28315 echo "${ECHO_T}libraries $x_libraries, headers $x_includes" >&6
28319 # Check whether we should enable the TUI, but only do so if we really
28321 if test x"$enable_tui" = xyes; then
28322 if test -d $srcdir/tui; then
28323 if test "$ac_cv_search_waddstr" != no; then
28324 CONFIG_OBS="$CONFIG_OBS \$(SUBDIR_TUI_OBS)"
28325 CONFIG_DEPS="$CONFIG_DEPS \$(SUBDIR_TUI_DEPS)"
28326 CONFIG_SRCS="$CONFIG_SRCS \$(SUBDIR_TUI_SRCS)"
28327 CONFIG_INITS="$CONFIG_INITS \$(SUBDIR_TUI_INITS)"
28328 ENABLE_CFLAGS="$ENABLE_CFLAGS \$(SUBDIR_TUI_CFLAGS)"
28329 CONFIG_ALL="${CONFIG_ALL} all-tui"
28330 CONFIG_CLEAN="${CONFIG_CLEAN} clean-tui"
28331 CONFIG_INSTALL="${CONFIG_INSTALL} install-tui"
28332 CONFIG_UNINSTALL="${CONFIG_UNINSTALL} uninstall-tui"
28334 { echo "$as_me:$LINENO: WARNING: no enhanced curses library found; disabling TUI" >&5
28335 echo "$as_me: WARNING: no enhanced curses library found; disabling TUI" >&2;}
28340 # Unlike the sim directory, whether a simulator is linked is controlled by
28341 # presence of a gdb_sim definition in the target configure.tgt entry.
28342 # This code just checks for a few cases where we'd like to ignore those
28343 # definitions, even when they're present in the '.mt' file. These cases
28344 # are when --disable-sim is specified, or if the simulator directory is
28345 # not part of the source tree.
28347 # Check whether --enable-sim or --disable-sim was given.
28348 if test "${enable_sim+set}" = set; then
28349 enableval="$enable_sim"
28350 echo "enable_sim = $enable_sim";
28351 echo "enableval = ${enableval}";
28352 case "${enableval}" in
28353 yes) ignore_sim=false ;;
28354 no) ignore_sim=true ;;
28355 *) ignore_sim=false ;;
28361 if test ! -d "${srcdir}/../sim"; then
28367 if test "${ignore_sim}" = "false"; then
28368 if test x"${gdb_sim}" != x ; then
28370 SIM_OBS="remote-sim.o"
28372 cat >>confdefs.h <<\_ACEOF
28392 # List of host floatformats.
28394 cat >>confdefs.h <<_ACEOF
28395 #define GDB_HOST_FLOAT_FORMAT $gdb_host_float_format
28399 cat >>confdefs.h <<_ACEOF
28400 #define GDB_HOST_DOUBLE_FORMAT $gdb_host_double_format
28404 cat >>confdefs.h <<_ACEOF
28405 #define GDB_HOST_LONG_DOUBLE_FORMAT $gdb_host_long_double_format
28409 # target_subdir is used by the testsuite to find the target libraries.
28411 if test "${host}" != "${target}"; then
28412 target_subdir="${target_alias}/"
28417 if test "${gdb_native}" = "yes"; then
28418 host_makefile_frag=${srcdir}/config/${gdb_host_cpu}/${gdb_host}.mh
28419 if test ! -f ${host_makefile_frag}; then
28420 { { echo "$as_me:$LINENO: error: \"*** Gdb does not support native target ${host}\"" >&5
28421 echo "$as_me: error: \"*** Gdb does not support native target ${host}\"" >&2;}
28422 { (exit 1); exit 1; }; }
28424 frags="$frags $host_makefile_frag"
28426 host_makefile_frag=/dev/null
28432 if test "${gdb_native}" = "yes"; then
28433 # We pick this up from the host configuration file (.mh) because we
28434 # do not have a native configuration Makefile fragment.
28435 nativefile=`sed -n '
28436 s/NAT_FILE[ ]*=[ ]*\([^ ]*\)/\1/p
28437 ' ${host_makefile_frag}`
28441 if test x"${gdb_osabi}" != x ; then
28443 cat >>confdefs.h <<_ACEOF
28444 #define GDB_OSABI_DEFAULT $gdb_osabi
28449 # Enable multi-ice-gdb-server.
28450 # Check whether --enable-multi-ice or --disable-multi-ice was given.
28451 if test "${enable_multi_ice+set}" = set; then
28452 enableval="$enable_multi_ice"
28456 *) { { echo "$as_me:$LINENO: error: bad value $enableval for --enable-multi-ice" >&5
28457 echo "$as_me: error: bad value $enableval for --enable-multi-ice" >&2;}
28458 { (exit 1); exit 1; }; } ;;
28461 if test "x$enable_multi_ice" = xyes; then
28464 subdirs="$subdirs multi-ice"
28468 # We only build gdbserver automatically in a native configuration.
28469 if test "$gdb_native" = "yes"; then
28470 echo "$as_me:$LINENO: checking whether gdbserver is supported on this host" >&5
28471 echo $ECHO_N "checking whether gdbserver is supported on this host... $ECHO_C" >&6
28472 if test "x$build_gdbserver" = xyes; then
28473 echo "$as_me:$LINENO: result: yes" >&5
28474 echo "${ECHO_T}yes" >&6
28477 subdirs="$subdirs gdbserver"
28480 echo "$as_me:$LINENO: result: no" >&5
28481 echo "${ECHO_T}no" >&6
28485 # If nativefile (NAT_FILE) is not set in config/*/*.m[ht] files, we link
28486 # to an empty version.
28493 if test "${nativefile}" != ""; then
28495 case "${nativefile}" in
28496 nm-*.h ) GDB_NM_FILE="config/${gdb_host_cpu}/${nativefile}" ;;
28497 * ) GDB_NM_FILE="${nativefile}"
28499 files="${files} ${GDB_NM_FILE}"
28500 links="${links} nm.h"
28502 cat >>confdefs.h <<_ACEOF
28503 #define GDB_NM_FILE "${GDB_NM_FILE}"
28509 ac_sources="$files"
28511 while test -n "$ac_sources"; do
28512 set $ac_dests; ac_dest=$1; shift; ac_dests=$*
28513 set $ac_sources; ac_source=$1; shift; ac_sources=$*
28514 ac_config_links_1="$ac_config_links_1 $ac_dest:$ac_source"
28516 ac_config_links="$ac_config_links $ac_config_links_1"
28523 cat >>confdefs.h <<\_ACEOF
28524 #define GDB_DEFAULT_HOST_CHARSET "ISO-8859-1"
28531 # Check whether --with-libiconv-prefix or --without-libiconv-prefix was given.
28532 if test "${with_libiconv_prefix+set}" = set; then
28533 withval="$with_libiconv_prefix"
28535 for dir in `echo "$withval" | tr : ' '`; do
28536 if test -d $dir/include; then CPPFLAGS="$CPPFLAGS -I$dir/include"; fi
28537 if test -d $dir/lib; then LDFLAGS="$LDFLAGS -L$dir/lib"; fi
28542 echo "$as_me:$LINENO: checking for iconv" >&5
28543 echo $ECHO_N "checking for iconv... $ECHO_C" >&6
28544 if test "${am_cv_func_iconv+set}" = set; then
28545 echo $ECHO_N "(cached) $ECHO_C" >&6
28548 am_cv_func_iconv="no, consider installing GNU libiconv"
28550 cat >conftest.$ac_ext <<_ACEOF
28553 cat confdefs.h >>conftest.$ac_ext
28554 cat >>conftest.$ac_ext <<_ACEOF
28555 /* end confdefs.h. */
28556 #include <stdlib.h>
28561 iconv_t cd = iconv_open("","");
28562 iconv(cd,NULL,NULL,NULL,NULL);
28568 rm -f conftest.$ac_objext conftest$ac_exeext
28569 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
28570 (eval $ac_link) 2>conftest.er1
28572 grep -v '^ *+' conftest.er1 >conftest.err
28574 cat conftest.err >&5
28575 echo "$as_me:$LINENO: \$? = $ac_status" >&5
28576 (exit $ac_status); } &&
28577 { ac_try='test -z "$ac_c_werror_flag"
28578 || test ! -s conftest.err'
28579 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
28580 (eval $ac_try) 2>&5
28582 echo "$as_me:$LINENO: \$? = $ac_status" >&5
28583 (exit $ac_status); }; } &&
28584 { ac_try='test -s conftest$ac_exeext'
28585 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
28586 (eval $ac_try) 2>&5
28588 echo "$as_me:$LINENO: \$? = $ac_status" >&5
28589 (exit $ac_status); }; }; then
28590 am_cv_func_iconv=yes
28592 echo "$as_me: failed program was:" >&5
28593 sed 's/^/| /' conftest.$ac_ext >&5
28596 rm -f conftest.err conftest.$ac_objext \
28597 conftest$ac_exeext conftest.$ac_ext
28598 if test "$am_cv_func_iconv" != yes; then
28599 am_save_LIBS="$LIBS"
28600 LIBS="$LIBS -liconv"
28601 cat >conftest.$ac_ext <<_ACEOF
28604 cat confdefs.h >>conftest.$ac_ext
28605 cat >>conftest.$ac_ext <<_ACEOF
28606 /* end confdefs.h. */
28607 #include <stdlib.h>
28612 iconv_t cd = iconv_open("","");
28613 iconv(cd,NULL,NULL,NULL,NULL);
28619 rm -f conftest.$ac_objext conftest$ac_exeext
28620 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
28621 (eval $ac_link) 2>conftest.er1
28623 grep -v '^ *+' conftest.er1 >conftest.err
28625 cat conftest.err >&5
28626 echo "$as_me:$LINENO: \$? = $ac_status" >&5
28627 (exit $ac_status); } &&
28628 { ac_try='test -z "$ac_c_werror_flag"
28629 || test ! -s conftest.err'
28630 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
28631 (eval $ac_try) 2>&5
28633 echo "$as_me:$LINENO: \$? = $ac_status" >&5
28634 (exit $ac_status); }; } &&
28635 { ac_try='test -s conftest$ac_exeext'
28636 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
28637 (eval $ac_try) 2>&5
28639 echo "$as_me:$LINENO: \$? = $ac_status" >&5
28640 (exit $ac_status); }; }; then
28641 am_cv_lib_iconv=yes
28642 am_cv_func_iconv=yes
28644 echo "$as_me: failed program was:" >&5
28645 sed 's/^/| /' conftest.$ac_ext >&5
28648 rm -f conftest.err conftest.$ac_objext \
28649 conftest$ac_exeext conftest.$ac_ext
28650 LIBS="$am_save_LIBS"
28654 echo "$as_me:$LINENO: result: $am_cv_func_iconv" >&5
28655 echo "${ECHO_T}$am_cv_func_iconv" >&6
28656 if test "$am_cv_func_iconv" = yes; then
28658 cat >>confdefs.h <<\_ACEOF
28659 #define HAVE_ICONV 1
28662 echo "$as_me:$LINENO: checking for iconv declaration" >&5
28663 echo $ECHO_N "checking for iconv declaration... $ECHO_C" >&6
28664 if test "${am_cv_proto_iconv+set}" = set; then
28665 echo $ECHO_N "(cached) $ECHO_C" >&6
28668 cat >conftest.$ac_ext <<_ACEOF
28671 cat confdefs.h >>conftest.$ac_ext
28672 cat >>conftest.$ac_ext <<_ACEOF
28673 /* end confdefs.h. */
28675 #include <stdlib.h>
28681 #if defined(__STDC__) || defined(__cplusplus)
28682 size_t iconv (iconv_t cd, char * *inbuf, size_t *inbytesleft, char * *outbuf, size_t *outbytesleft);
28695 rm -f conftest.$ac_objext
28696 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
28697 (eval $ac_compile) 2>conftest.er1
28699 grep -v '^ *+' conftest.er1 >conftest.err
28701 cat conftest.err >&5
28702 echo "$as_me:$LINENO: \$? = $ac_status" >&5
28703 (exit $ac_status); } &&
28704 { ac_try='test -z "$ac_c_werror_flag"
28705 || test ! -s conftest.err'
28706 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
28707 (eval $ac_try) 2>&5
28709 echo "$as_me:$LINENO: \$? = $ac_status" >&5
28710 (exit $ac_status); }; } &&
28711 { ac_try='test -s conftest.$ac_objext'
28712 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
28713 (eval $ac_try) 2>&5
28715 echo "$as_me:$LINENO: \$? = $ac_status" >&5
28716 (exit $ac_status); }; }; then
28717 am_cv_proto_iconv_arg1=""
28719 echo "$as_me: failed program was:" >&5
28720 sed 's/^/| /' conftest.$ac_ext >&5
28722 am_cv_proto_iconv_arg1="const"
28724 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
28725 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);"
28728 am_cv_proto_iconv=`echo "$am_cv_proto_iconv" | tr -s ' ' | sed -e 's/( /(/'`
28729 echo "$as_me:$LINENO: result: ${ac_t:-
28730 }$am_cv_proto_iconv" >&5
28731 echo "${ECHO_T}${ac_t:-
28732 }$am_cv_proto_iconv" >&6
28734 cat >>confdefs.h <<_ACEOF
28735 #define ICONV_CONST $am_cv_proto_iconv_arg1
28740 if test "$am_cv_lib_iconv" = yes; then
28746 ac_config_files="$ac_config_files Makefile .gdbinit:gdbinit.in gnulib/Makefile"
28747 ac_config_commands="$ac_config_commands default"
28748 cat >confcache <<\_ACEOF
28749 # This file is a shell script that caches the results of configure
28750 # tests run on this system so they can be shared between configure
28751 # scripts and configure runs, see configure's option --config-cache.
28752 # It is not useful on other systems. If it contains results you don't
28753 # want to keep, you may remove or edit it.
28755 # config.status only pays attention to the cache file if you give it
28756 # the --recheck option to rerun configure.
28758 # `ac_cv_env_foo' variables (set or unset) will be overridden when
28759 # loading this file, other *unset* `ac_cv_foo' will be assigned the
28760 # following values.
28764 # The following way of writing the cache mishandles newlines in values,
28765 # but we know of no workaround that is simple, portable, and efficient.
28766 # So, don't put newlines in cache variables' values.
28767 # Ultrix sh set writes to stderr and can't be redirected directly,
28768 # and sets the high bit in the cache file unless we assign to the vars.
28771 case `(ac_space=' '; set | grep ac_space) 2>&1` in
28773 # `set' does not quote correctly, so add quotes (double-quote
28774 # substitution turns \\\\ into \\, and sed turns \\ into \).
28777 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p"
28780 # `set' quotes correctly as required by POSIX, so do not add quotes.
28782 "s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1=\\2/p"
28789 s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/
28791 /^ac_cv_env/!s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/
28793 if diff $cache_file confcache >/dev/null 2>&1; then :; else
28794 if test -w $cache_file; then
28795 test "x$cache_file" != "x/dev/null" && echo "updating cache $cache_file"
28796 cat confcache >$cache_file
28798 echo "not updating unwritable cache $cache_file"
28803 test "x$prefix" = xNONE && prefix=$ac_default_prefix
28804 # Let make expand exec_prefix.
28805 test "x$exec_prefix" = xNONE && exec_prefix='${prefix}'
28807 # VPATH may cause trouble with some makes, so we remove $(srcdir),
28808 # ${srcdir} and @srcdir@ from VPATH if srcdir is ".", strip leading and
28809 # trailing colons and then remove the whole line if VPATH becomes empty
28810 # (actually we leave an empty line to preserve line numbers).
28811 if test "x$srcdir" = x.; then
28812 ac_vpsub='/^[ ]*VPATH[ ]*=/{
28813 s/:*\$(srcdir):*/:/;
28814 s/:*\${srcdir}:*/:/;
28816 s/^\([^=]*=[ ]*\):*/\1/;
28822 DEFS=-DHAVE_CONFIG_H
28826 for ac_i in : $LIBOBJS; do test "x$ac_i" = x: && continue
28827 # 1. Remove the extension, and $U if already installed.
28828 ac_i=`echo "$ac_i" |
28829 sed 's/\$U\././;s/\.o$//;s/\.obj$//'`
28831 ac_libobjs="$ac_libobjs $ac_i\$U.$ac_objext"
28832 ac_ltlibobjs="$ac_ltlibobjs $ac_i"'$U.lo'
28834 LIBOBJS=$ac_libobjs
28836 LTLIBOBJS=$ac_ltlibobjs
28839 if test -z "${MAINTAINER_MODE_TRUE}" && test -z "${MAINTAINER_MODE_FALSE}"; then
28840 { { echo "$as_me:$LINENO: error: conditional \"MAINTAINER_MODE\" was never defined.
28841 Usually this means the macro was only invoked conditionally." >&5
28842 echo "$as_me: error: conditional \"MAINTAINER_MODE\" was never defined.
28843 Usually this means the macro was only invoked conditionally." >&2;}
28844 { (exit 1); exit 1; }; }
28846 if test -z "${GL_COND_LIBTOOL_TRUE}" && test -z "${GL_COND_LIBTOOL_FALSE}"; then
28847 { { echo "$as_me:$LINENO: error: conditional \"GL_COND_LIBTOOL\" was never defined.
28848 Usually this means the macro was only invoked conditionally." >&5
28849 echo "$as_me: error: conditional \"GL_COND_LIBTOOL\" was never defined.
28850 Usually this means the macro was only invoked conditionally." >&2;}
28851 { (exit 1); exit 1; }; }
28856 if test -n "$gl_LIBOBJS"; then
28857 # Remove the extension.
28858 sed_drop_objext='s/\.o$//;s/\.obj$//'
28859 for i in `for i in $gl_LIBOBJS; do echo "$i"; done | sed "$sed_drop_objext" | sort | uniq`; do
28860 gl_libobjs="$gl_libobjs $i.$ac_objext"
28861 gl_ltlibobjs="$gl_ltlibobjs $i.lo"
28864 gl_LIBOBJS=$gl_libobjs
28866 gl_LTLIBOBJS=$gl_ltlibobjs
28872 if test -n "$gltests_LIBOBJS"; then
28873 # Remove the extension.
28874 sed_drop_objext='s/\.o$//;s/\.obj$//'
28875 for i in `for i in $gltests_LIBOBJS; do echo "$i"; done | sed "$sed_drop_objext" | sort | uniq`; do
28876 gltests_libobjs="$gltests_libobjs $i.$ac_objext"
28877 gltests_ltlibobjs="$gltests_ltlibobjs $i.lo"
28880 gltests_LIBOBJS=$gltests_libobjs
28882 gltests_LTLIBOBJS=$gltests_ltlibobjs
28885 if test -z "${AMDEP_TRUE}" && test -z "${AMDEP_FALSE}"; then
28886 { { echo "$as_me:$LINENO: error: conditional \"AMDEP\" was never defined.
28887 Usually this means the macro was only invoked conditionally." >&5
28888 echo "$as_me: error: conditional \"AMDEP\" was never defined.
28889 Usually this means the macro was only invoked conditionally." >&2;}
28890 { (exit 1); exit 1; }; }
28892 if test -z "${am__fastdepCC_TRUE}" && test -z "${am__fastdepCC_FALSE}"; then
28893 { { echo "$as_me:$LINENO: error: conditional \"am__fastdepCC\" was never defined.
28894 Usually this means the macro was only invoked conditionally." >&5
28895 echo "$as_me: error: conditional \"am__fastdepCC\" was never defined.
28896 Usually this means the macro was only invoked conditionally." >&2;}
28897 { (exit 1); exit 1; }; }
28900 : ${CONFIG_STATUS=./config.status}
28901 ac_clean_files_save=$ac_clean_files
28902 ac_clean_files="$ac_clean_files $CONFIG_STATUS"
28903 { echo "$as_me:$LINENO: creating $CONFIG_STATUS" >&5
28904 echo "$as_me: creating $CONFIG_STATUS" >&6;}
28905 cat >$CONFIG_STATUS <<_ACEOF
28907 # Generated by $as_me.
28908 # Run this file to recreate the current configuration.
28909 # Compiler output produced by configure, useful for debugging
28910 # configure, is in config.log if it exists.
28913 ac_cs_recheck=false
28915 SHELL=\${CONFIG_SHELL-$SHELL}
28918 cat >>$CONFIG_STATUS <<\_ACEOF
28919 ## --------------------- ##
28920 ## M4sh Initialization. ##
28921 ## --------------------- ##
28923 # Be Bourne compatible
28924 if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then
28927 # Zsh 3.x and 4.x performs word splitting on ${1+"$@"}, which
28928 # is contrary to our usage. Disable this feature.
28929 alias -g '${1+"$@"}'='"$@"'
28930 elif test -n "${BASH_VERSION+set}" && (set -o posix) >/dev/null 2>&1; then
28933 DUALCASE=1; export DUALCASE # for MKS sh
28935 # Support unset when possible.
28936 if ( (MAIL=60; unset MAIL) || exit) >/dev/null 2>&1; then
28943 # Work around bugs in pre-3.0 UWIN ksh.
28944 $as_unset ENV MAIL MAILPATH
28951 LANG LANGUAGE LC_ADDRESS LC_ALL LC_COLLATE LC_CTYPE LC_IDENTIFICATION \
28952 LC_MEASUREMENT LC_MESSAGES LC_MONETARY LC_NAME LC_NUMERIC LC_PAPER \
28953 LC_TELEPHONE LC_TIME
28955 if (set +x; test -z "`(eval $as_var=C; export $as_var) 2>&1`"); then
28956 eval $as_var=C; export $as_var
28962 # Required to use basename.
28963 if expr a : '\(a\)' >/dev/null 2>&1; then
28969 if (basename /) >/dev/null 2>&1 && test "X`basename / 2>&1`" = "X/"; then
28970 as_basename=basename
28976 # Name of the executable.
28977 as_me=`$as_basename "$0" ||
28978 $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
28979 X"$0" : 'X\(//\)$' \| \
28980 X"$0" : 'X\(/\)$' \| \
28981 . : '\(.\)' 2>/dev/null ||
28983 sed '/^.*\/\([^/][^/]*\)\/*$/{ s//\1/; q; }
28984 /^X\/\(\/\/\)$/{ s//\1/; q; }
28985 /^X\/\(\/\).*/{ s//\1/; q; }
28989 # PATH needs CR, and LINENO needs CR and PATH.
28990 # Avoid depending upon Character Ranges.
28991 as_cr_letters='abcdefghijklmnopqrstuvwxyz'
28992 as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
28993 as_cr_Letters=$as_cr_letters$as_cr_LETTERS
28994 as_cr_digits='0123456789'
28995 as_cr_alnum=$as_cr_Letters$as_cr_digits
28997 # The user is always right.
28998 if test "${PATH_SEPARATOR+set}" != set; then
28999 echo "#! /bin/sh" >conf$$.sh
29000 echo "exit 0" >>conf$$.sh
29002 if (PATH="/nonexistent;."; conf$$.sh) >/dev/null 2>&1; then
29011 as_lineno_1=$LINENO
29012 as_lineno_2=$LINENO
29013 as_lineno_3=`(expr $as_lineno_1 + 1) 2>/dev/null`
29014 test "x$as_lineno_1" != "x$as_lineno_2" &&
29015 test "x$as_lineno_3" = "x$as_lineno_2" || {
29016 # Find who we are. Look in the path if we contain no path at all
29019 *[\\/]* ) as_myself=$0 ;;
29020 *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
29021 for as_dir in $PATH
29024 test -z "$as_dir" && as_dir=.
29025 test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
29030 # We did not find ourselves, most probably we were run as `sh COMMAND'
29031 # in which case we are not to be found in the path.
29032 if test "x$as_myself" = x; then
29035 if test ! -f "$as_myself"; then
29036 { { echo "$as_me:$LINENO: error: cannot find myself; rerun with an absolute path" >&5
29037 echo "$as_me: error: cannot find myself; rerun with an absolute path" >&2;}
29038 { (exit 1); exit 1; }; }
29040 case $CONFIG_SHELL in
29042 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
29043 for as_dir in /bin$PATH_SEPARATOR/usr/bin$PATH_SEPARATOR$PATH
29046 test -z "$as_dir" && as_dir=.
29047 for as_base in sh bash ksh sh5; do
29050 if ("$as_dir/$as_base" -c '
29051 as_lineno_1=$LINENO
29052 as_lineno_2=$LINENO
29053 as_lineno_3=`(expr $as_lineno_1 + 1) 2>/dev/null`
29054 test "x$as_lineno_1" != "x$as_lineno_2" &&
29055 test "x$as_lineno_3" = "x$as_lineno_2" ') 2>/dev/null; then
29056 $as_unset BASH_ENV || test "${BASH_ENV+set}" != set || { BASH_ENV=; export BASH_ENV; }
29057 $as_unset ENV || test "${ENV+set}" != set || { ENV=; export ENV; }
29058 CONFIG_SHELL=$as_dir/$as_base
29059 export CONFIG_SHELL
29060 exec "$CONFIG_SHELL" "$0" ${1+"$@"}
29068 # Create $as_me.lineno as a copy of $as_myself, but with $LINENO
29069 # uniformly replaced by the line number. The first 'sed' inserts a
29070 # line-number line before each line; the second 'sed' does the real
29071 # work. The second script uses 'N' to pair each line-number line
29072 # with the numbered line, and appends trailing '-' during
29073 # substitution so that $LINENO is not a special case at line end.
29074 # (Raja R Harinath suggested sed '=', and Paul Eggert wrote the
29075 # second 'sed' script. Blame Lee E. McMahon for sed's syntax. :-)
29076 sed '=' <$as_myself |
29081 s,^\(['$as_cr_digits']*\)\(.*\)[$]LINENO\([^'$as_cr_alnum'_]\),\1\2\1\3,
29084 s,^['$as_cr_digits']*\n,,
29085 ' >$as_me.lineno &&
29086 chmod +x $as_me.lineno ||
29087 { { echo "$as_me:$LINENO: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&5
29088 echo "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2;}
29089 { (exit 1); exit 1; }; }
29091 # Don't try to exec as it changes $[0], causing all sort of problems
29092 # (the dirname of $[0] is not the place where we might find the
29093 # original and so on. Autoconf is especially sensible to this).
29095 # Exit status is that of the last command.
29100 case `echo "testing\c"; echo 1,2,3`,`echo -n testing; echo 1,2,3` in
29101 *c*,-n*) ECHO_N= ECHO_C='
29103 *c*,* ) ECHO_N=-n ECHO_C= ECHO_T= ;;
29104 *) ECHO_N= ECHO_C='\c' ECHO_T= ;;
29107 if expr a : '\(a\)' >/dev/null 2>&1; then
29113 rm -f conf$$ conf$$.exe conf$$.file
29115 if ln -s conf$$.file conf$$ 2>/dev/null; then
29116 # We could just check for DJGPP; but this test a) works b) is more generic
29117 # and c) will remain valid once DJGPP supports symlinks (DJGPP 2.04).
29118 if test -f conf$$.exe; then
29119 # Don't use ln at all; we don't have any links
29124 elif ln conf$$.file conf$$ 2>/dev/null; then
29129 rm -f conf$$ conf$$.exe conf$$.file
29131 if mkdir -p . 2>/dev/null; then
29134 test -d ./-p && rmdir ./-p
29138 as_executable_p="test -f"
29140 # Sed expression to map a string onto a valid CPP name.
29141 as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
29143 # Sed expression to map a string onto a valid variable name.
29144 as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
29148 # We need space, tab and new line, in precisely that order.
29158 # Open the log real soon, to keep \$[0] and so on meaningful, and to
29159 # report actual input values of CONFIG_FILES etc. instead of their
29160 # values after options handling. Logging --version etc. is OK.
29164 sed 'h;s/./-/g;s/^.../## /;s/...$/ ##/;p;x;p;x' <<_ASBOX
29165 ## Running $as_me. ##
29170 This file was extended by $as_me, which was
29171 generated by GNU Autoconf 2.59. Invocation command line was
29173 CONFIG_FILES = $CONFIG_FILES
29174 CONFIG_HEADERS = $CONFIG_HEADERS
29175 CONFIG_LINKS = $CONFIG_LINKS
29176 CONFIG_COMMANDS = $CONFIG_COMMANDS
29180 echo "on `(hostname || uname -n) 2>/dev/null | sed 1q`" >&5
29184 # Files that config.status was made for.
29185 if test -n "$ac_config_files"; then
29186 echo "config_files=\"$ac_config_files\"" >>$CONFIG_STATUS
29189 if test -n "$ac_config_headers"; then
29190 echo "config_headers=\"$ac_config_headers\"" >>$CONFIG_STATUS
29193 if test -n "$ac_config_links"; then
29194 echo "config_links=\"$ac_config_links\"" >>$CONFIG_STATUS
29197 if test -n "$ac_config_commands"; then
29198 echo "config_commands=\"$ac_config_commands\"" >>$CONFIG_STATUS
29201 cat >>$CONFIG_STATUS <<\_ACEOF
29204 \`$as_me' instantiates files from templates according to the
29205 current configuration.
29207 Usage: $0 [OPTIONS] [FILE]...
29209 -h, --help print this help, then exit
29210 -V, --version print version number, then exit
29211 -q, --quiet do not print progress messages
29212 -d, --debug don't remove temporary files
29213 --recheck update $as_me by reconfiguring in the same conditions
29214 --file=FILE[:TEMPLATE]
29215 instantiate the configuration file FILE
29216 --header=FILE[:TEMPLATE]
29217 instantiate the configuration header FILE
29219 Configuration files:
29222 Configuration headers:
29225 Configuration links:
29228 Configuration commands:
29231 Report bugs to <bug-autoconf@gnu.org>."
29234 cat >>$CONFIG_STATUS <<_ACEOF
29237 configured by $0, generated by GNU Autoconf 2.59,
29238 with options \\"`echo "$ac_configure_args" | sed 's/[\\""\`\$]/\\\\&/g'`\\"
29240 Copyright (C) 2003 Free Software Foundation, Inc.
29241 This config.status script is free software; the Free Software Foundation
29242 gives unlimited permission to copy, distribute and modify it."
29247 cat >>$CONFIG_STATUS <<\_ACEOF
29248 # If no file are specified by the user, then we need to provide default
29249 # value. By we need to know if files were specified by the user.
29255 ac_option=`expr "x$1" : 'x\([^=]*\)='`
29256 ac_optarg=`expr "x$1" : 'x[^=]*=\(.*\)'`
29264 *) # This is not an option, so the user has probably given explicit
29267 ac_need_defaults=false;;
29271 # Handling of the options.
29273 cat >>$CONFIG_STATUS <<\_ACEOF
29274 -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r)
29276 --version | --vers* | -V )
29277 echo "$ac_cs_version"; exit 0 ;;
29279 # Conflict between --help and --header
29280 { { echo "$as_me:$LINENO: error: ambiguous option: $1
29281 Try \`$0 --help' for more information." >&5
29282 echo "$as_me: error: ambiguous option: $1
29283 Try \`$0 --help' for more information." >&2;}
29284 { (exit 1); exit 1; }; };;
29285 --help | --hel | -h )
29286 echo "$ac_cs_usage"; exit 0 ;;
29287 --debug | --d* | -d )
29289 --file | --fil | --fi | --f )
29291 CONFIG_FILES="$CONFIG_FILES $ac_optarg"
29292 ac_need_defaults=false;;
29293 --header | --heade | --head | --hea )
29295 CONFIG_HEADERS="$CONFIG_HEADERS $ac_optarg"
29296 ac_need_defaults=false;;
29297 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
29298 | -silent | --silent | --silen | --sile | --sil | --si | --s)
29301 # This is an error.
29302 -*) { { echo "$as_me:$LINENO: error: unrecognized option: $1
29303 Try \`$0 --help' for more information." >&5
29304 echo "$as_me: error: unrecognized option: $1
29305 Try \`$0 --help' for more information." >&2;}
29306 { (exit 1); exit 1; }; } ;;
29308 *) ac_config_targets="$ac_config_targets $1" ;;
29314 ac_configure_extra_args=
29316 if $ac_cs_silent; then
29318 ac_configure_extra_args="$ac_configure_extra_args --silent"
29322 cat >>$CONFIG_STATUS <<_ACEOF
29323 if \$ac_cs_recheck; then
29324 echo "running $SHELL $0 " $ac_configure_args \$ac_configure_extra_args " --no-create --no-recursion" >&6
29325 exec $SHELL $0 $ac_configure_args \$ac_configure_extra_args --no-create --no-recursion
29330 cat >>$CONFIG_STATUS <<_ACEOF
29332 # INIT-COMMANDS section.
29335 AMDEP_TRUE="$AMDEP_TRUE" ac_aux_dir="$ac_aux_dir"
29339 acx_cv_header_stdint="$acx_cv_header_stdint"
29340 acx_cv_type_int8_t="$acx_cv_type_int8_t"
29341 acx_cv_type_int16_t="$acx_cv_type_int16_t"
29342 acx_cv_type_int32_t="$acx_cv_type_int32_t"
29343 acx_cv_type_int64_t="$acx_cv_type_int64_t"
29344 acx_cv_type_intptr_t="$acx_cv_type_intptr_t"
29345 ac_cv_type_uintmax_t="$ac_cv_type_uintmax_t"
29346 ac_cv_type_uintptr_t="$ac_cv_type_uintptr_t"
29347 ac_cv_type_uint64_t="$ac_cv_type_uint64_t"
29348 ac_cv_type_u_int64_t="$ac_cv_type_u_int64_t"
29349 ac_cv_type_u_int32_t="$ac_cv_type_u_int32_t"
29350 ac_cv_type_int_least32_t="$ac_cv_type_int_least32_t"
29351 ac_cv_type_int_fast32_t="$ac_cv_type_int_fast32_t"
29352 ac_cv_sizeof_void_p="$ac_cv_sizeof_void_p"
29355 gdb_host_cpu=$gdb_host_cpu
29356 nativefile=$nativefile
29363 cat >>$CONFIG_STATUS <<\_ACEOF
29364 for ac_config_target in $ac_config_targets
29366 case "$ac_config_target" in
29367 # Handling of arguments.
29368 "Makefile" ) CONFIG_FILES="$CONFIG_FILES Makefile" ;;
29369 ".gdbinit" ) CONFIG_FILES="$CONFIG_FILES .gdbinit:gdbinit.in" ;;
29370 "gnulib/Makefile" ) CONFIG_FILES="$CONFIG_FILES gnulib/Makefile" ;;
29371 "$ac_config_links_1" ) CONFIG_LINKS="$CONFIG_LINKS $ac_config_links_1" ;;
29372 "depfiles" ) CONFIG_COMMANDS="$CONFIG_COMMANDS depfiles" ;;
29373 "gdb_stdint.h" ) CONFIG_COMMANDS="$CONFIG_COMMANDS gdb_stdint.h" ;;
29374 "default" ) CONFIG_COMMANDS="$CONFIG_COMMANDS default" ;;
29375 "config.h" ) CONFIG_HEADERS="$CONFIG_HEADERS config.h:config.in" ;;
29376 *) { { echo "$as_me:$LINENO: error: invalid argument: $ac_config_target" >&5
29377 echo "$as_me: error: invalid argument: $ac_config_target" >&2;}
29378 { (exit 1); exit 1; }; };;
29382 # If the user did not use the arguments to specify the items to instantiate,
29383 # then the envvar interface is used. Set only those that are not.
29384 # We use the long form for the default assignment because of an extremely
29385 # bizarre bug on SunOS 4.1.3.
29386 if $ac_need_defaults; then
29387 test "${CONFIG_FILES+set}" = set || CONFIG_FILES=$config_files
29388 test "${CONFIG_HEADERS+set}" = set || CONFIG_HEADERS=$config_headers
29389 test "${CONFIG_LINKS+set}" = set || CONFIG_LINKS=$config_links
29390 test "${CONFIG_COMMANDS+set}" = set || CONFIG_COMMANDS=$config_commands
29393 # Have a temporary directory for convenience. Make it in the build tree
29394 # simply because there is no reason to put it here, and in addition,
29395 # creating and moving files from /tmp can sometimes cause problems.
29396 # Create a temporary directory, and hook for its removal unless debugging.
29399 trap 'exit_status=$?; rm -rf $tmp && exit $exit_status' 0
29400 trap '{ (exit 1); exit 1; }' 1 2 13 15
29403 # Create a (secure) tmp directory for tmp files.
29406 tmp=`(umask 077 && mktemp -d -q "./confstatXXXXXX") 2>/dev/null` &&
29407 test -n "$tmp" && test -d "$tmp"
29410 tmp=./confstat$$-$RANDOM
29411 (umask 077 && mkdir $tmp)
29414 echo "$me: cannot create a temporary directory in ." >&2
29415 { (exit 1); exit 1; }
29420 cat >>$CONFIG_STATUS <<_ACEOF
29423 # CONFIG_FILES section.
29426 # No need to generate the scripts if there are no CONFIG_FILES.
29427 # This happens for instance when ./config.status config.h
29428 if test -n "\$CONFIG_FILES"; then
29429 # Protect against being on the right side of a sed subst in config.status.
29430 sed 's/,@/@@/; s/@,/@@/; s/,;t t\$/@;t t/; /@;t t\$/s/[\\\\&,]/\\\\&/g;
29431 s/@@/,@/; s/@@/@,/; s/@;t t\$/,;t t/' >\$tmp/subs.sed <<\\CEOF
29432 s,@SHELL@,$SHELL,;t t
29433 s,@PATH_SEPARATOR@,$PATH_SEPARATOR,;t t
29434 s,@PACKAGE_NAME@,$PACKAGE_NAME,;t t
29435 s,@PACKAGE_TARNAME@,$PACKAGE_TARNAME,;t t
29436 s,@PACKAGE_VERSION@,$PACKAGE_VERSION,;t t
29437 s,@PACKAGE_STRING@,$PACKAGE_STRING,;t t
29438 s,@PACKAGE_BUGREPORT@,$PACKAGE_BUGREPORT,;t t
29439 s,@exec_prefix@,$exec_prefix,;t t
29440 s,@prefix@,$prefix,;t t
29441 s,@program_transform_name@,$program_transform_name,;t t
29442 s,@bindir@,$bindir,;t t
29443 s,@sbindir@,$sbindir,;t t
29444 s,@libexecdir@,$libexecdir,;t t
29445 s,@datadir@,$datadir,;t t
29446 s,@sysconfdir@,$sysconfdir,;t t
29447 s,@sharedstatedir@,$sharedstatedir,;t t
29448 s,@localstatedir@,$localstatedir,;t t
29449 s,@libdir@,$libdir,;t t
29450 s,@includedir@,$includedir,;t t
29451 s,@oldincludedir@,$oldincludedir,;t t
29452 s,@infodir@,$infodir,;t t
29453 s,@mandir@,$mandir,;t t
29454 s,@build_alias@,$build_alias,;t t
29455 s,@host_alias@,$host_alias,;t t
29456 s,@target_alias@,$target_alias,;t t
29457 s,@DEFS@,$DEFS,;t t
29458 s,@ECHO_C@,$ECHO_C,;t t
29459 s,@ECHO_N@,$ECHO_N,;t t
29460 s,@ECHO_T@,$ECHO_T,;t t
29461 s,@LIBS@,$LIBS,;t t
29462 s,@MAINTAINER_MODE_TRUE@,$MAINTAINER_MODE_TRUE,;t t
29463 s,@MAINTAINER_MODE_FALSE@,$MAINTAINER_MODE_FALSE,;t t
29464 s,@MAINT@,$MAINT,;t t
29466 s,@CFLAGS@,$CFLAGS,;t t
29467 s,@LDFLAGS@,$LDFLAGS,;t t
29468 s,@CPPFLAGS@,$CPPFLAGS,;t t
29469 s,@ac_ct_CC@,$ac_ct_CC,;t t
29470 s,@EXEEXT@,$EXEEXT,;t t
29471 s,@OBJEXT@,$OBJEXT,;t t
29473 s,@EGREP@,$EGREP,;t t
29474 s,@RANLIB@,$RANLIB,;t t
29475 s,@ac_ct_RANLIB@,$ac_ct_RANLIB,;t t
29476 s,@build@,$build,;t t
29477 s,@build_cpu@,$build_cpu,;t t
29478 s,@build_vendor@,$build_vendor,;t t
29479 s,@build_os@,$build_os,;t t
29480 s,@host@,$host,;t t
29481 s,@host_cpu@,$host_cpu,;t t
29482 s,@host_vendor@,$host_vendor,;t t
29483 s,@host_os@,$host_os,;t t
29484 s,@target@,$target,;t t
29485 s,@target_cpu@,$target_cpu,;t t
29486 s,@target_vendor@,$target_vendor,;t t
29487 s,@target_os@,$target_os,;t t
29488 s,@USE_NLS@,$USE_NLS,;t t
29489 s,@LIBINTL@,$LIBINTL,;t t
29490 s,@LIBINTL_DEP@,$LIBINTL_DEP,;t t
29491 s,@INCINTL@,$INCINTL,;t t
29492 s,@XGETTEXT@,$XGETTEXT,;t t
29493 s,@GMSGFMT@,$GMSGFMT,;t t
29494 s,@POSUB@,$POSUB,;t t
29495 s,@CATALOGS@,$CATALOGS,;t t
29496 s,@DATADIRNAME@,$DATADIRNAME,;t t
29497 s,@INSTOBJEXT@,$INSTOBJEXT,;t t
29498 s,@GENCAT@,$GENCAT,;t t
29499 s,@CATOBJEXT@,$CATOBJEXT,;t t
29500 s,@localedir@,$localedir,;t t
29501 s,@GL_COND_LIBTOOL_TRUE@,$GL_COND_LIBTOOL_TRUE,;t t
29502 s,@GL_COND_LIBTOOL_FALSE@,$GL_COND_LIBTOOL_FALSE,;t t
29503 s,@GNULIB_MEMMEM@,$GNULIB_MEMMEM,;t t
29504 s,@GNULIB_MEMPCPY@,$GNULIB_MEMPCPY,;t t
29505 s,@GNULIB_MEMRCHR@,$GNULIB_MEMRCHR,;t t
29506 s,@GNULIB_STPCPY@,$GNULIB_STPCPY,;t t
29507 s,@GNULIB_STPNCPY@,$GNULIB_STPNCPY,;t t
29508 s,@GNULIB_STRCHRNUL@,$GNULIB_STRCHRNUL,;t t
29509 s,@GNULIB_STRDUP@,$GNULIB_STRDUP,;t t
29510 s,@GNULIB_STRNDUP@,$GNULIB_STRNDUP,;t t
29511 s,@GNULIB_STRNLEN@,$GNULIB_STRNLEN,;t t
29512 s,@GNULIB_STRPBRK@,$GNULIB_STRPBRK,;t t
29513 s,@GNULIB_STRSEP@,$GNULIB_STRSEP,;t t
29514 s,@GNULIB_STRSTR@,$GNULIB_STRSTR,;t t
29515 s,@GNULIB_STRCASESTR@,$GNULIB_STRCASESTR,;t t
29516 s,@GNULIB_STRTOK_R@,$GNULIB_STRTOK_R,;t t
29517 s,@GNULIB_MBSLEN@,$GNULIB_MBSLEN,;t t
29518 s,@GNULIB_MBSNLEN@,$GNULIB_MBSNLEN,;t t
29519 s,@GNULIB_MBSCHR@,$GNULIB_MBSCHR,;t t
29520 s,@GNULIB_MBSRCHR@,$GNULIB_MBSRCHR,;t t
29521 s,@GNULIB_MBSSTR@,$GNULIB_MBSSTR,;t t
29522 s,@GNULIB_MBSCASECMP@,$GNULIB_MBSCASECMP,;t t
29523 s,@GNULIB_MBSNCASECMP@,$GNULIB_MBSNCASECMP,;t t
29524 s,@GNULIB_MBSPCASECMP@,$GNULIB_MBSPCASECMP,;t t
29525 s,@GNULIB_MBSCASESTR@,$GNULIB_MBSCASESTR,;t t
29526 s,@GNULIB_MBSCSPN@,$GNULIB_MBSCSPN,;t t
29527 s,@GNULIB_MBSPBRK@,$GNULIB_MBSPBRK,;t t
29528 s,@GNULIB_MBSSPN@,$GNULIB_MBSSPN,;t t
29529 s,@GNULIB_MBSSEP@,$GNULIB_MBSSEP,;t t
29530 s,@GNULIB_MBSTOK_R@,$GNULIB_MBSTOK_R,;t t
29531 s,@GNULIB_STRERROR@,$GNULIB_STRERROR,;t t
29532 s,@GNULIB_STRSIGNAL@,$GNULIB_STRSIGNAL,;t t
29533 s,@HAVE_DECL_MEMMEM@,$HAVE_DECL_MEMMEM,;t t
29534 s,@HAVE_MEMPCPY@,$HAVE_MEMPCPY,;t t
29535 s,@HAVE_DECL_MEMRCHR@,$HAVE_DECL_MEMRCHR,;t t
29536 s,@HAVE_STPCPY@,$HAVE_STPCPY,;t t
29537 s,@HAVE_STPNCPY@,$HAVE_STPNCPY,;t t
29538 s,@HAVE_STRCHRNUL@,$HAVE_STRCHRNUL,;t t
29539 s,@HAVE_DECL_STRDUP@,$HAVE_DECL_STRDUP,;t t
29540 s,@HAVE_STRNDUP@,$HAVE_STRNDUP,;t t
29541 s,@HAVE_DECL_STRNDUP@,$HAVE_DECL_STRNDUP,;t t
29542 s,@HAVE_DECL_STRNLEN@,$HAVE_DECL_STRNLEN,;t t
29543 s,@HAVE_STRPBRK@,$HAVE_STRPBRK,;t t
29544 s,@HAVE_STRSEP@,$HAVE_STRSEP,;t t
29545 s,@HAVE_STRCASESTR@,$HAVE_STRCASESTR,;t t
29546 s,@HAVE_DECL_STRTOK_R@,$HAVE_DECL_STRTOK_R,;t t
29547 s,@HAVE_DECL_STRERROR@,$HAVE_DECL_STRERROR,;t t
29548 s,@HAVE_DECL_STRSIGNAL@,$HAVE_DECL_STRSIGNAL,;t t
29549 s,@REPLACE_STRERROR@,$REPLACE_STRERROR,;t t
29550 s,@REPLACE_STRSIGNAL@,$REPLACE_STRSIGNAL,;t t
29551 s,@REPLACE_MEMMEM@,$REPLACE_MEMMEM,;t t
29552 s,@REPLACE_STRCASESTR@,$REPLACE_STRCASESTR,;t t
29553 s,@REPLACE_STRSTR@,$REPLACE_STRSTR,;t t
29554 s,@HAVE_LONG_LONG_INT@,$HAVE_LONG_LONG_INT,;t t
29555 s,@HAVE_UNSIGNED_LONG_LONG_INT@,$HAVE_UNSIGNED_LONG_LONG_INT,;t t
29556 s,@HAVE_INTTYPES_H@,$HAVE_INTTYPES_H,;t t
29557 s,@HAVE_SYS_TYPES_H@,$HAVE_SYS_TYPES_H,;t t
29558 s,@INCLUDE_NEXT@,$INCLUDE_NEXT,;t t
29559 s,@NEXT_STDINT_H@,$NEXT_STDINT_H,;t t
29560 s,@HAVE_STDINT_H@,$HAVE_STDINT_H,;t t
29561 s,@HAVE_SYS_INTTYPES_H@,$HAVE_SYS_INTTYPES_H,;t t
29562 s,@HAVE_SYS_BITYPES_H@,$HAVE_SYS_BITYPES_H,;t t
29563 s,@BITSIZEOF_PTRDIFF_T@,$BITSIZEOF_PTRDIFF_T,;t t
29564 s,@BITSIZEOF_SIG_ATOMIC_T@,$BITSIZEOF_SIG_ATOMIC_T,;t t
29565 s,@BITSIZEOF_SIZE_T@,$BITSIZEOF_SIZE_T,;t t
29566 s,@BITSIZEOF_WCHAR_T@,$BITSIZEOF_WCHAR_T,;t t
29567 s,@BITSIZEOF_WINT_T@,$BITSIZEOF_WINT_T,;t t
29568 s,@HAVE_SIGNED_SIG_ATOMIC_T@,$HAVE_SIGNED_SIG_ATOMIC_T,;t t
29569 s,@HAVE_SIGNED_WCHAR_T@,$HAVE_SIGNED_WCHAR_T,;t t
29570 s,@HAVE_SIGNED_WINT_T@,$HAVE_SIGNED_WINT_T,;t t
29571 s,@PTRDIFF_T_SUFFIX@,$PTRDIFF_T_SUFFIX,;t t
29572 s,@SIG_ATOMIC_T_SUFFIX@,$SIG_ATOMIC_T_SUFFIX,;t t
29573 s,@SIZE_T_SUFFIX@,$SIZE_T_SUFFIX,;t t
29574 s,@WCHAR_T_SUFFIX@,$WCHAR_T_SUFFIX,;t t
29575 s,@WINT_T_SUFFIX@,$WINT_T_SUFFIX,;t t
29576 s,@STDINT_H@,$STDINT_H,;t t
29577 s,@NEXT_STRING_H@,$NEXT_STRING_H,;t t
29578 s,@GNULIB_WCWIDTH@,$GNULIB_WCWIDTH,;t t
29579 s,@HAVE_DECL_WCWIDTH@,$HAVE_DECL_WCWIDTH,;t t
29580 s,@REPLACE_WCWIDTH@,$REPLACE_WCWIDTH,;t t
29581 s,@WCHAR_H@,$WCHAR_H,;t t
29582 s,@HAVE_WCHAR_H@,$HAVE_WCHAR_H,;t t
29583 s,@NEXT_WCHAR_H@,$NEXT_WCHAR_H,;t t
29584 s,@LIBGNU_LIBDEPS@,$LIBGNU_LIBDEPS,;t t
29585 s,@LIBGNU_LTLIBDEPS@,$LIBGNU_LTLIBDEPS,;t t
29586 s,@PACKAGE@,$PACKAGE,;t t
29587 s,@INSTALL_PROGRAM@,$INSTALL_PROGRAM,;t t
29588 s,@INSTALL_SCRIPT@,$INSTALL_SCRIPT,;t t
29589 s,@INSTALL_DATA@,$INSTALL_DATA,;t t
29590 s,@CYGPATH_W@,$CYGPATH_W,;t t
29591 s,@VERSION@,$VERSION,;t t
29592 s,@ACLOCAL@,$ACLOCAL,;t t
29593 s,@AUTOCONF@,$AUTOCONF,;t t
29594 s,@AUTOMAKE@,$AUTOMAKE,;t t
29595 s,@AUTOHEADER@,$AUTOHEADER,;t t
29596 s,@MAKEINFO@,$MAKEINFO,;t t
29597 s,@install_sh@,$install_sh,;t t
29598 s,@STRIP@,$STRIP,;t t
29599 s,@ac_ct_STRIP@,$ac_ct_STRIP,;t t
29600 s,@INSTALL_STRIP_PROGRAM@,$INSTALL_STRIP_PROGRAM,;t t
29601 s,@mkdir_p@,$mkdir_p,;t t
29603 s,@SET_MAKE@,$SET_MAKE,;t t
29604 s,@am__leading_dot@,$am__leading_dot,;t t
29605 s,@AMTAR@,$AMTAR,;t t
29606 s,@am__tar@,$am__tar,;t t
29607 s,@am__untar@,$am__untar,;t t
29608 s,@DEPDIR@,$DEPDIR,;t t
29609 s,@am__include@,$am__include,;t t
29610 s,@am__quote@,$am__quote,;t t
29611 s,@AMDEP_TRUE@,$AMDEP_TRUE,;t t
29612 s,@AMDEP_FALSE@,$AMDEP_FALSE,;t t
29613 s,@AMDEPBACKSLASH@,$AMDEPBACKSLASH,;t t
29614 s,@CCDEPMODE@,$CCDEPMODE,;t t
29615 s,@am__fastdepCC_TRUE@,$am__fastdepCC_TRUE,;t t
29616 s,@am__fastdepCC_FALSE@,$am__fastdepCC_FALSE,;t t
29617 s,@subdirs@,$subdirs,;t t
29618 s,@TARGET_OBS@,$TARGET_OBS,;t t
29619 s,@PKGVERSION@,$PKGVERSION,;t t
29620 s,@REPORT_BUGS_TO@,$REPORT_BUGS_TO,;t t
29621 s,@REPORT_BUGS_TEXI@,$REPORT_BUGS_TEXI,;t t
29622 s,@LN_S@,$LN_S,;t t
29623 s,@YACC@,$YACC,;t t
29625 s,@ac_ct_AR@,$ac_ct_AR,;t t
29626 s,@DLLTOOL@,$DLLTOOL,;t t
29627 s,@ac_ct_DLLTOOL@,$ac_ct_DLLTOOL,;t t
29628 s,@WINDRES@,$WINDRES,;t t
29629 s,@ac_ct_WINDRES@,$ac_ct_WINDRES,;t t
29631 s,@ac_ct_MIG@,$ac_ct_MIG,;t t
29632 s,@READLINE@,$READLINE,;t t
29633 s,@READLINE_DEPS@,$READLINE_DEPS,;t t
29634 s,@READLINE_CFLAGS@,$READLINE_CFLAGS,;t t
29635 s,@HAVE_LIBEXPAT@,$HAVE_LIBEXPAT,;t t
29636 s,@LIBEXPAT@,$LIBEXPAT,;t t
29637 s,@LTLIBEXPAT@,$LTLIBEXPAT,;t t
29638 s,@ALLOCA@,$ALLOCA,;t t
29639 s,@CONFIG_LDFLAGS@,$CONFIG_LDFLAGS,;t t
29640 s,@TARGET_SYSTEM_ROOT@,$TARGET_SYSTEM_ROOT,;t t
29641 s,@TARGET_SYSTEM_ROOT_DEFINE@,$TARGET_SYSTEM_ROOT_DEFINE,;t t
29642 s,@WARN_CFLAGS@,$WARN_CFLAGS,;t t
29643 s,@WERROR_CFLAGS@,$WERROR_CFLAGS,;t t
29644 s,@SER_HARDWIRE@,$SER_HARDWIRE,;t t
29645 s,@WIN32LIBS@,$WIN32LIBS,;t t
29646 s,@LIBGUI@,$LIBGUI,;t t
29647 s,@GUI_CFLAGS_X@,$GUI_CFLAGS_X,;t t
29648 s,@WIN32LDAPP@,$WIN32LDAPP,;t t
29649 s,@TCL_VERSION@,$TCL_VERSION,;t t
29650 s,@TCL_MAJOR_VERSION@,$TCL_MAJOR_VERSION,;t t
29651 s,@TCL_MINOR_VERSION@,$TCL_MINOR_VERSION,;t t
29652 s,@TCL_CC@,$TCL_CC,;t t
29653 s,@TCL_DEFS@,$TCL_DEFS,;t t
29654 s,@TCL_SHLIB_CFLAGS@,$TCL_SHLIB_CFLAGS,;t t
29655 s,@TCL_SHLIB_LD@,$TCL_SHLIB_LD,;t t
29656 s,@TCL_SHLIB_LD_LIBS@,$TCL_SHLIB_LD_LIBS,;t t
29657 s,@TCL_SHLIB_SUFFIX@,$TCL_SHLIB_SUFFIX,;t t
29658 s,@TCL_DL_LIBS@,$TCL_DL_LIBS,;t t
29659 s,@TCL_LD_FLAGS@,$TCL_LD_FLAGS,;t t
29660 s,@TCL_LD_SEARCH_FLAGS@,$TCL_LD_SEARCH_FLAGS,;t t
29661 s,@TCL_CC_SEARCH_FLAGS@,$TCL_CC_SEARCH_FLAGS,;t t
29662 s,@TCL_COMPAT_OBJS@,$TCL_COMPAT_OBJS,;t t
29663 s,@TCL_RANLIB@,$TCL_RANLIB,;t t
29664 s,@TCL_BUILD_LIB_SPEC@,$TCL_BUILD_LIB_SPEC,;t t
29665 s,@TCL_LIB_SPEC@,$TCL_LIB_SPEC,;t t
29666 s,@TCL_LIB_VERSIONS_OK@,$TCL_LIB_VERSIONS_OK,;t t
29667 s,@TK_VERSION@,$TK_VERSION,;t t
29668 s,@TK_DEFS@,$TK_DEFS,;t t
29669 s,@TK_BUILD_INCLUDES@,$TK_BUILD_INCLUDES,;t t
29670 s,@TK_XINCLUDES@,$TK_XINCLUDES,;t t
29671 s,@TK_XLIBSW@,$TK_XLIBSW,;t t
29672 s,@TK_BUILD_LIB_SPEC@,$TK_BUILD_LIB_SPEC,;t t
29673 s,@TK_LIB_SPEC@,$TK_LIB_SPEC,;t t
29674 s,@TCLHDIR@,$TCLHDIR,;t t
29675 s,@TKHDIR@,$TKHDIR,;t t
29676 s,@ITCLHDIR@,$ITCLHDIR,;t t
29677 s,@ITKHDIR@,$ITKHDIR,;t t
29678 s,@ITCL_VERSION@,$ITCL_VERSION,;t t
29679 s,@ITCL_DEFS@,$ITCL_DEFS,;t t
29680 s,@ITCL_BUILD_INCLUDES@,$ITCL_BUILD_INCLUDES,;t t
29681 s,@ITCL_BUILD_LIB_SPEC@,$ITCL_BUILD_LIB_SPEC,;t t
29682 s,@ITCL_LIB_SPEC@,$ITCL_LIB_SPEC,;t t
29683 s,@ITK_VERSION@,$ITK_VERSION,;t t
29684 s,@ITK_DEFS@,$ITK_DEFS,;t t
29685 s,@ITK_BUILD_INCLUDES@,$ITK_BUILD_INCLUDES,;t t
29686 s,@ITK_BUILD_LIB_SPEC@,$ITK_BUILD_LIB_SPEC,;t t
29687 s,@ITK_LIB_SPEC@,$ITK_LIB_SPEC,;t t
29688 s,@X_CFLAGS@,$X_CFLAGS,;t t
29689 s,@X_LDFLAGS@,$X_LDFLAGS,;t t
29690 s,@X_LIBS@,$X_LIBS,;t t
29691 s,@TCL_DEPS@,$TCL_DEPS,;t t
29692 s,@TK_DEPS@,$TK_DEPS,;t t
29693 s,@ITCLLIB@,$ITCLLIB,;t t
29694 s,@ITCL_DEPS@,$ITCL_DEPS,;t t
29695 s,@ITKLIB@,$ITKLIB,;t t
29696 s,@ITK_DEPS@,$ITK_DEPS,;t t
29697 s,@GDBTKLIBS@,$GDBTKLIBS,;t t
29698 s,@GDBTK_CFLAGS@,$GDBTK_CFLAGS,;t t
29699 s,@GDBTK_SRC_DIR@,$GDBTK_SRC_DIR,;t t
29701 s,@SIM_OBS@,$SIM_OBS,;t t
29702 s,@ENABLE_CFLAGS@,$ENABLE_CFLAGS,;t t
29703 s,@PROFILE_CFLAGS@,$PROFILE_CFLAGS,;t t
29704 s,@CONFIG_OBS@,$CONFIG_OBS,;t t
29705 s,@CONFIG_DEPS@,$CONFIG_DEPS,;t t
29706 s,@CONFIG_SRCS@,$CONFIG_SRCS,;t t
29707 s,@CONFIG_ALL@,$CONFIG_ALL,;t t
29708 s,@CONFIG_CLEAN@,$CONFIG_CLEAN,;t t
29709 s,@CONFIG_INSTALL@,$CONFIG_INSTALL,;t t
29710 s,@CONFIG_UNINSTALL@,$CONFIG_UNINSTALL,;t t
29711 s,@target_subdir@,$target_subdir,;t t
29712 s,@frags@,$frags,;t t
29713 s,@nm_h@,$nm_h,;t t
29714 s,@LIBICONV@,$LIBICONV,;t t
29715 s,@LIBOBJS@,$LIBOBJS,;t t
29716 s,@LTLIBOBJS@,$LTLIBOBJS,;t t
29717 s,@gl_LIBOBJS@,$gl_LIBOBJS,;t t
29718 s,@gl_LTLIBOBJS@,$gl_LTLIBOBJS,;t t
29719 s,@gltests_LIBOBJS@,$gltests_LIBOBJS,;t t
29720 s,@gltests_LTLIBOBJS@,$gltests_LTLIBOBJS,;t t
29721 /@host_makefile_frag@/r $host_makefile_frag
29722 s,@host_makefile_frag@,,;t t
29727 cat >>$CONFIG_STATUS <<\_ACEOF
29728 # Split the substitutions into bite-sized pieces for seds with
29729 # small command number limits, like on Digital OSF/1 and HP-UX.
29730 ac_max_sed_lines=48
29731 ac_sed_frag=1 # Number of current file.
29732 ac_beg=1 # First line for current file.
29733 ac_end=$ac_max_sed_lines # Line after last line for current file.
29736 while $ac_more_lines; do
29737 if test $ac_beg -gt 1; then
29738 sed "1,${ac_beg}d; ${ac_end}q" $tmp/subs.sed >$tmp/subs.frag
29740 sed "${ac_end}q" $tmp/subs.sed >$tmp/subs.frag
29742 if test ! -s $tmp/subs.frag; then
29743 ac_more_lines=false
29745 # The purpose of the label and of the branching condition is to
29746 # speed up the sed processing (if there are no `@' at all, there
29747 # is no need to browse any of the substitutions).
29748 # These are the two extra sed commands mentioned above.
29750 /@[a-zA-Z_][a-zA-Z_0-9]*@/!b' && cat $tmp/subs.frag) >$tmp/subs-$ac_sed_frag.sed
29751 if test -z "$ac_sed_cmds"; then
29752 ac_sed_cmds="sed -f $tmp/subs-$ac_sed_frag.sed"
29754 ac_sed_cmds="$ac_sed_cmds | sed -f $tmp/subs-$ac_sed_frag.sed"
29756 ac_sed_frag=`expr $ac_sed_frag + 1`
29758 ac_end=`expr $ac_end + $ac_max_sed_lines`
29761 if test -z "$ac_sed_cmds"; then
29764 fi # test -n "$CONFIG_FILES"
29767 cat >>$CONFIG_STATUS <<\_ACEOF
29768 for ac_file in : $CONFIG_FILES; do test "x$ac_file" = x: && continue
29769 # Support "outfile[:infile[:infile...]]", defaulting infile="outfile.in".
29771 - | *:- | *:-:* ) # input from stdin
29773 ac_file_in=`echo "$ac_file" | sed 's,[^:]*:,,'`
29774 ac_file=`echo "$ac_file" | sed 's,:.*,,'` ;;
29775 *:* ) ac_file_in=`echo "$ac_file" | sed 's,[^:]*:,,'`
29776 ac_file=`echo "$ac_file" | sed 's,:.*,,'` ;;
29777 * ) ac_file_in=$ac_file.in ;;
29780 # Compute @srcdir@, @top_srcdir@, and @INSTALL@ for subdirectories.
29781 ac_dir=`(dirname "$ac_file") 2>/dev/null ||
29782 $as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
29783 X"$ac_file" : 'X\(//\)[^/]' \| \
29784 X"$ac_file" : 'X\(//\)$' \| \
29785 X"$ac_file" : 'X\(/\)' \| \
29786 . : '\(.\)' 2>/dev/null ||
29788 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
29789 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
29790 /^X\(\/\/\)$/{ s//\1/; q; }
29791 /^X\(\/\).*/{ s//\1/; q; }
29793 { if $as_mkdir_p; then
29798 while test ! -d "$as_dir"; do
29799 as_dirs="$as_dir $as_dirs"
29800 as_dir=`(dirname "$as_dir") 2>/dev/null ||
29801 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
29802 X"$as_dir" : 'X\(//\)[^/]' \| \
29803 X"$as_dir" : 'X\(//\)$' \| \
29804 X"$as_dir" : 'X\(/\)' \| \
29805 . : '\(.\)' 2>/dev/null ||
29807 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
29808 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
29809 /^X\(\/\/\)$/{ s//\1/; q; }
29810 /^X\(\/\).*/{ s//\1/; q; }
29813 test ! -n "$as_dirs" || mkdir $as_dirs
29814 fi || { { echo "$as_me:$LINENO: error: cannot create directory \"$ac_dir\"" >&5
29815 echo "$as_me: error: cannot create directory \"$ac_dir\"" >&2;}
29816 { (exit 1); exit 1; }; }; }
29820 if test "$ac_dir" != .; then
29821 ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'`
29822 # A "../" for each directory in $ac_dir_suffix.
29823 ac_top_builddir=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,../,g'`
29825 ac_dir_suffix= ac_top_builddir=
29829 .) # No --srcdir option. We are building in place.
29831 if test -z "$ac_top_builddir"; then
29834 ac_top_srcdir=`echo $ac_top_builddir | sed 's,/$,,'`
29836 [\\/]* | ?:[\\/]* ) # Absolute path.
29837 ac_srcdir=$srcdir$ac_dir_suffix;
29838 ac_top_srcdir=$srcdir ;;
29839 *) # Relative path.
29840 ac_srcdir=$ac_top_builddir$srcdir$ac_dir_suffix
29841 ac_top_srcdir=$ac_top_builddir$srcdir ;;
29844 # Do not use `cd foo && pwd` to compute absolute paths, because
29845 # the directories may not exist.
29847 .) ac_abs_builddir="$ac_dir";;
29850 .) ac_abs_builddir=`pwd`;;
29851 [\\/]* | ?:[\\/]* ) ac_abs_builddir="$ac_dir";;
29852 *) ac_abs_builddir=`pwd`/"$ac_dir";;
29855 case $ac_abs_builddir in
29856 .) ac_abs_top_builddir=${ac_top_builddir}.;;
29858 case ${ac_top_builddir}. in
29859 .) ac_abs_top_builddir=$ac_abs_builddir;;
29860 [\\/]* | ?:[\\/]* ) ac_abs_top_builddir=${ac_top_builddir}.;;
29861 *) ac_abs_top_builddir=$ac_abs_builddir/${ac_top_builddir}.;;
29864 case $ac_abs_builddir in
29865 .) ac_abs_srcdir=$ac_srcdir;;
29868 .) ac_abs_srcdir=$ac_abs_builddir;;
29869 [\\/]* | ?:[\\/]* ) ac_abs_srcdir=$ac_srcdir;;
29870 *) ac_abs_srcdir=$ac_abs_builddir/$ac_srcdir;;
29873 case $ac_abs_builddir in
29874 .) ac_abs_top_srcdir=$ac_top_srcdir;;
29876 case $ac_top_srcdir in
29877 .) ac_abs_top_srcdir=$ac_abs_builddir;;
29878 [\\/]* | ?:[\\/]* ) ac_abs_top_srcdir=$ac_top_srcdir;;
29879 *) ac_abs_top_srcdir=$ac_abs_builddir/$ac_top_srcdir;;
29885 [\\/$]* | ?:[\\/]* ) ac_INSTALL=$INSTALL ;;
29886 *) ac_INSTALL=$ac_top_builddir$INSTALL ;;
29889 if test x"$ac_file" != x-; then
29890 { echo "$as_me:$LINENO: creating $ac_file" >&5
29891 echo "$as_me: creating $ac_file" >&6;}
29894 # Let's still pretend it is `configure' which instantiates (i.e., don't
29895 # use $as_me), people would be surprised to read:
29896 # /* config.h. Generated by config.status. */
29897 if test x"$ac_file" = x-; then
29900 configure_input="$ac_file. "
29902 configure_input=$configure_input"Generated from `echo $ac_file_in |
29903 sed 's,.*/,,'` by configure."
29905 # First look for the input files in the build tree, otherwise in the
29907 ac_file_inputs=`IFS=:
29908 for f in $ac_file_in; do
29910 -) echo $tmp/stdin ;;
29912 # Absolute (can't be DOS-style, as IFS=:)
29913 test -f "$f" || { { echo "$as_me:$LINENO: error: cannot find input file: $f" >&5
29914 echo "$as_me: error: cannot find input file: $f" >&2;}
29915 { (exit 1); exit 1; }; }
29918 if test -f "$f"; then
29921 elif test -f "$srcdir/$f"; then
29926 { { echo "$as_me:$LINENO: error: cannot find input file: $f" >&5
29927 echo "$as_me: error: cannot find input file: $f" >&2;}
29928 { (exit 1); exit 1; }; }
29931 done` || { (exit 1); exit 1; }
29933 cat >>$CONFIG_STATUS <<_ACEOF
29937 cat >>$CONFIG_STATUS <<\_ACEOF
29939 /@[a-zA-Z_][a-zA-Z_0-9]*@/!b
29940 s,@configure_input@,$configure_input,;t t
29941 s,@srcdir@,$ac_srcdir,;t t
29942 s,@abs_srcdir@,$ac_abs_srcdir,;t t
29943 s,@top_srcdir@,$ac_top_srcdir,;t t
29944 s,@abs_top_srcdir@,$ac_abs_top_srcdir,;t t
29945 s,@builddir@,$ac_builddir,;t t
29946 s,@abs_builddir@,$ac_abs_builddir,;t t
29947 s,@top_builddir@,$ac_top_builddir,;t t
29948 s,@abs_top_builddir@,$ac_abs_top_builddir,;t t
29949 s,@INSTALL@,$ac_INSTALL,;t t
29950 " $ac_file_inputs | (eval "$ac_sed_cmds") >$tmp/out
29952 if test x"$ac_file" != x-; then
29953 mv $tmp/out $ac_file
29961 cat >>$CONFIG_STATUS <<\_ACEOF
29964 # CONFIG_HEADER section.
29967 # These sed commands are passed to sed as "A NAME B NAME C VALUE D", where
29968 # NAME is the cpp macro being defined and VALUE is the value it is being given.
29970 # ac_d sets the value in "#define NAME VALUE" lines.
29971 ac_dA='s,^\([ ]*\)#\([ ]*define[ ][ ]*\)'
29972 ac_dB='[ ].*$,\1#\2'
29975 # ac_u turns "#undef NAME" without trailing blanks into "#define NAME VALUE".
29976 ac_uA='s,^\([ ]*\)#\([ ]*\)undef\([ ][ ]*\)'
29977 ac_uB='$,\1#\2define\3'
29981 for ac_file in : $CONFIG_HEADERS; do test "x$ac_file" = x: && continue
29982 # Support "outfile[:infile[:infile...]]", defaulting infile="outfile.in".
29984 - | *:- | *:-:* ) # input from stdin
29986 ac_file_in=`echo "$ac_file" | sed 's,[^:]*:,,'`
29987 ac_file=`echo "$ac_file" | sed 's,:.*,,'` ;;
29988 *:* ) ac_file_in=`echo "$ac_file" | sed 's,[^:]*:,,'`
29989 ac_file=`echo "$ac_file" | sed 's,:.*,,'` ;;
29990 * ) ac_file_in=$ac_file.in ;;
29993 test x"$ac_file" != x- && { echo "$as_me:$LINENO: creating $ac_file" >&5
29994 echo "$as_me: creating $ac_file" >&6;}
29996 # First look for the input files in the build tree, otherwise in the
29998 ac_file_inputs=`IFS=:
29999 for f in $ac_file_in; do
30001 -) echo $tmp/stdin ;;
30003 # Absolute (can't be DOS-style, as IFS=:)
30004 test -f "$f" || { { echo "$as_me:$LINENO: error: cannot find input file: $f" >&5
30005 echo "$as_me: error: cannot find input file: $f" >&2;}
30006 { (exit 1); exit 1; }; }
30007 # Do quote $f, to prevent DOS paths from being IFS'd.
30010 if test -f "$f"; then
30013 elif test -f "$srcdir/$f"; then
30018 { { echo "$as_me:$LINENO: error: cannot find input file: $f" >&5
30019 echo "$as_me: error: cannot find input file: $f" >&2;}
30020 { (exit 1); exit 1; }; }
30023 done` || { (exit 1); exit 1; }
30024 # Remove the trailing spaces.
30025 sed 's/[ ]*$//' $ac_file_inputs >$tmp/in
30029 # Transform confdefs.h into two sed scripts, `conftest.defines' and
30030 # `conftest.undefs', that substitutes the proper values into
30031 # config.h.in to produce config.h. The first handles `#define'
30032 # templates, and the second `#undef' templates.
30033 # And first: Protect against being on the right side of a sed subst in
30034 # config.status. Protect against being in an unquoted here document
30035 # in config.status.
30036 rm -f conftest.defines conftest.undefs
30037 # Using a here document instead of a string reduces the quoting nightmare.
30038 # Putting comments in sed scripts is not portable.
30040 # `end' is used to avoid that the second main sed command (meant for
30041 # 0-ary CPP macros) applies to n-ary macro definitions.
30042 # See the Autoconf documentation for `clear'.
30043 cat >confdef2sed.sed <<\_ACEOF
30048 s,^[ ]*#[ ]*define[ ][ ]*\([^ (][^ (]*\)\(([^)]*)\)[ ]*\(.*\)$,${ac_dA}\1${ac_dB}\1\2${ac_dC}\3${ac_dD},gp
30050 s,^[ ]*#[ ]*define[ ][ ]*\([^ ][^ ]*\)[ ]*\(.*\)$,${ac_dA}\1${ac_dB}\1${ac_dC}\2${ac_dD},gp
30053 # If some macros were called several times there might be several times
30054 # the same #defines, which is useless. Nevertheless, we may not want to
30055 # sort them, since we want the *last* AC-DEFINE to be honored.
30056 uniq confdefs.h | sed -n -f confdef2sed.sed >conftest.defines
30057 sed 's/ac_d/ac_u/g' conftest.defines >conftest.undefs
30058 rm -f confdef2sed.sed
30060 # This sed command replaces #undef with comments. This is necessary, for
30061 # example, in the case of _POSIX_SOURCE, which is predefined and required
30062 # on some systems where configure will not decide to define it.
30063 cat >>conftest.undefs <<\_ACEOF
30064 s,^[ ]*#[ ]*undef[ ][ ]*[a-zA-Z_][a-zA-Z_0-9]*,/* & */,
30067 # Break up conftest.defines because some shells have a limit on the size
30068 # of here documents, and old seds have small limits too (100 cmds).
30069 echo ' # Handle all the #define templates only if necessary.' >>$CONFIG_STATUS
30070 echo ' if grep "^[ ]*#[ ]*define" $tmp/in >/dev/null; then' >>$CONFIG_STATUS
30071 echo ' # If there are no defines, we may have an empty if/fi' >>$CONFIG_STATUS
30072 echo ' :' >>$CONFIG_STATUS
30073 rm -f conftest.tail
30074 while grep . conftest.defines >/dev/null
30076 # Write a limited-size here document to $tmp/defines.sed.
30077 echo ' cat >$tmp/defines.sed <<CEOF' >>$CONFIG_STATUS
30078 # Speed up: don't consider the non `#define' lines.
30079 echo '/^[ ]*#[ ]*define/!b' >>$CONFIG_STATUS
30080 # Work around the forget-to-reset-the-flag bug.
30081 echo 't clr' >>$CONFIG_STATUS
30082 echo ': clr' >>$CONFIG_STATUS
30083 sed ${ac_max_here_lines}q conftest.defines >>$CONFIG_STATUS
30085 sed -f $tmp/defines.sed $tmp/in >$tmp/out
30087 mv $tmp/out $tmp/in
30089 sed 1,${ac_max_here_lines}d conftest.defines >conftest.tail
30090 rm -f conftest.defines
30091 mv conftest.tail conftest.defines
30093 rm -f conftest.defines
30094 echo ' fi # grep' >>$CONFIG_STATUS
30095 echo >>$CONFIG_STATUS
30097 # Break up conftest.undefs because some shells have a limit on the size
30098 # of here documents, and old seds have small limits too (100 cmds).
30099 echo ' # Handle all the #undef templates' >>$CONFIG_STATUS
30100 rm -f conftest.tail
30101 while grep . conftest.undefs >/dev/null
30103 # Write a limited-size here document to $tmp/undefs.sed.
30104 echo ' cat >$tmp/undefs.sed <<CEOF' >>$CONFIG_STATUS
30105 # Speed up: don't consider the non `#undef'
30106 echo '/^[ ]*#[ ]*undef/!b' >>$CONFIG_STATUS
30107 # Work around the forget-to-reset-the-flag bug.
30108 echo 't clr' >>$CONFIG_STATUS
30109 echo ': clr' >>$CONFIG_STATUS
30110 sed ${ac_max_here_lines}q conftest.undefs >>$CONFIG_STATUS
30112 sed -f $tmp/undefs.sed $tmp/in >$tmp/out
30114 mv $tmp/out $tmp/in
30116 sed 1,${ac_max_here_lines}d conftest.undefs >conftest.tail
30117 rm -f conftest.undefs
30118 mv conftest.tail conftest.undefs
30120 rm -f conftest.undefs
30122 cat >>$CONFIG_STATUS <<\_ACEOF
30123 # Let's still pretend it is `configure' which instantiates (i.e., don't
30124 # use $as_me), people would be surprised to read:
30125 # /* config.h. Generated by config.status. */
30126 if test x"$ac_file" = x-; then
30127 echo "/* Generated by configure. */" >$tmp/config.h
30129 echo "/* $ac_file. Generated by configure. */" >$tmp/config.h
30131 cat $tmp/in >>$tmp/config.h
30133 if test x"$ac_file" != x-; then
30134 if diff $ac_file $tmp/config.h >/dev/null 2>&1; then
30135 { echo "$as_me:$LINENO: $ac_file is unchanged" >&5
30136 echo "$as_me: $ac_file is unchanged" >&6;}
30138 ac_dir=`(dirname "$ac_file") 2>/dev/null ||
30139 $as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
30140 X"$ac_file" : 'X\(//\)[^/]' \| \
30141 X"$ac_file" : 'X\(//\)$' \| \
30142 X"$ac_file" : 'X\(/\)' \| \
30143 . : '\(.\)' 2>/dev/null ||
30145 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
30146 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
30147 /^X\(\/\/\)$/{ s//\1/; q; }
30148 /^X\(\/\).*/{ s//\1/; q; }
30150 { if $as_mkdir_p; then
30155 while test ! -d "$as_dir"; do
30156 as_dirs="$as_dir $as_dirs"
30157 as_dir=`(dirname "$as_dir") 2>/dev/null ||
30158 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
30159 X"$as_dir" : 'X\(//\)[^/]' \| \
30160 X"$as_dir" : 'X\(//\)$' \| \
30161 X"$as_dir" : 'X\(/\)' \| \
30162 . : '\(.\)' 2>/dev/null ||
30164 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
30165 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
30166 /^X\(\/\/\)$/{ s//\1/; q; }
30167 /^X\(\/\).*/{ s//\1/; q; }
30170 test ! -n "$as_dirs" || mkdir $as_dirs
30171 fi || { { echo "$as_me:$LINENO: error: cannot create directory \"$ac_dir\"" >&5
30172 echo "$as_me: error: cannot create directory \"$ac_dir\"" >&2;}
30173 { (exit 1); exit 1; }; }; }
30176 mv $tmp/config.h $ac_file
30180 rm -f $tmp/config.h
30182 # Compute $ac_file's index in $config_headers.
30184 for _am_header in $config_headers :; do
30185 case $_am_header in
30186 $ac_file | $ac_file:* )
30189 _am_stamp_count=`expr $_am_stamp_count + 1` ;;
30192 echo "timestamp for $ac_file" >`(dirname $ac_file) 2>/dev/null ||
30193 $as_expr X$ac_file : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
30194 X$ac_file : 'X\(//\)[^/]' \| \
30195 X$ac_file : 'X\(//\)$' \| \
30196 X$ac_file : 'X\(/\)' \| \
30197 . : '\(.\)' 2>/dev/null ||
30199 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
30200 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
30201 /^X\(\/\/\)$/{ s//\1/; q; }
30202 /^X\(\/\).*/{ s//\1/; q; }
30203 s/.*/./; q'`/stamp-h$_am_stamp_count
30206 cat >>$CONFIG_STATUS <<\_ACEOF
30209 # CONFIG_LINKS section.
30212 for ac_file in : $CONFIG_LINKS; do test "x$ac_file" = x: && continue
30213 ac_dest=`echo "$ac_file" | sed 's,:.*,,'`
30214 ac_source=`echo "$ac_file" | sed 's,[^:]*:,,'`
30216 { echo "$as_me:$LINENO: linking $srcdir/$ac_source to $ac_dest" >&5
30217 echo "$as_me: linking $srcdir/$ac_source to $ac_dest" >&6;}
30219 if test ! -r $srcdir/$ac_source; then
30220 { { echo "$as_me:$LINENO: error: $srcdir/$ac_source: file not found" >&5
30221 echo "$as_me: error: $srcdir/$ac_source: file not found" >&2;}
30222 { (exit 1); exit 1; }; }
30226 # Make relative symlinks.
30227 ac_dest_dir=`(dirname "$ac_dest") 2>/dev/null ||
30228 $as_expr X"$ac_dest" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
30229 X"$ac_dest" : 'X\(//\)[^/]' \| \
30230 X"$ac_dest" : 'X\(//\)$' \| \
30231 X"$ac_dest" : 'X\(/\)' \| \
30232 . : '\(.\)' 2>/dev/null ||
30234 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
30235 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
30236 /^X\(\/\/\)$/{ s//\1/; q; }
30237 /^X\(\/\).*/{ s//\1/; q; }
30239 { if $as_mkdir_p; then
30240 mkdir -p "$ac_dest_dir"
30242 as_dir="$ac_dest_dir"
30244 while test ! -d "$as_dir"; do
30245 as_dirs="$as_dir $as_dirs"
30246 as_dir=`(dirname "$as_dir") 2>/dev/null ||
30247 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
30248 X"$as_dir" : 'X\(//\)[^/]' \| \
30249 X"$as_dir" : 'X\(//\)$' \| \
30250 X"$as_dir" : 'X\(/\)' \| \
30251 . : '\(.\)' 2>/dev/null ||
30253 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
30254 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
30255 /^X\(\/\/\)$/{ s//\1/; q; }
30256 /^X\(\/\).*/{ s//\1/; q; }
30259 test ! -n "$as_dirs" || mkdir $as_dirs
30260 fi || { { echo "$as_me:$LINENO: error: cannot create directory \"$ac_dest_dir\"" >&5
30261 echo "$as_me: error: cannot create directory \"$ac_dest_dir\"" >&2;}
30262 { (exit 1); exit 1; }; }; }
30266 if test "$ac_dest_dir" != .; then
30267 ac_dir_suffix=/`echo "$ac_dest_dir" | sed 's,^\.[\\/],,'`
30268 # A "../" for each directory in $ac_dir_suffix.
30269 ac_top_builddir=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,../,g'`
30271 ac_dir_suffix= ac_top_builddir=
30275 .) # No --srcdir option. We are building in place.
30277 if test -z "$ac_top_builddir"; then
30280 ac_top_srcdir=`echo $ac_top_builddir | sed 's,/$,,'`
30282 [\\/]* | ?:[\\/]* ) # Absolute path.
30283 ac_srcdir=$srcdir$ac_dir_suffix;
30284 ac_top_srcdir=$srcdir ;;
30285 *) # Relative path.
30286 ac_srcdir=$ac_top_builddir$srcdir$ac_dir_suffix
30287 ac_top_srcdir=$ac_top_builddir$srcdir ;;
30290 # Do not use `cd foo && pwd` to compute absolute paths, because
30291 # the directories may not exist.
30293 .) ac_abs_builddir="$ac_dest_dir";;
30295 case "$ac_dest_dir" in
30296 .) ac_abs_builddir=`pwd`;;
30297 [\\/]* | ?:[\\/]* ) ac_abs_builddir="$ac_dest_dir";;
30298 *) ac_abs_builddir=`pwd`/"$ac_dest_dir";;
30301 case $ac_abs_builddir in
30302 .) ac_abs_top_builddir=${ac_top_builddir}.;;
30304 case ${ac_top_builddir}. in
30305 .) ac_abs_top_builddir=$ac_abs_builddir;;
30306 [\\/]* | ?:[\\/]* ) ac_abs_top_builddir=${ac_top_builddir}.;;
30307 *) ac_abs_top_builddir=$ac_abs_builddir/${ac_top_builddir}.;;
30310 case $ac_abs_builddir in
30311 .) ac_abs_srcdir=$ac_srcdir;;
30314 .) ac_abs_srcdir=$ac_abs_builddir;;
30315 [\\/]* | ?:[\\/]* ) ac_abs_srcdir=$ac_srcdir;;
30316 *) ac_abs_srcdir=$ac_abs_builddir/$ac_srcdir;;
30319 case $ac_abs_builddir in
30320 .) ac_abs_top_srcdir=$ac_top_srcdir;;
30322 case $ac_top_srcdir in
30323 .) ac_abs_top_srcdir=$ac_abs_builddir;;
30324 [\\/]* | ?:[\\/]* ) ac_abs_top_srcdir=$ac_top_srcdir;;
30325 *) ac_abs_top_srcdir=$ac_abs_builddir/$ac_top_srcdir;;
30331 [\\/$]* | ?:[\\/]* ) ac_rel_source=$srcdir/$ac_source ;;
30332 *) ac_rel_source=$ac_top_builddir$srcdir/$ac_source ;;
30335 # Try a symlink, then a hard link, then a copy.
30336 ln -s $ac_rel_source $ac_dest 2>/dev/null ||
30337 ln $srcdir/$ac_source $ac_dest 2>/dev/null ||
30338 cp -p $srcdir/$ac_source $ac_dest ||
30339 { { echo "$as_me:$LINENO: error: cannot link or copy $srcdir/$ac_source to $ac_dest" >&5
30340 echo "$as_me: error: cannot link or copy $srcdir/$ac_source to $ac_dest" >&2;}
30341 { (exit 1); exit 1; }; }
30344 cat >>$CONFIG_STATUS <<\_ACEOF
30347 # CONFIG_COMMANDS section.
30349 for ac_file in : $CONFIG_COMMANDS; do test "x$ac_file" = x: && continue
30350 ac_dest=`echo "$ac_file" | sed 's,:.*,,'`
30351 ac_source=`echo "$ac_file" | sed 's,[^:]*:,,'`
30352 ac_dir=`(dirname "$ac_dest") 2>/dev/null ||
30353 $as_expr X"$ac_dest" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
30354 X"$ac_dest" : 'X\(//\)[^/]' \| \
30355 X"$ac_dest" : 'X\(//\)$' \| \
30356 X"$ac_dest" : 'X\(/\)' \| \
30357 . : '\(.\)' 2>/dev/null ||
30359 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
30360 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
30361 /^X\(\/\/\)$/{ s//\1/; q; }
30362 /^X\(\/\).*/{ s//\1/; q; }
30364 { if $as_mkdir_p; then
30369 while test ! -d "$as_dir"; do
30370 as_dirs="$as_dir $as_dirs"
30371 as_dir=`(dirname "$as_dir") 2>/dev/null ||
30372 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
30373 X"$as_dir" : 'X\(//\)[^/]' \| \
30374 X"$as_dir" : 'X\(//\)$' \| \
30375 X"$as_dir" : 'X\(/\)' \| \
30376 . : '\(.\)' 2>/dev/null ||
30378 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
30379 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
30380 /^X\(\/\/\)$/{ s//\1/; q; }
30381 /^X\(\/\).*/{ s//\1/; q; }
30384 test ! -n "$as_dirs" || mkdir $as_dirs
30385 fi || { { echo "$as_me:$LINENO: error: cannot create directory \"$ac_dir\"" >&5
30386 echo "$as_me: error: cannot create directory \"$ac_dir\"" >&2;}
30387 { (exit 1); exit 1; }; }; }
30391 if test "$ac_dir" != .; then
30392 ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'`
30393 # A "../" for each directory in $ac_dir_suffix.
30394 ac_top_builddir=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,../,g'`
30396 ac_dir_suffix= ac_top_builddir=
30400 .) # No --srcdir option. We are building in place.
30402 if test -z "$ac_top_builddir"; then
30405 ac_top_srcdir=`echo $ac_top_builddir | sed 's,/$,,'`
30407 [\\/]* | ?:[\\/]* ) # Absolute path.
30408 ac_srcdir=$srcdir$ac_dir_suffix;
30409 ac_top_srcdir=$srcdir ;;
30410 *) # Relative path.
30411 ac_srcdir=$ac_top_builddir$srcdir$ac_dir_suffix
30412 ac_top_srcdir=$ac_top_builddir$srcdir ;;
30415 # Do not use `cd foo && pwd` to compute absolute paths, because
30416 # the directories may not exist.
30418 .) ac_abs_builddir="$ac_dir";;
30421 .) ac_abs_builddir=`pwd`;;
30422 [\\/]* | ?:[\\/]* ) ac_abs_builddir="$ac_dir";;
30423 *) ac_abs_builddir=`pwd`/"$ac_dir";;
30426 case $ac_abs_builddir in
30427 .) ac_abs_top_builddir=${ac_top_builddir}.;;
30429 case ${ac_top_builddir}. in
30430 .) ac_abs_top_builddir=$ac_abs_builddir;;
30431 [\\/]* | ?:[\\/]* ) ac_abs_top_builddir=${ac_top_builddir}.;;
30432 *) ac_abs_top_builddir=$ac_abs_builddir/${ac_top_builddir}.;;
30435 case $ac_abs_builddir in
30436 .) ac_abs_srcdir=$ac_srcdir;;
30439 .) ac_abs_srcdir=$ac_abs_builddir;;
30440 [\\/]* | ?:[\\/]* ) ac_abs_srcdir=$ac_srcdir;;
30441 *) ac_abs_srcdir=$ac_abs_builddir/$ac_srcdir;;
30444 case $ac_abs_builddir in
30445 .) ac_abs_top_srcdir=$ac_top_srcdir;;
30447 case $ac_top_srcdir in
30448 .) ac_abs_top_srcdir=$ac_abs_builddir;;
30449 [\\/]* | ?:[\\/]* ) ac_abs_top_srcdir=$ac_top_srcdir;;
30450 *) ac_abs_top_srcdir=$ac_abs_builddir/$ac_top_srcdir;;
30455 { echo "$as_me:$LINENO: executing $ac_dest commands" >&5
30456 echo "$as_me: executing $ac_dest commands" >&6;}
30458 depfiles ) test x"$AMDEP_TRUE" != x"" || for mf in $CONFIG_FILES; do
30459 # Strip MF so we end up with the name of the file.
30460 mf=`echo "$mf" | sed -e 's/:.*$//'`
30461 # Check whether this is an Automake generated Makefile or not.
30462 # We used to match only the files named `Makefile.in', but
30463 # some people rename them; so instead we look at the file content.
30464 # Grep'ing the first line is not enough: some people post-process
30465 # each Makefile.in and add a new line on top of each file to say so.
30466 # So let's grep whole file.
30467 if grep '^#.*generated by automake' $mf > /dev/null 2>&1; then
30468 dirpart=`(dirname "$mf") 2>/dev/null ||
30469 $as_expr X"$mf" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
30470 X"$mf" : 'X\(//\)[^/]' \| \
30471 X"$mf" : 'X\(//\)$' \| \
30472 X"$mf" : 'X\(/\)' \| \
30473 . : '\(.\)' 2>/dev/null ||
30475 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
30476 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
30477 /^X\(\/\/\)$/{ s//\1/; q; }
30478 /^X\(\/\).*/{ s//\1/; q; }
30483 # Extract the definition of DEPDIR, am__include, and am__quote
30484 # from the Makefile without running `make'.
30485 DEPDIR=`sed -n 's/^DEPDIR = //p' < "$mf"`
30486 test -z "$DEPDIR" && continue
30487 am__include=`sed -n 's/^am__include = //p' < "$mf"`
30488 test -z "am__include" && continue
30489 am__quote=`sed -n 's/^am__quote = //p' < "$mf"`
30490 # When using ansi2knr, U may be empty or an underscore; expand it
30491 U=`sed -n 's/^U = //p' < "$mf"`
30492 # Find all dependency output files, they are included files with
30493 # $(DEPDIR) in their names. We invoke sed twice because it is the
30494 # simplest approach to changing $(DEPDIR) to its actual value in the
30496 for file in `sed -n "
30497 s/^$am__include $am__quote\(.*(DEPDIR).*\)$am__quote"'$/\1/p' <"$mf" | \
30498 sed -e 's/\$(DEPDIR)/'"$DEPDIR"'/g' -e 's/\$U/'"$U"'/g'`; do
30499 # Make sure the directory exists.
30500 test -f "$dirpart/$file" && continue
30501 fdir=`(dirname "$file") 2>/dev/null ||
30502 $as_expr X"$file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
30503 X"$file" : 'X\(//\)[^/]' \| \
30504 X"$file" : 'X\(//\)$' \| \
30505 X"$file" : 'X\(/\)' \| \
30506 . : '\(.\)' 2>/dev/null ||
30508 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
30509 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
30510 /^X\(\/\/\)$/{ s//\1/; q; }
30511 /^X\(\/\).*/{ s//\1/; q; }
30513 { if $as_mkdir_p; then
30514 mkdir -p $dirpart/$fdir
30516 as_dir=$dirpart/$fdir
30518 while test ! -d "$as_dir"; do
30519 as_dirs="$as_dir $as_dirs"
30520 as_dir=`(dirname "$as_dir") 2>/dev/null ||
30521 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
30522 X"$as_dir" : 'X\(//\)[^/]' \| \
30523 X"$as_dir" : 'X\(//\)$' \| \
30524 X"$as_dir" : 'X\(/\)' \| \
30525 . : '\(.\)' 2>/dev/null ||
30527 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
30528 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
30529 /^X\(\/\/\)$/{ s//\1/; q; }
30530 /^X\(\/\).*/{ s//\1/; q; }
30533 test ! -n "$as_dirs" || mkdir $as_dirs
30534 fi || { { echo "$as_me:$LINENO: error: cannot create directory $dirpart/$fdir" >&5
30535 echo "$as_me: error: cannot create directory $dirpart/$fdir" >&2;}
30536 { (exit 1); exit 1; }; }; }
30538 # echo "creating $dirpart/$file"
30539 echo '# dummy' > "$dirpart/$file"
30544 if test "$GCC" = yes; then
30545 echo "/* generated for " `$CC --version | sed 1q` "*/" > tmp-stdint.h
30547 echo "/* generated for $CC */" > tmp-stdint.h
30550 sed 's/^ *//' >> tmp-stdint.h <<EOF
30552 #ifndef GCC_GENERATED_STDINT_H
30553 #define GCC_GENERATED_STDINT_H 1
30555 #include <sys/types.h>
30558 if test "$acx_cv_header_stdint" != stdint.h; then
30559 echo "#include <stddef.h>" >> tmp-stdint.h
30561 if test "$acx_cv_header_stdint" != stddef.h; then
30562 echo "#include <$acx_cv_header_stdint>" >> tmp-stdint.h
30565 sed 's/^ *//' >> tmp-stdint.h <<EOF
30566 /* glibc uses these symbols as guards to prevent redefinitions. */
30567 #ifdef __int8_t_defined
30572 #ifdef __uint32_t_defined
30578 # ----------------- done header, emit basic int types -------------
30579 if test "$acx_cv_header_stdint" = stddef.h; then
30580 sed 's/^ *//' >> tmp-stdint.h <<EOF
30584 #ifndef __uint8_t_defined
30585 #define __uint8_t_defined
30586 typedef unsigned $acx_cv_type_int8_t uint8_t;
30592 #ifndef __uint16_t_defined
30593 #define __uint16_t_defined
30594 typedef unsigned $acx_cv_type_int16_t uint16_t;
30600 #ifndef __uint32_t_defined
30601 #define __uint32_t_defined
30602 typedef unsigned $acx_cv_type_int32_t uint32_t;
30608 #ifndef __int8_t_defined
30609 #define __int8_t_defined
30610 typedef $acx_cv_type_int8_t int8_t;
30616 #ifndef __int16_t_defined
30617 #define __int16_t_defined
30618 typedef $acx_cv_type_int16_t int16_t;
30624 #ifndef __int32_t_defined
30625 #define __int32_t_defined
30626 typedef $acx_cv_type_int32_t int32_t;
30630 elif test "$ac_cv_type_u_int32_t" = yes; then
30631 sed 's/^ *//' >> tmp-stdint.h <<EOF
30633 /* int8_t int16_t int32_t defined by inet code, we do the u_intXX types */
30646 #ifndef __uint8_t_defined
30647 #define __uint8_t_defined
30648 typedef u_int8_t uint8_t;
30654 #ifndef __uint16_t_defined
30655 #define __uint16_t_defined
30656 typedef u_int16_t uint16_t;
30662 #ifndef __uint32_t_defined
30663 #define __uint32_t_defined
30664 typedef u_int32_t uint32_t;
30669 sed 's/^ *//' >> tmp-stdint.h <<EOF
30671 /* Some systems have guard macros to prevent redefinitions, define them. */
30693 # ------------- done basic int types, emit int64_t types ------------
30694 if test "$ac_cv_type_uint64_t" = yes; then
30695 sed 's/^ *//' >> tmp-stdint.h <<EOF
30697 /* system headers have good uint64_t and int64_t */
30705 elif test "$ac_cv_type_u_int64_t" = yes; then
30706 sed 's/^ *//' >> tmp-stdint.h <<EOF
30708 /* system headers have an u_int64_t (and int64_t) */
30714 #ifndef __uint64_t_defined
30715 #define __uint64_t_defined
30716 typedef u_int64_t uint64_t;
30720 elif test -n "$acx_cv_type_int64_t"; then
30721 sed 's/^ *//' >> tmp-stdint.h <<EOF
30723 /* architecture has a 64-bit type, $acx_cv_type_int64_t */
30726 typedef $acx_cv_type_int64_t int64_t;
30730 #ifndef __uint64_t_defined
30731 #define __uint64_t_defined
30732 typedef unsigned $acx_cv_type_int64_t uint64_t;
30737 sed 's/^ *//' >> tmp-stdint.h <<EOF
30739 /* some common heuristics for int64_t, using compiler-specific tests */
30740 #if defined __STDC_VERSION__ && (__STDC_VERSION__-0) >= 199901L
30743 #ifndef __int64_t_defined
30744 typedef long long int64_t;
30749 typedef unsigned long long uint64_t;
30752 #elif defined __GNUC__ && defined (__STDC__) && __STDC__-0
30753 /* NextStep 2.0 cc is really gcc 1.93 but it defines __GNUC__ = 2 and
30754 does not implement __extension__. But that compiler doesn't define
30756 # if __GNUC__ < 2 || (__NeXT__ && !__GNUC_MINOR__)
30757 # define __extension__
30762 __extension__ typedef long long int64_t;
30766 __extension__ typedef unsigned long long uint64_t;
30769 #elif !defined __STRICT_ANSI__
30770 # if defined _MSC_VER || defined __WATCOMC__ || defined __BORLANDC__
30774 typedef __int64 int64_t;
30778 typedef unsigned __int64 uint64_t;
30780 # endif /* compiler */
30782 #endif /* ANSI version */
30786 # ------------- done int64_t types, emit intptr types ------------
30787 if test "$ac_cv_type_uintptr_t" != yes; then
30788 sed 's/^ *//' >> tmp-stdint.h <<EOF
30790 /* Define intptr_t based on sizeof(void*) = $ac_cv_sizeof_void_p */
30791 #ifndef __uintptr_t_defined
30792 typedef u$acx_cv_type_intptr_t uintptr_t;
30794 #ifndef __intptr_t_defined
30795 typedef $acx_cv_type_intptr_t intptr_t;
30800 # ------------- done intptr types, emit int_least types ------------
30801 if test "$ac_cv_type_int_least32_t" != yes; then
30802 sed 's/^ *//' >> tmp-stdint.h <<EOF
30804 /* Define int_least types */
30805 typedef int8_t int_least8_t;
30806 typedef int16_t int_least16_t;
30807 typedef int32_t int_least32_t;
30809 typedef int64_t int_least64_t;
30812 typedef uint8_t uint_least8_t;
30813 typedef uint16_t uint_least16_t;
30814 typedef uint32_t uint_least32_t;
30816 typedef uint64_t uint_least64_t;
30821 # ------------- done intptr types, emit int_fast types ------------
30822 if test "$ac_cv_type_int_fast32_t" != yes; then
30823 sed 's/^ *//' >> tmp-stdint.h <<EOF
30825 /* Define int_fast types. short is often slow */
30826 typedef int8_t int_fast8_t;
30827 typedef int int_fast16_t;
30828 typedef int32_t int_fast32_t;
30830 typedef int64_t int_fast64_t;
30833 typedef uint8_t uint_fast8_t;
30834 typedef unsigned int uint_fast16_t;
30835 typedef uint32_t uint_fast32_t;
30837 typedef uint64_t uint_fast64_t;
30842 if test "$ac_cv_type_uintmax_t" != yes; then
30843 sed 's/^ *//' >> tmp-stdint.h <<EOF
30845 /* Define intmax based on what we found */
30847 typedef int64_t intmax_t;
30849 typedef long intmax_t;
30852 typedef uint64_t uintmax_t;
30854 typedef unsigned long uintmax_t;
30859 sed 's/^ *//' >> tmp-stdint.h <<EOF
30861 #endif /* GCC_GENERATED_STDINT_H */
30864 if test -r gdb_stdint.h && cmp -s tmp-stdint.h gdb_stdint.h; then
30867 mv -f tmp-stdint.h gdb_stdint.h
30873 sed -e '/^NAT_FILE[ ]*=/s,^NAT_FILE[ ]*=[ ]*,&config/'"${gdb_host_cpu}"'/,' <Makefile >Makefile.tmp
30874 mv -f Makefile.tmp Makefile
30877 case x$CONFIG_HEADERS in
30878 xconfig.h:config.in)
30886 cat >>$CONFIG_STATUS <<\_ACEOF
30888 { (exit 0); exit 0; }
30890 chmod +x $CONFIG_STATUS
30891 ac_clean_files=$ac_clean_files_save
30894 # configure is writing to config.log, and then calls config.status.
30895 # config.status does its own redirection, appending to config.log.
30896 # Unfortunately, on DOS this fails, as config.log is still kept open
30897 # by configure, so config.status won't be able to write to it; its
30898 # output is simply discarded. So we exec the FD to /dev/null,
30899 # effectively closing config.log, so it can be properly (re)opened and
30900 # appended to by config.status. When coming back to configure, we
30901 # need to make the FD available again.
30902 if test "$no_create" != yes; then
30904 ac_config_status_args=
30905 test "$silent" = yes &&
30906 ac_config_status_args="$ac_config_status_args --quiet"
30908 $SHELL $CONFIG_STATUS $ac_config_status_args || ac_cs_success=false
30910 # Use ||, not &&, to avoid exiting from the if with $? = 1, which
30911 # would make configure fail if this is the last instruction.
30912 $ac_cs_success || { (exit 1); exit 1; }
30916 # CONFIG_SUBDIRS section, as fixed in confsubdir.m4.
30918 if test "$no_recursion" != yes; then
30920 # Remove --cache-file and --srcdir arguments so they do not pile up.
30921 ac_sub_configure_args=
30923 eval "set x $ac_configure_args"
30927 if test -n "$ac_prev"; then
30932 -cache-file | --cache-file | --cache-fil | --cache-fi \
30933 | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c)
30934 ac_prev=cache_file ;;
30935 -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \
30936 | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* \
30939 --config-cache | -C)
30941 -srcdir | --srcdir | --srcdi | --srcd | --src | --sr)
30943 -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*)
30945 -prefix | --prefix | --prefi | --pref | --pre | --pr | --p)
30947 -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*)
30951 *\'*) ac_arg=`echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;;
30953 ac_sub_configure_args="$ac_sub_configure_args '$ac_arg'" ;;
30957 # Always prepend --prefix to ensure using the same prefix
30958 # in subdir configurations.
30959 ac_arg="--prefix=$prefix"
30961 *\'*) ac_arg=`echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;;
30963 ac_sub_configure_args="$ac_arg $ac_sub_configure_args"
30966 for ac_dir in : $subdirs; do test "x$ac_dir" = x: && continue
30968 # Do not complain, so a configure script can configure whichever
30969 # parts of a large source tree are present.
30970 test -d "$srcdir/$ac_dir" || continue
30972 { echo "$as_me:$LINENO: configuring in $ac_dir" >&5
30973 echo "$as_me: configuring in $ac_dir" >&6;}
30974 { if $as_mkdir_p; then
30979 while test ! -d "$as_dir"; do
30980 as_dirs="$as_dir $as_dirs"
30981 as_dir=`(dirname "$as_dir") 2>/dev/null ||
30982 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
30983 X"$as_dir" : 'X\(//\)[^/]' \| \
30984 X"$as_dir" : 'X\(//\)$' \| \
30985 X"$as_dir" : 'X\(/\)' \| \
30986 . : '\(.\)' 2>/dev/null ||
30988 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
30989 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
30990 /^X\(\/\/\)$/{ s//\1/; q; }
30991 /^X\(\/\).*/{ s//\1/; q; }
30994 test ! -n "$as_dirs" || mkdir $as_dirs
30995 fi || { { echo "$as_me:$LINENO: error: cannot create directory \"$ac_dir\"" >&5
30996 echo "$as_me: error: cannot create directory \"$ac_dir\"" >&2;}
30997 { (exit 1); exit 1; }; }; }
31001 if test "$ac_dir" != .; then
31002 ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'`
31003 # A "../" for each directory in $ac_dir_suffix.
31004 ac_top_builddir=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,../,g'`
31006 ac_dir_suffix= ac_top_builddir=
31010 .) # No --srcdir option. We are building in place.
31012 if test -z "$ac_top_builddir"; then
31015 ac_top_srcdir=`echo $ac_top_builddir | sed 's,/$,,'`
31017 [\\/]* | ?:[\\/]* ) # Absolute path.
31018 ac_srcdir=$srcdir$ac_dir_suffix;
31019 ac_top_srcdir=$srcdir ;;
31020 *) # Relative path.
31021 ac_srcdir=$ac_top_builddir$srcdir$ac_dir_suffix
31022 ac_top_srcdir=$ac_top_builddir$srcdir ;;
31025 # Do not use `cd foo && pwd` to compute absolute paths, because
31026 # the directories may not exist.
31028 .) ac_abs_builddir="$ac_dir";;
31031 .) ac_abs_builddir=`pwd`;;
31032 [\\/]* | ?:[\\/]* ) ac_abs_builddir="$ac_dir";;
31033 *) ac_abs_builddir=`pwd`/"$ac_dir";;
31036 case $ac_abs_builddir in
31037 .) ac_abs_top_builddir=${ac_top_builddir}.;;
31039 case ${ac_top_builddir}. in
31040 .) ac_abs_top_builddir=$ac_abs_builddir;;
31041 [\\/]* | ?:[\\/]* ) ac_abs_top_builddir=${ac_top_builddir}.;;
31042 *) ac_abs_top_builddir=$ac_abs_builddir/${ac_top_builddir}.;;
31045 case $ac_abs_builddir in
31046 .) ac_abs_srcdir=$ac_srcdir;;
31049 .) ac_abs_srcdir=$ac_abs_builddir;;
31050 [\\/]* | ?:[\\/]* ) ac_abs_srcdir=$ac_srcdir;;
31051 *) ac_abs_srcdir=$ac_abs_builddir/$ac_srcdir;;
31054 case $ac_abs_builddir in
31055 .) ac_abs_top_srcdir=$ac_top_srcdir;;
31057 case $ac_top_srcdir in
31058 .) ac_abs_top_srcdir=$ac_abs_builddir;;
31059 [\\/]* | ?:[\\/]* ) ac_abs_top_srcdir=$ac_top_srcdir;;
31060 *) ac_abs_top_srcdir=$ac_abs_builddir/$ac_top_srcdir;;
31067 # Check for guested configure; otherwise get Cygnus style configure.
31068 if test -f "$ac_srcdir/configure.gnu"; then
31069 ac_sub_configure=$ac_srcdir/configure.gnu
31070 elif test -f "$ac_srcdir/configure"; then
31071 ac_sub_configure=$ac_srcdir/configure
31072 elif test -f "$ac_srcdir/configure.in"; then
31073 # This should be Cygnus configure.
31074 ac_sub_configure=$ac_aux_dir/configure
31076 { echo "$as_me:$LINENO: WARNING: no configuration information is in $ac_dir" >&5
31077 echo "$as_me: WARNING: no configuration information is in $ac_dir" >&2;}
31081 # The recursion is here.
31082 if test -n "$ac_sub_configure"; then
31083 # Make the cache file name correct relative to the subdirectory.
31084 case $cache_file in
31085 [\\/]* | ?:[\\/]* ) ac_sub_cache_file=$cache_file ;;
31086 *) # Relative path.
31087 ac_sub_cache_file=$ac_top_builddir$cache_file ;;
31090 { echo "$as_me:$LINENO: running $SHELL $ac_sub_configure $ac_sub_configure_args --cache-file=$ac_sub_cache_file --srcdir=$ac_srcdir" >&5
31091 echo "$as_me: running $SHELL $ac_sub_configure $ac_sub_configure_args --cache-file=$ac_sub_cache_file --srcdir=$ac_srcdir" >&6;}
31092 # The eval makes quoting arguments work.
31093 eval "\$SHELL \"\$ac_sub_configure\" $ac_sub_configure_args \
31094 --cache-file=\"\$ac_sub_cache_file\" --srcdir=\"\$ac_srcdir\"" ||
31095 { { echo "$as_me:$LINENO: error: $ac_sub_configure failed for $ac_dir" >&5
31096 echo "$as_me: error: $ac_sub_configure failed for $ac_dir" >&2;}
31097 { (exit 1); exit 1; }; }