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 am__leading_dot DEPDIR CCDEPMODE MAKE GMAKE_TRUE GMAKE_FALSE SET_MAKE 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 AMTAR am__tar am__untar am__include am__quote AMDEP_TRUE AMDEP_FALSE AMDEPBACKSLASH 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 PYTHON_CFLAGS 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_PATCH_LEVEL TCL_BIN_DIR TCL_SRC_DIR TCL_LIB_FILE TCL_LIB_FLAG TCL_LIB_SPEC TCL_STUB_LIB_FILE TCL_STUB_LIB_FLAG TCL_STUB_LIB_SPEC TCL_INCLUDE TCL_LIBRARY TCL_DEPS TK_VERSION TK_BIN_DIR TK_SRC_DIR TK_LIB_FILE TK_LIB_FLAG TK_LIB_SPEC TK_STUB_LIB_FILE TK_STUB_LIB_FLAG TK_STUB_LIB_SPEC TK_INCLUDE TK_LIBRARY TK_DEPS TK_XINCLUDES X_CFLAGS X_LDFLAGS X_LIBS 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 --with-python include python support (auto/yes/no/<path>)
894 --without-included-regex don't use included regex; this is the default
895 on systems with version 2 of the GNU C library
896 (use with caution on other system)
897 --with-sysroot=DIR Search for usr/lib et al within DIR.
898 --with-tcl directory containing tcl configuration (tclConfig.sh)
899 --with-tk directory containing tk configuration (tkConfig.sh)
900 --with-x use the X Window System
901 --with-libiconv-prefix=DIR search for libiconv in DIR/include and DIR/lib
903 Some influential environment variables:
904 CC C compiler command
905 CFLAGS C compiler flags
906 LDFLAGS linker flags, e.g. -L<lib dir> if you have libraries in a
907 nonstandard directory <lib dir>
908 CPPFLAGS C/C++ preprocessor flags, e.g. -I<include dir> if you have
909 headers in a nonstandard directory <include dir>
912 Use these variables to override the choices made by `configure' or to help
913 it to find libraries and programs with nonstandard names/locations.
918 if test "$ac_init_help" = "recursive"; then
919 # If there are subdirs, report their specific --help.
921 for ac_dir in : $ac_subdirs_all; do test "x$ac_dir" = x: && continue
922 test -d $ac_dir || continue
925 if test "$ac_dir" != .; then
926 ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'`
927 # A "../" for each directory in $ac_dir_suffix.
928 ac_top_builddir=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,../,g'`
930 ac_dir_suffix= ac_top_builddir=
934 .) # No --srcdir option. We are building in place.
936 if test -z "$ac_top_builddir"; then
939 ac_top_srcdir=`echo $ac_top_builddir | sed 's,/$,,'`
941 [\\/]* | ?:[\\/]* ) # Absolute path.
942 ac_srcdir=$srcdir$ac_dir_suffix;
943 ac_top_srcdir=$srcdir ;;
945 ac_srcdir=$ac_top_builddir$srcdir$ac_dir_suffix
946 ac_top_srcdir=$ac_top_builddir$srcdir ;;
949 # Do not use `cd foo && pwd` to compute absolute paths, because
950 # the directories may not exist.
952 .) ac_abs_builddir="$ac_dir";;
955 .) ac_abs_builddir=`pwd`;;
956 [\\/]* | ?:[\\/]* ) ac_abs_builddir="$ac_dir";;
957 *) ac_abs_builddir=`pwd`/"$ac_dir";;
960 case $ac_abs_builddir in
961 .) ac_abs_top_builddir=${ac_top_builddir}.;;
963 case ${ac_top_builddir}. in
964 .) ac_abs_top_builddir=$ac_abs_builddir;;
965 [\\/]* | ?:[\\/]* ) ac_abs_top_builddir=${ac_top_builddir}.;;
966 *) ac_abs_top_builddir=$ac_abs_builddir/${ac_top_builddir}.;;
969 case $ac_abs_builddir in
970 .) ac_abs_srcdir=$ac_srcdir;;
973 .) ac_abs_srcdir=$ac_abs_builddir;;
974 [\\/]* | ?:[\\/]* ) ac_abs_srcdir=$ac_srcdir;;
975 *) ac_abs_srcdir=$ac_abs_builddir/$ac_srcdir;;
978 case $ac_abs_builddir in
979 .) ac_abs_top_srcdir=$ac_top_srcdir;;
981 case $ac_top_srcdir in
982 .) ac_abs_top_srcdir=$ac_abs_builddir;;
983 [\\/]* | ?:[\\/]* ) ac_abs_top_srcdir=$ac_top_srcdir;;
984 *) ac_abs_top_srcdir=$ac_abs_builddir/$ac_top_srcdir;;
989 # Check for guested configure; otherwise get Cygnus style configure.
990 if test -f $ac_srcdir/configure.gnu; then
992 $SHELL $ac_srcdir/configure.gnu --help=recursive
993 elif test -f $ac_srcdir/configure; then
995 $SHELL $ac_srcdir/configure --help=recursive
996 elif test -f $ac_srcdir/configure.ac ||
997 test -f $ac_srcdir/configure.in; then
1001 echo "$as_me: WARNING: no configuration information is in $ac_dir" >&2
1007 test -n "$ac_init_help" && exit 0
1008 if $ac_init_version; then
1011 Copyright (C) 2003 Free Software Foundation, Inc.
1012 This configure script is free software; the Free Software Foundation
1013 gives unlimited permission to copy, distribute and modify it.
1019 This file contains any messages produced by compilers while
1020 running configure, to aid debugging if configure makes a mistake.
1022 It was created by $as_me, which was
1023 generated by GNU Autoconf 2.59. Invocation command line was
1034 hostname = `(hostname || uname -n) 2>/dev/null | sed 1q`
1035 uname -m = `(uname -m) 2>/dev/null || echo unknown`
1036 uname -r = `(uname -r) 2>/dev/null || echo unknown`
1037 uname -s = `(uname -s) 2>/dev/null || echo unknown`
1038 uname -v = `(uname -v) 2>/dev/null || echo unknown`
1040 /usr/bin/uname -p = `(/usr/bin/uname -p) 2>/dev/null || echo unknown`
1041 /bin/uname -X = `(/bin/uname -X) 2>/dev/null || echo unknown`
1043 /bin/arch = `(/bin/arch) 2>/dev/null || echo unknown`
1044 /usr/bin/arch -k = `(/usr/bin/arch -k) 2>/dev/null || echo unknown`
1045 /usr/convex/getsysinfo = `(/usr/convex/getsysinfo) 2>/dev/null || echo unknown`
1046 hostinfo = `(hostinfo) 2>/dev/null || echo unknown`
1047 /bin/machine = `(/bin/machine) 2>/dev/null || echo unknown`
1048 /usr/bin/oslevel = `(/usr/bin/oslevel) 2>/dev/null || echo unknown`
1049 /bin/universe = `(/bin/universe) 2>/dev/null || echo unknown`
1053 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1057 test -z "$as_dir" && as_dir=.
1058 echo "PATH: $as_dir"
1073 # Keep a trace of the command line.
1074 # Strip out --no-create and --no-recursion so they do not pile up.
1075 # Strip out --silent because we don't want to record it for future runs.
1076 # Also quote any args containing shell meta-characters.
1077 # Make two passes to allow for proper duplicate-argument suppression.
1082 ac_must_keep_next=false
1088 -no-create | --no-c* | -n | -no-recursion | --no-r*) continue ;;
1089 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
1090 | -silent | --silent | --silen | --sile | --sil)
1092 *" "*|*" "*|*[\[\]\~\#\$\^\&\*\(\)\{\}\\\|\;\<\>\?\"\']*)
1093 ac_arg=`echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;;
1096 1) ac_configure_args0="$ac_configure_args0 '$ac_arg'" ;;
1098 ac_configure_args1="$ac_configure_args1 '$ac_arg'"
1099 if test $ac_must_keep_next = true; then
1100 ac_must_keep_next=false # Got value, back to normal.
1103 *=* | --config-cache | -C | -disable-* | --disable-* \
1104 | -enable-* | --enable-* | -gas | --g* | -nfp | --nf* \
1105 | -q | -quiet | --q* | -silent | --sil* | -v | -verb* \
1106 | -with-* | --with-* | -without-* | --without-* | --x)
1107 case "$ac_configure_args0 " in
1108 "$ac_configure_args1"*" '$ac_arg' "* ) continue ;;
1111 -* ) ac_must_keep_next=true ;;
1114 ac_configure_args="$ac_configure_args$ac_sep'$ac_arg'"
1115 # Get rid of the leading space.
1121 $as_unset ac_configure_args0 || test "${ac_configure_args0+set}" != set || { ac_configure_args0=; export ac_configure_args0; }
1122 $as_unset ac_configure_args1 || test "${ac_configure_args1+set}" != set || { ac_configure_args1=; export ac_configure_args1; }
1124 # When interrupted or exit'd, cleanup temporary files, and complete
1125 # config.log. We remove comments because anyway the quotes in there
1126 # would cause problems or look ugly.
1127 # WARNING: Be sure not to use single quotes in there, as some shells,
1128 # such as our DU 5.0 friend, will then `close' the trap.
1129 trap 'exit_status=$?
1130 # Save into config.log some information that might help in debugging.
1135 ## ---------------- ##
1136 ## Cache variables. ##
1137 ## ---------------- ##
1140 # The following way of writing the cache mishandles newlines in values,
1143 case `(ac_space='"'"' '"'"'; set | grep ac_space) 2>&1` in
1146 "s/'"'"'/'"'"'\\\\'"'"''"'"'/g;
1147 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='"'"'\\2'"'"'/p"
1151 "s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1=\\2/p"
1158 ## ----------------- ##
1159 ## Output variables. ##
1160 ## ----------------- ##
1163 for ac_var in $ac_subst_vars
1165 eval ac_val=$`echo $ac_var`
1166 echo "$ac_var='"'"'$ac_val'"'"'"
1170 if test -n "$ac_subst_files"; then
1177 for ac_var in $ac_subst_files
1179 eval ac_val=$`echo $ac_var`
1180 echo "$ac_var='"'"'$ac_val'"'"'"
1185 if test -s confdefs.h; then
1192 sed "/^$/d" confdefs.h | sort
1195 test "$ac_signal" != 0 &&
1196 echo "$as_me: caught signal $ac_signal"
1197 echo "$as_me: exit $exit_status"
1199 rm -f core *.core &&
1200 rm -rf conftest* confdefs* conf$$* $ac_clean_files &&
1203 for ac_signal in 1 2 13 15; do
1204 trap 'ac_signal='$ac_signal'; { (exit 1); exit 1; }' $ac_signal
1208 # confdefs.h avoids OS command line length limits that DEFS can exceed.
1209 rm -rf conftest* confdefs.h
1210 # AIX cpp loses on an empty file, so make sure it contains at least a newline.
1213 # Predefined preprocessor variables.
1215 cat >>confdefs.h <<_ACEOF
1216 #define PACKAGE_NAME "$PACKAGE_NAME"
1220 cat >>confdefs.h <<_ACEOF
1221 #define PACKAGE_TARNAME "$PACKAGE_TARNAME"
1225 cat >>confdefs.h <<_ACEOF
1226 #define PACKAGE_VERSION "$PACKAGE_VERSION"
1230 cat >>confdefs.h <<_ACEOF
1231 #define PACKAGE_STRING "$PACKAGE_STRING"
1235 cat >>confdefs.h <<_ACEOF
1236 #define PACKAGE_BUGREPORT "$PACKAGE_BUGREPORT"
1240 # Let the site file select an alternate cache file if it wants to.
1241 # Prefer explicitly selected file to automatically selected ones.
1242 if test -z "$CONFIG_SITE"; then
1243 if test "x$prefix" != xNONE; then
1244 CONFIG_SITE="$prefix/share/config.site $prefix/etc/config.site"
1246 CONFIG_SITE="$ac_default_prefix/share/config.site $ac_default_prefix/etc/config.site"
1249 for ac_site_file in $CONFIG_SITE; do
1250 if test -r "$ac_site_file"; then
1251 { echo "$as_me:$LINENO: loading site script $ac_site_file" >&5
1252 echo "$as_me: loading site script $ac_site_file" >&6;}
1253 sed 's/^/| /' "$ac_site_file" >&5
1258 if test -r "$cache_file"; then
1259 # Some versions of bash will fail to source /dev/null (special
1260 # files actually), so we avoid doing that.
1261 if test -f "$cache_file"; then
1262 { echo "$as_me:$LINENO: loading cache $cache_file" >&5
1263 echo "$as_me: loading cache $cache_file" >&6;}
1265 [\\/]* | ?:[\\/]* ) . $cache_file;;
1266 *) . ./$cache_file;;
1270 { echo "$as_me:$LINENO: creating cache $cache_file" >&5
1271 echo "$as_me: creating cache $cache_file" >&6;}
1275 # Check that the precious variables saved in the cache have kept the same
1277 ac_cache_corrupted=false
1278 for ac_var in `(set) 2>&1 |
1279 sed -n 's/^ac_env_\([a-zA-Z_0-9]*\)_set=.*/\1/p'`; do
1280 eval ac_old_set=\$ac_cv_env_${ac_var}_set
1281 eval ac_new_set=\$ac_env_${ac_var}_set
1282 eval ac_old_val="\$ac_cv_env_${ac_var}_value"
1283 eval ac_new_val="\$ac_env_${ac_var}_value"
1284 case $ac_old_set,$ac_new_set in
1286 { echo "$as_me:$LINENO: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&5
1287 echo "$as_me: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&2;}
1288 ac_cache_corrupted=: ;;
1290 { echo "$as_me:$LINENO: error: \`$ac_var' was not set in the previous run" >&5
1291 echo "$as_me: error: \`$ac_var' was not set in the previous run" >&2;}
1292 ac_cache_corrupted=: ;;
1295 if test "x$ac_old_val" != "x$ac_new_val"; then
1296 # differences in whitespace do not lead to failure.
1297 ac_old_val_w=`echo x $ac_old_val`
1298 ac_new_val_w=`echo x $ac_new_val`
1299 if test "$ac_old_val_w" != "$ac_new_val_w"; then
1300 { echo "$as_me:$LINENO: error: \`$ac_var' has changed since the previous run:" >&5
1301 echo "$as_me: error: \`$ac_var' has changed since the previous run:" >&2;}
1302 ac_cache_corrupted=:
1304 { echo "$as_me:$LINENO: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&5
1305 echo "$as_me: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&2;}
1306 eval $ac_var=\$ac_old_val
1308 { echo "$as_me:$LINENO: former value: \`$ac_old_val'" >&5
1309 echo "$as_me: former value: \`$ac_old_val'" >&2;}
1310 { echo "$as_me:$LINENO: current value: \`$ac_new_val'" >&5
1311 echo "$as_me: current value: \`$ac_new_val'" >&2;}
1314 # Pass precious variables to config.status.
1315 if test "$ac_new_set" = set; then
1317 *" "*|*" "*|*[\[\]\~\#\$\^\&\*\(\)\{\}\\\|\;\<\>\?\"\']*)
1318 ac_arg=$ac_var=`echo "$ac_new_val" | sed "s/'/'\\\\\\\\''/g"` ;;
1319 *) ac_arg=$ac_var=$ac_new_val ;;
1321 case " $ac_configure_args " in
1322 *" '$ac_arg' "*) ;; # Avoid dups. Use of quotes ensures accuracy.
1323 *) ac_configure_args="$ac_configure_args '$ac_arg'" ;;
1327 if $ac_cache_corrupted; then
1328 { echo "$as_me:$LINENO: error: in \`$ac_pwd':" >&5
1329 echo "$as_me: error: in \`$ac_pwd':" >&2;}
1330 { echo "$as_me:$LINENO: error: changes in the environment can compromise the build" >&5
1331 echo "$as_me: error: changes in the environment can compromise the build" >&2;}
1332 { { echo "$as_me:$LINENO: error: run \`make distclean' and/or \`rm $cache_file' and start over" >&5
1333 echo "$as_me: error: run \`make distclean' and/or \`rm $cache_file' and start over" >&2;}
1334 { (exit 1); exit 1; }; }
1338 ac_cpp='$CPP $CPPFLAGS'
1339 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
1340 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
1341 ac_compiler_gnu=$ac_cv_c_compiler_gnu
1344 gl_header_list="$gl_header_list stdint.h"
1345 gl_header_list="$gl_header_list wchar.h"
1346 gl_header_list="$gl_header_list string.h"
1367 ac_config_headers="$ac_config_headers config.h:config.in"
1369 echo "$as_me:$LINENO: checking whether to enable maintainer-specific portions of Makefiles" >&5
1370 echo $ECHO_N "checking whether to enable maintainer-specific portions of Makefiles... $ECHO_C" >&6
1371 # Check whether --enable-maintainer-mode or --disable-maintainer-mode was given.
1372 if test "${enable_maintainer_mode+set}" = set; then
1373 enableval="$enable_maintainer_mode"
1374 USE_MAINTAINER_MODE=$enableval
1376 USE_MAINTAINER_MODE=no
1378 echo "$as_me:$LINENO: result: $USE_MAINTAINER_MODE" >&5
1379 echo "${ECHO_T}$USE_MAINTAINER_MODE" >&6
1382 if test $USE_MAINTAINER_MODE = yes; then
1383 MAINTAINER_MODE_TRUE=
1384 MAINTAINER_MODE_FALSE='#'
1386 MAINTAINER_MODE_TRUE='#'
1387 MAINTAINER_MODE_FALSE=
1390 MAINT=$MAINTAINER_MODE_TRUE
1395 ac_cpp='$CPP $CPPFLAGS'
1396 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
1397 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
1398 ac_compiler_gnu=$ac_cv_c_compiler_gnu
1399 if test -n "$ac_tool_prefix"; then
1400 # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args.
1401 set dummy ${ac_tool_prefix}gcc; ac_word=$2
1402 echo "$as_me:$LINENO: checking for $ac_word" >&5
1403 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1404 if test "${ac_cv_prog_CC+set}" = set; then
1405 echo $ECHO_N "(cached) $ECHO_C" >&6
1407 if test -n "$CC"; then
1408 ac_cv_prog_CC="$CC" # Let the user override the test.
1410 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1414 test -z "$as_dir" && as_dir=.
1415 for ac_exec_ext in '' $ac_executable_extensions; do
1416 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1417 ac_cv_prog_CC="${ac_tool_prefix}gcc"
1418 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
1427 if test -n "$CC"; then
1428 echo "$as_me:$LINENO: result: $CC" >&5
1429 echo "${ECHO_T}$CC" >&6
1431 echo "$as_me:$LINENO: result: no" >&5
1432 echo "${ECHO_T}no" >&6
1436 if test -z "$ac_cv_prog_CC"; then
1438 # Extract the first word of "gcc", so it can be a program name with args.
1439 set dummy gcc; ac_word=$2
1440 echo "$as_me:$LINENO: checking for $ac_word" >&5
1441 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1442 if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
1443 echo $ECHO_N "(cached) $ECHO_C" >&6
1445 if test -n "$ac_ct_CC"; then
1446 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
1448 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1452 test -z "$as_dir" && as_dir=.
1453 for ac_exec_ext in '' $ac_executable_extensions; do
1454 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1455 ac_cv_prog_ac_ct_CC="gcc"
1456 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
1464 ac_ct_CC=$ac_cv_prog_ac_ct_CC
1465 if test -n "$ac_ct_CC"; then
1466 echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
1467 echo "${ECHO_T}$ac_ct_CC" >&6
1469 echo "$as_me:$LINENO: result: no" >&5
1470 echo "${ECHO_T}no" >&6
1478 if test -z "$CC"; then
1479 if test -n "$ac_tool_prefix"; then
1480 # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args.
1481 set dummy ${ac_tool_prefix}cc; ac_word=$2
1482 echo "$as_me:$LINENO: checking for $ac_word" >&5
1483 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1484 if test "${ac_cv_prog_CC+set}" = set; then
1485 echo $ECHO_N "(cached) $ECHO_C" >&6
1487 if test -n "$CC"; then
1488 ac_cv_prog_CC="$CC" # Let the user override the test.
1490 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1494 test -z "$as_dir" && as_dir=.
1495 for ac_exec_ext in '' $ac_executable_extensions; do
1496 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1497 ac_cv_prog_CC="${ac_tool_prefix}cc"
1498 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
1507 if test -n "$CC"; then
1508 echo "$as_me:$LINENO: result: $CC" >&5
1509 echo "${ECHO_T}$CC" >&6
1511 echo "$as_me:$LINENO: result: no" >&5
1512 echo "${ECHO_T}no" >&6
1516 if test -z "$ac_cv_prog_CC"; then
1518 # Extract the first word of "cc", so it can be a program name with args.
1519 set dummy cc; ac_word=$2
1520 echo "$as_me:$LINENO: checking for $ac_word" >&5
1521 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1522 if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
1523 echo $ECHO_N "(cached) $ECHO_C" >&6
1525 if test -n "$ac_ct_CC"; then
1526 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
1528 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1532 test -z "$as_dir" && as_dir=.
1533 for ac_exec_ext in '' $ac_executable_extensions; do
1534 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1535 ac_cv_prog_ac_ct_CC="cc"
1536 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
1544 ac_ct_CC=$ac_cv_prog_ac_ct_CC
1545 if test -n "$ac_ct_CC"; then
1546 echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
1547 echo "${ECHO_T}$ac_ct_CC" >&6
1549 echo "$as_me:$LINENO: result: no" >&5
1550 echo "${ECHO_T}no" >&6
1559 if test -z "$CC"; then
1560 # Extract the first word of "cc", so it can be a program name with args.
1561 set dummy cc; ac_word=$2
1562 echo "$as_me:$LINENO: checking for $ac_word" >&5
1563 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1564 if test "${ac_cv_prog_CC+set}" = set; then
1565 echo $ECHO_N "(cached) $ECHO_C" >&6
1567 if test -n "$CC"; then
1568 ac_cv_prog_CC="$CC" # Let the user override the test.
1571 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1575 test -z "$as_dir" && as_dir=.
1576 for ac_exec_ext in '' $ac_executable_extensions; do
1577 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1578 if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then
1579 ac_prog_rejected=yes
1583 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
1589 if test $ac_prog_rejected = yes; then
1590 # We found a bogon in the path, so make sure we never use it.
1591 set dummy $ac_cv_prog_CC
1593 if test $# != 0; then
1594 # We chose a different compiler from the bogus one.
1595 # However, it has the same basename, so the bogon will be chosen
1596 # first if we set CC to just the basename; use the full file name.
1598 ac_cv_prog_CC="$as_dir/$ac_word${1+' '}$@"
1604 if test -n "$CC"; then
1605 echo "$as_me:$LINENO: result: $CC" >&5
1606 echo "${ECHO_T}$CC" >&6
1608 echo "$as_me:$LINENO: result: no" >&5
1609 echo "${ECHO_T}no" >&6
1613 if test -z "$CC"; then
1614 if test -n "$ac_tool_prefix"; then
1617 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
1618 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
1619 echo "$as_me:$LINENO: checking for $ac_word" >&5
1620 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1621 if test "${ac_cv_prog_CC+set}" = set; then
1622 echo $ECHO_N "(cached) $ECHO_C" >&6
1624 if test -n "$CC"; then
1625 ac_cv_prog_CC="$CC" # Let the user override the test.
1627 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1631 test -z "$as_dir" && as_dir=.
1632 for ac_exec_ext in '' $ac_executable_extensions; do
1633 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1634 ac_cv_prog_CC="$ac_tool_prefix$ac_prog"
1635 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
1644 if test -n "$CC"; then
1645 echo "$as_me:$LINENO: result: $CC" >&5
1646 echo "${ECHO_T}$CC" >&6
1648 echo "$as_me:$LINENO: result: no" >&5
1649 echo "${ECHO_T}no" >&6
1652 test -n "$CC" && break
1655 if test -z "$CC"; then
1659 # Extract the first word of "$ac_prog", so it can be a program name with args.
1660 set dummy $ac_prog; ac_word=$2
1661 echo "$as_me:$LINENO: checking for $ac_word" >&5
1662 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1663 if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
1664 echo $ECHO_N "(cached) $ECHO_C" >&6
1666 if test -n "$ac_ct_CC"; then
1667 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
1669 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1673 test -z "$as_dir" && as_dir=.
1674 for ac_exec_ext in '' $ac_executable_extensions; do
1675 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1676 ac_cv_prog_ac_ct_CC="$ac_prog"
1677 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
1685 ac_ct_CC=$ac_cv_prog_ac_ct_CC
1686 if test -n "$ac_ct_CC"; then
1687 echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
1688 echo "${ECHO_T}$ac_ct_CC" >&6
1690 echo "$as_me:$LINENO: result: no" >&5
1691 echo "${ECHO_T}no" >&6
1694 test -n "$ac_ct_CC" && break
1703 test -z "$CC" && { { echo "$as_me:$LINENO: error: in \`$ac_pwd':" >&5
1704 echo "$as_me: error: in \`$ac_pwd':" >&2;}
1705 { { echo "$as_me:$LINENO: error: no acceptable C compiler found in \$PATH
1706 See \`config.log' for more details." >&5
1707 echo "$as_me: error: no acceptable C compiler found in \$PATH
1708 See \`config.log' for more details." >&2;}
1709 { (exit 1); exit 1; }; }; }
1711 # Provide some information about the compiler.
1712 echo "$as_me:$LINENO:" \
1713 "checking for C compiler version" >&5
1714 ac_compiler=`set X $ac_compile; echo $2`
1715 { (eval echo "$as_me:$LINENO: \"$ac_compiler --version </dev/null >&5\"") >&5
1716 (eval $ac_compiler --version </dev/null >&5) 2>&5
1718 echo "$as_me:$LINENO: \$? = $ac_status" >&5
1719 (exit $ac_status); }
1720 { (eval echo "$as_me:$LINENO: \"$ac_compiler -v </dev/null >&5\"") >&5
1721 (eval $ac_compiler -v </dev/null >&5) 2>&5
1723 echo "$as_me:$LINENO: \$? = $ac_status" >&5
1724 (exit $ac_status); }
1725 { (eval echo "$as_me:$LINENO: \"$ac_compiler -V </dev/null >&5\"") >&5
1726 (eval $ac_compiler -V </dev/null >&5) 2>&5
1728 echo "$as_me:$LINENO: \$? = $ac_status" >&5
1729 (exit $ac_status); }
1731 cat >conftest.$ac_ext <<_ACEOF
1734 cat confdefs.h >>conftest.$ac_ext
1735 cat >>conftest.$ac_ext <<_ACEOF
1736 /* end confdefs.h. */
1746 ac_clean_files_save=$ac_clean_files
1747 ac_clean_files="$ac_clean_files a.out a.exe b.out"
1748 # Try to create an executable without -o first, disregard a.out.
1749 # It will help us diagnose broken compilers, and finding out an intuition
1751 echo "$as_me:$LINENO: checking for C compiler default output file name" >&5
1752 echo $ECHO_N "checking for C compiler default output file name... $ECHO_C" >&6
1753 ac_link_default=`echo "$ac_link" | sed 's/ -o *conftest[^ ]*//'`
1754 if { (eval echo "$as_me:$LINENO: \"$ac_link_default\"") >&5
1755 (eval $ac_link_default) 2>&5
1757 echo "$as_me:$LINENO: \$? = $ac_status" >&5
1758 (exit $ac_status); }; then
1759 # Find the output, starting from the most likely. This scheme is
1760 # not robust to junk in `.', hence go to wildcards (a.*) only as a last
1763 # Be careful to initialize this variable, since it used to be cached.
1764 # Otherwise an old cache value of `no' led to `EXEEXT = no' in a Makefile.
1766 # b.out is created by i960 compilers.
1767 for ac_file in a_out.exe a.exe conftest.exe a.out conftest a.* conftest.* b.out
1769 test -f "$ac_file" || continue
1771 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.o | *.obj )
1774 # This is the source file.
1777 # We found the default executable, but exeext='' is most
1781 ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
1782 # FIXME: I believe we export ac_cv_exeext for Libtool,
1783 # but it would be cool to find out if it's true. Does anybody
1784 # maintain Libtool? --akim.
1792 echo "$as_me: failed program was:" >&5
1793 sed 's/^/| /' conftest.$ac_ext >&5
1795 { { echo "$as_me:$LINENO: error: in \`$ac_pwd':" >&5
1796 echo "$as_me: error: in \`$ac_pwd':" >&2;}
1797 { { echo "$as_me:$LINENO: error: C compiler cannot create executables
1798 See \`config.log' for more details." >&5
1799 echo "$as_me: error: C compiler cannot create executables
1800 See \`config.log' for more details." >&2;}
1801 { (exit 77); exit 77; }; }; }
1804 ac_exeext=$ac_cv_exeext
1805 echo "$as_me:$LINENO: result: $ac_file" >&5
1806 echo "${ECHO_T}$ac_file" >&6
1808 # Check the compiler produces executables we can run. If not, either
1809 # the compiler is broken, or we cross compile.
1810 echo "$as_me:$LINENO: checking whether the C compiler works" >&5
1811 echo $ECHO_N "checking whether the C compiler works... $ECHO_C" >&6
1812 # FIXME: These cross compiler hacks should be removed for Autoconf 3.0
1813 # If not cross compiling, check that we can run a simple program.
1814 if test "$cross_compiling" != yes; then
1815 if { ac_try='./$ac_file'
1816 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
1819 echo "$as_me:$LINENO: \$? = $ac_status" >&5
1820 (exit $ac_status); }; }; then
1823 if test "$cross_compiling" = maybe; then
1826 { { echo "$as_me:$LINENO: error: in \`$ac_pwd':" >&5
1827 echo "$as_me: error: in \`$ac_pwd':" >&2;}
1828 { { echo "$as_me:$LINENO: error: cannot run C compiled programs.
1829 If you meant to cross compile, use \`--host'.
1830 See \`config.log' for more details." >&5
1831 echo "$as_me: error: cannot run C compiled programs.
1832 If you meant to cross compile, use \`--host'.
1833 See \`config.log' for more details." >&2;}
1834 { (exit 1); exit 1; }; }; }
1838 echo "$as_me:$LINENO: result: yes" >&5
1839 echo "${ECHO_T}yes" >&6
1841 rm -f a.out a.exe conftest$ac_cv_exeext b.out
1842 ac_clean_files=$ac_clean_files_save
1843 # Check the compiler produces executables we can run. If not, either
1844 # the compiler is broken, or we cross compile.
1845 echo "$as_me:$LINENO: checking whether we are cross compiling" >&5
1846 echo $ECHO_N "checking whether we are cross compiling... $ECHO_C" >&6
1847 echo "$as_me:$LINENO: result: $cross_compiling" >&5
1848 echo "${ECHO_T}$cross_compiling" >&6
1850 echo "$as_me:$LINENO: checking for suffix of executables" >&5
1851 echo $ECHO_N "checking for suffix of executables... $ECHO_C" >&6
1852 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
1853 (eval $ac_link) 2>&5
1855 echo "$as_me:$LINENO: \$? = $ac_status" >&5
1856 (exit $ac_status); }; then
1857 # If both `conftest.exe' and `conftest' are `present' (well, observable)
1858 # catch `conftest.exe'. For instance with Cygwin, `ls conftest' will
1859 # work properly (i.e., refer to `conftest.exe'), while it won't with
1861 for ac_file in conftest.exe conftest conftest.*; do
1862 test -f "$ac_file" || continue
1864 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.o | *.obj ) ;;
1865 *.* ) ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
1872 { { echo "$as_me:$LINENO: error: in \`$ac_pwd':" >&5
1873 echo "$as_me: error: in \`$ac_pwd':" >&2;}
1874 { { echo "$as_me:$LINENO: error: cannot compute suffix of executables: cannot compile and link
1875 See \`config.log' for more details." >&5
1876 echo "$as_me: error: cannot compute suffix of executables: cannot compile and link
1877 See \`config.log' for more details." >&2;}
1878 { (exit 1); exit 1; }; }; }
1881 rm -f conftest$ac_cv_exeext
1882 echo "$as_me:$LINENO: result: $ac_cv_exeext" >&5
1883 echo "${ECHO_T}$ac_cv_exeext" >&6
1885 rm -f conftest.$ac_ext
1886 EXEEXT=$ac_cv_exeext
1888 echo "$as_me:$LINENO: checking for suffix of object files" >&5
1889 echo $ECHO_N "checking for suffix of object files... $ECHO_C" >&6
1890 if test "${ac_cv_objext+set}" = set; then
1891 echo $ECHO_N "(cached) $ECHO_C" >&6
1893 cat >conftest.$ac_ext <<_ACEOF
1896 cat confdefs.h >>conftest.$ac_ext
1897 cat >>conftest.$ac_ext <<_ACEOF
1898 /* end confdefs.h. */
1908 rm -f conftest.o conftest.obj
1909 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
1910 (eval $ac_compile) 2>&5
1912 echo "$as_me:$LINENO: \$? = $ac_status" >&5
1913 (exit $ac_status); }; then
1914 for ac_file in `(ls conftest.o conftest.obj; ls conftest.*) 2>/dev/null`; do
1916 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg ) ;;
1917 *) ac_cv_objext=`expr "$ac_file" : '.*\.\(.*\)'`
1922 echo "$as_me: failed program was:" >&5
1923 sed 's/^/| /' conftest.$ac_ext >&5
1925 { { echo "$as_me:$LINENO: error: in \`$ac_pwd':" >&5
1926 echo "$as_me: error: in \`$ac_pwd':" >&2;}
1927 { { echo "$as_me:$LINENO: error: cannot compute suffix of object files: cannot compile
1928 See \`config.log' for more details." >&5
1929 echo "$as_me: error: cannot compute suffix of object files: cannot compile
1930 See \`config.log' for more details." >&2;}
1931 { (exit 1); exit 1; }; }; }
1934 rm -f conftest.$ac_cv_objext conftest.$ac_ext
1936 echo "$as_me:$LINENO: result: $ac_cv_objext" >&5
1937 echo "${ECHO_T}$ac_cv_objext" >&6
1938 OBJEXT=$ac_cv_objext
1940 echo "$as_me:$LINENO: checking whether we are using the GNU C compiler" >&5
1941 echo $ECHO_N "checking whether we are using the GNU C compiler... $ECHO_C" >&6
1942 if test "${ac_cv_c_compiler_gnu+set}" = set; then
1943 echo $ECHO_N "(cached) $ECHO_C" >&6
1945 cat >conftest.$ac_ext <<_ACEOF
1948 cat confdefs.h >>conftest.$ac_ext
1949 cat >>conftest.$ac_ext <<_ACEOF
1950 /* end confdefs.h. */
1963 rm -f conftest.$ac_objext
1964 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
1965 (eval $ac_compile) 2>conftest.er1
1967 grep -v '^ *+' conftest.er1 >conftest.err
1969 cat conftest.err >&5
1970 echo "$as_me:$LINENO: \$? = $ac_status" >&5
1971 (exit $ac_status); } &&
1972 { ac_try='test -z "$ac_c_werror_flag"
1973 || test ! -s conftest.err'
1974 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
1977 echo "$as_me:$LINENO: \$? = $ac_status" >&5
1978 (exit $ac_status); }; } &&
1979 { ac_try='test -s conftest.$ac_objext'
1980 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
1983 echo "$as_me:$LINENO: \$? = $ac_status" >&5
1984 (exit $ac_status); }; }; then
1987 echo "$as_me: failed program was:" >&5
1988 sed 's/^/| /' conftest.$ac_ext >&5
1992 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
1993 ac_cv_c_compiler_gnu=$ac_compiler_gnu
1996 echo "$as_me:$LINENO: result: $ac_cv_c_compiler_gnu" >&5
1997 echo "${ECHO_T}$ac_cv_c_compiler_gnu" >&6
1998 GCC=`test $ac_compiler_gnu = yes && echo yes`
1999 ac_test_CFLAGS=${CFLAGS+set}
2000 ac_save_CFLAGS=$CFLAGS
2002 echo "$as_me:$LINENO: checking whether $CC accepts -g" >&5
2003 echo $ECHO_N "checking whether $CC accepts -g... $ECHO_C" >&6
2004 if test "${ac_cv_prog_cc_g+set}" = set; then
2005 echo $ECHO_N "(cached) $ECHO_C" >&6
2007 cat >conftest.$ac_ext <<_ACEOF
2010 cat confdefs.h >>conftest.$ac_ext
2011 cat >>conftest.$ac_ext <<_ACEOF
2012 /* end confdefs.h. */
2022 rm -f conftest.$ac_objext
2023 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2024 (eval $ac_compile) 2>conftest.er1
2026 grep -v '^ *+' conftest.er1 >conftest.err
2028 cat conftest.err >&5
2029 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2030 (exit $ac_status); } &&
2031 { ac_try='test -z "$ac_c_werror_flag"
2032 || test ! -s conftest.err'
2033 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2036 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2037 (exit $ac_status); }; } &&
2038 { ac_try='test -s conftest.$ac_objext'
2039 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2042 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2043 (exit $ac_status); }; }; then
2046 echo "$as_me: failed program was:" >&5
2047 sed 's/^/| /' conftest.$ac_ext >&5
2051 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
2053 echo "$as_me:$LINENO: result: $ac_cv_prog_cc_g" >&5
2054 echo "${ECHO_T}$ac_cv_prog_cc_g" >&6
2055 if test "$ac_test_CFLAGS" = set; then
2056 CFLAGS=$ac_save_CFLAGS
2057 elif test $ac_cv_prog_cc_g = yes; then
2058 if test "$GCC" = yes; then
2064 if test "$GCC" = yes; then
2070 echo "$as_me:$LINENO: checking for $CC option to accept ANSI C" >&5
2071 echo $ECHO_N "checking for $CC option to accept ANSI C... $ECHO_C" >&6
2072 if test "${ac_cv_prog_cc_stdc+set}" = set; then
2073 echo $ECHO_N "(cached) $ECHO_C" >&6
2075 ac_cv_prog_cc_stdc=no
2077 cat >conftest.$ac_ext <<_ACEOF
2080 cat confdefs.h >>conftest.$ac_ext
2081 cat >>conftest.$ac_ext <<_ACEOF
2082 /* end confdefs.h. */
2085 #include <sys/types.h>
2086 #include <sys/stat.h>
2087 /* Most of the following tests are stolen from RCS 5.7's src/conf.sh. */
2088 struct buf { int x; };
2089 FILE * (*rcsopen) (struct buf *, struct stat *, int);
2090 static char *e (p, i)
2096 static char *f (char * (*g) (char **, int), char **p, ...)
2101 s = g (p, va_arg (v,int));
2106 /* OSF 4.0 Compaq cc is some sort of almost-ANSI by default. It has
2107 function prototypes and stuff, but not '\xHH' hex character constants.
2108 These don't provoke an error unfortunately, instead are silently treated
2109 as 'x'. The following induces an error, until -std1 is added to get
2110 proper ANSI mode. Curiously '\x00'!='x' always comes out true, for an
2111 array size at least. It's necessary to write '\x00'==0 to get something
2112 that's true only with -std1. */
2113 int osf4_cc_array ['\x00' == 0 ? 1 : -1];
2115 int test (int i, double x);
2116 struct s1 {int (*f) (int a);};
2117 struct s2 {int (*f) (double a);};
2118 int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
2124 return f (e, argv, 0) != argv[0] || f (e, argv, 1) != argv[1];
2129 # Don't try gcc -ansi; that turns off useful extensions and
2130 # breaks some systems' header files.
2131 # AIX -qlanglvl=ansi
2132 # Ultrix and OSF/1 -std1
2133 # HP-UX 10.20 and later -Ae
2134 # HP-UX older versions -Aa -D_HPUX_SOURCE
2135 # SVR4 -Xc -D__EXTENSIONS__
2136 for ac_arg in "" -qlanglvl=ansi -std1 -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
2138 CC="$ac_save_CC $ac_arg"
2139 rm -f conftest.$ac_objext
2140 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2141 (eval $ac_compile) 2>conftest.er1
2143 grep -v '^ *+' conftest.er1 >conftest.err
2145 cat conftest.err >&5
2146 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2147 (exit $ac_status); } &&
2148 { ac_try='test -z "$ac_c_werror_flag"
2149 || test ! -s conftest.err'
2150 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2153 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2154 (exit $ac_status); }; } &&
2155 { ac_try='test -s conftest.$ac_objext'
2156 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2159 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2160 (exit $ac_status); }; }; then
2161 ac_cv_prog_cc_stdc=$ac_arg
2164 echo "$as_me: failed program was:" >&5
2165 sed 's/^/| /' conftest.$ac_ext >&5
2168 rm -f conftest.err conftest.$ac_objext
2170 rm -f conftest.$ac_ext conftest.$ac_objext
2175 case "x$ac_cv_prog_cc_stdc" in
2177 echo "$as_me:$LINENO: result: none needed" >&5
2178 echo "${ECHO_T}none needed" >&6 ;;
2180 echo "$as_me:$LINENO: result: $ac_cv_prog_cc_stdc" >&5
2181 echo "${ECHO_T}$ac_cv_prog_cc_stdc" >&6
2182 CC="$CC $ac_cv_prog_cc_stdc" ;;
2185 # Some people use a C++ compiler to compile C. Since we use `exit',
2186 # in C++ we need to declare it. In case someone uses the same compiler
2187 # for both compiling C and C++ we need to have the C++ compiler decide
2188 # the declaration of exit, since it's the most demanding environment.
2189 cat >conftest.$ac_ext <<_ACEOF
2194 rm -f conftest.$ac_objext
2195 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2196 (eval $ac_compile) 2>conftest.er1
2198 grep -v '^ *+' conftest.er1 >conftest.err
2200 cat conftest.err >&5
2201 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2202 (exit $ac_status); } &&
2203 { ac_try='test -z "$ac_c_werror_flag"
2204 || test ! -s conftest.err'
2205 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2208 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2209 (exit $ac_status); }; } &&
2210 { ac_try='test -s conftest.$ac_objext'
2211 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2214 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2215 (exit $ac_status); }; }; then
2216 for ac_declaration in \
2218 'extern "C" void std::exit (int) throw (); using std::exit;' \
2219 'extern "C" void std::exit (int); using std::exit;' \
2220 'extern "C" void exit (int) throw ();' \
2221 'extern "C" void exit (int);' \
2224 cat >conftest.$ac_ext <<_ACEOF
2227 cat confdefs.h >>conftest.$ac_ext
2228 cat >>conftest.$ac_ext <<_ACEOF
2229 /* end confdefs.h. */
2240 rm -f conftest.$ac_objext
2241 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2242 (eval $ac_compile) 2>conftest.er1
2244 grep -v '^ *+' conftest.er1 >conftest.err
2246 cat conftest.err >&5
2247 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2248 (exit $ac_status); } &&
2249 { ac_try='test -z "$ac_c_werror_flag"
2250 || test ! -s conftest.err'
2251 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2254 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2255 (exit $ac_status); }; } &&
2256 { ac_try='test -s conftest.$ac_objext'
2257 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2260 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2261 (exit $ac_status); }; }; then
2264 echo "$as_me: failed program was:" >&5
2265 sed 's/^/| /' conftest.$ac_ext >&5
2269 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
2270 cat >conftest.$ac_ext <<_ACEOF
2273 cat confdefs.h >>conftest.$ac_ext
2274 cat >>conftest.$ac_ext <<_ACEOF
2275 /* end confdefs.h. */
2285 rm -f conftest.$ac_objext
2286 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2287 (eval $ac_compile) 2>conftest.er1
2289 grep -v '^ *+' conftest.er1 >conftest.err
2291 cat conftest.err >&5
2292 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2293 (exit $ac_status); } &&
2294 { ac_try='test -z "$ac_c_werror_flag"
2295 || test ! -s conftest.err'
2296 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2299 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2300 (exit $ac_status); }; } &&
2301 { ac_try='test -s conftest.$ac_objext'
2302 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2305 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2306 (exit $ac_status); }; }; then
2309 echo "$as_me: failed program was:" >&5
2310 sed 's/^/| /' conftest.$ac_ext >&5
2313 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
2316 if test -n "$ac_declaration"; then
2317 echo '#ifdef __cplusplus' >>confdefs.h
2318 echo $ac_declaration >>confdefs.h
2319 echo '#endif' >>confdefs.h
2323 echo "$as_me: failed program was:" >&5
2324 sed 's/^/| /' conftest.$ac_ext >&5
2327 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
2329 ac_cpp='$CPP $CPPFLAGS'
2330 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2331 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2332 ac_compiler_gnu=$ac_cv_c_compiler_gnu
2335 cat >>confdefs.h <<\_ACEOF
2336 #define _GNU_SOURCE 1
2342 ac_cpp='$CPP $CPPFLAGS'
2343 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2344 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2345 ac_compiler_gnu=$ac_cv_c_compiler_gnu
2346 echo "$as_me:$LINENO: checking how to run the C preprocessor" >&5
2347 echo $ECHO_N "checking how to run the C preprocessor... $ECHO_C" >&6
2348 # On Suns, sometimes $CPP names a directory.
2349 if test -n "$CPP" && test -d "$CPP"; then
2352 if test -z "$CPP"; then
2353 if test "${ac_cv_prog_CPP+set}" = set; then
2354 echo $ECHO_N "(cached) $ECHO_C" >&6
2356 # Double quotes because CPP needs to be expanded
2357 for CPP in "$CC -E" "$CC -E -traditional-cpp" "/lib/cpp"
2360 for ac_c_preproc_warn_flag in '' yes
2362 # Use a header file that comes with gcc, so configuring glibc
2363 # with a fresh cross-compiler works.
2364 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
2365 # <limits.h> exists even on freestanding compilers.
2366 # On the NeXT, cc -E runs the code through the compiler's parser,
2367 # not just through cpp. "Syntax error" is here to catch this case.
2368 cat >conftest.$ac_ext <<_ACEOF
2371 cat confdefs.h >>conftest.$ac_ext
2372 cat >>conftest.$ac_ext <<_ACEOF
2373 /* end confdefs.h. */
2375 # include <limits.h>
2377 # include <assert.h>
2381 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
2382 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
2384 grep -v '^ *+' conftest.er1 >conftest.err
2386 cat conftest.err >&5
2387 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2388 (exit $ac_status); } >/dev/null; then
2389 if test -s conftest.err; then
2390 ac_cpp_err=$ac_c_preproc_warn_flag
2391 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
2398 if test -z "$ac_cpp_err"; then
2401 echo "$as_me: failed program was:" >&5
2402 sed 's/^/| /' conftest.$ac_ext >&5
2404 # Broken: fails on valid input.
2407 rm -f conftest.err conftest.$ac_ext
2409 # OK, works on sane cases. Now check whether non-existent headers
2410 # can be detected and how.
2411 cat >conftest.$ac_ext <<_ACEOF
2414 cat confdefs.h >>conftest.$ac_ext
2415 cat >>conftest.$ac_ext <<_ACEOF
2416 /* end confdefs.h. */
2417 #include <ac_nonexistent.h>
2419 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
2420 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
2422 grep -v '^ *+' conftest.er1 >conftest.err
2424 cat conftest.err >&5
2425 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2426 (exit $ac_status); } >/dev/null; then
2427 if test -s conftest.err; then
2428 ac_cpp_err=$ac_c_preproc_warn_flag
2429 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
2436 if test -z "$ac_cpp_err"; then
2437 # Broken: success on invalid input.
2440 echo "$as_me: failed program was:" >&5
2441 sed 's/^/| /' conftest.$ac_ext >&5
2443 # Passes both tests.
2447 rm -f conftest.err conftest.$ac_ext
2450 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
2451 rm -f conftest.err conftest.$ac_ext
2452 if $ac_preproc_ok; then
2464 echo "$as_me:$LINENO: result: $CPP" >&5
2465 echo "${ECHO_T}$CPP" >&6
2467 for ac_c_preproc_warn_flag in '' yes
2469 # Use a header file that comes with gcc, so configuring glibc
2470 # with a fresh cross-compiler works.
2471 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
2472 # <limits.h> exists even on freestanding compilers.
2473 # On the NeXT, cc -E runs the code through the compiler's parser,
2474 # not just through cpp. "Syntax error" is here to catch this case.
2475 cat >conftest.$ac_ext <<_ACEOF
2478 cat confdefs.h >>conftest.$ac_ext
2479 cat >>conftest.$ac_ext <<_ACEOF
2480 /* end confdefs.h. */
2482 # include <limits.h>
2484 # include <assert.h>
2488 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
2489 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
2491 grep -v '^ *+' conftest.er1 >conftest.err
2493 cat conftest.err >&5
2494 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2495 (exit $ac_status); } >/dev/null; then
2496 if test -s conftest.err; then
2497 ac_cpp_err=$ac_c_preproc_warn_flag
2498 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
2505 if test -z "$ac_cpp_err"; then
2508 echo "$as_me: failed program was:" >&5
2509 sed 's/^/| /' conftest.$ac_ext >&5
2511 # Broken: fails on valid input.
2514 rm -f conftest.err conftest.$ac_ext
2516 # OK, works on sane cases. Now check whether non-existent headers
2517 # can be detected and how.
2518 cat >conftest.$ac_ext <<_ACEOF
2521 cat confdefs.h >>conftest.$ac_ext
2522 cat >>conftest.$ac_ext <<_ACEOF
2523 /* end confdefs.h. */
2524 #include <ac_nonexistent.h>
2526 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
2527 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
2529 grep -v '^ *+' conftest.er1 >conftest.err
2531 cat conftest.err >&5
2532 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2533 (exit $ac_status); } >/dev/null; then
2534 if test -s conftest.err; then
2535 ac_cpp_err=$ac_c_preproc_warn_flag
2536 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
2543 if test -z "$ac_cpp_err"; then
2544 # Broken: success on invalid input.
2547 echo "$as_me: failed program was:" >&5
2548 sed 's/^/| /' conftest.$ac_ext >&5
2550 # Passes both tests.
2554 rm -f conftest.err conftest.$ac_ext
2557 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
2558 rm -f conftest.err conftest.$ac_ext
2559 if $ac_preproc_ok; then
2562 { { echo "$as_me:$LINENO: error: in \`$ac_pwd':" >&5
2563 echo "$as_me: error: in \`$ac_pwd':" >&2;}
2564 { { echo "$as_me:$LINENO: error: C preprocessor \"$CPP\" fails sanity check
2565 See \`config.log' for more details." >&5
2566 echo "$as_me: error: C preprocessor \"$CPP\" fails sanity check
2567 See \`config.log' for more details." >&2;}
2568 { (exit 1); exit 1; }; }; }
2572 ac_cpp='$CPP $CPPFLAGS'
2573 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2574 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2575 ac_compiler_gnu=$ac_cv_c_compiler_gnu
2578 echo "$as_me:$LINENO: checking for egrep" >&5
2579 echo $ECHO_N "checking for egrep... $ECHO_C" >&6
2580 if test "${ac_cv_prog_egrep+set}" = set; then
2581 echo $ECHO_N "(cached) $ECHO_C" >&6
2583 if echo a | (grep -E '(a|b)') >/dev/null 2>&1
2584 then ac_cv_prog_egrep='grep -E'
2585 else ac_cv_prog_egrep='egrep'
2588 echo "$as_me:$LINENO: result: $ac_cv_prog_egrep" >&5
2589 echo "${ECHO_T}$ac_cv_prog_egrep" >&6
2590 EGREP=$ac_cv_prog_egrep
2594 echo "$as_me:$LINENO: checking for AIX" >&5
2595 echo $ECHO_N "checking for AIX... $ECHO_C" >&6
2596 cat >conftest.$ac_ext <<_ACEOF
2599 cat confdefs.h >>conftest.$ac_ext
2600 cat >>conftest.$ac_ext <<_ACEOF
2601 /* end confdefs.h. */
2607 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
2608 $EGREP "yes" >/dev/null 2>&1; then
2609 echo "$as_me:$LINENO: result: yes" >&5
2610 echo "${ECHO_T}yes" >&6
2611 cat >>confdefs.h <<\_ACEOF
2612 #define _ALL_SOURCE 1
2616 echo "$as_me:$LINENO: result: no" >&5
2617 echo "${ECHO_T}no" >&6
2622 echo "$as_me:$LINENO: checking for library containing strerror" >&5
2623 echo $ECHO_N "checking for library containing strerror... $ECHO_C" >&6
2624 if test "${ac_cv_search_strerror+set}" = set; then
2625 echo $ECHO_N "(cached) $ECHO_C" >&6
2627 ac_func_search_save_LIBS=$LIBS
2628 ac_cv_search_strerror=no
2629 cat >conftest.$ac_ext <<_ACEOF
2632 cat confdefs.h >>conftest.$ac_ext
2633 cat >>conftest.$ac_ext <<_ACEOF
2634 /* end confdefs.h. */
2636 /* Override any gcc2 internal prototype to avoid an error. */
2640 /* We use char because int might match the return type of a gcc2
2641 builtin and then its argument prototype would still apply. */
2651 rm -f conftest.$ac_objext conftest$ac_exeext
2652 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
2653 (eval $ac_link) 2>conftest.er1
2655 grep -v '^ *+' conftest.er1 >conftest.err
2657 cat conftest.err >&5
2658 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2659 (exit $ac_status); } &&
2660 { ac_try='test -z "$ac_c_werror_flag"
2661 || test ! -s conftest.err'
2662 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2665 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2666 (exit $ac_status); }; } &&
2667 { ac_try='test -s conftest$ac_exeext'
2668 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2671 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2672 (exit $ac_status); }; }; then
2673 ac_cv_search_strerror="none required"
2675 echo "$as_me: failed program was:" >&5
2676 sed 's/^/| /' conftest.$ac_ext >&5
2679 rm -f conftest.err conftest.$ac_objext \
2680 conftest$ac_exeext conftest.$ac_ext
2681 if test "$ac_cv_search_strerror" = no; then
2682 for ac_lib in cposix; do
2683 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
2684 cat >conftest.$ac_ext <<_ACEOF
2687 cat confdefs.h >>conftest.$ac_ext
2688 cat >>conftest.$ac_ext <<_ACEOF
2689 /* end confdefs.h. */
2691 /* Override any gcc2 internal prototype to avoid an error. */
2695 /* We use char because int might match the return type of a gcc2
2696 builtin and then its argument prototype would still apply. */
2706 rm -f conftest.$ac_objext conftest$ac_exeext
2707 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
2708 (eval $ac_link) 2>conftest.er1
2710 grep -v '^ *+' conftest.er1 >conftest.err
2712 cat conftest.err >&5
2713 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2714 (exit $ac_status); } &&
2715 { ac_try='test -z "$ac_c_werror_flag"
2716 || test ! -s conftest.err'
2717 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2720 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2721 (exit $ac_status); }; } &&
2722 { ac_try='test -s conftest$ac_exeext'
2723 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2726 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2727 (exit $ac_status); }; }; then
2728 ac_cv_search_strerror="-l$ac_lib"
2731 echo "$as_me: failed program was:" >&5
2732 sed 's/^/| /' conftest.$ac_ext >&5
2735 rm -f conftest.err conftest.$ac_objext \
2736 conftest$ac_exeext conftest.$ac_ext
2739 LIBS=$ac_func_search_save_LIBS
2741 echo "$as_me:$LINENO: result: $ac_cv_search_strerror" >&5
2742 echo "${ECHO_T}$ac_cv_search_strerror" >&6
2743 if test "$ac_cv_search_strerror" != no; then
2744 test "$ac_cv_search_strerror" = "none required" || LIBS="$ac_cv_search_strerror $LIBS"
2748 if test -n "$ac_tool_prefix"; then
2749 # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args.
2750 set dummy ${ac_tool_prefix}ranlib; ac_word=$2
2751 echo "$as_me:$LINENO: checking for $ac_word" >&5
2752 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
2753 if test "${ac_cv_prog_RANLIB+set}" = set; then
2754 echo $ECHO_N "(cached) $ECHO_C" >&6
2756 if test -n "$RANLIB"; then
2757 ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
2759 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2763 test -z "$as_dir" && as_dir=.
2764 for ac_exec_ext in '' $ac_executable_extensions; do
2765 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2766 ac_cv_prog_RANLIB="${ac_tool_prefix}ranlib"
2767 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2775 RANLIB=$ac_cv_prog_RANLIB
2776 if test -n "$RANLIB"; then
2777 echo "$as_me:$LINENO: result: $RANLIB" >&5
2778 echo "${ECHO_T}$RANLIB" >&6
2780 echo "$as_me:$LINENO: result: no" >&5
2781 echo "${ECHO_T}no" >&6
2785 if test -z "$ac_cv_prog_RANLIB"; then
2786 ac_ct_RANLIB=$RANLIB
2787 # Extract the first word of "ranlib", so it can be a program name with args.
2788 set dummy ranlib; ac_word=$2
2789 echo "$as_me:$LINENO: checking for $ac_word" >&5
2790 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
2791 if test "${ac_cv_prog_ac_ct_RANLIB+set}" = set; then
2792 echo $ECHO_N "(cached) $ECHO_C" >&6
2794 if test -n "$ac_ct_RANLIB"; then
2795 ac_cv_prog_ac_ct_RANLIB="$ac_ct_RANLIB" # Let the user override the test.
2797 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2801 test -z "$as_dir" && as_dir=.
2802 for ac_exec_ext in '' $ac_executable_extensions; do
2803 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2804 ac_cv_prog_ac_ct_RANLIB="ranlib"
2805 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2811 test -z "$ac_cv_prog_ac_ct_RANLIB" && ac_cv_prog_ac_ct_RANLIB=":"
2814 ac_ct_RANLIB=$ac_cv_prog_ac_ct_RANLIB
2815 if test -n "$ac_ct_RANLIB"; then
2816 echo "$as_me:$LINENO: result: $ac_ct_RANLIB" >&5
2817 echo "${ECHO_T}$ac_ct_RANLIB" >&6
2819 echo "$as_me:$LINENO: result: no" >&5
2820 echo "${ECHO_T}no" >&6
2823 RANLIB=$ac_ct_RANLIB
2825 RANLIB="$ac_cv_prog_RANLIB"
2828 echo "$as_me:$LINENO: checking for ANSI C header files" >&5
2829 echo $ECHO_N "checking for ANSI C header files... $ECHO_C" >&6
2830 if test "${ac_cv_header_stdc+set}" = set; then
2831 echo $ECHO_N "(cached) $ECHO_C" >&6
2833 cat >conftest.$ac_ext <<_ACEOF
2836 cat confdefs.h >>conftest.$ac_ext
2837 cat >>conftest.$ac_ext <<_ACEOF
2838 /* end confdefs.h. */
2852 rm -f conftest.$ac_objext
2853 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2854 (eval $ac_compile) 2>conftest.er1
2856 grep -v '^ *+' conftest.er1 >conftest.err
2858 cat conftest.err >&5
2859 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2860 (exit $ac_status); } &&
2861 { ac_try='test -z "$ac_c_werror_flag"
2862 || test ! -s conftest.err'
2863 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2866 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2867 (exit $ac_status); }; } &&
2868 { ac_try='test -s conftest.$ac_objext'
2869 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2872 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2873 (exit $ac_status); }; }; then
2874 ac_cv_header_stdc=yes
2876 echo "$as_me: failed program was:" >&5
2877 sed 's/^/| /' conftest.$ac_ext >&5
2879 ac_cv_header_stdc=no
2881 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
2883 if test $ac_cv_header_stdc = yes; then
2884 # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
2885 cat >conftest.$ac_ext <<_ACEOF
2888 cat confdefs.h >>conftest.$ac_ext
2889 cat >>conftest.$ac_ext <<_ACEOF
2890 /* end confdefs.h. */
2894 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
2895 $EGREP "memchr" >/dev/null 2>&1; then
2898 ac_cv_header_stdc=no
2904 if test $ac_cv_header_stdc = yes; then
2905 # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
2906 cat >conftest.$ac_ext <<_ACEOF
2909 cat confdefs.h >>conftest.$ac_ext
2910 cat >>conftest.$ac_ext <<_ACEOF
2911 /* end confdefs.h. */
2915 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
2916 $EGREP "free" >/dev/null 2>&1; then
2919 ac_cv_header_stdc=no
2925 if test $ac_cv_header_stdc = yes; then
2926 # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
2927 if test "$cross_compiling" = yes; then
2930 cat >conftest.$ac_ext <<_ACEOF
2933 cat confdefs.h >>conftest.$ac_ext
2934 cat >>conftest.$ac_ext <<_ACEOF
2935 /* end confdefs.h. */
2937 #if ((' ' & 0x0FF) == 0x020)
2938 # define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
2939 # define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
2941 # define ISLOWER(c) \
2942 (('a' <= (c) && (c) <= 'i') \
2943 || ('j' <= (c) && (c) <= 'r') \
2944 || ('s' <= (c) && (c) <= 'z'))
2945 # define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
2948 #define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
2953 for (i = 0; i < 256; i++)
2954 if (XOR (islower (i), ISLOWER (i))
2955 || toupper (i) != TOUPPER (i))
2960 rm -f conftest$ac_exeext
2961 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
2962 (eval $ac_link) 2>&5
2964 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2965 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
2966 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2969 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2970 (exit $ac_status); }; }; then
2973 echo "$as_me: program exited with status $ac_status" >&5
2974 echo "$as_me: failed program was:" >&5
2975 sed 's/^/| /' conftest.$ac_ext >&5
2978 ac_cv_header_stdc=no
2980 rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
2984 echo "$as_me:$LINENO: result: $ac_cv_header_stdc" >&5
2985 echo "${ECHO_T}$ac_cv_header_stdc" >&6
2986 if test $ac_cv_header_stdc = yes; then
2988 cat >>confdefs.h <<\_ACEOF
2989 #define STDC_HEADERS 1
2994 # On IRIX 5.3, sys/types and inttypes.h are conflicting.
3004 for ac_header in sys/types.h sys/stat.h stdlib.h string.h memory.h strings.h \
3005 inttypes.h stdint.h unistd.h
3007 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
3008 echo "$as_me:$LINENO: checking for $ac_header" >&5
3009 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
3010 if eval "test \"\${$as_ac_Header+set}\" = set"; then
3011 echo $ECHO_N "(cached) $ECHO_C" >&6
3013 cat >conftest.$ac_ext <<_ACEOF
3016 cat confdefs.h >>conftest.$ac_ext
3017 cat >>conftest.$ac_ext <<_ACEOF
3018 /* end confdefs.h. */
3019 $ac_includes_default
3021 #include <$ac_header>
3023 rm -f conftest.$ac_objext
3024 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
3025 (eval $ac_compile) 2>conftest.er1
3027 grep -v '^ *+' conftest.er1 >conftest.err
3029 cat conftest.err >&5
3030 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3031 (exit $ac_status); } &&
3032 { ac_try='test -z "$ac_c_werror_flag"
3033 || test ! -s conftest.err'
3034 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3037 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3038 (exit $ac_status); }; } &&
3039 { ac_try='test -s conftest.$ac_objext'
3040 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3043 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3044 (exit $ac_status); }; }; then
3045 eval "$as_ac_Header=yes"
3047 echo "$as_me: failed program was:" >&5
3048 sed 's/^/| /' conftest.$ac_ext >&5
3050 eval "$as_ac_Header=no"
3052 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
3054 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
3055 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
3056 if test `eval echo '${'$as_ac_Header'}'` = yes; then
3057 cat >>confdefs.h <<_ACEOF
3058 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
3067 if test "${ac_cv_header_minix_config_h+set}" = set; then
3068 echo "$as_me:$LINENO: checking for minix/config.h" >&5
3069 echo $ECHO_N "checking for minix/config.h... $ECHO_C" >&6
3070 if test "${ac_cv_header_minix_config_h+set}" = set; then
3071 echo $ECHO_N "(cached) $ECHO_C" >&6
3073 echo "$as_me:$LINENO: result: $ac_cv_header_minix_config_h" >&5
3074 echo "${ECHO_T}$ac_cv_header_minix_config_h" >&6
3076 # Is the header compilable?
3077 echo "$as_me:$LINENO: checking minix/config.h usability" >&5
3078 echo $ECHO_N "checking minix/config.h usability... $ECHO_C" >&6
3079 cat >conftest.$ac_ext <<_ACEOF
3082 cat confdefs.h >>conftest.$ac_ext
3083 cat >>conftest.$ac_ext <<_ACEOF
3084 /* end confdefs.h. */
3085 $ac_includes_default
3086 #include <minix/config.h>
3088 rm -f conftest.$ac_objext
3089 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
3090 (eval $ac_compile) 2>conftest.er1
3092 grep -v '^ *+' conftest.er1 >conftest.err
3094 cat conftest.err >&5
3095 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3096 (exit $ac_status); } &&
3097 { ac_try='test -z "$ac_c_werror_flag"
3098 || test ! -s conftest.err'
3099 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3102 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3103 (exit $ac_status); }; } &&
3104 { ac_try='test -s conftest.$ac_objext'
3105 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3108 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3109 (exit $ac_status); }; }; then
3110 ac_header_compiler=yes
3112 echo "$as_me: failed program was:" >&5
3113 sed 's/^/| /' conftest.$ac_ext >&5
3115 ac_header_compiler=no
3117 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
3118 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
3119 echo "${ECHO_T}$ac_header_compiler" >&6
3121 # Is the header present?
3122 echo "$as_me:$LINENO: checking minix/config.h presence" >&5
3123 echo $ECHO_N "checking minix/config.h presence... $ECHO_C" >&6
3124 cat >conftest.$ac_ext <<_ACEOF
3127 cat confdefs.h >>conftest.$ac_ext
3128 cat >>conftest.$ac_ext <<_ACEOF
3129 /* end confdefs.h. */
3130 #include <minix/config.h>
3132 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
3133 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
3135 grep -v '^ *+' conftest.er1 >conftest.err
3137 cat conftest.err >&5
3138 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3139 (exit $ac_status); } >/dev/null; then
3140 if test -s conftest.err; then
3141 ac_cpp_err=$ac_c_preproc_warn_flag
3142 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
3149 if test -z "$ac_cpp_err"; then
3150 ac_header_preproc=yes
3152 echo "$as_me: failed program was:" >&5
3153 sed 's/^/| /' conftest.$ac_ext >&5
3155 ac_header_preproc=no
3157 rm -f conftest.err conftest.$ac_ext
3158 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
3159 echo "${ECHO_T}$ac_header_preproc" >&6
3161 # So? What about this header?
3162 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
3164 { echo "$as_me:$LINENO: WARNING: minix/config.h: accepted by the compiler, rejected by the preprocessor!" >&5
3165 echo "$as_me: WARNING: minix/config.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
3166 { echo "$as_me:$LINENO: WARNING: minix/config.h: proceeding with the compiler's result" >&5
3167 echo "$as_me: WARNING: minix/config.h: proceeding with the compiler's result" >&2;}
3168 ac_header_preproc=yes
3171 { echo "$as_me:$LINENO: WARNING: minix/config.h: present but cannot be compiled" >&5
3172 echo "$as_me: WARNING: minix/config.h: present but cannot be compiled" >&2;}
3173 { echo "$as_me:$LINENO: WARNING: minix/config.h: check for missing prerequisite headers?" >&5
3174 echo "$as_me: WARNING: minix/config.h: check for missing prerequisite headers?" >&2;}
3175 { echo "$as_me:$LINENO: WARNING: minix/config.h: see the Autoconf documentation" >&5
3176 echo "$as_me: WARNING: minix/config.h: see the Autoconf documentation" >&2;}
3177 { echo "$as_me:$LINENO: WARNING: minix/config.h: section \"Present But Cannot Be Compiled\"" >&5
3178 echo "$as_me: WARNING: minix/config.h: section \"Present But Cannot Be Compiled\"" >&2;}
3179 { echo "$as_me:$LINENO: WARNING: minix/config.h: proceeding with the preprocessor's result" >&5
3180 echo "$as_me: WARNING: minix/config.h: proceeding with the preprocessor's result" >&2;}
3181 { echo "$as_me:$LINENO: WARNING: minix/config.h: in the future, the compiler will take precedence" >&5
3182 echo "$as_me: WARNING: minix/config.h: in the future, the compiler will take precedence" >&2;}
3185 ## ------------------------------------------ ##
3186 ## Report this to the AC_PACKAGE_NAME lists. ##
3187 ## ------------------------------------------ ##
3190 sed "s/^/$as_me: WARNING: /" >&2
3193 echo "$as_me:$LINENO: checking for minix/config.h" >&5
3194 echo $ECHO_N "checking for minix/config.h... $ECHO_C" >&6
3195 if test "${ac_cv_header_minix_config_h+set}" = set; then
3196 echo $ECHO_N "(cached) $ECHO_C" >&6
3198 ac_cv_header_minix_config_h=$ac_header_preproc
3200 echo "$as_me:$LINENO: result: $ac_cv_header_minix_config_h" >&5
3201 echo "${ECHO_T}$ac_cv_header_minix_config_h" >&6
3204 if test $ac_cv_header_minix_config_h = yes; then
3211 if test "$MINIX" = yes; then
3213 cat >>confdefs.h <<\_ACEOF
3214 #define _POSIX_SOURCE 1
3218 cat >>confdefs.h <<\_ACEOF
3219 #define _POSIX_1_SOURCE 2
3223 cat >>confdefs.h <<\_ACEOF
3231 echo "$as_me:$LINENO: checking whether it is safe to define __EXTENSIONS__" >&5
3232 echo $ECHO_N "checking whether it is safe to define __EXTENSIONS__... $ECHO_C" >&6
3233 if test "${ac_cv_safe_to_define___extensions__+set}" = set; then
3234 echo $ECHO_N "(cached) $ECHO_C" >&6
3236 cat >conftest.$ac_ext <<_ACEOF
3239 cat confdefs.h >>conftest.$ac_ext
3240 cat >>conftest.$ac_ext <<_ACEOF
3241 /* end confdefs.h. */
3243 # define __EXTENSIONS__ 1
3244 $ac_includes_default
3253 rm -f conftest.$ac_objext
3254 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
3255 (eval $ac_compile) 2>conftest.er1
3257 grep -v '^ *+' conftest.er1 >conftest.err
3259 cat conftest.err >&5
3260 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3261 (exit $ac_status); } &&
3262 { ac_try='test -z "$ac_c_werror_flag"
3263 || test ! -s conftest.err'
3264 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3267 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3268 (exit $ac_status); }; } &&
3269 { ac_try='test -s conftest.$ac_objext'
3270 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3273 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3274 (exit $ac_status); }; }; then
3275 ac_cv_safe_to_define___extensions__=yes
3277 echo "$as_me: failed program was:" >&5
3278 sed 's/^/| /' conftest.$ac_ext >&5
3280 ac_cv_safe_to_define___extensions__=no
3282 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
3284 echo "$as_me:$LINENO: result: $ac_cv_safe_to_define___extensions__" >&5
3285 echo "${ECHO_T}$ac_cv_safe_to_define___extensions__" >&6
3286 test $ac_cv_safe_to_define___extensions__ = yes &&
3287 cat >>confdefs.h <<\_ACEOF
3288 #define __EXTENSIONS__ 1
3291 cat >>confdefs.h <<\_ACEOF
3292 #define _ALL_SOURCE 1
3295 cat >>confdefs.h <<\_ACEOF
3296 #define _GNU_SOURCE 1
3299 cat >>confdefs.h <<\_ACEOF
3300 #define _POSIX_PTHREAD_SEMANTICS 1
3303 cat >>confdefs.h <<\_ACEOF
3304 #define _TANDEM_SOURCE 1
3316 echo "$as_me:$LINENO: checking for ${CC-cc} option to accept ANSI C" >&5
3317 echo $ECHO_N "checking for ${CC-cc} option to accept ANSI C... $ECHO_C" >&6
3318 if test "${am_cv_prog_cc_stdc+set}" = set; then
3319 echo $ECHO_N "(cached) $ECHO_C" >&6
3321 am_cv_prog_cc_stdc=no
3323 # Don't try gcc -ansi; that turns off useful extensions and
3324 # breaks some systems' header files.
3325 # AIX -qlanglvl=ansi
3326 # Ultrix and OSF/1 -std1
3327 # HP-UX 10.20 and later -Ae
3328 # HP-UX older versions -Aa -D_HPUX_SOURCE
3329 # SVR4 -Xc -D__EXTENSIONS__
3330 for ac_arg in "" -qlanglvl=ansi -std1 -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
3332 CC="$ac_save_CC $ac_arg"
3333 cat >conftest.$ac_ext <<_ACEOF
3336 cat confdefs.h >>conftest.$ac_ext
3337 cat >>conftest.$ac_ext <<_ACEOF
3338 /* end confdefs.h. */
3341 #include <sys/types.h>
3342 #include <sys/stat.h>
3343 /* Most of the following tests are stolen from RCS 5.7's src/conf.sh. */
3344 struct buf { int x; };
3345 FILE * (*rcsopen) (struct buf *, struct stat *, int);
3346 static char *e (p, i)
3352 static char *f (char * (*g) (char **, int), char **p, ...)
3357 s = g (p, va_arg (v,int));
3361 int test (int i, double x);
3362 struct s1 {int (*f) (int a);};
3363 struct s2 {int (*f) (double a);};
3364 int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
3372 return f (e, argv, 0) != argv[0] || f (e, argv, 1) != argv[1];
3378 rm -f conftest.$ac_objext
3379 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
3380 (eval $ac_compile) 2>conftest.er1
3382 grep -v '^ *+' conftest.er1 >conftest.err
3384 cat conftest.err >&5
3385 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3386 (exit $ac_status); } &&
3387 { ac_try='test -z "$ac_c_werror_flag"
3388 || test ! -s conftest.err'
3389 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3392 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3393 (exit $ac_status); }; } &&
3394 { ac_try='test -s conftest.$ac_objext'
3395 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3398 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3399 (exit $ac_status); }; }; then
3400 am_cv_prog_cc_stdc="$ac_arg"; break
3402 echo "$as_me: failed program was:" >&5
3403 sed 's/^/| /' conftest.$ac_ext >&5
3406 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
3412 if test -z "$am_cv_prog_cc_stdc"; then
3413 echo "$as_me:$LINENO: result: none needed" >&5
3414 echo "${ECHO_T}none needed" >&6
3416 echo "$as_me:$LINENO: result: $am_cv_prog_cc_stdc" >&5
3417 echo "${ECHO_T}$am_cv_prog_cc_stdc" >&6
3419 case "x$am_cv_prog_cc_stdc" in
3421 *) CC="$CC $am_cv_prog_cc_stdc" ;;
3426 for ac_dir in .. $srcdir/..; do
3427 if test -f $ac_dir/install-sh; then
3429 ac_install_sh="$ac_aux_dir/install-sh -c"
3431 elif test -f $ac_dir/install.sh; then
3433 ac_install_sh="$ac_aux_dir/install.sh -c"
3435 elif test -f $ac_dir/shtool; then
3437 ac_install_sh="$ac_aux_dir/shtool install -c"
3441 if test -z "$ac_aux_dir"; then
3442 { { echo "$as_me:$LINENO: error: cannot find install-sh or install.sh in .. $srcdir/.." >&5
3443 echo "$as_me: error: cannot find install-sh or install.sh in .. $srcdir/.." >&2;}
3444 { (exit 1); exit 1; }; }
3446 ac_config_guess="$SHELL $ac_aux_dir/config.guess"
3447 ac_config_sub="$SHELL $ac_aux_dir/config.sub"
3448 ac_configure="$SHELL $ac_aux_dir/configure" # This should be Cygnus configure.
3450 # Make sure we can run config.sub.
3451 $ac_config_sub sun4 >/dev/null 2>&1 ||
3452 { { echo "$as_me:$LINENO: error: cannot run $ac_config_sub" >&5
3453 echo "$as_me: error: cannot run $ac_config_sub" >&2;}
3454 { (exit 1); exit 1; }; }
3456 echo "$as_me:$LINENO: checking build system type" >&5
3457 echo $ECHO_N "checking build system type... $ECHO_C" >&6
3458 if test "${ac_cv_build+set}" = set; then
3459 echo $ECHO_N "(cached) $ECHO_C" >&6
3461 ac_cv_build_alias=$build_alias
3462 test -z "$ac_cv_build_alias" &&
3463 ac_cv_build_alias=`$ac_config_guess`
3464 test -z "$ac_cv_build_alias" &&
3465 { { echo "$as_me:$LINENO: error: cannot guess build type; you must specify one" >&5
3466 echo "$as_me: error: cannot guess build type; you must specify one" >&2;}
3467 { (exit 1); exit 1; }; }
3468 ac_cv_build=`$ac_config_sub $ac_cv_build_alias` ||
3469 { { echo "$as_me:$LINENO: error: $ac_config_sub $ac_cv_build_alias failed" >&5
3470 echo "$as_me: error: $ac_config_sub $ac_cv_build_alias failed" >&2;}
3471 { (exit 1); exit 1; }; }
3474 echo "$as_me:$LINENO: result: $ac_cv_build" >&5
3475 echo "${ECHO_T}$ac_cv_build" >&6
3477 build_cpu=`echo $ac_cv_build | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\1/'`
3478 build_vendor=`echo $ac_cv_build | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\2/'`
3479 build_os=`echo $ac_cv_build | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\3/'`
3482 echo "$as_me:$LINENO: checking host system type" >&5
3483 echo $ECHO_N "checking host system type... $ECHO_C" >&6
3484 if test "${ac_cv_host+set}" = set; then
3485 echo $ECHO_N "(cached) $ECHO_C" >&6
3487 ac_cv_host_alias=$host_alias
3488 test -z "$ac_cv_host_alias" &&
3489 ac_cv_host_alias=$ac_cv_build_alias
3490 ac_cv_host=`$ac_config_sub $ac_cv_host_alias` ||
3491 { { echo "$as_me:$LINENO: error: $ac_config_sub $ac_cv_host_alias failed" >&5
3492 echo "$as_me: error: $ac_config_sub $ac_cv_host_alias failed" >&2;}
3493 { (exit 1); exit 1; }; }
3496 echo "$as_me:$LINENO: result: $ac_cv_host" >&5
3497 echo "${ECHO_T}$ac_cv_host" >&6
3499 host_cpu=`echo $ac_cv_host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\1/'`
3500 host_vendor=`echo $ac_cv_host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\2/'`
3501 host_os=`echo $ac_cv_host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\3/'`
3504 echo "$as_me:$LINENO: checking target system type" >&5
3505 echo $ECHO_N "checking target system type... $ECHO_C" >&6
3506 if test "${ac_cv_target+set}" = set; then
3507 echo $ECHO_N "(cached) $ECHO_C" >&6
3509 ac_cv_target_alias=$target_alias
3510 test "x$ac_cv_target_alias" = "x" &&
3511 ac_cv_target_alias=$ac_cv_host_alias
3512 ac_cv_target=`$ac_config_sub $ac_cv_target_alias` ||
3513 { { echo "$as_me:$LINENO: error: $ac_config_sub $ac_cv_target_alias failed" >&5
3514 echo "$as_me: error: $ac_config_sub $ac_cv_target_alias failed" >&2;}
3515 { (exit 1); exit 1; }; }
3518 echo "$as_me:$LINENO: result: $ac_cv_target" >&5
3519 echo "${ECHO_T}$ac_cv_target" >&6
3520 target=$ac_cv_target
3521 target_cpu=`echo $ac_cv_target | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\1/'`
3522 target_vendor=`echo $ac_cv_target | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\2/'`
3523 target_os=`echo $ac_cv_target | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\3/'`
3526 # The aliases save the names the user supplied, while $host etc.
3527 # will get canonicalized.
3528 test -n "$target_alias" &&
3529 test "$program_prefix$program_suffix$program_transform_name" = \
3531 program_prefix=${target_alias}-
3533 # Dependency checking.
3534 rm -rf .tst 2>/dev/null
3535 mkdir .tst 2>/dev/null
3536 if test -d .tst; then
3541 rmdir .tst 2>/dev/null
3543 DEPDIR="${am__leading_dot}deps"
3545 ac_config_commands="$ac_config_commands depdir"
3548 depcc="$CC" am_compiler_list=
3550 am_depcomp=$ac_aux_dir/depcomp
3551 echo "$as_me:$LINENO: checking dependency style of $depcc" >&5
3552 echo $ECHO_N "checking dependency style of $depcc... $ECHO_C" >&6
3553 if test "${am_cv_CC_dependencies_compiler_type+set}" = set; then
3554 echo $ECHO_N "(cached) $ECHO_C" >&6
3556 if test -f "$am_depcomp"; then
3557 # We make a subdir and do the tests there. Otherwise we can end up
3558 # making bogus files that we don't know about and never remove. For
3559 # instance it was reported that on HP-UX the gcc test will end up
3560 # making a dummy file named `D' -- because `-MD' means `put the output
3563 # Copy depcomp to subdir because otherwise we won't find it if we're
3564 # using a relative directory.
3565 cp "$am_depcomp" conftest.dir
3567 # We will build objects and dependencies in a subdirectory because
3568 # it helps to detect inapplicable dependency modes. For instance
3569 # both Tru64's cc and ICC support -MD to output dependencies as a
3570 # side effect of compilation, but ICC will put the dependencies in
3571 # the current directory while Tru64 will put them in the object
3575 am_cv_CC_dependencies_compiler_type=none
3576 if test "$am_compiler_list" = ""; then
3577 am_compiler_list=`sed -n 's/^\([a-zA-Z0-9]*\))$/\1/p' < ./depcomp`
3579 for depmode in $am_compiler_list; do
3580 if test $depmode = none; then break; fi
3582 echo "$as_me:$LINENO: trying $depmode" >&5
3583 # Setup a source with many dependencies, because some compilers
3584 # like to wrap large dependency lists on column 80 (with \), and
3585 # we should not choose a depcomp mode which is confused by this.
3587 # We need to recreate these files for each test, as the compiler may
3588 # overwrite some of them when testing with obscure command lines.
3589 # This happens at least with the AIX C compiler.
3591 for i in 1 2 3 4 5 6; do
3592 echo '#include "conftst'$i'.h"' >> sub/conftest.c
3593 # Using `: > sub/conftst$i.h' creates only sub/conftst1.h with
3594 # Solaris 8's {/usr,}/bin/sh.
3595 touch sub/conftst$i.h
3597 echo "include sub/conftest.Po" > confmf
3599 # We check with `-c' and `-o' for the sake of the "dashmstdout"
3600 # mode. It turns out that the SunPro C++ compiler does not properly
3601 # handle `-M -o', and we need to detect this.
3602 depcmd="depmode=$depmode \
3603 source=sub/conftest.c object=sub/conftest.${OBJEXT-o} \
3604 depfile=sub/conftest.Po tmpdepfile=sub/conftest.TPo \
3605 $SHELL ./depcomp $depcc -c -o sub/conftest.${OBJEXT-o} sub/conftest.c"
3606 echo "| $depcmd" | sed -e 's/ */ /g' >&5
3607 if env $depcmd > conftest.err 2>&1 &&
3608 grep sub/conftst6.h sub/conftest.Po >>conftest.err 2>&1 &&
3609 grep sub/conftest.${OBJEXT-o} sub/conftest.Po >>conftest.err 2>&1 &&
3610 ${MAKE-make} -s -f confmf >>conftest.err 2>&1; then
3611 # icc doesn't choke on unknown options, it will just issue warnings
3612 # or remarks (even with -Werror). So we grep stderr for any message
3613 # that says an option was ignored or not supported.
3614 # When given -MP, icc 7.0 and 7.1 complain thusly:
3615 # icc: Command line warning: ignoring option '-M'; no argument required
3616 # The diagnosis changed in icc 8.0:
3617 # icc: Command line remark: option '-MP' not supported
3618 if (grep 'ignoring option' conftest.err ||
3619 grep 'not supported' conftest.err) >/dev/null 2>&1; then :; else
3620 am_cv_CC_dependencies_compiler_type=$depmode
3621 echo "$as_me:$LINENO: success" >&5
3625 echo "$as_me:$LINENO: failure, diagnostics are:" >&5
3626 sed -e 's/^/| /' < conftest.err >&5
3632 am_cv_CC_dependencies_compiler_type=none
3636 echo "$as_me:$LINENO: result: $am_cv_CC_dependencies_compiler_type" >&5
3637 echo "${ECHO_T}$am_cv_CC_dependencies_compiler_type" >&6
3638 if test x${am_cv_CC_dependencies_compiler_type-none} = xnone
3639 then { { echo "$as_me:$LINENO: error: no usable dependency style found" >&5
3640 echo "$as_me: error: no usable dependency style found" >&2;}
3641 { (exit 1); exit 1; }; }
3642 else CCDEPMODE=depmode=$am_cv_CC_dependencies_compiler_type
3647 # Check for the 'make' the user wants to use.
3650 # Extract the first word of "$ac_prog", so it can be a program name with args.
3651 set dummy $ac_prog; ac_word=$2
3652 echo "$as_me:$LINENO: checking for $ac_word" >&5
3653 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
3654 if test "${ac_cv_prog_MAKE+set}" = set; then
3655 echo $ECHO_N "(cached) $ECHO_C" >&6
3657 if test -n "$MAKE"; then
3658 ac_cv_prog_MAKE="$MAKE" # Let the user override the test.
3660 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3664 test -z "$as_dir" && as_dir=.
3665 for ac_exec_ext in '' $ac_executable_extensions; do
3666 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3667 ac_cv_prog_MAKE="$ac_prog"
3668 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
3676 MAKE=$ac_cv_prog_MAKE
3677 if test -n "$MAKE"; then
3678 echo "$as_me:$LINENO: result: $MAKE" >&5
3679 echo "${ECHO_T}$MAKE" >&6
3681 echo "$as_me:$LINENO: result: no" >&5
3682 echo "${ECHO_T}no" >&6
3685 test -n "$MAKE" && break
3689 case "`$MAKE --version 2>&1 | sed 1q`" in
3696 if test "$MAKE_IS_GNU" = yes; then
3704 echo "$as_me:$LINENO: checking whether ${MAKE-make} sets \$(MAKE)" >&5
3705 echo $ECHO_N "checking whether ${MAKE-make} sets \$(MAKE)... $ECHO_C" >&6
3706 set dummy ${MAKE-make}; ac_make=`echo "$2" | sed 'y,:./+-,___p_,'`
3707 if eval "test \"\${ac_cv_prog_make_${ac_make}_set+set}\" = set"; then
3708 echo $ECHO_N "(cached) $ECHO_C" >&6
3710 cat >conftest.make <<\_ACEOF
3712 @echo 'ac_maketemp="$(MAKE)"'
3714 # GNU make sometimes prints "make[1]: Entering...", which would confuse us.
3715 eval `${MAKE-make} -f conftest.make 2>/dev/null | grep temp=`
3716 if test -n "$ac_maketemp"; then
3717 eval ac_cv_prog_make_${ac_make}_set=yes
3719 eval ac_cv_prog_make_${ac_make}_set=no
3723 if eval "test \"`echo '$ac_cv_prog_make_'${ac_make}_set`\" = yes"; then
3724 echo "$as_me:$LINENO: result: yes" >&5
3725 echo "${ECHO_T}yes" >&6
3728 echo "$as_me:$LINENO: result: no" >&5
3729 echo "${ECHO_T}no" >&6
3730 SET_MAKE="MAKE=${MAKE-make}"
3745 # If we haven't got the data from the intl directory,
3746 # assume NLS is disabled.
3755 if test -f ../intl/config.intl; then
3756 . ../intl/config.intl
3758 echo "$as_me:$LINENO: checking whether NLS is requested" >&5
3759 echo $ECHO_N "checking whether NLS is requested... $ECHO_C" >&6
3760 if test x"$USE_NLS" != xyes; then
3761 echo "$as_me:$LINENO: result: no" >&5
3762 echo "${ECHO_T}no" >&6
3764 echo "$as_me:$LINENO: result: yes" >&5
3765 echo "${ECHO_T}yes" >&6
3767 cat >>confdefs.h <<\_ACEOF
3768 #define ENABLE_NLS 1
3772 echo "$as_me:$LINENO: checking for catalogs to be installed" >&5
3773 echo $ECHO_N "checking for catalogs to be installed... $ECHO_C" >&6
3774 # Look for .po and .gmo files in the source directory.
3777 for cat in $srcdir/po/*.gmo $srcdir/po/*.po; do
3778 # If there aren't any .gmo files the shell will give us the
3779 # literal string "../path/to/srcdir/po/*.gmo" which has to be
3781 case "$cat" in *\**)
3784 # The quadruple backslash is collapsed to a double backslash
3785 # by the backticks, then collapsed again by the double quotes,
3786 # leaving us with one backslash in the sed expression (right
3787 # before the dot that mustn't act as a wildcard).
3788 cat=`echo $cat | sed -e "s!$srcdir/po/!!" -e "s!\\\\.po!.gmo!"`
3789 lang=`echo $cat | sed -e "s!\\\\.gmo!!"`
3790 # The user is allowed to set LINGUAS to a list of languages to
3791 # install catalogs for. If it's empty that means "all of them."
3792 if test "x$LINGUAS" = x; then
3793 CATALOGS="$CATALOGS $cat"
3794 XLINGUAS="$XLINGUAS $lang"
3796 case "$LINGUAS" in *$lang*)
3797 CATALOGS="$CATALOGS $cat"
3798 XLINGUAS="$XLINGUAS $lang"
3804 echo "$as_me:$LINENO: result: $LINGUAS" >&5
3805 echo "${ECHO_T}$LINGUAS" >&6
3818 localedir='${datadir}/locale'
3821 if test x"$USE_NLS" = xyes; then
3822 CONFIG_ALL="$CONFIG_ALL all-po"
3823 CONFIG_CLEAN="$CONFIG_CLEAN clean-po"
3824 CONFIG_INSTALL="$CONFIG_INSTALL install-po"
3825 CONFIG_UNINSTALL="$CONFIG_UNINSTALL uninstall-po"
3841 GNULIB_STRCASESTR=0;
3848 GNULIB_MBSCASECMP=0;
3849 GNULIB_MBSNCASECMP=0;
3850 GNULIB_MBSPCASECMP=0;
3851 GNULIB_MBSCASESTR=0;
3861 HAVE_DECL_MEMRCHR=1;
3867 HAVE_DECL_STRNDUP=1;
3868 HAVE_DECL_STRNLEN=1;
3872 HAVE_DECL_STRTOK_R=1;
3873 HAVE_DECL_STRERROR=1;
3874 HAVE_DECL_STRSIGNAL=1;
3876 REPLACE_STRSIGNAL=0;
3878 REPLACE_STRCASESTR=0;
3882 echo "$as_me:$LINENO: checking whether memmem is declared" >&5
3883 echo $ECHO_N "checking whether memmem is declared... $ECHO_C" >&6
3884 if test "${ac_cv_have_decl_memmem+set}" = set; then
3885 echo $ECHO_N "(cached) $ECHO_C" >&6
3887 cat >conftest.$ac_ext <<_ACEOF
3890 cat confdefs.h >>conftest.$ac_ext
3891 cat >>conftest.$ac_ext <<_ACEOF
3892 /* end confdefs.h. */
3893 $ac_includes_default
3898 char *p = (char *) memmem;
3905 rm -f conftest.$ac_objext
3906 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
3907 (eval $ac_compile) 2>conftest.er1
3909 grep -v '^ *+' conftest.er1 >conftest.err
3911 cat conftest.err >&5
3912 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3913 (exit $ac_status); } &&
3914 { ac_try='test -z "$ac_c_werror_flag"
3915 || test ! -s conftest.err'
3916 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3919 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3920 (exit $ac_status); }; } &&
3921 { ac_try='test -s conftest.$ac_objext'
3922 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3925 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3926 (exit $ac_status); }; }; then
3927 ac_cv_have_decl_memmem=yes
3929 echo "$as_me: failed program was:" >&5
3930 sed 's/^/| /' conftest.$ac_ext >&5
3932 ac_cv_have_decl_memmem=no
3934 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
3936 echo "$as_me:$LINENO: result: $ac_cv_have_decl_memmem" >&5
3937 echo "${ECHO_T}$ac_cv_have_decl_memmem" >&6
3938 if test $ac_cv_have_decl_memmem = yes; then
3940 cat >>confdefs.h <<_ACEOF
3941 #define HAVE_DECL_MEMMEM 1
3946 cat >>confdefs.h <<_ACEOF
3947 #define HAVE_DECL_MEMMEM 0
3967 for ac_func in memmem
3969 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
3970 echo "$as_me:$LINENO: checking for $ac_func" >&5
3971 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
3972 if eval "test \"\${$as_ac_var+set}\" = set"; then
3973 echo $ECHO_N "(cached) $ECHO_C" >&6
3975 cat >conftest.$ac_ext <<_ACEOF
3978 cat confdefs.h >>conftest.$ac_ext
3979 cat >>conftest.$ac_ext <<_ACEOF
3980 /* end confdefs.h. */
3981 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
3982 For example, HP-UX 11i <limits.h> declares gettimeofday. */
3983 #define $ac_func innocuous_$ac_func
3985 /* System header to define __stub macros and hopefully few prototypes,
3986 which can conflict with char $ac_func (); below.
3987 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
3988 <limits.h> exists even on freestanding compilers. */
3991 # include <limits.h>
3993 # include <assert.h>
3998 /* Override any gcc2 internal prototype to avoid an error. */
4003 /* We use char because int might match the return type of a gcc2
4004 builtin and then its argument prototype would still apply. */
4006 /* The GNU C library defines this for functions which it implements
4007 to always fail with ENOSYS. Some functions are actually named
4008 something starting with __ and the normal name is an alias. */
4009 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
4012 char (*f) () = $ac_func;
4021 return f != $ac_func;
4026 rm -f conftest.$ac_objext conftest$ac_exeext
4027 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
4028 (eval $ac_link) 2>conftest.er1
4030 grep -v '^ *+' conftest.er1 >conftest.err
4032 cat conftest.err >&5
4033 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4034 (exit $ac_status); } &&
4035 { ac_try='test -z "$ac_c_werror_flag"
4036 || test ! -s conftest.err'
4037 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4040 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4041 (exit $ac_status); }; } &&
4042 { ac_try='test -s conftest$ac_exeext'
4043 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4046 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4047 (exit $ac_status); }; }; then
4048 eval "$as_ac_var=yes"
4050 echo "$as_me: failed program was:" >&5
4051 sed 's/^/| /' conftest.$ac_ext >&5
4053 eval "$as_ac_var=no"
4055 rm -f conftest.err conftest.$ac_objext \
4056 conftest$ac_exeext conftest.$ac_ext
4058 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
4059 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
4060 if test `eval echo '${'$as_ac_var'}'` = yes; then
4061 cat >>confdefs.h <<_ACEOF
4062 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
4067 gl_LIBOBJS="$gl_LIBOBJS $ac_func.$ac_objext"
4080 if test $ac_cv_have_decl_memmem = no; then
4086 echo "$as_me:$LINENO: checking for long long int" >&5
4087 echo $ECHO_N "checking for long long int... $ECHO_C" >&6
4088 if test "${ac_cv_type_long_long_int+set}" = set; then
4089 echo $ECHO_N "(cached) $ECHO_C" >&6
4091 cat >conftest.$ac_ext <<_ACEOF
4095 cat confdefs.h >>conftest.$ac_ext
4096 cat >>conftest.$ac_ext <<_ACEOF
4097 /* end confdefs.h. */
4098 /* For now, do not test the preprocessor; as of 2007 there are too many
4099 implementations with broken preprocessors. Perhaps this can
4100 be revisited in 2012. In the meantime, code should not expect
4101 #if to work with literals wider than 32 bits. */
4102 /* Test literals. */
4103 long long int ll = 9223372036854775807ll;
4104 long long int nll = -9223372036854775807LL;
4105 unsigned long long int ull = 18446744073709551615ULL;
4106 /* Test constant expressions. */
4107 typedef int a[((-9223372036854775807LL < 0 && 0 < 9223372036854775807ll)
4109 typedef int b[(18446744073709551615ULL <= (unsigned long long int) -1
4115 /* Test availability of runtime routines for shift and division. */
4116 long long int llmax = 9223372036854775807ll;
4117 unsigned long long int ullmax = 18446744073709551615ull;
4118 return ((ll << 63) | (ll >> 63) | (ll < i) | (ll > i)
4119 | (llmax / ll) | (llmax % ll)
4120 | (ull << 63) | (ull >> 63) | (ull << i) | (ull >> i)
4121 | (ullmax / ull) | (ullmax % ull));
4127 rm -f conftest.$ac_objext conftest$ac_exeext
4128 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
4129 (eval $ac_link) 2>conftest.er1
4131 grep -v '^ *+' conftest.er1 >conftest.err
4133 cat conftest.err >&5
4134 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4135 (exit $ac_status); } &&
4136 { ac_try='test -z "$ac_c_werror_flag"
4137 || test ! -s conftest.err'
4138 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4141 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4142 (exit $ac_status); }; } &&
4143 { ac_try='test -s conftest$ac_exeext'
4144 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4147 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4148 (exit $ac_status); }; }; then
4149 if test "$cross_compiling" = yes; then
4150 ac_cv_type_long_long_int=yes
4152 cat >conftest.$ac_ext <<_ACEOF
4155 cat confdefs.h >>conftest.$ac_ext
4156 cat >>conftest.$ac_ext <<_ACEOF
4157 /* end confdefs.h. */
4161 (1LL << (sizeof (long long int) * CHAR_BIT - 2))
4162 # define LLONG_MAX (HALF - 1 + HALF)
4167 long long int n = 1;
4171 long long int m = n << i;
4174 if (LLONG_MAX / 2 < m)
4182 rm -f conftest$ac_exeext
4183 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
4184 (eval $ac_link) 2>&5
4186 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4187 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
4188 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4191 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4192 (exit $ac_status); }; }; then
4193 ac_cv_type_long_long_int=yes
4195 echo "$as_me: program exited with status $ac_status" >&5
4196 echo "$as_me: failed program was:" >&5
4197 sed 's/^/| /' conftest.$ac_ext >&5
4200 ac_cv_type_long_long_int=no
4202 rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
4205 echo "$as_me: failed program was:" >&5
4206 sed 's/^/| /' conftest.$ac_ext >&5
4208 ac_cv_type_long_long_int=no
4210 rm -f conftest.err conftest.$ac_objext \
4211 conftest$ac_exeext conftest.$ac_ext
4213 echo "$as_me:$LINENO: result: $ac_cv_type_long_long_int" >&5
4214 echo "${ECHO_T}$ac_cv_type_long_long_int" >&6
4215 if test $ac_cv_type_long_long_int = yes; then
4217 cat >>confdefs.h <<\_ACEOF
4218 #define HAVE_LONG_LONG_INT 1
4224 echo "$as_me:$LINENO: checking for unsigned long long int" >&5
4225 echo $ECHO_N "checking for unsigned long long int... $ECHO_C" >&6
4226 if test "${ac_cv_type_unsigned_long_long_int+set}" = set; then
4227 echo $ECHO_N "(cached) $ECHO_C" >&6
4229 cat >conftest.$ac_ext <<_ACEOF
4233 cat confdefs.h >>conftest.$ac_ext
4234 cat >>conftest.$ac_ext <<_ACEOF
4235 /* end confdefs.h. */
4236 /* For now, do not test the preprocessor; as of 2007 there are too many
4237 implementations with broken preprocessors. Perhaps this can
4238 be revisited in 2012. In the meantime, code should not expect
4239 #if to work with literals wider than 32 bits. */
4240 /* Test literals. */
4241 long long int ll = 9223372036854775807ll;
4242 long long int nll = -9223372036854775807LL;
4243 unsigned long long int ull = 18446744073709551615ULL;
4244 /* Test constant expressions. */
4245 typedef int a[((-9223372036854775807LL < 0 && 0 < 9223372036854775807ll)
4247 typedef int b[(18446744073709551615ULL <= (unsigned long long int) -1
4253 /* Test availability of runtime routines for shift and division. */
4254 long long int llmax = 9223372036854775807ll;
4255 unsigned long long int ullmax = 18446744073709551615ull;
4256 return ((ll << 63) | (ll >> 63) | (ll < i) | (ll > i)
4257 | (llmax / ll) | (llmax % ll)
4258 | (ull << 63) | (ull >> 63) | (ull << i) | (ull >> i)
4259 | (ullmax / ull) | (ullmax % ull));
4265 rm -f conftest.$ac_objext conftest$ac_exeext
4266 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
4267 (eval $ac_link) 2>conftest.er1
4269 grep -v '^ *+' conftest.er1 >conftest.err
4271 cat conftest.err >&5
4272 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4273 (exit $ac_status); } &&
4274 { ac_try='test -z "$ac_c_werror_flag"
4275 || test ! -s conftest.err'
4276 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4279 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4280 (exit $ac_status); }; } &&
4281 { ac_try='test -s conftest$ac_exeext'
4282 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4285 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4286 (exit $ac_status); }; }; then
4287 ac_cv_type_unsigned_long_long_int=yes
4289 echo "$as_me: failed program was:" >&5
4290 sed 's/^/| /' conftest.$ac_ext >&5
4292 ac_cv_type_unsigned_long_long_int=no
4294 rm -f conftest.err conftest.$ac_objext \
4295 conftest$ac_exeext conftest.$ac_ext
4297 echo "$as_me:$LINENO: result: $ac_cv_type_unsigned_long_long_int" >&5
4298 echo "${ECHO_T}$ac_cv_type_unsigned_long_long_int" >&6
4299 if test $ac_cv_type_unsigned_long_long_int = yes; then
4301 cat >>confdefs.h <<\_ACEOF
4302 #define HAVE_UNSIGNED_LONG_LONG_INT 1
4309 echo "$as_me:$LINENO: checking whether the preprocessor supports include_next" >&5
4310 echo $ECHO_N "checking whether the preprocessor supports include_next... $ECHO_C" >&6
4311 if test "${gl_cv_have_include_next+set}" = set; then
4312 echo $ECHO_N "(cached) $ECHO_C" >&6
4314 rm -rf conftestd1 conftestd2
4315 mkdir conftestd1 conftestd2
4316 cat <<EOF > conftestd1/conftest.h
4317 #define DEFINED_IN_CONFTESTD1
4318 #include_next <conftest.h>
4319 #ifdef DEFINED_IN_CONFTESTD2
4322 #error "include_next doesn't work"
4325 cat <<EOF > conftestd2/conftest.h
4326 #ifndef DEFINED_IN_CONFTESTD1
4327 #error "include_next test doesn't work"
4329 #define DEFINED_IN_CONFTESTD2
4331 save_CPPFLAGS="$CPPFLAGS"
4332 CPPFLAGS="$CPPFLAGS -Iconftestd1 -Iconftestd2"
4333 cat >conftest.$ac_ext <<_ACEOF
4334 #include <conftest.h>
4336 rm -f conftest.$ac_objext
4337 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
4338 (eval $ac_compile) 2>conftest.er1
4340 grep -v '^ *+' conftest.er1 >conftest.err
4342 cat conftest.err >&5
4343 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4344 (exit $ac_status); } &&
4345 { ac_try='test -z "$ac_c_werror_flag"
4346 || test ! -s conftest.err'
4347 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4350 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4351 (exit $ac_status); }; } &&
4352 { ac_try='test -s conftest.$ac_objext'
4353 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4356 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4357 (exit $ac_status); }; }; then
4358 gl_cv_have_include_next=yes
4360 echo "$as_me: failed program was:" >&5
4361 sed 's/^/| /' conftest.$ac_ext >&5
4363 gl_cv_have_include_next=no
4365 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
4366 CPPFLAGS="$save_CPPFLAGS"
4367 rm -rf conftestd1 conftestd2
4370 echo "$as_me:$LINENO: result: $gl_cv_have_include_next" >&5
4371 echo "${ECHO_T}$gl_cv_have_include_next" >&6
4372 if test $gl_cv_have_include_next = yes; then
4375 cat >>confdefs.h <<\_ACEOF
4376 #define HAVE_INCLUDE_NEXT 1
4380 INCLUDE_NEXT=include_next
4382 INCLUDE_NEXT=include
4391 for ac_header in $gl_header_list
4393 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
4394 if eval "test \"\${$as_ac_Header+set}\" = set"; then
4395 echo "$as_me:$LINENO: checking for $ac_header" >&5
4396 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
4397 if eval "test \"\${$as_ac_Header+set}\" = set"; then
4398 echo $ECHO_N "(cached) $ECHO_C" >&6
4400 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
4401 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
4403 # Is the header compilable?
4404 echo "$as_me:$LINENO: checking $ac_header usability" >&5
4405 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
4406 cat >conftest.$ac_ext <<_ACEOF
4409 cat confdefs.h >>conftest.$ac_ext
4410 cat >>conftest.$ac_ext <<_ACEOF
4411 /* end confdefs.h. */
4412 $ac_includes_default
4413 #include <$ac_header>
4415 rm -f conftest.$ac_objext
4416 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
4417 (eval $ac_compile) 2>conftest.er1
4419 grep -v '^ *+' conftest.er1 >conftest.err
4421 cat conftest.err >&5
4422 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4423 (exit $ac_status); } &&
4424 { ac_try='test -z "$ac_c_werror_flag"
4425 || test ! -s conftest.err'
4426 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4429 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4430 (exit $ac_status); }; } &&
4431 { ac_try='test -s conftest.$ac_objext'
4432 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4435 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4436 (exit $ac_status); }; }; then
4437 ac_header_compiler=yes
4439 echo "$as_me: failed program was:" >&5
4440 sed 's/^/| /' conftest.$ac_ext >&5
4442 ac_header_compiler=no
4444 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
4445 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
4446 echo "${ECHO_T}$ac_header_compiler" >&6
4448 # Is the header present?
4449 echo "$as_me:$LINENO: checking $ac_header presence" >&5
4450 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
4451 cat >conftest.$ac_ext <<_ACEOF
4454 cat confdefs.h >>conftest.$ac_ext
4455 cat >>conftest.$ac_ext <<_ACEOF
4456 /* end confdefs.h. */
4457 #include <$ac_header>
4459 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
4460 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
4462 grep -v '^ *+' conftest.er1 >conftest.err
4464 cat conftest.err >&5
4465 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4466 (exit $ac_status); } >/dev/null; then
4467 if test -s conftest.err; then
4468 ac_cpp_err=$ac_c_preproc_warn_flag
4469 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
4476 if test -z "$ac_cpp_err"; then
4477 ac_header_preproc=yes
4479 echo "$as_me: failed program was:" >&5
4480 sed 's/^/| /' conftest.$ac_ext >&5
4482 ac_header_preproc=no
4484 rm -f conftest.err conftest.$ac_ext
4485 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
4486 echo "${ECHO_T}$ac_header_preproc" >&6
4488 # So? What about this header?
4489 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
4491 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
4492 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
4493 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
4494 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
4495 ac_header_preproc=yes
4498 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
4499 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
4500 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
4501 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
4502 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
4503 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
4504 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
4505 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
4506 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
4507 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
4508 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
4509 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
4512 ## ------------------------------------------ ##
4513 ## Report this to the AC_PACKAGE_NAME lists. ##
4514 ## ------------------------------------------ ##
4517 sed "s/^/$as_me: WARNING: /" >&2
4520 echo "$as_me:$LINENO: checking for $ac_header" >&5
4521 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
4522 if eval "test \"\${$as_ac_Header+set}\" = set"; then
4523 echo $ECHO_N "(cached) $ECHO_C" >&6
4525 eval "$as_ac_Header=\$ac_header_preproc"
4527 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
4528 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
4531 if test `eval echo '${'$as_ac_Header'}'` = yes; then
4532 cat >>confdefs.h <<_ACEOF
4533 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
4551 echo "$as_me:$LINENO: checking for C/C++ restrict keyword" >&5
4552 echo $ECHO_N "checking for C/C++ restrict keyword... $ECHO_C" >&6
4553 if test "${ac_cv_c_restrict+set}" = set; then
4554 echo $ECHO_N "(cached) $ECHO_C" >&6
4557 # The order here caters to the fact that C++ does not require restrict.
4558 for ac_kw in __restrict __restrict__ _Restrict restrict; do
4559 cat >conftest.$ac_ext <<_ACEOF
4562 cat confdefs.h >>conftest.$ac_ext
4563 cat >>conftest.$ac_ext <<_ACEOF
4564 /* end confdefs.h. */
4565 typedef int * int_ptr;
4566 int foo (int_ptr $ac_kw ip) {
4580 rm -f conftest.$ac_objext
4581 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
4582 (eval $ac_compile) 2>conftest.er1
4584 grep -v '^ *+' conftest.er1 >conftest.err
4586 cat conftest.err >&5
4587 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4588 (exit $ac_status); } &&
4589 { ac_try='test -z "$ac_c_werror_flag"
4590 || test ! -s conftest.err'
4591 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4594 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4595 (exit $ac_status); }; } &&
4596 { ac_try='test -s conftest.$ac_objext'
4597 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4600 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4601 (exit $ac_status); }; }; then
4602 ac_cv_c_restrict=$ac_kw
4604 echo "$as_me: failed program was:" >&5
4605 sed 's/^/| /' conftest.$ac_ext >&5
4608 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
4609 test "$ac_cv_c_restrict" != no && break
4613 echo "$as_me:$LINENO: result: $ac_cv_c_restrict" >&5
4614 echo "${ECHO_T}$ac_cv_c_restrict" >&6
4617 case $ac_cv_c_restrict in
4619 no) cat >>confdefs.h <<\_ACEOF
4623 *) cat >>confdefs.h <<_ACEOF
4624 #define restrict $ac_cv_c_restrict
4649 if test $gl_cv_have_include_next = yes; then
4650 gl_cv_next_string_h='<'string.h'>'
4652 echo "$as_me:$LINENO: checking absolute name of <string.h>" >&5
4653 echo $ECHO_N "checking absolute name of <string.h>... $ECHO_C" >&6
4654 if test "${gl_cv_next_string_h+set}" = set; then
4655 echo $ECHO_N "(cached) $ECHO_C" >&6
4658 if test $ac_cv_header_string_h = yes; then
4659 cat >conftest.$ac_ext <<_ACEOF
4662 cat confdefs.h >>conftest.$ac_ext
4663 cat >>conftest.$ac_ext <<_ACEOF
4664 /* end confdefs.h. */
4668 gl_cv_next_string_h='"'`(eval "$ac_cpp conftest.$ac_ext") 2>&5 |
4669 sed -n '\#/string.h#{
4670 s#.*"\(.*/string.h\)".*#\1#
4676 gl_cv_next_string_h='<'string.h'>'
4680 echo "$as_me:$LINENO: result: $gl_cv_next_string_h" >&5
4681 echo "${ECHO_T}$gl_cv_next_string_h" >&6
4683 NEXT_STRING_H=$gl_cv_next_string_h
4690 HAVE_DECL_WCWIDTH=1;
4699 GL_COND_LIBTOOL_TRUE=
4700 GL_COND_LIBTOOL_FALSE='#'
4702 GL_COND_LIBTOOL_TRUE='#'
4703 GL_COND_LIBTOOL_FALSE=
4706 gl_cond_libtool=false
4712 gl_source_base='gnulib'
4722 for ac_func in memchr
4724 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
4725 echo "$as_me:$LINENO: checking for $ac_func" >&5
4726 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
4727 if eval "test \"\${$as_ac_var+set}\" = set"; then
4728 echo $ECHO_N "(cached) $ECHO_C" >&6
4730 cat >conftest.$ac_ext <<_ACEOF
4733 cat confdefs.h >>conftest.$ac_ext
4734 cat >>conftest.$ac_ext <<_ACEOF
4735 /* end confdefs.h. */
4736 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
4737 For example, HP-UX 11i <limits.h> declares gettimeofday. */
4738 #define $ac_func innocuous_$ac_func
4740 /* System header to define __stub macros and hopefully few prototypes,
4741 which can conflict with char $ac_func (); below.
4742 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
4743 <limits.h> exists even on freestanding compilers. */
4746 # include <limits.h>
4748 # include <assert.h>
4753 /* Override any gcc2 internal prototype to avoid an error. */
4758 /* We use char because int might match the return type of a gcc2
4759 builtin and then its argument prototype would still apply. */
4761 /* The GNU C library defines this for functions which it implements
4762 to always fail with ENOSYS. Some functions are actually named
4763 something starting with __ and the normal name is an alias. */
4764 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
4767 char (*f) () = $ac_func;
4776 return f != $ac_func;
4781 rm -f conftest.$ac_objext conftest$ac_exeext
4782 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
4783 (eval $ac_link) 2>conftest.er1
4785 grep -v '^ *+' conftest.er1 >conftest.err
4787 cat conftest.err >&5
4788 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4789 (exit $ac_status); } &&
4790 { ac_try='test -z "$ac_c_werror_flag"
4791 || test ! -s conftest.err'
4792 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4795 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4796 (exit $ac_status); }; } &&
4797 { ac_try='test -s conftest$ac_exeext'
4798 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4801 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4802 (exit $ac_status); }; }; then
4803 eval "$as_ac_var=yes"
4805 echo "$as_me: failed program was:" >&5
4806 sed 's/^/| /' conftest.$ac_ext >&5
4808 eval "$as_ac_var=no"
4810 rm -f conftest.err conftest.$ac_objext \
4811 conftest$ac_exeext conftest.$ac_ext
4813 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
4814 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
4815 if test `eval echo '${'$as_ac_var'}'` = yes; then
4816 cat >>confdefs.h <<_ACEOF
4817 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
4822 gl_LIBOBJS="$gl_LIBOBJS $ac_func.$ac_objext"
4828 if test $ac_cv_func_memchr = no; then
4831 for ac_header in bp-sym.h
4833 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
4834 if eval "test \"\${$as_ac_Header+set}\" = set"; then
4835 echo "$as_me:$LINENO: checking for $ac_header" >&5
4836 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
4837 if eval "test \"\${$as_ac_Header+set}\" = set"; then
4838 echo $ECHO_N "(cached) $ECHO_C" >&6
4840 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
4841 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
4843 # Is the header compilable?
4844 echo "$as_me:$LINENO: checking $ac_header usability" >&5
4845 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
4846 cat >conftest.$ac_ext <<_ACEOF
4849 cat confdefs.h >>conftest.$ac_ext
4850 cat >>conftest.$ac_ext <<_ACEOF
4851 /* end confdefs.h. */
4852 $ac_includes_default
4853 #include <$ac_header>
4855 rm -f conftest.$ac_objext
4856 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
4857 (eval $ac_compile) 2>conftest.er1
4859 grep -v '^ *+' conftest.er1 >conftest.err
4861 cat conftest.err >&5
4862 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4863 (exit $ac_status); } &&
4864 { ac_try='test -z "$ac_c_werror_flag"
4865 || test ! -s conftest.err'
4866 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4869 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4870 (exit $ac_status); }; } &&
4871 { ac_try='test -s conftest.$ac_objext'
4872 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4875 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4876 (exit $ac_status); }; }; then
4877 ac_header_compiler=yes
4879 echo "$as_me: failed program was:" >&5
4880 sed 's/^/| /' conftest.$ac_ext >&5
4882 ac_header_compiler=no
4884 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
4885 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
4886 echo "${ECHO_T}$ac_header_compiler" >&6
4888 # Is the header present?
4889 echo "$as_me:$LINENO: checking $ac_header presence" >&5
4890 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
4891 cat >conftest.$ac_ext <<_ACEOF
4894 cat confdefs.h >>conftest.$ac_ext
4895 cat >>conftest.$ac_ext <<_ACEOF
4896 /* end confdefs.h. */
4897 #include <$ac_header>
4899 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
4900 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
4902 grep -v '^ *+' conftest.er1 >conftest.err
4904 cat conftest.err >&5
4905 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4906 (exit $ac_status); } >/dev/null; then
4907 if test -s conftest.err; then
4908 ac_cpp_err=$ac_c_preproc_warn_flag
4909 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
4916 if test -z "$ac_cpp_err"; then
4917 ac_header_preproc=yes
4919 echo "$as_me: failed program was:" >&5
4920 sed 's/^/| /' conftest.$ac_ext >&5
4922 ac_header_preproc=no
4924 rm -f conftest.err conftest.$ac_ext
4925 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
4926 echo "${ECHO_T}$ac_header_preproc" >&6
4928 # So? What about this header?
4929 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
4931 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
4932 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
4933 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
4934 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
4935 ac_header_preproc=yes
4938 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
4939 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
4940 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
4941 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
4942 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
4943 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
4944 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
4945 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
4946 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
4947 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
4948 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
4949 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
4952 ## ------------------------------------------ ##
4953 ## Report this to the AC_PACKAGE_NAME lists. ##
4954 ## ------------------------------------------ ##
4957 sed "s/^/$as_me: WARNING: /" >&2
4960 echo "$as_me:$LINENO: checking for $ac_header" >&5
4961 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
4962 if eval "test \"\${$as_ac_Header+set}\" = set"; then
4963 echo $ECHO_N "(cached) $ECHO_C" >&6
4965 eval "$as_ac_Header=\$ac_header_preproc"
4967 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
4968 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
4971 if test `eval echo '${'$as_ac_Header'}'` = yes; then
4972 cat >>confdefs.h <<_ACEOF
4973 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
4984 echo "$as_me:$LINENO: checking for working memcmp" >&5
4985 echo $ECHO_N "checking for working memcmp... $ECHO_C" >&6
4986 if test "${ac_cv_func_memcmp_working+set}" = set; then
4987 echo $ECHO_N "(cached) $ECHO_C" >&6
4989 if test "$cross_compiling" = yes; then
4990 ac_cv_func_memcmp_working=no
4992 cat >conftest.$ac_ext <<_ACEOF
4995 cat confdefs.h >>conftest.$ac_ext
4996 cat >>conftest.$ac_ext <<_ACEOF
4997 /* end confdefs.h. */
4998 $ac_includes_default
5003 /* Some versions of memcmp are not 8-bit clean. */
5004 char c0 = 0x40, c1 = 0x80, c2 = 0x81;
5005 if (memcmp(&c0, &c2, 1) >= 0 || memcmp(&c1, &c2, 1) >= 0)
5008 /* The Next x86 OpenStep bug shows up only when comparing 16 bytes
5009 or more and with at least one buffer not starting on a 4-byte boundary.
5010 William Lewis provided this test program. */
5015 for (i = 0; i < 4; i++)
5019 strcpy (a, "--------01111111");
5020 strcpy (b, "--------10000000");
5021 if (memcmp (a, b, 16) >= 0)
5031 rm -f conftest$ac_exeext
5032 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
5033 (eval $ac_link) 2>&5
5035 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5036 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
5037 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5040 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5041 (exit $ac_status); }; }; then
5042 ac_cv_func_memcmp_working=yes
5044 echo "$as_me: program exited with status $ac_status" >&5
5045 echo "$as_me: failed program was:" >&5
5046 sed 's/^/| /' conftest.$ac_ext >&5
5049 ac_cv_func_memcmp_working=no
5051 rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
5054 echo "$as_me:$LINENO: result: $ac_cv_func_memcmp_working" >&5
5055 echo "${ECHO_T}$ac_cv_func_memcmp_working" >&6
5056 test $ac_cv_func_memcmp_working = no &&
5063 gl_LIBOBJS="$gl_LIBOBJS memcmp.$ac_objext"
5066 if test $ac_cv_func_memcmp_working = no; then
5068 cat >>confdefs.h <<\_ACEOF
5069 #define memcmp rpl_memcmp
5077 if test $ac_cv_have_decl_memmem = yes; then
5078 echo "$as_me:$LINENO: checking whether memmem works in linear time" >&5
5079 echo $ECHO_N "checking whether memmem works in linear time... $ECHO_C" >&6
5080 if test "${gl_cv_func_memmem_works+set}" = set; then
5081 echo $ECHO_N "(cached) $ECHO_C" >&6
5083 if test "$cross_compiling" = yes; then
5084 gl_cv_func_memmem_works="guessing no"
5086 cat >conftest.$ac_ext <<_ACEOF
5089 cat confdefs.h >>conftest.$ac_ext
5090 cat >>conftest.$ac_ext <<_ACEOF
5091 /* end confdefs.h. */
5093 #include <string.h> /* for memmem */
5094 #include <stdlib.h> /* for malloc */
5095 #include <unistd.h> /* for alarm */
5101 char *haystack = (char *) malloc (2 * m + 1);
5102 char *needle = (char *) malloc (m + 1);
5104 /* Failure to compile this test due to missing alarm is okay,
5105 since all such platforms (mingw) also lack memmem. */
5107 /* Check for quadratic performance. */
5108 if (haystack && needle)
5110 memset (haystack, 'A', 2 * m);
5111 haystack[2 * m] = 'B';
5112 memset (needle, 'A', m);
5114 result = memmem (haystack, 2 * m + 1, needle, m + 1);
5116 /* Check for empty needle behavior. */
5117 return !result || !memmem ("a", 1, 0, 0);
5122 rm -f conftest$ac_exeext
5123 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
5124 (eval $ac_link) 2>&5
5126 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5127 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
5128 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5131 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5132 (exit $ac_status); }; }; then
5133 gl_cv_func_memmem_works=yes
5135 echo "$as_me: program exited with status $ac_status" >&5
5136 echo "$as_me: failed program was:" >&5
5137 sed 's/^/| /' conftest.$ac_ext >&5
5140 gl_cv_func_memmem_works=no
5142 rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
5145 echo "$as_me:$LINENO: result: $gl_cv_func_memmem_works" >&5
5146 echo "${ECHO_T}$gl_cv_func_memmem_works" >&6
5147 if test "$gl_cv_func_memmem_works" != yes; then
5156 gl_LIBOBJS="$gl_LIBOBJS memmem.$ac_objext"
5173 for ac_func in memmem
5175 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
5176 echo "$as_me:$LINENO: checking for $ac_func" >&5
5177 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
5178 if eval "test \"\${$as_ac_var+set}\" = set"; then
5179 echo $ECHO_N "(cached) $ECHO_C" >&6
5181 cat >conftest.$ac_ext <<_ACEOF
5184 cat confdefs.h >>conftest.$ac_ext
5185 cat >>conftest.$ac_ext <<_ACEOF
5186 /* end confdefs.h. */
5187 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
5188 For example, HP-UX 11i <limits.h> declares gettimeofday. */
5189 #define $ac_func innocuous_$ac_func
5191 /* System header to define __stub macros and hopefully few prototypes,
5192 which can conflict with char $ac_func (); below.
5193 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
5194 <limits.h> exists even on freestanding compilers. */
5197 # include <limits.h>
5199 # include <assert.h>
5204 /* Override any gcc2 internal prototype to avoid an error. */
5209 /* We use char because int might match the return type of a gcc2
5210 builtin and then its argument prototype would still apply. */
5212 /* The GNU C library defines this for functions which it implements
5213 to always fail with ENOSYS. Some functions are actually named
5214 something starting with __ and the normal name is an alias. */
5215 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
5218 char (*f) () = $ac_func;
5227 return f != $ac_func;
5232 rm -f conftest.$ac_objext conftest$ac_exeext
5233 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
5234 (eval $ac_link) 2>conftest.er1
5236 grep -v '^ *+' conftest.er1 >conftest.err
5238 cat conftest.err >&5
5239 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5240 (exit $ac_status); } &&
5241 { ac_try='test -z "$ac_c_werror_flag"
5242 || test ! -s conftest.err'
5243 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5246 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5247 (exit $ac_status); }; } &&
5248 { ac_try='test -s conftest$ac_exeext'
5249 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5252 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5253 (exit $ac_status); }; }; then
5254 eval "$as_ac_var=yes"
5256 echo "$as_me: failed program was:" >&5
5257 sed 's/^/| /' conftest.$ac_ext >&5
5259 eval "$as_ac_var=no"
5261 rm -f conftest.err conftest.$ac_objext \
5262 conftest$ac_exeext conftest.$ac_ext
5264 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
5265 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
5266 if test `eval echo '${'$as_ac_var'}'` = yes; then
5267 cat >>confdefs.h <<_ACEOF
5268 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
5273 gl_LIBOBJS="$gl_LIBOBJS $ac_func.$ac_objext"
5286 if test $ac_cv_have_decl_memmem = no; then
5298 if test $ac_cv_type_long_long_int = yes; then
5299 HAVE_LONG_LONG_INT=1
5301 HAVE_LONG_LONG_INT=0
5305 if test $ac_cv_type_unsigned_long_long_int = yes; then
5306 HAVE_UNSIGNED_LONG_LONG_INT=1
5308 HAVE_UNSIGNED_LONG_LONG_INT=0
5312 if test $ac_cv_header_inttypes_h = yes; then
5319 if test $ac_cv_header_sys_types_h = yes; then
5337 if test $gl_cv_have_include_next = yes; then
5338 gl_cv_next_stdint_h='<'stdint.h'>'
5340 echo "$as_me:$LINENO: checking absolute name of <stdint.h>" >&5
5341 echo $ECHO_N "checking absolute name of <stdint.h>... $ECHO_C" >&6
5342 if test "${gl_cv_next_stdint_h+set}" = set; then
5343 echo $ECHO_N "(cached) $ECHO_C" >&6
5346 if test $ac_cv_header_stdint_h = yes; then
5347 cat >conftest.$ac_ext <<_ACEOF
5350 cat confdefs.h >>conftest.$ac_ext
5351 cat >>conftest.$ac_ext <<_ACEOF
5352 /* end confdefs.h. */
5356 gl_cv_next_stdint_h='"'`(eval "$ac_cpp conftest.$ac_ext") 2>&5 |
5357 sed -n '\#/stdint.h#{
5358 s#.*"\(.*/stdint.h\)".*#\1#
5364 gl_cv_next_stdint_h='<'stdint.h'>'
5368 echo "$as_me:$LINENO: result: $gl_cv_next_stdint_h" >&5
5369 echo "${ECHO_T}$gl_cv_next_stdint_h" >&6
5371 NEXT_STDINT_H=$gl_cv_next_stdint_h
5375 if test $ac_cv_header_stdint_h = yes; then
5382 if test $ac_cv_header_stdint_h = yes; then
5383 echo "$as_me:$LINENO: checking whether stdint.h conforms to C99" >&5
5384 echo $ECHO_N "checking whether stdint.h conforms to C99... $ECHO_C" >&6
5385 if test "${gl_cv_header_working_stdint_h+set}" = set; then
5386 echo $ECHO_N "(cached) $ECHO_C" >&6
5388 gl_cv_header_working_stdint_h=no
5389 cat >conftest.$ac_ext <<_ACEOF
5393 cat confdefs.h >>conftest.$ac_ext
5394 cat >>conftest.$ac_ext <<_ACEOF
5395 /* end confdefs.h. */
5397 #define __STDC_LIMIT_MACROS 1 /* to make it work also in C++ mode */
5398 #define __STDC_CONSTANT_MACROS 1 /* to make it work also in C++ mode */
5399 #define _GL_JUST_INCLUDE_SYSTEM_STDINT_H 1 /* work if build isn't clean */
5401 /* Dragonfly defines WCHAR_MIN, WCHAR_MAX only in <wchar.h>. */
5402 #if !(defined WCHAR_MIN && defined WCHAR_MAX)
5403 #error "WCHAR_MIN, WCHAR_MAX not defined in <stdint.h>"
5407 /* BSD/OS 4.0.1 has a bug: <stddef.h>, <stdio.h> and <time.h> must be
5408 included before <wchar.h>. */
5419 int8_t a1 = INT8_MAX;
5420 int8_t a1min = INT8_MIN;
5423 int16_t a2 = INT16_MAX;
5424 int16_t a2min = INT16_MIN;
5427 int32_t a3 = INT32_MAX;
5428 int32_t a3min = INT32_MIN;
5431 int64_t a4 = INT64_MAX;
5432 int64_t a4min = INT64_MIN;
5435 uint8_t b1 = UINT8_MAX;
5437 typedef int b1[(unsigned char) -1 != 255 ? 1 : -1];
5440 uint16_t b2 = UINT16_MAX;
5443 uint32_t b3 = UINT32_MAX;
5446 uint64_t b4 = UINT64_MAX;
5448 int_least8_t c1 = INT8_C (0x7f);
5449 int_least8_t c1max = INT_LEAST8_MAX;
5450 int_least8_t c1min = INT_LEAST8_MIN;
5451 int_least16_t c2 = INT16_C (0x7fff);
5452 int_least16_t c2max = INT_LEAST16_MAX;
5453 int_least16_t c2min = INT_LEAST16_MIN;
5454 int_least32_t c3 = INT32_C (0x7fffffff);
5455 int_least32_t c3max = INT_LEAST32_MAX;
5456 int_least32_t c3min = INT_LEAST32_MIN;
5457 int_least64_t c4 = INT64_C (0x7fffffffffffffff);
5458 int_least64_t c4max = INT_LEAST64_MAX;
5459 int_least64_t c4min = INT_LEAST64_MIN;
5460 uint_least8_t d1 = UINT8_C (0xff);
5461 uint_least8_t d1max = UINT_LEAST8_MAX;
5462 uint_least16_t d2 = UINT16_C (0xffff);
5463 uint_least16_t d2max = UINT_LEAST16_MAX;
5464 uint_least32_t d3 = UINT32_C (0xffffffff);
5465 uint_least32_t d3max = UINT_LEAST32_MAX;
5466 uint_least64_t d4 = UINT64_C (0xffffffffffffffff);
5467 uint_least64_t d4max = UINT_LEAST64_MAX;
5468 int_fast8_t e1 = INT_FAST8_MAX;
5469 int_fast8_t e1min = INT_FAST8_MIN;
5470 int_fast16_t e2 = INT_FAST16_MAX;
5471 int_fast16_t e2min = INT_FAST16_MIN;
5472 int_fast32_t e3 = INT_FAST32_MAX;
5473 int_fast32_t e3min = INT_FAST32_MIN;
5474 int_fast64_t e4 = INT_FAST64_MAX;
5475 int_fast64_t e4min = INT_FAST64_MIN;
5476 uint_fast8_t f1 = UINT_FAST8_MAX;
5477 uint_fast16_t f2 = UINT_FAST16_MAX;
5478 uint_fast32_t f3 = UINT_FAST32_MAX;
5479 uint_fast64_t f4 = UINT_FAST64_MAX;
5481 intptr_t g = INTPTR_MAX;
5482 intptr_t gmin = INTPTR_MIN;
5485 uintptr_t h = UINTPTR_MAX;
5487 intmax_t i = INTMAX_MAX;
5488 uintmax_t j = UINTMAX_MAX;
5490 #include <limits.h> /* for CHAR_BIT */
5491 #define TYPE_MINIMUM(t) \
5492 ((t) ((t) 0 < (t) -1 ? (t) 0 : ~ (t) 0 << (sizeof (t) * CHAR_BIT - 1)))
5493 #define TYPE_MAXIMUM(t) \
5494 ((t) ((t) 0 < (t) -1 ? (t) -1 : ~ (~ (t) 0 << (sizeof (t) * CHAR_BIT - 1))))
5497 PTRDIFF_MIN == TYPE_MINIMUM (ptrdiff_t)
5498 && PTRDIFF_MAX == TYPE_MAXIMUM (ptrdiff_t)
5500 /* Detect bug in FreeBSD 6.0 / ia64. */
5501 int check_SIG_ATOMIC:
5502 SIG_ATOMIC_MIN == TYPE_MINIMUM (sig_atomic_t)
5503 && SIG_ATOMIC_MAX == TYPE_MAXIMUM (sig_atomic_t)
5505 int check_SIZE: SIZE_MAX == TYPE_MAXIMUM (size_t) ? 1 : -1;
5507 WCHAR_MIN == TYPE_MINIMUM (wchar_t)
5508 && WCHAR_MAX == TYPE_MAXIMUM (wchar_t)
5510 /* Detect bug in mingw. */
5512 WINT_MIN == TYPE_MINIMUM (wint_t)
5513 && WINT_MAX == TYPE_MAXIMUM (wint_t)
5516 /* Detect bugs in glibc 2.4 and Solaris 10 stdint.h, among others. */
5518 (-1 < UINT8_C (0)) == (-1 < (uint_least8_t) 0) ? 1 : -1;
5520 (-1 < UINT16_C (0)) == (-1 < (uint_least16_t) 0) ? 1 : -1;
5522 /* Detect bugs in OpenBSD 3.9 stdint.h. */
5524 int check_uint8: (uint8_t) -1 == UINT8_MAX ? 1 : -1;
5527 int check_uint16: (uint16_t) -1 == UINT16_MAX ? 1 : -1;
5530 int check_uint32: (uint32_t) -1 == UINT32_MAX ? 1 : -1;
5533 int check_uint64: (uint64_t) -1 == UINT64_MAX ? 1 : -1;
5535 int check_uint_least8: (uint_least8_t) -1 == UINT_LEAST8_MAX ? 1 : -1;
5536 int check_uint_least16: (uint_least16_t) -1 == UINT_LEAST16_MAX ? 1 : -1;
5537 int check_uint_least32: (uint_least32_t) -1 == UINT_LEAST32_MAX ? 1 : -1;
5538 int check_uint_least64: (uint_least64_t) -1 == UINT_LEAST64_MAX ? 1 : -1;
5539 int check_uint_fast8: (uint_fast8_t) -1 == UINT_FAST8_MAX ? 1 : -1;
5540 int check_uint_fast16: (uint_fast16_t) -1 == UINT_FAST16_MAX ? 1 : -1;
5541 int check_uint_fast32: (uint_fast32_t) -1 == UINT_FAST32_MAX ? 1 : -1;
5542 int check_uint_fast64: (uint_fast64_t) -1 == UINT_FAST64_MAX ? 1 : -1;
5543 int check_uintptr: (uintptr_t) -1 == UINTPTR_MAX ? 1 : -1;
5544 int check_uintmax: (uintmax_t) -1 == UINTMAX_MAX ? 1 : -1;
5545 int check_size: (size_t) -1 == SIZE_MAX ? 1 : -1;
5556 rm -f conftest.$ac_objext
5557 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
5558 (eval $ac_compile) 2>conftest.er1
5560 grep -v '^ *+' conftest.er1 >conftest.err
5562 cat conftest.err >&5
5563 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5564 (exit $ac_status); } &&
5565 { ac_try='test -z "$ac_c_werror_flag"
5566 || test ! -s conftest.err'
5567 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5570 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5571 (exit $ac_status); }; } &&
5572 { ac_try='test -s conftest.$ac_objext'
5573 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5576 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5577 (exit $ac_status); }; }; then
5578 gl_cv_header_working_stdint_h=yes
5580 echo "$as_me: failed program was:" >&5
5581 sed 's/^/| /' conftest.$ac_ext >&5
5584 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
5586 echo "$as_me:$LINENO: result: $gl_cv_header_working_stdint_h" >&5
5587 echo "${ECHO_T}$gl_cv_header_working_stdint_h" >&6
5589 if test "$gl_cv_header_working_stdint_h" = yes; then
5594 for ac_header in sys/inttypes.h sys/bitypes.h
5596 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
5597 if eval "test \"\${$as_ac_Header+set}\" = set"; then
5598 echo "$as_me:$LINENO: checking for $ac_header" >&5
5599 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
5600 if eval "test \"\${$as_ac_Header+set}\" = set"; then
5601 echo $ECHO_N "(cached) $ECHO_C" >&6
5603 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
5604 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
5606 # Is the header compilable?
5607 echo "$as_me:$LINENO: checking $ac_header usability" >&5
5608 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
5609 cat >conftest.$ac_ext <<_ACEOF
5612 cat confdefs.h >>conftest.$ac_ext
5613 cat >>conftest.$ac_ext <<_ACEOF
5614 /* end confdefs.h. */
5615 $ac_includes_default
5616 #include <$ac_header>
5618 rm -f conftest.$ac_objext
5619 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
5620 (eval $ac_compile) 2>conftest.er1
5622 grep -v '^ *+' conftest.er1 >conftest.err
5624 cat conftest.err >&5
5625 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5626 (exit $ac_status); } &&
5627 { ac_try='test -z "$ac_c_werror_flag"
5628 || test ! -s conftest.err'
5629 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5632 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5633 (exit $ac_status); }; } &&
5634 { ac_try='test -s conftest.$ac_objext'
5635 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5638 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5639 (exit $ac_status); }; }; then
5640 ac_header_compiler=yes
5642 echo "$as_me: failed program was:" >&5
5643 sed 's/^/| /' conftest.$ac_ext >&5
5645 ac_header_compiler=no
5647 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
5648 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
5649 echo "${ECHO_T}$ac_header_compiler" >&6
5651 # Is the header present?
5652 echo "$as_me:$LINENO: checking $ac_header presence" >&5
5653 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
5654 cat >conftest.$ac_ext <<_ACEOF
5657 cat confdefs.h >>conftest.$ac_ext
5658 cat >>conftest.$ac_ext <<_ACEOF
5659 /* end confdefs.h. */
5660 #include <$ac_header>
5662 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
5663 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
5665 grep -v '^ *+' conftest.er1 >conftest.err
5667 cat conftest.err >&5
5668 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5669 (exit $ac_status); } >/dev/null; then
5670 if test -s conftest.err; then
5671 ac_cpp_err=$ac_c_preproc_warn_flag
5672 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
5679 if test -z "$ac_cpp_err"; then
5680 ac_header_preproc=yes
5682 echo "$as_me: failed program was:" >&5
5683 sed 's/^/| /' conftest.$ac_ext >&5
5685 ac_header_preproc=no
5687 rm -f conftest.err conftest.$ac_ext
5688 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
5689 echo "${ECHO_T}$ac_header_preproc" >&6
5691 # So? What about this header?
5692 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
5694 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
5695 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
5696 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
5697 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
5698 ac_header_preproc=yes
5701 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
5702 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
5703 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
5704 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
5705 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
5706 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
5707 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
5708 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
5709 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
5710 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
5711 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
5712 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
5715 ## ------------------------------------------ ##
5716 ## Report this to the AC_PACKAGE_NAME lists. ##
5717 ## ------------------------------------------ ##
5720 sed "s/^/$as_me: WARNING: /" >&2
5723 echo "$as_me:$LINENO: checking for $ac_header" >&5
5724 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
5725 if eval "test \"\${$as_ac_Header+set}\" = set"; then
5726 echo $ECHO_N "(cached) $ECHO_C" >&6
5728 eval "$as_ac_Header=\$ac_header_preproc"
5730 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
5731 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
5734 if test `eval echo '${'$as_ac_Header'}'` = yes; then
5735 cat >>confdefs.h <<_ACEOF
5736 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
5743 if test $ac_cv_header_sys_inttypes_h = yes; then
5744 HAVE_SYS_INTTYPES_H=1
5746 HAVE_SYS_INTTYPES_H=0
5749 if test $ac_cv_header_sys_bitypes_h = yes; then
5750 HAVE_SYS_BITYPES_H=1
5752 HAVE_SYS_BITYPES_H=0
5772 for gltype in ptrdiff_t sig_atomic_t size_t wchar_t wint_t ; do
5773 echo "$as_me:$LINENO: checking for bit size of $gltype" >&5
5774 echo $ECHO_N "checking for bit size of $gltype... $ECHO_C" >&6
5775 if eval "test \"\${gl_cv_bitsizeof_${gltype}+set}\" = set"; then
5776 echo $ECHO_N "(cached) $ECHO_C" >&6
5778 if test "$cross_compiling" = yes; then
5779 # Depending upon the size, compute the lo and hi bounds.
5780 cat >conftest.$ac_ext <<_ACEOF
5783 cat confdefs.h >>conftest.$ac_ext
5784 cat >>conftest.$ac_ext <<_ACEOF
5785 /* end confdefs.h. */
5787 /* BSD/OS 4.0.1 has a bug: <stddef.h>, <stdio.h> and <time.h> must be
5788 included before <wchar.h>. */
5801 static int test_array [1 - 2 * !((sizeof ($gltype) * CHAR_BIT) >= 0)];
5808 rm -f conftest.$ac_objext
5809 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
5810 (eval $ac_compile) 2>conftest.er1
5812 grep -v '^ *+' conftest.er1 >conftest.err
5814 cat conftest.err >&5
5815 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5816 (exit $ac_status); } &&
5817 { ac_try='test -z "$ac_c_werror_flag"
5818 || test ! -s conftest.err'
5819 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5822 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5823 (exit $ac_status); }; } &&
5824 { ac_try='test -s conftest.$ac_objext'
5825 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5828 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5829 (exit $ac_status); }; }; then
5832 cat >conftest.$ac_ext <<_ACEOF
5835 cat confdefs.h >>conftest.$ac_ext
5836 cat >>conftest.$ac_ext <<_ACEOF
5837 /* end confdefs.h. */
5839 /* BSD/OS 4.0.1 has a bug: <stddef.h>, <stdio.h> and <time.h> must be
5840 included before <wchar.h>. */
5853 static int test_array [1 - 2 * !((sizeof ($gltype) * CHAR_BIT) <= $ac_mid)];
5860 rm -f conftest.$ac_objext
5861 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
5862 (eval $ac_compile) 2>conftest.er1
5864 grep -v '^ *+' conftest.er1 >conftest.err
5866 cat conftest.err >&5
5867 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5868 (exit $ac_status); } &&
5869 { ac_try='test -z "$ac_c_werror_flag"
5870 || test ! -s conftest.err'
5871 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5874 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5875 (exit $ac_status); }; } &&
5876 { ac_try='test -s conftest.$ac_objext'
5877 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5880 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5881 (exit $ac_status); }; }; then
5882 ac_hi=$ac_mid; break
5884 echo "$as_me: failed program was:" >&5
5885 sed 's/^/| /' conftest.$ac_ext >&5
5887 ac_lo=`expr $ac_mid + 1`
5888 if test $ac_lo -le $ac_mid; then
5892 ac_mid=`expr 2 '*' $ac_mid + 1`
5894 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
5897 echo "$as_me: failed program was:" >&5
5898 sed 's/^/| /' conftest.$ac_ext >&5
5900 cat >conftest.$ac_ext <<_ACEOF
5903 cat confdefs.h >>conftest.$ac_ext
5904 cat >>conftest.$ac_ext <<_ACEOF
5905 /* end confdefs.h. */
5907 /* BSD/OS 4.0.1 has a bug: <stddef.h>, <stdio.h> and <time.h> must be
5908 included before <wchar.h>. */
5921 static int test_array [1 - 2 * !((sizeof ($gltype) * CHAR_BIT) < 0)];
5928 rm -f conftest.$ac_objext
5929 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
5930 (eval $ac_compile) 2>conftest.er1
5932 grep -v '^ *+' conftest.er1 >conftest.err
5934 cat conftest.err >&5
5935 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5936 (exit $ac_status); } &&
5937 { ac_try='test -z "$ac_c_werror_flag"
5938 || test ! -s conftest.err'
5939 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5942 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5943 (exit $ac_status); }; } &&
5944 { ac_try='test -s conftest.$ac_objext'
5945 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5948 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5949 (exit $ac_status); }; }; then
5952 cat >conftest.$ac_ext <<_ACEOF
5955 cat confdefs.h >>conftest.$ac_ext
5956 cat >>conftest.$ac_ext <<_ACEOF
5957 /* end confdefs.h. */
5959 /* BSD/OS 4.0.1 has a bug: <stddef.h>, <stdio.h> and <time.h> must be
5960 included before <wchar.h>. */
5973 static int test_array [1 - 2 * !((sizeof ($gltype) * CHAR_BIT) >= $ac_mid)];
5980 rm -f conftest.$ac_objext
5981 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
5982 (eval $ac_compile) 2>conftest.er1
5984 grep -v '^ *+' conftest.er1 >conftest.err
5986 cat conftest.err >&5
5987 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5988 (exit $ac_status); } &&
5989 { ac_try='test -z "$ac_c_werror_flag"
5990 || test ! -s conftest.err'
5991 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5994 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5995 (exit $ac_status); }; } &&
5996 { ac_try='test -s conftest.$ac_objext'
5997 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6000 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6001 (exit $ac_status); }; }; then
6002 ac_lo=$ac_mid; break
6004 echo "$as_me: failed program was:" >&5
6005 sed 's/^/| /' conftest.$ac_ext >&5
6007 ac_hi=`expr '(' $ac_mid ')' - 1`
6008 if test $ac_mid -le $ac_hi; then
6012 ac_mid=`expr 2 '*' $ac_mid`
6014 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
6017 echo "$as_me: failed program was:" >&5
6018 sed 's/^/| /' conftest.$ac_ext >&5
6022 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
6024 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
6025 # Binary search between lo and hi bounds.
6026 while test "x$ac_lo" != "x$ac_hi"; do
6027 ac_mid=`expr '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo`
6028 cat >conftest.$ac_ext <<_ACEOF
6031 cat confdefs.h >>conftest.$ac_ext
6032 cat >>conftest.$ac_ext <<_ACEOF
6033 /* end confdefs.h. */
6035 /* BSD/OS 4.0.1 has a bug: <stddef.h>, <stdio.h> and <time.h> must be
6036 included before <wchar.h>. */
6049 static int test_array [1 - 2 * !((sizeof ($gltype) * CHAR_BIT) <= $ac_mid)];
6056 rm -f conftest.$ac_objext
6057 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
6058 (eval $ac_compile) 2>conftest.er1
6060 grep -v '^ *+' conftest.er1 >conftest.err
6062 cat conftest.err >&5
6063 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6064 (exit $ac_status); } &&
6065 { ac_try='test -z "$ac_c_werror_flag"
6066 || test ! -s conftest.err'
6067 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6070 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6071 (exit $ac_status); }; } &&
6072 { ac_try='test -s conftest.$ac_objext'
6073 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6076 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6077 (exit $ac_status); }; }; then
6080 echo "$as_me: failed program was:" >&5
6081 sed 's/^/| /' conftest.$ac_ext >&5
6083 ac_lo=`expr '(' $ac_mid ')' + 1`
6085 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
6089 '') result=unknown ;;
6092 if test "$cross_compiling" = yes; then
6093 { { echo "$as_me:$LINENO: error: in \`$ac_pwd':" >&5
6094 echo "$as_me: error: in \`$ac_pwd':" >&2;}
6095 { { echo "$as_me:$LINENO: error: cannot run test program while cross compiling
6096 See \`config.log' for more details." >&5
6097 echo "$as_me: error: cannot run test program while cross compiling
6098 See \`config.log' for more details." >&2;}
6099 { (exit 1); exit 1; }; }; }
6101 cat >conftest.$ac_ext <<_ACEOF
6104 cat confdefs.h >>conftest.$ac_ext
6105 cat >>conftest.$ac_ext <<_ACEOF
6106 /* end confdefs.h. */
6108 /* BSD/OS 4.0.1 has a bug: <stddef.h>, <stdio.h> and <time.h> must be
6109 included before <wchar.h>. */
6119 long longval () { return sizeof ($gltype) * CHAR_BIT; }
6120 unsigned long ulongval () { return sizeof ($gltype) * CHAR_BIT; }
6127 FILE *f = fopen ("conftest.val", "w");
6130 if ((sizeof ($gltype) * CHAR_BIT) < 0)
6132 long i = longval ();
6133 if (i != (sizeof ($gltype) * CHAR_BIT))
6135 fprintf (f, "%ld\n", i);
6139 unsigned long i = ulongval ();
6140 if (i != (sizeof ($gltype) * CHAR_BIT))
6142 fprintf (f, "%lu\n", i);
6144 exit (ferror (f) || fclose (f) != 0);
6150 rm -f conftest$ac_exeext
6151 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
6152 (eval $ac_link) 2>&5
6154 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6155 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
6156 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6159 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6160 (exit $ac_status); }; }; then
6161 result=`cat conftest.val`
6163 echo "$as_me: program exited with status $ac_status" >&5
6164 echo "$as_me: failed program was:" >&5
6165 sed 's/^/| /' conftest.$ac_ext >&5
6170 rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
6174 eval gl_cv_bitsizeof_${gltype}=\$result
6177 echo "$as_me:$LINENO: result: `eval echo '${'gl_cv_bitsizeof_${gltype}'}'`" >&5
6178 echo "${ECHO_T}`eval echo '${'gl_cv_bitsizeof_${gltype}'}'`" >&6
6179 eval result=\$gl_cv_bitsizeof_${gltype}
6180 if test $result = unknown; then
6183 GLTYPE=`echo "$gltype" | tr 'abcdefghijklmnopqrstuvwxyz ' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ_'`
6184 cat >>confdefs.h <<_ACEOF
6185 #define BITSIZEOF_${GLTYPE} $result
6188 eval BITSIZEOF_${GLTYPE}=\$result
6197 for gltype in sig_atomic_t wchar_t wint_t ; do
6198 echo "$as_me:$LINENO: checking whether $gltype is signed" >&5
6199 echo $ECHO_N "checking whether $gltype is signed... $ECHO_C" >&6
6200 if eval "test \"\${gl_cv_type_${gltype}_signed+set}\" = set"; then
6201 echo $ECHO_N "(cached) $ECHO_C" >&6
6203 cat >conftest.$ac_ext <<_ACEOF
6206 cat confdefs.h >>conftest.$ac_ext
6207 cat >>conftest.$ac_ext <<_ACEOF
6208 /* end confdefs.h. */
6210 /* BSD/OS 4.0.1 has a bug: <stddef.h>, <stdio.h> and <time.h> must be
6211 included before <wchar.h>. */
6220 int verify[2 * (($gltype) -1 < ($gltype) 0) - 1];
6229 rm -f conftest.$ac_objext
6230 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
6231 (eval $ac_compile) 2>conftest.er1
6233 grep -v '^ *+' conftest.er1 >conftest.err
6235 cat conftest.err >&5
6236 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6237 (exit $ac_status); } &&
6238 { ac_try='test -z "$ac_c_werror_flag"
6239 || test ! -s conftest.err'
6240 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6243 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6244 (exit $ac_status); }; } &&
6245 { ac_try='test -s conftest.$ac_objext'
6246 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6249 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6250 (exit $ac_status); }; }; then
6253 echo "$as_me: failed program was:" >&5
6254 sed 's/^/| /' conftest.$ac_ext >&5
6258 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
6259 eval gl_cv_type_${gltype}_signed=\$result
6262 echo "$as_me:$LINENO: result: `eval echo '${'gl_cv_type_${gltype}_signed'}'`" >&5
6263 echo "${ECHO_T}`eval echo '${'gl_cv_type_${gltype}_signed'}'`" >&6
6264 eval result=\$gl_cv_type_${gltype}_signed
6265 GLTYPE=`echo $gltype | tr 'abcdefghijklmnopqrstuvwxyz ' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ_'`
6266 if test "$result" = yes; then
6267 cat >>confdefs.h <<_ACEOF
6268 #define HAVE_SIGNED_${GLTYPE} 1
6271 eval HAVE_SIGNED_${GLTYPE}=1
6273 eval HAVE_SIGNED_${GLTYPE}=0
6278 gl_cv_type_ptrdiff_t_signed=yes
6279 gl_cv_type_size_t_signed=no
6287 for gltype in ptrdiff_t sig_atomic_t size_t wchar_t wint_t ; do
6288 echo "$as_me:$LINENO: checking for $gltype integer literal suffix" >&5
6289 echo $ECHO_N "checking for $gltype integer literal suffix... $ECHO_C" >&6
6290 if eval "test \"\${gl_cv_type_${gltype}_suffix+set}\" = set"; then
6291 echo $ECHO_N "(cached) $ECHO_C" >&6
6293 eval gl_cv_type_${gltype}_suffix=no
6294 eval result=\$gl_cv_type_${gltype}_signed
6295 if test "$result" = yes; then
6300 for glsuf in "$glsufu" ${glsufu}l ${glsufu}ll ${glsufu}i64; do
6303 l) gltype1='long int';;
6304 ll) gltype1='long long int';;
6305 i64) gltype1='__int64';;
6306 u) gltype1='unsigned int';;
6307 ul) gltype1='unsigned long int';;
6308 ull) gltype1='unsigned long long int';;
6309 ui64)gltype1='unsigned __int64';;
6311 cat >conftest.$ac_ext <<_ACEOF
6314 cat confdefs.h >>conftest.$ac_ext
6315 cat >>conftest.$ac_ext <<_ACEOF
6316 /* end confdefs.h. */
6318 /* BSD/OS 4.0.1 has a bug: <stddef.h>, <stdio.h> and <time.h> must be
6319 included before <wchar.h>. */
6329 extern $gltype1 foo;
6338 rm -f conftest.$ac_objext
6339 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
6340 (eval $ac_compile) 2>conftest.er1
6342 grep -v '^ *+' conftest.er1 >conftest.err
6344 cat conftest.err >&5
6345 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6346 (exit $ac_status); } &&
6347 { ac_try='test -z "$ac_c_werror_flag"
6348 || test ! -s conftest.err'
6349 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6352 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6353 (exit $ac_status); }; } &&
6354 { ac_try='test -s conftest.$ac_objext'
6355 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6358 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6359 (exit $ac_status); }; }; then
6360 eval gl_cv_type_${gltype}_suffix=\$glsuf
6362 echo "$as_me: failed program was:" >&5
6363 sed 's/^/| /' conftest.$ac_ext >&5
6366 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
6367 eval result=\$gl_cv_type_${gltype}_suffix
6368 test "$result" != no && break
6371 echo "$as_me:$LINENO: result: `eval echo '${'gl_cv_type_${gltype}_suffix'}'`" >&5
6372 echo "${ECHO_T}`eval echo '${'gl_cv_type_${gltype}_suffix'}'`" >&6
6373 GLTYPE=`echo $gltype | tr 'abcdefghijklmnopqrstuvwxyz ' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ_'`
6374 eval result=\$gl_cv_type_${gltype}_suffix
6375 test "$result" = no && result=
6376 eval ${GLTYPE}_SUFFIX=\$result
6377 cat >>confdefs.h <<_ACEOF
6378 #define ${GLTYPE}_SUFFIX $result
6394 echo "$as_me:$LINENO: checking whether <wchar.h> is standalone" >&5
6395 echo $ECHO_N "checking whether <wchar.h> is standalone... $ECHO_C" >&6
6396 if test "${gl_cv_header_wchar_h_standalone+set}" = set; then
6397 echo $ECHO_N "(cached) $ECHO_C" >&6
6399 cat >conftest.$ac_ext <<_ACEOF
6403 rm -f conftest.$ac_objext
6404 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
6405 (eval $ac_compile) 2>conftest.er1
6407 grep -v '^ *+' conftest.er1 >conftest.err
6409 cat conftest.err >&5
6410 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6411 (exit $ac_status); } &&
6412 { ac_try='test -z "$ac_c_werror_flag"
6413 || test ! -s conftest.err'
6414 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6417 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6418 (exit $ac_status); }; } &&
6419 { ac_try='test -s conftest.$ac_objext'
6420 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6423 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6424 (exit $ac_status); }; }; then
6425 gl_cv_header_wchar_h_standalone=yes
6427 echo "$as_me: failed program was:" >&5
6428 sed 's/^/| /' conftest.$ac_ext >&5
6430 gl_cv_header_wchar_h_standalone=no
6432 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
6434 echo "$as_me:$LINENO: result: $gl_cv_header_wchar_h_standalone" >&5
6435 echo "${ECHO_T}$gl_cv_header_wchar_h_standalone" >&6
6436 if test $gl_cv_header_wchar_h_standalone != yes; then
6447 if test $ac_cv_header_wchar_h = yes; then
6464 if test $gl_cv_have_include_next = yes; then
6465 gl_cv_next_wchar_h='<'wchar.h'>'
6467 echo "$as_me:$LINENO: checking absolute name of <wchar.h>" >&5
6468 echo $ECHO_N "checking absolute name of <wchar.h>... $ECHO_C" >&6
6469 if test "${gl_cv_next_wchar_h+set}" = set; then
6470 echo $ECHO_N "(cached) $ECHO_C" >&6
6473 if test $ac_cv_header_wchar_h = yes; then
6474 cat >conftest.$ac_ext <<_ACEOF
6477 cat confdefs.h >>conftest.$ac_ext
6478 cat >>conftest.$ac_ext <<_ACEOF
6479 /* end confdefs.h. */
6483 gl_cv_next_wchar_h='"'`(eval "$ac_cpp conftest.$ac_ext") 2>&5 |
6484 sed -n '\#/wchar.h#{
6485 s#.*"\(.*/wchar.h\)".*#\1#
6491 gl_cv_next_wchar_h='<'wchar.h'>'
6495 echo "$as_me:$LINENO: result: $gl_cv_next_wchar_h" >&5
6496 echo "${ECHO_T}$gl_cv_next_wchar_h" >&6
6498 NEXT_WCHAR_H=$gl_cv_next_wchar_h
6512 gl_source_base='tests'
6517 LIBGNU_LIBDEPS="$gl_libdeps"
6519 LIBGNU_LTLIBDEPS="$gl_ltlibdeps"
6523 # For Makefile dependencies.
6525 if test x"$STDINT_H" != x; then
6526 GNULIB_STDINT_H=gnulib/$STDINT_H
6532 cat >>confdefs.h <<_ACEOF
6533 #define PACKAGE "$PACKAGE"
6538 # GDB does not use automake, but gnulib does. This line lets us
6539 # generate its Makefile.in.
6540 am__api_version="1.9"
6541 # Find a good install program. We prefer a C program (faster),
6542 # so one script is as good as another. But avoid the broken or
6543 # incompatible versions:
6544 # SysV /etc/install, /usr/sbin/install
6545 # SunOS /usr/etc/install
6546 # IRIX /sbin/install
6548 # AmigaOS /C/install, which installs bootblocks on floppy discs
6549 # AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag
6550 # AFS /usr/afsws/bin/install, which mishandles nonexistent args
6551 # SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff"
6552 # OS/2's system install, which has a completely different semantic
6553 # ./install, which can be erroneously created by make from ./install.sh.
6554 echo "$as_me:$LINENO: checking for a BSD-compatible install" >&5
6555 echo $ECHO_N "checking for a BSD-compatible install... $ECHO_C" >&6
6556 if test -z "$INSTALL"; then
6557 if test "${ac_cv_path_install+set}" = set; then
6558 echo $ECHO_N "(cached) $ECHO_C" >&6
6560 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6564 test -z "$as_dir" && as_dir=.
6565 # Account for people who put trailing slashes in PATH elements.
6567 ./ | .// | /cC/* | \
6568 /etc/* | /usr/sbin/* | /usr/etc/* | /sbin/* | /usr/afsws/bin/* | \
6569 ?:\\/os2\\/install\\/* | ?:\\/OS2\\/INSTALL\\/* | \
6572 # OSF1 and SCO ODT 3.0 have their own names for install.
6573 # Don't use installbsd from OSF since it installs stuff as root
6575 for ac_prog in ginstall scoinst install; do
6576 for ac_exec_ext in '' $ac_executable_extensions; do
6577 if $as_executable_p "$as_dir/$ac_prog$ac_exec_ext"; then
6578 if test $ac_prog = install &&
6579 grep dspmsg "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
6580 # AIX install. It has an incompatible calling convention.
6582 elif test $ac_prog = install &&
6583 grep pwplus "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
6584 # program-specific install script used by HP pwplus--don't use.
6587 ac_cv_path_install="$as_dir/$ac_prog$ac_exec_ext -c"
6599 if test "${ac_cv_path_install+set}" = set; then
6600 INSTALL=$ac_cv_path_install
6602 # As a last resort, use the slow shell script. We don't cache a
6603 # path for INSTALL within a source directory, because that will
6604 # break other packages using the cache if that directory is
6605 # removed, or if the path is relative.
6606 INSTALL=$ac_install_sh
6609 echo "$as_me:$LINENO: result: $INSTALL" >&5
6610 echo "${ECHO_T}$INSTALL" >&6
6612 # Use test -z because SunOS4 sh mishandles braces in ${var-val}.
6613 # It thinks the first close brace ends the variable substitution.
6614 test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}'
6616 test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL}'
6618 test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644'
6620 echo "$as_me:$LINENO: checking whether build environment is sane" >&5
6621 echo $ECHO_N "checking whether build environment is sane... $ECHO_C" >&6
6624 echo timestamp > conftest.file
6625 # Do `set' in a subshell so we don't clobber the current shell's
6626 # arguments. Must try -L first in case configure is actually a
6627 # symlink; some systems play weird games with the mod time of symlinks
6628 # (eg FreeBSD returns the mod time of the symlink's containing
6631 set X `ls -Lt $srcdir/configure conftest.file 2> /dev/null`
6632 if test "$*" = "X"; then
6634 set X `ls -t $srcdir/configure conftest.file`
6637 if test "$*" != "X $srcdir/configure conftest.file" \
6638 && test "$*" != "X conftest.file $srcdir/configure"; then
6640 # If neither matched, then we have a broken ls. This can happen
6641 # if, for instance, CONFIG_SHELL is bash and it inherits a
6642 # broken ls alias from the environment. This has actually
6643 # happened. Such a system could not be considered "sane".
6644 { { echo "$as_me:$LINENO: error: ls -t appears to fail. Make sure there is not a broken
6645 alias in your environment" >&5
6646 echo "$as_me: error: ls -t appears to fail. Make sure there is not a broken
6647 alias in your environment" >&2;}
6648 { (exit 1); exit 1; }; }
6651 test "$2" = conftest.file
6657 { { echo "$as_me:$LINENO: error: newly created file is older than distributed files!
6658 Check your system clock" >&5
6659 echo "$as_me: error: newly created file is older than distributed files!
6660 Check your system clock" >&2;}
6661 { (exit 1); exit 1; }; }
6663 echo "$as_me:$LINENO: result: yes" >&5
6664 echo "${ECHO_T}yes" >&6
6665 test "$program_prefix" != NONE &&
6666 program_transform_name="s,^,$program_prefix,;$program_transform_name"
6667 # Use a double $ so make ignores it.
6668 test "$program_suffix" != NONE &&
6669 program_transform_name="s,\$,$program_suffix,;$program_transform_name"
6670 # Double any \ or $. echo might interpret backslashes.
6671 # By default was `s,x,x', remove it if useless.
6672 cat <<\_ACEOF >conftest.sed
6673 s/[\\$]/&&/g;s/;s,x,x,$//
6675 program_transform_name=`echo $program_transform_name | sed -f conftest.sed`
6678 # expand $ac_aux_dir to an absolute path
6679 am_aux_dir=`cd $ac_aux_dir && pwd`
6681 test x"${MISSING+set}" = xset || MISSING="\${SHELL} $am_aux_dir/missing"
6682 # Use eval to expand $SHELL
6683 if eval "$MISSING --run true"; then
6684 am_missing_run="$MISSING --run "
6687 { echo "$as_me:$LINENO: WARNING: \`missing' script is too old or missing" >&5
6688 echo "$as_me: WARNING: \`missing' script is too old or missing" >&2;}
6691 if mkdir -p --version . >/dev/null 2>&1 && test ! -d ./--version; then
6692 # We used to keeping the `.' as first argument, in order to
6693 # allow $(mkdir_p) to be used without argument. As in
6694 # $(mkdir_p) $(somedir)
6695 # where $(somedir) is conditionally defined. However this is wrong
6697 # 1. if the package is installed by a user who cannot write `.'
6698 # make install will fail,
6699 # 2. the above comment should most certainly read
6700 # $(mkdir_p) $(DESTDIR)$(somedir)
6701 # so it does not work when $(somedir) is undefined and
6702 # $(DESTDIR) is not.
6703 # To support the latter case, we have to write
6704 # test -z "$(somedir)" || $(mkdir_p) $(DESTDIR)$(somedir),
6705 # so the `.' trick is pointless.
6706 mkdir_p='mkdir -p --'
6708 # On NextStep and OpenStep, the `mkdir' command does not
6709 # recognize any option. It will interpret all options as
6710 # directories to create, and then abort because `.' already
6712 for d in ./-p ./--version;
6714 test -d $d && rmdir $d
6716 # $(mkinstalldirs) is defined by Automake if mkinstalldirs exists.
6717 if test -f "$ac_aux_dir/mkinstalldirs"; then
6718 mkdir_p='$(mkinstalldirs)'
6720 mkdir_p='$(install_sh) -d'
6724 for ac_prog in gawk mawk nawk awk
6726 # Extract the first word of "$ac_prog", so it can be a program name with args.
6727 set dummy $ac_prog; ac_word=$2
6728 echo "$as_me:$LINENO: checking for $ac_word" >&5
6729 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
6730 if test "${ac_cv_prog_AWK+set}" = set; then
6731 echo $ECHO_N "(cached) $ECHO_C" >&6
6733 if test -n "$AWK"; then
6734 ac_cv_prog_AWK="$AWK" # Let the user override the test.
6736 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6740 test -z "$as_dir" && as_dir=.
6741 for ac_exec_ext in '' $ac_executable_extensions; do
6742 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
6743 ac_cv_prog_AWK="$ac_prog"
6744 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6753 if test -n "$AWK"; then
6754 echo "$as_me:$LINENO: result: $AWK" >&5
6755 echo "${ECHO_T}$AWK" >&6
6757 echo "$as_me:$LINENO: result: no" >&5
6758 echo "${ECHO_T}no" >&6
6761 test -n "$AWK" && break
6764 ac_config_commands="$ac_config_commands depfiles"
6767 am_make=${MAKE-make}
6768 cat > confinc << 'END'
6773 # If we don't find an include directive, just comment out the code.
6774 echo "$as_me:$LINENO: checking for style of include used by $am_make" >&5
6775 echo $ECHO_N "checking for style of include used by $am_make... $ECHO_C" >&6
6779 # First try GNU make style include.
6780 echo "include confinc" > confmf
6781 # We grep out `Entering directory' and `Leaving directory'
6782 # messages which can occur if `w' ends up in MAKEFLAGS.
6783 # In particular we don't look at `^make:' because GNU make might
6784 # be invoked under some other name (usually "gmake"), in which
6785 # case it prints its new name instead of `make'.
6786 if test "`$am_make -s -f confmf 2> /dev/null | grep -v 'ing directory'`" = "done"; then
6791 # Now try BSD make style include.
6792 if test "$am__include" = "#"; then
6793 echo '.include "confinc"' > confmf
6794 if test "`$am_make -s -f confmf 2> /dev/null`" = "done"; then
6795 am__include=.include
6802 echo "$as_me:$LINENO: result: $_am_result" >&5
6803 echo "${ECHO_T}$_am_result" >&6
6804 rm -f confinc confmf
6806 # Check whether --enable-dependency-tracking or --disable-dependency-tracking was given.
6807 if test "${enable_dependency_tracking+set}" = set; then
6808 enableval="$enable_dependency_tracking"
6811 if test "x$enable_dependency_tracking" != xno; then
6812 am_depcomp="$ac_aux_dir/depcomp"
6817 if test "x$enable_dependency_tracking" != xno; then
6827 # test to see if srcdir already configured
6828 if test "`cd $srcdir && pwd`" != "`pwd`" &&
6829 test -f $srcdir/config.status; then
6830 { { echo "$as_me:$LINENO: error: source directory already configured; run \"make distclean\" there first" >&5
6831 echo "$as_me: error: source directory already configured; run \"make distclean\" there first" >&2;}
6832 { (exit 1); exit 1; }; }
6835 # test whether we have cygpath
6836 if test -z "$CYGPATH_W"; then
6837 if (cygpath --version) >/dev/null 2>/dev/null; then
6838 CYGPATH_W='cygpath -w'
6845 # Define the identity of the package.
6847 VERSION=UNUSED-VERSION
6850 # Some tools Automake needs.
6852 ACLOCAL=${ACLOCAL-"${am_missing_run}aclocal-${am__api_version}"}
6855 AUTOCONF=${AUTOCONF-"${am_missing_run}autoconf"}
6858 AUTOMAKE=${AUTOMAKE-"${am_missing_run}automake-${am__api_version}"}
6861 AUTOHEADER=${AUTOHEADER-"${am_missing_run}autoheader"}
6864 MAKEINFO=${MAKEINFO-"${am_missing_run}makeinfo"}
6866 install_sh=${install_sh-"$am_aux_dir/install-sh"}
6868 # Installed binaries are usually stripped using `strip' when the user
6869 # run `make install-strip'. However `strip' might not be the right
6870 # tool to use in cross-compilation environments, therefore Automake
6871 # will honor the `STRIP' environment variable to overrule this program.
6872 if test "$cross_compiling" != no; then
6873 if test -n "$ac_tool_prefix"; then
6874 # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args.
6875 set dummy ${ac_tool_prefix}strip; ac_word=$2
6876 echo "$as_me:$LINENO: checking for $ac_word" >&5
6877 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
6878 if test "${ac_cv_prog_STRIP+set}" = set; then
6879 echo $ECHO_N "(cached) $ECHO_C" >&6
6881 if test -n "$STRIP"; then
6882 ac_cv_prog_STRIP="$STRIP" # Let the user override the test.
6884 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6888 test -z "$as_dir" && as_dir=.
6889 for ac_exec_ext in '' $ac_executable_extensions; do
6890 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
6891 ac_cv_prog_STRIP="${ac_tool_prefix}strip"
6892 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6900 STRIP=$ac_cv_prog_STRIP
6901 if test -n "$STRIP"; then
6902 echo "$as_me:$LINENO: result: $STRIP" >&5
6903 echo "${ECHO_T}$STRIP" >&6
6905 echo "$as_me:$LINENO: result: no" >&5
6906 echo "${ECHO_T}no" >&6
6910 if test -z "$ac_cv_prog_STRIP"; then
6912 # Extract the first word of "strip", so it can be a program name with args.
6913 set dummy strip; ac_word=$2
6914 echo "$as_me:$LINENO: checking for $ac_word" >&5
6915 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
6916 if test "${ac_cv_prog_ac_ct_STRIP+set}" = set; then
6917 echo $ECHO_N "(cached) $ECHO_C" >&6
6919 if test -n "$ac_ct_STRIP"; then
6920 ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test.
6922 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6926 test -z "$as_dir" && as_dir=.
6927 for ac_exec_ext in '' $ac_executable_extensions; do
6928 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
6929 ac_cv_prog_ac_ct_STRIP="strip"
6930 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6936 test -z "$ac_cv_prog_ac_ct_STRIP" && ac_cv_prog_ac_ct_STRIP=":"
6939 ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP
6940 if test -n "$ac_ct_STRIP"; then
6941 echo "$as_me:$LINENO: result: $ac_ct_STRIP" >&5
6942 echo "${ECHO_T}$ac_ct_STRIP" >&6
6944 echo "$as_me:$LINENO: result: no" >&5
6945 echo "${ECHO_T}no" >&6
6950 STRIP="$ac_cv_prog_STRIP"
6954 INSTALL_STRIP_PROGRAM="\${SHELL} \$(install_sh) -c -s"
6956 # We need awk for the "check" target. The system "awk" is bad on
6958 # Always define AMTAR for backward compatibility.
6960 AMTAR=${AMTAR-"${am_missing_run}tar"}
6962 am__tar='${AMTAR} chof - "$$tardir"'; am__untar='${AMTAR} xf -'
6967 depcc="$CC" am_compiler_list=
6969 echo "$as_me:$LINENO: checking dependency style of $depcc" >&5
6970 echo $ECHO_N "checking dependency style of $depcc... $ECHO_C" >&6
6971 if test "${am_cv_CC_dependencies_compiler_type+set}" = set; then
6972 echo $ECHO_N "(cached) $ECHO_C" >&6
6974 if test -z "$AMDEP_TRUE" && test -f "$am_depcomp"; then
6975 # We make a subdir and do the tests there. Otherwise we can end up
6976 # making bogus files that we don't know about and never remove. For
6977 # instance it was reported that on HP-UX the gcc test will end up
6978 # making a dummy file named `D' -- because `-MD' means `put the output
6981 # Copy depcomp to subdir because otherwise we won't find it if we're
6982 # using a relative directory.
6983 cp "$am_depcomp" conftest.dir
6985 # We will build objects and dependencies in a subdirectory because
6986 # it helps to detect inapplicable dependency modes. For instance
6987 # both Tru64's cc and ICC support -MD to output dependencies as a
6988 # side effect of compilation, but ICC will put the dependencies in
6989 # the current directory while Tru64 will put them in the object
6993 am_cv_CC_dependencies_compiler_type=none
6994 if test "$am_compiler_list" = ""; then
6995 am_compiler_list=`sed -n 's/^#*\([a-zA-Z0-9]*\))$/\1/p' < ./depcomp`
6997 for depmode in $am_compiler_list; do
6998 # Setup a source with many dependencies, because some compilers
6999 # like to wrap large dependency lists on column 80 (with \), and
7000 # we should not choose a depcomp mode which is confused by this.
7002 # We need to recreate these files for each test, as the compiler may
7003 # overwrite some of them when testing with obscure command lines.
7004 # This happens at least with the AIX C compiler.
7006 for i in 1 2 3 4 5 6; do
7007 echo '#include "conftst'$i'.h"' >> sub/conftest.c
7008 # Using `: > sub/conftst$i.h' creates only sub/conftst1.h with
7009 # Solaris 8's {/usr,}/bin/sh.
7010 touch sub/conftst$i.h
7012 echo "${am__include} ${am__quote}sub/conftest.Po${am__quote}" > confmf
7016 # after this tag, mechanisms are not by side-effect, so they'll
7017 # only be used when explicitly requested
7018 if test "x$enable_dependency_tracking" = xyes; then
7026 # We check with `-c' and `-o' for the sake of the "dashmstdout"
7027 # mode. It turns out that the SunPro C++ compiler does not properly
7028 # handle `-M -o', and we need to detect this.
7029 if depmode=$depmode \
7030 source=sub/conftest.c object=sub/conftest.${OBJEXT-o} \
7031 depfile=sub/conftest.Po tmpdepfile=sub/conftest.TPo \
7032 $SHELL ./depcomp $depcc -c -o sub/conftest.${OBJEXT-o} sub/conftest.c \
7033 >/dev/null 2>conftest.err &&
7034 grep sub/conftst6.h sub/conftest.Po > /dev/null 2>&1 &&
7035 grep sub/conftest.${OBJEXT-o} sub/conftest.Po > /dev/null 2>&1 &&
7036 ${MAKE-make} -s -f confmf > /dev/null 2>&1; then
7037 # icc doesn't choke on unknown options, it will just issue warnings
7038 # or remarks (even with -Werror). So we grep stderr for any message
7039 # that says an option was ignored or not supported.
7040 # When given -MP, icc 7.0 and 7.1 complain thusly:
7041 # icc: Command line warning: ignoring option '-M'; no argument required
7042 # The diagnosis changed in icc 8.0:
7043 # icc: Command line remark: option '-MP' not supported
7044 if (grep 'ignoring option' conftest.err ||
7045 grep 'not supported' conftest.err) >/dev/null 2>&1; then :; else
7046 am_cv_CC_dependencies_compiler_type=$depmode
7055 am_cv_CC_dependencies_compiler_type=none
7059 echo "$as_me:$LINENO: result: $am_cv_CC_dependencies_compiler_type" >&5
7060 echo "${ECHO_T}$am_cv_CC_dependencies_compiler_type" >&6
7061 CCDEPMODE=depmode=$am_cv_CC_dependencies_compiler_type
7066 test "x$enable_dependency_tracking" != xno \
7067 && test "$am_cv_CC_dependencies_compiler_type" = gcc3; then
7069 am__fastdepCC_FALSE='#'
7071 am__fastdepCC_TRUE='#'
7072 am__fastdepCC_FALSE=
7078 debugdir=${libdir}/debug
7081 # Check whether --with-separate-debug-dir or --without-separate-debug-dir was given.
7082 if test "${with_separate_debug_dir+set}" = set; then
7083 withval="$with_separate_debug_dir"
7084 debugdir="${withval}"
7088 test "x$prefix" = xNONE && prefix="$ac_default_prefix"
7089 test "x$exec_prefix" = xNONE && exec_prefix='${prefix}'
7090 ac_define_dir=`eval echo $debugdir`
7091 ac_define_dir=`eval echo $ac_define_dir`
7093 cat >>confdefs.h <<_ACEOF
7094 #define DEBUGDIR "$ac_define_dir"
7098 #AC_DEFINE_UNQUOTED(DEBUGDIR, "$debugdir"),
7100 if test "x$exec_prefix" = xNONE || test "x$exec_prefix" = 'x${prefix}'; then
7101 if test "x$prefix" = xNONE; then
7102 test_prefix=/usr/local
7107 test_prefix=$exec_prefix
7110 "${test_prefix}"|"${test_prefix}/"*|\
7111 '${exec_prefix}'|'${exec_prefix}/'*)
7113 cat >>confdefs.h <<\_ACEOF
7114 #define DEBUGDIR_RELOCATABLE 1
7122 subdirs="$subdirs doc testsuite"
7125 # Check whether to support alternative target configurations
7126 # Check whether --enable-targets or --disable-targets was given.
7127 if test "${enable_targets+set}" = set; then
7128 enableval="$enable_targets"
7129 case "${enableval}" in
7130 yes | "") { { echo "$as_me:$LINENO: error: enable-targets option must specify target names or 'all'" >&5
7131 echo "$as_me: error: enable-targets option must specify target names or 'all'" >&2;}
7132 { (exit 1); exit 1; }; }
7134 no) enable_targets= ;;
7135 *) enable_targets=$enableval ;;
7139 # Check whether to enable 64-bit support on 32-bit hosts
7140 # Check whether --enable-64-bit-bfd or --disable-64-bit-bfd was given.
7141 if test "${enable_64_bit_bfd+set}" = set; then
7142 enableval="$enable_64_bit_bfd"
7143 case "${enableval}" in
7146 *) { { echo "$as_me:$LINENO: error: bad value ${enableval} for 64-bit-bfd option" >&5
7147 echo "$as_me: error: bad value ${enableval} for 64-bit-bfd option" >&2;}
7148 { (exit 1); exit 1; }; } ;;
7153 # Provide defaults for some variables set by the per-host and per-target
7155 gdb_host_obs=posix-hdep.o
7157 if test "${target}" = "${host}"; then
7163 . $srcdir/configure.host
7165 # Accumulate some settings from configure.tgt over all enabled targets
7170 for targ_alias in `echo $target_alias $enable_targets | sed 's/,/ /g'`
7172 if test "$targ_alias" = "all"; then
7175 # Canonicalize the secondary target names.
7176 result=`$ac_config_sub $targ_alias 2>/dev/null`
7177 if test -n "$result"; then
7183 . ${srcdir}/configure.tgt
7185 # Target-specific object files
7186 for i in ${gdb_target_obs}; do
7187 case " $TARGET_OBS " in
7190 TARGET_OBS="$TARGET_OBS ${i}"
7195 # Check whether this target needs 64-bit CORE_ADDR
7196 if test x${want64} = xfalse; then
7197 . ${srcdir}/../bfd/config.bfd
7202 if test x${all_targets} = xtrue; then
7204 # We want all 64-bit targets if we either:
7205 # - run on a 64-bit host or
7206 # - already require 64-bit support for some other target or
7207 # - the --enable-64-bit-bfd option was supplied
7208 # Otherwise we only support all 32-bit targets.
7210 # NOTE: This test must be in sync with the corresponding
7213 if test x${want64} = xfalse; then
7214 echo "$as_me:$LINENO: checking for long" >&5
7215 echo $ECHO_N "checking for long... $ECHO_C" >&6
7216 if test "${ac_cv_type_long+set}" = set; then
7217 echo $ECHO_N "(cached) $ECHO_C" >&6
7219 cat >conftest.$ac_ext <<_ACEOF
7222 cat confdefs.h >>conftest.$ac_ext
7223 cat >>conftest.$ac_ext <<_ACEOF
7224 /* end confdefs.h. */
7225 $ac_includes_default
7237 rm -f conftest.$ac_objext
7238 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
7239 (eval $ac_compile) 2>conftest.er1
7241 grep -v '^ *+' conftest.er1 >conftest.err
7243 cat conftest.err >&5
7244 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7245 (exit $ac_status); } &&
7246 { ac_try='test -z "$ac_c_werror_flag"
7247 || test ! -s conftest.err'
7248 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7251 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7252 (exit $ac_status); }; } &&
7253 { ac_try='test -s conftest.$ac_objext'
7254 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7257 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7258 (exit $ac_status); }; }; then
7261 echo "$as_me: failed program was:" >&5
7262 sed 's/^/| /' conftest.$ac_ext >&5
7266 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
7268 echo "$as_me:$LINENO: result: $ac_cv_type_long" >&5
7269 echo "${ECHO_T}$ac_cv_type_long" >&6
7271 echo "$as_me:$LINENO: checking size of long" >&5
7272 echo $ECHO_N "checking size of long... $ECHO_C" >&6
7273 if test "${ac_cv_sizeof_long+set}" = set; then
7274 echo $ECHO_N "(cached) $ECHO_C" >&6
7276 if test "$ac_cv_type_long" = yes; then
7277 # The cast to unsigned long works around a bug in the HP C Compiler
7278 # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
7279 # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
7280 # This bug is HP SR number 8606223364.
7281 if test "$cross_compiling" = yes; then
7282 # Depending upon the size, compute the lo and hi bounds.
7283 cat >conftest.$ac_ext <<_ACEOF
7286 cat confdefs.h >>conftest.$ac_ext
7287 cat >>conftest.$ac_ext <<_ACEOF
7288 /* end confdefs.h. */
7289 $ac_includes_default
7293 static int test_array [1 - 2 * !(((long) (sizeof (long))) >= 0)];
7300 rm -f conftest.$ac_objext
7301 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
7302 (eval $ac_compile) 2>conftest.er1
7304 grep -v '^ *+' conftest.er1 >conftest.err
7306 cat conftest.err >&5
7307 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7308 (exit $ac_status); } &&
7309 { ac_try='test -z "$ac_c_werror_flag"
7310 || test ! -s conftest.err'
7311 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7314 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7315 (exit $ac_status); }; } &&
7316 { ac_try='test -s conftest.$ac_objext'
7317 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7320 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7321 (exit $ac_status); }; }; then
7324 cat >conftest.$ac_ext <<_ACEOF
7327 cat confdefs.h >>conftest.$ac_ext
7328 cat >>conftest.$ac_ext <<_ACEOF
7329 /* end confdefs.h. */
7330 $ac_includes_default
7334 static int test_array [1 - 2 * !(((long) (sizeof (long))) <= $ac_mid)];
7341 rm -f conftest.$ac_objext
7342 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
7343 (eval $ac_compile) 2>conftest.er1
7345 grep -v '^ *+' conftest.er1 >conftest.err
7347 cat conftest.err >&5
7348 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7349 (exit $ac_status); } &&
7350 { ac_try='test -z "$ac_c_werror_flag"
7351 || test ! -s conftest.err'
7352 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7355 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7356 (exit $ac_status); }; } &&
7357 { ac_try='test -s conftest.$ac_objext'
7358 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7361 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7362 (exit $ac_status); }; }; then
7363 ac_hi=$ac_mid; break
7365 echo "$as_me: failed program was:" >&5
7366 sed 's/^/| /' conftest.$ac_ext >&5
7368 ac_lo=`expr $ac_mid + 1`
7369 if test $ac_lo -le $ac_mid; then
7373 ac_mid=`expr 2 '*' $ac_mid + 1`
7375 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
7378 echo "$as_me: failed program was:" >&5
7379 sed 's/^/| /' conftest.$ac_ext >&5
7381 cat >conftest.$ac_ext <<_ACEOF
7384 cat confdefs.h >>conftest.$ac_ext
7385 cat >>conftest.$ac_ext <<_ACEOF
7386 /* end confdefs.h. */
7387 $ac_includes_default
7391 static int test_array [1 - 2 * !(((long) (sizeof (long))) < 0)];
7398 rm -f conftest.$ac_objext
7399 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
7400 (eval $ac_compile) 2>conftest.er1
7402 grep -v '^ *+' conftest.er1 >conftest.err
7404 cat conftest.err >&5
7405 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7406 (exit $ac_status); } &&
7407 { ac_try='test -z "$ac_c_werror_flag"
7408 || test ! -s conftest.err'
7409 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7412 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7413 (exit $ac_status); }; } &&
7414 { ac_try='test -s conftest.$ac_objext'
7415 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7418 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7419 (exit $ac_status); }; }; then
7422 cat >conftest.$ac_ext <<_ACEOF
7425 cat confdefs.h >>conftest.$ac_ext
7426 cat >>conftest.$ac_ext <<_ACEOF
7427 /* end confdefs.h. */
7428 $ac_includes_default
7432 static int test_array [1 - 2 * !(((long) (sizeof (long))) >= $ac_mid)];
7439 rm -f conftest.$ac_objext
7440 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
7441 (eval $ac_compile) 2>conftest.er1
7443 grep -v '^ *+' conftest.er1 >conftest.err
7445 cat conftest.err >&5
7446 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7447 (exit $ac_status); } &&
7448 { ac_try='test -z "$ac_c_werror_flag"
7449 || test ! -s conftest.err'
7450 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7453 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7454 (exit $ac_status); }; } &&
7455 { ac_try='test -s conftest.$ac_objext'
7456 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7459 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7460 (exit $ac_status); }; }; then
7461 ac_lo=$ac_mid; break
7463 echo "$as_me: failed program was:" >&5
7464 sed 's/^/| /' conftest.$ac_ext >&5
7466 ac_hi=`expr '(' $ac_mid ')' - 1`
7467 if test $ac_mid -le $ac_hi; then
7471 ac_mid=`expr 2 '*' $ac_mid`
7473 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
7476 echo "$as_me: failed program was:" >&5
7477 sed 's/^/| /' conftest.$ac_ext >&5
7481 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
7483 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
7484 # Binary search between lo and hi bounds.
7485 while test "x$ac_lo" != "x$ac_hi"; do
7486 ac_mid=`expr '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo`
7487 cat >conftest.$ac_ext <<_ACEOF
7490 cat confdefs.h >>conftest.$ac_ext
7491 cat >>conftest.$ac_ext <<_ACEOF
7492 /* end confdefs.h. */
7493 $ac_includes_default
7497 static int test_array [1 - 2 * !(((long) (sizeof (long))) <= $ac_mid)];
7504 rm -f conftest.$ac_objext
7505 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
7506 (eval $ac_compile) 2>conftest.er1
7508 grep -v '^ *+' conftest.er1 >conftest.err
7510 cat conftest.err >&5
7511 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7512 (exit $ac_status); } &&
7513 { ac_try='test -z "$ac_c_werror_flag"
7514 || test ! -s conftest.err'
7515 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7518 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7519 (exit $ac_status); }; } &&
7520 { ac_try='test -s conftest.$ac_objext'
7521 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7524 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7525 (exit $ac_status); }; }; then
7528 echo "$as_me: failed program was:" >&5
7529 sed 's/^/| /' conftest.$ac_ext >&5
7531 ac_lo=`expr '(' $ac_mid ')' + 1`
7533 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
7536 ?*) ac_cv_sizeof_long=$ac_lo;;
7537 '') { { echo "$as_me:$LINENO: error: in \`$ac_pwd':" >&5
7538 echo "$as_me: error: in \`$ac_pwd':" >&2;}
7539 { { echo "$as_me:$LINENO: error: cannot compute sizeof (long), 77
7540 See \`config.log' for more details." >&5
7541 echo "$as_me: error: cannot compute sizeof (long), 77
7542 See \`config.log' for more details." >&2;}
7543 { (exit 1); exit 1; }; }; } ;;
7546 if test "$cross_compiling" = yes; then
7547 { { echo "$as_me:$LINENO: error: in \`$ac_pwd':" >&5
7548 echo "$as_me: error: in \`$ac_pwd':" >&2;}
7549 { { echo "$as_me:$LINENO: error: cannot run test program while cross compiling
7550 See \`config.log' for more details." >&5
7551 echo "$as_me: error: cannot run test program while cross compiling
7552 See \`config.log' for more details." >&2;}
7553 { (exit 1); exit 1; }; }; }
7555 cat >conftest.$ac_ext <<_ACEOF
7558 cat confdefs.h >>conftest.$ac_ext
7559 cat >>conftest.$ac_ext <<_ACEOF
7560 /* end confdefs.h. */
7561 $ac_includes_default
7562 long longval () { return (long) (sizeof (long)); }
7563 unsigned long ulongval () { return (long) (sizeof (long)); }
7570 FILE *f = fopen ("conftest.val", "w");
7573 if (((long) (sizeof (long))) < 0)
7575 long i = longval ();
7576 if (i != ((long) (sizeof (long))))
7578 fprintf (f, "%ld\n", i);
7582 unsigned long i = ulongval ();
7583 if (i != ((long) (sizeof (long))))
7585 fprintf (f, "%lu\n", i);
7587 exit (ferror (f) || fclose (f) != 0);
7593 rm -f conftest$ac_exeext
7594 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
7595 (eval $ac_link) 2>&5
7597 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7598 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
7599 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7602 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7603 (exit $ac_status); }; }; then
7604 ac_cv_sizeof_long=`cat conftest.val`
7606 echo "$as_me: program exited with status $ac_status" >&5
7607 echo "$as_me: failed program was:" >&5
7608 sed 's/^/| /' conftest.$ac_ext >&5
7611 { { echo "$as_me:$LINENO: error: in \`$ac_pwd':" >&5
7612 echo "$as_me: error: in \`$ac_pwd':" >&2;}
7613 { { echo "$as_me:$LINENO: error: cannot compute sizeof (long), 77
7614 See \`config.log' for more details." >&5
7615 echo "$as_me: error: cannot compute sizeof (long), 77
7616 See \`config.log' for more details." >&2;}
7617 { (exit 1); exit 1; }; }; }
7619 rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
7627 echo "$as_me:$LINENO: result: $ac_cv_sizeof_long" >&5
7628 echo "${ECHO_T}$ac_cv_sizeof_long" >&6
7629 cat >>confdefs.h <<_ACEOF
7630 #define SIZEOF_LONG $ac_cv_sizeof_long
7634 if test "x${ac_cv_sizeof_long}" = "x8"; then
7638 if test x${want64} = xtrue; then
7639 TARGET_OBS='$(ALL_TARGET_OBS) $(ALL_64_TARGET_OBS)'
7641 TARGET_OBS='$(ALL_TARGET_OBS)'
7647 # For other settings, only the main target counts.
7651 targ=$target; . ${srcdir}/configure.tgt
7653 # Fetch the default architecture and default target vector from BFD.
7654 targ=$target; . $srcdir/../bfd/config.bfd
7656 # We only want the first architecture, so strip off the others if
7657 # there is more than one.
7658 targ_archs=`echo $targ_archs | sed 's/ .*//'`
7660 if test "x$targ_archs" != x; then
7662 cat >>confdefs.h <<_ACEOF
7663 #define DEFAULT_BFD_ARCH $targ_archs
7667 if test "x$targ_defvec" != x; then
7669 cat >>confdefs.h <<_ACEOF
7670 #define DEFAULT_BFD_VEC $targ_defvec
7675 # The CLI cannot be disabled yet, but may be in the future.
7678 # Check whether --enable-gdbcli or --disable-gdbcli was given.
7679 if test "${enable_gdbcli+set}" = set; then
7680 enableval="$enable_gdbcli"
7685 { { echo "$as_me:$LINENO: error: the command-line interface cannot be disabled yet" >&5
7686 echo "$as_me: error: the command-line interface cannot be disabled yet" >&2;}
7687 { (exit 1); exit 1; }; } ;;
7689 { { echo "$as_me:$LINENO: error: bad value $enableval for --enable-gdbcli" >&5
7690 echo "$as_me: error: bad value $enableval for --enable-gdbcli" >&2;}
7691 { (exit 1); exit 1; }; } ;;
7696 if test x"$enable_gdbcli" = xyes; then
7697 if test -d $srcdir/cli; then
7698 CONFIG_OBS="$CONFIG_OBS \$(SUBDIR_CLI_OBS)"
7699 CONFIG_DEPS="$CONFIG_DEPS \$(SUBDIR_CLI_DEPS)"
7700 CONFIG_SRCS="$CONFIG_SRCS \$(SUBDIR_CLI_SRCS)"
7701 ENABLE_CFLAGS="$ENABLE_CFLAGS \$(SUBDIR_CLI_CFLAGS)"
7706 # Check whether --enable-gdbmi or --disable-gdbmi was given.
7707 if test "${enable_gdbmi+set}" = set; then
7708 enableval="$enable_gdbmi"
7713 { { echo "$as_me:$LINENO: error: bad value $enableval for --enable-gdbmi" >&5
7714 echo "$as_me: error: bad value $enableval for --enable-gdbmi" >&2;}
7715 { (exit 1); exit 1; }; } ;;
7720 if test x"$enable_gdbmi" = xyes; then
7721 if test -d $srcdir/mi; then
7722 CONFIG_OBS="$CONFIG_OBS \$(SUBDIR_MI_OBS)"
7723 CONFIG_DEPS="$CONFIG_DEPS \$(SUBDIR_MI_DEPS)"
7724 CONFIG_SRCS="$CONFIG_SRCS \$(SUBDIR_MI_SRCS)"
7725 ENABLE_CFLAGS="$ENABLE_CFLAGS \$(SUBDIR_MI_CFLAGS)"
7730 # Check whether --enable-tui or --disable-tui was given.
7731 if test "${enable_tui+set}" = set; then
7732 enableval="$enable_tui"
7737 { { echo "$as_me:$LINENO: error: bad value $enableval for --enable-tui" >&5
7738 echo "$as_me: error: bad value $enableval for --enable-tui" >&2;}
7739 { (exit 1); exit 1; }; } ;;
7746 # Check whether --enable-gdbtk or --disable-gdbtk was given.
7747 if test "${enable_gdbtk+set}" = set; then
7748 enableval="$enable_gdbtk"
7753 { { echo "$as_me:$LINENO: error: bad value $enableval for --enable-gdbtk" >&5
7754 echo "$as_me: error: bad value $enableval for --enable-gdbtk" >&2;}
7755 { (exit 1); exit 1; }; } ;;
7758 if test -d $srcdir/gdbtk; then
7764 # We unconditionally disable gdbtk tests on selected platforms.
7767 { echo "$as_me:$LINENO: WARNING: gdbtk isn't supported on $host; disabling" >&5
7768 echo "$as_me: WARNING: gdbtk isn't supported on $host; disabling" >&2;}
7772 # Libunwind support.
7774 # Check whether --with-libunwind or --without-libunwind was given.
7775 if test "${with_libunwind+set}" = set; then
7776 withval="$with_libunwind"
7777 case "${withval}" in
7778 yes) enable_libunwind=yes ;;
7779 no) enable_libunwind=no ;;
7780 *) { { echo "$as_me:$LINENO: error: bad value ${withval} for GDB with-libunwind option" >&5
7781 echo "$as_me: error: bad value ${withval} for GDB with-libunwind option" >&2;}
7782 { (exit 1); exit 1; }; } ;;
7787 for ac_header in libunwind.h
7789 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
7790 if eval "test \"\${$as_ac_Header+set}\" = set"; then
7791 echo "$as_me:$LINENO: checking for $ac_header" >&5
7792 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
7793 if eval "test \"\${$as_ac_Header+set}\" = set"; then
7794 echo $ECHO_N "(cached) $ECHO_C" >&6
7796 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
7797 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
7799 # Is the header compilable?
7800 echo "$as_me:$LINENO: checking $ac_header usability" >&5
7801 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
7802 cat >conftest.$ac_ext <<_ACEOF
7805 cat confdefs.h >>conftest.$ac_ext
7806 cat >>conftest.$ac_ext <<_ACEOF
7807 /* end confdefs.h. */
7808 $ac_includes_default
7809 #include <$ac_header>
7811 rm -f conftest.$ac_objext
7812 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
7813 (eval $ac_compile) 2>conftest.er1
7815 grep -v '^ *+' conftest.er1 >conftest.err
7817 cat conftest.err >&5
7818 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7819 (exit $ac_status); } &&
7820 { ac_try='test -z "$ac_c_werror_flag"
7821 || test ! -s conftest.err'
7822 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7825 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7826 (exit $ac_status); }; } &&
7827 { ac_try='test -s conftest.$ac_objext'
7828 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7831 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7832 (exit $ac_status); }; }; then
7833 ac_header_compiler=yes
7835 echo "$as_me: failed program was:" >&5
7836 sed 's/^/| /' conftest.$ac_ext >&5
7838 ac_header_compiler=no
7840 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
7841 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
7842 echo "${ECHO_T}$ac_header_compiler" >&6
7844 # Is the header present?
7845 echo "$as_me:$LINENO: checking $ac_header presence" >&5
7846 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
7847 cat >conftest.$ac_ext <<_ACEOF
7850 cat confdefs.h >>conftest.$ac_ext
7851 cat >>conftest.$ac_ext <<_ACEOF
7852 /* end confdefs.h. */
7853 #include <$ac_header>
7855 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
7856 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
7858 grep -v '^ *+' conftest.er1 >conftest.err
7860 cat conftest.err >&5
7861 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7862 (exit $ac_status); } >/dev/null; then
7863 if test -s conftest.err; then
7864 ac_cpp_err=$ac_c_preproc_warn_flag
7865 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
7872 if test -z "$ac_cpp_err"; then
7873 ac_header_preproc=yes
7875 echo "$as_me: failed program was:" >&5
7876 sed 's/^/| /' conftest.$ac_ext >&5
7878 ac_header_preproc=no
7880 rm -f conftest.err conftest.$ac_ext
7881 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
7882 echo "${ECHO_T}$ac_header_preproc" >&6
7884 # So? What about this header?
7885 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
7887 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
7888 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
7889 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
7890 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
7891 ac_header_preproc=yes
7894 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
7895 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
7896 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
7897 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
7898 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
7899 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
7900 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
7901 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
7902 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
7903 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
7904 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
7905 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
7908 ## ------------------------------------------ ##
7909 ## Report this to the AC_PACKAGE_NAME lists. ##
7910 ## ------------------------------------------ ##
7913 sed "s/^/$as_me: WARNING: /" >&2
7916 echo "$as_me:$LINENO: checking for $ac_header" >&5
7917 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
7918 if eval "test \"\${$as_ac_Header+set}\" = set"; then
7919 echo $ECHO_N "(cached) $ECHO_C" >&6
7921 eval "$as_ac_Header=\$ac_header_preproc"
7923 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
7924 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
7927 if test `eval echo '${'$as_ac_Header'}'` = yes; then
7928 cat >>confdefs.h <<_ACEOF
7929 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
7937 for ac_header in libunwind-ia64.h
7939 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
7940 if eval "test \"\${$as_ac_Header+set}\" = set"; then
7941 echo "$as_me:$LINENO: checking for $ac_header" >&5
7942 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
7943 if eval "test \"\${$as_ac_Header+set}\" = set"; then
7944 echo $ECHO_N "(cached) $ECHO_C" >&6
7946 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
7947 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
7949 # Is the header compilable?
7950 echo "$as_me:$LINENO: checking $ac_header usability" >&5
7951 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
7952 cat >conftest.$ac_ext <<_ACEOF
7955 cat confdefs.h >>conftest.$ac_ext
7956 cat >>conftest.$ac_ext <<_ACEOF
7957 /* end confdefs.h. */
7958 $ac_includes_default
7959 #include <$ac_header>
7961 rm -f conftest.$ac_objext
7962 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
7963 (eval $ac_compile) 2>conftest.er1
7965 grep -v '^ *+' conftest.er1 >conftest.err
7967 cat conftest.err >&5
7968 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7969 (exit $ac_status); } &&
7970 { ac_try='test -z "$ac_c_werror_flag"
7971 || test ! -s conftest.err'
7972 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7975 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7976 (exit $ac_status); }; } &&
7977 { ac_try='test -s conftest.$ac_objext'
7978 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7981 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7982 (exit $ac_status); }; }; then
7983 ac_header_compiler=yes
7985 echo "$as_me: failed program was:" >&5
7986 sed 's/^/| /' conftest.$ac_ext >&5
7988 ac_header_compiler=no
7990 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
7991 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
7992 echo "${ECHO_T}$ac_header_compiler" >&6
7994 # Is the header present?
7995 echo "$as_me:$LINENO: checking $ac_header presence" >&5
7996 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
7997 cat >conftest.$ac_ext <<_ACEOF
8000 cat confdefs.h >>conftest.$ac_ext
8001 cat >>conftest.$ac_ext <<_ACEOF
8002 /* end confdefs.h. */
8003 #include <$ac_header>
8005 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
8006 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
8008 grep -v '^ *+' conftest.er1 >conftest.err
8010 cat conftest.err >&5
8011 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8012 (exit $ac_status); } >/dev/null; then
8013 if test -s conftest.err; then
8014 ac_cpp_err=$ac_c_preproc_warn_flag
8015 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
8022 if test -z "$ac_cpp_err"; then
8023 ac_header_preproc=yes
8025 echo "$as_me: failed program was:" >&5
8026 sed 's/^/| /' conftest.$ac_ext >&5
8028 ac_header_preproc=no
8030 rm -f conftest.err conftest.$ac_ext
8031 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
8032 echo "${ECHO_T}$ac_header_preproc" >&6
8034 # So? What about this header?
8035 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
8037 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
8038 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
8039 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
8040 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
8041 ac_header_preproc=yes
8044 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
8045 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
8046 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
8047 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
8048 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
8049 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
8050 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
8051 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
8052 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
8053 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
8054 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
8055 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
8058 ## ------------------------------------------ ##
8059 ## Report this to the AC_PACKAGE_NAME lists. ##
8060 ## ------------------------------------------ ##
8063 sed "s/^/$as_me: WARNING: /" >&2
8066 echo "$as_me:$LINENO: checking for $ac_header" >&5
8067 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
8068 if eval "test \"\${$as_ac_Header+set}\" = set"; then
8069 echo $ECHO_N "(cached) $ECHO_C" >&6
8071 eval "$as_ac_Header=\$ac_header_preproc"
8073 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
8074 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
8077 if test `eval echo '${'$as_ac_Header'}'` = yes; then
8078 cat >>confdefs.h <<_ACEOF
8079 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
8086 if test x"$ac_cv_header_libunwind_h" = xyes -a x"$ac_cv_header_libunwind_ia64_h" = xyes; then
8087 enable_libunwind=yes;
8092 if test x"$enable_libunwind" = xyes; then
8094 for ac_header in libunwind.h
8096 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
8097 if eval "test \"\${$as_ac_Header+set}\" = set"; then
8098 echo "$as_me:$LINENO: checking for $ac_header" >&5
8099 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
8100 if eval "test \"\${$as_ac_Header+set}\" = set"; then
8101 echo $ECHO_N "(cached) $ECHO_C" >&6
8103 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
8104 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
8106 # Is the header compilable?
8107 echo "$as_me:$LINENO: checking $ac_header usability" >&5
8108 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
8109 cat >conftest.$ac_ext <<_ACEOF
8112 cat confdefs.h >>conftest.$ac_ext
8113 cat >>conftest.$ac_ext <<_ACEOF
8114 /* end confdefs.h. */
8115 $ac_includes_default
8116 #include <$ac_header>
8118 rm -f conftest.$ac_objext
8119 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
8120 (eval $ac_compile) 2>conftest.er1
8122 grep -v '^ *+' conftest.er1 >conftest.err
8124 cat conftest.err >&5
8125 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8126 (exit $ac_status); } &&
8127 { ac_try='test -z "$ac_c_werror_flag"
8128 || test ! -s conftest.err'
8129 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8132 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8133 (exit $ac_status); }; } &&
8134 { ac_try='test -s conftest.$ac_objext'
8135 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8138 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8139 (exit $ac_status); }; }; then
8140 ac_header_compiler=yes
8142 echo "$as_me: failed program was:" >&5
8143 sed 's/^/| /' conftest.$ac_ext >&5
8145 ac_header_compiler=no
8147 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
8148 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
8149 echo "${ECHO_T}$ac_header_compiler" >&6
8151 # Is the header present?
8152 echo "$as_me:$LINENO: checking $ac_header presence" >&5
8153 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
8154 cat >conftest.$ac_ext <<_ACEOF
8157 cat confdefs.h >>conftest.$ac_ext
8158 cat >>conftest.$ac_ext <<_ACEOF
8159 /* end confdefs.h. */
8160 #include <$ac_header>
8162 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
8163 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
8165 grep -v '^ *+' conftest.er1 >conftest.err
8167 cat conftest.err >&5
8168 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8169 (exit $ac_status); } >/dev/null; then
8170 if test -s conftest.err; then
8171 ac_cpp_err=$ac_c_preproc_warn_flag
8172 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
8179 if test -z "$ac_cpp_err"; then
8180 ac_header_preproc=yes
8182 echo "$as_me: failed program was:" >&5
8183 sed 's/^/| /' conftest.$ac_ext >&5
8185 ac_header_preproc=no
8187 rm -f conftest.err conftest.$ac_ext
8188 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
8189 echo "${ECHO_T}$ac_header_preproc" >&6
8191 # So? What about this header?
8192 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
8194 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
8195 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
8196 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
8197 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
8198 ac_header_preproc=yes
8201 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
8202 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
8203 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
8204 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
8205 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
8206 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
8207 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
8208 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
8209 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
8210 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
8211 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
8212 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
8215 ## ------------------------------------------ ##
8216 ## Report this to the AC_PACKAGE_NAME lists. ##
8217 ## ------------------------------------------ ##
8220 sed "s/^/$as_me: WARNING: /" >&2
8223 echo "$as_me:$LINENO: checking for $ac_header" >&5
8224 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
8225 if eval "test \"\${$as_ac_Header+set}\" = set"; then
8226 echo $ECHO_N "(cached) $ECHO_C" >&6
8228 eval "$as_ac_Header=\$ac_header_preproc"
8230 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
8231 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
8234 if test `eval echo '${'$as_ac_Header'}'` = yes; then
8235 cat >>confdefs.h <<_ACEOF
8236 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
8244 for ac_header in libunwind-ia64.h
8246 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
8247 if eval "test \"\${$as_ac_Header+set}\" = set"; then
8248 echo "$as_me:$LINENO: checking for $ac_header" >&5
8249 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
8250 if eval "test \"\${$as_ac_Header+set}\" = set"; then
8251 echo $ECHO_N "(cached) $ECHO_C" >&6
8253 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
8254 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
8256 # Is the header compilable?
8257 echo "$as_me:$LINENO: checking $ac_header usability" >&5
8258 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
8259 cat >conftest.$ac_ext <<_ACEOF
8262 cat confdefs.h >>conftest.$ac_ext
8263 cat >>conftest.$ac_ext <<_ACEOF
8264 /* end confdefs.h. */
8265 $ac_includes_default
8266 #include <$ac_header>
8268 rm -f conftest.$ac_objext
8269 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
8270 (eval $ac_compile) 2>conftest.er1
8272 grep -v '^ *+' conftest.er1 >conftest.err
8274 cat conftest.err >&5
8275 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8276 (exit $ac_status); } &&
8277 { ac_try='test -z "$ac_c_werror_flag"
8278 || test ! -s conftest.err'
8279 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8282 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8283 (exit $ac_status); }; } &&
8284 { ac_try='test -s conftest.$ac_objext'
8285 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8288 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8289 (exit $ac_status); }; }; then
8290 ac_header_compiler=yes
8292 echo "$as_me: failed program was:" >&5
8293 sed 's/^/| /' conftest.$ac_ext >&5
8295 ac_header_compiler=no
8297 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
8298 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
8299 echo "${ECHO_T}$ac_header_compiler" >&6
8301 # Is the header present?
8302 echo "$as_me:$LINENO: checking $ac_header presence" >&5
8303 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
8304 cat >conftest.$ac_ext <<_ACEOF
8307 cat confdefs.h >>conftest.$ac_ext
8308 cat >>conftest.$ac_ext <<_ACEOF
8309 /* end confdefs.h. */
8310 #include <$ac_header>
8312 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
8313 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
8315 grep -v '^ *+' conftest.er1 >conftest.err
8317 cat conftest.err >&5
8318 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8319 (exit $ac_status); } >/dev/null; then
8320 if test -s conftest.err; then
8321 ac_cpp_err=$ac_c_preproc_warn_flag
8322 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
8329 if test -z "$ac_cpp_err"; then
8330 ac_header_preproc=yes
8332 echo "$as_me: failed program was:" >&5
8333 sed 's/^/| /' conftest.$ac_ext >&5
8335 ac_header_preproc=no
8337 rm -f conftest.err conftest.$ac_ext
8338 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
8339 echo "${ECHO_T}$ac_header_preproc" >&6
8341 # So? What about this header?
8342 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
8344 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
8345 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
8346 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
8347 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
8348 ac_header_preproc=yes
8351 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
8352 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
8353 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
8354 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
8355 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
8356 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
8357 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
8358 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
8359 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
8360 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
8361 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
8362 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
8365 ## ------------------------------------------ ##
8366 ## Report this to the AC_PACKAGE_NAME lists. ##
8367 ## ------------------------------------------ ##
8370 sed "s/^/$as_me: WARNING: /" >&2
8373 echo "$as_me:$LINENO: checking for $ac_header" >&5
8374 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
8375 if eval "test \"\${$as_ac_Header+set}\" = set"; then
8376 echo $ECHO_N "(cached) $ECHO_C" >&6
8378 eval "$as_ac_Header=\$ac_header_preproc"
8380 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
8381 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
8384 if test `eval echo '${'$as_ac_Header'}'` = yes; then
8385 cat >>confdefs.h <<_ACEOF
8386 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
8394 cat >>confdefs.h <<\_ACEOF
8395 #define HAVE_LIBUNWIND 1
8398 CONFIG_OBS="$CONFIG_OBS libunwind-frame.o"
8399 CONFIG_DEPS="$CONFIG_DEPS libunwind-frame.o"
8400 CONFIG_SRCS="$CONFIG_SRCS libunwind-frame.c"
8403 # Profiling support.
8404 # Check whether --enable-profiling or --disable-profiling was given.
8405 if test "${enable_profiling+set}" = set; then
8406 enableval="$enable_profiling"
8411 { { echo "$as_me:$LINENO: error: bad value $enableval for --enable-profile" >&5
8412 echo "$as_me: error: bad value $enableval for --enable-profile" >&2;}
8413 { (exit 1); exit 1; }; } ;;
8421 for ac_func in monstartup _mcleanup
8423 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
8424 echo "$as_me:$LINENO: checking for $ac_func" >&5
8425 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
8426 if eval "test \"\${$as_ac_var+set}\" = set"; then
8427 echo $ECHO_N "(cached) $ECHO_C" >&6
8429 cat >conftest.$ac_ext <<_ACEOF
8432 cat confdefs.h >>conftest.$ac_ext
8433 cat >>conftest.$ac_ext <<_ACEOF
8434 /* end confdefs.h. */
8435 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
8436 For example, HP-UX 11i <limits.h> declares gettimeofday. */
8437 #define $ac_func innocuous_$ac_func
8439 /* System header to define __stub macros and hopefully few prototypes,
8440 which can conflict with char $ac_func (); below.
8441 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
8442 <limits.h> exists even on freestanding compilers. */
8445 # include <limits.h>
8447 # include <assert.h>
8452 /* Override any gcc2 internal prototype to avoid an error. */
8457 /* We use char because int might match the return type of a gcc2
8458 builtin and then its argument prototype would still apply. */
8460 /* The GNU C library defines this for functions which it implements
8461 to always fail with ENOSYS. Some functions are actually named
8462 something starting with __ and the normal name is an alias. */
8463 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
8466 char (*f) () = $ac_func;
8475 return f != $ac_func;
8480 rm -f conftest.$ac_objext conftest$ac_exeext
8481 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
8482 (eval $ac_link) 2>conftest.er1
8484 grep -v '^ *+' conftest.er1 >conftest.err
8486 cat conftest.err >&5
8487 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8488 (exit $ac_status); } &&
8489 { ac_try='test -z "$ac_c_werror_flag"
8490 || test ! -s conftest.err'
8491 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8494 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8495 (exit $ac_status); }; } &&
8496 { ac_try='test -s conftest$ac_exeext'
8497 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8500 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8501 (exit $ac_status); }; }; then
8502 eval "$as_ac_var=yes"
8504 echo "$as_me: failed program was:" >&5
8505 sed 's/^/| /' conftest.$ac_ext >&5
8507 eval "$as_ac_var=no"
8509 rm -f conftest.err conftest.$ac_objext \
8510 conftest$ac_exeext conftest.$ac_ext
8512 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
8513 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
8514 if test `eval echo '${'$as_ac_var'}'` = yes; then
8515 cat >>confdefs.h <<_ACEOF
8516 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
8522 echo "$as_me:$LINENO: checking for _etext" >&5
8523 echo $ECHO_N "checking for _etext... $ECHO_C" >&6
8524 if test "${ac_cv_var__etext+set}" = set; then
8525 echo $ECHO_N "(cached) $ECHO_C" >&6
8527 cat >conftest.$ac_ext <<_ACEOF
8530 cat confdefs.h >>conftest.$ac_ext
8531 cat >>conftest.$ac_ext <<_ACEOF
8532 /* end confdefs.h. */
8544 rm -f conftest.$ac_objext conftest$ac_exeext
8545 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
8546 (eval $ac_link) 2>conftest.er1
8548 grep -v '^ *+' conftest.er1 >conftest.err
8550 cat conftest.err >&5
8551 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8552 (exit $ac_status); } &&
8553 { ac_try='test -z "$ac_c_werror_flag"
8554 || test ! -s conftest.err'
8555 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8558 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8559 (exit $ac_status); }; } &&
8560 { ac_try='test -s conftest$ac_exeext'
8561 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8564 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8565 (exit $ac_status); }; }; then
8566 ac_cv_var__etext=yes
8568 echo "$as_me: failed program was:" >&5
8569 sed 's/^/| /' conftest.$ac_ext >&5
8573 rm -f conftest.err conftest.$ac_objext \
8574 conftest$ac_exeext conftest.$ac_ext
8576 echo "$as_me:$LINENO: result: $ac_cv_var__etext" >&5
8577 echo "${ECHO_T}$ac_cv_var__etext" >&6
8578 if test $ac_cv_var__etext = yes; then
8580 cat >>confdefs.h <<\_ACEOF
8581 #define HAVE__ETEXT 1
8585 echo "$as_me:$LINENO: checking for etext" >&5
8586 echo $ECHO_N "checking for etext... $ECHO_C" >&6
8587 if test "${ac_cv_var_etext+set}" = set; then
8588 echo $ECHO_N "(cached) $ECHO_C" >&6
8590 cat >conftest.$ac_ext <<_ACEOF
8593 cat confdefs.h >>conftest.$ac_ext
8594 cat >>conftest.$ac_ext <<_ACEOF
8595 /* end confdefs.h. */
8607 rm -f conftest.$ac_objext conftest$ac_exeext
8608 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
8609 (eval $ac_link) 2>conftest.er1
8611 grep -v '^ *+' conftest.er1 >conftest.err
8613 cat conftest.err >&5
8614 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8615 (exit $ac_status); } &&
8616 { ac_try='test -z "$ac_c_werror_flag"
8617 || test ! -s conftest.err'
8618 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8621 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8622 (exit $ac_status); }; } &&
8623 { ac_try='test -s conftest$ac_exeext'
8624 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8627 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8628 (exit $ac_status); }; }; then
8631 echo "$as_me: failed program was:" >&5
8632 sed 's/^/| /' conftest.$ac_ext >&5
8636 rm -f conftest.err conftest.$ac_objext \
8637 conftest$ac_exeext conftest.$ac_ext
8639 echo "$as_me:$LINENO: result: $ac_cv_var_etext" >&5
8640 echo "${ECHO_T}$ac_cv_var_etext" >&6
8641 if test $ac_cv_var_etext = yes; then
8643 cat >>confdefs.h <<\_ACEOF
8644 #define HAVE_ETEXT 1
8648 if test "$enable_profiling" = yes ; then
8649 if test $ac_cv_func_monstartup = no || test $ac_cv_func__mcleanup = no; then
8650 { { echo "$as_me:$LINENO: error: --enable-profiling requires monstartup and _mcleanup" >&5
8651 echo "$as_me: error: --enable-profiling requires monstartup and _mcleanup" >&2;}
8652 { (exit 1); exit 1; }; }
8655 OLD_CFLAGS="$CFLAGS"
8656 CFLAGS="$CFLAGS $PROFILE_CFLAGS"
8658 echo "$as_me:$LINENO: checking whether $CC supports -pg" >&5
8659 echo $ECHO_N "checking whether $CC supports -pg... $ECHO_C" >&6
8660 if test "${ac_cv_cc_supports_pg+set}" = set; then
8661 echo $ECHO_N "(cached) $ECHO_C" >&6
8663 cat >conftest.$ac_ext <<_ACEOF
8666 cat confdefs.h >>conftest.$ac_ext
8667 cat >>conftest.$ac_ext <<_ACEOF
8668 /* end confdefs.h. */
8678 rm -f conftest.$ac_objext
8679 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
8680 (eval $ac_compile) 2>conftest.er1
8682 grep -v '^ *+' conftest.er1 >conftest.err
8684 cat conftest.err >&5
8685 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8686 (exit $ac_status); } &&
8687 { ac_try='test -z "$ac_c_werror_flag"
8688 || test ! -s conftest.err'
8689 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8692 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8693 (exit $ac_status); }; } &&
8694 { ac_try='test -s conftest.$ac_objext'
8695 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8698 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8699 (exit $ac_status); }; }; then
8700 ac_cv_cc_supports_pg=yes
8702 echo "$as_me: failed program was:" >&5
8703 sed 's/^/| /' conftest.$ac_ext >&5
8705 ac_cv_cc_supports_pg=no
8707 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
8709 echo "$as_me:$LINENO: result: $ac_cv_cc_supports_pg" >&5
8710 echo "${ECHO_T}$ac_cv_cc_supports_pg" >&6
8712 if test $ac_cv_cc_supports_pg = no; then
8713 { { echo "$as_me:$LINENO: error: --enable-profiling requires a compiler which supports -pg" >&5
8714 echo "$as_me: error: --enable-profiling requires a compiler which supports -pg" >&2;}
8715 { (exit 1); exit 1; }; }
8718 CFLAGS="$OLD_CFLAGS"
8723 # Check whether --with-pkgversion or --without-pkgversion was given.
8724 if test "${with_pkgversion+set}" = set; then
8725 withval="$with_pkgversion"
8727 yes) { { echo "$as_me:$LINENO: error: package version not specified" >&5
8728 echo "$as_me: error: package version not specified" >&2;}
8729 { (exit 1); exit 1; }; } ;;
8731 *) PKGVERSION="($withval) " ;;
8741 # Check whether --with-bugurl or --without-bugurl was given.
8742 if test "${with_bugurl+set}" = set; then
8743 withval="$with_bugurl"
8745 yes) { { echo "$as_me:$LINENO: error: bug URL not specified" >&5
8746 echo "$as_me: error: bug URL not specified" >&2;}
8747 { (exit 1); exit 1; }; } ;;
8750 *) BUGURL="$withval"
8754 BUGURL="http://www.gnu.org/software/gdb/bugs/"
8763 REPORT_BUGS_TO="<$BUGURL>"
8764 REPORT_BUGS_TEXI=@uref{`echo "$BUGURL" | sed 's/@/@@/g'`}
8771 cat >>confdefs.h <<_ACEOF
8772 #define PKGVERSION "$PKGVERSION"
8776 cat >>confdefs.h <<_ACEOF
8777 #define REPORT_BUGS_TO "$REPORT_BUGS_TO"
8781 # --------------------- #
8782 # Checks for programs. #
8783 # --------------------- #
8785 for ac_prog in gawk mawk nawk awk
8787 # Extract the first word of "$ac_prog", so it can be a program name with args.
8788 set dummy $ac_prog; ac_word=$2
8789 echo "$as_me:$LINENO: checking for $ac_word" >&5
8790 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
8791 if test "${ac_cv_prog_AWK+set}" = set; then
8792 echo $ECHO_N "(cached) $ECHO_C" >&6
8794 if test -n "$AWK"; then
8795 ac_cv_prog_AWK="$AWK" # Let the user override the test.
8797 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8801 test -z "$as_dir" && as_dir=.
8802 for ac_exec_ext in '' $ac_executable_extensions; do
8803 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
8804 ac_cv_prog_AWK="$ac_prog"
8805 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
8814 if test -n "$AWK"; then
8815 echo "$as_me:$LINENO: result: $AWK" >&5
8816 echo "${ECHO_T}$AWK" >&6
8818 echo "$as_me:$LINENO: result: no" >&5
8819 echo "${ECHO_T}no" >&6
8822 test -n "$AWK" && break
8825 # Find a good install program. We prefer a C program (faster),
8826 # so one script is as good as another. But avoid the broken or
8827 # incompatible versions:
8828 # SysV /etc/install, /usr/sbin/install
8829 # SunOS /usr/etc/install
8830 # IRIX /sbin/install
8832 # AmigaOS /C/install, which installs bootblocks on floppy discs
8833 # AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag
8834 # AFS /usr/afsws/bin/install, which mishandles nonexistent args
8835 # SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff"
8836 # OS/2's system install, which has a completely different semantic
8837 # ./install, which can be erroneously created by make from ./install.sh.
8838 echo "$as_me:$LINENO: checking for a BSD-compatible install" >&5
8839 echo $ECHO_N "checking for a BSD-compatible install... $ECHO_C" >&6
8840 if test -z "$INSTALL"; then
8841 if test "${ac_cv_path_install+set}" = set; then
8842 echo $ECHO_N "(cached) $ECHO_C" >&6
8844 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8848 test -z "$as_dir" && as_dir=.
8849 # Account for people who put trailing slashes in PATH elements.
8851 ./ | .// | /cC/* | \
8852 /etc/* | /usr/sbin/* | /usr/etc/* | /sbin/* | /usr/afsws/bin/* | \
8853 ?:\\/os2\\/install\\/* | ?:\\/OS2\\/INSTALL\\/* | \
8856 # OSF1 and SCO ODT 3.0 have their own names for install.
8857 # Don't use installbsd from OSF since it installs stuff as root
8859 for ac_prog in ginstall scoinst install; do
8860 for ac_exec_ext in '' $ac_executable_extensions; do
8861 if $as_executable_p "$as_dir/$ac_prog$ac_exec_ext"; then
8862 if test $ac_prog = install &&
8863 grep dspmsg "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
8864 # AIX install. It has an incompatible calling convention.
8866 elif test $ac_prog = install &&
8867 grep pwplus "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
8868 # program-specific install script used by HP pwplus--don't use.
8871 ac_cv_path_install="$as_dir/$ac_prog$ac_exec_ext -c"
8883 if test "${ac_cv_path_install+set}" = set; then
8884 INSTALL=$ac_cv_path_install
8886 # As a last resort, use the slow shell script. We don't cache a
8887 # path for INSTALL within a source directory, because that will
8888 # break other packages using the cache if that directory is
8889 # removed, or if the path is relative.
8890 INSTALL=$ac_install_sh
8893 echo "$as_me:$LINENO: result: $INSTALL" >&5
8894 echo "${ECHO_T}$INSTALL" >&6
8896 # Use test -z because SunOS4 sh mishandles braces in ${var-val}.
8897 # It thinks the first close brace ends the variable substitution.
8898 test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}'
8900 test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL}'
8902 test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644'
8904 echo "$as_me:$LINENO: checking whether ln -s works" >&5
8905 echo $ECHO_N "checking whether ln -s works... $ECHO_C" >&6
8907 if test "$LN_S" = "ln -s"; then
8908 echo "$as_me:$LINENO: result: yes" >&5
8909 echo "${ECHO_T}yes" >&6
8911 echo "$as_me:$LINENO: result: no, using $LN_S" >&5
8912 echo "${ECHO_T}no, using $LN_S" >&6
8915 if test -n "$ac_tool_prefix"; then
8916 # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args.
8917 set dummy ${ac_tool_prefix}ranlib; ac_word=$2
8918 echo "$as_me:$LINENO: checking for $ac_word" >&5
8919 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
8920 if test "${ac_cv_prog_RANLIB+set}" = set; then
8921 echo $ECHO_N "(cached) $ECHO_C" >&6
8923 if test -n "$RANLIB"; then
8924 ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
8926 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8930 test -z "$as_dir" && as_dir=.
8931 for ac_exec_ext in '' $ac_executable_extensions; do
8932 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
8933 ac_cv_prog_RANLIB="${ac_tool_prefix}ranlib"
8934 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
8942 RANLIB=$ac_cv_prog_RANLIB
8943 if test -n "$RANLIB"; then
8944 echo "$as_me:$LINENO: result: $RANLIB" >&5
8945 echo "${ECHO_T}$RANLIB" >&6
8947 echo "$as_me:$LINENO: result: no" >&5
8948 echo "${ECHO_T}no" >&6
8952 if test -z "$ac_cv_prog_RANLIB"; then
8953 ac_ct_RANLIB=$RANLIB
8954 # Extract the first word of "ranlib", so it can be a program name with args.
8955 set dummy ranlib; ac_word=$2
8956 echo "$as_me:$LINENO: checking for $ac_word" >&5
8957 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
8958 if test "${ac_cv_prog_ac_ct_RANLIB+set}" = set; then
8959 echo $ECHO_N "(cached) $ECHO_C" >&6
8961 if test -n "$ac_ct_RANLIB"; then
8962 ac_cv_prog_ac_ct_RANLIB="$ac_ct_RANLIB" # Let the user override the test.
8964 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8968 test -z "$as_dir" && as_dir=.
8969 for ac_exec_ext in '' $ac_executable_extensions; do
8970 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
8971 ac_cv_prog_ac_ct_RANLIB="ranlib"
8972 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
8978 test -z "$ac_cv_prog_ac_ct_RANLIB" && ac_cv_prog_ac_ct_RANLIB=":"
8981 ac_ct_RANLIB=$ac_cv_prog_ac_ct_RANLIB
8982 if test -n "$ac_ct_RANLIB"; then
8983 echo "$as_me:$LINENO: result: $ac_ct_RANLIB" >&5
8984 echo "${ECHO_T}$ac_ct_RANLIB" >&6
8986 echo "$as_me:$LINENO: result: no" >&5
8987 echo "${ECHO_T}no" >&6
8990 RANLIB=$ac_ct_RANLIB
8992 RANLIB="$ac_cv_prog_RANLIB"
8995 for ac_prog in 'bison -y' byacc
8997 # Extract the first word of "$ac_prog", so it can be a program name with args.
8998 set dummy $ac_prog; 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_YACC+set}" = set; then
9002 echo $ECHO_N "(cached) $ECHO_C" >&6
9004 if test -n "$YACC"; then
9005 ac_cv_prog_YACC="$YACC" # 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_YACC="$ac_prog"
9015 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
9023 YACC=$ac_cv_prog_YACC
9024 if test -n "$YACC"; then
9025 echo "$as_me:$LINENO: result: $YACC" >&5
9026 echo "${ECHO_T}$YACC" >&6
9028 echo "$as_me:$LINENO: result: no" >&5
9029 echo "${ECHO_T}no" >&6
9032 test -n "$YACC" && break
9034 test -n "$YACC" || YACC="yacc"
9037 if test -n "$ac_tool_prefix"; then
9038 # Extract the first word of "${ac_tool_prefix}ar", so it can be a program name with args.
9039 set dummy ${ac_tool_prefix}ar; 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_AR+set}" = set; then
9043 echo $ECHO_N "(cached) $ECHO_C" >&6
9045 if test -n "$AR"; then
9046 ac_cv_prog_AR="$AR" # 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_AR="${ac_tool_prefix}ar"
9056 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
9065 if test -n "$AR"; then
9066 echo "$as_me:$LINENO: result: $AR" >&5
9067 echo "${ECHO_T}$AR" >&6
9069 echo "$as_me:$LINENO: result: no" >&5
9070 echo "${ECHO_T}no" >&6
9074 if test -z "$ac_cv_prog_AR"; then
9076 # Extract the first word of "ar", so it can be a program name with args.
9077 set dummy ar; 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_AR+set}" = set; then
9081 echo $ECHO_N "(cached) $ECHO_C" >&6
9083 if test -n "$ac_ct_AR"; then
9084 ac_cv_prog_ac_ct_AR="$ac_ct_AR" # 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_AR="ar"
9094 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
9102 ac_ct_AR=$ac_cv_prog_ac_ct_AR
9103 if test -n "$ac_ct_AR"; then
9104 echo "$as_me:$LINENO: result: $ac_ct_AR" >&5
9105 echo "${ECHO_T}$ac_ct_AR" >&6
9107 echo "$as_me:$LINENO: result: no" >&5
9108 echo "${ECHO_T}no" >&6
9116 if test -n "$ac_tool_prefix"; then
9117 # Extract the first word of "${ac_tool_prefix}dlltool", so it can be a program name with args.
9118 set dummy ${ac_tool_prefix}dlltool; ac_word=$2
9119 echo "$as_me:$LINENO: checking for $ac_word" >&5
9120 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
9121 if test "${ac_cv_prog_DLLTOOL+set}" = set; then
9122 echo $ECHO_N "(cached) $ECHO_C" >&6
9124 if test -n "$DLLTOOL"; then
9125 ac_cv_prog_DLLTOOL="$DLLTOOL" # Let the user override the test.
9127 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9131 test -z "$as_dir" && as_dir=.
9132 for ac_exec_ext in '' $ac_executable_extensions; do
9133 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
9134 ac_cv_prog_DLLTOOL="${ac_tool_prefix}dlltool"
9135 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
9143 DLLTOOL=$ac_cv_prog_DLLTOOL
9144 if test -n "$DLLTOOL"; then
9145 echo "$as_me:$LINENO: result: $DLLTOOL" >&5
9146 echo "${ECHO_T}$DLLTOOL" >&6
9148 echo "$as_me:$LINENO: result: no" >&5
9149 echo "${ECHO_T}no" >&6
9153 if test -z "$ac_cv_prog_DLLTOOL"; then
9154 ac_ct_DLLTOOL=$DLLTOOL
9155 # Extract the first word of "dlltool", so it can be a program name with args.
9156 set dummy dlltool; ac_word=$2
9157 echo "$as_me:$LINENO: checking for $ac_word" >&5
9158 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
9159 if test "${ac_cv_prog_ac_ct_DLLTOOL+set}" = set; then
9160 echo $ECHO_N "(cached) $ECHO_C" >&6
9162 if test -n "$ac_ct_DLLTOOL"; then
9163 ac_cv_prog_ac_ct_DLLTOOL="$ac_ct_DLLTOOL" # Let the user override the test.
9165 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9169 test -z "$as_dir" && as_dir=.
9170 for ac_exec_ext in '' $ac_executable_extensions; do
9171 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
9172 ac_cv_prog_ac_ct_DLLTOOL="dlltool"
9173 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
9181 ac_ct_DLLTOOL=$ac_cv_prog_ac_ct_DLLTOOL
9182 if test -n "$ac_ct_DLLTOOL"; then
9183 echo "$as_me:$LINENO: result: $ac_ct_DLLTOOL" >&5
9184 echo "${ECHO_T}$ac_ct_DLLTOOL" >&6
9186 echo "$as_me:$LINENO: result: no" >&5
9187 echo "${ECHO_T}no" >&6
9190 DLLTOOL=$ac_ct_DLLTOOL
9192 DLLTOOL="$ac_cv_prog_DLLTOOL"
9195 if test -n "$ac_tool_prefix"; then
9196 # Extract the first word of "${ac_tool_prefix}windres", so it can be a program name with args.
9197 set dummy ${ac_tool_prefix}windres; ac_word=$2
9198 echo "$as_me:$LINENO: checking for $ac_word" >&5
9199 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
9200 if test "${ac_cv_prog_WINDRES+set}" = set; then
9201 echo $ECHO_N "(cached) $ECHO_C" >&6
9203 if test -n "$WINDRES"; then
9204 ac_cv_prog_WINDRES="$WINDRES" # Let the user override the test.
9206 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9210 test -z "$as_dir" && as_dir=.
9211 for ac_exec_ext in '' $ac_executable_extensions; do
9212 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
9213 ac_cv_prog_WINDRES="${ac_tool_prefix}windres"
9214 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
9222 WINDRES=$ac_cv_prog_WINDRES
9223 if test -n "$WINDRES"; then
9224 echo "$as_me:$LINENO: result: $WINDRES" >&5
9225 echo "${ECHO_T}$WINDRES" >&6
9227 echo "$as_me:$LINENO: result: no" >&5
9228 echo "${ECHO_T}no" >&6
9232 if test -z "$ac_cv_prog_WINDRES"; then
9233 ac_ct_WINDRES=$WINDRES
9234 # Extract the first word of "windres", so it can be a program name with args.
9235 set dummy windres; ac_word=$2
9236 echo "$as_me:$LINENO: checking for $ac_word" >&5
9237 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
9238 if test "${ac_cv_prog_ac_ct_WINDRES+set}" = set; then
9239 echo $ECHO_N "(cached) $ECHO_C" >&6
9241 if test -n "$ac_ct_WINDRES"; then
9242 ac_cv_prog_ac_ct_WINDRES="$ac_ct_WINDRES" # Let the user override the test.
9244 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9248 test -z "$as_dir" && as_dir=.
9249 for ac_exec_ext in '' $ac_executable_extensions; do
9250 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
9251 ac_cv_prog_ac_ct_WINDRES="windres"
9252 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
9260 ac_ct_WINDRES=$ac_cv_prog_ac_ct_WINDRES
9261 if test -n "$ac_ct_WINDRES"; then
9262 echo "$as_me:$LINENO: result: $ac_ct_WINDRES" >&5
9263 echo "${ECHO_T}$ac_ct_WINDRES" >&6
9265 echo "$as_me:$LINENO: result: no" >&5
9266 echo "${ECHO_T}no" >&6
9269 WINDRES=$ac_ct_WINDRES
9271 WINDRES="$ac_cv_prog_WINDRES"
9275 # Needed for GNU/Hurd.
9276 if test -n "$ac_tool_prefix"; then
9277 # Extract the first word of "${ac_tool_prefix}mig", so it can be a program name with args.
9278 set dummy ${ac_tool_prefix}mig; ac_word=$2
9279 echo "$as_me:$LINENO: checking for $ac_word" >&5
9280 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
9281 if test "${ac_cv_prog_MIG+set}" = set; then
9282 echo $ECHO_N "(cached) $ECHO_C" >&6
9284 if test -n "$MIG"; then
9285 ac_cv_prog_MIG="$MIG" # Let the user override the test.
9287 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9291 test -z "$as_dir" && as_dir=.
9292 for ac_exec_ext in '' $ac_executable_extensions; do
9293 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
9294 ac_cv_prog_MIG="${ac_tool_prefix}mig"
9295 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
9304 if test -n "$MIG"; then
9305 echo "$as_me:$LINENO: result: $MIG" >&5
9306 echo "${ECHO_T}$MIG" >&6
9308 echo "$as_me:$LINENO: result: no" >&5
9309 echo "${ECHO_T}no" >&6
9313 if test -z "$ac_cv_prog_MIG"; then
9315 # Extract the first word of "mig", so it can be a program name with args.
9316 set dummy mig; ac_word=$2
9317 echo "$as_me:$LINENO: checking for $ac_word" >&5
9318 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
9319 if test "${ac_cv_prog_ac_ct_MIG+set}" = set; then
9320 echo $ECHO_N "(cached) $ECHO_C" >&6
9322 if test -n "$ac_ct_MIG"; then
9323 ac_cv_prog_ac_ct_MIG="$ac_ct_MIG" # Let the user override the test.
9325 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9329 test -z "$as_dir" && as_dir=.
9330 for ac_exec_ext in '' $ac_executable_extensions; do
9331 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
9332 ac_cv_prog_ac_ct_MIG="mig"
9333 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
9341 ac_ct_MIG=$ac_cv_prog_ac_ct_MIG
9342 if test -n "$ac_ct_MIG"; then
9343 echo "$as_me:$LINENO: result: $ac_ct_MIG" >&5
9344 echo "${ECHO_T}$ac_ct_MIG" >&6
9346 echo "$as_me:$LINENO: result: no" >&5
9347 echo "${ECHO_T}no" >&6
9352 MIG="$ac_cv_prog_MIG"
9356 # ---------------------- #
9357 # Checks for libraries. #
9358 # ---------------------- #
9360 # We might need to link with -lm; most simulators need it.
9362 echo "$as_me:$LINENO: checking for main in -lm" >&5
9363 echo $ECHO_N "checking for main in -lm... $ECHO_C" >&6
9364 if test "${ac_cv_lib_m_main+set}" = set; then
9365 echo $ECHO_N "(cached) $ECHO_C" >&6
9367 ac_check_lib_save_LIBS=$LIBS
9369 cat >conftest.$ac_ext <<_ACEOF
9372 cat confdefs.h >>conftest.$ac_ext
9373 cat >>conftest.$ac_ext <<_ACEOF
9374 /* end confdefs.h. */
9385 rm -f conftest.$ac_objext conftest$ac_exeext
9386 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
9387 (eval $ac_link) 2>conftest.er1
9389 grep -v '^ *+' conftest.er1 >conftest.err
9391 cat conftest.err >&5
9392 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9393 (exit $ac_status); } &&
9394 { ac_try='test -z "$ac_c_werror_flag"
9395 || test ! -s conftest.err'
9396 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9399 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9400 (exit $ac_status); }; } &&
9401 { ac_try='test -s conftest$ac_exeext'
9402 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9405 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9406 (exit $ac_status); }; }; then
9407 ac_cv_lib_m_main=yes
9409 echo "$as_me: failed program was:" >&5
9410 sed 's/^/| /' conftest.$ac_ext >&5
9414 rm -f conftest.err conftest.$ac_objext \
9415 conftest$ac_exeext conftest.$ac_ext
9416 LIBS=$ac_check_lib_save_LIBS
9418 echo "$as_me:$LINENO: result: $ac_cv_lib_m_main" >&5
9419 echo "${ECHO_T}$ac_cv_lib_m_main" >&6
9420 if test $ac_cv_lib_m_main = yes; then
9421 cat >>confdefs.h <<_ACEOF
9430 # We need to link with -lw to get `wctype' on Solaris before Solaris
9431 # 2.6. Solaris 2.6 and beyond have this function in libc, and have a
9432 # libw that some versions of the GNU linker cannot hanle (GNU ld 2.9.1
9433 # is known to have this problem). Therefore we avoid libw if we can.
9434 echo "$as_me:$LINENO: checking for wctype" >&5
9435 echo $ECHO_N "checking for wctype... $ECHO_C" >&6
9436 if test "${ac_cv_func_wctype+set}" = set; then
9437 echo $ECHO_N "(cached) $ECHO_C" >&6
9439 cat >conftest.$ac_ext <<_ACEOF
9442 cat confdefs.h >>conftest.$ac_ext
9443 cat >>conftest.$ac_ext <<_ACEOF
9444 /* end confdefs.h. */
9445 /* Define wctype to an innocuous variant, in case <limits.h> declares wctype.
9446 For example, HP-UX 11i <limits.h> declares gettimeofday. */
9447 #define wctype innocuous_wctype
9449 /* System header to define __stub macros and hopefully few prototypes,
9450 which can conflict with char wctype (); below.
9451 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
9452 <limits.h> exists even on freestanding compilers. */
9455 # include <limits.h>
9457 # include <assert.h>
9462 /* Override any gcc2 internal prototype to avoid an error. */
9467 /* We use char because int might match the return type of a gcc2
9468 builtin and then its argument prototype would still apply. */
9470 /* The GNU C library defines this for functions which it implements
9471 to always fail with ENOSYS. Some functions are actually named
9472 something starting with __ and the normal name is an alias. */
9473 #if defined (__stub_wctype) || defined (__stub___wctype)
9476 char (*f) () = wctype;
9490 rm -f conftest.$ac_objext conftest$ac_exeext
9491 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
9492 (eval $ac_link) 2>conftest.er1
9494 grep -v '^ *+' conftest.er1 >conftest.err
9496 cat conftest.err >&5
9497 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9498 (exit $ac_status); } &&
9499 { ac_try='test -z "$ac_c_werror_flag"
9500 || test ! -s conftest.err'
9501 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9504 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9505 (exit $ac_status); }; } &&
9506 { ac_try='test -s conftest$ac_exeext'
9507 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9510 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9511 (exit $ac_status); }; }; then
9512 ac_cv_func_wctype=yes
9514 echo "$as_me: failed program was:" >&5
9515 sed 's/^/| /' conftest.$ac_ext >&5
9517 ac_cv_func_wctype=no
9519 rm -f conftest.err conftest.$ac_objext \
9520 conftest$ac_exeext conftest.$ac_ext
9522 echo "$as_me:$LINENO: result: $ac_cv_func_wctype" >&5
9523 echo "${ECHO_T}$ac_cv_func_wctype" >&6
9524 if test $ac_cv_func_wctype = yes; then
9528 echo "$as_me:$LINENO: checking for wctype in -lw" >&5
9529 echo $ECHO_N "checking for wctype in -lw... $ECHO_C" >&6
9530 if test "${ac_cv_lib_w_wctype+set}" = set; then
9531 echo $ECHO_N "(cached) $ECHO_C" >&6
9533 ac_check_lib_save_LIBS=$LIBS
9535 cat >conftest.$ac_ext <<_ACEOF
9538 cat confdefs.h >>conftest.$ac_ext
9539 cat >>conftest.$ac_ext <<_ACEOF
9540 /* end confdefs.h. */
9542 /* Override any gcc2 internal prototype to avoid an error. */
9546 /* We use char because int might match the return type of a gcc2
9547 builtin and then its argument prototype would still apply. */
9557 rm -f conftest.$ac_objext conftest$ac_exeext
9558 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
9559 (eval $ac_link) 2>conftest.er1
9561 grep -v '^ *+' conftest.er1 >conftest.err
9563 cat conftest.err >&5
9564 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9565 (exit $ac_status); } &&
9566 { ac_try='test -z "$ac_c_werror_flag"
9567 || test ! -s conftest.err'
9568 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9571 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9572 (exit $ac_status); }; } &&
9573 { ac_try='test -s conftest$ac_exeext'
9574 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9577 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9578 (exit $ac_status); }; }; then
9579 ac_cv_lib_w_wctype=yes
9581 echo "$as_me: failed program was:" >&5
9582 sed 's/^/| /' conftest.$ac_ext >&5
9584 ac_cv_lib_w_wctype=no
9586 rm -f conftest.err conftest.$ac_objext \
9587 conftest$ac_exeext conftest.$ac_ext
9588 LIBS=$ac_check_lib_save_LIBS
9590 echo "$as_me:$LINENO: result: $ac_cv_lib_w_wctype" >&5
9591 echo "${ECHO_T}$ac_cv_lib_w_wctype" >&6
9592 if test $ac_cv_lib_w_wctype = yes; then
9593 cat >>confdefs.h <<_ACEOF
9604 # Some systems (e.g. Solaris) have `gethostbyname' in libnsl.
9605 echo "$as_me:$LINENO: checking for library containing gethostbyname" >&5
9606 echo $ECHO_N "checking for library containing gethostbyname... $ECHO_C" >&6
9607 if test "${ac_cv_search_gethostbyname+set}" = set; then
9608 echo $ECHO_N "(cached) $ECHO_C" >&6
9610 ac_func_search_save_LIBS=$LIBS
9611 ac_cv_search_gethostbyname=no
9612 cat >conftest.$ac_ext <<_ACEOF
9615 cat confdefs.h >>conftest.$ac_ext
9616 cat >>conftest.$ac_ext <<_ACEOF
9617 /* end confdefs.h. */
9619 /* Override any gcc2 internal prototype to avoid an error. */
9623 /* We use char because int might match the return type of a gcc2
9624 builtin and then its argument prototype would still apply. */
9625 char gethostbyname ();
9634 rm -f conftest.$ac_objext conftest$ac_exeext
9635 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
9636 (eval $ac_link) 2>conftest.er1
9638 grep -v '^ *+' conftest.er1 >conftest.err
9640 cat conftest.err >&5
9641 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9642 (exit $ac_status); } &&
9643 { ac_try='test -z "$ac_c_werror_flag"
9644 || test ! -s conftest.err'
9645 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9648 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9649 (exit $ac_status); }; } &&
9650 { ac_try='test -s conftest$ac_exeext'
9651 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9654 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9655 (exit $ac_status); }; }; then
9656 ac_cv_search_gethostbyname="none required"
9658 echo "$as_me: failed program was:" >&5
9659 sed 's/^/| /' conftest.$ac_ext >&5
9662 rm -f conftest.err conftest.$ac_objext \
9663 conftest$ac_exeext conftest.$ac_ext
9664 if test "$ac_cv_search_gethostbyname" = no; then
9665 for ac_lib in nsl; do
9666 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
9667 cat >conftest.$ac_ext <<_ACEOF
9670 cat confdefs.h >>conftest.$ac_ext
9671 cat >>conftest.$ac_ext <<_ACEOF
9672 /* end confdefs.h. */
9674 /* Override any gcc2 internal prototype to avoid an error. */
9678 /* We use char because int might match the return type of a gcc2
9679 builtin and then its argument prototype would still apply. */
9680 char gethostbyname ();
9689 rm -f conftest.$ac_objext conftest$ac_exeext
9690 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
9691 (eval $ac_link) 2>conftest.er1
9693 grep -v '^ *+' conftest.er1 >conftest.err
9695 cat conftest.err >&5
9696 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9697 (exit $ac_status); } &&
9698 { ac_try='test -z "$ac_c_werror_flag"
9699 || test ! -s conftest.err'
9700 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9703 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9704 (exit $ac_status); }; } &&
9705 { ac_try='test -s conftest$ac_exeext'
9706 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9709 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9710 (exit $ac_status); }; }; then
9711 ac_cv_search_gethostbyname="-l$ac_lib"
9714 echo "$as_me: failed program was:" >&5
9715 sed 's/^/| /' conftest.$ac_ext >&5
9718 rm -f conftest.err conftest.$ac_objext \
9719 conftest$ac_exeext conftest.$ac_ext
9722 LIBS=$ac_func_search_save_LIBS
9724 echo "$as_me:$LINENO: result: $ac_cv_search_gethostbyname" >&5
9725 echo "${ECHO_T}$ac_cv_search_gethostbyname" >&6
9726 if test "$ac_cv_search_gethostbyname" != no; then
9727 test "$ac_cv_search_gethostbyname" = "none required" || LIBS="$ac_cv_search_gethostbyname $LIBS"
9732 # Some systems (e.g. Solaris) have `socketpair' in libsocket.
9733 echo "$as_me:$LINENO: checking for library containing socketpair" >&5
9734 echo $ECHO_N "checking for library containing socketpair... $ECHO_C" >&6
9735 if test "${ac_cv_search_socketpair+set}" = set; then
9736 echo $ECHO_N "(cached) $ECHO_C" >&6
9738 ac_func_search_save_LIBS=$LIBS
9739 ac_cv_search_socketpair=no
9740 cat >conftest.$ac_ext <<_ACEOF
9743 cat confdefs.h >>conftest.$ac_ext
9744 cat >>conftest.$ac_ext <<_ACEOF
9745 /* end confdefs.h. */
9747 /* Override any gcc2 internal prototype to avoid an error. */
9751 /* We use char because int might match the return type of a gcc2
9752 builtin and then its argument prototype would still apply. */
9762 rm -f conftest.$ac_objext conftest$ac_exeext
9763 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
9764 (eval $ac_link) 2>conftest.er1
9766 grep -v '^ *+' conftest.er1 >conftest.err
9768 cat conftest.err >&5
9769 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9770 (exit $ac_status); } &&
9771 { ac_try='test -z "$ac_c_werror_flag"
9772 || test ! -s conftest.err'
9773 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9776 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9777 (exit $ac_status); }; } &&
9778 { ac_try='test -s conftest$ac_exeext'
9779 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9782 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9783 (exit $ac_status); }; }; then
9784 ac_cv_search_socketpair="none required"
9786 echo "$as_me: failed program was:" >&5
9787 sed 's/^/| /' conftest.$ac_ext >&5
9790 rm -f conftest.err conftest.$ac_objext \
9791 conftest$ac_exeext conftest.$ac_ext
9792 if test "$ac_cv_search_socketpair" = no; then
9793 for ac_lib in socket; do
9794 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
9795 cat >conftest.$ac_ext <<_ACEOF
9798 cat confdefs.h >>conftest.$ac_ext
9799 cat >>conftest.$ac_ext <<_ACEOF
9800 /* end confdefs.h. */
9802 /* Override any gcc2 internal prototype to avoid an error. */
9806 /* We use char because int might match the return type of a gcc2
9807 builtin and then its argument prototype would still apply. */
9817 rm -f conftest.$ac_objext conftest$ac_exeext
9818 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
9819 (eval $ac_link) 2>conftest.er1
9821 grep -v '^ *+' conftest.er1 >conftest.err
9823 cat conftest.err >&5
9824 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9825 (exit $ac_status); } &&
9826 { ac_try='test -z "$ac_c_werror_flag"
9827 || test ! -s conftest.err'
9828 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9831 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9832 (exit $ac_status); }; } &&
9833 { ac_try='test -s conftest$ac_exeext'
9834 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9837 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9838 (exit $ac_status); }; }; then
9839 ac_cv_search_socketpair="-l$ac_lib"
9842 echo "$as_me: failed program was:" >&5
9843 sed 's/^/| /' conftest.$ac_ext >&5
9846 rm -f conftest.err conftest.$ac_objext \
9847 conftest$ac_exeext conftest.$ac_ext
9850 LIBS=$ac_func_search_save_LIBS
9852 echo "$as_me:$LINENO: result: $ac_cv_search_socketpair" >&5
9853 echo "${ECHO_T}$ac_cv_search_socketpair" >&6
9854 if test "$ac_cv_search_socketpair" != no; then
9855 test "$ac_cv_search_socketpair" = "none required" || LIBS="$ac_cv_search_socketpair $LIBS"
9860 # Link in zlib if we can. This allows us to read compressed debug sections.
9861 echo "$as_me:$LINENO: checking for library containing zlibVersion" >&5
9862 echo $ECHO_N "checking for library containing zlibVersion... $ECHO_C" >&6
9863 if test "${ac_cv_search_zlibVersion+set}" = set; then
9864 echo $ECHO_N "(cached) $ECHO_C" >&6
9866 ac_func_search_save_LIBS=$LIBS
9867 ac_cv_search_zlibVersion=no
9868 cat >conftest.$ac_ext <<_ACEOF
9871 cat confdefs.h >>conftest.$ac_ext
9872 cat >>conftest.$ac_ext <<_ACEOF
9873 /* end confdefs.h. */
9875 /* Override any gcc2 internal prototype to avoid an error. */
9879 /* We use char because int might match the return type of a gcc2
9880 builtin and then its argument prototype would still apply. */
9881 char zlibVersion ();
9890 rm -f conftest.$ac_objext conftest$ac_exeext
9891 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
9892 (eval $ac_link) 2>conftest.er1
9894 grep -v '^ *+' conftest.er1 >conftest.err
9896 cat conftest.err >&5
9897 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9898 (exit $ac_status); } &&
9899 { ac_try='test -z "$ac_c_werror_flag"
9900 || test ! -s conftest.err'
9901 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9904 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9905 (exit $ac_status); }; } &&
9906 { ac_try='test -s conftest$ac_exeext'
9907 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9910 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9911 (exit $ac_status); }; }; then
9912 ac_cv_search_zlibVersion="none required"
9914 echo "$as_me: failed program was:" >&5
9915 sed 's/^/| /' conftest.$ac_ext >&5
9918 rm -f conftest.err conftest.$ac_objext \
9919 conftest$ac_exeext conftest.$ac_ext
9920 if test "$ac_cv_search_zlibVersion" = no; then
9922 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
9923 cat >conftest.$ac_ext <<_ACEOF
9926 cat confdefs.h >>conftest.$ac_ext
9927 cat >>conftest.$ac_ext <<_ACEOF
9928 /* end confdefs.h. */
9930 /* Override any gcc2 internal prototype to avoid an error. */
9934 /* We use char because int might match the return type of a gcc2
9935 builtin and then its argument prototype would still apply. */
9936 char zlibVersion ();
9945 rm -f conftest.$ac_objext conftest$ac_exeext
9946 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
9947 (eval $ac_link) 2>conftest.er1
9949 grep -v '^ *+' conftest.er1 >conftest.err
9951 cat conftest.err >&5
9952 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9953 (exit $ac_status); } &&
9954 { ac_try='test -z "$ac_c_werror_flag"
9955 || test ! -s conftest.err'
9956 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9959 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9960 (exit $ac_status); }; } &&
9961 { ac_try='test -s conftest$ac_exeext'
9962 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9965 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9966 (exit $ac_status); }; }; then
9967 ac_cv_search_zlibVersion="-l$ac_lib"
9970 echo "$as_me: failed program was:" >&5
9971 sed 's/^/| /' conftest.$ac_ext >&5
9974 rm -f conftest.err conftest.$ac_objext \
9975 conftest$ac_exeext conftest.$ac_ext
9978 LIBS=$ac_func_search_save_LIBS
9980 echo "$as_me:$LINENO: result: $ac_cv_search_zlibVersion" >&5
9981 echo "${ECHO_T}$ac_cv_search_zlibVersion" >&6
9982 if test "$ac_cv_search_zlibVersion" != no; then
9983 test "$ac_cv_search_zlibVersion" = "none required" || LIBS="$ac_cv_search_zlibVersion $LIBS"
9985 for ac_header in zlib.h
9987 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
9988 if eval "test \"\${$as_ac_Header+set}\" = set"; then
9989 echo "$as_me:$LINENO: checking for $ac_header" >&5
9990 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
9991 if eval "test \"\${$as_ac_Header+set}\" = set"; then
9992 echo $ECHO_N "(cached) $ECHO_C" >&6
9994 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
9995 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
9997 # Is the header compilable?
9998 echo "$as_me:$LINENO: checking $ac_header usability" >&5
9999 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
10000 cat >conftest.$ac_ext <<_ACEOF
10003 cat confdefs.h >>conftest.$ac_ext
10004 cat >>conftest.$ac_ext <<_ACEOF
10005 /* end confdefs.h. */
10006 $ac_includes_default
10007 #include <$ac_header>
10009 rm -f conftest.$ac_objext
10010 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
10011 (eval $ac_compile) 2>conftest.er1
10013 grep -v '^ *+' conftest.er1 >conftest.err
10015 cat conftest.err >&5
10016 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10017 (exit $ac_status); } &&
10018 { ac_try='test -z "$ac_c_werror_flag"
10019 || test ! -s conftest.err'
10020 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10021 (eval $ac_try) 2>&5
10023 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10024 (exit $ac_status); }; } &&
10025 { ac_try='test -s conftest.$ac_objext'
10026 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10027 (eval $ac_try) 2>&5
10029 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10030 (exit $ac_status); }; }; then
10031 ac_header_compiler=yes
10033 echo "$as_me: failed program was:" >&5
10034 sed 's/^/| /' conftest.$ac_ext >&5
10036 ac_header_compiler=no
10038 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
10039 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
10040 echo "${ECHO_T}$ac_header_compiler" >&6
10042 # Is the header present?
10043 echo "$as_me:$LINENO: checking $ac_header presence" >&5
10044 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
10045 cat >conftest.$ac_ext <<_ACEOF
10048 cat confdefs.h >>conftest.$ac_ext
10049 cat >>conftest.$ac_ext <<_ACEOF
10050 /* end confdefs.h. */
10051 #include <$ac_header>
10053 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
10054 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
10056 grep -v '^ *+' conftest.er1 >conftest.err
10058 cat conftest.err >&5
10059 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10060 (exit $ac_status); } >/dev/null; then
10061 if test -s conftest.err; then
10062 ac_cpp_err=$ac_c_preproc_warn_flag
10063 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
10070 if test -z "$ac_cpp_err"; then
10071 ac_header_preproc=yes
10073 echo "$as_me: failed program was:" >&5
10074 sed 's/^/| /' conftest.$ac_ext >&5
10076 ac_header_preproc=no
10078 rm -f conftest.err conftest.$ac_ext
10079 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
10080 echo "${ECHO_T}$ac_header_preproc" >&6
10082 # So? What about this header?
10083 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
10085 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
10086 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
10087 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
10088 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
10089 ac_header_preproc=yes
10092 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
10093 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
10094 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
10095 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
10096 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
10097 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
10098 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
10099 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
10100 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
10101 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
10102 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
10103 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
10106 ## ------------------------------------------ ##
10107 ## Report this to the AC_PACKAGE_NAME lists. ##
10108 ## ------------------------------------------ ##
10111 sed "s/^/$as_me: WARNING: /" >&2
10114 echo "$as_me:$LINENO: checking for $ac_header" >&5
10115 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
10116 if eval "test \"\${$as_ac_Header+set}\" = set"; then
10117 echo $ECHO_N "(cached) $ECHO_C" >&6
10119 eval "$as_ac_Header=\$ac_header_preproc"
10121 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
10122 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
10125 if test `eval echo '${'$as_ac_Header'}'` = yes; then
10126 cat >>confdefs.h <<_ACEOF
10127 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
10137 # On HP/UX we may need libxpdl for dlgetmodinfo (used by solib-pa64.c).
10138 echo "$as_me:$LINENO: checking for library containing dlgetmodinfo" >&5
10139 echo $ECHO_N "checking for library containing dlgetmodinfo... $ECHO_C" >&6
10140 if test "${ac_cv_search_dlgetmodinfo+set}" = set; then
10141 echo $ECHO_N "(cached) $ECHO_C" >&6
10143 ac_func_search_save_LIBS=$LIBS
10144 ac_cv_search_dlgetmodinfo=no
10145 cat >conftest.$ac_ext <<_ACEOF
10148 cat confdefs.h >>conftest.$ac_ext
10149 cat >>conftest.$ac_ext <<_ACEOF
10150 /* end confdefs.h. */
10152 /* Override any gcc2 internal prototype to avoid an error. */
10156 /* We use char because int might match the return type of a gcc2
10157 builtin and then its argument prototype would still apply. */
10158 char dlgetmodinfo ();
10167 rm -f conftest.$ac_objext conftest$ac_exeext
10168 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
10169 (eval $ac_link) 2>conftest.er1
10171 grep -v '^ *+' conftest.er1 >conftest.err
10173 cat conftest.err >&5
10174 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10175 (exit $ac_status); } &&
10176 { ac_try='test -z "$ac_c_werror_flag"
10177 || test ! -s conftest.err'
10178 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10179 (eval $ac_try) 2>&5
10181 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10182 (exit $ac_status); }; } &&
10183 { ac_try='test -s conftest$ac_exeext'
10184 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10185 (eval $ac_try) 2>&5
10187 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10188 (exit $ac_status); }; }; then
10189 ac_cv_search_dlgetmodinfo="none required"
10191 echo "$as_me: failed program was:" >&5
10192 sed 's/^/| /' conftest.$ac_ext >&5
10195 rm -f conftest.err conftest.$ac_objext \
10196 conftest$ac_exeext conftest.$ac_ext
10197 if test "$ac_cv_search_dlgetmodinfo" = no; then
10198 for ac_lib in dl xpdl; do
10199 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
10200 cat >conftest.$ac_ext <<_ACEOF
10203 cat confdefs.h >>conftest.$ac_ext
10204 cat >>conftest.$ac_ext <<_ACEOF
10205 /* end confdefs.h. */
10207 /* Override any gcc2 internal prototype to avoid an error. */
10211 /* We use char because int might match the return type of a gcc2
10212 builtin and then its argument prototype would still apply. */
10213 char dlgetmodinfo ();
10222 rm -f conftest.$ac_objext conftest$ac_exeext
10223 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
10224 (eval $ac_link) 2>conftest.er1
10226 grep -v '^ *+' conftest.er1 >conftest.err
10228 cat conftest.err >&5
10229 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10230 (exit $ac_status); } &&
10231 { ac_try='test -z "$ac_c_werror_flag"
10232 || test ! -s conftest.err'
10233 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10234 (eval $ac_try) 2>&5
10236 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10237 (exit $ac_status); }; } &&
10238 { ac_try='test -s conftest$ac_exeext'
10239 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10240 (eval $ac_try) 2>&5
10242 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10243 (exit $ac_status); }; }; then
10244 ac_cv_search_dlgetmodinfo="-l$ac_lib"
10247 echo "$as_me: failed program was:" >&5
10248 sed 's/^/| /' conftest.$ac_ext >&5
10251 rm -f conftest.err conftest.$ac_objext \
10252 conftest$ac_exeext conftest.$ac_ext
10255 LIBS=$ac_func_search_save_LIBS
10257 echo "$as_me:$LINENO: result: $ac_cv_search_dlgetmodinfo" >&5
10258 echo "${ECHO_T}$ac_cv_search_dlgetmodinfo" >&6
10259 if test "$ac_cv_search_dlgetmodinfo" != no; then
10260 test "$ac_cv_search_dlgetmodinfo" = "none required" || LIBS="$ac_cv_search_dlgetmodinfo $LIBS"
10265 # On alpha-osf, it appears that libtermcap and libcurses are not compatible.
10266 # There is a very specific comment in /usr/include/curses.h explaining that
10267 # termcap routines built into libcurses must not be used.
10269 # The symptoms we observed so far is GDB unexpectedly changing
10270 # the terminal settings when tgetent is called - this is particularly
10271 # visible as the output is missing carriage returns, and so rapidly
10272 # becomes very hard to read.
10274 # The readline configure script has already decided that libtermcap
10275 # was enough for its purposes, and so decided to build readline using
10276 # libtermcap. Since the TUI mode requires curses, building GDB with
10277 # TUI enabled results in both libraries to be used at the same time,
10278 # which is not allowed. This basically means that GDB with TUI is
10279 # broken on alpha-osf.
10283 if "$enable_tui" = "yes"; then
10284 { { echo "$as_me:$LINENO: error: Building GDB with TUI mode is not supported on this host" >&5
10285 echo "$as_me: error: Building GDB with TUI mode is not supported on this host" >&2;}
10286 { (exit 1); exit 1; }; }
10288 if "$enable_tui" = "auto"; then
10294 # Check whether we should enable the TUI, but only do so if we really
10296 if test x"$enable_tui" != xno; then
10297 if test -d $srcdir/tui; then
10298 # For the TUI, we need enhanced curses functionality.
10300 # FIXME: kettenis/20040905: We prefer ncurses over the vendor-supplied
10301 # curses library because the latter might not provide all the
10302 # functionality we need. However, this leads to problems on systems
10303 # where the linker searches /usr/local/lib, but the compiler doesn't
10304 # search /usr/local/include, if ncurses is installed in /usr/local. A
10305 # default installation of ncurses on alpha*-dec-osf* will lead to such
10307 echo "$as_me:$LINENO: checking for library containing waddstr" >&5
10308 echo $ECHO_N "checking for library containing waddstr... $ECHO_C" >&6
10309 if test "${ac_cv_search_waddstr+set}" = set; then
10310 echo $ECHO_N "(cached) $ECHO_C" >&6
10312 ac_func_search_save_LIBS=$LIBS
10313 ac_cv_search_waddstr=no
10314 cat >conftest.$ac_ext <<_ACEOF
10317 cat confdefs.h >>conftest.$ac_ext
10318 cat >>conftest.$ac_ext <<_ACEOF
10319 /* end confdefs.h. */
10321 /* Override any gcc2 internal prototype to avoid an error. */
10325 /* We use char because int might match the return type of a gcc2
10326 builtin and then its argument prototype would still apply. */
10336 rm -f conftest.$ac_objext conftest$ac_exeext
10337 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
10338 (eval $ac_link) 2>conftest.er1
10340 grep -v '^ *+' conftest.er1 >conftest.err
10342 cat conftest.err >&5
10343 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10344 (exit $ac_status); } &&
10345 { ac_try='test -z "$ac_c_werror_flag"
10346 || test ! -s conftest.err'
10347 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10348 (eval $ac_try) 2>&5
10350 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10351 (exit $ac_status); }; } &&
10352 { ac_try='test -s conftest$ac_exeext'
10353 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10354 (eval $ac_try) 2>&5
10356 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10357 (exit $ac_status); }; }; then
10358 ac_cv_search_waddstr="none required"
10360 echo "$as_me: failed program was:" >&5
10361 sed 's/^/| /' conftest.$ac_ext >&5
10364 rm -f conftest.err conftest.$ac_objext \
10365 conftest$ac_exeext conftest.$ac_ext
10366 if test "$ac_cv_search_waddstr" = no; then
10367 for ac_lib in ncurses cursesX curses; do
10368 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
10369 cat >conftest.$ac_ext <<_ACEOF
10372 cat confdefs.h >>conftest.$ac_ext
10373 cat >>conftest.$ac_ext <<_ACEOF
10374 /* end confdefs.h. */
10376 /* Override any gcc2 internal prototype to avoid an error. */
10380 /* We use char because int might match the return type of a gcc2
10381 builtin and then its argument prototype would still apply. */
10391 rm -f conftest.$ac_objext conftest$ac_exeext
10392 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
10393 (eval $ac_link) 2>conftest.er1
10395 grep -v '^ *+' conftest.er1 >conftest.err
10397 cat conftest.err >&5
10398 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10399 (exit $ac_status); } &&
10400 { ac_try='test -z "$ac_c_werror_flag"
10401 || test ! -s conftest.err'
10402 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10403 (eval $ac_try) 2>&5
10405 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10406 (exit $ac_status); }; } &&
10407 { ac_try='test -s conftest$ac_exeext'
10408 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10409 (eval $ac_try) 2>&5
10411 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10412 (exit $ac_status); }; }; then
10413 ac_cv_search_waddstr="-l$ac_lib"
10416 echo "$as_me: failed program was:" >&5
10417 sed 's/^/| /' conftest.$ac_ext >&5
10420 rm -f conftest.err conftest.$ac_objext \
10421 conftest$ac_exeext conftest.$ac_ext
10424 LIBS=$ac_func_search_save_LIBS
10426 echo "$as_me:$LINENO: result: $ac_cv_search_waddstr" >&5
10427 echo "${ECHO_T}$ac_cv_search_waddstr" >&6
10428 if test "$ac_cv_search_waddstr" != no; then
10429 test "$ac_cv_search_waddstr" = "none required" || LIBS="$ac_cv_search_waddstr $LIBS"
10434 if test "$ac_cv_search_waddstr" != no; then
10435 CONFIG_OBS="$CONFIG_OBS \$(SUBDIR_TUI_OBS)"
10436 CONFIG_DEPS="$CONFIG_DEPS \$(SUBDIR_TUI_DEPS)"
10437 CONFIG_SRCS="$CONFIG_SRCS \$(SUBDIR_TUI_SRCS)"
10438 ENABLE_CFLAGS="$ENABLE_CFLAGS \$(SUBDIR_TUI_CFLAGS)"
10439 CONFIG_ALL="${CONFIG_ALL} all-tui"
10440 CONFIG_CLEAN="${CONFIG_CLEAN} clean-tui"
10441 CONFIG_INSTALL="${CONFIG_INSTALL} install-tui"
10442 CONFIG_UNINSTALL="${CONFIG_UNINSTALL} uninstall-tui"
10444 if test x"$enable_tui" = xyes; then
10445 { { echo "$as_me:$LINENO: error: no enhanced curses library found; disable TUI" >&5
10446 echo "$as_me: error: no enhanced curses library found; disable TUI" >&2;}
10447 { (exit 1); exit 1; }; }
10449 { echo "$as_me:$LINENO: WARNING: no enhanced curses library found; disabling TUI" >&5
10450 echo "$as_me: WARNING: no enhanced curses library found; disabling TUI" >&2;}
10456 # Since GDB uses Readline, we need termcap functionality. In many
10457 # cases this will be provided by the curses library, but some systems
10458 # have a seperate termcap library, or no curses library at all.
10462 if test -d $srcdir/libtermcap; then
10463 LIBS="../libtermcap/libtermcap.a $LIBS"
10464 ac_cv_search_tgetent="../libtermcap/libtermcap.a"
10467 ac_cv_search_tgetent="none required"
10470 ac_cv_search_tgetent="none required"
10471 CONFIG_OBS="$CONFIG_OBS win32-termcap.o"
10475 # These are the libraries checked by Readline.
10476 echo "$as_me:$LINENO: checking for library containing tgetent" >&5
10477 echo $ECHO_N "checking for library containing tgetent... $ECHO_C" >&6
10478 if test "${ac_cv_search_tgetent+set}" = set; then
10479 echo $ECHO_N "(cached) $ECHO_C" >&6
10481 ac_func_search_save_LIBS=$LIBS
10482 ac_cv_search_tgetent=no
10483 cat >conftest.$ac_ext <<_ACEOF
10486 cat confdefs.h >>conftest.$ac_ext
10487 cat >>conftest.$ac_ext <<_ACEOF
10488 /* end confdefs.h. */
10490 /* Override any gcc2 internal prototype to avoid an error. */
10494 /* We use char because int might match the return type of a gcc2
10495 builtin and then its argument prototype would still apply. */
10505 rm -f conftest.$ac_objext conftest$ac_exeext
10506 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
10507 (eval $ac_link) 2>conftest.er1
10509 grep -v '^ *+' conftest.er1 >conftest.err
10511 cat conftest.err >&5
10512 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10513 (exit $ac_status); } &&
10514 { ac_try='test -z "$ac_c_werror_flag"
10515 || test ! -s conftest.err'
10516 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10517 (eval $ac_try) 2>&5
10519 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10520 (exit $ac_status); }; } &&
10521 { ac_try='test -s conftest$ac_exeext'
10522 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10523 (eval $ac_try) 2>&5
10525 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10526 (exit $ac_status); }; }; then
10527 ac_cv_search_tgetent="none required"
10529 echo "$as_me: failed program was:" >&5
10530 sed 's/^/| /' conftest.$ac_ext >&5
10533 rm -f conftest.err conftest.$ac_objext \
10534 conftest$ac_exeext conftest.$ac_ext
10535 if test "$ac_cv_search_tgetent" = no; then
10536 for ac_lib in termcap tinfo curses ncurses; do
10537 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
10538 cat >conftest.$ac_ext <<_ACEOF
10541 cat confdefs.h >>conftest.$ac_ext
10542 cat >>conftest.$ac_ext <<_ACEOF
10543 /* end confdefs.h. */
10545 /* Override any gcc2 internal prototype to avoid an error. */
10549 /* We use char because int might match the return type of a gcc2
10550 builtin and then its argument prototype would still apply. */
10560 rm -f conftest.$ac_objext conftest$ac_exeext
10561 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
10562 (eval $ac_link) 2>conftest.er1
10564 grep -v '^ *+' conftest.er1 >conftest.err
10566 cat conftest.err >&5
10567 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10568 (exit $ac_status); } &&
10569 { ac_try='test -z "$ac_c_werror_flag"
10570 || test ! -s conftest.err'
10571 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10572 (eval $ac_try) 2>&5
10574 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10575 (exit $ac_status); }; } &&
10576 { ac_try='test -s conftest$ac_exeext'
10577 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10578 (eval $ac_try) 2>&5
10580 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10581 (exit $ac_status); }; }; then
10582 ac_cv_search_tgetent="-l$ac_lib"
10585 echo "$as_me: failed program was:" >&5
10586 sed 's/^/| /' conftest.$ac_ext >&5
10589 rm -f conftest.err conftest.$ac_objext \
10590 conftest$ac_exeext conftest.$ac_ext
10593 LIBS=$ac_func_search_save_LIBS
10595 echo "$as_me:$LINENO: result: $ac_cv_search_tgetent" >&5
10596 echo "${ECHO_T}$ac_cv_search_tgetent" >&6
10597 if test "$ac_cv_search_tgetent" != no; then
10598 test "$ac_cv_search_tgetent" = "none required" || LIBS="$ac_cv_search_tgetent $LIBS"
10603 if test "$ac_cv_search_tgetent" = no; then
10604 { { echo "$as_me:$LINENO: error: no termcap library found" >&5
10605 echo "$as_me: error: no termcap library found" >&2;}
10606 { (exit 1); exit 1; }; }
10610 # Check whether --with-system-readline or --without-system-readline was given.
10611 if test "${with_system_readline+set}" = set; then
10612 withval="$with_system_readline"
10616 if test "$with_system_readline" = yes; then
10617 READLINE=-lreadline
10621 READLINE='$(READLINE_DIR)/libreadline.a'
10622 READLINE_DEPS='$(READLINE)'
10623 READLINE_CFLAGS='-I$(READLINE_SRC)/..'
10630 # Check whether --with-expat or --without-expat was given.
10631 if test "${with_expat+set}" = set; then
10632 withval="$with_expat"
10637 echo "$as_me:$LINENO: checking whether to use expat" >&5
10638 echo $ECHO_N "checking whether to use expat... $ECHO_C" >&6
10639 echo "$as_me:$LINENO: result: $with_expat" >&5
10640 echo "${ECHO_T}$with_expat" >&6
10642 if test "${with_expat}" = no; then
10643 { echo "$as_me:$LINENO: WARNING: expat support disabled; some features may be unavailable." >&5
10644 echo "$as_me: WARNING: expat support disabled; some features may be unavailable." >&2;}
10648 if test "X$prefix" = "XNONE"; then
10649 acl_final_prefix="$ac_default_prefix"
10651 acl_final_prefix="$prefix"
10653 if test "X$exec_prefix" = "XNONE"; then
10654 acl_final_exec_prefix='${prefix}'
10656 acl_final_exec_prefix="$exec_prefix"
10658 acl_save_prefix="$prefix"
10659 prefix="$acl_final_prefix"
10660 eval acl_final_exec_prefix=\"$acl_final_exec_prefix\"
10661 prefix="$acl_save_prefix"
10664 # Check whether --with-gnu-ld or --without-gnu-ld was given.
10665 if test "${with_gnu_ld+set}" = set; then
10666 withval="$with_gnu_ld"
10667 test "$withval" = no || with_gnu_ld=yes
10671 # Prepare PATH_SEPARATOR.
10672 # The user is always right.
10673 if test "${PATH_SEPARATOR+set}" != set; then
10674 echo "#! /bin/sh" >conf$$.sh
10675 echo "exit 0" >>conf$$.sh
10677 if (PATH="/nonexistent;."; conf$$.sh) >/dev/null 2>&1; then
10685 if test "$GCC" = yes; then
10686 # Check if gcc -print-prog-name=ld gives a path.
10687 echo "$as_me:$LINENO: checking for ld used by GCC" >&5
10688 echo $ECHO_N "checking for ld used by GCC... $ECHO_C" >&6
10691 # gcc leaves a trailing carriage return which upsets mingw
10692 ac_prog=`($CC -print-prog-name=ld) 2>&5 | tr -d '\015'` ;;
10694 ac_prog=`($CC -print-prog-name=ld) 2>&5` ;;
10697 # Accept absolute paths.
10698 [\\/]* | [A-Za-z]:[\\/]*)
10699 re_direlt='/[^/][^/]*/\.\./'
10700 # Canonicalize the path of ld
10701 ac_prog=`echo $ac_prog| sed 's%\\\\%/%g'`
10702 while echo $ac_prog | grep "$re_direlt" > /dev/null 2>&1; do
10703 ac_prog=`echo $ac_prog| sed "s%$re_direlt%/%"`
10705 test -z "$LD" && LD="$ac_prog"
10708 # If it fails, then pretend we aren't using GCC.
10712 # If it is relative, then search for the first ld in PATH.
10713 with_gnu_ld=unknown
10716 elif test "$with_gnu_ld" = yes; then
10717 echo "$as_me:$LINENO: checking for GNU ld" >&5
10718 echo $ECHO_N "checking for GNU ld... $ECHO_C" >&6
10720 echo "$as_me:$LINENO: checking for non-GNU ld" >&5
10721 echo $ECHO_N "checking for non-GNU ld... $ECHO_C" >&6
10723 if test "${acl_cv_path_LD+set}" = set; then
10724 echo $ECHO_N "(cached) $ECHO_C" >&6
10726 if test -z "$LD"; then
10727 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS="${IFS}${PATH_SEPARATOR-:}"
10728 for ac_dir in $PATH; do
10729 test -z "$ac_dir" && ac_dir=.
10730 if test -f "$ac_dir/$ac_prog" || test -f "$ac_dir/$ac_prog$ac_exeext"; then
10731 acl_cv_path_LD="$ac_dir/$ac_prog"
10732 # Check to see if the program is GNU ld. I'd rather use --version,
10733 # but apparently some GNU ld's only accept -v.
10734 # Break only if it was the GNU/non-GNU ld that we prefer.
10735 if "$acl_cv_path_LD" -v 2>&1 < /dev/null | egrep '(GNU|with BFD)' > /dev/null; then
10736 test "$with_gnu_ld" != no && break
10738 test "$with_gnu_ld" != yes && break
10744 acl_cv_path_LD="$LD" # Let the user override the test with a path.
10748 LD="$acl_cv_path_LD"
10749 if test -n "$LD"; then
10750 echo "$as_me:$LINENO: result: $LD" >&5
10751 echo "${ECHO_T}$LD" >&6
10753 echo "$as_me:$LINENO: result: no" >&5
10754 echo "${ECHO_T}no" >&6
10756 test -z "$LD" && { { echo "$as_me:$LINENO: error: no acceptable ld found in \$PATH" >&5
10757 echo "$as_me: error: no acceptable ld found in \$PATH" >&2;}
10758 { (exit 1); exit 1; }; }
10759 echo "$as_me:$LINENO: checking if the linker ($LD) is GNU ld" >&5
10760 echo $ECHO_N "checking if the linker ($LD) is GNU ld... $ECHO_C" >&6
10761 if test "${acl_cv_prog_gnu_ld+set}" = set; then
10762 echo $ECHO_N "(cached) $ECHO_C" >&6
10764 # I'd rather use --version here, but apparently some GNU ld's only accept -v.
10765 if $LD -v 2>&1 </dev/null | egrep '(GNU|with BFD)' 1>&5; then
10766 acl_cv_prog_gnu_ld=yes
10768 acl_cv_prog_gnu_ld=no
10771 echo "$as_me:$LINENO: result: $acl_cv_prog_gnu_ld" >&5
10772 echo "${ECHO_T}$acl_cv_prog_gnu_ld" >&6
10773 with_gnu_ld=$acl_cv_prog_gnu_ld
10777 echo "$as_me:$LINENO: checking for shared library run path origin" >&5
10778 echo $ECHO_N "checking for shared library run path origin... $ECHO_C" >&6
10779 if test "${acl_cv_rpath+set}" = set; then
10780 echo $ECHO_N "(cached) $ECHO_C" >&6
10783 CC="$CC" GCC="$GCC" LDFLAGS="$LDFLAGS" LD="$LD" with_gnu_ld="$with_gnu_ld" \
10784 ${CONFIG_SHELL-/bin/sh} "$ac_aux_dir/config.rpath" "$host" > conftest.sh
10786 rm -f ./conftest.sh
10790 echo "$as_me:$LINENO: result: $acl_cv_rpath" >&5
10791 echo "${ECHO_T}$acl_cv_rpath" >&6
10793 libext="$acl_cv_libext"
10794 shlibext="$acl_cv_shlibext"
10795 hardcode_libdir_flag_spec="$acl_cv_hardcode_libdir_flag_spec"
10796 hardcode_libdir_separator="$acl_cv_hardcode_libdir_separator"
10797 hardcode_direct="$acl_cv_hardcode_direct"
10798 hardcode_minus_L="$acl_cv_hardcode_minus_L"
10799 # Check whether --enable-rpath or --disable-rpath was given.
10800 if test "${enable_rpath+set}" = set; then
10801 enableval="$enable_rpath"
10817 acl_save_prefix="$prefix"
10818 prefix="$acl_final_prefix"
10819 acl_save_exec_prefix="$exec_prefix"
10820 exec_prefix="$acl_final_exec_prefix"
10822 eval additional_includedir=\"$includedir\"
10823 eval additional_libdir=\"$libdir\"
10825 exec_prefix="$acl_save_exec_prefix"
10826 prefix="$acl_save_prefix"
10829 # Check whether --with-libexpat-prefix or --without-libexpat-prefix was given.
10830 if test "${with_libexpat_prefix+set}" = set; then
10831 withval="$with_libexpat_prefix"
10833 if test "X$withval" = "Xno"; then
10836 if test "X$withval" = "X"; then
10838 acl_save_prefix="$prefix"
10839 prefix="$acl_final_prefix"
10840 acl_save_exec_prefix="$exec_prefix"
10841 exec_prefix="$acl_final_exec_prefix"
10843 eval additional_includedir=\"$includedir\"
10844 eval additional_libdir=\"$libdir\"
10846 exec_prefix="$acl_save_exec_prefix"
10847 prefix="$acl_save_prefix"
10850 additional_includedir="$withval/include"
10851 additional_libdir="$withval/lib"
10861 names_already_handled=
10862 names_next_round='expat '
10863 while test -n "$names_next_round"; do
10864 names_this_round="$names_next_round"
10866 for name in $names_this_round; do
10868 for n in $names_already_handled; do
10869 if test "$n" = "$name"; then
10870 already_handled=yes
10874 if test -z "$already_handled"; then
10875 names_already_handled="$names_already_handled $name"
10876 uppername=`echo "$name" | sed -e 'y|abcdefghijklmnopqrstuvwxyz./-|ABCDEFGHIJKLMNOPQRSTUVWXYZ___|'`
10877 eval value=\"\$HAVE_LIB$uppername\"
10878 if test -n "$value"; then
10879 if test "$value" = yes; then
10880 eval value=\"\$LIB$uppername\"
10881 test -z "$value" || LIBEXPAT="${LIBEXPAT}${LIBEXPAT:+ }$value"
10882 eval value=\"\$LTLIB$uppername\"
10883 test -z "$value" || LTLIBEXPAT="${LTLIBEXPAT}${LTLIBEXPAT:+ }$value"
10892 if test $use_additional = yes; then
10893 if test -n "$shlibext" && test -f "$additional_libdir/lib$name.$shlibext"; then
10894 found_dir="$additional_libdir"
10895 found_so="$additional_libdir/lib$name.$shlibext"
10896 if test -f "$additional_libdir/lib$name.la"; then
10897 found_la="$additional_libdir/lib$name.la"
10900 if test -f "$additional_libdir/lib$name.$libext"; then
10901 found_dir="$additional_libdir"
10902 found_a="$additional_libdir/lib$name.$libext"
10903 if test -f "$additional_libdir/lib$name.la"; then
10904 found_la="$additional_libdir/lib$name.la"
10909 if test "X$found_dir" = "X"; then
10910 for x in $LDFLAGS $LTLIBEXPAT; do
10912 acl_save_prefix="$prefix"
10913 prefix="$acl_final_prefix"
10914 acl_save_exec_prefix="$exec_prefix"
10915 exec_prefix="$acl_final_exec_prefix"
10917 exec_prefix="$acl_save_exec_prefix"
10918 prefix="$acl_save_prefix"
10922 dir=`echo "X$x" | sed -e 's/^X-L//'`
10923 if test -n "$shlibext" && test -f "$dir/lib$name.$shlibext"; then
10925 found_so="$dir/lib$name.$shlibext"
10926 if test -f "$dir/lib$name.la"; then
10927 found_la="$dir/lib$name.la"
10930 if test -f "$dir/lib$name.$libext"; then
10932 found_a="$dir/lib$name.$libext"
10933 if test -f "$dir/lib$name.la"; then
10934 found_la="$dir/lib$name.la"
10940 if test "X$found_dir" != "X"; then
10945 if test "X$found_dir" != "X"; then
10946 LTLIBEXPAT="${LTLIBEXPAT}${LTLIBEXPAT:+ }-L$found_dir -l$name"
10947 if test "X$found_so" != "X"; then
10948 if test "$enable_rpath" = no || test "X$found_dir" = "X/usr/lib"; then
10949 LIBEXPAT="${LIBEXPAT}${LIBEXPAT:+ }$found_so"
10952 for x in $ltrpathdirs; do
10953 if test "X$x" = "X$found_dir"; then
10958 if test -z "$haveit"; then
10959 ltrpathdirs="$ltrpathdirs $found_dir"
10961 if test "$hardcode_direct" = yes; then
10962 LIBEXPAT="${LIBEXPAT}${LIBEXPAT:+ }$found_so"
10964 if test -n "$hardcode_libdir_flag_spec" && test "$hardcode_minus_L" = no; then
10965 LIBEXPAT="${LIBEXPAT}${LIBEXPAT:+ }$found_so"
10967 for x in $rpathdirs; do
10968 if test "X$x" = "X$found_dir"; then
10973 if test -z "$haveit"; then
10974 rpathdirs="$rpathdirs $found_dir"
10978 for x in $LDFLAGS $LIBEXPAT; do
10980 acl_save_prefix="$prefix"
10981 prefix="$acl_final_prefix"
10982 acl_save_exec_prefix="$exec_prefix"
10983 exec_prefix="$acl_final_exec_prefix"
10985 exec_prefix="$acl_save_exec_prefix"
10986 prefix="$acl_save_prefix"
10988 if test "X$x" = "X-L$found_dir"; then
10993 if test -z "$haveit"; then
10994 LIBEXPAT="${LIBEXPAT}${LIBEXPAT:+ }-L$found_dir"
10996 if test "$hardcode_minus_L" != no; then
10997 LIBEXPAT="${LIBEXPAT}${LIBEXPAT:+ }$found_so"
10999 LIBEXPAT="${LIBEXPAT}${LIBEXPAT:+ }-l$name"
11005 if test "X$found_a" != "X"; then
11006 LIBEXPAT="${LIBEXPAT}${LIBEXPAT:+ }$found_a"
11008 LIBEXPAT="${LIBEXPAT}${LIBEXPAT:+ }-L$found_dir -l$name"
11011 additional_includedir=
11012 case "$found_dir" in
11014 basedir=`echo "X$found_dir" | sed -e 's,^X,,' -e 's,/lib/*$,,'`
11015 additional_includedir="$basedir/include"
11018 if test "X$additional_includedir" != "X"; then
11019 if test "X$additional_includedir" != "X/usr/include"; then
11021 if test "X$additional_includedir" = "X/usr/local/include"; then
11022 if test -n "$GCC"; then
11024 linux*) haveit=yes;;
11028 if test -z "$haveit"; then
11029 for x in $CPPFLAGS $INCEXPAT; do
11031 acl_save_prefix="$prefix"
11032 prefix="$acl_final_prefix"
11033 acl_save_exec_prefix="$exec_prefix"
11034 exec_prefix="$acl_final_exec_prefix"
11036 exec_prefix="$acl_save_exec_prefix"
11037 prefix="$acl_save_prefix"
11039 if test "X$x" = "X-I$additional_includedir"; then
11044 if test -z "$haveit"; then
11045 if test -d "$additional_includedir"; then
11046 INCEXPAT="${INCEXPAT}${INCEXPAT:+ }-I$additional_includedir"
11052 if test -n "$found_la"; then
11053 save_libdir="$libdir"
11054 case "$found_la" in
11055 */* | *\\*) . "$found_la" ;;
11056 *) . "./$found_la" ;;
11058 libdir="$save_libdir"
11059 for dep in $dependency_libs; do
11062 additional_libdir=`echo "X$dep" | sed -e 's/^X-L//'`
11063 if test "X$additional_libdir" != "X/usr/lib"; then
11065 if test "X$additional_libdir" = "X/usr/local/lib"; then
11066 if test -n "$GCC"; then
11068 linux*) haveit=yes;;
11072 if test -z "$haveit"; then
11074 for x in $LDFLAGS $LIBEXPAT; do
11076 acl_save_prefix="$prefix"
11077 prefix="$acl_final_prefix"
11078 acl_save_exec_prefix="$exec_prefix"
11079 exec_prefix="$acl_final_exec_prefix"
11081 exec_prefix="$acl_save_exec_prefix"
11082 prefix="$acl_save_prefix"
11084 if test "X$x" = "X-L$additional_libdir"; then
11089 if test -z "$haveit"; then
11090 if test -d "$additional_libdir"; then
11091 LIBEXPAT="${LIBEXPAT}${LIBEXPAT:+ }-L$additional_libdir"
11095 for x in $LDFLAGS $LTLIBEXPAT; do
11097 acl_save_prefix="$prefix"
11098 prefix="$acl_final_prefix"
11099 acl_save_exec_prefix="$exec_prefix"
11100 exec_prefix="$acl_final_exec_prefix"
11102 exec_prefix="$acl_save_exec_prefix"
11103 prefix="$acl_save_prefix"
11105 if test "X$x" = "X-L$additional_libdir"; then
11110 if test -z "$haveit"; then
11111 if test -d "$additional_libdir"; then
11112 LTLIBEXPAT="${LTLIBEXPAT}${LTLIBEXPAT:+ }-L$additional_libdir"
11119 dir=`echo "X$dep" | sed -e 's/^X-R//'`
11120 if test "$enable_rpath" != no; then
11122 for x in $rpathdirs; do
11123 if test "X$x" = "X$dir"; then
11128 if test -z "$haveit"; then
11129 rpathdirs="$rpathdirs $dir"
11132 for x in $ltrpathdirs; do
11133 if test "X$x" = "X$dir"; then
11138 if test -z "$haveit"; then
11139 ltrpathdirs="$ltrpathdirs $dir"
11144 names_next_round="$names_next_round "`echo "X$dep" | sed -e 's/^X-l//'`
11147 names_next_round="$names_next_round "`echo "X$dep" | sed -e 's,^X.*/,,' -e 's,^lib,,' -e 's,\.la$,,'`
11150 LIBEXPAT="${LIBEXPAT}${LIBEXPAT:+ }$dep"
11151 LTLIBEXPAT="${LTLIBEXPAT}${LTLIBEXPAT:+ }$dep"
11157 LIBEXPAT="${LIBEXPAT}${LIBEXPAT:+ }-l$name"
11158 LTLIBEXPAT="${LTLIBEXPAT}${LTLIBEXPAT:+ }-l$name"
11164 if test "X$rpathdirs" != "X"; then
11165 if test -n "$hardcode_libdir_separator"; then
11167 for found_dir in $rpathdirs; do
11168 alldirs="${alldirs}${alldirs:+$hardcode_libdir_separator}$found_dir"
11170 acl_save_libdir="$libdir"
11172 eval flag=\"$hardcode_libdir_flag_spec\"
11173 libdir="$acl_save_libdir"
11174 LIBEXPAT="${LIBEXPAT}${LIBEXPAT:+ }$flag"
11176 for found_dir in $rpathdirs; do
11177 acl_save_libdir="$libdir"
11178 libdir="$found_dir"
11179 eval flag=\"$hardcode_libdir_flag_spec\"
11180 libdir="$acl_save_libdir"
11181 LIBEXPAT="${LIBEXPAT}${LIBEXPAT:+ }$flag"
11185 if test "X$ltrpathdirs" != "X"; then
11186 for found_dir in $ltrpathdirs; do
11187 LTLIBEXPAT="${LTLIBEXPAT}${LTLIBEXPAT:+ }-R$found_dir"
11192 ac_save_CPPFLAGS="$CPPFLAGS"
11194 for element in $INCEXPAT; do
11196 for x in $CPPFLAGS; do
11198 acl_save_prefix="$prefix"
11199 prefix="$acl_final_prefix"
11200 acl_save_exec_prefix="$exec_prefix"
11201 exec_prefix="$acl_final_exec_prefix"
11203 exec_prefix="$acl_save_exec_prefix"
11204 prefix="$acl_save_prefix"
11206 if test "X$x" = "X$element"; then
11211 if test -z "$haveit"; then
11212 CPPFLAGS="${CPPFLAGS}${CPPFLAGS:+ }$element"
11217 echo "$as_me:$LINENO: checking for libexpat" >&5
11218 echo $ECHO_N "checking for libexpat... $ECHO_C" >&6
11219 if test "${ac_cv_libexpat+set}" = set; then
11220 echo $ECHO_N "(cached) $ECHO_C" >&6
11223 ac_save_LIBS="$LIBS"
11224 LIBS="$LIBS $LIBEXPAT"
11225 cat >conftest.$ac_ext <<_ACEOF
11228 cat confdefs.h >>conftest.$ac_ext
11229 cat >>conftest.$ac_ext <<_ACEOF
11230 /* end confdefs.h. */
11235 XML_Parser p = XML_ParserCreate (0);
11240 rm -f conftest.$ac_objext conftest$ac_exeext
11241 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
11242 (eval $ac_link) 2>conftest.er1
11244 grep -v '^ *+' conftest.er1 >conftest.err
11246 cat conftest.err >&5
11247 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11248 (exit $ac_status); } &&
11249 { ac_try='test -z "$ac_c_werror_flag"
11250 || test ! -s conftest.err'
11251 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11252 (eval $ac_try) 2>&5
11254 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11255 (exit $ac_status); }; } &&
11256 { ac_try='test -s conftest$ac_exeext'
11257 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11258 (eval $ac_try) 2>&5
11260 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11261 (exit $ac_status); }; }; then
11264 echo "$as_me: failed program was:" >&5
11265 sed 's/^/| /' conftest.$ac_ext >&5
11269 rm -f conftest.err conftest.$ac_objext \
11270 conftest$ac_exeext conftest.$ac_ext
11271 LIBS="$ac_save_LIBS"
11274 echo "$as_me:$LINENO: result: $ac_cv_libexpat" >&5
11275 echo "${ECHO_T}$ac_cv_libexpat" >&6
11276 if test "$ac_cv_libexpat" = yes; then
11279 cat >>confdefs.h <<\_ACEOF
11280 #define HAVE_LIBEXPAT 1
11283 echo "$as_me:$LINENO: checking how to link with libexpat" >&5
11284 echo $ECHO_N "checking how to link with libexpat... $ECHO_C" >&6
11285 echo "$as_me:$LINENO: result: $LIBEXPAT" >&5
11286 echo "${ECHO_T}$LIBEXPAT" >&6
11289 CPPFLAGS="$ac_save_CPPFLAGS"
11299 if test "$HAVE_LIBEXPAT" != yes; then
11300 if test "$with_expat" = yes; then
11301 { { echo "$as_me:$LINENO: error: expat is missing or unusable" >&5
11302 echo "$as_me: error: expat is missing or unusable" >&2;}
11303 { (exit 1); exit 1; }; }
11305 { echo "$as_me:$LINENO: WARNING: expat is missing or unusable; some features may be unavailable." >&5
11306 echo "$as_me: WARNING: expat is missing or unusable; some features may be unavailable." >&2;}
11310 LIBS="$LIBS $LIBEXPAT"
11312 for ac_func in XML_StopParser
11314 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
11315 echo "$as_me:$LINENO: checking for $ac_func" >&5
11316 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
11317 if eval "test \"\${$as_ac_var+set}\" = set"; then
11318 echo $ECHO_N "(cached) $ECHO_C" >&6
11320 cat >conftest.$ac_ext <<_ACEOF
11323 cat confdefs.h >>conftest.$ac_ext
11324 cat >>conftest.$ac_ext <<_ACEOF
11325 /* end confdefs.h. */
11326 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
11327 For example, HP-UX 11i <limits.h> declares gettimeofday. */
11328 #define $ac_func innocuous_$ac_func
11330 /* System header to define __stub macros and hopefully few prototypes,
11331 which can conflict with char $ac_func (); below.
11332 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
11333 <limits.h> exists even on freestanding compilers. */
11336 # include <limits.h>
11338 # include <assert.h>
11343 /* Override any gcc2 internal prototype to avoid an error. */
11348 /* We use char because int might match the return type of a gcc2
11349 builtin and then its argument prototype would still apply. */
11351 /* The GNU C library defines this for functions which it implements
11352 to always fail with ENOSYS. Some functions are actually named
11353 something starting with __ and the normal name is an alias. */
11354 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
11357 char (*f) () = $ac_func;
11366 return f != $ac_func;
11371 rm -f conftest.$ac_objext conftest$ac_exeext
11372 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
11373 (eval $ac_link) 2>conftest.er1
11375 grep -v '^ *+' conftest.er1 >conftest.err
11377 cat conftest.err >&5
11378 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11379 (exit $ac_status); } &&
11380 { ac_try='test -z "$ac_c_werror_flag"
11381 || test ! -s conftest.err'
11382 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11383 (eval $ac_try) 2>&5
11385 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11386 (exit $ac_status); }; } &&
11387 { ac_try='test -s conftest$ac_exeext'
11388 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11389 (eval $ac_try) 2>&5
11391 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11392 (exit $ac_status); }; }; then
11393 eval "$as_ac_var=yes"
11395 echo "$as_me: failed program was:" >&5
11396 sed 's/^/| /' conftest.$ac_ext >&5
11398 eval "$as_ac_var=no"
11400 rm -f conftest.err conftest.$ac_objext \
11401 conftest$ac_exeext conftest.$ac_ext
11403 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
11404 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
11405 if test `eval echo '${'$as_ac_var'}'` = yes; then
11406 cat >>confdefs.h <<_ACEOF
11407 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
11420 # Check whether --with-python or --without-python was given.
11421 if test "${with_python+set}" = set; then
11422 withval="$with_python"
11427 echo "$as_me:$LINENO: checking whether to use python" >&5
11428 echo $ECHO_N "checking whether to use python... $ECHO_C" >&6
11429 echo "$as_me:$LINENO: result: $with_python" >&5
11430 echo "${ECHO_T}$with_python" >&6
11432 if test "${with_python}" = no; then
11433 { echo "$as_me:$LINENO: WARNING: python support disabled; some features may be unavailable." >&5
11434 echo "$as_me: WARNING: python support disabled; some features may be unavailable." >&2;}
11437 case "${with_python}" in
11439 # Leave as empty, use defaults.
11444 python_includes="-I${with_python}/include"
11445 python_libs="-L${with_python}/lib"
11448 { { echo "$as_me:$LINENO: error: invalid value for --with-python" >&5
11449 echo "$as_me: error: invalid value for --with-python" >&2;}
11450 { (exit 1); exit 1; }; }
11454 save_CPPFLAGS=$CPPFLAGS
11455 CPPFLAGS="$CPPFLAGS ${python_includes}"
11457 LIBS="$LIBS ${python_libs}"
11459 if test "${have_libpython}" = no; then
11464 HAVE_LIBPYTHON2_6=no
11465 echo "$as_me:$LINENO: checking for ${version}" >&5
11466 echo $ECHO_N "checking for ${version}... $ECHO_C" >&6
11468 LIBS="$LIBS -l${version}"
11469 cat >conftest.$ac_ext <<_ACEOF
11472 cat confdefs.h >>conftest.$ac_ext
11473 cat >>conftest.$ac_ext <<_ACEOF
11474 /* end confdefs.h. */
11475 #include "${version}/Python.h"
11484 rm -f conftest.$ac_objext conftest$ac_exeext
11485 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
11486 (eval $ac_link) 2>conftest.er1
11488 grep -v '^ *+' conftest.er1 >conftest.err
11490 cat conftest.err >&5
11491 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11492 (exit $ac_status); } &&
11493 { ac_try='test -z "$ac_c_werror_flag"
11494 || test ! -s conftest.err'
11495 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11496 (eval $ac_try) 2>&5
11498 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11499 (exit $ac_status); }; } &&
11500 { ac_try='test -s conftest$ac_exeext'
11501 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11502 (eval $ac_try) 2>&5
11504 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11505 (exit $ac_status); }; }; then
11506 HAVE_LIBPYTHON2_6=yes
11509 echo "$as_me: failed program was:" >&5
11510 sed 's/^/| /' conftest.$ac_ext >&5
11514 rm -f conftest.err conftest.$ac_objext \
11515 conftest$ac_exeext conftest.$ac_ext
11516 echo "$as_me:$LINENO: result: $HAVE_LIBPYTHON2_6" >&5
11517 echo "${ECHO_T}$HAVE_LIBPYTHON2_6" >&6
11519 if test "${HAVE_LIBPYTHON2_6}" = yes; then
11521 cat >>confdefs.h <<\_ACEOF
11522 #define HAVE_LIBPYTHON2_6 1
11527 if test ${have_libpython} = no; then
11532 HAVE_LIBPYTHON2_5=no
11533 echo "$as_me:$LINENO: checking for ${version}" >&5
11534 echo $ECHO_N "checking for ${version}... $ECHO_C" >&6
11536 LIBS="$LIBS -l${version}"
11537 cat >conftest.$ac_ext <<_ACEOF
11540 cat confdefs.h >>conftest.$ac_ext
11541 cat >>conftest.$ac_ext <<_ACEOF
11542 /* end confdefs.h. */
11543 #include "${version}/Python.h"
11552 rm -f conftest.$ac_objext conftest$ac_exeext
11553 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
11554 (eval $ac_link) 2>conftest.er1
11556 grep -v '^ *+' conftest.er1 >conftest.err
11558 cat conftest.err >&5
11559 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11560 (exit $ac_status); } &&
11561 { ac_try='test -z "$ac_c_werror_flag"
11562 || test ! -s conftest.err'
11563 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11564 (eval $ac_try) 2>&5
11566 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11567 (exit $ac_status); }; } &&
11568 { ac_try='test -s conftest$ac_exeext'
11569 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11570 (eval $ac_try) 2>&5
11572 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11573 (exit $ac_status); }; }; then
11574 HAVE_LIBPYTHON2_5=yes
11577 echo "$as_me: failed program was:" >&5
11578 sed 's/^/| /' conftest.$ac_ext >&5
11582 rm -f conftest.err conftest.$ac_objext \
11583 conftest$ac_exeext conftest.$ac_ext
11584 echo "$as_me:$LINENO: result: $HAVE_LIBPYTHON2_5" >&5
11585 echo "${ECHO_T}$HAVE_LIBPYTHON2_5" >&6
11587 if test "${HAVE_LIBPYTHON2_5}" = yes; then
11589 cat >>confdefs.h <<\_ACEOF
11590 #define HAVE_LIBPYTHON2_5 1
11595 if test ${have_libpython} = no; then
11600 HAVE_LIBPYTHON2_4=no
11601 echo "$as_me:$LINENO: checking for ${version}" >&5
11602 echo $ECHO_N "checking for ${version}... $ECHO_C" >&6
11604 LIBS="$LIBS -l${version}"
11605 cat >conftest.$ac_ext <<_ACEOF
11608 cat confdefs.h >>conftest.$ac_ext
11609 cat >>conftest.$ac_ext <<_ACEOF
11610 /* end confdefs.h. */
11611 #include "${version}/Python.h"
11620 rm -f conftest.$ac_objext conftest$ac_exeext
11621 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
11622 (eval $ac_link) 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_exeext'
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 HAVE_LIBPYTHON2_4=yes
11645 echo "$as_me: failed program was:" >&5
11646 sed 's/^/| /' conftest.$ac_ext >&5
11650 rm -f conftest.err conftest.$ac_objext \
11651 conftest$ac_exeext conftest.$ac_ext
11652 echo "$as_me:$LINENO: result: $HAVE_LIBPYTHON2_4" >&5
11653 echo "${ECHO_T}$HAVE_LIBPYTHON2_4" >&6
11655 if test "${HAVE_LIBPYTHON2_4}" = yes; then
11657 cat >>confdefs.h <<\_ACEOF
11658 #define HAVE_LIBPYTHON2_4 1
11663 if test ${have_libpython} = no; then
11664 case "${with_python}" in
11666 { { echo "$as_me:$LINENO: error: python is missing or unusable" >&5
11667 echo "$as_me: error: python is missing or unusable" >&2;}
11668 { (exit 1); exit 1; }; }
11671 { echo "$as_me:$LINENO: WARNING: python is missing or unusable; some features may be unavailable." >&5
11672 echo "$as_me: WARNING: python is missing or unusable; some features may be unavailable." >&2;}
11675 { { echo "$as_me:$LINENO: error: no usable python found at ${with_python}" >&5
11676 echo "$as_me: error: no usable python found at ${with_python}" >&2;}
11677 { (exit 1); exit 1; }; }
11680 CPPFLAGS=$save_CPPFLAGS
11685 if test "${have_libpython}" = yes; then
11687 cat >>confdefs.h <<\_ACEOF
11688 #define HAVE_PYTHON 1
11691 CONFIG_OBS="$CONFIG_OBS \$(SUBDIR_PYTHON_OBS)"
11692 CONFIG_DEPS="$CONFIG_DEPS \$(SUBDIR_PYTHON_DEPS)"
11693 CONFIG_SRCS="$CONFIG_SRCS \$(SUBDIR_PYTHON_SRCS)"
11694 ENABLE_CFLAGS="$ENABLE_CFLAGS \$(SUBDIR_PYTHON_CFLAGS)"
11696 # Flags needed to compile Python code (taken from python-config --cflags).
11697 # We cannot call python-config directly because it will output whatever was
11698 # used when compiling the Python interpreter itself, including flags which
11699 # would make the python-related objects be compiled differently from the
11700 # rest of GDB (e.g., -O2 and -fPIC).
11701 if test "${GCC}" = yes; then
11702 tentative_python_cflags="-fno-strict-aliasing -DNDEBUG -fwrapv"
11705 if test "x${tentative_python_cflags}" != x; then
11706 echo "$as_me:$LINENO: checking compiler flags for python code" >&5
11707 echo $ECHO_N "checking compiler flags for python code... $ECHO_C" >&6
11708 for flag in ${tentative_python_cflags}; do
11709 # Check that the compiler accepts it
11710 saved_CFLAGS="$CFLAGS"
11711 CFLAGS="$CFLAGS $flag"
11712 cat >conftest.$ac_ext <<_ACEOF
11715 cat confdefs.h >>conftest.$ac_ext
11716 cat >>conftest.$ac_ext <<_ACEOF
11717 /* end confdefs.h. */
11727 rm -f conftest.$ac_objext
11728 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
11729 (eval $ac_compile) 2>conftest.er1
11731 grep -v '^ *+' conftest.er1 >conftest.err
11733 cat conftest.err >&5
11734 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11735 (exit $ac_status); } &&
11736 { ac_try='test -z "$ac_c_werror_flag"
11737 || test ! -s conftest.err'
11738 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11739 (eval $ac_try) 2>&5
11741 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11742 (exit $ac_status); }; } &&
11743 { ac_try='test -s conftest.$ac_objext'
11744 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11745 (eval $ac_try) 2>&5
11747 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11748 (exit $ac_status); }; }; then
11749 PYTHON_CFLAGS="${PYTHON_CFLAGS} $flag"
11751 echo "$as_me: failed program was:" >&5
11752 sed 's/^/| /' conftest.$ac_ext >&5
11755 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
11756 CFLAGS="$saved_CFLAGS"
11758 echo "$as_me:$LINENO: result: ${PYTHON_CFLAGS}" >&5
11759 echo "${ECHO_T}${PYTHON_CFLAGS}" >&6
11762 # Even if Python support is not compiled in, we need to have these files
11763 # included in order to recognize the GDB command "python".
11764 CONFIG_OBS="$CONFIG_OBS python.o python-value.o"
11765 CONFIG_SRCS="$CONFIG_SRCS python/python.c python/python-value.c"
11769 # ------------------------- #
11770 # Checks for header files. #
11771 # ------------------------- #
11778 ac_header_dirent=no
11779 for ac_hdr in dirent.h sys/ndir.h sys/dir.h ndir.h; do
11780 as_ac_Header=`echo "ac_cv_header_dirent_$ac_hdr" | $as_tr_sh`
11781 echo "$as_me:$LINENO: checking for $ac_hdr that defines DIR" >&5
11782 echo $ECHO_N "checking for $ac_hdr that defines DIR... $ECHO_C" >&6
11783 if eval "test \"\${$as_ac_Header+set}\" = set"; then
11784 echo $ECHO_N "(cached) $ECHO_C" >&6
11786 cat >conftest.$ac_ext <<_ACEOF
11789 cat confdefs.h >>conftest.$ac_ext
11790 cat >>conftest.$ac_ext <<_ACEOF
11791 /* end confdefs.h. */
11792 #include <sys/types.h>
11804 rm -f conftest.$ac_objext
11805 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
11806 (eval $ac_compile) 2>conftest.er1
11808 grep -v '^ *+' conftest.er1 >conftest.err
11810 cat conftest.err >&5
11811 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11812 (exit $ac_status); } &&
11813 { ac_try='test -z "$ac_c_werror_flag"
11814 || test ! -s conftest.err'
11815 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11816 (eval $ac_try) 2>&5
11818 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11819 (exit $ac_status); }; } &&
11820 { ac_try='test -s conftest.$ac_objext'
11821 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11822 (eval $ac_try) 2>&5
11824 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11825 (exit $ac_status); }; }; then
11826 eval "$as_ac_Header=yes"
11828 echo "$as_me: failed program was:" >&5
11829 sed 's/^/| /' conftest.$ac_ext >&5
11831 eval "$as_ac_Header=no"
11833 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
11835 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
11836 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
11837 if test `eval echo '${'$as_ac_Header'}'` = yes; then
11838 cat >>confdefs.h <<_ACEOF
11839 #define `echo "HAVE_$ac_hdr" | $as_tr_cpp` 1
11842 ac_header_dirent=$ac_hdr; break
11846 # Two versions of opendir et al. are in -ldir and -lx on SCO Xenix.
11847 if test $ac_header_dirent = dirent.h; then
11848 echo "$as_me:$LINENO: checking for library containing opendir" >&5
11849 echo $ECHO_N "checking for library containing opendir... $ECHO_C" >&6
11850 if test "${ac_cv_search_opendir+set}" = set; then
11851 echo $ECHO_N "(cached) $ECHO_C" >&6
11853 ac_func_search_save_LIBS=$LIBS
11854 ac_cv_search_opendir=no
11855 cat >conftest.$ac_ext <<_ACEOF
11858 cat confdefs.h >>conftest.$ac_ext
11859 cat >>conftest.$ac_ext <<_ACEOF
11860 /* end confdefs.h. */
11862 /* Override any gcc2 internal prototype to avoid an error. */
11866 /* We use char because int might match the return type of a gcc2
11867 builtin and then its argument prototype would still apply. */
11877 rm -f conftest.$ac_objext conftest$ac_exeext
11878 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
11879 (eval $ac_link) 2>conftest.er1
11881 grep -v '^ *+' conftest.er1 >conftest.err
11883 cat conftest.err >&5
11884 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11885 (exit $ac_status); } &&
11886 { ac_try='test -z "$ac_c_werror_flag"
11887 || test ! -s conftest.err'
11888 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11889 (eval $ac_try) 2>&5
11891 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11892 (exit $ac_status); }; } &&
11893 { ac_try='test -s conftest$ac_exeext'
11894 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11895 (eval $ac_try) 2>&5
11897 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11898 (exit $ac_status); }; }; then
11899 ac_cv_search_opendir="none required"
11901 echo "$as_me: failed program was:" >&5
11902 sed 's/^/| /' conftest.$ac_ext >&5
11905 rm -f conftest.err conftest.$ac_objext \
11906 conftest$ac_exeext conftest.$ac_ext
11907 if test "$ac_cv_search_opendir" = no; then
11908 for ac_lib in dir; do
11909 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
11910 cat >conftest.$ac_ext <<_ACEOF
11913 cat confdefs.h >>conftest.$ac_ext
11914 cat >>conftest.$ac_ext <<_ACEOF
11915 /* end confdefs.h. */
11917 /* Override any gcc2 internal prototype to avoid an error. */
11921 /* We use char because int might match the return type of a gcc2
11922 builtin and then its argument prototype would still apply. */
11932 rm -f conftest.$ac_objext conftest$ac_exeext
11933 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
11934 (eval $ac_link) 2>conftest.er1
11936 grep -v '^ *+' conftest.er1 >conftest.err
11938 cat conftest.err >&5
11939 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11940 (exit $ac_status); } &&
11941 { ac_try='test -z "$ac_c_werror_flag"
11942 || test ! -s conftest.err'
11943 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11944 (eval $ac_try) 2>&5
11946 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11947 (exit $ac_status); }; } &&
11948 { ac_try='test -s conftest$ac_exeext'
11949 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11950 (eval $ac_try) 2>&5
11952 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11953 (exit $ac_status); }; }; then
11954 ac_cv_search_opendir="-l$ac_lib"
11957 echo "$as_me: failed program was:" >&5
11958 sed 's/^/| /' conftest.$ac_ext >&5
11961 rm -f conftest.err conftest.$ac_objext \
11962 conftest$ac_exeext conftest.$ac_ext
11965 LIBS=$ac_func_search_save_LIBS
11967 echo "$as_me:$LINENO: result: $ac_cv_search_opendir" >&5
11968 echo "${ECHO_T}$ac_cv_search_opendir" >&6
11969 if test "$ac_cv_search_opendir" != no; then
11970 test "$ac_cv_search_opendir" = "none required" || LIBS="$ac_cv_search_opendir $LIBS"
11975 echo "$as_me:$LINENO: checking for library containing opendir" >&5
11976 echo $ECHO_N "checking for library containing opendir... $ECHO_C" >&6
11977 if test "${ac_cv_search_opendir+set}" = set; then
11978 echo $ECHO_N "(cached) $ECHO_C" >&6
11980 ac_func_search_save_LIBS=$LIBS
11981 ac_cv_search_opendir=no
11982 cat >conftest.$ac_ext <<_ACEOF
11985 cat confdefs.h >>conftest.$ac_ext
11986 cat >>conftest.$ac_ext <<_ACEOF
11987 /* end confdefs.h. */
11989 /* Override any gcc2 internal prototype to avoid an error. */
11993 /* We use char because int might match the return type of a gcc2
11994 builtin and then its argument prototype would still apply. */
12004 rm -f conftest.$ac_objext conftest$ac_exeext
12005 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
12006 (eval $ac_link) 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_exeext'
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_cv_search_opendir="none required"
12028 echo "$as_me: failed program was:" >&5
12029 sed 's/^/| /' conftest.$ac_ext >&5
12032 rm -f conftest.err conftest.$ac_objext \
12033 conftest$ac_exeext conftest.$ac_ext
12034 if test "$ac_cv_search_opendir" = no; then
12035 for ac_lib in x; do
12036 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
12037 cat >conftest.$ac_ext <<_ACEOF
12040 cat confdefs.h >>conftest.$ac_ext
12041 cat >>conftest.$ac_ext <<_ACEOF
12042 /* end confdefs.h. */
12044 /* Override any gcc2 internal prototype to avoid an error. */
12048 /* We use char because int might match the return type of a gcc2
12049 builtin and then its argument prototype would still apply. */
12059 rm -f conftest.$ac_objext conftest$ac_exeext
12060 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
12061 (eval $ac_link) 2>conftest.er1
12063 grep -v '^ *+' conftest.er1 >conftest.err
12065 cat conftest.err >&5
12066 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12067 (exit $ac_status); } &&
12068 { ac_try='test -z "$ac_c_werror_flag"
12069 || test ! -s conftest.err'
12070 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12071 (eval $ac_try) 2>&5
12073 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12074 (exit $ac_status); }; } &&
12075 { ac_try='test -s conftest$ac_exeext'
12076 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12077 (eval $ac_try) 2>&5
12079 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12080 (exit $ac_status); }; }; then
12081 ac_cv_search_opendir="-l$ac_lib"
12084 echo "$as_me: failed program was:" >&5
12085 sed 's/^/| /' conftest.$ac_ext >&5
12088 rm -f conftest.err conftest.$ac_objext \
12089 conftest$ac_exeext conftest.$ac_ext
12092 LIBS=$ac_func_search_save_LIBS
12094 echo "$as_me:$LINENO: result: $ac_cv_search_opendir" >&5
12095 echo "${ECHO_T}$ac_cv_search_opendir" >&6
12096 if test "$ac_cv_search_opendir" != no; then
12097 test "$ac_cv_search_opendir" = "none required" || LIBS="$ac_cv_search_opendir $LIBS"
12103 echo "$as_me:$LINENO: checking whether stat file-mode macros are broken" >&5
12104 echo $ECHO_N "checking whether stat file-mode macros are broken... $ECHO_C" >&6
12105 if test "${ac_cv_header_stat_broken+set}" = set; then
12106 echo $ECHO_N "(cached) $ECHO_C" >&6
12108 cat >conftest.$ac_ext <<_ACEOF
12111 cat confdefs.h >>conftest.$ac_ext
12112 cat >>conftest.$ac_ext <<_ACEOF
12113 /* end confdefs.h. */
12114 #include <sys/types.h>
12115 #include <sys/stat.h>
12117 #if defined(S_ISBLK) && defined(S_IFDIR)
12118 # if S_ISBLK (S_IFDIR)
12123 #if defined(S_ISBLK) && defined(S_IFCHR)
12124 # if S_ISBLK (S_IFCHR)
12129 #if defined(S_ISLNK) && defined(S_IFREG)
12130 # if S_ISLNK (S_IFREG)
12135 #if defined(S_ISSOCK) && defined(S_IFREG)
12136 # if S_ISSOCK (S_IFREG)
12142 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
12143 $EGREP "You lose" >/dev/null 2>&1; then
12144 ac_cv_header_stat_broken=yes
12146 ac_cv_header_stat_broken=no
12151 echo "$as_me:$LINENO: result: $ac_cv_header_stat_broken" >&5
12152 echo "${ECHO_T}$ac_cv_header_stat_broken" >&6
12153 if test $ac_cv_header_stat_broken = yes; then
12155 cat >>confdefs.h <<\_ACEOF
12156 #define STAT_MACROS_BROKEN 1
12161 echo "$as_me:$LINENO: checking for ANSI C header files" >&5
12162 echo $ECHO_N "checking for ANSI C header files... $ECHO_C" >&6
12163 if test "${ac_cv_header_stdc+set}" = set; then
12164 echo $ECHO_N "(cached) $ECHO_C" >&6
12166 cat >conftest.$ac_ext <<_ACEOF
12169 cat confdefs.h >>conftest.$ac_ext
12170 cat >>conftest.$ac_ext <<_ACEOF
12171 /* end confdefs.h. */
12172 #include <stdlib.h>
12173 #include <stdarg.h>
12174 #include <string.h>
12185 rm -f conftest.$ac_objext
12186 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
12187 (eval $ac_compile) 2>conftest.er1
12189 grep -v '^ *+' conftest.er1 >conftest.err
12191 cat conftest.err >&5
12192 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12193 (exit $ac_status); } &&
12194 { ac_try='test -z "$ac_c_werror_flag"
12195 || test ! -s conftest.err'
12196 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12197 (eval $ac_try) 2>&5
12199 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12200 (exit $ac_status); }; } &&
12201 { ac_try='test -s conftest.$ac_objext'
12202 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12203 (eval $ac_try) 2>&5
12205 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12206 (exit $ac_status); }; }; then
12207 ac_cv_header_stdc=yes
12209 echo "$as_me: failed program was:" >&5
12210 sed 's/^/| /' conftest.$ac_ext >&5
12212 ac_cv_header_stdc=no
12214 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
12216 if test $ac_cv_header_stdc = yes; then
12217 # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
12218 cat >conftest.$ac_ext <<_ACEOF
12221 cat confdefs.h >>conftest.$ac_ext
12222 cat >>conftest.$ac_ext <<_ACEOF
12223 /* end confdefs.h. */
12224 #include <string.h>
12227 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
12228 $EGREP "memchr" >/dev/null 2>&1; then
12231 ac_cv_header_stdc=no
12237 if test $ac_cv_header_stdc = yes; then
12238 # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
12239 cat >conftest.$ac_ext <<_ACEOF
12242 cat confdefs.h >>conftest.$ac_ext
12243 cat >>conftest.$ac_ext <<_ACEOF
12244 /* end confdefs.h. */
12245 #include <stdlib.h>
12248 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
12249 $EGREP "free" >/dev/null 2>&1; then
12252 ac_cv_header_stdc=no
12258 if test $ac_cv_header_stdc = yes; then
12259 # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
12260 if test "$cross_compiling" = yes; then
12263 cat >conftest.$ac_ext <<_ACEOF
12266 cat confdefs.h >>conftest.$ac_ext
12267 cat >>conftest.$ac_ext <<_ACEOF
12268 /* end confdefs.h. */
12270 #if ((' ' & 0x0FF) == 0x020)
12271 # define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
12272 # define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
12274 # define ISLOWER(c) \
12275 (('a' <= (c) && (c) <= 'i') \
12276 || ('j' <= (c) && (c) <= 'r') \
12277 || ('s' <= (c) && (c) <= 'z'))
12278 # define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
12281 #define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
12286 for (i = 0; i < 256; i++)
12287 if (XOR (islower (i), ISLOWER (i))
12288 || toupper (i) != TOUPPER (i))
12293 rm -f conftest$ac_exeext
12294 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
12295 (eval $ac_link) 2>&5
12297 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12298 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
12299 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12300 (eval $ac_try) 2>&5
12302 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12303 (exit $ac_status); }; }; then
12306 echo "$as_me: program exited with status $ac_status" >&5
12307 echo "$as_me: failed program was:" >&5
12308 sed 's/^/| /' conftest.$ac_ext >&5
12310 ( exit $ac_status )
12311 ac_cv_header_stdc=no
12313 rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
12317 echo "$as_me:$LINENO: result: $ac_cv_header_stdc" >&5
12318 echo "${ECHO_T}$ac_cv_header_stdc" >&6
12319 if test $ac_cv_header_stdc = yes; then
12321 cat >>confdefs.h <<\_ACEOF
12322 #define STDC_HEADERS 1
12328 for ac_header in nlist.h
12330 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
12331 if eval "test \"\${$as_ac_Header+set}\" = set"; then
12332 echo "$as_me:$LINENO: checking for $ac_header" >&5
12333 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
12334 if eval "test \"\${$as_ac_Header+set}\" = set"; then
12335 echo $ECHO_N "(cached) $ECHO_C" >&6
12337 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
12338 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
12340 # Is the header compilable?
12341 echo "$as_me:$LINENO: checking $ac_header usability" >&5
12342 echo $ECHO_N "checking $ac_header usability... $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 $ac_includes_default
12350 #include <$ac_header>
12352 rm -f conftest.$ac_objext
12353 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
12354 (eval $ac_compile) 2>conftest.er1
12356 grep -v '^ *+' conftest.er1 >conftest.err
12358 cat conftest.err >&5
12359 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12360 (exit $ac_status); } &&
12361 { ac_try='test -z "$ac_c_werror_flag"
12362 || test ! -s conftest.err'
12363 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12364 (eval $ac_try) 2>&5
12366 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12367 (exit $ac_status); }; } &&
12368 { ac_try='test -s conftest.$ac_objext'
12369 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12370 (eval $ac_try) 2>&5
12372 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12373 (exit $ac_status); }; }; then
12374 ac_header_compiler=yes
12376 echo "$as_me: failed program was:" >&5
12377 sed 's/^/| /' conftest.$ac_ext >&5
12379 ac_header_compiler=no
12381 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
12382 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
12383 echo "${ECHO_T}$ac_header_compiler" >&6
12385 # Is the header present?
12386 echo "$as_me:$LINENO: checking $ac_header presence" >&5
12387 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
12388 cat >conftest.$ac_ext <<_ACEOF
12391 cat confdefs.h >>conftest.$ac_ext
12392 cat >>conftest.$ac_ext <<_ACEOF
12393 /* end confdefs.h. */
12394 #include <$ac_header>
12396 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
12397 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
12399 grep -v '^ *+' conftest.er1 >conftest.err
12401 cat conftest.err >&5
12402 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12403 (exit $ac_status); } >/dev/null; then
12404 if test -s conftest.err; then
12405 ac_cpp_err=$ac_c_preproc_warn_flag
12406 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
12413 if test -z "$ac_cpp_err"; then
12414 ac_header_preproc=yes
12416 echo "$as_me: failed program was:" >&5
12417 sed 's/^/| /' conftest.$ac_ext >&5
12419 ac_header_preproc=no
12421 rm -f conftest.err conftest.$ac_ext
12422 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
12423 echo "${ECHO_T}$ac_header_preproc" >&6
12425 # So? What about this header?
12426 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
12428 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
12429 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
12430 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
12431 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
12432 ac_header_preproc=yes
12435 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
12436 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
12437 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
12438 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
12439 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
12440 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
12441 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
12442 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
12443 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
12444 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
12445 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
12446 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
12449 ## ------------------------------------------ ##
12450 ## Report this to the AC_PACKAGE_NAME lists. ##
12451 ## ------------------------------------------ ##
12454 sed "s/^/$as_me: WARNING: /" >&2
12457 echo "$as_me:$LINENO: checking for $ac_header" >&5
12458 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
12459 if eval "test \"\${$as_ac_Header+set}\" = set"; then
12460 echo $ECHO_N "(cached) $ECHO_C" >&6
12462 eval "$as_ac_Header=\$ac_header_preproc"
12464 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
12465 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
12468 if test `eval echo '${'$as_ac_Header'}'` = yes; then
12469 cat >>confdefs.h <<_ACEOF
12470 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
12478 for ac_header in link.h
12480 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
12481 echo "$as_me:$LINENO: checking for $ac_header" >&5
12482 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
12483 if eval "test \"\${$as_ac_Header+set}\" = set"; then
12484 echo $ECHO_N "(cached) $ECHO_C" >&6
12486 cat >conftest.$ac_ext <<_ACEOF
12489 cat confdefs.h >>conftest.$ac_ext
12490 cat >>conftest.$ac_ext <<_ACEOF
12491 /* end confdefs.h. */
12492 #if HAVE_SYS_TYPES_H
12493 # include <sys/types.h>
12496 # include <nlist.h>
12500 #include <$ac_header>
12502 rm -f conftest.$ac_objext
12503 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
12504 (eval $ac_compile) 2>conftest.er1
12506 grep -v '^ *+' conftest.er1 >conftest.err
12508 cat conftest.err >&5
12509 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12510 (exit $ac_status); } &&
12511 { ac_try='test -z "$ac_c_werror_flag"
12512 || test ! -s conftest.err'
12513 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12514 (eval $ac_try) 2>&5
12516 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12517 (exit $ac_status); }; } &&
12518 { ac_try='test -s conftest.$ac_objext'
12519 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12520 (eval $ac_try) 2>&5
12522 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12523 (exit $ac_status); }; }; then
12524 eval "$as_ac_Header=yes"
12526 echo "$as_me: failed program was:" >&5
12527 sed 's/^/| /' conftest.$ac_ext >&5
12529 eval "$as_ac_Header=no"
12531 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
12533 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
12534 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
12535 if test `eval echo '${'$as_ac_Header'}'` = yes; then
12536 cat >>confdefs.h <<_ACEOF
12537 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
12545 for ac_header in machine/reg.h
12547 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
12548 if eval "test \"\${$as_ac_Header+set}\" = set"; then
12549 echo "$as_me:$LINENO: checking for $ac_header" >&5
12550 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
12551 if eval "test \"\${$as_ac_Header+set}\" = set"; then
12552 echo $ECHO_N "(cached) $ECHO_C" >&6
12554 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
12555 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
12557 # Is the header compilable?
12558 echo "$as_me:$LINENO: checking $ac_header usability" >&5
12559 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
12560 cat >conftest.$ac_ext <<_ACEOF
12563 cat confdefs.h >>conftest.$ac_ext
12564 cat >>conftest.$ac_ext <<_ACEOF
12565 /* end confdefs.h. */
12566 $ac_includes_default
12567 #include <$ac_header>
12569 rm -f conftest.$ac_objext
12570 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
12571 (eval $ac_compile) 2>conftest.er1
12573 grep -v '^ *+' conftest.er1 >conftest.err
12575 cat conftest.err >&5
12576 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12577 (exit $ac_status); } &&
12578 { ac_try='test -z "$ac_c_werror_flag"
12579 || test ! -s conftest.err'
12580 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12581 (eval $ac_try) 2>&5
12583 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12584 (exit $ac_status); }; } &&
12585 { ac_try='test -s conftest.$ac_objext'
12586 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12587 (eval $ac_try) 2>&5
12589 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12590 (exit $ac_status); }; }; then
12591 ac_header_compiler=yes
12593 echo "$as_me: failed program was:" >&5
12594 sed 's/^/| /' conftest.$ac_ext >&5
12596 ac_header_compiler=no
12598 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
12599 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
12600 echo "${ECHO_T}$ac_header_compiler" >&6
12602 # Is the header present?
12603 echo "$as_me:$LINENO: checking $ac_header presence" >&5
12604 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
12605 cat >conftest.$ac_ext <<_ACEOF
12608 cat confdefs.h >>conftest.$ac_ext
12609 cat >>conftest.$ac_ext <<_ACEOF
12610 /* end confdefs.h. */
12611 #include <$ac_header>
12613 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
12614 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
12616 grep -v '^ *+' conftest.er1 >conftest.err
12618 cat conftest.err >&5
12619 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12620 (exit $ac_status); } >/dev/null; then
12621 if test -s conftest.err; then
12622 ac_cpp_err=$ac_c_preproc_warn_flag
12623 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
12630 if test -z "$ac_cpp_err"; then
12631 ac_header_preproc=yes
12633 echo "$as_me: failed program was:" >&5
12634 sed 's/^/| /' conftest.$ac_ext >&5
12636 ac_header_preproc=no
12638 rm -f conftest.err conftest.$ac_ext
12639 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
12640 echo "${ECHO_T}$ac_header_preproc" >&6
12642 # So? What about this header?
12643 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
12645 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
12646 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
12647 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
12648 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
12649 ac_header_preproc=yes
12652 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
12653 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
12654 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
12655 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
12656 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
12657 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
12658 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
12659 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
12660 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
12661 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
12662 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
12663 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
12666 ## ------------------------------------------ ##
12667 ## Report this to the AC_PACKAGE_NAME lists. ##
12668 ## ------------------------------------------ ##
12671 sed "s/^/$as_me: WARNING: /" >&2
12674 echo "$as_me:$LINENO: checking for $ac_header" >&5
12675 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
12676 if eval "test \"\${$as_ac_Header+set}\" = set"; then
12677 echo $ECHO_N "(cached) $ECHO_C" >&6
12679 eval "$as_ac_Header=\$ac_header_preproc"
12681 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
12682 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
12685 if test `eval echo '${'$as_ac_Header'}'` = yes; then
12686 cat >>confdefs.h <<_ACEOF
12687 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
12696 for ac_header in poll.h sys/poll.h
12698 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
12699 if eval "test \"\${$as_ac_Header+set}\" = set"; then
12700 echo "$as_me:$LINENO: checking for $ac_header" >&5
12701 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
12702 if eval "test \"\${$as_ac_Header+set}\" = set"; then
12703 echo $ECHO_N "(cached) $ECHO_C" >&6
12705 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
12706 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
12708 # Is the header compilable?
12709 echo "$as_me:$LINENO: checking $ac_header usability" >&5
12710 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
12711 cat >conftest.$ac_ext <<_ACEOF
12714 cat confdefs.h >>conftest.$ac_ext
12715 cat >>conftest.$ac_ext <<_ACEOF
12716 /* end confdefs.h. */
12717 $ac_includes_default
12718 #include <$ac_header>
12720 rm -f conftest.$ac_objext
12721 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
12722 (eval $ac_compile) 2>conftest.er1
12724 grep -v '^ *+' conftest.er1 >conftest.err
12726 cat conftest.err >&5
12727 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12728 (exit $ac_status); } &&
12729 { ac_try='test -z "$ac_c_werror_flag"
12730 || test ! -s conftest.err'
12731 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12732 (eval $ac_try) 2>&5
12734 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12735 (exit $ac_status); }; } &&
12736 { ac_try='test -s conftest.$ac_objext'
12737 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12738 (eval $ac_try) 2>&5
12740 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12741 (exit $ac_status); }; }; then
12742 ac_header_compiler=yes
12744 echo "$as_me: failed program was:" >&5
12745 sed 's/^/| /' conftest.$ac_ext >&5
12747 ac_header_compiler=no
12749 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
12750 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
12751 echo "${ECHO_T}$ac_header_compiler" >&6
12753 # Is the header present?
12754 echo "$as_me:$LINENO: checking $ac_header presence" >&5
12755 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
12756 cat >conftest.$ac_ext <<_ACEOF
12759 cat confdefs.h >>conftest.$ac_ext
12760 cat >>conftest.$ac_ext <<_ACEOF
12761 /* end confdefs.h. */
12762 #include <$ac_header>
12764 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
12765 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
12767 grep -v '^ *+' conftest.er1 >conftest.err
12769 cat conftest.err >&5
12770 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12771 (exit $ac_status); } >/dev/null; then
12772 if test -s conftest.err; then
12773 ac_cpp_err=$ac_c_preproc_warn_flag
12774 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
12781 if test -z "$ac_cpp_err"; then
12782 ac_header_preproc=yes
12784 echo "$as_me: failed program was:" >&5
12785 sed 's/^/| /' conftest.$ac_ext >&5
12787 ac_header_preproc=no
12789 rm -f conftest.err conftest.$ac_ext
12790 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
12791 echo "${ECHO_T}$ac_header_preproc" >&6
12793 # So? What about this header?
12794 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
12796 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
12797 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
12798 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
12799 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
12800 ac_header_preproc=yes
12803 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
12804 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
12805 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
12806 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
12807 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
12808 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
12809 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
12810 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
12811 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
12812 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
12813 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
12814 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
12817 ## ------------------------------------------ ##
12818 ## Report this to the AC_PACKAGE_NAME lists. ##
12819 ## ------------------------------------------ ##
12822 sed "s/^/$as_me: WARNING: /" >&2
12825 echo "$as_me:$LINENO: checking for $ac_header" >&5
12826 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
12827 if eval "test \"\${$as_ac_Header+set}\" = set"; then
12828 echo $ECHO_N "(cached) $ECHO_C" >&6
12830 eval "$as_ac_Header=\$ac_header_preproc"
12832 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
12833 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
12836 if test `eval echo '${'$as_ac_Header'}'` = yes; then
12837 cat >>confdefs.h <<_ACEOF
12838 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
12848 for ac_header in proc_service.h thread_db.h gnu/libc-version.h
12850 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
12851 if eval "test \"\${$as_ac_Header+set}\" = set"; then
12852 echo "$as_me:$LINENO: checking for $ac_header" >&5
12853 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
12854 if eval "test \"\${$as_ac_Header+set}\" = set"; then
12855 echo $ECHO_N "(cached) $ECHO_C" >&6
12857 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
12858 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
12860 # Is the header compilable?
12861 echo "$as_me:$LINENO: checking $ac_header usability" >&5
12862 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
12863 cat >conftest.$ac_ext <<_ACEOF
12866 cat confdefs.h >>conftest.$ac_ext
12867 cat >>conftest.$ac_ext <<_ACEOF
12868 /* end confdefs.h. */
12869 $ac_includes_default
12870 #include <$ac_header>
12872 rm -f conftest.$ac_objext
12873 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
12874 (eval $ac_compile) 2>conftest.er1
12876 grep -v '^ *+' conftest.er1 >conftest.err
12878 cat conftest.err >&5
12879 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12880 (exit $ac_status); } &&
12881 { ac_try='test -z "$ac_c_werror_flag"
12882 || test ! -s conftest.err'
12883 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12884 (eval $ac_try) 2>&5
12886 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12887 (exit $ac_status); }; } &&
12888 { ac_try='test -s conftest.$ac_objext'
12889 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12890 (eval $ac_try) 2>&5
12892 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12893 (exit $ac_status); }; }; then
12894 ac_header_compiler=yes
12896 echo "$as_me: failed program was:" >&5
12897 sed 's/^/| /' conftest.$ac_ext >&5
12899 ac_header_compiler=no
12901 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
12902 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
12903 echo "${ECHO_T}$ac_header_compiler" >&6
12905 # Is the header present?
12906 echo "$as_me:$LINENO: checking $ac_header presence" >&5
12907 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
12908 cat >conftest.$ac_ext <<_ACEOF
12911 cat confdefs.h >>conftest.$ac_ext
12912 cat >>conftest.$ac_ext <<_ACEOF
12913 /* end confdefs.h. */
12914 #include <$ac_header>
12916 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
12917 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
12919 grep -v '^ *+' conftest.er1 >conftest.err
12921 cat conftest.err >&5
12922 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12923 (exit $ac_status); } >/dev/null; then
12924 if test -s conftest.err; then
12925 ac_cpp_err=$ac_c_preproc_warn_flag
12926 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
12933 if test -z "$ac_cpp_err"; then
12934 ac_header_preproc=yes
12936 echo "$as_me: failed program was:" >&5
12937 sed 's/^/| /' conftest.$ac_ext >&5
12939 ac_header_preproc=no
12941 rm -f conftest.err conftest.$ac_ext
12942 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
12943 echo "${ECHO_T}$ac_header_preproc" >&6
12945 # So? What about this header?
12946 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
12948 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
12949 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
12950 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
12951 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
12952 ac_header_preproc=yes
12955 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
12956 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
12957 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
12958 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
12959 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
12960 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
12961 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
12962 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
12963 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
12964 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
12965 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
12966 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
12969 ## ------------------------------------------ ##
12970 ## Report this to the AC_PACKAGE_NAME lists. ##
12971 ## ------------------------------------------ ##
12974 sed "s/^/$as_me: WARNING: /" >&2
12977 echo "$as_me:$LINENO: checking for $ac_header" >&5
12978 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
12979 if eval "test \"\${$as_ac_Header+set}\" = set"; then
12980 echo $ECHO_N "(cached) $ECHO_C" >&6
12982 eval "$as_ac_Header=\$ac_header_preproc"
12984 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
12985 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
12988 if test `eval echo '${'$as_ac_Header'}'` = yes; then
12989 cat >>confdefs.h <<_ACEOF
12990 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
12998 for ac_header in signal.h
13000 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
13001 if eval "test \"\${$as_ac_Header+set}\" = set"; then
13002 echo "$as_me:$LINENO: checking for $ac_header" >&5
13003 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
13004 if eval "test \"\${$as_ac_Header+set}\" = set"; then
13005 echo $ECHO_N "(cached) $ECHO_C" >&6
13007 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
13008 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
13010 # Is the header compilable?
13011 echo "$as_me:$LINENO: checking $ac_header usability" >&5
13012 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
13013 cat >conftest.$ac_ext <<_ACEOF
13016 cat confdefs.h >>conftest.$ac_ext
13017 cat >>conftest.$ac_ext <<_ACEOF
13018 /* end confdefs.h. */
13019 $ac_includes_default
13020 #include <$ac_header>
13022 rm -f conftest.$ac_objext
13023 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
13024 (eval $ac_compile) 2>conftest.er1
13026 grep -v '^ *+' conftest.er1 >conftest.err
13028 cat conftest.err >&5
13029 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13030 (exit $ac_status); } &&
13031 { ac_try='test -z "$ac_c_werror_flag"
13032 || test ! -s conftest.err'
13033 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13034 (eval $ac_try) 2>&5
13036 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13037 (exit $ac_status); }; } &&
13038 { ac_try='test -s conftest.$ac_objext'
13039 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13040 (eval $ac_try) 2>&5
13042 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13043 (exit $ac_status); }; }; then
13044 ac_header_compiler=yes
13046 echo "$as_me: failed program was:" >&5
13047 sed 's/^/| /' conftest.$ac_ext >&5
13049 ac_header_compiler=no
13051 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
13052 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
13053 echo "${ECHO_T}$ac_header_compiler" >&6
13055 # Is the header present?
13056 echo "$as_me:$LINENO: checking $ac_header presence" >&5
13057 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
13058 cat >conftest.$ac_ext <<_ACEOF
13061 cat confdefs.h >>conftest.$ac_ext
13062 cat >>conftest.$ac_ext <<_ACEOF
13063 /* end confdefs.h. */
13064 #include <$ac_header>
13066 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
13067 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
13069 grep -v '^ *+' conftest.er1 >conftest.err
13071 cat conftest.err >&5
13072 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13073 (exit $ac_status); } >/dev/null; then
13074 if test -s conftest.err; then
13075 ac_cpp_err=$ac_c_preproc_warn_flag
13076 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
13083 if test -z "$ac_cpp_err"; then
13084 ac_header_preproc=yes
13086 echo "$as_me: failed program was:" >&5
13087 sed 's/^/| /' conftest.$ac_ext >&5
13089 ac_header_preproc=no
13091 rm -f conftest.err conftest.$ac_ext
13092 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
13093 echo "${ECHO_T}$ac_header_preproc" >&6
13095 # So? What about this header?
13096 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
13098 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
13099 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
13100 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
13101 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
13102 ac_header_preproc=yes
13105 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
13106 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
13107 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
13108 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
13109 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
13110 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
13111 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
13112 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
13113 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
13114 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
13115 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
13116 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
13119 ## ------------------------------------------ ##
13120 ## Report this to the AC_PACKAGE_NAME lists. ##
13121 ## ------------------------------------------ ##
13124 sed "s/^/$as_me: WARNING: /" >&2
13127 echo "$as_me:$LINENO: checking for $ac_header" >&5
13128 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
13129 if eval "test \"\${$as_ac_Header+set}\" = set"; then
13130 echo $ECHO_N "(cached) $ECHO_C" >&6
13132 eval "$as_ac_Header=\$ac_header_preproc"
13134 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
13135 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
13138 if test `eval echo '${'$as_ac_Header'}'` = yes; then
13139 cat >>confdefs.h <<_ACEOF
13140 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
13148 for ac_header in stddef.h
13150 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
13151 if eval "test \"\${$as_ac_Header+set}\" = set"; then
13152 echo "$as_me:$LINENO: checking for $ac_header" >&5
13153 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
13154 if eval "test \"\${$as_ac_Header+set}\" = set"; then
13155 echo $ECHO_N "(cached) $ECHO_C" >&6
13157 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
13158 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
13160 # Is the header compilable?
13161 echo "$as_me:$LINENO: checking $ac_header usability" >&5
13162 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
13163 cat >conftest.$ac_ext <<_ACEOF
13166 cat confdefs.h >>conftest.$ac_ext
13167 cat >>conftest.$ac_ext <<_ACEOF
13168 /* end confdefs.h. */
13169 $ac_includes_default
13170 #include <$ac_header>
13172 rm -f conftest.$ac_objext
13173 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
13174 (eval $ac_compile) 2>conftest.er1
13176 grep -v '^ *+' conftest.er1 >conftest.err
13178 cat conftest.err >&5
13179 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13180 (exit $ac_status); } &&
13181 { ac_try='test -z "$ac_c_werror_flag"
13182 || test ! -s conftest.err'
13183 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13184 (eval $ac_try) 2>&5
13186 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13187 (exit $ac_status); }; } &&
13188 { ac_try='test -s conftest.$ac_objext'
13189 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13190 (eval $ac_try) 2>&5
13192 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13193 (exit $ac_status); }; }; then
13194 ac_header_compiler=yes
13196 echo "$as_me: failed program was:" >&5
13197 sed 's/^/| /' conftest.$ac_ext >&5
13199 ac_header_compiler=no
13201 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
13202 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
13203 echo "${ECHO_T}$ac_header_compiler" >&6
13205 # Is the header present?
13206 echo "$as_me:$LINENO: checking $ac_header presence" >&5
13207 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
13208 cat >conftest.$ac_ext <<_ACEOF
13211 cat confdefs.h >>conftest.$ac_ext
13212 cat >>conftest.$ac_ext <<_ACEOF
13213 /* end confdefs.h. */
13214 #include <$ac_header>
13216 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
13217 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
13219 grep -v '^ *+' conftest.er1 >conftest.err
13221 cat conftest.err >&5
13222 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13223 (exit $ac_status); } >/dev/null; then
13224 if test -s conftest.err; then
13225 ac_cpp_err=$ac_c_preproc_warn_flag
13226 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
13233 if test -z "$ac_cpp_err"; then
13234 ac_header_preproc=yes
13236 echo "$as_me: failed program was:" >&5
13237 sed 's/^/| /' conftest.$ac_ext >&5
13239 ac_header_preproc=no
13241 rm -f conftest.err conftest.$ac_ext
13242 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
13243 echo "${ECHO_T}$ac_header_preproc" >&6
13245 # So? What about this header?
13246 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
13248 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
13249 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
13250 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
13251 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
13252 ac_header_preproc=yes
13255 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
13256 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
13257 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
13258 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
13259 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
13260 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
13261 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
13262 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
13263 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
13264 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
13265 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
13266 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
13269 ## ------------------------------------------ ##
13270 ## Report this to the AC_PACKAGE_NAME lists. ##
13271 ## ------------------------------------------ ##
13274 sed "s/^/$as_me: WARNING: /" >&2
13277 echo "$as_me:$LINENO: checking for $ac_header" >&5
13278 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
13279 if eval "test \"\${$as_ac_Header+set}\" = set"; then
13280 echo $ECHO_N "(cached) $ECHO_C" >&6
13282 eval "$as_ac_Header=\$ac_header_preproc"
13284 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
13285 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
13288 if test `eval echo '${'$as_ac_Header'}'` = yes; then
13289 cat >>confdefs.h <<_ACEOF
13290 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
13298 for ac_header in stdlib.h
13300 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
13301 if eval "test \"\${$as_ac_Header+set}\" = set"; then
13302 echo "$as_me:$LINENO: checking for $ac_header" >&5
13303 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
13304 if eval "test \"\${$as_ac_Header+set}\" = set"; then
13305 echo $ECHO_N "(cached) $ECHO_C" >&6
13307 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
13308 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
13310 # Is the header compilable?
13311 echo "$as_me:$LINENO: checking $ac_header usability" >&5
13312 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
13313 cat >conftest.$ac_ext <<_ACEOF
13316 cat confdefs.h >>conftest.$ac_ext
13317 cat >>conftest.$ac_ext <<_ACEOF
13318 /* end confdefs.h. */
13319 $ac_includes_default
13320 #include <$ac_header>
13322 rm -f conftest.$ac_objext
13323 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
13324 (eval $ac_compile) 2>conftest.er1
13326 grep -v '^ *+' conftest.er1 >conftest.err
13328 cat conftest.err >&5
13329 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13330 (exit $ac_status); } &&
13331 { ac_try='test -z "$ac_c_werror_flag"
13332 || test ! -s conftest.err'
13333 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13334 (eval $ac_try) 2>&5
13336 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13337 (exit $ac_status); }; } &&
13338 { ac_try='test -s conftest.$ac_objext'
13339 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13340 (eval $ac_try) 2>&5
13342 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13343 (exit $ac_status); }; }; then
13344 ac_header_compiler=yes
13346 echo "$as_me: failed program was:" >&5
13347 sed 's/^/| /' conftest.$ac_ext >&5
13349 ac_header_compiler=no
13351 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
13352 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
13353 echo "${ECHO_T}$ac_header_compiler" >&6
13355 # Is the header present?
13356 echo "$as_me:$LINENO: checking $ac_header presence" >&5
13357 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
13358 cat >conftest.$ac_ext <<_ACEOF
13361 cat confdefs.h >>conftest.$ac_ext
13362 cat >>conftest.$ac_ext <<_ACEOF
13363 /* end confdefs.h. */
13364 #include <$ac_header>
13366 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
13367 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
13369 grep -v '^ *+' conftest.er1 >conftest.err
13371 cat conftest.err >&5
13372 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13373 (exit $ac_status); } >/dev/null; then
13374 if test -s conftest.err; then
13375 ac_cpp_err=$ac_c_preproc_warn_flag
13376 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
13383 if test -z "$ac_cpp_err"; then
13384 ac_header_preproc=yes
13386 echo "$as_me: failed program was:" >&5
13387 sed 's/^/| /' conftest.$ac_ext >&5
13389 ac_header_preproc=no
13391 rm -f conftest.err conftest.$ac_ext
13392 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
13393 echo "${ECHO_T}$ac_header_preproc" >&6
13395 # So? What about this header?
13396 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
13398 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
13399 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
13400 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
13401 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
13402 ac_header_preproc=yes
13405 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
13406 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
13407 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
13408 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
13409 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
13410 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
13411 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
13412 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
13413 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
13414 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
13415 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
13416 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
13419 ## ------------------------------------------ ##
13420 ## Report this to the AC_PACKAGE_NAME lists. ##
13421 ## ------------------------------------------ ##
13424 sed "s/^/$as_me: WARNING: /" >&2
13427 echo "$as_me:$LINENO: checking for $ac_header" >&5
13428 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
13429 if eval "test \"\${$as_ac_Header+set}\" = set"; then
13430 echo $ECHO_N "(cached) $ECHO_C" >&6
13432 eval "$as_ac_Header=\$ac_header_preproc"
13434 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
13435 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
13438 if test `eval echo '${'$as_ac_Header'}'` = yes; then
13439 cat >>confdefs.h <<_ACEOF
13440 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
13450 for ac_header in string.h memory.h strings.h
13452 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
13453 if eval "test \"\${$as_ac_Header+set}\" = set"; then
13454 echo "$as_me:$LINENO: checking for $ac_header" >&5
13455 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
13456 if eval "test \"\${$as_ac_Header+set}\" = set"; then
13457 echo $ECHO_N "(cached) $ECHO_C" >&6
13459 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
13460 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
13462 # Is the header compilable?
13463 echo "$as_me:$LINENO: checking $ac_header usability" >&5
13464 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
13465 cat >conftest.$ac_ext <<_ACEOF
13468 cat confdefs.h >>conftest.$ac_ext
13469 cat >>conftest.$ac_ext <<_ACEOF
13470 /* end confdefs.h. */
13471 $ac_includes_default
13472 #include <$ac_header>
13474 rm -f conftest.$ac_objext
13475 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
13476 (eval $ac_compile) 2>conftest.er1
13478 grep -v '^ *+' conftest.er1 >conftest.err
13480 cat conftest.err >&5
13481 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13482 (exit $ac_status); } &&
13483 { ac_try='test -z "$ac_c_werror_flag"
13484 || test ! -s conftest.err'
13485 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13486 (eval $ac_try) 2>&5
13488 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13489 (exit $ac_status); }; } &&
13490 { ac_try='test -s conftest.$ac_objext'
13491 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13492 (eval $ac_try) 2>&5
13494 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13495 (exit $ac_status); }; }; then
13496 ac_header_compiler=yes
13498 echo "$as_me: failed program was:" >&5
13499 sed 's/^/| /' conftest.$ac_ext >&5
13501 ac_header_compiler=no
13503 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
13504 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
13505 echo "${ECHO_T}$ac_header_compiler" >&6
13507 # Is the header present?
13508 echo "$as_me:$LINENO: checking $ac_header presence" >&5
13509 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
13510 cat >conftest.$ac_ext <<_ACEOF
13513 cat confdefs.h >>conftest.$ac_ext
13514 cat >>conftest.$ac_ext <<_ACEOF
13515 /* end confdefs.h. */
13516 #include <$ac_header>
13518 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
13519 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
13521 grep -v '^ *+' conftest.er1 >conftest.err
13523 cat conftest.err >&5
13524 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13525 (exit $ac_status); } >/dev/null; then
13526 if test -s conftest.err; then
13527 ac_cpp_err=$ac_c_preproc_warn_flag
13528 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
13535 if test -z "$ac_cpp_err"; then
13536 ac_header_preproc=yes
13538 echo "$as_me: failed program was:" >&5
13539 sed 's/^/| /' conftest.$ac_ext >&5
13541 ac_header_preproc=no
13543 rm -f conftest.err conftest.$ac_ext
13544 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
13545 echo "${ECHO_T}$ac_header_preproc" >&6
13547 # So? What about this header?
13548 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
13550 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
13551 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
13552 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
13553 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
13554 ac_header_preproc=yes
13557 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
13558 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
13559 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
13560 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
13561 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
13562 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
13563 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
13564 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
13565 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
13566 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
13567 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
13568 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
13571 ## ------------------------------------------ ##
13572 ## Report this to the AC_PACKAGE_NAME lists. ##
13573 ## ------------------------------------------ ##
13576 sed "s/^/$as_me: WARNING: /" >&2
13579 echo "$as_me:$LINENO: checking for $ac_header" >&5
13580 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
13581 if eval "test \"\${$as_ac_Header+set}\" = set"; then
13582 echo $ECHO_N "(cached) $ECHO_C" >&6
13584 eval "$as_ac_Header=\$ac_header_preproc"
13586 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
13587 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
13590 if test `eval echo '${'$as_ac_Header'}'` = yes; then
13591 cat >>confdefs.h <<_ACEOF
13592 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
13600 for ac_header in sys/fault.h
13602 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
13603 if eval "test \"\${$as_ac_Header+set}\" = set"; then
13604 echo "$as_me:$LINENO: checking for $ac_header" >&5
13605 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
13606 if eval "test \"\${$as_ac_Header+set}\" = set"; then
13607 echo $ECHO_N "(cached) $ECHO_C" >&6
13609 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
13610 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
13612 # Is the header compilable?
13613 echo "$as_me:$LINENO: checking $ac_header usability" >&5
13614 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
13615 cat >conftest.$ac_ext <<_ACEOF
13618 cat confdefs.h >>conftest.$ac_ext
13619 cat >>conftest.$ac_ext <<_ACEOF
13620 /* end confdefs.h. */
13621 $ac_includes_default
13622 #include <$ac_header>
13624 rm -f conftest.$ac_objext
13625 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
13626 (eval $ac_compile) 2>conftest.er1
13628 grep -v '^ *+' conftest.er1 >conftest.err
13630 cat conftest.err >&5
13631 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13632 (exit $ac_status); } &&
13633 { ac_try='test -z "$ac_c_werror_flag"
13634 || test ! -s conftest.err'
13635 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13636 (eval $ac_try) 2>&5
13638 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13639 (exit $ac_status); }; } &&
13640 { ac_try='test -s conftest.$ac_objext'
13641 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13642 (eval $ac_try) 2>&5
13644 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13645 (exit $ac_status); }; }; then
13646 ac_header_compiler=yes
13648 echo "$as_me: failed program was:" >&5
13649 sed 's/^/| /' conftest.$ac_ext >&5
13651 ac_header_compiler=no
13653 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
13654 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
13655 echo "${ECHO_T}$ac_header_compiler" >&6
13657 # Is the header present?
13658 echo "$as_me:$LINENO: checking $ac_header presence" >&5
13659 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
13660 cat >conftest.$ac_ext <<_ACEOF
13663 cat confdefs.h >>conftest.$ac_ext
13664 cat >>conftest.$ac_ext <<_ACEOF
13665 /* end confdefs.h. */
13666 #include <$ac_header>
13668 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
13669 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
13671 grep -v '^ *+' conftest.er1 >conftest.err
13673 cat conftest.err >&5
13674 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13675 (exit $ac_status); } >/dev/null; then
13676 if test -s conftest.err; then
13677 ac_cpp_err=$ac_c_preproc_warn_flag
13678 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
13685 if test -z "$ac_cpp_err"; then
13686 ac_header_preproc=yes
13688 echo "$as_me: failed program was:" >&5
13689 sed 's/^/| /' conftest.$ac_ext >&5
13691 ac_header_preproc=no
13693 rm -f conftest.err conftest.$ac_ext
13694 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
13695 echo "${ECHO_T}$ac_header_preproc" >&6
13697 # So? What about this header?
13698 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
13700 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
13701 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
13702 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
13703 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
13704 ac_header_preproc=yes
13707 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
13708 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
13709 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
13710 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
13711 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
13712 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
13713 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
13714 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
13715 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
13716 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
13717 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
13718 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
13721 ## ------------------------------------------ ##
13722 ## Report this to the AC_PACKAGE_NAME lists. ##
13723 ## ------------------------------------------ ##
13726 sed "s/^/$as_me: WARNING: /" >&2
13729 echo "$as_me:$LINENO: checking for $ac_header" >&5
13730 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
13731 if eval "test \"\${$as_ac_Header+set}\" = set"; then
13732 echo $ECHO_N "(cached) $ECHO_C" >&6
13734 eval "$as_ac_Header=\$ac_header_preproc"
13736 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
13737 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
13740 if test `eval echo '${'$as_ac_Header'}'` = yes; then
13741 cat >>confdefs.h <<_ACEOF
13742 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
13750 for ac_header in sys/file.h
13752 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
13753 if eval "test \"\${$as_ac_Header+set}\" = set"; then
13754 echo "$as_me:$LINENO: checking for $ac_header" >&5
13755 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
13756 if eval "test \"\${$as_ac_Header+set}\" = set"; then
13757 echo $ECHO_N "(cached) $ECHO_C" >&6
13759 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
13760 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
13762 # Is the header compilable?
13763 echo "$as_me:$LINENO: checking $ac_header usability" >&5
13764 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
13765 cat >conftest.$ac_ext <<_ACEOF
13768 cat confdefs.h >>conftest.$ac_ext
13769 cat >>conftest.$ac_ext <<_ACEOF
13770 /* end confdefs.h. */
13771 $ac_includes_default
13772 #include <$ac_header>
13774 rm -f conftest.$ac_objext
13775 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
13776 (eval $ac_compile) 2>conftest.er1
13778 grep -v '^ *+' conftest.er1 >conftest.err
13780 cat conftest.err >&5
13781 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13782 (exit $ac_status); } &&
13783 { ac_try='test -z "$ac_c_werror_flag"
13784 || test ! -s conftest.err'
13785 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13786 (eval $ac_try) 2>&5
13788 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13789 (exit $ac_status); }; } &&
13790 { ac_try='test -s conftest.$ac_objext'
13791 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13792 (eval $ac_try) 2>&5
13794 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13795 (exit $ac_status); }; }; then
13796 ac_header_compiler=yes
13798 echo "$as_me: failed program was:" >&5
13799 sed 's/^/| /' conftest.$ac_ext >&5
13801 ac_header_compiler=no
13803 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
13804 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
13805 echo "${ECHO_T}$ac_header_compiler" >&6
13807 # Is the header present?
13808 echo "$as_me:$LINENO: checking $ac_header presence" >&5
13809 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
13810 cat >conftest.$ac_ext <<_ACEOF
13813 cat confdefs.h >>conftest.$ac_ext
13814 cat >>conftest.$ac_ext <<_ACEOF
13815 /* end confdefs.h. */
13816 #include <$ac_header>
13818 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
13819 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
13821 grep -v '^ *+' conftest.er1 >conftest.err
13823 cat conftest.err >&5
13824 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13825 (exit $ac_status); } >/dev/null; then
13826 if test -s conftest.err; then
13827 ac_cpp_err=$ac_c_preproc_warn_flag
13828 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
13835 if test -z "$ac_cpp_err"; then
13836 ac_header_preproc=yes
13838 echo "$as_me: failed program was:" >&5
13839 sed 's/^/| /' conftest.$ac_ext >&5
13841 ac_header_preproc=no
13843 rm -f conftest.err conftest.$ac_ext
13844 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
13845 echo "${ECHO_T}$ac_header_preproc" >&6
13847 # So? What about this header?
13848 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
13850 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
13851 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
13852 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
13853 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
13854 ac_header_preproc=yes
13857 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
13858 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
13859 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
13860 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
13861 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
13862 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
13863 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
13864 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
13865 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
13866 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
13867 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
13868 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
13871 ## ------------------------------------------ ##
13872 ## Report this to the AC_PACKAGE_NAME lists. ##
13873 ## ------------------------------------------ ##
13876 sed "s/^/$as_me: WARNING: /" >&2
13879 echo "$as_me:$LINENO: checking for $ac_header" >&5
13880 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
13881 if eval "test \"\${$as_ac_Header+set}\" = set"; then
13882 echo $ECHO_N "(cached) $ECHO_C" >&6
13884 eval "$as_ac_Header=\$ac_header_preproc"
13886 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
13887 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
13890 if test `eval echo '${'$as_ac_Header'}'` = yes; then
13891 cat >>confdefs.h <<_ACEOF
13892 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
13900 for ac_header in sys/filio.h
13902 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
13903 if eval "test \"\${$as_ac_Header+set}\" = set"; then
13904 echo "$as_me:$LINENO: checking for $ac_header" >&5
13905 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
13906 if eval "test \"\${$as_ac_Header+set}\" = set"; then
13907 echo $ECHO_N "(cached) $ECHO_C" >&6
13909 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
13910 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
13912 # Is the header compilable?
13913 echo "$as_me:$LINENO: checking $ac_header usability" >&5
13914 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
13915 cat >conftest.$ac_ext <<_ACEOF
13918 cat confdefs.h >>conftest.$ac_ext
13919 cat >>conftest.$ac_ext <<_ACEOF
13920 /* end confdefs.h. */
13921 $ac_includes_default
13922 #include <$ac_header>
13924 rm -f conftest.$ac_objext
13925 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
13926 (eval $ac_compile) 2>conftest.er1
13928 grep -v '^ *+' conftest.er1 >conftest.err
13930 cat conftest.err >&5
13931 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13932 (exit $ac_status); } &&
13933 { ac_try='test -z "$ac_c_werror_flag"
13934 || test ! -s conftest.err'
13935 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13936 (eval $ac_try) 2>&5
13938 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13939 (exit $ac_status); }; } &&
13940 { ac_try='test -s conftest.$ac_objext'
13941 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13942 (eval $ac_try) 2>&5
13944 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13945 (exit $ac_status); }; }; then
13946 ac_header_compiler=yes
13948 echo "$as_me: failed program was:" >&5
13949 sed 's/^/| /' conftest.$ac_ext >&5
13951 ac_header_compiler=no
13953 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
13954 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
13955 echo "${ECHO_T}$ac_header_compiler" >&6
13957 # Is the header present?
13958 echo "$as_me:$LINENO: checking $ac_header presence" >&5
13959 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
13960 cat >conftest.$ac_ext <<_ACEOF
13963 cat confdefs.h >>conftest.$ac_ext
13964 cat >>conftest.$ac_ext <<_ACEOF
13965 /* end confdefs.h. */
13966 #include <$ac_header>
13968 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
13969 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
13971 grep -v '^ *+' conftest.er1 >conftest.err
13973 cat conftest.err >&5
13974 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13975 (exit $ac_status); } >/dev/null; then
13976 if test -s conftest.err; then
13977 ac_cpp_err=$ac_c_preproc_warn_flag
13978 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
13985 if test -z "$ac_cpp_err"; then
13986 ac_header_preproc=yes
13988 echo "$as_me: failed program was:" >&5
13989 sed 's/^/| /' conftest.$ac_ext >&5
13991 ac_header_preproc=no
13993 rm -f conftest.err conftest.$ac_ext
13994 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
13995 echo "${ECHO_T}$ac_header_preproc" >&6
13997 # So? What about this header?
13998 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
14000 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
14001 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
14002 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
14003 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
14004 ac_header_preproc=yes
14007 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
14008 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
14009 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
14010 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
14011 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
14012 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
14013 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
14014 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
14015 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
14016 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
14017 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
14018 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
14021 ## ------------------------------------------ ##
14022 ## Report this to the AC_PACKAGE_NAME lists. ##
14023 ## ------------------------------------------ ##
14026 sed "s/^/$as_me: WARNING: /" >&2
14029 echo "$as_me:$LINENO: checking for $ac_header" >&5
14030 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
14031 if eval "test \"\${$as_ac_Header+set}\" = set"; then
14032 echo $ECHO_N "(cached) $ECHO_C" >&6
14034 eval "$as_ac_Header=\$ac_header_preproc"
14036 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
14037 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
14040 if test `eval echo '${'$as_ac_Header'}'` = yes; then
14041 cat >>confdefs.h <<_ACEOF
14042 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
14050 for ac_header in sys/ioctl.h
14052 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
14053 if eval "test \"\${$as_ac_Header+set}\" = set"; then
14054 echo "$as_me:$LINENO: checking for $ac_header" >&5
14055 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
14056 if eval "test \"\${$as_ac_Header+set}\" = set"; then
14057 echo $ECHO_N "(cached) $ECHO_C" >&6
14059 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
14060 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
14062 # Is the header compilable?
14063 echo "$as_me:$LINENO: checking $ac_header usability" >&5
14064 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
14065 cat >conftest.$ac_ext <<_ACEOF
14068 cat confdefs.h >>conftest.$ac_ext
14069 cat >>conftest.$ac_ext <<_ACEOF
14070 /* end confdefs.h. */
14071 $ac_includes_default
14072 #include <$ac_header>
14074 rm -f conftest.$ac_objext
14075 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
14076 (eval $ac_compile) 2>conftest.er1
14078 grep -v '^ *+' conftest.er1 >conftest.err
14080 cat conftest.err >&5
14081 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14082 (exit $ac_status); } &&
14083 { ac_try='test -z "$ac_c_werror_flag"
14084 || test ! -s conftest.err'
14085 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14086 (eval $ac_try) 2>&5
14088 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14089 (exit $ac_status); }; } &&
14090 { ac_try='test -s conftest.$ac_objext'
14091 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14092 (eval $ac_try) 2>&5
14094 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14095 (exit $ac_status); }; }; then
14096 ac_header_compiler=yes
14098 echo "$as_me: failed program was:" >&5
14099 sed 's/^/| /' conftest.$ac_ext >&5
14101 ac_header_compiler=no
14103 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
14104 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
14105 echo "${ECHO_T}$ac_header_compiler" >&6
14107 # Is the header present?
14108 echo "$as_me:$LINENO: checking $ac_header presence" >&5
14109 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
14110 cat >conftest.$ac_ext <<_ACEOF
14113 cat confdefs.h >>conftest.$ac_ext
14114 cat >>conftest.$ac_ext <<_ACEOF
14115 /* end confdefs.h. */
14116 #include <$ac_header>
14118 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
14119 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
14121 grep -v '^ *+' conftest.er1 >conftest.err
14123 cat conftest.err >&5
14124 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14125 (exit $ac_status); } >/dev/null; then
14126 if test -s conftest.err; then
14127 ac_cpp_err=$ac_c_preproc_warn_flag
14128 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
14135 if test -z "$ac_cpp_err"; then
14136 ac_header_preproc=yes
14138 echo "$as_me: failed program was:" >&5
14139 sed 's/^/| /' conftest.$ac_ext >&5
14141 ac_header_preproc=no
14143 rm -f conftest.err conftest.$ac_ext
14144 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
14145 echo "${ECHO_T}$ac_header_preproc" >&6
14147 # So? What about this header?
14148 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
14150 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
14151 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
14152 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
14153 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
14154 ac_header_preproc=yes
14157 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
14158 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
14159 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
14160 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
14161 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
14162 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
14163 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
14164 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
14165 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
14166 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
14167 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
14168 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
14171 ## ------------------------------------------ ##
14172 ## Report this to the AC_PACKAGE_NAME lists. ##
14173 ## ------------------------------------------ ##
14176 sed "s/^/$as_me: WARNING: /" >&2
14179 echo "$as_me:$LINENO: checking for $ac_header" >&5
14180 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
14181 if eval "test \"\${$as_ac_Header+set}\" = set"; then
14182 echo $ECHO_N "(cached) $ECHO_C" >&6
14184 eval "$as_ac_Header=\$ac_header_preproc"
14186 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
14187 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
14190 if test `eval echo '${'$as_ac_Header'}'` = yes; then
14191 cat >>confdefs.h <<_ACEOF
14192 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
14200 for ac_header in sys/param.h
14202 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
14203 if eval "test \"\${$as_ac_Header+set}\" = set"; then
14204 echo "$as_me:$LINENO: checking for $ac_header" >&5
14205 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
14206 if eval "test \"\${$as_ac_Header+set}\" = set"; then
14207 echo $ECHO_N "(cached) $ECHO_C" >&6
14209 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
14210 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
14212 # Is the header compilable?
14213 echo "$as_me:$LINENO: checking $ac_header usability" >&5
14214 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
14215 cat >conftest.$ac_ext <<_ACEOF
14218 cat confdefs.h >>conftest.$ac_ext
14219 cat >>conftest.$ac_ext <<_ACEOF
14220 /* end confdefs.h. */
14221 $ac_includes_default
14222 #include <$ac_header>
14224 rm -f conftest.$ac_objext
14225 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
14226 (eval $ac_compile) 2>conftest.er1
14228 grep -v '^ *+' conftest.er1 >conftest.err
14230 cat conftest.err >&5
14231 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14232 (exit $ac_status); } &&
14233 { ac_try='test -z "$ac_c_werror_flag"
14234 || test ! -s conftest.err'
14235 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14236 (eval $ac_try) 2>&5
14238 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14239 (exit $ac_status); }; } &&
14240 { ac_try='test -s conftest.$ac_objext'
14241 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14242 (eval $ac_try) 2>&5
14244 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14245 (exit $ac_status); }; }; then
14246 ac_header_compiler=yes
14248 echo "$as_me: failed program was:" >&5
14249 sed 's/^/| /' conftest.$ac_ext >&5
14251 ac_header_compiler=no
14253 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
14254 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
14255 echo "${ECHO_T}$ac_header_compiler" >&6
14257 # Is the header present?
14258 echo "$as_me:$LINENO: checking $ac_header presence" >&5
14259 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
14260 cat >conftest.$ac_ext <<_ACEOF
14263 cat confdefs.h >>conftest.$ac_ext
14264 cat >>conftest.$ac_ext <<_ACEOF
14265 /* end confdefs.h. */
14266 #include <$ac_header>
14268 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
14269 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
14271 grep -v '^ *+' conftest.er1 >conftest.err
14273 cat conftest.err >&5
14274 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14275 (exit $ac_status); } >/dev/null; then
14276 if test -s conftest.err; then
14277 ac_cpp_err=$ac_c_preproc_warn_flag
14278 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
14285 if test -z "$ac_cpp_err"; then
14286 ac_header_preproc=yes
14288 echo "$as_me: failed program was:" >&5
14289 sed 's/^/| /' conftest.$ac_ext >&5
14291 ac_header_preproc=no
14293 rm -f conftest.err conftest.$ac_ext
14294 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
14295 echo "${ECHO_T}$ac_header_preproc" >&6
14297 # So? What about this header?
14298 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
14300 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
14301 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
14302 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
14303 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
14304 ac_header_preproc=yes
14307 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
14308 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
14309 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
14310 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
14311 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
14312 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
14313 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
14314 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
14315 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
14316 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
14317 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
14318 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
14321 ## ------------------------------------------ ##
14322 ## Report this to the AC_PACKAGE_NAME lists. ##
14323 ## ------------------------------------------ ##
14326 sed "s/^/$as_me: WARNING: /" >&2
14329 echo "$as_me:$LINENO: checking for $ac_header" >&5
14330 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
14331 if eval "test \"\${$as_ac_Header+set}\" = set"; then
14332 echo $ECHO_N "(cached) $ECHO_C" >&6
14334 eval "$as_ac_Header=\$ac_header_preproc"
14336 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
14337 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
14340 if test `eval echo '${'$as_ac_Header'}'` = yes; then
14341 cat >>confdefs.h <<_ACEOF
14342 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
14350 for ac_header in sys/resource.h
14352 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
14353 if eval "test \"\${$as_ac_Header+set}\" = set"; then
14354 echo "$as_me:$LINENO: checking for $ac_header" >&5
14355 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
14356 if eval "test \"\${$as_ac_Header+set}\" = set"; then
14357 echo $ECHO_N "(cached) $ECHO_C" >&6
14359 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
14360 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
14362 # Is the header compilable?
14363 echo "$as_me:$LINENO: checking $ac_header usability" >&5
14364 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
14365 cat >conftest.$ac_ext <<_ACEOF
14368 cat confdefs.h >>conftest.$ac_ext
14369 cat >>conftest.$ac_ext <<_ACEOF
14370 /* end confdefs.h. */
14371 $ac_includes_default
14372 #include <$ac_header>
14374 rm -f conftest.$ac_objext
14375 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
14376 (eval $ac_compile) 2>conftest.er1
14378 grep -v '^ *+' conftest.er1 >conftest.err
14380 cat conftest.err >&5
14381 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14382 (exit $ac_status); } &&
14383 { ac_try='test -z "$ac_c_werror_flag"
14384 || test ! -s conftest.err'
14385 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14386 (eval $ac_try) 2>&5
14388 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14389 (exit $ac_status); }; } &&
14390 { ac_try='test -s conftest.$ac_objext'
14391 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14392 (eval $ac_try) 2>&5
14394 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14395 (exit $ac_status); }; }; then
14396 ac_header_compiler=yes
14398 echo "$as_me: failed program was:" >&5
14399 sed 's/^/| /' conftest.$ac_ext >&5
14401 ac_header_compiler=no
14403 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
14404 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
14405 echo "${ECHO_T}$ac_header_compiler" >&6
14407 # Is the header present?
14408 echo "$as_me:$LINENO: checking $ac_header presence" >&5
14409 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
14410 cat >conftest.$ac_ext <<_ACEOF
14413 cat confdefs.h >>conftest.$ac_ext
14414 cat >>conftest.$ac_ext <<_ACEOF
14415 /* end confdefs.h. */
14416 #include <$ac_header>
14418 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
14419 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
14421 grep -v '^ *+' conftest.er1 >conftest.err
14423 cat conftest.err >&5
14424 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14425 (exit $ac_status); } >/dev/null; then
14426 if test -s conftest.err; then
14427 ac_cpp_err=$ac_c_preproc_warn_flag
14428 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
14435 if test -z "$ac_cpp_err"; then
14436 ac_header_preproc=yes
14438 echo "$as_me: failed program was:" >&5
14439 sed 's/^/| /' conftest.$ac_ext >&5
14441 ac_header_preproc=no
14443 rm -f conftest.err conftest.$ac_ext
14444 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
14445 echo "${ECHO_T}$ac_header_preproc" >&6
14447 # So? What about this header?
14448 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
14450 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
14451 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
14452 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
14453 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
14454 ac_header_preproc=yes
14457 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
14458 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
14459 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
14460 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
14461 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
14462 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
14463 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
14464 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
14465 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
14466 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
14467 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
14468 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
14471 ## ------------------------------------------ ##
14472 ## Report this to the AC_PACKAGE_NAME lists. ##
14473 ## ------------------------------------------ ##
14476 sed "s/^/$as_me: WARNING: /" >&2
14479 echo "$as_me:$LINENO: checking for $ac_header" >&5
14480 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
14481 if eval "test \"\${$as_ac_Header+set}\" = set"; then
14482 echo $ECHO_N "(cached) $ECHO_C" >&6
14484 eval "$as_ac_Header=\$ac_header_preproc"
14486 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
14487 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
14490 if test `eval echo '${'$as_ac_Header'}'` = yes; then
14491 cat >>confdefs.h <<_ACEOF
14492 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
14500 for ac_header in sys/proc.h
14502 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
14503 echo "$as_me:$LINENO: checking for $ac_header" >&5
14504 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
14505 if eval "test \"\${$as_ac_Header+set}\" = set"; then
14506 echo $ECHO_N "(cached) $ECHO_C" >&6
14508 cat >conftest.$ac_ext <<_ACEOF
14511 cat confdefs.h >>conftest.$ac_ext
14512 cat >>conftest.$ac_ext <<_ACEOF
14513 /* end confdefs.h. */
14514 #if HAVE_SYS_PARAM_H
14515 # include <sys/param.h>
14519 #include <$ac_header>
14521 rm -f conftest.$ac_objext
14522 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
14523 (eval $ac_compile) 2>conftest.er1
14525 grep -v '^ *+' conftest.er1 >conftest.err
14527 cat conftest.err >&5
14528 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14529 (exit $ac_status); } &&
14530 { ac_try='test -z "$ac_c_werror_flag"
14531 || test ! -s conftest.err'
14532 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14533 (eval $ac_try) 2>&5
14535 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14536 (exit $ac_status); }; } &&
14537 { ac_try='test -s conftest.$ac_objext'
14538 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14539 (eval $ac_try) 2>&5
14541 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14542 (exit $ac_status); }; }; then
14543 eval "$as_ac_Header=yes"
14545 echo "$as_me: failed program was:" >&5
14546 sed 's/^/| /' conftest.$ac_ext >&5
14548 eval "$as_ac_Header=no"
14550 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
14552 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
14553 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
14554 if test `eval echo '${'$as_ac_Header'}'` = yes; then
14555 cat >>confdefs.h <<_ACEOF
14556 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
14564 for ac_header in sys/procfs.h
14566 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
14567 if eval "test \"\${$as_ac_Header+set}\" = set"; then
14568 echo "$as_me:$LINENO: checking for $ac_header" >&5
14569 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
14570 if eval "test \"\${$as_ac_Header+set}\" = set"; then
14571 echo $ECHO_N "(cached) $ECHO_C" >&6
14573 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
14574 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
14576 # Is the header compilable?
14577 echo "$as_me:$LINENO: checking $ac_header usability" >&5
14578 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
14579 cat >conftest.$ac_ext <<_ACEOF
14582 cat confdefs.h >>conftest.$ac_ext
14583 cat >>conftest.$ac_ext <<_ACEOF
14584 /* end confdefs.h. */
14585 $ac_includes_default
14586 #include <$ac_header>
14588 rm -f conftest.$ac_objext
14589 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
14590 (eval $ac_compile) 2>conftest.er1
14592 grep -v '^ *+' conftest.er1 >conftest.err
14594 cat conftest.err >&5
14595 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14596 (exit $ac_status); } &&
14597 { ac_try='test -z "$ac_c_werror_flag"
14598 || test ! -s conftest.err'
14599 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14600 (eval $ac_try) 2>&5
14602 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14603 (exit $ac_status); }; } &&
14604 { ac_try='test -s conftest.$ac_objext'
14605 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14606 (eval $ac_try) 2>&5
14608 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14609 (exit $ac_status); }; }; then
14610 ac_header_compiler=yes
14612 echo "$as_me: failed program was:" >&5
14613 sed 's/^/| /' conftest.$ac_ext >&5
14615 ac_header_compiler=no
14617 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
14618 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
14619 echo "${ECHO_T}$ac_header_compiler" >&6
14621 # Is the header present?
14622 echo "$as_me:$LINENO: checking $ac_header presence" >&5
14623 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
14624 cat >conftest.$ac_ext <<_ACEOF
14627 cat confdefs.h >>conftest.$ac_ext
14628 cat >>conftest.$ac_ext <<_ACEOF
14629 /* end confdefs.h. */
14630 #include <$ac_header>
14632 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
14633 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
14635 grep -v '^ *+' conftest.er1 >conftest.err
14637 cat conftest.err >&5
14638 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14639 (exit $ac_status); } >/dev/null; then
14640 if test -s conftest.err; then
14641 ac_cpp_err=$ac_c_preproc_warn_flag
14642 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
14649 if test -z "$ac_cpp_err"; then
14650 ac_header_preproc=yes
14652 echo "$as_me: failed program was:" >&5
14653 sed 's/^/| /' conftest.$ac_ext >&5
14655 ac_header_preproc=no
14657 rm -f conftest.err conftest.$ac_ext
14658 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
14659 echo "${ECHO_T}$ac_header_preproc" >&6
14661 # So? What about this header?
14662 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
14664 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
14665 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
14666 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
14667 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
14668 ac_header_preproc=yes
14671 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
14672 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
14673 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
14674 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
14675 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
14676 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
14677 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
14678 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
14679 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
14680 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
14681 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
14682 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
14685 ## ------------------------------------------ ##
14686 ## Report this to the AC_PACKAGE_NAME lists. ##
14687 ## ------------------------------------------ ##
14690 sed "s/^/$as_me: WARNING: /" >&2
14693 echo "$as_me:$LINENO: checking for $ac_header" >&5
14694 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
14695 if eval "test \"\${$as_ac_Header+set}\" = set"; then
14696 echo $ECHO_N "(cached) $ECHO_C" >&6
14698 eval "$as_ac_Header=\$ac_header_preproc"
14700 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
14701 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
14704 if test `eval echo '${'$as_ac_Header'}'` = yes; then
14705 cat >>confdefs.h <<_ACEOF
14706 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
14715 for ac_header in sys/ptrace.h ptrace.h
14717 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
14718 if eval "test \"\${$as_ac_Header+set}\" = set"; then
14719 echo "$as_me:$LINENO: checking for $ac_header" >&5
14720 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
14721 if eval "test \"\${$as_ac_Header+set}\" = set"; then
14722 echo $ECHO_N "(cached) $ECHO_C" >&6
14724 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
14725 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
14727 # Is the header compilable?
14728 echo "$as_me:$LINENO: checking $ac_header usability" >&5
14729 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
14730 cat >conftest.$ac_ext <<_ACEOF
14733 cat confdefs.h >>conftest.$ac_ext
14734 cat >>conftest.$ac_ext <<_ACEOF
14735 /* end confdefs.h. */
14736 $ac_includes_default
14737 #include <$ac_header>
14739 rm -f conftest.$ac_objext
14740 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
14741 (eval $ac_compile) 2>conftest.er1
14743 grep -v '^ *+' conftest.er1 >conftest.err
14745 cat conftest.err >&5
14746 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14747 (exit $ac_status); } &&
14748 { ac_try='test -z "$ac_c_werror_flag"
14749 || test ! -s conftest.err'
14750 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14751 (eval $ac_try) 2>&5
14753 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14754 (exit $ac_status); }; } &&
14755 { ac_try='test -s conftest.$ac_objext'
14756 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14757 (eval $ac_try) 2>&5
14759 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14760 (exit $ac_status); }; }; then
14761 ac_header_compiler=yes
14763 echo "$as_me: failed program was:" >&5
14764 sed 's/^/| /' conftest.$ac_ext >&5
14766 ac_header_compiler=no
14768 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
14769 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
14770 echo "${ECHO_T}$ac_header_compiler" >&6
14772 # Is the header present?
14773 echo "$as_me:$LINENO: checking $ac_header presence" >&5
14774 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
14775 cat >conftest.$ac_ext <<_ACEOF
14778 cat confdefs.h >>conftest.$ac_ext
14779 cat >>conftest.$ac_ext <<_ACEOF
14780 /* end confdefs.h. */
14781 #include <$ac_header>
14783 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
14784 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
14786 grep -v '^ *+' conftest.er1 >conftest.err
14788 cat conftest.err >&5
14789 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14790 (exit $ac_status); } >/dev/null; then
14791 if test -s conftest.err; then
14792 ac_cpp_err=$ac_c_preproc_warn_flag
14793 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
14800 if test -z "$ac_cpp_err"; then
14801 ac_header_preproc=yes
14803 echo "$as_me: failed program was:" >&5
14804 sed 's/^/| /' conftest.$ac_ext >&5
14806 ac_header_preproc=no
14808 rm -f conftest.err conftest.$ac_ext
14809 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
14810 echo "${ECHO_T}$ac_header_preproc" >&6
14812 # So? What about this header?
14813 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
14815 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
14816 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
14817 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
14818 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
14819 ac_header_preproc=yes
14822 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
14823 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
14824 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
14825 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
14826 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
14827 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
14828 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
14829 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
14830 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
14831 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
14832 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
14833 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
14836 ## ------------------------------------------ ##
14837 ## Report this to the AC_PACKAGE_NAME lists. ##
14838 ## ------------------------------------------ ##
14841 sed "s/^/$as_me: WARNING: /" >&2
14844 echo "$as_me:$LINENO: checking for $ac_header" >&5
14845 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
14846 if eval "test \"\${$as_ac_Header+set}\" = set"; then
14847 echo $ECHO_N "(cached) $ECHO_C" >&6
14849 eval "$as_ac_Header=\$ac_header_preproc"
14851 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
14852 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
14855 if test `eval echo '${'$as_ac_Header'}'` = yes; then
14856 cat >>confdefs.h <<_ACEOF
14857 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
14866 for ac_header in sys/reg.h sys/debugreg.h
14868 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
14869 if eval "test \"\${$as_ac_Header+set}\" = set"; then
14870 echo "$as_me:$LINENO: checking for $ac_header" >&5
14871 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
14872 if eval "test \"\${$as_ac_Header+set}\" = set"; then
14873 echo $ECHO_N "(cached) $ECHO_C" >&6
14875 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
14876 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
14878 # Is the header compilable?
14879 echo "$as_me:$LINENO: checking $ac_header usability" >&5
14880 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
14881 cat >conftest.$ac_ext <<_ACEOF
14884 cat confdefs.h >>conftest.$ac_ext
14885 cat >>conftest.$ac_ext <<_ACEOF
14886 /* end confdefs.h. */
14887 $ac_includes_default
14888 #include <$ac_header>
14890 rm -f conftest.$ac_objext
14891 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
14892 (eval $ac_compile) 2>conftest.er1
14894 grep -v '^ *+' conftest.er1 >conftest.err
14896 cat conftest.err >&5
14897 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14898 (exit $ac_status); } &&
14899 { ac_try='test -z "$ac_c_werror_flag"
14900 || test ! -s conftest.err'
14901 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14902 (eval $ac_try) 2>&5
14904 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14905 (exit $ac_status); }; } &&
14906 { ac_try='test -s conftest.$ac_objext'
14907 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14908 (eval $ac_try) 2>&5
14910 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14911 (exit $ac_status); }; }; then
14912 ac_header_compiler=yes
14914 echo "$as_me: failed program was:" >&5
14915 sed 's/^/| /' conftest.$ac_ext >&5
14917 ac_header_compiler=no
14919 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
14920 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
14921 echo "${ECHO_T}$ac_header_compiler" >&6
14923 # Is the header present?
14924 echo "$as_me:$LINENO: checking $ac_header presence" >&5
14925 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
14926 cat >conftest.$ac_ext <<_ACEOF
14929 cat confdefs.h >>conftest.$ac_ext
14930 cat >>conftest.$ac_ext <<_ACEOF
14931 /* end confdefs.h. */
14932 #include <$ac_header>
14934 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
14935 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
14937 grep -v '^ *+' conftest.er1 >conftest.err
14939 cat conftest.err >&5
14940 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14941 (exit $ac_status); } >/dev/null; then
14942 if test -s conftest.err; then
14943 ac_cpp_err=$ac_c_preproc_warn_flag
14944 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
14951 if test -z "$ac_cpp_err"; then
14952 ac_header_preproc=yes
14954 echo "$as_me: failed program was:" >&5
14955 sed 's/^/| /' conftest.$ac_ext >&5
14957 ac_header_preproc=no
14959 rm -f conftest.err conftest.$ac_ext
14960 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
14961 echo "${ECHO_T}$ac_header_preproc" >&6
14963 # So? What about this header?
14964 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
14966 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
14967 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
14968 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
14969 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
14970 ac_header_preproc=yes
14973 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
14974 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
14975 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
14976 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
14977 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
14978 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
14979 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
14980 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
14981 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
14982 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
14983 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
14984 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
14987 ## ------------------------------------------ ##
14988 ## Report this to the AC_PACKAGE_NAME lists. ##
14989 ## ------------------------------------------ ##
14992 sed "s/^/$as_me: WARNING: /" >&2
14995 echo "$as_me:$LINENO: checking for $ac_header" >&5
14996 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
14997 if eval "test \"\${$as_ac_Header+set}\" = set"; then
14998 echo $ECHO_N "(cached) $ECHO_C" >&6
15000 eval "$as_ac_Header=\$ac_header_preproc"
15002 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
15003 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
15006 if test `eval echo '${'$as_ac_Header'}'` = yes; then
15007 cat >>confdefs.h <<_ACEOF
15008 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
15016 for ac_header in sys/select.h
15018 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
15019 if eval "test \"\${$as_ac_Header+set}\" = set"; then
15020 echo "$as_me:$LINENO: checking for $ac_header" >&5
15021 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
15022 if eval "test \"\${$as_ac_Header+set}\" = set"; then
15023 echo $ECHO_N "(cached) $ECHO_C" >&6
15025 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
15026 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
15028 # Is the header compilable?
15029 echo "$as_me:$LINENO: checking $ac_header usability" >&5
15030 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
15031 cat >conftest.$ac_ext <<_ACEOF
15034 cat confdefs.h >>conftest.$ac_ext
15035 cat >>conftest.$ac_ext <<_ACEOF
15036 /* end confdefs.h. */
15037 $ac_includes_default
15038 #include <$ac_header>
15040 rm -f conftest.$ac_objext
15041 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
15042 (eval $ac_compile) 2>conftest.er1
15044 grep -v '^ *+' conftest.er1 >conftest.err
15046 cat conftest.err >&5
15047 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15048 (exit $ac_status); } &&
15049 { ac_try='test -z "$ac_c_werror_flag"
15050 || test ! -s conftest.err'
15051 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15052 (eval $ac_try) 2>&5
15054 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15055 (exit $ac_status); }; } &&
15056 { ac_try='test -s conftest.$ac_objext'
15057 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15058 (eval $ac_try) 2>&5
15060 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15061 (exit $ac_status); }; }; then
15062 ac_header_compiler=yes
15064 echo "$as_me: failed program was:" >&5
15065 sed 's/^/| /' conftest.$ac_ext >&5
15067 ac_header_compiler=no
15069 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
15070 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
15071 echo "${ECHO_T}$ac_header_compiler" >&6
15073 # Is the header present?
15074 echo "$as_me:$LINENO: checking $ac_header presence" >&5
15075 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
15076 cat >conftest.$ac_ext <<_ACEOF
15079 cat confdefs.h >>conftest.$ac_ext
15080 cat >>conftest.$ac_ext <<_ACEOF
15081 /* end confdefs.h. */
15082 #include <$ac_header>
15084 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
15085 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
15087 grep -v '^ *+' conftest.er1 >conftest.err
15089 cat conftest.err >&5
15090 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15091 (exit $ac_status); } >/dev/null; then
15092 if test -s conftest.err; then
15093 ac_cpp_err=$ac_c_preproc_warn_flag
15094 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
15101 if test -z "$ac_cpp_err"; then
15102 ac_header_preproc=yes
15104 echo "$as_me: failed program was:" >&5
15105 sed 's/^/| /' conftest.$ac_ext >&5
15107 ac_header_preproc=no
15109 rm -f conftest.err conftest.$ac_ext
15110 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
15111 echo "${ECHO_T}$ac_header_preproc" >&6
15113 # So? What about this header?
15114 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
15116 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
15117 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
15118 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
15119 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
15120 ac_header_preproc=yes
15123 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
15124 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
15125 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
15126 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
15127 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
15128 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
15129 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
15130 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
15131 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
15132 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
15133 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
15134 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
15137 ## ------------------------------------------ ##
15138 ## Report this to the AC_PACKAGE_NAME lists. ##
15139 ## ------------------------------------------ ##
15142 sed "s/^/$as_me: WARNING: /" >&2
15145 echo "$as_me:$LINENO: checking for $ac_header" >&5
15146 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
15147 if eval "test \"\${$as_ac_Header+set}\" = set"; then
15148 echo $ECHO_N "(cached) $ECHO_C" >&6
15150 eval "$as_ac_Header=\$ac_header_preproc"
15152 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
15153 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
15156 if test `eval echo '${'$as_ac_Header'}'` = yes; then
15157 cat >>confdefs.h <<_ACEOF
15158 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
15166 for ac_header in sys/syscall.h
15168 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
15169 if eval "test \"\${$as_ac_Header+set}\" = set"; then
15170 echo "$as_me:$LINENO: checking for $ac_header" >&5
15171 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
15172 if eval "test \"\${$as_ac_Header+set}\" = set"; then
15173 echo $ECHO_N "(cached) $ECHO_C" >&6
15175 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
15176 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
15178 # Is the header compilable?
15179 echo "$as_me:$LINENO: checking $ac_header usability" >&5
15180 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
15181 cat >conftest.$ac_ext <<_ACEOF
15184 cat confdefs.h >>conftest.$ac_ext
15185 cat >>conftest.$ac_ext <<_ACEOF
15186 /* end confdefs.h. */
15187 $ac_includes_default
15188 #include <$ac_header>
15190 rm -f conftest.$ac_objext
15191 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
15192 (eval $ac_compile) 2>conftest.er1
15194 grep -v '^ *+' conftest.er1 >conftest.err
15196 cat conftest.err >&5
15197 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15198 (exit $ac_status); } &&
15199 { ac_try='test -z "$ac_c_werror_flag"
15200 || test ! -s conftest.err'
15201 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15202 (eval $ac_try) 2>&5
15204 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15205 (exit $ac_status); }; } &&
15206 { ac_try='test -s conftest.$ac_objext'
15207 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15208 (eval $ac_try) 2>&5
15210 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15211 (exit $ac_status); }; }; then
15212 ac_header_compiler=yes
15214 echo "$as_me: failed program was:" >&5
15215 sed 's/^/| /' conftest.$ac_ext >&5
15217 ac_header_compiler=no
15219 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
15220 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
15221 echo "${ECHO_T}$ac_header_compiler" >&6
15223 # Is the header present?
15224 echo "$as_me:$LINENO: checking $ac_header presence" >&5
15225 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
15226 cat >conftest.$ac_ext <<_ACEOF
15229 cat confdefs.h >>conftest.$ac_ext
15230 cat >>conftest.$ac_ext <<_ACEOF
15231 /* end confdefs.h. */
15232 #include <$ac_header>
15234 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
15235 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
15237 grep -v '^ *+' conftest.er1 >conftest.err
15239 cat conftest.err >&5
15240 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15241 (exit $ac_status); } >/dev/null; then
15242 if test -s conftest.err; then
15243 ac_cpp_err=$ac_c_preproc_warn_flag
15244 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
15251 if test -z "$ac_cpp_err"; then
15252 ac_header_preproc=yes
15254 echo "$as_me: failed program was:" >&5
15255 sed 's/^/| /' conftest.$ac_ext >&5
15257 ac_header_preproc=no
15259 rm -f conftest.err conftest.$ac_ext
15260 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
15261 echo "${ECHO_T}$ac_header_preproc" >&6
15263 # So? What about this header?
15264 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
15266 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
15267 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
15268 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
15269 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
15270 ac_header_preproc=yes
15273 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
15274 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
15275 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
15276 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
15277 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
15278 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
15279 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
15280 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
15281 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
15282 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
15283 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
15284 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
15287 ## ------------------------------------------ ##
15288 ## Report this to the AC_PACKAGE_NAME lists. ##
15289 ## ------------------------------------------ ##
15292 sed "s/^/$as_me: WARNING: /" >&2
15295 echo "$as_me:$LINENO: checking for $ac_header" >&5
15296 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
15297 if eval "test \"\${$as_ac_Header+set}\" = set"; then
15298 echo $ECHO_N "(cached) $ECHO_C" >&6
15300 eval "$as_ac_Header=\$ac_header_preproc"
15302 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
15303 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
15306 if test `eval echo '${'$as_ac_Header'}'` = yes; then
15307 cat >>confdefs.h <<_ACEOF
15308 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
15316 for ac_header in sys/types.h
15318 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
15319 if eval "test \"\${$as_ac_Header+set}\" = set"; then
15320 echo "$as_me:$LINENO: checking for $ac_header" >&5
15321 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
15322 if eval "test \"\${$as_ac_Header+set}\" = set"; then
15323 echo $ECHO_N "(cached) $ECHO_C" >&6
15325 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
15326 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
15328 # Is the header compilable?
15329 echo "$as_me:$LINENO: checking $ac_header usability" >&5
15330 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
15331 cat >conftest.$ac_ext <<_ACEOF
15334 cat confdefs.h >>conftest.$ac_ext
15335 cat >>conftest.$ac_ext <<_ACEOF
15336 /* end confdefs.h. */
15337 $ac_includes_default
15338 #include <$ac_header>
15340 rm -f conftest.$ac_objext
15341 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
15342 (eval $ac_compile) 2>conftest.er1
15344 grep -v '^ *+' conftest.er1 >conftest.err
15346 cat conftest.err >&5
15347 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15348 (exit $ac_status); } &&
15349 { ac_try='test -z "$ac_c_werror_flag"
15350 || test ! -s conftest.err'
15351 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15352 (eval $ac_try) 2>&5
15354 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15355 (exit $ac_status); }; } &&
15356 { ac_try='test -s conftest.$ac_objext'
15357 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15358 (eval $ac_try) 2>&5
15360 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15361 (exit $ac_status); }; }; then
15362 ac_header_compiler=yes
15364 echo "$as_me: failed program was:" >&5
15365 sed 's/^/| /' conftest.$ac_ext >&5
15367 ac_header_compiler=no
15369 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
15370 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
15371 echo "${ECHO_T}$ac_header_compiler" >&6
15373 # Is the header present?
15374 echo "$as_me:$LINENO: checking $ac_header presence" >&5
15375 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
15376 cat >conftest.$ac_ext <<_ACEOF
15379 cat confdefs.h >>conftest.$ac_ext
15380 cat >>conftest.$ac_ext <<_ACEOF
15381 /* end confdefs.h. */
15382 #include <$ac_header>
15384 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
15385 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
15387 grep -v '^ *+' conftest.er1 >conftest.err
15389 cat conftest.err >&5
15390 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15391 (exit $ac_status); } >/dev/null; then
15392 if test -s conftest.err; then
15393 ac_cpp_err=$ac_c_preproc_warn_flag
15394 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
15401 if test -z "$ac_cpp_err"; then
15402 ac_header_preproc=yes
15404 echo "$as_me: failed program was:" >&5
15405 sed 's/^/| /' conftest.$ac_ext >&5
15407 ac_header_preproc=no
15409 rm -f conftest.err conftest.$ac_ext
15410 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
15411 echo "${ECHO_T}$ac_header_preproc" >&6
15413 # So? What about this header?
15414 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
15416 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
15417 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
15418 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
15419 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
15420 ac_header_preproc=yes
15423 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
15424 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
15425 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
15426 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
15427 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
15428 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
15429 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
15430 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
15431 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
15432 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
15433 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
15434 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
15437 ## ------------------------------------------ ##
15438 ## Report this to the AC_PACKAGE_NAME lists. ##
15439 ## ------------------------------------------ ##
15442 sed "s/^/$as_me: WARNING: /" >&2
15445 echo "$as_me:$LINENO: checking for $ac_header" >&5
15446 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
15447 if eval "test \"\${$as_ac_Header+set}\" = set"; then
15448 echo $ECHO_N "(cached) $ECHO_C" >&6
15450 eval "$as_ac_Header=\$ac_header_preproc"
15452 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
15453 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
15456 if test `eval echo '${'$as_ac_Header'}'` = yes; then
15457 cat >>confdefs.h <<_ACEOF
15458 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
15466 for ac_header in sys/user.h
15468 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
15469 echo "$as_me:$LINENO: checking for $ac_header" >&5
15470 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
15471 if eval "test \"\${$as_ac_Header+set}\" = set"; then
15472 echo $ECHO_N "(cached) $ECHO_C" >&6
15474 cat >conftest.$ac_ext <<_ACEOF
15477 cat confdefs.h >>conftest.$ac_ext
15478 cat >>conftest.$ac_ext <<_ACEOF
15479 /* end confdefs.h. */
15480 #if HAVE_SYS_PARAM_H
15481 # include <sys/param.h>
15485 #include <$ac_header>
15487 rm -f conftest.$ac_objext
15488 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
15489 (eval $ac_compile) 2>conftest.er1
15491 grep -v '^ *+' conftest.er1 >conftest.err
15493 cat conftest.err >&5
15494 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15495 (exit $ac_status); } &&
15496 { ac_try='test -z "$ac_c_werror_flag"
15497 || test ! -s conftest.err'
15498 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15499 (eval $ac_try) 2>&5
15501 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15502 (exit $ac_status); }; } &&
15503 { ac_try='test -s conftest.$ac_objext'
15504 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15505 (eval $ac_try) 2>&5
15507 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15508 (exit $ac_status); }; }; then
15509 eval "$as_ac_Header=yes"
15511 echo "$as_me: failed program was:" >&5
15512 sed 's/^/| /' conftest.$ac_ext >&5
15514 eval "$as_ac_Header=no"
15516 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
15518 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
15519 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
15520 if test `eval echo '${'$as_ac_Header'}'` = yes; then
15521 cat >>confdefs.h <<_ACEOF
15522 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
15531 for ac_header in sys/wait.h wait.h
15533 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
15534 if eval "test \"\${$as_ac_Header+set}\" = set"; then
15535 echo "$as_me:$LINENO: checking for $ac_header" >&5
15536 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
15537 if eval "test \"\${$as_ac_Header+set}\" = set"; then
15538 echo $ECHO_N "(cached) $ECHO_C" >&6
15540 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
15541 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
15543 # Is the header compilable?
15544 echo "$as_me:$LINENO: checking $ac_header usability" >&5
15545 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
15546 cat >conftest.$ac_ext <<_ACEOF
15549 cat confdefs.h >>conftest.$ac_ext
15550 cat >>conftest.$ac_ext <<_ACEOF
15551 /* end confdefs.h. */
15552 $ac_includes_default
15553 #include <$ac_header>
15555 rm -f conftest.$ac_objext
15556 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
15557 (eval $ac_compile) 2>conftest.er1
15559 grep -v '^ *+' conftest.er1 >conftest.err
15561 cat conftest.err >&5
15562 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15563 (exit $ac_status); } &&
15564 { ac_try='test -z "$ac_c_werror_flag"
15565 || test ! -s conftest.err'
15566 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15567 (eval $ac_try) 2>&5
15569 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15570 (exit $ac_status); }; } &&
15571 { ac_try='test -s conftest.$ac_objext'
15572 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15573 (eval $ac_try) 2>&5
15575 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15576 (exit $ac_status); }; }; then
15577 ac_header_compiler=yes
15579 echo "$as_me: failed program was:" >&5
15580 sed 's/^/| /' conftest.$ac_ext >&5
15582 ac_header_compiler=no
15584 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
15585 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
15586 echo "${ECHO_T}$ac_header_compiler" >&6
15588 # Is the header present?
15589 echo "$as_me:$LINENO: checking $ac_header presence" >&5
15590 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
15591 cat >conftest.$ac_ext <<_ACEOF
15594 cat confdefs.h >>conftest.$ac_ext
15595 cat >>conftest.$ac_ext <<_ACEOF
15596 /* end confdefs.h. */
15597 #include <$ac_header>
15599 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
15600 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
15602 grep -v '^ *+' conftest.er1 >conftest.err
15604 cat conftest.err >&5
15605 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15606 (exit $ac_status); } >/dev/null; then
15607 if test -s conftest.err; then
15608 ac_cpp_err=$ac_c_preproc_warn_flag
15609 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
15616 if test -z "$ac_cpp_err"; then
15617 ac_header_preproc=yes
15619 echo "$as_me: failed program was:" >&5
15620 sed 's/^/| /' conftest.$ac_ext >&5
15622 ac_header_preproc=no
15624 rm -f conftest.err conftest.$ac_ext
15625 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
15626 echo "${ECHO_T}$ac_header_preproc" >&6
15628 # So? What about this header?
15629 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
15631 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
15632 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
15633 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
15634 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
15635 ac_header_preproc=yes
15638 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
15639 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
15640 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
15641 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
15642 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
15643 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
15644 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
15645 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
15646 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
15647 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
15648 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
15649 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
15652 ## ------------------------------------------ ##
15653 ## Report this to the AC_PACKAGE_NAME lists. ##
15654 ## ------------------------------------------ ##
15657 sed "s/^/$as_me: WARNING: /" >&2
15660 echo "$as_me:$LINENO: checking for $ac_header" >&5
15661 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
15662 if eval "test \"\${$as_ac_Header+set}\" = set"; then
15663 echo $ECHO_N "(cached) $ECHO_C" >&6
15665 eval "$as_ac_Header=\$ac_header_preproc"
15667 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
15668 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
15671 if test `eval echo '${'$as_ac_Header'}'` = yes; then
15672 cat >>confdefs.h <<_ACEOF
15673 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
15683 for ac_header in termios.h termio.h sgtty.h
15685 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
15686 if eval "test \"\${$as_ac_Header+set}\" = set"; then
15687 echo "$as_me:$LINENO: checking for $ac_header" >&5
15688 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
15689 if eval "test \"\${$as_ac_Header+set}\" = set"; then
15690 echo $ECHO_N "(cached) $ECHO_C" >&6
15692 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
15693 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
15695 # Is the header compilable?
15696 echo "$as_me:$LINENO: checking $ac_header usability" >&5
15697 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
15698 cat >conftest.$ac_ext <<_ACEOF
15701 cat confdefs.h >>conftest.$ac_ext
15702 cat >>conftest.$ac_ext <<_ACEOF
15703 /* end confdefs.h. */
15704 $ac_includes_default
15705 #include <$ac_header>
15707 rm -f conftest.$ac_objext
15708 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
15709 (eval $ac_compile) 2>conftest.er1
15711 grep -v '^ *+' conftest.er1 >conftest.err
15713 cat conftest.err >&5
15714 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15715 (exit $ac_status); } &&
15716 { ac_try='test -z "$ac_c_werror_flag"
15717 || test ! -s conftest.err'
15718 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15719 (eval $ac_try) 2>&5
15721 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15722 (exit $ac_status); }; } &&
15723 { ac_try='test -s conftest.$ac_objext'
15724 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15725 (eval $ac_try) 2>&5
15727 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15728 (exit $ac_status); }; }; then
15729 ac_header_compiler=yes
15731 echo "$as_me: failed program was:" >&5
15732 sed 's/^/| /' conftest.$ac_ext >&5
15734 ac_header_compiler=no
15736 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
15737 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
15738 echo "${ECHO_T}$ac_header_compiler" >&6
15740 # Is the header present?
15741 echo "$as_me:$LINENO: checking $ac_header presence" >&5
15742 echo $ECHO_N "checking $ac_header presence... $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. */
15749 #include <$ac_header>
15751 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
15752 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
15754 grep -v '^ *+' conftest.er1 >conftest.err
15756 cat conftest.err >&5
15757 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15758 (exit $ac_status); } >/dev/null; then
15759 if test -s conftest.err; then
15760 ac_cpp_err=$ac_c_preproc_warn_flag
15761 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
15768 if test -z "$ac_cpp_err"; then
15769 ac_header_preproc=yes
15771 echo "$as_me: failed program was:" >&5
15772 sed 's/^/| /' conftest.$ac_ext >&5
15774 ac_header_preproc=no
15776 rm -f conftest.err conftest.$ac_ext
15777 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
15778 echo "${ECHO_T}$ac_header_preproc" >&6
15780 # So? What about this header?
15781 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
15783 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
15784 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
15785 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
15786 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
15787 ac_header_preproc=yes
15790 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
15791 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
15792 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
15793 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
15794 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
15795 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
15796 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
15797 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
15798 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
15799 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
15800 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
15801 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
15804 ## ------------------------------------------ ##
15805 ## Report this to the AC_PACKAGE_NAME lists. ##
15806 ## ------------------------------------------ ##
15809 sed "s/^/$as_me: WARNING: /" >&2
15812 echo "$as_me:$LINENO: checking for $ac_header" >&5
15813 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
15814 if eval "test \"\${$as_ac_Header+set}\" = set"; then
15815 echo $ECHO_N "(cached) $ECHO_C" >&6
15817 eval "$as_ac_Header=\$ac_header_preproc"
15819 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
15820 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
15823 if test `eval echo '${'$as_ac_Header'}'` = yes; then
15824 cat >>confdefs.h <<_ACEOF
15825 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
15833 for ac_header in unistd.h
15835 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
15836 if eval "test \"\${$as_ac_Header+set}\" = set"; then
15837 echo "$as_me:$LINENO: checking for $ac_header" >&5
15838 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
15839 if eval "test \"\${$as_ac_Header+set}\" = set"; then
15840 echo $ECHO_N "(cached) $ECHO_C" >&6
15842 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
15843 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
15845 # Is the header compilable?
15846 echo "$as_me:$LINENO: checking $ac_header usability" >&5
15847 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
15848 cat >conftest.$ac_ext <<_ACEOF
15851 cat confdefs.h >>conftest.$ac_ext
15852 cat >>conftest.$ac_ext <<_ACEOF
15853 /* end confdefs.h. */
15854 $ac_includes_default
15855 #include <$ac_header>
15857 rm -f conftest.$ac_objext
15858 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
15859 (eval $ac_compile) 2>conftest.er1
15861 grep -v '^ *+' conftest.er1 >conftest.err
15863 cat conftest.err >&5
15864 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15865 (exit $ac_status); } &&
15866 { ac_try='test -z "$ac_c_werror_flag"
15867 || test ! -s conftest.err'
15868 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15869 (eval $ac_try) 2>&5
15871 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15872 (exit $ac_status); }; } &&
15873 { ac_try='test -s conftest.$ac_objext'
15874 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15875 (eval $ac_try) 2>&5
15877 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15878 (exit $ac_status); }; }; then
15879 ac_header_compiler=yes
15881 echo "$as_me: failed program was:" >&5
15882 sed 's/^/| /' conftest.$ac_ext >&5
15884 ac_header_compiler=no
15886 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
15887 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
15888 echo "${ECHO_T}$ac_header_compiler" >&6
15890 # Is the header present?
15891 echo "$as_me:$LINENO: checking $ac_header presence" >&5
15892 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
15893 cat >conftest.$ac_ext <<_ACEOF
15896 cat confdefs.h >>conftest.$ac_ext
15897 cat >>conftest.$ac_ext <<_ACEOF
15898 /* end confdefs.h. */
15899 #include <$ac_header>
15901 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
15902 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
15904 grep -v '^ *+' conftest.er1 >conftest.err
15906 cat conftest.err >&5
15907 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15908 (exit $ac_status); } >/dev/null; then
15909 if test -s conftest.err; then
15910 ac_cpp_err=$ac_c_preproc_warn_flag
15911 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
15918 if test -z "$ac_cpp_err"; then
15919 ac_header_preproc=yes
15921 echo "$as_me: failed program was:" >&5
15922 sed 's/^/| /' conftest.$ac_ext >&5
15924 ac_header_preproc=no
15926 rm -f conftest.err conftest.$ac_ext
15927 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
15928 echo "${ECHO_T}$ac_header_preproc" >&6
15930 # So? What about this header?
15931 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
15933 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
15934 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
15935 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
15936 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
15937 ac_header_preproc=yes
15940 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
15941 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
15942 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
15943 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
15944 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
15945 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
15946 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
15947 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
15948 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
15949 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
15950 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
15951 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
15954 ## ------------------------------------------ ##
15955 ## Report this to the AC_PACKAGE_NAME lists. ##
15956 ## ------------------------------------------ ##
15959 sed "s/^/$as_me: WARNING: /" >&2
15962 echo "$as_me:$LINENO: checking for $ac_header" >&5
15963 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
15964 if eval "test \"\${$as_ac_Header+set}\" = set"; then
15965 echo $ECHO_N "(cached) $ECHO_C" >&6
15967 eval "$as_ac_Header=\$ac_header_preproc"
15969 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
15970 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
15973 if test `eval echo '${'$as_ac_Header'}'` = yes; then
15974 cat >>confdefs.h <<_ACEOF
15975 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
15983 # On Solaris 2.[789], we need to define _MSE_INT_H to avoid a clash
15984 # between <widec.h> and <wchar.h> that would cause AC_CHECK_HEADERS to
15985 # think that we don't have <curses.h> if we're using GCC.
15988 if test "$GCC" = yes; then
15990 cat >>confdefs.h <<\_ACEOF
15991 #define _MSE_INT_H 1
16000 for ac_header in curses.h cursesX.h ncurses.h ncurses/ncurses.h
16002 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
16003 if eval "test \"\${$as_ac_Header+set}\" = set"; then
16004 echo "$as_me:$LINENO: checking for $ac_header" >&5
16005 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
16006 if eval "test \"\${$as_ac_Header+set}\" = set"; then
16007 echo $ECHO_N "(cached) $ECHO_C" >&6
16009 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
16010 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
16012 # Is the header compilable?
16013 echo "$as_me:$LINENO: checking $ac_header usability" >&5
16014 echo $ECHO_N "checking $ac_header usability... $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 $ac_includes_default
16022 #include <$ac_header>
16024 rm -f conftest.$ac_objext
16025 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
16026 (eval $ac_compile) 2>conftest.er1
16028 grep -v '^ *+' conftest.er1 >conftest.err
16030 cat conftest.err >&5
16031 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16032 (exit $ac_status); } &&
16033 { ac_try='test -z "$ac_c_werror_flag"
16034 || test ! -s conftest.err'
16035 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16036 (eval $ac_try) 2>&5
16038 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16039 (exit $ac_status); }; } &&
16040 { ac_try='test -s conftest.$ac_objext'
16041 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16042 (eval $ac_try) 2>&5
16044 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16045 (exit $ac_status); }; }; then
16046 ac_header_compiler=yes
16048 echo "$as_me: failed program was:" >&5
16049 sed 's/^/| /' conftest.$ac_ext >&5
16051 ac_header_compiler=no
16053 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
16054 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
16055 echo "${ECHO_T}$ac_header_compiler" >&6
16057 # Is the header present?
16058 echo "$as_me:$LINENO: checking $ac_header presence" >&5
16059 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
16060 cat >conftest.$ac_ext <<_ACEOF
16063 cat confdefs.h >>conftest.$ac_ext
16064 cat >>conftest.$ac_ext <<_ACEOF
16065 /* end confdefs.h. */
16066 #include <$ac_header>
16068 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
16069 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
16071 grep -v '^ *+' conftest.er1 >conftest.err
16073 cat conftest.err >&5
16074 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16075 (exit $ac_status); } >/dev/null; then
16076 if test -s conftest.err; then
16077 ac_cpp_err=$ac_c_preproc_warn_flag
16078 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
16085 if test -z "$ac_cpp_err"; then
16086 ac_header_preproc=yes
16088 echo "$as_me: failed program was:" >&5
16089 sed 's/^/| /' conftest.$ac_ext >&5
16091 ac_header_preproc=no
16093 rm -f conftest.err conftest.$ac_ext
16094 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
16095 echo "${ECHO_T}$ac_header_preproc" >&6
16097 # So? What about this header?
16098 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
16100 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
16101 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
16102 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
16103 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
16104 ac_header_preproc=yes
16107 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
16108 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
16109 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
16110 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
16111 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
16112 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
16113 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
16114 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
16115 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
16116 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
16117 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
16118 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
16121 ## ------------------------------------------ ##
16122 ## Report this to the AC_PACKAGE_NAME lists. ##
16123 ## ------------------------------------------ ##
16126 sed "s/^/$as_me: WARNING: /" >&2
16129 echo "$as_me:$LINENO: checking for $ac_header" >&5
16130 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
16131 if eval "test \"\${$as_ac_Header+set}\" = set"; then
16132 echo $ECHO_N "(cached) $ECHO_C" >&6
16134 eval "$as_ac_Header=\$ac_header_preproc"
16136 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
16137 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
16140 if test `eval echo '${'$as_ac_Header'}'` = yes; then
16141 cat >>confdefs.h <<_ACEOF
16142 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
16150 for ac_header in ncurses/term.h
16152 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
16153 if eval "test \"\${$as_ac_Header+set}\" = set"; then
16154 echo "$as_me:$LINENO: checking for $ac_header" >&5
16155 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
16156 if eval "test \"\${$as_ac_Header+set}\" = set"; then
16157 echo $ECHO_N "(cached) $ECHO_C" >&6
16159 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
16160 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
16162 # Is the header compilable?
16163 echo "$as_me:$LINENO: checking $ac_header usability" >&5
16164 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
16165 cat >conftest.$ac_ext <<_ACEOF
16168 cat confdefs.h >>conftest.$ac_ext
16169 cat >>conftest.$ac_ext <<_ACEOF
16170 /* end confdefs.h. */
16171 $ac_includes_default
16172 #include <$ac_header>
16174 rm -f conftest.$ac_objext
16175 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
16176 (eval $ac_compile) 2>conftest.er1
16178 grep -v '^ *+' conftest.er1 >conftest.err
16180 cat conftest.err >&5
16181 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16182 (exit $ac_status); } &&
16183 { ac_try='test -z "$ac_c_werror_flag"
16184 || test ! -s conftest.err'
16185 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16186 (eval $ac_try) 2>&5
16188 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16189 (exit $ac_status); }; } &&
16190 { ac_try='test -s conftest.$ac_objext'
16191 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16192 (eval $ac_try) 2>&5
16194 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16195 (exit $ac_status); }; }; then
16196 ac_header_compiler=yes
16198 echo "$as_me: failed program was:" >&5
16199 sed 's/^/| /' conftest.$ac_ext >&5
16201 ac_header_compiler=no
16203 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
16204 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
16205 echo "${ECHO_T}$ac_header_compiler" >&6
16207 # Is the header present?
16208 echo "$as_me:$LINENO: checking $ac_header presence" >&5
16209 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
16210 cat >conftest.$ac_ext <<_ACEOF
16213 cat confdefs.h >>conftest.$ac_ext
16214 cat >>conftest.$ac_ext <<_ACEOF
16215 /* end confdefs.h. */
16216 #include <$ac_header>
16218 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
16219 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
16221 grep -v '^ *+' conftest.er1 >conftest.err
16223 cat conftest.err >&5
16224 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16225 (exit $ac_status); } >/dev/null; then
16226 if test -s conftest.err; then
16227 ac_cpp_err=$ac_c_preproc_warn_flag
16228 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
16235 if test -z "$ac_cpp_err"; then
16236 ac_header_preproc=yes
16238 echo "$as_me: failed program was:" >&5
16239 sed 's/^/| /' conftest.$ac_ext >&5
16241 ac_header_preproc=no
16243 rm -f conftest.err conftest.$ac_ext
16244 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
16245 echo "${ECHO_T}$ac_header_preproc" >&6
16247 # So? What about this header?
16248 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
16250 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
16251 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
16252 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
16253 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
16254 ac_header_preproc=yes
16257 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
16258 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
16259 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
16260 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
16261 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
16262 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
16263 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
16264 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
16265 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
16266 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
16267 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
16268 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
16271 ## ------------------------------------------ ##
16272 ## Report this to the AC_PACKAGE_NAME lists. ##
16273 ## ------------------------------------------ ##
16276 sed "s/^/$as_me: WARNING: /" >&2
16279 echo "$as_me:$LINENO: checking for $ac_header" >&5
16280 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
16281 if eval "test \"\${$as_ac_Header+set}\" = set"; then
16282 echo $ECHO_N "(cached) $ECHO_C" >&6
16284 eval "$as_ac_Header=\$ac_header_preproc"
16286 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
16287 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
16290 if test `eval echo '${'$as_ac_Header'}'` = yes; then
16291 cat >>confdefs.h <<_ACEOF
16292 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
16300 for ac_header in term.h
16302 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
16303 echo "$as_me:$LINENO: checking for $ac_header" >&5
16304 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
16305 if eval "test \"\${$as_ac_Header+set}\" = set"; then
16306 echo $ECHO_N "(cached) $ECHO_C" >&6
16308 cat >conftest.$ac_ext <<_ACEOF
16311 cat confdefs.h >>conftest.$ac_ext
16312 cat >>conftest.$ac_ext <<_ACEOF
16313 /* end confdefs.h. */
16315 # include <curses.h>
16319 #include <$ac_header>
16321 rm -f conftest.$ac_objext
16322 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
16323 (eval $ac_compile) 2>conftest.er1
16325 grep -v '^ *+' conftest.er1 >conftest.err
16327 cat conftest.err >&5
16328 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16329 (exit $ac_status); } &&
16330 { ac_try='test -z "$ac_c_werror_flag"
16331 || test ! -s conftest.err'
16332 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16333 (eval $ac_try) 2>&5
16335 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16336 (exit $ac_status); }; } &&
16337 { ac_try='test -s conftest.$ac_objext'
16338 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16339 (eval $ac_try) 2>&5
16341 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16342 (exit $ac_status); }; }; then
16343 eval "$as_ac_Header=yes"
16345 echo "$as_me: failed program was:" >&5
16346 sed 's/^/| /' conftest.$ac_ext >&5
16348 eval "$as_ac_Header=no"
16350 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
16352 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
16353 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
16354 if test `eval echo '${'$as_ac_Header'}'` = yes; then
16355 cat >>confdefs.h <<_ACEOF
16356 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
16364 # Check for HP/UX 64-bit shared library support
16366 for ac_header in elf_hp.h
16368 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
16369 if eval "test \"\${$as_ac_Header+set}\" = set"; then
16370 echo "$as_me:$LINENO: checking for $ac_header" >&5
16371 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
16372 if eval "test \"\${$as_ac_Header+set}\" = set"; then
16373 echo $ECHO_N "(cached) $ECHO_C" >&6
16375 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
16376 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
16378 # Is the header compilable?
16379 echo "$as_me:$LINENO: checking $ac_header usability" >&5
16380 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
16381 cat >conftest.$ac_ext <<_ACEOF
16384 cat confdefs.h >>conftest.$ac_ext
16385 cat >>conftest.$ac_ext <<_ACEOF
16386 /* end confdefs.h. */
16387 $ac_includes_default
16388 #include <$ac_header>
16390 rm -f conftest.$ac_objext
16391 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
16392 (eval $ac_compile) 2>conftest.er1
16394 grep -v '^ *+' conftest.er1 >conftest.err
16396 cat conftest.err >&5
16397 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16398 (exit $ac_status); } &&
16399 { ac_try='test -z "$ac_c_werror_flag"
16400 || test ! -s conftest.err'
16401 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16402 (eval $ac_try) 2>&5
16404 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16405 (exit $ac_status); }; } &&
16406 { ac_try='test -s conftest.$ac_objext'
16407 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16408 (eval $ac_try) 2>&5
16410 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16411 (exit $ac_status); }; }; then
16412 ac_header_compiler=yes
16414 echo "$as_me: failed program was:" >&5
16415 sed 's/^/| /' conftest.$ac_ext >&5
16417 ac_header_compiler=no
16419 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
16420 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
16421 echo "${ECHO_T}$ac_header_compiler" >&6
16423 # Is the header present?
16424 echo "$as_me:$LINENO: checking $ac_header presence" >&5
16425 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
16426 cat >conftest.$ac_ext <<_ACEOF
16429 cat confdefs.h >>conftest.$ac_ext
16430 cat >>conftest.$ac_ext <<_ACEOF
16431 /* end confdefs.h. */
16432 #include <$ac_header>
16434 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
16435 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
16437 grep -v '^ *+' conftest.er1 >conftest.err
16439 cat conftest.err >&5
16440 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16441 (exit $ac_status); } >/dev/null; then
16442 if test -s conftest.err; then
16443 ac_cpp_err=$ac_c_preproc_warn_flag
16444 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
16451 if test -z "$ac_cpp_err"; then
16452 ac_header_preproc=yes
16454 echo "$as_me: failed program was:" >&5
16455 sed 's/^/| /' conftest.$ac_ext >&5
16457 ac_header_preproc=no
16459 rm -f conftest.err conftest.$ac_ext
16460 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
16461 echo "${ECHO_T}$ac_header_preproc" >&6
16463 # So? What about this header?
16464 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
16466 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
16467 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
16468 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
16469 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
16470 ac_header_preproc=yes
16473 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
16474 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
16475 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
16476 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
16477 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
16478 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
16479 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
16480 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
16481 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
16482 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
16483 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
16484 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
16487 ## ------------------------------------------ ##
16488 ## Report this to the AC_PACKAGE_NAME lists. ##
16489 ## ------------------------------------------ ##
16492 sed "s/^/$as_me: WARNING: /" >&2
16495 echo "$as_me:$LINENO: checking for $ac_header" >&5
16496 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
16497 if eval "test \"\${$as_ac_Header+set}\" = set"; then
16498 echo $ECHO_N "(cached) $ECHO_C" >&6
16500 eval "$as_ac_Header=\$ac_header_preproc"
16502 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
16503 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
16506 if test `eval echo '${'$as_ac_Header'}'` = yes; then
16507 cat >>confdefs.h <<_ACEOF
16508 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
16516 # FIXME: kettenis/20030102: In most cases we include these
16517 # unconditionally, so what's the point in checking these?
16520 for ac_header in ctype.h time.h
16522 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
16523 if eval "test \"\${$as_ac_Header+set}\" = set"; then
16524 echo "$as_me:$LINENO: checking for $ac_header" >&5
16525 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
16526 if eval "test \"\${$as_ac_Header+set}\" = set"; then
16527 echo $ECHO_N "(cached) $ECHO_C" >&6
16529 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
16530 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
16532 # Is the header compilable?
16533 echo "$as_me:$LINENO: checking $ac_header usability" >&5
16534 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
16535 cat >conftest.$ac_ext <<_ACEOF
16538 cat confdefs.h >>conftest.$ac_ext
16539 cat >>conftest.$ac_ext <<_ACEOF
16540 /* end confdefs.h. */
16541 $ac_includes_default
16542 #include <$ac_header>
16544 rm -f conftest.$ac_objext
16545 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
16546 (eval $ac_compile) 2>conftest.er1
16548 grep -v '^ *+' conftest.er1 >conftest.err
16550 cat conftest.err >&5
16551 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16552 (exit $ac_status); } &&
16553 { ac_try='test -z "$ac_c_werror_flag"
16554 || test ! -s conftest.err'
16555 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16556 (eval $ac_try) 2>&5
16558 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16559 (exit $ac_status); }; } &&
16560 { ac_try='test -s conftest.$ac_objext'
16561 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16562 (eval $ac_try) 2>&5
16564 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16565 (exit $ac_status); }; }; then
16566 ac_header_compiler=yes
16568 echo "$as_me: failed program was:" >&5
16569 sed 's/^/| /' conftest.$ac_ext >&5
16571 ac_header_compiler=no
16573 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
16574 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
16575 echo "${ECHO_T}$ac_header_compiler" >&6
16577 # Is the header present?
16578 echo "$as_me:$LINENO: checking $ac_header presence" >&5
16579 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
16580 cat >conftest.$ac_ext <<_ACEOF
16583 cat confdefs.h >>conftest.$ac_ext
16584 cat >>conftest.$ac_ext <<_ACEOF
16585 /* end confdefs.h. */
16586 #include <$ac_header>
16588 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
16589 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
16591 grep -v '^ *+' conftest.er1 >conftest.err
16593 cat conftest.err >&5
16594 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16595 (exit $ac_status); } >/dev/null; then
16596 if test -s conftest.err; then
16597 ac_cpp_err=$ac_c_preproc_warn_flag
16598 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
16605 if test -z "$ac_cpp_err"; then
16606 ac_header_preproc=yes
16608 echo "$as_me: failed program was:" >&5
16609 sed 's/^/| /' conftest.$ac_ext >&5
16611 ac_header_preproc=no
16613 rm -f conftest.err conftest.$ac_ext
16614 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
16615 echo "${ECHO_T}$ac_header_preproc" >&6
16617 # So? What about this header?
16618 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
16620 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
16621 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
16622 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
16623 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
16624 ac_header_preproc=yes
16627 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
16628 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
16629 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
16630 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
16631 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
16632 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
16633 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
16634 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
16635 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
16636 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
16637 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
16638 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
16641 ## ------------------------------------------ ##
16642 ## Report this to the AC_PACKAGE_NAME lists. ##
16643 ## ------------------------------------------ ##
16646 sed "s/^/$as_me: WARNING: /" >&2
16649 echo "$as_me:$LINENO: checking for $ac_header" >&5
16650 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
16651 if eval "test \"\${$as_ac_Header+set}\" = set"; then
16652 echo $ECHO_N "(cached) $ECHO_C" >&6
16654 eval "$as_ac_Header=\$ac_header_preproc"
16656 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
16657 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
16660 if test `eval echo '${'$as_ac_Header'}'` = yes; then
16661 cat >>confdefs.h <<_ACEOF
16662 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
16670 # ------------------------- #
16671 # Checks for declarations. #
16672 # ------------------------- #
16674 echo "$as_me:$LINENO: checking whether free is declared" >&5
16675 echo $ECHO_N "checking whether free is declared... $ECHO_C" >&6
16676 if test "${ac_cv_have_decl_free+set}" = set; then
16677 echo $ECHO_N "(cached) $ECHO_C" >&6
16679 cat >conftest.$ac_ext <<_ACEOF
16682 cat confdefs.h >>conftest.$ac_ext
16683 cat >>conftest.$ac_ext <<_ACEOF
16684 /* end confdefs.h. */
16685 $ac_includes_default
16690 char *p = (char *) free;
16697 rm -f conftest.$ac_objext
16698 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
16699 (eval $ac_compile) 2>conftest.er1
16701 grep -v '^ *+' conftest.er1 >conftest.err
16703 cat conftest.err >&5
16704 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16705 (exit $ac_status); } &&
16706 { ac_try='test -z "$ac_c_werror_flag"
16707 || test ! -s conftest.err'
16708 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16709 (eval $ac_try) 2>&5
16711 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16712 (exit $ac_status); }; } &&
16713 { ac_try='test -s conftest.$ac_objext'
16714 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16715 (eval $ac_try) 2>&5
16717 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16718 (exit $ac_status); }; }; then
16719 ac_cv_have_decl_free=yes
16721 echo "$as_me: failed program was:" >&5
16722 sed 's/^/| /' conftest.$ac_ext >&5
16724 ac_cv_have_decl_free=no
16726 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
16728 echo "$as_me:$LINENO: result: $ac_cv_have_decl_free" >&5
16729 echo "${ECHO_T}$ac_cv_have_decl_free" >&6
16730 if test $ac_cv_have_decl_free = yes; then
16732 cat >>confdefs.h <<_ACEOF
16733 #define HAVE_DECL_FREE 1
16738 cat >>confdefs.h <<_ACEOF
16739 #define HAVE_DECL_FREE 0
16744 echo "$as_me:$LINENO: checking whether malloc is declared" >&5
16745 echo $ECHO_N "checking whether malloc is declared... $ECHO_C" >&6
16746 if test "${ac_cv_have_decl_malloc+set}" = set; then
16747 echo $ECHO_N "(cached) $ECHO_C" >&6
16749 cat >conftest.$ac_ext <<_ACEOF
16752 cat confdefs.h >>conftest.$ac_ext
16753 cat >>conftest.$ac_ext <<_ACEOF
16754 /* end confdefs.h. */
16755 $ac_includes_default
16760 char *p = (char *) malloc;
16767 rm -f conftest.$ac_objext
16768 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
16769 (eval $ac_compile) 2>conftest.er1
16771 grep -v '^ *+' conftest.er1 >conftest.err
16773 cat conftest.err >&5
16774 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16775 (exit $ac_status); } &&
16776 { ac_try='test -z "$ac_c_werror_flag"
16777 || test ! -s conftest.err'
16778 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16779 (eval $ac_try) 2>&5
16781 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16782 (exit $ac_status); }; } &&
16783 { ac_try='test -s conftest.$ac_objext'
16784 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16785 (eval $ac_try) 2>&5
16787 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16788 (exit $ac_status); }; }; then
16789 ac_cv_have_decl_malloc=yes
16791 echo "$as_me: failed program was:" >&5
16792 sed 's/^/| /' conftest.$ac_ext >&5
16794 ac_cv_have_decl_malloc=no
16796 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
16798 echo "$as_me:$LINENO: result: $ac_cv_have_decl_malloc" >&5
16799 echo "${ECHO_T}$ac_cv_have_decl_malloc" >&6
16800 if test $ac_cv_have_decl_malloc = yes; then
16802 cat >>confdefs.h <<_ACEOF
16803 #define HAVE_DECL_MALLOC 1
16808 cat >>confdefs.h <<_ACEOF
16809 #define HAVE_DECL_MALLOC 0
16814 echo "$as_me:$LINENO: checking whether realloc is declared" >&5
16815 echo $ECHO_N "checking whether realloc is declared... $ECHO_C" >&6
16816 if test "${ac_cv_have_decl_realloc+set}" = set; then
16817 echo $ECHO_N "(cached) $ECHO_C" >&6
16819 cat >conftest.$ac_ext <<_ACEOF
16822 cat confdefs.h >>conftest.$ac_ext
16823 cat >>conftest.$ac_ext <<_ACEOF
16824 /* end confdefs.h. */
16825 $ac_includes_default
16830 char *p = (char *) realloc;
16837 rm -f conftest.$ac_objext
16838 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
16839 (eval $ac_compile) 2>conftest.er1
16841 grep -v '^ *+' conftest.er1 >conftest.err
16843 cat conftest.err >&5
16844 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16845 (exit $ac_status); } &&
16846 { ac_try='test -z "$ac_c_werror_flag"
16847 || test ! -s conftest.err'
16848 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16849 (eval $ac_try) 2>&5
16851 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16852 (exit $ac_status); }; } &&
16853 { ac_try='test -s conftest.$ac_objext'
16854 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16855 (eval $ac_try) 2>&5
16857 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16858 (exit $ac_status); }; }; then
16859 ac_cv_have_decl_realloc=yes
16861 echo "$as_me: failed program was:" >&5
16862 sed 's/^/| /' conftest.$ac_ext >&5
16864 ac_cv_have_decl_realloc=no
16866 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
16868 echo "$as_me:$LINENO: result: $ac_cv_have_decl_realloc" >&5
16869 echo "${ECHO_T}$ac_cv_have_decl_realloc" >&6
16870 if test $ac_cv_have_decl_realloc = yes; then
16872 cat >>confdefs.h <<_ACEOF
16873 #define HAVE_DECL_REALLOC 1
16878 cat >>confdefs.h <<_ACEOF
16879 #define HAVE_DECL_REALLOC 0
16886 echo "$as_me:$LINENO: checking whether strerror is declared" >&5
16887 echo $ECHO_N "checking whether strerror is declared... $ECHO_C" >&6
16888 if test "${ac_cv_have_decl_strerror+set}" = set; then
16889 echo $ECHO_N "(cached) $ECHO_C" >&6
16891 cat >conftest.$ac_ext <<_ACEOF
16894 cat confdefs.h >>conftest.$ac_ext
16895 cat >>conftest.$ac_ext <<_ACEOF
16896 /* end confdefs.h. */
16897 $ac_includes_default
16902 char *p = (char *) strerror;
16909 rm -f conftest.$ac_objext
16910 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
16911 (eval $ac_compile) 2>conftest.er1
16913 grep -v '^ *+' conftest.er1 >conftest.err
16915 cat conftest.err >&5
16916 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16917 (exit $ac_status); } &&
16918 { ac_try='test -z "$ac_c_werror_flag"
16919 || test ! -s conftest.err'
16920 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16921 (eval $ac_try) 2>&5
16923 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16924 (exit $ac_status); }; } &&
16925 { ac_try='test -s conftest.$ac_objext'
16926 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16927 (eval $ac_try) 2>&5
16929 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16930 (exit $ac_status); }; }; then
16931 ac_cv_have_decl_strerror=yes
16933 echo "$as_me: failed program was:" >&5
16934 sed 's/^/| /' conftest.$ac_ext >&5
16936 ac_cv_have_decl_strerror=no
16938 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
16940 echo "$as_me:$LINENO: result: $ac_cv_have_decl_strerror" >&5
16941 echo "${ECHO_T}$ac_cv_have_decl_strerror" >&6
16942 if test $ac_cv_have_decl_strerror = yes; then
16944 cat >>confdefs.h <<_ACEOF
16945 #define HAVE_DECL_STRERROR 1
16950 cat >>confdefs.h <<_ACEOF
16951 #define HAVE_DECL_STRERROR 0
16956 echo "$as_me:$LINENO: checking whether strstr is declared" >&5
16957 echo $ECHO_N "checking whether strstr is declared... $ECHO_C" >&6
16958 if test "${ac_cv_have_decl_strstr+set}" = set; then
16959 echo $ECHO_N "(cached) $ECHO_C" >&6
16961 cat >conftest.$ac_ext <<_ACEOF
16964 cat confdefs.h >>conftest.$ac_ext
16965 cat >>conftest.$ac_ext <<_ACEOF
16966 /* end confdefs.h. */
16967 $ac_includes_default
16972 char *p = (char *) strstr;
16979 rm -f conftest.$ac_objext
16980 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
16981 (eval $ac_compile) 2>conftest.er1
16983 grep -v '^ *+' conftest.er1 >conftest.err
16985 cat conftest.err >&5
16986 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16987 (exit $ac_status); } &&
16988 { ac_try='test -z "$ac_c_werror_flag"
16989 || test ! -s conftest.err'
16990 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16991 (eval $ac_try) 2>&5
16993 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16994 (exit $ac_status); }; } &&
16995 { ac_try='test -s conftest.$ac_objext'
16996 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16997 (eval $ac_try) 2>&5
16999 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17000 (exit $ac_status); }; }; then
17001 ac_cv_have_decl_strstr=yes
17003 echo "$as_me: failed program was:" >&5
17004 sed 's/^/| /' conftest.$ac_ext >&5
17006 ac_cv_have_decl_strstr=no
17008 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
17010 echo "$as_me:$LINENO: result: $ac_cv_have_decl_strstr" >&5
17011 echo "${ECHO_T}$ac_cv_have_decl_strstr" >&6
17012 if test $ac_cv_have_decl_strstr = yes; then
17014 cat >>confdefs.h <<_ACEOF
17015 #define HAVE_DECL_STRSTR 1
17020 cat >>confdefs.h <<_ACEOF
17021 #define HAVE_DECL_STRSTR 0
17028 echo "$as_me:$LINENO: checking whether getopt is declared" >&5
17029 echo $ECHO_N "checking whether getopt is declared... $ECHO_C" >&6
17030 if test "${ac_cv_have_decl_getopt+set}" = set; then
17031 echo $ECHO_N "(cached) $ECHO_C" >&6
17033 cat >conftest.$ac_ext <<_ACEOF
17036 cat confdefs.h >>conftest.$ac_ext
17037 cat >>conftest.$ac_ext <<_ACEOF
17038 /* end confdefs.h. */
17039 $ac_includes_default
17044 char *p = (char *) getopt;
17051 rm -f conftest.$ac_objext
17052 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
17053 (eval $ac_compile) 2>conftest.er1
17055 grep -v '^ *+' conftest.er1 >conftest.err
17057 cat conftest.err >&5
17058 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17059 (exit $ac_status); } &&
17060 { ac_try='test -z "$ac_c_werror_flag"
17061 || test ! -s conftest.err'
17062 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17063 (eval $ac_try) 2>&5
17065 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17066 (exit $ac_status); }; } &&
17067 { ac_try='test -s conftest.$ac_objext'
17068 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17069 (eval $ac_try) 2>&5
17071 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17072 (exit $ac_status); }; }; then
17073 ac_cv_have_decl_getopt=yes
17075 echo "$as_me: failed program was:" >&5
17076 sed 's/^/| /' conftest.$ac_ext >&5
17078 ac_cv_have_decl_getopt=no
17080 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
17082 echo "$as_me:$LINENO: result: $ac_cv_have_decl_getopt" >&5
17083 echo "${ECHO_T}$ac_cv_have_decl_getopt" >&6
17084 if test $ac_cv_have_decl_getopt = yes; then
17086 cat >>confdefs.h <<_ACEOF
17087 #define HAVE_DECL_GETOPT 1
17092 cat >>confdefs.h <<_ACEOF
17093 #define HAVE_DECL_GETOPT 0
17098 echo "$as_me:$LINENO: checking whether snprintf is declared" >&5
17099 echo $ECHO_N "checking whether snprintf is declared... $ECHO_C" >&6
17100 if test "${ac_cv_have_decl_snprintf+set}" = set; then
17101 echo $ECHO_N "(cached) $ECHO_C" >&6
17103 cat >conftest.$ac_ext <<_ACEOF
17106 cat confdefs.h >>conftest.$ac_ext
17107 cat >>conftest.$ac_ext <<_ACEOF
17108 /* end confdefs.h. */
17109 $ac_includes_default
17114 char *p = (char *) snprintf;
17121 rm -f conftest.$ac_objext
17122 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
17123 (eval $ac_compile) 2>conftest.er1
17125 grep -v '^ *+' conftest.er1 >conftest.err
17127 cat conftest.err >&5
17128 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17129 (exit $ac_status); } &&
17130 { ac_try='test -z "$ac_c_werror_flag"
17131 || test ! -s conftest.err'
17132 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17133 (eval $ac_try) 2>&5
17135 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17136 (exit $ac_status); }; } &&
17137 { ac_try='test -s conftest.$ac_objext'
17138 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17139 (eval $ac_try) 2>&5
17141 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17142 (exit $ac_status); }; }; then
17143 ac_cv_have_decl_snprintf=yes
17145 echo "$as_me: failed program was:" >&5
17146 sed 's/^/| /' conftest.$ac_ext >&5
17148 ac_cv_have_decl_snprintf=no
17150 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
17152 echo "$as_me:$LINENO: result: $ac_cv_have_decl_snprintf" >&5
17153 echo "${ECHO_T}$ac_cv_have_decl_snprintf" >&6
17154 if test $ac_cv_have_decl_snprintf = yes; then
17156 cat >>confdefs.h <<_ACEOF
17157 #define HAVE_DECL_SNPRINTF 1
17162 cat >>confdefs.h <<_ACEOF
17163 #define HAVE_DECL_SNPRINTF 0
17168 echo "$as_me:$LINENO: checking whether vsnprintf is declared" >&5
17169 echo $ECHO_N "checking whether vsnprintf is declared... $ECHO_C" >&6
17170 if test "${ac_cv_have_decl_vsnprintf+set}" = set; then
17171 echo $ECHO_N "(cached) $ECHO_C" >&6
17173 cat >conftest.$ac_ext <<_ACEOF
17176 cat confdefs.h >>conftest.$ac_ext
17177 cat >>conftest.$ac_ext <<_ACEOF
17178 /* end confdefs.h. */
17179 $ac_includes_default
17184 char *p = (char *) vsnprintf;
17191 rm -f conftest.$ac_objext
17192 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
17193 (eval $ac_compile) 2>conftest.er1
17195 grep -v '^ *+' conftest.er1 >conftest.err
17197 cat conftest.err >&5
17198 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17199 (exit $ac_status); } &&
17200 { ac_try='test -z "$ac_c_werror_flag"
17201 || test ! -s conftest.err'
17202 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17203 (eval $ac_try) 2>&5
17205 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17206 (exit $ac_status); }; } &&
17207 { ac_try='test -s conftest.$ac_objext'
17208 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17209 (eval $ac_try) 2>&5
17211 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17212 (exit $ac_status); }; }; then
17213 ac_cv_have_decl_vsnprintf=yes
17215 echo "$as_me: failed program was:" >&5
17216 sed 's/^/| /' conftest.$ac_ext >&5
17218 ac_cv_have_decl_vsnprintf=no
17220 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
17222 echo "$as_me:$LINENO: result: $ac_cv_have_decl_vsnprintf" >&5
17223 echo "${ECHO_T}$ac_cv_have_decl_vsnprintf" >&6
17224 if test $ac_cv_have_decl_vsnprintf = yes; then
17226 cat >>confdefs.h <<_ACEOF
17227 #define HAVE_DECL_VSNPRINTF 1
17232 cat >>confdefs.h <<_ACEOF
17233 #define HAVE_DECL_VSNPRINTF 0
17241 # ----------------------- #
17242 # Checks for structures. #
17243 # ----------------------- #
17245 echo "$as_me:$LINENO: checking for struct stat.st_blocks" >&5
17246 echo $ECHO_N "checking for struct stat.st_blocks... $ECHO_C" >&6
17247 if test "${ac_cv_member_struct_stat_st_blocks+set}" = set; then
17248 echo $ECHO_N "(cached) $ECHO_C" >&6
17250 cat >conftest.$ac_ext <<_ACEOF
17253 cat confdefs.h >>conftest.$ac_ext
17254 cat >>conftest.$ac_ext <<_ACEOF
17255 /* end confdefs.h. */
17256 $ac_includes_default
17260 static struct stat ac_aggr;
17261 if (ac_aggr.st_blocks)
17267 rm -f conftest.$ac_objext
17268 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
17269 (eval $ac_compile) 2>conftest.er1
17271 grep -v '^ *+' conftest.er1 >conftest.err
17273 cat conftest.err >&5
17274 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17275 (exit $ac_status); } &&
17276 { ac_try='test -z "$ac_c_werror_flag"
17277 || test ! -s conftest.err'
17278 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17279 (eval $ac_try) 2>&5
17281 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17282 (exit $ac_status); }; } &&
17283 { ac_try='test -s conftest.$ac_objext'
17284 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17285 (eval $ac_try) 2>&5
17287 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17288 (exit $ac_status); }; }; then
17289 ac_cv_member_struct_stat_st_blocks=yes
17291 echo "$as_me: failed program was:" >&5
17292 sed 's/^/| /' conftest.$ac_ext >&5
17294 cat >conftest.$ac_ext <<_ACEOF
17297 cat confdefs.h >>conftest.$ac_ext
17298 cat >>conftest.$ac_ext <<_ACEOF
17299 /* end confdefs.h. */
17300 $ac_includes_default
17304 static struct stat ac_aggr;
17305 if (sizeof ac_aggr.st_blocks)
17311 rm -f conftest.$ac_objext
17312 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
17313 (eval $ac_compile) 2>conftest.er1
17315 grep -v '^ *+' conftest.er1 >conftest.err
17317 cat conftest.err >&5
17318 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17319 (exit $ac_status); } &&
17320 { ac_try='test -z "$ac_c_werror_flag"
17321 || test ! -s conftest.err'
17322 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17323 (eval $ac_try) 2>&5
17325 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17326 (exit $ac_status); }; } &&
17327 { ac_try='test -s conftest.$ac_objext'
17328 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17329 (eval $ac_try) 2>&5
17331 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17332 (exit $ac_status); }; }; then
17333 ac_cv_member_struct_stat_st_blocks=yes
17335 echo "$as_me: failed program was:" >&5
17336 sed 's/^/| /' conftest.$ac_ext >&5
17338 ac_cv_member_struct_stat_st_blocks=no
17340 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
17342 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
17344 echo "$as_me:$LINENO: result: $ac_cv_member_struct_stat_st_blocks" >&5
17345 echo "${ECHO_T}$ac_cv_member_struct_stat_st_blocks" >&6
17346 if test $ac_cv_member_struct_stat_st_blocks = yes; then
17348 cat >>confdefs.h <<_ACEOF
17349 #define HAVE_STRUCT_STAT_ST_BLOCKS 1
17355 echo "$as_me:$LINENO: checking for struct stat.st_blksize" >&5
17356 echo $ECHO_N "checking for struct stat.st_blksize... $ECHO_C" >&6
17357 if test "${ac_cv_member_struct_stat_st_blksize+set}" = set; then
17358 echo $ECHO_N "(cached) $ECHO_C" >&6
17360 cat >conftest.$ac_ext <<_ACEOF
17363 cat confdefs.h >>conftest.$ac_ext
17364 cat >>conftest.$ac_ext <<_ACEOF
17365 /* end confdefs.h. */
17366 $ac_includes_default
17370 static struct stat ac_aggr;
17371 if (ac_aggr.st_blksize)
17377 rm -f conftest.$ac_objext
17378 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
17379 (eval $ac_compile) 2>conftest.er1
17381 grep -v '^ *+' conftest.er1 >conftest.err
17383 cat conftest.err >&5
17384 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17385 (exit $ac_status); } &&
17386 { ac_try='test -z "$ac_c_werror_flag"
17387 || test ! -s conftest.err'
17388 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17389 (eval $ac_try) 2>&5
17391 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17392 (exit $ac_status); }; } &&
17393 { ac_try='test -s conftest.$ac_objext'
17394 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17395 (eval $ac_try) 2>&5
17397 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17398 (exit $ac_status); }; }; then
17399 ac_cv_member_struct_stat_st_blksize=yes
17401 echo "$as_me: failed program was:" >&5
17402 sed 's/^/| /' conftest.$ac_ext >&5
17404 cat >conftest.$ac_ext <<_ACEOF
17407 cat confdefs.h >>conftest.$ac_ext
17408 cat >>conftest.$ac_ext <<_ACEOF
17409 /* end confdefs.h. */
17410 $ac_includes_default
17414 static struct stat ac_aggr;
17415 if (sizeof ac_aggr.st_blksize)
17421 rm -f conftest.$ac_objext
17422 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
17423 (eval $ac_compile) 2>conftest.er1
17425 grep -v '^ *+' conftest.er1 >conftest.err
17427 cat conftest.err >&5
17428 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17429 (exit $ac_status); } &&
17430 { ac_try='test -z "$ac_c_werror_flag"
17431 || test ! -s conftest.err'
17432 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17433 (eval $ac_try) 2>&5
17435 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17436 (exit $ac_status); }; } &&
17437 { ac_try='test -s conftest.$ac_objext'
17438 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17439 (eval $ac_try) 2>&5
17441 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17442 (exit $ac_status); }; }; then
17443 ac_cv_member_struct_stat_st_blksize=yes
17445 echo "$as_me: failed program was:" >&5
17446 sed 's/^/| /' conftest.$ac_ext >&5
17448 ac_cv_member_struct_stat_st_blksize=no
17450 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
17452 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
17454 echo "$as_me:$LINENO: result: $ac_cv_member_struct_stat_st_blksize" >&5
17455 echo "${ECHO_T}$ac_cv_member_struct_stat_st_blksize" >&6
17456 if test $ac_cv_member_struct_stat_st_blksize = yes; then
17458 cat >>confdefs.h <<_ACEOF
17459 #define HAVE_STRUCT_STAT_ST_BLKSIZE 1
17466 # ------------------ #
17467 # Checks for types. #
17468 # ------------------ #
17470 echo "$as_me:$LINENO: checking return type of signal handlers" >&5
17471 echo $ECHO_N "checking return type of signal handlers... $ECHO_C" >&6
17472 if test "${ac_cv_type_signal+set}" = set; then
17473 echo $ECHO_N "(cached) $ECHO_C" >&6
17475 cat >conftest.$ac_ext <<_ACEOF
17478 cat confdefs.h >>conftest.$ac_ext
17479 cat >>conftest.$ac_ext <<_ACEOF
17480 /* end confdefs.h. */
17481 #include <sys/types.h>
17482 #include <signal.h>
17487 extern "C" void (*signal (int, void (*)(int)))(int);
17489 void (*signal ()) ();
17500 rm -f conftest.$ac_objext
17501 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
17502 (eval $ac_compile) 2>conftest.er1
17504 grep -v '^ *+' conftest.er1 >conftest.err
17506 cat conftest.err >&5
17507 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17508 (exit $ac_status); } &&
17509 { ac_try='test -z "$ac_c_werror_flag"
17510 || test ! -s conftest.err'
17511 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17512 (eval $ac_try) 2>&5
17514 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17515 (exit $ac_status); }; } &&
17516 { ac_try='test -s conftest.$ac_objext'
17517 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17518 (eval $ac_try) 2>&5
17520 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17521 (exit $ac_status); }; }; then
17522 ac_cv_type_signal=void
17524 echo "$as_me: failed program was:" >&5
17525 sed 's/^/| /' conftest.$ac_ext >&5
17527 ac_cv_type_signal=int
17529 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
17531 echo "$as_me:$LINENO: result: $ac_cv_type_signal" >&5
17532 echo "${ECHO_T}$ac_cv_type_signal" >&6
17534 cat >>confdefs.h <<_ACEOF
17535 #define RETSIGTYPE $ac_cv_type_signal
17539 echo "$as_me:$LINENO: checking for socklen_t" >&5
17540 echo $ECHO_N "checking for socklen_t... $ECHO_C" >&6
17541 if test "${ac_cv_type_socklen_t+set}" = set; then
17542 echo $ECHO_N "(cached) $ECHO_C" >&6
17544 cat >conftest.$ac_ext <<_ACEOF
17547 cat confdefs.h >>conftest.$ac_ext
17548 cat >>conftest.$ac_ext <<_ACEOF
17549 /* end confdefs.h. */
17550 #include <sys/types.h>
17551 #include <sys/socket.h>
17557 if ((socklen_t *) 0)
17559 if (sizeof (socklen_t))
17565 rm -f conftest.$ac_objext
17566 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
17567 (eval $ac_compile) 2>conftest.er1
17569 grep -v '^ *+' conftest.er1 >conftest.err
17571 cat conftest.err >&5
17572 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17573 (exit $ac_status); } &&
17574 { ac_try='test -z "$ac_c_werror_flag"
17575 || test ! -s conftest.err'
17576 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17577 (eval $ac_try) 2>&5
17579 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17580 (exit $ac_status); }; } &&
17581 { ac_try='test -s conftest.$ac_objext'
17582 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17583 (eval $ac_try) 2>&5
17585 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17586 (exit $ac_status); }; }; then
17587 ac_cv_type_socklen_t=yes
17589 echo "$as_me: failed program was:" >&5
17590 sed 's/^/| /' conftest.$ac_ext >&5
17592 ac_cv_type_socklen_t=no
17594 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
17596 echo "$as_me:$LINENO: result: $ac_cv_type_socklen_t" >&5
17597 echo "${ECHO_T}$ac_cv_type_socklen_t" >&6
17598 if test $ac_cv_type_socklen_t = yes; then
17600 cat >>confdefs.h <<_ACEOF
17601 #define HAVE_SOCKLEN_T 1
17608 # ------------------------------------- #
17609 # Checks for compiler characteristics. #
17610 # ------------------------------------- #
17612 echo "$as_me:$LINENO: checking for an ANSI C-conforming const" >&5
17613 echo $ECHO_N "checking for an ANSI C-conforming const... $ECHO_C" >&6
17614 if test "${ac_cv_c_const+set}" = set; then
17615 echo $ECHO_N "(cached) $ECHO_C" >&6
17617 cat >conftest.$ac_ext <<_ACEOF
17620 cat confdefs.h >>conftest.$ac_ext
17621 cat >>conftest.$ac_ext <<_ACEOF
17622 /* end confdefs.h. */
17627 /* FIXME: Include the comments suggested by Paul. */
17628 #ifndef __cplusplus
17629 /* Ultrix mips cc rejects this. */
17630 typedef int charset[2];
17632 /* SunOS 4.1.1 cc rejects this. */
17633 char const *const *ccp;
17635 /* NEC SVR4.0.2 mips cc rejects this. */
17636 struct point {int x, y;};
17637 static struct point const zero = {0,0};
17638 /* AIX XL C 1.02.0.0 rejects this.
17639 It does not let you subtract one const X* pointer from another in
17640 an arm of an if-expression whose if-part is not a constant
17642 const char *g = "string";
17643 ccp = &g + (g ? g-g : 0);
17644 /* HPUX 7.0 cc rejects these. */
17647 ccp = (char const *const *) p;
17648 { /* SCO 3.2v4 cc rejects this. */
17650 char const *s = 0 ? (char *) 0 : (char const *) 0;
17654 { /* Someone thinks the Sun supposedly-ANSI compiler will reject this. */
17655 int x[] = {25, 17};
17656 const int *foo = &x[0];
17659 { /* Sun SC1.0 ANSI compiler rejects this -- but not the above. */
17660 typedef const int *iptr;
17664 { /* AIX XL C 1.02.0.0 rejects this saying
17665 "k.c", line 2.27: 1506-025 (S) Operand must be a modifiable lvalue. */
17666 struct s { int j; const int *ap[3]; };
17667 struct s *b; b->j = 5;
17669 { /* ULTRIX-32 V3.1 (Rev 9) vcc rejects this */
17670 const int foo = 10;
17678 rm -f conftest.$ac_objext
17679 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
17680 (eval $ac_compile) 2>conftest.er1
17682 grep -v '^ *+' conftest.er1 >conftest.err
17684 cat conftest.err >&5
17685 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17686 (exit $ac_status); } &&
17687 { ac_try='test -z "$ac_c_werror_flag"
17688 || test ! -s conftest.err'
17689 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17690 (eval $ac_try) 2>&5
17692 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17693 (exit $ac_status); }; } &&
17694 { ac_try='test -s conftest.$ac_objext'
17695 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17696 (eval $ac_try) 2>&5
17698 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17699 (exit $ac_status); }; }; then
17702 echo "$as_me: failed program was:" >&5
17703 sed 's/^/| /' conftest.$ac_ext >&5
17707 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
17709 echo "$as_me:$LINENO: result: $ac_cv_c_const" >&5
17710 echo "${ECHO_T}$ac_cv_c_const" >&6
17711 if test $ac_cv_c_const = no; then
17713 cat >>confdefs.h <<\_ACEOF
17719 echo "$as_me:$LINENO: checking for inline" >&5
17720 echo $ECHO_N "checking for inline... $ECHO_C" >&6
17721 if test "${ac_cv_c_inline+set}" = set; then
17722 echo $ECHO_N "(cached) $ECHO_C" >&6
17725 for ac_kw in inline __inline__ __inline; do
17726 cat >conftest.$ac_ext <<_ACEOF
17729 cat confdefs.h >>conftest.$ac_ext
17730 cat >>conftest.$ac_ext <<_ACEOF
17731 /* end confdefs.h. */
17732 #ifndef __cplusplus
17734 static $ac_kw foo_t static_foo () {return 0; }
17735 $ac_kw foo_t foo () {return 0; }
17739 rm -f conftest.$ac_objext
17740 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
17741 (eval $ac_compile) 2>conftest.er1
17743 grep -v '^ *+' conftest.er1 >conftest.err
17745 cat conftest.err >&5
17746 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17747 (exit $ac_status); } &&
17748 { ac_try='test -z "$ac_c_werror_flag"
17749 || test ! -s conftest.err'
17750 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17751 (eval $ac_try) 2>&5
17753 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17754 (exit $ac_status); }; } &&
17755 { ac_try='test -s conftest.$ac_objext'
17756 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17757 (eval $ac_try) 2>&5
17759 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17760 (exit $ac_status); }; }; then
17761 ac_cv_c_inline=$ac_kw; break
17763 echo "$as_me: failed program was:" >&5
17764 sed 's/^/| /' conftest.$ac_ext >&5
17767 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
17771 echo "$as_me:$LINENO: result: $ac_cv_c_inline" >&5
17772 echo "${ECHO_T}$ac_cv_c_inline" >&6
17775 case $ac_cv_c_inline in
17778 case $ac_cv_c_inline in
17780 *) ac_val=$ac_cv_c_inline;;
17782 cat >>confdefs.h <<_ACEOF
17783 #ifndef __cplusplus
17784 #define inline $ac_val
17790 echo "$as_me:$LINENO: checking whether byte ordering is bigendian" >&5
17791 echo $ECHO_N "checking whether byte ordering is bigendian... $ECHO_C" >&6
17792 if test "${ac_cv_c_bigendian+set}" = set; then
17793 echo $ECHO_N "(cached) $ECHO_C" >&6
17795 # See if sys/param.h defines the BYTE_ORDER macro.
17796 cat >conftest.$ac_ext <<_ACEOF
17799 cat confdefs.h >>conftest.$ac_ext
17800 cat >>conftest.$ac_ext <<_ACEOF
17801 /* end confdefs.h. */
17802 #include <sys/types.h>
17803 #include <sys/param.h>
17808 #if !BYTE_ORDER || !BIG_ENDIAN || !LITTLE_ENDIAN
17809 bogus endian macros
17816 rm -f conftest.$ac_objext
17817 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
17818 (eval $ac_compile) 2>conftest.er1
17820 grep -v '^ *+' conftest.er1 >conftest.err
17822 cat conftest.err >&5
17823 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17824 (exit $ac_status); } &&
17825 { ac_try='test -z "$ac_c_werror_flag"
17826 || test ! -s conftest.err'
17827 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17828 (eval $ac_try) 2>&5
17830 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17831 (exit $ac_status); }; } &&
17832 { ac_try='test -s conftest.$ac_objext'
17833 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17834 (eval $ac_try) 2>&5
17836 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17837 (exit $ac_status); }; }; then
17838 # It does; now see whether it defined to BIG_ENDIAN or not.
17839 cat >conftest.$ac_ext <<_ACEOF
17842 cat confdefs.h >>conftest.$ac_ext
17843 cat >>conftest.$ac_ext <<_ACEOF
17844 /* end confdefs.h. */
17845 #include <sys/types.h>
17846 #include <sys/param.h>
17851 #if BYTE_ORDER != BIG_ENDIAN
17859 rm -f conftest.$ac_objext
17860 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
17861 (eval $ac_compile) 2>conftest.er1
17863 grep -v '^ *+' conftest.er1 >conftest.err
17865 cat conftest.err >&5
17866 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17867 (exit $ac_status); } &&
17868 { ac_try='test -z "$ac_c_werror_flag"
17869 || test ! -s conftest.err'
17870 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17871 (eval $ac_try) 2>&5
17873 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17874 (exit $ac_status); }; } &&
17875 { ac_try='test -s conftest.$ac_objext'
17876 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17877 (eval $ac_try) 2>&5
17879 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17880 (exit $ac_status); }; }; then
17881 ac_cv_c_bigendian=yes
17883 echo "$as_me: failed program was:" >&5
17884 sed 's/^/| /' conftest.$ac_ext >&5
17886 ac_cv_c_bigendian=no
17888 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
17890 echo "$as_me: failed program was:" >&5
17891 sed 's/^/| /' conftest.$ac_ext >&5
17893 # It does not; compile a test program.
17894 if test "$cross_compiling" = yes; then
17895 # try to guess the endianness by grepping values into an object file
17896 ac_cv_c_bigendian=unknown
17897 cat >conftest.$ac_ext <<_ACEOF
17900 cat confdefs.h >>conftest.$ac_ext
17901 cat >>conftest.$ac_ext <<_ACEOF
17902 /* end confdefs.h. */
17903 short ascii_mm[] = { 0x4249, 0x4765, 0x6E44, 0x6961, 0x6E53, 0x7953, 0 };
17904 short ascii_ii[] = { 0x694C, 0x5454, 0x656C, 0x6E45, 0x6944, 0x6E61, 0 };
17905 void _ascii () { char *s = (char *) ascii_mm; s = (char *) ascii_ii; }
17906 short ebcdic_ii[] = { 0x89D3, 0xE3E3, 0x8593, 0x95C5, 0x89C4, 0x9581, 0 };
17907 short ebcdic_mm[] = { 0xC2C9, 0xC785, 0x95C4, 0x8981, 0x95E2, 0xA8E2, 0 };
17908 void _ebcdic () { char *s = (char *) ebcdic_mm; s = (char *) ebcdic_ii; }
17912 _ascii (); _ebcdic ();
17917 rm -f conftest.$ac_objext
17918 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
17919 (eval $ac_compile) 2>conftest.er1
17921 grep -v '^ *+' conftest.er1 >conftest.err
17923 cat conftest.err >&5
17924 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17925 (exit $ac_status); } &&
17926 { ac_try='test -z "$ac_c_werror_flag"
17927 || test ! -s conftest.err'
17928 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17929 (eval $ac_try) 2>&5
17931 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17932 (exit $ac_status); }; } &&
17933 { ac_try='test -s conftest.$ac_objext'
17934 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17935 (eval $ac_try) 2>&5
17937 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17938 (exit $ac_status); }; }; then
17939 if grep BIGenDianSyS conftest.$ac_objext >/dev/null ; then
17940 ac_cv_c_bigendian=yes
17942 if grep LiTTleEnDian conftest.$ac_objext >/dev/null ; then
17943 if test "$ac_cv_c_bigendian" = unknown; then
17944 ac_cv_c_bigendian=no
17946 # finding both strings is unlikely to happen, but who knows?
17947 ac_cv_c_bigendian=unknown
17951 echo "$as_me: failed program was:" >&5
17952 sed 's/^/| /' conftest.$ac_ext >&5
17955 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
17957 cat >conftest.$ac_ext <<_ACEOF
17960 cat confdefs.h >>conftest.$ac_ext
17961 cat >>conftest.$ac_ext <<_ACEOF
17962 /* end confdefs.h. */
17966 /* Are we little or big endian? From Harbison&Steele. */
17970 char c[sizeof (long)];
17973 exit (u.c[sizeof (long) - 1] == 1);
17976 rm -f conftest$ac_exeext
17977 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
17978 (eval $ac_link) 2>&5
17980 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17981 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
17982 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17983 (eval $ac_try) 2>&5
17985 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17986 (exit $ac_status); }; }; then
17987 ac_cv_c_bigendian=no
17989 echo "$as_me: program exited with status $ac_status" >&5
17990 echo "$as_me: failed program was:" >&5
17991 sed 's/^/| /' conftest.$ac_ext >&5
17993 ( exit $ac_status )
17994 ac_cv_c_bigendian=yes
17996 rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
17999 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
18001 echo "$as_me:$LINENO: result: $ac_cv_c_bigendian" >&5
18002 echo "${ECHO_T}$ac_cv_c_bigendian" >&6
18003 case $ac_cv_c_bigendian in
18006 cat >>confdefs.h <<\_ACEOF
18007 #define WORDS_BIGENDIAN 1
18013 { { echo "$as_me:$LINENO: error: unknown endianness
18014 presetting ac_cv_c_bigendian=no (or yes) will help" >&5
18015 echo "$as_me: error: unknown endianness
18016 presetting ac_cv_c_bigendian=no (or yes) will help" >&2;}
18017 { (exit 1); exit 1; }; } ;;
18021 # ------------------------------ #
18022 # Checks for library functions. #
18023 # ------------------------------ #
18025 # The Ultrix 4.2 mips builtin alloca declared by alloca.h only works
18026 # for constant arguments. Useless!
18027 echo "$as_me:$LINENO: checking for working alloca.h" >&5
18028 echo $ECHO_N "checking for working alloca.h... $ECHO_C" >&6
18029 if test "${ac_cv_working_alloca_h+set}" = set; then
18030 echo $ECHO_N "(cached) $ECHO_C" >&6
18032 cat >conftest.$ac_ext <<_ACEOF
18035 cat confdefs.h >>conftest.$ac_ext
18036 cat >>conftest.$ac_ext <<_ACEOF
18037 /* end confdefs.h. */
18038 #include <alloca.h>
18042 char *p = (char *) alloca (2 * sizeof (int));
18047 rm -f conftest.$ac_objext conftest$ac_exeext
18048 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
18049 (eval $ac_link) 2>conftest.er1
18051 grep -v '^ *+' conftest.er1 >conftest.err
18053 cat conftest.err >&5
18054 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18055 (exit $ac_status); } &&
18056 { ac_try='test -z "$ac_c_werror_flag"
18057 || test ! -s conftest.err'
18058 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18059 (eval $ac_try) 2>&5
18061 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18062 (exit $ac_status); }; } &&
18063 { ac_try='test -s conftest$ac_exeext'
18064 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18065 (eval $ac_try) 2>&5
18067 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18068 (exit $ac_status); }; }; then
18069 ac_cv_working_alloca_h=yes
18071 echo "$as_me: failed program was:" >&5
18072 sed 's/^/| /' conftest.$ac_ext >&5
18074 ac_cv_working_alloca_h=no
18076 rm -f conftest.err conftest.$ac_objext \
18077 conftest$ac_exeext conftest.$ac_ext
18079 echo "$as_me:$LINENO: result: $ac_cv_working_alloca_h" >&5
18080 echo "${ECHO_T}$ac_cv_working_alloca_h" >&6
18081 if test $ac_cv_working_alloca_h = yes; then
18083 cat >>confdefs.h <<\_ACEOF
18084 #define HAVE_ALLOCA_H 1
18089 echo "$as_me:$LINENO: checking for alloca" >&5
18090 echo $ECHO_N "checking for alloca... $ECHO_C" >&6
18091 if test "${ac_cv_func_alloca_works+set}" = set; then
18092 echo $ECHO_N "(cached) $ECHO_C" >&6
18094 cat >conftest.$ac_ext <<_ACEOF
18097 cat confdefs.h >>conftest.$ac_ext
18098 cat >>conftest.$ac_ext <<_ACEOF
18099 /* end confdefs.h. */
18101 # define alloca __builtin_alloca
18104 # include <malloc.h>
18105 # define alloca _alloca
18108 # include <alloca.h>
18113 # ifndef alloca /* predefined by HP cc +Olibcalls */
18124 char *p = (char *) alloca (1);
18129 rm -f conftest.$ac_objext conftest$ac_exeext
18130 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
18131 (eval $ac_link) 2>conftest.er1
18133 grep -v '^ *+' conftest.er1 >conftest.err
18135 cat conftest.err >&5
18136 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18137 (exit $ac_status); } &&
18138 { ac_try='test -z "$ac_c_werror_flag"
18139 || test ! -s conftest.err'
18140 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18141 (eval $ac_try) 2>&5
18143 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18144 (exit $ac_status); }; } &&
18145 { ac_try='test -s conftest$ac_exeext'
18146 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18147 (eval $ac_try) 2>&5
18149 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18150 (exit $ac_status); }; }; then
18151 ac_cv_func_alloca_works=yes
18153 echo "$as_me: failed program was:" >&5
18154 sed 's/^/| /' conftest.$ac_ext >&5
18156 ac_cv_func_alloca_works=no
18158 rm -f conftest.err conftest.$ac_objext \
18159 conftest$ac_exeext conftest.$ac_ext
18161 echo "$as_me:$LINENO: result: $ac_cv_func_alloca_works" >&5
18162 echo "${ECHO_T}$ac_cv_func_alloca_works" >&6
18164 if test $ac_cv_func_alloca_works = yes; then
18166 cat >>confdefs.h <<\_ACEOF
18167 #define HAVE_ALLOCA 1
18171 # The SVR3 libPW and SVR4 libucb both contain incompatible functions
18172 # that cause trouble. Some versions do not even contain alloca or
18173 # contain a buggy version. If you still want to use their alloca,
18174 # use ar to extract alloca.o from them instead of compiling alloca.c.
18176 ALLOCA=alloca.$ac_objext
18178 cat >>confdefs.h <<\_ACEOF
18183 echo "$as_me:$LINENO: checking whether \`alloca.c' needs Cray hooks" >&5
18184 echo $ECHO_N "checking whether \`alloca.c' needs Cray hooks... $ECHO_C" >&6
18185 if test "${ac_cv_os_cray+set}" = set; then
18186 echo $ECHO_N "(cached) $ECHO_C" >&6
18188 cat >conftest.$ac_ext <<_ACEOF
18191 cat confdefs.h >>conftest.$ac_ext
18192 cat >>conftest.$ac_ext <<_ACEOF
18193 /* end confdefs.h. */
18194 #if defined(CRAY) && ! defined(CRAY2)
18201 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
18202 $EGREP "webecray" >/dev/null 2>&1; then
18210 echo "$as_me:$LINENO: result: $ac_cv_os_cray" >&5
18211 echo "${ECHO_T}$ac_cv_os_cray" >&6
18212 if test $ac_cv_os_cray = yes; then
18213 for ac_func in _getb67 GETB67 getb67; do
18214 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
18215 echo "$as_me:$LINENO: checking for $ac_func" >&5
18216 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
18217 if eval "test \"\${$as_ac_var+set}\" = set"; then
18218 echo $ECHO_N "(cached) $ECHO_C" >&6
18220 cat >conftest.$ac_ext <<_ACEOF
18223 cat confdefs.h >>conftest.$ac_ext
18224 cat >>conftest.$ac_ext <<_ACEOF
18225 /* end confdefs.h. */
18226 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
18227 For example, HP-UX 11i <limits.h> declares gettimeofday. */
18228 #define $ac_func innocuous_$ac_func
18230 /* System header to define __stub macros and hopefully few prototypes,
18231 which can conflict with char $ac_func (); below.
18232 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
18233 <limits.h> exists even on freestanding compilers. */
18236 # include <limits.h>
18238 # include <assert.h>
18243 /* Override any gcc2 internal prototype to avoid an error. */
18248 /* We use char because int might match the return type of a gcc2
18249 builtin and then its argument prototype would still apply. */
18251 /* The GNU C library defines this for functions which it implements
18252 to always fail with ENOSYS. Some functions are actually named
18253 something starting with __ and the normal name is an alias. */
18254 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
18257 char (*f) () = $ac_func;
18266 return f != $ac_func;
18271 rm -f conftest.$ac_objext conftest$ac_exeext
18272 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
18273 (eval $ac_link) 2>conftest.er1
18275 grep -v '^ *+' conftest.er1 >conftest.err
18277 cat conftest.err >&5
18278 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18279 (exit $ac_status); } &&
18280 { ac_try='test -z "$ac_c_werror_flag"
18281 || test ! -s conftest.err'
18282 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18283 (eval $ac_try) 2>&5
18285 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18286 (exit $ac_status); }; } &&
18287 { ac_try='test -s conftest$ac_exeext'
18288 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18289 (eval $ac_try) 2>&5
18291 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18292 (exit $ac_status); }; }; then
18293 eval "$as_ac_var=yes"
18295 echo "$as_me: failed program was:" >&5
18296 sed 's/^/| /' conftest.$ac_ext >&5
18298 eval "$as_ac_var=no"
18300 rm -f conftest.err conftest.$ac_objext \
18301 conftest$ac_exeext conftest.$ac_ext
18303 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
18304 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
18305 if test `eval echo '${'$as_ac_var'}'` = yes; then
18307 cat >>confdefs.h <<_ACEOF
18308 #define CRAY_STACKSEG_END $ac_func
18317 echo "$as_me:$LINENO: checking stack direction for C alloca" >&5
18318 echo $ECHO_N "checking stack direction for C alloca... $ECHO_C" >&6
18319 if test "${ac_cv_c_stack_direction+set}" = set; then
18320 echo $ECHO_N "(cached) $ECHO_C" >&6
18322 if test "$cross_compiling" = yes; then
18323 ac_cv_c_stack_direction=0
18325 cat >conftest.$ac_ext <<_ACEOF
18328 cat confdefs.h >>conftest.$ac_ext
18329 cat >>conftest.$ac_ext <<_ACEOF
18330 /* end confdefs.h. */
18332 find_stack_direction ()
18334 static char *addr = 0;
18339 return find_stack_direction ();
18342 return (&dummy > addr) ? 1 : -1;
18348 exit (find_stack_direction () < 0);
18351 rm -f conftest$ac_exeext
18352 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
18353 (eval $ac_link) 2>&5
18355 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18356 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
18357 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18358 (eval $ac_try) 2>&5
18360 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18361 (exit $ac_status); }; }; then
18362 ac_cv_c_stack_direction=1
18364 echo "$as_me: program exited with status $ac_status" >&5
18365 echo "$as_me: failed program was:" >&5
18366 sed 's/^/| /' conftest.$ac_ext >&5
18368 ( exit $ac_status )
18369 ac_cv_c_stack_direction=-1
18371 rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
18374 echo "$as_me:$LINENO: result: $ac_cv_c_stack_direction" >&5
18375 echo "${ECHO_T}$ac_cv_c_stack_direction" >&6
18377 cat >>confdefs.h <<_ACEOF
18378 #define STACK_DIRECTION $ac_cv_c_stack_direction
18386 for ac_header in stdlib.h unistd.h
18388 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
18389 if eval "test \"\${$as_ac_Header+set}\" = set"; then
18390 echo "$as_me:$LINENO: checking for $ac_header" >&5
18391 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
18392 if eval "test \"\${$as_ac_Header+set}\" = set"; then
18393 echo $ECHO_N "(cached) $ECHO_C" >&6
18395 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
18396 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
18398 # Is the header compilable?
18399 echo "$as_me:$LINENO: checking $ac_header usability" >&5
18400 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
18401 cat >conftest.$ac_ext <<_ACEOF
18404 cat confdefs.h >>conftest.$ac_ext
18405 cat >>conftest.$ac_ext <<_ACEOF
18406 /* end confdefs.h. */
18407 $ac_includes_default
18408 #include <$ac_header>
18410 rm -f conftest.$ac_objext
18411 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
18412 (eval $ac_compile) 2>conftest.er1
18414 grep -v '^ *+' conftest.er1 >conftest.err
18416 cat conftest.err >&5
18417 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18418 (exit $ac_status); } &&
18419 { ac_try='test -z "$ac_c_werror_flag"
18420 || test ! -s conftest.err'
18421 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18422 (eval $ac_try) 2>&5
18424 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18425 (exit $ac_status); }; } &&
18426 { ac_try='test -s conftest.$ac_objext'
18427 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18428 (eval $ac_try) 2>&5
18430 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18431 (exit $ac_status); }; }; then
18432 ac_header_compiler=yes
18434 echo "$as_me: failed program was:" >&5
18435 sed 's/^/| /' conftest.$ac_ext >&5
18437 ac_header_compiler=no
18439 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
18440 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
18441 echo "${ECHO_T}$ac_header_compiler" >&6
18443 # Is the header present?
18444 echo "$as_me:$LINENO: checking $ac_header presence" >&5
18445 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
18446 cat >conftest.$ac_ext <<_ACEOF
18449 cat confdefs.h >>conftest.$ac_ext
18450 cat >>conftest.$ac_ext <<_ACEOF
18451 /* end confdefs.h. */
18452 #include <$ac_header>
18454 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
18455 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
18457 grep -v '^ *+' conftest.er1 >conftest.err
18459 cat conftest.err >&5
18460 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18461 (exit $ac_status); } >/dev/null; then
18462 if test -s conftest.err; then
18463 ac_cpp_err=$ac_c_preproc_warn_flag
18464 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
18471 if test -z "$ac_cpp_err"; then
18472 ac_header_preproc=yes
18474 echo "$as_me: failed program was:" >&5
18475 sed 's/^/| /' conftest.$ac_ext >&5
18477 ac_header_preproc=no
18479 rm -f conftest.err conftest.$ac_ext
18480 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
18481 echo "${ECHO_T}$ac_header_preproc" >&6
18483 # So? What about this header?
18484 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
18486 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
18487 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
18488 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
18489 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
18490 ac_header_preproc=yes
18493 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
18494 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
18495 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
18496 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
18497 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
18498 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
18499 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
18500 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
18501 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
18502 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
18503 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
18504 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
18507 ## ------------------------------------------ ##
18508 ## Report this to the AC_PACKAGE_NAME lists. ##
18509 ## ------------------------------------------ ##
18512 sed "s/^/$as_me: WARNING: /" >&2
18515 echo "$as_me:$LINENO: checking for $ac_header" >&5
18516 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
18517 if eval "test \"\${$as_ac_Header+set}\" = set"; then
18518 echo $ECHO_N "(cached) $ECHO_C" >&6
18520 eval "$as_ac_Header=\$ac_header_preproc"
18522 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
18523 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
18526 if test `eval echo '${'$as_ac_Header'}'` = yes; then
18527 cat >>confdefs.h <<_ACEOF
18528 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
18536 for ac_func in getpagesize
18538 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
18539 echo "$as_me:$LINENO: checking for $ac_func" >&5
18540 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
18541 if eval "test \"\${$as_ac_var+set}\" = set"; then
18542 echo $ECHO_N "(cached) $ECHO_C" >&6
18544 cat >conftest.$ac_ext <<_ACEOF
18547 cat confdefs.h >>conftest.$ac_ext
18548 cat >>conftest.$ac_ext <<_ACEOF
18549 /* end confdefs.h. */
18550 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
18551 For example, HP-UX 11i <limits.h> declares gettimeofday. */
18552 #define $ac_func innocuous_$ac_func
18554 /* System header to define __stub macros and hopefully few prototypes,
18555 which can conflict with char $ac_func (); below.
18556 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
18557 <limits.h> exists even on freestanding compilers. */
18560 # include <limits.h>
18562 # include <assert.h>
18567 /* Override any gcc2 internal prototype to avoid an error. */
18572 /* We use char because int might match the return type of a gcc2
18573 builtin and then its argument prototype would still apply. */
18575 /* The GNU C library defines this for functions which it implements
18576 to always fail with ENOSYS. Some functions are actually named
18577 something starting with __ and the normal name is an alias. */
18578 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
18581 char (*f) () = $ac_func;
18590 return f != $ac_func;
18595 rm -f conftest.$ac_objext conftest$ac_exeext
18596 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
18597 (eval $ac_link) 2>conftest.er1
18599 grep -v '^ *+' conftest.er1 >conftest.err
18601 cat conftest.err >&5
18602 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18603 (exit $ac_status); } &&
18604 { ac_try='test -z "$ac_c_werror_flag"
18605 || test ! -s conftest.err'
18606 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18607 (eval $ac_try) 2>&5
18609 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18610 (exit $ac_status); }; } &&
18611 { ac_try='test -s conftest$ac_exeext'
18612 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18613 (eval $ac_try) 2>&5
18615 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18616 (exit $ac_status); }; }; then
18617 eval "$as_ac_var=yes"
18619 echo "$as_me: failed program was:" >&5
18620 sed 's/^/| /' conftest.$ac_ext >&5
18622 eval "$as_ac_var=no"
18624 rm -f conftest.err conftest.$ac_objext \
18625 conftest$ac_exeext conftest.$ac_ext
18627 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
18628 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
18629 if test `eval echo '${'$as_ac_var'}'` = yes; then
18630 cat >>confdefs.h <<_ACEOF
18631 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
18637 echo "$as_me:$LINENO: checking for working mmap" >&5
18638 echo $ECHO_N "checking for working mmap... $ECHO_C" >&6
18639 if test "${ac_cv_func_mmap_fixed_mapped+set}" = set; then
18640 echo $ECHO_N "(cached) $ECHO_C" >&6
18642 if test "$cross_compiling" = yes; then
18643 ac_cv_func_mmap_fixed_mapped=no
18645 cat >conftest.$ac_ext <<_ACEOF
18648 cat confdefs.h >>conftest.$ac_ext
18649 cat >>conftest.$ac_ext <<_ACEOF
18650 /* end confdefs.h. */
18651 $ac_includes_default
18652 /* malloc might have been renamed as rpl_malloc. */
18655 /* Thanks to Mike Haertel and Jim Avera for this test.
18656 Here is a matrix of mmap possibilities:
18657 mmap private not fixed
18658 mmap private fixed at somewhere currently unmapped
18659 mmap private fixed at somewhere already mapped
18660 mmap shared not fixed
18661 mmap shared fixed at somewhere currently unmapped
18662 mmap shared fixed at somewhere already mapped
18663 For private mappings, we should verify that changes cannot be read()
18664 back from the file, nor mmap's back from the file at a different
18665 address. (There have been systems where private was not correctly
18666 implemented like the infamous i386 svr4.0, and systems where the
18667 VM page cache was not coherent with the file system buffer cache
18668 like early versions of FreeBSD and possibly contemporary NetBSD.)
18669 For shared mappings, we should conversely verify that changes get
18670 propagated back to all the places they're supposed to be.
18672 Grep wants private fixed already mapped.
18673 The main things grep needs to know about mmap are:
18674 * does it exist and is it safe to write into the mmap'd area
18675 * how to use it (BSD variants) */
18678 #include <sys/mman.h>
18680 #if !STDC_HEADERS && !HAVE_STDLIB_H
18684 /* This mess was copied from the GNU getpagesize.h. */
18685 #if !HAVE_GETPAGESIZE
18686 /* Assume that all systems that can run configure have sys/param.h. */
18687 # if !HAVE_SYS_PARAM_H
18688 # define HAVE_SYS_PARAM_H 1
18691 # ifdef _SC_PAGESIZE
18692 # define getpagesize() sysconf(_SC_PAGESIZE)
18693 # else /* no _SC_PAGESIZE */
18694 # if HAVE_SYS_PARAM_H
18695 # include <sys/param.h>
18696 # ifdef EXEC_PAGESIZE
18697 # define getpagesize() EXEC_PAGESIZE
18698 # else /* no EXEC_PAGESIZE */
18700 # define getpagesize() NBPG * CLSIZE
18703 # endif /* no CLSIZE */
18704 # else /* no NBPG */
18706 # define getpagesize() NBPC
18707 # else /* no NBPC */
18709 # define getpagesize() PAGESIZE
18710 # endif /* PAGESIZE */
18711 # endif /* no NBPC */
18712 # endif /* no NBPG */
18713 # endif /* no EXEC_PAGESIZE */
18714 # else /* no HAVE_SYS_PARAM_H */
18715 # define getpagesize() 8192 /* punt totally */
18716 # endif /* no HAVE_SYS_PARAM_H */
18717 # endif /* no _SC_PAGESIZE */
18719 #endif /* no HAVE_GETPAGESIZE */
18724 char *data, *data2, *data3;
18728 pagesize = getpagesize ();
18730 /* First, make a file with some known garbage in it. */
18731 data = (char *) malloc (pagesize);
18734 for (i = 0; i < pagesize; ++i)
18735 *(data + i) = rand ();
18737 fd = creat ("conftest.mmap", 0600);
18740 if (write (fd, data, pagesize) != pagesize)
18744 /* Next, try to mmap the file at a fixed address which already has
18745 something else allocated at it. If we can, also make sure that
18746 we see the same garbage. */
18747 fd = open ("conftest.mmap", O_RDWR);
18750 data2 = (char *) malloc (2 * pagesize);
18753 data2 += (pagesize - ((long) data2 & (pagesize - 1))) & (pagesize - 1);
18754 if (data2 != mmap (data2, pagesize, PROT_READ | PROT_WRITE,
18755 MAP_PRIVATE | MAP_FIXED, fd, 0L))
18757 for (i = 0; i < pagesize; ++i)
18758 if (*(data + i) != *(data2 + i))
18761 /* Finally, make sure that changes to the mapped area do not
18762 percolate back to the file as seen by read(). (This is a bug on
18763 some variants of i386 svr4.0.) */
18764 for (i = 0; i < pagesize; ++i)
18765 *(data2 + i) = *(data2 + i) + 1;
18766 data3 = (char *) malloc (pagesize);
18769 if (read (fd, data3, pagesize) != pagesize)
18771 for (i = 0; i < pagesize; ++i)
18772 if (*(data + i) != *(data3 + i))
18778 rm -f conftest$ac_exeext
18779 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
18780 (eval $ac_link) 2>&5
18782 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18783 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
18784 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18785 (eval $ac_try) 2>&5
18787 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18788 (exit $ac_status); }; }; then
18789 ac_cv_func_mmap_fixed_mapped=yes
18791 echo "$as_me: program exited with status $ac_status" >&5
18792 echo "$as_me: failed program was:" >&5
18793 sed 's/^/| /' conftest.$ac_ext >&5
18795 ( exit $ac_status )
18796 ac_cv_func_mmap_fixed_mapped=no
18798 rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
18801 echo "$as_me:$LINENO: result: $ac_cv_func_mmap_fixed_mapped" >&5
18802 echo "${ECHO_T}$ac_cv_func_mmap_fixed_mapped" >&6
18803 if test $ac_cv_func_mmap_fixed_mapped = yes; then
18805 cat >>confdefs.h <<\_ACEOF
18806 #define HAVE_MMAP 1
18810 rm -f conftest.mmap
18812 echo "$as_me:$LINENO: checking for pid_t" >&5
18813 echo $ECHO_N "checking for pid_t... $ECHO_C" >&6
18814 if test "${ac_cv_type_pid_t+set}" = set; then
18815 echo $ECHO_N "(cached) $ECHO_C" >&6
18817 cat >conftest.$ac_ext <<_ACEOF
18820 cat confdefs.h >>conftest.$ac_ext
18821 cat >>conftest.$ac_ext <<_ACEOF
18822 /* end confdefs.h. */
18823 $ac_includes_default
18829 if (sizeof (pid_t))
18835 rm -f conftest.$ac_objext
18836 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
18837 (eval $ac_compile) 2>conftest.er1
18839 grep -v '^ *+' conftest.er1 >conftest.err
18841 cat conftest.err >&5
18842 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18843 (exit $ac_status); } &&
18844 { ac_try='test -z "$ac_c_werror_flag"
18845 || test ! -s conftest.err'
18846 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18847 (eval $ac_try) 2>&5
18849 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18850 (exit $ac_status); }; } &&
18851 { ac_try='test -s conftest.$ac_objext'
18852 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18853 (eval $ac_try) 2>&5
18855 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18856 (exit $ac_status); }; }; then
18857 ac_cv_type_pid_t=yes
18859 echo "$as_me: failed program was:" >&5
18860 sed 's/^/| /' conftest.$ac_ext >&5
18862 ac_cv_type_pid_t=no
18864 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
18866 echo "$as_me:$LINENO: result: $ac_cv_type_pid_t" >&5
18867 echo "${ECHO_T}$ac_cv_type_pid_t" >&6
18868 if test $ac_cv_type_pid_t = yes; then
18872 cat >>confdefs.h <<_ACEOF
18880 for ac_header in unistd.h vfork.h
18882 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
18883 if eval "test \"\${$as_ac_Header+set}\" = set"; then
18884 echo "$as_me:$LINENO: checking for $ac_header" >&5
18885 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
18886 if eval "test \"\${$as_ac_Header+set}\" = set"; then
18887 echo $ECHO_N "(cached) $ECHO_C" >&6
18889 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
18890 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
18892 # Is the header compilable?
18893 echo "$as_me:$LINENO: checking $ac_header usability" >&5
18894 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
18895 cat >conftest.$ac_ext <<_ACEOF
18898 cat confdefs.h >>conftest.$ac_ext
18899 cat >>conftest.$ac_ext <<_ACEOF
18900 /* end confdefs.h. */
18901 $ac_includes_default
18902 #include <$ac_header>
18904 rm -f conftest.$ac_objext
18905 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
18906 (eval $ac_compile) 2>conftest.er1
18908 grep -v '^ *+' conftest.er1 >conftest.err
18910 cat conftest.err >&5
18911 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18912 (exit $ac_status); } &&
18913 { ac_try='test -z "$ac_c_werror_flag"
18914 || test ! -s conftest.err'
18915 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18916 (eval $ac_try) 2>&5
18918 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18919 (exit $ac_status); }; } &&
18920 { ac_try='test -s conftest.$ac_objext'
18921 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18922 (eval $ac_try) 2>&5
18924 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18925 (exit $ac_status); }; }; then
18926 ac_header_compiler=yes
18928 echo "$as_me: failed program was:" >&5
18929 sed 's/^/| /' conftest.$ac_ext >&5
18931 ac_header_compiler=no
18933 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
18934 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
18935 echo "${ECHO_T}$ac_header_compiler" >&6
18937 # Is the header present?
18938 echo "$as_me:$LINENO: checking $ac_header presence" >&5
18939 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
18940 cat >conftest.$ac_ext <<_ACEOF
18943 cat confdefs.h >>conftest.$ac_ext
18944 cat >>conftest.$ac_ext <<_ACEOF
18945 /* end confdefs.h. */
18946 #include <$ac_header>
18948 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
18949 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
18951 grep -v '^ *+' conftest.er1 >conftest.err
18953 cat conftest.err >&5
18954 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18955 (exit $ac_status); } >/dev/null; then
18956 if test -s conftest.err; then
18957 ac_cpp_err=$ac_c_preproc_warn_flag
18958 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
18965 if test -z "$ac_cpp_err"; then
18966 ac_header_preproc=yes
18968 echo "$as_me: failed program was:" >&5
18969 sed 's/^/| /' conftest.$ac_ext >&5
18971 ac_header_preproc=no
18973 rm -f conftest.err conftest.$ac_ext
18974 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
18975 echo "${ECHO_T}$ac_header_preproc" >&6
18977 # So? What about this header?
18978 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
18980 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
18981 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
18982 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
18983 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
18984 ac_header_preproc=yes
18987 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
18988 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
18989 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
18990 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
18991 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
18992 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
18993 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
18994 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
18995 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
18996 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
18997 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
18998 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
19001 ## ------------------------------------------ ##
19002 ## Report this to the AC_PACKAGE_NAME lists. ##
19003 ## ------------------------------------------ ##
19006 sed "s/^/$as_me: WARNING: /" >&2
19009 echo "$as_me:$LINENO: checking for $ac_header" >&5
19010 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
19011 if eval "test \"\${$as_ac_Header+set}\" = set"; then
19012 echo $ECHO_N "(cached) $ECHO_C" >&6
19014 eval "$as_ac_Header=\$ac_header_preproc"
19016 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
19017 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
19020 if test `eval echo '${'$as_ac_Header'}'` = yes; then
19021 cat >>confdefs.h <<_ACEOF
19022 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
19031 for ac_func in fork vfork
19033 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
19034 echo "$as_me:$LINENO: checking for $ac_func" >&5
19035 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
19036 if eval "test \"\${$as_ac_var+set}\" = set"; then
19037 echo $ECHO_N "(cached) $ECHO_C" >&6
19039 cat >conftest.$ac_ext <<_ACEOF
19042 cat confdefs.h >>conftest.$ac_ext
19043 cat >>conftest.$ac_ext <<_ACEOF
19044 /* end confdefs.h. */
19045 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
19046 For example, HP-UX 11i <limits.h> declares gettimeofday. */
19047 #define $ac_func innocuous_$ac_func
19049 /* System header to define __stub macros and hopefully few prototypes,
19050 which can conflict with char $ac_func (); below.
19051 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
19052 <limits.h> exists even on freestanding compilers. */
19055 # include <limits.h>
19057 # include <assert.h>
19062 /* Override any gcc2 internal prototype to avoid an error. */
19067 /* We use char because int might match the return type of a gcc2
19068 builtin and then its argument prototype would still apply. */
19070 /* The GNU C library defines this for functions which it implements
19071 to always fail with ENOSYS. Some functions are actually named
19072 something starting with __ and the normal name is an alias. */
19073 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
19076 char (*f) () = $ac_func;
19085 return f != $ac_func;
19090 rm -f conftest.$ac_objext conftest$ac_exeext
19091 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
19092 (eval $ac_link) 2>conftest.er1
19094 grep -v '^ *+' conftest.er1 >conftest.err
19096 cat conftest.err >&5
19097 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19098 (exit $ac_status); } &&
19099 { ac_try='test -z "$ac_c_werror_flag"
19100 || test ! -s conftest.err'
19101 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19102 (eval $ac_try) 2>&5
19104 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19105 (exit $ac_status); }; } &&
19106 { ac_try='test -s conftest$ac_exeext'
19107 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19108 (eval $ac_try) 2>&5
19110 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19111 (exit $ac_status); }; }; then
19112 eval "$as_ac_var=yes"
19114 echo "$as_me: failed program was:" >&5
19115 sed 's/^/| /' conftest.$ac_ext >&5
19117 eval "$as_ac_var=no"
19119 rm -f conftest.err conftest.$ac_objext \
19120 conftest$ac_exeext conftest.$ac_ext
19122 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
19123 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
19124 if test `eval echo '${'$as_ac_var'}'` = yes; then
19125 cat >>confdefs.h <<_ACEOF
19126 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
19132 if test "x$ac_cv_func_fork" = xyes; then
19133 echo "$as_me:$LINENO: checking for working fork" >&5
19134 echo $ECHO_N "checking for working fork... $ECHO_C" >&6
19135 if test "${ac_cv_func_fork_works+set}" = set; then
19136 echo $ECHO_N "(cached) $ECHO_C" >&6
19138 if test "$cross_compiling" = yes; then
19139 ac_cv_func_fork_works=cross
19141 cat >conftest.$ac_ext <<_ACEOF
19142 /* By Ruediger Kuhlmann. */
19143 #include <sys/types.h>
19145 # include <unistd.h>
19147 /* Some systems only have a dummy stub for fork() */
19155 rm -f conftest$ac_exeext
19156 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
19157 (eval $ac_link) 2>&5
19159 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19160 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
19161 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19162 (eval $ac_try) 2>&5
19164 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19165 (exit $ac_status); }; }; then
19166 ac_cv_func_fork_works=yes
19168 echo "$as_me: program exited with status $ac_status" >&5
19169 echo "$as_me: failed program was:" >&5
19170 sed 's/^/| /' conftest.$ac_ext >&5
19172 ( exit $ac_status )
19173 ac_cv_func_fork_works=no
19175 rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
19178 echo "$as_me:$LINENO: result: $ac_cv_func_fork_works" >&5
19179 echo "${ECHO_T}$ac_cv_func_fork_works" >&6
19182 ac_cv_func_fork_works=$ac_cv_func_fork
19184 if test "x$ac_cv_func_fork_works" = xcross; then
19186 *-*-amigaos* | *-*-msdosdjgpp*)
19187 # Override, as these systems have only a dummy fork() stub
19188 ac_cv_func_fork_works=no
19191 ac_cv_func_fork_works=yes
19194 { echo "$as_me:$LINENO: WARNING: result $ac_cv_func_fork_works guessed because of cross compilation" >&5
19195 echo "$as_me: WARNING: result $ac_cv_func_fork_works guessed because of cross compilation" >&2;}
19197 ac_cv_func_vfork_works=$ac_cv_func_vfork
19198 if test "x$ac_cv_func_vfork" = xyes; then
19199 echo "$as_me:$LINENO: checking for working vfork" >&5
19200 echo $ECHO_N "checking for working vfork... $ECHO_C" >&6
19201 if test "${ac_cv_func_vfork_works+set}" = set; then
19202 echo $ECHO_N "(cached) $ECHO_C" >&6
19204 if test "$cross_compiling" = yes; then
19205 ac_cv_func_vfork_works=cross
19207 cat >conftest.$ac_ext <<_ACEOF
19210 cat confdefs.h >>conftest.$ac_ext
19211 cat >>conftest.$ac_ext <<_ACEOF
19212 /* end confdefs.h. */
19213 /* Thanks to Paul Eggert for this test. */
19215 #include <stdlib.h>
19216 #include <sys/types.h>
19217 #include <sys/stat.h>
19218 #include <sys/wait.h>
19220 # include <unistd.h>
19223 # include <vfork.h>
19225 /* On some sparc systems, changes by the child to local and incoming
19226 argument registers are propagated back to the parent. The compiler
19227 is told about this with #include <vfork.h>, but some compilers
19228 (e.g. gcc -O) don't grok <vfork.h>. Test for this by using a
19229 static variable whose address is put into a register that is
19230 clobbered by the vfork. */
19233 sparc_address_test (int arg)
19235 sparc_address_test (arg) int arg;
19238 static pid_t child;
19256 pid_t parent = getpid ();
19259 sparc_address_test (0);
19264 /* Here is another test for sparc vfork register problems. This
19265 test uses lots of local variables, at least as many local
19266 variables as main has allocated so far including compiler
19267 temporaries. 4 locals are enough for gcc 1.40.3 on a Solaris
19268 4.1.3 sparc, but we use 8 to be safe. A buggy compiler should
19269 reuse the register of parent for one of the local variables,
19270 since it will think that parent can't possibly be used any more
19271 in this routine. Assigning to the local variable will thus
19272 munge parent in the parent process. */
19274 p = getpid(), p1 = getpid(), p2 = getpid(), p3 = getpid(),
19275 p4 = getpid(), p5 = getpid(), p6 = getpid(), p7 = getpid();
19276 /* Convince the compiler that p..p7 are live; otherwise, it might
19277 use the same hardware register for all 8 local variables. */
19278 if (p != p1 || p != p2 || p != p3 || p != p4
19279 || p != p5 || p != p6 || p != p7)
19282 /* On some systems (e.g. IRIX 3.3), vfork doesn't separate parent
19283 from child file descriptors. If the child closes a descriptor
19284 before it execs or exits, this munges the parent's descriptor
19285 as well. Test for this by closing stdout in the child. */
19286 _exit(close(fileno(stdout)) != 0);
19291 while (wait(&status) != child)
19294 /* Was there some problem with vforking? */
19297 /* Did the child fail? (This shouldn't happen.) */
19300 /* Did the vfork/compiler bug occur? */
19301 || parent != getpid()
19303 /* Did the file descriptor bug occur? */
19304 || fstat(fileno(stdout), &st) != 0
19309 rm -f conftest$ac_exeext
19310 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
19311 (eval $ac_link) 2>&5
19313 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19314 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
19315 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19316 (eval $ac_try) 2>&5
19318 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19319 (exit $ac_status); }; }; then
19320 ac_cv_func_vfork_works=yes
19322 echo "$as_me: program exited with status $ac_status" >&5
19323 echo "$as_me: failed program was:" >&5
19324 sed 's/^/| /' conftest.$ac_ext >&5
19326 ( exit $ac_status )
19327 ac_cv_func_vfork_works=no
19329 rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
19332 echo "$as_me:$LINENO: result: $ac_cv_func_vfork_works" >&5
19333 echo "${ECHO_T}$ac_cv_func_vfork_works" >&6
19336 if test "x$ac_cv_func_fork_works" = xcross; then
19337 ac_cv_func_vfork_works=$ac_cv_func_vfork
19338 { echo "$as_me:$LINENO: WARNING: result $ac_cv_func_vfork_works guessed because of cross compilation" >&5
19339 echo "$as_me: WARNING: result $ac_cv_func_vfork_works guessed because of cross compilation" >&2;}
19342 if test "x$ac_cv_func_vfork_works" = xyes; then
19344 cat >>confdefs.h <<\_ACEOF
19345 #define HAVE_WORKING_VFORK 1
19350 cat >>confdefs.h <<\_ACEOF
19355 if test "x$ac_cv_func_fork_works" = xyes; then
19357 cat >>confdefs.h <<\_ACEOF
19358 #define HAVE_WORKING_FORK 1
19365 for ac_func in canonicalize_file_name realpath
19367 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
19368 echo "$as_me:$LINENO: checking for $ac_func" >&5
19369 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
19370 if eval "test \"\${$as_ac_var+set}\" = set"; then
19371 echo $ECHO_N "(cached) $ECHO_C" >&6
19373 cat >conftest.$ac_ext <<_ACEOF
19376 cat confdefs.h >>conftest.$ac_ext
19377 cat >>conftest.$ac_ext <<_ACEOF
19378 /* end confdefs.h. */
19379 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
19380 For example, HP-UX 11i <limits.h> declares gettimeofday. */
19381 #define $ac_func innocuous_$ac_func
19383 /* System header to define __stub macros and hopefully few prototypes,
19384 which can conflict with char $ac_func (); below.
19385 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
19386 <limits.h> exists even on freestanding compilers. */
19389 # include <limits.h>
19391 # include <assert.h>
19396 /* Override any gcc2 internal prototype to avoid an error. */
19401 /* We use char because int might match the return type of a gcc2
19402 builtin and then its argument prototype would still apply. */
19404 /* The GNU C library defines this for functions which it implements
19405 to always fail with ENOSYS. Some functions are actually named
19406 something starting with __ and the normal name is an alias. */
19407 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
19410 char (*f) () = $ac_func;
19419 return f != $ac_func;
19424 rm -f conftest.$ac_objext conftest$ac_exeext
19425 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
19426 (eval $ac_link) 2>conftest.er1
19428 grep -v '^ *+' conftest.er1 >conftest.err
19430 cat conftest.err >&5
19431 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19432 (exit $ac_status); } &&
19433 { ac_try='test -z "$ac_c_werror_flag"
19434 || test ! -s conftest.err'
19435 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19436 (eval $ac_try) 2>&5
19438 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19439 (exit $ac_status); }; } &&
19440 { ac_try='test -s conftest$ac_exeext'
19441 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19442 (eval $ac_try) 2>&5
19444 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19445 (exit $ac_status); }; }; then
19446 eval "$as_ac_var=yes"
19448 echo "$as_me: failed program was:" >&5
19449 sed 's/^/| /' conftest.$ac_ext >&5
19451 eval "$as_ac_var=no"
19453 rm -f conftest.err conftest.$ac_objext \
19454 conftest$ac_exeext conftest.$ac_ext
19456 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
19457 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
19458 if test `eval echo '${'$as_ac_var'}'` = yes; then
19459 cat >>confdefs.h <<_ACEOF
19460 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
19467 for ac_func in getrusage
19469 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
19470 echo "$as_me:$LINENO: checking for $ac_func" >&5
19471 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
19472 if eval "test \"\${$as_ac_var+set}\" = set"; then
19473 echo $ECHO_N "(cached) $ECHO_C" >&6
19475 cat >conftest.$ac_ext <<_ACEOF
19478 cat confdefs.h >>conftest.$ac_ext
19479 cat >>conftest.$ac_ext <<_ACEOF
19480 /* end confdefs.h. */
19481 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
19482 For example, HP-UX 11i <limits.h> declares gettimeofday. */
19483 #define $ac_func innocuous_$ac_func
19485 /* System header to define __stub macros and hopefully few prototypes,
19486 which can conflict with char $ac_func (); below.
19487 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
19488 <limits.h> exists even on freestanding compilers. */
19491 # include <limits.h>
19493 # include <assert.h>
19498 /* Override any gcc2 internal prototype to avoid an error. */
19503 /* We use char because int might match the return type of a gcc2
19504 builtin and then its argument prototype would still apply. */
19506 /* The GNU C library defines this for functions which it implements
19507 to always fail with ENOSYS. Some functions are actually named
19508 something starting with __ and the normal name is an alias. */
19509 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
19512 char (*f) () = $ac_func;
19521 return f != $ac_func;
19526 rm -f conftest.$ac_objext conftest$ac_exeext
19527 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
19528 (eval $ac_link) 2>conftest.er1
19530 grep -v '^ *+' conftest.er1 >conftest.err
19532 cat conftest.err >&5
19533 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19534 (exit $ac_status); } &&
19535 { ac_try='test -z "$ac_c_werror_flag"
19536 || test ! -s conftest.err'
19537 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19538 (eval $ac_try) 2>&5
19540 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19541 (exit $ac_status); }; } &&
19542 { ac_try='test -s conftest$ac_exeext'
19543 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19544 (eval $ac_try) 2>&5
19546 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19547 (exit $ac_status); }; }; then
19548 eval "$as_ac_var=yes"
19550 echo "$as_me: failed program was:" >&5
19551 sed 's/^/| /' conftest.$ac_ext >&5
19553 eval "$as_ac_var=no"
19555 rm -f conftest.err conftest.$ac_objext \
19556 conftest$ac_exeext conftest.$ac_ext
19558 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
19559 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
19560 if test `eval echo '${'$as_ac_var'}'` = yes; then
19561 cat >>confdefs.h <<_ACEOF
19562 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
19570 for ac_func in getuid getgid
19572 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
19573 echo "$as_me:$LINENO: checking for $ac_func" >&5
19574 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
19575 if eval "test \"\${$as_ac_var+set}\" = set"; then
19576 echo $ECHO_N "(cached) $ECHO_C" >&6
19578 cat >conftest.$ac_ext <<_ACEOF
19581 cat confdefs.h >>conftest.$ac_ext
19582 cat >>conftest.$ac_ext <<_ACEOF
19583 /* end confdefs.h. */
19584 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
19585 For example, HP-UX 11i <limits.h> declares gettimeofday. */
19586 #define $ac_func innocuous_$ac_func
19588 /* System header to define __stub macros and hopefully few prototypes,
19589 which can conflict with char $ac_func (); below.
19590 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
19591 <limits.h> exists even on freestanding compilers. */
19594 # include <limits.h>
19596 # include <assert.h>
19601 /* Override any gcc2 internal prototype to avoid an error. */
19606 /* We use char because int might match the return type of a gcc2
19607 builtin and then its argument prototype would still apply. */
19609 /* The GNU C library defines this for functions which it implements
19610 to always fail with ENOSYS. Some functions are actually named
19611 something starting with __ and the normal name is an alias. */
19612 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
19615 char (*f) () = $ac_func;
19624 return f != $ac_func;
19629 rm -f conftest.$ac_objext conftest$ac_exeext
19630 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
19631 (eval $ac_link) 2>conftest.er1
19633 grep -v '^ *+' conftest.er1 >conftest.err
19635 cat conftest.err >&5
19636 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19637 (exit $ac_status); } &&
19638 { ac_try='test -z "$ac_c_werror_flag"
19639 || test ! -s conftest.err'
19640 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19641 (eval $ac_try) 2>&5
19643 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19644 (exit $ac_status); }; } &&
19645 { ac_try='test -s conftest$ac_exeext'
19646 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19647 (eval $ac_try) 2>&5
19649 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19650 (exit $ac_status); }; }; then
19651 eval "$as_ac_var=yes"
19653 echo "$as_me: failed program was:" >&5
19654 sed 's/^/| /' conftest.$ac_ext >&5
19656 eval "$as_ac_var=no"
19658 rm -f conftest.err conftest.$ac_objext \
19659 conftest$ac_exeext conftest.$ac_ext
19661 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
19662 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
19663 if test `eval echo '${'$as_ac_var'}'` = yes; then
19664 cat >>confdefs.h <<_ACEOF
19665 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
19672 for ac_func in poll
19674 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
19675 echo "$as_me:$LINENO: checking for $ac_func" >&5
19676 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
19677 if eval "test \"\${$as_ac_var+set}\" = set"; then
19678 echo $ECHO_N "(cached) $ECHO_C" >&6
19680 cat >conftest.$ac_ext <<_ACEOF
19683 cat confdefs.h >>conftest.$ac_ext
19684 cat >>conftest.$ac_ext <<_ACEOF
19685 /* end confdefs.h. */
19686 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
19687 For example, HP-UX 11i <limits.h> declares gettimeofday. */
19688 #define $ac_func innocuous_$ac_func
19690 /* System header to define __stub macros and hopefully few prototypes,
19691 which can conflict with char $ac_func (); below.
19692 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
19693 <limits.h> exists even on freestanding compilers. */
19696 # include <limits.h>
19698 # include <assert.h>
19703 /* Override any gcc2 internal prototype to avoid an error. */
19708 /* We use char because int might match the return type of a gcc2
19709 builtin and then its argument prototype would still apply. */
19711 /* The GNU C library defines this for functions which it implements
19712 to always fail with ENOSYS. Some functions are actually named
19713 something starting with __ and the normal name is an alias. */
19714 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
19717 char (*f) () = $ac_func;
19726 return f != $ac_func;
19731 rm -f conftest.$ac_objext conftest$ac_exeext
19732 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
19733 (eval $ac_link) 2>conftest.er1
19735 grep -v '^ *+' conftest.er1 >conftest.err
19737 cat conftest.err >&5
19738 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19739 (exit $ac_status); } &&
19740 { ac_try='test -z "$ac_c_werror_flag"
19741 || test ! -s conftest.err'
19742 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19743 (eval $ac_try) 2>&5
19745 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19746 (exit $ac_status); }; } &&
19747 { ac_try='test -s conftest$ac_exeext'
19748 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19749 (eval $ac_try) 2>&5
19751 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19752 (exit $ac_status); }; }; then
19753 eval "$as_ac_var=yes"
19755 echo "$as_me: failed program was:" >&5
19756 sed 's/^/| /' conftest.$ac_ext >&5
19758 eval "$as_ac_var=no"
19760 rm -f conftest.err conftest.$ac_objext \
19761 conftest$ac_exeext conftest.$ac_ext
19763 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
19764 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
19765 if test `eval echo '${'$as_ac_var'}'` = yes; then
19766 cat >>confdefs.h <<_ACEOF
19767 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
19774 for ac_func in pread64
19776 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
19777 echo "$as_me:$LINENO: checking for $ac_func" >&5
19778 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
19779 if eval "test \"\${$as_ac_var+set}\" = set"; then
19780 echo $ECHO_N "(cached) $ECHO_C" >&6
19782 cat >conftest.$ac_ext <<_ACEOF
19785 cat confdefs.h >>conftest.$ac_ext
19786 cat >>conftest.$ac_ext <<_ACEOF
19787 /* end confdefs.h. */
19788 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
19789 For example, HP-UX 11i <limits.h> declares gettimeofday. */
19790 #define $ac_func innocuous_$ac_func
19792 /* System header to define __stub macros and hopefully few prototypes,
19793 which can conflict with char $ac_func (); below.
19794 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
19795 <limits.h> exists even on freestanding compilers. */
19798 # include <limits.h>
19800 # include <assert.h>
19805 /* Override any gcc2 internal prototype to avoid an error. */
19810 /* We use char because int might match the return type of a gcc2
19811 builtin and then its argument prototype would still apply. */
19813 /* The GNU C library defines this for functions which it implements
19814 to always fail with ENOSYS. Some functions are actually named
19815 something starting with __ and the normal name is an alias. */
19816 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
19819 char (*f) () = $ac_func;
19828 return f != $ac_func;
19833 rm -f conftest.$ac_objext conftest$ac_exeext
19834 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
19835 (eval $ac_link) 2>conftest.er1
19837 grep -v '^ *+' conftest.er1 >conftest.err
19839 cat conftest.err >&5
19840 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19841 (exit $ac_status); } &&
19842 { ac_try='test -z "$ac_c_werror_flag"
19843 || test ! -s conftest.err'
19844 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19845 (eval $ac_try) 2>&5
19847 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19848 (exit $ac_status); }; } &&
19849 { ac_try='test -s conftest$ac_exeext'
19850 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19851 (eval $ac_try) 2>&5
19853 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19854 (exit $ac_status); }; }; then
19855 eval "$as_ac_var=yes"
19857 echo "$as_me: failed program was:" >&5
19858 sed 's/^/| /' conftest.$ac_ext >&5
19860 eval "$as_ac_var=no"
19862 rm -f conftest.err conftest.$ac_objext \
19863 conftest$ac_exeext conftest.$ac_ext
19865 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
19866 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
19867 if test `eval echo '${'$as_ac_var'}'` = yes; then
19868 cat >>confdefs.h <<_ACEOF
19869 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
19876 for ac_func in sbrk
19878 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
19879 echo "$as_me:$LINENO: checking for $ac_func" >&5
19880 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
19881 if eval "test \"\${$as_ac_var+set}\" = set"; then
19882 echo $ECHO_N "(cached) $ECHO_C" >&6
19884 cat >conftest.$ac_ext <<_ACEOF
19887 cat confdefs.h >>conftest.$ac_ext
19888 cat >>conftest.$ac_ext <<_ACEOF
19889 /* end confdefs.h. */
19890 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
19891 For example, HP-UX 11i <limits.h> declares gettimeofday. */
19892 #define $ac_func innocuous_$ac_func
19894 /* System header to define __stub macros and hopefully few prototypes,
19895 which can conflict with char $ac_func (); below.
19896 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
19897 <limits.h> exists even on freestanding compilers. */
19900 # include <limits.h>
19902 # include <assert.h>
19907 /* Override any gcc2 internal prototype to avoid an error. */
19912 /* We use char because int might match the return type of a gcc2
19913 builtin and then its argument prototype would still apply. */
19915 /* The GNU C library defines this for functions which it implements
19916 to always fail with ENOSYS. Some functions are actually named
19917 something starting with __ and the normal name is an alias. */
19918 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
19921 char (*f) () = $ac_func;
19930 return f != $ac_func;
19935 rm -f conftest.$ac_objext conftest$ac_exeext
19936 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
19937 (eval $ac_link) 2>conftest.er1
19939 grep -v '^ *+' conftest.er1 >conftest.err
19941 cat conftest.err >&5
19942 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19943 (exit $ac_status); } &&
19944 { ac_try='test -z "$ac_c_werror_flag"
19945 || test ! -s conftest.err'
19946 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19947 (eval $ac_try) 2>&5
19949 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19950 (exit $ac_status); }; } &&
19951 { ac_try='test -s conftest$ac_exeext'
19952 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19953 (eval $ac_try) 2>&5
19955 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19956 (exit $ac_status); }; }; then
19957 eval "$as_ac_var=yes"
19959 echo "$as_me: failed program was:" >&5
19960 sed 's/^/| /' conftest.$ac_ext >&5
19962 eval "$as_ac_var=no"
19964 rm -f conftest.err conftest.$ac_objext \
19965 conftest$ac_exeext conftest.$ac_ext
19967 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
19968 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
19969 if test `eval echo '${'$as_ac_var'}'` = yes; then
19970 cat >>confdefs.h <<_ACEOF
19971 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
19980 for ac_func in setpgid setpgrp setsid
19982 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
19983 echo "$as_me:$LINENO: checking for $ac_func" >&5
19984 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
19985 if eval "test \"\${$as_ac_var+set}\" = set"; then
19986 echo $ECHO_N "(cached) $ECHO_C" >&6
19988 cat >conftest.$ac_ext <<_ACEOF
19991 cat confdefs.h >>conftest.$ac_ext
19992 cat >>conftest.$ac_ext <<_ACEOF
19993 /* end confdefs.h. */
19994 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
19995 For example, HP-UX 11i <limits.h> declares gettimeofday. */
19996 #define $ac_func innocuous_$ac_func
19998 /* System header to define __stub macros and hopefully few prototypes,
19999 which can conflict with char $ac_func (); below.
20000 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
20001 <limits.h> exists even on freestanding compilers. */
20004 # include <limits.h>
20006 # include <assert.h>
20011 /* Override any gcc2 internal prototype to avoid an error. */
20016 /* We use char because int might match the return type of a gcc2
20017 builtin and then its argument prototype would still apply. */
20019 /* The GNU C library defines this for functions which it implements
20020 to always fail with ENOSYS. Some functions are actually named
20021 something starting with __ and the normal name is an alias. */
20022 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
20025 char (*f) () = $ac_func;
20034 return f != $ac_func;
20039 rm -f conftest.$ac_objext conftest$ac_exeext
20040 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
20041 (eval $ac_link) 2>conftest.er1
20043 grep -v '^ *+' conftest.er1 >conftest.err
20045 cat conftest.err >&5
20046 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20047 (exit $ac_status); } &&
20048 { ac_try='test -z "$ac_c_werror_flag"
20049 || test ! -s conftest.err'
20050 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20051 (eval $ac_try) 2>&5
20053 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20054 (exit $ac_status); }; } &&
20055 { ac_try='test -s conftest$ac_exeext'
20056 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20057 (eval $ac_try) 2>&5
20059 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20060 (exit $ac_status); }; }; then
20061 eval "$as_ac_var=yes"
20063 echo "$as_me: failed program was:" >&5
20064 sed 's/^/| /' conftest.$ac_ext >&5
20066 eval "$as_ac_var=no"
20068 rm -f conftest.err conftest.$ac_objext \
20069 conftest$ac_exeext conftest.$ac_ext
20071 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
20072 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
20073 if test `eval echo '${'$as_ac_var'}'` = yes; then
20074 cat >>confdefs.h <<_ACEOF
20075 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
20084 for ac_func in sigaction sigprocmask sigsetmask
20086 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
20087 echo "$as_me:$LINENO: checking for $ac_func" >&5
20088 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
20089 if eval "test \"\${$as_ac_var+set}\" = set"; then
20090 echo $ECHO_N "(cached) $ECHO_C" >&6
20092 cat >conftest.$ac_ext <<_ACEOF
20095 cat confdefs.h >>conftest.$ac_ext
20096 cat >>conftest.$ac_ext <<_ACEOF
20097 /* end confdefs.h. */
20098 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
20099 For example, HP-UX 11i <limits.h> declares gettimeofday. */
20100 #define $ac_func innocuous_$ac_func
20102 /* System header to define __stub macros and hopefully few prototypes,
20103 which can conflict with char $ac_func (); below.
20104 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
20105 <limits.h> exists even on freestanding compilers. */
20108 # include <limits.h>
20110 # include <assert.h>
20115 /* Override any gcc2 internal prototype to avoid an error. */
20120 /* We use char because int might match the return type of a gcc2
20121 builtin and then its argument prototype would still apply. */
20123 /* The GNU C library defines this for functions which it implements
20124 to always fail with ENOSYS. Some functions are actually named
20125 something starting with __ and the normal name is an alias. */
20126 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
20129 char (*f) () = $ac_func;
20138 return f != $ac_func;
20143 rm -f conftest.$ac_objext conftest$ac_exeext
20144 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
20145 (eval $ac_link) 2>conftest.er1
20147 grep -v '^ *+' conftest.er1 >conftest.err
20149 cat conftest.err >&5
20150 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20151 (exit $ac_status); } &&
20152 { ac_try='test -z "$ac_c_werror_flag"
20153 || test ! -s conftest.err'
20154 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20155 (eval $ac_try) 2>&5
20157 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20158 (exit $ac_status); }; } &&
20159 { ac_try='test -s conftest$ac_exeext'
20160 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20161 (eval $ac_try) 2>&5
20163 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20164 (exit $ac_status); }; }; then
20165 eval "$as_ac_var=yes"
20167 echo "$as_me: failed program was:" >&5
20168 sed 's/^/| /' conftest.$ac_ext >&5
20170 eval "$as_ac_var=no"
20172 rm -f conftest.err conftest.$ac_objext \
20173 conftest$ac_exeext conftest.$ac_ext
20175 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
20176 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
20177 if test `eval echo '${'$as_ac_var'}'` = yes; then
20178 cat >>confdefs.h <<_ACEOF
20179 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
20186 for ac_func in socketpair
20188 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
20189 echo "$as_me:$LINENO: checking for $ac_func" >&5
20190 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
20191 if eval "test \"\${$as_ac_var+set}\" = set"; then
20192 echo $ECHO_N "(cached) $ECHO_C" >&6
20194 cat >conftest.$ac_ext <<_ACEOF
20197 cat confdefs.h >>conftest.$ac_ext
20198 cat >>conftest.$ac_ext <<_ACEOF
20199 /* end confdefs.h. */
20200 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
20201 For example, HP-UX 11i <limits.h> declares gettimeofday. */
20202 #define $ac_func innocuous_$ac_func
20204 /* System header to define __stub macros and hopefully few prototypes,
20205 which can conflict with char $ac_func (); below.
20206 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
20207 <limits.h> exists even on freestanding compilers. */
20210 # include <limits.h>
20212 # include <assert.h>
20217 /* Override any gcc2 internal prototype to avoid an error. */
20222 /* We use char because int might match the return type of a gcc2
20223 builtin and then its argument prototype would still apply. */
20225 /* The GNU C library defines this for functions which it implements
20226 to always fail with ENOSYS. Some functions are actually named
20227 something starting with __ and the normal name is an alias. */
20228 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
20231 char (*f) () = $ac_func;
20240 return f != $ac_func;
20245 rm -f conftest.$ac_objext conftest$ac_exeext
20246 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
20247 (eval $ac_link) 2>conftest.er1
20249 grep -v '^ *+' conftest.er1 >conftest.err
20251 cat conftest.err >&5
20252 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20253 (exit $ac_status); } &&
20254 { ac_try='test -z "$ac_c_werror_flag"
20255 || test ! -s conftest.err'
20256 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20257 (eval $ac_try) 2>&5
20259 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20260 (exit $ac_status); }; } &&
20261 { ac_try='test -s conftest$ac_exeext'
20262 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20263 (eval $ac_try) 2>&5
20265 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20266 (exit $ac_status); }; }; then
20267 eval "$as_ac_var=yes"
20269 echo "$as_me: failed program was:" >&5
20270 sed 's/^/| /' conftest.$ac_ext >&5
20272 eval "$as_ac_var=no"
20274 rm -f conftest.err conftest.$ac_objext \
20275 conftest$ac_exeext conftest.$ac_ext
20277 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
20278 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
20279 if test `eval echo '${'$as_ac_var'}'` = yes; then
20280 cat >>confdefs.h <<_ACEOF
20281 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
20288 for ac_func in syscall
20290 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
20291 echo "$as_me:$LINENO: checking for $ac_func" >&5
20292 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
20293 if eval "test \"\${$as_ac_var+set}\" = set"; then
20294 echo $ECHO_N "(cached) $ECHO_C" >&6
20296 cat >conftest.$ac_ext <<_ACEOF
20299 cat confdefs.h >>conftest.$ac_ext
20300 cat >>conftest.$ac_ext <<_ACEOF
20301 /* end confdefs.h. */
20302 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
20303 For example, HP-UX 11i <limits.h> declares gettimeofday. */
20304 #define $ac_func innocuous_$ac_func
20306 /* System header to define __stub macros and hopefully few prototypes,
20307 which can conflict with char $ac_func (); below.
20308 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
20309 <limits.h> exists even on freestanding compilers. */
20312 # include <limits.h>
20314 # include <assert.h>
20319 /* Override any gcc2 internal prototype to avoid an error. */
20324 /* We use char because int might match the return type of a gcc2
20325 builtin and then its argument prototype would still apply. */
20327 /* The GNU C library defines this for functions which it implements
20328 to always fail with ENOSYS. Some functions are actually named
20329 something starting with __ and the normal name is an alias. */
20330 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
20333 char (*f) () = $ac_func;
20342 return f != $ac_func;
20347 rm -f conftest.$ac_objext conftest$ac_exeext
20348 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
20349 (eval $ac_link) 2>conftest.er1
20351 grep -v '^ *+' conftest.er1 >conftest.err
20353 cat conftest.err >&5
20354 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20355 (exit $ac_status); } &&
20356 { ac_try='test -z "$ac_c_werror_flag"
20357 || test ! -s conftest.err'
20358 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20359 (eval $ac_try) 2>&5
20361 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20362 (exit $ac_status); }; } &&
20363 { ac_try='test -s conftest$ac_exeext'
20364 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20365 (eval $ac_try) 2>&5
20367 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20368 (exit $ac_status); }; }; then
20369 eval "$as_ac_var=yes"
20371 echo "$as_me: failed program was:" >&5
20372 sed 's/^/| /' conftest.$ac_ext >&5
20374 eval "$as_ac_var=no"
20376 rm -f conftest.err conftest.$ac_objext \
20377 conftest$ac_exeext conftest.$ac_ext
20379 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
20380 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
20381 if test `eval echo '${'$as_ac_var'}'` = yes; then
20382 cat >>confdefs.h <<_ACEOF
20383 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
20390 for ac_func in ttrace
20392 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
20393 echo "$as_me:$LINENO: checking for $ac_func" >&5
20394 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
20395 if eval "test \"\${$as_ac_var+set}\" = set"; then
20396 echo $ECHO_N "(cached) $ECHO_C" >&6
20398 cat >conftest.$ac_ext <<_ACEOF
20401 cat confdefs.h >>conftest.$ac_ext
20402 cat >>conftest.$ac_ext <<_ACEOF
20403 /* end confdefs.h. */
20404 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
20405 For example, HP-UX 11i <limits.h> declares gettimeofday. */
20406 #define $ac_func innocuous_$ac_func
20408 /* System header to define __stub macros and hopefully few prototypes,
20409 which can conflict with char $ac_func (); below.
20410 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
20411 <limits.h> exists even on freestanding compilers. */
20414 # include <limits.h>
20416 # include <assert.h>
20421 /* Override any gcc2 internal prototype to avoid an error. */
20426 /* We use char because int might match the return type of a gcc2
20427 builtin and then its argument prototype would still apply. */
20429 /* The GNU C library defines this for functions which it implements
20430 to always fail with ENOSYS. Some functions are actually named
20431 something starting with __ and the normal name is an alias. */
20432 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
20435 char (*f) () = $ac_func;
20444 return f != $ac_func;
20449 rm -f conftest.$ac_objext conftest$ac_exeext
20450 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
20451 (eval $ac_link) 2>conftest.er1
20453 grep -v '^ *+' conftest.er1 >conftest.err
20455 cat conftest.err >&5
20456 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20457 (exit $ac_status); } &&
20458 { ac_try='test -z "$ac_c_werror_flag"
20459 || test ! -s conftest.err'
20460 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20461 (eval $ac_try) 2>&5
20463 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20464 (exit $ac_status); }; } &&
20465 { ac_try='test -s conftest$ac_exeext'
20466 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20467 (eval $ac_try) 2>&5
20469 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20470 (exit $ac_status); }; }; then
20471 eval "$as_ac_var=yes"
20473 echo "$as_me: failed program was:" >&5
20474 sed 's/^/| /' conftest.$ac_ext >&5
20476 eval "$as_ac_var=no"
20478 rm -f conftest.err conftest.$ac_objext \
20479 conftest$ac_exeext conftest.$ac_ext
20481 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
20482 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
20483 if test `eval echo '${'$as_ac_var'}'` = yes; then
20484 cat >>confdefs.h <<_ACEOF
20485 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
20492 for ac_func in wborder
20494 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
20495 echo "$as_me:$LINENO: checking for $ac_func" >&5
20496 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
20497 if eval "test \"\${$as_ac_var+set}\" = set"; then
20498 echo $ECHO_N "(cached) $ECHO_C" >&6
20500 cat >conftest.$ac_ext <<_ACEOF
20503 cat confdefs.h >>conftest.$ac_ext
20504 cat >>conftest.$ac_ext <<_ACEOF
20505 /* end confdefs.h. */
20506 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
20507 For example, HP-UX 11i <limits.h> declares gettimeofday. */
20508 #define $ac_func innocuous_$ac_func
20510 /* System header to define __stub macros and hopefully few prototypes,
20511 which can conflict with char $ac_func (); below.
20512 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
20513 <limits.h> exists even on freestanding compilers. */
20516 # include <limits.h>
20518 # include <assert.h>
20523 /* Override any gcc2 internal prototype to avoid an error. */
20528 /* We use char because int might match the return type of a gcc2
20529 builtin and then its argument prototype would still apply. */
20531 /* The GNU C library defines this for functions which it implements
20532 to always fail with ENOSYS. Some functions are actually named
20533 something starting with __ and the normal name is an alias. */
20534 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
20537 char (*f) () = $ac_func;
20546 return f != $ac_func;
20551 rm -f conftest.$ac_objext conftest$ac_exeext
20552 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
20553 (eval $ac_link) 2>conftest.er1
20555 grep -v '^ *+' conftest.er1 >conftest.err
20557 cat conftest.err >&5
20558 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20559 (exit $ac_status); } &&
20560 { ac_try='test -z "$ac_c_werror_flag"
20561 || test ! -s conftest.err'
20562 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20563 (eval $ac_try) 2>&5
20565 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20566 (exit $ac_status); }; } &&
20567 { ac_try='test -s conftest$ac_exeext'
20568 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20569 (eval $ac_try) 2>&5
20571 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20572 (exit $ac_status); }; }; then
20573 eval "$as_ac_var=yes"
20575 echo "$as_me: failed program was:" >&5
20576 sed 's/^/| /' conftest.$ac_ext >&5
20578 eval "$as_ac_var=no"
20580 rm -f conftest.err conftest.$ac_objext \
20581 conftest$ac_exeext conftest.$ac_ext
20583 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
20584 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
20585 if test `eval echo '${'$as_ac_var'}'` = yes; then
20586 cat >>confdefs.h <<_ACEOF
20587 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
20594 # Check the return and argument types of ptrace. No canned test for
20595 # this, so roll our own.
20596 gdb_ptrace_headers='
20597 #if HAVE_SYS_TYPES_H
20598 # include <sys/types.h>
20600 #if HAVE_SYS_PTRACE_H
20601 # include <sys/ptrace.h>
20604 # include <unistd.h>
20607 # There is no point in checking if we don't have a prototype.
20608 echo "$as_me:$LINENO: checking whether ptrace is declared" >&5
20609 echo $ECHO_N "checking whether ptrace is declared... $ECHO_C" >&6
20610 if test "${ac_cv_have_decl_ptrace+set}" = set; then
20611 echo $ECHO_N "(cached) $ECHO_C" >&6
20613 cat >conftest.$ac_ext <<_ACEOF
20616 cat confdefs.h >>conftest.$ac_ext
20617 cat >>conftest.$ac_ext <<_ACEOF
20618 /* end confdefs.h. */
20619 $gdb_ptrace_headers
20625 char *p = (char *) ptrace;
20632 rm -f conftest.$ac_objext
20633 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
20634 (eval $ac_compile) 2>conftest.er1
20636 grep -v '^ *+' conftest.er1 >conftest.err
20638 cat conftest.err >&5
20639 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20640 (exit $ac_status); } &&
20641 { ac_try='test -z "$ac_c_werror_flag"
20642 || test ! -s conftest.err'
20643 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20644 (eval $ac_try) 2>&5
20646 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20647 (exit $ac_status); }; } &&
20648 { ac_try='test -s conftest.$ac_objext'
20649 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20650 (eval $ac_try) 2>&5
20652 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20653 (exit $ac_status); }; }; then
20654 ac_cv_have_decl_ptrace=yes
20656 echo "$as_me: failed program was:" >&5
20657 sed 's/^/| /' conftest.$ac_ext >&5
20659 ac_cv_have_decl_ptrace=no
20661 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
20663 echo "$as_me:$LINENO: result: $ac_cv_have_decl_ptrace" >&5
20664 echo "${ECHO_T}$ac_cv_have_decl_ptrace" >&6
20665 if test $ac_cv_have_decl_ptrace = yes; then
20667 cat >>confdefs.h <<_ACEOF
20668 #define HAVE_DECL_PTRACE 1
20673 cat >>confdefs.h <<_ACEOF
20674 #define HAVE_DECL_PTRACE 0
20678 : ${gdb_cv_func_ptrace_ret='int'}
20679 : ${gdb_cv_func_ptrace_args='int,int,long,long'}
20684 # Check return type. Varargs (used on GNU/Linux) conflict with the
20685 # empty argument list, so check for that explicitly.
20686 echo "$as_me:$LINENO: checking return type of ptrace" >&5
20687 echo $ECHO_N "checking return type of ptrace... $ECHO_C" >&6
20688 if test "${gdb_cv_func_ptrace_ret+set}" = set; then
20689 echo $ECHO_N "(cached) $ECHO_C" >&6
20691 cat >conftest.$ac_ext <<_ACEOF
20694 cat confdefs.h >>conftest.$ac_ext
20695 cat >>conftest.$ac_ext <<_ACEOF
20696 /* end confdefs.h. */
20697 $gdb_ptrace_headers
20701 extern long ptrace (enum __ptrace_request, ...);
20706 rm -f conftest.$ac_objext
20707 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
20708 (eval $ac_compile) 2>conftest.er1
20710 grep -v '^ *+' conftest.er1 >conftest.err
20712 cat conftest.err >&5
20713 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20714 (exit $ac_status); } &&
20715 { ac_try='test -z "$ac_c_werror_flag"
20716 || test ! -s conftest.err'
20717 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20718 (eval $ac_try) 2>&5
20720 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20721 (exit $ac_status); }; } &&
20722 { ac_try='test -s conftest.$ac_objext'
20723 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20724 (eval $ac_try) 2>&5
20726 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20727 (exit $ac_status); }; }; then
20728 gdb_cv_func_ptrace_ret='long'
20730 echo "$as_me: failed program was:" >&5
20731 sed 's/^/| /' conftest.$ac_ext >&5
20733 cat >conftest.$ac_ext <<_ACEOF
20736 cat confdefs.h >>conftest.$ac_ext
20737 cat >>conftest.$ac_ext <<_ACEOF
20738 /* end confdefs.h. */
20739 $gdb_ptrace_headers
20743 extern int ptrace ();
20748 rm -f conftest.$ac_objext
20749 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
20750 (eval $ac_compile) 2>conftest.er1
20752 grep -v '^ *+' conftest.er1 >conftest.err
20754 cat conftest.err >&5
20755 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20756 (exit $ac_status); } &&
20757 { ac_try='test -z "$ac_c_werror_flag"
20758 || test ! -s conftest.err'
20759 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20760 (eval $ac_try) 2>&5
20762 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20763 (exit $ac_status); }; } &&
20764 { ac_try='test -s conftest.$ac_objext'
20765 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20766 (eval $ac_try) 2>&5
20768 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20769 (exit $ac_status); }; }; then
20770 gdb_cv_func_ptrace_ret='int'
20772 echo "$as_me: failed program was:" >&5
20773 sed 's/^/| /' conftest.$ac_ext >&5
20775 gdb_cv_func_ptrace_ret='long'
20777 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
20779 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
20781 echo "$as_me:$LINENO: result: $gdb_cv_func_ptrace_ret" >&5
20782 echo "${ECHO_T}$gdb_cv_func_ptrace_ret" >&6
20784 cat >>confdefs.h <<_ACEOF
20785 #define PTRACE_TYPE_RET $gdb_cv_func_ptrace_ret
20788 # Check argument types.
20789 echo "$as_me:$LINENO: checking types of arguments for ptrace" >&5
20790 echo $ECHO_N "checking types of arguments for ptrace... $ECHO_C" >&6
20791 if test "${gdb_cv_func_ptrace_args+set}" = set; then
20792 echo $ECHO_N "(cached) $ECHO_C" >&6
20795 cat >conftest.$ac_ext <<_ACEOF
20798 cat confdefs.h >>conftest.$ac_ext
20799 cat >>conftest.$ac_ext <<_ACEOF
20800 /* end confdefs.h. */
20801 $gdb_ptrace_headers
20805 extern long ptrace (enum __ptrace_request, ...);
20810 rm -f conftest.$ac_objext
20811 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
20812 (eval $ac_compile) 2>conftest.er1
20814 grep -v '^ *+' conftest.er1 >conftest.err
20816 cat conftest.err >&5
20817 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20818 (exit $ac_status); } &&
20819 { ac_try='test -z "$ac_c_werror_flag"
20820 || test ! -s conftest.err'
20821 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20822 (eval $ac_try) 2>&5
20824 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20825 (exit $ac_status); }; } &&
20826 { ac_try='test -s conftest.$ac_objext'
20827 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20828 (eval $ac_try) 2>&5
20830 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20831 (exit $ac_status); }; }; then
20832 gdb_cv_func_ptrace_args='int,int,long,long'
20834 echo "$as_me: failed program was:" >&5
20835 sed 's/^/| /' conftest.$ac_ext >&5
20838 for gdb_arg1 in 'int' 'long'; do
20839 for gdb_arg2 in 'pid_t' 'int' 'long'; do
20840 for gdb_arg3 in 'int *' 'caddr_t' 'int' 'long' 'void *'; do
20841 for gdb_arg4 in 'int' 'long'; do
20842 cat >conftest.$ac_ext <<_ACEOF
20845 cat confdefs.h >>conftest.$ac_ext
20846 cat >>conftest.$ac_ext <<_ACEOF
20847 /* end confdefs.h. */
20848 $gdb_ptrace_headers
20853 extern $gdb_cv_func_ptrace_ret
20854 ptrace ($gdb_arg1, $gdb_arg2, $gdb_arg3, $gdb_arg4);
20860 rm -f conftest.$ac_objext
20861 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
20862 (eval $ac_compile) 2>conftest.er1
20864 grep -v '^ *+' conftest.er1 >conftest.err
20866 cat conftest.err >&5
20867 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20868 (exit $ac_status); } &&
20869 { ac_try='test -z "$ac_c_werror_flag"
20870 || test ! -s conftest.err'
20871 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20872 (eval $ac_try) 2>&5
20874 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20875 (exit $ac_status); }; } &&
20876 { ac_try='test -s conftest.$ac_objext'
20877 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20878 (eval $ac_try) 2>&5
20880 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20881 (exit $ac_status); }; }; then
20882 gdb_cv_func_ptrace_args="$gdb_arg1,$gdb_arg2,$gdb_arg3,$gdb_arg4";
20885 echo "$as_me: failed program was:" >&5
20886 sed 's/^/| /' conftest.$ac_ext >&5
20889 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
20890 for gdb_arg5 in 'int *' 'int' 'long'; do
20891 cat >conftest.$ac_ext <<_ACEOF
20894 cat confdefs.h >>conftest.$ac_ext
20895 cat >>conftest.$ac_ext <<_ACEOF
20896 /* end confdefs.h. */
20897 $gdb_ptrace_headers
20902 extern $gdb_cv_func_ptrace_ret
20903 ptrace ($gdb_arg1, $gdb_arg2, $gdb_arg3, $gdb_arg4, $gdb_arg5);
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
20932 gdb_cv_func_ptrace_args="$gdb_arg1,$gdb_arg2,$gdb_arg3,$gdb_arg4,$gdb_arg5";
20935 echo "$as_me: failed program was:" >&5
20936 sed 's/^/| /' conftest.$ac_ext >&5
20939 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
20945 # Provide a safe default value.
20946 : ${gdb_cv_func_ptrace_args='int,int,long,long'}
20949 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
20951 echo "$as_me:$LINENO: result: $gdb_cv_func_ptrace_args" >&5
20952 echo "${ECHO_T}$gdb_cv_func_ptrace_args" >&6
20953 ac_save_IFS=$IFS; IFS=','
20954 set dummy `echo "$gdb_cv_func_ptrace_args" | sed 's/\*/\*/g'`
20958 cat >>confdefs.h <<_ACEOF
20959 #define PTRACE_TYPE_ARG3 $3
20962 if test -n "$5"; then
20964 cat >>confdefs.h <<_ACEOF
20965 #define PTRACE_TYPE_ARG5 $5
20970 if test "$cross_compiling" = no; then
20971 echo "$as_me:$LINENO: checking whether setpgrp takes no argument" >&5
20972 echo $ECHO_N "checking whether setpgrp takes no argument... $ECHO_C" >&6
20973 if test "${ac_cv_func_setpgrp_void+set}" = set; then
20974 echo $ECHO_N "(cached) $ECHO_C" >&6
20976 if test "$cross_compiling" = yes; then
20977 { { echo "$as_me:$LINENO: error: cannot check setpgrp when cross compiling" >&5
20978 echo "$as_me: error: cannot check setpgrp when cross compiling" >&2;}
20979 { (exit 1); exit 1; }; }
20981 cat >conftest.$ac_ext <<_ACEOF
20984 cat confdefs.h >>conftest.$ac_ext
20985 cat >>conftest.$ac_ext <<_ACEOF
20986 /* end confdefs.h. */
20988 # include <unistd.h>
20994 /* If this system has a BSD-style setpgrp which takes arguments,
20995 setpgrp(1, 1) will fail with ESRCH and return -1, in that case
20996 exit successfully. */
20997 exit (setpgrp (1,1) == -1 ? 0 : 1);
21002 rm -f conftest$ac_exeext
21003 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
21004 (eval $ac_link) 2>&5
21006 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21007 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
21008 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21009 (eval $ac_try) 2>&5
21011 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21012 (exit $ac_status); }; }; then
21013 ac_cv_func_setpgrp_void=no
21015 echo "$as_me: program exited with status $ac_status" >&5
21016 echo "$as_me: failed program was:" >&5
21017 sed 's/^/| /' conftest.$ac_ext >&5
21019 ( exit $ac_status )
21020 ac_cv_func_setpgrp_void=yes
21022 rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
21025 echo "$as_me:$LINENO: result: $ac_cv_func_setpgrp_void" >&5
21026 echo "${ECHO_T}$ac_cv_func_setpgrp_void" >&6
21027 if test $ac_cv_func_setpgrp_void = yes; then
21029 cat >>confdefs.h <<\_ACEOF
21030 #define SETPGRP_VOID 1
21036 echo "$as_me:$LINENO: checking whether setpgrp takes no argument" >&5
21037 echo $ECHO_N "checking whether setpgrp takes no argument... $ECHO_C" >&6
21038 if test "${ac_cv_func_setpgrp_void+set}" = set; then
21039 echo $ECHO_N "(cached) $ECHO_C" >&6
21041 cat >conftest.$ac_ext <<_ACEOF
21044 cat confdefs.h >>conftest.$ac_ext
21045 cat >>conftest.$ac_ext <<_ACEOF
21046 /* end confdefs.h. */
21048 #include <unistd.h>
21054 if (setpgrp(1,1) == -1)
21063 rm -f conftest.$ac_objext
21064 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
21065 (eval $ac_compile) 2>conftest.er1
21067 grep -v '^ *+' conftest.er1 >conftest.err
21069 cat conftest.err >&5
21070 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21071 (exit $ac_status); } &&
21072 { ac_try='test -z "$ac_c_werror_flag"
21073 || test ! -s conftest.err'
21074 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21075 (eval $ac_try) 2>&5
21077 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21078 (exit $ac_status); }; } &&
21079 { ac_try='test -s conftest.$ac_objext'
21080 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21081 (eval $ac_try) 2>&5
21083 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21084 (exit $ac_status); }; }; then
21085 ac_cv_func_setpgrp_void=no
21087 echo "$as_me: failed program was:" >&5
21088 sed 's/^/| /' conftest.$ac_ext >&5
21090 ac_cv_func_setpgrp_void=yes
21092 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
21094 echo "$as_me:$LINENO: result: $ac_cv_func_setpgrp_void" >&5
21095 echo "${ECHO_T}$ac_cv_func_setpgrp_void" >&6
21096 if test $ac_cv_func_setpgrp_void = yes; then
21097 cat >>confdefs.h <<\_ACEOF
21098 #define SETPGRP_VOID 1
21104 # Check if sigsetjmp is available. Using AC_CHECK_FUNCS won't do
21105 # since sigsetjmp might only be defined as a macro.
21106 echo "$as_me:$LINENO: checking for sigsetjmp" >&5
21107 echo $ECHO_N "checking for sigsetjmp... $ECHO_C" >&6
21108 if test "${gdb_cv_func_sigsetjmp+set}" = set; then
21109 echo $ECHO_N "(cached) $ECHO_C" >&6
21111 cat >conftest.$ac_ext <<_ACEOF
21114 cat confdefs.h >>conftest.$ac_ext
21115 cat >>conftest.$ac_ext <<_ACEOF
21116 /* end confdefs.h. */
21118 #include <setjmp.h>
21123 sigjmp_buf env; while (! sigsetjmp (env, 1)) siglongjmp (env, 1);
21128 rm -f conftest.$ac_objext
21129 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
21130 (eval $ac_compile) 2>conftest.er1
21132 grep -v '^ *+' conftest.er1 >conftest.err
21134 cat conftest.err >&5
21135 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21136 (exit $ac_status); } &&
21137 { ac_try='test -z "$ac_c_werror_flag"
21138 || test ! -s conftest.err'
21139 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21140 (eval $ac_try) 2>&5
21142 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21143 (exit $ac_status); }; } &&
21144 { ac_try='test -s conftest.$ac_objext'
21145 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21146 (eval $ac_try) 2>&5
21148 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21149 (exit $ac_status); }; }; then
21150 gdb_cv_func_sigsetjmp=yes
21152 echo "$as_me: failed program was:" >&5
21153 sed 's/^/| /' conftest.$ac_ext >&5
21155 gdb_cv_func_sigsetjmp=no
21157 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
21159 echo "$as_me:$LINENO: result: $gdb_cv_func_sigsetjmp" >&5
21160 echo "${ECHO_T}$gdb_cv_func_sigsetjmp" >&6
21161 if test $gdb_cv_func_sigsetjmp = yes; then
21163 cat >>confdefs.h <<\_ACEOF
21164 #define HAVE_SIGSETJMP 1
21169 # Assume we'll default to using the included libiberty regex.
21170 gdb_use_included_regex=yes
21172 # However, if the system regex is GNU regex, then default to *not*
21173 # using the included regex.
21174 echo "$as_me:$LINENO: checking for GNU regex" >&5
21175 echo $ECHO_N "checking for GNU regex... $ECHO_C" >&6
21176 if test "${gdb_cv_have_gnu_regex+set}" = set; then
21177 echo $ECHO_N "(cached) $ECHO_C" >&6
21179 cat >conftest.$ac_ext <<_ACEOF
21182 cat confdefs.h >>conftest.$ac_ext
21183 cat >>conftest.$ac_ext <<_ACEOF
21184 /* end confdefs.h. */
21185 #include <gnu-versions.h>
21189 #define REGEX_INTERFACE_VERSION 1
21190 #if _GNU_REGEX_INTERFACE_VERSION != REGEX_INTERFACE_VERSION
21191 # error "Version mismatch"
21197 rm -f conftest.$ac_objext
21198 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
21199 (eval $ac_compile) 2>conftest.er1
21201 grep -v '^ *+' conftest.er1 >conftest.err
21203 cat conftest.err >&5
21204 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21205 (exit $ac_status); } &&
21206 { ac_try='test -z "$ac_c_werror_flag"
21207 || test ! -s conftest.err'
21208 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21209 (eval $ac_try) 2>&5
21211 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21212 (exit $ac_status); }; } &&
21213 { ac_try='test -s conftest.$ac_objext'
21214 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21215 (eval $ac_try) 2>&5
21217 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21218 (exit $ac_status); }; }; then
21219 gdb_cv_have_gnu_regex=yes
21221 echo "$as_me: failed program was:" >&5
21222 sed 's/^/| /' conftest.$ac_ext >&5
21224 gdb_cv_have_gnu_regex=no
21226 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
21228 echo "$as_me:$LINENO: result: $gdb_cv_have_gnu_regex" >&5
21229 echo "${ECHO_T}$gdb_cv_have_gnu_regex" >&6
21230 if test $gdb_cv_have_gnu_regex = yes; then
21231 gdb_use_included_regex=no
21235 # Check whether --with-included-regex or --without-included-regex was given.
21236 if test "${with_included_regex+set}" = set; then
21237 withval="$with_included_regex"
21238 gdb_with_regex=$withval
21240 gdb_with_regex=$gdb_use_included_regex
21242 if test "$gdb_with_regex" = yes; then
21244 cat >>confdefs.h <<\_ACEOF
21245 #define USE_INCLUDED_REGEX 1
21250 # Check if <sys/proc.h> defines `struct thread' with a td_pcb member.
21251 echo "$as_me:$LINENO: checking for struct thread.td_pcb" >&5
21252 echo $ECHO_N "checking for struct thread.td_pcb... $ECHO_C" >&6
21253 if test "${ac_cv_member_struct_thread_td_pcb+set}" = set; then
21254 echo $ECHO_N "(cached) $ECHO_C" >&6
21256 cat >conftest.$ac_ext <<_ACEOF
21259 cat confdefs.h >>conftest.$ac_ext
21260 cat >>conftest.$ac_ext <<_ACEOF
21261 /* end confdefs.h. */
21262 #include <sys/param.h>
21263 #include <sys/proc.h>
21269 static struct thread ac_aggr;
21270 if (ac_aggr.td_pcb)
21276 rm -f conftest.$ac_objext
21277 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
21278 (eval $ac_compile) 2>conftest.er1
21280 grep -v '^ *+' conftest.er1 >conftest.err
21282 cat conftest.err >&5
21283 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21284 (exit $ac_status); } &&
21285 { ac_try='test -z "$ac_c_werror_flag"
21286 || test ! -s conftest.err'
21287 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21288 (eval $ac_try) 2>&5
21290 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21291 (exit $ac_status); }; } &&
21292 { ac_try='test -s conftest.$ac_objext'
21293 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21294 (eval $ac_try) 2>&5
21296 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21297 (exit $ac_status); }; }; then
21298 ac_cv_member_struct_thread_td_pcb=yes
21300 echo "$as_me: failed program was:" >&5
21301 sed 's/^/| /' conftest.$ac_ext >&5
21303 cat >conftest.$ac_ext <<_ACEOF
21306 cat confdefs.h >>conftest.$ac_ext
21307 cat >>conftest.$ac_ext <<_ACEOF
21308 /* end confdefs.h. */
21309 #include <sys/param.h>
21310 #include <sys/proc.h>
21316 static struct thread ac_aggr;
21317 if (sizeof ac_aggr.td_pcb)
21323 rm -f conftest.$ac_objext
21324 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
21325 (eval $ac_compile) 2>conftest.er1
21327 grep -v '^ *+' conftest.er1 >conftest.err
21329 cat conftest.err >&5
21330 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21331 (exit $ac_status); } &&
21332 { ac_try='test -z "$ac_c_werror_flag"
21333 || test ! -s conftest.err'
21334 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21335 (eval $ac_try) 2>&5
21337 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21338 (exit $ac_status); }; } &&
21339 { ac_try='test -s conftest.$ac_objext'
21340 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21341 (eval $ac_try) 2>&5
21343 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21344 (exit $ac_status); }; }; then
21345 ac_cv_member_struct_thread_td_pcb=yes
21347 echo "$as_me: failed program was:" >&5
21348 sed 's/^/| /' conftest.$ac_ext >&5
21350 ac_cv_member_struct_thread_td_pcb=no
21352 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
21354 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
21356 echo "$as_me:$LINENO: result: $ac_cv_member_struct_thread_td_pcb" >&5
21357 echo "${ECHO_T}$ac_cv_member_struct_thread_td_pcb" >&6
21358 if test $ac_cv_member_struct_thread_td_pcb = yes; then
21360 cat >>confdefs.h <<_ACEOF
21361 #define HAVE_STRUCT_THREAD_TD_PCB 1
21368 # See if <sys/lwp.h> defines `struct lwp`.
21369 echo "$as_me:$LINENO: checking for struct lwp" >&5
21370 echo $ECHO_N "checking for struct lwp... $ECHO_C" >&6
21371 if test "${gdb_cv_struct_lwp+set}" = set; then
21372 echo $ECHO_N "(cached) $ECHO_C" >&6
21374 cat >conftest.$ac_ext <<_ACEOF
21377 cat confdefs.h >>conftest.$ac_ext
21378 cat >>conftest.$ac_ext <<_ACEOF
21379 /* end confdefs.h. */
21380 #include <sys/param.h>
21381 #include <sys/lwp.h>
21390 rm -f conftest.$ac_objext
21391 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
21392 (eval $ac_compile) 2>conftest.er1
21394 grep -v '^ *+' conftest.er1 >conftest.err
21396 cat conftest.err >&5
21397 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21398 (exit $ac_status); } &&
21399 { ac_try='test -z "$ac_c_werror_flag"
21400 || test ! -s conftest.err'
21401 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21402 (eval $ac_try) 2>&5
21404 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21405 (exit $ac_status); }; } &&
21406 { ac_try='test -s conftest.$ac_objext'
21407 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21408 (eval $ac_try) 2>&5
21410 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21411 (exit $ac_status); }; }; then
21412 gdb_cv_struct_lwp=yes
21414 echo "$as_me: failed program was:" >&5
21415 sed 's/^/| /' conftest.$ac_ext >&5
21417 gdb_cv_struct_lwp=no
21419 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
21421 echo "$as_me:$LINENO: result: $gdb_cv_struct_lwp" >&5
21422 echo "${ECHO_T}$gdb_cv_struct_lwp" >&6
21423 if test $gdb_cv_struct_lwp = yes; then
21425 cat >>confdefs.h <<\_ACEOF
21426 #define HAVE_STRUCT_LWP 1
21431 # See if <machine/reg.h> degines `struct reg'.
21432 echo "$as_me:$LINENO: checking for struct reg in machine/reg.h" >&5
21433 echo $ECHO_N "checking for struct reg in machine/reg.h... $ECHO_C" >&6
21434 if test "${gdb_cv_struct_reg+set}" = set; then
21435 echo $ECHO_N "(cached) $ECHO_C" >&6
21437 cat >conftest.$ac_ext <<_ACEOF
21440 cat confdefs.h >>conftest.$ac_ext
21441 cat >>conftest.$ac_ext <<_ACEOF
21442 /* end confdefs.h. */
21443 #include <sys/types.h>
21444 #include <machine/reg.h>
21453 rm -f conftest.$ac_objext
21454 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
21455 (eval $ac_compile) 2>conftest.er1
21457 grep -v '^ *+' conftest.er1 >conftest.err
21459 cat conftest.err >&5
21460 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21461 (exit $ac_status); } &&
21462 { ac_try='test -z "$ac_c_werror_flag"
21463 || test ! -s conftest.err'
21464 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21465 (eval $ac_try) 2>&5
21467 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21468 (exit $ac_status); }; } &&
21469 { ac_try='test -s conftest.$ac_objext'
21470 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21471 (eval $ac_try) 2>&5
21473 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21474 (exit $ac_status); }; }; then
21475 gdb_cv_struct_reg=yes
21477 echo "$as_me: failed program was:" >&5
21478 sed 's/^/| /' conftest.$ac_ext >&5
21480 gdb_cv_struct_reg=no
21482 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
21484 echo "$as_me:$LINENO: result: $gdb_cv_struct_reg" >&5
21485 echo "${ECHO_T}$gdb_cv_struct_reg" >&6
21486 if test $gdb_cv_struct_reg = yes; then
21488 cat >>confdefs.h <<\_ACEOF
21489 #define HAVE_STRUCT_REG 1
21494 # See if <machine/reg.h> supports the %fs and %gs i386 segment registers.
21495 # Older i386 BSD's don't have the r_fs and r_gs members of `struct reg'.
21496 echo "$as_me:$LINENO: checking for struct reg.r_fs" >&5
21497 echo $ECHO_N "checking for struct reg.r_fs... $ECHO_C" >&6
21498 if test "${ac_cv_member_struct_reg_r_fs+set}" = set; then
21499 echo $ECHO_N "(cached) $ECHO_C" >&6
21501 cat >conftest.$ac_ext <<_ACEOF
21504 cat confdefs.h >>conftest.$ac_ext
21505 cat >>conftest.$ac_ext <<_ACEOF
21506 /* end confdefs.h. */
21507 #include <machine/reg.h>
21512 static struct reg ac_aggr;
21519 rm -f conftest.$ac_objext
21520 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
21521 (eval $ac_compile) 2>conftest.er1
21523 grep -v '^ *+' conftest.er1 >conftest.err
21525 cat conftest.err >&5
21526 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21527 (exit $ac_status); } &&
21528 { ac_try='test -z "$ac_c_werror_flag"
21529 || test ! -s conftest.err'
21530 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21531 (eval $ac_try) 2>&5
21533 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21534 (exit $ac_status); }; } &&
21535 { ac_try='test -s conftest.$ac_objext'
21536 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21537 (eval $ac_try) 2>&5
21539 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21540 (exit $ac_status); }; }; then
21541 ac_cv_member_struct_reg_r_fs=yes
21543 echo "$as_me: failed program was:" >&5
21544 sed 's/^/| /' conftest.$ac_ext >&5
21546 cat >conftest.$ac_ext <<_ACEOF
21549 cat confdefs.h >>conftest.$ac_ext
21550 cat >>conftest.$ac_ext <<_ACEOF
21551 /* end confdefs.h. */
21552 #include <machine/reg.h>
21557 static struct reg ac_aggr;
21558 if (sizeof ac_aggr.r_fs)
21564 rm -f conftest.$ac_objext
21565 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
21566 (eval $ac_compile) 2>conftest.er1
21568 grep -v '^ *+' conftest.er1 >conftest.err
21570 cat conftest.err >&5
21571 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21572 (exit $ac_status); } &&
21573 { ac_try='test -z "$ac_c_werror_flag"
21574 || test ! -s conftest.err'
21575 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21576 (eval $ac_try) 2>&5
21578 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21579 (exit $ac_status); }; } &&
21580 { ac_try='test -s conftest.$ac_objext'
21581 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21582 (eval $ac_try) 2>&5
21584 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21585 (exit $ac_status); }; }; then
21586 ac_cv_member_struct_reg_r_fs=yes
21588 echo "$as_me: failed program was:" >&5
21589 sed 's/^/| /' conftest.$ac_ext >&5
21591 ac_cv_member_struct_reg_r_fs=no
21593 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
21595 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
21597 echo "$as_me:$LINENO: result: $ac_cv_member_struct_reg_r_fs" >&5
21598 echo "${ECHO_T}$ac_cv_member_struct_reg_r_fs" >&6
21599 if test $ac_cv_member_struct_reg_r_fs = yes; then
21601 cat >>confdefs.h <<_ACEOF
21602 #define HAVE_STRUCT_REG_R_FS 1
21607 echo "$as_me:$LINENO: checking for struct reg.r_gs" >&5
21608 echo $ECHO_N "checking for struct reg.r_gs... $ECHO_C" >&6
21609 if test "${ac_cv_member_struct_reg_r_gs+set}" = set; then
21610 echo $ECHO_N "(cached) $ECHO_C" >&6
21612 cat >conftest.$ac_ext <<_ACEOF
21615 cat confdefs.h >>conftest.$ac_ext
21616 cat >>conftest.$ac_ext <<_ACEOF
21617 /* end confdefs.h. */
21618 #include <machine/reg.h>
21623 static struct reg ac_aggr;
21630 rm -f conftest.$ac_objext
21631 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
21632 (eval $ac_compile) 2>conftest.er1
21634 grep -v '^ *+' conftest.er1 >conftest.err
21636 cat conftest.err >&5
21637 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21638 (exit $ac_status); } &&
21639 { ac_try='test -z "$ac_c_werror_flag"
21640 || test ! -s conftest.err'
21641 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21642 (eval $ac_try) 2>&5
21644 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21645 (exit $ac_status); }; } &&
21646 { ac_try='test -s conftest.$ac_objext'
21647 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21648 (eval $ac_try) 2>&5
21650 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21651 (exit $ac_status); }; }; then
21652 ac_cv_member_struct_reg_r_gs=yes
21654 echo "$as_me: failed program was:" >&5
21655 sed 's/^/| /' conftest.$ac_ext >&5
21657 cat >conftest.$ac_ext <<_ACEOF
21660 cat confdefs.h >>conftest.$ac_ext
21661 cat >>conftest.$ac_ext <<_ACEOF
21662 /* end confdefs.h. */
21663 #include <machine/reg.h>
21668 static struct reg ac_aggr;
21669 if (sizeof ac_aggr.r_gs)
21675 rm -f conftest.$ac_objext
21676 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
21677 (eval $ac_compile) 2>conftest.er1
21679 grep -v '^ *+' conftest.er1 >conftest.err
21681 cat conftest.err >&5
21682 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21683 (exit $ac_status); } &&
21684 { ac_try='test -z "$ac_c_werror_flag"
21685 || test ! -s conftest.err'
21686 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21687 (eval $ac_try) 2>&5
21689 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21690 (exit $ac_status); }; } &&
21691 { ac_try='test -s conftest.$ac_objext'
21692 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21693 (eval $ac_try) 2>&5
21695 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21696 (exit $ac_status); }; }; then
21697 ac_cv_member_struct_reg_r_gs=yes
21699 echo "$as_me: failed program was:" >&5
21700 sed 's/^/| /' conftest.$ac_ext >&5
21702 ac_cv_member_struct_reg_r_gs=no
21704 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
21706 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
21708 echo "$as_me:$LINENO: result: $ac_cv_member_struct_reg_r_gs" >&5
21709 echo "${ECHO_T}$ac_cv_member_struct_reg_r_gs" >&6
21710 if test $ac_cv_member_struct_reg_r_gs = yes; then
21712 cat >>confdefs.h <<_ACEOF
21713 #define HAVE_STRUCT_REG_R_GS 1
21720 # See if <sys/ptrace.h> provides the PTRACE_GETREGS request.
21721 echo "$as_me:$LINENO: checking for PTRACE_GETREGS" >&5
21722 echo $ECHO_N "checking for PTRACE_GETREGS... $ECHO_C" >&6
21723 if test "${gdb_cv_have_ptrace_getregs+set}" = set; then
21724 echo $ECHO_N "(cached) $ECHO_C" >&6
21726 cat >conftest.$ac_ext <<_ACEOF
21729 cat confdefs.h >>conftest.$ac_ext
21730 cat >>conftest.$ac_ext <<_ACEOF
21731 /* end confdefs.h. */
21732 #include <sys/ptrace.h>
21741 rm -f conftest.$ac_objext
21742 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
21743 (eval $ac_compile) 2>conftest.er1
21745 grep -v '^ *+' conftest.er1 >conftest.err
21747 cat conftest.err >&5
21748 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21749 (exit $ac_status); } &&
21750 { ac_try='test -z "$ac_c_werror_flag"
21751 || test ! -s conftest.err'
21752 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21753 (eval $ac_try) 2>&5
21755 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21756 (exit $ac_status); }; } &&
21757 { ac_try='test -s conftest.$ac_objext'
21758 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21759 (eval $ac_try) 2>&5
21761 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21762 (exit $ac_status); }; }; then
21763 gdb_cv_have_ptrace_getregs=yes
21765 echo "$as_me: failed program was:" >&5
21766 sed 's/^/| /' conftest.$ac_ext >&5
21768 gdb_cv_have_ptrace_getregs=no
21770 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
21773 echo "$as_me:$LINENO: result: $gdb_cv_have_ptrace_getregs" >&5
21774 echo "${ECHO_T}$gdb_cv_have_ptrace_getregs" >&6
21775 if test $gdb_cv_have_ptrace_getregs = yes; then
21777 cat >>confdefs.h <<\_ACEOF
21778 #define HAVE_PTRACE_GETREGS 1
21783 # See if <sys/ptrace.h> provides the PTRACE_GETFPXREGS request.
21784 echo "$as_me:$LINENO: checking for PTRACE_GETFPXREGS" >&5
21785 echo $ECHO_N "checking for PTRACE_GETFPXREGS... $ECHO_C" >&6
21786 if test "${gdb_cv_have_ptrace_getfpxregs+set}" = set; then
21787 echo $ECHO_N "(cached) $ECHO_C" >&6
21789 cat >conftest.$ac_ext <<_ACEOF
21792 cat confdefs.h >>conftest.$ac_ext
21793 cat >>conftest.$ac_ext <<_ACEOF
21794 /* end confdefs.h. */
21795 #include <sys/ptrace.h>
21804 rm -f conftest.$ac_objext
21805 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
21806 (eval $ac_compile) 2>conftest.er1
21808 grep -v '^ *+' conftest.er1 >conftest.err
21810 cat conftest.err >&5
21811 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21812 (exit $ac_status); } &&
21813 { ac_try='test -z "$ac_c_werror_flag"
21814 || test ! -s conftest.err'
21815 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21816 (eval $ac_try) 2>&5
21818 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21819 (exit $ac_status); }; } &&
21820 { ac_try='test -s conftest.$ac_objext'
21821 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21822 (eval $ac_try) 2>&5
21824 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21825 (exit $ac_status); }; }; then
21826 gdb_cv_have_ptrace_getfpxregs=yes
21828 echo "$as_me: failed program was:" >&5
21829 sed 's/^/| /' conftest.$ac_ext >&5
21831 gdb_cv_have_ptrace_getfpxregs=no
21833 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
21836 echo "$as_me:$LINENO: result: $gdb_cv_have_ptrace_getfpxregs" >&5
21837 echo "${ECHO_T}$gdb_cv_have_ptrace_getfpxregs" >&6
21838 if test $gdb_cv_have_ptrace_getfpxregs = yes; then
21840 cat >>confdefs.h <<\_ACEOF
21841 #define HAVE_PTRACE_GETFPXREGS 1
21846 # See if <sys/ptrace.h> provides the PT_GETDBREGS request.
21847 echo "$as_me:$LINENO: checking for PT_GETDBREGS" >&5
21848 echo $ECHO_N "checking for PT_GETDBREGS... $ECHO_C" >&6
21849 if test "${gdb_cv_have_pt_getdbregs+set}" = set; then
21850 echo $ECHO_N "(cached) $ECHO_C" >&6
21852 cat >conftest.$ac_ext <<_ACEOF
21855 cat confdefs.h >>conftest.$ac_ext
21856 cat >>conftest.$ac_ext <<_ACEOF
21857 /* end confdefs.h. */
21858 #include <sys/types.h>
21859 #include <sys/ptrace.h>
21868 rm -f conftest.$ac_objext
21869 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
21870 (eval $ac_compile) 2>conftest.er1
21872 grep -v '^ *+' conftest.er1 >conftest.err
21874 cat conftest.err >&5
21875 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21876 (exit $ac_status); } &&
21877 { ac_try='test -z "$ac_c_werror_flag"
21878 || test ! -s conftest.err'
21879 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21880 (eval $ac_try) 2>&5
21882 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21883 (exit $ac_status); }; } &&
21884 { ac_try='test -s conftest.$ac_objext'
21885 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21886 (eval $ac_try) 2>&5
21888 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21889 (exit $ac_status); }; }; then
21890 gdb_cv_have_pt_getdbregs=yes
21892 echo "$as_me: failed program was:" >&5
21893 sed 's/^/| /' conftest.$ac_ext >&5
21895 gdb_cv_have_pt_getdbregs=no
21897 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
21900 echo "$as_me:$LINENO: result: $gdb_cv_have_pt_getdbregs" >&5
21901 echo "${ECHO_T}$gdb_cv_have_pt_getdbregs" >&6
21902 if test $gdb_cv_have_pt_getdbregs = yes; then
21904 cat >>confdefs.h <<\_ACEOF
21905 #define HAVE_PT_GETDBREGS 1
21910 # See if <sys/ptrace.h> provides the PT_GETXMMREGS request.
21911 echo "$as_me:$LINENO: checking for PT_GETXMMREGS" >&5
21912 echo $ECHO_N "checking for PT_GETXMMREGS... $ECHO_C" >&6
21913 if test "${gdb_cv_have_pt_getxmmregs+set}" = set; then
21914 echo $ECHO_N "(cached) $ECHO_C" >&6
21916 cat >conftest.$ac_ext <<_ACEOF
21919 cat confdefs.h >>conftest.$ac_ext
21920 cat >>conftest.$ac_ext <<_ACEOF
21921 /* end confdefs.h. */
21922 #include <sys/types.h>
21923 #include <sys/ptrace.h>
21932 rm -f conftest.$ac_objext
21933 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
21934 (eval $ac_compile) 2>conftest.er1
21936 grep -v '^ *+' conftest.er1 >conftest.err
21938 cat conftest.err >&5
21939 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21940 (exit $ac_status); } &&
21941 { ac_try='test -z "$ac_c_werror_flag"
21942 || test ! -s conftest.err'
21943 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21944 (eval $ac_try) 2>&5
21946 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21947 (exit $ac_status); }; } &&
21948 { ac_try='test -s conftest.$ac_objext'
21949 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21950 (eval $ac_try) 2>&5
21952 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21953 (exit $ac_status); }; }; then
21954 gdb_cv_have_pt_getxmmregs=yes
21956 echo "$as_me: failed program was:" >&5
21957 sed 's/^/| /' conftest.$ac_ext >&5
21959 gdb_cv_have_pt_getxmmregs=no
21961 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
21964 echo "$as_me:$LINENO: result: $gdb_cv_have_pt_getxmmregs" >&5
21965 echo "${ECHO_T}$gdb_cv_have_pt_getxmmregs" >&6
21966 if test $gdb_cv_have_pt_getxmmregs = yes; then
21968 cat >>confdefs.h <<\_ACEOF
21969 #define HAVE_PT_GETXMMREGS 1
21974 # Detect which type of /proc is in use, such as for Unixware or Solaris.
21976 if test "${target}" = "${host}"; then
21978 *-*-unixware* | *-*-sysv4.2* | *-*-sysv5* | *-*-interix* )
21980 cat >>confdefs.h <<\_ACEOF
21981 #define NEW_PROC_API 1
21985 *-*-solaris2.[6789] | *-*-solaris2.1[0-9]*)
21987 cat >>confdefs.h <<\_ACEOF
21988 #define NEW_PROC_API 1
21993 # Work around <sys/proc.h> needing _KMEMUSER problem on IRIX 5.
21995 cat >>confdefs.h <<\_ACEOF
21996 #define _KMEMUSER 1
22003 if test "$ac_cv_header_sys_procfs_h" = yes; then
22004 echo "$as_me:$LINENO: checking for pstatus_t in sys/procfs.h" >&5
22005 echo $ECHO_N "checking for pstatus_t in sys/procfs.h... $ECHO_C" >&6
22006 if test "${bfd_cv_have_sys_procfs_type_pstatus_t+set}" = set; then
22007 echo $ECHO_N "(cached) $ECHO_C" >&6
22009 cat >conftest.$ac_ext <<_ACEOF
22012 cat confdefs.h >>conftest.$ac_ext
22013 cat >>conftest.$ac_ext <<_ACEOF
22014 /* end confdefs.h. */
22017 #include <sys/procfs.h>
22026 rm -f conftest.$ac_objext
22027 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
22028 (eval $ac_compile) 2>conftest.er1
22030 grep -v '^ *+' conftest.er1 >conftest.err
22032 cat conftest.err >&5
22033 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22034 (exit $ac_status); } &&
22035 { ac_try='test -z "$ac_c_werror_flag"
22036 || test ! -s conftest.err'
22037 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
22038 (eval $ac_try) 2>&5
22040 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22041 (exit $ac_status); }; } &&
22042 { ac_try='test -s conftest.$ac_objext'
22043 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
22044 (eval $ac_try) 2>&5
22046 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22047 (exit $ac_status); }; }; then
22048 bfd_cv_have_sys_procfs_type_pstatus_t=yes
22050 echo "$as_me: failed program was:" >&5
22051 sed 's/^/| /' conftest.$ac_ext >&5
22053 bfd_cv_have_sys_procfs_type_pstatus_t=no
22056 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
22059 if test $bfd_cv_have_sys_procfs_type_pstatus_t = yes; then
22061 cat >>confdefs.h <<\_ACEOF
22062 #define HAVE_PSTATUS_T 1
22066 echo "$as_me:$LINENO: result: $bfd_cv_have_sys_procfs_type_pstatus_t" >&5
22067 echo "${ECHO_T}$bfd_cv_have_sys_procfs_type_pstatus_t" >&6
22069 echo "$as_me:$LINENO: checking for prrun_t in sys/procfs.h" >&5
22070 echo $ECHO_N "checking for prrun_t in sys/procfs.h... $ECHO_C" >&6
22071 if test "${bfd_cv_have_sys_procfs_type_prrun_t+set}" = set; then
22072 echo $ECHO_N "(cached) $ECHO_C" >&6
22074 cat >conftest.$ac_ext <<_ACEOF
22077 cat confdefs.h >>conftest.$ac_ext
22078 cat >>conftest.$ac_ext <<_ACEOF
22079 /* end confdefs.h. */
22082 #include <sys/procfs.h>
22091 rm -f conftest.$ac_objext
22092 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
22093 (eval $ac_compile) 2>conftest.er1
22095 grep -v '^ *+' conftest.er1 >conftest.err
22097 cat conftest.err >&5
22098 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22099 (exit $ac_status); } &&
22100 { ac_try='test -z "$ac_c_werror_flag"
22101 || test ! -s conftest.err'
22102 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
22103 (eval $ac_try) 2>&5
22105 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22106 (exit $ac_status); }; } &&
22107 { ac_try='test -s conftest.$ac_objext'
22108 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
22109 (eval $ac_try) 2>&5
22111 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22112 (exit $ac_status); }; }; then
22113 bfd_cv_have_sys_procfs_type_prrun_t=yes
22115 echo "$as_me: failed program was:" >&5
22116 sed 's/^/| /' conftest.$ac_ext >&5
22118 bfd_cv_have_sys_procfs_type_prrun_t=no
22121 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
22124 if test $bfd_cv_have_sys_procfs_type_prrun_t = yes; then
22126 cat >>confdefs.h <<\_ACEOF
22127 #define HAVE_PRRUN_T 1
22131 echo "$as_me:$LINENO: result: $bfd_cv_have_sys_procfs_type_prrun_t" >&5
22132 echo "${ECHO_T}$bfd_cv_have_sys_procfs_type_prrun_t" >&6
22134 echo "$as_me:$LINENO: checking for gregset_t in sys/procfs.h" >&5
22135 echo $ECHO_N "checking for gregset_t in sys/procfs.h... $ECHO_C" >&6
22136 if test "${bfd_cv_have_sys_procfs_type_gregset_t+set}" = set; then
22137 echo $ECHO_N "(cached) $ECHO_C" >&6
22139 cat >conftest.$ac_ext <<_ACEOF
22142 cat confdefs.h >>conftest.$ac_ext
22143 cat >>conftest.$ac_ext <<_ACEOF
22144 /* end confdefs.h. */
22147 #include <sys/procfs.h>
22156 rm -f conftest.$ac_objext
22157 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
22158 (eval $ac_compile) 2>conftest.er1
22160 grep -v '^ *+' conftest.er1 >conftest.err
22162 cat conftest.err >&5
22163 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22164 (exit $ac_status); } &&
22165 { ac_try='test -z "$ac_c_werror_flag"
22166 || test ! -s conftest.err'
22167 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
22168 (eval $ac_try) 2>&5
22170 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22171 (exit $ac_status); }; } &&
22172 { ac_try='test -s conftest.$ac_objext'
22173 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
22174 (eval $ac_try) 2>&5
22176 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22177 (exit $ac_status); }; }; then
22178 bfd_cv_have_sys_procfs_type_gregset_t=yes
22180 echo "$as_me: failed program was:" >&5
22181 sed 's/^/| /' conftest.$ac_ext >&5
22183 bfd_cv_have_sys_procfs_type_gregset_t=no
22186 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
22189 if test $bfd_cv_have_sys_procfs_type_gregset_t = yes; then
22191 cat >>confdefs.h <<\_ACEOF
22192 #define HAVE_GREGSET_T 1
22196 echo "$as_me:$LINENO: result: $bfd_cv_have_sys_procfs_type_gregset_t" >&5
22197 echo "${ECHO_T}$bfd_cv_have_sys_procfs_type_gregset_t" >&6
22199 echo "$as_me:$LINENO: checking for fpregset_t in sys/procfs.h" >&5
22200 echo $ECHO_N "checking for fpregset_t in sys/procfs.h... $ECHO_C" >&6
22201 if test "${bfd_cv_have_sys_procfs_type_fpregset_t+set}" = set; then
22202 echo $ECHO_N "(cached) $ECHO_C" >&6
22204 cat >conftest.$ac_ext <<_ACEOF
22207 cat confdefs.h >>conftest.$ac_ext
22208 cat >>conftest.$ac_ext <<_ACEOF
22209 /* end confdefs.h. */
22212 #include <sys/procfs.h>
22221 rm -f conftest.$ac_objext
22222 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
22223 (eval $ac_compile) 2>conftest.er1
22225 grep -v '^ *+' conftest.er1 >conftest.err
22227 cat conftest.err >&5
22228 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22229 (exit $ac_status); } &&
22230 { ac_try='test -z "$ac_c_werror_flag"
22231 || test ! -s conftest.err'
22232 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
22233 (eval $ac_try) 2>&5
22235 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22236 (exit $ac_status); }; } &&
22237 { ac_try='test -s conftest.$ac_objext'
22238 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
22239 (eval $ac_try) 2>&5
22241 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22242 (exit $ac_status); }; }; then
22243 bfd_cv_have_sys_procfs_type_fpregset_t=yes
22245 echo "$as_me: failed program was:" >&5
22246 sed 's/^/| /' conftest.$ac_ext >&5
22248 bfd_cv_have_sys_procfs_type_fpregset_t=no
22251 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
22254 if test $bfd_cv_have_sys_procfs_type_fpregset_t = yes; then
22256 cat >>confdefs.h <<\_ACEOF
22257 #define HAVE_FPREGSET_T 1
22261 echo "$as_me:$LINENO: result: $bfd_cv_have_sys_procfs_type_fpregset_t" >&5
22262 echo "${ECHO_T}$bfd_cv_have_sys_procfs_type_fpregset_t" >&6
22264 echo "$as_me:$LINENO: checking for prgregset_t in sys/procfs.h" >&5
22265 echo $ECHO_N "checking for prgregset_t in sys/procfs.h... $ECHO_C" >&6
22266 if test "${bfd_cv_have_sys_procfs_type_prgregset_t+set}" = set; then
22267 echo $ECHO_N "(cached) $ECHO_C" >&6
22269 cat >conftest.$ac_ext <<_ACEOF
22272 cat confdefs.h >>conftest.$ac_ext
22273 cat >>conftest.$ac_ext <<_ACEOF
22274 /* end confdefs.h. */
22277 #include <sys/procfs.h>
22286 rm -f conftest.$ac_objext
22287 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
22288 (eval $ac_compile) 2>conftest.er1
22290 grep -v '^ *+' conftest.er1 >conftest.err
22292 cat conftest.err >&5
22293 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22294 (exit $ac_status); } &&
22295 { ac_try='test -z "$ac_c_werror_flag"
22296 || test ! -s conftest.err'
22297 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
22298 (eval $ac_try) 2>&5
22300 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22301 (exit $ac_status); }; } &&
22302 { ac_try='test -s conftest.$ac_objext'
22303 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
22304 (eval $ac_try) 2>&5
22306 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22307 (exit $ac_status); }; }; then
22308 bfd_cv_have_sys_procfs_type_prgregset_t=yes
22310 echo "$as_me: failed program was:" >&5
22311 sed 's/^/| /' conftest.$ac_ext >&5
22313 bfd_cv_have_sys_procfs_type_prgregset_t=no
22316 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
22319 if test $bfd_cv_have_sys_procfs_type_prgregset_t = yes; then
22321 cat >>confdefs.h <<\_ACEOF
22322 #define HAVE_PRGREGSET_T 1
22326 echo "$as_me:$LINENO: result: $bfd_cv_have_sys_procfs_type_prgregset_t" >&5
22327 echo "${ECHO_T}$bfd_cv_have_sys_procfs_type_prgregset_t" >&6
22329 echo "$as_me:$LINENO: checking for prfpregset_t in sys/procfs.h" >&5
22330 echo $ECHO_N "checking for prfpregset_t in sys/procfs.h... $ECHO_C" >&6
22331 if test "${bfd_cv_have_sys_procfs_type_prfpregset_t+set}" = set; then
22332 echo $ECHO_N "(cached) $ECHO_C" >&6
22334 cat >conftest.$ac_ext <<_ACEOF
22337 cat confdefs.h >>conftest.$ac_ext
22338 cat >>conftest.$ac_ext <<_ACEOF
22339 /* end confdefs.h. */
22342 #include <sys/procfs.h>
22351 rm -f conftest.$ac_objext
22352 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
22353 (eval $ac_compile) 2>conftest.er1
22355 grep -v '^ *+' conftest.er1 >conftest.err
22357 cat conftest.err >&5
22358 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22359 (exit $ac_status); } &&
22360 { ac_try='test -z "$ac_c_werror_flag"
22361 || test ! -s conftest.err'
22362 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
22363 (eval $ac_try) 2>&5
22365 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22366 (exit $ac_status); }; } &&
22367 { ac_try='test -s conftest.$ac_objext'
22368 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
22369 (eval $ac_try) 2>&5
22371 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22372 (exit $ac_status); }; }; then
22373 bfd_cv_have_sys_procfs_type_prfpregset_t=yes
22375 echo "$as_me: failed program was:" >&5
22376 sed 's/^/| /' conftest.$ac_ext >&5
22378 bfd_cv_have_sys_procfs_type_prfpregset_t=no
22381 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
22384 if test $bfd_cv_have_sys_procfs_type_prfpregset_t = yes; then
22386 cat >>confdefs.h <<\_ACEOF
22387 #define HAVE_PRFPREGSET_T 1
22391 echo "$as_me:$LINENO: result: $bfd_cv_have_sys_procfs_type_prfpregset_t" >&5
22392 echo "${ECHO_T}$bfd_cv_have_sys_procfs_type_prfpregset_t" >&6
22394 echo "$as_me:$LINENO: checking for prgregset32_t in sys/procfs.h" >&5
22395 echo $ECHO_N "checking for prgregset32_t in sys/procfs.h... $ECHO_C" >&6
22396 if test "${bfd_cv_have_sys_procfs_type_prgregset32_t+set}" = set; then
22397 echo $ECHO_N "(cached) $ECHO_C" >&6
22399 cat >conftest.$ac_ext <<_ACEOF
22402 cat confdefs.h >>conftest.$ac_ext
22403 cat >>conftest.$ac_ext <<_ACEOF
22404 /* end confdefs.h. */
22407 #include <sys/procfs.h>
22416 rm -f conftest.$ac_objext
22417 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
22418 (eval $ac_compile) 2>conftest.er1
22420 grep -v '^ *+' conftest.er1 >conftest.err
22422 cat conftest.err >&5
22423 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22424 (exit $ac_status); } &&
22425 { ac_try='test -z "$ac_c_werror_flag"
22426 || test ! -s conftest.err'
22427 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
22428 (eval $ac_try) 2>&5
22430 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22431 (exit $ac_status); }; } &&
22432 { ac_try='test -s conftest.$ac_objext'
22433 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
22434 (eval $ac_try) 2>&5
22436 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22437 (exit $ac_status); }; }; then
22438 bfd_cv_have_sys_procfs_type_prgregset32_t=yes
22440 echo "$as_me: failed program was:" >&5
22441 sed 's/^/| /' conftest.$ac_ext >&5
22443 bfd_cv_have_sys_procfs_type_prgregset32_t=no
22446 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
22449 if test $bfd_cv_have_sys_procfs_type_prgregset32_t = yes; then
22451 cat >>confdefs.h <<\_ACEOF
22452 #define HAVE_PRGREGSET32_T 1
22456 echo "$as_me:$LINENO: result: $bfd_cv_have_sys_procfs_type_prgregset32_t" >&5
22457 echo "${ECHO_T}$bfd_cv_have_sys_procfs_type_prgregset32_t" >&6
22459 echo "$as_me:$LINENO: checking for prfpregset32_t in sys/procfs.h" >&5
22460 echo $ECHO_N "checking for prfpregset32_t in sys/procfs.h... $ECHO_C" >&6
22461 if test "${bfd_cv_have_sys_procfs_type_prfpregset32_t+set}" = set; then
22462 echo $ECHO_N "(cached) $ECHO_C" >&6
22464 cat >conftest.$ac_ext <<_ACEOF
22467 cat confdefs.h >>conftest.$ac_ext
22468 cat >>conftest.$ac_ext <<_ACEOF
22469 /* end confdefs.h. */
22472 #include <sys/procfs.h>
22476 prfpregset32_t avar
22481 rm -f conftest.$ac_objext
22482 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
22483 (eval $ac_compile) 2>conftest.er1
22485 grep -v '^ *+' conftest.er1 >conftest.err
22487 cat conftest.err >&5
22488 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22489 (exit $ac_status); } &&
22490 { ac_try='test -z "$ac_c_werror_flag"
22491 || test ! -s conftest.err'
22492 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
22493 (eval $ac_try) 2>&5
22495 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22496 (exit $ac_status); }; } &&
22497 { ac_try='test -s conftest.$ac_objext'
22498 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
22499 (eval $ac_try) 2>&5
22501 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22502 (exit $ac_status); }; }; then
22503 bfd_cv_have_sys_procfs_type_prfpregset32_t=yes
22505 echo "$as_me: failed program was:" >&5
22506 sed 's/^/| /' conftest.$ac_ext >&5
22508 bfd_cv_have_sys_procfs_type_prfpregset32_t=no
22511 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
22514 if test $bfd_cv_have_sys_procfs_type_prfpregset32_t = yes; then
22516 cat >>confdefs.h <<\_ACEOF
22517 #define HAVE_PRFPREGSET32_T 1
22521 echo "$as_me:$LINENO: result: $bfd_cv_have_sys_procfs_type_prfpregset32_t" >&5
22522 echo "${ECHO_T}$bfd_cv_have_sys_procfs_type_prfpregset32_t" >&6
22524 echo "$as_me:$LINENO: checking for lwpid_t in sys/procfs.h" >&5
22525 echo $ECHO_N "checking for lwpid_t in sys/procfs.h... $ECHO_C" >&6
22526 if test "${bfd_cv_have_sys_procfs_type_lwpid_t+set}" = set; then
22527 echo $ECHO_N "(cached) $ECHO_C" >&6
22529 cat >conftest.$ac_ext <<_ACEOF
22532 cat confdefs.h >>conftest.$ac_ext
22533 cat >>conftest.$ac_ext <<_ACEOF
22534 /* end confdefs.h. */
22537 #include <sys/procfs.h>
22546 rm -f conftest.$ac_objext
22547 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
22548 (eval $ac_compile) 2>conftest.er1
22550 grep -v '^ *+' conftest.er1 >conftest.err
22552 cat conftest.err >&5
22553 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22554 (exit $ac_status); } &&
22555 { ac_try='test -z "$ac_c_werror_flag"
22556 || test ! -s conftest.err'
22557 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
22558 (eval $ac_try) 2>&5
22560 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22561 (exit $ac_status); }; } &&
22562 { ac_try='test -s conftest.$ac_objext'
22563 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
22564 (eval $ac_try) 2>&5
22566 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22567 (exit $ac_status); }; }; then
22568 bfd_cv_have_sys_procfs_type_lwpid_t=yes
22570 echo "$as_me: failed program was:" >&5
22571 sed 's/^/| /' conftest.$ac_ext >&5
22573 bfd_cv_have_sys_procfs_type_lwpid_t=no
22576 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
22579 if test $bfd_cv_have_sys_procfs_type_lwpid_t = yes; then
22581 cat >>confdefs.h <<\_ACEOF
22582 #define HAVE_LWPID_T 1
22586 echo "$as_me:$LINENO: result: $bfd_cv_have_sys_procfs_type_lwpid_t" >&5
22587 echo "${ECHO_T}$bfd_cv_have_sys_procfs_type_lwpid_t" >&6
22589 echo "$as_me:$LINENO: checking for psaddr_t in sys/procfs.h" >&5
22590 echo $ECHO_N "checking for psaddr_t in sys/procfs.h... $ECHO_C" >&6
22591 if test "${bfd_cv_have_sys_procfs_type_psaddr_t+set}" = set; then
22592 echo $ECHO_N "(cached) $ECHO_C" >&6
22594 cat >conftest.$ac_ext <<_ACEOF
22597 cat confdefs.h >>conftest.$ac_ext
22598 cat >>conftest.$ac_ext <<_ACEOF
22599 /* end confdefs.h. */
22602 #include <sys/procfs.h>
22611 rm -f conftest.$ac_objext
22612 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
22613 (eval $ac_compile) 2>conftest.er1
22615 grep -v '^ *+' conftest.er1 >conftest.err
22617 cat conftest.err >&5
22618 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22619 (exit $ac_status); } &&
22620 { ac_try='test -z "$ac_c_werror_flag"
22621 || test ! -s conftest.err'
22622 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
22623 (eval $ac_try) 2>&5
22625 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22626 (exit $ac_status); }; } &&
22627 { ac_try='test -s conftest.$ac_objext'
22628 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
22629 (eval $ac_try) 2>&5
22631 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22632 (exit $ac_status); }; }; then
22633 bfd_cv_have_sys_procfs_type_psaddr_t=yes
22635 echo "$as_me: failed program was:" >&5
22636 sed 's/^/| /' conftest.$ac_ext >&5
22638 bfd_cv_have_sys_procfs_type_psaddr_t=no
22641 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
22644 if test $bfd_cv_have_sys_procfs_type_psaddr_t = yes; then
22646 cat >>confdefs.h <<\_ACEOF
22647 #define HAVE_PSADDR_T 1
22651 echo "$as_me:$LINENO: result: $bfd_cv_have_sys_procfs_type_psaddr_t" >&5
22652 echo "${ECHO_T}$bfd_cv_have_sys_procfs_type_psaddr_t" >&6
22654 echo "$as_me:$LINENO: checking for prsysent_t in sys/procfs.h" >&5
22655 echo $ECHO_N "checking for prsysent_t in sys/procfs.h... $ECHO_C" >&6
22656 if test "${bfd_cv_have_sys_procfs_type_prsysent_t+set}" = set; then
22657 echo $ECHO_N "(cached) $ECHO_C" >&6
22659 cat >conftest.$ac_ext <<_ACEOF
22662 cat confdefs.h >>conftest.$ac_ext
22663 cat >>conftest.$ac_ext <<_ACEOF
22664 /* end confdefs.h. */
22667 #include <sys/procfs.h>
22676 rm -f conftest.$ac_objext
22677 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
22678 (eval $ac_compile) 2>conftest.er1
22680 grep -v '^ *+' conftest.er1 >conftest.err
22682 cat conftest.err >&5
22683 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22684 (exit $ac_status); } &&
22685 { ac_try='test -z "$ac_c_werror_flag"
22686 || test ! -s conftest.err'
22687 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
22688 (eval $ac_try) 2>&5
22690 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22691 (exit $ac_status); }; } &&
22692 { ac_try='test -s conftest.$ac_objext'
22693 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
22694 (eval $ac_try) 2>&5
22696 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22697 (exit $ac_status); }; }; then
22698 bfd_cv_have_sys_procfs_type_prsysent_t=yes
22700 echo "$as_me: failed program was:" >&5
22701 sed 's/^/| /' conftest.$ac_ext >&5
22703 bfd_cv_have_sys_procfs_type_prsysent_t=no
22706 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
22709 if test $bfd_cv_have_sys_procfs_type_prsysent_t = yes; then
22711 cat >>confdefs.h <<\_ACEOF
22712 #define HAVE_PRSYSENT_T 1
22716 echo "$as_me:$LINENO: result: $bfd_cv_have_sys_procfs_type_prsysent_t" >&5
22717 echo "${ECHO_T}$bfd_cv_have_sys_procfs_type_prsysent_t" >&6
22719 echo "$as_me:$LINENO: checking for pr_sigset_t in sys/procfs.h" >&5
22720 echo $ECHO_N "checking for pr_sigset_t in sys/procfs.h... $ECHO_C" >&6
22721 if test "${bfd_cv_have_sys_procfs_type_pr_sigset_t+set}" = set; then
22722 echo $ECHO_N "(cached) $ECHO_C" >&6
22724 cat >conftest.$ac_ext <<_ACEOF
22727 cat confdefs.h >>conftest.$ac_ext
22728 cat >>conftest.$ac_ext <<_ACEOF
22729 /* end confdefs.h. */
22732 #include <sys/procfs.h>
22741 rm -f conftest.$ac_objext
22742 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
22743 (eval $ac_compile) 2>conftest.er1
22745 grep -v '^ *+' conftest.er1 >conftest.err
22747 cat conftest.err >&5
22748 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22749 (exit $ac_status); } &&
22750 { ac_try='test -z "$ac_c_werror_flag"
22751 || test ! -s conftest.err'
22752 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
22753 (eval $ac_try) 2>&5
22755 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22756 (exit $ac_status); }; } &&
22757 { ac_try='test -s conftest.$ac_objext'
22758 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
22759 (eval $ac_try) 2>&5
22761 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22762 (exit $ac_status); }; }; then
22763 bfd_cv_have_sys_procfs_type_pr_sigset_t=yes
22765 echo "$as_me: failed program was:" >&5
22766 sed 's/^/| /' conftest.$ac_ext >&5
22768 bfd_cv_have_sys_procfs_type_pr_sigset_t=no
22771 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
22774 if test $bfd_cv_have_sys_procfs_type_pr_sigset_t = yes; then
22776 cat >>confdefs.h <<\_ACEOF
22777 #define HAVE_PR_SIGSET_T 1
22781 echo "$as_me:$LINENO: result: $bfd_cv_have_sys_procfs_type_pr_sigset_t" >&5
22782 echo "${ECHO_T}$bfd_cv_have_sys_procfs_type_pr_sigset_t" >&6
22784 echo "$as_me:$LINENO: checking for pr_sigaction64_t in sys/procfs.h" >&5
22785 echo $ECHO_N "checking for pr_sigaction64_t in sys/procfs.h... $ECHO_C" >&6
22786 if test "${bfd_cv_have_sys_procfs_type_pr_sigaction64_t+set}" = set; then
22787 echo $ECHO_N "(cached) $ECHO_C" >&6
22789 cat >conftest.$ac_ext <<_ACEOF
22792 cat confdefs.h >>conftest.$ac_ext
22793 cat >>conftest.$ac_ext <<_ACEOF
22794 /* end confdefs.h. */
22797 #include <sys/procfs.h>
22801 pr_sigaction64_t avar
22806 rm -f conftest.$ac_objext
22807 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
22808 (eval $ac_compile) 2>conftest.er1
22810 grep -v '^ *+' conftest.er1 >conftest.err
22812 cat conftest.err >&5
22813 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22814 (exit $ac_status); } &&
22815 { ac_try='test -z "$ac_c_werror_flag"
22816 || test ! -s conftest.err'
22817 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
22818 (eval $ac_try) 2>&5
22820 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22821 (exit $ac_status); }; } &&
22822 { ac_try='test -s conftest.$ac_objext'
22823 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
22824 (eval $ac_try) 2>&5
22826 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22827 (exit $ac_status); }; }; then
22828 bfd_cv_have_sys_procfs_type_pr_sigaction64_t=yes
22830 echo "$as_me: failed program was:" >&5
22831 sed 's/^/| /' conftest.$ac_ext >&5
22833 bfd_cv_have_sys_procfs_type_pr_sigaction64_t=no
22836 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
22839 if test $bfd_cv_have_sys_procfs_type_pr_sigaction64_t = yes; then
22841 cat >>confdefs.h <<\_ACEOF
22842 #define HAVE_PR_SIGACTION64_T 1
22846 echo "$as_me:$LINENO: result: $bfd_cv_have_sys_procfs_type_pr_sigaction64_t" >&5
22847 echo "${ECHO_T}$bfd_cv_have_sys_procfs_type_pr_sigaction64_t" >&6
22849 echo "$as_me:$LINENO: checking for pr_siginfo64_t in sys/procfs.h" >&5
22850 echo $ECHO_N "checking for pr_siginfo64_t in sys/procfs.h... $ECHO_C" >&6
22851 if test "${bfd_cv_have_sys_procfs_type_pr_siginfo64_t+set}" = set; then
22852 echo $ECHO_N "(cached) $ECHO_C" >&6
22854 cat >conftest.$ac_ext <<_ACEOF
22857 cat confdefs.h >>conftest.$ac_ext
22858 cat >>conftest.$ac_ext <<_ACEOF
22859 /* end confdefs.h. */
22862 #include <sys/procfs.h>
22866 pr_siginfo64_t avar
22871 rm -f conftest.$ac_objext
22872 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
22873 (eval $ac_compile) 2>conftest.er1
22875 grep -v '^ *+' conftest.er1 >conftest.err
22877 cat conftest.err >&5
22878 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22879 (exit $ac_status); } &&
22880 { ac_try='test -z "$ac_c_werror_flag"
22881 || test ! -s conftest.err'
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); }; } &&
22887 { ac_try='test -s conftest.$ac_objext'
22888 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
22889 (eval $ac_try) 2>&5
22891 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22892 (exit $ac_status); }; }; then
22893 bfd_cv_have_sys_procfs_type_pr_siginfo64_t=yes
22895 echo "$as_me: failed program was:" >&5
22896 sed 's/^/| /' conftest.$ac_ext >&5
22898 bfd_cv_have_sys_procfs_type_pr_siginfo64_t=no
22901 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
22904 if test $bfd_cv_have_sys_procfs_type_pr_siginfo64_t = yes; then
22906 cat >>confdefs.h <<\_ACEOF
22907 #define HAVE_PR_SIGINFO64_T 1
22911 echo "$as_me:$LINENO: result: $bfd_cv_have_sys_procfs_type_pr_siginfo64_t" >&5
22912 echo "${ECHO_T}$bfd_cv_have_sys_procfs_type_pr_siginfo64_t" >&6
22918 if test $bfd_cv_have_sys_procfs_type_prfpregset_t = yes; then
22919 echo "$as_me:$LINENO: checking whether prfpregset_t type is broken" >&5
22920 echo $ECHO_N "checking whether prfpregset_t type is broken... $ECHO_C" >&6
22921 if test "${gdb_cv_prfpregset_t_broken+set}" = set; then
22922 echo $ECHO_N "(cached) $ECHO_C" >&6
22924 if test "$cross_compiling" = yes; then
22925 gdb_cv_prfpregset_t_broken=yes
22927 cat >conftest.$ac_ext <<_ACEOF
22930 cat confdefs.h >>conftest.$ac_ext
22931 cat >>conftest.$ac_ext <<_ACEOF
22932 /* end confdefs.h. */
22933 #include <sys/procfs.h>
22936 if (sizeof (prfpregset_t) == sizeof (void *))
22941 rm -f conftest$ac_exeext
22942 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
22943 (eval $ac_link) 2>&5
22945 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22946 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
22947 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
22948 (eval $ac_try) 2>&5
22950 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22951 (exit $ac_status); }; }; then
22952 gdb_cv_prfpregset_t_broken=no
22954 echo "$as_me: program exited with status $ac_status" >&5
22955 echo "$as_me: failed program was:" >&5
22956 sed 's/^/| /' conftest.$ac_ext >&5
22958 ( exit $ac_status )
22959 gdb_cv_prfpregset_t_broken=yes
22961 rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
22965 echo "$as_me:$LINENO: result: $gdb_cv_prfpregset_t_broken" >&5
22966 echo "${ECHO_T}$gdb_cv_prfpregset_t_broken" >&6
22967 if test $gdb_cv_prfpregset_t_broken = yes; then
22969 cat >>confdefs.h <<\_ACEOF
22970 #define PRFPREGSET_T_BROKEN 1
22977 echo "$as_me:$LINENO: checking for PIOCSET ioctl entry in sys/procfs.h" >&5
22978 echo $ECHO_N "checking for PIOCSET ioctl entry in sys/procfs.h... $ECHO_C" >&6
22979 if test "${gdb_cv_have_procfs_piocset+set}" = set; then
22980 echo $ECHO_N "(cached) $ECHO_C" >&6
22982 cat >conftest.$ac_ext <<_ACEOF
22985 cat confdefs.h >>conftest.$ac_ext
22986 cat >>conftest.$ac_ext <<_ACEOF
22987 /* end confdefs.h. */
22988 #include <unistd.h>
22989 #include <sys/types.h>
22990 #include <sys/procfs.h>
22997 dummy = ioctl(0, PIOCSET, &dummy);
23003 rm -f conftest.$ac_objext
23004 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
23005 (eval $ac_compile) 2>conftest.er1
23007 grep -v '^ *+' conftest.er1 >conftest.err
23009 cat conftest.err >&5
23010 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23011 (exit $ac_status); } &&
23012 { ac_try='test -z "$ac_c_werror_flag"
23013 || test ! -s conftest.err'
23014 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
23015 (eval $ac_try) 2>&5
23017 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23018 (exit $ac_status); }; } &&
23019 { ac_try='test -s conftest.$ac_objext'
23020 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
23021 (eval $ac_try) 2>&5
23023 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23024 (exit $ac_status); }; }; then
23025 gdb_cv_have_procfs_piocset=yes
23027 echo "$as_me: failed program was:" >&5
23028 sed 's/^/| /' conftest.$ac_ext >&5
23030 gdb_cv_have_procfs_piocset=no
23032 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
23035 echo "$as_me:$LINENO: result: $gdb_cv_have_procfs_piocset" >&5
23036 echo "${ECHO_T}$gdb_cv_have_procfs_piocset" >&6
23037 if test $gdb_cv_have_procfs_piocset = yes; then
23039 cat >>confdefs.h <<\_ACEOF
23040 #define HAVE_PROCFS_PIOCSET 1
23046 if test ${host} = ${target} ; then
23048 echo "$as_me:$LINENO: checking for member l_addr in struct link_map" >&5
23049 echo $ECHO_N "checking for member l_addr in struct link_map... $ECHO_C" >&6
23050 if test "${gdb_cv_have_struct_link_map_with_l_members+set}" = set; then
23051 echo $ECHO_N "(cached) $ECHO_C" >&6
23053 cat >conftest.$ac_ext <<_ACEOF
23056 cat confdefs.h >>conftest.$ac_ext
23057 cat >>conftest.$ac_ext <<_ACEOF
23058 /* end confdefs.h. */
23063 struct link_map lm; (void) lm.l_addr;
23068 rm -f conftest.$ac_objext
23069 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
23070 (eval $ac_compile) 2>conftest.er1
23072 grep -v '^ *+' conftest.er1 >conftest.err
23074 cat conftest.err >&5
23075 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23076 (exit $ac_status); } &&
23077 { ac_try='test -z "$ac_c_werror_flag"
23078 || test ! -s conftest.err'
23079 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
23080 (eval $ac_try) 2>&5
23082 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23083 (exit $ac_status); }; } &&
23084 { ac_try='test -s conftest.$ac_objext'
23085 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
23086 (eval $ac_try) 2>&5
23088 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23089 (exit $ac_status); }; }; then
23090 gdb_cv_have_struct_link_map_with_l_members=yes
23092 echo "$as_me: failed program was:" >&5
23093 sed 's/^/| /' conftest.$ac_ext >&5
23095 gdb_cv_have_struct_link_map_with_l_members=no
23097 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
23100 echo "$as_me:$LINENO: result: $gdb_cv_have_struct_link_map_with_l_members" >&5
23101 echo "${ECHO_T}$gdb_cv_have_struct_link_map_with_l_members" >&6
23102 if test $gdb_cv_have_struct_link_map_with_l_members = yes; then
23104 cat >>confdefs.h <<\_ACEOF
23105 #define HAVE_STRUCT_LINK_MAP_WITH_L_MEMBERS 1
23111 echo "$as_me:$LINENO: checking for member lm_addr in struct link_map" >&5
23112 echo $ECHO_N "checking for member lm_addr in struct link_map... $ECHO_C" >&6
23113 if test "${gdb_cv_have_struct_link_map_with_lm_members+set}" = set; then
23114 echo $ECHO_N "(cached) $ECHO_C" >&6
23116 cat >conftest.$ac_ext <<_ACEOF
23119 cat confdefs.h >>conftest.$ac_ext
23120 cat >>conftest.$ac_ext <<_ACEOF
23121 /* end confdefs.h. */
23122 #include <sys/types.h>
23127 struct link_map lm; (void) lm.lm_addr;
23132 rm -f conftest.$ac_objext
23133 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
23134 (eval $ac_compile) 2>conftest.er1
23136 grep -v '^ *+' conftest.er1 >conftest.err
23138 cat conftest.err >&5
23139 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23140 (exit $ac_status); } &&
23141 { ac_try='test -z "$ac_c_werror_flag"
23142 || test ! -s conftest.err'
23143 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
23144 (eval $ac_try) 2>&5
23146 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23147 (exit $ac_status); }; } &&
23148 { ac_try='test -s conftest.$ac_objext'
23149 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
23150 (eval $ac_try) 2>&5
23152 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23153 (exit $ac_status); }; }; then
23154 gdb_cv_have_struct_link_map_with_lm_members=yes
23156 echo "$as_me: failed program was:" >&5
23157 sed 's/^/| /' conftest.$ac_ext >&5
23159 gdb_cv_have_struct_link_map_with_lm_members=no
23161 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
23164 echo "$as_me:$LINENO: result: $gdb_cv_have_struct_link_map_with_lm_members" >&5
23165 echo "${ECHO_T}$gdb_cv_have_struct_link_map_with_lm_members" >&6
23166 if test $gdb_cv_have_struct_link_map_with_lm_members = yes; then
23168 cat >>confdefs.h <<\_ACEOF
23169 #define HAVE_STRUCT_LINK_MAP_WITH_LM_MEMBERS 1
23175 echo "$as_me:$LINENO: checking for member som_addr in struct so_map" >&5
23176 echo $ECHO_N "checking for member som_addr in struct so_map... $ECHO_C" >&6
23177 if test "${gdb_cv_have_struct_so_map_with_som_members+set}" = set; then
23178 echo $ECHO_N "(cached) $ECHO_C" >&6
23180 cat >conftest.$ac_ext <<_ACEOF
23183 cat confdefs.h >>conftest.$ac_ext
23184 cat >>conftest.$ac_ext <<_ACEOF
23185 /* end confdefs.h. */
23186 #include <sys/types.h>
23187 #ifdef HAVE_NLIST_H
23194 struct so_map lm; (void) lm.som_addr;
23199 rm -f conftest.$ac_objext
23200 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
23201 (eval $ac_compile) 2>conftest.er1
23203 grep -v '^ *+' conftest.er1 >conftest.err
23205 cat conftest.err >&5
23206 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23207 (exit $ac_status); } &&
23208 { ac_try='test -z "$ac_c_werror_flag"
23209 || test ! -s conftest.err'
23210 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
23211 (eval $ac_try) 2>&5
23213 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23214 (exit $ac_status); }; } &&
23215 { ac_try='test -s conftest.$ac_objext'
23216 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
23217 (eval $ac_try) 2>&5
23219 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23220 (exit $ac_status); }; }; then
23221 gdb_cv_have_struct_so_map_with_som_members=yes
23223 echo "$as_me: failed program was:" >&5
23224 sed 's/^/| /' conftest.$ac_ext >&5
23226 gdb_cv_have_struct_so_map_with_som_members=no
23228 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
23231 echo "$as_me:$LINENO: result: $gdb_cv_have_struct_so_map_with_som_members" >&5
23232 echo "${ECHO_T}$gdb_cv_have_struct_so_map_with_som_members" >&6
23233 if test $gdb_cv_have_struct_so_map_with_som_members = yes; then
23235 cat >>confdefs.h <<\_ACEOF
23236 #define HAVE_STRUCT_SO_MAP_WITH_SOM_MEMBERS 1
23242 echo "$as_me:$LINENO: checking for struct link_map32 in sys/link.h" >&5
23243 echo $ECHO_N "checking for struct link_map32 in sys/link.h... $ECHO_C" >&6
23244 if test "${gdb_cv_have_struct_link_map32+set}" = set; then
23245 echo $ECHO_N "(cached) $ECHO_C" >&6
23247 cat >conftest.$ac_ext <<_ACEOF
23250 cat confdefs.h >>conftest.$ac_ext
23251 cat >>conftest.$ac_ext <<_ACEOF
23252 /* end confdefs.h. */
23254 #include <sys/link.h>
23258 struct link_map32 l;
23263 rm -f conftest.$ac_objext
23264 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
23265 (eval $ac_compile) 2>conftest.er1
23267 grep -v '^ *+' conftest.er1 >conftest.err
23269 cat conftest.err >&5
23270 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23271 (exit $ac_status); } &&
23272 { ac_try='test -z "$ac_c_werror_flag"
23273 || test ! -s conftest.err'
23274 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
23275 (eval $ac_try) 2>&5
23277 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23278 (exit $ac_status); }; } &&
23279 { ac_try='test -s conftest.$ac_objext'
23280 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
23281 (eval $ac_try) 2>&5
23283 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23284 (exit $ac_status); }; }; then
23285 gdb_cv_have_struct_link_map32=yes
23287 echo "$as_me: failed program was:" >&5
23288 sed 's/^/| /' conftest.$ac_ext >&5
23290 gdb_cv_have_struct_link_map32=no
23292 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
23295 echo "$as_me:$LINENO: result: $gdb_cv_have_struct_link_map32" >&5
23296 echo "${ECHO_T}$gdb_cv_have_struct_link_map32" >&6
23297 if test $gdb_cv_have_struct_link_map32 = yes; then
23299 cat >>confdefs.h <<\_ACEOF
23300 #define HAVE_STRUCT_LINK_MAP32 1
23304 cat >>confdefs.h <<\_ACEOF
23305 #define _SYSCALL32 1
23311 # Check if the compiler supports the `long long' type.
23313 echo "$as_me:$LINENO: checking for long long support in compiler" >&5
23314 echo $ECHO_N "checking for long long support in compiler... $ECHO_C" >&6
23315 if test "${gdb_cv_c_long_long+set}" = set; then
23316 echo $ECHO_N "(cached) $ECHO_C" >&6
23318 cat >conftest.$ac_ext <<_ACEOF
23321 cat confdefs.h >>conftest.$ac_ext
23322 cat >>conftest.$ac_ext <<_ACEOF
23323 /* end confdefs.h. */
23324 extern long long foo;
23328 switch (foo & 2) { case 0: return 1; }
23333 rm -f conftest.$ac_objext
23334 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
23335 (eval $ac_compile) 2>conftest.er1
23337 grep -v '^ *+' conftest.er1 >conftest.err
23339 cat conftest.err >&5
23340 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23341 (exit $ac_status); } &&
23342 { ac_try='test -z "$ac_c_werror_flag"
23343 || test ! -s conftest.err'
23344 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
23345 (eval $ac_try) 2>&5
23347 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23348 (exit $ac_status); }; } &&
23349 { ac_try='test -s conftest.$ac_objext'
23350 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
23351 (eval $ac_try) 2>&5
23353 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23354 (exit $ac_status); }; }; then
23355 gdb_cv_c_long_long=yes
23357 echo "$as_me: failed program was:" >&5
23358 sed 's/^/| /' conftest.$ac_ext >&5
23360 gdb_cv_c_long_long=no
23362 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
23364 echo "$as_me:$LINENO: result: $gdb_cv_c_long_long" >&5
23365 echo "${ECHO_T}$gdb_cv_c_long_long" >&6
23366 if test $gdb_cv_c_long_long = yes; then
23368 cat >>confdefs.h <<\_ACEOF
23369 #define CC_HAS_LONG_LONG 1
23374 # Check if the compiler and runtime support printing long longs.
23376 echo "$as_me:$LINENO: checking for long long support in printf" >&5
23377 echo $ECHO_N "checking for long long support in printf... $ECHO_C" >&6
23378 if test "${gdb_cv_printf_has_long_long+set}" = set; then
23379 echo $ECHO_N "(cached) $ECHO_C" >&6
23381 if test "$cross_compiling" = yes; then
23382 gdb_cv_printf_has_long_long=no
23384 cat >conftest.$ac_ext <<_ACEOF
23387 cat confdefs.h >>conftest.$ac_ext
23388 cat >>conftest.$ac_ext <<_ACEOF
23389 /* end confdefs.h. */
23390 $ac_includes_default
23396 l = (l << 16) + 0x0123;
23397 l = (l << 16) + 0x4567;
23398 l = (l << 16) + 0x89ab;
23399 l = (l << 16) + 0xcdef;
23400 sprintf (buf, "0x%016llx", l);
23401 return (strcmp ("0x0123456789abcdef", buf));
23406 rm -f conftest$ac_exeext
23407 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
23408 (eval $ac_link) 2>&5
23410 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23411 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
23412 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
23413 (eval $ac_try) 2>&5
23415 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23416 (exit $ac_status); }; }; then
23417 gdb_cv_printf_has_long_long=yes
23419 echo "$as_me: program exited with status $ac_status" >&5
23420 echo "$as_me: failed program was:" >&5
23421 sed 's/^/| /' conftest.$ac_ext >&5
23423 ( exit $ac_status )
23424 gdb_cv_printf_has_long_long=no
23426 rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
23429 echo "$as_me:$LINENO: result: $gdb_cv_printf_has_long_long" >&5
23430 echo "${ECHO_T}$gdb_cv_printf_has_long_long" >&6
23431 if test $gdb_cv_printf_has_long_long = yes; then
23433 cat >>confdefs.h <<\_ACEOF
23434 #define PRINTF_HAS_LONG_LONG 1
23439 # Check if the compiler and runtime support printing decfloats.
23441 echo "$as_me:$LINENO: checking for decfloat support in printf" >&5
23442 echo $ECHO_N "checking for decfloat support in printf... $ECHO_C" >&6
23443 if test "${gdb_cv_printf_has_decfloat+set}" = set; then
23444 echo $ECHO_N "(cached) $ECHO_C" >&6
23446 if test "$cross_compiling" = yes; then
23447 gdb_cv_printf_has_decfloat=no
23449 cat >conftest.$ac_ext <<_ACEOF
23452 cat confdefs.h >>conftest.$ac_ext
23453 cat >>conftest.$ac_ext <<_ACEOF
23454 /* end confdefs.h. */
23455 $ac_includes_default
23460 _Decimal32 d32 = 1.2345df;
23461 _Decimal64 d64 = 1.2345dd;
23462 _Decimal128 d128 = 1.2345dl;
23463 sprintf (buf, "Decimal32: %H\nDecimal64: %D\nDecimal128: %DD", d32, d64, d128);
23464 return (strcmp ("Decimal32: 1.2345\nDecimal64: 1.2345\nDecimal128: 1.2345", buf));
23469 rm -f conftest$ac_exeext
23470 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
23471 (eval $ac_link) 2>&5
23473 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23474 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
23475 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
23476 (eval $ac_try) 2>&5
23478 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23479 (exit $ac_status); }; }; then
23480 gdb_cv_printf_has_decfloat=yes
23482 echo "$as_me: program exited with status $ac_status" >&5
23483 echo "$as_me: failed program was:" >&5
23484 sed 's/^/| /' conftest.$ac_ext >&5
23486 ( exit $ac_status )
23487 gdb_cv_printf_has_decfloat=no
23489 rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
23492 echo "$as_me:$LINENO: result: $gdb_cv_printf_has_decfloat" >&5
23493 echo "${ECHO_T}$gdb_cv_printf_has_decfloat" >&6
23494 if test $gdb_cv_printf_has_decfloat = yes; then
23496 cat >>confdefs.h <<\_ACEOF
23497 #define PRINTF_HAS_DECFLOAT 1
23502 # Check if the compiler supports the `long double' type. We can't use
23503 # AC_C_LONG_DOUBLE because that one does additional checks on the
23504 # constants defined in <float.h> that fail on some systems,
23505 # e.g. FreeBSD/i386 4.7 and OpenBSD/i386 3.6.
23507 echo "$as_me:$LINENO: checking for long double support in compiler" >&5
23508 echo $ECHO_N "checking for long double support in compiler... $ECHO_C" >&6
23509 if test "${gdb_cv_c_long_double+set}" = set; then
23510 echo $ECHO_N "(cached) $ECHO_C" >&6
23512 cat >conftest.$ac_ext <<_ACEOF
23515 cat confdefs.h >>conftest.$ac_ext
23516 cat >>conftest.$ac_ext <<_ACEOF
23517 /* end confdefs.h. */
23520 rm -f conftest.$ac_objext
23521 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
23522 (eval $ac_compile) 2>conftest.er1
23524 grep -v '^ *+' conftest.er1 >conftest.err
23526 cat conftest.err >&5
23527 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23528 (exit $ac_status); } &&
23529 { ac_try='test -z "$ac_c_werror_flag"
23530 || test ! -s conftest.err'
23531 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
23532 (eval $ac_try) 2>&5
23534 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23535 (exit $ac_status); }; } &&
23536 { ac_try='test -s conftest.$ac_objext'
23537 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
23538 (eval $ac_try) 2>&5
23540 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23541 (exit $ac_status); }; }; then
23542 gdb_cv_c_long_double=yes
23544 echo "$as_me: failed program was:" >&5
23545 sed 's/^/| /' conftest.$ac_ext >&5
23547 gdb_cv_c_long_double=no
23549 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
23551 echo "$as_me:$LINENO: result: $gdb_cv_c_long_double" >&5
23552 echo "${ECHO_T}$gdb_cv_c_long_double" >&6
23553 if test $gdb_cv_c_long_double = yes; then
23555 cat >>confdefs.h <<\_ACEOF
23556 #define HAVE_LONG_DOUBLE 1
23561 # Check if the compiler and runtime support printing long doubles.
23563 echo "$as_me:$LINENO: checking for long double support in printf" >&5
23564 echo $ECHO_N "checking for long double support in printf... $ECHO_C" >&6
23565 if test "${gdb_cv_printf_has_long_double+set}" = set; then
23566 echo $ECHO_N "(cached) $ECHO_C" >&6
23568 if test "$cross_compiling" = yes; then
23569 gdb_cv_printf_has_long_double=no
23571 cat >conftest.$ac_ext <<_ACEOF
23574 cat confdefs.h >>conftest.$ac_ext
23575 cat >>conftest.$ac_ext <<_ACEOF
23576 /* end confdefs.h. */
23577 $ac_includes_default
23582 long double f = 3.141592653;
23583 sprintf (buf, "%Lg", f);
23584 return (strncmp ("3.14159", buf, 7));
23589 rm -f conftest$ac_exeext
23590 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
23591 (eval $ac_link) 2>&5
23593 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23594 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
23595 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
23596 (eval $ac_try) 2>&5
23598 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23599 (exit $ac_status); }; }; then
23600 gdb_cv_printf_has_long_double=yes
23602 echo "$as_me: program exited with status $ac_status" >&5
23603 echo "$as_me: failed program was:" >&5
23604 sed 's/^/| /' conftest.$ac_ext >&5
23606 ( exit $ac_status )
23607 gdb_cv_printf_has_long_double=no
23609 rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
23612 echo "$as_me:$LINENO: result: $gdb_cv_printf_has_long_double" >&5
23613 echo "${ECHO_T}$gdb_cv_printf_has_long_double" >&6
23614 if test $gdb_cv_printf_has_long_double = yes; then
23616 cat >>confdefs.h <<\_ACEOF
23617 #define PRINTF_HAS_LONG_DOUBLE 1
23622 # Check if the compiler and runtime support scanning long doubles.
23624 echo "$as_me:$LINENO: checking for long double support in scanf" >&5
23625 echo $ECHO_N "checking for long double support in scanf... $ECHO_C" >&6
23626 if test "${gdb_cv_scanf_has_long_double+set}" = set; then
23627 echo $ECHO_N "(cached) $ECHO_C" >&6
23629 if test "$cross_compiling" = yes; then
23630 gdb_cv_scanf_has_long_double=no
23632 cat >conftest.$ac_ext <<_ACEOF
23635 cat confdefs.h >>conftest.$ac_ext
23636 cat >>conftest.$ac_ext <<_ACEOF
23637 /* end confdefs.h. */
23642 char *buf = "3.141592653";
23644 sscanf (buf, "%Lg", &f);
23645 return !(f > 3.14159 && f < 3.14160);
23650 rm -f conftest$ac_exeext
23651 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
23652 (eval $ac_link) 2>&5
23654 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23655 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
23656 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
23657 (eval $ac_try) 2>&5
23659 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23660 (exit $ac_status); }; }; then
23661 gdb_cv_scanf_has_long_double=yes
23663 echo "$as_me: program exited with status $ac_status" >&5
23664 echo "$as_me: failed program was:" >&5
23665 sed 's/^/| /' conftest.$ac_ext >&5
23667 ( exit $ac_status )
23668 gdb_cv_scanf_has_long_double=no
23670 rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
23673 echo "$as_me:$LINENO: result: $gdb_cv_scanf_has_long_double" >&5
23674 echo "${ECHO_T}$gdb_cv_scanf_has_long_double" >&6
23675 if test $gdb_cv_scanf_has_long_double = yes; then
23677 cat >>confdefs.h <<\_ACEOF
23678 #define SCANF_HAS_LONG_DOUBLE 1
23685 echo "$as_me:$LINENO: checking for -bbigtoc option" >&5
23686 echo $ECHO_N "checking for -bbigtoc option... $ECHO_C" >&6
23687 if test "${gdb_cv_bigtoc+set}" = set; then
23688 echo $ECHO_N "(cached) $ECHO_C" >&6
23691 SAVE_LDFLAGS=$LDFLAGS
23694 yes) gdb_cv_bigtoc=-Wl,-bbigtoc ;;
23695 *) gdb_cv_bigtoc=-bbigtoc ;;
23698 LDFLAGS=$LDFLAGS\ $gdb_cv_bigtoc
23699 cat >conftest.$ac_ext <<_ACEOF
23702 cat confdefs.h >>conftest.$ac_ext
23703 cat >>conftest.$ac_ext <<_ACEOF
23704 /* end confdefs.h. */
23714 rm -f conftest.$ac_objext conftest$ac_exeext
23715 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
23716 (eval $ac_link) 2>conftest.er1
23718 grep -v '^ *+' conftest.er1 >conftest.err
23720 cat conftest.err >&5
23721 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23722 (exit $ac_status); } &&
23723 { ac_try='test -z "$ac_c_werror_flag"
23724 || test ! -s conftest.err'
23725 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
23726 (eval $ac_try) 2>&5
23728 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23729 (exit $ac_status); }; } &&
23730 { ac_try='test -s conftest$ac_exeext'
23731 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
23732 (eval $ac_try) 2>&5
23734 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23735 (exit $ac_status); }; }; then
23738 echo "$as_me: failed program was:" >&5
23739 sed 's/^/| /' conftest.$ac_ext >&5
23743 rm -f conftest.err conftest.$ac_objext \
23744 conftest$ac_exeext conftest.$ac_ext
23745 LDFLAGS="${SAVE_LDFLAGS}"
23748 echo "$as_me:$LINENO: result: $gdb_cv_bigtoc" >&5
23749 echo "${ECHO_T}$gdb_cv_bigtoc" >&6
23750 CONFIG_LDFLAGS="${CONFIG_LDFLAGS} ${gdb_cv_bigtoc}"
23756 if test ${build} = ${host} -a ${host} = ${target} ; then
23759 echo "$as_me:$LINENO: checking for HPUX/OSF thread support" >&5
23760 echo $ECHO_N "checking for HPUX/OSF thread support... $ECHO_C" >&6
23761 if test -f /usr/include/dce/cma_config.h ; then
23762 if test "$GCC" = "yes" ; then
23763 echo "$as_me:$LINENO: result: yes" >&5
23764 echo "${ECHO_T}yes" >&6
23766 cat >>confdefs.h <<\_ACEOF
23767 #define HAVE_HPUX_THREAD_SUPPORT 1
23770 CONFIG_OBS="${CONFIG_OBS} hpux-thread.o"
23771 CONFIG_SRCS="${CONFIG_SRCS} hpux-thread.c"
23773 echo "$as_me:$LINENO: result: no (suppressed because you are not using GCC)" >&5
23774 echo "${ECHO_T}no (suppressed because you are not using GCC)" >&6
23777 echo "$as_me:$LINENO: result: no" >&5
23778 echo "${ECHO_T}no" >&6
23782 # See if thread_db library is around for Solaris thread debugging.
23783 # Note that we must explicitly test for version 1 of the library
23784 # because version 0 (present on Solaris 2.4 or earlier) doesn't have
23786 echo "$as_me:$LINENO: checking for Solaris thread debugging library" >&5
23787 echo $ECHO_N "checking for Solaris thread debugging library... $ECHO_C" >&6
23788 if test -f /usr/lib/libthread_db.so.1 ; then
23789 echo "$as_me:$LINENO: result: yes" >&5
23790 echo "${ECHO_T}yes" >&6
23792 cat >>confdefs.h <<\_ACEOF
23793 #define HAVE_THREAD_DB_LIB 1
23796 CONFIG_OBS="${CONFIG_OBS} sol-thread.o"
23797 CONFIG_SRCS="${CONFIG_SRCS} sol-thread.c"
23799 echo "$as_me:$LINENO: checking for dlopen in -ldl" >&5
23800 echo $ECHO_N "checking for dlopen in -ldl... $ECHO_C" >&6
23801 if test "${ac_cv_lib_dl_dlopen+set}" = set; then
23802 echo $ECHO_N "(cached) $ECHO_C" >&6
23804 ac_check_lib_save_LIBS=$LIBS
23806 cat >conftest.$ac_ext <<_ACEOF
23809 cat confdefs.h >>conftest.$ac_ext
23810 cat >>conftest.$ac_ext <<_ACEOF
23811 /* end confdefs.h. */
23813 /* Override any gcc2 internal prototype to avoid an error. */
23817 /* We use char because int might match the return type of a gcc2
23818 builtin and then its argument prototype would still apply. */
23828 rm -f conftest.$ac_objext conftest$ac_exeext
23829 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
23830 (eval $ac_link) 2>conftest.er1
23832 grep -v '^ *+' conftest.er1 >conftest.err
23834 cat conftest.err >&5
23835 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23836 (exit $ac_status); } &&
23837 { ac_try='test -z "$ac_c_werror_flag"
23838 || test ! -s conftest.err'
23839 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
23840 (eval $ac_try) 2>&5
23842 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23843 (exit $ac_status); }; } &&
23844 { ac_try='test -s conftest$ac_exeext'
23845 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
23846 (eval $ac_try) 2>&5
23848 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23849 (exit $ac_status); }; }; then
23850 ac_cv_lib_dl_dlopen=yes
23852 echo "$as_me: failed program was:" >&5
23853 sed 's/^/| /' conftest.$ac_ext >&5
23855 ac_cv_lib_dl_dlopen=no
23857 rm -f conftest.err conftest.$ac_objext \
23858 conftest$ac_exeext conftest.$ac_ext
23859 LIBS=$ac_check_lib_save_LIBS
23861 echo "$as_me:$LINENO: result: $ac_cv_lib_dl_dlopen" >&5
23862 echo "${ECHO_T}$ac_cv_lib_dl_dlopen" >&6
23863 if test $ac_cv_lib_dl_dlopen = yes; then
23864 cat >>confdefs.h <<_ACEOF
23865 #define HAVE_LIBDL 1
23872 if test "$GCC" = "yes" ; then
23873 # The GNU linker requires the -export-dynamic option to make
23874 # all symbols visible in the dynamic symbol table.
23875 hold_ldflags=$LDFLAGS
23876 echo "$as_me:$LINENO: checking for the ld -export-dynamic flag" >&5
23877 echo $ECHO_N "checking for the ld -export-dynamic flag... $ECHO_C" >&6
23878 LDFLAGS="${LDFLAGS} -Wl,-export-dynamic"
23879 cat >conftest.$ac_ext <<_ACEOF
23882 cat confdefs.h >>conftest.$ac_ext
23883 cat >>conftest.$ac_ext <<_ACEOF
23884 /* end confdefs.h. */
23894 rm -f conftest.$ac_objext conftest$ac_exeext
23895 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
23896 (eval $ac_link) 2>conftest.er1
23898 grep -v '^ *+' conftest.er1 >conftest.err
23900 cat conftest.err >&5
23901 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23902 (exit $ac_status); } &&
23903 { ac_try='test -z "$ac_c_werror_flag"
23904 || test ! -s conftest.err'
23905 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
23906 (eval $ac_try) 2>&5
23908 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23909 (exit $ac_status); }; } &&
23910 { ac_try='test -s conftest$ac_exeext'
23911 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
23912 (eval $ac_try) 2>&5
23914 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23915 (exit $ac_status); }; }; then
23918 echo "$as_me: failed program was:" >&5
23919 sed 's/^/| /' conftest.$ac_ext >&5
23923 rm -f conftest.err conftest.$ac_objext \
23924 conftest$ac_exeext conftest.$ac_ext
23925 LDFLAGS=$hold_ldflags
23926 echo "$as_me:$LINENO: result: $found" >&5
23927 echo "${ECHO_T}$found" >&6
23928 if test $found = yes; then
23929 CONFIG_LDFLAGS="${CONFIG_LDFLAGS} -Wl,-export-dynamic"
23932 # Sun randomly tweaked the prototypes in <proc_service.h>
23934 echo "$as_me:$LINENO: checking if <proc_service.h> is old" >&5
23935 echo $ECHO_N "checking if <proc_service.h> is old... $ECHO_C" >&6
23936 if test "${gdb_cv_proc_service_is_old+set}" = set; then
23937 echo $ECHO_N "(cached) $ECHO_C" >&6
23940 cat >conftest.$ac_ext <<_ACEOF
23943 cat confdefs.h >>conftest.$ac_ext
23944 cat >>conftest.$ac_ext <<_ACEOF
23945 /* end confdefs.h. */
23947 #include <proc_service.h>
23948 ps_err_e ps_pdwrite
23949 (struct ps_prochandle*, psaddr_t, const void*, size_t);
23959 rm -f conftest.$ac_objext
23960 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
23961 (eval $ac_compile) 2>conftest.er1
23963 grep -v '^ *+' conftest.er1 >conftest.err
23965 cat conftest.err >&5
23966 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23967 (exit $ac_status); } &&
23968 { ac_try='test -z "$ac_c_werror_flag"
23969 || test ! -s conftest.err'
23970 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
23971 (eval $ac_try) 2>&5
23973 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23974 (exit $ac_status); }; } &&
23975 { ac_try='test -s conftest.$ac_objext'
23976 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
23977 (eval $ac_try) 2>&5
23979 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23980 (exit $ac_status); }; }; then
23981 gdb_cv_proc_service_is_old=no
23983 echo "$as_me: failed program was:" >&5
23984 sed 's/^/| /' conftest.$ac_ext >&5
23986 gdb_cv_proc_service_is_old=yes
23988 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
23992 echo "$as_me:$LINENO: result: $gdb_cv_proc_service_is_old" >&5
23993 echo "${ECHO_T}$gdb_cv_proc_service_is_old" >&6
23994 if test $gdb_cv_proc_service_is_old = yes; then
23996 cat >>confdefs.h <<\_ACEOF
23997 #define PROC_SERVICE_IS_OLD 1
24002 echo "$as_me:$LINENO: result: no" >&5
24003 echo "${ECHO_T}no" >&6
24007 echo "$as_me:$LINENO: checking for AiX thread debugging library" >&5
24008 echo $ECHO_N "checking for AiX thread debugging library... $ECHO_C" >&6
24009 if test "${gdb_cv_have_aix_thread_debug+set}" = set; then
24010 echo $ECHO_N "(cached) $ECHO_C" >&6
24012 cat >conftest.$ac_ext <<_ACEOF
24015 cat confdefs.h >>conftest.$ac_ext
24016 cat >>conftest.$ac_ext <<_ACEOF
24017 /* end confdefs.h. */
24018 #include <sys/pthdebug.h>
24022 #ifndef PTHDB_VERSION_3
24029 rm -f conftest.$ac_objext
24030 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
24031 (eval $ac_compile) 2>conftest.er1
24033 grep -v '^ *+' conftest.er1 >conftest.err
24035 cat conftest.err >&5
24036 echo "$as_me:$LINENO: \$? = $ac_status" >&5
24037 (exit $ac_status); } &&
24038 { ac_try='test -z "$ac_c_werror_flag"
24039 || test ! -s conftest.err'
24040 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
24041 (eval $ac_try) 2>&5
24043 echo "$as_me:$LINENO: \$? = $ac_status" >&5
24044 (exit $ac_status); }; } &&
24045 { ac_try='test -s conftest.$ac_objext'
24046 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
24047 (eval $ac_try) 2>&5
24049 echo "$as_me:$LINENO: \$? = $ac_status" >&5
24050 (exit $ac_status); }; }; then
24051 gdb_cv_have_aix_thread_debug=yes
24053 echo "$as_me: failed program was:" >&5
24054 sed 's/^/| /' conftest.$ac_ext >&5
24056 gdb_cv_have_aix_thread_debug=no
24058 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
24061 echo "$as_me:$LINENO: result: $gdb_cv_have_aix_thread_debug" >&5
24062 echo "${ECHO_T}$gdb_cv_have_aix_thread_debug" >&6
24063 if test $gdb_cv_have_aix_thread_debug = yes; then
24064 CONFIG_SRCS="${CONFIG_SRCS} aix-thread.c"
24065 CONFIG_OBS="${CONFIG_OBS} aix-thread.o"
24066 CONFIG_LDFLAGS="${CONFIG_LDFLAGS} -lpthdebug"
24073 if test "x$ac_cv_header_thread_db_h" = "xyes"; then
24074 echo "$as_me:$LINENO: checking whether <thread_db.h> has TD_NOTALLOC" >&5
24075 echo $ECHO_N "checking whether <thread_db.h> has TD_NOTALLOC... $ECHO_C" >&6
24076 if test "${gdb_cv_thread_db_h_has_td_notalloc+set}" = set; then
24077 echo $ECHO_N "(cached) $ECHO_C" >&6
24079 cat >conftest.$ac_ext <<_ACEOF
24082 cat confdefs.h >>conftest.$ac_ext
24083 cat >>conftest.$ac_ext <<_ACEOF
24084 /* end confdefs.h. */
24085 #include <thread_db.h>
24089 int i = TD_NOTALLOC;
24094 rm -f conftest.$ac_objext
24095 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
24096 (eval $ac_compile) 2>conftest.er1
24098 grep -v '^ *+' conftest.er1 >conftest.err
24100 cat conftest.err >&5
24101 echo "$as_me:$LINENO: \$? = $ac_status" >&5
24102 (exit $ac_status); } &&
24103 { ac_try='test -z "$ac_c_werror_flag"
24104 || test ! -s conftest.err'
24105 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
24106 (eval $ac_try) 2>&5
24108 echo "$as_me:$LINENO: \$? = $ac_status" >&5
24109 (exit $ac_status); }; } &&
24110 { ac_try='test -s conftest.$ac_objext'
24111 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
24112 (eval $ac_try) 2>&5
24114 echo "$as_me:$LINENO: \$? = $ac_status" >&5
24115 (exit $ac_status); }; }; then
24116 gdb_cv_thread_db_h_has_td_notalloc=yes
24118 echo "$as_me: failed program was:" >&5
24119 sed 's/^/| /' conftest.$ac_ext >&5
24121 gdb_cv_thread_db_h_has_td_notalloc=no
24124 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
24127 echo "$as_me:$LINENO: result: $gdb_cv_thread_db_h_has_td_notalloc" >&5
24128 echo "${ECHO_T}$gdb_cv_thread_db_h_has_td_notalloc" >&6
24129 echo "$as_me:$LINENO: checking whether <thread_db.h> has TD_VERSION" >&5
24130 echo $ECHO_N "checking whether <thread_db.h> has TD_VERSION... $ECHO_C" >&6
24131 if test "${gdb_cv_thread_db_h_has_td_version+set}" = set; then
24132 echo $ECHO_N "(cached) $ECHO_C" >&6
24134 cat >conftest.$ac_ext <<_ACEOF
24137 cat confdefs.h >>conftest.$ac_ext
24138 cat >>conftest.$ac_ext <<_ACEOF
24139 /* end confdefs.h. */
24140 #include <thread_db.h>
24144 int i = TD_VERSION;
24149 rm -f conftest.$ac_objext
24150 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
24151 (eval $ac_compile) 2>conftest.er1
24153 grep -v '^ *+' conftest.er1 >conftest.err
24155 cat conftest.err >&5
24156 echo "$as_me:$LINENO: \$? = $ac_status" >&5
24157 (exit $ac_status); } &&
24158 { ac_try='test -z "$ac_c_werror_flag"
24159 || test ! -s conftest.err'
24160 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
24161 (eval $ac_try) 2>&5
24163 echo "$as_me:$LINENO: \$? = $ac_status" >&5
24164 (exit $ac_status); }; } &&
24165 { ac_try='test -s conftest.$ac_objext'
24166 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
24167 (eval $ac_try) 2>&5
24169 echo "$as_me:$LINENO: \$? = $ac_status" >&5
24170 (exit $ac_status); }; }; then
24171 gdb_cv_thread_db_h_has_td_version=yes
24173 echo "$as_me: failed program was:" >&5
24174 sed 's/^/| /' conftest.$ac_ext >&5
24176 gdb_cv_thread_db_h_has_td_version=no
24179 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
24182 echo "$as_me:$LINENO: result: $gdb_cv_thread_db_h_has_td_version" >&5
24183 echo "${ECHO_T}$gdb_cv_thread_db_h_has_td_version" >&6
24184 echo "$as_me:$LINENO: checking whether <thread_db.h> has TD_NOTLS" >&5
24185 echo $ECHO_N "checking whether <thread_db.h> has TD_NOTLS... $ECHO_C" >&6
24186 if test "${gdb_cv_thread_db_h_has_td_notls+set}" = set; then
24187 echo $ECHO_N "(cached) $ECHO_C" >&6
24189 cat >conftest.$ac_ext <<_ACEOF
24192 cat confdefs.h >>conftest.$ac_ext
24193 cat >>conftest.$ac_ext <<_ACEOF
24194 /* end confdefs.h. */
24195 #include <thread_db.h>
24204 rm -f conftest.$ac_objext
24205 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
24206 (eval $ac_compile) 2>conftest.er1
24208 grep -v '^ *+' conftest.er1 >conftest.err
24210 cat conftest.err >&5
24211 echo "$as_me:$LINENO: \$? = $ac_status" >&5
24212 (exit $ac_status); } &&
24213 { ac_try='test -z "$ac_c_werror_flag"
24214 || test ! -s conftest.err'
24215 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
24216 (eval $ac_try) 2>&5
24218 echo "$as_me:$LINENO: \$? = $ac_status" >&5
24219 (exit $ac_status); }; } &&
24220 { ac_try='test -s conftest.$ac_objext'
24221 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
24222 (eval $ac_try) 2>&5
24224 echo "$as_me:$LINENO: \$? = $ac_status" >&5
24225 (exit $ac_status); }; }; then
24226 gdb_cv_thread_db_h_has_td_notls=yes
24228 echo "$as_me: failed program was:" >&5
24229 sed 's/^/| /' conftest.$ac_ext >&5
24231 gdb_cv_thread_db_h_has_td_notls=no
24234 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
24237 echo "$as_me:$LINENO: result: $gdb_cv_thread_db_h_has_td_notls" >&5
24238 echo "${ECHO_T}$gdb_cv_thread_db_h_has_td_notls" >&6
24240 if test "x$gdb_cv_thread_db_h_has_td_notalloc" = "xyes"; then
24242 cat >>confdefs.h <<\_ACEOF
24243 #define THREAD_DB_HAS_TD_NOTALLOC 1
24247 if test "x$gdb_cv_thread_db_h_has_td_version" = "xyes"; then
24249 cat >>confdefs.h <<\_ACEOF
24250 #define THREAD_DB_HAS_TD_VERSION 1
24254 if test "x$gdb_cv_thread_db_h_has_td_notls" = "xyes"; then
24256 cat >>confdefs.h <<\_ACEOF
24257 #define THREAD_DB_HAS_TD_NOTLS 1
24262 if test "x$ac_cv_header_sys_syscall_h" = "xyes"; then
24263 echo "$as_me:$LINENO: checking whether <sys/syscall.h> has __NR_tkill" >&5
24264 echo $ECHO_N "checking whether <sys/syscall.h> has __NR_tkill... $ECHO_C" >&6
24265 if test "${gdb_cv_sys_syscall_h_has_tkill+set}" = set; then
24266 echo $ECHO_N "(cached) $ECHO_C" >&6
24268 cat >conftest.$ac_ext <<_ACEOF
24271 cat confdefs.h >>conftest.$ac_ext
24272 cat >>conftest.$ac_ext <<_ACEOF
24273 /* end confdefs.h. */
24274 #include <sys/syscall.h>
24278 int i = __NR_tkill;
24283 rm -f conftest.$ac_objext
24284 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
24285 (eval $ac_compile) 2>conftest.er1
24287 grep -v '^ *+' conftest.er1 >conftest.err
24289 cat conftest.err >&5
24290 echo "$as_me:$LINENO: \$? = $ac_status" >&5
24291 (exit $ac_status); } &&
24292 { ac_try='test -z "$ac_c_werror_flag"
24293 || test ! -s conftest.err'
24294 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
24295 (eval $ac_try) 2>&5
24297 echo "$as_me:$LINENO: \$? = $ac_status" >&5
24298 (exit $ac_status); }; } &&
24299 { ac_try='test -s conftest.$ac_objext'
24300 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
24301 (eval $ac_try) 2>&5
24303 echo "$as_me:$LINENO: \$? = $ac_status" >&5
24304 (exit $ac_status); }; }; then
24305 gdb_cv_sys_syscall_h_has_tkill=yes
24307 echo "$as_me: failed program was:" >&5
24308 sed 's/^/| /' conftest.$ac_ext >&5
24310 gdb_cv_sys_syscall_h_has_tkill=no
24313 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
24316 echo "$as_me:$LINENO: result: $gdb_cv_sys_syscall_h_has_tkill" >&5
24317 echo "${ECHO_T}$gdb_cv_sys_syscall_h_has_tkill" >&6
24319 if test "x$gdb_cv_sys_syscall_h_has_tkill" = "xyes" && test "x$ac_cv_func_syscall" = "xyes"; then
24321 cat >>confdefs.h <<\_ACEOF
24322 #define HAVE_TKILL_SYSCALL 1
24327 echo "$as_me:$LINENO: checking whether ADDR_NO_RANDOMIZE is declared" >&5
24328 echo $ECHO_N "checking whether ADDR_NO_RANDOMIZE is declared... $ECHO_C" >&6
24329 if test "${ac_cv_have_decl_ADDR_NO_RANDOMIZE+set}" = set; then
24330 echo $ECHO_N "(cached) $ECHO_C" >&6
24332 cat >conftest.$ac_ext <<_ACEOF
24335 cat confdefs.h >>conftest.$ac_ext
24336 cat >>conftest.$ac_ext <<_ACEOF
24337 /* end confdefs.h. */
24338 #include <sys/personality.h>
24343 #ifndef ADDR_NO_RANDOMIZE
24344 char *p = (char *) ADDR_NO_RANDOMIZE;
24351 rm -f conftest.$ac_objext
24352 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
24353 (eval $ac_compile) 2>conftest.er1
24355 grep -v '^ *+' conftest.er1 >conftest.err
24357 cat conftest.err >&5
24358 echo "$as_me:$LINENO: \$? = $ac_status" >&5
24359 (exit $ac_status); } &&
24360 { ac_try='test -z "$ac_c_werror_flag"
24361 || test ! -s conftest.err'
24362 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
24363 (eval $ac_try) 2>&5
24365 echo "$as_me:$LINENO: \$? = $ac_status" >&5
24366 (exit $ac_status); }; } &&
24367 { ac_try='test -s conftest.$ac_objext'
24368 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
24369 (eval $ac_try) 2>&5
24371 echo "$as_me:$LINENO: \$? = $ac_status" >&5
24372 (exit $ac_status); }; }; then
24373 ac_cv_have_decl_ADDR_NO_RANDOMIZE=yes
24375 echo "$as_me: failed program was:" >&5
24376 sed 's/^/| /' conftest.$ac_ext >&5
24378 ac_cv_have_decl_ADDR_NO_RANDOMIZE=no
24380 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
24382 echo "$as_me:$LINENO: result: $ac_cv_have_decl_ADDR_NO_RANDOMIZE" >&5
24383 echo "${ECHO_T}$ac_cv_have_decl_ADDR_NO_RANDOMIZE" >&6
24384 if test $ac_cv_have_decl_ADDR_NO_RANDOMIZE = yes; then
24386 cat >>confdefs.h <<_ACEOF
24387 #define HAVE_DECL_ADDR_NO_RANDOMIZE 1
24392 cat >>confdefs.h <<_ACEOF
24393 #define HAVE_DECL_ADDR_NO_RANDOMIZE 0
24401 if test "$cross_compiling" = yes; then
24402 cat >conftest.$ac_ext <<_ACEOF
24405 cat confdefs.h >>conftest.$ac_ext
24406 cat >>conftest.$ac_ext <<_ACEOF
24407 /* end confdefs.h. */
24408 #include <sys/personality.h>
24413 # if !HAVE_DECL_ADDR_NO_RANDOMIZE
24414 # define ADDR_NO_RANDOMIZE 0x0040000
24416 /* Test the flag could be set and stays set. */
24417 personality (personality (0xffffffff) | ADDR_NO_RANDOMIZE);
24418 if (!(personality (personality (0xffffffff)) & ADDR_NO_RANDOMIZE))
24424 rm -f conftest.$ac_objext conftest$ac_exeext
24425 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
24426 (eval $ac_link) 2>conftest.er1
24428 grep -v '^ *+' conftest.er1 >conftest.err
24430 cat conftest.err >&5
24431 echo "$as_me:$LINENO: \$? = $ac_status" >&5
24432 (exit $ac_status); } &&
24433 { ac_try='test -z "$ac_c_werror_flag"
24434 || test ! -s conftest.err'
24435 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
24436 (eval $ac_try) 2>&5
24438 echo "$as_me:$LINENO: \$? = $ac_status" >&5
24439 (exit $ac_status); }; } &&
24440 { ac_try='test -s conftest$ac_exeext'
24441 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
24442 (eval $ac_try) 2>&5
24444 echo "$as_me:$LINENO: \$? = $ac_status" >&5
24445 (exit $ac_status); }; }; then
24446 have_personality=true
24448 echo "$as_me: failed program was:" >&5
24449 sed 's/^/| /' conftest.$ac_ext >&5
24451 have_personality=false
24453 rm -f conftest.err conftest.$ac_objext \
24454 conftest$ac_exeext conftest.$ac_ext
24456 cat >conftest.$ac_ext <<_ACEOF
24459 cat confdefs.h >>conftest.$ac_ext
24460 cat >>conftest.$ac_ext <<_ACEOF
24461 /* end confdefs.h. */
24462 #include <sys/personality.h>
24467 # if !HAVE_DECL_ADDR_NO_RANDOMIZE
24468 # define ADDR_NO_RANDOMIZE 0x0040000
24470 /* Test the flag could be set and stays set. */
24471 personality (personality (0xffffffff) | ADDR_NO_RANDOMIZE);
24472 if (!(personality (personality (0xffffffff)) & ADDR_NO_RANDOMIZE))
24478 rm -f conftest$ac_exeext
24479 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
24480 (eval $ac_link) 2>&5
24482 echo "$as_me:$LINENO: \$? = $ac_status" >&5
24483 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
24484 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
24485 (eval $ac_try) 2>&5
24487 echo "$as_me:$LINENO: \$? = $ac_status" >&5
24488 (exit $ac_status); }; }; then
24489 have_personality=true
24491 echo "$as_me: program exited with status $ac_status" >&5
24492 echo "$as_me: failed program was:" >&5
24493 sed 's/^/| /' conftest.$ac_ext >&5
24495 ( exit $ac_status )
24496 have_personality=false
24498 rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
24500 if $have_personality
24503 cat >>confdefs.h <<\_ACEOF
24504 #define HAVE_PERSONALITY 1
24511 # Check whether --with-sysroot or --without-sysroot was given.
24512 if test "${with_sysroot+set}" = set; then
24513 withval="$with_sysroot"
24515 case ${with_sysroot} in
24516 yes) TARGET_SYSTEM_ROOT='${exec_prefix}/${target_alias}/sys-root' ;;
24517 *) TARGET_SYSTEM_ROOT=$with_sysroot ;;
24520 TARGET_SYSTEM_ROOT_DEFINE='-DTARGET_SYSTEM_ROOT=\"$(TARGET_SYSTEM_ROOT)\"'
24522 if test "x$prefix" = xNONE; then
24523 test_prefix=/usr/local
24525 test_prefix=$prefix
24527 if test "x$exec_prefix" = xNONE || test "x$exec_prefix" = 'x${prefix}'; then
24528 test_exec_prefix=$test_prefix
24530 test_exec_prefix=$exec_prefix
24532 case ${TARGET_SYSTEM_ROOT} in
24533 "${test_prefix}"|"${test_prefix}/"*|\
24534 "${test_exec_prefix}"|"${test_exec_prefix}/"*|\
24535 '${prefix}'|'${prefix}/'*|\
24536 '${exec_prefix}'|'${exec_prefix}/'*)
24537 t="$TARGET_SYSTEM_ROOT_DEFINE -DTARGET_SYSTEM_ROOT_RELOCATABLE"
24538 TARGET_SYSTEM_ROOT_DEFINE="$t"
24544 TARGET_SYSTEM_ROOT=
24545 TARGET_SYSTEM_ROOT_DEFINE='-DTARGET_SYSTEM_ROOT=\"\"'
24551 # Check whether --enable-werror or --disable-werror was given.
24552 if test "${enable_werror+set}" = set; then
24553 enableval="$enable_werror"
24554 case "${enableval}" in
24555 yes | y) ERROR_ON_WARNING="yes" ;;
24556 no | n) ERROR_ON_WARNING="no" ;;
24557 *) { { echo "$as_me:$LINENO: error: bad value ${enableval} for --enable-werror" >&5
24558 echo "$as_me: error: bad value ${enableval} for --enable-werror" >&2;}
24559 { (exit 1); exit 1; }; } ;;
24563 # Enable -Werror by default when using gcc
24564 if test "${GCC}" = yes -a -z "${ERROR_ON_WARNING}" ; then
24565 ERROR_ON_WARNING=yes
24569 if test "${ERROR_ON_WARNING}" = yes ; then
24570 WERROR_CFLAGS="-Werror"
24573 # The entries after -Wno-pointer-sign are disabled warnings which may
24574 # be enabled in the future, which can not currently be used to build
24576 # NOTE: If you change this list, remember to update
24577 # gdb/doc/gdbint.texinfo.
24578 build_warnings="-Wall -Wdeclaration-after-statement -Wpointer-arith \
24579 -Wformat-nonliteral -Wno-pointer-sign \
24580 -Wno-unused -Wno-switch -Wno-char-subscripts"
24582 # Enable -Wno-format by default when using gcc on mingw since many
24583 # GCC versions complain about %I64.
24585 *-*-mingw32*) build_warnings="$build_warnings -Wno-format" ;;
24588 # Check whether --enable-build-warnings or --disable-build-warnings was given.
24589 if test "${enable_build_warnings+set}" = set; then
24590 enableval="$enable_build_warnings"
24591 case "${enableval}" in
24593 no) build_warnings="-w";;
24594 ,*) t=`echo "${enableval}" | sed -e "s/,/ /g"`
24595 build_warnings="${build_warnings} ${t}";;
24596 *,) t=`echo "${enableval}" | sed -e "s/,/ /g"`
24597 build_warnings="${t} ${build_warnings}";;
24598 *) build_warnings=`echo "${enableval}" | sed -e "s/,/ /g"`;;
24600 if test x"$silent" != x"yes" && test x"$build_warnings" != x""; then
24601 echo "Setting compiler warning flags = $build_warnings" 6>&1
24603 fi; # Check whether --enable-gdb-build-warnings or --disable-gdb-build-warnings was given.
24604 if test "${enable_gdb_build_warnings+set}" = set; then
24605 enableval="$enable_gdb_build_warnings"
24606 case "${enableval}" in
24608 no) build_warnings="-w";;
24609 ,*) t=`echo "${enableval}" | sed -e "s/,/ /g"`
24610 build_warnings="${build_warnings} ${t}";;
24611 *,) t=`echo "${enableval}" | sed -e "s/,/ /g"`
24612 build_warnings="${t} ${build_warnings}";;
24613 *) build_warnings=`echo "${enableval}" | sed -e "s/,/ /g"`;;
24615 if test x"$silent" != x"yes" && test x"$build_warnings" != x""; then
24616 echo "Setting GDB specific compiler warning flags = $build_warnings" 6>&1
24619 if test "x${build_warnings}" != x -a "x$GCC" = xyes
24621 echo "$as_me:$LINENO: checking compiler warning flags" >&5
24622 echo $ECHO_N "checking compiler warning flags... $ECHO_C" >&6
24623 # Separate out the -Werror flag as some files just cannot be
24624 # compiled with it enabled.
24625 for w in ${build_warnings}; do
24627 -Werr*) WERROR_CFLAGS=-Werror ;;
24628 *) # Check that GCC accepts it
24629 saved_CFLAGS="$CFLAGS"
24630 CFLAGS="$CFLAGS $w"
24631 cat >conftest.$ac_ext <<_ACEOF
24634 cat confdefs.h >>conftest.$ac_ext
24635 cat >>conftest.$ac_ext <<_ACEOF
24636 /* end confdefs.h. */
24646 rm -f conftest.$ac_objext
24647 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
24648 (eval $ac_compile) 2>conftest.er1
24650 grep -v '^ *+' conftest.er1 >conftest.err
24652 cat conftest.err >&5
24653 echo "$as_me:$LINENO: \$? = $ac_status" >&5
24654 (exit $ac_status); } &&
24655 { ac_try='test -z "$ac_c_werror_flag"
24656 || test ! -s conftest.err'
24657 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
24658 (eval $ac_try) 2>&5
24660 echo "$as_me:$LINENO: \$? = $ac_status" >&5
24661 (exit $ac_status); }; } &&
24662 { ac_try='test -s conftest.$ac_objext'
24663 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
24664 (eval $ac_try) 2>&5
24666 echo "$as_me:$LINENO: \$? = $ac_status" >&5
24667 (exit $ac_status); }; }; then
24668 WARN_CFLAGS="${WARN_CFLAGS} $w"
24670 echo "$as_me: failed program was:" >&5
24671 sed 's/^/| /' conftest.$ac_ext >&5
24674 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
24675 CFLAGS="$saved_CFLAGS"
24678 echo "$as_me:$LINENO: result: ${WARN_CFLAGS} ${WERROR_CFLAGS}" >&5
24679 echo "${ECHO_T}${WARN_CFLAGS} ${WERROR_CFLAGS}" >&6
24684 # In the Cygwin environment, we need some additional flags.
24685 echo "$as_me:$LINENO: checking for cygwin" >&5
24686 echo $ECHO_N "checking for cygwin... $ECHO_C" >&6
24687 if test "${gdb_cv_os_cygwin+set}" = set; then
24688 echo $ECHO_N "(cached) $ECHO_C" >&6
24690 cat >conftest.$ac_ext <<_ACEOF
24693 cat confdefs.h >>conftest.$ac_ext
24694 cat >>conftest.$ac_ext <<_ACEOF
24695 /* end confdefs.h. */
24697 #if defined (__CYGWIN__) || defined (__CYGWIN32__)
24701 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
24702 $EGREP "lose" >/dev/null 2>&1; then
24703 gdb_cv_os_cygwin=yes
24705 gdb_cv_os_cygwin=no
24710 echo "$as_me:$LINENO: result: $gdb_cv_os_cygwin" >&5
24711 echo "${ECHO_T}$gdb_cv_os_cygwin" >&6
24714 SER_HARDWIRE="ser-base.o ser-unix.o ser-pipe.o ser-tcp.o"
24716 *go32* ) SER_HARDWIRE=ser-go32.o ;;
24717 *djgpp* ) SER_HARDWIRE=ser-go32.o ;;
24718 *mingw32*) SER_HARDWIRE="ser-base.o ser-tcp.o ser-mingw.o" ;;
24722 # libreadline needs libuser32.a in a cygwin environment
24724 if test x$gdb_cv_os_cygwin = xyes; then
24725 WIN32LIBS="-luser32"
24726 case "${target}" in
24727 *cygwin*) WIN32LIBS="$WIN32LIBS -limagehlp"
24732 # The ser-tcp.c module requires sockets.
24736 cat >>confdefs.h <<\_ACEOF
24737 #define USE_WIN32API 1
24740 WIN32LIBS="$WIN32LIBS -lws2_32"
24745 # Add ELF support to GDB, but only if BFD includes ELF support.
24747 OLD_LDFLAGS=$LDFLAGS
24749 CFLAGS="$CFLAGS -I${srcdir}/../include -I../bfd -I${srcdir}/../bfd"
24750 LDFLAGS="$LDFLAGS -L../bfd -L../libiberty"
24751 intl=`echo $LIBINTL | sed 's,${top_builddir}/,,g'`
24752 LIBS="-lbfd -liberty $intl $LIBS"
24753 echo "$as_me:$LINENO: checking for ELF support in BFD" >&5
24754 echo $ECHO_N "checking for ELF support in BFD... $ECHO_C" >&6
24755 if test "${gdb_cv_var_elf+set}" = set; then
24756 echo $ECHO_N "(cached) $ECHO_C" >&6
24758 cat >conftest.$ac_ext <<_ACEOF
24761 cat confdefs.h >>conftest.$ac_ext
24762 cat >>conftest.$ac_ext <<_ACEOF
24763 /* end confdefs.h. */
24764 #include <stdlib.h>
24766 #include "elf-bfd.h"
24771 bfd *abfd = NULL; bfd_get_elf_phdr_upper_bound (abfd);
24776 rm -f conftest.$ac_objext conftest$ac_exeext
24777 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
24778 (eval $ac_link) 2>conftest.er1
24780 grep -v '^ *+' conftest.er1 >conftest.err
24782 cat conftest.err >&5
24783 echo "$as_me:$LINENO: \$? = $ac_status" >&5
24784 (exit $ac_status); } &&
24785 { ac_try='test -z "$ac_c_werror_flag"
24786 || test ! -s conftest.err'
24787 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
24788 (eval $ac_try) 2>&5
24790 echo "$as_me:$LINENO: \$? = $ac_status" >&5
24791 (exit $ac_status); }; } &&
24792 { ac_try='test -s conftest$ac_exeext'
24793 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
24794 (eval $ac_try) 2>&5
24796 echo "$as_me:$LINENO: \$? = $ac_status" >&5
24797 (exit $ac_status); }; }; then
24800 echo "$as_me: failed program was:" >&5
24801 sed 's/^/| /' conftest.$ac_ext >&5
24805 rm -f conftest.err conftest.$ac_objext \
24806 conftest$ac_exeext conftest.$ac_ext
24808 echo "$as_me:$LINENO: result: $gdb_cv_var_elf" >&5
24809 echo "${ECHO_T}$gdb_cv_var_elf" >&6
24810 if test $gdb_cv_var_elf = yes; then
24811 CONFIG_OBS="$CONFIG_OBS elfread.o"
24813 cat >>confdefs.h <<\_ACEOF
24819 LDFLAGS=$OLD_LDFLAGS
24822 # Add any host-specific objects to GDB.
24823 CONFIG_OBS="${CONFIG_OBS} ${gdb_host_obs}"
24825 LIBGUI="../libgui/src/libgui.a"
24826 GUI_CFLAGS_X="-I${srcdir}/../libgui/src"
24835 *-*-cygwin* | *-*-mingw* )
24844 if test "${enable_gdbtk}" = "yes"; then
24846 # Gdbtk must have an absolute path to srcdir in order to run
24847 # properly when not installed.
24850 GDBTK_SRC_DIR=`pwd`
24855 # Ok, lets find the tcl configuration
24856 # First, look for one uninstalled.
24857 # the alternative search directory is invoked by --with-tcl
24860 if test x"${no_tcl}" = x ; then
24861 # we reset no_tcl in case something fails here
24864 # Check whether --with-tcl or --without-tcl was given.
24865 if test "${with_tcl+set}" = set; then
24866 withval="$with_tcl"
24867 with_tclconfig=${withval}
24869 echo "$as_me:$LINENO: checking for Tcl configuration" >&5
24870 echo $ECHO_N "checking for Tcl configuration... $ECHO_C" >&6
24871 if test "${ac_cv_c_tclconfig+set}" = set; then
24872 echo $ECHO_N "(cached) $ECHO_C" >&6
24876 # First check to see if --with-tcl was specified.
24878 *-*-cygwin*) platDir="win" ;;
24879 *) platDir="unix" ;;
24881 if test x"${with_tclconfig}" != x ; then
24882 if test -f "${with_tclconfig}/tclConfig.sh" ; then
24883 ac_cv_c_tclconfig=`(cd ${with_tclconfig}; pwd)`
24885 { { echo "$as_me:$LINENO: error: ${with_tclconfig} directory doesn't contain tclConfig.sh" >&5
24886 echo "$as_me: error: ${with_tclconfig} directory doesn't contain tclConfig.sh" >&2;}
24887 { (exit 1); exit 1; }; }
24891 # then check for a private Tcl installation
24892 if test x"${ac_cv_c_tclconfig}" = x ; then
24895 `ls -dr ../tcl[8-9].[0-9].[0-9]* 2>/dev/null` \
24896 `ls -dr ../tcl[8-9].[0-9] 2>/dev/null` \
24897 `ls -dr ../tcl[8-9].[0-9]* 2>/dev/null` \
24899 `ls -dr ../../tcl[8-9].[0-9].[0-9]* 2>/dev/null` \
24900 `ls -dr ../../tcl[8-9].[0-9] 2>/dev/null` \
24901 `ls -dr ../../tcl[8-9].[0-9]* 2>/dev/null` \
24903 `ls -dr ../../../tcl[8-9].[0-9].[0-9]* 2>/dev/null` \
24904 `ls -dr ../../../tcl[8-9].[0-9] 2>/dev/null` \
24905 `ls -dr ../../../tcl[8-9].[0-9]* 2>/dev/null` ; do
24906 if test -f "$i/$platDir/tclConfig.sh" ; then
24907 ac_cv_c_tclconfig=`(cd $i/$platDir; pwd)`
24913 # on Darwin, check in Framework installation locations
24914 if test "`uname -s`" = "Darwin" -a x"${ac_cv_c_tclconfig}" = x ; then
24915 for i in `ls -d ~/Library/Frameworks 2>/dev/null` \
24916 `ls -d /Library/Frameworks 2>/dev/null` \
24917 `ls -d /Network/Library/Frameworks 2>/dev/null` \
24918 `ls -d /System/Library/Frameworks 2>/dev/null` \
24920 if test -f "$i/Tcl.framework/tclConfig.sh" ; then
24921 ac_cv_c_tclconfig=`(cd $i/Tcl.framework; pwd)`
24927 # check in a few common install locations
24928 if test x"${ac_cv_c_tclconfig}" = x ; then
24929 for i in `ls -d ${libdir} 2>/dev/null` \
24930 `ls -d ${exec_prefix}/lib 2>/dev/null` \
24931 `ls -d ${prefix}/lib 2>/dev/null` \
24932 `ls -d /usr/local/lib 2>/dev/null` \
24933 `ls -d /usr/contrib/lib 2>/dev/null` \
24934 `ls -d /usr/lib 2>/dev/null` \
24936 if test -f "$i/tclConfig.sh" ; then
24937 ac_cv_c_tclconfig=`(cd $i; pwd)`
24943 # check in a few other private locations
24944 if test x"${ac_cv_c_tclconfig}" = x ; then
24947 `ls -dr ${srcdir}/../tcl[8-9].[0-9].[0-9]* 2>/dev/null` \
24948 `ls -dr ${srcdir}/../tcl[8-9].[0-9] 2>/dev/null` \
24949 `ls -dr ${srcdir}/../tcl[8-9].[0-9]* 2>/dev/null` ; do
24950 if test -f "$i/$platDir/tclConfig.sh" ; then
24951 ac_cv_c_tclconfig=`(cd $i/$platDir; pwd)`
24960 if test x"${ac_cv_c_tclconfig}" = x ; then
24961 TCL_BIN_DIR="# no Tcl configs found"
24962 { echo "$as_me:$LINENO: WARNING: Can't find Tcl configuration definitions" >&5
24963 echo "$as_me: WARNING: Can't find Tcl configuration definitions" >&2;}
24967 TCL_BIN_DIR=${ac_cv_c_tclconfig}
24968 echo "$as_me:$LINENO: result: found ${TCL_BIN_DIR}/tclConfig.sh" >&5
24969 echo "${ECHO_T}found ${TCL_BIN_DIR}/tclConfig.sh" >&6
24973 if test -z "${no_tcl}"; then
24975 echo "$as_me:$LINENO: checking for existence of ${TCL_BIN_DIR}/tclConfig.sh" >&5
24976 echo $ECHO_N "checking for existence of ${TCL_BIN_DIR}/tclConfig.sh... $ECHO_C" >&6
24978 if test -f "${TCL_BIN_DIR}/tclConfig.sh" ; then
24979 echo "$as_me:$LINENO: result: loading" >&5
24980 echo "${ECHO_T}loading" >&6
24981 . ${TCL_BIN_DIR}/tclConfig.sh
24983 echo "$as_me:$LINENO: result: could not find ${TCL_BIN_DIR}/tclConfig.sh" >&5
24984 echo "${ECHO_T}could not find ${TCL_BIN_DIR}/tclConfig.sh" >&6
24987 # eval is required to do the TCL_DBGX substitution
24988 eval "TCL_LIB_FILE=\"${TCL_LIB_FILE}\""
24989 eval "TCL_STUB_LIB_FILE=\"${TCL_STUB_LIB_FILE}\""
24991 # If the TCL_BIN_DIR is the build directory (not the install directory),
24992 # then set the common variable name to the value of the build variables.
24993 # For example, the variable TCL_LIB_SPEC will be set to the value
24994 # of TCL_BUILD_LIB_SPEC. An extension should make use of TCL_LIB_SPEC
24995 # instead of TCL_BUILD_LIB_SPEC since it will work with both an
24996 # installed and uninstalled version of Tcl.
24997 if test -f ${TCL_BIN_DIR}/Makefile ; then
24998 TCL_LIB_SPEC=${TCL_BUILD_LIB_SPEC}
24999 TCL_STUB_LIB_SPEC=${TCL_BUILD_STUB_LIB_SPEC}
25000 TCL_STUB_LIB_PATH=${TCL_BUILD_STUB_LIB_PATH}
25001 elif test "`uname -s`" = "Darwin"; then
25002 # If Tcl was built as a framework, attempt to use the libraries
25003 # from the framework at the given location so that linking works
25004 # against Tcl.framework installed in an arbitary location.
25005 case ${TCL_DEFS} in
25007 if test -f ${TCL_BIN_DIR}/${TCL_LIB_FILE}; then
25008 for i in "`cd ${TCL_BIN_DIR}; pwd`" \
25009 "`cd ${TCL_BIN_DIR}/../..; pwd`"; do
25010 if test "`basename "$i"`" = "${TCL_LIB_FILE}.framework"; then
25011 TCL_LIB_SPEC="-F`dirname "$i"` -framework ${TCL_LIB_FILE}"
25016 if test -f ${TCL_BIN_DIR}/${TCL_STUB_LIB_FILE}; then
25017 TCL_STUB_LIB_SPEC="-L${TCL_BIN_DIR} ${TCL_STUB_LIB_FLAG}"
25018 TCL_STUB_LIB_PATH="${TCL_BIN_DIR}/${TCL_STUB_LIB_FILE}"
25024 # eval is required to do the TCL_DBGX substitution
25025 eval "TCL_LIB_FLAG=\"${TCL_LIB_FLAG}\""
25026 eval "TCL_LIB_SPEC=\"${TCL_LIB_SPEC}\""
25027 eval "TCL_STUB_LIB_FLAG=\"${TCL_STUB_LIB_FLAG}\""
25028 eval "TCL_STUB_LIB_SPEC=\"${TCL_STUB_LIB_SPEC}\""
25044 # Check for in-tree tcl
25051 if test "${TCL_SRC_DIR}" = "${topdir}/tcl"; then
25055 # Find Tcl private headers
25056 if test x"${intree}" = xno; then
25058 echo "$as_me:$LINENO: checking for Tcl private headers" >&5
25059 echo $ECHO_N "checking for Tcl private headers... $ECHO_C" >&6
25061 dir=`echo ${TCL_INCLUDE_SPEC}/tcl-private/generic | sed -e s/-I//`
25062 if test -f ${dir}/tclInt.h ; then
25066 if test x"${private_dir}" = x; then
25067 { { echo "$as_me:$LINENO: error: could not find private Tcl headers" >&5
25068 echo "$as_me: error: could not find private Tcl headers" >&2;}
25069 { (exit 1); exit 1; }; }
25071 TCL_PRIVATE_INCLUDE="-I${private_dir}"
25072 echo "$as_me:$LINENO: result: ${private_dir}" >&5
25073 echo "${ECHO_T}${private_dir}" >&6
25076 TCL_INCLUDE="${TCL_INCLUDE_SPEC} ${TCL_PRIVATE_INCLUDE}"
25077 TCL_LIBRARY="${TCL_LIB_SPEC}"
25080 # If building tcl in the same src tree, private headers
25081 # are not needed, but we need to be sure to use the right
25083 TCL_INCLUDE="-I${TCL_SRC_DIR}/generic"
25084 TCL_LIBRARY="${TCL_BUILD_LIB_SPEC}"
25085 TCL_DEPS="../tcl/${configdir}${TCL_LIB_FILE}"
25091 # If $no_tk is nonempty, then we can't do Tk, and there is no
25092 # point to doing Tcl.
25093 if test -z "${no_tk}"; then
25096 # Ok, lets find the tk configuration
25097 # First, look for one uninstalled.
25098 # the alternative search directory is invoked by --with-tk
25101 if test x"${no_tk}" = x ; then
25102 # we reset no_tk in case something fails here
25105 # Check whether --with-tk or --without-tk was given.
25106 if test "${with_tk+set}" = set; then
25108 with_tkconfig=${withval}
25110 echo "$as_me:$LINENO: checking for Tk configuration" >&5
25111 echo $ECHO_N "checking for Tk configuration... $ECHO_C" >&6
25112 if test "${ac_cv_c_tkconfig+set}" = set; then
25113 echo $ECHO_N "(cached) $ECHO_C" >&6
25117 # First check to see if --with-tkconfig was specified.
25118 if test x"${with_tkconfig}" != x ; then
25119 if test -f "${with_tkconfig}/tkConfig.sh" ; then
25120 ac_cv_c_tkconfig=`(cd ${with_tkconfig}; pwd)`
25122 { { echo "$as_me:$LINENO: error: ${with_tkconfig} directory doesn't contain tkConfig.sh" >&5
25123 echo "$as_me: error: ${with_tkconfig} directory doesn't contain tkConfig.sh" >&2;}
25124 { (exit 1); exit 1; }; }
25128 # then check for a private Tk library
25130 *-*-cygwin*) platDir="win" ;;
25131 *) platDir="unix" ;;
25133 if test x"${ac_cv_c_tkconfig}" = x ; then
25136 `ls -dr ../tk[8-9].[0-9].[0-9]* 2>/dev/null` \
25137 `ls -dr ../tk[8-9].[0-9] 2>/dev/null` \
25138 `ls -dr ../tk[8-9].[0-9]* 2>/dev/null` \
25140 `ls -dr ../../tk[8-9].[0-9].[0-9]* 2>/dev/null` \
25141 `ls -dr ../../tk[8-9].[0-9] 2>/dev/null` \
25142 `ls -dr ../../tk[8-9].[0-9]* 2>/dev/null` \
25144 `ls -dr ../../../tk[8-9].[0-9].[0-9]* 2>/dev/null` \
25145 `ls -dr ../../../tk[8-9].[0-9] 2>/dev/null` \
25146 `ls -dr ../../../tk[8-9].[0-9]* 2>/dev/null` ; do
25147 if test -f "$i/$platDir/tkConfig.sh" ; then
25148 ac_cv_c_tkconfig=`(cd $i/$platDir; pwd)`
25154 # on Darwin, check in Framework installation locations
25155 if test "`uname -s`" = "Darwin" -a x"${ac_cv_c_tkconfig}" = x ; then
25156 for i in `ls -d ~/Library/Frameworks 2>/dev/null` \
25157 `ls -d /Library/Frameworks 2>/dev/null` \
25158 `ls -d /Network/Library/Frameworks 2>/dev/null` \
25159 `ls -d /System/Library/Frameworks 2>/dev/null` \
25161 if test -f "$i/Tk.framework/tkConfig.sh" ; then
25162 ac_cv_c_tkconfig=`(cd $i/Tk.framework; pwd)`
25168 # check in a few common install locations
25169 if test x"${ac_cv_c_tkconfig}" = x ; then
25170 for i in `ls -d ${libdir} 2>/dev/null` \
25171 `ls -d ${exec_prefix}/lib 2>/dev/null` \
25172 `ls -d ${prefix}/lib 2>/dev/null` \
25173 `ls -d /usr/local/lib 2>/dev/null` \
25174 `ls -d /usr/contrib/lib 2>/dev/null` \
25175 `ls -d /usr/lib 2>/dev/null` \
25177 if test -f "$i/tkConfig.sh" ; then
25178 ac_cv_c_tkconfig=`(cd $i; pwd)`
25183 # check in a few other private locations
25184 if test x"${ac_cv_c_tkconfig}" = x ; then
25187 `ls -dr ${srcdir}/../tk[8-9].[0-9].[0-9]* 2>/dev/null` \
25188 `ls -dr ${srcdir}/../tk[8-9].[0-9] 2>/dev/null` \
25189 `ls -dr ${srcdir}/../tk[8-9].[0-9]* 2>/dev/null` ; do
25190 if test -f "$i/$platDir/tkConfig.sh" ; then
25191 ac_cv_c_tkconfig=`(cd $i/$platDir; pwd)`
25200 if test x"${ac_cv_c_tkconfig}" = x ; then
25201 TK_BIN_DIR="# no Tk configs found"
25202 { echo "$as_me:$LINENO: WARNING: Can't find Tk configuration definitions" >&5
25203 echo "$as_me: WARNING: Can't find Tk configuration definitions" >&2;}
25207 TK_BIN_DIR=${ac_cv_c_tkconfig}
25208 echo "$as_me:$LINENO: result: found ${TK_BIN_DIR}/tkConfig.sh" >&5
25209 echo "${ECHO_T}found ${TK_BIN_DIR}/tkConfig.sh" >&6
25214 echo "$as_me:$LINENO: checking for existence of ${TK_BIN_DIR}/tkConfig.sh" >&5
25215 echo $ECHO_N "checking for existence of ${TK_BIN_DIR}/tkConfig.sh... $ECHO_C" >&6
25217 if test -f "${TK_BIN_DIR}/tkConfig.sh" ; then
25218 echo "$as_me:$LINENO: result: loading" >&5
25219 echo "${ECHO_T}loading" >&6
25220 . ${TK_BIN_DIR}/tkConfig.sh
25222 echo "$as_me:$LINENO: result: could not find ${TK_BIN_DIR}/tkConfig.sh" >&5
25223 echo "${ECHO_T}could not find ${TK_BIN_DIR}/tkConfig.sh" >&6
25226 # eval is required to do the TK_DBGX substitution
25227 eval "TK_LIB_FILE=\"${TK_LIB_FILE}\""
25228 eval "TK_STUB_LIB_FILE=\"${TK_STUB_LIB_FILE}\""
25230 # If the TK_BIN_DIR is the build directory (not the install directory),
25231 # then set the common variable name to the value of the build variables.
25232 # For example, the variable TK_LIB_SPEC will be set to the value
25233 # of TK_BUILD_LIB_SPEC. An extension should make use of TK_LIB_SPEC
25234 # instead of TK_BUILD_LIB_SPEC since it will work with both an
25235 # installed and uninstalled version of Tcl.
25236 if test -f ${TK_BIN_DIR}/Makefile ; then
25237 TK_LIB_SPEC=${TK_BUILD_LIB_SPEC}
25238 TK_STUB_LIB_SPEC=${TK_BUILD_STUB_LIB_SPEC}
25239 TK_STUB_LIB_PATH=${TK_BUILD_STUB_LIB_PATH}
25240 elif test "`uname -s`" = "Darwin"; then
25241 # If Tk was built as a framework, attempt to use the libraries
25242 # from the framework at the given location so that linking works
25243 # against Tk.framework installed in an arbitary location.
25246 if test -f ${TK_BIN_DIR}/${TK_LIB_FILE}; then
25247 for i in "`cd ${TK_BIN_DIR}; pwd`" \
25248 "`cd ${TK_BIN_DIR}/../..; pwd`"; do
25249 if test "`basename "$i"`" = "${TK_LIB_FILE}.framework"; then
25250 TK_LIB_SPEC="-F`dirname "$i"` -framework ${TK_LIB_FILE}"
25255 if test -f ${TK_BIN_DIR}/${TK_STUB_LIB_FILE}; then
25256 TK_STUB_LIB_SPEC="-L${TK_BIN_DIR} ${TK_STUB_LIB_FLAG}"
25257 TK_STUB_LIB_PATH="${TK_BIN_DIR}/${TK_STUB_LIB_FILE}"
25263 # eval is required to do the TK_DBGX substitution
25264 eval "TK_LIB_FLAG=\"${TK_LIB_FLAG}\""
25265 eval "TK_LIB_SPEC=\"${TK_LIB_SPEC}\""
25266 eval "TK_STUB_LIB_FLAG=\"${TK_STUB_LIB_FLAG}\""
25267 eval "TK_STUB_LIB_SPEC=\"${TK_STUB_LIB_SPEC}\""
25282 # Check for in-tree Tk
25284 if test "${TK_SRC_DIR}" = "${topdir}/tk"; then
25288 # Find Tk private headers
25289 if test x"${intree}" = xno; then
25291 echo "$as_me:$LINENO: checking for Tk private headers" >&5
25292 echo $ECHO_N "checking for Tk private headers... $ECHO_C" >&6
25294 dir=`echo ${TK_INCLUDE_SPEC}/tk-private/generic | sed -e s/-I//`
25295 if test -f ${dir}/tkInt.h; then
25299 if test x"${private_dir}" = x; then
25300 { { echo "$as_me:$LINENO: error: could not find Tk private headers" >&5
25301 echo "$as_me: error: could not find Tk private headers" >&2;}
25302 { (exit 1); exit 1; }; }
25304 TK_PRIVATE_INCLUDE="-I${private_dir}"
25305 echo "$as_me:$LINENO: result: ${private_dir}" >&5
25306 echo "${ECHO_T}${private_dir}" >&6
25309 TK_INCLUDE="${TK_INCLUDE_SPEC} ${TK_PRIVATE_INCLUDE}"
25310 TK_LIBRARY=${TK_LIB_SPEC}
25313 TK_INCLUDE="-I${TK_SRC_DIR}/generic"
25314 TK_LIBRARY="${TK_BUILD_LIB_SPEC}"
25315 TK_DEPS="../tk/${configdir}/${TK_LIB_FILE}"
25322 ENABLE_CFLAGS="${ENABLE_CFLAGS} \$(SUBDIR_GDBTK_CFLAGS)"
25324 # Include some libraries that Tcl and Tk want.
25325 TCL_LIBS='$(LIBGUI) $(TK) $(TCL) $(X11_LDFLAGS) $(X11_LIBS)'
25326 # Yes, the ordering seems wrong here. But it isn't.
25327 # TK_LIBS is the list of libraries that need to be linked
25328 # after Tcl/Tk. Note that this isn't put into LIBS. If it
25329 # were in LIBS then any link tests after this point would
25330 # try to include things like `$(LIBGUI)', which wouldn't work.
25331 GDBTKLIBS="${TCL_LIBS} ${TK_LIBS}"
25333 CONFIG_OBS="${CONFIG_OBS} \$(SUBDIR_GDBTK_OBS)"
25334 CONFIG_DEPS="${CONFIG_DEPS} \$(SUBDIR_GDBTK_DEPS)"
25335 CONFIG_SRCS="${CONFIG_SRCS} \$(SUBDIR_GDBTK_SRCS)"
25336 CONFIG_ALL="${CONFIG_ALL} all-gdbtk"
25337 CONFIG_CLEAN="${CONFIG_CLEAN} clean-gdbtk"
25338 CONFIG_INSTALL="${CONFIG_INSTALL} install-gdbtk"
25339 CONFIG_UNINSTALL="${CONFIG_UNINSTALL} uninstall-gdbtk"
25341 if test x$gdb_cv_os_cygwin = xyes; then
25342 WIN32LIBS="${WIN32LIBS} -lshell32 -lgdi32 -lcomdlg32 -ladvapi32"
25343 WIN32LDAPP="-Wl,--subsystem,console"
25344 CONFIG_OBS="${CONFIG_OBS} gdbres.o"
25351 subdirs="$subdirs gdbtk"
25362 echo "$as_me:$LINENO: checking for X" >&5
25363 echo $ECHO_N "checking for X... $ECHO_C" >&6
25366 # Check whether --with-x or --without-x was given.
25367 if test "${with_x+set}" = set; then
25371 # $have_x is `yes', `no', `disabled', or empty when we do not yet know.
25372 if test "x$with_x" = xno; then
25373 # The user explicitly disabled X.
25376 if test "x$x_includes" != xNONE && test "x$x_libraries" != xNONE; then
25377 # Both variables are already set.
25380 if test "${ac_cv_have_x+set}" = set; then
25381 echo $ECHO_N "(cached) $ECHO_C" >&6
25383 # One or both of the vars are not set, and there is no cached value.
25384 ac_x_includes=no ac_x_libraries=no
25385 rm -fr conftest.dir
25386 if mkdir conftest.dir; then
25388 # Make sure to not put "make" in the Imakefile rules, since we grep it out.
25389 cat >Imakefile <<'_ACEOF'
25391 @echo 'ac_im_incroot="${INCROOT}"; ac_im_usrlibdir="${USRLIBDIR}"; ac_im_libdir="${LIBDIR}"'
25393 if (xmkmf) >/dev/null 2>/dev/null && test -f Makefile; then
25394 # GNU make sometimes prints "make[1]: Entering...", which would confuse us.
25395 eval `${MAKE-make} acfindx 2>/dev/null | grep -v make`
25396 # Open Windows xmkmf reportedly sets LIBDIR instead of USRLIBDIR.
25397 for ac_extension in a so sl; do
25398 if test ! -f $ac_im_usrlibdir/libX11.$ac_extension &&
25399 test -f $ac_im_libdir/libX11.$ac_extension; then
25400 ac_im_usrlibdir=$ac_im_libdir; break
25403 # Screen out bogus values from the imake configuration. They are
25404 # bogus both because they are the default anyway, and because
25405 # using them would break gcc on systems where it needs fixed includes.
25406 case $ac_im_incroot in
25408 *) test -f "$ac_im_incroot/X11/Xos.h" && ac_x_includes=$ac_im_incroot;;
25410 case $ac_im_usrlibdir in
25411 /usr/lib | /lib) ;;
25412 *) test -d "$ac_im_usrlibdir" && ac_x_libraries=$ac_im_usrlibdir ;;
25416 rm -fr conftest.dir
25419 # Standard set of common directories for X headers.
25420 # Check X11 before X11Rn because it is often a symlink to the current release.
25432 /usr/local/X11/include
25433 /usr/local/X11R6/include
25434 /usr/local/X11R5/include
25435 /usr/local/X11R4/include
25437 /usr/local/include/X11
25438 /usr/local/include/X11R6
25439 /usr/local/include/X11R5
25440 /usr/local/include/X11R4
25444 /usr/XFree86/include/X11
25448 /usr/unsupported/include
25449 /usr/athena/include
25450 /usr/local/x11r5/include
25451 /usr/lpp/Xamples/include
25453 /usr/openwin/include
25454 /usr/openwin/share/include'
25456 if test "$ac_x_includes" = no; then
25457 # Guess where to find include files, by looking for Intrinsic.h.
25458 # First, try using that file with no special directory specified.
25459 cat >conftest.$ac_ext <<_ACEOF
25462 cat confdefs.h >>conftest.$ac_ext
25463 cat >>conftest.$ac_ext <<_ACEOF
25464 /* end confdefs.h. */
25465 #include <X11/Intrinsic.h>
25467 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
25468 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
25470 grep -v '^ *+' conftest.er1 >conftest.err
25472 cat conftest.err >&5
25473 echo "$as_me:$LINENO: \$? = $ac_status" >&5
25474 (exit $ac_status); } >/dev/null; then
25475 if test -s conftest.err; then
25476 ac_cpp_err=$ac_c_preproc_warn_flag
25477 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
25484 if test -z "$ac_cpp_err"; then
25485 # We can compile using X headers with no special include directory.
25488 echo "$as_me: failed program was:" >&5
25489 sed 's/^/| /' conftest.$ac_ext >&5
25491 for ac_dir in $ac_x_header_dirs; do
25492 if test -r "$ac_dir/X11/Intrinsic.h"; then
25493 ac_x_includes=$ac_dir
25498 rm -f conftest.err conftest.$ac_ext
25499 fi # $ac_x_includes = no
25501 if test "$ac_x_libraries" = no; then
25502 # Check for the libraries.
25503 # See if we find them without any special options.
25504 # Don't add to $LIBS permanently.
25507 cat >conftest.$ac_ext <<_ACEOF
25510 cat confdefs.h >>conftest.$ac_ext
25511 cat >>conftest.$ac_ext <<_ACEOF
25512 /* end confdefs.h. */
25513 #include <X11/Intrinsic.h>
25522 rm -f conftest.$ac_objext conftest$ac_exeext
25523 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
25524 (eval $ac_link) 2>conftest.er1
25526 grep -v '^ *+' conftest.er1 >conftest.err
25528 cat conftest.err >&5
25529 echo "$as_me:$LINENO: \$? = $ac_status" >&5
25530 (exit $ac_status); } &&
25531 { ac_try='test -z "$ac_c_werror_flag"
25532 || test ! -s conftest.err'
25533 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
25534 (eval $ac_try) 2>&5
25536 echo "$as_me:$LINENO: \$? = $ac_status" >&5
25537 (exit $ac_status); }; } &&
25538 { ac_try='test -s conftest$ac_exeext'
25539 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
25540 (eval $ac_try) 2>&5
25542 echo "$as_me:$LINENO: \$? = $ac_status" >&5
25543 (exit $ac_status); }; }; then
25545 # We can link X programs with no special library path.
25548 echo "$as_me: failed program was:" >&5
25549 sed 's/^/| /' conftest.$ac_ext >&5
25552 for ac_dir in `echo "$ac_x_includes $ac_x_header_dirs" | sed s/include/lib/g`
25554 # Don't even attempt the hair of trying to link an X program!
25555 for ac_extension in a so sl; do
25556 if test -r $ac_dir/libXt.$ac_extension; then
25557 ac_x_libraries=$ac_dir
25563 rm -f conftest.err conftest.$ac_objext \
25564 conftest$ac_exeext conftest.$ac_ext
25565 fi # $ac_x_libraries = no
25567 if test "$ac_x_includes" = no || test "$ac_x_libraries" = no; then
25568 # Didn't find X anywhere. Cache the known absence of X.
25569 ac_cv_have_x="have_x=no"
25571 # Record where we found X for the cache.
25572 ac_cv_have_x="have_x=yes \
25573 ac_x_includes=$ac_x_includes ac_x_libraries=$ac_x_libraries"
25578 eval "$ac_cv_have_x"
25581 if test "$have_x" != yes; then
25582 echo "$as_me:$LINENO: result: $have_x" >&5
25583 echo "${ECHO_T}$have_x" >&6
25586 # If each of the values was on the command line, it overrides each guess.
25587 test "x$x_includes" = xNONE && x_includes=$ac_x_includes
25588 test "x$x_libraries" = xNONE && x_libraries=$ac_x_libraries
25589 # Update the cache value to reflect the command line values.
25590 ac_cv_have_x="have_x=yes \
25591 ac_x_includes=$x_includes ac_x_libraries=$x_libraries"
25592 echo "$as_me:$LINENO: result: libraries $x_libraries, headers $x_includes" >&5
25593 echo "${ECHO_T}libraries $x_libraries, headers $x_includes" >&6
25597 # Unlike the sim directory, whether a simulator is linked is controlled by
25598 # presence of a gdb_sim definition in the target configure.tgt entry.
25599 # This code just checks for a few cases where we'd like to ignore those
25600 # definitions, even when they're present in the '.mt' file. These cases
25601 # are when --disable-sim is specified, or if the simulator directory is
25602 # not part of the source tree.
25604 # Check whether --enable-sim or --disable-sim was given.
25605 if test "${enable_sim+set}" = set; then
25606 enableval="$enable_sim"
25607 echo "enable_sim = $enable_sim";
25608 echo "enableval = ${enableval}";
25609 case "${enableval}" in
25610 yes) ignore_sim=false ;;
25611 no) ignore_sim=true ;;
25612 *) ignore_sim=false ;;
25618 if test ! -d "${srcdir}/../sim"; then
25624 if test "${ignore_sim}" = "false"; then
25625 if test x"${gdb_sim}" != x ; then
25627 SIM_OBS="remote-sim.o"
25629 cat >>confdefs.h <<\_ACEOF
25649 # List of host floatformats.
25651 cat >>confdefs.h <<_ACEOF
25652 #define GDB_HOST_FLOAT_FORMAT $gdb_host_float_format
25656 cat >>confdefs.h <<_ACEOF
25657 #define GDB_HOST_DOUBLE_FORMAT $gdb_host_double_format
25661 cat >>confdefs.h <<_ACEOF
25662 #define GDB_HOST_LONG_DOUBLE_FORMAT $gdb_host_long_double_format
25666 # target_subdir is used by the testsuite to find the target libraries.
25668 if test "${host}" != "${target}"; then
25669 target_subdir="${target_alias}/"
25674 if test "${gdb_native}" = "yes"; then
25675 host_makefile_frag=${srcdir}/config/${gdb_host_cpu}/${gdb_host}.mh
25676 if test ! -f ${host_makefile_frag}; then
25677 { { echo "$as_me:$LINENO: error: \"*** Gdb does not support native target ${host}\"" >&5
25678 echo "$as_me: error: \"*** Gdb does not support native target ${host}\"" >&2;}
25679 { (exit 1); exit 1; }; }
25681 frags="$frags $host_makefile_frag"
25683 host_makefile_frag=/dev/null
25689 if test "${gdb_native}" = "yes"; then
25690 # We pick this up from the host configuration file (.mh) because we
25691 # do not have a native configuration Makefile fragment.
25692 nativefile=`sed -n '
25693 s/NAT_FILE[ ]*=[ ]*\([^ ]*\)/\1/p
25694 ' ${host_makefile_frag}`
25698 if test x"${gdb_osabi}" != x ; then
25700 cat >>confdefs.h <<_ACEOF
25701 #define GDB_OSABI_DEFAULT $gdb_osabi
25706 # Enable multi-ice-gdb-server.
25707 # Check whether --enable-multi-ice or --disable-multi-ice was given.
25708 if test "${enable_multi_ice+set}" = set; then
25709 enableval="$enable_multi_ice"
25713 *) { { echo "$as_me:$LINENO: error: bad value $enableval for --enable-multi-ice" >&5
25714 echo "$as_me: error: bad value $enableval for --enable-multi-ice" >&2;}
25715 { (exit 1); exit 1; }; } ;;
25718 if test "x$enable_multi_ice" = xyes; then
25721 subdirs="$subdirs multi-ice"
25725 # We only build gdbserver automatically in a native configuration.
25726 if test "$gdb_native" = "yes"; then
25727 echo "$as_me:$LINENO: checking whether gdbserver is supported on this host" >&5
25728 echo $ECHO_N "checking whether gdbserver is supported on this host... $ECHO_C" >&6
25729 if test "x$build_gdbserver" = xyes; then
25730 echo "$as_me:$LINENO: result: yes" >&5
25731 echo "${ECHO_T}yes" >&6
25734 subdirs="$subdirs gdbserver"
25737 echo "$as_me:$LINENO: result: no" >&5
25738 echo "${ECHO_T}no" >&6
25742 # If nativefile (NAT_FILE) is not set in config/*/*.m[ht] files, we link
25743 # to an empty version.
25750 if test "${nativefile}" != ""; then
25752 case "${nativefile}" in
25753 nm-*.h ) GDB_NM_FILE="config/${gdb_host_cpu}/${nativefile}" ;;
25754 * ) GDB_NM_FILE="${nativefile}"
25756 files="${files} ${GDB_NM_FILE}"
25757 links="${links} nm.h"
25759 cat >>confdefs.h <<_ACEOF
25760 #define GDB_NM_FILE "${GDB_NM_FILE}"
25766 ac_sources="$files"
25768 while test -n "$ac_sources"; do
25769 set $ac_dests; ac_dest=$1; shift; ac_dests=$*
25770 set $ac_sources; ac_source=$1; shift; ac_sources=$*
25771 ac_config_links_1="$ac_config_links_1 $ac_dest:$ac_source"
25773 ac_config_links="$ac_config_links $ac_config_links_1"
25780 cat >>confdefs.h <<\_ACEOF
25781 #define GDB_DEFAULT_HOST_CHARSET "ISO-8859-1"
25788 # Check whether --with-libiconv-prefix or --without-libiconv-prefix was given.
25789 if test "${with_libiconv_prefix+set}" = set; then
25790 withval="$with_libiconv_prefix"
25792 for dir in `echo "$withval" | tr : ' '`; do
25793 if test -d $dir/include; then CPPFLAGS="$CPPFLAGS -I$dir/include"; fi
25794 if test -d $dir/lib; then LDFLAGS="$LDFLAGS -L$dir/lib"; fi
25799 echo "$as_me:$LINENO: checking for iconv" >&5
25800 echo $ECHO_N "checking for iconv... $ECHO_C" >&6
25801 if test "${am_cv_func_iconv+set}" = set; then
25802 echo $ECHO_N "(cached) $ECHO_C" >&6
25805 am_cv_func_iconv="no, consider installing GNU libiconv"
25807 cat >conftest.$ac_ext <<_ACEOF
25810 cat confdefs.h >>conftest.$ac_ext
25811 cat >>conftest.$ac_ext <<_ACEOF
25812 /* end confdefs.h. */
25813 #include <stdlib.h>
25818 iconv_t cd = iconv_open("","");
25819 iconv(cd,NULL,NULL,NULL,NULL);
25825 rm -f conftest.$ac_objext conftest$ac_exeext
25826 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
25827 (eval $ac_link) 2>conftest.er1
25829 grep -v '^ *+' conftest.er1 >conftest.err
25831 cat conftest.err >&5
25832 echo "$as_me:$LINENO: \$? = $ac_status" >&5
25833 (exit $ac_status); } &&
25834 { ac_try='test -z "$ac_c_werror_flag"
25835 || test ! -s conftest.err'
25836 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
25837 (eval $ac_try) 2>&5
25839 echo "$as_me:$LINENO: \$? = $ac_status" >&5
25840 (exit $ac_status); }; } &&
25841 { ac_try='test -s conftest$ac_exeext'
25842 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
25843 (eval $ac_try) 2>&5
25845 echo "$as_me:$LINENO: \$? = $ac_status" >&5
25846 (exit $ac_status); }; }; then
25847 am_cv_func_iconv=yes
25849 echo "$as_me: failed program was:" >&5
25850 sed 's/^/| /' conftest.$ac_ext >&5
25853 rm -f conftest.err conftest.$ac_objext \
25854 conftest$ac_exeext conftest.$ac_ext
25855 if test "$am_cv_func_iconv" != yes; then
25856 am_save_LIBS="$LIBS"
25857 LIBS="$LIBS -liconv"
25858 cat >conftest.$ac_ext <<_ACEOF
25861 cat confdefs.h >>conftest.$ac_ext
25862 cat >>conftest.$ac_ext <<_ACEOF
25863 /* end confdefs.h. */
25864 #include <stdlib.h>
25869 iconv_t cd = iconv_open("","");
25870 iconv(cd,NULL,NULL,NULL,NULL);
25876 rm -f conftest.$ac_objext conftest$ac_exeext
25877 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
25878 (eval $ac_link) 2>conftest.er1
25880 grep -v '^ *+' conftest.er1 >conftest.err
25882 cat conftest.err >&5
25883 echo "$as_me:$LINENO: \$? = $ac_status" >&5
25884 (exit $ac_status); } &&
25885 { ac_try='test -z "$ac_c_werror_flag"
25886 || test ! -s conftest.err'
25887 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
25888 (eval $ac_try) 2>&5
25890 echo "$as_me:$LINENO: \$? = $ac_status" >&5
25891 (exit $ac_status); }; } &&
25892 { ac_try='test -s conftest$ac_exeext'
25893 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
25894 (eval $ac_try) 2>&5
25896 echo "$as_me:$LINENO: \$? = $ac_status" >&5
25897 (exit $ac_status); }; }; then
25898 am_cv_lib_iconv=yes
25899 am_cv_func_iconv=yes
25901 echo "$as_me: failed program was:" >&5
25902 sed 's/^/| /' conftest.$ac_ext >&5
25905 rm -f conftest.err conftest.$ac_objext \
25906 conftest$ac_exeext conftest.$ac_ext
25907 LIBS="$am_save_LIBS"
25911 echo "$as_me:$LINENO: result: $am_cv_func_iconv" >&5
25912 echo "${ECHO_T}$am_cv_func_iconv" >&6
25913 if test "$am_cv_func_iconv" = yes; then
25915 cat >>confdefs.h <<\_ACEOF
25916 #define HAVE_ICONV 1
25919 echo "$as_me:$LINENO: checking for iconv declaration" >&5
25920 echo $ECHO_N "checking for iconv declaration... $ECHO_C" >&6
25921 if test "${am_cv_proto_iconv+set}" = set; then
25922 echo $ECHO_N "(cached) $ECHO_C" >&6
25925 cat >conftest.$ac_ext <<_ACEOF
25928 cat confdefs.h >>conftest.$ac_ext
25929 cat >>conftest.$ac_ext <<_ACEOF
25930 /* end confdefs.h. */
25932 #include <stdlib.h>
25938 #if defined(__STDC__) || defined(__cplusplus)
25939 size_t iconv (iconv_t cd, char * *inbuf, size_t *inbytesleft, char * *outbuf, size_t *outbytesleft);
25952 rm -f conftest.$ac_objext
25953 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
25954 (eval $ac_compile) 2>conftest.er1
25956 grep -v '^ *+' conftest.er1 >conftest.err
25958 cat conftest.err >&5
25959 echo "$as_me:$LINENO: \$? = $ac_status" >&5
25960 (exit $ac_status); } &&
25961 { ac_try='test -z "$ac_c_werror_flag"
25962 || test ! -s conftest.err'
25963 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
25964 (eval $ac_try) 2>&5
25966 echo "$as_me:$LINENO: \$? = $ac_status" >&5
25967 (exit $ac_status); }; } &&
25968 { ac_try='test -s conftest.$ac_objext'
25969 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
25970 (eval $ac_try) 2>&5
25972 echo "$as_me:$LINENO: \$? = $ac_status" >&5
25973 (exit $ac_status); }; }; then
25974 am_cv_proto_iconv_arg1=""
25976 echo "$as_me: failed program was:" >&5
25977 sed 's/^/| /' conftest.$ac_ext >&5
25979 am_cv_proto_iconv_arg1="const"
25981 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
25982 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);"
25985 am_cv_proto_iconv=`echo "$am_cv_proto_iconv" | tr -s ' ' | sed -e 's/( /(/'`
25986 echo "$as_me:$LINENO: result: ${ac_t:-
25987 }$am_cv_proto_iconv" >&5
25988 echo "${ECHO_T}${ac_t:-
25989 }$am_cv_proto_iconv" >&6
25991 cat >>confdefs.h <<_ACEOF
25992 #define ICONV_CONST $am_cv_proto_iconv_arg1
25997 if test "$am_cv_lib_iconv" = yes; then
26003 ac_config_files="$ac_config_files Makefile .gdbinit:gdbinit.in gnulib/Makefile"
26004 ac_config_commands="$ac_config_commands default"
26005 cat >confcache <<\_ACEOF
26006 # This file is a shell script that caches the results of configure
26007 # tests run on this system so they can be shared between configure
26008 # scripts and configure runs, see configure's option --config-cache.
26009 # It is not useful on other systems. If it contains results you don't
26010 # want to keep, you may remove or edit it.
26012 # config.status only pays attention to the cache file if you give it
26013 # the --recheck option to rerun configure.
26015 # `ac_cv_env_foo' variables (set or unset) will be overridden when
26016 # loading this file, other *unset* `ac_cv_foo' will be assigned the
26017 # following values.
26021 # The following way of writing the cache mishandles newlines in values,
26022 # but we know of no workaround that is simple, portable, and efficient.
26023 # So, don't put newlines in cache variables' values.
26024 # Ultrix sh set writes to stderr and can't be redirected directly,
26025 # and sets the high bit in the cache file unless we assign to the vars.
26028 case `(ac_space=' '; set | grep ac_space) 2>&1` in
26030 # `set' does not quote correctly, so add quotes (double-quote
26031 # substitution turns \\\\ into \\, and sed turns \\ into \).
26034 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p"
26037 # `set' quotes correctly as required by POSIX, so do not add quotes.
26039 "s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1=\\2/p"
26046 s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/
26048 /^ac_cv_env/!s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/
26050 if diff $cache_file confcache >/dev/null 2>&1; then :; else
26051 if test -w $cache_file; then
26052 test "x$cache_file" != "x/dev/null" && echo "updating cache $cache_file"
26053 cat confcache >$cache_file
26055 echo "not updating unwritable cache $cache_file"
26060 test "x$prefix" = xNONE && prefix=$ac_default_prefix
26061 # Let make expand exec_prefix.
26062 test "x$exec_prefix" = xNONE && exec_prefix='${prefix}'
26064 # VPATH may cause trouble with some makes, so we remove $(srcdir),
26065 # ${srcdir} and @srcdir@ from VPATH if srcdir is ".", strip leading and
26066 # trailing colons and then remove the whole line if VPATH becomes empty
26067 # (actually we leave an empty line to preserve line numbers).
26068 if test "x$srcdir" = x.; then
26069 ac_vpsub='/^[ ]*VPATH[ ]*=/{
26070 s/:*\$(srcdir):*/:/;
26071 s/:*\${srcdir}:*/:/;
26073 s/^\([^=]*=[ ]*\):*/\1/;
26079 DEFS=-DHAVE_CONFIG_H
26083 for ac_i in : $LIBOBJS; do test "x$ac_i" = x: && continue
26084 # 1. Remove the extension, and $U if already installed.
26085 ac_i=`echo "$ac_i" |
26086 sed 's/\$U\././;s/\.o$//;s/\.obj$//'`
26088 ac_libobjs="$ac_libobjs $ac_i\$U.$ac_objext"
26089 ac_ltlibobjs="$ac_ltlibobjs $ac_i"'$U.lo'
26091 LIBOBJS=$ac_libobjs
26093 LTLIBOBJS=$ac_ltlibobjs
26096 if test -z "${MAINTAINER_MODE_TRUE}" && test -z "${MAINTAINER_MODE_FALSE}"; then
26097 { { echo "$as_me:$LINENO: error: conditional \"MAINTAINER_MODE\" was never defined.
26098 Usually this means the macro was only invoked conditionally." >&5
26099 echo "$as_me: error: conditional \"MAINTAINER_MODE\" was never defined.
26100 Usually this means the macro was only invoked conditionally." >&2;}
26101 { (exit 1); exit 1; }; }
26103 if test -z "${GMAKE_TRUE}" && test -z "${GMAKE_FALSE}"; then
26104 { { echo "$as_me:$LINENO: error: conditional \"GMAKE\" was never defined.
26105 Usually this means the macro was only invoked conditionally." >&5
26106 echo "$as_me: error: conditional \"GMAKE\" was never defined.
26107 Usually this means the macro was only invoked conditionally." >&2;}
26108 { (exit 1); exit 1; }; }
26110 if test -z "${GL_COND_LIBTOOL_TRUE}" && test -z "${GL_COND_LIBTOOL_FALSE}"; then
26111 { { echo "$as_me:$LINENO: error: conditional \"GL_COND_LIBTOOL\" was never defined.
26112 Usually this means the macro was only invoked conditionally." >&5
26113 echo "$as_me: error: conditional \"GL_COND_LIBTOOL\" was never defined.
26114 Usually this means the macro was only invoked conditionally." >&2;}
26115 { (exit 1); exit 1; }; }
26120 if test -n "$gl_LIBOBJS"; then
26121 # Remove the extension.
26122 sed_drop_objext='s/\.o$//;s/\.obj$//'
26123 for i in `for i in $gl_LIBOBJS; do echo "$i"; done | sed "$sed_drop_objext" | sort | uniq`; do
26124 gl_libobjs="$gl_libobjs $i.$ac_objext"
26125 gl_ltlibobjs="$gl_ltlibobjs $i.lo"
26128 gl_LIBOBJS=$gl_libobjs
26130 gl_LTLIBOBJS=$gl_ltlibobjs
26136 if test -n "$gltests_LIBOBJS"; then
26137 # Remove the extension.
26138 sed_drop_objext='s/\.o$//;s/\.obj$//'
26139 for i in `for i in $gltests_LIBOBJS; do echo "$i"; done | sed "$sed_drop_objext" | sort | uniq`; do
26140 gltests_libobjs="$gltests_libobjs $i.$ac_objext"
26141 gltests_ltlibobjs="$gltests_ltlibobjs $i.lo"
26144 gltests_LIBOBJS=$gltests_libobjs
26146 gltests_LTLIBOBJS=$gltests_ltlibobjs
26149 if test -z "${AMDEP_TRUE}" && test -z "${AMDEP_FALSE}"; then
26150 { { echo "$as_me:$LINENO: error: conditional \"AMDEP\" was never defined.
26151 Usually this means the macro was only invoked conditionally." >&5
26152 echo "$as_me: error: conditional \"AMDEP\" was never defined.
26153 Usually this means the macro was only invoked conditionally." >&2;}
26154 { (exit 1); exit 1; }; }
26156 if test -z "${am__fastdepCC_TRUE}" && test -z "${am__fastdepCC_FALSE}"; then
26157 { { echo "$as_me:$LINENO: error: conditional \"am__fastdepCC\" was never defined.
26158 Usually this means the macro was only invoked conditionally." >&5
26159 echo "$as_me: error: conditional \"am__fastdepCC\" was never defined.
26160 Usually this means the macro was only invoked conditionally." >&2;}
26161 { (exit 1); exit 1; }; }
26164 : ${CONFIG_STATUS=./config.status}
26165 ac_clean_files_save=$ac_clean_files
26166 ac_clean_files="$ac_clean_files $CONFIG_STATUS"
26167 { echo "$as_me:$LINENO: creating $CONFIG_STATUS" >&5
26168 echo "$as_me: creating $CONFIG_STATUS" >&6;}
26169 cat >$CONFIG_STATUS <<_ACEOF
26171 # Generated by $as_me.
26172 # Run this file to recreate the current configuration.
26173 # Compiler output produced by configure, useful for debugging
26174 # configure, is in config.log if it exists.
26177 ac_cs_recheck=false
26179 SHELL=\${CONFIG_SHELL-$SHELL}
26182 cat >>$CONFIG_STATUS <<\_ACEOF
26183 ## --------------------- ##
26184 ## M4sh Initialization. ##
26185 ## --------------------- ##
26187 # Be Bourne compatible
26188 if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then
26191 # Zsh 3.x and 4.x performs word splitting on ${1+"$@"}, which
26192 # is contrary to our usage. Disable this feature.
26193 alias -g '${1+"$@"}'='"$@"'
26194 elif test -n "${BASH_VERSION+set}" && (set -o posix) >/dev/null 2>&1; then
26197 DUALCASE=1; export DUALCASE # for MKS sh
26199 # Support unset when possible.
26200 if ( (MAIL=60; unset MAIL) || exit) >/dev/null 2>&1; then
26207 # Work around bugs in pre-3.0 UWIN ksh.
26208 $as_unset ENV MAIL MAILPATH
26215 LANG LANGUAGE LC_ADDRESS LC_ALL LC_COLLATE LC_CTYPE LC_IDENTIFICATION \
26216 LC_MEASUREMENT LC_MESSAGES LC_MONETARY LC_NAME LC_NUMERIC LC_PAPER \
26217 LC_TELEPHONE LC_TIME
26219 if (set +x; test -z "`(eval $as_var=C; export $as_var) 2>&1`"); then
26220 eval $as_var=C; export $as_var
26226 # Required to use basename.
26227 if expr a : '\(a\)' >/dev/null 2>&1; then
26233 if (basename /) >/dev/null 2>&1 && test "X`basename / 2>&1`" = "X/"; then
26234 as_basename=basename
26240 # Name of the executable.
26241 as_me=`$as_basename "$0" ||
26242 $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
26243 X"$0" : 'X\(//\)$' \| \
26244 X"$0" : 'X\(/\)$' \| \
26245 . : '\(.\)' 2>/dev/null ||
26247 sed '/^.*\/\([^/][^/]*\)\/*$/{ s//\1/; q; }
26248 /^X\/\(\/\/\)$/{ s//\1/; q; }
26249 /^X\/\(\/\).*/{ s//\1/; q; }
26253 # PATH needs CR, and LINENO needs CR and PATH.
26254 # Avoid depending upon Character Ranges.
26255 as_cr_letters='abcdefghijklmnopqrstuvwxyz'
26256 as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
26257 as_cr_Letters=$as_cr_letters$as_cr_LETTERS
26258 as_cr_digits='0123456789'
26259 as_cr_alnum=$as_cr_Letters$as_cr_digits
26261 # The user is always right.
26262 if test "${PATH_SEPARATOR+set}" != set; then
26263 echo "#! /bin/sh" >conf$$.sh
26264 echo "exit 0" >>conf$$.sh
26266 if (PATH="/nonexistent;."; conf$$.sh) >/dev/null 2>&1; then
26275 as_lineno_1=$LINENO
26276 as_lineno_2=$LINENO
26277 as_lineno_3=`(expr $as_lineno_1 + 1) 2>/dev/null`
26278 test "x$as_lineno_1" != "x$as_lineno_2" &&
26279 test "x$as_lineno_3" = "x$as_lineno_2" || {
26280 # Find who we are. Look in the path if we contain no path at all
26283 *[\\/]* ) as_myself=$0 ;;
26284 *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
26285 for as_dir in $PATH
26288 test -z "$as_dir" && as_dir=.
26289 test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
26294 # We did not find ourselves, most probably we were run as `sh COMMAND'
26295 # in which case we are not to be found in the path.
26296 if test "x$as_myself" = x; then
26299 if test ! -f "$as_myself"; then
26300 { { echo "$as_me:$LINENO: error: cannot find myself; rerun with an absolute path" >&5
26301 echo "$as_me: error: cannot find myself; rerun with an absolute path" >&2;}
26302 { (exit 1); exit 1; }; }
26304 case $CONFIG_SHELL in
26306 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
26307 for as_dir in /bin$PATH_SEPARATOR/usr/bin$PATH_SEPARATOR$PATH
26310 test -z "$as_dir" && as_dir=.
26311 for as_base in sh bash ksh sh5; do
26314 if ("$as_dir/$as_base" -c '
26315 as_lineno_1=$LINENO
26316 as_lineno_2=$LINENO
26317 as_lineno_3=`(expr $as_lineno_1 + 1) 2>/dev/null`
26318 test "x$as_lineno_1" != "x$as_lineno_2" &&
26319 test "x$as_lineno_3" = "x$as_lineno_2" ') 2>/dev/null; then
26320 $as_unset BASH_ENV || test "${BASH_ENV+set}" != set || { BASH_ENV=; export BASH_ENV; }
26321 $as_unset ENV || test "${ENV+set}" != set || { ENV=; export ENV; }
26322 CONFIG_SHELL=$as_dir/$as_base
26323 export CONFIG_SHELL
26324 exec "$CONFIG_SHELL" "$0" ${1+"$@"}
26332 # Create $as_me.lineno as a copy of $as_myself, but with $LINENO
26333 # uniformly replaced by the line number. The first 'sed' inserts a
26334 # line-number line before each line; the second 'sed' does the real
26335 # work. The second script uses 'N' to pair each line-number line
26336 # with the numbered line, and appends trailing '-' during
26337 # substitution so that $LINENO is not a special case at line end.
26338 # (Raja R Harinath suggested sed '=', and Paul Eggert wrote the
26339 # second 'sed' script. Blame Lee E. McMahon for sed's syntax. :-)
26340 sed '=' <$as_myself |
26345 s,^\(['$as_cr_digits']*\)\(.*\)[$]LINENO\([^'$as_cr_alnum'_]\),\1\2\1\3,
26348 s,^['$as_cr_digits']*\n,,
26349 ' >$as_me.lineno &&
26350 chmod +x $as_me.lineno ||
26351 { { echo "$as_me:$LINENO: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&5
26352 echo "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2;}
26353 { (exit 1); exit 1; }; }
26355 # Don't try to exec as it changes $[0], causing all sort of problems
26356 # (the dirname of $[0] is not the place where we might find the
26357 # original and so on. Autoconf is especially sensible to this).
26359 # Exit status is that of the last command.
26364 case `echo "testing\c"; echo 1,2,3`,`echo -n testing; echo 1,2,3` in
26365 *c*,-n*) ECHO_N= ECHO_C='
26367 *c*,* ) ECHO_N=-n ECHO_C= ECHO_T= ;;
26368 *) ECHO_N= ECHO_C='\c' ECHO_T= ;;
26371 if expr a : '\(a\)' >/dev/null 2>&1; then
26377 rm -f conf$$ conf$$.exe conf$$.file
26379 if ln -s conf$$.file conf$$ 2>/dev/null; then
26380 # We could just check for DJGPP; but this test a) works b) is more generic
26381 # and c) will remain valid once DJGPP supports symlinks (DJGPP 2.04).
26382 if test -f conf$$.exe; then
26383 # Don't use ln at all; we don't have any links
26388 elif ln conf$$.file conf$$ 2>/dev/null; then
26393 rm -f conf$$ conf$$.exe conf$$.file
26395 if mkdir -p . 2>/dev/null; then
26398 test -d ./-p && rmdir ./-p
26402 as_executable_p="test -f"
26404 # Sed expression to map a string onto a valid CPP name.
26405 as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
26407 # Sed expression to map a string onto a valid variable name.
26408 as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
26412 # We need space, tab and new line, in precisely that order.
26422 # Open the log real soon, to keep \$[0] and so on meaningful, and to
26423 # report actual input values of CONFIG_FILES etc. instead of their
26424 # values after options handling. Logging --version etc. is OK.
26428 sed 'h;s/./-/g;s/^.../## /;s/...$/ ##/;p;x;p;x' <<_ASBOX
26429 ## Running $as_me. ##
26434 This file was extended by $as_me, which was
26435 generated by GNU Autoconf 2.59. Invocation command line was
26437 CONFIG_FILES = $CONFIG_FILES
26438 CONFIG_HEADERS = $CONFIG_HEADERS
26439 CONFIG_LINKS = $CONFIG_LINKS
26440 CONFIG_COMMANDS = $CONFIG_COMMANDS
26444 echo "on `(hostname || uname -n) 2>/dev/null | sed 1q`" >&5
26448 # Files that config.status was made for.
26449 if test -n "$ac_config_files"; then
26450 echo "config_files=\"$ac_config_files\"" >>$CONFIG_STATUS
26453 if test -n "$ac_config_headers"; then
26454 echo "config_headers=\"$ac_config_headers\"" >>$CONFIG_STATUS
26457 if test -n "$ac_config_links"; then
26458 echo "config_links=\"$ac_config_links\"" >>$CONFIG_STATUS
26461 if test -n "$ac_config_commands"; then
26462 echo "config_commands=\"$ac_config_commands\"" >>$CONFIG_STATUS
26465 cat >>$CONFIG_STATUS <<\_ACEOF
26468 \`$as_me' instantiates files from templates according to the
26469 current configuration.
26471 Usage: $0 [OPTIONS] [FILE]...
26473 -h, --help print this help, then exit
26474 -V, --version print version number, then exit
26475 -q, --quiet do not print progress messages
26476 -d, --debug don't remove temporary files
26477 --recheck update $as_me by reconfiguring in the same conditions
26478 --file=FILE[:TEMPLATE]
26479 instantiate the configuration file FILE
26480 --header=FILE[:TEMPLATE]
26481 instantiate the configuration header FILE
26483 Configuration files:
26486 Configuration headers:
26489 Configuration links:
26492 Configuration commands:
26495 Report bugs to <bug-autoconf@gnu.org>."
26498 cat >>$CONFIG_STATUS <<_ACEOF
26501 configured by $0, generated by GNU Autoconf 2.59,
26502 with options \\"`echo "$ac_configure_args" | sed 's/[\\""\`\$]/\\\\&/g'`\\"
26504 Copyright (C) 2003 Free Software Foundation, Inc.
26505 This config.status script is free software; the Free Software Foundation
26506 gives unlimited permission to copy, distribute and modify it."
26511 cat >>$CONFIG_STATUS <<\_ACEOF
26512 # If no file are specified by the user, then we need to provide default
26513 # value. By we need to know if files were specified by the user.
26519 ac_option=`expr "x$1" : 'x\([^=]*\)='`
26520 ac_optarg=`expr "x$1" : 'x[^=]*=\(.*\)'`
26528 *) # This is not an option, so the user has probably given explicit
26531 ac_need_defaults=false;;
26535 # Handling of the options.
26537 cat >>$CONFIG_STATUS <<\_ACEOF
26538 -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r)
26540 --version | --vers* | -V )
26541 echo "$ac_cs_version"; exit 0 ;;
26543 # Conflict between --help and --header
26544 { { echo "$as_me:$LINENO: error: ambiguous option: $1
26545 Try \`$0 --help' for more information." >&5
26546 echo "$as_me: error: ambiguous option: $1
26547 Try \`$0 --help' for more information." >&2;}
26548 { (exit 1); exit 1; }; };;
26549 --help | --hel | -h )
26550 echo "$ac_cs_usage"; exit 0 ;;
26551 --debug | --d* | -d )
26553 --file | --fil | --fi | --f )
26555 CONFIG_FILES="$CONFIG_FILES $ac_optarg"
26556 ac_need_defaults=false;;
26557 --header | --heade | --head | --hea )
26559 CONFIG_HEADERS="$CONFIG_HEADERS $ac_optarg"
26560 ac_need_defaults=false;;
26561 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
26562 | -silent | --silent | --silen | --sile | --sil | --si | --s)
26565 # This is an error.
26566 -*) { { echo "$as_me:$LINENO: error: unrecognized option: $1
26567 Try \`$0 --help' for more information." >&5
26568 echo "$as_me: error: unrecognized option: $1
26569 Try \`$0 --help' for more information." >&2;}
26570 { (exit 1); exit 1; }; } ;;
26572 *) ac_config_targets="$ac_config_targets $1" ;;
26578 ac_configure_extra_args=
26580 if $ac_cs_silent; then
26582 ac_configure_extra_args="$ac_configure_extra_args --silent"
26586 cat >>$CONFIG_STATUS <<_ACEOF
26587 if \$ac_cs_recheck; then
26588 echo "running $SHELL $0 " $ac_configure_args \$ac_configure_extra_args " --no-create --no-recursion" >&6
26589 exec $SHELL $0 $ac_configure_args \$ac_configure_extra_args --no-create --no-recursion
26594 cat >>$CONFIG_STATUS <<_ACEOF
26596 # INIT-COMMANDS section.
26599 ac_aux_dir=$ac_aux_dir DEPDIR=$DEPDIR
26600 AMDEP_TRUE="$AMDEP_TRUE" ac_aux_dir="$ac_aux_dir"
26602 gdb_host_cpu=$gdb_host_cpu
26603 nativefile=$nativefile
26610 cat >>$CONFIG_STATUS <<\_ACEOF
26611 for ac_config_target in $ac_config_targets
26613 case "$ac_config_target" in
26614 # Handling of arguments.
26615 "Makefile" ) CONFIG_FILES="$CONFIG_FILES Makefile" ;;
26616 ".gdbinit" ) CONFIG_FILES="$CONFIG_FILES .gdbinit:gdbinit.in" ;;
26617 "gnulib/Makefile" ) CONFIG_FILES="$CONFIG_FILES gnulib/Makefile" ;;
26618 "$ac_config_links_1" ) CONFIG_LINKS="$CONFIG_LINKS $ac_config_links_1" ;;
26619 "depdir" ) CONFIG_COMMANDS="$CONFIG_COMMANDS depdir" ;;
26620 "depfiles" ) CONFIG_COMMANDS="$CONFIG_COMMANDS depfiles" ;;
26621 "default" ) CONFIG_COMMANDS="$CONFIG_COMMANDS default" ;;
26622 "config.h" ) CONFIG_HEADERS="$CONFIG_HEADERS config.h:config.in" ;;
26623 *) { { echo "$as_me:$LINENO: error: invalid argument: $ac_config_target" >&5
26624 echo "$as_me: error: invalid argument: $ac_config_target" >&2;}
26625 { (exit 1); exit 1; }; };;
26629 # If the user did not use the arguments to specify the items to instantiate,
26630 # then the envvar interface is used. Set only those that are not.
26631 # We use the long form for the default assignment because of an extremely
26632 # bizarre bug on SunOS 4.1.3.
26633 if $ac_need_defaults; then
26634 test "${CONFIG_FILES+set}" = set || CONFIG_FILES=$config_files
26635 test "${CONFIG_HEADERS+set}" = set || CONFIG_HEADERS=$config_headers
26636 test "${CONFIG_LINKS+set}" = set || CONFIG_LINKS=$config_links
26637 test "${CONFIG_COMMANDS+set}" = set || CONFIG_COMMANDS=$config_commands
26640 # Have a temporary directory for convenience. Make it in the build tree
26641 # simply because there is no reason to put it here, and in addition,
26642 # creating and moving files from /tmp can sometimes cause problems.
26643 # Create a temporary directory, and hook for its removal unless debugging.
26646 trap 'exit_status=$?; rm -rf $tmp && exit $exit_status' 0
26647 trap '{ (exit 1); exit 1; }' 1 2 13 15
26650 # Create a (secure) tmp directory for tmp files.
26653 tmp=`(umask 077 && mktemp -d -q "./confstatXXXXXX") 2>/dev/null` &&
26654 test -n "$tmp" && test -d "$tmp"
26657 tmp=./confstat$$-$RANDOM
26658 (umask 077 && mkdir $tmp)
26661 echo "$me: cannot create a temporary directory in ." >&2
26662 { (exit 1); exit 1; }
26667 cat >>$CONFIG_STATUS <<_ACEOF
26670 # CONFIG_FILES section.
26673 # No need to generate the scripts if there are no CONFIG_FILES.
26674 # This happens for instance when ./config.status config.h
26675 if test -n "\$CONFIG_FILES"; then
26676 # Protect against being on the right side of a sed subst in config.status.
26677 sed 's/,@/@@/; s/@,/@@/; s/,;t t\$/@;t t/; /@;t t\$/s/[\\\\&,]/\\\\&/g;
26678 s/@@/,@/; s/@@/@,/; s/@;t t\$/,;t t/' >\$tmp/subs.sed <<\\CEOF
26679 s,@SHELL@,$SHELL,;t t
26680 s,@PATH_SEPARATOR@,$PATH_SEPARATOR,;t t
26681 s,@PACKAGE_NAME@,$PACKAGE_NAME,;t t
26682 s,@PACKAGE_TARNAME@,$PACKAGE_TARNAME,;t t
26683 s,@PACKAGE_VERSION@,$PACKAGE_VERSION,;t t
26684 s,@PACKAGE_STRING@,$PACKAGE_STRING,;t t
26685 s,@PACKAGE_BUGREPORT@,$PACKAGE_BUGREPORT,;t t
26686 s,@exec_prefix@,$exec_prefix,;t t
26687 s,@prefix@,$prefix,;t t
26688 s,@program_transform_name@,$program_transform_name,;t t
26689 s,@bindir@,$bindir,;t t
26690 s,@sbindir@,$sbindir,;t t
26691 s,@libexecdir@,$libexecdir,;t t
26692 s,@datadir@,$datadir,;t t
26693 s,@sysconfdir@,$sysconfdir,;t t
26694 s,@sharedstatedir@,$sharedstatedir,;t t
26695 s,@localstatedir@,$localstatedir,;t t
26696 s,@libdir@,$libdir,;t t
26697 s,@includedir@,$includedir,;t t
26698 s,@oldincludedir@,$oldincludedir,;t t
26699 s,@infodir@,$infodir,;t t
26700 s,@mandir@,$mandir,;t t
26701 s,@build_alias@,$build_alias,;t t
26702 s,@host_alias@,$host_alias,;t t
26703 s,@target_alias@,$target_alias,;t t
26704 s,@DEFS@,$DEFS,;t t
26705 s,@ECHO_C@,$ECHO_C,;t t
26706 s,@ECHO_N@,$ECHO_N,;t t
26707 s,@ECHO_T@,$ECHO_T,;t t
26708 s,@LIBS@,$LIBS,;t t
26709 s,@MAINTAINER_MODE_TRUE@,$MAINTAINER_MODE_TRUE,;t t
26710 s,@MAINTAINER_MODE_FALSE@,$MAINTAINER_MODE_FALSE,;t t
26711 s,@MAINT@,$MAINT,;t t
26713 s,@CFLAGS@,$CFLAGS,;t t
26714 s,@LDFLAGS@,$LDFLAGS,;t t
26715 s,@CPPFLAGS@,$CPPFLAGS,;t t
26716 s,@ac_ct_CC@,$ac_ct_CC,;t t
26717 s,@EXEEXT@,$EXEEXT,;t t
26718 s,@OBJEXT@,$OBJEXT,;t t
26720 s,@EGREP@,$EGREP,;t t
26721 s,@RANLIB@,$RANLIB,;t t
26722 s,@ac_ct_RANLIB@,$ac_ct_RANLIB,;t t
26723 s,@build@,$build,;t t
26724 s,@build_cpu@,$build_cpu,;t t
26725 s,@build_vendor@,$build_vendor,;t t
26726 s,@build_os@,$build_os,;t t
26727 s,@host@,$host,;t t
26728 s,@host_cpu@,$host_cpu,;t t
26729 s,@host_vendor@,$host_vendor,;t t
26730 s,@host_os@,$host_os,;t t
26731 s,@target@,$target,;t t
26732 s,@target_cpu@,$target_cpu,;t t
26733 s,@target_vendor@,$target_vendor,;t t
26734 s,@target_os@,$target_os,;t t
26735 s,@am__leading_dot@,$am__leading_dot,;t t
26736 s,@DEPDIR@,$DEPDIR,;t t
26737 s,@CCDEPMODE@,$CCDEPMODE,;t t
26738 s,@MAKE@,$MAKE,;t t
26739 s,@GMAKE_TRUE@,$GMAKE_TRUE,;t t
26740 s,@GMAKE_FALSE@,$GMAKE_FALSE,;t t
26741 s,@SET_MAKE@,$SET_MAKE,;t t
26742 s,@USE_NLS@,$USE_NLS,;t t
26743 s,@LIBINTL@,$LIBINTL,;t t
26744 s,@LIBINTL_DEP@,$LIBINTL_DEP,;t t
26745 s,@INCINTL@,$INCINTL,;t t
26746 s,@XGETTEXT@,$XGETTEXT,;t t
26747 s,@GMSGFMT@,$GMSGFMT,;t t
26748 s,@POSUB@,$POSUB,;t t
26749 s,@CATALOGS@,$CATALOGS,;t t
26750 s,@DATADIRNAME@,$DATADIRNAME,;t t
26751 s,@INSTOBJEXT@,$INSTOBJEXT,;t t
26752 s,@GENCAT@,$GENCAT,;t t
26753 s,@CATOBJEXT@,$CATOBJEXT,;t t
26754 s,@localedir@,$localedir,;t t
26755 s,@GL_COND_LIBTOOL_TRUE@,$GL_COND_LIBTOOL_TRUE,;t t
26756 s,@GL_COND_LIBTOOL_FALSE@,$GL_COND_LIBTOOL_FALSE,;t t
26757 s,@GNULIB_MEMMEM@,$GNULIB_MEMMEM,;t t
26758 s,@GNULIB_MEMPCPY@,$GNULIB_MEMPCPY,;t t
26759 s,@GNULIB_MEMRCHR@,$GNULIB_MEMRCHR,;t t
26760 s,@GNULIB_STPCPY@,$GNULIB_STPCPY,;t t
26761 s,@GNULIB_STPNCPY@,$GNULIB_STPNCPY,;t t
26762 s,@GNULIB_STRCHRNUL@,$GNULIB_STRCHRNUL,;t t
26763 s,@GNULIB_STRDUP@,$GNULIB_STRDUP,;t t
26764 s,@GNULIB_STRNDUP@,$GNULIB_STRNDUP,;t t
26765 s,@GNULIB_STRNLEN@,$GNULIB_STRNLEN,;t t
26766 s,@GNULIB_STRPBRK@,$GNULIB_STRPBRK,;t t
26767 s,@GNULIB_STRSEP@,$GNULIB_STRSEP,;t t
26768 s,@GNULIB_STRSTR@,$GNULIB_STRSTR,;t t
26769 s,@GNULIB_STRCASESTR@,$GNULIB_STRCASESTR,;t t
26770 s,@GNULIB_STRTOK_R@,$GNULIB_STRTOK_R,;t t
26771 s,@GNULIB_MBSLEN@,$GNULIB_MBSLEN,;t t
26772 s,@GNULIB_MBSNLEN@,$GNULIB_MBSNLEN,;t t
26773 s,@GNULIB_MBSCHR@,$GNULIB_MBSCHR,;t t
26774 s,@GNULIB_MBSRCHR@,$GNULIB_MBSRCHR,;t t
26775 s,@GNULIB_MBSSTR@,$GNULIB_MBSSTR,;t t
26776 s,@GNULIB_MBSCASECMP@,$GNULIB_MBSCASECMP,;t t
26777 s,@GNULIB_MBSNCASECMP@,$GNULIB_MBSNCASECMP,;t t
26778 s,@GNULIB_MBSPCASECMP@,$GNULIB_MBSPCASECMP,;t t
26779 s,@GNULIB_MBSCASESTR@,$GNULIB_MBSCASESTR,;t t
26780 s,@GNULIB_MBSCSPN@,$GNULIB_MBSCSPN,;t t
26781 s,@GNULIB_MBSPBRK@,$GNULIB_MBSPBRK,;t t
26782 s,@GNULIB_MBSSPN@,$GNULIB_MBSSPN,;t t
26783 s,@GNULIB_MBSSEP@,$GNULIB_MBSSEP,;t t
26784 s,@GNULIB_MBSTOK_R@,$GNULIB_MBSTOK_R,;t t
26785 s,@GNULIB_STRERROR@,$GNULIB_STRERROR,;t t
26786 s,@GNULIB_STRSIGNAL@,$GNULIB_STRSIGNAL,;t t
26787 s,@HAVE_DECL_MEMMEM@,$HAVE_DECL_MEMMEM,;t t
26788 s,@HAVE_MEMPCPY@,$HAVE_MEMPCPY,;t t
26789 s,@HAVE_DECL_MEMRCHR@,$HAVE_DECL_MEMRCHR,;t t
26790 s,@HAVE_STPCPY@,$HAVE_STPCPY,;t t
26791 s,@HAVE_STPNCPY@,$HAVE_STPNCPY,;t t
26792 s,@HAVE_STRCHRNUL@,$HAVE_STRCHRNUL,;t t
26793 s,@HAVE_DECL_STRDUP@,$HAVE_DECL_STRDUP,;t t
26794 s,@HAVE_STRNDUP@,$HAVE_STRNDUP,;t t
26795 s,@HAVE_DECL_STRNDUP@,$HAVE_DECL_STRNDUP,;t t
26796 s,@HAVE_DECL_STRNLEN@,$HAVE_DECL_STRNLEN,;t t
26797 s,@HAVE_STRPBRK@,$HAVE_STRPBRK,;t t
26798 s,@HAVE_STRSEP@,$HAVE_STRSEP,;t t
26799 s,@HAVE_STRCASESTR@,$HAVE_STRCASESTR,;t t
26800 s,@HAVE_DECL_STRTOK_R@,$HAVE_DECL_STRTOK_R,;t t
26801 s,@HAVE_DECL_STRERROR@,$HAVE_DECL_STRERROR,;t t
26802 s,@HAVE_DECL_STRSIGNAL@,$HAVE_DECL_STRSIGNAL,;t t
26803 s,@REPLACE_STRERROR@,$REPLACE_STRERROR,;t t
26804 s,@REPLACE_STRSIGNAL@,$REPLACE_STRSIGNAL,;t t
26805 s,@REPLACE_MEMMEM@,$REPLACE_MEMMEM,;t t
26806 s,@REPLACE_STRCASESTR@,$REPLACE_STRCASESTR,;t t
26807 s,@REPLACE_STRSTR@,$REPLACE_STRSTR,;t t
26808 s,@HAVE_LONG_LONG_INT@,$HAVE_LONG_LONG_INT,;t t
26809 s,@HAVE_UNSIGNED_LONG_LONG_INT@,$HAVE_UNSIGNED_LONG_LONG_INT,;t t
26810 s,@HAVE_INTTYPES_H@,$HAVE_INTTYPES_H,;t t
26811 s,@HAVE_SYS_TYPES_H@,$HAVE_SYS_TYPES_H,;t t
26812 s,@INCLUDE_NEXT@,$INCLUDE_NEXT,;t t
26813 s,@NEXT_STDINT_H@,$NEXT_STDINT_H,;t t
26814 s,@HAVE_STDINT_H@,$HAVE_STDINT_H,;t t
26815 s,@HAVE_SYS_INTTYPES_H@,$HAVE_SYS_INTTYPES_H,;t t
26816 s,@HAVE_SYS_BITYPES_H@,$HAVE_SYS_BITYPES_H,;t t
26817 s,@BITSIZEOF_PTRDIFF_T@,$BITSIZEOF_PTRDIFF_T,;t t
26818 s,@BITSIZEOF_SIG_ATOMIC_T@,$BITSIZEOF_SIG_ATOMIC_T,;t t
26819 s,@BITSIZEOF_SIZE_T@,$BITSIZEOF_SIZE_T,;t t
26820 s,@BITSIZEOF_WCHAR_T@,$BITSIZEOF_WCHAR_T,;t t
26821 s,@BITSIZEOF_WINT_T@,$BITSIZEOF_WINT_T,;t t
26822 s,@HAVE_SIGNED_SIG_ATOMIC_T@,$HAVE_SIGNED_SIG_ATOMIC_T,;t t
26823 s,@HAVE_SIGNED_WCHAR_T@,$HAVE_SIGNED_WCHAR_T,;t t
26824 s,@HAVE_SIGNED_WINT_T@,$HAVE_SIGNED_WINT_T,;t t
26825 s,@PTRDIFF_T_SUFFIX@,$PTRDIFF_T_SUFFIX,;t t
26826 s,@SIG_ATOMIC_T_SUFFIX@,$SIG_ATOMIC_T_SUFFIX,;t t
26827 s,@SIZE_T_SUFFIX@,$SIZE_T_SUFFIX,;t t
26828 s,@WCHAR_T_SUFFIX@,$WCHAR_T_SUFFIX,;t t
26829 s,@WINT_T_SUFFIX@,$WINT_T_SUFFIX,;t t
26830 s,@STDINT_H@,$STDINT_H,;t t
26831 s,@NEXT_STRING_H@,$NEXT_STRING_H,;t t
26832 s,@GNULIB_WCWIDTH@,$GNULIB_WCWIDTH,;t t
26833 s,@HAVE_DECL_WCWIDTH@,$HAVE_DECL_WCWIDTH,;t t
26834 s,@REPLACE_WCWIDTH@,$REPLACE_WCWIDTH,;t t
26835 s,@WCHAR_H@,$WCHAR_H,;t t
26836 s,@HAVE_WCHAR_H@,$HAVE_WCHAR_H,;t t
26837 s,@NEXT_WCHAR_H@,$NEXT_WCHAR_H,;t t
26838 s,@LIBGNU_LIBDEPS@,$LIBGNU_LIBDEPS,;t t
26839 s,@LIBGNU_LTLIBDEPS@,$LIBGNU_LTLIBDEPS,;t t
26840 s,@GNULIB_STDINT_H@,$GNULIB_STDINT_H,;t t
26841 s,@PACKAGE@,$PACKAGE,;t t
26842 s,@INSTALL_PROGRAM@,$INSTALL_PROGRAM,;t t
26843 s,@INSTALL_SCRIPT@,$INSTALL_SCRIPT,;t t
26844 s,@INSTALL_DATA@,$INSTALL_DATA,;t t
26845 s,@CYGPATH_W@,$CYGPATH_W,;t t
26846 s,@PYTHON2_4@,$PYTHON2_4,;t t
26847 s,@ACLOCAL@,$ACLOCAL,;t t
26848 s,@AUTOCONF@,$AUTOCONF,;t t
26849 s,@AUTOMAKE@,$AUTOMAKE,;t t
26850 s,@AUTOHEADER@,$AUTOHEADER,;t t
26851 s,@MAKEINFO@,$MAKEINFO,;t t
26852 s,@install_sh@,$install_sh,;t t
26853 s,@STRIP@,$STRIP,;t t
26854 s,@ac_ct_STRIP@,$ac_ct_STRIP,;t t
26855 s,@INSTALL_STRIP_PROGRAM@,$INSTALL_STRIP_PROGRAM,;t t
26856 s,@mkdir_p@,$mkdir_p,;t t
26858 s,@AMTAR@,$AMTAR,;t t
26859 s,@am__tar@,$am__tar,;t t
26860 s,@am__untar@,$am__untar,;t t
26861 s,@am__include@,$am__include,;t t
26862 s,@am__quote@,$am__quote,;t t
26863 s,@AMDEP_TRUE@,$AMDEP_TRUE,;t t
26864 s,@AMDEP_FALSE@,$AMDEP_FALSE,;t t
26865 s,@AMDEPBACKSLASH@,$AMDEPBACKSLASH,;t t
26866 s,@am__fastdepCC_TRUE@,$am__fastdepCC_TRUE,;t t
26867 s,@am__fastdepCC_FALSE@,$am__fastdepCC_FALSE,;t t
26868 s,@subdirs@,$subdirs,;t t
26869 s,@TARGET_OBS@,$TARGET_OBS,;t t
26870 s,@PKGVERSION@,$PKGVERSION,;t t
26871 s,@REPORT_BUGS_TO@,$REPORT_BUGS_TO,;t t
26872 s,@REPORT_BUGS_TEXI@,$REPORT_BUGS_TEXI,;t t
26873 s,@LN_S@,$LN_S,;t t
26874 s,@YACC@,$YACC,;t t
26876 s,@ac_ct_AR@,$ac_ct_AR,;t t
26877 s,@DLLTOOL@,$DLLTOOL,;t t
26878 s,@ac_ct_DLLTOOL@,$ac_ct_DLLTOOL,;t t
26879 s,@WINDRES@,$WINDRES,;t t
26880 s,@ac_ct_WINDRES@,$ac_ct_WINDRES,;t t
26882 s,@ac_ct_MIG@,$ac_ct_MIG,;t t
26883 s,@READLINE@,$READLINE,;t t
26884 s,@READLINE_DEPS@,$READLINE_DEPS,;t t
26885 s,@READLINE_CFLAGS@,$READLINE_CFLAGS,;t t
26886 s,@HAVE_LIBEXPAT@,$HAVE_LIBEXPAT,;t t
26887 s,@LIBEXPAT@,$LIBEXPAT,;t t
26888 s,@LTLIBEXPAT@,$LTLIBEXPAT,;t t
26889 s,@PYTHON_CFLAGS@,$PYTHON_CFLAGS,;t t
26890 s,@ALLOCA@,$ALLOCA,;t t
26891 s,@CONFIG_LDFLAGS@,$CONFIG_LDFLAGS,;t t
26892 s,@TARGET_SYSTEM_ROOT@,$TARGET_SYSTEM_ROOT,;t t
26893 s,@TARGET_SYSTEM_ROOT_DEFINE@,$TARGET_SYSTEM_ROOT_DEFINE,;t t
26894 s,@WARN_CFLAGS@,$WARN_CFLAGS,;t t
26895 s,@WERROR_CFLAGS@,$WERROR_CFLAGS,;t t
26896 s,@SER_HARDWIRE@,$SER_HARDWIRE,;t t
26897 s,@WIN32LIBS@,$WIN32LIBS,;t t
26898 s,@LIBGUI@,$LIBGUI,;t t
26899 s,@GUI_CFLAGS_X@,$GUI_CFLAGS_X,;t t
26900 s,@WIN32LDAPP@,$WIN32LDAPP,;t t
26901 s,@TCL_VERSION@,$TCL_VERSION,;t t
26902 s,@TCL_PATCH_LEVEL@,$TCL_PATCH_LEVEL,;t t
26903 s,@TCL_BIN_DIR@,$TCL_BIN_DIR,;t t
26904 s,@TCL_SRC_DIR@,$TCL_SRC_DIR,;t t
26905 s,@TCL_LIB_FILE@,$TCL_LIB_FILE,;t t
26906 s,@TCL_LIB_FLAG@,$TCL_LIB_FLAG,;t t
26907 s,@TCL_LIB_SPEC@,$TCL_LIB_SPEC,;t t
26908 s,@TCL_STUB_LIB_FILE@,$TCL_STUB_LIB_FILE,;t t
26909 s,@TCL_STUB_LIB_FLAG@,$TCL_STUB_LIB_FLAG,;t t
26910 s,@TCL_STUB_LIB_SPEC@,$TCL_STUB_LIB_SPEC,;t t
26911 s,@TCL_INCLUDE@,$TCL_INCLUDE,;t t
26912 s,@TCL_LIBRARY@,$TCL_LIBRARY,;t t
26913 s,@TCL_DEPS@,$TCL_DEPS,;t t
26914 s,@TK_VERSION@,$TK_VERSION,;t t
26915 s,@TK_BIN_DIR@,$TK_BIN_DIR,;t t
26916 s,@TK_SRC_DIR@,$TK_SRC_DIR,;t t
26917 s,@TK_LIB_FILE@,$TK_LIB_FILE,;t t
26918 s,@TK_LIB_FLAG@,$TK_LIB_FLAG,;t t
26919 s,@TK_LIB_SPEC@,$TK_LIB_SPEC,;t t
26920 s,@TK_STUB_LIB_FILE@,$TK_STUB_LIB_FILE,;t t
26921 s,@TK_STUB_LIB_FLAG@,$TK_STUB_LIB_FLAG,;t t
26922 s,@TK_STUB_LIB_SPEC@,$TK_STUB_LIB_SPEC,;t t
26923 s,@TK_INCLUDE@,$TK_INCLUDE,;t t
26924 s,@TK_LIBRARY@,$TK_LIBRARY,;t t
26925 s,@TK_DEPS@,$TK_DEPS,;t t
26926 s,@TK_XINCLUDES@,$TK_XINCLUDES,;t t
26927 s,@X_CFLAGS@,$X_CFLAGS,;t t
26928 s,@X_LDFLAGS@,$X_LDFLAGS,;t t
26929 s,@X_LIBS@,$X_LIBS,;t t
26930 s,@GDBTKLIBS@,$GDBTKLIBS,;t t
26931 s,@GDBTK_CFLAGS@,$GDBTK_CFLAGS,;t t
26932 s,@GDBTK_SRC_DIR@,$GDBTK_SRC_DIR,;t t
26934 s,@SIM_OBS@,$SIM_OBS,;t t
26935 s,@ENABLE_CFLAGS@,$ENABLE_CFLAGS,;t t
26936 s,@PROFILE_CFLAGS@,$PROFILE_CFLAGS,;t t
26937 s,@CONFIG_OBS@,$CONFIG_OBS,;t t
26938 s,@CONFIG_DEPS@,$CONFIG_DEPS,;t t
26939 s,@CONFIG_SRCS@,$CONFIG_SRCS,;t t
26940 s,@CONFIG_ALL@,$CONFIG_ALL,;t t
26941 s,@CONFIG_CLEAN@,$CONFIG_CLEAN,;t t
26942 s,@CONFIG_INSTALL@,$CONFIG_INSTALL,;t t
26943 s,@CONFIG_UNINSTALL@,$CONFIG_UNINSTALL,;t t
26944 s,@target_subdir@,$target_subdir,;t t
26945 s,@frags@,$frags,;t t
26946 s,@nm_h@,$nm_h,;t t
26947 s,@LIBICONV@,$LIBICONV,;t t
26948 s,@LIBOBJS@,$LIBOBJS,;t t
26949 s,@LTLIBOBJS@,$LTLIBOBJS,;t t
26950 s,@gl_LIBOBJS@,$gl_LIBOBJS,;t t
26951 s,@gl_LTLIBOBJS@,$gl_LTLIBOBJS,;t t
26952 s,@gltests_LIBOBJS@,$gltests_LIBOBJS,;t t
26953 s,@gltests_LTLIBOBJS@,$gltests_LTLIBOBJS,;t t
26954 /@host_makefile_frag@/r $host_makefile_frag
26955 s,@host_makefile_frag@,,;t t
26960 cat >>$CONFIG_STATUS <<\_ACEOF
26961 # Split the substitutions into bite-sized pieces for seds with
26962 # small command number limits, like on Digital OSF/1 and HP-UX.
26963 ac_max_sed_lines=48
26964 ac_sed_frag=1 # Number of current file.
26965 ac_beg=1 # First line for current file.
26966 ac_end=$ac_max_sed_lines # Line after last line for current file.
26969 while $ac_more_lines; do
26970 if test $ac_beg -gt 1; then
26971 sed "1,${ac_beg}d; ${ac_end}q" $tmp/subs.sed >$tmp/subs.frag
26973 sed "${ac_end}q" $tmp/subs.sed >$tmp/subs.frag
26975 if test ! -s $tmp/subs.frag; then
26976 ac_more_lines=false
26978 # The purpose of the label and of the branching condition is to
26979 # speed up the sed processing (if there are no `@' at all, there
26980 # is no need to browse any of the substitutions).
26981 # These are the two extra sed commands mentioned above.
26983 /@[a-zA-Z_][a-zA-Z_0-9]*@/!b' && cat $tmp/subs.frag) >$tmp/subs-$ac_sed_frag.sed
26984 if test -z "$ac_sed_cmds"; then
26985 ac_sed_cmds="sed -f $tmp/subs-$ac_sed_frag.sed"
26987 ac_sed_cmds="$ac_sed_cmds | sed -f $tmp/subs-$ac_sed_frag.sed"
26989 ac_sed_frag=`expr $ac_sed_frag + 1`
26991 ac_end=`expr $ac_end + $ac_max_sed_lines`
26994 if test -z "$ac_sed_cmds"; then
26997 fi # test -n "$CONFIG_FILES"
27000 cat >>$CONFIG_STATUS <<\_ACEOF
27001 for ac_file in : $CONFIG_FILES; do test "x$ac_file" = x: && continue
27002 # Support "outfile[:infile[:infile...]]", defaulting infile="outfile.in".
27004 - | *:- | *:-:* ) # input from stdin
27006 ac_file_in=`echo "$ac_file" | sed 's,[^:]*:,,'`
27007 ac_file=`echo "$ac_file" | sed 's,:.*,,'` ;;
27008 *:* ) ac_file_in=`echo "$ac_file" | sed 's,[^:]*:,,'`
27009 ac_file=`echo "$ac_file" | sed 's,:.*,,'` ;;
27010 * ) ac_file_in=$ac_file.in ;;
27013 # Compute @srcdir@, @top_srcdir@, and @INSTALL@ for subdirectories.
27014 ac_dir=`(dirname "$ac_file") 2>/dev/null ||
27015 $as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
27016 X"$ac_file" : 'X\(//\)[^/]' \| \
27017 X"$ac_file" : 'X\(//\)$' \| \
27018 X"$ac_file" : 'X\(/\)' \| \
27019 . : '\(.\)' 2>/dev/null ||
27021 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
27022 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
27023 /^X\(\/\/\)$/{ s//\1/; q; }
27024 /^X\(\/\).*/{ s//\1/; q; }
27026 { if $as_mkdir_p; then
27031 while test ! -d "$as_dir"; do
27032 as_dirs="$as_dir $as_dirs"
27033 as_dir=`(dirname "$as_dir") 2>/dev/null ||
27034 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
27035 X"$as_dir" : 'X\(//\)[^/]' \| \
27036 X"$as_dir" : 'X\(//\)$' \| \
27037 X"$as_dir" : 'X\(/\)' \| \
27038 . : '\(.\)' 2>/dev/null ||
27040 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
27041 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
27042 /^X\(\/\/\)$/{ s//\1/; q; }
27043 /^X\(\/\).*/{ s//\1/; q; }
27046 test ! -n "$as_dirs" || mkdir $as_dirs
27047 fi || { { echo "$as_me:$LINENO: error: cannot create directory \"$ac_dir\"" >&5
27048 echo "$as_me: error: cannot create directory \"$ac_dir\"" >&2;}
27049 { (exit 1); exit 1; }; }; }
27053 if test "$ac_dir" != .; then
27054 ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'`
27055 # A "../" for each directory in $ac_dir_suffix.
27056 ac_top_builddir=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,../,g'`
27058 ac_dir_suffix= ac_top_builddir=
27062 .) # No --srcdir option. We are building in place.
27064 if test -z "$ac_top_builddir"; then
27067 ac_top_srcdir=`echo $ac_top_builddir | sed 's,/$,,'`
27069 [\\/]* | ?:[\\/]* ) # Absolute path.
27070 ac_srcdir=$srcdir$ac_dir_suffix;
27071 ac_top_srcdir=$srcdir ;;
27072 *) # Relative path.
27073 ac_srcdir=$ac_top_builddir$srcdir$ac_dir_suffix
27074 ac_top_srcdir=$ac_top_builddir$srcdir ;;
27077 # Do not use `cd foo && pwd` to compute absolute paths, because
27078 # the directories may not exist.
27080 .) ac_abs_builddir="$ac_dir";;
27083 .) ac_abs_builddir=`pwd`;;
27084 [\\/]* | ?:[\\/]* ) ac_abs_builddir="$ac_dir";;
27085 *) ac_abs_builddir=`pwd`/"$ac_dir";;
27088 case $ac_abs_builddir in
27089 .) ac_abs_top_builddir=${ac_top_builddir}.;;
27091 case ${ac_top_builddir}. in
27092 .) ac_abs_top_builddir=$ac_abs_builddir;;
27093 [\\/]* | ?:[\\/]* ) ac_abs_top_builddir=${ac_top_builddir}.;;
27094 *) ac_abs_top_builddir=$ac_abs_builddir/${ac_top_builddir}.;;
27097 case $ac_abs_builddir in
27098 .) ac_abs_srcdir=$ac_srcdir;;
27101 .) ac_abs_srcdir=$ac_abs_builddir;;
27102 [\\/]* | ?:[\\/]* ) ac_abs_srcdir=$ac_srcdir;;
27103 *) ac_abs_srcdir=$ac_abs_builddir/$ac_srcdir;;
27106 case $ac_abs_builddir in
27107 .) ac_abs_top_srcdir=$ac_top_srcdir;;
27109 case $ac_top_srcdir in
27110 .) ac_abs_top_srcdir=$ac_abs_builddir;;
27111 [\\/]* | ?:[\\/]* ) ac_abs_top_srcdir=$ac_top_srcdir;;
27112 *) ac_abs_top_srcdir=$ac_abs_builddir/$ac_top_srcdir;;
27118 [\\/$]* | ?:[\\/]* ) ac_INSTALL=$INSTALL ;;
27119 *) ac_INSTALL=$ac_top_builddir$INSTALL ;;
27122 if test x"$ac_file" != x-; then
27123 { echo "$as_me:$LINENO: creating $ac_file" >&5
27124 echo "$as_me: creating $ac_file" >&6;}
27127 # Let's still pretend it is `configure' which instantiates (i.e., don't
27128 # use $as_me), people would be surprised to read:
27129 # /* config.h. Generated by config.status. */
27130 if test x"$ac_file" = x-; then
27133 configure_input="$ac_file. "
27135 configure_input=$configure_input"Generated from `echo $ac_file_in |
27136 sed 's,.*/,,'` by configure."
27138 # First look for the input files in the build tree, otherwise in the
27140 ac_file_inputs=`IFS=:
27141 for f in $ac_file_in; do
27143 -) echo $tmp/stdin ;;
27145 # Absolute (can't be DOS-style, as IFS=:)
27146 test -f "$f" || { { echo "$as_me:$LINENO: error: cannot find input file: $f" >&5
27147 echo "$as_me: error: cannot find input file: $f" >&2;}
27148 { (exit 1); exit 1; }; }
27151 if test -f "$f"; then
27154 elif test -f "$srcdir/$f"; then
27159 { { echo "$as_me:$LINENO: error: cannot find input file: $f" >&5
27160 echo "$as_me: error: cannot find input file: $f" >&2;}
27161 { (exit 1); exit 1; }; }
27164 done` || { (exit 1); exit 1; }
27166 cat >>$CONFIG_STATUS <<_ACEOF
27170 cat >>$CONFIG_STATUS <<\_ACEOF
27172 /@[a-zA-Z_][a-zA-Z_0-9]*@/!b
27173 s,@configure_input@,$configure_input,;t t
27174 s,@srcdir@,$ac_srcdir,;t t
27175 s,@abs_srcdir@,$ac_abs_srcdir,;t t
27176 s,@top_srcdir@,$ac_top_srcdir,;t t
27177 s,@abs_top_srcdir@,$ac_abs_top_srcdir,;t t
27178 s,@builddir@,$ac_builddir,;t t
27179 s,@abs_builddir@,$ac_abs_builddir,;t t
27180 s,@top_builddir@,$ac_top_builddir,;t t
27181 s,@abs_top_builddir@,$ac_abs_top_builddir,;t t
27182 s,@INSTALL@,$ac_INSTALL,;t t
27183 " $ac_file_inputs | (eval "$ac_sed_cmds") >$tmp/out
27185 if test x"$ac_file" != x-; then
27186 mv $tmp/out $ac_file
27194 cat >>$CONFIG_STATUS <<\_ACEOF
27197 # CONFIG_HEADER section.
27200 # These sed commands are passed to sed as "A NAME B NAME C VALUE D", where
27201 # NAME is the cpp macro being defined and VALUE is the value it is being given.
27203 # ac_d sets the value in "#define NAME VALUE" lines.
27204 ac_dA='s,^\([ ]*\)#\([ ]*define[ ][ ]*\)'
27205 ac_dB='[ ].*$,\1#\2'
27208 # ac_u turns "#undef NAME" without trailing blanks into "#define NAME VALUE".
27209 ac_uA='s,^\([ ]*\)#\([ ]*\)undef\([ ][ ]*\)'
27210 ac_uB='$,\1#\2define\3'
27214 for ac_file in : $CONFIG_HEADERS; do test "x$ac_file" = x: && continue
27215 # Support "outfile[:infile[:infile...]]", defaulting infile="outfile.in".
27217 - | *:- | *:-:* ) # input from stdin
27219 ac_file_in=`echo "$ac_file" | sed 's,[^:]*:,,'`
27220 ac_file=`echo "$ac_file" | sed 's,:.*,,'` ;;
27221 *:* ) ac_file_in=`echo "$ac_file" | sed 's,[^:]*:,,'`
27222 ac_file=`echo "$ac_file" | sed 's,:.*,,'` ;;
27223 * ) ac_file_in=$ac_file.in ;;
27226 test x"$ac_file" != x- && { echo "$as_me:$LINENO: creating $ac_file" >&5
27227 echo "$as_me: creating $ac_file" >&6;}
27229 # First look for the input files in the build tree, otherwise in the
27231 ac_file_inputs=`IFS=:
27232 for f in $ac_file_in; do
27234 -) echo $tmp/stdin ;;
27236 # Absolute (can't be DOS-style, as IFS=:)
27237 test -f "$f" || { { echo "$as_me:$LINENO: error: cannot find input file: $f" >&5
27238 echo "$as_me: error: cannot find input file: $f" >&2;}
27239 { (exit 1); exit 1; }; }
27240 # Do quote $f, to prevent DOS paths from being IFS'd.
27243 if test -f "$f"; then
27246 elif test -f "$srcdir/$f"; then
27251 { { echo "$as_me:$LINENO: error: cannot find input file: $f" >&5
27252 echo "$as_me: error: cannot find input file: $f" >&2;}
27253 { (exit 1); exit 1; }; }
27256 done` || { (exit 1); exit 1; }
27257 # Remove the trailing spaces.
27258 sed 's/[ ]*$//' $ac_file_inputs >$tmp/in
27262 # Transform confdefs.h into two sed scripts, `conftest.defines' and
27263 # `conftest.undefs', that substitutes the proper values into
27264 # config.h.in to produce config.h. The first handles `#define'
27265 # templates, and the second `#undef' templates.
27266 # And first: Protect against being on the right side of a sed subst in
27267 # config.status. Protect against being in an unquoted here document
27268 # in config.status.
27269 rm -f conftest.defines conftest.undefs
27270 # Using a here document instead of a string reduces the quoting nightmare.
27271 # Putting comments in sed scripts is not portable.
27273 # `end' is used to avoid that the second main sed command (meant for
27274 # 0-ary CPP macros) applies to n-ary macro definitions.
27275 # See the Autoconf documentation for `clear'.
27276 cat >confdef2sed.sed <<\_ACEOF
27281 s,^[ ]*#[ ]*define[ ][ ]*\([^ (][^ (]*\)\(([^)]*)\)[ ]*\(.*\)$,${ac_dA}\1${ac_dB}\1\2${ac_dC}\3${ac_dD},gp
27283 s,^[ ]*#[ ]*define[ ][ ]*\([^ ][^ ]*\)[ ]*\(.*\)$,${ac_dA}\1${ac_dB}\1${ac_dC}\2${ac_dD},gp
27286 # If some macros were called several times there might be several times
27287 # the same #defines, which is useless. Nevertheless, we may not want to
27288 # sort them, since we want the *last* AC-DEFINE to be honored.
27289 uniq confdefs.h | sed -n -f confdef2sed.sed >conftest.defines
27290 sed 's/ac_d/ac_u/g' conftest.defines >conftest.undefs
27291 rm -f confdef2sed.sed
27293 # This sed command replaces #undef with comments. This is necessary, for
27294 # example, in the case of _POSIX_SOURCE, which is predefined and required
27295 # on some systems where configure will not decide to define it.
27296 cat >>conftest.undefs <<\_ACEOF
27297 s,^[ ]*#[ ]*undef[ ][ ]*[a-zA-Z_][a-zA-Z_0-9]*,/* & */,
27300 # Break up conftest.defines because some shells have a limit on the size
27301 # of here documents, and old seds have small limits too (100 cmds).
27302 echo ' # Handle all the #define templates only if necessary.' >>$CONFIG_STATUS
27303 echo ' if grep "^[ ]*#[ ]*define" $tmp/in >/dev/null; then' >>$CONFIG_STATUS
27304 echo ' # If there are no defines, we may have an empty if/fi' >>$CONFIG_STATUS
27305 echo ' :' >>$CONFIG_STATUS
27306 rm -f conftest.tail
27307 while grep . conftest.defines >/dev/null
27309 # Write a limited-size here document to $tmp/defines.sed.
27310 echo ' cat >$tmp/defines.sed <<CEOF' >>$CONFIG_STATUS
27311 # Speed up: don't consider the non `#define' lines.
27312 echo '/^[ ]*#[ ]*define/!b' >>$CONFIG_STATUS
27313 # Work around the forget-to-reset-the-flag bug.
27314 echo 't clr' >>$CONFIG_STATUS
27315 echo ': clr' >>$CONFIG_STATUS
27316 sed ${ac_max_here_lines}q conftest.defines >>$CONFIG_STATUS
27318 sed -f $tmp/defines.sed $tmp/in >$tmp/out
27320 mv $tmp/out $tmp/in
27322 sed 1,${ac_max_here_lines}d conftest.defines >conftest.tail
27323 rm -f conftest.defines
27324 mv conftest.tail conftest.defines
27326 rm -f conftest.defines
27327 echo ' fi # grep' >>$CONFIG_STATUS
27328 echo >>$CONFIG_STATUS
27330 # Break up conftest.undefs because some shells have a limit on the size
27331 # of here documents, and old seds have small limits too (100 cmds).
27332 echo ' # Handle all the #undef templates' >>$CONFIG_STATUS
27333 rm -f conftest.tail
27334 while grep . conftest.undefs >/dev/null
27336 # Write a limited-size here document to $tmp/undefs.sed.
27337 echo ' cat >$tmp/undefs.sed <<CEOF' >>$CONFIG_STATUS
27338 # Speed up: don't consider the non `#undef'
27339 echo '/^[ ]*#[ ]*undef/!b' >>$CONFIG_STATUS
27340 # Work around the forget-to-reset-the-flag bug.
27341 echo 't clr' >>$CONFIG_STATUS
27342 echo ': clr' >>$CONFIG_STATUS
27343 sed ${ac_max_here_lines}q conftest.undefs >>$CONFIG_STATUS
27345 sed -f $tmp/undefs.sed $tmp/in >$tmp/out
27347 mv $tmp/out $tmp/in
27349 sed 1,${ac_max_here_lines}d conftest.undefs >conftest.tail
27350 rm -f conftest.undefs
27351 mv conftest.tail conftest.undefs
27353 rm -f conftest.undefs
27355 cat >>$CONFIG_STATUS <<\_ACEOF
27356 # Let's still pretend it is `configure' which instantiates (i.e., don't
27357 # use $as_me), people would be surprised to read:
27358 # /* config.h. Generated by config.status. */
27359 if test x"$ac_file" = x-; then
27360 echo "/* Generated by configure. */" >$tmp/config.h
27362 echo "/* $ac_file. Generated by configure. */" >$tmp/config.h
27364 cat $tmp/in >>$tmp/config.h
27366 if test x"$ac_file" != x-; then
27367 if diff $ac_file $tmp/config.h >/dev/null 2>&1; then
27368 { echo "$as_me:$LINENO: $ac_file is unchanged" >&5
27369 echo "$as_me: $ac_file is unchanged" >&6;}
27371 ac_dir=`(dirname "$ac_file") 2>/dev/null ||
27372 $as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
27373 X"$ac_file" : 'X\(//\)[^/]' \| \
27374 X"$ac_file" : 'X\(//\)$' \| \
27375 X"$ac_file" : 'X\(/\)' \| \
27376 . : '\(.\)' 2>/dev/null ||
27378 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
27379 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
27380 /^X\(\/\/\)$/{ s//\1/; q; }
27381 /^X\(\/\).*/{ s//\1/; q; }
27383 { if $as_mkdir_p; then
27388 while test ! -d "$as_dir"; do
27389 as_dirs="$as_dir $as_dirs"
27390 as_dir=`(dirname "$as_dir") 2>/dev/null ||
27391 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
27392 X"$as_dir" : 'X\(//\)[^/]' \| \
27393 X"$as_dir" : 'X\(//\)$' \| \
27394 X"$as_dir" : 'X\(/\)' \| \
27395 . : '\(.\)' 2>/dev/null ||
27397 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
27398 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
27399 /^X\(\/\/\)$/{ s//\1/; q; }
27400 /^X\(\/\).*/{ s//\1/; q; }
27403 test ! -n "$as_dirs" || mkdir $as_dirs
27404 fi || { { echo "$as_me:$LINENO: error: cannot create directory \"$ac_dir\"" >&5
27405 echo "$as_me: error: cannot create directory \"$ac_dir\"" >&2;}
27406 { (exit 1); exit 1; }; }; }
27409 mv $tmp/config.h $ac_file
27413 rm -f $tmp/config.h
27415 # Compute $ac_file's index in $config_headers.
27417 for _am_header in $config_headers :; do
27418 case $_am_header in
27419 $ac_file | $ac_file:* )
27422 _am_stamp_count=`expr $_am_stamp_count + 1` ;;
27425 echo "timestamp for $ac_file" >`(dirname $ac_file) 2>/dev/null ||
27426 $as_expr X$ac_file : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
27427 X$ac_file : 'X\(//\)[^/]' \| \
27428 X$ac_file : 'X\(//\)$' \| \
27429 X$ac_file : 'X\(/\)' \| \
27430 . : '\(.\)' 2>/dev/null ||
27432 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
27433 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
27434 /^X\(\/\/\)$/{ s//\1/; q; }
27435 /^X\(\/\).*/{ s//\1/; q; }
27436 s/.*/./; q'`/stamp-h$_am_stamp_count
27439 cat >>$CONFIG_STATUS <<\_ACEOF
27442 # CONFIG_LINKS section.
27445 for ac_file in : $CONFIG_LINKS; do test "x$ac_file" = x: && continue
27446 ac_dest=`echo "$ac_file" | sed 's,:.*,,'`
27447 ac_source=`echo "$ac_file" | sed 's,[^:]*:,,'`
27449 { echo "$as_me:$LINENO: linking $srcdir/$ac_source to $ac_dest" >&5
27450 echo "$as_me: linking $srcdir/$ac_source to $ac_dest" >&6;}
27452 if test ! -r $srcdir/$ac_source; then
27453 { { echo "$as_me:$LINENO: error: $srcdir/$ac_source: file not found" >&5
27454 echo "$as_me: error: $srcdir/$ac_source: file not found" >&2;}
27455 { (exit 1); exit 1; }; }
27459 # Make relative symlinks.
27460 ac_dest_dir=`(dirname "$ac_dest") 2>/dev/null ||
27461 $as_expr X"$ac_dest" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
27462 X"$ac_dest" : 'X\(//\)[^/]' \| \
27463 X"$ac_dest" : 'X\(//\)$' \| \
27464 X"$ac_dest" : 'X\(/\)' \| \
27465 . : '\(.\)' 2>/dev/null ||
27467 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
27468 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
27469 /^X\(\/\/\)$/{ s//\1/; q; }
27470 /^X\(\/\).*/{ s//\1/; q; }
27472 { if $as_mkdir_p; then
27473 mkdir -p "$ac_dest_dir"
27475 as_dir="$ac_dest_dir"
27477 while test ! -d "$as_dir"; do
27478 as_dirs="$as_dir $as_dirs"
27479 as_dir=`(dirname "$as_dir") 2>/dev/null ||
27480 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
27481 X"$as_dir" : 'X\(//\)[^/]' \| \
27482 X"$as_dir" : 'X\(//\)$' \| \
27483 X"$as_dir" : 'X\(/\)' \| \
27484 . : '\(.\)' 2>/dev/null ||
27486 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
27487 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
27488 /^X\(\/\/\)$/{ s//\1/; q; }
27489 /^X\(\/\).*/{ s//\1/; q; }
27492 test ! -n "$as_dirs" || mkdir $as_dirs
27493 fi || { { echo "$as_me:$LINENO: error: cannot create directory \"$ac_dest_dir\"" >&5
27494 echo "$as_me: error: cannot create directory \"$ac_dest_dir\"" >&2;}
27495 { (exit 1); exit 1; }; }; }
27499 if test "$ac_dest_dir" != .; then
27500 ac_dir_suffix=/`echo "$ac_dest_dir" | sed 's,^\.[\\/],,'`
27501 # A "../" for each directory in $ac_dir_suffix.
27502 ac_top_builddir=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,../,g'`
27504 ac_dir_suffix= ac_top_builddir=
27508 .) # No --srcdir option. We are building in place.
27510 if test -z "$ac_top_builddir"; then
27513 ac_top_srcdir=`echo $ac_top_builddir | sed 's,/$,,'`
27515 [\\/]* | ?:[\\/]* ) # Absolute path.
27516 ac_srcdir=$srcdir$ac_dir_suffix;
27517 ac_top_srcdir=$srcdir ;;
27518 *) # Relative path.
27519 ac_srcdir=$ac_top_builddir$srcdir$ac_dir_suffix
27520 ac_top_srcdir=$ac_top_builddir$srcdir ;;
27523 # Do not use `cd foo && pwd` to compute absolute paths, because
27524 # the directories may not exist.
27526 .) ac_abs_builddir="$ac_dest_dir";;
27528 case "$ac_dest_dir" in
27529 .) ac_abs_builddir=`pwd`;;
27530 [\\/]* | ?:[\\/]* ) ac_abs_builddir="$ac_dest_dir";;
27531 *) ac_abs_builddir=`pwd`/"$ac_dest_dir";;
27534 case $ac_abs_builddir in
27535 .) ac_abs_top_builddir=${ac_top_builddir}.;;
27537 case ${ac_top_builddir}. in
27538 .) ac_abs_top_builddir=$ac_abs_builddir;;
27539 [\\/]* | ?:[\\/]* ) ac_abs_top_builddir=${ac_top_builddir}.;;
27540 *) ac_abs_top_builddir=$ac_abs_builddir/${ac_top_builddir}.;;
27543 case $ac_abs_builddir in
27544 .) ac_abs_srcdir=$ac_srcdir;;
27547 .) ac_abs_srcdir=$ac_abs_builddir;;
27548 [\\/]* | ?:[\\/]* ) ac_abs_srcdir=$ac_srcdir;;
27549 *) ac_abs_srcdir=$ac_abs_builddir/$ac_srcdir;;
27552 case $ac_abs_builddir in
27553 .) ac_abs_top_srcdir=$ac_top_srcdir;;
27555 case $ac_top_srcdir in
27556 .) ac_abs_top_srcdir=$ac_abs_builddir;;
27557 [\\/]* | ?:[\\/]* ) ac_abs_top_srcdir=$ac_top_srcdir;;
27558 *) ac_abs_top_srcdir=$ac_abs_builddir/$ac_top_srcdir;;
27564 [\\/$]* | ?:[\\/]* ) ac_rel_source=$srcdir/$ac_source ;;
27565 *) ac_rel_source=$ac_top_builddir$srcdir/$ac_source ;;
27568 # Try a symlink, then a hard link, then a copy.
27569 ln -s $ac_rel_source $ac_dest 2>/dev/null ||
27570 ln $srcdir/$ac_source $ac_dest 2>/dev/null ||
27571 cp -p $srcdir/$ac_source $ac_dest ||
27572 { { echo "$as_me:$LINENO: error: cannot link or copy $srcdir/$ac_source to $ac_dest" >&5
27573 echo "$as_me: error: cannot link or copy $srcdir/$ac_source to $ac_dest" >&2;}
27574 { (exit 1); exit 1; }; }
27577 cat >>$CONFIG_STATUS <<\_ACEOF
27580 # CONFIG_COMMANDS section.
27582 for ac_file in : $CONFIG_COMMANDS; do test "x$ac_file" = x: && continue
27583 ac_dest=`echo "$ac_file" | sed 's,:.*,,'`
27584 ac_source=`echo "$ac_file" | sed 's,[^:]*:,,'`
27585 ac_dir=`(dirname "$ac_dest") 2>/dev/null ||
27586 $as_expr X"$ac_dest" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
27587 X"$ac_dest" : 'X\(//\)[^/]' \| \
27588 X"$ac_dest" : 'X\(//\)$' \| \
27589 X"$ac_dest" : 'X\(/\)' \| \
27590 . : '\(.\)' 2>/dev/null ||
27592 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
27593 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
27594 /^X\(\/\/\)$/{ s//\1/; q; }
27595 /^X\(\/\).*/{ s//\1/; q; }
27597 { if $as_mkdir_p; then
27602 while test ! -d "$as_dir"; do
27603 as_dirs="$as_dir $as_dirs"
27604 as_dir=`(dirname "$as_dir") 2>/dev/null ||
27605 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
27606 X"$as_dir" : 'X\(//\)[^/]' \| \
27607 X"$as_dir" : 'X\(//\)$' \| \
27608 X"$as_dir" : 'X\(/\)' \| \
27609 . : '\(.\)' 2>/dev/null ||
27611 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
27612 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
27613 /^X\(\/\/\)$/{ s//\1/; q; }
27614 /^X\(\/\).*/{ s//\1/; q; }
27617 test ! -n "$as_dirs" || mkdir $as_dirs
27618 fi || { { echo "$as_me:$LINENO: error: cannot create directory \"$ac_dir\"" >&5
27619 echo "$as_me: error: cannot create directory \"$ac_dir\"" >&2;}
27620 { (exit 1); exit 1; }; }; }
27624 if test "$ac_dir" != .; then
27625 ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'`
27626 # A "../" for each directory in $ac_dir_suffix.
27627 ac_top_builddir=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,../,g'`
27629 ac_dir_suffix= ac_top_builddir=
27633 .) # No --srcdir option. We are building in place.
27635 if test -z "$ac_top_builddir"; then
27638 ac_top_srcdir=`echo $ac_top_builddir | sed 's,/$,,'`
27640 [\\/]* | ?:[\\/]* ) # Absolute path.
27641 ac_srcdir=$srcdir$ac_dir_suffix;
27642 ac_top_srcdir=$srcdir ;;
27643 *) # Relative path.
27644 ac_srcdir=$ac_top_builddir$srcdir$ac_dir_suffix
27645 ac_top_srcdir=$ac_top_builddir$srcdir ;;
27648 # Do not use `cd foo && pwd` to compute absolute paths, because
27649 # the directories may not exist.
27651 .) ac_abs_builddir="$ac_dir";;
27654 .) ac_abs_builddir=`pwd`;;
27655 [\\/]* | ?:[\\/]* ) ac_abs_builddir="$ac_dir";;
27656 *) ac_abs_builddir=`pwd`/"$ac_dir";;
27659 case $ac_abs_builddir in
27660 .) ac_abs_top_builddir=${ac_top_builddir}.;;
27662 case ${ac_top_builddir}. in
27663 .) ac_abs_top_builddir=$ac_abs_builddir;;
27664 [\\/]* | ?:[\\/]* ) ac_abs_top_builddir=${ac_top_builddir}.;;
27665 *) ac_abs_top_builddir=$ac_abs_builddir/${ac_top_builddir}.;;
27668 case $ac_abs_builddir in
27669 .) ac_abs_srcdir=$ac_srcdir;;
27672 .) ac_abs_srcdir=$ac_abs_builddir;;
27673 [\\/]* | ?:[\\/]* ) ac_abs_srcdir=$ac_srcdir;;
27674 *) ac_abs_srcdir=$ac_abs_builddir/$ac_srcdir;;
27677 case $ac_abs_builddir in
27678 .) ac_abs_top_srcdir=$ac_top_srcdir;;
27680 case $ac_top_srcdir in
27681 .) ac_abs_top_srcdir=$ac_abs_builddir;;
27682 [\\/]* | ?:[\\/]* ) ac_abs_top_srcdir=$ac_top_srcdir;;
27683 *) ac_abs_top_srcdir=$ac_abs_builddir/$ac_top_srcdir;;
27688 { echo "$as_me:$LINENO: executing $ac_dest commands" >&5
27689 echo "$as_me: executing $ac_dest commands" >&6;}
27691 depdir ) $SHELL $ac_aux_dir/mkinstalldirs $DEPDIR ;;
27692 depfiles ) test x"$AMDEP_TRUE" != x"" || for mf in $CONFIG_FILES; do
27693 # Strip MF so we end up with the name of the file.
27694 mf=`echo "$mf" | sed -e 's/:.*$//'`
27695 # Check whether this is an Automake generated Makefile or not.
27696 # We used to match only the files named `Makefile.in', but
27697 # some people rename them; so instead we look at the file content.
27698 # Grep'ing the first line is not enough: some people post-process
27699 # each Makefile.in and add a new line on top of each file to say so.
27700 # So let's grep whole file.
27701 if grep '^#.*generated by automake' $mf > /dev/null 2>&1; then
27702 dirpart=`(dirname "$mf") 2>/dev/null ||
27703 $as_expr X"$mf" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
27704 X"$mf" : 'X\(//\)[^/]' \| \
27705 X"$mf" : 'X\(//\)$' \| \
27706 X"$mf" : 'X\(/\)' \| \
27707 . : '\(.\)' 2>/dev/null ||
27709 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
27710 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
27711 /^X\(\/\/\)$/{ s//\1/; q; }
27712 /^X\(\/\).*/{ s//\1/; q; }
27717 # Extract the definition of DEPDIR, am__include, and am__quote
27718 # from the Makefile without running `make'.
27719 DEPDIR=`sed -n 's/^DEPDIR = //p' < "$mf"`
27720 test -z "$DEPDIR" && continue
27721 am__include=`sed -n 's/^am__include = //p' < "$mf"`
27722 test -z "am__include" && continue
27723 am__quote=`sed -n 's/^am__quote = //p' < "$mf"`
27724 # When using ansi2knr, U may be empty or an underscore; expand it
27725 U=`sed -n 's/^U = //p' < "$mf"`
27726 # Find all dependency output files, they are included files with
27727 # $(DEPDIR) in their names. We invoke sed twice because it is the
27728 # simplest approach to changing $(DEPDIR) to its actual value in the
27730 for file in `sed -n "
27731 s/^$am__include $am__quote\(.*(DEPDIR).*\)$am__quote"'$/\1/p' <"$mf" | \
27732 sed -e 's/\$(DEPDIR)/'"$DEPDIR"'/g' -e 's/\$U/'"$U"'/g'`; do
27733 # Make sure the directory exists.
27734 test -f "$dirpart/$file" && continue
27735 fdir=`(dirname "$file") 2>/dev/null ||
27736 $as_expr X"$file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
27737 X"$file" : 'X\(//\)[^/]' \| \
27738 X"$file" : 'X\(//\)$' \| \
27739 X"$file" : 'X\(/\)' \| \
27740 . : '\(.\)' 2>/dev/null ||
27742 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
27743 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
27744 /^X\(\/\/\)$/{ s//\1/; q; }
27745 /^X\(\/\).*/{ s//\1/; q; }
27747 { if $as_mkdir_p; then
27748 mkdir -p $dirpart/$fdir
27750 as_dir=$dirpart/$fdir
27752 while test ! -d "$as_dir"; do
27753 as_dirs="$as_dir $as_dirs"
27754 as_dir=`(dirname "$as_dir") 2>/dev/null ||
27755 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
27756 X"$as_dir" : 'X\(//\)[^/]' \| \
27757 X"$as_dir" : 'X\(//\)$' \| \
27758 X"$as_dir" : 'X\(/\)' \| \
27759 . : '\(.\)' 2>/dev/null ||
27761 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
27762 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
27763 /^X\(\/\/\)$/{ s//\1/; q; }
27764 /^X\(\/\).*/{ s//\1/; q; }
27767 test ! -n "$as_dirs" || mkdir $as_dirs
27768 fi || { { echo "$as_me:$LINENO: error: cannot create directory $dirpart/$fdir" >&5
27769 echo "$as_me: error: cannot create directory $dirpart/$fdir" >&2;}
27770 { (exit 1); exit 1; }; }; }
27772 # echo "creating $dirpart/$file"
27773 echo '# dummy' > "$dirpart/$file"
27779 sed -e '/^NAT_FILE[ ]*=/s,^NAT_FILE[ ]*=[ ]*,&config/'"${gdb_host_cpu}"'/,' <Makefile >Makefile.tmp
27780 mv -f Makefile.tmp Makefile
27783 case x$CONFIG_HEADERS in
27784 xconfig.h:config.in)
27792 cat >>$CONFIG_STATUS <<\_ACEOF
27794 { (exit 0); exit 0; }
27796 chmod +x $CONFIG_STATUS
27797 ac_clean_files=$ac_clean_files_save
27800 # configure is writing to config.log, and then calls config.status.
27801 # config.status does its own redirection, appending to config.log.
27802 # Unfortunately, on DOS this fails, as config.log is still kept open
27803 # by configure, so config.status won't be able to write to it; its
27804 # output is simply discarded. So we exec the FD to /dev/null,
27805 # effectively closing config.log, so it can be properly (re)opened and
27806 # appended to by config.status. When coming back to configure, we
27807 # need to make the FD available again.
27808 if test "$no_create" != yes; then
27810 ac_config_status_args=
27811 test "$silent" = yes &&
27812 ac_config_status_args="$ac_config_status_args --quiet"
27814 $SHELL $CONFIG_STATUS $ac_config_status_args || ac_cs_success=false
27816 # Use ||, not &&, to avoid exiting from the if with $? = 1, which
27817 # would make configure fail if this is the last instruction.
27818 $ac_cs_success || { (exit 1); exit 1; }
27822 # CONFIG_SUBDIRS section, as fixed in confsubdir.m4.
27824 if test "$no_recursion" != yes; then
27826 # Remove --cache-file and --srcdir arguments so they do not pile up.
27827 ac_sub_configure_args=
27829 eval "set x $ac_configure_args"
27833 if test -n "$ac_prev"; then
27838 -cache-file | --cache-file | --cache-fil | --cache-fi \
27839 | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c)
27840 ac_prev=cache_file ;;
27841 -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \
27842 | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* \
27845 --config-cache | -C)
27847 -srcdir | --srcdir | --srcdi | --srcd | --src | --sr)
27849 -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*)
27851 -prefix | --prefix | --prefi | --pref | --pre | --pr | --p)
27853 -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*)
27857 *\'*) ac_arg=`echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;;
27859 ac_sub_configure_args="$ac_sub_configure_args '$ac_arg'" ;;
27863 # Always prepend --prefix to ensure using the same prefix
27864 # in subdir configurations.
27865 ac_arg="--prefix=$prefix"
27867 *\'*) ac_arg=`echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;;
27869 ac_sub_configure_args="$ac_arg $ac_sub_configure_args"
27872 for ac_dir in : $subdirs; do test "x$ac_dir" = x: && continue
27874 # Do not complain, so a configure script can configure whichever
27875 # parts of a large source tree are present.
27876 test -d "$srcdir/$ac_dir" || continue
27878 { echo "$as_me:$LINENO: configuring in $ac_dir" >&5
27879 echo "$as_me: configuring in $ac_dir" >&6;}
27880 { if $as_mkdir_p; then
27885 while test ! -d "$as_dir"; do
27886 as_dirs="$as_dir $as_dirs"
27887 as_dir=`(dirname "$as_dir") 2>/dev/null ||
27888 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
27889 X"$as_dir" : 'X\(//\)[^/]' \| \
27890 X"$as_dir" : 'X\(//\)$' \| \
27891 X"$as_dir" : 'X\(/\)' \| \
27892 . : '\(.\)' 2>/dev/null ||
27894 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
27895 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
27896 /^X\(\/\/\)$/{ s//\1/; q; }
27897 /^X\(\/\).*/{ s//\1/; q; }
27900 test ! -n "$as_dirs" || mkdir $as_dirs
27901 fi || { { echo "$as_me:$LINENO: error: cannot create directory \"$ac_dir\"" >&5
27902 echo "$as_me: error: cannot create directory \"$ac_dir\"" >&2;}
27903 { (exit 1); exit 1; }; }; }
27907 if test "$ac_dir" != .; then
27908 ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'`
27909 # A "../" for each directory in $ac_dir_suffix.
27910 ac_top_builddir=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,../,g'`
27912 ac_dir_suffix= ac_top_builddir=
27916 .) # No --srcdir option. We are building in place.
27918 if test -z "$ac_top_builddir"; then
27921 ac_top_srcdir=`echo $ac_top_builddir | sed 's,/$,,'`
27923 [\\/]* | ?:[\\/]* ) # Absolute path.
27924 ac_srcdir=$srcdir$ac_dir_suffix;
27925 ac_top_srcdir=$srcdir ;;
27926 *) # Relative path.
27927 ac_srcdir=$ac_top_builddir$srcdir$ac_dir_suffix
27928 ac_top_srcdir=$ac_top_builddir$srcdir ;;
27931 # Do not use `cd foo && pwd` to compute absolute paths, because
27932 # the directories may not exist.
27934 .) ac_abs_builddir="$ac_dir";;
27937 .) ac_abs_builddir=`pwd`;;
27938 [\\/]* | ?:[\\/]* ) ac_abs_builddir="$ac_dir";;
27939 *) ac_abs_builddir=`pwd`/"$ac_dir";;
27942 case $ac_abs_builddir in
27943 .) ac_abs_top_builddir=${ac_top_builddir}.;;
27945 case ${ac_top_builddir}. in
27946 .) ac_abs_top_builddir=$ac_abs_builddir;;
27947 [\\/]* | ?:[\\/]* ) ac_abs_top_builddir=${ac_top_builddir}.;;
27948 *) ac_abs_top_builddir=$ac_abs_builddir/${ac_top_builddir}.;;
27951 case $ac_abs_builddir in
27952 .) ac_abs_srcdir=$ac_srcdir;;
27955 .) ac_abs_srcdir=$ac_abs_builddir;;
27956 [\\/]* | ?:[\\/]* ) ac_abs_srcdir=$ac_srcdir;;
27957 *) ac_abs_srcdir=$ac_abs_builddir/$ac_srcdir;;
27960 case $ac_abs_builddir in
27961 .) ac_abs_top_srcdir=$ac_top_srcdir;;
27963 case $ac_top_srcdir in
27964 .) ac_abs_top_srcdir=$ac_abs_builddir;;
27965 [\\/]* | ?:[\\/]* ) ac_abs_top_srcdir=$ac_top_srcdir;;
27966 *) ac_abs_top_srcdir=$ac_abs_builddir/$ac_top_srcdir;;
27973 # Check for guested configure; otherwise get Cygnus style configure.
27974 if test -f "$ac_srcdir/configure.gnu"; then
27975 ac_sub_configure=$ac_srcdir/configure.gnu
27976 elif test -f "$ac_srcdir/configure"; then
27977 ac_sub_configure=$ac_srcdir/configure
27978 elif test -f "$ac_srcdir/configure.in"; then
27979 # This should be Cygnus configure.
27980 ac_sub_configure=$ac_aux_dir/configure
27982 { echo "$as_me:$LINENO: WARNING: no configuration information is in $ac_dir" >&5
27983 echo "$as_me: WARNING: no configuration information is in $ac_dir" >&2;}
27987 # The recursion is here.
27988 if test -n "$ac_sub_configure"; then
27989 # Make the cache file name correct relative to the subdirectory.
27990 case $cache_file in
27991 [\\/]* | ?:[\\/]* ) ac_sub_cache_file=$cache_file ;;
27992 *) # Relative path.
27993 ac_sub_cache_file=$ac_top_builddir$cache_file ;;
27996 { echo "$as_me:$LINENO: running $SHELL $ac_sub_configure $ac_sub_configure_args --cache-file=$ac_sub_cache_file --srcdir=$ac_srcdir" >&5
27997 echo "$as_me: running $SHELL $ac_sub_configure $ac_sub_configure_args --cache-file=$ac_sub_cache_file --srcdir=$ac_srcdir" >&6;}
27998 # The eval makes quoting arguments work.
27999 eval "\$SHELL \"\$ac_sub_configure\" $ac_sub_configure_args \
28000 --cache-file=\"\$ac_sub_cache_file\" --srcdir=\"\$ac_srcdir\"" ||
28001 { { echo "$as_me:$LINENO: error: $ac_sub_configure failed for $ac_dir" >&5
28002 echo "$as_me: error: $ac_sub_configure failed for $ac_dir" >&2;}
28003 { (exit 1); exit 1; }; }