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 GNULIB_STDINT_H 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'
321 # Initialize some variables set by options.
323 ac_init_version=false
324 # The variables have the same names as the options, with
325 # dashes changed to underlines.
333 program_transform_name=s,x,x,
341 # Installation directory options.
342 # These are left unexpanded so users can "make install exec_prefix=/foo"
343 # and all the variables that are supposed to be based on exec_prefix
344 # by default will actually change.
345 # Use braces instead of parens because sh, perl, etc. also accept them.
346 bindir='${exec_prefix}/bin'
347 sbindir='${exec_prefix}/sbin'
348 libexecdir='${exec_prefix}/libexec'
349 datadir='${prefix}/share'
350 sysconfdir='${prefix}/etc'
351 sharedstatedir='${prefix}/com'
352 localstatedir='${prefix}/var'
353 libdir='${exec_prefix}/lib'
354 includedir='${prefix}/include'
355 oldincludedir='/usr/include'
356 infodir='${prefix}/info'
357 mandir='${prefix}/man'
362 # If the previous option needs an argument, assign it.
363 if test -n "$ac_prev"; then
364 eval "$ac_prev=\$ac_option"
369 ac_optarg=`expr "x$ac_option" : 'x[^=]*=\(.*\)'`
371 # Accept the important Cygnus configure options, so we can diagnose typos.
375 -bindir | --bindir | --bindi | --bind | --bin | --bi)
377 -bindir=* | --bindir=* | --bindi=* | --bind=* | --bin=* | --bi=*)
380 -build | --build | --buil | --bui | --bu)
381 ac_prev=build_alias ;;
382 -build=* | --build=* | --buil=* | --bui=* | --bu=*)
383 build_alias=$ac_optarg ;;
385 -cache-file | --cache-file | --cache-fil | --cache-fi \
386 | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c)
387 ac_prev=cache_file ;;
388 -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \
389 | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* | --c=*)
390 cache_file=$ac_optarg ;;
393 cache_file=config.cache ;;
395 -datadir | --datadir | --datadi | --datad | --data | --dat | --da)
397 -datadir=* | --datadir=* | --datadi=* | --datad=* | --data=* | --dat=* \
399 datadir=$ac_optarg ;;
401 -disable-* | --disable-*)
402 ac_feature=`expr "x$ac_option" : 'x-*disable-\(.*\)'`
403 # Reject names that are not valid shell variable names.
404 expr "x$ac_feature" : ".*[^-_$as_cr_alnum]" >/dev/null &&
405 { echo "$as_me: error: invalid feature name: $ac_feature" >&2
406 { (exit 1); exit 1; }; }
407 ac_feature=`echo $ac_feature | sed 's/-/_/g'`
408 eval "enable_$ac_feature=no" ;;
410 -enable-* | --enable-*)
411 ac_feature=`expr "x$ac_option" : 'x-*enable-\([^=]*\)'`
412 # Reject names that are not valid shell variable names.
413 expr "x$ac_feature" : ".*[^-_$as_cr_alnum]" >/dev/null &&
414 { echo "$as_me: error: invalid feature name: $ac_feature" >&2
415 { (exit 1); exit 1; }; }
416 ac_feature=`echo $ac_feature | sed 's/-/_/g'`
418 *=*) ac_optarg=`echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"`;;
421 eval "enable_$ac_feature='$ac_optarg'" ;;
423 -exec-prefix | --exec_prefix | --exec-prefix | --exec-prefi \
424 | --exec-pref | --exec-pre | --exec-pr | --exec-p | --exec- \
425 | --exec | --exe | --ex)
426 ac_prev=exec_prefix ;;
427 -exec-prefix=* | --exec_prefix=* | --exec-prefix=* | --exec-prefi=* \
428 | --exec-pref=* | --exec-pre=* | --exec-pr=* | --exec-p=* | --exec-=* \
429 | --exec=* | --exe=* | --ex=*)
430 exec_prefix=$ac_optarg ;;
432 -gas | --gas | --ga | --g)
433 # Obsolete; use --with-gas.
436 -help | --help | --hel | --he | -h)
438 -help=r* | --help=r* | --hel=r* | --he=r* | -hr*)
439 ac_init_help=recursive ;;
440 -help=s* | --help=s* | --hel=s* | --he=s* | -hs*)
441 ac_init_help=short ;;
443 -host | --host | --hos | --ho)
444 ac_prev=host_alias ;;
445 -host=* | --host=* | --hos=* | --ho=*)
446 host_alias=$ac_optarg ;;
448 -includedir | --includedir | --includedi | --included | --include \
449 | --includ | --inclu | --incl | --inc)
450 ac_prev=includedir ;;
451 -includedir=* | --includedir=* | --includedi=* | --included=* | --include=* \
452 | --includ=* | --inclu=* | --incl=* | --inc=*)
453 includedir=$ac_optarg ;;
455 -infodir | --infodir | --infodi | --infod | --info | --inf)
457 -infodir=* | --infodir=* | --infodi=* | --infod=* | --info=* | --inf=*)
458 infodir=$ac_optarg ;;
460 -libdir | --libdir | --libdi | --libd)
462 -libdir=* | --libdir=* | --libdi=* | --libd=*)
465 -libexecdir | --libexecdir | --libexecdi | --libexecd | --libexec \
466 | --libexe | --libex | --libe)
467 ac_prev=libexecdir ;;
468 -libexecdir=* | --libexecdir=* | --libexecdi=* | --libexecd=* | --libexec=* \
469 | --libexe=* | --libex=* | --libe=*)
470 libexecdir=$ac_optarg ;;
472 -localstatedir | --localstatedir | --localstatedi | --localstated \
473 | --localstate | --localstat | --localsta | --localst \
474 | --locals | --local | --loca | --loc | --lo)
475 ac_prev=localstatedir ;;
476 -localstatedir=* | --localstatedir=* | --localstatedi=* | --localstated=* \
477 | --localstate=* | --localstat=* | --localsta=* | --localst=* \
478 | --locals=* | --local=* | --loca=* | --loc=* | --lo=*)
479 localstatedir=$ac_optarg ;;
481 -mandir | --mandir | --mandi | --mand | --man | --ma | --m)
483 -mandir=* | --mandir=* | --mandi=* | --mand=* | --man=* | --ma=* | --m=*)
487 # Obsolete; use --without-fp.
490 -no-create | --no-create | --no-creat | --no-crea | --no-cre \
491 | --no-cr | --no-c | -n)
494 -no-recursion | --no-recursion | --no-recursio | --no-recursi \
495 | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r)
498 -oldincludedir | --oldincludedir | --oldincludedi | --oldincluded \
499 | --oldinclude | --oldinclud | --oldinclu | --oldincl | --oldinc \
500 | --oldin | --oldi | --old | --ol | --o)
501 ac_prev=oldincludedir ;;
502 -oldincludedir=* | --oldincludedir=* | --oldincludedi=* | --oldincluded=* \
503 | --oldinclude=* | --oldinclud=* | --oldinclu=* | --oldincl=* | --oldinc=* \
504 | --oldin=* | --oldi=* | --old=* | --ol=* | --o=*)
505 oldincludedir=$ac_optarg ;;
507 -prefix | --prefix | --prefi | --pref | --pre | --pr | --p)
509 -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*)
512 -program-prefix | --program-prefix | --program-prefi | --program-pref \
513 | --program-pre | --program-pr | --program-p)
514 ac_prev=program_prefix ;;
515 -program-prefix=* | --program-prefix=* | --program-prefi=* \
516 | --program-pref=* | --program-pre=* | --program-pr=* | --program-p=*)
517 program_prefix=$ac_optarg ;;
519 -program-suffix | --program-suffix | --program-suffi | --program-suff \
520 | --program-suf | --program-su | --program-s)
521 ac_prev=program_suffix ;;
522 -program-suffix=* | --program-suffix=* | --program-suffi=* \
523 | --program-suff=* | --program-suf=* | --program-su=* | --program-s=*)
524 program_suffix=$ac_optarg ;;
526 -program-transform-name | --program-transform-name \
527 | --program-transform-nam | --program-transform-na \
528 | --program-transform-n | --program-transform- \
529 | --program-transform | --program-transfor \
530 | --program-transfo | --program-transf \
531 | --program-trans | --program-tran \
532 | --progr-tra | --program-tr | --program-t)
533 ac_prev=program_transform_name ;;
534 -program-transform-name=* | --program-transform-name=* \
535 | --program-transform-nam=* | --program-transform-na=* \
536 | --program-transform-n=* | --program-transform-=* \
537 | --program-transform=* | --program-transfor=* \
538 | --program-transfo=* | --program-transf=* \
539 | --program-trans=* | --program-tran=* \
540 | --progr-tra=* | --program-tr=* | --program-t=*)
541 program_transform_name=$ac_optarg ;;
543 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
544 | -silent | --silent | --silen | --sile | --sil)
547 -sbindir | --sbindir | --sbindi | --sbind | --sbin | --sbi | --sb)
549 -sbindir=* | --sbindir=* | --sbindi=* | --sbind=* | --sbin=* \
551 sbindir=$ac_optarg ;;
553 -sharedstatedir | --sharedstatedir | --sharedstatedi \
554 | --sharedstated | --sharedstate | --sharedstat | --sharedsta \
555 | --sharedst | --shareds | --shared | --share | --shar \
557 ac_prev=sharedstatedir ;;
558 -sharedstatedir=* | --sharedstatedir=* | --sharedstatedi=* \
559 | --sharedstated=* | --sharedstate=* | --sharedstat=* | --sharedsta=* \
560 | --sharedst=* | --shareds=* | --shared=* | --share=* | --shar=* \
562 sharedstatedir=$ac_optarg ;;
564 -site | --site | --sit)
566 -site=* | --site=* | --sit=*)
569 -srcdir | --srcdir | --srcdi | --srcd | --src | --sr)
571 -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*)
574 -sysconfdir | --sysconfdir | --sysconfdi | --sysconfd | --sysconf \
575 | --syscon | --sysco | --sysc | --sys | --sy)
576 ac_prev=sysconfdir ;;
577 -sysconfdir=* | --sysconfdir=* | --sysconfdi=* | --sysconfd=* | --sysconf=* \
578 | --syscon=* | --sysco=* | --sysc=* | --sys=* | --sy=*)
579 sysconfdir=$ac_optarg ;;
581 -target | --target | --targe | --targ | --tar | --ta | --t)
582 ac_prev=target_alias ;;
583 -target=* | --target=* | --targe=* | --targ=* | --tar=* | --ta=* | --t=*)
584 target_alias=$ac_optarg ;;
586 -v | -verbose | --verbose | --verbos | --verbo | --verb)
589 -version | --version | --versio | --versi | --vers | -V)
593 ac_package=`expr "x$ac_option" : 'x-*with-\([^=]*\)'`
594 # Reject names that are not valid shell variable names.
595 expr "x$ac_package" : ".*[^-_$as_cr_alnum]" >/dev/null &&
596 { echo "$as_me: error: invalid package name: $ac_package" >&2
597 { (exit 1); exit 1; }; }
598 ac_package=`echo $ac_package| sed 's/-/_/g'`
600 *=*) ac_optarg=`echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"`;;
603 eval "with_$ac_package='$ac_optarg'" ;;
605 -without-* | --without-*)
606 ac_package=`expr "x$ac_option" : 'x-*without-\(.*\)'`
607 # Reject names that are not valid shell variable names.
608 expr "x$ac_package" : ".*[^-_$as_cr_alnum]" >/dev/null &&
609 { echo "$as_me: error: invalid package name: $ac_package" >&2
610 { (exit 1); exit 1; }; }
611 ac_package=`echo $ac_package | sed 's/-/_/g'`
612 eval "with_$ac_package=no" ;;
615 # Obsolete; use --with-x.
618 -x-includes | --x-includes | --x-include | --x-includ | --x-inclu \
619 | --x-incl | --x-inc | --x-in | --x-i)
620 ac_prev=x_includes ;;
621 -x-includes=* | --x-includes=* | --x-include=* | --x-includ=* | --x-inclu=* \
622 | --x-incl=* | --x-inc=* | --x-in=* | --x-i=*)
623 x_includes=$ac_optarg ;;
625 -x-libraries | --x-libraries | --x-librarie | --x-librari \
626 | --x-librar | --x-libra | --x-libr | --x-lib | --x-li | --x-l)
627 ac_prev=x_libraries ;;
628 -x-libraries=* | --x-libraries=* | --x-librarie=* | --x-librari=* \
629 | --x-librar=* | --x-libra=* | --x-libr=* | --x-lib=* | --x-li=* | --x-l=*)
630 x_libraries=$ac_optarg ;;
632 -*) { echo "$as_me: error: unrecognized option: $ac_option
633 Try \`$0 --help' for more information." >&2
634 { (exit 1); exit 1; }; }
638 ac_envvar=`expr "x$ac_option" : 'x\([^=]*\)='`
639 # Reject names that are not valid shell variable names.
640 expr "x$ac_envvar" : ".*[^_$as_cr_alnum]" >/dev/null &&
641 { echo "$as_me: error: invalid variable name: $ac_envvar" >&2
642 { (exit 1); exit 1; }; }
643 ac_optarg=`echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"`
644 eval "$ac_envvar='$ac_optarg'"
648 # FIXME: should be removed in autoconf 3.0.
649 echo "$as_me: WARNING: you should use --build, --host, --target" >&2
650 expr "x$ac_option" : ".*[^-._$as_cr_alnum]" >/dev/null &&
651 echo "$as_me: WARNING: invalid host type: $ac_option" >&2
652 : ${build_alias=$ac_option} ${host_alias=$ac_option} ${target_alias=$ac_option}
658 if test -n "$ac_prev"; then
659 ac_option=--`echo $ac_prev | sed 's/_/-/g'`
660 { echo "$as_me: error: missing argument to $ac_option" >&2
661 { (exit 1); exit 1; }; }
664 # Be sure to have absolute paths.
665 for ac_var in exec_prefix prefix
667 eval ac_val=$`echo $ac_var`
669 [\\/$]* | ?:[\\/]* | NONE | '' ) ;;
670 *) { echo "$as_me: error: expected an absolute directory name for --$ac_var: $ac_val" >&2
671 { (exit 1); exit 1; }; };;
675 # Be sure to have absolute paths.
676 for ac_var in bindir sbindir libexecdir datadir sysconfdir sharedstatedir \
677 localstatedir libdir includedir oldincludedir infodir mandir
679 eval ac_val=$`echo $ac_var`
681 [\\/$]* | ?:[\\/]* ) ;;
682 *) { echo "$as_me: error: expected an absolute directory name for --$ac_var: $ac_val" >&2
683 { (exit 1); exit 1; }; };;
687 # There might be people who depend on the old broken behavior: `$host'
688 # used to hold the argument of --host etc.
689 # FIXME: To remove some day.
694 # FIXME: To remove some day.
695 if test "x$host_alias" != x; then
696 if test "x$build_alias" = x; then
697 cross_compiling=maybe
698 echo "$as_me: WARNING: If you wanted to set the --build type, don't use --host.
699 If a cross compiler is detected then cross compile mode will be used." >&2
700 elif test "x$build_alias" != "x$host_alias"; then
706 test -n "$host_alias" && ac_tool_prefix=$host_alias-
708 test "$silent" = yes && exec 6>/dev/null
711 # Find the source files, if location was not specified.
712 if test -z "$srcdir"; then
713 ac_srcdir_defaulted=yes
714 # Try the directory containing this script, then its parent.
715 ac_confdir=`(dirname "$0") 2>/dev/null ||
716 $as_expr X"$0" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
717 X"$0" : 'X\(//\)[^/]' \| \
718 X"$0" : 'X\(//\)$' \| \
719 X"$0" : 'X\(/\)' \| \
720 . : '\(.\)' 2>/dev/null ||
722 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
723 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
724 /^X\(\/\/\)$/{ s//\1/; q; }
725 /^X\(\/\).*/{ s//\1/; q; }
728 if test ! -r $srcdir/$ac_unique_file; then
732 ac_srcdir_defaulted=no
734 if test ! -r $srcdir/$ac_unique_file; then
735 if test "$ac_srcdir_defaulted" = yes; then
736 { echo "$as_me: error: cannot find sources ($ac_unique_file) in $ac_confdir or .." >&2
737 { (exit 1); exit 1; }; }
739 { echo "$as_me: error: cannot find sources ($ac_unique_file) in $srcdir" >&2
740 { (exit 1); exit 1; }; }
743 (cd $srcdir && test -r ./$ac_unique_file) 2>/dev/null ||
744 { echo "$as_me: error: sources are in $srcdir, but \`cd $srcdir' does not work" >&2
745 { (exit 1); exit 1; }; }
746 srcdir=`echo "$srcdir" | sed 's%\([^\\/]\)[\\/]*$%\1%'`
747 ac_env_build_alias_set=${build_alias+set}
748 ac_env_build_alias_value=$build_alias
749 ac_cv_env_build_alias_set=${build_alias+set}
750 ac_cv_env_build_alias_value=$build_alias
751 ac_env_host_alias_set=${host_alias+set}
752 ac_env_host_alias_value=$host_alias
753 ac_cv_env_host_alias_set=${host_alias+set}
754 ac_cv_env_host_alias_value=$host_alias
755 ac_env_target_alias_set=${target_alias+set}
756 ac_env_target_alias_value=$target_alias
757 ac_cv_env_target_alias_set=${target_alias+set}
758 ac_cv_env_target_alias_value=$target_alias
759 ac_env_CC_set=${CC+set}
761 ac_cv_env_CC_set=${CC+set}
762 ac_cv_env_CC_value=$CC
763 ac_env_CFLAGS_set=${CFLAGS+set}
764 ac_env_CFLAGS_value=$CFLAGS
765 ac_cv_env_CFLAGS_set=${CFLAGS+set}
766 ac_cv_env_CFLAGS_value=$CFLAGS
767 ac_env_LDFLAGS_set=${LDFLAGS+set}
768 ac_env_LDFLAGS_value=$LDFLAGS
769 ac_cv_env_LDFLAGS_set=${LDFLAGS+set}
770 ac_cv_env_LDFLAGS_value=$LDFLAGS
771 ac_env_CPPFLAGS_set=${CPPFLAGS+set}
772 ac_env_CPPFLAGS_value=$CPPFLAGS
773 ac_cv_env_CPPFLAGS_set=${CPPFLAGS+set}
774 ac_cv_env_CPPFLAGS_value=$CPPFLAGS
775 ac_env_CPP_set=${CPP+set}
776 ac_env_CPP_value=$CPP
777 ac_cv_env_CPP_set=${CPP+set}
778 ac_cv_env_CPP_value=$CPP
781 # Report the --help message.
783 if test "$ac_init_help" = "long"; then
784 # Omit some internal or obsolete options to make the list less imposing.
785 # This message is too long to be a string in the A/UX 3.1 sh.
787 \`configure' configures this package to adapt to many kinds of systems.
789 Usage: $0 [OPTION]... [VAR=VALUE]...
791 To assign environment variables (e.g., CC, CFLAGS...), specify them as
792 VAR=VALUE. See below for descriptions of some of the useful variables.
794 Defaults for the options are specified in brackets.
797 -h, --help display this help and exit
798 --help=short display options specific to this package
799 --help=recursive display the short help of all the included packages
800 -V, --version display version information and exit
801 -q, --quiet, --silent do not print \`checking...' messages
802 --cache-file=FILE cache test results in FILE [disabled]
803 -C, --config-cache alias for \`--cache-file=config.cache'
804 -n, --no-create do not create output files
805 --srcdir=DIR find the sources in DIR [configure dir or \`..']
810 Installation directories:
811 --prefix=PREFIX install architecture-independent files in PREFIX
813 --exec-prefix=EPREFIX install architecture-dependent files in EPREFIX
816 By default, \`make install' will install all the files in
817 \`$ac_default_prefix/bin', \`$ac_default_prefix/lib' etc. You can specify
818 an installation prefix other than \`$ac_default_prefix' using \`--prefix',
819 for instance \`--prefix=\$HOME'.
821 For better control, use the options below.
823 Fine tuning of the installation directories:
824 --bindir=DIR user executables [EPREFIX/bin]
825 --sbindir=DIR system admin executables [EPREFIX/sbin]
826 --libexecdir=DIR program executables [EPREFIX/libexec]
827 --datadir=DIR read-only architecture-independent data [PREFIX/share]
828 --sysconfdir=DIR read-only single-machine data [PREFIX/etc]
829 --sharedstatedir=DIR modifiable architecture-independent data [PREFIX/com]
830 --localstatedir=DIR modifiable single-machine data [PREFIX/var]
831 --libdir=DIR object code libraries [EPREFIX/lib]
832 --includedir=DIR C header files [PREFIX/include]
833 --oldincludedir=DIR C header files for non-gcc [/usr/include]
834 --infodir=DIR info documentation [PREFIX/info]
835 --mandir=DIR man documentation [PREFIX/man]
841 --program-prefix=PREFIX prepend PREFIX to installed program names
842 --program-suffix=SUFFIX append SUFFIX to installed program names
843 --program-transform-name=PROGRAM run sed PROGRAM on installed program names
846 --x-includes=DIR X include files are in DIR
847 --x-libraries=DIR X library files are in DIR
850 --build=BUILD configure for building on BUILD [guessed]
851 --host=HOST cross-compile to build programs to run on HOST [BUILD]
852 --target=TARGET configure for building compilers for TARGET [HOST]
856 if test -n "$ac_init_help"; then
861 --disable-FEATURE do not include FEATURE (same as --enable-FEATURE=no)
862 --enable-FEATURE[=ARG] include FEATURE [ARG=yes]
863 --enable-maintainer-mode enable make rules and dependencies not useful
864 (and sometimes confusing) to the casual installer
865 --disable-dependency-tracking speeds up one-time build
866 --enable-dependency-tracking do not reject slow dependency extractors
867 --enable-targets alternative target configurations
868 --enable-64-bit-bfd 64-bit support (on hosts with narrower word sizes)
869 --disable-gdbcli disable command-line interface (CLI)
870 --disable-gdbmi disable machine-interface (MI)
871 --enable-tui enable full-screen terminal user interface (TUI)
872 --enable-gdbtk enable gdbtk graphical user interface (GUI)
873 --enable-profiling enable profiling of GDB
874 --disable-rpath do not hardcode runtime library paths
875 --enable-werror treat compile warnings as errors
876 --enable-build-warnings Enable build-time compiler warnings if gcc is used
877 --enable-gdb-build-warnings Enable GDB specific build-time compiler warnings if gcc is used
878 --enable-sim Link gdb with simulator
879 --enable-multi-ice build the multi-ice-gdb-server
882 --with-PACKAGE[=ARG] use PACKAGE [ARG=yes]
883 --without-PACKAGE do not use PACKAGE (same as --with-PACKAGE=no)
884 --with-separate-debug-dir=path Look for global separate debug info in this path LIBDIR/debug
885 --with-libunwind Use libunwind frame unwinding support
886 --with-pkgversion=PKG Use PKG in the version string in place of "GDB"
887 --with-bugurl=URL Direct users to URL to report a bug
888 --with-system-readline use installed readline library
889 --with-expat include expat support (auto/yes/no)
890 --with-gnu-ld assume the C compiler uses GNU ld default=no
891 --with-libexpat-prefix[=DIR] search for libexpat in DIR/include and DIR/lib
892 --without-libexpat-prefix don't search for libexpat in includedir and libdir
893 --without-included-regex don't use included regex; this is the default
894 on systems with version 2 of the GNU C library
895 (use with caution on other system)
896 --with-sysroot=DIR Search for usr/lib et al within DIR.
897 --with-tclconfig=DIR Directory containing tcl configuration (tclConfig.sh)
898 --with-tkconfig=DIR Directory containing tk configuration (tkConfig.sh)
899 --with-tclinclude=DIR Directory where tcl private headers are
900 --with-tkinclude=DIR Directory where tk private headers are
901 --with-itclconfig Directory containing itcl configuration (itclConfig.sh)
902 --with-itkconfig Directory containing itk configuration (itkConfig.sh)
903 --with-x use the X Window System
904 --with-libiconv-prefix=DIR search for libiconv in DIR/include and DIR/lib
906 Some influential environment variables:
907 CC C compiler command
908 CFLAGS C compiler flags
909 LDFLAGS linker flags, e.g. -L<lib dir> if you have libraries in a
910 nonstandard directory <lib dir>
911 CPPFLAGS C/C++ preprocessor flags, e.g. -I<include dir> if you have
912 headers in a nonstandard directory <include dir>
915 Use these variables to override the choices made by `configure' or to help
916 it to find libraries and programs with nonstandard names/locations.
921 if test "$ac_init_help" = "recursive"; then
922 # If there are subdirs, report their specific --help.
924 for ac_dir in : $ac_subdirs_all; do test "x$ac_dir" = x: && continue
925 test -d $ac_dir || continue
928 if test "$ac_dir" != .; then
929 ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'`
930 # A "../" for each directory in $ac_dir_suffix.
931 ac_top_builddir=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,../,g'`
933 ac_dir_suffix= ac_top_builddir=
937 .) # No --srcdir option. We are building in place.
939 if test -z "$ac_top_builddir"; then
942 ac_top_srcdir=`echo $ac_top_builddir | sed 's,/$,,'`
944 [\\/]* | ?:[\\/]* ) # Absolute path.
945 ac_srcdir=$srcdir$ac_dir_suffix;
946 ac_top_srcdir=$srcdir ;;
948 ac_srcdir=$ac_top_builddir$srcdir$ac_dir_suffix
949 ac_top_srcdir=$ac_top_builddir$srcdir ;;
952 # Do not use `cd foo && pwd` to compute absolute paths, because
953 # the directories may not exist.
955 .) ac_abs_builddir="$ac_dir";;
958 .) ac_abs_builddir=`pwd`;;
959 [\\/]* | ?:[\\/]* ) ac_abs_builddir="$ac_dir";;
960 *) ac_abs_builddir=`pwd`/"$ac_dir";;
963 case $ac_abs_builddir in
964 .) ac_abs_top_builddir=${ac_top_builddir}.;;
966 case ${ac_top_builddir}. in
967 .) ac_abs_top_builddir=$ac_abs_builddir;;
968 [\\/]* | ?:[\\/]* ) ac_abs_top_builddir=${ac_top_builddir}.;;
969 *) ac_abs_top_builddir=$ac_abs_builddir/${ac_top_builddir}.;;
972 case $ac_abs_builddir in
973 .) ac_abs_srcdir=$ac_srcdir;;
976 .) ac_abs_srcdir=$ac_abs_builddir;;
977 [\\/]* | ?:[\\/]* ) ac_abs_srcdir=$ac_srcdir;;
978 *) ac_abs_srcdir=$ac_abs_builddir/$ac_srcdir;;
981 case $ac_abs_builddir in
982 .) ac_abs_top_srcdir=$ac_top_srcdir;;
984 case $ac_top_srcdir in
985 .) ac_abs_top_srcdir=$ac_abs_builddir;;
986 [\\/]* | ?:[\\/]* ) ac_abs_top_srcdir=$ac_top_srcdir;;
987 *) ac_abs_top_srcdir=$ac_abs_builddir/$ac_top_srcdir;;
992 # Check for guested configure; otherwise get Cygnus style configure.
993 if test -f $ac_srcdir/configure.gnu; then
995 $SHELL $ac_srcdir/configure.gnu --help=recursive
996 elif test -f $ac_srcdir/configure; then
998 $SHELL $ac_srcdir/configure --help=recursive
999 elif test -f $ac_srcdir/configure.ac ||
1000 test -f $ac_srcdir/configure.in; then
1002 $ac_configure --help
1004 echo "$as_me: WARNING: no configuration information is in $ac_dir" >&2
1010 test -n "$ac_init_help" && exit 0
1011 if $ac_init_version; then
1014 Copyright (C) 2003 Free Software Foundation, Inc.
1015 This configure script is free software; the Free Software Foundation
1016 gives unlimited permission to copy, distribute and modify it.
1022 This file contains any messages produced by compilers while
1023 running configure, to aid debugging if configure makes a mistake.
1025 It was created by $as_me, which was
1026 generated by GNU Autoconf 2.59. Invocation command line was
1037 hostname = `(hostname || uname -n) 2>/dev/null | sed 1q`
1038 uname -m = `(uname -m) 2>/dev/null || echo unknown`
1039 uname -r = `(uname -r) 2>/dev/null || echo unknown`
1040 uname -s = `(uname -s) 2>/dev/null || echo unknown`
1041 uname -v = `(uname -v) 2>/dev/null || echo unknown`
1043 /usr/bin/uname -p = `(/usr/bin/uname -p) 2>/dev/null || echo unknown`
1044 /bin/uname -X = `(/bin/uname -X) 2>/dev/null || echo unknown`
1046 /bin/arch = `(/bin/arch) 2>/dev/null || echo unknown`
1047 /usr/bin/arch -k = `(/usr/bin/arch -k) 2>/dev/null || echo unknown`
1048 /usr/convex/getsysinfo = `(/usr/convex/getsysinfo) 2>/dev/null || echo unknown`
1049 hostinfo = `(hostinfo) 2>/dev/null || echo unknown`
1050 /bin/machine = `(/bin/machine) 2>/dev/null || echo unknown`
1051 /usr/bin/oslevel = `(/usr/bin/oslevel) 2>/dev/null || echo unknown`
1052 /bin/universe = `(/bin/universe) 2>/dev/null || echo unknown`
1056 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1060 test -z "$as_dir" && as_dir=.
1061 echo "PATH: $as_dir"
1076 # Keep a trace of the command line.
1077 # Strip out --no-create and --no-recursion so they do not pile up.
1078 # Strip out --silent because we don't want to record it for future runs.
1079 # Also quote any args containing shell meta-characters.
1080 # Make two passes to allow for proper duplicate-argument suppression.
1085 ac_must_keep_next=false
1091 -no-create | --no-c* | -n | -no-recursion | --no-r*) continue ;;
1092 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
1093 | -silent | --silent | --silen | --sile | --sil)
1095 *" "*|*" "*|*[\[\]\~\#\$\^\&\*\(\)\{\}\\\|\;\<\>\?\"\']*)
1096 ac_arg=`echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;;
1099 1) ac_configure_args0="$ac_configure_args0 '$ac_arg'" ;;
1101 ac_configure_args1="$ac_configure_args1 '$ac_arg'"
1102 if test $ac_must_keep_next = true; then
1103 ac_must_keep_next=false # Got value, back to normal.
1106 *=* | --config-cache | -C | -disable-* | --disable-* \
1107 | -enable-* | --enable-* | -gas | --g* | -nfp | --nf* \
1108 | -q | -quiet | --q* | -silent | --sil* | -v | -verb* \
1109 | -with-* | --with-* | -without-* | --without-* | --x)
1110 case "$ac_configure_args0 " in
1111 "$ac_configure_args1"*" '$ac_arg' "* ) continue ;;
1114 -* ) ac_must_keep_next=true ;;
1117 ac_configure_args="$ac_configure_args$ac_sep'$ac_arg'"
1118 # Get rid of the leading space.
1124 $as_unset ac_configure_args0 || test "${ac_configure_args0+set}" != set || { ac_configure_args0=; export ac_configure_args0; }
1125 $as_unset ac_configure_args1 || test "${ac_configure_args1+set}" != set || { ac_configure_args1=; export ac_configure_args1; }
1127 # When interrupted or exit'd, cleanup temporary files, and complete
1128 # config.log. We remove comments because anyway the quotes in there
1129 # would cause problems or look ugly.
1130 # WARNING: Be sure not to use single quotes in there, as some shells,
1131 # such as our DU 5.0 friend, will then `close' the trap.
1132 trap 'exit_status=$?
1133 # Save into config.log some information that might help in debugging.
1138 ## ---------------- ##
1139 ## Cache variables. ##
1140 ## ---------------- ##
1143 # The following way of writing the cache mishandles newlines in values,
1146 case `(ac_space='"'"' '"'"'; set | grep ac_space) 2>&1` in
1149 "s/'"'"'/'"'"'\\\\'"'"''"'"'/g;
1150 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='"'"'\\2'"'"'/p"
1154 "s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1=\\2/p"
1161 ## ----------------- ##
1162 ## Output variables. ##
1163 ## ----------------- ##
1166 for ac_var in $ac_subst_vars
1168 eval ac_val=$`echo $ac_var`
1169 echo "$ac_var='"'"'$ac_val'"'"'"
1173 if test -n "$ac_subst_files"; then
1180 for ac_var in $ac_subst_files
1182 eval ac_val=$`echo $ac_var`
1183 echo "$ac_var='"'"'$ac_val'"'"'"
1188 if test -s confdefs.h; then
1195 sed "/^$/d" confdefs.h | sort
1198 test "$ac_signal" != 0 &&
1199 echo "$as_me: caught signal $ac_signal"
1200 echo "$as_me: exit $exit_status"
1202 rm -f core *.core &&
1203 rm -rf conftest* confdefs* conf$$* $ac_clean_files &&
1206 for ac_signal in 1 2 13 15; do
1207 trap 'ac_signal='$ac_signal'; { (exit 1); exit 1; }' $ac_signal
1211 # confdefs.h avoids OS command line length limits that DEFS can exceed.
1212 rm -rf conftest* confdefs.h
1213 # AIX cpp loses on an empty file, so make sure it contains at least a newline.
1216 # Predefined preprocessor variables.
1218 cat >>confdefs.h <<_ACEOF
1219 #define PACKAGE_NAME "$PACKAGE_NAME"
1223 cat >>confdefs.h <<_ACEOF
1224 #define PACKAGE_TARNAME "$PACKAGE_TARNAME"
1228 cat >>confdefs.h <<_ACEOF
1229 #define PACKAGE_VERSION "$PACKAGE_VERSION"
1233 cat >>confdefs.h <<_ACEOF
1234 #define PACKAGE_STRING "$PACKAGE_STRING"
1238 cat >>confdefs.h <<_ACEOF
1239 #define PACKAGE_BUGREPORT "$PACKAGE_BUGREPORT"
1243 # Let the site file select an alternate cache file if it wants to.
1244 # Prefer explicitly selected file to automatically selected ones.
1245 if test -z "$CONFIG_SITE"; then
1246 if test "x$prefix" != xNONE; then
1247 CONFIG_SITE="$prefix/share/config.site $prefix/etc/config.site"
1249 CONFIG_SITE="$ac_default_prefix/share/config.site $ac_default_prefix/etc/config.site"
1252 for ac_site_file in $CONFIG_SITE; do
1253 if test -r "$ac_site_file"; then
1254 { echo "$as_me:$LINENO: loading site script $ac_site_file" >&5
1255 echo "$as_me: loading site script $ac_site_file" >&6;}
1256 sed 's/^/| /' "$ac_site_file" >&5
1261 if test -r "$cache_file"; then
1262 # Some versions of bash will fail to source /dev/null (special
1263 # files actually), so we avoid doing that.
1264 if test -f "$cache_file"; then
1265 { echo "$as_me:$LINENO: loading cache $cache_file" >&5
1266 echo "$as_me: loading cache $cache_file" >&6;}
1268 [\\/]* | ?:[\\/]* ) . $cache_file;;
1269 *) . ./$cache_file;;
1273 { echo "$as_me:$LINENO: creating cache $cache_file" >&5
1274 echo "$as_me: creating cache $cache_file" >&6;}
1278 # Check that the precious variables saved in the cache have kept the same
1280 ac_cache_corrupted=false
1281 for ac_var in `(set) 2>&1 |
1282 sed -n 's/^ac_env_\([a-zA-Z_0-9]*\)_set=.*/\1/p'`; do
1283 eval ac_old_set=\$ac_cv_env_${ac_var}_set
1284 eval ac_new_set=\$ac_env_${ac_var}_set
1285 eval ac_old_val="\$ac_cv_env_${ac_var}_value"
1286 eval ac_new_val="\$ac_env_${ac_var}_value"
1287 case $ac_old_set,$ac_new_set in
1289 { echo "$as_me:$LINENO: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&5
1290 echo "$as_me: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&2;}
1291 ac_cache_corrupted=: ;;
1293 { echo "$as_me:$LINENO: error: \`$ac_var' was not set in the previous run" >&5
1294 echo "$as_me: error: \`$ac_var' was not set in the previous run" >&2;}
1295 ac_cache_corrupted=: ;;
1298 if test "x$ac_old_val" != "x$ac_new_val"; then
1299 # differences in whitespace do not lead to failure.
1300 ac_old_val_w=`echo x $ac_old_val`
1301 ac_new_val_w=`echo x $ac_new_val`
1302 if test "$ac_old_val_w" != "$ac_new_val_w"; then
1303 { echo "$as_me:$LINENO: error: \`$ac_var' has changed since the previous run:" >&5
1304 echo "$as_me: error: \`$ac_var' has changed since the previous run:" >&2;}
1305 ac_cache_corrupted=:
1307 { echo "$as_me:$LINENO: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&5
1308 echo "$as_me: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&2;}
1309 eval $ac_var=\$ac_old_val
1311 { echo "$as_me:$LINENO: former value: \`$ac_old_val'" >&5
1312 echo "$as_me: former value: \`$ac_old_val'" >&2;}
1313 { echo "$as_me:$LINENO: current value: \`$ac_new_val'" >&5
1314 echo "$as_me: current value: \`$ac_new_val'" >&2;}
1317 # Pass precious variables to config.status.
1318 if test "$ac_new_set" = set; then
1320 *" "*|*" "*|*[\[\]\~\#\$\^\&\*\(\)\{\}\\\|\;\<\>\?\"\']*)
1321 ac_arg=$ac_var=`echo "$ac_new_val" | sed "s/'/'\\\\\\\\''/g"` ;;
1322 *) ac_arg=$ac_var=$ac_new_val ;;
1324 case " $ac_configure_args " in
1325 *" '$ac_arg' "*) ;; # Avoid dups. Use of quotes ensures accuracy.
1326 *) ac_configure_args="$ac_configure_args '$ac_arg'" ;;
1330 if $ac_cache_corrupted; then
1331 { echo "$as_me:$LINENO: error: in \`$ac_pwd':" >&5
1332 echo "$as_me: error: in \`$ac_pwd':" >&2;}
1333 { echo "$as_me:$LINENO: error: changes in the environment can compromise the build" >&5
1334 echo "$as_me: error: changes in the environment can compromise the build" >&2;}
1335 { { echo "$as_me:$LINENO: error: run \`make distclean' and/or \`rm $cache_file' and start over" >&5
1336 echo "$as_me: error: run \`make distclean' and/or \`rm $cache_file' and start over" >&2;}
1337 { (exit 1); exit 1; }; }
1341 ac_cpp='$CPP $CPPFLAGS'
1342 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
1343 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
1344 ac_compiler_gnu=$ac_cv_c_compiler_gnu
1347 gl_header_list="$gl_header_list stdint.h"
1348 gl_header_list="$gl_header_list wchar.h"
1349 gl_header_list="$gl_header_list string.h"
1370 ac_config_headers="$ac_config_headers config.h:config.in"
1372 echo "$as_me:$LINENO: checking whether to enable maintainer-specific portions of Makefiles" >&5
1373 echo $ECHO_N "checking whether to enable maintainer-specific portions of Makefiles... $ECHO_C" >&6
1374 # Check whether --enable-maintainer-mode or --disable-maintainer-mode was given.
1375 if test "${enable_maintainer_mode+set}" = set; then
1376 enableval="$enable_maintainer_mode"
1377 USE_MAINTAINER_MODE=$enableval
1379 USE_MAINTAINER_MODE=no
1381 echo "$as_me:$LINENO: result: $USE_MAINTAINER_MODE" >&5
1382 echo "${ECHO_T}$USE_MAINTAINER_MODE" >&6
1385 if test $USE_MAINTAINER_MODE = yes; then
1386 MAINTAINER_MODE_TRUE=
1387 MAINTAINER_MODE_FALSE='#'
1389 MAINTAINER_MODE_TRUE='#'
1390 MAINTAINER_MODE_FALSE=
1393 MAINT=$MAINTAINER_MODE_TRUE
1398 ac_cpp='$CPP $CPPFLAGS'
1399 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
1400 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
1401 ac_compiler_gnu=$ac_cv_c_compiler_gnu
1402 if test -n "$ac_tool_prefix"; then
1403 # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args.
1404 set dummy ${ac_tool_prefix}gcc; ac_word=$2
1405 echo "$as_me:$LINENO: checking for $ac_word" >&5
1406 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1407 if test "${ac_cv_prog_CC+set}" = set; then
1408 echo $ECHO_N "(cached) $ECHO_C" >&6
1410 if test -n "$CC"; then
1411 ac_cv_prog_CC="$CC" # Let the user override the test.
1413 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1417 test -z "$as_dir" && as_dir=.
1418 for ac_exec_ext in '' $ac_executable_extensions; do
1419 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1420 ac_cv_prog_CC="${ac_tool_prefix}gcc"
1421 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
1430 if test -n "$CC"; then
1431 echo "$as_me:$LINENO: result: $CC" >&5
1432 echo "${ECHO_T}$CC" >&6
1434 echo "$as_me:$LINENO: result: no" >&5
1435 echo "${ECHO_T}no" >&6
1439 if test -z "$ac_cv_prog_CC"; then
1441 # Extract the first word of "gcc", so it can be a program name with args.
1442 set dummy gcc; ac_word=$2
1443 echo "$as_me:$LINENO: checking for $ac_word" >&5
1444 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1445 if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
1446 echo $ECHO_N "(cached) $ECHO_C" >&6
1448 if test -n "$ac_ct_CC"; then
1449 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
1451 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1455 test -z "$as_dir" && as_dir=.
1456 for ac_exec_ext in '' $ac_executable_extensions; do
1457 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1458 ac_cv_prog_ac_ct_CC="gcc"
1459 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
1467 ac_ct_CC=$ac_cv_prog_ac_ct_CC
1468 if test -n "$ac_ct_CC"; then
1469 echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
1470 echo "${ECHO_T}$ac_ct_CC" >&6
1472 echo "$as_me:$LINENO: result: no" >&5
1473 echo "${ECHO_T}no" >&6
1481 if test -z "$CC"; then
1482 if test -n "$ac_tool_prefix"; then
1483 # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args.
1484 set dummy ${ac_tool_prefix}cc; ac_word=$2
1485 echo "$as_me:$LINENO: checking for $ac_word" >&5
1486 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1487 if test "${ac_cv_prog_CC+set}" = set; then
1488 echo $ECHO_N "(cached) $ECHO_C" >&6
1490 if test -n "$CC"; then
1491 ac_cv_prog_CC="$CC" # Let the user override the test.
1493 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1497 test -z "$as_dir" && as_dir=.
1498 for ac_exec_ext in '' $ac_executable_extensions; do
1499 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1500 ac_cv_prog_CC="${ac_tool_prefix}cc"
1501 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
1510 if test -n "$CC"; then
1511 echo "$as_me:$LINENO: result: $CC" >&5
1512 echo "${ECHO_T}$CC" >&6
1514 echo "$as_me:$LINENO: result: no" >&5
1515 echo "${ECHO_T}no" >&6
1519 if test -z "$ac_cv_prog_CC"; then
1521 # Extract the first word of "cc", so it can be a program name with args.
1522 set dummy cc; ac_word=$2
1523 echo "$as_me:$LINENO: checking for $ac_word" >&5
1524 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1525 if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
1526 echo $ECHO_N "(cached) $ECHO_C" >&6
1528 if test -n "$ac_ct_CC"; then
1529 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
1531 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1535 test -z "$as_dir" && as_dir=.
1536 for ac_exec_ext in '' $ac_executable_extensions; do
1537 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1538 ac_cv_prog_ac_ct_CC="cc"
1539 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
1547 ac_ct_CC=$ac_cv_prog_ac_ct_CC
1548 if test -n "$ac_ct_CC"; then
1549 echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
1550 echo "${ECHO_T}$ac_ct_CC" >&6
1552 echo "$as_me:$LINENO: result: no" >&5
1553 echo "${ECHO_T}no" >&6
1562 if test -z "$CC"; then
1563 # Extract the first word of "cc", so it can be a program name with args.
1564 set dummy cc; ac_word=$2
1565 echo "$as_me:$LINENO: checking for $ac_word" >&5
1566 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1567 if test "${ac_cv_prog_CC+set}" = set; then
1568 echo $ECHO_N "(cached) $ECHO_C" >&6
1570 if test -n "$CC"; then
1571 ac_cv_prog_CC="$CC" # Let the user override the test.
1574 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1578 test -z "$as_dir" && as_dir=.
1579 for ac_exec_ext in '' $ac_executable_extensions; do
1580 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1581 if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then
1582 ac_prog_rejected=yes
1586 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
1592 if test $ac_prog_rejected = yes; then
1593 # We found a bogon in the path, so make sure we never use it.
1594 set dummy $ac_cv_prog_CC
1596 if test $# != 0; then
1597 # We chose a different compiler from the bogus one.
1598 # However, it has the same basename, so the bogon will be chosen
1599 # first if we set CC to just the basename; use the full file name.
1601 ac_cv_prog_CC="$as_dir/$ac_word${1+' '}$@"
1607 if test -n "$CC"; then
1608 echo "$as_me:$LINENO: result: $CC" >&5
1609 echo "${ECHO_T}$CC" >&6
1611 echo "$as_me:$LINENO: result: no" >&5
1612 echo "${ECHO_T}no" >&6
1616 if test -z "$CC"; then
1617 if test -n "$ac_tool_prefix"; then
1620 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
1621 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
1622 echo "$as_me:$LINENO: checking for $ac_word" >&5
1623 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1624 if test "${ac_cv_prog_CC+set}" = set; then
1625 echo $ECHO_N "(cached) $ECHO_C" >&6
1627 if test -n "$CC"; then
1628 ac_cv_prog_CC="$CC" # Let the user override the test.
1630 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1634 test -z "$as_dir" && as_dir=.
1635 for ac_exec_ext in '' $ac_executable_extensions; do
1636 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1637 ac_cv_prog_CC="$ac_tool_prefix$ac_prog"
1638 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
1647 if test -n "$CC"; then
1648 echo "$as_me:$LINENO: result: $CC" >&5
1649 echo "${ECHO_T}$CC" >&6
1651 echo "$as_me:$LINENO: result: no" >&5
1652 echo "${ECHO_T}no" >&6
1655 test -n "$CC" && break
1658 if test -z "$CC"; then
1662 # Extract the first word of "$ac_prog", so it can be a program name with args.
1663 set dummy $ac_prog; ac_word=$2
1664 echo "$as_me:$LINENO: checking for $ac_word" >&5
1665 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1666 if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
1667 echo $ECHO_N "(cached) $ECHO_C" >&6
1669 if test -n "$ac_ct_CC"; then
1670 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
1672 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1676 test -z "$as_dir" && as_dir=.
1677 for ac_exec_ext in '' $ac_executable_extensions; do
1678 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1679 ac_cv_prog_ac_ct_CC="$ac_prog"
1680 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
1688 ac_ct_CC=$ac_cv_prog_ac_ct_CC
1689 if test -n "$ac_ct_CC"; then
1690 echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
1691 echo "${ECHO_T}$ac_ct_CC" >&6
1693 echo "$as_me:$LINENO: result: no" >&5
1694 echo "${ECHO_T}no" >&6
1697 test -n "$ac_ct_CC" && break
1706 test -z "$CC" && { { echo "$as_me:$LINENO: error: in \`$ac_pwd':" >&5
1707 echo "$as_me: error: in \`$ac_pwd':" >&2;}
1708 { { echo "$as_me:$LINENO: error: no acceptable C compiler found in \$PATH
1709 See \`config.log' for more details." >&5
1710 echo "$as_me: error: no acceptable C compiler found in \$PATH
1711 See \`config.log' for more details." >&2;}
1712 { (exit 1); exit 1; }; }; }
1714 # Provide some information about the compiler.
1715 echo "$as_me:$LINENO:" \
1716 "checking for C compiler version" >&5
1717 ac_compiler=`set X $ac_compile; echo $2`
1718 { (eval echo "$as_me:$LINENO: \"$ac_compiler --version </dev/null >&5\"") >&5
1719 (eval $ac_compiler --version </dev/null >&5) 2>&5
1721 echo "$as_me:$LINENO: \$? = $ac_status" >&5
1722 (exit $ac_status); }
1723 { (eval echo "$as_me:$LINENO: \"$ac_compiler -v </dev/null >&5\"") >&5
1724 (eval $ac_compiler -v </dev/null >&5) 2>&5
1726 echo "$as_me:$LINENO: \$? = $ac_status" >&5
1727 (exit $ac_status); }
1728 { (eval echo "$as_me:$LINENO: \"$ac_compiler -V </dev/null >&5\"") >&5
1729 (eval $ac_compiler -V </dev/null >&5) 2>&5
1731 echo "$as_me:$LINENO: \$? = $ac_status" >&5
1732 (exit $ac_status); }
1734 cat >conftest.$ac_ext <<_ACEOF
1737 cat confdefs.h >>conftest.$ac_ext
1738 cat >>conftest.$ac_ext <<_ACEOF
1739 /* end confdefs.h. */
1749 ac_clean_files_save=$ac_clean_files
1750 ac_clean_files="$ac_clean_files a.out a.exe b.out"
1751 # Try to create an executable without -o first, disregard a.out.
1752 # It will help us diagnose broken compilers, and finding out an intuition
1754 echo "$as_me:$LINENO: checking for C compiler default output file name" >&5
1755 echo $ECHO_N "checking for C compiler default output file name... $ECHO_C" >&6
1756 ac_link_default=`echo "$ac_link" | sed 's/ -o *conftest[^ ]*//'`
1757 if { (eval echo "$as_me:$LINENO: \"$ac_link_default\"") >&5
1758 (eval $ac_link_default) 2>&5
1760 echo "$as_me:$LINENO: \$? = $ac_status" >&5
1761 (exit $ac_status); }; then
1762 # Find the output, starting from the most likely. This scheme is
1763 # not robust to junk in `.', hence go to wildcards (a.*) only as a last
1766 # Be careful to initialize this variable, since it used to be cached.
1767 # Otherwise an old cache value of `no' led to `EXEEXT = no' in a Makefile.
1769 # b.out is created by i960 compilers.
1770 for ac_file in a_out.exe a.exe conftest.exe a.out conftest a.* conftest.* b.out
1772 test -f "$ac_file" || continue
1774 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.o | *.obj )
1777 # This is the source file.
1780 # We found the default executable, but exeext='' is most
1784 ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
1785 # FIXME: I believe we export ac_cv_exeext for Libtool,
1786 # but it would be cool to find out if it's true. Does anybody
1787 # maintain Libtool? --akim.
1795 echo "$as_me: failed program was:" >&5
1796 sed 's/^/| /' conftest.$ac_ext >&5
1798 { { echo "$as_me:$LINENO: error: in \`$ac_pwd':" >&5
1799 echo "$as_me: error: in \`$ac_pwd':" >&2;}
1800 { { echo "$as_me:$LINENO: error: C compiler cannot create executables
1801 See \`config.log' for more details." >&5
1802 echo "$as_me: error: C compiler cannot create executables
1803 See \`config.log' for more details." >&2;}
1804 { (exit 77); exit 77; }; }; }
1807 ac_exeext=$ac_cv_exeext
1808 echo "$as_me:$LINENO: result: $ac_file" >&5
1809 echo "${ECHO_T}$ac_file" >&6
1811 # Check the compiler produces executables we can run. If not, either
1812 # the compiler is broken, or we cross compile.
1813 echo "$as_me:$LINENO: checking whether the C compiler works" >&5
1814 echo $ECHO_N "checking whether the C compiler works... $ECHO_C" >&6
1815 # FIXME: These cross compiler hacks should be removed for Autoconf 3.0
1816 # If not cross compiling, check that we can run a simple program.
1817 if test "$cross_compiling" != yes; then
1818 if { ac_try='./$ac_file'
1819 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
1822 echo "$as_me:$LINENO: \$? = $ac_status" >&5
1823 (exit $ac_status); }; }; then
1826 if test "$cross_compiling" = maybe; then
1829 { { echo "$as_me:$LINENO: error: in \`$ac_pwd':" >&5
1830 echo "$as_me: error: in \`$ac_pwd':" >&2;}
1831 { { echo "$as_me:$LINENO: error: cannot run C compiled programs.
1832 If you meant to cross compile, use \`--host'.
1833 See \`config.log' for more details." >&5
1834 echo "$as_me: error: cannot run C compiled programs.
1835 If you meant to cross compile, use \`--host'.
1836 See \`config.log' for more details." >&2;}
1837 { (exit 1); exit 1; }; }; }
1841 echo "$as_me:$LINENO: result: yes" >&5
1842 echo "${ECHO_T}yes" >&6
1844 rm -f a.out a.exe conftest$ac_cv_exeext b.out
1845 ac_clean_files=$ac_clean_files_save
1846 # Check the compiler produces executables we can run. If not, either
1847 # the compiler is broken, or we cross compile.
1848 echo "$as_me:$LINENO: checking whether we are cross compiling" >&5
1849 echo $ECHO_N "checking whether we are cross compiling... $ECHO_C" >&6
1850 echo "$as_me:$LINENO: result: $cross_compiling" >&5
1851 echo "${ECHO_T}$cross_compiling" >&6
1853 echo "$as_me:$LINENO: checking for suffix of executables" >&5
1854 echo $ECHO_N "checking for suffix of executables... $ECHO_C" >&6
1855 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
1856 (eval $ac_link) 2>&5
1858 echo "$as_me:$LINENO: \$? = $ac_status" >&5
1859 (exit $ac_status); }; then
1860 # If both `conftest.exe' and `conftest' are `present' (well, observable)
1861 # catch `conftest.exe'. For instance with Cygwin, `ls conftest' will
1862 # work properly (i.e., refer to `conftest.exe'), while it won't with
1864 for ac_file in conftest.exe conftest conftest.*; do
1865 test -f "$ac_file" || continue
1867 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.o | *.obj ) ;;
1868 *.* ) ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
1875 { { echo "$as_me:$LINENO: error: in \`$ac_pwd':" >&5
1876 echo "$as_me: error: in \`$ac_pwd':" >&2;}
1877 { { echo "$as_me:$LINENO: error: cannot compute suffix of executables: cannot compile and link
1878 See \`config.log' for more details." >&5
1879 echo "$as_me: error: cannot compute suffix of executables: cannot compile and link
1880 See \`config.log' for more details." >&2;}
1881 { (exit 1); exit 1; }; }; }
1884 rm -f conftest$ac_cv_exeext
1885 echo "$as_me:$LINENO: result: $ac_cv_exeext" >&5
1886 echo "${ECHO_T}$ac_cv_exeext" >&6
1888 rm -f conftest.$ac_ext
1889 EXEEXT=$ac_cv_exeext
1891 echo "$as_me:$LINENO: checking for suffix of object files" >&5
1892 echo $ECHO_N "checking for suffix of object files... $ECHO_C" >&6
1893 if test "${ac_cv_objext+set}" = set; then
1894 echo $ECHO_N "(cached) $ECHO_C" >&6
1896 cat >conftest.$ac_ext <<_ACEOF
1899 cat confdefs.h >>conftest.$ac_ext
1900 cat >>conftest.$ac_ext <<_ACEOF
1901 /* end confdefs.h. */
1911 rm -f conftest.o conftest.obj
1912 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
1913 (eval $ac_compile) 2>&5
1915 echo "$as_me:$LINENO: \$? = $ac_status" >&5
1916 (exit $ac_status); }; then
1917 for ac_file in `(ls conftest.o conftest.obj; ls conftest.*) 2>/dev/null`; do
1919 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg ) ;;
1920 *) ac_cv_objext=`expr "$ac_file" : '.*\.\(.*\)'`
1925 echo "$as_me: failed program was:" >&5
1926 sed 's/^/| /' conftest.$ac_ext >&5
1928 { { echo "$as_me:$LINENO: error: in \`$ac_pwd':" >&5
1929 echo "$as_me: error: in \`$ac_pwd':" >&2;}
1930 { { echo "$as_me:$LINENO: error: cannot compute suffix of object files: cannot compile
1931 See \`config.log' for more details." >&5
1932 echo "$as_me: error: cannot compute suffix of object files: cannot compile
1933 See \`config.log' for more details." >&2;}
1934 { (exit 1); exit 1; }; }; }
1937 rm -f conftest.$ac_cv_objext conftest.$ac_ext
1939 echo "$as_me:$LINENO: result: $ac_cv_objext" >&5
1940 echo "${ECHO_T}$ac_cv_objext" >&6
1941 OBJEXT=$ac_cv_objext
1943 echo "$as_me:$LINENO: checking whether we are using the GNU C compiler" >&5
1944 echo $ECHO_N "checking whether we are using the GNU C compiler... $ECHO_C" >&6
1945 if test "${ac_cv_c_compiler_gnu+set}" = set; then
1946 echo $ECHO_N "(cached) $ECHO_C" >&6
1948 cat >conftest.$ac_ext <<_ACEOF
1951 cat confdefs.h >>conftest.$ac_ext
1952 cat >>conftest.$ac_ext <<_ACEOF
1953 /* end confdefs.h. */
1966 rm -f conftest.$ac_objext
1967 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
1968 (eval $ac_compile) 2>conftest.er1
1970 grep -v '^ *+' conftest.er1 >conftest.err
1972 cat conftest.err >&5
1973 echo "$as_me:$LINENO: \$? = $ac_status" >&5
1974 (exit $ac_status); } &&
1975 { ac_try='test -z "$ac_c_werror_flag"
1976 || test ! -s conftest.err'
1977 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
1980 echo "$as_me:$LINENO: \$? = $ac_status" >&5
1981 (exit $ac_status); }; } &&
1982 { ac_try='test -s conftest.$ac_objext'
1983 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
1986 echo "$as_me:$LINENO: \$? = $ac_status" >&5
1987 (exit $ac_status); }; }; then
1990 echo "$as_me: failed program was:" >&5
1991 sed 's/^/| /' conftest.$ac_ext >&5
1995 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
1996 ac_cv_c_compiler_gnu=$ac_compiler_gnu
1999 echo "$as_me:$LINENO: result: $ac_cv_c_compiler_gnu" >&5
2000 echo "${ECHO_T}$ac_cv_c_compiler_gnu" >&6
2001 GCC=`test $ac_compiler_gnu = yes && echo yes`
2002 ac_test_CFLAGS=${CFLAGS+set}
2003 ac_save_CFLAGS=$CFLAGS
2005 echo "$as_me:$LINENO: checking whether $CC accepts -g" >&5
2006 echo $ECHO_N "checking whether $CC accepts -g... $ECHO_C" >&6
2007 if test "${ac_cv_prog_cc_g+set}" = set; then
2008 echo $ECHO_N "(cached) $ECHO_C" >&6
2010 cat >conftest.$ac_ext <<_ACEOF
2013 cat confdefs.h >>conftest.$ac_ext
2014 cat >>conftest.$ac_ext <<_ACEOF
2015 /* end confdefs.h. */
2025 rm -f conftest.$ac_objext
2026 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2027 (eval $ac_compile) 2>conftest.er1
2029 grep -v '^ *+' conftest.er1 >conftest.err
2031 cat conftest.err >&5
2032 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2033 (exit $ac_status); } &&
2034 { ac_try='test -z "$ac_c_werror_flag"
2035 || test ! -s conftest.err'
2036 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2039 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2040 (exit $ac_status); }; } &&
2041 { ac_try='test -s conftest.$ac_objext'
2042 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2045 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2046 (exit $ac_status); }; }; then
2049 echo "$as_me: failed program was:" >&5
2050 sed 's/^/| /' conftest.$ac_ext >&5
2054 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
2056 echo "$as_me:$LINENO: result: $ac_cv_prog_cc_g" >&5
2057 echo "${ECHO_T}$ac_cv_prog_cc_g" >&6
2058 if test "$ac_test_CFLAGS" = set; then
2059 CFLAGS=$ac_save_CFLAGS
2060 elif test $ac_cv_prog_cc_g = yes; then
2061 if test "$GCC" = yes; then
2067 if test "$GCC" = yes; then
2073 echo "$as_me:$LINENO: checking for $CC option to accept ANSI C" >&5
2074 echo $ECHO_N "checking for $CC option to accept ANSI C... $ECHO_C" >&6
2075 if test "${ac_cv_prog_cc_stdc+set}" = set; then
2076 echo $ECHO_N "(cached) $ECHO_C" >&6
2078 ac_cv_prog_cc_stdc=no
2080 cat >conftest.$ac_ext <<_ACEOF
2083 cat confdefs.h >>conftest.$ac_ext
2084 cat >>conftest.$ac_ext <<_ACEOF
2085 /* end confdefs.h. */
2088 #include <sys/types.h>
2089 #include <sys/stat.h>
2090 /* Most of the following tests are stolen from RCS 5.7's src/conf.sh. */
2091 struct buf { int x; };
2092 FILE * (*rcsopen) (struct buf *, struct stat *, int);
2093 static char *e (p, i)
2099 static char *f (char * (*g) (char **, int), char **p, ...)
2104 s = g (p, va_arg (v,int));
2109 /* OSF 4.0 Compaq cc is some sort of almost-ANSI by default. It has
2110 function prototypes and stuff, but not '\xHH' hex character constants.
2111 These don't provoke an error unfortunately, instead are silently treated
2112 as 'x'. The following induces an error, until -std1 is added to get
2113 proper ANSI mode. Curiously '\x00'!='x' always comes out true, for an
2114 array size at least. It's necessary to write '\x00'==0 to get something
2115 that's true only with -std1. */
2116 int osf4_cc_array ['\x00' == 0 ? 1 : -1];
2118 int test (int i, double x);
2119 struct s1 {int (*f) (int a);};
2120 struct s2 {int (*f) (double a);};
2121 int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
2127 return f (e, argv, 0) != argv[0] || f (e, argv, 1) != argv[1];
2132 # Don't try gcc -ansi; that turns off useful extensions and
2133 # breaks some systems' header files.
2134 # AIX -qlanglvl=ansi
2135 # Ultrix and OSF/1 -std1
2136 # HP-UX 10.20 and later -Ae
2137 # HP-UX older versions -Aa -D_HPUX_SOURCE
2138 # SVR4 -Xc -D__EXTENSIONS__
2139 for ac_arg in "" -qlanglvl=ansi -std1 -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
2141 CC="$ac_save_CC $ac_arg"
2142 rm -f conftest.$ac_objext
2143 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2144 (eval $ac_compile) 2>conftest.er1
2146 grep -v '^ *+' conftest.er1 >conftest.err
2148 cat conftest.err >&5
2149 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2150 (exit $ac_status); } &&
2151 { ac_try='test -z "$ac_c_werror_flag"
2152 || test ! -s conftest.err'
2153 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2156 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2157 (exit $ac_status); }; } &&
2158 { ac_try='test -s conftest.$ac_objext'
2159 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2162 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2163 (exit $ac_status); }; }; then
2164 ac_cv_prog_cc_stdc=$ac_arg
2167 echo "$as_me: failed program was:" >&5
2168 sed 's/^/| /' conftest.$ac_ext >&5
2171 rm -f conftest.err conftest.$ac_objext
2173 rm -f conftest.$ac_ext conftest.$ac_objext
2178 case "x$ac_cv_prog_cc_stdc" in
2180 echo "$as_me:$LINENO: result: none needed" >&5
2181 echo "${ECHO_T}none needed" >&6 ;;
2183 echo "$as_me:$LINENO: result: $ac_cv_prog_cc_stdc" >&5
2184 echo "${ECHO_T}$ac_cv_prog_cc_stdc" >&6
2185 CC="$CC $ac_cv_prog_cc_stdc" ;;
2188 # Some people use a C++ compiler to compile C. Since we use `exit',
2189 # in C++ we need to declare it. In case someone uses the same compiler
2190 # for both compiling C and C++ we need to have the C++ compiler decide
2191 # the declaration of exit, since it's the most demanding environment.
2192 cat >conftest.$ac_ext <<_ACEOF
2197 rm -f conftest.$ac_objext
2198 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2199 (eval $ac_compile) 2>conftest.er1
2201 grep -v '^ *+' conftest.er1 >conftest.err
2203 cat conftest.err >&5
2204 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2205 (exit $ac_status); } &&
2206 { ac_try='test -z "$ac_c_werror_flag"
2207 || test ! -s conftest.err'
2208 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2211 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2212 (exit $ac_status); }; } &&
2213 { ac_try='test -s conftest.$ac_objext'
2214 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2217 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2218 (exit $ac_status); }; }; then
2219 for ac_declaration in \
2221 'extern "C" void std::exit (int) throw (); using std::exit;' \
2222 'extern "C" void std::exit (int); using std::exit;' \
2223 'extern "C" void exit (int) throw ();' \
2224 'extern "C" void exit (int);' \
2227 cat >conftest.$ac_ext <<_ACEOF
2230 cat confdefs.h >>conftest.$ac_ext
2231 cat >>conftest.$ac_ext <<_ACEOF
2232 /* end confdefs.h. */
2243 rm -f conftest.$ac_objext
2244 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2245 (eval $ac_compile) 2>conftest.er1
2247 grep -v '^ *+' conftest.er1 >conftest.err
2249 cat conftest.err >&5
2250 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2251 (exit $ac_status); } &&
2252 { ac_try='test -z "$ac_c_werror_flag"
2253 || test ! -s conftest.err'
2254 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2257 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2258 (exit $ac_status); }; } &&
2259 { ac_try='test -s conftest.$ac_objext'
2260 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2263 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2264 (exit $ac_status); }; }; then
2267 echo "$as_me: failed program was:" >&5
2268 sed 's/^/| /' conftest.$ac_ext >&5
2272 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
2273 cat >conftest.$ac_ext <<_ACEOF
2276 cat confdefs.h >>conftest.$ac_ext
2277 cat >>conftest.$ac_ext <<_ACEOF
2278 /* end confdefs.h. */
2288 rm -f conftest.$ac_objext
2289 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2290 (eval $ac_compile) 2>conftest.er1
2292 grep -v '^ *+' conftest.er1 >conftest.err
2294 cat conftest.err >&5
2295 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2296 (exit $ac_status); } &&
2297 { ac_try='test -z "$ac_c_werror_flag"
2298 || test ! -s conftest.err'
2299 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2302 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2303 (exit $ac_status); }; } &&
2304 { ac_try='test -s conftest.$ac_objext'
2305 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2308 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2309 (exit $ac_status); }; }; then
2312 echo "$as_me: failed program was:" >&5
2313 sed 's/^/| /' conftest.$ac_ext >&5
2316 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
2319 if test -n "$ac_declaration"; then
2320 echo '#ifdef __cplusplus' >>confdefs.h
2321 echo $ac_declaration >>confdefs.h
2322 echo '#endif' >>confdefs.h
2326 echo "$as_me: failed program was:" >&5
2327 sed 's/^/| /' conftest.$ac_ext >&5
2330 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
2332 ac_cpp='$CPP $CPPFLAGS'
2333 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2334 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2335 ac_compiler_gnu=$ac_cv_c_compiler_gnu
2338 cat >>confdefs.h <<\_ACEOF
2339 #define _GNU_SOURCE 1
2345 ac_cpp='$CPP $CPPFLAGS'
2346 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2347 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2348 ac_compiler_gnu=$ac_cv_c_compiler_gnu
2349 echo "$as_me:$LINENO: checking how to run the C preprocessor" >&5
2350 echo $ECHO_N "checking how to run the C preprocessor... $ECHO_C" >&6
2351 # On Suns, sometimes $CPP names a directory.
2352 if test -n "$CPP" && test -d "$CPP"; then
2355 if test -z "$CPP"; then
2356 if test "${ac_cv_prog_CPP+set}" = set; then
2357 echo $ECHO_N "(cached) $ECHO_C" >&6
2359 # Double quotes because CPP needs to be expanded
2360 for CPP in "$CC -E" "$CC -E -traditional-cpp" "/lib/cpp"
2363 for ac_c_preproc_warn_flag in '' yes
2365 # Use a header file that comes with gcc, so configuring glibc
2366 # with a fresh cross-compiler works.
2367 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
2368 # <limits.h> exists even on freestanding compilers.
2369 # On the NeXT, cc -E runs the code through the compiler's parser,
2370 # not just through cpp. "Syntax error" is here to catch this case.
2371 cat >conftest.$ac_ext <<_ACEOF
2374 cat confdefs.h >>conftest.$ac_ext
2375 cat >>conftest.$ac_ext <<_ACEOF
2376 /* end confdefs.h. */
2378 # include <limits.h>
2380 # include <assert.h>
2384 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
2385 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
2387 grep -v '^ *+' conftest.er1 >conftest.err
2389 cat conftest.err >&5
2390 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2391 (exit $ac_status); } >/dev/null; then
2392 if test -s conftest.err; then
2393 ac_cpp_err=$ac_c_preproc_warn_flag
2394 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
2401 if test -z "$ac_cpp_err"; then
2404 echo "$as_me: failed program was:" >&5
2405 sed 's/^/| /' conftest.$ac_ext >&5
2407 # Broken: fails on valid input.
2410 rm -f conftest.err conftest.$ac_ext
2412 # OK, works on sane cases. Now check whether non-existent headers
2413 # can be detected and how.
2414 cat >conftest.$ac_ext <<_ACEOF
2417 cat confdefs.h >>conftest.$ac_ext
2418 cat >>conftest.$ac_ext <<_ACEOF
2419 /* end confdefs.h. */
2420 #include <ac_nonexistent.h>
2422 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
2423 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
2425 grep -v '^ *+' conftest.er1 >conftest.err
2427 cat conftest.err >&5
2428 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2429 (exit $ac_status); } >/dev/null; then
2430 if test -s conftest.err; then
2431 ac_cpp_err=$ac_c_preproc_warn_flag
2432 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
2439 if test -z "$ac_cpp_err"; then
2440 # Broken: success on invalid input.
2443 echo "$as_me: failed program was:" >&5
2444 sed 's/^/| /' conftest.$ac_ext >&5
2446 # Passes both tests.
2450 rm -f conftest.err conftest.$ac_ext
2453 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
2454 rm -f conftest.err conftest.$ac_ext
2455 if $ac_preproc_ok; then
2467 echo "$as_me:$LINENO: result: $CPP" >&5
2468 echo "${ECHO_T}$CPP" >&6
2470 for ac_c_preproc_warn_flag in '' yes
2472 # Use a header file that comes with gcc, so configuring glibc
2473 # with a fresh cross-compiler works.
2474 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
2475 # <limits.h> exists even on freestanding compilers.
2476 # On the NeXT, cc -E runs the code through the compiler's parser,
2477 # not just through cpp. "Syntax error" is here to catch this case.
2478 cat >conftest.$ac_ext <<_ACEOF
2481 cat confdefs.h >>conftest.$ac_ext
2482 cat >>conftest.$ac_ext <<_ACEOF
2483 /* end confdefs.h. */
2485 # include <limits.h>
2487 # include <assert.h>
2491 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
2492 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
2494 grep -v '^ *+' conftest.er1 >conftest.err
2496 cat conftest.err >&5
2497 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2498 (exit $ac_status); } >/dev/null; then
2499 if test -s conftest.err; then
2500 ac_cpp_err=$ac_c_preproc_warn_flag
2501 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
2508 if test -z "$ac_cpp_err"; then
2511 echo "$as_me: failed program was:" >&5
2512 sed 's/^/| /' conftest.$ac_ext >&5
2514 # Broken: fails on valid input.
2517 rm -f conftest.err conftest.$ac_ext
2519 # OK, works on sane cases. Now check whether non-existent headers
2520 # can be detected and how.
2521 cat >conftest.$ac_ext <<_ACEOF
2524 cat confdefs.h >>conftest.$ac_ext
2525 cat >>conftest.$ac_ext <<_ACEOF
2526 /* end confdefs.h. */
2527 #include <ac_nonexistent.h>
2529 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
2530 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
2532 grep -v '^ *+' conftest.er1 >conftest.err
2534 cat conftest.err >&5
2535 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2536 (exit $ac_status); } >/dev/null; then
2537 if test -s conftest.err; then
2538 ac_cpp_err=$ac_c_preproc_warn_flag
2539 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
2546 if test -z "$ac_cpp_err"; then
2547 # Broken: success on invalid input.
2550 echo "$as_me: failed program was:" >&5
2551 sed 's/^/| /' conftest.$ac_ext >&5
2553 # Passes both tests.
2557 rm -f conftest.err conftest.$ac_ext
2560 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
2561 rm -f conftest.err conftest.$ac_ext
2562 if $ac_preproc_ok; then
2565 { { echo "$as_me:$LINENO: error: in \`$ac_pwd':" >&5
2566 echo "$as_me: error: in \`$ac_pwd':" >&2;}
2567 { { echo "$as_me:$LINENO: error: C preprocessor \"$CPP\" fails sanity check
2568 See \`config.log' for more details." >&5
2569 echo "$as_me: error: C preprocessor \"$CPP\" fails sanity check
2570 See \`config.log' for more details." >&2;}
2571 { (exit 1); exit 1; }; }; }
2575 ac_cpp='$CPP $CPPFLAGS'
2576 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2577 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2578 ac_compiler_gnu=$ac_cv_c_compiler_gnu
2581 echo "$as_me:$LINENO: checking for egrep" >&5
2582 echo $ECHO_N "checking for egrep... $ECHO_C" >&6
2583 if test "${ac_cv_prog_egrep+set}" = set; then
2584 echo $ECHO_N "(cached) $ECHO_C" >&6
2586 if echo a | (grep -E '(a|b)') >/dev/null 2>&1
2587 then ac_cv_prog_egrep='grep -E'
2588 else ac_cv_prog_egrep='egrep'
2591 echo "$as_me:$LINENO: result: $ac_cv_prog_egrep" >&5
2592 echo "${ECHO_T}$ac_cv_prog_egrep" >&6
2593 EGREP=$ac_cv_prog_egrep
2597 echo "$as_me:$LINENO: checking for AIX" >&5
2598 echo $ECHO_N "checking for AIX... $ECHO_C" >&6
2599 cat >conftest.$ac_ext <<_ACEOF
2602 cat confdefs.h >>conftest.$ac_ext
2603 cat >>conftest.$ac_ext <<_ACEOF
2604 /* end confdefs.h. */
2610 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
2611 $EGREP "yes" >/dev/null 2>&1; then
2612 echo "$as_me:$LINENO: result: yes" >&5
2613 echo "${ECHO_T}yes" >&6
2614 cat >>confdefs.h <<\_ACEOF
2615 #define _ALL_SOURCE 1
2619 echo "$as_me:$LINENO: result: no" >&5
2620 echo "${ECHO_T}no" >&6
2625 echo "$as_me:$LINENO: checking for library containing strerror" >&5
2626 echo $ECHO_N "checking for library containing strerror... $ECHO_C" >&6
2627 if test "${ac_cv_search_strerror+set}" = set; then
2628 echo $ECHO_N "(cached) $ECHO_C" >&6
2630 ac_func_search_save_LIBS=$LIBS
2631 ac_cv_search_strerror=no
2632 cat >conftest.$ac_ext <<_ACEOF
2635 cat confdefs.h >>conftest.$ac_ext
2636 cat >>conftest.$ac_ext <<_ACEOF
2637 /* end confdefs.h. */
2639 /* Override any gcc2 internal prototype to avoid an error. */
2643 /* We use char because int might match the return type of a gcc2
2644 builtin and then its argument prototype would still apply. */
2654 rm -f conftest.$ac_objext conftest$ac_exeext
2655 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
2656 (eval $ac_link) 2>conftest.er1
2658 grep -v '^ *+' conftest.er1 >conftest.err
2660 cat conftest.err >&5
2661 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2662 (exit $ac_status); } &&
2663 { ac_try='test -z "$ac_c_werror_flag"
2664 || test ! -s conftest.err'
2665 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2668 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2669 (exit $ac_status); }; } &&
2670 { ac_try='test -s conftest$ac_exeext'
2671 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2674 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2675 (exit $ac_status); }; }; then
2676 ac_cv_search_strerror="none required"
2678 echo "$as_me: failed program was:" >&5
2679 sed 's/^/| /' conftest.$ac_ext >&5
2682 rm -f conftest.err conftest.$ac_objext \
2683 conftest$ac_exeext conftest.$ac_ext
2684 if test "$ac_cv_search_strerror" = no; then
2685 for ac_lib in cposix; do
2686 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
2687 cat >conftest.$ac_ext <<_ACEOF
2690 cat confdefs.h >>conftest.$ac_ext
2691 cat >>conftest.$ac_ext <<_ACEOF
2692 /* end confdefs.h. */
2694 /* Override any gcc2 internal prototype to avoid an error. */
2698 /* We use char because int might match the return type of a gcc2
2699 builtin and then its argument prototype would still apply. */
2709 rm -f conftest.$ac_objext conftest$ac_exeext
2710 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
2711 (eval $ac_link) 2>conftest.er1
2713 grep -v '^ *+' conftest.er1 >conftest.err
2715 cat conftest.err >&5
2716 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2717 (exit $ac_status); } &&
2718 { ac_try='test -z "$ac_c_werror_flag"
2719 || test ! -s conftest.err'
2720 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2723 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2724 (exit $ac_status); }; } &&
2725 { ac_try='test -s conftest$ac_exeext'
2726 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2729 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2730 (exit $ac_status); }; }; then
2731 ac_cv_search_strerror="-l$ac_lib"
2734 echo "$as_me: failed program was:" >&5
2735 sed 's/^/| /' conftest.$ac_ext >&5
2738 rm -f conftest.err conftest.$ac_objext \
2739 conftest$ac_exeext conftest.$ac_ext
2742 LIBS=$ac_func_search_save_LIBS
2744 echo "$as_me:$LINENO: result: $ac_cv_search_strerror" >&5
2745 echo "${ECHO_T}$ac_cv_search_strerror" >&6
2746 if test "$ac_cv_search_strerror" != no; then
2747 test "$ac_cv_search_strerror" = "none required" || LIBS="$ac_cv_search_strerror $LIBS"
2751 if test -n "$ac_tool_prefix"; then
2752 # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args.
2753 set dummy ${ac_tool_prefix}ranlib; ac_word=$2
2754 echo "$as_me:$LINENO: checking for $ac_word" >&5
2755 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
2756 if test "${ac_cv_prog_RANLIB+set}" = set; then
2757 echo $ECHO_N "(cached) $ECHO_C" >&6
2759 if test -n "$RANLIB"; then
2760 ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
2762 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2766 test -z "$as_dir" && as_dir=.
2767 for ac_exec_ext in '' $ac_executable_extensions; do
2768 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2769 ac_cv_prog_RANLIB="${ac_tool_prefix}ranlib"
2770 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2778 RANLIB=$ac_cv_prog_RANLIB
2779 if test -n "$RANLIB"; then
2780 echo "$as_me:$LINENO: result: $RANLIB" >&5
2781 echo "${ECHO_T}$RANLIB" >&6
2783 echo "$as_me:$LINENO: result: no" >&5
2784 echo "${ECHO_T}no" >&6
2788 if test -z "$ac_cv_prog_RANLIB"; then
2789 ac_ct_RANLIB=$RANLIB
2790 # Extract the first word of "ranlib", so it can be a program name with args.
2791 set dummy ranlib; ac_word=$2
2792 echo "$as_me:$LINENO: checking for $ac_word" >&5
2793 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
2794 if test "${ac_cv_prog_ac_ct_RANLIB+set}" = set; then
2795 echo $ECHO_N "(cached) $ECHO_C" >&6
2797 if test -n "$ac_ct_RANLIB"; then
2798 ac_cv_prog_ac_ct_RANLIB="$ac_ct_RANLIB" # Let the user override the test.
2800 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2804 test -z "$as_dir" && as_dir=.
2805 for ac_exec_ext in '' $ac_executable_extensions; do
2806 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2807 ac_cv_prog_ac_ct_RANLIB="ranlib"
2808 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2814 test -z "$ac_cv_prog_ac_ct_RANLIB" && ac_cv_prog_ac_ct_RANLIB=":"
2817 ac_ct_RANLIB=$ac_cv_prog_ac_ct_RANLIB
2818 if test -n "$ac_ct_RANLIB"; then
2819 echo "$as_me:$LINENO: result: $ac_ct_RANLIB" >&5
2820 echo "${ECHO_T}$ac_ct_RANLIB" >&6
2822 echo "$as_me:$LINENO: result: no" >&5
2823 echo "${ECHO_T}no" >&6
2826 RANLIB=$ac_ct_RANLIB
2828 RANLIB="$ac_cv_prog_RANLIB"
2831 echo "$as_me:$LINENO: checking for ANSI C header files" >&5
2832 echo $ECHO_N "checking for ANSI C header files... $ECHO_C" >&6
2833 if test "${ac_cv_header_stdc+set}" = set; then
2834 echo $ECHO_N "(cached) $ECHO_C" >&6
2836 cat >conftest.$ac_ext <<_ACEOF
2839 cat confdefs.h >>conftest.$ac_ext
2840 cat >>conftest.$ac_ext <<_ACEOF
2841 /* end confdefs.h. */
2855 rm -f conftest.$ac_objext
2856 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2857 (eval $ac_compile) 2>conftest.er1
2859 grep -v '^ *+' conftest.er1 >conftest.err
2861 cat conftest.err >&5
2862 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2863 (exit $ac_status); } &&
2864 { ac_try='test -z "$ac_c_werror_flag"
2865 || test ! -s conftest.err'
2866 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2869 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2870 (exit $ac_status); }; } &&
2871 { ac_try='test -s conftest.$ac_objext'
2872 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2875 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2876 (exit $ac_status); }; }; then
2877 ac_cv_header_stdc=yes
2879 echo "$as_me: failed program was:" >&5
2880 sed 's/^/| /' conftest.$ac_ext >&5
2882 ac_cv_header_stdc=no
2884 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
2886 if test $ac_cv_header_stdc = yes; then
2887 # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
2888 cat >conftest.$ac_ext <<_ACEOF
2891 cat confdefs.h >>conftest.$ac_ext
2892 cat >>conftest.$ac_ext <<_ACEOF
2893 /* end confdefs.h. */
2897 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
2898 $EGREP "memchr" >/dev/null 2>&1; then
2901 ac_cv_header_stdc=no
2907 if test $ac_cv_header_stdc = yes; then
2908 # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
2909 cat >conftest.$ac_ext <<_ACEOF
2912 cat confdefs.h >>conftest.$ac_ext
2913 cat >>conftest.$ac_ext <<_ACEOF
2914 /* end confdefs.h. */
2918 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
2919 $EGREP "free" >/dev/null 2>&1; then
2922 ac_cv_header_stdc=no
2928 if test $ac_cv_header_stdc = yes; then
2929 # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
2930 if test "$cross_compiling" = yes; then
2933 cat >conftest.$ac_ext <<_ACEOF
2936 cat confdefs.h >>conftest.$ac_ext
2937 cat >>conftest.$ac_ext <<_ACEOF
2938 /* end confdefs.h. */
2940 #if ((' ' & 0x0FF) == 0x020)
2941 # define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
2942 # define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
2944 # define ISLOWER(c) \
2945 (('a' <= (c) && (c) <= 'i') \
2946 || ('j' <= (c) && (c) <= 'r') \
2947 || ('s' <= (c) && (c) <= 'z'))
2948 # define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
2951 #define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
2956 for (i = 0; i < 256; i++)
2957 if (XOR (islower (i), ISLOWER (i))
2958 || toupper (i) != TOUPPER (i))
2963 rm -f conftest$ac_exeext
2964 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
2965 (eval $ac_link) 2>&5
2967 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2968 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
2969 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2972 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2973 (exit $ac_status); }; }; then
2976 echo "$as_me: program exited with status $ac_status" >&5
2977 echo "$as_me: failed program was:" >&5
2978 sed 's/^/| /' conftest.$ac_ext >&5
2981 ac_cv_header_stdc=no
2983 rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
2987 echo "$as_me:$LINENO: result: $ac_cv_header_stdc" >&5
2988 echo "${ECHO_T}$ac_cv_header_stdc" >&6
2989 if test $ac_cv_header_stdc = yes; then
2991 cat >>confdefs.h <<\_ACEOF
2992 #define STDC_HEADERS 1
2997 # On IRIX 5.3, sys/types and inttypes.h are conflicting.
3007 for ac_header in sys/types.h sys/stat.h stdlib.h string.h memory.h strings.h \
3008 inttypes.h stdint.h unistd.h
3010 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
3011 echo "$as_me:$LINENO: checking for $ac_header" >&5
3012 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
3013 if eval "test \"\${$as_ac_Header+set}\" = set"; then
3014 echo $ECHO_N "(cached) $ECHO_C" >&6
3016 cat >conftest.$ac_ext <<_ACEOF
3019 cat confdefs.h >>conftest.$ac_ext
3020 cat >>conftest.$ac_ext <<_ACEOF
3021 /* end confdefs.h. */
3022 $ac_includes_default
3024 #include <$ac_header>
3026 rm -f conftest.$ac_objext
3027 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
3028 (eval $ac_compile) 2>conftest.er1
3030 grep -v '^ *+' conftest.er1 >conftest.err
3032 cat conftest.err >&5
3033 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3034 (exit $ac_status); } &&
3035 { ac_try='test -z "$ac_c_werror_flag"
3036 || test ! -s conftest.err'
3037 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3040 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3041 (exit $ac_status); }; } &&
3042 { ac_try='test -s conftest.$ac_objext'
3043 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3046 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3047 (exit $ac_status); }; }; then
3048 eval "$as_ac_Header=yes"
3050 echo "$as_me: failed program was:" >&5
3051 sed 's/^/| /' conftest.$ac_ext >&5
3053 eval "$as_ac_Header=no"
3055 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
3057 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
3058 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
3059 if test `eval echo '${'$as_ac_Header'}'` = yes; then
3060 cat >>confdefs.h <<_ACEOF
3061 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
3070 if test "${ac_cv_header_minix_config_h+set}" = set; then
3071 echo "$as_me:$LINENO: checking for minix/config.h" >&5
3072 echo $ECHO_N "checking for minix/config.h... $ECHO_C" >&6
3073 if test "${ac_cv_header_minix_config_h+set}" = set; then
3074 echo $ECHO_N "(cached) $ECHO_C" >&6
3076 echo "$as_me:$LINENO: result: $ac_cv_header_minix_config_h" >&5
3077 echo "${ECHO_T}$ac_cv_header_minix_config_h" >&6
3079 # Is the header compilable?
3080 echo "$as_me:$LINENO: checking minix/config.h usability" >&5
3081 echo $ECHO_N "checking minix/config.h usability... $ECHO_C" >&6
3082 cat >conftest.$ac_ext <<_ACEOF
3085 cat confdefs.h >>conftest.$ac_ext
3086 cat >>conftest.$ac_ext <<_ACEOF
3087 /* end confdefs.h. */
3088 $ac_includes_default
3089 #include <minix/config.h>
3091 rm -f conftest.$ac_objext
3092 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
3093 (eval $ac_compile) 2>conftest.er1
3095 grep -v '^ *+' conftest.er1 >conftest.err
3097 cat conftest.err >&5
3098 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3099 (exit $ac_status); } &&
3100 { ac_try='test -z "$ac_c_werror_flag"
3101 || test ! -s conftest.err'
3102 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3105 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3106 (exit $ac_status); }; } &&
3107 { ac_try='test -s conftest.$ac_objext'
3108 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3111 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3112 (exit $ac_status); }; }; then
3113 ac_header_compiler=yes
3115 echo "$as_me: failed program was:" >&5
3116 sed 's/^/| /' conftest.$ac_ext >&5
3118 ac_header_compiler=no
3120 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
3121 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
3122 echo "${ECHO_T}$ac_header_compiler" >&6
3124 # Is the header present?
3125 echo "$as_me:$LINENO: checking minix/config.h presence" >&5
3126 echo $ECHO_N "checking minix/config.h presence... $ECHO_C" >&6
3127 cat >conftest.$ac_ext <<_ACEOF
3130 cat confdefs.h >>conftest.$ac_ext
3131 cat >>conftest.$ac_ext <<_ACEOF
3132 /* end confdefs.h. */
3133 #include <minix/config.h>
3135 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
3136 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
3138 grep -v '^ *+' conftest.er1 >conftest.err
3140 cat conftest.err >&5
3141 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3142 (exit $ac_status); } >/dev/null; then
3143 if test -s conftest.err; then
3144 ac_cpp_err=$ac_c_preproc_warn_flag
3145 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
3152 if test -z "$ac_cpp_err"; then
3153 ac_header_preproc=yes
3155 echo "$as_me: failed program was:" >&5
3156 sed 's/^/| /' conftest.$ac_ext >&5
3158 ac_header_preproc=no
3160 rm -f conftest.err conftest.$ac_ext
3161 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
3162 echo "${ECHO_T}$ac_header_preproc" >&6
3164 # So? What about this header?
3165 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
3167 { echo "$as_me:$LINENO: WARNING: minix/config.h: accepted by the compiler, rejected by the preprocessor!" >&5
3168 echo "$as_me: WARNING: minix/config.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
3169 { echo "$as_me:$LINENO: WARNING: minix/config.h: proceeding with the compiler's result" >&5
3170 echo "$as_me: WARNING: minix/config.h: proceeding with the compiler's result" >&2;}
3171 ac_header_preproc=yes
3174 { echo "$as_me:$LINENO: WARNING: minix/config.h: present but cannot be compiled" >&5
3175 echo "$as_me: WARNING: minix/config.h: present but cannot be compiled" >&2;}
3176 { echo "$as_me:$LINENO: WARNING: minix/config.h: check for missing prerequisite headers?" >&5
3177 echo "$as_me: WARNING: minix/config.h: check for missing prerequisite headers?" >&2;}
3178 { echo "$as_me:$LINENO: WARNING: minix/config.h: see the Autoconf documentation" >&5
3179 echo "$as_me: WARNING: minix/config.h: see the Autoconf documentation" >&2;}
3180 { echo "$as_me:$LINENO: WARNING: minix/config.h: section \"Present But Cannot Be Compiled\"" >&5
3181 echo "$as_me: WARNING: minix/config.h: section \"Present But Cannot Be Compiled\"" >&2;}
3182 { echo "$as_me:$LINENO: WARNING: minix/config.h: proceeding with the preprocessor's result" >&5
3183 echo "$as_me: WARNING: minix/config.h: proceeding with the preprocessor's result" >&2;}
3184 { echo "$as_me:$LINENO: WARNING: minix/config.h: in the future, the compiler will take precedence" >&5
3185 echo "$as_me: WARNING: minix/config.h: in the future, the compiler will take precedence" >&2;}
3188 ## ------------------------------------------ ##
3189 ## Report this to the AC_PACKAGE_NAME lists. ##
3190 ## ------------------------------------------ ##
3193 sed "s/^/$as_me: WARNING: /" >&2
3196 echo "$as_me:$LINENO: checking for minix/config.h" >&5
3197 echo $ECHO_N "checking for minix/config.h... $ECHO_C" >&6
3198 if test "${ac_cv_header_minix_config_h+set}" = set; then
3199 echo $ECHO_N "(cached) $ECHO_C" >&6
3201 ac_cv_header_minix_config_h=$ac_header_preproc
3203 echo "$as_me:$LINENO: result: $ac_cv_header_minix_config_h" >&5
3204 echo "${ECHO_T}$ac_cv_header_minix_config_h" >&6
3207 if test $ac_cv_header_minix_config_h = yes; then
3214 if test "$MINIX" = yes; then
3216 cat >>confdefs.h <<\_ACEOF
3217 #define _POSIX_SOURCE 1
3221 cat >>confdefs.h <<\_ACEOF
3222 #define _POSIX_1_SOURCE 2
3226 cat >>confdefs.h <<\_ACEOF
3234 echo "$as_me:$LINENO: checking whether it is safe to define __EXTENSIONS__" >&5
3235 echo $ECHO_N "checking whether it is safe to define __EXTENSIONS__... $ECHO_C" >&6
3236 if test "${ac_cv_safe_to_define___extensions__+set}" = set; then
3237 echo $ECHO_N "(cached) $ECHO_C" >&6
3239 cat >conftest.$ac_ext <<_ACEOF
3242 cat confdefs.h >>conftest.$ac_ext
3243 cat >>conftest.$ac_ext <<_ACEOF
3244 /* end confdefs.h. */
3246 # define __EXTENSIONS__ 1
3247 $ac_includes_default
3256 rm -f conftest.$ac_objext
3257 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
3258 (eval $ac_compile) 2>conftest.er1
3260 grep -v '^ *+' conftest.er1 >conftest.err
3262 cat conftest.err >&5
3263 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3264 (exit $ac_status); } &&
3265 { ac_try='test -z "$ac_c_werror_flag"
3266 || test ! -s conftest.err'
3267 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3270 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3271 (exit $ac_status); }; } &&
3272 { ac_try='test -s conftest.$ac_objext'
3273 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3276 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3277 (exit $ac_status); }; }; then
3278 ac_cv_safe_to_define___extensions__=yes
3280 echo "$as_me: failed program was:" >&5
3281 sed 's/^/| /' conftest.$ac_ext >&5
3283 ac_cv_safe_to_define___extensions__=no
3285 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
3287 echo "$as_me:$LINENO: result: $ac_cv_safe_to_define___extensions__" >&5
3288 echo "${ECHO_T}$ac_cv_safe_to_define___extensions__" >&6
3289 test $ac_cv_safe_to_define___extensions__ = yes &&
3290 cat >>confdefs.h <<\_ACEOF
3291 #define __EXTENSIONS__ 1
3294 cat >>confdefs.h <<\_ACEOF
3295 #define _ALL_SOURCE 1
3298 cat >>confdefs.h <<\_ACEOF
3299 #define _GNU_SOURCE 1
3302 cat >>confdefs.h <<\_ACEOF
3303 #define _POSIX_PTHREAD_SEMANTICS 1
3306 cat >>confdefs.h <<\_ACEOF
3307 #define _TANDEM_SOURCE 1
3319 echo "$as_me:$LINENO: checking for ${CC-cc} option to accept ANSI C" >&5
3320 echo $ECHO_N "checking for ${CC-cc} option to accept ANSI C... $ECHO_C" >&6
3321 if test "${am_cv_prog_cc_stdc+set}" = set; then
3322 echo $ECHO_N "(cached) $ECHO_C" >&6
3324 am_cv_prog_cc_stdc=no
3326 # Don't try gcc -ansi; that turns off useful extensions and
3327 # breaks some systems' header files.
3328 # AIX -qlanglvl=ansi
3329 # Ultrix and OSF/1 -std1
3330 # HP-UX 10.20 and later -Ae
3331 # HP-UX older versions -Aa -D_HPUX_SOURCE
3332 # SVR4 -Xc -D__EXTENSIONS__
3333 for ac_arg in "" -qlanglvl=ansi -std1 -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
3335 CC="$ac_save_CC $ac_arg"
3336 cat >conftest.$ac_ext <<_ACEOF
3339 cat confdefs.h >>conftest.$ac_ext
3340 cat >>conftest.$ac_ext <<_ACEOF
3341 /* end confdefs.h. */
3344 #include <sys/types.h>
3345 #include <sys/stat.h>
3346 /* Most of the following tests are stolen from RCS 5.7's src/conf.sh. */
3347 struct buf { int x; };
3348 FILE * (*rcsopen) (struct buf *, struct stat *, int);
3349 static char *e (p, i)
3355 static char *f (char * (*g) (char **, int), char **p, ...)
3360 s = g (p, va_arg (v,int));
3364 int test (int i, double x);
3365 struct s1 {int (*f) (int a);};
3366 struct s2 {int (*f) (double a);};
3367 int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
3375 return f (e, argv, 0) != argv[0] || f (e, argv, 1) != argv[1];
3381 rm -f conftest.$ac_objext
3382 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
3383 (eval $ac_compile) 2>conftest.er1
3385 grep -v '^ *+' conftest.er1 >conftest.err
3387 cat conftest.err >&5
3388 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3389 (exit $ac_status); } &&
3390 { ac_try='test -z "$ac_c_werror_flag"
3391 || test ! -s conftest.err'
3392 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3395 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3396 (exit $ac_status); }; } &&
3397 { ac_try='test -s conftest.$ac_objext'
3398 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3401 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3402 (exit $ac_status); }; }; then
3403 am_cv_prog_cc_stdc="$ac_arg"; break
3405 echo "$as_me: failed program was:" >&5
3406 sed 's/^/| /' conftest.$ac_ext >&5
3409 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
3415 if test -z "$am_cv_prog_cc_stdc"; then
3416 echo "$as_me:$LINENO: result: none needed" >&5
3417 echo "${ECHO_T}none needed" >&6
3419 echo "$as_me:$LINENO: result: $am_cv_prog_cc_stdc" >&5
3420 echo "${ECHO_T}$am_cv_prog_cc_stdc" >&6
3422 case "x$am_cv_prog_cc_stdc" in
3424 *) CC="$CC $am_cv_prog_cc_stdc" ;;
3429 for ac_dir in .. $srcdir/..; do
3430 if test -f $ac_dir/install-sh; then
3432 ac_install_sh="$ac_aux_dir/install-sh -c"
3434 elif test -f $ac_dir/install.sh; then
3436 ac_install_sh="$ac_aux_dir/install.sh -c"
3438 elif test -f $ac_dir/shtool; then
3440 ac_install_sh="$ac_aux_dir/shtool install -c"
3444 if test -z "$ac_aux_dir"; then
3445 { { echo "$as_me:$LINENO: error: cannot find install-sh or install.sh in .. $srcdir/.." >&5
3446 echo "$as_me: error: cannot find install-sh or install.sh in .. $srcdir/.." >&2;}
3447 { (exit 1); exit 1; }; }
3449 ac_config_guess="$SHELL $ac_aux_dir/config.guess"
3450 ac_config_sub="$SHELL $ac_aux_dir/config.sub"
3451 ac_configure="$SHELL $ac_aux_dir/configure" # This should be Cygnus configure.
3453 # Make sure we can run config.sub.
3454 $ac_config_sub sun4 >/dev/null 2>&1 ||
3455 { { echo "$as_me:$LINENO: error: cannot run $ac_config_sub" >&5
3456 echo "$as_me: error: cannot run $ac_config_sub" >&2;}
3457 { (exit 1); exit 1; }; }
3459 echo "$as_me:$LINENO: checking build system type" >&5
3460 echo $ECHO_N "checking build system type... $ECHO_C" >&6
3461 if test "${ac_cv_build+set}" = set; then
3462 echo $ECHO_N "(cached) $ECHO_C" >&6
3464 ac_cv_build_alias=$build_alias
3465 test -z "$ac_cv_build_alias" &&
3466 ac_cv_build_alias=`$ac_config_guess`
3467 test -z "$ac_cv_build_alias" &&
3468 { { echo "$as_me:$LINENO: error: cannot guess build type; you must specify one" >&5
3469 echo "$as_me: error: cannot guess build type; you must specify one" >&2;}
3470 { (exit 1); exit 1; }; }
3471 ac_cv_build=`$ac_config_sub $ac_cv_build_alias` ||
3472 { { echo "$as_me:$LINENO: error: $ac_config_sub $ac_cv_build_alias failed" >&5
3473 echo "$as_me: error: $ac_config_sub $ac_cv_build_alias failed" >&2;}
3474 { (exit 1); exit 1; }; }
3477 echo "$as_me:$LINENO: result: $ac_cv_build" >&5
3478 echo "${ECHO_T}$ac_cv_build" >&6
3480 build_cpu=`echo $ac_cv_build | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\1/'`
3481 build_vendor=`echo $ac_cv_build | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\2/'`
3482 build_os=`echo $ac_cv_build | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\3/'`
3485 echo "$as_me:$LINENO: checking host system type" >&5
3486 echo $ECHO_N "checking host system type... $ECHO_C" >&6
3487 if test "${ac_cv_host+set}" = set; then
3488 echo $ECHO_N "(cached) $ECHO_C" >&6
3490 ac_cv_host_alias=$host_alias
3491 test -z "$ac_cv_host_alias" &&
3492 ac_cv_host_alias=$ac_cv_build_alias
3493 ac_cv_host=`$ac_config_sub $ac_cv_host_alias` ||
3494 { { echo "$as_me:$LINENO: error: $ac_config_sub $ac_cv_host_alias failed" >&5
3495 echo "$as_me: error: $ac_config_sub $ac_cv_host_alias failed" >&2;}
3496 { (exit 1); exit 1; }; }
3499 echo "$as_me:$LINENO: result: $ac_cv_host" >&5
3500 echo "${ECHO_T}$ac_cv_host" >&6
3502 host_cpu=`echo $ac_cv_host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\1/'`
3503 host_vendor=`echo $ac_cv_host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\2/'`
3504 host_os=`echo $ac_cv_host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\3/'`
3507 echo "$as_me:$LINENO: checking target system type" >&5
3508 echo $ECHO_N "checking target system type... $ECHO_C" >&6
3509 if test "${ac_cv_target+set}" = set; then
3510 echo $ECHO_N "(cached) $ECHO_C" >&6
3512 ac_cv_target_alias=$target_alias
3513 test "x$ac_cv_target_alias" = "x" &&
3514 ac_cv_target_alias=$ac_cv_host_alias
3515 ac_cv_target=`$ac_config_sub $ac_cv_target_alias` ||
3516 { { echo "$as_me:$LINENO: error: $ac_config_sub $ac_cv_target_alias failed" >&5
3517 echo "$as_me: error: $ac_config_sub $ac_cv_target_alias failed" >&2;}
3518 { (exit 1); exit 1; }; }
3521 echo "$as_me:$LINENO: result: $ac_cv_target" >&5
3522 echo "${ECHO_T}$ac_cv_target" >&6
3523 target=$ac_cv_target
3524 target_cpu=`echo $ac_cv_target | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\1/'`
3525 target_vendor=`echo $ac_cv_target | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\2/'`
3526 target_os=`echo $ac_cv_target | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\3/'`
3529 # The aliases save the names the user supplied, while $host etc.
3530 # will get canonicalized.
3531 test -n "$target_alias" &&
3532 test "$program_prefix$program_suffix$program_transform_name" = \
3534 program_prefix=${target_alias}-
3547 # If we haven't got the data from the intl directory,
3548 # assume NLS is disabled.
3557 if test -f ../intl/config.intl; then
3558 . ../intl/config.intl
3560 echo "$as_me:$LINENO: checking whether NLS is requested" >&5
3561 echo $ECHO_N "checking whether NLS is requested... $ECHO_C" >&6
3562 if test x"$USE_NLS" != xyes; then
3563 echo "$as_me:$LINENO: result: no" >&5
3564 echo "${ECHO_T}no" >&6
3566 echo "$as_me:$LINENO: result: yes" >&5
3567 echo "${ECHO_T}yes" >&6
3569 cat >>confdefs.h <<\_ACEOF
3570 #define ENABLE_NLS 1
3574 echo "$as_me:$LINENO: checking for catalogs to be installed" >&5
3575 echo $ECHO_N "checking for catalogs to be installed... $ECHO_C" >&6
3576 # Look for .po and .gmo files in the source directory.
3579 for cat in $srcdir/po/*.gmo $srcdir/po/*.po; do
3580 # If there aren't any .gmo files the shell will give us the
3581 # literal string "../path/to/srcdir/po/*.gmo" which has to be
3583 case "$cat" in *\**)
3586 # The quadruple backslash is collapsed to a double backslash
3587 # by the backticks, then collapsed again by the double quotes,
3588 # leaving us with one backslash in the sed expression (right
3589 # before the dot that mustn't act as a wildcard).
3590 cat=`echo $cat | sed -e "s!$srcdir/po/!!" -e "s!\\\\.po!.gmo!"`
3591 lang=`echo $cat | sed -e "s!\\\\.gmo!!"`
3592 # The user is allowed to set LINGUAS to a list of languages to
3593 # install catalogs for. If it's empty that means "all of them."
3594 if test "x$LINGUAS" = x; then
3595 CATALOGS="$CATALOGS $cat"
3596 XLINGUAS="$XLINGUAS $lang"
3598 case "$LINGUAS" in *$lang*)
3599 CATALOGS="$CATALOGS $cat"
3600 XLINGUAS="$XLINGUAS $lang"
3606 echo "$as_me:$LINENO: result: $LINGUAS" >&5
3607 echo "${ECHO_T}$LINGUAS" >&6
3620 localedir='${datadir}/locale'
3623 if test x"$USE_NLS" = xyes; then
3624 CONFIG_ALL="$CONFIG_ALL all-po"
3625 CONFIG_CLEAN="$CONFIG_CLEAN clean-po"
3626 CONFIG_INSTALL="$CONFIG_INSTALL install-po"
3627 CONFIG_UNINSTALL="$CONFIG_UNINSTALL uninstall-po"
3643 GNULIB_STRCASESTR=0;
3650 GNULIB_MBSCASECMP=0;
3651 GNULIB_MBSNCASECMP=0;
3652 GNULIB_MBSPCASECMP=0;
3653 GNULIB_MBSCASESTR=0;
3663 HAVE_DECL_MEMRCHR=1;
3669 HAVE_DECL_STRNDUP=1;
3670 HAVE_DECL_STRNLEN=1;
3674 HAVE_DECL_STRTOK_R=1;
3675 HAVE_DECL_STRERROR=1;
3676 HAVE_DECL_STRSIGNAL=1;
3678 REPLACE_STRSIGNAL=0;
3680 REPLACE_STRCASESTR=0;
3684 echo "$as_me:$LINENO: checking whether memmem is declared" >&5
3685 echo $ECHO_N "checking whether memmem is declared... $ECHO_C" >&6
3686 if test "${ac_cv_have_decl_memmem+set}" = set; then
3687 echo $ECHO_N "(cached) $ECHO_C" >&6
3689 cat >conftest.$ac_ext <<_ACEOF
3692 cat confdefs.h >>conftest.$ac_ext
3693 cat >>conftest.$ac_ext <<_ACEOF
3694 /* end confdefs.h. */
3695 $ac_includes_default
3700 char *p = (char *) memmem;
3707 rm -f conftest.$ac_objext
3708 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
3709 (eval $ac_compile) 2>conftest.er1
3711 grep -v '^ *+' conftest.er1 >conftest.err
3713 cat conftest.err >&5
3714 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3715 (exit $ac_status); } &&
3716 { ac_try='test -z "$ac_c_werror_flag"
3717 || test ! -s conftest.err'
3718 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3721 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3722 (exit $ac_status); }; } &&
3723 { ac_try='test -s conftest.$ac_objext'
3724 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3727 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3728 (exit $ac_status); }; }; then
3729 ac_cv_have_decl_memmem=yes
3731 echo "$as_me: failed program was:" >&5
3732 sed 's/^/| /' conftest.$ac_ext >&5
3734 ac_cv_have_decl_memmem=no
3736 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
3738 echo "$as_me:$LINENO: result: $ac_cv_have_decl_memmem" >&5
3739 echo "${ECHO_T}$ac_cv_have_decl_memmem" >&6
3740 if test $ac_cv_have_decl_memmem = yes; then
3742 cat >>confdefs.h <<_ACEOF
3743 #define HAVE_DECL_MEMMEM 1
3748 cat >>confdefs.h <<_ACEOF
3749 #define HAVE_DECL_MEMMEM 0
3769 for ac_func in memmem
3771 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
3772 echo "$as_me:$LINENO: checking for $ac_func" >&5
3773 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
3774 if eval "test \"\${$as_ac_var+set}\" = set"; then
3775 echo $ECHO_N "(cached) $ECHO_C" >&6
3777 cat >conftest.$ac_ext <<_ACEOF
3780 cat confdefs.h >>conftest.$ac_ext
3781 cat >>conftest.$ac_ext <<_ACEOF
3782 /* end confdefs.h. */
3783 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
3784 For example, HP-UX 11i <limits.h> declares gettimeofday. */
3785 #define $ac_func innocuous_$ac_func
3787 /* System header to define __stub macros and hopefully few prototypes,
3788 which can conflict with char $ac_func (); below.
3789 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
3790 <limits.h> exists even on freestanding compilers. */
3793 # include <limits.h>
3795 # include <assert.h>
3800 /* Override any gcc2 internal prototype to avoid an error. */
3805 /* We use char because int might match the return type of a gcc2
3806 builtin and then its argument prototype would still apply. */
3808 /* The GNU C library defines this for functions which it implements
3809 to always fail with ENOSYS. Some functions are actually named
3810 something starting with __ and the normal name is an alias. */
3811 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
3814 char (*f) () = $ac_func;
3823 return f != $ac_func;
3828 rm -f conftest.$ac_objext conftest$ac_exeext
3829 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
3830 (eval $ac_link) 2>conftest.er1
3832 grep -v '^ *+' conftest.er1 >conftest.err
3834 cat conftest.err >&5
3835 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3836 (exit $ac_status); } &&
3837 { ac_try='test -z "$ac_c_werror_flag"
3838 || test ! -s conftest.err'
3839 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3842 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3843 (exit $ac_status); }; } &&
3844 { ac_try='test -s conftest$ac_exeext'
3845 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3848 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3849 (exit $ac_status); }; }; then
3850 eval "$as_ac_var=yes"
3852 echo "$as_me: failed program was:" >&5
3853 sed 's/^/| /' conftest.$ac_ext >&5
3855 eval "$as_ac_var=no"
3857 rm -f conftest.err conftest.$ac_objext \
3858 conftest$ac_exeext conftest.$ac_ext
3860 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
3861 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
3862 if test `eval echo '${'$as_ac_var'}'` = yes; then
3863 cat >>confdefs.h <<_ACEOF
3864 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
3869 gl_LIBOBJS="$gl_LIBOBJS $ac_func.$ac_objext"
3882 if test $ac_cv_have_decl_memmem = no; then
3888 echo "$as_me:$LINENO: checking for long long int" >&5
3889 echo $ECHO_N "checking for long long int... $ECHO_C" >&6
3890 if test "${ac_cv_type_long_long_int+set}" = set; then
3891 echo $ECHO_N "(cached) $ECHO_C" >&6
3893 cat >conftest.$ac_ext <<_ACEOF
3897 cat confdefs.h >>conftest.$ac_ext
3898 cat >>conftest.$ac_ext <<_ACEOF
3899 /* end confdefs.h. */
3900 /* For now, do not test the preprocessor; as of 2007 there are too many
3901 implementations with broken preprocessors. Perhaps this can
3902 be revisited in 2012. In the meantime, code should not expect
3903 #if to work with literals wider than 32 bits. */
3904 /* Test literals. */
3905 long long int ll = 9223372036854775807ll;
3906 long long int nll = -9223372036854775807LL;
3907 unsigned long long int ull = 18446744073709551615ULL;
3908 /* Test constant expressions. */
3909 typedef int a[((-9223372036854775807LL < 0 && 0 < 9223372036854775807ll)
3911 typedef int b[(18446744073709551615ULL <= (unsigned long long int) -1
3917 /* Test availability of runtime routines for shift and division. */
3918 long long int llmax = 9223372036854775807ll;
3919 unsigned long long int ullmax = 18446744073709551615ull;
3920 return ((ll << 63) | (ll >> 63) | (ll < i) | (ll > i)
3921 | (llmax / ll) | (llmax % ll)
3922 | (ull << 63) | (ull >> 63) | (ull << i) | (ull >> i)
3923 | (ullmax / ull) | (ullmax % ull));
3929 rm -f conftest.$ac_objext conftest$ac_exeext
3930 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
3931 (eval $ac_link) 2>conftest.er1
3933 grep -v '^ *+' conftest.er1 >conftest.err
3935 cat conftest.err >&5
3936 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3937 (exit $ac_status); } &&
3938 { ac_try='test -z "$ac_c_werror_flag"
3939 || test ! -s conftest.err'
3940 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3943 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3944 (exit $ac_status); }; } &&
3945 { ac_try='test -s conftest$ac_exeext'
3946 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3949 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3950 (exit $ac_status); }; }; then
3951 if test "$cross_compiling" = yes; then
3952 ac_cv_type_long_long_int=yes
3954 cat >conftest.$ac_ext <<_ACEOF
3957 cat confdefs.h >>conftest.$ac_ext
3958 cat >>conftest.$ac_ext <<_ACEOF
3959 /* end confdefs.h. */
3963 (1LL << (sizeof (long long int) * CHAR_BIT - 2))
3964 # define LLONG_MAX (HALF - 1 + HALF)
3969 long long int n = 1;
3973 long long int m = n << i;
3976 if (LLONG_MAX / 2 < m)
3984 rm -f conftest$ac_exeext
3985 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
3986 (eval $ac_link) 2>&5
3988 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3989 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
3990 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3993 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3994 (exit $ac_status); }; }; then
3995 ac_cv_type_long_long_int=yes
3997 echo "$as_me: program exited with status $ac_status" >&5
3998 echo "$as_me: failed program was:" >&5
3999 sed 's/^/| /' conftest.$ac_ext >&5
4002 ac_cv_type_long_long_int=no
4004 rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
4007 echo "$as_me: failed program was:" >&5
4008 sed 's/^/| /' conftest.$ac_ext >&5
4010 ac_cv_type_long_long_int=no
4012 rm -f conftest.err conftest.$ac_objext \
4013 conftest$ac_exeext conftest.$ac_ext
4015 echo "$as_me:$LINENO: result: $ac_cv_type_long_long_int" >&5
4016 echo "${ECHO_T}$ac_cv_type_long_long_int" >&6
4017 if test $ac_cv_type_long_long_int = yes; then
4019 cat >>confdefs.h <<\_ACEOF
4020 #define HAVE_LONG_LONG_INT 1
4026 echo "$as_me:$LINENO: checking for unsigned long long int" >&5
4027 echo $ECHO_N "checking for unsigned long long int... $ECHO_C" >&6
4028 if test "${ac_cv_type_unsigned_long_long_int+set}" = set; then
4029 echo $ECHO_N "(cached) $ECHO_C" >&6
4031 cat >conftest.$ac_ext <<_ACEOF
4035 cat confdefs.h >>conftest.$ac_ext
4036 cat >>conftest.$ac_ext <<_ACEOF
4037 /* end confdefs.h. */
4038 /* For now, do not test the preprocessor; as of 2007 there are too many
4039 implementations with broken preprocessors. Perhaps this can
4040 be revisited in 2012. In the meantime, code should not expect
4041 #if to work with literals wider than 32 bits. */
4042 /* Test literals. */
4043 long long int ll = 9223372036854775807ll;
4044 long long int nll = -9223372036854775807LL;
4045 unsigned long long int ull = 18446744073709551615ULL;
4046 /* Test constant expressions. */
4047 typedef int a[((-9223372036854775807LL < 0 && 0 < 9223372036854775807ll)
4049 typedef int b[(18446744073709551615ULL <= (unsigned long long int) -1
4055 /* Test availability of runtime routines for shift and division. */
4056 long long int llmax = 9223372036854775807ll;
4057 unsigned long long int ullmax = 18446744073709551615ull;
4058 return ((ll << 63) | (ll >> 63) | (ll < i) | (ll > i)
4059 | (llmax / ll) | (llmax % ll)
4060 | (ull << 63) | (ull >> 63) | (ull << i) | (ull >> i)
4061 | (ullmax / ull) | (ullmax % ull));
4067 rm -f conftest.$ac_objext conftest$ac_exeext
4068 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
4069 (eval $ac_link) 2>conftest.er1
4071 grep -v '^ *+' conftest.er1 >conftest.err
4073 cat conftest.err >&5
4074 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4075 (exit $ac_status); } &&
4076 { ac_try='test -z "$ac_c_werror_flag"
4077 || test ! -s conftest.err'
4078 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4081 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4082 (exit $ac_status); }; } &&
4083 { ac_try='test -s conftest$ac_exeext'
4084 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4087 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4088 (exit $ac_status); }; }; then
4089 ac_cv_type_unsigned_long_long_int=yes
4091 echo "$as_me: failed program was:" >&5
4092 sed 's/^/| /' conftest.$ac_ext >&5
4094 ac_cv_type_unsigned_long_long_int=no
4096 rm -f conftest.err conftest.$ac_objext \
4097 conftest$ac_exeext conftest.$ac_ext
4099 echo "$as_me:$LINENO: result: $ac_cv_type_unsigned_long_long_int" >&5
4100 echo "${ECHO_T}$ac_cv_type_unsigned_long_long_int" >&6
4101 if test $ac_cv_type_unsigned_long_long_int = yes; then
4103 cat >>confdefs.h <<\_ACEOF
4104 #define HAVE_UNSIGNED_LONG_LONG_INT 1
4111 echo "$as_me:$LINENO: checking whether the preprocessor supports include_next" >&5
4112 echo $ECHO_N "checking whether the preprocessor supports include_next... $ECHO_C" >&6
4113 if test "${gl_cv_have_include_next+set}" = set; then
4114 echo $ECHO_N "(cached) $ECHO_C" >&6
4116 rm -rf conftestd1 conftestd2
4117 mkdir conftestd1 conftestd2
4118 cat <<EOF > conftestd1/conftest.h
4119 #define DEFINED_IN_CONFTESTD1
4120 #include_next <conftest.h>
4121 #ifdef DEFINED_IN_CONFTESTD2
4124 #error "include_next doesn't work"
4127 cat <<EOF > conftestd2/conftest.h
4128 #ifndef DEFINED_IN_CONFTESTD1
4129 #error "include_next test doesn't work"
4131 #define DEFINED_IN_CONFTESTD2
4133 save_CPPFLAGS="$CPPFLAGS"
4134 CPPFLAGS="$CPPFLAGS -Iconftestd1 -Iconftestd2"
4135 cat >conftest.$ac_ext <<_ACEOF
4136 #include <conftest.h>
4138 rm -f conftest.$ac_objext
4139 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
4140 (eval $ac_compile) 2>conftest.er1
4142 grep -v '^ *+' conftest.er1 >conftest.err
4144 cat conftest.err >&5
4145 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4146 (exit $ac_status); } &&
4147 { ac_try='test -z "$ac_c_werror_flag"
4148 || test ! -s conftest.err'
4149 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4152 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4153 (exit $ac_status); }; } &&
4154 { ac_try='test -s conftest.$ac_objext'
4155 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4158 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4159 (exit $ac_status); }; }; then
4160 gl_cv_have_include_next=yes
4162 echo "$as_me: failed program was:" >&5
4163 sed 's/^/| /' conftest.$ac_ext >&5
4165 gl_cv_have_include_next=no
4167 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
4168 CPPFLAGS="$save_CPPFLAGS"
4169 rm -rf conftestd1 conftestd2
4172 echo "$as_me:$LINENO: result: $gl_cv_have_include_next" >&5
4173 echo "${ECHO_T}$gl_cv_have_include_next" >&6
4174 if test $gl_cv_have_include_next = yes; then
4177 cat >>confdefs.h <<\_ACEOF
4178 #define HAVE_INCLUDE_NEXT 1
4182 INCLUDE_NEXT=include_next
4184 INCLUDE_NEXT=include
4193 for ac_header in $gl_header_list
4195 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
4196 if eval "test \"\${$as_ac_Header+set}\" = set"; then
4197 echo "$as_me:$LINENO: checking for $ac_header" >&5
4198 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
4199 if eval "test \"\${$as_ac_Header+set}\" = set"; then
4200 echo $ECHO_N "(cached) $ECHO_C" >&6
4202 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
4203 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
4205 # Is the header compilable?
4206 echo "$as_me:$LINENO: checking $ac_header usability" >&5
4207 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
4208 cat >conftest.$ac_ext <<_ACEOF
4211 cat confdefs.h >>conftest.$ac_ext
4212 cat >>conftest.$ac_ext <<_ACEOF
4213 /* end confdefs.h. */
4214 $ac_includes_default
4215 #include <$ac_header>
4217 rm -f conftest.$ac_objext
4218 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
4219 (eval $ac_compile) 2>conftest.er1
4221 grep -v '^ *+' conftest.er1 >conftest.err
4223 cat conftest.err >&5
4224 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4225 (exit $ac_status); } &&
4226 { ac_try='test -z "$ac_c_werror_flag"
4227 || test ! -s conftest.err'
4228 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4231 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4232 (exit $ac_status); }; } &&
4233 { ac_try='test -s conftest.$ac_objext'
4234 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4237 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4238 (exit $ac_status); }; }; then
4239 ac_header_compiler=yes
4241 echo "$as_me: failed program was:" >&5
4242 sed 's/^/| /' conftest.$ac_ext >&5
4244 ac_header_compiler=no
4246 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
4247 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
4248 echo "${ECHO_T}$ac_header_compiler" >&6
4250 # Is the header present?
4251 echo "$as_me:$LINENO: checking $ac_header presence" >&5
4252 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
4253 cat >conftest.$ac_ext <<_ACEOF
4256 cat confdefs.h >>conftest.$ac_ext
4257 cat >>conftest.$ac_ext <<_ACEOF
4258 /* end confdefs.h. */
4259 #include <$ac_header>
4261 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
4262 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
4264 grep -v '^ *+' conftest.er1 >conftest.err
4266 cat conftest.err >&5
4267 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4268 (exit $ac_status); } >/dev/null; then
4269 if test -s conftest.err; then
4270 ac_cpp_err=$ac_c_preproc_warn_flag
4271 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
4278 if test -z "$ac_cpp_err"; then
4279 ac_header_preproc=yes
4281 echo "$as_me: failed program was:" >&5
4282 sed 's/^/| /' conftest.$ac_ext >&5
4284 ac_header_preproc=no
4286 rm -f conftest.err conftest.$ac_ext
4287 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
4288 echo "${ECHO_T}$ac_header_preproc" >&6
4290 # So? What about this header?
4291 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
4293 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
4294 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
4295 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
4296 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
4297 ac_header_preproc=yes
4300 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
4301 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
4302 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
4303 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
4304 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
4305 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
4306 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
4307 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
4308 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
4309 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
4310 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
4311 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
4314 ## ------------------------------------------ ##
4315 ## Report this to the AC_PACKAGE_NAME lists. ##
4316 ## ------------------------------------------ ##
4319 sed "s/^/$as_me: WARNING: /" >&2
4322 echo "$as_me:$LINENO: checking for $ac_header" >&5
4323 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
4324 if eval "test \"\${$as_ac_Header+set}\" = set"; then
4325 echo $ECHO_N "(cached) $ECHO_C" >&6
4327 eval "$as_ac_Header=\$ac_header_preproc"
4329 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
4330 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
4333 if test `eval echo '${'$as_ac_Header'}'` = yes; then
4334 cat >>confdefs.h <<_ACEOF
4335 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
4353 echo "$as_me:$LINENO: checking for C/C++ restrict keyword" >&5
4354 echo $ECHO_N "checking for C/C++ restrict keyword... $ECHO_C" >&6
4355 if test "${ac_cv_c_restrict+set}" = set; then
4356 echo $ECHO_N "(cached) $ECHO_C" >&6
4359 # The order here caters to the fact that C++ does not require restrict.
4360 for ac_kw in __restrict __restrict__ _Restrict restrict; do
4361 cat >conftest.$ac_ext <<_ACEOF
4364 cat confdefs.h >>conftest.$ac_ext
4365 cat >>conftest.$ac_ext <<_ACEOF
4366 /* end confdefs.h. */
4367 typedef int * int_ptr;
4368 int foo (int_ptr $ac_kw ip) {
4382 rm -f conftest.$ac_objext
4383 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
4384 (eval $ac_compile) 2>conftest.er1
4386 grep -v '^ *+' conftest.er1 >conftest.err
4388 cat conftest.err >&5
4389 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4390 (exit $ac_status); } &&
4391 { ac_try='test -z "$ac_c_werror_flag"
4392 || test ! -s conftest.err'
4393 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4396 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4397 (exit $ac_status); }; } &&
4398 { ac_try='test -s conftest.$ac_objext'
4399 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4402 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4403 (exit $ac_status); }; }; then
4404 ac_cv_c_restrict=$ac_kw
4406 echo "$as_me: failed program was:" >&5
4407 sed 's/^/| /' conftest.$ac_ext >&5
4410 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
4411 test "$ac_cv_c_restrict" != no && break
4415 echo "$as_me:$LINENO: result: $ac_cv_c_restrict" >&5
4416 echo "${ECHO_T}$ac_cv_c_restrict" >&6
4419 case $ac_cv_c_restrict in
4421 no) cat >>confdefs.h <<\_ACEOF
4425 *) cat >>confdefs.h <<_ACEOF
4426 #define restrict $ac_cv_c_restrict
4451 if test $gl_cv_have_include_next = yes; then
4452 gl_cv_next_string_h='<'string.h'>'
4454 echo "$as_me:$LINENO: checking absolute name of <string.h>" >&5
4455 echo $ECHO_N "checking absolute name of <string.h>... $ECHO_C" >&6
4456 if test "${gl_cv_next_string_h+set}" = set; then
4457 echo $ECHO_N "(cached) $ECHO_C" >&6
4460 if test $ac_cv_header_string_h = yes; then
4461 cat >conftest.$ac_ext <<_ACEOF
4464 cat confdefs.h >>conftest.$ac_ext
4465 cat >>conftest.$ac_ext <<_ACEOF
4466 /* end confdefs.h. */
4470 gl_cv_next_string_h='"'`(eval "$ac_cpp conftest.$ac_ext") 2>&5 |
4471 sed -n '\#/string.h#{
4472 s#.*"\(.*/string.h\)".*#\1#
4478 gl_cv_next_string_h='<'string.h'>'
4482 echo "$as_me:$LINENO: result: $gl_cv_next_string_h" >&5
4483 echo "${ECHO_T}$gl_cv_next_string_h" >&6
4485 NEXT_STRING_H=$gl_cv_next_string_h
4492 HAVE_DECL_WCWIDTH=1;
4501 GL_COND_LIBTOOL_TRUE=
4502 GL_COND_LIBTOOL_FALSE='#'
4504 GL_COND_LIBTOOL_TRUE='#'
4505 GL_COND_LIBTOOL_FALSE=
4508 gl_cond_libtool=false
4514 gl_source_base='gnulib'
4524 for ac_func in memchr
4526 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
4527 echo "$as_me:$LINENO: checking for $ac_func" >&5
4528 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
4529 if eval "test \"\${$as_ac_var+set}\" = set"; then
4530 echo $ECHO_N "(cached) $ECHO_C" >&6
4532 cat >conftest.$ac_ext <<_ACEOF
4535 cat confdefs.h >>conftest.$ac_ext
4536 cat >>conftest.$ac_ext <<_ACEOF
4537 /* end confdefs.h. */
4538 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
4539 For example, HP-UX 11i <limits.h> declares gettimeofday. */
4540 #define $ac_func innocuous_$ac_func
4542 /* System header to define __stub macros and hopefully few prototypes,
4543 which can conflict with char $ac_func (); below.
4544 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
4545 <limits.h> exists even on freestanding compilers. */
4548 # include <limits.h>
4550 # include <assert.h>
4555 /* Override any gcc2 internal prototype to avoid an error. */
4560 /* We use char because int might match the return type of a gcc2
4561 builtin and then its argument prototype would still apply. */
4563 /* The GNU C library defines this for functions which it implements
4564 to always fail with ENOSYS. Some functions are actually named
4565 something starting with __ and the normal name is an alias. */
4566 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
4569 char (*f) () = $ac_func;
4578 return f != $ac_func;
4583 rm -f conftest.$ac_objext conftest$ac_exeext
4584 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
4585 (eval $ac_link) 2>conftest.er1
4587 grep -v '^ *+' conftest.er1 >conftest.err
4589 cat conftest.err >&5
4590 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4591 (exit $ac_status); } &&
4592 { ac_try='test -z "$ac_c_werror_flag"
4593 || test ! -s conftest.err'
4594 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4597 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4598 (exit $ac_status); }; } &&
4599 { ac_try='test -s conftest$ac_exeext'
4600 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4603 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4604 (exit $ac_status); }; }; then
4605 eval "$as_ac_var=yes"
4607 echo "$as_me: failed program was:" >&5
4608 sed 's/^/| /' conftest.$ac_ext >&5
4610 eval "$as_ac_var=no"
4612 rm -f conftest.err conftest.$ac_objext \
4613 conftest$ac_exeext conftest.$ac_ext
4615 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
4616 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
4617 if test `eval echo '${'$as_ac_var'}'` = yes; then
4618 cat >>confdefs.h <<_ACEOF
4619 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
4624 gl_LIBOBJS="$gl_LIBOBJS $ac_func.$ac_objext"
4630 if test $ac_cv_func_memchr = no; then
4633 for ac_header in bp-sym.h
4635 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
4636 if eval "test \"\${$as_ac_Header+set}\" = set"; then
4637 echo "$as_me:$LINENO: checking for $ac_header" >&5
4638 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
4639 if eval "test \"\${$as_ac_Header+set}\" = set"; then
4640 echo $ECHO_N "(cached) $ECHO_C" >&6
4642 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
4643 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
4645 # Is the header compilable?
4646 echo "$as_me:$LINENO: checking $ac_header usability" >&5
4647 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
4648 cat >conftest.$ac_ext <<_ACEOF
4651 cat confdefs.h >>conftest.$ac_ext
4652 cat >>conftest.$ac_ext <<_ACEOF
4653 /* end confdefs.h. */
4654 $ac_includes_default
4655 #include <$ac_header>
4657 rm -f conftest.$ac_objext
4658 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
4659 (eval $ac_compile) 2>conftest.er1
4661 grep -v '^ *+' conftest.er1 >conftest.err
4663 cat conftest.err >&5
4664 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4665 (exit $ac_status); } &&
4666 { ac_try='test -z "$ac_c_werror_flag"
4667 || test ! -s conftest.err'
4668 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4671 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4672 (exit $ac_status); }; } &&
4673 { ac_try='test -s conftest.$ac_objext'
4674 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4677 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4678 (exit $ac_status); }; }; then
4679 ac_header_compiler=yes
4681 echo "$as_me: failed program was:" >&5
4682 sed 's/^/| /' conftest.$ac_ext >&5
4684 ac_header_compiler=no
4686 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
4687 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
4688 echo "${ECHO_T}$ac_header_compiler" >&6
4690 # Is the header present?
4691 echo "$as_me:$LINENO: checking $ac_header presence" >&5
4692 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
4693 cat >conftest.$ac_ext <<_ACEOF
4696 cat confdefs.h >>conftest.$ac_ext
4697 cat >>conftest.$ac_ext <<_ACEOF
4698 /* end confdefs.h. */
4699 #include <$ac_header>
4701 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
4702 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
4704 grep -v '^ *+' conftest.er1 >conftest.err
4706 cat conftest.err >&5
4707 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4708 (exit $ac_status); } >/dev/null; then
4709 if test -s conftest.err; then
4710 ac_cpp_err=$ac_c_preproc_warn_flag
4711 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
4718 if test -z "$ac_cpp_err"; then
4719 ac_header_preproc=yes
4721 echo "$as_me: failed program was:" >&5
4722 sed 's/^/| /' conftest.$ac_ext >&5
4724 ac_header_preproc=no
4726 rm -f conftest.err conftest.$ac_ext
4727 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
4728 echo "${ECHO_T}$ac_header_preproc" >&6
4730 # So? What about this header?
4731 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
4733 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
4734 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
4735 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
4736 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
4737 ac_header_preproc=yes
4740 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
4741 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
4742 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
4743 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
4744 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
4745 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
4746 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
4747 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
4748 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
4749 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
4750 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
4751 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
4754 ## ------------------------------------------ ##
4755 ## Report this to the AC_PACKAGE_NAME lists. ##
4756 ## ------------------------------------------ ##
4759 sed "s/^/$as_me: WARNING: /" >&2
4762 echo "$as_me:$LINENO: checking for $ac_header" >&5
4763 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
4764 if eval "test \"\${$as_ac_Header+set}\" = set"; then
4765 echo $ECHO_N "(cached) $ECHO_C" >&6
4767 eval "$as_ac_Header=\$ac_header_preproc"
4769 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
4770 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
4773 if test `eval echo '${'$as_ac_Header'}'` = yes; then
4774 cat >>confdefs.h <<_ACEOF
4775 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
4786 echo "$as_me:$LINENO: checking for working memcmp" >&5
4787 echo $ECHO_N "checking for working memcmp... $ECHO_C" >&6
4788 if test "${ac_cv_func_memcmp_working+set}" = set; then
4789 echo $ECHO_N "(cached) $ECHO_C" >&6
4791 if test "$cross_compiling" = yes; then
4792 ac_cv_func_memcmp_working=no
4794 cat >conftest.$ac_ext <<_ACEOF
4797 cat confdefs.h >>conftest.$ac_ext
4798 cat >>conftest.$ac_ext <<_ACEOF
4799 /* end confdefs.h. */
4800 $ac_includes_default
4805 /* Some versions of memcmp are not 8-bit clean. */
4806 char c0 = 0x40, c1 = 0x80, c2 = 0x81;
4807 if (memcmp(&c0, &c2, 1) >= 0 || memcmp(&c1, &c2, 1) >= 0)
4810 /* The Next x86 OpenStep bug shows up only when comparing 16 bytes
4811 or more and with at least one buffer not starting on a 4-byte boundary.
4812 William Lewis provided this test program. */
4817 for (i = 0; i < 4; i++)
4821 strcpy (a, "--------01111111");
4822 strcpy (b, "--------10000000");
4823 if (memcmp (a, b, 16) >= 0)
4833 rm -f conftest$ac_exeext
4834 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
4835 (eval $ac_link) 2>&5
4837 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4838 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
4839 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4842 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4843 (exit $ac_status); }; }; then
4844 ac_cv_func_memcmp_working=yes
4846 echo "$as_me: program exited with status $ac_status" >&5
4847 echo "$as_me: failed program was:" >&5
4848 sed 's/^/| /' conftest.$ac_ext >&5
4851 ac_cv_func_memcmp_working=no
4853 rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
4856 echo "$as_me:$LINENO: result: $ac_cv_func_memcmp_working" >&5
4857 echo "${ECHO_T}$ac_cv_func_memcmp_working" >&6
4858 test $ac_cv_func_memcmp_working = no &&
4865 gl_LIBOBJS="$gl_LIBOBJS memcmp.$ac_objext"
4868 if test $ac_cv_func_memcmp_working = no; then
4870 cat >>confdefs.h <<\_ACEOF
4871 #define memcmp rpl_memcmp
4879 if test $ac_cv_have_decl_memmem = yes; then
4880 echo "$as_me:$LINENO: checking whether memmem works in linear time" >&5
4881 echo $ECHO_N "checking whether memmem works in linear time... $ECHO_C" >&6
4882 if test "${gl_cv_func_memmem_works+set}" = set; then
4883 echo $ECHO_N "(cached) $ECHO_C" >&6
4885 if test "$cross_compiling" = yes; then
4886 gl_cv_func_memmem_works="guessing no"
4888 cat >conftest.$ac_ext <<_ACEOF
4891 cat confdefs.h >>conftest.$ac_ext
4892 cat >>conftest.$ac_ext <<_ACEOF
4893 /* end confdefs.h. */
4895 #include <string.h> /* for memmem */
4896 #include <stdlib.h> /* for malloc */
4897 #include <unistd.h> /* for alarm */
4903 char *haystack = (char *) malloc (2 * m + 1);
4904 char *needle = (char *) malloc (m + 1);
4906 /* Failure to compile this test due to missing alarm is okay,
4907 since all such platforms (mingw) also lack memmem. */
4909 /* Check for quadratic performance. */
4910 if (haystack && needle)
4912 memset (haystack, 'A', 2 * m);
4913 haystack[2 * m] = 'B';
4914 memset (needle, 'A', m);
4916 result = memmem (haystack, 2 * m + 1, needle, m + 1);
4918 /* Check for empty needle behavior. */
4919 return !result || !memmem ("a", 1, 0, 0);
4924 rm -f conftest$ac_exeext
4925 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
4926 (eval $ac_link) 2>&5
4928 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4929 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
4930 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4933 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4934 (exit $ac_status); }; }; then
4935 gl_cv_func_memmem_works=yes
4937 echo "$as_me: program exited with status $ac_status" >&5
4938 echo "$as_me: failed program was:" >&5
4939 sed 's/^/| /' conftest.$ac_ext >&5
4942 gl_cv_func_memmem_works=no
4944 rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
4947 echo "$as_me:$LINENO: result: $gl_cv_func_memmem_works" >&5
4948 echo "${ECHO_T}$gl_cv_func_memmem_works" >&6
4949 if test "$gl_cv_func_memmem_works" != yes; then
4958 gl_LIBOBJS="$gl_LIBOBJS memmem.$ac_objext"
4975 for ac_func in memmem
4977 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
4978 echo "$as_me:$LINENO: checking for $ac_func" >&5
4979 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
4980 if eval "test \"\${$as_ac_var+set}\" = set"; then
4981 echo $ECHO_N "(cached) $ECHO_C" >&6
4983 cat >conftest.$ac_ext <<_ACEOF
4986 cat confdefs.h >>conftest.$ac_ext
4987 cat >>conftest.$ac_ext <<_ACEOF
4988 /* end confdefs.h. */
4989 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
4990 For example, HP-UX 11i <limits.h> declares gettimeofday. */
4991 #define $ac_func innocuous_$ac_func
4993 /* System header to define __stub macros and hopefully few prototypes,
4994 which can conflict with char $ac_func (); below.
4995 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
4996 <limits.h> exists even on freestanding compilers. */
4999 # include <limits.h>
5001 # include <assert.h>
5006 /* Override any gcc2 internal prototype to avoid an error. */
5011 /* We use char because int might match the return type of a gcc2
5012 builtin and then its argument prototype would still apply. */
5014 /* The GNU C library defines this for functions which it implements
5015 to always fail with ENOSYS. Some functions are actually named
5016 something starting with __ and the normal name is an alias. */
5017 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
5020 char (*f) () = $ac_func;
5029 return f != $ac_func;
5034 rm -f conftest.$ac_objext conftest$ac_exeext
5035 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
5036 (eval $ac_link) 2>conftest.er1
5038 grep -v '^ *+' conftest.er1 >conftest.err
5040 cat conftest.err >&5
5041 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5042 (exit $ac_status); } &&
5043 { ac_try='test -z "$ac_c_werror_flag"
5044 || test ! -s conftest.err'
5045 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5048 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5049 (exit $ac_status); }; } &&
5050 { ac_try='test -s conftest$ac_exeext'
5051 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5054 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5055 (exit $ac_status); }; }; then
5056 eval "$as_ac_var=yes"
5058 echo "$as_me: failed program was:" >&5
5059 sed 's/^/| /' conftest.$ac_ext >&5
5061 eval "$as_ac_var=no"
5063 rm -f conftest.err conftest.$ac_objext \
5064 conftest$ac_exeext conftest.$ac_ext
5066 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
5067 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
5068 if test `eval echo '${'$as_ac_var'}'` = yes; then
5069 cat >>confdefs.h <<_ACEOF
5070 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
5075 gl_LIBOBJS="$gl_LIBOBJS $ac_func.$ac_objext"
5088 if test $ac_cv_have_decl_memmem = no; then
5100 if test $ac_cv_type_long_long_int = yes; then
5101 HAVE_LONG_LONG_INT=1
5103 HAVE_LONG_LONG_INT=0
5107 if test $ac_cv_type_unsigned_long_long_int = yes; then
5108 HAVE_UNSIGNED_LONG_LONG_INT=1
5110 HAVE_UNSIGNED_LONG_LONG_INT=0
5114 if test $ac_cv_header_inttypes_h = yes; then
5121 if test $ac_cv_header_sys_types_h = yes; then
5139 if test $gl_cv_have_include_next = yes; then
5140 gl_cv_next_stdint_h='<'stdint.h'>'
5142 echo "$as_me:$LINENO: checking absolute name of <stdint.h>" >&5
5143 echo $ECHO_N "checking absolute name of <stdint.h>... $ECHO_C" >&6
5144 if test "${gl_cv_next_stdint_h+set}" = set; then
5145 echo $ECHO_N "(cached) $ECHO_C" >&6
5148 if test $ac_cv_header_stdint_h = yes; then
5149 cat >conftest.$ac_ext <<_ACEOF
5152 cat confdefs.h >>conftest.$ac_ext
5153 cat >>conftest.$ac_ext <<_ACEOF
5154 /* end confdefs.h. */
5158 gl_cv_next_stdint_h='"'`(eval "$ac_cpp conftest.$ac_ext") 2>&5 |
5159 sed -n '\#/stdint.h#{
5160 s#.*"\(.*/stdint.h\)".*#\1#
5166 gl_cv_next_stdint_h='<'stdint.h'>'
5170 echo "$as_me:$LINENO: result: $gl_cv_next_stdint_h" >&5
5171 echo "${ECHO_T}$gl_cv_next_stdint_h" >&6
5173 NEXT_STDINT_H=$gl_cv_next_stdint_h
5177 if test $ac_cv_header_stdint_h = yes; then
5184 if test $ac_cv_header_stdint_h = yes; then
5185 echo "$as_me:$LINENO: checking whether stdint.h conforms to C99" >&5
5186 echo $ECHO_N "checking whether stdint.h conforms to C99... $ECHO_C" >&6
5187 if test "${gl_cv_header_working_stdint_h+set}" = set; then
5188 echo $ECHO_N "(cached) $ECHO_C" >&6
5190 gl_cv_header_working_stdint_h=no
5191 cat >conftest.$ac_ext <<_ACEOF
5195 cat confdefs.h >>conftest.$ac_ext
5196 cat >>conftest.$ac_ext <<_ACEOF
5197 /* end confdefs.h. */
5199 #define __STDC_LIMIT_MACROS 1 /* to make it work also in C++ mode */
5200 #define __STDC_CONSTANT_MACROS 1 /* to make it work also in C++ mode */
5201 #define _GL_JUST_INCLUDE_SYSTEM_STDINT_H 1 /* work if build isn't clean */
5203 /* Dragonfly defines WCHAR_MIN, WCHAR_MAX only in <wchar.h>. */
5204 #if !(defined WCHAR_MIN && defined WCHAR_MAX)
5205 #error "WCHAR_MIN, WCHAR_MAX not defined in <stdint.h>"
5209 /* BSD/OS 4.0.1 has a bug: <stddef.h>, <stdio.h> and <time.h> must be
5210 included before <wchar.h>. */
5221 int8_t a1 = INT8_MAX;
5222 int8_t a1min = INT8_MIN;
5225 int16_t a2 = INT16_MAX;
5226 int16_t a2min = INT16_MIN;
5229 int32_t a3 = INT32_MAX;
5230 int32_t a3min = INT32_MIN;
5233 int64_t a4 = INT64_MAX;
5234 int64_t a4min = INT64_MIN;
5237 uint8_t b1 = UINT8_MAX;
5239 typedef int b1[(unsigned char) -1 != 255 ? 1 : -1];
5242 uint16_t b2 = UINT16_MAX;
5245 uint32_t b3 = UINT32_MAX;
5248 uint64_t b4 = UINT64_MAX;
5250 int_least8_t c1 = INT8_C (0x7f);
5251 int_least8_t c1max = INT_LEAST8_MAX;
5252 int_least8_t c1min = INT_LEAST8_MIN;
5253 int_least16_t c2 = INT16_C (0x7fff);
5254 int_least16_t c2max = INT_LEAST16_MAX;
5255 int_least16_t c2min = INT_LEAST16_MIN;
5256 int_least32_t c3 = INT32_C (0x7fffffff);
5257 int_least32_t c3max = INT_LEAST32_MAX;
5258 int_least32_t c3min = INT_LEAST32_MIN;
5259 int_least64_t c4 = INT64_C (0x7fffffffffffffff);
5260 int_least64_t c4max = INT_LEAST64_MAX;
5261 int_least64_t c4min = INT_LEAST64_MIN;
5262 uint_least8_t d1 = UINT8_C (0xff);
5263 uint_least8_t d1max = UINT_LEAST8_MAX;
5264 uint_least16_t d2 = UINT16_C (0xffff);
5265 uint_least16_t d2max = UINT_LEAST16_MAX;
5266 uint_least32_t d3 = UINT32_C (0xffffffff);
5267 uint_least32_t d3max = UINT_LEAST32_MAX;
5268 uint_least64_t d4 = UINT64_C (0xffffffffffffffff);
5269 uint_least64_t d4max = UINT_LEAST64_MAX;
5270 int_fast8_t e1 = INT_FAST8_MAX;
5271 int_fast8_t e1min = INT_FAST8_MIN;
5272 int_fast16_t e2 = INT_FAST16_MAX;
5273 int_fast16_t e2min = INT_FAST16_MIN;
5274 int_fast32_t e3 = INT_FAST32_MAX;
5275 int_fast32_t e3min = INT_FAST32_MIN;
5276 int_fast64_t e4 = INT_FAST64_MAX;
5277 int_fast64_t e4min = INT_FAST64_MIN;
5278 uint_fast8_t f1 = UINT_FAST8_MAX;
5279 uint_fast16_t f2 = UINT_FAST16_MAX;
5280 uint_fast32_t f3 = UINT_FAST32_MAX;
5281 uint_fast64_t f4 = UINT_FAST64_MAX;
5283 intptr_t g = INTPTR_MAX;
5284 intptr_t gmin = INTPTR_MIN;
5287 uintptr_t h = UINTPTR_MAX;
5289 intmax_t i = INTMAX_MAX;
5290 uintmax_t j = UINTMAX_MAX;
5292 #include <limits.h> /* for CHAR_BIT */
5293 #define TYPE_MINIMUM(t) \
5294 ((t) ((t) 0 < (t) -1 ? (t) 0 : ~ (t) 0 << (sizeof (t) * CHAR_BIT - 1)))
5295 #define TYPE_MAXIMUM(t) \
5296 ((t) ((t) 0 < (t) -1 ? (t) -1 : ~ (~ (t) 0 << (sizeof (t) * CHAR_BIT - 1))))
5299 PTRDIFF_MIN == TYPE_MINIMUM (ptrdiff_t)
5300 && PTRDIFF_MAX == TYPE_MAXIMUM (ptrdiff_t)
5302 /* Detect bug in FreeBSD 6.0 / ia64. */
5303 int check_SIG_ATOMIC:
5304 SIG_ATOMIC_MIN == TYPE_MINIMUM (sig_atomic_t)
5305 && SIG_ATOMIC_MAX == TYPE_MAXIMUM (sig_atomic_t)
5307 int check_SIZE: SIZE_MAX == TYPE_MAXIMUM (size_t) ? 1 : -1;
5309 WCHAR_MIN == TYPE_MINIMUM (wchar_t)
5310 && WCHAR_MAX == TYPE_MAXIMUM (wchar_t)
5312 /* Detect bug in mingw. */
5314 WINT_MIN == TYPE_MINIMUM (wint_t)
5315 && WINT_MAX == TYPE_MAXIMUM (wint_t)
5318 /* Detect bugs in glibc 2.4 and Solaris 10 stdint.h, among others. */
5320 (-1 < UINT8_C (0)) == (-1 < (uint_least8_t) 0) ? 1 : -1;
5322 (-1 < UINT16_C (0)) == (-1 < (uint_least16_t) 0) ? 1 : -1;
5324 /* Detect bugs in OpenBSD 3.9 stdint.h. */
5326 int check_uint8: (uint8_t) -1 == UINT8_MAX ? 1 : -1;
5329 int check_uint16: (uint16_t) -1 == UINT16_MAX ? 1 : -1;
5332 int check_uint32: (uint32_t) -1 == UINT32_MAX ? 1 : -1;
5335 int check_uint64: (uint64_t) -1 == UINT64_MAX ? 1 : -1;
5337 int check_uint_least8: (uint_least8_t) -1 == UINT_LEAST8_MAX ? 1 : -1;
5338 int check_uint_least16: (uint_least16_t) -1 == UINT_LEAST16_MAX ? 1 : -1;
5339 int check_uint_least32: (uint_least32_t) -1 == UINT_LEAST32_MAX ? 1 : -1;
5340 int check_uint_least64: (uint_least64_t) -1 == UINT_LEAST64_MAX ? 1 : -1;
5341 int check_uint_fast8: (uint_fast8_t) -1 == UINT_FAST8_MAX ? 1 : -1;
5342 int check_uint_fast16: (uint_fast16_t) -1 == UINT_FAST16_MAX ? 1 : -1;
5343 int check_uint_fast32: (uint_fast32_t) -1 == UINT_FAST32_MAX ? 1 : -1;
5344 int check_uint_fast64: (uint_fast64_t) -1 == UINT_FAST64_MAX ? 1 : -1;
5345 int check_uintptr: (uintptr_t) -1 == UINTPTR_MAX ? 1 : -1;
5346 int check_uintmax: (uintmax_t) -1 == UINTMAX_MAX ? 1 : -1;
5347 int check_size: (size_t) -1 == SIZE_MAX ? 1 : -1;
5358 rm -f conftest.$ac_objext
5359 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
5360 (eval $ac_compile) 2>conftest.er1
5362 grep -v '^ *+' conftest.er1 >conftest.err
5364 cat conftest.err >&5
5365 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5366 (exit $ac_status); } &&
5367 { ac_try='test -z "$ac_c_werror_flag"
5368 || test ! -s conftest.err'
5369 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5372 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5373 (exit $ac_status); }; } &&
5374 { ac_try='test -s conftest.$ac_objext'
5375 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5378 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5379 (exit $ac_status); }; }; then
5380 gl_cv_header_working_stdint_h=yes
5382 echo "$as_me: failed program was:" >&5
5383 sed 's/^/| /' conftest.$ac_ext >&5
5386 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
5388 echo "$as_me:$LINENO: result: $gl_cv_header_working_stdint_h" >&5
5389 echo "${ECHO_T}$gl_cv_header_working_stdint_h" >&6
5391 if test "$gl_cv_header_working_stdint_h" = yes; then
5396 for ac_header in sys/inttypes.h sys/bitypes.h
5398 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
5399 if eval "test \"\${$as_ac_Header+set}\" = set"; then
5400 echo "$as_me:$LINENO: checking for $ac_header" >&5
5401 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
5402 if eval "test \"\${$as_ac_Header+set}\" = set"; then
5403 echo $ECHO_N "(cached) $ECHO_C" >&6
5405 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
5406 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
5408 # Is the header compilable?
5409 echo "$as_me:$LINENO: checking $ac_header usability" >&5
5410 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
5411 cat >conftest.$ac_ext <<_ACEOF
5414 cat confdefs.h >>conftest.$ac_ext
5415 cat >>conftest.$ac_ext <<_ACEOF
5416 /* end confdefs.h. */
5417 $ac_includes_default
5418 #include <$ac_header>
5420 rm -f conftest.$ac_objext
5421 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
5422 (eval $ac_compile) 2>conftest.er1
5424 grep -v '^ *+' conftest.er1 >conftest.err
5426 cat conftest.err >&5
5427 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5428 (exit $ac_status); } &&
5429 { ac_try='test -z "$ac_c_werror_flag"
5430 || test ! -s conftest.err'
5431 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5434 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5435 (exit $ac_status); }; } &&
5436 { ac_try='test -s conftest.$ac_objext'
5437 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5440 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5441 (exit $ac_status); }; }; then
5442 ac_header_compiler=yes
5444 echo "$as_me: failed program was:" >&5
5445 sed 's/^/| /' conftest.$ac_ext >&5
5447 ac_header_compiler=no
5449 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
5450 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
5451 echo "${ECHO_T}$ac_header_compiler" >&6
5453 # Is the header present?
5454 echo "$as_me:$LINENO: checking $ac_header presence" >&5
5455 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
5456 cat >conftest.$ac_ext <<_ACEOF
5459 cat confdefs.h >>conftest.$ac_ext
5460 cat >>conftest.$ac_ext <<_ACEOF
5461 /* end confdefs.h. */
5462 #include <$ac_header>
5464 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
5465 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
5467 grep -v '^ *+' conftest.er1 >conftest.err
5469 cat conftest.err >&5
5470 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5471 (exit $ac_status); } >/dev/null; then
5472 if test -s conftest.err; then
5473 ac_cpp_err=$ac_c_preproc_warn_flag
5474 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
5481 if test -z "$ac_cpp_err"; then
5482 ac_header_preproc=yes
5484 echo "$as_me: failed program was:" >&5
5485 sed 's/^/| /' conftest.$ac_ext >&5
5487 ac_header_preproc=no
5489 rm -f conftest.err conftest.$ac_ext
5490 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
5491 echo "${ECHO_T}$ac_header_preproc" >&6
5493 # So? What about this header?
5494 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
5496 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
5497 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
5498 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
5499 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
5500 ac_header_preproc=yes
5503 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
5504 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
5505 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
5506 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
5507 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
5508 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
5509 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
5510 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
5511 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
5512 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
5513 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
5514 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
5517 ## ------------------------------------------ ##
5518 ## Report this to the AC_PACKAGE_NAME lists. ##
5519 ## ------------------------------------------ ##
5522 sed "s/^/$as_me: WARNING: /" >&2
5525 echo "$as_me:$LINENO: checking for $ac_header" >&5
5526 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
5527 if eval "test \"\${$as_ac_Header+set}\" = set"; then
5528 echo $ECHO_N "(cached) $ECHO_C" >&6
5530 eval "$as_ac_Header=\$ac_header_preproc"
5532 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
5533 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
5536 if test `eval echo '${'$as_ac_Header'}'` = yes; then
5537 cat >>confdefs.h <<_ACEOF
5538 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
5545 if test $ac_cv_header_sys_inttypes_h = yes; then
5546 HAVE_SYS_INTTYPES_H=1
5548 HAVE_SYS_INTTYPES_H=0
5551 if test $ac_cv_header_sys_bitypes_h = yes; then
5552 HAVE_SYS_BITYPES_H=1
5554 HAVE_SYS_BITYPES_H=0
5574 for gltype in ptrdiff_t sig_atomic_t size_t wchar_t wint_t ; do
5575 echo "$as_me:$LINENO: checking for bit size of $gltype" >&5
5576 echo $ECHO_N "checking for bit size of $gltype... $ECHO_C" >&6
5577 if eval "test \"\${gl_cv_bitsizeof_${gltype}+set}\" = set"; then
5578 echo $ECHO_N "(cached) $ECHO_C" >&6
5580 if test "$cross_compiling" = yes; then
5581 # Depending upon the size, compute the lo and hi bounds.
5582 cat >conftest.$ac_ext <<_ACEOF
5585 cat confdefs.h >>conftest.$ac_ext
5586 cat >>conftest.$ac_ext <<_ACEOF
5587 /* end confdefs.h. */
5589 /* BSD/OS 4.0.1 has a bug: <stddef.h>, <stdio.h> and <time.h> must be
5590 included before <wchar.h>. */
5603 static int test_array [1 - 2 * !((sizeof ($gltype) * CHAR_BIT) >= 0)];
5610 rm -f conftest.$ac_objext
5611 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
5612 (eval $ac_compile) 2>conftest.er1
5614 grep -v '^ *+' conftest.er1 >conftest.err
5616 cat conftest.err >&5
5617 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5618 (exit $ac_status); } &&
5619 { ac_try='test -z "$ac_c_werror_flag"
5620 || test ! -s conftest.err'
5621 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5624 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5625 (exit $ac_status); }; } &&
5626 { ac_try='test -s conftest.$ac_objext'
5627 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5630 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5631 (exit $ac_status); }; }; then
5634 cat >conftest.$ac_ext <<_ACEOF
5637 cat confdefs.h >>conftest.$ac_ext
5638 cat >>conftest.$ac_ext <<_ACEOF
5639 /* end confdefs.h. */
5641 /* BSD/OS 4.0.1 has a bug: <stddef.h>, <stdio.h> and <time.h> must be
5642 included before <wchar.h>. */
5655 static int test_array [1 - 2 * !((sizeof ($gltype) * CHAR_BIT) <= $ac_mid)];
5662 rm -f conftest.$ac_objext
5663 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
5664 (eval $ac_compile) 2>conftest.er1
5666 grep -v '^ *+' conftest.er1 >conftest.err
5668 cat conftest.err >&5
5669 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5670 (exit $ac_status); } &&
5671 { ac_try='test -z "$ac_c_werror_flag"
5672 || test ! -s conftest.err'
5673 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5676 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5677 (exit $ac_status); }; } &&
5678 { ac_try='test -s conftest.$ac_objext'
5679 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5682 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5683 (exit $ac_status); }; }; then
5684 ac_hi=$ac_mid; break
5686 echo "$as_me: failed program was:" >&5
5687 sed 's/^/| /' conftest.$ac_ext >&5
5689 ac_lo=`expr $ac_mid + 1`
5690 if test $ac_lo -le $ac_mid; then
5694 ac_mid=`expr 2 '*' $ac_mid + 1`
5696 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
5699 echo "$as_me: failed program was:" >&5
5700 sed 's/^/| /' conftest.$ac_ext >&5
5702 cat >conftest.$ac_ext <<_ACEOF
5705 cat confdefs.h >>conftest.$ac_ext
5706 cat >>conftest.$ac_ext <<_ACEOF
5707 /* end confdefs.h. */
5709 /* BSD/OS 4.0.1 has a bug: <stddef.h>, <stdio.h> and <time.h> must be
5710 included before <wchar.h>. */
5723 static int test_array [1 - 2 * !((sizeof ($gltype) * CHAR_BIT) < 0)];
5730 rm -f conftest.$ac_objext
5731 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
5732 (eval $ac_compile) 2>conftest.er1
5734 grep -v '^ *+' conftest.er1 >conftest.err
5736 cat conftest.err >&5
5737 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5738 (exit $ac_status); } &&
5739 { ac_try='test -z "$ac_c_werror_flag"
5740 || test ! -s conftest.err'
5741 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5744 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5745 (exit $ac_status); }; } &&
5746 { ac_try='test -s conftest.$ac_objext'
5747 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5750 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5751 (exit $ac_status); }; }; then
5754 cat >conftest.$ac_ext <<_ACEOF
5757 cat confdefs.h >>conftest.$ac_ext
5758 cat >>conftest.$ac_ext <<_ACEOF
5759 /* end confdefs.h. */
5761 /* BSD/OS 4.0.1 has a bug: <stddef.h>, <stdio.h> and <time.h> must be
5762 included before <wchar.h>. */
5775 static int test_array [1 - 2 * !((sizeof ($gltype) * CHAR_BIT) >= $ac_mid)];
5782 rm -f conftest.$ac_objext
5783 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
5784 (eval $ac_compile) 2>conftest.er1
5786 grep -v '^ *+' conftest.er1 >conftest.err
5788 cat conftest.err >&5
5789 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5790 (exit $ac_status); } &&
5791 { ac_try='test -z "$ac_c_werror_flag"
5792 || test ! -s conftest.err'
5793 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5796 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5797 (exit $ac_status); }; } &&
5798 { ac_try='test -s conftest.$ac_objext'
5799 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5802 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5803 (exit $ac_status); }; }; then
5804 ac_lo=$ac_mid; break
5806 echo "$as_me: failed program was:" >&5
5807 sed 's/^/| /' conftest.$ac_ext >&5
5809 ac_hi=`expr '(' $ac_mid ')' - 1`
5810 if test $ac_mid -le $ac_hi; then
5814 ac_mid=`expr 2 '*' $ac_mid`
5816 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
5819 echo "$as_me: failed program was:" >&5
5820 sed 's/^/| /' conftest.$ac_ext >&5
5824 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
5826 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
5827 # Binary search between lo and hi bounds.
5828 while test "x$ac_lo" != "x$ac_hi"; do
5829 ac_mid=`expr '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo`
5830 cat >conftest.$ac_ext <<_ACEOF
5833 cat confdefs.h >>conftest.$ac_ext
5834 cat >>conftest.$ac_ext <<_ACEOF
5835 /* end confdefs.h. */
5837 /* BSD/OS 4.0.1 has a bug: <stddef.h>, <stdio.h> and <time.h> must be
5838 included before <wchar.h>. */
5851 static int test_array [1 - 2 * !((sizeof ($gltype) * CHAR_BIT) <= $ac_mid)];
5858 rm -f conftest.$ac_objext
5859 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
5860 (eval $ac_compile) 2>conftest.er1
5862 grep -v '^ *+' conftest.er1 >conftest.err
5864 cat conftest.err >&5
5865 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5866 (exit $ac_status); } &&
5867 { ac_try='test -z "$ac_c_werror_flag"
5868 || test ! -s conftest.err'
5869 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5872 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5873 (exit $ac_status); }; } &&
5874 { ac_try='test -s conftest.$ac_objext'
5875 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5878 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5879 (exit $ac_status); }; }; then
5882 echo "$as_me: failed program was:" >&5
5883 sed 's/^/| /' conftest.$ac_ext >&5
5885 ac_lo=`expr '(' $ac_mid ')' + 1`
5887 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
5891 '') result=unknown ;;
5894 if test "$cross_compiling" = yes; then
5895 { { echo "$as_me:$LINENO: error: in \`$ac_pwd':" >&5
5896 echo "$as_me: error: in \`$ac_pwd':" >&2;}
5897 { { echo "$as_me:$LINENO: error: cannot run test program while cross compiling
5898 See \`config.log' for more details." >&5
5899 echo "$as_me: error: cannot run test program while cross compiling
5900 See \`config.log' for more details." >&2;}
5901 { (exit 1); exit 1; }; }; }
5903 cat >conftest.$ac_ext <<_ACEOF
5906 cat confdefs.h >>conftest.$ac_ext
5907 cat >>conftest.$ac_ext <<_ACEOF
5908 /* end confdefs.h. */
5910 /* BSD/OS 4.0.1 has a bug: <stddef.h>, <stdio.h> and <time.h> must be
5911 included before <wchar.h>. */
5921 long longval () { return sizeof ($gltype) * CHAR_BIT; }
5922 unsigned long ulongval () { return sizeof ($gltype) * CHAR_BIT; }
5929 FILE *f = fopen ("conftest.val", "w");
5932 if ((sizeof ($gltype) * CHAR_BIT) < 0)
5934 long i = longval ();
5935 if (i != (sizeof ($gltype) * CHAR_BIT))
5937 fprintf (f, "%ld\n", i);
5941 unsigned long i = ulongval ();
5942 if (i != (sizeof ($gltype) * CHAR_BIT))
5944 fprintf (f, "%lu\n", i);
5946 exit (ferror (f) || fclose (f) != 0);
5952 rm -f conftest$ac_exeext
5953 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
5954 (eval $ac_link) 2>&5
5956 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5957 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
5958 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5961 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5962 (exit $ac_status); }; }; then
5963 result=`cat conftest.val`
5965 echo "$as_me: program exited with status $ac_status" >&5
5966 echo "$as_me: failed program was:" >&5
5967 sed 's/^/| /' conftest.$ac_ext >&5
5972 rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
5976 eval gl_cv_bitsizeof_${gltype}=\$result
5979 echo "$as_me:$LINENO: result: `eval echo '${'gl_cv_bitsizeof_${gltype}'}'`" >&5
5980 echo "${ECHO_T}`eval echo '${'gl_cv_bitsizeof_${gltype}'}'`" >&6
5981 eval result=\$gl_cv_bitsizeof_${gltype}
5982 if test $result = unknown; then
5985 GLTYPE=`echo "$gltype" | tr 'abcdefghijklmnopqrstuvwxyz ' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ_'`
5986 cat >>confdefs.h <<_ACEOF
5987 #define BITSIZEOF_${GLTYPE} $result
5990 eval BITSIZEOF_${GLTYPE}=\$result
5999 for gltype in sig_atomic_t wchar_t wint_t ; do
6000 echo "$as_me:$LINENO: checking whether $gltype is signed" >&5
6001 echo $ECHO_N "checking whether $gltype is signed... $ECHO_C" >&6
6002 if eval "test \"\${gl_cv_type_${gltype}_signed+set}\" = set"; then
6003 echo $ECHO_N "(cached) $ECHO_C" >&6
6005 cat >conftest.$ac_ext <<_ACEOF
6008 cat confdefs.h >>conftest.$ac_ext
6009 cat >>conftest.$ac_ext <<_ACEOF
6010 /* end confdefs.h. */
6012 /* BSD/OS 4.0.1 has a bug: <stddef.h>, <stdio.h> and <time.h> must be
6013 included before <wchar.h>. */
6022 int verify[2 * (($gltype) -1 < ($gltype) 0) - 1];
6031 rm -f conftest.$ac_objext
6032 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
6033 (eval $ac_compile) 2>conftest.er1
6035 grep -v '^ *+' conftest.er1 >conftest.err
6037 cat conftest.err >&5
6038 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6039 (exit $ac_status); } &&
6040 { ac_try='test -z "$ac_c_werror_flag"
6041 || test ! -s conftest.err'
6042 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6045 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6046 (exit $ac_status); }; } &&
6047 { ac_try='test -s conftest.$ac_objext'
6048 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6051 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6052 (exit $ac_status); }; }; then
6055 echo "$as_me: failed program was:" >&5
6056 sed 's/^/| /' conftest.$ac_ext >&5
6060 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
6061 eval gl_cv_type_${gltype}_signed=\$result
6064 echo "$as_me:$LINENO: result: `eval echo '${'gl_cv_type_${gltype}_signed'}'`" >&5
6065 echo "${ECHO_T}`eval echo '${'gl_cv_type_${gltype}_signed'}'`" >&6
6066 eval result=\$gl_cv_type_${gltype}_signed
6067 GLTYPE=`echo $gltype | tr 'abcdefghijklmnopqrstuvwxyz ' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ_'`
6068 if test "$result" = yes; then
6069 cat >>confdefs.h <<_ACEOF
6070 #define HAVE_SIGNED_${GLTYPE} 1
6073 eval HAVE_SIGNED_${GLTYPE}=1
6075 eval HAVE_SIGNED_${GLTYPE}=0
6080 gl_cv_type_ptrdiff_t_signed=yes
6081 gl_cv_type_size_t_signed=no
6089 for gltype in ptrdiff_t sig_atomic_t size_t wchar_t wint_t ; do
6090 echo "$as_me:$LINENO: checking for $gltype integer literal suffix" >&5
6091 echo $ECHO_N "checking for $gltype integer literal suffix... $ECHO_C" >&6
6092 if eval "test \"\${gl_cv_type_${gltype}_suffix+set}\" = set"; then
6093 echo $ECHO_N "(cached) $ECHO_C" >&6
6095 eval gl_cv_type_${gltype}_suffix=no
6096 eval result=\$gl_cv_type_${gltype}_signed
6097 if test "$result" = yes; then
6102 for glsuf in "$glsufu" ${glsufu}l ${glsufu}ll ${glsufu}i64; do
6105 l) gltype1='long int';;
6106 ll) gltype1='long long int';;
6107 i64) gltype1='__int64';;
6108 u) gltype1='unsigned int';;
6109 ul) gltype1='unsigned long int';;
6110 ull) gltype1='unsigned long long int';;
6111 ui64)gltype1='unsigned __int64';;
6113 cat >conftest.$ac_ext <<_ACEOF
6116 cat confdefs.h >>conftest.$ac_ext
6117 cat >>conftest.$ac_ext <<_ACEOF
6118 /* end confdefs.h. */
6120 /* BSD/OS 4.0.1 has a bug: <stddef.h>, <stdio.h> and <time.h> must be
6121 included before <wchar.h>. */
6131 extern $gltype1 foo;
6140 rm -f conftest.$ac_objext
6141 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
6142 (eval $ac_compile) 2>conftest.er1
6144 grep -v '^ *+' conftest.er1 >conftest.err
6146 cat conftest.err >&5
6147 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6148 (exit $ac_status); } &&
6149 { ac_try='test -z "$ac_c_werror_flag"
6150 || test ! -s conftest.err'
6151 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6154 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6155 (exit $ac_status); }; } &&
6156 { ac_try='test -s conftest.$ac_objext'
6157 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6160 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6161 (exit $ac_status); }; }; then
6162 eval gl_cv_type_${gltype}_suffix=\$glsuf
6164 echo "$as_me: failed program was:" >&5
6165 sed 's/^/| /' conftest.$ac_ext >&5
6168 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
6169 eval result=\$gl_cv_type_${gltype}_suffix
6170 test "$result" != no && break
6173 echo "$as_me:$LINENO: result: `eval echo '${'gl_cv_type_${gltype}_suffix'}'`" >&5
6174 echo "${ECHO_T}`eval echo '${'gl_cv_type_${gltype}_suffix'}'`" >&6
6175 GLTYPE=`echo $gltype | tr 'abcdefghijklmnopqrstuvwxyz ' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ_'`
6176 eval result=\$gl_cv_type_${gltype}_suffix
6177 test "$result" = no && result=
6178 eval ${GLTYPE}_SUFFIX=\$result
6179 cat >>confdefs.h <<_ACEOF
6180 #define ${GLTYPE}_SUFFIX $result
6196 echo "$as_me:$LINENO: checking whether <wchar.h> is standalone" >&5
6197 echo $ECHO_N "checking whether <wchar.h> is standalone... $ECHO_C" >&6
6198 if test "${gl_cv_header_wchar_h_standalone+set}" = set; then
6199 echo $ECHO_N "(cached) $ECHO_C" >&6
6201 cat >conftest.$ac_ext <<_ACEOF
6205 rm -f conftest.$ac_objext
6206 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
6207 (eval $ac_compile) 2>conftest.er1
6209 grep -v '^ *+' conftest.er1 >conftest.err
6211 cat conftest.err >&5
6212 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6213 (exit $ac_status); } &&
6214 { ac_try='test -z "$ac_c_werror_flag"
6215 || test ! -s conftest.err'
6216 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6219 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6220 (exit $ac_status); }; } &&
6221 { ac_try='test -s conftest.$ac_objext'
6222 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6225 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6226 (exit $ac_status); }; }; then
6227 gl_cv_header_wchar_h_standalone=yes
6229 echo "$as_me: failed program was:" >&5
6230 sed 's/^/| /' conftest.$ac_ext >&5
6232 gl_cv_header_wchar_h_standalone=no
6234 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
6236 echo "$as_me:$LINENO: result: $gl_cv_header_wchar_h_standalone" >&5
6237 echo "${ECHO_T}$gl_cv_header_wchar_h_standalone" >&6
6238 if test $gl_cv_header_wchar_h_standalone != yes; then
6249 if test $ac_cv_header_wchar_h = yes; then
6266 if test $gl_cv_have_include_next = yes; then
6267 gl_cv_next_wchar_h='<'wchar.h'>'
6269 echo "$as_me:$LINENO: checking absolute name of <wchar.h>" >&5
6270 echo $ECHO_N "checking absolute name of <wchar.h>... $ECHO_C" >&6
6271 if test "${gl_cv_next_wchar_h+set}" = set; then
6272 echo $ECHO_N "(cached) $ECHO_C" >&6
6275 if test $ac_cv_header_wchar_h = yes; then
6276 cat >conftest.$ac_ext <<_ACEOF
6279 cat confdefs.h >>conftest.$ac_ext
6280 cat >>conftest.$ac_ext <<_ACEOF
6281 /* end confdefs.h. */
6285 gl_cv_next_wchar_h='"'`(eval "$ac_cpp conftest.$ac_ext") 2>&5 |
6286 sed -n '\#/wchar.h#{
6287 s#.*"\(.*/wchar.h\)".*#\1#
6293 gl_cv_next_wchar_h='<'wchar.h'>'
6297 echo "$as_me:$LINENO: result: $gl_cv_next_wchar_h" >&5
6298 echo "${ECHO_T}$gl_cv_next_wchar_h" >&6
6300 NEXT_WCHAR_H=$gl_cv_next_wchar_h
6314 gl_source_base='tests'
6319 LIBGNU_LIBDEPS="$gl_libdeps"
6321 LIBGNU_LTLIBDEPS="$gl_ltlibdeps"
6325 # For Makefile dependencies.
6327 if test x"$STDINT_H" != x; then
6328 GNULIB_STDINT_H=gnulib/$STDINT_H
6334 cat >>confdefs.h <<_ACEOF
6335 #define PACKAGE "$PACKAGE"
6340 # GDB does not use automake, but gnulib does. This line lets us
6341 # generate its Makefile.in.
6342 am__api_version="1.9"
6343 # Find a good install program. We prefer a C program (faster),
6344 # so one script is as good as another. But avoid the broken or
6345 # incompatible versions:
6346 # SysV /etc/install, /usr/sbin/install
6347 # SunOS /usr/etc/install
6348 # IRIX /sbin/install
6350 # AmigaOS /C/install, which installs bootblocks on floppy discs
6351 # AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag
6352 # AFS /usr/afsws/bin/install, which mishandles nonexistent args
6353 # SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff"
6354 # OS/2's system install, which has a completely different semantic
6355 # ./install, which can be erroneously created by make from ./install.sh.
6356 echo "$as_me:$LINENO: checking for a BSD-compatible install" >&5
6357 echo $ECHO_N "checking for a BSD-compatible install... $ECHO_C" >&6
6358 if test -z "$INSTALL"; then
6359 if test "${ac_cv_path_install+set}" = set; then
6360 echo $ECHO_N "(cached) $ECHO_C" >&6
6362 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6366 test -z "$as_dir" && as_dir=.
6367 # Account for people who put trailing slashes in PATH elements.
6369 ./ | .// | /cC/* | \
6370 /etc/* | /usr/sbin/* | /usr/etc/* | /sbin/* | /usr/afsws/bin/* | \
6371 ?:\\/os2\\/install\\/* | ?:\\/OS2\\/INSTALL\\/* | \
6374 # OSF1 and SCO ODT 3.0 have their own names for install.
6375 # Don't use installbsd from OSF since it installs stuff as root
6377 for ac_prog in ginstall scoinst install; do
6378 for ac_exec_ext in '' $ac_executable_extensions; do
6379 if $as_executable_p "$as_dir/$ac_prog$ac_exec_ext"; then
6380 if test $ac_prog = install &&
6381 grep dspmsg "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
6382 # AIX install. It has an incompatible calling convention.
6384 elif test $ac_prog = install &&
6385 grep pwplus "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
6386 # program-specific install script used by HP pwplus--don't use.
6389 ac_cv_path_install="$as_dir/$ac_prog$ac_exec_ext -c"
6401 if test "${ac_cv_path_install+set}" = set; then
6402 INSTALL=$ac_cv_path_install
6404 # As a last resort, use the slow shell script. We don't cache a
6405 # path for INSTALL within a source directory, because that will
6406 # break other packages using the cache if that directory is
6407 # removed, or if the path is relative.
6408 INSTALL=$ac_install_sh
6411 echo "$as_me:$LINENO: result: $INSTALL" >&5
6412 echo "${ECHO_T}$INSTALL" >&6
6414 # Use test -z because SunOS4 sh mishandles braces in ${var-val}.
6415 # It thinks the first close brace ends the variable substitution.
6416 test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}'
6418 test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL}'
6420 test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644'
6422 echo "$as_me:$LINENO: checking whether build environment is sane" >&5
6423 echo $ECHO_N "checking whether build environment is sane... $ECHO_C" >&6
6426 echo timestamp > conftest.file
6427 # Do `set' in a subshell so we don't clobber the current shell's
6428 # arguments. Must try -L first in case configure is actually a
6429 # symlink; some systems play weird games with the mod time of symlinks
6430 # (eg FreeBSD returns the mod time of the symlink's containing
6433 set X `ls -Lt $srcdir/configure conftest.file 2> /dev/null`
6434 if test "$*" = "X"; then
6436 set X `ls -t $srcdir/configure conftest.file`
6439 if test "$*" != "X $srcdir/configure conftest.file" \
6440 && test "$*" != "X conftest.file $srcdir/configure"; then
6442 # If neither matched, then we have a broken ls. This can happen
6443 # if, for instance, CONFIG_SHELL is bash and it inherits a
6444 # broken ls alias from the environment. This has actually
6445 # happened. Such a system could not be considered "sane".
6446 { { echo "$as_me:$LINENO: error: ls -t appears to fail. Make sure there is not a broken
6447 alias in your environment" >&5
6448 echo "$as_me: error: ls -t appears to fail. Make sure there is not a broken
6449 alias in your environment" >&2;}
6450 { (exit 1); exit 1; }; }
6453 test "$2" = conftest.file
6459 { { echo "$as_me:$LINENO: error: newly created file is older than distributed files!
6460 Check your system clock" >&5
6461 echo "$as_me: error: newly created file is older than distributed files!
6462 Check your system clock" >&2;}
6463 { (exit 1); exit 1; }; }
6465 echo "$as_me:$LINENO: result: yes" >&5
6466 echo "${ECHO_T}yes" >&6
6467 test "$program_prefix" != NONE &&
6468 program_transform_name="s,^,$program_prefix,;$program_transform_name"
6469 # Use a double $ so make ignores it.
6470 test "$program_suffix" != NONE &&
6471 program_transform_name="s,\$,$program_suffix,;$program_transform_name"
6472 # Double any \ or $. echo might interpret backslashes.
6473 # By default was `s,x,x', remove it if useless.
6474 cat <<\_ACEOF >conftest.sed
6475 s/[\\$]/&&/g;s/;s,x,x,$//
6477 program_transform_name=`echo $program_transform_name | sed -f conftest.sed`
6480 # expand $ac_aux_dir to an absolute path
6481 am_aux_dir=`cd $ac_aux_dir && pwd`
6483 test x"${MISSING+set}" = xset || MISSING="\${SHELL} $am_aux_dir/missing"
6484 # Use eval to expand $SHELL
6485 if eval "$MISSING --run true"; then
6486 am_missing_run="$MISSING --run "
6489 { echo "$as_me:$LINENO: WARNING: \`missing' script is too old or missing" >&5
6490 echo "$as_me: WARNING: \`missing' script is too old or missing" >&2;}
6493 if mkdir -p --version . >/dev/null 2>&1 && test ! -d ./--version; then
6494 # We used to keeping the `.' as first argument, in order to
6495 # allow $(mkdir_p) to be used without argument. As in
6496 # $(mkdir_p) $(somedir)
6497 # where $(somedir) is conditionally defined. However this is wrong
6499 # 1. if the package is installed by a user who cannot write `.'
6500 # make install will fail,
6501 # 2. the above comment should most certainly read
6502 # $(mkdir_p) $(DESTDIR)$(somedir)
6503 # so it does not work when $(somedir) is undefined and
6504 # $(DESTDIR) is not.
6505 # To support the latter case, we have to write
6506 # test -z "$(somedir)" || $(mkdir_p) $(DESTDIR)$(somedir),
6507 # so the `.' trick is pointless.
6508 mkdir_p='mkdir -p --'
6510 # On NextStep and OpenStep, the `mkdir' command does not
6511 # recognize any option. It will interpret all options as
6512 # directories to create, and then abort because `.' already
6514 for d in ./-p ./--version;
6516 test -d $d && rmdir $d
6518 # $(mkinstalldirs) is defined by Automake if mkinstalldirs exists.
6519 if test -f "$ac_aux_dir/mkinstalldirs"; then
6520 mkdir_p='$(mkinstalldirs)'
6522 mkdir_p='$(install_sh) -d'
6526 for ac_prog in gawk mawk nawk awk
6528 # Extract the first word of "$ac_prog", so it can be a program name with args.
6529 set dummy $ac_prog; ac_word=$2
6530 echo "$as_me:$LINENO: checking for $ac_word" >&5
6531 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
6532 if test "${ac_cv_prog_AWK+set}" = set; then
6533 echo $ECHO_N "(cached) $ECHO_C" >&6
6535 if test -n "$AWK"; then
6536 ac_cv_prog_AWK="$AWK" # Let the user override the test.
6538 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6542 test -z "$as_dir" && as_dir=.
6543 for ac_exec_ext in '' $ac_executable_extensions; do
6544 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
6545 ac_cv_prog_AWK="$ac_prog"
6546 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6555 if test -n "$AWK"; then
6556 echo "$as_me:$LINENO: result: $AWK" >&5
6557 echo "${ECHO_T}$AWK" >&6
6559 echo "$as_me:$LINENO: result: no" >&5
6560 echo "${ECHO_T}no" >&6
6563 test -n "$AWK" && break
6566 echo "$as_me:$LINENO: checking whether ${MAKE-make} sets \$(MAKE)" >&5
6567 echo $ECHO_N "checking whether ${MAKE-make} sets \$(MAKE)... $ECHO_C" >&6
6568 set dummy ${MAKE-make}; ac_make=`echo "$2" | sed 'y,:./+-,___p_,'`
6569 if eval "test \"\${ac_cv_prog_make_${ac_make}_set+set}\" = set"; then
6570 echo $ECHO_N "(cached) $ECHO_C" >&6
6572 cat >conftest.make <<\_ACEOF
6574 @echo 'ac_maketemp="$(MAKE)"'
6576 # GNU make sometimes prints "make[1]: Entering...", which would confuse us.
6577 eval `${MAKE-make} -f conftest.make 2>/dev/null | grep temp=`
6578 if test -n "$ac_maketemp"; then
6579 eval ac_cv_prog_make_${ac_make}_set=yes
6581 eval ac_cv_prog_make_${ac_make}_set=no
6585 if eval "test \"`echo '$ac_cv_prog_make_'${ac_make}_set`\" = yes"; then
6586 echo "$as_me:$LINENO: result: yes" >&5
6587 echo "${ECHO_T}yes" >&6
6590 echo "$as_me:$LINENO: result: no" >&5
6591 echo "${ECHO_T}no" >&6
6592 SET_MAKE="MAKE=${MAKE-make}"
6595 rm -rf .tst 2>/dev/null
6596 mkdir .tst 2>/dev/null
6597 if test -d .tst; then
6602 rmdir .tst 2>/dev/null
6604 DEPDIR="${am__leading_dot}deps"
6606 ac_config_commands="$ac_config_commands depfiles"
6609 am_make=${MAKE-make}
6610 cat > confinc << 'END'
6615 # If we don't find an include directive, just comment out the code.
6616 echo "$as_me:$LINENO: checking for style of include used by $am_make" >&5
6617 echo $ECHO_N "checking for style of include used by $am_make... $ECHO_C" >&6
6621 # First try GNU make style include.
6622 echo "include confinc" > confmf
6623 # We grep out `Entering directory' and `Leaving directory'
6624 # messages which can occur if `w' ends up in MAKEFLAGS.
6625 # In particular we don't look at `^make:' because GNU make might
6626 # be invoked under some other name (usually "gmake"), in which
6627 # case it prints its new name instead of `make'.
6628 if test "`$am_make -s -f confmf 2> /dev/null | grep -v 'ing directory'`" = "done"; then
6633 # Now try BSD make style include.
6634 if test "$am__include" = "#"; then
6635 echo '.include "confinc"' > confmf
6636 if test "`$am_make -s -f confmf 2> /dev/null`" = "done"; then
6637 am__include=.include
6644 echo "$as_me:$LINENO: result: $_am_result" >&5
6645 echo "${ECHO_T}$_am_result" >&6
6646 rm -f confinc confmf
6648 # Check whether --enable-dependency-tracking or --disable-dependency-tracking was given.
6649 if test "${enable_dependency_tracking+set}" = set; then
6650 enableval="$enable_dependency_tracking"
6653 if test "x$enable_dependency_tracking" != xno; then
6654 am_depcomp="$ac_aux_dir/depcomp"
6659 if test "x$enable_dependency_tracking" != xno; then
6669 # test to see if srcdir already configured
6670 if test "`cd $srcdir && pwd`" != "`pwd`" &&
6671 test -f $srcdir/config.status; then
6672 { { echo "$as_me:$LINENO: error: source directory already configured; run \"make distclean\" there first" >&5
6673 echo "$as_me: error: source directory already configured; run \"make distclean\" there first" >&2;}
6674 { (exit 1); exit 1; }; }
6677 # test whether we have cygpath
6678 if test -z "$CYGPATH_W"; then
6679 if (cygpath --version) >/dev/null 2>/dev/null; then
6680 CYGPATH_W='cygpath -w'
6687 # Define the identity of the package.
6689 VERSION=UNUSED-VERSION
6692 # Some tools Automake needs.
6694 ACLOCAL=${ACLOCAL-"${am_missing_run}aclocal-${am__api_version}"}
6697 AUTOCONF=${AUTOCONF-"${am_missing_run}autoconf"}
6700 AUTOMAKE=${AUTOMAKE-"${am_missing_run}automake-${am__api_version}"}
6703 AUTOHEADER=${AUTOHEADER-"${am_missing_run}autoheader"}
6706 MAKEINFO=${MAKEINFO-"${am_missing_run}makeinfo"}
6708 install_sh=${install_sh-"$am_aux_dir/install-sh"}
6710 # Installed binaries are usually stripped using `strip' when the user
6711 # run `make install-strip'. However `strip' might not be the right
6712 # tool to use in cross-compilation environments, therefore Automake
6713 # will honor the `STRIP' environment variable to overrule this program.
6714 if test "$cross_compiling" != no; then
6715 if test -n "$ac_tool_prefix"; then
6716 # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args.
6717 set dummy ${ac_tool_prefix}strip; ac_word=$2
6718 echo "$as_me:$LINENO: checking for $ac_word" >&5
6719 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
6720 if test "${ac_cv_prog_STRIP+set}" = set; then
6721 echo $ECHO_N "(cached) $ECHO_C" >&6
6723 if test -n "$STRIP"; then
6724 ac_cv_prog_STRIP="$STRIP" # Let the user override the test.
6726 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6730 test -z "$as_dir" && as_dir=.
6731 for ac_exec_ext in '' $ac_executable_extensions; do
6732 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
6733 ac_cv_prog_STRIP="${ac_tool_prefix}strip"
6734 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6742 STRIP=$ac_cv_prog_STRIP
6743 if test -n "$STRIP"; then
6744 echo "$as_me:$LINENO: result: $STRIP" >&5
6745 echo "${ECHO_T}$STRIP" >&6
6747 echo "$as_me:$LINENO: result: no" >&5
6748 echo "${ECHO_T}no" >&6
6752 if test -z "$ac_cv_prog_STRIP"; then
6754 # Extract the first word of "strip", so it can be a program name with args.
6755 set dummy strip; ac_word=$2
6756 echo "$as_me:$LINENO: checking for $ac_word" >&5
6757 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
6758 if test "${ac_cv_prog_ac_ct_STRIP+set}" = set; then
6759 echo $ECHO_N "(cached) $ECHO_C" >&6
6761 if test -n "$ac_ct_STRIP"; then
6762 ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test.
6764 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6768 test -z "$as_dir" && as_dir=.
6769 for ac_exec_ext in '' $ac_executable_extensions; do
6770 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
6771 ac_cv_prog_ac_ct_STRIP="strip"
6772 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6778 test -z "$ac_cv_prog_ac_ct_STRIP" && ac_cv_prog_ac_ct_STRIP=":"
6781 ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP
6782 if test -n "$ac_ct_STRIP"; then
6783 echo "$as_me:$LINENO: result: $ac_ct_STRIP" >&5
6784 echo "${ECHO_T}$ac_ct_STRIP" >&6
6786 echo "$as_me:$LINENO: result: no" >&5
6787 echo "${ECHO_T}no" >&6
6792 STRIP="$ac_cv_prog_STRIP"
6796 INSTALL_STRIP_PROGRAM="\${SHELL} \$(install_sh) -c -s"
6798 # We need awk for the "check" target. The system "awk" is bad on
6800 # Always define AMTAR for backward compatibility.
6802 AMTAR=${AMTAR-"${am_missing_run}tar"}
6804 am__tar='${AMTAR} chof - "$$tardir"'; am__untar='${AMTAR} xf -'
6809 depcc="$CC" am_compiler_list=
6811 echo "$as_me:$LINENO: checking dependency style of $depcc" >&5
6812 echo $ECHO_N "checking dependency style of $depcc... $ECHO_C" >&6
6813 if test "${am_cv_CC_dependencies_compiler_type+set}" = set; then
6814 echo $ECHO_N "(cached) $ECHO_C" >&6
6816 if test -z "$AMDEP_TRUE" && test -f "$am_depcomp"; then
6817 # We make a subdir and do the tests there. Otherwise we can end up
6818 # making bogus files that we don't know about and never remove. For
6819 # instance it was reported that on HP-UX the gcc test will end up
6820 # making a dummy file named `D' -- because `-MD' means `put the output
6823 # Copy depcomp to subdir because otherwise we won't find it if we're
6824 # using a relative directory.
6825 cp "$am_depcomp" conftest.dir
6827 # We will build objects and dependencies in a subdirectory because
6828 # it helps to detect inapplicable dependency modes. For instance
6829 # both Tru64's cc and ICC support -MD to output dependencies as a
6830 # side effect of compilation, but ICC will put the dependencies in
6831 # the current directory while Tru64 will put them in the object
6835 am_cv_CC_dependencies_compiler_type=none
6836 if test "$am_compiler_list" = ""; then
6837 am_compiler_list=`sed -n 's/^#*\([a-zA-Z0-9]*\))$/\1/p' < ./depcomp`
6839 for depmode in $am_compiler_list; do
6840 # Setup a source with many dependencies, because some compilers
6841 # like to wrap large dependency lists on column 80 (with \), and
6842 # we should not choose a depcomp mode which is confused by this.
6844 # We need to recreate these files for each test, as the compiler may
6845 # overwrite some of them when testing with obscure command lines.
6846 # This happens at least with the AIX C compiler.
6848 for i in 1 2 3 4 5 6; do
6849 echo '#include "conftst'$i'.h"' >> sub/conftest.c
6850 # Using `: > sub/conftst$i.h' creates only sub/conftst1.h with
6851 # Solaris 8's {/usr,}/bin/sh.
6852 touch sub/conftst$i.h
6854 echo "${am__include} ${am__quote}sub/conftest.Po${am__quote}" > confmf
6858 # after this tag, mechanisms are not by side-effect, so they'll
6859 # only be used when explicitly requested
6860 if test "x$enable_dependency_tracking" = xyes; then
6868 # We check with `-c' and `-o' for the sake of the "dashmstdout"
6869 # mode. It turns out that the SunPro C++ compiler does not properly
6870 # handle `-M -o', and we need to detect this.
6871 if depmode=$depmode \
6872 source=sub/conftest.c object=sub/conftest.${OBJEXT-o} \
6873 depfile=sub/conftest.Po tmpdepfile=sub/conftest.TPo \
6874 $SHELL ./depcomp $depcc -c -o sub/conftest.${OBJEXT-o} sub/conftest.c \
6875 >/dev/null 2>conftest.err &&
6876 grep sub/conftst6.h sub/conftest.Po > /dev/null 2>&1 &&
6877 grep sub/conftest.${OBJEXT-o} sub/conftest.Po > /dev/null 2>&1 &&
6878 ${MAKE-make} -s -f confmf > /dev/null 2>&1; then
6879 # icc doesn't choke on unknown options, it will just issue warnings
6880 # or remarks (even with -Werror). So we grep stderr for any message
6881 # that says an option was ignored or not supported.
6882 # When given -MP, icc 7.0 and 7.1 complain thusly:
6883 # icc: Command line warning: ignoring option '-M'; no argument required
6884 # The diagnosis changed in icc 8.0:
6885 # icc: Command line remark: option '-MP' not supported
6886 if (grep 'ignoring option' conftest.err ||
6887 grep 'not supported' conftest.err) >/dev/null 2>&1; then :; else
6888 am_cv_CC_dependencies_compiler_type=$depmode
6897 am_cv_CC_dependencies_compiler_type=none
6901 echo "$as_me:$LINENO: result: $am_cv_CC_dependencies_compiler_type" >&5
6902 echo "${ECHO_T}$am_cv_CC_dependencies_compiler_type" >&6
6903 CCDEPMODE=depmode=$am_cv_CC_dependencies_compiler_type
6908 test "x$enable_dependency_tracking" != xno \
6909 && test "$am_cv_CC_dependencies_compiler_type" = gcc3; then
6911 am__fastdepCC_FALSE='#'
6913 am__fastdepCC_TRUE='#'
6914 am__fastdepCC_FALSE=
6920 debugdir=${libdir}/debug
6923 # Check whether --with-separate-debug-dir or --without-separate-debug-dir was given.
6924 if test "${with_separate_debug_dir+set}" = set; then
6925 withval="$with_separate_debug_dir"
6926 debugdir="${withval}"
6930 test "x$prefix" = xNONE && prefix="$ac_default_prefix"
6931 test "x$exec_prefix" = xNONE && exec_prefix='${prefix}'
6932 ac_define_dir=`eval echo $debugdir`
6933 ac_define_dir=`eval echo $ac_define_dir`
6935 cat >>confdefs.h <<_ACEOF
6936 #define DEBUGDIR "$ac_define_dir"
6940 #AC_DEFINE_UNQUOTED(DEBUGDIR, "$debugdir"),
6942 if test "x$exec_prefix" = xNONE || test "x$exec_prefix" = 'x${prefix}'; then
6943 if test "x$prefix" = xNONE; then
6944 test_prefix=/usr/local
6949 test_prefix=$exec_prefix
6952 "${test_prefix}"|"${test_prefix}/"*|\
6953 '${exec_prefix}'|'${exec_prefix}/'*)
6955 cat >>confdefs.h <<\_ACEOF
6956 #define DEBUGDIR_RELOCATABLE 1
6964 subdirs="$subdirs doc testsuite"
6967 # Check whether to support alternative target configurations
6968 # Check whether --enable-targets or --disable-targets was given.
6969 if test "${enable_targets+set}" = set; then
6970 enableval="$enable_targets"
6971 case "${enableval}" in
6972 yes | "") { { echo "$as_me:$LINENO: error: enable-targets option must specify target names or 'all'" >&5
6973 echo "$as_me: error: enable-targets option must specify target names or 'all'" >&2;}
6974 { (exit 1); exit 1; }; }
6976 no) enable_targets= ;;
6977 *) enable_targets=$enableval ;;
6981 # Check whether to enable 64-bit support on 32-bit hosts
6982 # Check whether --enable-64-bit-bfd or --disable-64-bit-bfd was given.
6983 if test "${enable_64_bit_bfd+set}" = set; then
6984 enableval="$enable_64_bit_bfd"
6985 case "${enableval}" in
6988 *) { { echo "$as_me:$LINENO: error: bad value ${enableval} for 64-bit-bfd option" >&5
6989 echo "$as_me: error: bad value ${enableval} for 64-bit-bfd option" >&2;}
6990 { (exit 1); exit 1; }; } ;;
6995 # Provide defaults for some variables set by the per-host and per-target
6997 gdb_host_obs=posix-hdep.o
6999 if test "${target}" = "${host}"; then
7005 . $srcdir/configure.host
7007 # Accumulate some settings from configure.tgt over all enabled targets
7012 for targ_alias in `echo $target_alias $enable_targets | sed 's/,/ /g'`
7014 if test "$targ_alias" = "all"; then
7017 # Canonicalize the secondary target names.
7018 result=`$ac_config_sub $targ_alias 2>/dev/null`
7019 if test -n "$result"; then
7025 . ${srcdir}/configure.tgt
7027 # Target-specific object files
7028 for i in ${gdb_target_obs}; do
7029 case " $TARGET_OBS " in
7032 TARGET_OBS="$TARGET_OBS ${i}"
7037 # Check whether this target needs 64-bit CORE_ADDR
7038 if test x${want64} = xfalse; then
7039 . ${srcdir}/../bfd/config.bfd
7044 if test x${all_targets} = xtrue; then
7046 # We want all 64-bit targets if we either:
7047 # - run on a 64-bit host or
7048 # - already require 64-bit support for some other target or
7049 # - the --enable-64-bit-bfd option was supplied
7050 # Otherwise we only support all 32-bit targets.
7052 # NOTE: This test must be in sync with the corresponding
7055 if test x${want64} = xfalse; then
7056 echo "$as_me:$LINENO: checking for long" >&5
7057 echo $ECHO_N "checking for long... $ECHO_C" >&6
7058 if test "${ac_cv_type_long+set}" = set; then
7059 echo $ECHO_N "(cached) $ECHO_C" >&6
7061 cat >conftest.$ac_ext <<_ACEOF
7064 cat confdefs.h >>conftest.$ac_ext
7065 cat >>conftest.$ac_ext <<_ACEOF
7066 /* end confdefs.h. */
7067 $ac_includes_default
7079 rm -f conftest.$ac_objext
7080 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
7081 (eval $ac_compile) 2>conftest.er1
7083 grep -v '^ *+' conftest.er1 >conftest.err
7085 cat conftest.err >&5
7086 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7087 (exit $ac_status); } &&
7088 { ac_try='test -z "$ac_c_werror_flag"
7089 || test ! -s conftest.err'
7090 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7093 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7094 (exit $ac_status); }; } &&
7095 { ac_try='test -s conftest.$ac_objext'
7096 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7099 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7100 (exit $ac_status); }; }; then
7103 echo "$as_me: failed program was:" >&5
7104 sed 's/^/| /' conftest.$ac_ext >&5
7108 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
7110 echo "$as_me:$LINENO: result: $ac_cv_type_long" >&5
7111 echo "${ECHO_T}$ac_cv_type_long" >&6
7113 echo "$as_me:$LINENO: checking size of long" >&5
7114 echo $ECHO_N "checking size of long... $ECHO_C" >&6
7115 if test "${ac_cv_sizeof_long+set}" = set; then
7116 echo $ECHO_N "(cached) $ECHO_C" >&6
7118 if test "$ac_cv_type_long" = yes; then
7119 # The cast to unsigned long works around a bug in the HP C Compiler
7120 # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
7121 # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
7122 # This bug is HP SR number 8606223364.
7123 if test "$cross_compiling" = yes; then
7124 # Depending upon the size, compute the lo and hi bounds.
7125 cat >conftest.$ac_ext <<_ACEOF
7128 cat confdefs.h >>conftest.$ac_ext
7129 cat >>conftest.$ac_ext <<_ACEOF
7130 /* end confdefs.h. */
7131 $ac_includes_default
7135 static int test_array [1 - 2 * !(((long) (sizeof (long))) >= 0)];
7142 rm -f conftest.$ac_objext
7143 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
7144 (eval $ac_compile) 2>conftest.er1
7146 grep -v '^ *+' conftest.er1 >conftest.err
7148 cat conftest.err >&5
7149 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7150 (exit $ac_status); } &&
7151 { ac_try='test -z "$ac_c_werror_flag"
7152 || test ! -s conftest.err'
7153 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7156 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7157 (exit $ac_status); }; } &&
7158 { ac_try='test -s conftest.$ac_objext'
7159 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7162 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7163 (exit $ac_status); }; }; then
7166 cat >conftest.$ac_ext <<_ACEOF
7169 cat confdefs.h >>conftest.$ac_ext
7170 cat >>conftest.$ac_ext <<_ACEOF
7171 /* end confdefs.h. */
7172 $ac_includes_default
7176 static int test_array [1 - 2 * !(((long) (sizeof (long))) <= $ac_mid)];
7183 rm -f conftest.$ac_objext
7184 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
7185 (eval $ac_compile) 2>conftest.er1
7187 grep -v '^ *+' conftest.er1 >conftest.err
7189 cat conftest.err >&5
7190 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7191 (exit $ac_status); } &&
7192 { ac_try='test -z "$ac_c_werror_flag"
7193 || test ! -s conftest.err'
7194 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7197 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7198 (exit $ac_status); }; } &&
7199 { ac_try='test -s conftest.$ac_objext'
7200 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7203 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7204 (exit $ac_status); }; }; then
7205 ac_hi=$ac_mid; break
7207 echo "$as_me: failed program was:" >&5
7208 sed 's/^/| /' conftest.$ac_ext >&5
7210 ac_lo=`expr $ac_mid + 1`
7211 if test $ac_lo -le $ac_mid; then
7215 ac_mid=`expr 2 '*' $ac_mid + 1`
7217 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
7220 echo "$as_me: failed program was:" >&5
7221 sed 's/^/| /' conftest.$ac_ext >&5
7223 cat >conftest.$ac_ext <<_ACEOF
7226 cat confdefs.h >>conftest.$ac_ext
7227 cat >>conftest.$ac_ext <<_ACEOF
7228 /* end confdefs.h. */
7229 $ac_includes_default
7233 static int test_array [1 - 2 * !(((long) (sizeof (long))) < 0)];
7240 rm -f conftest.$ac_objext
7241 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
7242 (eval $ac_compile) 2>conftest.er1
7244 grep -v '^ *+' conftest.er1 >conftest.err
7246 cat conftest.err >&5
7247 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7248 (exit $ac_status); } &&
7249 { ac_try='test -z "$ac_c_werror_flag"
7250 || test ! -s conftest.err'
7251 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7254 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7255 (exit $ac_status); }; } &&
7256 { ac_try='test -s conftest.$ac_objext'
7257 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7260 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7261 (exit $ac_status); }; }; then
7264 cat >conftest.$ac_ext <<_ACEOF
7267 cat confdefs.h >>conftest.$ac_ext
7268 cat >>conftest.$ac_ext <<_ACEOF
7269 /* end confdefs.h. */
7270 $ac_includes_default
7274 static int test_array [1 - 2 * !(((long) (sizeof (long))) >= $ac_mid)];
7281 rm -f conftest.$ac_objext
7282 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
7283 (eval $ac_compile) 2>conftest.er1
7285 grep -v '^ *+' conftest.er1 >conftest.err
7287 cat conftest.err >&5
7288 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7289 (exit $ac_status); } &&
7290 { ac_try='test -z "$ac_c_werror_flag"
7291 || test ! -s conftest.err'
7292 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7295 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7296 (exit $ac_status); }; } &&
7297 { ac_try='test -s conftest.$ac_objext'
7298 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7301 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7302 (exit $ac_status); }; }; then
7303 ac_lo=$ac_mid; break
7305 echo "$as_me: failed program was:" >&5
7306 sed 's/^/| /' conftest.$ac_ext >&5
7308 ac_hi=`expr '(' $ac_mid ')' - 1`
7309 if test $ac_mid -le $ac_hi; then
7313 ac_mid=`expr 2 '*' $ac_mid`
7315 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
7318 echo "$as_me: failed program was:" >&5
7319 sed 's/^/| /' conftest.$ac_ext >&5
7323 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
7325 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
7326 # Binary search between lo and hi bounds.
7327 while test "x$ac_lo" != "x$ac_hi"; do
7328 ac_mid=`expr '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo`
7329 cat >conftest.$ac_ext <<_ACEOF
7332 cat confdefs.h >>conftest.$ac_ext
7333 cat >>conftest.$ac_ext <<_ACEOF
7334 /* end confdefs.h. */
7335 $ac_includes_default
7339 static int test_array [1 - 2 * !(((long) (sizeof (long))) <= $ac_mid)];
7346 rm -f conftest.$ac_objext
7347 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
7348 (eval $ac_compile) 2>conftest.er1
7350 grep -v '^ *+' conftest.er1 >conftest.err
7352 cat conftest.err >&5
7353 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7354 (exit $ac_status); } &&
7355 { ac_try='test -z "$ac_c_werror_flag"
7356 || test ! -s conftest.err'
7357 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7360 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7361 (exit $ac_status); }; } &&
7362 { ac_try='test -s conftest.$ac_objext'
7363 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7366 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7367 (exit $ac_status); }; }; then
7370 echo "$as_me: failed program was:" >&5
7371 sed 's/^/| /' conftest.$ac_ext >&5
7373 ac_lo=`expr '(' $ac_mid ')' + 1`
7375 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
7378 ?*) ac_cv_sizeof_long=$ac_lo;;
7379 '') { { echo "$as_me:$LINENO: error: in \`$ac_pwd':" >&5
7380 echo "$as_me: error: in \`$ac_pwd':" >&2;}
7381 { { echo "$as_me:$LINENO: error: cannot compute sizeof (long), 77
7382 See \`config.log' for more details." >&5
7383 echo "$as_me: error: cannot compute sizeof (long), 77
7384 See \`config.log' for more details." >&2;}
7385 { (exit 1); exit 1; }; }; } ;;
7388 if test "$cross_compiling" = yes; then
7389 { { echo "$as_me:$LINENO: error: in \`$ac_pwd':" >&5
7390 echo "$as_me: error: in \`$ac_pwd':" >&2;}
7391 { { echo "$as_me:$LINENO: error: cannot run test program while cross compiling
7392 See \`config.log' for more details." >&5
7393 echo "$as_me: error: cannot run test program while cross compiling
7394 See \`config.log' for more details." >&2;}
7395 { (exit 1); exit 1; }; }; }
7397 cat >conftest.$ac_ext <<_ACEOF
7400 cat confdefs.h >>conftest.$ac_ext
7401 cat >>conftest.$ac_ext <<_ACEOF
7402 /* end confdefs.h. */
7403 $ac_includes_default
7404 long longval () { return (long) (sizeof (long)); }
7405 unsigned long ulongval () { return (long) (sizeof (long)); }
7412 FILE *f = fopen ("conftest.val", "w");
7415 if (((long) (sizeof (long))) < 0)
7417 long i = longval ();
7418 if (i != ((long) (sizeof (long))))
7420 fprintf (f, "%ld\n", i);
7424 unsigned long i = ulongval ();
7425 if (i != ((long) (sizeof (long))))
7427 fprintf (f, "%lu\n", i);
7429 exit (ferror (f) || fclose (f) != 0);
7435 rm -f conftest$ac_exeext
7436 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
7437 (eval $ac_link) 2>&5
7439 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7440 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
7441 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7444 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7445 (exit $ac_status); }; }; then
7446 ac_cv_sizeof_long=`cat conftest.val`
7448 echo "$as_me: program exited with status $ac_status" >&5
7449 echo "$as_me: failed program was:" >&5
7450 sed 's/^/| /' conftest.$ac_ext >&5
7453 { { echo "$as_me:$LINENO: error: in \`$ac_pwd':" >&5
7454 echo "$as_me: error: in \`$ac_pwd':" >&2;}
7455 { { echo "$as_me:$LINENO: error: cannot compute sizeof (long), 77
7456 See \`config.log' for more details." >&5
7457 echo "$as_me: error: cannot compute sizeof (long), 77
7458 See \`config.log' for more details." >&2;}
7459 { (exit 1); exit 1; }; }; }
7461 rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
7469 echo "$as_me:$LINENO: result: $ac_cv_sizeof_long" >&5
7470 echo "${ECHO_T}$ac_cv_sizeof_long" >&6
7471 cat >>confdefs.h <<_ACEOF
7472 #define SIZEOF_LONG $ac_cv_sizeof_long
7476 if test "x${ac_cv_sizeof_long}" = "x8"; then
7480 if test x${want64} = xtrue; then
7481 TARGET_OBS='$(ALL_TARGET_OBS) $(ALL_64_TARGET_OBS)'
7483 TARGET_OBS='$(ALL_TARGET_OBS)'
7489 # For other settings, only the main target counts.
7493 targ=$target; . ${srcdir}/configure.tgt
7495 # Fetch the default architecture and default target vector from BFD.
7496 targ=$target; . $srcdir/../bfd/config.bfd
7498 # We only want the first architecture, so strip off the others if
7499 # there is more than one.
7500 targ_archs=`echo $targ_archs | sed 's/ .*//'`
7502 if test "x$targ_archs" != x; then
7504 cat >>confdefs.h <<_ACEOF
7505 #define DEFAULT_BFD_ARCH $targ_archs
7509 if test "x$targ_defvec" != x; then
7511 cat >>confdefs.h <<_ACEOF
7512 #define DEFAULT_BFD_VEC $targ_defvec
7517 # The CLI cannot be disabled yet, but may be in the future.
7520 # Check whether --enable-gdbcli or --disable-gdbcli was given.
7521 if test "${enable_gdbcli+set}" = set; then
7522 enableval="$enable_gdbcli"
7527 { { echo "$as_me:$LINENO: error: the command-line interface cannot be disabled yet" >&5
7528 echo "$as_me: error: the command-line interface cannot be disabled yet" >&2;}
7529 { (exit 1); exit 1; }; } ;;
7531 { { echo "$as_me:$LINENO: error: bad value $enableval for --enable-gdbcli" >&5
7532 echo "$as_me: error: bad value $enableval for --enable-gdbcli" >&2;}
7533 { (exit 1); exit 1; }; } ;;
7538 if test x"$enable_gdbcli" = xyes; then
7539 if test -d $srcdir/cli; then
7540 CONFIG_OBS="$CONFIG_OBS \$(SUBDIR_CLI_OBS)"
7541 CONFIG_DEPS="$CONFIG_DEPS \$(SUBDIR_CLI_DEPS)"
7542 CONFIG_SRCS="$CONFIG_SRCS \$(SUBDIR_CLI_SRCS)"
7543 ENABLE_CFLAGS="$ENABLE_CFLAGS \$(SUBDIR_CLI_CFLAGS)"
7548 # Check whether --enable-gdbmi or --disable-gdbmi was given.
7549 if test "${enable_gdbmi+set}" = set; then
7550 enableval="$enable_gdbmi"
7555 { { echo "$as_me:$LINENO: error: bad value $enableval for --enable-gdbmi" >&5
7556 echo "$as_me: error: bad value $enableval for --enable-gdbmi" >&2;}
7557 { (exit 1); exit 1; }; } ;;
7562 if test x"$enable_gdbmi" = xyes; then
7563 if test -d $srcdir/mi; then
7564 CONFIG_OBS="$CONFIG_OBS \$(SUBDIR_MI_OBS)"
7565 CONFIG_DEPS="$CONFIG_DEPS \$(SUBDIR_MI_DEPS)"
7566 CONFIG_SRCS="$CONFIG_SRCS \$(SUBDIR_MI_SRCS)"
7567 ENABLE_CFLAGS="$ENABLE_CFLAGS \$(SUBDIR_MI_CFLAGS)"
7572 # Check whether --enable-tui or --disable-tui was given.
7573 if test "${enable_tui+set}" = set; then
7574 enableval="$enable_tui"
7579 { { echo "$as_me:$LINENO: error: bad value $enableval for --enable-tui" >&5
7580 echo "$as_me: error: bad value $enableval for --enable-tui" >&2;}
7581 { (exit 1); exit 1; }; } ;;
7588 # Check whether --enable-gdbtk or --disable-gdbtk was given.
7589 if test "${enable_gdbtk+set}" = set; then
7590 enableval="$enable_gdbtk"
7595 { { echo "$as_me:$LINENO: error: bad value $enableval for --enable-gdbtk" >&5
7596 echo "$as_me: error: bad value $enableval for --enable-gdbtk" >&2;}
7597 { (exit 1); exit 1; }; } ;;
7600 if test -d $srcdir/gdbtk -a -d $srcdir/../itcl; then
7606 # We unconditionally disable gdbtk tests on selected platforms.
7609 { echo "$as_me:$LINENO: WARNING: gdbtk isn't supported on $host; disabling" >&5
7610 echo "$as_me: WARNING: gdbtk isn't supported on $host; disabling" >&2;}
7614 # Libunwind support.
7616 # Check whether --with-libunwind or --without-libunwind was given.
7617 if test "${with_libunwind+set}" = set; then
7618 withval="$with_libunwind"
7619 case "${withval}" in
7620 yes) enable_libunwind=yes ;;
7621 no) enable_libunwind=no ;;
7622 *) { { echo "$as_me:$LINENO: error: bad value ${withval} for GDB with-libunwind option" >&5
7623 echo "$as_me: error: bad value ${withval} for GDB with-libunwind option" >&2;}
7624 { (exit 1); exit 1; }; } ;;
7629 for ac_header in libunwind.h
7631 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
7632 if eval "test \"\${$as_ac_Header+set}\" = set"; then
7633 echo "$as_me:$LINENO: checking for $ac_header" >&5
7634 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
7635 if eval "test \"\${$as_ac_Header+set}\" = set"; then
7636 echo $ECHO_N "(cached) $ECHO_C" >&6
7638 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
7639 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
7641 # Is the header compilable?
7642 echo "$as_me:$LINENO: checking $ac_header usability" >&5
7643 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
7644 cat >conftest.$ac_ext <<_ACEOF
7647 cat confdefs.h >>conftest.$ac_ext
7648 cat >>conftest.$ac_ext <<_ACEOF
7649 /* end confdefs.h. */
7650 $ac_includes_default
7651 #include <$ac_header>
7653 rm -f conftest.$ac_objext
7654 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
7655 (eval $ac_compile) 2>conftest.er1
7657 grep -v '^ *+' conftest.er1 >conftest.err
7659 cat conftest.err >&5
7660 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7661 (exit $ac_status); } &&
7662 { ac_try='test -z "$ac_c_werror_flag"
7663 || test ! -s conftest.err'
7664 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7667 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7668 (exit $ac_status); }; } &&
7669 { ac_try='test -s conftest.$ac_objext'
7670 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7673 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7674 (exit $ac_status); }; }; then
7675 ac_header_compiler=yes
7677 echo "$as_me: failed program was:" >&5
7678 sed 's/^/| /' conftest.$ac_ext >&5
7680 ac_header_compiler=no
7682 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
7683 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
7684 echo "${ECHO_T}$ac_header_compiler" >&6
7686 # Is the header present?
7687 echo "$as_me:$LINENO: checking $ac_header presence" >&5
7688 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
7689 cat >conftest.$ac_ext <<_ACEOF
7692 cat confdefs.h >>conftest.$ac_ext
7693 cat >>conftest.$ac_ext <<_ACEOF
7694 /* end confdefs.h. */
7695 #include <$ac_header>
7697 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
7698 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
7700 grep -v '^ *+' conftest.er1 >conftest.err
7702 cat conftest.err >&5
7703 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7704 (exit $ac_status); } >/dev/null; then
7705 if test -s conftest.err; then
7706 ac_cpp_err=$ac_c_preproc_warn_flag
7707 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
7714 if test -z "$ac_cpp_err"; then
7715 ac_header_preproc=yes
7717 echo "$as_me: failed program was:" >&5
7718 sed 's/^/| /' conftest.$ac_ext >&5
7720 ac_header_preproc=no
7722 rm -f conftest.err conftest.$ac_ext
7723 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
7724 echo "${ECHO_T}$ac_header_preproc" >&6
7726 # So? What about this header?
7727 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
7729 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
7730 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
7731 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
7732 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
7733 ac_header_preproc=yes
7736 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
7737 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
7738 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
7739 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
7740 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
7741 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
7742 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
7743 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
7744 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
7745 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
7746 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
7747 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
7750 ## ------------------------------------------ ##
7751 ## Report this to the AC_PACKAGE_NAME lists. ##
7752 ## ------------------------------------------ ##
7755 sed "s/^/$as_me: WARNING: /" >&2
7758 echo "$as_me:$LINENO: checking for $ac_header" >&5
7759 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
7760 if eval "test \"\${$as_ac_Header+set}\" = set"; then
7761 echo $ECHO_N "(cached) $ECHO_C" >&6
7763 eval "$as_ac_Header=\$ac_header_preproc"
7765 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
7766 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
7769 if test `eval echo '${'$as_ac_Header'}'` = yes; then
7770 cat >>confdefs.h <<_ACEOF
7771 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
7779 for ac_header in libunwind-ia64.h
7781 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
7782 if eval "test \"\${$as_ac_Header+set}\" = set"; then
7783 echo "$as_me:$LINENO: checking for $ac_header" >&5
7784 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
7785 if eval "test \"\${$as_ac_Header+set}\" = set"; then
7786 echo $ECHO_N "(cached) $ECHO_C" >&6
7788 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
7789 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
7791 # Is the header compilable?
7792 echo "$as_me:$LINENO: checking $ac_header usability" >&5
7793 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
7794 cat >conftest.$ac_ext <<_ACEOF
7797 cat confdefs.h >>conftest.$ac_ext
7798 cat >>conftest.$ac_ext <<_ACEOF
7799 /* end confdefs.h. */
7800 $ac_includes_default
7801 #include <$ac_header>
7803 rm -f conftest.$ac_objext
7804 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
7805 (eval $ac_compile) 2>conftest.er1
7807 grep -v '^ *+' conftest.er1 >conftest.err
7809 cat conftest.err >&5
7810 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7811 (exit $ac_status); } &&
7812 { ac_try='test -z "$ac_c_werror_flag"
7813 || test ! -s conftest.err'
7814 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7817 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7818 (exit $ac_status); }; } &&
7819 { ac_try='test -s conftest.$ac_objext'
7820 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7823 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7824 (exit $ac_status); }; }; then
7825 ac_header_compiler=yes
7827 echo "$as_me: failed program was:" >&5
7828 sed 's/^/| /' conftest.$ac_ext >&5
7830 ac_header_compiler=no
7832 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
7833 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
7834 echo "${ECHO_T}$ac_header_compiler" >&6
7836 # Is the header present?
7837 echo "$as_me:$LINENO: checking $ac_header presence" >&5
7838 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
7839 cat >conftest.$ac_ext <<_ACEOF
7842 cat confdefs.h >>conftest.$ac_ext
7843 cat >>conftest.$ac_ext <<_ACEOF
7844 /* end confdefs.h. */
7845 #include <$ac_header>
7847 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
7848 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
7850 grep -v '^ *+' conftest.er1 >conftest.err
7852 cat conftest.err >&5
7853 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7854 (exit $ac_status); } >/dev/null; then
7855 if test -s conftest.err; then
7856 ac_cpp_err=$ac_c_preproc_warn_flag
7857 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
7864 if test -z "$ac_cpp_err"; then
7865 ac_header_preproc=yes
7867 echo "$as_me: failed program was:" >&5
7868 sed 's/^/| /' conftest.$ac_ext >&5
7870 ac_header_preproc=no
7872 rm -f conftest.err conftest.$ac_ext
7873 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
7874 echo "${ECHO_T}$ac_header_preproc" >&6
7876 # So? What about this header?
7877 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
7879 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
7880 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
7881 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
7882 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
7883 ac_header_preproc=yes
7886 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
7887 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
7888 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
7889 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
7890 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
7891 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
7892 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
7893 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
7894 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
7895 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
7896 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
7897 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
7900 ## ------------------------------------------ ##
7901 ## Report this to the AC_PACKAGE_NAME lists. ##
7902 ## ------------------------------------------ ##
7905 sed "s/^/$as_me: WARNING: /" >&2
7908 echo "$as_me:$LINENO: checking for $ac_header" >&5
7909 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
7910 if eval "test \"\${$as_ac_Header+set}\" = set"; then
7911 echo $ECHO_N "(cached) $ECHO_C" >&6
7913 eval "$as_ac_Header=\$ac_header_preproc"
7915 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
7916 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
7919 if test `eval echo '${'$as_ac_Header'}'` = yes; then
7920 cat >>confdefs.h <<_ACEOF
7921 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
7928 if test x"$ac_cv_header_libunwind_h" = xyes -a x"$ac_cv_header_libunwind_ia64_h" = xyes; then
7929 enable_libunwind=yes;
7934 if test x"$enable_libunwind" = xyes; then
7936 for ac_header in libunwind.h
7938 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
7939 if eval "test \"\${$as_ac_Header+set}\" = set"; then
7940 echo "$as_me:$LINENO: checking for $ac_header" >&5
7941 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
7942 if eval "test \"\${$as_ac_Header+set}\" = set"; then
7943 echo $ECHO_N "(cached) $ECHO_C" >&6
7945 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
7946 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
7948 # Is the header compilable?
7949 echo "$as_me:$LINENO: checking $ac_header usability" >&5
7950 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
7951 cat >conftest.$ac_ext <<_ACEOF
7954 cat confdefs.h >>conftest.$ac_ext
7955 cat >>conftest.$ac_ext <<_ACEOF
7956 /* end confdefs.h. */
7957 $ac_includes_default
7958 #include <$ac_header>
7960 rm -f conftest.$ac_objext
7961 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
7962 (eval $ac_compile) 2>conftest.er1
7964 grep -v '^ *+' conftest.er1 >conftest.err
7966 cat conftest.err >&5
7967 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7968 (exit $ac_status); } &&
7969 { ac_try='test -z "$ac_c_werror_flag"
7970 || test ! -s conftest.err'
7971 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7974 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7975 (exit $ac_status); }; } &&
7976 { ac_try='test -s conftest.$ac_objext'
7977 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7980 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7981 (exit $ac_status); }; }; then
7982 ac_header_compiler=yes
7984 echo "$as_me: failed program was:" >&5
7985 sed 's/^/| /' conftest.$ac_ext >&5
7987 ac_header_compiler=no
7989 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
7990 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
7991 echo "${ECHO_T}$ac_header_compiler" >&6
7993 # Is the header present?
7994 echo "$as_me:$LINENO: checking $ac_header presence" >&5
7995 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
7996 cat >conftest.$ac_ext <<_ACEOF
7999 cat confdefs.h >>conftest.$ac_ext
8000 cat >>conftest.$ac_ext <<_ACEOF
8001 /* end confdefs.h. */
8002 #include <$ac_header>
8004 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
8005 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
8007 grep -v '^ *+' conftest.er1 >conftest.err
8009 cat conftest.err >&5
8010 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8011 (exit $ac_status); } >/dev/null; then
8012 if test -s conftest.err; then
8013 ac_cpp_err=$ac_c_preproc_warn_flag
8014 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
8021 if test -z "$ac_cpp_err"; then
8022 ac_header_preproc=yes
8024 echo "$as_me: failed program was:" >&5
8025 sed 's/^/| /' conftest.$ac_ext >&5
8027 ac_header_preproc=no
8029 rm -f conftest.err conftest.$ac_ext
8030 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
8031 echo "${ECHO_T}$ac_header_preproc" >&6
8033 # So? What about this header?
8034 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
8036 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
8037 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
8038 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
8039 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
8040 ac_header_preproc=yes
8043 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
8044 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
8045 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
8046 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
8047 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
8048 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
8049 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
8050 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
8051 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
8052 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
8053 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
8054 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
8057 ## ------------------------------------------ ##
8058 ## Report this to the AC_PACKAGE_NAME lists. ##
8059 ## ------------------------------------------ ##
8062 sed "s/^/$as_me: WARNING: /" >&2
8065 echo "$as_me:$LINENO: checking for $ac_header" >&5
8066 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
8067 if eval "test \"\${$as_ac_Header+set}\" = set"; then
8068 echo $ECHO_N "(cached) $ECHO_C" >&6
8070 eval "$as_ac_Header=\$ac_header_preproc"
8072 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
8073 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
8076 if test `eval echo '${'$as_ac_Header'}'` = yes; then
8077 cat >>confdefs.h <<_ACEOF
8078 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
8086 for ac_header in libunwind-ia64.h
8088 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
8089 if eval "test \"\${$as_ac_Header+set}\" = set"; then
8090 echo "$as_me:$LINENO: checking for $ac_header" >&5
8091 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
8092 if eval "test \"\${$as_ac_Header+set}\" = set"; then
8093 echo $ECHO_N "(cached) $ECHO_C" >&6
8095 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
8096 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
8098 # Is the header compilable?
8099 echo "$as_me:$LINENO: checking $ac_header usability" >&5
8100 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
8101 cat >conftest.$ac_ext <<_ACEOF
8104 cat confdefs.h >>conftest.$ac_ext
8105 cat >>conftest.$ac_ext <<_ACEOF
8106 /* end confdefs.h. */
8107 $ac_includes_default
8108 #include <$ac_header>
8110 rm -f conftest.$ac_objext
8111 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
8112 (eval $ac_compile) 2>conftest.er1
8114 grep -v '^ *+' conftest.er1 >conftest.err
8116 cat conftest.err >&5
8117 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8118 (exit $ac_status); } &&
8119 { ac_try='test -z "$ac_c_werror_flag"
8120 || test ! -s conftest.err'
8121 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8124 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8125 (exit $ac_status); }; } &&
8126 { ac_try='test -s conftest.$ac_objext'
8127 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8130 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8131 (exit $ac_status); }; }; then
8132 ac_header_compiler=yes
8134 echo "$as_me: failed program was:" >&5
8135 sed 's/^/| /' conftest.$ac_ext >&5
8137 ac_header_compiler=no
8139 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
8140 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
8141 echo "${ECHO_T}$ac_header_compiler" >&6
8143 # Is the header present?
8144 echo "$as_me:$LINENO: checking $ac_header presence" >&5
8145 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
8146 cat >conftest.$ac_ext <<_ACEOF
8149 cat confdefs.h >>conftest.$ac_ext
8150 cat >>conftest.$ac_ext <<_ACEOF
8151 /* end confdefs.h. */
8152 #include <$ac_header>
8154 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
8155 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
8157 grep -v '^ *+' conftest.er1 >conftest.err
8159 cat conftest.err >&5
8160 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8161 (exit $ac_status); } >/dev/null; then
8162 if test -s conftest.err; then
8163 ac_cpp_err=$ac_c_preproc_warn_flag
8164 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
8171 if test -z "$ac_cpp_err"; then
8172 ac_header_preproc=yes
8174 echo "$as_me: failed program was:" >&5
8175 sed 's/^/| /' conftest.$ac_ext >&5
8177 ac_header_preproc=no
8179 rm -f conftest.err conftest.$ac_ext
8180 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
8181 echo "${ECHO_T}$ac_header_preproc" >&6
8183 # So? What about this header?
8184 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
8186 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
8187 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
8188 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
8189 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
8190 ac_header_preproc=yes
8193 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
8194 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
8195 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
8196 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
8197 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
8198 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
8199 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
8200 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
8201 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
8202 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
8203 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
8204 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
8207 ## ------------------------------------------ ##
8208 ## Report this to the AC_PACKAGE_NAME lists. ##
8209 ## ------------------------------------------ ##
8212 sed "s/^/$as_me: WARNING: /" >&2
8215 echo "$as_me:$LINENO: checking for $ac_header" >&5
8216 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
8217 if eval "test \"\${$as_ac_Header+set}\" = set"; then
8218 echo $ECHO_N "(cached) $ECHO_C" >&6
8220 eval "$as_ac_Header=\$ac_header_preproc"
8222 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
8223 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
8226 if test `eval echo '${'$as_ac_Header'}'` = yes; then
8227 cat >>confdefs.h <<_ACEOF
8228 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
8236 cat >>confdefs.h <<\_ACEOF
8237 #define HAVE_LIBUNWIND 1
8240 CONFIG_OBS="$CONFIG_OBS libunwind-frame.o"
8241 CONFIG_DEPS="$CONFIG_DEPS libunwind-frame.o"
8242 CONFIG_SRCS="$CONFIG_SRCS libunwind-frame.c"
8245 # Profiling support.
8246 # Check whether --enable-profiling or --disable-profiling was given.
8247 if test "${enable_profiling+set}" = set; then
8248 enableval="$enable_profiling"
8253 { { echo "$as_me:$LINENO: error: bad value $enableval for --enable-profile" >&5
8254 echo "$as_me: error: bad value $enableval for --enable-profile" >&2;}
8255 { (exit 1); exit 1; }; } ;;
8263 for ac_func in monstartup _mcleanup
8265 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
8266 echo "$as_me:$LINENO: checking for $ac_func" >&5
8267 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
8268 if eval "test \"\${$as_ac_var+set}\" = set"; then
8269 echo $ECHO_N "(cached) $ECHO_C" >&6
8271 cat >conftest.$ac_ext <<_ACEOF
8274 cat confdefs.h >>conftest.$ac_ext
8275 cat >>conftest.$ac_ext <<_ACEOF
8276 /* end confdefs.h. */
8277 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
8278 For example, HP-UX 11i <limits.h> declares gettimeofday. */
8279 #define $ac_func innocuous_$ac_func
8281 /* System header to define __stub macros and hopefully few prototypes,
8282 which can conflict with char $ac_func (); below.
8283 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
8284 <limits.h> exists even on freestanding compilers. */
8287 # include <limits.h>
8289 # include <assert.h>
8294 /* Override any gcc2 internal prototype to avoid an error. */
8299 /* We use char because int might match the return type of a gcc2
8300 builtin and then its argument prototype would still apply. */
8302 /* The GNU C library defines this for functions which it implements
8303 to always fail with ENOSYS. Some functions are actually named
8304 something starting with __ and the normal name is an alias. */
8305 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
8308 char (*f) () = $ac_func;
8317 return f != $ac_func;
8322 rm -f conftest.$ac_objext conftest$ac_exeext
8323 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
8324 (eval $ac_link) 2>conftest.er1
8326 grep -v '^ *+' conftest.er1 >conftest.err
8328 cat conftest.err >&5
8329 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8330 (exit $ac_status); } &&
8331 { ac_try='test -z "$ac_c_werror_flag"
8332 || test ! -s conftest.err'
8333 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8336 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8337 (exit $ac_status); }; } &&
8338 { ac_try='test -s conftest$ac_exeext'
8339 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8342 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8343 (exit $ac_status); }; }; then
8344 eval "$as_ac_var=yes"
8346 echo "$as_me: failed program was:" >&5
8347 sed 's/^/| /' conftest.$ac_ext >&5
8349 eval "$as_ac_var=no"
8351 rm -f conftest.err conftest.$ac_objext \
8352 conftest$ac_exeext conftest.$ac_ext
8354 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
8355 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
8356 if test `eval echo '${'$as_ac_var'}'` = yes; then
8357 cat >>confdefs.h <<_ACEOF
8358 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
8364 echo "$as_me:$LINENO: checking for _etext" >&5
8365 echo $ECHO_N "checking for _etext... $ECHO_C" >&6
8366 if test "${ac_cv_var__etext+set}" = set; then
8367 echo $ECHO_N "(cached) $ECHO_C" >&6
8369 cat >conftest.$ac_ext <<_ACEOF
8372 cat confdefs.h >>conftest.$ac_ext
8373 cat >>conftest.$ac_ext <<_ACEOF
8374 /* end confdefs.h. */
8386 rm -f conftest.$ac_objext conftest$ac_exeext
8387 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
8388 (eval $ac_link) 2>conftest.er1
8390 grep -v '^ *+' conftest.er1 >conftest.err
8392 cat conftest.err >&5
8393 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8394 (exit $ac_status); } &&
8395 { ac_try='test -z "$ac_c_werror_flag"
8396 || test ! -s conftest.err'
8397 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8400 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8401 (exit $ac_status); }; } &&
8402 { ac_try='test -s conftest$ac_exeext'
8403 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8406 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8407 (exit $ac_status); }; }; then
8408 ac_cv_var__etext=yes
8410 echo "$as_me: failed program was:" >&5
8411 sed 's/^/| /' conftest.$ac_ext >&5
8415 rm -f conftest.err conftest.$ac_objext \
8416 conftest$ac_exeext conftest.$ac_ext
8418 echo "$as_me:$LINENO: result: $ac_cv_var__etext" >&5
8419 echo "${ECHO_T}$ac_cv_var__etext" >&6
8420 if test $ac_cv_var__etext = yes; then
8422 cat >>confdefs.h <<\_ACEOF
8423 #define HAVE__ETEXT 1
8427 echo "$as_me:$LINENO: checking for etext" >&5
8428 echo $ECHO_N "checking for etext... $ECHO_C" >&6
8429 if test "${ac_cv_var_etext+set}" = set; then
8430 echo $ECHO_N "(cached) $ECHO_C" >&6
8432 cat >conftest.$ac_ext <<_ACEOF
8435 cat confdefs.h >>conftest.$ac_ext
8436 cat >>conftest.$ac_ext <<_ACEOF
8437 /* end confdefs.h. */
8449 rm -f conftest.$ac_objext conftest$ac_exeext
8450 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
8451 (eval $ac_link) 2>conftest.er1
8453 grep -v '^ *+' conftest.er1 >conftest.err
8455 cat conftest.err >&5
8456 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8457 (exit $ac_status); } &&
8458 { ac_try='test -z "$ac_c_werror_flag"
8459 || test ! -s conftest.err'
8460 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8463 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8464 (exit $ac_status); }; } &&
8465 { ac_try='test -s conftest$ac_exeext'
8466 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8469 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8470 (exit $ac_status); }; }; then
8473 echo "$as_me: failed program was:" >&5
8474 sed 's/^/| /' conftest.$ac_ext >&5
8478 rm -f conftest.err conftest.$ac_objext \
8479 conftest$ac_exeext conftest.$ac_ext
8481 echo "$as_me:$LINENO: result: $ac_cv_var_etext" >&5
8482 echo "${ECHO_T}$ac_cv_var_etext" >&6
8483 if test $ac_cv_var_etext = yes; then
8485 cat >>confdefs.h <<\_ACEOF
8486 #define HAVE_ETEXT 1
8490 if test "$enable_profiling" = yes ; then
8491 if test $ac_cv_func_monstartup = no || test $ac_cv_func__mcleanup = no; then
8492 { { echo "$as_me:$LINENO: error: --enable-profiling requires monstartup and _mcleanup" >&5
8493 echo "$as_me: error: --enable-profiling requires monstartup and _mcleanup" >&2;}
8494 { (exit 1); exit 1; }; }
8497 OLD_CFLAGS="$CFLAGS"
8498 CFLAGS="$CFLAGS $PROFILE_CFLAGS"
8500 echo "$as_me:$LINENO: checking whether $CC supports -pg" >&5
8501 echo $ECHO_N "checking whether $CC supports -pg... $ECHO_C" >&6
8502 if test "${ac_cv_cc_supports_pg+set}" = set; then
8503 echo $ECHO_N "(cached) $ECHO_C" >&6
8505 cat >conftest.$ac_ext <<_ACEOF
8508 cat confdefs.h >>conftest.$ac_ext
8509 cat >>conftest.$ac_ext <<_ACEOF
8510 /* end confdefs.h. */
8520 rm -f conftest.$ac_objext
8521 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
8522 (eval $ac_compile) 2>conftest.er1
8524 grep -v '^ *+' conftest.er1 >conftest.err
8526 cat conftest.err >&5
8527 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8528 (exit $ac_status); } &&
8529 { ac_try='test -z "$ac_c_werror_flag"
8530 || test ! -s conftest.err'
8531 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8534 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8535 (exit $ac_status); }; } &&
8536 { ac_try='test -s conftest.$ac_objext'
8537 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8540 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8541 (exit $ac_status); }; }; then
8542 ac_cv_cc_supports_pg=yes
8544 echo "$as_me: failed program was:" >&5
8545 sed 's/^/| /' conftest.$ac_ext >&5
8547 ac_cv_cc_supports_pg=no
8549 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
8551 echo "$as_me:$LINENO: result: $ac_cv_cc_supports_pg" >&5
8552 echo "${ECHO_T}$ac_cv_cc_supports_pg" >&6
8554 if test $ac_cv_cc_supports_pg = no; then
8555 { { echo "$as_me:$LINENO: error: --enable-profiling requires a compiler which supports -pg" >&5
8556 echo "$as_me: error: --enable-profiling requires a compiler which supports -pg" >&2;}
8557 { (exit 1); exit 1; }; }
8560 CFLAGS="$OLD_CFLAGS"
8565 # Check whether --with-pkgversion or --without-pkgversion was given.
8566 if test "${with_pkgversion+set}" = set; then
8567 withval="$with_pkgversion"
8569 yes) { { echo "$as_me:$LINENO: error: package version not specified" >&5
8570 echo "$as_me: error: package version not specified" >&2;}
8571 { (exit 1); exit 1; }; } ;;
8573 *) PKGVERSION="($withval) " ;;
8583 # Check whether --with-bugurl or --without-bugurl was given.
8584 if test "${with_bugurl+set}" = set; then
8585 withval="$with_bugurl"
8587 yes) { { echo "$as_me:$LINENO: error: bug URL not specified" >&5
8588 echo "$as_me: error: bug URL not specified" >&2;}
8589 { (exit 1); exit 1; }; } ;;
8592 *) BUGURL="$withval"
8596 BUGURL="http://www.gnu.org/software/gdb/bugs/"
8605 REPORT_BUGS_TO="<$BUGURL>"
8606 REPORT_BUGS_TEXI=@uref{`echo "$BUGURL" | sed 's/@/@@/g'`}
8613 cat >>confdefs.h <<_ACEOF
8614 #define PKGVERSION "$PKGVERSION"
8618 cat >>confdefs.h <<_ACEOF
8619 #define REPORT_BUGS_TO "$REPORT_BUGS_TO"
8623 # --------------------- #
8624 # Checks for programs. #
8625 # --------------------- #
8627 for ac_prog in gawk mawk nawk awk
8629 # Extract the first word of "$ac_prog", so it can be a program name with args.
8630 set dummy $ac_prog; ac_word=$2
8631 echo "$as_me:$LINENO: checking for $ac_word" >&5
8632 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
8633 if test "${ac_cv_prog_AWK+set}" = set; then
8634 echo $ECHO_N "(cached) $ECHO_C" >&6
8636 if test -n "$AWK"; then
8637 ac_cv_prog_AWK="$AWK" # Let the user override the test.
8639 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8643 test -z "$as_dir" && as_dir=.
8644 for ac_exec_ext in '' $ac_executable_extensions; do
8645 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
8646 ac_cv_prog_AWK="$ac_prog"
8647 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
8656 if test -n "$AWK"; then
8657 echo "$as_me:$LINENO: result: $AWK" >&5
8658 echo "${ECHO_T}$AWK" >&6
8660 echo "$as_me:$LINENO: result: no" >&5
8661 echo "${ECHO_T}no" >&6
8664 test -n "$AWK" && break
8667 # Find a good install program. We prefer a C program (faster),
8668 # so one script is as good as another. But avoid the broken or
8669 # incompatible versions:
8670 # SysV /etc/install, /usr/sbin/install
8671 # SunOS /usr/etc/install
8672 # IRIX /sbin/install
8674 # AmigaOS /C/install, which installs bootblocks on floppy discs
8675 # AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag
8676 # AFS /usr/afsws/bin/install, which mishandles nonexistent args
8677 # SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff"
8678 # OS/2's system install, which has a completely different semantic
8679 # ./install, which can be erroneously created by make from ./install.sh.
8680 echo "$as_me:$LINENO: checking for a BSD-compatible install" >&5
8681 echo $ECHO_N "checking for a BSD-compatible install... $ECHO_C" >&6
8682 if test -z "$INSTALL"; then
8683 if test "${ac_cv_path_install+set}" = set; then
8684 echo $ECHO_N "(cached) $ECHO_C" >&6
8686 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8690 test -z "$as_dir" && as_dir=.
8691 # Account for people who put trailing slashes in PATH elements.
8693 ./ | .// | /cC/* | \
8694 /etc/* | /usr/sbin/* | /usr/etc/* | /sbin/* | /usr/afsws/bin/* | \
8695 ?:\\/os2\\/install\\/* | ?:\\/OS2\\/INSTALL\\/* | \
8698 # OSF1 and SCO ODT 3.0 have their own names for install.
8699 # Don't use installbsd from OSF since it installs stuff as root
8701 for ac_prog in ginstall scoinst install; do
8702 for ac_exec_ext in '' $ac_executable_extensions; do
8703 if $as_executable_p "$as_dir/$ac_prog$ac_exec_ext"; then
8704 if test $ac_prog = install &&
8705 grep dspmsg "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
8706 # AIX install. It has an incompatible calling convention.
8708 elif test $ac_prog = install &&
8709 grep pwplus "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
8710 # program-specific install script used by HP pwplus--don't use.
8713 ac_cv_path_install="$as_dir/$ac_prog$ac_exec_ext -c"
8725 if test "${ac_cv_path_install+set}" = set; then
8726 INSTALL=$ac_cv_path_install
8728 # As a last resort, use the slow shell script. We don't cache a
8729 # path for INSTALL within a source directory, because that will
8730 # break other packages using the cache if that directory is
8731 # removed, or if the path is relative.
8732 INSTALL=$ac_install_sh
8735 echo "$as_me:$LINENO: result: $INSTALL" >&5
8736 echo "${ECHO_T}$INSTALL" >&6
8738 # Use test -z because SunOS4 sh mishandles braces in ${var-val}.
8739 # It thinks the first close brace ends the variable substitution.
8740 test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}'
8742 test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL}'
8744 test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644'
8746 echo "$as_me:$LINENO: checking whether ln -s works" >&5
8747 echo $ECHO_N "checking whether ln -s works... $ECHO_C" >&6
8749 if test "$LN_S" = "ln -s"; then
8750 echo "$as_me:$LINENO: result: yes" >&5
8751 echo "${ECHO_T}yes" >&6
8753 echo "$as_me:$LINENO: result: no, using $LN_S" >&5
8754 echo "${ECHO_T}no, using $LN_S" >&6
8757 if test -n "$ac_tool_prefix"; then
8758 # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args.
8759 set dummy ${ac_tool_prefix}ranlib; ac_word=$2
8760 echo "$as_me:$LINENO: checking for $ac_word" >&5
8761 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
8762 if test "${ac_cv_prog_RANLIB+set}" = set; then
8763 echo $ECHO_N "(cached) $ECHO_C" >&6
8765 if test -n "$RANLIB"; then
8766 ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
8768 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8772 test -z "$as_dir" && as_dir=.
8773 for ac_exec_ext in '' $ac_executable_extensions; do
8774 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
8775 ac_cv_prog_RANLIB="${ac_tool_prefix}ranlib"
8776 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
8784 RANLIB=$ac_cv_prog_RANLIB
8785 if test -n "$RANLIB"; then
8786 echo "$as_me:$LINENO: result: $RANLIB" >&5
8787 echo "${ECHO_T}$RANLIB" >&6
8789 echo "$as_me:$LINENO: result: no" >&5
8790 echo "${ECHO_T}no" >&6
8794 if test -z "$ac_cv_prog_RANLIB"; then
8795 ac_ct_RANLIB=$RANLIB
8796 # Extract the first word of "ranlib", so it can be a program name with args.
8797 set dummy ranlib; ac_word=$2
8798 echo "$as_me:$LINENO: checking for $ac_word" >&5
8799 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
8800 if test "${ac_cv_prog_ac_ct_RANLIB+set}" = set; then
8801 echo $ECHO_N "(cached) $ECHO_C" >&6
8803 if test -n "$ac_ct_RANLIB"; then
8804 ac_cv_prog_ac_ct_RANLIB="$ac_ct_RANLIB" # Let the user override the test.
8806 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8810 test -z "$as_dir" && as_dir=.
8811 for ac_exec_ext in '' $ac_executable_extensions; do
8812 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
8813 ac_cv_prog_ac_ct_RANLIB="ranlib"
8814 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
8820 test -z "$ac_cv_prog_ac_ct_RANLIB" && ac_cv_prog_ac_ct_RANLIB=":"
8823 ac_ct_RANLIB=$ac_cv_prog_ac_ct_RANLIB
8824 if test -n "$ac_ct_RANLIB"; then
8825 echo "$as_me:$LINENO: result: $ac_ct_RANLIB" >&5
8826 echo "${ECHO_T}$ac_ct_RANLIB" >&6
8828 echo "$as_me:$LINENO: result: no" >&5
8829 echo "${ECHO_T}no" >&6
8832 RANLIB=$ac_ct_RANLIB
8834 RANLIB="$ac_cv_prog_RANLIB"
8837 for ac_prog in 'bison -y' byacc
8839 # Extract the first word of "$ac_prog", so it can be a program name with args.
8840 set dummy $ac_prog; ac_word=$2
8841 echo "$as_me:$LINENO: checking for $ac_word" >&5
8842 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
8843 if test "${ac_cv_prog_YACC+set}" = set; then
8844 echo $ECHO_N "(cached) $ECHO_C" >&6
8846 if test -n "$YACC"; then
8847 ac_cv_prog_YACC="$YACC" # Let the user override the test.
8849 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8853 test -z "$as_dir" && as_dir=.
8854 for ac_exec_ext in '' $ac_executable_extensions; do
8855 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
8856 ac_cv_prog_YACC="$ac_prog"
8857 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
8865 YACC=$ac_cv_prog_YACC
8866 if test -n "$YACC"; then
8867 echo "$as_me:$LINENO: result: $YACC" >&5
8868 echo "${ECHO_T}$YACC" >&6
8870 echo "$as_me:$LINENO: result: no" >&5
8871 echo "${ECHO_T}no" >&6
8874 test -n "$YACC" && break
8876 test -n "$YACC" || YACC="yacc"
8879 if test -n "$ac_tool_prefix"; then
8880 # Extract the first word of "${ac_tool_prefix}ar", so it can be a program name with args.
8881 set dummy ${ac_tool_prefix}ar; ac_word=$2
8882 echo "$as_me:$LINENO: checking for $ac_word" >&5
8883 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
8884 if test "${ac_cv_prog_AR+set}" = set; then
8885 echo $ECHO_N "(cached) $ECHO_C" >&6
8887 if test -n "$AR"; then
8888 ac_cv_prog_AR="$AR" # Let the user override the test.
8890 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8894 test -z "$as_dir" && as_dir=.
8895 for ac_exec_ext in '' $ac_executable_extensions; do
8896 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
8897 ac_cv_prog_AR="${ac_tool_prefix}ar"
8898 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
8907 if test -n "$AR"; then
8908 echo "$as_me:$LINENO: result: $AR" >&5
8909 echo "${ECHO_T}$AR" >&6
8911 echo "$as_me:$LINENO: result: no" >&5
8912 echo "${ECHO_T}no" >&6
8916 if test -z "$ac_cv_prog_AR"; then
8918 # Extract the first word of "ar", so it can be a program name with args.
8919 set dummy ar; ac_word=$2
8920 echo "$as_me:$LINENO: checking for $ac_word" >&5
8921 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
8922 if test "${ac_cv_prog_ac_ct_AR+set}" = set; then
8923 echo $ECHO_N "(cached) $ECHO_C" >&6
8925 if test -n "$ac_ct_AR"; then
8926 ac_cv_prog_ac_ct_AR="$ac_ct_AR" # Let the user override the test.
8928 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8932 test -z "$as_dir" && as_dir=.
8933 for ac_exec_ext in '' $ac_executable_extensions; do
8934 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
8935 ac_cv_prog_ac_ct_AR="ar"
8936 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
8944 ac_ct_AR=$ac_cv_prog_ac_ct_AR
8945 if test -n "$ac_ct_AR"; then
8946 echo "$as_me:$LINENO: result: $ac_ct_AR" >&5
8947 echo "${ECHO_T}$ac_ct_AR" >&6
8949 echo "$as_me:$LINENO: result: no" >&5
8950 echo "${ECHO_T}no" >&6
8958 if test -n "$ac_tool_prefix"; then
8959 # Extract the first word of "${ac_tool_prefix}dlltool", so it can be a program name with args.
8960 set dummy ${ac_tool_prefix}dlltool; ac_word=$2
8961 echo "$as_me:$LINENO: checking for $ac_word" >&5
8962 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
8963 if test "${ac_cv_prog_DLLTOOL+set}" = set; then
8964 echo $ECHO_N "(cached) $ECHO_C" >&6
8966 if test -n "$DLLTOOL"; then
8967 ac_cv_prog_DLLTOOL="$DLLTOOL" # Let the user override the test.
8969 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8973 test -z "$as_dir" && as_dir=.
8974 for ac_exec_ext in '' $ac_executable_extensions; do
8975 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
8976 ac_cv_prog_DLLTOOL="${ac_tool_prefix}dlltool"
8977 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
8985 DLLTOOL=$ac_cv_prog_DLLTOOL
8986 if test -n "$DLLTOOL"; then
8987 echo "$as_me:$LINENO: result: $DLLTOOL" >&5
8988 echo "${ECHO_T}$DLLTOOL" >&6
8990 echo "$as_me:$LINENO: result: no" >&5
8991 echo "${ECHO_T}no" >&6
8995 if test -z "$ac_cv_prog_DLLTOOL"; then
8996 ac_ct_DLLTOOL=$DLLTOOL
8997 # Extract the first word of "dlltool", so it can be a program name with args.
8998 set dummy dlltool; ac_word=$2
8999 echo "$as_me:$LINENO: checking for $ac_word" >&5
9000 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
9001 if test "${ac_cv_prog_ac_ct_DLLTOOL+set}" = set; then
9002 echo $ECHO_N "(cached) $ECHO_C" >&6
9004 if test -n "$ac_ct_DLLTOOL"; then
9005 ac_cv_prog_ac_ct_DLLTOOL="$ac_ct_DLLTOOL" # Let the user override the test.
9007 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9011 test -z "$as_dir" && as_dir=.
9012 for ac_exec_ext in '' $ac_executable_extensions; do
9013 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
9014 ac_cv_prog_ac_ct_DLLTOOL="dlltool"
9015 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
9023 ac_ct_DLLTOOL=$ac_cv_prog_ac_ct_DLLTOOL
9024 if test -n "$ac_ct_DLLTOOL"; then
9025 echo "$as_me:$LINENO: result: $ac_ct_DLLTOOL" >&5
9026 echo "${ECHO_T}$ac_ct_DLLTOOL" >&6
9028 echo "$as_me:$LINENO: result: no" >&5
9029 echo "${ECHO_T}no" >&6
9032 DLLTOOL=$ac_ct_DLLTOOL
9034 DLLTOOL="$ac_cv_prog_DLLTOOL"
9037 if test -n "$ac_tool_prefix"; then
9038 # Extract the first word of "${ac_tool_prefix}windres", so it can be a program name with args.
9039 set dummy ${ac_tool_prefix}windres; ac_word=$2
9040 echo "$as_me:$LINENO: checking for $ac_word" >&5
9041 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
9042 if test "${ac_cv_prog_WINDRES+set}" = set; then
9043 echo $ECHO_N "(cached) $ECHO_C" >&6
9045 if test -n "$WINDRES"; then
9046 ac_cv_prog_WINDRES="$WINDRES" # Let the user override the test.
9048 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9052 test -z "$as_dir" && as_dir=.
9053 for ac_exec_ext in '' $ac_executable_extensions; do
9054 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
9055 ac_cv_prog_WINDRES="${ac_tool_prefix}windres"
9056 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
9064 WINDRES=$ac_cv_prog_WINDRES
9065 if test -n "$WINDRES"; then
9066 echo "$as_me:$LINENO: result: $WINDRES" >&5
9067 echo "${ECHO_T}$WINDRES" >&6
9069 echo "$as_me:$LINENO: result: no" >&5
9070 echo "${ECHO_T}no" >&6
9074 if test -z "$ac_cv_prog_WINDRES"; then
9075 ac_ct_WINDRES=$WINDRES
9076 # Extract the first word of "windres", so it can be a program name with args.
9077 set dummy windres; ac_word=$2
9078 echo "$as_me:$LINENO: checking for $ac_word" >&5
9079 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
9080 if test "${ac_cv_prog_ac_ct_WINDRES+set}" = set; then
9081 echo $ECHO_N "(cached) $ECHO_C" >&6
9083 if test -n "$ac_ct_WINDRES"; then
9084 ac_cv_prog_ac_ct_WINDRES="$ac_ct_WINDRES" # Let the user override the test.
9086 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9090 test -z "$as_dir" && as_dir=.
9091 for ac_exec_ext in '' $ac_executable_extensions; do
9092 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
9093 ac_cv_prog_ac_ct_WINDRES="windres"
9094 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
9102 ac_ct_WINDRES=$ac_cv_prog_ac_ct_WINDRES
9103 if test -n "$ac_ct_WINDRES"; then
9104 echo "$as_me:$LINENO: result: $ac_ct_WINDRES" >&5
9105 echo "${ECHO_T}$ac_ct_WINDRES" >&6
9107 echo "$as_me:$LINENO: result: no" >&5
9108 echo "${ECHO_T}no" >&6
9111 WINDRES=$ac_ct_WINDRES
9113 WINDRES="$ac_cv_prog_WINDRES"
9117 # Needed for GNU/Hurd.
9118 if test -n "$ac_tool_prefix"; then
9119 # Extract the first word of "${ac_tool_prefix}mig", so it can be a program name with args.
9120 set dummy ${ac_tool_prefix}mig; ac_word=$2
9121 echo "$as_me:$LINENO: checking for $ac_word" >&5
9122 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
9123 if test "${ac_cv_prog_MIG+set}" = set; then
9124 echo $ECHO_N "(cached) $ECHO_C" >&6
9126 if test -n "$MIG"; then
9127 ac_cv_prog_MIG="$MIG" # Let the user override the test.
9129 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9133 test -z "$as_dir" && as_dir=.
9134 for ac_exec_ext in '' $ac_executable_extensions; do
9135 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
9136 ac_cv_prog_MIG="${ac_tool_prefix}mig"
9137 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
9146 if test -n "$MIG"; then
9147 echo "$as_me:$LINENO: result: $MIG" >&5
9148 echo "${ECHO_T}$MIG" >&6
9150 echo "$as_me:$LINENO: result: no" >&5
9151 echo "${ECHO_T}no" >&6
9155 if test -z "$ac_cv_prog_MIG"; then
9157 # Extract the first word of "mig", so it can be a program name with args.
9158 set dummy mig; ac_word=$2
9159 echo "$as_me:$LINENO: checking for $ac_word" >&5
9160 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
9161 if test "${ac_cv_prog_ac_ct_MIG+set}" = set; then
9162 echo $ECHO_N "(cached) $ECHO_C" >&6
9164 if test -n "$ac_ct_MIG"; then
9165 ac_cv_prog_ac_ct_MIG="$ac_ct_MIG" # Let the user override the test.
9167 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9171 test -z "$as_dir" && as_dir=.
9172 for ac_exec_ext in '' $ac_executable_extensions; do
9173 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
9174 ac_cv_prog_ac_ct_MIG="mig"
9175 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
9183 ac_ct_MIG=$ac_cv_prog_ac_ct_MIG
9184 if test -n "$ac_ct_MIG"; then
9185 echo "$as_me:$LINENO: result: $ac_ct_MIG" >&5
9186 echo "${ECHO_T}$ac_ct_MIG" >&6
9188 echo "$as_me:$LINENO: result: no" >&5
9189 echo "${ECHO_T}no" >&6
9194 MIG="$ac_cv_prog_MIG"
9198 # ---------------------- #
9199 # Checks for libraries. #
9200 # ---------------------- #
9202 # We might need to link with -lm; most simulators need it.
9204 echo "$as_me:$LINENO: checking for main in -lm" >&5
9205 echo $ECHO_N "checking for main in -lm... $ECHO_C" >&6
9206 if test "${ac_cv_lib_m_main+set}" = set; then
9207 echo $ECHO_N "(cached) $ECHO_C" >&6
9209 ac_check_lib_save_LIBS=$LIBS
9211 cat >conftest.$ac_ext <<_ACEOF
9214 cat confdefs.h >>conftest.$ac_ext
9215 cat >>conftest.$ac_ext <<_ACEOF
9216 /* end confdefs.h. */
9227 rm -f conftest.$ac_objext conftest$ac_exeext
9228 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
9229 (eval $ac_link) 2>conftest.er1
9231 grep -v '^ *+' conftest.er1 >conftest.err
9233 cat conftest.err >&5
9234 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9235 (exit $ac_status); } &&
9236 { ac_try='test -z "$ac_c_werror_flag"
9237 || test ! -s conftest.err'
9238 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9241 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9242 (exit $ac_status); }; } &&
9243 { ac_try='test -s conftest$ac_exeext'
9244 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9247 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9248 (exit $ac_status); }; }; then
9249 ac_cv_lib_m_main=yes
9251 echo "$as_me: failed program was:" >&5
9252 sed 's/^/| /' conftest.$ac_ext >&5
9256 rm -f conftest.err conftest.$ac_objext \
9257 conftest$ac_exeext conftest.$ac_ext
9258 LIBS=$ac_check_lib_save_LIBS
9260 echo "$as_me:$LINENO: result: $ac_cv_lib_m_main" >&5
9261 echo "${ECHO_T}$ac_cv_lib_m_main" >&6
9262 if test $ac_cv_lib_m_main = yes; then
9263 cat >>confdefs.h <<_ACEOF
9272 # We need to link with -lw to get `wctype' on Solaris before Solaris
9273 # 2.6. Solaris 2.6 and beyond have this function in libc, and have a
9274 # libw that some versions of the GNU linker cannot hanle (GNU ld 2.9.1
9275 # is known to have this problem). Therefore we avoid libw if we can.
9276 echo "$as_me:$LINENO: checking for wctype" >&5
9277 echo $ECHO_N "checking for wctype... $ECHO_C" >&6
9278 if test "${ac_cv_func_wctype+set}" = set; then
9279 echo $ECHO_N "(cached) $ECHO_C" >&6
9281 cat >conftest.$ac_ext <<_ACEOF
9284 cat confdefs.h >>conftest.$ac_ext
9285 cat >>conftest.$ac_ext <<_ACEOF
9286 /* end confdefs.h. */
9287 /* Define wctype to an innocuous variant, in case <limits.h> declares wctype.
9288 For example, HP-UX 11i <limits.h> declares gettimeofday. */
9289 #define wctype innocuous_wctype
9291 /* System header to define __stub macros and hopefully few prototypes,
9292 which can conflict with char wctype (); below.
9293 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
9294 <limits.h> exists even on freestanding compilers. */
9297 # include <limits.h>
9299 # include <assert.h>
9304 /* Override any gcc2 internal prototype to avoid an error. */
9309 /* We use char because int might match the return type of a gcc2
9310 builtin and then its argument prototype would still apply. */
9312 /* The GNU C library defines this for functions which it implements
9313 to always fail with ENOSYS. Some functions are actually named
9314 something starting with __ and the normal name is an alias. */
9315 #if defined (__stub_wctype) || defined (__stub___wctype)
9318 char (*f) () = wctype;
9332 rm -f conftest.$ac_objext conftest$ac_exeext
9333 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
9334 (eval $ac_link) 2>conftest.er1
9336 grep -v '^ *+' conftest.er1 >conftest.err
9338 cat conftest.err >&5
9339 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9340 (exit $ac_status); } &&
9341 { ac_try='test -z "$ac_c_werror_flag"
9342 || test ! -s conftest.err'
9343 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9346 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9347 (exit $ac_status); }; } &&
9348 { ac_try='test -s conftest$ac_exeext'
9349 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9352 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9353 (exit $ac_status); }; }; then
9354 ac_cv_func_wctype=yes
9356 echo "$as_me: failed program was:" >&5
9357 sed 's/^/| /' conftest.$ac_ext >&5
9359 ac_cv_func_wctype=no
9361 rm -f conftest.err conftest.$ac_objext \
9362 conftest$ac_exeext conftest.$ac_ext
9364 echo "$as_me:$LINENO: result: $ac_cv_func_wctype" >&5
9365 echo "${ECHO_T}$ac_cv_func_wctype" >&6
9366 if test $ac_cv_func_wctype = yes; then
9370 echo "$as_me:$LINENO: checking for wctype in -lw" >&5
9371 echo $ECHO_N "checking for wctype in -lw... $ECHO_C" >&6
9372 if test "${ac_cv_lib_w_wctype+set}" = set; then
9373 echo $ECHO_N "(cached) $ECHO_C" >&6
9375 ac_check_lib_save_LIBS=$LIBS
9377 cat >conftest.$ac_ext <<_ACEOF
9380 cat confdefs.h >>conftest.$ac_ext
9381 cat >>conftest.$ac_ext <<_ACEOF
9382 /* end confdefs.h. */
9384 /* Override any gcc2 internal prototype to avoid an error. */
9388 /* We use char because int might match the return type of a gcc2
9389 builtin and then its argument prototype would still apply. */
9399 rm -f conftest.$ac_objext conftest$ac_exeext
9400 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
9401 (eval $ac_link) 2>conftest.er1
9403 grep -v '^ *+' conftest.er1 >conftest.err
9405 cat conftest.err >&5
9406 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9407 (exit $ac_status); } &&
9408 { ac_try='test -z "$ac_c_werror_flag"
9409 || test ! -s conftest.err'
9410 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9413 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9414 (exit $ac_status); }; } &&
9415 { ac_try='test -s conftest$ac_exeext'
9416 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9419 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9420 (exit $ac_status); }; }; then
9421 ac_cv_lib_w_wctype=yes
9423 echo "$as_me: failed program was:" >&5
9424 sed 's/^/| /' conftest.$ac_ext >&5
9426 ac_cv_lib_w_wctype=no
9428 rm -f conftest.err conftest.$ac_objext \
9429 conftest$ac_exeext conftest.$ac_ext
9430 LIBS=$ac_check_lib_save_LIBS
9432 echo "$as_me:$LINENO: result: $ac_cv_lib_w_wctype" >&5
9433 echo "${ECHO_T}$ac_cv_lib_w_wctype" >&6
9434 if test $ac_cv_lib_w_wctype = yes; then
9435 cat >>confdefs.h <<_ACEOF
9446 # Some systems (e.g. Solaris) have `gethostbyname' in libnsl.
9447 echo "$as_me:$LINENO: checking for library containing gethostbyname" >&5
9448 echo $ECHO_N "checking for library containing gethostbyname... $ECHO_C" >&6
9449 if test "${ac_cv_search_gethostbyname+set}" = set; then
9450 echo $ECHO_N "(cached) $ECHO_C" >&6
9452 ac_func_search_save_LIBS=$LIBS
9453 ac_cv_search_gethostbyname=no
9454 cat >conftest.$ac_ext <<_ACEOF
9457 cat confdefs.h >>conftest.$ac_ext
9458 cat >>conftest.$ac_ext <<_ACEOF
9459 /* end confdefs.h. */
9461 /* Override any gcc2 internal prototype to avoid an error. */
9465 /* We use char because int might match the return type of a gcc2
9466 builtin and then its argument prototype would still apply. */
9467 char gethostbyname ();
9476 rm -f conftest.$ac_objext conftest$ac_exeext
9477 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
9478 (eval $ac_link) 2>conftest.er1
9480 grep -v '^ *+' conftest.er1 >conftest.err
9482 cat conftest.err >&5
9483 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9484 (exit $ac_status); } &&
9485 { ac_try='test -z "$ac_c_werror_flag"
9486 || test ! -s conftest.err'
9487 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9490 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9491 (exit $ac_status); }; } &&
9492 { ac_try='test -s conftest$ac_exeext'
9493 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9496 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9497 (exit $ac_status); }; }; then
9498 ac_cv_search_gethostbyname="none required"
9500 echo "$as_me: failed program was:" >&5
9501 sed 's/^/| /' conftest.$ac_ext >&5
9504 rm -f conftest.err conftest.$ac_objext \
9505 conftest$ac_exeext conftest.$ac_ext
9506 if test "$ac_cv_search_gethostbyname" = no; then
9507 for ac_lib in nsl; do
9508 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
9509 cat >conftest.$ac_ext <<_ACEOF
9512 cat confdefs.h >>conftest.$ac_ext
9513 cat >>conftest.$ac_ext <<_ACEOF
9514 /* end confdefs.h. */
9516 /* Override any gcc2 internal prototype to avoid an error. */
9520 /* We use char because int might match the return type of a gcc2
9521 builtin and then its argument prototype would still apply. */
9522 char gethostbyname ();
9531 rm -f conftest.$ac_objext conftest$ac_exeext
9532 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
9533 (eval $ac_link) 2>conftest.er1
9535 grep -v '^ *+' conftest.er1 >conftest.err
9537 cat conftest.err >&5
9538 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9539 (exit $ac_status); } &&
9540 { ac_try='test -z "$ac_c_werror_flag"
9541 || test ! -s conftest.err'
9542 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9545 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9546 (exit $ac_status); }; } &&
9547 { ac_try='test -s conftest$ac_exeext'
9548 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9551 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9552 (exit $ac_status); }; }; then
9553 ac_cv_search_gethostbyname="-l$ac_lib"
9556 echo "$as_me: failed program was:" >&5
9557 sed 's/^/| /' conftest.$ac_ext >&5
9560 rm -f conftest.err conftest.$ac_objext \
9561 conftest$ac_exeext conftest.$ac_ext
9564 LIBS=$ac_func_search_save_LIBS
9566 echo "$as_me:$LINENO: result: $ac_cv_search_gethostbyname" >&5
9567 echo "${ECHO_T}$ac_cv_search_gethostbyname" >&6
9568 if test "$ac_cv_search_gethostbyname" != no; then
9569 test "$ac_cv_search_gethostbyname" = "none required" || LIBS="$ac_cv_search_gethostbyname $LIBS"
9574 # Some systems (e.g. Solaris) have `socketpair' in libsocket.
9575 echo "$as_me:$LINENO: checking for library containing socketpair" >&5
9576 echo $ECHO_N "checking for library containing socketpair... $ECHO_C" >&6
9577 if test "${ac_cv_search_socketpair+set}" = set; then
9578 echo $ECHO_N "(cached) $ECHO_C" >&6
9580 ac_func_search_save_LIBS=$LIBS
9581 ac_cv_search_socketpair=no
9582 cat >conftest.$ac_ext <<_ACEOF
9585 cat confdefs.h >>conftest.$ac_ext
9586 cat >>conftest.$ac_ext <<_ACEOF
9587 /* end confdefs.h. */
9589 /* Override any gcc2 internal prototype to avoid an error. */
9593 /* We use char because int might match the return type of a gcc2
9594 builtin and then its argument prototype would still apply. */
9604 rm -f conftest.$ac_objext conftest$ac_exeext
9605 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
9606 (eval $ac_link) 2>conftest.er1
9608 grep -v '^ *+' conftest.er1 >conftest.err
9610 cat conftest.err >&5
9611 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9612 (exit $ac_status); } &&
9613 { ac_try='test -z "$ac_c_werror_flag"
9614 || test ! -s conftest.err'
9615 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9618 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9619 (exit $ac_status); }; } &&
9620 { ac_try='test -s conftest$ac_exeext'
9621 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9624 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9625 (exit $ac_status); }; }; then
9626 ac_cv_search_socketpair="none required"
9628 echo "$as_me: failed program was:" >&5
9629 sed 's/^/| /' conftest.$ac_ext >&5
9632 rm -f conftest.err conftest.$ac_objext \
9633 conftest$ac_exeext conftest.$ac_ext
9634 if test "$ac_cv_search_socketpair" = no; then
9635 for ac_lib in socket; do
9636 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
9637 cat >conftest.$ac_ext <<_ACEOF
9640 cat confdefs.h >>conftest.$ac_ext
9641 cat >>conftest.$ac_ext <<_ACEOF
9642 /* end confdefs.h. */
9644 /* Override any gcc2 internal prototype to avoid an error. */
9648 /* We use char because int might match the return type of a gcc2
9649 builtin and then its argument prototype would still apply. */
9659 rm -f conftest.$ac_objext conftest$ac_exeext
9660 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
9661 (eval $ac_link) 2>conftest.er1
9663 grep -v '^ *+' conftest.er1 >conftest.err
9665 cat conftest.err >&5
9666 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9667 (exit $ac_status); } &&
9668 { ac_try='test -z "$ac_c_werror_flag"
9669 || test ! -s conftest.err'
9670 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9673 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9674 (exit $ac_status); }; } &&
9675 { ac_try='test -s conftest$ac_exeext'
9676 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9679 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9680 (exit $ac_status); }; }; then
9681 ac_cv_search_socketpair="-l$ac_lib"
9684 echo "$as_me: failed program was:" >&5
9685 sed 's/^/| /' conftest.$ac_ext >&5
9688 rm -f conftest.err conftest.$ac_objext \
9689 conftest$ac_exeext conftest.$ac_ext
9692 LIBS=$ac_func_search_save_LIBS
9694 echo "$as_me:$LINENO: result: $ac_cv_search_socketpair" >&5
9695 echo "${ECHO_T}$ac_cv_search_socketpair" >&6
9696 if test "$ac_cv_search_socketpair" != no; then
9697 test "$ac_cv_search_socketpair" = "none required" || LIBS="$ac_cv_search_socketpair $LIBS"
9702 # Link in zlib if we can. This allows us to read compressed debug sections.
9703 echo "$as_me:$LINENO: checking for library containing zlibVersion" >&5
9704 echo $ECHO_N "checking for library containing zlibVersion... $ECHO_C" >&6
9705 if test "${ac_cv_search_zlibVersion+set}" = set; then
9706 echo $ECHO_N "(cached) $ECHO_C" >&6
9708 ac_func_search_save_LIBS=$LIBS
9709 ac_cv_search_zlibVersion=no
9710 cat >conftest.$ac_ext <<_ACEOF
9713 cat confdefs.h >>conftest.$ac_ext
9714 cat >>conftest.$ac_ext <<_ACEOF
9715 /* end confdefs.h. */
9717 /* Override any gcc2 internal prototype to avoid an error. */
9721 /* We use char because int might match the return type of a gcc2
9722 builtin and then its argument prototype would still apply. */
9723 char zlibVersion ();
9732 rm -f conftest.$ac_objext conftest$ac_exeext
9733 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
9734 (eval $ac_link) 2>conftest.er1
9736 grep -v '^ *+' conftest.er1 >conftest.err
9738 cat conftest.err >&5
9739 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9740 (exit $ac_status); } &&
9741 { ac_try='test -z "$ac_c_werror_flag"
9742 || test ! -s conftest.err'
9743 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9746 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9747 (exit $ac_status); }; } &&
9748 { ac_try='test -s conftest$ac_exeext'
9749 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9752 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9753 (exit $ac_status); }; }; then
9754 ac_cv_search_zlibVersion="none required"
9756 echo "$as_me: failed program was:" >&5
9757 sed 's/^/| /' conftest.$ac_ext >&5
9760 rm -f conftest.err conftest.$ac_objext \
9761 conftest$ac_exeext conftest.$ac_ext
9762 if test "$ac_cv_search_zlibVersion" = no; then
9764 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
9765 cat >conftest.$ac_ext <<_ACEOF
9768 cat confdefs.h >>conftest.$ac_ext
9769 cat >>conftest.$ac_ext <<_ACEOF
9770 /* end confdefs.h. */
9772 /* Override any gcc2 internal prototype to avoid an error. */
9776 /* We use char because int might match the return type of a gcc2
9777 builtin and then its argument prototype would still apply. */
9778 char zlibVersion ();
9787 rm -f conftest.$ac_objext conftest$ac_exeext
9788 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
9789 (eval $ac_link) 2>conftest.er1
9791 grep -v '^ *+' conftest.er1 >conftest.err
9793 cat conftest.err >&5
9794 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9795 (exit $ac_status); } &&
9796 { ac_try='test -z "$ac_c_werror_flag"
9797 || test ! -s conftest.err'
9798 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9801 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9802 (exit $ac_status); }; } &&
9803 { ac_try='test -s conftest$ac_exeext'
9804 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9807 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9808 (exit $ac_status); }; }; then
9809 ac_cv_search_zlibVersion="-l$ac_lib"
9812 echo "$as_me: failed program was:" >&5
9813 sed 's/^/| /' conftest.$ac_ext >&5
9816 rm -f conftest.err conftest.$ac_objext \
9817 conftest$ac_exeext conftest.$ac_ext
9820 LIBS=$ac_func_search_save_LIBS
9822 echo "$as_me:$LINENO: result: $ac_cv_search_zlibVersion" >&5
9823 echo "${ECHO_T}$ac_cv_search_zlibVersion" >&6
9824 if test "$ac_cv_search_zlibVersion" != no; then
9825 test "$ac_cv_search_zlibVersion" = "none required" || LIBS="$ac_cv_search_zlibVersion $LIBS"
9827 for ac_header in zlib.h
9829 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
9830 if eval "test \"\${$as_ac_Header+set}\" = set"; then
9831 echo "$as_me:$LINENO: checking for $ac_header" >&5
9832 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
9833 if eval "test \"\${$as_ac_Header+set}\" = set"; then
9834 echo $ECHO_N "(cached) $ECHO_C" >&6
9836 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
9837 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
9839 # Is the header compilable?
9840 echo "$as_me:$LINENO: checking $ac_header usability" >&5
9841 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
9842 cat >conftest.$ac_ext <<_ACEOF
9845 cat confdefs.h >>conftest.$ac_ext
9846 cat >>conftest.$ac_ext <<_ACEOF
9847 /* end confdefs.h. */
9848 $ac_includes_default
9849 #include <$ac_header>
9851 rm -f conftest.$ac_objext
9852 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
9853 (eval $ac_compile) 2>conftest.er1
9855 grep -v '^ *+' conftest.er1 >conftest.err
9857 cat conftest.err >&5
9858 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9859 (exit $ac_status); } &&
9860 { ac_try='test -z "$ac_c_werror_flag"
9861 || test ! -s conftest.err'
9862 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9865 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9866 (exit $ac_status); }; } &&
9867 { ac_try='test -s conftest.$ac_objext'
9868 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9871 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9872 (exit $ac_status); }; }; then
9873 ac_header_compiler=yes
9875 echo "$as_me: failed program was:" >&5
9876 sed 's/^/| /' conftest.$ac_ext >&5
9878 ac_header_compiler=no
9880 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
9881 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
9882 echo "${ECHO_T}$ac_header_compiler" >&6
9884 # Is the header present?
9885 echo "$as_me:$LINENO: checking $ac_header presence" >&5
9886 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
9887 cat >conftest.$ac_ext <<_ACEOF
9890 cat confdefs.h >>conftest.$ac_ext
9891 cat >>conftest.$ac_ext <<_ACEOF
9892 /* end confdefs.h. */
9893 #include <$ac_header>
9895 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
9896 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
9898 grep -v '^ *+' conftest.er1 >conftest.err
9900 cat conftest.err >&5
9901 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9902 (exit $ac_status); } >/dev/null; then
9903 if test -s conftest.err; then
9904 ac_cpp_err=$ac_c_preproc_warn_flag
9905 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
9912 if test -z "$ac_cpp_err"; then
9913 ac_header_preproc=yes
9915 echo "$as_me: failed program was:" >&5
9916 sed 's/^/| /' conftest.$ac_ext >&5
9918 ac_header_preproc=no
9920 rm -f conftest.err conftest.$ac_ext
9921 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
9922 echo "${ECHO_T}$ac_header_preproc" >&6
9924 # So? What about this header?
9925 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
9927 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
9928 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
9929 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
9930 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
9931 ac_header_preproc=yes
9934 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
9935 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
9936 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
9937 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
9938 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
9939 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
9940 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
9941 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
9942 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
9943 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
9944 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
9945 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
9948 ## ------------------------------------------ ##
9949 ## Report this to the AC_PACKAGE_NAME lists. ##
9950 ## ------------------------------------------ ##
9953 sed "s/^/$as_me: WARNING: /" >&2
9956 echo "$as_me:$LINENO: checking for $ac_header" >&5
9957 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
9958 if eval "test \"\${$as_ac_Header+set}\" = set"; then
9959 echo $ECHO_N "(cached) $ECHO_C" >&6
9961 eval "$as_ac_Header=\$ac_header_preproc"
9963 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
9964 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
9967 if test `eval echo '${'$as_ac_Header'}'` = yes; then
9968 cat >>confdefs.h <<_ACEOF
9969 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
9979 # For the TUI, we need enhanced curses functionality.
9981 # FIXME: kettenis/20040905: We prefer ncurses over the vendor-supplied
9982 # curses library because the latter might not provide all the
9983 # functionality we need. However, this leads to problems on systems
9984 # where the linker searches /usr/local/lib, but the compiler doesn't
9985 # search /usr/local/include, if ncurses is installed in /usr/local. A
9986 # default installation of ncurses on alpha*-dec-osf* will lead to such
9988 echo "$as_me:$LINENO: checking for library containing waddstr" >&5
9989 echo $ECHO_N "checking for library containing waddstr... $ECHO_C" >&6
9990 if test "${ac_cv_search_waddstr+set}" = set; then
9991 echo $ECHO_N "(cached) $ECHO_C" >&6
9993 ac_func_search_save_LIBS=$LIBS
9994 ac_cv_search_waddstr=no
9995 cat >conftest.$ac_ext <<_ACEOF
9998 cat confdefs.h >>conftest.$ac_ext
9999 cat >>conftest.$ac_ext <<_ACEOF
10000 /* end confdefs.h. */
10002 /* Override any gcc2 internal prototype to avoid an error. */
10006 /* We use char because int might match the return type of a gcc2
10007 builtin and then its argument prototype would still apply. */
10017 rm -f conftest.$ac_objext conftest$ac_exeext
10018 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
10019 (eval $ac_link) 2>conftest.er1
10021 grep -v '^ *+' conftest.er1 >conftest.err
10023 cat conftest.err >&5
10024 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10025 (exit $ac_status); } &&
10026 { ac_try='test -z "$ac_c_werror_flag"
10027 || test ! -s conftest.err'
10028 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10029 (eval $ac_try) 2>&5
10031 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10032 (exit $ac_status); }; } &&
10033 { ac_try='test -s conftest$ac_exeext'
10034 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10035 (eval $ac_try) 2>&5
10037 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10038 (exit $ac_status); }; }; then
10039 ac_cv_search_waddstr="none required"
10041 echo "$as_me: failed program was:" >&5
10042 sed 's/^/| /' conftest.$ac_ext >&5
10045 rm -f conftest.err conftest.$ac_objext \
10046 conftest$ac_exeext conftest.$ac_ext
10047 if test "$ac_cv_search_waddstr" = no; then
10048 for ac_lib in ncurses cursesX curses; do
10049 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
10050 cat >conftest.$ac_ext <<_ACEOF
10053 cat confdefs.h >>conftest.$ac_ext
10054 cat >>conftest.$ac_ext <<_ACEOF
10055 /* end confdefs.h. */
10057 /* Override any gcc2 internal prototype to avoid an error. */
10061 /* We use char because int might match the return type of a gcc2
10062 builtin and then its argument prototype would still apply. */
10072 rm -f conftest.$ac_objext conftest$ac_exeext
10073 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
10074 (eval $ac_link) 2>conftest.er1
10076 grep -v '^ *+' conftest.er1 >conftest.err
10078 cat conftest.err >&5
10079 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10080 (exit $ac_status); } &&
10081 { ac_try='test -z "$ac_c_werror_flag"
10082 || test ! -s conftest.err'
10083 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10084 (eval $ac_try) 2>&5
10086 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10087 (exit $ac_status); }; } &&
10088 { ac_try='test -s conftest$ac_exeext'
10089 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10090 (eval $ac_try) 2>&5
10092 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10093 (exit $ac_status); }; }; then
10094 ac_cv_search_waddstr="-l$ac_lib"
10097 echo "$as_me: failed program was:" >&5
10098 sed 's/^/| /' conftest.$ac_ext >&5
10101 rm -f conftest.err conftest.$ac_objext \
10102 conftest$ac_exeext conftest.$ac_ext
10105 LIBS=$ac_func_search_save_LIBS
10107 echo "$as_me:$LINENO: result: $ac_cv_search_waddstr" >&5
10108 echo "${ECHO_T}$ac_cv_search_waddstr" >&6
10109 if test "$ac_cv_search_waddstr" != no; then
10110 test "$ac_cv_search_waddstr" = "none required" || LIBS="$ac_cv_search_waddstr $LIBS"
10115 # On HP/UX we may need libxpdl for dlgetmodinfo (used by solib-pa64.c).
10116 echo "$as_me:$LINENO: checking for library containing dlgetmodinfo" >&5
10117 echo $ECHO_N "checking for library containing dlgetmodinfo... $ECHO_C" >&6
10118 if test "${ac_cv_search_dlgetmodinfo+set}" = set; then
10119 echo $ECHO_N "(cached) $ECHO_C" >&6
10121 ac_func_search_save_LIBS=$LIBS
10122 ac_cv_search_dlgetmodinfo=no
10123 cat >conftest.$ac_ext <<_ACEOF
10126 cat confdefs.h >>conftest.$ac_ext
10127 cat >>conftest.$ac_ext <<_ACEOF
10128 /* end confdefs.h. */
10130 /* Override any gcc2 internal prototype to avoid an error. */
10134 /* We use char because int might match the return type of a gcc2
10135 builtin and then its argument prototype would still apply. */
10136 char dlgetmodinfo ();
10145 rm -f conftest.$ac_objext conftest$ac_exeext
10146 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
10147 (eval $ac_link) 2>conftest.er1
10149 grep -v '^ *+' conftest.er1 >conftest.err
10151 cat conftest.err >&5
10152 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10153 (exit $ac_status); } &&
10154 { ac_try='test -z "$ac_c_werror_flag"
10155 || test ! -s conftest.err'
10156 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10157 (eval $ac_try) 2>&5
10159 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10160 (exit $ac_status); }; } &&
10161 { ac_try='test -s conftest$ac_exeext'
10162 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10163 (eval $ac_try) 2>&5
10165 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10166 (exit $ac_status); }; }; then
10167 ac_cv_search_dlgetmodinfo="none required"
10169 echo "$as_me: failed program was:" >&5
10170 sed 's/^/| /' conftest.$ac_ext >&5
10173 rm -f conftest.err conftest.$ac_objext \
10174 conftest$ac_exeext conftest.$ac_ext
10175 if test "$ac_cv_search_dlgetmodinfo" = no; then
10176 for ac_lib in dl xpdl; do
10177 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
10178 cat >conftest.$ac_ext <<_ACEOF
10181 cat confdefs.h >>conftest.$ac_ext
10182 cat >>conftest.$ac_ext <<_ACEOF
10183 /* end confdefs.h. */
10185 /* Override any gcc2 internal prototype to avoid an error. */
10189 /* We use char because int might match the return type of a gcc2
10190 builtin and then its argument prototype would still apply. */
10191 char dlgetmodinfo ();
10200 rm -f conftest.$ac_objext conftest$ac_exeext
10201 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
10202 (eval $ac_link) 2>conftest.er1
10204 grep -v '^ *+' conftest.er1 >conftest.err
10206 cat conftest.err >&5
10207 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10208 (exit $ac_status); } &&
10209 { ac_try='test -z "$ac_c_werror_flag"
10210 || test ! -s conftest.err'
10211 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10212 (eval $ac_try) 2>&5
10214 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10215 (exit $ac_status); }; } &&
10216 { ac_try='test -s conftest$ac_exeext'
10217 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10218 (eval $ac_try) 2>&5
10220 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10221 (exit $ac_status); }; }; then
10222 ac_cv_search_dlgetmodinfo="-l$ac_lib"
10225 echo "$as_me: failed program was:" >&5
10226 sed 's/^/| /' conftest.$ac_ext >&5
10229 rm -f conftest.err conftest.$ac_objext \
10230 conftest$ac_exeext conftest.$ac_ext
10233 LIBS=$ac_func_search_save_LIBS
10235 echo "$as_me:$LINENO: result: $ac_cv_search_dlgetmodinfo" >&5
10236 echo "${ECHO_T}$ac_cv_search_dlgetmodinfo" >&6
10237 if test "$ac_cv_search_dlgetmodinfo" != no; then
10238 test "$ac_cv_search_dlgetmodinfo" = "none required" || LIBS="$ac_cv_search_dlgetmodinfo $LIBS"
10243 # Since GDB uses Readline, we need termcap functionality. In many
10244 # cases this will be provided by the curses library, but some systems
10245 # have a seperate termcap library, or no curses library at all.
10249 if test -d $srcdir/libtermcap; then
10250 LIBS="../libtermcap/libtermcap.a $LIBS"
10251 ac_cv_search_tgetent="../libtermcap/libtermcap.a"
10254 ac_cv_search_tgetent="none required"
10257 ac_cv_search_tgetent="none required"
10258 CONFIG_OBS="$CONFIG_OBS win32-termcap.o"
10262 # These are the libraries checked by Readline.
10263 echo "$as_me:$LINENO: checking for library containing tgetent" >&5
10264 echo $ECHO_N "checking for library containing tgetent... $ECHO_C" >&6
10265 if test "${ac_cv_search_tgetent+set}" = set; then
10266 echo $ECHO_N "(cached) $ECHO_C" >&6
10268 ac_func_search_save_LIBS=$LIBS
10269 ac_cv_search_tgetent=no
10270 cat >conftest.$ac_ext <<_ACEOF
10273 cat confdefs.h >>conftest.$ac_ext
10274 cat >>conftest.$ac_ext <<_ACEOF
10275 /* end confdefs.h. */
10277 /* Override any gcc2 internal prototype to avoid an error. */
10281 /* We use char because int might match the return type of a gcc2
10282 builtin and then its argument prototype would still apply. */
10292 rm -f conftest.$ac_objext conftest$ac_exeext
10293 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
10294 (eval $ac_link) 2>conftest.er1
10296 grep -v '^ *+' conftest.er1 >conftest.err
10298 cat conftest.err >&5
10299 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10300 (exit $ac_status); } &&
10301 { ac_try='test -z "$ac_c_werror_flag"
10302 || test ! -s conftest.err'
10303 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10304 (eval $ac_try) 2>&5
10306 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10307 (exit $ac_status); }; } &&
10308 { ac_try='test -s conftest$ac_exeext'
10309 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10310 (eval $ac_try) 2>&5
10312 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10313 (exit $ac_status); }; }; then
10314 ac_cv_search_tgetent="none required"
10316 echo "$as_me: failed program was:" >&5
10317 sed 's/^/| /' conftest.$ac_ext >&5
10320 rm -f conftest.err conftest.$ac_objext \
10321 conftest$ac_exeext conftest.$ac_ext
10322 if test "$ac_cv_search_tgetent" = no; then
10323 for ac_lib in termcap tinfo curses ncurses; do
10324 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
10325 cat >conftest.$ac_ext <<_ACEOF
10328 cat confdefs.h >>conftest.$ac_ext
10329 cat >>conftest.$ac_ext <<_ACEOF
10330 /* end confdefs.h. */
10332 /* Override any gcc2 internal prototype to avoid an error. */
10336 /* We use char because int might match the return type of a gcc2
10337 builtin and then its argument prototype would still apply. */
10347 rm -f conftest.$ac_objext conftest$ac_exeext
10348 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
10349 (eval $ac_link) 2>conftest.er1
10351 grep -v '^ *+' conftest.er1 >conftest.err
10353 cat conftest.err >&5
10354 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10355 (exit $ac_status); } &&
10356 { ac_try='test -z "$ac_c_werror_flag"
10357 || test ! -s conftest.err'
10358 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10359 (eval $ac_try) 2>&5
10361 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10362 (exit $ac_status); }; } &&
10363 { ac_try='test -s conftest$ac_exeext'
10364 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10365 (eval $ac_try) 2>&5
10367 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10368 (exit $ac_status); }; }; then
10369 ac_cv_search_tgetent="-l$ac_lib"
10372 echo "$as_me: failed program was:" >&5
10373 sed 's/^/| /' conftest.$ac_ext >&5
10376 rm -f conftest.err conftest.$ac_objext \
10377 conftest$ac_exeext conftest.$ac_ext
10380 LIBS=$ac_func_search_save_LIBS
10382 echo "$as_me:$LINENO: result: $ac_cv_search_tgetent" >&5
10383 echo "${ECHO_T}$ac_cv_search_tgetent" >&6
10384 if test "$ac_cv_search_tgetent" != no; then
10385 test "$ac_cv_search_tgetent" = "none required" || LIBS="$ac_cv_search_tgetent $LIBS"
10390 if test "$ac_cv_search_tgetent" = no; then
10391 { { echo "$as_me:$LINENO: error: no termcap library found" >&5
10392 echo "$as_me: error: no termcap library found" >&2;}
10393 { (exit 1); exit 1; }; }
10397 # Check whether --with-system-readline or --without-system-readline was given.
10398 if test "${with_system_readline+set}" = set; then
10399 withval="$with_system_readline"
10403 if test "$with_system_readline" = yes; then
10404 READLINE=-lreadline
10408 READLINE='$(READLINE_DIR)/libreadline.a'
10409 READLINE_DEPS='$(READLINE)'
10410 READLINE_CFLAGS='-I$(READLINE_SRC)/..'
10417 # Check whether --with-expat or --without-expat was given.
10418 if test "${with_expat+set}" = set; then
10419 withval="$with_expat"
10424 echo "$as_me:$LINENO: checking whether to use expat" >&5
10425 echo $ECHO_N "checking whether to use expat... $ECHO_C" >&6
10426 echo "$as_me:$LINENO: result: $with_expat" >&5
10427 echo "${ECHO_T}$with_expat" >&6
10429 if test "${with_expat}" = no; then
10430 { echo "$as_me:$LINENO: WARNING: expat support disabled; some features may be unavailable." >&5
10431 echo "$as_me: WARNING: expat support disabled; some features may be unavailable." >&2;}
10435 if test "X$prefix" = "XNONE"; then
10436 acl_final_prefix="$ac_default_prefix"
10438 acl_final_prefix="$prefix"
10440 if test "X$exec_prefix" = "XNONE"; then
10441 acl_final_exec_prefix='${prefix}'
10443 acl_final_exec_prefix="$exec_prefix"
10445 acl_save_prefix="$prefix"
10446 prefix="$acl_final_prefix"
10447 eval acl_final_exec_prefix=\"$acl_final_exec_prefix\"
10448 prefix="$acl_save_prefix"
10451 # Check whether --with-gnu-ld or --without-gnu-ld was given.
10452 if test "${with_gnu_ld+set}" = set; then
10453 withval="$with_gnu_ld"
10454 test "$withval" = no || with_gnu_ld=yes
10458 # Prepare PATH_SEPARATOR.
10459 # The user is always right.
10460 if test "${PATH_SEPARATOR+set}" != set; then
10461 echo "#! /bin/sh" >conf$$.sh
10462 echo "exit 0" >>conf$$.sh
10464 if (PATH="/nonexistent;."; conf$$.sh) >/dev/null 2>&1; then
10472 if test "$GCC" = yes; then
10473 # Check if gcc -print-prog-name=ld gives a path.
10474 echo "$as_me:$LINENO: checking for ld used by GCC" >&5
10475 echo $ECHO_N "checking for ld used by GCC... $ECHO_C" >&6
10478 # gcc leaves a trailing carriage return which upsets mingw
10479 ac_prog=`($CC -print-prog-name=ld) 2>&5 | tr -d '\015'` ;;
10481 ac_prog=`($CC -print-prog-name=ld) 2>&5` ;;
10484 # Accept absolute paths.
10485 [\\/]* | [A-Za-z]:[\\/]*)
10486 re_direlt='/[^/][^/]*/\.\./'
10487 # Canonicalize the path of ld
10488 ac_prog=`echo $ac_prog| sed 's%\\\\%/%g'`
10489 while echo $ac_prog | grep "$re_direlt" > /dev/null 2>&1; do
10490 ac_prog=`echo $ac_prog| sed "s%$re_direlt%/%"`
10492 test -z "$LD" && LD="$ac_prog"
10495 # If it fails, then pretend we aren't using GCC.
10499 # If it is relative, then search for the first ld in PATH.
10500 with_gnu_ld=unknown
10503 elif test "$with_gnu_ld" = yes; then
10504 echo "$as_me:$LINENO: checking for GNU ld" >&5
10505 echo $ECHO_N "checking for GNU ld... $ECHO_C" >&6
10507 echo "$as_me:$LINENO: checking for non-GNU ld" >&5
10508 echo $ECHO_N "checking for non-GNU ld... $ECHO_C" >&6
10510 if test "${acl_cv_path_LD+set}" = set; then
10511 echo $ECHO_N "(cached) $ECHO_C" >&6
10513 if test -z "$LD"; then
10514 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS="${IFS}${PATH_SEPARATOR-:}"
10515 for ac_dir in $PATH; do
10516 test -z "$ac_dir" && ac_dir=.
10517 if test -f "$ac_dir/$ac_prog" || test -f "$ac_dir/$ac_prog$ac_exeext"; then
10518 acl_cv_path_LD="$ac_dir/$ac_prog"
10519 # Check to see if the program is GNU ld. I'd rather use --version,
10520 # but apparently some GNU ld's only accept -v.
10521 # Break only if it was the GNU/non-GNU ld that we prefer.
10522 if "$acl_cv_path_LD" -v 2>&1 < /dev/null | egrep '(GNU|with BFD)' > /dev/null; then
10523 test "$with_gnu_ld" != no && break
10525 test "$with_gnu_ld" != yes && break
10531 acl_cv_path_LD="$LD" # Let the user override the test with a path.
10535 LD="$acl_cv_path_LD"
10536 if test -n "$LD"; then
10537 echo "$as_me:$LINENO: result: $LD" >&5
10538 echo "${ECHO_T}$LD" >&6
10540 echo "$as_me:$LINENO: result: no" >&5
10541 echo "${ECHO_T}no" >&6
10543 test -z "$LD" && { { echo "$as_me:$LINENO: error: no acceptable ld found in \$PATH" >&5
10544 echo "$as_me: error: no acceptable ld found in \$PATH" >&2;}
10545 { (exit 1); exit 1; }; }
10546 echo "$as_me:$LINENO: checking if the linker ($LD) is GNU ld" >&5
10547 echo $ECHO_N "checking if the linker ($LD) is GNU ld... $ECHO_C" >&6
10548 if test "${acl_cv_prog_gnu_ld+set}" = set; then
10549 echo $ECHO_N "(cached) $ECHO_C" >&6
10551 # I'd rather use --version here, but apparently some GNU ld's only accept -v.
10552 if $LD -v 2>&1 </dev/null | egrep '(GNU|with BFD)' 1>&5; then
10553 acl_cv_prog_gnu_ld=yes
10555 acl_cv_prog_gnu_ld=no
10558 echo "$as_me:$LINENO: result: $acl_cv_prog_gnu_ld" >&5
10559 echo "${ECHO_T}$acl_cv_prog_gnu_ld" >&6
10560 with_gnu_ld=$acl_cv_prog_gnu_ld
10564 echo "$as_me:$LINENO: checking for shared library run path origin" >&5
10565 echo $ECHO_N "checking for shared library run path origin... $ECHO_C" >&6
10566 if test "${acl_cv_rpath+set}" = set; then
10567 echo $ECHO_N "(cached) $ECHO_C" >&6
10570 CC="$CC" GCC="$GCC" LDFLAGS="$LDFLAGS" LD="$LD" with_gnu_ld="$with_gnu_ld" \
10571 ${CONFIG_SHELL-/bin/sh} "$ac_aux_dir/config.rpath" "$host" > conftest.sh
10573 rm -f ./conftest.sh
10577 echo "$as_me:$LINENO: result: $acl_cv_rpath" >&5
10578 echo "${ECHO_T}$acl_cv_rpath" >&6
10580 libext="$acl_cv_libext"
10581 shlibext="$acl_cv_shlibext"
10582 hardcode_libdir_flag_spec="$acl_cv_hardcode_libdir_flag_spec"
10583 hardcode_libdir_separator="$acl_cv_hardcode_libdir_separator"
10584 hardcode_direct="$acl_cv_hardcode_direct"
10585 hardcode_minus_L="$acl_cv_hardcode_minus_L"
10586 # Check whether --enable-rpath or --disable-rpath was given.
10587 if test "${enable_rpath+set}" = set; then
10588 enableval="$enable_rpath"
10604 acl_save_prefix="$prefix"
10605 prefix="$acl_final_prefix"
10606 acl_save_exec_prefix="$exec_prefix"
10607 exec_prefix="$acl_final_exec_prefix"
10609 eval additional_includedir=\"$includedir\"
10610 eval additional_libdir=\"$libdir\"
10612 exec_prefix="$acl_save_exec_prefix"
10613 prefix="$acl_save_prefix"
10616 # Check whether --with-libexpat-prefix or --without-libexpat-prefix was given.
10617 if test "${with_libexpat_prefix+set}" = set; then
10618 withval="$with_libexpat_prefix"
10620 if test "X$withval" = "Xno"; then
10623 if test "X$withval" = "X"; then
10625 acl_save_prefix="$prefix"
10626 prefix="$acl_final_prefix"
10627 acl_save_exec_prefix="$exec_prefix"
10628 exec_prefix="$acl_final_exec_prefix"
10630 eval additional_includedir=\"$includedir\"
10631 eval additional_libdir=\"$libdir\"
10633 exec_prefix="$acl_save_exec_prefix"
10634 prefix="$acl_save_prefix"
10637 additional_includedir="$withval/include"
10638 additional_libdir="$withval/lib"
10648 names_already_handled=
10649 names_next_round='expat '
10650 while test -n "$names_next_round"; do
10651 names_this_round="$names_next_round"
10653 for name in $names_this_round; do
10655 for n in $names_already_handled; do
10656 if test "$n" = "$name"; then
10657 already_handled=yes
10661 if test -z "$already_handled"; then
10662 names_already_handled="$names_already_handled $name"
10663 uppername=`echo "$name" | sed -e 'y|abcdefghijklmnopqrstuvwxyz./-|ABCDEFGHIJKLMNOPQRSTUVWXYZ___|'`
10664 eval value=\"\$HAVE_LIB$uppername\"
10665 if test -n "$value"; then
10666 if test "$value" = yes; then
10667 eval value=\"\$LIB$uppername\"
10668 test -z "$value" || LIBEXPAT="${LIBEXPAT}${LIBEXPAT:+ }$value"
10669 eval value=\"\$LTLIB$uppername\"
10670 test -z "$value" || LTLIBEXPAT="${LTLIBEXPAT}${LTLIBEXPAT:+ }$value"
10679 if test $use_additional = yes; then
10680 if test -n "$shlibext" && test -f "$additional_libdir/lib$name.$shlibext"; then
10681 found_dir="$additional_libdir"
10682 found_so="$additional_libdir/lib$name.$shlibext"
10683 if test -f "$additional_libdir/lib$name.la"; then
10684 found_la="$additional_libdir/lib$name.la"
10687 if test -f "$additional_libdir/lib$name.$libext"; then
10688 found_dir="$additional_libdir"
10689 found_a="$additional_libdir/lib$name.$libext"
10690 if test -f "$additional_libdir/lib$name.la"; then
10691 found_la="$additional_libdir/lib$name.la"
10696 if test "X$found_dir" = "X"; then
10697 for x in $LDFLAGS $LTLIBEXPAT; do
10699 acl_save_prefix="$prefix"
10700 prefix="$acl_final_prefix"
10701 acl_save_exec_prefix="$exec_prefix"
10702 exec_prefix="$acl_final_exec_prefix"
10704 exec_prefix="$acl_save_exec_prefix"
10705 prefix="$acl_save_prefix"
10709 dir=`echo "X$x" | sed -e 's/^X-L//'`
10710 if test -n "$shlibext" && test -f "$dir/lib$name.$shlibext"; then
10712 found_so="$dir/lib$name.$shlibext"
10713 if test -f "$dir/lib$name.la"; then
10714 found_la="$dir/lib$name.la"
10717 if test -f "$dir/lib$name.$libext"; then
10719 found_a="$dir/lib$name.$libext"
10720 if test -f "$dir/lib$name.la"; then
10721 found_la="$dir/lib$name.la"
10727 if test "X$found_dir" != "X"; then
10732 if test "X$found_dir" != "X"; then
10733 LTLIBEXPAT="${LTLIBEXPAT}${LTLIBEXPAT:+ }-L$found_dir -l$name"
10734 if test "X$found_so" != "X"; then
10735 if test "$enable_rpath" = no || test "X$found_dir" = "X/usr/lib"; then
10736 LIBEXPAT="${LIBEXPAT}${LIBEXPAT:+ }$found_so"
10739 for x in $ltrpathdirs; do
10740 if test "X$x" = "X$found_dir"; then
10745 if test -z "$haveit"; then
10746 ltrpathdirs="$ltrpathdirs $found_dir"
10748 if test "$hardcode_direct" = yes; then
10749 LIBEXPAT="${LIBEXPAT}${LIBEXPAT:+ }$found_so"
10751 if test -n "$hardcode_libdir_flag_spec" && test "$hardcode_minus_L" = no; then
10752 LIBEXPAT="${LIBEXPAT}${LIBEXPAT:+ }$found_so"
10754 for x in $rpathdirs; do
10755 if test "X$x" = "X$found_dir"; then
10760 if test -z "$haveit"; then
10761 rpathdirs="$rpathdirs $found_dir"
10765 for x in $LDFLAGS $LIBEXPAT; do
10767 acl_save_prefix="$prefix"
10768 prefix="$acl_final_prefix"
10769 acl_save_exec_prefix="$exec_prefix"
10770 exec_prefix="$acl_final_exec_prefix"
10772 exec_prefix="$acl_save_exec_prefix"
10773 prefix="$acl_save_prefix"
10775 if test "X$x" = "X-L$found_dir"; then
10780 if test -z "$haveit"; then
10781 LIBEXPAT="${LIBEXPAT}${LIBEXPAT:+ }-L$found_dir"
10783 if test "$hardcode_minus_L" != no; then
10784 LIBEXPAT="${LIBEXPAT}${LIBEXPAT:+ }$found_so"
10786 LIBEXPAT="${LIBEXPAT}${LIBEXPAT:+ }-l$name"
10792 if test "X$found_a" != "X"; then
10793 LIBEXPAT="${LIBEXPAT}${LIBEXPAT:+ }$found_a"
10795 LIBEXPAT="${LIBEXPAT}${LIBEXPAT:+ }-L$found_dir -l$name"
10798 additional_includedir=
10799 case "$found_dir" in
10801 basedir=`echo "X$found_dir" | sed -e 's,^X,,' -e 's,/lib/*$,,'`
10802 additional_includedir="$basedir/include"
10805 if test "X$additional_includedir" != "X"; then
10806 if test "X$additional_includedir" != "X/usr/include"; then
10808 if test "X$additional_includedir" = "X/usr/local/include"; then
10809 if test -n "$GCC"; then
10811 linux*) haveit=yes;;
10815 if test -z "$haveit"; then
10816 for x in $CPPFLAGS $INCEXPAT; do
10818 acl_save_prefix="$prefix"
10819 prefix="$acl_final_prefix"
10820 acl_save_exec_prefix="$exec_prefix"
10821 exec_prefix="$acl_final_exec_prefix"
10823 exec_prefix="$acl_save_exec_prefix"
10824 prefix="$acl_save_prefix"
10826 if test "X$x" = "X-I$additional_includedir"; then
10831 if test -z "$haveit"; then
10832 if test -d "$additional_includedir"; then
10833 INCEXPAT="${INCEXPAT}${INCEXPAT:+ }-I$additional_includedir"
10839 if test -n "$found_la"; then
10840 save_libdir="$libdir"
10841 case "$found_la" in
10842 */* | *\\*) . "$found_la" ;;
10843 *) . "./$found_la" ;;
10845 libdir="$save_libdir"
10846 for dep in $dependency_libs; do
10849 additional_libdir=`echo "X$dep" | sed -e 's/^X-L//'`
10850 if test "X$additional_libdir" != "X/usr/lib"; then
10852 if test "X$additional_libdir" = "X/usr/local/lib"; then
10853 if test -n "$GCC"; then
10855 linux*) haveit=yes;;
10859 if test -z "$haveit"; then
10861 for x in $LDFLAGS $LIBEXPAT; do
10863 acl_save_prefix="$prefix"
10864 prefix="$acl_final_prefix"
10865 acl_save_exec_prefix="$exec_prefix"
10866 exec_prefix="$acl_final_exec_prefix"
10868 exec_prefix="$acl_save_exec_prefix"
10869 prefix="$acl_save_prefix"
10871 if test "X$x" = "X-L$additional_libdir"; then
10876 if test -z "$haveit"; then
10877 if test -d "$additional_libdir"; then
10878 LIBEXPAT="${LIBEXPAT}${LIBEXPAT:+ }-L$additional_libdir"
10882 for x in $LDFLAGS $LTLIBEXPAT; do
10884 acl_save_prefix="$prefix"
10885 prefix="$acl_final_prefix"
10886 acl_save_exec_prefix="$exec_prefix"
10887 exec_prefix="$acl_final_exec_prefix"
10889 exec_prefix="$acl_save_exec_prefix"
10890 prefix="$acl_save_prefix"
10892 if test "X$x" = "X-L$additional_libdir"; then
10897 if test -z "$haveit"; then
10898 if test -d "$additional_libdir"; then
10899 LTLIBEXPAT="${LTLIBEXPAT}${LTLIBEXPAT:+ }-L$additional_libdir"
10906 dir=`echo "X$dep" | sed -e 's/^X-R//'`
10907 if test "$enable_rpath" != no; then
10909 for x in $rpathdirs; do
10910 if test "X$x" = "X$dir"; then
10915 if test -z "$haveit"; then
10916 rpathdirs="$rpathdirs $dir"
10919 for x in $ltrpathdirs; do
10920 if test "X$x" = "X$dir"; then
10925 if test -z "$haveit"; then
10926 ltrpathdirs="$ltrpathdirs $dir"
10931 names_next_round="$names_next_round "`echo "X$dep" | sed -e 's/^X-l//'`
10934 names_next_round="$names_next_round "`echo "X$dep" | sed -e 's,^X.*/,,' -e 's,^lib,,' -e 's,\.la$,,'`
10937 LIBEXPAT="${LIBEXPAT}${LIBEXPAT:+ }$dep"
10938 LTLIBEXPAT="${LTLIBEXPAT}${LTLIBEXPAT:+ }$dep"
10944 LIBEXPAT="${LIBEXPAT}${LIBEXPAT:+ }-l$name"
10945 LTLIBEXPAT="${LTLIBEXPAT}${LTLIBEXPAT:+ }-l$name"
10951 if test "X$rpathdirs" != "X"; then
10952 if test -n "$hardcode_libdir_separator"; then
10954 for found_dir in $rpathdirs; do
10955 alldirs="${alldirs}${alldirs:+$hardcode_libdir_separator}$found_dir"
10957 acl_save_libdir="$libdir"
10959 eval flag=\"$hardcode_libdir_flag_spec\"
10960 libdir="$acl_save_libdir"
10961 LIBEXPAT="${LIBEXPAT}${LIBEXPAT:+ }$flag"
10963 for found_dir in $rpathdirs; do
10964 acl_save_libdir="$libdir"
10965 libdir="$found_dir"
10966 eval flag=\"$hardcode_libdir_flag_spec\"
10967 libdir="$acl_save_libdir"
10968 LIBEXPAT="${LIBEXPAT}${LIBEXPAT:+ }$flag"
10972 if test "X$ltrpathdirs" != "X"; then
10973 for found_dir in $ltrpathdirs; do
10974 LTLIBEXPAT="${LTLIBEXPAT}${LTLIBEXPAT:+ }-R$found_dir"
10979 ac_save_CPPFLAGS="$CPPFLAGS"
10981 for element in $INCEXPAT; do
10983 for x in $CPPFLAGS; do
10985 acl_save_prefix="$prefix"
10986 prefix="$acl_final_prefix"
10987 acl_save_exec_prefix="$exec_prefix"
10988 exec_prefix="$acl_final_exec_prefix"
10990 exec_prefix="$acl_save_exec_prefix"
10991 prefix="$acl_save_prefix"
10993 if test "X$x" = "X$element"; then
10998 if test -z "$haveit"; then
10999 CPPFLAGS="${CPPFLAGS}${CPPFLAGS:+ }$element"
11004 echo "$as_me:$LINENO: checking for libexpat" >&5
11005 echo $ECHO_N "checking for libexpat... $ECHO_C" >&6
11006 if test "${ac_cv_libexpat+set}" = set; then
11007 echo $ECHO_N "(cached) $ECHO_C" >&6
11010 ac_save_LIBS="$LIBS"
11011 LIBS="$LIBS $LIBEXPAT"
11012 cat >conftest.$ac_ext <<_ACEOF
11015 cat confdefs.h >>conftest.$ac_ext
11016 cat >>conftest.$ac_ext <<_ACEOF
11017 /* end confdefs.h. */
11022 XML_Parser p = XML_ParserCreate (0);
11027 rm -f conftest.$ac_objext conftest$ac_exeext
11028 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
11029 (eval $ac_link) 2>conftest.er1
11031 grep -v '^ *+' conftest.er1 >conftest.err
11033 cat conftest.err >&5
11034 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11035 (exit $ac_status); } &&
11036 { ac_try='test -z "$ac_c_werror_flag"
11037 || test ! -s conftest.err'
11038 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11039 (eval $ac_try) 2>&5
11041 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11042 (exit $ac_status); }; } &&
11043 { ac_try='test -s conftest$ac_exeext'
11044 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11045 (eval $ac_try) 2>&5
11047 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11048 (exit $ac_status); }; }; then
11051 echo "$as_me: failed program was:" >&5
11052 sed 's/^/| /' conftest.$ac_ext >&5
11056 rm -f conftest.err conftest.$ac_objext \
11057 conftest$ac_exeext conftest.$ac_ext
11058 LIBS="$ac_save_LIBS"
11061 echo "$as_me:$LINENO: result: $ac_cv_libexpat" >&5
11062 echo "${ECHO_T}$ac_cv_libexpat" >&6
11063 if test "$ac_cv_libexpat" = yes; then
11066 cat >>confdefs.h <<\_ACEOF
11067 #define HAVE_LIBEXPAT 1
11070 echo "$as_me:$LINENO: checking how to link with libexpat" >&5
11071 echo $ECHO_N "checking how to link with libexpat... $ECHO_C" >&6
11072 echo "$as_me:$LINENO: result: $LIBEXPAT" >&5
11073 echo "${ECHO_T}$LIBEXPAT" >&6
11076 CPPFLAGS="$ac_save_CPPFLAGS"
11086 if test "$HAVE_LIBEXPAT" != yes; then
11087 if test "$with_expat" = yes; then
11088 { { echo "$as_me:$LINENO: error: expat is missing or unusable" >&5
11089 echo "$as_me: error: expat is missing or unusable" >&2;}
11090 { (exit 1); exit 1; }; }
11092 { echo "$as_me:$LINENO: WARNING: expat is missing or unusable; some features may be unavailable." >&5
11093 echo "$as_me: WARNING: expat is missing or unusable; some features may be unavailable." >&2;}
11097 LIBS="$LIBS $LIBEXPAT"
11099 for ac_func in XML_StopParser
11101 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
11102 echo "$as_me:$LINENO: checking for $ac_func" >&5
11103 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
11104 if eval "test \"\${$as_ac_var+set}\" = set"; then
11105 echo $ECHO_N "(cached) $ECHO_C" >&6
11107 cat >conftest.$ac_ext <<_ACEOF
11110 cat confdefs.h >>conftest.$ac_ext
11111 cat >>conftest.$ac_ext <<_ACEOF
11112 /* end confdefs.h. */
11113 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
11114 For example, HP-UX 11i <limits.h> declares gettimeofday. */
11115 #define $ac_func innocuous_$ac_func
11117 /* System header to define __stub macros and hopefully few prototypes,
11118 which can conflict with char $ac_func (); below.
11119 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
11120 <limits.h> exists even on freestanding compilers. */
11123 # include <limits.h>
11125 # include <assert.h>
11130 /* Override any gcc2 internal prototype to avoid an error. */
11135 /* We use char because int might match the return type of a gcc2
11136 builtin and then its argument prototype would still apply. */
11138 /* The GNU C library defines this for functions which it implements
11139 to always fail with ENOSYS. Some functions are actually named
11140 something starting with __ and the normal name is an alias. */
11141 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
11144 char (*f) () = $ac_func;
11153 return f != $ac_func;
11158 rm -f conftest.$ac_objext conftest$ac_exeext
11159 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
11160 (eval $ac_link) 2>conftest.er1
11162 grep -v '^ *+' conftest.er1 >conftest.err
11164 cat conftest.err >&5
11165 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11166 (exit $ac_status); } &&
11167 { ac_try='test -z "$ac_c_werror_flag"
11168 || test ! -s conftest.err'
11169 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11170 (eval $ac_try) 2>&5
11172 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11173 (exit $ac_status); }; } &&
11174 { ac_try='test -s conftest$ac_exeext'
11175 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11176 (eval $ac_try) 2>&5
11178 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11179 (exit $ac_status); }; }; then
11180 eval "$as_ac_var=yes"
11182 echo "$as_me: failed program was:" >&5
11183 sed 's/^/| /' conftest.$ac_ext >&5
11185 eval "$as_ac_var=no"
11187 rm -f conftest.err conftest.$ac_objext \
11188 conftest$ac_exeext conftest.$ac_ext
11190 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
11191 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
11192 if test `eval echo '${'$as_ac_var'}'` = yes; then
11193 cat >>confdefs.h <<_ACEOF
11194 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
11204 # ------------------------- #
11205 # Checks for header files. #
11206 # ------------------------- #
11213 ac_header_dirent=no
11214 for ac_hdr in dirent.h sys/ndir.h sys/dir.h ndir.h; do
11215 as_ac_Header=`echo "ac_cv_header_dirent_$ac_hdr" | $as_tr_sh`
11216 echo "$as_me:$LINENO: checking for $ac_hdr that defines DIR" >&5
11217 echo $ECHO_N "checking for $ac_hdr that defines DIR... $ECHO_C" >&6
11218 if eval "test \"\${$as_ac_Header+set}\" = set"; then
11219 echo $ECHO_N "(cached) $ECHO_C" >&6
11221 cat >conftest.$ac_ext <<_ACEOF
11224 cat confdefs.h >>conftest.$ac_ext
11225 cat >>conftest.$ac_ext <<_ACEOF
11226 /* end confdefs.h. */
11227 #include <sys/types.h>
11239 rm -f conftest.$ac_objext
11240 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
11241 (eval $ac_compile) 2>conftest.er1
11243 grep -v '^ *+' conftest.er1 >conftest.err
11245 cat conftest.err >&5
11246 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11247 (exit $ac_status); } &&
11248 { ac_try='test -z "$ac_c_werror_flag"
11249 || test ! -s conftest.err'
11250 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11251 (eval $ac_try) 2>&5
11253 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11254 (exit $ac_status); }; } &&
11255 { ac_try='test -s conftest.$ac_objext'
11256 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11257 (eval $ac_try) 2>&5
11259 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11260 (exit $ac_status); }; }; then
11261 eval "$as_ac_Header=yes"
11263 echo "$as_me: failed program was:" >&5
11264 sed 's/^/| /' conftest.$ac_ext >&5
11266 eval "$as_ac_Header=no"
11268 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
11270 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
11271 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
11272 if test `eval echo '${'$as_ac_Header'}'` = yes; then
11273 cat >>confdefs.h <<_ACEOF
11274 #define `echo "HAVE_$ac_hdr" | $as_tr_cpp` 1
11277 ac_header_dirent=$ac_hdr; break
11281 # Two versions of opendir et al. are in -ldir and -lx on SCO Xenix.
11282 if test $ac_header_dirent = dirent.h; then
11283 echo "$as_me:$LINENO: checking for library containing opendir" >&5
11284 echo $ECHO_N "checking for library containing opendir... $ECHO_C" >&6
11285 if test "${ac_cv_search_opendir+set}" = set; then
11286 echo $ECHO_N "(cached) $ECHO_C" >&6
11288 ac_func_search_save_LIBS=$LIBS
11289 ac_cv_search_opendir=no
11290 cat >conftest.$ac_ext <<_ACEOF
11293 cat confdefs.h >>conftest.$ac_ext
11294 cat >>conftest.$ac_ext <<_ACEOF
11295 /* end confdefs.h. */
11297 /* Override any gcc2 internal prototype to avoid an error. */
11301 /* We use char because int might match the return type of a gcc2
11302 builtin and then its argument prototype would still apply. */
11312 rm -f conftest.$ac_objext conftest$ac_exeext
11313 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
11314 (eval $ac_link) 2>conftest.er1
11316 grep -v '^ *+' conftest.er1 >conftest.err
11318 cat conftest.err >&5
11319 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11320 (exit $ac_status); } &&
11321 { ac_try='test -z "$ac_c_werror_flag"
11322 || test ! -s conftest.err'
11323 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11324 (eval $ac_try) 2>&5
11326 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11327 (exit $ac_status); }; } &&
11328 { ac_try='test -s conftest$ac_exeext'
11329 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11330 (eval $ac_try) 2>&5
11332 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11333 (exit $ac_status); }; }; then
11334 ac_cv_search_opendir="none required"
11336 echo "$as_me: failed program was:" >&5
11337 sed 's/^/| /' conftest.$ac_ext >&5
11340 rm -f conftest.err conftest.$ac_objext \
11341 conftest$ac_exeext conftest.$ac_ext
11342 if test "$ac_cv_search_opendir" = no; then
11343 for ac_lib in dir; do
11344 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
11345 cat >conftest.$ac_ext <<_ACEOF
11348 cat confdefs.h >>conftest.$ac_ext
11349 cat >>conftest.$ac_ext <<_ACEOF
11350 /* end confdefs.h. */
11352 /* Override any gcc2 internal prototype to avoid an error. */
11356 /* We use char because int might match the return type of a gcc2
11357 builtin and then its argument prototype would still apply. */
11367 rm -f conftest.$ac_objext conftest$ac_exeext
11368 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
11369 (eval $ac_link) 2>conftest.er1
11371 grep -v '^ *+' conftest.er1 >conftest.err
11373 cat conftest.err >&5
11374 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11375 (exit $ac_status); } &&
11376 { ac_try='test -z "$ac_c_werror_flag"
11377 || test ! -s conftest.err'
11378 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11379 (eval $ac_try) 2>&5
11381 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11382 (exit $ac_status); }; } &&
11383 { ac_try='test -s conftest$ac_exeext'
11384 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11385 (eval $ac_try) 2>&5
11387 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11388 (exit $ac_status); }; }; then
11389 ac_cv_search_opendir="-l$ac_lib"
11392 echo "$as_me: failed program was:" >&5
11393 sed 's/^/| /' conftest.$ac_ext >&5
11396 rm -f conftest.err conftest.$ac_objext \
11397 conftest$ac_exeext conftest.$ac_ext
11400 LIBS=$ac_func_search_save_LIBS
11402 echo "$as_me:$LINENO: result: $ac_cv_search_opendir" >&5
11403 echo "${ECHO_T}$ac_cv_search_opendir" >&6
11404 if test "$ac_cv_search_opendir" != no; then
11405 test "$ac_cv_search_opendir" = "none required" || LIBS="$ac_cv_search_opendir $LIBS"
11410 echo "$as_me:$LINENO: checking for library containing opendir" >&5
11411 echo $ECHO_N "checking for library containing opendir... $ECHO_C" >&6
11412 if test "${ac_cv_search_opendir+set}" = set; then
11413 echo $ECHO_N "(cached) $ECHO_C" >&6
11415 ac_func_search_save_LIBS=$LIBS
11416 ac_cv_search_opendir=no
11417 cat >conftest.$ac_ext <<_ACEOF
11420 cat confdefs.h >>conftest.$ac_ext
11421 cat >>conftest.$ac_ext <<_ACEOF
11422 /* end confdefs.h. */
11424 /* Override any gcc2 internal prototype to avoid an error. */
11428 /* We use char because int might match the return type of a gcc2
11429 builtin and then its argument prototype would still apply. */
11439 rm -f conftest.$ac_objext conftest$ac_exeext
11440 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
11441 (eval $ac_link) 2>conftest.er1
11443 grep -v '^ *+' conftest.er1 >conftest.err
11445 cat conftest.err >&5
11446 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11447 (exit $ac_status); } &&
11448 { ac_try='test -z "$ac_c_werror_flag"
11449 || test ! -s conftest.err'
11450 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11451 (eval $ac_try) 2>&5
11453 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11454 (exit $ac_status); }; } &&
11455 { ac_try='test -s conftest$ac_exeext'
11456 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11457 (eval $ac_try) 2>&5
11459 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11460 (exit $ac_status); }; }; then
11461 ac_cv_search_opendir="none required"
11463 echo "$as_me: failed program was:" >&5
11464 sed 's/^/| /' conftest.$ac_ext >&5
11467 rm -f conftest.err conftest.$ac_objext \
11468 conftest$ac_exeext conftest.$ac_ext
11469 if test "$ac_cv_search_opendir" = no; then
11470 for ac_lib in x; do
11471 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
11472 cat >conftest.$ac_ext <<_ACEOF
11475 cat confdefs.h >>conftest.$ac_ext
11476 cat >>conftest.$ac_ext <<_ACEOF
11477 /* end confdefs.h. */
11479 /* Override any gcc2 internal prototype to avoid an error. */
11483 /* We use char because int might match the return type of a gcc2
11484 builtin and then its argument prototype would still apply. */
11494 rm -f conftest.$ac_objext conftest$ac_exeext
11495 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
11496 (eval $ac_link) 2>conftest.er1
11498 grep -v '^ *+' conftest.er1 >conftest.err
11500 cat conftest.err >&5
11501 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11502 (exit $ac_status); } &&
11503 { ac_try='test -z "$ac_c_werror_flag"
11504 || test ! -s conftest.err'
11505 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11506 (eval $ac_try) 2>&5
11508 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11509 (exit $ac_status); }; } &&
11510 { ac_try='test -s conftest$ac_exeext'
11511 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11512 (eval $ac_try) 2>&5
11514 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11515 (exit $ac_status); }; }; then
11516 ac_cv_search_opendir="-l$ac_lib"
11519 echo "$as_me: failed program was:" >&5
11520 sed 's/^/| /' conftest.$ac_ext >&5
11523 rm -f conftest.err conftest.$ac_objext \
11524 conftest$ac_exeext conftest.$ac_ext
11527 LIBS=$ac_func_search_save_LIBS
11529 echo "$as_me:$LINENO: result: $ac_cv_search_opendir" >&5
11530 echo "${ECHO_T}$ac_cv_search_opendir" >&6
11531 if test "$ac_cv_search_opendir" != no; then
11532 test "$ac_cv_search_opendir" = "none required" || LIBS="$ac_cv_search_opendir $LIBS"
11538 echo "$as_me:$LINENO: checking whether stat file-mode macros are broken" >&5
11539 echo $ECHO_N "checking whether stat file-mode macros are broken... $ECHO_C" >&6
11540 if test "${ac_cv_header_stat_broken+set}" = set; then
11541 echo $ECHO_N "(cached) $ECHO_C" >&6
11543 cat >conftest.$ac_ext <<_ACEOF
11546 cat confdefs.h >>conftest.$ac_ext
11547 cat >>conftest.$ac_ext <<_ACEOF
11548 /* end confdefs.h. */
11549 #include <sys/types.h>
11550 #include <sys/stat.h>
11552 #if defined(S_ISBLK) && defined(S_IFDIR)
11553 # if S_ISBLK (S_IFDIR)
11558 #if defined(S_ISBLK) && defined(S_IFCHR)
11559 # if S_ISBLK (S_IFCHR)
11564 #if defined(S_ISLNK) && defined(S_IFREG)
11565 # if S_ISLNK (S_IFREG)
11570 #if defined(S_ISSOCK) && defined(S_IFREG)
11571 # if S_ISSOCK (S_IFREG)
11577 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
11578 $EGREP "You lose" >/dev/null 2>&1; then
11579 ac_cv_header_stat_broken=yes
11581 ac_cv_header_stat_broken=no
11586 echo "$as_me:$LINENO: result: $ac_cv_header_stat_broken" >&5
11587 echo "${ECHO_T}$ac_cv_header_stat_broken" >&6
11588 if test $ac_cv_header_stat_broken = yes; then
11590 cat >>confdefs.h <<\_ACEOF
11591 #define STAT_MACROS_BROKEN 1
11596 echo "$as_me:$LINENO: checking for ANSI C header files" >&5
11597 echo $ECHO_N "checking for ANSI C header files... $ECHO_C" >&6
11598 if test "${ac_cv_header_stdc+set}" = set; then
11599 echo $ECHO_N "(cached) $ECHO_C" >&6
11601 cat >conftest.$ac_ext <<_ACEOF
11604 cat confdefs.h >>conftest.$ac_ext
11605 cat >>conftest.$ac_ext <<_ACEOF
11606 /* end confdefs.h. */
11607 #include <stdlib.h>
11608 #include <stdarg.h>
11609 #include <string.h>
11620 rm -f conftest.$ac_objext
11621 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
11622 (eval $ac_compile) 2>conftest.er1
11624 grep -v '^ *+' conftest.er1 >conftest.err
11626 cat conftest.err >&5
11627 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11628 (exit $ac_status); } &&
11629 { ac_try='test -z "$ac_c_werror_flag"
11630 || test ! -s conftest.err'
11631 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11632 (eval $ac_try) 2>&5
11634 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11635 (exit $ac_status); }; } &&
11636 { ac_try='test -s conftest.$ac_objext'
11637 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11638 (eval $ac_try) 2>&5
11640 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11641 (exit $ac_status); }; }; then
11642 ac_cv_header_stdc=yes
11644 echo "$as_me: failed program was:" >&5
11645 sed 's/^/| /' conftest.$ac_ext >&5
11647 ac_cv_header_stdc=no
11649 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
11651 if test $ac_cv_header_stdc = yes; then
11652 # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
11653 cat >conftest.$ac_ext <<_ACEOF
11656 cat confdefs.h >>conftest.$ac_ext
11657 cat >>conftest.$ac_ext <<_ACEOF
11658 /* end confdefs.h. */
11659 #include <string.h>
11662 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
11663 $EGREP "memchr" >/dev/null 2>&1; then
11666 ac_cv_header_stdc=no
11672 if test $ac_cv_header_stdc = yes; then
11673 # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
11674 cat >conftest.$ac_ext <<_ACEOF
11677 cat confdefs.h >>conftest.$ac_ext
11678 cat >>conftest.$ac_ext <<_ACEOF
11679 /* end confdefs.h. */
11680 #include <stdlib.h>
11683 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
11684 $EGREP "free" >/dev/null 2>&1; then
11687 ac_cv_header_stdc=no
11693 if test $ac_cv_header_stdc = yes; then
11694 # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
11695 if test "$cross_compiling" = yes; then
11698 cat >conftest.$ac_ext <<_ACEOF
11701 cat confdefs.h >>conftest.$ac_ext
11702 cat >>conftest.$ac_ext <<_ACEOF
11703 /* end confdefs.h. */
11705 #if ((' ' & 0x0FF) == 0x020)
11706 # define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
11707 # define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
11709 # define ISLOWER(c) \
11710 (('a' <= (c) && (c) <= 'i') \
11711 || ('j' <= (c) && (c) <= 'r') \
11712 || ('s' <= (c) && (c) <= 'z'))
11713 # define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
11716 #define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
11721 for (i = 0; i < 256; i++)
11722 if (XOR (islower (i), ISLOWER (i))
11723 || toupper (i) != TOUPPER (i))
11728 rm -f conftest$ac_exeext
11729 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
11730 (eval $ac_link) 2>&5
11732 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11733 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
11734 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11735 (eval $ac_try) 2>&5
11737 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11738 (exit $ac_status); }; }; then
11741 echo "$as_me: program exited with status $ac_status" >&5
11742 echo "$as_me: failed program was:" >&5
11743 sed 's/^/| /' conftest.$ac_ext >&5
11745 ( exit $ac_status )
11746 ac_cv_header_stdc=no
11748 rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
11752 echo "$as_me:$LINENO: result: $ac_cv_header_stdc" >&5
11753 echo "${ECHO_T}$ac_cv_header_stdc" >&6
11754 if test $ac_cv_header_stdc = yes; then
11756 cat >>confdefs.h <<\_ACEOF
11757 #define STDC_HEADERS 1
11763 for ac_header in nlist.h
11765 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
11766 if eval "test \"\${$as_ac_Header+set}\" = set"; then
11767 echo "$as_me:$LINENO: checking for $ac_header" >&5
11768 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
11769 if eval "test \"\${$as_ac_Header+set}\" = set"; then
11770 echo $ECHO_N "(cached) $ECHO_C" >&6
11772 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
11773 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
11775 # Is the header compilable?
11776 echo "$as_me:$LINENO: checking $ac_header usability" >&5
11777 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
11778 cat >conftest.$ac_ext <<_ACEOF
11781 cat confdefs.h >>conftest.$ac_ext
11782 cat >>conftest.$ac_ext <<_ACEOF
11783 /* end confdefs.h. */
11784 $ac_includes_default
11785 #include <$ac_header>
11787 rm -f conftest.$ac_objext
11788 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
11789 (eval $ac_compile) 2>conftest.er1
11791 grep -v '^ *+' conftest.er1 >conftest.err
11793 cat conftest.err >&5
11794 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11795 (exit $ac_status); } &&
11796 { ac_try='test -z "$ac_c_werror_flag"
11797 || test ! -s conftest.err'
11798 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11799 (eval $ac_try) 2>&5
11801 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11802 (exit $ac_status); }; } &&
11803 { ac_try='test -s conftest.$ac_objext'
11804 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11805 (eval $ac_try) 2>&5
11807 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11808 (exit $ac_status); }; }; then
11809 ac_header_compiler=yes
11811 echo "$as_me: failed program was:" >&5
11812 sed 's/^/| /' conftest.$ac_ext >&5
11814 ac_header_compiler=no
11816 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
11817 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
11818 echo "${ECHO_T}$ac_header_compiler" >&6
11820 # Is the header present?
11821 echo "$as_me:$LINENO: checking $ac_header presence" >&5
11822 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
11823 cat >conftest.$ac_ext <<_ACEOF
11826 cat confdefs.h >>conftest.$ac_ext
11827 cat >>conftest.$ac_ext <<_ACEOF
11828 /* end confdefs.h. */
11829 #include <$ac_header>
11831 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
11832 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
11834 grep -v '^ *+' conftest.er1 >conftest.err
11836 cat conftest.err >&5
11837 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11838 (exit $ac_status); } >/dev/null; then
11839 if test -s conftest.err; then
11840 ac_cpp_err=$ac_c_preproc_warn_flag
11841 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
11848 if test -z "$ac_cpp_err"; then
11849 ac_header_preproc=yes
11851 echo "$as_me: failed program was:" >&5
11852 sed 's/^/| /' conftest.$ac_ext >&5
11854 ac_header_preproc=no
11856 rm -f conftest.err conftest.$ac_ext
11857 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
11858 echo "${ECHO_T}$ac_header_preproc" >&6
11860 # So? What about this header?
11861 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
11863 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
11864 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
11865 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
11866 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
11867 ac_header_preproc=yes
11870 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
11871 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
11872 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
11873 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
11874 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
11875 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
11876 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
11877 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
11878 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
11879 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
11880 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
11881 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
11884 ## ------------------------------------------ ##
11885 ## Report this to the AC_PACKAGE_NAME lists. ##
11886 ## ------------------------------------------ ##
11889 sed "s/^/$as_me: WARNING: /" >&2
11892 echo "$as_me:$LINENO: checking for $ac_header" >&5
11893 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
11894 if eval "test \"\${$as_ac_Header+set}\" = set"; then
11895 echo $ECHO_N "(cached) $ECHO_C" >&6
11897 eval "$as_ac_Header=\$ac_header_preproc"
11899 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
11900 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
11903 if test `eval echo '${'$as_ac_Header'}'` = yes; then
11904 cat >>confdefs.h <<_ACEOF
11905 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
11913 for ac_header in link.h
11915 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
11916 echo "$as_me:$LINENO: checking for $ac_header" >&5
11917 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
11918 if eval "test \"\${$as_ac_Header+set}\" = set"; then
11919 echo $ECHO_N "(cached) $ECHO_C" >&6
11921 cat >conftest.$ac_ext <<_ACEOF
11924 cat confdefs.h >>conftest.$ac_ext
11925 cat >>conftest.$ac_ext <<_ACEOF
11926 /* end confdefs.h. */
11927 #if HAVE_SYS_TYPES_H
11928 # include <sys/types.h>
11931 # include <nlist.h>
11935 #include <$ac_header>
11937 rm -f conftest.$ac_objext
11938 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
11939 (eval $ac_compile) 2>conftest.er1
11941 grep -v '^ *+' conftest.er1 >conftest.err
11943 cat conftest.err >&5
11944 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11945 (exit $ac_status); } &&
11946 { ac_try='test -z "$ac_c_werror_flag"
11947 || test ! -s conftest.err'
11948 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11949 (eval $ac_try) 2>&5
11951 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11952 (exit $ac_status); }; } &&
11953 { ac_try='test -s conftest.$ac_objext'
11954 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11955 (eval $ac_try) 2>&5
11957 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11958 (exit $ac_status); }; }; then
11959 eval "$as_ac_Header=yes"
11961 echo "$as_me: failed program was:" >&5
11962 sed 's/^/| /' conftest.$ac_ext >&5
11964 eval "$as_ac_Header=no"
11966 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
11968 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
11969 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
11970 if test `eval echo '${'$as_ac_Header'}'` = yes; then
11971 cat >>confdefs.h <<_ACEOF
11972 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
11980 for ac_header in machine/reg.h
11982 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
11983 if eval "test \"\${$as_ac_Header+set}\" = set"; then
11984 echo "$as_me:$LINENO: checking for $ac_header" >&5
11985 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
11986 if eval "test \"\${$as_ac_Header+set}\" = set"; then
11987 echo $ECHO_N "(cached) $ECHO_C" >&6
11989 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
11990 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
11992 # Is the header compilable?
11993 echo "$as_me:$LINENO: checking $ac_header usability" >&5
11994 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
11995 cat >conftest.$ac_ext <<_ACEOF
11998 cat confdefs.h >>conftest.$ac_ext
11999 cat >>conftest.$ac_ext <<_ACEOF
12000 /* end confdefs.h. */
12001 $ac_includes_default
12002 #include <$ac_header>
12004 rm -f conftest.$ac_objext
12005 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
12006 (eval $ac_compile) 2>conftest.er1
12008 grep -v '^ *+' conftest.er1 >conftest.err
12010 cat conftest.err >&5
12011 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12012 (exit $ac_status); } &&
12013 { ac_try='test -z "$ac_c_werror_flag"
12014 || test ! -s conftest.err'
12015 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12016 (eval $ac_try) 2>&5
12018 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12019 (exit $ac_status); }; } &&
12020 { ac_try='test -s conftest.$ac_objext'
12021 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12022 (eval $ac_try) 2>&5
12024 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12025 (exit $ac_status); }; }; then
12026 ac_header_compiler=yes
12028 echo "$as_me: failed program was:" >&5
12029 sed 's/^/| /' conftest.$ac_ext >&5
12031 ac_header_compiler=no
12033 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
12034 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
12035 echo "${ECHO_T}$ac_header_compiler" >&6
12037 # Is the header present?
12038 echo "$as_me:$LINENO: checking $ac_header presence" >&5
12039 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
12040 cat >conftest.$ac_ext <<_ACEOF
12043 cat confdefs.h >>conftest.$ac_ext
12044 cat >>conftest.$ac_ext <<_ACEOF
12045 /* end confdefs.h. */
12046 #include <$ac_header>
12048 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
12049 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
12051 grep -v '^ *+' conftest.er1 >conftest.err
12053 cat conftest.err >&5
12054 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12055 (exit $ac_status); } >/dev/null; then
12056 if test -s conftest.err; then
12057 ac_cpp_err=$ac_c_preproc_warn_flag
12058 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
12065 if test -z "$ac_cpp_err"; then
12066 ac_header_preproc=yes
12068 echo "$as_me: failed program was:" >&5
12069 sed 's/^/| /' conftest.$ac_ext >&5
12071 ac_header_preproc=no
12073 rm -f conftest.err conftest.$ac_ext
12074 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
12075 echo "${ECHO_T}$ac_header_preproc" >&6
12077 # So? What about this header?
12078 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
12080 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
12081 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
12082 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
12083 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
12084 ac_header_preproc=yes
12087 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
12088 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
12089 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
12090 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
12091 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
12092 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
12093 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
12094 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
12095 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
12096 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
12097 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
12098 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
12101 ## ------------------------------------------ ##
12102 ## Report this to the AC_PACKAGE_NAME lists. ##
12103 ## ------------------------------------------ ##
12106 sed "s/^/$as_me: WARNING: /" >&2
12109 echo "$as_me:$LINENO: checking for $ac_header" >&5
12110 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
12111 if eval "test \"\${$as_ac_Header+set}\" = set"; then
12112 echo $ECHO_N "(cached) $ECHO_C" >&6
12114 eval "$as_ac_Header=\$ac_header_preproc"
12116 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
12117 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
12120 if test `eval echo '${'$as_ac_Header'}'` = yes; then
12121 cat >>confdefs.h <<_ACEOF
12122 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
12131 for ac_header in poll.h sys/poll.h
12133 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
12134 if eval "test \"\${$as_ac_Header+set}\" = set"; then
12135 echo "$as_me:$LINENO: checking for $ac_header" >&5
12136 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
12137 if eval "test \"\${$as_ac_Header+set}\" = set"; then
12138 echo $ECHO_N "(cached) $ECHO_C" >&6
12140 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
12141 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
12143 # Is the header compilable?
12144 echo "$as_me:$LINENO: checking $ac_header usability" >&5
12145 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
12146 cat >conftest.$ac_ext <<_ACEOF
12149 cat confdefs.h >>conftest.$ac_ext
12150 cat >>conftest.$ac_ext <<_ACEOF
12151 /* end confdefs.h. */
12152 $ac_includes_default
12153 #include <$ac_header>
12155 rm -f conftest.$ac_objext
12156 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
12157 (eval $ac_compile) 2>conftest.er1
12159 grep -v '^ *+' conftest.er1 >conftest.err
12161 cat conftest.err >&5
12162 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12163 (exit $ac_status); } &&
12164 { ac_try='test -z "$ac_c_werror_flag"
12165 || test ! -s conftest.err'
12166 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12167 (eval $ac_try) 2>&5
12169 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12170 (exit $ac_status); }; } &&
12171 { ac_try='test -s conftest.$ac_objext'
12172 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12173 (eval $ac_try) 2>&5
12175 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12176 (exit $ac_status); }; }; then
12177 ac_header_compiler=yes
12179 echo "$as_me: failed program was:" >&5
12180 sed 's/^/| /' conftest.$ac_ext >&5
12182 ac_header_compiler=no
12184 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
12185 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
12186 echo "${ECHO_T}$ac_header_compiler" >&6
12188 # Is the header present?
12189 echo "$as_me:$LINENO: checking $ac_header presence" >&5
12190 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
12191 cat >conftest.$ac_ext <<_ACEOF
12194 cat confdefs.h >>conftest.$ac_ext
12195 cat >>conftest.$ac_ext <<_ACEOF
12196 /* end confdefs.h. */
12197 #include <$ac_header>
12199 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
12200 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
12202 grep -v '^ *+' conftest.er1 >conftest.err
12204 cat conftest.err >&5
12205 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12206 (exit $ac_status); } >/dev/null; then
12207 if test -s conftest.err; then
12208 ac_cpp_err=$ac_c_preproc_warn_flag
12209 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
12216 if test -z "$ac_cpp_err"; then
12217 ac_header_preproc=yes
12219 echo "$as_me: failed program was:" >&5
12220 sed 's/^/| /' conftest.$ac_ext >&5
12222 ac_header_preproc=no
12224 rm -f conftest.err conftest.$ac_ext
12225 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
12226 echo "${ECHO_T}$ac_header_preproc" >&6
12228 # So? What about this header?
12229 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
12231 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
12232 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
12233 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
12234 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
12235 ac_header_preproc=yes
12238 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
12239 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
12240 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
12241 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
12242 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
12243 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
12244 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
12245 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
12246 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
12247 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
12248 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
12249 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
12252 ## ------------------------------------------ ##
12253 ## Report this to the AC_PACKAGE_NAME lists. ##
12254 ## ------------------------------------------ ##
12257 sed "s/^/$as_me: WARNING: /" >&2
12260 echo "$as_me:$LINENO: checking for $ac_header" >&5
12261 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
12262 if eval "test \"\${$as_ac_Header+set}\" = set"; then
12263 echo $ECHO_N "(cached) $ECHO_C" >&6
12265 eval "$as_ac_Header=\$ac_header_preproc"
12267 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
12268 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
12271 if test `eval echo '${'$as_ac_Header'}'` = yes; then
12272 cat >>confdefs.h <<_ACEOF
12273 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
12283 for ac_header in proc_service.h thread_db.h gnu/libc-version.h
12285 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
12286 if eval "test \"\${$as_ac_Header+set}\" = set"; then
12287 echo "$as_me:$LINENO: checking for $ac_header" >&5
12288 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
12289 if eval "test \"\${$as_ac_Header+set}\" = set"; then
12290 echo $ECHO_N "(cached) $ECHO_C" >&6
12292 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
12293 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
12295 # Is the header compilable?
12296 echo "$as_me:$LINENO: checking $ac_header usability" >&5
12297 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
12298 cat >conftest.$ac_ext <<_ACEOF
12301 cat confdefs.h >>conftest.$ac_ext
12302 cat >>conftest.$ac_ext <<_ACEOF
12303 /* end confdefs.h. */
12304 $ac_includes_default
12305 #include <$ac_header>
12307 rm -f conftest.$ac_objext
12308 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
12309 (eval $ac_compile) 2>conftest.er1
12311 grep -v '^ *+' conftest.er1 >conftest.err
12313 cat conftest.err >&5
12314 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12315 (exit $ac_status); } &&
12316 { ac_try='test -z "$ac_c_werror_flag"
12317 || test ! -s conftest.err'
12318 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12319 (eval $ac_try) 2>&5
12321 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12322 (exit $ac_status); }; } &&
12323 { ac_try='test -s conftest.$ac_objext'
12324 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12325 (eval $ac_try) 2>&5
12327 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12328 (exit $ac_status); }; }; then
12329 ac_header_compiler=yes
12331 echo "$as_me: failed program was:" >&5
12332 sed 's/^/| /' conftest.$ac_ext >&5
12334 ac_header_compiler=no
12336 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
12337 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
12338 echo "${ECHO_T}$ac_header_compiler" >&6
12340 # Is the header present?
12341 echo "$as_me:$LINENO: checking $ac_header presence" >&5
12342 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
12343 cat >conftest.$ac_ext <<_ACEOF
12346 cat confdefs.h >>conftest.$ac_ext
12347 cat >>conftest.$ac_ext <<_ACEOF
12348 /* end confdefs.h. */
12349 #include <$ac_header>
12351 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
12352 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
12354 grep -v '^ *+' conftest.er1 >conftest.err
12356 cat conftest.err >&5
12357 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12358 (exit $ac_status); } >/dev/null; then
12359 if test -s conftest.err; then
12360 ac_cpp_err=$ac_c_preproc_warn_flag
12361 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
12368 if test -z "$ac_cpp_err"; then
12369 ac_header_preproc=yes
12371 echo "$as_me: failed program was:" >&5
12372 sed 's/^/| /' conftest.$ac_ext >&5
12374 ac_header_preproc=no
12376 rm -f conftest.err conftest.$ac_ext
12377 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
12378 echo "${ECHO_T}$ac_header_preproc" >&6
12380 # So? What about this header?
12381 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
12383 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
12384 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
12385 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
12386 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
12387 ac_header_preproc=yes
12390 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
12391 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
12392 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
12393 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
12394 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
12395 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
12396 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
12397 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
12398 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
12399 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
12400 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
12401 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
12404 ## ------------------------------------------ ##
12405 ## Report this to the AC_PACKAGE_NAME lists. ##
12406 ## ------------------------------------------ ##
12409 sed "s/^/$as_me: WARNING: /" >&2
12412 echo "$as_me:$LINENO: checking for $ac_header" >&5
12413 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
12414 if eval "test \"\${$as_ac_Header+set}\" = set"; then
12415 echo $ECHO_N "(cached) $ECHO_C" >&6
12417 eval "$as_ac_Header=\$ac_header_preproc"
12419 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
12420 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
12423 if test `eval echo '${'$as_ac_Header'}'` = yes; then
12424 cat >>confdefs.h <<_ACEOF
12425 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
12433 for ac_header in signal.h
12435 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
12436 if eval "test \"\${$as_ac_Header+set}\" = set"; then
12437 echo "$as_me:$LINENO: checking for $ac_header" >&5
12438 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
12439 if eval "test \"\${$as_ac_Header+set}\" = set"; then
12440 echo $ECHO_N "(cached) $ECHO_C" >&6
12442 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
12443 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
12445 # Is the header compilable?
12446 echo "$as_me:$LINENO: checking $ac_header usability" >&5
12447 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
12448 cat >conftest.$ac_ext <<_ACEOF
12451 cat confdefs.h >>conftest.$ac_ext
12452 cat >>conftest.$ac_ext <<_ACEOF
12453 /* end confdefs.h. */
12454 $ac_includes_default
12455 #include <$ac_header>
12457 rm -f conftest.$ac_objext
12458 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
12459 (eval $ac_compile) 2>conftest.er1
12461 grep -v '^ *+' conftest.er1 >conftest.err
12463 cat conftest.err >&5
12464 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12465 (exit $ac_status); } &&
12466 { ac_try='test -z "$ac_c_werror_flag"
12467 || test ! -s conftest.err'
12468 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12469 (eval $ac_try) 2>&5
12471 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12472 (exit $ac_status); }; } &&
12473 { ac_try='test -s conftest.$ac_objext'
12474 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12475 (eval $ac_try) 2>&5
12477 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12478 (exit $ac_status); }; }; then
12479 ac_header_compiler=yes
12481 echo "$as_me: failed program was:" >&5
12482 sed 's/^/| /' conftest.$ac_ext >&5
12484 ac_header_compiler=no
12486 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
12487 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
12488 echo "${ECHO_T}$ac_header_compiler" >&6
12490 # Is the header present?
12491 echo "$as_me:$LINENO: checking $ac_header presence" >&5
12492 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
12493 cat >conftest.$ac_ext <<_ACEOF
12496 cat confdefs.h >>conftest.$ac_ext
12497 cat >>conftest.$ac_ext <<_ACEOF
12498 /* end confdefs.h. */
12499 #include <$ac_header>
12501 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
12502 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
12504 grep -v '^ *+' conftest.er1 >conftest.err
12506 cat conftest.err >&5
12507 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12508 (exit $ac_status); } >/dev/null; then
12509 if test -s conftest.err; then
12510 ac_cpp_err=$ac_c_preproc_warn_flag
12511 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
12518 if test -z "$ac_cpp_err"; then
12519 ac_header_preproc=yes
12521 echo "$as_me: failed program was:" >&5
12522 sed 's/^/| /' conftest.$ac_ext >&5
12524 ac_header_preproc=no
12526 rm -f conftest.err conftest.$ac_ext
12527 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
12528 echo "${ECHO_T}$ac_header_preproc" >&6
12530 # So? What about this header?
12531 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
12533 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
12534 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
12535 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
12536 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
12537 ac_header_preproc=yes
12540 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
12541 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
12542 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
12543 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
12544 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
12545 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
12546 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
12547 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
12548 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
12549 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
12550 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
12551 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
12554 ## ------------------------------------------ ##
12555 ## Report this to the AC_PACKAGE_NAME lists. ##
12556 ## ------------------------------------------ ##
12559 sed "s/^/$as_me: WARNING: /" >&2
12562 echo "$as_me:$LINENO: checking for $ac_header" >&5
12563 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
12564 if eval "test \"\${$as_ac_Header+set}\" = set"; then
12565 echo $ECHO_N "(cached) $ECHO_C" >&6
12567 eval "$as_ac_Header=\$ac_header_preproc"
12569 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
12570 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
12573 if test `eval echo '${'$as_ac_Header'}'` = yes; then
12574 cat >>confdefs.h <<_ACEOF
12575 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
12583 for ac_header in stddef.h
12585 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
12586 if eval "test \"\${$as_ac_Header+set}\" = set"; then
12587 echo "$as_me:$LINENO: checking for $ac_header" >&5
12588 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
12589 if eval "test \"\${$as_ac_Header+set}\" = set"; then
12590 echo $ECHO_N "(cached) $ECHO_C" >&6
12592 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
12593 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
12595 # Is the header compilable?
12596 echo "$as_me:$LINENO: checking $ac_header usability" >&5
12597 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
12598 cat >conftest.$ac_ext <<_ACEOF
12601 cat confdefs.h >>conftest.$ac_ext
12602 cat >>conftest.$ac_ext <<_ACEOF
12603 /* end confdefs.h. */
12604 $ac_includes_default
12605 #include <$ac_header>
12607 rm -f conftest.$ac_objext
12608 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
12609 (eval $ac_compile) 2>conftest.er1
12611 grep -v '^ *+' conftest.er1 >conftest.err
12613 cat conftest.err >&5
12614 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12615 (exit $ac_status); } &&
12616 { ac_try='test -z "$ac_c_werror_flag"
12617 || test ! -s conftest.err'
12618 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12619 (eval $ac_try) 2>&5
12621 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12622 (exit $ac_status); }; } &&
12623 { ac_try='test -s conftest.$ac_objext'
12624 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12625 (eval $ac_try) 2>&5
12627 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12628 (exit $ac_status); }; }; then
12629 ac_header_compiler=yes
12631 echo "$as_me: failed program was:" >&5
12632 sed 's/^/| /' conftest.$ac_ext >&5
12634 ac_header_compiler=no
12636 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
12637 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
12638 echo "${ECHO_T}$ac_header_compiler" >&6
12640 # Is the header present?
12641 echo "$as_me:$LINENO: checking $ac_header presence" >&5
12642 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
12643 cat >conftest.$ac_ext <<_ACEOF
12646 cat confdefs.h >>conftest.$ac_ext
12647 cat >>conftest.$ac_ext <<_ACEOF
12648 /* end confdefs.h. */
12649 #include <$ac_header>
12651 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
12652 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
12654 grep -v '^ *+' conftest.er1 >conftest.err
12656 cat conftest.err >&5
12657 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12658 (exit $ac_status); } >/dev/null; then
12659 if test -s conftest.err; then
12660 ac_cpp_err=$ac_c_preproc_warn_flag
12661 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
12668 if test -z "$ac_cpp_err"; then
12669 ac_header_preproc=yes
12671 echo "$as_me: failed program was:" >&5
12672 sed 's/^/| /' conftest.$ac_ext >&5
12674 ac_header_preproc=no
12676 rm -f conftest.err conftest.$ac_ext
12677 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
12678 echo "${ECHO_T}$ac_header_preproc" >&6
12680 # So? What about this header?
12681 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
12683 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
12684 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
12685 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
12686 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
12687 ac_header_preproc=yes
12690 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
12691 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
12692 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
12693 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
12694 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
12695 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
12696 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
12697 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
12698 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
12699 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
12700 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
12701 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
12704 ## ------------------------------------------ ##
12705 ## Report this to the AC_PACKAGE_NAME lists. ##
12706 ## ------------------------------------------ ##
12709 sed "s/^/$as_me: WARNING: /" >&2
12712 echo "$as_me:$LINENO: checking for $ac_header" >&5
12713 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
12714 if eval "test \"\${$as_ac_Header+set}\" = set"; then
12715 echo $ECHO_N "(cached) $ECHO_C" >&6
12717 eval "$as_ac_Header=\$ac_header_preproc"
12719 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
12720 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
12723 if test `eval echo '${'$as_ac_Header'}'` = yes; then
12724 cat >>confdefs.h <<_ACEOF
12725 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
12733 for ac_header in stdlib.h
12735 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
12736 if eval "test \"\${$as_ac_Header+set}\" = set"; then
12737 echo "$as_me:$LINENO: checking for $ac_header" >&5
12738 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
12739 if eval "test \"\${$as_ac_Header+set}\" = set"; then
12740 echo $ECHO_N "(cached) $ECHO_C" >&6
12742 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
12743 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
12745 # Is the header compilable?
12746 echo "$as_me:$LINENO: checking $ac_header usability" >&5
12747 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
12748 cat >conftest.$ac_ext <<_ACEOF
12751 cat confdefs.h >>conftest.$ac_ext
12752 cat >>conftest.$ac_ext <<_ACEOF
12753 /* end confdefs.h. */
12754 $ac_includes_default
12755 #include <$ac_header>
12757 rm -f conftest.$ac_objext
12758 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
12759 (eval $ac_compile) 2>conftest.er1
12761 grep -v '^ *+' conftest.er1 >conftest.err
12763 cat conftest.err >&5
12764 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12765 (exit $ac_status); } &&
12766 { ac_try='test -z "$ac_c_werror_flag"
12767 || test ! -s conftest.err'
12768 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12769 (eval $ac_try) 2>&5
12771 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12772 (exit $ac_status); }; } &&
12773 { ac_try='test -s conftest.$ac_objext'
12774 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12775 (eval $ac_try) 2>&5
12777 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12778 (exit $ac_status); }; }; then
12779 ac_header_compiler=yes
12781 echo "$as_me: failed program was:" >&5
12782 sed 's/^/| /' conftest.$ac_ext >&5
12784 ac_header_compiler=no
12786 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
12787 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
12788 echo "${ECHO_T}$ac_header_compiler" >&6
12790 # Is the header present?
12791 echo "$as_me:$LINENO: checking $ac_header presence" >&5
12792 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
12793 cat >conftest.$ac_ext <<_ACEOF
12796 cat confdefs.h >>conftest.$ac_ext
12797 cat >>conftest.$ac_ext <<_ACEOF
12798 /* end confdefs.h. */
12799 #include <$ac_header>
12801 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
12802 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
12804 grep -v '^ *+' conftest.er1 >conftest.err
12806 cat conftest.err >&5
12807 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12808 (exit $ac_status); } >/dev/null; then
12809 if test -s conftest.err; then
12810 ac_cpp_err=$ac_c_preproc_warn_flag
12811 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
12818 if test -z "$ac_cpp_err"; then
12819 ac_header_preproc=yes
12821 echo "$as_me: failed program was:" >&5
12822 sed 's/^/| /' conftest.$ac_ext >&5
12824 ac_header_preproc=no
12826 rm -f conftest.err conftest.$ac_ext
12827 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
12828 echo "${ECHO_T}$ac_header_preproc" >&6
12830 # So? What about this header?
12831 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
12833 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
12834 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
12835 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
12836 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
12837 ac_header_preproc=yes
12840 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
12841 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
12842 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
12843 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
12844 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
12845 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
12846 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
12847 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
12848 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
12849 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
12850 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
12851 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
12854 ## ------------------------------------------ ##
12855 ## Report this to the AC_PACKAGE_NAME lists. ##
12856 ## ------------------------------------------ ##
12859 sed "s/^/$as_me: WARNING: /" >&2
12862 echo "$as_me:$LINENO: checking for $ac_header" >&5
12863 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
12864 if eval "test \"\${$as_ac_Header+set}\" = set"; then
12865 echo $ECHO_N "(cached) $ECHO_C" >&6
12867 eval "$as_ac_Header=\$ac_header_preproc"
12869 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
12870 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
12873 if test `eval echo '${'$as_ac_Header'}'` = yes; then
12874 cat >>confdefs.h <<_ACEOF
12875 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
12885 for ac_header in string.h memory.h strings.h
12887 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
12888 if eval "test \"\${$as_ac_Header+set}\" = set"; then
12889 echo "$as_me:$LINENO: checking for $ac_header" >&5
12890 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
12891 if eval "test \"\${$as_ac_Header+set}\" = set"; then
12892 echo $ECHO_N "(cached) $ECHO_C" >&6
12894 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
12895 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
12897 # Is the header compilable?
12898 echo "$as_me:$LINENO: checking $ac_header usability" >&5
12899 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
12900 cat >conftest.$ac_ext <<_ACEOF
12903 cat confdefs.h >>conftest.$ac_ext
12904 cat >>conftest.$ac_ext <<_ACEOF
12905 /* end confdefs.h. */
12906 $ac_includes_default
12907 #include <$ac_header>
12909 rm -f conftest.$ac_objext
12910 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
12911 (eval $ac_compile) 2>conftest.er1
12913 grep -v '^ *+' conftest.er1 >conftest.err
12915 cat conftest.err >&5
12916 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12917 (exit $ac_status); } &&
12918 { ac_try='test -z "$ac_c_werror_flag"
12919 || test ! -s conftest.err'
12920 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12921 (eval $ac_try) 2>&5
12923 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12924 (exit $ac_status); }; } &&
12925 { ac_try='test -s conftest.$ac_objext'
12926 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12927 (eval $ac_try) 2>&5
12929 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12930 (exit $ac_status); }; }; then
12931 ac_header_compiler=yes
12933 echo "$as_me: failed program was:" >&5
12934 sed 's/^/| /' conftest.$ac_ext >&5
12936 ac_header_compiler=no
12938 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
12939 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
12940 echo "${ECHO_T}$ac_header_compiler" >&6
12942 # Is the header present?
12943 echo "$as_me:$LINENO: checking $ac_header presence" >&5
12944 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
12945 cat >conftest.$ac_ext <<_ACEOF
12948 cat confdefs.h >>conftest.$ac_ext
12949 cat >>conftest.$ac_ext <<_ACEOF
12950 /* end confdefs.h. */
12951 #include <$ac_header>
12953 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
12954 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
12956 grep -v '^ *+' conftest.er1 >conftest.err
12958 cat conftest.err >&5
12959 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12960 (exit $ac_status); } >/dev/null; then
12961 if test -s conftest.err; then
12962 ac_cpp_err=$ac_c_preproc_warn_flag
12963 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
12970 if test -z "$ac_cpp_err"; then
12971 ac_header_preproc=yes
12973 echo "$as_me: failed program was:" >&5
12974 sed 's/^/| /' conftest.$ac_ext >&5
12976 ac_header_preproc=no
12978 rm -f conftest.err conftest.$ac_ext
12979 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
12980 echo "${ECHO_T}$ac_header_preproc" >&6
12982 # So? What about this header?
12983 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
12985 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
12986 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
12987 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
12988 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
12989 ac_header_preproc=yes
12992 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
12993 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
12994 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
12995 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
12996 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
12997 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
12998 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
12999 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
13000 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
13001 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
13002 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
13003 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
13006 ## ------------------------------------------ ##
13007 ## Report this to the AC_PACKAGE_NAME lists. ##
13008 ## ------------------------------------------ ##
13011 sed "s/^/$as_me: WARNING: /" >&2
13014 echo "$as_me:$LINENO: checking for $ac_header" >&5
13015 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
13016 if eval "test \"\${$as_ac_Header+set}\" = set"; then
13017 echo $ECHO_N "(cached) $ECHO_C" >&6
13019 eval "$as_ac_Header=\$ac_header_preproc"
13021 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
13022 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
13025 if test `eval echo '${'$as_ac_Header'}'` = yes; then
13026 cat >>confdefs.h <<_ACEOF
13027 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
13035 for ac_header in sys/fault.h
13037 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
13038 if eval "test \"\${$as_ac_Header+set}\" = set"; then
13039 echo "$as_me:$LINENO: checking for $ac_header" >&5
13040 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
13041 if eval "test \"\${$as_ac_Header+set}\" = set"; then
13042 echo $ECHO_N "(cached) $ECHO_C" >&6
13044 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
13045 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
13047 # Is the header compilable?
13048 echo "$as_me:$LINENO: checking $ac_header usability" >&5
13049 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
13050 cat >conftest.$ac_ext <<_ACEOF
13053 cat confdefs.h >>conftest.$ac_ext
13054 cat >>conftest.$ac_ext <<_ACEOF
13055 /* end confdefs.h. */
13056 $ac_includes_default
13057 #include <$ac_header>
13059 rm -f conftest.$ac_objext
13060 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
13061 (eval $ac_compile) 2>conftest.er1
13063 grep -v '^ *+' conftest.er1 >conftest.err
13065 cat conftest.err >&5
13066 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13067 (exit $ac_status); } &&
13068 { ac_try='test -z "$ac_c_werror_flag"
13069 || test ! -s conftest.err'
13070 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13071 (eval $ac_try) 2>&5
13073 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13074 (exit $ac_status); }; } &&
13075 { ac_try='test -s conftest.$ac_objext'
13076 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13077 (eval $ac_try) 2>&5
13079 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13080 (exit $ac_status); }; }; then
13081 ac_header_compiler=yes
13083 echo "$as_me: failed program was:" >&5
13084 sed 's/^/| /' conftest.$ac_ext >&5
13086 ac_header_compiler=no
13088 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
13089 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
13090 echo "${ECHO_T}$ac_header_compiler" >&6
13092 # Is the header present?
13093 echo "$as_me:$LINENO: checking $ac_header presence" >&5
13094 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
13095 cat >conftest.$ac_ext <<_ACEOF
13098 cat confdefs.h >>conftest.$ac_ext
13099 cat >>conftest.$ac_ext <<_ACEOF
13100 /* end confdefs.h. */
13101 #include <$ac_header>
13103 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
13104 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
13106 grep -v '^ *+' conftest.er1 >conftest.err
13108 cat conftest.err >&5
13109 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13110 (exit $ac_status); } >/dev/null; then
13111 if test -s conftest.err; then
13112 ac_cpp_err=$ac_c_preproc_warn_flag
13113 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
13120 if test -z "$ac_cpp_err"; then
13121 ac_header_preproc=yes
13123 echo "$as_me: failed program was:" >&5
13124 sed 's/^/| /' conftest.$ac_ext >&5
13126 ac_header_preproc=no
13128 rm -f conftest.err conftest.$ac_ext
13129 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
13130 echo "${ECHO_T}$ac_header_preproc" >&6
13132 # So? What about this header?
13133 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
13135 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
13136 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
13137 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
13138 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
13139 ac_header_preproc=yes
13142 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
13143 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
13144 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
13145 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
13146 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
13147 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
13148 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
13149 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
13150 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
13151 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
13152 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
13153 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
13156 ## ------------------------------------------ ##
13157 ## Report this to the AC_PACKAGE_NAME lists. ##
13158 ## ------------------------------------------ ##
13161 sed "s/^/$as_me: WARNING: /" >&2
13164 echo "$as_me:$LINENO: checking for $ac_header" >&5
13165 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
13166 if eval "test \"\${$as_ac_Header+set}\" = set"; then
13167 echo $ECHO_N "(cached) $ECHO_C" >&6
13169 eval "$as_ac_Header=\$ac_header_preproc"
13171 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
13172 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
13175 if test `eval echo '${'$as_ac_Header'}'` = yes; then
13176 cat >>confdefs.h <<_ACEOF
13177 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
13185 for ac_header in sys/file.h
13187 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
13188 if eval "test \"\${$as_ac_Header+set}\" = set"; then
13189 echo "$as_me:$LINENO: checking for $ac_header" >&5
13190 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
13191 if eval "test \"\${$as_ac_Header+set}\" = set"; then
13192 echo $ECHO_N "(cached) $ECHO_C" >&6
13194 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
13195 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
13197 # Is the header compilable?
13198 echo "$as_me:$LINENO: checking $ac_header usability" >&5
13199 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
13200 cat >conftest.$ac_ext <<_ACEOF
13203 cat confdefs.h >>conftest.$ac_ext
13204 cat >>conftest.$ac_ext <<_ACEOF
13205 /* end confdefs.h. */
13206 $ac_includes_default
13207 #include <$ac_header>
13209 rm -f conftest.$ac_objext
13210 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
13211 (eval $ac_compile) 2>conftest.er1
13213 grep -v '^ *+' conftest.er1 >conftest.err
13215 cat conftest.err >&5
13216 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13217 (exit $ac_status); } &&
13218 { ac_try='test -z "$ac_c_werror_flag"
13219 || test ! -s conftest.err'
13220 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13221 (eval $ac_try) 2>&5
13223 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13224 (exit $ac_status); }; } &&
13225 { ac_try='test -s conftest.$ac_objext'
13226 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13227 (eval $ac_try) 2>&5
13229 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13230 (exit $ac_status); }; }; then
13231 ac_header_compiler=yes
13233 echo "$as_me: failed program was:" >&5
13234 sed 's/^/| /' conftest.$ac_ext >&5
13236 ac_header_compiler=no
13238 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
13239 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
13240 echo "${ECHO_T}$ac_header_compiler" >&6
13242 # Is the header present?
13243 echo "$as_me:$LINENO: checking $ac_header presence" >&5
13244 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
13245 cat >conftest.$ac_ext <<_ACEOF
13248 cat confdefs.h >>conftest.$ac_ext
13249 cat >>conftest.$ac_ext <<_ACEOF
13250 /* end confdefs.h. */
13251 #include <$ac_header>
13253 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
13254 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
13256 grep -v '^ *+' conftest.er1 >conftest.err
13258 cat conftest.err >&5
13259 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13260 (exit $ac_status); } >/dev/null; then
13261 if test -s conftest.err; then
13262 ac_cpp_err=$ac_c_preproc_warn_flag
13263 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
13270 if test -z "$ac_cpp_err"; then
13271 ac_header_preproc=yes
13273 echo "$as_me: failed program was:" >&5
13274 sed 's/^/| /' conftest.$ac_ext >&5
13276 ac_header_preproc=no
13278 rm -f conftest.err conftest.$ac_ext
13279 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
13280 echo "${ECHO_T}$ac_header_preproc" >&6
13282 # So? What about this header?
13283 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
13285 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
13286 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
13287 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
13288 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
13289 ac_header_preproc=yes
13292 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
13293 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
13294 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
13295 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
13296 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
13297 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
13298 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
13299 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
13300 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
13301 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
13302 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
13303 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
13306 ## ------------------------------------------ ##
13307 ## Report this to the AC_PACKAGE_NAME lists. ##
13308 ## ------------------------------------------ ##
13311 sed "s/^/$as_me: WARNING: /" >&2
13314 echo "$as_me:$LINENO: checking for $ac_header" >&5
13315 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
13316 if eval "test \"\${$as_ac_Header+set}\" = set"; then
13317 echo $ECHO_N "(cached) $ECHO_C" >&6
13319 eval "$as_ac_Header=\$ac_header_preproc"
13321 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
13322 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
13325 if test `eval echo '${'$as_ac_Header'}'` = yes; then
13326 cat >>confdefs.h <<_ACEOF
13327 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
13335 for ac_header in sys/filio.h
13337 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
13338 if eval "test \"\${$as_ac_Header+set}\" = set"; then
13339 echo "$as_me:$LINENO: checking for $ac_header" >&5
13340 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
13341 if eval "test \"\${$as_ac_Header+set}\" = set"; then
13342 echo $ECHO_N "(cached) $ECHO_C" >&6
13344 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
13345 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
13347 # Is the header compilable?
13348 echo "$as_me:$LINENO: checking $ac_header usability" >&5
13349 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
13350 cat >conftest.$ac_ext <<_ACEOF
13353 cat confdefs.h >>conftest.$ac_ext
13354 cat >>conftest.$ac_ext <<_ACEOF
13355 /* end confdefs.h. */
13356 $ac_includes_default
13357 #include <$ac_header>
13359 rm -f conftest.$ac_objext
13360 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
13361 (eval $ac_compile) 2>conftest.er1
13363 grep -v '^ *+' conftest.er1 >conftest.err
13365 cat conftest.err >&5
13366 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13367 (exit $ac_status); } &&
13368 { ac_try='test -z "$ac_c_werror_flag"
13369 || test ! -s conftest.err'
13370 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13371 (eval $ac_try) 2>&5
13373 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13374 (exit $ac_status); }; } &&
13375 { ac_try='test -s conftest.$ac_objext'
13376 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13377 (eval $ac_try) 2>&5
13379 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13380 (exit $ac_status); }; }; then
13381 ac_header_compiler=yes
13383 echo "$as_me: failed program was:" >&5
13384 sed 's/^/| /' conftest.$ac_ext >&5
13386 ac_header_compiler=no
13388 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
13389 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
13390 echo "${ECHO_T}$ac_header_compiler" >&6
13392 # Is the header present?
13393 echo "$as_me:$LINENO: checking $ac_header presence" >&5
13394 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
13395 cat >conftest.$ac_ext <<_ACEOF
13398 cat confdefs.h >>conftest.$ac_ext
13399 cat >>conftest.$ac_ext <<_ACEOF
13400 /* end confdefs.h. */
13401 #include <$ac_header>
13403 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
13404 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
13406 grep -v '^ *+' conftest.er1 >conftest.err
13408 cat conftest.err >&5
13409 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13410 (exit $ac_status); } >/dev/null; then
13411 if test -s conftest.err; then
13412 ac_cpp_err=$ac_c_preproc_warn_flag
13413 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
13420 if test -z "$ac_cpp_err"; then
13421 ac_header_preproc=yes
13423 echo "$as_me: failed program was:" >&5
13424 sed 's/^/| /' conftest.$ac_ext >&5
13426 ac_header_preproc=no
13428 rm -f conftest.err conftest.$ac_ext
13429 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
13430 echo "${ECHO_T}$ac_header_preproc" >&6
13432 # So? What about this header?
13433 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
13435 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
13436 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
13437 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
13438 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
13439 ac_header_preproc=yes
13442 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
13443 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
13444 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
13445 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
13446 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
13447 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
13448 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
13449 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
13450 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
13451 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
13452 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
13453 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
13456 ## ------------------------------------------ ##
13457 ## Report this to the AC_PACKAGE_NAME lists. ##
13458 ## ------------------------------------------ ##
13461 sed "s/^/$as_me: WARNING: /" >&2
13464 echo "$as_me:$LINENO: checking for $ac_header" >&5
13465 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
13466 if eval "test \"\${$as_ac_Header+set}\" = set"; then
13467 echo $ECHO_N "(cached) $ECHO_C" >&6
13469 eval "$as_ac_Header=\$ac_header_preproc"
13471 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
13472 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
13475 if test `eval echo '${'$as_ac_Header'}'` = yes; then
13476 cat >>confdefs.h <<_ACEOF
13477 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
13485 for ac_header in sys/ioctl.h
13487 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
13488 if eval "test \"\${$as_ac_Header+set}\" = set"; then
13489 echo "$as_me:$LINENO: checking for $ac_header" >&5
13490 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
13491 if eval "test \"\${$as_ac_Header+set}\" = set"; then
13492 echo $ECHO_N "(cached) $ECHO_C" >&6
13494 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
13495 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
13497 # Is the header compilable?
13498 echo "$as_me:$LINENO: checking $ac_header usability" >&5
13499 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
13500 cat >conftest.$ac_ext <<_ACEOF
13503 cat confdefs.h >>conftest.$ac_ext
13504 cat >>conftest.$ac_ext <<_ACEOF
13505 /* end confdefs.h. */
13506 $ac_includes_default
13507 #include <$ac_header>
13509 rm -f conftest.$ac_objext
13510 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
13511 (eval $ac_compile) 2>conftest.er1
13513 grep -v '^ *+' conftest.er1 >conftest.err
13515 cat conftest.err >&5
13516 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13517 (exit $ac_status); } &&
13518 { ac_try='test -z "$ac_c_werror_flag"
13519 || test ! -s conftest.err'
13520 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13521 (eval $ac_try) 2>&5
13523 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13524 (exit $ac_status); }; } &&
13525 { ac_try='test -s conftest.$ac_objext'
13526 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13527 (eval $ac_try) 2>&5
13529 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13530 (exit $ac_status); }; }; then
13531 ac_header_compiler=yes
13533 echo "$as_me: failed program was:" >&5
13534 sed 's/^/| /' conftest.$ac_ext >&5
13536 ac_header_compiler=no
13538 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
13539 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
13540 echo "${ECHO_T}$ac_header_compiler" >&6
13542 # Is the header present?
13543 echo "$as_me:$LINENO: checking $ac_header presence" >&5
13544 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
13545 cat >conftest.$ac_ext <<_ACEOF
13548 cat confdefs.h >>conftest.$ac_ext
13549 cat >>conftest.$ac_ext <<_ACEOF
13550 /* end confdefs.h. */
13551 #include <$ac_header>
13553 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
13554 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
13556 grep -v '^ *+' conftest.er1 >conftest.err
13558 cat conftest.err >&5
13559 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13560 (exit $ac_status); } >/dev/null; then
13561 if test -s conftest.err; then
13562 ac_cpp_err=$ac_c_preproc_warn_flag
13563 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
13570 if test -z "$ac_cpp_err"; then
13571 ac_header_preproc=yes
13573 echo "$as_me: failed program was:" >&5
13574 sed 's/^/| /' conftest.$ac_ext >&5
13576 ac_header_preproc=no
13578 rm -f conftest.err conftest.$ac_ext
13579 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
13580 echo "${ECHO_T}$ac_header_preproc" >&6
13582 # So? What about this header?
13583 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
13585 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
13586 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
13587 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
13588 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
13589 ac_header_preproc=yes
13592 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
13593 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
13594 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
13595 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
13596 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
13597 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
13598 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
13599 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
13600 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
13601 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
13602 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
13603 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
13606 ## ------------------------------------------ ##
13607 ## Report this to the AC_PACKAGE_NAME lists. ##
13608 ## ------------------------------------------ ##
13611 sed "s/^/$as_me: WARNING: /" >&2
13614 echo "$as_me:$LINENO: checking for $ac_header" >&5
13615 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
13616 if eval "test \"\${$as_ac_Header+set}\" = set"; then
13617 echo $ECHO_N "(cached) $ECHO_C" >&6
13619 eval "$as_ac_Header=\$ac_header_preproc"
13621 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
13622 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
13625 if test `eval echo '${'$as_ac_Header'}'` = yes; then
13626 cat >>confdefs.h <<_ACEOF
13627 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
13635 for ac_header in sys/param.h
13637 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
13638 if eval "test \"\${$as_ac_Header+set}\" = set"; then
13639 echo "$as_me:$LINENO: checking for $ac_header" >&5
13640 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
13641 if eval "test \"\${$as_ac_Header+set}\" = set"; then
13642 echo $ECHO_N "(cached) $ECHO_C" >&6
13644 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
13645 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
13647 # Is the header compilable?
13648 echo "$as_me:$LINENO: checking $ac_header usability" >&5
13649 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
13650 cat >conftest.$ac_ext <<_ACEOF
13653 cat confdefs.h >>conftest.$ac_ext
13654 cat >>conftest.$ac_ext <<_ACEOF
13655 /* end confdefs.h. */
13656 $ac_includes_default
13657 #include <$ac_header>
13659 rm -f conftest.$ac_objext
13660 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
13661 (eval $ac_compile) 2>conftest.er1
13663 grep -v '^ *+' conftest.er1 >conftest.err
13665 cat conftest.err >&5
13666 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13667 (exit $ac_status); } &&
13668 { ac_try='test -z "$ac_c_werror_flag"
13669 || test ! -s conftest.err'
13670 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13671 (eval $ac_try) 2>&5
13673 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13674 (exit $ac_status); }; } &&
13675 { ac_try='test -s conftest.$ac_objext'
13676 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13677 (eval $ac_try) 2>&5
13679 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13680 (exit $ac_status); }; }; then
13681 ac_header_compiler=yes
13683 echo "$as_me: failed program was:" >&5
13684 sed 's/^/| /' conftest.$ac_ext >&5
13686 ac_header_compiler=no
13688 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
13689 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
13690 echo "${ECHO_T}$ac_header_compiler" >&6
13692 # Is the header present?
13693 echo "$as_me:$LINENO: checking $ac_header presence" >&5
13694 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
13695 cat >conftest.$ac_ext <<_ACEOF
13698 cat confdefs.h >>conftest.$ac_ext
13699 cat >>conftest.$ac_ext <<_ACEOF
13700 /* end confdefs.h. */
13701 #include <$ac_header>
13703 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
13704 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
13706 grep -v '^ *+' conftest.er1 >conftest.err
13708 cat conftest.err >&5
13709 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13710 (exit $ac_status); } >/dev/null; then
13711 if test -s conftest.err; then
13712 ac_cpp_err=$ac_c_preproc_warn_flag
13713 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
13720 if test -z "$ac_cpp_err"; then
13721 ac_header_preproc=yes
13723 echo "$as_me: failed program was:" >&5
13724 sed 's/^/| /' conftest.$ac_ext >&5
13726 ac_header_preproc=no
13728 rm -f conftest.err conftest.$ac_ext
13729 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
13730 echo "${ECHO_T}$ac_header_preproc" >&6
13732 # So? What about this header?
13733 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
13735 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
13736 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
13737 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
13738 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
13739 ac_header_preproc=yes
13742 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
13743 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
13744 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
13745 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
13746 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
13747 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
13748 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
13749 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
13750 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
13751 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
13752 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
13753 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
13756 ## ------------------------------------------ ##
13757 ## Report this to the AC_PACKAGE_NAME lists. ##
13758 ## ------------------------------------------ ##
13761 sed "s/^/$as_me: WARNING: /" >&2
13764 echo "$as_me:$LINENO: checking for $ac_header" >&5
13765 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
13766 if eval "test \"\${$as_ac_Header+set}\" = set"; then
13767 echo $ECHO_N "(cached) $ECHO_C" >&6
13769 eval "$as_ac_Header=\$ac_header_preproc"
13771 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
13772 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
13775 if test `eval echo '${'$as_ac_Header'}'` = yes; then
13776 cat >>confdefs.h <<_ACEOF
13777 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
13785 for ac_header in sys/resource.h
13787 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
13788 if eval "test \"\${$as_ac_Header+set}\" = set"; then
13789 echo "$as_me:$LINENO: checking for $ac_header" >&5
13790 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
13791 if eval "test \"\${$as_ac_Header+set}\" = set"; then
13792 echo $ECHO_N "(cached) $ECHO_C" >&6
13794 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
13795 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
13797 # Is the header compilable?
13798 echo "$as_me:$LINENO: checking $ac_header usability" >&5
13799 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
13800 cat >conftest.$ac_ext <<_ACEOF
13803 cat confdefs.h >>conftest.$ac_ext
13804 cat >>conftest.$ac_ext <<_ACEOF
13805 /* end confdefs.h. */
13806 $ac_includes_default
13807 #include <$ac_header>
13809 rm -f conftest.$ac_objext
13810 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
13811 (eval $ac_compile) 2>conftest.er1
13813 grep -v '^ *+' conftest.er1 >conftest.err
13815 cat conftest.err >&5
13816 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13817 (exit $ac_status); } &&
13818 { ac_try='test -z "$ac_c_werror_flag"
13819 || test ! -s conftest.err'
13820 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13821 (eval $ac_try) 2>&5
13823 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13824 (exit $ac_status); }; } &&
13825 { ac_try='test -s conftest.$ac_objext'
13826 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13827 (eval $ac_try) 2>&5
13829 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13830 (exit $ac_status); }; }; then
13831 ac_header_compiler=yes
13833 echo "$as_me: failed program was:" >&5
13834 sed 's/^/| /' conftest.$ac_ext >&5
13836 ac_header_compiler=no
13838 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
13839 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
13840 echo "${ECHO_T}$ac_header_compiler" >&6
13842 # Is the header present?
13843 echo "$as_me:$LINENO: checking $ac_header presence" >&5
13844 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
13845 cat >conftest.$ac_ext <<_ACEOF
13848 cat confdefs.h >>conftest.$ac_ext
13849 cat >>conftest.$ac_ext <<_ACEOF
13850 /* end confdefs.h. */
13851 #include <$ac_header>
13853 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
13854 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
13856 grep -v '^ *+' conftest.er1 >conftest.err
13858 cat conftest.err >&5
13859 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13860 (exit $ac_status); } >/dev/null; then
13861 if test -s conftest.err; then
13862 ac_cpp_err=$ac_c_preproc_warn_flag
13863 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
13870 if test -z "$ac_cpp_err"; then
13871 ac_header_preproc=yes
13873 echo "$as_me: failed program was:" >&5
13874 sed 's/^/| /' conftest.$ac_ext >&5
13876 ac_header_preproc=no
13878 rm -f conftest.err conftest.$ac_ext
13879 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
13880 echo "${ECHO_T}$ac_header_preproc" >&6
13882 # So? What about this header?
13883 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
13885 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
13886 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
13887 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
13888 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
13889 ac_header_preproc=yes
13892 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
13893 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
13894 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
13895 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
13896 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
13897 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
13898 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
13899 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
13900 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
13901 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
13902 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
13903 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
13906 ## ------------------------------------------ ##
13907 ## Report this to the AC_PACKAGE_NAME lists. ##
13908 ## ------------------------------------------ ##
13911 sed "s/^/$as_me: WARNING: /" >&2
13914 echo "$as_me:$LINENO: checking for $ac_header" >&5
13915 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
13916 if eval "test \"\${$as_ac_Header+set}\" = set"; then
13917 echo $ECHO_N "(cached) $ECHO_C" >&6
13919 eval "$as_ac_Header=\$ac_header_preproc"
13921 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
13922 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
13925 if test `eval echo '${'$as_ac_Header'}'` = yes; then
13926 cat >>confdefs.h <<_ACEOF
13927 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
13935 for ac_header in sys/proc.h
13937 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
13938 echo "$as_me:$LINENO: checking for $ac_header" >&5
13939 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
13940 if eval "test \"\${$as_ac_Header+set}\" = set"; then
13941 echo $ECHO_N "(cached) $ECHO_C" >&6
13943 cat >conftest.$ac_ext <<_ACEOF
13946 cat confdefs.h >>conftest.$ac_ext
13947 cat >>conftest.$ac_ext <<_ACEOF
13948 /* end confdefs.h. */
13949 #if HAVE_SYS_PARAM_H
13950 # include <sys/param.h>
13954 #include <$ac_header>
13956 rm -f conftest.$ac_objext
13957 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
13958 (eval $ac_compile) 2>conftest.er1
13960 grep -v '^ *+' conftest.er1 >conftest.err
13962 cat conftest.err >&5
13963 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13964 (exit $ac_status); } &&
13965 { ac_try='test -z "$ac_c_werror_flag"
13966 || test ! -s conftest.err'
13967 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13968 (eval $ac_try) 2>&5
13970 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13971 (exit $ac_status); }; } &&
13972 { ac_try='test -s conftest.$ac_objext'
13973 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13974 (eval $ac_try) 2>&5
13976 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13977 (exit $ac_status); }; }; then
13978 eval "$as_ac_Header=yes"
13980 echo "$as_me: failed program was:" >&5
13981 sed 's/^/| /' conftest.$ac_ext >&5
13983 eval "$as_ac_Header=no"
13985 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
13987 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
13988 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
13989 if test `eval echo '${'$as_ac_Header'}'` = yes; then
13990 cat >>confdefs.h <<_ACEOF
13991 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
13999 for ac_header in sys/procfs.h
14001 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
14002 if eval "test \"\${$as_ac_Header+set}\" = set"; then
14003 echo "$as_me:$LINENO: checking for $ac_header" >&5
14004 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
14005 if eval "test \"\${$as_ac_Header+set}\" = set"; then
14006 echo $ECHO_N "(cached) $ECHO_C" >&6
14008 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
14009 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
14011 # Is the header compilable?
14012 echo "$as_me:$LINENO: checking $ac_header usability" >&5
14013 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
14014 cat >conftest.$ac_ext <<_ACEOF
14017 cat confdefs.h >>conftest.$ac_ext
14018 cat >>conftest.$ac_ext <<_ACEOF
14019 /* end confdefs.h. */
14020 $ac_includes_default
14021 #include <$ac_header>
14023 rm -f conftest.$ac_objext
14024 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
14025 (eval $ac_compile) 2>conftest.er1
14027 grep -v '^ *+' conftest.er1 >conftest.err
14029 cat conftest.err >&5
14030 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14031 (exit $ac_status); } &&
14032 { ac_try='test -z "$ac_c_werror_flag"
14033 || test ! -s conftest.err'
14034 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14035 (eval $ac_try) 2>&5
14037 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14038 (exit $ac_status); }; } &&
14039 { ac_try='test -s conftest.$ac_objext'
14040 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14041 (eval $ac_try) 2>&5
14043 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14044 (exit $ac_status); }; }; then
14045 ac_header_compiler=yes
14047 echo "$as_me: failed program was:" >&5
14048 sed 's/^/| /' conftest.$ac_ext >&5
14050 ac_header_compiler=no
14052 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
14053 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
14054 echo "${ECHO_T}$ac_header_compiler" >&6
14056 # Is the header present?
14057 echo "$as_me:$LINENO: checking $ac_header presence" >&5
14058 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
14059 cat >conftest.$ac_ext <<_ACEOF
14062 cat confdefs.h >>conftest.$ac_ext
14063 cat >>conftest.$ac_ext <<_ACEOF
14064 /* end confdefs.h. */
14065 #include <$ac_header>
14067 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
14068 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
14070 grep -v '^ *+' conftest.er1 >conftest.err
14072 cat conftest.err >&5
14073 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14074 (exit $ac_status); } >/dev/null; then
14075 if test -s conftest.err; then
14076 ac_cpp_err=$ac_c_preproc_warn_flag
14077 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
14084 if test -z "$ac_cpp_err"; then
14085 ac_header_preproc=yes
14087 echo "$as_me: failed program was:" >&5
14088 sed 's/^/| /' conftest.$ac_ext >&5
14090 ac_header_preproc=no
14092 rm -f conftest.err conftest.$ac_ext
14093 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
14094 echo "${ECHO_T}$ac_header_preproc" >&6
14096 # So? What about this header?
14097 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
14099 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
14100 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
14101 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
14102 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
14103 ac_header_preproc=yes
14106 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
14107 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
14108 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
14109 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
14110 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
14111 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
14112 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
14113 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
14114 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
14115 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
14116 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
14117 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
14120 ## ------------------------------------------ ##
14121 ## Report this to the AC_PACKAGE_NAME lists. ##
14122 ## ------------------------------------------ ##
14125 sed "s/^/$as_me: WARNING: /" >&2
14128 echo "$as_me:$LINENO: checking for $ac_header" >&5
14129 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
14130 if eval "test \"\${$as_ac_Header+set}\" = set"; then
14131 echo $ECHO_N "(cached) $ECHO_C" >&6
14133 eval "$as_ac_Header=\$ac_header_preproc"
14135 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
14136 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
14139 if test `eval echo '${'$as_ac_Header'}'` = yes; then
14140 cat >>confdefs.h <<_ACEOF
14141 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
14150 for ac_header in sys/ptrace.h ptrace.h
14152 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
14153 if eval "test \"\${$as_ac_Header+set}\" = set"; then
14154 echo "$as_me:$LINENO: checking for $ac_header" >&5
14155 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
14156 if eval "test \"\${$as_ac_Header+set}\" = set"; then
14157 echo $ECHO_N "(cached) $ECHO_C" >&6
14159 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
14160 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
14162 # Is the header compilable?
14163 echo "$as_me:$LINENO: checking $ac_header usability" >&5
14164 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
14165 cat >conftest.$ac_ext <<_ACEOF
14168 cat confdefs.h >>conftest.$ac_ext
14169 cat >>conftest.$ac_ext <<_ACEOF
14170 /* end confdefs.h. */
14171 $ac_includes_default
14172 #include <$ac_header>
14174 rm -f conftest.$ac_objext
14175 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
14176 (eval $ac_compile) 2>conftest.er1
14178 grep -v '^ *+' conftest.er1 >conftest.err
14180 cat conftest.err >&5
14181 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14182 (exit $ac_status); } &&
14183 { ac_try='test -z "$ac_c_werror_flag"
14184 || test ! -s conftest.err'
14185 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14186 (eval $ac_try) 2>&5
14188 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14189 (exit $ac_status); }; } &&
14190 { ac_try='test -s conftest.$ac_objext'
14191 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14192 (eval $ac_try) 2>&5
14194 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14195 (exit $ac_status); }; }; then
14196 ac_header_compiler=yes
14198 echo "$as_me: failed program was:" >&5
14199 sed 's/^/| /' conftest.$ac_ext >&5
14201 ac_header_compiler=no
14203 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
14204 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
14205 echo "${ECHO_T}$ac_header_compiler" >&6
14207 # Is the header present?
14208 echo "$as_me:$LINENO: checking $ac_header presence" >&5
14209 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
14210 cat >conftest.$ac_ext <<_ACEOF
14213 cat confdefs.h >>conftest.$ac_ext
14214 cat >>conftest.$ac_ext <<_ACEOF
14215 /* end confdefs.h. */
14216 #include <$ac_header>
14218 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
14219 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
14221 grep -v '^ *+' conftest.er1 >conftest.err
14223 cat conftest.err >&5
14224 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14225 (exit $ac_status); } >/dev/null; then
14226 if test -s conftest.err; then
14227 ac_cpp_err=$ac_c_preproc_warn_flag
14228 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
14235 if test -z "$ac_cpp_err"; then
14236 ac_header_preproc=yes
14238 echo "$as_me: failed program was:" >&5
14239 sed 's/^/| /' conftest.$ac_ext >&5
14241 ac_header_preproc=no
14243 rm -f conftest.err conftest.$ac_ext
14244 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
14245 echo "${ECHO_T}$ac_header_preproc" >&6
14247 # So? What about this header?
14248 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
14250 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
14251 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
14252 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
14253 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
14254 ac_header_preproc=yes
14257 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
14258 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
14259 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
14260 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
14261 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
14262 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
14263 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
14264 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
14265 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
14266 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
14267 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
14268 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
14271 ## ------------------------------------------ ##
14272 ## Report this to the AC_PACKAGE_NAME lists. ##
14273 ## ------------------------------------------ ##
14276 sed "s/^/$as_me: WARNING: /" >&2
14279 echo "$as_me:$LINENO: checking for $ac_header" >&5
14280 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
14281 if eval "test \"\${$as_ac_Header+set}\" = set"; then
14282 echo $ECHO_N "(cached) $ECHO_C" >&6
14284 eval "$as_ac_Header=\$ac_header_preproc"
14286 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
14287 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
14290 if test `eval echo '${'$as_ac_Header'}'` = yes; then
14291 cat >>confdefs.h <<_ACEOF
14292 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
14301 for ac_header in sys/reg.h sys/debugreg.h
14303 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
14304 if eval "test \"\${$as_ac_Header+set}\" = set"; then
14305 echo "$as_me:$LINENO: checking for $ac_header" >&5
14306 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
14307 if eval "test \"\${$as_ac_Header+set}\" = set"; then
14308 echo $ECHO_N "(cached) $ECHO_C" >&6
14310 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
14311 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
14313 # Is the header compilable?
14314 echo "$as_me:$LINENO: checking $ac_header usability" >&5
14315 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
14316 cat >conftest.$ac_ext <<_ACEOF
14319 cat confdefs.h >>conftest.$ac_ext
14320 cat >>conftest.$ac_ext <<_ACEOF
14321 /* end confdefs.h. */
14322 $ac_includes_default
14323 #include <$ac_header>
14325 rm -f conftest.$ac_objext
14326 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
14327 (eval $ac_compile) 2>conftest.er1
14329 grep -v '^ *+' conftest.er1 >conftest.err
14331 cat conftest.err >&5
14332 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14333 (exit $ac_status); } &&
14334 { ac_try='test -z "$ac_c_werror_flag"
14335 || test ! -s conftest.err'
14336 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14337 (eval $ac_try) 2>&5
14339 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14340 (exit $ac_status); }; } &&
14341 { ac_try='test -s conftest.$ac_objext'
14342 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14343 (eval $ac_try) 2>&5
14345 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14346 (exit $ac_status); }; }; then
14347 ac_header_compiler=yes
14349 echo "$as_me: failed program was:" >&5
14350 sed 's/^/| /' conftest.$ac_ext >&5
14352 ac_header_compiler=no
14354 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
14355 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
14356 echo "${ECHO_T}$ac_header_compiler" >&6
14358 # Is the header present?
14359 echo "$as_me:$LINENO: checking $ac_header presence" >&5
14360 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
14361 cat >conftest.$ac_ext <<_ACEOF
14364 cat confdefs.h >>conftest.$ac_ext
14365 cat >>conftest.$ac_ext <<_ACEOF
14366 /* end confdefs.h. */
14367 #include <$ac_header>
14369 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
14370 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
14372 grep -v '^ *+' conftest.er1 >conftest.err
14374 cat conftest.err >&5
14375 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14376 (exit $ac_status); } >/dev/null; then
14377 if test -s conftest.err; then
14378 ac_cpp_err=$ac_c_preproc_warn_flag
14379 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
14386 if test -z "$ac_cpp_err"; then
14387 ac_header_preproc=yes
14389 echo "$as_me: failed program was:" >&5
14390 sed 's/^/| /' conftest.$ac_ext >&5
14392 ac_header_preproc=no
14394 rm -f conftest.err conftest.$ac_ext
14395 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
14396 echo "${ECHO_T}$ac_header_preproc" >&6
14398 # So? What about this header?
14399 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
14401 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
14402 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
14403 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
14404 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
14405 ac_header_preproc=yes
14408 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
14409 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
14410 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
14411 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
14412 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
14413 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
14414 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
14415 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
14416 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
14417 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
14418 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
14419 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
14422 ## ------------------------------------------ ##
14423 ## Report this to the AC_PACKAGE_NAME lists. ##
14424 ## ------------------------------------------ ##
14427 sed "s/^/$as_me: WARNING: /" >&2
14430 echo "$as_me:$LINENO: checking for $ac_header" >&5
14431 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
14432 if eval "test \"\${$as_ac_Header+set}\" = set"; then
14433 echo $ECHO_N "(cached) $ECHO_C" >&6
14435 eval "$as_ac_Header=\$ac_header_preproc"
14437 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
14438 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
14441 if test `eval echo '${'$as_ac_Header'}'` = yes; then
14442 cat >>confdefs.h <<_ACEOF
14443 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
14451 for ac_header in sys/select.h
14453 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
14454 if eval "test \"\${$as_ac_Header+set}\" = set"; then
14455 echo "$as_me:$LINENO: checking for $ac_header" >&5
14456 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
14457 if eval "test \"\${$as_ac_Header+set}\" = set"; then
14458 echo $ECHO_N "(cached) $ECHO_C" >&6
14460 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
14461 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
14463 # Is the header compilable?
14464 echo "$as_me:$LINENO: checking $ac_header usability" >&5
14465 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
14466 cat >conftest.$ac_ext <<_ACEOF
14469 cat confdefs.h >>conftest.$ac_ext
14470 cat >>conftest.$ac_ext <<_ACEOF
14471 /* end confdefs.h. */
14472 $ac_includes_default
14473 #include <$ac_header>
14475 rm -f conftest.$ac_objext
14476 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
14477 (eval $ac_compile) 2>conftest.er1
14479 grep -v '^ *+' conftest.er1 >conftest.err
14481 cat conftest.err >&5
14482 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14483 (exit $ac_status); } &&
14484 { ac_try='test -z "$ac_c_werror_flag"
14485 || test ! -s conftest.err'
14486 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14487 (eval $ac_try) 2>&5
14489 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14490 (exit $ac_status); }; } &&
14491 { ac_try='test -s conftest.$ac_objext'
14492 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14493 (eval $ac_try) 2>&5
14495 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14496 (exit $ac_status); }; }; then
14497 ac_header_compiler=yes
14499 echo "$as_me: failed program was:" >&5
14500 sed 's/^/| /' conftest.$ac_ext >&5
14502 ac_header_compiler=no
14504 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
14505 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
14506 echo "${ECHO_T}$ac_header_compiler" >&6
14508 # Is the header present?
14509 echo "$as_me:$LINENO: checking $ac_header presence" >&5
14510 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
14511 cat >conftest.$ac_ext <<_ACEOF
14514 cat confdefs.h >>conftest.$ac_ext
14515 cat >>conftest.$ac_ext <<_ACEOF
14516 /* end confdefs.h. */
14517 #include <$ac_header>
14519 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
14520 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
14522 grep -v '^ *+' conftest.er1 >conftest.err
14524 cat conftest.err >&5
14525 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14526 (exit $ac_status); } >/dev/null; then
14527 if test -s conftest.err; then
14528 ac_cpp_err=$ac_c_preproc_warn_flag
14529 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
14536 if test -z "$ac_cpp_err"; then
14537 ac_header_preproc=yes
14539 echo "$as_me: failed program was:" >&5
14540 sed 's/^/| /' conftest.$ac_ext >&5
14542 ac_header_preproc=no
14544 rm -f conftest.err conftest.$ac_ext
14545 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
14546 echo "${ECHO_T}$ac_header_preproc" >&6
14548 # So? What about this header?
14549 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
14551 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
14552 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
14553 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
14554 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
14555 ac_header_preproc=yes
14558 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
14559 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
14560 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
14561 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
14562 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
14563 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
14564 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
14565 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
14566 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
14567 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
14568 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
14569 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
14572 ## ------------------------------------------ ##
14573 ## Report this to the AC_PACKAGE_NAME lists. ##
14574 ## ------------------------------------------ ##
14577 sed "s/^/$as_me: WARNING: /" >&2
14580 echo "$as_me:$LINENO: checking for $ac_header" >&5
14581 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
14582 if eval "test \"\${$as_ac_Header+set}\" = set"; then
14583 echo $ECHO_N "(cached) $ECHO_C" >&6
14585 eval "$as_ac_Header=\$ac_header_preproc"
14587 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
14588 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
14591 if test `eval echo '${'$as_ac_Header'}'` = yes; then
14592 cat >>confdefs.h <<_ACEOF
14593 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
14601 for ac_header in sys/syscall.h
14603 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
14604 if eval "test \"\${$as_ac_Header+set}\" = set"; then
14605 echo "$as_me:$LINENO: checking for $ac_header" >&5
14606 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
14607 if eval "test \"\${$as_ac_Header+set}\" = set"; then
14608 echo $ECHO_N "(cached) $ECHO_C" >&6
14610 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
14611 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
14613 # Is the header compilable?
14614 echo "$as_me:$LINENO: checking $ac_header usability" >&5
14615 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
14616 cat >conftest.$ac_ext <<_ACEOF
14619 cat confdefs.h >>conftest.$ac_ext
14620 cat >>conftest.$ac_ext <<_ACEOF
14621 /* end confdefs.h. */
14622 $ac_includes_default
14623 #include <$ac_header>
14625 rm -f conftest.$ac_objext
14626 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
14627 (eval $ac_compile) 2>conftest.er1
14629 grep -v '^ *+' conftest.er1 >conftest.err
14631 cat conftest.err >&5
14632 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14633 (exit $ac_status); } &&
14634 { ac_try='test -z "$ac_c_werror_flag"
14635 || test ! -s conftest.err'
14636 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14637 (eval $ac_try) 2>&5
14639 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14640 (exit $ac_status); }; } &&
14641 { ac_try='test -s conftest.$ac_objext'
14642 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14643 (eval $ac_try) 2>&5
14645 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14646 (exit $ac_status); }; }; then
14647 ac_header_compiler=yes
14649 echo "$as_me: failed program was:" >&5
14650 sed 's/^/| /' conftest.$ac_ext >&5
14652 ac_header_compiler=no
14654 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
14655 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
14656 echo "${ECHO_T}$ac_header_compiler" >&6
14658 # Is the header present?
14659 echo "$as_me:$LINENO: checking $ac_header presence" >&5
14660 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
14661 cat >conftest.$ac_ext <<_ACEOF
14664 cat confdefs.h >>conftest.$ac_ext
14665 cat >>conftest.$ac_ext <<_ACEOF
14666 /* end confdefs.h. */
14667 #include <$ac_header>
14669 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
14670 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
14672 grep -v '^ *+' conftest.er1 >conftest.err
14674 cat conftest.err >&5
14675 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14676 (exit $ac_status); } >/dev/null; then
14677 if test -s conftest.err; then
14678 ac_cpp_err=$ac_c_preproc_warn_flag
14679 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
14686 if test -z "$ac_cpp_err"; then
14687 ac_header_preproc=yes
14689 echo "$as_me: failed program was:" >&5
14690 sed 's/^/| /' conftest.$ac_ext >&5
14692 ac_header_preproc=no
14694 rm -f conftest.err conftest.$ac_ext
14695 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
14696 echo "${ECHO_T}$ac_header_preproc" >&6
14698 # So? What about this header?
14699 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
14701 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
14702 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
14703 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
14704 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
14705 ac_header_preproc=yes
14708 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
14709 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
14710 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
14711 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
14712 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
14713 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
14714 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
14715 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
14716 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
14717 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
14718 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
14719 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
14722 ## ------------------------------------------ ##
14723 ## Report this to the AC_PACKAGE_NAME lists. ##
14724 ## ------------------------------------------ ##
14727 sed "s/^/$as_me: WARNING: /" >&2
14730 echo "$as_me:$LINENO: checking for $ac_header" >&5
14731 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
14732 if eval "test \"\${$as_ac_Header+set}\" = set"; then
14733 echo $ECHO_N "(cached) $ECHO_C" >&6
14735 eval "$as_ac_Header=\$ac_header_preproc"
14737 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
14738 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
14741 if test `eval echo '${'$as_ac_Header'}'` = yes; then
14742 cat >>confdefs.h <<_ACEOF
14743 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
14751 for ac_header in sys/types.h
14753 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
14754 if eval "test \"\${$as_ac_Header+set}\" = set"; then
14755 echo "$as_me:$LINENO: checking for $ac_header" >&5
14756 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
14757 if eval "test \"\${$as_ac_Header+set}\" = set"; then
14758 echo $ECHO_N "(cached) $ECHO_C" >&6
14760 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
14761 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
14763 # Is the header compilable?
14764 echo "$as_me:$LINENO: checking $ac_header usability" >&5
14765 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
14766 cat >conftest.$ac_ext <<_ACEOF
14769 cat confdefs.h >>conftest.$ac_ext
14770 cat >>conftest.$ac_ext <<_ACEOF
14771 /* end confdefs.h. */
14772 $ac_includes_default
14773 #include <$ac_header>
14775 rm -f conftest.$ac_objext
14776 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
14777 (eval $ac_compile) 2>conftest.er1
14779 grep -v '^ *+' conftest.er1 >conftest.err
14781 cat conftest.err >&5
14782 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14783 (exit $ac_status); } &&
14784 { ac_try='test -z "$ac_c_werror_flag"
14785 || test ! -s conftest.err'
14786 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14787 (eval $ac_try) 2>&5
14789 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14790 (exit $ac_status); }; } &&
14791 { ac_try='test -s conftest.$ac_objext'
14792 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14793 (eval $ac_try) 2>&5
14795 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14796 (exit $ac_status); }; }; then
14797 ac_header_compiler=yes
14799 echo "$as_me: failed program was:" >&5
14800 sed 's/^/| /' conftest.$ac_ext >&5
14802 ac_header_compiler=no
14804 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
14805 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
14806 echo "${ECHO_T}$ac_header_compiler" >&6
14808 # Is the header present?
14809 echo "$as_me:$LINENO: checking $ac_header presence" >&5
14810 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
14811 cat >conftest.$ac_ext <<_ACEOF
14814 cat confdefs.h >>conftest.$ac_ext
14815 cat >>conftest.$ac_ext <<_ACEOF
14816 /* end confdefs.h. */
14817 #include <$ac_header>
14819 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
14820 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
14822 grep -v '^ *+' conftest.er1 >conftest.err
14824 cat conftest.err >&5
14825 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14826 (exit $ac_status); } >/dev/null; then
14827 if test -s conftest.err; then
14828 ac_cpp_err=$ac_c_preproc_warn_flag
14829 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
14836 if test -z "$ac_cpp_err"; then
14837 ac_header_preproc=yes
14839 echo "$as_me: failed program was:" >&5
14840 sed 's/^/| /' conftest.$ac_ext >&5
14842 ac_header_preproc=no
14844 rm -f conftest.err conftest.$ac_ext
14845 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
14846 echo "${ECHO_T}$ac_header_preproc" >&6
14848 # So? What about this header?
14849 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
14851 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
14852 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
14853 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
14854 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
14855 ac_header_preproc=yes
14858 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
14859 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
14860 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
14861 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
14862 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
14863 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
14864 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
14865 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
14866 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
14867 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
14868 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
14869 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
14872 ## ------------------------------------------ ##
14873 ## Report this to the AC_PACKAGE_NAME lists. ##
14874 ## ------------------------------------------ ##
14877 sed "s/^/$as_me: WARNING: /" >&2
14880 echo "$as_me:$LINENO: checking for $ac_header" >&5
14881 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
14882 if eval "test \"\${$as_ac_Header+set}\" = set"; then
14883 echo $ECHO_N "(cached) $ECHO_C" >&6
14885 eval "$as_ac_Header=\$ac_header_preproc"
14887 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
14888 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
14891 if test `eval echo '${'$as_ac_Header'}'` = yes; then
14892 cat >>confdefs.h <<_ACEOF
14893 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
14901 for ac_header in sys/user.h
14903 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
14904 echo "$as_me:$LINENO: checking for $ac_header" >&5
14905 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
14906 if eval "test \"\${$as_ac_Header+set}\" = set"; then
14907 echo $ECHO_N "(cached) $ECHO_C" >&6
14909 cat >conftest.$ac_ext <<_ACEOF
14912 cat confdefs.h >>conftest.$ac_ext
14913 cat >>conftest.$ac_ext <<_ACEOF
14914 /* end confdefs.h. */
14915 #if HAVE_SYS_PARAM_H
14916 # include <sys/param.h>
14920 #include <$ac_header>
14922 rm -f conftest.$ac_objext
14923 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
14924 (eval $ac_compile) 2>conftest.er1
14926 grep -v '^ *+' conftest.er1 >conftest.err
14928 cat conftest.err >&5
14929 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14930 (exit $ac_status); } &&
14931 { ac_try='test -z "$ac_c_werror_flag"
14932 || test ! -s conftest.err'
14933 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14934 (eval $ac_try) 2>&5
14936 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14937 (exit $ac_status); }; } &&
14938 { ac_try='test -s conftest.$ac_objext'
14939 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14940 (eval $ac_try) 2>&5
14942 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14943 (exit $ac_status); }; }; then
14944 eval "$as_ac_Header=yes"
14946 echo "$as_me: failed program was:" >&5
14947 sed 's/^/| /' conftest.$ac_ext >&5
14949 eval "$as_ac_Header=no"
14951 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
14953 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
14954 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
14955 if test `eval echo '${'$as_ac_Header'}'` = yes; then
14956 cat >>confdefs.h <<_ACEOF
14957 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
14966 for ac_header in sys/wait.h wait.h
14968 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
14969 if eval "test \"\${$as_ac_Header+set}\" = set"; then
14970 echo "$as_me:$LINENO: checking for $ac_header" >&5
14971 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
14972 if eval "test \"\${$as_ac_Header+set}\" = set"; then
14973 echo $ECHO_N "(cached) $ECHO_C" >&6
14975 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
14976 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
14978 # Is the header compilable?
14979 echo "$as_me:$LINENO: checking $ac_header usability" >&5
14980 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
14981 cat >conftest.$ac_ext <<_ACEOF
14984 cat confdefs.h >>conftest.$ac_ext
14985 cat >>conftest.$ac_ext <<_ACEOF
14986 /* end confdefs.h. */
14987 $ac_includes_default
14988 #include <$ac_header>
14990 rm -f conftest.$ac_objext
14991 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
14992 (eval $ac_compile) 2>conftest.er1
14994 grep -v '^ *+' conftest.er1 >conftest.err
14996 cat conftest.err >&5
14997 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14998 (exit $ac_status); } &&
14999 { ac_try='test -z "$ac_c_werror_flag"
15000 || test ! -s conftest.err'
15001 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15002 (eval $ac_try) 2>&5
15004 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15005 (exit $ac_status); }; } &&
15006 { ac_try='test -s conftest.$ac_objext'
15007 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15008 (eval $ac_try) 2>&5
15010 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15011 (exit $ac_status); }; }; then
15012 ac_header_compiler=yes
15014 echo "$as_me: failed program was:" >&5
15015 sed 's/^/| /' conftest.$ac_ext >&5
15017 ac_header_compiler=no
15019 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
15020 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
15021 echo "${ECHO_T}$ac_header_compiler" >&6
15023 # Is the header present?
15024 echo "$as_me:$LINENO: checking $ac_header presence" >&5
15025 echo $ECHO_N "checking $ac_header presence... $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 #include <$ac_header>
15034 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
15035 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
15037 grep -v '^ *+' conftest.er1 >conftest.err
15039 cat conftest.err >&5
15040 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15041 (exit $ac_status); } >/dev/null; then
15042 if test -s conftest.err; then
15043 ac_cpp_err=$ac_c_preproc_warn_flag
15044 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
15051 if test -z "$ac_cpp_err"; then
15052 ac_header_preproc=yes
15054 echo "$as_me: failed program was:" >&5
15055 sed 's/^/| /' conftest.$ac_ext >&5
15057 ac_header_preproc=no
15059 rm -f conftest.err conftest.$ac_ext
15060 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
15061 echo "${ECHO_T}$ac_header_preproc" >&6
15063 # So? What about this header?
15064 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
15066 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
15067 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
15068 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
15069 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
15070 ac_header_preproc=yes
15073 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
15074 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
15075 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
15076 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
15077 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
15078 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
15079 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
15080 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
15081 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
15082 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
15083 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
15084 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
15087 ## ------------------------------------------ ##
15088 ## Report this to the AC_PACKAGE_NAME lists. ##
15089 ## ------------------------------------------ ##
15092 sed "s/^/$as_me: WARNING: /" >&2
15095 echo "$as_me:$LINENO: checking for $ac_header" >&5
15096 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
15097 if eval "test \"\${$as_ac_Header+set}\" = set"; then
15098 echo $ECHO_N "(cached) $ECHO_C" >&6
15100 eval "$as_ac_Header=\$ac_header_preproc"
15102 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
15103 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
15106 if test `eval echo '${'$as_ac_Header'}'` = yes; then
15107 cat >>confdefs.h <<_ACEOF
15108 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
15118 for ac_header in termios.h termio.h sgtty.h
15120 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
15121 if eval "test \"\${$as_ac_Header+set}\" = set"; then
15122 echo "$as_me:$LINENO: checking for $ac_header" >&5
15123 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
15124 if eval "test \"\${$as_ac_Header+set}\" = set"; then
15125 echo $ECHO_N "(cached) $ECHO_C" >&6
15127 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
15128 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
15130 # Is the header compilable?
15131 echo "$as_me:$LINENO: checking $ac_header usability" >&5
15132 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
15133 cat >conftest.$ac_ext <<_ACEOF
15136 cat confdefs.h >>conftest.$ac_ext
15137 cat >>conftest.$ac_ext <<_ACEOF
15138 /* end confdefs.h. */
15139 $ac_includes_default
15140 #include <$ac_header>
15142 rm -f conftest.$ac_objext
15143 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
15144 (eval $ac_compile) 2>conftest.er1
15146 grep -v '^ *+' conftest.er1 >conftest.err
15148 cat conftest.err >&5
15149 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15150 (exit $ac_status); } &&
15151 { ac_try='test -z "$ac_c_werror_flag"
15152 || test ! -s conftest.err'
15153 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15154 (eval $ac_try) 2>&5
15156 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15157 (exit $ac_status); }; } &&
15158 { ac_try='test -s conftest.$ac_objext'
15159 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15160 (eval $ac_try) 2>&5
15162 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15163 (exit $ac_status); }; }; then
15164 ac_header_compiler=yes
15166 echo "$as_me: failed program was:" >&5
15167 sed 's/^/| /' conftest.$ac_ext >&5
15169 ac_header_compiler=no
15171 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
15172 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
15173 echo "${ECHO_T}$ac_header_compiler" >&6
15175 # Is the header present?
15176 echo "$as_me:$LINENO: checking $ac_header presence" >&5
15177 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
15178 cat >conftest.$ac_ext <<_ACEOF
15181 cat confdefs.h >>conftest.$ac_ext
15182 cat >>conftest.$ac_ext <<_ACEOF
15183 /* end confdefs.h. */
15184 #include <$ac_header>
15186 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
15187 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
15189 grep -v '^ *+' conftest.er1 >conftest.err
15191 cat conftest.err >&5
15192 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15193 (exit $ac_status); } >/dev/null; then
15194 if test -s conftest.err; then
15195 ac_cpp_err=$ac_c_preproc_warn_flag
15196 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
15203 if test -z "$ac_cpp_err"; then
15204 ac_header_preproc=yes
15206 echo "$as_me: failed program was:" >&5
15207 sed 's/^/| /' conftest.$ac_ext >&5
15209 ac_header_preproc=no
15211 rm -f conftest.err conftest.$ac_ext
15212 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
15213 echo "${ECHO_T}$ac_header_preproc" >&6
15215 # So? What about this header?
15216 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
15218 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
15219 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
15220 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
15221 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
15222 ac_header_preproc=yes
15225 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
15226 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
15227 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
15228 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
15229 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
15230 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
15231 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
15232 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
15233 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
15234 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
15235 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
15236 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
15239 ## ------------------------------------------ ##
15240 ## Report this to the AC_PACKAGE_NAME lists. ##
15241 ## ------------------------------------------ ##
15244 sed "s/^/$as_me: WARNING: /" >&2
15247 echo "$as_me:$LINENO: checking for $ac_header" >&5
15248 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
15249 if eval "test \"\${$as_ac_Header+set}\" = set"; then
15250 echo $ECHO_N "(cached) $ECHO_C" >&6
15252 eval "$as_ac_Header=\$ac_header_preproc"
15254 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
15255 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
15258 if test `eval echo '${'$as_ac_Header'}'` = yes; then
15259 cat >>confdefs.h <<_ACEOF
15260 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
15268 for ac_header in unistd.h
15270 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
15271 if eval "test \"\${$as_ac_Header+set}\" = set"; then
15272 echo "$as_me:$LINENO: checking for $ac_header" >&5
15273 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
15274 if eval "test \"\${$as_ac_Header+set}\" = set"; then
15275 echo $ECHO_N "(cached) $ECHO_C" >&6
15277 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
15278 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
15280 # Is the header compilable?
15281 echo "$as_me:$LINENO: checking $ac_header usability" >&5
15282 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
15283 cat >conftest.$ac_ext <<_ACEOF
15286 cat confdefs.h >>conftest.$ac_ext
15287 cat >>conftest.$ac_ext <<_ACEOF
15288 /* end confdefs.h. */
15289 $ac_includes_default
15290 #include <$ac_header>
15292 rm -f conftest.$ac_objext
15293 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
15294 (eval $ac_compile) 2>conftest.er1
15296 grep -v '^ *+' conftest.er1 >conftest.err
15298 cat conftest.err >&5
15299 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15300 (exit $ac_status); } &&
15301 { ac_try='test -z "$ac_c_werror_flag"
15302 || test ! -s conftest.err'
15303 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15304 (eval $ac_try) 2>&5
15306 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15307 (exit $ac_status); }; } &&
15308 { ac_try='test -s conftest.$ac_objext'
15309 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15310 (eval $ac_try) 2>&5
15312 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15313 (exit $ac_status); }; }; then
15314 ac_header_compiler=yes
15316 echo "$as_me: failed program was:" >&5
15317 sed 's/^/| /' conftest.$ac_ext >&5
15319 ac_header_compiler=no
15321 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
15322 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
15323 echo "${ECHO_T}$ac_header_compiler" >&6
15325 # Is the header present?
15326 echo "$as_me:$LINENO: checking $ac_header presence" >&5
15327 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
15328 cat >conftest.$ac_ext <<_ACEOF
15331 cat confdefs.h >>conftest.$ac_ext
15332 cat >>conftest.$ac_ext <<_ACEOF
15333 /* end confdefs.h. */
15334 #include <$ac_header>
15336 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
15337 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
15339 grep -v '^ *+' conftest.er1 >conftest.err
15341 cat conftest.err >&5
15342 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15343 (exit $ac_status); } >/dev/null; then
15344 if test -s conftest.err; then
15345 ac_cpp_err=$ac_c_preproc_warn_flag
15346 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
15353 if test -z "$ac_cpp_err"; then
15354 ac_header_preproc=yes
15356 echo "$as_me: failed program was:" >&5
15357 sed 's/^/| /' conftest.$ac_ext >&5
15359 ac_header_preproc=no
15361 rm -f conftest.err conftest.$ac_ext
15362 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
15363 echo "${ECHO_T}$ac_header_preproc" >&6
15365 # So? What about this header?
15366 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
15368 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
15369 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
15370 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
15371 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
15372 ac_header_preproc=yes
15375 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
15376 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
15377 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
15378 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
15379 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
15380 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
15381 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
15382 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
15383 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
15384 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
15385 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
15386 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
15389 ## ------------------------------------------ ##
15390 ## Report this to the AC_PACKAGE_NAME lists. ##
15391 ## ------------------------------------------ ##
15394 sed "s/^/$as_me: WARNING: /" >&2
15397 echo "$as_me:$LINENO: checking for $ac_header" >&5
15398 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
15399 if eval "test \"\${$as_ac_Header+set}\" = set"; then
15400 echo $ECHO_N "(cached) $ECHO_C" >&6
15402 eval "$as_ac_Header=\$ac_header_preproc"
15404 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
15405 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
15408 if test `eval echo '${'$as_ac_Header'}'` = yes; then
15409 cat >>confdefs.h <<_ACEOF
15410 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
15418 # On Solaris 2.[789], we need to define _MSE_INT_H to avoid a clash
15419 # between <widec.h> and <wchar.h> that would cause AC_CHECK_HEADERS to
15420 # think that we don't have <curses.h> if we're using GCC.
15423 if test "$GCC" = yes; then
15425 cat >>confdefs.h <<\_ACEOF
15426 #define _MSE_INT_H 1
15435 for ac_header in curses.h cursesX.h ncurses.h ncurses/ncurses.h
15437 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
15438 if eval "test \"\${$as_ac_Header+set}\" = set"; then
15439 echo "$as_me:$LINENO: checking for $ac_header" >&5
15440 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
15441 if eval "test \"\${$as_ac_Header+set}\" = set"; then
15442 echo $ECHO_N "(cached) $ECHO_C" >&6
15444 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
15445 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
15447 # Is the header compilable?
15448 echo "$as_me:$LINENO: checking $ac_header usability" >&5
15449 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
15450 cat >conftest.$ac_ext <<_ACEOF
15453 cat confdefs.h >>conftest.$ac_ext
15454 cat >>conftest.$ac_ext <<_ACEOF
15455 /* end confdefs.h. */
15456 $ac_includes_default
15457 #include <$ac_header>
15459 rm -f conftest.$ac_objext
15460 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
15461 (eval $ac_compile) 2>conftest.er1
15463 grep -v '^ *+' conftest.er1 >conftest.err
15465 cat conftest.err >&5
15466 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15467 (exit $ac_status); } &&
15468 { ac_try='test -z "$ac_c_werror_flag"
15469 || test ! -s conftest.err'
15470 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15471 (eval $ac_try) 2>&5
15473 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15474 (exit $ac_status); }; } &&
15475 { ac_try='test -s conftest.$ac_objext'
15476 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15477 (eval $ac_try) 2>&5
15479 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15480 (exit $ac_status); }; }; then
15481 ac_header_compiler=yes
15483 echo "$as_me: failed program was:" >&5
15484 sed 's/^/| /' conftest.$ac_ext >&5
15486 ac_header_compiler=no
15488 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
15489 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
15490 echo "${ECHO_T}$ac_header_compiler" >&6
15492 # Is the header present?
15493 echo "$as_me:$LINENO: checking $ac_header presence" >&5
15494 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
15495 cat >conftest.$ac_ext <<_ACEOF
15498 cat confdefs.h >>conftest.$ac_ext
15499 cat >>conftest.$ac_ext <<_ACEOF
15500 /* end confdefs.h. */
15501 #include <$ac_header>
15503 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
15504 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
15506 grep -v '^ *+' conftest.er1 >conftest.err
15508 cat conftest.err >&5
15509 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15510 (exit $ac_status); } >/dev/null; then
15511 if test -s conftest.err; then
15512 ac_cpp_err=$ac_c_preproc_warn_flag
15513 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
15520 if test -z "$ac_cpp_err"; then
15521 ac_header_preproc=yes
15523 echo "$as_me: failed program was:" >&5
15524 sed 's/^/| /' conftest.$ac_ext >&5
15526 ac_header_preproc=no
15528 rm -f conftest.err conftest.$ac_ext
15529 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
15530 echo "${ECHO_T}$ac_header_preproc" >&6
15532 # So? What about this header?
15533 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
15535 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
15536 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
15537 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
15538 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
15539 ac_header_preproc=yes
15542 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
15543 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
15544 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
15545 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
15546 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
15547 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
15548 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
15549 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
15550 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
15551 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
15552 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
15553 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
15556 ## ------------------------------------------ ##
15557 ## Report this to the AC_PACKAGE_NAME lists. ##
15558 ## ------------------------------------------ ##
15561 sed "s/^/$as_me: WARNING: /" >&2
15564 echo "$as_me:$LINENO: checking for $ac_header" >&5
15565 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
15566 if eval "test \"\${$as_ac_Header+set}\" = set"; then
15567 echo $ECHO_N "(cached) $ECHO_C" >&6
15569 eval "$as_ac_Header=\$ac_header_preproc"
15571 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
15572 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
15575 if test `eval echo '${'$as_ac_Header'}'` = yes; then
15576 cat >>confdefs.h <<_ACEOF
15577 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
15585 for ac_header in ncurses/term.h
15587 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
15588 if eval "test \"\${$as_ac_Header+set}\" = set"; then
15589 echo "$as_me:$LINENO: checking for $ac_header" >&5
15590 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
15591 if eval "test \"\${$as_ac_Header+set}\" = set"; then
15592 echo $ECHO_N "(cached) $ECHO_C" >&6
15594 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
15595 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
15597 # Is the header compilable?
15598 echo "$as_me:$LINENO: checking $ac_header usability" >&5
15599 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
15600 cat >conftest.$ac_ext <<_ACEOF
15603 cat confdefs.h >>conftest.$ac_ext
15604 cat >>conftest.$ac_ext <<_ACEOF
15605 /* end confdefs.h. */
15606 $ac_includes_default
15607 #include <$ac_header>
15609 rm -f conftest.$ac_objext
15610 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
15611 (eval $ac_compile) 2>conftest.er1
15613 grep -v '^ *+' conftest.er1 >conftest.err
15615 cat conftest.err >&5
15616 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15617 (exit $ac_status); } &&
15618 { ac_try='test -z "$ac_c_werror_flag"
15619 || test ! -s conftest.err'
15620 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15621 (eval $ac_try) 2>&5
15623 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15624 (exit $ac_status); }; } &&
15625 { ac_try='test -s conftest.$ac_objext'
15626 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15627 (eval $ac_try) 2>&5
15629 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15630 (exit $ac_status); }; }; then
15631 ac_header_compiler=yes
15633 echo "$as_me: failed program was:" >&5
15634 sed 's/^/| /' conftest.$ac_ext >&5
15636 ac_header_compiler=no
15638 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
15639 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
15640 echo "${ECHO_T}$ac_header_compiler" >&6
15642 # Is the header present?
15643 echo "$as_me:$LINENO: checking $ac_header presence" >&5
15644 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
15645 cat >conftest.$ac_ext <<_ACEOF
15648 cat confdefs.h >>conftest.$ac_ext
15649 cat >>conftest.$ac_ext <<_ACEOF
15650 /* end confdefs.h. */
15651 #include <$ac_header>
15653 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
15654 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
15656 grep -v '^ *+' conftest.er1 >conftest.err
15658 cat conftest.err >&5
15659 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15660 (exit $ac_status); } >/dev/null; then
15661 if test -s conftest.err; then
15662 ac_cpp_err=$ac_c_preproc_warn_flag
15663 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
15670 if test -z "$ac_cpp_err"; then
15671 ac_header_preproc=yes
15673 echo "$as_me: failed program was:" >&5
15674 sed 's/^/| /' conftest.$ac_ext >&5
15676 ac_header_preproc=no
15678 rm -f conftest.err conftest.$ac_ext
15679 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
15680 echo "${ECHO_T}$ac_header_preproc" >&6
15682 # So? What about this header?
15683 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
15685 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
15686 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
15687 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
15688 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
15689 ac_header_preproc=yes
15692 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
15693 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
15694 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
15695 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
15696 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
15697 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
15698 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
15699 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
15700 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
15701 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
15702 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
15703 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
15706 ## ------------------------------------------ ##
15707 ## Report this to the AC_PACKAGE_NAME lists. ##
15708 ## ------------------------------------------ ##
15711 sed "s/^/$as_me: WARNING: /" >&2
15714 echo "$as_me:$LINENO: checking for $ac_header" >&5
15715 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
15716 if eval "test \"\${$as_ac_Header+set}\" = set"; then
15717 echo $ECHO_N "(cached) $ECHO_C" >&6
15719 eval "$as_ac_Header=\$ac_header_preproc"
15721 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
15722 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
15725 if test `eval echo '${'$as_ac_Header'}'` = yes; then
15726 cat >>confdefs.h <<_ACEOF
15727 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
15735 for ac_header in term.h
15737 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
15738 echo "$as_me:$LINENO: checking for $ac_header" >&5
15739 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
15740 if eval "test \"\${$as_ac_Header+set}\" = set"; then
15741 echo $ECHO_N "(cached) $ECHO_C" >&6
15743 cat >conftest.$ac_ext <<_ACEOF
15746 cat confdefs.h >>conftest.$ac_ext
15747 cat >>conftest.$ac_ext <<_ACEOF
15748 /* end confdefs.h. */
15750 # include <curses.h>
15754 #include <$ac_header>
15756 rm -f conftest.$ac_objext
15757 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
15758 (eval $ac_compile) 2>conftest.er1
15760 grep -v '^ *+' conftest.er1 >conftest.err
15762 cat conftest.err >&5
15763 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15764 (exit $ac_status); } &&
15765 { ac_try='test -z "$ac_c_werror_flag"
15766 || test ! -s conftest.err'
15767 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15768 (eval $ac_try) 2>&5
15770 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15771 (exit $ac_status); }; } &&
15772 { ac_try='test -s conftest.$ac_objext'
15773 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15774 (eval $ac_try) 2>&5
15776 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15777 (exit $ac_status); }; }; then
15778 eval "$as_ac_Header=yes"
15780 echo "$as_me: failed program was:" >&5
15781 sed 's/^/| /' conftest.$ac_ext >&5
15783 eval "$as_ac_Header=no"
15785 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
15787 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
15788 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
15789 if test `eval echo '${'$as_ac_Header'}'` = yes; then
15790 cat >>confdefs.h <<_ACEOF
15791 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
15799 # Check for HP/UX 64-bit shared library support
15801 for ac_header in elf_hp.h
15803 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
15804 if eval "test \"\${$as_ac_Header+set}\" = set"; then
15805 echo "$as_me:$LINENO: checking for $ac_header" >&5
15806 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
15807 if eval "test \"\${$as_ac_Header+set}\" = set"; then
15808 echo $ECHO_N "(cached) $ECHO_C" >&6
15810 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
15811 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
15813 # Is the header compilable?
15814 echo "$as_me:$LINENO: checking $ac_header usability" >&5
15815 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
15816 cat >conftest.$ac_ext <<_ACEOF
15819 cat confdefs.h >>conftest.$ac_ext
15820 cat >>conftest.$ac_ext <<_ACEOF
15821 /* end confdefs.h. */
15822 $ac_includes_default
15823 #include <$ac_header>
15825 rm -f conftest.$ac_objext
15826 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
15827 (eval $ac_compile) 2>conftest.er1
15829 grep -v '^ *+' conftest.er1 >conftest.err
15831 cat conftest.err >&5
15832 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15833 (exit $ac_status); } &&
15834 { ac_try='test -z "$ac_c_werror_flag"
15835 || test ! -s conftest.err'
15836 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15837 (eval $ac_try) 2>&5
15839 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15840 (exit $ac_status); }; } &&
15841 { ac_try='test -s conftest.$ac_objext'
15842 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15843 (eval $ac_try) 2>&5
15845 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15846 (exit $ac_status); }; }; then
15847 ac_header_compiler=yes
15849 echo "$as_me: failed program was:" >&5
15850 sed 's/^/| /' conftest.$ac_ext >&5
15852 ac_header_compiler=no
15854 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
15855 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
15856 echo "${ECHO_T}$ac_header_compiler" >&6
15858 # Is the header present?
15859 echo "$as_me:$LINENO: checking $ac_header presence" >&5
15860 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
15861 cat >conftest.$ac_ext <<_ACEOF
15864 cat confdefs.h >>conftest.$ac_ext
15865 cat >>conftest.$ac_ext <<_ACEOF
15866 /* end confdefs.h. */
15867 #include <$ac_header>
15869 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
15870 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
15872 grep -v '^ *+' conftest.er1 >conftest.err
15874 cat conftest.err >&5
15875 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15876 (exit $ac_status); } >/dev/null; then
15877 if test -s conftest.err; then
15878 ac_cpp_err=$ac_c_preproc_warn_flag
15879 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
15886 if test -z "$ac_cpp_err"; then
15887 ac_header_preproc=yes
15889 echo "$as_me: failed program was:" >&5
15890 sed 's/^/| /' conftest.$ac_ext >&5
15892 ac_header_preproc=no
15894 rm -f conftest.err conftest.$ac_ext
15895 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
15896 echo "${ECHO_T}$ac_header_preproc" >&6
15898 # So? What about this header?
15899 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
15901 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
15902 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
15903 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
15904 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
15905 ac_header_preproc=yes
15908 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
15909 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
15910 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
15911 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
15912 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
15913 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
15914 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
15915 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
15916 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
15917 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
15918 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
15919 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
15922 ## ------------------------------------------ ##
15923 ## Report this to the AC_PACKAGE_NAME lists. ##
15924 ## ------------------------------------------ ##
15927 sed "s/^/$as_me: WARNING: /" >&2
15930 echo "$as_me:$LINENO: checking for $ac_header" >&5
15931 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
15932 if eval "test \"\${$as_ac_Header+set}\" = set"; then
15933 echo $ECHO_N "(cached) $ECHO_C" >&6
15935 eval "$as_ac_Header=\$ac_header_preproc"
15937 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
15938 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
15941 if test `eval echo '${'$as_ac_Header'}'` = yes; then
15942 cat >>confdefs.h <<_ACEOF
15943 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
15951 # FIXME: kettenis/20030102: In most cases we include these
15952 # unconditionally, so what's the point in checking these?
15955 for ac_header in ctype.h time.h
15957 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
15958 if eval "test \"\${$as_ac_Header+set}\" = set"; then
15959 echo "$as_me:$LINENO: checking for $ac_header" >&5
15960 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
15961 if eval "test \"\${$as_ac_Header+set}\" = set"; then
15962 echo $ECHO_N "(cached) $ECHO_C" >&6
15964 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
15965 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
15967 # Is the header compilable?
15968 echo "$as_me:$LINENO: checking $ac_header usability" >&5
15969 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
15970 cat >conftest.$ac_ext <<_ACEOF
15973 cat confdefs.h >>conftest.$ac_ext
15974 cat >>conftest.$ac_ext <<_ACEOF
15975 /* end confdefs.h. */
15976 $ac_includes_default
15977 #include <$ac_header>
15979 rm -f conftest.$ac_objext
15980 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
15981 (eval $ac_compile) 2>conftest.er1
15983 grep -v '^ *+' conftest.er1 >conftest.err
15985 cat conftest.err >&5
15986 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15987 (exit $ac_status); } &&
15988 { ac_try='test -z "$ac_c_werror_flag"
15989 || test ! -s conftest.err'
15990 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15991 (eval $ac_try) 2>&5
15993 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15994 (exit $ac_status); }; } &&
15995 { ac_try='test -s conftest.$ac_objext'
15996 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15997 (eval $ac_try) 2>&5
15999 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16000 (exit $ac_status); }; }; then
16001 ac_header_compiler=yes
16003 echo "$as_me: failed program was:" >&5
16004 sed 's/^/| /' conftest.$ac_ext >&5
16006 ac_header_compiler=no
16008 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
16009 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
16010 echo "${ECHO_T}$ac_header_compiler" >&6
16012 # Is the header present?
16013 echo "$as_me:$LINENO: checking $ac_header presence" >&5
16014 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
16015 cat >conftest.$ac_ext <<_ACEOF
16018 cat confdefs.h >>conftest.$ac_ext
16019 cat >>conftest.$ac_ext <<_ACEOF
16020 /* end confdefs.h. */
16021 #include <$ac_header>
16023 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
16024 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
16026 grep -v '^ *+' conftest.er1 >conftest.err
16028 cat conftest.err >&5
16029 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16030 (exit $ac_status); } >/dev/null; then
16031 if test -s conftest.err; then
16032 ac_cpp_err=$ac_c_preproc_warn_flag
16033 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
16040 if test -z "$ac_cpp_err"; then
16041 ac_header_preproc=yes
16043 echo "$as_me: failed program was:" >&5
16044 sed 's/^/| /' conftest.$ac_ext >&5
16046 ac_header_preproc=no
16048 rm -f conftest.err conftest.$ac_ext
16049 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
16050 echo "${ECHO_T}$ac_header_preproc" >&6
16052 # So? What about this header?
16053 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
16055 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
16056 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
16057 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
16058 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
16059 ac_header_preproc=yes
16062 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
16063 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
16064 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
16065 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
16066 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
16067 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
16068 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
16069 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
16070 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
16071 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
16072 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
16073 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
16076 ## ------------------------------------------ ##
16077 ## Report this to the AC_PACKAGE_NAME lists. ##
16078 ## ------------------------------------------ ##
16081 sed "s/^/$as_me: WARNING: /" >&2
16084 echo "$as_me:$LINENO: checking for $ac_header" >&5
16085 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
16086 if eval "test \"\${$as_ac_Header+set}\" = set"; then
16087 echo $ECHO_N "(cached) $ECHO_C" >&6
16089 eval "$as_ac_Header=\$ac_header_preproc"
16091 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
16092 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
16095 if test `eval echo '${'$as_ac_Header'}'` = yes; then
16096 cat >>confdefs.h <<_ACEOF
16097 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
16105 # ------------------------- #
16106 # Checks for declarations. #
16107 # ------------------------- #
16109 echo "$as_me:$LINENO: checking whether free is declared" >&5
16110 echo $ECHO_N "checking whether free is declared... $ECHO_C" >&6
16111 if test "${ac_cv_have_decl_free+set}" = set; then
16112 echo $ECHO_N "(cached) $ECHO_C" >&6
16114 cat >conftest.$ac_ext <<_ACEOF
16117 cat confdefs.h >>conftest.$ac_ext
16118 cat >>conftest.$ac_ext <<_ACEOF
16119 /* end confdefs.h. */
16120 $ac_includes_default
16125 char *p = (char *) free;
16132 rm -f conftest.$ac_objext
16133 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
16134 (eval $ac_compile) 2>conftest.er1
16136 grep -v '^ *+' conftest.er1 >conftest.err
16138 cat conftest.err >&5
16139 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16140 (exit $ac_status); } &&
16141 { ac_try='test -z "$ac_c_werror_flag"
16142 || test ! -s conftest.err'
16143 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16144 (eval $ac_try) 2>&5
16146 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16147 (exit $ac_status); }; } &&
16148 { ac_try='test -s conftest.$ac_objext'
16149 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16150 (eval $ac_try) 2>&5
16152 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16153 (exit $ac_status); }; }; then
16154 ac_cv_have_decl_free=yes
16156 echo "$as_me: failed program was:" >&5
16157 sed 's/^/| /' conftest.$ac_ext >&5
16159 ac_cv_have_decl_free=no
16161 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
16163 echo "$as_me:$LINENO: result: $ac_cv_have_decl_free" >&5
16164 echo "${ECHO_T}$ac_cv_have_decl_free" >&6
16165 if test $ac_cv_have_decl_free = yes; then
16167 cat >>confdefs.h <<_ACEOF
16168 #define HAVE_DECL_FREE 1
16173 cat >>confdefs.h <<_ACEOF
16174 #define HAVE_DECL_FREE 0
16179 echo "$as_me:$LINENO: checking whether malloc is declared" >&5
16180 echo $ECHO_N "checking whether malloc is declared... $ECHO_C" >&6
16181 if test "${ac_cv_have_decl_malloc+set}" = set; then
16182 echo $ECHO_N "(cached) $ECHO_C" >&6
16184 cat >conftest.$ac_ext <<_ACEOF
16187 cat confdefs.h >>conftest.$ac_ext
16188 cat >>conftest.$ac_ext <<_ACEOF
16189 /* end confdefs.h. */
16190 $ac_includes_default
16195 char *p = (char *) malloc;
16202 rm -f conftest.$ac_objext
16203 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
16204 (eval $ac_compile) 2>conftest.er1
16206 grep -v '^ *+' conftest.er1 >conftest.err
16208 cat conftest.err >&5
16209 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16210 (exit $ac_status); } &&
16211 { ac_try='test -z "$ac_c_werror_flag"
16212 || test ! -s conftest.err'
16213 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16214 (eval $ac_try) 2>&5
16216 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16217 (exit $ac_status); }; } &&
16218 { ac_try='test -s conftest.$ac_objext'
16219 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16220 (eval $ac_try) 2>&5
16222 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16223 (exit $ac_status); }; }; then
16224 ac_cv_have_decl_malloc=yes
16226 echo "$as_me: failed program was:" >&5
16227 sed 's/^/| /' conftest.$ac_ext >&5
16229 ac_cv_have_decl_malloc=no
16231 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
16233 echo "$as_me:$LINENO: result: $ac_cv_have_decl_malloc" >&5
16234 echo "${ECHO_T}$ac_cv_have_decl_malloc" >&6
16235 if test $ac_cv_have_decl_malloc = yes; then
16237 cat >>confdefs.h <<_ACEOF
16238 #define HAVE_DECL_MALLOC 1
16243 cat >>confdefs.h <<_ACEOF
16244 #define HAVE_DECL_MALLOC 0
16249 echo "$as_me:$LINENO: checking whether realloc is declared" >&5
16250 echo $ECHO_N "checking whether realloc is declared... $ECHO_C" >&6
16251 if test "${ac_cv_have_decl_realloc+set}" = set; then
16252 echo $ECHO_N "(cached) $ECHO_C" >&6
16254 cat >conftest.$ac_ext <<_ACEOF
16257 cat confdefs.h >>conftest.$ac_ext
16258 cat >>conftest.$ac_ext <<_ACEOF
16259 /* end confdefs.h. */
16260 $ac_includes_default
16265 char *p = (char *) realloc;
16272 rm -f conftest.$ac_objext
16273 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
16274 (eval $ac_compile) 2>conftest.er1
16276 grep -v '^ *+' conftest.er1 >conftest.err
16278 cat conftest.err >&5
16279 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16280 (exit $ac_status); } &&
16281 { ac_try='test -z "$ac_c_werror_flag"
16282 || test ! -s conftest.err'
16283 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16284 (eval $ac_try) 2>&5
16286 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16287 (exit $ac_status); }; } &&
16288 { ac_try='test -s conftest.$ac_objext'
16289 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16290 (eval $ac_try) 2>&5
16292 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16293 (exit $ac_status); }; }; then
16294 ac_cv_have_decl_realloc=yes
16296 echo "$as_me: failed program was:" >&5
16297 sed 's/^/| /' conftest.$ac_ext >&5
16299 ac_cv_have_decl_realloc=no
16301 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
16303 echo "$as_me:$LINENO: result: $ac_cv_have_decl_realloc" >&5
16304 echo "${ECHO_T}$ac_cv_have_decl_realloc" >&6
16305 if test $ac_cv_have_decl_realloc = yes; then
16307 cat >>confdefs.h <<_ACEOF
16308 #define HAVE_DECL_REALLOC 1
16313 cat >>confdefs.h <<_ACEOF
16314 #define HAVE_DECL_REALLOC 0
16321 echo "$as_me:$LINENO: checking whether strerror is declared" >&5
16322 echo $ECHO_N "checking whether strerror is declared... $ECHO_C" >&6
16323 if test "${ac_cv_have_decl_strerror+set}" = set; then
16324 echo $ECHO_N "(cached) $ECHO_C" >&6
16326 cat >conftest.$ac_ext <<_ACEOF
16329 cat confdefs.h >>conftest.$ac_ext
16330 cat >>conftest.$ac_ext <<_ACEOF
16331 /* end confdefs.h. */
16332 $ac_includes_default
16337 char *p = (char *) strerror;
16344 rm -f conftest.$ac_objext
16345 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
16346 (eval $ac_compile) 2>conftest.er1
16348 grep -v '^ *+' conftest.er1 >conftest.err
16350 cat conftest.err >&5
16351 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16352 (exit $ac_status); } &&
16353 { ac_try='test -z "$ac_c_werror_flag"
16354 || test ! -s conftest.err'
16355 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16356 (eval $ac_try) 2>&5
16358 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16359 (exit $ac_status); }; } &&
16360 { ac_try='test -s conftest.$ac_objext'
16361 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16362 (eval $ac_try) 2>&5
16364 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16365 (exit $ac_status); }; }; then
16366 ac_cv_have_decl_strerror=yes
16368 echo "$as_me: failed program was:" >&5
16369 sed 's/^/| /' conftest.$ac_ext >&5
16371 ac_cv_have_decl_strerror=no
16373 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
16375 echo "$as_me:$LINENO: result: $ac_cv_have_decl_strerror" >&5
16376 echo "${ECHO_T}$ac_cv_have_decl_strerror" >&6
16377 if test $ac_cv_have_decl_strerror = yes; then
16379 cat >>confdefs.h <<_ACEOF
16380 #define HAVE_DECL_STRERROR 1
16385 cat >>confdefs.h <<_ACEOF
16386 #define HAVE_DECL_STRERROR 0
16391 echo "$as_me:$LINENO: checking whether strstr is declared" >&5
16392 echo $ECHO_N "checking whether strstr is declared... $ECHO_C" >&6
16393 if test "${ac_cv_have_decl_strstr+set}" = set; then
16394 echo $ECHO_N "(cached) $ECHO_C" >&6
16396 cat >conftest.$ac_ext <<_ACEOF
16399 cat confdefs.h >>conftest.$ac_ext
16400 cat >>conftest.$ac_ext <<_ACEOF
16401 /* end confdefs.h. */
16402 $ac_includes_default
16407 char *p = (char *) strstr;
16414 rm -f conftest.$ac_objext
16415 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
16416 (eval $ac_compile) 2>conftest.er1
16418 grep -v '^ *+' conftest.er1 >conftest.err
16420 cat conftest.err >&5
16421 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16422 (exit $ac_status); } &&
16423 { ac_try='test -z "$ac_c_werror_flag"
16424 || test ! -s conftest.err'
16425 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16426 (eval $ac_try) 2>&5
16428 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16429 (exit $ac_status); }; } &&
16430 { ac_try='test -s conftest.$ac_objext'
16431 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16432 (eval $ac_try) 2>&5
16434 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16435 (exit $ac_status); }; }; then
16436 ac_cv_have_decl_strstr=yes
16438 echo "$as_me: failed program was:" >&5
16439 sed 's/^/| /' conftest.$ac_ext >&5
16441 ac_cv_have_decl_strstr=no
16443 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
16445 echo "$as_me:$LINENO: result: $ac_cv_have_decl_strstr" >&5
16446 echo "${ECHO_T}$ac_cv_have_decl_strstr" >&6
16447 if test $ac_cv_have_decl_strstr = yes; then
16449 cat >>confdefs.h <<_ACEOF
16450 #define HAVE_DECL_STRSTR 1
16455 cat >>confdefs.h <<_ACEOF
16456 #define HAVE_DECL_STRSTR 0
16463 echo "$as_me:$LINENO: checking whether getopt is declared" >&5
16464 echo $ECHO_N "checking whether getopt is declared... $ECHO_C" >&6
16465 if test "${ac_cv_have_decl_getopt+set}" = set; then
16466 echo $ECHO_N "(cached) $ECHO_C" >&6
16468 cat >conftest.$ac_ext <<_ACEOF
16471 cat confdefs.h >>conftest.$ac_ext
16472 cat >>conftest.$ac_ext <<_ACEOF
16473 /* end confdefs.h. */
16474 $ac_includes_default
16479 char *p = (char *) getopt;
16486 rm -f conftest.$ac_objext
16487 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
16488 (eval $ac_compile) 2>conftest.er1
16490 grep -v '^ *+' conftest.er1 >conftest.err
16492 cat conftest.err >&5
16493 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16494 (exit $ac_status); } &&
16495 { ac_try='test -z "$ac_c_werror_flag"
16496 || test ! -s conftest.err'
16497 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16498 (eval $ac_try) 2>&5
16500 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16501 (exit $ac_status); }; } &&
16502 { ac_try='test -s conftest.$ac_objext'
16503 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16504 (eval $ac_try) 2>&5
16506 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16507 (exit $ac_status); }; }; then
16508 ac_cv_have_decl_getopt=yes
16510 echo "$as_me: failed program was:" >&5
16511 sed 's/^/| /' conftest.$ac_ext >&5
16513 ac_cv_have_decl_getopt=no
16515 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
16517 echo "$as_me:$LINENO: result: $ac_cv_have_decl_getopt" >&5
16518 echo "${ECHO_T}$ac_cv_have_decl_getopt" >&6
16519 if test $ac_cv_have_decl_getopt = yes; then
16521 cat >>confdefs.h <<_ACEOF
16522 #define HAVE_DECL_GETOPT 1
16527 cat >>confdefs.h <<_ACEOF
16528 #define HAVE_DECL_GETOPT 0
16533 echo "$as_me:$LINENO: checking whether snprintf is declared" >&5
16534 echo $ECHO_N "checking whether snprintf is declared... $ECHO_C" >&6
16535 if test "${ac_cv_have_decl_snprintf+set}" = set; then
16536 echo $ECHO_N "(cached) $ECHO_C" >&6
16538 cat >conftest.$ac_ext <<_ACEOF
16541 cat confdefs.h >>conftest.$ac_ext
16542 cat >>conftest.$ac_ext <<_ACEOF
16543 /* end confdefs.h. */
16544 $ac_includes_default
16549 char *p = (char *) snprintf;
16556 rm -f conftest.$ac_objext
16557 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
16558 (eval $ac_compile) 2>conftest.er1
16560 grep -v '^ *+' conftest.er1 >conftest.err
16562 cat conftest.err >&5
16563 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16564 (exit $ac_status); } &&
16565 { ac_try='test -z "$ac_c_werror_flag"
16566 || test ! -s conftest.err'
16567 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16568 (eval $ac_try) 2>&5
16570 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16571 (exit $ac_status); }; } &&
16572 { ac_try='test -s conftest.$ac_objext'
16573 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16574 (eval $ac_try) 2>&5
16576 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16577 (exit $ac_status); }; }; then
16578 ac_cv_have_decl_snprintf=yes
16580 echo "$as_me: failed program was:" >&5
16581 sed 's/^/| /' conftest.$ac_ext >&5
16583 ac_cv_have_decl_snprintf=no
16585 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
16587 echo "$as_me:$LINENO: result: $ac_cv_have_decl_snprintf" >&5
16588 echo "${ECHO_T}$ac_cv_have_decl_snprintf" >&6
16589 if test $ac_cv_have_decl_snprintf = yes; then
16591 cat >>confdefs.h <<_ACEOF
16592 #define HAVE_DECL_SNPRINTF 1
16597 cat >>confdefs.h <<_ACEOF
16598 #define HAVE_DECL_SNPRINTF 0
16603 echo "$as_me:$LINENO: checking whether vsnprintf is declared" >&5
16604 echo $ECHO_N "checking whether vsnprintf is declared... $ECHO_C" >&6
16605 if test "${ac_cv_have_decl_vsnprintf+set}" = set; then
16606 echo $ECHO_N "(cached) $ECHO_C" >&6
16608 cat >conftest.$ac_ext <<_ACEOF
16611 cat confdefs.h >>conftest.$ac_ext
16612 cat >>conftest.$ac_ext <<_ACEOF
16613 /* end confdefs.h. */
16614 $ac_includes_default
16619 char *p = (char *) vsnprintf;
16626 rm -f conftest.$ac_objext
16627 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
16628 (eval $ac_compile) 2>conftest.er1
16630 grep -v '^ *+' conftest.er1 >conftest.err
16632 cat conftest.err >&5
16633 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16634 (exit $ac_status); } &&
16635 { ac_try='test -z "$ac_c_werror_flag"
16636 || test ! -s conftest.err'
16637 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16638 (eval $ac_try) 2>&5
16640 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16641 (exit $ac_status); }; } &&
16642 { ac_try='test -s conftest.$ac_objext'
16643 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16644 (eval $ac_try) 2>&5
16646 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16647 (exit $ac_status); }; }; then
16648 ac_cv_have_decl_vsnprintf=yes
16650 echo "$as_me: failed program was:" >&5
16651 sed 's/^/| /' conftest.$ac_ext >&5
16653 ac_cv_have_decl_vsnprintf=no
16655 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
16657 echo "$as_me:$LINENO: result: $ac_cv_have_decl_vsnprintf" >&5
16658 echo "${ECHO_T}$ac_cv_have_decl_vsnprintf" >&6
16659 if test $ac_cv_have_decl_vsnprintf = yes; then
16661 cat >>confdefs.h <<_ACEOF
16662 #define HAVE_DECL_VSNPRINTF 1
16667 cat >>confdefs.h <<_ACEOF
16668 #define HAVE_DECL_VSNPRINTF 0
16676 # ----------------------- #
16677 # Checks for structures. #
16678 # ----------------------- #
16680 echo "$as_me:$LINENO: checking for struct stat.st_blocks" >&5
16681 echo $ECHO_N "checking for struct stat.st_blocks... $ECHO_C" >&6
16682 if test "${ac_cv_member_struct_stat_st_blocks+set}" = set; then
16683 echo $ECHO_N "(cached) $ECHO_C" >&6
16685 cat >conftest.$ac_ext <<_ACEOF
16688 cat confdefs.h >>conftest.$ac_ext
16689 cat >>conftest.$ac_ext <<_ACEOF
16690 /* end confdefs.h. */
16691 $ac_includes_default
16695 static struct stat ac_aggr;
16696 if (ac_aggr.st_blocks)
16702 rm -f conftest.$ac_objext
16703 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
16704 (eval $ac_compile) 2>conftest.er1
16706 grep -v '^ *+' conftest.er1 >conftest.err
16708 cat conftest.err >&5
16709 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16710 (exit $ac_status); } &&
16711 { ac_try='test -z "$ac_c_werror_flag"
16712 || test ! -s conftest.err'
16713 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16714 (eval $ac_try) 2>&5
16716 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16717 (exit $ac_status); }; } &&
16718 { ac_try='test -s conftest.$ac_objext'
16719 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16720 (eval $ac_try) 2>&5
16722 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16723 (exit $ac_status); }; }; then
16724 ac_cv_member_struct_stat_st_blocks=yes
16726 echo "$as_me: failed program was:" >&5
16727 sed 's/^/| /' conftest.$ac_ext >&5
16729 cat >conftest.$ac_ext <<_ACEOF
16732 cat confdefs.h >>conftest.$ac_ext
16733 cat >>conftest.$ac_ext <<_ACEOF
16734 /* end confdefs.h. */
16735 $ac_includes_default
16739 static struct stat ac_aggr;
16740 if (sizeof ac_aggr.st_blocks)
16746 rm -f conftest.$ac_objext
16747 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
16748 (eval $ac_compile) 2>conftest.er1
16750 grep -v '^ *+' conftest.er1 >conftest.err
16752 cat conftest.err >&5
16753 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16754 (exit $ac_status); } &&
16755 { ac_try='test -z "$ac_c_werror_flag"
16756 || test ! -s conftest.err'
16757 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16758 (eval $ac_try) 2>&5
16760 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16761 (exit $ac_status); }; } &&
16762 { ac_try='test -s conftest.$ac_objext'
16763 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16764 (eval $ac_try) 2>&5
16766 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16767 (exit $ac_status); }; }; then
16768 ac_cv_member_struct_stat_st_blocks=yes
16770 echo "$as_me: failed program was:" >&5
16771 sed 's/^/| /' conftest.$ac_ext >&5
16773 ac_cv_member_struct_stat_st_blocks=no
16775 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
16777 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
16779 echo "$as_me:$LINENO: result: $ac_cv_member_struct_stat_st_blocks" >&5
16780 echo "${ECHO_T}$ac_cv_member_struct_stat_st_blocks" >&6
16781 if test $ac_cv_member_struct_stat_st_blocks = yes; then
16783 cat >>confdefs.h <<_ACEOF
16784 #define HAVE_STRUCT_STAT_ST_BLOCKS 1
16790 echo "$as_me:$LINENO: checking for struct stat.st_blksize" >&5
16791 echo $ECHO_N "checking for struct stat.st_blksize... $ECHO_C" >&6
16792 if test "${ac_cv_member_struct_stat_st_blksize+set}" = set; then
16793 echo $ECHO_N "(cached) $ECHO_C" >&6
16795 cat >conftest.$ac_ext <<_ACEOF
16798 cat confdefs.h >>conftest.$ac_ext
16799 cat >>conftest.$ac_ext <<_ACEOF
16800 /* end confdefs.h. */
16801 $ac_includes_default
16805 static struct stat ac_aggr;
16806 if (ac_aggr.st_blksize)
16812 rm -f conftest.$ac_objext
16813 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
16814 (eval $ac_compile) 2>conftest.er1
16816 grep -v '^ *+' conftest.er1 >conftest.err
16818 cat conftest.err >&5
16819 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16820 (exit $ac_status); } &&
16821 { ac_try='test -z "$ac_c_werror_flag"
16822 || test ! -s conftest.err'
16823 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16824 (eval $ac_try) 2>&5
16826 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16827 (exit $ac_status); }; } &&
16828 { ac_try='test -s conftest.$ac_objext'
16829 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16830 (eval $ac_try) 2>&5
16832 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16833 (exit $ac_status); }; }; then
16834 ac_cv_member_struct_stat_st_blksize=yes
16836 echo "$as_me: failed program was:" >&5
16837 sed 's/^/| /' conftest.$ac_ext >&5
16839 cat >conftest.$ac_ext <<_ACEOF
16842 cat confdefs.h >>conftest.$ac_ext
16843 cat >>conftest.$ac_ext <<_ACEOF
16844 /* end confdefs.h. */
16845 $ac_includes_default
16849 static struct stat ac_aggr;
16850 if (sizeof ac_aggr.st_blksize)
16856 rm -f conftest.$ac_objext
16857 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
16858 (eval $ac_compile) 2>conftest.er1
16860 grep -v '^ *+' conftest.er1 >conftest.err
16862 cat conftest.err >&5
16863 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16864 (exit $ac_status); } &&
16865 { ac_try='test -z "$ac_c_werror_flag"
16866 || test ! -s conftest.err'
16867 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16868 (eval $ac_try) 2>&5
16870 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16871 (exit $ac_status); }; } &&
16872 { ac_try='test -s conftest.$ac_objext'
16873 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16874 (eval $ac_try) 2>&5
16876 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16877 (exit $ac_status); }; }; then
16878 ac_cv_member_struct_stat_st_blksize=yes
16880 echo "$as_me: failed program was:" >&5
16881 sed 's/^/| /' conftest.$ac_ext >&5
16883 ac_cv_member_struct_stat_st_blksize=no
16885 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
16887 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
16889 echo "$as_me:$LINENO: result: $ac_cv_member_struct_stat_st_blksize" >&5
16890 echo "${ECHO_T}$ac_cv_member_struct_stat_st_blksize" >&6
16891 if test $ac_cv_member_struct_stat_st_blksize = yes; then
16893 cat >>confdefs.h <<_ACEOF
16894 #define HAVE_STRUCT_STAT_ST_BLKSIZE 1
16901 # ------------------ #
16902 # Checks for types. #
16903 # ------------------ #
16905 echo "$as_me:$LINENO: checking return type of signal handlers" >&5
16906 echo $ECHO_N "checking return type of signal handlers... $ECHO_C" >&6
16907 if test "${ac_cv_type_signal+set}" = set; then
16908 echo $ECHO_N "(cached) $ECHO_C" >&6
16910 cat >conftest.$ac_ext <<_ACEOF
16913 cat confdefs.h >>conftest.$ac_ext
16914 cat >>conftest.$ac_ext <<_ACEOF
16915 /* end confdefs.h. */
16916 #include <sys/types.h>
16917 #include <signal.h>
16922 extern "C" void (*signal (int, void (*)(int)))(int);
16924 void (*signal ()) ();
16935 rm -f conftest.$ac_objext
16936 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
16937 (eval $ac_compile) 2>conftest.er1
16939 grep -v '^ *+' conftest.er1 >conftest.err
16941 cat conftest.err >&5
16942 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16943 (exit $ac_status); } &&
16944 { ac_try='test -z "$ac_c_werror_flag"
16945 || test ! -s conftest.err'
16946 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16947 (eval $ac_try) 2>&5
16949 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16950 (exit $ac_status); }; } &&
16951 { ac_try='test -s conftest.$ac_objext'
16952 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16953 (eval $ac_try) 2>&5
16955 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16956 (exit $ac_status); }; }; then
16957 ac_cv_type_signal=void
16959 echo "$as_me: failed program was:" >&5
16960 sed 's/^/| /' conftest.$ac_ext >&5
16962 ac_cv_type_signal=int
16964 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
16966 echo "$as_me:$LINENO: result: $ac_cv_type_signal" >&5
16967 echo "${ECHO_T}$ac_cv_type_signal" >&6
16969 cat >>confdefs.h <<_ACEOF
16970 #define RETSIGTYPE $ac_cv_type_signal
16974 echo "$as_me:$LINENO: checking for socklen_t" >&5
16975 echo $ECHO_N "checking for socklen_t... $ECHO_C" >&6
16976 if test "${ac_cv_type_socklen_t+set}" = set; then
16977 echo $ECHO_N "(cached) $ECHO_C" >&6
16979 cat >conftest.$ac_ext <<_ACEOF
16982 cat confdefs.h >>conftest.$ac_ext
16983 cat >>conftest.$ac_ext <<_ACEOF
16984 /* end confdefs.h. */
16985 #include <sys/types.h>
16986 #include <sys/socket.h>
16992 if ((socklen_t *) 0)
16994 if (sizeof (socklen_t))
17000 rm -f conftest.$ac_objext
17001 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
17002 (eval $ac_compile) 2>conftest.er1
17004 grep -v '^ *+' conftest.er1 >conftest.err
17006 cat conftest.err >&5
17007 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17008 (exit $ac_status); } &&
17009 { ac_try='test -z "$ac_c_werror_flag"
17010 || test ! -s conftest.err'
17011 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17012 (eval $ac_try) 2>&5
17014 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17015 (exit $ac_status); }; } &&
17016 { ac_try='test -s conftest.$ac_objext'
17017 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17018 (eval $ac_try) 2>&5
17020 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17021 (exit $ac_status); }; }; then
17022 ac_cv_type_socklen_t=yes
17024 echo "$as_me: failed program was:" >&5
17025 sed 's/^/| /' conftest.$ac_ext >&5
17027 ac_cv_type_socklen_t=no
17029 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
17031 echo "$as_me:$LINENO: result: $ac_cv_type_socklen_t" >&5
17032 echo "${ECHO_T}$ac_cv_type_socklen_t" >&6
17033 if test $ac_cv_type_socklen_t = yes; then
17035 cat >>confdefs.h <<_ACEOF
17036 #define HAVE_SOCKLEN_T 1
17043 # ------------------------------------- #
17044 # Checks for compiler characteristics. #
17045 # ------------------------------------- #
17047 echo "$as_me:$LINENO: checking for an ANSI C-conforming const" >&5
17048 echo $ECHO_N "checking for an ANSI C-conforming const... $ECHO_C" >&6
17049 if test "${ac_cv_c_const+set}" = set; then
17050 echo $ECHO_N "(cached) $ECHO_C" >&6
17052 cat >conftest.$ac_ext <<_ACEOF
17055 cat confdefs.h >>conftest.$ac_ext
17056 cat >>conftest.$ac_ext <<_ACEOF
17057 /* end confdefs.h. */
17062 /* FIXME: Include the comments suggested by Paul. */
17063 #ifndef __cplusplus
17064 /* Ultrix mips cc rejects this. */
17065 typedef int charset[2];
17067 /* SunOS 4.1.1 cc rejects this. */
17068 char const *const *ccp;
17070 /* NEC SVR4.0.2 mips cc rejects this. */
17071 struct point {int x, y;};
17072 static struct point const zero = {0,0};
17073 /* AIX XL C 1.02.0.0 rejects this.
17074 It does not let you subtract one const X* pointer from another in
17075 an arm of an if-expression whose if-part is not a constant
17077 const char *g = "string";
17078 ccp = &g + (g ? g-g : 0);
17079 /* HPUX 7.0 cc rejects these. */
17082 ccp = (char const *const *) p;
17083 { /* SCO 3.2v4 cc rejects this. */
17085 char const *s = 0 ? (char *) 0 : (char const *) 0;
17089 { /* Someone thinks the Sun supposedly-ANSI compiler will reject this. */
17090 int x[] = {25, 17};
17091 const int *foo = &x[0];
17094 { /* Sun SC1.0 ANSI compiler rejects this -- but not the above. */
17095 typedef const int *iptr;
17099 { /* AIX XL C 1.02.0.0 rejects this saying
17100 "k.c", line 2.27: 1506-025 (S) Operand must be a modifiable lvalue. */
17101 struct s { int j; const int *ap[3]; };
17102 struct s *b; b->j = 5;
17104 { /* ULTRIX-32 V3.1 (Rev 9) vcc rejects this */
17105 const int foo = 10;
17113 rm -f conftest.$ac_objext
17114 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
17115 (eval $ac_compile) 2>conftest.er1
17117 grep -v '^ *+' conftest.er1 >conftest.err
17119 cat conftest.err >&5
17120 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17121 (exit $ac_status); } &&
17122 { ac_try='test -z "$ac_c_werror_flag"
17123 || test ! -s conftest.err'
17124 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17125 (eval $ac_try) 2>&5
17127 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17128 (exit $ac_status); }; } &&
17129 { ac_try='test -s conftest.$ac_objext'
17130 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17131 (eval $ac_try) 2>&5
17133 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17134 (exit $ac_status); }; }; then
17137 echo "$as_me: failed program was:" >&5
17138 sed 's/^/| /' conftest.$ac_ext >&5
17142 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
17144 echo "$as_me:$LINENO: result: $ac_cv_c_const" >&5
17145 echo "${ECHO_T}$ac_cv_c_const" >&6
17146 if test $ac_cv_c_const = no; then
17148 cat >>confdefs.h <<\_ACEOF
17154 echo "$as_me:$LINENO: checking for inline" >&5
17155 echo $ECHO_N "checking for inline... $ECHO_C" >&6
17156 if test "${ac_cv_c_inline+set}" = set; then
17157 echo $ECHO_N "(cached) $ECHO_C" >&6
17160 for ac_kw in inline __inline__ __inline; do
17161 cat >conftest.$ac_ext <<_ACEOF
17164 cat confdefs.h >>conftest.$ac_ext
17165 cat >>conftest.$ac_ext <<_ACEOF
17166 /* end confdefs.h. */
17167 #ifndef __cplusplus
17169 static $ac_kw foo_t static_foo () {return 0; }
17170 $ac_kw foo_t foo () {return 0; }
17174 rm -f conftest.$ac_objext
17175 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
17176 (eval $ac_compile) 2>conftest.er1
17178 grep -v '^ *+' conftest.er1 >conftest.err
17180 cat conftest.err >&5
17181 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17182 (exit $ac_status); } &&
17183 { ac_try='test -z "$ac_c_werror_flag"
17184 || test ! -s conftest.err'
17185 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17186 (eval $ac_try) 2>&5
17188 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17189 (exit $ac_status); }; } &&
17190 { ac_try='test -s conftest.$ac_objext'
17191 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17192 (eval $ac_try) 2>&5
17194 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17195 (exit $ac_status); }; }; then
17196 ac_cv_c_inline=$ac_kw; break
17198 echo "$as_me: failed program was:" >&5
17199 sed 's/^/| /' conftest.$ac_ext >&5
17202 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
17206 echo "$as_me:$LINENO: result: $ac_cv_c_inline" >&5
17207 echo "${ECHO_T}$ac_cv_c_inline" >&6
17210 case $ac_cv_c_inline in
17213 case $ac_cv_c_inline in
17215 *) ac_val=$ac_cv_c_inline;;
17217 cat >>confdefs.h <<_ACEOF
17218 #ifndef __cplusplus
17219 #define inline $ac_val
17225 echo "$as_me:$LINENO: checking whether byte ordering is bigendian" >&5
17226 echo $ECHO_N "checking whether byte ordering is bigendian... $ECHO_C" >&6
17227 if test "${ac_cv_c_bigendian+set}" = set; then
17228 echo $ECHO_N "(cached) $ECHO_C" >&6
17230 # See if sys/param.h defines the BYTE_ORDER macro.
17231 cat >conftest.$ac_ext <<_ACEOF
17234 cat confdefs.h >>conftest.$ac_ext
17235 cat >>conftest.$ac_ext <<_ACEOF
17236 /* end confdefs.h. */
17237 #include <sys/types.h>
17238 #include <sys/param.h>
17243 #if !BYTE_ORDER || !BIG_ENDIAN || !LITTLE_ENDIAN
17244 bogus endian macros
17251 rm -f conftest.$ac_objext
17252 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
17253 (eval $ac_compile) 2>conftest.er1
17255 grep -v '^ *+' conftest.er1 >conftest.err
17257 cat conftest.err >&5
17258 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17259 (exit $ac_status); } &&
17260 { ac_try='test -z "$ac_c_werror_flag"
17261 || test ! -s conftest.err'
17262 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17263 (eval $ac_try) 2>&5
17265 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17266 (exit $ac_status); }; } &&
17267 { ac_try='test -s conftest.$ac_objext'
17268 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17269 (eval $ac_try) 2>&5
17271 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17272 (exit $ac_status); }; }; then
17273 # It does; now see whether it defined to BIG_ENDIAN or not.
17274 cat >conftest.$ac_ext <<_ACEOF
17277 cat confdefs.h >>conftest.$ac_ext
17278 cat >>conftest.$ac_ext <<_ACEOF
17279 /* end confdefs.h. */
17280 #include <sys/types.h>
17281 #include <sys/param.h>
17286 #if BYTE_ORDER != BIG_ENDIAN
17294 rm -f conftest.$ac_objext
17295 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
17296 (eval $ac_compile) 2>conftest.er1
17298 grep -v '^ *+' conftest.er1 >conftest.err
17300 cat conftest.err >&5
17301 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17302 (exit $ac_status); } &&
17303 { ac_try='test -z "$ac_c_werror_flag"
17304 || test ! -s conftest.err'
17305 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17306 (eval $ac_try) 2>&5
17308 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17309 (exit $ac_status); }; } &&
17310 { ac_try='test -s conftest.$ac_objext'
17311 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17312 (eval $ac_try) 2>&5
17314 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17315 (exit $ac_status); }; }; then
17316 ac_cv_c_bigendian=yes
17318 echo "$as_me: failed program was:" >&5
17319 sed 's/^/| /' conftest.$ac_ext >&5
17321 ac_cv_c_bigendian=no
17323 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
17325 echo "$as_me: failed program was:" >&5
17326 sed 's/^/| /' conftest.$ac_ext >&5
17328 # It does not; compile a test program.
17329 if test "$cross_compiling" = yes; then
17330 # try to guess the endianness by grepping values into an object file
17331 ac_cv_c_bigendian=unknown
17332 cat >conftest.$ac_ext <<_ACEOF
17335 cat confdefs.h >>conftest.$ac_ext
17336 cat >>conftest.$ac_ext <<_ACEOF
17337 /* end confdefs.h. */
17338 short ascii_mm[] = { 0x4249, 0x4765, 0x6E44, 0x6961, 0x6E53, 0x7953, 0 };
17339 short ascii_ii[] = { 0x694C, 0x5454, 0x656C, 0x6E45, 0x6944, 0x6E61, 0 };
17340 void _ascii () { char *s = (char *) ascii_mm; s = (char *) ascii_ii; }
17341 short ebcdic_ii[] = { 0x89D3, 0xE3E3, 0x8593, 0x95C5, 0x89C4, 0x9581, 0 };
17342 short ebcdic_mm[] = { 0xC2C9, 0xC785, 0x95C4, 0x8981, 0x95E2, 0xA8E2, 0 };
17343 void _ebcdic () { char *s = (char *) ebcdic_mm; s = (char *) ebcdic_ii; }
17347 _ascii (); _ebcdic ();
17352 rm -f conftest.$ac_objext
17353 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
17354 (eval $ac_compile) 2>conftest.er1
17356 grep -v '^ *+' conftest.er1 >conftest.err
17358 cat conftest.err >&5
17359 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17360 (exit $ac_status); } &&
17361 { ac_try='test -z "$ac_c_werror_flag"
17362 || test ! -s conftest.err'
17363 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17364 (eval $ac_try) 2>&5
17366 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17367 (exit $ac_status); }; } &&
17368 { ac_try='test -s conftest.$ac_objext'
17369 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17370 (eval $ac_try) 2>&5
17372 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17373 (exit $ac_status); }; }; then
17374 if grep BIGenDianSyS conftest.$ac_objext >/dev/null ; then
17375 ac_cv_c_bigendian=yes
17377 if grep LiTTleEnDian conftest.$ac_objext >/dev/null ; then
17378 if test "$ac_cv_c_bigendian" = unknown; then
17379 ac_cv_c_bigendian=no
17381 # finding both strings is unlikely to happen, but who knows?
17382 ac_cv_c_bigendian=unknown
17386 echo "$as_me: failed program was:" >&5
17387 sed 's/^/| /' conftest.$ac_ext >&5
17390 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
17392 cat >conftest.$ac_ext <<_ACEOF
17395 cat confdefs.h >>conftest.$ac_ext
17396 cat >>conftest.$ac_ext <<_ACEOF
17397 /* end confdefs.h. */
17401 /* Are we little or big endian? From Harbison&Steele. */
17405 char c[sizeof (long)];
17408 exit (u.c[sizeof (long) - 1] == 1);
17411 rm -f conftest$ac_exeext
17412 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
17413 (eval $ac_link) 2>&5
17415 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17416 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
17417 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17418 (eval $ac_try) 2>&5
17420 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17421 (exit $ac_status); }; }; then
17422 ac_cv_c_bigendian=no
17424 echo "$as_me: program exited with status $ac_status" >&5
17425 echo "$as_me: failed program was:" >&5
17426 sed 's/^/| /' conftest.$ac_ext >&5
17428 ( exit $ac_status )
17429 ac_cv_c_bigendian=yes
17431 rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
17434 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
17436 echo "$as_me:$LINENO: result: $ac_cv_c_bigendian" >&5
17437 echo "${ECHO_T}$ac_cv_c_bigendian" >&6
17438 case $ac_cv_c_bigendian in
17441 cat >>confdefs.h <<\_ACEOF
17442 #define WORDS_BIGENDIAN 1
17448 { { echo "$as_me:$LINENO: error: unknown endianness
17449 presetting ac_cv_c_bigendian=no (or yes) will help" >&5
17450 echo "$as_me: error: unknown endianness
17451 presetting ac_cv_c_bigendian=no (or yes) will help" >&2;}
17452 { (exit 1); exit 1; }; } ;;
17456 # ------------------------------ #
17457 # Checks for library functions. #
17458 # ------------------------------ #
17460 # The Ultrix 4.2 mips builtin alloca declared by alloca.h only works
17461 # for constant arguments. Useless!
17462 echo "$as_me:$LINENO: checking for working alloca.h" >&5
17463 echo $ECHO_N "checking for working alloca.h... $ECHO_C" >&6
17464 if test "${ac_cv_working_alloca_h+set}" = set; then
17465 echo $ECHO_N "(cached) $ECHO_C" >&6
17467 cat >conftest.$ac_ext <<_ACEOF
17470 cat confdefs.h >>conftest.$ac_ext
17471 cat >>conftest.$ac_ext <<_ACEOF
17472 /* end confdefs.h. */
17473 #include <alloca.h>
17477 char *p = (char *) alloca (2 * sizeof (int));
17482 rm -f conftest.$ac_objext conftest$ac_exeext
17483 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
17484 (eval $ac_link) 2>conftest.er1
17486 grep -v '^ *+' conftest.er1 >conftest.err
17488 cat conftest.err >&5
17489 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17490 (exit $ac_status); } &&
17491 { ac_try='test -z "$ac_c_werror_flag"
17492 || test ! -s conftest.err'
17493 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17494 (eval $ac_try) 2>&5
17496 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17497 (exit $ac_status); }; } &&
17498 { ac_try='test -s conftest$ac_exeext'
17499 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17500 (eval $ac_try) 2>&5
17502 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17503 (exit $ac_status); }; }; then
17504 ac_cv_working_alloca_h=yes
17506 echo "$as_me: failed program was:" >&5
17507 sed 's/^/| /' conftest.$ac_ext >&5
17509 ac_cv_working_alloca_h=no
17511 rm -f conftest.err conftest.$ac_objext \
17512 conftest$ac_exeext conftest.$ac_ext
17514 echo "$as_me:$LINENO: result: $ac_cv_working_alloca_h" >&5
17515 echo "${ECHO_T}$ac_cv_working_alloca_h" >&6
17516 if test $ac_cv_working_alloca_h = yes; then
17518 cat >>confdefs.h <<\_ACEOF
17519 #define HAVE_ALLOCA_H 1
17524 echo "$as_me:$LINENO: checking for alloca" >&5
17525 echo $ECHO_N "checking for alloca... $ECHO_C" >&6
17526 if test "${ac_cv_func_alloca_works+set}" = set; then
17527 echo $ECHO_N "(cached) $ECHO_C" >&6
17529 cat >conftest.$ac_ext <<_ACEOF
17532 cat confdefs.h >>conftest.$ac_ext
17533 cat >>conftest.$ac_ext <<_ACEOF
17534 /* end confdefs.h. */
17536 # define alloca __builtin_alloca
17539 # include <malloc.h>
17540 # define alloca _alloca
17543 # include <alloca.h>
17548 # ifndef alloca /* predefined by HP cc +Olibcalls */
17559 char *p = (char *) alloca (1);
17564 rm -f conftest.$ac_objext conftest$ac_exeext
17565 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
17566 (eval $ac_link) 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_exeext'
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_cv_func_alloca_works=yes
17588 echo "$as_me: failed program was:" >&5
17589 sed 's/^/| /' conftest.$ac_ext >&5
17591 ac_cv_func_alloca_works=no
17593 rm -f conftest.err conftest.$ac_objext \
17594 conftest$ac_exeext conftest.$ac_ext
17596 echo "$as_me:$LINENO: result: $ac_cv_func_alloca_works" >&5
17597 echo "${ECHO_T}$ac_cv_func_alloca_works" >&6
17599 if test $ac_cv_func_alloca_works = yes; then
17601 cat >>confdefs.h <<\_ACEOF
17602 #define HAVE_ALLOCA 1
17606 # The SVR3 libPW and SVR4 libucb both contain incompatible functions
17607 # that cause trouble. Some versions do not even contain alloca or
17608 # contain a buggy version. If you still want to use their alloca,
17609 # use ar to extract alloca.o from them instead of compiling alloca.c.
17611 ALLOCA=alloca.$ac_objext
17613 cat >>confdefs.h <<\_ACEOF
17618 echo "$as_me:$LINENO: checking whether \`alloca.c' needs Cray hooks" >&5
17619 echo $ECHO_N "checking whether \`alloca.c' needs Cray hooks... $ECHO_C" >&6
17620 if test "${ac_cv_os_cray+set}" = set; then
17621 echo $ECHO_N "(cached) $ECHO_C" >&6
17623 cat >conftest.$ac_ext <<_ACEOF
17626 cat confdefs.h >>conftest.$ac_ext
17627 cat >>conftest.$ac_ext <<_ACEOF
17628 /* end confdefs.h. */
17629 #if defined(CRAY) && ! defined(CRAY2)
17636 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
17637 $EGREP "webecray" >/dev/null 2>&1; then
17645 echo "$as_me:$LINENO: result: $ac_cv_os_cray" >&5
17646 echo "${ECHO_T}$ac_cv_os_cray" >&6
17647 if test $ac_cv_os_cray = yes; then
17648 for ac_func in _getb67 GETB67 getb67; do
17649 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
17650 echo "$as_me:$LINENO: checking for $ac_func" >&5
17651 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
17652 if eval "test \"\${$as_ac_var+set}\" = set"; then
17653 echo $ECHO_N "(cached) $ECHO_C" >&6
17655 cat >conftest.$ac_ext <<_ACEOF
17658 cat confdefs.h >>conftest.$ac_ext
17659 cat >>conftest.$ac_ext <<_ACEOF
17660 /* end confdefs.h. */
17661 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
17662 For example, HP-UX 11i <limits.h> declares gettimeofday. */
17663 #define $ac_func innocuous_$ac_func
17665 /* System header to define __stub macros and hopefully few prototypes,
17666 which can conflict with char $ac_func (); below.
17667 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
17668 <limits.h> exists even on freestanding compilers. */
17671 # include <limits.h>
17673 # include <assert.h>
17678 /* Override any gcc2 internal prototype to avoid an error. */
17683 /* We use char because int might match the return type of a gcc2
17684 builtin and then its argument prototype would still apply. */
17686 /* The GNU C library defines this for functions which it implements
17687 to always fail with ENOSYS. Some functions are actually named
17688 something starting with __ and the normal name is an alias. */
17689 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
17692 char (*f) () = $ac_func;
17701 return f != $ac_func;
17706 rm -f conftest.$ac_objext conftest$ac_exeext
17707 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
17708 (eval $ac_link) 2>conftest.er1
17710 grep -v '^ *+' conftest.er1 >conftest.err
17712 cat conftest.err >&5
17713 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17714 (exit $ac_status); } &&
17715 { ac_try='test -z "$ac_c_werror_flag"
17716 || test ! -s conftest.err'
17717 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17718 (eval $ac_try) 2>&5
17720 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17721 (exit $ac_status); }; } &&
17722 { ac_try='test -s conftest$ac_exeext'
17723 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17724 (eval $ac_try) 2>&5
17726 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17727 (exit $ac_status); }; }; then
17728 eval "$as_ac_var=yes"
17730 echo "$as_me: failed program was:" >&5
17731 sed 's/^/| /' conftest.$ac_ext >&5
17733 eval "$as_ac_var=no"
17735 rm -f conftest.err conftest.$ac_objext \
17736 conftest$ac_exeext conftest.$ac_ext
17738 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
17739 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
17740 if test `eval echo '${'$as_ac_var'}'` = yes; then
17742 cat >>confdefs.h <<_ACEOF
17743 #define CRAY_STACKSEG_END $ac_func
17752 echo "$as_me:$LINENO: checking stack direction for C alloca" >&5
17753 echo $ECHO_N "checking stack direction for C alloca... $ECHO_C" >&6
17754 if test "${ac_cv_c_stack_direction+set}" = set; then
17755 echo $ECHO_N "(cached) $ECHO_C" >&6
17757 if test "$cross_compiling" = yes; then
17758 ac_cv_c_stack_direction=0
17760 cat >conftest.$ac_ext <<_ACEOF
17763 cat confdefs.h >>conftest.$ac_ext
17764 cat >>conftest.$ac_ext <<_ACEOF
17765 /* end confdefs.h. */
17767 find_stack_direction ()
17769 static char *addr = 0;
17774 return find_stack_direction ();
17777 return (&dummy > addr) ? 1 : -1;
17783 exit (find_stack_direction () < 0);
17786 rm -f conftest$ac_exeext
17787 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
17788 (eval $ac_link) 2>&5
17790 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17791 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
17792 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17793 (eval $ac_try) 2>&5
17795 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17796 (exit $ac_status); }; }; then
17797 ac_cv_c_stack_direction=1
17799 echo "$as_me: program exited with status $ac_status" >&5
17800 echo "$as_me: failed program was:" >&5
17801 sed 's/^/| /' conftest.$ac_ext >&5
17803 ( exit $ac_status )
17804 ac_cv_c_stack_direction=-1
17806 rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
17809 echo "$as_me:$LINENO: result: $ac_cv_c_stack_direction" >&5
17810 echo "${ECHO_T}$ac_cv_c_stack_direction" >&6
17812 cat >>confdefs.h <<_ACEOF
17813 #define STACK_DIRECTION $ac_cv_c_stack_direction
17821 for ac_header in stdlib.h unistd.h
17823 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
17824 if eval "test \"\${$as_ac_Header+set}\" = set"; then
17825 echo "$as_me:$LINENO: checking for $ac_header" >&5
17826 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
17827 if eval "test \"\${$as_ac_Header+set}\" = set"; then
17828 echo $ECHO_N "(cached) $ECHO_C" >&6
17830 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
17831 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
17833 # Is the header compilable?
17834 echo "$as_me:$LINENO: checking $ac_header usability" >&5
17835 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
17836 cat >conftest.$ac_ext <<_ACEOF
17839 cat confdefs.h >>conftest.$ac_ext
17840 cat >>conftest.$ac_ext <<_ACEOF
17841 /* end confdefs.h. */
17842 $ac_includes_default
17843 #include <$ac_header>
17845 rm -f conftest.$ac_objext
17846 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
17847 (eval $ac_compile) 2>conftest.er1
17849 grep -v '^ *+' conftest.er1 >conftest.err
17851 cat conftest.err >&5
17852 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17853 (exit $ac_status); } &&
17854 { ac_try='test -z "$ac_c_werror_flag"
17855 || test ! -s conftest.err'
17856 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17857 (eval $ac_try) 2>&5
17859 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17860 (exit $ac_status); }; } &&
17861 { ac_try='test -s conftest.$ac_objext'
17862 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17863 (eval $ac_try) 2>&5
17865 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17866 (exit $ac_status); }; }; then
17867 ac_header_compiler=yes
17869 echo "$as_me: failed program was:" >&5
17870 sed 's/^/| /' conftest.$ac_ext >&5
17872 ac_header_compiler=no
17874 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
17875 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
17876 echo "${ECHO_T}$ac_header_compiler" >&6
17878 # Is the header present?
17879 echo "$as_me:$LINENO: checking $ac_header presence" >&5
17880 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
17881 cat >conftest.$ac_ext <<_ACEOF
17884 cat confdefs.h >>conftest.$ac_ext
17885 cat >>conftest.$ac_ext <<_ACEOF
17886 /* end confdefs.h. */
17887 #include <$ac_header>
17889 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
17890 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
17892 grep -v '^ *+' conftest.er1 >conftest.err
17894 cat conftest.err >&5
17895 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17896 (exit $ac_status); } >/dev/null; then
17897 if test -s conftest.err; then
17898 ac_cpp_err=$ac_c_preproc_warn_flag
17899 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
17906 if test -z "$ac_cpp_err"; then
17907 ac_header_preproc=yes
17909 echo "$as_me: failed program was:" >&5
17910 sed 's/^/| /' conftest.$ac_ext >&5
17912 ac_header_preproc=no
17914 rm -f conftest.err conftest.$ac_ext
17915 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
17916 echo "${ECHO_T}$ac_header_preproc" >&6
17918 # So? What about this header?
17919 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
17921 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
17922 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
17923 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
17924 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
17925 ac_header_preproc=yes
17928 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
17929 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
17930 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
17931 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
17932 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
17933 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
17934 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
17935 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
17936 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
17937 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
17938 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
17939 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
17942 ## ------------------------------------------ ##
17943 ## Report this to the AC_PACKAGE_NAME lists. ##
17944 ## ------------------------------------------ ##
17947 sed "s/^/$as_me: WARNING: /" >&2
17950 echo "$as_me:$LINENO: checking for $ac_header" >&5
17951 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
17952 if eval "test \"\${$as_ac_Header+set}\" = set"; then
17953 echo $ECHO_N "(cached) $ECHO_C" >&6
17955 eval "$as_ac_Header=\$ac_header_preproc"
17957 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
17958 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
17961 if test `eval echo '${'$as_ac_Header'}'` = yes; then
17962 cat >>confdefs.h <<_ACEOF
17963 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
17971 for ac_func in getpagesize
17973 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
17974 echo "$as_me:$LINENO: checking for $ac_func" >&5
17975 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
17976 if eval "test \"\${$as_ac_var+set}\" = set"; then
17977 echo $ECHO_N "(cached) $ECHO_C" >&6
17979 cat >conftest.$ac_ext <<_ACEOF
17982 cat confdefs.h >>conftest.$ac_ext
17983 cat >>conftest.$ac_ext <<_ACEOF
17984 /* end confdefs.h. */
17985 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
17986 For example, HP-UX 11i <limits.h> declares gettimeofday. */
17987 #define $ac_func innocuous_$ac_func
17989 /* System header to define __stub macros and hopefully few prototypes,
17990 which can conflict with char $ac_func (); below.
17991 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
17992 <limits.h> exists even on freestanding compilers. */
17995 # include <limits.h>
17997 # include <assert.h>
18002 /* Override any gcc2 internal prototype to avoid an error. */
18007 /* We use char because int might match the return type of a gcc2
18008 builtin and then its argument prototype would still apply. */
18010 /* The GNU C library defines this for functions which it implements
18011 to always fail with ENOSYS. Some functions are actually named
18012 something starting with __ and the normal name is an alias. */
18013 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
18016 char (*f) () = $ac_func;
18025 return f != $ac_func;
18030 rm -f conftest.$ac_objext conftest$ac_exeext
18031 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
18032 (eval $ac_link) 2>conftest.er1
18034 grep -v '^ *+' conftest.er1 >conftest.err
18036 cat conftest.err >&5
18037 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18038 (exit $ac_status); } &&
18039 { ac_try='test -z "$ac_c_werror_flag"
18040 || test ! -s conftest.err'
18041 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18042 (eval $ac_try) 2>&5
18044 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18045 (exit $ac_status); }; } &&
18046 { ac_try='test -s conftest$ac_exeext'
18047 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18048 (eval $ac_try) 2>&5
18050 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18051 (exit $ac_status); }; }; then
18052 eval "$as_ac_var=yes"
18054 echo "$as_me: failed program was:" >&5
18055 sed 's/^/| /' conftest.$ac_ext >&5
18057 eval "$as_ac_var=no"
18059 rm -f conftest.err conftest.$ac_objext \
18060 conftest$ac_exeext conftest.$ac_ext
18062 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
18063 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
18064 if test `eval echo '${'$as_ac_var'}'` = yes; then
18065 cat >>confdefs.h <<_ACEOF
18066 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
18072 echo "$as_me:$LINENO: checking for working mmap" >&5
18073 echo $ECHO_N "checking for working mmap... $ECHO_C" >&6
18074 if test "${ac_cv_func_mmap_fixed_mapped+set}" = set; then
18075 echo $ECHO_N "(cached) $ECHO_C" >&6
18077 if test "$cross_compiling" = yes; then
18078 ac_cv_func_mmap_fixed_mapped=no
18080 cat >conftest.$ac_ext <<_ACEOF
18083 cat confdefs.h >>conftest.$ac_ext
18084 cat >>conftest.$ac_ext <<_ACEOF
18085 /* end confdefs.h. */
18086 $ac_includes_default
18087 /* malloc might have been renamed as rpl_malloc. */
18090 /* Thanks to Mike Haertel and Jim Avera for this test.
18091 Here is a matrix of mmap possibilities:
18092 mmap private not fixed
18093 mmap private fixed at somewhere currently unmapped
18094 mmap private fixed at somewhere already mapped
18095 mmap shared not fixed
18096 mmap shared fixed at somewhere currently unmapped
18097 mmap shared fixed at somewhere already mapped
18098 For private mappings, we should verify that changes cannot be read()
18099 back from the file, nor mmap's back from the file at a different
18100 address. (There have been systems where private was not correctly
18101 implemented like the infamous i386 svr4.0, and systems where the
18102 VM page cache was not coherent with the file system buffer cache
18103 like early versions of FreeBSD and possibly contemporary NetBSD.)
18104 For shared mappings, we should conversely verify that changes get
18105 propagated back to all the places they're supposed to be.
18107 Grep wants private fixed already mapped.
18108 The main things grep needs to know about mmap are:
18109 * does it exist and is it safe to write into the mmap'd area
18110 * how to use it (BSD variants) */
18113 #include <sys/mman.h>
18115 #if !STDC_HEADERS && !HAVE_STDLIB_H
18119 /* This mess was copied from the GNU getpagesize.h. */
18120 #if !HAVE_GETPAGESIZE
18121 /* Assume that all systems that can run configure have sys/param.h. */
18122 # if !HAVE_SYS_PARAM_H
18123 # define HAVE_SYS_PARAM_H 1
18126 # ifdef _SC_PAGESIZE
18127 # define getpagesize() sysconf(_SC_PAGESIZE)
18128 # else /* no _SC_PAGESIZE */
18129 # if HAVE_SYS_PARAM_H
18130 # include <sys/param.h>
18131 # ifdef EXEC_PAGESIZE
18132 # define getpagesize() EXEC_PAGESIZE
18133 # else /* no EXEC_PAGESIZE */
18135 # define getpagesize() NBPG * CLSIZE
18138 # endif /* no CLSIZE */
18139 # else /* no NBPG */
18141 # define getpagesize() NBPC
18142 # else /* no NBPC */
18144 # define getpagesize() PAGESIZE
18145 # endif /* PAGESIZE */
18146 # endif /* no NBPC */
18147 # endif /* no NBPG */
18148 # endif /* no EXEC_PAGESIZE */
18149 # else /* no HAVE_SYS_PARAM_H */
18150 # define getpagesize() 8192 /* punt totally */
18151 # endif /* no HAVE_SYS_PARAM_H */
18152 # endif /* no _SC_PAGESIZE */
18154 #endif /* no HAVE_GETPAGESIZE */
18159 char *data, *data2, *data3;
18163 pagesize = getpagesize ();
18165 /* First, make a file with some known garbage in it. */
18166 data = (char *) malloc (pagesize);
18169 for (i = 0; i < pagesize; ++i)
18170 *(data + i) = rand ();
18172 fd = creat ("conftest.mmap", 0600);
18175 if (write (fd, data, pagesize) != pagesize)
18179 /* Next, try to mmap the file at a fixed address which already has
18180 something else allocated at it. If we can, also make sure that
18181 we see the same garbage. */
18182 fd = open ("conftest.mmap", O_RDWR);
18185 data2 = (char *) malloc (2 * pagesize);
18188 data2 += (pagesize - ((long) data2 & (pagesize - 1))) & (pagesize - 1);
18189 if (data2 != mmap (data2, pagesize, PROT_READ | PROT_WRITE,
18190 MAP_PRIVATE | MAP_FIXED, fd, 0L))
18192 for (i = 0; i < pagesize; ++i)
18193 if (*(data + i) != *(data2 + i))
18196 /* Finally, make sure that changes to the mapped area do not
18197 percolate back to the file as seen by read(). (This is a bug on
18198 some variants of i386 svr4.0.) */
18199 for (i = 0; i < pagesize; ++i)
18200 *(data2 + i) = *(data2 + i) + 1;
18201 data3 = (char *) malloc (pagesize);
18204 if (read (fd, data3, pagesize) != pagesize)
18206 for (i = 0; i < pagesize; ++i)
18207 if (*(data + i) != *(data3 + i))
18213 rm -f conftest$ac_exeext
18214 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
18215 (eval $ac_link) 2>&5
18217 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18218 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
18219 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18220 (eval $ac_try) 2>&5
18222 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18223 (exit $ac_status); }; }; then
18224 ac_cv_func_mmap_fixed_mapped=yes
18226 echo "$as_me: program exited with status $ac_status" >&5
18227 echo "$as_me: failed program was:" >&5
18228 sed 's/^/| /' conftest.$ac_ext >&5
18230 ( exit $ac_status )
18231 ac_cv_func_mmap_fixed_mapped=no
18233 rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
18236 echo "$as_me:$LINENO: result: $ac_cv_func_mmap_fixed_mapped" >&5
18237 echo "${ECHO_T}$ac_cv_func_mmap_fixed_mapped" >&6
18238 if test $ac_cv_func_mmap_fixed_mapped = yes; then
18240 cat >>confdefs.h <<\_ACEOF
18241 #define HAVE_MMAP 1
18245 rm -f conftest.mmap
18247 echo "$as_me:$LINENO: checking for pid_t" >&5
18248 echo $ECHO_N "checking for pid_t... $ECHO_C" >&6
18249 if test "${ac_cv_type_pid_t+set}" = set; then
18250 echo $ECHO_N "(cached) $ECHO_C" >&6
18252 cat >conftest.$ac_ext <<_ACEOF
18255 cat confdefs.h >>conftest.$ac_ext
18256 cat >>conftest.$ac_ext <<_ACEOF
18257 /* end confdefs.h. */
18258 $ac_includes_default
18264 if (sizeof (pid_t))
18270 rm -f conftest.$ac_objext
18271 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
18272 (eval $ac_compile) 2>conftest.er1
18274 grep -v '^ *+' conftest.er1 >conftest.err
18276 cat conftest.err >&5
18277 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18278 (exit $ac_status); } &&
18279 { ac_try='test -z "$ac_c_werror_flag"
18280 || test ! -s conftest.err'
18281 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18282 (eval $ac_try) 2>&5
18284 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18285 (exit $ac_status); }; } &&
18286 { ac_try='test -s conftest.$ac_objext'
18287 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18288 (eval $ac_try) 2>&5
18290 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18291 (exit $ac_status); }; }; then
18292 ac_cv_type_pid_t=yes
18294 echo "$as_me: failed program was:" >&5
18295 sed 's/^/| /' conftest.$ac_ext >&5
18297 ac_cv_type_pid_t=no
18299 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
18301 echo "$as_me:$LINENO: result: $ac_cv_type_pid_t" >&5
18302 echo "${ECHO_T}$ac_cv_type_pid_t" >&6
18303 if test $ac_cv_type_pid_t = yes; then
18307 cat >>confdefs.h <<_ACEOF
18315 for ac_header in unistd.h vfork.h
18317 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
18318 if eval "test \"\${$as_ac_Header+set}\" = set"; then
18319 echo "$as_me:$LINENO: checking for $ac_header" >&5
18320 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
18321 if eval "test \"\${$as_ac_Header+set}\" = set"; then
18322 echo $ECHO_N "(cached) $ECHO_C" >&6
18324 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
18325 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
18327 # Is the header compilable?
18328 echo "$as_me:$LINENO: checking $ac_header usability" >&5
18329 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
18330 cat >conftest.$ac_ext <<_ACEOF
18333 cat confdefs.h >>conftest.$ac_ext
18334 cat >>conftest.$ac_ext <<_ACEOF
18335 /* end confdefs.h. */
18336 $ac_includes_default
18337 #include <$ac_header>
18339 rm -f conftest.$ac_objext
18340 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
18341 (eval $ac_compile) 2>conftest.er1
18343 grep -v '^ *+' conftest.er1 >conftest.err
18345 cat conftest.err >&5
18346 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18347 (exit $ac_status); } &&
18348 { ac_try='test -z "$ac_c_werror_flag"
18349 || test ! -s conftest.err'
18350 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18351 (eval $ac_try) 2>&5
18353 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18354 (exit $ac_status); }; } &&
18355 { ac_try='test -s conftest.$ac_objext'
18356 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18357 (eval $ac_try) 2>&5
18359 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18360 (exit $ac_status); }; }; then
18361 ac_header_compiler=yes
18363 echo "$as_me: failed program was:" >&5
18364 sed 's/^/| /' conftest.$ac_ext >&5
18366 ac_header_compiler=no
18368 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
18369 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
18370 echo "${ECHO_T}$ac_header_compiler" >&6
18372 # Is the header present?
18373 echo "$as_me:$LINENO: checking $ac_header presence" >&5
18374 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
18375 cat >conftest.$ac_ext <<_ACEOF
18378 cat confdefs.h >>conftest.$ac_ext
18379 cat >>conftest.$ac_ext <<_ACEOF
18380 /* end confdefs.h. */
18381 #include <$ac_header>
18383 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
18384 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
18386 grep -v '^ *+' conftest.er1 >conftest.err
18388 cat conftest.err >&5
18389 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18390 (exit $ac_status); } >/dev/null; then
18391 if test -s conftest.err; then
18392 ac_cpp_err=$ac_c_preproc_warn_flag
18393 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
18400 if test -z "$ac_cpp_err"; then
18401 ac_header_preproc=yes
18403 echo "$as_me: failed program was:" >&5
18404 sed 's/^/| /' conftest.$ac_ext >&5
18406 ac_header_preproc=no
18408 rm -f conftest.err conftest.$ac_ext
18409 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
18410 echo "${ECHO_T}$ac_header_preproc" >&6
18412 # So? What about this header?
18413 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
18415 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
18416 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
18417 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
18418 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
18419 ac_header_preproc=yes
18422 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
18423 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
18424 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
18425 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
18426 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
18427 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
18428 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
18429 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
18430 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
18431 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
18432 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
18433 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
18436 ## ------------------------------------------ ##
18437 ## Report this to the AC_PACKAGE_NAME lists. ##
18438 ## ------------------------------------------ ##
18441 sed "s/^/$as_me: WARNING: /" >&2
18444 echo "$as_me:$LINENO: checking for $ac_header" >&5
18445 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
18446 if eval "test \"\${$as_ac_Header+set}\" = set"; then
18447 echo $ECHO_N "(cached) $ECHO_C" >&6
18449 eval "$as_ac_Header=\$ac_header_preproc"
18451 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
18452 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
18455 if test `eval echo '${'$as_ac_Header'}'` = yes; then
18456 cat >>confdefs.h <<_ACEOF
18457 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
18466 for ac_func in fork vfork
18468 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
18469 echo "$as_me:$LINENO: checking for $ac_func" >&5
18470 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
18471 if eval "test \"\${$as_ac_var+set}\" = set"; then
18472 echo $ECHO_N "(cached) $ECHO_C" >&6
18474 cat >conftest.$ac_ext <<_ACEOF
18477 cat confdefs.h >>conftest.$ac_ext
18478 cat >>conftest.$ac_ext <<_ACEOF
18479 /* end confdefs.h. */
18480 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
18481 For example, HP-UX 11i <limits.h> declares gettimeofday. */
18482 #define $ac_func innocuous_$ac_func
18484 /* System header to define __stub macros and hopefully few prototypes,
18485 which can conflict with char $ac_func (); below.
18486 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
18487 <limits.h> exists even on freestanding compilers. */
18490 # include <limits.h>
18492 # include <assert.h>
18497 /* Override any gcc2 internal prototype to avoid an error. */
18502 /* We use char because int might match the return type of a gcc2
18503 builtin and then its argument prototype would still apply. */
18505 /* The GNU C library defines this for functions which it implements
18506 to always fail with ENOSYS. Some functions are actually named
18507 something starting with __ and the normal name is an alias. */
18508 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
18511 char (*f) () = $ac_func;
18520 return f != $ac_func;
18525 rm -f conftest.$ac_objext conftest$ac_exeext
18526 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
18527 (eval $ac_link) 2>conftest.er1
18529 grep -v '^ *+' conftest.er1 >conftest.err
18531 cat conftest.err >&5
18532 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18533 (exit $ac_status); } &&
18534 { ac_try='test -z "$ac_c_werror_flag"
18535 || test ! -s conftest.err'
18536 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18537 (eval $ac_try) 2>&5
18539 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18540 (exit $ac_status); }; } &&
18541 { ac_try='test -s conftest$ac_exeext'
18542 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18543 (eval $ac_try) 2>&5
18545 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18546 (exit $ac_status); }; }; then
18547 eval "$as_ac_var=yes"
18549 echo "$as_me: failed program was:" >&5
18550 sed 's/^/| /' conftest.$ac_ext >&5
18552 eval "$as_ac_var=no"
18554 rm -f conftest.err conftest.$ac_objext \
18555 conftest$ac_exeext conftest.$ac_ext
18557 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
18558 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
18559 if test `eval echo '${'$as_ac_var'}'` = yes; then
18560 cat >>confdefs.h <<_ACEOF
18561 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
18567 if test "x$ac_cv_func_fork" = xyes; then
18568 echo "$as_me:$LINENO: checking for working fork" >&5
18569 echo $ECHO_N "checking for working fork... $ECHO_C" >&6
18570 if test "${ac_cv_func_fork_works+set}" = set; then
18571 echo $ECHO_N "(cached) $ECHO_C" >&6
18573 if test "$cross_compiling" = yes; then
18574 ac_cv_func_fork_works=cross
18576 cat >conftest.$ac_ext <<_ACEOF
18577 /* By Ruediger Kuhlmann. */
18578 #include <sys/types.h>
18580 # include <unistd.h>
18582 /* Some systems only have a dummy stub for fork() */
18590 rm -f conftest$ac_exeext
18591 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
18592 (eval $ac_link) 2>&5
18594 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18595 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
18596 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18597 (eval $ac_try) 2>&5
18599 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18600 (exit $ac_status); }; }; then
18601 ac_cv_func_fork_works=yes
18603 echo "$as_me: program exited with status $ac_status" >&5
18604 echo "$as_me: failed program was:" >&5
18605 sed 's/^/| /' conftest.$ac_ext >&5
18607 ( exit $ac_status )
18608 ac_cv_func_fork_works=no
18610 rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
18613 echo "$as_me:$LINENO: result: $ac_cv_func_fork_works" >&5
18614 echo "${ECHO_T}$ac_cv_func_fork_works" >&6
18617 ac_cv_func_fork_works=$ac_cv_func_fork
18619 if test "x$ac_cv_func_fork_works" = xcross; then
18621 *-*-amigaos* | *-*-msdosdjgpp*)
18622 # Override, as these systems have only a dummy fork() stub
18623 ac_cv_func_fork_works=no
18626 ac_cv_func_fork_works=yes
18629 { echo "$as_me:$LINENO: WARNING: result $ac_cv_func_fork_works guessed because of cross compilation" >&5
18630 echo "$as_me: WARNING: result $ac_cv_func_fork_works guessed because of cross compilation" >&2;}
18632 ac_cv_func_vfork_works=$ac_cv_func_vfork
18633 if test "x$ac_cv_func_vfork" = xyes; then
18634 echo "$as_me:$LINENO: checking for working vfork" >&5
18635 echo $ECHO_N "checking for working vfork... $ECHO_C" >&6
18636 if test "${ac_cv_func_vfork_works+set}" = set; then
18637 echo $ECHO_N "(cached) $ECHO_C" >&6
18639 if test "$cross_compiling" = yes; then
18640 ac_cv_func_vfork_works=cross
18642 cat >conftest.$ac_ext <<_ACEOF
18645 cat confdefs.h >>conftest.$ac_ext
18646 cat >>conftest.$ac_ext <<_ACEOF
18647 /* end confdefs.h. */
18648 /* Thanks to Paul Eggert for this test. */
18650 #include <stdlib.h>
18651 #include <sys/types.h>
18652 #include <sys/stat.h>
18653 #include <sys/wait.h>
18655 # include <unistd.h>
18658 # include <vfork.h>
18660 /* On some sparc systems, changes by the child to local and incoming
18661 argument registers are propagated back to the parent. The compiler
18662 is told about this with #include <vfork.h>, but some compilers
18663 (e.g. gcc -O) don't grok <vfork.h>. Test for this by using a
18664 static variable whose address is put into a register that is
18665 clobbered by the vfork. */
18668 sparc_address_test (int arg)
18670 sparc_address_test (arg) int arg;
18673 static pid_t child;
18691 pid_t parent = getpid ();
18694 sparc_address_test (0);
18699 /* Here is another test for sparc vfork register problems. This
18700 test uses lots of local variables, at least as many local
18701 variables as main has allocated so far including compiler
18702 temporaries. 4 locals are enough for gcc 1.40.3 on a Solaris
18703 4.1.3 sparc, but we use 8 to be safe. A buggy compiler should
18704 reuse the register of parent for one of the local variables,
18705 since it will think that parent can't possibly be used any more
18706 in this routine. Assigning to the local variable will thus
18707 munge parent in the parent process. */
18709 p = getpid(), p1 = getpid(), p2 = getpid(), p3 = getpid(),
18710 p4 = getpid(), p5 = getpid(), p6 = getpid(), p7 = getpid();
18711 /* Convince the compiler that p..p7 are live; otherwise, it might
18712 use the same hardware register for all 8 local variables. */
18713 if (p != p1 || p != p2 || p != p3 || p != p4
18714 || p != p5 || p != p6 || p != p7)
18717 /* On some systems (e.g. IRIX 3.3), vfork doesn't separate parent
18718 from child file descriptors. If the child closes a descriptor
18719 before it execs or exits, this munges the parent's descriptor
18720 as well. Test for this by closing stdout in the child. */
18721 _exit(close(fileno(stdout)) != 0);
18726 while (wait(&status) != child)
18729 /* Was there some problem with vforking? */
18732 /* Did the child fail? (This shouldn't happen.) */
18735 /* Did the vfork/compiler bug occur? */
18736 || parent != getpid()
18738 /* Did the file descriptor bug occur? */
18739 || fstat(fileno(stdout), &st) != 0
18744 rm -f conftest$ac_exeext
18745 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
18746 (eval $ac_link) 2>&5
18748 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18749 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
18750 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18751 (eval $ac_try) 2>&5
18753 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18754 (exit $ac_status); }; }; then
18755 ac_cv_func_vfork_works=yes
18757 echo "$as_me: program exited with status $ac_status" >&5
18758 echo "$as_me: failed program was:" >&5
18759 sed 's/^/| /' conftest.$ac_ext >&5
18761 ( exit $ac_status )
18762 ac_cv_func_vfork_works=no
18764 rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
18767 echo "$as_me:$LINENO: result: $ac_cv_func_vfork_works" >&5
18768 echo "${ECHO_T}$ac_cv_func_vfork_works" >&6
18771 if test "x$ac_cv_func_fork_works" = xcross; then
18772 ac_cv_func_vfork_works=$ac_cv_func_vfork
18773 { echo "$as_me:$LINENO: WARNING: result $ac_cv_func_vfork_works guessed because of cross compilation" >&5
18774 echo "$as_me: WARNING: result $ac_cv_func_vfork_works guessed because of cross compilation" >&2;}
18777 if test "x$ac_cv_func_vfork_works" = xyes; then
18779 cat >>confdefs.h <<\_ACEOF
18780 #define HAVE_WORKING_VFORK 1
18785 cat >>confdefs.h <<\_ACEOF
18790 if test "x$ac_cv_func_fork_works" = xyes; then
18792 cat >>confdefs.h <<\_ACEOF
18793 #define HAVE_WORKING_FORK 1
18800 for ac_func in canonicalize_file_name realpath
18802 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
18803 echo "$as_me:$LINENO: checking for $ac_func" >&5
18804 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
18805 if eval "test \"\${$as_ac_var+set}\" = set"; then
18806 echo $ECHO_N "(cached) $ECHO_C" >&6
18808 cat >conftest.$ac_ext <<_ACEOF
18811 cat confdefs.h >>conftest.$ac_ext
18812 cat >>conftest.$ac_ext <<_ACEOF
18813 /* end confdefs.h. */
18814 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
18815 For example, HP-UX 11i <limits.h> declares gettimeofday. */
18816 #define $ac_func innocuous_$ac_func
18818 /* System header to define __stub macros and hopefully few prototypes,
18819 which can conflict with char $ac_func (); below.
18820 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
18821 <limits.h> exists even on freestanding compilers. */
18824 # include <limits.h>
18826 # include <assert.h>
18831 /* Override any gcc2 internal prototype to avoid an error. */
18836 /* We use char because int might match the return type of a gcc2
18837 builtin and then its argument prototype would still apply. */
18839 /* The GNU C library defines this for functions which it implements
18840 to always fail with ENOSYS. Some functions are actually named
18841 something starting with __ and the normal name is an alias. */
18842 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
18845 char (*f) () = $ac_func;
18854 return f != $ac_func;
18859 rm -f conftest.$ac_objext conftest$ac_exeext
18860 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
18861 (eval $ac_link) 2>conftest.er1
18863 grep -v '^ *+' conftest.er1 >conftest.err
18865 cat conftest.err >&5
18866 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18867 (exit $ac_status); } &&
18868 { ac_try='test -z "$ac_c_werror_flag"
18869 || test ! -s conftest.err'
18870 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18871 (eval $ac_try) 2>&5
18873 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18874 (exit $ac_status); }; } &&
18875 { ac_try='test -s conftest$ac_exeext'
18876 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18877 (eval $ac_try) 2>&5
18879 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18880 (exit $ac_status); }; }; then
18881 eval "$as_ac_var=yes"
18883 echo "$as_me: failed program was:" >&5
18884 sed 's/^/| /' conftest.$ac_ext >&5
18886 eval "$as_ac_var=no"
18888 rm -f conftest.err conftest.$ac_objext \
18889 conftest$ac_exeext conftest.$ac_ext
18891 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
18892 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
18893 if test `eval echo '${'$as_ac_var'}'` = yes; then
18894 cat >>confdefs.h <<_ACEOF
18895 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
18902 for ac_func in getrusage
18904 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
18905 echo "$as_me:$LINENO: checking for $ac_func" >&5
18906 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
18907 if eval "test \"\${$as_ac_var+set}\" = set"; then
18908 echo $ECHO_N "(cached) $ECHO_C" >&6
18910 cat >conftest.$ac_ext <<_ACEOF
18913 cat confdefs.h >>conftest.$ac_ext
18914 cat >>conftest.$ac_ext <<_ACEOF
18915 /* end confdefs.h. */
18916 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
18917 For example, HP-UX 11i <limits.h> declares gettimeofday. */
18918 #define $ac_func innocuous_$ac_func
18920 /* System header to define __stub macros and hopefully few prototypes,
18921 which can conflict with char $ac_func (); below.
18922 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
18923 <limits.h> exists even on freestanding compilers. */
18926 # include <limits.h>
18928 # include <assert.h>
18933 /* Override any gcc2 internal prototype to avoid an error. */
18938 /* We use char because int might match the return type of a gcc2
18939 builtin and then its argument prototype would still apply. */
18941 /* The GNU C library defines this for functions which it implements
18942 to always fail with ENOSYS. Some functions are actually named
18943 something starting with __ and the normal name is an alias. */
18944 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
18947 char (*f) () = $ac_func;
18956 return f != $ac_func;
18961 rm -f conftest.$ac_objext conftest$ac_exeext
18962 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
18963 (eval $ac_link) 2>conftest.er1
18965 grep -v '^ *+' conftest.er1 >conftest.err
18967 cat conftest.err >&5
18968 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18969 (exit $ac_status); } &&
18970 { ac_try='test -z "$ac_c_werror_flag"
18971 || test ! -s conftest.err'
18972 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18973 (eval $ac_try) 2>&5
18975 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18976 (exit $ac_status); }; } &&
18977 { ac_try='test -s conftest$ac_exeext'
18978 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18979 (eval $ac_try) 2>&5
18981 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18982 (exit $ac_status); }; }; then
18983 eval "$as_ac_var=yes"
18985 echo "$as_me: failed program was:" >&5
18986 sed 's/^/| /' conftest.$ac_ext >&5
18988 eval "$as_ac_var=no"
18990 rm -f conftest.err conftest.$ac_objext \
18991 conftest$ac_exeext conftest.$ac_ext
18993 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
18994 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
18995 if test `eval echo '${'$as_ac_var'}'` = yes; then
18996 cat >>confdefs.h <<_ACEOF
18997 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
19005 for ac_func in getuid getgid
19007 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
19008 echo "$as_me:$LINENO: checking for $ac_func" >&5
19009 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
19010 if eval "test \"\${$as_ac_var+set}\" = set"; then
19011 echo $ECHO_N "(cached) $ECHO_C" >&6
19013 cat >conftest.$ac_ext <<_ACEOF
19016 cat confdefs.h >>conftest.$ac_ext
19017 cat >>conftest.$ac_ext <<_ACEOF
19018 /* end confdefs.h. */
19019 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
19020 For example, HP-UX 11i <limits.h> declares gettimeofday. */
19021 #define $ac_func innocuous_$ac_func
19023 /* System header to define __stub macros and hopefully few prototypes,
19024 which can conflict with char $ac_func (); below.
19025 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
19026 <limits.h> exists even on freestanding compilers. */
19029 # include <limits.h>
19031 # include <assert.h>
19036 /* Override any gcc2 internal prototype to avoid an error. */
19041 /* We use char because int might match the return type of a gcc2
19042 builtin and then its argument prototype would still apply. */
19044 /* The GNU C library defines this for functions which it implements
19045 to always fail with ENOSYS. Some functions are actually named
19046 something starting with __ and the normal name is an alias. */
19047 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
19050 char (*f) () = $ac_func;
19059 return f != $ac_func;
19064 rm -f conftest.$ac_objext conftest$ac_exeext
19065 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
19066 (eval $ac_link) 2>conftest.er1
19068 grep -v '^ *+' conftest.er1 >conftest.err
19070 cat conftest.err >&5
19071 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19072 (exit $ac_status); } &&
19073 { ac_try='test -z "$ac_c_werror_flag"
19074 || test ! -s conftest.err'
19075 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19076 (eval $ac_try) 2>&5
19078 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19079 (exit $ac_status); }; } &&
19080 { ac_try='test -s conftest$ac_exeext'
19081 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19082 (eval $ac_try) 2>&5
19084 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19085 (exit $ac_status); }; }; then
19086 eval "$as_ac_var=yes"
19088 echo "$as_me: failed program was:" >&5
19089 sed 's/^/| /' conftest.$ac_ext >&5
19091 eval "$as_ac_var=no"
19093 rm -f conftest.err conftest.$ac_objext \
19094 conftest$ac_exeext conftest.$ac_ext
19096 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
19097 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
19098 if test `eval echo '${'$as_ac_var'}'` = yes; then
19099 cat >>confdefs.h <<_ACEOF
19100 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
19107 for ac_func in poll
19109 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
19110 echo "$as_me:$LINENO: checking for $ac_func" >&5
19111 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
19112 if eval "test \"\${$as_ac_var+set}\" = set"; then
19113 echo $ECHO_N "(cached) $ECHO_C" >&6
19115 cat >conftest.$ac_ext <<_ACEOF
19118 cat confdefs.h >>conftest.$ac_ext
19119 cat >>conftest.$ac_ext <<_ACEOF
19120 /* end confdefs.h. */
19121 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
19122 For example, HP-UX 11i <limits.h> declares gettimeofday. */
19123 #define $ac_func innocuous_$ac_func
19125 /* System header to define __stub macros and hopefully few prototypes,
19126 which can conflict with char $ac_func (); below.
19127 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
19128 <limits.h> exists even on freestanding compilers. */
19131 # include <limits.h>
19133 # include <assert.h>
19138 /* Override any gcc2 internal prototype to avoid an error. */
19143 /* We use char because int might match the return type of a gcc2
19144 builtin and then its argument prototype would still apply. */
19146 /* The GNU C library defines this for functions which it implements
19147 to always fail with ENOSYS. Some functions are actually named
19148 something starting with __ and the normal name is an alias. */
19149 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
19152 char (*f) () = $ac_func;
19161 return f != $ac_func;
19166 rm -f conftest.$ac_objext conftest$ac_exeext
19167 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
19168 (eval $ac_link) 2>conftest.er1
19170 grep -v '^ *+' conftest.er1 >conftest.err
19172 cat conftest.err >&5
19173 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19174 (exit $ac_status); } &&
19175 { ac_try='test -z "$ac_c_werror_flag"
19176 || test ! -s conftest.err'
19177 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19178 (eval $ac_try) 2>&5
19180 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19181 (exit $ac_status); }; } &&
19182 { ac_try='test -s conftest$ac_exeext'
19183 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19184 (eval $ac_try) 2>&5
19186 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19187 (exit $ac_status); }; }; then
19188 eval "$as_ac_var=yes"
19190 echo "$as_me: failed program was:" >&5
19191 sed 's/^/| /' conftest.$ac_ext >&5
19193 eval "$as_ac_var=no"
19195 rm -f conftest.err conftest.$ac_objext \
19196 conftest$ac_exeext conftest.$ac_ext
19198 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
19199 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
19200 if test `eval echo '${'$as_ac_var'}'` = yes; then
19201 cat >>confdefs.h <<_ACEOF
19202 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
19209 for ac_func in pread64
19211 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
19212 echo "$as_me:$LINENO: checking for $ac_func" >&5
19213 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
19214 if eval "test \"\${$as_ac_var+set}\" = set"; then
19215 echo $ECHO_N "(cached) $ECHO_C" >&6
19217 cat >conftest.$ac_ext <<_ACEOF
19220 cat confdefs.h >>conftest.$ac_ext
19221 cat >>conftest.$ac_ext <<_ACEOF
19222 /* end confdefs.h. */
19223 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
19224 For example, HP-UX 11i <limits.h> declares gettimeofday. */
19225 #define $ac_func innocuous_$ac_func
19227 /* System header to define __stub macros and hopefully few prototypes,
19228 which can conflict with char $ac_func (); below.
19229 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
19230 <limits.h> exists even on freestanding compilers. */
19233 # include <limits.h>
19235 # include <assert.h>
19240 /* Override any gcc2 internal prototype to avoid an error. */
19245 /* We use char because int might match the return type of a gcc2
19246 builtin and then its argument prototype would still apply. */
19248 /* The GNU C library defines this for functions which it implements
19249 to always fail with ENOSYS. Some functions are actually named
19250 something starting with __ and the normal name is an alias. */
19251 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
19254 char (*f) () = $ac_func;
19263 return f != $ac_func;
19268 rm -f conftest.$ac_objext conftest$ac_exeext
19269 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
19270 (eval $ac_link) 2>conftest.er1
19272 grep -v '^ *+' conftest.er1 >conftest.err
19274 cat conftest.err >&5
19275 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19276 (exit $ac_status); } &&
19277 { ac_try='test -z "$ac_c_werror_flag"
19278 || test ! -s conftest.err'
19279 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19280 (eval $ac_try) 2>&5
19282 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19283 (exit $ac_status); }; } &&
19284 { ac_try='test -s conftest$ac_exeext'
19285 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19286 (eval $ac_try) 2>&5
19288 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19289 (exit $ac_status); }; }; then
19290 eval "$as_ac_var=yes"
19292 echo "$as_me: failed program was:" >&5
19293 sed 's/^/| /' conftest.$ac_ext >&5
19295 eval "$as_ac_var=no"
19297 rm -f conftest.err conftest.$ac_objext \
19298 conftest$ac_exeext conftest.$ac_ext
19300 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
19301 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
19302 if test `eval echo '${'$as_ac_var'}'` = yes; then
19303 cat >>confdefs.h <<_ACEOF
19304 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
19311 for ac_func in sbrk
19313 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
19314 echo "$as_me:$LINENO: checking for $ac_func" >&5
19315 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
19316 if eval "test \"\${$as_ac_var+set}\" = set"; then
19317 echo $ECHO_N "(cached) $ECHO_C" >&6
19319 cat >conftest.$ac_ext <<_ACEOF
19322 cat confdefs.h >>conftest.$ac_ext
19323 cat >>conftest.$ac_ext <<_ACEOF
19324 /* end confdefs.h. */
19325 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
19326 For example, HP-UX 11i <limits.h> declares gettimeofday. */
19327 #define $ac_func innocuous_$ac_func
19329 /* System header to define __stub macros and hopefully few prototypes,
19330 which can conflict with char $ac_func (); below.
19331 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
19332 <limits.h> exists even on freestanding compilers. */
19335 # include <limits.h>
19337 # include <assert.h>
19342 /* Override any gcc2 internal prototype to avoid an error. */
19347 /* We use char because int might match the return type of a gcc2
19348 builtin and then its argument prototype would still apply. */
19350 /* The GNU C library defines this for functions which it implements
19351 to always fail with ENOSYS. Some functions are actually named
19352 something starting with __ and the normal name is an alias. */
19353 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
19356 char (*f) () = $ac_func;
19365 return f != $ac_func;
19370 rm -f conftest.$ac_objext conftest$ac_exeext
19371 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
19372 (eval $ac_link) 2>conftest.er1
19374 grep -v '^ *+' conftest.er1 >conftest.err
19376 cat conftest.err >&5
19377 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19378 (exit $ac_status); } &&
19379 { ac_try='test -z "$ac_c_werror_flag"
19380 || test ! -s conftest.err'
19381 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19382 (eval $ac_try) 2>&5
19384 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19385 (exit $ac_status); }; } &&
19386 { ac_try='test -s conftest$ac_exeext'
19387 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19388 (eval $ac_try) 2>&5
19390 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19391 (exit $ac_status); }; }; then
19392 eval "$as_ac_var=yes"
19394 echo "$as_me: failed program was:" >&5
19395 sed 's/^/| /' conftest.$ac_ext >&5
19397 eval "$as_ac_var=no"
19399 rm -f conftest.err conftest.$ac_objext \
19400 conftest$ac_exeext conftest.$ac_ext
19402 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
19403 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
19404 if test `eval echo '${'$as_ac_var'}'` = yes; then
19405 cat >>confdefs.h <<_ACEOF
19406 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
19415 for ac_func in setpgid setpgrp setsid
19417 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
19418 echo "$as_me:$LINENO: checking for $ac_func" >&5
19419 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
19420 if eval "test \"\${$as_ac_var+set}\" = set"; then
19421 echo $ECHO_N "(cached) $ECHO_C" >&6
19423 cat >conftest.$ac_ext <<_ACEOF
19426 cat confdefs.h >>conftest.$ac_ext
19427 cat >>conftest.$ac_ext <<_ACEOF
19428 /* end confdefs.h. */
19429 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
19430 For example, HP-UX 11i <limits.h> declares gettimeofday. */
19431 #define $ac_func innocuous_$ac_func
19433 /* System header to define __stub macros and hopefully few prototypes,
19434 which can conflict with char $ac_func (); below.
19435 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
19436 <limits.h> exists even on freestanding compilers. */
19439 # include <limits.h>
19441 # include <assert.h>
19446 /* Override any gcc2 internal prototype to avoid an error. */
19451 /* We use char because int might match the return type of a gcc2
19452 builtin and then its argument prototype would still apply. */
19454 /* The GNU C library defines this for functions which it implements
19455 to always fail with ENOSYS. Some functions are actually named
19456 something starting with __ and the normal name is an alias. */
19457 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
19460 char (*f) () = $ac_func;
19469 return f != $ac_func;
19474 rm -f conftest.$ac_objext conftest$ac_exeext
19475 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
19476 (eval $ac_link) 2>conftest.er1
19478 grep -v '^ *+' conftest.er1 >conftest.err
19480 cat conftest.err >&5
19481 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19482 (exit $ac_status); } &&
19483 { ac_try='test -z "$ac_c_werror_flag"
19484 || test ! -s conftest.err'
19485 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19486 (eval $ac_try) 2>&5
19488 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19489 (exit $ac_status); }; } &&
19490 { ac_try='test -s conftest$ac_exeext'
19491 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19492 (eval $ac_try) 2>&5
19494 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19495 (exit $ac_status); }; }; then
19496 eval "$as_ac_var=yes"
19498 echo "$as_me: failed program was:" >&5
19499 sed 's/^/| /' conftest.$ac_ext >&5
19501 eval "$as_ac_var=no"
19503 rm -f conftest.err conftest.$ac_objext \
19504 conftest$ac_exeext conftest.$ac_ext
19506 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
19507 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
19508 if test `eval echo '${'$as_ac_var'}'` = yes; then
19509 cat >>confdefs.h <<_ACEOF
19510 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
19519 for ac_func in sigaction sigprocmask sigsetmask
19521 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
19522 echo "$as_me:$LINENO: checking for $ac_func" >&5
19523 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
19524 if eval "test \"\${$as_ac_var+set}\" = set"; then
19525 echo $ECHO_N "(cached) $ECHO_C" >&6
19527 cat >conftest.$ac_ext <<_ACEOF
19530 cat confdefs.h >>conftest.$ac_ext
19531 cat >>conftest.$ac_ext <<_ACEOF
19532 /* end confdefs.h. */
19533 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
19534 For example, HP-UX 11i <limits.h> declares gettimeofday. */
19535 #define $ac_func innocuous_$ac_func
19537 /* System header to define __stub macros and hopefully few prototypes,
19538 which can conflict with char $ac_func (); below.
19539 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
19540 <limits.h> exists even on freestanding compilers. */
19543 # include <limits.h>
19545 # include <assert.h>
19550 /* Override any gcc2 internal prototype to avoid an error. */
19555 /* We use char because int might match the return type of a gcc2
19556 builtin and then its argument prototype would still apply. */
19558 /* The GNU C library defines this for functions which it implements
19559 to always fail with ENOSYS. Some functions are actually named
19560 something starting with __ and the normal name is an alias. */
19561 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
19564 char (*f) () = $ac_func;
19573 return f != $ac_func;
19578 rm -f conftest.$ac_objext conftest$ac_exeext
19579 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
19580 (eval $ac_link) 2>conftest.er1
19582 grep -v '^ *+' conftest.er1 >conftest.err
19584 cat conftest.err >&5
19585 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19586 (exit $ac_status); } &&
19587 { ac_try='test -z "$ac_c_werror_flag"
19588 || test ! -s conftest.err'
19589 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19590 (eval $ac_try) 2>&5
19592 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19593 (exit $ac_status); }; } &&
19594 { ac_try='test -s conftest$ac_exeext'
19595 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19596 (eval $ac_try) 2>&5
19598 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19599 (exit $ac_status); }; }; then
19600 eval "$as_ac_var=yes"
19602 echo "$as_me: failed program was:" >&5
19603 sed 's/^/| /' conftest.$ac_ext >&5
19605 eval "$as_ac_var=no"
19607 rm -f conftest.err conftest.$ac_objext \
19608 conftest$ac_exeext conftest.$ac_ext
19610 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
19611 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
19612 if test `eval echo '${'$as_ac_var'}'` = yes; then
19613 cat >>confdefs.h <<_ACEOF
19614 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
19621 for ac_func in socketpair
19623 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
19624 echo "$as_me:$LINENO: checking for $ac_func" >&5
19625 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
19626 if eval "test \"\${$as_ac_var+set}\" = set"; then
19627 echo $ECHO_N "(cached) $ECHO_C" >&6
19629 cat >conftest.$ac_ext <<_ACEOF
19632 cat confdefs.h >>conftest.$ac_ext
19633 cat >>conftest.$ac_ext <<_ACEOF
19634 /* end confdefs.h. */
19635 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
19636 For example, HP-UX 11i <limits.h> declares gettimeofday. */
19637 #define $ac_func innocuous_$ac_func
19639 /* System header to define __stub macros and hopefully few prototypes,
19640 which can conflict with char $ac_func (); below.
19641 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
19642 <limits.h> exists even on freestanding compilers. */
19645 # include <limits.h>
19647 # include <assert.h>
19652 /* Override any gcc2 internal prototype to avoid an error. */
19657 /* We use char because int might match the return type of a gcc2
19658 builtin and then its argument prototype would still apply. */
19660 /* The GNU C library defines this for functions which it implements
19661 to always fail with ENOSYS. Some functions are actually named
19662 something starting with __ and the normal name is an alias. */
19663 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
19666 char (*f) () = $ac_func;
19675 return f != $ac_func;
19680 rm -f conftest.$ac_objext conftest$ac_exeext
19681 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
19682 (eval $ac_link) 2>conftest.er1
19684 grep -v '^ *+' conftest.er1 >conftest.err
19686 cat conftest.err >&5
19687 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19688 (exit $ac_status); } &&
19689 { ac_try='test -z "$ac_c_werror_flag"
19690 || test ! -s conftest.err'
19691 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19692 (eval $ac_try) 2>&5
19694 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19695 (exit $ac_status); }; } &&
19696 { ac_try='test -s conftest$ac_exeext'
19697 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19698 (eval $ac_try) 2>&5
19700 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19701 (exit $ac_status); }; }; then
19702 eval "$as_ac_var=yes"
19704 echo "$as_me: failed program was:" >&5
19705 sed 's/^/| /' conftest.$ac_ext >&5
19707 eval "$as_ac_var=no"
19709 rm -f conftest.err conftest.$ac_objext \
19710 conftest$ac_exeext conftest.$ac_ext
19712 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
19713 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
19714 if test `eval echo '${'$as_ac_var'}'` = yes; then
19715 cat >>confdefs.h <<_ACEOF
19716 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
19723 for ac_func in syscall
19725 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
19726 echo "$as_me:$LINENO: checking for $ac_func" >&5
19727 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
19728 if eval "test \"\${$as_ac_var+set}\" = set"; then
19729 echo $ECHO_N "(cached) $ECHO_C" >&6
19731 cat >conftest.$ac_ext <<_ACEOF
19734 cat confdefs.h >>conftest.$ac_ext
19735 cat >>conftest.$ac_ext <<_ACEOF
19736 /* end confdefs.h. */
19737 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
19738 For example, HP-UX 11i <limits.h> declares gettimeofday. */
19739 #define $ac_func innocuous_$ac_func
19741 /* System header to define __stub macros and hopefully few prototypes,
19742 which can conflict with char $ac_func (); below.
19743 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
19744 <limits.h> exists even on freestanding compilers. */
19747 # include <limits.h>
19749 # include <assert.h>
19754 /* Override any gcc2 internal prototype to avoid an error. */
19759 /* We use char because int might match the return type of a gcc2
19760 builtin and then its argument prototype would still apply. */
19762 /* The GNU C library defines this for functions which it implements
19763 to always fail with ENOSYS. Some functions are actually named
19764 something starting with __ and the normal name is an alias. */
19765 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
19768 char (*f) () = $ac_func;
19777 return f != $ac_func;
19782 rm -f conftest.$ac_objext conftest$ac_exeext
19783 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
19784 (eval $ac_link) 2>conftest.er1
19786 grep -v '^ *+' conftest.er1 >conftest.err
19788 cat conftest.err >&5
19789 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19790 (exit $ac_status); } &&
19791 { ac_try='test -z "$ac_c_werror_flag"
19792 || test ! -s conftest.err'
19793 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19794 (eval $ac_try) 2>&5
19796 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19797 (exit $ac_status); }; } &&
19798 { ac_try='test -s conftest$ac_exeext'
19799 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19800 (eval $ac_try) 2>&5
19802 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19803 (exit $ac_status); }; }; then
19804 eval "$as_ac_var=yes"
19806 echo "$as_me: failed program was:" >&5
19807 sed 's/^/| /' conftest.$ac_ext >&5
19809 eval "$as_ac_var=no"
19811 rm -f conftest.err conftest.$ac_objext \
19812 conftest$ac_exeext conftest.$ac_ext
19814 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
19815 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
19816 if test `eval echo '${'$as_ac_var'}'` = yes; then
19817 cat >>confdefs.h <<_ACEOF
19818 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
19825 for ac_func in ttrace
19827 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
19828 echo "$as_me:$LINENO: checking for $ac_func" >&5
19829 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
19830 if eval "test \"\${$as_ac_var+set}\" = set"; then
19831 echo $ECHO_N "(cached) $ECHO_C" >&6
19833 cat >conftest.$ac_ext <<_ACEOF
19836 cat confdefs.h >>conftest.$ac_ext
19837 cat >>conftest.$ac_ext <<_ACEOF
19838 /* end confdefs.h. */
19839 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
19840 For example, HP-UX 11i <limits.h> declares gettimeofday. */
19841 #define $ac_func innocuous_$ac_func
19843 /* System header to define __stub macros and hopefully few prototypes,
19844 which can conflict with char $ac_func (); below.
19845 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
19846 <limits.h> exists even on freestanding compilers. */
19849 # include <limits.h>
19851 # include <assert.h>
19856 /* Override any gcc2 internal prototype to avoid an error. */
19861 /* We use char because int might match the return type of a gcc2
19862 builtin and then its argument prototype would still apply. */
19864 /* The GNU C library defines this for functions which it implements
19865 to always fail with ENOSYS. Some functions are actually named
19866 something starting with __ and the normal name is an alias. */
19867 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
19870 char (*f) () = $ac_func;
19879 return f != $ac_func;
19884 rm -f conftest.$ac_objext conftest$ac_exeext
19885 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
19886 (eval $ac_link) 2>conftest.er1
19888 grep -v '^ *+' conftest.er1 >conftest.err
19890 cat conftest.err >&5
19891 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19892 (exit $ac_status); } &&
19893 { ac_try='test -z "$ac_c_werror_flag"
19894 || test ! -s conftest.err'
19895 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19896 (eval $ac_try) 2>&5
19898 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19899 (exit $ac_status); }; } &&
19900 { ac_try='test -s conftest$ac_exeext'
19901 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19902 (eval $ac_try) 2>&5
19904 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19905 (exit $ac_status); }; }; then
19906 eval "$as_ac_var=yes"
19908 echo "$as_me: failed program was:" >&5
19909 sed 's/^/| /' conftest.$ac_ext >&5
19911 eval "$as_ac_var=no"
19913 rm -f conftest.err conftest.$ac_objext \
19914 conftest$ac_exeext conftest.$ac_ext
19916 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
19917 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
19918 if test `eval echo '${'$as_ac_var'}'` = yes; then
19919 cat >>confdefs.h <<_ACEOF
19920 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
19927 for ac_func in wborder
19929 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
19930 echo "$as_me:$LINENO: checking for $ac_func" >&5
19931 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
19932 if eval "test \"\${$as_ac_var+set}\" = set"; then
19933 echo $ECHO_N "(cached) $ECHO_C" >&6
19935 cat >conftest.$ac_ext <<_ACEOF
19938 cat confdefs.h >>conftest.$ac_ext
19939 cat >>conftest.$ac_ext <<_ACEOF
19940 /* end confdefs.h. */
19941 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
19942 For example, HP-UX 11i <limits.h> declares gettimeofday. */
19943 #define $ac_func innocuous_$ac_func
19945 /* System header to define __stub macros and hopefully few prototypes,
19946 which can conflict with char $ac_func (); below.
19947 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
19948 <limits.h> exists even on freestanding compilers. */
19951 # include <limits.h>
19953 # include <assert.h>
19958 /* Override any gcc2 internal prototype to avoid an error. */
19963 /* We use char because int might match the return type of a gcc2
19964 builtin and then its argument prototype would still apply. */
19966 /* The GNU C library defines this for functions which it implements
19967 to always fail with ENOSYS. Some functions are actually named
19968 something starting with __ and the normal name is an alias. */
19969 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
19972 char (*f) () = $ac_func;
19981 return f != $ac_func;
19986 rm -f conftest.$ac_objext conftest$ac_exeext
19987 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
19988 (eval $ac_link) 2>conftest.er1
19990 grep -v '^ *+' conftest.er1 >conftest.err
19992 cat conftest.err >&5
19993 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19994 (exit $ac_status); } &&
19995 { ac_try='test -z "$ac_c_werror_flag"
19996 || test ! -s conftest.err'
19997 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19998 (eval $ac_try) 2>&5
20000 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20001 (exit $ac_status); }; } &&
20002 { ac_try='test -s conftest$ac_exeext'
20003 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20004 (eval $ac_try) 2>&5
20006 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20007 (exit $ac_status); }; }; then
20008 eval "$as_ac_var=yes"
20010 echo "$as_me: failed program was:" >&5
20011 sed 's/^/| /' conftest.$ac_ext >&5
20013 eval "$as_ac_var=no"
20015 rm -f conftest.err conftest.$ac_objext \
20016 conftest$ac_exeext conftest.$ac_ext
20018 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
20019 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
20020 if test `eval echo '${'$as_ac_var'}'` = yes; then
20021 cat >>confdefs.h <<_ACEOF
20022 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
20029 # Check the return and argument types of ptrace. No canned test for
20030 # this, so roll our own.
20031 gdb_ptrace_headers='
20032 #if HAVE_SYS_TYPES_H
20033 # include <sys/types.h>
20035 #if HAVE_SYS_PTRACE_H
20036 # include <sys/ptrace.h>
20039 # include <unistd.h>
20042 # There is no point in checking if we don't have a prototype.
20043 echo "$as_me:$LINENO: checking whether ptrace is declared" >&5
20044 echo $ECHO_N "checking whether ptrace is declared... $ECHO_C" >&6
20045 if test "${ac_cv_have_decl_ptrace+set}" = set; then
20046 echo $ECHO_N "(cached) $ECHO_C" >&6
20048 cat >conftest.$ac_ext <<_ACEOF
20051 cat confdefs.h >>conftest.$ac_ext
20052 cat >>conftest.$ac_ext <<_ACEOF
20053 /* end confdefs.h. */
20054 $gdb_ptrace_headers
20060 char *p = (char *) ptrace;
20067 rm -f conftest.$ac_objext
20068 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
20069 (eval $ac_compile) 2>conftest.er1
20071 grep -v '^ *+' conftest.er1 >conftest.err
20073 cat conftest.err >&5
20074 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20075 (exit $ac_status); } &&
20076 { ac_try='test -z "$ac_c_werror_flag"
20077 || test ! -s conftest.err'
20078 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20079 (eval $ac_try) 2>&5
20081 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20082 (exit $ac_status); }; } &&
20083 { ac_try='test -s conftest.$ac_objext'
20084 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20085 (eval $ac_try) 2>&5
20087 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20088 (exit $ac_status); }; }; then
20089 ac_cv_have_decl_ptrace=yes
20091 echo "$as_me: failed program was:" >&5
20092 sed 's/^/| /' conftest.$ac_ext >&5
20094 ac_cv_have_decl_ptrace=no
20096 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
20098 echo "$as_me:$LINENO: result: $ac_cv_have_decl_ptrace" >&5
20099 echo "${ECHO_T}$ac_cv_have_decl_ptrace" >&6
20100 if test $ac_cv_have_decl_ptrace = yes; then
20102 cat >>confdefs.h <<_ACEOF
20103 #define HAVE_DECL_PTRACE 1
20108 cat >>confdefs.h <<_ACEOF
20109 #define HAVE_DECL_PTRACE 0
20113 : ${gdb_cv_func_ptrace_ret='int'}
20114 : ${gdb_cv_func_ptrace_args='int,int,long,long'}
20119 # Check return type.
20120 echo "$as_me:$LINENO: checking return type of ptrace" >&5
20121 echo $ECHO_N "checking return type of ptrace... $ECHO_C" >&6
20122 if test "${gdb_cv_func_ptrace_ret+set}" = set; then
20123 echo $ECHO_N "(cached) $ECHO_C" >&6
20125 cat >conftest.$ac_ext <<_ACEOF
20128 cat confdefs.h >>conftest.$ac_ext
20129 cat >>conftest.$ac_ext <<_ACEOF
20130 /* end confdefs.h. */
20131 $gdb_ptrace_headers
20135 extern int ptrace ();
20140 rm -f conftest.$ac_objext
20141 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
20142 (eval $ac_compile) 2>conftest.er1
20144 grep -v '^ *+' conftest.er1 >conftest.err
20146 cat conftest.err >&5
20147 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20148 (exit $ac_status); } &&
20149 { ac_try='test -z "$ac_c_werror_flag"
20150 || test ! -s conftest.err'
20151 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20152 (eval $ac_try) 2>&5
20154 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20155 (exit $ac_status); }; } &&
20156 { ac_try='test -s conftest.$ac_objext'
20157 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20158 (eval $ac_try) 2>&5
20160 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20161 (exit $ac_status); }; }; then
20162 gdb_cv_func_ptrace_ret='int'
20164 echo "$as_me: failed program was:" >&5
20165 sed 's/^/| /' conftest.$ac_ext >&5
20167 gdb_cv_func_ptrace_ret='long'
20169 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
20171 echo "$as_me:$LINENO: result: $gdb_cv_func_ptrace_ret" >&5
20172 echo "${ECHO_T}$gdb_cv_func_ptrace_ret" >&6
20174 cat >>confdefs.h <<_ACEOF
20175 #define PTRACE_TYPE_RET $gdb_cv_func_ptrace_ret
20178 # Check argument types.
20179 echo "$as_me:$LINENO: checking types of arguments for ptrace" >&5
20180 echo $ECHO_N "checking types of arguments for ptrace... $ECHO_C" >&6
20181 if test "${gdb_cv_func_ptrace_args+set}" = set; then
20182 echo $ECHO_N "(cached) $ECHO_C" >&6
20185 for gdb_arg1 in 'int' 'long'; do
20186 for gdb_arg2 in 'pid_t' 'int' 'long'; do
20187 for gdb_arg3 in 'int *' 'caddr_t' 'int' 'long' 'void *'; do
20188 for gdb_arg4 in 'int' 'long'; do
20189 cat >conftest.$ac_ext <<_ACEOF
20192 cat confdefs.h >>conftest.$ac_ext
20193 cat >>conftest.$ac_ext <<_ACEOF
20194 /* end confdefs.h. */
20195 $gdb_ptrace_headers
20200 extern $gdb_cv_func_ptrace_ret
20201 ptrace ($gdb_arg1, $gdb_arg2, $gdb_arg3, $gdb_arg4);
20207 rm -f conftest.$ac_objext
20208 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
20209 (eval $ac_compile) 2>conftest.er1
20211 grep -v '^ *+' conftest.er1 >conftest.err
20213 cat conftest.err >&5
20214 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20215 (exit $ac_status); } &&
20216 { ac_try='test -z "$ac_c_werror_flag"
20217 || test ! -s conftest.err'
20218 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20219 (eval $ac_try) 2>&5
20221 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20222 (exit $ac_status); }; } &&
20223 { ac_try='test -s conftest.$ac_objext'
20224 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20225 (eval $ac_try) 2>&5
20227 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20228 (exit $ac_status); }; }; then
20229 gdb_cv_func_ptrace_args="$gdb_arg1,$gdb_arg2,$gdb_arg3,$gdb_arg4";
20232 echo "$as_me: failed program was:" >&5
20233 sed 's/^/| /' conftest.$ac_ext >&5
20236 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
20237 for gdb_arg5 in 'int *' 'int' 'long'; do
20238 cat >conftest.$ac_ext <<_ACEOF
20241 cat confdefs.h >>conftest.$ac_ext
20242 cat >>conftest.$ac_ext <<_ACEOF
20243 /* end confdefs.h. */
20244 $gdb_ptrace_headers
20249 extern $gdb_cv_func_ptrace_ret
20250 ptrace ($gdb_arg1, $gdb_arg2, $gdb_arg3, $gdb_arg4, $gdb_arg5);
20256 rm -f conftest.$ac_objext
20257 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
20258 (eval $ac_compile) 2>conftest.er1
20260 grep -v '^ *+' conftest.er1 >conftest.err
20262 cat conftest.err >&5
20263 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20264 (exit $ac_status); } &&
20265 { ac_try='test -z "$ac_c_werror_flag"
20266 || test ! -s conftest.err'
20267 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20268 (eval $ac_try) 2>&5
20270 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20271 (exit $ac_status); }; } &&
20272 { ac_try='test -s conftest.$ac_objext'
20273 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20274 (eval $ac_try) 2>&5
20276 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20277 (exit $ac_status); }; }; then
20279 gdb_cv_func_ptrace_args="$gdb_arg1,$gdb_arg2,$gdb_arg3,$gdb_arg4,$gdb_arg5";
20282 echo "$as_me: failed program was:" >&5
20283 sed 's/^/| /' conftest.$ac_ext >&5
20286 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
20292 # Provide a safe default value.
20293 : ${gdb_cv_func_ptrace_args='int,int,long,long'}
20296 echo "$as_me:$LINENO: result: $gdb_cv_func_ptrace_args" >&5
20297 echo "${ECHO_T}$gdb_cv_func_ptrace_args" >&6
20298 ac_save_IFS=$IFS; IFS=','
20299 set dummy `echo "$gdb_cv_func_ptrace_args" | sed 's/\*/\*/g'`
20303 cat >>confdefs.h <<_ACEOF
20304 #define PTRACE_TYPE_ARG3 $3
20307 if test -n "$5"; then
20309 cat >>confdefs.h <<_ACEOF
20310 #define PTRACE_TYPE_ARG5 $5
20315 if test "$cross_compiling" = no; then
20316 echo "$as_me:$LINENO: checking whether setpgrp takes no argument" >&5
20317 echo $ECHO_N "checking whether setpgrp takes no argument... $ECHO_C" >&6
20318 if test "${ac_cv_func_setpgrp_void+set}" = set; then
20319 echo $ECHO_N "(cached) $ECHO_C" >&6
20321 if test "$cross_compiling" = yes; then
20322 { { echo "$as_me:$LINENO: error: cannot check setpgrp when cross compiling" >&5
20323 echo "$as_me: error: cannot check setpgrp when cross compiling" >&2;}
20324 { (exit 1); exit 1; }; }
20326 cat >conftest.$ac_ext <<_ACEOF
20329 cat confdefs.h >>conftest.$ac_ext
20330 cat >>conftest.$ac_ext <<_ACEOF
20331 /* end confdefs.h. */
20333 # include <unistd.h>
20339 /* If this system has a BSD-style setpgrp which takes arguments,
20340 setpgrp(1, 1) will fail with ESRCH and return -1, in that case
20341 exit successfully. */
20342 exit (setpgrp (1,1) == -1 ? 0 : 1);
20347 rm -f conftest$ac_exeext
20348 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
20349 (eval $ac_link) 2>&5
20351 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20352 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
20353 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20354 (eval $ac_try) 2>&5
20356 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20357 (exit $ac_status); }; }; then
20358 ac_cv_func_setpgrp_void=no
20360 echo "$as_me: program exited with status $ac_status" >&5
20361 echo "$as_me: failed program was:" >&5
20362 sed 's/^/| /' conftest.$ac_ext >&5
20364 ( exit $ac_status )
20365 ac_cv_func_setpgrp_void=yes
20367 rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
20370 echo "$as_me:$LINENO: result: $ac_cv_func_setpgrp_void" >&5
20371 echo "${ECHO_T}$ac_cv_func_setpgrp_void" >&6
20372 if test $ac_cv_func_setpgrp_void = yes; then
20374 cat >>confdefs.h <<\_ACEOF
20375 #define SETPGRP_VOID 1
20381 echo "$as_me:$LINENO: checking whether setpgrp takes no argument" >&5
20382 echo $ECHO_N "checking whether setpgrp takes no argument... $ECHO_C" >&6
20383 if test "${ac_cv_func_setpgrp_void+set}" = set; then
20384 echo $ECHO_N "(cached) $ECHO_C" >&6
20386 cat >conftest.$ac_ext <<_ACEOF
20389 cat confdefs.h >>conftest.$ac_ext
20390 cat >>conftest.$ac_ext <<_ACEOF
20391 /* end confdefs.h. */
20393 #include <unistd.h>
20399 if (setpgrp(1,1) == -1)
20408 rm -f conftest.$ac_objext
20409 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
20410 (eval $ac_compile) 2>conftest.er1
20412 grep -v '^ *+' conftest.er1 >conftest.err
20414 cat conftest.err >&5
20415 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20416 (exit $ac_status); } &&
20417 { ac_try='test -z "$ac_c_werror_flag"
20418 || test ! -s conftest.err'
20419 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20420 (eval $ac_try) 2>&5
20422 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20423 (exit $ac_status); }; } &&
20424 { ac_try='test -s conftest.$ac_objext'
20425 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20426 (eval $ac_try) 2>&5
20428 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20429 (exit $ac_status); }; }; then
20430 ac_cv_func_setpgrp_void=no
20432 echo "$as_me: failed program was:" >&5
20433 sed 's/^/| /' conftest.$ac_ext >&5
20435 ac_cv_func_setpgrp_void=yes
20437 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
20439 echo "$as_me:$LINENO: result: $ac_cv_func_setpgrp_void" >&5
20440 echo "${ECHO_T}$ac_cv_func_setpgrp_void" >&6
20441 if test $ac_cv_func_setpgrp_void = yes; then
20442 cat >>confdefs.h <<\_ACEOF
20443 #define SETPGRP_VOID 1
20449 # Check if sigsetjmp is available. Using AC_CHECK_FUNCS won't do
20450 # since sigsetjmp might only be defined as a macro.
20451 echo "$as_me:$LINENO: checking for sigsetjmp" >&5
20452 echo $ECHO_N "checking for sigsetjmp... $ECHO_C" >&6
20453 if test "${gdb_cv_func_sigsetjmp+set}" = set; then
20454 echo $ECHO_N "(cached) $ECHO_C" >&6
20456 cat >conftest.$ac_ext <<_ACEOF
20459 cat confdefs.h >>conftest.$ac_ext
20460 cat >>conftest.$ac_ext <<_ACEOF
20461 /* end confdefs.h. */
20463 #include <setjmp.h>
20468 sigjmp_buf env; while (! sigsetjmp (env, 1)) siglongjmp (env, 1);
20473 rm -f conftest.$ac_objext
20474 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
20475 (eval $ac_compile) 2>conftest.er1
20477 grep -v '^ *+' conftest.er1 >conftest.err
20479 cat conftest.err >&5
20480 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20481 (exit $ac_status); } &&
20482 { ac_try='test -z "$ac_c_werror_flag"
20483 || test ! -s conftest.err'
20484 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20485 (eval $ac_try) 2>&5
20487 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20488 (exit $ac_status); }; } &&
20489 { ac_try='test -s conftest.$ac_objext'
20490 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20491 (eval $ac_try) 2>&5
20493 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20494 (exit $ac_status); }; }; then
20495 gdb_cv_func_sigsetjmp=yes
20497 echo "$as_me: failed program was:" >&5
20498 sed 's/^/| /' conftest.$ac_ext >&5
20500 gdb_cv_func_sigsetjmp=no
20502 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
20504 echo "$as_me:$LINENO: result: $gdb_cv_func_sigsetjmp" >&5
20505 echo "${ECHO_T}$gdb_cv_func_sigsetjmp" >&6
20506 if test $gdb_cv_func_sigsetjmp = yes; then
20508 cat >>confdefs.h <<\_ACEOF
20509 #define HAVE_SIGSETJMP 1
20514 # Assume we'll default to using the included libiberty regex.
20515 gdb_use_included_regex=yes
20517 # However, if the system regex is GNU regex, then default to *not*
20518 # using the included regex.
20519 echo "$as_me:$LINENO: checking for GNU regex" >&5
20520 echo $ECHO_N "checking for GNU regex... $ECHO_C" >&6
20521 if test "${gdb_cv_have_gnu_regex+set}" = set; then
20522 echo $ECHO_N "(cached) $ECHO_C" >&6
20524 cat >conftest.$ac_ext <<_ACEOF
20527 cat confdefs.h >>conftest.$ac_ext
20528 cat >>conftest.$ac_ext <<_ACEOF
20529 /* end confdefs.h. */
20530 #include <gnu-versions.h>
20534 #define REGEX_INTERFACE_VERSION 1
20535 #if _GNU_REGEX_INTERFACE_VERSION != REGEX_INTERFACE_VERSION
20536 # error "Version mismatch"
20542 rm -f conftest.$ac_objext
20543 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
20544 (eval $ac_compile) 2>conftest.er1
20546 grep -v '^ *+' conftest.er1 >conftest.err
20548 cat conftest.err >&5
20549 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20550 (exit $ac_status); } &&
20551 { ac_try='test -z "$ac_c_werror_flag"
20552 || test ! -s conftest.err'
20553 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20554 (eval $ac_try) 2>&5
20556 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20557 (exit $ac_status); }; } &&
20558 { ac_try='test -s conftest.$ac_objext'
20559 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20560 (eval $ac_try) 2>&5
20562 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20563 (exit $ac_status); }; }; then
20564 gdb_cv_have_gnu_regex=yes
20566 echo "$as_me: failed program was:" >&5
20567 sed 's/^/| /' conftest.$ac_ext >&5
20569 gdb_cv_have_gnu_regex=no
20571 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
20573 echo "$as_me:$LINENO: result: $gdb_cv_have_gnu_regex" >&5
20574 echo "${ECHO_T}$gdb_cv_have_gnu_regex" >&6
20575 if test $gdb_cv_have_gnu_regex = yes; then
20576 gdb_use_included_regex=no
20580 # Check whether --with-included-regex or --without-included-regex was given.
20581 if test "${with_included_regex+set}" = set; then
20582 withval="$with_included_regex"
20583 gdb_with_regex=$withval
20585 gdb_with_regex=$gdb_use_included_regex
20587 if test "$gdb_with_regex" = yes; then
20589 cat >>confdefs.h <<\_ACEOF
20590 #define USE_INCLUDED_REGEX 1
20595 # Check if <sys/proc.h> defines `struct thread' with a td_pcb member.
20596 echo "$as_me:$LINENO: checking for struct thread.td_pcb" >&5
20597 echo $ECHO_N "checking for struct thread.td_pcb... $ECHO_C" >&6
20598 if test "${ac_cv_member_struct_thread_td_pcb+set}" = set; then
20599 echo $ECHO_N "(cached) $ECHO_C" >&6
20601 cat >conftest.$ac_ext <<_ACEOF
20604 cat confdefs.h >>conftest.$ac_ext
20605 cat >>conftest.$ac_ext <<_ACEOF
20606 /* end confdefs.h. */
20607 #include <sys/param.h>
20608 #include <sys/proc.h>
20614 static struct thread ac_aggr;
20615 if (ac_aggr.td_pcb)
20621 rm -f conftest.$ac_objext
20622 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
20623 (eval $ac_compile) 2>conftest.er1
20625 grep -v '^ *+' conftest.er1 >conftest.err
20627 cat conftest.err >&5
20628 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20629 (exit $ac_status); } &&
20630 { ac_try='test -z "$ac_c_werror_flag"
20631 || test ! -s conftest.err'
20632 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20633 (eval $ac_try) 2>&5
20635 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20636 (exit $ac_status); }; } &&
20637 { ac_try='test -s conftest.$ac_objext'
20638 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20639 (eval $ac_try) 2>&5
20641 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20642 (exit $ac_status); }; }; then
20643 ac_cv_member_struct_thread_td_pcb=yes
20645 echo "$as_me: failed program was:" >&5
20646 sed 's/^/| /' conftest.$ac_ext >&5
20648 cat >conftest.$ac_ext <<_ACEOF
20651 cat confdefs.h >>conftest.$ac_ext
20652 cat >>conftest.$ac_ext <<_ACEOF
20653 /* end confdefs.h. */
20654 #include <sys/param.h>
20655 #include <sys/proc.h>
20661 static struct thread ac_aggr;
20662 if (sizeof ac_aggr.td_pcb)
20668 rm -f conftest.$ac_objext
20669 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
20670 (eval $ac_compile) 2>conftest.er1
20672 grep -v '^ *+' conftest.er1 >conftest.err
20674 cat conftest.err >&5
20675 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20676 (exit $ac_status); } &&
20677 { ac_try='test -z "$ac_c_werror_flag"
20678 || test ! -s conftest.err'
20679 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20680 (eval $ac_try) 2>&5
20682 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20683 (exit $ac_status); }; } &&
20684 { ac_try='test -s conftest.$ac_objext'
20685 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20686 (eval $ac_try) 2>&5
20688 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20689 (exit $ac_status); }; }; then
20690 ac_cv_member_struct_thread_td_pcb=yes
20692 echo "$as_me: failed program was:" >&5
20693 sed 's/^/| /' conftest.$ac_ext >&5
20695 ac_cv_member_struct_thread_td_pcb=no
20697 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
20699 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
20701 echo "$as_me:$LINENO: result: $ac_cv_member_struct_thread_td_pcb" >&5
20702 echo "${ECHO_T}$ac_cv_member_struct_thread_td_pcb" >&6
20703 if test $ac_cv_member_struct_thread_td_pcb = yes; then
20705 cat >>confdefs.h <<_ACEOF
20706 #define HAVE_STRUCT_THREAD_TD_PCB 1
20713 # See if <sys/lwp.h> defines `struct lwp`.
20714 echo "$as_me:$LINENO: checking for struct lwp" >&5
20715 echo $ECHO_N "checking for struct lwp... $ECHO_C" >&6
20716 if test "${gdb_cv_struct_lwp+set}" = set; then
20717 echo $ECHO_N "(cached) $ECHO_C" >&6
20719 cat >conftest.$ac_ext <<_ACEOF
20722 cat confdefs.h >>conftest.$ac_ext
20723 cat >>conftest.$ac_ext <<_ACEOF
20724 /* end confdefs.h. */
20725 #include <sys/param.h>
20726 #include <sys/lwp.h>
20735 rm -f conftest.$ac_objext
20736 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
20737 (eval $ac_compile) 2>conftest.er1
20739 grep -v '^ *+' conftest.er1 >conftest.err
20741 cat conftest.err >&5
20742 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20743 (exit $ac_status); } &&
20744 { ac_try='test -z "$ac_c_werror_flag"
20745 || test ! -s conftest.err'
20746 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20747 (eval $ac_try) 2>&5
20749 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20750 (exit $ac_status); }; } &&
20751 { ac_try='test -s conftest.$ac_objext'
20752 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20753 (eval $ac_try) 2>&5
20755 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20756 (exit $ac_status); }; }; then
20757 gdb_cv_struct_lwp=yes
20759 echo "$as_me: failed program was:" >&5
20760 sed 's/^/| /' conftest.$ac_ext >&5
20762 gdb_cv_struct_lwp=no
20764 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
20766 echo "$as_me:$LINENO: result: $gdb_cv_struct_lwp" >&5
20767 echo "${ECHO_T}$gdb_cv_struct_lwp" >&6
20768 if test $gdb_cv_struct_lwp = yes; then
20770 cat >>confdefs.h <<\_ACEOF
20771 #define HAVE_STRUCT_LWP 1
20776 # See if <machine/reg.h> degines `struct reg'.
20777 echo "$as_me:$LINENO: checking for struct reg in machine/reg.h" >&5
20778 echo $ECHO_N "checking for struct reg in machine/reg.h... $ECHO_C" >&6
20779 if test "${gdb_cv_struct_reg+set}" = set; then
20780 echo $ECHO_N "(cached) $ECHO_C" >&6
20782 cat >conftest.$ac_ext <<_ACEOF
20785 cat confdefs.h >>conftest.$ac_ext
20786 cat >>conftest.$ac_ext <<_ACEOF
20787 /* end confdefs.h. */
20788 #include <sys/types.h>
20789 #include <machine/reg.h>
20798 rm -f conftest.$ac_objext
20799 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
20800 (eval $ac_compile) 2>conftest.er1
20802 grep -v '^ *+' conftest.er1 >conftest.err
20804 cat conftest.err >&5
20805 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20806 (exit $ac_status); } &&
20807 { ac_try='test -z "$ac_c_werror_flag"
20808 || test ! -s conftest.err'
20809 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20810 (eval $ac_try) 2>&5
20812 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20813 (exit $ac_status); }; } &&
20814 { ac_try='test -s conftest.$ac_objext'
20815 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20816 (eval $ac_try) 2>&5
20818 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20819 (exit $ac_status); }; }; then
20820 gdb_cv_struct_reg=yes
20822 echo "$as_me: failed program was:" >&5
20823 sed 's/^/| /' conftest.$ac_ext >&5
20825 gdb_cv_struct_reg=no
20827 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
20829 echo "$as_me:$LINENO: result: $gdb_cv_struct_reg" >&5
20830 echo "${ECHO_T}$gdb_cv_struct_reg" >&6
20831 if test $gdb_cv_struct_reg = yes; then
20833 cat >>confdefs.h <<\_ACEOF
20834 #define HAVE_STRUCT_REG 1
20839 # See if <machine/reg.h> supports the %fs and %gs i386 segment registers.
20840 # Older i386 BSD's don't have the r_fs and r_gs members of `struct reg'.
20841 echo "$as_me:$LINENO: checking for struct reg.r_fs" >&5
20842 echo $ECHO_N "checking for struct reg.r_fs... $ECHO_C" >&6
20843 if test "${ac_cv_member_struct_reg_r_fs+set}" = set; then
20844 echo $ECHO_N "(cached) $ECHO_C" >&6
20846 cat >conftest.$ac_ext <<_ACEOF
20849 cat confdefs.h >>conftest.$ac_ext
20850 cat >>conftest.$ac_ext <<_ACEOF
20851 /* end confdefs.h. */
20852 #include <machine/reg.h>
20857 static struct reg ac_aggr;
20864 rm -f conftest.$ac_objext
20865 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
20866 (eval $ac_compile) 2>conftest.er1
20868 grep -v '^ *+' conftest.er1 >conftest.err
20870 cat conftest.err >&5
20871 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20872 (exit $ac_status); } &&
20873 { ac_try='test -z "$ac_c_werror_flag"
20874 || test ! -s conftest.err'
20875 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20876 (eval $ac_try) 2>&5
20878 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20879 (exit $ac_status); }; } &&
20880 { ac_try='test -s conftest.$ac_objext'
20881 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20882 (eval $ac_try) 2>&5
20884 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20885 (exit $ac_status); }; }; then
20886 ac_cv_member_struct_reg_r_fs=yes
20888 echo "$as_me: failed program was:" >&5
20889 sed 's/^/| /' conftest.$ac_ext >&5
20891 cat >conftest.$ac_ext <<_ACEOF
20894 cat confdefs.h >>conftest.$ac_ext
20895 cat >>conftest.$ac_ext <<_ACEOF
20896 /* end confdefs.h. */
20897 #include <machine/reg.h>
20902 static struct reg ac_aggr;
20903 if (sizeof ac_aggr.r_fs)
20909 rm -f conftest.$ac_objext
20910 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
20911 (eval $ac_compile) 2>conftest.er1
20913 grep -v '^ *+' conftest.er1 >conftest.err
20915 cat conftest.err >&5
20916 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20917 (exit $ac_status); } &&
20918 { ac_try='test -z "$ac_c_werror_flag"
20919 || test ! -s conftest.err'
20920 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20921 (eval $ac_try) 2>&5
20923 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20924 (exit $ac_status); }; } &&
20925 { ac_try='test -s conftest.$ac_objext'
20926 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20927 (eval $ac_try) 2>&5
20929 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20930 (exit $ac_status); }; }; then
20931 ac_cv_member_struct_reg_r_fs=yes
20933 echo "$as_me: failed program was:" >&5
20934 sed 's/^/| /' conftest.$ac_ext >&5
20936 ac_cv_member_struct_reg_r_fs=no
20938 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
20940 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
20942 echo "$as_me:$LINENO: result: $ac_cv_member_struct_reg_r_fs" >&5
20943 echo "${ECHO_T}$ac_cv_member_struct_reg_r_fs" >&6
20944 if test $ac_cv_member_struct_reg_r_fs = yes; then
20946 cat >>confdefs.h <<_ACEOF
20947 #define HAVE_STRUCT_REG_R_FS 1
20952 echo "$as_me:$LINENO: checking for struct reg.r_gs" >&5
20953 echo $ECHO_N "checking for struct reg.r_gs... $ECHO_C" >&6
20954 if test "${ac_cv_member_struct_reg_r_gs+set}" = set; then
20955 echo $ECHO_N "(cached) $ECHO_C" >&6
20957 cat >conftest.$ac_ext <<_ACEOF
20960 cat confdefs.h >>conftest.$ac_ext
20961 cat >>conftest.$ac_ext <<_ACEOF
20962 /* end confdefs.h. */
20963 #include <machine/reg.h>
20968 static struct reg ac_aggr;
20975 rm -f conftest.$ac_objext
20976 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
20977 (eval $ac_compile) 2>conftest.er1
20979 grep -v '^ *+' conftest.er1 >conftest.err
20981 cat conftest.err >&5
20982 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20983 (exit $ac_status); } &&
20984 { ac_try='test -z "$ac_c_werror_flag"
20985 || test ! -s conftest.err'
20986 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20987 (eval $ac_try) 2>&5
20989 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20990 (exit $ac_status); }; } &&
20991 { ac_try='test -s conftest.$ac_objext'
20992 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20993 (eval $ac_try) 2>&5
20995 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20996 (exit $ac_status); }; }; then
20997 ac_cv_member_struct_reg_r_gs=yes
20999 echo "$as_me: failed program was:" >&5
21000 sed 's/^/| /' conftest.$ac_ext >&5
21002 cat >conftest.$ac_ext <<_ACEOF
21005 cat confdefs.h >>conftest.$ac_ext
21006 cat >>conftest.$ac_ext <<_ACEOF
21007 /* end confdefs.h. */
21008 #include <machine/reg.h>
21013 static struct reg ac_aggr;
21014 if (sizeof ac_aggr.r_gs)
21020 rm -f conftest.$ac_objext
21021 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
21022 (eval $ac_compile) 2>conftest.er1
21024 grep -v '^ *+' conftest.er1 >conftest.err
21026 cat conftest.err >&5
21027 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21028 (exit $ac_status); } &&
21029 { ac_try='test -z "$ac_c_werror_flag"
21030 || test ! -s conftest.err'
21031 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21032 (eval $ac_try) 2>&5
21034 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21035 (exit $ac_status); }; } &&
21036 { ac_try='test -s conftest.$ac_objext'
21037 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21038 (eval $ac_try) 2>&5
21040 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21041 (exit $ac_status); }; }; then
21042 ac_cv_member_struct_reg_r_gs=yes
21044 echo "$as_me: failed program was:" >&5
21045 sed 's/^/| /' conftest.$ac_ext >&5
21047 ac_cv_member_struct_reg_r_gs=no
21049 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
21051 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
21053 echo "$as_me:$LINENO: result: $ac_cv_member_struct_reg_r_gs" >&5
21054 echo "${ECHO_T}$ac_cv_member_struct_reg_r_gs" >&6
21055 if test $ac_cv_member_struct_reg_r_gs = yes; then
21057 cat >>confdefs.h <<_ACEOF
21058 #define HAVE_STRUCT_REG_R_GS 1
21065 # See if <sys/ptrace.h> provides the PTRACE_GETREGS request.
21066 echo "$as_me:$LINENO: checking for PTRACE_GETREGS" >&5
21067 echo $ECHO_N "checking for PTRACE_GETREGS... $ECHO_C" >&6
21068 if test "${gdb_cv_have_ptrace_getregs+set}" = set; then
21069 echo $ECHO_N "(cached) $ECHO_C" >&6
21071 cat >conftest.$ac_ext <<_ACEOF
21074 cat confdefs.h >>conftest.$ac_ext
21075 cat >>conftest.$ac_ext <<_ACEOF
21076 /* end confdefs.h. */
21077 #include <sys/ptrace.h>
21086 rm -f conftest.$ac_objext
21087 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
21088 (eval $ac_compile) 2>conftest.er1
21090 grep -v '^ *+' conftest.er1 >conftest.err
21092 cat conftest.err >&5
21093 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21094 (exit $ac_status); } &&
21095 { ac_try='test -z "$ac_c_werror_flag"
21096 || test ! -s conftest.err'
21097 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21098 (eval $ac_try) 2>&5
21100 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21101 (exit $ac_status); }; } &&
21102 { ac_try='test -s conftest.$ac_objext'
21103 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21104 (eval $ac_try) 2>&5
21106 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21107 (exit $ac_status); }; }; then
21108 gdb_cv_have_ptrace_getregs=yes
21110 echo "$as_me: failed program was:" >&5
21111 sed 's/^/| /' conftest.$ac_ext >&5
21113 gdb_cv_have_ptrace_getregs=no
21115 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
21118 echo "$as_me:$LINENO: result: $gdb_cv_have_ptrace_getregs" >&5
21119 echo "${ECHO_T}$gdb_cv_have_ptrace_getregs" >&6
21120 if test $gdb_cv_have_ptrace_getregs = yes; then
21122 cat >>confdefs.h <<\_ACEOF
21123 #define HAVE_PTRACE_GETREGS 1
21128 # See if <sys/ptrace.h> provides the PTRACE_GETFPXREGS request.
21129 echo "$as_me:$LINENO: checking for PTRACE_GETFPXREGS" >&5
21130 echo $ECHO_N "checking for PTRACE_GETFPXREGS... $ECHO_C" >&6
21131 if test "${gdb_cv_have_ptrace_getfpxregs+set}" = set; then
21132 echo $ECHO_N "(cached) $ECHO_C" >&6
21134 cat >conftest.$ac_ext <<_ACEOF
21137 cat confdefs.h >>conftest.$ac_ext
21138 cat >>conftest.$ac_ext <<_ACEOF
21139 /* end confdefs.h. */
21140 #include <sys/ptrace.h>
21149 rm -f conftest.$ac_objext
21150 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
21151 (eval $ac_compile) 2>conftest.er1
21153 grep -v '^ *+' conftest.er1 >conftest.err
21155 cat conftest.err >&5
21156 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21157 (exit $ac_status); } &&
21158 { ac_try='test -z "$ac_c_werror_flag"
21159 || test ! -s conftest.err'
21160 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21161 (eval $ac_try) 2>&5
21163 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21164 (exit $ac_status); }; } &&
21165 { ac_try='test -s conftest.$ac_objext'
21166 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21167 (eval $ac_try) 2>&5
21169 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21170 (exit $ac_status); }; }; then
21171 gdb_cv_have_ptrace_getfpxregs=yes
21173 echo "$as_me: failed program was:" >&5
21174 sed 's/^/| /' conftest.$ac_ext >&5
21176 gdb_cv_have_ptrace_getfpxregs=no
21178 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
21181 echo "$as_me:$LINENO: result: $gdb_cv_have_ptrace_getfpxregs" >&5
21182 echo "${ECHO_T}$gdb_cv_have_ptrace_getfpxregs" >&6
21183 if test $gdb_cv_have_ptrace_getfpxregs = yes; then
21185 cat >>confdefs.h <<\_ACEOF
21186 #define HAVE_PTRACE_GETFPXREGS 1
21191 # See if <sys/ptrace.h> provides the PT_GETDBREGS request.
21192 echo "$as_me:$LINENO: checking for PT_GETDBREGS" >&5
21193 echo $ECHO_N "checking for PT_GETDBREGS... $ECHO_C" >&6
21194 if test "${gdb_cv_have_pt_getdbregs+set}" = set; then
21195 echo $ECHO_N "(cached) $ECHO_C" >&6
21197 cat >conftest.$ac_ext <<_ACEOF
21200 cat confdefs.h >>conftest.$ac_ext
21201 cat >>conftest.$ac_ext <<_ACEOF
21202 /* end confdefs.h. */
21203 #include <sys/types.h>
21204 #include <sys/ptrace.h>
21213 rm -f conftest.$ac_objext
21214 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
21215 (eval $ac_compile) 2>conftest.er1
21217 grep -v '^ *+' conftest.er1 >conftest.err
21219 cat conftest.err >&5
21220 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21221 (exit $ac_status); } &&
21222 { ac_try='test -z "$ac_c_werror_flag"
21223 || test ! -s conftest.err'
21224 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21225 (eval $ac_try) 2>&5
21227 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21228 (exit $ac_status); }; } &&
21229 { ac_try='test -s conftest.$ac_objext'
21230 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21231 (eval $ac_try) 2>&5
21233 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21234 (exit $ac_status); }; }; then
21235 gdb_cv_have_pt_getdbregs=yes
21237 echo "$as_me: failed program was:" >&5
21238 sed 's/^/| /' conftest.$ac_ext >&5
21240 gdb_cv_have_pt_getdbregs=no
21242 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
21245 echo "$as_me:$LINENO: result: $gdb_cv_have_pt_getdbregs" >&5
21246 echo "${ECHO_T}$gdb_cv_have_pt_getdbregs" >&6
21247 if test $gdb_cv_have_pt_getdbregs = yes; then
21249 cat >>confdefs.h <<\_ACEOF
21250 #define HAVE_PT_GETDBREGS 1
21255 # See if <sys/ptrace.h> provides the PT_GETXMMREGS request.
21256 echo "$as_me:$LINENO: checking for PT_GETXMMREGS" >&5
21257 echo $ECHO_N "checking for PT_GETXMMREGS... $ECHO_C" >&6
21258 if test "${gdb_cv_have_pt_getxmmregs+set}" = set; then
21259 echo $ECHO_N "(cached) $ECHO_C" >&6
21261 cat >conftest.$ac_ext <<_ACEOF
21264 cat confdefs.h >>conftest.$ac_ext
21265 cat >>conftest.$ac_ext <<_ACEOF
21266 /* end confdefs.h. */
21267 #include <sys/types.h>
21268 #include <sys/ptrace.h>
21277 rm -f conftest.$ac_objext
21278 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
21279 (eval $ac_compile) 2>conftest.er1
21281 grep -v '^ *+' conftest.er1 >conftest.err
21283 cat conftest.err >&5
21284 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21285 (exit $ac_status); } &&
21286 { ac_try='test -z "$ac_c_werror_flag"
21287 || test ! -s conftest.err'
21288 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21289 (eval $ac_try) 2>&5
21291 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21292 (exit $ac_status); }; } &&
21293 { ac_try='test -s conftest.$ac_objext'
21294 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21295 (eval $ac_try) 2>&5
21297 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21298 (exit $ac_status); }; }; then
21299 gdb_cv_have_pt_getxmmregs=yes
21301 echo "$as_me: failed program was:" >&5
21302 sed 's/^/| /' conftest.$ac_ext >&5
21304 gdb_cv_have_pt_getxmmregs=no
21306 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
21309 echo "$as_me:$LINENO: result: $gdb_cv_have_pt_getxmmregs" >&5
21310 echo "${ECHO_T}$gdb_cv_have_pt_getxmmregs" >&6
21311 if test $gdb_cv_have_pt_getxmmregs = yes; then
21313 cat >>confdefs.h <<\_ACEOF
21314 #define HAVE_PT_GETXMMREGS 1
21319 # Detect which type of /proc is in use, such as for Unixware or Solaris.
21321 if test "${target}" = "${host}"; then
21323 *-*-unixware* | *-*-sysv4.2* | *-*-sysv5* | *-*-interix* )
21325 cat >>confdefs.h <<\_ACEOF
21326 #define NEW_PROC_API 1
21330 *-*-solaris2.[6789] | *-*-solaris2.1[0-9]*)
21332 cat >>confdefs.h <<\_ACEOF
21333 #define NEW_PROC_API 1
21338 # Work around <sys/proc.h> needing _KMEMUSER problem on IRIX 5.
21340 cat >>confdefs.h <<\_ACEOF
21341 #define _KMEMUSER 1
21348 if test "$ac_cv_header_sys_procfs_h" = yes; then
21349 echo "$as_me:$LINENO: checking for pstatus_t in sys/procfs.h" >&5
21350 echo $ECHO_N "checking for pstatus_t in sys/procfs.h... $ECHO_C" >&6
21351 if test "${bfd_cv_have_sys_procfs_type_pstatus_t+set}" = set; then
21352 echo $ECHO_N "(cached) $ECHO_C" >&6
21354 cat >conftest.$ac_ext <<_ACEOF
21357 cat confdefs.h >>conftest.$ac_ext
21358 cat >>conftest.$ac_ext <<_ACEOF
21359 /* end confdefs.h. */
21362 #include <sys/procfs.h>
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 bfd_cv_have_sys_procfs_type_pstatus_t=yes
21395 echo "$as_me: failed program was:" >&5
21396 sed 's/^/| /' conftest.$ac_ext >&5
21398 bfd_cv_have_sys_procfs_type_pstatus_t=no
21401 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
21404 if test $bfd_cv_have_sys_procfs_type_pstatus_t = yes; then
21406 cat >>confdefs.h <<\_ACEOF
21407 #define HAVE_PSTATUS_T 1
21411 echo "$as_me:$LINENO: result: $bfd_cv_have_sys_procfs_type_pstatus_t" >&5
21412 echo "${ECHO_T}$bfd_cv_have_sys_procfs_type_pstatus_t" >&6
21414 echo "$as_me:$LINENO: checking for prrun_t in sys/procfs.h" >&5
21415 echo $ECHO_N "checking for prrun_t in sys/procfs.h... $ECHO_C" >&6
21416 if test "${bfd_cv_have_sys_procfs_type_prrun_t+set}" = set; then
21417 echo $ECHO_N "(cached) $ECHO_C" >&6
21419 cat >conftest.$ac_ext <<_ACEOF
21422 cat confdefs.h >>conftest.$ac_ext
21423 cat >>conftest.$ac_ext <<_ACEOF
21424 /* end confdefs.h. */
21427 #include <sys/procfs.h>
21436 rm -f conftest.$ac_objext
21437 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
21438 (eval $ac_compile) 2>conftest.er1
21440 grep -v '^ *+' conftest.er1 >conftest.err
21442 cat conftest.err >&5
21443 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21444 (exit $ac_status); } &&
21445 { ac_try='test -z "$ac_c_werror_flag"
21446 || test ! -s conftest.err'
21447 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21448 (eval $ac_try) 2>&5
21450 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21451 (exit $ac_status); }; } &&
21452 { ac_try='test -s conftest.$ac_objext'
21453 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21454 (eval $ac_try) 2>&5
21456 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21457 (exit $ac_status); }; }; then
21458 bfd_cv_have_sys_procfs_type_prrun_t=yes
21460 echo "$as_me: failed program was:" >&5
21461 sed 's/^/| /' conftest.$ac_ext >&5
21463 bfd_cv_have_sys_procfs_type_prrun_t=no
21466 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
21469 if test $bfd_cv_have_sys_procfs_type_prrun_t = yes; then
21471 cat >>confdefs.h <<\_ACEOF
21472 #define HAVE_PRRUN_T 1
21476 echo "$as_me:$LINENO: result: $bfd_cv_have_sys_procfs_type_prrun_t" >&5
21477 echo "${ECHO_T}$bfd_cv_have_sys_procfs_type_prrun_t" >&6
21479 echo "$as_me:$LINENO: checking for gregset_t in sys/procfs.h" >&5
21480 echo $ECHO_N "checking for gregset_t in sys/procfs.h... $ECHO_C" >&6
21481 if test "${bfd_cv_have_sys_procfs_type_gregset_t+set}" = set; then
21482 echo $ECHO_N "(cached) $ECHO_C" >&6
21484 cat >conftest.$ac_ext <<_ACEOF
21487 cat confdefs.h >>conftest.$ac_ext
21488 cat >>conftest.$ac_ext <<_ACEOF
21489 /* end confdefs.h. */
21492 #include <sys/procfs.h>
21501 rm -f conftest.$ac_objext
21502 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
21503 (eval $ac_compile) 2>conftest.er1
21505 grep -v '^ *+' conftest.er1 >conftest.err
21507 cat conftest.err >&5
21508 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21509 (exit $ac_status); } &&
21510 { ac_try='test -z "$ac_c_werror_flag"
21511 || test ! -s conftest.err'
21512 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21513 (eval $ac_try) 2>&5
21515 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21516 (exit $ac_status); }; } &&
21517 { ac_try='test -s conftest.$ac_objext'
21518 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21519 (eval $ac_try) 2>&5
21521 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21522 (exit $ac_status); }; }; then
21523 bfd_cv_have_sys_procfs_type_gregset_t=yes
21525 echo "$as_me: failed program was:" >&5
21526 sed 's/^/| /' conftest.$ac_ext >&5
21528 bfd_cv_have_sys_procfs_type_gregset_t=no
21531 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
21534 if test $bfd_cv_have_sys_procfs_type_gregset_t = yes; then
21536 cat >>confdefs.h <<\_ACEOF
21537 #define HAVE_GREGSET_T 1
21541 echo "$as_me:$LINENO: result: $bfd_cv_have_sys_procfs_type_gregset_t" >&5
21542 echo "${ECHO_T}$bfd_cv_have_sys_procfs_type_gregset_t" >&6
21544 echo "$as_me:$LINENO: checking for fpregset_t in sys/procfs.h" >&5
21545 echo $ECHO_N "checking for fpregset_t in sys/procfs.h... $ECHO_C" >&6
21546 if test "${bfd_cv_have_sys_procfs_type_fpregset_t+set}" = set; then
21547 echo $ECHO_N "(cached) $ECHO_C" >&6
21549 cat >conftest.$ac_ext <<_ACEOF
21552 cat confdefs.h >>conftest.$ac_ext
21553 cat >>conftest.$ac_ext <<_ACEOF
21554 /* end confdefs.h. */
21557 #include <sys/procfs.h>
21566 rm -f conftest.$ac_objext
21567 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
21568 (eval $ac_compile) 2>conftest.er1
21570 grep -v '^ *+' conftest.er1 >conftest.err
21572 cat conftest.err >&5
21573 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21574 (exit $ac_status); } &&
21575 { ac_try='test -z "$ac_c_werror_flag"
21576 || test ! -s conftest.err'
21577 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21578 (eval $ac_try) 2>&5
21580 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21581 (exit $ac_status); }; } &&
21582 { ac_try='test -s conftest.$ac_objext'
21583 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21584 (eval $ac_try) 2>&5
21586 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21587 (exit $ac_status); }; }; then
21588 bfd_cv_have_sys_procfs_type_fpregset_t=yes
21590 echo "$as_me: failed program was:" >&5
21591 sed 's/^/| /' conftest.$ac_ext >&5
21593 bfd_cv_have_sys_procfs_type_fpregset_t=no
21596 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
21599 if test $bfd_cv_have_sys_procfs_type_fpregset_t = yes; then
21601 cat >>confdefs.h <<\_ACEOF
21602 #define HAVE_FPREGSET_T 1
21606 echo "$as_me:$LINENO: result: $bfd_cv_have_sys_procfs_type_fpregset_t" >&5
21607 echo "${ECHO_T}$bfd_cv_have_sys_procfs_type_fpregset_t" >&6
21609 echo "$as_me:$LINENO: checking for prgregset_t in sys/procfs.h" >&5
21610 echo $ECHO_N "checking for prgregset_t in sys/procfs.h... $ECHO_C" >&6
21611 if test "${bfd_cv_have_sys_procfs_type_prgregset_t+set}" = set; then
21612 echo $ECHO_N "(cached) $ECHO_C" >&6
21614 cat >conftest.$ac_ext <<_ACEOF
21617 cat confdefs.h >>conftest.$ac_ext
21618 cat >>conftest.$ac_ext <<_ACEOF
21619 /* end confdefs.h. */
21622 #include <sys/procfs.h>
21631 rm -f conftest.$ac_objext
21632 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
21633 (eval $ac_compile) 2>conftest.er1
21635 grep -v '^ *+' conftest.er1 >conftest.err
21637 cat conftest.err >&5
21638 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21639 (exit $ac_status); } &&
21640 { ac_try='test -z "$ac_c_werror_flag"
21641 || test ! -s conftest.err'
21642 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21643 (eval $ac_try) 2>&5
21645 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21646 (exit $ac_status); }; } &&
21647 { ac_try='test -s conftest.$ac_objext'
21648 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21649 (eval $ac_try) 2>&5
21651 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21652 (exit $ac_status); }; }; then
21653 bfd_cv_have_sys_procfs_type_prgregset_t=yes
21655 echo "$as_me: failed program was:" >&5
21656 sed 's/^/| /' conftest.$ac_ext >&5
21658 bfd_cv_have_sys_procfs_type_prgregset_t=no
21661 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
21664 if test $bfd_cv_have_sys_procfs_type_prgregset_t = yes; then
21666 cat >>confdefs.h <<\_ACEOF
21667 #define HAVE_PRGREGSET_T 1
21671 echo "$as_me:$LINENO: result: $bfd_cv_have_sys_procfs_type_prgregset_t" >&5
21672 echo "${ECHO_T}$bfd_cv_have_sys_procfs_type_prgregset_t" >&6
21674 echo "$as_me:$LINENO: checking for prfpregset_t in sys/procfs.h" >&5
21675 echo $ECHO_N "checking for prfpregset_t in sys/procfs.h... $ECHO_C" >&6
21676 if test "${bfd_cv_have_sys_procfs_type_prfpregset_t+set}" = set; then
21677 echo $ECHO_N "(cached) $ECHO_C" >&6
21679 cat >conftest.$ac_ext <<_ACEOF
21682 cat confdefs.h >>conftest.$ac_ext
21683 cat >>conftest.$ac_ext <<_ACEOF
21684 /* end confdefs.h. */
21687 #include <sys/procfs.h>
21696 rm -f conftest.$ac_objext
21697 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
21698 (eval $ac_compile) 2>conftest.er1
21700 grep -v '^ *+' conftest.er1 >conftest.err
21702 cat conftest.err >&5
21703 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21704 (exit $ac_status); } &&
21705 { ac_try='test -z "$ac_c_werror_flag"
21706 || test ! -s conftest.err'
21707 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21708 (eval $ac_try) 2>&5
21710 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21711 (exit $ac_status); }; } &&
21712 { ac_try='test -s conftest.$ac_objext'
21713 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21714 (eval $ac_try) 2>&5
21716 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21717 (exit $ac_status); }; }; then
21718 bfd_cv_have_sys_procfs_type_prfpregset_t=yes
21720 echo "$as_me: failed program was:" >&5
21721 sed 's/^/| /' conftest.$ac_ext >&5
21723 bfd_cv_have_sys_procfs_type_prfpregset_t=no
21726 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
21729 if test $bfd_cv_have_sys_procfs_type_prfpregset_t = yes; then
21731 cat >>confdefs.h <<\_ACEOF
21732 #define HAVE_PRFPREGSET_T 1
21736 echo "$as_me:$LINENO: result: $bfd_cv_have_sys_procfs_type_prfpregset_t" >&5
21737 echo "${ECHO_T}$bfd_cv_have_sys_procfs_type_prfpregset_t" >&6
21739 echo "$as_me:$LINENO: checking for prgregset32_t in sys/procfs.h" >&5
21740 echo $ECHO_N "checking for prgregset32_t in sys/procfs.h... $ECHO_C" >&6
21741 if test "${bfd_cv_have_sys_procfs_type_prgregset32_t+set}" = set; then
21742 echo $ECHO_N "(cached) $ECHO_C" >&6
21744 cat >conftest.$ac_ext <<_ACEOF
21747 cat confdefs.h >>conftest.$ac_ext
21748 cat >>conftest.$ac_ext <<_ACEOF
21749 /* end confdefs.h. */
21752 #include <sys/procfs.h>
21761 rm -f conftest.$ac_objext
21762 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
21763 (eval $ac_compile) 2>conftest.er1
21765 grep -v '^ *+' conftest.er1 >conftest.err
21767 cat conftest.err >&5
21768 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21769 (exit $ac_status); } &&
21770 { ac_try='test -z "$ac_c_werror_flag"
21771 || test ! -s conftest.err'
21772 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21773 (eval $ac_try) 2>&5
21775 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21776 (exit $ac_status); }; } &&
21777 { ac_try='test -s conftest.$ac_objext'
21778 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21779 (eval $ac_try) 2>&5
21781 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21782 (exit $ac_status); }; }; then
21783 bfd_cv_have_sys_procfs_type_prgregset32_t=yes
21785 echo "$as_me: failed program was:" >&5
21786 sed 's/^/| /' conftest.$ac_ext >&5
21788 bfd_cv_have_sys_procfs_type_prgregset32_t=no
21791 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
21794 if test $bfd_cv_have_sys_procfs_type_prgregset32_t = yes; then
21796 cat >>confdefs.h <<\_ACEOF
21797 #define HAVE_PRGREGSET32_T 1
21801 echo "$as_me:$LINENO: result: $bfd_cv_have_sys_procfs_type_prgregset32_t" >&5
21802 echo "${ECHO_T}$bfd_cv_have_sys_procfs_type_prgregset32_t" >&6
21804 echo "$as_me:$LINENO: checking for prfpregset32_t in sys/procfs.h" >&5
21805 echo $ECHO_N "checking for prfpregset32_t in sys/procfs.h... $ECHO_C" >&6
21806 if test "${bfd_cv_have_sys_procfs_type_prfpregset32_t+set}" = set; then
21807 echo $ECHO_N "(cached) $ECHO_C" >&6
21809 cat >conftest.$ac_ext <<_ACEOF
21812 cat confdefs.h >>conftest.$ac_ext
21813 cat >>conftest.$ac_ext <<_ACEOF
21814 /* end confdefs.h. */
21817 #include <sys/procfs.h>
21821 prfpregset32_t avar
21826 rm -f conftest.$ac_objext
21827 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
21828 (eval $ac_compile) 2>conftest.er1
21830 grep -v '^ *+' conftest.er1 >conftest.err
21832 cat conftest.err >&5
21833 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21834 (exit $ac_status); } &&
21835 { ac_try='test -z "$ac_c_werror_flag"
21836 || test ! -s conftest.err'
21837 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21838 (eval $ac_try) 2>&5
21840 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21841 (exit $ac_status); }; } &&
21842 { ac_try='test -s conftest.$ac_objext'
21843 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21844 (eval $ac_try) 2>&5
21846 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21847 (exit $ac_status); }; }; then
21848 bfd_cv_have_sys_procfs_type_prfpregset32_t=yes
21850 echo "$as_me: failed program was:" >&5
21851 sed 's/^/| /' conftest.$ac_ext >&5
21853 bfd_cv_have_sys_procfs_type_prfpregset32_t=no
21856 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
21859 if test $bfd_cv_have_sys_procfs_type_prfpregset32_t = yes; then
21861 cat >>confdefs.h <<\_ACEOF
21862 #define HAVE_PRFPREGSET32_T 1
21866 echo "$as_me:$LINENO: result: $bfd_cv_have_sys_procfs_type_prfpregset32_t" >&5
21867 echo "${ECHO_T}$bfd_cv_have_sys_procfs_type_prfpregset32_t" >&6
21869 echo "$as_me:$LINENO: checking for lwpid_t in sys/procfs.h" >&5
21870 echo $ECHO_N "checking for lwpid_t in sys/procfs.h... $ECHO_C" >&6
21871 if test "${bfd_cv_have_sys_procfs_type_lwpid_t+set}" = set; then
21872 echo $ECHO_N "(cached) $ECHO_C" >&6
21874 cat >conftest.$ac_ext <<_ACEOF
21877 cat confdefs.h >>conftest.$ac_ext
21878 cat >>conftest.$ac_ext <<_ACEOF
21879 /* end confdefs.h. */
21882 #include <sys/procfs.h>
21891 rm -f conftest.$ac_objext
21892 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
21893 (eval $ac_compile) 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_objext'
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 bfd_cv_have_sys_procfs_type_lwpid_t=yes
21915 echo "$as_me: failed program was:" >&5
21916 sed 's/^/| /' conftest.$ac_ext >&5
21918 bfd_cv_have_sys_procfs_type_lwpid_t=no
21921 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
21924 if test $bfd_cv_have_sys_procfs_type_lwpid_t = yes; then
21926 cat >>confdefs.h <<\_ACEOF
21927 #define HAVE_LWPID_T 1
21931 echo "$as_me:$LINENO: result: $bfd_cv_have_sys_procfs_type_lwpid_t" >&5
21932 echo "${ECHO_T}$bfd_cv_have_sys_procfs_type_lwpid_t" >&6
21934 echo "$as_me:$LINENO: checking for psaddr_t in sys/procfs.h" >&5
21935 echo $ECHO_N "checking for psaddr_t in sys/procfs.h... $ECHO_C" >&6
21936 if test "${bfd_cv_have_sys_procfs_type_psaddr_t+set}" = set; then
21937 echo $ECHO_N "(cached) $ECHO_C" >&6
21939 cat >conftest.$ac_ext <<_ACEOF
21942 cat confdefs.h >>conftest.$ac_ext
21943 cat >>conftest.$ac_ext <<_ACEOF
21944 /* end confdefs.h. */
21947 #include <sys/procfs.h>
21956 rm -f conftest.$ac_objext
21957 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
21958 (eval $ac_compile) 2>conftest.er1
21960 grep -v '^ *+' conftest.er1 >conftest.err
21962 cat conftest.err >&5
21963 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21964 (exit $ac_status); } &&
21965 { ac_try='test -z "$ac_c_werror_flag"
21966 || test ! -s conftest.err'
21967 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21968 (eval $ac_try) 2>&5
21970 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21971 (exit $ac_status); }; } &&
21972 { ac_try='test -s conftest.$ac_objext'
21973 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21974 (eval $ac_try) 2>&5
21976 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21977 (exit $ac_status); }; }; then
21978 bfd_cv_have_sys_procfs_type_psaddr_t=yes
21980 echo "$as_me: failed program was:" >&5
21981 sed 's/^/| /' conftest.$ac_ext >&5
21983 bfd_cv_have_sys_procfs_type_psaddr_t=no
21986 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
21989 if test $bfd_cv_have_sys_procfs_type_psaddr_t = yes; then
21991 cat >>confdefs.h <<\_ACEOF
21992 #define HAVE_PSADDR_T 1
21996 echo "$as_me:$LINENO: result: $bfd_cv_have_sys_procfs_type_psaddr_t" >&5
21997 echo "${ECHO_T}$bfd_cv_have_sys_procfs_type_psaddr_t" >&6
21999 echo "$as_me:$LINENO: checking for prsysent_t in sys/procfs.h" >&5
22000 echo $ECHO_N "checking for prsysent_t in sys/procfs.h... $ECHO_C" >&6
22001 if test "${bfd_cv_have_sys_procfs_type_prsysent_t+set}" = set; then
22002 echo $ECHO_N "(cached) $ECHO_C" >&6
22004 cat >conftest.$ac_ext <<_ACEOF
22007 cat confdefs.h >>conftest.$ac_ext
22008 cat >>conftest.$ac_ext <<_ACEOF
22009 /* end confdefs.h. */
22012 #include <sys/procfs.h>
22021 rm -f conftest.$ac_objext
22022 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
22023 (eval $ac_compile) 2>conftest.er1
22025 grep -v '^ *+' conftest.er1 >conftest.err
22027 cat conftest.err >&5
22028 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22029 (exit $ac_status); } &&
22030 { ac_try='test -z "$ac_c_werror_flag"
22031 || test ! -s conftest.err'
22032 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
22033 (eval $ac_try) 2>&5
22035 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22036 (exit $ac_status); }; } &&
22037 { ac_try='test -s conftest.$ac_objext'
22038 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
22039 (eval $ac_try) 2>&5
22041 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22042 (exit $ac_status); }; }; then
22043 bfd_cv_have_sys_procfs_type_prsysent_t=yes
22045 echo "$as_me: failed program was:" >&5
22046 sed 's/^/| /' conftest.$ac_ext >&5
22048 bfd_cv_have_sys_procfs_type_prsysent_t=no
22051 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
22054 if test $bfd_cv_have_sys_procfs_type_prsysent_t = yes; then
22056 cat >>confdefs.h <<\_ACEOF
22057 #define HAVE_PRSYSENT_T 1
22061 echo "$as_me:$LINENO: result: $bfd_cv_have_sys_procfs_type_prsysent_t" >&5
22062 echo "${ECHO_T}$bfd_cv_have_sys_procfs_type_prsysent_t" >&6
22064 echo "$as_me:$LINENO: checking for pr_sigset_t in sys/procfs.h" >&5
22065 echo $ECHO_N "checking for pr_sigset_t in sys/procfs.h... $ECHO_C" >&6
22066 if test "${bfd_cv_have_sys_procfs_type_pr_sigset_t+set}" = set; then
22067 echo $ECHO_N "(cached) $ECHO_C" >&6
22069 cat >conftest.$ac_ext <<_ACEOF
22072 cat confdefs.h >>conftest.$ac_ext
22073 cat >>conftest.$ac_ext <<_ACEOF
22074 /* end confdefs.h. */
22077 #include <sys/procfs.h>
22086 rm -f conftest.$ac_objext
22087 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
22088 (eval $ac_compile) 2>conftest.er1
22090 grep -v '^ *+' conftest.er1 >conftest.err
22092 cat conftest.err >&5
22093 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22094 (exit $ac_status); } &&
22095 { ac_try='test -z "$ac_c_werror_flag"
22096 || test ! -s conftest.err'
22097 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
22098 (eval $ac_try) 2>&5
22100 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22101 (exit $ac_status); }; } &&
22102 { ac_try='test -s conftest.$ac_objext'
22103 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
22104 (eval $ac_try) 2>&5
22106 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22107 (exit $ac_status); }; }; then
22108 bfd_cv_have_sys_procfs_type_pr_sigset_t=yes
22110 echo "$as_me: failed program was:" >&5
22111 sed 's/^/| /' conftest.$ac_ext >&5
22113 bfd_cv_have_sys_procfs_type_pr_sigset_t=no
22116 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
22119 if test $bfd_cv_have_sys_procfs_type_pr_sigset_t = yes; then
22121 cat >>confdefs.h <<\_ACEOF
22122 #define HAVE_PR_SIGSET_T 1
22126 echo "$as_me:$LINENO: result: $bfd_cv_have_sys_procfs_type_pr_sigset_t" >&5
22127 echo "${ECHO_T}$bfd_cv_have_sys_procfs_type_pr_sigset_t" >&6
22129 echo "$as_me:$LINENO: checking for pr_sigaction64_t in sys/procfs.h" >&5
22130 echo $ECHO_N "checking for pr_sigaction64_t in sys/procfs.h... $ECHO_C" >&6
22131 if test "${bfd_cv_have_sys_procfs_type_pr_sigaction64_t+set}" = set; then
22132 echo $ECHO_N "(cached) $ECHO_C" >&6
22134 cat >conftest.$ac_ext <<_ACEOF
22137 cat confdefs.h >>conftest.$ac_ext
22138 cat >>conftest.$ac_ext <<_ACEOF
22139 /* end confdefs.h. */
22142 #include <sys/procfs.h>
22146 pr_sigaction64_t avar
22151 rm -f conftest.$ac_objext
22152 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
22153 (eval $ac_compile) 2>conftest.er1
22155 grep -v '^ *+' conftest.er1 >conftest.err
22157 cat conftest.err >&5
22158 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22159 (exit $ac_status); } &&
22160 { ac_try='test -z "$ac_c_werror_flag"
22161 || test ! -s conftest.err'
22162 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
22163 (eval $ac_try) 2>&5
22165 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22166 (exit $ac_status); }; } &&
22167 { ac_try='test -s conftest.$ac_objext'
22168 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
22169 (eval $ac_try) 2>&5
22171 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22172 (exit $ac_status); }; }; then
22173 bfd_cv_have_sys_procfs_type_pr_sigaction64_t=yes
22175 echo "$as_me: failed program was:" >&5
22176 sed 's/^/| /' conftest.$ac_ext >&5
22178 bfd_cv_have_sys_procfs_type_pr_sigaction64_t=no
22181 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
22184 if test $bfd_cv_have_sys_procfs_type_pr_sigaction64_t = yes; then
22186 cat >>confdefs.h <<\_ACEOF
22187 #define HAVE_PR_SIGACTION64_T 1
22191 echo "$as_me:$LINENO: result: $bfd_cv_have_sys_procfs_type_pr_sigaction64_t" >&5
22192 echo "${ECHO_T}$bfd_cv_have_sys_procfs_type_pr_sigaction64_t" >&6
22194 echo "$as_me:$LINENO: checking for pr_siginfo64_t in sys/procfs.h" >&5
22195 echo $ECHO_N "checking for pr_siginfo64_t in sys/procfs.h... $ECHO_C" >&6
22196 if test "${bfd_cv_have_sys_procfs_type_pr_siginfo64_t+set}" = set; then
22197 echo $ECHO_N "(cached) $ECHO_C" >&6
22199 cat >conftest.$ac_ext <<_ACEOF
22202 cat confdefs.h >>conftest.$ac_ext
22203 cat >>conftest.$ac_ext <<_ACEOF
22204 /* end confdefs.h. */
22207 #include <sys/procfs.h>
22211 pr_siginfo64_t avar
22216 rm -f conftest.$ac_objext
22217 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
22218 (eval $ac_compile) 2>conftest.er1
22220 grep -v '^ *+' conftest.er1 >conftest.err
22222 cat conftest.err >&5
22223 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22224 (exit $ac_status); } &&
22225 { ac_try='test -z "$ac_c_werror_flag"
22226 || test ! -s conftest.err'
22227 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
22228 (eval $ac_try) 2>&5
22230 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22231 (exit $ac_status); }; } &&
22232 { ac_try='test -s conftest.$ac_objext'
22233 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
22234 (eval $ac_try) 2>&5
22236 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22237 (exit $ac_status); }; }; then
22238 bfd_cv_have_sys_procfs_type_pr_siginfo64_t=yes
22240 echo "$as_me: failed program was:" >&5
22241 sed 's/^/| /' conftest.$ac_ext >&5
22243 bfd_cv_have_sys_procfs_type_pr_siginfo64_t=no
22246 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
22249 if test $bfd_cv_have_sys_procfs_type_pr_siginfo64_t = yes; then
22251 cat >>confdefs.h <<\_ACEOF
22252 #define HAVE_PR_SIGINFO64_T 1
22256 echo "$as_me:$LINENO: result: $bfd_cv_have_sys_procfs_type_pr_siginfo64_t" >&5
22257 echo "${ECHO_T}$bfd_cv_have_sys_procfs_type_pr_siginfo64_t" >&6
22263 if test $bfd_cv_have_sys_procfs_type_prfpregset_t = yes; then
22264 echo "$as_me:$LINENO: checking whether prfpregset_t type is broken" >&5
22265 echo $ECHO_N "checking whether prfpregset_t type is broken... $ECHO_C" >&6
22266 if test "${gdb_cv_prfpregset_t_broken+set}" = set; then
22267 echo $ECHO_N "(cached) $ECHO_C" >&6
22269 if test "$cross_compiling" = yes; then
22270 gdb_cv_prfpregset_t_broken=yes
22272 cat >conftest.$ac_ext <<_ACEOF
22275 cat confdefs.h >>conftest.$ac_ext
22276 cat >>conftest.$ac_ext <<_ACEOF
22277 /* end confdefs.h. */
22278 #include <sys/procfs.h>
22281 if (sizeof (prfpregset_t) == sizeof (void *))
22286 rm -f conftest$ac_exeext
22287 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
22288 (eval $ac_link) 2>&5
22290 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22291 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
22292 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
22293 (eval $ac_try) 2>&5
22295 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22296 (exit $ac_status); }; }; then
22297 gdb_cv_prfpregset_t_broken=no
22299 echo "$as_me: program exited with status $ac_status" >&5
22300 echo "$as_me: failed program was:" >&5
22301 sed 's/^/| /' conftest.$ac_ext >&5
22303 ( exit $ac_status )
22304 gdb_cv_prfpregset_t_broken=yes
22306 rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
22310 echo "$as_me:$LINENO: result: $gdb_cv_prfpregset_t_broken" >&5
22311 echo "${ECHO_T}$gdb_cv_prfpregset_t_broken" >&6
22312 if test $gdb_cv_prfpregset_t_broken = yes; then
22314 cat >>confdefs.h <<\_ACEOF
22315 #define PRFPREGSET_T_BROKEN 1
22322 echo "$as_me:$LINENO: checking for PIOCSET ioctl entry in sys/procfs.h" >&5
22323 echo $ECHO_N "checking for PIOCSET ioctl entry in sys/procfs.h... $ECHO_C" >&6
22324 if test "${gdb_cv_have_procfs_piocset+set}" = set; then
22325 echo $ECHO_N "(cached) $ECHO_C" >&6
22327 cat >conftest.$ac_ext <<_ACEOF
22330 cat confdefs.h >>conftest.$ac_ext
22331 cat >>conftest.$ac_ext <<_ACEOF
22332 /* end confdefs.h. */
22333 #include <unistd.h>
22334 #include <sys/types.h>
22335 #include <sys/procfs.h>
22342 dummy = ioctl(0, PIOCSET, &dummy);
22348 rm -f conftest.$ac_objext
22349 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
22350 (eval $ac_compile) 2>conftest.er1
22352 grep -v '^ *+' conftest.er1 >conftest.err
22354 cat conftest.err >&5
22355 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22356 (exit $ac_status); } &&
22357 { ac_try='test -z "$ac_c_werror_flag"
22358 || test ! -s conftest.err'
22359 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
22360 (eval $ac_try) 2>&5
22362 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22363 (exit $ac_status); }; } &&
22364 { ac_try='test -s conftest.$ac_objext'
22365 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
22366 (eval $ac_try) 2>&5
22368 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22369 (exit $ac_status); }; }; then
22370 gdb_cv_have_procfs_piocset=yes
22372 echo "$as_me: failed program was:" >&5
22373 sed 's/^/| /' conftest.$ac_ext >&5
22375 gdb_cv_have_procfs_piocset=no
22377 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
22380 echo "$as_me:$LINENO: result: $gdb_cv_have_procfs_piocset" >&5
22381 echo "${ECHO_T}$gdb_cv_have_procfs_piocset" >&6
22382 if test $gdb_cv_have_procfs_piocset = yes; then
22384 cat >>confdefs.h <<\_ACEOF
22385 #define HAVE_PROCFS_PIOCSET 1
22391 if test ${host} = ${target} ; then
22393 echo "$as_me:$LINENO: checking for member l_addr in struct link_map" >&5
22394 echo $ECHO_N "checking for member l_addr in struct link_map... $ECHO_C" >&6
22395 if test "${gdb_cv_have_struct_link_map_with_l_members+set}" = set; then
22396 echo $ECHO_N "(cached) $ECHO_C" >&6
22398 cat >conftest.$ac_ext <<_ACEOF
22401 cat confdefs.h >>conftest.$ac_ext
22402 cat >>conftest.$ac_ext <<_ACEOF
22403 /* end confdefs.h. */
22408 struct link_map lm; (void) lm.l_addr;
22413 rm -f conftest.$ac_objext
22414 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
22415 (eval $ac_compile) 2>conftest.er1
22417 grep -v '^ *+' conftest.er1 >conftest.err
22419 cat conftest.err >&5
22420 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22421 (exit $ac_status); } &&
22422 { ac_try='test -z "$ac_c_werror_flag"
22423 || test ! -s conftest.err'
22424 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
22425 (eval $ac_try) 2>&5
22427 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22428 (exit $ac_status); }; } &&
22429 { ac_try='test -s conftest.$ac_objext'
22430 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
22431 (eval $ac_try) 2>&5
22433 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22434 (exit $ac_status); }; }; then
22435 gdb_cv_have_struct_link_map_with_l_members=yes
22437 echo "$as_me: failed program was:" >&5
22438 sed 's/^/| /' conftest.$ac_ext >&5
22440 gdb_cv_have_struct_link_map_with_l_members=no
22442 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
22445 echo "$as_me:$LINENO: result: $gdb_cv_have_struct_link_map_with_l_members" >&5
22446 echo "${ECHO_T}$gdb_cv_have_struct_link_map_with_l_members" >&6
22447 if test $gdb_cv_have_struct_link_map_with_l_members = yes; then
22449 cat >>confdefs.h <<\_ACEOF
22450 #define HAVE_STRUCT_LINK_MAP_WITH_L_MEMBERS 1
22456 echo "$as_me:$LINENO: checking for member lm_addr in struct link_map" >&5
22457 echo $ECHO_N "checking for member lm_addr in struct link_map... $ECHO_C" >&6
22458 if test "${gdb_cv_have_struct_link_map_with_lm_members+set}" = set; then
22459 echo $ECHO_N "(cached) $ECHO_C" >&6
22461 cat >conftest.$ac_ext <<_ACEOF
22464 cat confdefs.h >>conftest.$ac_ext
22465 cat >>conftest.$ac_ext <<_ACEOF
22466 /* end confdefs.h. */
22467 #include <sys/types.h>
22472 struct link_map lm; (void) lm.lm_addr;
22477 rm -f conftest.$ac_objext
22478 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
22479 (eval $ac_compile) 2>conftest.er1
22481 grep -v '^ *+' conftest.er1 >conftest.err
22483 cat conftest.err >&5
22484 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22485 (exit $ac_status); } &&
22486 { ac_try='test -z "$ac_c_werror_flag"
22487 || test ! -s conftest.err'
22488 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
22489 (eval $ac_try) 2>&5
22491 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22492 (exit $ac_status); }; } &&
22493 { ac_try='test -s conftest.$ac_objext'
22494 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
22495 (eval $ac_try) 2>&5
22497 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22498 (exit $ac_status); }; }; then
22499 gdb_cv_have_struct_link_map_with_lm_members=yes
22501 echo "$as_me: failed program was:" >&5
22502 sed 's/^/| /' conftest.$ac_ext >&5
22504 gdb_cv_have_struct_link_map_with_lm_members=no
22506 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
22509 echo "$as_me:$LINENO: result: $gdb_cv_have_struct_link_map_with_lm_members" >&5
22510 echo "${ECHO_T}$gdb_cv_have_struct_link_map_with_lm_members" >&6
22511 if test $gdb_cv_have_struct_link_map_with_lm_members = yes; then
22513 cat >>confdefs.h <<\_ACEOF
22514 #define HAVE_STRUCT_LINK_MAP_WITH_LM_MEMBERS 1
22520 echo "$as_me:$LINENO: checking for member som_addr in struct so_map" >&5
22521 echo $ECHO_N "checking for member som_addr in struct so_map... $ECHO_C" >&6
22522 if test "${gdb_cv_have_struct_so_map_with_som_members+set}" = set; then
22523 echo $ECHO_N "(cached) $ECHO_C" >&6
22525 cat >conftest.$ac_ext <<_ACEOF
22528 cat confdefs.h >>conftest.$ac_ext
22529 cat >>conftest.$ac_ext <<_ACEOF
22530 /* end confdefs.h. */
22531 #include <sys/types.h>
22532 #ifdef HAVE_NLIST_H
22539 struct so_map lm; (void) lm.som_addr;
22544 rm -f conftest.$ac_objext
22545 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
22546 (eval $ac_compile) 2>conftest.er1
22548 grep -v '^ *+' conftest.er1 >conftest.err
22550 cat conftest.err >&5
22551 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22552 (exit $ac_status); } &&
22553 { ac_try='test -z "$ac_c_werror_flag"
22554 || test ! -s conftest.err'
22555 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
22556 (eval $ac_try) 2>&5
22558 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22559 (exit $ac_status); }; } &&
22560 { ac_try='test -s conftest.$ac_objext'
22561 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
22562 (eval $ac_try) 2>&5
22564 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22565 (exit $ac_status); }; }; then
22566 gdb_cv_have_struct_so_map_with_som_members=yes
22568 echo "$as_me: failed program was:" >&5
22569 sed 's/^/| /' conftest.$ac_ext >&5
22571 gdb_cv_have_struct_so_map_with_som_members=no
22573 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
22576 echo "$as_me:$LINENO: result: $gdb_cv_have_struct_so_map_with_som_members" >&5
22577 echo "${ECHO_T}$gdb_cv_have_struct_so_map_with_som_members" >&6
22578 if test $gdb_cv_have_struct_so_map_with_som_members = yes; then
22580 cat >>confdefs.h <<\_ACEOF
22581 #define HAVE_STRUCT_SO_MAP_WITH_SOM_MEMBERS 1
22587 echo "$as_me:$LINENO: checking for struct link_map32 in sys/link.h" >&5
22588 echo $ECHO_N "checking for struct link_map32 in sys/link.h... $ECHO_C" >&6
22589 if test "${gdb_cv_have_struct_link_map32+set}" = set; then
22590 echo $ECHO_N "(cached) $ECHO_C" >&6
22592 cat >conftest.$ac_ext <<_ACEOF
22595 cat confdefs.h >>conftest.$ac_ext
22596 cat >>conftest.$ac_ext <<_ACEOF
22597 /* end confdefs.h. */
22599 #include <sys/link.h>
22603 struct link_map32 l;
22608 rm -f conftest.$ac_objext
22609 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
22610 (eval $ac_compile) 2>conftest.er1
22612 grep -v '^ *+' conftest.er1 >conftest.err
22614 cat conftest.err >&5
22615 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22616 (exit $ac_status); } &&
22617 { ac_try='test -z "$ac_c_werror_flag"
22618 || test ! -s conftest.err'
22619 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
22620 (eval $ac_try) 2>&5
22622 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22623 (exit $ac_status); }; } &&
22624 { ac_try='test -s conftest.$ac_objext'
22625 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
22626 (eval $ac_try) 2>&5
22628 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22629 (exit $ac_status); }; }; then
22630 gdb_cv_have_struct_link_map32=yes
22632 echo "$as_me: failed program was:" >&5
22633 sed 's/^/| /' conftest.$ac_ext >&5
22635 gdb_cv_have_struct_link_map32=no
22637 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
22640 echo "$as_me:$LINENO: result: $gdb_cv_have_struct_link_map32" >&5
22641 echo "${ECHO_T}$gdb_cv_have_struct_link_map32" >&6
22642 if test $gdb_cv_have_struct_link_map32 = yes; then
22644 cat >>confdefs.h <<\_ACEOF
22645 #define HAVE_STRUCT_LINK_MAP32 1
22649 cat >>confdefs.h <<\_ACEOF
22650 #define _SYSCALL32 1
22656 # Check if the compiler supports the `long long' type.
22658 echo "$as_me:$LINENO: checking for long long support in compiler" >&5
22659 echo $ECHO_N "checking for long long support in compiler... $ECHO_C" >&6
22660 if test "${gdb_cv_c_long_long+set}" = set; then
22661 echo $ECHO_N "(cached) $ECHO_C" >&6
22663 cat >conftest.$ac_ext <<_ACEOF
22666 cat confdefs.h >>conftest.$ac_ext
22667 cat >>conftest.$ac_ext <<_ACEOF
22668 /* end confdefs.h. */
22669 extern long long foo;
22673 switch (foo & 2) { case 0: return 1; }
22678 rm -f conftest.$ac_objext
22679 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
22680 (eval $ac_compile) 2>conftest.er1
22682 grep -v '^ *+' conftest.er1 >conftest.err
22684 cat conftest.err >&5
22685 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22686 (exit $ac_status); } &&
22687 { ac_try='test -z "$ac_c_werror_flag"
22688 || test ! -s conftest.err'
22689 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
22690 (eval $ac_try) 2>&5
22692 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22693 (exit $ac_status); }; } &&
22694 { ac_try='test -s conftest.$ac_objext'
22695 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
22696 (eval $ac_try) 2>&5
22698 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22699 (exit $ac_status); }; }; then
22700 gdb_cv_c_long_long=yes
22702 echo "$as_me: failed program was:" >&5
22703 sed 's/^/| /' conftest.$ac_ext >&5
22705 gdb_cv_c_long_long=no
22707 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
22709 echo "$as_me:$LINENO: result: $gdb_cv_c_long_long" >&5
22710 echo "${ECHO_T}$gdb_cv_c_long_long" >&6
22711 if test $gdb_cv_c_long_long = yes; then
22713 cat >>confdefs.h <<\_ACEOF
22714 #define CC_HAS_LONG_LONG 1
22719 # Check if the compiler and runtime support printing long longs.
22721 echo "$as_me:$LINENO: checking for long long support in printf" >&5
22722 echo $ECHO_N "checking for long long support in printf... $ECHO_C" >&6
22723 if test "${gdb_cv_printf_has_long_long+set}" = set; then
22724 echo $ECHO_N "(cached) $ECHO_C" >&6
22726 if test "$cross_compiling" = yes; then
22727 gdb_cv_printf_has_long_long=no
22729 cat >conftest.$ac_ext <<_ACEOF
22732 cat confdefs.h >>conftest.$ac_ext
22733 cat >>conftest.$ac_ext <<_ACEOF
22734 /* end confdefs.h. */
22735 $ac_includes_default
22741 l = (l << 16) + 0x0123;
22742 l = (l << 16) + 0x4567;
22743 l = (l << 16) + 0x89ab;
22744 l = (l << 16) + 0xcdef;
22745 sprintf (buf, "0x%016llx", l);
22746 return (strcmp ("0x0123456789abcdef", buf));
22751 rm -f conftest$ac_exeext
22752 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
22753 (eval $ac_link) 2>&5
22755 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22756 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
22757 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
22758 (eval $ac_try) 2>&5
22760 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22761 (exit $ac_status); }; }; then
22762 gdb_cv_printf_has_long_long=yes
22764 echo "$as_me: program exited with status $ac_status" >&5
22765 echo "$as_me: failed program was:" >&5
22766 sed 's/^/| /' conftest.$ac_ext >&5
22768 ( exit $ac_status )
22769 gdb_cv_printf_has_long_long=no
22771 rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
22774 echo "$as_me:$LINENO: result: $gdb_cv_printf_has_long_long" >&5
22775 echo "${ECHO_T}$gdb_cv_printf_has_long_long" >&6
22776 if test $gdb_cv_printf_has_long_long = yes; then
22778 cat >>confdefs.h <<\_ACEOF
22779 #define PRINTF_HAS_LONG_LONG 1
22784 # Check if the compiler and runtime support printing decfloats.
22786 echo "$as_me:$LINENO: checking for decfloat support in printf" >&5
22787 echo $ECHO_N "checking for decfloat support in printf... $ECHO_C" >&6
22788 if test "${gdb_cv_printf_has_decfloat+set}" = set; then
22789 echo $ECHO_N "(cached) $ECHO_C" >&6
22791 if test "$cross_compiling" = yes; then
22792 gdb_cv_printf_has_decfloat=no
22794 cat >conftest.$ac_ext <<_ACEOF
22797 cat confdefs.h >>conftest.$ac_ext
22798 cat >>conftest.$ac_ext <<_ACEOF
22799 /* end confdefs.h. */
22800 $ac_includes_default
22805 _Decimal32 d32 = 1.2345df;
22806 _Decimal64 d64 = 1.2345dd;
22807 _Decimal128 d128 = 1.2345dl;
22808 sprintf (buf, "Decimal32: %H\nDecimal64: %D\nDecimal128: %DD", d32, d64, d128);
22809 return (strcmp ("Decimal32: 1.2345\nDecimal64: 1.2345\nDecimal128: 1.2345", buf));
22814 rm -f conftest$ac_exeext
22815 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
22816 (eval $ac_link) 2>&5
22818 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22819 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
22820 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
22821 (eval $ac_try) 2>&5
22823 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22824 (exit $ac_status); }; }; then
22825 gdb_cv_printf_has_decfloat=yes
22827 echo "$as_me: program exited with status $ac_status" >&5
22828 echo "$as_me: failed program was:" >&5
22829 sed 's/^/| /' conftest.$ac_ext >&5
22831 ( exit $ac_status )
22832 gdb_cv_printf_has_decfloat=no
22834 rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
22837 echo "$as_me:$LINENO: result: $gdb_cv_printf_has_decfloat" >&5
22838 echo "${ECHO_T}$gdb_cv_printf_has_decfloat" >&6
22839 if test $gdb_cv_printf_has_decfloat = yes; then
22841 cat >>confdefs.h <<\_ACEOF
22842 #define PRINTF_HAS_DECFLOAT 1
22847 # Check if the compiler supports the `long double' type. We can't use
22848 # AC_C_LONG_DOUBLE because that one does additional checks on the
22849 # constants defined in <float.h> that fail on some systems,
22850 # e.g. FreeBSD/i386 4.7 and OpenBSD/i386 3.6.
22852 echo "$as_me:$LINENO: checking for long double support in compiler" >&5
22853 echo $ECHO_N "checking for long double support in compiler... $ECHO_C" >&6
22854 if test "${gdb_cv_c_long_double+set}" = set; then
22855 echo $ECHO_N "(cached) $ECHO_C" >&6
22857 cat >conftest.$ac_ext <<_ACEOF
22860 cat confdefs.h >>conftest.$ac_ext
22861 cat >>conftest.$ac_ext <<_ACEOF
22862 /* end confdefs.h. */
22865 rm -f conftest.$ac_objext
22866 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
22867 (eval $ac_compile) 2>conftest.er1
22869 grep -v '^ *+' conftest.er1 >conftest.err
22871 cat conftest.err >&5
22872 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22873 (exit $ac_status); } &&
22874 { ac_try='test -z "$ac_c_werror_flag"
22875 || test ! -s conftest.err'
22876 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
22877 (eval $ac_try) 2>&5
22879 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22880 (exit $ac_status); }; } &&
22881 { ac_try='test -s conftest.$ac_objext'
22882 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
22883 (eval $ac_try) 2>&5
22885 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22886 (exit $ac_status); }; }; then
22887 gdb_cv_c_long_double=yes
22889 echo "$as_me: failed program was:" >&5
22890 sed 's/^/| /' conftest.$ac_ext >&5
22892 gdb_cv_c_long_double=no
22894 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
22896 echo "$as_me:$LINENO: result: $gdb_cv_c_long_double" >&5
22897 echo "${ECHO_T}$gdb_cv_c_long_double" >&6
22898 if test $gdb_cv_c_long_double = yes; then
22900 cat >>confdefs.h <<\_ACEOF
22901 #define HAVE_LONG_DOUBLE 1
22906 # Check if the compiler and runtime support printing long doubles.
22908 echo "$as_me:$LINENO: checking for long double support in printf" >&5
22909 echo $ECHO_N "checking for long double support in printf... $ECHO_C" >&6
22910 if test "${gdb_cv_printf_has_long_double+set}" = set; then
22911 echo $ECHO_N "(cached) $ECHO_C" >&6
22913 if test "$cross_compiling" = yes; then
22914 gdb_cv_printf_has_long_double=no
22916 cat >conftest.$ac_ext <<_ACEOF
22919 cat confdefs.h >>conftest.$ac_ext
22920 cat >>conftest.$ac_ext <<_ACEOF
22921 /* end confdefs.h. */
22922 $ac_includes_default
22927 long double f = 3.141592653;
22928 sprintf (buf, "%Lg", f);
22929 return (strncmp ("3.14159", buf, 7));
22934 rm -f conftest$ac_exeext
22935 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
22936 (eval $ac_link) 2>&5
22938 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22939 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
22940 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
22941 (eval $ac_try) 2>&5
22943 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22944 (exit $ac_status); }; }; then
22945 gdb_cv_printf_has_long_double=yes
22947 echo "$as_me: program exited with status $ac_status" >&5
22948 echo "$as_me: failed program was:" >&5
22949 sed 's/^/| /' conftest.$ac_ext >&5
22951 ( exit $ac_status )
22952 gdb_cv_printf_has_long_double=no
22954 rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
22957 echo "$as_me:$LINENO: result: $gdb_cv_printf_has_long_double" >&5
22958 echo "${ECHO_T}$gdb_cv_printf_has_long_double" >&6
22959 if test $gdb_cv_printf_has_long_double = yes; then
22961 cat >>confdefs.h <<\_ACEOF
22962 #define PRINTF_HAS_LONG_DOUBLE 1
22967 # Check if the compiler and runtime support scanning long doubles.
22969 echo "$as_me:$LINENO: checking for long double support in scanf" >&5
22970 echo $ECHO_N "checking for long double support in scanf... $ECHO_C" >&6
22971 if test "${gdb_cv_scanf_has_long_double+set}" = set; then
22972 echo $ECHO_N "(cached) $ECHO_C" >&6
22974 if test "$cross_compiling" = yes; then
22975 gdb_cv_scanf_has_long_double=no
22977 cat >conftest.$ac_ext <<_ACEOF
22980 cat confdefs.h >>conftest.$ac_ext
22981 cat >>conftest.$ac_ext <<_ACEOF
22982 /* end confdefs.h. */
22987 char *buf = "3.141592653";
22989 sscanf (buf, "%Lg", &f);
22990 return !(f > 3.14159 && f < 3.14160);
22995 rm -f conftest$ac_exeext
22996 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
22997 (eval $ac_link) 2>&5
22999 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23000 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
23001 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
23002 (eval $ac_try) 2>&5
23004 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23005 (exit $ac_status); }; }; then
23006 gdb_cv_scanf_has_long_double=yes
23008 echo "$as_me: program exited with status $ac_status" >&5
23009 echo "$as_me: failed program was:" >&5
23010 sed 's/^/| /' conftest.$ac_ext >&5
23012 ( exit $ac_status )
23013 gdb_cv_scanf_has_long_double=no
23015 rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
23018 echo "$as_me:$LINENO: result: $gdb_cv_scanf_has_long_double" >&5
23019 echo "${ECHO_T}$gdb_cv_scanf_has_long_double" >&6
23020 if test $gdb_cv_scanf_has_long_double = yes; then
23022 cat >>confdefs.h <<\_ACEOF
23023 #define SCANF_HAS_LONG_DOUBLE 1
23030 echo "$as_me:$LINENO: checking for -bbigtoc option" >&5
23031 echo $ECHO_N "checking for -bbigtoc option... $ECHO_C" >&6
23032 if test "${gdb_cv_bigtoc+set}" = set; then
23033 echo $ECHO_N "(cached) $ECHO_C" >&6
23036 SAVE_LDFLAGS=$LDFLAGS
23039 yes) gdb_cv_bigtoc=-Wl,-bbigtoc ;;
23040 *) gdb_cv_bigtoc=-bbigtoc ;;
23043 LDFLAGS=$LDFLAGS\ $gdb_cv_bigtoc
23044 cat >conftest.$ac_ext <<_ACEOF
23047 cat confdefs.h >>conftest.$ac_ext
23048 cat >>conftest.$ac_ext <<_ACEOF
23049 /* end confdefs.h. */
23059 rm -f conftest.$ac_objext conftest$ac_exeext
23060 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
23061 (eval $ac_link) 2>conftest.er1
23063 grep -v '^ *+' conftest.er1 >conftest.err
23065 cat conftest.err >&5
23066 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23067 (exit $ac_status); } &&
23068 { ac_try='test -z "$ac_c_werror_flag"
23069 || test ! -s conftest.err'
23070 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
23071 (eval $ac_try) 2>&5
23073 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23074 (exit $ac_status); }; } &&
23075 { ac_try='test -s conftest$ac_exeext'
23076 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
23077 (eval $ac_try) 2>&5
23079 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23080 (exit $ac_status); }; }; then
23083 echo "$as_me: failed program was:" >&5
23084 sed 's/^/| /' conftest.$ac_ext >&5
23088 rm -f conftest.err conftest.$ac_objext \
23089 conftest$ac_exeext conftest.$ac_ext
23090 LDFLAGS="${SAVE_LDFLAGS}"
23093 echo "$as_me:$LINENO: result: $gdb_cv_bigtoc" >&5
23094 echo "${ECHO_T}$gdb_cv_bigtoc" >&6
23095 CONFIG_LDFLAGS="${CONFIG_LDFLAGS} ${gdb_cv_bigtoc}"
23101 if test ${build} = ${host} -a ${host} = ${target} ; then
23104 echo "$as_me:$LINENO: checking for HPUX/OSF thread support" >&5
23105 echo $ECHO_N "checking for HPUX/OSF thread support... $ECHO_C" >&6
23106 if test -f /usr/include/dce/cma_config.h ; then
23107 if test "$GCC" = "yes" ; then
23108 echo "$as_me:$LINENO: result: yes" >&5
23109 echo "${ECHO_T}yes" >&6
23111 cat >>confdefs.h <<\_ACEOF
23112 #define HAVE_HPUX_THREAD_SUPPORT 1
23115 CONFIG_OBS="${CONFIG_OBS} hpux-thread.o"
23116 CONFIG_SRCS="${CONFIG_SRCS} hpux-thread.c"
23118 echo "$as_me:$LINENO: result: no (suppressed because you are not using GCC)" >&5
23119 echo "${ECHO_T}no (suppressed because you are not using GCC)" >&6
23122 echo "$as_me:$LINENO: result: no" >&5
23123 echo "${ECHO_T}no" >&6
23127 # See if thread_db library is around for Solaris thread debugging.
23128 # Note that we must explicitly test for version 1 of the library
23129 # because version 0 (present on Solaris 2.4 or earlier) doesn't have
23131 echo "$as_me:$LINENO: checking for Solaris thread debugging library" >&5
23132 echo $ECHO_N "checking for Solaris thread debugging library... $ECHO_C" >&6
23133 if test -f /usr/lib/libthread_db.so.1 ; then
23134 echo "$as_me:$LINENO: result: yes" >&5
23135 echo "${ECHO_T}yes" >&6
23137 cat >>confdefs.h <<\_ACEOF
23138 #define HAVE_THREAD_DB_LIB 1
23141 CONFIG_OBS="${CONFIG_OBS} sol-thread.o"
23142 CONFIG_SRCS="${CONFIG_SRCS} sol-thread.c"
23144 echo "$as_me:$LINENO: checking for dlopen in -ldl" >&5
23145 echo $ECHO_N "checking for dlopen in -ldl... $ECHO_C" >&6
23146 if test "${ac_cv_lib_dl_dlopen+set}" = set; then
23147 echo $ECHO_N "(cached) $ECHO_C" >&6
23149 ac_check_lib_save_LIBS=$LIBS
23151 cat >conftest.$ac_ext <<_ACEOF
23154 cat confdefs.h >>conftest.$ac_ext
23155 cat >>conftest.$ac_ext <<_ACEOF
23156 /* end confdefs.h. */
23158 /* Override any gcc2 internal prototype to avoid an error. */
23162 /* We use char because int might match the return type of a gcc2
23163 builtin and then its argument prototype would still apply. */
23173 rm -f conftest.$ac_objext conftest$ac_exeext
23174 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
23175 (eval $ac_link) 2>conftest.er1
23177 grep -v '^ *+' conftest.er1 >conftest.err
23179 cat conftest.err >&5
23180 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23181 (exit $ac_status); } &&
23182 { ac_try='test -z "$ac_c_werror_flag"
23183 || test ! -s conftest.err'
23184 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
23185 (eval $ac_try) 2>&5
23187 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23188 (exit $ac_status); }; } &&
23189 { ac_try='test -s conftest$ac_exeext'
23190 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
23191 (eval $ac_try) 2>&5
23193 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23194 (exit $ac_status); }; }; then
23195 ac_cv_lib_dl_dlopen=yes
23197 echo "$as_me: failed program was:" >&5
23198 sed 's/^/| /' conftest.$ac_ext >&5
23200 ac_cv_lib_dl_dlopen=no
23202 rm -f conftest.err conftest.$ac_objext \
23203 conftest$ac_exeext conftest.$ac_ext
23204 LIBS=$ac_check_lib_save_LIBS
23206 echo "$as_me:$LINENO: result: $ac_cv_lib_dl_dlopen" >&5
23207 echo "${ECHO_T}$ac_cv_lib_dl_dlopen" >&6
23208 if test $ac_cv_lib_dl_dlopen = yes; then
23209 cat >>confdefs.h <<_ACEOF
23210 #define HAVE_LIBDL 1
23217 if test "$GCC" = "yes" ; then
23218 # The GNU linker requires the -export-dynamic option to make
23219 # all symbols visible in the dynamic symbol table.
23220 hold_ldflags=$LDFLAGS
23221 echo "$as_me:$LINENO: checking for the ld -export-dynamic flag" >&5
23222 echo $ECHO_N "checking for the ld -export-dynamic flag... $ECHO_C" >&6
23223 LDFLAGS="${LDFLAGS} -Wl,-export-dynamic"
23224 cat >conftest.$ac_ext <<_ACEOF
23227 cat confdefs.h >>conftest.$ac_ext
23228 cat >>conftest.$ac_ext <<_ACEOF
23229 /* end confdefs.h. */
23239 rm -f conftest.$ac_objext conftest$ac_exeext
23240 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
23241 (eval $ac_link) 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_exeext'
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
23263 echo "$as_me: failed program was:" >&5
23264 sed 's/^/| /' conftest.$ac_ext >&5
23268 rm -f conftest.err conftest.$ac_objext \
23269 conftest$ac_exeext conftest.$ac_ext
23270 LDFLAGS=$hold_ldflags
23271 echo "$as_me:$LINENO: result: $found" >&5
23272 echo "${ECHO_T}$found" >&6
23273 if test $found = yes; then
23274 CONFIG_LDFLAGS="${CONFIG_LDFLAGS} -Wl,-export-dynamic"
23277 # Sun randomly tweaked the prototypes in <proc_service.h>
23279 echo "$as_me:$LINENO: checking if <proc_service.h> is old" >&5
23280 echo $ECHO_N "checking if <proc_service.h> is old... $ECHO_C" >&6
23281 if test "${gdb_cv_proc_service_is_old+set}" = set; then
23282 echo $ECHO_N "(cached) $ECHO_C" >&6
23285 cat >conftest.$ac_ext <<_ACEOF
23288 cat confdefs.h >>conftest.$ac_ext
23289 cat >>conftest.$ac_ext <<_ACEOF
23290 /* end confdefs.h. */
23292 #include <proc_service.h>
23293 ps_err_e ps_pdwrite
23294 (struct ps_prochandle*, psaddr_t, const void*, size_t);
23304 rm -f conftest.$ac_objext
23305 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
23306 (eval $ac_compile) 2>conftest.er1
23308 grep -v '^ *+' conftest.er1 >conftest.err
23310 cat conftest.err >&5
23311 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23312 (exit $ac_status); } &&
23313 { ac_try='test -z "$ac_c_werror_flag"
23314 || test ! -s conftest.err'
23315 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
23316 (eval $ac_try) 2>&5
23318 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23319 (exit $ac_status); }; } &&
23320 { ac_try='test -s conftest.$ac_objext'
23321 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
23322 (eval $ac_try) 2>&5
23324 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23325 (exit $ac_status); }; }; then
23326 gdb_cv_proc_service_is_old=no
23328 echo "$as_me: failed program was:" >&5
23329 sed 's/^/| /' conftest.$ac_ext >&5
23331 gdb_cv_proc_service_is_old=yes
23333 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
23337 echo "$as_me:$LINENO: result: $gdb_cv_proc_service_is_old" >&5
23338 echo "${ECHO_T}$gdb_cv_proc_service_is_old" >&6
23339 if test $gdb_cv_proc_service_is_old = yes; then
23341 cat >>confdefs.h <<\_ACEOF
23342 #define PROC_SERVICE_IS_OLD 1
23347 echo "$as_me:$LINENO: result: no" >&5
23348 echo "${ECHO_T}no" >&6
23352 echo "$as_me:$LINENO: checking for AiX thread debugging library" >&5
23353 echo $ECHO_N "checking for AiX thread debugging library... $ECHO_C" >&6
23354 if test "${gdb_cv_have_aix_thread_debug+set}" = set; then
23355 echo $ECHO_N "(cached) $ECHO_C" >&6
23357 cat >conftest.$ac_ext <<_ACEOF
23360 cat confdefs.h >>conftest.$ac_ext
23361 cat >>conftest.$ac_ext <<_ACEOF
23362 /* end confdefs.h. */
23363 #include <sys/pthdebug.h>
23367 #ifndef PTHDB_VERSION_3
23374 rm -f conftest.$ac_objext
23375 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
23376 (eval $ac_compile) 2>conftest.er1
23378 grep -v '^ *+' conftest.er1 >conftest.err
23380 cat conftest.err >&5
23381 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23382 (exit $ac_status); } &&
23383 { ac_try='test -z "$ac_c_werror_flag"
23384 || test ! -s conftest.err'
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); }; } &&
23390 { ac_try='test -s conftest.$ac_objext'
23391 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
23392 (eval $ac_try) 2>&5
23394 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23395 (exit $ac_status); }; }; then
23396 gdb_cv_have_aix_thread_debug=yes
23398 echo "$as_me: failed program was:" >&5
23399 sed 's/^/| /' conftest.$ac_ext >&5
23401 gdb_cv_have_aix_thread_debug=no
23403 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
23406 echo "$as_me:$LINENO: result: $gdb_cv_have_aix_thread_debug" >&5
23407 echo "${ECHO_T}$gdb_cv_have_aix_thread_debug" >&6
23408 if test $gdb_cv_have_aix_thread_debug = yes; then
23409 CONFIG_SRCS="${CONFIG_SRCS} aix-thread.c"
23410 CONFIG_OBS="${CONFIG_OBS} aix-thread.o"
23411 CONFIG_LDFLAGS="${CONFIG_LDFLAGS} -lpthdebug"
23418 if test "x$ac_cv_header_thread_db_h" = "xyes"; then
23419 echo "$as_me:$LINENO: checking whether <thread_db.h> has TD_NOTALLOC" >&5
23420 echo $ECHO_N "checking whether <thread_db.h> has TD_NOTALLOC... $ECHO_C" >&6
23421 if test "${gdb_cv_thread_db_h_has_td_notalloc+set}" = set; then
23422 echo $ECHO_N "(cached) $ECHO_C" >&6
23424 cat >conftest.$ac_ext <<_ACEOF
23427 cat confdefs.h >>conftest.$ac_ext
23428 cat >>conftest.$ac_ext <<_ACEOF
23429 /* end confdefs.h. */
23430 #include <thread_db.h>
23434 int i = TD_NOTALLOC;
23439 rm -f conftest.$ac_objext
23440 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
23441 (eval $ac_compile) 2>conftest.er1
23443 grep -v '^ *+' conftest.er1 >conftest.err
23445 cat conftest.err >&5
23446 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23447 (exit $ac_status); } &&
23448 { ac_try='test -z "$ac_c_werror_flag"
23449 || test ! -s conftest.err'
23450 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
23451 (eval $ac_try) 2>&5
23453 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23454 (exit $ac_status); }; } &&
23455 { ac_try='test -s conftest.$ac_objext'
23456 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
23457 (eval $ac_try) 2>&5
23459 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23460 (exit $ac_status); }; }; then
23461 gdb_cv_thread_db_h_has_td_notalloc=yes
23463 echo "$as_me: failed program was:" >&5
23464 sed 's/^/| /' conftest.$ac_ext >&5
23466 gdb_cv_thread_db_h_has_td_notalloc=no
23469 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
23472 echo "$as_me:$LINENO: result: $gdb_cv_thread_db_h_has_td_notalloc" >&5
23473 echo "${ECHO_T}$gdb_cv_thread_db_h_has_td_notalloc" >&6
23474 echo "$as_me:$LINENO: checking whether <thread_db.h> has TD_VERSION" >&5
23475 echo $ECHO_N "checking whether <thread_db.h> has TD_VERSION... $ECHO_C" >&6
23476 if test "${gdb_cv_thread_db_h_has_td_version+set}" = set; then
23477 echo $ECHO_N "(cached) $ECHO_C" >&6
23479 cat >conftest.$ac_ext <<_ACEOF
23482 cat confdefs.h >>conftest.$ac_ext
23483 cat >>conftest.$ac_ext <<_ACEOF
23484 /* end confdefs.h. */
23485 #include <thread_db.h>
23489 int i = TD_VERSION;
23494 rm -f conftest.$ac_objext
23495 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
23496 (eval $ac_compile) 2>conftest.er1
23498 grep -v '^ *+' conftest.er1 >conftest.err
23500 cat conftest.err >&5
23501 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23502 (exit $ac_status); } &&
23503 { ac_try='test -z "$ac_c_werror_flag"
23504 || test ! -s conftest.err'
23505 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
23506 (eval $ac_try) 2>&5
23508 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23509 (exit $ac_status); }; } &&
23510 { ac_try='test -s conftest.$ac_objext'
23511 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
23512 (eval $ac_try) 2>&5
23514 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23515 (exit $ac_status); }; }; then
23516 gdb_cv_thread_db_h_has_td_version=yes
23518 echo "$as_me: failed program was:" >&5
23519 sed 's/^/| /' conftest.$ac_ext >&5
23521 gdb_cv_thread_db_h_has_td_version=no
23524 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
23527 echo "$as_me:$LINENO: result: $gdb_cv_thread_db_h_has_td_version" >&5
23528 echo "${ECHO_T}$gdb_cv_thread_db_h_has_td_version" >&6
23529 echo "$as_me:$LINENO: checking whether <thread_db.h> has TD_NOTLS" >&5
23530 echo $ECHO_N "checking whether <thread_db.h> has TD_NOTLS... $ECHO_C" >&6
23531 if test "${gdb_cv_thread_db_h_has_td_notls+set}" = set; then
23532 echo $ECHO_N "(cached) $ECHO_C" >&6
23534 cat >conftest.$ac_ext <<_ACEOF
23537 cat confdefs.h >>conftest.$ac_ext
23538 cat >>conftest.$ac_ext <<_ACEOF
23539 /* end confdefs.h. */
23540 #include <thread_db.h>
23549 rm -f conftest.$ac_objext
23550 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
23551 (eval $ac_compile) 2>conftest.er1
23553 grep -v '^ *+' conftest.er1 >conftest.err
23555 cat conftest.err >&5
23556 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23557 (exit $ac_status); } &&
23558 { ac_try='test -z "$ac_c_werror_flag"
23559 || test ! -s conftest.err'
23560 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
23561 (eval $ac_try) 2>&5
23563 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23564 (exit $ac_status); }; } &&
23565 { ac_try='test -s conftest.$ac_objext'
23566 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
23567 (eval $ac_try) 2>&5
23569 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23570 (exit $ac_status); }; }; then
23571 gdb_cv_thread_db_h_has_td_notls=yes
23573 echo "$as_me: failed program was:" >&5
23574 sed 's/^/| /' conftest.$ac_ext >&5
23576 gdb_cv_thread_db_h_has_td_notls=no
23579 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
23582 echo "$as_me:$LINENO: result: $gdb_cv_thread_db_h_has_td_notls" >&5
23583 echo "${ECHO_T}$gdb_cv_thread_db_h_has_td_notls" >&6
23585 if test "x$gdb_cv_thread_db_h_has_td_notalloc" = "xyes"; then
23587 cat >>confdefs.h <<\_ACEOF
23588 #define THREAD_DB_HAS_TD_NOTALLOC 1
23592 if test "x$gdb_cv_thread_db_h_has_td_version" = "xyes"; then
23594 cat >>confdefs.h <<\_ACEOF
23595 #define THREAD_DB_HAS_TD_VERSION 1
23599 if test "x$gdb_cv_thread_db_h_has_td_notls" = "xyes"; then
23601 cat >>confdefs.h <<\_ACEOF
23602 #define THREAD_DB_HAS_TD_NOTLS 1
23607 if test "x$ac_cv_header_sys_syscall_h" = "xyes"; then
23608 echo "$as_me:$LINENO: checking whether <sys/syscall.h> has __NR_tkill" >&5
23609 echo $ECHO_N "checking whether <sys/syscall.h> has __NR_tkill... $ECHO_C" >&6
23610 if test "${gdb_cv_sys_syscall_h_has_tkill+set}" = set; then
23611 echo $ECHO_N "(cached) $ECHO_C" >&6
23613 cat >conftest.$ac_ext <<_ACEOF
23616 cat confdefs.h >>conftest.$ac_ext
23617 cat >>conftest.$ac_ext <<_ACEOF
23618 /* end confdefs.h. */
23619 #include <sys/syscall.h>
23623 int i = __NR_tkill;
23628 rm -f conftest.$ac_objext
23629 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
23630 (eval $ac_compile) 2>conftest.er1
23632 grep -v '^ *+' conftest.er1 >conftest.err
23634 cat conftest.err >&5
23635 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23636 (exit $ac_status); } &&
23637 { ac_try='test -z "$ac_c_werror_flag"
23638 || test ! -s conftest.err'
23639 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
23640 (eval $ac_try) 2>&5
23642 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23643 (exit $ac_status); }; } &&
23644 { ac_try='test -s conftest.$ac_objext'
23645 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
23646 (eval $ac_try) 2>&5
23648 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23649 (exit $ac_status); }; }; then
23650 gdb_cv_sys_syscall_h_has_tkill=yes
23652 echo "$as_me: failed program was:" >&5
23653 sed 's/^/| /' conftest.$ac_ext >&5
23655 gdb_cv_sys_syscall_h_has_tkill=no
23658 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
23661 echo "$as_me:$LINENO: result: $gdb_cv_sys_syscall_h_has_tkill" >&5
23662 echo "${ECHO_T}$gdb_cv_sys_syscall_h_has_tkill" >&6
23664 if test "x$gdb_cv_sys_syscall_h_has_tkill" = "xyes" && test "x$ac_cv_func_syscall" = "xyes"; then
23666 cat >>confdefs.h <<\_ACEOF
23667 #define HAVE_TKILL_SYSCALL 1
23674 # Check whether --with-sysroot or --without-sysroot was given.
23675 if test "${with_sysroot+set}" = set; then
23676 withval="$with_sysroot"
23678 case ${with_sysroot} in
23679 yes) TARGET_SYSTEM_ROOT='${exec_prefix}/${target_alias}/sys-root' ;;
23680 *) TARGET_SYSTEM_ROOT=$with_sysroot ;;
23683 TARGET_SYSTEM_ROOT_DEFINE='-DTARGET_SYSTEM_ROOT=\"$(TARGET_SYSTEM_ROOT)\"'
23685 if test "x$prefix" = xNONE; then
23686 test_prefix=/usr/local
23688 test_prefix=$prefix
23690 if test "x$exec_prefix" = xNONE || test "x$exec_prefix" = 'x${prefix}'; then
23691 test_exec_prefix=$test_prefix
23693 test_exec_prefix=$exec_prefix
23695 case ${TARGET_SYSTEM_ROOT} in
23696 "${test_prefix}"|"${test_prefix}/"*|\
23697 "${test_exec_prefix}"|"${test_exec_prefix}/"*|\
23698 '${prefix}'|'${prefix}/'*|\
23699 '${exec_prefix}'|'${exec_prefix}/'*)
23700 t="$TARGET_SYSTEM_ROOT_DEFINE -DTARGET_SYSTEM_ROOT_RELOCATABLE"
23701 TARGET_SYSTEM_ROOT_DEFINE="$t"
23707 TARGET_SYSTEM_ROOT=
23708 TARGET_SYSTEM_ROOT_DEFINE='-DTARGET_SYSTEM_ROOT=\"\"'
23714 # Check whether --enable-werror or --disable-werror was given.
23715 if test "${enable_werror+set}" = set; then
23716 enableval="$enable_werror"
23717 case "${enableval}" in
23718 yes | y) ERROR_ON_WARNING="yes" ;;
23719 no | n) ERROR_ON_WARNING="no" ;;
23720 *) { { echo "$as_me:$LINENO: error: bad value ${enableval} for --enable-werror" >&5
23721 echo "$as_me: error: bad value ${enableval} for --enable-werror" >&2;}
23722 { (exit 1); exit 1; }; } ;;
23726 # Enable -Werror by default when using gcc
23727 if test "${GCC}" = yes -a -z "${ERROR_ON_WARNING}" ; then
23728 ERROR_ON_WARNING=yes
23732 if test "${ERROR_ON_WARNING}" = yes ; then
23733 WERROR_CFLAGS="-Werror"
23736 # The entries after -Wno-pointer-sign are disabled warnings which may
23737 # be enabled in the future, which can not currently be used to build
23739 # NOTE: If you change this list, remember to update
23740 # gdb/doc/gdbint.texinfo.
23741 build_warnings="-Wall -Wdeclaration-after-statement -Wpointer-arith \
23742 -Wformat-nonliteral -Wno-pointer-sign \
23743 -Wno-unused -Wno-switch -Wno-char-subscripts"
23745 # Enable -Wno-format by default when using gcc on mingw since many
23746 # GCC versions complain about %I64.
23748 *-*-mingw32*) build_warnings="$build_warnings -Wno-format" ;;
23751 # Check whether --enable-build-warnings or --disable-build-warnings was given.
23752 if test "${enable_build_warnings+set}" = set; then
23753 enableval="$enable_build_warnings"
23754 case "${enableval}" in
23756 no) build_warnings="-w";;
23757 ,*) t=`echo "${enableval}" | sed -e "s/,/ /g"`
23758 build_warnings="${build_warnings} ${t}";;
23759 *,) t=`echo "${enableval}" | sed -e "s/,/ /g"`
23760 build_warnings="${t} ${build_warnings}";;
23761 *) build_warnings=`echo "${enableval}" | sed -e "s/,/ /g"`;;
23763 if test x"$silent" != x"yes" && test x"$build_warnings" != x""; then
23764 echo "Setting compiler warning flags = $build_warnings" 6>&1
23766 fi; # Check whether --enable-gdb-build-warnings or --disable-gdb-build-warnings was given.
23767 if test "${enable_gdb_build_warnings+set}" = set; then
23768 enableval="$enable_gdb_build_warnings"
23769 case "${enableval}" in
23771 no) build_warnings="-w";;
23772 ,*) t=`echo "${enableval}" | sed -e "s/,/ /g"`
23773 build_warnings="${build_warnings} ${t}";;
23774 *,) t=`echo "${enableval}" | sed -e "s/,/ /g"`
23775 build_warnings="${t} ${build_warnings}";;
23776 *) build_warnings=`echo "${enableval}" | sed -e "s/,/ /g"`;;
23778 if test x"$silent" != x"yes" && test x"$build_warnings" != x""; then
23779 echo "Setting GDB specific compiler warning flags = $build_warnings" 6>&1
23782 if test "x${build_warnings}" != x -a "x$GCC" = xyes
23784 echo "$as_me:$LINENO: checking compiler warning flags" >&5
23785 echo $ECHO_N "checking compiler warning flags... $ECHO_C" >&6
23786 # Separate out the -Werror flag as some files just cannot be
23787 # compiled with it enabled.
23788 for w in ${build_warnings}; do
23790 -Werr*) WERROR_CFLAGS=-Werror ;;
23791 *) # Check that GCC accepts it
23792 saved_CFLAGS="$CFLAGS"
23793 CFLAGS="$CFLAGS $w"
23794 cat >conftest.$ac_ext <<_ACEOF
23797 cat confdefs.h >>conftest.$ac_ext
23798 cat >>conftest.$ac_ext <<_ACEOF
23799 /* end confdefs.h. */
23809 rm -f conftest.$ac_objext
23810 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
23811 (eval $ac_compile) 2>conftest.er1
23813 grep -v '^ *+' conftest.er1 >conftest.err
23815 cat conftest.err >&5
23816 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23817 (exit $ac_status); } &&
23818 { ac_try='test -z "$ac_c_werror_flag"
23819 || test ! -s conftest.err'
23820 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
23821 (eval $ac_try) 2>&5
23823 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23824 (exit $ac_status); }; } &&
23825 { ac_try='test -s conftest.$ac_objext'
23826 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
23827 (eval $ac_try) 2>&5
23829 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23830 (exit $ac_status); }; }; then
23831 WARN_CFLAGS="${WARN_CFLAGS} $w"
23833 echo "$as_me: failed program was:" >&5
23834 sed 's/^/| /' conftest.$ac_ext >&5
23837 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
23838 CFLAGS="$saved_CFLAGS"
23841 echo "$as_me:$LINENO: result: ${WARN_CFLAGS} ${WERROR_CFLAGS}" >&5
23842 echo "${ECHO_T}${WARN_CFLAGS} ${WERROR_CFLAGS}" >&6
23847 # In the Cygwin environment, we need some additional flags.
23848 echo "$as_me:$LINENO: checking for cygwin" >&5
23849 echo $ECHO_N "checking for cygwin... $ECHO_C" >&6
23850 if test "${gdb_cv_os_cygwin+set}" = set; then
23851 echo $ECHO_N "(cached) $ECHO_C" >&6
23853 cat >conftest.$ac_ext <<_ACEOF
23856 cat confdefs.h >>conftest.$ac_ext
23857 cat >>conftest.$ac_ext <<_ACEOF
23858 /* end confdefs.h. */
23860 #if defined (__CYGWIN__) || defined (__CYGWIN32__)
23864 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
23865 $EGREP "lose" >/dev/null 2>&1; then
23866 gdb_cv_os_cygwin=yes
23868 gdb_cv_os_cygwin=no
23873 echo "$as_me:$LINENO: result: $gdb_cv_os_cygwin" >&5
23874 echo "${ECHO_T}$gdb_cv_os_cygwin" >&6
23877 SER_HARDWIRE="ser-base.o ser-unix.o ser-pipe.o ser-tcp.o"
23879 *go32* ) SER_HARDWIRE=ser-go32.o ;;
23880 *djgpp* ) SER_HARDWIRE=ser-go32.o ;;
23881 *mingw32*) SER_HARDWIRE="ser-base.o ser-tcp.o ser-mingw.o" ;;
23885 # libreadline needs libuser32.a in a cygwin environment
23887 if test x$gdb_cv_os_cygwin = xyes; then
23888 WIN32LIBS="-luser32"
23889 case "${target}" in
23890 *cygwin*) WIN32LIBS="$WIN32LIBS -limagehlp"
23895 # The ser-tcp.c module requires sockets.
23899 cat >>confdefs.h <<\_ACEOF
23900 #define USE_WIN32API 1
23903 WIN32LIBS="$WIN32LIBS -lws2_32"
23908 # Add ELF support to GDB, but only if BFD includes ELF support.
23910 OLD_LDFLAGS=$LDFLAGS
23912 CFLAGS="$CFLAGS -I${srcdir}/../include -I../bfd -I${srcdir}/../bfd"
23913 LDFLAGS="$LDFLAGS -L../bfd -L../libiberty"
23914 intl=`echo $LIBINTL | sed 's,${top_builddir}/,,g'`
23915 LIBS="$LIBS -lbfd -liberty $intl"
23916 echo "$as_me:$LINENO: checking for ELF support in BFD" >&5
23917 echo $ECHO_N "checking for ELF support in BFD... $ECHO_C" >&6
23918 if test "${gdb_cv_var_elf+set}" = set; then
23919 echo $ECHO_N "(cached) $ECHO_C" >&6
23921 cat >conftest.$ac_ext <<_ACEOF
23924 cat confdefs.h >>conftest.$ac_ext
23925 cat >>conftest.$ac_ext <<_ACEOF
23926 /* end confdefs.h. */
23927 #include <stdlib.h>
23929 #include "elf-bfd.h"
23934 bfd *abfd = NULL; bfd_get_elf_phdr_upper_bound (abfd);
23939 rm -f conftest.$ac_objext conftest$ac_exeext
23940 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
23941 (eval $ac_link) 2>conftest.er1
23943 grep -v '^ *+' conftest.er1 >conftest.err
23945 cat conftest.err >&5
23946 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23947 (exit $ac_status); } &&
23948 { ac_try='test -z "$ac_c_werror_flag"
23949 || test ! -s conftest.err'
23950 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
23951 (eval $ac_try) 2>&5
23953 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23954 (exit $ac_status); }; } &&
23955 { ac_try='test -s conftest$ac_exeext'
23956 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
23957 (eval $ac_try) 2>&5
23959 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23960 (exit $ac_status); }; }; then
23963 echo "$as_me: failed program was:" >&5
23964 sed 's/^/| /' conftest.$ac_ext >&5
23968 rm -f conftest.err conftest.$ac_objext \
23969 conftest$ac_exeext conftest.$ac_ext
23971 echo "$as_me:$LINENO: result: $gdb_cv_var_elf" >&5
23972 echo "${ECHO_T}$gdb_cv_var_elf" >&6
23973 if test $gdb_cv_var_elf = yes; then
23974 CONFIG_OBS="$CONFIG_OBS elfread.o"
23976 cat >>confdefs.h <<\_ACEOF
23982 LDFLAGS=$OLD_LDFLAGS
23985 # Add any host-specific objects to GDB.
23986 CONFIG_OBS="${CONFIG_OBS} ${gdb_host_obs}"
23988 LIBGUI="../libgui/src/libgui.a"
23989 GUI_CFLAGS_X="-I${srcdir}/../libgui/src"
23998 *-*-cygwin* | *-*-mingw* )
24007 if test "${enable_gdbtk}" = "yes"; then
24009 # Gdbtk must have an absolute path to srcdir in order to run
24010 # properly when not installed.
24013 GDBTK_SRC_DIR=`pwd`
24018 # Ok, lets find the tcl configuration
24019 # First, look for one uninstalled.
24020 # the alternative search directory is invoked by --with-tclconfig
24023 if test x"${no_tcl}" = x ; then
24024 # we reset no_tcl in case something fails here
24027 # Check whether --with-tclconfig or --without-tclconfig was given.
24028 if test "${with_tclconfig+set}" = set; then
24029 withval="$with_tclconfig"
24030 with_tclconfig=${withval}
24032 echo "$as_me:$LINENO: checking for Tcl configuration" >&5
24033 echo $ECHO_N "checking for Tcl configuration... $ECHO_C" >&6
24034 if test "${ac_cv_c_tclconfig+set}" = set; then
24035 echo $ECHO_N "(cached) $ECHO_C" >&6
24039 # First check to see if --with-tclconfig was specified.
24040 if test x"${with_tclconfig}" != x ; then
24041 if test -f "${with_tclconfig}/tclConfig.sh" ; then
24042 ac_cv_c_tclconfig=`(cd ${with_tclconfig}; pwd)`
24044 { { echo "$as_me:$LINENO: error: ${with_tclconfig} directory doesn't contain tclConfig.sh" >&5
24045 echo "$as_me: error: ${with_tclconfig} directory doesn't contain tclConfig.sh" >&2;}
24046 { (exit 1); exit 1; }; }
24050 # then check for a private Tcl installation
24051 if test x"${ac_cv_c_tclconfig}" = x ; then
24054 `ls -dr ../tcl[7-9]* 2>/dev/null` \
24056 `ls -dr ../../tcl[7-9]* 2>/dev/null` \
24058 `ls -dr ../../../tcl[7-9]* 2>/dev/null` ; do
24059 if test -f "$i/${configdir}/tclConfig.sh" ; then
24060 ac_cv_c_tclconfig=`(cd $i/${configdir}; pwd)`
24065 # check in a few common install locations
24066 if test x"${ac_cv_c_tclconfig}" = x ; then
24067 for i in `ls -d ${prefix}/lib /usr/local/lib 2>/dev/null` ; do
24068 if test -f "$i/tclConfig.sh" ; then
24069 ac_cv_c_tclconfig=`(cd $i; pwd)`
24074 # check in a few other private locations
24075 if test x"${ac_cv_c_tclconfig}" = x ; then
24078 `ls -dr ${srcdir}/../tcl[7-9]* 2>/dev/null` ; do
24079 if test -f "$i/${configdir}/tclConfig.sh" ; then
24080 ac_cv_c_tclconfig=`(cd $i/${configdir}; pwd)`
24088 if test x"${ac_cv_c_tclconfig}" = x ; then
24089 TCLCONFIG="# no Tcl configs found"
24090 { echo "$as_me:$LINENO: WARNING: Can't find Tcl configuration definitions" >&5
24091 echo "$as_me: WARNING: Can't find Tcl configuration definitions" >&2;}
24094 TCLCONFIG=${ac_cv_c_tclconfig}/tclConfig.sh
24095 echo "$as_me:$LINENO: result: found $TCLCONFIG" >&5
24096 echo "${ECHO_T}found $TCLCONFIG" >&6
24100 if test -z "${no_tcl}"; then
24131 # Ok, lets find the tk configuration
24132 # First, look for one uninstalled.
24133 # the alternative search directory is invoked by --with-tkconfig
24136 if test x"${no_tk}" = x ; then
24137 # we reset no_tk in case something fails here
24140 # Check whether --with-tkconfig or --without-tkconfig was given.
24141 if test "${with_tkconfig+set}" = set; then
24142 withval="$with_tkconfig"
24143 with_tkconfig=${withval}
24145 echo "$as_me:$LINENO: checking for Tk configuration" >&5
24146 echo $ECHO_N "checking for Tk configuration... $ECHO_C" >&6
24147 if test "${ac_cv_c_tkconfig+set}" = set; then
24148 echo $ECHO_N "(cached) $ECHO_C" >&6
24152 # First check to see if --with-tkconfig was specified.
24153 if test x"${with_tkconfig}" != x ; then
24154 if test -f "${with_tkconfig}/tkConfig.sh" ; then
24155 ac_cv_c_tkconfig=`(cd ${with_tkconfig}; pwd)`
24157 { { echo "$as_me:$LINENO: error: ${with_tkconfig} directory doesn't contain tkConfig.sh" >&5
24158 echo "$as_me: error: ${with_tkconfig} directory doesn't contain tkConfig.sh" >&2;}
24159 { (exit 1); exit 1; }; }
24163 # then check for a private Tk library
24164 if test x"${ac_cv_c_tkconfig}" = x ; then
24167 `ls -dr ../tk[4-9]* 2>/dev/null` \
24169 `ls -dr ../../tk[4-9]* 2>/dev/null` \
24171 `ls -dr ../../../tk[4-9]* 2>/dev/null` ; do
24172 if test -f "$i/${configdir}/tkConfig.sh" ; then
24173 ac_cv_c_tkconfig=`(cd $i/${configdir}; pwd)`
24178 # check in a few common install locations
24179 if test x"${ac_cv_c_tkconfig}" = x ; then
24180 for i in `ls -d ${prefix}/lib /usr/local/lib 2>/dev/null` ; do
24181 if test -f "$i/tkConfig.sh" ; then
24182 ac_cv_c_tkconfig=`(cd $i; pwd)`
24187 # check in a few other private locations
24188 if test x"${ac_cv_c_tkconfig}" = x ; then
24191 `ls -dr ${srcdir}/../tk[4-9]* 2>/dev/null` ; do
24192 if test -f "$i/${configdir}/tkConfig.sh" ; then
24193 ac_cv_c_tkconfig=`(cd $i/${configdir}; pwd)`
24201 if test x"${ac_cv_c_tkconfig}" = x ; then
24202 TKCONFIG="# no Tk configs found"
24203 { echo "$as_me:$LINENO: WARNING: Can't find Tk configuration definitions" >&5
24204 echo "$as_me: WARNING: Can't find Tk configuration definitions" >&2;}
24207 TKCONFIG=${ac_cv_c_tkconfig}/tkConfig.sh
24208 echo "$as_me:$LINENO: result: found $TKCONFIG" >&5
24209 echo "${ECHO_T}found $TKCONFIG" >&6
24215 # now look for Tcl library stuff
24217 tcldir="../tcl/${configdir}/"
24219 TCL_DEPS="${tcldir}${TCL_LIB_FILE}"
24221 # If $no_tk is nonempty, then we can't do Tk, and there is no
24222 # point to doing Tcl.
24223 if test -z "${no_tk}"; then
24225 if test -f "$TKCONFIG" ; then
24243 # Ok, lets find the tcl source trees so we can use the headers
24244 # Warning: transition of version 9 to 10 will break this algorithm
24245 # because 10 sorts before 9. We also look for just tcl. We have to
24246 # be careful that we don't match stuff like tclX by accident.
24247 # the alternative search directory is involked by --with-tclinclude
24251 echo "$as_me:$LINENO: checking for Tcl private headers. dir=${configdir}" >&5
24252 echo $ECHO_N "checking for Tcl private headers. dir=${configdir}... $ECHO_C" >&6
24254 # Check whether --with-tclinclude or --without-tclinclude was given.
24255 if test "${with_tclinclude+set}" = set; then
24256 withval="$with_tclinclude"
24257 with_tclinclude=${withval}
24259 if test "${ac_cv_c_tclh+set}" = set; then
24260 echo $ECHO_N "(cached) $ECHO_C" >&6
24263 # first check to see if --with-tclinclude was specified
24264 if test x"${with_tclinclude}" != x ; then
24265 if test -f ${with_tclinclude}/tclInt.h ; then
24266 ac_cv_c_tclh=`(cd ${with_tclinclude}; pwd)`
24267 elif test -f ${with_tclinclude}/generic/tclInt.h ; then
24268 ac_cv_c_tclh=`(cd ${with_tclinclude}/generic; pwd)`
24270 { { echo "$as_me:$LINENO: error: ${with_tclinclude} directory doesn't contain private headers" >&5
24271 echo "$as_me: error: ${with_tclinclude} directory doesn't contain private headers" >&2;}
24272 { (exit 1); exit 1; }; }
24276 # next check if it came with Tcl configuration file
24277 if test x"${ac_cv_c_tclconfig}" = x ; then
24278 if test -f $ac_cv_c_tclconfig/../generic/tclInt.h ; then
24279 ac_cv_c_tclh=`(cd $ac_cv_c_tclconfig/..; pwd)`
24283 # next check in private source directory
24285 # since ls returns lowest version numbers first, reverse its output
24286 if test x"${ac_cv_c_tclh}" = x ; then
24289 `ls -dr ${srcdir}/../tcl[7-9]* 2>/dev/null` \
24290 ${srcdir}/../../tcl \
24291 `ls -dr ${srcdir}/../../tcl[7-9]* 2>/dev/null` \
24292 ${srcdir}/../../../tcl \
24293 `ls -dr ${srcdir}/../../../tcl[7-9]* 2>/dev/null ` ; do
24294 if test -f $i/generic/tclInt.h ; then
24295 ac_cv_c_tclh=`(cd $i/generic; pwd)`
24300 # finally check in a few common install locations
24302 # since ls returns lowest version numbers first, reverse its output
24303 if test x"${ac_cv_c_tclh}" = x ; then
24305 `ls -dr /usr/local/src/tcl[7-9]* 2>/dev/null` \
24306 `ls -dr /usr/local/lib/tcl[7-9]* 2>/dev/null` \
24307 /usr/local/src/tcl \
24308 /usr/local/lib/tcl \
24309 ${prefix}/include ; do
24310 if test -f $i/generic/tclInt.h ; then
24311 ac_cv_c_tclh=`(cd $i/generic; pwd)`
24316 # see if one is installed
24317 if test x"${ac_cv_c_tclh}" = x ; then
24318 if test "${ac_cv_header_tclInt_h+set}" = set; then
24319 echo "$as_me:$LINENO: checking for tclInt.h" >&5
24320 echo $ECHO_N "checking for tclInt.h... $ECHO_C" >&6
24321 if test "${ac_cv_header_tclInt_h+set}" = set; then
24322 echo $ECHO_N "(cached) $ECHO_C" >&6
24324 echo "$as_me:$LINENO: result: $ac_cv_header_tclInt_h" >&5
24325 echo "${ECHO_T}$ac_cv_header_tclInt_h" >&6
24327 # Is the header compilable?
24328 echo "$as_me:$LINENO: checking tclInt.h usability" >&5
24329 echo $ECHO_N "checking tclInt.h usability... $ECHO_C" >&6
24330 cat >conftest.$ac_ext <<_ACEOF
24333 cat confdefs.h >>conftest.$ac_ext
24334 cat >>conftest.$ac_ext <<_ACEOF
24335 /* end confdefs.h. */
24336 $ac_includes_default
24337 #include <tclInt.h>
24339 rm -f conftest.$ac_objext
24340 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
24341 (eval $ac_compile) 2>conftest.er1
24343 grep -v '^ *+' conftest.er1 >conftest.err
24345 cat conftest.err >&5
24346 echo "$as_me:$LINENO: \$? = $ac_status" >&5
24347 (exit $ac_status); } &&
24348 { ac_try='test -z "$ac_c_werror_flag"
24349 || test ! -s conftest.err'
24350 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
24351 (eval $ac_try) 2>&5
24353 echo "$as_me:$LINENO: \$? = $ac_status" >&5
24354 (exit $ac_status); }; } &&
24355 { ac_try='test -s conftest.$ac_objext'
24356 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
24357 (eval $ac_try) 2>&5
24359 echo "$as_me:$LINENO: \$? = $ac_status" >&5
24360 (exit $ac_status); }; }; then
24361 ac_header_compiler=yes
24363 echo "$as_me: failed program was:" >&5
24364 sed 's/^/| /' conftest.$ac_ext >&5
24366 ac_header_compiler=no
24368 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
24369 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
24370 echo "${ECHO_T}$ac_header_compiler" >&6
24372 # Is the header present?
24373 echo "$as_me:$LINENO: checking tclInt.h presence" >&5
24374 echo $ECHO_N "checking tclInt.h presence... $ECHO_C" >&6
24375 cat >conftest.$ac_ext <<_ACEOF
24378 cat confdefs.h >>conftest.$ac_ext
24379 cat >>conftest.$ac_ext <<_ACEOF
24380 /* end confdefs.h. */
24381 #include <tclInt.h>
24383 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
24384 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
24386 grep -v '^ *+' conftest.er1 >conftest.err
24388 cat conftest.err >&5
24389 echo "$as_me:$LINENO: \$? = $ac_status" >&5
24390 (exit $ac_status); } >/dev/null; then
24391 if test -s conftest.err; then
24392 ac_cpp_err=$ac_c_preproc_warn_flag
24393 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
24400 if test -z "$ac_cpp_err"; then
24401 ac_header_preproc=yes
24403 echo "$as_me: failed program was:" >&5
24404 sed 's/^/| /' conftest.$ac_ext >&5
24406 ac_header_preproc=no
24408 rm -f conftest.err conftest.$ac_ext
24409 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
24410 echo "${ECHO_T}$ac_header_preproc" >&6
24412 # So? What about this header?
24413 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
24415 { echo "$as_me:$LINENO: WARNING: tclInt.h: accepted by the compiler, rejected by the preprocessor!" >&5
24416 echo "$as_me: WARNING: tclInt.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
24417 { echo "$as_me:$LINENO: WARNING: tclInt.h: proceeding with the compiler's result" >&5
24418 echo "$as_me: WARNING: tclInt.h: proceeding with the compiler's result" >&2;}
24419 ac_header_preproc=yes
24422 { echo "$as_me:$LINENO: WARNING: tclInt.h: present but cannot be compiled" >&5
24423 echo "$as_me: WARNING: tclInt.h: present but cannot be compiled" >&2;}
24424 { echo "$as_me:$LINENO: WARNING: tclInt.h: check for missing prerequisite headers?" >&5
24425 echo "$as_me: WARNING: tclInt.h: check for missing prerequisite headers?" >&2;}
24426 { echo "$as_me:$LINENO: WARNING: tclInt.h: see the Autoconf documentation" >&5
24427 echo "$as_me: WARNING: tclInt.h: see the Autoconf documentation" >&2;}
24428 { echo "$as_me:$LINENO: WARNING: tclInt.h: section \"Present But Cannot Be Compiled\"" >&5
24429 echo "$as_me: WARNING: tclInt.h: section \"Present But Cannot Be Compiled\"" >&2;}
24430 { echo "$as_me:$LINENO: WARNING: tclInt.h: proceeding with the preprocessor's result" >&5
24431 echo "$as_me: WARNING: tclInt.h: proceeding with the preprocessor's result" >&2;}
24432 { echo "$as_me:$LINENO: WARNING: tclInt.h: in the future, the compiler will take precedence" >&5
24433 echo "$as_me: WARNING: tclInt.h: in the future, the compiler will take precedence" >&2;}
24436 ## ------------------------------------------ ##
24437 ## Report this to the AC_PACKAGE_NAME lists. ##
24438 ## ------------------------------------------ ##
24441 sed "s/^/$as_me: WARNING: /" >&2
24444 echo "$as_me:$LINENO: checking for tclInt.h" >&5
24445 echo $ECHO_N "checking for tclInt.h... $ECHO_C" >&6
24446 if test "${ac_cv_header_tclInt_h+set}" = set; then
24447 echo $ECHO_N "(cached) $ECHO_C" >&6
24449 ac_cv_header_tclInt_h=$ac_header_preproc
24451 echo "$as_me:$LINENO: result: $ac_cv_header_tclInt_h" >&5
24452 echo "${ECHO_T}$ac_cv_header_tclInt_h" >&6
24455 if test $ac_cv_header_tclInt_h = yes; then
24456 ac_cv_c_tclh=installed
24466 if test x"${ac_cv_c_tclh}" = x ; then
24467 TCLHDIR="# no Tcl private headers found"
24468 { { echo "$as_me:$LINENO: error: Can't find Tcl private headers" >&5
24469 echo "$as_me: error: Can't find Tcl private headers" >&2;}
24470 { (exit 1); exit 1; }; }
24472 if test x"${ac_cv_c_tclh}" != x ; then
24474 if test x"${ac_cv_c_tclh}" = x"installed" ; then
24475 echo "$as_me:$LINENO: result: is installed" >&5
24476 echo "${ECHO_T}is installed" >&6
24479 echo "$as_me:$LINENO: result: found in ${ac_cv_c_tclh}" >&5
24480 echo "${ECHO_T}found in ${ac_cv_c_tclh}" >&6
24481 # this hack is cause the TCLHDIR won't print if there is a "-I" in it.
24482 TCLHDIR="-I${ac_cv_c_tclh}"
24490 # Ok, lets find the tk source trees so we can use the headers
24491 # If the directory (presumably symlink) named "tk" exists, use that one
24492 # in preference to any others. Same logic is used when choosing library
24493 # and again with Tcl. The search order is the best place to look first, then in
24494 # decreasing significance. The loop breaks if the trigger file is found.
24495 # Note the gross little conversion here of srcdir by cd'ing to the found
24496 # directory. This converts the path from a relative to an absolute, so
24497 # recursive cache variables for the path will work right. We check all
24498 # the possible paths in one loop rather than many seperate loops to speed
24500 # the alternative search directory is involked by --with-tkinclude
24503 echo "$as_me:$LINENO: checking for Tk private headers" >&5
24504 echo $ECHO_N "checking for Tk private headers... $ECHO_C" >&6
24506 # Check whether --with-tkinclude or --without-tkinclude was given.
24507 if test "${with_tkinclude+set}" = set; then
24508 withval="$with_tkinclude"
24509 with_tkinclude=${withval}
24511 if test "${ac_cv_c_tkh+set}" = set; then
24512 echo $ECHO_N "(cached) $ECHO_C" >&6
24515 # first check to see if --with-tkinclude was specified
24516 if test x"${with_tkinclude}" != x ; then
24517 if test -f ${with_tkinclude}/tk.h ; then
24518 ac_cv_c_tkh=`(cd ${with_tkinclude}; pwd)`
24519 elif test -f ${with_tkinclude}/generic/tk.h ; then
24520 ac_cv_c_tkh=`(cd ${with_tkinclude}/generic; pwd)`
24522 { { echo "$as_me:$LINENO: error: ${with_tkinclude} directory doesn't contain private headers" >&5
24523 echo "$as_me: error: ${with_tkinclude} directory doesn't contain private headers" >&2;}
24524 { (exit 1); exit 1; }; }
24528 # next check if it came with Tk configuration file
24529 if test x"${ac_cv_c_tkconfig}" = x ; then
24530 if test -f $ac_cv_c_tkconfig/../generic/tk.h ; then
24531 ac_cv_c_tkh=`(cd $ac_cv_c_tkconfig/..; pwd)`
24535 # next check in private source directory
24537 # since ls returns lowest version numbers first, reverse its output
24538 if test x"${ac_cv_c_tkh}" = x ; then
24541 `ls -dr ${srcdir}/../tk[4-9]* 2>/dev/null` \
24542 ${srcdir}/../../tk \
24543 `ls -dr ${srcdir}/../../tk[4-9]* 2>/dev/null` \
24544 ${srcdir}/../../../tk \
24545 `ls -dr ${srcdir}/../../../tk[4-9]* 2>/dev/null ` ; do
24546 if test -f $i/generic/tk.h ; then
24547 ac_cv_c_tkh=`(cd $i/generic; pwd)`
24552 # finally check in a few common install locations
24554 # since ls returns lowest version numbers first, reverse its output
24555 if test x"${ac_cv_c_tkh}" = x ; then
24557 `ls -dr /usr/local/src/tk[4-9]* 2>/dev/null` \
24558 `ls -dr /usr/local/lib/tk[4-9]* 2>/dev/null` \
24559 /usr/local/src/tk \
24560 /usr/local/lib/tk \
24561 ${prefix}/include ; do
24562 if test -f $i/generic/tk.h ; then
24563 ac_cv_c_tkh=`(cd $i/generic; pwd)`
24568 # see if one is installed
24569 if test x"${ac_cv_c_tkh}" = x ; then
24570 if test "${ac_cv_header_tk_h+set}" = set; then
24571 echo "$as_me:$LINENO: checking for tk.h" >&5
24572 echo $ECHO_N "checking for tk.h... $ECHO_C" >&6
24573 if test "${ac_cv_header_tk_h+set}" = set; then
24574 echo $ECHO_N "(cached) $ECHO_C" >&6
24576 echo "$as_me:$LINENO: result: $ac_cv_header_tk_h" >&5
24577 echo "${ECHO_T}$ac_cv_header_tk_h" >&6
24579 # Is the header compilable?
24580 echo "$as_me:$LINENO: checking tk.h usability" >&5
24581 echo $ECHO_N "checking tk.h usability... $ECHO_C" >&6
24582 cat >conftest.$ac_ext <<_ACEOF
24585 cat confdefs.h >>conftest.$ac_ext
24586 cat >>conftest.$ac_ext <<_ACEOF
24587 /* end confdefs.h. */
24588 $ac_includes_default
24591 rm -f conftest.$ac_objext
24592 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
24593 (eval $ac_compile) 2>conftest.er1
24595 grep -v '^ *+' conftest.er1 >conftest.err
24597 cat conftest.err >&5
24598 echo "$as_me:$LINENO: \$? = $ac_status" >&5
24599 (exit $ac_status); } &&
24600 { ac_try='test -z "$ac_c_werror_flag"
24601 || test ! -s conftest.err'
24602 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
24603 (eval $ac_try) 2>&5
24605 echo "$as_me:$LINENO: \$? = $ac_status" >&5
24606 (exit $ac_status); }; } &&
24607 { ac_try='test -s conftest.$ac_objext'
24608 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
24609 (eval $ac_try) 2>&5
24611 echo "$as_me:$LINENO: \$? = $ac_status" >&5
24612 (exit $ac_status); }; }; then
24613 ac_header_compiler=yes
24615 echo "$as_me: failed program was:" >&5
24616 sed 's/^/| /' conftest.$ac_ext >&5
24618 ac_header_compiler=no
24620 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
24621 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
24622 echo "${ECHO_T}$ac_header_compiler" >&6
24624 # Is the header present?
24625 echo "$as_me:$LINENO: checking tk.h presence" >&5
24626 echo $ECHO_N "checking tk.h presence... $ECHO_C" >&6
24627 cat >conftest.$ac_ext <<_ACEOF
24630 cat confdefs.h >>conftest.$ac_ext
24631 cat >>conftest.$ac_ext <<_ACEOF
24632 /* end confdefs.h. */
24635 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
24636 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
24638 grep -v '^ *+' conftest.er1 >conftest.err
24640 cat conftest.err >&5
24641 echo "$as_me:$LINENO: \$? = $ac_status" >&5
24642 (exit $ac_status); } >/dev/null; then
24643 if test -s conftest.err; then
24644 ac_cpp_err=$ac_c_preproc_warn_flag
24645 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
24652 if test -z "$ac_cpp_err"; then
24653 ac_header_preproc=yes
24655 echo "$as_me: failed program was:" >&5
24656 sed 's/^/| /' conftest.$ac_ext >&5
24658 ac_header_preproc=no
24660 rm -f conftest.err conftest.$ac_ext
24661 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
24662 echo "${ECHO_T}$ac_header_preproc" >&6
24664 # So? What about this header?
24665 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
24667 { echo "$as_me:$LINENO: WARNING: tk.h: accepted by the compiler, rejected by the preprocessor!" >&5
24668 echo "$as_me: WARNING: tk.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
24669 { echo "$as_me:$LINENO: WARNING: tk.h: proceeding with the compiler's result" >&5
24670 echo "$as_me: WARNING: tk.h: proceeding with the compiler's result" >&2;}
24671 ac_header_preproc=yes
24674 { echo "$as_me:$LINENO: WARNING: tk.h: present but cannot be compiled" >&5
24675 echo "$as_me: WARNING: tk.h: present but cannot be compiled" >&2;}
24676 { echo "$as_me:$LINENO: WARNING: tk.h: check for missing prerequisite headers?" >&5
24677 echo "$as_me: WARNING: tk.h: check for missing prerequisite headers?" >&2;}
24678 { echo "$as_me:$LINENO: WARNING: tk.h: see the Autoconf documentation" >&5
24679 echo "$as_me: WARNING: tk.h: see the Autoconf documentation" >&2;}
24680 { echo "$as_me:$LINENO: WARNING: tk.h: section \"Present But Cannot Be Compiled\"" >&5
24681 echo "$as_me: WARNING: tk.h: section \"Present But Cannot Be Compiled\"" >&2;}
24682 { echo "$as_me:$LINENO: WARNING: tk.h: proceeding with the preprocessor's result" >&5
24683 echo "$as_me: WARNING: tk.h: proceeding with the preprocessor's result" >&2;}
24684 { echo "$as_me:$LINENO: WARNING: tk.h: in the future, the compiler will take precedence" >&5
24685 echo "$as_me: WARNING: tk.h: in the future, the compiler will take precedence" >&2;}
24688 ## ------------------------------------------ ##
24689 ## Report this to the AC_PACKAGE_NAME lists. ##
24690 ## ------------------------------------------ ##
24693 sed "s/^/$as_me: WARNING: /" >&2
24696 echo "$as_me:$LINENO: checking for tk.h" >&5
24697 echo $ECHO_N "checking for tk.h... $ECHO_C" >&6
24698 if test "${ac_cv_header_tk_h+set}" = set; then
24699 echo $ECHO_N "(cached) $ECHO_C" >&6
24701 ac_cv_header_tk_h=$ac_header_preproc
24703 echo "$as_me:$LINENO: result: $ac_cv_header_tk_h" >&5
24704 echo "${ECHO_T}$ac_cv_header_tk_h" >&6
24707 if test $ac_cv_header_tk_h = yes; then
24708 ac_cv_c_tkh=installed
24718 if test x"${ac_cv_c_tkh}" != x ; then
24720 if test x"${ac_cv_c_tkh}" = x"installed" ; then
24721 echo "$as_me:$LINENO: result: is installed" >&5
24722 echo "${ECHO_T}is installed" >&6
24725 echo "$as_me:$LINENO: result: found in ${ac_cv_c_tkh}" >&5
24726 echo "${ECHO_T}found in ${ac_cv_c_tkh}" >&6
24727 # this hack is cause the TKHDIR won't print if there is a "-I" in it.
24728 TKHDIR="-I${ac_cv_c_tkh}"
24731 TKHDIR="# no Tk directory found"
24732 { echo "$as_me:$LINENO: WARNING: Can't find Tk private headers" >&5
24733 echo "$as_me: WARNING: Can't find Tk private headers" >&2;}
24740 echo "$as_me:$LINENO: checking for Itcl private headers. srcdir=${srcdir}" >&5
24741 echo $ECHO_N "checking for Itcl private headers. srcdir=${srcdir}... $ECHO_C" >&6
24742 if test x"${ac_cv_c_itclh}" = x ; then
24743 for i in ${srcdir}/../itcl ${srcdir}/../../itcl ${srcdir}/../../../itcl ${srcdir}/../itcl/itcl; do
24744 if test -f $i/generic/itcl.h ; then
24745 ac_cv_c_itclh=`(cd $i/generic; pwd)`
24750 if test x"${ac_cv_c_itclh}" = x ; then
24751 ITCLHDIR="# no Itcl private headers found"
24752 { { echo "$as_me:$LINENO: error: Can't find Itcl private headers" >&5
24753 echo "$as_me: error: Can't find Itcl private headers" >&2;}
24754 { (exit 1); exit 1; }; }
24756 if test x"${ac_cv_c_itclh}" != x ; then
24757 ITCLHDIR="-I${ac_cv_c_itclh}"
24759 # should always be here
24760 # ITCLLIB="../itcl/itcl/unix/libitcl.a"
24765 echo "$as_me:$LINENO: checking for Itk private headers. srcdir=${srcdir}" >&5
24766 echo $ECHO_N "checking for Itk private headers. srcdir=${srcdir}... $ECHO_C" >&6
24767 if test x"${ac_cv_c_itkh}" = x ; then
24768 for i in ${srcdir}/../itcl ${srcdir}/../../itcl ${srcdir}/../../../itcl ${srcdir}/../itcl/itk; do
24769 if test -f $i/generic/itk.h ; then
24770 ac_cv_c_itkh=`(cd $i/generic; pwd)`
24775 if test x"${ac_cv_c_itkh}" = x ; then
24776 ITKHDIR="# no Itk private headers found"
24777 { { echo "$as_me:$LINENO: error: Can't find Itk private headers" >&5
24778 echo "$as_me: error: Can't find Itk private headers" >&2;}
24779 { (exit 1); exit 1; }; }
24781 if test x"${ac_cv_c_itkh}" != x ; then
24782 ITKHDIR="-I${ac_cv_c_itkh}"
24784 # should always be here
24785 # ITKLIB="../itcl/itk/unix/libitk.a"
24791 # now look for Tk library stuff
24793 tkdir="../tk/${configdir}/"
24795 TK_DEPS="${tkdir}${TK_LIB_FILE}"
24797 # now look for Itcl library stuff
24801 # Ok, lets find the itcl configuration
24802 # First, look for one uninstalled.
24803 # the alternative search directory is invoked by --with-itclconfig
24806 if test x"${no_itcl}" = x ; then
24807 # we reset no_itcl in case something fails here
24810 # Check whether --with-itclconfig or --without-itclconfig was given.
24811 if test "${with_itclconfig+set}" = set; then
24812 withval="$with_itclconfig"
24813 with_itclconfig=${withval}
24815 echo "$as_me:$LINENO: checking for Itcl configuration" >&5
24816 echo $ECHO_N "checking for Itcl configuration... $ECHO_C" >&6
24817 if test "${ac_cv_c_itclconfig+set}" = set; then
24818 echo $ECHO_N "(cached) $ECHO_C" >&6
24822 # First check to see if --with-itclconfig was specified.
24823 if test x"${with_itclconfig}" != x ; then
24824 if test -f "${with_itclconfig}/itclConfig.sh" ; then
24825 ac_cv_c_itclconfig=`(cd ${with_itclconfig}; pwd)`
24827 { { echo "$as_me:$LINENO: error: ${with_itclconfig} directory doesn't contain itclConfig.sh" >&5
24828 echo "$as_me: error: ${with_itclconfig} directory doesn't contain itclConfig.sh" >&2;}
24829 { (exit 1); exit 1; }; }
24833 # then check for a private Itcl library
24834 if test x"${ac_cv_c_itclconfig}" = x ; then
24837 `ls -dr ../itcl[4-9]*/itcl 2>/dev/null` \
24839 `ls -dr ../../itcl[4-9]*/itcl 2>/dev/null` \
24841 `ls -dr ../../../itcl[4-9]*/itcl 2>/dev/null` ; do
24842 if test -f "$i/itclConfig.sh" ; then
24843 ac_cv_c_itclconfig=`(cd $i; pwd)`
24848 # check in a few common install locations
24849 if test x"${ac_cv_c_itclconfig}" = x ; then
24850 for i in `ls -d ${prefix}/lib /usr/local/lib 2>/dev/null` ; do
24851 if test -f "$i/itclConfig.sh" ; then
24852 ac_cv_c_itclconfig=`(cd $i; pwd)`
24857 # check in a few other private locations
24858 if test x"${ac_cv_c_itclconfig}" = x ; then
24860 ${srcdir}/../itcl/itcl \
24861 `ls -dr ${srcdir}/../itcl[4-9]*/itcl 2>/dev/null` ; do
24862 if test -f "$i/itclConfig.sh" ; then
24863 ac_cv_c_itclconfig=`(cd $i; pwd)`
24871 if test x"${ac_cv_c_itclconfig}" = x ; then
24872 ITCLCONFIG="# no Itcl configs found"
24873 { echo "$as_me:$LINENO: WARNING: Can't find Itcl configuration definitions" >&5
24874 echo "$as_me: WARNING: Can't find Itcl configuration definitions" >&2;}
24877 ITCLCONFIG=${ac_cv_c_itclconfig}/itclConfig.sh
24878 echo "$as_me:$LINENO: result: found $ITCLCONFIG" >&5
24879 echo "${ECHO_T}found $ITCLCONFIG" >&6
24883 if test -z "${no_itcl}"; then
24885 if test -f "$ITCLCONFIG" ; then
24900 ITCLLIB="${ITCL_BUILD_LIB_SPEC}"
24901 ITCL_DEPS="${ITCL_LIB_FULL_PATH}"
24905 # now look for Itk library stuff
24908 # Ok, lets find the itk configuration
24909 # First, look for one uninstalled.
24910 # the alternative search directory is invoked by --with-itkconfig
24913 if test x"${no_itk}" = x ; then
24914 # we reset no_itk in case something fails here
24917 # Check whether --with-itkconfig or --without-itkconfig was given.
24918 if test "${with_itkconfig+set}" = set; then
24919 withval="$with_itkconfig"
24920 with_itkconfig=${withval}
24922 echo "$as_me:$LINENO: checking for Itk configuration" >&5
24923 echo $ECHO_N "checking for Itk configuration... $ECHO_C" >&6
24924 if test "${ac_cv_c_itkconfig+set}" = set; then
24925 echo $ECHO_N "(cached) $ECHO_C" >&6
24929 # First check to see if --with-itkconfig was specified.
24930 if test x"${with_itkconfig}" != x ; then
24931 if test -f "${with_itkconfig}/itkConfig.sh" ; then
24932 ac_cv_c_itkconfig=`(cd ${with_itkconfig}; pwd)`
24934 { { echo "$as_me:$LINENO: error: ${with_itkconfig} directory doesn't contain itkConfig.sh" >&5
24935 echo "$as_me: error: ${with_itkconfig} directory doesn't contain itkConfig.sh" >&2;}
24936 { (exit 1); exit 1; }; }
24940 # then check for a private Itk library
24941 if test x"${ac_cv_c_itkconfig}" = x ; then
24944 `ls -dr ../itcl[4-9]*/itk 2>/dev/null` \
24946 `ls -dr ../../itcl[4-9]*/itk 2>/dev/null` \
24948 `ls -dr ../../../itcl[4-9]*/itk 2>/dev/null` ; do
24949 if test -f "$i/itkConfig.sh" ; then
24950 ac_cv_c_itkconfig=`(cd $i; pwd)`
24955 # check in a few common install locations
24956 if test x"${ac_cv_c_itkconfig}" = x ; then
24957 for i in `ls -d ${prefix}/lib /usr/local/lib 2>/dev/null` ; do
24958 if test -f "$i/itkConfig.sh" ; then
24959 ac_cv_c_itkconfig=`(cd $i; pwd)`
24964 # check in a few other private locations
24965 if test x"${ac_cv_c_itkconfig}" = x ; then
24967 ${srcdir}/../itcl/itk \
24968 `ls -dr ${srcdir}/../itcl[4-9]*/itk 2>/dev/null` ; do
24969 if test -f "$i/itkConfig.sh" ; then
24970 ac_cv_c_itkconfig=`(cd $i; pwd)`
24978 if test x"${ac_cv_c_itkconfig}" = x ; then
24979 ITKCONFIG="# no Itk configs found"
24980 { echo "$as_me:$LINENO: WARNING: Can't find Itk configuration definitions" >&5
24981 echo "$as_me: WARNING: Can't find Itk configuration definitions" >&2;}
24984 ITKCONFIG=${ac_cv_c_itkconfig}/itkConfig.sh
24985 echo "$as_me:$LINENO: result: found $ITKCONFIG" >&5
24986 echo "${ECHO_T}found $ITKCONFIG" >&6
24991 if test -z "${no_itcl}"; then
24993 if test -f "$ITKCONFIG" ; then
25008 ITKLIB="${ITK_BUILD_LIB_SPEC}"
25009 ITK_DEPS="${ITK_LIB_FULL_PATH}"
25012 ENABLE_CFLAGS="${ENABLE_CFLAGS} \$(SUBDIR_GDBTK_CFLAGS)"
25014 # Include some libraries that Tcl and Tk want.
25015 TCL_LIBS='$(LIBGUI) $(ITCL) $(ITK) $(TK) $(TCL) $(X11_LDFLAGS) $(X11_LIBS)'
25016 # Yes, the ordering seems wrong here. But it isn't.
25017 # TK_LIBS is the list of libraries that need to be linked
25018 # after Tcl/Tk. Note that this isn't put into LIBS. If it
25019 # were in LIBS then any link tests after this point would
25020 # try to include things like `$(LIBGUI)', which wouldn't work.
25021 GDBTKLIBS="${TCL_LIBS} ${TK_LIBS}"
25023 CONFIG_OBS="${CONFIG_OBS} \$(SUBDIR_GDBTK_OBS)"
25024 CONFIG_DEPS="${CONFIG_DEPS} \$(SUBDIR_GDBTK_DEPS)"
25025 CONFIG_SRCS="${CONFIG_SRCS} \$(SUBDIR_GDBTK_SRCS)"
25026 CONFIG_ALL="${CONFIG_ALL} all-gdbtk"
25027 CONFIG_CLEAN="${CONFIG_CLEAN} clean-gdbtk"
25028 CONFIG_INSTALL="${CONFIG_INSTALL} install-gdbtk"
25029 CONFIG_UNINSTALL="${CONFIG_UNINSTALL} uninstall-gdbtk"
25031 if test x$gdb_cv_os_cygwin = xyes; then
25032 WIN32LIBS="${WIN32LIBS} -lshell32 -lgdi32 -lcomdlg32 -ladvapi32"
25033 WIN32LDAPP="-Wl,--subsystem,console"
25034 CONFIG_OBS="${CONFIG_OBS} gdbres.o"
25041 subdirs="$subdirs gdbtk"
25058 echo "$as_me:$LINENO: checking for X" >&5
25059 echo $ECHO_N "checking for X... $ECHO_C" >&6
25062 # Check whether --with-x or --without-x was given.
25063 if test "${with_x+set}" = set; then
25067 # $have_x is `yes', `no', `disabled', or empty when we do not yet know.
25068 if test "x$with_x" = xno; then
25069 # The user explicitly disabled X.
25072 if test "x$x_includes" != xNONE && test "x$x_libraries" != xNONE; then
25073 # Both variables are already set.
25076 if test "${ac_cv_have_x+set}" = set; then
25077 echo $ECHO_N "(cached) $ECHO_C" >&6
25079 # One or both of the vars are not set, and there is no cached value.
25080 ac_x_includes=no ac_x_libraries=no
25081 rm -fr conftest.dir
25082 if mkdir conftest.dir; then
25084 # Make sure to not put "make" in the Imakefile rules, since we grep it out.
25085 cat >Imakefile <<'_ACEOF'
25087 @echo 'ac_im_incroot="${INCROOT}"; ac_im_usrlibdir="${USRLIBDIR}"; ac_im_libdir="${LIBDIR}"'
25089 if (xmkmf) >/dev/null 2>/dev/null && test -f Makefile; then
25090 # GNU make sometimes prints "make[1]: Entering...", which would confuse us.
25091 eval `${MAKE-make} acfindx 2>/dev/null | grep -v make`
25092 # Open Windows xmkmf reportedly sets LIBDIR instead of USRLIBDIR.
25093 for ac_extension in a so sl; do
25094 if test ! -f $ac_im_usrlibdir/libX11.$ac_extension &&
25095 test -f $ac_im_libdir/libX11.$ac_extension; then
25096 ac_im_usrlibdir=$ac_im_libdir; break
25099 # Screen out bogus values from the imake configuration. They are
25100 # bogus both because they are the default anyway, and because
25101 # using them would break gcc on systems where it needs fixed includes.
25102 case $ac_im_incroot in
25104 *) test -f "$ac_im_incroot/X11/Xos.h" && ac_x_includes=$ac_im_incroot;;
25106 case $ac_im_usrlibdir in
25107 /usr/lib | /lib) ;;
25108 *) test -d "$ac_im_usrlibdir" && ac_x_libraries=$ac_im_usrlibdir ;;
25112 rm -fr conftest.dir
25115 # Standard set of common directories for X headers.
25116 # Check X11 before X11Rn because it is often a symlink to the current release.
25128 /usr/local/X11/include
25129 /usr/local/X11R6/include
25130 /usr/local/X11R5/include
25131 /usr/local/X11R4/include
25133 /usr/local/include/X11
25134 /usr/local/include/X11R6
25135 /usr/local/include/X11R5
25136 /usr/local/include/X11R4
25140 /usr/XFree86/include/X11
25144 /usr/unsupported/include
25145 /usr/athena/include
25146 /usr/local/x11r5/include
25147 /usr/lpp/Xamples/include
25149 /usr/openwin/include
25150 /usr/openwin/share/include'
25152 if test "$ac_x_includes" = no; then
25153 # Guess where to find include files, by looking for Intrinsic.h.
25154 # First, try using that file with no special directory specified.
25155 cat >conftest.$ac_ext <<_ACEOF
25158 cat confdefs.h >>conftest.$ac_ext
25159 cat >>conftest.$ac_ext <<_ACEOF
25160 /* end confdefs.h. */
25161 #include <X11/Intrinsic.h>
25163 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
25164 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
25166 grep -v '^ *+' conftest.er1 >conftest.err
25168 cat conftest.err >&5
25169 echo "$as_me:$LINENO: \$? = $ac_status" >&5
25170 (exit $ac_status); } >/dev/null; then
25171 if test -s conftest.err; then
25172 ac_cpp_err=$ac_c_preproc_warn_flag
25173 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
25180 if test -z "$ac_cpp_err"; then
25181 # We can compile using X headers with no special include directory.
25184 echo "$as_me: failed program was:" >&5
25185 sed 's/^/| /' conftest.$ac_ext >&5
25187 for ac_dir in $ac_x_header_dirs; do
25188 if test -r "$ac_dir/X11/Intrinsic.h"; then
25189 ac_x_includes=$ac_dir
25194 rm -f conftest.err conftest.$ac_ext
25195 fi # $ac_x_includes = no
25197 if test "$ac_x_libraries" = no; then
25198 # Check for the libraries.
25199 # See if we find them without any special options.
25200 # Don't add to $LIBS permanently.
25203 cat >conftest.$ac_ext <<_ACEOF
25206 cat confdefs.h >>conftest.$ac_ext
25207 cat >>conftest.$ac_ext <<_ACEOF
25208 /* end confdefs.h. */
25209 #include <X11/Intrinsic.h>
25218 rm -f conftest.$ac_objext conftest$ac_exeext
25219 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
25220 (eval $ac_link) 2>conftest.er1
25222 grep -v '^ *+' conftest.er1 >conftest.err
25224 cat conftest.err >&5
25225 echo "$as_me:$LINENO: \$? = $ac_status" >&5
25226 (exit $ac_status); } &&
25227 { ac_try='test -z "$ac_c_werror_flag"
25228 || test ! -s conftest.err'
25229 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
25230 (eval $ac_try) 2>&5
25232 echo "$as_me:$LINENO: \$? = $ac_status" >&5
25233 (exit $ac_status); }; } &&
25234 { ac_try='test -s conftest$ac_exeext'
25235 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
25236 (eval $ac_try) 2>&5
25238 echo "$as_me:$LINENO: \$? = $ac_status" >&5
25239 (exit $ac_status); }; }; then
25241 # We can link X programs with no special library path.
25244 echo "$as_me: failed program was:" >&5
25245 sed 's/^/| /' conftest.$ac_ext >&5
25248 for ac_dir in `echo "$ac_x_includes $ac_x_header_dirs" | sed s/include/lib/g`
25250 # Don't even attempt the hair of trying to link an X program!
25251 for ac_extension in a so sl; do
25252 if test -r $ac_dir/libXt.$ac_extension; then
25253 ac_x_libraries=$ac_dir
25259 rm -f conftest.err conftest.$ac_objext \
25260 conftest$ac_exeext conftest.$ac_ext
25261 fi # $ac_x_libraries = no
25263 if test "$ac_x_includes" = no || test "$ac_x_libraries" = no; then
25264 # Didn't find X anywhere. Cache the known absence of X.
25265 ac_cv_have_x="have_x=no"
25267 # Record where we found X for the cache.
25268 ac_cv_have_x="have_x=yes \
25269 ac_x_includes=$ac_x_includes ac_x_libraries=$ac_x_libraries"
25274 eval "$ac_cv_have_x"
25277 if test "$have_x" != yes; then
25278 echo "$as_me:$LINENO: result: $have_x" >&5
25279 echo "${ECHO_T}$have_x" >&6
25282 # If each of the values was on the command line, it overrides each guess.
25283 test "x$x_includes" = xNONE && x_includes=$ac_x_includes
25284 test "x$x_libraries" = xNONE && x_libraries=$ac_x_libraries
25285 # Update the cache value to reflect the command line values.
25286 ac_cv_have_x="have_x=yes \
25287 ac_x_includes=$x_includes ac_x_libraries=$x_libraries"
25288 echo "$as_me:$LINENO: result: libraries $x_libraries, headers $x_includes" >&5
25289 echo "${ECHO_T}libraries $x_libraries, headers $x_includes" >&6
25293 # Check whether we should enable the TUI, but only do so if we really
25295 if test x"$enable_tui" = xyes; then
25296 if test -d $srcdir/tui; then
25297 if test "$ac_cv_search_waddstr" != no; then
25298 CONFIG_OBS="$CONFIG_OBS \$(SUBDIR_TUI_OBS)"
25299 CONFIG_DEPS="$CONFIG_DEPS \$(SUBDIR_TUI_DEPS)"
25300 CONFIG_SRCS="$CONFIG_SRCS \$(SUBDIR_TUI_SRCS)"
25301 CONFIG_INITS="$CONFIG_INITS \$(SUBDIR_TUI_INITS)"
25302 ENABLE_CFLAGS="$ENABLE_CFLAGS \$(SUBDIR_TUI_CFLAGS)"
25303 CONFIG_ALL="${CONFIG_ALL} all-tui"
25304 CONFIG_CLEAN="${CONFIG_CLEAN} clean-tui"
25305 CONFIG_INSTALL="${CONFIG_INSTALL} install-tui"
25306 CONFIG_UNINSTALL="${CONFIG_UNINSTALL} uninstall-tui"
25308 { echo "$as_me:$LINENO: WARNING: no enhanced curses library found; disabling TUI" >&5
25309 echo "$as_me: WARNING: no enhanced curses library found; disabling TUI" >&2;}
25314 # Unlike the sim directory, whether a simulator is linked is controlled by
25315 # presence of a gdb_sim definition in the target configure.tgt entry.
25316 # This code just checks for a few cases where we'd like to ignore those
25317 # definitions, even when they're present in the '.mt' file. These cases
25318 # are when --disable-sim is specified, or if the simulator directory is
25319 # not part of the source tree.
25321 # Check whether --enable-sim or --disable-sim was given.
25322 if test "${enable_sim+set}" = set; then
25323 enableval="$enable_sim"
25324 echo "enable_sim = $enable_sim";
25325 echo "enableval = ${enableval}";
25326 case "${enableval}" in
25327 yes) ignore_sim=false ;;
25328 no) ignore_sim=true ;;
25329 *) ignore_sim=false ;;
25335 if test ! -d "${srcdir}/../sim"; then
25341 if test "${ignore_sim}" = "false"; then
25342 if test x"${gdb_sim}" != x ; then
25344 SIM_OBS="remote-sim.o"
25346 cat >>confdefs.h <<\_ACEOF
25366 # List of host floatformats.
25368 cat >>confdefs.h <<_ACEOF
25369 #define GDB_HOST_FLOAT_FORMAT $gdb_host_float_format
25373 cat >>confdefs.h <<_ACEOF
25374 #define GDB_HOST_DOUBLE_FORMAT $gdb_host_double_format
25378 cat >>confdefs.h <<_ACEOF
25379 #define GDB_HOST_LONG_DOUBLE_FORMAT $gdb_host_long_double_format
25383 # target_subdir is used by the testsuite to find the target libraries.
25385 if test "${host}" != "${target}"; then
25386 target_subdir="${target_alias}/"
25391 if test "${gdb_native}" = "yes"; then
25392 host_makefile_frag=${srcdir}/config/${gdb_host_cpu}/${gdb_host}.mh
25393 if test ! -f ${host_makefile_frag}; then
25394 { { echo "$as_me:$LINENO: error: \"*** Gdb does not support native target ${host}\"" >&5
25395 echo "$as_me: error: \"*** Gdb does not support native target ${host}\"" >&2;}
25396 { (exit 1); exit 1; }; }
25398 frags="$frags $host_makefile_frag"
25400 host_makefile_frag=/dev/null
25406 if test "${gdb_native}" = "yes"; then
25407 # We pick this up from the host configuration file (.mh) because we
25408 # do not have a native configuration Makefile fragment.
25409 nativefile=`sed -n '
25410 s/NAT_FILE[ ]*=[ ]*\([^ ]*\)/\1/p
25411 ' ${host_makefile_frag}`
25415 if test x"${gdb_osabi}" != x ; then
25417 cat >>confdefs.h <<_ACEOF
25418 #define GDB_OSABI_DEFAULT $gdb_osabi
25423 # Enable multi-ice-gdb-server.
25424 # Check whether --enable-multi-ice or --disable-multi-ice was given.
25425 if test "${enable_multi_ice+set}" = set; then
25426 enableval="$enable_multi_ice"
25430 *) { { echo "$as_me:$LINENO: error: bad value $enableval for --enable-multi-ice" >&5
25431 echo "$as_me: error: bad value $enableval for --enable-multi-ice" >&2;}
25432 { (exit 1); exit 1; }; } ;;
25435 if test "x$enable_multi_ice" = xyes; then
25438 subdirs="$subdirs multi-ice"
25442 # We only build gdbserver automatically in a native configuration.
25443 if test "$gdb_native" = "yes"; then
25444 echo "$as_me:$LINENO: checking whether gdbserver is supported on this host" >&5
25445 echo $ECHO_N "checking whether gdbserver is supported on this host... $ECHO_C" >&6
25446 if test "x$build_gdbserver" = xyes; then
25447 echo "$as_me:$LINENO: result: yes" >&5
25448 echo "${ECHO_T}yes" >&6
25451 subdirs="$subdirs gdbserver"
25454 echo "$as_me:$LINENO: result: no" >&5
25455 echo "${ECHO_T}no" >&6
25459 # If nativefile (NAT_FILE) is not set in config/*/*.m[ht] files, we link
25460 # to an empty version.
25467 if test "${nativefile}" != ""; then
25469 case "${nativefile}" in
25470 nm-*.h ) GDB_NM_FILE="config/${gdb_host_cpu}/${nativefile}" ;;
25471 * ) GDB_NM_FILE="${nativefile}"
25473 files="${files} ${GDB_NM_FILE}"
25474 links="${links} nm.h"
25476 cat >>confdefs.h <<_ACEOF
25477 #define GDB_NM_FILE "${GDB_NM_FILE}"
25483 ac_sources="$files"
25485 while test -n "$ac_sources"; do
25486 set $ac_dests; ac_dest=$1; shift; ac_dests=$*
25487 set $ac_sources; ac_source=$1; shift; ac_sources=$*
25488 ac_config_links_1="$ac_config_links_1 $ac_dest:$ac_source"
25490 ac_config_links="$ac_config_links $ac_config_links_1"
25497 cat >>confdefs.h <<\_ACEOF
25498 #define GDB_DEFAULT_HOST_CHARSET "ISO-8859-1"
25505 # Check whether --with-libiconv-prefix or --without-libiconv-prefix was given.
25506 if test "${with_libiconv_prefix+set}" = set; then
25507 withval="$with_libiconv_prefix"
25509 for dir in `echo "$withval" | tr : ' '`; do
25510 if test -d $dir/include; then CPPFLAGS="$CPPFLAGS -I$dir/include"; fi
25511 if test -d $dir/lib; then LDFLAGS="$LDFLAGS -L$dir/lib"; fi
25516 echo "$as_me:$LINENO: checking for iconv" >&5
25517 echo $ECHO_N "checking for iconv... $ECHO_C" >&6
25518 if test "${am_cv_func_iconv+set}" = set; then
25519 echo $ECHO_N "(cached) $ECHO_C" >&6
25522 am_cv_func_iconv="no, consider installing GNU libiconv"
25524 cat >conftest.$ac_ext <<_ACEOF
25527 cat confdefs.h >>conftest.$ac_ext
25528 cat >>conftest.$ac_ext <<_ACEOF
25529 /* end confdefs.h. */
25530 #include <stdlib.h>
25535 iconv_t cd = iconv_open("","");
25536 iconv(cd,NULL,NULL,NULL,NULL);
25542 rm -f conftest.$ac_objext conftest$ac_exeext
25543 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
25544 (eval $ac_link) 2>conftest.er1
25546 grep -v '^ *+' conftest.er1 >conftest.err
25548 cat conftest.err >&5
25549 echo "$as_me:$LINENO: \$? = $ac_status" >&5
25550 (exit $ac_status); } &&
25551 { ac_try='test -z "$ac_c_werror_flag"
25552 || test ! -s conftest.err'
25553 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
25554 (eval $ac_try) 2>&5
25556 echo "$as_me:$LINENO: \$? = $ac_status" >&5
25557 (exit $ac_status); }; } &&
25558 { ac_try='test -s conftest$ac_exeext'
25559 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
25560 (eval $ac_try) 2>&5
25562 echo "$as_me:$LINENO: \$? = $ac_status" >&5
25563 (exit $ac_status); }; }; then
25564 am_cv_func_iconv=yes
25566 echo "$as_me: failed program was:" >&5
25567 sed 's/^/| /' conftest.$ac_ext >&5
25570 rm -f conftest.err conftest.$ac_objext \
25571 conftest$ac_exeext conftest.$ac_ext
25572 if test "$am_cv_func_iconv" != yes; then
25573 am_save_LIBS="$LIBS"
25574 LIBS="$LIBS -liconv"
25575 cat >conftest.$ac_ext <<_ACEOF
25578 cat confdefs.h >>conftest.$ac_ext
25579 cat >>conftest.$ac_ext <<_ACEOF
25580 /* end confdefs.h. */
25581 #include <stdlib.h>
25586 iconv_t cd = iconv_open("","");
25587 iconv(cd,NULL,NULL,NULL,NULL);
25593 rm -f conftest.$ac_objext conftest$ac_exeext
25594 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
25595 (eval $ac_link) 2>conftest.er1
25597 grep -v '^ *+' conftest.er1 >conftest.err
25599 cat conftest.err >&5
25600 echo "$as_me:$LINENO: \$? = $ac_status" >&5
25601 (exit $ac_status); } &&
25602 { ac_try='test -z "$ac_c_werror_flag"
25603 || test ! -s conftest.err'
25604 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
25605 (eval $ac_try) 2>&5
25607 echo "$as_me:$LINENO: \$? = $ac_status" >&5
25608 (exit $ac_status); }; } &&
25609 { ac_try='test -s conftest$ac_exeext'
25610 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
25611 (eval $ac_try) 2>&5
25613 echo "$as_me:$LINENO: \$? = $ac_status" >&5
25614 (exit $ac_status); }; }; then
25615 am_cv_lib_iconv=yes
25616 am_cv_func_iconv=yes
25618 echo "$as_me: failed program was:" >&5
25619 sed 's/^/| /' conftest.$ac_ext >&5
25622 rm -f conftest.err conftest.$ac_objext \
25623 conftest$ac_exeext conftest.$ac_ext
25624 LIBS="$am_save_LIBS"
25628 echo "$as_me:$LINENO: result: $am_cv_func_iconv" >&5
25629 echo "${ECHO_T}$am_cv_func_iconv" >&6
25630 if test "$am_cv_func_iconv" = yes; then
25632 cat >>confdefs.h <<\_ACEOF
25633 #define HAVE_ICONV 1
25636 echo "$as_me:$LINENO: checking for iconv declaration" >&5
25637 echo $ECHO_N "checking for iconv declaration... $ECHO_C" >&6
25638 if test "${am_cv_proto_iconv+set}" = set; then
25639 echo $ECHO_N "(cached) $ECHO_C" >&6
25642 cat >conftest.$ac_ext <<_ACEOF
25645 cat confdefs.h >>conftest.$ac_ext
25646 cat >>conftest.$ac_ext <<_ACEOF
25647 /* end confdefs.h. */
25649 #include <stdlib.h>
25655 #if defined(__STDC__) || defined(__cplusplus)
25656 size_t iconv (iconv_t cd, char * *inbuf, size_t *inbytesleft, char * *outbuf, size_t *outbytesleft);
25669 rm -f conftest.$ac_objext
25670 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
25671 (eval $ac_compile) 2>conftest.er1
25673 grep -v '^ *+' conftest.er1 >conftest.err
25675 cat conftest.err >&5
25676 echo "$as_me:$LINENO: \$? = $ac_status" >&5
25677 (exit $ac_status); } &&
25678 { ac_try='test -z "$ac_c_werror_flag"
25679 || test ! -s conftest.err'
25680 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
25681 (eval $ac_try) 2>&5
25683 echo "$as_me:$LINENO: \$? = $ac_status" >&5
25684 (exit $ac_status); }; } &&
25685 { ac_try='test -s conftest.$ac_objext'
25686 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
25687 (eval $ac_try) 2>&5
25689 echo "$as_me:$LINENO: \$? = $ac_status" >&5
25690 (exit $ac_status); }; }; then
25691 am_cv_proto_iconv_arg1=""
25693 echo "$as_me: failed program was:" >&5
25694 sed 's/^/| /' conftest.$ac_ext >&5
25696 am_cv_proto_iconv_arg1="const"
25698 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
25699 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);"
25702 am_cv_proto_iconv=`echo "$am_cv_proto_iconv" | tr -s ' ' | sed -e 's/( /(/'`
25703 echo "$as_me:$LINENO: result: ${ac_t:-
25704 }$am_cv_proto_iconv" >&5
25705 echo "${ECHO_T}${ac_t:-
25706 }$am_cv_proto_iconv" >&6
25708 cat >>confdefs.h <<_ACEOF
25709 #define ICONV_CONST $am_cv_proto_iconv_arg1
25714 if test "$am_cv_lib_iconv" = yes; then
25720 ac_config_files="$ac_config_files Makefile .gdbinit:gdbinit.in gnulib/Makefile"
25721 ac_config_commands="$ac_config_commands default"
25722 cat >confcache <<\_ACEOF
25723 # This file is a shell script that caches the results of configure
25724 # tests run on this system so they can be shared between configure
25725 # scripts and configure runs, see configure's option --config-cache.
25726 # It is not useful on other systems. If it contains results you don't
25727 # want to keep, you may remove or edit it.
25729 # config.status only pays attention to the cache file if you give it
25730 # the --recheck option to rerun configure.
25732 # `ac_cv_env_foo' variables (set or unset) will be overridden when
25733 # loading this file, other *unset* `ac_cv_foo' will be assigned the
25734 # following values.
25738 # The following way of writing the cache mishandles newlines in values,
25739 # but we know of no workaround that is simple, portable, and efficient.
25740 # So, don't put newlines in cache variables' values.
25741 # Ultrix sh set writes to stderr and can't be redirected directly,
25742 # and sets the high bit in the cache file unless we assign to the vars.
25745 case `(ac_space=' '; set | grep ac_space) 2>&1` in
25747 # `set' does not quote correctly, so add quotes (double-quote
25748 # substitution turns \\\\ into \\, and sed turns \\ into \).
25751 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p"
25754 # `set' quotes correctly as required by POSIX, so do not add quotes.
25756 "s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1=\\2/p"
25763 s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/
25765 /^ac_cv_env/!s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/
25767 if diff $cache_file confcache >/dev/null 2>&1; then :; else
25768 if test -w $cache_file; then
25769 test "x$cache_file" != "x/dev/null" && echo "updating cache $cache_file"
25770 cat confcache >$cache_file
25772 echo "not updating unwritable cache $cache_file"
25777 test "x$prefix" = xNONE && prefix=$ac_default_prefix
25778 # Let make expand exec_prefix.
25779 test "x$exec_prefix" = xNONE && exec_prefix='${prefix}'
25781 # VPATH may cause trouble with some makes, so we remove $(srcdir),
25782 # ${srcdir} and @srcdir@ from VPATH if srcdir is ".", strip leading and
25783 # trailing colons and then remove the whole line if VPATH becomes empty
25784 # (actually we leave an empty line to preserve line numbers).
25785 if test "x$srcdir" = x.; then
25786 ac_vpsub='/^[ ]*VPATH[ ]*=/{
25787 s/:*\$(srcdir):*/:/;
25788 s/:*\${srcdir}:*/:/;
25790 s/^\([^=]*=[ ]*\):*/\1/;
25796 DEFS=-DHAVE_CONFIG_H
25800 for ac_i in : $LIBOBJS; do test "x$ac_i" = x: && continue
25801 # 1. Remove the extension, and $U if already installed.
25802 ac_i=`echo "$ac_i" |
25803 sed 's/\$U\././;s/\.o$//;s/\.obj$//'`
25805 ac_libobjs="$ac_libobjs $ac_i\$U.$ac_objext"
25806 ac_ltlibobjs="$ac_ltlibobjs $ac_i"'$U.lo'
25808 LIBOBJS=$ac_libobjs
25810 LTLIBOBJS=$ac_ltlibobjs
25813 if test -z "${MAINTAINER_MODE_TRUE}" && test -z "${MAINTAINER_MODE_FALSE}"; then
25814 { { echo "$as_me:$LINENO: error: conditional \"MAINTAINER_MODE\" was never defined.
25815 Usually this means the macro was only invoked conditionally." >&5
25816 echo "$as_me: error: conditional \"MAINTAINER_MODE\" was never defined.
25817 Usually this means the macro was only invoked conditionally." >&2;}
25818 { (exit 1); exit 1; }; }
25820 if test -z "${GL_COND_LIBTOOL_TRUE}" && test -z "${GL_COND_LIBTOOL_FALSE}"; then
25821 { { echo "$as_me:$LINENO: error: conditional \"GL_COND_LIBTOOL\" was never defined.
25822 Usually this means the macro was only invoked conditionally." >&5
25823 echo "$as_me: error: conditional \"GL_COND_LIBTOOL\" was never defined.
25824 Usually this means the macro was only invoked conditionally." >&2;}
25825 { (exit 1); exit 1; }; }
25830 if test -n "$gl_LIBOBJS"; then
25831 # Remove the extension.
25832 sed_drop_objext='s/\.o$//;s/\.obj$//'
25833 for i in `for i in $gl_LIBOBJS; do echo "$i"; done | sed "$sed_drop_objext" | sort | uniq`; do
25834 gl_libobjs="$gl_libobjs $i.$ac_objext"
25835 gl_ltlibobjs="$gl_ltlibobjs $i.lo"
25838 gl_LIBOBJS=$gl_libobjs
25840 gl_LTLIBOBJS=$gl_ltlibobjs
25846 if test -n "$gltests_LIBOBJS"; then
25847 # Remove the extension.
25848 sed_drop_objext='s/\.o$//;s/\.obj$//'
25849 for i in `for i in $gltests_LIBOBJS; do echo "$i"; done | sed "$sed_drop_objext" | sort | uniq`; do
25850 gltests_libobjs="$gltests_libobjs $i.$ac_objext"
25851 gltests_ltlibobjs="$gltests_ltlibobjs $i.lo"
25854 gltests_LIBOBJS=$gltests_libobjs
25856 gltests_LTLIBOBJS=$gltests_ltlibobjs
25859 if test -z "${AMDEP_TRUE}" && test -z "${AMDEP_FALSE}"; then
25860 { { echo "$as_me:$LINENO: error: conditional \"AMDEP\" was never defined.
25861 Usually this means the macro was only invoked conditionally." >&5
25862 echo "$as_me: error: conditional \"AMDEP\" was never defined.
25863 Usually this means the macro was only invoked conditionally." >&2;}
25864 { (exit 1); exit 1; }; }
25866 if test -z "${am__fastdepCC_TRUE}" && test -z "${am__fastdepCC_FALSE}"; then
25867 { { echo "$as_me:$LINENO: error: conditional \"am__fastdepCC\" was never defined.
25868 Usually this means the macro was only invoked conditionally." >&5
25869 echo "$as_me: error: conditional \"am__fastdepCC\" was never defined.
25870 Usually this means the macro was only invoked conditionally." >&2;}
25871 { (exit 1); exit 1; }; }
25874 : ${CONFIG_STATUS=./config.status}
25875 ac_clean_files_save=$ac_clean_files
25876 ac_clean_files="$ac_clean_files $CONFIG_STATUS"
25877 { echo "$as_me:$LINENO: creating $CONFIG_STATUS" >&5
25878 echo "$as_me: creating $CONFIG_STATUS" >&6;}
25879 cat >$CONFIG_STATUS <<_ACEOF
25881 # Generated by $as_me.
25882 # Run this file to recreate the current configuration.
25883 # Compiler output produced by configure, useful for debugging
25884 # configure, is in config.log if it exists.
25887 ac_cs_recheck=false
25889 SHELL=\${CONFIG_SHELL-$SHELL}
25892 cat >>$CONFIG_STATUS <<\_ACEOF
25893 ## --------------------- ##
25894 ## M4sh Initialization. ##
25895 ## --------------------- ##
25897 # Be Bourne compatible
25898 if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then
25901 # Zsh 3.x and 4.x performs word splitting on ${1+"$@"}, which
25902 # is contrary to our usage. Disable this feature.
25903 alias -g '${1+"$@"}'='"$@"'
25904 elif test -n "${BASH_VERSION+set}" && (set -o posix) >/dev/null 2>&1; then
25907 DUALCASE=1; export DUALCASE # for MKS sh
25909 # Support unset when possible.
25910 if ( (MAIL=60; unset MAIL) || exit) >/dev/null 2>&1; then
25917 # Work around bugs in pre-3.0 UWIN ksh.
25918 $as_unset ENV MAIL MAILPATH
25925 LANG LANGUAGE LC_ADDRESS LC_ALL LC_COLLATE LC_CTYPE LC_IDENTIFICATION \
25926 LC_MEASUREMENT LC_MESSAGES LC_MONETARY LC_NAME LC_NUMERIC LC_PAPER \
25927 LC_TELEPHONE LC_TIME
25929 if (set +x; test -z "`(eval $as_var=C; export $as_var) 2>&1`"); then
25930 eval $as_var=C; export $as_var
25936 # Required to use basename.
25937 if expr a : '\(a\)' >/dev/null 2>&1; then
25943 if (basename /) >/dev/null 2>&1 && test "X`basename / 2>&1`" = "X/"; then
25944 as_basename=basename
25950 # Name of the executable.
25951 as_me=`$as_basename "$0" ||
25952 $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
25953 X"$0" : 'X\(//\)$' \| \
25954 X"$0" : 'X\(/\)$' \| \
25955 . : '\(.\)' 2>/dev/null ||
25957 sed '/^.*\/\([^/][^/]*\)\/*$/{ s//\1/; q; }
25958 /^X\/\(\/\/\)$/{ s//\1/; q; }
25959 /^X\/\(\/\).*/{ s//\1/; q; }
25963 # PATH needs CR, and LINENO needs CR and PATH.
25964 # Avoid depending upon Character Ranges.
25965 as_cr_letters='abcdefghijklmnopqrstuvwxyz'
25966 as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
25967 as_cr_Letters=$as_cr_letters$as_cr_LETTERS
25968 as_cr_digits='0123456789'
25969 as_cr_alnum=$as_cr_Letters$as_cr_digits
25971 # The user is always right.
25972 if test "${PATH_SEPARATOR+set}" != set; then
25973 echo "#! /bin/sh" >conf$$.sh
25974 echo "exit 0" >>conf$$.sh
25976 if (PATH="/nonexistent;."; conf$$.sh) >/dev/null 2>&1; then
25985 as_lineno_1=$LINENO
25986 as_lineno_2=$LINENO
25987 as_lineno_3=`(expr $as_lineno_1 + 1) 2>/dev/null`
25988 test "x$as_lineno_1" != "x$as_lineno_2" &&
25989 test "x$as_lineno_3" = "x$as_lineno_2" || {
25990 # Find who we are. Look in the path if we contain no path at all
25993 *[\\/]* ) as_myself=$0 ;;
25994 *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
25995 for as_dir in $PATH
25998 test -z "$as_dir" && as_dir=.
25999 test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
26004 # We did not find ourselves, most probably we were run as `sh COMMAND'
26005 # in which case we are not to be found in the path.
26006 if test "x$as_myself" = x; then
26009 if test ! -f "$as_myself"; then
26010 { { echo "$as_me:$LINENO: error: cannot find myself; rerun with an absolute path" >&5
26011 echo "$as_me: error: cannot find myself; rerun with an absolute path" >&2;}
26012 { (exit 1); exit 1; }; }
26014 case $CONFIG_SHELL in
26016 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
26017 for as_dir in /bin$PATH_SEPARATOR/usr/bin$PATH_SEPARATOR$PATH
26020 test -z "$as_dir" && as_dir=.
26021 for as_base in sh bash ksh sh5; do
26024 if ("$as_dir/$as_base" -c '
26025 as_lineno_1=$LINENO
26026 as_lineno_2=$LINENO
26027 as_lineno_3=`(expr $as_lineno_1 + 1) 2>/dev/null`
26028 test "x$as_lineno_1" != "x$as_lineno_2" &&
26029 test "x$as_lineno_3" = "x$as_lineno_2" ') 2>/dev/null; then
26030 $as_unset BASH_ENV || test "${BASH_ENV+set}" != set || { BASH_ENV=; export BASH_ENV; }
26031 $as_unset ENV || test "${ENV+set}" != set || { ENV=; export ENV; }
26032 CONFIG_SHELL=$as_dir/$as_base
26033 export CONFIG_SHELL
26034 exec "$CONFIG_SHELL" "$0" ${1+"$@"}
26042 # Create $as_me.lineno as a copy of $as_myself, but with $LINENO
26043 # uniformly replaced by the line number. The first 'sed' inserts a
26044 # line-number line before each line; the second 'sed' does the real
26045 # work. The second script uses 'N' to pair each line-number line
26046 # with the numbered line, and appends trailing '-' during
26047 # substitution so that $LINENO is not a special case at line end.
26048 # (Raja R Harinath suggested sed '=', and Paul Eggert wrote the
26049 # second 'sed' script. Blame Lee E. McMahon for sed's syntax. :-)
26050 sed '=' <$as_myself |
26055 s,^\(['$as_cr_digits']*\)\(.*\)[$]LINENO\([^'$as_cr_alnum'_]\),\1\2\1\3,
26058 s,^['$as_cr_digits']*\n,,
26059 ' >$as_me.lineno &&
26060 chmod +x $as_me.lineno ||
26061 { { echo "$as_me:$LINENO: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&5
26062 echo "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2;}
26063 { (exit 1); exit 1; }; }
26065 # Don't try to exec as it changes $[0], causing all sort of problems
26066 # (the dirname of $[0] is not the place where we might find the
26067 # original and so on. Autoconf is especially sensible to this).
26069 # Exit status is that of the last command.
26074 case `echo "testing\c"; echo 1,2,3`,`echo -n testing; echo 1,2,3` in
26075 *c*,-n*) ECHO_N= ECHO_C='
26077 *c*,* ) ECHO_N=-n ECHO_C= ECHO_T= ;;
26078 *) ECHO_N= ECHO_C='\c' ECHO_T= ;;
26081 if expr a : '\(a\)' >/dev/null 2>&1; then
26087 rm -f conf$$ conf$$.exe conf$$.file
26089 if ln -s conf$$.file conf$$ 2>/dev/null; then
26090 # We could just check for DJGPP; but this test a) works b) is more generic
26091 # and c) will remain valid once DJGPP supports symlinks (DJGPP 2.04).
26092 if test -f conf$$.exe; then
26093 # Don't use ln at all; we don't have any links
26098 elif ln conf$$.file conf$$ 2>/dev/null; then
26103 rm -f conf$$ conf$$.exe conf$$.file
26105 if mkdir -p . 2>/dev/null; then
26108 test -d ./-p && rmdir ./-p
26112 as_executable_p="test -f"
26114 # Sed expression to map a string onto a valid CPP name.
26115 as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
26117 # Sed expression to map a string onto a valid variable name.
26118 as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
26122 # We need space, tab and new line, in precisely that order.
26132 # Open the log real soon, to keep \$[0] and so on meaningful, and to
26133 # report actual input values of CONFIG_FILES etc. instead of their
26134 # values after options handling. Logging --version etc. is OK.
26138 sed 'h;s/./-/g;s/^.../## /;s/...$/ ##/;p;x;p;x' <<_ASBOX
26139 ## Running $as_me. ##
26144 This file was extended by $as_me, which was
26145 generated by GNU Autoconf 2.59. Invocation command line was
26147 CONFIG_FILES = $CONFIG_FILES
26148 CONFIG_HEADERS = $CONFIG_HEADERS
26149 CONFIG_LINKS = $CONFIG_LINKS
26150 CONFIG_COMMANDS = $CONFIG_COMMANDS
26154 echo "on `(hostname || uname -n) 2>/dev/null | sed 1q`" >&5
26158 # Files that config.status was made for.
26159 if test -n "$ac_config_files"; then
26160 echo "config_files=\"$ac_config_files\"" >>$CONFIG_STATUS
26163 if test -n "$ac_config_headers"; then
26164 echo "config_headers=\"$ac_config_headers\"" >>$CONFIG_STATUS
26167 if test -n "$ac_config_links"; then
26168 echo "config_links=\"$ac_config_links\"" >>$CONFIG_STATUS
26171 if test -n "$ac_config_commands"; then
26172 echo "config_commands=\"$ac_config_commands\"" >>$CONFIG_STATUS
26175 cat >>$CONFIG_STATUS <<\_ACEOF
26178 \`$as_me' instantiates files from templates according to the
26179 current configuration.
26181 Usage: $0 [OPTIONS] [FILE]...
26183 -h, --help print this help, then exit
26184 -V, --version print version number, then exit
26185 -q, --quiet do not print progress messages
26186 -d, --debug don't remove temporary files
26187 --recheck update $as_me by reconfiguring in the same conditions
26188 --file=FILE[:TEMPLATE]
26189 instantiate the configuration file FILE
26190 --header=FILE[:TEMPLATE]
26191 instantiate the configuration header FILE
26193 Configuration files:
26196 Configuration headers:
26199 Configuration links:
26202 Configuration commands:
26205 Report bugs to <bug-autoconf@gnu.org>."
26208 cat >>$CONFIG_STATUS <<_ACEOF
26211 configured by $0, generated by GNU Autoconf 2.59,
26212 with options \\"`echo "$ac_configure_args" | sed 's/[\\""\`\$]/\\\\&/g'`\\"
26214 Copyright (C) 2003 Free Software Foundation, Inc.
26215 This config.status script is free software; the Free Software Foundation
26216 gives unlimited permission to copy, distribute and modify it."
26221 cat >>$CONFIG_STATUS <<\_ACEOF
26222 # If no file are specified by the user, then we need to provide default
26223 # value. By we need to know if files were specified by the user.
26229 ac_option=`expr "x$1" : 'x\([^=]*\)='`
26230 ac_optarg=`expr "x$1" : 'x[^=]*=\(.*\)'`
26238 *) # This is not an option, so the user has probably given explicit
26241 ac_need_defaults=false;;
26245 # Handling of the options.
26247 cat >>$CONFIG_STATUS <<\_ACEOF
26248 -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r)
26250 --version | --vers* | -V )
26251 echo "$ac_cs_version"; exit 0 ;;
26253 # Conflict between --help and --header
26254 { { echo "$as_me:$LINENO: error: ambiguous option: $1
26255 Try \`$0 --help' for more information." >&5
26256 echo "$as_me: error: ambiguous option: $1
26257 Try \`$0 --help' for more information." >&2;}
26258 { (exit 1); exit 1; }; };;
26259 --help | --hel | -h )
26260 echo "$ac_cs_usage"; exit 0 ;;
26261 --debug | --d* | -d )
26263 --file | --fil | --fi | --f )
26265 CONFIG_FILES="$CONFIG_FILES $ac_optarg"
26266 ac_need_defaults=false;;
26267 --header | --heade | --head | --hea )
26269 CONFIG_HEADERS="$CONFIG_HEADERS $ac_optarg"
26270 ac_need_defaults=false;;
26271 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
26272 | -silent | --silent | --silen | --sile | --sil | --si | --s)
26275 # This is an error.
26276 -*) { { echo "$as_me:$LINENO: error: unrecognized option: $1
26277 Try \`$0 --help' for more information." >&5
26278 echo "$as_me: error: unrecognized option: $1
26279 Try \`$0 --help' for more information." >&2;}
26280 { (exit 1); exit 1; }; } ;;
26282 *) ac_config_targets="$ac_config_targets $1" ;;
26288 ac_configure_extra_args=
26290 if $ac_cs_silent; then
26292 ac_configure_extra_args="$ac_configure_extra_args --silent"
26296 cat >>$CONFIG_STATUS <<_ACEOF
26297 if \$ac_cs_recheck; then
26298 echo "running $SHELL $0 " $ac_configure_args \$ac_configure_extra_args " --no-create --no-recursion" >&6
26299 exec $SHELL $0 $ac_configure_args \$ac_configure_extra_args --no-create --no-recursion
26304 cat >>$CONFIG_STATUS <<_ACEOF
26306 # INIT-COMMANDS section.
26309 AMDEP_TRUE="$AMDEP_TRUE" ac_aux_dir="$ac_aux_dir"
26311 gdb_host_cpu=$gdb_host_cpu
26312 nativefile=$nativefile
26319 cat >>$CONFIG_STATUS <<\_ACEOF
26320 for ac_config_target in $ac_config_targets
26322 case "$ac_config_target" in
26323 # Handling of arguments.
26324 "Makefile" ) CONFIG_FILES="$CONFIG_FILES Makefile" ;;
26325 ".gdbinit" ) CONFIG_FILES="$CONFIG_FILES .gdbinit:gdbinit.in" ;;
26326 "gnulib/Makefile" ) CONFIG_FILES="$CONFIG_FILES gnulib/Makefile" ;;
26327 "$ac_config_links_1" ) CONFIG_LINKS="$CONFIG_LINKS $ac_config_links_1" ;;
26328 "depfiles" ) CONFIG_COMMANDS="$CONFIG_COMMANDS depfiles" ;;
26329 "default" ) CONFIG_COMMANDS="$CONFIG_COMMANDS default" ;;
26330 "config.h" ) CONFIG_HEADERS="$CONFIG_HEADERS config.h:config.in" ;;
26331 *) { { echo "$as_me:$LINENO: error: invalid argument: $ac_config_target" >&5
26332 echo "$as_me: error: invalid argument: $ac_config_target" >&2;}
26333 { (exit 1); exit 1; }; };;
26337 # If the user did not use the arguments to specify the items to instantiate,
26338 # then the envvar interface is used. Set only those that are not.
26339 # We use the long form for the default assignment because of an extremely
26340 # bizarre bug on SunOS 4.1.3.
26341 if $ac_need_defaults; then
26342 test "${CONFIG_FILES+set}" = set || CONFIG_FILES=$config_files
26343 test "${CONFIG_HEADERS+set}" = set || CONFIG_HEADERS=$config_headers
26344 test "${CONFIG_LINKS+set}" = set || CONFIG_LINKS=$config_links
26345 test "${CONFIG_COMMANDS+set}" = set || CONFIG_COMMANDS=$config_commands
26348 # Have a temporary directory for convenience. Make it in the build tree
26349 # simply because there is no reason to put it here, and in addition,
26350 # creating and moving files from /tmp can sometimes cause problems.
26351 # Create a temporary directory, and hook for its removal unless debugging.
26354 trap 'exit_status=$?; rm -rf $tmp && exit $exit_status' 0
26355 trap '{ (exit 1); exit 1; }' 1 2 13 15
26358 # Create a (secure) tmp directory for tmp files.
26361 tmp=`(umask 077 && mktemp -d -q "./confstatXXXXXX") 2>/dev/null` &&
26362 test -n "$tmp" && test -d "$tmp"
26365 tmp=./confstat$$-$RANDOM
26366 (umask 077 && mkdir $tmp)
26369 echo "$me: cannot create a temporary directory in ." >&2
26370 { (exit 1); exit 1; }
26375 cat >>$CONFIG_STATUS <<_ACEOF
26378 # CONFIG_FILES section.
26381 # No need to generate the scripts if there are no CONFIG_FILES.
26382 # This happens for instance when ./config.status config.h
26383 if test -n "\$CONFIG_FILES"; then
26384 # Protect against being on the right side of a sed subst in config.status.
26385 sed 's/,@/@@/; s/@,/@@/; s/,;t t\$/@;t t/; /@;t t\$/s/[\\\\&,]/\\\\&/g;
26386 s/@@/,@/; s/@@/@,/; s/@;t t\$/,;t t/' >\$tmp/subs.sed <<\\CEOF
26387 s,@SHELL@,$SHELL,;t t
26388 s,@PATH_SEPARATOR@,$PATH_SEPARATOR,;t t
26389 s,@PACKAGE_NAME@,$PACKAGE_NAME,;t t
26390 s,@PACKAGE_TARNAME@,$PACKAGE_TARNAME,;t t
26391 s,@PACKAGE_VERSION@,$PACKAGE_VERSION,;t t
26392 s,@PACKAGE_STRING@,$PACKAGE_STRING,;t t
26393 s,@PACKAGE_BUGREPORT@,$PACKAGE_BUGREPORT,;t t
26394 s,@exec_prefix@,$exec_prefix,;t t
26395 s,@prefix@,$prefix,;t t
26396 s,@program_transform_name@,$program_transform_name,;t t
26397 s,@bindir@,$bindir,;t t
26398 s,@sbindir@,$sbindir,;t t
26399 s,@libexecdir@,$libexecdir,;t t
26400 s,@datadir@,$datadir,;t t
26401 s,@sysconfdir@,$sysconfdir,;t t
26402 s,@sharedstatedir@,$sharedstatedir,;t t
26403 s,@localstatedir@,$localstatedir,;t t
26404 s,@libdir@,$libdir,;t t
26405 s,@includedir@,$includedir,;t t
26406 s,@oldincludedir@,$oldincludedir,;t t
26407 s,@infodir@,$infodir,;t t
26408 s,@mandir@,$mandir,;t t
26409 s,@build_alias@,$build_alias,;t t
26410 s,@host_alias@,$host_alias,;t t
26411 s,@target_alias@,$target_alias,;t t
26412 s,@DEFS@,$DEFS,;t t
26413 s,@ECHO_C@,$ECHO_C,;t t
26414 s,@ECHO_N@,$ECHO_N,;t t
26415 s,@ECHO_T@,$ECHO_T,;t t
26416 s,@LIBS@,$LIBS,;t t
26417 s,@MAINTAINER_MODE_TRUE@,$MAINTAINER_MODE_TRUE,;t t
26418 s,@MAINTAINER_MODE_FALSE@,$MAINTAINER_MODE_FALSE,;t t
26419 s,@MAINT@,$MAINT,;t t
26421 s,@CFLAGS@,$CFLAGS,;t t
26422 s,@LDFLAGS@,$LDFLAGS,;t t
26423 s,@CPPFLAGS@,$CPPFLAGS,;t t
26424 s,@ac_ct_CC@,$ac_ct_CC,;t t
26425 s,@EXEEXT@,$EXEEXT,;t t
26426 s,@OBJEXT@,$OBJEXT,;t t
26428 s,@EGREP@,$EGREP,;t t
26429 s,@RANLIB@,$RANLIB,;t t
26430 s,@ac_ct_RANLIB@,$ac_ct_RANLIB,;t t
26431 s,@build@,$build,;t t
26432 s,@build_cpu@,$build_cpu,;t t
26433 s,@build_vendor@,$build_vendor,;t t
26434 s,@build_os@,$build_os,;t t
26435 s,@host@,$host,;t t
26436 s,@host_cpu@,$host_cpu,;t t
26437 s,@host_vendor@,$host_vendor,;t t
26438 s,@host_os@,$host_os,;t t
26439 s,@target@,$target,;t t
26440 s,@target_cpu@,$target_cpu,;t t
26441 s,@target_vendor@,$target_vendor,;t t
26442 s,@target_os@,$target_os,;t t
26443 s,@USE_NLS@,$USE_NLS,;t t
26444 s,@LIBINTL@,$LIBINTL,;t t
26445 s,@LIBINTL_DEP@,$LIBINTL_DEP,;t t
26446 s,@INCINTL@,$INCINTL,;t t
26447 s,@XGETTEXT@,$XGETTEXT,;t t
26448 s,@GMSGFMT@,$GMSGFMT,;t t
26449 s,@POSUB@,$POSUB,;t t
26450 s,@CATALOGS@,$CATALOGS,;t t
26451 s,@DATADIRNAME@,$DATADIRNAME,;t t
26452 s,@INSTOBJEXT@,$INSTOBJEXT,;t t
26453 s,@GENCAT@,$GENCAT,;t t
26454 s,@CATOBJEXT@,$CATOBJEXT,;t t
26455 s,@localedir@,$localedir,;t t
26456 s,@GL_COND_LIBTOOL_TRUE@,$GL_COND_LIBTOOL_TRUE,;t t
26457 s,@GL_COND_LIBTOOL_FALSE@,$GL_COND_LIBTOOL_FALSE,;t t
26458 s,@GNULIB_MEMMEM@,$GNULIB_MEMMEM,;t t
26459 s,@GNULIB_MEMPCPY@,$GNULIB_MEMPCPY,;t t
26460 s,@GNULIB_MEMRCHR@,$GNULIB_MEMRCHR,;t t
26461 s,@GNULIB_STPCPY@,$GNULIB_STPCPY,;t t
26462 s,@GNULIB_STPNCPY@,$GNULIB_STPNCPY,;t t
26463 s,@GNULIB_STRCHRNUL@,$GNULIB_STRCHRNUL,;t t
26464 s,@GNULIB_STRDUP@,$GNULIB_STRDUP,;t t
26465 s,@GNULIB_STRNDUP@,$GNULIB_STRNDUP,;t t
26466 s,@GNULIB_STRNLEN@,$GNULIB_STRNLEN,;t t
26467 s,@GNULIB_STRPBRK@,$GNULIB_STRPBRK,;t t
26468 s,@GNULIB_STRSEP@,$GNULIB_STRSEP,;t t
26469 s,@GNULIB_STRSTR@,$GNULIB_STRSTR,;t t
26470 s,@GNULIB_STRCASESTR@,$GNULIB_STRCASESTR,;t t
26471 s,@GNULIB_STRTOK_R@,$GNULIB_STRTOK_R,;t t
26472 s,@GNULIB_MBSLEN@,$GNULIB_MBSLEN,;t t
26473 s,@GNULIB_MBSNLEN@,$GNULIB_MBSNLEN,;t t
26474 s,@GNULIB_MBSCHR@,$GNULIB_MBSCHR,;t t
26475 s,@GNULIB_MBSRCHR@,$GNULIB_MBSRCHR,;t t
26476 s,@GNULIB_MBSSTR@,$GNULIB_MBSSTR,;t t
26477 s,@GNULIB_MBSCASECMP@,$GNULIB_MBSCASECMP,;t t
26478 s,@GNULIB_MBSNCASECMP@,$GNULIB_MBSNCASECMP,;t t
26479 s,@GNULIB_MBSPCASECMP@,$GNULIB_MBSPCASECMP,;t t
26480 s,@GNULIB_MBSCASESTR@,$GNULIB_MBSCASESTR,;t t
26481 s,@GNULIB_MBSCSPN@,$GNULIB_MBSCSPN,;t t
26482 s,@GNULIB_MBSPBRK@,$GNULIB_MBSPBRK,;t t
26483 s,@GNULIB_MBSSPN@,$GNULIB_MBSSPN,;t t
26484 s,@GNULIB_MBSSEP@,$GNULIB_MBSSEP,;t t
26485 s,@GNULIB_MBSTOK_R@,$GNULIB_MBSTOK_R,;t t
26486 s,@GNULIB_STRERROR@,$GNULIB_STRERROR,;t t
26487 s,@GNULIB_STRSIGNAL@,$GNULIB_STRSIGNAL,;t t
26488 s,@HAVE_DECL_MEMMEM@,$HAVE_DECL_MEMMEM,;t t
26489 s,@HAVE_MEMPCPY@,$HAVE_MEMPCPY,;t t
26490 s,@HAVE_DECL_MEMRCHR@,$HAVE_DECL_MEMRCHR,;t t
26491 s,@HAVE_STPCPY@,$HAVE_STPCPY,;t t
26492 s,@HAVE_STPNCPY@,$HAVE_STPNCPY,;t t
26493 s,@HAVE_STRCHRNUL@,$HAVE_STRCHRNUL,;t t
26494 s,@HAVE_DECL_STRDUP@,$HAVE_DECL_STRDUP,;t t
26495 s,@HAVE_STRNDUP@,$HAVE_STRNDUP,;t t
26496 s,@HAVE_DECL_STRNDUP@,$HAVE_DECL_STRNDUP,;t t
26497 s,@HAVE_DECL_STRNLEN@,$HAVE_DECL_STRNLEN,;t t
26498 s,@HAVE_STRPBRK@,$HAVE_STRPBRK,;t t
26499 s,@HAVE_STRSEP@,$HAVE_STRSEP,;t t
26500 s,@HAVE_STRCASESTR@,$HAVE_STRCASESTR,;t t
26501 s,@HAVE_DECL_STRTOK_R@,$HAVE_DECL_STRTOK_R,;t t
26502 s,@HAVE_DECL_STRERROR@,$HAVE_DECL_STRERROR,;t t
26503 s,@HAVE_DECL_STRSIGNAL@,$HAVE_DECL_STRSIGNAL,;t t
26504 s,@REPLACE_STRERROR@,$REPLACE_STRERROR,;t t
26505 s,@REPLACE_STRSIGNAL@,$REPLACE_STRSIGNAL,;t t
26506 s,@REPLACE_MEMMEM@,$REPLACE_MEMMEM,;t t
26507 s,@REPLACE_STRCASESTR@,$REPLACE_STRCASESTR,;t t
26508 s,@REPLACE_STRSTR@,$REPLACE_STRSTR,;t t
26509 s,@HAVE_LONG_LONG_INT@,$HAVE_LONG_LONG_INT,;t t
26510 s,@HAVE_UNSIGNED_LONG_LONG_INT@,$HAVE_UNSIGNED_LONG_LONG_INT,;t t
26511 s,@HAVE_INTTYPES_H@,$HAVE_INTTYPES_H,;t t
26512 s,@HAVE_SYS_TYPES_H@,$HAVE_SYS_TYPES_H,;t t
26513 s,@INCLUDE_NEXT@,$INCLUDE_NEXT,;t t
26514 s,@NEXT_STDINT_H@,$NEXT_STDINT_H,;t t
26515 s,@HAVE_STDINT_H@,$HAVE_STDINT_H,;t t
26516 s,@HAVE_SYS_INTTYPES_H@,$HAVE_SYS_INTTYPES_H,;t t
26517 s,@HAVE_SYS_BITYPES_H@,$HAVE_SYS_BITYPES_H,;t t
26518 s,@BITSIZEOF_PTRDIFF_T@,$BITSIZEOF_PTRDIFF_T,;t t
26519 s,@BITSIZEOF_SIG_ATOMIC_T@,$BITSIZEOF_SIG_ATOMIC_T,;t t
26520 s,@BITSIZEOF_SIZE_T@,$BITSIZEOF_SIZE_T,;t t
26521 s,@BITSIZEOF_WCHAR_T@,$BITSIZEOF_WCHAR_T,;t t
26522 s,@BITSIZEOF_WINT_T@,$BITSIZEOF_WINT_T,;t t
26523 s,@HAVE_SIGNED_SIG_ATOMIC_T@,$HAVE_SIGNED_SIG_ATOMIC_T,;t t
26524 s,@HAVE_SIGNED_WCHAR_T@,$HAVE_SIGNED_WCHAR_T,;t t
26525 s,@HAVE_SIGNED_WINT_T@,$HAVE_SIGNED_WINT_T,;t t
26526 s,@PTRDIFF_T_SUFFIX@,$PTRDIFF_T_SUFFIX,;t t
26527 s,@SIG_ATOMIC_T_SUFFIX@,$SIG_ATOMIC_T_SUFFIX,;t t
26528 s,@SIZE_T_SUFFIX@,$SIZE_T_SUFFIX,;t t
26529 s,@WCHAR_T_SUFFIX@,$WCHAR_T_SUFFIX,;t t
26530 s,@WINT_T_SUFFIX@,$WINT_T_SUFFIX,;t t
26531 s,@STDINT_H@,$STDINT_H,;t t
26532 s,@NEXT_STRING_H@,$NEXT_STRING_H,;t t
26533 s,@GNULIB_WCWIDTH@,$GNULIB_WCWIDTH,;t t
26534 s,@HAVE_DECL_WCWIDTH@,$HAVE_DECL_WCWIDTH,;t t
26535 s,@REPLACE_WCWIDTH@,$REPLACE_WCWIDTH,;t t
26536 s,@WCHAR_H@,$WCHAR_H,;t t
26537 s,@HAVE_WCHAR_H@,$HAVE_WCHAR_H,;t t
26538 s,@NEXT_WCHAR_H@,$NEXT_WCHAR_H,;t t
26539 s,@LIBGNU_LIBDEPS@,$LIBGNU_LIBDEPS,;t t
26540 s,@LIBGNU_LTLIBDEPS@,$LIBGNU_LTLIBDEPS,;t t
26541 s,@GNULIB_STDINT_H@,$GNULIB_STDINT_H,;t t
26542 s,@PACKAGE@,$PACKAGE,;t t
26543 s,@INSTALL_PROGRAM@,$INSTALL_PROGRAM,;t t
26544 s,@INSTALL_SCRIPT@,$INSTALL_SCRIPT,;t t
26545 s,@INSTALL_DATA@,$INSTALL_DATA,;t t
26546 s,@CYGPATH_W@,$CYGPATH_W,;t t
26547 s,@VERSION@,$VERSION,;t t
26548 s,@ACLOCAL@,$ACLOCAL,;t t
26549 s,@AUTOCONF@,$AUTOCONF,;t t
26550 s,@AUTOMAKE@,$AUTOMAKE,;t t
26551 s,@AUTOHEADER@,$AUTOHEADER,;t t
26552 s,@MAKEINFO@,$MAKEINFO,;t t
26553 s,@install_sh@,$install_sh,;t t
26554 s,@STRIP@,$STRIP,;t t
26555 s,@ac_ct_STRIP@,$ac_ct_STRIP,;t t
26556 s,@INSTALL_STRIP_PROGRAM@,$INSTALL_STRIP_PROGRAM,;t t
26557 s,@mkdir_p@,$mkdir_p,;t t
26559 s,@SET_MAKE@,$SET_MAKE,;t t
26560 s,@am__leading_dot@,$am__leading_dot,;t t
26561 s,@AMTAR@,$AMTAR,;t t
26562 s,@am__tar@,$am__tar,;t t
26563 s,@am__untar@,$am__untar,;t t
26564 s,@DEPDIR@,$DEPDIR,;t t
26565 s,@am__include@,$am__include,;t t
26566 s,@am__quote@,$am__quote,;t t
26567 s,@AMDEP_TRUE@,$AMDEP_TRUE,;t t
26568 s,@AMDEP_FALSE@,$AMDEP_FALSE,;t t
26569 s,@AMDEPBACKSLASH@,$AMDEPBACKSLASH,;t t
26570 s,@CCDEPMODE@,$CCDEPMODE,;t t
26571 s,@am__fastdepCC_TRUE@,$am__fastdepCC_TRUE,;t t
26572 s,@am__fastdepCC_FALSE@,$am__fastdepCC_FALSE,;t t
26573 s,@subdirs@,$subdirs,;t t
26574 s,@TARGET_OBS@,$TARGET_OBS,;t t
26575 s,@PKGVERSION@,$PKGVERSION,;t t
26576 s,@REPORT_BUGS_TO@,$REPORT_BUGS_TO,;t t
26577 s,@REPORT_BUGS_TEXI@,$REPORT_BUGS_TEXI,;t t
26578 s,@LN_S@,$LN_S,;t t
26579 s,@YACC@,$YACC,;t t
26581 s,@ac_ct_AR@,$ac_ct_AR,;t t
26582 s,@DLLTOOL@,$DLLTOOL,;t t
26583 s,@ac_ct_DLLTOOL@,$ac_ct_DLLTOOL,;t t
26584 s,@WINDRES@,$WINDRES,;t t
26585 s,@ac_ct_WINDRES@,$ac_ct_WINDRES,;t t
26587 s,@ac_ct_MIG@,$ac_ct_MIG,;t t
26588 s,@READLINE@,$READLINE,;t t
26589 s,@READLINE_DEPS@,$READLINE_DEPS,;t t
26590 s,@READLINE_CFLAGS@,$READLINE_CFLAGS,;t t
26591 s,@HAVE_LIBEXPAT@,$HAVE_LIBEXPAT,;t t
26592 s,@LIBEXPAT@,$LIBEXPAT,;t t
26593 s,@LTLIBEXPAT@,$LTLIBEXPAT,;t t
26594 s,@ALLOCA@,$ALLOCA,;t t
26595 s,@CONFIG_LDFLAGS@,$CONFIG_LDFLAGS,;t t
26596 s,@TARGET_SYSTEM_ROOT@,$TARGET_SYSTEM_ROOT,;t t
26597 s,@TARGET_SYSTEM_ROOT_DEFINE@,$TARGET_SYSTEM_ROOT_DEFINE,;t t
26598 s,@WARN_CFLAGS@,$WARN_CFLAGS,;t t
26599 s,@WERROR_CFLAGS@,$WERROR_CFLAGS,;t t
26600 s,@SER_HARDWIRE@,$SER_HARDWIRE,;t t
26601 s,@WIN32LIBS@,$WIN32LIBS,;t t
26602 s,@LIBGUI@,$LIBGUI,;t t
26603 s,@GUI_CFLAGS_X@,$GUI_CFLAGS_X,;t t
26604 s,@WIN32LDAPP@,$WIN32LDAPP,;t t
26605 s,@TCL_VERSION@,$TCL_VERSION,;t t
26606 s,@TCL_MAJOR_VERSION@,$TCL_MAJOR_VERSION,;t t
26607 s,@TCL_MINOR_VERSION@,$TCL_MINOR_VERSION,;t t
26608 s,@TCL_CC@,$TCL_CC,;t t
26609 s,@TCL_DEFS@,$TCL_DEFS,;t t
26610 s,@TCL_SHLIB_CFLAGS@,$TCL_SHLIB_CFLAGS,;t t
26611 s,@TCL_SHLIB_LD@,$TCL_SHLIB_LD,;t t
26612 s,@TCL_SHLIB_LD_LIBS@,$TCL_SHLIB_LD_LIBS,;t t
26613 s,@TCL_SHLIB_SUFFIX@,$TCL_SHLIB_SUFFIX,;t t
26614 s,@TCL_DL_LIBS@,$TCL_DL_LIBS,;t t
26615 s,@TCL_LD_FLAGS@,$TCL_LD_FLAGS,;t t
26616 s,@TCL_LD_SEARCH_FLAGS@,$TCL_LD_SEARCH_FLAGS,;t t
26617 s,@TCL_CC_SEARCH_FLAGS@,$TCL_CC_SEARCH_FLAGS,;t t
26618 s,@TCL_COMPAT_OBJS@,$TCL_COMPAT_OBJS,;t t
26619 s,@TCL_RANLIB@,$TCL_RANLIB,;t t
26620 s,@TCL_BUILD_LIB_SPEC@,$TCL_BUILD_LIB_SPEC,;t t
26621 s,@TCL_LIB_SPEC@,$TCL_LIB_SPEC,;t t
26622 s,@TCL_LIB_VERSIONS_OK@,$TCL_LIB_VERSIONS_OK,;t t
26623 s,@TK_VERSION@,$TK_VERSION,;t t
26624 s,@TK_DEFS@,$TK_DEFS,;t t
26625 s,@TK_BUILD_INCLUDES@,$TK_BUILD_INCLUDES,;t t
26626 s,@TK_XINCLUDES@,$TK_XINCLUDES,;t t
26627 s,@TK_XLIBSW@,$TK_XLIBSW,;t t
26628 s,@TK_BUILD_LIB_SPEC@,$TK_BUILD_LIB_SPEC,;t t
26629 s,@TK_LIB_SPEC@,$TK_LIB_SPEC,;t t
26630 s,@TCLHDIR@,$TCLHDIR,;t t
26631 s,@TKHDIR@,$TKHDIR,;t t
26632 s,@ITCLHDIR@,$ITCLHDIR,;t t
26633 s,@ITKHDIR@,$ITKHDIR,;t t
26634 s,@ITCL_VERSION@,$ITCL_VERSION,;t t
26635 s,@ITCL_DEFS@,$ITCL_DEFS,;t t
26636 s,@ITCL_BUILD_INCLUDES@,$ITCL_BUILD_INCLUDES,;t t
26637 s,@ITCL_BUILD_LIB_SPEC@,$ITCL_BUILD_LIB_SPEC,;t t
26638 s,@ITCL_LIB_SPEC@,$ITCL_LIB_SPEC,;t t
26639 s,@ITK_VERSION@,$ITK_VERSION,;t t
26640 s,@ITK_DEFS@,$ITK_DEFS,;t t
26641 s,@ITK_BUILD_INCLUDES@,$ITK_BUILD_INCLUDES,;t t
26642 s,@ITK_BUILD_LIB_SPEC@,$ITK_BUILD_LIB_SPEC,;t t
26643 s,@ITK_LIB_SPEC@,$ITK_LIB_SPEC,;t t
26644 s,@X_CFLAGS@,$X_CFLAGS,;t t
26645 s,@X_LDFLAGS@,$X_LDFLAGS,;t t
26646 s,@X_LIBS@,$X_LIBS,;t t
26647 s,@TCL_DEPS@,$TCL_DEPS,;t t
26648 s,@TK_DEPS@,$TK_DEPS,;t t
26649 s,@ITCLLIB@,$ITCLLIB,;t t
26650 s,@ITCL_DEPS@,$ITCL_DEPS,;t t
26651 s,@ITKLIB@,$ITKLIB,;t t
26652 s,@ITK_DEPS@,$ITK_DEPS,;t t
26653 s,@GDBTKLIBS@,$GDBTKLIBS,;t t
26654 s,@GDBTK_CFLAGS@,$GDBTK_CFLAGS,;t t
26655 s,@GDBTK_SRC_DIR@,$GDBTK_SRC_DIR,;t t
26657 s,@SIM_OBS@,$SIM_OBS,;t t
26658 s,@ENABLE_CFLAGS@,$ENABLE_CFLAGS,;t t
26659 s,@PROFILE_CFLAGS@,$PROFILE_CFLAGS,;t t
26660 s,@CONFIG_OBS@,$CONFIG_OBS,;t t
26661 s,@CONFIG_DEPS@,$CONFIG_DEPS,;t t
26662 s,@CONFIG_SRCS@,$CONFIG_SRCS,;t t
26663 s,@CONFIG_ALL@,$CONFIG_ALL,;t t
26664 s,@CONFIG_CLEAN@,$CONFIG_CLEAN,;t t
26665 s,@CONFIG_INSTALL@,$CONFIG_INSTALL,;t t
26666 s,@CONFIG_UNINSTALL@,$CONFIG_UNINSTALL,;t t
26667 s,@target_subdir@,$target_subdir,;t t
26668 s,@frags@,$frags,;t t
26669 s,@nm_h@,$nm_h,;t t
26670 s,@LIBICONV@,$LIBICONV,;t t
26671 s,@LIBOBJS@,$LIBOBJS,;t t
26672 s,@LTLIBOBJS@,$LTLIBOBJS,;t t
26673 s,@gl_LIBOBJS@,$gl_LIBOBJS,;t t
26674 s,@gl_LTLIBOBJS@,$gl_LTLIBOBJS,;t t
26675 s,@gltests_LIBOBJS@,$gltests_LIBOBJS,;t t
26676 s,@gltests_LTLIBOBJS@,$gltests_LTLIBOBJS,;t t
26677 /@host_makefile_frag@/r $host_makefile_frag
26678 s,@host_makefile_frag@,,;t t
26683 cat >>$CONFIG_STATUS <<\_ACEOF
26684 # Split the substitutions into bite-sized pieces for seds with
26685 # small command number limits, like on Digital OSF/1 and HP-UX.
26686 ac_max_sed_lines=48
26687 ac_sed_frag=1 # Number of current file.
26688 ac_beg=1 # First line for current file.
26689 ac_end=$ac_max_sed_lines # Line after last line for current file.
26692 while $ac_more_lines; do
26693 if test $ac_beg -gt 1; then
26694 sed "1,${ac_beg}d; ${ac_end}q" $tmp/subs.sed >$tmp/subs.frag
26696 sed "${ac_end}q" $tmp/subs.sed >$tmp/subs.frag
26698 if test ! -s $tmp/subs.frag; then
26699 ac_more_lines=false
26701 # The purpose of the label and of the branching condition is to
26702 # speed up the sed processing (if there are no `@' at all, there
26703 # is no need to browse any of the substitutions).
26704 # These are the two extra sed commands mentioned above.
26706 /@[a-zA-Z_][a-zA-Z_0-9]*@/!b' && cat $tmp/subs.frag) >$tmp/subs-$ac_sed_frag.sed
26707 if test -z "$ac_sed_cmds"; then
26708 ac_sed_cmds="sed -f $tmp/subs-$ac_sed_frag.sed"
26710 ac_sed_cmds="$ac_sed_cmds | sed -f $tmp/subs-$ac_sed_frag.sed"
26712 ac_sed_frag=`expr $ac_sed_frag + 1`
26714 ac_end=`expr $ac_end + $ac_max_sed_lines`
26717 if test -z "$ac_sed_cmds"; then
26720 fi # test -n "$CONFIG_FILES"
26723 cat >>$CONFIG_STATUS <<\_ACEOF
26724 for ac_file in : $CONFIG_FILES; do test "x$ac_file" = x: && continue
26725 # Support "outfile[:infile[:infile...]]", defaulting infile="outfile.in".
26727 - | *:- | *:-:* ) # input from stdin
26729 ac_file_in=`echo "$ac_file" | sed 's,[^:]*:,,'`
26730 ac_file=`echo "$ac_file" | sed 's,:.*,,'` ;;
26731 *:* ) ac_file_in=`echo "$ac_file" | sed 's,[^:]*:,,'`
26732 ac_file=`echo "$ac_file" | sed 's,:.*,,'` ;;
26733 * ) ac_file_in=$ac_file.in ;;
26736 # Compute @srcdir@, @top_srcdir@, and @INSTALL@ for subdirectories.
26737 ac_dir=`(dirname "$ac_file") 2>/dev/null ||
26738 $as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
26739 X"$ac_file" : 'X\(//\)[^/]' \| \
26740 X"$ac_file" : 'X\(//\)$' \| \
26741 X"$ac_file" : 'X\(/\)' \| \
26742 . : '\(.\)' 2>/dev/null ||
26744 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
26745 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
26746 /^X\(\/\/\)$/{ s//\1/; q; }
26747 /^X\(\/\).*/{ s//\1/; q; }
26749 { if $as_mkdir_p; then
26754 while test ! -d "$as_dir"; do
26755 as_dirs="$as_dir $as_dirs"
26756 as_dir=`(dirname "$as_dir") 2>/dev/null ||
26757 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
26758 X"$as_dir" : 'X\(//\)[^/]' \| \
26759 X"$as_dir" : 'X\(//\)$' \| \
26760 X"$as_dir" : 'X\(/\)' \| \
26761 . : '\(.\)' 2>/dev/null ||
26763 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
26764 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
26765 /^X\(\/\/\)$/{ s//\1/; q; }
26766 /^X\(\/\).*/{ s//\1/; q; }
26769 test ! -n "$as_dirs" || mkdir $as_dirs
26770 fi || { { echo "$as_me:$LINENO: error: cannot create directory \"$ac_dir\"" >&5
26771 echo "$as_me: error: cannot create directory \"$ac_dir\"" >&2;}
26772 { (exit 1); exit 1; }; }; }
26776 if test "$ac_dir" != .; then
26777 ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'`
26778 # A "../" for each directory in $ac_dir_suffix.
26779 ac_top_builddir=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,../,g'`
26781 ac_dir_suffix= ac_top_builddir=
26785 .) # No --srcdir option. We are building in place.
26787 if test -z "$ac_top_builddir"; then
26790 ac_top_srcdir=`echo $ac_top_builddir | sed 's,/$,,'`
26792 [\\/]* | ?:[\\/]* ) # Absolute path.
26793 ac_srcdir=$srcdir$ac_dir_suffix;
26794 ac_top_srcdir=$srcdir ;;
26795 *) # Relative path.
26796 ac_srcdir=$ac_top_builddir$srcdir$ac_dir_suffix
26797 ac_top_srcdir=$ac_top_builddir$srcdir ;;
26800 # Do not use `cd foo && pwd` to compute absolute paths, because
26801 # the directories may not exist.
26803 .) ac_abs_builddir="$ac_dir";;
26806 .) ac_abs_builddir=`pwd`;;
26807 [\\/]* | ?:[\\/]* ) ac_abs_builddir="$ac_dir";;
26808 *) ac_abs_builddir=`pwd`/"$ac_dir";;
26811 case $ac_abs_builddir in
26812 .) ac_abs_top_builddir=${ac_top_builddir}.;;
26814 case ${ac_top_builddir}. in
26815 .) ac_abs_top_builddir=$ac_abs_builddir;;
26816 [\\/]* | ?:[\\/]* ) ac_abs_top_builddir=${ac_top_builddir}.;;
26817 *) ac_abs_top_builddir=$ac_abs_builddir/${ac_top_builddir}.;;
26820 case $ac_abs_builddir in
26821 .) ac_abs_srcdir=$ac_srcdir;;
26824 .) ac_abs_srcdir=$ac_abs_builddir;;
26825 [\\/]* | ?:[\\/]* ) ac_abs_srcdir=$ac_srcdir;;
26826 *) ac_abs_srcdir=$ac_abs_builddir/$ac_srcdir;;
26829 case $ac_abs_builddir in
26830 .) ac_abs_top_srcdir=$ac_top_srcdir;;
26832 case $ac_top_srcdir in
26833 .) ac_abs_top_srcdir=$ac_abs_builddir;;
26834 [\\/]* | ?:[\\/]* ) ac_abs_top_srcdir=$ac_top_srcdir;;
26835 *) ac_abs_top_srcdir=$ac_abs_builddir/$ac_top_srcdir;;
26841 [\\/$]* | ?:[\\/]* ) ac_INSTALL=$INSTALL ;;
26842 *) ac_INSTALL=$ac_top_builddir$INSTALL ;;
26845 if test x"$ac_file" != x-; then
26846 { echo "$as_me:$LINENO: creating $ac_file" >&5
26847 echo "$as_me: creating $ac_file" >&6;}
26850 # Let's still pretend it is `configure' which instantiates (i.e., don't
26851 # use $as_me), people would be surprised to read:
26852 # /* config.h. Generated by config.status. */
26853 if test x"$ac_file" = x-; then
26856 configure_input="$ac_file. "
26858 configure_input=$configure_input"Generated from `echo $ac_file_in |
26859 sed 's,.*/,,'` by configure."
26861 # First look for the input files in the build tree, otherwise in the
26863 ac_file_inputs=`IFS=:
26864 for f in $ac_file_in; do
26866 -) echo $tmp/stdin ;;
26868 # Absolute (can't be DOS-style, as IFS=:)
26869 test -f "$f" || { { echo "$as_me:$LINENO: error: cannot find input file: $f" >&5
26870 echo "$as_me: error: cannot find input file: $f" >&2;}
26871 { (exit 1); exit 1; }; }
26874 if test -f "$f"; then
26877 elif test -f "$srcdir/$f"; then
26882 { { echo "$as_me:$LINENO: error: cannot find input file: $f" >&5
26883 echo "$as_me: error: cannot find input file: $f" >&2;}
26884 { (exit 1); exit 1; }; }
26887 done` || { (exit 1); exit 1; }
26889 cat >>$CONFIG_STATUS <<_ACEOF
26893 cat >>$CONFIG_STATUS <<\_ACEOF
26895 /@[a-zA-Z_][a-zA-Z_0-9]*@/!b
26896 s,@configure_input@,$configure_input,;t t
26897 s,@srcdir@,$ac_srcdir,;t t
26898 s,@abs_srcdir@,$ac_abs_srcdir,;t t
26899 s,@top_srcdir@,$ac_top_srcdir,;t t
26900 s,@abs_top_srcdir@,$ac_abs_top_srcdir,;t t
26901 s,@builddir@,$ac_builddir,;t t
26902 s,@abs_builddir@,$ac_abs_builddir,;t t
26903 s,@top_builddir@,$ac_top_builddir,;t t
26904 s,@abs_top_builddir@,$ac_abs_top_builddir,;t t
26905 s,@INSTALL@,$ac_INSTALL,;t t
26906 " $ac_file_inputs | (eval "$ac_sed_cmds") >$tmp/out
26908 if test x"$ac_file" != x-; then
26909 mv $tmp/out $ac_file
26917 cat >>$CONFIG_STATUS <<\_ACEOF
26920 # CONFIG_HEADER section.
26923 # These sed commands are passed to sed as "A NAME B NAME C VALUE D", where
26924 # NAME is the cpp macro being defined and VALUE is the value it is being given.
26926 # ac_d sets the value in "#define NAME VALUE" lines.
26927 ac_dA='s,^\([ ]*\)#\([ ]*define[ ][ ]*\)'
26928 ac_dB='[ ].*$,\1#\2'
26931 # ac_u turns "#undef NAME" without trailing blanks into "#define NAME VALUE".
26932 ac_uA='s,^\([ ]*\)#\([ ]*\)undef\([ ][ ]*\)'
26933 ac_uB='$,\1#\2define\3'
26937 for ac_file in : $CONFIG_HEADERS; do test "x$ac_file" = x: && continue
26938 # Support "outfile[:infile[:infile...]]", defaulting infile="outfile.in".
26940 - | *:- | *:-:* ) # input from stdin
26942 ac_file_in=`echo "$ac_file" | sed 's,[^:]*:,,'`
26943 ac_file=`echo "$ac_file" | sed 's,:.*,,'` ;;
26944 *:* ) ac_file_in=`echo "$ac_file" | sed 's,[^:]*:,,'`
26945 ac_file=`echo "$ac_file" | sed 's,:.*,,'` ;;
26946 * ) ac_file_in=$ac_file.in ;;
26949 test x"$ac_file" != x- && { echo "$as_me:$LINENO: creating $ac_file" >&5
26950 echo "$as_me: creating $ac_file" >&6;}
26952 # First look for the input files in the build tree, otherwise in the
26954 ac_file_inputs=`IFS=:
26955 for f in $ac_file_in; do
26957 -) echo $tmp/stdin ;;
26959 # Absolute (can't be DOS-style, as IFS=:)
26960 test -f "$f" || { { echo "$as_me:$LINENO: error: cannot find input file: $f" >&5
26961 echo "$as_me: error: cannot find input file: $f" >&2;}
26962 { (exit 1); exit 1; }; }
26963 # Do quote $f, to prevent DOS paths from being IFS'd.
26966 if test -f "$f"; then
26969 elif test -f "$srcdir/$f"; then
26974 { { echo "$as_me:$LINENO: error: cannot find input file: $f" >&5
26975 echo "$as_me: error: cannot find input file: $f" >&2;}
26976 { (exit 1); exit 1; }; }
26979 done` || { (exit 1); exit 1; }
26980 # Remove the trailing spaces.
26981 sed 's/[ ]*$//' $ac_file_inputs >$tmp/in
26985 # Transform confdefs.h into two sed scripts, `conftest.defines' and
26986 # `conftest.undefs', that substitutes the proper values into
26987 # config.h.in to produce config.h. The first handles `#define'
26988 # templates, and the second `#undef' templates.
26989 # And first: Protect against being on the right side of a sed subst in
26990 # config.status. Protect against being in an unquoted here document
26991 # in config.status.
26992 rm -f conftest.defines conftest.undefs
26993 # Using a here document instead of a string reduces the quoting nightmare.
26994 # Putting comments in sed scripts is not portable.
26996 # `end' is used to avoid that the second main sed command (meant for
26997 # 0-ary CPP macros) applies to n-ary macro definitions.
26998 # See the Autoconf documentation for `clear'.
26999 cat >confdef2sed.sed <<\_ACEOF
27004 s,^[ ]*#[ ]*define[ ][ ]*\([^ (][^ (]*\)\(([^)]*)\)[ ]*\(.*\)$,${ac_dA}\1${ac_dB}\1\2${ac_dC}\3${ac_dD},gp
27006 s,^[ ]*#[ ]*define[ ][ ]*\([^ ][^ ]*\)[ ]*\(.*\)$,${ac_dA}\1${ac_dB}\1${ac_dC}\2${ac_dD},gp
27009 # If some macros were called several times there might be several times
27010 # the same #defines, which is useless. Nevertheless, we may not want to
27011 # sort them, since we want the *last* AC-DEFINE to be honored.
27012 uniq confdefs.h | sed -n -f confdef2sed.sed >conftest.defines
27013 sed 's/ac_d/ac_u/g' conftest.defines >conftest.undefs
27014 rm -f confdef2sed.sed
27016 # This sed command replaces #undef with comments. This is necessary, for
27017 # example, in the case of _POSIX_SOURCE, which is predefined and required
27018 # on some systems where configure will not decide to define it.
27019 cat >>conftest.undefs <<\_ACEOF
27020 s,^[ ]*#[ ]*undef[ ][ ]*[a-zA-Z_][a-zA-Z_0-9]*,/* & */,
27023 # Break up conftest.defines because some shells have a limit on the size
27024 # of here documents, and old seds have small limits too (100 cmds).
27025 echo ' # Handle all the #define templates only if necessary.' >>$CONFIG_STATUS
27026 echo ' if grep "^[ ]*#[ ]*define" $tmp/in >/dev/null; then' >>$CONFIG_STATUS
27027 echo ' # If there are no defines, we may have an empty if/fi' >>$CONFIG_STATUS
27028 echo ' :' >>$CONFIG_STATUS
27029 rm -f conftest.tail
27030 while grep . conftest.defines >/dev/null
27032 # Write a limited-size here document to $tmp/defines.sed.
27033 echo ' cat >$tmp/defines.sed <<CEOF' >>$CONFIG_STATUS
27034 # Speed up: don't consider the non `#define' lines.
27035 echo '/^[ ]*#[ ]*define/!b' >>$CONFIG_STATUS
27036 # Work around the forget-to-reset-the-flag bug.
27037 echo 't clr' >>$CONFIG_STATUS
27038 echo ': clr' >>$CONFIG_STATUS
27039 sed ${ac_max_here_lines}q conftest.defines >>$CONFIG_STATUS
27041 sed -f $tmp/defines.sed $tmp/in >$tmp/out
27043 mv $tmp/out $tmp/in
27045 sed 1,${ac_max_here_lines}d conftest.defines >conftest.tail
27046 rm -f conftest.defines
27047 mv conftest.tail conftest.defines
27049 rm -f conftest.defines
27050 echo ' fi # grep' >>$CONFIG_STATUS
27051 echo >>$CONFIG_STATUS
27053 # Break up conftest.undefs because some shells have a limit on the size
27054 # of here documents, and old seds have small limits too (100 cmds).
27055 echo ' # Handle all the #undef templates' >>$CONFIG_STATUS
27056 rm -f conftest.tail
27057 while grep . conftest.undefs >/dev/null
27059 # Write a limited-size here document to $tmp/undefs.sed.
27060 echo ' cat >$tmp/undefs.sed <<CEOF' >>$CONFIG_STATUS
27061 # Speed up: don't consider the non `#undef'
27062 echo '/^[ ]*#[ ]*undef/!b' >>$CONFIG_STATUS
27063 # Work around the forget-to-reset-the-flag bug.
27064 echo 't clr' >>$CONFIG_STATUS
27065 echo ': clr' >>$CONFIG_STATUS
27066 sed ${ac_max_here_lines}q conftest.undefs >>$CONFIG_STATUS
27068 sed -f $tmp/undefs.sed $tmp/in >$tmp/out
27070 mv $tmp/out $tmp/in
27072 sed 1,${ac_max_here_lines}d conftest.undefs >conftest.tail
27073 rm -f conftest.undefs
27074 mv conftest.tail conftest.undefs
27076 rm -f conftest.undefs
27078 cat >>$CONFIG_STATUS <<\_ACEOF
27079 # Let's still pretend it is `configure' which instantiates (i.e., don't
27080 # use $as_me), people would be surprised to read:
27081 # /* config.h. Generated by config.status. */
27082 if test x"$ac_file" = x-; then
27083 echo "/* Generated by configure. */" >$tmp/config.h
27085 echo "/* $ac_file. Generated by configure. */" >$tmp/config.h
27087 cat $tmp/in >>$tmp/config.h
27089 if test x"$ac_file" != x-; then
27090 if diff $ac_file $tmp/config.h >/dev/null 2>&1; then
27091 { echo "$as_me:$LINENO: $ac_file is unchanged" >&5
27092 echo "$as_me: $ac_file is unchanged" >&6;}
27094 ac_dir=`(dirname "$ac_file") 2>/dev/null ||
27095 $as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
27096 X"$ac_file" : 'X\(//\)[^/]' \| \
27097 X"$ac_file" : 'X\(//\)$' \| \
27098 X"$ac_file" : 'X\(/\)' \| \
27099 . : '\(.\)' 2>/dev/null ||
27101 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
27102 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
27103 /^X\(\/\/\)$/{ s//\1/; q; }
27104 /^X\(\/\).*/{ s//\1/; q; }
27106 { if $as_mkdir_p; then
27111 while test ! -d "$as_dir"; do
27112 as_dirs="$as_dir $as_dirs"
27113 as_dir=`(dirname "$as_dir") 2>/dev/null ||
27114 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
27115 X"$as_dir" : 'X\(//\)[^/]' \| \
27116 X"$as_dir" : 'X\(//\)$' \| \
27117 X"$as_dir" : 'X\(/\)' \| \
27118 . : '\(.\)' 2>/dev/null ||
27120 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
27121 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
27122 /^X\(\/\/\)$/{ s//\1/; q; }
27123 /^X\(\/\).*/{ s//\1/; q; }
27126 test ! -n "$as_dirs" || mkdir $as_dirs
27127 fi || { { echo "$as_me:$LINENO: error: cannot create directory \"$ac_dir\"" >&5
27128 echo "$as_me: error: cannot create directory \"$ac_dir\"" >&2;}
27129 { (exit 1); exit 1; }; }; }
27132 mv $tmp/config.h $ac_file
27136 rm -f $tmp/config.h
27138 # Compute $ac_file's index in $config_headers.
27140 for _am_header in $config_headers :; do
27141 case $_am_header in
27142 $ac_file | $ac_file:* )
27145 _am_stamp_count=`expr $_am_stamp_count + 1` ;;
27148 echo "timestamp for $ac_file" >`(dirname $ac_file) 2>/dev/null ||
27149 $as_expr X$ac_file : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
27150 X$ac_file : 'X\(//\)[^/]' \| \
27151 X$ac_file : 'X\(//\)$' \| \
27152 X$ac_file : 'X\(/\)' \| \
27153 . : '\(.\)' 2>/dev/null ||
27155 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
27156 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
27157 /^X\(\/\/\)$/{ s//\1/; q; }
27158 /^X\(\/\).*/{ s//\1/; q; }
27159 s/.*/./; q'`/stamp-h$_am_stamp_count
27162 cat >>$CONFIG_STATUS <<\_ACEOF
27165 # CONFIG_LINKS section.
27168 for ac_file in : $CONFIG_LINKS; do test "x$ac_file" = x: && continue
27169 ac_dest=`echo "$ac_file" | sed 's,:.*,,'`
27170 ac_source=`echo "$ac_file" | sed 's,[^:]*:,,'`
27172 { echo "$as_me:$LINENO: linking $srcdir/$ac_source to $ac_dest" >&5
27173 echo "$as_me: linking $srcdir/$ac_source to $ac_dest" >&6;}
27175 if test ! -r $srcdir/$ac_source; then
27176 { { echo "$as_me:$LINENO: error: $srcdir/$ac_source: file not found" >&5
27177 echo "$as_me: error: $srcdir/$ac_source: file not found" >&2;}
27178 { (exit 1); exit 1; }; }
27182 # Make relative symlinks.
27183 ac_dest_dir=`(dirname "$ac_dest") 2>/dev/null ||
27184 $as_expr X"$ac_dest" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
27185 X"$ac_dest" : 'X\(//\)[^/]' \| \
27186 X"$ac_dest" : 'X\(//\)$' \| \
27187 X"$ac_dest" : 'X\(/\)' \| \
27188 . : '\(.\)' 2>/dev/null ||
27190 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
27191 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
27192 /^X\(\/\/\)$/{ s//\1/; q; }
27193 /^X\(\/\).*/{ s//\1/; q; }
27195 { if $as_mkdir_p; then
27196 mkdir -p "$ac_dest_dir"
27198 as_dir="$ac_dest_dir"
27200 while test ! -d "$as_dir"; do
27201 as_dirs="$as_dir $as_dirs"
27202 as_dir=`(dirname "$as_dir") 2>/dev/null ||
27203 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
27204 X"$as_dir" : 'X\(//\)[^/]' \| \
27205 X"$as_dir" : 'X\(//\)$' \| \
27206 X"$as_dir" : 'X\(/\)' \| \
27207 . : '\(.\)' 2>/dev/null ||
27209 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
27210 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
27211 /^X\(\/\/\)$/{ s//\1/; q; }
27212 /^X\(\/\).*/{ s//\1/; q; }
27215 test ! -n "$as_dirs" || mkdir $as_dirs
27216 fi || { { echo "$as_me:$LINENO: error: cannot create directory \"$ac_dest_dir\"" >&5
27217 echo "$as_me: error: cannot create directory \"$ac_dest_dir\"" >&2;}
27218 { (exit 1); exit 1; }; }; }
27222 if test "$ac_dest_dir" != .; then
27223 ac_dir_suffix=/`echo "$ac_dest_dir" | sed 's,^\.[\\/],,'`
27224 # A "../" for each directory in $ac_dir_suffix.
27225 ac_top_builddir=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,../,g'`
27227 ac_dir_suffix= ac_top_builddir=
27231 .) # No --srcdir option. We are building in place.
27233 if test -z "$ac_top_builddir"; then
27236 ac_top_srcdir=`echo $ac_top_builddir | sed 's,/$,,'`
27238 [\\/]* | ?:[\\/]* ) # Absolute path.
27239 ac_srcdir=$srcdir$ac_dir_suffix;
27240 ac_top_srcdir=$srcdir ;;
27241 *) # Relative path.
27242 ac_srcdir=$ac_top_builddir$srcdir$ac_dir_suffix
27243 ac_top_srcdir=$ac_top_builddir$srcdir ;;
27246 # Do not use `cd foo && pwd` to compute absolute paths, because
27247 # the directories may not exist.
27249 .) ac_abs_builddir="$ac_dest_dir";;
27251 case "$ac_dest_dir" in
27252 .) ac_abs_builddir=`pwd`;;
27253 [\\/]* | ?:[\\/]* ) ac_abs_builddir="$ac_dest_dir";;
27254 *) ac_abs_builddir=`pwd`/"$ac_dest_dir";;
27257 case $ac_abs_builddir in
27258 .) ac_abs_top_builddir=${ac_top_builddir}.;;
27260 case ${ac_top_builddir}. in
27261 .) ac_abs_top_builddir=$ac_abs_builddir;;
27262 [\\/]* | ?:[\\/]* ) ac_abs_top_builddir=${ac_top_builddir}.;;
27263 *) ac_abs_top_builddir=$ac_abs_builddir/${ac_top_builddir}.;;
27266 case $ac_abs_builddir in
27267 .) ac_abs_srcdir=$ac_srcdir;;
27270 .) ac_abs_srcdir=$ac_abs_builddir;;
27271 [\\/]* | ?:[\\/]* ) ac_abs_srcdir=$ac_srcdir;;
27272 *) ac_abs_srcdir=$ac_abs_builddir/$ac_srcdir;;
27275 case $ac_abs_builddir in
27276 .) ac_abs_top_srcdir=$ac_top_srcdir;;
27278 case $ac_top_srcdir in
27279 .) ac_abs_top_srcdir=$ac_abs_builddir;;
27280 [\\/]* | ?:[\\/]* ) ac_abs_top_srcdir=$ac_top_srcdir;;
27281 *) ac_abs_top_srcdir=$ac_abs_builddir/$ac_top_srcdir;;
27287 [\\/$]* | ?:[\\/]* ) ac_rel_source=$srcdir/$ac_source ;;
27288 *) ac_rel_source=$ac_top_builddir$srcdir/$ac_source ;;
27291 # Try a symlink, then a hard link, then a copy.
27292 ln -s $ac_rel_source $ac_dest 2>/dev/null ||
27293 ln $srcdir/$ac_source $ac_dest 2>/dev/null ||
27294 cp -p $srcdir/$ac_source $ac_dest ||
27295 { { echo "$as_me:$LINENO: error: cannot link or copy $srcdir/$ac_source to $ac_dest" >&5
27296 echo "$as_me: error: cannot link or copy $srcdir/$ac_source to $ac_dest" >&2;}
27297 { (exit 1); exit 1; }; }
27300 cat >>$CONFIG_STATUS <<\_ACEOF
27303 # CONFIG_COMMANDS section.
27305 for ac_file in : $CONFIG_COMMANDS; do test "x$ac_file" = x: && continue
27306 ac_dest=`echo "$ac_file" | sed 's,:.*,,'`
27307 ac_source=`echo "$ac_file" | sed 's,[^:]*:,,'`
27308 ac_dir=`(dirname "$ac_dest") 2>/dev/null ||
27309 $as_expr X"$ac_dest" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
27310 X"$ac_dest" : 'X\(//\)[^/]' \| \
27311 X"$ac_dest" : 'X\(//\)$' \| \
27312 X"$ac_dest" : 'X\(/\)' \| \
27313 . : '\(.\)' 2>/dev/null ||
27315 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
27316 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
27317 /^X\(\/\/\)$/{ s//\1/; q; }
27318 /^X\(\/\).*/{ s//\1/; q; }
27320 { if $as_mkdir_p; then
27325 while test ! -d "$as_dir"; do
27326 as_dirs="$as_dir $as_dirs"
27327 as_dir=`(dirname "$as_dir") 2>/dev/null ||
27328 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
27329 X"$as_dir" : 'X\(//\)[^/]' \| \
27330 X"$as_dir" : 'X\(//\)$' \| \
27331 X"$as_dir" : 'X\(/\)' \| \
27332 . : '\(.\)' 2>/dev/null ||
27334 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
27335 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
27336 /^X\(\/\/\)$/{ s//\1/; q; }
27337 /^X\(\/\).*/{ s//\1/; q; }
27340 test ! -n "$as_dirs" || mkdir $as_dirs
27341 fi || { { echo "$as_me:$LINENO: error: cannot create directory \"$ac_dir\"" >&5
27342 echo "$as_me: error: cannot create directory \"$ac_dir\"" >&2;}
27343 { (exit 1); exit 1; }; }; }
27347 if test "$ac_dir" != .; then
27348 ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'`
27349 # A "../" for each directory in $ac_dir_suffix.
27350 ac_top_builddir=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,../,g'`
27352 ac_dir_suffix= ac_top_builddir=
27356 .) # No --srcdir option. We are building in place.
27358 if test -z "$ac_top_builddir"; then
27361 ac_top_srcdir=`echo $ac_top_builddir | sed 's,/$,,'`
27363 [\\/]* | ?:[\\/]* ) # Absolute path.
27364 ac_srcdir=$srcdir$ac_dir_suffix;
27365 ac_top_srcdir=$srcdir ;;
27366 *) # Relative path.
27367 ac_srcdir=$ac_top_builddir$srcdir$ac_dir_suffix
27368 ac_top_srcdir=$ac_top_builddir$srcdir ;;
27371 # Do not use `cd foo && pwd` to compute absolute paths, because
27372 # the directories may not exist.
27374 .) ac_abs_builddir="$ac_dir";;
27377 .) ac_abs_builddir=`pwd`;;
27378 [\\/]* | ?:[\\/]* ) ac_abs_builddir="$ac_dir";;
27379 *) ac_abs_builddir=`pwd`/"$ac_dir";;
27382 case $ac_abs_builddir in
27383 .) ac_abs_top_builddir=${ac_top_builddir}.;;
27385 case ${ac_top_builddir}. in
27386 .) ac_abs_top_builddir=$ac_abs_builddir;;
27387 [\\/]* | ?:[\\/]* ) ac_abs_top_builddir=${ac_top_builddir}.;;
27388 *) ac_abs_top_builddir=$ac_abs_builddir/${ac_top_builddir}.;;
27391 case $ac_abs_builddir in
27392 .) ac_abs_srcdir=$ac_srcdir;;
27395 .) ac_abs_srcdir=$ac_abs_builddir;;
27396 [\\/]* | ?:[\\/]* ) ac_abs_srcdir=$ac_srcdir;;
27397 *) ac_abs_srcdir=$ac_abs_builddir/$ac_srcdir;;
27400 case $ac_abs_builddir in
27401 .) ac_abs_top_srcdir=$ac_top_srcdir;;
27403 case $ac_top_srcdir in
27404 .) ac_abs_top_srcdir=$ac_abs_builddir;;
27405 [\\/]* | ?:[\\/]* ) ac_abs_top_srcdir=$ac_top_srcdir;;
27406 *) ac_abs_top_srcdir=$ac_abs_builddir/$ac_top_srcdir;;
27411 { echo "$as_me:$LINENO: executing $ac_dest commands" >&5
27412 echo "$as_me: executing $ac_dest commands" >&6;}
27414 depfiles ) test x"$AMDEP_TRUE" != x"" || for mf in $CONFIG_FILES; do
27415 # Strip MF so we end up with the name of the file.
27416 mf=`echo "$mf" | sed -e 's/:.*$//'`
27417 # Check whether this is an Automake generated Makefile or not.
27418 # We used to match only the files named `Makefile.in', but
27419 # some people rename them; so instead we look at the file content.
27420 # Grep'ing the first line is not enough: some people post-process
27421 # each Makefile.in and add a new line on top of each file to say so.
27422 # So let's grep whole file.
27423 if grep '^#.*generated by automake' $mf > /dev/null 2>&1; then
27424 dirpart=`(dirname "$mf") 2>/dev/null ||
27425 $as_expr X"$mf" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
27426 X"$mf" : 'X\(//\)[^/]' \| \
27427 X"$mf" : 'X\(//\)$' \| \
27428 X"$mf" : 'X\(/\)' \| \
27429 . : '\(.\)' 2>/dev/null ||
27431 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
27432 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
27433 /^X\(\/\/\)$/{ s//\1/; q; }
27434 /^X\(\/\).*/{ s//\1/; q; }
27439 # Extract the definition of DEPDIR, am__include, and am__quote
27440 # from the Makefile without running `make'.
27441 DEPDIR=`sed -n 's/^DEPDIR = //p' < "$mf"`
27442 test -z "$DEPDIR" && continue
27443 am__include=`sed -n 's/^am__include = //p' < "$mf"`
27444 test -z "am__include" && continue
27445 am__quote=`sed -n 's/^am__quote = //p' < "$mf"`
27446 # When using ansi2knr, U may be empty or an underscore; expand it
27447 U=`sed -n 's/^U = //p' < "$mf"`
27448 # Find all dependency output files, they are included files with
27449 # $(DEPDIR) in their names. We invoke sed twice because it is the
27450 # simplest approach to changing $(DEPDIR) to its actual value in the
27452 for file in `sed -n "
27453 s/^$am__include $am__quote\(.*(DEPDIR).*\)$am__quote"'$/\1/p' <"$mf" | \
27454 sed -e 's/\$(DEPDIR)/'"$DEPDIR"'/g' -e 's/\$U/'"$U"'/g'`; do
27455 # Make sure the directory exists.
27456 test -f "$dirpart/$file" && continue
27457 fdir=`(dirname "$file") 2>/dev/null ||
27458 $as_expr X"$file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
27459 X"$file" : 'X\(//\)[^/]' \| \
27460 X"$file" : 'X\(//\)$' \| \
27461 X"$file" : 'X\(/\)' \| \
27462 . : '\(.\)' 2>/dev/null ||
27464 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
27465 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
27466 /^X\(\/\/\)$/{ s//\1/; q; }
27467 /^X\(\/\).*/{ s//\1/; q; }
27469 { if $as_mkdir_p; then
27470 mkdir -p $dirpart/$fdir
27472 as_dir=$dirpart/$fdir
27474 while test ! -d "$as_dir"; do
27475 as_dirs="$as_dir $as_dirs"
27476 as_dir=`(dirname "$as_dir") 2>/dev/null ||
27477 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
27478 X"$as_dir" : 'X\(//\)[^/]' \| \
27479 X"$as_dir" : 'X\(//\)$' \| \
27480 X"$as_dir" : 'X\(/\)' \| \
27481 . : '\(.\)' 2>/dev/null ||
27483 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
27484 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
27485 /^X\(\/\/\)$/{ s//\1/; q; }
27486 /^X\(\/\).*/{ s//\1/; q; }
27489 test ! -n "$as_dirs" || mkdir $as_dirs
27490 fi || { { echo "$as_me:$LINENO: error: cannot create directory $dirpart/$fdir" >&5
27491 echo "$as_me: error: cannot create directory $dirpart/$fdir" >&2;}
27492 { (exit 1); exit 1; }; }; }
27494 # echo "creating $dirpart/$file"
27495 echo '# dummy' > "$dirpart/$file"
27501 sed -e '/^NAT_FILE[ ]*=/s,^NAT_FILE[ ]*=[ ]*,&config/'"${gdb_host_cpu}"'/,' <Makefile >Makefile.tmp
27502 mv -f Makefile.tmp Makefile
27505 case x$CONFIG_HEADERS in
27506 xconfig.h:config.in)
27514 cat >>$CONFIG_STATUS <<\_ACEOF
27516 { (exit 0); exit 0; }
27518 chmod +x $CONFIG_STATUS
27519 ac_clean_files=$ac_clean_files_save
27522 # configure is writing to config.log, and then calls config.status.
27523 # config.status does its own redirection, appending to config.log.
27524 # Unfortunately, on DOS this fails, as config.log is still kept open
27525 # by configure, so config.status won't be able to write to it; its
27526 # output is simply discarded. So we exec the FD to /dev/null,
27527 # effectively closing config.log, so it can be properly (re)opened and
27528 # appended to by config.status. When coming back to configure, we
27529 # need to make the FD available again.
27530 if test "$no_create" != yes; then
27532 ac_config_status_args=
27533 test "$silent" = yes &&
27534 ac_config_status_args="$ac_config_status_args --quiet"
27536 $SHELL $CONFIG_STATUS $ac_config_status_args || ac_cs_success=false
27538 # Use ||, not &&, to avoid exiting from the if with $? = 1, which
27539 # would make configure fail if this is the last instruction.
27540 $ac_cs_success || { (exit 1); exit 1; }
27544 # CONFIG_SUBDIRS section, as fixed in confsubdir.m4.
27546 if test "$no_recursion" != yes; then
27548 # Remove --cache-file and --srcdir arguments so they do not pile up.
27549 ac_sub_configure_args=
27551 eval "set x $ac_configure_args"
27555 if test -n "$ac_prev"; then
27560 -cache-file | --cache-file | --cache-fil | --cache-fi \
27561 | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c)
27562 ac_prev=cache_file ;;
27563 -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \
27564 | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* \
27567 --config-cache | -C)
27569 -srcdir | --srcdir | --srcdi | --srcd | --src | --sr)
27571 -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*)
27573 -prefix | --prefix | --prefi | --pref | --pre | --pr | --p)
27575 -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*)
27579 *\'*) ac_arg=`echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;;
27581 ac_sub_configure_args="$ac_sub_configure_args '$ac_arg'" ;;
27585 # Always prepend --prefix to ensure using the same prefix
27586 # in subdir configurations.
27587 ac_arg="--prefix=$prefix"
27589 *\'*) ac_arg=`echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;;
27591 ac_sub_configure_args="$ac_arg $ac_sub_configure_args"
27594 for ac_dir in : $subdirs; do test "x$ac_dir" = x: && continue
27596 # Do not complain, so a configure script can configure whichever
27597 # parts of a large source tree are present.
27598 test -d "$srcdir/$ac_dir" || continue
27600 { echo "$as_me:$LINENO: configuring in $ac_dir" >&5
27601 echo "$as_me: configuring in $ac_dir" >&6;}
27602 { if $as_mkdir_p; then
27607 while test ! -d "$as_dir"; do
27608 as_dirs="$as_dir $as_dirs"
27609 as_dir=`(dirname "$as_dir") 2>/dev/null ||
27610 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
27611 X"$as_dir" : 'X\(//\)[^/]' \| \
27612 X"$as_dir" : 'X\(//\)$' \| \
27613 X"$as_dir" : 'X\(/\)' \| \
27614 . : '\(.\)' 2>/dev/null ||
27616 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
27617 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
27618 /^X\(\/\/\)$/{ s//\1/; q; }
27619 /^X\(\/\).*/{ s//\1/; q; }
27622 test ! -n "$as_dirs" || mkdir $as_dirs
27623 fi || { { echo "$as_me:$LINENO: error: cannot create directory \"$ac_dir\"" >&5
27624 echo "$as_me: error: cannot create directory \"$ac_dir\"" >&2;}
27625 { (exit 1); exit 1; }; }; }
27629 if test "$ac_dir" != .; then
27630 ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'`
27631 # A "../" for each directory in $ac_dir_suffix.
27632 ac_top_builddir=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,../,g'`
27634 ac_dir_suffix= ac_top_builddir=
27638 .) # No --srcdir option. We are building in place.
27640 if test -z "$ac_top_builddir"; then
27643 ac_top_srcdir=`echo $ac_top_builddir | sed 's,/$,,'`
27645 [\\/]* | ?:[\\/]* ) # Absolute path.
27646 ac_srcdir=$srcdir$ac_dir_suffix;
27647 ac_top_srcdir=$srcdir ;;
27648 *) # Relative path.
27649 ac_srcdir=$ac_top_builddir$srcdir$ac_dir_suffix
27650 ac_top_srcdir=$ac_top_builddir$srcdir ;;
27653 # Do not use `cd foo && pwd` to compute absolute paths, because
27654 # the directories may not exist.
27656 .) ac_abs_builddir="$ac_dir";;
27659 .) ac_abs_builddir=`pwd`;;
27660 [\\/]* | ?:[\\/]* ) ac_abs_builddir="$ac_dir";;
27661 *) ac_abs_builddir=`pwd`/"$ac_dir";;
27664 case $ac_abs_builddir in
27665 .) ac_abs_top_builddir=${ac_top_builddir}.;;
27667 case ${ac_top_builddir}. in
27668 .) ac_abs_top_builddir=$ac_abs_builddir;;
27669 [\\/]* | ?:[\\/]* ) ac_abs_top_builddir=${ac_top_builddir}.;;
27670 *) ac_abs_top_builddir=$ac_abs_builddir/${ac_top_builddir}.;;
27673 case $ac_abs_builddir in
27674 .) ac_abs_srcdir=$ac_srcdir;;
27677 .) ac_abs_srcdir=$ac_abs_builddir;;
27678 [\\/]* | ?:[\\/]* ) ac_abs_srcdir=$ac_srcdir;;
27679 *) ac_abs_srcdir=$ac_abs_builddir/$ac_srcdir;;
27682 case $ac_abs_builddir in
27683 .) ac_abs_top_srcdir=$ac_top_srcdir;;
27685 case $ac_top_srcdir in
27686 .) ac_abs_top_srcdir=$ac_abs_builddir;;
27687 [\\/]* | ?:[\\/]* ) ac_abs_top_srcdir=$ac_top_srcdir;;
27688 *) ac_abs_top_srcdir=$ac_abs_builddir/$ac_top_srcdir;;
27695 # Check for guested configure; otherwise get Cygnus style configure.
27696 if test -f "$ac_srcdir/configure.gnu"; then
27697 ac_sub_configure=$ac_srcdir/configure.gnu
27698 elif test -f "$ac_srcdir/configure"; then
27699 ac_sub_configure=$ac_srcdir/configure
27700 elif test -f "$ac_srcdir/configure.in"; then
27701 # This should be Cygnus configure.
27702 ac_sub_configure=$ac_aux_dir/configure
27704 { echo "$as_me:$LINENO: WARNING: no configuration information is in $ac_dir" >&5
27705 echo "$as_me: WARNING: no configuration information is in $ac_dir" >&2;}
27709 # The recursion is here.
27710 if test -n "$ac_sub_configure"; then
27711 # Make the cache file name correct relative to the subdirectory.
27712 case $cache_file in
27713 [\\/]* | ?:[\\/]* ) ac_sub_cache_file=$cache_file ;;
27714 *) # Relative path.
27715 ac_sub_cache_file=$ac_top_builddir$cache_file ;;
27718 { echo "$as_me:$LINENO: running $SHELL $ac_sub_configure $ac_sub_configure_args --cache-file=$ac_sub_cache_file --srcdir=$ac_srcdir" >&5
27719 echo "$as_me: running $SHELL $ac_sub_configure $ac_sub_configure_args --cache-file=$ac_sub_cache_file --srcdir=$ac_srcdir" >&6;}
27720 # The eval makes quoting arguments work.
27721 eval "\$SHELL \"\$ac_sub_configure\" $ac_sub_configure_args \
27722 --cache-file=\"\$ac_sub_cache_file\" --srcdir=\"\$ac_srcdir\"" ||
27723 { { echo "$as_me:$LINENO: error: $ac_sub_configure failed for $ac_dir" >&5
27724 echo "$as_me: error: $ac_sub_configure failed for $ac_dir" >&2;}
27725 { (exit 1); exit 1; }; }