2 # Guess values for system-dependent variables and create Makefiles.
3 # Generated by GNU Autoconf 2.59.
5 # Copyright (C) 2003 Free Software Foundation, Inc.
6 # This configure script is free software; the Free Software Foundation
7 # gives unlimited permission to copy, distribute and modify it.
8 ## --------------------- ##
9 ## M4sh Initialization. ##
10 ## --------------------- ##
12 # Be Bourne compatible
13 if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then
16 # Zsh 3.x and 4.x performs word splitting on ${1+"$@"}, which
17 # is contrary to our usage. Disable this feature.
18 alias -g '${1+"$@"}'='"$@"'
19 elif test -n "${BASH_VERSION+set}" && (set -o posix) >/dev/null 2>&1; then
22 DUALCASE=1; export DUALCASE # for MKS sh
24 # Support unset when possible.
25 if ( (MAIL=60; unset MAIL) || exit) >/dev/null 2>&1; then
32 # Work around bugs in pre-3.0 UWIN ksh.
33 $as_unset ENV MAIL MAILPATH
40 LANG LANGUAGE LC_ADDRESS LC_ALL LC_COLLATE LC_CTYPE LC_IDENTIFICATION \
41 LC_MEASUREMENT LC_MESSAGES LC_MONETARY LC_NAME LC_NUMERIC LC_PAPER \
44 if (set +x; test -z "`(eval $as_var=C; export $as_var) 2>&1`"); then
45 eval $as_var=C; export $as_var
51 # Required to use basename.
52 if expr a : '\(a\)' >/dev/null 2>&1; then
58 if (basename /) >/dev/null 2>&1 && test "X`basename / 2>&1`" = "X/"; then
65 # Name of the executable.
66 as_me=`$as_basename "$0" ||
67 $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
68 X"$0" : 'X\(//\)$' \| \
69 X"$0" : 'X\(/\)$' \| \
70 . : '\(.\)' 2>/dev/null ||
72 sed '/^.*\/\([^/][^/]*\)\/*$/{ s//\1/; q; }
73 /^X\/\(\/\/\)$/{ s//\1/; q; }
74 /^X\/\(\/\).*/{ s//\1/; q; }
78 # PATH needs CR, and LINENO needs CR and PATH.
79 # Avoid depending upon Character Ranges.
80 as_cr_letters='abcdefghijklmnopqrstuvwxyz'
81 as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
82 as_cr_Letters=$as_cr_letters$as_cr_LETTERS
83 as_cr_digits='0123456789'
84 as_cr_alnum=$as_cr_Letters$as_cr_digits
86 # The user is always right.
87 if test "${PATH_SEPARATOR+set}" != set; then
88 echo "#! /bin/sh" >conf$$.sh
89 echo "exit 0" >>conf$$.sh
91 if (PATH="/nonexistent;."; conf$$.sh) >/dev/null 2>&1; then
102 as_lineno_3=`(expr $as_lineno_1 + 1) 2>/dev/null`
103 test "x$as_lineno_1" != "x$as_lineno_2" &&
104 test "x$as_lineno_3" = "x$as_lineno_2" || {
105 # Find who we are. Look in the path if we contain no path at all
108 *[\\/]* ) as_myself=$0 ;;
109 *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
113 test -z "$as_dir" && as_dir=.
114 test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
119 # We did not find ourselves, most probably we were run as `sh COMMAND'
120 # in which case we are not to be found in the path.
121 if test "x$as_myself" = x; then
124 if test ! -f "$as_myself"; then
125 { echo "$as_me: error: cannot find myself; rerun with an absolute path" >&2
126 { (exit 1); exit 1; }; }
128 case $CONFIG_SHELL in
130 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
131 for as_dir in /bin$PATH_SEPARATOR/usr/bin$PATH_SEPARATOR$PATH
134 test -z "$as_dir" && as_dir=.
135 for as_base in sh bash ksh sh5; do
138 if ("$as_dir/$as_base" -c '
141 as_lineno_3=`(expr $as_lineno_1 + 1) 2>/dev/null`
142 test "x$as_lineno_1" != "x$as_lineno_2" &&
143 test "x$as_lineno_3" = "x$as_lineno_2" ') 2>/dev/null; then
144 $as_unset BASH_ENV || test "${BASH_ENV+set}" != set || { BASH_ENV=; export BASH_ENV; }
145 $as_unset ENV || test "${ENV+set}" != set || { ENV=; export ENV; }
146 CONFIG_SHELL=$as_dir/$as_base
148 exec "$CONFIG_SHELL" "$0" ${1+"$@"}
156 # Create $as_me.lineno as a copy of $as_myself, but with $LINENO
157 # uniformly replaced by the line number. The first 'sed' inserts a
158 # line-number line before each line; the second 'sed' does the real
159 # work. The second script uses 'N' to pair each line-number line
160 # with the numbered line, and appends trailing '-' during
161 # substitution so that $LINENO is not a special case at line end.
162 # (Raja R Harinath suggested sed '=', and Paul Eggert wrote the
163 # second 'sed' script. Blame Lee E. McMahon for sed's syntax. :-)
164 sed '=' <$as_myself |
169 s,^\(['$as_cr_digits']*\)\(.*\)[$]LINENO\([^'$as_cr_alnum'_]\),\1\2\1\3,
172 s,^['$as_cr_digits']*\n,,
174 chmod +x $as_me.lineno ||
175 { echo "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2
176 { (exit 1); exit 1; }; }
178 # Don't try to exec as it changes $[0], causing all sort of problems
179 # (the dirname of $[0] is not the place where we might find the
180 # original and so on. Autoconf is especially sensible to this).
182 # Exit status is that of the last command.
187 case `echo "testing\c"; echo 1,2,3`,`echo -n testing; echo 1,2,3` in
188 *c*,-n*) ECHO_N= ECHO_C='
190 *c*,* ) ECHO_N=-n ECHO_C= ECHO_T= ;;
191 *) ECHO_N= ECHO_C='\c' ECHO_T= ;;
194 if expr a : '\(a\)' >/dev/null 2>&1; then
200 rm -f conf$$ conf$$.exe conf$$.file
202 if ln -s conf$$.file conf$$ 2>/dev/null; then
203 # We could just check for DJGPP; but this test a) works b) is more generic
204 # and c) will remain valid once DJGPP supports symlinks (DJGPP 2.04).
205 if test -f conf$$.exe; then
206 # Don't use ln at all; we don't have any links
211 elif ln conf$$.file conf$$ 2>/dev/null; then
216 rm -f conf$$ conf$$.exe conf$$.file
218 if mkdir -p . 2>/dev/null; then
221 test -d ./-p && rmdir ./-p
225 as_executable_p="test -f"
227 # Sed expression to map a string onto a valid CPP name.
228 as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
230 # Sed expression to map a string onto a valid variable name.
231 as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
235 # We need space, tab and new line, in precisely that order.
245 # hostname on some systems (SVR3.2, Linux) returns a bogus exit status,
246 # so uname gets run too.
247 ac_hostname=`(hostname || uname -n) 2>/dev/null | sed 1q`
254 ac_default_prefix=/usr/local
255 ac_config_libobj_dir=.
260 SHELL=${CONFIG_SHELL-/bin/sh}
262 # Maximum number of lines to put in a shell here document.
263 # This variable seems obsolete. It should probably be removed, and
264 # only ac_max_sed_lines should be used.
265 : ${ac_max_here_lines=38}
267 # Identity of this package.
274 ac_unique_file="main.c"
275 # Factoring default headers for most tests.
276 ac_includes_default="\
279 # include <sys/types.h>
282 # include <sys/stat.h>
293 # if !STDC_HEADERS && HAVE_MEMORY_H
299 # include <strings.h>
302 # include <inttypes.h>
313 ac_subdirs_all="$ac_subdirs_all doc testsuite"
314 ac_subdirs_all="$ac_subdirs_all gdbtk"
315 ac_subdirs_all="$ac_subdirs_all multi-ice"
316 ac_subdirs_all="$ac_subdirs_all gdbserver"
317 ac_subst_vars='SHELL PATH_SEPARATOR PACKAGE_NAME PACKAGE_TARNAME PACKAGE_VERSION PACKAGE_STRING PACKAGE_BUGREPORT exec_prefix prefix program_transform_name bindir sbindir libexecdir datadir sysconfdir sharedstatedir localstatedir libdir includedir oldincludedir infodir mandir build_alias host_alias target_alias DEFS ECHO_C ECHO_N ECHO_T LIBS MAINTAINER_MODE_TRUE MAINTAINER_MODE_FALSE MAINT CC CFLAGS LDFLAGS CPPFLAGS ac_ct_CC EXEEXT OBJEXT CPP EGREP RANLIB ac_ct_RANLIB build build_cpu build_vendor build_os host host_cpu host_vendor host_os target target_cpu target_vendor target_os USE_NLS LIBINTL LIBINTL_DEP INCINTL XGETTEXT GMSGFMT POSUB CATALOGS DATADIRNAME INSTOBJEXT GENCAT CATOBJEXT localedir GL_COND_LIBTOOL_TRUE GL_COND_LIBTOOL_FALSE GNULIB_MEMMEM GNULIB_MEMPCPY GNULIB_MEMRCHR GNULIB_STPCPY GNULIB_STPNCPY GNULIB_STRCHRNUL GNULIB_STRDUP GNULIB_STRNDUP GNULIB_STRNLEN GNULIB_STRPBRK GNULIB_STRSEP GNULIB_STRSTR GNULIB_STRCASESTR GNULIB_STRTOK_R GNULIB_MBSLEN GNULIB_MBSNLEN GNULIB_MBSCHR GNULIB_MBSRCHR GNULIB_MBSSTR GNULIB_MBSCASECMP GNULIB_MBSNCASECMP GNULIB_MBSPCASECMP GNULIB_MBSCASESTR GNULIB_MBSCSPN GNULIB_MBSPBRK GNULIB_MBSSPN GNULIB_MBSSEP GNULIB_MBSTOK_R GNULIB_STRERROR GNULIB_STRSIGNAL HAVE_DECL_MEMMEM HAVE_MEMPCPY HAVE_DECL_MEMRCHR HAVE_STPCPY HAVE_STPNCPY HAVE_STRCHRNUL HAVE_DECL_STRDUP HAVE_STRNDUP HAVE_DECL_STRNDUP HAVE_DECL_STRNLEN HAVE_STRPBRK HAVE_STRSEP HAVE_STRCASESTR HAVE_DECL_STRTOK_R HAVE_DECL_STRERROR HAVE_DECL_STRSIGNAL REPLACE_STRERROR REPLACE_STRSIGNAL REPLACE_MEMMEM REPLACE_STRCASESTR REPLACE_STRSTR HAVE_LONG_LONG_INT HAVE_UNSIGNED_LONG_LONG_INT HAVE_INTTYPES_H HAVE_SYS_TYPES_H INCLUDE_NEXT NEXT_STDINT_H HAVE_STDINT_H HAVE_SYS_INTTYPES_H HAVE_SYS_BITYPES_H BITSIZEOF_PTRDIFF_T BITSIZEOF_SIG_ATOMIC_T BITSIZEOF_SIZE_T BITSIZEOF_WCHAR_T BITSIZEOF_WINT_T HAVE_SIGNED_SIG_ATOMIC_T HAVE_SIGNED_WCHAR_T HAVE_SIGNED_WINT_T PTRDIFF_T_SUFFIX SIG_ATOMIC_T_SUFFIX SIZE_T_SUFFIX WCHAR_T_SUFFIX WINT_T_SUFFIX STDINT_H NEXT_STRING_H GNULIB_WCWIDTH HAVE_DECL_WCWIDTH REPLACE_WCWIDTH WCHAR_H HAVE_WCHAR_H NEXT_WCHAR_H LIBGNU_LIBDEPS LIBGNU_LTLIBDEPS GNULIB_STDINT_H PACKAGE INSTALL_PROGRAM INSTALL_SCRIPT INSTALL_DATA CYGPATH_W VERSION ACLOCAL AUTOCONF AUTOMAKE AUTOHEADER MAKEINFO install_sh STRIP ac_ct_STRIP INSTALL_STRIP_PROGRAM mkdir_p AWK SET_MAKE am__leading_dot AMTAR am__tar am__untar DEPDIR am__include am__quote AMDEP_TRUE AMDEP_FALSE AMDEPBACKSLASH CCDEPMODE am__fastdepCC_TRUE am__fastdepCC_FALSE subdirs TARGET_OBS PKGVERSION REPORT_BUGS_TO REPORT_BUGS_TEXI LN_S YACC AR ac_ct_AR DLLTOOL ac_ct_DLLTOOL WINDRES ac_ct_WINDRES MIG ac_ct_MIG READLINE READLINE_DEPS READLINE_CFLAGS HAVE_LIBEXPAT LIBEXPAT LTLIBEXPAT ALLOCA CONFIG_LDFLAGS TARGET_SYSTEM_ROOT TARGET_SYSTEM_ROOT_DEFINE WARN_CFLAGS WERROR_CFLAGS SER_HARDWIRE WIN32LIBS LIBGUI GUI_CFLAGS_X WIN32LDAPP TCL_VERSION TCL_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 --without-included-regex don't use included regex; this is the default
894 on systems with version 2 of the GNU C library
895 (use with caution on other system)
896 --with-sysroot=DIR Search for usr/lib et al within DIR.
897 --with-tcl directory containing tcl configuration (tclConfig.sh)
898 --with-tk directory containing tk configuration (tkConfig.sh)
899 --with-x use the X Window System
900 --with-libiconv-prefix=DIR search for libiconv in DIR/include and DIR/lib
902 Some influential environment variables:
903 CC C compiler command
904 CFLAGS C compiler flags
905 LDFLAGS linker flags, e.g. -L<lib dir> if you have libraries in a
906 nonstandard directory <lib dir>
907 CPPFLAGS C/C++ preprocessor flags, e.g. -I<include dir> if you have
908 headers in a nonstandard directory <include dir>
911 Use these variables to override the choices made by `configure' or to help
912 it to find libraries and programs with nonstandard names/locations.
917 if test "$ac_init_help" = "recursive"; then
918 # If there are subdirs, report their specific --help.
920 for ac_dir in : $ac_subdirs_all; do test "x$ac_dir" = x: && continue
921 test -d $ac_dir || continue
924 if test "$ac_dir" != .; then
925 ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'`
926 # A "../" for each directory in $ac_dir_suffix.
927 ac_top_builddir=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,../,g'`
929 ac_dir_suffix= ac_top_builddir=
933 .) # No --srcdir option. We are building in place.
935 if test -z "$ac_top_builddir"; then
938 ac_top_srcdir=`echo $ac_top_builddir | sed 's,/$,,'`
940 [\\/]* | ?:[\\/]* ) # Absolute path.
941 ac_srcdir=$srcdir$ac_dir_suffix;
942 ac_top_srcdir=$srcdir ;;
944 ac_srcdir=$ac_top_builddir$srcdir$ac_dir_suffix
945 ac_top_srcdir=$ac_top_builddir$srcdir ;;
948 # Do not use `cd foo && pwd` to compute absolute paths, because
949 # the directories may not exist.
951 .) ac_abs_builddir="$ac_dir";;
954 .) ac_abs_builddir=`pwd`;;
955 [\\/]* | ?:[\\/]* ) ac_abs_builddir="$ac_dir";;
956 *) ac_abs_builddir=`pwd`/"$ac_dir";;
959 case $ac_abs_builddir in
960 .) ac_abs_top_builddir=${ac_top_builddir}.;;
962 case ${ac_top_builddir}. in
963 .) ac_abs_top_builddir=$ac_abs_builddir;;
964 [\\/]* | ?:[\\/]* ) ac_abs_top_builddir=${ac_top_builddir}.;;
965 *) ac_abs_top_builddir=$ac_abs_builddir/${ac_top_builddir}.;;
968 case $ac_abs_builddir in
969 .) ac_abs_srcdir=$ac_srcdir;;
972 .) ac_abs_srcdir=$ac_abs_builddir;;
973 [\\/]* | ?:[\\/]* ) ac_abs_srcdir=$ac_srcdir;;
974 *) ac_abs_srcdir=$ac_abs_builddir/$ac_srcdir;;
977 case $ac_abs_builddir in
978 .) ac_abs_top_srcdir=$ac_top_srcdir;;
980 case $ac_top_srcdir in
981 .) ac_abs_top_srcdir=$ac_abs_builddir;;
982 [\\/]* | ?:[\\/]* ) ac_abs_top_srcdir=$ac_top_srcdir;;
983 *) ac_abs_top_srcdir=$ac_abs_builddir/$ac_top_srcdir;;
988 # Check for guested configure; otherwise get Cygnus style configure.
989 if test -f $ac_srcdir/configure.gnu; then
991 $SHELL $ac_srcdir/configure.gnu --help=recursive
992 elif test -f $ac_srcdir/configure; then
994 $SHELL $ac_srcdir/configure --help=recursive
995 elif test -f $ac_srcdir/configure.ac ||
996 test -f $ac_srcdir/configure.in; then
1000 echo "$as_me: WARNING: no configuration information is in $ac_dir" >&2
1006 test -n "$ac_init_help" && exit 0
1007 if $ac_init_version; then
1010 Copyright (C) 2003 Free Software Foundation, Inc.
1011 This configure script is free software; the Free Software Foundation
1012 gives unlimited permission to copy, distribute and modify it.
1018 This file contains any messages produced by compilers while
1019 running configure, to aid debugging if configure makes a mistake.
1021 It was created by $as_me, which was
1022 generated by GNU Autoconf 2.59. Invocation command line was
1033 hostname = `(hostname || uname -n) 2>/dev/null | sed 1q`
1034 uname -m = `(uname -m) 2>/dev/null || echo unknown`
1035 uname -r = `(uname -r) 2>/dev/null || echo unknown`
1036 uname -s = `(uname -s) 2>/dev/null || echo unknown`
1037 uname -v = `(uname -v) 2>/dev/null || echo unknown`
1039 /usr/bin/uname -p = `(/usr/bin/uname -p) 2>/dev/null || echo unknown`
1040 /bin/uname -X = `(/bin/uname -X) 2>/dev/null || echo unknown`
1042 /bin/arch = `(/bin/arch) 2>/dev/null || echo unknown`
1043 /usr/bin/arch -k = `(/usr/bin/arch -k) 2>/dev/null || echo unknown`
1044 /usr/convex/getsysinfo = `(/usr/convex/getsysinfo) 2>/dev/null || echo unknown`
1045 hostinfo = `(hostinfo) 2>/dev/null || echo unknown`
1046 /bin/machine = `(/bin/machine) 2>/dev/null || echo unknown`
1047 /usr/bin/oslevel = `(/usr/bin/oslevel) 2>/dev/null || echo unknown`
1048 /bin/universe = `(/bin/universe) 2>/dev/null || echo unknown`
1052 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1056 test -z "$as_dir" && as_dir=.
1057 echo "PATH: $as_dir"
1072 # Keep a trace of the command line.
1073 # Strip out --no-create and --no-recursion so they do not pile up.
1074 # Strip out --silent because we don't want to record it for future runs.
1075 # Also quote any args containing shell meta-characters.
1076 # Make two passes to allow for proper duplicate-argument suppression.
1081 ac_must_keep_next=false
1087 -no-create | --no-c* | -n | -no-recursion | --no-r*) continue ;;
1088 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
1089 | -silent | --silent | --silen | --sile | --sil)
1091 *" "*|*" "*|*[\[\]\~\#\$\^\&\*\(\)\{\}\\\|\;\<\>\?\"\']*)
1092 ac_arg=`echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;;
1095 1) ac_configure_args0="$ac_configure_args0 '$ac_arg'" ;;
1097 ac_configure_args1="$ac_configure_args1 '$ac_arg'"
1098 if test $ac_must_keep_next = true; then
1099 ac_must_keep_next=false # Got value, back to normal.
1102 *=* | --config-cache | -C | -disable-* | --disable-* \
1103 | -enable-* | --enable-* | -gas | --g* | -nfp | --nf* \
1104 | -q | -quiet | --q* | -silent | --sil* | -v | -verb* \
1105 | -with-* | --with-* | -without-* | --without-* | --x)
1106 case "$ac_configure_args0 " in
1107 "$ac_configure_args1"*" '$ac_arg' "* ) continue ;;
1110 -* ) ac_must_keep_next=true ;;
1113 ac_configure_args="$ac_configure_args$ac_sep'$ac_arg'"
1114 # Get rid of the leading space.
1120 $as_unset ac_configure_args0 || test "${ac_configure_args0+set}" != set || { ac_configure_args0=; export ac_configure_args0; }
1121 $as_unset ac_configure_args1 || test "${ac_configure_args1+set}" != set || { ac_configure_args1=; export ac_configure_args1; }
1123 # When interrupted or exit'd, cleanup temporary files, and complete
1124 # config.log. We remove comments because anyway the quotes in there
1125 # would cause problems or look ugly.
1126 # WARNING: Be sure not to use single quotes in there, as some shells,
1127 # such as our DU 5.0 friend, will then `close' the trap.
1128 trap 'exit_status=$?
1129 # Save into config.log some information that might help in debugging.
1134 ## ---------------- ##
1135 ## Cache variables. ##
1136 ## ---------------- ##
1139 # The following way of writing the cache mishandles newlines in values,
1142 case `(ac_space='"'"' '"'"'; set | grep ac_space) 2>&1` in
1145 "s/'"'"'/'"'"'\\\\'"'"''"'"'/g;
1146 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='"'"'\\2'"'"'/p"
1150 "s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1=\\2/p"
1157 ## ----------------- ##
1158 ## Output variables. ##
1159 ## ----------------- ##
1162 for ac_var in $ac_subst_vars
1164 eval ac_val=$`echo $ac_var`
1165 echo "$ac_var='"'"'$ac_val'"'"'"
1169 if test -n "$ac_subst_files"; then
1176 for ac_var in $ac_subst_files
1178 eval ac_val=$`echo $ac_var`
1179 echo "$ac_var='"'"'$ac_val'"'"'"
1184 if test -s confdefs.h; then
1191 sed "/^$/d" confdefs.h | sort
1194 test "$ac_signal" != 0 &&
1195 echo "$as_me: caught signal $ac_signal"
1196 echo "$as_me: exit $exit_status"
1198 rm -f core *.core &&
1199 rm -rf conftest* confdefs* conf$$* $ac_clean_files &&
1202 for ac_signal in 1 2 13 15; do
1203 trap 'ac_signal='$ac_signal'; { (exit 1); exit 1; }' $ac_signal
1207 # confdefs.h avoids OS command line length limits that DEFS can exceed.
1208 rm -rf conftest* confdefs.h
1209 # AIX cpp loses on an empty file, so make sure it contains at least a newline.
1212 # Predefined preprocessor variables.
1214 cat >>confdefs.h <<_ACEOF
1215 #define PACKAGE_NAME "$PACKAGE_NAME"
1219 cat >>confdefs.h <<_ACEOF
1220 #define PACKAGE_TARNAME "$PACKAGE_TARNAME"
1224 cat >>confdefs.h <<_ACEOF
1225 #define PACKAGE_VERSION "$PACKAGE_VERSION"
1229 cat >>confdefs.h <<_ACEOF
1230 #define PACKAGE_STRING "$PACKAGE_STRING"
1234 cat >>confdefs.h <<_ACEOF
1235 #define PACKAGE_BUGREPORT "$PACKAGE_BUGREPORT"
1239 # Let the site file select an alternate cache file if it wants to.
1240 # Prefer explicitly selected file to automatically selected ones.
1241 if test -z "$CONFIG_SITE"; then
1242 if test "x$prefix" != xNONE; then
1243 CONFIG_SITE="$prefix/share/config.site $prefix/etc/config.site"
1245 CONFIG_SITE="$ac_default_prefix/share/config.site $ac_default_prefix/etc/config.site"
1248 for ac_site_file in $CONFIG_SITE; do
1249 if test -r "$ac_site_file"; then
1250 { echo "$as_me:$LINENO: loading site script $ac_site_file" >&5
1251 echo "$as_me: loading site script $ac_site_file" >&6;}
1252 sed 's/^/| /' "$ac_site_file" >&5
1257 if test -r "$cache_file"; then
1258 # Some versions of bash will fail to source /dev/null (special
1259 # files actually), so we avoid doing that.
1260 if test -f "$cache_file"; then
1261 { echo "$as_me:$LINENO: loading cache $cache_file" >&5
1262 echo "$as_me: loading cache $cache_file" >&6;}
1264 [\\/]* | ?:[\\/]* ) . $cache_file;;
1265 *) . ./$cache_file;;
1269 { echo "$as_me:$LINENO: creating cache $cache_file" >&5
1270 echo "$as_me: creating cache $cache_file" >&6;}
1274 # Check that the precious variables saved in the cache have kept the same
1276 ac_cache_corrupted=false
1277 for ac_var in `(set) 2>&1 |
1278 sed -n 's/^ac_env_\([a-zA-Z_0-9]*\)_set=.*/\1/p'`; do
1279 eval ac_old_set=\$ac_cv_env_${ac_var}_set
1280 eval ac_new_set=\$ac_env_${ac_var}_set
1281 eval ac_old_val="\$ac_cv_env_${ac_var}_value"
1282 eval ac_new_val="\$ac_env_${ac_var}_value"
1283 case $ac_old_set,$ac_new_set in
1285 { echo "$as_me:$LINENO: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&5
1286 echo "$as_me: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&2;}
1287 ac_cache_corrupted=: ;;
1289 { echo "$as_me:$LINENO: error: \`$ac_var' was not set in the previous run" >&5
1290 echo "$as_me: error: \`$ac_var' was not set in the previous run" >&2;}
1291 ac_cache_corrupted=: ;;
1294 if test "x$ac_old_val" != "x$ac_new_val"; then
1295 # differences in whitespace do not lead to failure.
1296 ac_old_val_w=`echo x $ac_old_val`
1297 ac_new_val_w=`echo x $ac_new_val`
1298 if test "$ac_old_val_w" != "$ac_new_val_w"; then
1299 { echo "$as_me:$LINENO: error: \`$ac_var' has changed since the previous run:" >&5
1300 echo "$as_me: error: \`$ac_var' has changed since the previous run:" >&2;}
1301 ac_cache_corrupted=:
1303 { echo "$as_me:$LINENO: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&5
1304 echo "$as_me: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&2;}
1305 eval $ac_var=\$ac_old_val
1307 { echo "$as_me:$LINENO: former value: \`$ac_old_val'" >&5
1308 echo "$as_me: former value: \`$ac_old_val'" >&2;}
1309 { echo "$as_me:$LINENO: current value: \`$ac_new_val'" >&5
1310 echo "$as_me: current value: \`$ac_new_val'" >&2;}
1313 # Pass precious variables to config.status.
1314 if test "$ac_new_set" = set; then
1316 *" "*|*" "*|*[\[\]\~\#\$\^\&\*\(\)\{\}\\\|\;\<\>\?\"\']*)
1317 ac_arg=$ac_var=`echo "$ac_new_val" | sed "s/'/'\\\\\\\\''/g"` ;;
1318 *) ac_arg=$ac_var=$ac_new_val ;;
1320 case " $ac_configure_args " in
1321 *" '$ac_arg' "*) ;; # Avoid dups. Use of quotes ensures accuracy.
1322 *) ac_configure_args="$ac_configure_args '$ac_arg'" ;;
1326 if $ac_cache_corrupted; then
1327 { echo "$as_me:$LINENO: error: in \`$ac_pwd':" >&5
1328 echo "$as_me: error: in \`$ac_pwd':" >&2;}
1329 { echo "$as_me:$LINENO: error: changes in the environment can compromise the build" >&5
1330 echo "$as_me: error: changes in the environment can compromise the build" >&2;}
1331 { { echo "$as_me:$LINENO: error: run \`make distclean' and/or \`rm $cache_file' and start over" >&5
1332 echo "$as_me: error: run \`make distclean' and/or \`rm $cache_file' and start over" >&2;}
1333 { (exit 1); exit 1; }; }
1337 ac_cpp='$CPP $CPPFLAGS'
1338 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
1339 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
1340 ac_compiler_gnu=$ac_cv_c_compiler_gnu
1343 gl_header_list="$gl_header_list stdint.h"
1344 gl_header_list="$gl_header_list wchar.h"
1345 gl_header_list="$gl_header_list string.h"
1366 ac_config_headers="$ac_config_headers config.h:config.in"
1368 echo "$as_me:$LINENO: checking whether to enable maintainer-specific portions of Makefiles" >&5
1369 echo $ECHO_N "checking whether to enable maintainer-specific portions of Makefiles... $ECHO_C" >&6
1370 # Check whether --enable-maintainer-mode or --disable-maintainer-mode was given.
1371 if test "${enable_maintainer_mode+set}" = set; then
1372 enableval="$enable_maintainer_mode"
1373 USE_MAINTAINER_MODE=$enableval
1375 USE_MAINTAINER_MODE=no
1377 echo "$as_me:$LINENO: result: $USE_MAINTAINER_MODE" >&5
1378 echo "${ECHO_T}$USE_MAINTAINER_MODE" >&6
1381 if test $USE_MAINTAINER_MODE = yes; then
1382 MAINTAINER_MODE_TRUE=
1383 MAINTAINER_MODE_FALSE='#'
1385 MAINTAINER_MODE_TRUE='#'
1386 MAINTAINER_MODE_FALSE=
1389 MAINT=$MAINTAINER_MODE_TRUE
1394 ac_cpp='$CPP $CPPFLAGS'
1395 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
1396 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
1397 ac_compiler_gnu=$ac_cv_c_compiler_gnu
1398 if test -n "$ac_tool_prefix"; then
1399 # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args.
1400 set dummy ${ac_tool_prefix}gcc; ac_word=$2
1401 echo "$as_me:$LINENO: checking for $ac_word" >&5
1402 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1403 if test "${ac_cv_prog_CC+set}" = set; then
1404 echo $ECHO_N "(cached) $ECHO_C" >&6
1406 if test -n "$CC"; then
1407 ac_cv_prog_CC="$CC" # Let the user override the test.
1409 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1413 test -z "$as_dir" && as_dir=.
1414 for ac_exec_ext in '' $ac_executable_extensions; do
1415 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1416 ac_cv_prog_CC="${ac_tool_prefix}gcc"
1417 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
1426 if test -n "$CC"; then
1427 echo "$as_me:$LINENO: result: $CC" >&5
1428 echo "${ECHO_T}$CC" >&6
1430 echo "$as_me:$LINENO: result: no" >&5
1431 echo "${ECHO_T}no" >&6
1435 if test -z "$ac_cv_prog_CC"; then
1437 # Extract the first word of "gcc", so it can be a program name with args.
1438 set dummy gcc; ac_word=$2
1439 echo "$as_me:$LINENO: checking for $ac_word" >&5
1440 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1441 if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
1442 echo $ECHO_N "(cached) $ECHO_C" >&6
1444 if test -n "$ac_ct_CC"; then
1445 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
1447 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1451 test -z "$as_dir" && as_dir=.
1452 for ac_exec_ext in '' $ac_executable_extensions; do
1453 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1454 ac_cv_prog_ac_ct_CC="gcc"
1455 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
1463 ac_ct_CC=$ac_cv_prog_ac_ct_CC
1464 if test -n "$ac_ct_CC"; then
1465 echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
1466 echo "${ECHO_T}$ac_ct_CC" >&6
1468 echo "$as_me:$LINENO: result: no" >&5
1469 echo "${ECHO_T}no" >&6
1477 if test -z "$CC"; then
1478 if test -n "$ac_tool_prefix"; then
1479 # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args.
1480 set dummy ${ac_tool_prefix}cc; ac_word=$2
1481 echo "$as_me:$LINENO: checking for $ac_word" >&5
1482 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1483 if test "${ac_cv_prog_CC+set}" = set; then
1484 echo $ECHO_N "(cached) $ECHO_C" >&6
1486 if test -n "$CC"; then
1487 ac_cv_prog_CC="$CC" # Let the user override the test.
1489 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1493 test -z "$as_dir" && as_dir=.
1494 for ac_exec_ext in '' $ac_executable_extensions; do
1495 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1496 ac_cv_prog_CC="${ac_tool_prefix}cc"
1497 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
1506 if test -n "$CC"; then
1507 echo "$as_me:$LINENO: result: $CC" >&5
1508 echo "${ECHO_T}$CC" >&6
1510 echo "$as_me:$LINENO: result: no" >&5
1511 echo "${ECHO_T}no" >&6
1515 if test -z "$ac_cv_prog_CC"; then
1517 # Extract the first word of "cc", so it can be a program name with args.
1518 set dummy cc; ac_word=$2
1519 echo "$as_me:$LINENO: checking for $ac_word" >&5
1520 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1521 if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
1522 echo $ECHO_N "(cached) $ECHO_C" >&6
1524 if test -n "$ac_ct_CC"; then
1525 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
1527 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1531 test -z "$as_dir" && as_dir=.
1532 for ac_exec_ext in '' $ac_executable_extensions; do
1533 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1534 ac_cv_prog_ac_ct_CC="cc"
1535 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
1543 ac_ct_CC=$ac_cv_prog_ac_ct_CC
1544 if test -n "$ac_ct_CC"; then
1545 echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
1546 echo "${ECHO_T}$ac_ct_CC" >&6
1548 echo "$as_me:$LINENO: result: no" >&5
1549 echo "${ECHO_T}no" >&6
1558 if test -z "$CC"; then
1559 # Extract the first word of "cc", so it can be a program name with args.
1560 set dummy cc; ac_word=$2
1561 echo "$as_me:$LINENO: checking for $ac_word" >&5
1562 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1563 if test "${ac_cv_prog_CC+set}" = set; then
1564 echo $ECHO_N "(cached) $ECHO_C" >&6
1566 if test -n "$CC"; then
1567 ac_cv_prog_CC="$CC" # Let the user override the test.
1570 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1574 test -z "$as_dir" && as_dir=.
1575 for ac_exec_ext in '' $ac_executable_extensions; do
1576 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1577 if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then
1578 ac_prog_rejected=yes
1582 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
1588 if test $ac_prog_rejected = yes; then
1589 # We found a bogon in the path, so make sure we never use it.
1590 set dummy $ac_cv_prog_CC
1592 if test $# != 0; then
1593 # We chose a different compiler from the bogus one.
1594 # However, it has the same basename, so the bogon will be chosen
1595 # first if we set CC to just the basename; use the full file name.
1597 ac_cv_prog_CC="$as_dir/$ac_word${1+' '}$@"
1603 if test -n "$CC"; then
1604 echo "$as_me:$LINENO: result: $CC" >&5
1605 echo "${ECHO_T}$CC" >&6
1607 echo "$as_me:$LINENO: result: no" >&5
1608 echo "${ECHO_T}no" >&6
1612 if test -z "$CC"; then
1613 if test -n "$ac_tool_prefix"; then
1616 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
1617 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
1618 echo "$as_me:$LINENO: checking for $ac_word" >&5
1619 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1620 if test "${ac_cv_prog_CC+set}" = set; then
1621 echo $ECHO_N "(cached) $ECHO_C" >&6
1623 if test -n "$CC"; then
1624 ac_cv_prog_CC="$CC" # Let the user override the test.
1626 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1630 test -z "$as_dir" && as_dir=.
1631 for ac_exec_ext in '' $ac_executable_extensions; do
1632 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1633 ac_cv_prog_CC="$ac_tool_prefix$ac_prog"
1634 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
1643 if test -n "$CC"; then
1644 echo "$as_me:$LINENO: result: $CC" >&5
1645 echo "${ECHO_T}$CC" >&6
1647 echo "$as_me:$LINENO: result: no" >&5
1648 echo "${ECHO_T}no" >&6
1651 test -n "$CC" && break
1654 if test -z "$CC"; then
1658 # Extract the first word of "$ac_prog", so it can be a program name with args.
1659 set dummy $ac_prog; ac_word=$2
1660 echo "$as_me:$LINENO: checking for $ac_word" >&5
1661 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1662 if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
1663 echo $ECHO_N "(cached) $ECHO_C" >&6
1665 if test -n "$ac_ct_CC"; then
1666 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
1668 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1672 test -z "$as_dir" && as_dir=.
1673 for ac_exec_ext in '' $ac_executable_extensions; do
1674 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1675 ac_cv_prog_ac_ct_CC="$ac_prog"
1676 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
1684 ac_ct_CC=$ac_cv_prog_ac_ct_CC
1685 if test -n "$ac_ct_CC"; then
1686 echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
1687 echo "${ECHO_T}$ac_ct_CC" >&6
1689 echo "$as_me:$LINENO: result: no" >&5
1690 echo "${ECHO_T}no" >&6
1693 test -n "$ac_ct_CC" && break
1702 test -z "$CC" && { { echo "$as_me:$LINENO: error: in \`$ac_pwd':" >&5
1703 echo "$as_me: error: in \`$ac_pwd':" >&2;}
1704 { { echo "$as_me:$LINENO: error: no acceptable C compiler found in \$PATH
1705 See \`config.log' for more details." >&5
1706 echo "$as_me: error: no acceptable C compiler found in \$PATH
1707 See \`config.log' for more details." >&2;}
1708 { (exit 1); exit 1; }; }; }
1710 # Provide some information about the compiler.
1711 echo "$as_me:$LINENO:" \
1712 "checking for C compiler version" >&5
1713 ac_compiler=`set X $ac_compile; echo $2`
1714 { (eval echo "$as_me:$LINENO: \"$ac_compiler --version </dev/null >&5\"") >&5
1715 (eval $ac_compiler --version </dev/null >&5) 2>&5
1717 echo "$as_me:$LINENO: \$? = $ac_status" >&5
1718 (exit $ac_status); }
1719 { (eval echo "$as_me:$LINENO: \"$ac_compiler -v </dev/null >&5\"") >&5
1720 (eval $ac_compiler -v </dev/null >&5) 2>&5
1722 echo "$as_me:$LINENO: \$? = $ac_status" >&5
1723 (exit $ac_status); }
1724 { (eval echo "$as_me:$LINENO: \"$ac_compiler -V </dev/null >&5\"") >&5
1725 (eval $ac_compiler -V </dev/null >&5) 2>&5
1727 echo "$as_me:$LINENO: \$? = $ac_status" >&5
1728 (exit $ac_status); }
1730 cat >conftest.$ac_ext <<_ACEOF
1733 cat confdefs.h >>conftest.$ac_ext
1734 cat >>conftest.$ac_ext <<_ACEOF
1735 /* end confdefs.h. */
1745 ac_clean_files_save=$ac_clean_files
1746 ac_clean_files="$ac_clean_files a.out a.exe b.out"
1747 # Try to create an executable without -o first, disregard a.out.
1748 # It will help us diagnose broken compilers, and finding out an intuition
1750 echo "$as_me:$LINENO: checking for C compiler default output file name" >&5
1751 echo $ECHO_N "checking for C compiler default output file name... $ECHO_C" >&6
1752 ac_link_default=`echo "$ac_link" | sed 's/ -o *conftest[^ ]*//'`
1753 if { (eval echo "$as_me:$LINENO: \"$ac_link_default\"") >&5
1754 (eval $ac_link_default) 2>&5
1756 echo "$as_me:$LINENO: \$? = $ac_status" >&5
1757 (exit $ac_status); }; then
1758 # Find the output, starting from the most likely. This scheme is
1759 # not robust to junk in `.', hence go to wildcards (a.*) only as a last
1762 # Be careful to initialize this variable, since it used to be cached.
1763 # Otherwise an old cache value of `no' led to `EXEEXT = no' in a Makefile.
1765 # b.out is created by i960 compilers.
1766 for ac_file in a_out.exe a.exe conftest.exe a.out conftest a.* conftest.* b.out
1768 test -f "$ac_file" || continue
1770 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.o | *.obj )
1773 # This is the source file.
1776 # We found the default executable, but exeext='' is most
1780 ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
1781 # FIXME: I believe we export ac_cv_exeext for Libtool,
1782 # but it would be cool to find out if it's true. Does anybody
1783 # maintain Libtool? --akim.
1791 echo "$as_me: failed program was:" >&5
1792 sed 's/^/| /' conftest.$ac_ext >&5
1794 { { echo "$as_me:$LINENO: error: in \`$ac_pwd':" >&5
1795 echo "$as_me: error: in \`$ac_pwd':" >&2;}
1796 { { echo "$as_me:$LINENO: error: C compiler cannot create executables
1797 See \`config.log' for more details." >&5
1798 echo "$as_me: error: C compiler cannot create executables
1799 See \`config.log' for more details." >&2;}
1800 { (exit 77); exit 77; }; }; }
1803 ac_exeext=$ac_cv_exeext
1804 echo "$as_me:$LINENO: result: $ac_file" >&5
1805 echo "${ECHO_T}$ac_file" >&6
1807 # Check the compiler produces executables we can run. If not, either
1808 # the compiler is broken, or we cross compile.
1809 echo "$as_me:$LINENO: checking whether the C compiler works" >&5
1810 echo $ECHO_N "checking whether the C compiler works... $ECHO_C" >&6
1811 # FIXME: These cross compiler hacks should be removed for Autoconf 3.0
1812 # If not cross compiling, check that we can run a simple program.
1813 if test "$cross_compiling" != yes; then
1814 if { ac_try='./$ac_file'
1815 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
1818 echo "$as_me:$LINENO: \$? = $ac_status" >&5
1819 (exit $ac_status); }; }; then
1822 if test "$cross_compiling" = maybe; then
1825 { { echo "$as_me:$LINENO: error: in \`$ac_pwd':" >&5
1826 echo "$as_me: error: in \`$ac_pwd':" >&2;}
1827 { { echo "$as_me:$LINENO: error: cannot run C compiled programs.
1828 If you meant to cross compile, use \`--host'.
1829 See \`config.log' for more details." >&5
1830 echo "$as_me: error: cannot run C compiled programs.
1831 If you meant to cross compile, use \`--host'.
1832 See \`config.log' for more details." >&2;}
1833 { (exit 1); exit 1; }; }; }
1837 echo "$as_me:$LINENO: result: yes" >&5
1838 echo "${ECHO_T}yes" >&6
1840 rm -f a.out a.exe conftest$ac_cv_exeext b.out
1841 ac_clean_files=$ac_clean_files_save
1842 # Check the compiler produces executables we can run. If not, either
1843 # the compiler is broken, or we cross compile.
1844 echo "$as_me:$LINENO: checking whether we are cross compiling" >&5
1845 echo $ECHO_N "checking whether we are cross compiling... $ECHO_C" >&6
1846 echo "$as_me:$LINENO: result: $cross_compiling" >&5
1847 echo "${ECHO_T}$cross_compiling" >&6
1849 echo "$as_me:$LINENO: checking for suffix of executables" >&5
1850 echo $ECHO_N "checking for suffix of executables... $ECHO_C" >&6
1851 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
1852 (eval $ac_link) 2>&5
1854 echo "$as_me:$LINENO: \$? = $ac_status" >&5
1855 (exit $ac_status); }; then
1856 # If both `conftest.exe' and `conftest' are `present' (well, observable)
1857 # catch `conftest.exe'. For instance with Cygwin, `ls conftest' will
1858 # work properly (i.e., refer to `conftest.exe'), while it won't with
1860 for ac_file in conftest.exe conftest conftest.*; do
1861 test -f "$ac_file" || continue
1863 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.o | *.obj ) ;;
1864 *.* ) ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
1871 { { echo "$as_me:$LINENO: error: in \`$ac_pwd':" >&5
1872 echo "$as_me: error: in \`$ac_pwd':" >&2;}
1873 { { echo "$as_me:$LINENO: error: cannot compute suffix of executables: cannot compile and link
1874 See \`config.log' for more details." >&5
1875 echo "$as_me: error: cannot compute suffix of executables: cannot compile and link
1876 See \`config.log' for more details." >&2;}
1877 { (exit 1); exit 1; }; }; }
1880 rm -f conftest$ac_cv_exeext
1881 echo "$as_me:$LINENO: result: $ac_cv_exeext" >&5
1882 echo "${ECHO_T}$ac_cv_exeext" >&6
1884 rm -f conftest.$ac_ext
1885 EXEEXT=$ac_cv_exeext
1887 echo "$as_me:$LINENO: checking for suffix of object files" >&5
1888 echo $ECHO_N "checking for suffix of object files... $ECHO_C" >&6
1889 if test "${ac_cv_objext+set}" = set; then
1890 echo $ECHO_N "(cached) $ECHO_C" >&6
1892 cat >conftest.$ac_ext <<_ACEOF
1895 cat confdefs.h >>conftest.$ac_ext
1896 cat >>conftest.$ac_ext <<_ACEOF
1897 /* end confdefs.h. */
1907 rm -f conftest.o conftest.obj
1908 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
1909 (eval $ac_compile) 2>&5
1911 echo "$as_me:$LINENO: \$? = $ac_status" >&5
1912 (exit $ac_status); }; then
1913 for ac_file in `(ls conftest.o conftest.obj; ls conftest.*) 2>/dev/null`; do
1915 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg ) ;;
1916 *) ac_cv_objext=`expr "$ac_file" : '.*\.\(.*\)'`
1921 echo "$as_me: failed program was:" >&5
1922 sed 's/^/| /' conftest.$ac_ext >&5
1924 { { echo "$as_me:$LINENO: error: in \`$ac_pwd':" >&5
1925 echo "$as_me: error: in \`$ac_pwd':" >&2;}
1926 { { echo "$as_me:$LINENO: error: cannot compute suffix of object files: cannot compile
1927 See \`config.log' for more details." >&5
1928 echo "$as_me: error: cannot compute suffix of object files: cannot compile
1929 See \`config.log' for more details." >&2;}
1930 { (exit 1); exit 1; }; }; }
1933 rm -f conftest.$ac_cv_objext conftest.$ac_ext
1935 echo "$as_me:$LINENO: result: $ac_cv_objext" >&5
1936 echo "${ECHO_T}$ac_cv_objext" >&6
1937 OBJEXT=$ac_cv_objext
1939 echo "$as_me:$LINENO: checking whether we are using the GNU C compiler" >&5
1940 echo $ECHO_N "checking whether we are using the GNU C compiler... $ECHO_C" >&6
1941 if test "${ac_cv_c_compiler_gnu+set}" = set; then
1942 echo $ECHO_N "(cached) $ECHO_C" >&6
1944 cat >conftest.$ac_ext <<_ACEOF
1947 cat confdefs.h >>conftest.$ac_ext
1948 cat >>conftest.$ac_ext <<_ACEOF
1949 /* end confdefs.h. */
1962 rm -f conftest.$ac_objext
1963 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
1964 (eval $ac_compile) 2>conftest.er1
1966 grep -v '^ *+' conftest.er1 >conftest.err
1968 cat conftest.err >&5
1969 echo "$as_me:$LINENO: \$? = $ac_status" >&5
1970 (exit $ac_status); } &&
1971 { ac_try='test -z "$ac_c_werror_flag"
1972 || test ! -s conftest.err'
1973 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
1976 echo "$as_me:$LINENO: \$? = $ac_status" >&5
1977 (exit $ac_status); }; } &&
1978 { ac_try='test -s conftest.$ac_objext'
1979 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
1982 echo "$as_me:$LINENO: \$? = $ac_status" >&5
1983 (exit $ac_status); }; }; then
1986 echo "$as_me: failed program was:" >&5
1987 sed 's/^/| /' conftest.$ac_ext >&5
1991 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
1992 ac_cv_c_compiler_gnu=$ac_compiler_gnu
1995 echo "$as_me:$LINENO: result: $ac_cv_c_compiler_gnu" >&5
1996 echo "${ECHO_T}$ac_cv_c_compiler_gnu" >&6
1997 GCC=`test $ac_compiler_gnu = yes && echo yes`
1998 ac_test_CFLAGS=${CFLAGS+set}
1999 ac_save_CFLAGS=$CFLAGS
2001 echo "$as_me:$LINENO: checking whether $CC accepts -g" >&5
2002 echo $ECHO_N "checking whether $CC accepts -g... $ECHO_C" >&6
2003 if test "${ac_cv_prog_cc_g+set}" = set; then
2004 echo $ECHO_N "(cached) $ECHO_C" >&6
2006 cat >conftest.$ac_ext <<_ACEOF
2009 cat confdefs.h >>conftest.$ac_ext
2010 cat >>conftest.$ac_ext <<_ACEOF
2011 /* end confdefs.h. */
2021 rm -f conftest.$ac_objext
2022 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2023 (eval $ac_compile) 2>conftest.er1
2025 grep -v '^ *+' conftest.er1 >conftest.err
2027 cat conftest.err >&5
2028 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2029 (exit $ac_status); } &&
2030 { ac_try='test -z "$ac_c_werror_flag"
2031 || test ! -s conftest.err'
2032 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2035 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2036 (exit $ac_status); }; } &&
2037 { ac_try='test -s conftest.$ac_objext'
2038 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2041 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2042 (exit $ac_status); }; }; then
2045 echo "$as_me: failed program was:" >&5
2046 sed 's/^/| /' conftest.$ac_ext >&5
2050 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
2052 echo "$as_me:$LINENO: result: $ac_cv_prog_cc_g" >&5
2053 echo "${ECHO_T}$ac_cv_prog_cc_g" >&6
2054 if test "$ac_test_CFLAGS" = set; then
2055 CFLAGS=$ac_save_CFLAGS
2056 elif test $ac_cv_prog_cc_g = yes; then
2057 if test "$GCC" = yes; then
2063 if test "$GCC" = yes; then
2069 echo "$as_me:$LINENO: checking for $CC option to accept ANSI C" >&5
2070 echo $ECHO_N "checking for $CC option to accept ANSI C... $ECHO_C" >&6
2071 if test "${ac_cv_prog_cc_stdc+set}" = set; then
2072 echo $ECHO_N "(cached) $ECHO_C" >&6
2074 ac_cv_prog_cc_stdc=no
2076 cat >conftest.$ac_ext <<_ACEOF
2079 cat confdefs.h >>conftest.$ac_ext
2080 cat >>conftest.$ac_ext <<_ACEOF
2081 /* end confdefs.h. */
2084 #include <sys/types.h>
2085 #include <sys/stat.h>
2086 /* Most of the following tests are stolen from RCS 5.7's src/conf.sh. */
2087 struct buf { int x; };
2088 FILE * (*rcsopen) (struct buf *, struct stat *, int);
2089 static char *e (p, i)
2095 static char *f (char * (*g) (char **, int), char **p, ...)
2100 s = g (p, va_arg (v,int));
2105 /* OSF 4.0 Compaq cc is some sort of almost-ANSI by default. It has
2106 function prototypes and stuff, but not '\xHH' hex character constants.
2107 These don't provoke an error unfortunately, instead are silently treated
2108 as 'x'. The following induces an error, until -std1 is added to get
2109 proper ANSI mode. Curiously '\x00'!='x' always comes out true, for an
2110 array size at least. It's necessary to write '\x00'==0 to get something
2111 that's true only with -std1. */
2112 int osf4_cc_array ['\x00' == 0 ? 1 : -1];
2114 int test (int i, double x);
2115 struct s1 {int (*f) (int a);};
2116 struct s2 {int (*f) (double a);};
2117 int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
2123 return f (e, argv, 0) != argv[0] || f (e, argv, 1) != argv[1];
2128 # Don't try gcc -ansi; that turns off useful extensions and
2129 # breaks some systems' header files.
2130 # AIX -qlanglvl=ansi
2131 # Ultrix and OSF/1 -std1
2132 # HP-UX 10.20 and later -Ae
2133 # HP-UX older versions -Aa -D_HPUX_SOURCE
2134 # SVR4 -Xc -D__EXTENSIONS__
2135 for ac_arg in "" -qlanglvl=ansi -std1 -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
2137 CC="$ac_save_CC $ac_arg"
2138 rm -f conftest.$ac_objext
2139 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2140 (eval $ac_compile) 2>conftest.er1
2142 grep -v '^ *+' conftest.er1 >conftest.err
2144 cat conftest.err >&5
2145 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2146 (exit $ac_status); } &&
2147 { ac_try='test -z "$ac_c_werror_flag"
2148 || test ! -s conftest.err'
2149 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2152 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2153 (exit $ac_status); }; } &&
2154 { ac_try='test -s conftest.$ac_objext'
2155 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2158 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2159 (exit $ac_status); }; }; then
2160 ac_cv_prog_cc_stdc=$ac_arg
2163 echo "$as_me: failed program was:" >&5
2164 sed 's/^/| /' conftest.$ac_ext >&5
2167 rm -f conftest.err conftest.$ac_objext
2169 rm -f conftest.$ac_ext conftest.$ac_objext
2174 case "x$ac_cv_prog_cc_stdc" in
2176 echo "$as_me:$LINENO: result: none needed" >&5
2177 echo "${ECHO_T}none needed" >&6 ;;
2179 echo "$as_me:$LINENO: result: $ac_cv_prog_cc_stdc" >&5
2180 echo "${ECHO_T}$ac_cv_prog_cc_stdc" >&6
2181 CC="$CC $ac_cv_prog_cc_stdc" ;;
2184 # Some people use a C++ compiler to compile C. Since we use `exit',
2185 # in C++ we need to declare it. In case someone uses the same compiler
2186 # for both compiling C and C++ we need to have the C++ compiler decide
2187 # the declaration of exit, since it's the most demanding environment.
2188 cat >conftest.$ac_ext <<_ACEOF
2193 rm -f conftest.$ac_objext
2194 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2195 (eval $ac_compile) 2>conftest.er1
2197 grep -v '^ *+' conftest.er1 >conftest.err
2199 cat conftest.err >&5
2200 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2201 (exit $ac_status); } &&
2202 { ac_try='test -z "$ac_c_werror_flag"
2203 || test ! -s conftest.err'
2204 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2207 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2208 (exit $ac_status); }; } &&
2209 { ac_try='test -s conftest.$ac_objext'
2210 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2213 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2214 (exit $ac_status); }; }; then
2215 for ac_declaration in \
2217 'extern "C" void std::exit (int) throw (); using std::exit;' \
2218 'extern "C" void std::exit (int); using std::exit;' \
2219 'extern "C" void exit (int) throw ();' \
2220 'extern "C" void exit (int);' \
2223 cat >conftest.$ac_ext <<_ACEOF
2226 cat confdefs.h >>conftest.$ac_ext
2227 cat >>conftest.$ac_ext <<_ACEOF
2228 /* end confdefs.h. */
2239 rm -f conftest.$ac_objext
2240 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2241 (eval $ac_compile) 2>conftest.er1
2243 grep -v '^ *+' conftest.er1 >conftest.err
2245 cat conftest.err >&5
2246 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2247 (exit $ac_status); } &&
2248 { ac_try='test -z "$ac_c_werror_flag"
2249 || test ! -s conftest.err'
2250 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2253 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2254 (exit $ac_status); }; } &&
2255 { ac_try='test -s conftest.$ac_objext'
2256 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2259 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2260 (exit $ac_status); }; }; then
2263 echo "$as_me: failed program was:" >&5
2264 sed 's/^/| /' conftest.$ac_ext >&5
2268 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
2269 cat >conftest.$ac_ext <<_ACEOF
2272 cat confdefs.h >>conftest.$ac_ext
2273 cat >>conftest.$ac_ext <<_ACEOF
2274 /* end confdefs.h. */
2284 rm -f conftest.$ac_objext
2285 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2286 (eval $ac_compile) 2>conftest.er1
2288 grep -v '^ *+' conftest.er1 >conftest.err
2290 cat conftest.err >&5
2291 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2292 (exit $ac_status); } &&
2293 { ac_try='test -z "$ac_c_werror_flag"
2294 || test ! -s conftest.err'
2295 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2298 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2299 (exit $ac_status); }; } &&
2300 { ac_try='test -s conftest.$ac_objext'
2301 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2304 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2305 (exit $ac_status); }; }; then
2308 echo "$as_me: failed program was:" >&5
2309 sed 's/^/| /' conftest.$ac_ext >&5
2312 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
2315 if test -n "$ac_declaration"; then
2316 echo '#ifdef __cplusplus' >>confdefs.h
2317 echo $ac_declaration >>confdefs.h
2318 echo '#endif' >>confdefs.h
2322 echo "$as_me: failed program was:" >&5
2323 sed 's/^/| /' conftest.$ac_ext >&5
2326 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
2328 ac_cpp='$CPP $CPPFLAGS'
2329 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2330 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2331 ac_compiler_gnu=$ac_cv_c_compiler_gnu
2334 cat >>confdefs.h <<\_ACEOF
2335 #define _GNU_SOURCE 1
2341 ac_cpp='$CPP $CPPFLAGS'
2342 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2343 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2344 ac_compiler_gnu=$ac_cv_c_compiler_gnu
2345 echo "$as_me:$LINENO: checking how to run the C preprocessor" >&5
2346 echo $ECHO_N "checking how to run the C preprocessor... $ECHO_C" >&6
2347 # On Suns, sometimes $CPP names a directory.
2348 if test -n "$CPP" && test -d "$CPP"; then
2351 if test -z "$CPP"; then
2352 if test "${ac_cv_prog_CPP+set}" = set; then
2353 echo $ECHO_N "(cached) $ECHO_C" >&6
2355 # Double quotes because CPP needs to be expanded
2356 for CPP in "$CC -E" "$CC -E -traditional-cpp" "/lib/cpp"
2359 for ac_c_preproc_warn_flag in '' yes
2361 # Use a header file that comes with gcc, so configuring glibc
2362 # with a fresh cross-compiler works.
2363 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
2364 # <limits.h> exists even on freestanding compilers.
2365 # On the NeXT, cc -E runs the code through the compiler's parser,
2366 # not just through cpp. "Syntax error" is here to catch this case.
2367 cat >conftest.$ac_ext <<_ACEOF
2370 cat confdefs.h >>conftest.$ac_ext
2371 cat >>conftest.$ac_ext <<_ACEOF
2372 /* end confdefs.h. */
2374 # include <limits.h>
2376 # include <assert.h>
2380 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
2381 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
2383 grep -v '^ *+' conftest.er1 >conftest.err
2385 cat conftest.err >&5
2386 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2387 (exit $ac_status); } >/dev/null; then
2388 if test -s conftest.err; then
2389 ac_cpp_err=$ac_c_preproc_warn_flag
2390 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
2397 if test -z "$ac_cpp_err"; then
2400 echo "$as_me: failed program was:" >&5
2401 sed 's/^/| /' conftest.$ac_ext >&5
2403 # Broken: fails on valid input.
2406 rm -f conftest.err conftest.$ac_ext
2408 # OK, works on sane cases. Now check whether non-existent headers
2409 # can be detected and how.
2410 cat >conftest.$ac_ext <<_ACEOF
2413 cat confdefs.h >>conftest.$ac_ext
2414 cat >>conftest.$ac_ext <<_ACEOF
2415 /* end confdefs.h. */
2416 #include <ac_nonexistent.h>
2418 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
2419 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
2421 grep -v '^ *+' conftest.er1 >conftest.err
2423 cat conftest.err >&5
2424 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2425 (exit $ac_status); } >/dev/null; then
2426 if test -s conftest.err; then
2427 ac_cpp_err=$ac_c_preproc_warn_flag
2428 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
2435 if test -z "$ac_cpp_err"; then
2436 # Broken: success on invalid input.
2439 echo "$as_me: failed program was:" >&5
2440 sed 's/^/| /' conftest.$ac_ext >&5
2442 # Passes both tests.
2446 rm -f conftest.err conftest.$ac_ext
2449 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
2450 rm -f conftest.err conftest.$ac_ext
2451 if $ac_preproc_ok; then
2463 echo "$as_me:$LINENO: result: $CPP" >&5
2464 echo "${ECHO_T}$CPP" >&6
2466 for ac_c_preproc_warn_flag in '' yes
2468 # Use a header file that comes with gcc, so configuring glibc
2469 # with a fresh cross-compiler works.
2470 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
2471 # <limits.h> exists even on freestanding compilers.
2472 # On the NeXT, cc -E runs the code through the compiler's parser,
2473 # not just through cpp. "Syntax error" is here to catch this case.
2474 cat >conftest.$ac_ext <<_ACEOF
2477 cat confdefs.h >>conftest.$ac_ext
2478 cat >>conftest.$ac_ext <<_ACEOF
2479 /* end confdefs.h. */
2481 # include <limits.h>
2483 # include <assert.h>
2487 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
2488 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
2490 grep -v '^ *+' conftest.er1 >conftest.err
2492 cat conftest.err >&5
2493 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2494 (exit $ac_status); } >/dev/null; then
2495 if test -s conftest.err; then
2496 ac_cpp_err=$ac_c_preproc_warn_flag
2497 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
2504 if test -z "$ac_cpp_err"; then
2507 echo "$as_me: failed program was:" >&5
2508 sed 's/^/| /' conftest.$ac_ext >&5
2510 # Broken: fails on valid input.
2513 rm -f conftest.err conftest.$ac_ext
2515 # OK, works on sane cases. Now check whether non-existent headers
2516 # can be detected and how.
2517 cat >conftest.$ac_ext <<_ACEOF
2520 cat confdefs.h >>conftest.$ac_ext
2521 cat >>conftest.$ac_ext <<_ACEOF
2522 /* end confdefs.h. */
2523 #include <ac_nonexistent.h>
2525 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
2526 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
2528 grep -v '^ *+' conftest.er1 >conftest.err
2530 cat conftest.err >&5
2531 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2532 (exit $ac_status); } >/dev/null; then
2533 if test -s conftest.err; then
2534 ac_cpp_err=$ac_c_preproc_warn_flag
2535 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
2542 if test -z "$ac_cpp_err"; then
2543 # Broken: success on invalid input.
2546 echo "$as_me: failed program was:" >&5
2547 sed 's/^/| /' conftest.$ac_ext >&5
2549 # Passes both tests.
2553 rm -f conftest.err conftest.$ac_ext
2556 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
2557 rm -f conftest.err conftest.$ac_ext
2558 if $ac_preproc_ok; then
2561 { { echo "$as_me:$LINENO: error: in \`$ac_pwd':" >&5
2562 echo "$as_me: error: in \`$ac_pwd':" >&2;}
2563 { { echo "$as_me:$LINENO: error: C preprocessor \"$CPP\" fails sanity check
2564 See \`config.log' for more details." >&5
2565 echo "$as_me: error: C preprocessor \"$CPP\" fails sanity check
2566 See \`config.log' for more details." >&2;}
2567 { (exit 1); exit 1; }; }; }
2571 ac_cpp='$CPP $CPPFLAGS'
2572 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2573 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2574 ac_compiler_gnu=$ac_cv_c_compiler_gnu
2577 echo "$as_me:$LINENO: checking for egrep" >&5
2578 echo $ECHO_N "checking for egrep... $ECHO_C" >&6
2579 if test "${ac_cv_prog_egrep+set}" = set; then
2580 echo $ECHO_N "(cached) $ECHO_C" >&6
2582 if echo a | (grep -E '(a|b)') >/dev/null 2>&1
2583 then ac_cv_prog_egrep='grep -E'
2584 else ac_cv_prog_egrep='egrep'
2587 echo "$as_me:$LINENO: result: $ac_cv_prog_egrep" >&5
2588 echo "${ECHO_T}$ac_cv_prog_egrep" >&6
2589 EGREP=$ac_cv_prog_egrep
2593 echo "$as_me:$LINENO: checking for AIX" >&5
2594 echo $ECHO_N "checking for AIX... $ECHO_C" >&6
2595 cat >conftest.$ac_ext <<_ACEOF
2598 cat confdefs.h >>conftest.$ac_ext
2599 cat >>conftest.$ac_ext <<_ACEOF
2600 /* end confdefs.h. */
2606 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
2607 $EGREP "yes" >/dev/null 2>&1; then
2608 echo "$as_me:$LINENO: result: yes" >&5
2609 echo "${ECHO_T}yes" >&6
2610 cat >>confdefs.h <<\_ACEOF
2611 #define _ALL_SOURCE 1
2615 echo "$as_me:$LINENO: result: no" >&5
2616 echo "${ECHO_T}no" >&6
2621 echo "$as_me:$LINENO: checking for library containing strerror" >&5
2622 echo $ECHO_N "checking for library containing strerror... $ECHO_C" >&6
2623 if test "${ac_cv_search_strerror+set}" = set; then
2624 echo $ECHO_N "(cached) $ECHO_C" >&6
2626 ac_func_search_save_LIBS=$LIBS
2627 ac_cv_search_strerror=no
2628 cat >conftest.$ac_ext <<_ACEOF
2631 cat confdefs.h >>conftest.$ac_ext
2632 cat >>conftest.$ac_ext <<_ACEOF
2633 /* end confdefs.h. */
2635 /* Override any gcc2 internal prototype to avoid an error. */
2639 /* We use char because int might match the return type of a gcc2
2640 builtin and then its argument prototype would still apply. */
2650 rm -f conftest.$ac_objext conftest$ac_exeext
2651 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
2652 (eval $ac_link) 2>conftest.er1
2654 grep -v '^ *+' conftest.er1 >conftest.err
2656 cat conftest.err >&5
2657 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2658 (exit $ac_status); } &&
2659 { ac_try='test -z "$ac_c_werror_flag"
2660 || test ! -s conftest.err'
2661 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2664 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2665 (exit $ac_status); }; } &&
2666 { ac_try='test -s conftest$ac_exeext'
2667 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2670 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2671 (exit $ac_status); }; }; then
2672 ac_cv_search_strerror="none required"
2674 echo "$as_me: failed program was:" >&5
2675 sed 's/^/| /' conftest.$ac_ext >&5
2678 rm -f conftest.err conftest.$ac_objext \
2679 conftest$ac_exeext conftest.$ac_ext
2680 if test "$ac_cv_search_strerror" = no; then
2681 for ac_lib in cposix; do
2682 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
2683 cat >conftest.$ac_ext <<_ACEOF
2686 cat confdefs.h >>conftest.$ac_ext
2687 cat >>conftest.$ac_ext <<_ACEOF
2688 /* end confdefs.h. */
2690 /* Override any gcc2 internal prototype to avoid an error. */
2694 /* We use char because int might match the return type of a gcc2
2695 builtin and then its argument prototype would still apply. */
2705 rm -f conftest.$ac_objext conftest$ac_exeext
2706 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
2707 (eval $ac_link) 2>conftest.er1
2709 grep -v '^ *+' conftest.er1 >conftest.err
2711 cat conftest.err >&5
2712 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2713 (exit $ac_status); } &&
2714 { ac_try='test -z "$ac_c_werror_flag"
2715 || test ! -s conftest.err'
2716 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2719 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2720 (exit $ac_status); }; } &&
2721 { ac_try='test -s conftest$ac_exeext'
2722 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2725 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2726 (exit $ac_status); }; }; then
2727 ac_cv_search_strerror="-l$ac_lib"
2730 echo "$as_me: failed program was:" >&5
2731 sed 's/^/| /' conftest.$ac_ext >&5
2734 rm -f conftest.err conftest.$ac_objext \
2735 conftest$ac_exeext conftest.$ac_ext
2738 LIBS=$ac_func_search_save_LIBS
2740 echo "$as_me:$LINENO: result: $ac_cv_search_strerror" >&5
2741 echo "${ECHO_T}$ac_cv_search_strerror" >&6
2742 if test "$ac_cv_search_strerror" != no; then
2743 test "$ac_cv_search_strerror" = "none required" || LIBS="$ac_cv_search_strerror $LIBS"
2747 if test -n "$ac_tool_prefix"; then
2748 # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args.
2749 set dummy ${ac_tool_prefix}ranlib; ac_word=$2
2750 echo "$as_me:$LINENO: checking for $ac_word" >&5
2751 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
2752 if test "${ac_cv_prog_RANLIB+set}" = set; then
2753 echo $ECHO_N "(cached) $ECHO_C" >&6
2755 if test -n "$RANLIB"; then
2756 ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
2758 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2762 test -z "$as_dir" && as_dir=.
2763 for ac_exec_ext in '' $ac_executable_extensions; do
2764 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2765 ac_cv_prog_RANLIB="${ac_tool_prefix}ranlib"
2766 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2774 RANLIB=$ac_cv_prog_RANLIB
2775 if test -n "$RANLIB"; then
2776 echo "$as_me:$LINENO: result: $RANLIB" >&5
2777 echo "${ECHO_T}$RANLIB" >&6
2779 echo "$as_me:$LINENO: result: no" >&5
2780 echo "${ECHO_T}no" >&6
2784 if test -z "$ac_cv_prog_RANLIB"; then
2785 ac_ct_RANLIB=$RANLIB
2786 # Extract the first word of "ranlib", so it can be a program name with args.
2787 set dummy ranlib; ac_word=$2
2788 echo "$as_me:$LINENO: checking for $ac_word" >&5
2789 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
2790 if test "${ac_cv_prog_ac_ct_RANLIB+set}" = set; then
2791 echo $ECHO_N "(cached) $ECHO_C" >&6
2793 if test -n "$ac_ct_RANLIB"; then
2794 ac_cv_prog_ac_ct_RANLIB="$ac_ct_RANLIB" # Let the user override the test.
2796 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2800 test -z "$as_dir" && as_dir=.
2801 for ac_exec_ext in '' $ac_executable_extensions; do
2802 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2803 ac_cv_prog_ac_ct_RANLIB="ranlib"
2804 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2810 test -z "$ac_cv_prog_ac_ct_RANLIB" && ac_cv_prog_ac_ct_RANLIB=":"
2813 ac_ct_RANLIB=$ac_cv_prog_ac_ct_RANLIB
2814 if test -n "$ac_ct_RANLIB"; then
2815 echo "$as_me:$LINENO: result: $ac_ct_RANLIB" >&5
2816 echo "${ECHO_T}$ac_ct_RANLIB" >&6
2818 echo "$as_me:$LINENO: result: no" >&5
2819 echo "${ECHO_T}no" >&6
2822 RANLIB=$ac_ct_RANLIB
2824 RANLIB="$ac_cv_prog_RANLIB"
2827 echo "$as_me:$LINENO: checking for ANSI C header files" >&5
2828 echo $ECHO_N "checking for ANSI C header files... $ECHO_C" >&6
2829 if test "${ac_cv_header_stdc+set}" = set; then
2830 echo $ECHO_N "(cached) $ECHO_C" >&6
2832 cat >conftest.$ac_ext <<_ACEOF
2835 cat confdefs.h >>conftest.$ac_ext
2836 cat >>conftest.$ac_ext <<_ACEOF
2837 /* end confdefs.h. */
2851 rm -f conftest.$ac_objext
2852 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2853 (eval $ac_compile) 2>conftest.er1
2855 grep -v '^ *+' conftest.er1 >conftest.err
2857 cat conftest.err >&5
2858 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2859 (exit $ac_status); } &&
2860 { ac_try='test -z "$ac_c_werror_flag"
2861 || test ! -s conftest.err'
2862 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2865 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2866 (exit $ac_status); }; } &&
2867 { ac_try='test -s conftest.$ac_objext'
2868 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2871 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2872 (exit $ac_status); }; }; then
2873 ac_cv_header_stdc=yes
2875 echo "$as_me: failed program was:" >&5
2876 sed 's/^/| /' conftest.$ac_ext >&5
2878 ac_cv_header_stdc=no
2880 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
2882 if test $ac_cv_header_stdc = yes; then
2883 # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
2884 cat >conftest.$ac_ext <<_ACEOF
2887 cat confdefs.h >>conftest.$ac_ext
2888 cat >>conftest.$ac_ext <<_ACEOF
2889 /* end confdefs.h. */
2893 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
2894 $EGREP "memchr" >/dev/null 2>&1; then
2897 ac_cv_header_stdc=no
2903 if test $ac_cv_header_stdc = yes; then
2904 # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
2905 cat >conftest.$ac_ext <<_ACEOF
2908 cat confdefs.h >>conftest.$ac_ext
2909 cat >>conftest.$ac_ext <<_ACEOF
2910 /* end confdefs.h. */
2914 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
2915 $EGREP "free" >/dev/null 2>&1; then
2918 ac_cv_header_stdc=no
2924 if test $ac_cv_header_stdc = yes; then
2925 # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
2926 if test "$cross_compiling" = yes; then
2929 cat >conftest.$ac_ext <<_ACEOF
2932 cat confdefs.h >>conftest.$ac_ext
2933 cat >>conftest.$ac_ext <<_ACEOF
2934 /* end confdefs.h. */
2936 #if ((' ' & 0x0FF) == 0x020)
2937 # define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
2938 # define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
2940 # define ISLOWER(c) \
2941 (('a' <= (c) && (c) <= 'i') \
2942 || ('j' <= (c) && (c) <= 'r') \
2943 || ('s' <= (c) && (c) <= 'z'))
2944 # define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
2947 #define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
2952 for (i = 0; i < 256; i++)
2953 if (XOR (islower (i), ISLOWER (i))
2954 || toupper (i) != TOUPPER (i))
2959 rm -f conftest$ac_exeext
2960 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
2961 (eval $ac_link) 2>&5
2963 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2964 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
2965 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2968 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2969 (exit $ac_status); }; }; then
2972 echo "$as_me: program exited with status $ac_status" >&5
2973 echo "$as_me: failed program was:" >&5
2974 sed 's/^/| /' conftest.$ac_ext >&5
2977 ac_cv_header_stdc=no
2979 rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
2983 echo "$as_me:$LINENO: result: $ac_cv_header_stdc" >&5
2984 echo "${ECHO_T}$ac_cv_header_stdc" >&6
2985 if test $ac_cv_header_stdc = yes; then
2987 cat >>confdefs.h <<\_ACEOF
2988 #define STDC_HEADERS 1
2993 # On IRIX 5.3, sys/types and inttypes.h are conflicting.
3003 for ac_header in sys/types.h sys/stat.h stdlib.h string.h memory.h strings.h \
3004 inttypes.h stdint.h unistd.h
3006 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
3007 echo "$as_me:$LINENO: checking for $ac_header" >&5
3008 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
3009 if eval "test \"\${$as_ac_Header+set}\" = set"; then
3010 echo $ECHO_N "(cached) $ECHO_C" >&6
3012 cat >conftest.$ac_ext <<_ACEOF
3015 cat confdefs.h >>conftest.$ac_ext
3016 cat >>conftest.$ac_ext <<_ACEOF
3017 /* end confdefs.h. */
3018 $ac_includes_default
3020 #include <$ac_header>
3022 rm -f conftest.$ac_objext
3023 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
3024 (eval $ac_compile) 2>conftest.er1
3026 grep -v '^ *+' conftest.er1 >conftest.err
3028 cat conftest.err >&5
3029 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3030 (exit $ac_status); } &&
3031 { ac_try='test -z "$ac_c_werror_flag"
3032 || test ! -s conftest.err'
3033 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3036 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3037 (exit $ac_status); }; } &&
3038 { ac_try='test -s conftest.$ac_objext'
3039 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3042 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3043 (exit $ac_status); }; }; then
3044 eval "$as_ac_Header=yes"
3046 echo "$as_me: failed program was:" >&5
3047 sed 's/^/| /' conftest.$ac_ext >&5
3049 eval "$as_ac_Header=no"
3051 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
3053 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
3054 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
3055 if test `eval echo '${'$as_ac_Header'}'` = yes; then
3056 cat >>confdefs.h <<_ACEOF
3057 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
3066 if test "${ac_cv_header_minix_config_h+set}" = set; then
3067 echo "$as_me:$LINENO: checking for minix/config.h" >&5
3068 echo $ECHO_N "checking for minix/config.h... $ECHO_C" >&6
3069 if test "${ac_cv_header_minix_config_h+set}" = set; then
3070 echo $ECHO_N "(cached) $ECHO_C" >&6
3072 echo "$as_me:$LINENO: result: $ac_cv_header_minix_config_h" >&5
3073 echo "${ECHO_T}$ac_cv_header_minix_config_h" >&6
3075 # Is the header compilable?
3076 echo "$as_me:$LINENO: checking minix/config.h usability" >&5
3077 echo $ECHO_N "checking minix/config.h usability... $ECHO_C" >&6
3078 cat >conftest.$ac_ext <<_ACEOF
3081 cat confdefs.h >>conftest.$ac_ext
3082 cat >>conftest.$ac_ext <<_ACEOF
3083 /* end confdefs.h. */
3084 $ac_includes_default
3085 #include <minix/config.h>
3087 rm -f conftest.$ac_objext
3088 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
3089 (eval $ac_compile) 2>conftest.er1
3091 grep -v '^ *+' conftest.er1 >conftest.err
3093 cat conftest.err >&5
3094 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3095 (exit $ac_status); } &&
3096 { ac_try='test -z "$ac_c_werror_flag"
3097 || test ! -s conftest.err'
3098 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3101 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3102 (exit $ac_status); }; } &&
3103 { ac_try='test -s conftest.$ac_objext'
3104 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3107 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3108 (exit $ac_status); }; }; then
3109 ac_header_compiler=yes
3111 echo "$as_me: failed program was:" >&5
3112 sed 's/^/| /' conftest.$ac_ext >&5
3114 ac_header_compiler=no
3116 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
3117 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
3118 echo "${ECHO_T}$ac_header_compiler" >&6
3120 # Is the header present?
3121 echo "$as_me:$LINENO: checking minix/config.h presence" >&5
3122 echo $ECHO_N "checking minix/config.h presence... $ECHO_C" >&6
3123 cat >conftest.$ac_ext <<_ACEOF
3126 cat confdefs.h >>conftest.$ac_ext
3127 cat >>conftest.$ac_ext <<_ACEOF
3128 /* end confdefs.h. */
3129 #include <minix/config.h>
3131 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
3132 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
3134 grep -v '^ *+' conftest.er1 >conftest.err
3136 cat conftest.err >&5
3137 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3138 (exit $ac_status); } >/dev/null; then
3139 if test -s conftest.err; then
3140 ac_cpp_err=$ac_c_preproc_warn_flag
3141 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
3148 if test -z "$ac_cpp_err"; then
3149 ac_header_preproc=yes
3151 echo "$as_me: failed program was:" >&5
3152 sed 's/^/| /' conftest.$ac_ext >&5
3154 ac_header_preproc=no
3156 rm -f conftest.err conftest.$ac_ext
3157 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
3158 echo "${ECHO_T}$ac_header_preproc" >&6
3160 # So? What about this header?
3161 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
3163 { echo "$as_me:$LINENO: WARNING: minix/config.h: accepted by the compiler, rejected by the preprocessor!" >&5
3164 echo "$as_me: WARNING: minix/config.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
3165 { echo "$as_me:$LINENO: WARNING: minix/config.h: proceeding with the compiler's result" >&5
3166 echo "$as_me: WARNING: minix/config.h: proceeding with the compiler's result" >&2;}
3167 ac_header_preproc=yes
3170 { echo "$as_me:$LINENO: WARNING: minix/config.h: present but cannot be compiled" >&5
3171 echo "$as_me: WARNING: minix/config.h: present but cannot be compiled" >&2;}
3172 { echo "$as_me:$LINENO: WARNING: minix/config.h: check for missing prerequisite headers?" >&5
3173 echo "$as_me: WARNING: minix/config.h: check for missing prerequisite headers?" >&2;}
3174 { echo "$as_me:$LINENO: WARNING: minix/config.h: see the Autoconf documentation" >&5
3175 echo "$as_me: WARNING: minix/config.h: see the Autoconf documentation" >&2;}
3176 { echo "$as_me:$LINENO: WARNING: minix/config.h: section \"Present But Cannot Be Compiled\"" >&5
3177 echo "$as_me: WARNING: minix/config.h: section \"Present But Cannot Be Compiled\"" >&2;}
3178 { echo "$as_me:$LINENO: WARNING: minix/config.h: proceeding with the preprocessor's result" >&5
3179 echo "$as_me: WARNING: minix/config.h: proceeding with the preprocessor's result" >&2;}
3180 { echo "$as_me:$LINENO: WARNING: minix/config.h: in the future, the compiler will take precedence" >&5
3181 echo "$as_me: WARNING: minix/config.h: in the future, the compiler will take precedence" >&2;}
3184 ## ------------------------------------------ ##
3185 ## Report this to the AC_PACKAGE_NAME lists. ##
3186 ## ------------------------------------------ ##
3189 sed "s/^/$as_me: WARNING: /" >&2
3192 echo "$as_me:$LINENO: checking for minix/config.h" >&5
3193 echo $ECHO_N "checking for minix/config.h... $ECHO_C" >&6
3194 if test "${ac_cv_header_minix_config_h+set}" = set; then
3195 echo $ECHO_N "(cached) $ECHO_C" >&6
3197 ac_cv_header_minix_config_h=$ac_header_preproc
3199 echo "$as_me:$LINENO: result: $ac_cv_header_minix_config_h" >&5
3200 echo "${ECHO_T}$ac_cv_header_minix_config_h" >&6
3203 if test $ac_cv_header_minix_config_h = yes; then
3210 if test "$MINIX" = yes; then
3212 cat >>confdefs.h <<\_ACEOF
3213 #define _POSIX_SOURCE 1
3217 cat >>confdefs.h <<\_ACEOF
3218 #define _POSIX_1_SOURCE 2
3222 cat >>confdefs.h <<\_ACEOF
3230 echo "$as_me:$LINENO: checking whether it is safe to define __EXTENSIONS__" >&5
3231 echo $ECHO_N "checking whether it is safe to define __EXTENSIONS__... $ECHO_C" >&6
3232 if test "${ac_cv_safe_to_define___extensions__+set}" = set; then
3233 echo $ECHO_N "(cached) $ECHO_C" >&6
3235 cat >conftest.$ac_ext <<_ACEOF
3238 cat confdefs.h >>conftest.$ac_ext
3239 cat >>conftest.$ac_ext <<_ACEOF
3240 /* end confdefs.h. */
3242 # define __EXTENSIONS__ 1
3243 $ac_includes_default
3252 rm -f conftest.$ac_objext
3253 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
3254 (eval $ac_compile) 2>conftest.er1
3256 grep -v '^ *+' conftest.er1 >conftest.err
3258 cat conftest.err >&5
3259 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3260 (exit $ac_status); } &&
3261 { ac_try='test -z "$ac_c_werror_flag"
3262 || test ! -s conftest.err'
3263 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3266 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3267 (exit $ac_status); }; } &&
3268 { ac_try='test -s conftest.$ac_objext'
3269 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3272 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3273 (exit $ac_status); }; }; then
3274 ac_cv_safe_to_define___extensions__=yes
3276 echo "$as_me: failed program was:" >&5
3277 sed 's/^/| /' conftest.$ac_ext >&5
3279 ac_cv_safe_to_define___extensions__=no
3281 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
3283 echo "$as_me:$LINENO: result: $ac_cv_safe_to_define___extensions__" >&5
3284 echo "${ECHO_T}$ac_cv_safe_to_define___extensions__" >&6
3285 test $ac_cv_safe_to_define___extensions__ = yes &&
3286 cat >>confdefs.h <<\_ACEOF
3287 #define __EXTENSIONS__ 1
3290 cat >>confdefs.h <<\_ACEOF
3291 #define _ALL_SOURCE 1
3294 cat >>confdefs.h <<\_ACEOF
3295 #define _GNU_SOURCE 1
3298 cat >>confdefs.h <<\_ACEOF
3299 #define _POSIX_PTHREAD_SEMANTICS 1
3302 cat >>confdefs.h <<\_ACEOF
3303 #define _TANDEM_SOURCE 1
3315 echo "$as_me:$LINENO: checking for ${CC-cc} option to accept ANSI C" >&5
3316 echo $ECHO_N "checking for ${CC-cc} option to accept ANSI C... $ECHO_C" >&6
3317 if test "${am_cv_prog_cc_stdc+set}" = set; then
3318 echo $ECHO_N "(cached) $ECHO_C" >&6
3320 am_cv_prog_cc_stdc=no
3322 # Don't try gcc -ansi; that turns off useful extensions and
3323 # breaks some systems' header files.
3324 # AIX -qlanglvl=ansi
3325 # Ultrix and OSF/1 -std1
3326 # HP-UX 10.20 and later -Ae
3327 # HP-UX older versions -Aa -D_HPUX_SOURCE
3328 # SVR4 -Xc -D__EXTENSIONS__
3329 for ac_arg in "" -qlanglvl=ansi -std1 -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
3331 CC="$ac_save_CC $ac_arg"
3332 cat >conftest.$ac_ext <<_ACEOF
3335 cat confdefs.h >>conftest.$ac_ext
3336 cat >>conftest.$ac_ext <<_ACEOF
3337 /* end confdefs.h. */
3340 #include <sys/types.h>
3341 #include <sys/stat.h>
3342 /* Most of the following tests are stolen from RCS 5.7's src/conf.sh. */
3343 struct buf { int x; };
3344 FILE * (*rcsopen) (struct buf *, struct stat *, int);
3345 static char *e (p, i)
3351 static char *f (char * (*g) (char **, int), char **p, ...)
3356 s = g (p, va_arg (v,int));
3360 int test (int i, double x);
3361 struct s1 {int (*f) (int a);};
3362 struct s2 {int (*f) (double a);};
3363 int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
3371 return f (e, argv, 0) != argv[0] || f (e, argv, 1) != argv[1];
3377 rm -f conftest.$ac_objext
3378 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
3379 (eval $ac_compile) 2>conftest.er1
3381 grep -v '^ *+' conftest.er1 >conftest.err
3383 cat conftest.err >&5
3384 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3385 (exit $ac_status); } &&
3386 { ac_try='test -z "$ac_c_werror_flag"
3387 || test ! -s conftest.err'
3388 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3391 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3392 (exit $ac_status); }; } &&
3393 { ac_try='test -s conftest.$ac_objext'
3394 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3397 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3398 (exit $ac_status); }; }; then
3399 am_cv_prog_cc_stdc="$ac_arg"; break
3401 echo "$as_me: failed program was:" >&5
3402 sed 's/^/| /' conftest.$ac_ext >&5
3405 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
3411 if test -z "$am_cv_prog_cc_stdc"; then
3412 echo "$as_me:$LINENO: result: none needed" >&5
3413 echo "${ECHO_T}none needed" >&6
3415 echo "$as_me:$LINENO: result: $am_cv_prog_cc_stdc" >&5
3416 echo "${ECHO_T}$am_cv_prog_cc_stdc" >&6
3418 case "x$am_cv_prog_cc_stdc" in
3420 *) CC="$CC $am_cv_prog_cc_stdc" ;;
3425 for ac_dir in .. $srcdir/..; do
3426 if test -f $ac_dir/install-sh; then
3428 ac_install_sh="$ac_aux_dir/install-sh -c"
3430 elif test -f $ac_dir/install.sh; then
3432 ac_install_sh="$ac_aux_dir/install.sh -c"
3434 elif test -f $ac_dir/shtool; then
3436 ac_install_sh="$ac_aux_dir/shtool install -c"
3440 if test -z "$ac_aux_dir"; then
3441 { { echo "$as_me:$LINENO: error: cannot find install-sh or install.sh in .. $srcdir/.." >&5
3442 echo "$as_me: error: cannot find install-sh or install.sh in .. $srcdir/.." >&2;}
3443 { (exit 1); exit 1; }; }
3445 ac_config_guess="$SHELL $ac_aux_dir/config.guess"
3446 ac_config_sub="$SHELL $ac_aux_dir/config.sub"
3447 ac_configure="$SHELL $ac_aux_dir/configure" # This should be Cygnus configure.
3449 # Make sure we can run config.sub.
3450 $ac_config_sub sun4 >/dev/null 2>&1 ||
3451 { { echo "$as_me:$LINENO: error: cannot run $ac_config_sub" >&5
3452 echo "$as_me: error: cannot run $ac_config_sub" >&2;}
3453 { (exit 1); exit 1; }; }
3455 echo "$as_me:$LINENO: checking build system type" >&5
3456 echo $ECHO_N "checking build system type... $ECHO_C" >&6
3457 if test "${ac_cv_build+set}" = set; then
3458 echo $ECHO_N "(cached) $ECHO_C" >&6
3460 ac_cv_build_alias=$build_alias
3461 test -z "$ac_cv_build_alias" &&
3462 ac_cv_build_alias=`$ac_config_guess`
3463 test -z "$ac_cv_build_alias" &&
3464 { { echo "$as_me:$LINENO: error: cannot guess build type; you must specify one" >&5
3465 echo "$as_me: error: cannot guess build type; you must specify one" >&2;}
3466 { (exit 1); exit 1; }; }
3467 ac_cv_build=`$ac_config_sub $ac_cv_build_alias` ||
3468 { { echo "$as_me:$LINENO: error: $ac_config_sub $ac_cv_build_alias failed" >&5
3469 echo "$as_me: error: $ac_config_sub $ac_cv_build_alias failed" >&2;}
3470 { (exit 1); exit 1; }; }
3473 echo "$as_me:$LINENO: result: $ac_cv_build" >&5
3474 echo "${ECHO_T}$ac_cv_build" >&6
3476 build_cpu=`echo $ac_cv_build | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\1/'`
3477 build_vendor=`echo $ac_cv_build | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\2/'`
3478 build_os=`echo $ac_cv_build | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\3/'`
3481 echo "$as_me:$LINENO: checking host system type" >&5
3482 echo $ECHO_N "checking host system type... $ECHO_C" >&6
3483 if test "${ac_cv_host+set}" = set; then
3484 echo $ECHO_N "(cached) $ECHO_C" >&6
3486 ac_cv_host_alias=$host_alias
3487 test -z "$ac_cv_host_alias" &&
3488 ac_cv_host_alias=$ac_cv_build_alias
3489 ac_cv_host=`$ac_config_sub $ac_cv_host_alias` ||
3490 { { echo "$as_me:$LINENO: error: $ac_config_sub $ac_cv_host_alias failed" >&5
3491 echo "$as_me: error: $ac_config_sub $ac_cv_host_alias failed" >&2;}
3492 { (exit 1); exit 1; }; }
3495 echo "$as_me:$LINENO: result: $ac_cv_host" >&5
3496 echo "${ECHO_T}$ac_cv_host" >&6
3498 host_cpu=`echo $ac_cv_host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\1/'`
3499 host_vendor=`echo $ac_cv_host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\2/'`
3500 host_os=`echo $ac_cv_host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\3/'`
3503 echo "$as_me:$LINENO: checking target system type" >&5
3504 echo $ECHO_N "checking target system type... $ECHO_C" >&6
3505 if test "${ac_cv_target+set}" = set; then
3506 echo $ECHO_N "(cached) $ECHO_C" >&6
3508 ac_cv_target_alias=$target_alias
3509 test "x$ac_cv_target_alias" = "x" &&
3510 ac_cv_target_alias=$ac_cv_host_alias
3511 ac_cv_target=`$ac_config_sub $ac_cv_target_alias` ||
3512 { { echo "$as_me:$LINENO: error: $ac_config_sub $ac_cv_target_alias failed" >&5
3513 echo "$as_me: error: $ac_config_sub $ac_cv_target_alias failed" >&2;}
3514 { (exit 1); exit 1; }; }
3517 echo "$as_me:$LINENO: result: $ac_cv_target" >&5
3518 echo "${ECHO_T}$ac_cv_target" >&6
3519 target=$ac_cv_target
3520 target_cpu=`echo $ac_cv_target | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\1/'`
3521 target_vendor=`echo $ac_cv_target | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\2/'`
3522 target_os=`echo $ac_cv_target | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\3/'`
3525 # The aliases save the names the user supplied, while $host etc.
3526 # will get canonicalized.
3527 test -n "$target_alias" &&
3528 test "$program_prefix$program_suffix$program_transform_name" = \
3530 program_prefix=${target_alias}-
3543 # If we haven't got the data from the intl directory,
3544 # assume NLS is disabled.
3553 if test -f ../intl/config.intl; then
3554 . ../intl/config.intl
3556 echo "$as_me:$LINENO: checking whether NLS is requested" >&5
3557 echo $ECHO_N "checking whether NLS is requested... $ECHO_C" >&6
3558 if test x"$USE_NLS" != xyes; then
3559 echo "$as_me:$LINENO: result: no" >&5
3560 echo "${ECHO_T}no" >&6
3562 echo "$as_me:$LINENO: result: yes" >&5
3563 echo "${ECHO_T}yes" >&6
3565 cat >>confdefs.h <<\_ACEOF
3566 #define ENABLE_NLS 1
3570 echo "$as_me:$LINENO: checking for catalogs to be installed" >&5
3571 echo $ECHO_N "checking for catalogs to be installed... $ECHO_C" >&6
3572 # Look for .po and .gmo files in the source directory.
3575 for cat in $srcdir/po/*.gmo $srcdir/po/*.po; do
3576 # If there aren't any .gmo files the shell will give us the
3577 # literal string "../path/to/srcdir/po/*.gmo" which has to be
3579 case "$cat" in *\**)
3582 # The quadruple backslash is collapsed to a double backslash
3583 # by the backticks, then collapsed again by the double quotes,
3584 # leaving us with one backslash in the sed expression (right
3585 # before the dot that mustn't act as a wildcard).
3586 cat=`echo $cat | sed -e "s!$srcdir/po/!!" -e "s!\\\\.po!.gmo!"`
3587 lang=`echo $cat | sed -e "s!\\\\.gmo!!"`
3588 # The user is allowed to set LINGUAS to a list of languages to
3589 # install catalogs for. If it's empty that means "all of them."
3590 if test "x$LINGUAS" = x; then
3591 CATALOGS="$CATALOGS $cat"
3592 XLINGUAS="$XLINGUAS $lang"
3594 case "$LINGUAS" in *$lang*)
3595 CATALOGS="$CATALOGS $cat"
3596 XLINGUAS="$XLINGUAS $lang"
3602 echo "$as_me:$LINENO: result: $LINGUAS" >&5
3603 echo "${ECHO_T}$LINGUAS" >&6
3616 localedir='${datadir}/locale'
3619 if test x"$USE_NLS" = xyes; then
3620 CONFIG_ALL="$CONFIG_ALL all-po"
3621 CONFIG_CLEAN="$CONFIG_CLEAN clean-po"
3622 CONFIG_INSTALL="$CONFIG_INSTALL install-po"
3623 CONFIG_UNINSTALL="$CONFIG_UNINSTALL uninstall-po"
3639 GNULIB_STRCASESTR=0;
3646 GNULIB_MBSCASECMP=0;
3647 GNULIB_MBSNCASECMP=0;
3648 GNULIB_MBSPCASECMP=0;
3649 GNULIB_MBSCASESTR=0;
3659 HAVE_DECL_MEMRCHR=1;
3665 HAVE_DECL_STRNDUP=1;
3666 HAVE_DECL_STRNLEN=1;
3670 HAVE_DECL_STRTOK_R=1;
3671 HAVE_DECL_STRERROR=1;
3672 HAVE_DECL_STRSIGNAL=1;
3674 REPLACE_STRSIGNAL=0;
3676 REPLACE_STRCASESTR=0;
3680 echo "$as_me:$LINENO: checking whether memmem is declared" >&5
3681 echo $ECHO_N "checking whether memmem is declared... $ECHO_C" >&6
3682 if test "${ac_cv_have_decl_memmem+set}" = set; then
3683 echo $ECHO_N "(cached) $ECHO_C" >&6
3685 cat >conftest.$ac_ext <<_ACEOF
3688 cat confdefs.h >>conftest.$ac_ext
3689 cat >>conftest.$ac_ext <<_ACEOF
3690 /* end confdefs.h. */
3691 $ac_includes_default
3696 char *p = (char *) memmem;
3703 rm -f conftest.$ac_objext
3704 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
3705 (eval $ac_compile) 2>conftest.er1
3707 grep -v '^ *+' conftest.er1 >conftest.err
3709 cat conftest.err >&5
3710 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3711 (exit $ac_status); } &&
3712 { ac_try='test -z "$ac_c_werror_flag"
3713 || test ! -s conftest.err'
3714 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3717 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3718 (exit $ac_status); }; } &&
3719 { ac_try='test -s conftest.$ac_objext'
3720 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3723 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3724 (exit $ac_status); }; }; then
3725 ac_cv_have_decl_memmem=yes
3727 echo "$as_me: failed program was:" >&5
3728 sed 's/^/| /' conftest.$ac_ext >&5
3730 ac_cv_have_decl_memmem=no
3732 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
3734 echo "$as_me:$LINENO: result: $ac_cv_have_decl_memmem" >&5
3735 echo "${ECHO_T}$ac_cv_have_decl_memmem" >&6
3736 if test $ac_cv_have_decl_memmem = yes; then
3738 cat >>confdefs.h <<_ACEOF
3739 #define HAVE_DECL_MEMMEM 1
3744 cat >>confdefs.h <<_ACEOF
3745 #define HAVE_DECL_MEMMEM 0
3765 for ac_func in memmem
3767 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
3768 echo "$as_me:$LINENO: checking for $ac_func" >&5
3769 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
3770 if eval "test \"\${$as_ac_var+set}\" = set"; then
3771 echo $ECHO_N "(cached) $ECHO_C" >&6
3773 cat >conftest.$ac_ext <<_ACEOF
3776 cat confdefs.h >>conftest.$ac_ext
3777 cat >>conftest.$ac_ext <<_ACEOF
3778 /* end confdefs.h. */
3779 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
3780 For example, HP-UX 11i <limits.h> declares gettimeofday. */
3781 #define $ac_func innocuous_$ac_func
3783 /* System header to define __stub macros and hopefully few prototypes,
3784 which can conflict with char $ac_func (); below.
3785 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
3786 <limits.h> exists even on freestanding compilers. */
3789 # include <limits.h>
3791 # include <assert.h>
3796 /* Override any gcc2 internal prototype to avoid an error. */
3801 /* We use char because int might match the return type of a gcc2
3802 builtin and then its argument prototype would still apply. */
3804 /* The GNU C library defines this for functions which it implements
3805 to always fail with ENOSYS. Some functions are actually named
3806 something starting with __ and the normal name is an alias. */
3807 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
3810 char (*f) () = $ac_func;
3819 return f != $ac_func;
3824 rm -f conftest.$ac_objext conftest$ac_exeext
3825 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
3826 (eval $ac_link) 2>conftest.er1
3828 grep -v '^ *+' conftest.er1 >conftest.err
3830 cat conftest.err >&5
3831 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3832 (exit $ac_status); } &&
3833 { ac_try='test -z "$ac_c_werror_flag"
3834 || test ! -s conftest.err'
3835 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3838 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3839 (exit $ac_status); }; } &&
3840 { ac_try='test -s conftest$ac_exeext'
3841 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3844 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3845 (exit $ac_status); }; }; then
3846 eval "$as_ac_var=yes"
3848 echo "$as_me: failed program was:" >&5
3849 sed 's/^/| /' conftest.$ac_ext >&5
3851 eval "$as_ac_var=no"
3853 rm -f conftest.err conftest.$ac_objext \
3854 conftest$ac_exeext conftest.$ac_ext
3856 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
3857 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
3858 if test `eval echo '${'$as_ac_var'}'` = yes; then
3859 cat >>confdefs.h <<_ACEOF
3860 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
3865 gl_LIBOBJS="$gl_LIBOBJS $ac_func.$ac_objext"
3878 if test $ac_cv_have_decl_memmem = no; then
3884 echo "$as_me:$LINENO: checking for long long int" >&5
3885 echo $ECHO_N "checking for long long int... $ECHO_C" >&6
3886 if test "${ac_cv_type_long_long_int+set}" = set; then
3887 echo $ECHO_N "(cached) $ECHO_C" >&6
3889 cat >conftest.$ac_ext <<_ACEOF
3893 cat confdefs.h >>conftest.$ac_ext
3894 cat >>conftest.$ac_ext <<_ACEOF
3895 /* end confdefs.h. */
3896 /* For now, do not test the preprocessor; as of 2007 there are too many
3897 implementations with broken preprocessors. Perhaps this can
3898 be revisited in 2012. In the meantime, code should not expect
3899 #if to work with literals wider than 32 bits. */
3900 /* Test literals. */
3901 long long int ll = 9223372036854775807ll;
3902 long long int nll = -9223372036854775807LL;
3903 unsigned long long int ull = 18446744073709551615ULL;
3904 /* Test constant expressions. */
3905 typedef int a[((-9223372036854775807LL < 0 && 0 < 9223372036854775807ll)
3907 typedef int b[(18446744073709551615ULL <= (unsigned long long int) -1
3913 /* Test availability of runtime routines for shift and division. */
3914 long long int llmax = 9223372036854775807ll;
3915 unsigned long long int ullmax = 18446744073709551615ull;
3916 return ((ll << 63) | (ll >> 63) | (ll < i) | (ll > i)
3917 | (llmax / ll) | (llmax % ll)
3918 | (ull << 63) | (ull >> 63) | (ull << i) | (ull >> i)
3919 | (ullmax / ull) | (ullmax % ull));
3925 rm -f conftest.$ac_objext conftest$ac_exeext
3926 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
3927 (eval $ac_link) 2>conftest.er1
3929 grep -v '^ *+' conftest.er1 >conftest.err
3931 cat conftest.err >&5
3932 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3933 (exit $ac_status); } &&
3934 { ac_try='test -z "$ac_c_werror_flag"
3935 || test ! -s conftest.err'
3936 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3939 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3940 (exit $ac_status); }; } &&
3941 { ac_try='test -s conftest$ac_exeext'
3942 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3945 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3946 (exit $ac_status); }; }; then
3947 if test "$cross_compiling" = yes; then
3948 ac_cv_type_long_long_int=yes
3950 cat >conftest.$ac_ext <<_ACEOF
3953 cat confdefs.h >>conftest.$ac_ext
3954 cat >>conftest.$ac_ext <<_ACEOF
3955 /* end confdefs.h. */
3959 (1LL << (sizeof (long long int) * CHAR_BIT - 2))
3960 # define LLONG_MAX (HALF - 1 + HALF)
3965 long long int n = 1;
3969 long long int m = n << i;
3972 if (LLONG_MAX / 2 < m)
3980 rm -f conftest$ac_exeext
3981 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
3982 (eval $ac_link) 2>&5
3984 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3985 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
3986 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3989 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3990 (exit $ac_status); }; }; then
3991 ac_cv_type_long_long_int=yes
3993 echo "$as_me: program exited with status $ac_status" >&5
3994 echo "$as_me: failed program was:" >&5
3995 sed 's/^/| /' conftest.$ac_ext >&5
3998 ac_cv_type_long_long_int=no
4000 rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
4003 echo "$as_me: failed program was:" >&5
4004 sed 's/^/| /' conftest.$ac_ext >&5
4006 ac_cv_type_long_long_int=no
4008 rm -f conftest.err conftest.$ac_objext \
4009 conftest$ac_exeext conftest.$ac_ext
4011 echo "$as_me:$LINENO: result: $ac_cv_type_long_long_int" >&5
4012 echo "${ECHO_T}$ac_cv_type_long_long_int" >&6
4013 if test $ac_cv_type_long_long_int = yes; then
4015 cat >>confdefs.h <<\_ACEOF
4016 #define HAVE_LONG_LONG_INT 1
4022 echo "$as_me:$LINENO: checking for unsigned long long int" >&5
4023 echo $ECHO_N "checking for unsigned long long int... $ECHO_C" >&6
4024 if test "${ac_cv_type_unsigned_long_long_int+set}" = set; then
4025 echo $ECHO_N "(cached) $ECHO_C" >&6
4027 cat >conftest.$ac_ext <<_ACEOF
4031 cat confdefs.h >>conftest.$ac_ext
4032 cat >>conftest.$ac_ext <<_ACEOF
4033 /* end confdefs.h. */
4034 /* For now, do not test the preprocessor; as of 2007 there are too many
4035 implementations with broken preprocessors. Perhaps this can
4036 be revisited in 2012. In the meantime, code should not expect
4037 #if to work with literals wider than 32 bits. */
4038 /* Test literals. */
4039 long long int ll = 9223372036854775807ll;
4040 long long int nll = -9223372036854775807LL;
4041 unsigned long long int ull = 18446744073709551615ULL;
4042 /* Test constant expressions. */
4043 typedef int a[((-9223372036854775807LL < 0 && 0 < 9223372036854775807ll)
4045 typedef int b[(18446744073709551615ULL <= (unsigned long long int) -1
4051 /* Test availability of runtime routines for shift and division. */
4052 long long int llmax = 9223372036854775807ll;
4053 unsigned long long int ullmax = 18446744073709551615ull;
4054 return ((ll << 63) | (ll >> 63) | (ll < i) | (ll > i)
4055 | (llmax / ll) | (llmax % ll)
4056 | (ull << 63) | (ull >> 63) | (ull << i) | (ull >> i)
4057 | (ullmax / ull) | (ullmax % ull));
4063 rm -f conftest.$ac_objext conftest$ac_exeext
4064 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
4065 (eval $ac_link) 2>conftest.er1
4067 grep -v '^ *+' conftest.er1 >conftest.err
4069 cat conftest.err >&5
4070 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4071 (exit $ac_status); } &&
4072 { ac_try='test -z "$ac_c_werror_flag"
4073 || test ! -s conftest.err'
4074 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4077 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4078 (exit $ac_status); }; } &&
4079 { ac_try='test -s conftest$ac_exeext'
4080 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4083 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4084 (exit $ac_status); }; }; then
4085 ac_cv_type_unsigned_long_long_int=yes
4087 echo "$as_me: failed program was:" >&5
4088 sed 's/^/| /' conftest.$ac_ext >&5
4090 ac_cv_type_unsigned_long_long_int=no
4092 rm -f conftest.err conftest.$ac_objext \
4093 conftest$ac_exeext conftest.$ac_ext
4095 echo "$as_me:$LINENO: result: $ac_cv_type_unsigned_long_long_int" >&5
4096 echo "${ECHO_T}$ac_cv_type_unsigned_long_long_int" >&6
4097 if test $ac_cv_type_unsigned_long_long_int = yes; then
4099 cat >>confdefs.h <<\_ACEOF
4100 #define HAVE_UNSIGNED_LONG_LONG_INT 1
4107 echo "$as_me:$LINENO: checking whether the preprocessor supports include_next" >&5
4108 echo $ECHO_N "checking whether the preprocessor supports include_next... $ECHO_C" >&6
4109 if test "${gl_cv_have_include_next+set}" = set; then
4110 echo $ECHO_N "(cached) $ECHO_C" >&6
4112 rm -rf conftestd1 conftestd2
4113 mkdir conftestd1 conftestd2
4114 cat <<EOF > conftestd1/conftest.h
4115 #define DEFINED_IN_CONFTESTD1
4116 #include_next <conftest.h>
4117 #ifdef DEFINED_IN_CONFTESTD2
4120 #error "include_next doesn't work"
4123 cat <<EOF > conftestd2/conftest.h
4124 #ifndef DEFINED_IN_CONFTESTD1
4125 #error "include_next test doesn't work"
4127 #define DEFINED_IN_CONFTESTD2
4129 save_CPPFLAGS="$CPPFLAGS"
4130 CPPFLAGS="$CPPFLAGS -Iconftestd1 -Iconftestd2"
4131 cat >conftest.$ac_ext <<_ACEOF
4132 #include <conftest.h>
4134 rm -f conftest.$ac_objext
4135 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
4136 (eval $ac_compile) 2>conftest.er1
4138 grep -v '^ *+' conftest.er1 >conftest.err
4140 cat conftest.err >&5
4141 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4142 (exit $ac_status); } &&
4143 { ac_try='test -z "$ac_c_werror_flag"
4144 || test ! -s conftest.err'
4145 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4148 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4149 (exit $ac_status); }; } &&
4150 { ac_try='test -s conftest.$ac_objext'
4151 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4154 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4155 (exit $ac_status); }; }; then
4156 gl_cv_have_include_next=yes
4158 echo "$as_me: failed program was:" >&5
4159 sed 's/^/| /' conftest.$ac_ext >&5
4161 gl_cv_have_include_next=no
4163 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
4164 CPPFLAGS="$save_CPPFLAGS"
4165 rm -rf conftestd1 conftestd2
4168 echo "$as_me:$LINENO: result: $gl_cv_have_include_next" >&5
4169 echo "${ECHO_T}$gl_cv_have_include_next" >&6
4170 if test $gl_cv_have_include_next = yes; then
4173 cat >>confdefs.h <<\_ACEOF
4174 #define HAVE_INCLUDE_NEXT 1
4178 INCLUDE_NEXT=include_next
4180 INCLUDE_NEXT=include
4189 for ac_header in $gl_header_list
4191 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
4192 if eval "test \"\${$as_ac_Header+set}\" = set"; then
4193 echo "$as_me:$LINENO: checking for $ac_header" >&5
4194 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
4195 if eval "test \"\${$as_ac_Header+set}\" = set"; then
4196 echo $ECHO_N "(cached) $ECHO_C" >&6
4198 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
4199 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
4201 # Is the header compilable?
4202 echo "$as_me:$LINENO: checking $ac_header usability" >&5
4203 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
4204 cat >conftest.$ac_ext <<_ACEOF
4207 cat confdefs.h >>conftest.$ac_ext
4208 cat >>conftest.$ac_ext <<_ACEOF
4209 /* end confdefs.h. */
4210 $ac_includes_default
4211 #include <$ac_header>
4213 rm -f conftest.$ac_objext
4214 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
4215 (eval $ac_compile) 2>conftest.er1
4217 grep -v '^ *+' conftest.er1 >conftest.err
4219 cat conftest.err >&5
4220 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4221 (exit $ac_status); } &&
4222 { ac_try='test -z "$ac_c_werror_flag"
4223 || test ! -s conftest.err'
4224 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4227 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4228 (exit $ac_status); }; } &&
4229 { ac_try='test -s conftest.$ac_objext'
4230 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4233 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4234 (exit $ac_status); }; }; then
4235 ac_header_compiler=yes
4237 echo "$as_me: failed program was:" >&5
4238 sed 's/^/| /' conftest.$ac_ext >&5
4240 ac_header_compiler=no
4242 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
4243 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
4244 echo "${ECHO_T}$ac_header_compiler" >&6
4246 # Is the header present?
4247 echo "$as_me:$LINENO: checking $ac_header presence" >&5
4248 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
4249 cat >conftest.$ac_ext <<_ACEOF
4252 cat confdefs.h >>conftest.$ac_ext
4253 cat >>conftest.$ac_ext <<_ACEOF
4254 /* end confdefs.h. */
4255 #include <$ac_header>
4257 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
4258 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
4260 grep -v '^ *+' conftest.er1 >conftest.err
4262 cat conftest.err >&5
4263 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4264 (exit $ac_status); } >/dev/null; then
4265 if test -s conftest.err; then
4266 ac_cpp_err=$ac_c_preproc_warn_flag
4267 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
4274 if test -z "$ac_cpp_err"; then
4275 ac_header_preproc=yes
4277 echo "$as_me: failed program was:" >&5
4278 sed 's/^/| /' conftest.$ac_ext >&5
4280 ac_header_preproc=no
4282 rm -f conftest.err conftest.$ac_ext
4283 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
4284 echo "${ECHO_T}$ac_header_preproc" >&6
4286 # So? What about this header?
4287 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
4289 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
4290 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
4291 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
4292 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
4293 ac_header_preproc=yes
4296 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
4297 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
4298 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
4299 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
4300 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
4301 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
4302 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
4303 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
4304 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
4305 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
4306 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
4307 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
4310 ## ------------------------------------------ ##
4311 ## Report this to the AC_PACKAGE_NAME lists. ##
4312 ## ------------------------------------------ ##
4315 sed "s/^/$as_me: WARNING: /" >&2
4318 echo "$as_me:$LINENO: checking for $ac_header" >&5
4319 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
4320 if eval "test \"\${$as_ac_Header+set}\" = set"; then
4321 echo $ECHO_N "(cached) $ECHO_C" >&6
4323 eval "$as_ac_Header=\$ac_header_preproc"
4325 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
4326 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
4329 if test `eval echo '${'$as_ac_Header'}'` = yes; then
4330 cat >>confdefs.h <<_ACEOF
4331 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
4349 echo "$as_me:$LINENO: checking for C/C++ restrict keyword" >&5
4350 echo $ECHO_N "checking for C/C++ restrict keyword... $ECHO_C" >&6
4351 if test "${ac_cv_c_restrict+set}" = set; then
4352 echo $ECHO_N "(cached) $ECHO_C" >&6
4355 # The order here caters to the fact that C++ does not require restrict.
4356 for ac_kw in __restrict __restrict__ _Restrict restrict; do
4357 cat >conftest.$ac_ext <<_ACEOF
4360 cat confdefs.h >>conftest.$ac_ext
4361 cat >>conftest.$ac_ext <<_ACEOF
4362 /* end confdefs.h. */
4363 typedef int * int_ptr;
4364 int foo (int_ptr $ac_kw ip) {
4378 rm -f conftest.$ac_objext
4379 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
4380 (eval $ac_compile) 2>conftest.er1
4382 grep -v '^ *+' conftest.er1 >conftest.err
4384 cat conftest.err >&5
4385 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4386 (exit $ac_status); } &&
4387 { ac_try='test -z "$ac_c_werror_flag"
4388 || test ! -s conftest.err'
4389 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4392 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4393 (exit $ac_status); }; } &&
4394 { ac_try='test -s conftest.$ac_objext'
4395 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4398 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4399 (exit $ac_status); }; }; then
4400 ac_cv_c_restrict=$ac_kw
4402 echo "$as_me: failed program was:" >&5
4403 sed 's/^/| /' conftest.$ac_ext >&5
4406 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
4407 test "$ac_cv_c_restrict" != no && break
4411 echo "$as_me:$LINENO: result: $ac_cv_c_restrict" >&5
4412 echo "${ECHO_T}$ac_cv_c_restrict" >&6
4415 case $ac_cv_c_restrict in
4417 no) cat >>confdefs.h <<\_ACEOF
4421 *) cat >>confdefs.h <<_ACEOF
4422 #define restrict $ac_cv_c_restrict
4447 if test $gl_cv_have_include_next = yes; then
4448 gl_cv_next_string_h='<'string.h'>'
4450 echo "$as_me:$LINENO: checking absolute name of <string.h>" >&5
4451 echo $ECHO_N "checking absolute name of <string.h>... $ECHO_C" >&6
4452 if test "${gl_cv_next_string_h+set}" = set; then
4453 echo $ECHO_N "(cached) $ECHO_C" >&6
4456 if test $ac_cv_header_string_h = yes; then
4457 cat >conftest.$ac_ext <<_ACEOF
4460 cat confdefs.h >>conftest.$ac_ext
4461 cat >>conftest.$ac_ext <<_ACEOF
4462 /* end confdefs.h. */
4466 gl_cv_next_string_h='"'`(eval "$ac_cpp conftest.$ac_ext") 2>&5 |
4467 sed -n '\#/string.h#{
4468 s#.*"\(.*/string.h\)".*#\1#
4474 gl_cv_next_string_h='<'string.h'>'
4478 echo "$as_me:$LINENO: result: $gl_cv_next_string_h" >&5
4479 echo "${ECHO_T}$gl_cv_next_string_h" >&6
4481 NEXT_STRING_H=$gl_cv_next_string_h
4488 HAVE_DECL_WCWIDTH=1;
4497 GL_COND_LIBTOOL_TRUE=
4498 GL_COND_LIBTOOL_FALSE='#'
4500 GL_COND_LIBTOOL_TRUE='#'
4501 GL_COND_LIBTOOL_FALSE=
4504 gl_cond_libtool=false
4510 gl_source_base='gnulib'
4520 for ac_func in memchr
4522 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
4523 echo "$as_me:$LINENO: checking for $ac_func" >&5
4524 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
4525 if eval "test \"\${$as_ac_var+set}\" = set"; then
4526 echo $ECHO_N "(cached) $ECHO_C" >&6
4528 cat >conftest.$ac_ext <<_ACEOF
4531 cat confdefs.h >>conftest.$ac_ext
4532 cat >>conftest.$ac_ext <<_ACEOF
4533 /* end confdefs.h. */
4534 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
4535 For example, HP-UX 11i <limits.h> declares gettimeofday. */
4536 #define $ac_func innocuous_$ac_func
4538 /* System header to define __stub macros and hopefully few prototypes,
4539 which can conflict with char $ac_func (); below.
4540 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
4541 <limits.h> exists even on freestanding compilers. */
4544 # include <limits.h>
4546 # include <assert.h>
4551 /* Override any gcc2 internal prototype to avoid an error. */
4556 /* We use char because int might match the return type of a gcc2
4557 builtin and then its argument prototype would still apply. */
4559 /* The GNU C library defines this for functions which it implements
4560 to always fail with ENOSYS. Some functions are actually named
4561 something starting with __ and the normal name is an alias. */
4562 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
4565 char (*f) () = $ac_func;
4574 return f != $ac_func;
4579 rm -f conftest.$ac_objext conftest$ac_exeext
4580 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
4581 (eval $ac_link) 2>conftest.er1
4583 grep -v '^ *+' conftest.er1 >conftest.err
4585 cat conftest.err >&5
4586 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4587 (exit $ac_status); } &&
4588 { ac_try='test -z "$ac_c_werror_flag"
4589 || test ! -s conftest.err'
4590 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4593 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4594 (exit $ac_status); }; } &&
4595 { ac_try='test -s conftest$ac_exeext'
4596 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4599 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4600 (exit $ac_status); }; }; then
4601 eval "$as_ac_var=yes"
4603 echo "$as_me: failed program was:" >&5
4604 sed 's/^/| /' conftest.$ac_ext >&5
4606 eval "$as_ac_var=no"
4608 rm -f conftest.err conftest.$ac_objext \
4609 conftest$ac_exeext conftest.$ac_ext
4611 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
4612 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
4613 if test `eval echo '${'$as_ac_var'}'` = yes; then
4614 cat >>confdefs.h <<_ACEOF
4615 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
4620 gl_LIBOBJS="$gl_LIBOBJS $ac_func.$ac_objext"
4626 if test $ac_cv_func_memchr = no; then
4629 for ac_header in bp-sym.h
4631 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
4632 if eval "test \"\${$as_ac_Header+set}\" = set"; then
4633 echo "$as_me:$LINENO: checking for $ac_header" >&5
4634 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
4635 if eval "test \"\${$as_ac_Header+set}\" = set"; then
4636 echo $ECHO_N "(cached) $ECHO_C" >&6
4638 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
4639 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
4641 # Is the header compilable?
4642 echo "$as_me:$LINENO: checking $ac_header usability" >&5
4643 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
4644 cat >conftest.$ac_ext <<_ACEOF
4647 cat confdefs.h >>conftest.$ac_ext
4648 cat >>conftest.$ac_ext <<_ACEOF
4649 /* end confdefs.h. */
4650 $ac_includes_default
4651 #include <$ac_header>
4653 rm -f conftest.$ac_objext
4654 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
4655 (eval $ac_compile) 2>conftest.er1
4657 grep -v '^ *+' conftest.er1 >conftest.err
4659 cat conftest.err >&5
4660 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4661 (exit $ac_status); } &&
4662 { ac_try='test -z "$ac_c_werror_flag"
4663 || test ! -s conftest.err'
4664 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4667 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4668 (exit $ac_status); }; } &&
4669 { ac_try='test -s conftest.$ac_objext'
4670 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4673 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4674 (exit $ac_status); }; }; then
4675 ac_header_compiler=yes
4677 echo "$as_me: failed program was:" >&5
4678 sed 's/^/| /' conftest.$ac_ext >&5
4680 ac_header_compiler=no
4682 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
4683 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
4684 echo "${ECHO_T}$ac_header_compiler" >&6
4686 # Is the header present?
4687 echo "$as_me:$LINENO: checking $ac_header presence" >&5
4688 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
4689 cat >conftest.$ac_ext <<_ACEOF
4692 cat confdefs.h >>conftest.$ac_ext
4693 cat >>conftest.$ac_ext <<_ACEOF
4694 /* end confdefs.h. */
4695 #include <$ac_header>
4697 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
4698 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
4700 grep -v '^ *+' conftest.er1 >conftest.err
4702 cat conftest.err >&5
4703 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4704 (exit $ac_status); } >/dev/null; then
4705 if test -s conftest.err; then
4706 ac_cpp_err=$ac_c_preproc_warn_flag
4707 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
4714 if test -z "$ac_cpp_err"; then
4715 ac_header_preproc=yes
4717 echo "$as_me: failed program was:" >&5
4718 sed 's/^/| /' conftest.$ac_ext >&5
4720 ac_header_preproc=no
4722 rm -f conftest.err conftest.$ac_ext
4723 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
4724 echo "${ECHO_T}$ac_header_preproc" >&6
4726 # So? What about this header?
4727 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
4729 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
4730 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
4731 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
4732 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
4733 ac_header_preproc=yes
4736 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
4737 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
4738 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
4739 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
4740 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
4741 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
4742 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
4743 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
4744 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
4745 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
4746 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
4747 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
4750 ## ------------------------------------------ ##
4751 ## Report this to the AC_PACKAGE_NAME lists. ##
4752 ## ------------------------------------------ ##
4755 sed "s/^/$as_me: WARNING: /" >&2
4758 echo "$as_me:$LINENO: checking for $ac_header" >&5
4759 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
4760 if eval "test \"\${$as_ac_Header+set}\" = set"; then
4761 echo $ECHO_N "(cached) $ECHO_C" >&6
4763 eval "$as_ac_Header=\$ac_header_preproc"
4765 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
4766 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
4769 if test `eval echo '${'$as_ac_Header'}'` = yes; then
4770 cat >>confdefs.h <<_ACEOF
4771 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
4782 echo "$as_me:$LINENO: checking for working memcmp" >&5
4783 echo $ECHO_N "checking for working memcmp... $ECHO_C" >&6
4784 if test "${ac_cv_func_memcmp_working+set}" = set; then
4785 echo $ECHO_N "(cached) $ECHO_C" >&6
4787 if test "$cross_compiling" = yes; then
4788 ac_cv_func_memcmp_working=no
4790 cat >conftest.$ac_ext <<_ACEOF
4793 cat confdefs.h >>conftest.$ac_ext
4794 cat >>conftest.$ac_ext <<_ACEOF
4795 /* end confdefs.h. */
4796 $ac_includes_default
4801 /* Some versions of memcmp are not 8-bit clean. */
4802 char c0 = 0x40, c1 = 0x80, c2 = 0x81;
4803 if (memcmp(&c0, &c2, 1) >= 0 || memcmp(&c1, &c2, 1) >= 0)
4806 /* The Next x86 OpenStep bug shows up only when comparing 16 bytes
4807 or more and with at least one buffer not starting on a 4-byte boundary.
4808 William Lewis provided this test program. */
4813 for (i = 0; i < 4; i++)
4817 strcpy (a, "--------01111111");
4818 strcpy (b, "--------10000000");
4819 if (memcmp (a, b, 16) >= 0)
4829 rm -f conftest$ac_exeext
4830 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
4831 (eval $ac_link) 2>&5
4833 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4834 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
4835 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4838 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4839 (exit $ac_status); }; }; then
4840 ac_cv_func_memcmp_working=yes
4842 echo "$as_me: program exited with status $ac_status" >&5
4843 echo "$as_me: failed program was:" >&5
4844 sed 's/^/| /' conftest.$ac_ext >&5
4847 ac_cv_func_memcmp_working=no
4849 rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
4852 echo "$as_me:$LINENO: result: $ac_cv_func_memcmp_working" >&5
4853 echo "${ECHO_T}$ac_cv_func_memcmp_working" >&6
4854 test $ac_cv_func_memcmp_working = no &&
4861 gl_LIBOBJS="$gl_LIBOBJS memcmp.$ac_objext"
4864 if test $ac_cv_func_memcmp_working = no; then
4866 cat >>confdefs.h <<\_ACEOF
4867 #define memcmp rpl_memcmp
4875 if test $ac_cv_have_decl_memmem = yes; then
4876 echo "$as_me:$LINENO: checking whether memmem works in linear time" >&5
4877 echo $ECHO_N "checking whether memmem works in linear time... $ECHO_C" >&6
4878 if test "${gl_cv_func_memmem_works+set}" = set; then
4879 echo $ECHO_N "(cached) $ECHO_C" >&6
4881 if test "$cross_compiling" = yes; then
4882 gl_cv_func_memmem_works="guessing no"
4884 cat >conftest.$ac_ext <<_ACEOF
4887 cat confdefs.h >>conftest.$ac_ext
4888 cat >>conftest.$ac_ext <<_ACEOF
4889 /* end confdefs.h. */
4891 #include <string.h> /* for memmem */
4892 #include <stdlib.h> /* for malloc */
4893 #include <unistd.h> /* for alarm */
4899 char *haystack = (char *) malloc (2 * m + 1);
4900 char *needle = (char *) malloc (m + 1);
4902 /* Failure to compile this test due to missing alarm is okay,
4903 since all such platforms (mingw) also lack memmem. */
4905 /* Check for quadratic performance. */
4906 if (haystack && needle)
4908 memset (haystack, 'A', 2 * m);
4909 haystack[2 * m] = 'B';
4910 memset (needle, 'A', m);
4912 result = memmem (haystack, 2 * m + 1, needle, m + 1);
4914 /* Check for empty needle behavior. */
4915 return !result || !memmem ("a", 1, 0, 0);
4920 rm -f conftest$ac_exeext
4921 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
4922 (eval $ac_link) 2>&5
4924 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4925 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
4926 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4929 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4930 (exit $ac_status); }; }; then
4931 gl_cv_func_memmem_works=yes
4933 echo "$as_me: program exited with status $ac_status" >&5
4934 echo "$as_me: failed program was:" >&5
4935 sed 's/^/| /' conftest.$ac_ext >&5
4938 gl_cv_func_memmem_works=no
4940 rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
4943 echo "$as_me:$LINENO: result: $gl_cv_func_memmem_works" >&5
4944 echo "${ECHO_T}$gl_cv_func_memmem_works" >&6
4945 if test "$gl_cv_func_memmem_works" != yes; then
4954 gl_LIBOBJS="$gl_LIBOBJS memmem.$ac_objext"
4971 for ac_func in memmem
4973 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
4974 echo "$as_me:$LINENO: checking for $ac_func" >&5
4975 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
4976 if eval "test \"\${$as_ac_var+set}\" = set"; then
4977 echo $ECHO_N "(cached) $ECHO_C" >&6
4979 cat >conftest.$ac_ext <<_ACEOF
4982 cat confdefs.h >>conftest.$ac_ext
4983 cat >>conftest.$ac_ext <<_ACEOF
4984 /* end confdefs.h. */
4985 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
4986 For example, HP-UX 11i <limits.h> declares gettimeofday. */
4987 #define $ac_func innocuous_$ac_func
4989 /* System header to define __stub macros and hopefully few prototypes,
4990 which can conflict with char $ac_func (); below.
4991 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
4992 <limits.h> exists even on freestanding compilers. */
4995 # include <limits.h>
4997 # include <assert.h>
5002 /* Override any gcc2 internal prototype to avoid an error. */
5007 /* We use char because int might match the return type of a gcc2
5008 builtin and then its argument prototype would still apply. */
5010 /* The GNU C library defines this for functions which it implements
5011 to always fail with ENOSYS. Some functions are actually named
5012 something starting with __ and the normal name is an alias. */
5013 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
5016 char (*f) () = $ac_func;
5025 return f != $ac_func;
5030 rm -f conftest.$ac_objext conftest$ac_exeext
5031 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
5032 (eval $ac_link) 2>conftest.er1
5034 grep -v '^ *+' conftest.er1 >conftest.err
5036 cat conftest.err >&5
5037 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5038 (exit $ac_status); } &&
5039 { ac_try='test -z "$ac_c_werror_flag"
5040 || test ! -s conftest.err'
5041 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5044 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5045 (exit $ac_status); }; } &&
5046 { ac_try='test -s conftest$ac_exeext'
5047 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5050 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5051 (exit $ac_status); }; }; then
5052 eval "$as_ac_var=yes"
5054 echo "$as_me: failed program was:" >&5
5055 sed 's/^/| /' conftest.$ac_ext >&5
5057 eval "$as_ac_var=no"
5059 rm -f conftest.err conftest.$ac_objext \
5060 conftest$ac_exeext conftest.$ac_ext
5062 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
5063 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
5064 if test `eval echo '${'$as_ac_var'}'` = yes; then
5065 cat >>confdefs.h <<_ACEOF
5066 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
5071 gl_LIBOBJS="$gl_LIBOBJS $ac_func.$ac_objext"
5084 if test $ac_cv_have_decl_memmem = no; then
5096 if test $ac_cv_type_long_long_int = yes; then
5097 HAVE_LONG_LONG_INT=1
5099 HAVE_LONG_LONG_INT=0
5103 if test $ac_cv_type_unsigned_long_long_int = yes; then
5104 HAVE_UNSIGNED_LONG_LONG_INT=1
5106 HAVE_UNSIGNED_LONG_LONG_INT=0
5110 if test $ac_cv_header_inttypes_h = yes; then
5117 if test $ac_cv_header_sys_types_h = yes; then
5135 if test $gl_cv_have_include_next = yes; then
5136 gl_cv_next_stdint_h='<'stdint.h'>'
5138 echo "$as_me:$LINENO: checking absolute name of <stdint.h>" >&5
5139 echo $ECHO_N "checking absolute name of <stdint.h>... $ECHO_C" >&6
5140 if test "${gl_cv_next_stdint_h+set}" = set; then
5141 echo $ECHO_N "(cached) $ECHO_C" >&6
5144 if test $ac_cv_header_stdint_h = yes; then
5145 cat >conftest.$ac_ext <<_ACEOF
5148 cat confdefs.h >>conftest.$ac_ext
5149 cat >>conftest.$ac_ext <<_ACEOF
5150 /* end confdefs.h. */
5154 gl_cv_next_stdint_h='"'`(eval "$ac_cpp conftest.$ac_ext") 2>&5 |
5155 sed -n '\#/stdint.h#{
5156 s#.*"\(.*/stdint.h\)".*#\1#
5162 gl_cv_next_stdint_h='<'stdint.h'>'
5166 echo "$as_me:$LINENO: result: $gl_cv_next_stdint_h" >&5
5167 echo "${ECHO_T}$gl_cv_next_stdint_h" >&6
5169 NEXT_STDINT_H=$gl_cv_next_stdint_h
5173 if test $ac_cv_header_stdint_h = yes; then
5180 if test $ac_cv_header_stdint_h = yes; then
5181 echo "$as_me:$LINENO: checking whether stdint.h conforms to C99" >&5
5182 echo $ECHO_N "checking whether stdint.h conforms to C99... $ECHO_C" >&6
5183 if test "${gl_cv_header_working_stdint_h+set}" = set; then
5184 echo $ECHO_N "(cached) $ECHO_C" >&6
5186 gl_cv_header_working_stdint_h=no
5187 cat >conftest.$ac_ext <<_ACEOF
5191 cat confdefs.h >>conftest.$ac_ext
5192 cat >>conftest.$ac_ext <<_ACEOF
5193 /* end confdefs.h. */
5195 #define __STDC_LIMIT_MACROS 1 /* to make it work also in C++ mode */
5196 #define __STDC_CONSTANT_MACROS 1 /* to make it work also in C++ mode */
5197 #define _GL_JUST_INCLUDE_SYSTEM_STDINT_H 1 /* work if build isn't clean */
5199 /* Dragonfly defines WCHAR_MIN, WCHAR_MAX only in <wchar.h>. */
5200 #if !(defined WCHAR_MIN && defined WCHAR_MAX)
5201 #error "WCHAR_MIN, WCHAR_MAX not defined in <stdint.h>"
5205 /* BSD/OS 4.0.1 has a bug: <stddef.h>, <stdio.h> and <time.h> must be
5206 included before <wchar.h>. */
5217 int8_t a1 = INT8_MAX;
5218 int8_t a1min = INT8_MIN;
5221 int16_t a2 = INT16_MAX;
5222 int16_t a2min = INT16_MIN;
5225 int32_t a3 = INT32_MAX;
5226 int32_t a3min = INT32_MIN;
5229 int64_t a4 = INT64_MAX;
5230 int64_t a4min = INT64_MIN;
5233 uint8_t b1 = UINT8_MAX;
5235 typedef int b1[(unsigned char) -1 != 255 ? 1 : -1];
5238 uint16_t b2 = UINT16_MAX;
5241 uint32_t b3 = UINT32_MAX;
5244 uint64_t b4 = UINT64_MAX;
5246 int_least8_t c1 = INT8_C (0x7f);
5247 int_least8_t c1max = INT_LEAST8_MAX;
5248 int_least8_t c1min = INT_LEAST8_MIN;
5249 int_least16_t c2 = INT16_C (0x7fff);
5250 int_least16_t c2max = INT_LEAST16_MAX;
5251 int_least16_t c2min = INT_LEAST16_MIN;
5252 int_least32_t c3 = INT32_C (0x7fffffff);
5253 int_least32_t c3max = INT_LEAST32_MAX;
5254 int_least32_t c3min = INT_LEAST32_MIN;
5255 int_least64_t c4 = INT64_C (0x7fffffffffffffff);
5256 int_least64_t c4max = INT_LEAST64_MAX;
5257 int_least64_t c4min = INT_LEAST64_MIN;
5258 uint_least8_t d1 = UINT8_C (0xff);
5259 uint_least8_t d1max = UINT_LEAST8_MAX;
5260 uint_least16_t d2 = UINT16_C (0xffff);
5261 uint_least16_t d2max = UINT_LEAST16_MAX;
5262 uint_least32_t d3 = UINT32_C (0xffffffff);
5263 uint_least32_t d3max = UINT_LEAST32_MAX;
5264 uint_least64_t d4 = UINT64_C (0xffffffffffffffff);
5265 uint_least64_t d4max = UINT_LEAST64_MAX;
5266 int_fast8_t e1 = INT_FAST8_MAX;
5267 int_fast8_t e1min = INT_FAST8_MIN;
5268 int_fast16_t e2 = INT_FAST16_MAX;
5269 int_fast16_t e2min = INT_FAST16_MIN;
5270 int_fast32_t e3 = INT_FAST32_MAX;
5271 int_fast32_t e3min = INT_FAST32_MIN;
5272 int_fast64_t e4 = INT_FAST64_MAX;
5273 int_fast64_t e4min = INT_FAST64_MIN;
5274 uint_fast8_t f1 = UINT_FAST8_MAX;
5275 uint_fast16_t f2 = UINT_FAST16_MAX;
5276 uint_fast32_t f3 = UINT_FAST32_MAX;
5277 uint_fast64_t f4 = UINT_FAST64_MAX;
5279 intptr_t g = INTPTR_MAX;
5280 intptr_t gmin = INTPTR_MIN;
5283 uintptr_t h = UINTPTR_MAX;
5285 intmax_t i = INTMAX_MAX;
5286 uintmax_t j = UINTMAX_MAX;
5288 #include <limits.h> /* for CHAR_BIT */
5289 #define TYPE_MINIMUM(t) \
5290 ((t) ((t) 0 < (t) -1 ? (t) 0 : ~ (t) 0 << (sizeof (t) * CHAR_BIT - 1)))
5291 #define TYPE_MAXIMUM(t) \
5292 ((t) ((t) 0 < (t) -1 ? (t) -1 : ~ (~ (t) 0 << (sizeof (t) * CHAR_BIT - 1))))
5295 PTRDIFF_MIN == TYPE_MINIMUM (ptrdiff_t)
5296 && PTRDIFF_MAX == TYPE_MAXIMUM (ptrdiff_t)
5298 /* Detect bug in FreeBSD 6.0 / ia64. */
5299 int check_SIG_ATOMIC:
5300 SIG_ATOMIC_MIN == TYPE_MINIMUM (sig_atomic_t)
5301 && SIG_ATOMIC_MAX == TYPE_MAXIMUM (sig_atomic_t)
5303 int check_SIZE: SIZE_MAX == TYPE_MAXIMUM (size_t) ? 1 : -1;
5305 WCHAR_MIN == TYPE_MINIMUM (wchar_t)
5306 && WCHAR_MAX == TYPE_MAXIMUM (wchar_t)
5308 /* Detect bug in mingw. */
5310 WINT_MIN == TYPE_MINIMUM (wint_t)
5311 && WINT_MAX == TYPE_MAXIMUM (wint_t)
5314 /* Detect bugs in glibc 2.4 and Solaris 10 stdint.h, among others. */
5316 (-1 < UINT8_C (0)) == (-1 < (uint_least8_t) 0) ? 1 : -1;
5318 (-1 < UINT16_C (0)) == (-1 < (uint_least16_t) 0) ? 1 : -1;
5320 /* Detect bugs in OpenBSD 3.9 stdint.h. */
5322 int check_uint8: (uint8_t) -1 == UINT8_MAX ? 1 : -1;
5325 int check_uint16: (uint16_t) -1 == UINT16_MAX ? 1 : -1;
5328 int check_uint32: (uint32_t) -1 == UINT32_MAX ? 1 : -1;
5331 int check_uint64: (uint64_t) -1 == UINT64_MAX ? 1 : -1;
5333 int check_uint_least8: (uint_least8_t) -1 == UINT_LEAST8_MAX ? 1 : -1;
5334 int check_uint_least16: (uint_least16_t) -1 == UINT_LEAST16_MAX ? 1 : -1;
5335 int check_uint_least32: (uint_least32_t) -1 == UINT_LEAST32_MAX ? 1 : -1;
5336 int check_uint_least64: (uint_least64_t) -1 == UINT_LEAST64_MAX ? 1 : -1;
5337 int check_uint_fast8: (uint_fast8_t) -1 == UINT_FAST8_MAX ? 1 : -1;
5338 int check_uint_fast16: (uint_fast16_t) -1 == UINT_FAST16_MAX ? 1 : -1;
5339 int check_uint_fast32: (uint_fast32_t) -1 == UINT_FAST32_MAX ? 1 : -1;
5340 int check_uint_fast64: (uint_fast64_t) -1 == UINT_FAST64_MAX ? 1 : -1;
5341 int check_uintptr: (uintptr_t) -1 == UINTPTR_MAX ? 1 : -1;
5342 int check_uintmax: (uintmax_t) -1 == UINTMAX_MAX ? 1 : -1;
5343 int check_size: (size_t) -1 == SIZE_MAX ? 1 : -1;
5354 rm -f conftest.$ac_objext
5355 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
5356 (eval $ac_compile) 2>conftest.er1
5358 grep -v '^ *+' conftest.er1 >conftest.err
5360 cat conftest.err >&5
5361 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5362 (exit $ac_status); } &&
5363 { ac_try='test -z "$ac_c_werror_flag"
5364 || test ! -s conftest.err'
5365 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5368 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5369 (exit $ac_status); }; } &&
5370 { ac_try='test -s conftest.$ac_objext'
5371 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5374 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5375 (exit $ac_status); }; }; then
5376 gl_cv_header_working_stdint_h=yes
5378 echo "$as_me: failed program was:" >&5
5379 sed 's/^/| /' conftest.$ac_ext >&5
5382 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
5384 echo "$as_me:$LINENO: result: $gl_cv_header_working_stdint_h" >&5
5385 echo "${ECHO_T}$gl_cv_header_working_stdint_h" >&6
5387 if test "$gl_cv_header_working_stdint_h" = yes; then
5392 for ac_header in sys/inttypes.h sys/bitypes.h
5394 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
5395 if eval "test \"\${$as_ac_Header+set}\" = set"; then
5396 echo "$as_me:$LINENO: checking for $ac_header" >&5
5397 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
5398 if eval "test \"\${$as_ac_Header+set}\" = set"; then
5399 echo $ECHO_N "(cached) $ECHO_C" >&6
5401 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
5402 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
5404 # Is the header compilable?
5405 echo "$as_me:$LINENO: checking $ac_header usability" >&5
5406 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
5407 cat >conftest.$ac_ext <<_ACEOF
5410 cat confdefs.h >>conftest.$ac_ext
5411 cat >>conftest.$ac_ext <<_ACEOF
5412 /* end confdefs.h. */
5413 $ac_includes_default
5414 #include <$ac_header>
5416 rm -f conftest.$ac_objext
5417 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
5418 (eval $ac_compile) 2>conftest.er1
5420 grep -v '^ *+' conftest.er1 >conftest.err
5422 cat conftest.err >&5
5423 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5424 (exit $ac_status); } &&
5425 { ac_try='test -z "$ac_c_werror_flag"
5426 || test ! -s conftest.err'
5427 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5430 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5431 (exit $ac_status); }; } &&
5432 { ac_try='test -s conftest.$ac_objext'
5433 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5436 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5437 (exit $ac_status); }; }; then
5438 ac_header_compiler=yes
5440 echo "$as_me: failed program was:" >&5
5441 sed 's/^/| /' conftest.$ac_ext >&5
5443 ac_header_compiler=no
5445 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
5446 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
5447 echo "${ECHO_T}$ac_header_compiler" >&6
5449 # Is the header present?
5450 echo "$as_me:$LINENO: checking $ac_header presence" >&5
5451 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
5452 cat >conftest.$ac_ext <<_ACEOF
5455 cat confdefs.h >>conftest.$ac_ext
5456 cat >>conftest.$ac_ext <<_ACEOF
5457 /* end confdefs.h. */
5458 #include <$ac_header>
5460 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
5461 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
5463 grep -v '^ *+' conftest.er1 >conftest.err
5465 cat conftest.err >&5
5466 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5467 (exit $ac_status); } >/dev/null; then
5468 if test -s conftest.err; then
5469 ac_cpp_err=$ac_c_preproc_warn_flag
5470 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
5477 if test -z "$ac_cpp_err"; then
5478 ac_header_preproc=yes
5480 echo "$as_me: failed program was:" >&5
5481 sed 's/^/| /' conftest.$ac_ext >&5
5483 ac_header_preproc=no
5485 rm -f conftest.err conftest.$ac_ext
5486 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
5487 echo "${ECHO_T}$ac_header_preproc" >&6
5489 # So? What about this header?
5490 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
5492 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
5493 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
5494 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
5495 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
5496 ac_header_preproc=yes
5499 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
5500 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
5501 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
5502 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
5503 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
5504 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
5505 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
5506 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
5507 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
5508 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
5509 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
5510 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
5513 ## ------------------------------------------ ##
5514 ## Report this to the AC_PACKAGE_NAME lists. ##
5515 ## ------------------------------------------ ##
5518 sed "s/^/$as_me: WARNING: /" >&2
5521 echo "$as_me:$LINENO: checking for $ac_header" >&5
5522 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
5523 if eval "test \"\${$as_ac_Header+set}\" = set"; then
5524 echo $ECHO_N "(cached) $ECHO_C" >&6
5526 eval "$as_ac_Header=\$ac_header_preproc"
5528 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
5529 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
5532 if test `eval echo '${'$as_ac_Header'}'` = yes; then
5533 cat >>confdefs.h <<_ACEOF
5534 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
5541 if test $ac_cv_header_sys_inttypes_h = yes; then
5542 HAVE_SYS_INTTYPES_H=1
5544 HAVE_SYS_INTTYPES_H=0
5547 if test $ac_cv_header_sys_bitypes_h = yes; then
5548 HAVE_SYS_BITYPES_H=1
5550 HAVE_SYS_BITYPES_H=0
5570 for gltype in ptrdiff_t sig_atomic_t size_t wchar_t wint_t ; do
5571 echo "$as_me:$LINENO: checking for bit size of $gltype" >&5
5572 echo $ECHO_N "checking for bit size of $gltype... $ECHO_C" >&6
5573 if eval "test \"\${gl_cv_bitsizeof_${gltype}+set}\" = set"; then
5574 echo $ECHO_N "(cached) $ECHO_C" >&6
5576 if test "$cross_compiling" = yes; then
5577 # Depending upon the size, compute the lo and hi bounds.
5578 cat >conftest.$ac_ext <<_ACEOF
5581 cat confdefs.h >>conftest.$ac_ext
5582 cat >>conftest.$ac_ext <<_ACEOF
5583 /* end confdefs.h. */
5585 /* BSD/OS 4.0.1 has a bug: <stddef.h>, <stdio.h> and <time.h> must be
5586 included before <wchar.h>. */
5599 static int test_array [1 - 2 * !((sizeof ($gltype) * CHAR_BIT) >= 0)];
5606 rm -f conftest.$ac_objext
5607 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
5608 (eval $ac_compile) 2>conftest.er1
5610 grep -v '^ *+' conftest.er1 >conftest.err
5612 cat conftest.err >&5
5613 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5614 (exit $ac_status); } &&
5615 { ac_try='test -z "$ac_c_werror_flag"
5616 || test ! -s conftest.err'
5617 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5620 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5621 (exit $ac_status); }; } &&
5622 { ac_try='test -s conftest.$ac_objext'
5623 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5626 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5627 (exit $ac_status); }; }; then
5630 cat >conftest.$ac_ext <<_ACEOF
5633 cat confdefs.h >>conftest.$ac_ext
5634 cat >>conftest.$ac_ext <<_ACEOF
5635 /* end confdefs.h. */
5637 /* BSD/OS 4.0.1 has a bug: <stddef.h>, <stdio.h> and <time.h> must be
5638 included before <wchar.h>. */
5651 static int test_array [1 - 2 * !((sizeof ($gltype) * CHAR_BIT) <= $ac_mid)];
5658 rm -f conftest.$ac_objext
5659 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
5660 (eval $ac_compile) 2>conftest.er1
5662 grep -v '^ *+' conftest.er1 >conftest.err
5664 cat conftest.err >&5
5665 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5666 (exit $ac_status); } &&
5667 { ac_try='test -z "$ac_c_werror_flag"
5668 || test ! -s conftest.err'
5669 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5672 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5673 (exit $ac_status); }; } &&
5674 { ac_try='test -s conftest.$ac_objext'
5675 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5678 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5679 (exit $ac_status); }; }; then
5680 ac_hi=$ac_mid; break
5682 echo "$as_me: failed program was:" >&5
5683 sed 's/^/| /' conftest.$ac_ext >&5
5685 ac_lo=`expr $ac_mid + 1`
5686 if test $ac_lo -le $ac_mid; then
5690 ac_mid=`expr 2 '*' $ac_mid + 1`
5692 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
5695 echo "$as_me: failed program was:" >&5
5696 sed 's/^/| /' conftest.$ac_ext >&5
5698 cat >conftest.$ac_ext <<_ACEOF
5701 cat confdefs.h >>conftest.$ac_ext
5702 cat >>conftest.$ac_ext <<_ACEOF
5703 /* end confdefs.h. */
5705 /* BSD/OS 4.0.1 has a bug: <stddef.h>, <stdio.h> and <time.h> must be
5706 included before <wchar.h>. */
5719 static int test_array [1 - 2 * !((sizeof ($gltype) * CHAR_BIT) < 0)];
5726 rm -f conftest.$ac_objext
5727 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
5728 (eval $ac_compile) 2>conftest.er1
5730 grep -v '^ *+' conftest.er1 >conftest.err
5732 cat conftest.err >&5
5733 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5734 (exit $ac_status); } &&
5735 { ac_try='test -z "$ac_c_werror_flag"
5736 || test ! -s conftest.err'
5737 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5740 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5741 (exit $ac_status); }; } &&
5742 { ac_try='test -s conftest.$ac_objext'
5743 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5746 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5747 (exit $ac_status); }; }; then
5750 cat >conftest.$ac_ext <<_ACEOF
5753 cat confdefs.h >>conftest.$ac_ext
5754 cat >>conftest.$ac_ext <<_ACEOF
5755 /* end confdefs.h. */
5757 /* BSD/OS 4.0.1 has a bug: <stddef.h>, <stdio.h> and <time.h> must be
5758 included before <wchar.h>. */
5771 static int test_array [1 - 2 * !((sizeof ($gltype) * CHAR_BIT) >= $ac_mid)];
5778 rm -f conftest.$ac_objext
5779 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
5780 (eval $ac_compile) 2>conftest.er1
5782 grep -v '^ *+' conftest.er1 >conftest.err
5784 cat conftest.err >&5
5785 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5786 (exit $ac_status); } &&
5787 { ac_try='test -z "$ac_c_werror_flag"
5788 || test ! -s conftest.err'
5789 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5792 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5793 (exit $ac_status); }; } &&
5794 { ac_try='test -s conftest.$ac_objext'
5795 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5798 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5799 (exit $ac_status); }; }; then
5800 ac_lo=$ac_mid; break
5802 echo "$as_me: failed program was:" >&5
5803 sed 's/^/| /' conftest.$ac_ext >&5
5805 ac_hi=`expr '(' $ac_mid ')' - 1`
5806 if test $ac_mid -le $ac_hi; then
5810 ac_mid=`expr 2 '*' $ac_mid`
5812 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
5815 echo "$as_me: failed program was:" >&5
5816 sed 's/^/| /' conftest.$ac_ext >&5
5820 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
5822 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
5823 # Binary search between lo and hi bounds.
5824 while test "x$ac_lo" != "x$ac_hi"; do
5825 ac_mid=`expr '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo`
5826 cat >conftest.$ac_ext <<_ACEOF
5829 cat confdefs.h >>conftest.$ac_ext
5830 cat >>conftest.$ac_ext <<_ACEOF
5831 /* end confdefs.h. */
5833 /* BSD/OS 4.0.1 has a bug: <stddef.h>, <stdio.h> and <time.h> must be
5834 included before <wchar.h>. */
5847 static int test_array [1 - 2 * !((sizeof ($gltype) * CHAR_BIT) <= $ac_mid)];
5854 rm -f conftest.$ac_objext
5855 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
5856 (eval $ac_compile) 2>conftest.er1
5858 grep -v '^ *+' conftest.er1 >conftest.err
5860 cat conftest.err >&5
5861 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5862 (exit $ac_status); } &&
5863 { ac_try='test -z "$ac_c_werror_flag"
5864 || test ! -s conftest.err'
5865 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5868 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5869 (exit $ac_status); }; } &&
5870 { ac_try='test -s conftest.$ac_objext'
5871 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5874 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5875 (exit $ac_status); }; }; then
5878 echo "$as_me: failed program was:" >&5
5879 sed 's/^/| /' conftest.$ac_ext >&5
5881 ac_lo=`expr '(' $ac_mid ')' + 1`
5883 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
5887 '') result=unknown ;;
5890 if test "$cross_compiling" = yes; then
5891 { { echo "$as_me:$LINENO: error: in \`$ac_pwd':" >&5
5892 echo "$as_me: error: in \`$ac_pwd':" >&2;}
5893 { { echo "$as_me:$LINENO: error: cannot run test program while cross compiling
5894 See \`config.log' for more details." >&5
5895 echo "$as_me: error: cannot run test program while cross compiling
5896 See \`config.log' for more details." >&2;}
5897 { (exit 1); exit 1; }; }; }
5899 cat >conftest.$ac_ext <<_ACEOF
5902 cat confdefs.h >>conftest.$ac_ext
5903 cat >>conftest.$ac_ext <<_ACEOF
5904 /* end confdefs.h. */
5906 /* BSD/OS 4.0.1 has a bug: <stddef.h>, <stdio.h> and <time.h> must be
5907 included before <wchar.h>. */
5917 long longval () { return sizeof ($gltype) * CHAR_BIT; }
5918 unsigned long ulongval () { return sizeof ($gltype) * CHAR_BIT; }
5925 FILE *f = fopen ("conftest.val", "w");
5928 if ((sizeof ($gltype) * CHAR_BIT) < 0)
5930 long i = longval ();
5931 if (i != (sizeof ($gltype) * CHAR_BIT))
5933 fprintf (f, "%ld\n", i);
5937 unsigned long i = ulongval ();
5938 if (i != (sizeof ($gltype) * CHAR_BIT))
5940 fprintf (f, "%lu\n", i);
5942 exit (ferror (f) || fclose (f) != 0);
5948 rm -f conftest$ac_exeext
5949 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
5950 (eval $ac_link) 2>&5
5952 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5953 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
5954 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5957 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5958 (exit $ac_status); }; }; then
5959 result=`cat conftest.val`
5961 echo "$as_me: program exited with status $ac_status" >&5
5962 echo "$as_me: failed program was:" >&5
5963 sed 's/^/| /' conftest.$ac_ext >&5
5968 rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
5972 eval gl_cv_bitsizeof_${gltype}=\$result
5975 echo "$as_me:$LINENO: result: `eval echo '${'gl_cv_bitsizeof_${gltype}'}'`" >&5
5976 echo "${ECHO_T}`eval echo '${'gl_cv_bitsizeof_${gltype}'}'`" >&6
5977 eval result=\$gl_cv_bitsizeof_${gltype}
5978 if test $result = unknown; then
5981 GLTYPE=`echo "$gltype" | tr 'abcdefghijklmnopqrstuvwxyz ' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ_'`
5982 cat >>confdefs.h <<_ACEOF
5983 #define BITSIZEOF_${GLTYPE} $result
5986 eval BITSIZEOF_${GLTYPE}=\$result
5995 for gltype in sig_atomic_t wchar_t wint_t ; do
5996 echo "$as_me:$LINENO: checking whether $gltype is signed" >&5
5997 echo $ECHO_N "checking whether $gltype is signed... $ECHO_C" >&6
5998 if eval "test \"\${gl_cv_type_${gltype}_signed+set}\" = set"; then
5999 echo $ECHO_N "(cached) $ECHO_C" >&6
6001 cat >conftest.$ac_ext <<_ACEOF
6004 cat confdefs.h >>conftest.$ac_ext
6005 cat >>conftest.$ac_ext <<_ACEOF
6006 /* end confdefs.h. */
6008 /* BSD/OS 4.0.1 has a bug: <stddef.h>, <stdio.h> and <time.h> must be
6009 included before <wchar.h>. */
6018 int verify[2 * (($gltype) -1 < ($gltype) 0) - 1];
6027 rm -f conftest.$ac_objext
6028 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
6029 (eval $ac_compile) 2>conftest.er1
6031 grep -v '^ *+' conftest.er1 >conftest.err
6033 cat conftest.err >&5
6034 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6035 (exit $ac_status); } &&
6036 { ac_try='test -z "$ac_c_werror_flag"
6037 || test ! -s conftest.err'
6038 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6041 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6042 (exit $ac_status); }; } &&
6043 { ac_try='test -s conftest.$ac_objext'
6044 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6047 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6048 (exit $ac_status); }; }; then
6051 echo "$as_me: failed program was:" >&5
6052 sed 's/^/| /' conftest.$ac_ext >&5
6056 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
6057 eval gl_cv_type_${gltype}_signed=\$result
6060 echo "$as_me:$LINENO: result: `eval echo '${'gl_cv_type_${gltype}_signed'}'`" >&5
6061 echo "${ECHO_T}`eval echo '${'gl_cv_type_${gltype}_signed'}'`" >&6
6062 eval result=\$gl_cv_type_${gltype}_signed
6063 GLTYPE=`echo $gltype | tr 'abcdefghijklmnopqrstuvwxyz ' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ_'`
6064 if test "$result" = yes; then
6065 cat >>confdefs.h <<_ACEOF
6066 #define HAVE_SIGNED_${GLTYPE} 1
6069 eval HAVE_SIGNED_${GLTYPE}=1
6071 eval HAVE_SIGNED_${GLTYPE}=0
6076 gl_cv_type_ptrdiff_t_signed=yes
6077 gl_cv_type_size_t_signed=no
6085 for gltype in ptrdiff_t sig_atomic_t size_t wchar_t wint_t ; do
6086 echo "$as_me:$LINENO: checking for $gltype integer literal suffix" >&5
6087 echo $ECHO_N "checking for $gltype integer literal suffix... $ECHO_C" >&6
6088 if eval "test \"\${gl_cv_type_${gltype}_suffix+set}\" = set"; then
6089 echo $ECHO_N "(cached) $ECHO_C" >&6
6091 eval gl_cv_type_${gltype}_suffix=no
6092 eval result=\$gl_cv_type_${gltype}_signed
6093 if test "$result" = yes; then
6098 for glsuf in "$glsufu" ${glsufu}l ${glsufu}ll ${glsufu}i64; do
6101 l) gltype1='long int';;
6102 ll) gltype1='long long int';;
6103 i64) gltype1='__int64';;
6104 u) gltype1='unsigned int';;
6105 ul) gltype1='unsigned long int';;
6106 ull) gltype1='unsigned long long int';;
6107 ui64)gltype1='unsigned __int64';;
6109 cat >conftest.$ac_ext <<_ACEOF
6112 cat confdefs.h >>conftest.$ac_ext
6113 cat >>conftest.$ac_ext <<_ACEOF
6114 /* end confdefs.h. */
6116 /* BSD/OS 4.0.1 has a bug: <stddef.h>, <stdio.h> and <time.h> must be
6117 included before <wchar.h>. */
6127 extern $gltype1 foo;
6136 rm -f conftest.$ac_objext
6137 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
6138 (eval $ac_compile) 2>conftest.er1
6140 grep -v '^ *+' conftest.er1 >conftest.err
6142 cat conftest.err >&5
6143 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6144 (exit $ac_status); } &&
6145 { ac_try='test -z "$ac_c_werror_flag"
6146 || test ! -s conftest.err'
6147 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6150 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6151 (exit $ac_status); }; } &&
6152 { ac_try='test -s conftest.$ac_objext'
6153 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6156 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6157 (exit $ac_status); }; }; then
6158 eval gl_cv_type_${gltype}_suffix=\$glsuf
6160 echo "$as_me: failed program was:" >&5
6161 sed 's/^/| /' conftest.$ac_ext >&5
6164 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
6165 eval result=\$gl_cv_type_${gltype}_suffix
6166 test "$result" != no && break
6169 echo "$as_me:$LINENO: result: `eval echo '${'gl_cv_type_${gltype}_suffix'}'`" >&5
6170 echo "${ECHO_T}`eval echo '${'gl_cv_type_${gltype}_suffix'}'`" >&6
6171 GLTYPE=`echo $gltype | tr 'abcdefghijklmnopqrstuvwxyz ' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ_'`
6172 eval result=\$gl_cv_type_${gltype}_suffix
6173 test "$result" = no && result=
6174 eval ${GLTYPE}_SUFFIX=\$result
6175 cat >>confdefs.h <<_ACEOF
6176 #define ${GLTYPE}_SUFFIX $result
6192 echo "$as_me:$LINENO: checking whether <wchar.h> is standalone" >&5
6193 echo $ECHO_N "checking whether <wchar.h> is standalone... $ECHO_C" >&6
6194 if test "${gl_cv_header_wchar_h_standalone+set}" = set; then
6195 echo $ECHO_N "(cached) $ECHO_C" >&6
6197 cat >conftest.$ac_ext <<_ACEOF
6201 rm -f conftest.$ac_objext
6202 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
6203 (eval $ac_compile) 2>conftest.er1
6205 grep -v '^ *+' conftest.er1 >conftest.err
6207 cat conftest.err >&5
6208 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6209 (exit $ac_status); } &&
6210 { ac_try='test -z "$ac_c_werror_flag"
6211 || test ! -s conftest.err'
6212 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6215 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6216 (exit $ac_status); }; } &&
6217 { ac_try='test -s conftest.$ac_objext'
6218 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6221 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6222 (exit $ac_status); }; }; then
6223 gl_cv_header_wchar_h_standalone=yes
6225 echo "$as_me: failed program was:" >&5
6226 sed 's/^/| /' conftest.$ac_ext >&5
6228 gl_cv_header_wchar_h_standalone=no
6230 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
6232 echo "$as_me:$LINENO: result: $gl_cv_header_wchar_h_standalone" >&5
6233 echo "${ECHO_T}$gl_cv_header_wchar_h_standalone" >&6
6234 if test $gl_cv_header_wchar_h_standalone != yes; then
6245 if test $ac_cv_header_wchar_h = yes; then
6262 if test $gl_cv_have_include_next = yes; then
6263 gl_cv_next_wchar_h='<'wchar.h'>'
6265 echo "$as_me:$LINENO: checking absolute name of <wchar.h>" >&5
6266 echo $ECHO_N "checking absolute name of <wchar.h>... $ECHO_C" >&6
6267 if test "${gl_cv_next_wchar_h+set}" = set; then
6268 echo $ECHO_N "(cached) $ECHO_C" >&6
6271 if test $ac_cv_header_wchar_h = yes; then
6272 cat >conftest.$ac_ext <<_ACEOF
6275 cat confdefs.h >>conftest.$ac_ext
6276 cat >>conftest.$ac_ext <<_ACEOF
6277 /* end confdefs.h. */
6281 gl_cv_next_wchar_h='"'`(eval "$ac_cpp conftest.$ac_ext") 2>&5 |
6282 sed -n '\#/wchar.h#{
6283 s#.*"\(.*/wchar.h\)".*#\1#
6289 gl_cv_next_wchar_h='<'wchar.h'>'
6293 echo "$as_me:$LINENO: result: $gl_cv_next_wchar_h" >&5
6294 echo "${ECHO_T}$gl_cv_next_wchar_h" >&6
6296 NEXT_WCHAR_H=$gl_cv_next_wchar_h
6310 gl_source_base='tests'
6315 LIBGNU_LIBDEPS="$gl_libdeps"
6317 LIBGNU_LTLIBDEPS="$gl_ltlibdeps"
6321 # For Makefile dependencies.
6323 if test x"$STDINT_H" != x; then
6324 GNULIB_STDINT_H=gnulib/$STDINT_H
6330 cat >>confdefs.h <<_ACEOF
6331 #define PACKAGE "$PACKAGE"
6336 # GDB does not use automake, but gnulib does. This line lets us
6337 # generate its Makefile.in.
6338 am__api_version="1.9"
6339 # Find a good install program. We prefer a C program (faster),
6340 # so one script is as good as another. But avoid the broken or
6341 # incompatible versions:
6342 # SysV /etc/install, /usr/sbin/install
6343 # SunOS /usr/etc/install
6344 # IRIX /sbin/install
6346 # AmigaOS /C/install, which installs bootblocks on floppy discs
6347 # AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag
6348 # AFS /usr/afsws/bin/install, which mishandles nonexistent args
6349 # SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff"
6350 # OS/2's system install, which has a completely different semantic
6351 # ./install, which can be erroneously created by make from ./install.sh.
6352 echo "$as_me:$LINENO: checking for a BSD-compatible install" >&5
6353 echo $ECHO_N "checking for a BSD-compatible install... $ECHO_C" >&6
6354 if test -z "$INSTALL"; then
6355 if test "${ac_cv_path_install+set}" = set; then
6356 echo $ECHO_N "(cached) $ECHO_C" >&6
6358 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6362 test -z "$as_dir" && as_dir=.
6363 # Account for people who put trailing slashes in PATH elements.
6365 ./ | .// | /cC/* | \
6366 /etc/* | /usr/sbin/* | /usr/etc/* | /sbin/* | /usr/afsws/bin/* | \
6367 ?:\\/os2\\/install\\/* | ?:\\/OS2\\/INSTALL\\/* | \
6370 # OSF1 and SCO ODT 3.0 have their own names for install.
6371 # Don't use installbsd from OSF since it installs stuff as root
6373 for ac_prog in ginstall scoinst install; do
6374 for ac_exec_ext in '' $ac_executable_extensions; do
6375 if $as_executable_p "$as_dir/$ac_prog$ac_exec_ext"; then
6376 if test $ac_prog = install &&
6377 grep dspmsg "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
6378 # AIX install. It has an incompatible calling convention.
6380 elif test $ac_prog = install &&
6381 grep pwplus "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
6382 # program-specific install script used by HP pwplus--don't use.
6385 ac_cv_path_install="$as_dir/$ac_prog$ac_exec_ext -c"
6397 if test "${ac_cv_path_install+set}" = set; then
6398 INSTALL=$ac_cv_path_install
6400 # As a last resort, use the slow shell script. We don't cache a
6401 # path for INSTALL within a source directory, because that will
6402 # break other packages using the cache if that directory is
6403 # removed, or if the path is relative.
6404 INSTALL=$ac_install_sh
6407 echo "$as_me:$LINENO: result: $INSTALL" >&5
6408 echo "${ECHO_T}$INSTALL" >&6
6410 # Use test -z because SunOS4 sh mishandles braces in ${var-val}.
6411 # It thinks the first close brace ends the variable substitution.
6412 test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}'
6414 test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL}'
6416 test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644'
6418 echo "$as_me:$LINENO: checking whether build environment is sane" >&5
6419 echo $ECHO_N "checking whether build environment is sane... $ECHO_C" >&6
6422 echo timestamp > conftest.file
6423 # Do `set' in a subshell so we don't clobber the current shell's
6424 # arguments. Must try -L first in case configure is actually a
6425 # symlink; some systems play weird games with the mod time of symlinks
6426 # (eg FreeBSD returns the mod time of the symlink's containing
6429 set X `ls -Lt $srcdir/configure conftest.file 2> /dev/null`
6430 if test "$*" = "X"; then
6432 set X `ls -t $srcdir/configure conftest.file`
6435 if test "$*" != "X $srcdir/configure conftest.file" \
6436 && test "$*" != "X conftest.file $srcdir/configure"; then
6438 # If neither matched, then we have a broken ls. This can happen
6439 # if, for instance, CONFIG_SHELL is bash and it inherits a
6440 # broken ls alias from the environment. This has actually
6441 # happened. Such a system could not be considered "sane".
6442 { { echo "$as_me:$LINENO: error: ls -t appears to fail. Make sure there is not a broken
6443 alias in your environment" >&5
6444 echo "$as_me: error: ls -t appears to fail. Make sure there is not a broken
6445 alias in your environment" >&2;}
6446 { (exit 1); exit 1; }; }
6449 test "$2" = conftest.file
6455 { { echo "$as_me:$LINENO: error: newly created file is older than distributed files!
6456 Check your system clock" >&5
6457 echo "$as_me: error: newly created file is older than distributed files!
6458 Check your system clock" >&2;}
6459 { (exit 1); exit 1; }; }
6461 echo "$as_me:$LINENO: result: yes" >&5
6462 echo "${ECHO_T}yes" >&6
6463 test "$program_prefix" != NONE &&
6464 program_transform_name="s,^,$program_prefix,;$program_transform_name"
6465 # Use a double $ so make ignores it.
6466 test "$program_suffix" != NONE &&
6467 program_transform_name="s,\$,$program_suffix,;$program_transform_name"
6468 # Double any \ or $. echo might interpret backslashes.
6469 # By default was `s,x,x', remove it if useless.
6470 cat <<\_ACEOF >conftest.sed
6471 s/[\\$]/&&/g;s/;s,x,x,$//
6473 program_transform_name=`echo $program_transform_name | sed -f conftest.sed`
6476 # expand $ac_aux_dir to an absolute path
6477 am_aux_dir=`cd $ac_aux_dir && pwd`
6479 test x"${MISSING+set}" = xset || MISSING="\${SHELL} $am_aux_dir/missing"
6480 # Use eval to expand $SHELL
6481 if eval "$MISSING --run true"; then
6482 am_missing_run="$MISSING --run "
6485 { echo "$as_me:$LINENO: WARNING: \`missing' script is too old or missing" >&5
6486 echo "$as_me: WARNING: \`missing' script is too old or missing" >&2;}
6489 if mkdir -p --version . >/dev/null 2>&1 && test ! -d ./--version; then
6490 # We used to keeping the `.' as first argument, in order to
6491 # allow $(mkdir_p) to be used without argument. As in
6492 # $(mkdir_p) $(somedir)
6493 # where $(somedir) is conditionally defined. However this is wrong
6495 # 1. if the package is installed by a user who cannot write `.'
6496 # make install will fail,
6497 # 2. the above comment should most certainly read
6498 # $(mkdir_p) $(DESTDIR)$(somedir)
6499 # so it does not work when $(somedir) is undefined and
6500 # $(DESTDIR) is not.
6501 # To support the latter case, we have to write
6502 # test -z "$(somedir)" || $(mkdir_p) $(DESTDIR)$(somedir),
6503 # so the `.' trick is pointless.
6504 mkdir_p='mkdir -p --'
6506 # On NextStep and OpenStep, the `mkdir' command does not
6507 # recognize any option. It will interpret all options as
6508 # directories to create, and then abort because `.' already
6510 for d in ./-p ./--version;
6512 test -d $d && rmdir $d
6514 # $(mkinstalldirs) is defined by Automake if mkinstalldirs exists.
6515 if test -f "$ac_aux_dir/mkinstalldirs"; then
6516 mkdir_p='$(mkinstalldirs)'
6518 mkdir_p='$(install_sh) -d'
6522 for ac_prog in gawk mawk nawk awk
6524 # Extract the first word of "$ac_prog", so it can be a program name with args.
6525 set dummy $ac_prog; ac_word=$2
6526 echo "$as_me:$LINENO: checking for $ac_word" >&5
6527 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
6528 if test "${ac_cv_prog_AWK+set}" = set; then
6529 echo $ECHO_N "(cached) $ECHO_C" >&6
6531 if test -n "$AWK"; then
6532 ac_cv_prog_AWK="$AWK" # Let the user override the test.
6534 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6538 test -z "$as_dir" && as_dir=.
6539 for ac_exec_ext in '' $ac_executable_extensions; do
6540 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
6541 ac_cv_prog_AWK="$ac_prog"
6542 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6551 if test -n "$AWK"; then
6552 echo "$as_me:$LINENO: result: $AWK" >&5
6553 echo "${ECHO_T}$AWK" >&6
6555 echo "$as_me:$LINENO: result: no" >&5
6556 echo "${ECHO_T}no" >&6
6559 test -n "$AWK" && break
6562 echo "$as_me:$LINENO: checking whether ${MAKE-make} sets \$(MAKE)" >&5
6563 echo $ECHO_N "checking whether ${MAKE-make} sets \$(MAKE)... $ECHO_C" >&6
6564 set dummy ${MAKE-make}; ac_make=`echo "$2" | sed 'y,:./+-,___p_,'`
6565 if eval "test \"\${ac_cv_prog_make_${ac_make}_set+set}\" = set"; then
6566 echo $ECHO_N "(cached) $ECHO_C" >&6
6568 cat >conftest.make <<\_ACEOF
6570 @echo 'ac_maketemp="$(MAKE)"'
6572 # GNU make sometimes prints "make[1]: Entering...", which would confuse us.
6573 eval `${MAKE-make} -f conftest.make 2>/dev/null | grep temp=`
6574 if test -n "$ac_maketemp"; then
6575 eval ac_cv_prog_make_${ac_make}_set=yes
6577 eval ac_cv_prog_make_${ac_make}_set=no
6581 if eval "test \"`echo '$ac_cv_prog_make_'${ac_make}_set`\" = yes"; then
6582 echo "$as_me:$LINENO: result: yes" >&5
6583 echo "${ECHO_T}yes" >&6
6586 echo "$as_me:$LINENO: result: no" >&5
6587 echo "${ECHO_T}no" >&6
6588 SET_MAKE="MAKE=${MAKE-make}"
6591 rm -rf .tst 2>/dev/null
6592 mkdir .tst 2>/dev/null
6593 if test -d .tst; then
6598 rmdir .tst 2>/dev/null
6600 DEPDIR="${am__leading_dot}deps"
6602 ac_config_commands="$ac_config_commands depfiles"
6605 am_make=${MAKE-make}
6606 cat > confinc << 'END'
6611 # If we don't find an include directive, just comment out the code.
6612 echo "$as_me:$LINENO: checking for style of include used by $am_make" >&5
6613 echo $ECHO_N "checking for style of include used by $am_make... $ECHO_C" >&6
6617 # First try GNU make style include.
6618 echo "include confinc" > confmf
6619 # We grep out `Entering directory' and `Leaving directory'
6620 # messages which can occur if `w' ends up in MAKEFLAGS.
6621 # In particular we don't look at `^make:' because GNU make might
6622 # be invoked under some other name (usually "gmake"), in which
6623 # case it prints its new name instead of `make'.
6624 if test "`$am_make -s -f confmf 2> /dev/null | grep -v 'ing directory'`" = "done"; then
6629 # Now try BSD make style include.
6630 if test "$am__include" = "#"; then
6631 echo '.include "confinc"' > confmf
6632 if test "`$am_make -s -f confmf 2> /dev/null`" = "done"; then
6633 am__include=.include
6640 echo "$as_me:$LINENO: result: $_am_result" >&5
6641 echo "${ECHO_T}$_am_result" >&6
6642 rm -f confinc confmf
6644 # Check whether --enable-dependency-tracking or --disable-dependency-tracking was given.
6645 if test "${enable_dependency_tracking+set}" = set; then
6646 enableval="$enable_dependency_tracking"
6649 if test "x$enable_dependency_tracking" != xno; then
6650 am_depcomp="$ac_aux_dir/depcomp"
6655 if test "x$enable_dependency_tracking" != xno; then
6665 # test to see if srcdir already configured
6666 if test "`cd $srcdir && pwd`" != "`pwd`" &&
6667 test -f $srcdir/config.status; then
6668 { { echo "$as_me:$LINENO: error: source directory already configured; run \"make distclean\" there first" >&5
6669 echo "$as_me: error: source directory already configured; run \"make distclean\" there first" >&2;}
6670 { (exit 1); exit 1; }; }
6673 # test whether we have cygpath
6674 if test -z "$CYGPATH_W"; then
6675 if (cygpath --version) >/dev/null 2>/dev/null; then
6676 CYGPATH_W='cygpath -w'
6683 # Define the identity of the package.
6685 VERSION=UNUSED-VERSION
6688 # Some tools Automake needs.
6690 ACLOCAL=${ACLOCAL-"${am_missing_run}aclocal-${am__api_version}"}
6693 AUTOCONF=${AUTOCONF-"${am_missing_run}autoconf"}
6696 AUTOMAKE=${AUTOMAKE-"${am_missing_run}automake-${am__api_version}"}
6699 AUTOHEADER=${AUTOHEADER-"${am_missing_run}autoheader"}
6702 MAKEINFO=${MAKEINFO-"${am_missing_run}makeinfo"}
6704 install_sh=${install_sh-"$am_aux_dir/install-sh"}
6706 # Installed binaries are usually stripped using `strip' when the user
6707 # run `make install-strip'. However `strip' might not be the right
6708 # tool to use in cross-compilation environments, therefore Automake
6709 # will honor the `STRIP' environment variable to overrule this program.
6710 if test "$cross_compiling" != no; then
6711 if test -n "$ac_tool_prefix"; then
6712 # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args.
6713 set dummy ${ac_tool_prefix}strip; ac_word=$2
6714 echo "$as_me:$LINENO: checking for $ac_word" >&5
6715 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
6716 if test "${ac_cv_prog_STRIP+set}" = set; then
6717 echo $ECHO_N "(cached) $ECHO_C" >&6
6719 if test -n "$STRIP"; then
6720 ac_cv_prog_STRIP="$STRIP" # Let the user override the test.
6722 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6726 test -z "$as_dir" && as_dir=.
6727 for ac_exec_ext in '' $ac_executable_extensions; do
6728 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
6729 ac_cv_prog_STRIP="${ac_tool_prefix}strip"
6730 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6738 STRIP=$ac_cv_prog_STRIP
6739 if test -n "$STRIP"; then
6740 echo "$as_me:$LINENO: result: $STRIP" >&5
6741 echo "${ECHO_T}$STRIP" >&6
6743 echo "$as_me:$LINENO: result: no" >&5
6744 echo "${ECHO_T}no" >&6
6748 if test -z "$ac_cv_prog_STRIP"; then
6750 # Extract the first word of "strip", so it can be a program name with args.
6751 set dummy strip; ac_word=$2
6752 echo "$as_me:$LINENO: checking for $ac_word" >&5
6753 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
6754 if test "${ac_cv_prog_ac_ct_STRIP+set}" = set; then
6755 echo $ECHO_N "(cached) $ECHO_C" >&6
6757 if test -n "$ac_ct_STRIP"; then
6758 ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test.
6760 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6764 test -z "$as_dir" && as_dir=.
6765 for ac_exec_ext in '' $ac_executable_extensions; do
6766 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
6767 ac_cv_prog_ac_ct_STRIP="strip"
6768 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6774 test -z "$ac_cv_prog_ac_ct_STRIP" && ac_cv_prog_ac_ct_STRIP=":"
6777 ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP
6778 if test -n "$ac_ct_STRIP"; then
6779 echo "$as_me:$LINENO: result: $ac_ct_STRIP" >&5
6780 echo "${ECHO_T}$ac_ct_STRIP" >&6
6782 echo "$as_me:$LINENO: result: no" >&5
6783 echo "${ECHO_T}no" >&6
6788 STRIP="$ac_cv_prog_STRIP"
6792 INSTALL_STRIP_PROGRAM="\${SHELL} \$(install_sh) -c -s"
6794 # We need awk for the "check" target. The system "awk" is bad on
6796 # Always define AMTAR for backward compatibility.
6798 AMTAR=${AMTAR-"${am_missing_run}tar"}
6800 am__tar='${AMTAR} chof - "$$tardir"'; am__untar='${AMTAR} xf -'
6805 depcc="$CC" am_compiler_list=
6807 echo "$as_me:$LINENO: checking dependency style of $depcc" >&5
6808 echo $ECHO_N "checking dependency style of $depcc... $ECHO_C" >&6
6809 if test "${am_cv_CC_dependencies_compiler_type+set}" = set; then
6810 echo $ECHO_N "(cached) $ECHO_C" >&6
6812 if test -z "$AMDEP_TRUE" && test -f "$am_depcomp"; then
6813 # We make a subdir and do the tests there. Otherwise we can end up
6814 # making bogus files that we don't know about and never remove. For
6815 # instance it was reported that on HP-UX the gcc test will end up
6816 # making a dummy file named `D' -- because `-MD' means `put the output
6819 # Copy depcomp to subdir because otherwise we won't find it if we're
6820 # using a relative directory.
6821 cp "$am_depcomp" conftest.dir
6823 # We will build objects and dependencies in a subdirectory because
6824 # it helps to detect inapplicable dependency modes. For instance
6825 # both Tru64's cc and ICC support -MD to output dependencies as a
6826 # side effect of compilation, but ICC will put the dependencies in
6827 # the current directory while Tru64 will put them in the object
6831 am_cv_CC_dependencies_compiler_type=none
6832 if test "$am_compiler_list" = ""; then
6833 am_compiler_list=`sed -n 's/^#*\([a-zA-Z0-9]*\))$/\1/p' < ./depcomp`
6835 for depmode in $am_compiler_list; do
6836 # Setup a source with many dependencies, because some compilers
6837 # like to wrap large dependency lists on column 80 (with \), and
6838 # we should not choose a depcomp mode which is confused by this.
6840 # We need to recreate these files for each test, as the compiler may
6841 # overwrite some of them when testing with obscure command lines.
6842 # This happens at least with the AIX C compiler.
6844 for i in 1 2 3 4 5 6; do
6845 echo '#include "conftst'$i'.h"' >> sub/conftest.c
6846 # Using `: > sub/conftst$i.h' creates only sub/conftst1.h with
6847 # Solaris 8's {/usr,}/bin/sh.
6848 touch sub/conftst$i.h
6850 echo "${am__include} ${am__quote}sub/conftest.Po${am__quote}" > confmf
6854 # after this tag, mechanisms are not by side-effect, so they'll
6855 # only be used when explicitly requested
6856 if test "x$enable_dependency_tracking" = xyes; then
6864 # We check with `-c' and `-o' for the sake of the "dashmstdout"
6865 # mode. It turns out that the SunPro C++ compiler does not properly
6866 # handle `-M -o', and we need to detect this.
6867 if depmode=$depmode \
6868 source=sub/conftest.c object=sub/conftest.${OBJEXT-o} \
6869 depfile=sub/conftest.Po tmpdepfile=sub/conftest.TPo \
6870 $SHELL ./depcomp $depcc -c -o sub/conftest.${OBJEXT-o} sub/conftest.c \
6871 >/dev/null 2>conftest.err &&
6872 grep sub/conftst6.h sub/conftest.Po > /dev/null 2>&1 &&
6873 grep sub/conftest.${OBJEXT-o} sub/conftest.Po > /dev/null 2>&1 &&
6874 ${MAKE-make} -s -f confmf > /dev/null 2>&1; then
6875 # icc doesn't choke on unknown options, it will just issue warnings
6876 # or remarks (even with -Werror). So we grep stderr for any message
6877 # that says an option was ignored or not supported.
6878 # When given -MP, icc 7.0 and 7.1 complain thusly:
6879 # icc: Command line warning: ignoring option '-M'; no argument required
6880 # The diagnosis changed in icc 8.0:
6881 # icc: Command line remark: option '-MP' not supported
6882 if (grep 'ignoring option' conftest.err ||
6883 grep 'not supported' conftest.err) >/dev/null 2>&1; then :; else
6884 am_cv_CC_dependencies_compiler_type=$depmode
6893 am_cv_CC_dependencies_compiler_type=none
6897 echo "$as_me:$LINENO: result: $am_cv_CC_dependencies_compiler_type" >&5
6898 echo "${ECHO_T}$am_cv_CC_dependencies_compiler_type" >&6
6899 CCDEPMODE=depmode=$am_cv_CC_dependencies_compiler_type
6904 test "x$enable_dependency_tracking" != xno \
6905 && test "$am_cv_CC_dependencies_compiler_type" = gcc3; then
6907 am__fastdepCC_FALSE='#'
6909 am__fastdepCC_TRUE='#'
6910 am__fastdepCC_FALSE=
6916 debugdir=${libdir}/debug
6919 # Check whether --with-separate-debug-dir or --without-separate-debug-dir was given.
6920 if test "${with_separate_debug_dir+set}" = set; then
6921 withval="$with_separate_debug_dir"
6922 debugdir="${withval}"
6926 test "x$prefix" = xNONE && prefix="$ac_default_prefix"
6927 test "x$exec_prefix" = xNONE && exec_prefix='${prefix}'
6928 ac_define_dir=`eval echo $debugdir`
6929 ac_define_dir=`eval echo $ac_define_dir`
6931 cat >>confdefs.h <<_ACEOF
6932 #define DEBUGDIR "$ac_define_dir"
6936 #AC_DEFINE_UNQUOTED(DEBUGDIR, "$debugdir"),
6938 if test "x$exec_prefix" = xNONE || test "x$exec_prefix" = 'x${prefix}'; then
6939 if test "x$prefix" = xNONE; then
6940 test_prefix=/usr/local
6945 test_prefix=$exec_prefix
6948 "${test_prefix}"|"${test_prefix}/"*|\
6949 '${exec_prefix}'|'${exec_prefix}/'*)
6951 cat >>confdefs.h <<\_ACEOF
6952 #define DEBUGDIR_RELOCATABLE 1
6960 subdirs="$subdirs doc testsuite"
6963 # Check whether to support alternative target configurations
6964 # Check whether --enable-targets or --disable-targets was given.
6965 if test "${enable_targets+set}" = set; then
6966 enableval="$enable_targets"
6967 case "${enableval}" in
6968 yes | "") { { echo "$as_me:$LINENO: error: enable-targets option must specify target names or 'all'" >&5
6969 echo "$as_me: error: enable-targets option must specify target names or 'all'" >&2;}
6970 { (exit 1); exit 1; }; }
6972 no) enable_targets= ;;
6973 *) enable_targets=$enableval ;;
6977 # Check whether to enable 64-bit support on 32-bit hosts
6978 # Check whether --enable-64-bit-bfd or --disable-64-bit-bfd was given.
6979 if test "${enable_64_bit_bfd+set}" = set; then
6980 enableval="$enable_64_bit_bfd"
6981 case "${enableval}" in
6984 *) { { echo "$as_me:$LINENO: error: bad value ${enableval} for 64-bit-bfd option" >&5
6985 echo "$as_me: error: bad value ${enableval} for 64-bit-bfd option" >&2;}
6986 { (exit 1); exit 1; }; } ;;
6991 # Provide defaults for some variables set by the per-host and per-target
6993 gdb_host_obs=posix-hdep.o
6995 if test "${target}" = "${host}"; then
7001 . $srcdir/configure.host
7003 # Accumulate some settings from configure.tgt over all enabled targets
7008 for targ_alias in `echo $target_alias $enable_targets | sed 's/,/ /g'`
7010 if test "$targ_alias" = "all"; then
7013 # Canonicalize the secondary target names.
7014 result=`$ac_config_sub $targ_alias 2>/dev/null`
7015 if test -n "$result"; then
7021 . ${srcdir}/configure.tgt
7023 # Target-specific object files
7024 for i in ${gdb_target_obs}; do
7025 case " $TARGET_OBS " in
7028 TARGET_OBS="$TARGET_OBS ${i}"
7033 # Check whether this target needs 64-bit CORE_ADDR
7034 if test x${want64} = xfalse; then
7035 . ${srcdir}/../bfd/config.bfd
7040 if test x${all_targets} = xtrue; then
7042 # We want all 64-bit targets if we either:
7043 # - run on a 64-bit host or
7044 # - already require 64-bit support for some other target or
7045 # - the --enable-64-bit-bfd option was supplied
7046 # Otherwise we only support all 32-bit targets.
7048 # NOTE: This test must be in sync with the corresponding
7051 if test x${want64} = xfalse; then
7052 echo "$as_me:$LINENO: checking for long" >&5
7053 echo $ECHO_N "checking for long... $ECHO_C" >&6
7054 if test "${ac_cv_type_long+set}" = set; then
7055 echo $ECHO_N "(cached) $ECHO_C" >&6
7057 cat >conftest.$ac_ext <<_ACEOF
7060 cat confdefs.h >>conftest.$ac_ext
7061 cat >>conftest.$ac_ext <<_ACEOF
7062 /* end confdefs.h. */
7063 $ac_includes_default
7075 rm -f conftest.$ac_objext
7076 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
7077 (eval $ac_compile) 2>conftest.er1
7079 grep -v '^ *+' conftest.er1 >conftest.err
7081 cat conftest.err >&5
7082 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7083 (exit $ac_status); } &&
7084 { ac_try='test -z "$ac_c_werror_flag"
7085 || test ! -s conftest.err'
7086 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7089 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7090 (exit $ac_status); }; } &&
7091 { ac_try='test -s conftest.$ac_objext'
7092 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7095 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7096 (exit $ac_status); }; }; then
7099 echo "$as_me: failed program was:" >&5
7100 sed 's/^/| /' conftest.$ac_ext >&5
7104 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
7106 echo "$as_me:$LINENO: result: $ac_cv_type_long" >&5
7107 echo "${ECHO_T}$ac_cv_type_long" >&6
7109 echo "$as_me:$LINENO: checking size of long" >&5
7110 echo $ECHO_N "checking size of long... $ECHO_C" >&6
7111 if test "${ac_cv_sizeof_long+set}" = set; then
7112 echo $ECHO_N "(cached) $ECHO_C" >&6
7114 if test "$ac_cv_type_long" = yes; then
7115 # The cast to unsigned long works around a bug in the HP C Compiler
7116 # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
7117 # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
7118 # This bug is HP SR number 8606223364.
7119 if test "$cross_compiling" = yes; then
7120 # Depending upon the size, compute the lo and hi bounds.
7121 cat >conftest.$ac_ext <<_ACEOF
7124 cat confdefs.h >>conftest.$ac_ext
7125 cat >>conftest.$ac_ext <<_ACEOF
7126 /* end confdefs.h. */
7127 $ac_includes_default
7131 static int test_array [1 - 2 * !(((long) (sizeof (long))) >= 0)];
7138 rm -f conftest.$ac_objext
7139 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
7140 (eval $ac_compile) 2>conftest.er1
7142 grep -v '^ *+' conftest.er1 >conftest.err
7144 cat conftest.err >&5
7145 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7146 (exit $ac_status); } &&
7147 { ac_try='test -z "$ac_c_werror_flag"
7148 || test ! -s conftest.err'
7149 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7152 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7153 (exit $ac_status); }; } &&
7154 { ac_try='test -s conftest.$ac_objext'
7155 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7158 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7159 (exit $ac_status); }; }; then
7162 cat >conftest.$ac_ext <<_ACEOF
7165 cat confdefs.h >>conftest.$ac_ext
7166 cat >>conftest.$ac_ext <<_ACEOF
7167 /* end confdefs.h. */
7168 $ac_includes_default
7172 static int test_array [1 - 2 * !(((long) (sizeof (long))) <= $ac_mid)];
7179 rm -f conftest.$ac_objext
7180 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
7181 (eval $ac_compile) 2>conftest.er1
7183 grep -v '^ *+' conftest.er1 >conftest.err
7185 cat conftest.err >&5
7186 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7187 (exit $ac_status); } &&
7188 { ac_try='test -z "$ac_c_werror_flag"
7189 || test ! -s conftest.err'
7190 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7193 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7194 (exit $ac_status); }; } &&
7195 { ac_try='test -s conftest.$ac_objext'
7196 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7199 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7200 (exit $ac_status); }; }; then
7201 ac_hi=$ac_mid; break
7203 echo "$as_me: failed program was:" >&5
7204 sed 's/^/| /' conftest.$ac_ext >&5
7206 ac_lo=`expr $ac_mid + 1`
7207 if test $ac_lo -le $ac_mid; then
7211 ac_mid=`expr 2 '*' $ac_mid + 1`
7213 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
7216 echo "$as_me: failed program was:" >&5
7217 sed 's/^/| /' conftest.$ac_ext >&5
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
7229 static int test_array [1 - 2 * !(((long) (sizeof (long))) < 0)];
7236 rm -f conftest.$ac_objext
7237 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
7238 (eval $ac_compile) 2>conftest.er1
7240 grep -v '^ *+' conftest.er1 >conftest.err
7242 cat conftest.err >&5
7243 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7244 (exit $ac_status); } &&
7245 { ac_try='test -z "$ac_c_werror_flag"
7246 || test ! -s conftest.err'
7247 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7250 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7251 (exit $ac_status); }; } &&
7252 { ac_try='test -s conftest.$ac_objext'
7253 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7256 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7257 (exit $ac_status); }; }; then
7260 cat >conftest.$ac_ext <<_ACEOF
7263 cat confdefs.h >>conftest.$ac_ext
7264 cat >>conftest.$ac_ext <<_ACEOF
7265 /* end confdefs.h. */
7266 $ac_includes_default
7270 static int test_array [1 - 2 * !(((long) (sizeof (long))) >= $ac_mid)];
7277 rm -f conftest.$ac_objext
7278 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
7279 (eval $ac_compile) 2>conftest.er1
7281 grep -v '^ *+' conftest.er1 >conftest.err
7283 cat conftest.err >&5
7284 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7285 (exit $ac_status); } &&
7286 { ac_try='test -z "$ac_c_werror_flag"
7287 || test ! -s conftest.err'
7288 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7291 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7292 (exit $ac_status); }; } &&
7293 { ac_try='test -s conftest.$ac_objext'
7294 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7297 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7298 (exit $ac_status); }; }; then
7299 ac_lo=$ac_mid; break
7301 echo "$as_me: failed program was:" >&5
7302 sed 's/^/| /' conftest.$ac_ext >&5
7304 ac_hi=`expr '(' $ac_mid ')' - 1`
7305 if test $ac_mid -le $ac_hi; then
7309 ac_mid=`expr 2 '*' $ac_mid`
7311 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
7314 echo "$as_me: failed program was:" >&5
7315 sed 's/^/| /' conftest.$ac_ext >&5
7319 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
7321 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
7322 # Binary search between lo and hi bounds.
7323 while test "x$ac_lo" != "x$ac_hi"; do
7324 ac_mid=`expr '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo`
7325 cat >conftest.$ac_ext <<_ACEOF
7328 cat confdefs.h >>conftest.$ac_ext
7329 cat >>conftest.$ac_ext <<_ACEOF
7330 /* end confdefs.h. */
7331 $ac_includes_default
7335 static int test_array [1 - 2 * !(((long) (sizeof (long))) <= $ac_mid)];
7342 rm -f conftest.$ac_objext
7343 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
7344 (eval $ac_compile) 2>conftest.er1
7346 grep -v '^ *+' conftest.er1 >conftest.err
7348 cat conftest.err >&5
7349 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7350 (exit $ac_status); } &&
7351 { ac_try='test -z "$ac_c_werror_flag"
7352 || test ! -s conftest.err'
7353 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7356 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7357 (exit $ac_status); }; } &&
7358 { ac_try='test -s conftest.$ac_objext'
7359 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7362 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7363 (exit $ac_status); }; }; then
7366 echo "$as_me: failed program was:" >&5
7367 sed 's/^/| /' conftest.$ac_ext >&5
7369 ac_lo=`expr '(' $ac_mid ')' + 1`
7371 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
7374 ?*) ac_cv_sizeof_long=$ac_lo;;
7375 '') { { echo "$as_me:$LINENO: error: in \`$ac_pwd':" >&5
7376 echo "$as_me: error: in \`$ac_pwd':" >&2;}
7377 { { echo "$as_me:$LINENO: error: cannot compute sizeof (long), 77
7378 See \`config.log' for more details." >&5
7379 echo "$as_me: error: cannot compute sizeof (long), 77
7380 See \`config.log' for more details." >&2;}
7381 { (exit 1); exit 1; }; }; } ;;
7384 if test "$cross_compiling" = yes; then
7385 { { echo "$as_me:$LINENO: error: in \`$ac_pwd':" >&5
7386 echo "$as_me: error: in \`$ac_pwd':" >&2;}
7387 { { echo "$as_me:$LINENO: error: cannot run test program while cross compiling
7388 See \`config.log' for more details." >&5
7389 echo "$as_me: error: cannot run test program while cross compiling
7390 See \`config.log' for more details." >&2;}
7391 { (exit 1); exit 1; }; }; }
7393 cat >conftest.$ac_ext <<_ACEOF
7396 cat confdefs.h >>conftest.$ac_ext
7397 cat >>conftest.$ac_ext <<_ACEOF
7398 /* end confdefs.h. */
7399 $ac_includes_default
7400 long longval () { return (long) (sizeof (long)); }
7401 unsigned long ulongval () { return (long) (sizeof (long)); }
7408 FILE *f = fopen ("conftest.val", "w");
7411 if (((long) (sizeof (long))) < 0)
7413 long i = longval ();
7414 if (i != ((long) (sizeof (long))))
7416 fprintf (f, "%ld\n", i);
7420 unsigned long i = ulongval ();
7421 if (i != ((long) (sizeof (long))))
7423 fprintf (f, "%lu\n", i);
7425 exit (ferror (f) || fclose (f) != 0);
7431 rm -f conftest$ac_exeext
7432 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
7433 (eval $ac_link) 2>&5
7435 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7436 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
7437 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7440 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7441 (exit $ac_status); }; }; then
7442 ac_cv_sizeof_long=`cat conftest.val`
7444 echo "$as_me: program exited with status $ac_status" >&5
7445 echo "$as_me: failed program was:" >&5
7446 sed 's/^/| /' conftest.$ac_ext >&5
7449 { { echo "$as_me:$LINENO: error: in \`$ac_pwd':" >&5
7450 echo "$as_me: error: in \`$ac_pwd':" >&2;}
7451 { { echo "$as_me:$LINENO: error: cannot compute sizeof (long), 77
7452 See \`config.log' for more details." >&5
7453 echo "$as_me: error: cannot compute sizeof (long), 77
7454 See \`config.log' for more details." >&2;}
7455 { (exit 1); exit 1; }; }; }
7457 rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
7465 echo "$as_me:$LINENO: result: $ac_cv_sizeof_long" >&5
7466 echo "${ECHO_T}$ac_cv_sizeof_long" >&6
7467 cat >>confdefs.h <<_ACEOF
7468 #define SIZEOF_LONG $ac_cv_sizeof_long
7472 if test "x${ac_cv_sizeof_long}" = "x8"; then
7476 if test x${want64} = xtrue; then
7477 TARGET_OBS='$(ALL_TARGET_OBS) $(ALL_64_TARGET_OBS)'
7479 TARGET_OBS='$(ALL_TARGET_OBS)'
7485 # For other settings, only the main target counts.
7489 targ=$target; . ${srcdir}/configure.tgt
7491 # Fetch the default architecture and default target vector from BFD.
7492 targ=$target; . $srcdir/../bfd/config.bfd
7494 # We only want the first architecture, so strip off the others if
7495 # there is more than one.
7496 targ_archs=`echo $targ_archs | sed 's/ .*//'`
7498 if test "x$targ_archs" != x; then
7500 cat >>confdefs.h <<_ACEOF
7501 #define DEFAULT_BFD_ARCH $targ_archs
7505 if test "x$targ_defvec" != x; then
7507 cat >>confdefs.h <<_ACEOF
7508 #define DEFAULT_BFD_VEC $targ_defvec
7513 # The CLI cannot be disabled yet, but may be in the future.
7516 # Check whether --enable-gdbcli or --disable-gdbcli was given.
7517 if test "${enable_gdbcli+set}" = set; then
7518 enableval="$enable_gdbcli"
7523 { { echo "$as_me:$LINENO: error: the command-line interface cannot be disabled yet" >&5
7524 echo "$as_me: error: the command-line interface cannot be disabled yet" >&2;}
7525 { (exit 1); exit 1; }; } ;;
7527 { { echo "$as_me:$LINENO: error: bad value $enableval for --enable-gdbcli" >&5
7528 echo "$as_me: error: bad value $enableval for --enable-gdbcli" >&2;}
7529 { (exit 1); exit 1; }; } ;;
7534 if test x"$enable_gdbcli" = xyes; then
7535 if test -d $srcdir/cli; then
7536 CONFIG_OBS="$CONFIG_OBS \$(SUBDIR_CLI_OBS)"
7537 CONFIG_DEPS="$CONFIG_DEPS \$(SUBDIR_CLI_DEPS)"
7538 CONFIG_SRCS="$CONFIG_SRCS \$(SUBDIR_CLI_SRCS)"
7539 ENABLE_CFLAGS="$ENABLE_CFLAGS \$(SUBDIR_CLI_CFLAGS)"
7544 # Check whether --enable-gdbmi or --disable-gdbmi was given.
7545 if test "${enable_gdbmi+set}" = set; then
7546 enableval="$enable_gdbmi"
7551 { { echo "$as_me:$LINENO: error: bad value $enableval for --enable-gdbmi" >&5
7552 echo "$as_me: error: bad value $enableval for --enable-gdbmi" >&2;}
7553 { (exit 1); exit 1; }; } ;;
7558 if test x"$enable_gdbmi" = xyes; then
7559 if test -d $srcdir/mi; then
7560 CONFIG_OBS="$CONFIG_OBS \$(SUBDIR_MI_OBS)"
7561 CONFIG_DEPS="$CONFIG_DEPS \$(SUBDIR_MI_DEPS)"
7562 CONFIG_SRCS="$CONFIG_SRCS \$(SUBDIR_MI_SRCS)"
7563 ENABLE_CFLAGS="$ENABLE_CFLAGS \$(SUBDIR_MI_CFLAGS)"
7568 # Check whether --enable-tui or --disable-tui was given.
7569 if test "${enable_tui+set}" = set; then
7570 enableval="$enable_tui"
7575 { { echo "$as_me:$LINENO: error: bad value $enableval for --enable-tui" >&5
7576 echo "$as_me: error: bad value $enableval for --enable-tui" >&2;}
7577 { (exit 1); exit 1; }; } ;;
7584 # Check whether --enable-gdbtk or --disable-gdbtk was given.
7585 if test "${enable_gdbtk+set}" = set; then
7586 enableval="$enable_gdbtk"
7591 { { echo "$as_me:$LINENO: error: bad value $enableval for --enable-gdbtk" >&5
7592 echo "$as_me: error: bad value $enableval for --enable-gdbtk" >&2;}
7593 { (exit 1); exit 1; }; } ;;
7596 if test -d $srcdir/gdbtk; then
7602 # We unconditionally disable gdbtk tests on selected platforms.
7605 { echo "$as_me:$LINENO: WARNING: gdbtk isn't supported on $host; disabling" >&5
7606 echo "$as_me: WARNING: gdbtk isn't supported on $host; disabling" >&2;}
7610 # Libunwind support.
7612 # Check whether --with-libunwind or --without-libunwind was given.
7613 if test "${with_libunwind+set}" = set; then
7614 withval="$with_libunwind"
7615 case "${withval}" in
7616 yes) enable_libunwind=yes ;;
7617 no) enable_libunwind=no ;;
7618 *) { { echo "$as_me:$LINENO: error: bad value ${withval} for GDB with-libunwind option" >&5
7619 echo "$as_me: error: bad value ${withval} for GDB with-libunwind option" >&2;}
7620 { (exit 1); exit 1; }; } ;;
7625 for ac_header in libunwind.h
7627 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
7628 if eval "test \"\${$as_ac_Header+set}\" = set"; then
7629 echo "$as_me:$LINENO: checking for $ac_header" >&5
7630 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
7631 if eval "test \"\${$as_ac_Header+set}\" = set"; then
7632 echo $ECHO_N "(cached) $ECHO_C" >&6
7634 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
7635 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
7637 # Is the header compilable?
7638 echo "$as_me:$LINENO: checking $ac_header usability" >&5
7639 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
7640 cat >conftest.$ac_ext <<_ACEOF
7643 cat confdefs.h >>conftest.$ac_ext
7644 cat >>conftest.$ac_ext <<_ACEOF
7645 /* end confdefs.h. */
7646 $ac_includes_default
7647 #include <$ac_header>
7649 rm -f conftest.$ac_objext
7650 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
7651 (eval $ac_compile) 2>conftest.er1
7653 grep -v '^ *+' conftest.er1 >conftest.err
7655 cat conftest.err >&5
7656 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7657 (exit $ac_status); } &&
7658 { ac_try='test -z "$ac_c_werror_flag"
7659 || test ! -s conftest.err'
7660 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7663 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7664 (exit $ac_status); }; } &&
7665 { ac_try='test -s conftest.$ac_objext'
7666 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7669 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7670 (exit $ac_status); }; }; then
7671 ac_header_compiler=yes
7673 echo "$as_me: failed program was:" >&5
7674 sed 's/^/| /' conftest.$ac_ext >&5
7676 ac_header_compiler=no
7678 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
7679 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
7680 echo "${ECHO_T}$ac_header_compiler" >&6
7682 # Is the header present?
7683 echo "$as_me:$LINENO: checking $ac_header presence" >&5
7684 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
7685 cat >conftest.$ac_ext <<_ACEOF
7688 cat confdefs.h >>conftest.$ac_ext
7689 cat >>conftest.$ac_ext <<_ACEOF
7690 /* end confdefs.h. */
7691 #include <$ac_header>
7693 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
7694 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
7696 grep -v '^ *+' conftest.er1 >conftest.err
7698 cat conftest.err >&5
7699 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7700 (exit $ac_status); } >/dev/null; then
7701 if test -s conftest.err; then
7702 ac_cpp_err=$ac_c_preproc_warn_flag
7703 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
7710 if test -z "$ac_cpp_err"; then
7711 ac_header_preproc=yes
7713 echo "$as_me: failed program was:" >&5
7714 sed 's/^/| /' conftest.$ac_ext >&5
7716 ac_header_preproc=no
7718 rm -f conftest.err conftest.$ac_ext
7719 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
7720 echo "${ECHO_T}$ac_header_preproc" >&6
7722 # So? What about this header?
7723 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
7725 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
7726 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
7727 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
7728 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
7729 ac_header_preproc=yes
7732 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
7733 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
7734 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
7735 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
7736 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
7737 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
7738 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
7739 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
7740 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
7741 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
7742 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
7743 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
7746 ## ------------------------------------------ ##
7747 ## Report this to the AC_PACKAGE_NAME lists. ##
7748 ## ------------------------------------------ ##
7751 sed "s/^/$as_me: WARNING: /" >&2
7754 echo "$as_me:$LINENO: checking for $ac_header" >&5
7755 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
7756 if eval "test \"\${$as_ac_Header+set}\" = set"; then
7757 echo $ECHO_N "(cached) $ECHO_C" >&6
7759 eval "$as_ac_Header=\$ac_header_preproc"
7761 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
7762 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
7765 if test `eval echo '${'$as_ac_Header'}'` = yes; then
7766 cat >>confdefs.h <<_ACEOF
7767 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
7775 for ac_header in libunwind-ia64.h
7777 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
7778 if eval "test \"\${$as_ac_Header+set}\" = set"; then
7779 echo "$as_me:$LINENO: checking for $ac_header" >&5
7780 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
7781 if eval "test \"\${$as_ac_Header+set}\" = set"; then
7782 echo $ECHO_N "(cached) $ECHO_C" >&6
7784 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
7785 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
7787 # Is the header compilable?
7788 echo "$as_me:$LINENO: checking $ac_header usability" >&5
7789 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
7790 cat >conftest.$ac_ext <<_ACEOF
7793 cat confdefs.h >>conftest.$ac_ext
7794 cat >>conftest.$ac_ext <<_ACEOF
7795 /* end confdefs.h. */
7796 $ac_includes_default
7797 #include <$ac_header>
7799 rm -f conftest.$ac_objext
7800 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
7801 (eval $ac_compile) 2>conftest.er1
7803 grep -v '^ *+' conftest.er1 >conftest.err
7805 cat conftest.err >&5
7806 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7807 (exit $ac_status); } &&
7808 { ac_try='test -z "$ac_c_werror_flag"
7809 || test ! -s conftest.err'
7810 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7813 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7814 (exit $ac_status); }; } &&
7815 { ac_try='test -s conftest.$ac_objext'
7816 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7819 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7820 (exit $ac_status); }; }; then
7821 ac_header_compiler=yes
7823 echo "$as_me: failed program was:" >&5
7824 sed 's/^/| /' conftest.$ac_ext >&5
7826 ac_header_compiler=no
7828 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
7829 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
7830 echo "${ECHO_T}$ac_header_compiler" >&6
7832 # Is the header present?
7833 echo "$as_me:$LINENO: checking $ac_header presence" >&5
7834 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
7835 cat >conftest.$ac_ext <<_ACEOF
7838 cat confdefs.h >>conftest.$ac_ext
7839 cat >>conftest.$ac_ext <<_ACEOF
7840 /* end confdefs.h. */
7841 #include <$ac_header>
7843 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
7844 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
7846 grep -v '^ *+' conftest.er1 >conftest.err
7848 cat conftest.err >&5
7849 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7850 (exit $ac_status); } >/dev/null; then
7851 if test -s conftest.err; then
7852 ac_cpp_err=$ac_c_preproc_warn_flag
7853 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
7860 if test -z "$ac_cpp_err"; then
7861 ac_header_preproc=yes
7863 echo "$as_me: failed program was:" >&5
7864 sed 's/^/| /' conftest.$ac_ext >&5
7866 ac_header_preproc=no
7868 rm -f conftest.err conftest.$ac_ext
7869 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
7870 echo "${ECHO_T}$ac_header_preproc" >&6
7872 # So? What about this header?
7873 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
7875 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
7876 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
7877 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
7878 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
7879 ac_header_preproc=yes
7882 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
7883 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
7884 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
7885 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
7886 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
7887 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
7888 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
7889 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
7890 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
7891 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
7892 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
7893 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
7896 ## ------------------------------------------ ##
7897 ## Report this to the AC_PACKAGE_NAME lists. ##
7898 ## ------------------------------------------ ##
7901 sed "s/^/$as_me: WARNING: /" >&2
7904 echo "$as_me:$LINENO: checking for $ac_header" >&5
7905 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
7906 if eval "test \"\${$as_ac_Header+set}\" = set"; then
7907 echo $ECHO_N "(cached) $ECHO_C" >&6
7909 eval "$as_ac_Header=\$ac_header_preproc"
7911 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
7912 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
7915 if test `eval echo '${'$as_ac_Header'}'` = yes; then
7916 cat >>confdefs.h <<_ACEOF
7917 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
7924 if test x"$ac_cv_header_libunwind_h" = xyes -a x"$ac_cv_header_libunwind_ia64_h" = xyes; then
7925 enable_libunwind=yes;
7930 if test x"$enable_libunwind" = xyes; then
7932 for ac_header in libunwind.h
7934 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
7935 if eval "test \"\${$as_ac_Header+set}\" = set"; then
7936 echo "$as_me:$LINENO: checking for $ac_header" >&5
7937 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
7938 if eval "test \"\${$as_ac_Header+set}\" = set"; then
7939 echo $ECHO_N "(cached) $ECHO_C" >&6
7941 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
7942 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
7944 # Is the header compilable?
7945 echo "$as_me:$LINENO: checking $ac_header usability" >&5
7946 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
7947 cat >conftest.$ac_ext <<_ACEOF
7950 cat confdefs.h >>conftest.$ac_ext
7951 cat >>conftest.$ac_ext <<_ACEOF
7952 /* end confdefs.h. */
7953 $ac_includes_default
7954 #include <$ac_header>
7956 rm -f conftest.$ac_objext
7957 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
7958 (eval $ac_compile) 2>conftest.er1
7960 grep -v '^ *+' conftest.er1 >conftest.err
7962 cat conftest.err >&5
7963 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7964 (exit $ac_status); } &&
7965 { ac_try='test -z "$ac_c_werror_flag"
7966 || test ! -s conftest.err'
7967 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7970 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7971 (exit $ac_status); }; } &&
7972 { ac_try='test -s conftest.$ac_objext'
7973 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7976 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7977 (exit $ac_status); }; }; then
7978 ac_header_compiler=yes
7980 echo "$as_me: failed program was:" >&5
7981 sed 's/^/| /' conftest.$ac_ext >&5
7983 ac_header_compiler=no
7985 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
7986 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
7987 echo "${ECHO_T}$ac_header_compiler" >&6
7989 # Is the header present?
7990 echo "$as_me:$LINENO: checking $ac_header presence" >&5
7991 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
7992 cat >conftest.$ac_ext <<_ACEOF
7995 cat confdefs.h >>conftest.$ac_ext
7996 cat >>conftest.$ac_ext <<_ACEOF
7997 /* end confdefs.h. */
7998 #include <$ac_header>
8000 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
8001 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
8003 grep -v '^ *+' conftest.er1 >conftest.err
8005 cat conftest.err >&5
8006 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8007 (exit $ac_status); } >/dev/null; then
8008 if test -s conftest.err; then
8009 ac_cpp_err=$ac_c_preproc_warn_flag
8010 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
8017 if test -z "$ac_cpp_err"; then
8018 ac_header_preproc=yes
8020 echo "$as_me: failed program was:" >&5
8021 sed 's/^/| /' conftest.$ac_ext >&5
8023 ac_header_preproc=no
8025 rm -f conftest.err conftest.$ac_ext
8026 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
8027 echo "${ECHO_T}$ac_header_preproc" >&6
8029 # So? What about this header?
8030 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
8032 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
8033 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
8034 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
8035 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
8036 ac_header_preproc=yes
8039 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
8040 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
8041 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
8042 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
8043 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
8044 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
8045 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
8046 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
8047 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
8048 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
8049 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
8050 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
8053 ## ------------------------------------------ ##
8054 ## Report this to the AC_PACKAGE_NAME lists. ##
8055 ## ------------------------------------------ ##
8058 sed "s/^/$as_me: WARNING: /" >&2
8061 echo "$as_me:$LINENO: checking for $ac_header" >&5
8062 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
8063 if eval "test \"\${$as_ac_Header+set}\" = set"; then
8064 echo $ECHO_N "(cached) $ECHO_C" >&6
8066 eval "$as_ac_Header=\$ac_header_preproc"
8068 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
8069 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
8072 if test `eval echo '${'$as_ac_Header'}'` = yes; then
8073 cat >>confdefs.h <<_ACEOF
8074 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
8082 for ac_header in libunwind-ia64.h
8084 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
8085 if eval "test \"\${$as_ac_Header+set}\" = set"; then
8086 echo "$as_me:$LINENO: checking for $ac_header" >&5
8087 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
8088 if eval "test \"\${$as_ac_Header+set}\" = set"; then
8089 echo $ECHO_N "(cached) $ECHO_C" >&6
8091 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
8092 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
8094 # Is the header compilable?
8095 echo "$as_me:$LINENO: checking $ac_header usability" >&5
8096 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
8097 cat >conftest.$ac_ext <<_ACEOF
8100 cat confdefs.h >>conftest.$ac_ext
8101 cat >>conftest.$ac_ext <<_ACEOF
8102 /* end confdefs.h. */
8103 $ac_includes_default
8104 #include <$ac_header>
8106 rm -f conftest.$ac_objext
8107 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
8108 (eval $ac_compile) 2>conftest.er1
8110 grep -v '^ *+' conftest.er1 >conftest.err
8112 cat conftest.err >&5
8113 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8114 (exit $ac_status); } &&
8115 { ac_try='test -z "$ac_c_werror_flag"
8116 || test ! -s conftest.err'
8117 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8120 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8121 (exit $ac_status); }; } &&
8122 { ac_try='test -s conftest.$ac_objext'
8123 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8126 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8127 (exit $ac_status); }; }; then
8128 ac_header_compiler=yes
8130 echo "$as_me: failed program was:" >&5
8131 sed 's/^/| /' conftest.$ac_ext >&5
8133 ac_header_compiler=no
8135 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
8136 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
8137 echo "${ECHO_T}$ac_header_compiler" >&6
8139 # Is the header present?
8140 echo "$as_me:$LINENO: checking $ac_header presence" >&5
8141 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
8142 cat >conftest.$ac_ext <<_ACEOF
8145 cat confdefs.h >>conftest.$ac_ext
8146 cat >>conftest.$ac_ext <<_ACEOF
8147 /* end confdefs.h. */
8148 #include <$ac_header>
8150 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
8151 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
8153 grep -v '^ *+' conftest.er1 >conftest.err
8155 cat conftest.err >&5
8156 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8157 (exit $ac_status); } >/dev/null; then
8158 if test -s conftest.err; then
8159 ac_cpp_err=$ac_c_preproc_warn_flag
8160 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
8167 if test -z "$ac_cpp_err"; then
8168 ac_header_preproc=yes
8170 echo "$as_me: failed program was:" >&5
8171 sed 's/^/| /' conftest.$ac_ext >&5
8173 ac_header_preproc=no
8175 rm -f conftest.err conftest.$ac_ext
8176 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
8177 echo "${ECHO_T}$ac_header_preproc" >&6
8179 # So? What about this header?
8180 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
8182 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
8183 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
8184 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
8185 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
8186 ac_header_preproc=yes
8189 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
8190 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
8191 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
8192 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
8193 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
8194 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
8195 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
8196 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
8197 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
8198 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
8199 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
8200 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
8203 ## ------------------------------------------ ##
8204 ## Report this to the AC_PACKAGE_NAME lists. ##
8205 ## ------------------------------------------ ##
8208 sed "s/^/$as_me: WARNING: /" >&2
8211 echo "$as_me:$LINENO: checking for $ac_header" >&5
8212 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
8213 if eval "test \"\${$as_ac_Header+set}\" = set"; then
8214 echo $ECHO_N "(cached) $ECHO_C" >&6
8216 eval "$as_ac_Header=\$ac_header_preproc"
8218 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
8219 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
8222 if test `eval echo '${'$as_ac_Header'}'` = yes; then
8223 cat >>confdefs.h <<_ACEOF
8224 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
8232 cat >>confdefs.h <<\_ACEOF
8233 #define HAVE_LIBUNWIND 1
8236 CONFIG_OBS="$CONFIG_OBS libunwind-frame.o"
8237 CONFIG_DEPS="$CONFIG_DEPS libunwind-frame.o"
8238 CONFIG_SRCS="$CONFIG_SRCS libunwind-frame.c"
8241 # Profiling support.
8242 # Check whether --enable-profiling or --disable-profiling was given.
8243 if test "${enable_profiling+set}" = set; then
8244 enableval="$enable_profiling"
8249 { { echo "$as_me:$LINENO: error: bad value $enableval for --enable-profile" >&5
8250 echo "$as_me: error: bad value $enableval for --enable-profile" >&2;}
8251 { (exit 1); exit 1; }; } ;;
8259 for ac_func in monstartup _mcleanup
8261 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
8262 echo "$as_me:$LINENO: checking for $ac_func" >&5
8263 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
8264 if eval "test \"\${$as_ac_var+set}\" = set"; then
8265 echo $ECHO_N "(cached) $ECHO_C" >&6
8267 cat >conftest.$ac_ext <<_ACEOF
8270 cat confdefs.h >>conftest.$ac_ext
8271 cat >>conftest.$ac_ext <<_ACEOF
8272 /* end confdefs.h. */
8273 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
8274 For example, HP-UX 11i <limits.h> declares gettimeofday. */
8275 #define $ac_func innocuous_$ac_func
8277 /* System header to define __stub macros and hopefully few prototypes,
8278 which can conflict with char $ac_func (); below.
8279 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
8280 <limits.h> exists even on freestanding compilers. */
8283 # include <limits.h>
8285 # include <assert.h>
8290 /* Override any gcc2 internal prototype to avoid an error. */
8295 /* We use char because int might match the return type of a gcc2
8296 builtin and then its argument prototype would still apply. */
8298 /* The GNU C library defines this for functions which it implements
8299 to always fail with ENOSYS. Some functions are actually named
8300 something starting with __ and the normal name is an alias. */
8301 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
8304 char (*f) () = $ac_func;
8313 return f != $ac_func;
8318 rm -f conftest.$ac_objext conftest$ac_exeext
8319 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
8320 (eval $ac_link) 2>conftest.er1
8322 grep -v '^ *+' conftest.er1 >conftest.err
8324 cat conftest.err >&5
8325 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8326 (exit $ac_status); } &&
8327 { ac_try='test -z "$ac_c_werror_flag"
8328 || test ! -s conftest.err'
8329 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8332 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8333 (exit $ac_status); }; } &&
8334 { ac_try='test -s conftest$ac_exeext'
8335 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8338 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8339 (exit $ac_status); }; }; then
8340 eval "$as_ac_var=yes"
8342 echo "$as_me: failed program was:" >&5
8343 sed 's/^/| /' conftest.$ac_ext >&5
8345 eval "$as_ac_var=no"
8347 rm -f conftest.err conftest.$ac_objext \
8348 conftest$ac_exeext conftest.$ac_ext
8350 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
8351 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
8352 if test `eval echo '${'$as_ac_var'}'` = yes; then
8353 cat >>confdefs.h <<_ACEOF
8354 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
8360 echo "$as_me:$LINENO: checking for _etext" >&5
8361 echo $ECHO_N "checking for _etext... $ECHO_C" >&6
8362 if test "${ac_cv_var__etext+set}" = set; then
8363 echo $ECHO_N "(cached) $ECHO_C" >&6
8365 cat >conftest.$ac_ext <<_ACEOF
8368 cat confdefs.h >>conftest.$ac_ext
8369 cat >>conftest.$ac_ext <<_ACEOF
8370 /* end confdefs.h. */
8382 rm -f conftest.$ac_objext conftest$ac_exeext
8383 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
8384 (eval $ac_link) 2>conftest.er1
8386 grep -v '^ *+' conftest.er1 >conftest.err
8388 cat conftest.err >&5
8389 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8390 (exit $ac_status); } &&
8391 { ac_try='test -z "$ac_c_werror_flag"
8392 || test ! -s conftest.err'
8393 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8396 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8397 (exit $ac_status); }; } &&
8398 { ac_try='test -s conftest$ac_exeext'
8399 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8402 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8403 (exit $ac_status); }; }; then
8404 ac_cv_var__etext=yes
8406 echo "$as_me: failed program was:" >&5
8407 sed 's/^/| /' conftest.$ac_ext >&5
8411 rm -f conftest.err conftest.$ac_objext \
8412 conftest$ac_exeext conftest.$ac_ext
8414 echo "$as_me:$LINENO: result: $ac_cv_var__etext" >&5
8415 echo "${ECHO_T}$ac_cv_var__etext" >&6
8416 if test $ac_cv_var__etext = yes; then
8418 cat >>confdefs.h <<\_ACEOF
8419 #define HAVE__ETEXT 1
8423 echo "$as_me:$LINENO: checking for etext" >&5
8424 echo $ECHO_N "checking for etext... $ECHO_C" >&6
8425 if test "${ac_cv_var_etext+set}" = set; then
8426 echo $ECHO_N "(cached) $ECHO_C" >&6
8428 cat >conftest.$ac_ext <<_ACEOF
8431 cat confdefs.h >>conftest.$ac_ext
8432 cat >>conftest.$ac_ext <<_ACEOF
8433 /* end confdefs.h. */
8445 rm -f conftest.$ac_objext conftest$ac_exeext
8446 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
8447 (eval $ac_link) 2>conftest.er1
8449 grep -v '^ *+' conftest.er1 >conftest.err
8451 cat conftest.err >&5
8452 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8453 (exit $ac_status); } &&
8454 { ac_try='test -z "$ac_c_werror_flag"
8455 || test ! -s conftest.err'
8456 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8459 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8460 (exit $ac_status); }; } &&
8461 { ac_try='test -s conftest$ac_exeext'
8462 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8465 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8466 (exit $ac_status); }; }; then
8469 echo "$as_me: failed program was:" >&5
8470 sed 's/^/| /' conftest.$ac_ext >&5
8474 rm -f conftest.err conftest.$ac_objext \
8475 conftest$ac_exeext conftest.$ac_ext
8477 echo "$as_me:$LINENO: result: $ac_cv_var_etext" >&5
8478 echo "${ECHO_T}$ac_cv_var_etext" >&6
8479 if test $ac_cv_var_etext = yes; then
8481 cat >>confdefs.h <<\_ACEOF
8482 #define HAVE_ETEXT 1
8486 if test "$enable_profiling" = yes ; then
8487 if test $ac_cv_func_monstartup = no || test $ac_cv_func__mcleanup = no; then
8488 { { echo "$as_me:$LINENO: error: --enable-profiling requires monstartup and _mcleanup" >&5
8489 echo "$as_me: error: --enable-profiling requires monstartup and _mcleanup" >&2;}
8490 { (exit 1); exit 1; }; }
8493 OLD_CFLAGS="$CFLAGS"
8494 CFLAGS="$CFLAGS $PROFILE_CFLAGS"
8496 echo "$as_me:$LINENO: checking whether $CC supports -pg" >&5
8497 echo $ECHO_N "checking whether $CC supports -pg... $ECHO_C" >&6
8498 if test "${ac_cv_cc_supports_pg+set}" = set; then
8499 echo $ECHO_N "(cached) $ECHO_C" >&6
8501 cat >conftest.$ac_ext <<_ACEOF
8504 cat confdefs.h >>conftest.$ac_ext
8505 cat >>conftest.$ac_ext <<_ACEOF
8506 /* end confdefs.h. */
8516 rm -f conftest.$ac_objext
8517 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
8518 (eval $ac_compile) 2>conftest.er1
8520 grep -v '^ *+' conftest.er1 >conftest.err
8522 cat conftest.err >&5
8523 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8524 (exit $ac_status); } &&
8525 { ac_try='test -z "$ac_c_werror_flag"
8526 || test ! -s conftest.err'
8527 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8530 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8531 (exit $ac_status); }; } &&
8532 { ac_try='test -s conftest.$ac_objext'
8533 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8536 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8537 (exit $ac_status); }; }; then
8538 ac_cv_cc_supports_pg=yes
8540 echo "$as_me: failed program was:" >&5
8541 sed 's/^/| /' conftest.$ac_ext >&5
8543 ac_cv_cc_supports_pg=no
8545 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
8547 echo "$as_me:$LINENO: result: $ac_cv_cc_supports_pg" >&5
8548 echo "${ECHO_T}$ac_cv_cc_supports_pg" >&6
8550 if test $ac_cv_cc_supports_pg = no; then
8551 { { echo "$as_me:$LINENO: error: --enable-profiling requires a compiler which supports -pg" >&5
8552 echo "$as_me: error: --enable-profiling requires a compiler which supports -pg" >&2;}
8553 { (exit 1); exit 1; }; }
8556 CFLAGS="$OLD_CFLAGS"
8561 # Check whether --with-pkgversion or --without-pkgversion was given.
8562 if test "${with_pkgversion+set}" = set; then
8563 withval="$with_pkgversion"
8565 yes) { { echo "$as_me:$LINENO: error: package version not specified" >&5
8566 echo "$as_me: error: package version not specified" >&2;}
8567 { (exit 1); exit 1; }; } ;;
8569 *) PKGVERSION="($withval) " ;;
8579 # Check whether --with-bugurl or --without-bugurl was given.
8580 if test "${with_bugurl+set}" = set; then
8581 withval="$with_bugurl"
8583 yes) { { echo "$as_me:$LINENO: error: bug URL not specified" >&5
8584 echo "$as_me: error: bug URL not specified" >&2;}
8585 { (exit 1); exit 1; }; } ;;
8588 *) BUGURL="$withval"
8592 BUGURL="http://www.gnu.org/software/gdb/bugs/"
8601 REPORT_BUGS_TO="<$BUGURL>"
8602 REPORT_BUGS_TEXI=@uref{`echo "$BUGURL" | sed 's/@/@@/g'`}
8609 cat >>confdefs.h <<_ACEOF
8610 #define PKGVERSION "$PKGVERSION"
8614 cat >>confdefs.h <<_ACEOF
8615 #define REPORT_BUGS_TO "$REPORT_BUGS_TO"
8619 # --------------------- #
8620 # Checks for programs. #
8621 # --------------------- #
8623 for ac_prog in gawk mawk nawk awk
8625 # Extract the first word of "$ac_prog", so it can be a program name with args.
8626 set dummy $ac_prog; ac_word=$2
8627 echo "$as_me:$LINENO: checking for $ac_word" >&5
8628 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
8629 if test "${ac_cv_prog_AWK+set}" = set; then
8630 echo $ECHO_N "(cached) $ECHO_C" >&6
8632 if test -n "$AWK"; then
8633 ac_cv_prog_AWK="$AWK" # Let the user override the test.
8635 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8639 test -z "$as_dir" && as_dir=.
8640 for ac_exec_ext in '' $ac_executable_extensions; do
8641 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
8642 ac_cv_prog_AWK="$ac_prog"
8643 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
8652 if test -n "$AWK"; then
8653 echo "$as_me:$LINENO: result: $AWK" >&5
8654 echo "${ECHO_T}$AWK" >&6
8656 echo "$as_me:$LINENO: result: no" >&5
8657 echo "${ECHO_T}no" >&6
8660 test -n "$AWK" && break
8663 # Find a good install program. We prefer a C program (faster),
8664 # so one script is as good as another. But avoid the broken or
8665 # incompatible versions:
8666 # SysV /etc/install, /usr/sbin/install
8667 # SunOS /usr/etc/install
8668 # IRIX /sbin/install
8670 # AmigaOS /C/install, which installs bootblocks on floppy discs
8671 # AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag
8672 # AFS /usr/afsws/bin/install, which mishandles nonexistent args
8673 # SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff"
8674 # OS/2's system install, which has a completely different semantic
8675 # ./install, which can be erroneously created by make from ./install.sh.
8676 echo "$as_me:$LINENO: checking for a BSD-compatible install" >&5
8677 echo $ECHO_N "checking for a BSD-compatible install... $ECHO_C" >&6
8678 if test -z "$INSTALL"; then
8679 if test "${ac_cv_path_install+set}" = set; then
8680 echo $ECHO_N "(cached) $ECHO_C" >&6
8682 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8686 test -z "$as_dir" && as_dir=.
8687 # Account for people who put trailing slashes in PATH elements.
8689 ./ | .// | /cC/* | \
8690 /etc/* | /usr/sbin/* | /usr/etc/* | /sbin/* | /usr/afsws/bin/* | \
8691 ?:\\/os2\\/install\\/* | ?:\\/OS2\\/INSTALL\\/* | \
8694 # OSF1 and SCO ODT 3.0 have their own names for install.
8695 # Don't use installbsd from OSF since it installs stuff as root
8697 for ac_prog in ginstall scoinst install; do
8698 for ac_exec_ext in '' $ac_executable_extensions; do
8699 if $as_executable_p "$as_dir/$ac_prog$ac_exec_ext"; then
8700 if test $ac_prog = install &&
8701 grep dspmsg "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
8702 # AIX install. It has an incompatible calling convention.
8704 elif test $ac_prog = install &&
8705 grep pwplus "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
8706 # program-specific install script used by HP pwplus--don't use.
8709 ac_cv_path_install="$as_dir/$ac_prog$ac_exec_ext -c"
8721 if test "${ac_cv_path_install+set}" = set; then
8722 INSTALL=$ac_cv_path_install
8724 # As a last resort, use the slow shell script. We don't cache a
8725 # path for INSTALL within a source directory, because that will
8726 # break other packages using the cache if that directory is
8727 # removed, or if the path is relative.
8728 INSTALL=$ac_install_sh
8731 echo "$as_me:$LINENO: result: $INSTALL" >&5
8732 echo "${ECHO_T}$INSTALL" >&6
8734 # Use test -z because SunOS4 sh mishandles braces in ${var-val}.
8735 # It thinks the first close brace ends the variable substitution.
8736 test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}'
8738 test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL}'
8740 test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644'
8742 echo "$as_me:$LINENO: checking whether ln -s works" >&5
8743 echo $ECHO_N "checking whether ln -s works... $ECHO_C" >&6
8745 if test "$LN_S" = "ln -s"; then
8746 echo "$as_me:$LINENO: result: yes" >&5
8747 echo "${ECHO_T}yes" >&6
8749 echo "$as_me:$LINENO: result: no, using $LN_S" >&5
8750 echo "${ECHO_T}no, using $LN_S" >&6
8753 if test -n "$ac_tool_prefix"; then
8754 # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args.
8755 set dummy ${ac_tool_prefix}ranlib; ac_word=$2
8756 echo "$as_me:$LINENO: checking for $ac_word" >&5
8757 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
8758 if test "${ac_cv_prog_RANLIB+set}" = set; then
8759 echo $ECHO_N "(cached) $ECHO_C" >&6
8761 if test -n "$RANLIB"; then
8762 ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
8764 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8768 test -z "$as_dir" && as_dir=.
8769 for ac_exec_ext in '' $ac_executable_extensions; do
8770 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
8771 ac_cv_prog_RANLIB="${ac_tool_prefix}ranlib"
8772 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
8780 RANLIB=$ac_cv_prog_RANLIB
8781 if test -n "$RANLIB"; then
8782 echo "$as_me:$LINENO: result: $RANLIB" >&5
8783 echo "${ECHO_T}$RANLIB" >&6
8785 echo "$as_me:$LINENO: result: no" >&5
8786 echo "${ECHO_T}no" >&6
8790 if test -z "$ac_cv_prog_RANLIB"; then
8791 ac_ct_RANLIB=$RANLIB
8792 # Extract the first word of "ranlib", so it can be a program name with args.
8793 set dummy ranlib; ac_word=$2
8794 echo "$as_me:$LINENO: checking for $ac_word" >&5
8795 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
8796 if test "${ac_cv_prog_ac_ct_RANLIB+set}" = set; then
8797 echo $ECHO_N "(cached) $ECHO_C" >&6
8799 if test -n "$ac_ct_RANLIB"; then
8800 ac_cv_prog_ac_ct_RANLIB="$ac_ct_RANLIB" # Let the user override the test.
8802 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8806 test -z "$as_dir" && as_dir=.
8807 for ac_exec_ext in '' $ac_executable_extensions; do
8808 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
8809 ac_cv_prog_ac_ct_RANLIB="ranlib"
8810 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
8816 test -z "$ac_cv_prog_ac_ct_RANLIB" && ac_cv_prog_ac_ct_RANLIB=":"
8819 ac_ct_RANLIB=$ac_cv_prog_ac_ct_RANLIB
8820 if test -n "$ac_ct_RANLIB"; then
8821 echo "$as_me:$LINENO: result: $ac_ct_RANLIB" >&5
8822 echo "${ECHO_T}$ac_ct_RANLIB" >&6
8824 echo "$as_me:$LINENO: result: no" >&5
8825 echo "${ECHO_T}no" >&6
8828 RANLIB=$ac_ct_RANLIB
8830 RANLIB="$ac_cv_prog_RANLIB"
8833 for ac_prog in 'bison -y' byacc
8835 # Extract the first word of "$ac_prog", so it can be a program name with args.
8836 set dummy $ac_prog; ac_word=$2
8837 echo "$as_me:$LINENO: checking for $ac_word" >&5
8838 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
8839 if test "${ac_cv_prog_YACC+set}" = set; then
8840 echo $ECHO_N "(cached) $ECHO_C" >&6
8842 if test -n "$YACC"; then
8843 ac_cv_prog_YACC="$YACC" # Let the user override the test.
8845 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8849 test -z "$as_dir" && as_dir=.
8850 for ac_exec_ext in '' $ac_executable_extensions; do
8851 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
8852 ac_cv_prog_YACC="$ac_prog"
8853 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
8861 YACC=$ac_cv_prog_YACC
8862 if test -n "$YACC"; then
8863 echo "$as_me:$LINENO: result: $YACC" >&5
8864 echo "${ECHO_T}$YACC" >&6
8866 echo "$as_me:$LINENO: result: no" >&5
8867 echo "${ECHO_T}no" >&6
8870 test -n "$YACC" && break
8872 test -n "$YACC" || YACC="yacc"
8875 if test -n "$ac_tool_prefix"; then
8876 # Extract the first word of "${ac_tool_prefix}ar", so it can be a program name with args.
8877 set dummy ${ac_tool_prefix}ar; ac_word=$2
8878 echo "$as_me:$LINENO: checking for $ac_word" >&5
8879 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
8880 if test "${ac_cv_prog_AR+set}" = set; then
8881 echo $ECHO_N "(cached) $ECHO_C" >&6
8883 if test -n "$AR"; then
8884 ac_cv_prog_AR="$AR" # Let the user override the test.
8886 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8890 test -z "$as_dir" && as_dir=.
8891 for ac_exec_ext in '' $ac_executable_extensions; do
8892 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
8893 ac_cv_prog_AR="${ac_tool_prefix}ar"
8894 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
8903 if test -n "$AR"; then
8904 echo "$as_me:$LINENO: result: $AR" >&5
8905 echo "${ECHO_T}$AR" >&6
8907 echo "$as_me:$LINENO: result: no" >&5
8908 echo "${ECHO_T}no" >&6
8912 if test -z "$ac_cv_prog_AR"; then
8914 # Extract the first word of "ar", so it can be a program name with args.
8915 set dummy ar; ac_word=$2
8916 echo "$as_me:$LINENO: checking for $ac_word" >&5
8917 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
8918 if test "${ac_cv_prog_ac_ct_AR+set}" = set; then
8919 echo $ECHO_N "(cached) $ECHO_C" >&6
8921 if test -n "$ac_ct_AR"; then
8922 ac_cv_prog_ac_ct_AR="$ac_ct_AR" # Let the user override the test.
8924 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8928 test -z "$as_dir" && as_dir=.
8929 for ac_exec_ext in '' $ac_executable_extensions; do
8930 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
8931 ac_cv_prog_ac_ct_AR="ar"
8932 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
8940 ac_ct_AR=$ac_cv_prog_ac_ct_AR
8941 if test -n "$ac_ct_AR"; then
8942 echo "$as_me:$LINENO: result: $ac_ct_AR" >&5
8943 echo "${ECHO_T}$ac_ct_AR" >&6
8945 echo "$as_me:$LINENO: result: no" >&5
8946 echo "${ECHO_T}no" >&6
8954 if test -n "$ac_tool_prefix"; then
8955 # Extract the first word of "${ac_tool_prefix}dlltool", so it can be a program name with args.
8956 set dummy ${ac_tool_prefix}dlltool; ac_word=$2
8957 echo "$as_me:$LINENO: checking for $ac_word" >&5
8958 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
8959 if test "${ac_cv_prog_DLLTOOL+set}" = set; then
8960 echo $ECHO_N "(cached) $ECHO_C" >&6
8962 if test -n "$DLLTOOL"; then
8963 ac_cv_prog_DLLTOOL="$DLLTOOL" # Let the user override the test.
8965 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8969 test -z "$as_dir" && as_dir=.
8970 for ac_exec_ext in '' $ac_executable_extensions; do
8971 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
8972 ac_cv_prog_DLLTOOL="${ac_tool_prefix}dlltool"
8973 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
8981 DLLTOOL=$ac_cv_prog_DLLTOOL
8982 if test -n "$DLLTOOL"; then
8983 echo "$as_me:$LINENO: result: $DLLTOOL" >&5
8984 echo "${ECHO_T}$DLLTOOL" >&6
8986 echo "$as_me:$LINENO: result: no" >&5
8987 echo "${ECHO_T}no" >&6
8991 if test -z "$ac_cv_prog_DLLTOOL"; then
8992 ac_ct_DLLTOOL=$DLLTOOL
8993 # Extract the first word of "dlltool", so it can be a program name with args.
8994 set dummy dlltool; ac_word=$2
8995 echo "$as_me:$LINENO: checking for $ac_word" >&5
8996 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
8997 if test "${ac_cv_prog_ac_ct_DLLTOOL+set}" = set; then
8998 echo $ECHO_N "(cached) $ECHO_C" >&6
9000 if test -n "$ac_ct_DLLTOOL"; then
9001 ac_cv_prog_ac_ct_DLLTOOL="$ac_ct_DLLTOOL" # Let the user override the test.
9003 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9007 test -z "$as_dir" && as_dir=.
9008 for ac_exec_ext in '' $ac_executable_extensions; do
9009 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
9010 ac_cv_prog_ac_ct_DLLTOOL="dlltool"
9011 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
9019 ac_ct_DLLTOOL=$ac_cv_prog_ac_ct_DLLTOOL
9020 if test -n "$ac_ct_DLLTOOL"; then
9021 echo "$as_me:$LINENO: result: $ac_ct_DLLTOOL" >&5
9022 echo "${ECHO_T}$ac_ct_DLLTOOL" >&6
9024 echo "$as_me:$LINENO: result: no" >&5
9025 echo "${ECHO_T}no" >&6
9028 DLLTOOL=$ac_ct_DLLTOOL
9030 DLLTOOL="$ac_cv_prog_DLLTOOL"
9033 if test -n "$ac_tool_prefix"; then
9034 # Extract the first word of "${ac_tool_prefix}windres", so it can be a program name with args.
9035 set dummy ${ac_tool_prefix}windres; ac_word=$2
9036 echo "$as_me:$LINENO: checking for $ac_word" >&5
9037 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
9038 if test "${ac_cv_prog_WINDRES+set}" = set; then
9039 echo $ECHO_N "(cached) $ECHO_C" >&6
9041 if test -n "$WINDRES"; then
9042 ac_cv_prog_WINDRES="$WINDRES" # Let the user override the test.
9044 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9048 test -z "$as_dir" && as_dir=.
9049 for ac_exec_ext in '' $ac_executable_extensions; do
9050 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
9051 ac_cv_prog_WINDRES="${ac_tool_prefix}windres"
9052 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
9060 WINDRES=$ac_cv_prog_WINDRES
9061 if test -n "$WINDRES"; then
9062 echo "$as_me:$LINENO: result: $WINDRES" >&5
9063 echo "${ECHO_T}$WINDRES" >&6
9065 echo "$as_me:$LINENO: result: no" >&5
9066 echo "${ECHO_T}no" >&6
9070 if test -z "$ac_cv_prog_WINDRES"; then
9071 ac_ct_WINDRES=$WINDRES
9072 # Extract the first word of "windres", so it can be a program name with args.
9073 set dummy windres; ac_word=$2
9074 echo "$as_me:$LINENO: checking for $ac_word" >&5
9075 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
9076 if test "${ac_cv_prog_ac_ct_WINDRES+set}" = set; then
9077 echo $ECHO_N "(cached) $ECHO_C" >&6
9079 if test -n "$ac_ct_WINDRES"; then
9080 ac_cv_prog_ac_ct_WINDRES="$ac_ct_WINDRES" # Let the user override the test.
9082 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9086 test -z "$as_dir" && as_dir=.
9087 for ac_exec_ext in '' $ac_executable_extensions; do
9088 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
9089 ac_cv_prog_ac_ct_WINDRES="windres"
9090 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
9098 ac_ct_WINDRES=$ac_cv_prog_ac_ct_WINDRES
9099 if test -n "$ac_ct_WINDRES"; then
9100 echo "$as_me:$LINENO: result: $ac_ct_WINDRES" >&5
9101 echo "${ECHO_T}$ac_ct_WINDRES" >&6
9103 echo "$as_me:$LINENO: result: no" >&5
9104 echo "${ECHO_T}no" >&6
9107 WINDRES=$ac_ct_WINDRES
9109 WINDRES="$ac_cv_prog_WINDRES"
9113 # Needed for GNU/Hurd.
9114 if test -n "$ac_tool_prefix"; then
9115 # Extract the first word of "${ac_tool_prefix}mig", so it can be a program name with args.
9116 set dummy ${ac_tool_prefix}mig; ac_word=$2
9117 echo "$as_me:$LINENO: checking for $ac_word" >&5
9118 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
9119 if test "${ac_cv_prog_MIG+set}" = set; then
9120 echo $ECHO_N "(cached) $ECHO_C" >&6
9122 if test -n "$MIG"; then
9123 ac_cv_prog_MIG="$MIG" # Let the user override the test.
9125 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9129 test -z "$as_dir" && as_dir=.
9130 for ac_exec_ext in '' $ac_executable_extensions; do
9131 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
9132 ac_cv_prog_MIG="${ac_tool_prefix}mig"
9133 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
9142 if test -n "$MIG"; then
9143 echo "$as_me:$LINENO: result: $MIG" >&5
9144 echo "${ECHO_T}$MIG" >&6
9146 echo "$as_me:$LINENO: result: no" >&5
9147 echo "${ECHO_T}no" >&6
9151 if test -z "$ac_cv_prog_MIG"; then
9153 # Extract the first word of "mig", so it can be a program name with args.
9154 set dummy mig; ac_word=$2
9155 echo "$as_me:$LINENO: checking for $ac_word" >&5
9156 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
9157 if test "${ac_cv_prog_ac_ct_MIG+set}" = set; then
9158 echo $ECHO_N "(cached) $ECHO_C" >&6
9160 if test -n "$ac_ct_MIG"; then
9161 ac_cv_prog_ac_ct_MIG="$ac_ct_MIG" # Let the user override the test.
9163 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9167 test -z "$as_dir" && as_dir=.
9168 for ac_exec_ext in '' $ac_executable_extensions; do
9169 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
9170 ac_cv_prog_ac_ct_MIG="mig"
9171 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
9179 ac_ct_MIG=$ac_cv_prog_ac_ct_MIG
9180 if test -n "$ac_ct_MIG"; then
9181 echo "$as_me:$LINENO: result: $ac_ct_MIG" >&5
9182 echo "${ECHO_T}$ac_ct_MIG" >&6
9184 echo "$as_me:$LINENO: result: no" >&5
9185 echo "${ECHO_T}no" >&6
9190 MIG="$ac_cv_prog_MIG"
9194 # ---------------------- #
9195 # Checks for libraries. #
9196 # ---------------------- #
9198 # We might need to link with -lm; most simulators need it.
9200 echo "$as_me:$LINENO: checking for main in -lm" >&5
9201 echo $ECHO_N "checking for main in -lm... $ECHO_C" >&6
9202 if test "${ac_cv_lib_m_main+set}" = set; then
9203 echo $ECHO_N "(cached) $ECHO_C" >&6
9205 ac_check_lib_save_LIBS=$LIBS
9207 cat >conftest.$ac_ext <<_ACEOF
9210 cat confdefs.h >>conftest.$ac_ext
9211 cat >>conftest.$ac_ext <<_ACEOF
9212 /* end confdefs.h. */
9223 rm -f conftest.$ac_objext conftest$ac_exeext
9224 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
9225 (eval $ac_link) 2>conftest.er1
9227 grep -v '^ *+' conftest.er1 >conftest.err
9229 cat conftest.err >&5
9230 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9231 (exit $ac_status); } &&
9232 { ac_try='test -z "$ac_c_werror_flag"
9233 || test ! -s conftest.err'
9234 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9237 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9238 (exit $ac_status); }; } &&
9239 { ac_try='test -s conftest$ac_exeext'
9240 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9243 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9244 (exit $ac_status); }; }; then
9245 ac_cv_lib_m_main=yes
9247 echo "$as_me: failed program was:" >&5
9248 sed 's/^/| /' conftest.$ac_ext >&5
9252 rm -f conftest.err conftest.$ac_objext \
9253 conftest$ac_exeext conftest.$ac_ext
9254 LIBS=$ac_check_lib_save_LIBS
9256 echo "$as_me:$LINENO: result: $ac_cv_lib_m_main" >&5
9257 echo "${ECHO_T}$ac_cv_lib_m_main" >&6
9258 if test $ac_cv_lib_m_main = yes; then
9259 cat >>confdefs.h <<_ACEOF
9268 # We need to link with -lw to get `wctype' on Solaris before Solaris
9269 # 2.6. Solaris 2.6 and beyond have this function in libc, and have a
9270 # libw that some versions of the GNU linker cannot hanle (GNU ld 2.9.1
9271 # is known to have this problem). Therefore we avoid libw if we can.
9272 echo "$as_me:$LINENO: checking for wctype" >&5
9273 echo $ECHO_N "checking for wctype... $ECHO_C" >&6
9274 if test "${ac_cv_func_wctype+set}" = set; then
9275 echo $ECHO_N "(cached) $ECHO_C" >&6
9277 cat >conftest.$ac_ext <<_ACEOF
9280 cat confdefs.h >>conftest.$ac_ext
9281 cat >>conftest.$ac_ext <<_ACEOF
9282 /* end confdefs.h. */
9283 /* Define wctype to an innocuous variant, in case <limits.h> declares wctype.
9284 For example, HP-UX 11i <limits.h> declares gettimeofday. */
9285 #define wctype innocuous_wctype
9287 /* System header to define __stub macros and hopefully few prototypes,
9288 which can conflict with char wctype (); below.
9289 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
9290 <limits.h> exists even on freestanding compilers. */
9293 # include <limits.h>
9295 # include <assert.h>
9300 /* Override any gcc2 internal prototype to avoid an error. */
9305 /* We use char because int might match the return type of a gcc2
9306 builtin and then its argument prototype would still apply. */
9308 /* The GNU C library defines this for functions which it implements
9309 to always fail with ENOSYS. Some functions are actually named
9310 something starting with __ and the normal name is an alias. */
9311 #if defined (__stub_wctype) || defined (__stub___wctype)
9314 char (*f) () = wctype;
9328 rm -f conftest.$ac_objext conftest$ac_exeext
9329 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
9330 (eval $ac_link) 2>conftest.er1
9332 grep -v '^ *+' conftest.er1 >conftest.err
9334 cat conftest.err >&5
9335 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9336 (exit $ac_status); } &&
9337 { ac_try='test -z "$ac_c_werror_flag"
9338 || test ! -s conftest.err'
9339 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9342 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9343 (exit $ac_status); }; } &&
9344 { ac_try='test -s conftest$ac_exeext'
9345 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9348 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9349 (exit $ac_status); }; }; then
9350 ac_cv_func_wctype=yes
9352 echo "$as_me: failed program was:" >&5
9353 sed 's/^/| /' conftest.$ac_ext >&5
9355 ac_cv_func_wctype=no
9357 rm -f conftest.err conftest.$ac_objext \
9358 conftest$ac_exeext conftest.$ac_ext
9360 echo "$as_me:$LINENO: result: $ac_cv_func_wctype" >&5
9361 echo "${ECHO_T}$ac_cv_func_wctype" >&6
9362 if test $ac_cv_func_wctype = yes; then
9366 echo "$as_me:$LINENO: checking for wctype in -lw" >&5
9367 echo $ECHO_N "checking for wctype in -lw... $ECHO_C" >&6
9368 if test "${ac_cv_lib_w_wctype+set}" = set; then
9369 echo $ECHO_N "(cached) $ECHO_C" >&6
9371 ac_check_lib_save_LIBS=$LIBS
9373 cat >conftest.$ac_ext <<_ACEOF
9376 cat confdefs.h >>conftest.$ac_ext
9377 cat >>conftest.$ac_ext <<_ACEOF
9378 /* end confdefs.h. */
9380 /* Override any gcc2 internal prototype to avoid an error. */
9384 /* We use char because int might match the return type of a gcc2
9385 builtin and then its argument prototype would still apply. */
9395 rm -f conftest.$ac_objext conftest$ac_exeext
9396 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
9397 (eval $ac_link) 2>conftest.er1
9399 grep -v '^ *+' conftest.er1 >conftest.err
9401 cat conftest.err >&5
9402 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9403 (exit $ac_status); } &&
9404 { ac_try='test -z "$ac_c_werror_flag"
9405 || test ! -s conftest.err'
9406 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9409 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9410 (exit $ac_status); }; } &&
9411 { ac_try='test -s conftest$ac_exeext'
9412 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9415 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9416 (exit $ac_status); }; }; then
9417 ac_cv_lib_w_wctype=yes
9419 echo "$as_me: failed program was:" >&5
9420 sed 's/^/| /' conftest.$ac_ext >&5
9422 ac_cv_lib_w_wctype=no
9424 rm -f conftest.err conftest.$ac_objext \
9425 conftest$ac_exeext conftest.$ac_ext
9426 LIBS=$ac_check_lib_save_LIBS
9428 echo "$as_me:$LINENO: result: $ac_cv_lib_w_wctype" >&5
9429 echo "${ECHO_T}$ac_cv_lib_w_wctype" >&6
9430 if test $ac_cv_lib_w_wctype = yes; then
9431 cat >>confdefs.h <<_ACEOF
9442 # Some systems (e.g. Solaris) have `gethostbyname' in libnsl.
9443 echo "$as_me:$LINENO: checking for library containing gethostbyname" >&5
9444 echo $ECHO_N "checking for library containing gethostbyname... $ECHO_C" >&6
9445 if test "${ac_cv_search_gethostbyname+set}" = set; then
9446 echo $ECHO_N "(cached) $ECHO_C" >&6
9448 ac_func_search_save_LIBS=$LIBS
9449 ac_cv_search_gethostbyname=no
9450 cat >conftest.$ac_ext <<_ACEOF
9453 cat confdefs.h >>conftest.$ac_ext
9454 cat >>conftest.$ac_ext <<_ACEOF
9455 /* end confdefs.h. */
9457 /* Override any gcc2 internal prototype to avoid an error. */
9461 /* We use char because int might match the return type of a gcc2
9462 builtin and then its argument prototype would still apply. */
9463 char gethostbyname ();
9472 rm -f conftest.$ac_objext conftest$ac_exeext
9473 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
9474 (eval $ac_link) 2>conftest.er1
9476 grep -v '^ *+' conftest.er1 >conftest.err
9478 cat conftest.err >&5
9479 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9480 (exit $ac_status); } &&
9481 { ac_try='test -z "$ac_c_werror_flag"
9482 || test ! -s conftest.err'
9483 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9486 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9487 (exit $ac_status); }; } &&
9488 { ac_try='test -s conftest$ac_exeext'
9489 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9492 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9493 (exit $ac_status); }; }; then
9494 ac_cv_search_gethostbyname="none required"
9496 echo "$as_me: failed program was:" >&5
9497 sed 's/^/| /' conftest.$ac_ext >&5
9500 rm -f conftest.err conftest.$ac_objext \
9501 conftest$ac_exeext conftest.$ac_ext
9502 if test "$ac_cv_search_gethostbyname" = no; then
9503 for ac_lib in nsl; do
9504 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
9505 cat >conftest.$ac_ext <<_ACEOF
9508 cat confdefs.h >>conftest.$ac_ext
9509 cat >>conftest.$ac_ext <<_ACEOF
9510 /* end confdefs.h. */
9512 /* Override any gcc2 internal prototype to avoid an error. */
9516 /* We use char because int might match the return type of a gcc2
9517 builtin and then its argument prototype would still apply. */
9518 char gethostbyname ();
9527 rm -f conftest.$ac_objext conftest$ac_exeext
9528 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
9529 (eval $ac_link) 2>conftest.er1
9531 grep -v '^ *+' conftest.er1 >conftest.err
9533 cat conftest.err >&5
9534 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9535 (exit $ac_status); } &&
9536 { ac_try='test -z "$ac_c_werror_flag"
9537 || test ! -s conftest.err'
9538 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9541 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9542 (exit $ac_status); }; } &&
9543 { ac_try='test -s conftest$ac_exeext'
9544 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9547 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9548 (exit $ac_status); }; }; then
9549 ac_cv_search_gethostbyname="-l$ac_lib"
9552 echo "$as_me: failed program was:" >&5
9553 sed 's/^/| /' conftest.$ac_ext >&5
9556 rm -f conftest.err conftest.$ac_objext \
9557 conftest$ac_exeext conftest.$ac_ext
9560 LIBS=$ac_func_search_save_LIBS
9562 echo "$as_me:$LINENO: result: $ac_cv_search_gethostbyname" >&5
9563 echo "${ECHO_T}$ac_cv_search_gethostbyname" >&6
9564 if test "$ac_cv_search_gethostbyname" != no; then
9565 test "$ac_cv_search_gethostbyname" = "none required" || LIBS="$ac_cv_search_gethostbyname $LIBS"
9570 # Some systems (e.g. Solaris) have `socketpair' in libsocket.
9571 echo "$as_me:$LINENO: checking for library containing socketpair" >&5
9572 echo $ECHO_N "checking for library containing socketpair... $ECHO_C" >&6
9573 if test "${ac_cv_search_socketpair+set}" = set; then
9574 echo $ECHO_N "(cached) $ECHO_C" >&6
9576 ac_func_search_save_LIBS=$LIBS
9577 ac_cv_search_socketpair=no
9578 cat >conftest.$ac_ext <<_ACEOF
9581 cat confdefs.h >>conftest.$ac_ext
9582 cat >>conftest.$ac_ext <<_ACEOF
9583 /* end confdefs.h. */
9585 /* Override any gcc2 internal prototype to avoid an error. */
9589 /* We use char because int might match the return type of a gcc2
9590 builtin and then its argument prototype would still apply. */
9600 rm -f conftest.$ac_objext conftest$ac_exeext
9601 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
9602 (eval $ac_link) 2>conftest.er1
9604 grep -v '^ *+' conftest.er1 >conftest.err
9606 cat conftest.err >&5
9607 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9608 (exit $ac_status); } &&
9609 { ac_try='test -z "$ac_c_werror_flag"
9610 || test ! -s conftest.err'
9611 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9614 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9615 (exit $ac_status); }; } &&
9616 { ac_try='test -s conftest$ac_exeext'
9617 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9620 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9621 (exit $ac_status); }; }; then
9622 ac_cv_search_socketpair="none required"
9624 echo "$as_me: failed program was:" >&5
9625 sed 's/^/| /' conftest.$ac_ext >&5
9628 rm -f conftest.err conftest.$ac_objext \
9629 conftest$ac_exeext conftest.$ac_ext
9630 if test "$ac_cv_search_socketpair" = no; then
9631 for ac_lib in socket; do
9632 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
9633 cat >conftest.$ac_ext <<_ACEOF
9636 cat confdefs.h >>conftest.$ac_ext
9637 cat >>conftest.$ac_ext <<_ACEOF
9638 /* end confdefs.h. */
9640 /* Override any gcc2 internal prototype to avoid an error. */
9644 /* We use char because int might match the return type of a gcc2
9645 builtin and then its argument prototype would still apply. */
9655 rm -f conftest.$ac_objext conftest$ac_exeext
9656 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
9657 (eval $ac_link) 2>conftest.er1
9659 grep -v '^ *+' conftest.er1 >conftest.err
9661 cat conftest.err >&5
9662 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9663 (exit $ac_status); } &&
9664 { ac_try='test -z "$ac_c_werror_flag"
9665 || test ! -s conftest.err'
9666 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9669 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9670 (exit $ac_status); }; } &&
9671 { ac_try='test -s conftest$ac_exeext'
9672 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9675 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9676 (exit $ac_status); }; }; then
9677 ac_cv_search_socketpair="-l$ac_lib"
9680 echo "$as_me: failed program was:" >&5
9681 sed 's/^/| /' conftest.$ac_ext >&5
9684 rm -f conftest.err conftest.$ac_objext \
9685 conftest$ac_exeext conftest.$ac_ext
9688 LIBS=$ac_func_search_save_LIBS
9690 echo "$as_me:$LINENO: result: $ac_cv_search_socketpair" >&5
9691 echo "${ECHO_T}$ac_cv_search_socketpair" >&6
9692 if test "$ac_cv_search_socketpair" != no; then
9693 test "$ac_cv_search_socketpair" = "none required" || LIBS="$ac_cv_search_socketpair $LIBS"
9698 # Link in zlib if we can. This allows us to read compressed debug sections.
9699 echo "$as_me:$LINENO: checking for library containing zlibVersion" >&5
9700 echo $ECHO_N "checking for library containing zlibVersion... $ECHO_C" >&6
9701 if test "${ac_cv_search_zlibVersion+set}" = set; then
9702 echo $ECHO_N "(cached) $ECHO_C" >&6
9704 ac_func_search_save_LIBS=$LIBS
9705 ac_cv_search_zlibVersion=no
9706 cat >conftest.$ac_ext <<_ACEOF
9709 cat confdefs.h >>conftest.$ac_ext
9710 cat >>conftest.$ac_ext <<_ACEOF
9711 /* end confdefs.h. */
9713 /* Override any gcc2 internal prototype to avoid an error. */
9717 /* We use char because int might match the return type of a gcc2
9718 builtin and then its argument prototype would still apply. */
9719 char zlibVersion ();
9728 rm -f conftest.$ac_objext conftest$ac_exeext
9729 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
9730 (eval $ac_link) 2>conftest.er1
9732 grep -v '^ *+' conftest.er1 >conftest.err
9734 cat conftest.err >&5
9735 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9736 (exit $ac_status); } &&
9737 { ac_try='test -z "$ac_c_werror_flag"
9738 || test ! -s conftest.err'
9739 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9742 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9743 (exit $ac_status); }; } &&
9744 { ac_try='test -s conftest$ac_exeext'
9745 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9748 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9749 (exit $ac_status); }; }; then
9750 ac_cv_search_zlibVersion="none required"
9752 echo "$as_me: failed program was:" >&5
9753 sed 's/^/| /' conftest.$ac_ext >&5
9756 rm -f conftest.err conftest.$ac_objext \
9757 conftest$ac_exeext conftest.$ac_ext
9758 if test "$ac_cv_search_zlibVersion" = no; then
9760 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
9761 cat >conftest.$ac_ext <<_ACEOF
9764 cat confdefs.h >>conftest.$ac_ext
9765 cat >>conftest.$ac_ext <<_ACEOF
9766 /* end confdefs.h. */
9768 /* Override any gcc2 internal prototype to avoid an error. */
9772 /* We use char because int might match the return type of a gcc2
9773 builtin and then its argument prototype would still apply. */
9774 char zlibVersion ();
9783 rm -f conftest.$ac_objext conftest$ac_exeext
9784 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
9785 (eval $ac_link) 2>conftest.er1
9787 grep -v '^ *+' conftest.er1 >conftest.err
9789 cat conftest.err >&5
9790 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9791 (exit $ac_status); } &&
9792 { ac_try='test -z "$ac_c_werror_flag"
9793 || test ! -s conftest.err'
9794 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9797 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9798 (exit $ac_status); }; } &&
9799 { ac_try='test -s conftest$ac_exeext'
9800 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9803 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9804 (exit $ac_status); }; }; then
9805 ac_cv_search_zlibVersion="-l$ac_lib"
9808 echo "$as_me: failed program was:" >&5
9809 sed 's/^/| /' conftest.$ac_ext >&5
9812 rm -f conftest.err conftest.$ac_objext \
9813 conftest$ac_exeext conftest.$ac_ext
9816 LIBS=$ac_func_search_save_LIBS
9818 echo "$as_me:$LINENO: result: $ac_cv_search_zlibVersion" >&5
9819 echo "${ECHO_T}$ac_cv_search_zlibVersion" >&6
9820 if test "$ac_cv_search_zlibVersion" != no; then
9821 test "$ac_cv_search_zlibVersion" = "none required" || LIBS="$ac_cv_search_zlibVersion $LIBS"
9823 for ac_header in zlib.h
9825 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
9826 if eval "test \"\${$as_ac_Header+set}\" = set"; then
9827 echo "$as_me:$LINENO: checking for $ac_header" >&5
9828 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
9829 if eval "test \"\${$as_ac_Header+set}\" = set"; then
9830 echo $ECHO_N "(cached) $ECHO_C" >&6
9832 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
9833 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
9835 # Is the header compilable?
9836 echo "$as_me:$LINENO: checking $ac_header usability" >&5
9837 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
9838 cat >conftest.$ac_ext <<_ACEOF
9841 cat confdefs.h >>conftest.$ac_ext
9842 cat >>conftest.$ac_ext <<_ACEOF
9843 /* end confdefs.h. */
9844 $ac_includes_default
9845 #include <$ac_header>
9847 rm -f conftest.$ac_objext
9848 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
9849 (eval $ac_compile) 2>conftest.er1
9851 grep -v '^ *+' conftest.er1 >conftest.err
9853 cat conftest.err >&5
9854 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9855 (exit $ac_status); } &&
9856 { ac_try='test -z "$ac_c_werror_flag"
9857 || test ! -s conftest.err'
9858 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9861 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9862 (exit $ac_status); }; } &&
9863 { ac_try='test -s conftest.$ac_objext'
9864 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9867 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9868 (exit $ac_status); }; }; then
9869 ac_header_compiler=yes
9871 echo "$as_me: failed program was:" >&5
9872 sed 's/^/| /' conftest.$ac_ext >&5
9874 ac_header_compiler=no
9876 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
9877 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
9878 echo "${ECHO_T}$ac_header_compiler" >&6
9880 # Is the header present?
9881 echo "$as_me:$LINENO: checking $ac_header presence" >&5
9882 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
9883 cat >conftest.$ac_ext <<_ACEOF
9886 cat confdefs.h >>conftest.$ac_ext
9887 cat >>conftest.$ac_ext <<_ACEOF
9888 /* end confdefs.h. */
9889 #include <$ac_header>
9891 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
9892 (eval $ac_cpp conftest.$ac_ext) 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); } >/dev/null; then
9899 if test -s conftest.err; then
9900 ac_cpp_err=$ac_c_preproc_warn_flag
9901 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
9908 if test -z "$ac_cpp_err"; then
9909 ac_header_preproc=yes
9911 echo "$as_me: failed program was:" >&5
9912 sed 's/^/| /' conftest.$ac_ext >&5
9914 ac_header_preproc=no
9916 rm -f conftest.err conftest.$ac_ext
9917 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
9918 echo "${ECHO_T}$ac_header_preproc" >&6
9920 # So? What about this header?
9921 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
9923 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
9924 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
9925 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
9926 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
9927 ac_header_preproc=yes
9930 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
9931 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
9932 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
9933 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
9934 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
9935 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
9936 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
9937 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
9938 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
9939 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
9940 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
9941 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
9944 ## ------------------------------------------ ##
9945 ## Report this to the AC_PACKAGE_NAME lists. ##
9946 ## ------------------------------------------ ##
9949 sed "s/^/$as_me: WARNING: /" >&2
9952 echo "$as_me:$LINENO: checking for $ac_header" >&5
9953 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
9954 if eval "test \"\${$as_ac_Header+set}\" = set"; then
9955 echo $ECHO_N "(cached) $ECHO_C" >&6
9957 eval "$as_ac_Header=\$ac_header_preproc"
9959 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
9960 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
9963 if test `eval echo '${'$as_ac_Header'}'` = yes; then
9964 cat >>confdefs.h <<_ACEOF
9965 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
9975 # For the TUI, we need enhanced curses functionality.
9977 # FIXME: kettenis/20040905: We prefer ncurses over the vendor-supplied
9978 # curses library because the latter might not provide all the
9979 # functionality we need. However, this leads to problems on systems
9980 # where the linker searches /usr/local/lib, but the compiler doesn't
9981 # search /usr/local/include, if ncurses is installed in /usr/local. A
9982 # default installation of ncurses on alpha*-dec-osf* will lead to such
9984 echo "$as_me:$LINENO: checking for library containing waddstr" >&5
9985 echo $ECHO_N "checking for library containing waddstr... $ECHO_C" >&6
9986 if test "${ac_cv_search_waddstr+set}" = set; then
9987 echo $ECHO_N "(cached) $ECHO_C" >&6
9989 ac_func_search_save_LIBS=$LIBS
9990 ac_cv_search_waddstr=no
9991 cat >conftest.$ac_ext <<_ACEOF
9994 cat confdefs.h >>conftest.$ac_ext
9995 cat >>conftest.$ac_ext <<_ACEOF
9996 /* end confdefs.h. */
9998 /* Override any gcc2 internal prototype to avoid an error. */
10002 /* We use char because int might match the return type of a gcc2
10003 builtin and then its argument prototype would still apply. */
10013 rm -f conftest.$ac_objext conftest$ac_exeext
10014 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
10015 (eval $ac_link) 2>conftest.er1
10017 grep -v '^ *+' conftest.er1 >conftest.err
10019 cat conftest.err >&5
10020 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10021 (exit $ac_status); } &&
10022 { ac_try='test -z "$ac_c_werror_flag"
10023 || test ! -s conftest.err'
10024 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10025 (eval $ac_try) 2>&5
10027 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10028 (exit $ac_status); }; } &&
10029 { ac_try='test -s conftest$ac_exeext'
10030 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10031 (eval $ac_try) 2>&5
10033 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10034 (exit $ac_status); }; }; then
10035 ac_cv_search_waddstr="none required"
10037 echo "$as_me: failed program was:" >&5
10038 sed 's/^/| /' conftest.$ac_ext >&5
10041 rm -f conftest.err conftest.$ac_objext \
10042 conftest$ac_exeext conftest.$ac_ext
10043 if test "$ac_cv_search_waddstr" = no; then
10044 for ac_lib in ncurses cursesX curses; do
10045 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
10046 cat >conftest.$ac_ext <<_ACEOF
10049 cat confdefs.h >>conftest.$ac_ext
10050 cat >>conftest.$ac_ext <<_ACEOF
10051 /* end confdefs.h. */
10053 /* Override any gcc2 internal prototype to avoid an error. */
10057 /* We use char because int might match the return type of a gcc2
10058 builtin and then its argument prototype would still apply. */
10068 rm -f conftest.$ac_objext conftest$ac_exeext
10069 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
10070 (eval $ac_link) 2>conftest.er1
10072 grep -v '^ *+' conftest.er1 >conftest.err
10074 cat conftest.err >&5
10075 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10076 (exit $ac_status); } &&
10077 { ac_try='test -z "$ac_c_werror_flag"
10078 || test ! -s conftest.err'
10079 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10080 (eval $ac_try) 2>&5
10082 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10083 (exit $ac_status); }; } &&
10084 { ac_try='test -s conftest$ac_exeext'
10085 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10086 (eval $ac_try) 2>&5
10088 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10089 (exit $ac_status); }; }; then
10090 ac_cv_search_waddstr="-l$ac_lib"
10093 echo "$as_me: failed program was:" >&5
10094 sed 's/^/| /' conftest.$ac_ext >&5
10097 rm -f conftest.err conftest.$ac_objext \
10098 conftest$ac_exeext conftest.$ac_ext
10101 LIBS=$ac_func_search_save_LIBS
10103 echo "$as_me:$LINENO: result: $ac_cv_search_waddstr" >&5
10104 echo "${ECHO_T}$ac_cv_search_waddstr" >&6
10105 if test "$ac_cv_search_waddstr" != no; then
10106 test "$ac_cv_search_waddstr" = "none required" || LIBS="$ac_cv_search_waddstr $LIBS"
10111 # On HP/UX we may need libxpdl for dlgetmodinfo (used by solib-pa64.c).
10112 echo "$as_me:$LINENO: checking for library containing dlgetmodinfo" >&5
10113 echo $ECHO_N "checking for library containing dlgetmodinfo... $ECHO_C" >&6
10114 if test "${ac_cv_search_dlgetmodinfo+set}" = set; then
10115 echo $ECHO_N "(cached) $ECHO_C" >&6
10117 ac_func_search_save_LIBS=$LIBS
10118 ac_cv_search_dlgetmodinfo=no
10119 cat >conftest.$ac_ext <<_ACEOF
10122 cat confdefs.h >>conftest.$ac_ext
10123 cat >>conftest.$ac_ext <<_ACEOF
10124 /* end confdefs.h. */
10126 /* Override any gcc2 internal prototype to avoid an error. */
10130 /* We use char because int might match the return type of a gcc2
10131 builtin and then its argument prototype would still apply. */
10132 char dlgetmodinfo ();
10141 rm -f conftest.$ac_objext conftest$ac_exeext
10142 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
10143 (eval $ac_link) 2>conftest.er1
10145 grep -v '^ *+' conftest.er1 >conftest.err
10147 cat conftest.err >&5
10148 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10149 (exit $ac_status); } &&
10150 { ac_try='test -z "$ac_c_werror_flag"
10151 || test ! -s conftest.err'
10152 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10153 (eval $ac_try) 2>&5
10155 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10156 (exit $ac_status); }; } &&
10157 { ac_try='test -s conftest$ac_exeext'
10158 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10159 (eval $ac_try) 2>&5
10161 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10162 (exit $ac_status); }; }; then
10163 ac_cv_search_dlgetmodinfo="none required"
10165 echo "$as_me: failed program was:" >&5
10166 sed 's/^/| /' conftest.$ac_ext >&5
10169 rm -f conftest.err conftest.$ac_objext \
10170 conftest$ac_exeext conftest.$ac_ext
10171 if test "$ac_cv_search_dlgetmodinfo" = no; then
10172 for ac_lib in dl xpdl; do
10173 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
10174 cat >conftest.$ac_ext <<_ACEOF
10177 cat confdefs.h >>conftest.$ac_ext
10178 cat >>conftest.$ac_ext <<_ACEOF
10179 /* end confdefs.h. */
10181 /* Override any gcc2 internal prototype to avoid an error. */
10185 /* We use char because int might match the return type of a gcc2
10186 builtin and then its argument prototype would still apply. */
10187 char dlgetmodinfo ();
10196 rm -f conftest.$ac_objext conftest$ac_exeext
10197 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
10198 (eval $ac_link) 2>conftest.er1
10200 grep -v '^ *+' conftest.er1 >conftest.err
10202 cat conftest.err >&5
10203 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10204 (exit $ac_status); } &&
10205 { ac_try='test -z "$ac_c_werror_flag"
10206 || test ! -s conftest.err'
10207 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10208 (eval $ac_try) 2>&5
10210 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10211 (exit $ac_status); }; } &&
10212 { ac_try='test -s conftest$ac_exeext'
10213 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10214 (eval $ac_try) 2>&5
10216 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10217 (exit $ac_status); }; }; then
10218 ac_cv_search_dlgetmodinfo="-l$ac_lib"
10221 echo "$as_me: failed program was:" >&5
10222 sed 's/^/| /' conftest.$ac_ext >&5
10225 rm -f conftest.err conftest.$ac_objext \
10226 conftest$ac_exeext conftest.$ac_ext
10229 LIBS=$ac_func_search_save_LIBS
10231 echo "$as_me:$LINENO: result: $ac_cv_search_dlgetmodinfo" >&5
10232 echo "${ECHO_T}$ac_cv_search_dlgetmodinfo" >&6
10233 if test "$ac_cv_search_dlgetmodinfo" != no; then
10234 test "$ac_cv_search_dlgetmodinfo" = "none required" || LIBS="$ac_cv_search_dlgetmodinfo $LIBS"
10239 # Since GDB uses Readline, we need termcap functionality. In many
10240 # cases this will be provided by the curses library, but some systems
10241 # have a seperate termcap library, or no curses library at all.
10245 if test -d $srcdir/libtermcap; then
10246 LIBS="../libtermcap/libtermcap.a $LIBS"
10247 ac_cv_search_tgetent="../libtermcap/libtermcap.a"
10250 ac_cv_search_tgetent="none required"
10253 ac_cv_search_tgetent="none required"
10254 CONFIG_OBS="$CONFIG_OBS win32-termcap.o"
10258 # These are the libraries checked by Readline.
10259 echo "$as_me:$LINENO: checking for library containing tgetent" >&5
10260 echo $ECHO_N "checking for library containing tgetent... $ECHO_C" >&6
10261 if test "${ac_cv_search_tgetent+set}" = set; then
10262 echo $ECHO_N "(cached) $ECHO_C" >&6
10264 ac_func_search_save_LIBS=$LIBS
10265 ac_cv_search_tgetent=no
10266 cat >conftest.$ac_ext <<_ACEOF
10269 cat confdefs.h >>conftest.$ac_ext
10270 cat >>conftest.$ac_ext <<_ACEOF
10271 /* end confdefs.h. */
10273 /* Override any gcc2 internal prototype to avoid an error. */
10277 /* We use char because int might match the return type of a gcc2
10278 builtin and then its argument prototype would still apply. */
10288 rm -f conftest.$ac_objext conftest$ac_exeext
10289 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
10290 (eval $ac_link) 2>conftest.er1
10292 grep -v '^ *+' conftest.er1 >conftest.err
10294 cat conftest.err >&5
10295 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10296 (exit $ac_status); } &&
10297 { ac_try='test -z "$ac_c_werror_flag"
10298 || test ! -s conftest.err'
10299 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10300 (eval $ac_try) 2>&5
10302 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10303 (exit $ac_status); }; } &&
10304 { ac_try='test -s conftest$ac_exeext'
10305 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10306 (eval $ac_try) 2>&5
10308 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10309 (exit $ac_status); }; }; then
10310 ac_cv_search_tgetent="none required"
10312 echo "$as_me: failed program was:" >&5
10313 sed 's/^/| /' conftest.$ac_ext >&5
10316 rm -f conftest.err conftest.$ac_objext \
10317 conftest$ac_exeext conftest.$ac_ext
10318 if test "$ac_cv_search_tgetent" = no; then
10319 for ac_lib in termcap tinfo curses ncurses; do
10320 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
10321 cat >conftest.$ac_ext <<_ACEOF
10324 cat confdefs.h >>conftest.$ac_ext
10325 cat >>conftest.$ac_ext <<_ACEOF
10326 /* end confdefs.h. */
10328 /* Override any gcc2 internal prototype to avoid an error. */
10332 /* We use char because int might match the return type of a gcc2
10333 builtin and then its argument prototype would still apply. */
10343 rm -f conftest.$ac_objext conftest$ac_exeext
10344 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
10345 (eval $ac_link) 2>conftest.er1
10347 grep -v '^ *+' conftest.er1 >conftest.err
10349 cat conftest.err >&5
10350 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10351 (exit $ac_status); } &&
10352 { ac_try='test -z "$ac_c_werror_flag"
10353 || test ! -s conftest.err'
10354 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10355 (eval $ac_try) 2>&5
10357 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10358 (exit $ac_status); }; } &&
10359 { ac_try='test -s conftest$ac_exeext'
10360 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10361 (eval $ac_try) 2>&5
10363 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10364 (exit $ac_status); }; }; then
10365 ac_cv_search_tgetent="-l$ac_lib"
10368 echo "$as_me: failed program was:" >&5
10369 sed 's/^/| /' conftest.$ac_ext >&5
10372 rm -f conftest.err conftest.$ac_objext \
10373 conftest$ac_exeext conftest.$ac_ext
10376 LIBS=$ac_func_search_save_LIBS
10378 echo "$as_me:$LINENO: result: $ac_cv_search_tgetent" >&5
10379 echo "${ECHO_T}$ac_cv_search_tgetent" >&6
10380 if test "$ac_cv_search_tgetent" != no; then
10381 test "$ac_cv_search_tgetent" = "none required" || LIBS="$ac_cv_search_tgetent $LIBS"
10386 if test "$ac_cv_search_tgetent" = no; then
10387 { { echo "$as_me:$LINENO: error: no termcap library found" >&5
10388 echo "$as_me: error: no termcap library found" >&2;}
10389 { (exit 1); exit 1; }; }
10393 # Check whether --with-system-readline or --without-system-readline was given.
10394 if test "${with_system_readline+set}" = set; then
10395 withval="$with_system_readline"
10399 if test "$with_system_readline" = yes; then
10400 READLINE=-lreadline
10404 READLINE='$(READLINE_DIR)/libreadline.a'
10405 READLINE_DEPS='$(READLINE)'
10406 READLINE_CFLAGS='-I$(READLINE_SRC)/..'
10413 # Check whether --with-expat or --without-expat was given.
10414 if test "${with_expat+set}" = set; then
10415 withval="$with_expat"
10420 echo "$as_me:$LINENO: checking whether to use expat" >&5
10421 echo $ECHO_N "checking whether to use expat... $ECHO_C" >&6
10422 echo "$as_me:$LINENO: result: $with_expat" >&5
10423 echo "${ECHO_T}$with_expat" >&6
10425 if test "${with_expat}" = no; then
10426 { echo "$as_me:$LINENO: WARNING: expat support disabled; some features may be unavailable." >&5
10427 echo "$as_me: WARNING: expat support disabled; some features may be unavailable." >&2;}
10431 if test "X$prefix" = "XNONE"; then
10432 acl_final_prefix="$ac_default_prefix"
10434 acl_final_prefix="$prefix"
10436 if test "X$exec_prefix" = "XNONE"; then
10437 acl_final_exec_prefix='${prefix}'
10439 acl_final_exec_prefix="$exec_prefix"
10441 acl_save_prefix="$prefix"
10442 prefix="$acl_final_prefix"
10443 eval acl_final_exec_prefix=\"$acl_final_exec_prefix\"
10444 prefix="$acl_save_prefix"
10447 # Check whether --with-gnu-ld or --without-gnu-ld was given.
10448 if test "${with_gnu_ld+set}" = set; then
10449 withval="$with_gnu_ld"
10450 test "$withval" = no || with_gnu_ld=yes
10454 # Prepare PATH_SEPARATOR.
10455 # The user is always right.
10456 if test "${PATH_SEPARATOR+set}" != set; then
10457 echo "#! /bin/sh" >conf$$.sh
10458 echo "exit 0" >>conf$$.sh
10460 if (PATH="/nonexistent;."; conf$$.sh) >/dev/null 2>&1; then
10468 if test "$GCC" = yes; then
10469 # Check if gcc -print-prog-name=ld gives a path.
10470 echo "$as_me:$LINENO: checking for ld used by GCC" >&5
10471 echo $ECHO_N "checking for ld used by GCC... $ECHO_C" >&6
10474 # gcc leaves a trailing carriage return which upsets mingw
10475 ac_prog=`($CC -print-prog-name=ld) 2>&5 | tr -d '\015'` ;;
10477 ac_prog=`($CC -print-prog-name=ld) 2>&5` ;;
10480 # Accept absolute paths.
10481 [\\/]* | [A-Za-z]:[\\/]*)
10482 re_direlt='/[^/][^/]*/\.\./'
10483 # Canonicalize the path of ld
10484 ac_prog=`echo $ac_prog| sed 's%\\\\%/%g'`
10485 while echo $ac_prog | grep "$re_direlt" > /dev/null 2>&1; do
10486 ac_prog=`echo $ac_prog| sed "s%$re_direlt%/%"`
10488 test -z "$LD" && LD="$ac_prog"
10491 # If it fails, then pretend we aren't using GCC.
10495 # If it is relative, then search for the first ld in PATH.
10496 with_gnu_ld=unknown
10499 elif test "$with_gnu_ld" = yes; then
10500 echo "$as_me:$LINENO: checking for GNU ld" >&5
10501 echo $ECHO_N "checking for GNU ld... $ECHO_C" >&6
10503 echo "$as_me:$LINENO: checking for non-GNU ld" >&5
10504 echo $ECHO_N "checking for non-GNU ld... $ECHO_C" >&6
10506 if test "${acl_cv_path_LD+set}" = set; then
10507 echo $ECHO_N "(cached) $ECHO_C" >&6
10509 if test -z "$LD"; then
10510 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS="${IFS}${PATH_SEPARATOR-:}"
10511 for ac_dir in $PATH; do
10512 test -z "$ac_dir" && ac_dir=.
10513 if test -f "$ac_dir/$ac_prog" || test -f "$ac_dir/$ac_prog$ac_exeext"; then
10514 acl_cv_path_LD="$ac_dir/$ac_prog"
10515 # Check to see if the program is GNU ld. I'd rather use --version,
10516 # but apparently some GNU ld's only accept -v.
10517 # Break only if it was the GNU/non-GNU ld that we prefer.
10518 if "$acl_cv_path_LD" -v 2>&1 < /dev/null | egrep '(GNU|with BFD)' > /dev/null; then
10519 test "$with_gnu_ld" != no && break
10521 test "$with_gnu_ld" != yes && break
10527 acl_cv_path_LD="$LD" # Let the user override the test with a path.
10531 LD="$acl_cv_path_LD"
10532 if test -n "$LD"; then
10533 echo "$as_me:$LINENO: result: $LD" >&5
10534 echo "${ECHO_T}$LD" >&6
10536 echo "$as_me:$LINENO: result: no" >&5
10537 echo "${ECHO_T}no" >&6
10539 test -z "$LD" && { { echo "$as_me:$LINENO: error: no acceptable ld found in \$PATH" >&5
10540 echo "$as_me: error: no acceptable ld found in \$PATH" >&2;}
10541 { (exit 1); exit 1; }; }
10542 echo "$as_me:$LINENO: checking if the linker ($LD) is GNU ld" >&5
10543 echo $ECHO_N "checking if the linker ($LD) is GNU ld... $ECHO_C" >&6
10544 if test "${acl_cv_prog_gnu_ld+set}" = set; then
10545 echo $ECHO_N "(cached) $ECHO_C" >&6
10547 # I'd rather use --version here, but apparently some GNU ld's only accept -v.
10548 if $LD -v 2>&1 </dev/null | egrep '(GNU|with BFD)' 1>&5; then
10549 acl_cv_prog_gnu_ld=yes
10551 acl_cv_prog_gnu_ld=no
10554 echo "$as_me:$LINENO: result: $acl_cv_prog_gnu_ld" >&5
10555 echo "${ECHO_T}$acl_cv_prog_gnu_ld" >&6
10556 with_gnu_ld=$acl_cv_prog_gnu_ld
10560 echo "$as_me:$LINENO: checking for shared library run path origin" >&5
10561 echo $ECHO_N "checking for shared library run path origin... $ECHO_C" >&6
10562 if test "${acl_cv_rpath+set}" = set; then
10563 echo $ECHO_N "(cached) $ECHO_C" >&6
10566 CC="$CC" GCC="$GCC" LDFLAGS="$LDFLAGS" LD="$LD" with_gnu_ld="$with_gnu_ld" \
10567 ${CONFIG_SHELL-/bin/sh} "$ac_aux_dir/config.rpath" "$host" > conftest.sh
10569 rm -f ./conftest.sh
10573 echo "$as_me:$LINENO: result: $acl_cv_rpath" >&5
10574 echo "${ECHO_T}$acl_cv_rpath" >&6
10576 libext="$acl_cv_libext"
10577 shlibext="$acl_cv_shlibext"
10578 hardcode_libdir_flag_spec="$acl_cv_hardcode_libdir_flag_spec"
10579 hardcode_libdir_separator="$acl_cv_hardcode_libdir_separator"
10580 hardcode_direct="$acl_cv_hardcode_direct"
10581 hardcode_minus_L="$acl_cv_hardcode_minus_L"
10582 # Check whether --enable-rpath or --disable-rpath was given.
10583 if test "${enable_rpath+set}" = set; then
10584 enableval="$enable_rpath"
10600 acl_save_prefix="$prefix"
10601 prefix="$acl_final_prefix"
10602 acl_save_exec_prefix="$exec_prefix"
10603 exec_prefix="$acl_final_exec_prefix"
10605 eval additional_includedir=\"$includedir\"
10606 eval additional_libdir=\"$libdir\"
10608 exec_prefix="$acl_save_exec_prefix"
10609 prefix="$acl_save_prefix"
10612 # Check whether --with-libexpat-prefix or --without-libexpat-prefix was given.
10613 if test "${with_libexpat_prefix+set}" = set; then
10614 withval="$with_libexpat_prefix"
10616 if test "X$withval" = "Xno"; then
10619 if test "X$withval" = "X"; then
10621 acl_save_prefix="$prefix"
10622 prefix="$acl_final_prefix"
10623 acl_save_exec_prefix="$exec_prefix"
10624 exec_prefix="$acl_final_exec_prefix"
10626 eval additional_includedir=\"$includedir\"
10627 eval additional_libdir=\"$libdir\"
10629 exec_prefix="$acl_save_exec_prefix"
10630 prefix="$acl_save_prefix"
10633 additional_includedir="$withval/include"
10634 additional_libdir="$withval/lib"
10644 names_already_handled=
10645 names_next_round='expat '
10646 while test -n "$names_next_round"; do
10647 names_this_round="$names_next_round"
10649 for name in $names_this_round; do
10651 for n in $names_already_handled; do
10652 if test "$n" = "$name"; then
10653 already_handled=yes
10657 if test -z "$already_handled"; then
10658 names_already_handled="$names_already_handled $name"
10659 uppername=`echo "$name" | sed -e 'y|abcdefghijklmnopqrstuvwxyz./-|ABCDEFGHIJKLMNOPQRSTUVWXYZ___|'`
10660 eval value=\"\$HAVE_LIB$uppername\"
10661 if test -n "$value"; then
10662 if test "$value" = yes; then
10663 eval value=\"\$LIB$uppername\"
10664 test -z "$value" || LIBEXPAT="${LIBEXPAT}${LIBEXPAT:+ }$value"
10665 eval value=\"\$LTLIB$uppername\"
10666 test -z "$value" || LTLIBEXPAT="${LTLIBEXPAT}${LTLIBEXPAT:+ }$value"
10675 if test $use_additional = yes; then
10676 if test -n "$shlibext" && test -f "$additional_libdir/lib$name.$shlibext"; then
10677 found_dir="$additional_libdir"
10678 found_so="$additional_libdir/lib$name.$shlibext"
10679 if test -f "$additional_libdir/lib$name.la"; then
10680 found_la="$additional_libdir/lib$name.la"
10683 if test -f "$additional_libdir/lib$name.$libext"; then
10684 found_dir="$additional_libdir"
10685 found_a="$additional_libdir/lib$name.$libext"
10686 if test -f "$additional_libdir/lib$name.la"; then
10687 found_la="$additional_libdir/lib$name.la"
10692 if test "X$found_dir" = "X"; then
10693 for x in $LDFLAGS $LTLIBEXPAT; do
10695 acl_save_prefix="$prefix"
10696 prefix="$acl_final_prefix"
10697 acl_save_exec_prefix="$exec_prefix"
10698 exec_prefix="$acl_final_exec_prefix"
10700 exec_prefix="$acl_save_exec_prefix"
10701 prefix="$acl_save_prefix"
10705 dir=`echo "X$x" | sed -e 's/^X-L//'`
10706 if test -n "$shlibext" && test -f "$dir/lib$name.$shlibext"; then
10708 found_so="$dir/lib$name.$shlibext"
10709 if test -f "$dir/lib$name.la"; then
10710 found_la="$dir/lib$name.la"
10713 if test -f "$dir/lib$name.$libext"; then
10715 found_a="$dir/lib$name.$libext"
10716 if test -f "$dir/lib$name.la"; then
10717 found_la="$dir/lib$name.la"
10723 if test "X$found_dir" != "X"; then
10728 if test "X$found_dir" != "X"; then
10729 LTLIBEXPAT="${LTLIBEXPAT}${LTLIBEXPAT:+ }-L$found_dir -l$name"
10730 if test "X$found_so" != "X"; then
10731 if test "$enable_rpath" = no || test "X$found_dir" = "X/usr/lib"; then
10732 LIBEXPAT="${LIBEXPAT}${LIBEXPAT:+ }$found_so"
10735 for x in $ltrpathdirs; do
10736 if test "X$x" = "X$found_dir"; then
10741 if test -z "$haveit"; then
10742 ltrpathdirs="$ltrpathdirs $found_dir"
10744 if test "$hardcode_direct" = yes; then
10745 LIBEXPAT="${LIBEXPAT}${LIBEXPAT:+ }$found_so"
10747 if test -n "$hardcode_libdir_flag_spec" && test "$hardcode_minus_L" = no; then
10748 LIBEXPAT="${LIBEXPAT}${LIBEXPAT:+ }$found_so"
10750 for x in $rpathdirs; do
10751 if test "X$x" = "X$found_dir"; then
10756 if test -z "$haveit"; then
10757 rpathdirs="$rpathdirs $found_dir"
10761 for x in $LDFLAGS $LIBEXPAT; do
10763 acl_save_prefix="$prefix"
10764 prefix="$acl_final_prefix"
10765 acl_save_exec_prefix="$exec_prefix"
10766 exec_prefix="$acl_final_exec_prefix"
10768 exec_prefix="$acl_save_exec_prefix"
10769 prefix="$acl_save_prefix"
10771 if test "X$x" = "X-L$found_dir"; then
10776 if test -z "$haveit"; then
10777 LIBEXPAT="${LIBEXPAT}${LIBEXPAT:+ }-L$found_dir"
10779 if test "$hardcode_minus_L" != no; then
10780 LIBEXPAT="${LIBEXPAT}${LIBEXPAT:+ }$found_so"
10782 LIBEXPAT="${LIBEXPAT}${LIBEXPAT:+ }-l$name"
10788 if test "X$found_a" != "X"; then
10789 LIBEXPAT="${LIBEXPAT}${LIBEXPAT:+ }$found_a"
10791 LIBEXPAT="${LIBEXPAT}${LIBEXPAT:+ }-L$found_dir -l$name"
10794 additional_includedir=
10795 case "$found_dir" in
10797 basedir=`echo "X$found_dir" | sed -e 's,^X,,' -e 's,/lib/*$,,'`
10798 additional_includedir="$basedir/include"
10801 if test "X$additional_includedir" != "X"; then
10802 if test "X$additional_includedir" != "X/usr/include"; then
10804 if test "X$additional_includedir" = "X/usr/local/include"; then
10805 if test -n "$GCC"; then
10807 linux*) haveit=yes;;
10811 if test -z "$haveit"; then
10812 for x in $CPPFLAGS $INCEXPAT; do
10814 acl_save_prefix="$prefix"
10815 prefix="$acl_final_prefix"
10816 acl_save_exec_prefix="$exec_prefix"
10817 exec_prefix="$acl_final_exec_prefix"
10819 exec_prefix="$acl_save_exec_prefix"
10820 prefix="$acl_save_prefix"
10822 if test "X$x" = "X-I$additional_includedir"; then
10827 if test -z "$haveit"; then
10828 if test -d "$additional_includedir"; then
10829 INCEXPAT="${INCEXPAT}${INCEXPAT:+ }-I$additional_includedir"
10835 if test -n "$found_la"; then
10836 save_libdir="$libdir"
10837 case "$found_la" in
10838 */* | *\\*) . "$found_la" ;;
10839 *) . "./$found_la" ;;
10841 libdir="$save_libdir"
10842 for dep in $dependency_libs; do
10845 additional_libdir=`echo "X$dep" | sed -e 's/^X-L//'`
10846 if test "X$additional_libdir" != "X/usr/lib"; then
10848 if test "X$additional_libdir" = "X/usr/local/lib"; then
10849 if test -n "$GCC"; then
10851 linux*) haveit=yes;;
10855 if test -z "$haveit"; then
10857 for x in $LDFLAGS $LIBEXPAT; do
10859 acl_save_prefix="$prefix"
10860 prefix="$acl_final_prefix"
10861 acl_save_exec_prefix="$exec_prefix"
10862 exec_prefix="$acl_final_exec_prefix"
10864 exec_prefix="$acl_save_exec_prefix"
10865 prefix="$acl_save_prefix"
10867 if test "X$x" = "X-L$additional_libdir"; then
10872 if test -z "$haveit"; then
10873 if test -d "$additional_libdir"; then
10874 LIBEXPAT="${LIBEXPAT}${LIBEXPAT:+ }-L$additional_libdir"
10878 for x in $LDFLAGS $LTLIBEXPAT; do
10880 acl_save_prefix="$prefix"
10881 prefix="$acl_final_prefix"
10882 acl_save_exec_prefix="$exec_prefix"
10883 exec_prefix="$acl_final_exec_prefix"
10885 exec_prefix="$acl_save_exec_prefix"
10886 prefix="$acl_save_prefix"
10888 if test "X$x" = "X-L$additional_libdir"; then
10893 if test -z "$haveit"; then
10894 if test -d "$additional_libdir"; then
10895 LTLIBEXPAT="${LTLIBEXPAT}${LTLIBEXPAT:+ }-L$additional_libdir"
10902 dir=`echo "X$dep" | sed -e 's/^X-R//'`
10903 if test "$enable_rpath" != no; then
10905 for x in $rpathdirs; do
10906 if test "X$x" = "X$dir"; then
10911 if test -z "$haveit"; then
10912 rpathdirs="$rpathdirs $dir"
10915 for x in $ltrpathdirs; do
10916 if test "X$x" = "X$dir"; then
10921 if test -z "$haveit"; then
10922 ltrpathdirs="$ltrpathdirs $dir"
10927 names_next_round="$names_next_round "`echo "X$dep" | sed -e 's/^X-l//'`
10930 names_next_round="$names_next_round "`echo "X$dep" | sed -e 's,^X.*/,,' -e 's,^lib,,' -e 's,\.la$,,'`
10933 LIBEXPAT="${LIBEXPAT}${LIBEXPAT:+ }$dep"
10934 LTLIBEXPAT="${LTLIBEXPAT}${LTLIBEXPAT:+ }$dep"
10940 LIBEXPAT="${LIBEXPAT}${LIBEXPAT:+ }-l$name"
10941 LTLIBEXPAT="${LTLIBEXPAT}${LTLIBEXPAT:+ }-l$name"
10947 if test "X$rpathdirs" != "X"; then
10948 if test -n "$hardcode_libdir_separator"; then
10950 for found_dir in $rpathdirs; do
10951 alldirs="${alldirs}${alldirs:+$hardcode_libdir_separator}$found_dir"
10953 acl_save_libdir="$libdir"
10955 eval flag=\"$hardcode_libdir_flag_spec\"
10956 libdir="$acl_save_libdir"
10957 LIBEXPAT="${LIBEXPAT}${LIBEXPAT:+ }$flag"
10959 for found_dir in $rpathdirs; do
10960 acl_save_libdir="$libdir"
10961 libdir="$found_dir"
10962 eval flag=\"$hardcode_libdir_flag_spec\"
10963 libdir="$acl_save_libdir"
10964 LIBEXPAT="${LIBEXPAT}${LIBEXPAT:+ }$flag"
10968 if test "X$ltrpathdirs" != "X"; then
10969 for found_dir in $ltrpathdirs; do
10970 LTLIBEXPAT="${LTLIBEXPAT}${LTLIBEXPAT:+ }-R$found_dir"
10975 ac_save_CPPFLAGS="$CPPFLAGS"
10977 for element in $INCEXPAT; do
10979 for x in $CPPFLAGS; do
10981 acl_save_prefix="$prefix"
10982 prefix="$acl_final_prefix"
10983 acl_save_exec_prefix="$exec_prefix"
10984 exec_prefix="$acl_final_exec_prefix"
10986 exec_prefix="$acl_save_exec_prefix"
10987 prefix="$acl_save_prefix"
10989 if test "X$x" = "X$element"; then
10994 if test -z "$haveit"; then
10995 CPPFLAGS="${CPPFLAGS}${CPPFLAGS:+ }$element"
11000 echo "$as_me:$LINENO: checking for libexpat" >&5
11001 echo $ECHO_N "checking for libexpat... $ECHO_C" >&6
11002 if test "${ac_cv_libexpat+set}" = set; then
11003 echo $ECHO_N "(cached) $ECHO_C" >&6
11006 ac_save_LIBS="$LIBS"
11007 LIBS="$LIBS $LIBEXPAT"
11008 cat >conftest.$ac_ext <<_ACEOF
11011 cat confdefs.h >>conftest.$ac_ext
11012 cat >>conftest.$ac_ext <<_ACEOF
11013 /* end confdefs.h. */
11018 XML_Parser p = XML_ParserCreate (0);
11023 rm -f conftest.$ac_objext conftest$ac_exeext
11024 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
11025 (eval $ac_link) 2>conftest.er1
11027 grep -v '^ *+' conftest.er1 >conftest.err
11029 cat conftest.err >&5
11030 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11031 (exit $ac_status); } &&
11032 { ac_try='test -z "$ac_c_werror_flag"
11033 || test ! -s conftest.err'
11034 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11035 (eval $ac_try) 2>&5
11037 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11038 (exit $ac_status); }; } &&
11039 { ac_try='test -s conftest$ac_exeext'
11040 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11041 (eval $ac_try) 2>&5
11043 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11044 (exit $ac_status); }; }; then
11047 echo "$as_me: failed program was:" >&5
11048 sed 's/^/| /' conftest.$ac_ext >&5
11052 rm -f conftest.err conftest.$ac_objext \
11053 conftest$ac_exeext conftest.$ac_ext
11054 LIBS="$ac_save_LIBS"
11057 echo "$as_me:$LINENO: result: $ac_cv_libexpat" >&5
11058 echo "${ECHO_T}$ac_cv_libexpat" >&6
11059 if test "$ac_cv_libexpat" = yes; then
11062 cat >>confdefs.h <<\_ACEOF
11063 #define HAVE_LIBEXPAT 1
11066 echo "$as_me:$LINENO: checking how to link with libexpat" >&5
11067 echo $ECHO_N "checking how to link with libexpat... $ECHO_C" >&6
11068 echo "$as_me:$LINENO: result: $LIBEXPAT" >&5
11069 echo "${ECHO_T}$LIBEXPAT" >&6
11072 CPPFLAGS="$ac_save_CPPFLAGS"
11082 if test "$HAVE_LIBEXPAT" != yes; then
11083 if test "$with_expat" = yes; then
11084 { { echo "$as_me:$LINENO: error: expat is missing or unusable" >&5
11085 echo "$as_me: error: expat is missing or unusable" >&2;}
11086 { (exit 1); exit 1; }; }
11088 { echo "$as_me:$LINENO: WARNING: expat is missing or unusable; some features may be unavailable." >&5
11089 echo "$as_me: WARNING: expat is missing or unusable; some features may be unavailable." >&2;}
11093 LIBS="$LIBS $LIBEXPAT"
11095 for ac_func in XML_StopParser
11097 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
11098 echo "$as_me:$LINENO: checking for $ac_func" >&5
11099 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
11100 if eval "test \"\${$as_ac_var+set}\" = set"; then
11101 echo $ECHO_N "(cached) $ECHO_C" >&6
11103 cat >conftest.$ac_ext <<_ACEOF
11106 cat confdefs.h >>conftest.$ac_ext
11107 cat >>conftest.$ac_ext <<_ACEOF
11108 /* end confdefs.h. */
11109 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
11110 For example, HP-UX 11i <limits.h> declares gettimeofday. */
11111 #define $ac_func innocuous_$ac_func
11113 /* System header to define __stub macros and hopefully few prototypes,
11114 which can conflict with char $ac_func (); below.
11115 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
11116 <limits.h> exists even on freestanding compilers. */
11119 # include <limits.h>
11121 # include <assert.h>
11126 /* Override any gcc2 internal prototype to avoid an error. */
11131 /* We use char because int might match the return type of a gcc2
11132 builtin and then its argument prototype would still apply. */
11134 /* The GNU C library defines this for functions which it implements
11135 to always fail with ENOSYS. Some functions are actually named
11136 something starting with __ and the normal name is an alias. */
11137 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
11140 char (*f) () = $ac_func;
11149 return f != $ac_func;
11154 rm -f conftest.$ac_objext conftest$ac_exeext
11155 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
11156 (eval $ac_link) 2>conftest.er1
11158 grep -v '^ *+' conftest.er1 >conftest.err
11160 cat conftest.err >&5
11161 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11162 (exit $ac_status); } &&
11163 { ac_try='test -z "$ac_c_werror_flag"
11164 || test ! -s conftest.err'
11165 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11166 (eval $ac_try) 2>&5
11168 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11169 (exit $ac_status); }; } &&
11170 { ac_try='test -s conftest$ac_exeext'
11171 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11172 (eval $ac_try) 2>&5
11174 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11175 (exit $ac_status); }; }; then
11176 eval "$as_ac_var=yes"
11178 echo "$as_me: failed program was:" >&5
11179 sed 's/^/| /' conftest.$ac_ext >&5
11181 eval "$as_ac_var=no"
11183 rm -f conftest.err conftest.$ac_objext \
11184 conftest$ac_exeext conftest.$ac_ext
11186 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
11187 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
11188 if test `eval echo '${'$as_ac_var'}'` = yes; then
11189 cat >>confdefs.h <<_ACEOF
11190 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
11200 # ------------------------- #
11201 # Checks for header files. #
11202 # ------------------------- #
11209 ac_header_dirent=no
11210 for ac_hdr in dirent.h sys/ndir.h sys/dir.h ndir.h; do
11211 as_ac_Header=`echo "ac_cv_header_dirent_$ac_hdr" | $as_tr_sh`
11212 echo "$as_me:$LINENO: checking for $ac_hdr that defines DIR" >&5
11213 echo $ECHO_N "checking for $ac_hdr that defines DIR... $ECHO_C" >&6
11214 if eval "test \"\${$as_ac_Header+set}\" = set"; then
11215 echo $ECHO_N "(cached) $ECHO_C" >&6
11217 cat >conftest.$ac_ext <<_ACEOF
11220 cat confdefs.h >>conftest.$ac_ext
11221 cat >>conftest.$ac_ext <<_ACEOF
11222 /* end confdefs.h. */
11223 #include <sys/types.h>
11235 rm -f conftest.$ac_objext
11236 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
11237 (eval $ac_compile) 2>conftest.er1
11239 grep -v '^ *+' conftest.er1 >conftest.err
11241 cat conftest.err >&5
11242 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11243 (exit $ac_status); } &&
11244 { ac_try='test -z "$ac_c_werror_flag"
11245 || test ! -s conftest.err'
11246 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11247 (eval $ac_try) 2>&5
11249 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11250 (exit $ac_status); }; } &&
11251 { ac_try='test -s conftest.$ac_objext'
11252 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11253 (eval $ac_try) 2>&5
11255 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11256 (exit $ac_status); }; }; then
11257 eval "$as_ac_Header=yes"
11259 echo "$as_me: failed program was:" >&5
11260 sed 's/^/| /' conftest.$ac_ext >&5
11262 eval "$as_ac_Header=no"
11264 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
11266 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
11267 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
11268 if test `eval echo '${'$as_ac_Header'}'` = yes; then
11269 cat >>confdefs.h <<_ACEOF
11270 #define `echo "HAVE_$ac_hdr" | $as_tr_cpp` 1
11273 ac_header_dirent=$ac_hdr; break
11277 # Two versions of opendir et al. are in -ldir and -lx on SCO Xenix.
11278 if test $ac_header_dirent = dirent.h; then
11279 echo "$as_me:$LINENO: checking for library containing opendir" >&5
11280 echo $ECHO_N "checking for library containing opendir... $ECHO_C" >&6
11281 if test "${ac_cv_search_opendir+set}" = set; then
11282 echo $ECHO_N "(cached) $ECHO_C" >&6
11284 ac_func_search_save_LIBS=$LIBS
11285 ac_cv_search_opendir=no
11286 cat >conftest.$ac_ext <<_ACEOF
11289 cat confdefs.h >>conftest.$ac_ext
11290 cat >>conftest.$ac_ext <<_ACEOF
11291 /* end confdefs.h. */
11293 /* Override any gcc2 internal prototype to avoid an error. */
11297 /* We use char because int might match the return type of a gcc2
11298 builtin and then its argument prototype would still apply. */
11308 rm -f conftest.$ac_objext conftest$ac_exeext
11309 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
11310 (eval $ac_link) 2>conftest.er1
11312 grep -v '^ *+' conftest.er1 >conftest.err
11314 cat conftest.err >&5
11315 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11316 (exit $ac_status); } &&
11317 { ac_try='test -z "$ac_c_werror_flag"
11318 || test ! -s conftest.err'
11319 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11320 (eval $ac_try) 2>&5
11322 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11323 (exit $ac_status); }; } &&
11324 { ac_try='test -s conftest$ac_exeext'
11325 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11326 (eval $ac_try) 2>&5
11328 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11329 (exit $ac_status); }; }; then
11330 ac_cv_search_opendir="none required"
11332 echo "$as_me: failed program was:" >&5
11333 sed 's/^/| /' conftest.$ac_ext >&5
11336 rm -f conftest.err conftest.$ac_objext \
11337 conftest$ac_exeext conftest.$ac_ext
11338 if test "$ac_cv_search_opendir" = no; then
11339 for ac_lib in dir; do
11340 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
11341 cat >conftest.$ac_ext <<_ACEOF
11344 cat confdefs.h >>conftest.$ac_ext
11345 cat >>conftest.$ac_ext <<_ACEOF
11346 /* end confdefs.h. */
11348 /* Override any gcc2 internal prototype to avoid an error. */
11352 /* We use char because int might match the return type of a gcc2
11353 builtin and then its argument prototype would still apply. */
11363 rm -f conftest.$ac_objext conftest$ac_exeext
11364 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
11365 (eval $ac_link) 2>conftest.er1
11367 grep -v '^ *+' conftest.er1 >conftest.err
11369 cat conftest.err >&5
11370 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11371 (exit $ac_status); } &&
11372 { ac_try='test -z "$ac_c_werror_flag"
11373 || test ! -s conftest.err'
11374 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11375 (eval $ac_try) 2>&5
11377 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11378 (exit $ac_status); }; } &&
11379 { ac_try='test -s conftest$ac_exeext'
11380 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11381 (eval $ac_try) 2>&5
11383 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11384 (exit $ac_status); }; }; then
11385 ac_cv_search_opendir="-l$ac_lib"
11388 echo "$as_me: failed program was:" >&5
11389 sed 's/^/| /' conftest.$ac_ext >&5
11392 rm -f conftest.err conftest.$ac_objext \
11393 conftest$ac_exeext conftest.$ac_ext
11396 LIBS=$ac_func_search_save_LIBS
11398 echo "$as_me:$LINENO: result: $ac_cv_search_opendir" >&5
11399 echo "${ECHO_T}$ac_cv_search_opendir" >&6
11400 if test "$ac_cv_search_opendir" != no; then
11401 test "$ac_cv_search_opendir" = "none required" || LIBS="$ac_cv_search_opendir $LIBS"
11406 echo "$as_me:$LINENO: checking for library containing opendir" >&5
11407 echo $ECHO_N "checking for library containing opendir... $ECHO_C" >&6
11408 if test "${ac_cv_search_opendir+set}" = set; then
11409 echo $ECHO_N "(cached) $ECHO_C" >&6
11411 ac_func_search_save_LIBS=$LIBS
11412 ac_cv_search_opendir=no
11413 cat >conftest.$ac_ext <<_ACEOF
11416 cat confdefs.h >>conftest.$ac_ext
11417 cat >>conftest.$ac_ext <<_ACEOF
11418 /* end confdefs.h. */
11420 /* Override any gcc2 internal prototype to avoid an error. */
11424 /* We use char because int might match the return type of a gcc2
11425 builtin and then its argument prototype would still apply. */
11435 rm -f conftest.$ac_objext conftest$ac_exeext
11436 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
11437 (eval $ac_link) 2>conftest.er1
11439 grep -v '^ *+' conftest.er1 >conftest.err
11441 cat conftest.err >&5
11442 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11443 (exit $ac_status); } &&
11444 { ac_try='test -z "$ac_c_werror_flag"
11445 || test ! -s conftest.err'
11446 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11447 (eval $ac_try) 2>&5
11449 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11450 (exit $ac_status); }; } &&
11451 { ac_try='test -s conftest$ac_exeext'
11452 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11453 (eval $ac_try) 2>&5
11455 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11456 (exit $ac_status); }; }; then
11457 ac_cv_search_opendir="none required"
11459 echo "$as_me: failed program was:" >&5
11460 sed 's/^/| /' conftest.$ac_ext >&5
11463 rm -f conftest.err conftest.$ac_objext \
11464 conftest$ac_exeext conftest.$ac_ext
11465 if test "$ac_cv_search_opendir" = no; then
11466 for ac_lib in x; do
11467 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
11468 cat >conftest.$ac_ext <<_ACEOF
11471 cat confdefs.h >>conftest.$ac_ext
11472 cat >>conftest.$ac_ext <<_ACEOF
11473 /* end confdefs.h. */
11475 /* Override any gcc2 internal prototype to avoid an error. */
11479 /* We use char because int might match the return type of a gcc2
11480 builtin and then its argument prototype would still apply. */
11490 rm -f conftest.$ac_objext conftest$ac_exeext
11491 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
11492 (eval $ac_link) 2>conftest.er1
11494 grep -v '^ *+' conftest.er1 >conftest.err
11496 cat conftest.err >&5
11497 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11498 (exit $ac_status); } &&
11499 { ac_try='test -z "$ac_c_werror_flag"
11500 || test ! -s conftest.err'
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); }; } &&
11506 { ac_try='test -s conftest$ac_exeext'
11507 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11508 (eval $ac_try) 2>&5
11510 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11511 (exit $ac_status); }; }; then
11512 ac_cv_search_opendir="-l$ac_lib"
11515 echo "$as_me: failed program was:" >&5
11516 sed 's/^/| /' conftest.$ac_ext >&5
11519 rm -f conftest.err conftest.$ac_objext \
11520 conftest$ac_exeext conftest.$ac_ext
11523 LIBS=$ac_func_search_save_LIBS
11525 echo "$as_me:$LINENO: result: $ac_cv_search_opendir" >&5
11526 echo "${ECHO_T}$ac_cv_search_opendir" >&6
11527 if test "$ac_cv_search_opendir" != no; then
11528 test "$ac_cv_search_opendir" = "none required" || LIBS="$ac_cv_search_opendir $LIBS"
11534 echo "$as_me:$LINENO: checking whether stat file-mode macros are broken" >&5
11535 echo $ECHO_N "checking whether stat file-mode macros are broken... $ECHO_C" >&6
11536 if test "${ac_cv_header_stat_broken+set}" = set; then
11537 echo $ECHO_N "(cached) $ECHO_C" >&6
11539 cat >conftest.$ac_ext <<_ACEOF
11542 cat confdefs.h >>conftest.$ac_ext
11543 cat >>conftest.$ac_ext <<_ACEOF
11544 /* end confdefs.h. */
11545 #include <sys/types.h>
11546 #include <sys/stat.h>
11548 #if defined(S_ISBLK) && defined(S_IFDIR)
11549 # if S_ISBLK (S_IFDIR)
11554 #if defined(S_ISBLK) && defined(S_IFCHR)
11555 # if S_ISBLK (S_IFCHR)
11560 #if defined(S_ISLNK) && defined(S_IFREG)
11561 # if S_ISLNK (S_IFREG)
11566 #if defined(S_ISSOCK) && defined(S_IFREG)
11567 # if S_ISSOCK (S_IFREG)
11573 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
11574 $EGREP "You lose" >/dev/null 2>&1; then
11575 ac_cv_header_stat_broken=yes
11577 ac_cv_header_stat_broken=no
11582 echo "$as_me:$LINENO: result: $ac_cv_header_stat_broken" >&5
11583 echo "${ECHO_T}$ac_cv_header_stat_broken" >&6
11584 if test $ac_cv_header_stat_broken = yes; then
11586 cat >>confdefs.h <<\_ACEOF
11587 #define STAT_MACROS_BROKEN 1
11592 echo "$as_me:$LINENO: checking for ANSI C header files" >&5
11593 echo $ECHO_N "checking for ANSI C header files... $ECHO_C" >&6
11594 if test "${ac_cv_header_stdc+set}" = set; then
11595 echo $ECHO_N "(cached) $ECHO_C" >&6
11597 cat >conftest.$ac_ext <<_ACEOF
11600 cat confdefs.h >>conftest.$ac_ext
11601 cat >>conftest.$ac_ext <<_ACEOF
11602 /* end confdefs.h. */
11603 #include <stdlib.h>
11604 #include <stdarg.h>
11605 #include <string.h>
11616 rm -f conftest.$ac_objext
11617 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
11618 (eval $ac_compile) 2>conftest.er1
11620 grep -v '^ *+' conftest.er1 >conftest.err
11622 cat conftest.err >&5
11623 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11624 (exit $ac_status); } &&
11625 { ac_try='test -z "$ac_c_werror_flag"
11626 || test ! -s conftest.err'
11627 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11628 (eval $ac_try) 2>&5
11630 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11631 (exit $ac_status); }; } &&
11632 { ac_try='test -s conftest.$ac_objext'
11633 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11634 (eval $ac_try) 2>&5
11636 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11637 (exit $ac_status); }; }; then
11638 ac_cv_header_stdc=yes
11640 echo "$as_me: failed program was:" >&5
11641 sed 's/^/| /' conftest.$ac_ext >&5
11643 ac_cv_header_stdc=no
11645 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
11647 if test $ac_cv_header_stdc = yes; then
11648 # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
11649 cat >conftest.$ac_ext <<_ACEOF
11652 cat confdefs.h >>conftest.$ac_ext
11653 cat >>conftest.$ac_ext <<_ACEOF
11654 /* end confdefs.h. */
11655 #include <string.h>
11658 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
11659 $EGREP "memchr" >/dev/null 2>&1; then
11662 ac_cv_header_stdc=no
11668 if test $ac_cv_header_stdc = yes; then
11669 # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
11670 cat >conftest.$ac_ext <<_ACEOF
11673 cat confdefs.h >>conftest.$ac_ext
11674 cat >>conftest.$ac_ext <<_ACEOF
11675 /* end confdefs.h. */
11676 #include <stdlib.h>
11679 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
11680 $EGREP "free" >/dev/null 2>&1; then
11683 ac_cv_header_stdc=no
11689 if test $ac_cv_header_stdc = yes; then
11690 # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
11691 if test "$cross_compiling" = yes; then
11694 cat >conftest.$ac_ext <<_ACEOF
11697 cat confdefs.h >>conftest.$ac_ext
11698 cat >>conftest.$ac_ext <<_ACEOF
11699 /* end confdefs.h. */
11701 #if ((' ' & 0x0FF) == 0x020)
11702 # define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
11703 # define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
11705 # define ISLOWER(c) \
11706 (('a' <= (c) && (c) <= 'i') \
11707 || ('j' <= (c) && (c) <= 'r') \
11708 || ('s' <= (c) && (c) <= 'z'))
11709 # define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
11712 #define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
11717 for (i = 0; i < 256; i++)
11718 if (XOR (islower (i), ISLOWER (i))
11719 || toupper (i) != TOUPPER (i))
11724 rm -f conftest$ac_exeext
11725 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
11726 (eval $ac_link) 2>&5
11728 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11729 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
11730 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11731 (eval $ac_try) 2>&5
11733 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11734 (exit $ac_status); }; }; then
11737 echo "$as_me: program exited with status $ac_status" >&5
11738 echo "$as_me: failed program was:" >&5
11739 sed 's/^/| /' conftest.$ac_ext >&5
11741 ( exit $ac_status )
11742 ac_cv_header_stdc=no
11744 rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
11748 echo "$as_me:$LINENO: result: $ac_cv_header_stdc" >&5
11749 echo "${ECHO_T}$ac_cv_header_stdc" >&6
11750 if test $ac_cv_header_stdc = yes; then
11752 cat >>confdefs.h <<\_ACEOF
11753 #define STDC_HEADERS 1
11759 for ac_header in nlist.h
11761 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
11762 if eval "test \"\${$as_ac_Header+set}\" = set"; then
11763 echo "$as_me:$LINENO: checking for $ac_header" >&5
11764 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
11765 if eval "test \"\${$as_ac_Header+set}\" = set"; then
11766 echo $ECHO_N "(cached) $ECHO_C" >&6
11768 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
11769 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
11771 # Is the header compilable?
11772 echo "$as_me:$LINENO: checking $ac_header usability" >&5
11773 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
11774 cat >conftest.$ac_ext <<_ACEOF
11777 cat confdefs.h >>conftest.$ac_ext
11778 cat >>conftest.$ac_ext <<_ACEOF
11779 /* end confdefs.h. */
11780 $ac_includes_default
11781 #include <$ac_header>
11783 rm -f conftest.$ac_objext
11784 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
11785 (eval $ac_compile) 2>conftest.er1
11787 grep -v '^ *+' conftest.er1 >conftest.err
11789 cat conftest.err >&5
11790 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11791 (exit $ac_status); } &&
11792 { ac_try='test -z "$ac_c_werror_flag"
11793 || test ! -s conftest.err'
11794 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11795 (eval $ac_try) 2>&5
11797 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11798 (exit $ac_status); }; } &&
11799 { ac_try='test -s conftest.$ac_objext'
11800 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11801 (eval $ac_try) 2>&5
11803 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11804 (exit $ac_status); }; }; then
11805 ac_header_compiler=yes
11807 echo "$as_me: failed program was:" >&5
11808 sed 's/^/| /' conftest.$ac_ext >&5
11810 ac_header_compiler=no
11812 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
11813 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
11814 echo "${ECHO_T}$ac_header_compiler" >&6
11816 # Is the header present?
11817 echo "$as_me:$LINENO: checking $ac_header presence" >&5
11818 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
11819 cat >conftest.$ac_ext <<_ACEOF
11822 cat confdefs.h >>conftest.$ac_ext
11823 cat >>conftest.$ac_ext <<_ACEOF
11824 /* end confdefs.h. */
11825 #include <$ac_header>
11827 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
11828 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
11830 grep -v '^ *+' conftest.er1 >conftest.err
11832 cat conftest.err >&5
11833 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11834 (exit $ac_status); } >/dev/null; then
11835 if test -s conftest.err; then
11836 ac_cpp_err=$ac_c_preproc_warn_flag
11837 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
11844 if test -z "$ac_cpp_err"; then
11845 ac_header_preproc=yes
11847 echo "$as_me: failed program was:" >&5
11848 sed 's/^/| /' conftest.$ac_ext >&5
11850 ac_header_preproc=no
11852 rm -f conftest.err conftest.$ac_ext
11853 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
11854 echo "${ECHO_T}$ac_header_preproc" >&6
11856 # So? What about this header?
11857 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
11859 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
11860 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
11861 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
11862 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
11863 ac_header_preproc=yes
11866 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
11867 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
11868 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
11869 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
11870 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
11871 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
11872 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
11873 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
11874 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
11875 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
11876 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
11877 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
11880 ## ------------------------------------------ ##
11881 ## Report this to the AC_PACKAGE_NAME lists. ##
11882 ## ------------------------------------------ ##
11885 sed "s/^/$as_me: WARNING: /" >&2
11888 echo "$as_me:$LINENO: checking for $ac_header" >&5
11889 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
11890 if eval "test \"\${$as_ac_Header+set}\" = set"; then
11891 echo $ECHO_N "(cached) $ECHO_C" >&6
11893 eval "$as_ac_Header=\$ac_header_preproc"
11895 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
11896 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
11899 if test `eval echo '${'$as_ac_Header'}'` = yes; then
11900 cat >>confdefs.h <<_ACEOF
11901 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
11909 for ac_header in link.h
11911 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
11912 echo "$as_me:$LINENO: checking for $ac_header" >&5
11913 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
11914 if eval "test \"\${$as_ac_Header+set}\" = set"; then
11915 echo $ECHO_N "(cached) $ECHO_C" >&6
11917 cat >conftest.$ac_ext <<_ACEOF
11920 cat confdefs.h >>conftest.$ac_ext
11921 cat >>conftest.$ac_ext <<_ACEOF
11922 /* end confdefs.h. */
11923 #if HAVE_SYS_TYPES_H
11924 # include <sys/types.h>
11927 # include <nlist.h>
11931 #include <$ac_header>
11933 rm -f conftest.$ac_objext
11934 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
11935 (eval $ac_compile) 2>conftest.er1
11937 grep -v '^ *+' conftest.er1 >conftest.err
11939 cat conftest.err >&5
11940 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11941 (exit $ac_status); } &&
11942 { ac_try='test -z "$ac_c_werror_flag"
11943 || test ! -s conftest.err'
11944 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11945 (eval $ac_try) 2>&5
11947 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11948 (exit $ac_status); }; } &&
11949 { ac_try='test -s conftest.$ac_objext'
11950 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11951 (eval $ac_try) 2>&5
11953 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11954 (exit $ac_status); }; }; then
11955 eval "$as_ac_Header=yes"
11957 echo "$as_me: failed program was:" >&5
11958 sed 's/^/| /' conftest.$ac_ext >&5
11960 eval "$as_ac_Header=no"
11962 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
11964 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
11965 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
11966 if test `eval echo '${'$as_ac_Header'}'` = yes; then
11967 cat >>confdefs.h <<_ACEOF
11968 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
11976 for ac_header in machine/reg.h
11978 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
11979 if eval "test \"\${$as_ac_Header+set}\" = set"; then
11980 echo "$as_me:$LINENO: checking for $ac_header" >&5
11981 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
11982 if eval "test \"\${$as_ac_Header+set}\" = set"; then
11983 echo $ECHO_N "(cached) $ECHO_C" >&6
11985 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
11986 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
11988 # Is the header compilable?
11989 echo "$as_me:$LINENO: checking $ac_header usability" >&5
11990 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
11991 cat >conftest.$ac_ext <<_ACEOF
11994 cat confdefs.h >>conftest.$ac_ext
11995 cat >>conftest.$ac_ext <<_ACEOF
11996 /* end confdefs.h. */
11997 $ac_includes_default
11998 #include <$ac_header>
12000 rm -f conftest.$ac_objext
12001 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
12002 (eval $ac_compile) 2>conftest.er1
12004 grep -v '^ *+' conftest.er1 >conftest.err
12006 cat conftest.err >&5
12007 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12008 (exit $ac_status); } &&
12009 { ac_try='test -z "$ac_c_werror_flag"
12010 || test ! -s conftest.err'
12011 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12012 (eval $ac_try) 2>&5
12014 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12015 (exit $ac_status); }; } &&
12016 { ac_try='test -s conftest.$ac_objext'
12017 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12018 (eval $ac_try) 2>&5
12020 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12021 (exit $ac_status); }; }; then
12022 ac_header_compiler=yes
12024 echo "$as_me: failed program was:" >&5
12025 sed 's/^/| /' conftest.$ac_ext >&5
12027 ac_header_compiler=no
12029 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
12030 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
12031 echo "${ECHO_T}$ac_header_compiler" >&6
12033 # Is the header present?
12034 echo "$as_me:$LINENO: checking $ac_header presence" >&5
12035 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
12036 cat >conftest.$ac_ext <<_ACEOF
12039 cat confdefs.h >>conftest.$ac_ext
12040 cat >>conftest.$ac_ext <<_ACEOF
12041 /* end confdefs.h. */
12042 #include <$ac_header>
12044 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
12045 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
12047 grep -v '^ *+' conftest.er1 >conftest.err
12049 cat conftest.err >&5
12050 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12051 (exit $ac_status); } >/dev/null; then
12052 if test -s conftest.err; then
12053 ac_cpp_err=$ac_c_preproc_warn_flag
12054 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
12061 if test -z "$ac_cpp_err"; then
12062 ac_header_preproc=yes
12064 echo "$as_me: failed program was:" >&5
12065 sed 's/^/| /' conftest.$ac_ext >&5
12067 ac_header_preproc=no
12069 rm -f conftest.err conftest.$ac_ext
12070 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
12071 echo "${ECHO_T}$ac_header_preproc" >&6
12073 # So? What about this header?
12074 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
12076 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
12077 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
12078 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
12079 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
12080 ac_header_preproc=yes
12083 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
12084 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
12085 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
12086 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
12087 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
12088 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
12089 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
12090 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
12091 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
12092 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
12093 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
12094 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
12097 ## ------------------------------------------ ##
12098 ## Report this to the AC_PACKAGE_NAME lists. ##
12099 ## ------------------------------------------ ##
12102 sed "s/^/$as_me: WARNING: /" >&2
12105 echo "$as_me:$LINENO: checking for $ac_header" >&5
12106 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
12107 if eval "test \"\${$as_ac_Header+set}\" = set"; then
12108 echo $ECHO_N "(cached) $ECHO_C" >&6
12110 eval "$as_ac_Header=\$ac_header_preproc"
12112 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
12113 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
12116 if test `eval echo '${'$as_ac_Header'}'` = yes; then
12117 cat >>confdefs.h <<_ACEOF
12118 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
12127 for ac_header in poll.h sys/poll.h
12129 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
12130 if eval "test \"\${$as_ac_Header+set}\" = set"; then
12131 echo "$as_me:$LINENO: checking for $ac_header" >&5
12132 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
12133 if eval "test \"\${$as_ac_Header+set}\" = set"; then
12134 echo $ECHO_N "(cached) $ECHO_C" >&6
12136 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
12137 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
12139 # Is the header compilable?
12140 echo "$as_me:$LINENO: checking $ac_header usability" >&5
12141 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
12142 cat >conftest.$ac_ext <<_ACEOF
12145 cat confdefs.h >>conftest.$ac_ext
12146 cat >>conftest.$ac_ext <<_ACEOF
12147 /* end confdefs.h. */
12148 $ac_includes_default
12149 #include <$ac_header>
12151 rm -f conftest.$ac_objext
12152 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
12153 (eval $ac_compile) 2>conftest.er1
12155 grep -v '^ *+' conftest.er1 >conftest.err
12157 cat conftest.err >&5
12158 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12159 (exit $ac_status); } &&
12160 { ac_try='test -z "$ac_c_werror_flag"
12161 || test ! -s conftest.err'
12162 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12163 (eval $ac_try) 2>&5
12165 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12166 (exit $ac_status); }; } &&
12167 { ac_try='test -s conftest.$ac_objext'
12168 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12169 (eval $ac_try) 2>&5
12171 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12172 (exit $ac_status); }; }; then
12173 ac_header_compiler=yes
12175 echo "$as_me: failed program was:" >&5
12176 sed 's/^/| /' conftest.$ac_ext >&5
12178 ac_header_compiler=no
12180 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
12181 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
12182 echo "${ECHO_T}$ac_header_compiler" >&6
12184 # Is the header present?
12185 echo "$as_me:$LINENO: checking $ac_header presence" >&5
12186 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
12187 cat >conftest.$ac_ext <<_ACEOF
12190 cat confdefs.h >>conftest.$ac_ext
12191 cat >>conftest.$ac_ext <<_ACEOF
12192 /* end confdefs.h. */
12193 #include <$ac_header>
12195 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
12196 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
12198 grep -v '^ *+' conftest.er1 >conftest.err
12200 cat conftest.err >&5
12201 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12202 (exit $ac_status); } >/dev/null; then
12203 if test -s conftest.err; then
12204 ac_cpp_err=$ac_c_preproc_warn_flag
12205 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
12212 if test -z "$ac_cpp_err"; then
12213 ac_header_preproc=yes
12215 echo "$as_me: failed program was:" >&5
12216 sed 's/^/| /' conftest.$ac_ext >&5
12218 ac_header_preproc=no
12220 rm -f conftest.err conftest.$ac_ext
12221 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
12222 echo "${ECHO_T}$ac_header_preproc" >&6
12224 # So? What about this header?
12225 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
12227 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
12228 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
12229 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
12230 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
12231 ac_header_preproc=yes
12234 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
12235 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
12236 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
12237 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
12238 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
12239 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
12240 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
12241 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
12242 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
12243 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
12244 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
12245 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
12248 ## ------------------------------------------ ##
12249 ## Report this to the AC_PACKAGE_NAME lists. ##
12250 ## ------------------------------------------ ##
12253 sed "s/^/$as_me: WARNING: /" >&2
12256 echo "$as_me:$LINENO: checking for $ac_header" >&5
12257 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
12258 if eval "test \"\${$as_ac_Header+set}\" = set"; then
12259 echo $ECHO_N "(cached) $ECHO_C" >&6
12261 eval "$as_ac_Header=\$ac_header_preproc"
12263 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
12264 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
12267 if test `eval echo '${'$as_ac_Header'}'` = yes; then
12268 cat >>confdefs.h <<_ACEOF
12269 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
12279 for ac_header in proc_service.h thread_db.h gnu/libc-version.h
12281 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
12282 if eval "test \"\${$as_ac_Header+set}\" = set"; then
12283 echo "$as_me:$LINENO: checking for $ac_header" >&5
12284 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
12285 if eval "test \"\${$as_ac_Header+set}\" = set"; then
12286 echo $ECHO_N "(cached) $ECHO_C" >&6
12288 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
12289 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
12291 # Is the header compilable?
12292 echo "$as_me:$LINENO: checking $ac_header usability" >&5
12293 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
12294 cat >conftest.$ac_ext <<_ACEOF
12297 cat confdefs.h >>conftest.$ac_ext
12298 cat >>conftest.$ac_ext <<_ACEOF
12299 /* end confdefs.h. */
12300 $ac_includes_default
12301 #include <$ac_header>
12303 rm -f conftest.$ac_objext
12304 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
12305 (eval $ac_compile) 2>conftest.er1
12307 grep -v '^ *+' conftest.er1 >conftest.err
12309 cat conftest.err >&5
12310 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12311 (exit $ac_status); } &&
12312 { ac_try='test -z "$ac_c_werror_flag"
12313 || test ! -s conftest.err'
12314 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12315 (eval $ac_try) 2>&5
12317 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12318 (exit $ac_status); }; } &&
12319 { ac_try='test -s conftest.$ac_objext'
12320 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12321 (eval $ac_try) 2>&5
12323 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12324 (exit $ac_status); }; }; then
12325 ac_header_compiler=yes
12327 echo "$as_me: failed program was:" >&5
12328 sed 's/^/| /' conftest.$ac_ext >&5
12330 ac_header_compiler=no
12332 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
12333 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
12334 echo "${ECHO_T}$ac_header_compiler" >&6
12336 # Is the header present?
12337 echo "$as_me:$LINENO: checking $ac_header presence" >&5
12338 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
12339 cat >conftest.$ac_ext <<_ACEOF
12342 cat confdefs.h >>conftest.$ac_ext
12343 cat >>conftest.$ac_ext <<_ACEOF
12344 /* end confdefs.h. */
12345 #include <$ac_header>
12347 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
12348 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
12350 grep -v '^ *+' conftest.er1 >conftest.err
12352 cat conftest.err >&5
12353 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12354 (exit $ac_status); } >/dev/null; then
12355 if test -s conftest.err; then
12356 ac_cpp_err=$ac_c_preproc_warn_flag
12357 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
12364 if test -z "$ac_cpp_err"; then
12365 ac_header_preproc=yes
12367 echo "$as_me: failed program was:" >&5
12368 sed 's/^/| /' conftest.$ac_ext >&5
12370 ac_header_preproc=no
12372 rm -f conftest.err conftest.$ac_ext
12373 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
12374 echo "${ECHO_T}$ac_header_preproc" >&6
12376 # So? What about this header?
12377 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
12379 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
12380 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
12381 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
12382 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
12383 ac_header_preproc=yes
12386 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
12387 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
12388 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
12389 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
12390 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
12391 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
12392 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
12393 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
12394 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
12395 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
12396 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
12397 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
12400 ## ------------------------------------------ ##
12401 ## Report this to the AC_PACKAGE_NAME lists. ##
12402 ## ------------------------------------------ ##
12405 sed "s/^/$as_me: WARNING: /" >&2
12408 echo "$as_me:$LINENO: checking for $ac_header" >&5
12409 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
12410 if eval "test \"\${$as_ac_Header+set}\" = set"; then
12411 echo $ECHO_N "(cached) $ECHO_C" >&6
12413 eval "$as_ac_Header=\$ac_header_preproc"
12415 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
12416 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
12419 if test `eval echo '${'$as_ac_Header'}'` = yes; then
12420 cat >>confdefs.h <<_ACEOF
12421 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
12429 for ac_header in signal.h
12431 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
12432 if eval "test \"\${$as_ac_Header+set}\" = set"; then
12433 echo "$as_me:$LINENO: checking for $ac_header" >&5
12434 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
12435 if eval "test \"\${$as_ac_Header+set}\" = set"; then
12436 echo $ECHO_N "(cached) $ECHO_C" >&6
12438 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
12439 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
12441 # Is the header compilable?
12442 echo "$as_me:$LINENO: checking $ac_header usability" >&5
12443 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
12444 cat >conftest.$ac_ext <<_ACEOF
12447 cat confdefs.h >>conftest.$ac_ext
12448 cat >>conftest.$ac_ext <<_ACEOF
12449 /* end confdefs.h. */
12450 $ac_includes_default
12451 #include <$ac_header>
12453 rm -f conftest.$ac_objext
12454 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
12455 (eval $ac_compile) 2>conftest.er1
12457 grep -v '^ *+' conftest.er1 >conftest.err
12459 cat conftest.err >&5
12460 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12461 (exit $ac_status); } &&
12462 { ac_try='test -z "$ac_c_werror_flag"
12463 || test ! -s conftest.err'
12464 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12465 (eval $ac_try) 2>&5
12467 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12468 (exit $ac_status); }; } &&
12469 { ac_try='test -s conftest.$ac_objext'
12470 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12471 (eval $ac_try) 2>&5
12473 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12474 (exit $ac_status); }; }; then
12475 ac_header_compiler=yes
12477 echo "$as_me: failed program was:" >&5
12478 sed 's/^/| /' conftest.$ac_ext >&5
12480 ac_header_compiler=no
12482 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
12483 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
12484 echo "${ECHO_T}$ac_header_compiler" >&6
12486 # Is the header present?
12487 echo "$as_me:$LINENO: checking $ac_header presence" >&5
12488 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
12489 cat >conftest.$ac_ext <<_ACEOF
12492 cat confdefs.h >>conftest.$ac_ext
12493 cat >>conftest.$ac_ext <<_ACEOF
12494 /* end confdefs.h. */
12495 #include <$ac_header>
12497 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
12498 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
12500 grep -v '^ *+' conftest.er1 >conftest.err
12502 cat conftest.err >&5
12503 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12504 (exit $ac_status); } >/dev/null; then
12505 if test -s conftest.err; then
12506 ac_cpp_err=$ac_c_preproc_warn_flag
12507 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
12514 if test -z "$ac_cpp_err"; then
12515 ac_header_preproc=yes
12517 echo "$as_me: failed program was:" >&5
12518 sed 's/^/| /' conftest.$ac_ext >&5
12520 ac_header_preproc=no
12522 rm -f conftest.err conftest.$ac_ext
12523 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
12524 echo "${ECHO_T}$ac_header_preproc" >&6
12526 # So? What about this header?
12527 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
12529 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
12530 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
12531 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
12532 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
12533 ac_header_preproc=yes
12536 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
12537 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
12538 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
12539 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
12540 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
12541 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
12542 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
12543 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
12544 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
12545 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
12546 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
12547 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
12550 ## ------------------------------------------ ##
12551 ## Report this to the AC_PACKAGE_NAME lists. ##
12552 ## ------------------------------------------ ##
12555 sed "s/^/$as_me: WARNING: /" >&2
12558 echo "$as_me:$LINENO: checking for $ac_header" >&5
12559 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
12560 if eval "test \"\${$as_ac_Header+set}\" = set"; then
12561 echo $ECHO_N "(cached) $ECHO_C" >&6
12563 eval "$as_ac_Header=\$ac_header_preproc"
12565 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
12566 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
12569 if test `eval echo '${'$as_ac_Header'}'` = yes; then
12570 cat >>confdefs.h <<_ACEOF
12571 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
12579 for ac_header in stddef.h
12581 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
12582 if eval "test \"\${$as_ac_Header+set}\" = set"; then
12583 echo "$as_me:$LINENO: checking for $ac_header" >&5
12584 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
12585 if eval "test \"\${$as_ac_Header+set}\" = set"; then
12586 echo $ECHO_N "(cached) $ECHO_C" >&6
12588 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
12589 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
12591 # Is the header compilable?
12592 echo "$as_me:$LINENO: checking $ac_header usability" >&5
12593 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
12594 cat >conftest.$ac_ext <<_ACEOF
12597 cat confdefs.h >>conftest.$ac_ext
12598 cat >>conftest.$ac_ext <<_ACEOF
12599 /* end confdefs.h. */
12600 $ac_includes_default
12601 #include <$ac_header>
12603 rm -f conftest.$ac_objext
12604 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
12605 (eval $ac_compile) 2>conftest.er1
12607 grep -v '^ *+' conftest.er1 >conftest.err
12609 cat conftest.err >&5
12610 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12611 (exit $ac_status); } &&
12612 { ac_try='test -z "$ac_c_werror_flag"
12613 || test ! -s conftest.err'
12614 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12615 (eval $ac_try) 2>&5
12617 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12618 (exit $ac_status); }; } &&
12619 { ac_try='test -s conftest.$ac_objext'
12620 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12621 (eval $ac_try) 2>&5
12623 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12624 (exit $ac_status); }; }; then
12625 ac_header_compiler=yes
12627 echo "$as_me: failed program was:" >&5
12628 sed 's/^/| /' conftest.$ac_ext >&5
12630 ac_header_compiler=no
12632 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
12633 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
12634 echo "${ECHO_T}$ac_header_compiler" >&6
12636 # Is the header present?
12637 echo "$as_me:$LINENO: checking $ac_header presence" >&5
12638 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
12639 cat >conftest.$ac_ext <<_ACEOF
12642 cat confdefs.h >>conftest.$ac_ext
12643 cat >>conftest.$ac_ext <<_ACEOF
12644 /* end confdefs.h. */
12645 #include <$ac_header>
12647 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
12648 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
12650 grep -v '^ *+' conftest.er1 >conftest.err
12652 cat conftest.err >&5
12653 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12654 (exit $ac_status); } >/dev/null; then
12655 if test -s conftest.err; then
12656 ac_cpp_err=$ac_c_preproc_warn_flag
12657 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
12664 if test -z "$ac_cpp_err"; then
12665 ac_header_preproc=yes
12667 echo "$as_me: failed program was:" >&5
12668 sed 's/^/| /' conftest.$ac_ext >&5
12670 ac_header_preproc=no
12672 rm -f conftest.err conftest.$ac_ext
12673 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
12674 echo "${ECHO_T}$ac_header_preproc" >&6
12676 # So? What about this header?
12677 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
12679 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
12680 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
12681 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
12682 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
12683 ac_header_preproc=yes
12686 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
12687 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
12688 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
12689 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
12690 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
12691 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
12692 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
12693 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
12694 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
12695 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
12696 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
12697 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
12700 ## ------------------------------------------ ##
12701 ## Report this to the AC_PACKAGE_NAME lists. ##
12702 ## ------------------------------------------ ##
12705 sed "s/^/$as_me: WARNING: /" >&2
12708 echo "$as_me:$LINENO: checking for $ac_header" >&5
12709 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
12710 if eval "test \"\${$as_ac_Header+set}\" = set"; then
12711 echo $ECHO_N "(cached) $ECHO_C" >&6
12713 eval "$as_ac_Header=\$ac_header_preproc"
12715 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
12716 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
12719 if test `eval echo '${'$as_ac_Header'}'` = yes; then
12720 cat >>confdefs.h <<_ACEOF
12721 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
12729 for ac_header in stdlib.h
12731 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
12732 if eval "test \"\${$as_ac_Header+set}\" = set"; then
12733 echo "$as_me:$LINENO: checking for $ac_header" >&5
12734 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
12735 if eval "test \"\${$as_ac_Header+set}\" = set"; then
12736 echo $ECHO_N "(cached) $ECHO_C" >&6
12738 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
12739 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
12741 # Is the header compilable?
12742 echo "$as_me:$LINENO: checking $ac_header usability" >&5
12743 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
12744 cat >conftest.$ac_ext <<_ACEOF
12747 cat confdefs.h >>conftest.$ac_ext
12748 cat >>conftest.$ac_ext <<_ACEOF
12749 /* end confdefs.h. */
12750 $ac_includes_default
12751 #include <$ac_header>
12753 rm -f conftest.$ac_objext
12754 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
12755 (eval $ac_compile) 2>conftest.er1
12757 grep -v '^ *+' conftest.er1 >conftest.err
12759 cat conftest.err >&5
12760 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12761 (exit $ac_status); } &&
12762 { ac_try='test -z "$ac_c_werror_flag"
12763 || test ! -s conftest.err'
12764 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12765 (eval $ac_try) 2>&5
12767 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12768 (exit $ac_status); }; } &&
12769 { ac_try='test -s conftest.$ac_objext'
12770 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12771 (eval $ac_try) 2>&5
12773 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12774 (exit $ac_status); }; }; then
12775 ac_header_compiler=yes
12777 echo "$as_me: failed program was:" >&5
12778 sed 's/^/| /' conftest.$ac_ext >&5
12780 ac_header_compiler=no
12782 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
12783 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
12784 echo "${ECHO_T}$ac_header_compiler" >&6
12786 # Is the header present?
12787 echo "$as_me:$LINENO: checking $ac_header presence" >&5
12788 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
12789 cat >conftest.$ac_ext <<_ACEOF
12792 cat confdefs.h >>conftest.$ac_ext
12793 cat >>conftest.$ac_ext <<_ACEOF
12794 /* end confdefs.h. */
12795 #include <$ac_header>
12797 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
12798 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
12800 grep -v '^ *+' conftest.er1 >conftest.err
12802 cat conftest.err >&5
12803 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12804 (exit $ac_status); } >/dev/null; then
12805 if test -s conftest.err; then
12806 ac_cpp_err=$ac_c_preproc_warn_flag
12807 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
12814 if test -z "$ac_cpp_err"; then
12815 ac_header_preproc=yes
12817 echo "$as_me: failed program was:" >&5
12818 sed 's/^/| /' conftest.$ac_ext >&5
12820 ac_header_preproc=no
12822 rm -f conftest.err conftest.$ac_ext
12823 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
12824 echo "${ECHO_T}$ac_header_preproc" >&6
12826 # So? What about this header?
12827 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
12829 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
12830 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
12831 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
12832 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
12833 ac_header_preproc=yes
12836 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
12837 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
12838 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
12839 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
12840 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
12841 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
12842 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
12843 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
12844 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
12845 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
12846 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
12847 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
12850 ## ------------------------------------------ ##
12851 ## Report this to the AC_PACKAGE_NAME lists. ##
12852 ## ------------------------------------------ ##
12855 sed "s/^/$as_me: WARNING: /" >&2
12858 echo "$as_me:$LINENO: checking for $ac_header" >&5
12859 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
12860 if eval "test \"\${$as_ac_Header+set}\" = set"; then
12861 echo $ECHO_N "(cached) $ECHO_C" >&6
12863 eval "$as_ac_Header=\$ac_header_preproc"
12865 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
12866 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
12869 if test `eval echo '${'$as_ac_Header'}'` = yes; then
12870 cat >>confdefs.h <<_ACEOF
12871 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
12881 for ac_header in string.h memory.h strings.h
12883 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
12884 if eval "test \"\${$as_ac_Header+set}\" = set"; then
12885 echo "$as_me:$LINENO: checking for $ac_header" >&5
12886 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
12887 if eval "test \"\${$as_ac_Header+set}\" = set"; then
12888 echo $ECHO_N "(cached) $ECHO_C" >&6
12890 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
12891 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
12893 # Is the header compilable?
12894 echo "$as_me:$LINENO: checking $ac_header usability" >&5
12895 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
12896 cat >conftest.$ac_ext <<_ACEOF
12899 cat confdefs.h >>conftest.$ac_ext
12900 cat >>conftest.$ac_ext <<_ACEOF
12901 /* end confdefs.h. */
12902 $ac_includes_default
12903 #include <$ac_header>
12905 rm -f conftest.$ac_objext
12906 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
12907 (eval $ac_compile) 2>conftest.er1
12909 grep -v '^ *+' conftest.er1 >conftest.err
12911 cat conftest.err >&5
12912 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12913 (exit $ac_status); } &&
12914 { ac_try='test -z "$ac_c_werror_flag"
12915 || test ! -s conftest.err'
12916 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12917 (eval $ac_try) 2>&5
12919 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12920 (exit $ac_status); }; } &&
12921 { ac_try='test -s conftest.$ac_objext'
12922 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12923 (eval $ac_try) 2>&5
12925 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12926 (exit $ac_status); }; }; then
12927 ac_header_compiler=yes
12929 echo "$as_me: failed program was:" >&5
12930 sed 's/^/| /' conftest.$ac_ext >&5
12932 ac_header_compiler=no
12934 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
12935 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
12936 echo "${ECHO_T}$ac_header_compiler" >&6
12938 # Is the header present?
12939 echo "$as_me:$LINENO: checking $ac_header presence" >&5
12940 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
12941 cat >conftest.$ac_ext <<_ACEOF
12944 cat confdefs.h >>conftest.$ac_ext
12945 cat >>conftest.$ac_ext <<_ACEOF
12946 /* end confdefs.h. */
12947 #include <$ac_header>
12949 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
12950 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
12952 grep -v '^ *+' conftest.er1 >conftest.err
12954 cat conftest.err >&5
12955 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12956 (exit $ac_status); } >/dev/null; then
12957 if test -s conftest.err; then
12958 ac_cpp_err=$ac_c_preproc_warn_flag
12959 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
12966 if test -z "$ac_cpp_err"; then
12967 ac_header_preproc=yes
12969 echo "$as_me: failed program was:" >&5
12970 sed 's/^/| /' conftest.$ac_ext >&5
12972 ac_header_preproc=no
12974 rm -f conftest.err conftest.$ac_ext
12975 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
12976 echo "${ECHO_T}$ac_header_preproc" >&6
12978 # So? What about this header?
12979 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
12981 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
12982 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
12983 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
12984 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
12985 ac_header_preproc=yes
12988 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
12989 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
12990 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
12991 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
12992 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
12993 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
12994 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
12995 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
12996 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
12997 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
12998 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
12999 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
13002 ## ------------------------------------------ ##
13003 ## Report this to the AC_PACKAGE_NAME lists. ##
13004 ## ------------------------------------------ ##
13007 sed "s/^/$as_me: WARNING: /" >&2
13010 echo "$as_me:$LINENO: checking for $ac_header" >&5
13011 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
13012 if eval "test \"\${$as_ac_Header+set}\" = set"; then
13013 echo $ECHO_N "(cached) $ECHO_C" >&6
13015 eval "$as_ac_Header=\$ac_header_preproc"
13017 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
13018 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
13021 if test `eval echo '${'$as_ac_Header'}'` = yes; then
13022 cat >>confdefs.h <<_ACEOF
13023 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
13031 for ac_header in sys/fault.h
13033 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
13034 if eval "test \"\${$as_ac_Header+set}\" = set"; then
13035 echo "$as_me:$LINENO: checking for $ac_header" >&5
13036 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
13037 if eval "test \"\${$as_ac_Header+set}\" = set"; then
13038 echo $ECHO_N "(cached) $ECHO_C" >&6
13040 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
13041 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
13043 # Is the header compilable?
13044 echo "$as_me:$LINENO: checking $ac_header usability" >&5
13045 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
13046 cat >conftest.$ac_ext <<_ACEOF
13049 cat confdefs.h >>conftest.$ac_ext
13050 cat >>conftest.$ac_ext <<_ACEOF
13051 /* end confdefs.h. */
13052 $ac_includes_default
13053 #include <$ac_header>
13055 rm -f conftest.$ac_objext
13056 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
13057 (eval $ac_compile) 2>conftest.er1
13059 grep -v '^ *+' conftest.er1 >conftest.err
13061 cat conftest.err >&5
13062 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13063 (exit $ac_status); } &&
13064 { ac_try='test -z "$ac_c_werror_flag"
13065 || test ! -s conftest.err'
13066 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13067 (eval $ac_try) 2>&5
13069 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13070 (exit $ac_status); }; } &&
13071 { ac_try='test -s conftest.$ac_objext'
13072 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13073 (eval $ac_try) 2>&5
13075 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13076 (exit $ac_status); }; }; then
13077 ac_header_compiler=yes
13079 echo "$as_me: failed program was:" >&5
13080 sed 's/^/| /' conftest.$ac_ext >&5
13082 ac_header_compiler=no
13084 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
13085 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
13086 echo "${ECHO_T}$ac_header_compiler" >&6
13088 # Is the header present?
13089 echo "$as_me:$LINENO: checking $ac_header presence" >&5
13090 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
13091 cat >conftest.$ac_ext <<_ACEOF
13094 cat confdefs.h >>conftest.$ac_ext
13095 cat >>conftest.$ac_ext <<_ACEOF
13096 /* end confdefs.h. */
13097 #include <$ac_header>
13099 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
13100 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
13102 grep -v '^ *+' conftest.er1 >conftest.err
13104 cat conftest.err >&5
13105 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13106 (exit $ac_status); } >/dev/null; then
13107 if test -s conftest.err; then
13108 ac_cpp_err=$ac_c_preproc_warn_flag
13109 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
13116 if test -z "$ac_cpp_err"; then
13117 ac_header_preproc=yes
13119 echo "$as_me: failed program was:" >&5
13120 sed 's/^/| /' conftest.$ac_ext >&5
13122 ac_header_preproc=no
13124 rm -f conftest.err conftest.$ac_ext
13125 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
13126 echo "${ECHO_T}$ac_header_preproc" >&6
13128 # So? What about this header?
13129 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
13131 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
13132 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
13133 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
13134 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
13135 ac_header_preproc=yes
13138 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
13139 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
13140 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
13141 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
13142 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
13143 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
13144 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
13145 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
13146 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
13147 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
13148 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
13149 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
13152 ## ------------------------------------------ ##
13153 ## Report this to the AC_PACKAGE_NAME lists. ##
13154 ## ------------------------------------------ ##
13157 sed "s/^/$as_me: WARNING: /" >&2
13160 echo "$as_me:$LINENO: checking for $ac_header" >&5
13161 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
13162 if eval "test \"\${$as_ac_Header+set}\" = set"; then
13163 echo $ECHO_N "(cached) $ECHO_C" >&6
13165 eval "$as_ac_Header=\$ac_header_preproc"
13167 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
13168 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
13171 if test `eval echo '${'$as_ac_Header'}'` = yes; then
13172 cat >>confdefs.h <<_ACEOF
13173 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
13181 for ac_header in sys/file.h
13183 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
13184 if eval "test \"\${$as_ac_Header+set}\" = set"; then
13185 echo "$as_me:$LINENO: checking for $ac_header" >&5
13186 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
13187 if eval "test \"\${$as_ac_Header+set}\" = set"; then
13188 echo $ECHO_N "(cached) $ECHO_C" >&6
13190 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
13191 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
13193 # Is the header compilable?
13194 echo "$as_me:$LINENO: checking $ac_header usability" >&5
13195 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
13196 cat >conftest.$ac_ext <<_ACEOF
13199 cat confdefs.h >>conftest.$ac_ext
13200 cat >>conftest.$ac_ext <<_ACEOF
13201 /* end confdefs.h. */
13202 $ac_includes_default
13203 #include <$ac_header>
13205 rm -f conftest.$ac_objext
13206 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
13207 (eval $ac_compile) 2>conftest.er1
13209 grep -v '^ *+' conftest.er1 >conftest.err
13211 cat conftest.err >&5
13212 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13213 (exit $ac_status); } &&
13214 { ac_try='test -z "$ac_c_werror_flag"
13215 || test ! -s conftest.err'
13216 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13217 (eval $ac_try) 2>&5
13219 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13220 (exit $ac_status); }; } &&
13221 { ac_try='test -s conftest.$ac_objext'
13222 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13223 (eval $ac_try) 2>&5
13225 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13226 (exit $ac_status); }; }; then
13227 ac_header_compiler=yes
13229 echo "$as_me: failed program was:" >&5
13230 sed 's/^/| /' conftest.$ac_ext >&5
13232 ac_header_compiler=no
13234 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
13235 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
13236 echo "${ECHO_T}$ac_header_compiler" >&6
13238 # Is the header present?
13239 echo "$as_me:$LINENO: checking $ac_header presence" >&5
13240 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
13241 cat >conftest.$ac_ext <<_ACEOF
13244 cat confdefs.h >>conftest.$ac_ext
13245 cat >>conftest.$ac_ext <<_ACEOF
13246 /* end confdefs.h. */
13247 #include <$ac_header>
13249 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
13250 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
13252 grep -v '^ *+' conftest.er1 >conftest.err
13254 cat conftest.err >&5
13255 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13256 (exit $ac_status); } >/dev/null; then
13257 if test -s conftest.err; then
13258 ac_cpp_err=$ac_c_preproc_warn_flag
13259 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
13266 if test -z "$ac_cpp_err"; then
13267 ac_header_preproc=yes
13269 echo "$as_me: failed program was:" >&5
13270 sed 's/^/| /' conftest.$ac_ext >&5
13272 ac_header_preproc=no
13274 rm -f conftest.err conftest.$ac_ext
13275 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
13276 echo "${ECHO_T}$ac_header_preproc" >&6
13278 # So? What about this header?
13279 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
13281 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
13282 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
13283 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
13284 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
13285 ac_header_preproc=yes
13288 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
13289 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
13290 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
13291 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
13292 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
13293 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
13294 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
13295 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
13296 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
13297 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
13298 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
13299 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
13302 ## ------------------------------------------ ##
13303 ## Report this to the AC_PACKAGE_NAME lists. ##
13304 ## ------------------------------------------ ##
13307 sed "s/^/$as_me: WARNING: /" >&2
13310 echo "$as_me:$LINENO: checking for $ac_header" >&5
13311 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
13312 if eval "test \"\${$as_ac_Header+set}\" = set"; then
13313 echo $ECHO_N "(cached) $ECHO_C" >&6
13315 eval "$as_ac_Header=\$ac_header_preproc"
13317 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
13318 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
13321 if test `eval echo '${'$as_ac_Header'}'` = yes; then
13322 cat >>confdefs.h <<_ACEOF
13323 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
13331 for ac_header in sys/filio.h
13333 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
13334 if eval "test \"\${$as_ac_Header+set}\" = set"; then
13335 echo "$as_me:$LINENO: checking for $ac_header" >&5
13336 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
13337 if eval "test \"\${$as_ac_Header+set}\" = set"; then
13338 echo $ECHO_N "(cached) $ECHO_C" >&6
13340 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
13341 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
13343 # Is the header compilable?
13344 echo "$as_me:$LINENO: checking $ac_header usability" >&5
13345 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
13346 cat >conftest.$ac_ext <<_ACEOF
13349 cat confdefs.h >>conftest.$ac_ext
13350 cat >>conftest.$ac_ext <<_ACEOF
13351 /* end confdefs.h. */
13352 $ac_includes_default
13353 #include <$ac_header>
13355 rm -f conftest.$ac_objext
13356 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
13357 (eval $ac_compile) 2>conftest.er1
13359 grep -v '^ *+' conftest.er1 >conftest.err
13361 cat conftest.err >&5
13362 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13363 (exit $ac_status); } &&
13364 { ac_try='test -z "$ac_c_werror_flag"
13365 || test ! -s conftest.err'
13366 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13367 (eval $ac_try) 2>&5
13369 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13370 (exit $ac_status); }; } &&
13371 { ac_try='test -s conftest.$ac_objext'
13372 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13373 (eval $ac_try) 2>&5
13375 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13376 (exit $ac_status); }; }; then
13377 ac_header_compiler=yes
13379 echo "$as_me: failed program was:" >&5
13380 sed 's/^/| /' conftest.$ac_ext >&5
13382 ac_header_compiler=no
13384 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
13385 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
13386 echo "${ECHO_T}$ac_header_compiler" >&6
13388 # Is the header present?
13389 echo "$as_me:$LINENO: checking $ac_header presence" >&5
13390 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
13391 cat >conftest.$ac_ext <<_ACEOF
13394 cat confdefs.h >>conftest.$ac_ext
13395 cat >>conftest.$ac_ext <<_ACEOF
13396 /* end confdefs.h. */
13397 #include <$ac_header>
13399 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
13400 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
13402 grep -v '^ *+' conftest.er1 >conftest.err
13404 cat conftest.err >&5
13405 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13406 (exit $ac_status); } >/dev/null; then
13407 if test -s conftest.err; then
13408 ac_cpp_err=$ac_c_preproc_warn_flag
13409 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
13416 if test -z "$ac_cpp_err"; then
13417 ac_header_preproc=yes
13419 echo "$as_me: failed program was:" >&5
13420 sed 's/^/| /' conftest.$ac_ext >&5
13422 ac_header_preproc=no
13424 rm -f conftest.err conftest.$ac_ext
13425 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
13426 echo "${ECHO_T}$ac_header_preproc" >&6
13428 # So? What about this header?
13429 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
13431 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
13432 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
13433 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
13434 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
13435 ac_header_preproc=yes
13438 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
13439 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
13440 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
13441 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
13442 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
13443 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
13444 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
13445 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
13446 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
13447 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
13448 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
13449 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
13452 ## ------------------------------------------ ##
13453 ## Report this to the AC_PACKAGE_NAME lists. ##
13454 ## ------------------------------------------ ##
13457 sed "s/^/$as_me: WARNING: /" >&2
13460 echo "$as_me:$LINENO: checking for $ac_header" >&5
13461 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
13462 if eval "test \"\${$as_ac_Header+set}\" = set"; then
13463 echo $ECHO_N "(cached) $ECHO_C" >&6
13465 eval "$as_ac_Header=\$ac_header_preproc"
13467 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
13468 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
13471 if test `eval echo '${'$as_ac_Header'}'` = yes; then
13472 cat >>confdefs.h <<_ACEOF
13473 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
13481 for ac_header in sys/ioctl.h
13483 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
13484 if eval "test \"\${$as_ac_Header+set}\" = set"; then
13485 echo "$as_me:$LINENO: checking for $ac_header" >&5
13486 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
13487 if eval "test \"\${$as_ac_Header+set}\" = set"; then
13488 echo $ECHO_N "(cached) $ECHO_C" >&6
13490 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
13491 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
13493 # Is the header compilable?
13494 echo "$as_me:$LINENO: checking $ac_header usability" >&5
13495 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
13496 cat >conftest.$ac_ext <<_ACEOF
13499 cat confdefs.h >>conftest.$ac_ext
13500 cat >>conftest.$ac_ext <<_ACEOF
13501 /* end confdefs.h. */
13502 $ac_includes_default
13503 #include <$ac_header>
13505 rm -f conftest.$ac_objext
13506 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
13507 (eval $ac_compile) 2>conftest.er1
13509 grep -v '^ *+' conftest.er1 >conftest.err
13511 cat conftest.err >&5
13512 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13513 (exit $ac_status); } &&
13514 { ac_try='test -z "$ac_c_werror_flag"
13515 || test ! -s conftest.err'
13516 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13517 (eval $ac_try) 2>&5
13519 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13520 (exit $ac_status); }; } &&
13521 { ac_try='test -s conftest.$ac_objext'
13522 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13523 (eval $ac_try) 2>&5
13525 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13526 (exit $ac_status); }; }; then
13527 ac_header_compiler=yes
13529 echo "$as_me: failed program was:" >&5
13530 sed 's/^/| /' conftest.$ac_ext >&5
13532 ac_header_compiler=no
13534 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
13535 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
13536 echo "${ECHO_T}$ac_header_compiler" >&6
13538 # Is the header present?
13539 echo "$as_me:$LINENO: checking $ac_header presence" >&5
13540 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
13541 cat >conftest.$ac_ext <<_ACEOF
13544 cat confdefs.h >>conftest.$ac_ext
13545 cat >>conftest.$ac_ext <<_ACEOF
13546 /* end confdefs.h. */
13547 #include <$ac_header>
13549 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
13550 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
13552 grep -v '^ *+' conftest.er1 >conftest.err
13554 cat conftest.err >&5
13555 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13556 (exit $ac_status); } >/dev/null; then
13557 if test -s conftest.err; then
13558 ac_cpp_err=$ac_c_preproc_warn_flag
13559 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
13566 if test -z "$ac_cpp_err"; then
13567 ac_header_preproc=yes
13569 echo "$as_me: failed program was:" >&5
13570 sed 's/^/| /' conftest.$ac_ext >&5
13572 ac_header_preproc=no
13574 rm -f conftest.err conftest.$ac_ext
13575 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
13576 echo "${ECHO_T}$ac_header_preproc" >&6
13578 # So? What about this header?
13579 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
13581 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
13582 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
13583 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
13584 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
13585 ac_header_preproc=yes
13588 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
13589 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
13590 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
13591 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
13592 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
13593 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
13594 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
13595 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
13596 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
13597 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
13598 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
13599 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
13602 ## ------------------------------------------ ##
13603 ## Report this to the AC_PACKAGE_NAME lists. ##
13604 ## ------------------------------------------ ##
13607 sed "s/^/$as_me: WARNING: /" >&2
13610 echo "$as_me:$LINENO: checking for $ac_header" >&5
13611 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
13612 if eval "test \"\${$as_ac_Header+set}\" = set"; then
13613 echo $ECHO_N "(cached) $ECHO_C" >&6
13615 eval "$as_ac_Header=\$ac_header_preproc"
13617 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
13618 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
13621 if test `eval echo '${'$as_ac_Header'}'` = yes; then
13622 cat >>confdefs.h <<_ACEOF
13623 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
13631 for ac_header in sys/param.h
13633 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
13634 if eval "test \"\${$as_ac_Header+set}\" = set"; then
13635 echo "$as_me:$LINENO: checking for $ac_header" >&5
13636 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
13637 if eval "test \"\${$as_ac_Header+set}\" = set"; then
13638 echo $ECHO_N "(cached) $ECHO_C" >&6
13640 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
13641 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
13643 # Is the header compilable?
13644 echo "$as_me:$LINENO: checking $ac_header usability" >&5
13645 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
13646 cat >conftest.$ac_ext <<_ACEOF
13649 cat confdefs.h >>conftest.$ac_ext
13650 cat >>conftest.$ac_ext <<_ACEOF
13651 /* end confdefs.h. */
13652 $ac_includes_default
13653 #include <$ac_header>
13655 rm -f conftest.$ac_objext
13656 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
13657 (eval $ac_compile) 2>conftest.er1
13659 grep -v '^ *+' conftest.er1 >conftest.err
13661 cat conftest.err >&5
13662 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13663 (exit $ac_status); } &&
13664 { ac_try='test -z "$ac_c_werror_flag"
13665 || test ! -s conftest.err'
13666 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13667 (eval $ac_try) 2>&5
13669 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13670 (exit $ac_status); }; } &&
13671 { ac_try='test -s conftest.$ac_objext'
13672 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13673 (eval $ac_try) 2>&5
13675 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13676 (exit $ac_status); }; }; then
13677 ac_header_compiler=yes
13679 echo "$as_me: failed program was:" >&5
13680 sed 's/^/| /' conftest.$ac_ext >&5
13682 ac_header_compiler=no
13684 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
13685 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
13686 echo "${ECHO_T}$ac_header_compiler" >&6
13688 # Is the header present?
13689 echo "$as_me:$LINENO: checking $ac_header presence" >&5
13690 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
13691 cat >conftest.$ac_ext <<_ACEOF
13694 cat confdefs.h >>conftest.$ac_ext
13695 cat >>conftest.$ac_ext <<_ACEOF
13696 /* end confdefs.h. */
13697 #include <$ac_header>
13699 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
13700 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
13702 grep -v '^ *+' conftest.er1 >conftest.err
13704 cat conftest.err >&5
13705 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13706 (exit $ac_status); } >/dev/null; then
13707 if test -s conftest.err; then
13708 ac_cpp_err=$ac_c_preproc_warn_flag
13709 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
13716 if test -z "$ac_cpp_err"; then
13717 ac_header_preproc=yes
13719 echo "$as_me: failed program was:" >&5
13720 sed 's/^/| /' conftest.$ac_ext >&5
13722 ac_header_preproc=no
13724 rm -f conftest.err conftest.$ac_ext
13725 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
13726 echo "${ECHO_T}$ac_header_preproc" >&6
13728 # So? What about this header?
13729 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
13731 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
13732 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
13733 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
13734 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
13735 ac_header_preproc=yes
13738 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
13739 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
13740 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
13741 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
13742 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
13743 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
13744 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
13745 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
13746 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
13747 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
13748 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
13749 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
13752 ## ------------------------------------------ ##
13753 ## Report this to the AC_PACKAGE_NAME lists. ##
13754 ## ------------------------------------------ ##
13757 sed "s/^/$as_me: WARNING: /" >&2
13760 echo "$as_me:$LINENO: checking for $ac_header" >&5
13761 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
13762 if eval "test \"\${$as_ac_Header+set}\" = set"; then
13763 echo $ECHO_N "(cached) $ECHO_C" >&6
13765 eval "$as_ac_Header=\$ac_header_preproc"
13767 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
13768 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
13771 if test `eval echo '${'$as_ac_Header'}'` = yes; then
13772 cat >>confdefs.h <<_ACEOF
13773 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
13781 for ac_header in sys/resource.h
13783 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
13784 if eval "test \"\${$as_ac_Header+set}\" = set"; then
13785 echo "$as_me:$LINENO: checking for $ac_header" >&5
13786 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
13787 if eval "test \"\${$as_ac_Header+set}\" = set"; then
13788 echo $ECHO_N "(cached) $ECHO_C" >&6
13790 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
13791 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
13793 # Is the header compilable?
13794 echo "$as_me:$LINENO: checking $ac_header usability" >&5
13795 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
13796 cat >conftest.$ac_ext <<_ACEOF
13799 cat confdefs.h >>conftest.$ac_ext
13800 cat >>conftest.$ac_ext <<_ACEOF
13801 /* end confdefs.h. */
13802 $ac_includes_default
13803 #include <$ac_header>
13805 rm -f conftest.$ac_objext
13806 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
13807 (eval $ac_compile) 2>conftest.er1
13809 grep -v '^ *+' conftest.er1 >conftest.err
13811 cat conftest.err >&5
13812 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13813 (exit $ac_status); } &&
13814 { ac_try='test -z "$ac_c_werror_flag"
13815 || test ! -s conftest.err'
13816 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13817 (eval $ac_try) 2>&5
13819 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13820 (exit $ac_status); }; } &&
13821 { ac_try='test -s conftest.$ac_objext'
13822 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13823 (eval $ac_try) 2>&5
13825 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13826 (exit $ac_status); }; }; then
13827 ac_header_compiler=yes
13829 echo "$as_me: failed program was:" >&5
13830 sed 's/^/| /' conftest.$ac_ext >&5
13832 ac_header_compiler=no
13834 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
13835 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
13836 echo "${ECHO_T}$ac_header_compiler" >&6
13838 # Is the header present?
13839 echo "$as_me:$LINENO: checking $ac_header presence" >&5
13840 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
13841 cat >conftest.$ac_ext <<_ACEOF
13844 cat confdefs.h >>conftest.$ac_ext
13845 cat >>conftest.$ac_ext <<_ACEOF
13846 /* end confdefs.h. */
13847 #include <$ac_header>
13849 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
13850 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
13852 grep -v '^ *+' conftest.er1 >conftest.err
13854 cat conftest.err >&5
13855 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13856 (exit $ac_status); } >/dev/null; then
13857 if test -s conftest.err; then
13858 ac_cpp_err=$ac_c_preproc_warn_flag
13859 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
13866 if test -z "$ac_cpp_err"; then
13867 ac_header_preproc=yes
13869 echo "$as_me: failed program was:" >&5
13870 sed 's/^/| /' conftest.$ac_ext >&5
13872 ac_header_preproc=no
13874 rm -f conftest.err conftest.$ac_ext
13875 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
13876 echo "${ECHO_T}$ac_header_preproc" >&6
13878 # So? What about this header?
13879 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
13881 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
13882 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
13883 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
13884 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
13885 ac_header_preproc=yes
13888 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
13889 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
13890 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
13891 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
13892 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
13893 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
13894 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
13895 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
13896 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
13897 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
13898 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
13899 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
13902 ## ------------------------------------------ ##
13903 ## Report this to the AC_PACKAGE_NAME lists. ##
13904 ## ------------------------------------------ ##
13907 sed "s/^/$as_me: WARNING: /" >&2
13910 echo "$as_me:$LINENO: checking for $ac_header" >&5
13911 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
13912 if eval "test \"\${$as_ac_Header+set}\" = set"; then
13913 echo $ECHO_N "(cached) $ECHO_C" >&6
13915 eval "$as_ac_Header=\$ac_header_preproc"
13917 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
13918 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
13921 if test `eval echo '${'$as_ac_Header'}'` = yes; then
13922 cat >>confdefs.h <<_ACEOF
13923 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
13931 for ac_header in sys/proc.h
13933 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
13934 echo "$as_me:$LINENO: checking for $ac_header" >&5
13935 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
13936 if eval "test \"\${$as_ac_Header+set}\" = set"; then
13937 echo $ECHO_N "(cached) $ECHO_C" >&6
13939 cat >conftest.$ac_ext <<_ACEOF
13942 cat confdefs.h >>conftest.$ac_ext
13943 cat >>conftest.$ac_ext <<_ACEOF
13944 /* end confdefs.h. */
13945 #if HAVE_SYS_PARAM_H
13946 # include <sys/param.h>
13950 #include <$ac_header>
13952 rm -f conftest.$ac_objext
13953 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
13954 (eval $ac_compile) 2>conftest.er1
13956 grep -v '^ *+' conftest.er1 >conftest.err
13958 cat conftest.err >&5
13959 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13960 (exit $ac_status); } &&
13961 { ac_try='test -z "$ac_c_werror_flag"
13962 || test ! -s conftest.err'
13963 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13964 (eval $ac_try) 2>&5
13966 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13967 (exit $ac_status); }; } &&
13968 { ac_try='test -s conftest.$ac_objext'
13969 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13970 (eval $ac_try) 2>&5
13972 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13973 (exit $ac_status); }; }; then
13974 eval "$as_ac_Header=yes"
13976 echo "$as_me: failed program was:" >&5
13977 sed 's/^/| /' conftest.$ac_ext >&5
13979 eval "$as_ac_Header=no"
13981 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
13983 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
13984 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
13985 if test `eval echo '${'$as_ac_Header'}'` = yes; then
13986 cat >>confdefs.h <<_ACEOF
13987 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
13995 for ac_header in sys/procfs.h
13997 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
13998 if eval "test \"\${$as_ac_Header+set}\" = set"; then
13999 echo "$as_me:$LINENO: checking for $ac_header" >&5
14000 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
14001 if eval "test \"\${$as_ac_Header+set}\" = set"; then
14002 echo $ECHO_N "(cached) $ECHO_C" >&6
14004 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
14005 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
14007 # Is the header compilable?
14008 echo "$as_me:$LINENO: checking $ac_header usability" >&5
14009 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
14010 cat >conftest.$ac_ext <<_ACEOF
14013 cat confdefs.h >>conftest.$ac_ext
14014 cat >>conftest.$ac_ext <<_ACEOF
14015 /* end confdefs.h. */
14016 $ac_includes_default
14017 #include <$ac_header>
14019 rm -f conftest.$ac_objext
14020 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
14021 (eval $ac_compile) 2>conftest.er1
14023 grep -v '^ *+' conftest.er1 >conftest.err
14025 cat conftest.err >&5
14026 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14027 (exit $ac_status); } &&
14028 { ac_try='test -z "$ac_c_werror_flag"
14029 || test ! -s conftest.err'
14030 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14031 (eval $ac_try) 2>&5
14033 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14034 (exit $ac_status); }; } &&
14035 { ac_try='test -s conftest.$ac_objext'
14036 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14037 (eval $ac_try) 2>&5
14039 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14040 (exit $ac_status); }; }; then
14041 ac_header_compiler=yes
14043 echo "$as_me: failed program was:" >&5
14044 sed 's/^/| /' conftest.$ac_ext >&5
14046 ac_header_compiler=no
14048 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
14049 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
14050 echo "${ECHO_T}$ac_header_compiler" >&6
14052 # Is the header present?
14053 echo "$as_me:$LINENO: checking $ac_header presence" >&5
14054 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
14055 cat >conftest.$ac_ext <<_ACEOF
14058 cat confdefs.h >>conftest.$ac_ext
14059 cat >>conftest.$ac_ext <<_ACEOF
14060 /* end confdefs.h. */
14061 #include <$ac_header>
14063 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
14064 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
14066 grep -v '^ *+' conftest.er1 >conftest.err
14068 cat conftest.err >&5
14069 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14070 (exit $ac_status); } >/dev/null; then
14071 if test -s conftest.err; then
14072 ac_cpp_err=$ac_c_preproc_warn_flag
14073 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
14080 if test -z "$ac_cpp_err"; then
14081 ac_header_preproc=yes
14083 echo "$as_me: failed program was:" >&5
14084 sed 's/^/| /' conftest.$ac_ext >&5
14086 ac_header_preproc=no
14088 rm -f conftest.err conftest.$ac_ext
14089 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
14090 echo "${ECHO_T}$ac_header_preproc" >&6
14092 # So? What about this header?
14093 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
14095 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
14096 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
14097 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
14098 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
14099 ac_header_preproc=yes
14102 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
14103 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
14104 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
14105 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
14106 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
14107 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
14108 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
14109 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
14110 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
14111 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
14112 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
14113 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
14116 ## ------------------------------------------ ##
14117 ## Report this to the AC_PACKAGE_NAME lists. ##
14118 ## ------------------------------------------ ##
14121 sed "s/^/$as_me: WARNING: /" >&2
14124 echo "$as_me:$LINENO: checking for $ac_header" >&5
14125 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
14126 if eval "test \"\${$as_ac_Header+set}\" = set"; then
14127 echo $ECHO_N "(cached) $ECHO_C" >&6
14129 eval "$as_ac_Header=\$ac_header_preproc"
14131 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
14132 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
14135 if test `eval echo '${'$as_ac_Header'}'` = yes; then
14136 cat >>confdefs.h <<_ACEOF
14137 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
14146 for ac_header in sys/ptrace.h ptrace.h
14148 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
14149 if eval "test \"\${$as_ac_Header+set}\" = set"; then
14150 echo "$as_me:$LINENO: checking for $ac_header" >&5
14151 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
14152 if eval "test \"\${$as_ac_Header+set}\" = set"; then
14153 echo $ECHO_N "(cached) $ECHO_C" >&6
14155 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
14156 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
14158 # Is the header compilable?
14159 echo "$as_me:$LINENO: checking $ac_header usability" >&5
14160 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
14161 cat >conftest.$ac_ext <<_ACEOF
14164 cat confdefs.h >>conftest.$ac_ext
14165 cat >>conftest.$ac_ext <<_ACEOF
14166 /* end confdefs.h. */
14167 $ac_includes_default
14168 #include <$ac_header>
14170 rm -f conftest.$ac_objext
14171 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
14172 (eval $ac_compile) 2>conftest.er1
14174 grep -v '^ *+' conftest.er1 >conftest.err
14176 cat conftest.err >&5
14177 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14178 (exit $ac_status); } &&
14179 { ac_try='test -z "$ac_c_werror_flag"
14180 || test ! -s conftest.err'
14181 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14182 (eval $ac_try) 2>&5
14184 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14185 (exit $ac_status); }; } &&
14186 { ac_try='test -s conftest.$ac_objext'
14187 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14188 (eval $ac_try) 2>&5
14190 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14191 (exit $ac_status); }; }; then
14192 ac_header_compiler=yes
14194 echo "$as_me: failed program was:" >&5
14195 sed 's/^/| /' conftest.$ac_ext >&5
14197 ac_header_compiler=no
14199 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
14200 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
14201 echo "${ECHO_T}$ac_header_compiler" >&6
14203 # Is the header present?
14204 echo "$as_me:$LINENO: checking $ac_header presence" >&5
14205 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
14206 cat >conftest.$ac_ext <<_ACEOF
14209 cat confdefs.h >>conftest.$ac_ext
14210 cat >>conftest.$ac_ext <<_ACEOF
14211 /* end confdefs.h. */
14212 #include <$ac_header>
14214 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
14215 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
14217 grep -v '^ *+' conftest.er1 >conftest.err
14219 cat conftest.err >&5
14220 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14221 (exit $ac_status); } >/dev/null; then
14222 if test -s conftest.err; then
14223 ac_cpp_err=$ac_c_preproc_warn_flag
14224 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
14231 if test -z "$ac_cpp_err"; then
14232 ac_header_preproc=yes
14234 echo "$as_me: failed program was:" >&5
14235 sed 's/^/| /' conftest.$ac_ext >&5
14237 ac_header_preproc=no
14239 rm -f conftest.err conftest.$ac_ext
14240 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
14241 echo "${ECHO_T}$ac_header_preproc" >&6
14243 # So? What about this header?
14244 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
14246 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
14247 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
14248 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
14249 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
14250 ac_header_preproc=yes
14253 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
14254 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
14255 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
14256 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
14257 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
14258 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
14259 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
14260 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
14261 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
14262 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
14263 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
14264 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
14267 ## ------------------------------------------ ##
14268 ## Report this to the AC_PACKAGE_NAME lists. ##
14269 ## ------------------------------------------ ##
14272 sed "s/^/$as_me: WARNING: /" >&2
14275 echo "$as_me:$LINENO: checking for $ac_header" >&5
14276 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
14277 if eval "test \"\${$as_ac_Header+set}\" = set"; then
14278 echo $ECHO_N "(cached) $ECHO_C" >&6
14280 eval "$as_ac_Header=\$ac_header_preproc"
14282 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
14283 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
14286 if test `eval echo '${'$as_ac_Header'}'` = yes; then
14287 cat >>confdefs.h <<_ACEOF
14288 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
14297 for ac_header in sys/reg.h sys/debugreg.h
14299 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
14300 if eval "test \"\${$as_ac_Header+set}\" = set"; then
14301 echo "$as_me:$LINENO: checking for $ac_header" >&5
14302 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
14303 if eval "test \"\${$as_ac_Header+set}\" = set"; then
14304 echo $ECHO_N "(cached) $ECHO_C" >&6
14306 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
14307 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
14309 # Is the header compilable?
14310 echo "$as_me:$LINENO: checking $ac_header usability" >&5
14311 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
14312 cat >conftest.$ac_ext <<_ACEOF
14315 cat confdefs.h >>conftest.$ac_ext
14316 cat >>conftest.$ac_ext <<_ACEOF
14317 /* end confdefs.h. */
14318 $ac_includes_default
14319 #include <$ac_header>
14321 rm -f conftest.$ac_objext
14322 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
14323 (eval $ac_compile) 2>conftest.er1
14325 grep -v '^ *+' conftest.er1 >conftest.err
14327 cat conftest.err >&5
14328 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14329 (exit $ac_status); } &&
14330 { ac_try='test -z "$ac_c_werror_flag"
14331 || test ! -s conftest.err'
14332 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14333 (eval $ac_try) 2>&5
14335 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14336 (exit $ac_status); }; } &&
14337 { ac_try='test -s conftest.$ac_objext'
14338 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14339 (eval $ac_try) 2>&5
14341 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14342 (exit $ac_status); }; }; then
14343 ac_header_compiler=yes
14345 echo "$as_me: failed program was:" >&5
14346 sed 's/^/| /' conftest.$ac_ext >&5
14348 ac_header_compiler=no
14350 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
14351 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
14352 echo "${ECHO_T}$ac_header_compiler" >&6
14354 # Is the header present?
14355 echo "$as_me:$LINENO: checking $ac_header presence" >&5
14356 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
14357 cat >conftest.$ac_ext <<_ACEOF
14360 cat confdefs.h >>conftest.$ac_ext
14361 cat >>conftest.$ac_ext <<_ACEOF
14362 /* end confdefs.h. */
14363 #include <$ac_header>
14365 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
14366 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
14368 grep -v '^ *+' conftest.er1 >conftest.err
14370 cat conftest.err >&5
14371 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14372 (exit $ac_status); } >/dev/null; then
14373 if test -s conftest.err; then
14374 ac_cpp_err=$ac_c_preproc_warn_flag
14375 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
14382 if test -z "$ac_cpp_err"; then
14383 ac_header_preproc=yes
14385 echo "$as_me: failed program was:" >&5
14386 sed 's/^/| /' conftest.$ac_ext >&5
14388 ac_header_preproc=no
14390 rm -f conftest.err conftest.$ac_ext
14391 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
14392 echo "${ECHO_T}$ac_header_preproc" >&6
14394 # So? What about this header?
14395 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
14397 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
14398 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
14399 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
14400 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
14401 ac_header_preproc=yes
14404 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
14405 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
14406 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
14407 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
14408 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
14409 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
14410 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
14411 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
14412 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
14413 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
14414 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
14415 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
14418 ## ------------------------------------------ ##
14419 ## Report this to the AC_PACKAGE_NAME lists. ##
14420 ## ------------------------------------------ ##
14423 sed "s/^/$as_me: WARNING: /" >&2
14426 echo "$as_me:$LINENO: checking for $ac_header" >&5
14427 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
14428 if eval "test \"\${$as_ac_Header+set}\" = set"; then
14429 echo $ECHO_N "(cached) $ECHO_C" >&6
14431 eval "$as_ac_Header=\$ac_header_preproc"
14433 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
14434 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
14437 if test `eval echo '${'$as_ac_Header'}'` = yes; then
14438 cat >>confdefs.h <<_ACEOF
14439 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
14447 for ac_header in sys/select.h
14449 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
14450 if eval "test \"\${$as_ac_Header+set}\" = set"; then
14451 echo "$as_me:$LINENO: checking for $ac_header" >&5
14452 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
14453 if eval "test \"\${$as_ac_Header+set}\" = set"; then
14454 echo $ECHO_N "(cached) $ECHO_C" >&6
14456 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
14457 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
14459 # Is the header compilable?
14460 echo "$as_me:$LINENO: checking $ac_header usability" >&5
14461 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
14462 cat >conftest.$ac_ext <<_ACEOF
14465 cat confdefs.h >>conftest.$ac_ext
14466 cat >>conftest.$ac_ext <<_ACEOF
14467 /* end confdefs.h. */
14468 $ac_includes_default
14469 #include <$ac_header>
14471 rm -f conftest.$ac_objext
14472 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
14473 (eval $ac_compile) 2>conftest.er1
14475 grep -v '^ *+' conftest.er1 >conftest.err
14477 cat conftest.err >&5
14478 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14479 (exit $ac_status); } &&
14480 { ac_try='test -z "$ac_c_werror_flag"
14481 || test ! -s conftest.err'
14482 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14483 (eval $ac_try) 2>&5
14485 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14486 (exit $ac_status); }; } &&
14487 { ac_try='test -s conftest.$ac_objext'
14488 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14489 (eval $ac_try) 2>&5
14491 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14492 (exit $ac_status); }; }; then
14493 ac_header_compiler=yes
14495 echo "$as_me: failed program was:" >&5
14496 sed 's/^/| /' conftest.$ac_ext >&5
14498 ac_header_compiler=no
14500 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
14501 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
14502 echo "${ECHO_T}$ac_header_compiler" >&6
14504 # Is the header present?
14505 echo "$as_me:$LINENO: checking $ac_header presence" >&5
14506 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
14507 cat >conftest.$ac_ext <<_ACEOF
14510 cat confdefs.h >>conftest.$ac_ext
14511 cat >>conftest.$ac_ext <<_ACEOF
14512 /* end confdefs.h. */
14513 #include <$ac_header>
14515 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
14516 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
14518 grep -v '^ *+' conftest.er1 >conftest.err
14520 cat conftest.err >&5
14521 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14522 (exit $ac_status); } >/dev/null; then
14523 if test -s conftest.err; then
14524 ac_cpp_err=$ac_c_preproc_warn_flag
14525 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
14532 if test -z "$ac_cpp_err"; then
14533 ac_header_preproc=yes
14535 echo "$as_me: failed program was:" >&5
14536 sed 's/^/| /' conftest.$ac_ext >&5
14538 ac_header_preproc=no
14540 rm -f conftest.err conftest.$ac_ext
14541 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
14542 echo "${ECHO_T}$ac_header_preproc" >&6
14544 # So? What about this header?
14545 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
14547 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
14548 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
14549 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
14550 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
14551 ac_header_preproc=yes
14554 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
14555 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
14556 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
14557 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
14558 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
14559 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
14560 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
14561 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
14562 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
14563 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
14564 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
14565 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
14568 ## ------------------------------------------ ##
14569 ## Report this to the AC_PACKAGE_NAME lists. ##
14570 ## ------------------------------------------ ##
14573 sed "s/^/$as_me: WARNING: /" >&2
14576 echo "$as_me:$LINENO: checking for $ac_header" >&5
14577 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
14578 if eval "test \"\${$as_ac_Header+set}\" = set"; then
14579 echo $ECHO_N "(cached) $ECHO_C" >&6
14581 eval "$as_ac_Header=\$ac_header_preproc"
14583 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
14584 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
14587 if test `eval echo '${'$as_ac_Header'}'` = yes; then
14588 cat >>confdefs.h <<_ACEOF
14589 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
14597 for ac_header in sys/syscall.h
14599 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
14600 if eval "test \"\${$as_ac_Header+set}\" = set"; then
14601 echo "$as_me:$LINENO: checking for $ac_header" >&5
14602 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
14603 if eval "test \"\${$as_ac_Header+set}\" = set"; then
14604 echo $ECHO_N "(cached) $ECHO_C" >&6
14606 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
14607 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
14609 # Is the header compilable?
14610 echo "$as_me:$LINENO: checking $ac_header usability" >&5
14611 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
14612 cat >conftest.$ac_ext <<_ACEOF
14615 cat confdefs.h >>conftest.$ac_ext
14616 cat >>conftest.$ac_ext <<_ACEOF
14617 /* end confdefs.h. */
14618 $ac_includes_default
14619 #include <$ac_header>
14621 rm -f conftest.$ac_objext
14622 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
14623 (eval $ac_compile) 2>conftest.er1
14625 grep -v '^ *+' conftest.er1 >conftest.err
14627 cat conftest.err >&5
14628 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14629 (exit $ac_status); } &&
14630 { ac_try='test -z "$ac_c_werror_flag"
14631 || test ! -s conftest.err'
14632 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14633 (eval $ac_try) 2>&5
14635 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14636 (exit $ac_status); }; } &&
14637 { ac_try='test -s conftest.$ac_objext'
14638 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14639 (eval $ac_try) 2>&5
14641 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14642 (exit $ac_status); }; }; then
14643 ac_header_compiler=yes
14645 echo "$as_me: failed program was:" >&5
14646 sed 's/^/| /' conftest.$ac_ext >&5
14648 ac_header_compiler=no
14650 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
14651 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
14652 echo "${ECHO_T}$ac_header_compiler" >&6
14654 # Is the header present?
14655 echo "$as_me:$LINENO: checking $ac_header presence" >&5
14656 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
14657 cat >conftest.$ac_ext <<_ACEOF
14660 cat confdefs.h >>conftest.$ac_ext
14661 cat >>conftest.$ac_ext <<_ACEOF
14662 /* end confdefs.h. */
14663 #include <$ac_header>
14665 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
14666 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
14668 grep -v '^ *+' conftest.er1 >conftest.err
14670 cat conftest.err >&5
14671 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14672 (exit $ac_status); } >/dev/null; then
14673 if test -s conftest.err; then
14674 ac_cpp_err=$ac_c_preproc_warn_flag
14675 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
14682 if test -z "$ac_cpp_err"; then
14683 ac_header_preproc=yes
14685 echo "$as_me: failed program was:" >&5
14686 sed 's/^/| /' conftest.$ac_ext >&5
14688 ac_header_preproc=no
14690 rm -f conftest.err conftest.$ac_ext
14691 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
14692 echo "${ECHO_T}$ac_header_preproc" >&6
14694 # So? What about this header?
14695 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
14697 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
14698 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
14699 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
14700 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
14701 ac_header_preproc=yes
14704 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
14705 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
14706 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
14707 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
14708 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
14709 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
14710 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
14711 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
14712 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
14713 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
14714 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
14715 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
14718 ## ------------------------------------------ ##
14719 ## Report this to the AC_PACKAGE_NAME lists. ##
14720 ## ------------------------------------------ ##
14723 sed "s/^/$as_me: WARNING: /" >&2
14726 echo "$as_me:$LINENO: checking for $ac_header" >&5
14727 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
14728 if eval "test \"\${$as_ac_Header+set}\" = set"; then
14729 echo $ECHO_N "(cached) $ECHO_C" >&6
14731 eval "$as_ac_Header=\$ac_header_preproc"
14733 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
14734 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
14737 if test `eval echo '${'$as_ac_Header'}'` = yes; then
14738 cat >>confdefs.h <<_ACEOF
14739 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
14747 for ac_header in sys/types.h
14749 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
14750 if eval "test \"\${$as_ac_Header+set}\" = set"; then
14751 echo "$as_me:$LINENO: checking for $ac_header" >&5
14752 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
14753 if eval "test \"\${$as_ac_Header+set}\" = set"; then
14754 echo $ECHO_N "(cached) $ECHO_C" >&6
14756 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
14757 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
14759 # Is the header compilable?
14760 echo "$as_me:$LINENO: checking $ac_header usability" >&5
14761 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
14762 cat >conftest.$ac_ext <<_ACEOF
14765 cat confdefs.h >>conftest.$ac_ext
14766 cat >>conftest.$ac_ext <<_ACEOF
14767 /* end confdefs.h. */
14768 $ac_includes_default
14769 #include <$ac_header>
14771 rm -f conftest.$ac_objext
14772 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
14773 (eval $ac_compile) 2>conftest.er1
14775 grep -v '^ *+' conftest.er1 >conftest.err
14777 cat conftest.err >&5
14778 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14779 (exit $ac_status); } &&
14780 { ac_try='test -z "$ac_c_werror_flag"
14781 || test ! -s conftest.err'
14782 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14783 (eval $ac_try) 2>&5
14785 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14786 (exit $ac_status); }; } &&
14787 { ac_try='test -s conftest.$ac_objext'
14788 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14789 (eval $ac_try) 2>&5
14791 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14792 (exit $ac_status); }; }; then
14793 ac_header_compiler=yes
14795 echo "$as_me: failed program was:" >&5
14796 sed 's/^/| /' conftest.$ac_ext >&5
14798 ac_header_compiler=no
14800 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
14801 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
14802 echo "${ECHO_T}$ac_header_compiler" >&6
14804 # Is the header present?
14805 echo "$as_me:$LINENO: checking $ac_header presence" >&5
14806 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
14807 cat >conftest.$ac_ext <<_ACEOF
14810 cat confdefs.h >>conftest.$ac_ext
14811 cat >>conftest.$ac_ext <<_ACEOF
14812 /* end confdefs.h. */
14813 #include <$ac_header>
14815 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
14816 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
14818 grep -v '^ *+' conftest.er1 >conftest.err
14820 cat conftest.err >&5
14821 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14822 (exit $ac_status); } >/dev/null; then
14823 if test -s conftest.err; then
14824 ac_cpp_err=$ac_c_preproc_warn_flag
14825 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
14832 if test -z "$ac_cpp_err"; then
14833 ac_header_preproc=yes
14835 echo "$as_me: failed program was:" >&5
14836 sed 's/^/| /' conftest.$ac_ext >&5
14838 ac_header_preproc=no
14840 rm -f conftest.err conftest.$ac_ext
14841 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
14842 echo "${ECHO_T}$ac_header_preproc" >&6
14844 # So? What about this header?
14845 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
14847 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
14848 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
14849 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
14850 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
14851 ac_header_preproc=yes
14854 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
14855 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
14856 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
14857 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
14858 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
14859 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
14860 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
14861 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
14862 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
14863 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
14864 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
14865 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
14868 ## ------------------------------------------ ##
14869 ## Report this to the AC_PACKAGE_NAME lists. ##
14870 ## ------------------------------------------ ##
14873 sed "s/^/$as_me: WARNING: /" >&2
14876 echo "$as_me:$LINENO: checking for $ac_header" >&5
14877 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
14878 if eval "test \"\${$as_ac_Header+set}\" = set"; then
14879 echo $ECHO_N "(cached) $ECHO_C" >&6
14881 eval "$as_ac_Header=\$ac_header_preproc"
14883 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
14884 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
14887 if test `eval echo '${'$as_ac_Header'}'` = yes; then
14888 cat >>confdefs.h <<_ACEOF
14889 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
14897 for ac_header in sys/user.h
14899 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
14900 echo "$as_me:$LINENO: checking for $ac_header" >&5
14901 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
14902 if eval "test \"\${$as_ac_Header+set}\" = set"; then
14903 echo $ECHO_N "(cached) $ECHO_C" >&6
14905 cat >conftest.$ac_ext <<_ACEOF
14908 cat confdefs.h >>conftest.$ac_ext
14909 cat >>conftest.$ac_ext <<_ACEOF
14910 /* end confdefs.h. */
14911 #if HAVE_SYS_PARAM_H
14912 # include <sys/param.h>
14916 #include <$ac_header>
14918 rm -f conftest.$ac_objext
14919 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
14920 (eval $ac_compile) 2>conftest.er1
14922 grep -v '^ *+' conftest.er1 >conftest.err
14924 cat conftest.err >&5
14925 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14926 (exit $ac_status); } &&
14927 { ac_try='test -z "$ac_c_werror_flag"
14928 || test ! -s conftest.err'
14929 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14930 (eval $ac_try) 2>&5
14932 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14933 (exit $ac_status); }; } &&
14934 { ac_try='test -s conftest.$ac_objext'
14935 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14936 (eval $ac_try) 2>&5
14938 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14939 (exit $ac_status); }; }; then
14940 eval "$as_ac_Header=yes"
14942 echo "$as_me: failed program was:" >&5
14943 sed 's/^/| /' conftest.$ac_ext >&5
14945 eval "$as_ac_Header=no"
14947 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
14949 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
14950 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
14951 if test `eval echo '${'$as_ac_Header'}'` = yes; then
14952 cat >>confdefs.h <<_ACEOF
14953 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
14962 for ac_header in sys/wait.h wait.h
14964 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
14965 if eval "test \"\${$as_ac_Header+set}\" = set"; then
14966 echo "$as_me:$LINENO: checking for $ac_header" >&5
14967 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
14968 if eval "test \"\${$as_ac_Header+set}\" = set"; then
14969 echo $ECHO_N "(cached) $ECHO_C" >&6
14971 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
14972 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
14974 # Is the header compilable?
14975 echo "$as_me:$LINENO: checking $ac_header usability" >&5
14976 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
14977 cat >conftest.$ac_ext <<_ACEOF
14980 cat confdefs.h >>conftest.$ac_ext
14981 cat >>conftest.$ac_ext <<_ACEOF
14982 /* end confdefs.h. */
14983 $ac_includes_default
14984 #include <$ac_header>
14986 rm -f conftest.$ac_objext
14987 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
14988 (eval $ac_compile) 2>conftest.er1
14990 grep -v '^ *+' conftest.er1 >conftest.err
14992 cat conftest.err >&5
14993 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14994 (exit $ac_status); } &&
14995 { ac_try='test -z "$ac_c_werror_flag"
14996 || test ! -s conftest.err'
14997 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14998 (eval $ac_try) 2>&5
15000 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15001 (exit $ac_status); }; } &&
15002 { ac_try='test -s conftest.$ac_objext'
15003 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15004 (eval $ac_try) 2>&5
15006 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15007 (exit $ac_status); }; }; then
15008 ac_header_compiler=yes
15010 echo "$as_me: failed program was:" >&5
15011 sed 's/^/| /' conftest.$ac_ext >&5
15013 ac_header_compiler=no
15015 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
15016 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
15017 echo "${ECHO_T}$ac_header_compiler" >&6
15019 # Is the header present?
15020 echo "$as_me:$LINENO: checking $ac_header presence" >&5
15021 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
15022 cat >conftest.$ac_ext <<_ACEOF
15025 cat confdefs.h >>conftest.$ac_ext
15026 cat >>conftest.$ac_ext <<_ACEOF
15027 /* end confdefs.h. */
15028 #include <$ac_header>
15030 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
15031 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
15033 grep -v '^ *+' conftest.er1 >conftest.err
15035 cat conftest.err >&5
15036 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15037 (exit $ac_status); } >/dev/null; then
15038 if test -s conftest.err; then
15039 ac_cpp_err=$ac_c_preproc_warn_flag
15040 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
15047 if test -z "$ac_cpp_err"; then
15048 ac_header_preproc=yes
15050 echo "$as_me: failed program was:" >&5
15051 sed 's/^/| /' conftest.$ac_ext >&5
15053 ac_header_preproc=no
15055 rm -f conftest.err conftest.$ac_ext
15056 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
15057 echo "${ECHO_T}$ac_header_preproc" >&6
15059 # So? What about this header?
15060 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
15062 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
15063 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
15064 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
15065 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
15066 ac_header_preproc=yes
15069 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
15070 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
15071 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
15072 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
15073 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
15074 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
15075 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
15076 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
15077 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
15078 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
15079 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
15080 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
15083 ## ------------------------------------------ ##
15084 ## Report this to the AC_PACKAGE_NAME lists. ##
15085 ## ------------------------------------------ ##
15088 sed "s/^/$as_me: WARNING: /" >&2
15091 echo "$as_me:$LINENO: checking for $ac_header" >&5
15092 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
15093 if eval "test \"\${$as_ac_Header+set}\" = set"; then
15094 echo $ECHO_N "(cached) $ECHO_C" >&6
15096 eval "$as_ac_Header=\$ac_header_preproc"
15098 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
15099 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
15102 if test `eval echo '${'$as_ac_Header'}'` = yes; then
15103 cat >>confdefs.h <<_ACEOF
15104 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
15114 for ac_header in termios.h termio.h sgtty.h
15116 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
15117 if eval "test \"\${$as_ac_Header+set}\" = set"; then
15118 echo "$as_me:$LINENO: checking for $ac_header" >&5
15119 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
15120 if eval "test \"\${$as_ac_Header+set}\" = set"; then
15121 echo $ECHO_N "(cached) $ECHO_C" >&6
15123 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
15124 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
15126 # Is the header compilable?
15127 echo "$as_me:$LINENO: checking $ac_header usability" >&5
15128 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
15129 cat >conftest.$ac_ext <<_ACEOF
15132 cat confdefs.h >>conftest.$ac_ext
15133 cat >>conftest.$ac_ext <<_ACEOF
15134 /* end confdefs.h. */
15135 $ac_includes_default
15136 #include <$ac_header>
15138 rm -f conftest.$ac_objext
15139 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
15140 (eval $ac_compile) 2>conftest.er1
15142 grep -v '^ *+' conftest.er1 >conftest.err
15144 cat conftest.err >&5
15145 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15146 (exit $ac_status); } &&
15147 { ac_try='test -z "$ac_c_werror_flag"
15148 || test ! -s conftest.err'
15149 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15150 (eval $ac_try) 2>&5
15152 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15153 (exit $ac_status); }; } &&
15154 { ac_try='test -s conftest.$ac_objext'
15155 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15156 (eval $ac_try) 2>&5
15158 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15159 (exit $ac_status); }; }; then
15160 ac_header_compiler=yes
15162 echo "$as_me: failed program was:" >&5
15163 sed 's/^/| /' conftest.$ac_ext >&5
15165 ac_header_compiler=no
15167 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
15168 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
15169 echo "${ECHO_T}$ac_header_compiler" >&6
15171 # Is the header present?
15172 echo "$as_me:$LINENO: checking $ac_header presence" >&5
15173 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
15174 cat >conftest.$ac_ext <<_ACEOF
15177 cat confdefs.h >>conftest.$ac_ext
15178 cat >>conftest.$ac_ext <<_ACEOF
15179 /* end confdefs.h. */
15180 #include <$ac_header>
15182 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
15183 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
15185 grep -v '^ *+' conftest.er1 >conftest.err
15187 cat conftest.err >&5
15188 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15189 (exit $ac_status); } >/dev/null; then
15190 if test -s conftest.err; then
15191 ac_cpp_err=$ac_c_preproc_warn_flag
15192 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
15199 if test -z "$ac_cpp_err"; then
15200 ac_header_preproc=yes
15202 echo "$as_me: failed program was:" >&5
15203 sed 's/^/| /' conftest.$ac_ext >&5
15205 ac_header_preproc=no
15207 rm -f conftest.err conftest.$ac_ext
15208 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
15209 echo "${ECHO_T}$ac_header_preproc" >&6
15211 # So? What about this header?
15212 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
15214 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
15215 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
15216 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
15217 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
15218 ac_header_preproc=yes
15221 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
15222 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
15223 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
15224 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
15225 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
15226 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
15227 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
15228 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
15229 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
15230 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
15231 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
15232 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
15235 ## ------------------------------------------ ##
15236 ## Report this to the AC_PACKAGE_NAME lists. ##
15237 ## ------------------------------------------ ##
15240 sed "s/^/$as_me: WARNING: /" >&2
15243 echo "$as_me:$LINENO: checking for $ac_header" >&5
15244 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
15245 if eval "test \"\${$as_ac_Header+set}\" = set"; then
15246 echo $ECHO_N "(cached) $ECHO_C" >&6
15248 eval "$as_ac_Header=\$ac_header_preproc"
15250 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
15251 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
15254 if test `eval echo '${'$as_ac_Header'}'` = yes; then
15255 cat >>confdefs.h <<_ACEOF
15256 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
15264 for ac_header in unistd.h
15266 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
15267 if eval "test \"\${$as_ac_Header+set}\" = set"; then
15268 echo "$as_me:$LINENO: checking for $ac_header" >&5
15269 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
15270 if eval "test \"\${$as_ac_Header+set}\" = set"; then
15271 echo $ECHO_N "(cached) $ECHO_C" >&6
15273 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
15274 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
15276 # Is the header compilable?
15277 echo "$as_me:$LINENO: checking $ac_header usability" >&5
15278 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
15279 cat >conftest.$ac_ext <<_ACEOF
15282 cat confdefs.h >>conftest.$ac_ext
15283 cat >>conftest.$ac_ext <<_ACEOF
15284 /* end confdefs.h. */
15285 $ac_includes_default
15286 #include <$ac_header>
15288 rm -f conftest.$ac_objext
15289 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
15290 (eval $ac_compile) 2>conftest.er1
15292 grep -v '^ *+' conftest.er1 >conftest.err
15294 cat conftest.err >&5
15295 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15296 (exit $ac_status); } &&
15297 { ac_try='test -z "$ac_c_werror_flag"
15298 || test ! -s conftest.err'
15299 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15300 (eval $ac_try) 2>&5
15302 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15303 (exit $ac_status); }; } &&
15304 { ac_try='test -s conftest.$ac_objext'
15305 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15306 (eval $ac_try) 2>&5
15308 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15309 (exit $ac_status); }; }; then
15310 ac_header_compiler=yes
15312 echo "$as_me: failed program was:" >&5
15313 sed 's/^/| /' conftest.$ac_ext >&5
15315 ac_header_compiler=no
15317 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
15318 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
15319 echo "${ECHO_T}$ac_header_compiler" >&6
15321 # Is the header present?
15322 echo "$as_me:$LINENO: checking $ac_header presence" >&5
15323 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
15324 cat >conftest.$ac_ext <<_ACEOF
15327 cat confdefs.h >>conftest.$ac_ext
15328 cat >>conftest.$ac_ext <<_ACEOF
15329 /* end confdefs.h. */
15330 #include <$ac_header>
15332 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
15333 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
15335 grep -v '^ *+' conftest.er1 >conftest.err
15337 cat conftest.err >&5
15338 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15339 (exit $ac_status); } >/dev/null; then
15340 if test -s conftest.err; then
15341 ac_cpp_err=$ac_c_preproc_warn_flag
15342 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
15349 if test -z "$ac_cpp_err"; then
15350 ac_header_preproc=yes
15352 echo "$as_me: failed program was:" >&5
15353 sed 's/^/| /' conftest.$ac_ext >&5
15355 ac_header_preproc=no
15357 rm -f conftest.err conftest.$ac_ext
15358 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
15359 echo "${ECHO_T}$ac_header_preproc" >&6
15361 # So? What about this header?
15362 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
15364 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
15365 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
15366 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
15367 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
15368 ac_header_preproc=yes
15371 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
15372 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
15373 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
15374 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
15375 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
15376 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
15377 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
15378 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
15379 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
15380 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
15381 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
15382 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
15385 ## ------------------------------------------ ##
15386 ## Report this to the AC_PACKAGE_NAME lists. ##
15387 ## ------------------------------------------ ##
15390 sed "s/^/$as_me: WARNING: /" >&2
15393 echo "$as_me:$LINENO: checking for $ac_header" >&5
15394 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
15395 if eval "test \"\${$as_ac_Header+set}\" = set"; then
15396 echo $ECHO_N "(cached) $ECHO_C" >&6
15398 eval "$as_ac_Header=\$ac_header_preproc"
15400 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
15401 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
15404 if test `eval echo '${'$as_ac_Header'}'` = yes; then
15405 cat >>confdefs.h <<_ACEOF
15406 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
15414 # On Solaris 2.[789], we need to define _MSE_INT_H to avoid a clash
15415 # between <widec.h> and <wchar.h> that would cause AC_CHECK_HEADERS to
15416 # think that we don't have <curses.h> if we're using GCC.
15419 if test "$GCC" = yes; then
15421 cat >>confdefs.h <<\_ACEOF
15422 #define _MSE_INT_H 1
15431 for ac_header in curses.h cursesX.h ncurses.h ncurses/ncurses.h
15433 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
15434 if eval "test \"\${$as_ac_Header+set}\" = set"; then
15435 echo "$as_me:$LINENO: checking for $ac_header" >&5
15436 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
15437 if eval "test \"\${$as_ac_Header+set}\" = set"; then
15438 echo $ECHO_N "(cached) $ECHO_C" >&6
15440 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
15441 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
15443 # Is the header compilable?
15444 echo "$as_me:$LINENO: checking $ac_header usability" >&5
15445 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
15446 cat >conftest.$ac_ext <<_ACEOF
15449 cat confdefs.h >>conftest.$ac_ext
15450 cat >>conftest.$ac_ext <<_ACEOF
15451 /* end confdefs.h. */
15452 $ac_includes_default
15453 #include <$ac_header>
15455 rm -f conftest.$ac_objext
15456 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
15457 (eval $ac_compile) 2>conftest.er1
15459 grep -v '^ *+' conftest.er1 >conftest.err
15461 cat conftest.err >&5
15462 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15463 (exit $ac_status); } &&
15464 { ac_try='test -z "$ac_c_werror_flag"
15465 || test ! -s conftest.err'
15466 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15467 (eval $ac_try) 2>&5
15469 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15470 (exit $ac_status); }; } &&
15471 { ac_try='test -s conftest.$ac_objext'
15472 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15473 (eval $ac_try) 2>&5
15475 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15476 (exit $ac_status); }; }; then
15477 ac_header_compiler=yes
15479 echo "$as_me: failed program was:" >&5
15480 sed 's/^/| /' conftest.$ac_ext >&5
15482 ac_header_compiler=no
15484 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
15485 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
15486 echo "${ECHO_T}$ac_header_compiler" >&6
15488 # Is the header present?
15489 echo "$as_me:$LINENO: checking $ac_header presence" >&5
15490 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
15491 cat >conftest.$ac_ext <<_ACEOF
15494 cat confdefs.h >>conftest.$ac_ext
15495 cat >>conftest.$ac_ext <<_ACEOF
15496 /* end confdefs.h. */
15497 #include <$ac_header>
15499 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
15500 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
15502 grep -v '^ *+' conftest.er1 >conftest.err
15504 cat conftest.err >&5
15505 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15506 (exit $ac_status); } >/dev/null; then
15507 if test -s conftest.err; then
15508 ac_cpp_err=$ac_c_preproc_warn_flag
15509 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
15516 if test -z "$ac_cpp_err"; then
15517 ac_header_preproc=yes
15519 echo "$as_me: failed program was:" >&5
15520 sed 's/^/| /' conftest.$ac_ext >&5
15522 ac_header_preproc=no
15524 rm -f conftest.err conftest.$ac_ext
15525 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
15526 echo "${ECHO_T}$ac_header_preproc" >&6
15528 # So? What about this header?
15529 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
15531 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
15532 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
15533 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
15534 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
15535 ac_header_preproc=yes
15538 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
15539 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
15540 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
15541 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
15542 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
15543 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
15544 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
15545 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
15546 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
15547 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
15548 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
15549 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
15552 ## ------------------------------------------ ##
15553 ## Report this to the AC_PACKAGE_NAME lists. ##
15554 ## ------------------------------------------ ##
15557 sed "s/^/$as_me: WARNING: /" >&2
15560 echo "$as_me:$LINENO: checking for $ac_header" >&5
15561 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
15562 if eval "test \"\${$as_ac_Header+set}\" = set"; then
15563 echo $ECHO_N "(cached) $ECHO_C" >&6
15565 eval "$as_ac_Header=\$ac_header_preproc"
15567 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
15568 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
15571 if test `eval echo '${'$as_ac_Header'}'` = yes; then
15572 cat >>confdefs.h <<_ACEOF
15573 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
15581 for ac_header in ncurses/term.h
15583 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
15584 if eval "test \"\${$as_ac_Header+set}\" = set"; then
15585 echo "$as_me:$LINENO: checking for $ac_header" >&5
15586 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
15587 if eval "test \"\${$as_ac_Header+set}\" = set"; then
15588 echo $ECHO_N "(cached) $ECHO_C" >&6
15590 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
15591 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
15593 # Is the header compilable?
15594 echo "$as_me:$LINENO: checking $ac_header usability" >&5
15595 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
15596 cat >conftest.$ac_ext <<_ACEOF
15599 cat confdefs.h >>conftest.$ac_ext
15600 cat >>conftest.$ac_ext <<_ACEOF
15601 /* end confdefs.h. */
15602 $ac_includes_default
15603 #include <$ac_header>
15605 rm -f conftest.$ac_objext
15606 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
15607 (eval $ac_compile) 2>conftest.er1
15609 grep -v '^ *+' conftest.er1 >conftest.err
15611 cat conftest.err >&5
15612 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15613 (exit $ac_status); } &&
15614 { ac_try='test -z "$ac_c_werror_flag"
15615 || test ! -s conftest.err'
15616 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15617 (eval $ac_try) 2>&5
15619 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15620 (exit $ac_status); }; } &&
15621 { ac_try='test -s conftest.$ac_objext'
15622 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15623 (eval $ac_try) 2>&5
15625 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15626 (exit $ac_status); }; }; then
15627 ac_header_compiler=yes
15629 echo "$as_me: failed program was:" >&5
15630 sed 's/^/| /' conftest.$ac_ext >&5
15632 ac_header_compiler=no
15634 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
15635 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
15636 echo "${ECHO_T}$ac_header_compiler" >&6
15638 # Is the header present?
15639 echo "$as_me:$LINENO: checking $ac_header presence" >&5
15640 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
15641 cat >conftest.$ac_ext <<_ACEOF
15644 cat confdefs.h >>conftest.$ac_ext
15645 cat >>conftest.$ac_ext <<_ACEOF
15646 /* end confdefs.h. */
15647 #include <$ac_header>
15649 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
15650 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
15652 grep -v '^ *+' conftest.er1 >conftest.err
15654 cat conftest.err >&5
15655 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15656 (exit $ac_status); } >/dev/null; then
15657 if test -s conftest.err; then
15658 ac_cpp_err=$ac_c_preproc_warn_flag
15659 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
15666 if test -z "$ac_cpp_err"; then
15667 ac_header_preproc=yes
15669 echo "$as_me: failed program was:" >&5
15670 sed 's/^/| /' conftest.$ac_ext >&5
15672 ac_header_preproc=no
15674 rm -f conftest.err conftest.$ac_ext
15675 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
15676 echo "${ECHO_T}$ac_header_preproc" >&6
15678 # So? What about this header?
15679 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
15681 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
15682 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
15683 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
15684 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
15685 ac_header_preproc=yes
15688 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
15689 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
15690 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
15691 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
15692 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
15693 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
15694 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
15695 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
15696 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
15697 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
15698 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
15699 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
15702 ## ------------------------------------------ ##
15703 ## Report this to the AC_PACKAGE_NAME lists. ##
15704 ## ------------------------------------------ ##
15707 sed "s/^/$as_me: WARNING: /" >&2
15710 echo "$as_me:$LINENO: checking for $ac_header" >&5
15711 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
15712 if eval "test \"\${$as_ac_Header+set}\" = set"; then
15713 echo $ECHO_N "(cached) $ECHO_C" >&6
15715 eval "$as_ac_Header=\$ac_header_preproc"
15717 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
15718 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
15721 if test `eval echo '${'$as_ac_Header'}'` = yes; then
15722 cat >>confdefs.h <<_ACEOF
15723 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
15731 for ac_header in term.h
15733 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
15734 echo "$as_me:$LINENO: checking for $ac_header" >&5
15735 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
15736 if eval "test \"\${$as_ac_Header+set}\" = set"; then
15737 echo $ECHO_N "(cached) $ECHO_C" >&6
15739 cat >conftest.$ac_ext <<_ACEOF
15742 cat confdefs.h >>conftest.$ac_ext
15743 cat >>conftest.$ac_ext <<_ACEOF
15744 /* end confdefs.h. */
15746 # include <curses.h>
15750 #include <$ac_header>
15752 rm -f conftest.$ac_objext
15753 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
15754 (eval $ac_compile) 2>conftest.er1
15756 grep -v '^ *+' conftest.er1 >conftest.err
15758 cat conftest.err >&5
15759 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15760 (exit $ac_status); } &&
15761 { ac_try='test -z "$ac_c_werror_flag"
15762 || test ! -s conftest.err'
15763 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15764 (eval $ac_try) 2>&5
15766 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15767 (exit $ac_status); }; } &&
15768 { ac_try='test -s conftest.$ac_objext'
15769 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15770 (eval $ac_try) 2>&5
15772 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15773 (exit $ac_status); }; }; then
15774 eval "$as_ac_Header=yes"
15776 echo "$as_me: failed program was:" >&5
15777 sed 's/^/| /' conftest.$ac_ext >&5
15779 eval "$as_ac_Header=no"
15781 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
15783 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
15784 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
15785 if test `eval echo '${'$as_ac_Header'}'` = yes; then
15786 cat >>confdefs.h <<_ACEOF
15787 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
15795 # Check for HP/UX 64-bit shared library support
15797 for ac_header in elf_hp.h
15799 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
15800 if eval "test \"\${$as_ac_Header+set}\" = set"; then
15801 echo "$as_me:$LINENO: checking for $ac_header" >&5
15802 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
15803 if eval "test \"\${$as_ac_Header+set}\" = set"; then
15804 echo $ECHO_N "(cached) $ECHO_C" >&6
15806 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
15807 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
15809 # Is the header compilable?
15810 echo "$as_me:$LINENO: checking $ac_header usability" >&5
15811 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
15812 cat >conftest.$ac_ext <<_ACEOF
15815 cat confdefs.h >>conftest.$ac_ext
15816 cat >>conftest.$ac_ext <<_ACEOF
15817 /* end confdefs.h. */
15818 $ac_includes_default
15819 #include <$ac_header>
15821 rm -f conftest.$ac_objext
15822 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
15823 (eval $ac_compile) 2>conftest.er1
15825 grep -v '^ *+' conftest.er1 >conftest.err
15827 cat conftest.err >&5
15828 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15829 (exit $ac_status); } &&
15830 { ac_try='test -z "$ac_c_werror_flag"
15831 || test ! -s conftest.err'
15832 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15833 (eval $ac_try) 2>&5
15835 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15836 (exit $ac_status); }; } &&
15837 { ac_try='test -s conftest.$ac_objext'
15838 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15839 (eval $ac_try) 2>&5
15841 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15842 (exit $ac_status); }; }; then
15843 ac_header_compiler=yes
15845 echo "$as_me: failed program was:" >&5
15846 sed 's/^/| /' conftest.$ac_ext >&5
15848 ac_header_compiler=no
15850 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
15851 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
15852 echo "${ECHO_T}$ac_header_compiler" >&6
15854 # Is the header present?
15855 echo "$as_me:$LINENO: checking $ac_header presence" >&5
15856 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
15857 cat >conftest.$ac_ext <<_ACEOF
15860 cat confdefs.h >>conftest.$ac_ext
15861 cat >>conftest.$ac_ext <<_ACEOF
15862 /* end confdefs.h. */
15863 #include <$ac_header>
15865 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
15866 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
15868 grep -v '^ *+' conftest.er1 >conftest.err
15870 cat conftest.err >&5
15871 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15872 (exit $ac_status); } >/dev/null; then
15873 if test -s conftest.err; then
15874 ac_cpp_err=$ac_c_preproc_warn_flag
15875 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
15882 if test -z "$ac_cpp_err"; then
15883 ac_header_preproc=yes
15885 echo "$as_me: failed program was:" >&5
15886 sed 's/^/| /' conftest.$ac_ext >&5
15888 ac_header_preproc=no
15890 rm -f conftest.err conftest.$ac_ext
15891 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
15892 echo "${ECHO_T}$ac_header_preproc" >&6
15894 # So? What about this header?
15895 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
15897 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
15898 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
15899 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
15900 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
15901 ac_header_preproc=yes
15904 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
15905 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
15906 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
15907 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
15908 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
15909 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
15910 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
15911 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
15912 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
15913 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
15914 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
15915 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
15918 ## ------------------------------------------ ##
15919 ## Report this to the AC_PACKAGE_NAME lists. ##
15920 ## ------------------------------------------ ##
15923 sed "s/^/$as_me: WARNING: /" >&2
15926 echo "$as_me:$LINENO: checking for $ac_header" >&5
15927 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
15928 if eval "test \"\${$as_ac_Header+set}\" = set"; then
15929 echo $ECHO_N "(cached) $ECHO_C" >&6
15931 eval "$as_ac_Header=\$ac_header_preproc"
15933 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
15934 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
15937 if test `eval echo '${'$as_ac_Header'}'` = yes; then
15938 cat >>confdefs.h <<_ACEOF
15939 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
15947 # FIXME: kettenis/20030102: In most cases we include these
15948 # unconditionally, so what's the point in checking these?
15951 for ac_header in ctype.h time.h
15953 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
15954 if eval "test \"\${$as_ac_Header+set}\" = set"; then
15955 echo "$as_me:$LINENO: checking for $ac_header" >&5
15956 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
15957 if eval "test \"\${$as_ac_Header+set}\" = set"; then
15958 echo $ECHO_N "(cached) $ECHO_C" >&6
15960 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
15961 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
15963 # Is the header compilable?
15964 echo "$as_me:$LINENO: checking $ac_header usability" >&5
15965 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
15966 cat >conftest.$ac_ext <<_ACEOF
15969 cat confdefs.h >>conftest.$ac_ext
15970 cat >>conftest.$ac_ext <<_ACEOF
15971 /* end confdefs.h. */
15972 $ac_includes_default
15973 #include <$ac_header>
15975 rm -f conftest.$ac_objext
15976 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
15977 (eval $ac_compile) 2>conftest.er1
15979 grep -v '^ *+' conftest.er1 >conftest.err
15981 cat conftest.err >&5
15982 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15983 (exit $ac_status); } &&
15984 { ac_try='test -z "$ac_c_werror_flag"
15985 || test ! -s conftest.err'
15986 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15987 (eval $ac_try) 2>&5
15989 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15990 (exit $ac_status); }; } &&
15991 { ac_try='test -s conftest.$ac_objext'
15992 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15993 (eval $ac_try) 2>&5
15995 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15996 (exit $ac_status); }; }; then
15997 ac_header_compiler=yes
15999 echo "$as_me: failed program was:" >&5
16000 sed 's/^/| /' conftest.$ac_ext >&5
16002 ac_header_compiler=no
16004 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
16005 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
16006 echo "${ECHO_T}$ac_header_compiler" >&6
16008 # Is the header present?
16009 echo "$as_me:$LINENO: checking $ac_header presence" >&5
16010 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
16011 cat >conftest.$ac_ext <<_ACEOF
16014 cat confdefs.h >>conftest.$ac_ext
16015 cat >>conftest.$ac_ext <<_ACEOF
16016 /* end confdefs.h. */
16017 #include <$ac_header>
16019 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
16020 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
16022 grep -v '^ *+' conftest.er1 >conftest.err
16024 cat conftest.err >&5
16025 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16026 (exit $ac_status); } >/dev/null; then
16027 if test -s conftest.err; then
16028 ac_cpp_err=$ac_c_preproc_warn_flag
16029 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
16036 if test -z "$ac_cpp_err"; then
16037 ac_header_preproc=yes
16039 echo "$as_me: failed program was:" >&5
16040 sed 's/^/| /' conftest.$ac_ext >&5
16042 ac_header_preproc=no
16044 rm -f conftest.err conftest.$ac_ext
16045 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
16046 echo "${ECHO_T}$ac_header_preproc" >&6
16048 # So? What about this header?
16049 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
16051 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
16052 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
16053 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
16054 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
16055 ac_header_preproc=yes
16058 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
16059 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
16060 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
16061 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
16062 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
16063 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
16064 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
16065 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
16066 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
16067 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
16068 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
16069 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
16072 ## ------------------------------------------ ##
16073 ## Report this to the AC_PACKAGE_NAME lists. ##
16074 ## ------------------------------------------ ##
16077 sed "s/^/$as_me: WARNING: /" >&2
16080 echo "$as_me:$LINENO: checking for $ac_header" >&5
16081 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
16082 if eval "test \"\${$as_ac_Header+set}\" = set"; then
16083 echo $ECHO_N "(cached) $ECHO_C" >&6
16085 eval "$as_ac_Header=\$ac_header_preproc"
16087 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
16088 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
16091 if test `eval echo '${'$as_ac_Header'}'` = yes; then
16092 cat >>confdefs.h <<_ACEOF
16093 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
16101 # ------------------------- #
16102 # Checks for declarations. #
16103 # ------------------------- #
16105 echo "$as_me:$LINENO: checking whether free is declared" >&5
16106 echo $ECHO_N "checking whether free is declared... $ECHO_C" >&6
16107 if test "${ac_cv_have_decl_free+set}" = set; then
16108 echo $ECHO_N "(cached) $ECHO_C" >&6
16110 cat >conftest.$ac_ext <<_ACEOF
16113 cat confdefs.h >>conftest.$ac_ext
16114 cat >>conftest.$ac_ext <<_ACEOF
16115 /* end confdefs.h. */
16116 $ac_includes_default
16121 char *p = (char *) free;
16128 rm -f conftest.$ac_objext
16129 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
16130 (eval $ac_compile) 2>conftest.er1
16132 grep -v '^ *+' conftest.er1 >conftest.err
16134 cat conftest.err >&5
16135 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16136 (exit $ac_status); } &&
16137 { ac_try='test -z "$ac_c_werror_flag"
16138 || test ! -s conftest.err'
16139 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16140 (eval $ac_try) 2>&5
16142 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16143 (exit $ac_status); }; } &&
16144 { ac_try='test -s conftest.$ac_objext'
16145 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16146 (eval $ac_try) 2>&5
16148 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16149 (exit $ac_status); }; }; then
16150 ac_cv_have_decl_free=yes
16152 echo "$as_me: failed program was:" >&5
16153 sed 's/^/| /' conftest.$ac_ext >&5
16155 ac_cv_have_decl_free=no
16157 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
16159 echo "$as_me:$LINENO: result: $ac_cv_have_decl_free" >&5
16160 echo "${ECHO_T}$ac_cv_have_decl_free" >&6
16161 if test $ac_cv_have_decl_free = yes; then
16163 cat >>confdefs.h <<_ACEOF
16164 #define HAVE_DECL_FREE 1
16169 cat >>confdefs.h <<_ACEOF
16170 #define HAVE_DECL_FREE 0
16175 echo "$as_me:$LINENO: checking whether malloc is declared" >&5
16176 echo $ECHO_N "checking whether malloc is declared... $ECHO_C" >&6
16177 if test "${ac_cv_have_decl_malloc+set}" = set; then
16178 echo $ECHO_N "(cached) $ECHO_C" >&6
16180 cat >conftest.$ac_ext <<_ACEOF
16183 cat confdefs.h >>conftest.$ac_ext
16184 cat >>conftest.$ac_ext <<_ACEOF
16185 /* end confdefs.h. */
16186 $ac_includes_default
16191 char *p = (char *) malloc;
16198 rm -f conftest.$ac_objext
16199 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
16200 (eval $ac_compile) 2>conftest.er1
16202 grep -v '^ *+' conftest.er1 >conftest.err
16204 cat conftest.err >&5
16205 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16206 (exit $ac_status); } &&
16207 { ac_try='test -z "$ac_c_werror_flag"
16208 || test ! -s conftest.err'
16209 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16210 (eval $ac_try) 2>&5
16212 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16213 (exit $ac_status); }; } &&
16214 { ac_try='test -s conftest.$ac_objext'
16215 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16216 (eval $ac_try) 2>&5
16218 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16219 (exit $ac_status); }; }; then
16220 ac_cv_have_decl_malloc=yes
16222 echo "$as_me: failed program was:" >&5
16223 sed 's/^/| /' conftest.$ac_ext >&5
16225 ac_cv_have_decl_malloc=no
16227 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
16229 echo "$as_me:$LINENO: result: $ac_cv_have_decl_malloc" >&5
16230 echo "${ECHO_T}$ac_cv_have_decl_malloc" >&6
16231 if test $ac_cv_have_decl_malloc = yes; then
16233 cat >>confdefs.h <<_ACEOF
16234 #define HAVE_DECL_MALLOC 1
16239 cat >>confdefs.h <<_ACEOF
16240 #define HAVE_DECL_MALLOC 0
16245 echo "$as_me:$LINENO: checking whether realloc is declared" >&5
16246 echo $ECHO_N "checking whether realloc is declared... $ECHO_C" >&6
16247 if test "${ac_cv_have_decl_realloc+set}" = set; then
16248 echo $ECHO_N "(cached) $ECHO_C" >&6
16250 cat >conftest.$ac_ext <<_ACEOF
16253 cat confdefs.h >>conftest.$ac_ext
16254 cat >>conftest.$ac_ext <<_ACEOF
16255 /* end confdefs.h. */
16256 $ac_includes_default
16261 char *p = (char *) realloc;
16268 rm -f conftest.$ac_objext
16269 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
16270 (eval $ac_compile) 2>conftest.er1
16272 grep -v '^ *+' conftest.er1 >conftest.err
16274 cat conftest.err >&5
16275 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16276 (exit $ac_status); } &&
16277 { ac_try='test -z "$ac_c_werror_flag"
16278 || test ! -s conftest.err'
16279 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16280 (eval $ac_try) 2>&5
16282 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16283 (exit $ac_status); }; } &&
16284 { ac_try='test -s conftest.$ac_objext'
16285 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16286 (eval $ac_try) 2>&5
16288 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16289 (exit $ac_status); }; }; then
16290 ac_cv_have_decl_realloc=yes
16292 echo "$as_me: failed program was:" >&5
16293 sed 's/^/| /' conftest.$ac_ext >&5
16295 ac_cv_have_decl_realloc=no
16297 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
16299 echo "$as_me:$LINENO: result: $ac_cv_have_decl_realloc" >&5
16300 echo "${ECHO_T}$ac_cv_have_decl_realloc" >&6
16301 if test $ac_cv_have_decl_realloc = yes; then
16303 cat >>confdefs.h <<_ACEOF
16304 #define HAVE_DECL_REALLOC 1
16309 cat >>confdefs.h <<_ACEOF
16310 #define HAVE_DECL_REALLOC 0
16317 echo "$as_me:$LINENO: checking whether strerror is declared" >&5
16318 echo $ECHO_N "checking whether strerror is declared... $ECHO_C" >&6
16319 if test "${ac_cv_have_decl_strerror+set}" = set; then
16320 echo $ECHO_N "(cached) $ECHO_C" >&6
16322 cat >conftest.$ac_ext <<_ACEOF
16325 cat confdefs.h >>conftest.$ac_ext
16326 cat >>conftest.$ac_ext <<_ACEOF
16327 /* end confdefs.h. */
16328 $ac_includes_default
16333 char *p = (char *) strerror;
16340 rm -f conftest.$ac_objext
16341 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
16342 (eval $ac_compile) 2>conftest.er1
16344 grep -v '^ *+' conftest.er1 >conftest.err
16346 cat conftest.err >&5
16347 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16348 (exit $ac_status); } &&
16349 { ac_try='test -z "$ac_c_werror_flag"
16350 || test ! -s conftest.err'
16351 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16352 (eval $ac_try) 2>&5
16354 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16355 (exit $ac_status); }; } &&
16356 { ac_try='test -s conftest.$ac_objext'
16357 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16358 (eval $ac_try) 2>&5
16360 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16361 (exit $ac_status); }; }; then
16362 ac_cv_have_decl_strerror=yes
16364 echo "$as_me: failed program was:" >&5
16365 sed 's/^/| /' conftest.$ac_ext >&5
16367 ac_cv_have_decl_strerror=no
16369 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
16371 echo "$as_me:$LINENO: result: $ac_cv_have_decl_strerror" >&5
16372 echo "${ECHO_T}$ac_cv_have_decl_strerror" >&6
16373 if test $ac_cv_have_decl_strerror = yes; then
16375 cat >>confdefs.h <<_ACEOF
16376 #define HAVE_DECL_STRERROR 1
16381 cat >>confdefs.h <<_ACEOF
16382 #define HAVE_DECL_STRERROR 0
16387 echo "$as_me:$LINENO: checking whether strstr is declared" >&5
16388 echo $ECHO_N "checking whether strstr is declared... $ECHO_C" >&6
16389 if test "${ac_cv_have_decl_strstr+set}" = set; then
16390 echo $ECHO_N "(cached) $ECHO_C" >&6
16392 cat >conftest.$ac_ext <<_ACEOF
16395 cat confdefs.h >>conftest.$ac_ext
16396 cat >>conftest.$ac_ext <<_ACEOF
16397 /* end confdefs.h. */
16398 $ac_includes_default
16403 char *p = (char *) strstr;
16410 rm -f conftest.$ac_objext
16411 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
16412 (eval $ac_compile) 2>conftest.er1
16414 grep -v '^ *+' conftest.er1 >conftest.err
16416 cat conftest.err >&5
16417 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16418 (exit $ac_status); } &&
16419 { ac_try='test -z "$ac_c_werror_flag"
16420 || test ! -s conftest.err'
16421 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16422 (eval $ac_try) 2>&5
16424 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16425 (exit $ac_status); }; } &&
16426 { ac_try='test -s conftest.$ac_objext'
16427 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16428 (eval $ac_try) 2>&5
16430 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16431 (exit $ac_status); }; }; then
16432 ac_cv_have_decl_strstr=yes
16434 echo "$as_me: failed program was:" >&5
16435 sed 's/^/| /' conftest.$ac_ext >&5
16437 ac_cv_have_decl_strstr=no
16439 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
16441 echo "$as_me:$LINENO: result: $ac_cv_have_decl_strstr" >&5
16442 echo "${ECHO_T}$ac_cv_have_decl_strstr" >&6
16443 if test $ac_cv_have_decl_strstr = yes; then
16445 cat >>confdefs.h <<_ACEOF
16446 #define HAVE_DECL_STRSTR 1
16451 cat >>confdefs.h <<_ACEOF
16452 #define HAVE_DECL_STRSTR 0
16459 echo "$as_me:$LINENO: checking whether getopt is declared" >&5
16460 echo $ECHO_N "checking whether getopt is declared... $ECHO_C" >&6
16461 if test "${ac_cv_have_decl_getopt+set}" = set; then
16462 echo $ECHO_N "(cached) $ECHO_C" >&6
16464 cat >conftest.$ac_ext <<_ACEOF
16467 cat confdefs.h >>conftest.$ac_ext
16468 cat >>conftest.$ac_ext <<_ACEOF
16469 /* end confdefs.h. */
16470 $ac_includes_default
16475 char *p = (char *) getopt;
16482 rm -f conftest.$ac_objext
16483 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
16484 (eval $ac_compile) 2>conftest.er1
16486 grep -v '^ *+' conftest.er1 >conftest.err
16488 cat conftest.err >&5
16489 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16490 (exit $ac_status); } &&
16491 { ac_try='test -z "$ac_c_werror_flag"
16492 || test ! -s conftest.err'
16493 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16494 (eval $ac_try) 2>&5
16496 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16497 (exit $ac_status); }; } &&
16498 { ac_try='test -s conftest.$ac_objext'
16499 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16500 (eval $ac_try) 2>&5
16502 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16503 (exit $ac_status); }; }; then
16504 ac_cv_have_decl_getopt=yes
16506 echo "$as_me: failed program was:" >&5
16507 sed 's/^/| /' conftest.$ac_ext >&5
16509 ac_cv_have_decl_getopt=no
16511 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
16513 echo "$as_me:$LINENO: result: $ac_cv_have_decl_getopt" >&5
16514 echo "${ECHO_T}$ac_cv_have_decl_getopt" >&6
16515 if test $ac_cv_have_decl_getopt = yes; then
16517 cat >>confdefs.h <<_ACEOF
16518 #define HAVE_DECL_GETOPT 1
16523 cat >>confdefs.h <<_ACEOF
16524 #define HAVE_DECL_GETOPT 0
16529 echo "$as_me:$LINENO: checking whether snprintf is declared" >&5
16530 echo $ECHO_N "checking whether snprintf is declared... $ECHO_C" >&6
16531 if test "${ac_cv_have_decl_snprintf+set}" = set; then
16532 echo $ECHO_N "(cached) $ECHO_C" >&6
16534 cat >conftest.$ac_ext <<_ACEOF
16537 cat confdefs.h >>conftest.$ac_ext
16538 cat >>conftest.$ac_ext <<_ACEOF
16539 /* end confdefs.h. */
16540 $ac_includes_default
16545 char *p = (char *) snprintf;
16552 rm -f conftest.$ac_objext
16553 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
16554 (eval $ac_compile) 2>conftest.er1
16556 grep -v '^ *+' conftest.er1 >conftest.err
16558 cat conftest.err >&5
16559 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16560 (exit $ac_status); } &&
16561 { ac_try='test -z "$ac_c_werror_flag"
16562 || test ! -s conftest.err'
16563 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16564 (eval $ac_try) 2>&5
16566 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16567 (exit $ac_status); }; } &&
16568 { ac_try='test -s conftest.$ac_objext'
16569 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16570 (eval $ac_try) 2>&5
16572 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16573 (exit $ac_status); }; }; then
16574 ac_cv_have_decl_snprintf=yes
16576 echo "$as_me: failed program was:" >&5
16577 sed 's/^/| /' conftest.$ac_ext >&5
16579 ac_cv_have_decl_snprintf=no
16581 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
16583 echo "$as_me:$LINENO: result: $ac_cv_have_decl_snprintf" >&5
16584 echo "${ECHO_T}$ac_cv_have_decl_snprintf" >&6
16585 if test $ac_cv_have_decl_snprintf = yes; then
16587 cat >>confdefs.h <<_ACEOF
16588 #define HAVE_DECL_SNPRINTF 1
16593 cat >>confdefs.h <<_ACEOF
16594 #define HAVE_DECL_SNPRINTF 0
16599 echo "$as_me:$LINENO: checking whether vsnprintf is declared" >&5
16600 echo $ECHO_N "checking whether vsnprintf is declared... $ECHO_C" >&6
16601 if test "${ac_cv_have_decl_vsnprintf+set}" = set; then
16602 echo $ECHO_N "(cached) $ECHO_C" >&6
16604 cat >conftest.$ac_ext <<_ACEOF
16607 cat confdefs.h >>conftest.$ac_ext
16608 cat >>conftest.$ac_ext <<_ACEOF
16609 /* end confdefs.h. */
16610 $ac_includes_default
16615 char *p = (char *) vsnprintf;
16622 rm -f conftest.$ac_objext
16623 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
16624 (eval $ac_compile) 2>conftest.er1
16626 grep -v '^ *+' conftest.er1 >conftest.err
16628 cat conftest.err >&5
16629 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16630 (exit $ac_status); } &&
16631 { ac_try='test -z "$ac_c_werror_flag"
16632 || test ! -s conftest.err'
16633 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16634 (eval $ac_try) 2>&5
16636 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16637 (exit $ac_status); }; } &&
16638 { ac_try='test -s conftest.$ac_objext'
16639 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16640 (eval $ac_try) 2>&5
16642 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16643 (exit $ac_status); }; }; then
16644 ac_cv_have_decl_vsnprintf=yes
16646 echo "$as_me: failed program was:" >&5
16647 sed 's/^/| /' conftest.$ac_ext >&5
16649 ac_cv_have_decl_vsnprintf=no
16651 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
16653 echo "$as_me:$LINENO: result: $ac_cv_have_decl_vsnprintf" >&5
16654 echo "${ECHO_T}$ac_cv_have_decl_vsnprintf" >&6
16655 if test $ac_cv_have_decl_vsnprintf = yes; then
16657 cat >>confdefs.h <<_ACEOF
16658 #define HAVE_DECL_VSNPRINTF 1
16663 cat >>confdefs.h <<_ACEOF
16664 #define HAVE_DECL_VSNPRINTF 0
16672 # ----------------------- #
16673 # Checks for structures. #
16674 # ----------------------- #
16676 echo "$as_me:$LINENO: checking for struct stat.st_blocks" >&5
16677 echo $ECHO_N "checking for struct stat.st_blocks... $ECHO_C" >&6
16678 if test "${ac_cv_member_struct_stat_st_blocks+set}" = set; then
16679 echo $ECHO_N "(cached) $ECHO_C" >&6
16681 cat >conftest.$ac_ext <<_ACEOF
16684 cat confdefs.h >>conftest.$ac_ext
16685 cat >>conftest.$ac_ext <<_ACEOF
16686 /* end confdefs.h. */
16687 $ac_includes_default
16691 static struct stat ac_aggr;
16692 if (ac_aggr.st_blocks)
16698 rm -f conftest.$ac_objext
16699 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
16700 (eval $ac_compile) 2>conftest.er1
16702 grep -v '^ *+' conftest.er1 >conftest.err
16704 cat conftest.err >&5
16705 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16706 (exit $ac_status); } &&
16707 { ac_try='test -z "$ac_c_werror_flag"
16708 || test ! -s conftest.err'
16709 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16710 (eval $ac_try) 2>&5
16712 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16713 (exit $ac_status); }; } &&
16714 { ac_try='test -s conftest.$ac_objext'
16715 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16716 (eval $ac_try) 2>&5
16718 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16719 (exit $ac_status); }; }; then
16720 ac_cv_member_struct_stat_st_blocks=yes
16722 echo "$as_me: failed program was:" >&5
16723 sed 's/^/| /' conftest.$ac_ext >&5
16725 cat >conftest.$ac_ext <<_ACEOF
16728 cat confdefs.h >>conftest.$ac_ext
16729 cat >>conftest.$ac_ext <<_ACEOF
16730 /* end confdefs.h. */
16731 $ac_includes_default
16735 static struct stat ac_aggr;
16736 if (sizeof ac_aggr.st_blocks)
16742 rm -f conftest.$ac_objext
16743 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
16744 (eval $ac_compile) 2>conftest.er1
16746 grep -v '^ *+' conftest.er1 >conftest.err
16748 cat conftest.err >&5
16749 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16750 (exit $ac_status); } &&
16751 { ac_try='test -z "$ac_c_werror_flag"
16752 || test ! -s conftest.err'
16753 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16754 (eval $ac_try) 2>&5
16756 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16757 (exit $ac_status); }; } &&
16758 { ac_try='test -s conftest.$ac_objext'
16759 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16760 (eval $ac_try) 2>&5
16762 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16763 (exit $ac_status); }; }; then
16764 ac_cv_member_struct_stat_st_blocks=yes
16766 echo "$as_me: failed program was:" >&5
16767 sed 's/^/| /' conftest.$ac_ext >&5
16769 ac_cv_member_struct_stat_st_blocks=no
16771 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
16773 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
16775 echo "$as_me:$LINENO: result: $ac_cv_member_struct_stat_st_blocks" >&5
16776 echo "${ECHO_T}$ac_cv_member_struct_stat_st_blocks" >&6
16777 if test $ac_cv_member_struct_stat_st_blocks = yes; then
16779 cat >>confdefs.h <<_ACEOF
16780 #define HAVE_STRUCT_STAT_ST_BLOCKS 1
16786 echo "$as_me:$LINENO: checking for struct stat.st_blksize" >&5
16787 echo $ECHO_N "checking for struct stat.st_blksize... $ECHO_C" >&6
16788 if test "${ac_cv_member_struct_stat_st_blksize+set}" = set; then
16789 echo $ECHO_N "(cached) $ECHO_C" >&6
16791 cat >conftest.$ac_ext <<_ACEOF
16794 cat confdefs.h >>conftest.$ac_ext
16795 cat >>conftest.$ac_ext <<_ACEOF
16796 /* end confdefs.h. */
16797 $ac_includes_default
16801 static struct stat ac_aggr;
16802 if (ac_aggr.st_blksize)
16808 rm -f conftest.$ac_objext
16809 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
16810 (eval $ac_compile) 2>conftest.er1
16812 grep -v '^ *+' conftest.er1 >conftest.err
16814 cat conftest.err >&5
16815 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16816 (exit $ac_status); } &&
16817 { ac_try='test -z "$ac_c_werror_flag"
16818 || test ! -s conftest.err'
16819 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16820 (eval $ac_try) 2>&5
16822 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16823 (exit $ac_status); }; } &&
16824 { ac_try='test -s conftest.$ac_objext'
16825 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16826 (eval $ac_try) 2>&5
16828 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16829 (exit $ac_status); }; }; then
16830 ac_cv_member_struct_stat_st_blksize=yes
16832 echo "$as_me: failed program was:" >&5
16833 sed 's/^/| /' conftest.$ac_ext >&5
16835 cat >conftest.$ac_ext <<_ACEOF
16838 cat confdefs.h >>conftest.$ac_ext
16839 cat >>conftest.$ac_ext <<_ACEOF
16840 /* end confdefs.h. */
16841 $ac_includes_default
16845 static struct stat ac_aggr;
16846 if (sizeof ac_aggr.st_blksize)
16852 rm -f conftest.$ac_objext
16853 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
16854 (eval $ac_compile) 2>conftest.er1
16856 grep -v '^ *+' conftest.er1 >conftest.err
16858 cat conftest.err >&5
16859 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16860 (exit $ac_status); } &&
16861 { ac_try='test -z "$ac_c_werror_flag"
16862 || test ! -s conftest.err'
16863 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16864 (eval $ac_try) 2>&5
16866 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16867 (exit $ac_status); }; } &&
16868 { ac_try='test -s conftest.$ac_objext'
16869 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16870 (eval $ac_try) 2>&5
16872 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16873 (exit $ac_status); }; }; then
16874 ac_cv_member_struct_stat_st_blksize=yes
16876 echo "$as_me: failed program was:" >&5
16877 sed 's/^/| /' conftest.$ac_ext >&5
16879 ac_cv_member_struct_stat_st_blksize=no
16881 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
16883 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
16885 echo "$as_me:$LINENO: result: $ac_cv_member_struct_stat_st_blksize" >&5
16886 echo "${ECHO_T}$ac_cv_member_struct_stat_st_blksize" >&6
16887 if test $ac_cv_member_struct_stat_st_blksize = yes; then
16889 cat >>confdefs.h <<_ACEOF
16890 #define HAVE_STRUCT_STAT_ST_BLKSIZE 1
16897 # ------------------ #
16898 # Checks for types. #
16899 # ------------------ #
16901 echo "$as_me:$LINENO: checking return type of signal handlers" >&5
16902 echo $ECHO_N "checking return type of signal handlers... $ECHO_C" >&6
16903 if test "${ac_cv_type_signal+set}" = set; then
16904 echo $ECHO_N "(cached) $ECHO_C" >&6
16906 cat >conftest.$ac_ext <<_ACEOF
16909 cat confdefs.h >>conftest.$ac_ext
16910 cat >>conftest.$ac_ext <<_ACEOF
16911 /* end confdefs.h. */
16912 #include <sys/types.h>
16913 #include <signal.h>
16918 extern "C" void (*signal (int, void (*)(int)))(int);
16920 void (*signal ()) ();
16931 rm -f conftest.$ac_objext
16932 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
16933 (eval $ac_compile) 2>conftest.er1
16935 grep -v '^ *+' conftest.er1 >conftest.err
16937 cat conftest.err >&5
16938 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16939 (exit $ac_status); } &&
16940 { ac_try='test -z "$ac_c_werror_flag"
16941 || test ! -s conftest.err'
16942 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16943 (eval $ac_try) 2>&5
16945 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16946 (exit $ac_status); }; } &&
16947 { ac_try='test -s conftest.$ac_objext'
16948 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16949 (eval $ac_try) 2>&5
16951 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16952 (exit $ac_status); }; }; then
16953 ac_cv_type_signal=void
16955 echo "$as_me: failed program was:" >&5
16956 sed 's/^/| /' conftest.$ac_ext >&5
16958 ac_cv_type_signal=int
16960 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
16962 echo "$as_me:$LINENO: result: $ac_cv_type_signal" >&5
16963 echo "${ECHO_T}$ac_cv_type_signal" >&6
16965 cat >>confdefs.h <<_ACEOF
16966 #define RETSIGTYPE $ac_cv_type_signal
16970 echo "$as_me:$LINENO: checking for socklen_t" >&5
16971 echo $ECHO_N "checking for socklen_t... $ECHO_C" >&6
16972 if test "${ac_cv_type_socklen_t+set}" = set; then
16973 echo $ECHO_N "(cached) $ECHO_C" >&6
16975 cat >conftest.$ac_ext <<_ACEOF
16978 cat confdefs.h >>conftest.$ac_ext
16979 cat >>conftest.$ac_ext <<_ACEOF
16980 /* end confdefs.h. */
16981 #include <sys/types.h>
16982 #include <sys/socket.h>
16988 if ((socklen_t *) 0)
16990 if (sizeof (socklen_t))
16996 rm -f conftest.$ac_objext
16997 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
16998 (eval $ac_compile) 2>conftest.er1
17000 grep -v '^ *+' conftest.er1 >conftest.err
17002 cat conftest.err >&5
17003 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17004 (exit $ac_status); } &&
17005 { ac_try='test -z "$ac_c_werror_flag"
17006 || test ! -s conftest.err'
17007 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17008 (eval $ac_try) 2>&5
17010 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17011 (exit $ac_status); }; } &&
17012 { ac_try='test -s conftest.$ac_objext'
17013 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17014 (eval $ac_try) 2>&5
17016 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17017 (exit $ac_status); }; }; then
17018 ac_cv_type_socklen_t=yes
17020 echo "$as_me: failed program was:" >&5
17021 sed 's/^/| /' conftest.$ac_ext >&5
17023 ac_cv_type_socklen_t=no
17025 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
17027 echo "$as_me:$LINENO: result: $ac_cv_type_socklen_t" >&5
17028 echo "${ECHO_T}$ac_cv_type_socklen_t" >&6
17029 if test $ac_cv_type_socklen_t = yes; then
17031 cat >>confdefs.h <<_ACEOF
17032 #define HAVE_SOCKLEN_T 1
17039 # ------------------------------------- #
17040 # Checks for compiler characteristics. #
17041 # ------------------------------------- #
17043 echo "$as_me:$LINENO: checking for an ANSI C-conforming const" >&5
17044 echo $ECHO_N "checking for an ANSI C-conforming const... $ECHO_C" >&6
17045 if test "${ac_cv_c_const+set}" = set; then
17046 echo $ECHO_N "(cached) $ECHO_C" >&6
17048 cat >conftest.$ac_ext <<_ACEOF
17051 cat confdefs.h >>conftest.$ac_ext
17052 cat >>conftest.$ac_ext <<_ACEOF
17053 /* end confdefs.h. */
17058 /* FIXME: Include the comments suggested by Paul. */
17059 #ifndef __cplusplus
17060 /* Ultrix mips cc rejects this. */
17061 typedef int charset[2];
17063 /* SunOS 4.1.1 cc rejects this. */
17064 char const *const *ccp;
17066 /* NEC SVR4.0.2 mips cc rejects this. */
17067 struct point {int x, y;};
17068 static struct point const zero = {0,0};
17069 /* AIX XL C 1.02.0.0 rejects this.
17070 It does not let you subtract one const X* pointer from another in
17071 an arm of an if-expression whose if-part is not a constant
17073 const char *g = "string";
17074 ccp = &g + (g ? g-g : 0);
17075 /* HPUX 7.0 cc rejects these. */
17078 ccp = (char const *const *) p;
17079 { /* SCO 3.2v4 cc rejects this. */
17081 char const *s = 0 ? (char *) 0 : (char const *) 0;
17085 { /* Someone thinks the Sun supposedly-ANSI compiler will reject this. */
17086 int x[] = {25, 17};
17087 const int *foo = &x[0];
17090 { /* Sun SC1.0 ANSI compiler rejects this -- but not the above. */
17091 typedef const int *iptr;
17095 { /* AIX XL C 1.02.0.0 rejects this saying
17096 "k.c", line 2.27: 1506-025 (S) Operand must be a modifiable lvalue. */
17097 struct s { int j; const int *ap[3]; };
17098 struct s *b; b->j = 5;
17100 { /* ULTRIX-32 V3.1 (Rev 9) vcc rejects this */
17101 const int foo = 10;
17109 rm -f conftest.$ac_objext
17110 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
17111 (eval $ac_compile) 2>conftest.er1
17113 grep -v '^ *+' conftest.er1 >conftest.err
17115 cat conftest.err >&5
17116 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17117 (exit $ac_status); } &&
17118 { ac_try='test -z "$ac_c_werror_flag"
17119 || test ! -s conftest.err'
17120 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17121 (eval $ac_try) 2>&5
17123 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17124 (exit $ac_status); }; } &&
17125 { ac_try='test -s conftest.$ac_objext'
17126 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17127 (eval $ac_try) 2>&5
17129 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17130 (exit $ac_status); }; }; then
17133 echo "$as_me: failed program was:" >&5
17134 sed 's/^/| /' conftest.$ac_ext >&5
17138 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
17140 echo "$as_me:$LINENO: result: $ac_cv_c_const" >&5
17141 echo "${ECHO_T}$ac_cv_c_const" >&6
17142 if test $ac_cv_c_const = no; then
17144 cat >>confdefs.h <<\_ACEOF
17150 echo "$as_me:$LINENO: checking for inline" >&5
17151 echo $ECHO_N "checking for inline... $ECHO_C" >&6
17152 if test "${ac_cv_c_inline+set}" = set; then
17153 echo $ECHO_N "(cached) $ECHO_C" >&6
17156 for ac_kw in inline __inline__ __inline; do
17157 cat >conftest.$ac_ext <<_ACEOF
17160 cat confdefs.h >>conftest.$ac_ext
17161 cat >>conftest.$ac_ext <<_ACEOF
17162 /* end confdefs.h. */
17163 #ifndef __cplusplus
17165 static $ac_kw foo_t static_foo () {return 0; }
17166 $ac_kw foo_t foo () {return 0; }
17170 rm -f conftest.$ac_objext
17171 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
17172 (eval $ac_compile) 2>conftest.er1
17174 grep -v '^ *+' conftest.er1 >conftest.err
17176 cat conftest.err >&5
17177 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17178 (exit $ac_status); } &&
17179 { ac_try='test -z "$ac_c_werror_flag"
17180 || test ! -s conftest.err'
17181 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17182 (eval $ac_try) 2>&5
17184 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17185 (exit $ac_status); }; } &&
17186 { ac_try='test -s conftest.$ac_objext'
17187 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17188 (eval $ac_try) 2>&5
17190 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17191 (exit $ac_status); }; }; then
17192 ac_cv_c_inline=$ac_kw; break
17194 echo "$as_me: failed program was:" >&5
17195 sed 's/^/| /' conftest.$ac_ext >&5
17198 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
17202 echo "$as_me:$LINENO: result: $ac_cv_c_inline" >&5
17203 echo "${ECHO_T}$ac_cv_c_inline" >&6
17206 case $ac_cv_c_inline in
17209 case $ac_cv_c_inline in
17211 *) ac_val=$ac_cv_c_inline;;
17213 cat >>confdefs.h <<_ACEOF
17214 #ifndef __cplusplus
17215 #define inline $ac_val
17221 echo "$as_me:$LINENO: checking whether byte ordering is bigendian" >&5
17222 echo $ECHO_N "checking whether byte ordering is bigendian... $ECHO_C" >&6
17223 if test "${ac_cv_c_bigendian+set}" = set; then
17224 echo $ECHO_N "(cached) $ECHO_C" >&6
17226 # See if sys/param.h defines the BYTE_ORDER macro.
17227 cat >conftest.$ac_ext <<_ACEOF
17230 cat confdefs.h >>conftest.$ac_ext
17231 cat >>conftest.$ac_ext <<_ACEOF
17232 /* end confdefs.h. */
17233 #include <sys/types.h>
17234 #include <sys/param.h>
17239 #if !BYTE_ORDER || !BIG_ENDIAN || !LITTLE_ENDIAN
17240 bogus endian macros
17247 rm -f conftest.$ac_objext
17248 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
17249 (eval $ac_compile) 2>conftest.er1
17251 grep -v '^ *+' conftest.er1 >conftest.err
17253 cat conftest.err >&5
17254 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17255 (exit $ac_status); } &&
17256 { ac_try='test -z "$ac_c_werror_flag"
17257 || test ! -s conftest.err'
17258 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17259 (eval $ac_try) 2>&5
17261 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17262 (exit $ac_status); }; } &&
17263 { ac_try='test -s conftest.$ac_objext'
17264 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17265 (eval $ac_try) 2>&5
17267 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17268 (exit $ac_status); }; }; then
17269 # It does; now see whether it defined to BIG_ENDIAN or not.
17270 cat >conftest.$ac_ext <<_ACEOF
17273 cat confdefs.h >>conftest.$ac_ext
17274 cat >>conftest.$ac_ext <<_ACEOF
17275 /* end confdefs.h. */
17276 #include <sys/types.h>
17277 #include <sys/param.h>
17282 #if BYTE_ORDER != BIG_ENDIAN
17290 rm -f conftest.$ac_objext
17291 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
17292 (eval $ac_compile) 2>conftest.er1
17294 grep -v '^ *+' conftest.er1 >conftest.err
17296 cat conftest.err >&5
17297 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17298 (exit $ac_status); } &&
17299 { ac_try='test -z "$ac_c_werror_flag"
17300 || test ! -s conftest.err'
17301 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17302 (eval $ac_try) 2>&5
17304 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17305 (exit $ac_status); }; } &&
17306 { ac_try='test -s conftest.$ac_objext'
17307 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17308 (eval $ac_try) 2>&5
17310 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17311 (exit $ac_status); }; }; then
17312 ac_cv_c_bigendian=yes
17314 echo "$as_me: failed program was:" >&5
17315 sed 's/^/| /' conftest.$ac_ext >&5
17317 ac_cv_c_bigendian=no
17319 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
17321 echo "$as_me: failed program was:" >&5
17322 sed 's/^/| /' conftest.$ac_ext >&5
17324 # It does not; compile a test program.
17325 if test "$cross_compiling" = yes; then
17326 # try to guess the endianness by grepping values into an object file
17327 ac_cv_c_bigendian=unknown
17328 cat >conftest.$ac_ext <<_ACEOF
17331 cat confdefs.h >>conftest.$ac_ext
17332 cat >>conftest.$ac_ext <<_ACEOF
17333 /* end confdefs.h. */
17334 short ascii_mm[] = { 0x4249, 0x4765, 0x6E44, 0x6961, 0x6E53, 0x7953, 0 };
17335 short ascii_ii[] = { 0x694C, 0x5454, 0x656C, 0x6E45, 0x6944, 0x6E61, 0 };
17336 void _ascii () { char *s = (char *) ascii_mm; s = (char *) ascii_ii; }
17337 short ebcdic_ii[] = { 0x89D3, 0xE3E3, 0x8593, 0x95C5, 0x89C4, 0x9581, 0 };
17338 short ebcdic_mm[] = { 0xC2C9, 0xC785, 0x95C4, 0x8981, 0x95E2, 0xA8E2, 0 };
17339 void _ebcdic () { char *s = (char *) ebcdic_mm; s = (char *) ebcdic_ii; }
17343 _ascii (); _ebcdic ();
17348 rm -f conftest.$ac_objext
17349 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
17350 (eval $ac_compile) 2>conftest.er1
17352 grep -v '^ *+' conftest.er1 >conftest.err
17354 cat conftest.err >&5
17355 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17356 (exit $ac_status); } &&
17357 { ac_try='test -z "$ac_c_werror_flag"
17358 || test ! -s conftest.err'
17359 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17360 (eval $ac_try) 2>&5
17362 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17363 (exit $ac_status); }; } &&
17364 { ac_try='test -s conftest.$ac_objext'
17365 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17366 (eval $ac_try) 2>&5
17368 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17369 (exit $ac_status); }; }; then
17370 if grep BIGenDianSyS conftest.$ac_objext >/dev/null ; then
17371 ac_cv_c_bigendian=yes
17373 if grep LiTTleEnDian conftest.$ac_objext >/dev/null ; then
17374 if test "$ac_cv_c_bigendian" = unknown; then
17375 ac_cv_c_bigendian=no
17377 # finding both strings is unlikely to happen, but who knows?
17378 ac_cv_c_bigendian=unknown
17382 echo "$as_me: failed program was:" >&5
17383 sed 's/^/| /' conftest.$ac_ext >&5
17386 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
17388 cat >conftest.$ac_ext <<_ACEOF
17391 cat confdefs.h >>conftest.$ac_ext
17392 cat >>conftest.$ac_ext <<_ACEOF
17393 /* end confdefs.h. */
17397 /* Are we little or big endian? From Harbison&Steele. */
17401 char c[sizeof (long)];
17404 exit (u.c[sizeof (long) - 1] == 1);
17407 rm -f conftest$ac_exeext
17408 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
17409 (eval $ac_link) 2>&5
17411 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17412 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
17413 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17414 (eval $ac_try) 2>&5
17416 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17417 (exit $ac_status); }; }; then
17418 ac_cv_c_bigendian=no
17420 echo "$as_me: program exited with status $ac_status" >&5
17421 echo "$as_me: failed program was:" >&5
17422 sed 's/^/| /' conftest.$ac_ext >&5
17424 ( exit $ac_status )
17425 ac_cv_c_bigendian=yes
17427 rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
17430 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
17432 echo "$as_me:$LINENO: result: $ac_cv_c_bigendian" >&5
17433 echo "${ECHO_T}$ac_cv_c_bigendian" >&6
17434 case $ac_cv_c_bigendian in
17437 cat >>confdefs.h <<\_ACEOF
17438 #define WORDS_BIGENDIAN 1
17444 { { echo "$as_me:$LINENO: error: unknown endianness
17445 presetting ac_cv_c_bigendian=no (or yes) will help" >&5
17446 echo "$as_me: error: unknown endianness
17447 presetting ac_cv_c_bigendian=no (or yes) will help" >&2;}
17448 { (exit 1); exit 1; }; } ;;
17452 # ------------------------------ #
17453 # Checks for library functions. #
17454 # ------------------------------ #
17456 # The Ultrix 4.2 mips builtin alloca declared by alloca.h only works
17457 # for constant arguments. Useless!
17458 echo "$as_me:$LINENO: checking for working alloca.h" >&5
17459 echo $ECHO_N "checking for working alloca.h... $ECHO_C" >&6
17460 if test "${ac_cv_working_alloca_h+set}" = set; then
17461 echo $ECHO_N "(cached) $ECHO_C" >&6
17463 cat >conftest.$ac_ext <<_ACEOF
17466 cat confdefs.h >>conftest.$ac_ext
17467 cat >>conftest.$ac_ext <<_ACEOF
17468 /* end confdefs.h. */
17469 #include <alloca.h>
17473 char *p = (char *) alloca (2 * sizeof (int));
17478 rm -f conftest.$ac_objext conftest$ac_exeext
17479 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
17480 (eval $ac_link) 2>conftest.er1
17482 grep -v '^ *+' conftest.er1 >conftest.err
17484 cat conftest.err >&5
17485 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17486 (exit $ac_status); } &&
17487 { ac_try='test -z "$ac_c_werror_flag"
17488 || test ! -s conftest.err'
17489 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17490 (eval $ac_try) 2>&5
17492 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17493 (exit $ac_status); }; } &&
17494 { ac_try='test -s conftest$ac_exeext'
17495 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17496 (eval $ac_try) 2>&5
17498 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17499 (exit $ac_status); }; }; then
17500 ac_cv_working_alloca_h=yes
17502 echo "$as_me: failed program was:" >&5
17503 sed 's/^/| /' conftest.$ac_ext >&5
17505 ac_cv_working_alloca_h=no
17507 rm -f conftest.err conftest.$ac_objext \
17508 conftest$ac_exeext conftest.$ac_ext
17510 echo "$as_me:$LINENO: result: $ac_cv_working_alloca_h" >&5
17511 echo "${ECHO_T}$ac_cv_working_alloca_h" >&6
17512 if test $ac_cv_working_alloca_h = yes; then
17514 cat >>confdefs.h <<\_ACEOF
17515 #define HAVE_ALLOCA_H 1
17520 echo "$as_me:$LINENO: checking for alloca" >&5
17521 echo $ECHO_N "checking for alloca... $ECHO_C" >&6
17522 if test "${ac_cv_func_alloca_works+set}" = set; then
17523 echo $ECHO_N "(cached) $ECHO_C" >&6
17525 cat >conftest.$ac_ext <<_ACEOF
17528 cat confdefs.h >>conftest.$ac_ext
17529 cat >>conftest.$ac_ext <<_ACEOF
17530 /* end confdefs.h. */
17532 # define alloca __builtin_alloca
17535 # include <malloc.h>
17536 # define alloca _alloca
17539 # include <alloca.h>
17544 # ifndef alloca /* predefined by HP cc +Olibcalls */
17555 char *p = (char *) alloca (1);
17560 rm -f conftest.$ac_objext conftest$ac_exeext
17561 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
17562 (eval $ac_link) 2>conftest.er1
17564 grep -v '^ *+' conftest.er1 >conftest.err
17566 cat conftest.err >&5
17567 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17568 (exit $ac_status); } &&
17569 { ac_try='test -z "$ac_c_werror_flag"
17570 || test ! -s conftest.err'
17571 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17572 (eval $ac_try) 2>&5
17574 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17575 (exit $ac_status); }; } &&
17576 { ac_try='test -s conftest$ac_exeext'
17577 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17578 (eval $ac_try) 2>&5
17580 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17581 (exit $ac_status); }; }; then
17582 ac_cv_func_alloca_works=yes
17584 echo "$as_me: failed program was:" >&5
17585 sed 's/^/| /' conftest.$ac_ext >&5
17587 ac_cv_func_alloca_works=no
17589 rm -f conftest.err conftest.$ac_objext \
17590 conftest$ac_exeext conftest.$ac_ext
17592 echo "$as_me:$LINENO: result: $ac_cv_func_alloca_works" >&5
17593 echo "${ECHO_T}$ac_cv_func_alloca_works" >&6
17595 if test $ac_cv_func_alloca_works = yes; then
17597 cat >>confdefs.h <<\_ACEOF
17598 #define HAVE_ALLOCA 1
17602 # The SVR3 libPW and SVR4 libucb both contain incompatible functions
17603 # that cause trouble. Some versions do not even contain alloca or
17604 # contain a buggy version. If you still want to use their alloca,
17605 # use ar to extract alloca.o from them instead of compiling alloca.c.
17607 ALLOCA=alloca.$ac_objext
17609 cat >>confdefs.h <<\_ACEOF
17614 echo "$as_me:$LINENO: checking whether \`alloca.c' needs Cray hooks" >&5
17615 echo $ECHO_N "checking whether \`alloca.c' needs Cray hooks... $ECHO_C" >&6
17616 if test "${ac_cv_os_cray+set}" = set; then
17617 echo $ECHO_N "(cached) $ECHO_C" >&6
17619 cat >conftest.$ac_ext <<_ACEOF
17622 cat confdefs.h >>conftest.$ac_ext
17623 cat >>conftest.$ac_ext <<_ACEOF
17624 /* end confdefs.h. */
17625 #if defined(CRAY) && ! defined(CRAY2)
17632 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
17633 $EGREP "webecray" >/dev/null 2>&1; then
17641 echo "$as_me:$LINENO: result: $ac_cv_os_cray" >&5
17642 echo "${ECHO_T}$ac_cv_os_cray" >&6
17643 if test $ac_cv_os_cray = yes; then
17644 for ac_func in _getb67 GETB67 getb67; do
17645 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
17646 echo "$as_me:$LINENO: checking for $ac_func" >&5
17647 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
17648 if eval "test \"\${$as_ac_var+set}\" = set"; then
17649 echo $ECHO_N "(cached) $ECHO_C" >&6
17651 cat >conftest.$ac_ext <<_ACEOF
17654 cat confdefs.h >>conftest.$ac_ext
17655 cat >>conftest.$ac_ext <<_ACEOF
17656 /* end confdefs.h. */
17657 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
17658 For example, HP-UX 11i <limits.h> declares gettimeofday. */
17659 #define $ac_func innocuous_$ac_func
17661 /* System header to define __stub macros and hopefully few prototypes,
17662 which can conflict with char $ac_func (); below.
17663 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
17664 <limits.h> exists even on freestanding compilers. */
17667 # include <limits.h>
17669 # include <assert.h>
17674 /* Override any gcc2 internal prototype to avoid an error. */
17679 /* We use char because int might match the return type of a gcc2
17680 builtin and then its argument prototype would still apply. */
17682 /* The GNU C library defines this for functions which it implements
17683 to always fail with ENOSYS. Some functions are actually named
17684 something starting with __ and the normal name is an alias. */
17685 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
17688 char (*f) () = $ac_func;
17697 return f != $ac_func;
17702 rm -f conftest.$ac_objext conftest$ac_exeext
17703 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
17704 (eval $ac_link) 2>conftest.er1
17706 grep -v '^ *+' conftest.er1 >conftest.err
17708 cat conftest.err >&5
17709 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17710 (exit $ac_status); } &&
17711 { ac_try='test -z "$ac_c_werror_flag"
17712 || test ! -s conftest.err'
17713 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17714 (eval $ac_try) 2>&5
17716 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17717 (exit $ac_status); }; } &&
17718 { ac_try='test -s conftest$ac_exeext'
17719 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17720 (eval $ac_try) 2>&5
17722 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17723 (exit $ac_status); }; }; then
17724 eval "$as_ac_var=yes"
17726 echo "$as_me: failed program was:" >&5
17727 sed 's/^/| /' conftest.$ac_ext >&5
17729 eval "$as_ac_var=no"
17731 rm -f conftest.err conftest.$ac_objext \
17732 conftest$ac_exeext conftest.$ac_ext
17734 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
17735 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
17736 if test `eval echo '${'$as_ac_var'}'` = yes; then
17738 cat >>confdefs.h <<_ACEOF
17739 #define CRAY_STACKSEG_END $ac_func
17748 echo "$as_me:$LINENO: checking stack direction for C alloca" >&5
17749 echo $ECHO_N "checking stack direction for C alloca... $ECHO_C" >&6
17750 if test "${ac_cv_c_stack_direction+set}" = set; then
17751 echo $ECHO_N "(cached) $ECHO_C" >&6
17753 if test "$cross_compiling" = yes; then
17754 ac_cv_c_stack_direction=0
17756 cat >conftest.$ac_ext <<_ACEOF
17759 cat confdefs.h >>conftest.$ac_ext
17760 cat >>conftest.$ac_ext <<_ACEOF
17761 /* end confdefs.h. */
17763 find_stack_direction ()
17765 static char *addr = 0;
17770 return find_stack_direction ();
17773 return (&dummy > addr) ? 1 : -1;
17779 exit (find_stack_direction () < 0);
17782 rm -f conftest$ac_exeext
17783 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
17784 (eval $ac_link) 2>&5
17786 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17787 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
17788 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17789 (eval $ac_try) 2>&5
17791 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17792 (exit $ac_status); }; }; then
17793 ac_cv_c_stack_direction=1
17795 echo "$as_me: program exited with status $ac_status" >&5
17796 echo "$as_me: failed program was:" >&5
17797 sed 's/^/| /' conftest.$ac_ext >&5
17799 ( exit $ac_status )
17800 ac_cv_c_stack_direction=-1
17802 rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
17805 echo "$as_me:$LINENO: result: $ac_cv_c_stack_direction" >&5
17806 echo "${ECHO_T}$ac_cv_c_stack_direction" >&6
17808 cat >>confdefs.h <<_ACEOF
17809 #define STACK_DIRECTION $ac_cv_c_stack_direction
17817 for ac_header in stdlib.h unistd.h
17819 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
17820 if eval "test \"\${$as_ac_Header+set}\" = set"; then
17821 echo "$as_me:$LINENO: checking for $ac_header" >&5
17822 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
17823 if eval "test \"\${$as_ac_Header+set}\" = set"; then
17824 echo $ECHO_N "(cached) $ECHO_C" >&6
17826 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
17827 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
17829 # Is the header compilable?
17830 echo "$as_me:$LINENO: checking $ac_header usability" >&5
17831 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
17832 cat >conftest.$ac_ext <<_ACEOF
17835 cat confdefs.h >>conftest.$ac_ext
17836 cat >>conftest.$ac_ext <<_ACEOF
17837 /* end confdefs.h. */
17838 $ac_includes_default
17839 #include <$ac_header>
17841 rm -f conftest.$ac_objext
17842 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
17843 (eval $ac_compile) 2>conftest.er1
17845 grep -v '^ *+' conftest.er1 >conftest.err
17847 cat conftest.err >&5
17848 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17849 (exit $ac_status); } &&
17850 { ac_try='test -z "$ac_c_werror_flag"
17851 || test ! -s conftest.err'
17852 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17853 (eval $ac_try) 2>&5
17855 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17856 (exit $ac_status); }; } &&
17857 { ac_try='test -s conftest.$ac_objext'
17858 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17859 (eval $ac_try) 2>&5
17861 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17862 (exit $ac_status); }; }; then
17863 ac_header_compiler=yes
17865 echo "$as_me: failed program was:" >&5
17866 sed 's/^/| /' conftest.$ac_ext >&5
17868 ac_header_compiler=no
17870 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
17871 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
17872 echo "${ECHO_T}$ac_header_compiler" >&6
17874 # Is the header present?
17875 echo "$as_me:$LINENO: checking $ac_header presence" >&5
17876 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
17877 cat >conftest.$ac_ext <<_ACEOF
17880 cat confdefs.h >>conftest.$ac_ext
17881 cat >>conftest.$ac_ext <<_ACEOF
17882 /* end confdefs.h. */
17883 #include <$ac_header>
17885 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
17886 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
17888 grep -v '^ *+' conftest.er1 >conftest.err
17890 cat conftest.err >&5
17891 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17892 (exit $ac_status); } >/dev/null; then
17893 if test -s conftest.err; then
17894 ac_cpp_err=$ac_c_preproc_warn_flag
17895 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
17902 if test -z "$ac_cpp_err"; then
17903 ac_header_preproc=yes
17905 echo "$as_me: failed program was:" >&5
17906 sed 's/^/| /' conftest.$ac_ext >&5
17908 ac_header_preproc=no
17910 rm -f conftest.err conftest.$ac_ext
17911 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
17912 echo "${ECHO_T}$ac_header_preproc" >&6
17914 # So? What about this header?
17915 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
17917 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
17918 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
17919 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
17920 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
17921 ac_header_preproc=yes
17924 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
17925 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
17926 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
17927 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
17928 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
17929 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
17930 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
17931 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
17932 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
17933 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
17934 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
17935 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
17938 ## ------------------------------------------ ##
17939 ## Report this to the AC_PACKAGE_NAME lists. ##
17940 ## ------------------------------------------ ##
17943 sed "s/^/$as_me: WARNING: /" >&2
17946 echo "$as_me:$LINENO: checking for $ac_header" >&5
17947 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
17948 if eval "test \"\${$as_ac_Header+set}\" = set"; then
17949 echo $ECHO_N "(cached) $ECHO_C" >&6
17951 eval "$as_ac_Header=\$ac_header_preproc"
17953 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
17954 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
17957 if test `eval echo '${'$as_ac_Header'}'` = yes; then
17958 cat >>confdefs.h <<_ACEOF
17959 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
17967 for ac_func in getpagesize
17969 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
17970 echo "$as_me:$LINENO: checking for $ac_func" >&5
17971 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
17972 if eval "test \"\${$as_ac_var+set}\" = set"; then
17973 echo $ECHO_N "(cached) $ECHO_C" >&6
17975 cat >conftest.$ac_ext <<_ACEOF
17978 cat confdefs.h >>conftest.$ac_ext
17979 cat >>conftest.$ac_ext <<_ACEOF
17980 /* end confdefs.h. */
17981 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
17982 For example, HP-UX 11i <limits.h> declares gettimeofday. */
17983 #define $ac_func innocuous_$ac_func
17985 /* System header to define __stub macros and hopefully few prototypes,
17986 which can conflict with char $ac_func (); below.
17987 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
17988 <limits.h> exists even on freestanding compilers. */
17991 # include <limits.h>
17993 # include <assert.h>
17998 /* Override any gcc2 internal prototype to avoid an error. */
18003 /* We use char because int might match the return type of a gcc2
18004 builtin and then its argument prototype would still apply. */
18006 /* The GNU C library defines this for functions which it implements
18007 to always fail with ENOSYS. Some functions are actually named
18008 something starting with __ and the normal name is an alias. */
18009 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
18012 char (*f) () = $ac_func;
18021 return f != $ac_func;
18026 rm -f conftest.$ac_objext conftest$ac_exeext
18027 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
18028 (eval $ac_link) 2>conftest.er1
18030 grep -v '^ *+' conftest.er1 >conftest.err
18032 cat conftest.err >&5
18033 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18034 (exit $ac_status); } &&
18035 { ac_try='test -z "$ac_c_werror_flag"
18036 || test ! -s conftest.err'
18037 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18038 (eval $ac_try) 2>&5
18040 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18041 (exit $ac_status); }; } &&
18042 { ac_try='test -s conftest$ac_exeext'
18043 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18044 (eval $ac_try) 2>&5
18046 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18047 (exit $ac_status); }; }; then
18048 eval "$as_ac_var=yes"
18050 echo "$as_me: failed program was:" >&5
18051 sed 's/^/| /' conftest.$ac_ext >&5
18053 eval "$as_ac_var=no"
18055 rm -f conftest.err conftest.$ac_objext \
18056 conftest$ac_exeext conftest.$ac_ext
18058 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
18059 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
18060 if test `eval echo '${'$as_ac_var'}'` = yes; then
18061 cat >>confdefs.h <<_ACEOF
18062 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
18068 echo "$as_me:$LINENO: checking for working mmap" >&5
18069 echo $ECHO_N "checking for working mmap... $ECHO_C" >&6
18070 if test "${ac_cv_func_mmap_fixed_mapped+set}" = set; then
18071 echo $ECHO_N "(cached) $ECHO_C" >&6
18073 if test "$cross_compiling" = yes; then
18074 ac_cv_func_mmap_fixed_mapped=no
18076 cat >conftest.$ac_ext <<_ACEOF
18079 cat confdefs.h >>conftest.$ac_ext
18080 cat >>conftest.$ac_ext <<_ACEOF
18081 /* end confdefs.h. */
18082 $ac_includes_default
18083 /* malloc might have been renamed as rpl_malloc. */
18086 /* Thanks to Mike Haertel and Jim Avera for this test.
18087 Here is a matrix of mmap possibilities:
18088 mmap private not fixed
18089 mmap private fixed at somewhere currently unmapped
18090 mmap private fixed at somewhere already mapped
18091 mmap shared not fixed
18092 mmap shared fixed at somewhere currently unmapped
18093 mmap shared fixed at somewhere already mapped
18094 For private mappings, we should verify that changes cannot be read()
18095 back from the file, nor mmap's back from the file at a different
18096 address. (There have been systems where private was not correctly
18097 implemented like the infamous i386 svr4.0, and systems where the
18098 VM page cache was not coherent with the file system buffer cache
18099 like early versions of FreeBSD and possibly contemporary NetBSD.)
18100 For shared mappings, we should conversely verify that changes get
18101 propagated back to all the places they're supposed to be.
18103 Grep wants private fixed already mapped.
18104 The main things grep needs to know about mmap are:
18105 * does it exist and is it safe to write into the mmap'd area
18106 * how to use it (BSD variants) */
18109 #include <sys/mman.h>
18111 #if !STDC_HEADERS && !HAVE_STDLIB_H
18115 /* This mess was copied from the GNU getpagesize.h. */
18116 #if !HAVE_GETPAGESIZE
18117 /* Assume that all systems that can run configure have sys/param.h. */
18118 # if !HAVE_SYS_PARAM_H
18119 # define HAVE_SYS_PARAM_H 1
18122 # ifdef _SC_PAGESIZE
18123 # define getpagesize() sysconf(_SC_PAGESIZE)
18124 # else /* no _SC_PAGESIZE */
18125 # if HAVE_SYS_PARAM_H
18126 # include <sys/param.h>
18127 # ifdef EXEC_PAGESIZE
18128 # define getpagesize() EXEC_PAGESIZE
18129 # else /* no EXEC_PAGESIZE */
18131 # define getpagesize() NBPG * CLSIZE
18134 # endif /* no CLSIZE */
18135 # else /* no NBPG */
18137 # define getpagesize() NBPC
18138 # else /* no NBPC */
18140 # define getpagesize() PAGESIZE
18141 # endif /* PAGESIZE */
18142 # endif /* no NBPC */
18143 # endif /* no NBPG */
18144 # endif /* no EXEC_PAGESIZE */
18145 # else /* no HAVE_SYS_PARAM_H */
18146 # define getpagesize() 8192 /* punt totally */
18147 # endif /* no HAVE_SYS_PARAM_H */
18148 # endif /* no _SC_PAGESIZE */
18150 #endif /* no HAVE_GETPAGESIZE */
18155 char *data, *data2, *data3;
18159 pagesize = getpagesize ();
18161 /* First, make a file with some known garbage in it. */
18162 data = (char *) malloc (pagesize);
18165 for (i = 0; i < pagesize; ++i)
18166 *(data + i) = rand ();
18168 fd = creat ("conftest.mmap", 0600);
18171 if (write (fd, data, pagesize) != pagesize)
18175 /* Next, try to mmap the file at a fixed address which already has
18176 something else allocated at it. If we can, also make sure that
18177 we see the same garbage. */
18178 fd = open ("conftest.mmap", O_RDWR);
18181 data2 = (char *) malloc (2 * pagesize);
18184 data2 += (pagesize - ((long) data2 & (pagesize - 1))) & (pagesize - 1);
18185 if (data2 != mmap (data2, pagesize, PROT_READ | PROT_WRITE,
18186 MAP_PRIVATE | MAP_FIXED, fd, 0L))
18188 for (i = 0; i < pagesize; ++i)
18189 if (*(data + i) != *(data2 + i))
18192 /* Finally, make sure that changes to the mapped area do not
18193 percolate back to the file as seen by read(). (This is a bug on
18194 some variants of i386 svr4.0.) */
18195 for (i = 0; i < pagesize; ++i)
18196 *(data2 + i) = *(data2 + i) + 1;
18197 data3 = (char *) malloc (pagesize);
18200 if (read (fd, data3, pagesize) != pagesize)
18202 for (i = 0; i < pagesize; ++i)
18203 if (*(data + i) != *(data3 + i))
18209 rm -f conftest$ac_exeext
18210 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
18211 (eval $ac_link) 2>&5
18213 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18214 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
18215 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18216 (eval $ac_try) 2>&5
18218 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18219 (exit $ac_status); }; }; then
18220 ac_cv_func_mmap_fixed_mapped=yes
18222 echo "$as_me: program exited with status $ac_status" >&5
18223 echo "$as_me: failed program was:" >&5
18224 sed 's/^/| /' conftest.$ac_ext >&5
18226 ( exit $ac_status )
18227 ac_cv_func_mmap_fixed_mapped=no
18229 rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
18232 echo "$as_me:$LINENO: result: $ac_cv_func_mmap_fixed_mapped" >&5
18233 echo "${ECHO_T}$ac_cv_func_mmap_fixed_mapped" >&6
18234 if test $ac_cv_func_mmap_fixed_mapped = yes; then
18236 cat >>confdefs.h <<\_ACEOF
18237 #define HAVE_MMAP 1
18241 rm -f conftest.mmap
18243 echo "$as_me:$LINENO: checking for pid_t" >&5
18244 echo $ECHO_N "checking for pid_t... $ECHO_C" >&6
18245 if test "${ac_cv_type_pid_t+set}" = set; then
18246 echo $ECHO_N "(cached) $ECHO_C" >&6
18248 cat >conftest.$ac_ext <<_ACEOF
18251 cat confdefs.h >>conftest.$ac_ext
18252 cat >>conftest.$ac_ext <<_ACEOF
18253 /* end confdefs.h. */
18254 $ac_includes_default
18260 if (sizeof (pid_t))
18266 rm -f conftest.$ac_objext
18267 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
18268 (eval $ac_compile) 2>conftest.er1
18270 grep -v '^ *+' conftest.er1 >conftest.err
18272 cat conftest.err >&5
18273 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18274 (exit $ac_status); } &&
18275 { ac_try='test -z "$ac_c_werror_flag"
18276 || test ! -s conftest.err'
18277 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18278 (eval $ac_try) 2>&5
18280 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18281 (exit $ac_status); }; } &&
18282 { ac_try='test -s conftest.$ac_objext'
18283 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18284 (eval $ac_try) 2>&5
18286 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18287 (exit $ac_status); }; }; then
18288 ac_cv_type_pid_t=yes
18290 echo "$as_me: failed program was:" >&5
18291 sed 's/^/| /' conftest.$ac_ext >&5
18293 ac_cv_type_pid_t=no
18295 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
18297 echo "$as_me:$LINENO: result: $ac_cv_type_pid_t" >&5
18298 echo "${ECHO_T}$ac_cv_type_pid_t" >&6
18299 if test $ac_cv_type_pid_t = yes; then
18303 cat >>confdefs.h <<_ACEOF
18311 for ac_header in unistd.h vfork.h
18313 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
18314 if eval "test \"\${$as_ac_Header+set}\" = set"; then
18315 echo "$as_me:$LINENO: checking for $ac_header" >&5
18316 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
18317 if eval "test \"\${$as_ac_Header+set}\" = set"; then
18318 echo $ECHO_N "(cached) $ECHO_C" >&6
18320 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
18321 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
18323 # Is the header compilable?
18324 echo "$as_me:$LINENO: checking $ac_header usability" >&5
18325 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
18326 cat >conftest.$ac_ext <<_ACEOF
18329 cat confdefs.h >>conftest.$ac_ext
18330 cat >>conftest.$ac_ext <<_ACEOF
18331 /* end confdefs.h. */
18332 $ac_includes_default
18333 #include <$ac_header>
18335 rm -f conftest.$ac_objext
18336 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
18337 (eval $ac_compile) 2>conftest.er1
18339 grep -v '^ *+' conftest.er1 >conftest.err
18341 cat conftest.err >&5
18342 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18343 (exit $ac_status); } &&
18344 { ac_try='test -z "$ac_c_werror_flag"
18345 || test ! -s conftest.err'
18346 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18347 (eval $ac_try) 2>&5
18349 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18350 (exit $ac_status); }; } &&
18351 { ac_try='test -s conftest.$ac_objext'
18352 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18353 (eval $ac_try) 2>&5
18355 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18356 (exit $ac_status); }; }; then
18357 ac_header_compiler=yes
18359 echo "$as_me: failed program was:" >&5
18360 sed 's/^/| /' conftest.$ac_ext >&5
18362 ac_header_compiler=no
18364 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
18365 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
18366 echo "${ECHO_T}$ac_header_compiler" >&6
18368 # Is the header present?
18369 echo "$as_me:$LINENO: checking $ac_header presence" >&5
18370 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
18371 cat >conftest.$ac_ext <<_ACEOF
18374 cat confdefs.h >>conftest.$ac_ext
18375 cat >>conftest.$ac_ext <<_ACEOF
18376 /* end confdefs.h. */
18377 #include <$ac_header>
18379 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
18380 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
18382 grep -v '^ *+' conftest.er1 >conftest.err
18384 cat conftest.err >&5
18385 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18386 (exit $ac_status); } >/dev/null; then
18387 if test -s conftest.err; then
18388 ac_cpp_err=$ac_c_preproc_warn_flag
18389 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
18396 if test -z "$ac_cpp_err"; then
18397 ac_header_preproc=yes
18399 echo "$as_me: failed program was:" >&5
18400 sed 's/^/| /' conftest.$ac_ext >&5
18402 ac_header_preproc=no
18404 rm -f conftest.err conftest.$ac_ext
18405 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
18406 echo "${ECHO_T}$ac_header_preproc" >&6
18408 # So? What about this header?
18409 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
18411 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
18412 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
18413 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
18414 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
18415 ac_header_preproc=yes
18418 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
18419 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
18420 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
18421 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
18422 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
18423 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
18424 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
18425 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
18426 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
18427 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
18428 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
18429 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
18432 ## ------------------------------------------ ##
18433 ## Report this to the AC_PACKAGE_NAME lists. ##
18434 ## ------------------------------------------ ##
18437 sed "s/^/$as_me: WARNING: /" >&2
18440 echo "$as_me:$LINENO: checking for $ac_header" >&5
18441 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
18442 if eval "test \"\${$as_ac_Header+set}\" = set"; then
18443 echo $ECHO_N "(cached) $ECHO_C" >&6
18445 eval "$as_ac_Header=\$ac_header_preproc"
18447 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
18448 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
18451 if test `eval echo '${'$as_ac_Header'}'` = yes; then
18452 cat >>confdefs.h <<_ACEOF
18453 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
18462 for ac_func in fork vfork
18464 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
18465 echo "$as_me:$LINENO: checking for $ac_func" >&5
18466 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
18467 if eval "test \"\${$as_ac_var+set}\" = set"; then
18468 echo $ECHO_N "(cached) $ECHO_C" >&6
18470 cat >conftest.$ac_ext <<_ACEOF
18473 cat confdefs.h >>conftest.$ac_ext
18474 cat >>conftest.$ac_ext <<_ACEOF
18475 /* end confdefs.h. */
18476 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
18477 For example, HP-UX 11i <limits.h> declares gettimeofday. */
18478 #define $ac_func innocuous_$ac_func
18480 /* System header to define __stub macros and hopefully few prototypes,
18481 which can conflict with char $ac_func (); below.
18482 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
18483 <limits.h> exists even on freestanding compilers. */
18486 # include <limits.h>
18488 # include <assert.h>
18493 /* Override any gcc2 internal prototype to avoid an error. */
18498 /* We use char because int might match the return type of a gcc2
18499 builtin and then its argument prototype would still apply. */
18501 /* The GNU C library defines this for functions which it implements
18502 to always fail with ENOSYS. Some functions are actually named
18503 something starting with __ and the normal name is an alias. */
18504 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
18507 char (*f) () = $ac_func;
18516 return f != $ac_func;
18521 rm -f conftest.$ac_objext conftest$ac_exeext
18522 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
18523 (eval $ac_link) 2>conftest.er1
18525 grep -v '^ *+' conftest.er1 >conftest.err
18527 cat conftest.err >&5
18528 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18529 (exit $ac_status); } &&
18530 { ac_try='test -z "$ac_c_werror_flag"
18531 || test ! -s conftest.err'
18532 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18533 (eval $ac_try) 2>&5
18535 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18536 (exit $ac_status); }; } &&
18537 { ac_try='test -s conftest$ac_exeext'
18538 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18539 (eval $ac_try) 2>&5
18541 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18542 (exit $ac_status); }; }; then
18543 eval "$as_ac_var=yes"
18545 echo "$as_me: failed program was:" >&5
18546 sed 's/^/| /' conftest.$ac_ext >&5
18548 eval "$as_ac_var=no"
18550 rm -f conftest.err conftest.$ac_objext \
18551 conftest$ac_exeext conftest.$ac_ext
18553 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
18554 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
18555 if test `eval echo '${'$as_ac_var'}'` = yes; then
18556 cat >>confdefs.h <<_ACEOF
18557 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
18563 if test "x$ac_cv_func_fork" = xyes; then
18564 echo "$as_me:$LINENO: checking for working fork" >&5
18565 echo $ECHO_N "checking for working fork... $ECHO_C" >&6
18566 if test "${ac_cv_func_fork_works+set}" = set; then
18567 echo $ECHO_N "(cached) $ECHO_C" >&6
18569 if test "$cross_compiling" = yes; then
18570 ac_cv_func_fork_works=cross
18572 cat >conftest.$ac_ext <<_ACEOF
18573 /* By Ruediger Kuhlmann. */
18574 #include <sys/types.h>
18576 # include <unistd.h>
18578 /* Some systems only have a dummy stub for fork() */
18586 rm -f conftest$ac_exeext
18587 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
18588 (eval $ac_link) 2>&5
18590 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18591 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
18592 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18593 (eval $ac_try) 2>&5
18595 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18596 (exit $ac_status); }; }; then
18597 ac_cv_func_fork_works=yes
18599 echo "$as_me: program exited with status $ac_status" >&5
18600 echo "$as_me: failed program was:" >&5
18601 sed 's/^/| /' conftest.$ac_ext >&5
18603 ( exit $ac_status )
18604 ac_cv_func_fork_works=no
18606 rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
18609 echo "$as_me:$LINENO: result: $ac_cv_func_fork_works" >&5
18610 echo "${ECHO_T}$ac_cv_func_fork_works" >&6
18613 ac_cv_func_fork_works=$ac_cv_func_fork
18615 if test "x$ac_cv_func_fork_works" = xcross; then
18617 *-*-amigaos* | *-*-msdosdjgpp*)
18618 # Override, as these systems have only a dummy fork() stub
18619 ac_cv_func_fork_works=no
18622 ac_cv_func_fork_works=yes
18625 { echo "$as_me:$LINENO: WARNING: result $ac_cv_func_fork_works guessed because of cross compilation" >&5
18626 echo "$as_me: WARNING: result $ac_cv_func_fork_works guessed because of cross compilation" >&2;}
18628 ac_cv_func_vfork_works=$ac_cv_func_vfork
18629 if test "x$ac_cv_func_vfork" = xyes; then
18630 echo "$as_me:$LINENO: checking for working vfork" >&5
18631 echo $ECHO_N "checking for working vfork... $ECHO_C" >&6
18632 if test "${ac_cv_func_vfork_works+set}" = set; then
18633 echo $ECHO_N "(cached) $ECHO_C" >&6
18635 if test "$cross_compiling" = yes; then
18636 ac_cv_func_vfork_works=cross
18638 cat >conftest.$ac_ext <<_ACEOF
18641 cat confdefs.h >>conftest.$ac_ext
18642 cat >>conftest.$ac_ext <<_ACEOF
18643 /* end confdefs.h. */
18644 /* Thanks to Paul Eggert for this test. */
18646 #include <stdlib.h>
18647 #include <sys/types.h>
18648 #include <sys/stat.h>
18649 #include <sys/wait.h>
18651 # include <unistd.h>
18654 # include <vfork.h>
18656 /* On some sparc systems, changes by the child to local and incoming
18657 argument registers are propagated back to the parent. The compiler
18658 is told about this with #include <vfork.h>, but some compilers
18659 (e.g. gcc -O) don't grok <vfork.h>. Test for this by using a
18660 static variable whose address is put into a register that is
18661 clobbered by the vfork. */
18664 sparc_address_test (int arg)
18666 sparc_address_test (arg) int arg;
18669 static pid_t child;
18687 pid_t parent = getpid ();
18690 sparc_address_test (0);
18695 /* Here is another test for sparc vfork register problems. This
18696 test uses lots of local variables, at least as many local
18697 variables as main has allocated so far including compiler
18698 temporaries. 4 locals are enough for gcc 1.40.3 on a Solaris
18699 4.1.3 sparc, but we use 8 to be safe. A buggy compiler should
18700 reuse the register of parent for one of the local variables,
18701 since it will think that parent can't possibly be used any more
18702 in this routine. Assigning to the local variable will thus
18703 munge parent in the parent process. */
18705 p = getpid(), p1 = getpid(), p2 = getpid(), p3 = getpid(),
18706 p4 = getpid(), p5 = getpid(), p6 = getpid(), p7 = getpid();
18707 /* Convince the compiler that p..p7 are live; otherwise, it might
18708 use the same hardware register for all 8 local variables. */
18709 if (p != p1 || p != p2 || p != p3 || p != p4
18710 || p != p5 || p != p6 || p != p7)
18713 /* On some systems (e.g. IRIX 3.3), vfork doesn't separate parent
18714 from child file descriptors. If the child closes a descriptor
18715 before it execs or exits, this munges the parent's descriptor
18716 as well. Test for this by closing stdout in the child. */
18717 _exit(close(fileno(stdout)) != 0);
18722 while (wait(&status) != child)
18725 /* Was there some problem with vforking? */
18728 /* Did the child fail? (This shouldn't happen.) */
18731 /* Did the vfork/compiler bug occur? */
18732 || parent != getpid()
18734 /* Did the file descriptor bug occur? */
18735 || fstat(fileno(stdout), &st) != 0
18740 rm -f conftest$ac_exeext
18741 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
18742 (eval $ac_link) 2>&5
18744 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18745 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
18746 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18747 (eval $ac_try) 2>&5
18749 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18750 (exit $ac_status); }; }; then
18751 ac_cv_func_vfork_works=yes
18753 echo "$as_me: program exited with status $ac_status" >&5
18754 echo "$as_me: failed program was:" >&5
18755 sed 's/^/| /' conftest.$ac_ext >&5
18757 ( exit $ac_status )
18758 ac_cv_func_vfork_works=no
18760 rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
18763 echo "$as_me:$LINENO: result: $ac_cv_func_vfork_works" >&5
18764 echo "${ECHO_T}$ac_cv_func_vfork_works" >&6
18767 if test "x$ac_cv_func_fork_works" = xcross; then
18768 ac_cv_func_vfork_works=$ac_cv_func_vfork
18769 { echo "$as_me:$LINENO: WARNING: result $ac_cv_func_vfork_works guessed because of cross compilation" >&5
18770 echo "$as_me: WARNING: result $ac_cv_func_vfork_works guessed because of cross compilation" >&2;}
18773 if test "x$ac_cv_func_vfork_works" = xyes; then
18775 cat >>confdefs.h <<\_ACEOF
18776 #define HAVE_WORKING_VFORK 1
18781 cat >>confdefs.h <<\_ACEOF
18786 if test "x$ac_cv_func_fork_works" = xyes; then
18788 cat >>confdefs.h <<\_ACEOF
18789 #define HAVE_WORKING_FORK 1
18796 for ac_func in canonicalize_file_name realpath
18798 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
18799 echo "$as_me:$LINENO: checking for $ac_func" >&5
18800 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
18801 if eval "test \"\${$as_ac_var+set}\" = set"; then
18802 echo $ECHO_N "(cached) $ECHO_C" >&6
18804 cat >conftest.$ac_ext <<_ACEOF
18807 cat confdefs.h >>conftest.$ac_ext
18808 cat >>conftest.$ac_ext <<_ACEOF
18809 /* end confdefs.h. */
18810 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
18811 For example, HP-UX 11i <limits.h> declares gettimeofday. */
18812 #define $ac_func innocuous_$ac_func
18814 /* System header to define __stub macros and hopefully few prototypes,
18815 which can conflict with char $ac_func (); below.
18816 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
18817 <limits.h> exists even on freestanding compilers. */
18820 # include <limits.h>
18822 # include <assert.h>
18827 /* Override any gcc2 internal prototype to avoid an error. */
18832 /* We use char because int might match the return type of a gcc2
18833 builtin and then its argument prototype would still apply. */
18835 /* The GNU C library defines this for functions which it implements
18836 to always fail with ENOSYS. Some functions are actually named
18837 something starting with __ and the normal name is an alias. */
18838 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
18841 char (*f) () = $ac_func;
18850 return f != $ac_func;
18855 rm -f conftest.$ac_objext conftest$ac_exeext
18856 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
18857 (eval $ac_link) 2>conftest.er1
18859 grep -v '^ *+' conftest.er1 >conftest.err
18861 cat conftest.err >&5
18862 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18863 (exit $ac_status); } &&
18864 { ac_try='test -z "$ac_c_werror_flag"
18865 || test ! -s conftest.err'
18866 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18867 (eval $ac_try) 2>&5
18869 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18870 (exit $ac_status); }; } &&
18871 { ac_try='test -s conftest$ac_exeext'
18872 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18873 (eval $ac_try) 2>&5
18875 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18876 (exit $ac_status); }; }; then
18877 eval "$as_ac_var=yes"
18879 echo "$as_me: failed program was:" >&5
18880 sed 's/^/| /' conftest.$ac_ext >&5
18882 eval "$as_ac_var=no"
18884 rm -f conftest.err conftest.$ac_objext \
18885 conftest$ac_exeext conftest.$ac_ext
18887 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
18888 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
18889 if test `eval echo '${'$as_ac_var'}'` = yes; then
18890 cat >>confdefs.h <<_ACEOF
18891 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
18898 for ac_func in getrusage
18900 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
18901 echo "$as_me:$LINENO: checking for $ac_func" >&5
18902 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
18903 if eval "test \"\${$as_ac_var+set}\" = set"; then
18904 echo $ECHO_N "(cached) $ECHO_C" >&6
18906 cat >conftest.$ac_ext <<_ACEOF
18909 cat confdefs.h >>conftest.$ac_ext
18910 cat >>conftest.$ac_ext <<_ACEOF
18911 /* end confdefs.h. */
18912 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
18913 For example, HP-UX 11i <limits.h> declares gettimeofday. */
18914 #define $ac_func innocuous_$ac_func
18916 /* System header to define __stub macros and hopefully few prototypes,
18917 which can conflict with char $ac_func (); below.
18918 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
18919 <limits.h> exists even on freestanding compilers. */
18922 # include <limits.h>
18924 # include <assert.h>
18929 /* Override any gcc2 internal prototype to avoid an error. */
18934 /* We use char because int might match the return type of a gcc2
18935 builtin and then its argument prototype would still apply. */
18937 /* The GNU C library defines this for functions which it implements
18938 to always fail with ENOSYS. Some functions are actually named
18939 something starting with __ and the normal name is an alias. */
18940 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
18943 char (*f) () = $ac_func;
18952 return f != $ac_func;
18957 rm -f conftest.$ac_objext conftest$ac_exeext
18958 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
18959 (eval $ac_link) 2>conftest.er1
18961 grep -v '^ *+' conftest.er1 >conftest.err
18963 cat conftest.err >&5
18964 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18965 (exit $ac_status); } &&
18966 { ac_try='test -z "$ac_c_werror_flag"
18967 || test ! -s conftest.err'
18968 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18969 (eval $ac_try) 2>&5
18971 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18972 (exit $ac_status); }; } &&
18973 { ac_try='test -s conftest$ac_exeext'
18974 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18975 (eval $ac_try) 2>&5
18977 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18978 (exit $ac_status); }; }; then
18979 eval "$as_ac_var=yes"
18981 echo "$as_me: failed program was:" >&5
18982 sed 's/^/| /' conftest.$ac_ext >&5
18984 eval "$as_ac_var=no"
18986 rm -f conftest.err conftest.$ac_objext \
18987 conftest$ac_exeext conftest.$ac_ext
18989 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
18990 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
18991 if test `eval echo '${'$as_ac_var'}'` = yes; then
18992 cat >>confdefs.h <<_ACEOF
18993 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
19001 for ac_func in getuid getgid
19003 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
19004 echo "$as_me:$LINENO: checking for $ac_func" >&5
19005 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
19006 if eval "test \"\${$as_ac_var+set}\" = set"; then
19007 echo $ECHO_N "(cached) $ECHO_C" >&6
19009 cat >conftest.$ac_ext <<_ACEOF
19012 cat confdefs.h >>conftest.$ac_ext
19013 cat >>conftest.$ac_ext <<_ACEOF
19014 /* end confdefs.h. */
19015 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
19016 For example, HP-UX 11i <limits.h> declares gettimeofday. */
19017 #define $ac_func innocuous_$ac_func
19019 /* System header to define __stub macros and hopefully few prototypes,
19020 which can conflict with char $ac_func (); below.
19021 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
19022 <limits.h> exists even on freestanding compilers. */
19025 # include <limits.h>
19027 # include <assert.h>
19032 /* Override any gcc2 internal prototype to avoid an error. */
19037 /* We use char because int might match the return type of a gcc2
19038 builtin and then its argument prototype would still apply. */
19040 /* The GNU C library defines this for functions which it implements
19041 to always fail with ENOSYS. Some functions are actually named
19042 something starting with __ and the normal name is an alias. */
19043 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
19046 char (*f) () = $ac_func;
19055 return f != $ac_func;
19060 rm -f conftest.$ac_objext conftest$ac_exeext
19061 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
19062 (eval $ac_link) 2>conftest.er1
19064 grep -v '^ *+' conftest.er1 >conftest.err
19066 cat conftest.err >&5
19067 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19068 (exit $ac_status); } &&
19069 { ac_try='test -z "$ac_c_werror_flag"
19070 || test ! -s conftest.err'
19071 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19072 (eval $ac_try) 2>&5
19074 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19075 (exit $ac_status); }; } &&
19076 { ac_try='test -s conftest$ac_exeext'
19077 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19078 (eval $ac_try) 2>&5
19080 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19081 (exit $ac_status); }; }; then
19082 eval "$as_ac_var=yes"
19084 echo "$as_me: failed program was:" >&5
19085 sed 's/^/| /' conftest.$ac_ext >&5
19087 eval "$as_ac_var=no"
19089 rm -f conftest.err conftest.$ac_objext \
19090 conftest$ac_exeext conftest.$ac_ext
19092 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
19093 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
19094 if test `eval echo '${'$as_ac_var'}'` = yes; then
19095 cat >>confdefs.h <<_ACEOF
19096 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
19103 for ac_func in poll
19105 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
19106 echo "$as_me:$LINENO: checking for $ac_func" >&5
19107 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
19108 if eval "test \"\${$as_ac_var+set}\" = set"; then
19109 echo $ECHO_N "(cached) $ECHO_C" >&6
19111 cat >conftest.$ac_ext <<_ACEOF
19114 cat confdefs.h >>conftest.$ac_ext
19115 cat >>conftest.$ac_ext <<_ACEOF
19116 /* end confdefs.h. */
19117 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
19118 For example, HP-UX 11i <limits.h> declares gettimeofday. */
19119 #define $ac_func innocuous_$ac_func
19121 /* System header to define __stub macros and hopefully few prototypes,
19122 which can conflict with char $ac_func (); below.
19123 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
19124 <limits.h> exists even on freestanding compilers. */
19127 # include <limits.h>
19129 # include <assert.h>
19134 /* Override any gcc2 internal prototype to avoid an error. */
19139 /* We use char because int might match the return type of a gcc2
19140 builtin and then its argument prototype would still apply. */
19142 /* The GNU C library defines this for functions which it implements
19143 to always fail with ENOSYS. Some functions are actually named
19144 something starting with __ and the normal name is an alias. */
19145 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
19148 char (*f) () = $ac_func;
19157 return f != $ac_func;
19162 rm -f conftest.$ac_objext conftest$ac_exeext
19163 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
19164 (eval $ac_link) 2>conftest.er1
19166 grep -v '^ *+' conftest.er1 >conftest.err
19168 cat conftest.err >&5
19169 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19170 (exit $ac_status); } &&
19171 { ac_try='test -z "$ac_c_werror_flag"
19172 || test ! -s conftest.err'
19173 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19174 (eval $ac_try) 2>&5
19176 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19177 (exit $ac_status); }; } &&
19178 { ac_try='test -s conftest$ac_exeext'
19179 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19180 (eval $ac_try) 2>&5
19182 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19183 (exit $ac_status); }; }; then
19184 eval "$as_ac_var=yes"
19186 echo "$as_me: failed program was:" >&5
19187 sed 's/^/| /' conftest.$ac_ext >&5
19189 eval "$as_ac_var=no"
19191 rm -f conftest.err conftest.$ac_objext \
19192 conftest$ac_exeext conftest.$ac_ext
19194 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
19195 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
19196 if test `eval echo '${'$as_ac_var'}'` = yes; then
19197 cat >>confdefs.h <<_ACEOF
19198 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
19205 for ac_func in pread64
19207 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
19208 echo "$as_me:$LINENO: checking for $ac_func" >&5
19209 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
19210 if eval "test \"\${$as_ac_var+set}\" = set"; then
19211 echo $ECHO_N "(cached) $ECHO_C" >&6
19213 cat >conftest.$ac_ext <<_ACEOF
19216 cat confdefs.h >>conftest.$ac_ext
19217 cat >>conftest.$ac_ext <<_ACEOF
19218 /* end confdefs.h. */
19219 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
19220 For example, HP-UX 11i <limits.h> declares gettimeofday. */
19221 #define $ac_func innocuous_$ac_func
19223 /* System header to define __stub macros and hopefully few prototypes,
19224 which can conflict with char $ac_func (); below.
19225 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
19226 <limits.h> exists even on freestanding compilers. */
19229 # include <limits.h>
19231 # include <assert.h>
19236 /* Override any gcc2 internal prototype to avoid an error. */
19241 /* We use char because int might match the return type of a gcc2
19242 builtin and then its argument prototype would still apply. */
19244 /* The GNU C library defines this for functions which it implements
19245 to always fail with ENOSYS. Some functions are actually named
19246 something starting with __ and the normal name is an alias. */
19247 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
19250 char (*f) () = $ac_func;
19259 return f != $ac_func;
19264 rm -f conftest.$ac_objext conftest$ac_exeext
19265 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
19266 (eval $ac_link) 2>conftest.er1
19268 grep -v '^ *+' conftest.er1 >conftest.err
19270 cat conftest.err >&5
19271 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19272 (exit $ac_status); } &&
19273 { ac_try='test -z "$ac_c_werror_flag"
19274 || test ! -s conftest.err'
19275 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19276 (eval $ac_try) 2>&5
19278 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19279 (exit $ac_status); }; } &&
19280 { ac_try='test -s conftest$ac_exeext'
19281 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19282 (eval $ac_try) 2>&5
19284 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19285 (exit $ac_status); }; }; then
19286 eval "$as_ac_var=yes"
19288 echo "$as_me: failed program was:" >&5
19289 sed 's/^/| /' conftest.$ac_ext >&5
19291 eval "$as_ac_var=no"
19293 rm -f conftest.err conftest.$ac_objext \
19294 conftest$ac_exeext conftest.$ac_ext
19296 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
19297 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
19298 if test `eval echo '${'$as_ac_var'}'` = yes; then
19299 cat >>confdefs.h <<_ACEOF
19300 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
19307 for ac_func in sbrk
19309 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
19310 echo "$as_me:$LINENO: checking for $ac_func" >&5
19311 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
19312 if eval "test \"\${$as_ac_var+set}\" = set"; then
19313 echo $ECHO_N "(cached) $ECHO_C" >&6
19315 cat >conftest.$ac_ext <<_ACEOF
19318 cat confdefs.h >>conftest.$ac_ext
19319 cat >>conftest.$ac_ext <<_ACEOF
19320 /* end confdefs.h. */
19321 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
19322 For example, HP-UX 11i <limits.h> declares gettimeofday. */
19323 #define $ac_func innocuous_$ac_func
19325 /* System header to define __stub macros and hopefully few prototypes,
19326 which can conflict with char $ac_func (); below.
19327 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
19328 <limits.h> exists even on freestanding compilers. */
19331 # include <limits.h>
19333 # include <assert.h>
19338 /* Override any gcc2 internal prototype to avoid an error. */
19343 /* We use char because int might match the return type of a gcc2
19344 builtin and then its argument prototype would still apply. */
19346 /* The GNU C library defines this for functions which it implements
19347 to always fail with ENOSYS. Some functions are actually named
19348 something starting with __ and the normal name is an alias. */
19349 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
19352 char (*f) () = $ac_func;
19361 return f != $ac_func;
19366 rm -f conftest.$ac_objext conftest$ac_exeext
19367 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
19368 (eval $ac_link) 2>conftest.er1
19370 grep -v '^ *+' conftest.er1 >conftest.err
19372 cat conftest.err >&5
19373 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19374 (exit $ac_status); } &&
19375 { ac_try='test -z "$ac_c_werror_flag"
19376 || test ! -s conftest.err'
19377 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19378 (eval $ac_try) 2>&5
19380 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19381 (exit $ac_status); }; } &&
19382 { ac_try='test -s conftest$ac_exeext'
19383 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19384 (eval $ac_try) 2>&5
19386 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19387 (exit $ac_status); }; }; then
19388 eval "$as_ac_var=yes"
19390 echo "$as_me: failed program was:" >&5
19391 sed 's/^/| /' conftest.$ac_ext >&5
19393 eval "$as_ac_var=no"
19395 rm -f conftest.err conftest.$ac_objext \
19396 conftest$ac_exeext conftest.$ac_ext
19398 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
19399 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
19400 if test `eval echo '${'$as_ac_var'}'` = yes; then
19401 cat >>confdefs.h <<_ACEOF
19402 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
19411 for ac_func in setpgid setpgrp setsid
19413 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
19414 echo "$as_me:$LINENO: checking for $ac_func" >&5
19415 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
19416 if eval "test \"\${$as_ac_var+set}\" = set"; then
19417 echo $ECHO_N "(cached) $ECHO_C" >&6
19419 cat >conftest.$ac_ext <<_ACEOF
19422 cat confdefs.h >>conftest.$ac_ext
19423 cat >>conftest.$ac_ext <<_ACEOF
19424 /* end confdefs.h. */
19425 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
19426 For example, HP-UX 11i <limits.h> declares gettimeofday. */
19427 #define $ac_func innocuous_$ac_func
19429 /* System header to define __stub macros and hopefully few prototypes,
19430 which can conflict with char $ac_func (); below.
19431 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
19432 <limits.h> exists even on freestanding compilers. */
19435 # include <limits.h>
19437 # include <assert.h>
19442 /* Override any gcc2 internal prototype to avoid an error. */
19447 /* We use char because int might match the return type of a gcc2
19448 builtin and then its argument prototype would still apply. */
19450 /* The GNU C library defines this for functions which it implements
19451 to always fail with ENOSYS. Some functions are actually named
19452 something starting with __ and the normal name is an alias. */
19453 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
19456 char (*f) () = $ac_func;
19465 return f != $ac_func;
19470 rm -f conftest.$ac_objext conftest$ac_exeext
19471 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
19472 (eval $ac_link) 2>conftest.er1
19474 grep -v '^ *+' conftest.er1 >conftest.err
19476 cat conftest.err >&5
19477 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19478 (exit $ac_status); } &&
19479 { ac_try='test -z "$ac_c_werror_flag"
19480 || test ! -s conftest.err'
19481 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19482 (eval $ac_try) 2>&5
19484 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19485 (exit $ac_status); }; } &&
19486 { ac_try='test -s conftest$ac_exeext'
19487 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19488 (eval $ac_try) 2>&5
19490 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19491 (exit $ac_status); }; }; then
19492 eval "$as_ac_var=yes"
19494 echo "$as_me: failed program was:" >&5
19495 sed 's/^/| /' conftest.$ac_ext >&5
19497 eval "$as_ac_var=no"
19499 rm -f conftest.err conftest.$ac_objext \
19500 conftest$ac_exeext conftest.$ac_ext
19502 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
19503 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
19504 if test `eval echo '${'$as_ac_var'}'` = yes; then
19505 cat >>confdefs.h <<_ACEOF
19506 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
19515 for ac_func in sigaction sigprocmask sigsetmask
19517 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
19518 echo "$as_me:$LINENO: checking for $ac_func" >&5
19519 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
19520 if eval "test \"\${$as_ac_var+set}\" = set"; then
19521 echo $ECHO_N "(cached) $ECHO_C" >&6
19523 cat >conftest.$ac_ext <<_ACEOF
19526 cat confdefs.h >>conftest.$ac_ext
19527 cat >>conftest.$ac_ext <<_ACEOF
19528 /* end confdefs.h. */
19529 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
19530 For example, HP-UX 11i <limits.h> declares gettimeofday. */
19531 #define $ac_func innocuous_$ac_func
19533 /* System header to define __stub macros and hopefully few prototypes,
19534 which can conflict with char $ac_func (); below.
19535 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
19536 <limits.h> exists even on freestanding compilers. */
19539 # include <limits.h>
19541 # include <assert.h>
19546 /* Override any gcc2 internal prototype to avoid an error. */
19551 /* We use char because int might match the return type of a gcc2
19552 builtin and then its argument prototype would still apply. */
19554 /* The GNU C library defines this for functions which it implements
19555 to always fail with ENOSYS. Some functions are actually named
19556 something starting with __ and the normal name is an alias. */
19557 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
19560 char (*f) () = $ac_func;
19569 return f != $ac_func;
19574 rm -f conftest.$ac_objext conftest$ac_exeext
19575 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
19576 (eval $ac_link) 2>conftest.er1
19578 grep -v '^ *+' conftest.er1 >conftest.err
19580 cat conftest.err >&5
19581 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19582 (exit $ac_status); } &&
19583 { ac_try='test -z "$ac_c_werror_flag"
19584 || test ! -s conftest.err'
19585 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19586 (eval $ac_try) 2>&5
19588 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19589 (exit $ac_status); }; } &&
19590 { ac_try='test -s conftest$ac_exeext'
19591 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19592 (eval $ac_try) 2>&5
19594 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19595 (exit $ac_status); }; }; then
19596 eval "$as_ac_var=yes"
19598 echo "$as_me: failed program was:" >&5
19599 sed 's/^/| /' conftest.$ac_ext >&5
19601 eval "$as_ac_var=no"
19603 rm -f conftest.err conftest.$ac_objext \
19604 conftest$ac_exeext conftest.$ac_ext
19606 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
19607 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
19608 if test `eval echo '${'$as_ac_var'}'` = yes; then
19609 cat >>confdefs.h <<_ACEOF
19610 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
19617 for ac_func in socketpair
19619 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
19620 echo "$as_me:$LINENO: checking for $ac_func" >&5
19621 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
19622 if eval "test \"\${$as_ac_var+set}\" = set"; then
19623 echo $ECHO_N "(cached) $ECHO_C" >&6
19625 cat >conftest.$ac_ext <<_ACEOF
19628 cat confdefs.h >>conftest.$ac_ext
19629 cat >>conftest.$ac_ext <<_ACEOF
19630 /* end confdefs.h. */
19631 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
19632 For example, HP-UX 11i <limits.h> declares gettimeofday. */
19633 #define $ac_func innocuous_$ac_func
19635 /* System header to define __stub macros and hopefully few prototypes,
19636 which can conflict with char $ac_func (); below.
19637 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
19638 <limits.h> exists even on freestanding compilers. */
19641 # include <limits.h>
19643 # include <assert.h>
19648 /* Override any gcc2 internal prototype to avoid an error. */
19653 /* We use char because int might match the return type of a gcc2
19654 builtin and then its argument prototype would still apply. */
19656 /* The GNU C library defines this for functions which it implements
19657 to always fail with ENOSYS. Some functions are actually named
19658 something starting with __ and the normal name is an alias. */
19659 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
19662 char (*f) () = $ac_func;
19671 return f != $ac_func;
19676 rm -f conftest.$ac_objext conftest$ac_exeext
19677 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
19678 (eval $ac_link) 2>conftest.er1
19680 grep -v '^ *+' conftest.er1 >conftest.err
19682 cat conftest.err >&5
19683 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19684 (exit $ac_status); } &&
19685 { ac_try='test -z "$ac_c_werror_flag"
19686 || test ! -s conftest.err'
19687 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19688 (eval $ac_try) 2>&5
19690 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19691 (exit $ac_status); }; } &&
19692 { ac_try='test -s conftest$ac_exeext'
19693 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19694 (eval $ac_try) 2>&5
19696 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19697 (exit $ac_status); }; }; then
19698 eval "$as_ac_var=yes"
19700 echo "$as_me: failed program was:" >&5
19701 sed 's/^/| /' conftest.$ac_ext >&5
19703 eval "$as_ac_var=no"
19705 rm -f conftest.err conftest.$ac_objext \
19706 conftest$ac_exeext conftest.$ac_ext
19708 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
19709 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
19710 if test `eval echo '${'$as_ac_var'}'` = yes; then
19711 cat >>confdefs.h <<_ACEOF
19712 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
19719 for ac_func in syscall
19721 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
19722 echo "$as_me:$LINENO: checking for $ac_func" >&5
19723 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
19724 if eval "test \"\${$as_ac_var+set}\" = set"; then
19725 echo $ECHO_N "(cached) $ECHO_C" >&6
19727 cat >conftest.$ac_ext <<_ACEOF
19730 cat confdefs.h >>conftest.$ac_ext
19731 cat >>conftest.$ac_ext <<_ACEOF
19732 /* end confdefs.h. */
19733 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
19734 For example, HP-UX 11i <limits.h> declares gettimeofday. */
19735 #define $ac_func innocuous_$ac_func
19737 /* System header to define __stub macros and hopefully few prototypes,
19738 which can conflict with char $ac_func (); below.
19739 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
19740 <limits.h> exists even on freestanding compilers. */
19743 # include <limits.h>
19745 # include <assert.h>
19750 /* Override any gcc2 internal prototype to avoid an error. */
19755 /* We use char because int might match the return type of a gcc2
19756 builtin and then its argument prototype would still apply. */
19758 /* The GNU C library defines this for functions which it implements
19759 to always fail with ENOSYS. Some functions are actually named
19760 something starting with __ and the normal name is an alias. */
19761 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
19764 char (*f) () = $ac_func;
19773 return f != $ac_func;
19778 rm -f conftest.$ac_objext conftest$ac_exeext
19779 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
19780 (eval $ac_link) 2>conftest.er1
19782 grep -v '^ *+' conftest.er1 >conftest.err
19784 cat conftest.err >&5
19785 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19786 (exit $ac_status); } &&
19787 { ac_try='test -z "$ac_c_werror_flag"
19788 || test ! -s conftest.err'
19789 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19790 (eval $ac_try) 2>&5
19792 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19793 (exit $ac_status); }; } &&
19794 { ac_try='test -s conftest$ac_exeext'
19795 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19796 (eval $ac_try) 2>&5
19798 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19799 (exit $ac_status); }; }; then
19800 eval "$as_ac_var=yes"
19802 echo "$as_me: failed program was:" >&5
19803 sed 's/^/| /' conftest.$ac_ext >&5
19805 eval "$as_ac_var=no"
19807 rm -f conftest.err conftest.$ac_objext \
19808 conftest$ac_exeext conftest.$ac_ext
19810 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
19811 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
19812 if test `eval echo '${'$as_ac_var'}'` = yes; then
19813 cat >>confdefs.h <<_ACEOF
19814 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
19821 for ac_func in ttrace
19823 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
19824 echo "$as_me:$LINENO: checking for $ac_func" >&5
19825 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
19826 if eval "test \"\${$as_ac_var+set}\" = set"; then
19827 echo $ECHO_N "(cached) $ECHO_C" >&6
19829 cat >conftest.$ac_ext <<_ACEOF
19832 cat confdefs.h >>conftest.$ac_ext
19833 cat >>conftest.$ac_ext <<_ACEOF
19834 /* end confdefs.h. */
19835 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
19836 For example, HP-UX 11i <limits.h> declares gettimeofday. */
19837 #define $ac_func innocuous_$ac_func
19839 /* System header to define __stub macros and hopefully few prototypes,
19840 which can conflict with char $ac_func (); below.
19841 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
19842 <limits.h> exists even on freestanding compilers. */
19845 # include <limits.h>
19847 # include <assert.h>
19852 /* Override any gcc2 internal prototype to avoid an error. */
19857 /* We use char because int might match the return type of a gcc2
19858 builtin and then its argument prototype would still apply. */
19860 /* The GNU C library defines this for functions which it implements
19861 to always fail with ENOSYS. Some functions are actually named
19862 something starting with __ and the normal name is an alias. */
19863 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
19866 char (*f) () = $ac_func;
19875 return f != $ac_func;
19880 rm -f conftest.$ac_objext conftest$ac_exeext
19881 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
19882 (eval $ac_link) 2>conftest.er1
19884 grep -v '^ *+' conftest.er1 >conftest.err
19886 cat conftest.err >&5
19887 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19888 (exit $ac_status); } &&
19889 { ac_try='test -z "$ac_c_werror_flag"
19890 || test ! -s conftest.err'
19891 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19892 (eval $ac_try) 2>&5
19894 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19895 (exit $ac_status); }; } &&
19896 { ac_try='test -s conftest$ac_exeext'
19897 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19898 (eval $ac_try) 2>&5
19900 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19901 (exit $ac_status); }; }; then
19902 eval "$as_ac_var=yes"
19904 echo "$as_me: failed program was:" >&5
19905 sed 's/^/| /' conftest.$ac_ext >&5
19907 eval "$as_ac_var=no"
19909 rm -f conftest.err conftest.$ac_objext \
19910 conftest$ac_exeext conftest.$ac_ext
19912 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
19913 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
19914 if test `eval echo '${'$as_ac_var'}'` = yes; then
19915 cat >>confdefs.h <<_ACEOF
19916 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
19923 for ac_func in wborder
19925 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
19926 echo "$as_me:$LINENO: checking for $ac_func" >&5
19927 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
19928 if eval "test \"\${$as_ac_var+set}\" = set"; then
19929 echo $ECHO_N "(cached) $ECHO_C" >&6
19931 cat >conftest.$ac_ext <<_ACEOF
19934 cat confdefs.h >>conftest.$ac_ext
19935 cat >>conftest.$ac_ext <<_ACEOF
19936 /* end confdefs.h. */
19937 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
19938 For example, HP-UX 11i <limits.h> declares gettimeofday. */
19939 #define $ac_func innocuous_$ac_func
19941 /* System header to define __stub macros and hopefully few prototypes,
19942 which can conflict with char $ac_func (); below.
19943 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
19944 <limits.h> exists even on freestanding compilers. */
19947 # include <limits.h>
19949 # include <assert.h>
19954 /* Override any gcc2 internal prototype to avoid an error. */
19959 /* We use char because int might match the return type of a gcc2
19960 builtin and then its argument prototype would still apply. */
19962 /* The GNU C library defines this for functions which it implements
19963 to always fail with ENOSYS. Some functions are actually named
19964 something starting with __ and the normal name is an alias. */
19965 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
19968 char (*f) () = $ac_func;
19977 return f != $ac_func;
19982 rm -f conftest.$ac_objext conftest$ac_exeext
19983 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
19984 (eval $ac_link) 2>conftest.er1
19986 grep -v '^ *+' conftest.er1 >conftest.err
19988 cat conftest.err >&5
19989 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19990 (exit $ac_status); } &&
19991 { ac_try='test -z "$ac_c_werror_flag"
19992 || test ! -s conftest.err'
19993 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19994 (eval $ac_try) 2>&5
19996 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19997 (exit $ac_status); }; } &&
19998 { ac_try='test -s conftest$ac_exeext'
19999 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20000 (eval $ac_try) 2>&5
20002 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20003 (exit $ac_status); }; }; then
20004 eval "$as_ac_var=yes"
20006 echo "$as_me: failed program was:" >&5
20007 sed 's/^/| /' conftest.$ac_ext >&5
20009 eval "$as_ac_var=no"
20011 rm -f conftest.err conftest.$ac_objext \
20012 conftest$ac_exeext conftest.$ac_ext
20014 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
20015 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
20016 if test `eval echo '${'$as_ac_var'}'` = yes; then
20017 cat >>confdefs.h <<_ACEOF
20018 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
20025 # Check the return and argument types of ptrace. No canned test for
20026 # this, so roll our own.
20027 gdb_ptrace_headers='
20028 #if HAVE_SYS_TYPES_H
20029 # include <sys/types.h>
20031 #if HAVE_SYS_PTRACE_H
20032 # include <sys/ptrace.h>
20035 # include <unistd.h>
20038 # There is no point in checking if we don't have a prototype.
20039 echo "$as_me:$LINENO: checking whether ptrace is declared" >&5
20040 echo $ECHO_N "checking whether ptrace is declared... $ECHO_C" >&6
20041 if test "${ac_cv_have_decl_ptrace+set}" = set; then
20042 echo $ECHO_N "(cached) $ECHO_C" >&6
20044 cat >conftest.$ac_ext <<_ACEOF
20047 cat confdefs.h >>conftest.$ac_ext
20048 cat >>conftest.$ac_ext <<_ACEOF
20049 /* end confdefs.h. */
20050 $gdb_ptrace_headers
20056 char *p = (char *) ptrace;
20063 rm -f conftest.$ac_objext
20064 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
20065 (eval $ac_compile) 2>conftest.er1
20067 grep -v '^ *+' conftest.er1 >conftest.err
20069 cat conftest.err >&5
20070 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20071 (exit $ac_status); } &&
20072 { ac_try='test -z "$ac_c_werror_flag"
20073 || test ! -s conftest.err'
20074 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20075 (eval $ac_try) 2>&5
20077 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20078 (exit $ac_status); }; } &&
20079 { ac_try='test -s conftest.$ac_objext'
20080 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20081 (eval $ac_try) 2>&5
20083 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20084 (exit $ac_status); }; }; then
20085 ac_cv_have_decl_ptrace=yes
20087 echo "$as_me: failed program was:" >&5
20088 sed 's/^/| /' conftest.$ac_ext >&5
20090 ac_cv_have_decl_ptrace=no
20092 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
20094 echo "$as_me:$LINENO: result: $ac_cv_have_decl_ptrace" >&5
20095 echo "${ECHO_T}$ac_cv_have_decl_ptrace" >&6
20096 if test $ac_cv_have_decl_ptrace = yes; then
20098 cat >>confdefs.h <<_ACEOF
20099 #define HAVE_DECL_PTRACE 1
20104 cat >>confdefs.h <<_ACEOF
20105 #define HAVE_DECL_PTRACE 0
20109 : ${gdb_cv_func_ptrace_ret='int'}
20110 : ${gdb_cv_func_ptrace_args='int,int,long,long'}
20115 # Check return type. Varargs (used on GNU/Linux) conflict with the
20116 # empty argument list, so check for that explicitly.
20117 echo "$as_me:$LINENO: checking return type of ptrace" >&5
20118 echo $ECHO_N "checking return type of ptrace... $ECHO_C" >&6
20119 if test "${gdb_cv_func_ptrace_ret+set}" = set; then
20120 echo $ECHO_N "(cached) $ECHO_C" >&6
20122 cat >conftest.$ac_ext <<_ACEOF
20125 cat confdefs.h >>conftest.$ac_ext
20126 cat >>conftest.$ac_ext <<_ACEOF
20127 /* end confdefs.h. */
20128 $gdb_ptrace_headers
20132 extern long ptrace (enum __ptrace_request, ...);
20137 rm -f conftest.$ac_objext
20138 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
20139 (eval $ac_compile) 2>conftest.er1
20141 grep -v '^ *+' conftest.er1 >conftest.err
20143 cat conftest.err >&5
20144 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20145 (exit $ac_status); } &&
20146 { ac_try='test -z "$ac_c_werror_flag"
20147 || test ! -s conftest.err'
20148 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20149 (eval $ac_try) 2>&5
20151 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20152 (exit $ac_status); }; } &&
20153 { ac_try='test -s conftest.$ac_objext'
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); }; }; then
20159 gdb_cv_func_ptrace_ret='long'
20161 echo "$as_me: failed program was:" >&5
20162 sed 's/^/| /' conftest.$ac_ext >&5
20164 cat >conftest.$ac_ext <<_ACEOF
20167 cat confdefs.h >>conftest.$ac_ext
20168 cat >>conftest.$ac_ext <<_ACEOF
20169 /* end confdefs.h. */
20170 $gdb_ptrace_headers
20174 extern int ptrace ();
20179 rm -f conftest.$ac_objext
20180 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
20181 (eval $ac_compile) 2>conftest.er1
20183 grep -v '^ *+' conftest.er1 >conftest.err
20185 cat conftest.err >&5
20186 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20187 (exit $ac_status); } &&
20188 { ac_try='test -z "$ac_c_werror_flag"
20189 || test ! -s conftest.err'
20190 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20191 (eval $ac_try) 2>&5
20193 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20194 (exit $ac_status); }; } &&
20195 { ac_try='test -s conftest.$ac_objext'
20196 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20197 (eval $ac_try) 2>&5
20199 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20200 (exit $ac_status); }; }; then
20201 gdb_cv_func_ptrace_ret='int'
20203 echo "$as_me: failed program was:" >&5
20204 sed 's/^/| /' conftest.$ac_ext >&5
20206 gdb_cv_func_ptrace_ret='long'
20208 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
20210 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
20212 echo "$as_me:$LINENO: result: $gdb_cv_func_ptrace_ret" >&5
20213 echo "${ECHO_T}$gdb_cv_func_ptrace_ret" >&6
20215 cat >>confdefs.h <<_ACEOF
20216 #define PTRACE_TYPE_RET $gdb_cv_func_ptrace_ret
20219 # Check argument types.
20220 echo "$as_me:$LINENO: checking types of arguments for ptrace" >&5
20221 echo $ECHO_N "checking types of arguments for ptrace... $ECHO_C" >&6
20222 if test "${gdb_cv_func_ptrace_args+set}" = set; then
20223 echo $ECHO_N "(cached) $ECHO_C" >&6
20226 cat >conftest.$ac_ext <<_ACEOF
20229 cat confdefs.h >>conftest.$ac_ext
20230 cat >>conftest.$ac_ext <<_ACEOF
20231 /* end confdefs.h. */
20232 $gdb_ptrace_headers
20236 extern long ptrace (enum __ptrace_request, ...);
20241 rm -f conftest.$ac_objext
20242 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
20243 (eval $ac_compile) 2>conftest.er1
20245 grep -v '^ *+' conftest.er1 >conftest.err
20247 cat conftest.err >&5
20248 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20249 (exit $ac_status); } &&
20250 { ac_try='test -z "$ac_c_werror_flag"
20251 || test ! -s conftest.err'
20252 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20253 (eval $ac_try) 2>&5
20255 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20256 (exit $ac_status); }; } &&
20257 { ac_try='test -s conftest.$ac_objext'
20258 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20259 (eval $ac_try) 2>&5
20261 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20262 (exit $ac_status); }; }; then
20263 gdb_cv_func_ptrace_args='int,int,long,long'
20265 echo "$as_me: failed program was:" >&5
20266 sed 's/^/| /' conftest.$ac_ext >&5
20269 for gdb_arg1 in 'int' 'long'; do
20270 for gdb_arg2 in 'pid_t' 'int' 'long'; do
20271 for gdb_arg3 in 'int *' 'caddr_t' 'int' 'long' 'void *'; do
20272 for gdb_arg4 in 'int' 'long'; do
20273 cat >conftest.$ac_ext <<_ACEOF
20276 cat confdefs.h >>conftest.$ac_ext
20277 cat >>conftest.$ac_ext <<_ACEOF
20278 /* end confdefs.h. */
20279 $gdb_ptrace_headers
20284 extern $gdb_cv_func_ptrace_ret
20285 ptrace ($gdb_arg1, $gdb_arg2, $gdb_arg3, $gdb_arg4);
20291 rm -f conftest.$ac_objext
20292 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
20293 (eval $ac_compile) 2>conftest.er1
20295 grep -v '^ *+' conftest.er1 >conftest.err
20297 cat conftest.err >&5
20298 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20299 (exit $ac_status); } &&
20300 { ac_try='test -z "$ac_c_werror_flag"
20301 || test ! -s conftest.err'
20302 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20303 (eval $ac_try) 2>&5
20305 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20306 (exit $ac_status); }; } &&
20307 { ac_try='test -s conftest.$ac_objext'
20308 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20309 (eval $ac_try) 2>&5
20311 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20312 (exit $ac_status); }; }; then
20313 gdb_cv_func_ptrace_args="$gdb_arg1,$gdb_arg2,$gdb_arg3,$gdb_arg4";
20316 echo "$as_me: failed program was:" >&5
20317 sed 's/^/| /' conftest.$ac_ext >&5
20320 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
20321 for gdb_arg5 in 'int *' 'int' 'long'; do
20322 cat >conftest.$ac_ext <<_ACEOF
20325 cat confdefs.h >>conftest.$ac_ext
20326 cat >>conftest.$ac_ext <<_ACEOF
20327 /* end confdefs.h. */
20328 $gdb_ptrace_headers
20333 extern $gdb_cv_func_ptrace_ret
20334 ptrace ($gdb_arg1, $gdb_arg2, $gdb_arg3, $gdb_arg4, $gdb_arg5);
20340 rm -f conftest.$ac_objext
20341 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
20342 (eval $ac_compile) 2>conftest.er1
20344 grep -v '^ *+' conftest.er1 >conftest.err
20346 cat conftest.err >&5
20347 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20348 (exit $ac_status); } &&
20349 { ac_try='test -z "$ac_c_werror_flag"
20350 || test ! -s conftest.err'
20351 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20352 (eval $ac_try) 2>&5
20354 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20355 (exit $ac_status); }; } &&
20356 { ac_try='test -s conftest.$ac_objext'
20357 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20358 (eval $ac_try) 2>&5
20360 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20361 (exit $ac_status); }; }; then
20363 gdb_cv_func_ptrace_args="$gdb_arg1,$gdb_arg2,$gdb_arg3,$gdb_arg4,$gdb_arg5";
20366 echo "$as_me: failed program was:" >&5
20367 sed 's/^/| /' conftest.$ac_ext >&5
20370 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
20376 # Provide a safe default value.
20377 : ${gdb_cv_func_ptrace_args='int,int,long,long'}
20380 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
20382 echo "$as_me:$LINENO: result: $gdb_cv_func_ptrace_args" >&5
20383 echo "${ECHO_T}$gdb_cv_func_ptrace_args" >&6
20384 ac_save_IFS=$IFS; IFS=','
20385 set dummy `echo "$gdb_cv_func_ptrace_args" | sed 's/\*/\*/g'`
20389 cat >>confdefs.h <<_ACEOF
20390 #define PTRACE_TYPE_ARG3 $3
20393 if test -n "$5"; then
20395 cat >>confdefs.h <<_ACEOF
20396 #define PTRACE_TYPE_ARG5 $5
20401 if test "$cross_compiling" = no; then
20402 echo "$as_me:$LINENO: checking whether setpgrp takes no argument" >&5
20403 echo $ECHO_N "checking whether setpgrp takes no argument... $ECHO_C" >&6
20404 if test "${ac_cv_func_setpgrp_void+set}" = set; then
20405 echo $ECHO_N "(cached) $ECHO_C" >&6
20407 if test "$cross_compiling" = yes; then
20408 { { echo "$as_me:$LINENO: error: cannot check setpgrp when cross compiling" >&5
20409 echo "$as_me: error: cannot check setpgrp when cross compiling" >&2;}
20410 { (exit 1); exit 1; }; }
20412 cat >conftest.$ac_ext <<_ACEOF
20415 cat confdefs.h >>conftest.$ac_ext
20416 cat >>conftest.$ac_ext <<_ACEOF
20417 /* end confdefs.h. */
20419 # include <unistd.h>
20425 /* If this system has a BSD-style setpgrp which takes arguments,
20426 setpgrp(1, 1) will fail with ESRCH and return -1, in that case
20427 exit successfully. */
20428 exit (setpgrp (1,1) == -1 ? 0 : 1);
20433 rm -f conftest$ac_exeext
20434 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
20435 (eval $ac_link) 2>&5
20437 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20438 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
20439 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20440 (eval $ac_try) 2>&5
20442 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20443 (exit $ac_status); }; }; then
20444 ac_cv_func_setpgrp_void=no
20446 echo "$as_me: program exited with status $ac_status" >&5
20447 echo "$as_me: failed program was:" >&5
20448 sed 's/^/| /' conftest.$ac_ext >&5
20450 ( exit $ac_status )
20451 ac_cv_func_setpgrp_void=yes
20453 rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
20456 echo "$as_me:$LINENO: result: $ac_cv_func_setpgrp_void" >&5
20457 echo "${ECHO_T}$ac_cv_func_setpgrp_void" >&6
20458 if test $ac_cv_func_setpgrp_void = yes; then
20460 cat >>confdefs.h <<\_ACEOF
20461 #define SETPGRP_VOID 1
20467 echo "$as_me:$LINENO: checking whether setpgrp takes no argument" >&5
20468 echo $ECHO_N "checking whether setpgrp takes no argument... $ECHO_C" >&6
20469 if test "${ac_cv_func_setpgrp_void+set}" = set; then
20470 echo $ECHO_N "(cached) $ECHO_C" >&6
20472 cat >conftest.$ac_ext <<_ACEOF
20475 cat confdefs.h >>conftest.$ac_ext
20476 cat >>conftest.$ac_ext <<_ACEOF
20477 /* end confdefs.h. */
20479 #include <unistd.h>
20485 if (setpgrp(1,1) == -1)
20494 rm -f conftest.$ac_objext
20495 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
20496 (eval $ac_compile) 2>conftest.er1
20498 grep -v '^ *+' conftest.er1 >conftest.err
20500 cat conftest.err >&5
20501 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20502 (exit $ac_status); } &&
20503 { ac_try='test -z "$ac_c_werror_flag"
20504 || test ! -s conftest.err'
20505 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20506 (eval $ac_try) 2>&5
20508 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20509 (exit $ac_status); }; } &&
20510 { ac_try='test -s conftest.$ac_objext'
20511 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20512 (eval $ac_try) 2>&5
20514 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20515 (exit $ac_status); }; }; then
20516 ac_cv_func_setpgrp_void=no
20518 echo "$as_me: failed program was:" >&5
20519 sed 's/^/| /' conftest.$ac_ext >&5
20521 ac_cv_func_setpgrp_void=yes
20523 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
20525 echo "$as_me:$LINENO: result: $ac_cv_func_setpgrp_void" >&5
20526 echo "${ECHO_T}$ac_cv_func_setpgrp_void" >&6
20527 if test $ac_cv_func_setpgrp_void = yes; then
20528 cat >>confdefs.h <<\_ACEOF
20529 #define SETPGRP_VOID 1
20535 # Check if sigsetjmp is available. Using AC_CHECK_FUNCS won't do
20536 # since sigsetjmp might only be defined as a macro.
20537 echo "$as_me:$LINENO: checking for sigsetjmp" >&5
20538 echo $ECHO_N "checking for sigsetjmp... $ECHO_C" >&6
20539 if test "${gdb_cv_func_sigsetjmp+set}" = set; then
20540 echo $ECHO_N "(cached) $ECHO_C" >&6
20542 cat >conftest.$ac_ext <<_ACEOF
20545 cat confdefs.h >>conftest.$ac_ext
20546 cat >>conftest.$ac_ext <<_ACEOF
20547 /* end confdefs.h. */
20549 #include <setjmp.h>
20554 sigjmp_buf env; while (! sigsetjmp (env, 1)) siglongjmp (env, 1);
20559 rm -f conftest.$ac_objext
20560 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
20561 (eval $ac_compile) 2>conftest.er1
20563 grep -v '^ *+' conftest.er1 >conftest.err
20565 cat conftest.err >&5
20566 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20567 (exit $ac_status); } &&
20568 { ac_try='test -z "$ac_c_werror_flag"
20569 || test ! -s conftest.err'
20570 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20571 (eval $ac_try) 2>&5
20573 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20574 (exit $ac_status); }; } &&
20575 { ac_try='test -s conftest.$ac_objext'
20576 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20577 (eval $ac_try) 2>&5
20579 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20580 (exit $ac_status); }; }; then
20581 gdb_cv_func_sigsetjmp=yes
20583 echo "$as_me: failed program was:" >&5
20584 sed 's/^/| /' conftest.$ac_ext >&5
20586 gdb_cv_func_sigsetjmp=no
20588 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
20590 echo "$as_me:$LINENO: result: $gdb_cv_func_sigsetjmp" >&5
20591 echo "${ECHO_T}$gdb_cv_func_sigsetjmp" >&6
20592 if test $gdb_cv_func_sigsetjmp = yes; then
20594 cat >>confdefs.h <<\_ACEOF
20595 #define HAVE_SIGSETJMP 1
20600 # Assume we'll default to using the included libiberty regex.
20601 gdb_use_included_regex=yes
20603 # However, if the system regex is GNU regex, then default to *not*
20604 # using the included regex.
20605 echo "$as_me:$LINENO: checking for GNU regex" >&5
20606 echo $ECHO_N "checking for GNU regex... $ECHO_C" >&6
20607 if test "${gdb_cv_have_gnu_regex+set}" = set; then
20608 echo $ECHO_N "(cached) $ECHO_C" >&6
20610 cat >conftest.$ac_ext <<_ACEOF
20613 cat confdefs.h >>conftest.$ac_ext
20614 cat >>conftest.$ac_ext <<_ACEOF
20615 /* end confdefs.h. */
20616 #include <gnu-versions.h>
20620 #define REGEX_INTERFACE_VERSION 1
20621 #if _GNU_REGEX_INTERFACE_VERSION != REGEX_INTERFACE_VERSION
20622 # error "Version mismatch"
20628 rm -f conftest.$ac_objext
20629 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
20630 (eval $ac_compile) 2>conftest.er1
20632 grep -v '^ *+' conftest.er1 >conftest.err
20634 cat conftest.err >&5
20635 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20636 (exit $ac_status); } &&
20637 { ac_try='test -z "$ac_c_werror_flag"
20638 || test ! -s conftest.err'
20639 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20640 (eval $ac_try) 2>&5
20642 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20643 (exit $ac_status); }; } &&
20644 { ac_try='test -s conftest.$ac_objext'
20645 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20646 (eval $ac_try) 2>&5
20648 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20649 (exit $ac_status); }; }; then
20650 gdb_cv_have_gnu_regex=yes
20652 echo "$as_me: failed program was:" >&5
20653 sed 's/^/| /' conftest.$ac_ext >&5
20655 gdb_cv_have_gnu_regex=no
20657 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
20659 echo "$as_me:$LINENO: result: $gdb_cv_have_gnu_regex" >&5
20660 echo "${ECHO_T}$gdb_cv_have_gnu_regex" >&6
20661 if test $gdb_cv_have_gnu_regex = yes; then
20662 gdb_use_included_regex=no
20666 # Check whether --with-included-regex or --without-included-regex was given.
20667 if test "${with_included_regex+set}" = set; then
20668 withval="$with_included_regex"
20669 gdb_with_regex=$withval
20671 gdb_with_regex=$gdb_use_included_regex
20673 if test "$gdb_with_regex" = yes; then
20675 cat >>confdefs.h <<\_ACEOF
20676 #define USE_INCLUDED_REGEX 1
20681 # Check if <sys/proc.h> defines `struct thread' with a td_pcb member.
20682 echo "$as_me:$LINENO: checking for struct thread.td_pcb" >&5
20683 echo $ECHO_N "checking for struct thread.td_pcb... $ECHO_C" >&6
20684 if test "${ac_cv_member_struct_thread_td_pcb+set}" = set; then
20685 echo $ECHO_N "(cached) $ECHO_C" >&6
20687 cat >conftest.$ac_ext <<_ACEOF
20690 cat confdefs.h >>conftest.$ac_ext
20691 cat >>conftest.$ac_ext <<_ACEOF
20692 /* end confdefs.h. */
20693 #include <sys/param.h>
20694 #include <sys/proc.h>
20700 static struct thread ac_aggr;
20701 if (ac_aggr.td_pcb)
20707 rm -f conftest.$ac_objext
20708 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
20709 (eval $ac_compile) 2>conftest.er1
20711 grep -v '^ *+' conftest.er1 >conftest.err
20713 cat conftest.err >&5
20714 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20715 (exit $ac_status); } &&
20716 { ac_try='test -z "$ac_c_werror_flag"
20717 || test ! -s conftest.err'
20718 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20719 (eval $ac_try) 2>&5
20721 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20722 (exit $ac_status); }; } &&
20723 { ac_try='test -s conftest.$ac_objext'
20724 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20725 (eval $ac_try) 2>&5
20727 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20728 (exit $ac_status); }; }; then
20729 ac_cv_member_struct_thread_td_pcb=yes
20731 echo "$as_me: failed program was:" >&5
20732 sed 's/^/| /' conftest.$ac_ext >&5
20734 cat >conftest.$ac_ext <<_ACEOF
20737 cat confdefs.h >>conftest.$ac_ext
20738 cat >>conftest.$ac_ext <<_ACEOF
20739 /* end confdefs.h. */
20740 #include <sys/param.h>
20741 #include <sys/proc.h>
20747 static struct thread ac_aggr;
20748 if (sizeof ac_aggr.td_pcb)
20754 rm -f conftest.$ac_objext
20755 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
20756 (eval $ac_compile) 2>conftest.er1
20758 grep -v '^ *+' conftest.er1 >conftest.err
20760 cat conftest.err >&5
20761 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20762 (exit $ac_status); } &&
20763 { ac_try='test -z "$ac_c_werror_flag"
20764 || test ! -s conftest.err'
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); }; } &&
20770 { ac_try='test -s conftest.$ac_objext'
20771 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20772 (eval $ac_try) 2>&5
20774 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20775 (exit $ac_status); }; }; then
20776 ac_cv_member_struct_thread_td_pcb=yes
20778 echo "$as_me: failed program was:" >&5
20779 sed 's/^/| /' conftest.$ac_ext >&5
20781 ac_cv_member_struct_thread_td_pcb=no
20783 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
20785 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
20787 echo "$as_me:$LINENO: result: $ac_cv_member_struct_thread_td_pcb" >&5
20788 echo "${ECHO_T}$ac_cv_member_struct_thread_td_pcb" >&6
20789 if test $ac_cv_member_struct_thread_td_pcb = yes; then
20791 cat >>confdefs.h <<_ACEOF
20792 #define HAVE_STRUCT_THREAD_TD_PCB 1
20799 # See if <sys/lwp.h> defines `struct lwp`.
20800 echo "$as_me:$LINENO: checking for struct lwp" >&5
20801 echo $ECHO_N "checking for struct lwp... $ECHO_C" >&6
20802 if test "${gdb_cv_struct_lwp+set}" = set; then
20803 echo $ECHO_N "(cached) $ECHO_C" >&6
20805 cat >conftest.$ac_ext <<_ACEOF
20808 cat confdefs.h >>conftest.$ac_ext
20809 cat >>conftest.$ac_ext <<_ACEOF
20810 /* end confdefs.h. */
20811 #include <sys/param.h>
20812 #include <sys/lwp.h>
20821 rm -f conftest.$ac_objext
20822 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
20823 (eval $ac_compile) 2>conftest.er1
20825 grep -v '^ *+' conftest.er1 >conftest.err
20827 cat conftest.err >&5
20828 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20829 (exit $ac_status); } &&
20830 { ac_try='test -z "$ac_c_werror_flag"
20831 || test ! -s conftest.err'
20832 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20833 (eval $ac_try) 2>&5
20835 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20836 (exit $ac_status); }; } &&
20837 { ac_try='test -s conftest.$ac_objext'
20838 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20839 (eval $ac_try) 2>&5
20841 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20842 (exit $ac_status); }; }; then
20843 gdb_cv_struct_lwp=yes
20845 echo "$as_me: failed program was:" >&5
20846 sed 's/^/| /' conftest.$ac_ext >&5
20848 gdb_cv_struct_lwp=no
20850 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
20852 echo "$as_me:$LINENO: result: $gdb_cv_struct_lwp" >&5
20853 echo "${ECHO_T}$gdb_cv_struct_lwp" >&6
20854 if test $gdb_cv_struct_lwp = yes; then
20856 cat >>confdefs.h <<\_ACEOF
20857 #define HAVE_STRUCT_LWP 1
20862 # See if <machine/reg.h> degines `struct reg'.
20863 echo "$as_me:$LINENO: checking for struct reg in machine/reg.h" >&5
20864 echo $ECHO_N "checking for struct reg in machine/reg.h... $ECHO_C" >&6
20865 if test "${gdb_cv_struct_reg+set}" = set; then
20866 echo $ECHO_N "(cached) $ECHO_C" >&6
20868 cat >conftest.$ac_ext <<_ACEOF
20871 cat confdefs.h >>conftest.$ac_ext
20872 cat >>conftest.$ac_ext <<_ACEOF
20873 /* end confdefs.h. */
20874 #include <sys/types.h>
20875 #include <machine/reg.h>
20884 rm -f conftest.$ac_objext
20885 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
20886 (eval $ac_compile) 2>conftest.er1
20888 grep -v '^ *+' conftest.er1 >conftest.err
20890 cat conftest.err >&5
20891 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20892 (exit $ac_status); } &&
20893 { ac_try='test -z "$ac_c_werror_flag"
20894 || test ! -s conftest.err'
20895 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20896 (eval $ac_try) 2>&5
20898 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20899 (exit $ac_status); }; } &&
20900 { ac_try='test -s conftest.$ac_objext'
20901 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20902 (eval $ac_try) 2>&5
20904 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20905 (exit $ac_status); }; }; then
20906 gdb_cv_struct_reg=yes
20908 echo "$as_me: failed program was:" >&5
20909 sed 's/^/| /' conftest.$ac_ext >&5
20911 gdb_cv_struct_reg=no
20913 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
20915 echo "$as_me:$LINENO: result: $gdb_cv_struct_reg" >&5
20916 echo "${ECHO_T}$gdb_cv_struct_reg" >&6
20917 if test $gdb_cv_struct_reg = yes; then
20919 cat >>confdefs.h <<\_ACEOF
20920 #define HAVE_STRUCT_REG 1
20925 # See if <machine/reg.h> supports the %fs and %gs i386 segment registers.
20926 # Older i386 BSD's don't have the r_fs and r_gs members of `struct reg'.
20927 echo "$as_me:$LINENO: checking for struct reg.r_fs" >&5
20928 echo $ECHO_N "checking for struct reg.r_fs... $ECHO_C" >&6
20929 if test "${ac_cv_member_struct_reg_r_fs+set}" = set; then
20930 echo $ECHO_N "(cached) $ECHO_C" >&6
20932 cat >conftest.$ac_ext <<_ACEOF
20935 cat confdefs.h >>conftest.$ac_ext
20936 cat >>conftest.$ac_ext <<_ACEOF
20937 /* end confdefs.h. */
20938 #include <machine/reg.h>
20943 static struct reg ac_aggr;
20950 rm -f conftest.$ac_objext
20951 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
20952 (eval $ac_compile) 2>conftest.er1
20954 grep -v '^ *+' conftest.er1 >conftest.err
20956 cat conftest.err >&5
20957 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20958 (exit $ac_status); } &&
20959 { ac_try='test -z "$ac_c_werror_flag"
20960 || test ! -s conftest.err'
20961 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20962 (eval $ac_try) 2>&5
20964 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20965 (exit $ac_status); }; } &&
20966 { ac_try='test -s conftest.$ac_objext'
20967 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20968 (eval $ac_try) 2>&5
20970 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20971 (exit $ac_status); }; }; then
20972 ac_cv_member_struct_reg_r_fs=yes
20974 echo "$as_me: failed program was:" >&5
20975 sed 's/^/| /' conftest.$ac_ext >&5
20977 cat >conftest.$ac_ext <<_ACEOF
20980 cat confdefs.h >>conftest.$ac_ext
20981 cat >>conftest.$ac_ext <<_ACEOF
20982 /* end confdefs.h. */
20983 #include <machine/reg.h>
20988 static struct reg ac_aggr;
20989 if (sizeof ac_aggr.r_fs)
20995 rm -f conftest.$ac_objext
20996 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
20997 (eval $ac_compile) 2>conftest.er1
20999 grep -v '^ *+' conftest.er1 >conftest.err
21001 cat conftest.err >&5
21002 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21003 (exit $ac_status); } &&
21004 { ac_try='test -z "$ac_c_werror_flag"
21005 || test ! -s conftest.err'
21006 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21007 (eval $ac_try) 2>&5
21009 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21010 (exit $ac_status); }; } &&
21011 { ac_try='test -s conftest.$ac_objext'
21012 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21013 (eval $ac_try) 2>&5
21015 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21016 (exit $ac_status); }; }; then
21017 ac_cv_member_struct_reg_r_fs=yes
21019 echo "$as_me: failed program was:" >&5
21020 sed 's/^/| /' conftest.$ac_ext >&5
21022 ac_cv_member_struct_reg_r_fs=no
21024 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
21026 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
21028 echo "$as_me:$LINENO: result: $ac_cv_member_struct_reg_r_fs" >&5
21029 echo "${ECHO_T}$ac_cv_member_struct_reg_r_fs" >&6
21030 if test $ac_cv_member_struct_reg_r_fs = yes; then
21032 cat >>confdefs.h <<_ACEOF
21033 #define HAVE_STRUCT_REG_R_FS 1
21038 echo "$as_me:$LINENO: checking for struct reg.r_gs" >&5
21039 echo $ECHO_N "checking for struct reg.r_gs... $ECHO_C" >&6
21040 if test "${ac_cv_member_struct_reg_r_gs+set}" = set; then
21041 echo $ECHO_N "(cached) $ECHO_C" >&6
21043 cat >conftest.$ac_ext <<_ACEOF
21046 cat confdefs.h >>conftest.$ac_ext
21047 cat >>conftest.$ac_ext <<_ACEOF
21048 /* end confdefs.h. */
21049 #include <machine/reg.h>
21054 static struct reg ac_aggr;
21061 rm -f conftest.$ac_objext
21062 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
21063 (eval $ac_compile) 2>conftest.er1
21065 grep -v '^ *+' conftest.er1 >conftest.err
21067 cat conftest.err >&5
21068 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21069 (exit $ac_status); } &&
21070 { ac_try='test -z "$ac_c_werror_flag"
21071 || test ! -s conftest.err'
21072 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21073 (eval $ac_try) 2>&5
21075 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21076 (exit $ac_status); }; } &&
21077 { ac_try='test -s conftest.$ac_objext'
21078 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21079 (eval $ac_try) 2>&5
21081 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21082 (exit $ac_status); }; }; then
21083 ac_cv_member_struct_reg_r_gs=yes
21085 echo "$as_me: failed program was:" >&5
21086 sed 's/^/| /' conftest.$ac_ext >&5
21088 cat >conftest.$ac_ext <<_ACEOF
21091 cat confdefs.h >>conftest.$ac_ext
21092 cat >>conftest.$ac_ext <<_ACEOF
21093 /* end confdefs.h. */
21094 #include <machine/reg.h>
21099 static struct reg ac_aggr;
21100 if (sizeof ac_aggr.r_gs)
21106 rm -f conftest.$ac_objext
21107 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
21108 (eval $ac_compile) 2>conftest.er1
21110 grep -v '^ *+' conftest.er1 >conftest.err
21112 cat conftest.err >&5
21113 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21114 (exit $ac_status); } &&
21115 { ac_try='test -z "$ac_c_werror_flag"
21116 || test ! -s conftest.err'
21117 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21118 (eval $ac_try) 2>&5
21120 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21121 (exit $ac_status); }; } &&
21122 { ac_try='test -s conftest.$ac_objext'
21123 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21124 (eval $ac_try) 2>&5
21126 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21127 (exit $ac_status); }; }; then
21128 ac_cv_member_struct_reg_r_gs=yes
21130 echo "$as_me: failed program was:" >&5
21131 sed 's/^/| /' conftest.$ac_ext >&5
21133 ac_cv_member_struct_reg_r_gs=no
21135 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
21137 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
21139 echo "$as_me:$LINENO: result: $ac_cv_member_struct_reg_r_gs" >&5
21140 echo "${ECHO_T}$ac_cv_member_struct_reg_r_gs" >&6
21141 if test $ac_cv_member_struct_reg_r_gs = yes; then
21143 cat >>confdefs.h <<_ACEOF
21144 #define HAVE_STRUCT_REG_R_GS 1
21151 # See if <sys/ptrace.h> provides the PTRACE_GETREGS request.
21152 echo "$as_me:$LINENO: checking for PTRACE_GETREGS" >&5
21153 echo $ECHO_N "checking for PTRACE_GETREGS... $ECHO_C" >&6
21154 if test "${gdb_cv_have_ptrace_getregs+set}" = set; then
21155 echo $ECHO_N "(cached) $ECHO_C" >&6
21157 cat >conftest.$ac_ext <<_ACEOF
21160 cat confdefs.h >>conftest.$ac_ext
21161 cat >>conftest.$ac_ext <<_ACEOF
21162 /* end confdefs.h. */
21163 #include <sys/ptrace.h>
21172 rm -f conftest.$ac_objext
21173 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
21174 (eval $ac_compile) 2>conftest.er1
21176 grep -v '^ *+' conftest.er1 >conftest.err
21178 cat conftest.err >&5
21179 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21180 (exit $ac_status); } &&
21181 { ac_try='test -z "$ac_c_werror_flag"
21182 || test ! -s conftest.err'
21183 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21184 (eval $ac_try) 2>&5
21186 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21187 (exit $ac_status); }; } &&
21188 { ac_try='test -s conftest.$ac_objext'
21189 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21190 (eval $ac_try) 2>&5
21192 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21193 (exit $ac_status); }; }; then
21194 gdb_cv_have_ptrace_getregs=yes
21196 echo "$as_me: failed program was:" >&5
21197 sed 's/^/| /' conftest.$ac_ext >&5
21199 gdb_cv_have_ptrace_getregs=no
21201 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
21204 echo "$as_me:$LINENO: result: $gdb_cv_have_ptrace_getregs" >&5
21205 echo "${ECHO_T}$gdb_cv_have_ptrace_getregs" >&6
21206 if test $gdb_cv_have_ptrace_getregs = yes; then
21208 cat >>confdefs.h <<\_ACEOF
21209 #define HAVE_PTRACE_GETREGS 1
21214 # See if <sys/ptrace.h> provides the PTRACE_GETFPXREGS request.
21215 echo "$as_me:$LINENO: checking for PTRACE_GETFPXREGS" >&5
21216 echo $ECHO_N "checking for PTRACE_GETFPXREGS... $ECHO_C" >&6
21217 if test "${gdb_cv_have_ptrace_getfpxregs+set}" = set; then
21218 echo $ECHO_N "(cached) $ECHO_C" >&6
21220 cat >conftest.$ac_ext <<_ACEOF
21223 cat confdefs.h >>conftest.$ac_ext
21224 cat >>conftest.$ac_ext <<_ACEOF
21225 /* end confdefs.h. */
21226 #include <sys/ptrace.h>
21235 rm -f conftest.$ac_objext
21236 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
21237 (eval $ac_compile) 2>conftest.er1
21239 grep -v '^ *+' conftest.er1 >conftest.err
21241 cat conftest.err >&5
21242 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21243 (exit $ac_status); } &&
21244 { ac_try='test -z "$ac_c_werror_flag"
21245 || test ! -s conftest.err'
21246 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21247 (eval $ac_try) 2>&5
21249 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21250 (exit $ac_status); }; } &&
21251 { ac_try='test -s conftest.$ac_objext'
21252 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21253 (eval $ac_try) 2>&5
21255 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21256 (exit $ac_status); }; }; then
21257 gdb_cv_have_ptrace_getfpxregs=yes
21259 echo "$as_me: failed program was:" >&5
21260 sed 's/^/| /' conftest.$ac_ext >&5
21262 gdb_cv_have_ptrace_getfpxregs=no
21264 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
21267 echo "$as_me:$LINENO: result: $gdb_cv_have_ptrace_getfpxregs" >&5
21268 echo "${ECHO_T}$gdb_cv_have_ptrace_getfpxregs" >&6
21269 if test $gdb_cv_have_ptrace_getfpxregs = yes; then
21271 cat >>confdefs.h <<\_ACEOF
21272 #define HAVE_PTRACE_GETFPXREGS 1
21277 # See if <sys/ptrace.h> provides the PT_GETDBREGS request.
21278 echo "$as_me:$LINENO: checking for PT_GETDBREGS" >&5
21279 echo $ECHO_N "checking for PT_GETDBREGS... $ECHO_C" >&6
21280 if test "${gdb_cv_have_pt_getdbregs+set}" = set; then
21281 echo $ECHO_N "(cached) $ECHO_C" >&6
21283 cat >conftest.$ac_ext <<_ACEOF
21286 cat confdefs.h >>conftest.$ac_ext
21287 cat >>conftest.$ac_ext <<_ACEOF
21288 /* end confdefs.h. */
21289 #include <sys/types.h>
21290 #include <sys/ptrace.h>
21299 rm -f conftest.$ac_objext
21300 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
21301 (eval $ac_compile) 2>conftest.er1
21303 grep -v '^ *+' conftest.er1 >conftest.err
21305 cat conftest.err >&5
21306 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21307 (exit $ac_status); } &&
21308 { ac_try='test -z "$ac_c_werror_flag"
21309 || test ! -s conftest.err'
21310 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21311 (eval $ac_try) 2>&5
21313 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21314 (exit $ac_status); }; } &&
21315 { ac_try='test -s conftest.$ac_objext'
21316 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21317 (eval $ac_try) 2>&5
21319 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21320 (exit $ac_status); }; }; then
21321 gdb_cv_have_pt_getdbregs=yes
21323 echo "$as_me: failed program was:" >&5
21324 sed 's/^/| /' conftest.$ac_ext >&5
21326 gdb_cv_have_pt_getdbregs=no
21328 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
21331 echo "$as_me:$LINENO: result: $gdb_cv_have_pt_getdbregs" >&5
21332 echo "${ECHO_T}$gdb_cv_have_pt_getdbregs" >&6
21333 if test $gdb_cv_have_pt_getdbregs = yes; then
21335 cat >>confdefs.h <<\_ACEOF
21336 #define HAVE_PT_GETDBREGS 1
21341 # See if <sys/ptrace.h> provides the PT_GETXMMREGS request.
21342 echo "$as_me:$LINENO: checking for PT_GETXMMREGS" >&5
21343 echo $ECHO_N "checking for PT_GETXMMREGS... $ECHO_C" >&6
21344 if test "${gdb_cv_have_pt_getxmmregs+set}" = set; then
21345 echo $ECHO_N "(cached) $ECHO_C" >&6
21347 cat >conftest.$ac_ext <<_ACEOF
21350 cat confdefs.h >>conftest.$ac_ext
21351 cat >>conftest.$ac_ext <<_ACEOF
21352 /* end confdefs.h. */
21353 #include <sys/types.h>
21354 #include <sys/ptrace.h>
21363 rm -f conftest.$ac_objext
21364 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
21365 (eval $ac_compile) 2>conftest.er1
21367 grep -v '^ *+' conftest.er1 >conftest.err
21369 cat conftest.err >&5
21370 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21371 (exit $ac_status); } &&
21372 { ac_try='test -z "$ac_c_werror_flag"
21373 || test ! -s conftest.err'
21374 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21375 (eval $ac_try) 2>&5
21377 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21378 (exit $ac_status); }; } &&
21379 { ac_try='test -s conftest.$ac_objext'
21380 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21381 (eval $ac_try) 2>&5
21383 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21384 (exit $ac_status); }; }; then
21385 gdb_cv_have_pt_getxmmregs=yes
21387 echo "$as_me: failed program was:" >&5
21388 sed 's/^/| /' conftest.$ac_ext >&5
21390 gdb_cv_have_pt_getxmmregs=no
21392 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
21395 echo "$as_me:$LINENO: result: $gdb_cv_have_pt_getxmmregs" >&5
21396 echo "${ECHO_T}$gdb_cv_have_pt_getxmmregs" >&6
21397 if test $gdb_cv_have_pt_getxmmregs = yes; then
21399 cat >>confdefs.h <<\_ACEOF
21400 #define HAVE_PT_GETXMMREGS 1
21405 # Detect which type of /proc is in use, such as for Unixware or Solaris.
21407 if test "${target}" = "${host}"; then
21409 *-*-unixware* | *-*-sysv4.2* | *-*-sysv5* | *-*-interix* )
21411 cat >>confdefs.h <<\_ACEOF
21412 #define NEW_PROC_API 1
21416 *-*-solaris2.[6789] | *-*-solaris2.1[0-9]*)
21418 cat >>confdefs.h <<\_ACEOF
21419 #define NEW_PROC_API 1
21424 # Work around <sys/proc.h> needing _KMEMUSER problem on IRIX 5.
21426 cat >>confdefs.h <<\_ACEOF
21427 #define _KMEMUSER 1
21434 if test "$ac_cv_header_sys_procfs_h" = yes; then
21435 echo "$as_me:$LINENO: checking for pstatus_t in sys/procfs.h" >&5
21436 echo $ECHO_N "checking for pstatus_t in sys/procfs.h... $ECHO_C" >&6
21437 if test "${bfd_cv_have_sys_procfs_type_pstatus_t+set}" = set; then
21438 echo $ECHO_N "(cached) $ECHO_C" >&6
21440 cat >conftest.$ac_ext <<_ACEOF
21443 cat confdefs.h >>conftest.$ac_ext
21444 cat >>conftest.$ac_ext <<_ACEOF
21445 /* end confdefs.h. */
21448 #include <sys/procfs.h>
21457 rm -f conftest.$ac_objext
21458 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
21459 (eval $ac_compile) 2>conftest.er1
21461 grep -v '^ *+' conftest.er1 >conftest.err
21463 cat conftest.err >&5
21464 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21465 (exit $ac_status); } &&
21466 { ac_try='test -z "$ac_c_werror_flag"
21467 || test ! -s conftest.err'
21468 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21469 (eval $ac_try) 2>&5
21471 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21472 (exit $ac_status); }; } &&
21473 { ac_try='test -s conftest.$ac_objext'
21474 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21475 (eval $ac_try) 2>&5
21477 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21478 (exit $ac_status); }; }; then
21479 bfd_cv_have_sys_procfs_type_pstatus_t=yes
21481 echo "$as_me: failed program was:" >&5
21482 sed 's/^/| /' conftest.$ac_ext >&5
21484 bfd_cv_have_sys_procfs_type_pstatus_t=no
21487 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
21490 if test $bfd_cv_have_sys_procfs_type_pstatus_t = yes; then
21492 cat >>confdefs.h <<\_ACEOF
21493 #define HAVE_PSTATUS_T 1
21497 echo "$as_me:$LINENO: result: $bfd_cv_have_sys_procfs_type_pstatus_t" >&5
21498 echo "${ECHO_T}$bfd_cv_have_sys_procfs_type_pstatus_t" >&6
21500 echo "$as_me:$LINENO: checking for prrun_t in sys/procfs.h" >&5
21501 echo $ECHO_N "checking for prrun_t in sys/procfs.h... $ECHO_C" >&6
21502 if test "${bfd_cv_have_sys_procfs_type_prrun_t+set}" = set; then
21503 echo $ECHO_N "(cached) $ECHO_C" >&6
21505 cat >conftest.$ac_ext <<_ACEOF
21508 cat confdefs.h >>conftest.$ac_ext
21509 cat >>conftest.$ac_ext <<_ACEOF
21510 /* end confdefs.h. */
21513 #include <sys/procfs.h>
21522 rm -f conftest.$ac_objext
21523 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
21524 (eval $ac_compile) 2>conftest.er1
21526 grep -v '^ *+' conftest.er1 >conftest.err
21528 cat conftest.err >&5
21529 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21530 (exit $ac_status); } &&
21531 { ac_try='test -z "$ac_c_werror_flag"
21532 || test ! -s conftest.err'
21533 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21534 (eval $ac_try) 2>&5
21536 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21537 (exit $ac_status); }; } &&
21538 { ac_try='test -s conftest.$ac_objext'
21539 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21540 (eval $ac_try) 2>&5
21542 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21543 (exit $ac_status); }; }; then
21544 bfd_cv_have_sys_procfs_type_prrun_t=yes
21546 echo "$as_me: failed program was:" >&5
21547 sed 's/^/| /' conftest.$ac_ext >&5
21549 bfd_cv_have_sys_procfs_type_prrun_t=no
21552 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
21555 if test $bfd_cv_have_sys_procfs_type_prrun_t = yes; then
21557 cat >>confdefs.h <<\_ACEOF
21558 #define HAVE_PRRUN_T 1
21562 echo "$as_me:$LINENO: result: $bfd_cv_have_sys_procfs_type_prrun_t" >&5
21563 echo "${ECHO_T}$bfd_cv_have_sys_procfs_type_prrun_t" >&6
21565 echo "$as_me:$LINENO: checking for gregset_t in sys/procfs.h" >&5
21566 echo $ECHO_N "checking for gregset_t in sys/procfs.h... $ECHO_C" >&6
21567 if test "${bfd_cv_have_sys_procfs_type_gregset_t+set}" = set; then
21568 echo $ECHO_N "(cached) $ECHO_C" >&6
21570 cat >conftest.$ac_ext <<_ACEOF
21573 cat confdefs.h >>conftest.$ac_ext
21574 cat >>conftest.$ac_ext <<_ACEOF
21575 /* end confdefs.h. */
21578 #include <sys/procfs.h>
21587 rm -f conftest.$ac_objext
21588 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
21589 (eval $ac_compile) 2>conftest.er1
21591 grep -v '^ *+' conftest.er1 >conftest.err
21593 cat conftest.err >&5
21594 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21595 (exit $ac_status); } &&
21596 { ac_try='test -z "$ac_c_werror_flag"
21597 || test ! -s conftest.err'
21598 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21599 (eval $ac_try) 2>&5
21601 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21602 (exit $ac_status); }; } &&
21603 { ac_try='test -s conftest.$ac_objext'
21604 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21605 (eval $ac_try) 2>&5
21607 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21608 (exit $ac_status); }; }; then
21609 bfd_cv_have_sys_procfs_type_gregset_t=yes
21611 echo "$as_me: failed program was:" >&5
21612 sed 's/^/| /' conftest.$ac_ext >&5
21614 bfd_cv_have_sys_procfs_type_gregset_t=no
21617 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
21620 if test $bfd_cv_have_sys_procfs_type_gregset_t = yes; then
21622 cat >>confdefs.h <<\_ACEOF
21623 #define HAVE_GREGSET_T 1
21627 echo "$as_me:$LINENO: result: $bfd_cv_have_sys_procfs_type_gregset_t" >&5
21628 echo "${ECHO_T}$bfd_cv_have_sys_procfs_type_gregset_t" >&6
21630 echo "$as_me:$LINENO: checking for fpregset_t in sys/procfs.h" >&5
21631 echo $ECHO_N "checking for fpregset_t in sys/procfs.h... $ECHO_C" >&6
21632 if test "${bfd_cv_have_sys_procfs_type_fpregset_t+set}" = set; then
21633 echo $ECHO_N "(cached) $ECHO_C" >&6
21635 cat >conftest.$ac_ext <<_ACEOF
21638 cat confdefs.h >>conftest.$ac_ext
21639 cat >>conftest.$ac_ext <<_ACEOF
21640 /* end confdefs.h. */
21643 #include <sys/procfs.h>
21652 rm -f conftest.$ac_objext
21653 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
21654 (eval $ac_compile) 2>conftest.er1
21656 grep -v '^ *+' conftest.er1 >conftest.err
21658 cat conftest.err >&5
21659 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21660 (exit $ac_status); } &&
21661 { ac_try='test -z "$ac_c_werror_flag"
21662 || test ! -s conftest.err'
21663 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21664 (eval $ac_try) 2>&5
21666 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21667 (exit $ac_status); }; } &&
21668 { ac_try='test -s conftest.$ac_objext'
21669 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21670 (eval $ac_try) 2>&5
21672 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21673 (exit $ac_status); }; }; then
21674 bfd_cv_have_sys_procfs_type_fpregset_t=yes
21676 echo "$as_me: failed program was:" >&5
21677 sed 's/^/| /' conftest.$ac_ext >&5
21679 bfd_cv_have_sys_procfs_type_fpregset_t=no
21682 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
21685 if test $bfd_cv_have_sys_procfs_type_fpregset_t = yes; then
21687 cat >>confdefs.h <<\_ACEOF
21688 #define HAVE_FPREGSET_T 1
21692 echo "$as_me:$LINENO: result: $bfd_cv_have_sys_procfs_type_fpregset_t" >&5
21693 echo "${ECHO_T}$bfd_cv_have_sys_procfs_type_fpregset_t" >&6
21695 echo "$as_me:$LINENO: checking for prgregset_t in sys/procfs.h" >&5
21696 echo $ECHO_N "checking for prgregset_t in sys/procfs.h... $ECHO_C" >&6
21697 if test "${bfd_cv_have_sys_procfs_type_prgregset_t+set}" = set; then
21698 echo $ECHO_N "(cached) $ECHO_C" >&6
21700 cat >conftest.$ac_ext <<_ACEOF
21703 cat confdefs.h >>conftest.$ac_ext
21704 cat >>conftest.$ac_ext <<_ACEOF
21705 /* end confdefs.h. */
21708 #include <sys/procfs.h>
21717 rm -f conftest.$ac_objext
21718 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
21719 (eval $ac_compile) 2>conftest.er1
21721 grep -v '^ *+' conftest.er1 >conftest.err
21723 cat conftest.err >&5
21724 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21725 (exit $ac_status); } &&
21726 { ac_try='test -z "$ac_c_werror_flag"
21727 || test ! -s conftest.err'
21728 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21729 (eval $ac_try) 2>&5
21731 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21732 (exit $ac_status); }; } &&
21733 { ac_try='test -s conftest.$ac_objext'
21734 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21735 (eval $ac_try) 2>&5
21737 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21738 (exit $ac_status); }; }; then
21739 bfd_cv_have_sys_procfs_type_prgregset_t=yes
21741 echo "$as_me: failed program was:" >&5
21742 sed 's/^/| /' conftest.$ac_ext >&5
21744 bfd_cv_have_sys_procfs_type_prgregset_t=no
21747 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
21750 if test $bfd_cv_have_sys_procfs_type_prgregset_t = yes; then
21752 cat >>confdefs.h <<\_ACEOF
21753 #define HAVE_PRGREGSET_T 1
21757 echo "$as_me:$LINENO: result: $bfd_cv_have_sys_procfs_type_prgregset_t" >&5
21758 echo "${ECHO_T}$bfd_cv_have_sys_procfs_type_prgregset_t" >&6
21760 echo "$as_me:$LINENO: checking for prfpregset_t in sys/procfs.h" >&5
21761 echo $ECHO_N "checking for prfpregset_t in sys/procfs.h... $ECHO_C" >&6
21762 if test "${bfd_cv_have_sys_procfs_type_prfpregset_t+set}" = set; then
21763 echo $ECHO_N "(cached) $ECHO_C" >&6
21765 cat >conftest.$ac_ext <<_ACEOF
21768 cat confdefs.h >>conftest.$ac_ext
21769 cat >>conftest.$ac_ext <<_ACEOF
21770 /* end confdefs.h. */
21773 #include <sys/procfs.h>
21782 rm -f conftest.$ac_objext
21783 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
21784 (eval $ac_compile) 2>conftest.er1
21786 grep -v '^ *+' conftest.er1 >conftest.err
21788 cat conftest.err >&5
21789 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21790 (exit $ac_status); } &&
21791 { ac_try='test -z "$ac_c_werror_flag"
21792 || test ! -s conftest.err'
21793 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21794 (eval $ac_try) 2>&5
21796 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21797 (exit $ac_status); }; } &&
21798 { ac_try='test -s conftest.$ac_objext'
21799 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21800 (eval $ac_try) 2>&5
21802 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21803 (exit $ac_status); }; }; then
21804 bfd_cv_have_sys_procfs_type_prfpregset_t=yes
21806 echo "$as_me: failed program was:" >&5
21807 sed 's/^/| /' conftest.$ac_ext >&5
21809 bfd_cv_have_sys_procfs_type_prfpregset_t=no
21812 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
21815 if test $bfd_cv_have_sys_procfs_type_prfpregset_t = yes; then
21817 cat >>confdefs.h <<\_ACEOF
21818 #define HAVE_PRFPREGSET_T 1
21822 echo "$as_me:$LINENO: result: $bfd_cv_have_sys_procfs_type_prfpregset_t" >&5
21823 echo "${ECHO_T}$bfd_cv_have_sys_procfs_type_prfpregset_t" >&6
21825 echo "$as_me:$LINENO: checking for prgregset32_t in sys/procfs.h" >&5
21826 echo $ECHO_N "checking for prgregset32_t in sys/procfs.h... $ECHO_C" >&6
21827 if test "${bfd_cv_have_sys_procfs_type_prgregset32_t+set}" = set; then
21828 echo $ECHO_N "(cached) $ECHO_C" >&6
21830 cat >conftest.$ac_ext <<_ACEOF
21833 cat confdefs.h >>conftest.$ac_ext
21834 cat >>conftest.$ac_ext <<_ACEOF
21835 /* end confdefs.h. */
21838 #include <sys/procfs.h>
21847 rm -f conftest.$ac_objext
21848 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
21849 (eval $ac_compile) 2>conftest.er1
21851 grep -v '^ *+' conftest.er1 >conftest.err
21853 cat conftest.err >&5
21854 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21855 (exit $ac_status); } &&
21856 { ac_try='test -z "$ac_c_werror_flag"
21857 || test ! -s conftest.err'
21858 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21859 (eval $ac_try) 2>&5
21861 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21862 (exit $ac_status); }; } &&
21863 { ac_try='test -s conftest.$ac_objext'
21864 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21865 (eval $ac_try) 2>&5
21867 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21868 (exit $ac_status); }; }; then
21869 bfd_cv_have_sys_procfs_type_prgregset32_t=yes
21871 echo "$as_me: failed program was:" >&5
21872 sed 's/^/| /' conftest.$ac_ext >&5
21874 bfd_cv_have_sys_procfs_type_prgregset32_t=no
21877 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
21880 if test $bfd_cv_have_sys_procfs_type_prgregset32_t = yes; then
21882 cat >>confdefs.h <<\_ACEOF
21883 #define HAVE_PRGREGSET32_T 1
21887 echo "$as_me:$LINENO: result: $bfd_cv_have_sys_procfs_type_prgregset32_t" >&5
21888 echo "${ECHO_T}$bfd_cv_have_sys_procfs_type_prgregset32_t" >&6
21890 echo "$as_me:$LINENO: checking for prfpregset32_t in sys/procfs.h" >&5
21891 echo $ECHO_N "checking for prfpregset32_t in sys/procfs.h... $ECHO_C" >&6
21892 if test "${bfd_cv_have_sys_procfs_type_prfpregset32_t+set}" = set; then
21893 echo $ECHO_N "(cached) $ECHO_C" >&6
21895 cat >conftest.$ac_ext <<_ACEOF
21898 cat confdefs.h >>conftest.$ac_ext
21899 cat >>conftest.$ac_ext <<_ACEOF
21900 /* end confdefs.h. */
21903 #include <sys/procfs.h>
21907 prfpregset32_t avar
21912 rm -f conftest.$ac_objext
21913 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
21914 (eval $ac_compile) 2>conftest.er1
21916 grep -v '^ *+' conftest.er1 >conftest.err
21918 cat conftest.err >&5
21919 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21920 (exit $ac_status); } &&
21921 { ac_try='test -z "$ac_c_werror_flag"
21922 || test ! -s conftest.err'
21923 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21924 (eval $ac_try) 2>&5
21926 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21927 (exit $ac_status); }; } &&
21928 { ac_try='test -s conftest.$ac_objext'
21929 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21930 (eval $ac_try) 2>&5
21932 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21933 (exit $ac_status); }; }; then
21934 bfd_cv_have_sys_procfs_type_prfpregset32_t=yes
21936 echo "$as_me: failed program was:" >&5
21937 sed 's/^/| /' conftest.$ac_ext >&5
21939 bfd_cv_have_sys_procfs_type_prfpregset32_t=no
21942 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
21945 if test $bfd_cv_have_sys_procfs_type_prfpregset32_t = yes; then
21947 cat >>confdefs.h <<\_ACEOF
21948 #define HAVE_PRFPREGSET32_T 1
21952 echo "$as_me:$LINENO: result: $bfd_cv_have_sys_procfs_type_prfpregset32_t" >&5
21953 echo "${ECHO_T}$bfd_cv_have_sys_procfs_type_prfpregset32_t" >&6
21955 echo "$as_me:$LINENO: checking for lwpid_t in sys/procfs.h" >&5
21956 echo $ECHO_N "checking for lwpid_t in sys/procfs.h... $ECHO_C" >&6
21957 if test "${bfd_cv_have_sys_procfs_type_lwpid_t+set}" = set; then
21958 echo $ECHO_N "(cached) $ECHO_C" >&6
21960 cat >conftest.$ac_ext <<_ACEOF
21963 cat confdefs.h >>conftest.$ac_ext
21964 cat >>conftest.$ac_ext <<_ACEOF
21965 /* end confdefs.h. */
21968 #include <sys/procfs.h>
21977 rm -f conftest.$ac_objext
21978 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
21979 (eval $ac_compile) 2>conftest.er1
21981 grep -v '^ *+' conftest.er1 >conftest.err
21983 cat conftest.err >&5
21984 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21985 (exit $ac_status); } &&
21986 { ac_try='test -z "$ac_c_werror_flag"
21987 || test ! -s conftest.err'
21988 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21989 (eval $ac_try) 2>&5
21991 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21992 (exit $ac_status); }; } &&
21993 { ac_try='test -s conftest.$ac_objext'
21994 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21995 (eval $ac_try) 2>&5
21997 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21998 (exit $ac_status); }; }; then
21999 bfd_cv_have_sys_procfs_type_lwpid_t=yes
22001 echo "$as_me: failed program was:" >&5
22002 sed 's/^/| /' conftest.$ac_ext >&5
22004 bfd_cv_have_sys_procfs_type_lwpid_t=no
22007 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
22010 if test $bfd_cv_have_sys_procfs_type_lwpid_t = yes; then
22012 cat >>confdefs.h <<\_ACEOF
22013 #define HAVE_LWPID_T 1
22017 echo "$as_me:$LINENO: result: $bfd_cv_have_sys_procfs_type_lwpid_t" >&5
22018 echo "${ECHO_T}$bfd_cv_have_sys_procfs_type_lwpid_t" >&6
22020 echo "$as_me:$LINENO: checking for psaddr_t in sys/procfs.h" >&5
22021 echo $ECHO_N "checking for psaddr_t in sys/procfs.h... $ECHO_C" >&6
22022 if test "${bfd_cv_have_sys_procfs_type_psaddr_t+set}" = set; then
22023 echo $ECHO_N "(cached) $ECHO_C" >&6
22025 cat >conftest.$ac_ext <<_ACEOF
22028 cat confdefs.h >>conftest.$ac_ext
22029 cat >>conftest.$ac_ext <<_ACEOF
22030 /* end confdefs.h. */
22033 #include <sys/procfs.h>
22042 rm -f conftest.$ac_objext
22043 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
22044 (eval $ac_compile) 2>conftest.er1
22046 grep -v '^ *+' conftest.er1 >conftest.err
22048 cat conftest.err >&5
22049 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22050 (exit $ac_status); } &&
22051 { ac_try='test -z "$ac_c_werror_flag"
22052 || test ! -s conftest.err'
22053 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
22054 (eval $ac_try) 2>&5
22056 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22057 (exit $ac_status); }; } &&
22058 { ac_try='test -s conftest.$ac_objext'
22059 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
22060 (eval $ac_try) 2>&5
22062 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22063 (exit $ac_status); }; }; then
22064 bfd_cv_have_sys_procfs_type_psaddr_t=yes
22066 echo "$as_me: failed program was:" >&5
22067 sed 's/^/| /' conftest.$ac_ext >&5
22069 bfd_cv_have_sys_procfs_type_psaddr_t=no
22072 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
22075 if test $bfd_cv_have_sys_procfs_type_psaddr_t = yes; then
22077 cat >>confdefs.h <<\_ACEOF
22078 #define HAVE_PSADDR_T 1
22082 echo "$as_me:$LINENO: result: $bfd_cv_have_sys_procfs_type_psaddr_t" >&5
22083 echo "${ECHO_T}$bfd_cv_have_sys_procfs_type_psaddr_t" >&6
22085 echo "$as_me:$LINENO: checking for prsysent_t in sys/procfs.h" >&5
22086 echo $ECHO_N "checking for prsysent_t in sys/procfs.h... $ECHO_C" >&6
22087 if test "${bfd_cv_have_sys_procfs_type_prsysent_t+set}" = set; then
22088 echo $ECHO_N "(cached) $ECHO_C" >&6
22090 cat >conftest.$ac_ext <<_ACEOF
22093 cat confdefs.h >>conftest.$ac_ext
22094 cat >>conftest.$ac_ext <<_ACEOF
22095 /* end confdefs.h. */
22098 #include <sys/procfs.h>
22107 rm -f conftest.$ac_objext
22108 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
22109 (eval $ac_compile) 2>conftest.er1
22111 grep -v '^ *+' conftest.er1 >conftest.err
22113 cat conftest.err >&5
22114 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22115 (exit $ac_status); } &&
22116 { ac_try='test -z "$ac_c_werror_flag"
22117 || test ! -s conftest.err'
22118 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
22119 (eval $ac_try) 2>&5
22121 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22122 (exit $ac_status); }; } &&
22123 { ac_try='test -s conftest.$ac_objext'
22124 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
22125 (eval $ac_try) 2>&5
22127 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22128 (exit $ac_status); }; }; then
22129 bfd_cv_have_sys_procfs_type_prsysent_t=yes
22131 echo "$as_me: failed program was:" >&5
22132 sed 's/^/| /' conftest.$ac_ext >&5
22134 bfd_cv_have_sys_procfs_type_prsysent_t=no
22137 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
22140 if test $bfd_cv_have_sys_procfs_type_prsysent_t = yes; then
22142 cat >>confdefs.h <<\_ACEOF
22143 #define HAVE_PRSYSENT_T 1
22147 echo "$as_me:$LINENO: result: $bfd_cv_have_sys_procfs_type_prsysent_t" >&5
22148 echo "${ECHO_T}$bfd_cv_have_sys_procfs_type_prsysent_t" >&6
22150 echo "$as_me:$LINENO: checking for pr_sigset_t in sys/procfs.h" >&5
22151 echo $ECHO_N "checking for pr_sigset_t in sys/procfs.h... $ECHO_C" >&6
22152 if test "${bfd_cv_have_sys_procfs_type_pr_sigset_t+set}" = set; then
22153 echo $ECHO_N "(cached) $ECHO_C" >&6
22155 cat >conftest.$ac_ext <<_ACEOF
22158 cat confdefs.h >>conftest.$ac_ext
22159 cat >>conftest.$ac_ext <<_ACEOF
22160 /* end confdefs.h. */
22163 #include <sys/procfs.h>
22172 rm -f conftest.$ac_objext
22173 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
22174 (eval $ac_compile) 2>conftest.er1
22176 grep -v '^ *+' conftest.er1 >conftest.err
22178 cat conftest.err >&5
22179 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22180 (exit $ac_status); } &&
22181 { ac_try='test -z "$ac_c_werror_flag"
22182 || test ! -s conftest.err'
22183 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
22184 (eval $ac_try) 2>&5
22186 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22187 (exit $ac_status); }; } &&
22188 { ac_try='test -s conftest.$ac_objext'
22189 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
22190 (eval $ac_try) 2>&5
22192 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22193 (exit $ac_status); }; }; then
22194 bfd_cv_have_sys_procfs_type_pr_sigset_t=yes
22196 echo "$as_me: failed program was:" >&5
22197 sed 's/^/| /' conftest.$ac_ext >&5
22199 bfd_cv_have_sys_procfs_type_pr_sigset_t=no
22202 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
22205 if test $bfd_cv_have_sys_procfs_type_pr_sigset_t = yes; then
22207 cat >>confdefs.h <<\_ACEOF
22208 #define HAVE_PR_SIGSET_T 1
22212 echo "$as_me:$LINENO: result: $bfd_cv_have_sys_procfs_type_pr_sigset_t" >&5
22213 echo "${ECHO_T}$bfd_cv_have_sys_procfs_type_pr_sigset_t" >&6
22215 echo "$as_me:$LINENO: checking for pr_sigaction64_t in sys/procfs.h" >&5
22216 echo $ECHO_N "checking for pr_sigaction64_t in sys/procfs.h... $ECHO_C" >&6
22217 if test "${bfd_cv_have_sys_procfs_type_pr_sigaction64_t+set}" = set; then
22218 echo $ECHO_N "(cached) $ECHO_C" >&6
22220 cat >conftest.$ac_ext <<_ACEOF
22223 cat confdefs.h >>conftest.$ac_ext
22224 cat >>conftest.$ac_ext <<_ACEOF
22225 /* end confdefs.h. */
22228 #include <sys/procfs.h>
22232 pr_sigaction64_t avar
22237 rm -f conftest.$ac_objext
22238 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
22239 (eval $ac_compile) 2>conftest.er1
22241 grep -v '^ *+' conftest.er1 >conftest.err
22243 cat conftest.err >&5
22244 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22245 (exit $ac_status); } &&
22246 { ac_try='test -z "$ac_c_werror_flag"
22247 || test ! -s conftest.err'
22248 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
22249 (eval $ac_try) 2>&5
22251 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22252 (exit $ac_status); }; } &&
22253 { ac_try='test -s conftest.$ac_objext'
22254 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
22255 (eval $ac_try) 2>&5
22257 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22258 (exit $ac_status); }; }; then
22259 bfd_cv_have_sys_procfs_type_pr_sigaction64_t=yes
22261 echo "$as_me: failed program was:" >&5
22262 sed 's/^/| /' conftest.$ac_ext >&5
22264 bfd_cv_have_sys_procfs_type_pr_sigaction64_t=no
22267 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
22270 if test $bfd_cv_have_sys_procfs_type_pr_sigaction64_t = yes; then
22272 cat >>confdefs.h <<\_ACEOF
22273 #define HAVE_PR_SIGACTION64_T 1
22277 echo "$as_me:$LINENO: result: $bfd_cv_have_sys_procfs_type_pr_sigaction64_t" >&5
22278 echo "${ECHO_T}$bfd_cv_have_sys_procfs_type_pr_sigaction64_t" >&6
22280 echo "$as_me:$LINENO: checking for pr_siginfo64_t in sys/procfs.h" >&5
22281 echo $ECHO_N "checking for pr_siginfo64_t in sys/procfs.h... $ECHO_C" >&6
22282 if test "${bfd_cv_have_sys_procfs_type_pr_siginfo64_t+set}" = set; then
22283 echo $ECHO_N "(cached) $ECHO_C" >&6
22285 cat >conftest.$ac_ext <<_ACEOF
22288 cat confdefs.h >>conftest.$ac_ext
22289 cat >>conftest.$ac_ext <<_ACEOF
22290 /* end confdefs.h. */
22293 #include <sys/procfs.h>
22297 pr_siginfo64_t avar
22302 rm -f conftest.$ac_objext
22303 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
22304 (eval $ac_compile) 2>conftest.er1
22306 grep -v '^ *+' conftest.er1 >conftest.err
22308 cat conftest.err >&5
22309 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22310 (exit $ac_status); } &&
22311 { ac_try='test -z "$ac_c_werror_flag"
22312 || test ! -s conftest.err'
22313 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
22314 (eval $ac_try) 2>&5
22316 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22317 (exit $ac_status); }; } &&
22318 { ac_try='test -s conftest.$ac_objext'
22319 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
22320 (eval $ac_try) 2>&5
22322 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22323 (exit $ac_status); }; }; then
22324 bfd_cv_have_sys_procfs_type_pr_siginfo64_t=yes
22326 echo "$as_me: failed program was:" >&5
22327 sed 's/^/| /' conftest.$ac_ext >&5
22329 bfd_cv_have_sys_procfs_type_pr_siginfo64_t=no
22332 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
22335 if test $bfd_cv_have_sys_procfs_type_pr_siginfo64_t = yes; then
22337 cat >>confdefs.h <<\_ACEOF
22338 #define HAVE_PR_SIGINFO64_T 1
22342 echo "$as_me:$LINENO: result: $bfd_cv_have_sys_procfs_type_pr_siginfo64_t" >&5
22343 echo "${ECHO_T}$bfd_cv_have_sys_procfs_type_pr_siginfo64_t" >&6
22349 if test $bfd_cv_have_sys_procfs_type_prfpregset_t = yes; then
22350 echo "$as_me:$LINENO: checking whether prfpregset_t type is broken" >&5
22351 echo $ECHO_N "checking whether prfpregset_t type is broken... $ECHO_C" >&6
22352 if test "${gdb_cv_prfpregset_t_broken+set}" = set; then
22353 echo $ECHO_N "(cached) $ECHO_C" >&6
22355 if test "$cross_compiling" = yes; then
22356 gdb_cv_prfpregset_t_broken=yes
22358 cat >conftest.$ac_ext <<_ACEOF
22361 cat confdefs.h >>conftest.$ac_ext
22362 cat >>conftest.$ac_ext <<_ACEOF
22363 /* end confdefs.h. */
22364 #include <sys/procfs.h>
22367 if (sizeof (prfpregset_t) == sizeof (void *))
22372 rm -f conftest$ac_exeext
22373 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
22374 (eval $ac_link) 2>&5
22376 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22377 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
22378 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
22379 (eval $ac_try) 2>&5
22381 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22382 (exit $ac_status); }; }; then
22383 gdb_cv_prfpregset_t_broken=no
22385 echo "$as_me: program exited with status $ac_status" >&5
22386 echo "$as_me: failed program was:" >&5
22387 sed 's/^/| /' conftest.$ac_ext >&5
22389 ( exit $ac_status )
22390 gdb_cv_prfpregset_t_broken=yes
22392 rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
22396 echo "$as_me:$LINENO: result: $gdb_cv_prfpregset_t_broken" >&5
22397 echo "${ECHO_T}$gdb_cv_prfpregset_t_broken" >&6
22398 if test $gdb_cv_prfpregset_t_broken = yes; then
22400 cat >>confdefs.h <<\_ACEOF
22401 #define PRFPREGSET_T_BROKEN 1
22408 echo "$as_me:$LINENO: checking for PIOCSET ioctl entry in sys/procfs.h" >&5
22409 echo $ECHO_N "checking for PIOCSET ioctl entry in sys/procfs.h... $ECHO_C" >&6
22410 if test "${gdb_cv_have_procfs_piocset+set}" = set; then
22411 echo $ECHO_N "(cached) $ECHO_C" >&6
22413 cat >conftest.$ac_ext <<_ACEOF
22416 cat confdefs.h >>conftest.$ac_ext
22417 cat >>conftest.$ac_ext <<_ACEOF
22418 /* end confdefs.h. */
22419 #include <unistd.h>
22420 #include <sys/types.h>
22421 #include <sys/procfs.h>
22428 dummy = ioctl(0, PIOCSET, &dummy);
22434 rm -f conftest.$ac_objext
22435 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
22436 (eval $ac_compile) 2>conftest.er1
22438 grep -v '^ *+' conftest.er1 >conftest.err
22440 cat conftest.err >&5
22441 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22442 (exit $ac_status); } &&
22443 { ac_try='test -z "$ac_c_werror_flag"
22444 || test ! -s conftest.err'
22445 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
22446 (eval $ac_try) 2>&5
22448 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22449 (exit $ac_status); }; } &&
22450 { ac_try='test -s conftest.$ac_objext'
22451 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
22452 (eval $ac_try) 2>&5
22454 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22455 (exit $ac_status); }; }; then
22456 gdb_cv_have_procfs_piocset=yes
22458 echo "$as_me: failed program was:" >&5
22459 sed 's/^/| /' conftest.$ac_ext >&5
22461 gdb_cv_have_procfs_piocset=no
22463 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
22466 echo "$as_me:$LINENO: result: $gdb_cv_have_procfs_piocset" >&5
22467 echo "${ECHO_T}$gdb_cv_have_procfs_piocset" >&6
22468 if test $gdb_cv_have_procfs_piocset = yes; then
22470 cat >>confdefs.h <<\_ACEOF
22471 #define HAVE_PROCFS_PIOCSET 1
22477 if test ${host} = ${target} ; then
22479 echo "$as_me:$LINENO: checking for member l_addr in struct link_map" >&5
22480 echo $ECHO_N "checking for member l_addr in struct link_map... $ECHO_C" >&6
22481 if test "${gdb_cv_have_struct_link_map_with_l_members+set}" = set; then
22482 echo $ECHO_N "(cached) $ECHO_C" >&6
22484 cat >conftest.$ac_ext <<_ACEOF
22487 cat confdefs.h >>conftest.$ac_ext
22488 cat >>conftest.$ac_ext <<_ACEOF
22489 /* end confdefs.h. */
22494 struct link_map lm; (void) lm.l_addr;
22499 rm -f conftest.$ac_objext
22500 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
22501 (eval $ac_compile) 2>conftest.er1
22503 grep -v '^ *+' conftest.er1 >conftest.err
22505 cat conftest.err >&5
22506 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22507 (exit $ac_status); } &&
22508 { ac_try='test -z "$ac_c_werror_flag"
22509 || test ! -s conftest.err'
22510 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
22511 (eval $ac_try) 2>&5
22513 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22514 (exit $ac_status); }; } &&
22515 { ac_try='test -s conftest.$ac_objext'
22516 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
22517 (eval $ac_try) 2>&5
22519 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22520 (exit $ac_status); }; }; then
22521 gdb_cv_have_struct_link_map_with_l_members=yes
22523 echo "$as_me: failed program was:" >&5
22524 sed 's/^/| /' conftest.$ac_ext >&5
22526 gdb_cv_have_struct_link_map_with_l_members=no
22528 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
22531 echo "$as_me:$LINENO: result: $gdb_cv_have_struct_link_map_with_l_members" >&5
22532 echo "${ECHO_T}$gdb_cv_have_struct_link_map_with_l_members" >&6
22533 if test $gdb_cv_have_struct_link_map_with_l_members = yes; then
22535 cat >>confdefs.h <<\_ACEOF
22536 #define HAVE_STRUCT_LINK_MAP_WITH_L_MEMBERS 1
22542 echo "$as_me:$LINENO: checking for member lm_addr in struct link_map" >&5
22543 echo $ECHO_N "checking for member lm_addr in struct link_map... $ECHO_C" >&6
22544 if test "${gdb_cv_have_struct_link_map_with_lm_members+set}" = set; then
22545 echo $ECHO_N "(cached) $ECHO_C" >&6
22547 cat >conftest.$ac_ext <<_ACEOF
22550 cat confdefs.h >>conftest.$ac_ext
22551 cat >>conftest.$ac_ext <<_ACEOF
22552 /* end confdefs.h. */
22553 #include <sys/types.h>
22558 struct link_map lm; (void) lm.lm_addr;
22563 rm -f conftest.$ac_objext
22564 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
22565 (eval $ac_compile) 2>conftest.er1
22567 grep -v '^ *+' conftest.er1 >conftest.err
22569 cat conftest.err >&5
22570 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22571 (exit $ac_status); } &&
22572 { ac_try='test -z "$ac_c_werror_flag"
22573 || test ! -s conftest.err'
22574 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
22575 (eval $ac_try) 2>&5
22577 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22578 (exit $ac_status); }; } &&
22579 { ac_try='test -s conftest.$ac_objext'
22580 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
22581 (eval $ac_try) 2>&5
22583 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22584 (exit $ac_status); }; }; then
22585 gdb_cv_have_struct_link_map_with_lm_members=yes
22587 echo "$as_me: failed program was:" >&5
22588 sed 's/^/| /' conftest.$ac_ext >&5
22590 gdb_cv_have_struct_link_map_with_lm_members=no
22592 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
22595 echo "$as_me:$LINENO: result: $gdb_cv_have_struct_link_map_with_lm_members" >&5
22596 echo "${ECHO_T}$gdb_cv_have_struct_link_map_with_lm_members" >&6
22597 if test $gdb_cv_have_struct_link_map_with_lm_members = yes; then
22599 cat >>confdefs.h <<\_ACEOF
22600 #define HAVE_STRUCT_LINK_MAP_WITH_LM_MEMBERS 1
22606 echo "$as_me:$LINENO: checking for member som_addr in struct so_map" >&5
22607 echo $ECHO_N "checking for member som_addr in struct so_map... $ECHO_C" >&6
22608 if test "${gdb_cv_have_struct_so_map_with_som_members+set}" = set; then
22609 echo $ECHO_N "(cached) $ECHO_C" >&6
22611 cat >conftest.$ac_ext <<_ACEOF
22614 cat confdefs.h >>conftest.$ac_ext
22615 cat >>conftest.$ac_ext <<_ACEOF
22616 /* end confdefs.h. */
22617 #include <sys/types.h>
22618 #ifdef HAVE_NLIST_H
22625 struct so_map lm; (void) lm.som_addr;
22630 rm -f conftest.$ac_objext
22631 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
22632 (eval $ac_compile) 2>conftest.er1
22634 grep -v '^ *+' conftest.er1 >conftest.err
22636 cat conftest.err >&5
22637 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22638 (exit $ac_status); } &&
22639 { ac_try='test -z "$ac_c_werror_flag"
22640 || test ! -s conftest.err'
22641 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
22642 (eval $ac_try) 2>&5
22644 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22645 (exit $ac_status); }; } &&
22646 { ac_try='test -s conftest.$ac_objext'
22647 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
22648 (eval $ac_try) 2>&5
22650 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22651 (exit $ac_status); }; }; then
22652 gdb_cv_have_struct_so_map_with_som_members=yes
22654 echo "$as_me: failed program was:" >&5
22655 sed 's/^/| /' conftest.$ac_ext >&5
22657 gdb_cv_have_struct_so_map_with_som_members=no
22659 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
22662 echo "$as_me:$LINENO: result: $gdb_cv_have_struct_so_map_with_som_members" >&5
22663 echo "${ECHO_T}$gdb_cv_have_struct_so_map_with_som_members" >&6
22664 if test $gdb_cv_have_struct_so_map_with_som_members = yes; then
22666 cat >>confdefs.h <<\_ACEOF
22667 #define HAVE_STRUCT_SO_MAP_WITH_SOM_MEMBERS 1
22673 echo "$as_me:$LINENO: checking for struct link_map32 in sys/link.h" >&5
22674 echo $ECHO_N "checking for struct link_map32 in sys/link.h... $ECHO_C" >&6
22675 if test "${gdb_cv_have_struct_link_map32+set}" = set; then
22676 echo $ECHO_N "(cached) $ECHO_C" >&6
22678 cat >conftest.$ac_ext <<_ACEOF
22681 cat confdefs.h >>conftest.$ac_ext
22682 cat >>conftest.$ac_ext <<_ACEOF
22683 /* end confdefs.h. */
22685 #include <sys/link.h>
22689 struct link_map32 l;
22694 rm -f conftest.$ac_objext
22695 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
22696 (eval $ac_compile) 2>conftest.er1
22698 grep -v '^ *+' conftest.er1 >conftest.err
22700 cat conftest.err >&5
22701 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22702 (exit $ac_status); } &&
22703 { ac_try='test -z "$ac_c_werror_flag"
22704 || test ! -s conftest.err'
22705 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
22706 (eval $ac_try) 2>&5
22708 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22709 (exit $ac_status); }; } &&
22710 { ac_try='test -s conftest.$ac_objext'
22711 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
22712 (eval $ac_try) 2>&5
22714 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22715 (exit $ac_status); }; }; then
22716 gdb_cv_have_struct_link_map32=yes
22718 echo "$as_me: failed program was:" >&5
22719 sed 's/^/| /' conftest.$ac_ext >&5
22721 gdb_cv_have_struct_link_map32=no
22723 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
22726 echo "$as_me:$LINENO: result: $gdb_cv_have_struct_link_map32" >&5
22727 echo "${ECHO_T}$gdb_cv_have_struct_link_map32" >&6
22728 if test $gdb_cv_have_struct_link_map32 = yes; then
22730 cat >>confdefs.h <<\_ACEOF
22731 #define HAVE_STRUCT_LINK_MAP32 1
22735 cat >>confdefs.h <<\_ACEOF
22736 #define _SYSCALL32 1
22742 # Check if the compiler supports the `long long' type.
22744 echo "$as_me:$LINENO: checking for long long support in compiler" >&5
22745 echo $ECHO_N "checking for long long support in compiler... $ECHO_C" >&6
22746 if test "${gdb_cv_c_long_long+set}" = set; then
22747 echo $ECHO_N "(cached) $ECHO_C" >&6
22749 cat >conftest.$ac_ext <<_ACEOF
22752 cat confdefs.h >>conftest.$ac_ext
22753 cat >>conftest.$ac_ext <<_ACEOF
22754 /* end confdefs.h. */
22755 extern long long foo;
22759 switch (foo & 2) { case 0: return 1; }
22764 rm -f conftest.$ac_objext
22765 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
22766 (eval $ac_compile) 2>conftest.er1
22768 grep -v '^ *+' conftest.er1 >conftest.err
22770 cat conftest.err >&5
22771 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22772 (exit $ac_status); } &&
22773 { ac_try='test -z "$ac_c_werror_flag"
22774 || test ! -s conftest.err'
22775 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
22776 (eval $ac_try) 2>&5
22778 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22779 (exit $ac_status); }; } &&
22780 { ac_try='test -s conftest.$ac_objext'
22781 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
22782 (eval $ac_try) 2>&5
22784 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22785 (exit $ac_status); }; }; then
22786 gdb_cv_c_long_long=yes
22788 echo "$as_me: failed program was:" >&5
22789 sed 's/^/| /' conftest.$ac_ext >&5
22791 gdb_cv_c_long_long=no
22793 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
22795 echo "$as_me:$LINENO: result: $gdb_cv_c_long_long" >&5
22796 echo "${ECHO_T}$gdb_cv_c_long_long" >&6
22797 if test $gdb_cv_c_long_long = yes; then
22799 cat >>confdefs.h <<\_ACEOF
22800 #define CC_HAS_LONG_LONG 1
22805 # Check if the compiler and runtime support printing long longs.
22807 echo "$as_me:$LINENO: checking for long long support in printf" >&5
22808 echo $ECHO_N "checking for long long support in printf... $ECHO_C" >&6
22809 if test "${gdb_cv_printf_has_long_long+set}" = set; then
22810 echo $ECHO_N "(cached) $ECHO_C" >&6
22812 if test "$cross_compiling" = yes; then
22813 gdb_cv_printf_has_long_long=no
22815 cat >conftest.$ac_ext <<_ACEOF
22818 cat confdefs.h >>conftest.$ac_ext
22819 cat >>conftest.$ac_ext <<_ACEOF
22820 /* end confdefs.h. */
22821 $ac_includes_default
22827 l = (l << 16) + 0x0123;
22828 l = (l << 16) + 0x4567;
22829 l = (l << 16) + 0x89ab;
22830 l = (l << 16) + 0xcdef;
22831 sprintf (buf, "0x%016llx", l);
22832 return (strcmp ("0x0123456789abcdef", buf));
22837 rm -f conftest$ac_exeext
22838 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
22839 (eval $ac_link) 2>&5
22841 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22842 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
22843 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
22844 (eval $ac_try) 2>&5
22846 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22847 (exit $ac_status); }; }; then
22848 gdb_cv_printf_has_long_long=yes
22850 echo "$as_me: program exited with status $ac_status" >&5
22851 echo "$as_me: failed program was:" >&5
22852 sed 's/^/| /' conftest.$ac_ext >&5
22854 ( exit $ac_status )
22855 gdb_cv_printf_has_long_long=no
22857 rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
22860 echo "$as_me:$LINENO: result: $gdb_cv_printf_has_long_long" >&5
22861 echo "${ECHO_T}$gdb_cv_printf_has_long_long" >&6
22862 if test $gdb_cv_printf_has_long_long = yes; then
22864 cat >>confdefs.h <<\_ACEOF
22865 #define PRINTF_HAS_LONG_LONG 1
22870 # Check if the compiler and runtime support printing decfloats.
22872 echo "$as_me:$LINENO: checking for decfloat support in printf" >&5
22873 echo $ECHO_N "checking for decfloat support in printf... $ECHO_C" >&6
22874 if test "${gdb_cv_printf_has_decfloat+set}" = set; then
22875 echo $ECHO_N "(cached) $ECHO_C" >&6
22877 if test "$cross_compiling" = yes; then
22878 gdb_cv_printf_has_decfloat=no
22880 cat >conftest.$ac_ext <<_ACEOF
22883 cat confdefs.h >>conftest.$ac_ext
22884 cat >>conftest.$ac_ext <<_ACEOF
22885 /* end confdefs.h. */
22886 $ac_includes_default
22891 _Decimal32 d32 = 1.2345df;
22892 _Decimal64 d64 = 1.2345dd;
22893 _Decimal128 d128 = 1.2345dl;
22894 sprintf (buf, "Decimal32: %H\nDecimal64: %D\nDecimal128: %DD", d32, d64, d128);
22895 return (strcmp ("Decimal32: 1.2345\nDecimal64: 1.2345\nDecimal128: 1.2345", buf));
22900 rm -f conftest$ac_exeext
22901 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
22902 (eval $ac_link) 2>&5
22904 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22905 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
22906 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
22907 (eval $ac_try) 2>&5
22909 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22910 (exit $ac_status); }; }; then
22911 gdb_cv_printf_has_decfloat=yes
22913 echo "$as_me: program exited with status $ac_status" >&5
22914 echo "$as_me: failed program was:" >&5
22915 sed 's/^/| /' conftest.$ac_ext >&5
22917 ( exit $ac_status )
22918 gdb_cv_printf_has_decfloat=no
22920 rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
22923 echo "$as_me:$LINENO: result: $gdb_cv_printf_has_decfloat" >&5
22924 echo "${ECHO_T}$gdb_cv_printf_has_decfloat" >&6
22925 if test $gdb_cv_printf_has_decfloat = yes; then
22927 cat >>confdefs.h <<\_ACEOF
22928 #define PRINTF_HAS_DECFLOAT 1
22933 # Check if the compiler supports the `long double' type. We can't use
22934 # AC_C_LONG_DOUBLE because that one does additional checks on the
22935 # constants defined in <float.h> that fail on some systems,
22936 # e.g. FreeBSD/i386 4.7 and OpenBSD/i386 3.6.
22938 echo "$as_me:$LINENO: checking for long double support in compiler" >&5
22939 echo $ECHO_N "checking for long double support in compiler... $ECHO_C" >&6
22940 if test "${gdb_cv_c_long_double+set}" = set; then
22941 echo $ECHO_N "(cached) $ECHO_C" >&6
22943 cat >conftest.$ac_ext <<_ACEOF
22946 cat confdefs.h >>conftest.$ac_ext
22947 cat >>conftest.$ac_ext <<_ACEOF
22948 /* end confdefs.h. */
22951 rm -f conftest.$ac_objext
22952 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
22953 (eval $ac_compile) 2>conftest.er1
22955 grep -v '^ *+' conftest.er1 >conftest.err
22957 cat conftest.err >&5
22958 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22959 (exit $ac_status); } &&
22960 { ac_try='test -z "$ac_c_werror_flag"
22961 || test ! -s conftest.err'
22962 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
22963 (eval $ac_try) 2>&5
22965 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22966 (exit $ac_status); }; } &&
22967 { ac_try='test -s conftest.$ac_objext'
22968 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
22969 (eval $ac_try) 2>&5
22971 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22972 (exit $ac_status); }; }; then
22973 gdb_cv_c_long_double=yes
22975 echo "$as_me: failed program was:" >&5
22976 sed 's/^/| /' conftest.$ac_ext >&5
22978 gdb_cv_c_long_double=no
22980 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
22982 echo "$as_me:$LINENO: result: $gdb_cv_c_long_double" >&5
22983 echo "${ECHO_T}$gdb_cv_c_long_double" >&6
22984 if test $gdb_cv_c_long_double = yes; then
22986 cat >>confdefs.h <<\_ACEOF
22987 #define HAVE_LONG_DOUBLE 1
22992 # Check if the compiler and runtime support printing long doubles.
22994 echo "$as_me:$LINENO: checking for long double support in printf" >&5
22995 echo $ECHO_N "checking for long double support in printf... $ECHO_C" >&6
22996 if test "${gdb_cv_printf_has_long_double+set}" = set; then
22997 echo $ECHO_N "(cached) $ECHO_C" >&6
22999 if test "$cross_compiling" = yes; then
23000 gdb_cv_printf_has_long_double=no
23002 cat >conftest.$ac_ext <<_ACEOF
23005 cat confdefs.h >>conftest.$ac_ext
23006 cat >>conftest.$ac_ext <<_ACEOF
23007 /* end confdefs.h. */
23008 $ac_includes_default
23013 long double f = 3.141592653;
23014 sprintf (buf, "%Lg", f);
23015 return (strncmp ("3.14159", buf, 7));
23020 rm -f conftest$ac_exeext
23021 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
23022 (eval $ac_link) 2>&5
23024 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23025 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
23026 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
23027 (eval $ac_try) 2>&5
23029 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23030 (exit $ac_status); }; }; then
23031 gdb_cv_printf_has_long_double=yes
23033 echo "$as_me: program exited with status $ac_status" >&5
23034 echo "$as_me: failed program was:" >&5
23035 sed 's/^/| /' conftest.$ac_ext >&5
23037 ( exit $ac_status )
23038 gdb_cv_printf_has_long_double=no
23040 rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
23043 echo "$as_me:$LINENO: result: $gdb_cv_printf_has_long_double" >&5
23044 echo "${ECHO_T}$gdb_cv_printf_has_long_double" >&6
23045 if test $gdb_cv_printf_has_long_double = yes; then
23047 cat >>confdefs.h <<\_ACEOF
23048 #define PRINTF_HAS_LONG_DOUBLE 1
23053 # Check if the compiler and runtime support scanning long doubles.
23055 echo "$as_me:$LINENO: checking for long double support in scanf" >&5
23056 echo $ECHO_N "checking for long double support in scanf... $ECHO_C" >&6
23057 if test "${gdb_cv_scanf_has_long_double+set}" = set; then
23058 echo $ECHO_N "(cached) $ECHO_C" >&6
23060 if test "$cross_compiling" = yes; then
23061 gdb_cv_scanf_has_long_double=no
23063 cat >conftest.$ac_ext <<_ACEOF
23066 cat confdefs.h >>conftest.$ac_ext
23067 cat >>conftest.$ac_ext <<_ACEOF
23068 /* end confdefs.h. */
23073 char *buf = "3.141592653";
23075 sscanf (buf, "%Lg", &f);
23076 return !(f > 3.14159 && f < 3.14160);
23081 rm -f conftest$ac_exeext
23082 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
23083 (eval $ac_link) 2>&5
23085 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23086 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
23087 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
23088 (eval $ac_try) 2>&5
23090 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23091 (exit $ac_status); }; }; then
23092 gdb_cv_scanf_has_long_double=yes
23094 echo "$as_me: program exited with status $ac_status" >&5
23095 echo "$as_me: failed program was:" >&5
23096 sed 's/^/| /' conftest.$ac_ext >&5
23098 ( exit $ac_status )
23099 gdb_cv_scanf_has_long_double=no
23101 rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
23104 echo "$as_me:$LINENO: result: $gdb_cv_scanf_has_long_double" >&5
23105 echo "${ECHO_T}$gdb_cv_scanf_has_long_double" >&6
23106 if test $gdb_cv_scanf_has_long_double = yes; then
23108 cat >>confdefs.h <<\_ACEOF
23109 #define SCANF_HAS_LONG_DOUBLE 1
23116 echo "$as_me:$LINENO: checking for -bbigtoc option" >&5
23117 echo $ECHO_N "checking for -bbigtoc option... $ECHO_C" >&6
23118 if test "${gdb_cv_bigtoc+set}" = set; then
23119 echo $ECHO_N "(cached) $ECHO_C" >&6
23122 SAVE_LDFLAGS=$LDFLAGS
23125 yes) gdb_cv_bigtoc=-Wl,-bbigtoc ;;
23126 *) gdb_cv_bigtoc=-bbigtoc ;;
23129 LDFLAGS=$LDFLAGS\ $gdb_cv_bigtoc
23130 cat >conftest.$ac_ext <<_ACEOF
23133 cat confdefs.h >>conftest.$ac_ext
23134 cat >>conftest.$ac_ext <<_ACEOF
23135 /* end confdefs.h. */
23145 rm -f conftest.$ac_objext conftest$ac_exeext
23146 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
23147 (eval $ac_link) 2>conftest.er1
23149 grep -v '^ *+' conftest.er1 >conftest.err
23151 cat conftest.err >&5
23152 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23153 (exit $ac_status); } &&
23154 { ac_try='test -z "$ac_c_werror_flag"
23155 || test ! -s conftest.err'
23156 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
23157 (eval $ac_try) 2>&5
23159 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23160 (exit $ac_status); }; } &&
23161 { ac_try='test -s conftest$ac_exeext'
23162 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
23163 (eval $ac_try) 2>&5
23165 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23166 (exit $ac_status); }; }; then
23169 echo "$as_me: failed program was:" >&5
23170 sed 's/^/| /' conftest.$ac_ext >&5
23174 rm -f conftest.err conftest.$ac_objext \
23175 conftest$ac_exeext conftest.$ac_ext
23176 LDFLAGS="${SAVE_LDFLAGS}"
23179 echo "$as_me:$LINENO: result: $gdb_cv_bigtoc" >&5
23180 echo "${ECHO_T}$gdb_cv_bigtoc" >&6
23181 CONFIG_LDFLAGS="${CONFIG_LDFLAGS} ${gdb_cv_bigtoc}"
23187 if test ${build} = ${host} -a ${host} = ${target} ; then
23190 echo "$as_me:$LINENO: checking for HPUX/OSF thread support" >&5
23191 echo $ECHO_N "checking for HPUX/OSF thread support... $ECHO_C" >&6
23192 if test -f /usr/include/dce/cma_config.h ; then
23193 if test "$GCC" = "yes" ; then
23194 echo "$as_me:$LINENO: result: yes" >&5
23195 echo "${ECHO_T}yes" >&6
23197 cat >>confdefs.h <<\_ACEOF
23198 #define HAVE_HPUX_THREAD_SUPPORT 1
23201 CONFIG_OBS="${CONFIG_OBS} hpux-thread.o"
23202 CONFIG_SRCS="${CONFIG_SRCS} hpux-thread.c"
23204 echo "$as_me:$LINENO: result: no (suppressed because you are not using GCC)" >&5
23205 echo "${ECHO_T}no (suppressed because you are not using GCC)" >&6
23208 echo "$as_me:$LINENO: result: no" >&5
23209 echo "${ECHO_T}no" >&6
23213 # See if thread_db library is around for Solaris thread debugging.
23214 # Note that we must explicitly test for version 1 of the library
23215 # because version 0 (present on Solaris 2.4 or earlier) doesn't have
23217 echo "$as_me:$LINENO: checking for Solaris thread debugging library" >&5
23218 echo $ECHO_N "checking for Solaris thread debugging library... $ECHO_C" >&6
23219 if test -f /usr/lib/libthread_db.so.1 ; then
23220 echo "$as_me:$LINENO: result: yes" >&5
23221 echo "${ECHO_T}yes" >&6
23223 cat >>confdefs.h <<\_ACEOF
23224 #define HAVE_THREAD_DB_LIB 1
23227 CONFIG_OBS="${CONFIG_OBS} sol-thread.o"
23228 CONFIG_SRCS="${CONFIG_SRCS} sol-thread.c"
23230 echo "$as_me:$LINENO: checking for dlopen in -ldl" >&5
23231 echo $ECHO_N "checking for dlopen in -ldl... $ECHO_C" >&6
23232 if test "${ac_cv_lib_dl_dlopen+set}" = set; then
23233 echo $ECHO_N "(cached) $ECHO_C" >&6
23235 ac_check_lib_save_LIBS=$LIBS
23237 cat >conftest.$ac_ext <<_ACEOF
23240 cat confdefs.h >>conftest.$ac_ext
23241 cat >>conftest.$ac_ext <<_ACEOF
23242 /* end confdefs.h. */
23244 /* Override any gcc2 internal prototype to avoid an error. */
23248 /* We use char because int might match the return type of a gcc2
23249 builtin and then its argument prototype would still apply. */
23259 rm -f conftest.$ac_objext conftest$ac_exeext
23260 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
23261 (eval $ac_link) 2>conftest.er1
23263 grep -v '^ *+' conftest.er1 >conftest.err
23265 cat conftest.err >&5
23266 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23267 (exit $ac_status); } &&
23268 { ac_try='test -z "$ac_c_werror_flag"
23269 || test ! -s conftest.err'
23270 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
23271 (eval $ac_try) 2>&5
23273 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23274 (exit $ac_status); }; } &&
23275 { ac_try='test -s conftest$ac_exeext'
23276 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
23277 (eval $ac_try) 2>&5
23279 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23280 (exit $ac_status); }; }; then
23281 ac_cv_lib_dl_dlopen=yes
23283 echo "$as_me: failed program was:" >&5
23284 sed 's/^/| /' conftest.$ac_ext >&5
23286 ac_cv_lib_dl_dlopen=no
23288 rm -f conftest.err conftest.$ac_objext \
23289 conftest$ac_exeext conftest.$ac_ext
23290 LIBS=$ac_check_lib_save_LIBS
23292 echo "$as_me:$LINENO: result: $ac_cv_lib_dl_dlopen" >&5
23293 echo "${ECHO_T}$ac_cv_lib_dl_dlopen" >&6
23294 if test $ac_cv_lib_dl_dlopen = yes; then
23295 cat >>confdefs.h <<_ACEOF
23296 #define HAVE_LIBDL 1
23303 if test "$GCC" = "yes" ; then
23304 # The GNU linker requires the -export-dynamic option to make
23305 # all symbols visible in the dynamic symbol table.
23306 hold_ldflags=$LDFLAGS
23307 echo "$as_me:$LINENO: checking for the ld -export-dynamic flag" >&5
23308 echo $ECHO_N "checking for the ld -export-dynamic flag... $ECHO_C" >&6
23309 LDFLAGS="${LDFLAGS} -Wl,-export-dynamic"
23310 cat >conftest.$ac_ext <<_ACEOF
23313 cat confdefs.h >>conftest.$ac_ext
23314 cat >>conftest.$ac_ext <<_ACEOF
23315 /* end confdefs.h. */
23325 rm -f conftest.$ac_objext conftest$ac_exeext
23326 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
23327 (eval $ac_link) 2>conftest.er1
23329 grep -v '^ *+' conftest.er1 >conftest.err
23331 cat conftest.err >&5
23332 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23333 (exit $ac_status); } &&
23334 { ac_try='test -z "$ac_c_werror_flag"
23335 || test ! -s conftest.err'
23336 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
23337 (eval $ac_try) 2>&5
23339 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23340 (exit $ac_status); }; } &&
23341 { ac_try='test -s conftest$ac_exeext'
23342 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
23343 (eval $ac_try) 2>&5
23345 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23346 (exit $ac_status); }; }; then
23349 echo "$as_me: failed program was:" >&5
23350 sed 's/^/| /' conftest.$ac_ext >&5
23354 rm -f conftest.err conftest.$ac_objext \
23355 conftest$ac_exeext conftest.$ac_ext
23356 LDFLAGS=$hold_ldflags
23357 echo "$as_me:$LINENO: result: $found" >&5
23358 echo "${ECHO_T}$found" >&6
23359 if test $found = yes; then
23360 CONFIG_LDFLAGS="${CONFIG_LDFLAGS} -Wl,-export-dynamic"
23363 # Sun randomly tweaked the prototypes in <proc_service.h>
23365 echo "$as_me:$LINENO: checking if <proc_service.h> is old" >&5
23366 echo $ECHO_N "checking if <proc_service.h> is old... $ECHO_C" >&6
23367 if test "${gdb_cv_proc_service_is_old+set}" = set; then
23368 echo $ECHO_N "(cached) $ECHO_C" >&6
23371 cat >conftest.$ac_ext <<_ACEOF
23374 cat confdefs.h >>conftest.$ac_ext
23375 cat >>conftest.$ac_ext <<_ACEOF
23376 /* end confdefs.h. */
23378 #include <proc_service.h>
23379 ps_err_e ps_pdwrite
23380 (struct ps_prochandle*, psaddr_t, const void*, size_t);
23390 rm -f conftest.$ac_objext
23391 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
23392 (eval $ac_compile) 2>conftest.er1
23394 grep -v '^ *+' conftest.er1 >conftest.err
23396 cat conftest.err >&5
23397 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23398 (exit $ac_status); } &&
23399 { ac_try='test -z "$ac_c_werror_flag"
23400 || test ! -s conftest.err'
23401 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
23402 (eval $ac_try) 2>&5
23404 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23405 (exit $ac_status); }; } &&
23406 { ac_try='test -s conftest.$ac_objext'
23407 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
23408 (eval $ac_try) 2>&5
23410 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23411 (exit $ac_status); }; }; then
23412 gdb_cv_proc_service_is_old=no
23414 echo "$as_me: failed program was:" >&5
23415 sed 's/^/| /' conftest.$ac_ext >&5
23417 gdb_cv_proc_service_is_old=yes
23419 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
23423 echo "$as_me:$LINENO: result: $gdb_cv_proc_service_is_old" >&5
23424 echo "${ECHO_T}$gdb_cv_proc_service_is_old" >&6
23425 if test $gdb_cv_proc_service_is_old = yes; then
23427 cat >>confdefs.h <<\_ACEOF
23428 #define PROC_SERVICE_IS_OLD 1
23433 echo "$as_me:$LINENO: result: no" >&5
23434 echo "${ECHO_T}no" >&6
23438 echo "$as_me:$LINENO: checking for AiX thread debugging library" >&5
23439 echo $ECHO_N "checking for AiX thread debugging library... $ECHO_C" >&6
23440 if test "${gdb_cv_have_aix_thread_debug+set}" = set; then
23441 echo $ECHO_N "(cached) $ECHO_C" >&6
23443 cat >conftest.$ac_ext <<_ACEOF
23446 cat confdefs.h >>conftest.$ac_ext
23447 cat >>conftest.$ac_ext <<_ACEOF
23448 /* end confdefs.h. */
23449 #include <sys/pthdebug.h>
23453 #ifndef PTHDB_VERSION_3
23460 rm -f conftest.$ac_objext
23461 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
23462 (eval $ac_compile) 2>conftest.er1
23464 grep -v '^ *+' conftest.er1 >conftest.err
23466 cat conftest.err >&5
23467 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23468 (exit $ac_status); } &&
23469 { ac_try='test -z "$ac_c_werror_flag"
23470 || test ! -s conftest.err'
23471 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
23472 (eval $ac_try) 2>&5
23474 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23475 (exit $ac_status); }; } &&
23476 { ac_try='test -s conftest.$ac_objext'
23477 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
23478 (eval $ac_try) 2>&5
23480 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23481 (exit $ac_status); }; }; then
23482 gdb_cv_have_aix_thread_debug=yes
23484 echo "$as_me: failed program was:" >&5
23485 sed 's/^/| /' conftest.$ac_ext >&5
23487 gdb_cv_have_aix_thread_debug=no
23489 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
23492 echo "$as_me:$LINENO: result: $gdb_cv_have_aix_thread_debug" >&5
23493 echo "${ECHO_T}$gdb_cv_have_aix_thread_debug" >&6
23494 if test $gdb_cv_have_aix_thread_debug = yes; then
23495 CONFIG_SRCS="${CONFIG_SRCS} aix-thread.c"
23496 CONFIG_OBS="${CONFIG_OBS} aix-thread.o"
23497 CONFIG_LDFLAGS="${CONFIG_LDFLAGS} -lpthdebug"
23504 if test "x$ac_cv_header_thread_db_h" = "xyes"; then
23505 echo "$as_me:$LINENO: checking whether <thread_db.h> has TD_NOTALLOC" >&5
23506 echo $ECHO_N "checking whether <thread_db.h> has TD_NOTALLOC... $ECHO_C" >&6
23507 if test "${gdb_cv_thread_db_h_has_td_notalloc+set}" = set; then
23508 echo $ECHO_N "(cached) $ECHO_C" >&6
23510 cat >conftest.$ac_ext <<_ACEOF
23513 cat confdefs.h >>conftest.$ac_ext
23514 cat >>conftest.$ac_ext <<_ACEOF
23515 /* end confdefs.h. */
23516 #include <thread_db.h>
23520 int i = TD_NOTALLOC;
23525 rm -f conftest.$ac_objext
23526 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
23527 (eval $ac_compile) 2>conftest.er1
23529 grep -v '^ *+' conftest.er1 >conftest.err
23531 cat conftest.err >&5
23532 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23533 (exit $ac_status); } &&
23534 { ac_try='test -z "$ac_c_werror_flag"
23535 || test ! -s conftest.err'
23536 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
23537 (eval $ac_try) 2>&5
23539 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23540 (exit $ac_status); }; } &&
23541 { ac_try='test -s conftest.$ac_objext'
23542 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
23543 (eval $ac_try) 2>&5
23545 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23546 (exit $ac_status); }; }; then
23547 gdb_cv_thread_db_h_has_td_notalloc=yes
23549 echo "$as_me: failed program was:" >&5
23550 sed 's/^/| /' conftest.$ac_ext >&5
23552 gdb_cv_thread_db_h_has_td_notalloc=no
23555 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
23558 echo "$as_me:$LINENO: result: $gdb_cv_thread_db_h_has_td_notalloc" >&5
23559 echo "${ECHO_T}$gdb_cv_thread_db_h_has_td_notalloc" >&6
23560 echo "$as_me:$LINENO: checking whether <thread_db.h> has TD_VERSION" >&5
23561 echo $ECHO_N "checking whether <thread_db.h> has TD_VERSION... $ECHO_C" >&6
23562 if test "${gdb_cv_thread_db_h_has_td_version+set}" = set; then
23563 echo $ECHO_N "(cached) $ECHO_C" >&6
23565 cat >conftest.$ac_ext <<_ACEOF
23568 cat confdefs.h >>conftest.$ac_ext
23569 cat >>conftest.$ac_ext <<_ACEOF
23570 /* end confdefs.h. */
23571 #include <thread_db.h>
23575 int i = TD_VERSION;
23580 rm -f conftest.$ac_objext
23581 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
23582 (eval $ac_compile) 2>conftest.er1
23584 grep -v '^ *+' conftest.er1 >conftest.err
23586 cat conftest.err >&5
23587 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23588 (exit $ac_status); } &&
23589 { ac_try='test -z "$ac_c_werror_flag"
23590 || test ! -s conftest.err'
23591 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
23592 (eval $ac_try) 2>&5
23594 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23595 (exit $ac_status); }; } &&
23596 { ac_try='test -s conftest.$ac_objext'
23597 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
23598 (eval $ac_try) 2>&5
23600 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23601 (exit $ac_status); }; }; then
23602 gdb_cv_thread_db_h_has_td_version=yes
23604 echo "$as_me: failed program was:" >&5
23605 sed 's/^/| /' conftest.$ac_ext >&5
23607 gdb_cv_thread_db_h_has_td_version=no
23610 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
23613 echo "$as_me:$LINENO: result: $gdb_cv_thread_db_h_has_td_version" >&5
23614 echo "${ECHO_T}$gdb_cv_thread_db_h_has_td_version" >&6
23615 echo "$as_me:$LINENO: checking whether <thread_db.h> has TD_NOTLS" >&5
23616 echo $ECHO_N "checking whether <thread_db.h> has TD_NOTLS... $ECHO_C" >&6
23617 if test "${gdb_cv_thread_db_h_has_td_notls+set}" = set; then
23618 echo $ECHO_N "(cached) $ECHO_C" >&6
23620 cat >conftest.$ac_ext <<_ACEOF
23623 cat confdefs.h >>conftest.$ac_ext
23624 cat >>conftest.$ac_ext <<_ACEOF
23625 /* end confdefs.h. */
23626 #include <thread_db.h>
23635 rm -f conftest.$ac_objext
23636 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
23637 (eval $ac_compile) 2>conftest.er1
23639 grep -v '^ *+' conftest.er1 >conftest.err
23641 cat conftest.err >&5
23642 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23643 (exit $ac_status); } &&
23644 { ac_try='test -z "$ac_c_werror_flag"
23645 || test ! -s conftest.err'
23646 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
23647 (eval $ac_try) 2>&5
23649 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23650 (exit $ac_status); }; } &&
23651 { ac_try='test -s conftest.$ac_objext'
23652 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
23653 (eval $ac_try) 2>&5
23655 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23656 (exit $ac_status); }; }; then
23657 gdb_cv_thread_db_h_has_td_notls=yes
23659 echo "$as_me: failed program was:" >&5
23660 sed 's/^/| /' conftest.$ac_ext >&5
23662 gdb_cv_thread_db_h_has_td_notls=no
23665 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
23668 echo "$as_me:$LINENO: result: $gdb_cv_thread_db_h_has_td_notls" >&5
23669 echo "${ECHO_T}$gdb_cv_thread_db_h_has_td_notls" >&6
23671 if test "x$gdb_cv_thread_db_h_has_td_notalloc" = "xyes"; then
23673 cat >>confdefs.h <<\_ACEOF
23674 #define THREAD_DB_HAS_TD_NOTALLOC 1
23678 if test "x$gdb_cv_thread_db_h_has_td_version" = "xyes"; then
23680 cat >>confdefs.h <<\_ACEOF
23681 #define THREAD_DB_HAS_TD_VERSION 1
23685 if test "x$gdb_cv_thread_db_h_has_td_notls" = "xyes"; then
23687 cat >>confdefs.h <<\_ACEOF
23688 #define THREAD_DB_HAS_TD_NOTLS 1
23693 if test "x$ac_cv_header_sys_syscall_h" = "xyes"; then
23694 echo "$as_me:$LINENO: checking whether <sys/syscall.h> has __NR_tkill" >&5
23695 echo $ECHO_N "checking whether <sys/syscall.h> has __NR_tkill... $ECHO_C" >&6
23696 if test "${gdb_cv_sys_syscall_h_has_tkill+set}" = set; then
23697 echo $ECHO_N "(cached) $ECHO_C" >&6
23699 cat >conftest.$ac_ext <<_ACEOF
23702 cat confdefs.h >>conftest.$ac_ext
23703 cat >>conftest.$ac_ext <<_ACEOF
23704 /* end confdefs.h. */
23705 #include <sys/syscall.h>
23709 int i = __NR_tkill;
23714 rm -f conftest.$ac_objext
23715 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
23716 (eval $ac_compile) 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_objext'
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
23736 gdb_cv_sys_syscall_h_has_tkill=yes
23738 echo "$as_me: failed program was:" >&5
23739 sed 's/^/| /' conftest.$ac_ext >&5
23741 gdb_cv_sys_syscall_h_has_tkill=no
23744 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
23747 echo "$as_me:$LINENO: result: $gdb_cv_sys_syscall_h_has_tkill" >&5
23748 echo "${ECHO_T}$gdb_cv_sys_syscall_h_has_tkill" >&6
23750 if test "x$gdb_cv_sys_syscall_h_has_tkill" = "xyes" && test "x$ac_cv_func_syscall" = "xyes"; then
23752 cat >>confdefs.h <<\_ACEOF
23753 #define HAVE_TKILL_SYSCALL 1
23758 echo "$as_me:$LINENO: checking whether ADDR_NO_RANDOMIZE is declared" >&5
23759 echo $ECHO_N "checking whether ADDR_NO_RANDOMIZE is declared... $ECHO_C" >&6
23760 if test "${ac_cv_have_decl_ADDR_NO_RANDOMIZE+set}" = set; then
23761 echo $ECHO_N "(cached) $ECHO_C" >&6
23763 cat >conftest.$ac_ext <<_ACEOF
23766 cat confdefs.h >>conftest.$ac_ext
23767 cat >>conftest.$ac_ext <<_ACEOF
23768 /* end confdefs.h. */
23769 #include <sys/personality.h>
23774 #ifndef ADDR_NO_RANDOMIZE
23775 char *p = (char *) ADDR_NO_RANDOMIZE;
23782 rm -f conftest.$ac_objext
23783 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
23784 (eval $ac_compile) 2>conftest.er1
23786 grep -v '^ *+' conftest.er1 >conftest.err
23788 cat conftest.err >&5
23789 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23790 (exit $ac_status); } &&
23791 { ac_try='test -z "$ac_c_werror_flag"
23792 || test ! -s conftest.err'
23793 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
23794 (eval $ac_try) 2>&5
23796 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23797 (exit $ac_status); }; } &&
23798 { ac_try='test -s conftest.$ac_objext'
23799 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
23800 (eval $ac_try) 2>&5
23802 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23803 (exit $ac_status); }; }; then
23804 ac_cv_have_decl_ADDR_NO_RANDOMIZE=yes
23806 echo "$as_me: failed program was:" >&5
23807 sed 's/^/| /' conftest.$ac_ext >&5
23809 ac_cv_have_decl_ADDR_NO_RANDOMIZE=no
23811 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
23813 echo "$as_me:$LINENO: result: $ac_cv_have_decl_ADDR_NO_RANDOMIZE" >&5
23814 echo "${ECHO_T}$ac_cv_have_decl_ADDR_NO_RANDOMIZE" >&6
23815 if test $ac_cv_have_decl_ADDR_NO_RANDOMIZE = yes; then
23817 cat >>confdefs.h <<_ACEOF
23818 #define HAVE_DECL_ADDR_NO_RANDOMIZE 1
23823 cat >>confdefs.h <<_ACEOF
23824 #define HAVE_DECL_ADDR_NO_RANDOMIZE 0
23832 if test "$cross_compiling" = yes; then
23833 cat >conftest.$ac_ext <<_ACEOF
23836 cat confdefs.h >>conftest.$ac_ext
23837 cat >>conftest.$ac_ext <<_ACEOF
23838 /* end confdefs.h. */
23839 #include <sys/personality.h>
23844 # if !HAVE_DECL_ADDR_NO_RANDOMIZE
23845 # define ADDR_NO_RANDOMIZE 0x0040000
23847 /* Test the flag could be set and stays set. */
23848 personality (personality (0xffffffff) | ADDR_NO_RANDOMIZE);
23849 if (!(personality (personality (0xffffffff)) & ADDR_NO_RANDOMIZE))
23855 rm -f conftest.$ac_objext conftest$ac_exeext
23856 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
23857 (eval $ac_link) 2>conftest.er1
23859 grep -v '^ *+' conftest.er1 >conftest.err
23861 cat conftest.err >&5
23862 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23863 (exit $ac_status); } &&
23864 { ac_try='test -z "$ac_c_werror_flag"
23865 || test ! -s conftest.err'
23866 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
23867 (eval $ac_try) 2>&5
23869 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23870 (exit $ac_status); }; } &&
23871 { ac_try='test -s conftest$ac_exeext'
23872 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
23873 (eval $ac_try) 2>&5
23875 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23876 (exit $ac_status); }; }; then
23877 have_personality=true
23879 echo "$as_me: failed program was:" >&5
23880 sed 's/^/| /' conftest.$ac_ext >&5
23882 have_personality=false
23884 rm -f conftest.err conftest.$ac_objext \
23885 conftest$ac_exeext conftest.$ac_ext
23887 cat >conftest.$ac_ext <<_ACEOF
23890 cat confdefs.h >>conftest.$ac_ext
23891 cat >>conftest.$ac_ext <<_ACEOF
23892 /* end confdefs.h. */
23893 #include <sys/personality.h>
23898 # if !HAVE_DECL_ADDR_NO_RANDOMIZE
23899 # define ADDR_NO_RANDOMIZE 0x0040000
23901 /* Test the flag could be set and stays set. */
23902 personality (personality (0xffffffff) | ADDR_NO_RANDOMIZE);
23903 if (!(personality (personality (0xffffffff)) & ADDR_NO_RANDOMIZE))
23909 rm -f conftest$ac_exeext
23910 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
23911 (eval $ac_link) 2>&5
23913 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23914 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
23915 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
23916 (eval $ac_try) 2>&5
23918 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23919 (exit $ac_status); }; }; then
23920 have_personality=true
23922 echo "$as_me: program exited with status $ac_status" >&5
23923 echo "$as_me: failed program was:" >&5
23924 sed 's/^/| /' conftest.$ac_ext >&5
23926 ( exit $ac_status )
23927 have_personality=false
23929 rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
23931 if $have_personality
23934 cat >>confdefs.h <<\_ACEOF
23935 #define HAVE_PERSONALITY 1
23942 # Check whether --with-sysroot or --without-sysroot was given.
23943 if test "${with_sysroot+set}" = set; then
23944 withval="$with_sysroot"
23946 case ${with_sysroot} in
23947 yes) TARGET_SYSTEM_ROOT='${exec_prefix}/${target_alias}/sys-root' ;;
23948 *) TARGET_SYSTEM_ROOT=$with_sysroot ;;
23951 TARGET_SYSTEM_ROOT_DEFINE='-DTARGET_SYSTEM_ROOT=\"$(TARGET_SYSTEM_ROOT)\"'
23953 if test "x$prefix" = xNONE; then
23954 test_prefix=/usr/local
23956 test_prefix=$prefix
23958 if test "x$exec_prefix" = xNONE || test "x$exec_prefix" = 'x${prefix}'; then
23959 test_exec_prefix=$test_prefix
23961 test_exec_prefix=$exec_prefix
23963 case ${TARGET_SYSTEM_ROOT} in
23964 "${test_prefix}"|"${test_prefix}/"*|\
23965 "${test_exec_prefix}"|"${test_exec_prefix}/"*|\
23966 '${prefix}'|'${prefix}/'*|\
23967 '${exec_prefix}'|'${exec_prefix}/'*)
23968 t="$TARGET_SYSTEM_ROOT_DEFINE -DTARGET_SYSTEM_ROOT_RELOCATABLE"
23969 TARGET_SYSTEM_ROOT_DEFINE="$t"
23975 TARGET_SYSTEM_ROOT=
23976 TARGET_SYSTEM_ROOT_DEFINE='-DTARGET_SYSTEM_ROOT=\"\"'
23982 # Check whether --enable-werror or --disable-werror was given.
23983 if test "${enable_werror+set}" = set; then
23984 enableval="$enable_werror"
23985 case "${enableval}" in
23986 yes | y) ERROR_ON_WARNING="yes" ;;
23987 no | n) ERROR_ON_WARNING="no" ;;
23988 *) { { echo "$as_me:$LINENO: error: bad value ${enableval} for --enable-werror" >&5
23989 echo "$as_me: error: bad value ${enableval} for --enable-werror" >&2;}
23990 { (exit 1); exit 1; }; } ;;
23994 # Enable -Werror by default when using gcc
23995 if test "${GCC}" = yes -a -z "${ERROR_ON_WARNING}" ; then
23996 ERROR_ON_WARNING=yes
24000 if test "${ERROR_ON_WARNING}" = yes ; then
24001 WERROR_CFLAGS="-Werror"
24004 # The entries after -Wno-pointer-sign are disabled warnings which may
24005 # be enabled in the future, which can not currently be used to build
24007 # NOTE: If you change this list, remember to update
24008 # gdb/doc/gdbint.texinfo.
24009 build_warnings="-Wall -Wdeclaration-after-statement -Wpointer-arith \
24010 -Wformat-nonliteral -Wno-pointer-sign \
24011 -Wno-unused -Wno-switch -Wno-char-subscripts"
24013 # Enable -Wno-format by default when using gcc on mingw since many
24014 # GCC versions complain about %I64.
24016 *-*-mingw32*) build_warnings="$build_warnings -Wno-format" ;;
24019 # Check whether --enable-build-warnings or --disable-build-warnings was given.
24020 if test "${enable_build_warnings+set}" = set; then
24021 enableval="$enable_build_warnings"
24022 case "${enableval}" in
24024 no) build_warnings="-w";;
24025 ,*) t=`echo "${enableval}" | sed -e "s/,/ /g"`
24026 build_warnings="${build_warnings} ${t}";;
24027 *,) t=`echo "${enableval}" | sed -e "s/,/ /g"`
24028 build_warnings="${t} ${build_warnings}";;
24029 *) build_warnings=`echo "${enableval}" | sed -e "s/,/ /g"`;;
24031 if test x"$silent" != x"yes" && test x"$build_warnings" != x""; then
24032 echo "Setting compiler warning flags = $build_warnings" 6>&1
24034 fi; # Check whether --enable-gdb-build-warnings or --disable-gdb-build-warnings was given.
24035 if test "${enable_gdb_build_warnings+set}" = set; then
24036 enableval="$enable_gdb_build_warnings"
24037 case "${enableval}" in
24039 no) build_warnings="-w";;
24040 ,*) t=`echo "${enableval}" | sed -e "s/,/ /g"`
24041 build_warnings="${build_warnings} ${t}";;
24042 *,) t=`echo "${enableval}" | sed -e "s/,/ /g"`
24043 build_warnings="${t} ${build_warnings}";;
24044 *) build_warnings=`echo "${enableval}" | sed -e "s/,/ /g"`;;
24046 if test x"$silent" != x"yes" && test x"$build_warnings" != x""; then
24047 echo "Setting GDB specific compiler warning flags = $build_warnings" 6>&1
24050 if test "x${build_warnings}" != x -a "x$GCC" = xyes
24052 echo "$as_me:$LINENO: checking compiler warning flags" >&5
24053 echo $ECHO_N "checking compiler warning flags... $ECHO_C" >&6
24054 # Separate out the -Werror flag as some files just cannot be
24055 # compiled with it enabled.
24056 for w in ${build_warnings}; do
24058 -Werr*) WERROR_CFLAGS=-Werror ;;
24059 *) # Check that GCC accepts it
24060 saved_CFLAGS="$CFLAGS"
24061 CFLAGS="$CFLAGS $w"
24062 cat >conftest.$ac_ext <<_ACEOF
24065 cat confdefs.h >>conftest.$ac_ext
24066 cat >>conftest.$ac_ext <<_ACEOF
24067 /* end confdefs.h. */
24077 rm -f conftest.$ac_objext
24078 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
24079 (eval $ac_compile) 2>conftest.er1
24081 grep -v '^ *+' conftest.er1 >conftest.err
24083 cat conftest.err >&5
24084 echo "$as_me:$LINENO: \$? = $ac_status" >&5
24085 (exit $ac_status); } &&
24086 { ac_try='test -z "$ac_c_werror_flag"
24087 || test ! -s conftest.err'
24088 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
24089 (eval $ac_try) 2>&5
24091 echo "$as_me:$LINENO: \$? = $ac_status" >&5
24092 (exit $ac_status); }; } &&
24093 { ac_try='test -s conftest.$ac_objext'
24094 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
24095 (eval $ac_try) 2>&5
24097 echo "$as_me:$LINENO: \$? = $ac_status" >&5
24098 (exit $ac_status); }; }; then
24099 WARN_CFLAGS="${WARN_CFLAGS} $w"
24101 echo "$as_me: failed program was:" >&5
24102 sed 's/^/| /' conftest.$ac_ext >&5
24105 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
24106 CFLAGS="$saved_CFLAGS"
24109 echo "$as_me:$LINENO: result: ${WARN_CFLAGS} ${WERROR_CFLAGS}" >&5
24110 echo "${ECHO_T}${WARN_CFLAGS} ${WERROR_CFLAGS}" >&6
24115 # In the Cygwin environment, we need some additional flags.
24116 echo "$as_me:$LINENO: checking for cygwin" >&5
24117 echo $ECHO_N "checking for cygwin... $ECHO_C" >&6
24118 if test "${gdb_cv_os_cygwin+set}" = set; then
24119 echo $ECHO_N "(cached) $ECHO_C" >&6
24121 cat >conftest.$ac_ext <<_ACEOF
24124 cat confdefs.h >>conftest.$ac_ext
24125 cat >>conftest.$ac_ext <<_ACEOF
24126 /* end confdefs.h. */
24128 #if defined (__CYGWIN__) || defined (__CYGWIN32__)
24132 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
24133 $EGREP "lose" >/dev/null 2>&1; then
24134 gdb_cv_os_cygwin=yes
24136 gdb_cv_os_cygwin=no
24141 echo "$as_me:$LINENO: result: $gdb_cv_os_cygwin" >&5
24142 echo "${ECHO_T}$gdb_cv_os_cygwin" >&6
24145 SER_HARDWIRE="ser-base.o ser-unix.o ser-pipe.o ser-tcp.o"
24147 *go32* ) SER_HARDWIRE=ser-go32.o ;;
24148 *djgpp* ) SER_HARDWIRE=ser-go32.o ;;
24149 *mingw32*) SER_HARDWIRE="ser-base.o ser-tcp.o ser-mingw.o" ;;
24153 # libreadline needs libuser32.a in a cygwin environment
24155 if test x$gdb_cv_os_cygwin = xyes; then
24156 WIN32LIBS="-luser32"
24157 case "${target}" in
24158 *cygwin*) WIN32LIBS="$WIN32LIBS -limagehlp"
24163 # The ser-tcp.c module requires sockets.
24167 cat >>confdefs.h <<\_ACEOF
24168 #define USE_WIN32API 1
24171 WIN32LIBS="$WIN32LIBS -lws2_32"
24176 # Add ELF support to GDB, but only if BFD includes ELF support.
24178 OLD_LDFLAGS=$LDFLAGS
24180 CFLAGS="$CFLAGS -I${srcdir}/../include -I../bfd -I${srcdir}/../bfd"
24181 LDFLAGS="$LDFLAGS -L../bfd -L../libiberty"
24182 intl=`echo $LIBINTL | sed 's,${top_builddir}/,,g'`
24183 LIBS="-lbfd -liberty $intl $LIBS"
24184 echo "$as_me:$LINENO: checking for ELF support in BFD" >&5
24185 echo $ECHO_N "checking for ELF support in BFD... $ECHO_C" >&6
24186 if test "${gdb_cv_var_elf+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 <stdlib.h>
24197 #include "elf-bfd.h"
24202 bfd *abfd = NULL; bfd_get_elf_phdr_upper_bound (abfd);
24207 rm -f conftest.$ac_objext conftest$ac_exeext
24208 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
24209 (eval $ac_link) 2>conftest.er1
24211 grep -v '^ *+' conftest.er1 >conftest.err
24213 cat conftest.err >&5
24214 echo "$as_me:$LINENO: \$? = $ac_status" >&5
24215 (exit $ac_status); } &&
24216 { ac_try='test -z "$ac_c_werror_flag"
24217 || test ! -s conftest.err'
24218 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
24219 (eval $ac_try) 2>&5
24221 echo "$as_me:$LINENO: \$? = $ac_status" >&5
24222 (exit $ac_status); }; } &&
24223 { ac_try='test -s conftest$ac_exeext'
24224 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
24225 (eval $ac_try) 2>&5
24227 echo "$as_me:$LINENO: \$? = $ac_status" >&5
24228 (exit $ac_status); }; }; then
24231 echo "$as_me: failed program was:" >&5
24232 sed 's/^/| /' conftest.$ac_ext >&5
24236 rm -f conftest.err conftest.$ac_objext \
24237 conftest$ac_exeext conftest.$ac_ext
24239 echo "$as_me:$LINENO: result: $gdb_cv_var_elf" >&5
24240 echo "${ECHO_T}$gdb_cv_var_elf" >&6
24241 if test $gdb_cv_var_elf = yes; then
24242 CONFIG_OBS="$CONFIG_OBS elfread.o"
24244 cat >>confdefs.h <<\_ACEOF
24250 LDFLAGS=$OLD_LDFLAGS
24253 # Add any host-specific objects to GDB.
24254 CONFIG_OBS="${CONFIG_OBS} ${gdb_host_obs}"
24256 LIBGUI="../libgui/src/libgui.a"
24257 GUI_CFLAGS_X="-I${srcdir}/../libgui/src"
24266 *-*-cygwin* | *-*-mingw* )
24275 if test "${enable_gdbtk}" = "yes"; then
24277 # Gdbtk must have an absolute path to srcdir in order to run
24278 # properly when not installed.
24281 GDBTK_SRC_DIR=`pwd`
24286 # Ok, lets find the tcl configuration
24287 # First, look for one uninstalled.
24288 # the alternative search directory is invoked by --with-tcl
24291 if test x"${no_tcl}" = x ; then
24292 # we reset no_tcl in case something fails here
24295 # Check whether --with-tcl or --without-tcl was given.
24296 if test "${with_tcl+set}" = set; then
24297 withval="$with_tcl"
24298 with_tclconfig=${withval}
24300 echo "$as_me:$LINENO: checking for Tcl configuration" >&5
24301 echo $ECHO_N "checking for Tcl configuration... $ECHO_C" >&6
24302 if test "${ac_cv_c_tclconfig+set}" = set; then
24303 echo $ECHO_N "(cached) $ECHO_C" >&6
24307 # First check to see if --with-tcl was specified.
24309 *-*-cygwin*) platDir="win" ;;
24310 *) platDir="unix" ;;
24312 if test x"${with_tclconfig}" != x ; then
24313 if test -f "${with_tclconfig}/tclConfig.sh" ; then
24314 ac_cv_c_tclconfig=`(cd ${with_tclconfig}; pwd)`
24316 { { echo "$as_me:$LINENO: error: ${with_tclconfig} directory doesn't contain tclConfig.sh" >&5
24317 echo "$as_me: error: ${with_tclconfig} directory doesn't contain tclConfig.sh" >&2;}
24318 { (exit 1); exit 1; }; }
24322 # then check for a private Tcl installation
24323 if test x"${ac_cv_c_tclconfig}" = x ; then
24326 `ls -dr ../tcl[8-9].[0-9].[0-9]* 2>/dev/null` \
24327 `ls -dr ../tcl[8-9].[0-9] 2>/dev/null` \
24328 `ls -dr ../tcl[8-9].[0-9]* 2>/dev/null` \
24330 `ls -dr ../../tcl[8-9].[0-9].[0-9]* 2>/dev/null` \
24331 `ls -dr ../../tcl[8-9].[0-9] 2>/dev/null` \
24332 `ls -dr ../../tcl[8-9].[0-9]* 2>/dev/null` \
24334 `ls -dr ../../../tcl[8-9].[0-9].[0-9]* 2>/dev/null` \
24335 `ls -dr ../../../tcl[8-9].[0-9] 2>/dev/null` \
24336 `ls -dr ../../../tcl[8-9].[0-9]* 2>/dev/null` ; do
24337 if test -f "$i/$platDir/tclConfig.sh" ; then
24338 ac_cv_c_tclconfig=`(cd $i/$platDir; pwd)`
24344 # on Darwin, check in Framework installation locations
24345 if test "`uname -s`" = "Darwin" -a x"${ac_cv_c_tclconfig}" = x ; then
24346 for i in `ls -d ~/Library/Frameworks 2>/dev/null` \
24347 `ls -d /Library/Frameworks 2>/dev/null` \
24348 `ls -d /Network/Library/Frameworks 2>/dev/null` \
24349 `ls -d /System/Library/Frameworks 2>/dev/null` \
24351 if test -f "$i/Tcl.framework/tclConfig.sh" ; then
24352 ac_cv_c_tclconfig=`(cd $i/Tcl.framework; pwd)`
24358 # check in a few common install locations
24359 if test x"${ac_cv_c_tclconfig}" = x ; then
24360 for i in `ls -d ${libdir} 2>/dev/null` \
24361 `ls -d ${exec_prefix}/lib 2>/dev/null` \
24362 `ls -d ${prefix}/lib 2>/dev/null` \
24363 `ls -d /usr/local/lib 2>/dev/null` \
24364 `ls -d /usr/contrib/lib 2>/dev/null` \
24365 `ls -d /usr/lib 2>/dev/null` \
24367 if test -f "$i/tclConfig.sh" ; then
24368 ac_cv_c_tclconfig=`(cd $i; pwd)`
24374 # check in a few other private locations
24375 if test x"${ac_cv_c_tclconfig}" = x ; then
24378 `ls -dr ${srcdir}/../tcl[8-9].[0-9].[0-9]* 2>/dev/null` \
24379 `ls -dr ${srcdir}/../tcl[8-9].[0-9] 2>/dev/null` \
24380 `ls -dr ${srcdir}/../tcl[8-9].[0-9]* 2>/dev/null` ; do
24381 if test -f "$i/$platDir/tclConfig.sh" ; then
24382 ac_cv_c_tclconfig=`(cd $i/$platDir; pwd)`
24391 if test x"${ac_cv_c_tclconfig}" = x ; then
24392 TCL_BIN_DIR="# no Tcl configs found"
24393 { echo "$as_me:$LINENO: WARNING: Can't find Tcl configuration definitions" >&5
24394 echo "$as_me: WARNING: Can't find Tcl configuration definitions" >&2;}
24398 TCL_BIN_DIR=${ac_cv_c_tclconfig}
24399 echo "$as_me:$LINENO: result: found ${TCL_BIN_DIR}/tclConfig.sh" >&5
24400 echo "${ECHO_T}found ${TCL_BIN_DIR}/tclConfig.sh" >&6
24404 if test -z "${no_tcl}"; then
24406 echo "$as_me:$LINENO: checking for existence of ${TCL_BIN_DIR}/tclConfig.sh" >&5
24407 echo $ECHO_N "checking for existence of ${TCL_BIN_DIR}/tclConfig.sh... $ECHO_C" >&6
24409 if test -f "${TCL_BIN_DIR}/tclConfig.sh" ; then
24410 echo "$as_me:$LINENO: result: loading" >&5
24411 echo "${ECHO_T}loading" >&6
24412 . ${TCL_BIN_DIR}/tclConfig.sh
24414 echo "$as_me:$LINENO: result: could not find ${TCL_BIN_DIR}/tclConfig.sh" >&5
24415 echo "${ECHO_T}could not find ${TCL_BIN_DIR}/tclConfig.sh" >&6
24418 # eval is required to do the TCL_DBGX substitution
24419 eval "TCL_LIB_FILE=\"${TCL_LIB_FILE}\""
24420 eval "TCL_STUB_LIB_FILE=\"${TCL_STUB_LIB_FILE}\""
24422 # If the TCL_BIN_DIR is the build directory (not the install directory),
24423 # then set the common variable name to the value of the build variables.
24424 # For example, the variable TCL_LIB_SPEC will be set to the value
24425 # of TCL_BUILD_LIB_SPEC. An extension should make use of TCL_LIB_SPEC
24426 # instead of TCL_BUILD_LIB_SPEC since it will work with both an
24427 # installed and uninstalled version of Tcl.
24428 if test -f ${TCL_BIN_DIR}/Makefile ; then
24429 TCL_LIB_SPEC=${TCL_BUILD_LIB_SPEC}
24430 TCL_STUB_LIB_SPEC=${TCL_BUILD_STUB_LIB_SPEC}
24431 TCL_STUB_LIB_PATH=${TCL_BUILD_STUB_LIB_PATH}
24432 elif test "`uname -s`" = "Darwin"; then
24433 # If Tcl was built as a framework, attempt to use the libraries
24434 # from the framework at the given location so that linking works
24435 # against Tcl.framework installed in an arbitary location.
24436 case ${TCL_DEFS} in
24438 if test -f ${TCL_BIN_DIR}/${TCL_LIB_FILE}; then
24439 for i in "`cd ${TCL_BIN_DIR}; pwd`" \
24440 "`cd ${TCL_BIN_DIR}/../..; pwd`"; do
24441 if test "`basename "$i"`" = "${TCL_LIB_FILE}.framework"; then
24442 TCL_LIB_SPEC="-F`dirname "$i"` -framework ${TCL_LIB_FILE}"
24447 if test -f ${TCL_BIN_DIR}/${TCL_STUB_LIB_FILE}; then
24448 TCL_STUB_LIB_SPEC="-L${TCL_BIN_DIR} ${TCL_STUB_LIB_FLAG}"
24449 TCL_STUB_LIB_PATH="${TCL_BIN_DIR}/${TCL_STUB_LIB_FILE}"
24455 # eval is required to do the TCL_DBGX substitution
24456 eval "TCL_LIB_FLAG=\"${TCL_LIB_FLAG}\""
24457 eval "TCL_LIB_SPEC=\"${TCL_LIB_SPEC}\""
24458 eval "TCL_STUB_LIB_FLAG=\"${TCL_STUB_LIB_FLAG}\""
24459 eval "TCL_STUB_LIB_SPEC=\"${TCL_STUB_LIB_SPEC}\""
24475 # Check for in-tree tcl
24482 if test "${TCL_SRC_DIR}" = "${topdir}/tcl"; then
24486 # Find Tcl private headers
24487 if test x"${intree}" = xno; then
24489 echo "$as_me:$LINENO: checking for Tcl private headers" >&5
24490 echo $ECHO_N "checking for Tcl private headers... $ECHO_C" >&6
24492 dir=`echo ${TCL_INCLUDE_SPEC}/tcl-private/generic | sed -e s/-I//`
24493 if test -f ${dir}/tclInt.h ; then
24497 if test x"${private_dir}" = x; then
24498 { { echo "$as_me:$LINENO: error: could not find private Tcl headers" >&5
24499 echo "$as_me: error: could not find private Tcl headers" >&2;}
24500 { (exit 1); exit 1; }; }
24502 TCL_PRIVATE_INCLUDE="-I${private_dir}"
24503 echo "$as_me:$LINENO: result: ${private_dir}" >&5
24504 echo "${ECHO_T}${private_dir}" >&6
24507 TCL_INCLUDE="${TCL_INCLUDE_SPEC} ${TCL_PRIVATE_INCLUDE}"
24508 TCL_LIBRARY="${TCL_LIB_SPEC}"
24511 # If building tcl in the same src tree, private headers
24512 # are not needed, but we need to be sure to use the right
24514 TCL_INCLUDE="-I${TCL_SRC_DIR}/generic"
24515 TCL_LIBRARY="${TCL_BUILD_LIB_SPEC}"
24516 TCL_DEPS="../tcl/${configdir}${TCL_LIB_FILE}"
24522 # If $no_tk is nonempty, then we can't do Tk, and there is no
24523 # point to doing Tcl.
24524 if test -z "${no_tk}"; then
24527 # Ok, lets find the tk configuration
24528 # First, look for one uninstalled.
24529 # the alternative search directory is invoked by --with-tk
24532 if test x"${no_tk}" = x ; then
24533 # we reset no_tk in case something fails here
24536 # Check whether --with-tk or --without-tk was given.
24537 if test "${with_tk+set}" = set; then
24539 with_tkconfig=${withval}
24541 echo "$as_me:$LINENO: checking for Tk configuration" >&5
24542 echo $ECHO_N "checking for Tk configuration... $ECHO_C" >&6
24543 if test "${ac_cv_c_tkconfig+set}" = set; then
24544 echo $ECHO_N "(cached) $ECHO_C" >&6
24548 # First check to see if --with-tkconfig was specified.
24549 if test x"${with_tkconfig}" != x ; then
24550 if test -f "${with_tkconfig}/tkConfig.sh" ; then
24551 ac_cv_c_tkconfig=`(cd ${with_tkconfig}; pwd)`
24553 { { echo "$as_me:$LINENO: error: ${with_tkconfig} directory doesn't contain tkConfig.sh" >&5
24554 echo "$as_me: error: ${with_tkconfig} directory doesn't contain tkConfig.sh" >&2;}
24555 { (exit 1); exit 1; }; }
24559 # then check for a private Tk library
24561 *-*-cygwin*) platDir="win" ;;
24562 *) platDir="unix" ;;
24564 if test x"${ac_cv_c_tkconfig}" = x ; then
24567 `ls -dr ../tk[8-9].[0-9].[0-9]* 2>/dev/null` \
24568 `ls -dr ../tk[8-9].[0-9] 2>/dev/null` \
24569 `ls -dr ../tk[8-9].[0-9]* 2>/dev/null` \
24571 `ls -dr ../../tk[8-9].[0-9].[0-9]* 2>/dev/null` \
24572 `ls -dr ../../tk[8-9].[0-9] 2>/dev/null` \
24573 `ls -dr ../../tk[8-9].[0-9]* 2>/dev/null` \
24575 `ls -dr ../../../tk[8-9].[0-9].[0-9]* 2>/dev/null` \
24576 `ls -dr ../../../tk[8-9].[0-9] 2>/dev/null` \
24577 `ls -dr ../../../tk[8-9].[0-9]* 2>/dev/null` ; do
24578 if test -f "$i/$platDir/tkConfig.sh" ; then
24579 ac_cv_c_tkconfig=`(cd $i/$platDir; pwd)`
24585 # on Darwin, check in Framework installation locations
24586 if test "`uname -s`" = "Darwin" -a x"${ac_cv_c_tkconfig}" = x ; then
24587 for i in `ls -d ~/Library/Frameworks 2>/dev/null` \
24588 `ls -d /Library/Frameworks 2>/dev/null` \
24589 `ls -d /Network/Library/Frameworks 2>/dev/null` \
24590 `ls -d /System/Library/Frameworks 2>/dev/null` \
24592 if test -f "$i/Tk.framework/tkConfig.sh" ; then
24593 ac_cv_c_tkconfig=`(cd $i/Tk.framework; pwd)`
24599 # check in a few common install locations
24600 if test x"${ac_cv_c_tkconfig}" = x ; then
24601 for i in `ls -d ${libdir} 2>/dev/null` \
24602 `ls -d ${exec_prefix}/lib 2>/dev/null` \
24603 `ls -d ${prefix}/lib 2>/dev/null` \
24604 `ls -d /usr/local/lib 2>/dev/null` \
24605 `ls -d /usr/contrib/lib 2>/dev/null` \
24606 `ls -d /usr/lib 2>/dev/null` \
24608 if test -f "$i/tkConfig.sh" ; then
24609 ac_cv_c_tkconfig=`(cd $i; pwd)`
24614 # check in a few other private locations
24615 if test x"${ac_cv_c_tkconfig}" = x ; then
24618 `ls -dr ${srcdir}/../tk[8-9].[0-9].[0-9]* 2>/dev/null` \
24619 `ls -dr ${srcdir}/../tk[8-9].[0-9] 2>/dev/null` \
24620 `ls -dr ${srcdir}/../tk[8-9].[0-9]* 2>/dev/null` ; do
24621 if test -f "$i/$platDir/tkConfig.sh" ; then
24622 ac_cv_c_tkconfig=`(cd $i/$platDir; pwd)`
24631 if test x"${ac_cv_c_tkconfig}" = x ; then
24632 TK_BIN_DIR="# no Tk configs found"
24633 { echo "$as_me:$LINENO: WARNING: Can't find Tk configuration definitions" >&5
24634 echo "$as_me: WARNING: Can't find Tk configuration definitions" >&2;}
24638 TK_BIN_DIR=${ac_cv_c_tkconfig}
24639 echo "$as_me:$LINENO: result: found ${TK_BIN_DIR}/tkConfig.sh" >&5
24640 echo "${ECHO_T}found ${TK_BIN_DIR}/tkConfig.sh" >&6
24645 echo "$as_me:$LINENO: checking for existence of ${TK_BIN_DIR}/tkConfig.sh" >&5
24646 echo $ECHO_N "checking for existence of ${TK_BIN_DIR}/tkConfig.sh... $ECHO_C" >&6
24648 if test -f "${TK_BIN_DIR}/tkConfig.sh" ; then
24649 echo "$as_me:$LINENO: result: loading" >&5
24650 echo "${ECHO_T}loading" >&6
24651 . ${TK_BIN_DIR}/tkConfig.sh
24653 echo "$as_me:$LINENO: result: could not find ${TK_BIN_DIR}/tkConfig.sh" >&5
24654 echo "${ECHO_T}could not find ${TK_BIN_DIR}/tkConfig.sh" >&6
24657 # eval is required to do the TK_DBGX substitution
24658 eval "TK_LIB_FILE=\"${TK_LIB_FILE}\""
24659 eval "TK_STUB_LIB_FILE=\"${TK_STUB_LIB_FILE}\""
24661 # If the TK_BIN_DIR is the build directory (not the install directory),
24662 # then set the common variable name to the value of the build variables.
24663 # For example, the variable TK_LIB_SPEC will be set to the value
24664 # of TK_BUILD_LIB_SPEC. An extension should make use of TK_LIB_SPEC
24665 # instead of TK_BUILD_LIB_SPEC since it will work with both an
24666 # installed and uninstalled version of Tcl.
24667 if test -f ${TK_BIN_DIR}/Makefile ; then
24668 TK_LIB_SPEC=${TK_BUILD_LIB_SPEC}
24669 TK_STUB_LIB_SPEC=${TK_BUILD_STUB_LIB_SPEC}
24670 TK_STUB_LIB_PATH=${TK_BUILD_STUB_LIB_PATH}
24671 elif test "`uname -s`" = "Darwin"; then
24672 # If Tk was built as a framework, attempt to use the libraries
24673 # from the framework at the given location so that linking works
24674 # against Tk.framework installed in an arbitary location.
24677 if test -f ${TK_BIN_DIR}/${TK_LIB_FILE}; then
24678 for i in "`cd ${TK_BIN_DIR}; pwd`" \
24679 "`cd ${TK_BIN_DIR}/../..; pwd`"; do
24680 if test "`basename "$i"`" = "${TK_LIB_FILE}.framework"; then
24681 TK_LIB_SPEC="-F`dirname "$i"` -framework ${TK_LIB_FILE}"
24686 if test -f ${TK_BIN_DIR}/${TK_STUB_LIB_FILE}; then
24687 TK_STUB_LIB_SPEC="-L${TK_BIN_DIR} ${TK_STUB_LIB_FLAG}"
24688 TK_STUB_LIB_PATH="${TK_BIN_DIR}/${TK_STUB_LIB_FILE}"
24694 # eval is required to do the TK_DBGX substitution
24695 eval "TK_LIB_FLAG=\"${TK_LIB_FLAG}\""
24696 eval "TK_LIB_SPEC=\"${TK_LIB_SPEC}\""
24697 eval "TK_STUB_LIB_FLAG=\"${TK_STUB_LIB_FLAG}\""
24698 eval "TK_STUB_LIB_SPEC=\"${TK_STUB_LIB_SPEC}\""
24713 # Check for in-tree Tk
24715 if test "${TK_SRC_DIR}" = "${topdir}/tk"; then
24719 # Find Tk private headers
24720 if test x"${intree}" = xno; then
24722 echo "$as_me:$LINENO: checking for Tk private headers" >&5
24723 echo $ECHO_N "checking for Tk private headers... $ECHO_C" >&6
24725 dir=`echo ${TK_INCLUDE_SPEC}/tk-private/generic | sed -e s/-I//`
24726 if test -f ${dir}/tkInt.h; then
24730 if test x"${private_dir}" = x; then
24731 { { echo "$as_me:$LINENO: error: could not find Tk private headers" >&5
24732 echo "$as_me: error: could not find Tk private headers" >&2;}
24733 { (exit 1); exit 1; }; }
24735 TK_PRIVATE_INCLUDE="-I${private_dir}"
24736 echo "$as_me:$LINENO: result: ${private_dir}" >&5
24737 echo "${ECHO_T}${private_dir}" >&6
24740 TK_INCLUDE="${TK_INCLUDE_SPEC} ${TK_PRIVATE_INCLUDE}"
24741 TK_LIBRARY=${TK_LIB_SPEC}
24744 TK_INCLUDE="-I${TK_SRC_DIR}/generic"
24745 TK_LIBRARY="${TK_BUILD_LIB_SPEC}"
24746 TK_DEPS="../tk/${configdir}/${TK_LIB_FILE}"
24753 ENABLE_CFLAGS="${ENABLE_CFLAGS} \$(SUBDIR_GDBTK_CFLAGS)"
24755 # Include some libraries that Tcl and Tk want.
24756 TCL_LIBS='$(LIBGUI) $(TK) $(TCL) $(X11_LDFLAGS) $(X11_LIBS)'
24757 # Yes, the ordering seems wrong here. But it isn't.
24758 # TK_LIBS is the list of libraries that need to be linked
24759 # after Tcl/Tk. Note that this isn't put into LIBS. If it
24760 # were in LIBS then any link tests after this point would
24761 # try to include things like `$(LIBGUI)', which wouldn't work.
24762 GDBTKLIBS="${TCL_LIBS} ${TK_LIBS}"
24764 CONFIG_OBS="${CONFIG_OBS} \$(SUBDIR_GDBTK_OBS)"
24765 CONFIG_DEPS="${CONFIG_DEPS} \$(SUBDIR_GDBTK_DEPS)"
24766 CONFIG_SRCS="${CONFIG_SRCS} \$(SUBDIR_GDBTK_SRCS)"
24767 CONFIG_ALL="${CONFIG_ALL} all-gdbtk"
24768 CONFIG_CLEAN="${CONFIG_CLEAN} clean-gdbtk"
24769 CONFIG_INSTALL="${CONFIG_INSTALL} install-gdbtk"
24770 CONFIG_UNINSTALL="${CONFIG_UNINSTALL} uninstall-gdbtk"
24772 if test x$gdb_cv_os_cygwin = xyes; then
24773 WIN32LIBS="${WIN32LIBS} -lshell32 -lgdi32 -lcomdlg32 -ladvapi32"
24774 WIN32LDAPP="-Wl,--subsystem,console"
24775 CONFIG_OBS="${CONFIG_OBS} gdbres.o"
24782 subdirs="$subdirs gdbtk"
24793 echo "$as_me:$LINENO: checking for X" >&5
24794 echo $ECHO_N "checking for X... $ECHO_C" >&6
24797 # Check whether --with-x or --without-x was given.
24798 if test "${with_x+set}" = set; then
24802 # $have_x is `yes', `no', `disabled', or empty when we do not yet know.
24803 if test "x$with_x" = xno; then
24804 # The user explicitly disabled X.
24807 if test "x$x_includes" != xNONE && test "x$x_libraries" != xNONE; then
24808 # Both variables are already set.
24811 if test "${ac_cv_have_x+set}" = set; then
24812 echo $ECHO_N "(cached) $ECHO_C" >&6
24814 # One or both of the vars are not set, and there is no cached value.
24815 ac_x_includes=no ac_x_libraries=no
24816 rm -fr conftest.dir
24817 if mkdir conftest.dir; then
24819 # Make sure to not put "make" in the Imakefile rules, since we grep it out.
24820 cat >Imakefile <<'_ACEOF'
24822 @echo 'ac_im_incroot="${INCROOT}"; ac_im_usrlibdir="${USRLIBDIR}"; ac_im_libdir="${LIBDIR}"'
24824 if (xmkmf) >/dev/null 2>/dev/null && test -f Makefile; then
24825 # GNU make sometimes prints "make[1]: Entering...", which would confuse us.
24826 eval `${MAKE-make} acfindx 2>/dev/null | grep -v make`
24827 # Open Windows xmkmf reportedly sets LIBDIR instead of USRLIBDIR.
24828 for ac_extension in a so sl; do
24829 if test ! -f $ac_im_usrlibdir/libX11.$ac_extension &&
24830 test -f $ac_im_libdir/libX11.$ac_extension; then
24831 ac_im_usrlibdir=$ac_im_libdir; break
24834 # Screen out bogus values from the imake configuration. They are
24835 # bogus both because they are the default anyway, and because
24836 # using them would break gcc on systems where it needs fixed includes.
24837 case $ac_im_incroot in
24839 *) test -f "$ac_im_incroot/X11/Xos.h" && ac_x_includes=$ac_im_incroot;;
24841 case $ac_im_usrlibdir in
24842 /usr/lib | /lib) ;;
24843 *) test -d "$ac_im_usrlibdir" && ac_x_libraries=$ac_im_usrlibdir ;;
24847 rm -fr conftest.dir
24850 # Standard set of common directories for X headers.
24851 # Check X11 before X11Rn because it is often a symlink to the current release.
24863 /usr/local/X11/include
24864 /usr/local/X11R6/include
24865 /usr/local/X11R5/include
24866 /usr/local/X11R4/include
24868 /usr/local/include/X11
24869 /usr/local/include/X11R6
24870 /usr/local/include/X11R5
24871 /usr/local/include/X11R4
24875 /usr/XFree86/include/X11
24879 /usr/unsupported/include
24880 /usr/athena/include
24881 /usr/local/x11r5/include
24882 /usr/lpp/Xamples/include
24884 /usr/openwin/include
24885 /usr/openwin/share/include'
24887 if test "$ac_x_includes" = no; then
24888 # Guess where to find include files, by looking for Intrinsic.h.
24889 # First, try using that file with no special directory specified.
24890 cat >conftest.$ac_ext <<_ACEOF
24893 cat confdefs.h >>conftest.$ac_ext
24894 cat >>conftest.$ac_ext <<_ACEOF
24895 /* end confdefs.h. */
24896 #include <X11/Intrinsic.h>
24898 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
24899 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
24901 grep -v '^ *+' conftest.er1 >conftest.err
24903 cat conftest.err >&5
24904 echo "$as_me:$LINENO: \$? = $ac_status" >&5
24905 (exit $ac_status); } >/dev/null; then
24906 if test -s conftest.err; then
24907 ac_cpp_err=$ac_c_preproc_warn_flag
24908 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
24915 if test -z "$ac_cpp_err"; then
24916 # We can compile using X headers with no special include directory.
24919 echo "$as_me: failed program was:" >&5
24920 sed 's/^/| /' conftest.$ac_ext >&5
24922 for ac_dir in $ac_x_header_dirs; do
24923 if test -r "$ac_dir/X11/Intrinsic.h"; then
24924 ac_x_includes=$ac_dir
24929 rm -f conftest.err conftest.$ac_ext
24930 fi # $ac_x_includes = no
24932 if test "$ac_x_libraries" = no; then
24933 # Check for the libraries.
24934 # See if we find them without any special options.
24935 # Don't add to $LIBS permanently.
24938 cat >conftest.$ac_ext <<_ACEOF
24941 cat confdefs.h >>conftest.$ac_ext
24942 cat >>conftest.$ac_ext <<_ACEOF
24943 /* end confdefs.h. */
24944 #include <X11/Intrinsic.h>
24953 rm -f conftest.$ac_objext conftest$ac_exeext
24954 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
24955 (eval $ac_link) 2>conftest.er1
24957 grep -v '^ *+' conftest.er1 >conftest.err
24959 cat conftest.err >&5
24960 echo "$as_me:$LINENO: \$? = $ac_status" >&5
24961 (exit $ac_status); } &&
24962 { ac_try='test -z "$ac_c_werror_flag"
24963 || test ! -s conftest.err'
24964 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
24965 (eval $ac_try) 2>&5
24967 echo "$as_me:$LINENO: \$? = $ac_status" >&5
24968 (exit $ac_status); }; } &&
24969 { ac_try='test -s conftest$ac_exeext'
24970 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
24971 (eval $ac_try) 2>&5
24973 echo "$as_me:$LINENO: \$? = $ac_status" >&5
24974 (exit $ac_status); }; }; then
24976 # We can link X programs with no special library path.
24979 echo "$as_me: failed program was:" >&5
24980 sed 's/^/| /' conftest.$ac_ext >&5
24983 for ac_dir in `echo "$ac_x_includes $ac_x_header_dirs" | sed s/include/lib/g`
24985 # Don't even attempt the hair of trying to link an X program!
24986 for ac_extension in a so sl; do
24987 if test -r $ac_dir/libXt.$ac_extension; then
24988 ac_x_libraries=$ac_dir
24994 rm -f conftest.err conftest.$ac_objext \
24995 conftest$ac_exeext conftest.$ac_ext
24996 fi # $ac_x_libraries = no
24998 if test "$ac_x_includes" = no || test "$ac_x_libraries" = no; then
24999 # Didn't find X anywhere. Cache the known absence of X.
25000 ac_cv_have_x="have_x=no"
25002 # Record where we found X for the cache.
25003 ac_cv_have_x="have_x=yes \
25004 ac_x_includes=$ac_x_includes ac_x_libraries=$ac_x_libraries"
25009 eval "$ac_cv_have_x"
25012 if test "$have_x" != yes; then
25013 echo "$as_me:$LINENO: result: $have_x" >&5
25014 echo "${ECHO_T}$have_x" >&6
25017 # If each of the values was on the command line, it overrides each guess.
25018 test "x$x_includes" = xNONE && x_includes=$ac_x_includes
25019 test "x$x_libraries" = xNONE && x_libraries=$ac_x_libraries
25020 # Update the cache value to reflect the command line values.
25021 ac_cv_have_x="have_x=yes \
25022 ac_x_includes=$x_includes ac_x_libraries=$x_libraries"
25023 echo "$as_me:$LINENO: result: libraries $x_libraries, headers $x_includes" >&5
25024 echo "${ECHO_T}libraries $x_libraries, headers $x_includes" >&6
25028 # Check whether we should enable the TUI, but only do so if we really
25030 if test x"$enable_tui" != xno; then
25031 if test -d $srcdir/tui; then
25032 if test "$ac_cv_search_waddstr" != no; then
25033 CONFIG_OBS="$CONFIG_OBS \$(SUBDIR_TUI_OBS)"
25034 CONFIG_DEPS="$CONFIG_DEPS \$(SUBDIR_TUI_DEPS)"
25035 CONFIG_SRCS="$CONFIG_SRCS \$(SUBDIR_TUI_SRCS)"
25036 ENABLE_CFLAGS="$ENABLE_CFLAGS \$(SUBDIR_TUI_CFLAGS)"
25037 CONFIG_ALL="${CONFIG_ALL} all-tui"
25038 CONFIG_CLEAN="${CONFIG_CLEAN} clean-tui"
25039 CONFIG_INSTALL="${CONFIG_INSTALL} install-tui"
25040 CONFIG_UNINSTALL="${CONFIG_UNINSTALL} uninstall-tui"
25042 if test x"$enable_tui" = xyes; then
25043 { { echo "$as_me:$LINENO: error: no enhanced curses library found; disable TUI" >&5
25044 echo "$as_me: error: no enhanced curses library found; disable TUI" >&2;}
25045 { (exit 1); exit 1; }; }
25047 { echo "$as_me:$LINENO: WARNING: no enhanced curses library found; disabling TUI" >&5
25048 echo "$as_me: WARNING: no enhanced curses library found; disabling TUI" >&2;}
25054 # Unlike the sim directory, whether a simulator is linked is controlled by
25055 # presence of a gdb_sim definition in the target configure.tgt entry.
25056 # This code just checks for a few cases where we'd like to ignore those
25057 # definitions, even when they're present in the '.mt' file. These cases
25058 # are when --disable-sim is specified, or if the simulator directory is
25059 # not part of the source tree.
25061 # Check whether --enable-sim or --disable-sim was given.
25062 if test "${enable_sim+set}" = set; then
25063 enableval="$enable_sim"
25064 echo "enable_sim = $enable_sim";
25065 echo "enableval = ${enableval}";
25066 case "${enableval}" in
25067 yes) ignore_sim=false ;;
25068 no) ignore_sim=true ;;
25069 *) ignore_sim=false ;;
25075 if test ! -d "${srcdir}/../sim"; then
25081 if test "${ignore_sim}" = "false"; then
25082 if test x"${gdb_sim}" != x ; then
25084 SIM_OBS="remote-sim.o"
25086 cat >>confdefs.h <<\_ACEOF
25106 # List of host floatformats.
25108 cat >>confdefs.h <<_ACEOF
25109 #define GDB_HOST_FLOAT_FORMAT $gdb_host_float_format
25113 cat >>confdefs.h <<_ACEOF
25114 #define GDB_HOST_DOUBLE_FORMAT $gdb_host_double_format
25118 cat >>confdefs.h <<_ACEOF
25119 #define GDB_HOST_LONG_DOUBLE_FORMAT $gdb_host_long_double_format
25123 # target_subdir is used by the testsuite to find the target libraries.
25125 if test "${host}" != "${target}"; then
25126 target_subdir="${target_alias}/"
25131 if test "${gdb_native}" = "yes"; then
25132 host_makefile_frag=${srcdir}/config/${gdb_host_cpu}/${gdb_host}.mh
25133 if test ! -f ${host_makefile_frag}; then
25134 { { echo "$as_me:$LINENO: error: \"*** Gdb does not support native target ${host}\"" >&5
25135 echo "$as_me: error: \"*** Gdb does not support native target ${host}\"" >&2;}
25136 { (exit 1); exit 1; }; }
25138 frags="$frags $host_makefile_frag"
25140 host_makefile_frag=/dev/null
25146 if test "${gdb_native}" = "yes"; then
25147 # We pick this up from the host configuration file (.mh) because we
25148 # do not have a native configuration Makefile fragment.
25149 nativefile=`sed -n '
25150 s/NAT_FILE[ ]*=[ ]*\([^ ]*\)/\1/p
25151 ' ${host_makefile_frag}`
25155 if test x"${gdb_osabi}" != x ; then
25157 cat >>confdefs.h <<_ACEOF
25158 #define GDB_OSABI_DEFAULT $gdb_osabi
25163 # Enable multi-ice-gdb-server.
25164 # Check whether --enable-multi-ice or --disable-multi-ice was given.
25165 if test "${enable_multi_ice+set}" = set; then
25166 enableval="$enable_multi_ice"
25170 *) { { echo "$as_me:$LINENO: error: bad value $enableval for --enable-multi-ice" >&5
25171 echo "$as_me: error: bad value $enableval for --enable-multi-ice" >&2;}
25172 { (exit 1); exit 1; }; } ;;
25175 if test "x$enable_multi_ice" = xyes; then
25178 subdirs="$subdirs multi-ice"
25182 # We only build gdbserver automatically in a native configuration.
25183 if test "$gdb_native" = "yes"; then
25184 echo "$as_me:$LINENO: checking whether gdbserver is supported on this host" >&5
25185 echo $ECHO_N "checking whether gdbserver is supported on this host... $ECHO_C" >&6
25186 if test "x$build_gdbserver" = xyes; then
25187 echo "$as_me:$LINENO: result: yes" >&5
25188 echo "${ECHO_T}yes" >&6
25191 subdirs="$subdirs gdbserver"
25194 echo "$as_me:$LINENO: result: no" >&5
25195 echo "${ECHO_T}no" >&6
25199 # If nativefile (NAT_FILE) is not set in config/*/*.m[ht] files, we link
25200 # to an empty version.
25207 if test "${nativefile}" != ""; then
25209 case "${nativefile}" in
25210 nm-*.h ) GDB_NM_FILE="config/${gdb_host_cpu}/${nativefile}" ;;
25211 * ) GDB_NM_FILE="${nativefile}"
25213 files="${files} ${GDB_NM_FILE}"
25214 links="${links} nm.h"
25216 cat >>confdefs.h <<_ACEOF
25217 #define GDB_NM_FILE "${GDB_NM_FILE}"
25223 ac_sources="$files"
25225 while test -n "$ac_sources"; do
25226 set $ac_dests; ac_dest=$1; shift; ac_dests=$*
25227 set $ac_sources; ac_source=$1; shift; ac_sources=$*
25228 ac_config_links_1="$ac_config_links_1 $ac_dest:$ac_source"
25230 ac_config_links="$ac_config_links $ac_config_links_1"
25237 cat >>confdefs.h <<\_ACEOF
25238 #define GDB_DEFAULT_HOST_CHARSET "ISO-8859-1"
25245 # Check whether --with-libiconv-prefix or --without-libiconv-prefix was given.
25246 if test "${with_libiconv_prefix+set}" = set; then
25247 withval="$with_libiconv_prefix"
25249 for dir in `echo "$withval" | tr : ' '`; do
25250 if test -d $dir/include; then CPPFLAGS="$CPPFLAGS -I$dir/include"; fi
25251 if test -d $dir/lib; then LDFLAGS="$LDFLAGS -L$dir/lib"; fi
25256 echo "$as_me:$LINENO: checking for iconv" >&5
25257 echo $ECHO_N "checking for iconv... $ECHO_C" >&6
25258 if test "${am_cv_func_iconv+set}" = set; then
25259 echo $ECHO_N "(cached) $ECHO_C" >&6
25262 am_cv_func_iconv="no, consider installing GNU libiconv"
25264 cat >conftest.$ac_ext <<_ACEOF
25267 cat confdefs.h >>conftest.$ac_ext
25268 cat >>conftest.$ac_ext <<_ACEOF
25269 /* end confdefs.h. */
25270 #include <stdlib.h>
25275 iconv_t cd = iconv_open("","");
25276 iconv(cd,NULL,NULL,NULL,NULL);
25282 rm -f conftest.$ac_objext conftest$ac_exeext
25283 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
25284 (eval $ac_link) 2>conftest.er1
25286 grep -v '^ *+' conftest.er1 >conftest.err
25288 cat conftest.err >&5
25289 echo "$as_me:$LINENO: \$? = $ac_status" >&5
25290 (exit $ac_status); } &&
25291 { ac_try='test -z "$ac_c_werror_flag"
25292 || test ! -s conftest.err'
25293 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
25294 (eval $ac_try) 2>&5
25296 echo "$as_me:$LINENO: \$? = $ac_status" >&5
25297 (exit $ac_status); }; } &&
25298 { ac_try='test -s conftest$ac_exeext'
25299 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
25300 (eval $ac_try) 2>&5
25302 echo "$as_me:$LINENO: \$? = $ac_status" >&5
25303 (exit $ac_status); }; }; then
25304 am_cv_func_iconv=yes
25306 echo "$as_me: failed program was:" >&5
25307 sed 's/^/| /' conftest.$ac_ext >&5
25310 rm -f conftest.err conftest.$ac_objext \
25311 conftest$ac_exeext conftest.$ac_ext
25312 if test "$am_cv_func_iconv" != yes; then
25313 am_save_LIBS="$LIBS"
25314 LIBS="$LIBS -liconv"
25315 cat >conftest.$ac_ext <<_ACEOF
25318 cat confdefs.h >>conftest.$ac_ext
25319 cat >>conftest.$ac_ext <<_ACEOF
25320 /* end confdefs.h. */
25321 #include <stdlib.h>
25326 iconv_t cd = iconv_open("","");
25327 iconv(cd,NULL,NULL,NULL,NULL);
25333 rm -f conftest.$ac_objext conftest$ac_exeext
25334 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
25335 (eval $ac_link) 2>conftest.er1
25337 grep -v '^ *+' conftest.er1 >conftest.err
25339 cat conftest.err >&5
25340 echo "$as_me:$LINENO: \$? = $ac_status" >&5
25341 (exit $ac_status); } &&
25342 { ac_try='test -z "$ac_c_werror_flag"
25343 || test ! -s conftest.err'
25344 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
25345 (eval $ac_try) 2>&5
25347 echo "$as_me:$LINENO: \$? = $ac_status" >&5
25348 (exit $ac_status); }; } &&
25349 { ac_try='test -s conftest$ac_exeext'
25350 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
25351 (eval $ac_try) 2>&5
25353 echo "$as_me:$LINENO: \$? = $ac_status" >&5
25354 (exit $ac_status); }; }; then
25355 am_cv_lib_iconv=yes
25356 am_cv_func_iconv=yes
25358 echo "$as_me: failed program was:" >&5
25359 sed 's/^/| /' conftest.$ac_ext >&5
25362 rm -f conftest.err conftest.$ac_objext \
25363 conftest$ac_exeext conftest.$ac_ext
25364 LIBS="$am_save_LIBS"
25368 echo "$as_me:$LINENO: result: $am_cv_func_iconv" >&5
25369 echo "${ECHO_T}$am_cv_func_iconv" >&6
25370 if test "$am_cv_func_iconv" = yes; then
25372 cat >>confdefs.h <<\_ACEOF
25373 #define HAVE_ICONV 1
25376 echo "$as_me:$LINENO: checking for iconv declaration" >&5
25377 echo $ECHO_N "checking for iconv declaration... $ECHO_C" >&6
25378 if test "${am_cv_proto_iconv+set}" = set; then
25379 echo $ECHO_N "(cached) $ECHO_C" >&6
25382 cat >conftest.$ac_ext <<_ACEOF
25385 cat confdefs.h >>conftest.$ac_ext
25386 cat >>conftest.$ac_ext <<_ACEOF
25387 /* end confdefs.h. */
25389 #include <stdlib.h>
25395 #if defined(__STDC__) || defined(__cplusplus)
25396 size_t iconv (iconv_t cd, char * *inbuf, size_t *inbytesleft, char * *outbuf, size_t *outbytesleft);
25409 rm -f conftest.$ac_objext
25410 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
25411 (eval $ac_compile) 2>conftest.er1
25413 grep -v '^ *+' conftest.er1 >conftest.err
25415 cat conftest.err >&5
25416 echo "$as_me:$LINENO: \$? = $ac_status" >&5
25417 (exit $ac_status); } &&
25418 { ac_try='test -z "$ac_c_werror_flag"
25419 || test ! -s conftest.err'
25420 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
25421 (eval $ac_try) 2>&5
25423 echo "$as_me:$LINENO: \$? = $ac_status" >&5
25424 (exit $ac_status); }; } &&
25425 { ac_try='test -s conftest.$ac_objext'
25426 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
25427 (eval $ac_try) 2>&5
25429 echo "$as_me:$LINENO: \$? = $ac_status" >&5
25430 (exit $ac_status); }; }; then
25431 am_cv_proto_iconv_arg1=""
25433 echo "$as_me: failed program was:" >&5
25434 sed 's/^/| /' conftest.$ac_ext >&5
25436 am_cv_proto_iconv_arg1="const"
25438 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
25439 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);"
25442 am_cv_proto_iconv=`echo "$am_cv_proto_iconv" | tr -s ' ' | sed -e 's/( /(/'`
25443 echo "$as_me:$LINENO: result: ${ac_t:-
25444 }$am_cv_proto_iconv" >&5
25445 echo "${ECHO_T}${ac_t:-
25446 }$am_cv_proto_iconv" >&6
25448 cat >>confdefs.h <<_ACEOF
25449 #define ICONV_CONST $am_cv_proto_iconv_arg1
25454 if test "$am_cv_lib_iconv" = yes; then
25460 ac_config_files="$ac_config_files Makefile .gdbinit:gdbinit.in gnulib/Makefile"
25461 ac_config_commands="$ac_config_commands default"
25462 cat >confcache <<\_ACEOF
25463 # This file is a shell script that caches the results of configure
25464 # tests run on this system so they can be shared between configure
25465 # scripts and configure runs, see configure's option --config-cache.
25466 # It is not useful on other systems. If it contains results you don't
25467 # want to keep, you may remove or edit it.
25469 # config.status only pays attention to the cache file if you give it
25470 # the --recheck option to rerun configure.
25472 # `ac_cv_env_foo' variables (set or unset) will be overridden when
25473 # loading this file, other *unset* `ac_cv_foo' will be assigned the
25474 # following values.
25478 # The following way of writing the cache mishandles newlines in values,
25479 # but we know of no workaround that is simple, portable, and efficient.
25480 # So, don't put newlines in cache variables' values.
25481 # Ultrix sh set writes to stderr and can't be redirected directly,
25482 # and sets the high bit in the cache file unless we assign to the vars.
25485 case `(ac_space=' '; set | grep ac_space) 2>&1` in
25487 # `set' does not quote correctly, so add quotes (double-quote
25488 # substitution turns \\\\ into \\, and sed turns \\ into \).
25491 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p"
25494 # `set' quotes correctly as required by POSIX, so do not add quotes.
25496 "s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1=\\2/p"
25503 s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/
25505 /^ac_cv_env/!s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/
25507 if diff $cache_file confcache >/dev/null 2>&1; then :; else
25508 if test -w $cache_file; then
25509 test "x$cache_file" != "x/dev/null" && echo "updating cache $cache_file"
25510 cat confcache >$cache_file
25512 echo "not updating unwritable cache $cache_file"
25517 test "x$prefix" = xNONE && prefix=$ac_default_prefix
25518 # Let make expand exec_prefix.
25519 test "x$exec_prefix" = xNONE && exec_prefix='${prefix}'
25521 # VPATH may cause trouble with some makes, so we remove $(srcdir),
25522 # ${srcdir} and @srcdir@ from VPATH if srcdir is ".", strip leading and
25523 # trailing colons and then remove the whole line if VPATH becomes empty
25524 # (actually we leave an empty line to preserve line numbers).
25525 if test "x$srcdir" = x.; then
25526 ac_vpsub='/^[ ]*VPATH[ ]*=/{
25527 s/:*\$(srcdir):*/:/;
25528 s/:*\${srcdir}:*/:/;
25530 s/^\([^=]*=[ ]*\):*/\1/;
25536 DEFS=-DHAVE_CONFIG_H
25540 for ac_i in : $LIBOBJS; do test "x$ac_i" = x: && continue
25541 # 1. Remove the extension, and $U if already installed.
25542 ac_i=`echo "$ac_i" |
25543 sed 's/\$U\././;s/\.o$//;s/\.obj$//'`
25545 ac_libobjs="$ac_libobjs $ac_i\$U.$ac_objext"
25546 ac_ltlibobjs="$ac_ltlibobjs $ac_i"'$U.lo'
25548 LIBOBJS=$ac_libobjs
25550 LTLIBOBJS=$ac_ltlibobjs
25553 if test -z "${MAINTAINER_MODE_TRUE}" && test -z "${MAINTAINER_MODE_FALSE}"; then
25554 { { echo "$as_me:$LINENO: error: conditional \"MAINTAINER_MODE\" was never defined.
25555 Usually this means the macro was only invoked conditionally." >&5
25556 echo "$as_me: error: conditional \"MAINTAINER_MODE\" was never defined.
25557 Usually this means the macro was only invoked conditionally." >&2;}
25558 { (exit 1); exit 1; }; }
25560 if test -z "${GL_COND_LIBTOOL_TRUE}" && test -z "${GL_COND_LIBTOOL_FALSE}"; then
25561 { { echo "$as_me:$LINENO: error: conditional \"GL_COND_LIBTOOL\" was never defined.
25562 Usually this means the macro was only invoked conditionally." >&5
25563 echo "$as_me: error: conditional \"GL_COND_LIBTOOL\" was never defined.
25564 Usually this means the macro was only invoked conditionally." >&2;}
25565 { (exit 1); exit 1; }; }
25570 if test -n "$gl_LIBOBJS"; then
25571 # Remove the extension.
25572 sed_drop_objext='s/\.o$//;s/\.obj$//'
25573 for i in `for i in $gl_LIBOBJS; do echo "$i"; done | sed "$sed_drop_objext" | sort | uniq`; do
25574 gl_libobjs="$gl_libobjs $i.$ac_objext"
25575 gl_ltlibobjs="$gl_ltlibobjs $i.lo"
25578 gl_LIBOBJS=$gl_libobjs
25580 gl_LTLIBOBJS=$gl_ltlibobjs
25586 if test -n "$gltests_LIBOBJS"; then
25587 # Remove the extension.
25588 sed_drop_objext='s/\.o$//;s/\.obj$//'
25589 for i in `for i in $gltests_LIBOBJS; do echo "$i"; done | sed "$sed_drop_objext" | sort | uniq`; do
25590 gltests_libobjs="$gltests_libobjs $i.$ac_objext"
25591 gltests_ltlibobjs="$gltests_ltlibobjs $i.lo"
25594 gltests_LIBOBJS=$gltests_libobjs
25596 gltests_LTLIBOBJS=$gltests_ltlibobjs
25599 if test -z "${AMDEP_TRUE}" && test -z "${AMDEP_FALSE}"; then
25600 { { echo "$as_me:$LINENO: error: conditional \"AMDEP\" was never defined.
25601 Usually this means the macro was only invoked conditionally." >&5
25602 echo "$as_me: error: conditional \"AMDEP\" was never defined.
25603 Usually this means the macro was only invoked conditionally." >&2;}
25604 { (exit 1); exit 1; }; }
25606 if test -z "${am__fastdepCC_TRUE}" && test -z "${am__fastdepCC_FALSE}"; then
25607 { { echo "$as_me:$LINENO: error: conditional \"am__fastdepCC\" was never defined.
25608 Usually this means the macro was only invoked conditionally." >&5
25609 echo "$as_me: error: conditional \"am__fastdepCC\" was never defined.
25610 Usually this means the macro was only invoked conditionally." >&2;}
25611 { (exit 1); exit 1; }; }
25614 : ${CONFIG_STATUS=./config.status}
25615 ac_clean_files_save=$ac_clean_files
25616 ac_clean_files="$ac_clean_files $CONFIG_STATUS"
25617 { echo "$as_me:$LINENO: creating $CONFIG_STATUS" >&5
25618 echo "$as_me: creating $CONFIG_STATUS" >&6;}
25619 cat >$CONFIG_STATUS <<_ACEOF
25621 # Generated by $as_me.
25622 # Run this file to recreate the current configuration.
25623 # Compiler output produced by configure, useful for debugging
25624 # configure, is in config.log if it exists.
25627 ac_cs_recheck=false
25629 SHELL=\${CONFIG_SHELL-$SHELL}
25632 cat >>$CONFIG_STATUS <<\_ACEOF
25633 ## --------------------- ##
25634 ## M4sh Initialization. ##
25635 ## --------------------- ##
25637 # Be Bourne compatible
25638 if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then
25641 # Zsh 3.x and 4.x performs word splitting on ${1+"$@"}, which
25642 # is contrary to our usage. Disable this feature.
25643 alias -g '${1+"$@"}'='"$@"'
25644 elif test -n "${BASH_VERSION+set}" && (set -o posix) >/dev/null 2>&1; then
25647 DUALCASE=1; export DUALCASE # for MKS sh
25649 # Support unset when possible.
25650 if ( (MAIL=60; unset MAIL) || exit) >/dev/null 2>&1; then
25657 # Work around bugs in pre-3.0 UWIN ksh.
25658 $as_unset ENV MAIL MAILPATH
25665 LANG LANGUAGE LC_ADDRESS LC_ALL LC_COLLATE LC_CTYPE LC_IDENTIFICATION \
25666 LC_MEASUREMENT LC_MESSAGES LC_MONETARY LC_NAME LC_NUMERIC LC_PAPER \
25667 LC_TELEPHONE LC_TIME
25669 if (set +x; test -z "`(eval $as_var=C; export $as_var) 2>&1`"); then
25670 eval $as_var=C; export $as_var
25676 # Required to use basename.
25677 if expr a : '\(a\)' >/dev/null 2>&1; then
25683 if (basename /) >/dev/null 2>&1 && test "X`basename / 2>&1`" = "X/"; then
25684 as_basename=basename
25690 # Name of the executable.
25691 as_me=`$as_basename "$0" ||
25692 $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
25693 X"$0" : 'X\(//\)$' \| \
25694 X"$0" : 'X\(/\)$' \| \
25695 . : '\(.\)' 2>/dev/null ||
25697 sed '/^.*\/\([^/][^/]*\)\/*$/{ s//\1/; q; }
25698 /^X\/\(\/\/\)$/{ s//\1/; q; }
25699 /^X\/\(\/\).*/{ s//\1/; q; }
25703 # PATH needs CR, and LINENO needs CR and PATH.
25704 # Avoid depending upon Character Ranges.
25705 as_cr_letters='abcdefghijklmnopqrstuvwxyz'
25706 as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
25707 as_cr_Letters=$as_cr_letters$as_cr_LETTERS
25708 as_cr_digits='0123456789'
25709 as_cr_alnum=$as_cr_Letters$as_cr_digits
25711 # The user is always right.
25712 if test "${PATH_SEPARATOR+set}" != set; then
25713 echo "#! /bin/sh" >conf$$.sh
25714 echo "exit 0" >>conf$$.sh
25716 if (PATH="/nonexistent;."; conf$$.sh) >/dev/null 2>&1; then
25725 as_lineno_1=$LINENO
25726 as_lineno_2=$LINENO
25727 as_lineno_3=`(expr $as_lineno_1 + 1) 2>/dev/null`
25728 test "x$as_lineno_1" != "x$as_lineno_2" &&
25729 test "x$as_lineno_3" = "x$as_lineno_2" || {
25730 # Find who we are. Look in the path if we contain no path at all
25733 *[\\/]* ) as_myself=$0 ;;
25734 *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
25735 for as_dir in $PATH
25738 test -z "$as_dir" && as_dir=.
25739 test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
25744 # We did not find ourselves, most probably we were run as `sh COMMAND'
25745 # in which case we are not to be found in the path.
25746 if test "x$as_myself" = x; then
25749 if test ! -f "$as_myself"; then
25750 { { echo "$as_me:$LINENO: error: cannot find myself; rerun with an absolute path" >&5
25751 echo "$as_me: error: cannot find myself; rerun with an absolute path" >&2;}
25752 { (exit 1); exit 1; }; }
25754 case $CONFIG_SHELL in
25756 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
25757 for as_dir in /bin$PATH_SEPARATOR/usr/bin$PATH_SEPARATOR$PATH
25760 test -z "$as_dir" && as_dir=.
25761 for as_base in sh bash ksh sh5; do
25764 if ("$as_dir/$as_base" -c '
25765 as_lineno_1=$LINENO
25766 as_lineno_2=$LINENO
25767 as_lineno_3=`(expr $as_lineno_1 + 1) 2>/dev/null`
25768 test "x$as_lineno_1" != "x$as_lineno_2" &&
25769 test "x$as_lineno_3" = "x$as_lineno_2" ') 2>/dev/null; then
25770 $as_unset BASH_ENV || test "${BASH_ENV+set}" != set || { BASH_ENV=; export BASH_ENV; }
25771 $as_unset ENV || test "${ENV+set}" != set || { ENV=; export ENV; }
25772 CONFIG_SHELL=$as_dir/$as_base
25773 export CONFIG_SHELL
25774 exec "$CONFIG_SHELL" "$0" ${1+"$@"}
25782 # Create $as_me.lineno as a copy of $as_myself, but with $LINENO
25783 # uniformly replaced by the line number. The first 'sed' inserts a
25784 # line-number line before each line; the second 'sed' does the real
25785 # work. The second script uses 'N' to pair each line-number line
25786 # with the numbered line, and appends trailing '-' during
25787 # substitution so that $LINENO is not a special case at line end.
25788 # (Raja R Harinath suggested sed '=', and Paul Eggert wrote the
25789 # second 'sed' script. Blame Lee E. McMahon for sed's syntax. :-)
25790 sed '=' <$as_myself |
25795 s,^\(['$as_cr_digits']*\)\(.*\)[$]LINENO\([^'$as_cr_alnum'_]\),\1\2\1\3,
25798 s,^['$as_cr_digits']*\n,,
25799 ' >$as_me.lineno &&
25800 chmod +x $as_me.lineno ||
25801 { { echo "$as_me:$LINENO: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&5
25802 echo "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2;}
25803 { (exit 1); exit 1; }; }
25805 # Don't try to exec as it changes $[0], causing all sort of problems
25806 # (the dirname of $[0] is not the place where we might find the
25807 # original and so on. Autoconf is especially sensible to this).
25809 # Exit status is that of the last command.
25814 case `echo "testing\c"; echo 1,2,3`,`echo -n testing; echo 1,2,3` in
25815 *c*,-n*) ECHO_N= ECHO_C='
25817 *c*,* ) ECHO_N=-n ECHO_C= ECHO_T= ;;
25818 *) ECHO_N= ECHO_C='\c' ECHO_T= ;;
25821 if expr a : '\(a\)' >/dev/null 2>&1; then
25827 rm -f conf$$ conf$$.exe conf$$.file
25829 if ln -s conf$$.file conf$$ 2>/dev/null; then
25830 # We could just check for DJGPP; but this test a) works b) is more generic
25831 # and c) will remain valid once DJGPP supports symlinks (DJGPP 2.04).
25832 if test -f conf$$.exe; then
25833 # Don't use ln at all; we don't have any links
25838 elif ln conf$$.file conf$$ 2>/dev/null; then
25843 rm -f conf$$ conf$$.exe conf$$.file
25845 if mkdir -p . 2>/dev/null; then
25848 test -d ./-p && rmdir ./-p
25852 as_executable_p="test -f"
25854 # Sed expression to map a string onto a valid CPP name.
25855 as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
25857 # Sed expression to map a string onto a valid variable name.
25858 as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
25862 # We need space, tab and new line, in precisely that order.
25872 # Open the log real soon, to keep \$[0] and so on meaningful, and to
25873 # report actual input values of CONFIG_FILES etc. instead of their
25874 # values after options handling. Logging --version etc. is OK.
25878 sed 'h;s/./-/g;s/^.../## /;s/...$/ ##/;p;x;p;x' <<_ASBOX
25879 ## Running $as_me. ##
25884 This file was extended by $as_me, which was
25885 generated by GNU Autoconf 2.59. Invocation command line was
25887 CONFIG_FILES = $CONFIG_FILES
25888 CONFIG_HEADERS = $CONFIG_HEADERS
25889 CONFIG_LINKS = $CONFIG_LINKS
25890 CONFIG_COMMANDS = $CONFIG_COMMANDS
25894 echo "on `(hostname || uname -n) 2>/dev/null | sed 1q`" >&5
25898 # Files that config.status was made for.
25899 if test -n "$ac_config_files"; then
25900 echo "config_files=\"$ac_config_files\"" >>$CONFIG_STATUS
25903 if test -n "$ac_config_headers"; then
25904 echo "config_headers=\"$ac_config_headers\"" >>$CONFIG_STATUS
25907 if test -n "$ac_config_links"; then
25908 echo "config_links=\"$ac_config_links\"" >>$CONFIG_STATUS
25911 if test -n "$ac_config_commands"; then
25912 echo "config_commands=\"$ac_config_commands\"" >>$CONFIG_STATUS
25915 cat >>$CONFIG_STATUS <<\_ACEOF
25918 \`$as_me' instantiates files from templates according to the
25919 current configuration.
25921 Usage: $0 [OPTIONS] [FILE]...
25923 -h, --help print this help, then exit
25924 -V, --version print version number, then exit
25925 -q, --quiet do not print progress messages
25926 -d, --debug don't remove temporary files
25927 --recheck update $as_me by reconfiguring in the same conditions
25928 --file=FILE[:TEMPLATE]
25929 instantiate the configuration file FILE
25930 --header=FILE[:TEMPLATE]
25931 instantiate the configuration header FILE
25933 Configuration files:
25936 Configuration headers:
25939 Configuration links:
25942 Configuration commands:
25945 Report bugs to <bug-autoconf@gnu.org>."
25948 cat >>$CONFIG_STATUS <<_ACEOF
25951 configured by $0, generated by GNU Autoconf 2.59,
25952 with options \\"`echo "$ac_configure_args" | sed 's/[\\""\`\$]/\\\\&/g'`\\"
25954 Copyright (C) 2003 Free Software Foundation, Inc.
25955 This config.status script is free software; the Free Software Foundation
25956 gives unlimited permission to copy, distribute and modify it."
25961 cat >>$CONFIG_STATUS <<\_ACEOF
25962 # If no file are specified by the user, then we need to provide default
25963 # value. By we need to know if files were specified by the user.
25969 ac_option=`expr "x$1" : 'x\([^=]*\)='`
25970 ac_optarg=`expr "x$1" : 'x[^=]*=\(.*\)'`
25978 *) # This is not an option, so the user has probably given explicit
25981 ac_need_defaults=false;;
25985 # Handling of the options.
25987 cat >>$CONFIG_STATUS <<\_ACEOF
25988 -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r)
25990 --version | --vers* | -V )
25991 echo "$ac_cs_version"; exit 0 ;;
25993 # Conflict between --help and --header
25994 { { echo "$as_me:$LINENO: error: ambiguous option: $1
25995 Try \`$0 --help' for more information." >&5
25996 echo "$as_me: error: ambiguous option: $1
25997 Try \`$0 --help' for more information." >&2;}
25998 { (exit 1); exit 1; }; };;
25999 --help | --hel | -h )
26000 echo "$ac_cs_usage"; exit 0 ;;
26001 --debug | --d* | -d )
26003 --file | --fil | --fi | --f )
26005 CONFIG_FILES="$CONFIG_FILES $ac_optarg"
26006 ac_need_defaults=false;;
26007 --header | --heade | --head | --hea )
26009 CONFIG_HEADERS="$CONFIG_HEADERS $ac_optarg"
26010 ac_need_defaults=false;;
26011 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
26012 | -silent | --silent | --silen | --sile | --sil | --si | --s)
26015 # This is an error.
26016 -*) { { echo "$as_me:$LINENO: error: unrecognized option: $1
26017 Try \`$0 --help' for more information." >&5
26018 echo "$as_me: error: unrecognized option: $1
26019 Try \`$0 --help' for more information." >&2;}
26020 { (exit 1); exit 1; }; } ;;
26022 *) ac_config_targets="$ac_config_targets $1" ;;
26028 ac_configure_extra_args=
26030 if $ac_cs_silent; then
26032 ac_configure_extra_args="$ac_configure_extra_args --silent"
26036 cat >>$CONFIG_STATUS <<_ACEOF
26037 if \$ac_cs_recheck; then
26038 echo "running $SHELL $0 " $ac_configure_args \$ac_configure_extra_args " --no-create --no-recursion" >&6
26039 exec $SHELL $0 $ac_configure_args \$ac_configure_extra_args --no-create --no-recursion
26044 cat >>$CONFIG_STATUS <<_ACEOF
26046 # INIT-COMMANDS section.
26049 AMDEP_TRUE="$AMDEP_TRUE" ac_aux_dir="$ac_aux_dir"
26051 gdb_host_cpu=$gdb_host_cpu
26052 nativefile=$nativefile
26059 cat >>$CONFIG_STATUS <<\_ACEOF
26060 for ac_config_target in $ac_config_targets
26062 case "$ac_config_target" in
26063 # Handling of arguments.
26064 "Makefile" ) CONFIG_FILES="$CONFIG_FILES Makefile" ;;
26065 ".gdbinit" ) CONFIG_FILES="$CONFIG_FILES .gdbinit:gdbinit.in" ;;
26066 "gnulib/Makefile" ) CONFIG_FILES="$CONFIG_FILES gnulib/Makefile" ;;
26067 "$ac_config_links_1" ) CONFIG_LINKS="$CONFIG_LINKS $ac_config_links_1" ;;
26068 "depfiles" ) CONFIG_COMMANDS="$CONFIG_COMMANDS depfiles" ;;
26069 "default" ) CONFIG_COMMANDS="$CONFIG_COMMANDS default" ;;
26070 "config.h" ) CONFIG_HEADERS="$CONFIG_HEADERS config.h:config.in" ;;
26071 *) { { echo "$as_me:$LINENO: error: invalid argument: $ac_config_target" >&5
26072 echo "$as_me: error: invalid argument: $ac_config_target" >&2;}
26073 { (exit 1); exit 1; }; };;
26077 # If the user did not use the arguments to specify the items to instantiate,
26078 # then the envvar interface is used. Set only those that are not.
26079 # We use the long form for the default assignment because of an extremely
26080 # bizarre bug on SunOS 4.1.3.
26081 if $ac_need_defaults; then
26082 test "${CONFIG_FILES+set}" = set || CONFIG_FILES=$config_files
26083 test "${CONFIG_HEADERS+set}" = set || CONFIG_HEADERS=$config_headers
26084 test "${CONFIG_LINKS+set}" = set || CONFIG_LINKS=$config_links
26085 test "${CONFIG_COMMANDS+set}" = set || CONFIG_COMMANDS=$config_commands
26088 # Have a temporary directory for convenience. Make it in the build tree
26089 # simply because there is no reason to put it here, and in addition,
26090 # creating and moving files from /tmp can sometimes cause problems.
26091 # Create a temporary directory, and hook for its removal unless debugging.
26094 trap 'exit_status=$?; rm -rf $tmp && exit $exit_status' 0
26095 trap '{ (exit 1); exit 1; }' 1 2 13 15
26098 # Create a (secure) tmp directory for tmp files.
26101 tmp=`(umask 077 && mktemp -d -q "./confstatXXXXXX") 2>/dev/null` &&
26102 test -n "$tmp" && test -d "$tmp"
26105 tmp=./confstat$$-$RANDOM
26106 (umask 077 && mkdir $tmp)
26109 echo "$me: cannot create a temporary directory in ." >&2
26110 { (exit 1); exit 1; }
26115 cat >>$CONFIG_STATUS <<_ACEOF
26118 # CONFIG_FILES section.
26121 # No need to generate the scripts if there are no CONFIG_FILES.
26122 # This happens for instance when ./config.status config.h
26123 if test -n "\$CONFIG_FILES"; then
26124 # Protect against being on the right side of a sed subst in config.status.
26125 sed 's/,@/@@/; s/@,/@@/; s/,;t t\$/@;t t/; /@;t t\$/s/[\\\\&,]/\\\\&/g;
26126 s/@@/,@/; s/@@/@,/; s/@;t t\$/,;t t/' >\$tmp/subs.sed <<\\CEOF
26127 s,@SHELL@,$SHELL,;t t
26128 s,@PATH_SEPARATOR@,$PATH_SEPARATOR,;t t
26129 s,@PACKAGE_NAME@,$PACKAGE_NAME,;t t
26130 s,@PACKAGE_TARNAME@,$PACKAGE_TARNAME,;t t
26131 s,@PACKAGE_VERSION@,$PACKAGE_VERSION,;t t
26132 s,@PACKAGE_STRING@,$PACKAGE_STRING,;t t
26133 s,@PACKAGE_BUGREPORT@,$PACKAGE_BUGREPORT,;t t
26134 s,@exec_prefix@,$exec_prefix,;t t
26135 s,@prefix@,$prefix,;t t
26136 s,@program_transform_name@,$program_transform_name,;t t
26137 s,@bindir@,$bindir,;t t
26138 s,@sbindir@,$sbindir,;t t
26139 s,@libexecdir@,$libexecdir,;t t
26140 s,@datadir@,$datadir,;t t
26141 s,@sysconfdir@,$sysconfdir,;t t
26142 s,@sharedstatedir@,$sharedstatedir,;t t
26143 s,@localstatedir@,$localstatedir,;t t
26144 s,@libdir@,$libdir,;t t
26145 s,@includedir@,$includedir,;t t
26146 s,@oldincludedir@,$oldincludedir,;t t
26147 s,@infodir@,$infodir,;t t
26148 s,@mandir@,$mandir,;t t
26149 s,@build_alias@,$build_alias,;t t
26150 s,@host_alias@,$host_alias,;t t
26151 s,@target_alias@,$target_alias,;t t
26152 s,@DEFS@,$DEFS,;t t
26153 s,@ECHO_C@,$ECHO_C,;t t
26154 s,@ECHO_N@,$ECHO_N,;t t
26155 s,@ECHO_T@,$ECHO_T,;t t
26156 s,@LIBS@,$LIBS,;t t
26157 s,@MAINTAINER_MODE_TRUE@,$MAINTAINER_MODE_TRUE,;t t
26158 s,@MAINTAINER_MODE_FALSE@,$MAINTAINER_MODE_FALSE,;t t
26159 s,@MAINT@,$MAINT,;t t
26161 s,@CFLAGS@,$CFLAGS,;t t
26162 s,@LDFLAGS@,$LDFLAGS,;t t
26163 s,@CPPFLAGS@,$CPPFLAGS,;t t
26164 s,@ac_ct_CC@,$ac_ct_CC,;t t
26165 s,@EXEEXT@,$EXEEXT,;t t
26166 s,@OBJEXT@,$OBJEXT,;t t
26168 s,@EGREP@,$EGREP,;t t
26169 s,@RANLIB@,$RANLIB,;t t
26170 s,@ac_ct_RANLIB@,$ac_ct_RANLIB,;t t
26171 s,@build@,$build,;t t
26172 s,@build_cpu@,$build_cpu,;t t
26173 s,@build_vendor@,$build_vendor,;t t
26174 s,@build_os@,$build_os,;t t
26175 s,@host@,$host,;t t
26176 s,@host_cpu@,$host_cpu,;t t
26177 s,@host_vendor@,$host_vendor,;t t
26178 s,@host_os@,$host_os,;t t
26179 s,@target@,$target,;t t
26180 s,@target_cpu@,$target_cpu,;t t
26181 s,@target_vendor@,$target_vendor,;t t
26182 s,@target_os@,$target_os,;t t
26183 s,@USE_NLS@,$USE_NLS,;t t
26184 s,@LIBINTL@,$LIBINTL,;t t
26185 s,@LIBINTL_DEP@,$LIBINTL_DEP,;t t
26186 s,@INCINTL@,$INCINTL,;t t
26187 s,@XGETTEXT@,$XGETTEXT,;t t
26188 s,@GMSGFMT@,$GMSGFMT,;t t
26189 s,@POSUB@,$POSUB,;t t
26190 s,@CATALOGS@,$CATALOGS,;t t
26191 s,@DATADIRNAME@,$DATADIRNAME,;t t
26192 s,@INSTOBJEXT@,$INSTOBJEXT,;t t
26193 s,@GENCAT@,$GENCAT,;t t
26194 s,@CATOBJEXT@,$CATOBJEXT,;t t
26195 s,@localedir@,$localedir,;t t
26196 s,@GL_COND_LIBTOOL_TRUE@,$GL_COND_LIBTOOL_TRUE,;t t
26197 s,@GL_COND_LIBTOOL_FALSE@,$GL_COND_LIBTOOL_FALSE,;t t
26198 s,@GNULIB_MEMMEM@,$GNULIB_MEMMEM,;t t
26199 s,@GNULIB_MEMPCPY@,$GNULIB_MEMPCPY,;t t
26200 s,@GNULIB_MEMRCHR@,$GNULIB_MEMRCHR,;t t
26201 s,@GNULIB_STPCPY@,$GNULIB_STPCPY,;t t
26202 s,@GNULIB_STPNCPY@,$GNULIB_STPNCPY,;t t
26203 s,@GNULIB_STRCHRNUL@,$GNULIB_STRCHRNUL,;t t
26204 s,@GNULIB_STRDUP@,$GNULIB_STRDUP,;t t
26205 s,@GNULIB_STRNDUP@,$GNULIB_STRNDUP,;t t
26206 s,@GNULIB_STRNLEN@,$GNULIB_STRNLEN,;t t
26207 s,@GNULIB_STRPBRK@,$GNULIB_STRPBRK,;t t
26208 s,@GNULIB_STRSEP@,$GNULIB_STRSEP,;t t
26209 s,@GNULIB_STRSTR@,$GNULIB_STRSTR,;t t
26210 s,@GNULIB_STRCASESTR@,$GNULIB_STRCASESTR,;t t
26211 s,@GNULIB_STRTOK_R@,$GNULIB_STRTOK_R,;t t
26212 s,@GNULIB_MBSLEN@,$GNULIB_MBSLEN,;t t
26213 s,@GNULIB_MBSNLEN@,$GNULIB_MBSNLEN,;t t
26214 s,@GNULIB_MBSCHR@,$GNULIB_MBSCHR,;t t
26215 s,@GNULIB_MBSRCHR@,$GNULIB_MBSRCHR,;t t
26216 s,@GNULIB_MBSSTR@,$GNULIB_MBSSTR,;t t
26217 s,@GNULIB_MBSCASECMP@,$GNULIB_MBSCASECMP,;t t
26218 s,@GNULIB_MBSNCASECMP@,$GNULIB_MBSNCASECMP,;t t
26219 s,@GNULIB_MBSPCASECMP@,$GNULIB_MBSPCASECMP,;t t
26220 s,@GNULIB_MBSCASESTR@,$GNULIB_MBSCASESTR,;t t
26221 s,@GNULIB_MBSCSPN@,$GNULIB_MBSCSPN,;t t
26222 s,@GNULIB_MBSPBRK@,$GNULIB_MBSPBRK,;t t
26223 s,@GNULIB_MBSSPN@,$GNULIB_MBSSPN,;t t
26224 s,@GNULIB_MBSSEP@,$GNULIB_MBSSEP,;t t
26225 s,@GNULIB_MBSTOK_R@,$GNULIB_MBSTOK_R,;t t
26226 s,@GNULIB_STRERROR@,$GNULIB_STRERROR,;t t
26227 s,@GNULIB_STRSIGNAL@,$GNULIB_STRSIGNAL,;t t
26228 s,@HAVE_DECL_MEMMEM@,$HAVE_DECL_MEMMEM,;t t
26229 s,@HAVE_MEMPCPY@,$HAVE_MEMPCPY,;t t
26230 s,@HAVE_DECL_MEMRCHR@,$HAVE_DECL_MEMRCHR,;t t
26231 s,@HAVE_STPCPY@,$HAVE_STPCPY,;t t
26232 s,@HAVE_STPNCPY@,$HAVE_STPNCPY,;t t
26233 s,@HAVE_STRCHRNUL@,$HAVE_STRCHRNUL,;t t
26234 s,@HAVE_DECL_STRDUP@,$HAVE_DECL_STRDUP,;t t
26235 s,@HAVE_STRNDUP@,$HAVE_STRNDUP,;t t
26236 s,@HAVE_DECL_STRNDUP@,$HAVE_DECL_STRNDUP,;t t
26237 s,@HAVE_DECL_STRNLEN@,$HAVE_DECL_STRNLEN,;t t
26238 s,@HAVE_STRPBRK@,$HAVE_STRPBRK,;t t
26239 s,@HAVE_STRSEP@,$HAVE_STRSEP,;t t
26240 s,@HAVE_STRCASESTR@,$HAVE_STRCASESTR,;t t
26241 s,@HAVE_DECL_STRTOK_R@,$HAVE_DECL_STRTOK_R,;t t
26242 s,@HAVE_DECL_STRERROR@,$HAVE_DECL_STRERROR,;t t
26243 s,@HAVE_DECL_STRSIGNAL@,$HAVE_DECL_STRSIGNAL,;t t
26244 s,@REPLACE_STRERROR@,$REPLACE_STRERROR,;t t
26245 s,@REPLACE_STRSIGNAL@,$REPLACE_STRSIGNAL,;t t
26246 s,@REPLACE_MEMMEM@,$REPLACE_MEMMEM,;t t
26247 s,@REPLACE_STRCASESTR@,$REPLACE_STRCASESTR,;t t
26248 s,@REPLACE_STRSTR@,$REPLACE_STRSTR,;t t
26249 s,@HAVE_LONG_LONG_INT@,$HAVE_LONG_LONG_INT,;t t
26250 s,@HAVE_UNSIGNED_LONG_LONG_INT@,$HAVE_UNSIGNED_LONG_LONG_INT,;t t
26251 s,@HAVE_INTTYPES_H@,$HAVE_INTTYPES_H,;t t
26252 s,@HAVE_SYS_TYPES_H@,$HAVE_SYS_TYPES_H,;t t
26253 s,@INCLUDE_NEXT@,$INCLUDE_NEXT,;t t
26254 s,@NEXT_STDINT_H@,$NEXT_STDINT_H,;t t
26255 s,@HAVE_STDINT_H@,$HAVE_STDINT_H,;t t
26256 s,@HAVE_SYS_INTTYPES_H@,$HAVE_SYS_INTTYPES_H,;t t
26257 s,@HAVE_SYS_BITYPES_H@,$HAVE_SYS_BITYPES_H,;t t
26258 s,@BITSIZEOF_PTRDIFF_T@,$BITSIZEOF_PTRDIFF_T,;t t
26259 s,@BITSIZEOF_SIG_ATOMIC_T@,$BITSIZEOF_SIG_ATOMIC_T,;t t
26260 s,@BITSIZEOF_SIZE_T@,$BITSIZEOF_SIZE_T,;t t
26261 s,@BITSIZEOF_WCHAR_T@,$BITSIZEOF_WCHAR_T,;t t
26262 s,@BITSIZEOF_WINT_T@,$BITSIZEOF_WINT_T,;t t
26263 s,@HAVE_SIGNED_SIG_ATOMIC_T@,$HAVE_SIGNED_SIG_ATOMIC_T,;t t
26264 s,@HAVE_SIGNED_WCHAR_T@,$HAVE_SIGNED_WCHAR_T,;t t
26265 s,@HAVE_SIGNED_WINT_T@,$HAVE_SIGNED_WINT_T,;t t
26266 s,@PTRDIFF_T_SUFFIX@,$PTRDIFF_T_SUFFIX,;t t
26267 s,@SIG_ATOMIC_T_SUFFIX@,$SIG_ATOMIC_T_SUFFIX,;t t
26268 s,@SIZE_T_SUFFIX@,$SIZE_T_SUFFIX,;t t
26269 s,@WCHAR_T_SUFFIX@,$WCHAR_T_SUFFIX,;t t
26270 s,@WINT_T_SUFFIX@,$WINT_T_SUFFIX,;t t
26271 s,@STDINT_H@,$STDINT_H,;t t
26272 s,@NEXT_STRING_H@,$NEXT_STRING_H,;t t
26273 s,@GNULIB_WCWIDTH@,$GNULIB_WCWIDTH,;t t
26274 s,@HAVE_DECL_WCWIDTH@,$HAVE_DECL_WCWIDTH,;t t
26275 s,@REPLACE_WCWIDTH@,$REPLACE_WCWIDTH,;t t
26276 s,@WCHAR_H@,$WCHAR_H,;t t
26277 s,@HAVE_WCHAR_H@,$HAVE_WCHAR_H,;t t
26278 s,@NEXT_WCHAR_H@,$NEXT_WCHAR_H,;t t
26279 s,@LIBGNU_LIBDEPS@,$LIBGNU_LIBDEPS,;t t
26280 s,@LIBGNU_LTLIBDEPS@,$LIBGNU_LTLIBDEPS,;t t
26281 s,@GNULIB_STDINT_H@,$GNULIB_STDINT_H,;t t
26282 s,@PACKAGE@,$PACKAGE,;t t
26283 s,@INSTALL_PROGRAM@,$INSTALL_PROGRAM,;t t
26284 s,@INSTALL_SCRIPT@,$INSTALL_SCRIPT,;t t
26285 s,@INSTALL_DATA@,$INSTALL_DATA,;t t
26286 s,@CYGPATH_W@,$CYGPATH_W,;t t
26287 s,@VERSION@,$VERSION,;t t
26288 s,@ACLOCAL@,$ACLOCAL,;t t
26289 s,@AUTOCONF@,$AUTOCONF,;t t
26290 s,@AUTOMAKE@,$AUTOMAKE,;t t
26291 s,@AUTOHEADER@,$AUTOHEADER,;t t
26292 s,@MAKEINFO@,$MAKEINFO,;t t
26293 s,@install_sh@,$install_sh,;t t
26294 s,@STRIP@,$STRIP,;t t
26295 s,@ac_ct_STRIP@,$ac_ct_STRIP,;t t
26296 s,@INSTALL_STRIP_PROGRAM@,$INSTALL_STRIP_PROGRAM,;t t
26297 s,@mkdir_p@,$mkdir_p,;t t
26299 s,@SET_MAKE@,$SET_MAKE,;t t
26300 s,@am__leading_dot@,$am__leading_dot,;t t
26301 s,@AMTAR@,$AMTAR,;t t
26302 s,@am__tar@,$am__tar,;t t
26303 s,@am__untar@,$am__untar,;t t
26304 s,@DEPDIR@,$DEPDIR,;t t
26305 s,@am__include@,$am__include,;t t
26306 s,@am__quote@,$am__quote,;t t
26307 s,@AMDEP_TRUE@,$AMDEP_TRUE,;t t
26308 s,@AMDEP_FALSE@,$AMDEP_FALSE,;t t
26309 s,@AMDEPBACKSLASH@,$AMDEPBACKSLASH,;t t
26310 s,@CCDEPMODE@,$CCDEPMODE,;t t
26311 s,@am__fastdepCC_TRUE@,$am__fastdepCC_TRUE,;t t
26312 s,@am__fastdepCC_FALSE@,$am__fastdepCC_FALSE,;t t
26313 s,@subdirs@,$subdirs,;t t
26314 s,@TARGET_OBS@,$TARGET_OBS,;t t
26315 s,@PKGVERSION@,$PKGVERSION,;t t
26316 s,@REPORT_BUGS_TO@,$REPORT_BUGS_TO,;t t
26317 s,@REPORT_BUGS_TEXI@,$REPORT_BUGS_TEXI,;t t
26318 s,@LN_S@,$LN_S,;t t
26319 s,@YACC@,$YACC,;t t
26321 s,@ac_ct_AR@,$ac_ct_AR,;t t
26322 s,@DLLTOOL@,$DLLTOOL,;t t
26323 s,@ac_ct_DLLTOOL@,$ac_ct_DLLTOOL,;t t
26324 s,@WINDRES@,$WINDRES,;t t
26325 s,@ac_ct_WINDRES@,$ac_ct_WINDRES,;t t
26327 s,@ac_ct_MIG@,$ac_ct_MIG,;t t
26328 s,@READLINE@,$READLINE,;t t
26329 s,@READLINE_DEPS@,$READLINE_DEPS,;t t
26330 s,@READLINE_CFLAGS@,$READLINE_CFLAGS,;t t
26331 s,@HAVE_LIBEXPAT@,$HAVE_LIBEXPAT,;t t
26332 s,@LIBEXPAT@,$LIBEXPAT,;t t
26333 s,@LTLIBEXPAT@,$LTLIBEXPAT,;t t
26334 s,@ALLOCA@,$ALLOCA,;t t
26335 s,@CONFIG_LDFLAGS@,$CONFIG_LDFLAGS,;t t
26336 s,@TARGET_SYSTEM_ROOT@,$TARGET_SYSTEM_ROOT,;t t
26337 s,@TARGET_SYSTEM_ROOT_DEFINE@,$TARGET_SYSTEM_ROOT_DEFINE,;t t
26338 s,@WARN_CFLAGS@,$WARN_CFLAGS,;t t
26339 s,@WERROR_CFLAGS@,$WERROR_CFLAGS,;t t
26340 s,@SER_HARDWIRE@,$SER_HARDWIRE,;t t
26341 s,@WIN32LIBS@,$WIN32LIBS,;t t
26342 s,@LIBGUI@,$LIBGUI,;t t
26343 s,@GUI_CFLAGS_X@,$GUI_CFLAGS_X,;t t
26344 s,@WIN32LDAPP@,$WIN32LDAPP,;t t
26345 s,@TCL_VERSION@,$TCL_VERSION,;t t
26346 s,@TCL_PATCH_LEVEL@,$TCL_PATCH_LEVEL,;t t
26347 s,@TCL_BIN_DIR@,$TCL_BIN_DIR,;t t
26348 s,@TCL_SRC_DIR@,$TCL_SRC_DIR,;t t
26349 s,@TCL_LIB_FILE@,$TCL_LIB_FILE,;t t
26350 s,@TCL_LIB_FLAG@,$TCL_LIB_FLAG,;t t
26351 s,@TCL_LIB_SPEC@,$TCL_LIB_SPEC,;t t
26352 s,@TCL_STUB_LIB_FILE@,$TCL_STUB_LIB_FILE,;t t
26353 s,@TCL_STUB_LIB_FLAG@,$TCL_STUB_LIB_FLAG,;t t
26354 s,@TCL_STUB_LIB_SPEC@,$TCL_STUB_LIB_SPEC,;t t
26355 s,@TCL_INCLUDE@,$TCL_INCLUDE,;t t
26356 s,@TCL_LIBRARY@,$TCL_LIBRARY,;t t
26357 s,@TCL_DEPS@,$TCL_DEPS,;t t
26358 s,@TK_VERSION@,$TK_VERSION,;t t
26359 s,@TK_BIN_DIR@,$TK_BIN_DIR,;t t
26360 s,@TK_SRC_DIR@,$TK_SRC_DIR,;t t
26361 s,@TK_LIB_FILE@,$TK_LIB_FILE,;t t
26362 s,@TK_LIB_FLAG@,$TK_LIB_FLAG,;t t
26363 s,@TK_LIB_SPEC@,$TK_LIB_SPEC,;t t
26364 s,@TK_STUB_LIB_FILE@,$TK_STUB_LIB_FILE,;t t
26365 s,@TK_STUB_LIB_FLAG@,$TK_STUB_LIB_FLAG,;t t
26366 s,@TK_STUB_LIB_SPEC@,$TK_STUB_LIB_SPEC,;t t
26367 s,@TK_INCLUDE@,$TK_INCLUDE,;t t
26368 s,@TK_LIBRARY@,$TK_LIBRARY,;t t
26369 s,@TK_DEPS@,$TK_DEPS,;t t
26370 s,@TK_XINCLUDES@,$TK_XINCLUDES,;t t
26371 s,@X_CFLAGS@,$X_CFLAGS,;t t
26372 s,@X_LDFLAGS@,$X_LDFLAGS,;t t
26373 s,@X_LIBS@,$X_LIBS,;t t
26374 s,@GDBTKLIBS@,$GDBTKLIBS,;t t
26375 s,@GDBTK_CFLAGS@,$GDBTK_CFLAGS,;t t
26376 s,@GDBTK_SRC_DIR@,$GDBTK_SRC_DIR,;t t
26378 s,@SIM_OBS@,$SIM_OBS,;t t
26379 s,@ENABLE_CFLAGS@,$ENABLE_CFLAGS,;t t
26380 s,@PROFILE_CFLAGS@,$PROFILE_CFLAGS,;t t
26381 s,@CONFIG_OBS@,$CONFIG_OBS,;t t
26382 s,@CONFIG_DEPS@,$CONFIG_DEPS,;t t
26383 s,@CONFIG_SRCS@,$CONFIG_SRCS,;t t
26384 s,@CONFIG_ALL@,$CONFIG_ALL,;t t
26385 s,@CONFIG_CLEAN@,$CONFIG_CLEAN,;t t
26386 s,@CONFIG_INSTALL@,$CONFIG_INSTALL,;t t
26387 s,@CONFIG_UNINSTALL@,$CONFIG_UNINSTALL,;t t
26388 s,@target_subdir@,$target_subdir,;t t
26389 s,@frags@,$frags,;t t
26390 s,@nm_h@,$nm_h,;t t
26391 s,@LIBICONV@,$LIBICONV,;t t
26392 s,@LIBOBJS@,$LIBOBJS,;t t
26393 s,@LTLIBOBJS@,$LTLIBOBJS,;t t
26394 s,@gl_LIBOBJS@,$gl_LIBOBJS,;t t
26395 s,@gl_LTLIBOBJS@,$gl_LTLIBOBJS,;t t
26396 s,@gltests_LIBOBJS@,$gltests_LIBOBJS,;t t
26397 s,@gltests_LTLIBOBJS@,$gltests_LTLIBOBJS,;t t
26398 /@host_makefile_frag@/r $host_makefile_frag
26399 s,@host_makefile_frag@,,;t t
26404 cat >>$CONFIG_STATUS <<\_ACEOF
26405 # Split the substitutions into bite-sized pieces for seds with
26406 # small command number limits, like on Digital OSF/1 and HP-UX.
26407 ac_max_sed_lines=48
26408 ac_sed_frag=1 # Number of current file.
26409 ac_beg=1 # First line for current file.
26410 ac_end=$ac_max_sed_lines # Line after last line for current file.
26413 while $ac_more_lines; do
26414 if test $ac_beg -gt 1; then
26415 sed "1,${ac_beg}d; ${ac_end}q" $tmp/subs.sed >$tmp/subs.frag
26417 sed "${ac_end}q" $tmp/subs.sed >$tmp/subs.frag
26419 if test ! -s $tmp/subs.frag; then
26420 ac_more_lines=false
26422 # The purpose of the label and of the branching condition is to
26423 # speed up the sed processing (if there are no `@' at all, there
26424 # is no need to browse any of the substitutions).
26425 # These are the two extra sed commands mentioned above.
26427 /@[a-zA-Z_][a-zA-Z_0-9]*@/!b' && cat $tmp/subs.frag) >$tmp/subs-$ac_sed_frag.sed
26428 if test -z "$ac_sed_cmds"; then
26429 ac_sed_cmds="sed -f $tmp/subs-$ac_sed_frag.sed"
26431 ac_sed_cmds="$ac_sed_cmds | sed -f $tmp/subs-$ac_sed_frag.sed"
26433 ac_sed_frag=`expr $ac_sed_frag + 1`
26435 ac_end=`expr $ac_end + $ac_max_sed_lines`
26438 if test -z "$ac_sed_cmds"; then
26441 fi # test -n "$CONFIG_FILES"
26444 cat >>$CONFIG_STATUS <<\_ACEOF
26445 for ac_file in : $CONFIG_FILES; do test "x$ac_file" = x: && continue
26446 # Support "outfile[:infile[:infile...]]", defaulting infile="outfile.in".
26448 - | *:- | *:-:* ) # input from stdin
26450 ac_file_in=`echo "$ac_file" | sed 's,[^:]*:,,'`
26451 ac_file=`echo "$ac_file" | sed 's,:.*,,'` ;;
26452 *:* ) ac_file_in=`echo "$ac_file" | sed 's,[^:]*:,,'`
26453 ac_file=`echo "$ac_file" | sed 's,:.*,,'` ;;
26454 * ) ac_file_in=$ac_file.in ;;
26457 # Compute @srcdir@, @top_srcdir@, and @INSTALL@ for subdirectories.
26458 ac_dir=`(dirname "$ac_file") 2>/dev/null ||
26459 $as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
26460 X"$ac_file" : 'X\(//\)[^/]' \| \
26461 X"$ac_file" : 'X\(//\)$' \| \
26462 X"$ac_file" : 'X\(/\)' \| \
26463 . : '\(.\)' 2>/dev/null ||
26465 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
26466 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
26467 /^X\(\/\/\)$/{ s//\1/; q; }
26468 /^X\(\/\).*/{ s//\1/; q; }
26470 { if $as_mkdir_p; then
26475 while test ! -d "$as_dir"; do
26476 as_dirs="$as_dir $as_dirs"
26477 as_dir=`(dirname "$as_dir") 2>/dev/null ||
26478 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
26479 X"$as_dir" : 'X\(//\)[^/]' \| \
26480 X"$as_dir" : 'X\(//\)$' \| \
26481 X"$as_dir" : 'X\(/\)' \| \
26482 . : '\(.\)' 2>/dev/null ||
26484 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
26485 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
26486 /^X\(\/\/\)$/{ s//\1/; q; }
26487 /^X\(\/\).*/{ s//\1/; q; }
26490 test ! -n "$as_dirs" || mkdir $as_dirs
26491 fi || { { echo "$as_me:$LINENO: error: cannot create directory \"$ac_dir\"" >&5
26492 echo "$as_me: error: cannot create directory \"$ac_dir\"" >&2;}
26493 { (exit 1); exit 1; }; }; }
26497 if test "$ac_dir" != .; then
26498 ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'`
26499 # A "../" for each directory in $ac_dir_suffix.
26500 ac_top_builddir=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,../,g'`
26502 ac_dir_suffix= ac_top_builddir=
26506 .) # No --srcdir option. We are building in place.
26508 if test -z "$ac_top_builddir"; then
26511 ac_top_srcdir=`echo $ac_top_builddir | sed 's,/$,,'`
26513 [\\/]* | ?:[\\/]* ) # Absolute path.
26514 ac_srcdir=$srcdir$ac_dir_suffix;
26515 ac_top_srcdir=$srcdir ;;
26516 *) # Relative path.
26517 ac_srcdir=$ac_top_builddir$srcdir$ac_dir_suffix
26518 ac_top_srcdir=$ac_top_builddir$srcdir ;;
26521 # Do not use `cd foo && pwd` to compute absolute paths, because
26522 # the directories may not exist.
26524 .) ac_abs_builddir="$ac_dir";;
26527 .) ac_abs_builddir=`pwd`;;
26528 [\\/]* | ?:[\\/]* ) ac_abs_builddir="$ac_dir";;
26529 *) ac_abs_builddir=`pwd`/"$ac_dir";;
26532 case $ac_abs_builddir in
26533 .) ac_abs_top_builddir=${ac_top_builddir}.;;
26535 case ${ac_top_builddir}. in
26536 .) ac_abs_top_builddir=$ac_abs_builddir;;
26537 [\\/]* | ?:[\\/]* ) ac_abs_top_builddir=${ac_top_builddir}.;;
26538 *) ac_abs_top_builddir=$ac_abs_builddir/${ac_top_builddir}.;;
26541 case $ac_abs_builddir in
26542 .) ac_abs_srcdir=$ac_srcdir;;
26545 .) ac_abs_srcdir=$ac_abs_builddir;;
26546 [\\/]* | ?:[\\/]* ) ac_abs_srcdir=$ac_srcdir;;
26547 *) ac_abs_srcdir=$ac_abs_builddir/$ac_srcdir;;
26550 case $ac_abs_builddir in
26551 .) ac_abs_top_srcdir=$ac_top_srcdir;;
26553 case $ac_top_srcdir in
26554 .) ac_abs_top_srcdir=$ac_abs_builddir;;
26555 [\\/]* | ?:[\\/]* ) ac_abs_top_srcdir=$ac_top_srcdir;;
26556 *) ac_abs_top_srcdir=$ac_abs_builddir/$ac_top_srcdir;;
26562 [\\/$]* | ?:[\\/]* ) ac_INSTALL=$INSTALL ;;
26563 *) ac_INSTALL=$ac_top_builddir$INSTALL ;;
26566 if test x"$ac_file" != x-; then
26567 { echo "$as_me:$LINENO: creating $ac_file" >&5
26568 echo "$as_me: creating $ac_file" >&6;}
26571 # Let's still pretend it is `configure' which instantiates (i.e., don't
26572 # use $as_me), people would be surprised to read:
26573 # /* config.h. Generated by config.status. */
26574 if test x"$ac_file" = x-; then
26577 configure_input="$ac_file. "
26579 configure_input=$configure_input"Generated from `echo $ac_file_in |
26580 sed 's,.*/,,'` by configure."
26582 # First look for the input files in the build tree, otherwise in the
26584 ac_file_inputs=`IFS=:
26585 for f in $ac_file_in; do
26587 -) echo $tmp/stdin ;;
26589 # Absolute (can't be DOS-style, as IFS=:)
26590 test -f "$f" || { { echo "$as_me:$LINENO: error: cannot find input file: $f" >&5
26591 echo "$as_me: error: cannot find input file: $f" >&2;}
26592 { (exit 1); exit 1; }; }
26595 if test -f "$f"; then
26598 elif test -f "$srcdir/$f"; then
26603 { { echo "$as_me:$LINENO: error: cannot find input file: $f" >&5
26604 echo "$as_me: error: cannot find input file: $f" >&2;}
26605 { (exit 1); exit 1; }; }
26608 done` || { (exit 1); exit 1; }
26610 cat >>$CONFIG_STATUS <<_ACEOF
26614 cat >>$CONFIG_STATUS <<\_ACEOF
26616 /@[a-zA-Z_][a-zA-Z_0-9]*@/!b
26617 s,@configure_input@,$configure_input,;t t
26618 s,@srcdir@,$ac_srcdir,;t t
26619 s,@abs_srcdir@,$ac_abs_srcdir,;t t
26620 s,@top_srcdir@,$ac_top_srcdir,;t t
26621 s,@abs_top_srcdir@,$ac_abs_top_srcdir,;t t
26622 s,@builddir@,$ac_builddir,;t t
26623 s,@abs_builddir@,$ac_abs_builddir,;t t
26624 s,@top_builddir@,$ac_top_builddir,;t t
26625 s,@abs_top_builddir@,$ac_abs_top_builddir,;t t
26626 s,@INSTALL@,$ac_INSTALL,;t t
26627 " $ac_file_inputs | (eval "$ac_sed_cmds") >$tmp/out
26629 if test x"$ac_file" != x-; then
26630 mv $tmp/out $ac_file
26638 cat >>$CONFIG_STATUS <<\_ACEOF
26641 # CONFIG_HEADER section.
26644 # These sed commands are passed to sed as "A NAME B NAME C VALUE D", where
26645 # NAME is the cpp macro being defined and VALUE is the value it is being given.
26647 # ac_d sets the value in "#define NAME VALUE" lines.
26648 ac_dA='s,^\([ ]*\)#\([ ]*define[ ][ ]*\)'
26649 ac_dB='[ ].*$,\1#\2'
26652 # ac_u turns "#undef NAME" without trailing blanks into "#define NAME VALUE".
26653 ac_uA='s,^\([ ]*\)#\([ ]*\)undef\([ ][ ]*\)'
26654 ac_uB='$,\1#\2define\3'
26658 for ac_file in : $CONFIG_HEADERS; do test "x$ac_file" = x: && continue
26659 # Support "outfile[:infile[:infile...]]", defaulting infile="outfile.in".
26661 - | *:- | *:-:* ) # input from stdin
26663 ac_file_in=`echo "$ac_file" | sed 's,[^:]*:,,'`
26664 ac_file=`echo "$ac_file" | sed 's,:.*,,'` ;;
26665 *:* ) ac_file_in=`echo "$ac_file" | sed 's,[^:]*:,,'`
26666 ac_file=`echo "$ac_file" | sed 's,:.*,,'` ;;
26667 * ) ac_file_in=$ac_file.in ;;
26670 test x"$ac_file" != x- && { echo "$as_me:$LINENO: creating $ac_file" >&5
26671 echo "$as_me: creating $ac_file" >&6;}
26673 # First look for the input files in the build tree, otherwise in the
26675 ac_file_inputs=`IFS=:
26676 for f in $ac_file_in; do
26678 -) echo $tmp/stdin ;;
26680 # Absolute (can't be DOS-style, as IFS=:)
26681 test -f "$f" || { { echo "$as_me:$LINENO: error: cannot find input file: $f" >&5
26682 echo "$as_me: error: cannot find input file: $f" >&2;}
26683 { (exit 1); exit 1; }; }
26684 # Do quote $f, to prevent DOS paths from being IFS'd.
26687 if test -f "$f"; then
26690 elif test -f "$srcdir/$f"; then
26695 { { echo "$as_me:$LINENO: error: cannot find input file: $f" >&5
26696 echo "$as_me: error: cannot find input file: $f" >&2;}
26697 { (exit 1); exit 1; }; }
26700 done` || { (exit 1); exit 1; }
26701 # Remove the trailing spaces.
26702 sed 's/[ ]*$//' $ac_file_inputs >$tmp/in
26706 # Transform confdefs.h into two sed scripts, `conftest.defines' and
26707 # `conftest.undefs', that substitutes the proper values into
26708 # config.h.in to produce config.h. The first handles `#define'
26709 # templates, and the second `#undef' templates.
26710 # And first: Protect against being on the right side of a sed subst in
26711 # config.status. Protect against being in an unquoted here document
26712 # in config.status.
26713 rm -f conftest.defines conftest.undefs
26714 # Using a here document instead of a string reduces the quoting nightmare.
26715 # Putting comments in sed scripts is not portable.
26717 # `end' is used to avoid that the second main sed command (meant for
26718 # 0-ary CPP macros) applies to n-ary macro definitions.
26719 # See the Autoconf documentation for `clear'.
26720 cat >confdef2sed.sed <<\_ACEOF
26725 s,^[ ]*#[ ]*define[ ][ ]*\([^ (][^ (]*\)\(([^)]*)\)[ ]*\(.*\)$,${ac_dA}\1${ac_dB}\1\2${ac_dC}\3${ac_dD},gp
26727 s,^[ ]*#[ ]*define[ ][ ]*\([^ ][^ ]*\)[ ]*\(.*\)$,${ac_dA}\1${ac_dB}\1${ac_dC}\2${ac_dD},gp
26730 # If some macros were called several times there might be several times
26731 # the same #defines, which is useless. Nevertheless, we may not want to
26732 # sort them, since we want the *last* AC-DEFINE to be honored.
26733 uniq confdefs.h | sed -n -f confdef2sed.sed >conftest.defines
26734 sed 's/ac_d/ac_u/g' conftest.defines >conftest.undefs
26735 rm -f confdef2sed.sed
26737 # This sed command replaces #undef with comments. This is necessary, for
26738 # example, in the case of _POSIX_SOURCE, which is predefined and required
26739 # on some systems where configure will not decide to define it.
26740 cat >>conftest.undefs <<\_ACEOF
26741 s,^[ ]*#[ ]*undef[ ][ ]*[a-zA-Z_][a-zA-Z_0-9]*,/* & */,
26744 # Break up conftest.defines because some shells have a limit on the size
26745 # of here documents, and old seds have small limits too (100 cmds).
26746 echo ' # Handle all the #define templates only if necessary.' >>$CONFIG_STATUS
26747 echo ' if grep "^[ ]*#[ ]*define" $tmp/in >/dev/null; then' >>$CONFIG_STATUS
26748 echo ' # If there are no defines, we may have an empty if/fi' >>$CONFIG_STATUS
26749 echo ' :' >>$CONFIG_STATUS
26750 rm -f conftest.tail
26751 while grep . conftest.defines >/dev/null
26753 # Write a limited-size here document to $tmp/defines.sed.
26754 echo ' cat >$tmp/defines.sed <<CEOF' >>$CONFIG_STATUS
26755 # Speed up: don't consider the non `#define' lines.
26756 echo '/^[ ]*#[ ]*define/!b' >>$CONFIG_STATUS
26757 # Work around the forget-to-reset-the-flag bug.
26758 echo 't clr' >>$CONFIG_STATUS
26759 echo ': clr' >>$CONFIG_STATUS
26760 sed ${ac_max_here_lines}q conftest.defines >>$CONFIG_STATUS
26762 sed -f $tmp/defines.sed $tmp/in >$tmp/out
26764 mv $tmp/out $tmp/in
26766 sed 1,${ac_max_here_lines}d conftest.defines >conftest.tail
26767 rm -f conftest.defines
26768 mv conftest.tail conftest.defines
26770 rm -f conftest.defines
26771 echo ' fi # grep' >>$CONFIG_STATUS
26772 echo >>$CONFIG_STATUS
26774 # Break up conftest.undefs because some shells have a limit on the size
26775 # of here documents, and old seds have small limits too (100 cmds).
26776 echo ' # Handle all the #undef templates' >>$CONFIG_STATUS
26777 rm -f conftest.tail
26778 while grep . conftest.undefs >/dev/null
26780 # Write a limited-size here document to $tmp/undefs.sed.
26781 echo ' cat >$tmp/undefs.sed <<CEOF' >>$CONFIG_STATUS
26782 # Speed up: don't consider the non `#undef'
26783 echo '/^[ ]*#[ ]*undef/!b' >>$CONFIG_STATUS
26784 # Work around the forget-to-reset-the-flag bug.
26785 echo 't clr' >>$CONFIG_STATUS
26786 echo ': clr' >>$CONFIG_STATUS
26787 sed ${ac_max_here_lines}q conftest.undefs >>$CONFIG_STATUS
26789 sed -f $tmp/undefs.sed $tmp/in >$tmp/out
26791 mv $tmp/out $tmp/in
26793 sed 1,${ac_max_here_lines}d conftest.undefs >conftest.tail
26794 rm -f conftest.undefs
26795 mv conftest.tail conftest.undefs
26797 rm -f conftest.undefs
26799 cat >>$CONFIG_STATUS <<\_ACEOF
26800 # Let's still pretend it is `configure' which instantiates (i.e., don't
26801 # use $as_me), people would be surprised to read:
26802 # /* config.h. Generated by config.status. */
26803 if test x"$ac_file" = x-; then
26804 echo "/* Generated by configure. */" >$tmp/config.h
26806 echo "/* $ac_file. Generated by configure. */" >$tmp/config.h
26808 cat $tmp/in >>$tmp/config.h
26810 if test x"$ac_file" != x-; then
26811 if diff $ac_file $tmp/config.h >/dev/null 2>&1; then
26812 { echo "$as_me:$LINENO: $ac_file is unchanged" >&5
26813 echo "$as_me: $ac_file is unchanged" >&6;}
26815 ac_dir=`(dirname "$ac_file") 2>/dev/null ||
26816 $as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
26817 X"$ac_file" : 'X\(//\)[^/]' \| \
26818 X"$ac_file" : 'X\(//\)$' \| \
26819 X"$ac_file" : 'X\(/\)' \| \
26820 . : '\(.\)' 2>/dev/null ||
26822 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
26823 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
26824 /^X\(\/\/\)$/{ s//\1/; q; }
26825 /^X\(\/\).*/{ s//\1/; q; }
26827 { if $as_mkdir_p; then
26832 while test ! -d "$as_dir"; do
26833 as_dirs="$as_dir $as_dirs"
26834 as_dir=`(dirname "$as_dir") 2>/dev/null ||
26835 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
26836 X"$as_dir" : 'X\(//\)[^/]' \| \
26837 X"$as_dir" : 'X\(//\)$' \| \
26838 X"$as_dir" : 'X\(/\)' \| \
26839 . : '\(.\)' 2>/dev/null ||
26841 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
26842 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
26843 /^X\(\/\/\)$/{ s//\1/; q; }
26844 /^X\(\/\).*/{ s//\1/; q; }
26847 test ! -n "$as_dirs" || mkdir $as_dirs
26848 fi || { { echo "$as_me:$LINENO: error: cannot create directory \"$ac_dir\"" >&5
26849 echo "$as_me: error: cannot create directory \"$ac_dir\"" >&2;}
26850 { (exit 1); exit 1; }; }; }
26853 mv $tmp/config.h $ac_file
26857 rm -f $tmp/config.h
26859 # Compute $ac_file's index in $config_headers.
26861 for _am_header in $config_headers :; do
26862 case $_am_header in
26863 $ac_file | $ac_file:* )
26866 _am_stamp_count=`expr $_am_stamp_count + 1` ;;
26869 echo "timestamp for $ac_file" >`(dirname $ac_file) 2>/dev/null ||
26870 $as_expr X$ac_file : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
26871 X$ac_file : 'X\(//\)[^/]' \| \
26872 X$ac_file : 'X\(//\)$' \| \
26873 X$ac_file : 'X\(/\)' \| \
26874 . : '\(.\)' 2>/dev/null ||
26876 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
26877 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
26878 /^X\(\/\/\)$/{ s//\1/; q; }
26879 /^X\(\/\).*/{ s//\1/; q; }
26880 s/.*/./; q'`/stamp-h$_am_stamp_count
26883 cat >>$CONFIG_STATUS <<\_ACEOF
26886 # CONFIG_LINKS section.
26889 for ac_file in : $CONFIG_LINKS; do test "x$ac_file" = x: && continue
26890 ac_dest=`echo "$ac_file" | sed 's,:.*,,'`
26891 ac_source=`echo "$ac_file" | sed 's,[^:]*:,,'`
26893 { echo "$as_me:$LINENO: linking $srcdir/$ac_source to $ac_dest" >&5
26894 echo "$as_me: linking $srcdir/$ac_source to $ac_dest" >&6;}
26896 if test ! -r $srcdir/$ac_source; then
26897 { { echo "$as_me:$LINENO: error: $srcdir/$ac_source: file not found" >&5
26898 echo "$as_me: error: $srcdir/$ac_source: file not found" >&2;}
26899 { (exit 1); exit 1; }; }
26903 # Make relative symlinks.
26904 ac_dest_dir=`(dirname "$ac_dest") 2>/dev/null ||
26905 $as_expr X"$ac_dest" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
26906 X"$ac_dest" : 'X\(//\)[^/]' \| \
26907 X"$ac_dest" : 'X\(//\)$' \| \
26908 X"$ac_dest" : 'X\(/\)' \| \
26909 . : '\(.\)' 2>/dev/null ||
26911 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
26912 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
26913 /^X\(\/\/\)$/{ s//\1/; q; }
26914 /^X\(\/\).*/{ s//\1/; q; }
26916 { if $as_mkdir_p; then
26917 mkdir -p "$ac_dest_dir"
26919 as_dir="$ac_dest_dir"
26921 while test ! -d "$as_dir"; do
26922 as_dirs="$as_dir $as_dirs"
26923 as_dir=`(dirname "$as_dir") 2>/dev/null ||
26924 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
26925 X"$as_dir" : 'X\(//\)[^/]' \| \
26926 X"$as_dir" : 'X\(//\)$' \| \
26927 X"$as_dir" : 'X\(/\)' \| \
26928 . : '\(.\)' 2>/dev/null ||
26930 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
26931 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
26932 /^X\(\/\/\)$/{ s//\1/; q; }
26933 /^X\(\/\).*/{ s//\1/; q; }
26936 test ! -n "$as_dirs" || mkdir $as_dirs
26937 fi || { { echo "$as_me:$LINENO: error: cannot create directory \"$ac_dest_dir\"" >&5
26938 echo "$as_me: error: cannot create directory \"$ac_dest_dir\"" >&2;}
26939 { (exit 1); exit 1; }; }; }
26943 if test "$ac_dest_dir" != .; then
26944 ac_dir_suffix=/`echo "$ac_dest_dir" | sed 's,^\.[\\/],,'`
26945 # A "../" for each directory in $ac_dir_suffix.
26946 ac_top_builddir=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,../,g'`
26948 ac_dir_suffix= ac_top_builddir=
26952 .) # No --srcdir option. We are building in place.
26954 if test -z "$ac_top_builddir"; then
26957 ac_top_srcdir=`echo $ac_top_builddir | sed 's,/$,,'`
26959 [\\/]* | ?:[\\/]* ) # Absolute path.
26960 ac_srcdir=$srcdir$ac_dir_suffix;
26961 ac_top_srcdir=$srcdir ;;
26962 *) # Relative path.
26963 ac_srcdir=$ac_top_builddir$srcdir$ac_dir_suffix
26964 ac_top_srcdir=$ac_top_builddir$srcdir ;;
26967 # Do not use `cd foo && pwd` to compute absolute paths, because
26968 # the directories may not exist.
26970 .) ac_abs_builddir="$ac_dest_dir";;
26972 case "$ac_dest_dir" in
26973 .) ac_abs_builddir=`pwd`;;
26974 [\\/]* | ?:[\\/]* ) ac_abs_builddir="$ac_dest_dir";;
26975 *) ac_abs_builddir=`pwd`/"$ac_dest_dir";;
26978 case $ac_abs_builddir in
26979 .) ac_abs_top_builddir=${ac_top_builddir}.;;
26981 case ${ac_top_builddir}. in
26982 .) ac_abs_top_builddir=$ac_abs_builddir;;
26983 [\\/]* | ?:[\\/]* ) ac_abs_top_builddir=${ac_top_builddir}.;;
26984 *) ac_abs_top_builddir=$ac_abs_builddir/${ac_top_builddir}.;;
26987 case $ac_abs_builddir in
26988 .) ac_abs_srcdir=$ac_srcdir;;
26991 .) ac_abs_srcdir=$ac_abs_builddir;;
26992 [\\/]* | ?:[\\/]* ) ac_abs_srcdir=$ac_srcdir;;
26993 *) ac_abs_srcdir=$ac_abs_builddir/$ac_srcdir;;
26996 case $ac_abs_builddir in
26997 .) ac_abs_top_srcdir=$ac_top_srcdir;;
26999 case $ac_top_srcdir in
27000 .) ac_abs_top_srcdir=$ac_abs_builddir;;
27001 [\\/]* | ?:[\\/]* ) ac_abs_top_srcdir=$ac_top_srcdir;;
27002 *) ac_abs_top_srcdir=$ac_abs_builddir/$ac_top_srcdir;;
27008 [\\/$]* | ?:[\\/]* ) ac_rel_source=$srcdir/$ac_source ;;
27009 *) ac_rel_source=$ac_top_builddir$srcdir/$ac_source ;;
27012 # Try a symlink, then a hard link, then a copy.
27013 ln -s $ac_rel_source $ac_dest 2>/dev/null ||
27014 ln $srcdir/$ac_source $ac_dest 2>/dev/null ||
27015 cp -p $srcdir/$ac_source $ac_dest ||
27016 { { echo "$as_me:$LINENO: error: cannot link or copy $srcdir/$ac_source to $ac_dest" >&5
27017 echo "$as_me: error: cannot link or copy $srcdir/$ac_source to $ac_dest" >&2;}
27018 { (exit 1); exit 1; }; }
27021 cat >>$CONFIG_STATUS <<\_ACEOF
27024 # CONFIG_COMMANDS section.
27026 for ac_file in : $CONFIG_COMMANDS; do test "x$ac_file" = x: && continue
27027 ac_dest=`echo "$ac_file" | sed 's,:.*,,'`
27028 ac_source=`echo "$ac_file" | sed 's,[^:]*:,,'`
27029 ac_dir=`(dirname "$ac_dest") 2>/dev/null ||
27030 $as_expr X"$ac_dest" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
27031 X"$ac_dest" : 'X\(//\)[^/]' \| \
27032 X"$ac_dest" : 'X\(//\)$' \| \
27033 X"$ac_dest" : 'X\(/\)' \| \
27034 . : '\(.\)' 2>/dev/null ||
27036 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
27037 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
27038 /^X\(\/\/\)$/{ s//\1/; q; }
27039 /^X\(\/\).*/{ s//\1/; q; }
27041 { if $as_mkdir_p; then
27046 while test ! -d "$as_dir"; do
27047 as_dirs="$as_dir $as_dirs"
27048 as_dir=`(dirname "$as_dir") 2>/dev/null ||
27049 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
27050 X"$as_dir" : 'X\(//\)[^/]' \| \
27051 X"$as_dir" : 'X\(//\)$' \| \
27052 X"$as_dir" : 'X\(/\)' \| \
27053 . : '\(.\)' 2>/dev/null ||
27055 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
27056 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
27057 /^X\(\/\/\)$/{ s//\1/; q; }
27058 /^X\(\/\).*/{ s//\1/; q; }
27061 test ! -n "$as_dirs" || mkdir $as_dirs
27062 fi || { { echo "$as_me:$LINENO: error: cannot create directory \"$ac_dir\"" >&5
27063 echo "$as_me: error: cannot create directory \"$ac_dir\"" >&2;}
27064 { (exit 1); exit 1; }; }; }
27068 if test "$ac_dir" != .; then
27069 ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'`
27070 # A "../" for each directory in $ac_dir_suffix.
27071 ac_top_builddir=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,../,g'`
27073 ac_dir_suffix= ac_top_builddir=
27077 .) # No --srcdir option. We are building in place.
27079 if test -z "$ac_top_builddir"; then
27082 ac_top_srcdir=`echo $ac_top_builddir | sed 's,/$,,'`
27084 [\\/]* | ?:[\\/]* ) # Absolute path.
27085 ac_srcdir=$srcdir$ac_dir_suffix;
27086 ac_top_srcdir=$srcdir ;;
27087 *) # Relative path.
27088 ac_srcdir=$ac_top_builddir$srcdir$ac_dir_suffix
27089 ac_top_srcdir=$ac_top_builddir$srcdir ;;
27092 # Do not use `cd foo && pwd` to compute absolute paths, because
27093 # the directories may not exist.
27095 .) ac_abs_builddir="$ac_dir";;
27098 .) ac_abs_builddir=`pwd`;;
27099 [\\/]* | ?:[\\/]* ) ac_abs_builddir="$ac_dir";;
27100 *) ac_abs_builddir=`pwd`/"$ac_dir";;
27103 case $ac_abs_builddir in
27104 .) ac_abs_top_builddir=${ac_top_builddir}.;;
27106 case ${ac_top_builddir}. in
27107 .) ac_abs_top_builddir=$ac_abs_builddir;;
27108 [\\/]* | ?:[\\/]* ) ac_abs_top_builddir=${ac_top_builddir}.;;
27109 *) ac_abs_top_builddir=$ac_abs_builddir/${ac_top_builddir}.;;
27112 case $ac_abs_builddir in
27113 .) ac_abs_srcdir=$ac_srcdir;;
27116 .) ac_abs_srcdir=$ac_abs_builddir;;
27117 [\\/]* | ?:[\\/]* ) ac_abs_srcdir=$ac_srcdir;;
27118 *) ac_abs_srcdir=$ac_abs_builddir/$ac_srcdir;;
27121 case $ac_abs_builddir in
27122 .) ac_abs_top_srcdir=$ac_top_srcdir;;
27124 case $ac_top_srcdir in
27125 .) ac_abs_top_srcdir=$ac_abs_builddir;;
27126 [\\/]* | ?:[\\/]* ) ac_abs_top_srcdir=$ac_top_srcdir;;
27127 *) ac_abs_top_srcdir=$ac_abs_builddir/$ac_top_srcdir;;
27132 { echo "$as_me:$LINENO: executing $ac_dest commands" >&5
27133 echo "$as_me: executing $ac_dest commands" >&6;}
27135 depfiles ) test x"$AMDEP_TRUE" != x"" || for mf in $CONFIG_FILES; do
27136 # Strip MF so we end up with the name of the file.
27137 mf=`echo "$mf" | sed -e 's/:.*$//'`
27138 # Check whether this is an Automake generated Makefile or not.
27139 # We used to match only the files named `Makefile.in', but
27140 # some people rename them; so instead we look at the file content.
27141 # Grep'ing the first line is not enough: some people post-process
27142 # each Makefile.in and add a new line on top of each file to say so.
27143 # So let's grep whole file.
27144 if grep '^#.*generated by automake' $mf > /dev/null 2>&1; then
27145 dirpart=`(dirname "$mf") 2>/dev/null ||
27146 $as_expr X"$mf" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
27147 X"$mf" : 'X\(//\)[^/]' \| \
27148 X"$mf" : 'X\(//\)$' \| \
27149 X"$mf" : 'X\(/\)' \| \
27150 . : '\(.\)' 2>/dev/null ||
27152 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
27153 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
27154 /^X\(\/\/\)$/{ s//\1/; q; }
27155 /^X\(\/\).*/{ s//\1/; q; }
27160 # Extract the definition of DEPDIR, am__include, and am__quote
27161 # from the Makefile without running `make'.
27162 DEPDIR=`sed -n 's/^DEPDIR = //p' < "$mf"`
27163 test -z "$DEPDIR" && continue
27164 am__include=`sed -n 's/^am__include = //p' < "$mf"`
27165 test -z "am__include" && continue
27166 am__quote=`sed -n 's/^am__quote = //p' < "$mf"`
27167 # When using ansi2knr, U may be empty or an underscore; expand it
27168 U=`sed -n 's/^U = //p' < "$mf"`
27169 # Find all dependency output files, they are included files with
27170 # $(DEPDIR) in their names. We invoke sed twice because it is the
27171 # simplest approach to changing $(DEPDIR) to its actual value in the
27173 for file in `sed -n "
27174 s/^$am__include $am__quote\(.*(DEPDIR).*\)$am__quote"'$/\1/p' <"$mf" | \
27175 sed -e 's/\$(DEPDIR)/'"$DEPDIR"'/g' -e 's/\$U/'"$U"'/g'`; do
27176 # Make sure the directory exists.
27177 test -f "$dirpart/$file" && continue
27178 fdir=`(dirname "$file") 2>/dev/null ||
27179 $as_expr X"$file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
27180 X"$file" : 'X\(//\)[^/]' \| \
27181 X"$file" : 'X\(//\)$' \| \
27182 X"$file" : 'X\(/\)' \| \
27183 . : '\(.\)' 2>/dev/null ||
27185 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
27186 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
27187 /^X\(\/\/\)$/{ s//\1/; q; }
27188 /^X\(\/\).*/{ s//\1/; q; }
27190 { if $as_mkdir_p; then
27191 mkdir -p $dirpart/$fdir
27193 as_dir=$dirpart/$fdir
27195 while test ! -d "$as_dir"; do
27196 as_dirs="$as_dir $as_dirs"
27197 as_dir=`(dirname "$as_dir") 2>/dev/null ||
27198 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
27199 X"$as_dir" : 'X\(//\)[^/]' \| \
27200 X"$as_dir" : 'X\(//\)$' \| \
27201 X"$as_dir" : 'X\(/\)' \| \
27202 . : '\(.\)' 2>/dev/null ||
27204 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
27205 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
27206 /^X\(\/\/\)$/{ s//\1/; q; }
27207 /^X\(\/\).*/{ s//\1/; q; }
27210 test ! -n "$as_dirs" || mkdir $as_dirs
27211 fi || { { echo "$as_me:$LINENO: error: cannot create directory $dirpart/$fdir" >&5
27212 echo "$as_me: error: cannot create directory $dirpart/$fdir" >&2;}
27213 { (exit 1); exit 1; }; }; }
27215 # echo "creating $dirpart/$file"
27216 echo '# dummy' > "$dirpart/$file"
27222 sed -e '/^NAT_FILE[ ]*=/s,^NAT_FILE[ ]*=[ ]*,&config/'"${gdb_host_cpu}"'/,' <Makefile >Makefile.tmp
27223 mv -f Makefile.tmp Makefile
27226 case x$CONFIG_HEADERS in
27227 xconfig.h:config.in)
27235 cat >>$CONFIG_STATUS <<\_ACEOF
27237 { (exit 0); exit 0; }
27239 chmod +x $CONFIG_STATUS
27240 ac_clean_files=$ac_clean_files_save
27243 # configure is writing to config.log, and then calls config.status.
27244 # config.status does its own redirection, appending to config.log.
27245 # Unfortunately, on DOS this fails, as config.log is still kept open
27246 # by configure, so config.status won't be able to write to it; its
27247 # output is simply discarded. So we exec the FD to /dev/null,
27248 # effectively closing config.log, so it can be properly (re)opened and
27249 # appended to by config.status. When coming back to configure, we
27250 # need to make the FD available again.
27251 if test "$no_create" != yes; then
27253 ac_config_status_args=
27254 test "$silent" = yes &&
27255 ac_config_status_args="$ac_config_status_args --quiet"
27257 $SHELL $CONFIG_STATUS $ac_config_status_args || ac_cs_success=false
27259 # Use ||, not &&, to avoid exiting from the if with $? = 1, which
27260 # would make configure fail if this is the last instruction.
27261 $ac_cs_success || { (exit 1); exit 1; }
27265 # CONFIG_SUBDIRS section, as fixed in confsubdir.m4.
27267 if test "$no_recursion" != yes; then
27269 # Remove --cache-file and --srcdir arguments so they do not pile up.
27270 ac_sub_configure_args=
27272 eval "set x $ac_configure_args"
27276 if test -n "$ac_prev"; then
27281 -cache-file | --cache-file | --cache-fil | --cache-fi \
27282 | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c)
27283 ac_prev=cache_file ;;
27284 -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \
27285 | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* \
27288 --config-cache | -C)
27290 -srcdir | --srcdir | --srcdi | --srcd | --src | --sr)
27292 -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*)
27294 -prefix | --prefix | --prefi | --pref | --pre | --pr | --p)
27296 -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*)
27300 *\'*) ac_arg=`echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;;
27302 ac_sub_configure_args="$ac_sub_configure_args '$ac_arg'" ;;
27306 # Always prepend --prefix to ensure using the same prefix
27307 # in subdir configurations.
27308 ac_arg="--prefix=$prefix"
27310 *\'*) ac_arg=`echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;;
27312 ac_sub_configure_args="$ac_arg $ac_sub_configure_args"
27315 for ac_dir in : $subdirs; do test "x$ac_dir" = x: && continue
27317 # Do not complain, so a configure script can configure whichever
27318 # parts of a large source tree are present.
27319 test -d "$srcdir/$ac_dir" || continue
27321 { echo "$as_me:$LINENO: configuring in $ac_dir" >&5
27322 echo "$as_me: configuring in $ac_dir" >&6;}
27323 { if $as_mkdir_p; then
27328 while test ! -d "$as_dir"; do
27329 as_dirs="$as_dir $as_dirs"
27330 as_dir=`(dirname "$as_dir") 2>/dev/null ||
27331 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
27332 X"$as_dir" : 'X\(//\)[^/]' \| \
27333 X"$as_dir" : 'X\(//\)$' \| \
27334 X"$as_dir" : 'X\(/\)' \| \
27335 . : '\(.\)' 2>/dev/null ||
27337 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
27338 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
27339 /^X\(\/\/\)$/{ s//\1/; q; }
27340 /^X\(\/\).*/{ s//\1/; q; }
27343 test ! -n "$as_dirs" || mkdir $as_dirs
27344 fi || { { echo "$as_me:$LINENO: error: cannot create directory \"$ac_dir\"" >&5
27345 echo "$as_me: error: cannot create directory \"$ac_dir\"" >&2;}
27346 { (exit 1); exit 1; }; }; }
27350 if test "$ac_dir" != .; then
27351 ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'`
27352 # A "../" for each directory in $ac_dir_suffix.
27353 ac_top_builddir=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,../,g'`
27355 ac_dir_suffix= ac_top_builddir=
27359 .) # No --srcdir option. We are building in place.
27361 if test -z "$ac_top_builddir"; then
27364 ac_top_srcdir=`echo $ac_top_builddir | sed 's,/$,,'`
27366 [\\/]* | ?:[\\/]* ) # Absolute path.
27367 ac_srcdir=$srcdir$ac_dir_suffix;
27368 ac_top_srcdir=$srcdir ;;
27369 *) # Relative path.
27370 ac_srcdir=$ac_top_builddir$srcdir$ac_dir_suffix
27371 ac_top_srcdir=$ac_top_builddir$srcdir ;;
27374 # Do not use `cd foo && pwd` to compute absolute paths, because
27375 # the directories may not exist.
27377 .) ac_abs_builddir="$ac_dir";;
27380 .) ac_abs_builddir=`pwd`;;
27381 [\\/]* | ?:[\\/]* ) ac_abs_builddir="$ac_dir";;
27382 *) ac_abs_builddir=`pwd`/"$ac_dir";;
27385 case $ac_abs_builddir in
27386 .) ac_abs_top_builddir=${ac_top_builddir}.;;
27388 case ${ac_top_builddir}. in
27389 .) ac_abs_top_builddir=$ac_abs_builddir;;
27390 [\\/]* | ?:[\\/]* ) ac_abs_top_builddir=${ac_top_builddir}.;;
27391 *) ac_abs_top_builddir=$ac_abs_builddir/${ac_top_builddir}.;;
27394 case $ac_abs_builddir in
27395 .) ac_abs_srcdir=$ac_srcdir;;
27398 .) ac_abs_srcdir=$ac_abs_builddir;;
27399 [\\/]* | ?:[\\/]* ) ac_abs_srcdir=$ac_srcdir;;
27400 *) ac_abs_srcdir=$ac_abs_builddir/$ac_srcdir;;
27403 case $ac_abs_builddir in
27404 .) ac_abs_top_srcdir=$ac_top_srcdir;;
27406 case $ac_top_srcdir in
27407 .) ac_abs_top_srcdir=$ac_abs_builddir;;
27408 [\\/]* | ?:[\\/]* ) ac_abs_top_srcdir=$ac_top_srcdir;;
27409 *) ac_abs_top_srcdir=$ac_abs_builddir/$ac_top_srcdir;;
27416 # Check for guested configure; otherwise get Cygnus style configure.
27417 if test -f "$ac_srcdir/configure.gnu"; then
27418 ac_sub_configure=$ac_srcdir/configure.gnu
27419 elif test -f "$ac_srcdir/configure"; then
27420 ac_sub_configure=$ac_srcdir/configure
27421 elif test -f "$ac_srcdir/configure.in"; then
27422 # This should be Cygnus configure.
27423 ac_sub_configure=$ac_aux_dir/configure
27425 { echo "$as_me:$LINENO: WARNING: no configuration information is in $ac_dir" >&5
27426 echo "$as_me: WARNING: no configuration information is in $ac_dir" >&2;}
27430 # The recursion is here.
27431 if test -n "$ac_sub_configure"; then
27432 # Make the cache file name correct relative to the subdirectory.
27433 case $cache_file in
27434 [\\/]* | ?:[\\/]* ) ac_sub_cache_file=$cache_file ;;
27435 *) # Relative path.
27436 ac_sub_cache_file=$ac_top_builddir$cache_file ;;
27439 { echo "$as_me:$LINENO: running $SHELL $ac_sub_configure $ac_sub_configure_args --cache-file=$ac_sub_cache_file --srcdir=$ac_srcdir" >&5
27440 echo "$as_me: running $SHELL $ac_sub_configure $ac_sub_configure_args --cache-file=$ac_sub_cache_file --srcdir=$ac_srcdir" >&6;}
27441 # The eval makes quoting arguments work.
27442 eval "\$SHELL \"\$ac_sub_configure\" $ac_sub_configure_args \
27443 --cache-file=\"\$ac_sub_cache_file\" --srcdir=\"\$ac_srcdir\"" ||
27444 { { echo "$as_me:$LINENO: error: $ac_sub_configure failed for $ac_dir" >&5
27445 echo "$as_me: error: $ac_sub_configure failed for $ac_dir" >&2;}
27446 { (exit 1); exit 1; }; }