2 # Guess values for system-dependent variables and create Makefiles.
3 # Generated by GNU Autoconf 2.59.
5 # Copyright (C) 2003 Free Software Foundation, Inc.
6 # This configure script is free software; the Free Software Foundation
7 # gives unlimited permission to copy, distribute and modify it.
8 ## --------------------- ##
9 ## M4sh Initialization. ##
10 ## --------------------- ##
12 # Be Bourne compatible
13 if test -n "${ZSH_VERSION+set}" && (emulate sh
) >/dev
/null
2>&1; then
16 # Zsh 3.x and 4.x performs word splitting on ${1+"$@"}, which
17 # is contrary to our usage. Disable this feature.
18 alias -g '${1+"$@"}'='"$@"'
19 elif test -n "${BASH_VERSION+set}" && (set -o posix
) >/dev
/null
2>&1; then
22 DUALCASE
=1; export DUALCASE
# for MKS sh
24 # Support unset when possible.
25 if ( (MAIL
=60; unset MAIL
) ||
exit) >/dev
/null
2>&1; then
32 # Work around bugs in pre-3.0 UWIN ksh.
33 $as_unset ENV MAIL MAILPATH
40 LANG LANGUAGE LC_ADDRESS LC_ALL LC_COLLATE LC_CTYPE LC_IDENTIFICATION \
41 LC_MEASUREMENT LC_MESSAGES LC_MONETARY LC_NAME LC_NUMERIC LC_PAPER \
44 if (set +x
; test -z "`(eval $as_var=C; export $as_var) 2>&1`"); then
45 eval $as_var=C
; export $as_var
51 # Required to use basename.
52 if expr a
: '\(a\)' >/dev
/null
2>&1; then
58 if (basename /) >/dev
/null
2>&1 && test "X`basename / 2>&1`" = "X/"; then
65 # Name of the executable.
66 as_me
=`$as_basename "$0" ||
67 $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
68 X"$0" : 'X\(//\)$' \| \
69 X"$0" : 'X\(/\)$' \| \
70 . : '\(.\)' 2>/dev/null ||
72 sed '/^.*\/\([^/][^/]*\)\/*$/{ s//\1/; q; }
73 /^X\/\(\/\/\)$/{ s//\1/; q; }
74 /^X\/\(\/\).*/{ s//\1/; q; }
78 # PATH needs CR, and LINENO needs CR and PATH.
79 # Avoid depending upon Character Ranges.
80 as_cr_letters
='abcdefghijklmnopqrstuvwxyz'
81 as_cr_LETTERS
='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
82 as_cr_Letters
=$as_cr_letters$as_cr_LETTERS
83 as_cr_digits
='0123456789'
84 as_cr_alnum
=$as_cr_Letters$as_cr_digits
86 # The user is always right.
87 if test "${PATH_SEPARATOR+set}" != set; then
88 echo "#! /bin/sh" >conf$$.sh
89 echo "exit 0" >>conf$$.sh
91 if (PATH
="/nonexistent;."; conf$$.sh
) >/dev
/null
2>&1; then
102 as_lineno_3
=`(expr $as_lineno_1 + 1) 2>/dev/null`
103 test "x$as_lineno_1" != "x$as_lineno_2" &&
104 test "x$as_lineno_3" = "x$as_lineno_2" ||
{
105 # Find who we are. Look in the path if we contain no path at all
108 *[\\/]* ) as_myself
=$0 ;;
109 *) as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
113 test -z "$as_dir" && as_dir
=.
114 test -r "$as_dir/$0" && as_myself
=$as_dir/$0 && break
119 # We did not find ourselves, most probably we were run as `sh COMMAND'
120 # in which case we are not to be found in the path.
121 if test "x$as_myself" = x
; then
124 if test ! -f "$as_myself"; then
125 { echo "$as_me: error: cannot find myself; rerun with an absolute path" >&2
126 { (exit 1); exit 1; }; }
128 case $CONFIG_SHELL in
130 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
131 for as_dir
in /bin
$PATH_SEPARATOR/usr
/bin
$PATH_SEPARATOR$PATH
134 test -z "$as_dir" && as_dir
=.
135 for as_base
in sh bash ksh sh5
; do
138 if ("$as_dir/$as_base" -c '
141 as_lineno_3=`(expr $as_lineno_1 + 1) 2>/dev/null`
142 test "x$as_lineno_1" != "x$as_lineno_2" &&
143 test "x$as_lineno_3" = "x$as_lineno_2" ') 2>/dev
/null
; then
144 $as_unset BASH_ENV ||
test "${BASH_ENV+set}" != set ||
{ BASH_ENV
=; export BASH_ENV
; }
145 $as_unset ENV ||
test "${ENV+set}" != set ||
{ ENV
=; export ENV
; }
146 CONFIG_SHELL
=$as_dir/$as_base
148 exec "$CONFIG_SHELL" "$0" ${1+"$@"}
156 # Create $as_me.lineno as a copy of $as_myself, but with $LINENO
157 # uniformly replaced by the line number. The first 'sed' inserts a
158 # line-number line before each line; the second 'sed' does the real
159 # work. The second script uses 'N' to pair each line-number line
160 # with the numbered line, and appends trailing '-' during
161 # substitution so that $LINENO is not a special case at line end.
162 # (Raja R Harinath suggested sed '=', and Paul Eggert wrote the
163 # second 'sed' script. Blame Lee E. McMahon for sed's syntax. :-)
164 sed '=' <$as_myself |
169 s,^\(['$as_cr_digits']*\)\(.*\)[$]LINENO\([^'$as_cr_alnum'_]\),\1\2\1\3,
172 s,^['$as_cr_digits']*\n,,
174 chmod +x
$as_me.lineno ||
175 { echo "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2
176 { (exit 1); exit 1; }; }
178 # Don't try to exec as it changes $[0], causing all sort of problems
179 # (the dirname of $[0] is not the place where we might find the
180 # original and so on. Autoconf is especially sensible to this).
182 # Exit status is that of the last command.
187 case `echo "testing\c"; echo 1,2,3`,`echo -n testing; echo 1,2,3` in
188 *c
*,-n*) ECHO_N
= ECHO_C
='
190 *c
*,* ) ECHO_N
=-n ECHO_C
= ECHO_T
= ;;
191 *) ECHO_N
= ECHO_C
='\c' ECHO_T
= ;;
194 if expr a
: '\(a\)' >/dev
/null
2>&1; then
200 rm -f conf$$ conf$$.exe conf$$.
file
202 if ln -s conf$$.
file conf$$
2>/dev
/null
; then
203 # We could just check for DJGPP; but this test a) works b) is more generic
204 # and c) will remain valid once DJGPP supports symlinks (DJGPP 2.04).
205 if test -f conf$$.exe
; then
206 # Don't use ln at all; we don't have any links
211 elif ln conf$$.
file conf$$
2>/dev
/null
; then
216 rm -f conf$$ conf$$.exe conf$$.
file
218 if mkdir
-p .
2>/dev
/null
; then
221 test -d .
/-p && rmdir .
/-p
225 as_executable_p
="test -f"
227 # Sed expression to map a string onto a valid CPP name.
228 as_tr_cpp
="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
230 # Sed expression to map a string onto a valid variable name.
231 as_tr_sh
="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
235 # We need space, tab and new line, in precisely that order.
245 # hostname on some systems (SVR3.2, Linux) returns a bogus exit status,
246 # so uname gets run too.
247 ac_hostname
=`(hostname || uname -n) 2>/dev/null | sed 1q`
254 ac_default_prefix
=/usr
/local
255 ac_config_libobj_dir
=.
260 SHELL
=${CONFIG_SHELL-/bin/sh}
262 # Maximum number of lines to put in a shell here document.
263 # This variable seems obsolete. It should probably be removed, and
264 # only ac_max_sed_lines should be used.
265 : ${ac_max_here_lines=38}
267 # Identity of this package.
274 ac_unique_file
="main.c"
275 # Factoring default headers for most tests.
276 ac_includes_default
="\
279 # include <sys/types.h>
282 # include <sys/stat.h>
293 # if !STDC_HEADERS && HAVE_MEMORY_H
299 # include <strings.h>
302 # include <inttypes.h>
313 ac_subdirs_all
="$ac_subdirs_all doc testsuite"
314 ac_subdirs_all
="$ac_subdirs_all gdbtk"
315 ac_subdirs_all
="$ac_subdirs_all multi-ice"
316 ac_subdirs_all
="$ac_subdirs_all gdbserver"
317 ac_subst_vars
='SHELL PATH_SEPARATOR PACKAGE_NAME PACKAGE_TARNAME PACKAGE_VERSION PACKAGE_STRING PACKAGE_BUGREPORT exec_prefix prefix program_transform_name bindir sbindir libexecdir datadir sysconfdir sharedstatedir localstatedir libdir includedir oldincludedir infodir mandir build_alias host_alias target_alias DEFS ECHO_C ECHO_N ECHO_T LIBS MAINTAINER_MODE_TRUE MAINTAINER_MODE_FALSE MAINT CC CFLAGS LDFLAGS CPPFLAGS ac_ct_CC EXEEXT OBJEXT CPP EGREP RANLIB ac_ct_RANLIB build build_cpu build_vendor build_os host host_cpu host_vendor host_os target target_cpu target_vendor target_os am__leading_dot DEPDIR CCDEPMODE MAKE GMAKE_TRUE GMAKE_FALSE SET_MAKE USE_NLS LIBINTL LIBINTL_DEP INCINTL XGETTEXT GMSGFMT POSUB CATALOGS DATADIRNAME INSTOBJEXT GENCAT CATOBJEXT localedir GL_COND_LIBTOOL_TRUE GL_COND_LIBTOOL_FALSE GNULIB_MEMMEM GNULIB_MEMPCPY GNULIB_MEMRCHR GNULIB_STPCPY GNULIB_STPNCPY GNULIB_STRCHRNUL GNULIB_STRDUP GNULIB_STRNDUP GNULIB_STRNLEN GNULIB_STRPBRK GNULIB_STRSEP GNULIB_STRSTR GNULIB_STRCASESTR GNULIB_STRTOK_R GNULIB_MBSLEN GNULIB_MBSNLEN GNULIB_MBSCHR GNULIB_MBSRCHR GNULIB_MBSSTR GNULIB_MBSCASECMP GNULIB_MBSNCASECMP GNULIB_MBSPCASECMP GNULIB_MBSCASESTR GNULIB_MBSCSPN GNULIB_MBSPBRK GNULIB_MBSSPN GNULIB_MBSSEP GNULIB_MBSTOK_R GNULIB_STRERROR GNULIB_STRSIGNAL HAVE_DECL_MEMMEM HAVE_MEMPCPY HAVE_DECL_MEMRCHR HAVE_STPCPY HAVE_STPNCPY HAVE_STRCHRNUL HAVE_DECL_STRDUP HAVE_STRNDUP HAVE_DECL_STRNDUP HAVE_DECL_STRNLEN HAVE_STRPBRK HAVE_STRSEP HAVE_STRCASESTR HAVE_DECL_STRTOK_R HAVE_DECL_STRERROR HAVE_DECL_STRSIGNAL REPLACE_STRERROR REPLACE_STRSIGNAL REPLACE_MEMMEM REPLACE_STRCASESTR REPLACE_STRSTR HAVE_LONG_LONG_INT HAVE_UNSIGNED_LONG_LONG_INT HAVE_INTTYPES_H HAVE_SYS_TYPES_H INCLUDE_NEXT NEXT_STDINT_H HAVE_STDINT_H HAVE_SYS_INTTYPES_H HAVE_SYS_BITYPES_H BITSIZEOF_PTRDIFF_T BITSIZEOF_SIG_ATOMIC_T BITSIZEOF_SIZE_T BITSIZEOF_WCHAR_T BITSIZEOF_WINT_T HAVE_SIGNED_SIG_ATOMIC_T HAVE_SIGNED_WCHAR_T HAVE_SIGNED_WINT_T PTRDIFF_T_SUFFIX SIG_ATOMIC_T_SUFFIX SIZE_T_SUFFIX WCHAR_T_SUFFIX WINT_T_SUFFIX STDINT_H NEXT_STRING_H GNULIB_WCWIDTH HAVE_DECL_WCWIDTH REPLACE_WCWIDTH WCHAR_H HAVE_WCHAR_H NEXT_WCHAR_H LIBGNU_LIBDEPS LIBGNU_LTLIBDEPS GNULIB_STDINT_H PACKAGE INSTALL_PROGRAM INSTALL_SCRIPT INSTALL_DATA CYGPATH_W VERSION ACLOCAL AUTOCONF AUTOMAKE AUTOHEADER MAKEINFO install_sh STRIP ac_ct_STRIP INSTALL_STRIP_PROGRAM mkdir_p AWK AMTAR am__tar am__untar am__include am__quote AMDEP_TRUE AMDEP_FALSE AMDEPBACKSLASH am__fastdepCC_TRUE am__fastdepCC_FALSE subdirs TARGET_OBS PKGVERSION REPORT_BUGS_TO REPORT_BUGS_TEXI LN_S YACC AR ac_ct_AR DLLTOOL ac_ct_DLLTOOL WINDRES ac_ct_WINDRES MIG ac_ct_MIG READLINE READLINE_DEPS READLINE_CFLAGS HAVE_LIBEXPAT LIBEXPAT LTLIBEXPAT PYTHON_CFLAGS ALLOCA CONFIG_LDFLAGS TARGET_SYSTEM_ROOT TARGET_SYSTEM_ROOT_DEFINE WARN_CFLAGS WERROR_CFLAGS SER_HARDWIRE WIN32LIBS LIBGUI GUI_CFLAGS_X WIN32LDAPP TCL_VERSION TCL_PATCH_LEVEL TCL_BIN_DIR TCL_SRC_DIR TCL_LIB_FILE TCL_LIB_FLAG TCL_LIB_SPEC TCL_STUB_LIB_FILE TCL_STUB_LIB_FLAG TCL_STUB_LIB_SPEC TCL_INCLUDE TCL_LIBRARY TCL_DEPS TK_VERSION TK_BIN_DIR TK_SRC_DIR TK_LIB_FILE TK_LIB_FLAG TK_LIB_SPEC TK_STUB_LIB_FILE TK_STUB_LIB_FLAG TK_STUB_LIB_SPEC TK_INCLUDE TK_LIBRARY TK_DEPS TK_XINCLUDES X_CFLAGS X_LDFLAGS X_LIBS GDBTKLIBS GDBTK_CFLAGS GDBTK_SRC_DIR SIM SIM_OBS ENABLE_CFLAGS PROFILE_CFLAGS CONFIG_OBS CONFIG_DEPS CONFIG_SRCS CONFIG_ALL CONFIG_CLEAN CONFIG_INSTALL CONFIG_UNINSTALL target_subdir frags nm_h LIBICONV LIBOBJS LTLIBOBJS gl_LIBOBJS gl_LTLIBOBJS gltests_LIBOBJS gltests_LTLIBOBJS'
318 ac_subst_files
='host_makefile_frag'
321 # Initialize some variables set by options.
323 ac_init_version
=false
324 # The variables have the same names as the options, with
325 # dashes changed to underlines.
333 program_transform_name
=s
,x
,x
,
341 # Installation directory options.
342 # These are left unexpanded so users can "make install exec_prefix=/foo"
343 # and all the variables that are supposed to be based on exec_prefix
344 # by default will actually change.
345 # Use braces instead of parens because sh, perl, etc. also accept them.
346 bindir
='${exec_prefix}/bin'
347 sbindir
='${exec_prefix}/sbin'
348 libexecdir
='${exec_prefix}/libexec'
349 datadir
='${prefix}/share'
350 sysconfdir
='${prefix}/etc'
351 sharedstatedir
='${prefix}/com'
352 localstatedir
='${prefix}/var'
353 libdir
='${exec_prefix}/lib'
354 includedir
='${prefix}/include'
355 oldincludedir
='/usr/include'
356 infodir
='${prefix}/info'
357 mandir
='${prefix}/man'
362 # If the previous option needs an argument, assign it.
363 if test -n "$ac_prev"; then
364 eval "$ac_prev=\$ac_option"
369 ac_optarg
=`expr "x$ac_option" : 'x[^=]*=\(.*\)'`
371 # Accept the important Cygnus configure options, so we can diagnose typos.
375 -bindir |
--bindir |
--bindi |
--bind |
--bin |
--bi)
377 -bindir=* |
--bindir=* |
--bindi=* |
--bind=* |
--bin=* |
--bi=*)
380 -build |
--build |
--buil |
--bui |
--bu)
381 ac_prev
=build_alias
;;
382 -build=* |
--build=* |
--buil=* |
--bui=* |
--bu=*)
383 build_alias
=$ac_optarg ;;
385 -cache-file |
--cache-file |
--cache-fil |
--cache-fi \
386 |
--cache-f |
--cache- |
--cache |
--cach |
--cac |
--ca |
--c)
387 ac_prev
=cache_file
;;
388 -cache-file=* |
--cache-file=* |
--cache-fil=* |
--cache-fi=* \
389 |
--cache-f=* |
--cache-=* |
--cache=* |
--cach=* |
--cac=* |
--ca=* |
--c=*)
390 cache_file
=$ac_optarg ;;
393 cache_file
=config.cache
;;
395 -datadir |
--datadir |
--datadi |
--datad |
--data |
--dat |
--da)
397 -datadir=* |
--datadir=* |
--datadi=* |
--datad=* |
--data=* |
--dat=* \
399 datadir
=$ac_optarg ;;
401 -disable-* |
--disable-*)
402 ac_feature
=`expr "x$ac_option" : 'x-*disable-\(.*\)'`
403 # Reject names that are not valid shell variable names.
404 expr "x$ac_feature" : ".*[^-_$as_cr_alnum]" >/dev
/null
&&
405 { echo "$as_me: error: invalid feature name: $ac_feature" >&2
406 { (exit 1); exit 1; }; }
407 ac_feature
=`echo $ac_feature | sed 's/-/_/g'`
408 eval "enable_$ac_feature=no" ;;
410 -enable-* |
--enable-*)
411 ac_feature
=`expr "x$ac_option" : 'x-*enable-\([^=]*\)'`
412 # Reject names that are not valid shell variable names.
413 expr "x$ac_feature" : ".*[^-_$as_cr_alnum]" >/dev
/null
&&
414 { echo "$as_me: error: invalid feature name: $ac_feature" >&2
415 { (exit 1); exit 1; }; }
416 ac_feature
=`echo $ac_feature | sed 's/-/_/g'`
418 *=*) ac_optarg
=`echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"`;;
421 eval "enable_$ac_feature='$ac_optarg'" ;;
423 -exec-prefix |
--exec_prefix |
--exec-prefix |
--exec-prefi \
424 |
--exec-pref |
--exec-pre |
--exec-pr |
--exec-p |
--exec- \
425 |
--exec |
--exe |
--ex)
426 ac_prev
=exec_prefix
;;
427 -exec-prefix=* |
--exec_prefix=* |
--exec-prefix=* |
--exec-prefi=* \
428 |
--exec-pref=* |
--exec-pre=* |
--exec-pr=* |
--exec-p=* |
--exec-=* \
429 |
--exec=* |
--exe=* |
--ex=*)
430 exec_prefix
=$ac_optarg ;;
432 -gas |
--gas |
--ga |
--g)
433 # Obsolete; use --with-gas.
436 -help |
--help |
--hel |
--he |
-h)
438 -help=r
* |
--help=r
* |
--hel=r
* |
--he=r
* |
-hr*)
439 ac_init_help
=recursive
;;
440 -help=s
* |
--help=s
* |
--hel=s
* |
--he=s
* |
-hs*)
441 ac_init_help
=short
;;
443 -host |
--host |
--hos |
--ho)
444 ac_prev
=host_alias
;;
445 -host=* |
--host=* |
--hos=* |
--ho=*)
446 host_alias
=$ac_optarg ;;
448 -includedir |
--includedir |
--includedi |
--included |
--include \
449 |
--includ |
--inclu |
--incl |
--inc)
450 ac_prev
=includedir
;;
451 -includedir=* |
--includedir=* |
--includedi=* |
--included=* |
--include=* \
452 |
--includ=* |
--inclu=* |
--incl=* |
--inc=*)
453 includedir
=$ac_optarg ;;
455 -infodir |
--infodir |
--infodi |
--infod |
--info |
--inf)
457 -infodir=* |
--infodir=* |
--infodi=* |
--infod=* |
--info=* |
--inf=*)
458 infodir
=$ac_optarg ;;
460 -libdir |
--libdir |
--libdi |
--libd)
462 -libdir=* |
--libdir=* |
--libdi=* |
--libd=*)
465 -libexecdir |
--libexecdir |
--libexecdi |
--libexecd |
--libexec \
466 |
--libexe |
--libex |
--libe)
467 ac_prev
=libexecdir
;;
468 -libexecdir=* |
--libexecdir=* |
--libexecdi=* |
--libexecd=* |
--libexec=* \
469 |
--libexe=* |
--libex=* |
--libe=*)
470 libexecdir
=$ac_optarg ;;
472 -localstatedir |
--localstatedir |
--localstatedi |
--localstated \
473 |
--localstate |
--localstat |
--localsta |
--localst \
474 |
--locals |
--local |
--loca |
--loc |
--lo)
475 ac_prev
=localstatedir
;;
476 -localstatedir=* |
--localstatedir=* |
--localstatedi=* |
--localstated=* \
477 |
--localstate=* |
--localstat=* |
--localsta=* |
--localst=* \
478 |
--locals=* |
--local=* |
--loca=* |
--loc=* |
--lo=*)
479 localstatedir
=$ac_optarg ;;
481 -mandir |
--mandir |
--mandi |
--mand |
--man |
--ma |
--m)
483 -mandir=* |
--mandir=* |
--mandi=* |
--mand=* |
--man=* |
--ma=* |
--m=*)
487 # Obsolete; use --without-fp.
490 -no-create |
--no-create |
--no-creat |
--no-crea |
--no-cre \
491 |
--no-cr |
--no-c |
-n)
494 -no-recursion |
--no-recursion |
--no-recursio |
--no-recursi \
495 |
--no-recurs |
--no-recur |
--no-recu |
--no-rec |
--no-re |
--no-r)
498 -oldincludedir |
--oldincludedir |
--oldincludedi |
--oldincluded \
499 |
--oldinclude |
--oldinclud |
--oldinclu |
--oldincl |
--oldinc \
500 |
--oldin |
--oldi |
--old |
--ol |
--o)
501 ac_prev
=oldincludedir
;;
502 -oldincludedir=* |
--oldincludedir=* |
--oldincludedi=* |
--oldincluded=* \
503 |
--oldinclude=* |
--oldinclud=* |
--oldinclu=* |
--oldincl=* |
--oldinc=* \
504 |
--oldin=* |
--oldi=* |
--old=* |
--ol=* |
--o=*)
505 oldincludedir
=$ac_optarg ;;
507 -prefix |
--prefix |
--prefi |
--pref |
--pre |
--pr |
--p)
509 -prefix=* |
--prefix=* |
--prefi=* |
--pref=* |
--pre=* |
--pr=* |
--p=*)
512 -program-prefix |
--program-prefix |
--program-prefi |
--program-pref \
513 |
--program-pre |
--program-pr |
--program-p)
514 ac_prev
=program_prefix
;;
515 -program-prefix=* |
--program-prefix=* |
--program-prefi=* \
516 |
--program-pref=* |
--program-pre=* |
--program-pr=* |
--program-p=*)
517 program_prefix
=$ac_optarg ;;
519 -program-suffix |
--program-suffix |
--program-suffi |
--program-suff \
520 |
--program-suf |
--program-su |
--program-s)
521 ac_prev
=program_suffix
;;
522 -program-suffix=* |
--program-suffix=* |
--program-suffi=* \
523 |
--program-suff=* |
--program-suf=* |
--program-su=* |
--program-s=*)
524 program_suffix
=$ac_optarg ;;
526 -program-transform-name |
--program-transform-name \
527 |
--program-transform-nam |
--program-transform-na \
528 |
--program-transform-n |
--program-transform- \
529 |
--program-transform |
--program-transfor \
530 |
--program-transfo |
--program-transf \
531 |
--program-trans |
--program-tran \
532 |
--progr-tra |
--program-tr |
--program-t)
533 ac_prev
=program_transform_name
;;
534 -program-transform-name=* |
--program-transform-name=* \
535 |
--program-transform-nam=* |
--program-transform-na=* \
536 |
--program-transform-n=* |
--program-transform-=* \
537 |
--program-transform=* |
--program-transfor=* \
538 |
--program-transfo=* |
--program-transf=* \
539 |
--program-trans=* |
--program-tran=* \
540 |
--progr-tra=* |
--program-tr=* |
--program-t=*)
541 program_transform_name
=$ac_optarg ;;
543 -q |
-quiet |
--quiet |
--quie |
--qui |
--qu |
--q \
544 |
-silent |
--silent |
--silen |
--sile |
--sil)
547 -sbindir |
--sbindir |
--sbindi |
--sbind |
--sbin |
--sbi |
--sb)
549 -sbindir=* |
--sbindir=* |
--sbindi=* |
--sbind=* |
--sbin=* \
551 sbindir
=$ac_optarg ;;
553 -sharedstatedir |
--sharedstatedir |
--sharedstatedi \
554 |
--sharedstated |
--sharedstate |
--sharedstat |
--sharedsta \
555 |
--sharedst |
--shareds |
--shared |
--share |
--shar \
557 ac_prev
=sharedstatedir
;;
558 -sharedstatedir=* |
--sharedstatedir=* |
--sharedstatedi=* \
559 |
--sharedstated=* |
--sharedstate=* |
--sharedstat=* |
--sharedsta=* \
560 |
--sharedst=* |
--shareds=* |
--shared=* |
--share=* |
--shar=* \
562 sharedstatedir
=$ac_optarg ;;
564 -site |
--site |
--sit)
566 -site=* |
--site=* |
--sit=*)
569 -srcdir |
--srcdir |
--srcdi |
--srcd |
--src |
--sr)
571 -srcdir=* |
--srcdir=* |
--srcdi=* |
--srcd=* |
--src=* |
--sr=*)
574 -sysconfdir |
--sysconfdir |
--sysconfdi |
--sysconfd |
--sysconf \
575 |
--syscon |
--sysco |
--sysc |
--sys |
--sy)
576 ac_prev
=sysconfdir
;;
577 -sysconfdir=* |
--sysconfdir=* |
--sysconfdi=* |
--sysconfd=* |
--sysconf=* \
578 |
--syscon=* |
--sysco=* |
--sysc=* |
--sys=* |
--sy=*)
579 sysconfdir
=$ac_optarg ;;
581 -target |
--target |
--targe |
--targ |
--tar |
--ta |
--t)
582 ac_prev
=target_alias
;;
583 -target=* |
--target=* |
--targe=* |
--targ=* |
--tar=* |
--ta=* |
--t=*)
584 target_alias
=$ac_optarg ;;
586 -v |
-verbose |
--verbose |
--verbos |
--verbo |
--verb)
589 -version |
--version |
--versio |
--versi |
--vers |
-V)
593 ac_package
=`expr "x$ac_option" : 'x-*with-\([^=]*\)'`
594 # Reject names that are not valid shell variable names.
595 expr "x$ac_package" : ".*[^-_$as_cr_alnum]" >/dev
/null
&&
596 { echo "$as_me: error: invalid package name: $ac_package" >&2
597 { (exit 1); exit 1; }; }
598 ac_package
=`echo $ac_package| sed 's/-/_/g'`
600 *=*) ac_optarg
=`echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"`;;
603 eval "with_$ac_package='$ac_optarg'" ;;
605 -without-* |
--without-*)
606 ac_package
=`expr "x$ac_option" : 'x-*without-\(.*\)'`
607 # Reject names that are not valid shell variable names.
608 expr "x$ac_package" : ".*[^-_$as_cr_alnum]" >/dev
/null
&&
609 { echo "$as_me: error: invalid package name: $ac_package" >&2
610 { (exit 1); exit 1; }; }
611 ac_package
=`echo $ac_package | sed 's/-/_/g'`
612 eval "with_$ac_package=no" ;;
615 # Obsolete; use --with-x.
618 -x-includes |
--x-includes |
--x-include |
--x-includ |
--x-inclu \
619 |
--x-incl |
--x-inc |
--x-in |
--x-i)
620 ac_prev
=x_includes
;;
621 -x-includes=* |
--x-includes=* |
--x-include=* |
--x-includ=* |
--x-inclu=* \
622 |
--x-incl=* |
--x-inc=* |
--x-in=* |
--x-i=*)
623 x_includes
=$ac_optarg ;;
625 -x-libraries |
--x-libraries |
--x-librarie |
--x-librari \
626 |
--x-librar |
--x-libra |
--x-libr |
--x-lib |
--x-li |
--x-l)
627 ac_prev
=x_libraries
;;
628 -x-libraries=* |
--x-libraries=* |
--x-librarie=* |
--x-librari=* \
629 |
--x-librar=* |
--x-libra=* |
--x-libr=* |
--x-lib=* |
--x-li=* |
--x-l=*)
630 x_libraries
=$ac_optarg ;;
632 -*) { echo "$as_me: error: unrecognized option: $ac_option
633 Try \`$0 --help' for more information." >&2
634 { (exit 1); exit 1; }; }
638 ac_envvar
=`expr "x$ac_option" : 'x\([^=]*\)='`
639 # Reject names that are not valid shell variable names.
640 expr "x$ac_envvar" : ".*[^_$as_cr_alnum]" >/dev
/null
&&
641 { echo "$as_me: error: invalid variable name: $ac_envvar" >&2
642 { (exit 1); exit 1; }; }
643 ac_optarg
=`echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"`
644 eval "$ac_envvar='$ac_optarg'"
648 # FIXME: should be removed in autoconf 3.0.
649 echo "$as_me: WARNING: you should use --build, --host, --target" >&2
650 expr "x$ac_option" : ".*[^-._$as_cr_alnum]" >/dev
/null
&&
651 echo "$as_me: WARNING: invalid host type: $ac_option" >&2
652 : ${build_alias=$ac_option} ${host_alias=$ac_option} ${target_alias=$ac_option}
658 if test -n "$ac_prev"; then
659 ac_option
=--`echo $ac_prev | sed 's/_/-/g'`
660 { echo "$as_me: error: missing argument to $ac_option" >&2
661 { (exit 1); exit 1; }; }
664 # Be sure to have absolute paths.
665 for ac_var
in exec_prefix prefix
667 eval ac_val
=$
`echo $ac_var`
669 [\\/$
]* | ?
:[\\/]* | NONE |
'' ) ;;
670 *) { echo "$as_me: error: expected an absolute directory name for --$ac_var: $ac_val" >&2
671 { (exit 1); exit 1; }; };;
675 # Be sure to have absolute paths.
676 for ac_var
in bindir sbindir libexecdir datadir sysconfdir sharedstatedir \
677 localstatedir libdir includedir oldincludedir infodir mandir
679 eval ac_val
=$
`echo $ac_var`
681 [\\/$
]* | ?
:[\\/]* ) ;;
682 *) { echo "$as_me: error: expected an absolute directory name for --$ac_var: $ac_val" >&2
683 { (exit 1); exit 1; }; };;
687 # There might be people who depend on the old broken behavior: `$host'
688 # used to hold the argument of --host etc.
689 # FIXME: To remove some day.
694 # FIXME: To remove some day.
695 if test "x$host_alias" != x
; then
696 if test "x$build_alias" = x
; then
697 cross_compiling
=maybe
698 echo "$as_me: WARNING: If you wanted to set the --build type, don't use --host.
699 If a cross compiler is detected then cross compile mode will be used." >&2
700 elif test "x$build_alias" != "x$host_alias"; then
706 test -n "$host_alias" && ac_tool_prefix
=$host_alias-
708 test "$silent" = yes && exec 6>/dev
/null
711 # Find the source files, if location was not specified.
712 if test -z "$srcdir"; then
713 ac_srcdir_defaulted
=yes
714 # Try the directory containing this script, then its parent.
715 ac_confdir
=`(dirname "$0") 2>/dev/null ||
716 $as_expr X"$0" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
717 X"$0" : 'X\(//\)[^/]' \| \
718 X"$0" : 'X\(//\)$' \| \
719 X"$0" : 'X\(/\)' \| \
720 . : '\(.\)' 2>/dev/null ||
722 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
723 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
724 /^X\(\/\/\)$/{ s//\1/; q; }
725 /^X\(\/\).*/{ s//\1/; q; }
728 if test ! -r $srcdir/$ac_unique_file; then
732 ac_srcdir_defaulted
=no
734 if test ! -r $srcdir/$ac_unique_file; then
735 if test "$ac_srcdir_defaulted" = yes; then
736 { echo "$as_me: error: cannot find sources ($ac_unique_file) in $ac_confdir or .." >&2
737 { (exit 1); exit 1; }; }
739 { echo "$as_me: error: cannot find sources ($ac_unique_file) in $srcdir" >&2
740 { (exit 1); exit 1; }; }
743 (cd $srcdir && test -r .
/$ac_unique_file) 2>/dev
/null ||
744 { echo "$as_me: error: sources are in $srcdir, but \`cd $srcdir' does not work" >&2
745 { (exit 1); exit 1; }; }
746 srcdir
=`echo "$srcdir" | sed 's%\([^\\/]\)[\\/]*$%\1%'`
747 ac_env_build_alias_set
=${build_alias+set}
748 ac_env_build_alias_value
=$build_alias
749 ac_cv_env_build_alias_set
=${build_alias+set}
750 ac_cv_env_build_alias_value
=$build_alias
751 ac_env_host_alias_set
=${host_alias+set}
752 ac_env_host_alias_value
=$host_alias
753 ac_cv_env_host_alias_set
=${host_alias+set}
754 ac_cv_env_host_alias_value
=$host_alias
755 ac_env_target_alias_set
=${target_alias+set}
756 ac_env_target_alias_value
=$target_alias
757 ac_cv_env_target_alias_set
=${target_alias+set}
758 ac_cv_env_target_alias_value
=$target_alias
759 ac_env_CC_set
=${CC+set}
761 ac_cv_env_CC_set
=${CC+set}
762 ac_cv_env_CC_value
=$CC
763 ac_env_CFLAGS_set
=${CFLAGS+set}
764 ac_env_CFLAGS_value
=$CFLAGS
765 ac_cv_env_CFLAGS_set
=${CFLAGS+set}
766 ac_cv_env_CFLAGS_value
=$CFLAGS
767 ac_env_LDFLAGS_set
=${LDFLAGS+set}
768 ac_env_LDFLAGS_value
=$LDFLAGS
769 ac_cv_env_LDFLAGS_set
=${LDFLAGS+set}
770 ac_cv_env_LDFLAGS_value
=$LDFLAGS
771 ac_env_CPPFLAGS_set
=${CPPFLAGS+set}
772 ac_env_CPPFLAGS_value
=$CPPFLAGS
773 ac_cv_env_CPPFLAGS_set
=${CPPFLAGS+set}
774 ac_cv_env_CPPFLAGS_value
=$CPPFLAGS
775 ac_env_CPP_set
=${CPP+set}
776 ac_env_CPP_value
=$CPP
777 ac_cv_env_CPP_set
=${CPP+set}
778 ac_cv_env_CPP_value
=$CPP
781 # Report the --help message.
783 if test "$ac_init_help" = "long"; then
784 # Omit some internal or obsolete options to make the list less imposing.
785 # This message is too long to be a string in the A/UX 3.1 sh.
787 \`configure' configures this package to adapt to many kinds of systems.
789 Usage: $0 [OPTION]... [VAR=VALUE]...
791 To assign environment variables (e.g., CC, CFLAGS...), specify them as
792 VAR=VALUE. See below for descriptions of some of the useful variables.
794 Defaults for the options are specified in brackets.
797 -h, --help display this help and exit
798 --help=short display options specific to this package
799 --help=recursive display the short help of all the included packages
800 -V, --version display version information and exit
801 -q, --quiet, --silent do not print \`checking...' messages
802 --cache-file=FILE cache test results in FILE [disabled]
803 -C, --config-cache alias for \`--cache-file=config.cache'
804 -n, --no-create do not create output files
805 --srcdir=DIR find the sources in DIR [configure dir or \`..']
810 Installation directories:
811 --prefix=PREFIX install architecture-independent files in PREFIX
813 --exec-prefix=EPREFIX install architecture-dependent files in EPREFIX
816 By default, \`make install' will install all the files in
817 \`$ac_default_prefix/bin', \`$ac_default_prefix/lib' etc. You can specify
818 an installation prefix other than \`$ac_default_prefix' using \`--prefix',
819 for instance \`--prefix=\$HOME'.
821 For better control, use the options below.
823 Fine tuning of the installation directories:
824 --bindir=DIR user executables [EPREFIX/bin]
825 --sbindir=DIR system admin executables [EPREFIX/sbin]
826 --libexecdir=DIR program executables [EPREFIX/libexec]
827 --datadir=DIR read-only architecture-independent data [PREFIX/share]
828 --sysconfdir=DIR read-only single-machine data [PREFIX/etc]
829 --sharedstatedir=DIR modifiable architecture-independent data [PREFIX/com]
830 --localstatedir=DIR modifiable single-machine data [PREFIX/var]
831 --libdir=DIR object code libraries [EPREFIX/lib]
832 --includedir=DIR C header files [PREFIX/include]
833 --oldincludedir=DIR C header files for non-gcc [/usr/include]
834 --infodir=DIR info documentation [PREFIX/info]
835 --mandir=DIR man documentation [PREFIX/man]
841 --program-prefix=PREFIX prepend PREFIX to installed program names
842 --program-suffix=SUFFIX append SUFFIX to installed program names
843 --program-transform-name=PROGRAM run
sed PROGRAM on installed program names
846 --x-includes=DIR X include files are
in DIR
847 --x-libraries=DIR X library files are
in DIR
850 --build=BUILD configure
for building on BUILD
[guessed
]
851 --host=HOST cross-compile to build programs to run on HOST
[BUILD
]
852 --target=TARGET configure
for building compilers
for TARGET
[HOST
]
856 if test -n "$ac_init_help"; then
861 --disable-FEATURE do not include FEATURE
(same as
--enable-FEATURE=no
)
862 --enable-FEATURE[=ARG
] include FEATURE
[ARG
=yes]
863 --enable-maintainer-mode enable make rules and dependencies not useful
864 (and sometimes confusing
) to the casual installer
865 --disable-dependency-tracking speeds up one-time build
866 --enable-dependency-tracking do not reject slow dependency extractors
867 --enable-targets alternative target configurations
868 --enable-64-bit-bfd 64-bit support
(on hosts with narrower word sizes
)
869 --disable-gdbcli disable command-line interface
(CLI
)
870 --disable-gdbmi disable machine-interface
(MI
)
871 --enable-tui enable full-screen terminal user interface
(TUI
)
872 --enable-gdbtk enable gdbtk graphical user interface
(GUI
)
873 --enable-profiling enable profiling of GDB
874 --disable-rpath do not hardcode runtime library paths
875 --enable-werror treat compile warnings as errors
876 --enable-build-warnings Enable build-time compiler warnings
if gcc is used
877 --enable-gdb-build-warnings Enable GDB specific build-time compiler warnings
if gcc is used
878 --enable-sim Link gdb with simulator
879 --enable-multi-ice build the multi-ice-gdb-server
882 --with-PACKAGE[=ARG
] use PACKAGE
[ARG
=yes]
883 --without-PACKAGE do not use PACKAGE
(same as
--with-PACKAGE=no
)
884 --with-separate-debug-dir=path Look
for global separate debug info
in this path LIBDIR
/debug
885 --with-libunwind Use libunwind frame unwinding support
886 --with-pkgversion=PKG Use PKG
in the version string
in place of
"GDB"
887 --with-bugurl=URL Direct users to URL to report a bug
888 --with-system-readline use installed readline library
889 --with-expat include expat support
(auto
/yes
/no
)
890 --with-gnu-ld assume the C compiler uses GNU ld default
=no
891 --with-libexpat-prefix[=DIR
] search
for libexpat
in DIR
/include and DIR
/lib
892 --without-libexpat-prefix don
't search for libexpat in includedir and libdir
893 --with-python include python support (auto/yes/no/<path>)
894 --without-included-regex don't use included regex
; this is the default
895 on systems with version
2 of the GNU C library
896 (use with caution on other system
)
897 --with-sysroot=DIR Search
for usr
/lib et al within DIR.
898 --with-tcl directory containing tcl configuration
(tclConfig.sh
)
899 --with-tk directory containing tk configuration
(tkConfig.sh
)
900 --with-x use the X Window System
901 --with-libiconv-prefix=DIR search
for libiconv
in DIR
/include and DIR
/lib
903 Some influential environment variables
:
904 CC C compiler
command
905 CFLAGS C compiler flags
906 LDFLAGS linker flags
, e.g.
-L<lib dir
> if you have libraries
in a
907 nonstandard directory
<lib dir
>
908 CPPFLAGS C
/C
++ preprocessor flags
, e.g.
-I<include dir
> if you have
909 headers
in a nonstandard directory
<include dir
>
912 Use these variables to override the choices made by
`configure' or to help
913 it to find libraries and programs with nonstandard names/locations.
918 if test "$ac_init_help" = "recursive"; then
919 # If there are subdirs, report their specific --help.
921 for ac_dir in : $ac_subdirs_all; do test "x$ac_dir" = x: && continue
922 test -d $ac_dir || continue
925 if test "$ac_dir" != .; then
926 ac_dir_suffix=/`echo "$ac_dir" |
sed 's,^\.[\\/],,'`
927 # A "../" for each directory in $ac_dir_suffix.
928 ac_top_builddir=`echo "$ac_dir_suffix" |
sed 's,/[^\\/]*,../,g'`
930 ac_dir_suffix= ac_top_builddir=
934 .) # No --srcdir option. We are building in place.
936 if test -z "$ac_top_builddir"; then
939 ac_top_srcdir=`echo $ac_top_builddir |
sed 's,/$,,'`
941 [\\/]* | ?:[\\/]* ) # Absolute path.
942 ac_srcdir=$srcdir$ac_dir_suffix;
943 ac_top_srcdir=$srcdir ;;
945 ac_srcdir=$ac_top_builddir$srcdir$ac_dir_suffix
946 ac_top_srcdir=$ac_top_builddir$srcdir ;;
949 # Do not use `cd foo
&& pwd` to compute absolute paths, because
950 # the directories may not exist.
952 .) ac_abs_builddir="$ac_dir";;
955 .) ac_abs_builddir=`pwd`;;
956 [\\/]* | ?:[\\/]* ) ac_abs_builddir="$ac_dir";;
957 *) ac_abs_builddir=`pwd`/"$ac_dir";;
960 case $ac_abs_builddir in
961 .) ac_abs_top_builddir=${ac_top_builddir}.;;
963 case ${ac_top_builddir}. in
964 .) ac_abs_top_builddir=$ac_abs_builddir;;
965 [\\/]* | ?:[\\/]* ) ac_abs_top_builddir=${ac_top_builddir}.;;
966 *) ac_abs_top_builddir=$ac_abs_builddir/${ac_top_builddir}.;;
969 case $ac_abs_builddir in
970 .) ac_abs_srcdir=$ac_srcdir;;
973 .) ac_abs_srcdir=$ac_abs_builddir;;
974 [\\/]* | ?:[\\/]* ) ac_abs_srcdir=$ac_srcdir;;
975 *) ac_abs_srcdir=$ac_abs_builddir/$ac_srcdir;;
978 case $ac_abs_builddir in
979 .) ac_abs_top_srcdir=$ac_top_srcdir;;
981 case $ac_top_srcdir in
982 .) ac_abs_top_srcdir=$ac_abs_builddir;;
983 [\\/]* | ?:[\\/]* ) ac_abs_top_srcdir=$ac_top_srcdir;;
984 *) ac_abs_top_srcdir=$ac_abs_builddir/$ac_top_srcdir;;
989 # Check for guested configure; otherwise get Cygnus style configure.
990 if test -f $ac_srcdir/configure.gnu; then
992 $SHELL $ac_srcdir/configure.gnu --help=recursive
993 elif test -f $ac_srcdir/configure; then
995 $SHELL $ac_srcdir/configure --help=recursive
996 elif test -f $ac_srcdir/configure.ac ||
997 test -f $ac_srcdir/configure.in; then
1001 echo "$as_me: WARNING: no configuration information is in $ac_dir" >&2
1007 test -n "$ac_init_help" && exit 0
1008 if $ac_init_version; then
1011 Copyright (C) 2003 Free Software Foundation, Inc.
1012 This configure script is free software; the Free Software Foundation
1013 gives unlimited permission to copy, distribute and modify it.
1019 This file contains any messages produced by compilers while
1020 running configure, to aid debugging if configure makes a mistake.
1022 It was created by $as_me, which was
1023 generated by GNU Autoconf 2.59. Invocation command line was
1034 hostname = `(hostname || uname
-n) 2>/dev
/null |
sed 1q
`
1035 uname -m = `(uname
-m) 2>/dev
/null ||
echo unknown
`
1036 uname -r = `(uname
-r) 2>/dev
/null ||
echo unknown
`
1037 uname -s = `(uname
-s) 2>/dev
/null ||
echo unknown
`
1038 uname -v = `(uname
-v) 2>/dev
/null ||
echo unknown
`
1040 /usr/bin/uname -p = `(/usr
/bin
/uname
-p) 2>/dev
/null ||
echo unknown
`
1041 /bin/uname -X = `(/bin
/uname
-X) 2>/dev
/null ||
echo unknown
`
1043 /bin/arch = `(/bin
/arch
) 2>/dev
/null ||
echo unknown
`
1044 /usr/bin/arch -k = `(/usr
/bin
/arch
-k) 2>/dev
/null ||
echo unknown
`
1045 /usr/convex/getsysinfo = `(/usr
/convex
/getsysinfo
) 2>/dev
/null ||
echo unknown
`
1046 hostinfo = `(hostinfo
) 2>/dev
/null ||
echo unknown
`
1047 /bin/machine = `(/bin
/machine
) 2>/dev
/null ||
echo unknown
`
1048 /usr/bin/oslevel = `(/usr
/bin
/oslevel
) 2>/dev
/null ||
echo unknown
`
1049 /bin/universe = `(/bin
/universe
) 2>/dev
/null ||
echo unknown
`
1053 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1057 test -z "$as_dir" && as_dir=.
1058 echo "PATH: $as_dir"
1073 # Keep a trace of the command line.
1074 # Strip out --no-create and --no-recursion so they do not pile up.
1075 # Strip out --silent because we don't want to record it for future runs.
1076 # Also quote any args containing shell meta-characters.
1077 # Make two passes to allow for proper duplicate-argument suppression.
1082 ac_must_keep_next=false
1088 -no-create | --no-c* | -n | -no-recursion | --no-r*) continue ;;
1089 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
1090 | -silent | --silent | --silen | --sile | --sil)
1092 *" "*|*" "*|*[\[\]\~\#\$\^\&\*\(\)\{\}\\\|\;\<\>\?\"\']*)
1093 ac_arg=`echo "$ac_arg" |
sed "s/'/'\\\\\\\\''/g"` ;;
1096 1) ac_configure_args0="$ac_configure_args0 '$ac_arg'" ;;
1098 ac_configure_args1="$ac_configure_args1 '$ac_arg'"
1099 if test $ac_must_keep_next = true; then
1100 ac_must_keep_next=false # Got value, back to normal.
1103 *=* | --config-cache | -C | -disable-* | --disable-* \
1104 | -enable-* | --enable-* | -gas | --g* | -nfp | --nf* \
1105 | -q | -quiet | --q* | -silent | --sil* | -v | -verb* \
1106 | -with-* | --with-* | -without-* | --without-* | --x)
1107 case "$ac_configure_args0 " in
1108 "$ac_configure_args1"*" '$ac_arg' "* ) continue ;;
1111 -* ) ac_must_keep_next=true ;;
1114 ac_configure_args="$ac_configure_args$ac_sep'$ac_arg'"
1115 # Get rid of the leading space.
1121 $as_unset ac_configure_args0 || test "${ac_configure_args0+set}" != set || { ac_configure_args0=; export ac_configure_args0; }
1122 $as_unset ac_configure_args1 || test "${ac_configure_args1+set}" != set || { ac_configure_args1=; export ac_configure_args1; }
1124 # When interrupted or exit'd, cleanup temporary files, and complete
1125 # config.log. We remove comments because anyway the quotes in there
1126 # would cause problems or look ugly.
1127 # WARNING: Be sure not to use single quotes in there, as some shells,
1128 # such as our DU 5.0 friend, will then `close
' the trap.
1129 trap 'exit_status
=$?
1130 # Save into config.log some information that might help in debugging.
1135 ## ---------------- ##
1136 ## Cache variables. ##
1137 ## ---------------- ##
1140 # The following way of writing the cache mishandles newlines in values,
1143 case `(ac_space='"'"' '"'"'; set | grep ac_space) 2>&1` in
1146 "s/'"'"'/'"'"'\\\\'"'"''"'"'/g;
1147 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='"'"'\\2'"'"'/p"
1151 "s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1=\\2/p"
1158 ## ----------------- ##
1159 ## Output variables. ##
1160 ## ----------------- ##
1163 for ac_var
in $ac_subst_vars
1165 eval ac_val
=$
`echo $ac_var`
1166 echo "$ac_var='"'"'$ac_val'"'"'"
1170 if test -n "$ac_subst_files"; then
1177 for ac_var
in $ac_subst_files
1179 eval ac_val
=$
`echo $ac_var`
1180 echo "$ac_var='"'"'$ac_val'"'"'"
1185 if test -s confdefs.h
; then
1192 sed "/^$/d" confdefs.h |
sort
1195 test "$ac_signal" != 0 &&
1196 echo "$as_me: caught signal $ac_signal"
1197 echo "$as_me: exit $exit_status"
1199 rm -f core
*.core
&&
1200 rm -rf conftest
* confdefs
* conf$$
* $ac_clean_files &&
1203 for ac_signal in 1 2 13 15; do
1204 trap 'ac_signal
='$ac_signal'; { (exit 1); exit 1; }' $ac_signal
1208 # confdefs.h avoids OS command line length limits that DEFS can exceed.
1209 rm -rf conftest* confdefs.h
1210 # AIX cpp loses on an empty file, so make sure it contains at least a newline.
1213 # Predefined preprocessor variables.
1215 cat >>confdefs.h <<_ACEOF
1216 #define PACKAGE_NAME "$PACKAGE_NAME"
1220 cat >>confdefs.h <<_ACEOF
1221 #define PACKAGE_TARNAME "$PACKAGE_TARNAME"
1225 cat >>confdefs.h <<_ACEOF
1226 #define PACKAGE_VERSION "$PACKAGE_VERSION"
1230 cat >>confdefs.h <<_ACEOF
1231 #define PACKAGE_STRING "$PACKAGE_STRING"
1235 cat >>confdefs.h <<_ACEOF
1236 #define PACKAGE_BUGREPORT "$PACKAGE_BUGREPORT"
1240 # Let the site file select an alternate cache file if it wants to.
1241 # Prefer explicitly selected file to automatically selected ones.
1242 if test -z "$CONFIG_SITE"; then
1243 if test "x$prefix" != xNONE; then
1244 CONFIG_SITE="$prefix/share/config.site $prefix/etc/config.site"
1246 CONFIG_SITE="$ac_default_prefix/share/config.site $ac_default_prefix/etc/config.site"
1249 for ac_site_file in $CONFIG_SITE; do
1250 if test -r "$ac_site_file"; then
1251 { echo "$as_me:$LINENO: loading site script $ac_site_file" >&5
1252 echo "$as_me: loading site script $ac_site_file" >&6;}
1253 sed 's
/^
/|
/' "$ac_site_file" >&5
1258 if test -r "$cache_file"; then
1259 # Some versions of bash will fail to source /dev/null (special
1260 # files actually), so we avoid doing that.
1261 if test -f "$cache_file"; then
1262 { echo "$as_me:$LINENO: loading cache $cache_file" >&5
1263 echo "$as_me: loading cache $cache_file" >&6;}
1265 [\\/]* | ?:[\\/]* ) . $cache_file;;
1266 *) . ./$cache_file;;
1270 { echo "$as_me:$LINENO: creating cache $cache_file" >&5
1271 echo "$as_me: creating cache $cache_file" >&6;}
1275 # Check that the precious variables saved in the cache have kept the same
1277 ac_cache_corrupted=false
1278 for ac_var in `(set) 2>&1 |
1279 sed -n 's
/^ac_env_\
([a-zA-Z_0-9
]*\
)_set
=.
*/\
1/p
'`; do
1280 eval ac_old_set=\$ac_cv_env_${ac_var}_set
1281 eval ac_new_set=\$ac_env_${ac_var}_set
1282 eval ac_old_val="\$ac_cv_env_${ac_var}_value"
1283 eval ac_new_val="\$ac_env_${ac_var}_value"
1284 case $ac_old_set,$ac_new_set in
1286 { echo "$as_me:$LINENO: error: \`$ac_var' was
set to \
`$ac_old_val' in the previous run" >&5
1287 echo "$as_me: error: \`$ac_var' was set to \`$ac_old_val' in the previous run
" >&2;}
1288 ac_cache_corrupted=: ;;
1290 { echo "$as_me:$LINENO: error
: \
`$ac_var' was not set in the previous run" >&5
1291 echo "$as_me: error: \`$ac_var' was not set in the previous run" >&2;}
1292 ac_cache_corrupted=: ;;
1295 if test "x$ac_old_val" != "x$ac_new_val"; then
1296 # differences in whitespace do not lead to failure.
1297 ac_old_val_w=`echo x $ac_old_val`
1298 ac_new_val_w=`echo x $ac_new_val`
1299 if test "$ac_old_val_w" != "$ac_new_val_w"; then
1300 { echo "$as_me:$LINENO: error: \`$ac_var' has changed since the previous run
:" >&5
1301 echo "$as_me: error
: \
`$ac_var' has changed since the previous run:" >&2;}
1302 ac_cache_corrupted=:
1304 { echo "$as_me:$LINENO: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&5
1305 echo "$as_me: warning: ignoring whitespace changes in \`$ac_var' since the previous run
:" >&2;}
1306 eval $ac_var=\$ac_old_val
1308 { echo "$as_me:$LINENO: former value
: \
`$ac_old_val'" >&5
1309 echo "$as_me: former value: \`$ac_old_val'" >&2;}
1310 { echo "$as_me:$LINENO: current value: \`$ac_new_val'" >&5
1311 echo "$as_me: current value
: \
`$ac_new_val'" >&2;}
1314 # Pass precious variables to config.status.
1315 if test "$ac_new_set" = set; then
1317 *" "*|*" "*|*[\[\]\~\#\$\^\&\*\(\)\{\}\\\|\;\<\>\?\"\']*)
1318 ac_arg=$ac_var=`echo "$ac_new_val" |
sed "s/'/'\\\\\\\\''/g"` ;;
1319 *) ac_arg=$ac_var=$ac_new_val ;;
1321 case " $ac_configure_args " in
1322 *" '$ac_arg' "*) ;; # Avoid dups. Use of quotes ensures accuracy.
1323 *) ac_configure_args="$ac_configure_args '$ac_arg'" ;;
1327 if $ac_cache_corrupted; then
1328 { echo "$as_me:$LINENO: error: in \`$ac_pwd':" >&5
1329 echo "$as_me: error: in \`$ac_pwd':" >&2;}
1330 { echo "$as_me:$LINENO: error
: changes
in the environment can compromise the build
" >&5
1331 echo "$as_me: error
: changes
in the environment can compromise the build
" >&2;}
1332 { { echo "$as_me:$LINENO: error
: run \
`make distclean' and/or \`rm $cache_file' and start over" >&5
1333 echo "$as_me: error: run \`make distclean' and
/or \
`rm $cache_file' and start over" >&2;}
1334 { (exit 1); exit 1; }; }
1338 ac_cpp='$CPP $CPPFLAGS'
1339 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
1340 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
1341 ac_compiler_gnu=$ac_cv_c_compiler_gnu
1344 gl_header_list="$gl_header_list stdint.h"
1345 gl_header_list="$gl_header_list wchar.h"
1346 gl_header_list="$gl_header_list string.h"
1367 ac_config_headers="$ac_config_headers config.h:config.in"
1369 echo "$as_me:$LINENO: checking whether to enable maintainer-specific portions of Makefiles" >&5
1370 echo $ECHO_N "checking whether to enable maintainer-specific portions of Makefiles... $ECHO_C" >&6
1371 # Check whether --enable-maintainer-mode or --disable-maintainer-mode was given.
1372 if test "${enable_maintainer_mode+set}" = set; then
1373 enableval="$enable_maintainer_mode"
1374 USE_MAINTAINER_MODE=$enableval
1376 USE_MAINTAINER_MODE=no
1378 echo "$as_me:$LINENO: result: $USE_MAINTAINER_MODE" >&5
1379 echo "${ECHO_T}$USE_MAINTAINER_MODE" >&6
1382 if test $USE_MAINTAINER_MODE = yes; then
1383 MAINTAINER_MODE_TRUE=
1384 MAINTAINER_MODE_FALSE='#'
1386 MAINTAINER_MODE_TRUE='#'
1387 MAINTAINER_MODE_FALSE=
1390 MAINT=$MAINTAINER_MODE_TRUE
1395 ac_cpp='$CPP $CPPFLAGS'
1396 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
1397 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
1398 ac_compiler_gnu=$ac_cv_c_compiler_gnu
1399 if test -n "$ac_tool_prefix"; then
1400 # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args.
1401 set dummy ${ac_tool_prefix}gcc; ac_word=$2
1402 echo "$as_me:$LINENO: checking for $ac_word" >&5
1403 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1404 if test "${ac_cv_prog_CC+set}" = set; then
1405 echo $ECHO_N "(cached) $ECHO_C" >&6
1407 if test -n "$CC"; then
1408 ac_cv_prog_CC="$CC" # Let the user override the test.
1410 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1414 test -z "$as_dir" && as_dir=.
1415 for ac_exec_ext in '' $ac_executable_extensions; do
1416 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1417 ac_cv_prog_CC="${ac_tool_prefix}gcc"
1418 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
1427 if test -n "$CC"; then
1428 echo "$as_me:$LINENO: result: $CC" >&5
1429 echo "${ECHO_T}$CC" >&6
1431 echo "$as_me:$LINENO: result: no" >&5
1432 echo "${ECHO_T}no" >&6
1436 if test -z "$ac_cv_prog_CC"; then
1438 # Extract the first word of "gcc", so it can be a program name with args.
1439 set dummy gcc; ac_word=$2
1440 echo "$as_me:$LINENO: checking for $ac_word" >&5
1441 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1442 if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
1443 echo $ECHO_N "(cached) $ECHO_C" >&6
1445 if test -n "$ac_ct_CC"; then
1446 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
1448 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1452 test -z "$as_dir" && as_dir=.
1453 for ac_exec_ext in '' $ac_executable_extensions; do
1454 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1455 ac_cv_prog_ac_ct_CC="gcc"
1456 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
1464 ac_ct_CC=$ac_cv_prog_ac_ct_CC
1465 if test -n "$ac_ct_CC"; then
1466 echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
1467 echo "${ECHO_T}$ac_ct_CC" >&6
1469 echo "$as_me:$LINENO: result: no" >&5
1470 echo "${ECHO_T}no" >&6
1478 if test -z "$CC"; then
1479 if test -n "$ac_tool_prefix"; then
1480 # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args.
1481 set dummy ${ac_tool_prefix}cc; ac_word=$2
1482 echo "$as_me:$LINENO: checking for $ac_word" >&5
1483 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1484 if test "${ac_cv_prog_CC+set}" = set; then
1485 echo $ECHO_N "(cached) $ECHO_C" >&6
1487 if test -n "$CC"; then
1488 ac_cv_prog_CC="$CC" # Let the user override the test.
1490 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1494 test -z "$as_dir" && as_dir=.
1495 for ac_exec_ext in '' $ac_executable_extensions; do
1496 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1497 ac_cv_prog_CC="${ac_tool_prefix}cc"
1498 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
1507 if test -n "$CC"; then
1508 echo "$as_me:$LINENO: result: $CC" >&5
1509 echo "${ECHO_T}$CC" >&6
1511 echo "$as_me:$LINENO: result: no" >&5
1512 echo "${ECHO_T}no" >&6
1516 if test -z "$ac_cv_prog_CC"; then
1518 # Extract the first word of "cc", so it can be a program name with args.
1519 set dummy cc; ac_word=$2
1520 echo "$as_me:$LINENO: checking for $ac_word" >&5
1521 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1522 if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
1523 echo $ECHO_N "(cached) $ECHO_C" >&6
1525 if test -n "$ac_ct_CC"; then
1526 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
1528 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1532 test -z "$as_dir" && as_dir=.
1533 for ac_exec_ext in '' $ac_executable_extensions; do
1534 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1535 ac_cv_prog_ac_ct_CC="cc"
1536 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
1544 ac_ct_CC=$ac_cv_prog_ac_ct_CC
1545 if test -n "$ac_ct_CC"; then
1546 echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
1547 echo "${ECHO_T}$ac_ct_CC" >&6
1549 echo "$as_me:$LINENO: result: no" >&5
1550 echo "${ECHO_T}no" >&6
1559 if test -z "$CC"; then
1560 # Extract the first word of "cc", so it can be a program name with args.
1561 set dummy cc; ac_word=$2
1562 echo "$as_me:$LINENO: checking for $ac_word" >&5
1563 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1564 if test "${ac_cv_prog_CC+set}" = set; then
1565 echo $ECHO_N "(cached) $ECHO_C" >&6
1567 if test -n "$CC"; then
1568 ac_cv_prog_CC="$CC" # Let the user override the test.
1571 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1575 test -z "$as_dir" && as_dir=.
1576 for ac_exec_ext in '' $ac_executable_extensions; do
1577 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1578 if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then
1579 ac_prog_rejected=yes
1583 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
1589 if test $ac_prog_rejected = yes; then
1590 # We found a bogon in the path, so make sure we never use it.
1591 set dummy $ac_cv_prog_CC
1593 if test $# != 0; then
1594 # We chose a different compiler from the bogus one.
1595 # However, it has the same basename, so the bogon will be chosen
1596 # first if we set CC to just the basename; use the full file name.
1598 ac_cv_prog_CC="$as_dir/$ac_word${1+' '}$@"
1604 if test -n "$CC"; then
1605 echo "$as_me:$LINENO: result: $CC" >&5
1606 echo "${ECHO_T}$CC" >&6
1608 echo "$as_me:$LINENO: result: no" >&5
1609 echo "${ECHO_T}no" >&6
1613 if test -z "$CC"; then
1614 if test -n "$ac_tool_prefix"; then
1617 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
1618 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
1619 echo "$as_me:$LINENO: checking for $ac_word" >&5
1620 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1621 if test "${ac_cv_prog_CC+set}" = set; then
1622 echo $ECHO_N "(cached) $ECHO_C" >&6
1624 if test -n "$CC"; then
1625 ac_cv_prog_CC="$CC" # Let the user override the test.
1627 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1631 test -z "$as_dir" && as_dir=.
1632 for ac_exec_ext in '' $ac_executable_extensions; do
1633 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1634 ac_cv_prog_CC="$ac_tool_prefix$ac_prog"
1635 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
1644 if test -n "$CC"; then
1645 echo "$as_me:$LINENO: result: $CC" >&5
1646 echo "${ECHO_T}$CC" >&6
1648 echo "$as_me:$LINENO: result: no" >&5
1649 echo "${ECHO_T}no" >&6
1652 test -n "$CC" && break
1655 if test -z "$CC"; then
1659 # Extract the first word of "$ac_prog", so it can be a program name with args.
1660 set dummy $ac_prog; ac_word=$2
1661 echo "$as_me:$LINENO: checking for $ac_word" >&5
1662 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1663 if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
1664 echo $ECHO_N "(cached) $ECHO_C" >&6
1666 if test -n "$ac_ct_CC"; then
1667 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
1669 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1673 test -z "$as_dir" && as_dir=.
1674 for ac_exec_ext in '' $ac_executable_extensions; do
1675 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1676 ac_cv_prog_ac_ct_CC="$ac_prog"
1677 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
1685 ac_ct_CC=$ac_cv_prog_ac_ct_CC
1686 if test -n "$ac_ct_CC"; then
1687 echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
1688 echo "${ECHO_T}$ac_ct_CC" >&6
1690 echo "$as_me:$LINENO: result: no" >&5
1691 echo "${ECHO_T}no" >&6
1694 test -n "$ac_ct_CC" && break
1703 test -z "$CC" && { { echo "$as_me:$LINENO: error: in \`$ac_pwd':" >&5
1704 echo "$as_me: error: in \`$ac_pwd':" >&2;}
1705 { { echo "$as_me:$LINENO: error
: no acceptable C compiler found
in \
$PATH
1706 See \
`config.log' for more details." >&5
1707 echo "$as_me: error: no acceptable C compiler found in \$PATH
1708 See \`config.log
' for more details." >&2;}
1709 { (exit 1); exit 1; }; }; }
1711 # Provide some information about the compiler.
1712 echo "$as_me:$LINENO:" \
1713 "checking for C compiler version" >&5
1714 ac_compiler=`set X $ac_compile; echo $2`
1715 { (eval echo "$as_me:$LINENO: \"$ac_compiler --version </dev/null >&5\"") >&5
1716 (eval $ac_compiler --version </dev/null >&5) 2>&5
1718 echo "$as_me:$LINENO: \$? = $ac_status" >&5
1719 (exit $ac_status); }
1720 { (eval echo "$as_me:$LINENO: \"$ac_compiler -v </dev/null >&5\"") >&5
1721 (eval $ac_compiler -v </dev/null >&5) 2>&5
1723 echo "$as_me:$LINENO: \$? = $ac_status" >&5
1724 (exit $ac_status); }
1725 { (eval echo "$as_me:$LINENO: \"$ac_compiler -V </dev/null >&5\"") >&5
1726 (eval $ac_compiler -V </dev/null >&5) 2>&5
1728 echo "$as_me:$LINENO: \$? = $ac_status" >&5
1729 (exit $ac_status); }
1731 cat >conftest.$ac_ext <<_ACEOF
1734 cat confdefs.h >>conftest.$ac_ext
1735 cat >>conftest.$ac_ext <<_ACEOF
1736 /* end confdefs.h. */
1746 ac_clean_files_save=$ac_clean_files
1747 ac_clean_files="$ac_clean_files a.out a.exe b.out"
1748 # Try to create an executable without -o first, disregard a.out.
1749 # It will help us diagnose broken compilers, and finding out an intuition
1751 echo "$as_me:$LINENO: checking for C compiler default output file name" >&5
1752 echo $ECHO_N "checking for C compiler default output file name... $ECHO_C" >&6
1753 ac_link_default=`echo "$ac_link" | sed 's
/ -o *conftest
[^
]*//'`
1754 if { (eval echo "$as_me:$LINENO: \"$ac_link_default\"") >&5
1755 (eval $ac_link_default) 2>&5
1757 echo "$as_me:$LINENO: \$? = $ac_status" >&5
1758 (exit $ac_status); }; then
1759 # Find the output, starting from the most likely. This scheme is
1760 # not robust to junk in `.', hence go to wildcards
(a.
*) only as a last
1763 # Be careful to initialize this variable, since it used to be cached.
1764 # Otherwise an old cache value of `no' led to `EXEEXT = no' in a Makefile.
1766 # b.out is created by i960 compilers.
1767 for ac_file
in a_out.exe a.exe conftest.exe a.out conftest a.
* conftest.
* b.out
1769 test -f "$ac_file" ||
continue
1771 *.
$ac_ext |
*.xcoff |
*.tds |
*.d |
*.pdb |
*.xSYM |
*.bb |
*.bbg |
*.o |
*.obj
)
1774 # This is the source file.
1777 # We found the default executable, but exeext='' is most
1781 ac_cv_exeext
=`expr "$ac_file" : '[^.]*\(\..*\)'`
1782 # FIXME: I believe we export ac_cv_exeext for Libtool,
1783 # but it would be cool to find out if it's true. Does anybody
1784 # maintain Libtool? --akim.
1792 echo "$as_me: failed program was:" >&5
1793 sed 's/^/| /' conftest.
$ac_ext >&5
1795 { { echo "$as_me:$LINENO: error: in \`$ac_pwd':" >&5
1796 echo "$as_me: error: in \`$ac_pwd':" >&2;}
1797 { { echo "$as_me:$LINENO: error: C compiler cannot create executables
1798 See \`config.log' for more details." >&5
1799 echo "$as_me: error: C compiler cannot create executables
1800 See \`config.log' for more details." >&2;}
1801 { (exit 77); exit 77; }; }; }
1804 ac_exeext
=$ac_cv_exeext
1805 echo "$as_me:$LINENO: result: $ac_file" >&5
1806 echo "${ECHO_T}$ac_file" >&6
1808 # Check the compiler produces executables we can run. If not, either
1809 # the compiler is broken, or we cross compile.
1810 echo "$as_me:$LINENO: checking whether the C compiler works" >&5
1811 echo $ECHO_N "checking whether the C compiler works... $ECHO_C" >&6
1812 # FIXME: These cross compiler hacks should be removed for Autoconf 3.0
1813 # If not cross compiling, check that we can run a simple program.
1814 if test "$cross_compiling" != yes; then
1815 if { ac_try
='./$ac_file'
1816 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
1819 echo "$as_me:$LINENO: \$? = $ac_status" >&5
1820 (exit $ac_status); }; }; then
1823 if test "$cross_compiling" = maybe
; then
1826 { { echo "$as_me:$LINENO: error: in \`$ac_pwd':" >&5
1827 echo "$as_me: error: in \`$ac_pwd':" >&2;}
1828 { { echo "$as_me:$LINENO: error: cannot run C compiled programs.
1829 If you meant to cross compile, use \`--host'.
1830 See \`config.log' for more details." >&5
1831 echo "$as_me: error: cannot run C compiled programs.
1832 If you meant to cross compile, use \`--host'.
1833 See \`config.log' for more details." >&2;}
1834 { (exit 1); exit 1; }; }; }
1838 echo "$as_me:$LINENO: result: yes" >&5
1839 echo "${ECHO_T}yes" >&6
1841 rm -f a.out a.exe conftest
$ac_cv_exeext b.out
1842 ac_clean_files
=$ac_clean_files_save
1843 # Check the compiler produces executables we can run. If not, either
1844 # the compiler is broken, or we cross compile.
1845 echo "$as_me:$LINENO: checking whether we are cross compiling" >&5
1846 echo $ECHO_N "checking whether we are cross compiling... $ECHO_C" >&6
1847 echo "$as_me:$LINENO: result: $cross_compiling" >&5
1848 echo "${ECHO_T}$cross_compiling" >&6
1850 echo "$as_me:$LINENO: checking for suffix of executables" >&5
1851 echo $ECHO_N "checking for suffix of executables... $ECHO_C" >&6
1852 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
1853 (eval $ac_link) 2>&5
1855 echo "$as_me:$LINENO: \$? = $ac_status" >&5
1856 (exit $ac_status); }; then
1857 # If both `conftest.exe' and `conftest' are `present' (well, observable)
1858 # catch `conftest.exe'. For instance with Cygwin, `ls conftest' will
1859 # work properly (i.e., refer to `conftest.exe'), while it won't with
1861 for ac_file
in conftest.exe conftest conftest.
*; do
1862 test -f "$ac_file" ||
continue
1864 *.
$ac_ext |
*.xcoff |
*.tds |
*.d |
*.pdb |
*.xSYM |
*.bb |
*.bbg |
*.o |
*.obj
) ;;
1865 *.
* ) ac_cv_exeext
=`expr "$ac_file" : '[^.]*\(\..*\)'`
1872 { { echo "$as_me:$LINENO: error: in \`$ac_pwd':" >&5
1873 echo "$as_me: error: in \`$ac_pwd':" >&2;}
1874 { { echo "$as_me:$LINENO: error: cannot compute suffix of executables: cannot compile and link
1875 See \`config.log' for more details." >&5
1876 echo "$as_me: error: cannot compute suffix of executables: cannot compile and link
1877 See \`config.log' for more details." >&2;}
1878 { (exit 1); exit 1; }; }; }
1881 rm -f conftest
$ac_cv_exeext
1882 echo "$as_me:$LINENO: result: $ac_cv_exeext" >&5
1883 echo "${ECHO_T}$ac_cv_exeext" >&6
1885 rm -f conftest.
$ac_ext
1886 EXEEXT
=$ac_cv_exeext
1888 echo "$as_me:$LINENO: checking for suffix of object files" >&5
1889 echo $ECHO_N "checking for suffix of object files... $ECHO_C" >&6
1890 if test "${ac_cv_objext+set}" = set; then
1891 echo $ECHO_N "(cached) $ECHO_C" >&6
1893 cat >conftest.
$ac_ext <<_ACEOF
1896 cat confdefs.h
>>conftest.
$ac_ext
1897 cat >>conftest.
$ac_ext <<_ACEOF
1898 /* end confdefs.h. */
1908 rm -f conftest.o conftest.obj
1909 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
1910 (eval $ac_compile) 2>&5
1912 echo "$as_me:$LINENO: \$? = $ac_status" >&5
1913 (exit $ac_status); }; then
1914 for ac_file
in `(ls conftest.o conftest.obj; ls conftest.*) 2>/dev/null`; do
1916 *.
$ac_ext |
*.xcoff |
*.tds |
*.d |
*.pdb |
*.xSYM |
*.bb |
*.bbg
) ;;
1917 *) ac_cv_objext
=`expr "$ac_file" : '.*\.\(.*\)'`
1922 echo "$as_me: failed program was:" >&5
1923 sed 's/^/| /' conftest.
$ac_ext >&5
1925 { { echo "$as_me:$LINENO: error: in \`$ac_pwd':" >&5
1926 echo "$as_me: error: in \`$ac_pwd':" >&2;}
1927 { { echo "$as_me:$LINENO: error: cannot compute suffix of object files: cannot compile
1928 See \`config.log' for more details." >&5
1929 echo "$as_me: error: cannot compute suffix of object files: cannot compile
1930 See \`config.log' for more details." >&2;}
1931 { (exit 1); exit 1; }; }; }
1934 rm -f conftest.
$ac_cv_objext conftest.
$ac_ext
1936 echo "$as_me:$LINENO: result: $ac_cv_objext" >&5
1937 echo "${ECHO_T}$ac_cv_objext" >&6
1938 OBJEXT
=$ac_cv_objext
1940 echo "$as_me:$LINENO: checking whether we are using the GNU C compiler" >&5
1941 echo $ECHO_N "checking whether we are using the GNU C compiler... $ECHO_C" >&6
1942 if test "${ac_cv_c_compiler_gnu+set}" = set; then
1943 echo $ECHO_N "(cached) $ECHO_C" >&6
1945 cat >conftest.
$ac_ext <<_ACEOF
1948 cat confdefs.h
>>conftest.
$ac_ext
1949 cat >>conftest.
$ac_ext <<_ACEOF
1950 /* end confdefs.h. */
1963 rm -f conftest.
$ac_objext
1964 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
1965 (eval $ac_compile) 2>conftest.er1
1967 grep -v '^ *+' conftest.er1
>conftest.err
1969 cat conftest.err
>&5
1970 echo "$as_me:$LINENO: \$? = $ac_status" >&5
1971 (exit $ac_status); } &&
1972 { ac_try
='test -z "$ac_c_werror_flag"
1973 || test ! -s conftest.err'
1974 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
1977 echo "$as_me:$LINENO: \$? = $ac_status" >&5
1978 (exit $ac_status); }; } &&
1979 { ac_try
='test -s conftest.$ac_objext'
1980 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
1983 echo "$as_me:$LINENO: \$? = $ac_status" >&5
1984 (exit $ac_status); }; }; then
1987 echo "$as_me: failed program was:" >&5
1988 sed 's/^/| /' conftest.
$ac_ext >&5
1992 rm -f conftest.err conftest.
$ac_objext conftest.
$ac_ext
1993 ac_cv_c_compiler_gnu
=$ac_compiler_gnu
1996 echo "$as_me:$LINENO: result: $ac_cv_c_compiler_gnu" >&5
1997 echo "${ECHO_T}$ac_cv_c_compiler_gnu" >&6
1998 GCC
=`test $ac_compiler_gnu = yes && echo yes`
1999 ac_test_CFLAGS
=${CFLAGS+set}
2000 ac_save_CFLAGS
=$CFLAGS
2002 echo "$as_me:$LINENO: checking whether $CC accepts -g" >&5
2003 echo $ECHO_N "checking whether $CC accepts -g... $ECHO_C" >&6
2004 if test "${ac_cv_prog_cc_g+set}" = set; then
2005 echo $ECHO_N "(cached) $ECHO_C" >&6
2007 cat >conftest.
$ac_ext <<_ACEOF
2010 cat confdefs.h
>>conftest.
$ac_ext
2011 cat >>conftest.
$ac_ext <<_ACEOF
2012 /* end confdefs.h. */
2022 rm -f conftest.
$ac_objext
2023 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2024 (eval $ac_compile) 2>conftest.er1
2026 grep -v '^ *+' conftest.er1
>conftest.err
2028 cat conftest.err
>&5
2029 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2030 (exit $ac_status); } &&
2031 { ac_try
='test -z "$ac_c_werror_flag"
2032 || test ! -s conftest.err'
2033 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2036 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2037 (exit $ac_status); }; } &&
2038 { ac_try
='test -s conftest.$ac_objext'
2039 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2042 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2043 (exit $ac_status); }; }; then
2046 echo "$as_me: failed program was:" >&5
2047 sed 's/^/| /' conftest.
$ac_ext >&5
2051 rm -f conftest.err conftest.
$ac_objext conftest.
$ac_ext
2053 echo "$as_me:$LINENO: result: $ac_cv_prog_cc_g" >&5
2054 echo "${ECHO_T}$ac_cv_prog_cc_g" >&6
2055 if test "$ac_test_CFLAGS" = set; then
2056 CFLAGS
=$ac_save_CFLAGS
2057 elif test $ac_cv_prog_cc_g = yes; then
2058 if test "$GCC" = yes; then
2064 if test "$GCC" = yes; then
2070 echo "$as_me:$LINENO: checking for $CC option to accept ANSI C" >&5
2071 echo $ECHO_N "checking for $CC option to accept ANSI C... $ECHO_C" >&6
2072 if test "${ac_cv_prog_cc_stdc+set}" = set; then
2073 echo $ECHO_N "(cached) $ECHO_C" >&6
2075 ac_cv_prog_cc_stdc
=no
2077 cat >conftest.
$ac_ext <<_ACEOF
2080 cat confdefs.h
>>conftest.
$ac_ext
2081 cat >>conftest.
$ac_ext <<_ACEOF
2082 /* end confdefs.h. */
2085 #include <sys/types.h>
2086 #include <sys/stat.h>
2087 /* Most of the following tests are stolen from RCS 5.7's src/conf.sh. */
2088 struct buf { int x; };
2089 FILE * (*rcsopen) (struct buf *, struct stat *, int);
2090 static char *e (p, i)
2096 static char *f (char * (*g) (char **, int), char **p, ...)
2101 s = g (p, va_arg (v,int));
2106 /* OSF 4.0 Compaq cc is some sort of almost-ANSI by default. It has
2107 function prototypes and stuff, but not '\xHH' hex character constants.
2108 These don't provoke an error unfortunately, instead are silently treated
2109 as 'x'. The following induces an error, until -std1 is added to get
2110 proper ANSI mode. Curiously '\x00'!='x' always comes out true, for an
2111 array size at least. It's necessary to write '\x00'==0 to get something
2112 that's true only with -std1. */
2113 int osf4_cc_array ['\x00' == 0 ? 1 : -1];
2115 int test (int i, double x);
2116 struct s1 {int (*f) (int a);};
2117 struct s2 {int (*f) (double a);};
2118 int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
2124 return f (e, argv, 0) != argv[0] || f (e, argv, 1) != argv[1];
2129 # Don't try gcc -ansi; that turns off useful extensions and
2130 # breaks some systems' header files.
2131 # AIX -qlanglvl=ansi
2132 # Ultrix and OSF/1 -std1
2133 # HP-UX 10.20 and later -Ae
2134 # HP-UX older versions -Aa -D_HPUX_SOURCE
2135 # SVR4 -Xc -D__EXTENSIONS__
2136 for ac_arg
in "" -qlanglvl=ansi
-std1 -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
2138 CC
="$ac_save_CC $ac_arg"
2139 rm -f conftest.
$ac_objext
2140 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2141 (eval $ac_compile) 2>conftest.er1
2143 grep -v '^ *+' conftest.er1
>conftest.err
2145 cat conftest.err
>&5
2146 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2147 (exit $ac_status); } &&
2148 { ac_try
='test -z "$ac_c_werror_flag"
2149 || test ! -s conftest.err'
2150 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2153 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2154 (exit $ac_status); }; } &&
2155 { ac_try
='test -s conftest.$ac_objext'
2156 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2159 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2160 (exit $ac_status); }; }; then
2161 ac_cv_prog_cc_stdc
=$ac_arg
2164 echo "$as_me: failed program was:" >&5
2165 sed 's/^/| /' conftest.
$ac_ext >&5
2168 rm -f conftest.err conftest.
$ac_objext
2170 rm -f conftest.
$ac_ext conftest.
$ac_objext
2175 case "x$ac_cv_prog_cc_stdc" in
2177 echo "$as_me:$LINENO: result: none needed" >&5
2178 echo "${ECHO_T}none needed" >&6 ;;
2180 echo "$as_me:$LINENO: result: $ac_cv_prog_cc_stdc" >&5
2181 echo "${ECHO_T}$ac_cv_prog_cc_stdc" >&6
2182 CC
="$CC $ac_cv_prog_cc_stdc" ;;
2185 # Some people use a C++ compiler to compile C. Since we use `exit',
2186 # in C++ we need to declare it. In case someone uses the same compiler
2187 # for both compiling C and C++ we need to have the C++ compiler decide
2188 # the declaration of exit, since it's the most demanding environment.
2189 cat >conftest.
$ac_ext <<_ACEOF
2194 rm -f conftest.
$ac_objext
2195 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2196 (eval $ac_compile) 2>conftest.er1
2198 grep -v '^ *+' conftest.er1
>conftest.err
2200 cat conftest.err
>&5
2201 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2202 (exit $ac_status); } &&
2203 { ac_try
='test -z "$ac_c_werror_flag"
2204 || test ! -s conftest.err'
2205 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2208 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2209 (exit $ac_status); }; } &&
2210 { ac_try
='test -s conftest.$ac_objext'
2211 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2214 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2215 (exit $ac_status); }; }; then
2216 for ac_declaration
in \
2218 'extern "C" void std::exit (int) throw (); using std::exit;' \
2219 'extern "C" void std::exit (int); using std::exit;' \
2220 'extern "C" void exit (int) throw ();' \
2221 'extern "C" void exit (int);' \
2224 cat >conftest.
$ac_ext <<_ACEOF
2227 cat confdefs.h
>>conftest.
$ac_ext
2228 cat >>conftest.
$ac_ext <<_ACEOF
2229 /* end confdefs.h. */
2240 rm -f conftest.
$ac_objext
2241 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2242 (eval $ac_compile) 2>conftest.er1
2244 grep -v '^ *+' conftest.er1
>conftest.err
2246 cat conftest.err
>&5
2247 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2248 (exit $ac_status); } &&
2249 { ac_try
='test -z "$ac_c_werror_flag"
2250 || test ! -s conftest.err'
2251 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2254 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2255 (exit $ac_status); }; } &&
2256 { ac_try
='test -s conftest.$ac_objext'
2257 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2260 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2261 (exit $ac_status); }; }; then
2264 echo "$as_me: failed program was:" >&5
2265 sed 's/^/| /' conftest.
$ac_ext >&5
2269 rm -f conftest.err conftest.
$ac_objext conftest.
$ac_ext
2270 cat >conftest.
$ac_ext <<_ACEOF
2273 cat confdefs.h
>>conftest.
$ac_ext
2274 cat >>conftest.
$ac_ext <<_ACEOF
2275 /* end confdefs.h. */
2285 rm -f conftest.
$ac_objext
2286 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2287 (eval $ac_compile) 2>conftest.er1
2289 grep -v '^ *+' conftest.er1
>conftest.err
2291 cat conftest.err
>&5
2292 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2293 (exit $ac_status); } &&
2294 { ac_try
='test -z "$ac_c_werror_flag"
2295 || test ! -s conftest.err'
2296 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2299 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2300 (exit $ac_status); }; } &&
2301 { ac_try
='test -s conftest.$ac_objext'
2302 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2305 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2306 (exit $ac_status); }; }; then
2309 echo "$as_me: failed program was:" >&5
2310 sed 's/^/| /' conftest.
$ac_ext >&5
2313 rm -f conftest.err conftest.
$ac_objext conftest.
$ac_ext
2316 if test -n "$ac_declaration"; then
2317 echo '#ifdef __cplusplus' >>confdefs.h
2318 echo $ac_declaration >>confdefs.h
2319 echo '#endif' >>confdefs.h
2323 echo "$as_me: failed program was:" >&5
2324 sed 's/^/| /' conftest.
$ac_ext >&5
2327 rm -f conftest.err conftest.
$ac_objext conftest.
$ac_ext
2329 ac_cpp
='$CPP $CPPFLAGS'
2330 ac_compile
='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2331 ac_link
='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2332 ac_compiler_gnu
=$ac_cv_c_compiler_gnu
2335 cat >>confdefs.h
<<\_ACEOF
2336 #define _GNU_SOURCE 1
2342 ac_cpp
='$CPP $CPPFLAGS'
2343 ac_compile
='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2344 ac_link
='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2345 ac_compiler_gnu
=$ac_cv_c_compiler_gnu
2346 echo "$as_me:$LINENO: checking how to run the C preprocessor" >&5
2347 echo $ECHO_N "checking how to run the C preprocessor... $ECHO_C" >&6
2348 # On Suns, sometimes $CPP names a directory.
2349 if test -n "$CPP" && test -d "$CPP"; then
2352 if test -z "$CPP"; then
2353 if test "${ac_cv_prog_CPP+set}" = set; then
2354 echo $ECHO_N "(cached) $ECHO_C" >&6
2356 # Double quotes because CPP needs to be expanded
2357 for CPP
in "$CC -E" "$CC -E -traditional-cpp" "/lib/cpp"
2360 for ac_c_preproc_warn_flag
in '' yes
2362 # Use a header file that comes with gcc, so configuring glibc
2363 # with a fresh cross-compiler works.
2364 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
2365 # <limits.h> exists even on freestanding compilers.
2366 # On the NeXT, cc -E runs the code through the compiler's parser,
2367 # not just through cpp. "Syntax error" is here to catch this case.
2368 cat >conftest.
$ac_ext <<_ACEOF
2371 cat confdefs.h
>>conftest.
$ac_ext
2372 cat >>conftest.
$ac_ext <<_ACEOF
2373 /* end confdefs.h. */
2375 # include <limits.h>
2377 # include <assert.h>
2381 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
2382 (eval $ac_cpp conftest.
$ac_ext) 2>conftest.er1
2384 grep -v '^ *+' conftest.er1
>conftest.err
2386 cat conftest.err
>&5
2387 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2388 (exit $ac_status); } >/dev
/null
; then
2389 if test -s conftest.err
; then
2390 ac_cpp_err
=$ac_c_preproc_warn_flag
2391 ac_cpp_err
=$ac_cpp_err$ac_c_werror_flag
2398 if test -z "$ac_cpp_err"; then
2401 echo "$as_me: failed program was:" >&5
2402 sed 's/^/| /' conftest.
$ac_ext >&5
2404 # Broken: fails on valid input.
2407 rm -f conftest.err conftest.
$ac_ext
2409 # OK, works on sane cases. Now check whether non-existent headers
2410 # can be detected and how.
2411 cat >conftest.
$ac_ext <<_ACEOF
2414 cat confdefs.h
>>conftest.
$ac_ext
2415 cat >>conftest.
$ac_ext <<_ACEOF
2416 /* end confdefs.h. */
2417 #include <ac_nonexistent.h>
2419 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
2420 (eval $ac_cpp conftest.
$ac_ext) 2>conftest.er1
2422 grep -v '^ *+' conftest.er1
>conftest.err
2424 cat conftest.err
>&5
2425 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2426 (exit $ac_status); } >/dev
/null
; then
2427 if test -s conftest.err
; then
2428 ac_cpp_err
=$ac_c_preproc_warn_flag
2429 ac_cpp_err
=$ac_cpp_err$ac_c_werror_flag
2436 if test -z "$ac_cpp_err"; then
2437 # Broken: success on invalid input.
2440 echo "$as_me: failed program was:" >&5
2441 sed 's/^/| /' conftest.
$ac_ext >&5
2443 # Passes both tests.
2447 rm -f conftest.err conftest.
$ac_ext
2450 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
2451 rm -f conftest.err conftest.
$ac_ext
2452 if $ac_preproc_ok; then
2464 echo "$as_me:$LINENO: result: $CPP" >&5
2465 echo "${ECHO_T}$CPP" >&6
2467 for ac_c_preproc_warn_flag
in '' yes
2469 # Use a header file that comes with gcc, so configuring glibc
2470 # with a fresh cross-compiler works.
2471 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
2472 # <limits.h> exists even on freestanding compilers.
2473 # On the NeXT, cc -E runs the code through the compiler's parser,
2474 # not just through cpp. "Syntax error" is here to catch this case.
2475 cat >conftest.
$ac_ext <<_ACEOF
2478 cat confdefs.h
>>conftest.
$ac_ext
2479 cat >>conftest.
$ac_ext <<_ACEOF
2480 /* end confdefs.h. */
2482 # include <limits.h>
2484 # include <assert.h>
2488 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
2489 (eval $ac_cpp conftest.
$ac_ext) 2>conftest.er1
2491 grep -v '^ *+' conftest.er1
>conftest.err
2493 cat conftest.err
>&5
2494 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2495 (exit $ac_status); } >/dev
/null
; then
2496 if test -s conftest.err
; then
2497 ac_cpp_err
=$ac_c_preproc_warn_flag
2498 ac_cpp_err
=$ac_cpp_err$ac_c_werror_flag
2505 if test -z "$ac_cpp_err"; then
2508 echo "$as_me: failed program was:" >&5
2509 sed 's/^/| /' conftest.
$ac_ext >&5
2511 # Broken: fails on valid input.
2514 rm -f conftest.err conftest.
$ac_ext
2516 # OK, works on sane cases. Now check whether non-existent headers
2517 # can be detected and how.
2518 cat >conftest.
$ac_ext <<_ACEOF
2521 cat confdefs.h
>>conftest.
$ac_ext
2522 cat >>conftest.
$ac_ext <<_ACEOF
2523 /* end confdefs.h. */
2524 #include <ac_nonexistent.h>
2526 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
2527 (eval $ac_cpp conftest.
$ac_ext) 2>conftest.er1
2529 grep -v '^ *+' conftest.er1
>conftest.err
2531 cat conftest.err
>&5
2532 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2533 (exit $ac_status); } >/dev
/null
; then
2534 if test -s conftest.err
; then
2535 ac_cpp_err
=$ac_c_preproc_warn_flag
2536 ac_cpp_err
=$ac_cpp_err$ac_c_werror_flag
2543 if test -z "$ac_cpp_err"; then
2544 # Broken: success on invalid input.
2547 echo "$as_me: failed program was:" >&5
2548 sed 's/^/| /' conftest.
$ac_ext >&5
2550 # Passes both tests.
2554 rm -f conftest.err conftest.
$ac_ext
2557 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
2558 rm -f conftest.err conftest.
$ac_ext
2559 if $ac_preproc_ok; then
2562 { { echo "$as_me:$LINENO: error: in \`$ac_pwd':" >&5
2563 echo "$as_me: error: in \`$ac_pwd':" >&2;}
2564 { { echo "$as_me:$LINENO: error: C preprocessor \"$CPP\" fails sanity check
2565 See \`config.log' for more details." >&5
2566 echo "$as_me: error: C preprocessor \"$CPP\" fails sanity check
2567 See \`config.log' for more details." >&2;}
2568 { (exit 1); exit 1; }; }; }
2572 ac_cpp
='$CPP $CPPFLAGS'
2573 ac_compile
='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2574 ac_link
='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2575 ac_compiler_gnu
=$ac_cv_c_compiler_gnu
2578 echo "$as_me:$LINENO: checking for egrep" >&5
2579 echo $ECHO_N "checking for egrep... $ECHO_C" >&6
2580 if test "${ac_cv_prog_egrep+set}" = set; then
2581 echo $ECHO_N "(cached) $ECHO_C" >&6
2583 if echo a |
(grep -E '(a|b)') >/dev
/null
2>&1
2584 then ac_cv_prog_egrep
='grep -E'
2585 else ac_cv_prog_egrep
='egrep'
2588 echo "$as_me:$LINENO: result: $ac_cv_prog_egrep" >&5
2589 echo "${ECHO_T}$ac_cv_prog_egrep" >&6
2590 EGREP
=$ac_cv_prog_egrep
2594 echo "$as_me:$LINENO: checking for AIX" >&5
2595 echo $ECHO_N "checking for AIX... $ECHO_C" >&6
2596 cat >conftest.
$ac_ext <<_ACEOF
2599 cat confdefs.h
>>conftest.
$ac_ext
2600 cat >>conftest.
$ac_ext <<_ACEOF
2601 /* end confdefs.h. */
2607 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
2608 $EGREP "yes" >/dev
/null
2>&1; then
2609 echo "$as_me:$LINENO: result: yes" >&5
2610 echo "${ECHO_T}yes" >&6
2611 cat >>confdefs.h
<<\_ACEOF
2612 #define _ALL_SOURCE 1
2616 echo "$as_me:$LINENO: result: no" >&5
2617 echo "${ECHO_T}no" >&6
2622 echo "$as_me:$LINENO: checking for library containing strerror" >&5
2623 echo $ECHO_N "checking for library containing strerror... $ECHO_C" >&6
2624 if test "${ac_cv_search_strerror+set}" = set; then
2625 echo $ECHO_N "(cached) $ECHO_C" >&6
2627 ac_func_search_save_LIBS
=$LIBS
2628 ac_cv_search_strerror
=no
2629 cat >conftest.
$ac_ext <<_ACEOF
2632 cat confdefs.h
>>conftest.
$ac_ext
2633 cat >>conftest.
$ac_ext <<_ACEOF
2634 /* end confdefs.h. */
2636 /* Override any gcc2 internal prototype to avoid an error. */
2640 /* We use char because int might match the return type of a gcc2
2641 builtin and then its argument prototype would still apply. */
2651 rm -f conftest.
$ac_objext conftest
$ac_exeext
2652 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
2653 (eval $ac_link) 2>conftest.er1
2655 grep -v '^ *+' conftest.er1
>conftest.err
2657 cat conftest.err
>&5
2658 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2659 (exit $ac_status); } &&
2660 { ac_try
='test -z "$ac_c_werror_flag"
2661 || test ! -s conftest.err'
2662 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2665 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2666 (exit $ac_status); }; } &&
2667 { ac_try
='test -s conftest$ac_exeext'
2668 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2671 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2672 (exit $ac_status); }; }; then
2673 ac_cv_search_strerror
="none required"
2675 echo "$as_me: failed program was:" >&5
2676 sed 's/^/| /' conftest.
$ac_ext >&5
2679 rm -f conftest.err conftest.
$ac_objext \
2680 conftest
$ac_exeext conftest.
$ac_ext
2681 if test "$ac_cv_search_strerror" = no
; then
2682 for ac_lib
in cposix
; do
2683 LIBS
="-l$ac_lib $ac_func_search_save_LIBS"
2684 cat >conftest.
$ac_ext <<_ACEOF
2687 cat confdefs.h
>>conftest.
$ac_ext
2688 cat >>conftest.
$ac_ext <<_ACEOF
2689 /* end confdefs.h. */
2691 /* Override any gcc2 internal prototype to avoid an error. */
2695 /* We use char because int might match the return type of a gcc2
2696 builtin and then its argument prototype would still apply. */
2706 rm -f conftest.
$ac_objext conftest
$ac_exeext
2707 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
2708 (eval $ac_link) 2>conftest.er1
2710 grep -v '^ *+' conftest.er1
>conftest.err
2712 cat conftest.err
>&5
2713 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2714 (exit $ac_status); } &&
2715 { ac_try
='test -z "$ac_c_werror_flag"
2716 || test ! -s conftest.err'
2717 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2720 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2721 (exit $ac_status); }; } &&
2722 { ac_try
='test -s conftest$ac_exeext'
2723 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2726 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2727 (exit $ac_status); }; }; then
2728 ac_cv_search_strerror
="-l$ac_lib"
2731 echo "$as_me: failed program was:" >&5
2732 sed 's/^/| /' conftest.
$ac_ext >&5
2735 rm -f conftest.err conftest.
$ac_objext \
2736 conftest
$ac_exeext conftest.
$ac_ext
2739 LIBS
=$ac_func_search_save_LIBS
2741 echo "$as_me:$LINENO: result: $ac_cv_search_strerror" >&5
2742 echo "${ECHO_T}$ac_cv_search_strerror" >&6
2743 if test "$ac_cv_search_strerror" != no
; then
2744 test "$ac_cv_search_strerror" = "none required" || LIBS
="$ac_cv_search_strerror $LIBS"
2748 if test -n "$ac_tool_prefix"; then
2749 # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args.
2750 set dummy
${ac_tool_prefix}ranlib
; ac_word
=$2
2751 echo "$as_me:$LINENO: checking for $ac_word" >&5
2752 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
2753 if test "${ac_cv_prog_RANLIB+set}" = set; then
2754 echo $ECHO_N "(cached) $ECHO_C" >&6
2756 if test -n "$RANLIB"; then
2757 ac_cv_prog_RANLIB
="$RANLIB" # Let the user override the test.
2759 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
2763 test -z "$as_dir" && as_dir
=.
2764 for ac_exec_ext
in '' $ac_executable_extensions; do
2765 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2766 ac_cv_prog_RANLIB
="${ac_tool_prefix}ranlib"
2767 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2775 RANLIB
=$ac_cv_prog_RANLIB
2776 if test -n "$RANLIB"; then
2777 echo "$as_me:$LINENO: result: $RANLIB" >&5
2778 echo "${ECHO_T}$RANLIB" >&6
2780 echo "$as_me:$LINENO: result: no" >&5
2781 echo "${ECHO_T}no" >&6
2785 if test -z "$ac_cv_prog_RANLIB"; then
2786 ac_ct_RANLIB
=$RANLIB
2787 # Extract the first word of "ranlib", so it can be a program name with args.
2788 set dummy ranlib
; ac_word
=$2
2789 echo "$as_me:$LINENO: checking for $ac_word" >&5
2790 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
2791 if test "${ac_cv_prog_ac_ct_RANLIB+set}" = set; then
2792 echo $ECHO_N "(cached) $ECHO_C" >&6
2794 if test -n "$ac_ct_RANLIB"; then
2795 ac_cv_prog_ac_ct_RANLIB
="$ac_ct_RANLIB" # Let the user override the test.
2797 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
2801 test -z "$as_dir" && as_dir
=.
2802 for ac_exec_ext
in '' $ac_executable_extensions; do
2803 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2804 ac_cv_prog_ac_ct_RANLIB
="ranlib"
2805 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2811 test -z "$ac_cv_prog_ac_ct_RANLIB" && ac_cv_prog_ac_ct_RANLIB
=":"
2814 ac_ct_RANLIB
=$ac_cv_prog_ac_ct_RANLIB
2815 if test -n "$ac_ct_RANLIB"; then
2816 echo "$as_me:$LINENO: result: $ac_ct_RANLIB" >&5
2817 echo "${ECHO_T}$ac_ct_RANLIB" >&6
2819 echo "$as_me:$LINENO: result: no" >&5
2820 echo "${ECHO_T}no" >&6
2823 RANLIB
=$ac_ct_RANLIB
2825 RANLIB
="$ac_cv_prog_RANLIB"
2828 echo "$as_me:$LINENO: checking for ANSI C header files" >&5
2829 echo $ECHO_N "checking for ANSI C header files... $ECHO_C" >&6
2830 if test "${ac_cv_header_stdc+set}" = set; then
2831 echo $ECHO_N "(cached) $ECHO_C" >&6
2833 cat >conftest.
$ac_ext <<_ACEOF
2836 cat confdefs.h
>>conftest.
$ac_ext
2837 cat >>conftest.
$ac_ext <<_ACEOF
2838 /* end confdefs.h. */
2852 rm -f conftest.
$ac_objext
2853 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2854 (eval $ac_compile) 2>conftest.er1
2856 grep -v '^ *+' conftest.er1
>conftest.err
2858 cat conftest.err
>&5
2859 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2860 (exit $ac_status); } &&
2861 { ac_try
='test -z "$ac_c_werror_flag"
2862 || test ! -s conftest.err'
2863 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2866 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2867 (exit $ac_status); }; } &&
2868 { ac_try
='test -s conftest.$ac_objext'
2869 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2872 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2873 (exit $ac_status); }; }; then
2874 ac_cv_header_stdc
=yes
2876 echo "$as_me: failed program was:" >&5
2877 sed 's/^/| /' conftest.
$ac_ext >&5
2879 ac_cv_header_stdc
=no
2881 rm -f conftest.err conftest.
$ac_objext conftest.
$ac_ext
2883 if test $ac_cv_header_stdc = yes; then
2884 # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
2885 cat >conftest.
$ac_ext <<_ACEOF
2888 cat confdefs.h
>>conftest.
$ac_ext
2889 cat >>conftest.
$ac_ext <<_ACEOF
2890 /* end confdefs.h. */
2894 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
2895 $EGREP "memchr" >/dev
/null
2>&1; then
2898 ac_cv_header_stdc
=no
2904 if test $ac_cv_header_stdc = yes; then
2905 # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
2906 cat >conftest.
$ac_ext <<_ACEOF
2909 cat confdefs.h
>>conftest.
$ac_ext
2910 cat >>conftest.
$ac_ext <<_ACEOF
2911 /* end confdefs.h. */
2915 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
2916 $EGREP "free" >/dev
/null
2>&1; then
2919 ac_cv_header_stdc
=no
2925 if test $ac_cv_header_stdc = yes; then
2926 # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
2927 if test "$cross_compiling" = yes; then
2930 cat >conftest.
$ac_ext <<_ACEOF
2933 cat confdefs.h
>>conftest.
$ac_ext
2934 cat >>conftest.
$ac_ext <<_ACEOF
2935 /* end confdefs.h. */
2937 #if ((' ' & 0x0FF) == 0x020)
2938 # define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
2939 # define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
2941 # define ISLOWER(c) \
2942 (('a' <= (c) && (c) <= 'i') \
2943 || ('j' <= (c) && (c) <= 'r') \
2944 || ('s' <= (c) && (c) <= 'z'))
2945 # define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
2948 #define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
2953 for (i = 0; i < 256; i++)
2954 if (XOR (islower (i), ISLOWER (i))
2955 || toupper (i) != TOUPPER (i))
2960 rm -f conftest
$ac_exeext
2961 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
2962 (eval $ac_link) 2>&5
2964 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2965 (exit $ac_status); } && { ac_try
='./conftest$ac_exeext'
2966 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2969 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2970 (exit $ac_status); }; }; then
2973 echo "$as_me: program exited with status $ac_status" >&5
2974 echo "$as_me: failed program was:" >&5
2975 sed 's/^/| /' conftest.
$ac_ext >&5
2978 ac_cv_header_stdc
=no
2980 rm -f core
*.core gmon.out bb.out conftest
$ac_exeext conftest.
$ac_objext conftest.
$ac_ext
2984 echo "$as_me:$LINENO: result: $ac_cv_header_stdc" >&5
2985 echo "${ECHO_T}$ac_cv_header_stdc" >&6
2986 if test $ac_cv_header_stdc = yes; then
2988 cat >>confdefs.h
<<\_ACEOF
2989 #define STDC_HEADERS 1
2994 # On IRIX 5.3, sys/types and inttypes.h are conflicting.
3004 for ac_header
in sys
/types.h sys
/stat.h stdlib.h string.h memory.h
strings.h \
3005 inttypes.h stdint.h unistd.h
3007 as_ac_Header
=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
3008 echo "$as_me:$LINENO: checking for $ac_header" >&5
3009 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
3010 if eval "test \"\${$as_ac_Header+set}\" = set"; then
3011 echo $ECHO_N "(cached) $ECHO_C" >&6
3013 cat >conftest.
$ac_ext <<_ACEOF
3016 cat confdefs.h
>>conftest.
$ac_ext
3017 cat >>conftest.
$ac_ext <<_ACEOF
3018 /* end confdefs.h. */
3019 $ac_includes_default
3021 #include <$ac_header>
3023 rm -f conftest.
$ac_objext
3024 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
3025 (eval $ac_compile) 2>conftest.er1
3027 grep -v '^ *+' conftest.er1
>conftest.err
3029 cat conftest.err
>&5
3030 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3031 (exit $ac_status); } &&
3032 { ac_try
='test -z "$ac_c_werror_flag"
3033 || test ! -s conftest.err'
3034 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3037 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3038 (exit $ac_status); }; } &&
3039 { ac_try
='test -s conftest.$ac_objext'
3040 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3043 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3044 (exit $ac_status); }; }; then
3045 eval "$as_ac_Header=yes"
3047 echo "$as_me: failed program was:" >&5
3048 sed 's/^/| /' conftest.
$ac_ext >&5
3050 eval "$as_ac_Header=no"
3052 rm -f conftest.err conftest.
$ac_objext conftest.
$ac_ext
3054 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
3055 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
3056 if test `eval echo '${'$as_ac_Header'}'` = yes; then
3057 cat >>confdefs.h
<<_ACEOF
3058 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
3067 if test "${ac_cv_header_minix_config_h+set}" = set; then
3068 echo "$as_me:$LINENO: checking for minix/config.h" >&5
3069 echo $ECHO_N "checking for minix/config.h... $ECHO_C" >&6
3070 if test "${ac_cv_header_minix_config_h+set}" = set; then
3071 echo $ECHO_N "(cached) $ECHO_C" >&6
3073 echo "$as_me:$LINENO: result: $ac_cv_header_minix_config_h" >&5
3074 echo "${ECHO_T}$ac_cv_header_minix_config_h" >&6
3076 # Is the header compilable?
3077 echo "$as_me:$LINENO: checking minix/config.h usability" >&5
3078 echo $ECHO_N "checking minix/config.h usability... $ECHO_C" >&6
3079 cat >conftest.
$ac_ext <<_ACEOF
3082 cat confdefs.h
>>conftest.
$ac_ext
3083 cat >>conftest.
$ac_ext <<_ACEOF
3084 /* end confdefs.h. */
3085 $ac_includes_default
3086 #include <minix/config.h>
3088 rm -f conftest.
$ac_objext
3089 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
3090 (eval $ac_compile) 2>conftest.er1
3092 grep -v '^ *+' conftest.er1
>conftest.err
3094 cat conftest.err
>&5
3095 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3096 (exit $ac_status); } &&
3097 { ac_try
='test -z "$ac_c_werror_flag"
3098 || test ! -s conftest.err'
3099 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3102 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3103 (exit $ac_status); }; } &&
3104 { ac_try
='test -s conftest.$ac_objext'
3105 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3108 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3109 (exit $ac_status); }; }; then
3110 ac_header_compiler
=yes
3112 echo "$as_me: failed program was:" >&5
3113 sed 's/^/| /' conftest.
$ac_ext >&5
3115 ac_header_compiler
=no
3117 rm -f conftest.err conftest.
$ac_objext conftest.
$ac_ext
3118 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
3119 echo "${ECHO_T}$ac_header_compiler" >&6
3121 # Is the header present?
3122 echo "$as_me:$LINENO: checking minix/config.h presence" >&5
3123 echo $ECHO_N "checking minix/config.h presence... $ECHO_C" >&6
3124 cat >conftest.
$ac_ext <<_ACEOF
3127 cat confdefs.h
>>conftest.
$ac_ext
3128 cat >>conftest.
$ac_ext <<_ACEOF
3129 /* end confdefs.h. */
3130 #include <minix/config.h>
3132 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
3133 (eval $ac_cpp conftest.
$ac_ext) 2>conftest.er1
3135 grep -v '^ *+' conftest.er1
>conftest.err
3137 cat conftest.err
>&5
3138 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3139 (exit $ac_status); } >/dev
/null
; then
3140 if test -s conftest.err
; then
3141 ac_cpp_err
=$ac_c_preproc_warn_flag
3142 ac_cpp_err
=$ac_cpp_err$ac_c_werror_flag
3149 if test -z "$ac_cpp_err"; then
3150 ac_header_preproc
=yes
3152 echo "$as_me: failed program was:" >&5
3153 sed 's/^/| /' conftest.
$ac_ext >&5
3155 ac_header_preproc
=no
3157 rm -f conftest.err conftest.
$ac_ext
3158 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
3159 echo "${ECHO_T}$ac_header_preproc" >&6
3161 # So? What about this header?
3162 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
3164 { echo "$as_me:$LINENO: WARNING: minix/config.h: accepted by the compiler, rejected by the preprocessor!" >&5
3165 echo "$as_me: WARNING: minix/config.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
3166 { echo "$as_me:$LINENO: WARNING: minix/config.h: proceeding with the compiler's result" >&5
3167 echo "$as_me: WARNING: minix/config.h: proceeding with the compiler's result" >&2;}
3168 ac_header_preproc
=yes
3171 { echo "$as_me:$LINENO: WARNING: minix/config.h: present but cannot be compiled" >&5
3172 echo "$as_me: WARNING: minix/config.h: present but cannot be compiled" >&2;}
3173 { echo "$as_me:$LINENO: WARNING: minix/config.h: check for missing prerequisite headers?" >&5
3174 echo "$as_me: WARNING: minix/config.h: check for missing prerequisite headers?" >&2;}
3175 { echo "$as_me:$LINENO: WARNING: minix/config.h: see the Autoconf documentation" >&5
3176 echo "$as_me: WARNING: minix/config.h: see the Autoconf documentation" >&2;}
3177 { echo "$as_me:$LINENO: WARNING: minix/config.h: section \"Present But Cannot Be Compiled\"" >&5
3178 echo "$as_me: WARNING: minix/config.h: section \"Present But Cannot Be Compiled\"" >&2;}
3179 { echo "$as_me:$LINENO: WARNING: minix/config.h: proceeding with the preprocessor's result" >&5
3180 echo "$as_me: WARNING: minix/config.h: proceeding with the preprocessor's result" >&2;}
3181 { echo "$as_me:$LINENO: WARNING: minix/config.h: in the future, the compiler will take precedence" >&5
3182 echo "$as_me: WARNING: minix/config.h: in the future, the compiler will take precedence" >&2;}
3185 ## ------------------------------------------ ##
3186 ## Report this to the AC_PACKAGE_NAME lists. ##
3187 ## ------------------------------------------ ##
3190 sed "s/^/$as_me: WARNING: /" >&2
3193 echo "$as_me:$LINENO: checking for minix/config.h" >&5
3194 echo $ECHO_N "checking for minix/config.h... $ECHO_C" >&6
3195 if test "${ac_cv_header_minix_config_h+set}" = set; then
3196 echo $ECHO_N "(cached) $ECHO_C" >&6
3198 ac_cv_header_minix_config_h
=$ac_header_preproc
3200 echo "$as_me:$LINENO: result: $ac_cv_header_minix_config_h" >&5
3201 echo "${ECHO_T}$ac_cv_header_minix_config_h" >&6
3204 if test $ac_cv_header_minix_config_h = yes; then
3211 if test "$MINIX" = yes; then
3213 cat >>confdefs.h
<<\_ACEOF
3214 #define _POSIX_SOURCE 1
3218 cat >>confdefs.h
<<\_ACEOF
3219 #define _POSIX_1_SOURCE 2
3223 cat >>confdefs.h
<<\_ACEOF
3231 echo "$as_me:$LINENO: checking whether it is safe to define __EXTENSIONS__" >&5
3232 echo $ECHO_N "checking whether it is safe to define __EXTENSIONS__... $ECHO_C" >&6
3233 if test "${ac_cv_safe_to_define___extensions__+set}" = set; then
3234 echo $ECHO_N "(cached) $ECHO_C" >&6
3236 cat >conftest.
$ac_ext <<_ACEOF
3239 cat confdefs.h
>>conftest.
$ac_ext
3240 cat >>conftest.
$ac_ext <<_ACEOF
3241 /* end confdefs.h. */
3243 # define __EXTENSIONS__ 1
3244 $ac_includes_default
3253 rm -f conftest.
$ac_objext
3254 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
3255 (eval $ac_compile) 2>conftest.er1
3257 grep -v '^ *+' conftest.er1
>conftest.err
3259 cat conftest.err
>&5
3260 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3261 (exit $ac_status); } &&
3262 { ac_try
='test -z "$ac_c_werror_flag"
3263 || test ! -s conftest.err'
3264 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3267 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3268 (exit $ac_status); }; } &&
3269 { ac_try
='test -s conftest.$ac_objext'
3270 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3273 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3274 (exit $ac_status); }; }; then
3275 ac_cv_safe_to_define___extensions__
=yes
3277 echo "$as_me: failed program was:" >&5
3278 sed 's/^/| /' conftest.
$ac_ext >&5
3280 ac_cv_safe_to_define___extensions__
=no
3282 rm -f conftest.err conftest.
$ac_objext conftest.
$ac_ext
3284 echo "$as_me:$LINENO: result: $ac_cv_safe_to_define___extensions__" >&5
3285 echo "${ECHO_T}$ac_cv_safe_to_define___extensions__" >&6
3286 test $ac_cv_safe_to_define___extensions__ = yes &&
3287 cat >>confdefs.h
<<\_ACEOF
3288 #define __EXTENSIONS__ 1
3291 cat >>confdefs.h
<<\_ACEOF
3292 #define _ALL_SOURCE 1
3295 cat >>confdefs.h
<<\_ACEOF
3296 #define _GNU_SOURCE 1
3299 cat >>confdefs.h
<<\_ACEOF
3300 #define _POSIX_PTHREAD_SEMANTICS 1
3303 cat >>confdefs.h
<<\_ACEOF
3304 #define _TANDEM_SOURCE 1
3316 echo "$as_me:$LINENO: checking for ${CC-cc} option to accept ANSI C" >&5
3317 echo $ECHO_N "checking for ${CC-cc} option to accept ANSI C... $ECHO_C" >&6
3318 if test "${am_cv_prog_cc_stdc+set}" = set; then
3319 echo $ECHO_N "(cached) $ECHO_C" >&6
3321 am_cv_prog_cc_stdc
=no
3323 # Don't try gcc -ansi; that turns off useful extensions and
3324 # breaks some systems' header files.
3325 # AIX -qlanglvl=ansi
3326 # Ultrix and OSF/1 -std1
3327 # HP-UX 10.20 and later -Ae
3328 # HP-UX older versions -Aa -D_HPUX_SOURCE
3329 # SVR4 -Xc -D__EXTENSIONS__
3330 for ac_arg
in "" -qlanglvl=ansi
-std1 -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
3332 CC
="$ac_save_CC $ac_arg"
3333 cat >conftest.
$ac_ext <<_ACEOF
3336 cat confdefs.h
>>conftest.
$ac_ext
3337 cat >>conftest.
$ac_ext <<_ACEOF
3338 /* end confdefs.h. */
3341 #include <sys/types.h>
3342 #include <sys/stat.h>
3343 /* Most of the following tests are stolen from RCS 5.7's src/conf.sh. */
3344 struct buf { int x; };
3345 FILE * (*rcsopen) (struct buf *, struct stat *, int);
3346 static char *e (p, i)
3352 static char *f (char * (*g) (char **, int), char **p, ...)
3357 s = g (p, va_arg (v,int));
3361 int test (int i, double x);
3362 struct s1 {int (*f) (int a);};
3363 struct s2 {int (*f) (double a);};
3364 int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
3372 return f (e, argv, 0) != argv[0] || f (e, argv, 1) != argv[1];
3378 rm -f conftest.
$ac_objext
3379 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
3380 (eval $ac_compile) 2>conftest.er1
3382 grep -v '^ *+' conftest.er1
>conftest.err
3384 cat conftest.err
>&5
3385 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3386 (exit $ac_status); } &&
3387 { ac_try
='test -z "$ac_c_werror_flag"
3388 || test ! -s conftest.err'
3389 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3392 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3393 (exit $ac_status); }; } &&
3394 { ac_try
='test -s conftest.$ac_objext'
3395 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3398 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3399 (exit $ac_status); }; }; then
3400 am_cv_prog_cc_stdc
="$ac_arg"; break
3402 echo "$as_me: failed program was:" >&5
3403 sed 's/^/| /' conftest.
$ac_ext >&5
3406 rm -f conftest.err conftest.
$ac_objext conftest.
$ac_ext
3412 if test -z "$am_cv_prog_cc_stdc"; then
3413 echo "$as_me:$LINENO: result: none needed" >&5
3414 echo "${ECHO_T}none needed" >&6
3416 echo "$as_me:$LINENO: result: $am_cv_prog_cc_stdc" >&5
3417 echo "${ECHO_T}$am_cv_prog_cc_stdc" >&6
3419 case "x$am_cv_prog_cc_stdc" in
3421 *) CC
="$CC $am_cv_prog_cc_stdc" ;;
3426 for ac_dir
in ..
$srcdir/..
; do
3427 if test -f $ac_dir/install-sh
; then
3429 ac_install_sh
="$ac_aux_dir/install-sh -c"
3431 elif test -f $ac_dir/install.sh
; then
3433 ac_install_sh
="$ac_aux_dir/install.sh -c"
3435 elif test -f $ac_dir/shtool
; then
3437 ac_install_sh
="$ac_aux_dir/shtool install -c"
3441 if test -z "$ac_aux_dir"; then
3442 { { echo "$as_me:$LINENO: error: cannot find install-sh or install.sh in .. $srcdir/.." >&5
3443 echo "$as_me: error: cannot find install-sh or install.sh in .. $srcdir/.." >&2;}
3444 { (exit 1); exit 1; }; }
3446 ac_config_guess
="$SHELL $ac_aux_dir/config.guess"
3447 ac_config_sub
="$SHELL $ac_aux_dir/config.sub"
3448 ac_configure
="$SHELL $ac_aux_dir/configure" # This should be Cygnus configure.
3450 # Make sure we can run config.sub.
3451 $ac_config_sub sun4
>/dev
/null
2>&1 ||
3452 { { echo "$as_me:$LINENO: error: cannot run $ac_config_sub" >&5
3453 echo "$as_me: error: cannot run $ac_config_sub" >&2;}
3454 { (exit 1); exit 1; }; }
3456 echo "$as_me:$LINENO: checking build system type" >&5
3457 echo $ECHO_N "checking build system type... $ECHO_C" >&6
3458 if test "${ac_cv_build+set}" = set; then
3459 echo $ECHO_N "(cached) $ECHO_C" >&6
3461 ac_cv_build_alias
=$build_alias
3462 test -z "$ac_cv_build_alias" &&
3463 ac_cv_build_alias
=`$ac_config_guess`
3464 test -z "$ac_cv_build_alias" &&
3465 { { echo "$as_me:$LINENO: error: cannot guess build type; you must specify one" >&5
3466 echo "$as_me: error: cannot guess build type; you must specify one" >&2;}
3467 { (exit 1); exit 1; }; }
3468 ac_cv_build
=`$ac_config_sub $ac_cv_build_alias` ||
3469 { { echo "$as_me:$LINENO: error: $ac_config_sub $ac_cv_build_alias failed" >&5
3470 echo "$as_me: error: $ac_config_sub $ac_cv_build_alias failed" >&2;}
3471 { (exit 1); exit 1; }; }
3474 echo "$as_me:$LINENO: result: $ac_cv_build" >&5
3475 echo "${ECHO_T}$ac_cv_build" >&6
3477 build_cpu
=`echo $ac_cv_build | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\1/'`
3478 build_vendor
=`echo $ac_cv_build | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\2/'`
3479 build_os
=`echo $ac_cv_build | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\3/'`
3482 echo "$as_me:$LINENO: checking host system type" >&5
3483 echo $ECHO_N "checking host system type... $ECHO_C" >&6
3484 if test "${ac_cv_host+set}" = set; then
3485 echo $ECHO_N "(cached) $ECHO_C" >&6
3487 ac_cv_host_alias
=$host_alias
3488 test -z "$ac_cv_host_alias" &&
3489 ac_cv_host_alias
=$ac_cv_build_alias
3490 ac_cv_host
=`$ac_config_sub $ac_cv_host_alias` ||
3491 { { echo "$as_me:$LINENO: error: $ac_config_sub $ac_cv_host_alias failed" >&5
3492 echo "$as_me: error: $ac_config_sub $ac_cv_host_alias failed" >&2;}
3493 { (exit 1); exit 1; }; }
3496 echo "$as_me:$LINENO: result: $ac_cv_host" >&5
3497 echo "${ECHO_T}$ac_cv_host" >&6
3499 host_cpu
=`echo $ac_cv_host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\1/'`
3500 host_vendor
=`echo $ac_cv_host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\2/'`
3501 host_os
=`echo $ac_cv_host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\3/'`
3504 echo "$as_me:$LINENO: checking target system type" >&5
3505 echo $ECHO_N "checking target system type... $ECHO_C" >&6
3506 if test "${ac_cv_target+set}" = set; then
3507 echo $ECHO_N "(cached) $ECHO_C" >&6
3509 ac_cv_target_alias
=$target_alias
3510 test "x$ac_cv_target_alias" = "x" &&
3511 ac_cv_target_alias
=$ac_cv_host_alias
3512 ac_cv_target
=`$ac_config_sub $ac_cv_target_alias` ||
3513 { { echo "$as_me:$LINENO: error: $ac_config_sub $ac_cv_target_alias failed" >&5
3514 echo "$as_me: error: $ac_config_sub $ac_cv_target_alias failed" >&2;}
3515 { (exit 1); exit 1; }; }
3518 echo "$as_me:$LINENO: result: $ac_cv_target" >&5
3519 echo "${ECHO_T}$ac_cv_target" >&6
3520 target
=$ac_cv_target
3521 target_cpu
=`echo $ac_cv_target | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\1/'`
3522 target_vendor
=`echo $ac_cv_target | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\2/'`
3523 target_os
=`echo $ac_cv_target | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\3/'`
3526 # The aliases save the names the user supplied, while $host etc.
3527 # will get canonicalized.
3528 test -n "$target_alias" &&
3529 test "$program_prefix$program_suffix$program_transform_name" = \
3531 program_prefix
=${target_alias}-
3533 # Dependency checking.
3534 rm -rf .tst
2>/dev
/null
3535 mkdir .tst
2>/dev
/null
3536 if test -d .tst
; then
3541 rmdir .tst
2>/dev
/null
3543 DEPDIR
="${am__leading_dot}deps"
3545 ac_config_commands
="$ac_config_commands depdir"
3548 depcc
="$CC" am_compiler_list
=
3550 am_depcomp
=$ac_aux_dir/depcomp
3551 echo "$as_me:$LINENO: checking dependency style of $depcc" >&5
3552 echo $ECHO_N "checking dependency style of $depcc... $ECHO_C" >&6
3553 if test "${am_cv_CC_dependencies_compiler_type+set}" = set; then
3554 echo $ECHO_N "(cached) $ECHO_C" >&6
3556 if test -f "$am_depcomp"; then
3557 # We make a subdir and do the tests there. Otherwise we can end up
3558 # making bogus files that we don't know about and never remove. For
3559 # instance it was reported that on HP-UX the gcc test will end up
3560 # making a dummy file named `D' -- because `-MD' means `put the output
3563 # Copy depcomp to subdir because otherwise we won't find it if we're
3564 # using a relative directory.
3565 cp "$am_depcomp" conftest.dir
3567 # We will build objects and dependencies in a subdirectory because
3568 # it helps to detect inapplicable dependency modes. For instance
3569 # both Tru64's cc and ICC support -MD to output dependencies as a
3570 # side effect of compilation, but ICC will put the dependencies in
3571 # the current directory while Tru64 will put them in the object
3575 am_cv_CC_dependencies_compiler_type
=none
3576 if test "$am_compiler_list" = ""; then
3577 am_compiler_list
=`sed -n 's/^\([a-zA-Z0-9]*\))$/\1/p' < ./depcomp`
3579 for depmode
in $am_compiler_list; do
3580 if test $depmode = none
; then break; fi
3582 echo "$as_me:$LINENO: trying $depmode" >&5
3583 # Setup a source with many dependencies, because some compilers
3584 # like to wrap large dependency lists on column 80 (with \), and
3585 # we should not choose a depcomp mode which is confused by this.
3587 # We need to recreate these files for each test, as the compiler may
3588 # overwrite some of them when testing with obscure command lines.
3589 # This happens at least with the AIX C compiler.
3591 for i
in 1 2 3 4 5 6; do
3592 echo '#include "conftst'$i'.h"' >> sub
/conftest.c
3593 # Using `: > sub/conftst$i.h' creates only sub/conftst1.h with
3594 # Solaris 8's {/usr,}/bin/sh.
3595 touch sub
/conftst
$i.h
3597 echo "include sub/conftest.Po" > confmf
3599 # We check with `-c' and `-o' for the sake of the "dashmstdout"
3600 # mode. It turns out that the SunPro C++ compiler does not properly
3601 # handle `-M -o', and we need to detect this.
3602 depcmd
="depmode=$depmode \
3603 source=sub/conftest.c object=sub/conftest.${OBJEXT-o} \
3604 depfile=sub/conftest.Po tmpdepfile=sub/conftest.TPo \
3605 $SHELL ./depcomp $depcc -c -o sub/conftest.${OBJEXT-o} sub/conftest.c"
3606 echo "| $depcmd" |
sed -e 's/ */ /g' >&5
3607 if env
$depcmd > conftest.err
2>&1 &&
3608 grep sub
/conftst6.h sub
/conftest.Po
>>conftest.err
2>&1 &&
3609 grep sub
/conftest.
${OBJEXT-o} sub
/conftest.Po
>>conftest.err
2>&1 &&
3610 ${MAKE-make} -s -f confmf
>>conftest.err
2>&1; then
3611 # icc doesn't choke on unknown options, it will just issue warnings
3612 # or remarks (even with -Werror). So we grep stderr for any message
3613 # that says an option was ignored or not supported.
3614 # When given -MP, icc 7.0 and 7.1 complain thusly:
3615 # icc: Command line warning: ignoring option '-M'; no argument required
3616 # The diagnosis changed in icc 8.0:
3617 # icc: Command line remark: option '-MP' not supported
3618 if (grep 'ignoring option' conftest.err ||
3619 grep 'not supported' conftest.err
) >/dev
/null
2>&1; then :; else
3620 am_cv_CC_dependencies_compiler_type
=$depmode
3621 echo "$as_me:$LINENO: success" >&5
3625 echo "$as_me:$LINENO: failure, diagnostics are:" >&5
3626 sed -e 's/^/| /' < conftest.err
>&5
3632 am_cv_CC_dependencies_compiler_type
=none
3636 echo "$as_me:$LINENO: result: $am_cv_CC_dependencies_compiler_type" >&5
3637 echo "${ECHO_T}$am_cv_CC_dependencies_compiler_type" >&6
3638 if test x
${am_cv_CC_dependencies_compiler_type-none} = xnone
3639 then { { echo "$as_me:$LINENO: error: no usable dependency style found" >&5
3640 echo "$as_me: error: no usable dependency style found" >&2;}
3641 { (exit 1); exit 1; }; }
3642 else CCDEPMODE
=depmode
=$am_cv_CC_dependencies_compiler_type
3647 # Check for the 'make' the user wants to use.
3650 # Extract the first word of "$ac_prog", so it can be a program name with args.
3651 set dummy
$ac_prog; ac_word
=$2
3652 echo "$as_me:$LINENO: checking for $ac_word" >&5
3653 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
3654 if test "${ac_cv_prog_MAKE+set}" = set; then
3655 echo $ECHO_N "(cached) $ECHO_C" >&6
3657 if test -n "$MAKE"; then
3658 ac_cv_prog_MAKE
="$MAKE" # Let the user override the test.
3660 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
3664 test -z "$as_dir" && as_dir
=.
3665 for ac_exec_ext
in '' $ac_executable_extensions; do
3666 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3667 ac_cv_prog_MAKE
="$ac_prog"
3668 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
3676 MAKE
=$ac_cv_prog_MAKE
3677 if test -n "$MAKE"; then
3678 echo "$as_me:$LINENO: result: $MAKE" >&5
3679 echo "${ECHO_T}$MAKE" >&6
3681 echo "$as_me:$LINENO: result: no" >&5
3682 echo "${ECHO_T}no" >&6
3685 test -n "$MAKE" && break
3689 case "`$MAKE --version 2>&1 | sed 1q`" in
3696 if test "$MAKE_IS_GNU" = yes; then
3704 echo "$as_me:$LINENO: checking whether ${MAKE-make} sets \$(MAKE)" >&5
3705 echo $ECHO_N "checking whether ${MAKE-make} sets \$(MAKE)... $ECHO_C" >&6
3706 set dummy
${MAKE-make}; ac_make
=`echo "$2" | sed 'y,:./+-,___p_,'`
3707 if eval "test \"\${ac_cv_prog_make_${ac_make}_set+set}\" = set"; then
3708 echo $ECHO_N "(cached) $ECHO_C" >&6
3710 cat >conftest.
make <<\_ACEOF
3712 @
echo 'ac_maketemp="$(MAKE)"'
3714 # GNU make sometimes prints "make[1]: Entering...", which would confuse us.
3715 eval `${MAKE-make} -f conftest.make 2>/dev/null | grep temp=`
3716 if test -n "$ac_maketemp"; then
3717 eval ac_cv_prog_make_
${ac_make}_set
=yes
3719 eval ac_cv_prog_make_
${ac_make}_set
=no
3723 if eval "test \"`echo '$ac_cv_prog_make_'${ac_make}_set`\" = yes"; then
3724 echo "$as_me:$LINENO: result: yes" >&5
3725 echo "${ECHO_T}yes" >&6
3728 echo "$as_me:$LINENO: result: no" >&5
3729 echo "${ECHO_T}no" >&6
3730 SET_MAKE
="MAKE=${MAKE-make}"
3745 # If we haven't got the data from the intl directory,
3746 # assume NLS is disabled.
3755 if test -f ..
/intl
/config.intl
; then
3756 . ..
/intl
/config.intl
3758 echo "$as_me:$LINENO: checking whether NLS is requested" >&5
3759 echo $ECHO_N "checking whether NLS is requested... $ECHO_C" >&6
3760 if test x
"$USE_NLS" != xyes
; then
3761 echo "$as_me:$LINENO: result: no" >&5
3762 echo "${ECHO_T}no" >&6
3764 echo "$as_me:$LINENO: result: yes" >&5
3765 echo "${ECHO_T}yes" >&6
3767 cat >>confdefs.h
<<\_ACEOF
3768 #define ENABLE_NLS 1
3772 echo "$as_me:$LINENO: checking for catalogs to be installed" >&5
3773 echo $ECHO_N "checking for catalogs to be installed... $ECHO_C" >&6
3774 # Look for .po and .gmo files in the source directory.
3777 for cat in $srcdir/po
/*.gmo
$srcdir/po
/*.po
; do
3778 # If there aren't any .gmo files the shell will give us the
3779 # literal string "../path/to/srcdir/po/*.gmo" which has to be
3781 case "$cat" in *\
**)
3784 # The quadruple backslash is collapsed to a double backslash
3785 # by the backticks, then collapsed again by the double quotes,
3786 # leaving us with one backslash in the sed expression (right
3787 # before the dot that mustn't act as a wildcard).
3788 cat=`echo $cat | sed -e "s!$srcdir/po/!!" -e "s!\\\\.po!.gmo!"`
3789 lang
=`echo $cat | sed -e "s!\\\\.gmo!!"`
3790 # The user is allowed to set LINGUAS to a list of languages to
3791 # install catalogs for. If it's empty that means "all of them."
3792 if test "x$LINGUAS" = x
; then
3793 CATALOGS
="$CATALOGS $cat"
3794 XLINGUAS
="$XLINGUAS $lang"
3796 case "$LINGUAS" in *$lang*)
3797 CATALOGS
="$CATALOGS $cat"
3798 XLINGUAS
="$XLINGUAS $lang"
3804 echo "$as_me:$LINENO: result: $LINGUAS" >&5
3805 echo "${ECHO_T}$LINGUAS" >&6
3818 localedir
='${datadir}/locale'
3821 if test x
"$USE_NLS" = xyes
; then
3822 CONFIG_ALL
="$CONFIG_ALL all-po"
3823 CONFIG_CLEAN
="$CONFIG_CLEAN clean-po"
3824 CONFIG_INSTALL
="$CONFIG_INSTALL install-po"
3825 CONFIG_UNINSTALL
="$CONFIG_UNINSTALL uninstall-po"
3841 GNULIB_STRCASESTR
=0;
3848 GNULIB_MBSCASECMP
=0;
3849 GNULIB_MBSNCASECMP
=0;
3850 GNULIB_MBSPCASECMP
=0;
3851 GNULIB_MBSCASESTR
=0;
3861 HAVE_DECL_MEMRCHR
=1;
3867 HAVE_DECL_STRNDUP
=1;
3868 HAVE_DECL_STRNLEN
=1;
3872 HAVE_DECL_STRTOK_R
=1;
3873 HAVE_DECL_STRERROR
=1;
3874 HAVE_DECL_STRSIGNAL
=1;
3876 REPLACE_STRSIGNAL
=0;
3878 REPLACE_STRCASESTR
=0;
3882 echo "$as_me:$LINENO: checking whether memmem is declared" >&5
3883 echo $ECHO_N "checking whether memmem is declared... $ECHO_C" >&6
3884 if test "${ac_cv_have_decl_memmem+set}" = set; then
3885 echo $ECHO_N "(cached) $ECHO_C" >&6
3887 cat >conftest.
$ac_ext <<_ACEOF
3890 cat confdefs.h
>>conftest.
$ac_ext
3891 cat >>conftest.
$ac_ext <<_ACEOF
3892 /* end confdefs.h. */
3893 $ac_includes_default
3898 char *p = (char *) memmem;
3905 rm -f conftest.
$ac_objext
3906 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
3907 (eval $ac_compile) 2>conftest.er1
3909 grep -v '^ *+' conftest.er1
>conftest.err
3911 cat conftest.err
>&5
3912 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3913 (exit $ac_status); } &&
3914 { ac_try
='test -z "$ac_c_werror_flag"
3915 || test ! -s conftest.err'
3916 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3919 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3920 (exit $ac_status); }; } &&
3921 { ac_try
='test -s conftest.$ac_objext'
3922 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3925 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3926 (exit $ac_status); }; }; then
3927 ac_cv_have_decl_memmem
=yes
3929 echo "$as_me: failed program was:" >&5
3930 sed 's/^/| /' conftest.
$ac_ext >&5
3932 ac_cv_have_decl_memmem
=no
3934 rm -f conftest.err conftest.
$ac_objext conftest.
$ac_ext
3936 echo "$as_me:$LINENO: result: $ac_cv_have_decl_memmem" >&5
3937 echo "${ECHO_T}$ac_cv_have_decl_memmem" >&6
3938 if test $ac_cv_have_decl_memmem = yes; then
3940 cat >>confdefs.h
<<_ACEOF
3941 #define HAVE_DECL_MEMMEM 1
3946 cat >>confdefs.h
<<_ACEOF
3947 #define HAVE_DECL_MEMMEM 0
3967 for ac_func
in memmem
3969 as_ac_var
=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
3970 echo "$as_me:$LINENO: checking for $ac_func" >&5
3971 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
3972 if eval "test \"\${$as_ac_var+set}\" = set"; then
3973 echo $ECHO_N "(cached) $ECHO_C" >&6
3975 cat >conftest.
$ac_ext <<_ACEOF
3978 cat confdefs.h
>>conftest.
$ac_ext
3979 cat >>conftest.
$ac_ext <<_ACEOF
3980 /* end confdefs.h. */
3981 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
3982 For example, HP-UX 11i <limits.h> declares gettimeofday. */
3983 #define $ac_func innocuous_$ac_func
3985 /* System header to define __stub macros and hopefully few prototypes,
3986 which can conflict with char $ac_func (); below.
3987 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
3988 <limits.h> exists even on freestanding compilers. */
3991 # include <limits.h>
3993 # include <assert.h>
3998 /* Override any gcc2 internal prototype to avoid an error. */
4003 /* We use char because int might match the return type of a gcc2
4004 builtin and then its argument prototype would still apply. */
4006 /* The GNU C library defines this for functions which it implements
4007 to always fail with ENOSYS. Some functions are actually named
4008 something starting with __ and the normal name is an alias. */
4009 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
4012 char (*f) () = $ac_func;
4021 return f != $ac_func;
4026 rm -f conftest.
$ac_objext conftest
$ac_exeext
4027 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
4028 (eval $ac_link) 2>conftest.er1
4030 grep -v '^ *+' conftest.er1
>conftest.err
4032 cat conftest.err
>&5
4033 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4034 (exit $ac_status); } &&
4035 { ac_try
='test -z "$ac_c_werror_flag"
4036 || test ! -s conftest.err'
4037 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4040 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4041 (exit $ac_status); }; } &&
4042 { ac_try
='test -s conftest$ac_exeext'
4043 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4046 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4047 (exit $ac_status); }; }; then
4048 eval "$as_ac_var=yes"
4050 echo "$as_me: failed program was:" >&5
4051 sed 's/^/| /' conftest.
$ac_ext >&5
4053 eval "$as_ac_var=no"
4055 rm -f conftest.err conftest.
$ac_objext \
4056 conftest
$ac_exeext conftest.
$ac_ext
4058 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
4059 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
4060 if test `eval echo '${'$as_ac_var'}'` = yes; then
4061 cat >>confdefs.h
<<_ACEOF
4062 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
4067 gl_LIBOBJS
="$gl_LIBOBJS $ac_func.$ac_objext"
4080 if test $ac_cv_have_decl_memmem = no
; then
4086 echo "$as_me:$LINENO: checking for long long int" >&5
4087 echo $ECHO_N "checking for long long int... $ECHO_C" >&6
4088 if test "${ac_cv_type_long_long_int+set}" = set; then
4089 echo $ECHO_N "(cached) $ECHO_C" >&6
4091 cat >conftest.
$ac_ext <<_ACEOF
4095 cat confdefs.h
>>conftest.
$ac_ext
4096 cat >>conftest.
$ac_ext <<_ACEOF
4097 /* end confdefs.h. */
4098 /* For now, do not test the preprocessor; as of 2007 there are too many
4099 implementations with broken preprocessors. Perhaps this can
4100 be revisited in 2012. In the meantime, code should not expect
4101 #if to work with literals wider than 32 bits. */
4102 /* Test literals. */
4103 long long int ll = 9223372036854775807ll;
4104 long long int nll = -9223372036854775807LL;
4105 unsigned long long int ull = 18446744073709551615ULL;
4106 /* Test constant expressions. */
4107 typedef int a[((-9223372036854775807LL < 0 && 0 < 9223372036854775807ll)
4109 typedef int b[(18446744073709551615ULL <= (unsigned long long int) -1
4115 /* Test availability of runtime routines for shift and division. */
4116 long long int llmax = 9223372036854775807ll;
4117 unsigned long long int ullmax = 18446744073709551615ull;
4118 return ((ll << 63) | (ll >> 63) | (ll < i) | (ll > i)
4119 | (llmax / ll) | (llmax % ll)
4120 | (ull << 63) | (ull >> 63) | (ull << i) | (ull >> i)
4121 | (ullmax / ull) | (ullmax % ull));
4127 rm -f conftest.
$ac_objext conftest
$ac_exeext
4128 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
4129 (eval $ac_link) 2>conftest.er1
4131 grep -v '^ *+' conftest.er1
>conftest.err
4133 cat conftest.err
>&5
4134 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4135 (exit $ac_status); } &&
4136 { ac_try
='test -z "$ac_c_werror_flag"
4137 || test ! -s conftest.err'
4138 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4141 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4142 (exit $ac_status); }; } &&
4143 { ac_try
='test -s conftest$ac_exeext'
4144 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4147 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4148 (exit $ac_status); }; }; then
4149 if test "$cross_compiling" = yes; then
4150 ac_cv_type_long_long_int
=yes
4152 cat >conftest.
$ac_ext <<_ACEOF
4155 cat confdefs.h
>>conftest.
$ac_ext
4156 cat >>conftest.
$ac_ext <<_ACEOF
4157 /* end confdefs.h. */
4161 (1LL << (sizeof (long long int) * CHAR_BIT - 2))
4162 # define LLONG_MAX (HALF - 1 + HALF)
4167 long long int n = 1;
4171 long long int m = n << i;
4174 if (LLONG_MAX / 2 < m)
4182 rm -f conftest
$ac_exeext
4183 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
4184 (eval $ac_link) 2>&5
4186 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4187 (exit $ac_status); } && { ac_try
='./conftest$ac_exeext'
4188 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4191 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4192 (exit $ac_status); }; }; then
4193 ac_cv_type_long_long_int
=yes
4195 echo "$as_me: program exited with status $ac_status" >&5
4196 echo "$as_me: failed program was:" >&5
4197 sed 's/^/| /' conftest.
$ac_ext >&5
4200 ac_cv_type_long_long_int
=no
4202 rm -f core
*.core gmon.out bb.out conftest
$ac_exeext conftest.
$ac_objext conftest.
$ac_ext
4205 echo "$as_me: failed program was:" >&5
4206 sed 's/^/| /' conftest.
$ac_ext >&5
4208 ac_cv_type_long_long_int
=no
4210 rm -f conftest.err conftest.
$ac_objext \
4211 conftest
$ac_exeext conftest.
$ac_ext
4213 echo "$as_me:$LINENO: result: $ac_cv_type_long_long_int" >&5
4214 echo "${ECHO_T}$ac_cv_type_long_long_int" >&6
4215 if test $ac_cv_type_long_long_int = yes; then
4217 cat >>confdefs.h
<<\_ACEOF
4218 #define HAVE_LONG_LONG_INT 1
4224 echo "$as_me:$LINENO: checking for unsigned long long int" >&5
4225 echo $ECHO_N "checking for unsigned long long int... $ECHO_C" >&6
4226 if test "${ac_cv_type_unsigned_long_long_int+set}" = set; then
4227 echo $ECHO_N "(cached) $ECHO_C" >&6
4229 cat >conftest.
$ac_ext <<_ACEOF
4233 cat confdefs.h
>>conftest.
$ac_ext
4234 cat >>conftest.
$ac_ext <<_ACEOF
4235 /* end confdefs.h. */
4236 /* For now, do not test the preprocessor; as of 2007 there are too many
4237 implementations with broken preprocessors. Perhaps this can
4238 be revisited in 2012. In the meantime, code should not expect
4239 #if to work with literals wider than 32 bits. */
4240 /* Test literals. */
4241 long long int ll = 9223372036854775807ll;
4242 long long int nll = -9223372036854775807LL;
4243 unsigned long long int ull = 18446744073709551615ULL;
4244 /* Test constant expressions. */
4245 typedef int a[((-9223372036854775807LL < 0 && 0 < 9223372036854775807ll)
4247 typedef int b[(18446744073709551615ULL <= (unsigned long long int) -1
4253 /* Test availability of runtime routines for shift and division. */
4254 long long int llmax = 9223372036854775807ll;
4255 unsigned long long int ullmax = 18446744073709551615ull;
4256 return ((ll << 63) | (ll >> 63) | (ll < i) | (ll > i)
4257 | (llmax / ll) | (llmax % ll)
4258 | (ull << 63) | (ull >> 63) | (ull << i) | (ull >> i)
4259 | (ullmax / ull) | (ullmax % ull));
4265 rm -f conftest.
$ac_objext conftest
$ac_exeext
4266 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
4267 (eval $ac_link) 2>conftest.er1
4269 grep -v '^ *+' conftest.er1
>conftest.err
4271 cat conftest.err
>&5
4272 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4273 (exit $ac_status); } &&
4274 { ac_try
='test -z "$ac_c_werror_flag"
4275 || test ! -s conftest.err'
4276 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4279 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4280 (exit $ac_status); }; } &&
4281 { ac_try
='test -s conftest$ac_exeext'
4282 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4285 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4286 (exit $ac_status); }; }; then
4287 ac_cv_type_unsigned_long_long_int
=yes
4289 echo "$as_me: failed program was:" >&5
4290 sed 's/^/| /' conftest.
$ac_ext >&5
4292 ac_cv_type_unsigned_long_long_int
=no
4294 rm -f conftest.err conftest.
$ac_objext \
4295 conftest
$ac_exeext conftest.
$ac_ext
4297 echo "$as_me:$LINENO: result: $ac_cv_type_unsigned_long_long_int" >&5
4298 echo "${ECHO_T}$ac_cv_type_unsigned_long_long_int" >&6
4299 if test $ac_cv_type_unsigned_long_long_int = yes; then
4301 cat >>confdefs.h
<<\_ACEOF
4302 #define HAVE_UNSIGNED_LONG_LONG_INT 1
4309 echo "$as_me:$LINENO: checking whether the preprocessor supports include_next" >&5
4310 echo $ECHO_N "checking whether the preprocessor supports include_next... $ECHO_C" >&6
4311 if test "${gl_cv_have_include_next+set}" = set; then
4312 echo $ECHO_N "(cached) $ECHO_C" >&6
4314 rm -rf conftestd1 conftestd2
4315 mkdir conftestd1 conftestd2
4316 cat <<EOF > conftestd1/conftest.h
4317 #define DEFINED_IN_CONFTESTD1
4318 #include_next <conftest.h>
4319 #ifdef DEFINED_IN_CONFTESTD2
4322 #error "include_next doesn't work"
4325 cat <<EOF > conftestd2/conftest.h
4326 #ifndef DEFINED_IN_CONFTESTD1
4327 #error "include_next test doesn't work"
4329 #define DEFINED_IN_CONFTESTD2
4331 save_CPPFLAGS
="$CPPFLAGS"
4332 CPPFLAGS
="$CPPFLAGS -Iconftestd1 -Iconftestd2"
4333 cat >conftest.
$ac_ext <<_ACEOF
4334 #include <conftest.h>
4336 rm -f conftest.
$ac_objext
4337 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
4338 (eval $ac_compile) 2>conftest.er1
4340 grep -v '^ *+' conftest.er1
>conftest.err
4342 cat conftest.err
>&5
4343 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4344 (exit $ac_status); } &&
4345 { ac_try
='test -z "$ac_c_werror_flag"
4346 || test ! -s conftest.err'
4347 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4350 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4351 (exit $ac_status); }; } &&
4352 { ac_try
='test -s conftest.$ac_objext'
4353 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4356 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4357 (exit $ac_status); }; }; then
4358 gl_cv_have_include_next
=yes
4360 echo "$as_me: failed program was:" >&5
4361 sed 's/^/| /' conftest.
$ac_ext >&5
4363 gl_cv_have_include_next
=no
4365 rm -f conftest.err conftest.
$ac_objext conftest.
$ac_ext
4366 CPPFLAGS
="$save_CPPFLAGS"
4367 rm -rf conftestd1 conftestd2
4370 echo "$as_me:$LINENO: result: $gl_cv_have_include_next" >&5
4371 echo "${ECHO_T}$gl_cv_have_include_next" >&6
4372 if test $gl_cv_have_include_next = yes; then
4375 cat >>confdefs.h
<<\_ACEOF
4376 #define HAVE_INCLUDE_NEXT 1
4380 INCLUDE_NEXT
=include_next
4382 INCLUDE_NEXT
=include
4391 for ac_header
in $gl_header_list
4393 as_ac_Header
=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
4394 if eval "test \"\${$as_ac_Header+set}\" = set"; then
4395 echo "$as_me:$LINENO: checking for $ac_header" >&5
4396 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
4397 if eval "test \"\${$as_ac_Header+set}\" = set"; then
4398 echo $ECHO_N "(cached) $ECHO_C" >&6
4400 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
4401 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
4403 # Is the header compilable?
4404 echo "$as_me:$LINENO: checking $ac_header usability" >&5
4405 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
4406 cat >conftest.
$ac_ext <<_ACEOF
4409 cat confdefs.h
>>conftest.
$ac_ext
4410 cat >>conftest.
$ac_ext <<_ACEOF
4411 /* end confdefs.h. */
4412 $ac_includes_default
4413 #include <$ac_header>
4415 rm -f conftest.
$ac_objext
4416 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
4417 (eval $ac_compile) 2>conftest.er1
4419 grep -v '^ *+' conftest.er1
>conftest.err
4421 cat conftest.err
>&5
4422 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4423 (exit $ac_status); } &&
4424 { ac_try
='test -z "$ac_c_werror_flag"
4425 || test ! -s conftest.err'
4426 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4429 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4430 (exit $ac_status); }; } &&
4431 { ac_try
='test -s conftest.$ac_objext'
4432 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4435 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4436 (exit $ac_status); }; }; then
4437 ac_header_compiler
=yes
4439 echo "$as_me: failed program was:" >&5
4440 sed 's/^/| /' conftest.
$ac_ext >&5
4442 ac_header_compiler
=no
4444 rm -f conftest.err conftest.
$ac_objext conftest.
$ac_ext
4445 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
4446 echo "${ECHO_T}$ac_header_compiler" >&6
4448 # Is the header present?
4449 echo "$as_me:$LINENO: checking $ac_header presence" >&5
4450 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
4451 cat >conftest.
$ac_ext <<_ACEOF
4454 cat confdefs.h
>>conftest.
$ac_ext
4455 cat >>conftest.
$ac_ext <<_ACEOF
4456 /* end confdefs.h. */
4457 #include <$ac_header>
4459 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
4460 (eval $ac_cpp conftest.
$ac_ext) 2>conftest.er1
4462 grep -v '^ *+' conftest.er1
>conftest.err
4464 cat conftest.err
>&5
4465 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4466 (exit $ac_status); } >/dev
/null
; then
4467 if test -s conftest.err
; then
4468 ac_cpp_err
=$ac_c_preproc_warn_flag
4469 ac_cpp_err
=$ac_cpp_err$ac_c_werror_flag
4476 if test -z "$ac_cpp_err"; then
4477 ac_header_preproc
=yes
4479 echo "$as_me: failed program was:" >&5
4480 sed 's/^/| /' conftest.
$ac_ext >&5
4482 ac_header_preproc
=no
4484 rm -f conftest.err conftest.
$ac_ext
4485 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
4486 echo "${ECHO_T}$ac_header_preproc" >&6
4488 # So? What about this header?
4489 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
4491 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
4492 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
4493 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
4494 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
4495 ac_header_preproc
=yes
4498 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
4499 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
4500 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
4501 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
4502 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
4503 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
4504 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
4505 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
4506 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
4507 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
4508 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
4509 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
4512 ## ------------------------------------------ ##
4513 ## Report this to the AC_PACKAGE_NAME lists. ##
4514 ## ------------------------------------------ ##
4517 sed "s/^/$as_me: WARNING: /" >&2
4520 echo "$as_me:$LINENO: checking for $ac_header" >&5
4521 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
4522 if eval "test \"\${$as_ac_Header+set}\" = set"; then
4523 echo $ECHO_N "(cached) $ECHO_C" >&6
4525 eval "$as_ac_Header=\$ac_header_preproc"
4527 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
4528 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
4531 if test `eval echo '${'$as_ac_Header'}'` = yes; then
4532 cat >>confdefs.h
<<_ACEOF
4533 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
4551 echo "$as_me:$LINENO: checking for C/C++ restrict keyword" >&5
4552 echo $ECHO_N "checking for C/C++ restrict keyword... $ECHO_C" >&6
4553 if test "${ac_cv_c_restrict+set}" = set; then
4554 echo $ECHO_N "(cached) $ECHO_C" >&6
4557 # The order here caters to the fact that C++ does not require restrict.
4558 for ac_kw
in __restrict __restrict__ _Restrict restrict
; do
4559 cat >conftest.
$ac_ext <<_ACEOF
4562 cat confdefs.h
>>conftest.
$ac_ext
4563 cat >>conftest.
$ac_ext <<_ACEOF
4564 /* end confdefs.h. */
4565 typedef int * int_ptr;
4566 int foo (int_ptr $ac_kw ip) {
4580 rm -f conftest.
$ac_objext
4581 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
4582 (eval $ac_compile) 2>conftest.er1
4584 grep -v '^ *+' conftest.er1
>conftest.err
4586 cat conftest.err
>&5
4587 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4588 (exit $ac_status); } &&
4589 { ac_try
='test -z "$ac_c_werror_flag"
4590 || test ! -s conftest.err'
4591 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4594 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4595 (exit $ac_status); }; } &&
4596 { ac_try
='test -s conftest.$ac_objext'
4597 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4600 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4601 (exit $ac_status); }; }; then
4602 ac_cv_c_restrict
=$ac_kw
4604 echo "$as_me: failed program was:" >&5
4605 sed 's/^/| /' conftest.
$ac_ext >&5
4608 rm -f conftest.err conftest.
$ac_objext conftest.
$ac_ext
4609 test "$ac_cv_c_restrict" != no
&& break
4613 echo "$as_me:$LINENO: result: $ac_cv_c_restrict" >&5
4614 echo "${ECHO_T}$ac_cv_c_restrict" >&6
4617 case $ac_cv_c_restrict in
4619 no
) cat >>confdefs.h
<<\_ACEOF
4623 *) cat >>confdefs.h
<<_ACEOF
4624 #define restrict $ac_cv_c_restrict
4649 if test $gl_cv_have_include_next = yes; then
4650 gl_cv_next_string_h
='<'string.h
'>'
4652 echo "$as_me:$LINENO: checking absolute name of <string.h>" >&5
4653 echo $ECHO_N "checking absolute name of <string.h>... $ECHO_C" >&6
4654 if test "${gl_cv_next_string_h+set}" = set; then
4655 echo $ECHO_N "(cached) $ECHO_C" >&6
4658 if test $ac_cv_header_string_h = yes; then
4659 cat >conftest.
$ac_ext <<_ACEOF
4662 cat confdefs.h
>>conftest.
$ac_ext
4663 cat >>conftest.
$ac_ext <<_ACEOF
4664 /* end confdefs.h. */
4668 gl_cv_next_string_h
='"'`(eval "$ac_cpp conftest.$ac_ext") 2>&5 |
4669 sed -n '\#/string.h#{
4670 s#.*"\(.*/string.h\)".*#\1#
4676 gl_cv_next_string_h
='<'string.h
'>'
4680 echo "$as_me:$LINENO: result: $gl_cv_next_string_h" >&5
4681 echo "${ECHO_T}$gl_cv_next_string_h" >&6
4683 NEXT_STRING_H
=$gl_cv_next_string_h
4690 HAVE_DECL_WCWIDTH
=1;
4699 GL_COND_LIBTOOL_TRUE
=
4700 GL_COND_LIBTOOL_FALSE
='#'
4702 GL_COND_LIBTOOL_TRUE
='#'
4703 GL_COND_LIBTOOL_FALSE
=
4706 gl_cond_libtool
=false
4712 gl_source_base
='gnulib'
4722 for ac_func
in memchr
4724 as_ac_var
=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
4725 echo "$as_me:$LINENO: checking for $ac_func" >&5
4726 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
4727 if eval "test \"\${$as_ac_var+set}\" = set"; then
4728 echo $ECHO_N "(cached) $ECHO_C" >&6
4730 cat >conftest.
$ac_ext <<_ACEOF
4733 cat confdefs.h
>>conftest.
$ac_ext
4734 cat >>conftest.
$ac_ext <<_ACEOF
4735 /* end confdefs.h. */
4736 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
4737 For example, HP-UX 11i <limits.h> declares gettimeofday. */
4738 #define $ac_func innocuous_$ac_func
4740 /* System header to define __stub macros and hopefully few prototypes,
4741 which can conflict with char $ac_func (); below.
4742 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
4743 <limits.h> exists even on freestanding compilers. */
4746 # include <limits.h>
4748 # include <assert.h>
4753 /* Override any gcc2 internal prototype to avoid an error. */
4758 /* We use char because int might match the return type of a gcc2
4759 builtin and then its argument prototype would still apply. */
4761 /* The GNU C library defines this for functions which it implements
4762 to always fail with ENOSYS. Some functions are actually named
4763 something starting with __ and the normal name is an alias. */
4764 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
4767 char (*f) () = $ac_func;
4776 return f != $ac_func;
4781 rm -f conftest.
$ac_objext conftest
$ac_exeext
4782 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
4783 (eval $ac_link) 2>conftest.er1
4785 grep -v '^ *+' conftest.er1
>conftest.err
4787 cat conftest.err
>&5
4788 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4789 (exit $ac_status); } &&
4790 { ac_try
='test -z "$ac_c_werror_flag"
4791 || test ! -s conftest.err'
4792 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4795 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4796 (exit $ac_status); }; } &&
4797 { ac_try
='test -s conftest$ac_exeext'
4798 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4801 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4802 (exit $ac_status); }; }; then
4803 eval "$as_ac_var=yes"
4805 echo "$as_me: failed program was:" >&5
4806 sed 's/^/| /' conftest.
$ac_ext >&5
4808 eval "$as_ac_var=no"
4810 rm -f conftest.err conftest.
$ac_objext \
4811 conftest
$ac_exeext conftest.
$ac_ext
4813 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
4814 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
4815 if test `eval echo '${'$as_ac_var'}'` = yes; then
4816 cat >>confdefs.h
<<_ACEOF
4817 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
4822 gl_LIBOBJS
="$gl_LIBOBJS $ac_func.$ac_objext"
4828 if test $ac_cv_func_memchr = no
; then
4831 for ac_header
in bp-sym.h
4833 as_ac_Header
=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
4834 if eval "test \"\${$as_ac_Header+set}\" = set"; then
4835 echo "$as_me:$LINENO: checking for $ac_header" >&5
4836 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
4837 if eval "test \"\${$as_ac_Header+set}\" = set"; then
4838 echo $ECHO_N "(cached) $ECHO_C" >&6
4840 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
4841 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
4843 # Is the header compilable?
4844 echo "$as_me:$LINENO: checking $ac_header usability" >&5
4845 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
4846 cat >conftest.
$ac_ext <<_ACEOF
4849 cat confdefs.h
>>conftest.
$ac_ext
4850 cat >>conftest.
$ac_ext <<_ACEOF
4851 /* end confdefs.h. */
4852 $ac_includes_default
4853 #include <$ac_header>
4855 rm -f conftest.
$ac_objext
4856 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
4857 (eval $ac_compile) 2>conftest.er1
4859 grep -v '^ *+' conftest.er1
>conftest.err
4861 cat conftest.err
>&5
4862 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4863 (exit $ac_status); } &&
4864 { ac_try
='test -z "$ac_c_werror_flag"
4865 || test ! -s conftest.err'
4866 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4869 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4870 (exit $ac_status); }; } &&
4871 { ac_try
='test -s conftest.$ac_objext'
4872 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4875 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4876 (exit $ac_status); }; }; then
4877 ac_header_compiler
=yes
4879 echo "$as_me: failed program was:" >&5
4880 sed 's/^/| /' conftest.
$ac_ext >&5
4882 ac_header_compiler
=no
4884 rm -f conftest.err conftest.
$ac_objext conftest.
$ac_ext
4885 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
4886 echo "${ECHO_T}$ac_header_compiler" >&6
4888 # Is the header present?
4889 echo "$as_me:$LINENO: checking $ac_header presence" >&5
4890 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
4891 cat >conftest.
$ac_ext <<_ACEOF
4894 cat confdefs.h
>>conftest.
$ac_ext
4895 cat >>conftest.
$ac_ext <<_ACEOF
4896 /* end confdefs.h. */
4897 #include <$ac_header>
4899 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
4900 (eval $ac_cpp conftest.
$ac_ext) 2>conftest.er1
4902 grep -v '^ *+' conftest.er1
>conftest.err
4904 cat conftest.err
>&5
4905 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4906 (exit $ac_status); } >/dev
/null
; then
4907 if test -s conftest.err
; then
4908 ac_cpp_err
=$ac_c_preproc_warn_flag
4909 ac_cpp_err
=$ac_cpp_err$ac_c_werror_flag
4916 if test -z "$ac_cpp_err"; then
4917 ac_header_preproc
=yes
4919 echo "$as_me: failed program was:" >&5
4920 sed 's/^/| /' conftest.
$ac_ext >&5
4922 ac_header_preproc
=no
4924 rm -f conftest.err conftest.
$ac_ext
4925 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
4926 echo "${ECHO_T}$ac_header_preproc" >&6
4928 # So? What about this header?
4929 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
4931 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
4932 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
4933 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
4934 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
4935 ac_header_preproc
=yes
4938 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
4939 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
4940 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
4941 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
4942 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
4943 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
4944 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
4945 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
4946 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
4947 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
4948 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
4949 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
4952 ## ------------------------------------------ ##
4953 ## Report this to the AC_PACKAGE_NAME lists. ##
4954 ## ------------------------------------------ ##
4957 sed "s/^/$as_me: WARNING: /" >&2
4960 echo "$as_me:$LINENO: checking for $ac_header" >&5
4961 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
4962 if eval "test \"\${$as_ac_Header+set}\" = set"; then
4963 echo $ECHO_N "(cached) $ECHO_C" >&6
4965 eval "$as_ac_Header=\$ac_header_preproc"
4967 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
4968 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
4971 if test `eval echo '${'$as_ac_Header'}'` = yes; then
4972 cat >>confdefs.h
<<_ACEOF
4973 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
4984 echo "$as_me:$LINENO: checking for working memcmp" >&5
4985 echo $ECHO_N "checking for working memcmp... $ECHO_C" >&6
4986 if test "${ac_cv_func_memcmp_working+set}" = set; then
4987 echo $ECHO_N "(cached) $ECHO_C" >&6
4989 if test "$cross_compiling" = yes; then
4990 ac_cv_func_memcmp_working
=no
4992 cat >conftest.
$ac_ext <<_ACEOF
4995 cat confdefs.h
>>conftest.
$ac_ext
4996 cat >>conftest.
$ac_ext <<_ACEOF
4997 /* end confdefs.h. */
4998 $ac_includes_default
5003 /* Some versions of memcmp are not 8-bit clean. */
5004 char c0 = 0x40, c1 = 0x80, c2 = 0x81;
5005 if (memcmp(&c0, &c2, 1) >= 0 || memcmp(&c1, &c2, 1) >= 0)
5008 /* The Next x86 OpenStep bug shows up only when comparing 16 bytes
5009 or more and with at least one buffer not starting on a 4-byte boundary.
5010 William Lewis provided this test program. */
5015 for (i = 0; i < 4; i++)
5019 strcpy (a, "--------01111111");
5020 strcpy (b, "--------10000000");
5021 if (memcmp (a, b, 16) >= 0)
5031 rm -f conftest
$ac_exeext
5032 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
5033 (eval $ac_link) 2>&5
5035 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5036 (exit $ac_status); } && { ac_try
='./conftest$ac_exeext'
5037 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5040 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5041 (exit $ac_status); }; }; then
5042 ac_cv_func_memcmp_working
=yes
5044 echo "$as_me: program exited with status $ac_status" >&5
5045 echo "$as_me: failed program was:" >&5
5046 sed 's/^/| /' conftest.
$ac_ext >&5
5049 ac_cv_func_memcmp_working
=no
5051 rm -f core
*.core gmon.out bb.out conftest
$ac_exeext conftest.
$ac_objext conftest.
$ac_ext
5054 echo "$as_me:$LINENO: result: $ac_cv_func_memcmp_working" >&5
5055 echo "${ECHO_T}$ac_cv_func_memcmp_working" >&6
5056 test $ac_cv_func_memcmp_working = no
&&
5063 gl_LIBOBJS
="$gl_LIBOBJS memcmp.$ac_objext"
5066 if test $ac_cv_func_memcmp_working = no
; then
5068 cat >>confdefs.h
<<\_ACEOF
5069 #define memcmp rpl_memcmp
5077 if test $ac_cv_have_decl_memmem = yes; then
5078 echo "$as_me:$LINENO: checking whether memmem works in linear time" >&5
5079 echo $ECHO_N "checking whether memmem works in linear time... $ECHO_C" >&6
5080 if test "${gl_cv_func_memmem_works+set}" = set; then
5081 echo $ECHO_N "(cached) $ECHO_C" >&6
5083 if test "$cross_compiling" = yes; then
5084 gl_cv_func_memmem_works
="guessing no"
5086 cat >conftest.
$ac_ext <<_ACEOF
5089 cat confdefs.h
>>conftest.
$ac_ext
5090 cat >>conftest.
$ac_ext <<_ACEOF
5091 /* end confdefs.h. */
5093 #include <string.h> /* for memmem */
5094 #include <stdlib.h> /* for malloc */
5095 #include <unistd.h> /* for alarm */
5101 char *haystack = (char *) malloc (2 * m + 1);
5102 char *needle = (char *) malloc (m + 1);
5104 /* Failure to compile this test due to missing alarm is okay,
5105 since all such platforms (mingw) also lack memmem. */
5107 /* Check for quadratic performance. */
5108 if (haystack && needle)
5110 memset (haystack, 'A', 2 * m);
5111 haystack[2 * m] = 'B';
5112 memset (needle, 'A', m);
5114 result = memmem (haystack, 2 * m + 1, needle, m + 1);
5116 /* Check for empty needle behavior. */
5117 return !result || !memmem ("a", 1, 0, 0);
5122 rm -f conftest
$ac_exeext
5123 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
5124 (eval $ac_link) 2>&5
5126 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5127 (exit $ac_status); } && { ac_try
='./conftest$ac_exeext'
5128 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5131 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5132 (exit $ac_status); }; }; then
5133 gl_cv_func_memmem_works
=yes
5135 echo "$as_me: program exited with status $ac_status" >&5
5136 echo "$as_me: failed program was:" >&5
5137 sed 's/^/| /' conftest.
$ac_ext >&5
5140 gl_cv_func_memmem_works
=no
5142 rm -f core
*.core gmon.out bb.out conftest
$ac_exeext conftest.
$ac_objext conftest.
$ac_ext
5145 echo "$as_me:$LINENO: result: $gl_cv_func_memmem_works" >&5
5146 echo "${ECHO_T}$gl_cv_func_memmem_works" >&6
5147 if test "$gl_cv_func_memmem_works" != yes; then
5156 gl_LIBOBJS
="$gl_LIBOBJS memmem.$ac_objext"
5173 for ac_func
in memmem
5175 as_ac_var
=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
5176 echo "$as_me:$LINENO: checking for $ac_func" >&5
5177 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
5178 if eval "test \"\${$as_ac_var+set}\" = set"; then
5179 echo $ECHO_N "(cached) $ECHO_C" >&6
5181 cat >conftest.
$ac_ext <<_ACEOF
5184 cat confdefs.h
>>conftest.
$ac_ext
5185 cat >>conftest.
$ac_ext <<_ACEOF
5186 /* end confdefs.h. */
5187 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
5188 For example, HP-UX 11i <limits.h> declares gettimeofday. */
5189 #define $ac_func innocuous_$ac_func
5191 /* System header to define __stub macros and hopefully few prototypes,
5192 which can conflict with char $ac_func (); below.
5193 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
5194 <limits.h> exists even on freestanding compilers. */
5197 # include <limits.h>
5199 # include <assert.h>
5204 /* Override any gcc2 internal prototype to avoid an error. */
5209 /* We use char because int might match the return type of a gcc2
5210 builtin and then its argument prototype would still apply. */
5212 /* The GNU C library defines this for functions which it implements
5213 to always fail with ENOSYS. Some functions are actually named
5214 something starting with __ and the normal name is an alias. */
5215 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
5218 char (*f) () = $ac_func;
5227 return f != $ac_func;
5232 rm -f conftest.
$ac_objext conftest
$ac_exeext
5233 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
5234 (eval $ac_link) 2>conftest.er1
5236 grep -v '^ *+' conftest.er1
>conftest.err
5238 cat conftest.err
>&5
5239 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5240 (exit $ac_status); } &&
5241 { ac_try
='test -z "$ac_c_werror_flag"
5242 || test ! -s conftest.err'
5243 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5246 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5247 (exit $ac_status); }; } &&
5248 { ac_try
='test -s conftest$ac_exeext'
5249 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5252 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5253 (exit $ac_status); }; }; then
5254 eval "$as_ac_var=yes"
5256 echo "$as_me: failed program was:" >&5
5257 sed 's/^/| /' conftest.
$ac_ext >&5
5259 eval "$as_ac_var=no"
5261 rm -f conftest.err conftest.
$ac_objext \
5262 conftest
$ac_exeext conftest.
$ac_ext
5264 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
5265 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
5266 if test `eval echo '${'$as_ac_var'}'` = yes; then
5267 cat >>confdefs.h
<<_ACEOF
5268 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
5273 gl_LIBOBJS
="$gl_LIBOBJS $ac_func.$ac_objext"
5286 if test $ac_cv_have_decl_memmem = no
; then
5298 if test $ac_cv_type_long_long_int = yes; then
5299 HAVE_LONG_LONG_INT
=1
5301 HAVE_LONG_LONG_INT
=0
5305 if test $ac_cv_type_unsigned_long_long_int = yes; then
5306 HAVE_UNSIGNED_LONG_LONG_INT
=1
5308 HAVE_UNSIGNED_LONG_LONG_INT
=0
5312 if test $ac_cv_header_inttypes_h = yes; then
5319 if test $ac_cv_header_sys_types_h = yes; then
5337 if test $gl_cv_have_include_next = yes; then
5338 gl_cv_next_stdint_h
='<'stdint.h
'>'
5340 echo "$as_me:$LINENO: checking absolute name of <stdint.h>" >&5
5341 echo $ECHO_N "checking absolute name of <stdint.h>... $ECHO_C" >&6
5342 if test "${gl_cv_next_stdint_h+set}" = set; then
5343 echo $ECHO_N "(cached) $ECHO_C" >&6
5346 if test $ac_cv_header_stdint_h = yes; then
5347 cat >conftest.
$ac_ext <<_ACEOF
5350 cat confdefs.h
>>conftest.
$ac_ext
5351 cat >>conftest.
$ac_ext <<_ACEOF
5352 /* end confdefs.h. */
5356 gl_cv_next_stdint_h
='"'`(eval "$ac_cpp conftest.$ac_ext") 2>&5 |
5357 sed -n '\#/stdint.h#{
5358 s#.*"\(.*/stdint.h\)".*#\1#
5364 gl_cv_next_stdint_h
='<'stdint.h
'>'
5368 echo "$as_me:$LINENO: result: $gl_cv_next_stdint_h" >&5
5369 echo "${ECHO_T}$gl_cv_next_stdint_h" >&6
5371 NEXT_STDINT_H
=$gl_cv_next_stdint_h
5375 if test $ac_cv_header_stdint_h = yes; then
5382 if test $ac_cv_header_stdint_h = yes; then
5383 echo "$as_me:$LINENO: checking whether stdint.h conforms to C99" >&5
5384 echo $ECHO_N "checking whether stdint.h conforms to C99... $ECHO_C" >&6
5385 if test "${gl_cv_header_working_stdint_h+set}" = set; then
5386 echo $ECHO_N "(cached) $ECHO_C" >&6
5388 gl_cv_header_working_stdint_h
=no
5389 cat >conftest.
$ac_ext <<_ACEOF
5393 cat confdefs.h
>>conftest.
$ac_ext
5394 cat >>conftest.
$ac_ext <<_ACEOF
5395 /* end confdefs.h. */
5397 #define __STDC_LIMIT_MACROS 1 /* to make it work also in C++ mode */
5398 #define __STDC_CONSTANT_MACROS 1 /* to make it work also in C++ mode */
5399 #define _GL_JUST_INCLUDE_SYSTEM_STDINT_H 1 /* work if build isn't clean */
5401 /* Dragonfly defines WCHAR_MIN, WCHAR_MAX only in <wchar.h>. */
5402 #if !(defined WCHAR_MIN && defined WCHAR_MAX)
5403 #error "WCHAR_MIN, WCHAR_MAX not defined in <stdint.h>"
5407 /* BSD/OS 4.0.1 has a bug: <stddef.h>, <stdio.h> and <time.h> must be
5408 included before <wchar.h>. */
5419 int8_t a1 = INT8_MAX;
5420 int8_t a1min = INT8_MIN;
5423 int16_t a2 = INT16_MAX;
5424 int16_t a2min = INT16_MIN;
5427 int32_t a3 = INT32_MAX;
5428 int32_t a3min = INT32_MIN;
5431 int64_t a4 = INT64_MAX;
5432 int64_t a4min = INT64_MIN;
5435 uint8_t b1 = UINT8_MAX;
5437 typedef int b1[(unsigned char) -1 != 255 ? 1 : -1];
5440 uint16_t b2 = UINT16_MAX;
5443 uint32_t b3 = UINT32_MAX;
5446 uint64_t b4 = UINT64_MAX;
5448 int_least8_t c1 = INT8_C (0x7f);
5449 int_least8_t c1max = INT_LEAST8_MAX;
5450 int_least8_t c1min = INT_LEAST8_MIN;
5451 int_least16_t c2 = INT16_C (0x7fff);
5452 int_least16_t c2max = INT_LEAST16_MAX;
5453 int_least16_t c2min = INT_LEAST16_MIN;
5454 int_least32_t c3 = INT32_C (0x7fffffff);
5455 int_least32_t c3max = INT_LEAST32_MAX;
5456 int_least32_t c3min = INT_LEAST32_MIN;
5457 int_least64_t c4 = INT64_C (0x7fffffffffffffff);
5458 int_least64_t c4max = INT_LEAST64_MAX;
5459 int_least64_t c4min = INT_LEAST64_MIN;
5460 uint_least8_t d1 = UINT8_C (0xff);
5461 uint_least8_t d1max = UINT_LEAST8_MAX;
5462 uint_least16_t d2 = UINT16_C (0xffff);
5463 uint_least16_t d2max = UINT_LEAST16_MAX;
5464 uint_least32_t d3 = UINT32_C (0xffffffff);
5465 uint_least32_t d3max = UINT_LEAST32_MAX;
5466 uint_least64_t d4 = UINT64_C (0xffffffffffffffff);
5467 uint_least64_t d4max = UINT_LEAST64_MAX;
5468 int_fast8_t e1 = INT_FAST8_MAX;
5469 int_fast8_t e1min = INT_FAST8_MIN;
5470 int_fast16_t e2 = INT_FAST16_MAX;
5471 int_fast16_t e2min = INT_FAST16_MIN;
5472 int_fast32_t e3 = INT_FAST32_MAX;
5473 int_fast32_t e3min = INT_FAST32_MIN;
5474 int_fast64_t e4 = INT_FAST64_MAX;
5475 int_fast64_t e4min = INT_FAST64_MIN;
5476 uint_fast8_t f1 = UINT_FAST8_MAX;
5477 uint_fast16_t f2 = UINT_FAST16_MAX;
5478 uint_fast32_t f3 = UINT_FAST32_MAX;
5479 uint_fast64_t f4 = UINT_FAST64_MAX;
5481 intptr_t g = INTPTR_MAX;
5482 intptr_t gmin = INTPTR_MIN;
5485 uintptr_t h = UINTPTR_MAX;
5487 intmax_t i = INTMAX_MAX;
5488 uintmax_t j = UINTMAX_MAX;
5490 #include <limits.h> /* for CHAR_BIT */
5491 #define TYPE_MINIMUM(t) \
5492 ((t) ((t) 0 < (t) -1 ? (t) 0 : ~ (t) 0 << (sizeof (t) * CHAR_BIT - 1)))
5493 #define TYPE_MAXIMUM(t) \
5494 ((t) ((t) 0 < (t) -1 ? (t) -1 : ~ (~ (t) 0 << (sizeof (t) * CHAR_BIT - 1))))
5497 PTRDIFF_MIN == TYPE_MINIMUM (ptrdiff_t)
5498 && PTRDIFF_MAX == TYPE_MAXIMUM (ptrdiff_t)
5500 /* Detect bug in FreeBSD 6.0 / ia64. */
5501 int check_SIG_ATOMIC:
5502 SIG_ATOMIC_MIN == TYPE_MINIMUM (sig_atomic_t)
5503 && SIG_ATOMIC_MAX == TYPE_MAXIMUM (sig_atomic_t)
5505 int check_SIZE: SIZE_MAX == TYPE_MAXIMUM (size_t) ? 1 : -1;
5507 WCHAR_MIN == TYPE_MINIMUM (wchar_t)
5508 && WCHAR_MAX == TYPE_MAXIMUM (wchar_t)
5510 /* Detect bug in mingw. */
5512 WINT_MIN == TYPE_MINIMUM (wint_t)
5513 && WINT_MAX == TYPE_MAXIMUM (wint_t)
5516 /* Detect bugs in glibc 2.4 and Solaris 10 stdint.h, among others. */
5518 (-1 < UINT8_C (0)) == (-1 < (uint_least8_t) 0) ? 1 : -1;
5520 (-1 < UINT16_C (0)) == (-1 < (uint_least16_t) 0) ? 1 : -1;
5522 /* Detect bugs in OpenBSD 3.9 stdint.h. */
5524 int check_uint8: (uint8_t) -1 == UINT8_MAX ? 1 : -1;
5527 int check_uint16: (uint16_t) -1 == UINT16_MAX ? 1 : -1;
5530 int check_uint32: (uint32_t) -1 == UINT32_MAX ? 1 : -1;
5533 int check_uint64: (uint64_t) -1 == UINT64_MAX ? 1 : -1;
5535 int check_uint_least8: (uint_least8_t) -1 == UINT_LEAST8_MAX ? 1 : -1;
5536 int check_uint_least16: (uint_least16_t) -1 == UINT_LEAST16_MAX ? 1 : -1;
5537 int check_uint_least32: (uint_least32_t) -1 == UINT_LEAST32_MAX ? 1 : -1;
5538 int check_uint_least64: (uint_least64_t) -1 == UINT_LEAST64_MAX ? 1 : -1;
5539 int check_uint_fast8: (uint_fast8_t) -1 == UINT_FAST8_MAX ? 1 : -1;
5540 int check_uint_fast16: (uint_fast16_t) -1 == UINT_FAST16_MAX ? 1 : -1;
5541 int check_uint_fast32: (uint_fast32_t) -1 == UINT_FAST32_MAX ? 1 : -1;
5542 int check_uint_fast64: (uint_fast64_t) -1 == UINT_FAST64_MAX ? 1 : -1;
5543 int check_uintptr: (uintptr_t) -1 == UINTPTR_MAX ? 1 : -1;
5544 int check_uintmax: (uintmax_t) -1 == UINTMAX_MAX ? 1 : -1;
5545 int check_size: (size_t) -1 == SIZE_MAX ? 1 : -1;
5556 rm -f conftest.
$ac_objext
5557 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
5558 (eval $ac_compile) 2>conftest.er1
5560 grep -v '^ *+' conftest.er1
>conftest.err
5562 cat conftest.err
>&5
5563 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5564 (exit $ac_status); } &&
5565 { ac_try
='test -z "$ac_c_werror_flag"
5566 || test ! -s conftest.err'
5567 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5570 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5571 (exit $ac_status); }; } &&
5572 { ac_try
='test -s conftest.$ac_objext'
5573 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5576 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5577 (exit $ac_status); }; }; then
5578 gl_cv_header_working_stdint_h
=yes
5580 echo "$as_me: failed program was:" >&5
5581 sed 's/^/| /' conftest.
$ac_ext >&5
5584 rm -f conftest.err conftest.
$ac_objext conftest.
$ac_ext
5586 echo "$as_me:$LINENO: result: $gl_cv_header_working_stdint_h" >&5
5587 echo "${ECHO_T}$gl_cv_header_working_stdint_h" >&6
5589 if test "$gl_cv_header_working_stdint_h" = yes; then
5594 for ac_header
in sys
/inttypes.h sys
/bitypes.h
5596 as_ac_Header
=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
5597 if eval "test \"\${$as_ac_Header+set}\" = set"; then
5598 echo "$as_me:$LINENO: checking for $ac_header" >&5
5599 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
5600 if eval "test \"\${$as_ac_Header+set}\" = set"; then
5601 echo $ECHO_N "(cached) $ECHO_C" >&6
5603 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
5604 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
5606 # Is the header compilable?
5607 echo "$as_me:$LINENO: checking $ac_header usability" >&5
5608 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
5609 cat >conftest.
$ac_ext <<_ACEOF
5612 cat confdefs.h
>>conftest.
$ac_ext
5613 cat >>conftest.
$ac_ext <<_ACEOF
5614 /* end confdefs.h. */
5615 $ac_includes_default
5616 #include <$ac_header>
5618 rm -f conftest.
$ac_objext
5619 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
5620 (eval $ac_compile) 2>conftest.er1
5622 grep -v '^ *+' conftest.er1
>conftest.err
5624 cat conftest.err
>&5
5625 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5626 (exit $ac_status); } &&
5627 { ac_try
='test -z "$ac_c_werror_flag"
5628 || test ! -s conftest.err'
5629 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5632 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5633 (exit $ac_status); }; } &&
5634 { ac_try
='test -s conftest.$ac_objext'
5635 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5638 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5639 (exit $ac_status); }; }; then
5640 ac_header_compiler
=yes
5642 echo "$as_me: failed program was:" >&5
5643 sed 's/^/| /' conftest.
$ac_ext >&5
5645 ac_header_compiler
=no
5647 rm -f conftest.err conftest.
$ac_objext conftest.
$ac_ext
5648 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
5649 echo "${ECHO_T}$ac_header_compiler" >&6
5651 # Is the header present?
5652 echo "$as_me:$LINENO: checking $ac_header presence" >&5
5653 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
5654 cat >conftest.
$ac_ext <<_ACEOF
5657 cat confdefs.h
>>conftest.
$ac_ext
5658 cat >>conftest.
$ac_ext <<_ACEOF
5659 /* end confdefs.h. */
5660 #include <$ac_header>
5662 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
5663 (eval $ac_cpp conftest.
$ac_ext) 2>conftest.er1
5665 grep -v '^ *+' conftest.er1
>conftest.err
5667 cat conftest.err
>&5
5668 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5669 (exit $ac_status); } >/dev
/null
; then
5670 if test -s conftest.err
; then
5671 ac_cpp_err
=$ac_c_preproc_warn_flag
5672 ac_cpp_err
=$ac_cpp_err$ac_c_werror_flag
5679 if test -z "$ac_cpp_err"; then
5680 ac_header_preproc
=yes
5682 echo "$as_me: failed program was:" >&5
5683 sed 's/^/| /' conftest.
$ac_ext >&5
5685 ac_header_preproc
=no
5687 rm -f conftest.err conftest.
$ac_ext
5688 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
5689 echo "${ECHO_T}$ac_header_preproc" >&6
5691 # So? What about this header?
5692 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
5694 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
5695 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
5696 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
5697 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
5698 ac_header_preproc
=yes
5701 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
5702 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
5703 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
5704 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
5705 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
5706 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
5707 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
5708 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
5709 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
5710 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
5711 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
5712 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
5715 ## ------------------------------------------ ##
5716 ## Report this to the AC_PACKAGE_NAME lists. ##
5717 ## ------------------------------------------ ##
5720 sed "s/^/$as_me: WARNING: /" >&2
5723 echo "$as_me:$LINENO: checking for $ac_header" >&5
5724 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
5725 if eval "test \"\${$as_ac_Header+set}\" = set"; then
5726 echo $ECHO_N "(cached) $ECHO_C" >&6
5728 eval "$as_ac_Header=\$ac_header_preproc"
5730 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
5731 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
5734 if test `eval echo '${'$as_ac_Header'}'` = yes; then
5735 cat >>confdefs.h
<<_ACEOF
5736 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
5743 if test $ac_cv_header_sys_inttypes_h = yes; then
5744 HAVE_SYS_INTTYPES_H
=1
5746 HAVE_SYS_INTTYPES_H
=0
5749 if test $ac_cv_header_sys_bitypes_h = yes; then
5750 HAVE_SYS_BITYPES_H
=1
5752 HAVE_SYS_BITYPES_H
=0
5772 for gltype
in ptrdiff_t sig_atomic_t size_t wchar_t wint_t
; do
5773 echo "$as_me:$LINENO: checking for bit size of $gltype" >&5
5774 echo $ECHO_N "checking for bit size of $gltype... $ECHO_C" >&6
5775 if eval "test \"\${gl_cv_bitsizeof_${gltype}+set}\" = set"; then
5776 echo $ECHO_N "(cached) $ECHO_C" >&6
5778 if test "$cross_compiling" = yes; then
5779 # Depending upon the size, compute the lo and hi bounds.
5780 cat >conftest.
$ac_ext <<_ACEOF
5783 cat confdefs.h
>>conftest.
$ac_ext
5784 cat >>conftest.
$ac_ext <<_ACEOF
5785 /* end confdefs.h. */
5787 /* BSD/OS 4.0.1 has a bug: <stddef.h>, <stdio.h> and <time.h> must be
5788 included before <wchar.h>. */
5801 static int test_array [1 - 2 * !((sizeof ($gltype) * CHAR_BIT) >= 0)];
5808 rm -f conftest.
$ac_objext
5809 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
5810 (eval $ac_compile) 2>conftest.er1
5812 grep -v '^ *+' conftest.er1
>conftest.err
5814 cat conftest.err
>&5
5815 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5816 (exit $ac_status); } &&
5817 { ac_try
='test -z "$ac_c_werror_flag"
5818 || test ! -s conftest.err'
5819 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5822 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5823 (exit $ac_status); }; } &&
5824 { ac_try
='test -s conftest.$ac_objext'
5825 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5828 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5829 (exit $ac_status); }; }; then
5832 cat >conftest.
$ac_ext <<_ACEOF
5835 cat confdefs.h
>>conftest.
$ac_ext
5836 cat >>conftest.
$ac_ext <<_ACEOF
5837 /* end confdefs.h. */
5839 /* BSD/OS 4.0.1 has a bug: <stddef.h>, <stdio.h> and <time.h> must be
5840 included before <wchar.h>. */
5853 static int test_array [1 - 2 * !((sizeof ($gltype) * CHAR_BIT) <= $ac_mid)];
5860 rm -f conftest.
$ac_objext
5861 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
5862 (eval $ac_compile) 2>conftest.er1
5864 grep -v '^ *+' conftest.er1
>conftest.err
5866 cat conftest.err
>&5
5867 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5868 (exit $ac_status); } &&
5869 { ac_try
='test -z "$ac_c_werror_flag"
5870 || test ! -s conftest.err'
5871 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5874 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5875 (exit $ac_status); }; } &&
5876 { ac_try
='test -s conftest.$ac_objext'
5877 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5880 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5881 (exit $ac_status); }; }; then
5882 ac_hi
=$ac_mid; break
5884 echo "$as_me: failed program was:" >&5
5885 sed 's/^/| /' conftest.
$ac_ext >&5
5887 ac_lo
=`expr $ac_mid + 1`
5888 if test $ac_lo -le $ac_mid; then
5892 ac_mid
=`expr 2 '*' $ac_mid + 1`
5894 rm -f conftest.err conftest.
$ac_objext conftest.
$ac_ext
5897 echo "$as_me: failed program was:" >&5
5898 sed 's/^/| /' conftest.
$ac_ext >&5
5900 cat >conftest.
$ac_ext <<_ACEOF
5903 cat confdefs.h
>>conftest.
$ac_ext
5904 cat >>conftest.
$ac_ext <<_ACEOF
5905 /* end confdefs.h. */
5907 /* BSD/OS 4.0.1 has a bug: <stddef.h>, <stdio.h> and <time.h> must be
5908 included before <wchar.h>. */
5921 static int test_array [1 - 2 * !((sizeof ($gltype) * CHAR_BIT) < 0)];
5928 rm -f conftest.
$ac_objext
5929 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
5930 (eval $ac_compile) 2>conftest.er1
5932 grep -v '^ *+' conftest.er1
>conftest.err
5934 cat conftest.err
>&5
5935 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5936 (exit $ac_status); } &&
5937 { ac_try
='test -z "$ac_c_werror_flag"
5938 || test ! -s conftest.err'
5939 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5942 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5943 (exit $ac_status); }; } &&
5944 { ac_try
='test -s conftest.$ac_objext'
5945 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5948 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5949 (exit $ac_status); }; }; then
5952 cat >conftest.
$ac_ext <<_ACEOF
5955 cat confdefs.h
>>conftest.
$ac_ext
5956 cat >>conftest.
$ac_ext <<_ACEOF
5957 /* end confdefs.h. */
5959 /* BSD/OS 4.0.1 has a bug: <stddef.h>, <stdio.h> and <time.h> must be
5960 included before <wchar.h>. */
5973 static int test_array [1 - 2 * !((sizeof ($gltype) * CHAR_BIT) >= $ac_mid)];
5980 rm -f conftest.
$ac_objext
5981 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
5982 (eval $ac_compile) 2>conftest.er1
5984 grep -v '^ *+' conftest.er1
>conftest.err
5986 cat conftest.err
>&5
5987 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5988 (exit $ac_status); } &&
5989 { ac_try
='test -z "$ac_c_werror_flag"
5990 || test ! -s conftest.err'
5991 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5994 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5995 (exit $ac_status); }; } &&
5996 { ac_try
='test -s conftest.$ac_objext'
5997 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6000 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6001 (exit $ac_status); }; }; then
6002 ac_lo
=$ac_mid; break
6004 echo "$as_me: failed program was:" >&5
6005 sed 's/^/| /' conftest.
$ac_ext >&5
6007 ac_hi
=`expr '(' $ac_mid ')' - 1`
6008 if test $ac_mid -le $ac_hi; then
6012 ac_mid
=`expr 2 '*' $ac_mid`
6014 rm -f conftest.err conftest.
$ac_objext conftest.
$ac_ext
6017 echo "$as_me: failed program was:" >&5
6018 sed 's/^/| /' conftest.
$ac_ext >&5
6022 rm -f conftest.err conftest.
$ac_objext conftest.
$ac_ext
6024 rm -f conftest.err conftest.
$ac_objext conftest.
$ac_ext
6025 # Binary search between lo and hi bounds.
6026 while test "x$ac_lo" != "x$ac_hi"; do
6027 ac_mid
=`expr '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo`
6028 cat >conftest.
$ac_ext <<_ACEOF
6031 cat confdefs.h
>>conftest.
$ac_ext
6032 cat >>conftest.
$ac_ext <<_ACEOF
6033 /* end confdefs.h. */
6035 /* BSD/OS 4.0.1 has a bug: <stddef.h>, <stdio.h> and <time.h> must be
6036 included before <wchar.h>. */
6049 static int test_array [1 - 2 * !((sizeof ($gltype) * CHAR_BIT) <= $ac_mid)];
6056 rm -f conftest.
$ac_objext
6057 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
6058 (eval $ac_compile) 2>conftest.er1
6060 grep -v '^ *+' conftest.er1
>conftest.err
6062 cat conftest.err
>&5
6063 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6064 (exit $ac_status); } &&
6065 { ac_try
='test -z "$ac_c_werror_flag"
6066 || test ! -s conftest.err'
6067 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6070 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6071 (exit $ac_status); }; } &&
6072 { ac_try
='test -s conftest.$ac_objext'
6073 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6076 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6077 (exit $ac_status); }; }; then
6080 echo "$as_me: failed program was:" >&5
6081 sed 's/^/| /' conftest.
$ac_ext >&5
6083 ac_lo
=`expr '(' $ac_mid ')' + 1`
6085 rm -f conftest.err conftest.
$ac_objext conftest.
$ac_ext
6089 '') result
=unknown
;;
6092 if test "$cross_compiling" = yes; then
6093 { { echo "$as_me:$LINENO: error: in \`$ac_pwd':" >&5
6094 echo "$as_me: error: in \`$ac_pwd':" >&2;}
6095 { { echo "$as_me:$LINENO: error: cannot run test program while cross compiling
6096 See \`config.log' for more details." >&5
6097 echo "$as_me: error: cannot run test program while cross compiling
6098 See \`config.log' for more details." >&2;}
6099 { (exit 1); exit 1; }; }; }
6101 cat >conftest.
$ac_ext <<_ACEOF
6104 cat confdefs.h
>>conftest.
$ac_ext
6105 cat >>conftest.
$ac_ext <<_ACEOF
6106 /* end confdefs.h. */
6108 /* BSD/OS 4.0.1 has a bug: <stddef.h>, <stdio.h> and <time.h> must be
6109 included before <wchar.h>. */
6119 long longval () { return sizeof ($gltype) * CHAR_BIT; }
6120 unsigned long ulongval () { return sizeof ($gltype) * CHAR_BIT; }
6127 FILE *f = fopen ("conftest.val", "w");
6130 if ((sizeof ($gltype) * CHAR_BIT) < 0)
6132 long i = longval ();
6133 if (i != (sizeof ($gltype) * CHAR_BIT))
6135 fprintf (f, "%ld\n", i);
6139 unsigned long i = ulongval ();
6140 if (i != (sizeof ($gltype) * CHAR_BIT))
6142 fprintf (f, "%lu\n", i);
6144 exit (ferror (f) || fclose (f) != 0);
6150 rm -f conftest
$ac_exeext
6151 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
6152 (eval $ac_link) 2>&5
6154 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6155 (exit $ac_status); } && { ac_try
='./conftest$ac_exeext'
6156 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6159 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6160 (exit $ac_status); }; }; then
6161 result
=`cat conftest.val`
6163 echo "$as_me: program exited with status $ac_status" >&5
6164 echo "$as_me: failed program was:" >&5
6165 sed 's/^/| /' conftest.
$ac_ext >&5
6170 rm -f core
*.core gmon.out bb.out conftest
$ac_exeext conftest.
$ac_objext conftest.
$ac_ext
6174 eval gl_cv_bitsizeof_
${gltype}=\
$result
6177 echo "$as_me:$LINENO: result: `eval echo '${'gl_cv_bitsizeof_${gltype}'}'`" >&5
6178 echo "${ECHO_T}`eval echo '${'gl_cv_bitsizeof_${gltype}'}'`" >&6
6179 eval result
=\
$gl_cv_bitsizeof_${gltype}
6180 if test $result = unknown
; then
6183 GLTYPE
=`echo "$gltype" | tr 'abcdefghijklmnopqrstuvwxyz ' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ_'`
6184 cat >>confdefs.h
<<_ACEOF
6185 #define BITSIZEOF_${GLTYPE} $result
6188 eval BITSIZEOF_
${GLTYPE}=\
$result
6197 for gltype
in sig_atomic_t wchar_t wint_t
; do
6198 echo "$as_me:$LINENO: checking whether $gltype is signed" >&5
6199 echo $ECHO_N "checking whether $gltype is signed... $ECHO_C" >&6
6200 if eval "test \"\${gl_cv_type_${gltype}_signed+set}\" = set"; then
6201 echo $ECHO_N "(cached) $ECHO_C" >&6
6203 cat >conftest.
$ac_ext <<_ACEOF
6206 cat confdefs.h
>>conftest.
$ac_ext
6207 cat >>conftest.
$ac_ext <<_ACEOF
6208 /* end confdefs.h. */
6210 /* BSD/OS 4.0.1 has a bug: <stddef.h>, <stdio.h> and <time.h> must be
6211 included before <wchar.h>. */
6220 int verify[2 * (($gltype) -1 < ($gltype) 0) - 1];
6229 rm -f conftest.
$ac_objext
6230 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
6231 (eval $ac_compile) 2>conftest.er1
6233 grep -v '^ *+' conftest.er1
>conftest.err
6235 cat conftest.err
>&5
6236 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6237 (exit $ac_status); } &&
6238 { ac_try
='test -z "$ac_c_werror_flag"
6239 || test ! -s conftest.err'
6240 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6243 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6244 (exit $ac_status); }; } &&
6245 { ac_try
='test -s conftest.$ac_objext'
6246 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6249 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6250 (exit $ac_status); }; }; then
6253 echo "$as_me: failed program was:" >&5
6254 sed 's/^/| /' conftest.
$ac_ext >&5
6258 rm -f conftest.err conftest.
$ac_objext conftest.
$ac_ext
6259 eval gl_cv_type_
${gltype}_signed
=\
$result
6262 echo "$as_me:$LINENO: result: `eval echo '${'gl_cv_type_${gltype}_signed'}'`" >&5
6263 echo "${ECHO_T}`eval echo '${'gl_cv_type_${gltype}_signed'}'`" >&6
6264 eval result
=\
$gl_cv_type_${gltype}_signed
6265 GLTYPE
=`echo $gltype | tr 'abcdefghijklmnopqrstuvwxyz ' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ_'`
6266 if test "$result" = yes; then
6267 cat >>confdefs.h
<<_ACEOF
6268 #define HAVE_SIGNED_${GLTYPE} 1
6271 eval HAVE_SIGNED_
${GLTYPE}=1
6273 eval HAVE_SIGNED_
${GLTYPE}=0
6278 gl_cv_type_ptrdiff_t_signed
=yes
6279 gl_cv_type_size_t_signed
=no
6287 for gltype
in ptrdiff_t sig_atomic_t size_t wchar_t wint_t
; do
6288 echo "$as_me:$LINENO: checking for $gltype integer literal suffix" >&5
6289 echo $ECHO_N "checking for $gltype integer literal suffix... $ECHO_C" >&6
6290 if eval "test \"\${gl_cv_type_${gltype}_suffix+set}\" = set"; then
6291 echo $ECHO_N "(cached) $ECHO_C" >&6
6293 eval gl_cv_type_
${gltype}_suffix
=no
6294 eval result
=\
$gl_cv_type_${gltype}_signed
6295 if test "$result" = yes; then
6300 for glsuf
in "$glsufu" ${glsufu}l ${glsufu}ll ${glsufu}i64
; do
6303 l
) gltype1
='long int';;
6304 ll
) gltype1
='long long int';;
6305 i64
) gltype1
='__int64';;
6306 u
) gltype1
='unsigned int';;
6307 ul
) gltype1
='unsigned long int';;
6308 ull
) gltype1
='unsigned long long int';;
6309 ui64
)gltype1
='unsigned __int64';;
6311 cat >conftest.
$ac_ext <<_ACEOF
6314 cat confdefs.h
>>conftest.
$ac_ext
6315 cat >>conftest.
$ac_ext <<_ACEOF
6316 /* end confdefs.h. */
6318 /* BSD/OS 4.0.1 has a bug: <stddef.h>, <stdio.h> and <time.h> must be
6319 included before <wchar.h>. */
6329 extern $gltype1 foo;
6338 rm -f conftest.
$ac_objext
6339 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
6340 (eval $ac_compile) 2>conftest.er1
6342 grep -v '^ *+' conftest.er1
>conftest.err
6344 cat conftest.err
>&5
6345 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6346 (exit $ac_status); } &&
6347 { ac_try
='test -z "$ac_c_werror_flag"
6348 || test ! -s conftest.err'
6349 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6352 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6353 (exit $ac_status); }; } &&
6354 { ac_try
='test -s conftest.$ac_objext'
6355 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6358 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6359 (exit $ac_status); }; }; then
6360 eval gl_cv_type_
${gltype}_suffix
=\
$glsuf
6362 echo "$as_me: failed program was:" >&5
6363 sed 's/^/| /' conftest.
$ac_ext >&5
6366 rm -f conftest.err conftest.
$ac_objext conftest.
$ac_ext
6367 eval result
=\
$gl_cv_type_${gltype}_suffix
6368 test "$result" != no
&& break
6371 echo "$as_me:$LINENO: result: `eval echo '${'gl_cv_type_${gltype}_suffix'}'`" >&5
6372 echo "${ECHO_T}`eval echo '${'gl_cv_type_${gltype}_suffix'}'`" >&6
6373 GLTYPE
=`echo $gltype | tr 'abcdefghijklmnopqrstuvwxyz ' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ_'`
6374 eval result
=\
$gl_cv_type_${gltype}_suffix
6375 test "$result" = no
&& result
=
6376 eval ${GLTYPE}_SUFFIX
=\
$result
6377 cat >>confdefs.h
<<_ACEOF
6378 #define ${GLTYPE}_SUFFIX $result
6394 echo "$as_me:$LINENO: checking whether <wchar.h> is standalone" >&5
6395 echo $ECHO_N "checking whether <wchar.h> is standalone... $ECHO_C" >&6
6396 if test "${gl_cv_header_wchar_h_standalone+set}" = set; then
6397 echo $ECHO_N "(cached) $ECHO_C" >&6
6399 cat >conftest.
$ac_ext <<_ACEOF
6403 rm -f conftest.
$ac_objext
6404 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
6405 (eval $ac_compile) 2>conftest.er1
6407 grep -v '^ *+' conftest.er1
>conftest.err
6409 cat conftest.err
>&5
6410 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6411 (exit $ac_status); } &&
6412 { ac_try
='test -z "$ac_c_werror_flag"
6413 || test ! -s conftest.err'
6414 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6417 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6418 (exit $ac_status); }; } &&
6419 { ac_try
='test -s conftest.$ac_objext'
6420 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6423 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6424 (exit $ac_status); }; }; then
6425 gl_cv_header_wchar_h_standalone
=yes
6427 echo "$as_me: failed program was:" >&5
6428 sed 's/^/| /' conftest.
$ac_ext >&5
6430 gl_cv_header_wchar_h_standalone
=no
6432 rm -f conftest.err conftest.
$ac_objext conftest.
$ac_ext
6434 echo "$as_me:$LINENO: result: $gl_cv_header_wchar_h_standalone" >&5
6435 echo "${ECHO_T}$gl_cv_header_wchar_h_standalone" >&6
6436 if test $gl_cv_header_wchar_h_standalone != yes; then
6447 if test $ac_cv_header_wchar_h = yes; then
6464 if test $gl_cv_have_include_next = yes; then
6465 gl_cv_next_wchar_h
='<'wchar.h
'>'
6467 echo "$as_me:$LINENO: checking absolute name of <wchar.h>" >&5
6468 echo $ECHO_N "checking absolute name of <wchar.h>... $ECHO_C" >&6
6469 if test "${gl_cv_next_wchar_h+set}" = set; then
6470 echo $ECHO_N "(cached) $ECHO_C" >&6
6473 if test $ac_cv_header_wchar_h = yes; then
6474 cat >conftest.
$ac_ext <<_ACEOF
6477 cat confdefs.h
>>conftest.
$ac_ext
6478 cat >>conftest.
$ac_ext <<_ACEOF
6479 /* end confdefs.h. */
6483 gl_cv_next_wchar_h
='"'`(eval "$ac_cpp conftest.$ac_ext") 2>&5 |
6484 sed -n '\#/wchar.h#{
6485 s#.*"\(.*/wchar.h\)".*#\1#
6491 gl_cv_next_wchar_h
='<'wchar.h
'>'
6495 echo "$as_me:$LINENO: result: $gl_cv_next_wchar_h" >&5
6496 echo "${ECHO_T}$gl_cv_next_wchar_h" >&6
6498 NEXT_WCHAR_H
=$gl_cv_next_wchar_h
6512 gl_source_base
='tests'
6517 LIBGNU_LIBDEPS
="$gl_libdeps"
6519 LIBGNU_LTLIBDEPS
="$gl_ltlibdeps"
6523 # For Makefile dependencies.
6525 if test x
"$STDINT_H" != x
; then
6526 GNULIB_STDINT_H
=gnulib
/$STDINT_H
6532 cat >>confdefs.h
<<_ACEOF
6533 #define PACKAGE "$PACKAGE"
6538 # GDB does not use automake, but gnulib does. This line lets us
6539 # generate its Makefile.in.
6540 am__api_version
="1.9"
6541 # Find a good install program. We prefer a C program (faster),
6542 # so one script is as good as another. But avoid the broken or
6543 # incompatible versions:
6544 # SysV /etc/install, /usr/sbin/install
6545 # SunOS /usr/etc/install
6546 # IRIX /sbin/install
6548 # AmigaOS /C/install, which installs bootblocks on floppy discs
6549 # AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag
6550 # AFS /usr/afsws/bin/install, which mishandles nonexistent args
6551 # SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff"
6552 # OS/2's system install, which has a completely different semantic
6553 # ./install, which can be erroneously created by make from ./install.sh.
6554 echo "$as_me:$LINENO: checking for a BSD-compatible install" >&5
6555 echo $ECHO_N "checking for a BSD-compatible install... $ECHO_C" >&6
6556 if test -z "$INSTALL"; then
6557 if test "${ac_cv_path_install+set}" = set; then
6558 echo $ECHO_N "(cached) $ECHO_C" >&6
6560 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
6564 test -z "$as_dir" && as_dir
=.
6565 # Account for people who put trailing slashes in PATH elements.
6567 .
/ | .
// |
/cC
/* | \
6568 /etc
/* |
/usr
/sbin
/* |
/usr
/etc
/* |
/sbin
/* |
/usr
/afsws
/bin
/* | \
6569 ?
:\\/os2
\\/install\\/* | ?
:\\/OS2
\\/INSTALL
\\/* | \
6572 # OSF1 and SCO ODT 3.0 have their own names for install.
6573 # Don't use installbsd from OSF since it installs stuff as root
6575 for ac_prog
in ginstall scoinst
install; do
6576 for ac_exec_ext
in '' $ac_executable_extensions; do
6577 if $as_executable_p "$as_dir/$ac_prog$ac_exec_ext"; then
6578 if test $ac_prog = install &&
6579 grep dspmsg
"$as_dir/$ac_prog$ac_exec_ext" >/dev
/null
2>&1; then
6580 # AIX install. It has an incompatible calling convention.
6582 elif test $ac_prog = install &&
6583 grep pwplus
"$as_dir/$ac_prog$ac_exec_ext" >/dev
/null
2>&1; then
6584 # program-specific install script used by HP pwplus--don't use.
6587 ac_cv_path_install
="$as_dir/$ac_prog$ac_exec_ext -c"
6599 if test "${ac_cv_path_install+set}" = set; then
6600 INSTALL
=$ac_cv_path_install
6602 # As a last resort, use the slow shell script. We don't cache a
6603 # path for INSTALL within a source directory, because that will
6604 # break other packages using the cache if that directory is
6605 # removed, or if the path is relative.
6606 INSTALL
=$ac_install_sh
6609 echo "$as_me:$LINENO: result: $INSTALL" >&5
6610 echo "${ECHO_T}$INSTALL" >&6
6612 # Use test -z because SunOS4 sh mishandles braces in ${var-val}.
6613 # It thinks the first close brace ends the variable substitution.
6614 test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM
='${INSTALL}'
6616 test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT
='${INSTALL}'
6618 test -z "$INSTALL_DATA" && INSTALL_DATA
='${INSTALL} -m 644'
6620 echo "$as_me:$LINENO: checking whether build environment is sane" >&5
6621 echo $ECHO_N "checking whether build environment is sane... $ECHO_C" >&6
6624 echo timestamp
> conftest.
file
6625 # Do `set' in a subshell so we don't clobber the current shell's
6626 # arguments. Must try -L first in case configure is actually a
6627 # symlink; some systems play weird games with the mod time of symlinks
6628 # (eg FreeBSD returns the mod time of the symlink's containing
6631 set X
`ls -Lt $srcdir/configure conftest.file 2> /dev/null`
6632 if test "$*" = "X"; then
6634 set X
`ls -t $srcdir/configure conftest.file`
6637 if test "$*" != "X $srcdir/configure conftest.file" \
6638 && test "$*" != "X conftest.file $srcdir/configure"; then
6640 # If neither matched, then we have a broken ls. This can happen
6641 # if, for instance, CONFIG_SHELL is bash and it inherits a
6642 # broken ls alias from the environment. This has actually
6643 # happened. Such a system could not be considered "sane".
6644 { { echo "$as_me:$LINENO: error: ls -t appears to fail. Make sure there is not a broken
6645 alias in your environment" >&5
6646 echo "$as_me: error: ls -t appears to fail. Make sure there is not a broken
6647 alias in your environment" >&2;}
6648 { (exit 1); exit 1; }; }
6651 test "$2" = conftest.
file
6657 { { echo "$as_me:$LINENO: error: newly created file is older than distributed files!
6658 Check your system clock" >&5
6659 echo "$as_me: error: newly created file is older than distributed files!
6660 Check your system clock" >&2;}
6661 { (exit 1); exit 1; }; }
6663 echo "$as_me:$LINENO: result: yes" >&5
6664 echo "${ECHO_T}yes" >&6
6665 test "$program_prefix" != NONE
&&
6666 program_transform_name
="s,^,$program_prefix,;$program_transform_name"
6667 # Use a double $ so make ignores it.
6668 test "$program_suffix" != NONE
&&
6669 program_transform_name
="s,\$,$program_suffix,;$program_transform_name"
6670 # Double any \ or $. echo might interpret backslashes.
6671 # By default was `s,x,x', remove it if useless.
6672 cat <<\_ACEOF
>conftest.
sed
6673 s
/[\\$
]/&&/g
;s
/;s
,x
,x
,$
//
6675 program_transform_name
=`echo $program_transform_name | sed -f conftest.sed`
6678 # expand $ac_aux_dir to an absolute path
6679 am_aux_dir
=`cd $ac_aux_dir && pwd`
6681 test x
"${MISSING+set}" = xset || MISSING
="\${SHELL} $am_aux_dir/missing"
6682 # Use eval to expand $SHELL
6683 if eval "$MISSING --run true"; then
6684 am_missing_run
="$MISSING --run "
6687 { echo "$as_me:$LINENO: WARNING: \`missing' script is too old or missing" >&5
6688 echo "$as_me: WARNING: \`missing' script is too old or missing" >&2;}
6691 if mkdir
-p --version .
>/dev
/null
2>&1 && test ! -d .
/--version; then
6692 # We used to keeping the `.' as first argument, in order to
6693 # allow $(mkdir_p) to be used without argument. As in
6694 # $(mkdir_p) $(somedir)
6695 # where $(somedir) is conditionally defined. However this is wrong
6697 # 1. if the package is installed by a user who cannot write `.'
6698 # make install will fail,
6699 # 2. the above comment should most certainly read
6700 # $(mkdir_p) $(DESTDIR)$(somedir)
6701 # so it does not work when $(somedir) is undefined and
6702 # $(DESTDIR) is not.
6703 # To support the latter case, we have to write
6704 # test -z "$(somedir)" || $(mkdir_p) $(DESTDIR)$(somedir),
6705 # so the `.' trick is pointless.
6706 mkdir_p
='mkdir -p --'
6708 # On NextStep and OpenStep, the `mkdir' command does not
6709 # recognize any option. It will interpret all options as
6710 # directories to create, and then abort because `.' already
6712 for d
in .
/-p .
/--version;
6714 test -d $d && rmdir $d
6716 # $(mkinstalldirs) is defined by Automake if mkinstalldirs exists.
6717 if test -f "$ac_aux_dir/mkinstalldirs"; then
6718 mkdir_p
='$(mkinstalldirs)'
6720 mkdir_p
='$(install_sh) -d'
6724 for ac_prog
in gawk mawk nawk
awk
6726 # Extract the first word of "$ac_prog", so it can be a program name with args.
6727 set dummy
$ac_prog; ac_word
=$2
6728 echo "$as_me:$LINENO: checking for $ac_word" >&5
6729 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
6730 if test "${ac_cv_prog_AWK+set}" = set; then
6731 echo $ECHO_N "(cached) $ECHO_C" >&6
6733 if test -n "$AWK"; then
6734 ac_cv_prog_AWK
="$AWK" # Let the user override the test.
6736 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
6740 test -z "$as_dir" && as_dir
=.
6741 for ac_exec_ext
in '' $ac_executable_extensions; do
6742 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
6743 ac_cv_prog_AWK
="$ac_prog"
6744 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6753 if test -n "$AWK"; then
6754 echo "$as_me:$LINENO: result: $AWK" >&5
6755 echo "${ECHO_T}$AWK" >&6
6757 echo "$as_me:$LINENO: result: no" >&5
6758 echo "${ECHO_T}no" >&6
6761 test -n "$AWK" && break
6764 ac_config_commands
="$ac_config_commands depfiles"
6767 am_make
=${MAKE-make}
6768 cat > confinc
<< 'END'
6773 # If we don't find an include directive, just comment out the code.
6774 echo "$as_me:$LINENO: checking for style of include used by $am_make" >&5
6775 echo $ECHO_N "checking for style of include used by $am_make... $ECHO_C" >&6
6779 # First try GNU make style include.
6780 echo "include confinc" > confmf
6781 # We grep out `Entering directory' and `Leaving directory'
6782 # messages which can occur if `w' ends up in MAKEFLAGS.
6783 # In particular we don't look at `^make:' because GNU make might
6784 # be invoked under some other name (usually "gmake"), in which
6785 # case it prints its new name instead of `make'.
6786 if test "`$am_make -s -f confmf 2> /dev/null | grep -v 'ing directory'`" = "done"; then
6791 # Now try BSD make style include.
6792 if test "$am__include" = "#"; then
6793 echo '.include "confinc"' > confmf
6794 if test "`$am_make -s -f confmf 2> /dev/null`" = "done"; then
6795 am__include
=.include
6802 echo "$as_me:$LINENO: result: $_am_result" >&5
6803 echo "${ECHO_T}$_am_result" >&6
6804 rm -f confinc confmf
6806 # Check whether --enable-dependency-tracking or --disable-dependency-tracking was given.
6807 if test "${enable_dependency_tracking+set}" = set; then
6808 enableval
="$enable_dependency_tracking"
6811 if test "x$enable_dependency_tracking" != xno
; then
6812 am_depcomp
="$ac_aux_dir/depcomp"
6817 if test "x$enable_dependency_tracking" != xno; then
6827 # test to see if srcdir already configured
6828 if test "`cd $srcdir && pwd`" != "`pwd`" &&
6829 test -f $srcdir/config.status
; then
6830 { { echo "$as_me:$LINENO: error: source directory already configured; run \"make distclean\" there first" >&5
6831 echo "$as_me: error: source directory already configured; run \"make distclean\" there first" >&2;}
6832 { (exit 1); exit 1; }; }
6835 # test whether we have cygpath
6836 if test -z "$CYGPATH_W"; then
6837 if (cygpath
--version) >/dev
/null
2>/dev
/null
; then
6838 CYGPATH_W
='cygpath -w'
6845 # Define the identity of the package.
6847 VERSION
=UNUSED-VERSION
6850 # Some tools Automake needs.
6852 ACLOCAL
=${ACLOCAL-"${am_missing_run}aclocal-${am__api_version}"}
6855 AUTOCONF
=${AUTOCONF-"${am_missing_run}autoconf"}
6858 AUTOMAKE
=${AUTOMAKE-"${am_missing_run}automake-${am__api_version}"}
6861 AUTOHEADER
=${AUTOHEADER-"${am_missing_run}autoheader"}
6864 MAKEINFO
=${MAKEINFO-"${am_missing_run}makeinfo"}
6866 install_sh
=${install_sh-"$am_aux_dir/install-sh"}
6868 # Installed binaries are usually stripped using `strip' when the user
6869 # run `make install-strip'. However `strip' might not be the right
6870 # tool to use in cross-compilation environments, therefore Automake
6871 # will honor the `STRIP' environment variable to overrule this program.
6872 if test "$cross_compiling" != no
; then
6873 if test -n "$ac_tool_prefix"; then
6874 # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args.
6875 set dummy
${ac_tool_prefix}strip
; ac_word
=$2
6876 echo "$as_me:$LINENO: checking for $ac_word" >&5
6877 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
6878 if test "${ac_cv_prog_STRIP+set}" = set; then
6879 echo $ECHO_N "(cached) $ECHO_C" >&6
6881 if test -n "$STRIP"; then
6882 ac_cv_prog_STRIP
="$STRIP" # Let the user override the test.
6884 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
6888 test -z "$as_dir" && as_dir
=.
6889 for ac_exec_ext
in '' $ac_executable_extensions; do
6890 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
6891 ac_cv_prog_STRIP
="${ac_tool_prefix}strip"
6892 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6900 STRIP
=$ac_cv_prog_STRIP
6901 if test -n "$STRIP"; then
6902 echo "$as_me:$LINENO: result: $STRIP" >&5
6903 echo "${ECHO_T}$STRIP" >&6
6905 echo "$as_me:$LINENO: result: no" >&5
6906 echo "${ECHO_T}no" >&6
6910 if test -z "$ac_cv_prog_STRIP"; then
6912 # Extract the first word of "strip", so it can be a program name with args.
6913 set dummy strip
; ac_word
=$2
6914 echo "$as_me:$LINENO: checking for $ac_word" >&5
6915 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
6916 if test "${ac_cv_prog_ac_ct_STRIP+set}" = set; then
6917 echo $ECHO_N "(cached) $ECHO_C" >&6
6919 if test -n "$ac_ct_STRIP"; then
6920 ac_cv_prog_ac_ct_STRIP
="$ac_ct_STRIP" # Let the user override the test.
6922 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
6926 test -z "$as_dir" && as_dir
=.
6927 for ac_exec_ext
in '' $ac_executable_extensions; do
6928 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
6929 ac_cv_prog_ac_ct_STRIP
="strip"
6930 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6936 test -z "$ac_cv_prog_ac_ct_STRIP" && ac_cv_prog_ac_ct_STRIP
=":"
6939 ac_ct_STRIP
=$ac_cv_prog_ac_ct_STRIP
6940 if test -n "$ac_ct_STRIP"; then
6941 echo "$as_me:$LINENO: result: $ac_ct_STRIP" >&5
6942 echo "${ECHO_T}$ac_ct_STRIP" >&6
6944 echo "$as_me:$LINENO: result: no" >&5
6945 echo "${ECHO_T}no" >&6
6950 STRIP
="$ac_cv_prog_STRIP"
6954 INSTALL_STRIP_PROGRAM
="\${SHELL} \$(install_sh) -c -s"
6956 # We need awk for the "check" target. The system "awk" is bad on
6958 # Always define AMTAR for backward compatibility.
6960 AMTAR
=${AMTAR-"${am_missing_run}tar"}
6962 am__tar
='${AMTAR} chof - "$$tardir"'; am__untar
='${AMTAR} xf -'
6967 depcc
="$CC" am_compiler_list
=
6969 echo "$as_me:$LINENO: checking dependency style of $depcc" >&5
6970 echo $ECHO_N "checking dependency style of $depcc... $ECHO_C" >&6
6971 if test "${am_cv_CC_dependencies_compiler_type+set}" = set; then
6972 echo $ECHO_N "(cached) $ECHO_C" >&6
6974 if test -z "$AMDEP_TRUE" && test -f "$am_depcomp"; then
6975 # We make a subdir and do the tests there. Otherwise we can end up
6976 # making bogus files that we don't know about and never remove. For
6977 # instance it was reported that on HP-UX the gcc test will end up
6978 # making a dummy file named `D' -- because `-MD' means `put the output
6981 # Copy depcomp to subdir because otherwise we won't find it if we're
6982 # using a relative directory.
6983 cp "$am_depcomp" conftest.dir
6985 # We will build objects and dependencies in a subdirectory because
6986 # it helps to detect inapplicable dependency modes. For instance
6987 # both Tru64's cc and ICC support -MD to output dependencies as a
6988 # side effect of compilation, but ICC will put the dependencies in
6989 # the current directory while Tru64 will put them in the object
6993 am_cv_CC_dependencies_compiler_type
=none
6994 if test "$am_compiler_list" = ""; then
6995 am_compiler_list
=`sed -n 's/^#*\([a-zA-Z0-9]*\))$/\1/p' < ./depcomp`
6997 for depmode
in $am_compiler_list; do
6998 # Setup a source with many dependencies, because some compilers
6999 # like to wrap large dependency lists on column 80 (with \), and
7000 # we should not choose a depcomp mode which is confused by this.
7002 # We need to recreate these files for each test, as the compiler may
7003 # overwrite some of them when testing with obscure command lines.
7004 # This happens at least with the AIX C compiler.
7006 for i
in 1 2 3 4 5 6; do
7007 echo '#include "conftst'$i'.h"' >> sub
/conftest.c
7008 # Using `: > sub/conftst$i.h' creates only sub/conftst1.h with
7009 # Solaris 8's {/usr,}/bin/sh.
7010 touch sub
/conftst
$i.h
7012 echo "${am__include} ${am__quote}sub/conftest.Po${am__quote}" > confmf
7016 # after this tag, mechanisms are not by side-effect, so they'll
7017 # only be used when explicitly requested
7018 if test "x$enable_dependency_tracking" = xyes
; then
7026 # We check with `-c' and `-o' for the sake of the "dashmstdout"
7027 # mode. It turns out that the SunPro C++ compiler does not properly
7028 # handle `-M -o', and we need to detect this.
7029 if depmode
=$depmode \
7030 source=sub
/conftest.c object
=sub
/conftest.
${OBJEXT-o} \
7031 depfile
=sub
/conftest.Po tmpdepfile
=sub
/conftest.TPo \
7032 $SHELL .
/depcomp
$depcc -c -o sub
/conftest.
${OBJEXT-o} sub
/conftest.c \
7033 >/dev
/null
2>conftest.err
&&
7034 grep sub
/conftst6.h sub
/conftest.Po
> /dev
/null
2>&1 &&
7035 grep sub
/conftest.
${OBJEXT-o} sub
/conftest.Po
> /dev
/null
2>&1 &&
7036 ${MAKE-make} -s -f confmf
> /dev
/null
2>&1; then
7037 # icc doesn't choke on unknown options, it will just issue warnings
7038 # or remarks (even with -Werror). So we grep stderr for any message
7039 # that says an option was ignored or not supported.
7040 # When given -MP, icc 7.0 and 7.1 complain thusly:
7041 # icc: Command line warning: ignoring option '-M'; no argument required
7042 # The diagnosis changed in icc 8.0:
7043 # icc: Command line remark: option '-MP' not supported
7044 if (grep 'ignoring option' conftest.err ||
7045 grep 'not supported' conftest.err
) >/dev
/null
2>&1; then :; else
7046 am_cv_CC_dependencies_compiler_type
=$depmode
7055 am_cv_CC_dependencies_compiler_type
=none
7059 echo "$as_me:$LINENO: result: $am_cv_CC_dependencies_compiler_type" >&5
7060 echo "${ECHO_T}$am_cv_CC_dependencies_compiler_type" >&6
7061 CCDEPMODE
=depmode
=$am_cv_CC_dependencies_compiler_type
7066 test "x$enable_dependency_tracking" != xno \
7067 && test "$am_cv_CC_dependencies_compiler_type" = gcc3
; then
7069 am__fastdepCC_FALSE
='#'
7071 am__fastdepCC_TRUE
='#'
7072 am__fastdepCC_FALSE
=
7078 debugdir
=${libdir}/debug
7081 # Check whether --with-separate-debug-dir or --without-separate-debug-dir was given.
7082 if test "${with_separate_debug_dir+set}" = set; then
7083 withval
="$with_separate_debug_dir"
7084 debugdir
="${withval}"
7088 test "x$prefix" = xNONE
&& prefix
="$ac_default_prefix"
7089 test "x$exec_prefix" = xNONE
&& exec_prefix
='${prefix}'
7090 ac_define_dir
=`eval echo $debugdir`
7091 ac_define_dir
=`eval echo $ac_define_dir`
7093 cat >>confdefs.h
<<_ACEOF
7094 #define DEBUGDIR "$ac_define_dir"
7098 #AC_DEFINE_UNQUOTED(DEBUGDIR, "$debugdir"),
7100 if test "x$exec_prefix" = xNONE ||
test "x$exec_prefix" = 'x${prefix}'; then
7101 if test "x$prefix" = xNONE
; then
7102 test_prefix
=/usr
/local
7107 test_prefix
=$exec_prefix
7110 "${test_prefix}"|
"${test_prefix}/"*|\
7111 '${exec_prefix}'|
'${exec_prefix}/'*)
7113 cat >>confdefs.h
<<\_ACEOF
7114 #define DEBUGDIR_RELOCATABLE 1
7122 subdirs
="$subdirs doc testsuite"
7125 # Check whether to support alternative target configurations
7126 # Check whether --enable-targets or --disable-targets was given.
7127 if test "${enable_targets+set}" = set; then
7128 enableval
="$enable_targets"
7129 case "${enableval}" in
7130 yes |
"") { { echo "$as_me:$LINENO: error: enable-targets option must specify target names or 'all'" >&5
7131 echo "$as_me: error: enable-targets option must specify target names or 'all'" >&2;}
7132 { (exit 1); exit 1; }; }
7134 no
) enable_targets
= ;;
7135 *) enable_targets
=$enableval ;;
7139 # Check whether to enable 64-bit support on 32-bit hosts
7140 # Check whether --enable-64-bit-bfd or --disable-64-bit-bfd was given.
7141 if test "${enable_64_bit_bfd+set}" = set; then
7142 enableval
="$enable_64_bit_bfd"
7143 case "${enableval}" in
7146 *) { { echo "$as_me:$LINENO: error: bad value ${enableval} for 64-bit-bfd option" >&5
7147 echo "$as_me: error: bad value ${enableval} for 64-bit-bfd option" >&2;}
7148 { (exit 1); exit 1; }; } ;;
7153 # Provide defaults for some variables set by the per-host and per-target
7155 gdb_host_obs
=posix-hdep.o
7157 if test "${target}" = "${host}"; then
7163 .
$srcdir/configure.
host
7165 # Accumulate some settings from configure.tgt over all enabled targets
7170 for targ_alias
in `echo $target_alias $enable_targets | sed 's/,/ /g'`
7172 if test "$targ_alias" = "all"; then
7175 # Canonicalize the secondary target names.
7176 result
=`$ac_config_sub $targ_alias 2>/dev/null`
7177 if test -n "$result"; then
7183 .
${srcdir}/configure.tgt
7185 # Target-specific object files
7186 for i
in ${gdb_target_obs}; do
7187 case " $TARGET_OBS " in
7190 TARGET_OBS
="$TARGET_OBS ${i}"
7195 # Check whether this target needs 64-bit CORE_ADDR
7196 if test x
${want64} = xfalse
; then
7197 .
${srcdir}/..
/bfd
/config.bfd
7202 if test x
${all_targets} = xtrue
; then
7204 # We want all 64-bit targets if we either:
7205 # - run on a 64-bit host or
7206 # - already require 64-bit support for some other target or
7207 # - the --enable-64-bit-bfd option was supplied
7208 # Otherwise we only support all 32-bit targets.
7210 # NOTE: This test must be in sync with the corresponding
7213 if test x
${want64} = xfalse
; then
7214 echo "$as_me:$LINENO: checking for long" >&5
7215 echo $ECHO_N "checking for long... $ECHO_C" >&6
7216 if test "${ac_cv_type_long+set}" = set; then
7217 echo $ECHO_N "(cached) $ECHO_C" >&6
7219 cat >conftest.
$ac_ext <<_ACEOF
7222 cat confdefs.h
>>conftest.
$ac_ext
7223 cat >>conftest.
$ac_ext <<_ACEOF
7224 /* end confdefs.h. */
7225 $ac_includes_default
7237 rm -f conftest.
$ac_objext
7238 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
7239 (eval $ac_compile) 2>conftest.er1
7241 grep -v '^ *+' conftest.er1
>conftest.err
7243 cat conftest.err
>&5
7244 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7245 (exit $ac_status); } &&
7246 { ac_try
='test -z "$ac_c_werror_flag"
7247 || test ! -s conftest.err'
7248 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7251 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7252 (exit $ac_status); }; } &&
7253 { ac_try
='test -s conftest.$ac_objext'
7254 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7257 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7258 (exit $ac_status); }; }; then
7261 echo "$as_me: failed program was:" >&5
7262 sed 's/^/| /' conftest.
$ac_ext >&5
7266 rm -f conftest.err conftest.
$ac_objext conftest.
$ac_ext
7268 echo "$as_me:$LINENO: result: $ac_cv_type_long" >&5
7269 echo "${ECHO_T}$ac_cv_type_long" >&6
7271 echo "$as_me:$LINENO: checking size of long" >&5
7272 echo $ECHO_N "checking size of long... $ECHO_C" >&6
7273 if test "${ac_cv_sizeof_long+set}" = set; then
7274 echo $ECHO_N "(cached) $ECHO_C" >&6
7276 if test "$ac_cv_type_long" = yes; then
7277 # The cast to unsigned long works around a bug in the HP C Compiler
7278 # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
7279 # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
7280 # This bug is HP SR number 8606223364.
7281 if test "$cross_compiling" = yes; then
7282 # Depending upon the size, compute the lo and hi bounds.
7283 cat >conftest.
$ac_ext <<_ACEOF
7286 cat confdefs.h
>>conftest.
$ac_ext
7287 cat >>conftest.
$ac_ext <<_ACEOF
7288 /* end confdefs.h. */
7289 $ac_includes_default
7293 static int test_array [1 - 2 * !(((long) (sizeof (long))) >= 0)];
7300 rm -f conftest.
$ac_objext
7301 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
7302 (eval $ac_compile) 2>conftest.er1
7304 grep -v '^ *+' conftest.er1
>conftest.err
7306 cat conftest.err
>&5
7307 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7308 (exit $ac_status); } &&
7309 { ac_try
='test -z "$ac_c_werror_flag"
7310 || test ! -s conftest.err'
7311 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7314 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7315 (exit $ac_status); }; } &&
7316 { ac_try
='test -s conftest.$ac_objext'
7317 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7320 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7321 (exit $ac_status); }; }; then
7324 cat >conftest.
$ac_ext <<_ACEOF
7327 cat confdefs.h
>>conftest.
$ac_ext
7328 cat >>conftest.
$ac_ext <<_ACEOF
7329 /* end confdefs.h. */
7330 $ac_includes_default
7334 static int test_array [1 - 2 * !(((long) (sizeof (long))) <= $ac_mid)];
7341 rm -f conftest.
$ac_objext
7342 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
7343 (eval $ac_compile) 2>conftest.er1
7345 grep -v '^ *+' conftest.er1
>conftest.err
7347 cat conftest.err
>&5
7348 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7349 (exit $ac_status); } &&
7350 { ac_try
='test -z "$ac_c_werror_flag"
7351 || test ! -s conftest.err'
7352 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7355 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7356 (exit $ac_status); }; } &&
7357 { ac_try
='test -s conftest.$ac_objext'
7358 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7361 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7362 (exit $ac_status); }; }; then
7363 ac_hi
=$ac_mid; break
7365 echo "$as_me: failed program was:" >&5
7366 sed 's/^/| /' conftest.
$ac_ext >&5
7368 ac_lo
=`expr $ac_mid + 1`
7369 if test $ac_lo -le $ac_mid; then
7373 ac_mid
=`expr 2 '*' $ac_mid + 1`
7375 rm -f conftest.err conftest.
$ac_objext conftest.
$ac_ext
7378 echo "$as_me: failed program was:" >&5
7379 sed 's/^/| /' conftest.
$ac_ext >&5
7381 cat >conftest.
$ac_ext <<_ACEOF
7384 cat confdefs.h
>>conftest.
$ac_ext
7385 cat >>conftest.
$ac_ext <<_ACEOF
7386 /* end confdefs.h. */
7387 $ac_includes_default
7391 static int test_array [1 - 2 * !(((long) (sizeof (long))) < 0)];
7398 rm -f conftest.
$ac_objext
7399 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
7400 (eval $ac_compile) 2>conftest.er1
7402 grep -v '^ *+' conftest.er1
>conftest.err
7404 cat conftest.err
>&5
7405 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7406 (exit $ac_status); } &&
7407 { ac_try
='test -z "$ac_c_werror_flag"
7408 || test ! -s conftest.err'
7409 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7412 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7413 (exit $ac_status); }; } &&
7414 { ac_try
='test -s conftest.$ac_objext'
7415 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7418 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7419 (exit $ac_status); }; }; then
7422 cat >conftest.
$ac_ext <<_ACEOF
7425 cat confdefs.h
>>conftest.
$ac_ext
7426 cat >>conftest.
$ac_ext <<_ACEOF
7427 /* end confdefs.h. */
7428 $ac_includes_default
7432 static int test_array [1 - 2 * !(((long) (sizeof (long))) >= $ac_mid)];
7439 rm -f conftest.
$ac_objext
7440 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
7441 (eval $ac_compile) 2>conftest.er1
7443 grep -v '^ *+' conftest.er1
>conftest.err
7445 cat conftest.err
>&5
7446 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7447 (exit $ac_status); } &&
7448 { ac_try
='test -z "$ac_c_werror_flag"
7449 || test ! -s conftest.err'
7450 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7453 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7454 (exit $ac_status); }; } &&
7455 { ac_try
='test -s conftest.$ac_objext'
7456 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7459 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7460 (exit $ac_status); }; }; then
7461 ac_lo
=$ac_mid; break
7463 echo "$as_me: failed program was:" >&5
7464 sed 's/^/| /' conftest.
$ac_ext >&5
7466 ac_hi
=`expr '(' $ac_mid ')' - 1`
7467 if test $ac_mid -le $ac_hi; then
7471 ac_mid
=`expr 2 '*' $ac_mid`
7473 rm -f conftest.err conftest.
$ac_objext conftest.
$ac_ext
7476 echo "$as_me: failed program was:" >&5
7477 sed 's/^/| /' conftest.
$ac_ext >&5
7481 rm -f conftest.err conftest.
$ac_objext conftest.
$ac_ext
7483 rm -f conftest.err conftest.
$ac_objext conftest.
$ac_ext
7484 # Binary search between lo and hi bounds.
7485 while test "x$ac_lo" != "x$ac_hi"; do
7486 ac_mid
=`expr '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo`
7487 cat >conftest.
$ac_ext <<_ACEOF
7490 cat confdefs.h
>>conftest.
$ac_ext
7491 cat >>conftest.
$ac_ext <<_ACEOF
7492 /* end confdefs.h. */
7493 $ac_includes_default
7497 static int test_array [1 - 2 * !(((long) (sizeof (long))) <= $ac_mid)];
7504 rm -f conftest.
$ac_objext
7505 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
7506 (eval $ac_compile) 2>conftest.er1
7508 grep -v '^ *+' conftest.er1
>conftest.err
7510 cat conftest.err
>&5
7511 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7512 (exit $ac_status); } &&
7513 { ac_try
='test -z "$ac_c_werror_flag"
7514 || test ! -s conftest.err'
7515 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7518 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7519 (exit $ac_status); }; } &&
7520 { ac_try
='test -s conftest.$ac_objext'
7521 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7524 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7525 (exit $ac_status); }; }; then
7528 echo "$as_me: failed program was:" >&5
7529 sed 's/^/| /' conftest.
$ac_ext >&5
7531 ac_lo
=`expr '(' $ac_mid ')' + 1`
7533 rm -f conftest.err conftest.
$ac_objext conftest.
$ac_ext
7536 ?
*) ac_cv_sizeof_long
=$ac_lo;;
7537 '') { { echo "$as_me:$LINENO: error: in \`$ac_pwd':" >&5
7538 echo "$as_me: error: in \`$ac_pwd':" >&2;}
7539 { { echo "$as_me:$LINENO: error: cannot compute sizeof (long), 77
7540 See \`config.log' for more details." >&5
7541 echo "$as_me: error: cannot compute sizeof (long), 77
7542 See \`config.log' for more details." >&2;}
7543 { (exit 1); exit 1; }; }; } ;;
7546 if test "$cross_compiling" = yes; then
7547 { { echo "$as_me:$LINENO: error: in \`$ac_pwd':" >&5
7548 echo "$as_me: error: in \`$ac_pwd':" >&2;}
7549 { { echo "$as_me:$LINENO: error: cannot run test program while cross compiling
7550 See \`config.log' for more details." >&5
7551 echo "$as_me: error: cannot run test program while cross compiling
7552 See \`config.log' for more details." >&2;}
7553 { (exit 1); exit 1; }; }; }
7555 cat >conftest.
$ac_ext <<_ACEOF
7558 cat confdefs.h
>>conftest.
$ac_ext
7559 cat >>conftest.
$ac_ext <<_ACEOF
7560 /* end confdefs.h. */
7561 $ac_includes_default
7562 long longval () { return (long) (sizeof (long)); }
7563 unsigned long ulongval () { return (long) (sizeof (long)); }
7570 FILE *f = fopen ("conftest.val", "w");
7573 if (((long) (sizeof (long))) < 0)
7575 long i = longval ();
7576 if (i != ((long) (sizeof (long))))
7578 fprintf (f, "%ld\n", i);
7582 unsigned long i = ulongval ();
7583 if (i != ((long) (sizeof (long))))
7585 fprintf (f, "%lu\n", i);
7587 exit (ferror (f) || fclose (f) != 0);
7593 rm -f conftest
$ac_exeext
7594 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
7595 (eval $ac_link) 2>&5
7597 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7598 (exit $ac_status); } && { ac_try
='./conftest$ac_exeext'
7599 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7602 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7603 (exit $ac_status); }; }; then
7604 ac_cv_sizeof_long
=`cat conftest.val`
7606 echo "$as_me: program exited with status $ac_status" >&5
7607 echo "$as_me: failed program was:" >&5
7608 sed 's/^/| /' conftest.
$ac_ext >&5
7611 { { echo "$as_me:$LINENO: error: in \`$ac_pwd':" >&5
7612 echo "$as_me: error: in \`$ac_pwd':" >&2;}
7613 { { echo "$as_me:$LINENO: error: cannot compute sizeof (long), 77
7614 See \`config.log' for more details." >&5
7615 echo "$as_me: error: cannot compute sizeof (long), 77
7616 See \`config.log' for more details." >&2;}
7617 { (exit 1); exit 1; }; }; }
7619 rm -f core
*.core gmon.out bb.out conftest
$ac_exeext conftest.
$ac_objext conftest.
$ac_ext
7627 echo "$as_me:$LINENO: result: $ac_cv_sizeof_long" >&5
7628 echo "${ECHO_T}$ac_cv_sizeof_long" >&6
7629 cat >>confdefs.h
<<_ACEOF
7630 #define SIZEOF_LONG $ac_cv_sizeof_long
7634 if test "x${ac_cv_sizeof_long}" = "x8"; then
7638 if test x
${want64} = xtrue
; then
7639 TARGET_OBS
='$(ALL_TARGET_OBS) $(ALL_64_TARGET_OBS)'
7641 TARGET_OBS
='$(ALL_TARGET_OBS)'
7647 # For other settings, only the main target counts.
7651 targ
=$target; .
${srcdir}/configure.tgt
7653 # Fetch the default architecture and default target vector from BFD.
7654 targ
=$target; .
$srcdir/..
/bfd
/config.bfd
7656 # We only want the first architecture, so strip off the others if
7657 # there is more than one.
7658 targ_archs
=`echo $targ_archs | sed 's/ .*//'`
7660 if test "x$targ_archs" != x
; then
7662 cat >>confdefs.h
<<_ACEOF
7663 #define DEFAULT_BFD_ARCH $targ_archs
7667 if test "x$targ_defvec" != x
; then
7669 cat >>confdefs.h
<<_ACEOF
7670 #define DEFAULT_BFD_VEC $targ_defvec
7675 # The CLI cannot be disabled yet, but may be in the future.
7678 # Check whether --enable-gdbcli or --disable-gdbcli was given.
7679 if test "${enable_gdbcli+set}" = set; then
7680 enableval
="$enable_gdbcli"
7685 { { echo "$as_me:$LINENO: error: the command-line interface cannot be disabled yet" >&5
7686 echo "$as_me: error: the command-line interface cannot be disabled yet" >&2;}
7687 { (exit 1); exit 1; }; } ;;
7689 { { echo "$as_me:$LINENO: error: bad value $enableval for --enable-gdbcli" >&5
7690 echo "$as_me: error: bad value $enableval for --enable-gdbcli" >&2;}
7691 { (exit 1); exit 1; }; } ;;
7696 if test x
"$enable_gdbcli" = xyes
; then
7697 if test -d $srcdir/cli
; then
7698 CONFIG_OBS
="$CONFIG_OBS \$(SUBDIR_CLI_OBS)"
7699 CONFIG_DEPS
="$CONFIG_DEPS \$(SUBDIR_CLI_DEPS)"
7700 CONFIG_SRCS
="$CONFIG_SRCS \$(SUBDIR_CLI_SRCS)"
7701 ENABLE_CFLAGS
="$ENABLE_CFLAGS \$(SUBDIR_CLI_CFLAGS)"
7706 # Check whether --enable-gdbmi or --disable-gdbmi was given.
7707 if test "${enable_gdbmi+set}" = set; then
7708 enableval
="$enable_gdbmi"
7713 { { echo "$as_me:$LINENO: error: bad value $enableval for --enable-gdbmi" >&5
7714 echo "$as_me: error: bad value $enableval for --enable-gdbmi" >&2;}
7715 { (exit 1); exit 1; }; } ;;
7720 if test x
"$enable_gdbmi" = xyes
; then
7721 if test -d $srcdir/mi
; then
7722 CONFIG_OBS
="$CONFIG_OBS \$(SUBDIR_MI_OBS)"
7723 CONFIG_DEPS
="$CONFIG_DEPS \$(SUBDIR_MI_DEPS)"
7724 CONFIG_SRCS
="$CONFIG_SRCS \$(SUBDIR_MI_SRCS)"
7725 ENABLE_CFLAGS
="$ENABLE_CFLAGS \$(SUBDIR_MI_CFLAGS)"
7730 # Check whether --enable-tui or --disable-tui was given.
7731 if test "${enable_tui+set}" = set; then
7732 enableval
="$enable_tui"
7737 { { echo "$as_me:$LINENO: error: bad value $enableval for --enable-tui" >&5
7738 echo "$as_me: error: bad value $enableval for --enable-tui" >&2;}
7739 { (exit 1); exit 1; }; } ;;
7746 # Check whether --enable-gdbtk or --disable-gdbtk was given.
7747 if test "${enable_gdbtk+set}" = set; then
7748 enableval
="$enable_gdbtk"
7753 { { echo "$as_me:$LINENO: error: bad value $enableval for --enable-gdbtk" >&5
7754 echo "$as_me: error: bad value $enableval for --enable-gdbtk" >&2;}
7755 { (exit 1); exit 1; }; } ;;
7758 if test -d $srcdir/gdbtk
; then
7764 # We unconditionally disable gdbtk tests on selected platforms.
7767 { echo "$as_me:$LINENO: WARNING: gdbtk isn't supported on $host; disabling" >&5
7768 echo "$as_me: WARNING: gdbtk isn't supported on $host; disabling" >&2;}
7772 # Libunwind support.
7774 # Check whether --with-libunwind or --without-libunwind was given.
7775 if test "${with_libunwind+set}" = set; then
7776 withval
="$with_libunwind"
7777 case "${withval}" in
7778 yes) enable_libunwind
=yes ;;
7779 no
) enable_libunwind
=no
;;
7780 *) { { echo "$as_me:$LINENO: error: bad value ${withval} for GDB with-libunwind option" >&5
7781 echo "$as_me: error: bad value ${withval} for GDB with-libunwind option" >&2;}
7782 { (exit 1); exit 1; }; } ;;
7788 for ac_header
in libunwind.h libunwind-ia64.h
7790 as_ac_Header
=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
7791 if eval "test \"\${$as_ac_Header+set}\" = set"; then
7792 echo "$as_me:$LINENO: checking for $ac_header" >&5
7793 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
7794 if eval "test \"\${$as_ac_Header+set}\" = set"; then
7795 echo $ECHO_N "(cached) $ECHO_C" >&6
7797 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
7798 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
7800 # Is the header compilable?
7801 echo "$as_me:$LINENO: checking $ac_header usability" >&5
7802 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
7803 cat >conftest.
$ac_ext <<_ACEOF
7806 cat confdefs.h
>>conftest.
$ac_ext
7807 cat >>conftest.
$ac_ext <<_ACEOF
7808 /* end confdefs.h. */
7809 $ac_includes_default
7810 #include <$ac_header>
7812 rm -f conftest.
$ac_objext
7813 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
7814 (eval $ac_compile) 2>conftest.er1
7816 grep -v '^ *+' conftest.er1
>conftest.err
7818 cat conftest.err
>&5
7819 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7820 (exit $ac_status); } &&
7821 { ac_try
='test -z "$ac_c_werror_flag"
7822 || test ! -s conftest.err'
7823 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7826 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7827 (exit $ac_status); }; } &&
7828 { ac_try
='test -s conftest.$ac_objext'
7829 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7832 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7833 (exit $ac_status); }; }; then
7834 ac_header_compiler
=yes
7836 echo "$as_me: failed program was:" >&5
7837 sed 's/^/| /' conftest.
$ac_ext >&5
7839 ac_header_compiler
=no
7841 rm -f conftest.err conftest.
$ac_objext conftest.
$ac_ext
7842 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
7843 echo "${ECHO_T}$ac_header_compiler" >&6
7845 # Is the header present?
7846 echo "$as_me:$LINENO: checking $ac_header presence" >&5
7847 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
7848 cat >conftest.
$ac_ext <<_ACEOF
7851 cat confdefs.h
>>conftest.
$ac_ext
7852 cat >>conftest.
$ac_ext <<_ACEOF
7853 /* end confdefs.h. */
7854 #include <$ac_header>
7856 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
7857 (eval $ac_cpp conftest.
$ac_ext) 2>conftest.er1
7859 grep -v '^ *+' conftest.er1
>conftest.err
7861 cat conftest.err
>&5
7862 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7863 (exit $ac_status); } >/dev
/null
; then
7864 if test -s conftest.err
; then
7865 ac_cpp_err
=$ac_c_preproc_warn_flag
7866 ac_cpp_err
=$ac_cpp_err$ac_c_werror_flag
7873 if test -z "$ac_cpp_err"; then
7874 ac_header_preproc
=yes
7876 echo "$as_me: failed program was:" >&5
7877 sed 's/^/| /' conftest.
$ac_ext >&5
7879 ac_header_preproc
=no
7881 rm -f conftest.err conftest.
$ac_ext
7882 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
7883 echo "${ECHO_T}$ac_header_preproc" >&6
7885 # So? What about this header?
7886 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
7888 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
7889 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
7890 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
7891 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
7892 ac_header_preproc
=yes
7895 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
7896 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
7897 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
7898 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
7899 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
7900 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
7901 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
7902 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
7903 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
7904 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
7905 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
7906 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
7909 ## ------------------------------------------ ##
7910 ## Report this to the AC_PACKAGE_NAME lists. ##
7911 ## ------------------------------------------ ##
7914 sed "s/^/$as_me: WARNING: /" >&2
7917 echo "$as_me:$LINENO: checking for $ac_header" >&5
7918 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
7919 if eval "test \"\${$as_ac_Header+set}\" = set"; then
7920 echo $ECHO_N "(cached) $ECHO_C" >&6
7922 eval "$as_ac_Header=\$ac_header_preproc"
7924 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
7925 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
7928 if test `eval echo '${'$as_ac_Header'}'` = yes; then
7929 cat >>confdefs.h
<<_ACEOF
7930 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
7937 if test x
"$ac_cv_header_libunwind_h" = xyes
-a x
"$ac_cv_header_libunwind_ia64_h" = xyes
; then
7938 enable_libunwind
=yes;
7943 if test x
"$enable_libunwind" = xyes
; then
7946 for ac_header
in libunwind.h libunwind-ia64.h
7948 as_ac_Header
=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
7949 if eval "test \"\${$as_ac_Header+set}\" = set"; then
7950 echo "$as_me:$LINENO: checking for $ac_header" >&5
7951 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
7952 if eval "test \"\${$as_ac_Header+set}\" = set"; then
7953 echo $ECHO_N "(cached) $ECHO_C" >&6
7955 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
7956 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
7958 # Is the header compilable?
7959 echo "$as_me:$LINENO: checking $ac_header usability" >&5
7960 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
7961 cat >conftest.
$ac_ext <<_ACEOF
7964 cat confdefs.h
>>conftest.
$ac_ext
7965 cat >>conftest.
$ac_ext <<_ACEOF
7966 /* end confdefs.h. */
7967 $ac_includes_default
7968 #include <$ac_header>
7970 rm -f conftest.
$ac_objext
7971 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
7972 (eval $ac_compile) 2>conftest.er1
7974 grep -v '^ *+' conftest.er1
>conftest.err
7976 cat conftest.err
>&5
7977 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7978 (exit $ac_status); } &&
7979 { ac_try
='test -z "$ac_c_werror_flag"
7980 || test ! -s conftest.err'
7981 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7984 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7985 (exit $ac_status); }; } &&
7986 { ac_try
='test -s conftest.$ac_objext'
7987 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7990 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7991 (exit $ac_status); }; }; then
7992 ac_header_compiler
=yes
7994 echo "$as_me: failed program was:" >&5
7995 sed 's/^/| /' conftest.
$ac_ext >&5
7997 ac_header_compiler
=no
7999 rm -f conftest.err conftest.
$ac_objext conftest.
$ac_ext
8000 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
8001 echo "${ECHO_T}$ac_header_compiler" >&6
8003 # Is the header present?
8004 echo "$as_me:$LINENO: checking $ac_header presence" >&5
8005 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
8006 cat >conftest.
$ac_ext <<_ACEOF
8009 cat confdefs.h
>>conftest.
$ac_ext
8010 cat >>conftest.
$ac_ext <<_ACEOF
8011 /* end confdefs.h. */
8012 #include <$ac_header>
8014 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
8015 (eval $ac_cpp conftest.
$ac_ext) 2>conftest.er1
8017 grep -v '^ *+' conftest.er1
>conftest.err
8019 cat conftest.err
>&5
8020 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8021 (exit $ac_status); } >/dev
/null
; then
8022 if test -s conftest.err
; then
8023 ac_cpp_err
=$ac_c_preproc_warn_flag
8024 ac_cpp_err
=$ac_cpp_err$ac_c_werror_flag
8031 if test -z "$ac_cpp_err"; then
8032 ac_header_preproc
=yes
8034 echo "$as_me: failed program was:" >&5
8035 sed 's/^/| /' conftest.
$ac_ext >&5
8037 ac_header_preproc
=no
8039 rm -f conftest.err conftest.
$ac_ext
8040 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
8041 echo "${ECHO_T}$ac_header_preproc" >&6
8043 # So? What about this header?
8044 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
8046 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
8047 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
8048 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
8049 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
8050 ac_header_preproc
=yes
8053 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
8054 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
8055 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
8056 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
8057 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
8058 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
8059 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
8060 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
8061 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
8062 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
8063 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
8064 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
8067 ## ------------------------------------------ ##
8068 ## Report this to the AC_PACKAGE_NAME lists. ##
8069 ## ------------------------------------------ ##
8072 sed "s/^/$as_me: WARNING: /" >&2
8075 echo "$as_me:$LINENO: checking for $ac_header" >&5
8076 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
8077 if eval "test \"\${$as_ac_Header+set}\" = set"; then
8078 echo $ECHO_N "(cached) $ECHO_C" >&6
8080 eval "$as_ac_Header=\$ac_header_preproc"
8082 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
8083 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
8086 if test `eval echo '${'$as_ac_Header'}'` = yes; then
8087 cat >>confdefs.h
<<_ACEOF
8088 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
8096 cat >>confdefs.h
<<\_ACEOF
8097 #define HAVE_LIBUNWIND 1
8100 CONFIG_OBS
="$CONFIG_OBS libunwind-frame.o"
8101 CONFIG_DEPS
="$CONFIG_DEPS libunwind-frame.o"
8102 CONFIG_SRCS
="$CONFIG_SRCS libunwind-frame.c"
8105 # Profiling support.
8106 # Check whether --enable-profiling or --disable-profiling was given.
8107 if test "${enable_profiling+set}" = set; then
8108 enableval
="$enable_profiling"
8113 { { echo "$as_me:$LINENO: error: bad value $enableval for --enable-profile" >&5
8114 echo "$as_me: error: bad value $enableval for --enable-profile" >&2;}
8115 { (exit 1); exit 1; }; } ;;
8123 for ac_func
in monstartup _mcleanup
8125 as_ac_var
=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
8126 echo "$as_me:$LINENO: checking for $ac_func" >&5
8127 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
8128 if eval "test \"\${$as_ac_var+set}\" = set"; then
8129 echo $ECHO_N "(cached) $ECHO_C" >&6
8131 cat >conftest.
$ac_ext <<_ACEOF
8134 cat confdefs.h
>>conftest.
$ac_ext
8135 cat >>conftest.
$ac_ext <<_ACEOF
8136 /* end confdefs.h. */
8137 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
8138 For example, HP-UX 11i <limits.h> declares gettimeofday. */
8139 #define $ac_func innocuous_$ac_func
8141 /* System header to define __stub macros and hopefully few prototypes,
8142 which can conflict with char $ac_func (); below.
8143 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
8144 <limits.h> exists even on freestanding compilers. */
8147 # include <limits.h>
8149 # include <assert.h>
8154 /* Override any gcc2 internal prototype to avoid an error. */
8159 /* We use char because int might match the return type of a gcc2
8160 builtin and then its argument prototype would still apply. */
8162 /* The GNU C library defines this for functions which it implements
8163 to always fail with ENOSYS. Some functions are actually named
8164 something starting with __ and the normal name is an alias. */
8165 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
8168 char (*f) () = $ac_func;
8177 return f != $ac_func;
8182 rm -f conftest.
$ac_objext conftest
$ac_exeext
8183 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
8184 (eval $ac_link) 2>conftest.er1
8186 grep -v '^ *+' conftest.er1
>conftest.err
8188 cat conftest.err
>&5
8189 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8190 (exit $ac_status); } &&
8191 { ac_try
='test -z "$ac_c_werror_flag"
8192 || test ! -s conftest.err'
8193 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8196 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8197 (exit $ac_status); }; } &&
8198 { ac_try
='test -s conftest$ac_exeext'
8199 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8202 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8203 (exit $ac_status); }; }; then
8204 eval "$as_ac_var=yes"
8206 echo "$as_me: failed program was:" >&5
8207 sed 's/^/| /' conftest.
$ac_ext >&5
8209 eval "$as_ac_var=no"
8211 rm -f conftest.err conftest.
$ac_objext \
8212 conftest
$ac_exeext conftest.
$ac_ext
8214 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
8215 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
8216 if test `eval echo '${'$as_ac_var'}'` = yes; then
8217 cat >>confdefs.h
<<_ACEOF
8218 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
8224 echo "$as_me:$LINENO: checking for _etext" >&5
8225 echo $ECHO_N "checking for _etext... $ECHO_C" >&6
8226 if test "${ac_cv_var__etext+set}" = set; then
8227 echo $ECHO_N "(cached) $ECHO_C" >&6
8229 cat >conftest.
$ac_ext <<_ACEOF
8232 cat confdefs.h
>>conftest.
$ac_ext
8233 cat >>conftest.
$ac_ext <<_ACEOF
8234 /* end confdefs.h. */
8246 rm -f conftest.
$ac_objext conftest
$ac_exeext
8247 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
8248 (eval $ac_link) 2>conftest.er1
8250 grep -v '^ *+' conftest.er1
>conftest.err
8252 cat conftest.err
>&5
8253 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8254 (exit $ac_status); } &&
8255 { ac_try
='test -z "$ac_c_werror_flag"
8256 || test ! -s conftest.err'
8257 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8260 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8261 (exit $ac_status); }; } &&
8262 { ac_try
='test -s conftest$ac_exeext'
8263 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8266 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8267 (exit $ac_status); }; }; then
8268 ac_cv_var__etext
=yes
8270 echo "$as_me: failed program was:" >&5
8271 sed 's/^/| /' conftest.
$ac_ext >&5
8275 rm -f conftest.err conftest.
$ac_objext \
8276 conftest
$ac_exeext conftest.
$ac_ext
8278 echo "$as_me:$LINENO: result: $ac_cv_var__etext" >&5
8279 echo "${ECHO_T}$ac_cv_var__etext" >&6
8280 if test $ac_cv_var__etext = yes; then
8282 cat >>confdefs.h
<<\_ACEOF
8283 #define HAVE__ETEXT 1
8287 echo "$as_me:$LINENO: checking for etext" >&5
8288 echo $ECHO_N "checking for etext... $ECHO_C" >&6
8289 if test "${ac_cv_var_etext+set}" = set; then
8290 echo $ECHO_N "(cached) $ECHO_C" >&6
8292 cat >conftest.
$ac_ext <<_ACEOF
8295 cat confdefs.h
>>conftest.
$ac_ext
8296 cat >>conftest.
$ac_ext <<_ACEOF
8297 /* end confdefs.h. */
8309 rm -f conftest.
$ac_objext conftest
$ac_exeext
8310 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
8311 (eval $ac_link) 2>conftest.er1
8313 grep -v '^ *+' conftest.er1
>conftest.err
8315 cat conftest.err
>&5
8316 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8317 (exit $ac_status); } &&
8318 { ac_try
='test -z "$ac_c_werror_flag"
8319 || test ! -s conftest.err'
8320 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8323 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8324 (exit $ac_status); }; } &&
8325 { ac_try
='test -s conftest$ac_exeext'
8326 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8329 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8330 (exit $ac_status); }; }; then
8333 echo "$as_me: failed program was:" >&5
8334 sed 's/^/| /' conftest.
$ac_ext >&5
8338 rm -f conftest.err conftest.
$ac_objext \
8339 conftest
$ac_exeext conftest.
$ac_ext
8341 echo "$as_me:$LINENO: result: $ac_cv_var_etext" >&5
8342 echo "${ECHO_T}$ac_cv_var_etext" >&6
8343 if test $ac_cv_var_etext = yes; then
8345 cat >>confdefs.h
<<\_ACEOF
8346 #define HAVE_ETEXT 1
8350 if test "$enable_profiling" = yes ; then
8351 if test $ac_cv_func_monstartup = no ||
test $ac_cv_func__mcleanup = no
; then
8352 { { echo "$as_me:$LINENO: error: --enable-profiling requires monstartup and _mcleanup" >&5
8353 echo "$as_me: error: --enable-profiling requires monstartup and _mcleanup" >&2;}
8354 { (exit 1); exit 1; }; }
8357 OLD_CFLAGS
="$CFLAGS"
8358 CFLAGS
="$CFLAGS $PROFILE_CFLAGS"
8360 echo "$as_me:$LINENO: checking whether $CC supports -pg" >&5
8361 echo $ECHO_N "checking whether $CC supports -pg... $ECHO_C" >&6
8362 if test "${ac_cv_cc_supports_pg+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. */
8380 rm -f conftest.
$ac_objext
8381 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
8382 (eval $ac_compile) 2>conftest.er1
8384 grep -v '^ *+' conftest.er1
>conftest.err
8386 cat conftest.err
>&5
8387 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8388 (exit $ac_status); } &&
8389 { ac_try
='test -z "$ac_c_werror_flag"
8390 || test ! -s conftest.err'
8391 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8394 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8395 (exit $ac_status); }; } &&
8396 { ac_try
='test -s conftest.$ac_objext'
8397 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8400 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8401 (exit $ac_status); }; }; then
8402 ac_cv_cc_supports_pg
=yes
8404 echo "$as_me: failed program was:" >&5
8405 sed 's/^/| /' conftest.
$ac_ext >&5
8407 ac_cv_cc_supports_pg
=no
8409 rm -f conftest.err conftest.
$ac_objext conftest.
$ac_ext
8411 echo "$as_me:$LINENO: result: $ac_cv_cc_supports_pg" >&5
8412 echo "${ECHO_T}$ac_cv_cc_supports_pg" >&6
8414 if test $ac_cv_cc_supports_pg = no
; then
8415 { { echo "$as_me:$LINENO: error: --enable-profiling requires a compiler which supports -pg" >&5
8416 echo "$as_me: error: --enable-profiling requires a compiler which supports -pg" >&2;}
8417 { (exit 1); exit 1; }; }
8420 CFLAGS
="$OLD_CFLAGS"
8425 # Check whether --with-pkgversion or --without-pkgversion was given.
8426 if test "${with_pkgversion+set}" = set; then
8427 withval
="$with_pkgversion"
8429 yes) { { echo "$as_me:$LINENO: error: package version not specified" >&5
8430 echo "$as_me: error: package version not specified" >&2;}
8431 { (exit 1); exit 1; }; } ;;
8433 *) PKGVERSION
="($withval) " ;;
8443 # Check whether --with-bugurl or --without-bugurl was given.
8444 if test "${with_bugurl+set}" = set; then
8445 withval
="$with_bugurl"
8447 yes) { { echo "$as_me:$LINENO: error: bug URL not specified" >&5
8448 echo "$as_me: error: bug URL not specified" >&2;}
8449 { (exit 1); exit 1; }; } ;;
8452 *) BUGURL
="$withval"
8456 BUGURL
="http://www.gnu.org/software/gdb/bugs/"
8465 REPORT_BUGS_TO
="<$BUGURL>"
8466 REPORT_BUGS_TEXI
=@uref
{`echo "$BUGURL" | sed 's/@/@@/g'`}
8473 cat >>confdefs.h
<<_ACEOF
8474 #define PKGVERSION "$PKGVERSION"
8478 cat >>confdefs.h
<<_ACEOF
8479 #define REPORT_BUGS_TO "$REPORT_BUGS_TO"
8483 # --------------------- #
8484 # Checks for programs. #
8485 # --------------------- #
8487 for ac_prog
in gawk mawk nawk
awk
8489 # Extract the first word of "$ac_prog", so it can be a program name with args.
8490 set dummy
$ac_prog; ac_word
=$2
8491 echo "$as_me:$LINENO: checking for $ac_word" >&5
8492 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
8493 if test "${ac_cv_prog_AWK+set}" = set; then
8494 echo $ECHO_N "(cached) $ECHO_C" >&6
8496 if test -n "$AWK"; then
8497 ac_cv_prog_AWK
="$AWK" # Let the user override the test.
8499 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
8503 test -z "$as_dir" && as_dir
=.
8504 for ac_exec_ext
in '' $ac_executable_extensions; do
8505 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
8506 ac_cv_prog_AWK
="$ac_prog"
8507 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
8516 if test -n "$AWK"; then
8517 echo "$as_me:$LINENO: result: $AWK" >&5
8518 echo "${ECHO_T}$AWK" >&6
8520 echo "$as_me:$LINENO: result: no" >&5
8521 echo "${ECHO_T}no" >&6
8524 test -n "$AWK" && break
8527 # Find a good install program. We prefer a C program (faster),
8528 # so one script is as good as another. But avoid the broken or
8529 # incompatible versions:
8530 # SysV /etc/install, /usr/sbin/install
8531 # SunOS /usr/etc/install
8532 # IRIX /sbin/install
8534 # AmigaOS /C/install, which installs bootblocks on floppy discs
8535 # AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag
8536 # AFS /usr/afsws/bin/install, which mishandles nonexistent args
8537 # SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff"
8538 # OS/2's system install, which has a completely different semantic
8539 # ./install, which can be erroneously created by make from ./install.sh.
8540 echo "$as_me:$LINENO: checking for a BSD-compatible install" >&5
8541 echo $ECHO_N "checking for a BSD-compatible install... $ECHO_C" >&6
8542 if test -z "$INSTALL"; then
8543 if test "${ac_cv_path_install+set}" = set; then
8544 echo $ECHO_N "(cached) $ECHO_C" >&6
8546 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
8550 test -z "$as_dir" && as_dir
=.
8551 # Account for people who put trailing slashes in PATH elements.
8553 .
/ | .
// |
/cC
/* | \
8554 /etc
/* |
/usr
/sbin
/* |
/usr
/etc
/* |
/sbin
/* |
/usr
/afsws
/bin
/* | \
8555 ?
:\\/os2
\\/install\\/* | ?
:\\/OS2
\\/INSTALL
\\/* | \
8558 # OSF1 and SCO ODT 3.0 have their own names for install.
8559 # Don't use installbsd from OSF since it installs stuff as root
8561 for ac_prog
in ginstall scoinst
install; do
8562 for ac_exec_ext
in '' $ac_executable_extensions; do
8563 if $as_executable_p "$as_dir/$ac_prog$ac_exec_ext"; then
8564 if test $ac_prog = install &&
8565 grep dspmsg
"$as_dir/$ac_prog$ac_exec_ext" >/dev
/null
2>&1; then
8566 # AIX install. It has an incompatible calling convention.
8568 elif test $ac_prog = install &&
8569 grep pwplus
"$as_dir/$ac_prog$ac_exec_ext" >/dev
/null
2>&1; then
8570 # program-specific install script used by HP pwplus--don't use.
8573 ac_cv_path_install
="$as_dir/$ac_prog$ac_exec_ext -c"
8585 if test "${ac_cv_path_install+set}" = set; then
8586 INSTALL
=$ac_cv_path_install
8588 # As a last resort, use the slow shell script. We don't cache a
8589 # path for INSTALL within a source directory, because that will
8590 # break other packages using the cache if that directory is
8591 # removed, or if the path is relative.
8592 INSTALL
=$ac_install_sh
8595 echo "$as_me:$LINENO: result: $INSTALL" >&5
8596 echo "${ECHO_T}$INSTALL" >&6
8598 # Use test -z because SunOS4 sh mishandles braces in ${var-val}.
8599 # It thinks the first close brace ends the variable substitution.
8600 test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM
='${INSTALL}'
8602 test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT
='${INSTALL}'
8604 test -z "$INSTALL_DATA" && INSTALL_DATA
='${INSTALL} -m 644'
8606 echo "$as_me:$LINENO: checking whether ln -s works" >&5
8607 echo $ECHO_N "checking whether ln -s works... $ECHO_C" >&6
8609 if test "$LN_S" = "ln -s"; then
8610 echo "$as_me:$LINENO: result: yes" >&5
8611 echo "${ECHO_T}yes" >&6
8613 echo "$as_me:$LINENO: result: no, using $LN_S" >&5
8614 echo "${ECHO_T}no, using $LN_S" >&6
8617 if test -n "$ac_tool_prefix"; then
8618 # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args.
8619 set dummy
${ac_tool_prefix}ranlib
; ac_word
=$2
8620 echo "$as_me:$LINENO: checking for $ac_word" >&5
8621 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
8622 if test "${ac_cv_prog_RANLIB+set}" = set; then
8623 echo $ECHO_N "(cached) $ECHO_C" >&6
8625 if test -n "$RANLIB"; then
8626 ac_cv_prog_RANLIB
="$RANLIB" # Let the user override the test.
8628 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
8632 test -z "$as_dir" && as_dir
=.
8633 for ac_exec_ext
in '' $ac_executable_extensions; do
8634 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
8635 ac_cv_prog_RANLIB
="${ac_tool_prefix}ranlib"
8636 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
8644 RANLIB
=$ac_cv_prog_RANLIB
8645 if test -n "$RANLIB"; then
8646 echo "$as_me:$LINENO: result: $RANLIB" >&5
8647 echo "${ECHO_T}$RANLIB" >&6
8649 echo "$as_me:$LINENO: result: no" >&5
8650 echo "${ECHO_T}no" >&6
8654 if test -z "$ac_cv_prog_RANLIB"; then
8655 ac_ct_RANLIB
=$RANLIB
8656 # Extract the first word of "ranlib", so it can be a program name with args.
8657 set dummy ranlib
; ac_word
=$2
8658 echo "$as_me:$LINENO: checking for $ac_word" >&5
8659 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
8660 if test "${ac_cv_prog_ac_ct_RANLIB+set}" = set; then
8661 echo $ECHO_N "(cached) $ECHO_C" >&6
8663 if test -n "$ac_ct_RANLIB"; then
8664 ac_cv_prog_ac_ct_RANLIB
="$ac_ct_RANLIB" # Let the user override the test.
8666 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
8670 test -z "$as_dir" && as_dir
=.
8671 for ac_exec_ext
in '' $ac_executable_extensions; do
8672 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
8673 ac_cv_prog_ac_ct_RANLIB
="ranlib"
8674 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
8680 test -z "$ac_cv_prog_ac_ct_RANLIB" && ac_cv_prog_ac_ct_RANLIB
=":"
8683 ac_ct_RANLIB
=$ac_cv_prog_ac_ct_RANLIB
8684 if test -n "$ac_ct_RANLIB"; then
8685 echo "$as_me:$LINENO: result: $ac_ct_RANLIB" >&5
8686 echo "${ECHO_T}$ac_ct_RANLIB" >&6
8688 echo "$as_me:$LINENO: result: no" >&5
8689 echo "${ECHO_T}no" >&6
8692 RANLIB
=$ac_ct_RANLIB
8694 RANLIB
="$ac_cv_prog_RANLIB"
8697 for ac_prog
in 'bison -y' byacc
8699 # Extract the first word of "$ac_prog", so it can be a program name with args.
8700 set dummy
$ac_prog; ac_word
=$2
8701 echo "$as_me:$LINENO: checking for $ac_word" >&5
8702 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
8703 if test "${ac_cv_prog_YACC+set}" = set; then
8704 echo $ECHO_N "(cached) $ECHO_C" >&6
8706 if test -n "$YACC"; then
8707 ac_cv_prog_YACC
="$YACC" # Let the user override the test.
8709 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
8713 test -z "$as_dir" && as_dir
=.
8714 for ac_exec_ext
in '' $ac_executable_extensions; do
8715 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
8716 ac_cv_prog_YACC
="$ac_prog"
8717 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
8725 YACC
=$ac_cv_prog_YACC
8726 if test -n "$YACC"; then
8727 echo "$as_me:$LINENO: result: $YACC" >&5
8728 echo "${ECHO_T}$YACC" >&6
8730 echo "$as_me:$LINENO: result: no" >&5
8731 echo "${ECHO_T}no" >&6
8734 test -n "$YACC" && break
8736 test -n "$YACC" || YACC
="yacc"
8739 if test -n "$ac_tool_prefix"; then
8740 # Extract the first word of "${ac_tool_prefix}ar", so it can be a program name with args.
8741 set dummy
${ac_tool_prefix}ar; ac_word
=$2
8742 echo "$as_me:$LINENO: checking for $ac_word" >&5
8743 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
8744 if test "${ac_cv_prog_AR+set}" = set; then
8745 echo $ECHO_N "(cached) $ECHO_C" >&6
8747 if test -n "$AR"; then
8748 ac_cv_prog_AR
="$AR" # Let the user override the test.
8750 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
8754 test -z "$as_dir" && as_dir
=.
8755 for ac_exec_ext
in '' $ac_executable_extensions; do
8756 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
8757 ac_cv_prog_AR
="${ac_tool_prefix}ar"
8758 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
8767 if test -n "$AR"; then
8768 echo "$as_me:$LINENO: result: $AR" >&5
8769 echo "${ECHO_T}$AR" >&6
8771 echo "$as_me:$LINENO: result: no" >&5
8772 echo "${ECHO_T}no" >&6
8776 if test -z "$ac_cv_prog_AR"; then
8778 # Extract the first word of "ar", so it can be a program name with args.
8779 set dummy
ar; ac_word
=$2
8780 echo "$as_me:$LINENO: checking for $ac_word" >&5
8781 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
8782 if test "${ac_cv_prog_ac_ct_AR+set}" = set; then
8783 echo $ECHO_N "(cached) $ECHO_C" >&6
8785 if test -n "$ac_ct_AR"; then
8786 ac_cv_prog_ac_ct_AR
="$ac_ct_AR" # Let the user override the test.
8788 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
8792 test -z "$as_dir" && as_dir
=.
8793 for ac_exec_ext
in '' $ac_executable_extensions; do
8794 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
8795 ac_cv_prog_ac_ct_AR
="ar"
8796 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
8804 ac_ct_AR
=$ac_cv_prog_ac_ct_AR
8805 if test -n "$ac_ct_AR"; then
8806 echo "$as_me:$LINENO: result: $ac_ct_AR" >&5
8807 echo "${ECHO_T}$ac_ct_AR" >&6
8809 echo "$as_me:$LINENO: result: no" >&5
8810 echo "${ECHO_T}no" >&6
8818 if test -n "$ac_tool_prefix"; then
8819 # Extract the first word of "${ac_tool_prefix}dlltool", so it can be a program name with args.
8820 set dummy
${ac_tool_prefix}dlltool
; ac_word
=$2
8821 echo "$as_me:$LINENO: checking for $ac_word" >&5
8822 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
8823 if test "${ac_cv_prog_DLLTOOL+set}" = set; then
8824 echo $ECHO_N "(cached) $ECHO_C" >&6
8826 if test -n "$DLLTOOL"; then
8827 ac_cv_prog_DLLTOOL
="$DLLTOOL" # Let the user override the test.
8829 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
8833 test -z "$as_dir" && as_dir
=.
8834 for ac_exec_ext
in '' $ac_executable_extensions; do
8835 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
8836 ac_cv_prog_DLLTOOL
="${ac_tool_prefix}dlltool"
8837 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
8845 DLLTOOL
=$ac_cv_prog_DLLTOOL
8846 if test -n "$DLLTOOL"; then
8847 echo "$as_me:$LINENO: result: $DLLTOOL" >&5
8848 echo "${ECHO_T}$DLLTOOL" >&6
8850 echo "$as_me:$LINENO: result: no" >&5
8851 echo "${ECHO_T}no" >&6
8855 if test -z "$ac_cv_prog_DLLTOOL"; then
8856 ac_ct_DLLTOOL
=$DLLTOOL
8857 # Extract the first word of "dlltool", so it can be a program name with args.
8858 set dummy dlltool
; ac_word
=$2
8859 echo "$as_me:$LINENO: checking for $ac_word" >&5
8860 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
8861 if test "${ac_cv_prog_ac_ct_DLLTOOL+set}" = set; then
8862 echo $ECHO_N "(cached) $ECHO_C" >&6
8864 if test -n "$ac_ct_DLLTOOL"; then
8865 ac_cv_prog_ac_ct_DLLTOOL
="$ac_ct_DLLTOOL" # Let the user override the test.
8867 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
8871 test -z "$as_dir" && as_dir
=.
8872 for ac_exec_ext
in '' $ac_executable_extensions; do
8873 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
8874 ac_cv_prog_ac_ct_DLLTOOL
="dlltool"
8875 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
8883 ac_ct_DLLTOOL
=$ac_cv_prog_ac_ct_DLLTOOL
8884 if test -n "$ac_ct_DLLTOOL"; then
8885 echo "$as_me:$LINENO: result: $ac_ct_DLLTOOL" >&5
8886 echo "${ECHO_T}$ac_ct_DLLTOOL" >&6
8888 echo "$as_me:$LINENO: result: no" >&5
8889 echo "${ECHO_T}no" >&6
8892 DLLTOOL
=$ac_ct_DLLTOOL
8894 DLLTOOL
="$ac_cv_prog_DLLTOOL"
8897 if test -n "$ac_tool_prefix"; then
8898 # Extract the first word of "${ac_tool_prefix}windres", so it can be a program name with args.
8899 set dummy
${ac_tool_prefix}windres
; ac_word
=$2
8900 echo "$as_me:$LINENO: checking for $ac_word" >&5
8901 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
8902 if test "${ac_cv_prog_WINDRES+set}" = set; then
8903 echo $ECHO_N "(cached) $ECHO_C" >&6
8905 if test -n "$WINDRES"; then
8906 ac_cv_prog_WINDRES
="$WINDRES" # Let the user override the test.
8908 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
8912 test -z "$as_dir" && as_dir
=.
8913 for ac_exec_ext
in '' $ac_executable_extensions; do
8914 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
8915 ac_cv_prog_WINDRES
="${ac_tool_prefix}windres"
8916 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
8924 WINDRES
=$ac_cv_prog_WINDRES
8925 if test -n "$WINDRES"; then
8926 echo "$as_me:$LINENO: result: $WINDRES" >&5
8927 echo "${ECHO_T}$WINDRES" >&6
8929 echo "$as_me:$LINENO: result: no" >&5
8930 echo "${ECHO_T}no" >&6
8934 if test -z "$ac_cv_prog_WINDRES"; then
8935 ac_ct_WINDRES
=$WINDRES
8936 # Extract the first word of "windres", so it can be a program name with args.
8937 set dummy windres
; ac_word
=$2
8938 echo "$as_me:$LINENO: checking for $ac_word" >&5
8939 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
8940 if test "${ac_cv_prog_ac_ct_WINDRES+set}" = set; then
8941 echo $ECHO_N "(cached) $ECHO_C" >&6
8943 if test -n "$ac_ct_WINDRES"; then
8944 ac_cv_prog_ac_ct_WINDRES
="$ac_ct_WINDRES" # Let the user override the test.
8946 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
8950 test -z "$as_dir" && as_dir
=.
8951 for ac_exec_ext
in '' $ac_executable_extensions; do
8952 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
8953 ac_cv_prog_ac_ct_WINDRES
="windres"
8954 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
8962 ac_ct_WINDRES
=$ac_cv_prog_ac_ct_WINDRES
8963 if test -n "$ac_ct_WINDRES"; then
8964 echo "$as_me:$LINENO: result: $ac_ct_WINDRES" >&5
8965 echo "${ECHO_T}$ac_ct_WINDRES" >&6
8967 echo "$as_me:$LINENO: result: no" >&5
8968 echo "${ECHO_T}no" >&6
8971 WINDRES
=$ac_ct_WINDRES
8973 WINDRES
="$ac_cv_prog_WINDRES"
8977 # Needed for GNU/Hurd.
8978 if test -n "$ac_tool_prefix"; then
8979 # Extract the first word of "${ac_tool_prefix}mig", so it can be a program name with args.
8980 set dummy
${ac_tool_prefix}mig
; ac_word
=$2
8981 echo "$as_me:$LINENO: checking for $ac_word" >&5
8982 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
8983 if test "${ac_cv_prog_MIG+set}" = set; then
8984 echo $ECHO_N "(cached) $ECHO_C" >&6
8986 if test -n "$MIG"; then
8987 ac_cv_prog_MIG
="$MIG" # Let the user override the test.
8989 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
8993 test -z "$as_dir" && as_dir
=.
8994 for ac_exec_ext
in '' $ac_executable_extensions; do
8995 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
8996 ac_cv_prog_MIG
="${ac_tool_prefix}mig"
8997 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
9006 if test -n "$MIG"; then
9007 echo "$as_me:$LINENO: result: $MIG" >&5
9008 echo "${ECHO_T}$MIG" >&6
9010 echo "$as_me:$LINENO: result: no" >&5
9011 echo "${ECHO_T}no" >&6
9015 if test -z "$ac_cv_prog_MIG"; then
9017 # Extract the first word of "mig", so it can be a program name with args.
9018 set dummy mig
; ac_word
=$2
9019 echo "$as_me:$LINENO: checking for $ac_word" >&5
9020 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
9021 if test "${ac_cv_prog_ac_ct_MIG+set}" = set; then
9022 echo $ECHO_N "(cached) $ECHO_C" >&6
9024 if test -n "$ac_ct_MIG"; then
9025 ac_cv_prog_ac_ct_MIG
="$ac_ct_MIG" # Let the user override the test.
9027 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
9031 test -z "$as_dir" && as_dir
=.
9032 for ac_exec_ext
in '' $ac_executable_extensions; do
9033 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
9034 ac_cv_prog_ac_ct_MIG
="mig"
9035 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
9043 ac_ct_MIG
=$ac_cv_prog_ac_ct_MIG
9044 if test -n "$ac_ct_MIG"; then
9045 echo "$as_me:$LINENO: result: $ac_ct_MIG" >&5
9046 echo "${ECHO_T}$ac_ct_MIG" >&6
9048 echo "$as_me:$LINENO: result: no" >&5
9049 echo "${ECHO_T}no" >&6
9054 MIG
="$ac_cv_prog_MIG"
9058 # ---------------------- #
9059 # Checks for libraries. #
9060 # ---------------------- #
9062 # We might need to link with -lm; most simulators need it.
9064 echo "$as_me:$LINENO: checking for main in -lm" >&5
9065 echo $ECHO_N "checking for main in -lm... $ECHO_C" >&6
9066 if test "${ac_cv_lib_m_main+set}" = set; then
9067 echo $ECHO_N "(cached) $ECHO_C" >&6
9069 ac_check_lib_save_LIBS
=$LIBS
9071 cat >conftest.
$ac_ext <<_ACEOF
9074 cat confdefs.h
>>conftest.
$ac_ext
9075 cat >>conftest.
$ac_ext <<_ACEOF
9076 /* end confdefs.h. */
9087 rm -f conftest.
$ac_objext conftest
$ac_exeext
9088 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
9089 (eval $ac_link) 2>conftest.er1
9091 grep -v '^ *+' conftest.er1
>conftest.err
9093 cat conftest.err
>&5
9094 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9095 (exit $ac_status); } &&
9096 { ac_try
='test -z "$ac_c_werror_flag"
9097 || test ! -s conftest.err'
9098 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9101 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9102 (exit $ac_status); }; } &&
9103 { ac_try
='test -s conftest$ac_exeext'
9104 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9107 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9108 (exit $ac_status); }; }; then
9109 ac_cv_lib_m_main
=yes
9111 echo "$as_me: failed program was:" >&5
9112 sed 's/^/| /' conftest.
$ac_ext >&5
9116 rm -f conftest.err conftest.
$ac_objext \
9117 conftest
$ac_exeext conftest.
$ac_ext
9118 LIBS
=$ac_check_lib_save_LIBS
9120 echo "$as_me:$LINENO: result: $ac_cv_lib_m_main" >&5
9121 echo "${ECHO_T}$ac_cv_lib_m_main" >&6
9122 if test $ac_cv_lib_m_main = yes; then
9123 cat >>confdefs.h
<<_ACEOF
9132 # We need to link with -lw to get `wctype' on Solaris before Solaris
9133 # 2.6. Solaris 2.6 and beyond have this function in libc, and have a
9134 # libw that some versions of the GNU linker cannot hanle (GNU ld 2.9.1
9135 # is known to have this problem). Therefore we avoid libw if we can.
9136 echo "$as_me:$LINENO: checking for wctype" >&5
9137 echo $ECHO_N "checking for wctype... $ECHO_C" >&6
9138 if test "${ac_cv_func_wctype+set}" = set; then
9139 echo $ECHO_N "(cached) $ECHO_C" >&6
9141 cat >conftest.
$ac_ext <<_ACEOF
9144 cat confdefs.h
>>conftest.
$ac_ext
9145 cat >>conftest.
$ac_ext <<_ACEOF
9146 /* end confdefs.h. */
9147 /* Define wctype to an innocuous variant, in case <limits.h> declares wctype.
9148 For example, HP-UX 11i <limits.h> declares gettimeofday. */
9149 #define wctype innocuous_wctype
9151 /* System header to define __stub macros and hopefully few prototypes,
9152 which can conflict with char wctype (); below.
9153 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
9154 <limits.h> exists even on freestanding compilers. */
9157 # include <limits.h>
9159 # include <assert.h>
9164 /* Override any gcc2 internal prototype to avoid an error. */
9169 /* We use char because int might match the return type of a gcc2
9170 builtin and then its argument prototype would still apply. */
9172 /* The GNU C library defines this for functions which it implements
9173 to always fail with ENOSYS. Some functions are actually named
9174 something starting with __ and the normal name is an alias. */
9175 #if defined (__stub_wctype) || defined (__stub___wctype)
9178 char (*f) () = wctype;
9192 rm -f conftest.
$ac_objext conftest
$ac_exeext
9193 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
9194 (eval $ac_link) 2>conftest.er1
9196 grep -v '^ *+' conftest.er1
>conftest.err
9198 cat conftest.err
>&5
9199 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9200 (exit $ac_status); } &&
9201 { ac_try
='test -z "$ac_c_werror_flag"
9202 || test ! -s conftest.err'
9203 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9206 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9207 (exit $ac_status); }; } &&
9208 { ac_try
='test -s conftest$ac_exeext'
9209 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9212 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9213 (exit $ac_status); }; }; then
9214 ac_cv_func_wctype
=yes
9216 echo "$as_me: failed program was:" >&5
9217 sed 's/^/| /' conftest.
$ac_ext >&5
9219 ac_cv_func_wctype
=no
9221 rm -f conftest.err conftest.
$ac_objext \
9222 conftest
$ac_exeext conftest.
$ac_ext
9224 echo "$as_me:$LINENO: result: $ac_cv_func_wctype" >&5
9225 echo "${ECHO_T}$ac_cv_func_wctype" >&6
9226 if test $ac_cv_func_wctype = yes; then
9230 echo "$as_me:$LINENO: checking for wctype in -lw" >&5
9231 echo $ECHO_N "checking for wctype in -lw... $ECHO_C" >&6
9232 if test "${ac_cv_lib_w_wctype+set}" = set; then
9233 echo $ECHO_N "(cached) $ECHO_C" >&6
9235 ac_check_lib_save_LIBS
=$LIBS
9237 cat >conftest.
$ac_ext <<_ACEOF
9240 cat confdefs.h
>>conftest.
$ac_ext
9241 cat >>conftest.
$ac_ext <<_ACEOF
9242 /* end confdefs.h. */
9244 /* Override any gcc2 internal prototype to avoid an error. */
9248 /* We use char because int might match the return type of a gcc2
9249 builtin and then its argument prototype would still apply. */
9259 rm -f conftest.
$ac_objext conftest
$ac_exeext
9260 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
9261 (eval $ac_link) 2>conftest.er1
9263 grep -v '^ *+' conftest.er1
>conftest.err
9265 cat conftest.err
>&5
9266 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9267 (exit $ac_status); } &&
9268 { ac_try
='test -z "$ac_c_werror_flag"
9269 || test ! -s conftest.err'
9270 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9273 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9274 (exit $ac_status); }; } &&
9275 { ac_try
='test -s conftest$ac_exeext'
9276 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9279 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9280 (exit $ac_status); }; }; then
9281 ac_cv_lib_w_wctype
=yes
9283 echo "$as_me: failed program was:" >&5
9284 sed 's/^/| /' conftest.
$ac_ext >&5
9286 ac_cv_lib_w_wctype
=no
9288 rm -f conftest.err conftest.
$ac_objext \
9289 conftest
$ac_exeext conftest.
$ac_ext
9290 LIBS
=$ac_check_lib_save_LIBS
9292 echo "$as_me:$LINENO: result: $ac_cv_lib_w_wctype" >&5
9293 echo "${ECHO_T}$ac_cv_lib_w_wctype" >&6
9294 if test $ac_cv_lib_w_wctype = yes; then
9295 cat >>confdefs.h
<<_ACEOF
9306 # Some systems (e.g. Solaris) have `gethostbyname' in libnsl.
9307 echo "$as_me:$LINENO: checking for library containing gethostbyname" >&5
9308 echo $ECHO_N "checking for library containing gethostbyname... $ECHO_C" >&6
9309 if test "${ac_cv_search_gethostbyname+set}" = set; then
9310 echo $ECHO_N "(cached) $ECHO_C" >&6
9312 ac_func_search_save_LIBS
=$LIBS
9313 ac_cv_search_gethostbyname
=no
9314 cat >conftest.
$ac_ext <<_ACEOF
9317 cat confdefs.h
>>conftest.
$ac_ext
9318 cat >>conftest.
$ac_ext <<_ACEOF
9319 /* end confdefs.h. */
9321 /* Override any gcc2 internal prototype to avoid an error. */
9325 /* We use char because int might match the return type of a gcc2
9326 builtin and then its argument prototype would still apply. */
9327 char gethostbyname ();
9336 rm -f conftest.
$ac_objext conftest
$ac_exeext
9337 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
9338 (eval $ac_link) 2>conftest.er1
9340 grep -v '^ *+' conftest.er1
>conftest.err
9342 cat conftest.err
>&5
9343 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9344 (exit $ac_status); } &&
9345 { ac_try
='test -z "$ac_c_werror_flag"
9346 || test ! -s conftest.err'
9347 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9350 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9351 (exit $ac_status); }; } &&
9352 { ac_try
='test -s conftest$ac_exeext'
9353 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9356 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9357 (exit $ac_status); }; }; then
9358 ac_cv_search_gethostbyname
="none required"
9360 echo "$as_me: failed program was:" >&5
9361 sed 's/^/| /' conftest.
$ac_ext >&5
9364 rm -f conftest.err conftest.
$ac_objext \
9365 conftest
$ac_exeext conftest.
$ac_ext
9366 if test "$ac_cv_search_gethostbyname" = no
; then
9367 for ac_lib
in nsl
; do
9368 LIBS
="-l$ac_lib $ac_func_search_save_LIBS"
9369 cat >conftest.
$ac_ext <<_ACEOF
9372 cat confdefs.h
>>conftest.
$ac_ext
9373 cat >>conftest.
$ac_ext <<_ACEOF
9374 /* end confdefs.h. */
9376 /* Override any gcc2 internal prototype to avoid an error. */
9380 /* We use char because int might match the return type of a gcc2
9381 builtin and then its argument prototype would still apply. */
9382 char gethostbyname ();
9391 rm -f conftest.
$ac_objext conftest
$ac_exeext
9392 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
9393 (eval $ac_link) 2>conftest.er1
9395 grep -v '^ *+' conftest.er1
>conftest.err
9397 cat conftest.err
>&5
9398 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9399 (exit $ac_status); } &&
9400 { ac_try
='test -z "$ac_c_werror_flag"
9401 || test ! -s conftest.err'
9402 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9405 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9406 (exit $ac_status); }; } &&
9407 { ac_try
='test -s conftest$ac_exeext'
9408 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9411 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9412 (exit $ac_status); }; }; then
9413 ac_cv_search_gethostbyname
="-l$ac_lib"
9416 echo "$as_me: failed program was:" >&5
9417 sed 's/^/| /' conftest.
$ac_ext >&5
9420 rm -f conftest.err conftest.
$ac_objext \
9421 conftest
$ac_exeext conftest.
$ac_ext
9424 LIBS
=$ac_func_search_save_LIBS
9426 echo "$as_me:$LINENO: result: $ac_cv_search_gethostbyname" >&5
9427 echo "${ECHO_T}$ac_cv_search_gethostbyname" >&6
9428 if test "$ac_cv_search_gethostbyname" != no
; then
9429 test "$ac_cv_search_gethostbyname" = "none required" || LIBS
="$ac_cv_search_gethostbyname $LIBS"
9434 # Some systems (e.g. Solaris) have `socketpair' in libsocket.
9435 echo "$as_me:$LINENO: checking for library containing socketpair" >&5
9436 echo $ECHO_N "checking for library containing socketpair... $ECHO_C" >&6
9437 if test "${ac_cv_search_socketpair+set}" = set; then
9438 echo $ECHO_N "(cached) $ECHO_C" >&6
9440 ac_func_search_save_LIBS
=$LIBS
9441 ac_cv_search_socketpair
=no
9442 cat >conftest.
$ac_ext <<_ACEOF
9445 cat confdefs.h
>>conftest.
$ac_ext
9446 cat >>conftest.
$ac_ext <<_ACEOF
9447 /* end confdefs.h. */
9449 /* Override any gcc2 internal prototype to avoid an error. */
9453 /* We use char because int might match the return type of a gcc2
9454 builtin and then its argument prototype would still apply. */
9464 rm -f conftest.
$ac_objext conftest
$ac_exeext
9465 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
9466 (eval $ac_link) 2>conftest.er1
9468 grep -v '^ *+' conftest.er1
>conftest.err
9470 cat conftest.err
>&5
9471 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9472 (exit $ac_status); } &&
9473 { ac_try
='test -z "$ac_c_werror_flag"
9474 || test ! -s conftest.err'
9475 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9478 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9479 (exit $ac_status); }; } &&
9480 { ac_try
='test -s conftest$ac_exeext'
9481 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9484 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9485 (exit $ac_status); }; }; then
9486 ac_cv_search_socketpair
="none required"
9488 echo "$as_me: failed program was:" >&5
9489 sed 's/^/| /' conftest.
$ac_ext >&5
9492 rm -f conftest.err conftest.
$ac_objext \
9493 conftest
$ac_exeext conftest.
$ac_ext
9494 if test "$ac_cv_search_socketpair" = no
; then
9495 for ac_lib
in socket
; do
9496 LIBS
="-l$ac_lib $ac_func_search_save_LIBS"
9497 cat >conftest.
$ac_ext <<_ACEOF
9500 cat confdefs.h
>>conftest.
$ac_ext
9501 cat >>conftest.
$ac_ext <<_ACEOF
9502 /* end confdefs.h. */
9504 /* Override any gcc2 internal prototype to avoid an error. */
9508 /* We use char because int might match the return type of a gcc2
9509 builtin and then its argument prototype would still apply. */
9519 rm -f conftest.
$ac_objext conftest
$ac_exeext
9520 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
9521 (eval $ac_link) 2>conftest.er1
9523 grep -v '^ *+' conftest.er1
>conftest.err
9525 cat conftest.err
>&5
9526 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9527 (exit $ac_status); } &&
9528 { ac_try
='test -z "$ac_c_werror_flag"
9529 || test ! -s conftest.err'
9530 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9533 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9534 (exit $ac_status); }; } &&
9535 { ac_try
='test -s conftest$ac_exeext'
9536 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9539 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9540 (exit $ac_status); }; }; then
9541 ac_cv_search_socketpair
="-l$ac_lib"
9544 echo "$as_me: failed program was:" >&5
9545 sed 's/^/| /' conftest.
$ac_ext >&5
9548 rm -f conftest.err conftest.
$ac_objext \
9549 conftest
$ac_exeext conftest.
$ac_ext
9552 LIBS
=$ac_func_search_save_LIBS
9554 echo "$as_me:$LINENO: result: $ac_cv_search_socketpair" >&5
9555 echo "${ECHO_T}$ac_cv_search_socketpair" >&6
9556 if test "$ac_cv_search_socketpair" != no
; then
9557 test "$ac_cv_search_socketpair" = "none required" || LIBS
="$ac_cv_search_socketpair $LIBS"
9562 # Link in zlib if we can. This allows us to read compressed debug sections.
9563 echo "$as_me:$LINENO: checking for library containing zlibVersion" >&5
9564 echo $ECHO_N "checking for library containing zlibVersion... $ECHO_C" >&6
9565 if test "${ac_cv_search_zlibVersion+set}" = set; then
9566 echo $ECHO_N "(cached) $ECHO_C" >&6
9568 ac_func_search_save_LIBS
=$LIBS
9569 ac_cv_search_zlibVersion
=no
9570 cat >conftest.
$ac_ext <<_ACEOF
9573 cat confdefs.h
>>conftest.
$ac_ext
9574 cat >>conftest.
$ac_ext <<_ACEOF
9575 /* end confdefs.h. */
9577 /* Override any gcc2 internal prototype to avoid an error. */
9581 /* We use char because int might match the return type of a gcc2
9582 builtin and then its argument prototype would still apply. */
9583 char zlibVersion ();
9592 rm -f conftest.
$ac_objext conftest
$ac_exeext
9593 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
9594 (eval $ac_link) 2>conftest.er1
9596 grep -v '^ *+' conftest.er1
>conftest.err
9598 cat conftest.err
>&5
9599 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9600 (exit $ac_status); } &&
9601 { ac_try
='test -z "$ac_c_werror_flag"
9602 || test ! -s conftest.err'
9603 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9606 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9607 (exit $ac_status); }; } &&
9608 { ac_try
='test -s conftest$ac_exeext'
9609 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9612 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9613 (exit $ac_status); }; }; then
9614 ac_cv_search_zlibVersion
="none required"
9616 echo "$as_me: failed program was:" >&5
9617 sed 's/^/| /' conftest.
$ac_ext >&5
9620 rm -f conftest.err conftest.
$ac_objext \
9621 conftest
$ac_exeext conftest.
$ac_ext
9622 if test "$ac_cv_search_zlibVersion" = no
; then
9624 LIBS
="-l$ac_lib $ac_func_search_save_LIBS"
9625 cat >conftest.
$ac_ext <<_ACEOF
9628 cat confdefs.h
>>conftest.
$ac_ext
9629 cat >>conftest.
$ac_ext <<_ACEOF
9630 /* end confdefs.h. */
9632 /* Override any gcc2 internal prototype to avoid an error. */
9636 /* We use char because int might match the return type of a gcc2
9637 builtin and then its argument prototype would still apply. */
9638 char zlibVersion ();
9647 rm -f conftest.
$ac_objext conftest
$ac_exeext
9648 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
9649 (eval $ac_link) 2>conftest.er1
9651 grep -v '^ *+' conftest.er1
>conftest.err
9653 cat conftest.err
>&5
9654 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9655 (exit $ac_status); } &&
9656 { ac_try
='test -z "$ac_c_werror_flag"
9657 || test ! -s conftest.err'
9658 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9661 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9662 (exit $ac_status); }; } &&
9663 { ac_try
='test -s conftest$ac_exeext'
9664 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9667 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9668 (exit $ac_status); }; }; then
9669 ac_cv_search_zlibVersion
="-l$ac_lib"
9672 echo "$as_me: failed program was:" >&5
9673 sed 's/^/| /' conftest.
$ac_ext >&5
9676 rm -f conftest.err conftest.
$ac_objext \
9677 conftest
$ac_exeext conftest.
$ac_ext
9680 LIBS
=$ac_func_search_save_LIBS
9682 echo "$as_me:$LINENO: result: $ac_cv_search_zlibVersion" >&5
9683 echo "${ECHO_T}$ac_cv_search_zlibVersion" >&6
9684 if test "$ac_cv_search_zlibVersion" != no
; then
9685 test "$ac_cv_search_zlibVersion" = "none required" || LIBS
="$ac_cv_search_zlibVersion $LIBS"
9687 for ac_header
in zlib.h
9689 as_ac_Header
=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
9690 if eval "test \"\${$as_ac_Header+set}\" = set"; then
9691 echo "$as_me:$LINENO: checking for $ac_header" >&5
9692 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
9693 if eval "test \"\${$as_ac_Header+set}\" = set"; then
9694 echo $ECHO_N "(cached) $ECHO_C" >&6
9696 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
9697 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
9699 # Is the header compilable?
9700 echo "$as_me:$LINENO: checking $ac_header usability" >&5
9701 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
9702 cat >conftest.
$ac_ext <<_ACEOF
9705 cat confdefs.h
>>conftest.
$ac_ext
9706 cat >>conftest.
$ac_ext <<_ACEOF
9707 /* end confdefs.h. */
9708 $ac_includes_default
9709 #include <$ac_header>
9711 rm -f conftest.
$ac_objext
9712 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
9713 (eval $ac_compile) 2>conftest.er1
9715 grep -v '^ *+' conftest.er1
>conftest.err
9717 cat conftest.err
>&5
9718 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9719 (exit $ac_status); } &&
9720 { ac_try
='test -z "$ac_c_werror_flag"
9721 || test ! -s conftest.err'
9722 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9725 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9726 (exit $ac_status); }; } &&
9727 { ac_try
='test -s conftest.$ac_objext'
9728 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9731 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9732 (exit $ac_status); }; }; then
9733 ac_header_compiler
=yes
9735 echo "$as_me: failed program was:" >&5
9736 sed 's/^/| /' conftest.
$ac_ext >&5
9738 ac_header_compiler
=no
9740 rm -f conftest.err conftest.
$ac_objext conftest.
$ac_ext
9741 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
9742 echo "${ECHO_T}$ac_header_compiler" >&6
9744 # Is the header present?
9745 echo "$as_me:$LINENO: checking $ac_header presence" >&5
9746 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
9747 cat >conftest.
$ac_ext <<_ACEOF
9750 cat confdefs.h
>>conftest.
$ac_ext
9751 cat >>conftest.
$ac_ext <<_ACEOF
9752 /* end confdefs.h. */
9753 #include <$ac_header>
9755 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
9756 (eval $ac_cpp conftest.
$ac_ext) 2>conftest.er1
9758 grep -v '^ *+' conftest.er1
>conftest.err
9760 cat conftest.err
>&5
9761 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9762 (exit $ac_status); } >/dev
/null
; then
9763 if test -s conftest.err
; then
9764 ac_cpp_err
=$ac_c_preproc_warn_flag
9765 ac_cpp_err
=$ac_cpp_err$ac_c_werror_flag
9772 if test -z "$ac_cpp_err"; then
9773 ac_header_preproc
=yes
9775 echo "$as_me: failed program was:" >&5
9776 sed 's/^/| /' conftest.
$ac_ext >&5
9778 ac_header_preproc
=no
9780 rm -f conftest.err conftest.
$ac_ext
9781 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
9782 echo "${ECHO_T}$ac_header_preproc" >&6
9784 # So? What about this header?
9785 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
9787 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
9788 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
9789 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
9790 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
9791 ac_header_preproc
=yes
9794 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
9795 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
9796 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
9797 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
9798 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
9799 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
9800 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
9801 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
9802 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
9803 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
9804 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
9805 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
9808 ## ------------------------------------------ ##
9809 ## Report this to the AC_PACKAGE_NAME lists. ##
9810 ## ------------------------------------------ ##
9813 sed "s/^/$as_me: WARNING: /" >&2
9816 echo "$as_me:$LINENO: checking for $ac_header" >&5
9817 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
9818 if eval "test \"\${$as_ac_Header+set}\" = set"; then
9819 echo $ECHO_N "(cached) $ECHO_C" >&6
9821 eval "$as_ac_Header=\$ac_header_preproc"
9823 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
9824 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
9827 if test `eval echo '${'$as_ac_Header'}'` = yes; then
9828 cat >>confdefs.h
<<_ACEOF
9829 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
9839 # On HP/UX we may need libxpdl for dlgetmodinfo (used by solib-pa64.c).
9840 echo "$as_me:$LINENO: checking for library containing dlgetmodinfo" >&5
9841 echo $ECHO_N "checking for library containing dlgetmodinfo... $ECHO_C" >&6
9842 if test "${ac_cv_search_dlgetmodinfo+set}" = set; then
9843 echo $ECHO_N "(cached) $ECHO_C" >&6
9845 ac_func_search_save_LIBS
=$LIBS
9846 ac_cv_search_dlgetmodinfo
=no
9847 cat >conftest.
$ac_ext <<_ACEOF
9850 cat confdefs.h
>>conftest.
$ac_ext
9851 cat >>conftest.
$ac_ext <<_ACEOF
9852 /* end confdefs.h. */
9854 /* Override any gcc2 internal prototype to avoid an error. */
9858 /* We use char because int might match the return type of a gcc2
9859 builtin and then its argument prototype would still apply. */
9860 char dlgetmodinfo ();
9869 rm -f conftest.
$ac_objext conftest
$ac_exeext
9870 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
9871 (eval $ac_link) 2>conftest.er1
9873 grep -v '^ *+' conftest.er1
>conftest.err
9875 cat conftest.err
>&5
9876 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9877 (exit $ac_status); } &&
9878 { ac_try
='test -z "$ac_c_werror_flag"
9879 || test ! -s conftest.err'
9880 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9883 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9884 (exit $ac_status); }; } &&
9885 { ac_try
='test -s conftest$ac_exeext'
9886 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9889 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9890 (exit $ac_status); }; }; then
9891 ac_cv_search_dlgetmodinfo
="none required"
9893 echo "$as_me: failed program was:" >&5
9894 sed 's/^/| /' conftest.
$ac_ext >&5
9897 rm -f conftest.err conftest.
$ac_objext \
9898 conftest
$ac_exeext conftest.
$ac_ext
9899 if test "$ac_cv_search_dlgetmodinfo" = no
; then
9900 for ac_lib
in dl xpdl
; do
9901 LIBS
="-l$ac_lib $ac_func_search_save_LIBS"
9902 cat >conftest.
$ac_ext <<_ACEOF
9905 cat confdefs.h
>>conftest.
$ac_ext
9906 cat >>conftest.
$ac_ext <<_ACEOF
9907 /* end confdefs.h. */
9909 /* Override any gcc2 internal prototype to avoid an error. */
9913 /* We use char because int might match the return type of a gcc2
9914 builtin and then its argument prototype would still apply. */
9915 char dlgetmodinfo ();
9924 rm -f conftest.
$ac_objext conftest
$ac_exeext
9925 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
9926 (eval $ac_link) 2>conftest.er1
9928 grep -v '^ *+' conftest.er1
>conftest.err
9930 cat conftest.err
>&5
9931 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9932 (exit $ac_status); } &&
9933 { ac_try
='test -z "$ac_c_werror_flag"
9934 || test ! -s conftest.err'
9935 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9938 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9939 (exit $ac_status); }; } &&
9940 { ac_try
='test -s conftest$ac_exeext'
9941 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9944 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9945 (exit $ac_status); }; }; then
9946 ac_cv_search_dlgetmodinfo
="-l$ac_lib"
9949 echo "$as_me: failed program was:" >&5
9950 sed 's/^/| /' conftest.
$ac_ext >&5
9953 rm -f conftest.err conftest.
$ac_objext \
9954 conftest
$ac_exeext conftest.
$ac_ext
9957 LIBS
=$ac_func_search_save_LIBS
9959 echo "$as_me:$LINENO: result: $ac_cv_search_dlgetmodinfo" >&5
9960 echo "${ECHO_T}$ac_cv_search_dlgetmodinfo" >&6
9961 if test "$ac_cv_search_dlgetmodinfo" != no
; then
9962 test "$ac_cv_search_dlgetmodinfo" = "none required" || LIBS
="$ac_cv_search_dlgetmodinfo $LIBS"
9967 # On alpha-osf, it appears that libtermcap and libcurses are not compatible.
9968 # There is a very specific comment in /usr/include/curses.h explaining that
9969 # termcap routines built into libcurses must not be used.
9971 # The symptoms we observed so far is GDB unexpectedly changing
9972 # the terminal settings when tgetent is called - this is particularly
9973 # visible as the output is missing carriage returns, and so rapidly
9974 # becomes very hard to read.
9976 # The readline configure script has already decided that libtermcap
9977 # was enough for its purposes, and so decided to build readline using
9978 # libtermcap. Since the TUI mode requires curses, building GDB with
9979 # TUI enabled results in both libraries to be used at the same time,
9980 # which is not allowed. This basically means that GDB with TUI is
9981 # broken on alpha-osf.
9985 if "$enable_tui" = "yes"; then
9986 { { echo "$as_me:$LINENO: error: Building GDB with TUI mode is not supported on this host" >&5
9987 echo "$as_me: error: Building GDB with TUI mode is not supported on this host" >&2;}
9988 { (exit 1); exit 1; }; }
9990 if "$enable_tui" = "auto"; then
9996 # Check whether we should enable the TUI, but only do so if we really
9998 if test x
"$enable_tui" != xno
; then
9999 if test -d $srcdir/tui
; then
10000 # For the TUI, we need enhanced curses functionality.
10002 # FIXME: kettenis/20040905: We prefer ncurses over the vendor-supplied
10003 # curses library because the latter might not provide all the
10004 # functionality we need. However, this leads to problems on systems
10005 # where the linker searches /usr/local/lib, but the compiler doesn't
10006 # search /usr/local/include, if ncurses is installed in /usr/local. A
10007 # default installation of ncurses on alpha*-dec-osf* will lead to such
10009 echo "$as_me:$LINENO: checking for library containing waddstr" >&5
10010 echo $ECHO_N "checking for library containing waddstr... $ECHO_C" >&6
10011 if test "${ac_cv_search_waddstr+set}" = set; then
10012 echo $ECHO_N "(cached) $ECHO_C" >&6
10014 ac_func_search_save_LIBS
=$LIBS
10015 ac_cv_search_waddstr
=no
10016 cat >conftest.
$ac_ext <<_ACEOF
10019 cat confdefs.h
>>conftest.
$ac_ext
10020 cat >>conftest.
$ac_ext <<_ACEOF
10021 /* end confdefs.h. */
10023 /* Override any gcc2 internal prototype to avoid an error. */
10027 /* We use char because int might match the return type of a gcc2
10028 builtin and then its argument prototype would still apply. */
10038 rm -f conftest.
$ac_objext conftest
$ac_exeext
10039 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
10040 (eval $ac_link) 2>conftest.er1
10042 grep -v '^ *+' conftest.er1
>conftest.err
10044 cat conftest.err
>&5
10045 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10046 (exit $ac_status); } &&
10047 { ac_try
='test -z "$ac_c_werror_flag"
10048 || test ! -s conftest.err'
10049 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10050 (eval $ac_try) 2>&5
10052 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10053 (exit $ac_status); }; } &&
10054 { ac_try
='test -s conftest$ac_exeext'
10055 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10056 (eval $ac_try) 2>&5
10058 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10059 (exit $ac_status); }; }; then
10060 ac_cv_search_waddstr
="none required"
10062 echo "$as_me: failed program was:" >&5
10063 sed 's/^/| /' conftest.
$ac_ext >&5
10066 rm -f conftest.err conftest.
$ac_objext \
10067 conftest
$ac_exeext conftest.
$ac_ext
10068 if test "$ac_cv_search_waddstr" = no
; then
10069 for ac_lib
in ncurses cursesX curses
; do
10070 LIBS
="-l$ac_lib $ac_func_search_save_LIBS"
10071 cat >conftest.
$ac_ext <<_ACEOF
10074 cat confdefs.h
>>conftest.
$ac_ext
10075 cat >>conftest.
$ac_ext <<_ACEOF
10076 /* end confdefs.h. */
10078 /* Override any gcc2 internal prototype to avoid an error. */
10082 /* We use char because int might match the return type of a gcc2
10083 builtin and then its argument prototype would still apply. */
10093 rm -f conftest.
$ac_objext conftest
$ac_exeext
10094 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
10095 (eval $ac_link) 2>conftest.er1
10097 grep -v '^ *+' conftest.er1
>conftest.err
10099 cat conftest.err
>&5
10100 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10101 (exit $ac_status); } &&
10102 { ac_try
='test -z "$ac_c_werror_flag"
10103 || test ! -s conftest.err'
10104 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10105 (eval $ac_try) 2>&5
10107 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10108 (exit $ac_status); }; } &&
10109 { ac_try
='test -s conftest$ac_exeext'
10110 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10111 (eval $ac_try) 2>&5
10113 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10114 (exit $ac_status); }; }; then
10115 ac_cv_search_waddstr
="-l$ac_lib"
10118 echo "$as_me: failed program was:" >&5
10119 sed 's/^/| /' conftest.
$ac_ext >&5
10122 rm -f conftest.err conftest.
$ac_objext \
10123 conftest
$ac_exeext conftest.
$ac_ext
10126 LIBS
=$ac_func_search_save_LIBS
10128 echo "$as_me:$LINENO: result: $ac_cv_search_waddstr" >&5
10129 echo "${ECHO_T}$ac_cv_search_waddstr" >&6
10130 if test "$ac_cv_search_waddstr" != no
; then
10131 test "$ac_cv_search_waddstr" = "none required" || LIBS
="$ac_cv_search_waddstr $LIBS"
10136 if test "$ac_cv_search_waddstr" != no
; then
10137 CONFIG_OBS
="$CONFIG_OBS \$(SUBDIR_TUI_OBS)"
10138 CONFIG_DEPS
="$CONFIG_DEPS \$(SUBDIR_TUI_DEPS)"
10139 CONFIG_SRCS
="$CONFIG_SRCS \$(SUBDIR_TUI_SRCS)"
10140 ENABLE_CFLAGS
="$ENABLE_CFLAGS \$(SUBDIR_TUI_CFLAGS)"
10141 CONFIG_ALL
="${CONFIG_ALL} all-tui"
10142 CONFIG_CLEAN
="${CONFIG_CLEAN} clean-tui"
10143 CONFIG_INSTALL
="${CONFIG_INSTALL} install-tui"
10144 CONFIG_UNINSTALL
="${CONFIG_UNINSTALL} uninstall-tui"
10146 if test x
"$enable_tui" = xyes
; then
10147 { { echo "$as_me:$LINENO: error: no enhanced curses library found; disable TUI" >&5
10148 echo "$as_me: error: no enhanced curses library found; disable TUI" >&2;}
10149 { (exit 1); exit 1; }; }
10151 { echo "$as_me:$LINENO: WARNING: no enhanced curses library found; disabling TUI" >&5
10152 echo "$as_me: WARNING: no enhanced curses library found; disabling TUI" >&2;}
10158 # Since GDB uses Readline, we need termcap functionality. In many
10159 # cases this will be provided by the curses library, but some systems
10160 # have a seperate termcap library, or no curses library at all.
10164 if test -d $srcdir/libtermcap
; then
10165 LIBS
="../libtermcap/libtermcap.a $LIBS"
10166 ac_cv_search_tgetent
="../libtermcap/libtermcap.a"
10169 ac_cv_search_tgetent
="none required"
10172 ac_cv_search_tgetent
="none required"
10173 CONFIG_OBS
="$CONFIG_OBS windows-termcap.o"
10177 # These are the libraries checked by Readline.
10178 echo "$as_me:$LINENO: checking for library containing tgetent" >&5
10179 echo $ECHO_N "checking for library containing tgetent... $ECHO_C" >&6
10180 if test "${ac_cv_search_tgetent+set}" = set; then
10181 echo $ECHO_N "(cached) $ECHO_C" >&6
10183 ac_func_search_save_LIBS
=$LIBS
10184 ac_cv_search_tgetent
=no
10185 cat >conftest.
$ac_ext <<_ACEOF
10188 cat confdefs.h
>>conftest.
$ac_ext
10189 cat >>conftest.
$ac_ext <<_ACEOF
10190 /* end confdefs.h. */
10192 /* Override any gcc2 internal prototype to avoid an error. */
10196 /* We use char because int might match the return type of a gcc2
10197 builtin and then its argument prototype would still apply. */
10207 rm -f conftest.
$ac_objext conftest
$ac_exeext
10208 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
10209 (eval $ac_link) 2>conftest.er1
10211 grep -v '^ *+' conftest.er1
>conftest.err
10213 cat conftest.err
>&5
10214 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10215 (exit $ac_status); } &&
10216 { ac_try
='test -z "$ac_c_werror_flag"
10217 || test ! -s conftest.err'
10218 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10219 (eval $ac_try) 2>&5
10221 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10222 (exit $ac_status); }; } &&
10223 { ac_try
='test -s conftest$ac_exeext'
10224 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10225 (eval $ac_try) 2>&5
10227 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10228 (exit $ac_status); }; }; then
10229 ac_cv_search_tgetent
="none required"
10231 echo "$as_me: failed program was:" >&5
10232 sed 's/^/| /' conftest.
$ac_ext >&5
10235 rm -f conftest.err conftest.
$ac_objext \
10236 conftest
$ac_exeext conftest.
$ac_ext
10237 if test "$ac_cv_search_tgetent" = no
; then
10238 for ac_lib
in termcap tinfo curses ncurses
; do
10239 LIBS
="-l$ac_lib $ac_func_search_save_LIBS"
10240 cat >conftest.
$ac_ext <<_ACEOF
10243 cat confdefs.h
>>conftest.
$ac_ext
10244 cat >>conftest.
$ac_ext <<_ACEOF
10245 /* end confdefs.h. */
10247 /* Override any gcc2 internal prototype to avoid an error. */
10251 /* We use char because int might match the return type of a gcc2
10252 builtin and then its argument prototype would still apply. */
10262 rm -f conftest.
$ac_objext conftest
$ac_exeext
10263 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
10264 (eval $ac_link) 2>conftest.er1
10266 grep -v '^ *+' conftest.er1
>conftest.err
10268 cat conftest.err
>&5
10269 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10270 (exit $ac_status); } &&
10271 { ac_try
='test -z "$ac_c_werror_flag"
10272 || test ! -s conftest.err'
10273 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10274 (eval $ac_try) 2>&5
10276 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10277 (exit $ac_status); }; } &&
10278 { ac_try
='test -s conftest$ac_exeext'
10279 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10280 (eval $ac_try) 2>&5
10282 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10283 (exit $ac_status); }; }; then
10284 ac_cv_search_tgetent
="-l$ac_lib"
10287 echo "$as_me: failed program was:" >&5
10288 sed 's/^/| /' conftest.
$ac_ext >&5
10291 rm -f conftest.err conftest.
$ac_objext \
10292 conftest
$ac_exeext conftest.
$ac_ext
10295 LIBS
=$ac_func_search_save_LIBS
10297 echo "$as_me:$LINENO: result: $ac_cv_search_tgetent" >&5
10298 echo "${ECHO_T}$ac_cv_search_tgetent" >&6
10299 if test "$ac_cv_search_tgetent" != no
; then
10300 test "$ac_cv_search_tgetent" = "none required" || LIBS
="$ac_cv_search_tgetent $LIBS"
10305 if test "$ac_cv_search_tgetent" = no
; then
10306 { { echo "$as_me:$LINENO: error: no termcap library found" >&5
10307 echo "$as_me: error: no termcap library found" >&2;}
10308 { (exit 1); exit 1; }; }
10312 # Check whether --with-system-readline or --without-system-readline was given.
10313 if test "${with_system_readline+set}" = set; then
10314 withval
="$with_system_readline"
10318 if test "$with_system_readline" = yes; then
10319 READLINE
=-lreadline
10323 READLINE
='$(READLINE_DIR)/libreadline.a'
10324 READLINE_DEPS
='$(READLINE)'
10325 READLINE_CFLAGS
='-I$(READLINE_SRC)/..'
10332 # Check whether --with-expat or --without-expat was given.
10333 if test "${with_expat+set}" = set; then
10334 withval
="$with_expat"
10339 echo "$as_me:$LINENO: checking whether to use expat" >&5
10340 echo $ECHO_N "checking whether to use expat... $ECHO_C" >&6
10341 echo "$as_me:$LINENO: result: $with_expat" >&5
10342 echo "${ECHO_T}$with_expat" >&6
10344 if test "${with_expat}" = no
; then
10345 { echo "$as_me:$LINENO: WARNING: expat support disabled; some features may be unavailable." >&5
10346 echo "$as_me: WARNING: expat support disabled; some features may be unavailable." >&2;}
10350 if test "X$prefix" = "XNONE"; then
10351 acl_final_prefix
="$ac_default_prefix"
10353 acl_final_prefix
="$prefix"
10355 if test "X$exec_prefix" = "XNONE"; then
10356 acl_final_exec_prefix
='${prefix}'
10358 acl_final_exec_prefix
="$exec_prefix"
10360 acl_save_prefix
="$prefix"
10361 prefix
="$acl_final_prefix"
10362 eval acl_final_exec_prefix
=\"$acl_final_exec_prefix\"
10363 prefix
="$acl_save_prefix"
10366 # Check whether --with-gnu-ld or --without-gnu-ld was given.
10367 if test "${with_gnu_ld+set}" = set; then
10368 withval
="$with_gnu_ld"
10369 test "$withval" = no || with_gnu_ld
=yes
10373 # Prepare PATH_SEPARATOR.
10374 # The user is always right.
10375 if test "${PATH_SEPARATOR+set}" != set; then
10376 echo "#! /bin/sh" >conf$$.sh
10377 echo "exit 0" >>conf$$.sh
10379 if (PATH
="/nonexistent;."; conf$$.sh
) >/dev
/null
2>&1; then
10387 if test "$GCC" = yes; then
10388 # Check if gcc -print-prog-name=ld gives a path.
10389 echo "$as_me:$LINENO: checking for ld used by GCC" >&5
10390 echo $ECHO_N "checking for ld used by GCC... $ECHO_C" >&6
10393 # gcc leaves a trailing carriage return which upsets mingw
10394 ac_prog
=`($CC -print-prog-name=ld) 2>&5 | tr -d '\015'` ;;
10396 ac_prog
=`($CC -print-prog-name=ld) 2>&5` ;;
10399 # Accept absolute paths.
10400 [\\/]* |
[A-Za-z
]:[\\/]*)
10401 re_direlt
='/[^/][^/]*/\.\./'
10402 # Canonicalize the path of ld
10403 ac_prog
=`echo $ac_prog| sed 's%\\\\%/%g'`
10404 while echo $ac_prog |
grep "$re_direlt" > /dev
/null
2>&1; do
10405 ac_prog
=`echo $ac_prog| sed "s%$re_direlt%/%"`
10407 test -z "$LD" && LD
="$ac_prog"
10410 # If it fails, then pretend we aren't using GCC.
10414 # If it is relative, then search for the first ld in PATH.
10415 with_gnu_ld
=unknown
10418 elif test "$with_gnu_ld" = yes; then
10419 echo "$as_me:$LINENO: checking for GNU ld" >&5
10420 echo $ECHO_N "checking for GNU ld... $ECHO_C" >&6
10422 echo "$as_me:$LINENO: checking for non-GNU ld" >&5
10423 echo $ECHO_N "checking for non-GNU ld... $ECHO_C" >&6
10425 if test "${acl_cv_path_LD+set}" = set; then
10426 echo $ECHO_N "(cached) $ECHO_C" >&6
10428 if test -z "$LD"; then
10429 IFS
="${IFS= }"; ac_save_ifs="$IFS"; IFS="${IFS}${PATH_SEPARATOR-:}"
10430 for ac_dir
in $PATH; do
10431 test -z "$ac_dir" && ac_dir
=.
10432 if test -f "$ac_dir/$ac_prog" ||
test -f "$ac_dir/$ac_prog$ac_exeext"; then
10433 acl_cv_path_LD
="$ac_dir/$ac_prog"
10434 # Check to see if the program is GNU ld. I'd rather use --version,
10435 # but apparently some GNU ld's only accept -v.
10436 # Break only if it was the GNU/non-GNU ld that we prefer.
10437 if "$acl_cv_path_LD" -v 2>&1 < /dev
/null |
egrep '(GNU|with BFD)' > /dev
/null
; then
10438 test "$with_gnu_ld" != no
&& break
10440 test "$with_gnu_ld" != yes && break
10446 acl_cv_path_LD
="$LD" # Let the user override the test with a path.
10450 LD
="$acl_cv_path_LD"
10451 if test -n "$LD"; then
10452 echo "$as_me:$LINENO: result: $LD" >&5
10453 echo "${ECHO_T}$LD" >&6
10455 echo "$as_me:$LINENO: result: no" >&5
10456 echo "${ECHO_T}no" >&6
10458 test -z "$LD" && { { echo "$as_me:$LINENO: error: no acceptable ld found in \$PATH" >&5
10459 echo "$as_me: error: no acceptable ld found in \$PATH" >&2;}
10460 { (exit 1); exit 1; }; }
10461 echo "$as_me:$LINENO: checking if the linker ($LD) is GNU ld" >&5
10462 echo $ECHO_N "checking if the linker ($LD) is GNU ld... $ECHO_C" >&6
10463 if test "${acl_cv_prog_gnu_ld+set}" = set; then
10464 echo $ECHO_N "(cached) $ECHO_C" >&6
10466 # I'd rather use --version here, but apparently some GNU ld's only accept -v.
10467 if $LD -v 2>&1 </dev
/null |
egrep '(GNU|with BFD)' 1>&5; then
10468 acl_cv_prog_gnu_ld
=yes
10470 acl_cv_prog_gnu_ld
=no
10473 echo "$as_me:$LINENO: result: $acl_cv_prog_gnu_ld" >&5
10474 echo "${ECHO_T}$acl_cv_prog_gnu_ld" >&6
10475 with_gnu_ld
=$acl_cv_prog_gnu_ld
10479 echo "$as_me:$LINENO: checking for shared library run path origin" >&5
10480 echo $ECHO_N "checking for shared library run path origin... $ECHO_C" >&6
10481 if test "${acl_cv_rpath+set}" = set; then
10482 echo $ECHO_N "(cached) $ECHO_C" >&6
10485 CC
="$CC" GCC
="$GCC" LDFLAGS
="$LDFLAGS" LD
="$LD" with_gnu_ld
="$with_gnu_ld" \
10486 ${CONFIG_SHELL-/bin/sh} "$ac_aux_dir/config.rpath" "$host" > conftest.sh
10488 rm -f .
/conftest.sh
10492 echo "$as_me:$LINENO: result: $acl_cv_rpath" >&5
10493 echo "${ECHO_T}$acl_cv_rpath" >&6
10495 libext
="$acl_cv_libext"
10496 shlibext
="$acl_cv_shlibext"
10497 hardcode_libdir_flag_spec
="$acl_cv_hardcode_libdir_flag_spec"
10498 hardcode_libdir_separator
="$acl_cv_hardcode_libdir_separator"
10499 hardcode_direct
="$acl_cv_hardcode_direct"
10500 hardcode_minus_L
="$acl_cv_hardcode_minus_L"
10501 # Check whether --enable-rpath or --disable-rpath was given.
10502 if test "${enable_rpath+set}" = set; then
10503 enableval
="$enable_rpath"
10519 acl_save_prefix
="$prefix"
10520 prefix
="$acl_final_prefix"
10521 acl_save_exec_prefix
="$exec_prefix"
10522 exec_prefix
="$acl_final_exec_prefix"
10524 eval additional_includedir
=\"$includedir\"
10525 eval additional_libdir
=\"$libdir\"
10527 exec_prefix
="$acl_save_exec_prefix"
10528 prefix
="$acl_save_prefix"
10531 # Check whether --with-libexpat-prefix or --without-libexpat-prefix was given.
10532 if test "${with_libexpat_prefix+set}" = set; then
10533 withval
="$with_libexpat_prefix"
10535 if test "X$withval" = "Xno"; then
10538 if test "X$withval" = "X"; then
10540 acl_save_prefix
="$prefix"
10541 prefix
="$acl_final_prefix"
10542 acl_save_exec_prefix
="$exec_prefix"
10543 exec_prefix
="$acl_final_exec_prefix"
10545 eval additional_includedir
=\"$includedir\"
10546 eval additional_libdir
=\"$libdir\"
10548 exec_prefix
="$acl_save_exec_prefix"
10549 prefix
="$acl_save_prefix"
10552 additional_includedir
="$withval/include"
10553 additional_libdir
="$withval/lib"
10563 names_already_handled
=
10564 names_next_round
='expat '
10565 while test -n "$names_next_round"; do
10566 names_this_round
="$names_next_round"
10568 for name
in $names_this_round; do
10570 for n
in $names_already_handled; do
10571 if test "$n" = "$name"; then
10572 already_handled
=yes
10576 if test -z "$already_handled"; then
10577 names_already_handled
="$names_already_handled $name"
10578 uppername
=`echo "$name" | sed -e 'y|abcdefghijklmnopqrstuvwxyz./-|ABCDEFGHIJKLMNOPQRSTUVWXYZ___|'`
10579 eval value
=\"\
$HAVE_LIB$uppername\"
10580 if test -n "$value"; then
10581 if test "$value" = yes; then
10582 eval value
=\"\
$LIB$uppername\"
10583 test -z "$value" || LIBEXPAT
="${LIBEXPAT}${LIBEXPAT:+ }$value"
10584 eval value
=\"\
$LTLIB$uppername\"
10585 test -z "$value" || LTLIBEXPAT
="${LTLIBEXPAT}${LTLIBEXPAT:+ }$value"
10594 if test $use_additional = yes; then
10595 if test -n "$shlibext" && test -f "$additional_libdir/lib$name.$shlibext"; then
10596 found_dir
="$additional_libdir"
10597 found_so
="$additional_libdir/lib$name.$shlibext"
10598 if test -f "$additional_libdir/lib$name.la"; then
10599 found_la
="$additional_libdir/lib$name.la"
10602 if test -f "$additional_libdir/lib$name.$libext"; then
10603 found_dir
="$additional_libdir"
10604 found_a
="$additional_libdir/lib$name.$libext"
10605 if test -f "$additional_libdir/lib$name.la"; then
10606 found_la
="$additional_libdir/lib$name.la"
10611 if test "X$found_dir" = "X"; then
10612 for x
in $LDFLAGS $LTLIBEXPAT; do
10614 acl_save_prefix
="$prefix"
10615 prefix
="$acl_final_prefix"
10616 acl_save_exec_prefix
="$exec_prefix"
10617 exec_prefix
="$acl_final_exec_prefix"
10619 exec_prefix
="$acl_save_exec_prefix"
10620 prefix
="$acl_save_prefix"
10624 dir
=`echo "X$x" | sed -e 's/^X-L//'`
10625 if test -n "$shlibext" && test -f "$dir/lib$name.$shlibext"; then
10627 found_so
="$dir/lib$name.$shlibext"
10628 if test -f "$dir/lib$name.la"; then
10629 found_la
="$dir/lib$name.la"
10632 if test -f "$dir/lib$name.$libext"; then
10634 found_a
="$dir/lib$name.$libext"
10635 if test -f "$dir/lib$name.la"; then
10636 found_la
="$dir/lib$name.la"
10642 if test "X$found_dir" != "X"; then
10647 if test "X$found_dir" != "X"; then
10648 LTLIBEXPAT
="${LTLIBEXPAT}${LTLIBEXPAT:+ }-L$found_dir -l$name"
10649 if test "X$found_so" != "X"; then
10650 if test "$enable_rpath" = no ||
test "X$found_dir" = "X/usr/lib"; then
10651 LIBEXPAT
="${LIBEXPAT}${LIBEXPAT:+ }$found_so"
10654 for x
in $ltrpathdirs; do
10655 if test "X$x" = "X$found_dir"; then
10660 if test -z "$haveit"; then
10661 ltrpathdirs
="$ltrpathdirs $found_dir"
10663 if test "$hardcode_direct" = yes; then
10664 LIBEXPAT
="${LIBEXPAT}${LIBEXPAT:+ }$found_so"
10666 if test -n "$hardcode_libdir_flag_spec" && test "$hardcode_minus_L" = no
; then
10667 LIBEXPAT
="${LIBEXPAT}${LIBEXPAT:+ }$found_so"
10669 for x
in $rpathdirs; do
10670 if test "X$x" = "X$found_dir"; then
10675 if test -z "$haveit"; then
10676 rpathdirs
="$rpathdirs $found_dir"
10680 for x
in $LDFLAGS $LIBEXPAT; do
10682 acl_save_prefix
="$prefix"
10683 prefix
="$acl_final_prefix"
10684 acl_save_exec_prefix
="$exec_prefix"
10685 exec_prefix
="$acl_final_exec_prefix"
10687 exec_prefix
="$acl_save_exec_prefix"
10688 prefix
="$acl_save_prefix"
10690 if test "X$x" = "X-L$found_dir"; then
10695 if test -z "$haveit"; then
10696 LIBEXPAT
="${LIBEXPAT}${LIBEXPAT:+ }-L$found_dir"
10698 if test "$hardcode_minus_L" != no
; then
10699 LIBEXPAT
="${LIBEXPAT}${LIBEXPAT:+ }$found_so"
10701 LIBEXPAT
="${LIBEXPAT}${LIBEXPAT:+ }-l$name"
10707 if test "X$found_a" != "X"; then
10708 LIBEXPAT
="${LIBEXPAT}${LIBEXPAT:+ }$found_a"
10710 LIBEXPAT
="${LIBEXPAT}${LIBEXPAT:+ }-L$found_dir -l$name"
10713 additional_includedir
=
10714 case "$found_dir" in
10716 basedir
=`echo "X$found_dir" | sed -e 's,^X,,' -e 's,/lib/*$,,'`
10717 additional_includedir
="$basedir/include"
10720 if test "X$additional_includedir" != "X"; then
10721 if test "X$additional_includedir" != "X/usr/include"; then
10723 if test "X$additional_includedir" = "X/usr/local/include"; then
10724 if test -n "$GCC"; then
10726 linux
*) haveit
=yes;;
10730 if test -z "$haveit"; then
10731 for x
in $CPPFLAGS $INCEXPAT; do
10733 acl_save_prefix
="$prefix"
10734 prefix
="$acl_final_prefix"
10735 acl_save_exec_prefix
="$exec_prefix"
10736 exec_prefix
="$acl_final_exec_prefix"
10738 exec_prefix
="$acl_save_exec_prefix"
10739 prefix
="$acl_save_prefix"
10741 if test "X$x" = "X-I$additional_includedir"; then
10746 if test -z "$haveit"; then
10747 if test -d "$additional_includedir"; then
10748 INCEXPAT
="${INCEXPAT}${INCEXPAT:+ }-I$additional_includedir"
10754 if test -n "$found_la"; then
10755 save_libdir
="$libdir"
10756 case "$found_la" in
10757 */* |
*\\*) .
"$found_la" ;;
10758 *) .
"./$found_la" ;;
10760 libdir
="$save_libdir"
10761 for dep
in $dependency_libs; do
10764 additional_libdir
=`echo "X$dep" | sed -e 's/^X-L//'`
10765 if test "X$additional_libdir" != "X/usr/lib"; then
10767 if test "X$additional_libdir" = "X/usr/local/lib"; then
10768 if test -n "$GCC"; then
10770 linux
*) haveit
=yes;;
10774 if test -z "$haveit"; then
10776 for x
in $LDFLAGS $LIBEXPAT; do
10778 acl_save_prefix
="$prefix"
10779 prefix
="$acl_final_prefix"
10780 acl_save_exec_prefix
="$exec_prefix"
10781 exec_prefix
="$acl_final_exec_prefix"
10783 exec_prefix
="$acl_save_exec_prefix"
10784 prefix
="$acl_save_prefix"
10786 if test "X$x" = "X-L$additional_libdir"; then
10791 if test -z "$haveit"; then
10792 if test -d "$additional_libdir"; then
10793 LIBEXPAT
="${LIBEXPAT}${LIBEXPAT:+ }-L$additional_libdir"
10797 for x
in $LDFLAGS $LTLIBEXPAT; do
10799 acl_save_prefix
="$prefix"
10800 prefix
="$acl_final_prefix"
10801 acl_save_exec_prefix
="$exec_prefix"
10802 exec_prefix
="$acl_final_exec_prefix"
10804 exec_prefix
="$acl_save_exec_prefix"
10805 prefix
="$acl_save_prefix"
10807 if test "X$x" = "X-L$additional_libdir"; then
10812 if test -z "$haveit"; then
10813 if test -d "$additional_libdir"; then
10814 LTLIBEXPAT
="${LTLIBEXPAT}${LTLIBEXPAT:+ }-L$additional_libdir"
10821 dir
=`echo "X$dep" | sed -e 's/^X-R//'`
10822 if test "$enable_rpath" != no
; then
10824 for x
in $rpathdirs; do
10825 if test "X$x" = "X$dir"; then
10830 if test -z "$haveit"; then
10831 rpathdirs
="$rpathdirs $dir"
10834 for x
in $ltrpathdirs; do
10835 if test "X$x" = "X$dir"; then
10840 if test -z "$haveit"; then
10841 ltrpathdirs
="$ltrpathdirs $dir"
10846 names_next_round
="$names_next_round "`echo "X$dep" | sed -e 's/^X-l//'`
10849 names_next_round
="$names_next_round "`echo "X$dep" | sed -e 's,^X.*/,,' -e 's,^lib,,' -e 's,\.la$,,'`
10852 LIBEXPAT
="${LIBEXPAT}${LIBEXPAT:+ }$dep"
10853 LTLIBEXPAT
="${LTLIBEXPAT}${LTLIBEXPAT:+ }$dep"
10859 LIBEXPAT
="${LIBEXPAT}${LIBEXPAT:+ }-l$name"
10860 LTLIBEXPAT
="${LTLIBEXPAT}${LTLIBEXPAT:+ }-l$name"
10866 if test "X$rpathdirs" != "X"; then
10867 if test -n "$hardcode_libdir_separator"; then
10869 for found_dir
in $rpathdirs; do
10870 alldirs
="${alldirs}${alldirs:+$hardcode_libdir_separator}$found_dir"
10872 acl_save_libdir
="$libdir"
10874 eval flag
=\"$hardcode_libdir_flag_spec\"
10875 libdir
="$acl_save_libdir"
10876 LIBEXPAT
="${LIBEXPAT}${LIBEXPAT:+ }$flag"
10878 for found_dir
in $rpathdirs; do
10879 acl_save_libdir
="$libdir"
10880 libdir
="$found_dir"
10881 eval flag
=\"$hardcode_libdir_flag_spec\"
10882 libdir
="$acl_save_libdir"
10883 LIBEXPAT
="${LIBEXPAT}${LIBEXPAT:+ }$flag"
10887 if test "X$ltrpathdirs" != "X"; then
10888 for found_dir
in $ltrpathdirs; do
10889 LTLIBEXPAT
="${LTLIBEXPAT}${LTLIBEXPAT:+ }-R$found_dir"
10894 ac_save_CPPFLAGS
="$CPPFLAGS"
10896 for element
in $INCEXPAT; do
10898 for x
in $CPPFLAGS; do
10900 acl_save_prefix
="$prefix"
10901 prefix
="$acl_final_prefix"
10902 acl_save_exec_prefix
="$exec_prefix"
10903 exec_prefix
="$acl_final_exec_prefix"
10905 exec_prefix
="$acl_save_exec_prefix"
10906 prefix
="$acl_save_prefix"
10908 if test "X$x" = "X$element"; then
10913 if test -z "$haveit"; then
10914 CPPFLAGS
="${CPPFLAGS}${CPPFLAGS:+ }$element"
10919 echo "$as_me:$LINENO: checking for libexpat" >&5
10920 echo $ECHO_N "checking for libexpat... $ECHO_C" >&6
10921 if test "${ac_cv_libexpat+set}" = set; then
10922 echo $ECHO_N "(cached) $ECHO_C" >&6
10925 ac_save_LIBS
="$LIBS"
10926 LIBS
="$LIBS $LIBEXPAT"
10927 cat >conftest.
$ac_ext <<_ACEOF
10930 cat confdefs.h
>>conftest.
$ac_ext
10931 cat >>conftest.
$ac_ext <<_ACEOF
10932 /* end confdefs.h. */
10937 XML_Parser p = XML_ParserCreate (0);
10942 rm -f conftest.
$ac_objext conftest
$ac_exeext
10943 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
10944 (eval $ac_link) 2>conftest.er1
10946 grep -v '^ *+' conftest.er1
>conftest.err
10948 cat conftest.err
>&5
10949 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10950 (exit $ac_status); } &&
10951 { ac_try
='test -z "$ac_c_werror_flag"
10952 || test ! -s conftest.err'
10953 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10954 (eval $ac_try) 2>&5
10956 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10957 (exit $ac_status); }; } &&
10958 { ac_try
='test -s conftest$ac_exeext'
10959 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10960 (eval $ac_try) 2>&5
10962 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10963 (exit $ac_status); }; }; then
10966 echo "$as_me: failed program was:" >&5
10967 sed 's/^/| /' conftest.
$ac_ext >&5
10971 rm -f conftest.err conftest.
$ac_objext \
10972 conftest
$ac_exeext conftest.
$ac_ext
10973 LIBS
="$ac_save_LIBS"
10976 echo "$as_me:$LINENO: result: $ac_cv_libexpat" >&5
10977 echo "${ECHO_T}$ac_cv_libexpat" >&6
10978 if test "$ac_cv_libexpat" = yes; then
10981 cat >>confdefs.h
<<\_ACEOF
10982 #define HAVE_LIBEXPAT 1
10985 echo "$as_me:$LINENO: checking how to link with libexpat" >&5
10986 echo $ECHO_N "checking how to link with libexpat... $ECHO_C" >&6
10987 echo "$as_me:$LINENO: result: $LIBEXPAT" >&5
10988 echo "${ECHO_T}$LIBEXPAT" >&6
10991 CPPFLAGS
="$ac_save_CPPFLAGS"
11001 if test "$HAVE_LIBEXPAT" != yes; then
11002 if test "$with_expat" = yes; then
11003 { { echo "$as_me:$LINENO: error: expat is missing or unusable" >&5
11004 echo "$as_me: error: expat is missing or unusable" >&2;}
11005 { (exit 1); exit 1; }; }
11007 { echo "$as_me:$LINENO: WARNING: expat is missing or unusable; some features may be unavailable." >&5
11008 echo "$as_me: WARNING: expat is missing or unusable; some features may be unavailable." >&2;}
11012 LIBS
="$LIBS $LIBEXPAT"
11014 for ac_func
in XML_StopParser
11016 as_ac_var
=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
11017 echo "$as_me:$LINENO: checking for $ac_func" >&5
11018 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
11019 if eval "test \"\${$as_ac_var+set}\" = set"; then
11020 echo $ECHO_N "(cached) $ECHO_C" >&6
11022 cat >conftest.
$ac_ext <<_ACEOF
11025 cat confdefs.h
>>conftest.
$ac_ext
11026 cat >>conftest.
$ac_ext <<_ACEOF
11027 /* end confdefs.h. */
11028 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
11029 For example, HP-UX 11i <limits.h> declares gettimeofday. */
11030 #define $ac_func innocuous_$ac_func
11032 /* System header to define __stub macros and hopefully few prototypes,
11033 which can conflict with char $ac_func (); below.
11034 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
11035 <limits.h> exists even on freestanding compilers. */
11038 # include <limits.h>
11040 # include <assert.h>
11045 /* Override any gcc2 internal prototype to avoid an error. */
11050 /* We use char because int might match the return type of a gcc2
11051 builtin and then its argument prototype would still apply. */
11053 /* The GNU C library defines this for functions which it implements
11054 to always fail with ENOSYS. Some functions are actually named
11055 something starting with __ and the normal name is an alias. */
11056 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
11059 char (*f) () = $ac_func;
11068 return f != $ac_func;
11073 rm -f conftest.
$ac_objext conftest
$ac_exeext
11074 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
11075 (eval $ac_link) 2>conftest.er1
11077 grep -v '^ *+' conftest.er1
>conftest.err
11079 cat conftest.err
>&5
11080 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11081 (exit $ac_status); } &&
11082 { ac_try
='test -z "$ac_c_werror_flag"
11083 || test ! -s conftest.err'
11084 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11085 (eval $ac_try) 2>&5
11087 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11088 (exit $ac_status); }; } &&
11089 { ac_try
='test -s conftest$ac_exeext'
11090 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11091 (eval $ac_try) 2>&5
11093 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11094 (exit $ac_status); }; }; then
11095 eval "$as_ac_var=yes"
11097 echo "$as_me: failed program was:" >&5
11098 sed 's/^/| /' conftest.
$ac_ext >&5
11100 eval "$as_ac_var=no"
11102 rm -f conftest.err conftest.
$ac_objext \
11103 conftest
$ac_exeext conftest.
$ac_ext
11105 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
11106 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
11107 if test `eval echo '${'$as_ac_var'}'` = yes; then
11108 cat >>confdefs.h
<<_ACEOF
11109 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
11122 # Check whether --with-python or --without-python was given.
11123 if test "${with_python+set}" = set; then
11124 withval
="$with_python"
11129 echo "$as_me:$LINENO: checking whether to use python" >&5
11130 echo $ECHO_N "checking whether to use python... $ECHO_C" >&6
11131 echo "$as_me:$LINENO: result: $with_python" >&5
11132 echo "${ECHO_T}$with_python" >&6
11134 if test "${with_python}" = no
; then
11135 { echo "$as_me:$LINENO: WARNING: python support disabled; some features may be unavailable." >&5
11136 echo "$as_me: WARNING: python support disabled; some features may be unavailable." >&2;}
11139 case "${with_python}" in
11141 # Leave as empty, use defaults.
11146 python_includes
="-I${with_python}/include"
11147 python_libs
="-L${with_python}/lib"
11150 { { echo "$as_me:$LINENO: error: invalid value for --with-python" >&5
11151 echo "$as_me: error: invalid value for --with-python" >&2;}
11152 { (exit 1); exit 1; }; }
11156 save_CPPFLAGS
=$CPPFLAGS
11157 CPPFLAGS
="$CPPFLAGS ${python_includes}"
11159 LIBS
="$LIBS ${python_libs}"
11161 if test "${have_libpython}" = no
; then
11166 HAVE_LIBPYTHON2_6
=no
11167 echo "$as_me:$LINENO: checking for ${version}" >&5
11168 echo $ECHO_N "checking for ${version}... $ECHO_C" >&6
11170 LIBS
="$LIBS -l${version}"
11171 cat >conftest.
$ac_ext <<_ACEOF
11174 cat confdefs.h
>>conftest.
$ac_ext
11175 cat >>conftest.
$ac_ext <<_ACEOF
11176 /* end confdefs.h. */
11177 #include "${version}/Python.h"
11186 rm -f conftest.
$ac_objext conftest
$ac_exeext
11187 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
11188 (eval $ac_link) 2>conftest.er1
11190 grep -v '^ *+' conftest.er1
>conftest.err
11192 cat conftest.err
>&5
11193 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11194 (exit $ac_status); } &&
11195 { ac_try
='test -z "$ac_c_werror_flag"
11196 || test ! -s conftest.err'
11197 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11198 (eval $ac_try) 2>&5
11200 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11201 (exit $ac_status); }; } &&
11202 { ac_try
='test -s conftest$ac_exeext'
11203 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11204 (eval $ac_try) 2>&5
11206 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11207 (exit $ac_status); }; }; then
11208 HAVE_LIBPYTHON2_6
=yes
11211 echo "$as_me: failed program was:" >&5
11212 sed 's/^/| /' conftest.
$ac_ext >&5
11216 rm -f conftest.err conftest.
$ac_objext \
11217 conftest
$ac_exeext conftest.
$ac_ext
11218 echo "$as_me:$LINENO: result: $HAVE_LIBPYTHON2_6" >&5
11219 echo "${ECHO_T}$HAVE_LIBPYTHON2_6" >&6
11221 if test "${HAVE_LIBPYTHON2_6}" = yes; then
11223 cat >>confdefs.h
<<\_ACEOF
11224 #define HAVE_LIBPYTHON2_6 1
11229 if test ${have_libpython} = no
; then
11234 HAVE_LIBPYTHON2_5
=no
11235 echo "$as_me:$LINENO: checking for ${version}" >&5
11236 echo $ECHO_N "checking for ${version}... $ECHO_C" >&6
11238 LIBS
="$LIBS -l${version}"
11239 cat >conftest.
$ac_ext <<_ACEOF
11242 cat confdefs.h
>>conftest.
$ac_ext
11243 cat >>conftest.
$ac_ext <<_ACEOF
11244 /* end confdefs.h. */
11245 #include "${version}/Python.h"
11254 rm -f conftest.
$ac_objext conftest
$ac_exeext
11255 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
11256 (eval $ac_link) 2>conftest.er1
11258 grep -v '^ *+' conftest.er1
>conftest.err
11260 cat conftest.err
>&5
11261 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11262 (exit $ac_status); } &&
11263 { ac_try
='test -z "$ac_c_werror_flag"
11264 || test ! -s conftest.err'
11265 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11266 (eval $ac_try) 2>&5
11268 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11269 (exit $ac_status); }; } &&
11270 { ac_try
='test -s conftest$ac_exeext'
11271 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11272 (eval $ac_try) 2>&5
11274 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11275 (exit $ac_status); }; }; then
11276 HAVE_LIBPYTHON2_5
=yes
11279 echo "$as_me: failed program was:" >&5
11280 sed 's/^/| /' conftest.
$ac_ext >&5
11284 rm -f conftest.err conftest.
$ac_objext \
11285 conftest
$ac_exeext conftest.
$ac_ext
11286 echo "$as_me:$LINENO: result: $HAVE_LIBPYTHON2_5" >&5
11287 echo "${ECHO_T}$HAVE_LIBPYTHON2_5" >&6
11289 if test "${HAVE_LIBPYTHON2_5}" = yes; then
11291 cat >>confdefs.h
<<\_ACEOF
11292 #define HAVE_LIBPYTHON2_5 1
11297 if test ${have_libpython} = no
; then
11302 HAVE_LIBPYTHON2_4
=no
11303 echo "$as_me:$LINENO: checking for ${version}" >&5
11304 echo $ECHO_N "checking for ${version}... $ECHO_C" >&6
11306 LIBS
="$LIBS -l${version}"
11307 cat >conftest.
$ac_ext <<_ACEOF
11310 cat confdefs.h
>>conftest.
$ac_ext
11311 cat >>conftest.
$ac_ext <<_ACEOF
11312 /* end confdefs.h. */
11313 #include "${version}/Python.h"
11322 rm -f conftest.
$ac_objext conftest
$ac_exeext
11323 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
11324 (eval $ac_link) 2>conftest.er1
11326 grep -v '^ *+' conftest.er1
>conftest.err
11328 cat conftest.err
>&5
11329 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11330 (exit $ac_status); } &&
11331 { ac_try
='test -z "$ac_c_werror_flag"
11332 || test ! -s conftest.err'
11333 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11334 (eval $ac_try) 2>&5
11336 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11337 (exit $ac_status); }; } &&
11338 { ac_try
='test -s conftest$ac_exeext'
11339 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11340 (eval $ac_try) 2>&5
11342 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11343 (exit $ac_status); }; }; then
11344 HAVE_LIBPYTHON2_4
=yes
11347 echo "$as_me: failed program was:" >&5
11348 sed 's/^/| /' conftest.
$ac_ext >&5
11352 rm -f conftest.err conftest.
$ac_objext \
11353 conftest
$ac_exeext conftest.
$ac_ext
11354 echo "$as_me:$LINENO: result: $HAVE_LIBPYTHON2_4" >&5
11355 echo "${ECHO_T}$HAVE_LIBPYTHON2_4" >&6
11357 if test "${HAVE_LIBPYTHON2_4}" = yes; then
11359 cat >>confdefs.h
<<\_ACEOF
11360 #define HAVE_LIBPYTHON2_4 1
11365 if test ${have_libpython} = no
; then
11366 case "${with_python}" in
11368 { { echo "$as_me:$LINENO: error: python is missing or unusable" >&5
11369 echo "$as_me: error: python is missing or unusable" >&2;}
11370 { (exit 1); exit 1; }; }
11373 { echo "$as_me:$LINENO: WARNING: python is missing or unusable; some features may be unavailable." >&5
11374 echo "$as_me: WARNING: python is missing or unusable; some features may be unavailable." >&2;}
11377 { { echo "$as_me:$LINENO: error: no usable python found at ${with_python}" >&5
11378 echo "$as_me: error: no usable python found at ${with_python}" >&2;}
11379 { (exit 1); exit 1; }; }
11382 CPPFLAGS
=$save_CPPFLAGS
11387 if test "${have_libpython}" = yes; then
11389 cat >>confdefs.h
<<\_ACEOF
11390 #define HAVE_PYTHON 1
11393 CONFIG_OBS
="$CONFIG_OBS \$(SUBDIR_PYTHON_OBS)"
11394 CONFIG_DEPS
="$CONFIG_DEPS \$(SUBDIR_PYTHON_DEPS)"
11395 CONFIG_SRCS
="$CONFIG_SRCS \$(SUBDIR_PYTHON_SRCS)"
11396 ENABLE_CFLAGS
="$ENABLE_CFLAGS \$(SUBDIR_PYTHON_CFLAGS)"
11398 # Flags needed to compile Python code (taken from python-config --cflags).
11399 # We cannot call python-config directly because it will output whatever was
11400 # used when compiling the Python interpreter itself, including flags which
11401 # would make the python-related objects be compiled differently from the
11402 # rest of GDB (e.g., -O2 and -fPIC).
11403 if test "${GCC}" = yes; then
11404 tentative_python_cflags
="-fno-strict-aliasing -DNDEBUG -fwrapv"
11407 if test "x${tentative_python_cflags}" != x
; then
11408 echo "$as_me:$LINENO: checking compiler flags for python code" >&5
11409 echo $ECHO_N "checking compiler flags for python code... $ECHO_C" >&6
11410 for flag
in ${tentative_python_cflags}; do
11411 # Check that the compiler accepts it
11412 saved_CFLAGS
="$CFLAGS"
11413 CFLAGS
="$CFLAGS $flag"
11414 cat >conftest.
$ac_ext <<_ACEOF
11417 cat confdefs.h
>>conftest.
$ac_ext
11418 cat >>conftest.
$ac_ext <<_ACEOF
11419 /* end confdefs.h. */
11429 rm -f conftest.
$ac_objext
11430 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
11431 (eval $ac_compile) 2>conftest.er1
11433 grep -v '^ *+' conftest.er1
>conftest.err
11435 cat conftest.err
>&5
11436 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11437 (exit $ac_status); } &&
11438 { ac_try
='test -z "$ac_c_werror_flag"
11439 || test ! -s conftest.err'
11440 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11441 (eval $ac_try) 2>&5
11443 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11444 (exit $ac_status); }; } &&
11445 { ac_try
='test -s conftest.$ac_objext'
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); }; }; then
11451 PYTHON_CFLAGS
="${PYTHON_CFLAGS} $flag"
11453 echo "$as_me: failed program was:" >&5
11454 sed 's/^/| /' conftest.
$ac_ext >&5
11457 rm -f conftest.err conftest.
$ac_objext conftest.
$ac_ext
11458 CFLAGS
="$saved_CFLAGS"
11460 echo "$as_me:$LINENO: result: ${PYTHON_CFLAGS}" >&5
11461 echo "${ECHO_T}${PYTHON_CFLAGS}" >&6
11464 # Even if Python support is not compiled in, we need to have these files
11465 # included in order to recognize the GDB command "python".
11466 CONFIG_OBS
="$CONFIG_OBS python.o python-value.o"
11467 CONFIG_SRCS
="$CONFIG_SRCS python/python.c python/python-value.c"
11471 # ------------------------- #
11472 # Checks for header files. #
11473 # ------------------------- #
11480 ac_header_dirent
=no
11481 for ac_hdr
in dirent.h sys
/ndir.h sys
/dir.h ndir.h
; do
11482 as_ac_Header
=`echo "ac_cv_header_dirent_$ac_hdr" | $as_tr_sh`
11483 echo "$as_me:$LINENO: checking for $ac_hdr that defines DIR" >&5
11484 echo $ECHO_N "checking for $ac_hdr that defines DIR... $ECHO_C" >&6
11485 if eval "test \"\${$as_ac_Header+set}\" = set"; then
11486 echo $ECHO_N "(cached) $ECHO_C" >&6
11488 cat >conftest.
$ac_ext <<_ACEOF
11491 cat confdefs.h
>>conftest.
$ac_ext
11492 cat >>conftest.
$ac_ext <<_ACEOF
11493 /* end confdefs.h. */
11494 #include <sys/types.h>
11506 rm -f conftest.
$ac_objext
11507 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
11508 (eval $ac_compile) 2>conftest.er1
11510 grep -v '^ *+' conftest.er1
>conftest.err
11512 cat conftest.err
>&5
11513 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11514 (exit $ac_status); } &&
11515 { ac_try
='test -z "$ac_c_werror_flag"
11516 || test ! -s conftest.err'
11517 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11518 (eval $ac_try) 2>&5
11520 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11521 (exit $ac_status); }; } &&
11522 { ac_try
='test -s conftest.$ac_objext'
11523 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11524 (eval $ac_try) 2>&5
11526 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11527 (exit $ac_status); }; }; then
11528 eval "$as_ac_Header=yes"
11530 echo "$as_me: failed program was:" >&5
11531 sed 's/^/| /' conftest.
$ac_ext >&5
11533 eval "$as_ac_Header=no"
11535 rm -f conftest.err conftest.
$ac_objext conftest.
$ac_ext
11537 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
11538 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
11539 if test `eval echo '${'$as_ac_Header'}'` = yes; then
11540 cat >>confdefs.h
<<_ACEOF
11541 #define `echo "HAVE_$ac_hdr" | $as_tr_cpp` 1
11544 ac_header_dirent
=$ac_hdr; break
11548 # Two versions of opendir et al. are in -ldir and -lx on SCO Xenix.
11549 if test $ac_header_dirent = dirent.h
; then
11550 echo "$as_me:$LINENO: checking for library containing opendir" >&5
11551 echo $ECHO_N "checking for library containing opendir... $ECHO_C" >&6
11552 if test "${ac_cv_search_opendir+set}" = set; then
11553 echo $ECHO_N "(cached) $ECHO_C" >&6
11555 ac_func_search_save_LIBS
=$LIBS
11556 ac_cv_search_opendir
=no
11557 cat >conftest.
$ac_ext <<_ACEOF
11560 cat confdefs.h
>>conftest.
$ac_ext
11561 cat >>conftest.
$ac_ext <<_ACEOF
11562 /* end confdefs.h. */
11564 /* Override any gcc2 internal prototype to avoid an error. */
11568 /* We use char because int might match the return type of a gcc2
11569 builtin and then its argument prototype would still apply. */
11579 rm -f conftest.
$ac_objext conftest
$ac_exeext
11580 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
11581 (eval $ac_link) 2>conftest.er1
11583 grep -v '^ *+' conftest.er1
>conftest.err
11585 cat conftest.err
>&5
11586 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11587 (exit $ac_status); } &&
11588 { ac_try
='test -z "$ac_c_werror_flag"
11589 || test ! -s conftest.err'
11590 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11591 (eval $ac_try) 2>&5
11593 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11594 (exit $ac_status); }; } &&
11595 { ac_try
='test -s conftest$ac_exeext'
11596 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11597 (eval $ac_try) 2>&5
11599 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11600 (exit $ac_status); }; }; then
11601 ac_cv_search_opendir
="none required"
11603 echo "$as_me: failed program was:" >&5
11604 sed 's/^/| /' conftest.
$ac_ext >&5
11607 rm -f conftest.err conftest.
$ac_objext \
11608 conftest
$ac_exeext conftest.
$ac_ext
11609 if test "$ac_cv_search_opendir" = no
; then
11610 for ac_lib
in dir
; do
11611 LIBS
="-l$ac_lib $ac_func_search_save_LIBS"
11612 cat >conftest.
$ac_ext <<_ACEOF
11615 cat confdefs.h
>>conftest.
$ac_ext
11616 cat >>conftest.
$ac_ext <<_ACEOF
11617 /* end confdefs.h. */
11619 /* Override any gcc2 internal prototype to avoid an error. */
11623 /* We use char because int might match the return type of a gcc2
11624 builtin and then its argument prototype would still apply. */
11634 rm -f conftest.
$ac_objext conftest
$ac_exeext
11635 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
11636 (eval $ac_link) 2>conftest.er1
11638 grep -v '^ *+' conftest.er1
>conftest.err
11640 cat conftest.err
>&5
11641 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11642 (exit $ac_status); } &&
11643 { ac_try
='test -z "$ac_c_werror_flag"
11644 || test ! -s conftest.err'
11645 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11646 (eval $ac_try) 2>&5
11648 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11649 (exit $ac_status); }; } &&
11650 { ac_try
='test -s conftest$ac_exeext'
11651 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11652 (eval $ac_try) 2>&5
11654 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11655 (exit $ac_status); }; }; then
11656 ac_cv_search_opendir
="-l$ac_lib"
11659 echo "$as_me: failed program was:" >&5
11660 sed 's/^/| /' conftest.
$ac_ext >&5
11663 rm -f conftest.err conftest.
$ac_objext \
11664 conftest
$ac_exeext conftest.
$ac_ext
11667 LIBS
=$ac_func_search_save_LIBS
11669 echo "$as_me:$LINENO: result: $ac_cv_search_opendir" >&5
11670 echo "${ECHO_T}$ac_cv_search_opendir" >&6
11671 if test "$ac_cv_search_opendir" != no
; then
11672 test "$ac_cv_search_opendir" = "none required" || LIBS
="$ac_cv_search_opendir $LIBS"
11677 echo "$as_me:$LINENO: checking for library containing opendir" >&5
11678 echo $ECHO_N "checking for library containing opendir... $ECHO_C" >&6
11679 if test "${ac_cv_search_opendir+set}" = set; then
11680 echo $ECHO_N "(cached) $ECHO_C" >&6
11682 ac_func_search_save_LIBS
=$LIBS
11683 ac_cv_search_opendir
=no
11684 cat >conftest.
$ac_ext <<_ACEOF
11687 cat confdefs.h
>>conftest.
$ac_ext
11688 cat >>conftest.
$ac_ext <<_ACEOF
11689 /* end confdefs.h. */
11691 /* Override any gcc2 internal prototype to avoid an error. */
11695 /* We use char because int might match the return type of a gcc2
11696 builtin and then its argument prototype would still apply. */
11706 rm -f conftest.
$ac_objext conftest
$ac_exeext
11707 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
11708 (eval $ac_link) 2>conftest.er1
11710 grep -v '^ *+' conftest.er1
>conftest.err
11712 cat conftest.err
>&5
11713 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11714 (exit $ac_status); } &&
11715 { ac_try
='test -z "$ac_c_werror_flag"
11716 || test ! -s conftest.err'
11717 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11718 (eval $ac_try) 2>&5
11720 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11721 (exit $ac_status); }; } &&
11722 { ac_try
='test -s conftest$ac_exeext'
11723 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11724 (eval $ac_try) 2>&5
11726 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11727 (exit $ac_status); }; }; then
11728 ac_cv_search_opendir
="none required"
11730 echo "$as_me: failed program was:" >&5
11731 sed 's/^/| /' conftest.
$ac_ext >&5
11734 rm -f conftest.err conftest.
$ac_objext \
11735 conftest
$ac_exeext conftest.
$ac_ext
11736 if test "$ac_cv_search_opendir" = no
; then
11737 for ac_lib
in x
; do
11738 LIBS
="-l$ac_lib $ac_func_search_save_LIBS"
11739 cat >conftest.
$ac_ext <<_ACEOF
11742 cat confdefs.h
>>conftest.
$ac_ext
11743 cat >>conftest.
$ac_ext <<_ACEOF
11744 /* end confdefs.h. */
11746 /* Override any gcc2 internal prototype to avoid an error. */
11750 /* We use char because int might match the return type of a gcc2
11751 builtin and then its argument prototype would still apply. */
11761 rm -f conftest.
$ac_objext conftest
$ac_exeext
11762 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
11763 (eval $ac_link) 2>conftest.er1
11765 grep -v '^ *+' conftest.er1
>conftest.err
11767 cat conftest.err
>&5
11768 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11769 (exit $ac_status); } &&
11770 { ac_try
='test -z "$ac_c_werror_flag"
11771 || test ! -s conftest.err'
11772 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11773 (eval $ac_try) 2>&5
11775 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11776 (exit $ac_status); }; } &&
11777 { ac_try
='test -s conftest$ac_exeext'
11778 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11779 (eval $ac_try) 2>&5
11781 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11782 (exit $ac_status); }; }; then
11783 ac_cv_search_opendir
="-l$ac_lib"
11786 echo "$as_me: failed program was:" >&5
11787 sed 's/^/| /' conftest.
$ac_ext >&5
11790 rm -f conftest.err conftest.
$ac_objext \
11791 conftest
$ac_exeext conftest.
$ac_ext
11794 LIBS
=$ac_func_search_save_LIBS
11796 echo "$as_me:$LINENO: result: $ac_cv_search_opendir" >&5
11797 echo "${ECHO_T}$ac_cv_search_opendir" >&6
11798 if test "$ac_cv_search_opendir" != no
; then
11799 test "$ac_cv_search_opendir" = "none required" || LIBS
="$ac_cv_search_opendir $LIBS"
11805 echo "$as_me:$LINENO: checking whether stat file-mode macros are broken" >&5
11806 echo $ECHO_N "checking whether stat file-mode macros are broken... $ECHO_C" >&6
11807 if test "${ac_cv_header_stat_broken+set}" = set; then
11808 echo $ECHO_N "(cached) $ECHO_C" >&6
11810 cat >conftest.
$ac_ext <<_ACEOF
11813 cat confdefs.h
>>conftest.
$ac_ext
11814 cat >>conftest.
$ac_ext <<_ACEOF
11815 /* end confdefs.h. */
11816 #include <sys/types.h>
11817 #include <sys/stat.h>
11819 #if defined(S_ISBLK) && defined(S_IFDIR)
11820 # if S_ISBLK (S_IFDIR)
11825 #if defined(S_ISBLK) && defined(S_IFCHR)
11826 # if S_ISBLK (S_IFCHR)
11831 #if defined(S_ISLNK) && defined(S_IFREG)
11832 # if S_ISLNK (S_IFREG)
11837 #if defined(S_ISSOCK) && defined(S_IFREG)
11838 # if S_ISSOCK (S_IFREG)
11844 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
11845 $EGREP "You lose" >/dev
/null
2>&1; then
11846 ac_cv_header_stat_broken
=yes
11848 ac_cv_header_stat_broken
=no
11853 echo "$as_me:$LINENO: result: $ac_cv_header_stat_broken" >&5
11854 echo "${ECHO_T}$ac_cv_header_stat_broken" >&6
11855 if test $ac_cv_header_stat_broken = yes; then
11857 cat >>confdefs.h
<<\_ACEOF
11858 #define STAT_MACROS_BROKEN 1
11863 echo "$as_me:$LINENO: checking for ANSI C header files" >&5
11864 echo $ECHO_N "checking for ANSI C header files... $ECHO_C" >&6
11865 if test "${ac_cv_header_stdc+set}" = set; then
11866 echo $ECHO_N "(cached) $ECHO_C" >&6
11868 cat >conftest.
$ac_ext <<_ACEOF
11871 cat confdefs.h
>>conftest.
$ac_ext
11872 cat >>conftest.
$ac_ext <<_ACEOF
11873 /* end confdefs.h. */
11874 #include <stdlib.h>
11875 #include <stdarg.h>
11876 #include <string.h>
11887 rm -f conftest.
$ac_objext
11888 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
11889 (eval $ac_compile) 2>conftest.er1
11891 grep -v '^ *+' conftest.er1
>conftest.err
11893 cat conftest.err
>&5
11894 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11895 (exit $ac_status); } &&
11896 { ac_try
='test -z "$ac_c_werror_flag"
11897 || test ! -s conftest.err'
11898 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11899 (eval $ac_try) 2>&5
11901 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11902 (exit $ac_status); }; } &&
11903 { ac_try
='test -s conftest.$ac_objext'
11904 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11905 (eval $ac_try) 2>&5
11907 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11908 (exit $ac_status); }; }; then
11909 ac_cv_header_stdc
=yes
11911 echo "$as_me: failed program was:" >&5
11912 sed 's/^/| /' conftest.
$ac_ext >&5
11914 ac_cv_header_stdc
=no
11916 rm -f conftest.err conftest.
$ac_objext conftest.
$ac_ext
11918 if test $ac_cv_header_stdc = yes; then
11919 # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
11920 cat >conftest.
$ac_ext <<_ACEOF
11923 cat confdefs.h
>>conftest.
$ac_ext
11924 cat >>conftest.
$ac_ext <<_ACEOF
11925 /* end confdefs.h. */
11926 #include <string.h>
11929 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
11930 $EGREP "memchr" >/dev
/null
2>&1; then
11933 ac_cv_header_stdc
=no
11939 if test $ac_cv_header_stdc = yes; then
11940 # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
11941 cat >conftest.
$ac_ext <<_ACEOF
11944 cat confdefs.h
>>conftest.
$ac_ext
11945 cat >>conftest.
$ac_ext <<_ACEOF
11946 /* end confdefs.h. */
11947 #include <stdlib.h>
11950 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
11951 $EGREP "free" >/dev
/null
2>&1; then
11954 ac_cv_header_stdc
=no
11960 if test $ac_cv_header_stdc = yes; then
11961 # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
11962 if test "$cross_compiling" = yes; then
11965 cat >conftest.
$ac_ext <<_ACEOF
11968 cat confdefs.h
>>conftest.
$ac_ext
11969 cat >>conftest.
$ac_ext <<_ACEOF
11970 /* end confdefs.h. */
11972 #if ((' ' & 0x0FF) == 0x020)
11973 # define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
11974 # define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
11976 # define ISLOWER(c) \
11977 (('a' <= (c) && (c) <= 'i') \
11978 || ('j' <= (c) && (c) <= 'r') \
11979 || ('s' <= (c) && (c) <= 'z'))
11980 # define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
11983 #define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
11988 for (i = 0; i < 256; i++)
11989 if (XOR (islower (i), ISLOWER (i))
11990 || toupper (i) != TOUPPER (i))
11995 rm -f conftest
$ac_exeext
11996 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
11997 (eval $ac_link) 2>&5
11999 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12000 (exit $ac_status); } && { ac_try
='./conftest$ac_exeext'
12001 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12002 (eval $ac_try) 2>&5
12004 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12005 (exit $ac_status); }; }; then
12008 echo "$as_me: program exited with status $ac_status" >&5
12009 echo "$as_me: failed program was:" >&5
12010 sed 's/^/| /' conftest.
$ac_ext >&5
12012 ( exit $ac_status )
12013 ac_cv_header_stdc
=no
12015 rm -f core
*.core gmon.out bb.out conftest
$ac_exeext conftest.
$ac_objext conftest.
$ac_ext
12019 echo "$as_me:$LINENO: result: $ac_cv_header_stdc" >&5
12020 echo "${ECHO_T}$ac_cv_header_stdc" >&6
12021 if test $ac_cv_header_stdc = yes; then
12023 cat >>confdefs.h
<<\_ACEOF
12024 #define STDC_HEADERS 1
12029 # elf_hp.h is for HP/UX 64-bit shared library support.
12030 # FIXME: kettenis/20030102: In most cases we include these (ctype.h, time.h)
12031 # unconditionally, so what's the point in checking these?
12069 for ac_header
in nlist.h machine
/reg.h poll.h sys
/poll.h proc_service.h \
12070 thread_db.h gnu
/libc-version.h signal.h stddef.h \
12071 stdlib.h string.h memory.h
strings.h sys
/fault.h \
12072 sys
/file.h sys
/filio.h sys
/ioctl.h sys
/param.h \
12073 sys
/resource.h sys
/procfs.h sys
/ptrace.h ptrace.h \
12074 sys
/reg.h sys
/debugreg.h sys
/select.h sys
/syscall.h \
12075 sys
/types.h sys
/wait.h
wait.h termios.h termio.h \
12076 sgtty.h unistd.h elf_hp.h ctype.h
time.h locale.h
12078 as_ac_Header
=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
12079 if eval "test \"\${$as_ac_Header+set}\" = set"; then
12080 echo "$as_me:$LINENO: checking for $ac_header" >&5
12081 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
12082 if eval "test \"\${$as_ac_Header+set}\" = set"; then
12083 echo $ECHO_N "(cached) $ECHO_C" >&6
12085 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
12086 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
12088 # Is the header compilable?
12089 echo "$as_me:$LINENO: checking $ac_header usability" >&5
12090 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
12091 cat >conftest.
$ac_ext <<_ACEOF
12094 cat confdefs.h
>>conftest.
$ac_ext
12095 cat >>conftest.
$ac_ext <<_ACEOF
12096 /* end confdefs.h. */
12097 $ac_includes_default
12098 #include <$ac_header>
12100 rm -f conftest.
$ac_objext
12101 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
12102 (eval $ac_compile) 2>conftest.er1
12104 grep -v '^ *+' conftest.er1
>conftest.err
12106 cat conftest.err
>&5
12107 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12108 (exit $ac_status); } &&
12109 { ac_try
='test -z "$ac_c_werror_flag"
12110 || test ! -s conftest.err'
12111 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12112 (eval $ac_try) 2>&5
12114 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12115 (exit $ac_status); }; } &&
12116 { ac_try
='test -s conftest.$ac_objext'
12117 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12118 (eval $ac_try) 2>&5
12120 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12121 (exit $ac_status); }; }; then
12122 ac_header_compiler
=yes
12124 echo "$as_me: failed program was:" >&5
12125 sed 's/^/| /' conftest.
$ac_ext >&5
12127 ac_header_compiler
=no
12129 rm -f conftest.err conftest.
$ac_objext conftest.
$ac_ext
12130 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
12131 echo "${ECHO_T}$ac_header_compiler" >&6
12133 # Is the header present?
12134 echo "$as_me:$LINENO: checking $ac_header presence" >&5
12135 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
12136 cat >conftest.
$ac_ext <<_ACEOF
12139 cat confdefs.h
>>conftest.
$ac_ext
12140 cat >>conftest.
$ac_ext <<_ACEOF
12141 /* end confdefs.h. */
12142 #include <$ac_header>
12144 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
12145 (eval $ac_cpp conftest.
$ac_ext) 2>conftest.er1
12147 grep -v '^ *+' conftest.er1
>conftest.err
12149 cat conftest.err
>&5
12150 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12151 (exit $ac_status); } >/dev
/null
; then
12152 if test -s conftest.err
; then
12153 ac_cpp_err
=$ac_c_preproc_warn_flag
12154 ac_cpp_err
=$ac_cpp_err$ac_c_werror_flag
12161 if test -z "$ac_cpp_err"; then
12162 ac_header_preproc
=yes
12164 echo "$as_me: failed program was:" >&5
12165 sed 's/^/| /' conftest.
$ac_ext >&5
12167 ac_header_preproc
=no
12169 rm -f conftest.err conftest.
$ac_ext
12170 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
12171 echo "${ECHO_T}$ac_header_preproc" >&6
12173 # So? What about this header?
12174 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
12176 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
12177 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
12178 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
12179 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
12180 ac_header_preproc
=yes
12183 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
12184 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
12185 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
12186 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
12187 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
12188 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
12189 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
12190 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
12191 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
12192 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
12193 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
12194 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
12197 ## ------------------------------------------ ##
12198 ## Report this to the AC_PACKAGE_NAME lists. ##
12199 ## ------------------------------------------ ##
12202 sed "s/^/$as_me: WARNING: /" >&2
12205 echo "$as_me:$LINENO: checking for $ac_header" >&5
12206 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
12207 if eval "test \"\${$as_ac_Header+set}\" = set"; then
12208 echo $ECHO_N "(cached) $ECHO_C" >&6
12210 eval "$as_ac_Header=\$ac_header_preproc"
12212 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
12213 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
12216 if test `eval echo '${'$as_ac_Header'}'` = yes; then
12217 cat >>confdefs.h
<<_ACEOF
12218 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
12226 for ac_header
in link.h
12228 as_ac_Header
=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
12229 echo "$as_me:$LINENO: checking for $ac_header" >&5
12230 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
12231 if eval "test \"\${$as_ac_Header+set}\" = set"; then
12232 echo $ECHO_N "(cached) $ECHO_C" >&6
12234 cat >conftest.
$ac_ext <<_ACEOF
12237 cat confdefs.h
>>conftest.
$ac_ext
12238 cat >>conftest.
$ac_ext <<_ACEOF
12239 /* end confdefs.h. */
12240 #if HAVE_SYS_TYPES_H
12241 # include <sys/types.h>
12244 # include <nlist.h>
12248 #include <$ac_header>
12250 rm -f conftest.
$ac_objext
12251 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
12252 (eval $ac_compile) 2>conftest.er1
12254 grep -v '^ *+' conftest.er1
>conftest.err
12256 cat conftest.err
>&5
12257 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12258 (exit $ac_status); } &&
12259 { ac_try
='test -z "$ac_c_werror_flag"
12260 || test ! -s conftest.err'
12261 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12262 (eval $ac_try) 2>&5
12264 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12265 (exit $ac_status); }; } &&
12266 { ac_try
='test -s conftest.$ac_objext'
12267 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12268 (eval $ac_try) 2>&5
12270 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12271 (exit $ac_status); }; }; then
12272 eval "$as_ac_Header=yes"
12274 echo "$as_me: failed program was:" >&5
12275 sed 's/^/| /' conftest.
$ac_ext >&5
12277 eval "$as_ac_Header=no"
12279 rm -f conftest.err conftest.
$ac_objext conftest.
$ac_ext
12281 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
12282 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
12283 if test `eval echo '${'$as_ac_Header'}'` = yes; then
12284 cat >>confdefs.h
<<_ACEOF
12285 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
12293 for ac_header
in sys
/proc.h
12295 as_ac_Header
=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
12296 echo "$as_me:$LINENO: checking for $ac_header" >&5
12297 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
12298 if eval "test \"\${$as_ac_Header+set}\" = set"; then
12299 echo $ECHO_N "(cached) $ECHO_C" >&6
12301 cat >conftest.
$ac_ext <<_ACEOF
12304 cat confdefs.h
>>conftest.
$ac_ext
12305 cat >>conftest.
$ac_ext <<_ACEOF
12306 /* end confdefs.h. */
12307 #if HAVE_SYS_PARAM_H
12308 # include <sys/param.h>
12312 #include <$ac_header>
12314 rm -f conftest.
$ac_objext
12315 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
12316 (eval $ac_compile) 2>conftest.er1
12318 grep -v '^ *+' conftest.er1
>conftest.err
12320 cat conftest.err
>&5
12321 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12322 (exit $ac_status); } &&
12323 { ac_try
='test -z "$ac_c_werror_flag"
12324 || test ! -s conftest.err'
12325 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12326 (eval $ac_try) 2>&5
12328 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12329 (exit $ac_status); }; } &&
12330 { ac_try
='test -s conftest.$ac_objext'
12331 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12332 (eval $ac_try) 2>&5
12334 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12335 (exit $ac_status); }; }; then
12336 eval "$as_ac_Header=yes"
12338 echo "$as_me: failed program was:" >&5
12339 sed 's/^/| /' conftest.
$ac_ext >&5
12341 eval "$as_ac_Header=no"
12343 rm -f conftest.err conftest.
$ac_objext conftest.
$ac_ext
12345 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
12346 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
12347 if test `eval echo '${'$as_ac_Header'}'` = yes; then
12348 cat >>confdefs.h
<<_ACEOF
12349 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
12357 for ac_header
in sys
/user.h
12359 as_ac_Header
=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
12360 echo "$as_me:$LINENO: checking for $ac_header" >&5
12361 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
12362 if eval "test \"\${$as_ac_Header+set}\" = set"; then
12363 echo $ECHO_N "(cached) $ECHO_C" >&6
12365 cat >conftest.
$ac_ext <<_ACEOF
12368 cat confdefs.h
>>conftest.
$ac_ext
12369 cat >>conftest.
$ac_ext <<_ACEOF
12370 /* end confdefs.h. */
12371 #if HAVE_SYS_PARAM_H
12372 # include <sys/param.h>
12376 #include <$ac_header>
12378 rm -f conftest.
$ac_objext
12379 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
12380 (eval $ac_compile) 2>conftest.er1
12382 grep -v '^ *+' conftest.er1
>conftest.err
12384 cat conftest.err
>&5
12385 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12386 (exit $ac_status); } &&
12387 { ac_try
='test -z "$ac_c_werror_flag"
12388 || test ! -s conftest.err'
12389 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12390 (eval $ac_try) 2>&5
12392 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12393 (exit $ac_status); }; } &&
12394 { ac_try
='test -s conftest.$ac_objext'
12395 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12396 (eval $ac_try) 2>&5
12398 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12399 (exit $ac_status); }; }; then
12400 eval "$as_ac_Header=yes"
12402 echo "$as_me: failed program was:" >&5
12403 sed 's/^/| /' conftest.
$ac_ext >&5
12405 eval "$as_ac_Header=no"
12407 rm -f conftest.err conftest.
$ac_objext conftest.
$ac_ext
12409 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
12410 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
12411 if test `eval echo '${'$as_ac_Header'}'` = yes; then
12412 cat >>confdefs.h
<<_ACEOF
12413 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
12421 # On Solaris 2.[789], we need to define _MSE_INT_H to avoid a clash
12422 # between <widec.h> and <wchar.h> that would cause AC_CHECK_HEADERS to
12423 # think that we don't have <curses.h> if we're using GCC.
12426 if test "$GCC" = yes; then
12428 cat >>confdefs.h
<<\_ACEOF
12429 #define _MSE_INT_H 1
12439 for ac_header
in curses.h cursesX.h ncurses.h ncurses
/ncurses.h ncurses
/term.h
12441 as_ac_Header
=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
12442 if eval "test \"\${$as_ac_Header+set}\" = set"; then
12443 echo "$as_me:$LINENO: checking for $ac_header" >&5
12444 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
12445 if eval "test \"\${$as_ac_Header+set}\" = set"; then
12446 echo $ECHO_N "(cached) $ECHO_C" >&6
12448 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
12449 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
12451 # Is the header compilable?
12452 echo "$as_me:$LINENO: checking $ac_header usability" >&5
12453 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
12454 cat >conftest.
$ac_ext <<_ACEOF
12457 cat confdefs.h
>>conftest.
$ac_ext
12458 cat >>conftest.
$ac_ext <<_ACEOF
12459 /* end confdefs.h. */
12460 $ac_includes_default
12461 #include <$ac_header>
12463 rm -f conftest.
$ac_objext
12464 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
12465 (eval $ac_compile) 2>conftest.er1
12467 grep -v '^ *+' conftest.er1
>conftest.err
12469 cat conftest.err
>&5
12470 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12471 (exit $ac_status); } &&
12472 { ac_try
='test -z "$ac_c_werror_flag"
12473 || test ! -s conftest.err'
12474 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12475 (eval $ac_try) 2>&5
12477 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12478 (exit $ac_status); }; } &&
12479 { ac_try
='test -s conftest.$ac_objext'
12480 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12481 (eval $ac_try) 2>&5
12483 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12484 (exit $ac_status); }; }; then
12485 ac_header_compiler
=yes
12487 echo "$as_me: failed program was:" >&5
12488 sed 's/^/| /' conftest.
$ac_ext >&5
12490 ac_header_compiler
=no
12492 rm -f conftest.err conftest.
$ac_objext conftest.
$ac_ext
12493 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
12494 echo "${ECHO_T}$ac_header_compiler" >&6
12496 # Is the header present?
12497 echo "$as_me:$LINENO: checking $ac_header presence" >&5
12498 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
12499 cat >conftest.
$ac_ext <<_ACEOF
12502 cat confdefs.h
>>conftest.
$ac_ext
12503 cat >>conftest.
$ac_ext <<_ACEOF
12504 /* end confdefs.h. */
12505 #include <$ac_header>
12507 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
12508 (eval $ac_cpp conftest.
$ac_ext) 2>conftest.er1
12510 grep -v '^ *+' conftest.er1
>conftest.err
12512 cat conftest.err
>&5
12513 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12514 (exit $ac_status); } >/dev
/null
; then
12515 if test -s conftest.err
; then
12516 ac_cpp_err
=$ac_c_preproc_warn_flag
12517 ac_cpp_err
=$ac_cpp_err$ac_c_werror_flag
12524 if test -z "$ac_cpp_err"; then
12525 ac_header_preproc
=yes
12527 echo "$as_me: failed program was:" >&5
12528 sed 's/^/| /' conftest.
$ac_ext >&5
12530 ac_header_preproc
=no
12532 rm -f conftest.err conftest.
$ac_ext
12533 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
12534 echo "${ECHO_T}$ac_header_preproc" >&6
12536 # So? What about this header?
12537 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
12539 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
12540 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
12541 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
12542 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
12543 ac_header_preproc
=yes
12546 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
12547 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
12548 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
12549 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
12550 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
12551 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
12552 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
12553 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
12554 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
12555 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
12556 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
12557 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
12560 ## ------------------------------------------ ##
12561 ## Report this to the AC_PACKAGE_NAME lists. ##
12562 ## ------------------------------------------ ##
12565 sed "s/^/$as_me: WARNING: /" >&2
12568 echo "$as_me:$LINENO: checking for $ac_header" >&5
12569 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
12570 if eval "test \"\${$as_ac_Header+set}\" = set"; then
12571 echo $ECHO_N "(cached) $ECHO_C" >&6
12573 eval "$as_ac_Header=\$ac_header_preproc"
12575 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
12576 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
12579 if test `eval echo '${'$as_ac_Header'}'` = yes; then
12580 cat >>confdefs.h
<<_ACEOF
12581 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
12589 for ac_header
in term.h
12591 as_ac_Header
=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
12592 echo "$as_me:$LINENO: checking for $ac_header" >&5
12593 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
12594 if eval "test \"\${$as_ac_Header+set}\" = set"; then
12595 echo $ECHO_N "(cached) $ECHO_C" >&6
12597 cat >conftest.
$ac_ext <<_ACEOF
12600 cat confdefs.h
>>conftest.
$ac_ext
12601 cat >>conftest.
$ac_ext <<_ACEOF
12602 /* end confdefs.h. */
12604 # include <curses.h>
12608 #include <$ac_header>
12610 rm -f conftest.
$ac_objext
12611 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
12612 (eval $ac_compile) 2>conftest.er1
12614 grep -v '^ *+' conftest.er1
>conftest.err
12616 cat conftest.err
>&5
12617 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12618 (exit $ac_status); } &&
12619 { ac_try
='test -z "$ac_c_werror_flag"
12620 || test ! -s conftest.err'
12621 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12622 (eval $ac_try) 2>&5
12624 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12625 (exit $ac_status); }; } &&
12626 { ac_try
='test -s conftest.$ac_objext'
12627 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12628 (eval $ac_try) 2>&5
12630 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12631 (exit $ac_status); }; }; then
12632 eval "$as_ac_Header=yes"
12634 echo "$as_me: failed program was:" >&5
12635 sed 's/^/| /' conftest.
$ac_ext >&5
12637 eval "$as_ac_Header=no"
12639 rm -f conftest.err conftest.
$ac_objext conftest.
$ac_ext
12641 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
12642 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
12643 if test `eval echo '${'$as_ac_Header'}'` = yes; then
12644 cat >>confdefs.h
<<_ACEOF
12645 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
12653 # ------------------------- #
12654 # Checks for declarations. #
12655 # ------------------------- #
12657 echo "$as_me:$LINENO: checking whether free is declared" >&5
12658 echo $ECHO_N "checking whether free is declared... $ECHO_C" >&6
12659 if test "${ac_cv_have_decl_free+set}" = set; then
12660 echo $ECHO_N "(cached) $ECHO_C" >&6
12662 cat >conftest.
$ac_ext <<_ACEOF
12665 cat confdefs.h
>>conftest.
$ac_ext
12666 cat >>conftest.
$ac_ext <<_ACEOF
12667 /* end confdefs.h. */
12668 $ac_includes_default
12673 char *p = (char *) free;
12680 rm -f conftest.
$ac_objext
12681 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
12682 (eval $ac_compile) 2>conftest.er1
12684 grep -v '^ *+' conftest.er1
>conftest.err
12686 cat conftest.err
>&5
12687 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12688 (exit $ac_status); } &&
12689 { ac_try
='test -z "$ac_c_werror_flag"
12690 || test ! -s conftest.err'
12691 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12692 (eval $ac_try) 2>&5
12694 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12695 (exit $ac_status); }; } &&
12696 { ac_try
='test -s conftest.$ac_objext'
12697 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12698 (eval $ac_try) 2>&5
12700 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12701 (exit $ac_status); }; }; then
12702 ac_cv_have_decl_free
=yes
12704 echo "$as_me: failed program was:" >&5
12705 sed 's/^/| /' conftest.
$ac_ext >&5
12707 ac_cv_have_decl_free
=no
12709 rm -f conftest.err conftest.
$ac_objext conftest.
$ac_ext
12711 echo "$as_me:$LINENO: result: $ac_cv_have_decl_free" >&5
12712 echo "${ECHO_T}$ac_cv_have_decl_free" >&6
12713 if test $ac_cv_have_decl_free = yes; then
12715 cat >>confdefs.h
<<_ACEOF
12716 #define HAVE_DECL_FREE 1
12721 cat >>confdefs.h
<<_ACEOF
12722 #define HAVE_DECL_FREE 0
12727 echo "$as_me:$LINENO: checking whether malloc is declared" >&5
12728 echo $ECHO_N "checking whether malloc is declared... $ECHO_C" >&6
12729 if test "${ac_cv_have_decl_malloc+set}" = set; then
12730 echo $ECHO_N "(cached) $ECHO_C" >&6
12732 cat >conftest.
$ac_ext <<_ACEOF
12735 cat confdefs.h
>>conftest.
$ac_ext
12736 cat >>conftest.
$ac_ext <<_ACEOF
12737 /* end confdefs.h. */
12738 $ac_includes_default
12743 char *p = (char *) malloc;
12750 rm -f conftest.
$ac_objext
12751 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
12752 (eval $ac_compile) 2>conftest.er1
12754 grep -v '^ *+' conftest.er1
>conftest.err
12756 cat conftest.err
>&5
12757 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12758 (exit $ac_status); } &&
12759 { ac_try
='test -z "$ac_c_werror_flag"
12760 || test ! -s conftest.err'
12761 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12762 (eval $ac_try) 2>&5
12764 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12765 (exit $ac_status); }; } &&
12766 { ac_try
='test -s conftest.$ac_objext'
12767 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12768 (eval $ac_try) 2>&5
12770 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12771 (exit $ac_status); }; }; then
12772 ac_cv_have_decl_malloc
=yes
12774 echo "$as_me: failed program was:" >&5
12775 sed 's/^/| /' conftest.
$ac_ext >&5
12777 ac_cv_have_decl_malloc
=no
12779 rm -f conftest.err conftest.
$ac_objext conftest.
$ac_ext
12781 echo "$as_me:$LINENO: result: $ac_cv_have_decl_malloc" >&5
12782 echo "${ECHO_T}$ac_cv_have_decl_malloc" >&6
12783 if test $ac_cv_have_decl_malloc = yes; then
12785 cat >>confdefs.h
<<_ACEOF
12786 #define HAVE_DECL_MALLOC 1
12791 cat >>confdefs.h
<<_ACEOF
12792 #define HAVE_DECL_MALLOC 0
12797 echo "$as_me:$LINENO: checking whether realloc is declared" >&5
12798 echo $ECHO_N "checking whether realloc is declared... $ECHO_C" >&6
12799 if test "${ac_cv_have_decl_realloc+set}" = set; then
12800 echo $ECHO_N "(cached) $ECHO_C" >&6
12802 cat >conftest.
$ac_ext <<_ACEOF
12805 cat confdefs.h
>>conftest.
$ac_ext
12806 cat >>conftest.
$ac_ext <<_ACEOF
12807 /* end confdefs.h. */
12808 $ac_includes_default
12813 char *p = (char *) realloc;
12820 rm -f conftest.
$ac_objext
12821 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
12822 (eval $ac_compile) 2>conftest.er1
12824 grep -v '^ *+' conftest.er1
>conftest.err
12826 cat conftest.err
>&5
12827 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12828 (exit $ac_status); } &&
12829 { ac_try
='test -z "$ac_c_werror_flag"
12830 || test ! -s conftest.err'
12831 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12832 (eval $ac_try) 2>&5
12834 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12835 (exit $ac_status); }; } &&
12836 { ac_try
='test -s conftest.$ac_objext'
12837 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12838 (eval $ac_try) 2>&5
12840 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12841 (exit $ac_status); }; }; then
12842 ac_cv_have_decl_realloc
=yes
12844 echo "$as_me: failed program was:" >&5
12845 sed 's/^/| /' conftest.
$ac_ext >&5
12847 ac_cv_have_decl_realloc
=no
12849 rm -f conftest.err conftest.
$ac_objext conftest.
$ac_ext
12851 echo "$as_me:$LINENO: result: $ac_cv_have_decl_realloc" >&5
12852 echo "${ECHO_T}$ac_cv_have_decl_realloc" >&6
12853 if test $ac_cv_have_decl_realloc = yes; then
12855 cat >>confdefs.h
<<_ACEOF
12856 #define HAVE_DECL_REALLOC 1
12861 cat >>confdefs.h
<<_ACEOF
12862 #define HAVE_DECL_REALLOC 0
12867 echo "$as_me:$LINENO: checking whether strerror is declared" >&5
12868 echo $ECHO_N "checking whether strerror is declared... $ECHO_C" >&6
12869 if test "${ac_cv_have_decl_strerror+set}" = set; then
12870 echo $ECHO_N "(cached) $ECHO_C" >&6
12872 cat >conftest.
$ac_ext <<_ACEOF
12875 cat confdefs.h
>>conftest.
$ac_ext
12876 cat >>conftest.
$ac_ext <<_ACEOF
12877 /* end confdefs.h. */
12878 $ac_includes_default
12883 char *p = (char *) strerror;
12890 rm -f conftest.
$ac_objext
12891 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
12892 (eval $ac_compile) 2>conftest.er1
12894 grep -v '^ *+' conftest.er1
>conftest.err
12896 cat conftest.err
>&5
12897 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12898 (exit $ac_status); } &&
12899 { ac_try
='test -z "$ac_c_werror_flag"
12900 || test ! -s conftest.err'
12901 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12902 (eval $ac_try) 2>&5
12904 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12905 (exit $ac_status); }; } &&
12906 { ac_try
='test -s conftest.$ac_objext'
12907 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12908 (eval $ac_try) 2>&5
12910 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12911 (exit $ac_status); }; }; then
12912 ac_cv_have_decl_strerror
=yes
12914 echo "$as_me: failed program was:" >&5
12915 sed 's/^/| /' conftest.
$ac_ext >&5
12917 ac_cv_have_decl_strerror
=no
12919 rm -f conftest.err conftest.
$ac_objext conftest.
$ac_ext
12921 echo "$as_me:$LINENO: result: $ac_cv_have_decl_strerror" >&5
12922 echo "${ECHO_T}$ac_cv_have_decl_strerror" >&6
12923 if test $ac_cv_have_decl_strerror = yes; then
12925 cat >>confdefs.h
<<_ACEOF
12926 #define HAVE_DECL_STRERROR 1
12931 cat >>confdefs.h
<<_ACEOF
12932 #define HAVE_DECL_STRERROR 0
12937 echo "$as_me:$LINENO: checking whether strstr is declared" >&5
12938 echo $ECHO_N "checking whether strstr is declared... $ECHO_C" >&6
12939 if test "${ac_cv_have_decl_strstr+set}" = set; then
12940 echo $ECHO_N "(cached) $ECHO_C" >&6
12942 cat >conftest.
$ac_ext <<_ACEOF
12945 cat confdefs.h
>>conftest.
$ac_ext
12946 cat >>conftest.
$ac_ext <<_ACEOF
12947 /* end confdefs.h. */
12948 $ac_includes_default
12953 char *p = (char *) strstr;
12960 rm -f conftest.
$ac_objext
12961 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
12962 (eval $ac_compile) 2>conftest.er1
12964 grep -v '^ *+' conftest.er1
>conftest.err
12966 cat conftest.err
>&5
12967 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12968 (exit $ac_status); } &&
12969 { ac_try
='test -z "$ac_c_werror_flag"
12970 || test ! -s conftest.err'
12971 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12972 (eval $ac_try) 2>&5
12974 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12975 (exit $ac_status); }; } &&
12976 { ac_try
='test -s conftest.$ac_objext'
12977 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12978 (eval $ac_try) 2>&5
12980 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12981 (exit $ac_status); }; }; then
12982 ac_cv_have_decl_strstr
=yes
12984 echo "$as_me: failed program was:" >&5
12985 sed 's/^/| /' conftest.
$ac_ext >&5
12987 ac_cv_have_decl_strstr
=no
12989 rm -f conftest.err conftest.
$ac_objext conftest.
$ac_ext
12991 echo "$as_me:$LINENO: result: $ac_cv_have_decl_strstr" >&5
12992 echo "${ECHO_T}$ac_cv_have_decl_strstr" >&6
12993 if test $ac_cv_have_decl_strstr = yes; then
12995 cat >>confdefs.h
<<_ACEOF
12996 #define HAVE_DECL_STRSTR 1
13001 cat >>confdefs.h
<<_ACEOF
13002 #define HAVE_DECL_STRSTR 0
13007 echo "$as_me:$LINENO: checking whether getopt is declared" >&5
13008 echo $ECHO_N "checking whether getopt is declared... $ECHO_C" >&6
13009 if test "${ac_cv_have_decl_getopt+set}" = set; then
13010 echo $ECHO_N "(cached) $ECHO_C" >&6
13012 cat >conftest.
$ac_ext <<_ACEOF
13015 cat confdefs.h
>>conftest.
$ac_ext
13016 cat >>conftest.
$ac_ext <<_ACEOF
13017 /* end confdefs.h. */
13018 $ac_includes_default
13023 char *p = (char *) getopt;
13030 rm -f conftest.
$ac_objext
13031 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
13032 (eval $ac_compile) 2>conftest.er1
13034 grep -v '^ *+' conftest.er1
>conftest.err
13036 cat conftest.err
>&5
13037 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13038 (exit $ac_status); } &&
13039 { ac_try
='test -z "$ac_c_werror_flag"
13040 || test ! -s conftest.err'
13041 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13042 (eval $ac_try) 2>&5
13044 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13045 (exit $ac_status); }; } &&
13046 { ac_try
='test -s conftest.$ac_objext'
13047 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13048 (eval $ac_try) 2>&5
13050 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13051 (exit $ac_status); }; }; then
13052 ac_cv_have_decl_getopt
=yes
13054 echo "$as_me: failed program was:" >&5
13055 sed 's/^/| /' conftest.
$ac_ext >&5
13057 ac_cv_have_decl_getopt
=no
13059 rm -f conftest.err conftest.
$ac_objext conftest.
$ac_ext
13061 echo "$as_me:$LINENO: result: $ac_cv_have_decl_getopt" >&5
13062 echo "${ECHO_T}$ac_cv_have_decl_getopt" >&6
13063 if test $ac_cv_have_decl_getopt = yes; then
13065 cat >>confdefs.h
<<_ACEOF
13066 #define HAVE_DECL_GETOPT 1
13071 cat >>confdefs.h
<<_ACEOF
13072 #define HAVE_DECL_GETOPT 0
13077 echo "$as_me:$LINENO: checking whether snprintf is declared" >&5
13078 echo $ECHO_N "checking whether snprintf is declared... $ECHO_C" >&6
13079 if test "${ac_cv_have_decl_snprintf+set}" = set; then
13080 echo $ECHO_N "(cached) $ECHO_C" >&6
13082 cat >conftest.
$ac_ext <<_ACEOF
13085 cat confdefs.h
>>conftest.
$ac_ext
13086 cat >>conftest.
$ac_ext <<_ACEOF
13087 /* end confdefs.h. */
13088 $ac_includes_default
13093 char *p = (char *) snprintf;
13100 rm -f conftest.
$ac_objext
13101 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
13102 (eval $ac_compile) 2>conftest.er1
13104 grep -v '^ *+' conftest.er1
>conftest.err
13106 cat conftest.err
>&5
13107 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13108 (exit $ac_status); } &&
13109 { ac_try
='test -z "$ac_c_werror_flag"
13110 || test ! -s conftest.err'
13111 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13112 (eval $ac_try) 2>&5
13114 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13115 (exit $ac_status); }; } &&
13116 { ac_try
='test -s conftest.$ac_objext'
13117 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13118 (eval $ac_try) 2>&5
13120 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13121 (exit $ac_status); }; }; then
13122 ac_cv_have_decl_snprintf
=yes
13124 echo "$as_me: failed program was:" >&5
13125 sed 's/^/| /' conftest.
$ac_ext >&5
13127 ac_cv_have_decl_snprintf
=no
13129 rm -f conftest.err conftest.
$ac_objext conftest.
$ac_ext
13131 echo "$as_me:$LINENO: result: $ac_cv_have_decl_snprintf" >&5
13132 echo "${ECHO_T}$ac_cv_have_decl_snprintf" >&6
13133 if test $ac_cv_have_decl_snprintf = yes; then
13135 cat >>confdefs.h
<<_ACEOF
13136 #define HAVE_DECL_SNPRINTF 1
13141 cat >>confdefs.h
<<_ACEOF
13142 #define HAVE_DECL_SNPRINTF 0
13147 echo "$as_me:$LINENO: checking whether vsnprintf is declared" >&5
13148 echo $ECHO_N "checking whether vsnprintf is declared... $ECHO_C" >&6
13149 if test "${ac_cv_have_decl_vsnprintf+set}" = set; then
13150 echo $ECHO_N "(cached) $ECHO_C" >&6
13152 cat >conftest.
$ac_ext <<_ACEOF
13155 cat confdefs.h
>>conftest.
$ac_ext
13156 cat >>conftest.
$ac_ext <<_ACEOF
13157 /* end confdefs.h. */
13158 $ac_includes_default
13163 char *p = (char *) vsnprintf;
13170 rm -f conftest.
$ac_objext
13171 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
13172 (eval $ac_compile) 2>conftest.er1
13174 grep -v '^ *+' conftest.er1
>conftest.err
13176 cat conftest.err
>&5
13177 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13178 (exit $ac_status); } &&
13179 { ac_try
='test -z "$ac_c_werror_flag"
13180 || test ! -s conftest.err'
13181 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13182 (eval $ac_try) 2>&5
13184 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13185 (exit $ac_status); }; } &&
13186 { ac_try
='test -s conftest.$ac_objext'
13187 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13188 (eval $ac_try) 2>&5
13190 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13191 (exit $ac_status); }; }; then
13192 ac_cv_have_decl_vsnprintf
=yes
13194 echo "$as_me: failed program was:" >&5
13195 sed 's/^/| /' conftest.
$ac_ext >&5
13197 ac_cv_have_decl_vsnprintf
=no
13199 rm -f conftest.err conftest.
$ac_objext conftest.
$ac_ext
13201 echo "$as_me:$LINENO: result: $ac_cv_have_decl_vsnprintf" >&5
13202 echo "${ECHO_T}$ac_cv_have_decl_vsnprintf" >&6
13203 if test $ac_cv_have_decl_vsnprintf = yes; then
13205 cat >>confdefs.h
<<_ACEOF
13206 #define HAVE_DECL_VSNPRINTF 1
13211 cat >>confdefs.h
<<_ACEOF
13212 #define HAVE_DECL_VSNPRINTF 0
13220 echo "$as_me:$LINENO: checking for LC_MESSAGES" >&5
13221 echo $ECHO_N "checking for LC_MESSAGES... $ECHO_C" >&6
13222 if test "${am_cv_val_LC_MESSAGES+set}" = set; then
13223 echo $ECHO_N "(cached) $ECHO_C" >&6
13225 cat >conftest.
$ac_ext <<_ACEOF
13228 cat confdefs.h
>>conftest.
$ac_ext
13229 cat >>conftest.
$ac_ext <<_ACEOF
13230 /* end confdefs.h. */
13231 #include <locale.h>
13240 rm -f conftest.
$ac_objext conftest
$ac_exeext
13241 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
13242 (eval $ac_link) 2>conftest.er1
13244 grep -v '^ *+' conftest.er1
>conftest.err
13246 cat conftest.err
>&5
13247 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13248 (exit $ac_status); } &&
13249 { ac_try
='test -z "$ac_c_werror_flag"
13250 || test ! -s conftest.err'
13251 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13252 (eval $ac_try) 2>&5
13254 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13255 (exit $ac_status); }; } &&
13256 { ac_try
='test -s conftest$ac_exeext'
13257 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13258 (eval $ac_try) 2>&5
13260 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13261 (exit $ac_status); }; }; then
13262 am_cv_val_LC_MESSAGES
=yes
13264 echo "$as_me: failed program was:" >&5
13265 sed 's/^/| /' conftest.
$ac_ext >&5
13267 am_cv_val_LC_MESSAGES
=no
13269 rm -f conftest.err conftest.
$ac_objext \
13270 conftest
$ac_exeext conftest.
$ac_ext
13272 echo "$as_me:$LINENO: result: $am_cv_val_LC_MESSAGES" >&5
13273 echo "${ECHO_T}$am_cv_val_LC_MESSAGES" >&6
13274 if test $am_cv_val_LC_MESSAGES = yes; then
13276 cat >>confdefs.h
<<\_ACEOF
13277 #define HAVE_LC_MESSAGES 1
13283 # ----------------------- #
13284 # Checks for structures. #
13285 # ----------------------- #
13287 echo "$as_me:$LINENO: checking for struct stat.st_blocks" >&5
13288 echo $ECHO_N "checking for struct stat.st_blocks... $ECHO_C" >&6
13289 if test "${ac_cv_member_struct_stat_st_blocks+set}" = set; then
13290 echo $ECHO_N "(cached) $ECHO_C" >&6
13292 cat >conftest.
$ac_ext <<_ACEOF
13295 cat confdefs.h
>>conftest.
$ac_ext
13296 cat >>conftest.
$ac_ext <<_ACEOF
13297 /* end confdefs.h. */
13298 $ac_includes_default
13302 static struct stat ac_aggr;
13303 if (ac_aggr.st_blocks)
13309 rm -f conftest.
$ac_objext
13310 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
13311 (eval $ac_compile) 2>conftest.er1
13313 grep -v '^ *+' conftest.er1
>conftest.err
13315 cat conftest.err
>&5
13316 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13317 (exit $ac_status); } &&
13318 { ac_try
='test -z "$ac_c_werror_flag"
13319 || test ! -s conftest.err'
13320 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13321 (eval $ac_try) 2>&5
13323 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13324 (exit $ac_status); }; } &&
13325 { ac_try
='test -s conftest.$ac_objext'
13326 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13327 (eval $ac_try) 2>&5
13329 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13330 (exit $ac_status); }; }; then
13331 ac_cv_member_struct_stat_st_blocks
=yes
13333 echo "$as_me: failed program was:" >&5
13334 sed 's/^/| /' conftest.
$ac_ext >&5
13336 cat >conftest.
$ac_ext <<_ACEOF
13339 cat confdefs.h
>>conftest.
$ac_ext
13340 cat >>conftest.
$ac_ext <<_ACEOF
13341 /* end confdefs.h. */
13342 $ac_includes_default
13346 static struct stat ac_aggr;
13347 if (sizeof ac_aggr.st_blocks)
13353 rm -f conftest.
$ac_objext
13354 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
13355 (eval $ac_compile) 2>conftest.er1
13357 grep -v '^ *+' conftest.er1
>conftest.err
13359 cat conftest.err
>&5
13360 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13361 (exit $ac_status); } &&
13362 { ac_try
='test -z "$ac_c_werror_flag"
13363 || test ! -s conftest.err'
13364 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13365 (eval $ac_try) 2>&5
13367 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13368 (exit $ac_status); }; } &&
13369 { ac_try
='test -s conftest.$ac_objext'
13370 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13371 (eval $ac_try) 2>&5
13373 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13374 (exit $ac_status); }; }; then
13375 ac_cv_member_struct_stat_st_blocks
=yes
13377 echo "$as_me: failed program was:" >&5
13378 sed 's/^/| /' conftest.
$ac_ext >&5
13380 ac_cv_member_struct_stat_st_blocks
=no
13382 rm -f conftest.err conftest.
$ac_objext conftest.
$ac_ext
13384 rm -f conftest.err conftest.
$ac_objext conftest.
$ac_ext
13386 echo "$as_me:$LINENO: result: $ac_cv_member_struct_stat_st_blocks" >&5
13387 echo "${ECHO_T}$ac_cv_member_struct_stat_st_blocks" >&6
13388 if test $ac_cv_member_struct_stat_st_blocks = yes; then
13390 cat >>confdefs.h
<<_ACEOF
13391 #define HAVE_STRUCT_STAT_ST_BLOCKS 1
13396 echo "$as_me:$LINENO: checking for struct stat.st_blksize" >&5
13397 echo $ECHO_N "checking for struct stat.st_blksize... $ECHO_C" >&6
13398 if test "${ac_cv_member_struct_stat_st_blksize+set}" = set; then
13399 echo $ECHO_N "(cached) $ECHO_C" >&6
13401 cat >conftest.
$ac_ext <<_ACEOF
13404 cat confdefs.h
>>conftest.
$ac_ext
13405 cat >>conftest.
$ac_ext <<_ACEOF
13406 /* end confdefs.h. */
13407 $ac_includes_default
13411 static struct stat ac_aggr;
13412 if (ac_aggr.st_blksize)
13418 rm -f conftest.
$ac_objext
13419 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
13420 (eval $ac_compile) 2>conftest.er1
13422 grep -v '^ *+' conftest.er1
>conftest.err
13424 cat conftest.err
>&5
13425 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13426 (exit $ac_status); } &&
13427 { ac_try
='test -z "$ac_c_werror_flag"
13428 || test ! -s conftest.err'
13429 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13430 (eval $ac_try) 2>&5
13432 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13433 (exit $ac_status); }; } &&
13434 { ac_try
='test -s conftest.$ac_objext'
13435 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13436 (eval $ac_try) 2>&5
13438 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13439 (exit $ac_status); }; }; then
13440 ac_cv_member_struct_stat_st_blksize
=yes
13442 echo "$as_me: failed program was:" >&5
13443 sed 's/^/| /' conftest.
$ac_ext >&5
13445 cat >conftest.
$ac_ext <<_ACEOF
13448 cat confdefs.h
>>conftest.
$ac_ext
13449 cat >>conftest.
$ac_ext <<_ACEOF
13450 /* end confdefs.h. */
13451 $ac_includes_default
13455 static struct stat ac_aggr;
13456 if (sizeof ac_aggr.st_blksize)
13462 rm -f conftest.
$ac_objext
13463 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
13464 (eval $ac_compile) 2>conftest.er1
13466 grep -v '^ *+' conftest.er1
>conftest.err
13468 cat conftest.err
>&5
13469 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13470 (exit $ac_status); } &&
13471 { ac_try
='test -z "$ac_c_werror_flag"
13472 || test ! -s conftest.err'
13473 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13474 (eval $ac_try) 2>&5
13476 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13477 (exit $ac_status); }; } &&
13478 { ac_try
='test -s conftest.$ac_objext'
13479 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13480 (eval $ac_try) 2>&5
13482 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13483 (exit $ac_status); }; }; then
13484 ac_cv_member_struct_stat_st_blksize
=yes
13486 echo "$as_me: failed program was:" >&5
13487 sed 's/^/| /' conftest.
$ac_ext >&5
13489 ac_cv_member_struct_stat_st_blksize
=no
13491 rm -f conftest.err conftest.
$ac_objext conftest.
$ac_ext
13493 rm -f conftest.err conftest.
$ac_objext conftest.
$ac_ext
13495 echo "$as_me:$LINENO: result: $ac_cv_member_struct_stat_st_blksize" >&5
13496 echo "${ECHO_T}$ac_cv_member_struct_stat_st_blksize" >&6
13497 if test $ac_cv_member_struct_stat_st_blksize = yes; then
13499 cat >>confdefs.h
<<_ACEOF
13500 #define HAVE_STRUCT_STAT_ST_BLKSIZE 1
13507 # ------------------ #
13508 # Checks for types. #
13509 # ------------------ #
13511 echo "$as_me:$LINENO: checking return type of signal handlers" >&5
13512 echo $ECHO_N "checking return type of signal handlers... $ECHO_C" >&6
13513 if test "${ac_cv_type_signal+set}" = set; then
13514 echo $ECHO_N "(cached) $ECHO_C" >&6
13516 cat >conftest.
$ac_ext <<_ACEOF
13519 cat confdefs.h
>>conftest.
$ac_ext
13520 cat >>conftest.
$ac_ext <<_ACEOF
13521 /* end confdefs.h. */
13522 #include <sys/types.h>
13523 #include <signal.h>
13528 extern "C" void (*signal (int, void (*)(int)))(int);
13530 void (*signal ()) ();
13541 rm -f conftest.
$ac_objext
13542 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
13543 (eval $ac_compile) 2>conftest.er1
13545 grep -v '^ *+' conftest.er1
>conftest.err
13547 cat conftest.err
>&5
13548 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13549 (exit $ac_status); } &&
13550 { ac_try
='test -z "$ac_c_werror_flag"
13551 || test ! -s conftest.err'
13552 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13553 (eval $ac_try) 2>&5
13555 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13556 (exit $ac_status); }; } &&
13557 { ac_try
='test -s conftest.$ac_objext'
13558 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13559 (eval $ac_try) 2>&5
13561 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13562 (exit $ac_status); }; }; then
13563 ac_cv_type_signal
=void
13565 echo "$as_me: failed program was:" >&5
13566 sed 's/^/| /' conftest.
$ac_ext >&5
13568 ac_cv_type_signal
=int
13570 rm -f conftest.err conftest.
$ac_objext conftest.
$ac_ext
13572 echo "$as_me:$LINENO: result: $ac_cv_type_signal" >&5
13573 echo "${ECHO_T}$ac_cv_type_signal" >&6
13575 cat >>confdefs.h
<<_ACEOF
13576 #define RETSIGTYPE $ac_cv_type_signal
13580 echo "$as_me:$LINENO: checking for socklen_t" >&5
13581 echo $ECHO_N "checking for socklen_t... $ECHO_C" >&6
13582 if test "${ac_cv_type_socklen_t+set}" = set; then
13583 echo $ECHO_N "(cached) $ECHO_C" >&6
13585 cat >conftest.
$ac_ext <<_ACEOF
13588 cat confdefs.h
>>conftest.
$ac_ext
13589 cat >>conftest.
$ac_ext <<_ACEOF
13590 /* end confdefs.h. */
13591 #include <sys/types.h>
13592 #include <sys/socket.h>
13598 if ((socklen_t *) 0)
13600 if (sizeof (socklen_t))
13606 rm -f conftest.
$ac_objext
13607 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
13608 (eval $ac_compile) 2>conftest.er1
13610 grep -v '^ *+' conftest.er1
>conftest.err
13612 cat conftest.err
>&5
13613 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13614 (exit $ac_status); } &&
13615 { ac_try
='test -z "$ac_c_werror_flag"
13616 || test ! -s conftest.err'
13617 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13618 (eval $ac_try) 2>&5
13620 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13621 (exit $ac_status); }; } &&
13622 { ac_try
='test -s conftest.$ac_objext'
13623 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13624 (eval $ac_try) 2>&5
13626 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13627 (exit $ac_status); }; }; then
13628 ac_cv_type_socklen_t
=yes
13630 echo "$as_me: failed program was:" >&5
13631 sed 's/^/| /' conftest.
$ac_ext >&5
13633 ac_cv_type_socklen_t
=no
13635 rm -f conftest.err conftest.
$ac_objext conftest.
$ac_ext
13637 echo "$as_me:$LINENO: result: $ac_cv_type_socklen_t" >&5
13638 echo "${ECHO_T}$ac_cv_type_socklen_t" >&6
13639 if test $ac_cv_type_socklen_t = yes; then
13641 cat >>confdefs.h
<<_ACEOF
13642 #define HAVE_SOCKLEN_T 1
13649 # ------------------------------------- #
13650 # Checks for compiler characteristics. #
13651 # ------------------------------------- #
13653 echo "$as_me:$LINENO: checking for an ANSI C-conforming const" >&5
13654 echo $ECHO_N "checking for an ANSI C-conforming const... $ECHO_C" >&6
13655 if test "${ac_cv_c_const+set}" = set; then
13656 echo $ECHO_N "(cached) $ECHO_C" >&6
13658 cat >conftest.
$ac_ext <<_ACEOF
13661 cat confdefs.h
>>conftest.
$ac_ext
13662 cat >>conftest.
$ac_ext <<_ACEOF
13663 /* end confdefs.h. */
13668 /* FIXME: Include the comments suggested by Paul. */
13669 #ifndef __cplusplus
13670 /* Ultrix mips cc rejects this. */
13671 typedef int charset[2];
13673 /* SunOS 4.1.1 cc rejects this. */
13674 char const *const *ccp;
13676 /* NEC SVR4.0.2 mips cc rejects this. */
13677 struct point {int x, y;};
13678 static struct point const zero = {0,0};
13679 /* AIX XL C 1.02.0.0 rejects this.
13680 It does not let you subtract one const X* pointer from another in
13681 an arm of an if-expression whose if-part is not a constant
13683 const char *g = "string";
13684 ccp = &g + (g ? g-g : 0);
13685 /* HPUX 7.0 cc rejects these. */
13688 ccp = (char const *const *) p;
13689 { /* SCO 3.2v4 cc rejects this. */
13691 char const *s = 0 ? (char *) 0 : (char const *) 0;
13695 { /* Someone thinks the Sun supposedly-ANSI compiler will reject this. */
13696 int x[] = {25, 17};
13697 const int *foo = &x[0];
13700 { /* Sun SC1.0 ANSI compiler rejects this -- but not the above. */
13701 typedef const int *iptr;
13705 { /* AIX XL C 1.02.0.0 rejects this saying
13706 "k.c", line 2.27: 1506-025 (S) Operand must be a modifiable lvalue. */
13707 struct s { int j; const int *ap[3]; };
13708 struct s *b; b->j = 5;
13710 { /* ULTRIX-32 V3.1 (Rev 9) vcc rejects this */
13711 const int foo = 10;
13719 rm -f conftest.
$ac_objext
13720 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
13721 (eval $ac_compile) 2>conftest.er1
13723 grep -v '^ *+' conftest.er1
>conftest.err
13725 cat conftest.err
>&5
13726 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13727 (exit $ac_status); } &&
13728 { ac_try
='test -z "$ac_c_werror_flag"
13729 || test ! -s conftest.err'
13730 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13731 (eval $ac_try) 2>&5
13733 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13734 (exit $ac_status); }; } &&
13735 { ac_try
='test -s conftest.$ac_objext'
13736 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13737 (eval $ac_try) 2>&5
13739 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13740 (exit $ac_status); }; }; then
13743 echo "$as_me: failed program was:" >&5
13744 sed 's/^/| /' conftest.
$ac_ext >&5
13748 rm -f conftest.err conftest.
$ac_objext conftest.
$ac_ext
13750 echo "$as_me:$LINENO: result: $ac_cv_c_const" >&5
13751 echo "${ECHO_T}$ac_cv_c_const" >&6
13752 if test $ac_cv_c_const = no
; then
13754 cat >>confdefs.h
<<\_ACEOF
13760 echo "$as_me:$LINENO: checking for inline" >&5
13761 echo $ECHO_N "checking for inline... $ECHO_C" >&6
13762 if test "${ac_cv_c_inline+set}" = set; then
13763 echo $ECHO_N "(cached) $ECHO_C" >&6
13766 for ac_kw
in inline __inline__ __inline
; do
13767 cat >conftest.
$ac_ext <<_ACEOF
13770 cat confdefs.h
>>conftest.
$ac_ext
13771 cat >>conftest.
$ac_ext <<_ACEOF
13772 /* end confdefs.h. */
13773 #ifndef __cplusplus
13775 static $ac_kw foo_t static_foo () {return 0; }
13776 $ac_kw foo_t foo () {return 0; }
13780 rm -f conftest.
$ac_objext
13781 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
13782 (eval $ac_compile) 2>conftest.er1
13784 grep -v '^ *+' conftest.er1
>conftest.err
13786 cat conftest.err
>&5
13787 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13788 (exit $ac_status); } &&
13789 { ac_try
='test -z "$ac_c_werror_flag"
13790 || test ! -s conftest.err'
13791 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13792 (eval $ac_try) 2>&5
13794 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13795 (exit $ac_status); }; } &&
13796 { ac_try
='test -s conftest.$ac_objext'
13797 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13798 (eval $ac_try) 2>&5
13800 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13801 (exit $ac_status); }; }; then
13802 ac_cv_c_inline
=$ac_kw; break
13804 echo "$as_me: failed program was:" >&5
13805 sed 's/^/| /' conftest.
$ac_ext >&5
13808 rm -f conftest.err conftest.
$ac_objext conftest.
$ac_ext
13812 echo "$as_me:$LINENO: result: $ac_cv_c_inline" >&5
13813 echo "${ECHO_T}$ac_cv_c_inline" >&6
13816 case $ac_cv_c_inline in
13819 case $ac_cv_c_inline in
13821 *) ac_val
=$ac_cv_c_inline;;
13823 cat >>confdefs.h
<<_ACEOF
13824 #ifndef __cplusplus
13825 #define inline $ac_val
13831 echo "$as_me:$LINENO: checking whether byte ordering is bigendian" >&5
13832 echo $ECHO_N "checking whether byte ordering is bigendian... $ECHO_C" >&6
13833 if test "${ac_cv_c_bigendian+set}" = set; then
13834 echo $ECHO_N "(cached) $ECHO_C" >&6
13836 # See if sys/param.h defines the BYTE_ORDER macro.
13837 cat >conftest.
$ac_ext <<_ACEOF
13840 cat confdefs.h
>>conftest.
$ac_ext
13841 cat >>conftest.
$ac_ext <<_ACEOF
13842 /* end confdefs.h. */
13843 #include <sys/types.h>
13844 #include <sys/param.h>
13849 #if !BYTE_ORDER || !BIG_ENDIAN || !LITTLE_ENDIAN
13850 bogus endian macros
13857 rm -f conftest.
$ac_objext
13858 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
13859 (eval $ac_compile) 2>conftest.er1
13861 grep -v '^ *+' conftest.er1
>conftest.err
13863 cat conftest.err
>&5
13864 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13865 (exit $ac_status); } &&
13866 { ac_try
='test -z "$ac_c_werror_flag"
13867 || test ! -s conftest.err'
13868 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13869 (eval $ac_try) 2>&5
13871 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13872 (exit $ac_status); }; } &&
13873 { ac_try
='test -s conftest.$ac_objext'
13874 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13875 (eval $ac_try) 2>&5
13877 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13878 (exit $ac_status); }; }; then
13879 # It does; now see whether it defined to BIG_ENDIAN or not.
13880 cat >conftest.
$ac_ext <<_ACEOF
13883 cat confdefs.h
>>conftest.
$ac_ext
13884 cat >>conftest.
$ac_ext <<_ACEOF
13885 /* end confdefs.h. */
13886 #include <sys/types.h>
13887 #include <sys/param.h>
13892 #if BYTE_ORDER != BIG_ENDIAN
13900 rm -f conftest.
$ac_objext
13901 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
13902 (eval $ac_compile) 2>conftest.er1
13904 grep -v '^ *+' conftest.er1
>conftest.err
13906 cat conftest.err
>&5
13907 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13908 (exit $ac_status); } &&
13909 { ac_try
='test -z "$ac_c_werror_flag"
13910 || test ! -s conftest.err'
13911 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13912 (eval $ac_try) 2>&5
13914 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13915 (exit $ac_status); }; } &&
13916 { ac_try
='test -s conftest.$ac_objext'
13917 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13918 (eval $ac_try) 2>&5
13920 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13921 (exit $ac_status); }; }; then
13922 ac_cv_c_bigendian
=yes
13924 echo "$as_me: failed program was:" >&5
13925 sed 's/^/| /' conftest.
$ac_ext >&5
13927 ac_cv_c_bigendian
=no
13929 rm -f conftest.err conftest.
$ac_objext conftest.
$ac_ext
13931 echo "$as_me: failed program was:" >&5
13932 sed 's/^/| /' conftest.
$ac_ext >&5
13934 # It does not; compile a test program.
13935 if test "$cross_compiling" = yes; then
13936 # try to guess the endianness by grepping values into an object file
13937 ac_cv_c_bigendian
=unknown
13938 cat >conftest.
$ac_ext <<_ACEOF
13941 cat confdefs.h
>>conftest.
$ac_ext
13942 cat >>conftest.
$ac_ext <<_ACEOF
13943 /* end confdefs.h. */
13944 short ascii_mm[] = { 0x4249, 0x4765, 0x6E44, 0x6961, 0x6E53, 0x7953, 0 };
13945 short ascii_ii[] = { 0x694C, 0x5454, 0x656C, 0x6E45, 0x6944, 0x6E61, 0 };
13946 void _ascii () { char *s = (char *) ascii_mm; s = (char *) ascii_ii; }
13947 short ebcdic_ii[] = { 0x89D3, 0xE3E3, 0x8593, 0x95C5, 0x89C4, 0x9581, 0 };
13948 short ebcdic_mm[] = { 0xC2C9, 0xC785, 0x95C4, 0x8981, 0x95E2, 0xA8E2, 0 };
13949 void _ebcdic () { char *s = (char *) ebcdic_mm; s = (char *) ebcdic_ii; }
13953 _ascii (); _ebcdic ();
13958 rm -f conftest.
$ac_objext
13959 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
13960 (eval $ac_compile) 2>conftest.er1
13962 grep -v '^ *+' conftest.er1
>conftest.err
13964 cat conftest.err
>&5
13965 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13966 (exit $ac_status); } &&
13967 { ac_try
='test -z "$ac_c_werror_flag"
13968 || test ! -s conftest.err'
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); }; } &&
13974 { ac_try
='test -s conftest.$ac_objext'
13975 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13976 (eval $ac_try) 2>&5
13978 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13979 (exit $ac_status); }; }; then
13980 if grep BIGenDianSyS conftest.
$ac_objext >/dev
/null
; then
13981 ac_cv_c_bigendian
=yes
13983 if grep LiTTleEnDian conftest.
$ac_objext >/dev
/null
; then
13984 if test "$ac_cv_c_bigendian" = unknown
; then
13985 ac_cv_c_bigendian
=no
13987 # finding both strings is unlikely to happen, but who knows?
13988 ac_cv_c_bigendian
=unknown
13992 echo "$as_me: failed program was:" >&5
13993 sed 's/^/| /' conftest.
$ac_ext >&5
13996 rm -f conftest.err conftest.
$ac_objext conftest.
$ac_ext
13998 cat >conftest.
$ac_ext <<_ACEOF
14001 cat confdefs.h
>>conftest.
$ac_ext
14002 cat >>conftest.
$ac_ext <<_ACEOF
14003 /* end confdefs.h. */
14007 /* Are we little or big endian? From Harbison&Steele. */
14011 char c[sizeof (long)];
14014 exit (u.c[sizeof (long) - 1] == 1);
14017 rm -f conftest
$ac_exeext
14018 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
14019 (eval $ac_link) 2>&5
14021 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14022 (exit $ac_status); } && { ac_try
='./conftest$ac_exeext'
14023 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14024 (eval $ac_try) 2>&5
14026 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14027 (exit $ac_status); }; }; then
14028 ac_cv_c_bigendian
=no
14030 echo "$as_me: program exited with status $ac_status" >&5
14031 echo "$as_me: failed program was:" >&5
14032 sed 's/^/| /' conftest.
$ac_ext >&5
14034 ( exit $ac_status )
14035 ac_cv_c_bigendian
=yes
14037 rm -f core
*.core gmon.out bb.out conftest
$ac_exeext conftest.
$ac_objext conftest.
$ac_ext
14040 rm -f conftest.err conftest.
$ac_objext conftest.
$ac_ext
14042 echo "$as_me:$LINENO: result: $ac_cv_c_bigendian" >&5
14043 echo "${ECHO_T}$ac_cv_c_bigendian" >&6
14044 case $ac_cv_c_bigendian in
14047 cat >>confdefs.h
<<\_ACEOF
14048 #define WORDS_BIGENDIAN 1
14054 { { echo "$as_me:$LINENO: error: unknown endianness
14055 presetting ac_cv_c_bigendian=no (or yes) will help" >&5
14056 echo "$as_me: error: unknown endianness
14057 presetting ac_cv_c_bigendian=no (or yes) will help" >&2;}
14058 { (exit 1); exit 1; }; } ;;
14062 # ------------------------------ #
14063 # Checks for library functions. #
14064 # ------------------------------ #
14066 # The Ultrix 4.2 mips builtin alloca declared by alloca.h only works
14067 # for constant arguments. Useless!
14068 echo "$as_me:$LINENO: checking for working alloca.h" >&5
14069 echo $ECHO_N "checking for working alloca.h... $ECHO_C" >&6
14070 if test "${ac_cv_working_alloca_h+set}" = set; then
14071 echo $ECHO_N "(cached) $ECHO_C" >&6
14073 cat >conftest.
$ac_ext <<_ACEOF
14076 cat confdefs.h
>>conftest.
$ac_ext
14077 cat >>conftest.
$ac_ext <<_ACEOF
14078 /* end confdefs.h. */
14079 #include <alloca.h>
14083 char *p = (char *) alloca (2 * sizeof (int));
14088 rm -f conftest.
$ac_objext conftest
$ac_exeext
14089 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
14090 (eval $ac_link) 2>conftest.er1
14092 grep -v '^ *+' conftest.er1
>conftest.err
14094 cat conftest.err
>&5
14095 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14096 (exit $ac_status); } &&
14097 { ac_try
='test -z "$ac_c_werror_flag"
14098 || test ! -s conftest.err'
14099 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14100 (eval $ac_try) 2>&5
14102 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14103 (exit $ac_status); }; } &&
14104 { ac_try
='test -s conftest$ac_exeext'
14105 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14106 (eval $ac_try) 2>&5
14108 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14109 (exit $ac_status); }; }; then
14110 ac_cv_working_alloca_h
=yes
14112 echo "$as_me: failed program was:" >&5
14113 sed 's/^/| /' conftest.
$ac_ext >&5
14115 ac_cv_working_alloca_h
=no
14117 rm -f conftest.err conftest.
$ac_objext \
14118 conftest
$ac_exeext conftest.
$ac_ext
14120 echo "$as_me:$LINENO: result: $ac_cv_working_alloca_h" >&5
14121 echo "${ECHO_T}$ac_cv_working_alloca_h" >&6
14122 if test $ac_cv_working_alloca_h = yes; then
14124 cat >>confdefs.h
<<\_ACEOF
14125 #define HAVE_ALLOCA_H 1
14130 echo "$as_me:$LINENO: checking for alloca" >&5
14131 echo $ECHO_N "checking for alloca... $ECHO_C" >&6
14132 if test "${ac_cv_func_alloca_works+set}" = set; then
14133 echo $ECHO_N "(cached) $ECHO_C" >&6
14135 cat >conftest.
$ac_ext <<_ACEOF
14138 cat confdefs.h
>>conftest.
$ac_ext
14139 cat >>conftest.
$ac_ext <<_ACEOF
14140 /* end confdefs.h. */
14142 # define alloca __builtin_alloca
14145 # include <malloc.h>
14146 # define alloca _alloca
14149 # include <alloca.h>
14154 # ifndef alloca /* predefined by HP cc +Olibcalls */
14165 char *p = (char *) alloca (1);
14170 rm -f conftest.
$ac_objext conftest
$ac_exeext
14171 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
14172 (eval $ac_link) 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_exeext'
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_cv_func_alloca_works
=yes
14194 echo "$as_me: failed program was:" >&5
14195 sed 's/^/| /' conftest.
$ac_ext >&5
14197 ac_cv_func_alloca_works
=no
14199 rm -f conftest.err conftest.
$ac_objext \
14200 conftest
$ac_exeext conftest.
$ac_ext
14202 echo "$as_me:$LINENO: result: $ac_cv_func_alloca_works" >&5
14203 echo "${ECHO_T}$ac_cv_func_alloca_works" >&6
14205 if test $ac_cv_func_alloca_works = yes; then
14207 cat >>confdefs.h
<<\_ACEOF
14208 #define HAVE_ALLOCA 1
14212 # The SVR3 libPW and SVR4 libucb both contain incompatible functions
14213 # that cause trouble. Some versions do not even contain alloca or
14214 # contain a buggy version. If you still want to use their alloca,
14215 # use ar to extract alloca.o from them instead of compiling alloca.c.
14217 ALLOCA
=alloca.
$ac_objext
14219 cat >>confdefs.h
<<\_ACEOF
14224 echo "$as_me:$LINENO: checking whether \`alloca.c' needs Cray hooks" >&5
14225 echo $ECHO_N "checking whether \`alloca.c' needs Cray hooks... $ECHO_C" >&6
14226 if test "${ac_cv_os_cray+set}" = set; then
14227 echo $ECHO_N "(cached) $ECHO_C" >&6
14229 cat >conftest.
$ac_ext <<_ACEOF
14232 cat confdefs.h
>>conftest.
$ac_ext
14233 cat >>conftest.
$ac_ext <<_ACEOF
14234 /* end confdefs.h. */
14235 #if defined(CRAY) && ! defined(CRAY2)
14242 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
14243 $EGREP "webecray" >/dev
/null
2>&1; then
14251 echo "$as_me:$LINENO: result: $ac_cv_os_cray" >&5
14252 echo "${ECHO_T}$ac_cv_os_cray" >&6
14253 if test $ac_cv_os_cray = yes; then
14254 for ac_func
in _getb67 GETB67 getb67
; do
14255 as_ac_var
=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
14256 echo "$as_me:$LINENO: checking for $ac_func" >&5
14257 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
14258 if eval "test \"\${$as_ac_var+set}\" = set"; then
14259 echo $ECHO_N "(cached) $ECHO_C" >&6
14261 cat >conftest.
$ac_ext <<_ACEOF
14264 cat confdefs.h
>>conftest.
$ac_ext
14265 cat >>conftest.
$ac_ext <<_ACEOF
14266 /* end confdefs.h. */
14267 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
14268 For example, HP-UX 11i <limits.h> declares gettimeofday. */
14269 #define $ac_func innocuous_$ac_func
14271 /* System header to define __stub macros and hopefully few prototypes,
14272 which can conflict with char $ac_func (); below.
14273 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
14274 <limits.h> exists even on freestanding compilers. */
14277 # include <limits.h>
14279 # include <assert.h>
14284 /* Override any gcc2 internal prototype to avoid an error. */
14289 /* We use char because int might match the return type of a gcc2
14290 builtin and then its argument prototype would still apply. */
14292 /* The GNU C library defines this for functions which it implements
14293 to always fail with ENOSYS. Some functions are actually named
14294 something starting with __ and the normal name is an alias. */
14295 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
14298 char (*f) () = $ac_func;
14307 return f != $ac_func;
14312 rm -f conftest.
$ac_objext conftest
$ac_exeext
14313 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
14314 (eval $ac_link) 2>conftest.er1
14316 grep -v '^ *+' conftest.er1
>conftest.err
14318 cat conftest.err
>&5
14319 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14320 (exit $ac_status); } &&
14321 { ac_try
='test -z "$ac_c_werror_flag"
14322 || test ! -s conftest.err'
14323 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14324 (eval $ac_try) 2>&5
14326 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14327 (exit $ac_status); }; } &&
14328 { ac_try
='test -s conftest$ac_exeext'
14329 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14330 (eval $ac_try) 2>&5
14332 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14333 (exit $ac_status); }; }; then
14334 eval "$as_ac_var=yes"
14336 echo "$as_me: failed program was:" >&5
14337 sed 's/^/| /' conftest.
$ac_ext >&5
14339 eval "$as_ac_var=no"
14341 rm -f conftest.err conftest.
$ac_objext \
14342 conftest
$ac_exeext conftest.
$ac_ext
14344 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
14345 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
14346 if test `eval echo '${'$as_ac_var'}'` = yes; then
14348 cat >>confdefs.h
<<_ACEOF
14349 #define CRAY_STACKSEG_END $ac_func
14358 echo "$as_me:$LINENO: checking stack direction for C alloca" >&5
14359 echo $ECHO_N "checking stack direction for C alloca... $ECHO_C" >&6
14360 if test "${ac_cv_c_stack_direction+set}" = set; then
14361 echo $ECHO_N "(cached) $ECHO_C" >&6
14363 if test "$cross_compiling" = yes; then
14364 ac_cv_c_stack_direction
=0
14366 cat >conftest.
$ac_ext <<_ACEOF
14369 cat confdefs.h
>>conftest.
$ac_ext
14370 cat >>conftest.
$ac_ext <<_ACEOF
14371 /* end confdefs.h. */
14373 find_stack_direction ()
14375 static char *addr = 0;
14380 return find_stack_direction ();
14383 return (&dummy > addr) ? 1 : -1;
14389 exit (find_stack_direction () < 0);
14392 rm -f conftest
$ac_exeext
14393 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
14394 (eval $ac_link) 2>&5
14396 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14397 (exit $ac_status); } && { ac_try
='./conftest$ac_exeext'
14398 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14399 (eval $ac_try) 2>&5
14401 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14402 (exit $ac_status); }; }; then
14403 ac_cv_c_stack_direction
=1
14405 echo "$as_me: program exited with status $ac_status" >&5
14406 echo "$as_me: failed program was:" >&5
14407 sed 's/^/| /' conftest.
$ac_ext >&5
14409 ( exit $ac_status )
14410 ac_cv_c_stack_direction
=-1
14412 rm -f core
*.core gmon.out bb.out conftest
$ac_exeext conftest.
$ac_objext conftest.
$ac_ext
14415 echo "$as_me:$LINENO: result: $ac_cv_c_stack_direction" >&5
14416 echo "${ECHO_T}$ac_cv_c_stack_direction" >&6
14418 cat >>confdefs.h
<<_ACEOF
14419 #define STACK_DIRECTION $ac_cv_c_stack_direction
14427 for ac_header
in stdlib.h unistd.h
14429 as_ac_Header
=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
14430 if eval "test \"\${$as_ac_Header+set}\" = set"; then
14431 echo "$as_me:$LINENO: checking for $ac_header" >&5
14432 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
14433 if eval "test \"\${$as_ac_Header+set}\" = set"; then
14434 echo $ECHO_N "(cached) $ECHO_C" >&6
14436 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
14437 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
14439 # Is the header compilable?
14440 echo "$as_me:$LINENO: checking $ac_header usability" >&5
14441 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
14442 cat >conftest.
$ac_ext <<_ACEOF
14445 cat confdefs.h
>>conftest.
$ac_ext
14446 cat >>conftest.
$ac_ext <<_ACEOF
14447 /* end confdefs.h. */
14448 $ac_includes_default
14449 #include <$ac_header>
14451 rm -f conftest.
$ac_objext
14452 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
14453 (eval $ac_compile) 2>conftest.er1
14455 grep -v '^ *+' conftest.er1
>conftest.err
14457 cat conftest.err
>&5
14458 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14459 (exit $ac_status); } &&
14460 { ac_try
='test -z "$ac_c_werror_flag"
14461 || test ! -s conftest.err'
14462 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14463 (eval $ac_try) 2>&5
14465 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14466 (exit $ac_status); }; } &&
14467 { ac_try
='test -s conftest.$ac_objext'
14468 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14469 (eval $ac_try) 2>&5
14471 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14472 (exit $ac_status); }; }; then
14473 ac_header_compiler
=yes
14475 echo "$as_me: failed program was:" >&5
14476 sed 's/^/| /' conftest.
$ac_ext >&5
14478 ac_header_compiler
=no
14480 rm -f conftest.err conftest.
$ac_objext conftest.
$ac_ext
14481 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
14482 echo "${ECHO_T}$ac_header_compiler" >&6
14484 # Is the header present?
14485 echo "$as_me:$LINENO: checking $ac_header presence" >&5
14486 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
14487 cat >conftest.
$ac_ext <<_ACEOF
14490 cat confdefs.h
>>conftest.
$ac_ext
14491 cat >>conftest.
$ac_ext <<_ACEOF
14492 /* end confdefs.h. */
14493 #include <$ac_header>
14495 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
14496 (eval $ac_cpp conftest.
$ac_ext) 2>conftest.er1
14498 grep -v '^ *+' conftest.er1
>conftest.err
14500 cat conftest.err
>&5
14501 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14502 (exit $ac_status); } >/dev
/null
; then
14503 if test -s conftest.err
; then
14504 ac_cpp_err
=$ac_c_preproc_warn_flag
14505 ac_cpp_err
=$ac_cpp_err$ac_c_werror_flag
14512 if test -z "$ac_cpp_err"; then
14513 ac_header_preproc
=yes
14515 echo "$as_me: failed program was:" >&5
14516 sed 's/^/| /' conftest.
$ac_ext >&5
14518 ac_header_preproc
=no
14520 rm -f conftest.err conftest.
$ac_ext
14521 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
14522 echo "${ECHO_T}$ac_header_preproc" >&6
14524 # So? What about this header?
14525 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
14527 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
14528 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
14529 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
14530 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
14531 ac_header_preproc
=yes
14534 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
14535 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
14536 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
14537 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
14538 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
14539 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
14540 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
14541 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
14542 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
14543 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
14544 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
14545 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
14548 ## ------------------------------------------ ##
14549 ## Report this to the AC_PACKAGE_NAME lists. ##
14550 ## ------------------------------------------ ##
14553 sed "s/^/$as_me: WARNING: /" >&2
14556 echo "$as_me:$LINENO: checking for $ac_header" >&5
14557 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
14558 if eval "test \"\${$as_ac_Header+set}\" = set"; then
14559 echo $ECHO_N "(cached) $ECHO_C" >&6
14561 eval "$as_ac_Header=\$ac_header_preproc"
14563 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
14564 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
14567 if test `eval echo '${'$as_ac_Header'}'` = yes; then
14568 cat >>confdefs.h
<<_ACEOF
14569 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
14577 for ac_func
in getpagesize
14579 as_ac_var
=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
14580 echo "$as_me:$LINENO: checking for $ac_func" >&5
14581 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
14582 if eval "test \"\${$as_ac_var+set}\" = set"; then
14583 echo $ECHO_N "(cached) $ECHO_C" >&6
14585 cat >conftest.
$ac_ext <<_ACEOF
14588 cat confdefs.h
>>conftest.
$ac_ext
14589 cat >>conftest.
$ac_ext <<_ACEOF
14590 /* end confdefs.h. */
14591 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
14592 For example, HP-UX 11i <limits.h> declares gettimeofday. */
14593 #define $ac_func innocuous_$ac_func
14595 /* System header to define __stub macros and hopefully few prototypes,
14596 which can conflict with char $ac_func (); below.
14597 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
14598 <limits.h> exists even on freestanding compilers. */
14601 # include <limits.h>
14603 # include <assert.h>
14608 /* Override any gcc2 internal prototype to avoid an error. */
14613 /* We use char because int might match the return type of a gcc2
14614 builtin and then its argument prototype would still apply. */
14616 /* The GNU C library defines this for functions which it implements
14617 to always fail with ENOSYS. Some functions are actually named
14618 something starting with __ and the normal name is an alias. */
14619 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
14622 char (*f) () = $ac_func;
14631 return f != $ac_func;
14636 rm -f conftest.
$ac_objext conftest
$ac_exeext
14637 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
14638 (eval $ac_link) 2>conftest.er1
14640 grep -v '^ *+' conftest.er1
>conftest.err
14642 cat conftest.err
>&5
14643 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14644 (exit $ac_status); } &&
14645 { ac_try
='test -z "$ac_c_werror_flag"
14646 || test ! -s conftest.err'
14647 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14648 (eval $ac_try) 2>&5
14650 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14651 (exit $ac_status); }; } &&
14652 { ac_try
='test -s conftest$ac_exeext'
14653 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14654 (eval $ac_try) 2>&5
14656 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14657 (exit $ac_status); }; }; then
14658 eval "$as_ac_var=yes"
14660 echo "$as_me: failed program was:" >&5
14661 sed 's/^/| /' conftest.
$ac_ext >&5
14663 eval "$as_ac_var=no"
14665 rm -f conftest.err conftest.
$ac_objext \
14666 conftest
$ac_exeext conftest.
$ac_ext
14668 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
14669 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
14670 if test `eval echo '${'$as_ac_var'}'` = yes; then
14671 cat >>confdefs.h
<<_ACEOF
14672 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
14678 echo "$as_me:$LINENO: checking for working mmap" >&5
14679 echo $ECHO_N "checking for working mmap... $ECHO_C" >&6
14680 if test "${ac_cv_func_mmap_fixed_mapped+set}" = set; then
14681 echo $ECHO_N "(cached) $ECHO_C" >&6
14683 if test "$cross_compiling" = yes; then
14684 ac_cv_func_mmap_fixed_mapped
=no
14686 cat >conftest.
$ac_ext <<_ACEOF
14689 cat confdefs.h
>>conftest.
$ac_ext
14690 cat >>conftest.
$ac_ext <<_ACEOF
14691 /* end confdefs.h. */
14692 $ac_includes_default
14693 /* malloc might have been renamed as rpl_malloc. */
14696 /* Thanks to Mike Haertel and Jim Avera for this test.
14697 Here is a matrix of mmap possibilities:
14698 mmap private not fixed
14699 mmap private fixed at somewhere currently unmapped
14700 mmap private fixed at somewhere already mapped
14701 mmap shared not fixed
14702 mmap shared fixed at somewhere currently unmapped
14703 mmap shared fixed at somewhere already mapped
14704 For private mappings, we should verify that changes cannot be read()
14705 back from the file, nor mmap's back from the file at a different
14706 address. (There have been systems where private was not correctly
14707 implemented like the infamous i386 svr4.0, and systems where the
14708 VM page cache was not coherent with the file system buffer cache
14709 like early versions of FreeBSD and possibly contemporary NetBSD.)
14710 For shared mappings, we should conversely verify that changes get
14711 propagated back to all the places they're supposed to be.
14713 Grep wants private fixed already mapped.
14714 The main things grep needs to know about mmap are:
14715 * does it exist and is it safe to write into the mmap'd area
14716 * how to use it (BSD variants) */
14719 #include <sys/mman.h>
14721 #if !STDC_HEADERS && !HAVE_STDLIB_H
14725 /* This mess was copied from the GNU getpagesize.h. */
14726 #if !HAVE_GETPAGESIZE
14727 /* Assume that all systems that can run configure have sys/param.h. */
14728 # if !HAVE_SYS_PARAM_H
14729 # define HAVE_SYS_PARAM_H 1
14732 # ifdef _SC_PAGESIZE
14733 # define getpagesize() sysconf(_SC_PAGESIZE)
14734 # else /* no _SC_PAGESIZE */
14735 # if HAVE_SYS_PARAM_H
14736 # include <sys/param.h>
14737 # ifdef EXEC_PAGESIZE
14738 # define getpagesize() EXEC_PAGESIZE
14739 # else /* no EXEC_PAGESIZE */
14741 # define getpagesize() NBPG * CLSIZE
14744 # endif /* no CLSIZE */
14745 # else /* no NBPG */
14747 # define getpagesize() NBPC
14748 # else /* no NBPC */
14750 # define getpagesize() PAGESIZE
14751 # endif /* PAGESIZE */
14752 # endif /* no NBPC */
14753 # endif /* no NBPG */
14754 # endif /* no EXEC_PAGESIZE */
14755 # else /* no HAVE_SYS_PARAM_H */
14756 # define getpagesize() 8192 /* punt totally */
14757 # endif /* no HAVE_SYS_PARAM_H */
14758 # endif /* no _SC_PAGESIZE */
14760 #endif /* no HAVE_GETPAGESIZE */
14765 char *data, *data2, *data3;
14769 pagesize = getpagesize ();
14771 /* First, make a file with some known garbage in it. */
14772 data = (char *) malloc (pagesize);
14775 for (i = 0; i < pagesize; ++i)
14776 *(data + i) = rand ();
14778 fd = creat ("conftest.mmap", 0600);
14781 if (write (fd, data, pagesize) != pagesize)
14785 /* Next, try to mmap the file at a fixed address which already has
14786 something else allocated at it. If we can, also make sure that
14787 we see the same garbage. */
14788 fd = open ("conftest.mmap", O_RDWR);
14791 data2 = (char *) malloc (2 * pagesize);
14794 data2 += (pagesize - ((long) data2 & (pagesize - 1))) & (pagesize - 1);
14795 if (data2 != mmap (data2, pagesize, PROT_READ | PROT_WRITE,
14796 MAP_PRIVATE | MAP_FIXED, fd, 0L))
14798 for (i = 0; i < pagesize; ++i)
14799 if (*(data + i) != *(data2 + i))
14802 /* Finally, make sure that changes to the mapped area do not
14803 percolate back to the file as seen by read(). (This is a bug on
14804 some variants of i386 svr4.0.) */
14805 for (i = 0; i < pagesize; ++i)
14806 *(data2 + i) = *(data2 + i) + 1;
14807 data3 = (char *) malloc (pagesize);
14810 if (read (fd, data3, pagesize) != pagesize)
14812 for (i = 0; i < pagesize; ++i)
14813 if (*(data + i) != *(data3 + i))
14819 rm -f conftest
$ac_exeext
14820 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
14821 (eval $ac_link) 2>&5
14823 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14824 (exit $ac_status); } && { ac_try
='./conftest$ac_exeext'
14825 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14826 (eval $ac_try) 2>&5
14828 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14829 (exit $ac_status); }; }; then
14830 ac_cv_func_mmap_fixed_mapped
=yes
14832 echo "$as_me: program exited with status $ac_status" >&5
14833 echo "$as_me: failed program was:" >&5
14834 sed 's/^/| /' conftest.
$ac_ext >&5
14836 ( exit $ac_status )
14837 ac_cv_func_mmap_fixed_mapped
=no
14839 rm -f core
*.core gmon.out bb.out conftest
$ac_exeext conftest.
$ac_objext conftest.
$ac_ext
14842 echo "$as_me:$LINENO: result: $ac_cv_func_mmap_fixed_mapped" >&5
14843 echo "${ECHO_T}$ac_cv_func_mmap_fixed_mapped" >&6
14844 if test $ac_cv_func_mmap_fixed_mapped = yes; then
14846 cat >>confdefs.h
<<\_ACEOF
14847 #define HAVE_MMAP 1
14851 rm -f conftest.mmap
14853 echo "$as_me:$LINENO: checking for pid_t" >&5
14854 echo $ECHO_N "checking for pid_t... $ECHO_C" >&6
14855 if test "${ac_cv_type_pid_t+set}" = set; then
14856 echo $ECHO_N "(cached) $ECHO_C" >&6
14858 cat >conftest.
$ac_ext <<_ACEOF
14861 cat confdefs.h
>>conftest.
$ac_ext
14862 cat >>conftest.
$ac_ext <<_ACEOF
14863 /* end confdefs.h. */
14864 $ac_includes_default
14870 if (sizeof (pid_t))
14876 rm -f conftest.
$ac_objext
14877 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
14878 (eval $ac_compile) 2>conftest.er1
14880 grep -v '^ *+' conftest.er1
>conftest.err
14882 cat conftest.err
>&5
14883 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14884 (exit $ac_status); } &&
14885 { ac_try
='test -z "$ac_c_werror_flag"
14886 || test ! -s conftest.err'
14887 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14888 (eval $ac_try) 2>&5
14890 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14891 (exit $ac_status); }; } &&
14892 { ac_try
='test -s conftest.$ac_objext'
14893 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14894 (eval $ac_try) 2>&5
14896 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14897 (exit $ac_status); }; }; then
14898 ac_cv_type_pid_t
=yes
14900 echo "$as_me: failed program was:" >&5
14901 sed 's/^/| /' conftest.
$ac_ext >&5
14903 ac_cv_type_pid_t
=no
14905 rm -f conftest.err conftest.
$ac_objext conftest.
$ac_ext
14907 echo "$as_me:$LINENO: result: $ac_cv_type_pid_t" >&5
14908 echo "${ECHO_T}$ac_cv_type_pid_t" >&6
14909 if test $ac_cv_type_pid_t = yes; then
14913 cat >>confdefs.h
<<_ACEOF
14921 for ac_header
in unistd.h vfork.h
14923 as_ac_Header
=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
14924 if eval "test \"\${$as_ac_Header+set}\" = set"; then
14925 echo "$as_me:$LINENO: checking for $ac_header" >&5
14926 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
14927 if eval "test \"\${$as_ac_Header+set}\" = set"; then
14928 echo $ECHO_N "(cached) $ECHO_C" >&6
14930 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
14931 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
14933 # Is the header compilable?
14934 echo "$as_me:$LINENO: checking $ac_header usability" >&5
14935 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
14936 cat >conftest.
$ac_ext <<_ACEOF
14939 cat confdefs.h
>>conftest.
$ac_ext
14940 cat >>conftest.
$ac_ext <<_ACEOF
14941 /* end confdefs.h. */
14942 $ac_includes_default
14943 #include <$ac_header>
14945 rm -f conftest.
$ac_objext
14946 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
14947 (eval $ac_compile) 2>conftest.er1
14949 grep -v '^ *+' conftest.er1
>conftest.err
14951 cat conftest.err
>&5
14952 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14953 (exit $ac_status); } &&
14954 { ac_try
='test -z "$ac_c_werror_flag"
14955 || test ! -s conftest.err'
14956 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14957 (eval $ac_try) 2>&5
14959 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14960 (exit $ac_status); }; } &&
14961 { ac_try
='test -s conftest.$ac_objext'
14962 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14963 (eval $ac_try) 2>&5
14965 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14966 (exit $ac_status); }; }; then
14967 ac_header_compiler
=yes
14969 echo "$as_me: failed program was:" >&5
14970 sed 's/^/| /' conftest.
$ac_ext >&5
14972 ac_header_compiler
=no
14974 rm -f conftest.err conftest.
$ac_objext conftest.
$ac_ext
14975 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
14976 echo "${ECHO_T}$ac_header_compiler" >&6
14978 # Is the header present?
14979 echo "$as_me:$LINENO: checking $ac_header presence" >&5
14980 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
14981 cat >conftest.
$ac_ext <<_ACEOF
14984 cat confdefs.h
>>conftest.
$ac_ext
14985 cat >>conftest.
$ac_ext <<_ACEOF
14986 /* end confdefs.h. */
14987 #include <$ac_header>
14989 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
14990 (eval $ac_cpp conftest.
$ac_ext) 2>conftest.er1
14992 grep -v '^ *+' conftest.er1
>conftest.err
14994 cat conftest.err
>&5
14995 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14996 (exit $ac_status); } >/dev
/null
; then
14997 if test -s conftest.err
; then
14998 ac_cpp_err
=$ac_c_preproc_warn_flag
14999 ac_cpp_err
=$ac_cpp_err$ac_c_werror_flag
15006 if test -z "$ac_cpp_err"; then
15007 ac_header_preproc
=yes
15009 echo "$as_me: failed program was:" >&5
15010 sed 's/^/| /' conftest.
$ac_ext >&5
15012 ac_header_preproc
=no
15014 rm -f conftest.err conftest.
$ac_ext
15015 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
15016 echo "${ECHO_T}$ac_header_preproc" >&6
15018 # So? What about this header?
15019 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
15021 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
15022 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
15023 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
15024 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
15025 ac_header_preproc
=yes
15028 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
15029 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
15030 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
15031 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
15032 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
15033 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
15034 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
15035 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
15036 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
15037 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
15038 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
15039 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
15042 ## ------------------------------------------ ##
15043 ## Report this to the AC_PACKAGE_NAME lists. ##
15044 ## ------------------------------------------ ##
15047 sed "s/^/$as_me: WARNING: /" >&2
15050 echo "$as_me:$LINENO: checking for $ac_header" >&5
15051 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
15052 if eval "test \"\${$as_ac_Header+set}\" = set"; then
15053 echo $ECHO_N "(cached) $ECHO_C" >&6
15055 eval "$as_ac_Header=\$ac_header_preproc"
15057 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
15058 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
15061 if test `eval echo '${'$as_ac_Header'}'` = yes; then
15062 cat >>confdefs.h
<<_ACEOF
15063 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
15072 for ac_func
in fork vfork
15074 as_ac_var
=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
15075 echo "$as_me:$LINENO: checking for $ac_func" >&5
15076 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
15077 if eval "test \"\${$as_ac_var+set}\" = set"; then
15078 echo $ECHO_N "(cached) $ECHO_C" >&6
15080 cat >conftest.
$ac_ext <<_ACEOF
15083 cat confdefs.h
>>conftest.
$ac_ext
15084 cat >>conftest.
$ac_ext <<_ACEOF
15085 /* end confdefs.h. */
15086 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
15087 For example, HP-UX 11i <limits.h> declares gettimeofday. */
15088 #define $ac_func innocuous_$ac_func
15090 /* System header to define __stub macros and hopefully few prototypes,
15091 which can conflict with char $ac_func (); below.
15092 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
15093 <limits.h> exists even on freestanding compilers. */
15096 # include <limits.h>
15098 # include <assert.h>
15103 /* Override any gcc2 internal prototype to avoid an error. */
15108 /* We use char because int might match the return type of a gcc2
15109 builtin and then its argument prototype would still apply. */
15111 /* The GNU C library defines this for functions which it implements
15112 to always fail with ENOSYS. Some functions are actually named
15113 something starting with __ and the normal name is an alias. */
15114 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
15117 char (*f) () = $ac_func;
15126 return f != $ac_func;
15131 rm -f conftest.
$ac_objext conftest
$ac_exeext
15132 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
15133 (eval $ac_link) 2>conftest.er1
15135 grep -v '^ *+' conftest.er1
>conftest.err
15137 cat conftest.err
>&5
15138 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15139 (exit $ac_status); } &&
15140 { ac_try
='test -z "$ac_c_werror_flag"
15141 || test ! -s conftest.err'
15142 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15143 (eval $ac_try) 2>&5
15145 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15146 (exit $ac_status); }; } &&
15147 { ac_try
='test -s conftest$ac_exeext'
15148 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15149 (eval $ac_try) 2>&5
15151 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15152 (exit $ac_status); }; }; then
15153 eval "$as_ac_var=yes"
15155 echo "$as_me: failed program was:" >&5
15156 sed 's/^/| /' conftest.
$ac_ext >&5
15158 eval "$as_ac_var=no"
15160 rm -f conftest.err conftest.
$ac_objext \
15161 conftest
$ac_exeext conftest.
$ac_ext
15163 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
15164 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
15165 if test `eval echo '${'$as_ac_var'}'` = yes; then
15166 cat >>confdefs.h
<<_ACEOF
15167 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
15173 if test "x$ac_cv_func_fork" = xyes
; then
15174 echo "$as_me:$LINENO: checking for working fork" >&5
15175 echo $ECHO_N "checking for working fork... $ECHO_C" >&6
15176 if test "${ac_cv_func_fork_works+set}" = set; then
15177 echo $ECHO_N "(cached) $ECHO_C" >&6
15179 if test "$cross_compiling" = yes; then
15180 ac_cv_func_fork_works
=cross
15182 cat >conftest.
$ac_ext <<_ACEOF
15183 /* By Ruediger Kuhlmann. */
15184 #include <sys/types.h>
15186 # include <unistd.h>
15188 /* Some systems only have a dummy stub for fork() */
15196 rm -f conftest
$ac_exeext
15197 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
15198 (eval $ac_link) 2>&5
15200 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15201 (exit $ac_status); } && { ac_try
='./conftest$ac_exeext'
15202 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15203 (eval $ac_try) 2>&5
15205 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15206 (exit $ac_status); }; }; then
15207 ac_cv_func_fork_works
=yes
15209 echo "$as_me: program exited with status $ac_status" >&5
15210 echo "$as_me: failed program was:" >&5
15211 sed 's/^/| /' conftest.
$ac_ext >&5
15213 ( exit $ac_status )
15214 ac_cv_func_fork_works
=no
15216 rm -f core
*.core gmon.out bb.out conftest
$ac_exeext conftest.
$ac_objext conftest.
$ac_ext
15219 echo "$as_me:$LINENO: result: $ac_cv_func_fork_works" >&5
15220 echo "${ECHO_T}$ac_cv_func_fork_works" >&6
15223 ac_cv_func_fork_works
=$ac_cv_func_fork
15225 if test "x$ac_cv_func_fork_works" = xcross
; then
15227 *-*-amigaos* |
*-*-msdosdjgpp*)
15228 # Override, as these systems have only a dummy fork() stub
15229 ac_cv_func_fork_works
=no
15232 ac_cv_func_fork_works
=yes
15235 { echo "$as_me:$LINENO: WARNING: result $ac_cv_func_fork_works guessed because of cross compilation" >&5
15236 echo "$as_me: WARNING: result $ac_cv_func_fork_works guessed because of cross compilation" >&2;}
15238 ac_cv_func_vfork_works
=$ac_cv_func_vfork
15239 if test "x$ac_cv_func_vfork" = xyes
; then
15240 echo "$as_me:$LINENO: checking for working vfork" >&5
15241 echo $ECHO_N "checking for working vfork... $ECHO_C" >&6
15242 if test "${ac_cv_func_vfork_works+set}" = set; then
15243 echo $ECHO_N "(cached) $ECHO_C" >&6
15245 if test "$cross_compiling" = yes; then
15246 ac_cv_func_vfork_works
=cross
15248 cat >conftest.
$ac_ext <<_ACEOF
15251 cat confdefs.h
>>conftest.
$ac_ext
15252 cat >>conftest.
$ac_ext <<_ACEOF
15253 /* end confdefs.h. */
15254 /* Thanks to Paul Eggert for this test. */
15256 #include <stdlib.h>
15257 #include <sys/types.h>
15258 #include <sys/stat.h>
15259 #include <sys/wait.h>
15261 # include <unistd.h>
15264 # include <vfork.h>
15266 /* On some sparc systems, changes by the child to local and incoming
15267 argument registers are propagated back to the parent. The compiler
15268 is told about this with #include <vfork.h>, but some compilers
15269 (e.g. gcc -O) don't grok <vfork.h>. Test for this by using a
15270 static variable whose address is put into a register that is
15271 clobbered by the vfork. */
15274 sparc_address_test (int arg)
15276 sparc_address_test (arg) int arg;
15279 static pid_t child;
15297 pid_t parent = getpid ();
15300 sparc_address_test (0);
15305 /* Here is another test for sparc vfork register problems. This
15306 test uses lots of local variables, at least as many local
15307 variables as main has allocated so far including compiler
15308 temporaries. 4 locals are enough for gcc 1.40.3 on a Solaris
15309 4.1.3 sparc, but we use 8 to be safe. A buggy compiler should
15310 reuse the register of parent for one of the local variables,
15311 since it will think that parent can't possibly be used any more
15312 in this routine. Assigning to the local variable will thus
15313 munge parent in the parent process. */
15315 p = getpid(), p1 = getpid(), p2 = getpid(), p3 = getpid(),
15316 p4 = getpid(), p5 = getpid(), p6 = getpid(), p7 = getpid();
15317 /* Convince the compiler that p..p7 are live; otherwise, it might
15318 use the same hardware register for all 8 local variables. */
15319 if (p != p1 || p != p2 || p != p3 || p != p4
15320 || p != p5 || p != p6 || p != p7)
15323 /* On some systems (e.g. IRIX 3.3), vfork doesn't separate parent
15324 from child file descriptors. If the child closes a descriptor
15325 before it execs or exits, this munges the parent's descriptor
15326 as well. Test for this by closing stdout in the child. */
15327 _exit(close(fileno(stdout)) != 0);
15332 while (wait(&status) != child)
15335 /* Was there some problem with vforking? */
15338 /* Did the child fail? (This shouldn't happen.) */
15341 /* Did the vfork/compiler bug occur? */
15342 || parent != getpid()
15344 /* Did the file descriptor bug occur? */
15345 || fstat(fileno(stdout), &st) != 0
15350 rm -f conftest
$ac_exeext
15351 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
15352 (eval $ac_link) 2>&5
15354 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15355 (exit $ac_status); } && { ac_try
='./conftest$ac_exeext'
15356 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15357 (eval $ac_try) 2>&5
15359 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15360 (exit $ac_status); }; }; then
15361 ac_cv_func_vfork_works
=yes
15363 echo "$as_me: program exited with status $ac_status" >&5
15364 echo "$as_me: failed program was:" >&5
15365 sed 's/^/| /' conftest.
$ac_ext >&5
15367 ( exit $ac_status )
15368 ac_cv_func_vfork_works
=no
15370 rm -f core
*.core gmon.out bb.out conftest
$ac_exeext conftest.
$ac_objext conftest.
$ac_ext
15373 echo "$as_me:$LINENO: result: $ac_cv_func_vfork_works" >&5
15374 echo "${ECHO_T}$ac_cv_func_vfork_works" >&6
15377 if test "x$ac_cv_func_fork_works" = xcross
; then
15378 ac_cv_func_vfork_works
=$ac_cv_func_vfork
15379 { echo "$as_me:$LINENO: WARNING: result $ac_cv_func_vfork_works guessed because of cross compilation" >&5
15380 echo "$as_me: WARNING: result $ac_cv_func_vfork_works guessed because of cross compilation" >&2;}
15383 if test "x$ac_cv_func_vfork_works" = xyes
; then
15385 cat >>confdefs.h
<<\_ACEOF
15386 #define HAVE_WORKING_VFORK 1
15391 cat >>confdefs.h
<<\_ACEOF
15396 if test "x$ac_cv_func_fork_works" = xyes
; then
15398 cat >>confdefs.h
<<\_ACEOF
15399 #define HAVE_WORKING_FORK 1
15423 for ac_func
in canonicalize_file_name realpath getrusage getuid \
15424 getgid poll pread64 sbrk setpgid setpgrp setsid \
15425 sigaction sigprocmask sigsetmask socketpair syscall \
15426 ttrace wborder setlocale
15428 as_ac_var
=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
15429 echo "$as_me:$LINENO: checking for $ac_func" >&5
15430 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
15431 if eval "test \"\${$as_ac_var+set}\" = set"; then
15432 echo $ECHO_N "(cached) $ECHO_C" >&6
15434 cat >conftest.
$ac_ext <<_ACEOF
15437 cat confdefs.h
>>conftest.
$ac_ext
15438 cat >>conftest.
$ac_ext <<_ACEOF
15439 /* end confdefs.h. */
15440 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
15441 For example, HP-UX 11i <limits.h> declares gettimeofday. */
15442 #define $ac_func innocuous_$ac_func
15444 /* System header to define __stub macros and hopefully few prototypes,
15445 which can conflict with char $ac_func (); below.
15446 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
15447 <limits.h> exists even on freestanding compilers. */
15450 # include <limits.h>
15452 # include <assert.h>
15457 /* Override any gcc2 internal prototype to avoid an error. */
15462 /* We use char because int might match the return type of a gcc2
15463 builtin and then its argument prototype would still apply. */
15465 /* The GNU C library defines this for functions which it implements
15466 to always fail with ENOSYS. Some functions are actually named
15467 something starting with __ and the normal name is an alias. */
15468 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
15471 char (*f) () = $ac_func;
15480 return f != $ac_func;
15485 rm -f conftest.
$ac_objext conftest
$ac_exeext
15486 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
15487 (eval $ac_link) 2>conftest.er1
15489 grep -v '^ *+' conftest.er1
>conftest.err
15491 cat conftest.err
>&5
15492 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15493 (exit $ac_status); } &&
15494 { ac_try
='test -z "$ac_c_werror_flag"
15495 || test ! -s conftest.err'
15496 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15497 (eval $ac_try) 2>&5
15499 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15500 (exit $ac_status); }; } &&
15501 { ac_try
='test -s conftest$ac_exeext'
15502 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15503 (eval $ac_try) 2>&5
15505 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15506 (exit $ac_status); }; }; then
15507 eval "$as_ac_var=yes"
15509 echo "$as_me: failed program was:" >&5
15510 sed 's/^/| /' conftest.
$ac_ext >&5
15512 eval "$as_ac_var=no"
15514 rm -f conftest.err conftest.
$ac_objext \
15515 conftest
$ac_exeext conftest.
$ac_ext
15517 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
15518 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
15519 if test `eval echo '${'$as_ac_var'}'` = yes; then
15520 cat >>confdefs.h
<<_ACEOF
15521 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
15528 # Check the return and argument types of ptrace. No canned test for
15529 # this, so roll our own.
15530 gdb_ptrace_headers
='
15531 #if HAVE_SYS_TYPES_H
15532 # include <sys/types.h>
15534 #if HAVE_SYS_PTRACE_H
15535 # include <sys/ptrace.h>
15538 # include <unistd.h>
15541 # There is no point in checking if we don't have a prototype.
15542 echo "$as_me:$LINENO: checking whether ptrace is declared" >&5
15543 echo $ECHO_N "checking whether ptrace is declared... $ECHO_C" >&6
15544 if test "${ac_cv_have_decl_ptrace+set}" = set; then
15545 echo $ECHO_N "(cached) $ECHO_C" >&6
15547 cat >conftest.
$ac_ext <<_ACEOF
15550 cat confdefs.h
>>conftest.
$ac_ext
15551 cat >>conftest.
$ac_ext <<_ACEOF
15552 /* end confdefs.h. */
15553 $gdb_ptrace_headers
15559 char *p = (char *) ptrace;
15566 rm -f conftest.
$ac_objext
15567 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
15568 (eval $ac_compile) 2>conftest.er1
15570 grep -v '^ *+' conftest.er1
>conftest.err
15572 cat conftest.err
>&5
15573 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15574 (exit $ac_status); } &&
15575 { ac_try
='test -z "$ac_c_werror_flag"
15576 || test ! -s conftest.err'
15577 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15578 (eval $ac_try) 2>&5
15580 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15581 (exit $ac_status); }; } &&
15582 { ac_try
='test -s conftest.$ac_objext'
15583 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15584 (eval $ac_try) 2>&5
15586 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15587 (exit $ac_status); }; }; then
15588 ac_cv_have_decl_ptrace
=yes
15590 echo "$as_me: failed program was:" >&5
15591 sed 's/^/| /' conftest.
$ac_ext >&5
15593 ac_cv_have_decl_ptrace
=no
15595 rm -f conftest.err conftest.
$ac_objext conftest.
$ac_ext
15597 echo "$as_me:$LINENO: result: $ac_cv_have_decl_ptrace" >&5
15598 echo "${ECHO_T}$ac_cv_have_decl_ptrace" >&6
15599 if test $ac_cv_have_decl_ptrace = yes; then
15601 cat >>confdefs.h
<<_ACEOF
15602 #define HAVE_DECL_PTRACE 1
15607 cat >>confdefs.h
<<_ACEOF
15608 #define HAVE_DECL_PTRACE 0
15612 : ${gdb_cv_func_ptrace_ret='int'}
15613 : ${gdb_cv_func_ptrace_args='int,int,long,long'}
15618 # Check return type. Varargs (used on GNU/Linux) conflict with the
15619 # empty argument list, so check for that explicitly.
15620 echo "$as_me:$LINENO: checking return type of ptrace" >&5
15621 echo $ECHO_N "checking return type of ptrace... $ECHO_C" >&6
15622 if test "${gdb_cv_func_ptrace_ret+set}" = set; then
15623 echo $ECHO_N "(cached) $ECHO_C" >&6
15625 cat >conftest.
$ac_ext <<_ACEOF
15628 cat confdefs.h
>>conftest.
$ac_ext
15629 cat >>conftest.
$ac_ext <<_ACEOF
15630 /* end confdefs.h. */
15631 $gdb_ptrace_headers
15635 extern long ptrace (enum __ptrace_request, ...);
15640 rm -f conftest.
$ac_objext
15641 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
15642 (eval $ac_compile) 2>conftest.er1
15644 grep -v '^ *+' conftest.er1
>conftest.err
15646 cat conftest.err
>&5
15647 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15648 (exit $ac_status); } &&
15649 { ac_try
='test -z "$ac_c_werror_flag"
15650 || test ! -s conftest.err'
15651 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15652 (eval $ac_try) 2>&5
15654 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15655 (exit $ac_status); }; } &&
15656 { ac_try
='test -s conftest.$ac_objext'
15657 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15658 (eval $ac_try) 2>&5
15660 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15661 (exit $ac_status); }; }; then
15662 gdb_cv_func_ptrace_ret
='long'
15664 echo "$as_me: failed program was:" >&5
15665 sed 's/^/| /' conftest.
$ac_ext >&5
15667 cat >conftest.
$ac_ext <<_ACEOF
15670 cat confdefs.h
>>conftest.
$ac_ext
15671 cat >>conftest.
$ac_ext <<_ACEOF
15672 /* end confdefs.h. */
15673 $gdb_ptrace_headers
15677 extern int ptrace ();
15682 rm -f conftest.
$ac_objext
15683 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
15684 (eval $ac_compile) 2>conftest.er1
15686 grep -v '^ *+' conftest.er1
>conftest.err
15688 cat conftest.err
>&5
15689 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15690 (exit $ac_status); } &&
15691 { ac_try
='test -z "$ac_c_werror_flag"
15692 || test ! -s conftest.err'
15693 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15694 (eval $ac_try) 2>&5
15696 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15697 (exit $ac_status); }; } &&
15698 { ac_try
='test -s conftest.$ac_objext'
15699 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15700 (eval $ac_try) 2>&5
15702 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15703 (exit $ac_status); }; }; then
15704 gdb_cv_func_ptrace_ret
='int'
15706 echo "$as_me: failed program was:" >&5
15707 sed 's/^/| /' conftest.
$ac_ext >&5
15709 gdb_cv_func_ptrace_ret
='long'
15711 rm -f conftest.err conftest.
$ac_objext conftest.
$ac_ext
15713 rm -f conftest.err conftest.
$ac_objext conftest.
$ac_ext
15715 echo "$as_me:$LINENO: result: $gdb_cv_func_ptrace_ret" >&5
15716 echo "${ECHO_T}$gdb_cv_func_ptrace_ret" >&6
15718 cat >>confdefs.h
<<_ACEOF
15719 #define PTRACE_TYPE_RET $gdb_cv_func_ptrace_ret
15722 # Check argument types.
15723 echo "$as_me:$LINENO: checking types of arguments for ptrace" >&5
15724 echo $ECHO_N "checking types of arguments for ptrace... $ECHO_C" >&6
15725 if test "${gdb_cv_func_ptrace_args+set}" = set; then
15726 echo $ECHO_N "(cached) $ECHO_C" >&6
15729 cat >conftest.
$ac_ext <<_ACEOF
15732 cat confdefs.h
>>conftest.
$ac_ext
15733 cat >>conftest.
$ac_ext <<_ACEOF
15734 /* end confdefs.h. */
15735 $gdb_ptrace_headers
15739 extern long ptrace (enum __ptrace_request, ...);
15744 rm -f conftest.
$ac_objext
15745 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
15746 (eval $ac_compile) 2>conftest.er1
15748 grep -v '^ *+' conftest.er1
>conftest.err
15750 cat conftest.err
>&5
15751 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15752 (exit $ac_status); } &&
15753 { ac_try
='test -z "$ac_c_werror_flag"
15754 || test ! -s conftest.err'
15755 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15756 (eval $ac_try) 2>&5
15758 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15759 (exit $ac_status); }; } &&
15760 { ac_try
='test -s conftest.$ac_objext'
15761 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15762 (eval $ac_try) 2>&5
15764 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15765 (exit $ac_status); }; }; then
15766 gdb_cv_func_ptrace_args
='int,int,long,long'
15768 echo "$as_me: failed program was:" >&5
15769 sed 's/^/| /' conftest.
$ac_ext >&5
15772 for gdb_arg1
in 'int' 'long'; do
15773 for gdb_arg2
in 'pid_t' 'int' 'long'; do
15774 for gdb_arg3
in 'int *' 'caddr_t' 'int' 'long' 'void *'; do
15775 for gdb_arg4
in 'int' 'long'; do
15776 cat >conftest.
$ac_ext <<_ACEOF
15779 cat confdefs.h
>>conftest.
$ac_ext
15780 cat >>conftest.
$ac_ext <<_ACEOF
15781 /* end confdefs.h. */
15782 $gdb_ptrace_headers
15787 extern $gdb_cv_func_ptrace_ret
15788 ptrace ($gdb_arg1, $gdb_arg2, $gdb_arg3, $gdb_arg4);
15794 rm -f conftest.
$ac_objext
15795 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
15796 (eval $ac_compile) 2>conftest.er1
15798 grep -v '^ *+' conftest.er1
>conftest.err
15800 cat conftest.err
>&5
15801 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15802 (exit $ac_status); } &&
15803 { ac_try
='test -z "$ac_c_werror_flag"
15804 || test ! -s conftest.err'
15805 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15806 (eval $ac_try) 2>&5
15808 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15809 (exit $ac_status); }; } &&
15810 { ac_try
='test -s conftest.$ac_objext'
15811 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15812 (eval $ac_try) 2>&5
15814 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15815 (exit $ac_status); }; }; then
15816 gdb_cv_func_ptrace_args
="$gdb_arg1,$gdb_arg2,$gdb_arg3,$gdb_arg4";
15819 echo "$as_me: failed program was:" >&5
15820 sed 's/^/| /' conftest.
$ac_ext >&5
15823 rm -f conftest.err conftest.
$ac_objext conftest.
$ac_ext
15824 for gdb_arg5
in 'int *' 'int' 'long'; do
15825 cat >conftest.
$ac_ext <<_ACEOF
15828 cat confdefs.h
>>conftest.
$ac_ext
15829 cat >>conftest.
$ac_ext <<_ACEOF
15830 /* end confdefs.h. */
15831 $gdb_ptrace_headers
15836 extern $gdb_cv_func_ptrace_ret
15837 ptrace ($gdb_arg1, $gdb_arg2, $gdb_arg3, $gdb_arg4, $gdb_arg5);
15843 rm -f conftest.
$ac_objext
15844 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
15845 (eval $ac_compile) 2>conftest.er1
15847 grep -v '^ *+' conftest.er1
>conftest.err
15849 cat conftest.err
>&5
15850 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15851 (exit $ac_status); } &&
15852 { ac_try
='test -z "$ac_c_werror_flag"
15853 || test ! -s conftest.err'
15854 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15855 (eval $ac_try) 2>&5
15857 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15858 (exit $ac_status); }; } &&
15859 { ac_try
='test -s conftest.$ac_objext'
15860 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15861 (eval $ac_try) 2>&5
15863 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15864 (exit $ac_status); }; }; then
15866 gdb_cv_func_ptrace_args
="$gdb_arg1,$gdb_arg2,$gdb_arg3,$gdb_arg4,$gdb_arg5";
15869 echo "$as_me: failed program was:" >&5
15870 sed 's/^/| /' conftest.
$ac_ext >&5
15873 rm -f conftest.err conftest.
$ac_objext conftest.
$ac_ext
15879 # Provide a safe default value.
15880 : ${gdb_cv_func_ptrace_args='int,int,long,long'}
15883 rm -f conftest.err conftest.
$ac_objext conftest.
$ac_ext
15885 echo "$as_me:$LINENO: result: $gdb_cv_func_ptrace_args" >&5
15886 echo "${ECHO_T}$gdb_cv_func_ptrace_args" >&6
15887 ac_save_IFS
=$IFS; IFS
=','
15888 set dummy
`echo "$gdb_cv_func_ptrace_args" | sed 's/\*/\*/g'`
15892 cat >>confdefs.h
<<_ACEOF
15893 #define PTRACE_TYPE_ARG3 $3
15896 if test -n "$5"; then
15898 cat >>confdefs.h
<<_ACEOF
15899 #define PTRACE_TYPE_ARG5 $5
15904 if test "$cross_compiling" = no
; then
15905 echo "$as_me:$LINENO: checking whether setpgrp takes no argument" >&5
15906 echo $ECHO_N "checking whether setpgrp takes no argument... $ECHO_C" >&6
15907 if test "${ac_cv_func_setpgrp_void+set}" = set; then
15908 echo $ECHO_N "(cached) $ECHO_C" >&6
15910 if test "$cross_compiling" = yes; then
15911 { { echo "$as_me:$LINENO: error: cannot check setpgrp when cross compiling" >&5
15912 echo "$as_me: error: cannot check setpgrp when cross compiling" >&2;}
15913 { (exit 1); exit 1; }; }
15915 cat >conftest.
$ac_ext <<_ACEOF
15918 cat confdefs.h
>>conftest.
$ac_ext
15919 cat >>conftest.
$ac_ext <<_ACEOF
15920 /* end confdefs.h. */
15922 # include <unistd.h>
15928 /* If this system has a BSD-style setpgrp which takes arguments,
15929 setpgrp(1, 1) will fail with ESRCH and return -1, in that case
15930 exit successfully. */
15931 exit (setpgrp (1,1) == -1 ? 0 : 1);
15936 rm -f conftest
$ac_exeext
15937 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
15938 (eval $ac_link) 2>&5
15940 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15941 (exit $ac_status); } && { ac_try
='./conftest$ac_exeext'
15942 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15943 (eval $ac_try) 2>&5
15945 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15946 (exit $ac_status); }; }; then
15947 ac_cv_func_setpgrp_void
=no
15949 echo "$as_me: program exited with status $ac_status" >&5
15950 echo "$as_me: failed program was:" >&5
15951 sed 's/^/| /' conftest.
$ac_ext >&5
15953 ( exit $ac_status )
15954 ac_cv_func_setpgrp_void
=yes
15956 rm -f core
*.core gmon.out bb.out conftest
$ac_exeext conftest.
$ac_objext conftest.
$ac_ext
15959 echo "$as_me:$LINENO: result: $ac_cv_func_setpgrp_void" >&5
15960 echo "${ECHO_T}$ac_cv_func_setpgrp_void" >&6
15961 if test $ac_cv_func_setpgrp_void = yes; then
15963 cat >>confdefs.h
<<\_ACEOF
15964 #define SETPGRP_VOID 1
15970 echo "$as_me:$LINENO: checking whether setpgrp takes no argument" >&5
15971 echo $ECHO_N "checking whether setpgrp takes no argument... $ECHO_C" >&6
15972 if test "${ac_cv_func_setpgrp_void+set}" = set; then
15973 echo $ECHO_N "(cached) $ECHO_C" >&6
15975 cat >conftest.
$ac_ext <<_ACEOF
15978 cat confdefs.h
>>conftest.
$ac_ext
15979 cat >>conftest.
$ac_ext <<_ACEOF
15980 /* end confdefs.h. */
15982 #include <unistd.h>
15988 if (setpgrp(1,1) == -1)
15997 rm -f conftest.
$ac_objext
15998 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
15999 (eval $ac_compile) 2>conftest.er1
16001 grep -v '^ *+' conftest.er1
>conftest.err
16003 cat conftest.err
>&5
16004 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16005 (exit $ac_status); } &&
16006 { ac_try
='test -z "$ac_c_werror_flag"
16007 || test ! -s conftest.err'
16008 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16009 (eval $ac_try) 2>&5
16011 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16012 (exit $ac_status); }; } &&
16013 { ac_try
='test -s conftest.$ac_objext'
16014 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16015 (eval $ac_try) 2>&5
16017 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16018 (exit $ac_status); }; }; then
16019 ac_cv_func_setpgrp_void
=no
16021 echo "$as_me: failed program was:" >&5
16022 sed 's/^/| /' conftest.
$ac_ext >&5
16024 ac_cv_func_setpgrp_void
=yes
16026 rm -f conftest.err conftest.
$ac_objext conftest.
$ac_ext
16028 echo "$as_me:$LINENO: result: $ac_cv_func_setpgrp_void" >&5
16029 echo "${ECHO_T}$ac_cv_func_setpgrp_void" >&6
16030 if test $ac_cv_func_setpgrp_void = yes; then
16031 cat >>confdefs.h
<<\_ACEOF
16032 #define SETPGRP_VOID 1
16038 # Check if sigsetjmp is available. Using AC_CHECK_FUNCS won't do
16039 # since sigsetjmp might only be defined as a macro.
16040 echo "$as_me:$LINENO: checking for sigsetjmp" >&5
16041 echo $ECHO_N "checking for sigsetjmp... $ECHO_C" >&6
16042 if test "${gdb_cv_func_sigsetjmp+set}" = set; then
16043 echo $ECHO_N "(cached) $ECHO_C" >&6
16045 cat >conftest.
$ac_ext <<_ACEOF
16048 cat confdefs.h
>>conftest.
$ac_ext
16049 cat >>conftest.
$ac_ext <<_ACEOF
16050 /* end confdefs.h. */
16052 #include <setjmp.h>
16057 sigjmp_buf env; while (! sigsetjmp (env, 1)) siglongjmp (env, 1);
16062 rm -f conftest.
$ac_objext
16063 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
16064 (eval $ac_compile) 2>conftest.er1
16066 grep -v '^ *+' conftest.er1
>conftest.err
16068 cat conftest.err
>&5
16069 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16070 (exit $ac_status); } &&
16071 { ac_try
='test -z "$ac_c_werror_flag"
16072 || test ! -s conftest.err'
16073 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16074 (eval $ac_try) 2>&5
16076 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16077 (exit $ac_status); }; } &&
16078 { ac_try
='test -s conftest.$ac_objext'
16079 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16080 (eval $ac_try) 2>&5
16082 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16083 (exit $ac_status); }; }; then
16084 gdb_cv_func_sigsetjmp
=yes
16086 echo "$as_me: failed program was:" >&5
16087 sed 's/^/| /' conftest.
$ac_ext >&5
16089 gdb_cv_func_sigsetjmp
=no
16091 rm -f conftest.err conftest.
$ac_objext conftest.
$ac_ext
16093 echo "$as_me:$LINENO: result: $gdb_cv_func_sigsetjmp" >&5
16094 echo "${ECHO_T}$gdb_cv_func_sigsetjmp" >&6
16095 if test $gdb_cv_func_sigsetjmp = yes; then
16097 cat >>confdefs.h
<<\_ACEOF
16098 #define HAVE_SIGSETJMP 1
16103 # Assume we'll default to using the included libiberty regex.
16104 gdb_use_included_regex
=yes
16106 # However, if the system regex is GNU regex, then default to *not*
16107 # using the included regex.
16108 echo "$as_me:$LINENO: checking for GNU regex" >&5
16109 echo $ECHO_N "checking for GNU regex... $ECHO_C" >&6
16110 if test "${gdb_cv_have_gnu_regex+set}" = set; then
16111 echo $ECHO_N "(cached) $ECHO_C" >&6
16113 cat >conftest.
$ac_ext <<_ACEOF
16116 cat confdefs.h
>>conftest.
$ac_ext
16117 cat >>conftest.
$ac_ext <<_ACEOF
16118 /* end confdefs.h. */
16119 #include <gnu-versions.h>
16123 #define REGEX_INTERFACE_VERSION 1
16124 #if _GNU_REGEX_INTERFACE_VERSION != REGEX_INTERFACE_VERSION
16125 # error "Version mismatch"
16131 rm -f conftest.
$ac_objext
16132 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
16133 (eval $ac_compile) 2>conftest.er1
16135 grep -v '^ *+' conftest.er1
>conftest.err
16137 cat conftest.err
>&5
16138 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16139 (exit $ac_status); } &&
16140 { ac_try
='test -z "$ac_c_werror_flag"
16141 || test ! -s conftest.err'
16142 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16143 (eval $ac_try) 2>&5
16145 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16146 (exit $ac_status); }; } &&
16147 { ac_try
='test -s conftest.$ac_objext'
16148 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16149 (eval $ac_try) 2>&5
16151 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16152 (exit $ac_status); }; }; then
16153 gdb_cv_have_gnu_regex
=yes
16155 echo "$as_me: failed program was:" >&5
16156 sed 's/^/| /' conftest.
$ac_ext >&5
16158 gdb_cv_have_gnu_regex
=no
16160 rm -f conftest.err conftest.
$ac_objext conftest.
$ac_ext
16162 echo "$as_me:$LINENO: result: $gdb_cv_have_gnu_regex" >&5
16163 echo "${ECHO_T}$gdb_cv_have_gnu_regex" >&6
16164 if test $gdb_cv_have_gnu_regex = yes; then
16165 gdb_use_included_regex
=no
16169 # Check whether --with-included-regex or --without-included-regex was given.
16170 if test "${with_included_regex+set}" = set; then
16171 withval
="$with_included_regex"
16172 gdb_with_regex
=$withval
16174 gdb_with_regex
=$gdb_use_included_regex
16176 if test "$gdb_with_regex" = yes; then
16178 cat >>confdefs.h
<<\_ACEOF
16179 #define USE_INCLUDED_REGEX 1
16184 # Check if <sys/proc.h> defines `struct thread' with a td_pcb member.
16185 echo "$as_me:$LINENO: checking for struct thread.td_pcb" >&5
16186 echo $ECHO_N "checking for struct thread.td_pcb... $ECHO_C" >&6
16187 if test "${ac_cv_member_struct_thread_td_pcb+set}" = set; then
16188 echo $ECHO_N "(cached) $ECHO_C" >&6
16190 cat >conftest.
$ac_ext <<_ACEOF
16193 cat confdefs.h
>>conftest.
$ac_ext
16194 cat >>conftest.
$ac_ext <<_ACEOF
16195 /* end confdefs.h. */
16196 #include <sys/param.h>
16197 #include <sys/proc.h>
16203 static struct thread ac_aggr;
16204 if (ac_aggr.td_pcb)
16210 rm -f conftest.
$ac_objext
16211 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
16212 (eval $ac_compile) 2>conftest.er1
16214 grep -v '^ *+' conftest.er1
>conftest.err
16216 cat conftest.err
>&5
16217 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16218 (exit $ac_status); } &&
16219 { ac_try
='test -z "$ac_c_werror_flag"
16220 || test ! -s conftest.err'
16221 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16222 (eval $ac_try) 2>&5
16224 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16225 (exit $ac_status); }; } &&
16226 { ac_try
='test -s conftest.$ac_objext'
16227 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16228 (eval $ac_try) 2>&5
16230 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16231 (exit $ac_status); }; }; then
16232 ac_cv_member_struct_thread_td_pcb
=yes
16234 echo "$as_me: failed program was:" >&5
16235 sed 's/^/| /' conftest.
$ac_ext >&5
16237 cat >conftest.
$ac_ext <<_ACEOF
16240 cat confdefs.h
>>conftest.
$ac_ext
16241 cat >>conftest.
$ac_ext <<_ACEOF
16242 /* end confdefs.h. */
16243 #include <sys/param.h>
16244 #include <sys/proc.h>
16250 static struct thread ac_aggr;
16251 if (sizeof ac_aggr.td_pcb)
16257 rm -f conftest.
$ac_objext
16258 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
16259 (eval $ac_compile) 2>conftest.er1
16261 grep -v '^ *+' conftest.er1
>conftest.err
16263 cat conftest.err
>&5
16264 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16265 (exit $ac_status); } &&
16266 { ac_try
='test -z "$ac_c_werror_flag"
16267 || test ! -s conftest.err'
16268 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16269 (eval $ac_try) 2>&5
16271 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16272 (exit $ac_status); }; } &&
16273 { ac_try
='test -s conftest.$ac_objext'
16274 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16275 (eval $ac_try) 2>&5
16277 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16278 (exit $ac_status); }; }; then
16279 ac_cv_member_struct_thread_td_pcb
=yes
16281 echo "$as_me: failed program was:" >&5
16282 sed 's/^/| /' conftest.
$ac_ext >&5
16284 ac_cv_member_struct_thread_td_pcb
=no
16286 rm -f conftest.err conftest.
$ac_objext conftest.
$ac_ext
16288 rm -f conftest.err conftest.
$ac_objext conftest.
$ac_ext
16290 echo "$as_me:$LINENO: result: $ac_cv_member_struct_thread_td_pcb" >&5
16291 echo "${ECHO_T}$ac_cv_member_struct_thread_td_pcb" >&6
16292 if test $ac_cv_member_struct_thread_td_pcb = yes; then
16294 cat >>confdefs.h
<<_ACEOF
16295 #define HAVE_STRUCT_THREAD_TD_PCB 1
16302 # See if <sys/lwp.h> defines `struct lwp`.
16303 echo "$as_me:$LINENO: checking for struct lwp" >&5
16304 echo $ECHO_N "checking for struct lwp... $ECHO_C" >&6
16305 if test "${gdb_cv_struct_lwp+set}" = set; then
16306 echo $ECHO_N "(cached) $ECHO_C" >&6
16308 cat >conftest.
$ac_ext <<_ACEOF
16311 cat confdefs.h
>>conftest.
$ac_ext
16312 cat >>conftest.
$ac_ext <<_ACEOF
16313 /* end confdefs.h. */
16314 #include <sys/param.h>
16315 #include <sys/lwp.h>
16324 rm -f conftest.
$ac_objext
16325 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
16326 (eval $ac_compile) 2>conftest.er1
16328 grep -v '^ *+' conftest.er1
>conftest.err
16330 cat conftest.err
>&5
16331 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16332 (exit $ac_status); } &&
16333 { ac_try
='test -z "$ac_c_werror_flag"
16334 || test ! -s conftest.err'
16335 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16336 (eval $ac_try) 2>&5
16338 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16339 (exit $ac_status); }; } &&
16340 { ac_try
='test -s conftest.$ac_objext'
16341 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16342 (eval $ac_try) 2>&5
16344 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16345 (exit $ac_status); }; }; then
16346 gdb_cv_struct_lwp
=yes
16348 echo "$as_me: failed program was:" >&5
16349 sed 's/^/| /' conftest.
$ac_ext >&5
16351 gdb_cv_struct_lwp
=no
16353 rm -f conftest.err conftest.
$ac_objext conftest.
$ac_ext
16355 echo "$as_me:$LINENO: result: $gdb_cv_struct_lwp" >&5
16356 echo "${ECHO_T}$gdb_cv_struct_lwp" >&6
16357 if test $gdb_cv_struct_lwp = yes; then
16359 cat >>confdefs.h
<<\_ACEOF
16360 #define HAVE_STRUCT_LWP 1
16365 # See if <machine/reg.h> degines `struct reg'.
16366 echo "$as_me:$LINENO: checking for struct reg in machine/reg.h" >&5
16367 echo $ECHO_N "checking for struct reg in machine/reg.h... $ECHO_C" >&6
16368 if test "${gdb_cv_struct_reg+set}" = set; then
16369 echo $ECHO_N "(cached) $ECHO_C" >&6
16371 cat >conftest.
$ac_ext <<_ACEOF
16374 cat confdefs.h
>>conftest.
$ac_ext
16375 cat >>conftest.
$ac_ext <<_ACEOF
16376 /* end confdefs.h. */
16377 #include <sys/types.h>
16378 #include <machine/reg.h>
16387 rm -f conftest.
$ac_objext
16388 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
16389 (eval $ac_compile) 2>conftest.er1
16391 grep -v '^ *+' conftest.er1
>conftest.err
16393 cat conftest.err
>&5
16394 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16395 (exit $ac_status); } &&
16396 { ac_try
='test -z "$ac_c_werror_flag"
16397 || test ! -s conftest.err'
16398 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16399 (eval $ac_try) 2>&5
16401 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16402 (exit $ac_status); }; } &&
16403 { ac_try
='test -s conftest.$ac_objext'
16404 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16405 (eval $ac_try) 2>&5
16407 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16408 (exit $ac_status); }; }; then
16409 gdb_cv_struct_reg
=yes
16411 echo "$as_me: failed program was:" >&5
16412 sed 's/^/| /' conftest.
$ac_ext >&5
16414 gdb_cv_struct_reg
=no
16416 rm -f conftest.err conftest.
$ac_objext conftest.
$ac_ext
16418 echo "$as_me:$LINENO: result: $gdb_cv_struct_reg" >&5
16419 echo "${ECHO_T}$gdb_cv_struct_reg" >&6
16420 if test $gdb_cv_struct_reg = yes; then
16422 cat >>confdefs.h
<<\_ACEOF
16423 #define HAVE_STRUCT_REG 1
16428 # See if <machine/reg.h> supports the %fs and %gs i386 segment registers.
16429 # Older i386 BSD's don't have the r_fs and r_gs members of `struct reg'.
16430 echo "$as_me:$LINENO: checking for struct reg.r_fs" >&5
16431 echo $ECHO_N "checking for struct reg.r_fs... $ECHO_C" >&6
16432 if test "${ac_cv_member_struct_reg_r_fs+set}" = set; then
16433 echo $ECHO_N "(cached) $ECHO_C" >&6
16435 cat >conftest.
$ac_ext <<_ACEOF
16438 cat confdefs.h
>>conftest.
$ac_ext
16439 cat >>conftest.
$ac_ext <<_ACEOF
16440 /* end confdefs.h. */
16441 #include <machine/reg.h>
16446 static struct reg ac_aggr;
16453 rm -f conftest.
$ac_objext
16454 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
16455 (eval $ac_compile) 2>conftest.er1
16457 grep -v '^ *+' conftest.er1
>conftest.err
16459 cat conftest.err
>&5
16460 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16461 (exit $ac_status); } &&
16462 { ac_try
='test -z "$ac_c_werror_flag"
16463 || test ! -s conftest.err'
16464 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16465 (eval $ac_try) 2>&5
16467 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16468 (exit $ac_status); }; } &&
16469 { ac_try
='test -s conftest.$ac_objext'
16470 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16471 (eval $ac_try) 2>&5
16473 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16474 (exit $ac_status); }; }; then
16475 ac_cv_member_struct_reg_r_fs
=yes
16477 echo "$as_me: failed program was:" >&5
16478 sed 's/^/| /' conftest.
$ac_ext >&5
16480 cat >conftest.
$ac_ext <<_ACEOF
16483 cat confdefs.h
>>conftest.
$ac_ext
16484 cat >>conftest.
$ac_ext <<_ACEOF
16485 /* end confdefs.h. */
16486 #include <machine/reg.h>
16491 static struct reg ac_aggr;
16492 if (sizeof ac_aggr.r_fs)
16498 rm -f conftest.
$ac_objext
16499 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
16500 (eval $ac_compile) 2>conftest.er1
16502 grep -v '^ *+' conftest.er1
>conftest.err
16504 cat conftest.err
>&5
16505 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16506 (exit $ac_status); } &&
16507 { ac_try
='test -z "$ac_c_werror_flag"
16508 || test ! -s conftest.err'
16509 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16510 (eval $ac_try) 2>&5
16512 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16513 (exit $ac_status); }; } &&
16514 { ac_try
='test -s conftest.$ac_objext'
16515 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16516 (eval $ac_try) 2>&5
16518 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16519 (exit $ac_status); }; }; then
16520 ac_cv_member_struct_reg_r_fs
=yes
16522 echo "$as_me: failed program was:" >&5
16523 sed 's/^/| /' conftest.
$ac_ext >&5
16525 ac_cv_member_struct_reg_r_fs
=no
16527 rm -f conftest.err conftest.
$ac_objext conftest.
$ac_ext
16529 rm -f conftest.err conftest.
$ac_objext conftest.
$ac_ext
16531 echo "$as_me:$LINENO: result: $ac_cv_member_struct_reg_r_fs" >&5
16532 echo "${ECHO_T}$ac_cv_member_struct_reg_r_fs" >&6
16533 if test $ac_cv_member_struct_reg_r_fs = yes; then
16535 cat >>confdefs.h
<<_ACEOF
16536 #define HAVE_STRUCT_REG_R_FS 1
16541 echo "$as_me:$LINENO: checking for struct reg.r_gs" >&5
16542 echo $ECHO_N "checking for struct reg.r_gs... $ECHO_C" >&6
16543 if test "${ac_cv_member_struct_reg_r_gs+set}" = set; then
16544 echo $ECHO_N "(cached) $ECHO_C" >&6
16546 cat >conftest.
$ac_ext <<_ACEOF
16549 cat confdefs.h
>>conftest.
$ac_ext
16550 cat >>conftest.
$ac_ext <<_ACEOF
16551 /* end confdefs.h. */
16552 #include <machine/reg.h>
16557 static struct reg ac_aggr;
16564 rm -f conftest.
$ac_objext
16565 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
16566 (eval $ac_compile) 2>conftest.er1
16568 grep -v '^ *+' conftest.er1
>conftest.err
16570 cat conftest.err
>&5
16571 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16572 (exit $ac_status); } &&
16573 { ac_try
='test -z "$ac_c_werror_flag"
16574 || test ! -s conftest.err'
16575 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16576 (eval $ac_try) 2>&5
16578 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16579 (exit $ac_status); }; } &&
16580 { ac_try
='test -s conftest.$ac_objext'
16581 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16582 (eval $ac_try) 2>&5
16584 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16585 (exit $ac_status); }; }; then
16586 ac_cv_member_struct_reg_r_gs
=yes
16588 echo "$as_me: failed program was:" >&5
16589 sed 's/^/| /' conftest.
$ac_ext >&5
16591 cat >conftest.
$ac_ext <<_ACEOF
16594 cat confdefs.h
>>conftest.
$ac_ext
16595 cat >>conftest.
$ac_ext <<_ACEOF
16596 /* end confdefs.h. */
16597 #include <machine/reg.h>
16602 static struct reg ac_aggr;
16603 if (sizeof ac_aggr.r_gs)
16609 rm -f conftest.
$ac_objext
16610 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
16611 (eval $ac_compile) 2>conftest.er1
16613 grep -v '^ *+' conftest.er1
>conftest.err
16615 cat conftest.err
>&5
16616 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16617 (exit $ac_status); } &&
16618 { ac_try
='test -z "$ac_c_werror_flag"
16619 || test ! -s conftest.err'
16620 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16621 (eval $ac_try) 2>&5
16623 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16624 (exit $ac_status); }; } &&
16625 { ac_try
='test -s conftest.$ac_objext'
16626 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16627 (eval $ac_try) 2>&5
16629 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16630 (exit $ac_status); }; }; then
16631 ac_cv_member_struct_reg_r_gs
=yes
16633 echo "$as_me: failed program was:" >&5
16634 sed 's/^/| /' conftest.
$ac_ext >&5
16636 ac_cv_member_struct_reg_r_gs
=no
16638 rm -f conftest.err conftest.
$ac_objext conftest.
$ac_ext
16640 rm -f conftest.err conftest.
$ac_objext conftest.
$ac_ext
16642 echo "$as_me:$LINENO: result: $ac_cv_member_struct_reg_r_gs" >&5
16643 echo "${ECHO_T}$ac_cv_member_struct_reg_r_gs" >&6
16644 if test $ac_cv_member_struct_reg_r_gs = yes; then
16646 cat >>confdefs.h
<<_ACEOF
16647 #define HAVE_STRUCT_REG_R_GS 1
16654 # See if <sys/ptrace.h> provides the PTRACE_GETREGS request.
16655 echo "$as_me:$LINENO: checking for PTRACE_GETREGS" >&5
16656 echo $ECHO_N "checking for PTRACE_GETREGS... $ECHO_C" >&6
16657 if test "${gdb_cv_have_ptrace_getregs+set}" = set; then
16658 echo $ECHO_N "(cached) $ECHO_C" >&6
16660 cat >conftest.
$ac_ext <<_ACEOF
16663 cat confdefs.h
>>conftest.
$ac_ext
16664 cat >>conftest.
$ac_ext <<_ACEOF
16665 /* end confdefs.h. */
16666 #include <sys/ptrace.h>
16675 rm -f conftest.
$ac_objext
16676 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
16677 (eval $ac_compile) 2>conftest.er1
16679 grep -v '^ *+' conftest.er1
>conftest.err
16681 cat conftest.err
>&5
16682 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16683 (exit $ac_status); } &&
16684 { ac_try
='test -z "$ac_c_werror_flag"
16685 || test ! -s conftest.err'
16686 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16687 (eval $ac_try) 2>&5
16689 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16690 (exit $ac_status); }; } &&
16691 { ac_try
='test -s conftest.$ac_objext'
16692 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16693 (eval $ac_try) 2>&5
16695 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16696 (exit $ac_status); }; }; then
16697 gdb_cv_have_ptrace_getregs
=yes
16699 echo "$as_me: failed program was:" >&5
16700 sed 's/^/| /' conftest.
$ac_ext >&5
16702 gdb_cv_have_ptrace_getregs
=no
16704 rm -f conftest.err conftest.
$ac_objext conftest.
$ac_ext
16707 echo "$as_me:$LINENO: result: $gdb_cv_have_ptrace_getregs" >&5
16708 echo "${ECHO_T}$gdb_cv_have_ptrace_getregs" >&6
16709 if test $gdb_cv_have_ptrace_getregs = yes; then
16711 cat >>confdefs.h
<<\_ACEOF
16712 #define HAVE_PTRACE_GETREGS 1
16717 # See if <sys/ptrace.h> provides the PTRACE_GETFPXREGS request.
16718 echo "$as_me:$LINENO: checking for PTRACE_GETFPXREGS" >&5
16719 echo $ECHO_N "checking for PTRACE_GETFPXREGS... $ECHO_C" >&6
16720 if test "${gdb_cv_have_ptrace_getfpxregs+set}" = set; then
16721 echo $ECHO_N "(cached) $ECHO_C" >&6
16723 cat >conftest.
$ac_ext <<_ACEOF
16726 cat confdefs.h
>>conftest.
$ac_ext
16727 cat >>conftest.
$ac_ext <<_ACEOF
16728 /* end confdefs.h. */
16729 #include <sys/ptrace.h>
16738 rm -f conftest.
$ac_objext
16739 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
16740 (eval $ac_compile) 2>conftest.er1
16742 grep -v '^ *+' conftest.er1
>conftest.err
16744 cat conftest.err
>&5
16745 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16746 (exit $ac_status); } &&
16747 { ac_try
='test -z "$ac_c_werror_flag"
16748 || test ! -s conftest.err'
16749 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16750 (eval $ac_try) 2>&5
16752 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16753 (exit $ac_status); }; } &&
16754 { ac_try
='test -s conftest.$ac_objext'
16755 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16756 (eval $ac_try) 2>&5
16758 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16759 (exit $ac_status); }; }; then
16760 gdb_cv_have_ptrace_getfpxregs
=yes
16762 echo "$as_me: failed program was:" >&5
16763 sed 's/^/| /' conftest.
$ac_ext >&5
16765 gdb_cv_have_ptrace_getfpxregs
=no
16767 rm -f conftest.err conftest.
$ac_objext conftest.
$ac_ext
16770 echo "$as_me:$LINENO: result: $gdb_cv_have_ptrace_getfpxregs" >&5
16771 echo "${ECHO_T}$gdb_cv_have_ptrace_getfpxregs" >&6
16772 if test $gdb_cv_have_ptrace_getfpxregs = yes; then
16774 cat >>confdefs.h
<<\_ACEOF
16775 #define HAVE_PTRACE_GETFPXREGS 1
16780 # See if <sys/ptrace.h> provides the PT_GETDBREGS request.
16781 echo "$as_me:$LINENO: checking for PT_GETDBREGS" >&5
16782 echo $ECHO_N "checking for PT_GETDBREGS... $ECHO_C" >&6
16783 if test "${gdb_cv_have_pt_getdbregs+set}" = set; then
16784 echo $ECHO_N "(cached) $ECHO_C" >&6
16786 cat >conftest.
$ac_ext <<_ACEOF
16789 cat confdefs.h
>>conftest.
$ac_ext
16790 cat >>conftest.
$ac_ext <<_ACEOF
16791 /* end confdefs.h. */
16792 #include <sys/types.h>
16793 #include <sys/ptrace.h>
16802 rm -f conftest.
$ac_objext
16803 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
16804 (eval $ac_compile) 2>conftest.er1
16806 grep -v '^ *+' conftest.er1
>conftest.err
16808 cat conftest.err
>&5
16809 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16810 (exit $ac_status); } &&
16811 { ac_try
='test -z "$ac_c_werror_flag"
16812 || test ! -s conftest.err'
16813 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16814 (eval $ac_try) 2>&5
16816 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16817 (exit $ac_status); }; } &&
16818 { ac_try
='test -s conftest.$ac_objext'
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); }; }; then
16824 gdb_cv_have_pt_getdbregs
=yes
16826 echo "$as_me: failed program was:" >&5
16827 sed 's/^/| /' conftest.
$ac_ext >&5
16829 gdb_cv_have_pt_getdbregs
=no
16831 rm -f conftest.err conftest.
$ac_objext conftest.
$ac_ext
16834 echo "$as_me:$LINENO: result: $gdb_cv_have_pt_getdbregs" >&5
16835 echo "${ECHO_T}$gdb_cv_have_pt_getdbregs" >&6
16836 if test $gdb_cv_have_pt_getdbregs = yes; then
16838 cat >>confdefs.h
<<\_ACEOF
16839 #define HAVE_PT_GETDBREGS 1
16844 # See if <sys/ptrace.h> provides the PT_GETXMMREGS request.
16845 echo "$as_me:$LINENO: checking for PT_GETXMMREGS" >&5
16846 echo $ECHO_N "checking for PT_GETXMMREGS... $ECHO_C" >&6
16847 if test "${gdb_cv_have_pt_getxmmregs+set}" = set; then
16848 echo $ECHO_N "(cached) $ECHO_C" >&6
16850 cat >conftest.
$ac_ext <<_ACEOF
16853 cat confdefs.h
>>conftest.
$ac_ext
16854 cat >>conftest.
$ac_ext <<_ACEOF
16855 /* end confdefs.h. */
16856 #include <sys/types.h>
16857 #include <sys/ptrace.h>
16866 rm -f conftest.
$ac_objext
16867 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
16868 (eval $ac_compile) 2>conftest.er1
16870 grep -v '^ *+' conftest.er1
>conftest.err
16872 cat conftest.err
>&5
16873 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16874 (exit $ac_status); } &&
16875 { ac_try
='test -z "$ac_c_werror_flag"
16876 || test ! -s conftest.err'
16877 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16878 (eval $ac_try) 2>&5
16880 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16881 (exit $ac_status); }; } &&
16882 { ac_try
='test -s conftest.$ac_objext'
16883 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16884 (eval $ac_try) 2>&5
16886 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16887 (exit $ac_status); }; }; then
16888 gdb_cv_have_pt_getxmmregs
=yes
16890 echo "$as_me: failed program was:" >&5
16891 sed 's/^/| /' conftest.
$ac_ext >&5
16893 gdb_cv_have_pt_getxmmregs
=no
16895 rm -f conftest.err conftest.
$ac_objext conftest.
$ac_ext
16898 echo "$as_me:$LINENO: result: $gdb_cv_have_pt_getxmmregs" >&5
16899 echo "${ECHO_T}$gdb_cv_have_pt_getxmmregs" >&6
16900 if test $gdb_cv_have_pt_getxmmregs = yes; then
16902 cat >>confdefs.h
<<\_ACEOF
16903 #define HAVE_PT_GETXMMREGS 1
16908 # Detect which type of /proc is in use, such as for Unixware or Solaris.
16910 if test "${target}" = "${host}"; then
16912 *-*-unixware* |
*-*-sysv4.2
* |
*-*-sysv5* |
*-*-interix* )
16914 cat >>confdefs.h
<<\_ACEOF
16915 #define NEW_PROC_API 1
16919 *-*-solaris2.
[6789] |
*-*-solaris2.1
[0-9]*)
16921 cat >>confdefs.h
<<\_ACEOF
16922 #define NEW_PROC_API 1
16927 # Work around <sys/proc.h> needing _KMEMUSER problem on IRIX 5.
16929 cat >>confdefs.h
<<\_ACEOF
16930 #define _KMEMUSER 1
16937 if test "$ac_cv_header_sys_procfs_h" = yes; then
16938 echo "$as_me:$LINENO: checking for pstatus_t in sys/procfs.h" >&5
16939 echo $ECHO_N "checking for pstatus_t in sys/procfs.h... $ECHO_C" >&6
16940 if test "${bfd_cv_have_sys_procfs_type_pstatus_t+set}" = set; then
16941 echo $ECHO_N "(cached) $ECHO_C" >&6
16943 cat >conftest.
$ac_ext <<_ACEOF
16946 cat confdefs.h
>>conftest.
$ac_ext
16947 cat >>conftest.
$ac_ext <<_ACEOF
16948 /* end confdefs.h. */
16951 #include <sys/procfs.h>
16960 rm -f conftest.
$ac_objext
16961 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
16962 (eval $ac_compile) 2>conftest.er1
16964 grep -v '^ *+' conftest.er1
>conftest.err
16966 cat conftest.err
>&5
16967 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16968 (exit $ac_status); } &&
16969 { ac_try
='test -z "$ac_c_werror_flag"
16970 || test ! -s conftest.err'
16971 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16972 (eval $ac_try) 2>&5
16974 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16975 (exit $ac_status); }; } &&
16976 { ac_try
='test -s conftest.$ac_objext'
16977 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16978 (eval $ac_try) 2>&5
16980 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16981 (exit $ac_status); }; }; then
16982 bfd_cv_have_sys_procfs_type_pstatus_t
=yes
16984 echo "$as_me: failed program was:" >&5
16985 sed 's/^/| /' conftest.
$ac_ext >&5
16987 bfd_cv_have_sys_procfs_type_pstatus_t
=no
16990 rm -f conftest.err conftest.
$ac_objext conftest.
$ac_ext
16993 if test $bfd_cv_have_sys_procfs_type_pstatus_t = yes; then
16995 cat >>confdefs.h
<<\_ACEOF
16996 #define HAVE_PSTATUS_T 1
17000 echo "$as_me:$LINENO: result: $bfd_cv_have_sys_procfs_type_pstatus_t" >&5
17001 echo "${ECHO_T}$bfd_cv_have_sys_procfs_type_pstatus_t" >&6
17003 echo "$as_me:$LINENO: checking for prrun_t in sys/procfs.h" >&5
17004 echo $ECHO_N "checking for prrun_t in sys/procfs.h... $ECHO_C" >&6
17005 if test "${bfd_cv_have_sys_procfs_type_prrun_t+set}" = set; then
17006 echo $ECHO_N "(cached) $ECHO_C" >&6
17008 cat >conftest.
$ac_ext <<_ACEOF
17011 cat confdefs.h
>>conftest.
$ac_ext
17012 cat >>conftest.
$ac_ext <<_ACEOF
17013 /* end confdefs.h. */
17016 #include <sys/procfs.h>
17025 rm -f conftest.
$ac_objext
17026 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
17027 (eval $ac_compile) 2>conftest.er1
17029 grep -v '^ *+' conftest.er1
>conftest.err
17031 cat conftest.err
>&5
17032 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17033 (exit $ac_status); } &&
17034 { ac_try
='test -z "$ac_c_werror_flag"
17035 || test ! -s conftest.err'
17036 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17037 (eval $ac_try) 2>&5
17039 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17040 (exit $ac_status); }; } &&
17041 { ac_try
='test -s conftest.$ac_objext'
17042 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17043 (eval $ac_try) 2>&5
17045 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17046 (exit $ac_status); }; }; then
17047 bfd_cv_have_sys_procfs_type_prrun_t
=yes
17049 echo "$as_me: failed program was:" >&5
17050 sed 's/^/| /' conftest.
$ac_ext >&5
17052 bfd_cv_have_sys_procfs_type_prrun_t
=no
17055 rm -f conftest.err conftest.
$ac_objext conftest.
$ac_ext
17058 if test $bfd_cv_have_sys_procfs_type_prrun_t = yes; then
17060 cat >>confdefs.h
<<\_ACEOF
17061 #define HAVE_PRRUN_T 1
17065 echo "$as_me:$LINENO: result: $bfd_cv_have_sys_procfs_type_prrun_t" >&5
17066 echo "${ECHO_T}$bfd_cv_have_sys_procfs_type_prrun_t" >&6
17068 echo "$as_me:$LINENO: checking for gregset_t in sys/procfs.h" >&5
17069 echo $ECHO_N "checking for gregset_t in sys/procfs.h... $ECHO_C" >&6
17070 if test "${bfd_cv_have_sys_procfs_type_gregset_t+set}" = set; then
17071 echo $ECHO_N "(cached) $ECHO_C" >&6
17073 cat >conftest.
$ac_ext <<_ACEOF
17076 cat confdefs.h
>>conftest.
$ac_ext
17077 cat >>conftest.
$ac_ext <<_ACEOF
17078 /* end confdefs.h. */
17081 #include <sys/procfs.h>
17090 rm -f conftest.
$ac_objext
17091 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
17092 (eval $ac_compile) 2>conftest.er1
17094 grep -v '^ *+' conftest.er1
>conftest.err
17096 cat conftest.err
>&5
17097 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17098 (exit $ac_status); } &&
17099 { ac_try
='test -z "$ac_c_werror_flag"
17100 || test ! -s conftest.err'
17101 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17102 (eval $ac_try) 2>&5
17104 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17105 (exit $ac_status); }; } &&
17106 { ac_try
='test -s conftest.$ac_objext'
17107 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17108 (eval $ac_try) 2>&5
17110 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17111 (exit $ac_status); }; }; then
17112 bfd_cv_have_sys_procfs_type_gregset_t
=yes
17114 echo "$as_me: failed program was:" >&5
17115 sed 's/^/| /' conftest.
$ac_ext >&5
17117 bfd_cv_have_sys_procfs_type_gregset_t
=no
17120 rm -f conftest.err conftest.
$ac_objext conftest.
$ac_ext
17123 if test $bfd_cv_have_sys_procfs_type_gregset_t = yes; then
17125 cat >>confdefs.h
<<\_ACEOF
17126 #define HAVE_GREGSET_T 1
17130 echo "$as_me:$LINENO: result: $bfd_cv_have_sys_procfs_type_gregset_t" >&5
17131 echo "${ECHO_T}$bfd_cv_have_sys_procfs_type_gregset_t" >&6
17133 echo "$as_me:$LINENO: checking for fpregset_t in sys/procfs.h" >&5
17134 echo $ECHO_N "checking for fpregset_t in sys/procfs.h... $ECHO_C" >&6
17135 if test "${bfd_cv_have_sys_procfs_type_fpregset_t+set}" = set; then
17136 echo $ECHO_N "(cached) $ECHO_C" >&6
17138 cat >conftest.
$ac_ext <<_ACEOF
17141 cat confdefs.h
>>conftest.
$ac_ext
17142 cat >>conftest.
$ac_ext <<_ACEOF
17143 /* end confdefs.h. */
17146 #include <sys/procfs.h>
17155 rm -f conftest.
$ac_objext
17156 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
17157 (eval $ac_compile) 2>conftest.er1
17159 grep -v '^ *+' conftest.er1
>conftest.err
17161 cat conftest.err
>&5
17162 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17163 (exit $ac_status); } &&
17164 { ac_try
='test -z "$ac_c_werror_flag"
17165 || test ! -s conftest.err'
17166 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17167 (eval $ac_try) 2>&5
17169 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17170 (exit $ac_status); }; } &&
17171 { ac_try
='test -s conftest.$ac_objext'
17172 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17173 (eval $ac_try) 2>&5
17175 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17176 (exit $ac_status); }; }; then
17177 bfd_cv_have_sys_procfs_type_fpregset_t
=yes
17179 echo "$as_me: failed program was:" >&5
17180 sed 's/^/| /' conftest.
$ac_ext >&5
17182 bfd_cv_have_sys_procfs_type_fpregset_t
=no
17185 rm -f conftest.err conftest.
$ac_objext conftest.
$ac_ext
17188 if test $bfd_cv_have_sys_procfs_type_fpregset_t = yes; then
17190 cat >>confdefs.h
<<\_ACEOF
17191 #define HAVE_FPREGSET_T 1
17195 echo "$as_me:$LINENO: result: $bfd_cv_have_sys_procfs_type_fpregset_t" >&5
17196 echo "${ECHO_T}$bfd_cv_have_sys_procfs_type_fpregset_t" >&6
17198 echo "$as_me:$LINENO: checking for prgregset_t in sys/procfs.h" >&5
17199 echo $ECHO_N "checking for prgregset_t in sys/procfs.h... $ECHO_C" >&6
17200 if test "${bfd_cv_have_sys_procfs_type_prgregset_t+set}" = set; then
17201 echo $ECHO_N "(cached) $ECHO_C" >&6
17203 cat >conftest.
$ac_ext <<_ACEOF
17206 cat confdefs.h
>>conftest.
$ac_ext
17207 cat >>conftest.
$ac_ext <<_ACEOF
17208 /* end confdefs.h. */
17211 #include <sys/procfs.h>
17220 rm -f conftest.
$ac_objext
17221 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
17222 (eval $ac_compile) 2>conftest.er1
17224 grep -v '^ *+' conftest.er1
>conftest.err
17226 cat conftest.err
>&5
17227 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17228 (exit $ac_status); } &&
17229 { ac_try
='test -z "$ac_c_werror_flag"
17230 || test ! -s conftest.err'
17231 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17232 (eval $ac_try) 2>&5
17234 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17235 (exit $ac_status); }; } &&
17236 { ac_try
='test -s conftest.$ac_objext'
17237 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17238 (eval $ac_try) 2>&5
17240 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17241 (exit $ac_status); }; }; then
17242 bfd_cv_have_sys_procfs_type_prgregset_t
=yes
17244 echo "$as_me: failed program was:" >&5
17245 sed 's/^/| /' conftest.
$ac_ext >&5
17247 bfd_cv_have_sys_procfs_type_prgregset_t
=no
17250 rm -f conftest.err conftest.
$ac_objext conftest.
$ac_ext
17253 if test $bfd_cv_have_sys_procfs_type_prgregset_t = yes; then
17255 cat >>confdefs.h
<<\_ACEOF
17256 #define HAVE_PRGREGSET_T 1
17260 echo "$as_me:$LINENO: result: $bfd_cv_have_sys_procfs_type_prgregset_t" >&5
17261 echo "${ECHO_T}$bfd_cv_have_sys_procfs_type_prgregset_t" >&6
17263 echo "$as_me:$LINENO: checking for prfpregset_t in sys/procfs.h" >&5
17264 echo $ECHO_N "checking for prfpregset_t in sys/procfs.h... $ECHO_C" >&6
17265 if test "${bfd_cv_have_sys_procfs_type_prfpregset_t+set}" = set; then
17266 echo $ECHO_N "(cached) $ECHO_C" >&6
17268 cat >conftest.
$ac_ext <<_ACEOF
17271 cat confdefs.h
>>conftest.
$ac_ext
17272 cat >>conftest.
$ac_ext <<_ACEOF
17273 /* end confdefs.h. */
17276 #include <sys/procfs.h>
17285 rm -f conftest.
$ac_objext
17286 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
17287 (eval $ac_compile) 2>conftest.er1
17289 grep -v '^ *+' conftest.er1
>conftest.err
17291 cat conftest.err
>&5
17292 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17293 (exit $ac_status); } &&
17294 { ac_try
='test -z "$ac_c_werror_flag"
17295 || test ! -s conftest.err'
17296 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17297 (eval $ac_try) 2>&5
17299 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17300 (exit $ac_status); }; } &&
17301 { ac_try
='test -s conftest.$ac_objext'
17302 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17303 (eval $ac_try) 2>&5
17305 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17306 (exit $ac_status); }; }; then
17307 bfd_cv_have_sys_procfs_type_prfpregset_t
=yes
17309 echo "$as_me: failed program was:" >&5
17310 sed 's/^/| /' conftest.
$ac_ext >&5
17312 bfd_cv_have_sys_procfs_type_prfpregset_t
=no
17315 rm -f conftest.err conftest.
$ac_objext conftest.
$ac_ext
17318 if test $bfd_cv_have_sys_procfs_type_prfpregset_t = yes; then
17320 cat >>confdefs.h
<<\_ACEOF
17321 #define HAVE_PRFPREGSET_T 1
17325 echo "$as_me:$LINENO: result: $bfd_cv_have_sys_procfs_type_prfpregset_t" >&5
17326 echo "${ECHO_T}$bfd_cv_have_sys_procfs_type_prfpregset_t" >&6
17328 echo "$as_me:$LINENO: checking for prgregset32_t in sys/procfs.h" >&5
17329 echo $ECHO_N "checking for prgregset32_t in sys/procfs.h... $ECHO_C" >&6
17330 if test "${bfd_cv_have_sys_procfs_type_prgregset32_t+set}" = set; then
17331 echo $ECHO_N "(cached) $ECHO_C" >&6
17333 cat >conftest.
$ac_ext <<_ACEOF
17336 cat confdefs.h
>>conftest.
$ac_ext
17337 cat >>conftest.
$ac_ext <<_ACEOF
17338 /* end confdefs.h. */
17341 #include <sys/procfs.h>
17350 rm -f conftest.
$ac_objext
17351 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
17352 (eval $ac_compile) 2>conftest.er1
17354 grep -v '^ *+' conftest.er1
>conftest.err
17356 cat conftest.err
>&5
17357 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17358 (exit $ac_status); } &&
17359 { ac_try
='test -z "$ac_c_werror_flag"
17360 || test ! -s conftest.err'
17361 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17362 (eval $ac_try) 2>&5
17364 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17365 (exit $ac_status); }; } &&
17366 { ac_try
='test -s conftest.$ac_objext'
17367 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17368 (eval $ac_try) 2>&5
17370 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17371 (exit $ac_status); }; }; then
17372 bfd_cv_have_sys_procfs_type_prgregset32_t
=yes
17374 echo "$as_me: failed program was:" >&5
17375 sed 's/^/| /' conftest.
$ac_ext >&5
17377 bfd_cv_have_sys_procfs_type_prgregset32_t
=no
17380 rm -f conftest.err conftest.
$ac_objext conftest.
$ac_ext
17383 if test $bfd_cv_have_sys_procfs_type_prgregset32_t = yes; then
17385 cat >>confdefs.h
<<\_ACEOF
17386 #define HAVE_PRGREGSET32_T 1
17390 echo "$as_me:$LINENO: result: $bfd_cv_have_sys_procfs_type_prgregset32_t" >&5
17391 echo "${ECHO_T}$bfd_cv_have_sys_procfs_type_prgregset32_t" >&6
17393 echo "$as_me:$LINENO: checking for prfpregset32_t in sys/procfs.h" >&5
17394 echo $ECHO_N "checking for prfpregset32_t in sys/procfs.h... $ECHO_C" >&6
17395 if test "${bfd_cv_have_sys_procfs_type_prfpregset32_t+set}" = set; then
17396 echo $ECHO_N "(cached) $ECHO_C" >&6
17398 cat >conftest.
$ac_ext <<_ACEOF
17401 cat confdefs.h
>>conftest.
$ac_ext
17402 cat >>conftest.
$ac_ext <<_ACEOF
17403 /* end confdefs.h. */
17406 #include <sys/procfs.h>
17410 prfpregset32_t avar
17415 rm -f conftest.
$ac_objext
17416 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
17417 (eval $ac_compile) 2>conftest.er1
17419 grep -v '^ *+' conftest.er1
>conftest.err
17421 cat conftest.err
>&5
17422 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17423 (exit $ac_status); } &&
17424 { ac_try
='test -z "$ac_c_werror_flag"
17425 || test ! -s conftest.err'
17426 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17427 (eval $ac_try) 2>&5
17429 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17430 (exit $ac_status); }; } &&
17431 { ac_try
='test -s conftest.$ac_objext'
17432 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17433 (eval $ac_try) 2>&5
17435 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17436 (exit $ac_status); }; }; then
17437 bfd_cv_have_sys_procfs_type_prfpregset32_t
=yes
17439 echo "$as_me: failed program was:" >&5
17440 sed 's/^/| /' conftest.
$ac_ext >&5
17442 bfd_cv_have_sys_procfs_type_prfpregset32_t
=no
17445 rm -f conftest.err conftest.
$ac_objext conftest.
$ac_ext
17448 if test $bfd_cv_have_sys_procfs_type_prfpregset32_t = yes; then
17450 cat >>confdefs.h
<<\_ACEOF
17451 #define HAVE_PRFPREGSET32_T 1
17455 echo "$as_me:$LINENO: result: $bfd_cv_have_sys_procfs_type_prfpregset32_t" >&5
17456 echo "${ECHO_T}$bfd_cv_have_sys_procfs_type_prfpregset32_t" >&6
17458 echo "$as_me:$LINENO: checking for lwpid_t in sys/procfs.h" >&5
17459 echo $ECHO_N "checking for lwpid_t in sys/procfs.h... $ECHO_C" >&6
17460 if test "${bfd_cv_have_sys_procfs_type_lwpid_t+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. */
17471 #include <sys/procfs.h>
17480 rm -f conftest.
$ac_objext
17481 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
17482 (eval $ac_compile) 2>conftest.er1
17484 grep -v '^ *+' conftest.er1
>conftest.err
17486 cat conftest.err
>&5
17487 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17488 (exit $ac_status); } &&
17489 { ac_try
='test -z "$ac_c_werror_flag"
17490 || test ! -s conftest.err'
17491 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17492 (eval $ac_try) 2>&5
17494 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17495 (exit $ac_status); }; } &&
17496 { ac_try
='test -s conftest.$ac_objext'
17497 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17498 (eval $ac_try) 2>&5
17500 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17501 (exit $ac_status); }; }; then
17502 bfd_cv_have_sys_procfs_type_lwpid_t
=yes
17504 echo "$as_me: failed program was:" >&5
17505 sed 's/^/| /' conftest.
$ac_ext >&5
17507 bfd_cv_have_sys_procfs_type_lwpid_t
=no
17510 rm -f conftest.err conftest.
$ac_objext conftest.
$ac_ext
17513 if test $bfd_cv_have_sys_procfs_type_lwpid_t = yes; then
17515 cat >>confdefs.h
<<\_ACEOF
17516 #define HAVE_LWPID_T 1
17520 echo "$as_me:$LINENO: result: $bfd_cv_have_sys_procfs_type_lwpid_t" >&5
17521 echo "${ECHO_T}$bfd_cv_have_sys_procfs_type_lwpid_t" >&6
17523 echo "$as_me:$LINENO: checking for psaddr_t in sys/procfs.h" >&5
17524 echo $ECHO_N "checking for psaddr_t in sys/procfs.h... $ECHO_C" >&6
17525 if test "${bfd_cv_have_sys_procfs_type_psaddr_t+set}" = set; then
17526 echo $ECHO_N "(cached) $ECHO_C" >&6
17528 cat >conftest.
$ac_ext <<_ACEOF
17531 cat confdefs.h
>>conftest.
$ac_ext
17532 cat >>conftest.
$ac_ext <<_ACEOF
17533 /* end confdefs.h. */
17536 #include <sys/procfs.h>
17545 rm -f conftest.
$ac_objext
17546 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
17547 (eval $ac_compile) 2>conftest.er1
17549 grep -v '^ *+' conftest.er1
>conftest.err
17551 cat conftest.err
>&5
17552 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17553 (exit $ac_status); } &&
17554 { ac_try
='test -z "$ac_c_werror_flag"
17555 || test ! -s conftest.err'
17556 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17557 (eval $ac_try) 2>&5
17559 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17560 (exit $ac_status); }; } &&
17561 { ac_try
='test -s conftest.$ac_objext'
17562 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17563 (eval $ac_try) 2>&5
17565 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17566 (exit $ac_status); }; }; then
17567 bfd_cv_have_sys_procfs_type_psaddr_t
=yes
17569 echo "$as_me: failed program was:" >&5
17570 sed 's/^/| /' conftest.
$ac_ext >&5
17572 bfd_cv_have_sys_procfs_type_psaddr_t
=no
17575 rm -f conftest.err conftest.
$ac_objext conftest.
$ac_ext
17578 if test $bfd_cv_have_sys_procfs_type_psaddr_t = yes; then
17580 cat >>confdefs.h
<<\_ACEOF
17581 #define HAVE_PSADDR_T 1
17585 echo "$as_me:$LINENO: result: $bfd_cv_have_sys_procfs_type_psaddr_t" >&5
17586 echo "${ECHO_T}$bfd_cv_have_sys_procfs_type_psaddr_t" >&6
17588 echo "$as_me:$LINENO: checking for prsysent_t in sys/procfs.h" >&5
17589 echo $ECHO_N "checking for prsysent_t in sys/procfs.h... $ECHO_C" >&6
17590 if test "${bfd_cv_have_sys_procfs_type_prsysent_t+set}" = set; then
17591 echo $ECHO_N "(cached) $ECHO_C" >&6
17593 cat >conftest.
$ac_ext <<_ACEOF
17596 cat confdefs.h
>>conftest.
$ac_ext
17597 cat >>conftest.
$ac_ext <<_ACEOF
17598 /* end confdefs.h. */
17601 #include <sys/procfs.h>
17610 rm -f conftest.
$ac_objext
17611 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
17612 (eval $ac_compile) 2>conftest.er1
17614 grep -v '^ *+' conftest.er1
>conftest.err
17616 cat conftest.err
>&5
17617 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17618 (exit $ac_status); } &&
17619 { ac_try
='test -z "$ac_c_werror_flag"
17620 || test ! -s conftest.err'
17621 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17622 (eval $ac_try) 2>&5
17624 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17625 (exit $ac_status); }; } &&
17626 { ac_try
='test -s conftest.$ac_objext'
17627 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17628 (eval $ac_try) 2>&5
17630 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17631 (exit $ac_status); }; }; then
17632 bfd_cv_have_sys_procfs_type_prsysent_t
=yes
17634 echo "$as_me: failed program was:" >&5
17635 sed 's/^/| /' conftest.
$ac_ext >&5
17637 bfd_cv_have_sys_procfs_type_prsysent_t
=no
17640 rm -f conftest.err conftest.
$ac_objext conftest.
$ac_ext
17643 if test $bfd_cv_have_sys_procfs_type_prsysent_t = yes; then
17645 cat >>confdefs.h
<<\_ACEOF
17646 #define HAVE_PRSYSENT_T 1
17650 echo "$as_me:$LINENO: result: $bfd_cv_have_sys_procfs_type_prsysent_t" >&5
17651 echo "${ECHO_T}$bfd_cv_have_sys_procfs_type_prsysent_t" >&6
17653 echo "$as_me:$LINENO: checking for pr_sigset_t in sys/procfs.h" >&5
17654 echo $ECHO_N "checking for pr_sigset_t in sys/procfs.h... $ECHO_C" >&6
17655 if test "${bfd_cv_have_sys_procfs_type_pr_sigset_t+set}" = set; then
17656 echo $ECHO_N "(cached) $ECHO_C" >&6
17658 cat >conftest.
$ac_ext <<_ACEOF
17661 cat confdefs.h
>>conftest.
$ac_ext
17662 cat >>conftest.
$ac_ext <<_ACEOF
17663 /* end confdefs.h. */
17666 #include <sys/procfs.h>
17675 rm -f conftest.
$ac_objext
17676 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
17677 (eval $ac_compile) 2>conftest.er1
17679 grep -v '^ *+' conftest.er1
>conftest.err
17681 cat conftest.err
>&5
17682 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17683 (exit $ac_status); } &&
17684 { ac_try
='test -z "$ac_c_werror_flag"
17685 || test ! -s conftest.err'
17686 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17687 (eval $ac_try) 2>&5
17689 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17690 (exit $ac_status); }; } &&
17691 { ac_try
='test -s conftest.$ac_objext'
17692 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17693 (eval $ac_try) 2>&5
17695 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17696 (exit $ac_status); }; }; then
17697 bfd_cv_have_sys_procfs_type_pr_sigset_t
=yes
17699 echo "$as_me: failed program was:" >&5
17700 sed 's/^/| /' conftest.
$ac_ext >&5
17702 bfd_cv_have_sys_procfs_type_pr_sigset_t
=no
17705 rm -f conftest.err conftest.
$ac_objext conftest.
$ac_ext
17708 if test $bfd_cv_have_sys_procfs_type_pr_sigset_t = yes; then
17710 cat >>confdefs.h
<<\_ACEOF
17711 #define HAVE_PR_SIGSET_T 1
17715 echo "$as_me:$LINENO: result: $bfd_cv_have_sys_procfs_type_pr_sigset_t" >&5
17716 echo "${ECHO_T}$bfd_cv_have_sys_procfs_type_pr_sigset_t" >&6
17718 echo "$as_me:$LINENO: checking for pr_sigaction64_t in sys/procfs.h" >&5
17719 echo $ECHO_N "checking for pr_sigaction64_t in sys/procfs.h... $ECHO_C" >&6
17720 if test "${bfd_cv_have_sys_procfs_type_pr_sigaction64_t+set}" = set; then
17721 echo $ECHO_N "(cached) $ECHO_C" >&6
17723 cat >conftest.
$ac_ext <<_ACEOF
17726 cat confdefs.h
>>conftest.
$ac_ext
17727 cat >>conftest.
$ac_ext <<_ACEOF
17728 /* end confdefs.h. */
17731 #include <sys/procfs.h>
17735 pr_sigaction64_t avar
17740 rm -f conftest.
$ac_objext
17741 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
17742 (eval $ac_compile) 2>conftest.er1
17744 grep -v '^ *+' conftest.er1
>conftest.err
17746 cat conftest.err
>&5
17747 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17748 (exit $ac_status); } &&
17749 { ac_try
='test -z "$ac_c_werror_flag"
17750 || test ! -s conftest.err'
17751 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17752 (eval $ac_try) 2>&5
17754 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17755 (exit $ac_status); }; } &&
17756 { ac_try
='test -s conftest.$ac_objext'
17757 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17758 (eval $ac_try) 2>&5
17760 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17761 (exit $ac_status); }; }; then
17762 bfd_cv_have_sys_procfs_type_pr_sigaction64_t
=yes
17764 echo "$as_me: failed program was:" >&5
17765 sed 's/^/| /' conftest.
$ac_ext >&5
17767 bfd_cv_have_sys_procfs_type_pr_sigaction64_t
=no
17770 rm -f conftest.err conftest.
$ac_objext conftest.
$ac_ext
17773 if test $bfd_cv_have_sys_procfs_type_pr_sigaction64_t = yes; then
17775 cat >>confdefs.h
<<\_ACEOF
17776 #define HAVE_PR_SIGACTION64_T 1
17780 echo "$as_me:$LINENO: result: $bfd_cv_have_sys_procfs_type_pr_sigaction64_t" >&5
17781 echo "${ECHO_T}$bfd_cv_have_sys_procfs_type_pr_sigaction64_t" >&6
17783 echo "$as_me:$LINENO: checking for pr_siginfo64_t in sys/procfs.h" >&5
17784 echo $ECHO_N "checking for pr_siginfo64_t in sys/procfs.h... $ECHO_C" >&6
17785 if test "${bfd_cv_have_sys_procfs_type_pr_siginfo64_t+set}" = set; then
17786 echo $ECHO_N "(cached) $ECHO_C" >&6
17788 cat >conftest.
$ac_ext <<_ACEOF
17791 cat confdefs.h
>>conftest.
$ac_ext
17792 cat >>conftest.
$ac_ext <<_ACEOF
17793 /* end confdefs.h. */
17796 #include <sys/procfs.h>
17800 pr_siginfo64_t avar
17805 rm -f conftest.
$ac_objext
17806 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
17807 (eval $ac_compile) 2>conftest.er1
17809 grep -v '^ *+' conftest.er1
>conftest.err
17811 cat conftest.err
>&5
17812 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17813 (exit $ac_status); } &&
17814 { ac_try
='test -z "$ac_c_werror_flag"
17815 || test ! -s conftest.err'
17816 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17817 (eval $ac_try) 2>&5
17819 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17820 (exit $ac_status); }; } &&
17821 { ac_try
='test -s conftest.$ac_objext'
17822 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17823 (eval $ac_try) 2>&5
17825 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17826 (exit $ac_status); }; }; then
17827 bfd_cv_have_sys_procfs_type_pr_siginfo64_t
=yes
17829 echo "$as_me: failed program was:" >&5
17830 sed 's/^/| /' conftest.
$ac_ext >&5
17832 bfd_cv_have_sys_procfs_type_pr_siginfo64_t
=no
17835 rm -f conftest.err conftest.
$ac_objext conftest.
$ac_ext
17838 if test $bfd_cv_have_sys_procfs_type_pr_siginfo64_t = yes; then
17840 cat >>confdefs.h
<<\_ACEOF
17841 #define HAVE_PR_SIGINFO64_T 1
17845 echo "$as_me:$LINENO: result: $bfd_cv_have_sys_procfs_type_pr_siginfo64_t" >&5
17846 echo "${ECHO_T}$bfd_cv_have_sys_procfs_type_pr_siginfo64_t" >&6
17852 if test $bfd_cv_have_sys_procfs_type_prfpregset_t = yes; then
17853 echo "$as_me:$LINENO: checking whether prfpregset_t type is broken" >&5
17854 echo $ECHO_N "checking whether prfpregset_t type is broken... $ECHO_C" >&6
17855 if test "${gdb_cv_prfpregset_t_broken+set}" = set; then
17856 echo $ECHO_N "(cached) $ECHO_C" >&6
17858 if test "$cross_compiling" = yes; then
17859 gdb_cv_prfpregset_t_broken
=yes
17861 cat >conftest.
$ac_ext <<_ACEOF
17864 cat confdefs.h
>>conftest.
$ac_ext
17865 cat >>conftest.
$ac_ext <<_ACEOF
17866 /* end confdefs.h. */
17867 #include <sys/procfs.h>
17870 if (sizeof (prfpregset_t) == sizeof (void *))
17875 rm -f conftest
$ac_exeext
17876 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
17877 (eval $ac_link) 2>&5
17879 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17880 (exit $ac_status); } && { ac_try
='./conftest$ac_exeext'
17881 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17882 (eval $ac_try) 2>&5
17884 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17885 (exit $ac_status); }; }; then
17886 gdb_cv_prfpregset_t_broken
=no
17888 echo "$as_me: program exited with status $ac_status" >&5
17889 echo "$as_me: failed program was:" >&5
17890 sed 's/^/| /' conftest.
$ac_ext >&5
17892 ( exit $ac_status )
17893 gdb_cv_prfpregset_t_broken
=yes
17895 rm -f core
*.core gmon.out bb.out conftest
$ac_exeext conftest.
$ac_objext conftest.
$ac_ext
17899 echo "$as_me:$LINENO: result: $gdb_cv_prfpregset_t_broken" >&5
17900 echo "${ECHO_T}$gdb_cv_prfpregset_t_broken" >&6
17901 if test $gdb_cv_prfpregset_t_broken = yes; then
17903 cat >>confdefs.h
<<\_ACEOF
17904 #define PRFPREGSET_T_BROKEN 1
17911 echo "$as_me:$LINENO: checking for PIOCSET ioctl entry in sys/procfs.h" >&5
17912 echo $ECHO_N "checking for PIOCSET ioctl entry in sys/procfs.h... $ECHO_C" >&6
17913 if test "${gdb_cv_have_procfs_piocset+set}" = set; then
17914 echo $ECHO_N "(cached) $ECHO_C" >&6
17916 cat >conftest.
$ac_ext <<_ACEOF
17919 cat confdefs.h
>>conftest.
$ac_ext
17920 cat >>conftest.
$ac_ext <<_ACEOF
17921 /* end confdefs.h. */
17922 #include <unistd.h>
17923 #include <sys/types.h>
17924 #include <sys/procfs.h>
17931 dummy = ioctl(0, PIOCSET, &dummy);
17937 rm -f conftest.
$ac_objext
17938 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
17939 (eval $ac_compile) 2>conftest.er1
17941 grep -v '^ *+' conftest.er1
>conftest.err
17943 cat conftest.err
>&5
17944 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17945 (exit $ac_status); } &&
17946 { ac_try
='test -z "$ac_c_werror_flag"
17947 || test ! -s conftest.err'
17948 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17949 (eval $ac_try) 2>&5
17951 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17952 (exit $ac_status); }; } &&
17953 { ac_try
='test -s conftest.$ac_objext'
17954 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17955 (eval $ac_try) 2>&5
17957 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17958 (exit $ac_status); }; }; then
17959 gdb_cv_have_procfs_piocset
=yes
17961 echo "$as_me: failed program was:" >&5
17962 sed 's/^/| /' conftest.
$ac_ext >&5
17964 gdb_cv_have_procfs_piocset
=no
17966 rm -f conftest.err conftest.
$ac_objext conftest.
$ac_ext
17969 echo "$as_me:$LINENO: result: $gdb_cv_have_procfs_piocset" >&5
17970 echo "${ECHO_T}$gdb_cv_have_procfs_piocset" >&6
17971 if test $gdb_cv_have_procfs_piocset = yes; then
17973 cat >>confdefs.h
<<\_ACEOF
17974 #define HAVE_PROCFS_PIOCSET 1
17980 if test ${host} = ${target} ; then
17982 echo "$as_me:$LINENO: checking for member l_addr in struct link_map" >&5
17983 echo $ECHO_N "checking for member l_addr in struct link_map... $ECHO_C" >&6
17984 if test "${gdb_cv_have_struct_link_map_with_l_members+set}" = set; then
17985 echo $ECHO_N "(cached) $ECHO_C" >&6
17987 cat >conftest.
$ac_ext <<_ACEOF
17990 cat confdefs.h
>>conftest.
$ac_ext
17991 cat >>conftest.
$ac_ext <<_ACEOF
17992 /* end confdefs.h. */
17997 struct link_map lm; (void) lm.l_addr;
18002 rm -f conftest.
$ac_objext
18003 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
18004 (eval $ac_compile) 2>conftest.er1
18006 grep -v '^ *+' conftest.er1
>conftest.err
18008 cat conftest.err
>&5
18009 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18010 (exit $ac_status); } &&
18011 { ac_try
='test -z "$ac_c_werror_flag"
18012 || test ! -s conftest.err'
18013 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18014 (eval $ac_try) 2>&5
18016 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18017 (exit $ac_status); }; } &&
18018 { ac_try
='test -s conftest.$ac_objext'
18019 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18020 (eval $ac_try) 2>&5
18022 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18023 (exit $ac_status); }; }; then
18024 gdb_cv_have_struct_link_map_with_l_members
=yes
18026 echo "$as_me: failed program was:" >&5
18027 sed 's/^/| /' conftest.
$ac_ext >&5
18029 gdb_cv_have_struct_link_map_with_l_members
=no
18031 rm -f conftest.err conftest.
$ac_objext conftest.
$ac_ext
18034 echo "$as_me:$LINENO: result: $gdb_cv_have_struct_link_map_with_l_members" >&5
18035 echo "${ECHO_T}$gdb_cv_have_struct_link_map_with_l_members" >&6
18036 if test $gdb_cv_have_struct_link_map_with_l_members = yes; then
18038 cat >>confdefs.h
<<\_ACEOF
18039 #define HAVE_STRUCT_LINK_MAP_WITH_L_MEMBERS 1
18045 echo "$as_me:$LINENO: checking for member lm_addr in struct link_map" >&5
18046 echo $ECHO_N "checking for member lm_addr in struct link_map... $ECHO_C" >&6
18047 if test "${gdb_cv_have_struct_link_map_with_lm_members+set}" = set; then
18048 echo $ECHO_N "(cached) $ECHO_C" >&6
18050 cat >conftest.
$ac_ext <<_ACEOF
18053 cat confdefs.h
>>conftest.
$ac_ext
18054 cat >>conftest.
$ac_ext <<_ACEOF
18055 /* end confdefs.h. */
18056 #include <sys/types.h>
18061 struct link_map lm; (void) lm.lm_addr;
18066 rm -f conftest.
$ac_objext
18067 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
18068 (eval $ac_compile) 2>conftest.er1
18070 grep -v '^ *+' conftest.er1
>conftest.err
18072 cat conftest.err
>&5
18073 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18074 (exit $ac_status); } &&
18075 { ac_try
='test -z "$ac_c_werror_flag"
18076 || test ! -s conftest.err'
18077 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18078 (eval $ac_try) 2>&5
18080 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18081 (exit $ac_status); }; } &&
18082 { ac_try
='test -s conftest.$ac_objext'
18083 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18084 (eval $ac_try) 2>&5
18086 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18087 (exit $ac_status); }; }; then
18088 gdb_cv_have_struct_link_map_with_lm_members
=yes
18090 echo "$as_me: failed program was:" >&5
18091 sed 's/^/| /' conftest.
$ac_ext >&5
18093 gdb_cv_have_struct_link_map_with_lm_members
=no
18095 rm -f conftest.err conftest.
$ac_objext conftest.
$ac_ext
18098 echo "$as_me:$LINENO: result: $gdb_cv_have_struct_link_map_with_lm_members" >&5
18099 echo "${ECHO_T}$gdb_cv_have_struct_link_map_with_lm_members" >&6
18100 if test $gdb_cv_have_struct_link_map_with_lm_members = yes; then
18102 cat >>confdefs.h
<<\_ACEOF
18103 #define HAVE_STRUCT_LINK_MAP_WITH_LM_MEMBERS 1
18109 echo "$as_me:$LINENO: checking for member som_addr in struct so_map" >&5
18110 echo $ECHO_N "checking for member som_addr in struct so_map... $ECHO_C" >&6
18111 if test "${gdb_cv_have_struct_so_map_with_som_members+set}" = set; then
18112 echo $ECHO_N "(cached) $ECHO_C" >&6
18114 cat >conftest.
$ac_ext <<_ACEOF
18117 cat confdefs.h
>>conftest.
$ac_ext
18118 cat >>conftest.
$ac_ext <<_ACEOF
18119 /* end confdefs.h. */
18120 #include <sys/types.h>
18121 #ifdef HAVE_NLIST_H
18128 struct so_map lm; (void) lm.som_addr;
18133 rm -f conftest.
$ac_objext
18134 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
18135 (eval $ac_compile) 2>conftest.er1
18137 grep -v '^ *+' conftest.er1
>conftest.err
18139 cat conftest.err
>&5
18140 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18141 (exit $ac_status); } &&
18142 { ac_try
='test -z "$ac_c_werror_flag"
18143 || test ! -s conftest.err'
18144 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18145 (eval $ac_try) 2>&5
18147 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18148 (exit $ac_status); }; } &&
18149 { ac_try
='test -s conftest.$ac_objext'
18150 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18151 (eval $ac_try) 2>&5
18153 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18154 (exit $ac_status); }; }; then
18155 gdb_cv_have_struct_so_map_with_som_members
=yes
18157 echo "$as_me: failed program was:" >&5
18158 sed 's/^/| /' conftest.
$ac_ext >&5
18160 gdb_cv_have_struct_so_map_with_som_members
=no
18162 rm -f conftest.err conftest.
$ac_objext conftest.
$ac_ext
18165 echo "$as_me:$LINENO: result: $gdb_cv_have_struct_so_map_with_som_members" >&5
18166 echo "${ECHO_T}$gdb_cv_have_struct_so_map_with_som_members" >&6
18167 if test $gdb_cv_have_struct_so_map_with_som_members = yes; then
18169 cat >>confdefs.h
<<\_ACEOF
18170 #define HAVE_STRUCT_SO_MAP_WITH_SOM_MEMBERS 1
18176 echo "$as_me:$LINENO: checking for struct link_map32 in sys/link.h" >&5
18177 echo $ECHO_N "checking for struct link_map32 in sys/link.h... $ECHO_C" >&6
18178 if test "${gdb_cv_have_struct_link_map32+set}" = set; then
18179 echo $ECHO_N "(cached) $ECHO_C" >&6
18181 cat >conftest.
$ac_ext <<_ACEOF
18184 cat confdefs.h
>>conftest.
$ac_ext
18185 cat >>conftest.
$ac_ext <<_ACEOF
18186 /* end confdefs.h. */
18188 #include <sys/link.h>
18192 struct link_map32 l;
18197 rm -f conftest.
$ac_objext
18198 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
18199 (eval $ac_compile) 2>conftest.er1
18201 grep -v '^ *+' conftest.er1
>conftest.err
18203 cat conftest.err
>&5
18204 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18205 (exit $ac_status); } &&
18206 { ac_try
='test -z "$ac_c_werror_flag"
18207 || test ! -s conftest.err'
18208 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18209 (eval $ac_try) 2>&5
18211 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18212 (exit $ac_status); }; } &&
18213 { ac_try
='test -s conftest.$ac_objext'
18214 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18215 (eval $ac_try) 2>&5
18217 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18218 (exit $ac_status); }; }; then
18219 gdb_cv_have_struct_link_map32
=yes
18221 echo "$as_me: failed program was:" >&5
18222 sed 's/^/| /' conftest.
$ac_ext >&5
18224 gdb_cv_have_struct_link_map32
=no
18226 rm -f conftest.err conftest.
$ac_objext conftest.
$ac_ext
18229 echo "$as_me:$LINENO: result: $gdb_cv_have_struct_link_map32" >&5
18230 echo "${ECHO_T}$gdb_cv_have_struct_link_map32" >&6
18231 if test $gdb_cv_have_struct_link_map32 = yes; then
18233 cat >>confdefs.h
<<\_ACEOF
18234 #define HAVE_STRUCT_LINK_MAP32 1
18238 cat >>confdefs.h
<<\_ACEOF
18239 #define _SYSCALL32 1
18245 # Check if the compiler supports the `long long' type.
18247 echo "$as_me:$LINENO: checking for long long support in compiler" >&5
18248 echo $ECHO_N "checking for long long support in compiler... $ECHO_C" >&6
18249 if test "${gdb_cv_c_long_long+set}" = set; then
18250 echo $ECHO_N "(cached) $ECHO_C" >&6
18252 cat >conftest.
$ac_ext <<_ACEOF
18255 cat confdefs.h
>>conftest.
$ac_ext
18256 cat >>conftest.
$ac_ext <<_ACEOF
18257 /* end confdefs.h. */
18258 extern long long foo;
18262 switch (foo & 2) { case 0: return 1; }
18267 rm -f conftest.
$ac_objext
18268 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
18269 (eval $ac_compile) 2>conftest.er1
18271 grep -v '^ *+' conftest.er1
>conftest.err
18273 cat conftest.err
>&5
18274 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18275 (exit $ac_status); } &&
18276 { ac_try
='test -z "$ac_c_werror_flag"
18277 || test ! -s conftest.err'
18278 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18279 (eval $ac_try) 2>&5
18281 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18282 (exit $ac_status); }; } &&
18283 { ac_try
='test -s conftest.$ac_objext'
18284 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18285 (eval $ac_try) 2>&5
18287 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18288 (exit $ac_status); }; }; then
18289 gdb_cv_c_long_long
=yes
18291 echo "$as_me: failed program was:" >&5
18292 sed 's/^/| /' conftest.
$ac_ext >&5
18294 gdb_cv_c_long_long
=no
18296 rm -f conftest.err conftest.
$ac_objext conftest.
$ac_ext
18298 echo "$as_me:$LINENO: result: $gdb_cv_c_long_long" >&5
18299 echo "${ECHO_T}$gdb_cv_c_long_long" >&6
18300 if test $gdb_cv_c_long_long = yes; then
18302 cat >>confdefs.h
<<\_ACEOF
18303 #define CC_HAS_LONG_LONG 1
18308 # Check if the compiler and runtime support printing long longs.
18310 echo "$as_me:$LINENO: checking for long long support in printf" >&5
18311 echo $ECHO_N "checking for long long support in printf... $ECHO_C" >&6
18312 if test "${gdb_cv_printf_has_long_long+set}" = set; then
18313 echo $ECHO_N "(cached) $ECHO_C" >&6
18315 if test "$cross_compiling" = yes; then
18316 gdb_cv_printf_has_long_long
=no
18318 cat >conftest.
$ac_ext <<_ACEOF
18321 cat confdefs.h
>>conftest.
$ac_ext
18322 cat >>conftest.
$ac_ext <<_ACEOF
18323 /* end confdefs.h. */
18324 $ac_includes_default
18330 l = (l << 16) + 0x0123;
18331 l = (l << 16) + 0x4567;
18332 l = (l << 16) + 0x89ab;
18333 l = (l << 16) + 0xcdef;
18334 sprintf (buf, "0x%016llx", l);
18335 return (strcmp ("0x0123456789abcdef", buf));
18340 rm -f conftest
$ac_exeext
18341 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
18342 (eval $ac_link) 2>&5
18344 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18345 (exit $ac_status); } && { ac_try
='./conftest$ac_exeext'
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); }; }; then
18351 gdb_cv_printf_has_long_long
=yes
18353 echo "$as_me: program exited with status $ac_status" >&5
18354 echo "$as_me: failed program was:" >&5
18355 sed 's/^/| /' conftest.
$ac_ext >&5
18357 ( exit $ac_status )
18358 gdb_cv_printf_has_long_long
=no
18360 rm -f core
*.core gmon.out bb.out conftest
$ac_exeext conftest.
$ac_objext conftest.
$ac_ext
18363 echo "$as_me:$LINENO: result: $gdb_cv_printf_has_long_long" >&5
18364 echo "${ECHO_T}$gdb_cv_printf_has_long_long" >&6
18365 if test $gdb_cv_printf_has_long_long = yes; then
18367 cat >>confdefs.h
<<\_ACEOF
18368 #define PRINTF_HAS_LONG_LONG 1
18373 # Check if the compiler and runtime support printing decfloats.
18375 echo "$as_me:$LINENO: checking for decfloat support in printf" >&5
18376 echo $ECHO_N "checking for decfloat support in printf... $ECHO_C" >&6
18377 if test "${gdb_cv_printf_has_decfloat+set}" = set; then
18378 echo $ECHO_N "(cached) $ECHO_C" >&6
18380 if test "$cross_compiling" = yes; then
18381 gdb_cv_printf_has_decfloat
=no
18383 cat >conftest.
$ac_ext <<_ACEOF
18386 cat confdefs.h
>>conftest.
$ac_ext
18387 cat >>conftest.
$ac_ext <<_ACEOF
18388 /* end confdefs.h. */
18389 $ac_includes_default
18394 _Decimal32 d32 = 1.2345df;
18395 _Decimal64 d64 = 1.2345dd;
18396 _Decimal128 d128 = 1.2345dl;
18397 sprintf (buf, "Decimal32: %H\nDecimal64: %D\nDecimal128: %DD", d32, d64, d128);
18398 return (strcmp ("Decimal32: 1.2345\nDecimal64: 1.2345\nDecimal128: 1.2345", buf));
18403 rm -f conftest
$ac_exeext
18404 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
18405 (eval $ac_link) 2>&5
18407 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18408 (exit $ac_status); } && { ac_try
='./conftest$ac_exeext'
18409 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18410 (eval $ac_try) 2>&5
18412 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18413 (exit $ac_status); }; }; then
18414 gdb_cv_printf_has_decfloat
=yes
18416 echo "$as_me: program exited with status $ac_status" >&5
18417 echo "$as_me: failed program was:" >&5
18418 sed 's/^/| /' conftest.
$ac_ext >&5
18420 ( exit $ac_status )
18421 gdb_cv_printf_has_decfloat
=no
18423 rm -f core
*.core gmon.out bb.out conftest
$ac_exeext conftest.
$ac_objext conftest.
$ac_ext
18426 echo "$as_me:$LINENO: result: $gdb_cv_printf_has_decfloat" >&5
18427 echo "${ECHO_T}$gdb_cv_printf_has_decfloat" >&6
18428 if test $gdb_cv_printf_has_decfloat = yes; then
18430 cat >>confdefs.h
<<\_ACEOF
18431 #define PRINTF_HAS_DECFLOAT 1
18436 # Check if the compiler supports the `long double' type. We can't use
18437 # AC_C_LONG_DOUBLE because that one does additional checks on the
18438 # constants defined in <float.h> that fail on some systems,
18439 # e.g. FreeBSD/i386 4.7 and OpenBSD/i386 3.6.
18441 echo "$as_me:$LINENO: checking for long double support in compiler" >&5
18442 echo $ECHO_N "checking for long double support in compiler... $ECHO_C" >&6
18443 if test "${gdb_cv_c_long_double+set}" = set; then
18444 echo $ECHO_N "(cached) $ECHO_C" >&6
18446 cat >conftest.
$ac_ext <<_ACEOF
18449 cat confdefs.h
>>conftest.
$ac_ext
18450 cat >>conftest.
$ac_ext <<_ACEOF
18451 /* end confdefs.h. */
18454 rm -f conftest.
$ac_objext
18455 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
18456 (eval $ac_compile) 2>conftest.er1
18458 grep -v '^ *+' conftest.er1
>conftest.err
18460 cat conftest.err
>&5
18461 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18462 (exit $ac_status); } &&
18463 { ac_try
='test -z "$ac_c_werror_flag"
18464 || test ! -s conftest.err'
18465 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18466 (eval $ac_try) 2>&5
18468 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18469 (exit $ac_status); }; } &&
18470 { ac_try
='test -s conftest.$ac_objext'
18471 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18472 (eval $ac_try) 2>&5
18474 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18475 (exit $ac_status); }; }; then
18476 gdb_cv_c_long_double
=yes
18478 echo "$as_me: failed program was:" >&5
18479 sed 's/^/| /' conftest.
$ac_ext >&5
18481 gdb_cv_c_long_double
=no
18483 rm -f conftest.err conftest.
$ac_objext conftest.
$ac_ext
18485 echo "$as_me:$LINENO: result: $gdb_cv_c_long_double" >&5
18486 echo "${ECHO_T}$gdb_cv_c_long_double" >&6
18487 if test $gdb_cv_c_long_double = yes; then
18489 cat >>confdefs.h
<<\_ACEOF
18490 #define HAVE_LONG_DOUBLE 1
18495 # Check if the compiler and runtime support printing long doubles.
18497 echo "$as_me:$LINENO: checking for long double support in printf" >&5
18498 echo $ECHO_N "checking for long double support in printf... $ECHO_C" >&6
18499 if test "${gdb_cv_printf_has_long_double+set}" = set; then
18500 echo $ECHO_N "(cached) $ECHO_C" >&6
18502 if test "$cross_compiling" = yes; then
18503 gdb_cv_printf_has_long_double
=no
18505 cat >conftest.
$ac_ext <<_ACEOF
18508 cat confdefs.h
>>conftest.
$ac_ext
18509 cat >>conftest.
$ac_ext <<_ACEOF
18510 /* end confdefs.h. */
18511 $ac_includes_default
18516 long double f = 3.141592653;
18517 sprintf (buf, "%Lg", f);
18518 return (strncmp ("3.14159", buf, 7));
18523 rm -f conftest
$ac_exeext
18524 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
18525 (eval $ac_link) 2>&5
18527 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18528 (exit $ac_status); } && { ac_try
='./conftest$ac_exeext'
18529 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18530 (eval $ac_try) 2>&5
18532 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18533 (exit $ac_status); }; }; then
18534 gdb_cv_printf_has_long_double
=yes
18536 echo "$as_me: program exited with status $ac_status" >&5
18537 echo "$as_me: failed program was:" >&5
18538 sed 's/^/| /' conftest.
$ac_ext >&5
18540 ( exit $ac_status )
18541 gdb_cv_printf_has_long_double
=no
18543 rm -f core
*.core gmon.out bb.out conftest
$ac_exeext conftest.
$ac_objext conftest.
$ac_ext
18546 echo "$as_me:$LINENO: result: $gdb_cv_printf_has_long_double" >&5
18547 echo "${ECHO_T}$gdb_cv_printf_has_long_double" >&6
18548 if test $gdb_cv_printf_has_long_double = yes; then
18550 cat >>confdefs.h
<<\_ACEOF
18551 #define PRINTF_HAS_LONG_DOUBLE 1
18556 # Check if the compiler and runtime support scanning long doubles.
18558 echo "$as_me:$LINENO: checking for long double support in scanf" >&5
18559 echo $ECHO_N "checking for long double support in scanf... $ECHO_C" >&6
18560 if test "${gdb_cv_scanf_has_long_double+set}" = set; then
18561 echo $ECHO_N "(cached) $ECHO_C" >&6
18563 if test "$cross_compiling" = yes; then
18564 gdb_cv_scanf_has_long_double
=no
18566 cat >conftest.
$ac_ext <<_ACEOF
18569 cat confdefs.h
>>conftest.
$ac_ext
18570 cat >>conftest.
$ac_ext <<_ACEOF
18571 /* end confdefs.h. */
18576 char *buf = "3.141592653";
18578 sscanf (buf, "%Lg", &f);
18579 return !(f > 3.14159 && f < 3.14160);
18584 rm -f conftest
$ac_exeext
18585 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
18586 (eval $ac_link) 2>&5
18588 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18589 (exit $ac_status); } && { ac_try
='./conftest$ac_exeext'
18590 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18591 (eval $ac_try) 2>&5
18593 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18594 (exit $ac_status); }; }; then
18595 gdb_cv_scanf_has_long_double
=yes
18597 echo "$as_me: program exited with status $ac_status" >&5
18598 echo "$as_me: failed program was:" >&5
18599 sed 's/^/| /' conftest.
$ac_ext >&5
18601 ( exit $ac_status )
18602 gdb_cv_scanf_has_long_double
=no
18604 rm -f core
*.core gmon.out bb.out conftest
$ac_exeext conftest.
$ac_objext conftest.
$ac_ext
18607 echo "$as_me:$LINENO: result: $gdb_cv_scanf_has_long_double" >&5
18608 echo "${ECHO_T}$gdb_cv_scanf_has_long_double" >&6
18609 if test $gdb_cv_scanf_has_long_double = yes; then
18611 cat >>confdefs.h
<<\_ACEOF
18612 #define SCANF_HAS_LONG_DOUBLE 1
18619 echo "$as_me:$LINENO: checking for -bbigtoc option" >&5
18620 echo $ECHO_N "checking for -bbigtoc option... $ECHO_C" >&6
18621 if test "${gdb_cv_bigtoc+set}" = set; then
18622 echo $ECHO_N "(cached) $ECHO_C" >&6
18625 SAVE_LDFLAGS
=$LDFLAGS
18628 yes) gdb_cv_bigtoc
=-Wl,-bbigtoc ;;
18629 *) gdb_cv_bigtoc
=-bbigtoc ;;
18632 LDFLAGS
=$LDFLAGS\
$gdb_cv_bigtoc
18633 cat >conftest.
$ac_ext <<_ACEOF
18636 cat confdefs.h
>>conftest.
$ac_ext
18637 cat >>conftest.
$ac_ext <<_ACEOF
18638 /* end confdefs.h. */
18648 rm -f conftest.
$ac_objext conftest
$ac_exeext
18649 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
18650 (eval $ac_link) 2>conftest.er1
18652 grep -v '^ *+' conftest.er1
>conftest.err
18654 cat conftest.err
>&5
18655 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18656 (exit $ac_status); } &&
18657 { ac_try
='test -z "$ac_c_werror_flag"
18658 || test ! -s conftest.err'
18659 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18660 (eval $ac_try) 2>&5
18662 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18663 (exit $ac_status); }; } &&
18664 { ac_try
='test -s conftest$ac_exeext'
18665 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18666 (eval $ac_try) 2>&5
18668 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18669 (exit $ac_status); }; }; then
18672 echo "$as_me: failed program was:" >&5
18673 sed 's/^/| /' conftest.
$ac_ext >&5
18677 rm -f conftest.err conftest.
$ac_objext \
18678 conftest
$ac_exeext conftest.
$ac_ext
18679 LDFLAGS
="${SAVE_LDFLAGS}"
18682 echo "$as_me:$LINENO: result: $gdb_cv_bigtoc" >&5
18683 echo "${ECHO_T}$gdb_cv_bigtoc" >&6
18684 CONFIG_LDFLAGS
="${CONFIG_LDFLAGS} ${gdb_cv_bigtoc}"
18690 if test ${build} = ${host} -a ${host} = ${target} ; then
18693 echo "$as_me:$LINENO: checking for HPUX/OSF thread support" >&5
18694 echo $ECHO_N "checking for HPUX/OSF thread support... $ECHO_C" >&6
18695 if test -f /usr
/include
/dce
/cma_config.h
; then
18696 if test "$GCC" = "yes" ; then
18697 echo "$as_me:$LINENO: result: yes" >&5
18698 echo "${ECHO_T}yes" >&6
18700 cat >>confdefs.h
<<\_ACEOF
18701 #define HAVE_HPUX_THREAD_SUPPORT 1
18704 CONFIG_OBS
="${CONFIG_OBS} hpux-thread.o"
18705 CONFIG_SRCS
="${CONFIG_SRCS} hpux-thread.c"
18707 echo "$as_me:$LINENO: result: no (suppressed because you are not using GCC)" >&5
18708 echo "${ECHO_T}no (suppressed because you are not using GCC)" >&6
18711 echo "$as_me:$LINENO: result: no" >&5
18712 echo "${ECHO_T}no" >&6
18716 # See if thread_db library is around for Solaris thread debugging.
18717 # Note that we must explicitly test for version 1 of the library
18718 # because version 0 (present on Solaris 2.4 or earlier) doesn't have
18720 echo "$as_me:$LINENO: checking for Solaris thread debugging library" >&5
18721 echo $ECHO_N "checking for Solaris thread debugging library... $ECHO_C" >&6
18722 if test -f /usr
/lib
/libthread_db.so
.1 ; then
18723 echo "$as_me:$LINENO: result: yes" >&5
18724 echo "${ECHO_T}yes" >&6
18726 cat >>confdefs.h
<<\_ACEOF
18727 #define HAVE_THREAD_DB_LIB 1
18730 CONFIG_OBS
="${CONFIG_OBS} sol-thread.o"
18731 CONFIG_SRCS
="${CONFIG_SRCS} sol-thread.c"
18733 echo "$as_me:$LINENO: checking for dlopen in -ldl" >&5
18734 echo $ECHO_N "checking for dlopen in -ldl... $ECHO_C" >&6
18735 if test "${ac_cv_lib_dl_dlopen+set}" = set; then
18736 echo $ECHO_N "(cached) $ECHO_C" >&6
18738 ac_check_lib_save_LIBS
=$LIBS
18740 cat >conftest.
$ac_ext <<_ACEOF
18743 cat confdefs.h
>>conftest.
$ac_ext
18744 cat >>conftest.
$ac_ext <<_ACEOF
18745 /* end confdefs.h. */
18747 /* Override any gcc2 internal prototype to avoid an error. */
18751 /* We use char because int might match the return type of a gcc2
18752 builtin and then its argument prototype would still apply. */
18762 rm -f conftest.
$ac_objext conftest
$ac_exeext
18763 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
18764 (eval $ac_link) 2>conftest.er1
18766 grep -v '^ *+' conftest.er1
>conftest.err
18768 cat conftest.err
>&5
18769 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18770 (exit $ac_status); } &&
18771 { ac_try
='test -z "$ac_c_werror_flag"
18772 || test ! -s conftest.err'
18773 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18774 (eval $ac_try) 2>&5
18776 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18777 (exit $ac_status); }; } &&
18778 { ac_try
='test -s conftest$ac_exeext'
18779 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18780 (eval $ac_try) 2>&5
18782 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18783 (exit $ac_status); }; }; then
18784 ac_cv_lib_dl_dlopen
=yes
18786 echo "$as_me: failed program was:" >&5
18787 sed 's/^/| /' conftest.
$ac_ext >&5
18789 ac_cv_lib_dl_dlopen
=no
18791 rm -f conftest.err conftest.
$ac_objext \
18792 conftest
$ac_exeext conftest.
$ac_ext
18793 LIBS
=$ac_check_lib_save_LIBS
18795 echo "$as_me:$LINENO: result: $ac_cv_lib_dl_dlopen" >&5
18796 echo "${ECHO_T}$ac_cv_lib_dl_dlopen" >&6
18797 if test $ac_cv_lib_dl_dlopen = yes; then
18798 cat >>confdefs.h
<<_ACEOF
18799 #define HAVE_LIBDL 1
18806 if test "$GCC" = "yes" ; then
18807 # The GNU linker requires the -export-dynamic option to make
18808 # all symbols visible in the dynamic symbol table.
18809 hold_ldflags
=$LDFLAGS
18810 echo "$as_me:$LINENO: checking for the ld -export-dynamic flag" >&5
18811 echo $ECHO_N "checking for the ld -export-dynamic flag... $ECHO_C" >&6
18812 LDFLAGS
="${LDFLAGS} -Wl,-export-dynamic"
18813 cat >conftest.
$ac_ext <<_ACEOF
18816 cat confdefs.h
>>conftest.
$ac_ext
18817 cat >>conftest.
$ac_ext <<_ACEOF
18818 /* end confdefs.h. */
18828 rm -f conftest.
$ac_objext conftest
$ac_exeext
18829 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
18830 (eval $ac_link) 2>conftest.er1
18832 grep -v '^ *+' conftest.er1
>conftest.err
18834 cat conftest.err
>&5
18835 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18836 (exit $ac_status); } &&
18837 { ac_try
='test -z "$ac_c_werror_flag"
18838 || test ! -s conftest.err'
18839 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18840 (eval $ac_try) 2>&5
18842 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18843 (exit $ac_status); }; } &&
18844 { ac_try
='test -s conftest$ac_exeext'
18845 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18846 (eval $ac_try) 2>&5
18848 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18849 (exit $ac_status); }; }; then
18852 echo "$as_me: failed program was:" >&5
18853 sed 's/^/| /' conftest.
$ac_ext >&5
18857 rm -f conftest.err conftest.
$ac_objext \
18858 conftest
$ac_exeext conftest.
$ac_ext
18859 LDFLAGS
=$hold_ldflags
18860 echo "$as_me:$LINENO: result: $found" >&5
18861 echo "${ECHO_T}$found" >&6
18862 if test $found = yes; then
18863 CONFIG_LDFLAGS
="${CONFIG_LDFLAGS} -Wl,-export-dynamic"
18866 # Sun randomly tweaked the prototypes in <proc_service.h>
18868 echo "$as_me:$LINENO: checking if <proc_service.h> is old" >&5
18869 echo $ECHO_N "checking if <proc_service.h> is old... $ECHO_C" >&6
18870 if test "${gdb_cv_proc_service_is_old+set}" = set; then
18871 echo $ECHO_N "(cached) $ECHO_C" >&6
18874 cat >conftest.
$ac_ext <<_ACEOF
18877 cat confdefs.h
>>conftest.
$ac_ext
18878 cat >>conftest.
$ac_ext <<_ACEOF
18879 /* end confdefs.h. */
18881 #include <proc_service.h>
18882 ps_err_e ps_pdwrite
18883 (struct ps_prochandle*, psaddr_t, const void*, size_t);
18893 rm -f conftest.
$ac_objext
18894 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
18895 (eval $ac_compile) 2>conftest.er1
18897 grep -v '^ *+' conftest.er1
>conftest.err
18899 cat conftest.err
>&5
18900 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18901 (exit $ac_status); } &&
18902 { ac_try
='test -z "$ac_c_werror_flag"
18903 || test ! -s conftest.err'
18904 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18905 (eval $ac_try) 2>&5
18907 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18908 (exit $ac_status); }; } &&
18909 { ac_try
='test -s conftest.$ac_objext'
18910 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18911 (eval $ac_try) 2>&5
18913 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18914 (exit $ac_status); }; }; then
18915 gdb_cv_proc_service_is_old
=no
18917 echo "$as_me: failed program was:" >&5
18918 sed 's/^/| /' conftest.
$ac_ext >&5
18920 gdb_cv_proc_service_is_old
=yes
18922 rm -f conftest.err conftest.
$ac_objext conftest.
$ac_ext
18926 echo "$as_me:$LINENO: result: $gdb_cv_proc_service_is_old" >&5
18927 echo "${ECHO_T}$gdb_cv_proc_service_is_old" >&6
18928 if test $gdb_cv_proc_service_is_old = yes; then
18930 cat >>confdefs.h
<<\_ACEOF
18931 #define PROC_SERVICE_IS_OLD 1
18936 echo "$as_me:$LINENO: result: no" >&5
18937 echo "${ECHO_T}no" >&6
18941 echo "$as_me:$LINENO: checking for AiX thread debugging library" >&5
18942 echo $ECHO_N "checking for AiX thread debugging library... $ECHO_C" >&6
18943 if test "${gdb_cv_have_aix_thread_debug+set}" = set; then
18944 echo $ECHO_N "(cached) $ECHO_C" >&6
18946 cat >conftest.
$ac_ext <<_ACEOF
18949 cat confdefs.h
>>conftest.
$ac_ext
18950 cat >>conftest.
$ac_ext <<_ACEOF
18951 /* end confdefs.h. */
18952 #include <sys/pthdebug.h>
18956 #ifndef PTHDB_VERSION_3
18963 rm -f conftest.
$ac_objext
18964 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
18965 (eval $ac_compile) 2>conftest.er1
18967 grep -v '^ *+' conftest.er1
>conftest.err
18969 cat conftest.err
>&5
18970 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18971 (exit $ac_status); } &&
18972 { ac_try
='test -z "$ac_c_werror_flag"
18973 || test ! -s conftest.err'
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); }; } &&
18979 { ac_try
='test -s conftest.$ac_objext'
18980 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18981 (eval $ac_try) 2>&5
18983 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18984 (exit $ac_status); }; }; then
18985 gdb_cv_have_aix_thread_debug
=yes
18987 echo "$as_me: failed program was:" >&5
18988 sed 's/^/| /' conftest.
$ac_ext >&5
18990 gdb_cv_have_aix_thread_debug
=no
18992 rm -f conftest.err conftest.
$ac_objext conftest.
$ac_ext
18995 echo "$as_me:$LINENO: result: $gdb_cv_have_aix_thread_debug" >&5
18996 echo "${ECHO_T}$gdb_cv_have_aix_thread_debug" >&6
18997 if test $gdb_cv_have_aix_thread_debug = yes; then
18998 CONFIG_SRCS
="${CONFIG_SRCS} aix-thread.c"
18999 CONFIG_OBS
="${CONFIG_OBS} aix-thread.o"
19000 CONFIG_LDFLAGS
="${CONFIG_LDFLAGS} -lpthdebug"
19007 if test "x$ac_cv_header_thread_db_h" = "xyes"; then
19008 echo "$as_me:$LINENO: checking whether <thread_db.h> has TD_NOTALLOC" >&5
19009 echo $ECHO_N "checking whether <thread_db.h> has TD_NOTALLOC... $ECHO_C" >&6
19010 if test "${gdb_cv_thread_db_h_has_td_notalloc+set}" = set; then
19011 echo $ECHO_N "(cached) $ECHO_C" >&6
19013 cat >conftest.
$ac_ext <<_ACEOF
19016 cat confdefs.h
>>conftest.
$ac_ext
19017 cat >>conftest.
$ac_ext <<_ACEOF
19018 /* end confdefs.h. */
19019 #include <thread_db.h>
19023 int i = TD_NOTALLOC;
19028 rm -f conftest.
$ac_objext
19029 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
19030 (eval $ac_compile) 2>conftest.er1
19032 grep -v '^ *+' conftest.er1
>conftest.err
19034 cat conftest.err
>&5
19035 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19036 (exit $ac_status); } &&
19037 { ac_try
='test -z "$ac_c_werror_flag"
19038 || test ! -s conftest.err'
19039 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19040 (eval $ac_try) 2>&5
19042 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19043 (exit $ac_status); }; } &&
19044 { ac_try
='test -s conftest.$ac_objext'
19045 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19046 (eval $ac_try) 2>&5
19048 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19049 (exit $ac_status); }; }; then
19050 gdb_cv_thread_db_h_has_td_notalloc
=yes
19052 echo "$as_me: failed program was:" >&5
19053 sed 's/^/| /' conftest.
$ac_ext >&5
19055 gdb_cv_thread_db_h_has_td_notalloc
=no
19058 rm -f conftest.err conftest.
$ac_objext conftest.
$ac_ext
19061 echo "$as_me:$LINENO: result: $gdb_cv_thread_db_h_has_td_notalloc" >&5
19062 echo "${ECHO_T}$gdb_cv_thread_db_h_has_td_notalloc" >&6
19063 echo "$as_me:$LINENO: checking whether <thread_db.h> has TD_VERSION" >&5
19064 echo $ECHO_N "checking whether <thread_db.h> has TD_VERSION... $ECHO_C" >&6
19065 if test "${gdb_cv_thread_db_h_has_td_version+set}" = set; then
19066 echo $ECHO_N "(cached) $ECHO_C" >&6
19068 cat >conftest.
$ac_ext <<_ACEOF
19071 cat confdefs.h
>>conftest.
$ac_ext
19072 cat >>conftest.
$ac_ext <<_ACEOF
19073 /* end confdefs.h. */
19074 #include <thread_db.h>
19078 int i = TD_VERSION;
19083 rm -f conftest.
$ac_objext
19084 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
19085 (eval $ac_compile) 2>conftest.er1
19087 grep -v '^ *+' conftest.er1
>conftest.err
19089 cat conftest.err
>&5
19090 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19091 (exit $ac_status); } &&
19092 { ac_try
='test -z "$ac_c_werror_flag"
19093 || test ! -s conftest.err'
19094 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19095 (eval $ac_try) 2>&5
19097 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19098 (exit $ac_status); }; } &&
19099 { ac_try
='test -s conftest.$ac_objext'
19100 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19101 (eval $ac_try) 2>&5
19103 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19104 (exit $ac_status); }; }; then
19105 gdb_cv_thread_db_h_has_td_version
=yes
19107 echo "$as_me: failed program was:" >&5
19108 sed 's/^/| /' conftest.
$ac_ext >&5
19110 gdb_cv_thread_db_h_has_td_version
=no
19113 rm -f conftest.err conftest.
$ac_objext conftest.
$ac_ext
19116 echo "$as_me:$LINENO: result: $gdb_cv_thread_db_h_has_td_version" >&5
19117 echo "${ECHO_T}$gdb_cv_thread_db_h_has_td_version" >&6
19118 echo "$as_me:$LINENO: checking whether <thread_db.h> has TD_NOTLS" >&5
19119 echo $ECHO_N "checking whether <thread_db.h> has TD_NOTLS... $ECHO_C" >&6
19120 if test "${gdb_cv_thread_db_h_has_td_notls+set}" = set; then
19121 echo $ECHO_N "(cached) $ECHO_C" >&6
19123 cat >conftest.
$ac_ext <<_ACEOF
19126 cat confdefs.h
>>conftest.
$ac_ext
19127 cat >>conftest.
$ac_ext <<_ACEOF
19128 /* end confdefs.h. */
19129 #include <thread_db.h>
19138 rm -f conftest.
$ac_objext
19139 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
19140 (eval $ac_compile) 2>conftest.er1
19142 grep -v '^ *+' conftest.er1
>conftest.err
19144 cat conftest.err
>&5
19145 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19146 (exit $ac_status); } &&
19147 { ac_try
='test -z "$ac_c_werror_flag"
19148 || test ! -s conftest.err'
19149 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19150 (eval $ac_try) 2>&5
19152 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19153 (exit $ac_status); }; } &&
19154 { ac_try
='test -s conftest.$ac_objext'
19155 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19156 (eval $ac_try) 2>&5
19158 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19159 (exit $ac_status); }; }; then
19160 gdb_cv_thread_db_h_has_td_notls
=yes
19162 echo "$as_me: failed program was:" >&5
19163 sed 's/^/| /' conftest.
$ac_ext >&5
19165 gdb_cv_thread_db_h_has_td_notls
=no
19168 rm -f conftest.err conftest.
$ac_objext conftest.
$ac_ext
19171 echo "$as_me:$LINENO: result: $gdb_cv_thread_db_h_has_td_notls" >&5
19172 echo "${ECHO_T}$gdb_cv_thread_db_h_has_td_notls" >&6
19174 if test "x$gdb_cv_thread_db_h_has_td_notalloc" = "xyes"; then
19176 cat >>confdefs.h
<<\_ACEOF
19177 #define THREAD_DB_HAS_TD_NOTALLOC 1
19181 if test "x$gdb_cv_thread_db_h_has_td_version" = "xyes"; then
19183 cat >>confdefs.h
<<\_ACEOF
19184 #define THREAD_DB_HAS_TD_VERSION 1
19188 if test "x$gdb_cv_thread_db_h_has_td_notls" = "xyes"; then
19190 cat >>confdefs.h
<<\_ACEOF
19191 #define THREAD_DB_HAS_TD_NOTLS 1
19196 if test "x$ac_cv_header_sys_syscall_h" = "xyes"; then
19197 echo "$as_me:$LINENO: checking whether <sys/syscall.h> has __NR_tkill" >&5
19198 echo $ECHO_N "checking whether <sys/syscall.h> has __NR_tkill... $ECHO_C" >&6
19199 if test "${gdb_cv_sys_syscall_h_has_tkill+set}" = set; then
19200 echo $ECHO_N "(cached) $ECHO_C" >&6
19202 cat >conftest.
$ac_ext <<_ACEOF
19205 cat confdefs.h
>>conftest.
$ac_ext
19206 cat >>conftest.
$ac_ext <<_ACEOF
19207 /* end confdefs.h. */
19208 #include <sys/syscall.h>
19212 int i = __NR_tkill;
19217 rm -f conftest.
$ac_objext
19218 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
19219 (eval $ac_compile) 2>conftest.er1
19221 grep -v '^ *+' conftest.er1
>conftest.err
19223 cat conftest.err
>&5
19224 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19225 (exit $ac_status); } &&
19226 { ac_try
='test -z "$ac_c_werror_flag"
19227 || test ! -s conftest.err'
19228 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19229 (eval $ac_try) 2>&5
19231 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19232 (exit $ac_status); }; } &&
19233 { ac_try
='test -s conftest.$ac_objext'
19234 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19235 (eval $ac_try) 2>&5
19237 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19238 (exit $ac_status); }; }; then
19239 gdb_cv_sys_syscall_h_has_tkill
=yes
19241 echo "$as_me: failed program was:" >&5
19242 sed 's/^/| /' conftest.
$ac_ext >&5
19244 gdb_cv_sys_syscall_h_has_tkill
=no
19247 rm -f conftest.err conftest.
$ac_objext conftest.
$ac_ext
19250 echo "$as_me:$LINENO: result: $gdb_cv_sys_syscall_h_has_tkill" >&5
19251 echo "${ECHO_T}$gdb_cv_sys_syscall_h_has_tkill" >&6
19253 if test "x$gdb_cv_sys_syscall_h_has_tkill" = "xyes" && test "x$ac_cv_func_syscall" = "xyes"; then
19255 cat >>confdefs.h
<<\_ACEOF
19256 #define HAVE_TKILL_SYSCALL 1
19261 echo "$as_me:$LINENO: checking whether ADDR_NO_RANDOMIZE is declared" >&5
19262 echo $ECHO_N "checking whether ADDR_NO_RANDOMIZE is declared... $ECHO_C" >&6
19263 if test "${ac_cv_have_decl_ADDR_NO_RANDOMIZE+set}" = set; then
19264 echo $ECHO_N "(cached) $ECHO_C" >&6
19266 cat >conftest.
$ac_ext <<_ACEOF
19269 cat confdefs.h
>>conftest.
$ac_ext
19270 cat >>conftest.
$ac_ext <<_ACEOF
19271 /* end confdefs.h. */
19272 #include <sys/personality.h>
19277 #ifndef ADDR_NO_RANDOMIZE
19278 char *p = (char *) ADDR_NO_RANDOMIZE;
19285 rm -f conftest.
$ac_objext
19286 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
19287 (eval $ac_compile) 2>conftest.er1
19289 grep -v '^ *+' conftest.er1
>conftest.err
19291 cat conftest.err
>&5
19292 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19293 (exit $ac_status); } &&
19294 { ac_try
='test -z "$ac_c_werror_flag"
19295 || test ! -s conftest.err'
19296 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19297 (eval $ac_try) 2>&5
19299 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19300 (exit $ac_status); }; } &&
19301 { ac_try
='test -s conftest.$ac_objext'
19302 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19303 (eval $ac_try) 2>&5
19305 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19306 (exit $ac_status); }; }; then
19307 ac_cv_have_decl_ADDR_NO_RANDOMIZE
=yes
19309 echo "$as_me: failed program was:" >&5
19310 sed 's/^/| /' conftest.
$ac_ext >&5
19312 ac_cv_have_decl_ADDR_NO_RANDOMIZE
=no
19314 rm -f conftest.err conftest.
$ac_objext conftest.
$ac_ext
19316 echo "$as_me:$LINENO: result: $ac_cv_have_decl_ADDR_NO_RANDOMIZE" >&5
19317 echo "${ECHO_T}$ac_cv_have_decl_ADDR_NO_RANDOMIZE" >&6
19318 if test $ac_cv_have_decl_ADDR_NO_RANDOMIZE = yes; then
19320 cat >>confdefs.h
<<_ACEOF
19321 #define HAVE_DECL_ADDR_NO_RANDOMIZE 1
19326 cat >>confdefs.h
<<_ACEOF
19327 #define HAVE_DECL_ADDR_NO_RANDOMIZE 0
19335 if test "$cross_compiling" = yes; then
19336 cat >conftest.
$ac_ext <<_ACEOF
19339 cat confdefs.h
>>conftest.
$ac_ext
19340 cat >>conftest.
$ac_ext <<_ACEOF
19341 /* end confdefs.h. */
19342 #include <sys/personality.h>
19347 # if !HAVE_DECL_ADDR_NO_RANDOMIZE
19348 # define ADDR_NO_RANDOMIZE 0x0040000
19350 /* Test the flag could be set and stays set. */
19351 personality (personality (0xffffffff) | ADDR_NO_RANDOMIZE);
19352 if (!(personality (personality (0xffffffff)) & ADDR_NO_RANDOMIZE))
19358 rm -f conftest.
$ac_objext conftest
$ac_exeext
19359 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
19360 (eval $ac_link) 2>conftest.er1
19362 grep -v '^ *+' conftest.er1
>conftest.err
19364 cat conftest.err
>&5
19365 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19366 (exit $ac_status); } &&
19367 { ac_try
='test -z "$ac_c_werror_flag"
19368 || test ! -s conftest.err'
19369 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19370 (eval $ac_try) 2>&5
19372 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19373 (exit $ac_status); }; } &&
19374 { ac_try
='test -s conftest$ac_exeext'
19375 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19376 (eval $ac_try) 2>&5
19378 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19379 (exit $ac_status); }; }; then
19380 have_personality
=true
19382 echo "$as_me: failed program was:" >&5
19383 sed 's/^/| /' conftest.
$ac_ext >&5
19385 have_personality
=false
19387 rm -f conftest.err conftest.
$ac_objext \
19388 conftest
$ac_exeext conftest.
$ac_ext
19390 cat >conftest.
$ac_ext <<_ACEOF
19393 cat confdefs.h
>>conftest.
$ac_ext
19394 cat >>conftest.
$ac_ext <<_ACEOF
19395 /* end confdefs.h. */
19396 #include <sys/personality.h>
19401 # if !HAVE_DECL_ADDR_NO_RANDOMIZE
19402 # define ADDR_NO_RANDOMIZE 0x0040000
19404 /* Test the flag could be set and stays set. */
19405 personality (personality (0xffffffff) | ADDR_NO_RANDOMIZE);
19406 if (!(personality (personality (0xffffffff)) & ADDR_NO_RANDOMIZE))
19412 rm -f conftest
$ac_exeext
19413 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
19414 (eval $ac_link) 2>&5
19416 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19417 (exit $ac_status); } && { ac_try
='./conftest$ac_exeext'
19418 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19419 (eval $ac_try) 2>&5
19421 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19422 (exit $ac_status); }; }; then
19423 have_personality
=true
19425 echo "$as_me: program exited with status $ac_status" >&5
19426 echo "$as_me: failed program was:" >&5
19427 sed 's/^/| /' conftest.
$ac_ext >&5
19429 ( exit $ac_status )
19430 have_personality
=false
19432 rm -f core
*.core gmon.out bb.out conftest
$ac_exeext conftest.
$ac_objext conftest.
$ac_ext
19434 if $have_personality
19437 cat >>confdefs.h
<<\_ACEOF
19438 #define HAVE_PERSONALITY 1
19445 # Check whether --with-sysroot or --without-sysroot was given.
19446 if test "${with_sysroot+set}" = set; then
19447 withval
="$with_sysroot"
19449 case ${with_sysroot} in
19450 yes) TARGET_SYSTEM_ROOT
='${exec_prefix}/${target_alias}/sys-root' ;;
19451 *) TARGET_SYSTEM_ROOT
=$with_sysroot ;;
19454 TARGET_SYSTEM_ROOT_DEFINE
='-DTARGET_SYSTEM_ROOT=\"$(TARGET_SYSTEM_ROOT)\"'
19456 if test "x$prefix" = xNONE
; then
19457 test_prefix
=/usr
/local
19459 test_prefix
=$prefix
19461 if test "x$exec_prefix" = xNONE ||
test "x$exec_prefix" = 'x${prefix}'; then
19462 test_exec_prefix
=$test_prefix
19464 test_exec_prefix
=$exec_prefix
19466 case ${TARGET_SYSTEM_ROOT} in
19467 "${test_prefix}"|
"${test_prefix}/"*|\
19468 "${test_exec_prefix}"|
"${test_exec_prefix}/"*|\
19469 '${prefix}'|
'${prefix}/'*|\
19470 '${exec_prefix}'|
'${exec_prefix}/'*)
19471 t
="$TARGET_SYSTEM_ROOT_DEFINE -DTARGET_SYSTEM_ROOT_RELOCATABLE"
19472 TARGET_SYSTEM_ROOT_DEFINE
="$t"
19478 TARGET_SYSTEM_ROOT
=
19479 TARGET_SYSTEM_ROOT_DEFINE
='-DTARGET_SYSTEM_ROOT=\"\"'
19485 # Check whether --enable-werror or --disable-werror was given.
19486 if test "${enable_werror+set}" = set; then
19487 enableval
="$enable_werror"
19488 case "${enableval}" in
19489 yes | y
) ERROR_ON_WARNING
="yes" ;;
19490 no | n
) ERROR_ON_WARNING
="no" ;;
19491 *) { { echo "$as_me:$LINENO: error: bad value ${enableval} for --enable-werror" >&5
19492 echo "$as_me: error: bad value ${enableval} for --enable-werror" >&2;}
19493 { (exit 1); exit 1; }; } ;;
19497 # Enable -Werror by default when using gcc
19498 if test "${GCC}" = yes -a -z "${ERROR_ON_WARNING}" ; then
19499 ERROR_ON_WARNING
=yes
19503 if test "${ERROR_ON_WARNING}" = yes ; then
19504 WERROR_CFLAGS
="-Werror"
19507 # The entries after -Wno-pointer-sign are disabled warnings which may
19508 # be enabled in the future, which can not currently be used to build
19510 # NOTE: If you change this list, remember to update
19511 # gdb/doc/gdbint.texinfo.
19512 build_warnings
="-Wall -Wdeclaration-after-statement -Wpointer-arith \
19513 -Wformat-nonliteral -Wno-pointer-sign \
19514 -Wno-unused -Wno-switch -Wno-char-subscripts"
19516 # Enable -Wno-format by default when using gcc on mingw since many
19517 # GCC versions complain about %I64.
19519 *-*-mingw32*) build_warnings
="$build_warnings -Wno-format" ;;
19522 # Check whether --enable-build-warnings or --disable-build-warnings was given.
19523 if test "${enable_build_warnings+set}" = set; then
19524 enableval
="$enable_build_warnings"
19525 case "${enableval}" in
19527 no
) build_warnings
="-w";;
19528 ,*) t
=`echo "${enableval}" | sed -e "s/,/ /g"`
19529 build_warnings
="${build_warnings} ${t}";;
19530 *,) t
=`echo "${enableval}" | sed -e "s/,/ /g"`
19531 build_warnings
="${t} ${build_warnings}";;
19532 *) build_warnings
=`echo "${enableval}" | sed -e "s/,/ /g"`;;
19534 if test x
"$silent" != x
"yes" && test x
"$build_warnings" != x
""; then
19535 echo "Setting compiler warning flags = $build_warnings" 6>&1
19537 fi; # Check whether --enable-gdb-build-warnings or --disable-gdb-build-warnings was given.
19538 if test "${enable_gdb_build_warnings+set}" = set; then
19539 enableval
="$enable_gdb_build_warnings"
19540 case "${enableval}" in
19542 no
) build_warnings
="-w";;
19543 ,*) t
=`echo "${enableval}" | sed -e "s/,/ /g"`
19544 build_warnings
="${build_warnings} ${t}";;
19545 *,) t
=`echo "${enableval}" | sed -e "s/,/ /g"`
19546 build_warnings
="${t} ${build_warnings}";;
19547 *) build_warnings
=`echo "${enableval}" | sed -e "s/,/ /g"`;;
19549 if test x
"$silent" != x
"yes" && test x
"$build_warnings" != x
""; then
19550 echo "Setting GDB specific compiler warning flags = $build_warnings" 6>&1
19553 if test "x${build_warnings}" != x
-a "x$GCC" = xyes
19555 echo "$as_me:$LINENO: checking compiler warning flags" >&5
19556 echo $ECHO_N "checking compiler warning flags... $ECHO_C" >&6
19557 # Separate out the -Werror flag as some files just cannot be
19558 # compiled with it enabled.
19559 for w
in ${build_warnings}; do
19561 -Werr*) WERROR_CFLAGS
=-Werror ;;
19562 *) # Check that GCC accepts it
19563 saved_CFLAGS
="$CFLAGS"
19564 CFLAGS
="$CFLAGS $w"
19565 cat >conftest.
$ac_ext <<_ACEOF
19568 cat confdefs.h
>>conftest.
$ac_ext
19569 cat >>conftest.
$ac_ext <<_ACEOF
19570 /* end confdefs.h. */
19580 rm -f conftest.
$ac_objext
19581 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
19582 (eval $ac_compile) 2>conftest.er1
19584 grep -v '^ *+' conftest.er1
>conftest.err
19586 cat conftest.err
>&5
19587 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19588 (exit $ac_status); } &&
19589 { ac_try
='test -z "$ac_c_werror_flag"
19590 || test ! -s conftest.err'
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); }; } &&
19596 { ac_try
='test -s conftest.$ac_objext'
19597 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19598 (eval $ac_try) 2>&5
19600 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19601 (exit $ac_status); }; }; then
19602 WARN_CFLAGS
="${WARN_CFLAGS} $w"
19604 echo "$as_me: failed program was:" >&5
19605 sed 's/^/| /' conftest.
$ac_ext >&5
19608 rm -f conftest.err conftest.
$ac_objext conftest.
$ac_ext
19609 CFLAGS
="$saved_CFLAGS"
19612 echo "$as_me:$LINENO: result: ${WARN_CFLAGS} ${WERROR_CFLAGS}" >&5
19613 echo "${ECHO_T}${WARN_CFLAGS} ${WERROR_CFLAGS}" >&6
19618 # In the Cygwin environment, we need some additional flags.
19619 echo "$as_me:$LINENO: checking for cygwin" >&5
19620 echo $ECHO_N "checking for cygwin... $ECHO_C" >&6
19621 if test "${gdb_cv_os_cygwin+set}" = set; then
19622 echo $ECHO_N "(cached) $ECHO_C" >&6
19624 cat >conftest.
$ac_ext <<_ACEOF
19627 cat confdefs.h
>>conftest.
$ac_ext
19628 cat >>conftest.
$ac_ext <<_ACEOF
19629 /* end confdefs.h. */
19631 #if defined (__CYGWIN__) || defined (__CYGWIN32__)
19635 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
19636 $EGREP "lose" >/dev
/null
2>&1; then
19637 gdb_cv_os_cygwin
=yes
19639 gdb_cv_os_cygwin
=no
19644 echo "$as_me:$LINENO: result: $gdb_cv_os_cygwin" >&5
19645 echo "${ECHO_T}$gdb_cv_os_cygwin" >&6
19648 SER_HARDWIRE
="ser-base.o ser-unix.o ser-pipe.o ser-tcp.o"
19650 *go32
* ) SER_HARDWIRE
=ser-go32.o
;;
19651 *djgpp
* ) SER_HARDWIRE
=ser-go32.o
;;
19652 *mingw32
*) SER_HARDWIRE
="ser-base.o ser-tcp.o ser-mingw.o" ;;
19656 # libreadline needs libuser32.a in a cygwin environment
19658 if test x
$gdb_cv_os_cygwin = xyes
; then
19659 WIN32LIBS
="-luser32"
19660 case "${target}" in
19661 *cygwin
*) WIN32LIBS
="$WIN32LIBS -limagehlp"
19666 # The ser-tcp.c module requires sockets.
19670 cat >>confdefs.h
<<\_ACEOF
19671 #define USE_WIN32API 1
19674 WIN32LIBS
="$WIN32LIBS -lws2_32"
19679 # Add ELF support to GDB, but only if BFD includes ELF support.
19681 OLD_LDFLAGS
=$LDFLAGS
19683 CFLAGS
="$CFLAGS -I${srcdir}/../include -I../bfd -I${srcdir}/../bfd"
19684 LDFLAGS
="$LDFLAGS -L../bfd -L../libiberty"
19685 intl
=`echo $LIBINTL | sed 's,${top_builddir}/,,g'`
19686 LIBS
="-lbfd -liberty $intl $LIBS"
19687 echo "$as_me:$LINENO: checking for ELF support in BFD" >&5
19688 echo $ECHO_N "checking for ELF support in BFD... $ECHO_C" >&6
19689 if test "${gdb_cv_var_elf+set}" = set; then
19690 echo $ECHO_N "(cached) $ECHO_C" >&6
19692 cat >conftest.
$ac_ext <<_ACEOF
19695 cat confdefs.h
>>conftest.
$ac_ext
19696 cat >>conftest.
$ac_ext <<_ACEOF
19697 /* end confdefs.h. */
19698 #include <stdlib.h>
19700 #include "elf-bfd.h"
19705 bfd *abfd = NULL; bfd_get_elf_phdr_upper_bound (abfd);
19710 rm -f conftest.
$ac_objext conftest
$ac_exeext
19711 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
19712 (eval $ac_link) 2>conftest.er1
19714 grep -v '^ *+' conftest.er1
>conftest.err
19716 cat conftest.err
>&5
19717 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19718 (exit $ac_status); } &&
19719 { ac_try
='test -z "$ac_c_werror_flag"
19720 || test ! -s conftest.err'
19721 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19722 (eval $ac_try) 2>&5
19724 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19725 (exit $ac_status); }; } &&
19726 { ac_try
='test -s conftest$ac_exeext'
19727 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19728 (eval $ac_try) 2>&5
19730 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19731 (exit $ac_status); }; }; then
19734 echo "$as_me: failed program was:" >&5
19735 sed 's/^/| /' conftest.
$ac_ext >&5
19739 rm -f conftest.err conftest.
$ac_objext \
19740 conftest
$ac_exeext conftest.
$ac_ext
19742 echo "$as_me:$LINENO: result: $gdb_cv_var_elf" >&5
19743 echo "${ECHO_T}$gdb_cv_var_elf" >&6
19744 if test $gdb_cv_var_elf = yes; then
19745 CONFIG_OBS
="$CONFIG_OBS elfread.o"
19747 cat >>confdefs.h
<<\_ACEOF
19753 LDFLAGS
=$OLD_LDFLAGS
19756 # Add any host-specific objects to GDB.
19757 CONFIG_OBS
="${CONFIG_OBS} ${gdb_host_obs}"
19759 LIBGUI
="../libgui/src/libgui.a"
19760 GUI_CFLAGS_X
="-I${srcdir}/../libgui/src"
19769 *-*-cygwin* |
*-*-mingw* )
19778 if test "${enable_gdbtk}" = "yes"; then
19780 # Gdbtk must have an absolute path to srcdir in order to run
19781 # properly when not installed.
19784 GDBTK_SRC_DIR
=`pwd`
19789 # Ok, lets find the tcl configuration
19790 # First, look for one uninstalled.
19791 # the alternative search directory is invoked by --with-tcl
19794 if test x
"${no_tcl}" = x
; then
19795 # we reset no_tcl in case something fails here
19798 # Check whether --with-tcl or --without-tcl was given.
19799 if test "${with_tcl+set}" = set; then
19800 withval
="$with_tcl"
19801 with_tclconfig
=${withval}
19803 echo "$as_me:$LINENO: checking for Tcl configuration" >&5
19804 echo $ECHO_N "checking for Tcl configuration... $ECHO_C" >&6
19805 if test "${ac_cv_c_tclconfig+set}" = set; then
19806 echo $ECHO_N "(cached) $ECHO_C" >&6
19810 # First check to see if --with-tcl was specified.
19812 *-*-cygwin*) platDir
="win" ;;
19813 *) platDir
="unix" ;;
19815 if test x
"${with_tclconfig}" != x
; then
19816 if test -f "${with_tclconfig}/tclConfig.sh" ; then
19817 ac_cv_c_tclconfig
=`(cd ${with_tclconfig}; pwd)`
19819 { { echo "$as_me:$LINENO: error: ${with_tclconfig} directory doesn't contain tclConfig.sh" >&5
19820 echo "$as_me: error: ${with_tclconfig} directory doesn't contain tclConfig.sh" >&2;}
19821 { (exit 1); exit 1; }; }
19825 # then check for a private Tcl installation
19826 if test x
"${ac_cv_c_tclconfig}" = x
; then
19829 `ls -dr ../tcl[8-9].[0-9].[0-9]* 2>/dev/null` \
19830 `ls -dr ../tcl[8-9].[0-9] 2>/dev/null` \
19831 `ls -dr ../tcl[8-9].[0-9]* 2>/dev/null` \
19833 `ls -dr ../../tcl[8-9].[0-9].[0-9]* 2>/dev/null` \
19834 `ls -dr ../../tcl[8-9].[0-9] 2>/dev/null` \
19835 `ls -dr ../../tcl[8-9].[0-9]* 2>/dev/null` \
19837 `ls -dr ../../../tcl[8-9].[0-9].[0-9]* 2>/dev/null` \
19838 `ls -dr ../../../tcl[8-9].[0-9] 2>/dev/null` \
19839 `ls -dr ../../../tcl[8-9].[0-9]* 2>/dev/null` ; do
19840 if test -f "$i/$platDir/tclConfig.sh" ; then
19841 ac_cv_c_tclconfig
=`(cd $i/$platDir; pwd)`
19847 # on Darwin, check in Framework installation locations
19848 if test "`uname -s`" = "Darwin" -a x
"${ac_cv_c_tclconfig}" = x
; then
19849 for i
in `ls -d ~/Library/Frameworks 2>/dev/null` \
19850 `ls -d /Library/Frameworks 2>/dev/null` \
19851 `ls -d /Network/Library/Frameworks 2>/dev/null` \
19852 `ls -d /System/Library/Frameworks 2>/dev/null` \
19854 if test -f "$i/Tcl.framework/tclConfig.sh" ; then
19855 ac_cv_c_tclconfig
=`(cd $i/Tcl.framework; pwd)`
19861 # check in a few common install locations
19862 if test x
"${ac_cv_c_tclconfig}" = x
; then
19863 for i
in `ls -d ${libdir} 2>/dev/null` \
19864 `ls -d ${exec_prefix}/lib 2>/dev/null` \
19865 `ls -d ${prefix}/lib 2>/dev/null` \
19866 `ls -d /usr/local/lib 2>/dev/null` \
19867 `ls -d /usr/contrib/lib 2>/dev/null` \
19868 `ls -d /usr/lib 2>/dev/null` \
19870 if test -f "$i/tclConfig.sh" ; then
19871 ac_cv_c_tclconfig
=`(cd $i; pwd)`
19877 # check in a few other private locations
19878 if test x
"${ac_cv_c_tclconfig}" = x
; then
19881 `ls -dr ${srcdir}/../tcl[8-9].[0-9].[0-9]* 2>/dev/null` \
19882 `ls -dr ${srcdir}/../tcl[8-9].[0-9] 2>/dev/null` \
19883 `ls -dr ${srcdir}/../tcl[8-9].[0-9]* 2>/dev/null` ; do
19884 if test -f "$i/$platDir/tclConfig.sh" ; then
19885 ac_cv_c_tclconfig
=`(cd $i/$platDir; pwd)`
19894 if test x
"${ac_cv_c_tclconfig}" = x
; then
19895 TCL_BIN_DIR
="# no Tcl configs found"
19896 { echo "$as_me:$LINENO: WARNING: Can't find Tcl configuration definitions" >&5
19897 echo "$as_me: WARNING: Can't find Tcl configuration definitions" >&2;}
19901 TCL_BIN_DIR
=${ac_cv_c_tclconfig}
19902 echo "$as_me:$LINENO: result: found ${TCL_BIN_DIR}/tclConfig.sh" >&5
19903 echo "${ECHO_T}found ${TCL_BIN_DIR}/tclConfig.sh" >&6
19907 if test -z "${no_tcl}"; then
19909 echo "$as_me:$LINENO: checking for existence of ${TCL_BIN_DIR}/tclConfig.sh" >&5
19910 echo $ECHO_N "checking for existence of ${TCL_BIN_DIR}/tclConfig.sh... $ECHO_C" >&6
19912 if test -f "${TCL_BIN_DIR}/tclConfig.sh" ; then
19913 echo "$as_me:$LINENO: result: loading" >&5
19914 echo "${ECHO_T}loading" >&6
19915 .
${TCL_BIN_DIR}/tclConfig.sh
19917 echo "$as_me:$LINENO: result: could not find ${TCL_BIN_DIR}/tclConfig.sh" >&5
19918 echo "${ECHO_T}could not find ${TCL_BIN_DIR}/tclConfig.sh" >&6
19921 # eval is required to do the TCL_DBGX substitution
19922 eval "TCL_LIB_FILE=\"${TCL_LIB_FILE}\""
19923 eval "TCL_STUB_LIB_FILE=\"${TCL_STUB_LIB_FILE}\""
19925 # If the TCL_BIN_DIR is the build directory (not the install directory),
19926 # then set the common variable name to the value of the build variables.
19927 # For example, the variable TCL_LIB_SPEC will be set to the value
19928 # of TCL_BUILD_LIB_SPEC. An extension should make use of TCL_LIB_SPEC
19929 # instead of TCL_BUILD_LIB_SPEC since it will work with both an
19930 # installed and uninstalled version of Tcl.
19931 if test -f ${TCL_BIN_DIR}/Makefile
; then
19932 TCL_LIB_SPEC
=${TCL_BUILD_LIB_SPEC}
19933 TCL_STUB_LIB_SPEC
=${TCL_BUILD_STUB_LIB_SPEC}
19934 TCL_STUB_LIB_PATH
=${TCL_BUILD_STUB_LIB_PATH}
19935 elif test "`uname -s`" = "Darwin"; then
19936 # If Tcl was built as a framework, attempt to use the libraries
19937 # from the framework at the given location so that linking works
19938 # against Tcl.framework installed in an arbitary location.
19939 case ${TCL_DEFS} in
19941 if test -f ${TCL_BIN_DIR}/${TCL_LIB_FILE}; then
19942 for i
in "`cd ${TCL_BIN_DIR}; pwd`" \
19943 "`cd ${TCL_BIN_DIR}/../..; pwd`"; do
19944 if test "`basename "$i"`" = "${TCL_LIB_FILE}.framework"; then
19945 TCL_LIB_SPEC
="-F`dirname "$i"` -framework ${TCL_LIB_FILE}"
19950 if test -f ${TCL_BIN_DIR}/${TCL_STUB_LIB_FILE}; then
19951 TCL_STUB_LIB_SPEC
="-L${TCL_BIN_DIR} ${TCL_STUB_LIB_FLAG}"
19952 TCL_STUB_LIB_PATH
="${TCL_BIN_DIR}/${TCL_STUB_LIB_FILE}"
19958 # eval is required to do the TCL_DBGX substitution
19959 eval "TCL_LIB_FLAG=\"${TCL_LIB_FLAG}\""
19960 eval "TCL_LIB_SPEC=\"${TCL_LIB_SPEC}\""
19961 eval "TCL_STUB_LIB_FLAG=\"${TCL_STUB_LIB_FLAG}\""
19962 eval "TCL_STUB_LIB_SPEC=\"${TCL_STUB_LIB_SPEC}\""
19978 # Check for in-tree tcl
19985 if test "${TCL_SRC_DIR}" = "${topdir}/tcl"; then
19989 # Find Tcl private headers
19990 if test x
"${intree}" = xno
; then
19992 echo "$as_me:$LINENO: checking for Tcl private headers" >&5
19993 echo $ECHO_N "checking for Tcl private headers... $ECHO_C" >&6
19995 dir
=`echo ${TCL_INCLUDE_SPEC}/tcl-private/generic | sed -e s/-I//`
19996 if test -f ${dir}/tclInt.h
; then
20000 if test x
"${private_dir}" = x
; then
20001 { { echo "$as_me:$LINENO: error: could not find private Tcl headers" >&5
20002 echo "$as_me: error: could not find private Tcl headers" >&2;}
20003 { (exit 1); exit 1; }; }
20005 TCL_PRIVATE_INCLUDE
="-I${private_dir}"
20006 echo "$as_me:$LINENO: result: ${private_dir}" >&5
20007 echo "${ECHO_T}${private_dir}" >&6
20010 TCL_INCLUDE
="${TCL_INCLUDE_SPEC} ${TCL_PRIVATE_INCLUDE}"
20011 TCL_LIBRARY
="${TCL_LIB_SPEC}"
20014 # If building tcl in the same src tree, private headers
20015 # are not needed, but we need to be sure to use the right
20017 TCL_INCLUDE
="-I${TCL_SRC_DIR}/generic"
20018 TCL_LIBRARY
="${TCL_BUILD_LIB_SPEC}"
20019 TCL_DEPS
="../tcl/${configdir}${TCL_LIB_FILE}"
20025 # If $no_tk is nonempty, then we can't do Tk, and there is no
20026 # point to doing Tcl.
20027 if test -z "${no_tk}"; then
20030 # Ok, lets find the tk configuration
20031 # First, look for one uninstalled.
20032 # the alternative search directory is invoked by --with-tk
20035 if test x
"${no_tk}" = x
; then
20036 # we reset no_tk in case something fails here
20039 # Check whether --with-tk or --without-tk was given.
20040 if test "${with_tk+set}" = set; then
20042 with_tkconfig
=${withval}
20044 echo "$as_me:$LINENO: checking for Tk configuration" >&5
20045 echo $ECHO_N "checking for Tk configuration... $ECHO_C" >&6
20046 if test "${ac_cv_c_tkconfig+set}" = set; then
20047 echo $ECHO_N "(cached) $ECHO_C" >&6
20051 # First check to see if --with-tkconfig was specified.
20052 if test x
"${with_tkconfig}" != x
; then
20053 if test -f "${with_tkconfig}/tkConfig.sh" ; then
20054 ac_cv_c_tkconfig
=`(cd ${with_tkconfig}; pwd)`
20056 { { echo "$as_me:$LINENO: error: ${with_tkconfig} directory doesn't contain tkConfig.sh" >&5
20057 echo "$as_me: error: ${with_tkconfig} directory doesn't contain tkConfig.sh" >&2;}
20058 { (exit 1); exit 1; }; }
20062 # then check for a private Tk library
20064 *-*-cygwin*) platDir
="win" ;;
20065 *) platDir
="unix" ;;
20067 if test x
"${ac_cv_c_tkconfig}" = x
; then
20070 `ls -dr ../tk[8-9].[0-9].[0-9]* 2>/dev/null` \
20071 `ls -dr ../tk[8-9].[0-9] 2>/dev/null` \
20072 `ls -dr ../tk[8-9].[0-9]* 2>/dev/null` \
20074 `ls -dr ../../tk[8-9].[0-9].[0-9]* 2>/dev/null` \
20075 `ls -dr ../../tk[8-9].[0-9] 2>/dev/null` \
20076 `ls -dr ../../tk[8-9].[0-9]* 2>/dev/null` \
20078 `ls -dr ../../../tk[8-9].[0-9].[0-9]* 2>/dev/null` \
20079 `ls -dr ../../../tk[8-9].[0-9] 2>/dev/null` \
20080 `ls -dr ../../../tk[8-9].[0-9]* 2>/dev/null` ; do
20081 if test -f "$i/$platDir/tkConfig.sh" ; then
20082 ac_cv_c_tkconfig
=`(cd $i/$platDir; pwd)`
20088 # on Darwin, check in Framework installation locations
20089 if test "`uname -s`" = "Darwin" -a x
"${ac_cv_c_tkconfig}" = x
; then
20090 for i
in `ls -d ~/Library/Frameworks 2>/dev/null` \
20091 `ls -d /Library/Frameworks 2>/dev/null` \
20092 `ls -d /Network/Library/Frameworks 2>/dev/null` \
20093 `ls -d /System/Library/Frameworks 2>/dev/null` \
20095 if test -f "$i/Tk.framework/tkConfig.sh" ; then
20096 ac_cv_c_tkconfig
=`(cd $i/Tk.framework; pwd)`
20102 # check in a few common install locations
20103 if test x
"${ac_cv_c_tkconfig}" = x
; then
20104 for i
in `ls -d ${libdir} 2>/dev/null` \
20105 `ls -d ${exec_prefix}/lib 2>/dev/null` \
20106 `ls -d ${prefix}/lib 2>/dev/null` \
20107 `ls -d /usr/local/lib 2>/dev/null` \
20108 `ls -d /usr/contrib/lib 2>/dev/null` \
20109 `ls -d /usr/lib 2>/dev/null` \
20111 if test -f "$i/tkConfig.sh" ; then
20112 ac_cv_c_tkconfig
=`(cd $i; pwd)`
20117 # check in a few other private locations
20118 if test x
"${ac_cv_c_tkconfig}" = x
; then
20121 `ls -dr ${srcdir}/../tk[8-9].[0-9].[0-9]* 2>/dev/null` \
20122 `ls -dr ${srcdir}/../tk[8-9].[0-9] 2>/dev/null` \
20123 `ls -dr ${srcdir}/../tk[8-9].[0-9]* 2>/dev/null` ; do
20124 if test -f "$i/$platDir/tkConfig.sh" ; then
20125 ac_cv_c_tkconfig
=`(cd $i/$platDir; pwd)`
20134 if test x
"${ac_cv_c_tkconfig}" = x
; then
20135 TK_BIN_DIR
="# no Tk configs found"
20136 { echo "$as_me:$LINENO: WARNING: Can't find Tk configuration definitions" >&5
20137 echo "$as_me: WARNING: Can't find Tk configuration definitions" >&2;}
20141 TK_BIN_DIR
=${ac_cv_c_tkconfig}
20142 echo "$as_me:$LINENO: result: found ${TK_BIN_DIR}/tkConfig.sh" >&5
20143 echo "${ECHO_T}found ${TK_BIN_DIR}/tkConfig.sh" >&6
20148 echo "$as_me:$LINENO: checking for existence of ${TK_BIN_DIR}/tkConfig.sh" >&5
20149 echo $ECHO_N "checking for existence of ${TK_BIN_DIR}/tkConfig.sh... $ECHO_C" >&6
20151 if test -f "${TK_BIN_DIR}/tkConfig.sh" ; then
20152 echo "$as_me:$LINENO: result: loading" >&5
20153 echo "${ECHO_T}loading" >&6
20154 .
${TK_BIN_DIR}/tkConfig.sh
20156 echo "$as_me:$LINENO: result: could not find ${TK_BIN_DIR}/tkConfig.sh" >&5
20157 echo "${ECHO_T}could not find ${TK_BIN_DIR}/tkConfig.sh" >&6
20160 # eval is required to do the TK_DBGX substitution
20161 eval "TK_LIB_FILE=\"${TK_LIB_FILE}\""
20162 eval "TK_STUB_LIB_FILE=\"${TK_STUB_LIB_FILE}\""
20164 # If the TK_BIN_DIR is the build directory (not the install directory),
20165 # then set the common variable name to the value of the build variables.
20166 # For example, the variable TK_LIB_SPEC will be set to the value
20167 # of TK_BUILD_LIB_SPEC. An extension should make use of TK_LIB_SPEC
20168 # instead of TK_BUILD_LIB_SPEC since it will work with both an
20169 # installed and uninstalled version of Tcl.
20170 if test -f ${TK_BIN_DIR}/Makefile
; then
20171 TK_LIB_SPEC
=${TK_BUILD_LIB_SPEC}
20172 TK_STUB_LIB_SPEC
=${TK_BUILD_STUB_LIB_SPEC}
20173 TK_STUB_LIB_PATH
=${TK_BUILD_STUB_LIB_PATH}
20174 elif test "`uname -s`" = "Darwin"; then
20175 # If Tk was built as a framework, attempt to use the libraries
20176 # from the framework at the given location so that linking works
20177 # against Tk.framework installed in an arbitary location.
20180 if test -f ${TK_BIN_DIR}/${TK_LIB_FILE}; then
20181 for i
in "`cd ${TK_BIN_DIR}; pwd`" \
20182 "`cd ${TK_BIN_DIR}/../..; pwd`"; do
20183 if test "`basename "$i"`" = "${TK_LIB_FILE}.framework"; then
20184 TK_LIB_SPEC
="-F`dirname "$i"` -framework ${TK_LIB_FILE}"
20189 if test -f ${TK_BIN_DIR}/${TK_STUB_LIB_FILE}; then
20190 TK_STUB_LIB_SPEC
="-L${TK_BIN_DIR} ${TK_STUB_LIB_FLAG}"
20191 TK_STUB_LIB_PATH
="${TK_BIN_DIR}/${TK_STUB_LIB_FILE}"
20197 # eval is required to do the TK_DBGX substitution
20198 eval "TK_LIB_FLAG=\"${TK_LIB_FLAG}\""
20199 eval "TK_LIB_SPEC=\"${TK_LIB_SPEC}\""
20200 eval "TK_STUB_LIB_FLAG=\"${TK_STUB_LIB_FLAG}\""
20201 eval "TK_STUB_LIB_SPEC=\"${TK_STUB_LIB_SPEC}\""
20216 # Check for in-tree Tk
20218 if test "${TK_SRC_DIR}" = "${topdir}/tk"; then
20222 # Find Tk private headers
20223 if test x
"${intree}" = xno
; then
20225 echo "$as_me:$LINENO: checking for Tk private headers" >&5
20226 echo $ECHO_N "checking for Tk private headers... $ECHO_C" >&6
20228 dir
=`echo ${TK_INCLUDE_SPEC}/tk-private/generic | sed -e s/-I//`
20229 if test -f ${dir}/tkInt.h
; then
20233 if test x
"${private_dir}" = x
; then
20234 { { echo "$as_me:$LINENO: error: could not find Tk private headers" >&5
20235 echo "$as_me: error: could not find Tk private headers" >&2;}
20236 { (exit 1); exit 1; }; }
20238 TK_PRIVATE_INCLUDE
="-I${private_dir}"
20239 echo "$as_me:$LINENO: result: ${private_dir}" >&5
20240 echo "${ECHO_T}${private_dir}" >&6
20243 TK_INCLUDE
="${TK_INCLUDE_SPEC} ${TK_PRIVATE_INCLUDE}"
20244 TK_LIBRARY
=${TK_LIB_SPEC}
20247 TK_INCLUDE
="-I${TK_SRC_DIR}/generic"
20248 TK_LIBRARY
="${TK_BUILD_LIB_SPEC}"
20249 TK_DEPS
="../tk/${configdir}/${TK_LIB_FILE}"
20256 ENABLE_CFLAGS
="${ENABLE_CFLAGS} \$(SUBDIR_GDBTK_CFLAGS)"
20258 # Include some libraries that Tcl and Tk want.
20259 TCL_LIBS
='$(LIBGUI) $(TK) $(TCL) $(X11_LDFLAGS) $(X11_LIBS)'
20260 # Yes, the ordering seems wrong here. But it isn't.
20261 # TK_LIBS is the list of libraries that need to be linked
20262 # after Tcl/Tk. Note that this isn't put into LIBS. If it
20263 # were in LIBS then any link tests after this point would
20264 # try to include things like `$(LIBGUI)', which wouldn't work.
20265 GDBTKLIBS
="${TCL_LIBS} ${TK_LIBS}"
20267 CONFIG_OBS
="${CONFIG_OBS} \$(SUBDIR_GDBTK_OBS)"
20268 CONFIG_DEPS
="${CONFIG_DEPS} \$(SUBDIR_GDBTK_DEPS)"
20269 CONFIG_SRCS
="${CONFIG_SRCS} \$(SUBDIR_GDBTK_SRCS)"
20270 CONFIG_ALL
="${CONFIG_ALL} all-gdbtk"
20271 CONFIG_CLEAN
="${CONFIG_CLEAN} clean-gdbtk"
20272 CONFIG_INSTALL
="${CONFIG_INSTALL} install-gdbtk"
20273 CONFIG_UNINSTALL
="${CONFIG_UNINSTALL} uninstall-gdbtk"
20275 if test x
$gdb_cv_os_cygwin = xyes
; then
20276 WIN32LIBS
="${WIN32LIBS} -lshell32 -lgdi32 -lcomdlg32 -ladvapi32"
20277 WIN32LDAPP
="-Wl,--subsystem,console"
20278 CONFIG_OBS
="${CONFIG_OBS} gdbres.o"
20285 subdirs
="$subdirs gdbtk"
20296 echo "$as_me:$LINENO: checking for X" >&5
20297 echo $ECHO_N "checking for X... $ECHO_C" >&6
20300 # Check whether --with-x or --without-x was given.
20301 if test "${with_x+set}" = set; then
20305 # $have_x is `yes', `no', `disabled', or empty when we do not yet know.
20306 if test "x$with_x" = xno
; then
20307 # The user explicitly disabled X.
20310 if test "x$x_includes" != xNONE
&& test "x$x_libraries" != xNONE
; then
20311 # Both variables are already set.
20314 if test "${ac_cv_have_x+set}" = set; then
20315 echo $ECHO_N "(cached) $ECHO_C" >&6
20317 # One or both of the vars are not set, and there is no cached value.
20318 ac_x_includes
=no ac_x_libraries
=no
20319 rm -fr conftest.dir
20320 if mkdir conftest.dir
; then
20322 # Make sure to not put "make" in the Imakefile rules, since we grep it out.
20323 cat >Imakefile
<<'_ACEOF'
20325 @echo 'ac_im_incroot="${INCROOT}"; ac_im_usrlibdir="${USRLIBDIR}"; ac_im_libdir="${LIBDIR}"'
20327 if (xmkmf
) >/dev
/null
2>/dev
/null
&& test -f Makefile
; then
20328 # GNU make sometimes prints "make[1]: Entering...", which would confuse us.
20329 eval `${MAKE-make} acfindx 2>/dev/null | grep -v make`
20330 # Open Windows xmkmf reportedly sets LIBDIR instead of USRLIBDIR.
20331 for ac_extension
in a so sl
; do
20332 if test ! -f $ac_im_usrlibdir/libX11.
$ac_extension &&
20333 test -f $ac_im_libdir/libX11.
$ac_extension; then
20334 ac_im_usrlibdir
=$ac_im_libdir; break
20337 # Screen out bogus values from the imake configuration. They are
20338 # bogus both because they are the default anyway, and because
20339 # using them would break gcc on systems where it needs fixed includes.
20340 case $ac_im_incroot in
20342 *) test -f "$ac_im_incroot/X11/Xos.h" && ac_x_includes
=$ac_im_incroot;;
20344 case $ac_im_usrlibdir in
20345 /usr
/lib |
/lib
) ;;
20346 *) test -d "$ac_im_usrlibdir" && ac_x_libraries
=$ac_im_usrlibdir ;;
20350 rm -fr conftest.dir
20353 # Standard set of common directories for X headers.
20354 # Check X11 before X11Rn because it is often a symlink to the current release.
20366 /usr/local/X11/include
20367 /usr/local/X11R6/include
20368 /usr/local/X11R5/include
20369 /usr/local/X11R4/include
20371 /usr/local/include/X11
20372 /usr/local/include/X11R6
20373 /usr/local/include/X11R5
20374 /usr/local/include/X11R4
20378 /usr/XFree86/include/X11
20382 /usr/unsupported/include
20383 /usr/athena/include
20384 /usr/local/x11r5/include
20385 /usr/lpp/Xamples/include
20387 /usr/openwin/include
20388 /usr/openwin/share/include'
20390 if test "$ac_x_includes" = no
; then
20391 # Guess where to find include files, by looking for Intrinsic.h.
20392 # First, try using that file with no special directory specified.
20393 cat >conftest.
$ac_ext <<_ACEOF
20396 cat confdefs.h
>>conftest.
$ac_ext
20397 cat >>conftest.
$ac_ext <<_ACEOF
20398 /* end confdefs.h. */
20399 #include <X11/Intrinsic.h>
20401 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
20402 (eval $ac_cpp conftest.
$ac_ext) 2>conftest.er1
20404 grep -v '^ *+' conftest.er1
>conftest.err
20406 cat conftest.err
>&5
20407 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20408 (exit $ac_status); } >/dev
/null
; then
20409 if test -s conftest.err
; then
20410 ac_cpp_err
=$ac_c_preproc_warn_flag
20411 ac_cpp_err
=$ac_cpp_err$ac_c_werror_flag
20418 if test -z "$ac_cpp_err"; then
20419 # We can compile using X headers with no special include directory.
20422 echo "$as_me: failed program was:" >&5
20423 sed 's/^/| /' conftest.
$ac_ext >&5
20425 for ac_dir
in $ac_x_header_dirs; do
20426 if test -r "$ac_dir/X11/Intrinsic.h"; then
20427 ac_x_includes
=$ac_dir
20432 rm -f conftest.err conftest.
$ac_ext
20433 fi # $ac_x_includes = no
20435 if test "$ac_x_libraries" = no
; then
20436 # Check for the libraries.
20437 # See if we find them without any special options.
20438 # Don't add to $LIBS permanently.
20441 cat >conftest.
$ac_ext <<_ACEOF
20444 cat confdefs.h
>>conftest.
$ac_ext
20445 cat >>conftest.
$ac_ext <<_ACEOF
20446 /* end confdefs.h. */
20447 #include <X11/Intrinsic.h>
20456 rm -f conftest.
$ac_objext conftest
$ac_exeext
20457 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
20458 (eval $ac_link) 2>conftest.er1
20460 grep -v '^ *+' conftest.er1
>conftest.err
20462 cat conftest.err
>&5
20463 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20464 (exit $ac_status); } &&
20465 { ac_try
='test -z "$ac_c_werror_flag"
20466 || test ! -s conftest.err'
20467 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20468 (eval $ac_try) 2>&5
20470 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20471 (exit $ac_status); }; } &&
20472 { ac_try
='test -s conftest$ac_exeext'
20473 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20474 (eval $ac_try) 2>&5
20476 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20477 (exit $ac_status); }; }; then
20479 # We can link X programs with no special library path.
20482 echo "$as_me: failed program was:" >&5
20483 sed 's/^/| /' conftest.
$ac_ext >&5
20486 for ac_dir
in `echo "$ac_x_includes $ac_x_header_dirs" | sed s/include/lib/g`
20488 # Don't even attempt the hair of trying to link an X program!
20489 for ac_extension
in a so sl
; do
20490 if test -r $ac_dir/libXt.
$ac_extension; then
20491 ac_x_libraries
=$ac_dir
20497 rm -f conftest.err conftest.
$ac_objext \
20498 conftest
$ac_exeext conftest.
$ac_ext
20499 fi # $ac_x_libraries = no
20501 if test "$ac_x_includes" = no ||
test "$ac_x_libraries" = no
; then
20502 # Didn't find X anywhere. Cache the known absence of X.
20503 ac_cv_have_x
="have_x=no"
20505 # Record where we found X for the cache.
20506 ac_cv_have_x
="have_x=yes \
20507 ac_x_includes=$ac_x_includes ac_x_libraries=$ac_x_libraries"
20512 eval "$ac_cv_have_x"
20515 if test "$have_x" != yes; then
20516 echo "$as_me:$LINENO: result: $have_x" >&5
20517 echo "${ECHO_T}$have_x" >&6
20520 # If each of the values was on the command line, it overrides each guess.
20521 test "x$x_includes" = xNONE
&& x_includes
=$ac_x_includes
20522 test "x$x_libraries" = xNONE
&& x_libraries
=$ac_x_libraries
20523 # Update the cache value to reflect the command line values.
20524 ac_cv_have_x
="have_x=yes \
20525 ac_x_includes=$x_includes ac_x_libraries=$x_libraries"
20526 echo "$as_me:$LINENO: result: libraries $x_libraries, headers $x_includes" >&5
20527 echo "${ECHO_T}libraries $x_libraries, headers $x_includes" >&6
20531 # Unlike the sim directory, whether a simulator is linked is controlled by
20532 # presence of a gdb_sim definition in the target configure.tgt entry.
20533 # This code just checks for a few cases where we'd like to ignore those
20534 # definitions, even when they're present in the '.mt' file. These cases
20535 # are when --disable-sim is specified, or if the simulator directory is
20536 # not part of the source tree.
20538 # Check whether --enable-sim or --disable-sim was given.
20539 if test "${enable_sim+set}" = set; then
20540 enableval
="$enable_sim"
20541 echo "enable_sim = $enable_sim";
20542 echo "enableval = ${enableval}";
20543 case "${enableval}" in
20544 yes) ignore_sim
=false
;;
20545 no
) ignore_sim
=true
;;
20546 *) ignore_sim
=false
;;
20552 if test ! -d "${srcdir}/../sim"; then
20558 if test "${ignore_sim}" = "false"; then
20559 if test x
"${gdb_sim}" != x
; then
20561 SIM_OBS
="remote-sim.o"
20563 cat >>confdefs.h
<<\_ACEOF
20583 # List of host floatformats.
20585 cat >>confdefs.h
<<_ACEOF
20586 #define GDB_HOST_FLOAT_FORMAT $gdb_host_float_format
20590 cat >>confdefs.h
<<_ACEOF
20591 #define GDB_HOST_DOUBLE_FORMAT $gdb_host_double_format
20595 cat >>confdefs.h
<<_ACEOF
20596 #define GDB_HOST_LONG_DOUBLE_FORMAT $gdb_host_long_double_format
20600 # target_subdir is used by the testsuite to find the target libraries.
20602 if test "${host}" != "${target}"; then
20603 target_subdir
="${target_alias}/"
20608 if test "${gdb_native}" = "yes"; then
20609 host_makefile_frag
=${srcdir}/config/${gdb_host_cpu}/${gdb_host}.mh
20610 if test ! -f ${host_makefile_frag}; then
20611 { { echo "$as_me:$LINENO: error: \"*** Gdb does not support native target ${host}\"" >&5
20612 echo "$as_me: error: \"*** Gdb does not support native target ${host}\"" >&2;}
20613 { (exit 1); exit 1; }; }
20615 frags
="$frags $host_makefile_frag"
20617 host_makefile_frag
=/dev
/null
20623 if test "${gdb_native}" = "yes"; then
20624 # We pick this up from the host configuration file (.mh) because we
20625 # do not have a native configuration Makefile fragment.
20626 nativefile
=`sed -n '
20627 s/NAT_FILE[ ]*=[ ]*\([^ ]*\)/\1/p
20628 ' ${host_makefile_frag}`
20632 if test x
"${gdb_osabi}" != x
; then
20634 cat >>confdefs.h
<<_ACEOF
20635 #define GDB_OSABI_DEFAULT $gdb_osabi
20640 # Enable multi-ice-gdb-server.
20641 # Check whether --enable-multi-ice or --disable-multi-ice was given.
20642 if test "${enable_multi_ice+set}" = set; then
20643 enableval
="$enable_multi_ice"
20647 *) { { echo "$as_me:$LINENO: error: bad value $enableval for --enable-multi-ice" >&5
20648 echo "$as_me: error: bad value $enableval for --enable-multi-ice" >&2;}
20649 { (exit 1); exit 1; }; } ;;
20652 if test "x$enable_multi_ice" = xyes
; then
20655 subdirs
="$subdirs multi-ice"
20659 # We only build gdbserver automatically in a native configuration.
20660 if test "$gdb_native" = "yes"; then
20661 echo "$as_me:$LINENO: checking whether gdbserver is supported on this host" >&5
20662 echo $ECHO_N "checking whether gdbserver is supported on this host... $ECHO_C" >&6
20663 if test "x$build_gdbserver" = xyes
; then
20664 echo "$as_me:$LINENO: result: yes" >&5
20665 echo "${ECHO_T}yes" >&6
20668 subdirs
="$subdirs gdbserver"
20671 echo "$as_me:$LINENO: result: no" >&5
20672 echo "${ECHO_T}no" >&6
20676 # If nativefile (NAT_FILE) is not set in config/*/*.m[ht] files, we link
20677 # to an empty version.
20684 if test "${nativefile}" != ""; then
20686 case "${nativefile}" in
20687 nm-
*.h
) GDB_NM_FILE
="config/${gdb_host_cpu}/${nativefile}" ;;
20688 * ) GDB_NM_FILE
="${nativefile}"
20690 files
="${files} ${GDB_NM_FILE}"
20691 links
="${links} nm.h"
20693 cat >>confdefs.h
<<_ACEOF
20694 #define GDB_NM_FILE "${GDB_NM_FILE}"
20700 ac_sources
="$files"
20702 while test -n "$ac_sources"; do
20703 set $ac_dests; ac_dest
=$1; shift; ac_dests
=$
*
20704 set $ac_sources; ac_source
=$1; shift; ac_sources
=$
*
20705 ac_config_links_1
="$ac_config_links_1 $ac_dest:$ac_source"
20707 ac_config_links
="$ac_config_links $ac_config_links_1"
20714 cat >>confdefs.h
<<\_ACEOF
20715 #define GDB_DEFAULT_HOST_CHARSET "ISO-8859-1"
20722 # Check whether --with-libiconv-prefix or --without-libiconv-prefix was given.
20723 if test "${with_libiconv_prefix+set}" = set; then
20724 withval
="$with_libiconv_prefix"
20726 for dir
in `echo "$withval" | tr : ' '`; do
20727 if test -d $dir/include
; then CPPFLAGS
="$CPPFLAGS -I$dir/include"; fi
20728 if test -d $dir/lib
; then LDFLAGS
="$LDFLAGS -L$dir/lib"; fi
20733 echo "$as_me:$LINENO: checking for iconv" >&5
20734 echo $ECHO_N "checking for iconv... $ECHO_C" >&6
20735 if test "${am_cv_func_iconv+set}" = set; then
20736 echo $ECHO_N "(cached) $ECHO_C" >&6
20739 am_cv_func_iconv
="no, consider installing GNU libiconv"
20741 cat >conftest.
$ac_ext <<_ACEOF
20744 cat confdefs.h
>>conftest.
$ac_ext
20745 cat >>conftest.
$ac_ext <<_ACEOF
20746 /* end confdefs.h. */
20747 #include <stdlib.h>
20752 iconv_t cd = iconv_open("","");
20753 iconv(cd,NULL,NULL,NULL,NULL);
20759 rm -f conftest.
$ac_objext conftest
$ac_exeext
20760 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
20761 (eval $ac_link) 2>conftest.er1
20763 grep -v '^ *+' conftest.er1
>conftest.err
20765 cat conftest.err
>&5
20766 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20767 (exit $ac_status); } &&
20768 { ac_try
='test -z "$ac_c_werror_flag"
20769 || test ! -s conftest.err'
20770 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20771 (eval $ac_try) 2>&5
20773 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20774 (exit $ac_status); }; } &&
20775 { ac_try
='test -s conftest$ac_exeext'
20776 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20777 (eval $ac_try) 2>&5
20779 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20780 (exit $ac_status); }; }; then
20781 am_cv_func_iconv
=yes
20783 echo "$as_me: failed program was:" >&5
20784 sed 's/^/| /' conftest.
$ac_ext >&5
20787 rm -f conftest.err conftest.
$ac_objext \
20788 conftest
$ac_exeext conftest.
$ac_ext
20789 if test "$am_cv_func_iconv" != yes; then
20790 am_save_LIBS
="$LIBS"
20791 LIBS
="$LIBS -liconv"
20792 cat >conftest.
$ac_ext <<_ACEOF
20795 cat confdefs.h
>>conftest.
$ac_ext
20796 cat >>conftest.
$ac_ext <<_ACEOF
20797 /* end confdefs.h. */
20798 #include <stdlib.h>
20803 iconv_t cd = iconv_open("","");
20804 iconv(cd,NULL,NULL,NULL,NULL);
20810 rm -f conftest.
$ac_objext conftest
$ac_exeext
20811 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
20812 (eval $ac_link) 2>conftest.er1
20814 grep -v '^ *+' conftest.er1
>conftest.err
20816 cat conftest.err
>&5
20817 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20818 (exit $ac_status); } &&
20819 { ac_try
='test -z "$ac_c_werror_flag"
20820 || test ! -s conftest.err'
20821 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20822 (eval $ac_try) 2>&5
20824 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20825 (exit $ac_status); }; } &&
20826 { ac_try
='test -s conftest$ac_exeext'
20827 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20828 (eval $ac_try) 2>&5
20830 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20831 (exit $ac_status); }; }; then
20832 am_cv_lib_iconv
=yes
20833 am_cv_func_iconv
=yes
20835 echo "$as_me: failed program was:" >&5
20836 sed 's/^/| /' conftest.
$ac_ext >&5
20839 rm -f conftest.err conftest.
$ac_objext \
20840 conftest
$ac_exeext conftest.
$ac_ext
20841 LIBS
="$am_save_LIBS"
20845 echo "$as_me:$LINENO: result: $am_cv_func_iconv" >&5
20846 echo "${ECHO_T}$am_cv_func_iconv" >&6
20847 if test "$am_cv_func_iconv" = yes; then
20849 cat >>confdefs.h
<<\_ACEOF
20850 #define HAVE_ICONV 1
20853 echo "$as_me:$LINENO: checking for iconv declaration" >&5
20854 echo $ECHO_N "checking for iconv declaration... $ECHO_C" >&6
20855 if test "${am_cv_proto_iconv+set}" = set; then
20856 echo $ECHO_N "(cached) $ECHO_C" >&6
20859 cat >conftest.
$ac_ext <<_ACEOF
20862 cat confdefs.h
>>conftest.
$ac_ext
20863 cat >>conftest.
$ac_ext <<_ACEOF
20864 /* end confdefs.h. */
20866 #include <stdlib.h>
20872 #if defined(__STDC__) || defined(__cplusplus)
20873 size_t iconv (iconv_t cd, char * *inbuf, size_t *inbytesleft, char * *outbuf, size_t *outbytesleft);
20886 rm -f conftest.
$ac_objext
20887 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
20888 (eval $ac_compile) 2>conftest.er1
20890 grep -v '^ *+' conftest.er1
>conftest.err
20892 cat conftest.err
>&5
20893 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20894 (exit $ac_status); } &&
20895 { ac_try
='test -z "$ac_c_werror_flag"
20896 || test ! -s conftest.err'
20897 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20898 (eval $ac_try) 2>&5
20900 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20901 (exit $ac_status); }; } &&
20902 { ac_try
='test -s conftest.$ac_objext'
20903 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20904 (eval $ac_try) 2>&5
20906 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20907 (exit $ac_status); }; }; then
20908 am_cv_proto_iconv_arg1
=""
20910 echo "$as_me: failed program was:" >&5
20911 sed 's/^/| /' conftest.
$ac_ext >&5
20913 am_cv_proto_iconv_arg1
="const"
20915 rm -f conftest.err conftest.
$ac_objext conftest.
$ac_ext
20916 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);"
20919 am_cv_proto_iconv
=`echo "$am_cv_proto_iconv" | tr -s ' ' | sed -e 's/( /(/'`
20920 echo "$as_me:$LINENO: result: ${ac_t:-
20921 }$am_cv_proto_iconv" >&5
20922 echo "${ECHO_T}${ac_t:-
20923 }$am_cv_proto_iconv" >&6
20925 cat >>confdefs.h
<<_ACEOF
20926 #define ICONV_CONST $am_cv_proto_iconv_arg1
20931 if test "$am_cv_lib_iconv" = yes; then
20937 ac_config_files
="$ac_config_files Makefile .gdbinit:gdbinit.in gnulib/Makefile"
20938 ac_config_commands
="$ac_config_commands default"
20939 cat >confcache
<<\_ACEOF
20940 # This file is a shell script that caches the results of configure
20941 # tests run on this system so they can be shared between configure
20942 # scripts and configure runs, see configure's option --config-cache.
20943 # It is not useful on other systems. If it contains results you don't
20944 # want to keep, you may remove or edit it.
20946 # config.status only pays attention to the cache file if you give it
20947 # the --recheck option to rerun configure.
20949 # `ac_cv_env_foo' variables (set or unset) will be overridden when
20950 # loading this file, other *unset* `ac_cv_foo' will be assigned the
20951 # following values.
20955 # The following way of writing the cache mishandles newlines in values,
20956 # but we know of no workaround that is simple, portable, and efficient.
20957 # So, don't put newlines in cache variables' values.
20958 # Ultrix sh set writes to stderr and can't be redirected directly,
20959 # and sets the high bit in the cache file unless we assign to the vars.
20962 case `(ac_space=' '; set | grep ac_space) 2>&1` in
20964 # `set' does not quote correctly, so add quotes (double-quote
20965 # substitution turns \\\\ into \\, and sed turns \\ into \).
20968 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p"
20971 # `set' quotes correctly as required by POSIX, so do not add quotes.
20973 "s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1=\\2/p"
20980 s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/
20982 /^ac_cv_env/!s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/
20984 if diff $cache_file confcache
>/dev
/null
2>&1; then :; else
20985 if test -w $cache_file; then
20986 test "x$cache_file" != "x/dev/null" && echo "updating cache $cache_file"
20987 cat confcache
>$cache_file
20989 echo "not updating unwritable cache $cache_file"
20994 test "x$prefix" = xNONE
&& prefix
=$ac_default_prefix
20995 # Let make expand exec_prefix.
20996 test "x$exec_prefix" = xNONE
&& exec_prefix
='${prefix}'
20998 # VPATH may cause trouble with some makes, so we remove $(srcdir),
20999 # ${srcdir} and @srcdir@ from VPATH if srcdir is ".", strip leading and
21000 # trailing colons and then remove the whole line if VPATH becomes empty
21001 # (actually we leave an empty line to preserve line numbers).
21002 if test "x$srcdir" = x.
; then
21003 ac_vpsub
='/^[ ]*VPATH[ ]*=/{
21004 s/:*\$(srcdir):*/:/;
21005 s/:*\${srcdir}:*/:/;
21007 s/^\([^=]*=[ ]*\):*/\1/;
21013 DEFS
=-DHAVE_CONFIG_H
21017 for ac_i
in : $LIBOBJS; do test "x$ac_i" = x
: && continue
21018 # 1. Remove the extension, and $U if already installed.
21019 ac_i
=`echo "$ac_i" |
21020 sed 's/\$U\././;s/\.o$//;s/\.obj$//'`
21022 ac_libobjs
="$ac_libobjs $ac_i\$U.$ac_objext"
21023 ac_ltlibobjs
="$ac_ltlibobjs $ac_i"'$U.lo'
21025 LIBOBJS
=$ac_libobjs
21027 LTLIBOBJS
=$ac_ltlibobjs
21030 if test -z "${MAINTAINER_MODE_TRUE}" && test -z "${MAINTAINER_MODE_FALSE}"; then
21031 { { echo "$as_me:$LINENO: error: conditional \"MAINTAINER_MODE\" was never defined.
21032 Usually this means the macro was only invoked conditionally." >&5
21033 echo "$as_me: error: conditional \"MAINTAINER_MODE\" was never defined.
21034 Usually this means the macro was only invoked conditionally." >&2;}
21035 { (exit 1); exit 1; }; }
21037 if test -z "${GMAKE_TRUE}" && test -z "${GMAKE_FALSE}"; then
21038 { { echo "$as_me:$LINENO: error: conditional \"GMAKE\" was never defined.
21039 Usually this means the macro was only invoked conditionally." >&5
21040 echo "$as_me: error: conditional \"GMAKE\" was never defined.
21041 Usually this means the macro was only invoked conditionally." >&2;}
21042 { (exit 1); exit 1; }; }
21044 if test -z "${GL_COND_LIBTOOL_TRUE}" && test -z "${GL_COND_LIBTOOL_FALSE}"; then
21045 { { echo "$as_me:$LINENO: error: conditional \"GL_COND_LIBTOOL\" was never defined.
21046 Usually this means the macro was only invoked conditionally." >&5
21047 echo "$as_me: error: conditional \"GL_COND_LIBTOOL\" was never defined.
21048 Usually this means the macro was only invoked conditionally." >&2;}
21049 { (exit 1); exit 1; }; }
21054 if test -n "$gl_LIBOBJS"; then
21055 # Remove the extension.
21056 sed_drop_objext
='s/\.o$//;s/\.obj$//'
21057 for i
in `for i in $gl_LIBOBJS; do echo "$i"; done | sed "$sed_drop_objext" | sort | uniq`; do
21058 gl_libobjs
="$gl_libobjs $i.$ac_objext"
21059 gl_ltlibobjs
="$gl_ltlibobjs $i.lo"
21062 gl_LIBOBJS
=$gl_libobjs
21064 gl_LTLIBOBJS
=$gl_ltlibobjs
21070 if test -n "$gltests_LIBOBJS"; then
21071 # Remove the extension.
21072 sed_drop_objext
='s/\.o$//;s/\.obj$//'
21073 for i
in `for i in $gltests_LIBOBJS; do echo "$i"; done | sed "$sed_drop_objext" | sort | uniq`; do
21074 gltests_libobjs
="$gltests_libobjs $i.$ac_objext"
21075 gltests_ltlibobjs
="$gltests_ltlibobjs $i.lo"
21078 gltests_LIBOBJS
=$gltests_libobjs
21080 gltests_LTLIBOBJS
=$gltests_ltlibobjs
21083 if test -z "${AMDEP_TRUE}" && test -z "${AMDEP_FALSE}"; then
21084 { { echo "$as_me:$LINENO: error: conditional \"AMDEP\" was never defined.
21085 Usually this means the macro was only invoked conditionally." >&5
21086 echo "$as_me: error: conditional \"AMDEP\" was never defined.
21087 Usually this means the macro was only invoked conditionally." >&2;}
21088 { (exit 1); exit 1; }; }
21090 if test -z "${am__fastdepCC_TRUE}" && test -z "${am__fastdepCC_FALSE}"; then
21091 { { echo "$as_me:$LINENO: error: conditional \"am__fastdepCC\" was never defined.
21092 Usually this means the macro was only invoked conditionally." >&5
21093 echo "$as_me: error: conditional \"am__fastdepCC\" was never defined.
21094 Usually this means the macro was only invoked conditionally." >&2;}
21095 { (exit 1); exit 1; }; }
21098 : ${CONFIG_STATUS=./config.status}
21099 ac_clean_files_save
=$ac_clean_files
21100 ac_clean_files
="$ac_clean_files $CONFIG_STATUS"
21101 { echo "$as_me:$LINENO: creating $CONFIG_STATUS" >&5
21102 echo "$as_me: creating $CONFIG_STATUS" >&6;}
21103 cat >$CONFIG_STATUS <<_ACEOF
21105 # Generated by $as_me.
21106 # Run this file to recreate the current configuration.
21107 # Compiler output produced by configure, useful for debugging
21108 # configure, is in config.log if it exists.
21111 ac_cs_recheck=false
21113 SHELL=\${CONFIG_SHELL-$SHELL}
21116 cat >>$CONFIG_STATUS <<\_ACEOF
21117 ## --------------------- ##
21118 ## M4sh Initialization. ##
21119 ## --------------------- ##
21121 # Be Bourne compatible
21122 if test -n "${ZSH_VERSION+set}" && (emulate sh
) >/dev
/null
2>&1; then
21125 # Zsh 3.x and 4.x performs word splitting on ${1+"$@"}, which
21126 # is contrary to our usage. Disable this feature.
21127 alias -g '${1+"$@"}'='"$@"'
21128 elif test -n "${BASH_VERSION+set}" && (set -o posix
) >/dev
/null
2>&1; then
21131 DUALCASE
=1; export DUALCASE
# for MKS sh
21133 # Support unset when possible.
21134 if ( (MAIL
=60; unset MAIL
) ||
exit) >/dev
/null
2>&1; then
21141 # Work around bugs in pre-3.0 UWIN ksh.
21142 $as_unset ENV MAIL MAILPATH
21149 LANG LANGUAGE LC_ADDRESS LC_ALL LC_COLLATE LC_CTYPE LC_IDENTIFICATION \
21150 LC_MEASUREMENT LC_MESSAGES LC_MONETARY LC_NAME LC_NUMERIC LC_PAPER \
21151 LC_TELEPHONE LC_TIME
21153 if (set +x
; test -z "`(eval $as_var=C; export $as_var) 2>&1`"); then
21154 eval $as_var=C
; export $as_var
21160 # Required to use basename.
21161 if expr a
: '\(a\)' >/dev
/null
2>&1; then
21167 if (basename /) >/dev
/null
2>&1 && test "X`basename / 2>&1`" = "X/"; then
21168 as_basename
=basename
21174 # Name of the executable.
21175 as_me
=`$as_basename "$0" ||
21176 $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
21177 X"$0" : 'X\(//\)$' \| \
21178 X"$0" : 'X\(/\)$' \| \
21179 . : '\(.\)' 2>/dev/null ||
21181 sed '/^.*\/\([^/][^/]*\)\/*$/{ s//\1/; q; }
21182 /^X\/\(\/\/\)$/{ s//\1/; q; }
21183 /^X\/\(\/\).*/{ s//\1/; q; }
21187 # PATH needs CR, and LINENO needs CR and PATH.
21188 # Avoid depending upon Character Ranges.
21189 as_cr_letters
='abcdefghijklmnopqrstuvwxyz'
21190 as_cr_LETTERS
='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
21191 as_cr_Letters
=$as_cr_letters$as_cr_LETTERS
21192 as_cr_digits
='0123456789'
21193 as_cr_alnum
=$as_cr_Letters$as_cr_digits
21195 # The user is always right.
21196 if test "${PATH_SEPARATOR+set}" != set; then
21197 echo "#! /bin/sh" >conf$$.sh
21198 echo "exit 0" >>conf$$.sh
21200 if (PATH
="/nonexistent;."; conf$$.sh
) >/dev
/null
2>&1; then
21209 as_lineno_1
=$LINENO
21210 as_lineno_2
=$LINENO
21211 as_lineno_3
=`(expr $as_lineno_1 + 1) 2>/dev/null`
21212 test "x$as_lineno_1" != "x$as_lineno_2" &&
21213 test "x$as_lineno_3" = "x$as_lineno_2" ||
{
21214 # Find who we are. Look in the path if we contain no path at all
21217 *[\\/]* ) as_myself
=$0 ;;
21218 *) as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
21219 for as_dir
in $PATH
21222 test -z "$as_dir" && as_dir
=.
21223 test -r "$as_dir/$0" && as_myself
=$as_dir/$0 && break
21228 # We did not find ourselves, most probably we were run as `sh COMMAND'
21229 # in which case we are not to be found in the path.
21230 if test "x$as_myself" = x
; then
21233 if test ! -f "$as_myself"; then
21234 { { echo "$as_me:$LINENO: error: cannot find myself; rerun with an absolute path" >&5
21235 echo "$as_me: error: cannot find myself; rerun with an absolute path" >&2;}
21236 { (exit 1); exit 1; }; }
21238 case $CONFIG_SHELL in
21240 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
21241 for as_dir
in /bin
$PATH_SEPARATOR/usr
/bin
$PATH_SEPARATOR$PATH
21244 test -z "$as_dir" && as_dir
=.
21245 for as_base
in sh bash ksh sh5
; do
21248 if ("$as_dir/$as_base" -c '
21249 as_lineno_1=$LINENO
21250 as_lineno_2=$LINENO
21251 as_lineno_3=`(expr $as_lineno_1 + 1) 2>/dev/null`
21252 test "x$as_lineno_1" != "x$as_lineno_2" &&
21253 test "x$as_lineno_3" = "x$as_lineno_2" ') 2>/dev
/null
; then
21254 $as_unset BASH_ENV ||
test "${BASH_ENV+set}" != set ||
{ BASH_ENV
=; export BASH_ENV
; }
21255 $as_unset ENV ||
test "${ENV+set}" != set ||
{ ENV
=; export ENV
; }
21256 CONFIG_SHELL
=$as_dir/$as_base
21257 export CONFIG_SHELL
21258 exec "$CONFIG_SHELL" "$0" ${1+"$@"}
21266 # Create $as_me.lineno as a copy of $as_myself, but with $LINENO
21267 # uniformly replaced by the line number. The first 'sed' inserts a
21268 # line-number line before each line; the second 'sed' does the real
21269 # work. The second script uses 'N' to pair each line-number line
21270 # with the numbered line, and appends trailing '-' during
21271 # substitution so that $LINENO is not a special case at line end.
21272 # (Raja R Harinath suggested sed '=', and Paul Eggert wrote the
21273 # second 'sed' script. Blame Lee E. McMahon for sed's syntax. :-)
21274 sed '=' <$as_myself |
21279 s,^\(['$as_cr_digits']*\)\(.*\)[$]LINENO\([^'$as_cr_alnum'_]\),\1\2\1\3,
21282 s,^['$as_cr_digits']*\n,,
21283 ' >$as_me.lineno
&&
21284 chmod +x
$as_me.lineno ||
21285 { { echo "$as_me:$LINENO: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&5
21286 echo "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2;}
21287 { (exit 1); exit 1; }; }
21289 # Don't try to exec as it changes $[0], causing all sort of problems
21290 # (the dirname of $[0] is not the place where we might find the
21291 # original and so on. Autoconf is especially sensible to this).
21293 # Exit status is that of the last command.
21298 case `echo "testing\c"; echo 1,2,3`,`echo -n testing; echo 1,2,3` in
21299 *c
*,-n*) ECHO_N
= ECHO_C
='
21301 *c
*,* ) ECHO_N
=-n ECHO_C
= ECHO_T
= ;;
21302 *) ECHO_N
= ECHO_C
='\c' ECHO_T
= ;;
21305 if expr a
: '\(a\)' >/dev
/null
2>&1; then
21311 rm -f conf$$ conf$$.exe conf$$.
file
21313 if ln -s conf$$.
file conf$$
2>/dev
/null
; then
21314 # We could just check for DJGPP; but this test a) works b) is more generic
21315 # and c) will remain valid once DJGPP supports symlinks (DJGPP 2.04).
21316 if test -f conf$$.exe
; then
21317 # Don't use ln at all; we don't have any links
21322 elif ln conf$$.
file conf$$
2>/dev
/null
; then
21327 rm -f conf$$ conf$$.exe conf$$.
file
21329 if mkdir
-p .
2>/dev
/null
; then
21332 test -d .
/-p && rmdir .
/-p
21336 as_executable_p
="test -f"
21338 # Sed expression to map a string onto a valid CPP name.
21339 as_tr_cpp
="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
21341 # Sed expression to map a string onto a valid variable name.
21342 as_tr_sh
="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
21346 # We need space, tab and new line, in precisely that order.
21356 # Open the log real soon, to keep \$[0] and so on meaningful, and to
21357 # report actual input values of CONFIG_FILES etc. instead of their
21358 # values after options handling. Logging --version etc. is OK.
21362 sed 'h;s/./-/g;s/^.../## /;s/...$/ ##/;p;x;p;x' <<_ASBOX
21363 ## Running $as_me. ##
21368 This file was extended by $as_me, which was
21369 generated by GNU Autoconf 2.59. Invocation command line was
21371 CONFIG_FILES = $CONFIG_FILES
21372 CONFIG_HEADERS = $CONFIG_HEADERS
21373 CONFIG_LINKS = $CONFIG_LINKS
21374 CONFIG_COMMANDS = $CONFIG_COMMANDS
21378 echo "on `(hostname || uname -n) 2>/dev/null | sed 1q`" >&5
21382 # Files that config.status was made for.
21383 if test -n "$ac_config_files"; then
21384 echo "config_files=\"$ac_config_files\"" >>$CONFIG_STATUS
21387 if test -n "$ac_config_headers"; then
21388 echo "config_headers=\"$ac_config_headers\"" >>$CONFIG_STATUS
21391 if test -n "$ac_config_links"; then
21392 echo "config_links=\"$ac_config_links\"" >>$CONFIG_STATUS
21395 if test -n "$ac_config_commands"; then
21396 echo "config_commands=\"$ac_config_commands\"" >>$CONFIG_STATUS
21399 cat >>$CONFIG_STATUS <<\_ACEOF
21402 \`$as_me' instantiates files from templates according to the
21403 current configuration.
21405 Usage: $0 [OPTIONS] [FILE]...
21407 -h, --help print this help, then exit
21408 -V, --version print version number, then exit
21409 -q, --quiet do not print progress messages
21410 -d, --debug don't remove temporary files
21411 --recheck update $as_me by reconfiguring in the same conditions
21412 --file=FILE[:TEMPLATE]
21413 instantiate the configuration file FILE
21414 --header=FILE[:TEMPLATE]
21415 instantiate the configuration header FILE
21417 Configuration files:
21420 Configuration headers:
21423 Configuration links:
21426 Configuration commands:
21429 Report bugs to <bug-autoconf@gnu.org>."
21432 cat >>$CONFIG_STATUS <<_ACEOF
21435 configured by $0, generated by GNU Autoconf 2.59,
21436 with options \\"`echo "$ac_configure_args" | sed 's/[\\""\`\$]/\\\\&/g'`\\"
21438 Copyright (C) 2003 Free Software Foundation, Inc.
21439 This config.status script is free software; the Free Software Foundation
21440 gives unlimited permission to copy, distribute and modify it."
21445 cat >>$CONFIG_STATUS <<\_ACEOF
21446 # If no file are specified by the user, then we need to provide default
21447 # value. By we need to know if files were specified by the user.
21453 ac_option
=`expr "x$1" : 'x\([^=]*\)='`
21454 ac_optarg
=`expr "x$1" : 'x[^=]*=\(.*\)'`
21462 *) # This is not an option, so the user has probably given explicit
21465 ac_need_defaults
=false
;;
21469 # Handling of the options.
21471 cat >>$CONFIG_STATUS <<\_ACEOF
21472 -recheck |
--recheck |
--rechec |
--reche |
--rech |
--rec |
--re |
--r)
21474 --version |
--vers* |
-V )
21475 echo "$ac_cs_version"; exit 0 ;;
21477 # Conflict between --help and --header
21478 { { echo "$as_me:$LINENO: error: ambiguous option: $1
21479 Try \`$0 --help' for more information." >&5
21480 echo "$as_me: error: ambiguous option: $1
21481 Try \`$0 --help' for more information." >&2;}
21482 { (exit 1); exit 1; }; };;
21483 --help |
--hel |
-h )
21484 echo "$ac_cs_usage"; exit 0 ;;
21485 --debug |
--d* |
-d )
21487 --file |
--fil |
--fi |
--f )
21489 CONFIG_FILES
="$CONFIG_FILES $ac_optarg"
21490 ac_need_defaults
=false
;;
21491 --header |
--heade |
--head |
--hea )
21493 CONFIG_HEADERS
="$CONFIG_HEADERS $ac_optarg"
21494 ac_need_defaults
=false
;;
21495 -q |
-quiet |
--quiet |
--quie |
--qui |
--qu |
--q \
21496 |
-silent |
--silent |
--silen |
--sile |
--sil |
--si |
--s)
21499 # This is an error.
21500 -*) { { echo "$as_me:$LINENO: error: unrecognized option: $1
21501 Try \`$0 --help' for more information." >&5
21502 echo "$as_me: error: unrecognized option: $1
21503 Try \`$0 --help' for more information." >&2;}
21504 { (exit 1); exit 1; }; } ;;
21506 *) ac_config_targets
="$ac_config_targets $1" ;;
21512 ac_configure_extra_args
=
21514 if $ac_cs_silent; then
21516 ac_configure_extra_args
="$ac_configure_extra_args --silent"
21520 cat >>$CONFIG_STATUS <<_ACEOF
21521 if \$ac_cs_recheck; then
21522 echo "running $SHELL $0 " $ac_configure_args \$ac_configure_extra_args " --no-create --no-recursion" >&6
21523 exec $SHELL $0 $ac_configure_args \$ac_configure_extra_args --no-create --no-recursion
21528 cat >>$CONFIG_STATUS <<_ACEOF
21530 # INIT-COMMANDS section.
21533 ac_aux_dir=$ac_aux_dir DEPDIR=$DEPDIR
21534 AMDEP_TRUE="$AMDEP_TRUE" ac_aux_dir="$ac_aux_dir"
21536 gdb_host_cpu=$gdb_host_cpu
21537 nativefile=$nativefile
21544 cat >>$CONFIG_STATUS <<\_ACEOF
21545 for ac_config_target
in $ac_config_targets
21547 case "$ac_config_target" in
21548 # Handling of arguments.
21549 "Makefile" ) CONFIG_FILES
="$CONFIG_FILES Makefile" ;;
21550 ".gdbinit" ) CONFIG_FILES
="$CONFIG_FILES .gdbinit:gdbinit.in" ;;
21551 "gnulib/Makefile" ) CONFIG_FILES
="$CONFIG_FILES gnulib/Makefile" ;;
21552 "$ac_config_links_1" ) CONFIG_LINKS
="$CONFIG_LINKS $ac_config_links_1" ;;
21553 "depdir" ) CONFIG_COMMANDS
="$CONFIG_COMMANDS depdir" ;;
21554 "depfiles" ) CONFIG_COMMANDS
="$CONFIG_COMMANDS depfiles" ;;
21555 "default" ) CONFIG_COMMANDS
="$CONFIG_COMMANDS default" ;;
21556 "config.h" ) CONFIG_HEADERS
="$CONFIG_HEADERS config.h:config.in" ;;
21557 *) { { echo "$as_me:$LINENO: error: invalid argument: $ac_config_target" >&5
21558 echo "$as_me: error: invalid argument: $ac_config_target" >&2;}
21559 { (exit 1); exit 1; }; };;
21563 # If the user did not use the arguments to specify the items to instantiate,
21564 # then the envvar interface is used. Set only those that are not.
21565 # We use the long form for the default assignment because of an extremely
21566 # bizarre bug on SunOS 4.1.3.
21567 if $ac_need_defaults; then
21568 test "${CONFIG_FILES+set}" = set || CONFIG_FILES
=$config_files
21569 test "${CONFIG_HEADERS+set}" = set || CONFIG_HEADERS
=$config_headers
21570 test "${CONFIG_LINKS+set}" = set || CONFIG_LINKS
=$config_links
21571 test "${CONFIG_COMMANDS+set}" = set || CONFIG_COMMANDS
=$config_commands
21574 # Have a temporary directory for convenience. Make it in the build tree
21575 # simply because there is no reason to put it here, and in addition,
21576 # creating and moving files from /tmp can sometimes cause problems.
21577 # Create a temporary directory, and hook for its removal unless debugging.
21580 trap 'exit_status=$?; rm -rf $tmp && exit $exit_status' 0
21581 trap '{ (exit 1); exit 1; }' 1 2 13 15
21584 # Create a (secure) tmp directory for tmp files.
21587 tmp
=`(umask 077 && mktemp -d -q "./confstatXXXXXX") 2>/dev/null` &&
21588 test -n "$tmp" && test -d "$tmp"
21591 tmp
=.
/confstat$$
-$RANDOM
21592 (umask 077 && mkdir
$tmp)
21595 echo "$me: cannot create a temporary directory in ." >&2
21596 { (exit 1); exit 1; }
21601 cat >>$CONFIG_STATUS <<_ACEOF
21604 # CONFIG_FILES section.
21607 # No need to generate the scripts if there are no CONFIG_FILES.
21608 # This happens for instance when ./config.status config.h
21609 if test -n "\$CONFIG_FILES"; then
21610 # Protect against being on the right side of a sed subst in config.status.
21611 sed 's/,@/@@/; s/@,/@@/; s/,;t t\$/@;t t/; /@;t t\$/s/[\\\\&,]/\\\\&/g;
21612 s/@@/,@/; s/@@/@,/; s/@;t t\$/,;t t/' >\$tmp/subs.sed <<\\CEOF
21613 s,@SHELL@,$SHELL,;t t
21614 s,@PATH_SEPARATOR@,$PATH_SEPARATOR,;t t
21615 s,@PACKAGE_NAME@,$PACKAGE_NAME,;t t
21616 s,@PACKAGE_TARNAME@,$PACKAGE_TARNAME,;t t
21617 s,@PACKAGE_VERSION@,$PACKAGE_VERSION,;t t
21618 s,@PACKAGE_STRING@,$PACKAGE_STRING,;t t
21619 s,@PACKAGE_BUGREPORT@,$PACKAGE_BUGREPORT,;t t
21620 s,@exec_prefix@,$exec_prefix,;t t
21621 s,@prefix@,$prefix,;t t
21622 s,@program_transform_name@,$program_transform_name,;t t
21623 s,@bindir@,$bindir,;t t
21624 s,@sbindir@,$sbindir,;t t
21625 s,@libexecdir@,$libexecdir,;t t
21626 s,@datadir@,$datadir,;t t
21627 s,@sysconfdir@,$sysconfdir,;t t
21628 s,@sharedstatedir@,$sharedstatedir,;t t
21629 s,@localstatedir@,$localstatedir,;t t
21630 s,@libdir@,$libdir,;t t
21631 s,@includedir@,$includedir,;t t
21632 s,@oldincludedir@,$oldincludedir,;t t
21633 s,@infodir@,$infodir,;t t
21634 s,@mandir@,$mandir,;t t
21635 s,@build_alias@,$build_alias,;t t
21636 s,@host_alias@,$host_alias,;t t
21637 s,@target_alias@,$target_alias,;t t
21638 s,@DEFS@,$DEFS,;t t
21639 s,@ECHO_C@,$ECHO_C,;t t
21640 s,@ECHO_N@,$ECHO_N,;t t
21641 s,@ECHO_T@,$ECHO_T,;t t
21642 s,@LIBS@,$LIBS,;t t
21643 s,@MAINTAINER_MODE_TRUE@,$MAINTAINER_MODE_TRUE,;t t
21644 s,@MAINTAINER_MODE_FALSE@,$MAINTAINER_MODE_FALSE,;t t
21645 s,@MAINT@,$MAINT,;t t
21647 s,@CFLAGS@,$CFLAGS,;t t
21648 s,@LDFLAGS@,$LDFLAGS,;t t
21649 s,@CPPFLAGS@,$CPPFLAGS,;t t
21650 s,@ac_ct_CC@,$ac_ct_CC,;t t
21651 s,@EXEEXT@,$EXEEXT,;t t
21652 s,@OBJEXT@,$OBJEXT,;t t
21654 s,@EGREP@,$EGREP,;t t
21655 s,@RANLIB@,$RANLIB,;t t
21656 s,@ac_ct_RANLIB@,$ac_ct_RANLIB,;t t
21657 s,@build@,$build,;t t
21658 s,@build_cpu@,$build_cpu,;t t
21659 s,@build_vendor@,$build_vendor,;t t
21660 s,@build_os@,$build_os,;t t
21661 s,@host@,$host,;t t
21662 s,@host_cpu@,$host_cpu,;t t
21663 s,@host_vendor@,$host_vendor,;t t
21664 s,@host_os@,$host_os,;t t
21665 s,@target@,$target,;t t
21666 s,@target_cpu@,$target_cpu,;t t
21667 s,@target_vendor@,$target_vendor,;t t
21668 s,@target_os@,$target_os,;t t
21669 s,@am__leading_dot@,$am__leading_dot,;t t
21670 s,@DEPDIR@,$DEPDIR,;t t
21671 s,@CCDEPMODE@,$CCDEPMODE,;t t
21672 s,@MAKE@,$MAKE,;t t
21673 s,@GMAKE_TRUE@,$GMAKE_TRUE,;t t
21674 s,@GMAKE_FALSE@,$GMAKE_FALSE,;t t
21675 s,@SET_MAKE@,$SET_MAKE,;t t
21676 s,@USE_NLS@,$USE_NLS,;t t
21677 s,@LIBINTL@,$LIBINTL,;t t
21678 s,@LIBINTL_DEP@,$LIBINTL_DEP,;t t
21679 s,@INCINTL@,$INCINTL,;t t
21680 s,@XGETTEXT@,$XGETTEXT,;t t
21681 s,@GMSGFMT@,$GMSGFMT,;t t
21682 s,@POSUB@,$POSUB,;t t
21683 s,@CATALOGS@,$CATALOGS,;t t
21684 s,@DATADIRNAME@,$DATADIRNAME,;t t
21685 s,@INSTOBJEXT@,$INSTOBJEXT,;t t
21686 s,@GENCAT@,$GENCAT,;t t
21687 s,@CATOBJEXT@,$CATOBJEXT,;t t
21688 s,@localedir@,$localedir,;t t
21689 s,@GL_COND_LIBTOOL_TRUE@,$GL_COND_LIBTOOL_TRUE,;t t
21690 s,@GL_COND_LIBTOOL_FALSE@,$GL_COND_LIBTOOL_FALSE,;t t
21691 s,@GNULIB_MEMMEM@,$GNULIB_MEMMEM,;t t
21692 s,@GNULIB_MEMPCPY@,$GNULIB_MEMPCPY,;t t
21693 s,@GNULIB_MEMRCHR@,$GNULIB_MEMRCHR,;t t
21694 s,@GNULIB_STPCPY@,$GNULIB_STPCPY,;t t
21695 s,@GNULIB_STPNCPY@,$GNULIB_STPNCPY,;t t
21696 s,@GNULIB_STRCHRNUL@,$GNULIB_STRCHRNUL,;t t
21697 s,@GNULIB_STRDUP@,$GNULIB_STRDUP,;t t
21698 s,@GNULIB_STRNDUP@,$GNULIB_STRNDUP,;t t
21699 s,@GNULIB_STRNLEN@,$GNULIB_STRNLEN,;t t
21700 s,@GNULIB_STRPBRK@,$GNULIB_STRPBRK,;t t
21701 s,@GNULIB_STRSEP@,$GNULIB_STRSEP,;t t
21702 s,@GNULIB_STRSTR@,$GNULIB_STRSTR,;t t
21703 s,@GNULIB_STRCASESTR@,$GNULIB_STRCASESTR,;t t
21704 s,@GNULIB_STRTOK_R@,$GNULIB_STRTOK_R,;t t
21705 s,@GNULIB_MBSLEN@,$GNULIB_MBSLEN,;t t
21706 s,@GNULIB_MBSNLEN@,$GNULIB_MBSNLEN,;t t
21707 s,@GNULIB_MBSCHR@,$GNULIB_MBSCHR,;t t
21708 s,@GNULIB_MBSRCHR@,$GNULIB_MBSRCHR,;t t
21709 s,@GNULIB_MBSSTR@,$GNULIB_MBSSTR,;t t
21710 s,@GNULIB_MBSCASECMP@,$GNULIB_MBSCASECMP,;t t
21711 s,@GNULIB_MBSNCASECMP@,$GNULIB_MBSNCASECMP,;t t
21712 s,@GNULIB_MBSPCASECMP@,$GNULIB_MBSPCASECMP,;t t
21713 s,@GNULIB_MBSCASESTR@,$GNULIB_MBSCASESTR,;t t
21714 s,@GNULIB_MBSCSPN@,$GNULIB_MBSCSPN,;t t
21715 s,@GNULIB_MBSPBRK@,$GNULIB_MBSPBRK,;t t
21716 s,@GNULIB_MBSSPN@,$GNULIB_MBSSPN,;t t
21717 s,@GNULIB_MBSSEP@,$GNULIB_MBSSEP,;t t
21718 s,@GNULIB_MBSTOK_R@,$GNULIB_MBSTOK_R,;t t
21719 s,@GNULIB_STRERROR@,$GNULIB_STRERROR,;t t
21720 s,@GNULIB_STRSIGNAL@,$GNULIB_STRSIGNAL,;t t
21721 s,@HAVE_DECL_MEMMEM@,$HAVE_DECL_MEMMEM,;t t
21722 s,@HAVE_MEMPCPY@,$HAVE_MEMPCPY,;t t
21723 s,@HAVE_DECL_MEMRCHR@,$HAVE_DECL_MEMRCHR,;t t
21724 s,@HAVE_STPCPY@,$HAVE_STPCPY,;t t
21725 s,@HAVE_STPNCPY@,$HAVE_STPNCPY,;t t
21726 s,@HAVE_STRCHRNUL@,$HAVE_STRCHRNUL,;t t
21727 s,@HAVE_DECL_STRDUP@,$HAVE_DECL_STRDUP,;t t
21728 s,@HAVE_STRNDUP@,$HAVE_STRNDUP,;t t
21729 s,@HAVE_DECL_STRNDUP@,$HAVE_DECL_STRNDUP,;t t
21730 s,@HAVE_DECL_STRNLEN@,$HAVE_DECL_STRNLEN,;t t
21731 s,@HAVE_STRPBRK@,$HAVE_STRPBRK,;t t
21732 s,@HAVE_STRSEP@,$HAVE_STRSEP,;t t
21733 s,@HAVE_STRCASESTR@,$HAVE_STRCASESTR,;t t
21734 s,@HAVE_DECL_STRTOK_R@,$HAVE_DECL_STRTOK_R,;t t
21735 s,@HAVE_DECL_STRERROR@,$HAVE_DECL_STRERROR,;t t
21736 s,@HAVE_DECL_STRSIGNAL@,$HAVE_DECL_STRSIGNAL,;t t
21737 s,@REPLACE_STRERROR@,$REPLACE_STRERROR,;t t
21738 s,@REPLACE_STRSIGNAL@,$REPLACE_STRSIGNAL,;t t
21739 s,@REPLACE_MEMMEM@,$REPLACE_MEMMEM,;t t
21740 s,@REPLACE_STRCASESTR@,$REPLACE_STRCASESTR,;t t
21741 s,@REPLACE_STRSTR@,$REPLACE_STRSTR,;t t
21742 s,@HAVE_LONG_LONG_INT@,$HAVE_LONG_LONG_INT,;t t
21743 s,@HAVE_UNSIGNED_LONG_LONG_INT@,$HAVE_UNSIGNED_LONG_LONG_INT,;t t
21744 s,@HAVE_INTTYPES_H@,$HAVE_INTTYPES_H,;t t
21745 s,@HAVE_SYS_TYPES_H@,$HAVE_SYS_TYPES_H,;t t
21746 s,@INCLUDE_NEXT@,$INCLUDE_NEXT,;t t
21747 s,@NEXT_STDINT_H@,$NEXT_STDINT_H,;t t
21748 s,@HAVE_STDINT_H@,$HAVE_STDINT_H,;t t
21749 s,@HAVE_SYS_INTTYPES_H@,$HAVE_SYS_INTTYPES_H,;t t
21750 s,@HAVE_SYS_BITYPES_H@,$HAVE_SYS_BITYPES_H,;t t
21751 s,@BITSIZEOF_PTRDIFF_T@,$BITSIZEOF_PTRDIFF_T,;t t
21752 s,@BITSIZEOF_SIG_ATOMIC_T@,$BITSIZEOF_SIG_ATOMIC_T,;t t
21753 s,@BITSIZEOF_SIZE_T@,$BITSIZEOF_SIZE_T,;t t
21754 s,@BITSIZEOF_WCHAR_T@,$BITSIZEOF_WCHAR_T,;t t
21755 s,@BITSIZEOF_WINT_T@,$BITSIZEOF_WINT_T,;t t
21756 s,@HAVE_SIGNED_SIG_ATOMIC_T@,$HAVE_SIGNED_SIG_ATOMIC_T,;t t
21757 s,@HAVE_SIGNED_WCHAR_T@,$HAVE_SIGNED_WCHAR_T,;t t
21758 s,@HAVE_SIGNED_WINT_T@,$HAVE_SIGNED_WINT_T,;t t
21759 s,@PTRDIFF_T_SUFFIX@,$PTRDIFF_T_SUFFIX,;t t
21760 s,@SIG_ATOMIC_T_SUFFIX@,$SIG_ATOMIC_T_SUFFIX,;t t
21761 s,@SIZE_T_SUFFIX@,$SIZE_T_SUFFIX,;t t
21762 s,@WCHAR_T_SUFFIX@,$WCHAR_T_SUFFIX,;t t
21763 s,@WINT_T_SUFFIX@,$WINT_T_SUFFIX,;t t
21764 s,@STDINT_H@,$STDINT_H,;t t
21765 s,@NEXT_STRING_H@,$NEXT_STRING_H,;t t
21766 s,@GNULIB_WCWIDTH@,$GNULIB_WCWIDTH,;t t
21767 s,@HAVE_DECL_WCWIDTH@,$HAVE_DECL_WCWIDTH,;t t
21768 s,@REPLACE_WCWIDTH@,$REPLACE_WCWIDTH,;t t
21769 s,@WCHAR_H@,$WCHAR_H,;t t
21770 s,@HAVE_WCHAR_H@,$HAVE_WCHAR_H,;t t
21771 s,@NEXT_WCHAR_H@,$NEXT_WCHAR_H,;t t
21772 s,@LIBGNU_LIBDEPS@,$LIBGNU_LIBDEPS,;t t
21773 s,@LIBGNU_LTLIBDEPS@,$LIBGNU_LTLIBDEPS,;t t
21774 s,@GNULIB_STDINT_H@,$GNULIB_STDINT_H,;t t
21775 s,@PACKAGE@,$PACKAGE,;t t
21776 s,@INSTALL_PROGRAM@,$INSTALL_PROGRAM,;t t
21777 s,@INSTALL_SCRIPT@,$INSTALL_SCRIPT,;t t
21778 s,@INSTALL_DATA@,$INSTALL_DATA,;t t
21779 s,@CYGPATH_W@,$CYGPATH_W,;t t
21780 s,@PYTHON2_4@,$PYTHON2_4,;t t
21781 s,@ACLOCAL@,$ACLOCAL,;t t
21782 s,@AUTOCONF@,$AUTOCONF,;t t
21783 s,@AUTOMAKE@,$AUTOMAKE,;t t
21784 s,@AUTOHEADER@,$AUTOHEADER,;t t
21785 s,@MAKEINFO@,$MAKEINFO,;t t
21786 s,@install_sh@,$install_sh,;t t
21787 s,@STRIP@,$STRIP,;t t
21788 s,@ac_ct_STRIP@,$ac_ct_STRIP,;t t
21789 s,@INSTALL_STRIP_PROGRAM@,$INSTALL_STRIP_PROGRAM,;t t
21790 s,@mkdir_p@,$mkdir_p,;t t
21792 s,@AMTAR@,$AMTAR,;t t
21793 s,@am__tar@,$am__tar,;t t
21794 s,@am__untar@,$am__untar,;t t
21795 s,@am__include@,$am__include,;t t
21796 s,@am__quote@,$am__quote,;t t
21797 s,@AMDEP_TRUE@,$AMDEP_TRUE,;t t
21798 s,@AMDEP_FALSE@,$AMDEP_FALSE,;t t
21799 s,@AMDEPBACKSLASH@,$AMDEPBACKSLASH,;t t
21800 s,@am__fastdepCC_TRUE@,$am__fastdepCC_TRUE,;t t
21801 s,@am__fastdepCC_FALSE@,$am__fastdepCC_FALSE,;t t
21802 s,@subdirs@,$subdirs,;t t
21803 s,@TARGET_OBS@,$TARGET_OBS,;t t
21804 s,@PKGVERSION@,$PKGVERSION,;t t
21805 s,@REPORT_BUGS_TO@,$REPORT_BUGS_TO,;t t
21806 s,@REPORT_BUGS_TEXI@,$REPORT_BUGS_TEXI,;t t
21807 s,@LN_S@,$LN_S,;t t
21808 s,@YACC@,$YACC,;t t
21810 s,@ac_ct_AR@,$ac_ct_AR,;t t
21811 s,@DLLTOOL@,$DLLTOOL,;t t
21812 s,@ac_ct_DLLTOOL@,$ac_ct_DLLTOOL,;t t
21813 s,@WINDRES@,$WINDRES,;t t
21814 s,@ac_ct_WINDRES@,$ac_ct_WINDRES,;t t
21816 s,@ac_ct_MIG@,$ac_ct_MIG,;t t
21817 s,@READLINE@,$READLINE,;t t
21818 s,@READLINE_DEPS@,$READLINE_DEPS,;t t
21819 s,@READLINE_CFLAGS@,$READLINE_CFLAGS,;t t
21820 s,@HAVE_LIBEXPAT@,$HAVE_LIBEXPAT,;t t
21821 s,@LIBEXPAT@,$LIBEXPAT,;t t
21822 s,@LTLIBEXPAT@,$LTLIBEXPAT,;t t
21823 s,@PYTHON_CFLAGS@,$PYTHON_CFLAGS,;t t
21824 s,@ALLOCA@,$ALLOCA,;t t
21825 s,@CONFIG_LDFLAGS@,$CONFIG_LDFLAGS,;t t
21826 s,@TARGET_SYSTEM_ROOT@,$TARGET_SYSTEM_ROOT,;t t
21827 s,@TARGET_SYSTEM_ROOT_DEFINE@,$TARGET_SYSTEM_ROOT_DEFINE,;t t
21828 s,@WARN_CFLAGS@,$WARN_CFLAGS,;t t
21829 s,@WERROR_CFLAGS@,$WERROR_CFLAGS,;t t
21830 s,@SER_HARDWIRE@,$SER_HARDWIRE,;t t
21831 s,@WIN32LIBS@,$WIN32LIBS,;t t
21832 s,@LIBGUI@,$LIBGUI,;t t
21833 s,@GUI_CFLAGS_X@,$GUI_CFLAGS_X,;t t
21834 s,@WIN32LDAPP@,$WIN32LDAPP,;t t
21835 s,@TCL_VERSION@,$TCL_VERSION,;t t
21836 s,@TCL_PATCH_LEVEL@,$TCL_PATCH_LEVEL,;t t
21837 s,@TCL_BIN_DIR@,$TCL_BIN_DIR,;t t
21838 s,@TCL_SRC_DIR@,$TCL_SRC_DIR,;t t
21839 s,@TCL_LIB_FILE@,$TCL_LIB_FILE,;t t
21840 s,@TCL_LIB_FLAG@,$TCL_LIB_FLAG,;t t
21841 s,@TCL_LIB_SPEC@,$TCL_LIB_SPEC,;t t
21842 s,@TCL_STUB_LIB_FILE@,$TCL_STUB_LIB_FILE,;t t
21843 s,@TCL_STUB_LIB_FLAG@,$TCL_STUB_LIB_FLAG,;t t
21844 s,@TCL_STUB_LIB_SPEC@,$TCL_STUB_LIB_SPEC,;t t
21845 s,@TCL_INCLUDE@,$TCL_INCLUDE,;t t
21846 s,@TCL_LIBRARY@,$TCL_LIBRARY,;t t
21847 s,@TCL_DEPS@,$TCL_DEPS,;t t
21848 s,@TK_VERSION@,$TK_VERSION,;t t
21849 s,@TK_BIN_DIR@,$TK_BIN_DIR,;t t
21850 s,@TK_SRC_DIR@,$TK_SRC_DIR,;t t
21851 s,@TK_LIB_FILE@,$TK_LIB_FILE,;t t
21852 s,@TK_LIB_FLAG@,$TK_LIB_FLAG,;t t
21853 s,@TK_LIB_SPEC@,$TK_LIB_SPEC,;t t
21854 s,@TK_STUB_LIB_FILE@,$TK_STUB_LIB_FILE,;t t
21855 s,@TK_STUB_LIB_FLAG@,$TK_STUB_LIB_FLAG,;t t
21856 s,@TK_STUB_LIB_SPEC@,$TK_STUB_LIB_SPEC,;t t
21857 s,@TK_INCLUDE@,$TK_INCLUDE,;t t
21858 s,@TK_LIBRARY@,$TK_LIBRARY,;t t
21859 s,@TK_DEPS@,$TK_DEPS,;t t
21860 s,@TK_XINCLUDES@,$TK_XINCLUDES,;t t
21861 s,@X_CFLAGS@,$X_CFLAGS,;t t
21862 s,@X_LDFLAGS@,$X_LDFLAGS,;t t
21863 s,@X_LIBS@,$X_LIBS,;t t
21864 s,@GDBTKLIBS@,$GDBTKLIBS,;t t
21865 s,@GDBTK_CFLAGS@,$GDBTK_CFLAGS,;t t
21866 s,@GDBTK_SRC_DIR@,$GDBTK_SRC_DIR,;t t
21868 s,@SIM_OBS@,$SIM_OBS,;t t
21869 s,@ENABLE_CFLAGS@,$ENABLE_CFLAGS,;t t
21870 s,@PROFILE_CFLAGS@,$PROFILE_CFLAGS,;t t
21871 s,@CONFIG_OBS@,$CONFIG_OBS,;t t
21872 s,@CONFIG_DEPS@,$CONFIG_DEPS,;t t
21873 s,@CONFIG_SRCS@,$CONFIG_SRCS,;t t
21874 s,@CONFIG_ALL@,$CONFIG_ALL,;t t
21875 s,@CONFIG_CLEAN@,$CONFIG_CLEAN,;t t
21876 s,@CONFIG_INSTALL@,$CONFIG_INSTALL,;t t
21877 s,@CONFIG_UNINSTALL@,$CONFIG_UNINSTALL,;t t
21878 s,@target_subdir@,$target_subdir,;t t
21879 s,@frags@,$frags,;t t
21880 s,@nm_h@,$nm_h,;t t
21881 s,@LIBICONV@,$LIBICONV,;t t
21882 s,@LIBOBJS@,$LIBOBJS,;t t
21883 s,@LTLIBOBJS@,$LTLIBOBJS,;t t
21884 s,@gl_LIBOBJS@,$gl_LIBOBJS,;t t
21885 s,@gl_LTLIBOBJS@,$gl_LTLIBOBJS,;t t
21886 s,@gltests_LIBOBJS@,$gltests_LIBOBJS,;t t
21887 s,@gltests_LTLIBOBJS@,$gltests_LTLIBOBJS,;t t
21888 /@host_makefile_frag@/r $host_makefile_frag
21889 s,@host_makefile_frag@,,;t t
21894 cat >>$CONFIG_STATUS <<\_ACEOF
21895 # Split the substitutions into bite-sized pieces for seds with
21896 # small command number limits, like on Digital OSF/1 and HP-UX.
21897 ac_max_sed_lines
=48
21898 ac_sed_frag
=1 # Number of current file.
21899 ac_beg
=1 # First line for current file.
21900 ac_end
=$ac_max_sed_lines # Line after last line for current file.
21903 while $ac_more_lines; do
21904 if test $ac_beg -gt 1; then
21905 sed "1,${ac_beg}d; ${ac_end}q" $tmp/subs.
sed >$tmp/subs.frag
21907 sed "${ac_end}q" $tmp/subs.
sed >$tmp/subs.frag
21909 if test ! -s $tmp/subs.frag
; then
21910 ac_more_lines
=false
21912 # The purpose of the label and of the branching condition is to
21913 # speed up the sed processing (if there are no `@' at all, there
21914 # is no need to browse any of the substitutions).
21915 # These are the two extra sed commands mentioned above.
21917 /@[a-zA-Z_][a-zA-Z_0-9]*@/!b' && cat $tmp/subs.frag
) >$tmp/subs-
$ac_sed_frag.
sed
21918 if test -z "$ac_sed_cmds"; then
21919 ac_sed_cmds
="sed -f $tmp/subs-$ac_sed_frag.sed"
21921 ac_sed_cmds
="$ac_sed_cmds | sed -f $tmp/subs-$ac_sed_frag.sed"
21923 ac_sed_frag
=`expr $ac_sed_frag + 1`
21925 ac_end
=`expr $ac_end + $ac_max_sed_lines`
21928 if test -z "$ac_sed_cmds"; then
21931 fi # test -n "$CONFIG_FILES"
21934 cat >>$CONFIG_STATUS <<\_ACEOF
21935 for ac_file
in : $CONFIG_FILES; do test "x$ac_file" = x
: && continue
21936 # Support "outfile[:infile[:infile...]]", defaulting infile="outfile.in".
21938 - |
*:- |
*:-:* ) # input from stdin
21940 ac_file_in
=`echo "$ac_file" | sed 's,[^:]*:,,'`
21941 ac_file
=`echo "$ac_file" | sed 's,:.*,,'` ;;
21942 *:* ) ac_file_in
=`echo "$ac_file" | sed 's,[^:]*:,,'`
21943 ac_file
=`echo "$ac_file" | sed 's,:.*,,'` ;;
21944 * ) ac_file_in
=$ac_file.
in ;;
21947 # Compute @srcdir@, @top_srcdir@, and @INSTALL@ for subdirectories.
21948 ac_dir
=`(dirname "$ac_file") 2>/dev/null ||
21949 $as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
21950 X"$ac_file" : 'X\(//\)[^/]' \| \
21951 X"$ac_file" : 'X\(//\)$' \| \
21952 X"$ac_file" : 'X\(/\)' \| \
21953 . : '\(.\)' 2>/dev/null ||
21955 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
21956 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
21957 /^X\(\/\/\)$/{ s//\1/; q; }
21958 /^X\(\/\).*/{ s//\1/; q; }
21960 { if $as_mkdir_p; then
21965 while test ! -d "$as_dir"; do
21966 as_dirs
="$as_dir $as_dirs"
21967 as_dir
=`(dirname "$as_dir") 2>/dev/null ||
21968 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
21969 X"$as_dir" : 'X\(//\)[^/]' \| \
21970 X"$as_dir" : 'X\(//\)$' \| \
21971 X"$as_dir" : 'X\(/\)' \| \
21972 . : '\(.\)' 2>/dev/null ||
21974 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
21975 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
21976 /^X\(\/\/\)$/{ s//\1/; q; }
21977 /^X\(\/\).*/{ s//\1/; q; }
21980 test ! -n "$as_dirs" || mkdir
$as_dirs
21981 fi ||
{ { echo "$as_me:$LINENO: error: cannot create directory \"$ac_dir\"" >&5
21982 echo "$as_me: error: cannot create directory \"$ac_dir\"" >&2;}
21983 { (exit 1); exit 1; }; }; }
21987 if test "$ac_dir" != .
; then
21988 ac_dir_suffix
=/`echo "$ac_dir" | sed 's,^\.[\\/],,'`
21989 # A "../" for each directory in $ac_dir_suffix.
21990 ac_top_builddir
=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,../,g'`
21992 ac_dir_suffix
= ac_top_builddir
=
21996 .
) # No --srcdir option. We are building in place.
21998 if test -z "$ac_top_builddir"; then
22001 ac_top_srcdir
=`echo $ac_top_builddir | sed 's,/$,,'`
22003 [\\/]* | ?
:[\\/]* ) # Absolute path.
22004 ac_srcdir
=$srcdir$ac_dir_suffix;
22005 ac_top_srcdir
=$srcdir ;;
22006 *) # Relative path.
22007 ac_srcdir
=$ac_top_builddir$srcdir$ac_dir_suffix
22008 ac_top_srcdir
=$ac_top_builddir$srcdir ;;
22011 # Do not use `cd foo && pwd` to compute absolute paths, because
22012 # the directories may not exist.
22014 .
) ac_abs_builddir
="$ac_dir";;
22017 .
) ac_abs_builddir
=`pwd`;;
22018 [\\/]* | ?
:[\\/]* ) ac_abs_builddir
="$ac_dir";;
22019 *) ac_abs_builddir
=`pwd`/"$ac_dir";;
22022 case $ac_abs_builddir in
22023 .
) ac_abs_top_builddir
=${ac_top_builddir}.
;;
22025 case ${ac_top_builddir}.
in
22026 .
) ac_abs_top_builddir
=$ac_abs_builddir;;
22027 [\\/]* | ?
:[\\/]* ) ac_abs_top_builddir
=${ac_top_builddir}.
;;
22028 *) ac_abs_top_builddir
=$ac_abs_builddir/${ac_top_builddir}.
;;
22031 case $ac_abs_builddir in
22032 .
) ac_abs_srcdir
=$ac_srcdir;;
22035 .
) ac_abs_srcdir
=$ac_abs_builddir;;
22036 [\\/]* | ?
:[\\/]* ) ac_abs_srcdir
=$ac_srcdir;;
22037 *) ac_abs_srcdir
=$ac_abs_builddir/$ac_srcdir;;
22040 case $ac_abs_builddir in
22041 .
) ac_abs_top_srcdir
=$ac_top_srcdir;;
22043 case $ac_top_srcdir in
22044 .
) ac_abs_top_srcdir
=$ac_abs_builddir;;
22045 [\\/]* | ?
:[\\/]* ) ac_abs_top_srcdir
=$ac_top_srcdir;;
22046 *) ac_abs_top_srcdir
=$ac_abs_builddir/$ac_top_srcdir;;
22052 [\\/$
]* | ?
:[\\/]* ) ac_INSTALL
=$INSTALL ;;
22053 *) ac_INSTALL
=$ac_top_builddir$INSTALL ;;
22056 if test x
"$ac_file" != x-
; then
22057 { echo "$as_me:$LINENO: creating $ac_file" >&5
22058 echo "$as_me: creating $ac_file" >&6;}
22061 # Let's still pretend it is `configure' which instantiates (i.e., don't
22062 # use $as_me), people would be surprised to read:
22063 # /* config.h. Generated by config.status. */
22064 if test x
"$ac_file" = x-
; then
22067 configure_input
="$ac_file. "
22069 configure_input
=$configure_input"Generated from `echo $ac_file_in |
22070 sed 's,.*/,,'` by configure."
22072 # First look for the input files in the build tree, otherwise in the
22074 ac_file_inputs
=`IFS=:
22075 for f in $ac_file_in; do
22077 -) echo $tmp/stdin ;;
22079 # Absolute (can't be DOS-style, as IFS=:)
22080 test -f "$f" || { { echo "$as_me:$LINENO: error: cannot find input file: $f" >&5
22081 echo "$as_me: error: cannot find input file: $f" >&2;}
22082 { (exit 1); exit 1; }; }
22085 if test -f "$f"; then
22088 elif test -f "$srcdir/$f"; then
22093 { { echo "$as_me:$LINENO: error: cannot find input file: $f" >&5
22094 echo "$as_me: error: cannot find input file: $f" >&2;}
22095 { (exit 1); exit 1; }; }
22098 done` ||
{ (exit 1); exit 1; }
22100 cat >>$CONFIG_STATUS <<_ACEOF
22104 cat >>$CONFIG_STATUS <<\_ACEOF
22106 /@
[a-zA-Z_
][a-zA-Z_0-9
]*@
/!b
22107 s
,@configure_input@
,$configure_input,;t t
22108 s
,@srcdir@
,$ac_srcdir,;t t
22109 s
,@abs_srcdir@
,$ac_abs_srcdir,;t t
22110 s
,@top_srcdir@
,$ac_top_srcdir,;t t
22111 s
,@abs_top_srcdir@
,$ac_abs_top_srcdir,;t t
22112 s
,@builddir@
,$ac_builddir,;t t
22113 s
,@abs_builddir@
,$ac_abs_builddir,;t t
22114 s
,@top_builddir@
,$ac_top_builddir,;t t
22115 s
,@abs_top_builddir@
,$ac_abs_top_builddir,;t t
22116 s
,@INSTALL@
,$ac_INSTALL,;t t
22117 " $ac_file_inputs | (eval "$ac_sed_cmds") >$tmp/out
22119 if test x"$ac_file" != x-; then
22120 mv $tmp/out $ac_file
22128 cat >>$CONFIG_STATUS <<\_ACEOF
22131 # CONFIG_HEADER section.
22134 # These sed commands are passed to sed as "A NAME B NAME C VALUE D
", where
22135 # NAME is the cpp macro being defined and VALUE is the value it is being given.
22137 # ac_d sets the value in "#define NAME VALUE" lines.
22138 ac_dA
='s,^\([ ]*\)#\([ ]*define[ ][ ]*\)'
22139 ac_dB
='[ ].*$,\1#\2'
22142 # ac_u turns "#undef NAME" without trailing blanks into "#define NAME VALUE".
22143 ac_uA
='s,^\([ ]*\)#\([ ]*\)undef\([ ][ ]*\)'
22144 ac_uB
='$,\1#\2define\3'
22148 for ac_file
in : $CONFIG_HEADERS; do test "x$ac_file" = x
: && continue
22149 # Support "outfile[:infile[:infile...]]", defaulting infile="outfile.in".
22151 - |
*:- |
*:-:* ) # input from stdin
22153 ac_file_in
=`echo "$ac_file" | sed 's,[^:]*:,,'`
22154 ac_file
=`echo "$ac_file" | sed 's,:.*,,'` ;;
22155 *:* ) ac_file_in
=`echo "$ac_file" | sed 's,[^:]*:,,'`
22156 ac_file
=`echo "$ac_file" | sed 's,:.*,,'` ;;
22157 * ) ac_file_in
=$ac_file.
in ;;
22160 test x
"$ac_file" != x-
&& { echo "$as_me:$LINENO: creating $ac_file" >&5
22161 echo "$as_me: creating $ac_file" >&6;}
22163 # First look for the input files in the build tree, otherwise in the
22165 ac_file_inputs
=`IFS=:
22166 for f in $ac_file_in; do
22168 -) echo $tmp/stdin ;;
22170 # Absolute (can't be DOS-style, as IFS=:)
22171 test -f "$f" || { { echo "$as_me:$LINENO: error: cannot find input file: $f" >&5
22172 echo "$as_me: error: cannot find input file: $f" >&2;}
22173 { (exit 1); exit 1; }; }
22174 # Do quote $f, to prevent DOS paths from being IFS'd.
22177 if test -f "$f"; then
22180 elif test -f "$srcdir/$f"; then
22185 { { echo "$as_me:$LINENO: error: cannot find input file: $f" >&5
22186 echo "$as_me: error: cannot find input file: $f" >&2;}
22187 { (exit 1); exit 1; }; }
22190 done` ||
{ (exit 1); exit 1; }
22191 # Remove the trailing spaces.
22192 sed 's/[ ]*$//' $ac_file_inputs >$tmp/in
22196 # Transform confdefs.h into two sed scripts, `conftest.defines' and
22197 # `conftest.undefs', that substitutes the proper values into
22198 # config.h.in to produce config.h. The first handles `#define'
22199 # templates, and the second `#undef' templates.
22200 # And first: Protect against being on the right side of a sed subst in
22201 # config.status. Protect against being in an unquoted here document
22202 # in config.status.
22203 rm -f conftest.defines conftest.undefs
22204 # Using a here document instead of a string reduces the quoting nightmare.
22205 # Putting comments in sed scripts is not portable.
22207 # `end' is used to avoid that the second main sed command (meant for
22208 # 0-ary CPP macros) applies to n-ary macro definitions.
22209 # See the Autoconf documentation for `clear'.
22210 cat >confdef2sed.
sed <<\_ACEOF
22215 s,^[ ]*#[ ]*define[ ][ ]*\([^ (][^ (]*\)\(([^)]*)\)[ ]*\(.*\)$,${ac_dA}\1${ac_dB}\1\2${ac_dC}\3${ac_dD},gp
22217 s,^[ ]*#[ ]*define[ ][ ]*\([^ ][^ ]*\)[ ]*\(.*\)$,${ac_dA}\1${ac_dB}\1${ac_dC}\2${ac_dD},gp
22220 # If some macros were called several times there might be several times
22221 # the same #defines, which is useless. Nevertheless, we may not want to
22222 # sort them, since we want the *last* AC-DEFINE to be honored.
22223 uniq confdefs.h | sed -n -f confdef2sed.sed >conftest.defines
22224 sed 's/ac_d/ac_u/g' conftest.defines >conftest.undefs
22225 rm -f confdef2sed.sed
22227 # This sed command replaces #undef with comments. This is necessary, for
22228 # example, in the case of _POSIX_SOURCE, which is predefined and required
22229 # on some systems where configure will not decide to define it.
22230 cat >>conftest.undefs <<\_ACEOF
22231 s,^[ ]*#[ ]*undef[ ][ ]*[a-zA-Z_][a-zA-Z_0-9]*,/* & */,
22234 # Break up conftest.defines because some shells have a limit on the size
22235 # of here documents, and old seds have small limits too (100 cmds).
22236 echo ' # Handle all the #define templates only if necessary.' >>$CONFIG_STATUS
22237 echo ' if grep "^[ ]*#[ ]*define" $tmp/in >/dev/null; then' >>$CONFIG_STATUS
22238 echo ' # If there are no defines, we may have an empty if/fi' >>$CONFIG_STATUS
22239 echo ' :' >>$CONFIG_STATUS
22240 rm -f conftest.tail
22241 while grep . conftest.defines >/dev/null
22243 # Write a limited-size here document to $tmp/defines.sed.
22244 echo ' cat >$tmp/defines.sed <<CEOF' >>$CONFIG_STATUS
22245 # Speed up: don't consider the non `#define' lines.
22246 echo '/^[ ]*#[ ]*define/!b' >>$CONFIG_STATUS
22247 # Work around the forget-to-reset-the-flag bug.
22248 echo 't clr' >>$CONFIG_STATUS
22249 echo ': clr' >>$CONFIG_STATUS
22250 sed ${ac_max_here_lines}q conftest.defines
>>$CONFIG_STATUS
22252 sed -f $tmp/defines.sed $tmp/in >$tmp/out
22254 mv $tmp/out $tmp/in
22256 sed 1,${ac_max_here_lines}d conftest.defines
>conftest.
tail
22257 rm -f conftest.defines
22258 mv conftest.
tail conftest.defines
22260 rm -f conftest.defines
22261 echo ' fi # grep' >>$CONFIG_STATUS
22262 echo >>$CONFIG_STATUS
22264 # Break up conftest.undefs because some shells have a limit on the size
22265 # of here documents, and old seds have small limits too (100 cmds).
22266 echo ' # Handle all the #undef templates' >>$CONFIG_STATUS
22267 rm -f conftest.
tail
22268 while grep . conftest.undefs
>/dev
/null
22270 # Write a limited-size here document to $tmp/undefs.sed.
22271 echo ' cat >$tmp/undefs.sed <<CEOF' >>$CONFIG_STATUS
22272 # Speed up: don't consider the non
`#undef'
22273 echo '/^[ ]*#[ ]*undef/!b' >>$CONFIG_STATUS
22274 # Work around the forget-to-reset-the-flag bug.
22275 echo 't clr' >>$CONFIG_STATUS
22276 echo ': clr' >>$CONFIG_STATUS
22277 sed ${ac_max_here_lines}q conftest.undefs >>$CONFIG_STATUS
22279 sed -f $tmp/undefs.sed $tmp/in >$tmp/out
22281 mv $tmp/out $tmp/in
22283 sed 1,${ac_max_here_lines}d conftest.undefs >conftest.tail
22284 rm -f conftest.undefs
22285 mv conftest.tail conftest.undefs
22287 rm -f conftest.undefs
22289 cat >>$CONFIG_STATUS <<\_ACEOF
22290 # Let's still pretend it is `configure
' which instantiates (i.e., don't
22291 # use $as_me), people would be surprised to read:
22292 # /* config.h. Generated by config.status. */
22293 if test x
"$ac_file" = x-
; then
22294 echo "/* Generated by configure. */" >$tmp/config.h
22296 echo "/* $ac_file. Generated by configure. */" >$tmp/config.h
22298 cat $tmp/in >>$tmp/config.h
22300 if test x
"$ac_file" != x-
; then
22301 if diff $ac_file $tmp/config.h
>/dev
/null
2>&1; then
22302 { echo "$as_me:$LINENO: $ac_file is unchanged" >&5
22303 echo "$as_me: $ac_file is unchanged" >&6;}
22305 ac_dir
=`(dirname "$ac_file") 2>/dev/null ||
22306 $as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
22307 X"$ac_file" : 'X\(//\)[^/]' \| \
22308 X"$ac_file" : 'X\(//\)$' \| \
22309 X"$ac_file" : 'X\(/\)' \| \
22310 . : '\(.\)' 2>/dev/null ||
22312 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
22313 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
22314 /^X\(\/\/\)$/{ s//\1/; q; }
22315 /^X\(\/\).*/{ s//\1/; q; }
22317 { if $as_mkdir_p; then
22322 while test ! -d "$as_dir"; do
22323 as_dirs
="$as_dir $as_dirs"
22324 as_dir
=`(dirname "$as_dir") 2>/dev/null ||
22325 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
22326 X"$as_dir" : 'X\(//\)[^/]' \| \
22327 X"$as_dir" : 'X\(//\)$' \| \
22328 X"$as_dir" : 'X\(/\)' \| \
22329 . : '\(.\)' 2>/dev/null ||
22331 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
22332 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
22333 /^X\(\/\/\)$/{ s//\1/; q; }
22334 /^X\(\/\).*/{ s//\1/; q; }
22337 test ! -n "$as_dirs" || mkdir
$as_dirs
22338 fi ||
{ { echo "$as_me:$LINENO: error: cannot create directory \"$ac_dir\"" >&5
22339 echo "$as_me: error: cannot create directory \"$ac_dir\"" >&2;}
22340 { (exit 1); exit 1; }; }; }
22343 mv $tmp/config.h
$ac_file
22347 rm -f $tmp/config.h
22349 # Compute $ac_file's index in $config_headers.
22351 for _am_header
in $config_headers :; do
22352 case $_am_header in
22353 $ac_file |
$ac_file:* )
22356 _am_stamp_count
=`expr $_am_stamp_count + 1` ;;
22359 echo "timestamp for $ac_file" >`(dirname $ac_file) 2>/dev/null ||
22360 $as_expr X$ac_file : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
22361 X$ac_file : 'X\(//\)[^/]' \| \
22362 X$ac_file : 'X\(//\)$' \| \
22363 X$ac_file : 'X\(/\)' \| \
22364 . : '\(.\)' 2>/dev/null ||
22366 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
22367 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
22368 /^X\(\/\/\)$/{ s//\1/; q; }
22369 /^X\(\/\).*/{ s//\1/; q; }
22370 s/.*/./; q'`/stamp-h
$_am_stamp_count
22373 cat >>$CONFIG_STATUS <<\_ACEOF
22376 # CONFIG_LINKS section.
22379 for ac_file
in : $CONFIG_LINKS; do test "x$ac_file" = x
: && continue
22380 ac_dest
=`echo "$ac_file" | sed 's,:.*,,'`
22381 ac_source
=`echo "$ac_file" | sed 's,[^:]*:,,'`
22383 { echo "$as_me:$LINENO: linking $srcdir/$ac_source to $ac_dest" >&5
22384 echo "$as_me: linking $srcdir/$ac_source to $ac_dest" >&6;}
22386 if test ! -r $srcdir/$ac_source; then
22387 { { echo "$as_me:$LINENO: error: $srcdir/$ac_source: file not found" >&5
22388 echo "$as_me: error: $srcdir/$ac_source: file not found" >&2;}
22389 { (exit 1); exit 1; }; }
22393 # Make relative symlinks.
22394 ac_dest_dir
=`(dirname "$ac_dest") 2>/dev/null ||
22395 $as_expr X"$ac_dest" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
22396 X"$ac_dest" : 'X\(//\)[^/]' \| \
22397 X"$ac_dest" : 'X\(//\)$' \| \
22398 X"$ac_dest" : 'X\(/\)' \| \
22399 . : '\(.\)' 2>/dev/null ||
22401 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
22402 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
22403 /^X\(\/\/\)$/{ s//\1/; q; }
22404 /^X\(\/\).*/{ s//\1/; q; }
22406 { if $as_mkdir_p; then
22407 mkdir
-p "$ac_dest_dir"
22409 as_dir
="$ac_dest_dir"
22411 while test ! -d "$as_dir"; do
22412 as_dirs
="$as_dir $as_dirs"
22413 as_dir
=`(dirname "$as_dir") 2>/dev/null ||
22414 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
22415 X"$as_dir" : 'X\(//\)[^/]' \| \
22416 X"$as_dir" : 'X\(//\)$' \| \
22417 X"$as_dir" : 'X\(/\)' \| \
22418 . : '\(.\)' 2>/dev/null ||
22420 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
22421 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
22422 /^X\(\/\/\)$/{ s//\1/; q; }
22423 /^X\(\/\).*/{ s//\1/; q; }
22426 test ! -n "$as_dirs" || mkdir
$as_dirs
22427 fi ||
{ { echo "$as_me:$LINENO: error: cannot create directory \"$ac_dest_dir\"" >&5
22428 echo "$as_me: error: cannot create directory \"$ac_dest_dir\"" >&2;}
22429 { (exit 1); exit 1; }; }; }
22433 if test "$ac_dest_dir" != .
; then
22434 ac_dir_suffix
=/`echo "$ac_dest_dir" | sed 's,^\.[\\/],,'`
22435 # A "../" for each directory in $ac_dir_suffix.
22436 ac_top_builddir
=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,../,g'`
22438 ac_dir_suffix
= ac_top_builddir
=
22442 .
) # No --srcdir option. We are building in place.
22444 if test -z "$ac_top_builddir"; then
22447 ac_top_srcdir
=`echo $ac_top_builddir | sed 's,/$,,'`
22449 [\\/]* | ?
:[\\/]* ) # Absolute path.
22450 ac_srcdir
=$srcdir$ac_dir_suffix;
22451 ac_top_srcdir
=$srcdir ;;
22452 *) # Relative path.
22453 ac_srcdir
=$ac_top_builddir$srcdir$ac_dir_suffix
22454 ac_top_srcdir
=$ac_top_builddir$srcdir ;;
22457 # Do not use `cd foo && pwd` to compute absolute paths, because
22458 # the directories may not exist.
22460 .
) ac_abs_builddir
="$ac_dest_dir";;
22462 case "$ac_dest_dir" in
22463 .
) ac_abs_builddir
=`pwd`;;
22464 [\\/]* | ?
:[\\/]* ) ac_abs_builddir
="$ac_dest_dir";;
22465 *) ac_abs_builddir
=`pwd`/"$ac_dest_dir";;
22468 case $ac_abs_builddir in
22469 .
) ac_abs_top_builddir
=${ac_top_builddir}.
;;
22471 case ${ac_top_builddir}.
in
22472 .
) ac_abs_top_builddir
=$ac_abs_builddir;;
22473 [\\/]* | ?
:[\\/]* ) ac_abs_top_builddir
=${ac_top_builddir}.
;;
22474 *) ac_abs_top_builddir
=$ac_abs_builddir/${ac_top_builddir}.
;;
22477 case $ac_abs_builddir in
22478 .
) ac_abs_srcdir
=$ac_srcdir;;
22481 .
) ac_abs_srcdir
=$ac_abs_builddir;;
22482 [\\/]* | ?
:[\\/]* ) ac_abs_srcdir
=$ac_srcdir;;
22483 *) ac_abs_srcdir
=$ac_abs_builddir/$ac_srcdir;;
22486 case $ac_abs_builddir in
22487 .
) ac_abs_top_srcdir
=$ac_top_srcdir;;
22489 case $ac_top_srcdir in
22490 .
) ac_abs_top_srcdir
=$ac_abs_builddir;;
22491 [\\/]* | ?
:[\\/]* ) ac_abs_top_srcdir
=$ac_top_srcdir;;
22492 *) ac_abs_top_srcdir
=$ac_abs_builddir/$ac_top_srcdir;;
22498 [\\/$
]* | ?
:[\\/]* ) ac_rel_source
=$srcdir/$ac_source ;;
22499 *) ac_rel_source
=$ac_top_builddir$srcdir/$ac_source ;;
22502 # Try a symlink, then a hard link, then a copy.
22503 ln -s $ac_rel_source $ac_dest 2>/dev
/null ||
22504 ln $srcdir/$ac_source $ac_dest 2>/dev
/null ||
22505 cp -p $srcdir/$ac_source $ac_dest ||
22506 { { echo "$as_me:$LINENO: error: cannot link or copy $srcdir/$ac_source to $ac_dest" >&5
22507 echo "$as_me: error: cannot link or copy $srcdir/$ac_source to $ac_dest" >&2;}
22508 { (exit 1); exit 1; }; }
22511 cat >>$CONFIG_STATUS <<\_ACEOF
22514 # CONFIG_COMMANDS section.
22516 for ac_file
in : $CONFIG_COMMANDS; do test "x$ac_file" = x
: && continue
22517 ac_dest
=`echo "$ac_file" | sed 's,:.*,,'`
22518 ac_source
=`echo "$ac_file" | sed 's,[^:]*:,,'`
22519 ac_dir
=`(dirname "$ac_dest") 2>/dev/null ||
22520 $as_expr X"$ac_dest" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
22521 X"$ac_dest" : 'X\(//\)[^/]' \| \
22522 X"$ac_dest" : 'X\(//\)$' \| \
22523 X"$ac_dest" : 'X\(/\)' \| \
22524 . : '\(.\)' 2>/dev/null ||
22526 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
22527 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
22528 /^X\(\/\/\)$/{ s//\1/; q; }
22529 /^X\(\/\).*/{ s//\1/; q; }
22531 { if $as_mkdir_p; then
22536 while test ! -d "$as_dir"; do
22537 as_dirs
="$as_dir $as_dirs"
22538 as_dir
=`(dirname "$as_dir") 2>/dev/null ||
22539 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
22540 X"$as_dir" : 'X\(//\)[^/]' \| \
22541 X"$as_dir" : 'X\(//\)$' \| \
22542 X"$as_dir" : 'X\(/\)' \| \
22543 . : '\(.\)' 2>/dev/null ||
22545 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
22546 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
22547 /^X\(\/\/\)$/{ s//\1/; q; }
22548 /^X\(\/\).*/{ s//\1/; q; }
22551 test ! -n "$as_dirs" || mkdir
$as_dirs
22552 fi ||
{ { echo "$as_me:$LINENO: error: cannot create directory \"$ac_dir\"" >&5
22553 echo "$as_me: error: cannot create directory \"$ac_dir\"" >&2;}
22554 { (exit 1); exit 1; }; }; }
22558 if test "$ac_dir" != .
; then
22559 ac_dir_suffix
=/`echo "$ac_dir" | sed 's,^\.[\\/],,'`
22560 # A "../" for each directory in $ac_dir_suffix.
22561 ac_top_builddir
=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,../,g'`
22563 ac_dir_suffix
= ac_top_builddir
=
22567 .
) # No --srcdir option. We are building in place.
22569 if test -z "$ac_top_builddir"; then
22572 ac_top_srcdir
=`echo $ac_top_builddir | sed 's,/$,,'`
22574 [\\/]* | ?
:[\\/]* ) # Absolute path.
22575 ac_srcdir
=$srcdir$ac_dir_suffix;
22576 ac_top_srcdir
=$srcdir ;;
22577 *) # Relative path.
22578 ac_srcdir
=$ac_top_builddir$srcdir$ac_dir_suffix
22579 ac_top_srcdir
=$ac_top_builddir$srcdir ;;
22582 # Do not use `cd foo && pwd` to compute absolute paths, because
22583 # the directories may not exist.
22585 .
) ac_abs_builddir
="$ac_dir";;
22588 .
) ac_abs_builddir
=`pwd`;;
22589 [\\/]* | ?
:[\\/]* ) ac_abs_builddir
="$ac_dir";;
22590 *) ac_abs_builddir
=`pwd`/"$ac_dir";;
22593 case $ac_abs_builddir in
22594 .
) ac_abs_top_builddir
=${ac_top_builddir}.
;;
22596 case ${ac_top_builddir}.
in
22597 .
) ac_abs_top_builddir
=$ac_abs_builddir;;
22598 [\\/]* | ?
:[\\/]* ) ac_abs_top_builddir
=${ac_top_builddir}.
;;
22599 *) ac_abs_top_builddir
=$ac_abs_builddir/${ac_top_builddir}.
;;
22602 case $ac_abs_builddir in
22603 .
) ac_abs_srcdir
=$ac_srcdir;;
22606 .
) ac_abs_srcdir
=$ac_abs_builddir;;
22607 [\\/]* | ?
:[\\/]* ) ac_abs_srcdir
=$ac_srcdir;;
22608 *) ac_abs_srcdir
=$ac_abs_builddir/$ac_srcdir;;
22611 case $ac_abs_builddir in
22612 .
) ac_abs_top_srcdir
=$ac_top_srcdir;;
22614 case $ac_top_srcdir in
22615 .
) ac_abs_top_srcdir
=$ac_abs_builddir;;
22616 [\\/]* | ?
:[\\/]* ) ac_abs_top_srcdir
=$ac_top_srcdir;;
22617 *) ac_abs_top_srcdir
=$ac_abs_builddir/$ac_top_srcdir;;
22622 { echo "$as_me:$LINENO: executing $ac_dest commands" >&5
22623 echo "$as_me: executing $ac_dest commands" >&6;}
22625 depdir
) $SHELL $ac_aux_dir/mkinstalldirs
$DEPDIR ;;
22626 depfiles
) test x
"$AMDEP_TRUE" != x
"" ||
for mf
in $CONFIG_FILES; do
22627 # Strip MF so we end up with the name of the file.
22628 mf
=`echo "$mf" | sed -e 's/:.*$//'`
22629 # Check whether this is an Automake generated Makefile or not.
22630 # We used to match only the files named `Makefile.in', but
22631 # some people rename them; so instead we look at the file content.
22632 # Grep'ing the first line is not enough: some people post-process
22633 # each Makefile.in and add a new line on top of each file to say so.
22634 # So let's grep whole file.
22635 if grep '^#.*generated by automake' $mf > /dev
/null
2>&1; then
22636 dirpart
=`(dirname "$mf") 2>/dev/null ||
22637 $as_expr X"$mf" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
22638 X"$mf" : 'X\(//\)[^/]' \| \
22639 X"$mf" : 'X\(//\)$' \| \
22640 X"$mf" : 'X\(/\)' \| \
22641 . : '\(.\)' 2>/dev/null ||
22643 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
22644 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
22645 /^X\(\/\/\)$/{ s//\1/; q; }
22646 /^X\(\/\).*/{ s//\1/; q; }
22651 # Extract the definition of DEPDIR, am__include, and am__quote
22652 # from the Makefile without running `make'.
22653 DEPDIR
=`sed -n 's/^DEPDIR = //p' < "$mf"`
22654 test -z "$DEPDIR" && continue
22655 am__include
=`sed -n 's/^am__include = //p' < "$mf"`
22656 test -z "am__include" && continue
22657 am__quote
=`sed -n 's/^am__quote = //p' < "$mf"`
22658 # When using ansi2knr, U may be empty or an underscore; expand it
22659 U
=`sed -n 's/^U = //p' < "$mf"`
22660 # Find all dependency output files, they are included files with
22661 # $(DEPDIR) in their names. We invoke sed twice because it is the
22662 # simplest approach to changing $(DEPDIR) to its actual value in the
22664 for file in `sed -n "
22665 s/^$am__include $am__quote\(.*(DEPDIR).*\)$am__quote"'$/\1/p' <"$mf" | \
22666 sed -e 's/\$(DEPDIR)/'"$DEPDIR"'/g' -e 's/\$U/'"$U"'/g'`; do
22667 # Make sure the directory exists.
22668 test -f "$dirpart/$file" && continue
22669 fdir
=`(dirname "$file") 2>/dev/null ||
22670 $as_expr X"$file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
22671 X"$file" : 'X\(//\)[^/]' \| \
22672 X"$file" : 'X\(//\)$' \| \
22673 X"$file" : 'X\(/\)' \| \
22674 . : '\(.\)' 2>/dev/null ||
22676 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
22677 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
22678 /^X\(\/\/\)$/{ s//\1/; q; }
22679 /^X\(\/\).*/{ s//\1/; q; }
22681 { if $as_mkdir_p; then
22682 mkdir
-p $dirpart/$fdir
22684 as_dir
=$dirpart/$fdir
22686 while test ! -d "$as_dir"; do
22687 as_dirs
="$as_dir $as_dirs"
22688 as_dir
=`(dirname "$as_dir") 2>/dev/null ||
22689 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
22690 X"$as_dir" : 'X\(//\)[^/]' \| \
22691 X"$as_dir" : 'X\(//\)$' \| \
22692 X"$as_dir" : 'X\(/\)' \| \
22693 . : '\(.\)' 2>/dev/null ||
22695 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
22696 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
22697 /^X\(\/\/\)$/{ s//\1/; q; }
22698 /^X\(\/\).*/{ s//\1/; q; }
22701 test ! -n "$as_dirs" || mkdir
$as_dirs
22702 fi ||
{ { echo "$as_me:$LINENO: error: cannot create directory $dirpart/$fdir" >&5
22703 echo "$as_me: error: cannot create directory $dirpart/$fdir" >&2;}
22704 { (exit 1); exit 1; }; }; }
22706 # echo "creating $dirpart/$file"
22707 echo '# dummy' > "$dirpart/$file"
22713 sed -e '/^NAT_FILE[ ]*=/s,^NAT_FILE[ ]*=[ ]*,&config/'"${gdb_host_cpu}"'/,' <Makefile
>Makefile.tmp
22714 mv -f Makefile.tmp Makefile
22717 case x
$CONFIG_HEADERS in
22718 xconfig.h
:config.
in)
22726 cat >>$CONFIG_STATUS <<\_ACEOF
22728 { (exit 0); exit 0; }
22730 chmod +x
$CONFIG_STATUS
22731 ac_clean_files
=$ac_clean_files_save
22734 # configure is writing to config.log, and then calls config.status.
22735 # config.status does its own redirection, appending to config.log.
22736 # Unfortunately, on DOS this fails, as config.log is still kept open
22737 # by configure, so config.status won't be able to write to it; its
22738 # output is simply discarded. So we exec the FD to /dev/null,
22739 # effectively closing config.log, so it can be properly (re)opened and
22740 # appended to by config.status. When coming back to configure, we
22741 # need to make the FD available again.
22742 if test "$no_create" != yes; then
22744 ac_config_status_args
=
22745 test "$silent" = yes &&
22746 ac_config_status_args
="$ac_config_status_args --quiet"
22748 $SHELL $CONFIG_STATUS $ac_config_status_args || ac_cs_success
=false
22750 # Use ||, not &&, to avoid exiting from the if with $? = 1, which
22751 # would make configure fail if this is the last instruction.
22752 $ac_cs_success ||
{ (exit 1); exit 1; }
22756 # CONFIG_SUBDIRS section, as fixed in confsubdir.m4.
22758 if test "$no_recursion" != yes; then
22760 # Remove --cache-file and --srcdir arguments so they do not pile up.
22761 ac_sub_configure_args
=
22763 eval "set x $ac_configure_args"
22767 if test -n "$ac_prev"; then
22772 -cache-file |
--cache-file |
--cache-fil |
--cache-fi \
22773 |
--cache-f |
--cache- |
--cache |
--cach |
--cac |
--ca |
--c)
22774 ac_prev
=cache_file
;;
22775 -cache-file=* |
--cache-file=* |
--cache-fil=* |
--cache-fi=* \
22776 |
--cache-f=* |
--cache-=* |
--cache=* |
--cach=* |
--cac=* |
--ca=* \
22779 --config-cache |
-C)
22781 -srcdir |
--srcdir |
--srcdi |
--srcd |
--src |
--sr)
22783 -srcdir=* |
--srcdir=* |
--srcdi=* |
--srcd=* |
--src=* |
--sr=*)
22785 -prefix |
--prefix |
--prefi |
--pref |
--pre |
--pr |
--p)
22787 -prefix=* |
--prefix=* |
--prefi=* |
--pref=* |
--pre=* |
--pr=* |
--p=*)
22791 *\'*) ac_arg
=`echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;;
22793 ac_sub_configure_args
="$ac_sub_configure_args '$ac_arg'" ;;
22797 # Always prepend --prefix to ensure using the same prefix
22798 # in subdir configurations.
22799 ac_arg
="--prefix=$prefix"
22801 *\'*) ac_arg
=`echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;;
22803 ac_sub_configure_args
="$ac_arg $ac_sub_configure_args"
22806 for ac_dir
in : $subdirs; do test "x$ac_dir" = x
: && continue
22808 # Do not complain, so a configure script can configure whichever
22809 # parts of a large source tree are present.
22810 test -d "$srcdir/$ac_dir" ||
continue
22812 { echo "$as_me:$LINENO: configuring in $ac_dir" >&5
22813 echo "$as_me: configuring in $ac_dir" >&6;}
22814 { if $as_mkdir_p; then
22819 while test ! -d "$as_dir"; do
22820 as_dirs
="$as_dir $as_dirs"
22821 as_dir
=`(dirname "$as_dir") 2>/dev/null ||
22822 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
22823 X"$as_dir" : 'X\(//\)[^/]' \| \
22824 X"$as_dir" : 'X\(//\)$' \| \
22825 X"$as_dir" : 'X\(/\)' \| \
22826 . : '\(.\)' 2>/dev/null ||
22828 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
22829 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
22830 /^X\(\/\/\)$/{ s//\1/; q; }
22831 /^X\(\/\).*/{ s//\1/; q; }
22834 test ! -n "$as_dirs" || mkdir
$as_dirs
22835 fi ||
{ { echo "$as_me:$LINENO: error: cannot create directory \"$ac_dir\"" >&5
22836 echo "$as_me: error: cannot create directory \"$ac_dir\"" >&2;}
22837 { (exit 1); exit 1; }; }; }
22841 if test "$ac_dir" != .
; then
22842 ac_dir_suffix
=/`echo "$ac_dir" | sed 's,^\.[\\/],,'`
22843 # A "../" for each directory in $ac_dir_suffix.
22844 ac_top_builddir
=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,../,g'`
22846 ac_dir_suffix
= ac_top_builddir
=
22850 .
) # No --srcdir option. We are building in place.
22852 if test -z "$ac_top_builddir"; then
22855 ac_top_srcdir
=`echo $ac_top_builddir | sed 's,/$,,'`
22857 [\\/]* | ?
:[\\/]* ) # Absolute path.
22858 ac_srcdir
=$srcdir$ac_dir_suffix;
22859 ac_top_srcdir
=$srcdir ;;
22860 *) # Relative path.
22861 ac_srcdir
=$ac_top_builddir$srcdir$ac_dir_suffix
22862 ac_top_srcdir
=$ac_top_builddir$srcdir ;;
22865 # Do not use `cd foo && pwd` to compute absolute paths, because
22866 # the directories may not exist.
22868 .
) ac_abs_builddir
="$ac_dir";;
22871 .
) ac_abs_builddir
=`pwd`;;
22872 [\\/]* | ?
:[\\/]* ) ac_abs_builddir
="$ac_dir";;
22873 *) ac_abs_builddir
=`pwd`/"$ac_dir";;
22876 case $ac_abs_builddir in
22877 .
) ac_abs_top_builddir
=${ac_top_builddir}.
;;
22879 case ${ac_top_builddir}.
in
22880 .
) ac_abs_top_builddir
=$ac_abs_builddir;;
22881 [\\/]* | ?
:[\\/]* ) ac_abs_top_builddir
=${ac_top_builddir}.
;;
22882 *) ac_abs_top_builddir
=$ac_abs_builddir/${ac_top_builddir}.
;;
22885 case $ac_abs_builddir in
22886 .
) ac_abs_srcdir
=$ac_srcdir;;
22889 .
) ac_abs_srcdir
=$ac_abs_builddir;;
22890 [\\/]* | ?
:[\\/]* ) ac_abs_srcdir
=$ac_srcdir;;
22891 *) ac_abs_srcdir
=$ac_abs_builddir/$ac_srcdir;;
22894 case $ac_abs_builddir in
22895 .
) ac_abs_top_srcdir
=$ac_top_srcdir;;
22897 case $ac_top_srcdir in
22898 .
) ac_abs_top_srcdir
=$ac_abs_builddir;;
22899 [\\/]* | ?
:[\\/]* ) ac_abs_top_srcdir
=$ac_top_srcdir;;
22900 *) ac_abs_top_srcdir
=$ac_abs_builddir/$ac_top_srcdir;;
22907 # Check for guested configure; otherwise get Cygnus style configure.
22908 if test -f "$ac_srcdir/configure.gnu"; then
22909 ac_sub_configure
=$ac_srcdir/configure.gnu
22910 elif test -f "$ac_srcdir/configure"; then
22911 ac_sub_configure
=$ac_srcdir/configure
22912 elif test -f "$ac_srcdir/configure.in"; then
22913 # This should be Cygnus configure.
22914 ac_sub_configure
=$ac_aux_dir/configure
22916 { echo "$as_me:$LINENO: WARNING: no configuration information is in $ac_dir" >&5
22917 echo "$as_me: WARNING: no configuration information is in $ac_dir" >&2;}
22921 # The recursion is here.
22922 if test -n "$ac_sub_configure"; then
22923 # Make the cache file name correct relative to the subdirectory.
22924 case $cache_file in
22925 [\\/]* | ?
:[\\/]* ) ac_sub_cache_file
=$cache_file ;;
22926 *) # Relative path.
22927 ac_sub_cache_file
=$ac_top_builddir$cache_file ;;
22930 { echo "$as_me:$LINENO: running $SHELL $ac_sub_configure $ac_sub_configure_args --cache-file=$ac_sub_cache_file --srcdir=$ac_srcdir" >&5
22931 echo "$as_me: running $SHELL $ac_sub_configure $ac_sub_configure_args --cache-file=$ac_sub_cache_file --srcdir=$ac_srcdir" >&6;}
22932 # The eval makes quoting arguments work.
22933 eval "\$SHELL \"\$ac_sub_configure\" $ac_sub_configure_args \
22934 --cache-file=\"\$ac_sub_cache_file\" --srcdir=\"\$ac_srcdir\"" ||
22935 { { echo "$as_me:$LINENO: error: $ac_sub_configure failed for $ac_dir" >&5
22936 echo "$as_me: error: $ac_sub_configure failed for $ac_dir" >&2;}
22937 { (exit 1); exit 1; }; }