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 datarootdir docdir htmldir pdfdir 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-relocated-sources=PATH
886 Automatically relocate this path
for source files
887 --with-libunwind Use libunwind frame unwinding support
888 --with-curses use the curses library instead of the termcap
890 --with-pkgversion=PKG Use PKG
in the version string
in place of
"GDB"
891 --with-bugurl=URL Direct users to URL to report a bug
892 --with-libiconv-prefix=DIR search
for libiconv
in DIR
/include and DIR
/lib
893 --with-system-readline use installed readline library
894 --with-expat include expat support
(auto
/yes
/no
)
895 --with-gnu-ld assume the C compiler uses GNU ld default
=no
896 --with-libexpat-prefix[=DIR
] search
for libexpat
in DIR
/include and DIR
/lib
897 --without-libexpat-prefix don
't search for libexpat in includedir and libdir
898 --with-python include python support (auto/yes/no/<path>)
899 --without-included-regex don't use included regex
; this is the default
900 on systems with version
2 of the GNU C library
901 (use with caution on other system
)
902 --with-sysroot=DIR Search
for usr
/lib et al within DIR.
903 --with-system-gdbinit=file Automatically load a system-wide gdbinit
file
904 --with-tcl directory containing tcl configuration
(tclConfig.sh
)
905 --with-tk directory containing tk configuration
(tkConfig.sh
)
906 --with-x use the X Window System
908 Some influential environment variables
:
909 CC C compiler
command
910 CFLAGS C compiler flags
911 LDFLAGS linker flags
, e.g.
-L<lib dir
> if you have libraries
in a
912 nonstandard directory
<lib dir
>
913 CPPFLAGS C
/C
++ preprocessor flags
, e.g.
-I<include dir
> if you have
914 headers
in a nonstandard directory
<include dir
>
917 Use these variables to override the choices made by
`configure' or to help
918 it to find libraries and programs with nonstandard names/locations.
923 if test "$ac_init_help" = "recursive"; then
924 # If there are subdirs, report their specific --help.
926 for ac_dir in : $ac_subdirs_all; do test "x$ac_dir" = x: && continue
927 test -d $ac_dir || continue
930 if test "$ac_dir" != .; then
931 ac_dir_suffix=/`echo "$ac_dir" |
sed 's,^\.[\\/],,'`
932 # A "../" for each directory in $ac_dir_suffix.
933 ac_top_builddir=`echo "$ac_dir_suffix" |
sed 's,/[^\\/]*,../,g'`
935 ac_dir_suffix= ac_top_builddir=
939 .) # No --srcdir option. We are building in place.
941 if test -z "$ac_top_builddir"; then
944 ac_top_srcdir=`echo $ac_top_builddir |
sed 's,/$,,'`
946 [\\/]* | ?:[\\/]* ) # Absolute path.
947 ac_srcdir=$srcdir$ac_dir_suffix;
948 ac_top_srcdir=$srcdir ;;
950 ac_srcdir=$ac_top_builddir$srcdir$ac_dir_suffix
951 ac_top_srcdir=$ac_top_builddir$srcdir ;;
954 # Do not use `cd foo
&& pwd` to compute absolute paths, because
955 # the directories may not exist.
957 .) ac_abs_builddir="$ac_dir";;
960 .) ac_abs_builddir=`pwd`;;
961 [\\/]* | ?:[\\/]* ) ac_abs_builddir="$ac_dir";;
962 *) ac_abs_builddir=`pwd`/"$ac_dir";;
965 case $ac_abs_builddir in
966 .) ac_abs_top_builddir=${ac_top_builddir}.;;
968 case ${ac_top_builddir}. in
969 .) ac_abs_top_builddir=$ac_abs_builddir;;
970 [\\/]* | ?:[\\/]* ) ac_abs_top_builddir=${ac_top_builddir}.;;
971 *) ac_abs_top_builddir=$ac_abs_builddir/${ac_top_builddir}.;;
974 case $ac_abs_builddir in
975 .) ac_abs_srcdir=$ac_srcdir;;
978 .) ac_abs_srcdir=$ac_abs_builddir;;
979 [\\/]* | ?:[\\/]* ) ac_abs_srcdir=$ac_srcdir;;
980 *) ac_abs_srcdir=$ac_abs_builddir/$ac_srcdir;;
983 case $ac_abs_builddir in
984 .) ac_abs_top_srcdir=$ac_top_srcdir;;
986 case $ac_top_srcdir in
987 .) ac_abs_top_srcdir=$ac_abs_builddir;;
988 [\\/]* | ?:[\\/]* ) ac_abs_top_srcdir=$ac_top_srcdir;;
989 *) ac_abs_top_srcdir=$ac_abs_builddir/$ac_top_srcdir;;
994 # Check for guested configure; otherwise get Cygnus style configure.
995 if test -f $ac_srcdir/configure.gnu; then
997 $SHELL $ac_srcdir/configure.gnu --help=recursive
998 elif test -f $ac_srcdir/configure; then
1000 $SHELL $ac_srcdir/configure --help=recursive
1001 elif test -f $ac_srcdir/configure.ac ||
1002 test -f $ac_srcdir/configure.in; then
1004 $ac_configure --help
1006 echo "$as_me: WARNING: no configuration information is in $ac_dir" >&2
1012 test -n "$ac_init_help" && exit 0
1013 if $ac_init_version; then
1016 Copyright (C) 2003 Free Software Foundation, Inc.
1017 This configure script is free software; the Free Software Foundation
1018 gives unlimited permission to copy, distribute and modify it.
1024 This file contains any messages produced by compilers while
1025 running configure, to aid debugging if configure makes a mistake.
1027 It was created by $as_me, which was
1028 generated by GNU Autoconf 2.59. Invocation command line was
1039 hostname = `(hostname || uname
-n) 2>/dev
/null |
sed 1q
`
1040 uname -m = `(uname
-m) 2>/dev
/null ||
echo unknown
`
1041 uname -r = `(uname
-r) 2>/dev
/null ||
echo unknown
`
1042 uname -s = `(uname
-s) 2>/dev
/null ||
echo unknown
`
1043 uname -v = `(uname
-v) 2>/dev
/null ||
echo unknown
`
1045 /usr/bin/uname -p = `(/usr
/bin
/uname
-p) 2>/dev
/null ||
echo unknown
`
1046 /bin/uname -X = `(/bin
/uname
-X) 2>/dev
/null ||
echo unknown
`
1048 /bin/arch = `(/bin
/arch
) 2>/dev
/null ||
echo unknown
`
1049 /usr/bin/arch -k = `(/usr
/bin
/arch
-k) 2>/dev
/null ||
echo unknown
`
1050 /usr/convex/getsysinfo = `(/usr
/convex
/getsysinfo
) 2>/dev
/null ||
echo unknown
`
1051 hostinfo = `(hostinfo
) 2>/dev
/null ||
echo unknown
`
1052 /bin/machine = `(/bin
/machine
) 2>/dev
/null ||
echo unknown
`
1053 /usr/bin/oslevel = `(/usr
/bin
/oslevel
) 2>/dev
/null ||
echo unknown
`
1054 /bin/universe = `(/bin
/universe
) 2>/dev
/null ||
echo unknown
`
1058 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1062 test -z "$as_dir" && as_dir=.
1063 echo "PATH: $as_dir"
1078 # Keep a trace of the command line.
1079 # Strip out --no-create and --no-recursion so they do not pile up.
1080 # Strip out --silent because we don't want to record it for future runs.
1081 # Also quote any args containing shell meta-characters.
1082 # Make two passes to allow for proper duplicate-argument suppression.
1087 ac_must_keep_next=false
1093 -no-create | --no-c* | -n | -no-recursion | --no-r*) continue ;;
1094 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
1095 | -silent | --silent | --silen | --sile | --sil)
1097 *" "*|*" "*|*[\[\]\~\#\$\^\&\*\(\)\{\}\\\|\;\<\>\?\"\']*)
1098 ac_arg=`echo "$ac_arg" |
sed "s/'/'\\\\\\\\''/g"` ;;
1101 1) ac_configure_args0="$ac_configure_args0 '$ac_arg'" ;;
1103 ac_configure_args1="$ac_configure_args1 '$ac_arg'"
1104 if test $ac_must_keep_next = true; then
1105 ac_must_keep_next=false # Got value, back to normal.
1108 *=* | --config-cache | -C | -disable-* | --disable-* \
1109 | -enable-* | --enable-* | -gas | --g* | -nfp | --nf* \
1110 | -q | -quiet | --q* | -silent | --sil* | -v | -verb* \
1111 | -with-* | --with-* | -without-* | --without-* | --x)
1112 case "$ac_configure_args0 " in
1113 "$ac_configure_args1"*" '$ac_arg' "* ) continue ;;
1116 -* ) ac_must_keep_next=true ;;
1119 ac_configure_args="$ac_configure_args$ac_sep'$ac_arg'"
1120 # Get rid of the leading space.
1126 $as_unset ac_configure_args0 || test "${ac_configure_args0+set}" != set || { ac_configure_args0=; export ac_configure_args0; }
1127 $as_unset ac_configure_args1 || test "${ac_configure_args1+set}" != set || { ac_configure_args1=; export ac_configure_args1; }
1129 # When interrupted or exit'd, cleanup temporary files, and complete
1130 # config.log. We remove comments because anyway the quotes in there
1131 # would cause problems or look ugly.
1132 # WARNING: Be sure not to use single quotes in there, as some shells,
1133 # such as our DU 5.0 friend, will then `close
' the trap.
1134 trap 'exit_status
=$?
1135 # Save into config.log some information that might help in debugging.
1140 ## ---------------- ##
1141 ## Cache variables. ##
1142 ## ---------------- ##
1145 # The following way of writing the cache mishandles newlines in values,
1148 case `(ac_space='"'"' '"'"'; set | grep ac_space) 2>&1` in
1151 "s/'"'"'/'"'"'\\\\'"'"''"'"'/g;
1152 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='"'"'\\2'"'"'/p"
1156 "s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1=\\2/p"
1163 ## ----------------- ##
1164 ## Output variables. ##
1165 ## ----------------- ##
1168 for ac_var
in $ac_subst_vars
1170 eval ac_val
=$
`echo $ac_var`
1171 echo "$ac_var='"'"'$ac_val'"'"'"
1175 if test -n "$ac_subst_files"; then
1182 for ac_var
in $ac_subst_files
1184 eval ac_val
=$
`echo $ac_var`
1185 echo "$ac_var='"'"'$ac_val'"'"'"
1190 if test -s confdefs.h
; then
1197 sed "/^$/d" confdefs.h |
sort
1200 test "$ac_signal" != 0 &&
1201 echo "$as_me: caught signal $ac_signal"
1202 echo "$as_me: exit $exit_status"
1204 rm -f core
*.core
&&
1205 rm -rf conftest
* confdefs
* conf$$
* $ac_clean_files &&
1208 for ac_signal in 1 2 13 15; do
1209 trap 'ac_signal
='$ac_signal'; { (exit 1); exit 1; }' $ac_signal
1213 # confdefs.h avoids OS command line length limits that DEFS can exceed.
1214 rm -rf conftest* confdefs.h
1215 # AIX cpp loses on an empty file, so make sure it contains at least a newline.
1218 # Predefined preprocessor variables.
1220 cat >>confdefs.h <<_ACEOF
1221 #define PACKAGE_NAME "$PACKAGE_NAME"
1225 cat >>confdefs.h <<_ACEOF
1226 #define PACKAGE_TARNAME "$PACKAGE_TARNAME"
1230 cat >>confdefs.h <<_ACEOF
1231 #define PACKAGE_VERSION "$PACKAGE_VERSION"
1235 cat >>confdefs.h <<_ACEOF
1236 #define PACKAGE_STRING "$PACKAGE_STRING"
1240 cat >>confdefs.h <<_ACEOF
1241 #define PACKAGE_BUGREPORT "$PACKAGE_BUGREPORT"
1245 # Let the site file select an alternate cache file if it wants to.
1246 # Prefer explicitly selected file to automatically selected ones.
1247 if test -z "$CONFIG_SITE"; then
1248 if test "x$prefix" != xNONE; then
1249 CONFIG_SITE="$prefix/share/config.site $prefix/etc/config.site"
1251 CONFIG_SITE="$ac_default_prefix/share/config.site $ac_default_prefix/etc/config.site"
1254 for ac_site_file in $CONFIG_SITE; do
1255 if test -r "$ac_site_file"; then
1256 { echo "$as_me:$LINENO: loading site script $ac_site_file" >&5
1257 echo "$as_me: loading site script $ac_site_file" >&6;}
1258 sed 's
/^
/|
/' "$ac_site_file" >&5
1263 if test -r "$cache_file"; then
1264 # Some versions of bash will fail to source /dev/null (special
1265 # files actually), so we avoid doing that.
1266 if test -f "$cache_file"; then
1267 { echo "$as_me:$LINENO: loading cache $cache_file" >&5
1268 echo "$as_me: loading cache $cache_file" >&6;}
1270 [\\/]* | ?:[\\/]* ) . $cache_file;;
1271 *) . ./$cache_file;;
1275 { echo "$as_me:$LINENO: creating cache $cache_file" >&5
1276 echo "$as_me: creating cache $cache_file" >&6;}
1280 # Check that the precious variables saved in the cache have kept the same
1282 ac_cache_corrupted=false
1283 for ac_var in `(set) 2>&1 |
1284 sed -n 's
/^ac_env_\
([a-zA-Z_0-9
]*\
)_set
=.
*/\
1/p
'`; do
1285 eval ac_old_set=\$ac_cv_env_${ac_var}_set
1286 eval ac_new_set=\$ac_env_${ac_var}_set
1287 eval ac_old_val="\$ac_cv_env_${ac_var}_value"
1288 eval ac_new_val="\$ac_env_${ac_var}_value"
1289 case $ac_old_set,$ac_new_set in
1291 { echo "$as_me:$LINENO: error: \`$ac_var' was
set to \
`$ac_old_val' in the previous run" >&5
1292 echo "$as_me: error: \`$ac_var' was set to \`$ac_old_val' in the previous run
" >&2;}
1293 ac_cache_corrupted=: ;;
1295 { echo "$as_me:$LINENO: error
: \
`$ac_var' was not set in the previous run" >&5
1296 echo "$as_me: error: \`$ac_var' was not set in the previous run" >&2;}
1297 ac_cache_corrupted=: ;;
1300 if test "x$ac_old_val" != "x$ac_new_val"; then
1301 # differences in whitespace do not lead to failure.
1302 ac_old_val_w=`echo x $ac_old_val`
1303 ac_new_val_w=`echo x $ac_new_val`
1304 if test "$ac_old_val_w" != "$ac_new_val_w"; then
1305 { echo "$as_me:$LINENO: error: \`$ac_var' has changed since the previous run
:" >&5
1306 echo "$as_me: error
: \
`$ac_var' has changed since the previous run:" >&2;}
1307 ac_cache_corrupted=:
1309 { echo "$as_me:$LINENO: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&5
1310 echo "$as_me: warning: ignoring whitespace changes in \`$ac_var' since the previous run
:" >&2;}
1311 eval $ac_var=\$ac_old_val
1313 { echo "$as_me:$LINENO: former value
: \
`$ac_old_val'" >&5
1314 echo "$as_me: former value: \`$ac_old_val'" >&2;}
1315 { echo "$as_me:$LINENO: current value: \`$ac_new_val'" >&5
1316 echo "$as_me: current value
: \
`$ac_new_val'" >&2;}
1319 # Pass precious variables to config.status.
1320 if test "$ac_new_set" = set; then
1322 *" "*|*" "*|*[\[\]\~\#\$\^\&\*\(\)\{\}\\\|\;\<\>\?\"\']*)
1323 ac_arg=$ac_var=`echo "$ac_new_val" |
sed "s/'/'\\\\\\\\''/g"` ;;
1324 *) ac_arg=$ac_var=$ac_new_val ;;
1326 case " $ac_configure_args " in
1327 *" '$ac_arg' "*) ;; # Avoid dups. Use of quotes ensures accuracy.
1328 *) ac_configure_args="$ac_configure_args '$ac_arg'" ;;
1332 if $ac_cache_corrupted; then
1333 { echo "$as_me:$LINENO: error: in \`$ac_pwd':" >&5
1334 echo "$as_me: error: in \`$ac_pwd':" >&2;}
1335 { echo "$as_me:$LINENO: error
: changes
in the environment can compromise the build
" >&5
1336 echo "$as_me: error
: changes
in the environment can compromise the build
" >&2;}
1337 { { echo "$as_me:$LINENO: error
: run \
`make distclean' and/or \`rm $cache_file' and start over" >&5
1338 echo "$as_me: error: run \`make distclean' and
/or \
`rm $cache_file' and start over" >&2;}
1339 { (exit 1); exit 1; }; }
1343 ac_cpp='$CPP $CPPFLAGS'
1344 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
1345 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
1346 ac_compiler_gnu=$ac_cv_c_compiler_gnu
1349 gl_header_list="$gl_header_list stdint.h"
1350 gl_header_list="$gl_header_list wchar.h"
1351 gl_header_list="$gl_header_list string.h"
1372 ac_config_headers="$ac_config_headers config.h:config.in"
1374 echo "$as_me:$LINENO: checking whether to enable maintainer-specific portions of Makefiles" >&5
1375 echo $ECHO_N "checking whether to enable maintainer-specific portions of Makefiles... $ECHO_C" >&6
1376 # Check whether --enable-maintainer-mode or --disable-maintainer-mode was given.
1377 if test "${enable_maintainer_mode+set}" = set; then
1378 enableval="$enable_maintainer_mode"
1379 USE_MAINTAINER_MODE=$enableval
1381 USE_MAINTAINER_MODE=no
1383 echo "$as_me:$LINENO: result: $USE_MAINTAINER_MODE" >&5
1384 echo "${ECHO_T}$USE_MAINTAINER_MODE" >&6
1387 if test $USE_MAINTAINER_MODE = yes; then
1388 MAINTAINER_MODE_TRUE=
1389 MAINTAINER_MODE_FALSE='#'
1391 MAINTAINER_MODE_TRUE='#'
1392 MAINTAINER_MODE_FALSE=
1395 MAINT=$MAINTAINER_MODE_TRUE
1400 ac_cpp='$CPP $CPPFLAGS'
1401 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
1402 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
1403 ac_compiler_gnu=$ac_cv_c_compiler_gnu
1404 if test -n "$ac_tool_prefix"; then
1405 # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args.
1406 set dummy ${ac_tool_prefix}gcc; ac_word=$2
1407 echo "$as_me:$LINENO: checking for $ac_word" >&5
1408 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1409 if test "${ac_cv_prog_CC+set}" = set; then
1410 echo $ECHO_N "(cached) $ECHO_C" >&6
1412 if test -n "$CC"; then
1413 ac_cv_prog_CC="$CC" # Let the user override the test.
1415 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1419 test -z "$as_dir" && as_dir=.
1420 for ac_exec_ext in '' $ac_executable_extensions; do
1421 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1422 ac_cv_prog_CC="${ac_tool_prefix}gcc"
1423 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
1432 if test -n "$CC"; then
1433 echo "$as_me:$LINENO: result: $CC" >&5
1434 echo "${ECHO_T}$CC" >&6
1436 echo "$as_me:$LINENO: result: no" >&5
1437 echo "${ECHO_T}no" >&6
1441 if test -z "$ac_cv_prog_CC"; then
1443 # Extract the first word of "gcc", so it can be a program name with args.
1444 set dummy gcc; ac_word=$2
1445 echo "$as_me:$LINENO: checking for $ac_word" >&5
1446 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1447 if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
1448 echo $ECHO_N "(cached) $ECHO_C" >&6
1450 if test -n "$ac_ct_CC"; then
1451 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
1453 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1457 test -z "$as_dir" && as_dir=.
1458 for ac_exec_ext in '' $ac_executable_extensions; do
1459 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1460 ac_cv_prog_ac_ct_CC="gcc"
1461 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
1469 ac_ct_CC=$ac_cv_prog_ac_ct_CC
1470 if test -n "$ac_ct_CC"; then
1471 echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
1472 echo "${ECHO_T}$ac_ct_CC" >&6
1474 echo "$as_me:$LINENO: result: no" >&5
1475 echo "${ECHO_T}no" >&6
1483 if test -z "$CC"; then
1484 if test -n "$ac_tool_prefix"; then
1485 # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args.
1486 set dummy ${ac_tool_prefix}cc; ac_word=$2
1487 echo "$as_me:$LINENO: checking for $ac_word" >&5
1488 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1489 if test "${ac_cv_prog_CC+set}" = set; then
1490 echo $ECHO_N "(cached) $ECHO_C" >&6
1492 if test -n "$CC"; then
1493 ac_cv_prog_CC="$CC" # Let the user override the test.
1495 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1499 test -z "$as_dir" && as_dir=.
1500 for ac_exec_ext in '' $ac_executable_extensions; do
1501 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1502 ac_cv_prog_CC="${ac_tool_prefix}cc"
1503 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
1512 if test -n "$CC"; then
1513 echo "$as_me:$LINENO: result: $CC" >&5
1514 echo "${ECHO_T}$CC" >&6
1516 echo "$as_me:$LINENO: result: no" >&5
1517 echo "${ECHO_T}no" >&6
1521 if test -z "$ac_cv_prog_CC"; then
1523 # Extract the first word of "cc", so it can be a program name with args.
1524 set dummy cc; ac_word=$2
1525 echo "$as_me:$LINENO: checking for $ac_word" >&5
1526 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1527 if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
1528 echo $ECHO_N "(cached) $ECHO_C" >&6
1530 if test -n "$ac_ct_CC"; then
1531 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
1533 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1537 test -z "$as_dir" && as_dir=.
1538 for ac_exec_ext in '' $ac_executable_extensions; do
1539 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1540 ac_cv_prog_ac_ct_CC="cc"
1541 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
1549 ac_ct_CC=$ac_cv_prog_ac_ct_CC
1550 if test -n "$ac_ct_CC"; then
1551 echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
1552 echo "${ECHO_T}$ac_ct_CC" >&6
1554 echo "$as_me:$LINENO: result: no" >&5
1555 echo "${ECHO_T}no" >&6
1564 if test -z "$CC"; then
1565 # Extract the first word of "cc", so it can be a program name with args.
1566 set dummy cc; ac_word=$2
1567 echo "$as_me:$LINENO: checking for $ac_word" >&5
1568 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1569 if test "${ac_cv_prog_CC+set}" = set; then
1570 echo $ECHO_N "(cached) $ECHO_C" >&6
1572 if test -n "$CC"; then
1573 ac_cv_prog_CC="$CC" # Let the user override the test.
1576 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1580 test -z "$as_dir" && as_dir=.
1581 for ac_exec_ext in '' $ac_executable_extensions; do
1582 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1583 if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then
1584 ac_prog_rejected=yes
1588 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
1594 if test $ac_prog_rejected = yes; then
1595 # We found a bogon in the path, so make sure we never use it.
1596 set dummy $ac_cv_prog_CC
1598 if test $# != 0; then
1599 # We chose a different compiler from the bogus one.
1600 # However, it has the same basename, so the bogon will be chosen
1601 # first if we set CC to just the basename; use the full file name.
1603 ac_cv_prog_CC="$as_dir/$ac_word${1+' '}$@"
1609 if test -n "$CC"; then
1610 echo "$as_me:$LINENO: result: $CC" >&5
1611 echo "${ECHO_T}$CC" >&6
1613 echo "$as_me:$LINENO: result: no" >&5
1614 echo "${ECHO_T}no" >&6
1618 if test -z "$CC"; then
1619 if test -n "$ac_tool_prefix"; then
1622 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
1623 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
1624 echo "$as_me:$LINENO: checking for $ac_word" >&5
1625 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1626 if test "${ac_cv_prog_CC+set}" = set; then
1627 echo $ECHO_N "(cached) $ECHO_C" >&6
1629 if test -n "$CC"; then
1630 ac_cv_prog_CC="$CC" # Let the user override the test.
1632 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1636 test -z "$as_dir" && as_dir=.
1637 for ac_exec_ext in '' $ac_executable_extensions; do
1638 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1639 ac_cv_prog_CC="$ac_tool_prefix$ac_prog"
1640 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
1649 if test -n "$CC"; then
1650 echo "$as_me:$LINENO: result: $CC" >&5
1651 echo "${ECHO_T}$CC" >&6
1653 echo "$as_me:$LINENO: result: no" >&5
1654 echo "${ECHO_T}no" >&6
1657 test -n "$CC" && break
1660 if test -z "$CC"; then
1664 # Extract the first word of "$ac_prog", so it can be a program name with args.
1665 set dummy $ac_prog; ac_word=$2
1666 echo "$as_me:$LINENO: checking for $ac_word" >&5
1667 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1668 if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
1669 echo $ECHO_N "(cached) $ECHO_C" >&6
1671 if test -n "$ac_ct_CC"; then
1672 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
1674 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1678 test -z "$as_dir" && as_dir=.
1679 for ac_exec_ext in '' $ac_executable_extensions; do
1680 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1681 ac_cv_prog_ac_ct_CC="$ac_prog"
1682 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
1690 ac_ct_CC=$ac_cv_prog_ac_ct_CC
1691 if test -n "$ac_ct_CC"; then
1692 echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
1693 echo "${ECHO_T}$ac_ct_CC" >&6
1695 echo "$as_me:$LINENO: result: no" >&5
1696 echo "${ECHO_T}no" >&6
1699 test -n "$ac_ct_CC" && break
1708 test -z "$CC" && { { echo "$as_me:$LINENO: error: in \`$ac_pwd':" >&5
1709 echo "$as_me: error: in \`$ac_pwd':" >&2;}
1710 { { echo "$as_me:$LINENO: error
: no acceptable C compiler found
in \
$PATH
1711 See \
`config.log' for more details." >&5
1712 echo "$as_me: error: no acceptable C compiler found in \$PATH
1713 See \`config.log
' for more details." >&2;}
1714 { (exit 1); exit 1; }; }; }
1716 # Provide some information about the compiler.
1717 echo "$as_me:$LINENO:" \
1718 "checking for C compiler version" >&5
1719 ac_compiler=`set X $ac_compile; echo $2`
1720 { (eval echo "$as_me:$LINENO: \"$ac_compiler --version </dev/null >&5\"") >&5
1721 (eval $ac_compiler --version </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); }
1730 { (eval echo "$as_me:$LINENO: \"$ac_compiler -V </dev/null >&5\"") >&5
1731 (eval $ac_compiler -V </dev/null >&5) 2>&5
1733 echo "$as_me:$LINENO: \$? = $ac_status" >&5
1734 (exit $ac_status); }
1736 cat >conftest.$ac_ext <<_ACEOF
1739 cat confdefs.h >>conftest.$ac_ext
1740 cat >>conftest.$ac_ext <<_ACEOF
1741 /* end confdefs.h. */
1751 ac_clean_files_save=$ac_clean_files
1752 ac_clean_files="$ac_clean_files a.out a.exe b.out"
1753 # Try to create an executable without -o first, disregard a.out.
1754 # It will help us diagnose broken compilers, and finding out an intuition
1756 echo "$as_me:$LINENO: checking for C compiler default output file name" >&5
1757 echo $ECHO_N "checking for C compiler default output file name... $ECHO_C" >&6
1758 ac_link_default=`echo "$ac_link" | sed 's
/ -o *conftest
[^
]*//'`
1759 if { (eval echo "$as_me:$LINENO: \"$ac_link_default\"") >&5
1760 (eval $ac_link_default) 2>&5
1762 echo "$as_me:$LINENO: \$? = $ac_status" >&5
1763 (exit $ac_status); }; then
1764 # Find the output, starting from the most likely. This scheme is
1765 # not robust to junk in `.', hence go to wildcards
(a.
*) only as a last
1768 # Be careful to initialize this variable, since it used to be cached.
1769 # Otherwise an old cache value of `no' led to `EXEEXT = no' in a Makefile.
1771 # b.out is created by i960 compilers.
1772 for ac_file
in a_out.exe a.exe conftest.exe a.out conftest a.
* conftest.
* b.out
1774 test -f "$ac_file" ||
continue
1776 *.
$ac_ext |
*.xcoff |
*.tds |
*.d |
*.pdb |
*.xSYM |
*.bb |
*.bbg |
*.o |
*.obj
)
1779 # This is the source file.
1782 # We found the default executable, but exeext='' is most
1786 ac_cv_exeext
=`expr "$ac_file" : '[^.]*\(\..*\)'`
1787 # FIXME: I believe we export ac_cv_exeext for Libtool,
1788 # but it would be cool to find out if it's true. Does anybody
1789 # maintain Libtool? --akim.
1797 echo "$as_me: failed program was:" >&5
1798 sed 's/^/| /' conftest.
$ac_ext >&5
1800 { { echo "$as_me:$LINENO: error: in \`$ac_pwd':" >&5
1801 echo "$as_me: error: in \`$ac_pwd':" >&2;}
1802 { { echo "$as_me:$LINENO: error: C compiler cannot create executables
1803 See \`config.log' for more details." >&5
1804 echo "$as_me: error: C compiler cannot create executables
1805 See \`config.log' for more details." >&2;}
1806 { (exit 77); exit 77; }; }; }
1809 ac_exeext
=$ac_cv_exeext
1810 echo "$as_me:$LINENO: result: $ac_file" >&5
1811 echo "${ECHO_T}$ac_file" >&6
1813 # Check the compiler produces executables we can run. If not, either
1814 # the compiler is broken, or we cross compile.
1815 echo "$as_me:$LINENO: checking whether the C compiler works" >&5
1816 echo $ECHO_N "checking whether the C compiler works... $ECHO_C" >&6
1817 # FIXME: These cross compiler hacks should be removed for Autoconf 3.0
1818 # If not cross compiling, check that we can run a simple program.
1819 if test "$cross_compiling" != yes; then
1820 if { ac_try
='./$ac_file'
1821 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
1824 echo "$as_me:$LINENO: \$? = $ac_status" >&5
1825 (exit $ac_status); }; }; then
1828 if test "$cross_compiling" = maybe
; then
1831 { { echo "$as_me:$LINENO: error: in \`$ac_pwd':" >&5
1832 echo "$as_me: error: in \`$ac_pwd':" >&2;}
1833 { { echo "$as_me:$LINENO: error: cannot run C compiled programs.
1834 If you meant to cross compile, use \`--host'.
1835 See \`config.log' for more details." >&5
1836 echo "$as_me: error: cannot run C compiled programs.
1837 If you meant to cross compile, use \`--host'.
1838 See \`config.log' for more details." >&2;}
1839 { (exit 1); exit 1; }; }; }
1843 echo "$as_me:$LINENO: result: yes" >&5
1844 echo "${ECHO_T}yes" >&6
1846 rm -f a.out a.exe conftest
$ac_cv_exeext b.out
1847 ac_clean_files
=$ac_clean_files_save
1848 # Check the compiler produces executables we can run. If not, either
1849 # the compiler is broken, or we cross compile.
1850 echo "$as_me:$LINENO: checking whether we are cross compiling" >&5
1851 echo $ECHO_N "checking whether we are cross compiling... $ECHO_C" >&6
1852 echo "$as_me:$LINENO: result: $cross_compiling" >&5
1853 echo "${ECHO_T}$cross_compiling" >&6
1855 echo "$as_me:$LINENO: checking for suffix of executables" >&5
1856 echo $ECHO_N "checking for suffix of executables... $ECHO_C" >&6
1857 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
1858 (eval $ac_link) 2>&5
1860 echo "$as_me:$LINENO: \$? = $ac_status" >&5
1861 (exit $ac_status); }; then
1862 # If both `conftest.exe' and `conftest' are `present' (well, observable)
1863 # catch `conftest.exe'. For instance with Cygwin, `ls conftest' will
1864 # work properly (i.e., refer to `conftest.exe'), while it won't with
1866 for ac_file
in conftest.exe conftest conftest.
*; do
1867 test -f "$ac_file" ||
continue
1869 *.
$ac_ext |
*.xcoff |
*.tds |
*.d |
*.pdb |
*.xSYM |
*.bb |
*.bbg |
*.o |
*.obj
) ;;
1870 *.
* ) ac_cv_exeext
=`expr "$ac_file" : '[^.]*\(\..*\)'`
1877 { { echo "$as_me:$LINENO: error: in \`$ac_pwd':" >&5
1878 echo "$as_me: error: in \`$ac_pwd':" >&2;}
1879 { { echo "$as_me:$LINENO: error: cannot compute suffix of executables: cannot compile and link
1880 See \`config.log' for more details." >&5
1881 echo "$as_me: error: cannot compute suffix of executables: cannot compile and link
1882 See \`config.log' for more details." >&2;}
1883 { (exit 1); exit 1; }; }; }
1886 rm -f conftest
$ac_cv_exeext
1887 echo "$as_me:$LINENO: result: $ac_cv_exeext" >&5
1888 echo "${ECHO_T}$ac_cv_exeext" >&6
1890 rm -f conftest.
$ac_ext
1891 EXEEXT
=$ac_cv_exeext
1893 echo "$as_me:$LINENO: checking for suffix of object files" >&5
1894 echo $ECHO_N "checking for suffix of object files... $ECHO_C" >&6
1895 if test "${ac_cv_objext+set}" = set; then
1896 echo $ECHO_N "(cached) $ECHO_C" >&6
1898 cat >conftest.
$ac_ext <<_ACEOF
1901 cat confdefs.h
>>conftest.
$ac_ext
1902 cat >>conftest.
$ac_ext <<_ACEOF
1903 /* end confdefs.h. */
1913 rm -f conftest.o conftest.obj
1914 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
1915 (eval $ac_compile) 2>&5
1917 echo "$as_me:$LINENO: \$? = $ac_status" >&5
1918 (exit $ac_status); }; then
1919 for ac_file
in `(ls conftest.o conftest.obj; ls conftest.*) 2>/dev/null`; do
1921 *.
$ac_ext |
*.xcoff |
*.tds |
*.d |
*.pdb |
*.xSYM |
*.bb |
*.bbg
) ;;
1922 *) ac_cv_objext
=`expr "$ac_file" : '.*\.\(.*\)'`
1927 echo "$as_me: failed program was:" >&5
1928 sed 's/^/| /' conftest.
$ac_ext >&5
1930 { { echo "$as_me:$LINENO: error: in \`$ac_pwd':" >&5
1931 echo "$as_me: error: in \`$ac_pwd':" >&2;}
1932 { { echo "$as_me:$LINENO: error: cannot compute suffix of object files: cannot compile
1933 See \`config.log' for more details." >&5
1934 echo "$as_me: error: cannot compute suffix of object files: cannot compile
1935 See \`config.log' for more details." >&2;}
1936 { (exit 1); exit 1; }; }; }
1939 rm -f conftest.
$ac_cv_objext conftest.
$ac_ext
1941 echo "$as_me:$LINENO: result: $ac_cv_objext" >&5
1942 echo "${ECHO_T}$ac_cv_objext" >&6
1943 OBJEXT
=$ac_cv_objext
1945 echo "$as_me:$LINENO: checking whether we are using the GNU C compiler" >&5
1946 echo $ECHO_N "checking whether we are using the GNU C compiler... $ECHO_C" >&6
1947 if test "${ac_cv_c_compiler_gnu+set}" = set; then
1948 echo $ECHO_N "(cached) $ECHO_C" >&6
1950 cat >conftest.
$ac_ext <<_ACEOF
1953 cat confdefs.h
>>conftest.
$ac_ext
1954 cat >>conftest.
$ac_ext <<_ACEOF
1955 /* end confdefs.h. */
1968 rm -f conftest.
$ac_objext
1969 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
1970 (eval $ac_compile) 2>conftest.er1
1972 grep -v '^ *+' conftest.er1
>conftest.err
1974 cat conftest.err
>&5
1975 echo "$as_me:$LINENO: \$? = $ac_status" >&5
1976 (exit $ac_status); } &&
1977 { ac_try
='test -z "$ac_c_werror_flag"
1978 || test ! -s conftest.err'
1979 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
1982 echo "$as_me:$LINENO: \$? = $ac_status" >&5
1983 (exit $ac_status); }; } &&
1984 { ac_try
='test -s conftest.$ac_objext'
1985 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
1988 echo "$as_me:$LINENO: \$? = $ac_status" >&5
1989 (exit $ac_status); }; }; then
1992 echo "$as_me: failed program was:" >&5
1993 sed 's/^/| /' conftest.
$ac_ext >&5
1997 rm -f conftest.err conftest.
$ac_objext conftest.
$ac_ext
1998 ac_cv_c_compiler_gnu
=$ac_compiler_gnu
2001 echo "$as_me:$LINENO: result: $ac_cv_c_compiler_gnu" >&5
2002 echo "${ECHO_T}$ac_cv_c_compiler_gnu" >&6
2003 GCC
=`test $ac_compiler_gnu = yes && echo yes`
2004 ac_test_CFLAGS
=${CFLAGS+set}
2005 ac_save_CFLAGS
=$CFLAGS
2007 echo "$as_me:$LINENO: checking whether $CC accepts -g" >&5
2008 echo $ECHO_N "checking whether $CC accepts -g... $ECHO_C" >&6
2009 if test "${ac_cv_prog_cc_g+set}" = set; then
2010 echo $ECHO_N "(cached) $ECHO_C" >&6
2012 cat >conftest.
$ac_ext <<_ACEOF
2015 cat confdefs.h
>>conftest.
$ac_ext
2016 cat >>conftest.
$ac_ext <<_ACEOF
2017 /* end confdefs.h. */
2027 rm -f conftest.
$ac_objext
2028 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2029 (eval $ac_compile) 2>conftest.er1
2031 grep -v '^ *+' conftest.er1
>conftest.err
2033 cat conftest.err
>&5
2034 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2035 (exit $ac_status); } &&
2036 { ac_try
='test -z "$ac_c_werror_flag"
2037 || test ! -s conftest.err'
2038 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2041 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2042 (exit $ac_status); }; } &&
2043 { ac_try
='test -s conftest.$ac_objext'
2044 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2047 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2048 (exit $ac_status); }; }; then
2051 echo "$as_me: failed program was:" >&5
2052 sed 's/^/| /' conftest.
$ac_ext >&5
2056 rm -f conftest.err conftest.
$ac_objext conftest.
$ac_ext
2058 echo "$as_me:$LINENO: result: $ac_cv_prog_cc_g" >&5
2059 echo "${ECHO_T}$ac_cv_prog_cc_g" >&6
2060 if test "$ac_test_CFLAGS" = set; then
2061 CFLAGS
=$ac_save_CFLAGS
2062 elif test $ac_cv_prog_cc_g = yes; then
2063 if test "$GCC" = yes; then
2069 if test "$GCC" = yes; then
2075 echo "$as_me:$LINENO: checking for $CC option to accept ANSI C" >&5
2076 echo $ECHO_N "checking for $CC option to accept ANSI C... $ECHO_C" >&6
2077 if test "${ac_cv_prog_cc_stdc+set}" = set; then
2078 echo $ECHO_N "(cached) $ECHO_C" >&6
2080 ac_cv_prog_cc_stdc
=no
2082 cat >conftest.
$ac_ext <<_ACEOF
2085 cat confdefs.h
>>conftest.
$ac_ext
2086 cat >>conftest.
$ac_ext <<_ACEOF
2087 /* end confdefs.h. */
2090 #include <sys/types.h>
2091 #include <sys/stat.h>
2092 /* Most of the following tests are stolen from RCS 5.7's src/conf.sh. */
2093 struct buf { int x; };
2094 FILE * (*rcsopen) (struct buf *, struct stat *, int);
2095 static char *e (p, i)
2101 static char *f (char * (*g) (char **, int), char **p, ...)
2106 s = g (p, va_arg (v,int));
2111 /* OSF 4.0 Compaq cc is some sort of almost-ANSI by default. It has
2112 function prototypes and stuff, but not '\xHH' hex character constants.
2113 These don't provoke an error unfortunately, instead are silently treated
2114 as 'x'. The following induces an error, until -std1 is added to get
2115 proper ANSI mode. Curiously '\x00'!='x' always comes out true, for an
2116 array size at least. It's necessary to write '\x00'==0 to get something
2117 that's true only with -std1. */
2118 int osf4_cc_array ['\x00' == 0 ? 1 : -1];
2120 int test (int i, double x);
2121 struct s1 {int (*f) (int a);};
2122 struct s2 {int (*f) (double a);};
2123 int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
2129 return f (e, argv, 0) != argv[0] || f (e, argv, 1) != argv[1];
2134 # Don't try gcc -ansi; that turns off useful extensions and
2135 # breaks some systems' header files.
2136 # AIX -qlanglvl=ansi
2137 # Ultrix and OSF/1 -std1
2138 # HP-UX 10.20 and later -Ae
2139 # HP-UX older versions -Aa -D_HPUX_SOURCE
2140 # SVR4 -Xc -D__EXTENSIONS__
2141 for ac_arg
in "" -qlanglvl=ansi
-std1 -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
2143 CC
="$ac_save_CC $ac_arg"
2144 rm -f conftest.
$ac_objext
2145 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2146 (eval $ac_compile) 2>conftest.er1
2148 grep -v '^ *+' conftest.er1
>conftest.err
2150 cat conftest.err
>&5
2151 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2152 (exit $ac_status); } &&
2153 { ac_try
='test -z "$ac_c_werror_flag"
2154 || test ! -s conftest.err'
2155 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2158 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2159 (exit $ac_status); }; } &&
2160 { ac_try
='test -s conftest.$ac_objext'
2161 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2164 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2165 (exit $ac_status); }; }; then
2166 ac_cv_prog_cc_stdc
=$ac_arg
2169 echo "$as_me: failed program was:" >&5
2170 sed 's/^/| /' conftest.
$ac_ext >&5
2173 rm -f conftest.err conftest.
$ac_objext
2175 rm -f conftest.
$ac_ext conftest.
$ac_objext
2180 case "x$ac_cv_prog_cc_stdc" in
2182 echo "$as_me:$LINENO: result: none needed" >&5
2183 echo "${ECHO_T}none needed" >&6 ;;
2185 echo "$as_me:$LINENO: result: $ac_cv_prog_cc_stdc" >&5
2186 echo "${ECHO_T}$ac_cv_prog_cc_stdc" >&6
2187 CC
="$CC $ac_cv_prog_cc_stdc" ;;
2190 # Some people use a C++ compiler to compile C. Since we use `exit',
2191 # in C++ we need to declare it. In case someone uses the same compiler
2192 # for both compiling C and C++ we need to have the C++ compiler decide
2193 # the declaration of exit, since it's the most demanding environment.
2194 cat >conftest.
$ac_ext <<_ACEOF
2199 rm -f conftest.
$ac_objext
2200 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2201 (eval $ac_compile) 2>conftest.er1
2203 grep -v '^ *+' conftest.er1
>conftest.err
2205 cat conftest.err
>&5
2206 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2207 (exit $ac_status); } &&
2208 { ac_try
='test -z "$ac_c_werror_flag"
2209 || test ! -s conftest.err'
2210 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2213 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2214 (exit $ac_status); }; } &&
2215 { ac_try
='test -s conftest.$ac_objext'
2216 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2219 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2220 (exit $ac_status); }; }; then
2221 for ac_declaration
in \
2223 'extern "C" void std::exit (int) throw (); using std::exit;' \
2224 'extern "C" void std::exit (int); using std::exit;' \
2225 'extern "C" void exit (int) throw ();' \
2226 'extern "C" void exit (int);' \
2229 cat >conftest.
$ac_ext <<_ACEOF
2232 cat confdefs.h
>>conftest.
$ac_ext
2233 cat >>conftest.
$ac_ext <<_ACEOF
2234 /* end confdefs.h. */
2245 rm -f conftest.
$ac_objext
2246 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2247 (eval $ac_compile) 2>conftest.er1
2249 grep -v '^ *+' conftest.er1
>conftest.err
2251 cat conftest.err
>&5
2252 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2253 (exit $ac_status); } &&
2254 { ac_try
='test -z "$ac_c_werror_flag"
2255 || test ! -s conftest.err'
2256 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2259 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2260 (exit $ac_status); }; } &&
2261 { ac_try
='test -s conftest.$ac_objext'
2262 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2265 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2266 (exit $ac_status); }; }; then
2269 echo "$as_me: failed program was:" >&5
2270 sed 's/^/| /' conftest.
$ac_ext >&5
2274 rm -f conftest.err conftest.
$ac_objext conftest.
$ac_ext
2275 cat >conftest.
$ac_ext <<_ACEOF
2278 cat confdefs.h
>>conftest.
$ac_ext
2279 cat >>conftest.
$ac_ext <<_ACEOF
2280 /* end confdefs.h. */
2290 rm -f conftest.
$ac_objext
2291 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2292 (eval $ac_compile) 2>conftest.er1
2294 grep -v '^ *+' conftest.er1
>conftest.err
2296 cat conftest.err
>&5
2297 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2298 (exit $ac_status); } &&
2299 { ac_try
='test -z "$ac_c_werror_flag"
2300 || test ! -s conftest.err'
2301 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2304 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2305 (exit $ac_status); }; } &&
2306 { ac_try
='test -s conftest.$ac_objext'
2307 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2310 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2311 (exit $ac_status); }; }; then
2314 echo "$as_me: failed program was:" >&5
2315 sed 's/^/| /' conftest.
$ac_ext >&5
2318 rm -f conftest.err conftest.
$ac_objext conftest.
$ac_ext
2321 if test -n "$ac_declaration"; then
2322 echo '#ifdef __cplusplus' >>confdefs.h
2323 echo $ac_declaration >>confdefs.h
2324 echo '#endif' >>confdefs.h
2328 echo "$as_me: failed program was:" >&5
2329 sed 's/^/| /' conftest.
$ac_ext >&5
2332 rm -f conftest.err conftest.
$ac_objext conftest.
$ac_ext
2334 ac_cpp
='$CPP $CPPFLAGS'
2335 ac_compile
='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2336 ac_link
='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2337 ac_compiler_gnu
=$ac_cv_c_compiler_gnu
2340 cat >>confdefs.h
<<\_ACEOF
2341 #define _GNU_SOURCE 1
2347 ac_cpp
='$CPP $CPPFLAGS'
2348 ac_compile
='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2349 ac_link
='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2350 ac_compiler_gnu
=$ac_cv_c_compiler_gnu
2351 echo "$as_me:$LINENO: checking how to run the C preprocessor" >&5
2352 echo $ECHO_N "checking how to run the C preprocessor... $ECHO_C" >&6
2353 # On Suns, sometimes $CPP names a directory.
2354 if test -n "$CPP" && test -d "$CPP"; then
2357 if test -z "$CPP"; then
2358 if test "${ac_cv_prog_CPP+set}" = set; then
2359 echo $ECHO_N "(cached) $ECHO_C" >&6
2361 # Double quotes because CPP needs to be expanded
2362 for CPP
in "$CC -E" "$CC -E -traditional-cpp" "/lib/cpp"
2365 for ac_c_preproc_warn_flag
in '' yes
2367 # Use a header file that comes with gcc, so configuring glibc
2368 # with a fresh cross-compiler works.
2369 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
2370 # <limits.h> exists even on freestanding compilers.
2371 # On the NeXT, cc -E runs the code through the compiler's parser,
2372 # not just through cpp. "Syntax error" is here to catch this case.
2373 cat >conftest.
$ac_ext <<_ACEOF
2376 cat confdefs.h
>>conftest.
$ac_ext
2377 cat >>conftest.
$ac_ext <<_ACEOF
2378 /* end confdefs.h. */
2380 # include <limits.h>
2382 # include <assert.h>
2386 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
2387 (eval $ac_cpp conftest.
$ac_ext) 2>conftest.er1
2389 grep -v '^ *+' conftest.er1
>conftest.err
2391 cat conftest.err
>&5
2392 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2393 (exit $ac_status); } >/dev
/null
; then
2394 if test -s conftest.err
; then
2395 ac_cpp_err
=$ac_c_preproc_warn_flag
2396 ac_cpp_err
=$ac_cpp_err$ac_c_werror_flag
2403 if test -z "$ac_cpp_err"; then
2406 echo "$as_me: failed program was:" >&5
2407 sed 's/^/| /' conftest.
$ac_ext >&5
2409 # Broken: fails on valid input.
2412 rm -f conftest.err conftest.
$ac_ext
2414 # OK, works on sane cases. Now check whether non-existent headers
2415 # can be detected and how.
2416 cat >conftest.
$ac_ext <<_ACEOF
2419 cat confdefs.h
>>conftest.
$ac_ext
2420 cat >>conftest.
$ac_ext <<_ACEOF
2421 /* end confdefs.h. */
2422 #include <ac_nonexistent.h>
2424 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
2425 (eval $ac_cpp conftest.
$ac_ext) 2>conftest.er1
2427 grep -v '^ *+' conftest.er1
>conftest.err
2429 cat conftest.err
>&5
2430 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2431 (exit $ac_status); } >/dev
/null
; then
2432 if test -s conftest.err
; then
2433 ac_cpp_err
=$ac_c_preproc_warn_flag
2434 ac_cpp_err
=$ac_cpp_err$ac_c_werror_flag
2441 if test -z "$ac_cpp_err"; then
2442 # Broken: success on invalid input.
2445 echo "$as_me: failed program was:" >&5
2446 sed 's/^/| /' conftest.
$ac_ext >&5
2448 # Passes both tests.
2452 rm -f conftest.err conftest.
$ac_ext
2455 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
2456 rm -f conftest.err conftest.
$ac_ext
2457 if $ac_preproc_ok; then
2469 echo "$as_me:$LINENO: result: $CPP" >&5
2470 echo "${ECHO_T}$CPP" >&6
2472 for ac_c_preproc_warn_flag
in '' yes
2474 # Use a header file that comes with gcc, so configuring glibc
2475 # with a fresh cross-compiler works.
2476 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
2477 # <limits.h> exists even on freestanding compilers.
2478 # On the NeXT, cc -E runs the code through the compiler's parser,
2479 # not just through cpp. "Syntax error" is here to catch this case.
2480 cat >conftest.
$ac_ext <<_ACEOF
2483 cat confdefs.h
>>conftest.
$ac_ext
2484 cat >>conftest.
$ac_ext <<_ACEOF
2485 /* end confdefs.h. */
2487 # include <limits.h>
2489 # include <assert.h>
2493 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
2494 (eval $ac_cpp conftest.
$ac_ext) 2>conftest.er1
2496 grep -v '^ *+' conftest.er1
>conftest.err
2498 cat conftest.err
>&5
2499 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2500 (exit $ac_status); } >/dev
/null
; then
2501 if test -s conftest.err
; then
2502 ac_cpp_err
=$ac_c_preproc_warn_flag
2503 ac_cpp_err
=$ac_cpp_err$ac_c_werror_flag
2510 if test -z "$ac_cpp_err"; then
2513 echo "$as_me: failed program was:" >&5
2514 sed 's/^/| /' conftest.
$ac_ext >&5
2516 # Broken: fails on valid input.
2519 rm -f conftest.err conftest.
$ac_ext
2521 # OK, works on sane cases. Now check whether non-existent headers
2522 # can be detected and how.
2523 cat >conftest.
$ac_ext <<_ACEOF
2526 cat confdefs.h
>>conftest.
$ac_ext
2527 cat >>conftest.
$ac_ext <<_ACEOF
2528 /* end confdefs.h. */
2529 #include <ac_nonexistent.h>
2531 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
2532 (eval $ac_cpp conftest.
$ac_ext) 2>conftest.er1
2534 grep -v '^ *+' conftest.er1
>conftest.err
2536 cat conftest.err
>&5
2537 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2538 (exit $ac_status); } >/dev
/null
; then
2539 if test -s conftest.err
; then
2540 ac_cpp_err
=$ac_c_preproc_warn_flag
2541 ac_cpp_err
=$ac_cpp_err$ac_c_werror_flag
2548 if test -z "$ac_cpp_err"; then
2549 # Broken: success on invalid input.
2552 echo "$as_me: failed program was:" >&5
2553 sed 's/^/| /' conftest.
$ac_ext >&5
2555 # Passes both tests.
2559 rm -f conftest.err conftest.
$ac_ext
2562 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
2563 rm -f conftest.err conftest.
$ac_ext
2564 if $ac_preproc_ok; then
2567 { { echo "$as_me:$LINENO: error: in \`$ac_pwd':" >&5
2568 echo "$as_me: error: in \`$ac_pwd':" >&2;}
2569 { { echo "$as_me:$LINENO: error: C preprocessor \"$CPP\" fails sanity check
2570 See \`config.log' for more details." >&5
2571 echo "$as_me: error: C preprocessor \"$CPP\" fails sanity check
2572 See \`config.log' for more details." >&2;}
2573 { (exit 1); exit 1; }; }; }
2577 ac_cpp
='$CPP $CPPFLAGS'
2578 ac_compile
='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2579 ac_link
='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2580 ac_compiler_gnu
=$ac_cv_c_compiler_gnu
2583 echo "$as_me:$LINENO: checking for egrep" >&5
2584 echo $ECHO_N "checking for egrep... $ECHO_C" >&6
2585 if test "${ac_cv_prog_egrep+set}" = set; then
2586 echo $ECHO_N "(cached) $ECHO_C" >&6
2588 if echo a |
(grep -E '(a|b)') >/dev
/null
2>&1
2589 then ac_cv_prog_egrep
='grep -E'
2590 else ac_cv_prog_egrep
='egrep'
2593 echo "$as_me:$LINENO: result: $ac_cv_prog_egrep" >&5
2594 echo "${ECHO_T}$ac_cv_prog_egrep" >&6
2595 EGREP
=$ac_cv_prog_egrep
2599 echo "$as_me:$LINENO: checking for AIX" >&5
2600 echo $ECHO_N "checking for AIX... $ECHO_C" >&6
2601 cat >conftest.
$ac_ext <<_ACEOF
2604 cat confdefs.h
>>conftest.
$ac_ext
2605 cat >>conftest.
$ac_ext <<_ACEOF
2606 /* end confdefs.h. */
2612 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
2613 $EGREP "yes" >/dev
/null
2>&1; then
2614 echo "$as_me:$LINENO: result: yes" >&5
2615 echo "${ECHO_T}yes" >&6
2616 cat >>confdefs.h
<<\_ACEOF
2617 #define _ALL_SOURCE 1
2621 echo "$as_me:$LINENO: result: no" >&5
2622 echo "${ECHO_T}no" >&6
2627 echo "$as_me:$LINENO: checking for library containing strerror" >&5
2628 echo $ECHO_N "checking for library containing strerror... $ECHO_C" >&6
2629 if test "${ac_cv_search_strerror+set}" = set; then
2630 echo $ECHO_N "(cached) $ECHO_C" >&6
2632 ac_func_search_save_LIBS
=$LIBS
2633 ac_cv_search_strerror
=no
2634 cat >conftest.
$ac_ext <<_ACEOF
2637 cat confdefs.h
>>conftest.
$ac_ext
2638 cat >>conftest.
$ac_ext <<_ACEOF
2639 /* end confdefs.h. */
2641 /* Override any gcc2 internal prototype to avoid an error. */
2645 /* We use char because int might match the return type of a gcc2
2646 builtin and then its argument prototype would still apply. */
2656 rm -f conftest.
$ac_objext conftest
$ac_exeext
2657 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
2658 (eval $ac_link) 2>conftest.er1
2660 grep -v '^ *+' conftest.er1
>conftest.err
2662 cat conftest.err
>&5
2663 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2664 (exit $ac_status); } &&
2665 { ac_try
='test -z "$ac_c_werror_flag"
2666 || test ! -s conftest.err'
2667 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2670 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2671 (exit $ac_status); }; } &&
2672 { ac_try
='test -s conftest$ac_exeext'
2673 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2676 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2677 (exit $ac_status); }; }; then
2678 ac_cv_search_strerror
="none required"
2680 echo "$as_me: failed program was:" >&5
2681 sed 's/^/| /' conftest.
$ac_ext >&5
2684 rm -f conftest.err conftest.
$ac_objext \
2685 conftest
$ac_exeext conftest.
$ac_ext
2686 if test "$ac_cv_search_strerror" = no
; then
2687 for ac_lib
in cposix
; do
2688 LIBS
="-l$ac_lib $ac_func_search_save_LIBS"
2689 cat >conftest.
$ac_ext <<_ACEOF
2692 cat confdefs.h
>>conftest.
$ac_ext
2693 cat >>conftest.
$ac_ext <<_ACEOF
2694 /* end confdefs.h. */
2696 /* Override any gcc2 internal prototype to avoid an error. */
2700 /* We use char because int might match the return type of a gcc2
2701 builtin and then its argument prototype would still apply. */
2711 rm -f conftest.
$ac_objext conftest
$ac_exeext
2712 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
2713 (eval $ac_link) 2>conftest.er1
2715 grep -v '^ *+' conftest.er1
>conftest.err
2717 cat conftest.err
>&5
2718 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2719 (exit $ac_status); } &&
2720 { ac_try
='test -z "$ac_c_werror_flag"
2721 || test ! -s conftest.err'
2722 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2725 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2726 (exit $ac_status); }; } &&
2727 { ac_try
='test -s conftest$ac_exeext'
2728 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2731 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2732 (exit $ac_status); }; }; then
2733 ac_cv_search_strerror
="-l$ac_lib"
2736 echo "$as_me: failed program was:" >&5
2737 sed 's/^/| /' conftest.
$ac_ext >&5
2740 rm -f conftest.err conftest.
$ac_objext \
2741 conftest
$ac_exeext conftest.
$ac_ext
2744 LIBS
=$ac_func_search_save_LIBS
2746 echo "$as_me:$LINENO: result: $ac_cv_search_strerror" >&5
2747 echo "${ECHO_T}$ac_cv_search_strerror" >&6
2748 if test "$ac_cv_search_strerror" != no
; then
2749 test "$ac_cv_search_strerror" = "none required" || LIBS
="$ac_cv_search_strerror $LIBS"
2753 if test -n "$ac_tool_prefix"; then
2754 # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args.
2755 set dummy
${ac_tool_prefix}ranlib
; ac_word
=$2
2756 echo "$as_me:$LINENO: checking for $ac_word" >&5
2757 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
2758 if test "${ac_cv_prog_RANLIB+set}" = set; then
2759 echo $ECHO_N "(cached) $ECHO_C" >&6
2761 if test -n "$RANLIB"; then
2762 ac_cv_prog_RANLIB
="$RANLIB" # Let the user override the test.
2764 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
2768 test -z "$as_dir" && as_dir
=.
2769 for ac_exec_ext
in '' $ac_executable_extensions; do
2770 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2771 ac_cv_prog_RANLIB
="${ac_tool_prefix}ranlib"
2772 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2780 RANLIB
=$ac_cv_prog_RANLIB
2781 if test -n "$RANLIB"; then
2782 echo "$as_me:$LINENO: result: $RANLIB" >&5
2783 echo "${ECHO_T}$RANLIB" >&6
2785 echo "$as_me:$LINENO: result: no" >&5
2786 echo "${ECHO_T}no" >&6
2790 if test -z "$ac_cv_prog_RANLIB"; then
2791 ac_ct_RANLIB
=$RANLIB
2792 # Extract the first word of "ranlib", so it can be a program name with args.
2793 set dummy ranlib
; ac_word
=$2
2794 echo "$as_me:$LINENO: checking for $ac_word" >&5
2795 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
2796 if test "${ac_cv_prog_ac_ct_RANLIB+set}" = set; then
2797 echo $ECHO_N "(cached) $ECHO_C" >&6
2799 if test -n "$ac_ct_RANLIB"; then
2800 ac_cv_prog_ac_ct_RANLIB
="$ac_ct_RANLIB" # Let the user override the test.
2802 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
2806 test -z "$as_dir" && as_dir
=.
2807 for ac_exec_ext
in '' $ac_executable_extensions; do
2808 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2809 ac_cv_prog_ac_ct_RANLIB
="ranlib"
2810 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2816 test -z "$ac_cv_prog_ac_ct_RANLIB" && ac_cv_prog_ac_ct_RANLIB
=":"
2819 ac_ct_RANLIB
=$ac_cv_prog_ac_ct_RANLIB
2820 if test -n "$ac_ct_RANLIB"; then
2821 echo "$as_me:$LINENO: result: $ac_ct_RANLIB" >&5
2822 echo "${ECHO_T}$ac_ct_RANLIB" >&6
2824 echo "$as_me:$LINENO: result: no" >&5
2825 echo "${ECHO_T}no" >&6
2828 RANLIB
=$ac_ct_RANLIB
2830 RANLIB
="$ac_cv_prog_RANLIB"
2833 echo "$as_me:$LINENO: checking for ANSI C header files" >&5
2834 echo $ECHO_N "checking for ANSI C header files... $ECHO_C" >&6
2835 if test "${ac_cv_header_stdc+set}" = set; then
2836 echo $ECHO_N "(cached) $ECHO_C" >&6
2838 cat >conftest.
$ac_ext <<_ACEOF
2841 cat confdefs.h
>>conftest.
$ac_ext
2842 cat >>conftest.
$ac_ext <<_ACEOF
2843 /* end confdefs.h. */
2857 rm -f conftest.
$ac_objext
2858 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2859 (eval $ac_compile) 2>conftest.er1
2861 grep -v '^ *+' conftest.er1
>conftest.err
2863 cat conftest.err
>&5
2864 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2865 (exit $ac_status); } &&
2866 { ac_try
='test -z "$ac_c_werror_flag"
2867 || test ! -s conftest.err'
2868 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2871 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2872 (exit $ac_status); }; } &&
2873 { ac_try
='test -s conftest.$ac_objext'
2874 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2877 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2878 (exit $ac_status); }; }; then
2879 ac_cv_header_stdc
=yes
2881 echo "$as_me: failed program was:" >&5
2882 sed 's/^/| /' conftest.
$ac_ext >&5
2884 ac_cv_header_stdc
=no
2886 rm -f conftest.err conftest.
$ac_objext conftest.
$ac_ext
2888 if test $ac_cv_header_stdc = yes; then
2889 # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
2890 cat >conftest.
$ac_ext <<_ACEOF
2893 cat confdefs.h
>>conftest.
$ac_ext
2894 cat >>conftest.
$ac_ext <<_ACEOF
2895 /* end confdefs.h. */
2899 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
2900 $EGREP "memchr" >/dev
/null
2>&1; then
2903 ac_cv_header_stdc
=no
2909 if test $ac_cv_header_stdc = yes; then
2910 # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
2911 cat >conftest.
$ac_ext <<_ACEOF
2914 cat confdefs.h
>>conftest.
$ac_ext
2915 cat >>conftest.
$ac_ext <<_ACEOF
2916 /* end confdefs.h. */
2920 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
2921 $EGREP "free" >/dev
/null
2>&1; then
2924 ac_cv_header_stdc
=no
2930 if test $ac_cv_header_stdc = yes; then
2931 # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
2932 if test "$cross_compiling" = yes; then
2935 cat >conftest.
$ac_ext <<_ACEOF
2938 cat confdefs.h
>>conftest.
$ac_ext
2939 cat >>conftest.
$ac_ext <<_ACEOF
2940 /* end confdefs.h. */
2942 #if ((' ' & 0x0FF) == 0x020)
2943 # define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
2944 # define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
2946 # define ISLOWER(c) \
2947 (('a' <= (c) && (c) <= 'i') \
2948 || ('j' <= (c) && (c) <= 'r') \
2949 || ('s' <= (c) && (c) <= 'z'))
2950 # define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
2953 #define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
2958 for (i = 0; i < 256; i++)
2959 if (XOR (islower (i), ISLOWER (i))
2960 || toupper (i) != TOUPPER (i))
2965 rm -f conftest
$ac_exeext
2966 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
2967 (eval $ac_link) 2>&5
2969 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2970 (exit $ac_status); } && { ac_try
='./conftest$ac_exeext'
2971 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2974 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2975 (exit $ac_status); }; }; then
2978 echo "$as_me: program exited with status $ac_status" >&5
2979 echo "$as_me: failed program was:" >&5
2980 sed 's/^/| /' conftest.
$ac_ext >&5
2983 ac_cv_header_stdc
=no
2985 rm -f core
*.core gmon.out bb.out conftest
$ac_exeext conftest.
$ac_objext conftest.
$ac_ext
2989 echo "$as_me:$LINENO: result: $ac_cv_header_stdc" >&5
2990 echo "${ECHO_T}$ac_cv_header_stdc" >&6
2991 if test $ac_cv_header_stdc = yes; then
2993 cat >>confdefs.h
<<\_ACEOF
2994 #define STDC_HEADERS 1
2999 # On IRIX 5.3, sys/types and inttypes.h are conflicting.
3009 for ac_header
in sys
/types.h sys
/stat.h stdlib.h string.h memory.h
strings.h \
3010 inttypes.h stdint.h unistd.h
3012 as_ac_Header
=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
3013 echo "$as_me:$LINENO: checking for $ac_header" >&5
3014 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
3015 if eval "test \"\${$as_ac_Header+set}\" = set"; then
3016 echo $ECHO_N "(cached) $ECHO_C" >&6
3018 cat >conftest.
$ac_ext <<_ACEOF
3021 cat confdefs.h
>>conftest.
$ac_ext
3022 cat >>conftest.
$ac_ext <<_ACEOF
3023 /* end confdefs.h. */
3024 $ac_includes_default
3026 #include <$ac_header>
3028 rm -f conftest.
$ac_objext
3029 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
3030 (eval $ac_compile) 2>conftest.er1
3032 grep -v '^ *+' conftest.er1
>conftest.err
3034 cat conftest.err
>&5
3035 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3036 (exit $ac_status); } &&
3037 { ac_try
='test -z "$ac_c_werror_flag"
3038 || test ! -s conftest.err'
3039 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3042 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3043 (exit $ac_status); }; } &&
3044 { ac_try
='test -s conftest.$ac_objext'
3045 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3048 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3049 (exit $ac_status); }; }; then
3050 eval "$as_ac_Header=yes"
3052 echo "$as_me: failed program was:" >&5
3053 sed 's/^/| /' conftest.
$ac_ext >&5
3055 eval "$as_ac_Header=no"
3057 rm -f conftest.err conftest.
$ac_objext conftest.
$ac_ext
3059 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
3060 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
3061 if test `eval echo '${'$as_ac_Header'}'` = yes; then
3062 cat >>confdefs.h
<<_ACEOF
3063 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
3072 if test "${ac_cv_header_minix_config_h+set}" = set; then
3073 echo "$as_me:$LINENO: checking for minix/config.h" >&5
3074 echo $ECHO_N "checking for minix/config.h... $ECHO_C" >&6
3075 if test "${ac_cv_header_minix_config_h+set}" = set; then
3076 echo $ECHO_N "(cached) $ECHO_C" >&6
3078 echo "$as_me:$LINENO: result: $ac_cv_header_minix_config_h" >&5
3079 echo "${ECHO_T}$ac_cv_header_minix_config_h" >&6
3081 # Is the header compilable?
3082 echo "$as_me:$LINENO: checking minix/config.h usability" >&5
3083 echo $ECHO_N "checking minix/config.h usability... $ECHO_C" >&6
3084 cat >conftest.
$ac_ext <<_ACEOF
3087 cat confdefs.h
>>conftest.
$ac_ext
3088 cat >>conftest.
$ac_ext <<_ACEOF
3089 /* end confdefs.h. */
3090 $ac_includes_default
3091 #include <minix/config.h>
3093 rm -f conftest.
$ac_objext
3094 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
3095 (eval $ac_compile) 2>conftest.er1
3097 grep -v '^ *+' conftest.er1
>conftest.err
3099 cat conftest.err
>&5
3100 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3101 (exit $ac_status); } &&
3102 { ac_try
='test -z "$ac_c_werror_flag"
3103 || test ! -s conftest.err'
3104 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3107 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3108 (exit $ac_status); }; } &&
3109 { ac_try
='test -s conftest.$ac_objext'
3110 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3113 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3114 (exit $ac_status); }; }; then
3115 ac_header_compiler
=yes
3117 echo "$as_me: failed program was:" >&5
3118 sed 's/^/| /' conftest.
$ac_ext >&5
3120 ac_header_compiler
=no
3122 rm -f conftest.err conftest.
$ac_objext conftest.
$ac_ext
3123 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
3124 echo "${ECHO_T}$ac_header_compiler" >&6
3126 # Is the header present?
3127 echo "$as_me:$LINENO: checking minix/config.h presence" >&5
3128 echo $ECHO_N "checking minix/config.h presence... $ECHO_C" >&6
3129 cat >conftest.
$ac_ext <<_ACEOF
3132 cat confdefs.h
>>conftest.
$ac_ext
3133 cat >>conftest.
$ac_ext <<_ACEOF
3134 /* end confdefs.h. */
3135 #include <minix/config.h>
3137 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
3138 (eval $ac_cpp conftest.
$ac_ext) 2>conftest.er1
3140 grep -v '^ *+' conftest.er1
>conftest.err
3142 cat conftest.err
>&5
3143 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3144 (exit $ac_status); } >/dev
/null
; then
3145 if test -s conftest.err
; then
3146 ac_cpp_err
=$ac_c_preproc_warn_flag
3147 ac_cpp_err
=$ac_cpp_err$ac_c_werror_flag
3154 if test -z "$ac_cpp_err"; then
3155 ac_header_preproc
=yes
3157 echo "$as_me: failed program was:" >&5
3158 sed 's/^/| /' conftest.
$ac_ext >&5
3160 ac_header_preproc
=no
3162 rm -f conftest.err conftest.
$ac_ext
3163 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
3164 echo "${ECHO_T}$ac_header_preproc" >&6
3166 # So? What about this header?
3167 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
3169 { echo "$as_me:$LINENO: WARNING: minix/config.h: accepted by the compiler, rejected by the preprocessor!" >&5
3170 echo "$as_me: WARNING: minix/config.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
3171 { echo "$as_me:$LINENO: WARNING: minix/config.h: proceeding with the compiler's result" >&5
3172 echo "$as_me: WARNING: minix/config.h: proceeding with the compiler's result" >&2;}
3173 ac_header_preproc
=yes
3176 { echo "$as_me:$LINENO: WARNING: minix/config.h: present but cannot be compiled" >&5
3177 echo "$as_me: WARNING: minix/config.h: present but cannot be compiled" >&2;}
3178 { echo "$as_me:$LINENO: WARNING: minix/config.h: check for missing prerequisite headers?" >&5
3179 echo "$as_me: WARNING: minix/config.h: check for missing prerequisite headers?" >&2;}
3180 { echo "$as_me:$LINENO: WARNING: minix/config.h: see the Autoconf documentation" >&5
3181 echo "$as_me: WARNING: minix/config.h: see the Autoconf documentation" >&2;}
3182 { echo "$as_me:$LINENO: WARNING: minix/config.h: section \"Present But Cannot Be Compiled\"" >&5
3183 echo "$as_me: WARNING: minix/config.h: section \"Present But Cannot Be Compiled\"" >&2;}
3184 { echo "$as_me:$LINENO: WARNING: minix/config.h: proceeding with the preprocessor's result" >&5
3185 echo "$as_me: WARNING: minix/config.h: proceeding with the preprocessor's result" >&2;}
3186 { echo "$as_me:$LINENO: WARNING: minix/config.h: in the future, the compiler will take precedence" >&5
3187 echo "$as_me: WARNING: minix/config.h: in the future, the compiler will take precedence" >&2;}
3190 ## ------------------------------------------ ##
3191 ## Report this to the AC_PACKAGE_NAME lists. ##
3192 ## ------------------------------------------ ##
3195 sed "s/^/$as_me: WARNING: /" >&2
3198 echo "$as_me:$LINENO: checking for minix/config.h" >&5
3199 echo $ECHO_N "checking for minix/config.h... $ECHO_C" >&6
3200 if test "${ac_cv_header_minix_config_h+set}" = set; then
3201 echo $ECHO_N "(cached) $ECHO_C" >&6
3203 ac_cv_header_minix_config_h
=$ac_header_preproc
3205 echo "$as_me:$LINENO: result: $ac_cv_header_minix_config_h" >&5
3206 echo "${ECHO_T}$ac_cv_header_minix_config_h" >&6
3209 if test $ac_cv_header_minix_config_h = yes; then
3216 if test "$MINIX" = yes; then
3218 cat >>confdefs.h
<<\_ACEOF
3219 #define _POSIX_SOURCE 1
3223 cat >>confdefs.h
<<\_ACEOF
3224 #define _POSIX_1_SOURCE 2
3228 cat >>confdefs.h
<<\_ACEOF
3236 echo "$as_me:$LINENO: checking whether it is safe to define __EXTENSIONS__" >&5
3237 echo $ECHO_N "checking whether it is safe to define __EXTENSIONS__... $ECHO_C" >&6
3238 if test "${ac_cv_safe_to_define___extensions__+set}" = set; then
3239 echo $ECHO_N "(cached) $ECHO_C" >&6
3241 cat >conftest.
$ac_ext <<_ACEOF
3244 cat confdefs.h
>>conftest.
$ac_ext
3245 cat >>conftest.
$ac_ext <<_ACEOF
3246 /* end confdefs.h. */
3248 # define __EXTENSIONS__ 1
3249 $ac_includes_default
3258 rm -f conftest.
$ac_objext
3259 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
3260 (eval $ac_compile) 2>conftest.er1
3262 grep -v '^ *+' conftest.er1
>conftest.err
3264 cat conftest.err
>&5
3265 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3266 (exit $ac_status); } &&
3267 { ac_try
='test -z "$ac_c_werror_flag"
3268 || test ! -s conftest.err'
3269 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3272 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3273 (exit $ac_status); }; } &&
3274 { ac_try
='test -s conftest.$ac_objext'
3275 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3278 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3279 (exit $ac_status); }; }; then
3280 ac_cv_safe_to_define___extensions__
=yes
3282 echo "$as_me: failed program was:" >&5
3283 sed 's/^/| /' conftest.
$ac_ext >&5
3285 ac_cv_safe_to_define___extensions__
=no
3287 rm -f conftest.err conftest.
$ac_objext conftest.
$ac_ext
3289 echo "$as_me:$LINENO: result: $ac_cv_safe_to_define___extensions__" >&5
3290 echo "${ECHO_T}$ac_cv_safe_to_define___extensions__" >&6
3291 test $ac_cv_safe_to_define___extensions__ = yes &&
3292 cat >>confdefs.h
<<\_ACEOF
3293 #define __EXTENSIONS__ 1
3296 cat >>confdefs.h
<<\_ACEOF
3297 #define _ALL_SOURCE 1
3300 cat >>confdefs.h
<<\_ACEOF
3301 #define _GNU_SOURCE 1
3304 cat >>confdefs.h
<<\_ACEOF
3305 #define _POSIX_PTHREAD_SEMANTICS 1
3308 cat >>confdefs.h
<<\_ACEOF
3309 #define _TANDEM_SOURCE 1
3321 echo "$as_me:$LINENO: checking for ${CC-cc} option to accept ANSI C" >&5
3322 echo $ECHO_N "checking for ${CC-cc} option to accept ANSI C... $ECHO_C" >&6
3323 if test "${am_cv_prog_cc_stdc+set}" = set; then
3324 echo $ECHO_N "(cached) $ECHO_C" >&6
3326 am_cv_prog_cc_stdc
=no
3328 # Don't try gcc -ansi; that turns off useful extensions and
3329 # breaks some systems' header files.
3330 # AIX -qlanglvl=ansi
3331 # Ultrix and OSF/1 -std1
3332 # HP-UX 10.20 and later -Ae
3333 # HP-UX older versions -Aa -D_HPUX_SOURCE
3334 # SVR4 -Xc -D__EXTENSIONS__
3335 for ac_arg
in "" -qlanglvl=ansi
-std1 -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
3337 CC
="$ac_save_CC $ac_arg"
3338 cat >conftest.
$ac_ext <<_ACEOF
3341 cat confdefs.h
>>conftest.
$ac_ext
3342 cat >>conftest.
$ac_ext <<_ACEOF
3343 /* end confdefs.h. */
3346 #include <sys/types.h>
3347 #include <sys/stat.h>
3348 /* Most of the following tests are stolen from RCS 5.7's src/conf.sh. */
3349 struct buf { int x; };
3350 FILE * (*rcsopen) (struct buf *, struct stat *, int);
3351 static char *e (p, i)
3357 static char *f (char * (*g) (char **, int), char **p, ...)
3362 s = g (p, va_arg (v,int));
3366 int test (int i, double x);
3367 struct s1 {int (*f) (int a);};
3368 struct s2 {int (*f) (double a);};
3369 int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
3377 return f (e, argv, 0) != argv[0] || f (e, argv, 1) != argv[1];
3383 rm -f conftest.
$ac_objext
3384 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
3385 (eval $ac_compile) 2>conftest.er1
3387 grep -v '^ *+' conftest.er1
>conftest.err
3389 cat conftest.err
>&5
3390 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3391 (exit $ac_status); } &&
3392 { ac_try
='test -z "$ac_c_werror_flag"
3393 || test ! -s conftest.err'
3394 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3397 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3398 (exit $ac_status); }; } &&
3399 { ac_try
='test -s conftest.$ac_objext'
3400 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3403 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3404 (exit $ac_status); }; }; then
3405 am_cv_prog_cc_stdc
="$ac_arg"; break
3407 echo "$as_me: failed program was:" >&5
3408 sed 's/^/| /' conftest.
$ac_ext >&5
3411 rm -f conftest.err conftest.
$ac_objext conftest.
$ac_ext
3417 if test -z "$am_cv_prog_cc_stdc"; then
3418 echo "$as_me:$LINENO: result: none needed" >&5
3419 echo "${ECHO_T}none needed" >&6
3421 echo "$as_me:$LINENO: result: $am_cv_prog_cc_stdc" >&5
3422 echo "${ECHO_T}$am_cv_prog_cc_stdc" >&6
3424 case "x$am_cv_prog_cc_stdc" in
3426 *) CC
="$CC $am_cv_prog_cc_stdc" ;;
3431 for ac_dir
in ..
$srcdir/..
; do
3432 if test -f $ac_dir/install-sh
; then
3434 ac_install_sh
="$ac_aux_dir/install-sh -c"
3436 elif test -f $ac_dir/install.sh
; then
3438 ac_install_sh
="$ac_aux_dir/install.sh -c"
3440 elif test -f $ac_dir/shtool
; then
3442 ac_install_sh
="$ac_aux_dir/shtool install -c"
3446 if test -z "$ac_aux_dir"; then
3447 { { echo "$as_me:$LINENO: error: cannot find install-sh or install.sh in .. $srcdir/.." >&5
3448 echo "$as_me: error: cannot find install-sh or install.sh in .. $srcdir/.." >&2;}
3449 { (exit 1); exit 1; }; }
3451 ac_config_guess
="$SHELL $ac_aux_dir/config.guess"
3452 ac_config_sub
="$SHELL $ac_aux_dir/config.sub"
3453 ac_configure
="$SHELL $ac_aux_dir/configure" # This should be Cygnus configure.
3455 # Make sure we can run config.sub.
3456 $ac_config_sub sun4
>/dev
/null
2>&1 ||
3457 { { echo "$as_me:$LINENO: error: cannot run $ac_config_sub" >&5
3458 echo "$as_me: error: cannot run $ac_config_sub" >&2;}
3459 { (exit 1); exit 1; }; }
3461 echo "$as_me:$LINENO: checking build system type" >&5
3462 echo $ECHO_N "checking build system type... $ECHO_C" >&6
3463 if test "${ac_cv_build+set}" = set; then
3464 echo $ECHO_N "(cached) $ECHO_C" >&6
3466 ac_cv_build_alias
=$build_alias
3467 test -z "$ac_cv_build_alias" &&
3468 ac_cv_build_alias
=`$ac_config_guess`
3469 test -z "$ac_cv_build_alias" &&
3470 { { echo "$as_me:$LINENO: error: cannot guess build type; you must specify one" >&5
3471 echo "$as_me: error: cannot guess build type; you must specify one" >&2;}
3472 { (exit 1); exit 1; }; }
3473 ac_cv_build
=`$ac_config_sub $ac_cv_build_alias` ||
3474 { { echo "$as_me:$LINENO: error: $ac_config_sub $ac_cv_build_alias failed" >&5
3475 echo "$as_me: error: $ac_config_sub $ac_cv_build_alias failed" >&2;}
3476 { (exit 1); exit 1; }; }
3479 echo "$as_me:$LINENO: result: $ac_cv_build" >&5
3480 echo "${ECHO_T}$ac_cv_build" >&6
3482 build_cpu
=`echo $ac_cv_build | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\1/'`
3483 build_vendor
=`echo $ac_cv_build | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\2/'`
3484 build_os
=`echo $ac_cv_build | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\3/'`
3487 echo "$as_me:$LINENO: checking host system type" >&5
3488 echo $ECHO_N "checking host system type... $ECHO_C" >&6
3489 if test "${ac_cv_host+set}" = set; then
3490 echo $ECHO_N "(cached) $ECHO_C" >&6
3492 ac_cv_host_alias
=$host_alias
3493 test -z "$ac_cv_host_alias" &&
3494 ac_cv_host_alias
=$ac_cv_build_alias
3495 ac_cv_host
=`$ac_config_sub $ac_cv_host_alias` ||
3496 { { echo "$as_me:$LINENO: error: $ac_config_sub $ac_cv_host_alias failed" >&5
3497 echo "$as_me: error: $ac_config_sub $ac_cv_host_alias failed" >&2;}
3498 { (exit 1); exit 1; }; }
3501 echo "$as_me:$LINENO: result: $ac_cv_host" >&5
3502 echo "${ECHO_T}$ac_cv_host" >&6
3504 host_cpu
=`echo $ac_cv_host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\1/'`
3505 host_vendor
=`echo $ac_cv_host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\2/'`
3506 host_os
=`echo $ac_cv_host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\3/'`
3509 echo "$as_me:$LINENO: checking target system type" >&5
3510 echo $ECHO_N "checking target system type... $ECHO_C" >&6
3511 if test "${ac_cv_target+set}" = set; then
3512 echo $ECHO_N "(cached) $ECHO_C" >&6
3514 ac_cv_target_alias
=$target_alias
3515 test "x$ac_cv_target_alias" = "x" &&
3516 ac_cv_target_alias
=$ac_cv_host_alias
3517 ac_cv_target
=`$ac_config_sub $ac_cv_target_alias` ||
3518 { { echo "$as_me:$LINENO: error: $ac_config_sub $ac_cv_target_alias failed" >&5
3519 echo "$as_me: error: $ac_config_sub $ac_cv_target_alias failed" >&2;}
3520 { (exit 1); exit 1; }; }
3523 echo "$as_me:$LINENO: result: $ac_cv_target" >&5
3524 echo "${ECHO_T}$ac_cv_target" >&6
3525 target
=$ac_cv_target
3526 target_cpu
=`echo $ac_cv_target | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\1/'`
3527 target_vendor
=`echo $ac_cv_target | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\2/'`
3528 target_os
=`echo $ac_cv_target | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\3/'`
3531 # The aliases save the names the user supplied, while $host etc.
3532 # will get canonicalized.
3533 test -n "$target_alias" &&
3534 test "$program_prefix$program_suffix$program_transform_name" = \
3536 program_prefix
=${target_alias}-
3538 # Dependency checking.
3539 rm -rf .tst
2>/dev
/null
3540 mkdir .tst
2>/dev
/null
3541 if test -d .tst
; then
3546 rmdir .tst
2>/dev
/null
3548 DEPDIR
="${am__leading_dot}deps"
3550 ac_config_commands
="$ac_config_commands depdir"
3553 depcc
="$CC" am_compiler_list
=
3555 am_depcomp
=$ac_aux_dir/depcomp
3556 echo "$as_me:$LINENO: checking dependency style of $depcc" >&5
3557 echo $ECHO_N "checking dependency style of $depcc... $ECHO_C" >&6
3558 if test "${am_cv_CC_dependencies_compiler_type+set}" = set; then
3559 echo $ECHO_N "(cached) $ECHO_C" >&6
3561 if test -f "$am_depcomp"; then
3562 # We make a subdir and do the tests there. Otherwise we can end up
3563 # making bogus files that we don't know about and never remove. For
3564 # instance it was reported that on HP-UX the gcc test will end up
3565 # making a dummy file named `D' -- because `-MD' means `put the output
3568 # Copy depcomp to subdir because otherwise we won't find it if we're
3569 # using a relative directory.
3570 cp "$am_depcomp" conftest.dir
3572 # We will build objects and dependencies in a subdirectory because
3573 # it helps to detect inapplicable dependency modes. For instance
3574 # both Tru64's cc and ICC support -MD to output dependencies as a
3575 # side effect of compilation, but ICC will put the dependencies in
3576 # the current directory while Tru64 will put them in the object
3580 am_cv_CC_dependencies_compiler_type
=none
3581 if test "$am_compiler_list" = ""; then
3582 am_compiler_list
=`sed -n 's/^\([a-zA-Z0-9]*\))$/\1/p' < ./depcomp`
3584 for depmode
in $am_compiler_list; do
3585 if test $depmode = none
; then break; fi
3587 echo "$as_me:$LINENO: trying $depmode" >&5
3588 # Setup a source with many dependencies, because some compilers
3589 # like to wrap large dependency lists on column 80 (with \), and
3590 # we should not choose a depcomp mode which is confused by this.
3592 # We need to recreate these files for each test, as the compiler may
3593 # overwrite some of them when testing with obscure command lines.
3594 # This happens at least with the AIX C compiler.
3596 for i
in 1 2 3 4 5 6; do
3597 echo '#include "conftst'$i'.h"' >> sub
/conftest.c
3598 # Using `: > sub/conftst$i.h' creates only sub/conftst1.h with
3599 # Solaris 8's {/usr,}/bin/sh.
3600 touch sub
/conftst
$i.h
3602 echo "include sub/conftest.Po" > confmf
3604 # We check with `-c' and `-o' for the sake of the "dashmstdout"
3605 # mode. It turns out that the SunPro C++ compiler does not properly
3606 # handle `-M -o', and we need to detect this.
3607 depcmd
="depmode=$depmode \
3608 source=sub/conftest.c object=sub/conftest.${OBJEXT-o} \
3609 depfile=sub/conftest.Po tmpdepfile=sub/conftest.TPo \
3610 $SHELL ./depcomp $depcc -c -o sub/conftest.${OBJEXT-o} sub/conftest.c"
3611 echo "| $depcmd" |
sed -e 's/ */ /g' >&5
3612 if env
$depcmd > conftest.err
2>&1 &&
3613 grep sub
/conftst6.h sub
/conftest.Po
>>conftest.err
2>&1 &&
3614 grep sub
/conftest.
${OBJEXT-o} sub
/conftest.Po
>>conftest.err
2>&1 &&
3615 ${MAKE-make} -s -f confmf
>>conftest.err
2>&1; then
3616 # icc doesn't choke on unknown options, it will just issue warnings
3617 # or remarks (even with -Werror). So we grep stderr for any message
3618 # that says an option was ignored or not supported.
3619 # When given -MP, icc 7.0 and 7.1 complain thusly:
3620 # icc: Command line warning: ignoring option '-M'; no argument required
3621 # The diagnosis changed in icc 8.0:
3622 # icc: Command line remark: option '-MP' not supported
3623 if (grep 'ignoring option' conftest.err ||
3624 grep 'not supported' conftest.err
) >/dev
/null
2>&1; then :; else
3625 am_cv_CC_dependencies_compiler_type
=$depmode
3626 echo "$as_me:$LINENO: success" >&5
3630 echo "$as_me:$LINENO: failure, diagnostics are:" >&5
3631 sed -e 's/^/| /' < conftest.err
>&5
3637 am_cv_CC_dependencies_compiler_type
=none
3641 echo "$as_me:$LINENO: result: $am_cv_CC_dependencies_compiler_type" >&5
3642 echo "${ECHO_T}$am_cv_CC_dependencies_compiler_type" >&6
3643 if test x
${am_cv_CC_dependencies_compiler_type-none} = xnone
3644 then { { echo "$as_me:$LINENO: error: no usable dependency style found" >&5
3645 echo "$as_me: error: no usable dependency style found" >&2;}
3646 { (exit 1); exit 1; }; }
3647 else CCDEPMODE
=depmode
=$am_cv_CC_dependencies_compiler_type
3652 # Check for the 'make' the user wants to use.
3655 # Extract the first word of "$ac_prog", so it can be a program name with args.
3656 set dummy
$ac_prog; ac_word
=$2
3657 echo "$as_me:$LINENO: checking for $ac_word" >&5
3658 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
3659 if test "${ac_cv_prog_MAKE+set}" = set; then
3660 echo $ECHO_N "(cached) $ECHO_C" >&6
3662 if test -n "$MAKE"; then
3663 ac_cv_prog_MAKE
="$MAKE" # Let the user override the test.
3665 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
3669 test -z "$as_dir" && as_dir
=.
3670 for ac_exec_ext
in '' $ac_executable_extensions; do
3671 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3672 ac_cv_prog_MAKE
="$ac_prog"
3673 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
3681 MAKE
=$ac_cv_prog_MAKE
3682 if test -n "$MAKE"; then
3683 echo "$as_me:$LINENO: result: $MAKE" >&5
3684 echo "${ECHO_T}$MAKE" >&6
3686 echo "$as_me:$LINENO: result: no" >&5
3687 echo "${ECHO_T}no" >&6
3690 test -n "$MAKE" && break
3694 case "`$MAKE --version 2>&1 | sed 1q`" in
3701 if test "$MAKE_IS_GNU" = yes; then
3709 echo "$as_me:$LINENO: checking whether ${MAKE-make} sets \$(MAKE)" >&5
3710 echo $ECHO_N "checking whether ${MAKE-make} sets \$(MAKE)... $ECHO_C" >&6
3711 set dummy
${MAKE-make}; ac_make
=`echo "$2" | sed 'y,:./+-,___p_,'`
3712 if eval "test \"\${ac_cv_prog_make_${ac_make}_set+set}\" = set"; then
3713 echo $ECHO_N "(cached) $ECHO_C" >&6
3715 cat >conftest.
make <<\_ACEOF
3717 @
echo 'ac_maketemp="$(MAKE)"'
3719 # GNU make sometimes prints "make[1]: Entering...", which would confuse us.
3720 eval `${MAKE-make} -f conftest.make 2>/dev/null | grep temp=`
3721 if test -n "$ac_maketemp"; then
3722 eval ac_cv_prog_make_
${ac_make}_set
=yes
3724 eval ac_cv_prog_make_
${ac_make}_set
=no
3728 if eval "test \"`echo '$ac_cv_prog_make_'${ac_make}_set`\" = yes"; then
3729 echo "$as_me:$LINENO: result: yes" >&5
3730 echo "${ECHO_T}yes" >&6
3733 echo "$as_me:$LINENO: result: no" >&5
3734 echo "${ECHO_T}no" >&6
3735 SET_MAKE
="MAKE=${MAKE-make}"
3750 # If we haven't got the data from the intl directory,
3751 # assume NLS is disabled.
3760 if test -f ..
/intl
/config.intl
; then
3761 . ..
/intl
/config.intl
3763 echo "$as_me:$LINENO: checking whether NLS is requested" >&5
3764 echo $ECHO_N "checking whether NLS is requested... $ECHO_C" >&6
3765 if test x
"$USE_NLS" != xyes
; then
3766 echo "$as_me:$LINENO: result: no" >&5
3767 echo "${ECHO_T}no" >&6
3769 echo "$as_me:$LINENO: result: yes" >&5
3770 echo "${ECHO_T}yes" >&6
3772 cat >>confdefs.h
<<\_ACEOF
3773 #define ENABLE_NLS 1
3777 echo "$as_me:$LINENO: checking for catalogs to be installed" >&5
3778 echo $ECHO_N "checking for catalogs to be installed... $ECHO_C" >&6
3779 # Look for .po and .gmo files in the source directory.
3782 for cat in $srcdir/po
/*.gmo
$srcdir/po
/*.po
; do
3783 # If there aren't any .gmo files the shell will give us the
3784 # literal string "../path/to/srcdir/po/*.gmo" which has to be
3786 case "$cat" in *\
**)
3789 # The quadruple backslash is collapsed to a double backslash
3790 # by the backticks, then collapsed again by the double quotes,
3791 # leaving us with one backslash in the sed expression (right
3792 # before the dot that mustn't act as a wildcard).
3793 cat=`echo $cat | sed -e "s!$srcdir/po/!!" -e "s!\\\\.po!.gmo!"`
3794 lang
=`echo $cat | sed -e "s!\\\\.gmo!!"`
3795 # The user is allowed to set LINGUAS to a list of languages to
3796 # install catalogs for. If it's empty that means "all of them."
3797 if test "x$LINGUAS" = x
; then
3798 CATALOGS
="$CATALOGS $cat"
3799 XLINGUAS
="$XLINGUAS $lang"
3801 case "$LINGUAS" in *$lang*)
3802 CATALOGS
="$CATALOGS $cat"
3803 XLINGUAS
="$XLINGUAS $lang"
3809 echo "$as_me:$LINENO: result: $LINGUAS" >&5
3810 echo "${ECHO_T}$LINGUAS" >&6
3823 localedir
='${datadir}/locale'
3826 if test x
"$USE_NLS" = xyes
; then
3827 CONFIG_ALL
="$CONFIG_ALL all-po"
3828 CONFIG_CLEAN
="$CONFIG_CLEAN clean-po"
3829 CONFIG_INSTALL
="$CONFIG_INSTALL install-po"
3830 CONFIG_UNINSTALL
="$CONFIG_UNINSTALL uninstall-po"
3846 GNULIB_STRCASESTR
=0;
3853 GNULIB_MBSCASECMP
=0;
3854 GNULIB_MBSNCASECMP
=0;
3855 GNULIB_MBSPCASECMP
=0;
3856 GNULIB_MBSCASESTR
=0;
3866 HAVE_DECL_MEMRCHR
=1;
3872 HAVE_DECL_STRNDUP
=1;
3873 HAVE_DECL_STRNLEN
=1;
3877 HAVE_DECL_STRTOK_R
=1;
3878 HAVE_DECL_STRERROR
=1;
3879 HAVE_DECL_STRSIGNAL
=1;
3881 REPLACE_STRSIGNAL
=0;
3883 REPLACE_STRCASESTR
=0;
3887 echo "$as_me:$LINENO: checking whether memmem is declared" >&5
3888 echo $ECHO_N "checking whether memmem is declared... $ECHO_C" >&6
3889 if test "${ac_cv_have_decl_memmem+set}" = set; then
3890 echo $ECHO_N "(cached) $ECHO_C" >&6
3892 cat >conftest.
$ac_ext <<_ACEOF
3895 cat confdefs.h
>>conftest.
$ac_ext
3896 cat >>conftest.
$ac_ext <<_ACEOF
3897 /* end confdefs.h. */
3898 $ac_includes_default
3903 char *p = (char *) memmem;
3910 rm -f conftest.
$ac_objext
3911 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
3912 (eval $ac_compile) 2>conftest.er1
3914 grep -v '^ *+' conftest.er1
>conftest.err
3916 cat conftest.err
>&5
3917 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3918 (exit $ac_status); } &&
3919 { ac_try
='test -z "$ac_c_werror_flag"
3920 || test ! -s conftest.err'
3921 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3924 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3925 (exit $ac_status); }; } &&
3926 { ac_try
='test -s conftest.$ac_objext'
3927 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3930 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3931 (exit $ac_status); }; }; then
3932 ac_cv_have_decl_memmem
=yes
3934 echo "$as_me: failed program was:" >&5
3935 sed 's/^/| /' conftest.
$ac_ext >&5
3937 ac_cv_have_decl_memmem
=no
3939 rm -f conftest.err conftest.
$ac_objext conftest.
$ac_ext
3941 echo "$as_me:$LINENO: result: $ac_cv_have_decl_memmem" >&5
3942 echo "${ECHO_T}$ac_cv_have_decl_memmem" >&6
3943 if test $ac_cv_have_decl_memmem = yes; then
3945 cat >>confdefs.h
<<_ACEOF
3946 #define HAVE_DECL_MEMMEM 1
3951 cat >>confdefs.h
<<_ACEOF
3952 #define HAVE_DECL_MEMMEM 0
3972 for ac_func
in memmem
3974 as_ac_var
=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
3975 echo "$as_me:$LINENO: checking for $ac_func" >&5
3976 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
3977 if eval "test \"\${$as_ac_var+set}\" = set"; then
3978 echo $ECHO_N "(cached) $ECHO_C" >&6
3980 cat >conftest.
$ac_ext <<_ACEOF
3983 cat confdefs.h
>>conftest.
$ac_ext
3984 cat >>conftest.
$ac_ext <<_ACEOF
3985 /* end confdefs.h. */
3986 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
3987 For example, HP-UX 11i <limits.h> declares gettimeofday. */
3988 #define $ac_func innocuous_$ac_func
3990 /* System header to define __stub macros and hopefully few prototypes,
3991 which can conflict with char $ac_func (); below.
3992 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
3993 <limits.h> exists even on freestanding compilers. */
3996 # include <limits.h>
3998 # include <assert.h>
4003 /* Override any gcc2 internal prototype to avoid an error. */
4008 /* We use char because int might match the return type of a gcc2
4009 builtin and then its argument prototype would still apply. */
4011 /* The GNU C library defines this for functions which it implements
4012 to always fail with ENOSYS. Some functions are actually named
4013 something starting with __ and the normal name is an alias. */
4014 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
4017 char (*f) () = $ac_func;
4026 return f != $ac_func;
4031 rm -f conftest.
$ac_objext conftest
$ac_exeext
4032 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
4033 (eval $ac_link) 2>conftest.er1
4035 grep -v '^ *+' conftest.er1
>conftest.err
4037 cat conftest.err
>&5
4038 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4039 (exit $ac_status); } &&
4040 { ac_try
='test -z "$ac_c_werror_flag"
4041 || test ! -s conftest.err'
4042 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4045 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4046 (exit $ac_status); }; } &&
4047 { ac_try
='test -s conftest$ac_exeext'
4048 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4051 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4052 (exit $ac_status); }; }; then
4053 eval "$as_ac_var=yes"
4055 echo "$as_me: failed program was:" >&5
4056 sed 's/^/| /' conftest.
$ac_ext >&5
4058 eval "$as_ac_var=no"
4060 rm -f conftest.err conftest.
$ac_objext \
4061 conftest
$ac_exeext conftest.
$ac_ext
4063 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
4064 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
4065 if test `eval echo '${'$as_ac_var'}'` = yes; then
4066 cat >>confdefs.h
<<_ACEOF
4067 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
4072 gl_LIBOBJS
="$gl_LIBOBJS $ac_func.$ac_objext"
4085 if test $ac_cv_have_decl_memmem = no
; then
4091 echo "$as_me:$LINENO: checking for long long int" >&5
4092 echo $ECHO_N "checking for long long int... $ECHO_C" >&6
4093 if test "${ac_cv_type_long_long_int+set}" = set; then
4094 echo $ECHO_N "(cached) $ECHO_C" >&6
4096 cat >conftest.
$ac_ext <<_ACEOF
4100 cat confdefs.h
>>conftest.
$ac_ext
4101 cat >>conftest.
$ac_ext <<_ACEOF
4102 /* end confdefs.h. */
4103 /* For now, do not test the preprocessor; as of 2007 there are too many
4104 implementations with broken preprocessors. Perhaps this can
4105 be revisited in 2012. In the meantime, code should not expect
4106 #if to work with literals wider than 32 bits. */
4107 /* Test literals. */
4108 long long int ll = 9223372036854775807ll;
4109 long long int nll = -9223372036854775807LL;
4110 unsigned long long int ull = 18446744073709551615ULL;
4111 /* Test constant expressions. */
4112 typedef int a[((-9223372036854775807LL < 0 && 0 < 9223372036854775807ll)
4114 typedef int b[(18446744073709551615ULL <= (unsigned long long int) -1
4120 /* Test availability of runtime routines for shift and division. */
4121 long long int llmax = 9223372036854775807ll;
4122 unsigned long long int ullmax = 18446744073709551615ull;
4123 return ((ll << 63) | (ll >> 63) | (ll < i) | (ll > i)
4124 | (llmax / ll) | (llmax % ll)
4125 | (ull << 63) | (ull >> 63) | (ull << i) | (ull >> i)
4126 | (ullmax / ull) | (ullmax % ull));
4132 rm -f conftest.
$ac_objext conftest
$ac_exeext
4133 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
4134 (eval $ac_link) 2>conftest.er1
4136 grep -v '^ *+' conftest.er1
>conftest.err
4138 cat conftest.err
>&5
4139 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4140 (exit $ac_status); } &&
4141 { ac_try
='test -z "$ac_c_werror_flag"
4142 || test ! -s conftest.err'
4143 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4146 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4147 (exit $ac_status); }; } &&
4148 { ac_try
='test -s conftest$ac_exeext'
4149 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4152 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4153 (exit $ac_status); }; }; then
4154 if test "$cross_compiling" = yes; then
4155 ac_cv_type_long_long_int
=yes
4157 cat >conftest.
$ac_ext <<_ACEOF
4160 cat confdefs.h
>>conftest.
$ac_ext
4161 cat >>conftest.
$ac_ext <<_ACEOF
4162 /* end confdefs.h. */
4166 (1LL << (sizeof (long long int) * CHAR_BIT - 2))
4167 # define LLONG_MAX (HALF - 1 + HALF)
4172 long long int n = 1;
4176 long long int m = n << i;
4179 if (LLONG_MAX / 2 < m)
4187 rm -f conftest
$ac_exeext
4188 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
4189 (eval $ac_link) 2>&5
4191 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4192 (exit $ac_status); } && { ac_try
='./conftest$ac_exeext'
4193 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4196 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4197 (exit $ac_status); }; }; then
4198 ac_cv_type_long_long_int
=yes
4200 echo "$as_me: program exited with status $ac_status" >&5
4201 echo "$as_me: failed program was:" >&5
4202 sed 's/^/| /' conftest.
$ac_ext >&5
4205 ac_cv_type_long_long_int
=no
4207 rm -f core
*.core gmon.out bb.out conftest
$ac_exeext conftest.
$ac_objext conftest.
$ac_ext
4210 echo "$as_me: failed program was:" >&5
4211 sed 's/^/| /' conftest.
$ac_ext >&5
4213 ac_cv_type_long_long_int
=no
4215 rm -f conftest.err conftest.
$ac_objext \
4216 conftest
$ac_exeext conftest.
$ac_ext
4218 echo "$as_me:$LINENO: result: $ac_cv_type_long_long_int" >&5
4219 echo "${ECHO_T}$ac_cv_type_long_long_int" >&6
4220 if test $ac_cv_type_long_long_int = yes; then
4222 cat >>confdefs.h
<<\_ACEOF
4223 #define HAVE_LONG_LONG_INT 1
4229 echo "$as_me:$LINENO: checking for unsigned long long int" >&5
4230 echo $ECHO_N "checking for unsigned long long int... $ECHO_C" >&6
4231 if test "${ac_cv_type_unsigned_long_long_int+set}" = set; then
4232 echo $ECHO_N "(cached) $ECHO_C" >&6
4234 cat >conftest.
$ac_ext <<_ACEOF
4238 cat confdefs.h
>>conftest.
$ac_ext
4239 cat >>conftest.
$ac_ext <<_ACEOF
4240 /* end confdefs.h. */
4241 /* For now, do not test the preprocessor; as of 2007 there are too many
4242 implementations with broken preprocessors. Perhaps this can
4243 be revisited in 2012. In the meantime, code should not expect
4244 #if to work with literals wider than 32 bits. */
4245 /* Test literals. */
4246 long long int ll = 9223372036854775807ll;
4247 long long int nll = -9223372036854775807LL;
4248 unsigned long long int ull = 18446744073709551615ULL;
4249 /* Test constant expressions. */
4250 typedef int a[((-9223372036854775807LL < 0 && 0 < 9223372036854775807ll)
4252 typedef int b[(18446744073709551615ULL <= (unsigned long long int) -1
4258 /* Test availability of runtime routines for shift and division. */
4259 long long int llmax = 9223372036854775807ll;
4260 unsigned long long int ullmax = 18446744073709551615ull;
4261 return ((ll << 63) | (ll >> 63) | (ll < i) | (ll > i)
4262 | (llmax / ll) | (llmax % ll)
4263 | (ull << 63) | (ull >> 63) | (ull << i) | (ull >> i)
4264 | (ullmax / ull) | (ullmax % ull));
4270 rm -f conftest.
$ac_objext conftest
$ac_exeext
4271 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
4272 (eval $ac_link) 2>conftest.er1
4274 grep -v '^ *+' conftest.er1
>conftest.err
4276 cat conftest.err
>&5
4277 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4278 (exit $ac_status); } &&
4279 { ac_try
='test -z "$ac_c_werror_flag"
4280 || test ! -s conftest.err'
4281 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4284 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4285 (exit $ac_status); }; } &&
4286 { ac_try
='test -s conftest$ac_exeext'
4287 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4290 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4291 (exit $ac_status); }; }; then
4292 ac_cv_type_unsigned_long_long_int
=yes
4294 echo "$as_me: failed program was:" >&5
4295 sed 's/^/| /' conftest.
$ac_ext >&5
4297 ac_cv_type_unsigned_long_long_int
=no
4299 rm -f conftest.err conftest.
$ac_objext \
4300 conftest
$ac_exeext conftest.
$ac_ext
4302 echo "$as_me:$LINENO: result: $ac_cv_type_unsigned_long_long_int" >&5
4303 echo "${ECHO_T}$ac_cv_type_unsigned_long_long_int" >&6
4304 if test $ac_cv_type_unsigned_long_long_int = yes; then
4306 cat >>confdefs.h
<<\_ACEOF
4307 #define HAVE_UNSIGNED_LONG_LONG_INT 1
4314 echo "$as_me:$LINENO: checking whether the preprocessor supports include_next" >&5
4315 echo $ECHO_N "checking whether the preprocessor supports include_next... $ECHO_C" >&6
4316 if test "${gl_cv_have_include_next+set}" = set; then
4317 echo $ECHO_N "(cached) $ECHO_C" >&6
4319 rm -rf conftestd1 conftestd2
4320 mkdir conftestd1 conftestd2
4321 cat <<EOF > conftestd1/conftest.h
4322 #define DEFINED_IN_CONFTESTD1
4323 #include_next <conftest.h>
4324 #ifdef DEFINED_IN_CONFTESTD2
4327 #error "include_next doesn't work"
4330 cat <<EOF > conftestd2/conftest.h
4331 #ifndef DEFINED_IN_CONFTESTD1
4332 #error "include_next test doesn't work"
4334 #define DEFINED_IN_CONFTESTD2
4336 save_CPPFLAGS
="$CPPFLAGS"
4337 CPPFLAGS
="$CPPFLAGS -Iconftestd1 -Iconftestd2"
4338 cat >conftest.
$ac_ext <<_ACEOF
4339 #include <conftest.h>
4341 rm -f conftest.
$ac_objext
4342 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
4343 (eval $ac_compile) 2>conftest.er1
4345 grep -v '^ *+' conftest.er1
>conftest.err
4347 cat conftest.err
>&5
4348 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4349 (exit $ac_status); } &&
4350 { ac_try
='test -z "$ac_c_werror_flag"
4351 || test ! -s conftest.err'
4352 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4355 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4356 (exit $ac_status); }; } &&
4357 { ac_try
='test -s conftest.$ac_objext'
4358 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4361 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4362 (exit $ac_status); }; }; then
4363 gl_cv_have_include_next
=yes
4365 echo "$as_me: failed program was:" >&5
4366 sed 's/^/| /' conftest.
$ac_ext >&5
4368 gl_cv_have_include_next
=no
4370 rm -f conftest.err conftest.
$ac_objext conftest.
$ac_ext
4371 CPPFLAGS
="$save_CPPFLAGS"
4372 rm -rf conftestd1 conftestd2
4375 echo "$as_me:$LINENO: result: $gl_cv_have_include_next" >&5
4376 echo "${ECHO_T}$gl_cv_have_include_next" >&6
4377 if test $gl_cv_have_include_next = yes; then
4380 cat >>confdefs.h
<<\_ACEOF
4381 #define HAVE_INCLUDE_NEXT 1
4385 INCLUDE_NEXT
=include_next
4387 INCLUDE_NEXT
=include
4396 for ac_header
in $gl_header_list
4398 as_ac_Header
=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
4399 if eval "test \"\${$as_ac_Header+set}\" = set"; then
4400 echo "$as_me:$LINENO: checking for $ac_header" >&5
4401 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
4402 if eval "test \"\${$as_ac_Header+set}\" = set"; then
4403 echo $ECHO_N "(cached) $ECHO_C" >&6
4405 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
4406 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
4408 # Is the header compilable?
4409 echo "$as_me:$LINENO: checking $ac_header usability" >&5
4410 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
4411 cat >conftest.
$ac_ext <<_ACEOF
4414 cat confdefs.h
>>conftest.
$ac_ext
4415 cat >>conftest.
$ac_ext <<_ACEOF
4416 /* end confdefs.h. */
4417 $ac_includes_default
4418 #include <$ac_header>
4420 rm -f conftest.
$ac_objext
4421 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
4422 (eval $ac_compile) 2>conftest.er1
4424 grep -v '^ *+' conftest.er1
>conftest.err
4426 cat conftest.err
>&5
4427 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4428 (exit $ac_status); } &&
4429 { ac_try
='test -z "$ac_c_werror_flag"
4430 || test ! -s conftest.err'
4431 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4434 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4435 (exit $ac_status); }; } &&
4436 { ac_try
='test -s conftest.$ac_objext'
4437 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4440 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4441 (exit $ac_status); }; }; then
4442 ac_header_compiler
=yes
4444 echo "$as_me: failed program was:" >&5
4445 sed 's/^/| /' conftest.
$ac_ext >&5
4447 ac_header_compiler
=no
4449 rm -f conftest.err conftest.
$ac_objext conftest.
$ac_ext
4450 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
4451 echo "${ECHO_T}$ac_header_compiler" >&6
4453 # Is the header present?
4454 echo "$as_me:$LINENO: checking $ac_header presence" >&5
4455 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
4456 cat >conftest.
$ac_ext <<_ACEOF
4459 cat confdefs.h
>>conftest.
$ac_ext
4460 cat >>conftest.
$ac_ext <<_ACEOF
4461 /* end confdefs.h. */
4462 #include <$ac_header>
4464 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
4465 (eval $ac_cpp conftest.
$ac_ext) 2>conftest.er1
4467 grep -v '^ *+' conftest.er1
>conftest.err
4469 cat conftest.err
>&5
4470 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4471 (exit $ac_status); } >/dev
/null
; then
4472 if test -s conftest.err
; then
4473 ac_cpp_err
=$ac_c_preproc_warn_flag
4474 ac_cpp_err
=$ac_cpp_err$ac_c_werror_flag
4481 if test -z "$ac_cpp_err"; then
4482 ac_header_preproc
=yes
4484 echo "$as_me: failed program was:" >&5
4485 sed 's/^/| /' conftest.
$ac_ext >&5
4487 ac_header_preproc
=no
4489 rm -f conftest.err conftest.
$ac_ext
4490 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
4491 echo "${ECHO_T}$ac_header_preproc" >&6
4493 # So? What about this header?
4494 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
4496 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
4497 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
4498 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
4499 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
4500 ac_header_preproc
=yes
4503 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
4504 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
4505 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
4506 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
4507 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
4508 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
4509 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
4510 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
4511 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
4512 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
4513 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
4514 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
4517 ## ------------------------------------------ ##
4518 ## Report this to the AC_PACKAGE_NAME lists. ##
4519 ## ------------------------------------------ ##
4522 sed "s/^/$as_me: WARNING: /" >&2
4525 echo "$as_me:$LINENO: checking for $ac_header" >&5
4526 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
4527 if eval "test \"\${$as_ac_Header+set}\" = set"; then
4528 echo $ECHO_N "(cached) $ECHO_C" >&6
4530 eval "$as_ac_Header=\$ac_header_preproc"
4532 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
4533 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
4536 if test `eval echo '${'$as_ac_Header'}'` = yes; then
4537 cat >>confdefs.h
<<_ACEOF
4538 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
4556 echo "$as_me:$LINENO: checking for C/C++ restrict keyword" >&5
4557 echo $ECHO_N "checking for C/C++ restrict keyword... $ECHO_C" >&6
4558 if test "${ac_cv_c_restrict+set}" = set; then
4559 echo $ECHO_N "(cached) $ECHO_C" >&6
4562 # The order here caters to the fact that C++ does not require restrict.
4563 for ac_kw
in __restrict __restrict__ _Restrict restrict
; do
4564 cat >conftest.
$ac_ext <<_ACEOF
4567 cat confdefs.h
>>conftest.
$ac_ext
4568 cat >>conftest.
$ac_ext <<_ACEOF
4569 /* end confdefs.h. */
4570 typedef int * int_ptr;
4571 int foo (int_ptr $ac_kw ip) {
4585 rm -f conftest.
$ac_objext
4586 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
4587 (eval $ac_compile) 2>conftest.er1
4589 grep -v '^ *+' conftest.er1
>conftest.err
4591 cat conftest.err
>&5
4592 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4593 (exit $ac_status); } &&
4594 { ac_try
='test -z "$ac_c_werror_flag"
4595 || test ! -s conftest.err'
4596 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4599 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4600 (exit $ac_status); }; } &&
4601 { ac_try
='test -s conftest.$ac_objext'
4602 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4605 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4606 (exit $ac_status); }; }; then
4607 ac_cv_c_restrict
=$ac_kw
4609 echo "$as_me: failed program was:" >&5
4610 sed 's/^/| /' conftest.
$ac_ext >&5
4613 rm -f conftest.err conftest.
$ac_objext conftest.
$ac_ext
4614 test "$ac_cv_c_restrict" != no
&& break
4618 echo "$as_me:$LINENO: result: $ac_cv_c_restrict" >&5
4619 echo "${ECHO_T}$ac_cv_c_restrict" >&6
4622 case $ac_cv_c_restrict in
4624 no
) cat >>confdefs.h
<<\_ACEOF
4628 *) cat >>confdefs.h
<<_ACEOF
4629 #define restrict $ac_cv_c_restrict
4654 if test $gl_cv_have_include_next = yes; then
4655 gl_cv_next_string_h
='<'string.h
'>'
4657 echo "$as_me:$LINENO: checking absolute name of <string.h>" >&5
4658 echo $ECHO_N "checking absolute name of <string.h>... $ECHO_C" >&6
4659 if test "${gl_cv_next_string_h+set}" = set; then
4660 echo $ECHO_N "(cached) $ECHO_C" >&6
4663 if test $ac_cv_header_string_h = yes; then
4664 cat >conftest.
$ac_ext <<_ACEOF
4667 cat confdefs.h
>>conftest.
$ac_ext
4668 cat >>conftest.
$ac_ext <<_ACEOF
4669 /* end confdefs.h. */
4673 gl_cv_next_string_h
='"'`(eval "$ac_cpp conftest.$ac_ext") 2>&5 |
4674 sed -n '\#/string.h#{
4675 s#.*"\(.*/string.h\)".*#\1#
4681 gl_cv_next_string_h
='<'string.h
'>'
4685 echo "$as_me:$LINENO: result: $gl_cv_next_string_h" >&5
4686 echo "${ECHO_T}$gl_cv_next_string_h" >&6
4688 NEXT_STRING_H
=$gl_cv_next_string_h
4695 HAVE_DECL_WCWIDTH
=1;
4704 GL_COND_LIBTOOL_TRUE
=
4705 GL_COND_LIBTOOL_FALSE
='#'
4707 GL_COND_LIBTOOL_TRUE
='#'
4708 GL_COND_LIBTOOL_FALSE
=
4711 gl_cond_libtool
=false
4717 gl_source_base
='gnulib'
4727 for ac_func
in memchr
4729 as_ac_var
=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
4730 echo "$as_me:$LINENO: checking for $ac_func" >&5
4731 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
4732 if eval "test \"\${$as_ac_var+set}\" = set"; then
4733 echo $ECHO_N "(cached) $ECHO_C" >&6
4735 cat >conftest.
$ac_ext <<_ACEOF
4738 cat confdefs.h
>>conftest.
$ac_ext
4739 cat >>conftest.
$ac_ext <<_ACEOF
4740 /* end confdefs.h. */
4741 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
4742 For example, HP-UX 11i <limits.h> declares gettimeofday. */
4743 #define $ac_func innocuous_$ac_func
4745 /* System header to define __stub macros and hopefully few prototypes,
4746 which can conflict with char $ac_func (); below.
4747 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
4748 <limits.h> exists even on freestanding compilers. */
4751 # include <limits.h>
4753 # include <assert.h>
4758 /* Override any gcc2 internal prototype to avoid an error. */
4763 /* We use char because int might match the return type of a gcc2
4764 builtin and then its argument prototype would still apply. */
4766 /* The GNU C library defines this for functions which it implements
4767 to always fail with ENOSYS. Some functions are actually named
4768 something starting with __ and the normal name is an alias. */
4769 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
4772 char (*f) () = $ac_func;
4781 return f != $ac_func;
4786 rm -f conftest.
$ac_objext conftest
$ac_exeext
4787 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
4788 (eval $ac_link) 2>conftest.er1
4790 grep -v '^ *+' conftest.er1
>conftest.err
4792 cat conftest.err
>&5
4793 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4794 (exit $ac_status); } &&
4795 { ac_try
='test -z "$ac_c_werror_flag"
4796 || test ! -s conftest.err'
4797 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4800 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4801 (exit $ac_status); }; } &&
4802 { ac_try
='test -s conftest$ac_exeext'
4803 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4806 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4807 (exit $ac_status); }; }; then
4808 eval "$as_ac_var=yes"
4810 echo "$as_me: failed program was:" >&5
4811 sed 's/^/| /' conftest.
$ac_ext >&5
4813 eval "$as_ac_var=no"
4815 rm -f conftest.err conftest.
$ac_objext \
4816 conftest
$ac_exeext conftest.
$ac_ext
4818 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
4819 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
4820 if test `eval echo '${'$as_ac_var'}'` = yes; then
4821 cat >>confdefs.h
<<_ACEOF
4822 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
4827 gl_LIBOBJS
="$gl_LIBOBJS $ac_func.$ac_objext"
4833 if test $ac_cv_func_memchr = no
; then
4836 for ac_header
in bp-sym.h
4838 as_ac_Header
=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
4839 if eval "test \"\${$as_ac_Header+set}\" = set"; then
4840 echo "$as_me:$LINENO: checking for $ac_header" >&5
4841 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
4842 if eval "test \"\${$as_ac_Header+set}\" = set"; then
4843 echo $ECHO_N "(cached) $ECHO_C" >&6
4845 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
4846 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
4848 # Is the header compilable?
4849 echo "$as_me:$LINENO: checking $ac_header usability" >&5
4850 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
4851 cat >conftest.
$ac_ext <<_ACEOF
4854 cat confdefs.h
>>conftest.
$ac_ext
4855 cat >>conftest.
$ac_ext <<_ACEOF
4856 /* end confdefs.h. */
4857 $ac_includes_default
4858 #include <$ac_header>
4860 rm -f conftest.
$ac_objext
4861 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
4862 (eval $ac_compile) 2>conftest.er1
4864 grep -v '^ *+' conftest.er1
>conftest.err
4866 cat conftest.err
>&5
4867 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4868 (exit $ac_status); } &&
4869 { ac_try
='test -z "$ac_c_werror_flag"
4870 || test ! -s conftest.err'
4871 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4874 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4875 (exit $ac_status); }; } &&
4876 { ac_try
='test -s conftest.$ac_objext'
4877 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4880 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4881 (exit $ac_status); }; }; then
4882 ac_header_compiler
=yes
4884 echo "$as_me: failed program was:" >&5
4885 sed 's/^/| /' conftest.
$ac_ext >&5
4887 ac_header_compiler
=no
4889 rm -f conftest.err conftest.
$ac_objext conftest.
$ac_ext
4890 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
4891 echo "${ECHO_T}$ac_header_compiler" >&6
4893 # Is the header present?
4894 echo "$as_me:$LINENO: checking $ac_header presence" >&5
4895 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
4896 cat >conftest.
$ac_ext <<_ACEOF
4899 cat confdefs.h
>>conftest.
$ac_ext
4900 cat >>conftest.
$ac_ext <<_ACEOF
4901 /* end confdefs.h. */
4902 #include <$ac_header>
4904 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
4905 (eval $ac_cpp conftest.
$ac_ext) 2>conftest.er1
4907 grep -v '^ *+' conftest.er1
>conftest.err
4909 cat conftest.err
>&5
4910 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4911 (exit $ac_status); } >/dev
/null
; then
4912 if test -s conftest.err
; then
4913 ac_cpp_err
=$ac_c_preproc_warn_flag
4914 ac_cpp_err
=$ac_cpp_err$ac_c_werror_flag
4921 if test -z "$ac_cpp_err"; then
4922 ac_header_preproc
=yes
4924 echo "$as_me: failed program was:" >&5
4925 sed 's/^/| /' conftest.
$ac_ext >&5
4927 ac_header_preproc
=no
4929 rm -f conftest.err conftest.
$ac_ext
4930 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
4931 echo "${ECHO_T}$ac_header_preproc" >&6
4933 # So? What about this header?
4934 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
4936 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
4937 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
4938 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
4939 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
4940 ac_header_preproc
=yes
4943 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
4944 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
4945 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
4946 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
4947 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
4948 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
4949 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
4950 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
4951 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
4952 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
4953 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
4954 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
4957 ## ------------------------------------------ ##
4958 ## Report this to the AC_PACKAGE_NAME lists. ##
4959 ## ------------------------------------------ ##
4962 sed "s/^/$as_me: WARNING: /" >&2
4965 echo "$as_me:$LINENO: checking for $ac_header" >&5
4966 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
4967 if eval "test \"\${$as_ac_Header+set}\" = set"; then
4968 echo $ECHO_N "(cached) $ECHO_C" >&6
4970 eval "$as_ac_Header=\$ac_header_preproc"
4972 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
4973 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
4976 if test `eval echo '${'$as_ac_Header'}'` = yes; then
4977 cat >>confdefs.h
<<_ACEOF
4978 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
4989 echo "$as_me:$LINENO: checking for working memcmp" >&5
4990 echo $ECHO_N "checking for working memcmp... $ECHO_C" >&6
4991 if test "${ac_cv_func_memcmp_working+set}" = set; then
4992 echo $ECHO_N "(cached) $ECHO_C" >&6
4994 if test "$cross_compiling" = yes; then
4995 ac_cv_func_memcmp_working
=no
4997 cat >conftest.
$ac_ext <<_ACEOF
5000 cat confdefs.h
>>conftest.
$ac_ext
5001 cat >>conftest.
$ac_ext <<_ACEOF
5002 /* end confdefs.h. */
5003 $ac_includes_default
5008 /* Some versions of memcmp are not 8-bit clean. */
5009 char c0 = 0x40, c1 = 0x80, c2 = 0x81;
5010 if (memcmp(&c0, &c2, 1) >= 0 || memcmp(&c1, &c2, 1) >= 0)
5013 /* The Next x86 OpenStep bug shows up only when comparing 16 bytes
5014 or more and with at least one buffer not starting on a 4-byte boundary.
5015 William Lewis provided this test program. */
5020 for (i = 0; i < 4; i++)
5024 strcpy (a, "--------01111111");
5025 strcpy (b, "--------10000000");
5026 if (memcmp (a, b, 16) >= 0)
5036 rm -f conftest
$ac_exeext
5037 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
5038 (eval $ac_link) 2>&5
5040 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5041 (exit $ac_status); } && { ac_try
='./conftest$ac_exeext'
5042 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5045 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5046 (exit $ac_status); }; }; then
5047 ac_cv_func_memcmp_working
=yes
5049 echo "$as_me: program exited with status $ac_status" >&5
5050 echo "$as_me: failed program was:" >&5
5051 sed 's/^/| /' conftest.
$ac_ext >&5
5054 ac_cv_func_memcmp_working
=no
5056 rm -f core
*.core gmon.out bb.out conftest
$ac_exeext conftest.
$ac_objext conftest.
$ac_ext
5059 echo "$as_me:$LINENO: result: $ac_cv_func_memcmp_working" >&5
5060 echo "${ECHO_T}$ac_cv_func_memcmp_working" >&6
5061 test $ac_cv_func_memcmp_working = no
&&
5068 gl_LIBOBJS
="$gl_LIBOBJS memcmp.$ac_objext"
5071 if test $ac_cv_func_memcmp_working = no
; then
5073 cat >>confdefs.h
<<\_ACEOF
5074 #define memcmp rpl_memcmp
5082 if test $ac_cv_have_decl_memmem = yes; then
5083 echo "$as_me:$LINENO: checking whether memmem works in linear time" >&5
5084 echo $ECHO_N "checking whether memmem works in linear time... $ECHO_C" >&6
5085 if test "${gl_cv_func_memmem_works+set}" = set; then
5086 echo $ECHO_N "(cached) $ECHO_C" >&6
5088 if test "$cross_compiling" = yes; then
5089 gl_cv_func_memmem_works
="guessing no"
5091 cat >conftest.
$ac_ext <<_ACEOF
5094 cat confdefs.h
>>conftest.
$ac_ext
5095 cat >>conftest.
$ac_ext <<_ACEOF
5096 /* end confdefs.h. */
5098 #include <string.h> /* for memmem */
5099 #include <stdlib.h> /* for malloc */
5100 #include <unistd.h> /* for alarm */
5106 char *haystack = (char *) malloc (2 * m + 1);
5107 char *needle = (char *) malloc (m + 1);
5109 /* Failure to compile this test due to missing alarm is okay,
5110 since all such platforms (mingw) also lack memmem. */
5112 /* Check for quadratic performance. */
5113 if (haystack && needle)
5115 memset (haystack, 'A', 2 * m);
5116 haystack[2 * m] = 'B';
5117 memset (needle, 'A', m);
5119 result = memmem (haystack, 2 * m + 1, needle, m + 1);
5121 /* Check for empty needle behavior. */
5122 return !result || !memmem ("a", 1, 0, 0);
5127 rm -f conftest
$ac_exeext
5128 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
5129 (eval $ac_link) 2>&5
5131 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5132 (exit $ac_status); } && { ac_try
='./conftest$ac_exeext'
5133 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5136 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5137 (exit $ac_status); }; }; then
5138 gl_cv_func_memmem_works
=yes
5140 echo "$as_me: program exited with status $ac_status" >&5
5141 echo "$as_me: failed program was:" >&5
5142 sed 's/^/| /' conftest.
$ac_ext >&5
5145 gl_cv_func_memmem_works
=no
5147 rm -f core
*.core gmon.out bb.out conftest
$ac_exeext conftest.
$ac_objext conftest.
$ac_ext
5150 echo "$as_me:$LINENO: result: $gl_cv_func_memmem_works" >&5
5151 echo "${ECHO_T}$gl_cv_func_memmem_works" >&6
5152 if test "$gl_cv_func_memmem_works" != yes; then
5161 gl_LIBOBJS
="$gl_LIBOBJS memmem.$ac_objext"
5178 for ac_func
in memmem
5180 as_ac_var
=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
5181 echo "$as_me:$LINENO: checking for $ac_func" >&5
5182 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
5183 if eval "test \"\${$as_ac_var+set}\" = set"; then
5184 echo $ECHO_N "(cached) $ECHO_C" >&6
5186 cat >conftest.
$ac_ext <<_ACEOF
5189 cat confdefs.h
>>conftest.
$ac_ext
5190 cat >>conftest.
$ac_ext <<_ACEOF
5191 /* end confdefs.h. */
5192 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
5193 For example, HP-UX 11i <limits.h> declares gettimeofday. */
5194 #define $ac_func innocuous_$ac_func
5196 /* System header to define __stub macros and hopefully few prototypes,
5197 which can conflict with char $ac_func (); below.
5198 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
5199 <limits.h> exists even on freestanding compilers. */
5202 # include <limits.h>
5204 # include <assert.h>
5209 /* Override any gcc2 internal prototype to avoid an error. */
5214 /* We use char because int might match the return type of a gcc2
5215 builtin and then its argument prototype would still apply. */
5217 /* The GNU C library defines this for functions which it implements
5218 to always fail with ENOSYS. Some functions are actually named
5219 something starting with __ and the normal name is an alias. */
5220 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
5223 char (*f) () = $ac_func;
5232 return f != $ac_func;
5237 rm -f conftest.
$ac_objext conftest
$ac_exeext
5238 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
5239 (eval $ac_link) 2>conftest.er1
5241 grep -v '^ *+' conftest.er1
>conftest.err
5243 cat conftest.err
>&5
5244 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5245 (exit $ac_status); } &&
5246 { ac_try
='test -z "$ac_c_werror_flag"
5247 || test ! -s conftest.err'
5248 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5251 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5252 (exit $ac_status); }; } &&
5253 { ac_try
='test -s conftest$ac_exeext'
5254 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5257 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5258 (exit $ac_status); }; }; then
5259 eval "$as_ac_var=yes"
5261 echo "$as_me: failed program was:" >&5
5262 sed 's/^/| /' conftest.
$ac_ext >&5
5264 eval "$as_ac_var=no"
5266 rm -f conftest.err conftest.
$ac_objext \
5267 conftest
$ac_exeext conftest.
$ac_ext
5269 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
5270 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
5271 if test `eval echo '${'$as_ac_var'}'` = yes; then
5272 cat >>confdefs.h
<<_ACEOF
5273 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
5278 gl_LIBOBJS
="$gl_LIBOBJS $ac_func.$ac_objext"
5291 if test $ac_cv_have_decl_memmem = no
; then
5303 if test $ac_cv_type_long_long_int = yes; then
5304 HAVE_LONG_LONG_INT
=1
5306 HAVE_LONG_LONG_INT
=0
5310 if test $ac_cv_type_unsigned_long_long_int = yes; then
5311 HAVE_UNSIGNED_LONG_LONG_INT
=1
5313 HAVE_UNSIGNED_LONG_LONG_INT
=0
5317 if test $ac_cv_header_inttypes_h = yes; then
5324 if test $ac_cv_header_sys_types_h = yes; then
5342 if test $gl_cv_have_include_next = yes; then
5343 gl_cv_next_stdint_h
='<'stdint.h
'>'
5345 echo "$as_me:$LINENO: checking absolute name of <stdint.h>" >&5
5346 echo $ECHO_N "checking absolute name of <stdint.h>... $ECHO_C" >&6
5347 if test "${gl_cv_next_stdint_h+set}" = set; then
5348 echo $ECHO_N "(cached) $ECHO_C" >&6
5351 if test $ac_cv_header_stdint_h = yes; then
5352 cat >conftest.
$ac_ext <<_ACEOF
5355 cat confdefs.h
>>conftest.
$ac_ext
5356 cat >>conftest.
$ac_ext <<_ACEOF
5357 /* end confdefs.h. */
5361 gl_cv_next_stdint_h
='"'`(eval "$ac_cpp conftest.$ac_ext") 2>&5 |
5362 sed -n '\#/stdint.h#{
5363 s#.*"\(.*/stdint.h\)".*#\1#
5369 gl_cv_next_stdint_h
='<'stdint.h
'>'
5373 echo "$as_me:$LINENO: result: $gl_cv_next_stdint_h" >&5
5374 echo "${ECHO_T}$gl_cv_next_stdint_h" >&6
5376 NEXT_STDINT_H
=$gl_cv_next_stdint_h
5380 if test $ac_cv_header_stdint_h = yes; then
5387 if test $ac_cv_header_stdint_h = yes; then
5388 echo "$as_me:$LINENO: checking whether stdint.h conforms to C99" >&5
5389 echo $ECHO_N "checking whether stdint.h conforms to C99... $ECHO_C" >&6
5390 if test "${gl_cv_header_working_stdint_h+set}" = set; then
5391 echo $ECHO_N "(cached) $ECHO_C" >&6
5393 gl_cv_header_working_stdint_h
=no
5394 cat >conftest.
$ac_ext <<_ACEOF
5398 cat confdefs.h
>>conftest.
$ac_ext
5399 cat >>conftest.
$ac_ext <<_ACEOF
5400 /* end confdefs.h. */
5402 #define __STDC_LIMIT_MACROS 1 /* to make it work also in C++ mode */
5403 #define __STDC_CONSTANT_MACROS 1 /* to make it work also in C++ mode */
5404 #define _GL_JUST_INCLUDE_SYSTEM_STDINT_H 1 /* work if build isn't clean */
5406 /* Dragonfly defines WCHAR_MIN, WCHAR_MAX only in <wchar.h>. */
5407 #if !(defined WCHAR_MIN && defined WCHAR_MAX)
5408 #error "WCHAR_MIN, WCHAR_MAX not defined in <stdint.h>"
5412 /* BSD/OS 4.0.1 has a bug: <stddef.h>, <stdio.h> and <time.h> must be
5413 included before <wchar.h>. */
5424 int8_t a1 = INT8_MAX;
5425 int8_t a1min = INT8_MIN;
5428 int16_t a2 = INT16_MAX;
5429 int16_t a2min = INT16_MIN;
5432 int32_t a3 = INT32_MAX;
5433 int32_t a3min = INT32_MIN;
5436 int64_t a4 = INT64_MAX;
5437 int64_t a4min = INT64_MIN;
5440 uint8_t b1 = UINT8_MAX;
5442 typedef int b1[(unsigned char) -1 != 255 ? 1 : -1];
5445 uint16_t b2 = UINT16_MAX;
5448 uint32_t b3 = UINT32_MAX;
5451 uint64_t b4 = UINT64_MAX;
5453 int_least8_t c1 = INT8_C (0x7f);
5454 int_least8_t c1max = INT_LEAST8_MAX;
5455 int_least8_t c1min = INT_LEAST8_MIN;
5456 int_least16_t c2 = INT16_C (0x7fff);
5457 int_least16_t c2max = INT_LEAST16_MAX;
5458 int_least16_t c2min = INT_LEAST16_MIN;
5459 int_least32_t c3 = INT32_C (0x7fffffff);
5460 int_least32_t c3max = INT_LEAST32_MAX;
5461 int_least32_t c3min = INT_LEAST32_MIN;
5462 int_least64_t c4 = INT64_C (0x7fffffffffffffff);
5463 int_least64_t c4max = INT_LEAST64_MAX;
5464 int_least64_t c4min = INT_LEAST64_MIN;
5465 uint_least8_t d1 = UINT8_C (0xff);
5466 uint_least8_t d1max = UINT_LEAST8_MAX;
5467 uint_least16_t d2 = UINT16_C (0xffff);
5468 uint_least16_t d2max = UINT_LEAST16_MAX;
5469 uint_least32_t d3 = UINT32_C (0xffffffff);
5470 uint_least32_t d3max = UINT_LEAST32_MAX;
5471 uint_least64_t d4 = UINT64_C (0xffffffffffffffff);
5472 uint_least64_t d4max = UINT_LEAST64_MAX;
5473 int_fast8_t e1 = INT_FAST8_MAX;
5474 int_fast8_t e1min = INT_FAST8_MIN;
5475 int_fast16_t e2 = INT_FAST16_MAX;
5476 int_fast16_t e2min = INT_FAST16_MIN;
5477 int_fast32_t e3 = INT_FAST32_MAX;
5478 int_fast32_t e3min = INT_FAST32_MIN;
5479 int_fast64_t e4 = INT_FAST64_MAX;
5480 int_fast64_t e4min = INT_FAST64_MIN;
5481 uint_fast8_t f1 = UINT_FAST8_MAX;
5482 uint_fast16_t f2 = UINT_FAST16_MAX;
5483 uint_fast32_t f3 = UINT_FAST32_MAX;
5484 uint_fast64_t f4 = UINT_FAST64_MAX;
5486 intptr_t g = INTPTR_MAX;
5487 intptr_t gmin = INTPTR_MIN;
5490 uintptr_t h = UINTPTR_MAX;
5492 intmax_t i = INTMAX_MAX;
5493 uintmax_t j = UINTMAX_MAX;
5495 #include <limits.h> /* for CHAR_BIT */
5496 #define TYPE_MINIMUM(t) \
5497 ((t) ((t) 0 < (t) -1 ? (t) 0 : ~ (t) 0 << (sizeof (t) * CHAR_BIT - 1)))
5498 #define TYPE_MAXIMUM(t) \
5499 ((t) ((t) 0 < (t) -1 ? (t) -1 : ~ (~ (t) 0 << (sizeof (t) * CHAR_BIT - 1))))
5502 PTRDIFF_MIN == TYPE_MINIMUM (ptrdiff_t)
5503 && PTRDIFF_MAX == TYPE_MAXIMUM (ptrdiff_t)
5505 /* Detect bug in FreeBSD 6.0 / ia64. */
5506 int check_SIG_ATOMIC:
5507 SIG_ATOMIC_MIN == TYPE_MINIMUM (sig_atomic_t)
5508 && SIG_ATOMIC_MAX == TYPE_MAXIMUM (sig_atomic_t)
5510 int check_SIZE: SIZE_MAX == TYPE_MAXIMUM (size_t) ? 1 : -1;
5512 WCHAR_MIN == TYPE_MINIMUM (wchar_t)
5513 && WCHAR_MAX == TYPE_MAXIMUM (wchar_t)
5515 /* Detect bug in mingw. */
5517 WINT_MIN == TYPE_MINIMUM (wint_t)
5518 && WINT_MAX == TYPE_MAXIMUM (wint_t)
5521 /* Detect bugs in glibc 2.4 and Solaris 10 stdint.h, among others. */
5523 (-1 < UINT8_C (0)) == (-1 < (uint_least8_t) 0) ? 1 : -1;
5525 (-1 < UINT16_C (0)) == (-1 < (uint_least16_t) 0) ? 1 : -1;
5527 /* Detect bugs in OpenBSD 3.9 stdint.h. */
5529 int check_uint8: (uint8_t) -1 == UINT8_MAX ? 1 : -1;
5532 int check_uint16: (uint16_t) -1 == UINT16_MAX ? 1 : -1;
5535 int check_uint32: (uint32_t) -1 == UINT32_MAX ? 1 : -1;
5538 int check_uint64: (uint64_t) -1 == UINT64_MAX ? 1 : -1;
5540 int check_uint_least8: (uint_least8_t) -1 == UINT_LEAST8_MAX ? 1 : -1;
5541 int check_uint_least16: (uint_least16_t) -1 == UINT_LEAST16_MAX ? 1 : -1;
5542 int check_uint_least32: (uint_least32_t) -1 == UINT_LEAST32_MAX ? 1 : -1;
5543 int check_uint_least64: (uint_least64_t) -1 == UINT_LEAST64_MAX ? 1 : -1;
5544 int check_uint_fast8: (uint_fast8_t) -1 == UINT_FAST8_MAX ? 1 : -1;
5545 int check_uint_fast16: (uint_fast16_t) -1 == UINT_FAST16_MAX ? 1 : -1;
5546 int check_uint_fast32: (uint_fast32_t) -1 == UINT_FAST32_MAX ? 1 : -1;
5547 int check_uint_fast64: (uint_fast64_t) -1 == UINT_FAST64_MAX ? 1 : -1;
5548 int check_uintptr: (uintptr_t) -1 == UINTPTR_MAX ? 1 : -1;
5549 int check_uintmax: (uintmax_t) -1 == UINTMAX_MAX ? 1 : -1;
5550 int check_size: (size_t) -1 == SIZE_MAX ? 1 : -1;
5561 rm -f conftest.
$ac_objext
5562 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
5563 (eval $ac_compile) 2>conftest.er1
5565 grep -v '^ *+' conftest.er1
>conftest.err
5567 cat conftest.err
>&5
5568 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5569 (exit $ac_status); } &&
5570 { ac_try
='test -z "$ac_c_werror_flag"
5571 || test ! -s conftest.err'
5572 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5575 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5576 (exit $ac_status); }; } &&
5577 { ac_try
='test -s conftest.$ac_objext'
5578 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5581 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5582 (exit $ac_status); }; }; then
5583 gl_cv_header_working_stdint_h
=yes
5585 echo "$as_me: failed program was:" >&5
5586 sed 's/^/| /' conftest.
$ac_ext >&5
5589 rm -f conftest.err conftest.
$ac_objext conftest.
$ac_ext
5591 echo "$as_me:$LINENO: result: $gl_cv_header_working_stdint_h" >&5
5592 echo "${ECHO_T}$gl_cv_header_working_stdint_h" >&6
5594 if test "$gl_cv_header_working_stdint_h" = yes; then
5599 for ac_header
in sys
/inttypes.h sys
/bitypes.h
5601 as_ac_Header
=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
5602 if eval "test \"\${$as_ac_Header+set}\" = set"; then
5603 echo "$as_me:$LINENO: checking for $ac_header" >&5
5604 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
5605 if eval "test \"\${$as_ac_Header+set}\" = set"; then
5606 echo $ECHO_N "(cached) $ECHO_C" >&6
5608 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
5609 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
5611 # Is the header compilable?
5612 echo "$as_me:$LINENO: checking $ac_header usability" >&5
5613 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
5614 cat >conftest.
$ac_ext <<_ACEOF
5617 cat confdefs.h
>>conftest.
$ac_ext
5618 cat >>conftest.
$ac_ext <<_ACEOF
5619 /* end confdefs.h. */
5620 $ac_includes_default
5621 #include <$ac_header>
5623 rm -f conftest.
$ac_objext
5624 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
5625 (eval $ac_compile) 2>conftest.er1
5627 grep -v '^ *+' conftest.er1
>conftest.err
5629 cat conftest.err
>&5
5630 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5631 (exit $ac_status); } &&
5632 { ac_try
='test -z "$ac_c_werror_flag"
5633 || test ! -s conftest.err'
5634 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5637 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5638 (exit $ac_status); }; } &&
5639 { ac_try
='test -s conftest.$ac_objext'
5640 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5643 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5644 (exit $ac_status); }; }; then
5645 ac_header_compiler
=yes
5647 echo "$as_me: failed program was:" >&5
5648 sed 's/^/| /' conftest.
$ac_ext >&5
5650 ac_header_compiler
=no
5652 rm -f conftest.err conftest.
$ac_objext conftest.
$ac_ext
5653 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
5654 echo "${ECHO_T}$ac_header_compiler" >&6
5656 # Is the header present?
5657 echo "$as_me:$LINENO: checking $ac_header presence" >&5
5658 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
5659 cat >conftest.
$ac_ext <<_ACEOF
5662 cat confdefs.h
>>conftest.
$ac_ext
5663 cat >>conftest.
$ac_ext <<_ACEOF
5664 /* end confdefs.h. */
5665 #include <$ac_header>
5667 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
5668 (eval $ac_cpp conftest.
$ac_ext) 2>conftest.er1
5670 grep -v '^ *+' conftest.er1
>conftest.err
5672 cat conftest.err
>&5
5673 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5674 (exit $ac_status); } >/dev
/null
; then
5675 if test -s conftest.err
; then
5676 ac_cpp_err
=$ac_c_preproc_warn_flag
5677 ac_cpp_err
=$ac_cpp_err$ac_c_werror_flag
5684 if test -z "$ac_cpp_err"; then
5685 ac_header_preproc
=yes
5687 echo "$as_me: failed program was:" >&5
5688 sed 's/^/| /' conftest.
$ac_ext >&5
5690 ac_header_preproc
=no
5692 rm -f conftest.err conftest.
$ac_ext
5693 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
5694 echo "${ECHO_T}$ac_header_preproc" >&6
5696 # So? What about this header?
5697 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
5699 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
5700 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
5701 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
5702 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
5703 ac_header_preproc
=yes
5706 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
5707 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
5708 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
5709 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
5710 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
5711 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
5712 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
5713 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
5714 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
5715 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
5716 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
5717 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
5720 ## ------------------------------------------ ##
5721 ## Report this to the AC_PACKAGE_NAME lists. ##
5722 ## ------------------------------------------ ##
5725 sed "s/^/$as_me: WARNING: /" >&2
5728 echo "$as_me:$LINENO: checking for $ac_header" >&5
5729 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
5730 if eval "test \"\${$as_ac_Header+set}\" = set"; then
5731 echo $ECHO_N "(cached) $ECHO_C" >&6
5733 eval "$as_ac_Header=\$ac_header_preproc"
5735 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
5736 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
5739 if test `eval echo '${'$as_ac_Header'}'` = yes; then
5740 cat >>confdefs.h
<<_ACEOF
5741 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
5748 if test $ac_cv_header_sys_inttypes_h = yes; then
5749 HAVE_SYS_INTTYPES_H
=1
5751 HAVE_SYS_INTTYPES_H
=0
5754 if test $ac_cv_header_sys_bitypes_h = yes; then
5755 HAVE_SYS_BITYPES_H
=1
5757 HAVE_SYS_BITYPES_H
=0
5777 for gltype
in ptrdiff_t sig_atomic_t size_t wchar_t wint_t
; do
5778 echo "$as_me:$LINENO: checking for bit size of $gltype" >&5
5779 echo $ECHO_N "checking for bit size of $gltype... $ECHO_C" >&6
5780 if eval "test \"\${gl_cv_bitsizeof_${gltype}+set}\" = set"; then
5781 echo $ECHO_N "(cached) $ECHO_C" >&6
5783 if test "$cross_compiling" = yes; then
5784 # Depending upon the size, compute the lo and hi bounds.
5785 cat >conftest.
$ac_ext <<_ACEOF
5788 cat confdefs.h
>>conftest.
$ac_ext
5789 cat >>conftest.
$ac_ext <<_ACEOF
5790 /* end confdefs.h. */
5792 /* BSD/OS 4.0.1 has a bug: <stddef.h>, <stdio.h> and <time.h> must be
5793 included before <wchar.h>. */
5806 static int test_array [1 - 2 * !((sizeof ($gltype) * CHAR_BIT) >= 0)];
5813 rm -f conftest.
$ac_objext
5814 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
5815 (eval $ac_compile) 2>conftest.er1
5817 grep -v '^ *+' conftest.er1
>conftest.err
5819 cat conftest.err
>&5
5820 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5821 (exit $ac_status); } &&
5822 { ac_try
='test -z "$ac_c_werror_flag"
5823 || test ! -s conftest.err'
5824 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5827 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5828 (exit $ac_status); }; } &&
5829 { ac_try
='test -s conftest.$ac_objext'
5830 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5833 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5834 (exit $ac_status); }; }; then
5837 cat >conftest.
$ac_ext <<_ACEOF
5840 cat confdefs.h
>>conftest.
$ac_ext
5841 cat >>conftest.
$ac_ext <<_ACEOF
5842 /* end confdefs.h. */
5844 /* BSD/OS 4.0.1 has a bug: <stddef.h>, <stdio.h> and <time.h> must be
5845 included before <wchar.h>. */
5858 static int test_array [1 - 2 * !((sizeof ($gltype) * CHAR_BIT) <= $ac_mid)];
5865 rm -f conftest.
$ac_objext
5866 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
5867 (eval $ac_compile) 2>conftest.er1
5869 grep -v '^ *+' conftest.er1
>conftest.err
5871 cat conftest.err
>&5
5872 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5873 (exit $ac_status); } &&
5874 { ac_try
='test -z "$ac_c_werror_flag"
5875 || test ! -s conftest.err'
5876 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5879 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5880 (exit $ac_status); }; } &&
5881 { ac_try
='test -s conftest.$ac_objext'
5882 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5885 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5886 (exit $ac_status); }; }; then
5887 ac_hi
=$ac_mid; break
5889 echo "$as_me: failed program was:" >&5
5890 sed 's/^/| /' conftest.
$ac_ext >&5
5892 ac_lo
=`expr $ac_mid + 1`
5893 if test $ac_lo -le $ac_mid; then
5897 ac_mid
=`expr 2 '*' $ac_mid + 1`
5899 rm -f conftest.err conftest.
$ac_objext conftest.
$ac_ext
5902 echo "$as_me: failed program was:" >&5
5903 sed 's/^/| /' conftest.
$ac_ext >&5
5905 cat >conftest.
$ac_ext <<_ACEOF
5908 cat confdefs.h
>>conftest.
$ac_ext
5909 cat >>conftest.
$ac_ext <<_ACEOF
5910 /* end confdefs.h. */
5912 /* BSD/OS 4.0.1 has a bug: <stddef.h>, <stdio.h> and <time.h> must be
5913 included before <wchar.h>. */
5926 static int test_array [1 - 2 * !((sizeof ($gltype) * CHAR_BIT) < 0)];
5933 rm -f conftest.
$ac_objext
5934 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
5935 (eval $ac_compile) 2>conftest.er1
5937 grep -v '^ *+' conftest.er1
>conftest.err
5939 cat conftest.err
>&5
5940 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5941 (exit $ac_status); } &&
5942 { ac_try
='test -z "$ac_c_werror_flag"
5943 || test ! -s conftest.err'
5944 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5947 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5948 (exit $ac_status); }; } &&
5949 { ac_try
='test -s conftest.$ac_objext'
5950 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5953 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5954 (exit $ac_status); }; }; then
5957 cat >conftest.
$ac_ext <<_ACEOF
5960 cat confdefs.h
>>conftest.
$ac_ext
5961 cat >>conftest.
$ac_ext <<_ACEOF
5962 /* end confdefs.h. */
5964 /* BSD/OS 4.0.1 has a bug: <stddef.h>, <stdio.h> and <time.h> must be
5965 included before <wchar.h>. */
5978 static int test_array [1 - 2 * !((sizeof ($gltype) * CHAR_BIT) >= $ac_mid)];
5985 rm -f conftest.
$ac_objext
5986 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
5987 (eval $ac_compile) 2>conftest.er1
5989 grep -v '^ *+' conftest.er1
>conftest.err
5991 cat conftest.err
>&5
5992 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5993 (exit $ac_status); } &&
5994 { ac_try
='test -z "$ac_c_werror_flag"
5995 || test ! -s conftest.err'
5996 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5999 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6000 (exit $ac_status); }; } &&
6001 { ac_try
='test -s conftest.$ac_objext'
6002 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6005 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6006 (exit $ac_status); }; }; then
6007 ac_lo
=$ac_mid; break
6009 echo "$as_me: failed program was:" >&5
6010 sed 's/^/| /' conftest.
$ac_ext >&5
6012 ac_hi
=`expr '(' $ac_mid ')' - 1`
6013 if test $ac_mid -le $ac_hi; then
6017 ac_mid
=`expr 2 '*' $ac_mid`
6019 rm -f conftest.err conftest.
$ac_objext conftest.
$ac_ext
6022 echo "$as_me: failed program was:" >&5
6023 sed 's/^/| /' conftest.
$ac_ext >&5
6027 rm -f conftest.err conftest.
$ac_objext conftest.
$ac_ext
6029 rm -f conftest.err conftest.
$ac_objext conftest.
$ac_ext
6030 # Binary search between lo and hi bounds.
6031 while test "x$ac_lo" != "x$ac_hi"; do
6032 ac_mid
=`expr '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo`
6033 cat >conftest.
$ac_ext <<_ACEOF
6036 cat confdefs.h
>>conftest.
$ac_ext
6037 cat >>conftest.
$ac_ext <<_ACEOF
6038 /* end confdefs.h. */
6040 /* BSD/OS 4.0.1 has a bug: <stddef.h>, <stdio.h> and <time.h> must be
6041 included before <wchar.h>. */
6054 static int test_array [1 - 2 * !((sizeof ($gltype) * CHAR_BIT) <= $ac_mid)];
6061 rm -f conftest.
$ac_objext
6062 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
6063 (eval $ac_compile) 2>conftest.er1
6065 grep -v '^ *+' conftest.er1
>conftest.err
6067 cat conftest.err
>&5
6068 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6069 (exit $ac_status); } &&
6070 { ac_try
='test -z "$ac_c_werror_flag"
6071 || test ! -s conftest.err'
6072 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6075 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6076 (exit $ac_status); }; } &&
6077 { ac_try
='test -s conftest.$ac_objext'
6078 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6081 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6082 (exit $ac_status); }; }; then
6085 echo "$as_me: failed program was:" >&5
6086 sed 's/^/| /' conftest.
$ac_ext >&5
6088 ac_lo
=`expr '(' $ac_mid ')' + 1`
6090 rm -f conftest.err conftest.
$ac_objext conftest.
$ac_ext
6094 '') result
=unknown
;;
6097 if test "$cross_compiling" = yes; then
6098 { { echo "$as_me:$LINENO: error: in \`$ac_pwd':" >&5
6099 echo "$as_me: error: in \`$ac_pwd':" >&2;}
6100 { { echo "$as_me:$LINENO: error: cannot run test program while cross compiling
6101 See \`config.log' for more details." >&5
6102 echo "$as_me: error: cannot run test program while cross compiling
6103 See \`config.log' for more details." >&2;}
6104 { (exit 1); exit 1; }; }; }
6106 cat >conftest.
$ac_ext <<_ACEOF
6109 cat confdefs.h
>>conftest.
$ac_ext
6110 cat >>conftest.
$ac_ext <<_ACEOF
6111 /* end confdefs.h. */
6113 /* BSD/OS 4.0.1 has a bug: <stddef.h>, <stdio.h> and <time.h> must be
6114 included before <wchar.h>. */
6124 long longval () { return sizeof ($gltype) * CHAR_BIT; }
6125 unsigned long ulongval () { return sizeof ($gltype) * CHAR_BIT; }
6132 FILE *f = fopen ("conftest.val", "w");
6135 if ((sizeof ($gltype) * CHAR_BIT) < 0)
6137 long i = longval ();
6138 if (i != (sizeof ($gltype) * CHAR_BIT))
6140 fprintf (f, "%ld\n", i);
6144 unsigned long i = ulongval ();
6145 if (i != (sizeof ($gltype) * CHAR_BIT))
6147 fprintf (f, "%lu\n", i);
6149 exit (ferror (f) || fclose (f) != 0);
6155 rm -f conftest
$ac_exeext
6156 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
6157 (eval $ac_link) 2>&5
6159 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6160 (exit $ac_status); } && { ac_try
='./conftest$ac_exeext'
6161 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6164 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6165 (exit $ac_status); }; }; then
6166 result
=`cat conftest.val`
6168 echo "$as_me: program exited with status $ac_status" >&5
6169 echo "$as_me: failed program was:" >&5
6170 sed 's/^/| /' conftest.
$ac_ext >&5
6175 rm -f core
*.core gmon.out bb.out conftest
$ac_exeext conftest.
$ac_objext conftest.
$ac_ext
6179 eval gl_cv_bitsizeof_
${gltype}=\
$result
6182 echo "$as_me:$LINENO: result: `eval echo '${'gl_cv_bitsizeof_${gltype}'}'`" >&5
6183 echo "${ECHO_T}`eval echo '${'gl_cv_bitsizeof_${gltype}'}'`" >&6
6184 eval result
=\
$gl_cv_bitsizeof_${gltype}
6185 if test $result = unknown
; then
6188 GLTYPE
=`echo "$gltype" | tr 'abcdefghijklmnopqrstuvwxyz ' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ_'`
6189 cat >>confdefs.h
<<_ACEOF
6190 #define BITSIZEOF_${GLTYPE} $result
6193 eval BITSIZEOF_
${GLTYPE}=\
$result
6202 for gltype
in sig_atomic_t wchar_t wint_t
; do
6203 echo "$as_me:$LINENO: checking whether $gltype is signed" >&5
6204 echo $ECHO_N "checking whether $gltype is signed... $ECHO_C" >&6
6205 if eval "test \"\${gl_cv_type_${gltype}_signed+set}\" = set"; then
6206 echo $ECHO_N "(cached) $ECHO_C" >&6
6208 cat >conftest.
$ac_ext <<_ACEOF
6211 cat confdefs.h
>>conftest.
$ac_ext
6212 cat >>conftest.
$ac_ext <<_ACEOF
6213 /* end confdefs.h. */
6215 /* BSD/OS 4.0.1 has a bug: <stddef.h>, <stdio.h> and <time.h> must be
6216 included before <wchar.h>. */
6225 int verify[2 * (($gltype) -1 < ($gltype) 0) - 1];
6234 rm -f conftest.
$ac_objext
6235 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
6236 (eval $ac_compile) 2>conftest.er1
6238 grep -v '^ *+' conftest.er1
>conftest.err
6240 cat conftest.err
>&5
6241 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6242 (exit $ac_status); } &&
6243 { ac_try
='test -z "$ac_c_werror_flag"
6244 || test ! -s conftest.err'
6245 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6248 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6249 (exit $ac_status); }; } &&
6250 { ac_try
='test -s conftest.$ac_objext'
6251 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6254 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6255 (exit $ac_status); }; }; then
6258 echo "$as_me: failed program was:" >&5
6259 sed 's/^/| /' conftest.
$ac_ext >&5
6263 rm -f conftest.err conftest.
$ac_objext conftest.
$ac_ext
6264 eval gl_cv_type_
${gltype}_signed
=\
$result
6267 echo "$as_me:$LINENO: result: `eval echo '${'gl_cv_type_${gltype}_signed'}'`" >&5
6268 echo "${ECHO_T}`eval echo '${'gl_cv_type_${gltype}_signed'}'`" >&6
6269 eval result
=\
$gl_cv_type_${gltype}_signed
6270 GLTYPE
=`echo $gltype | tr 'abcdefghijklmnopqrstuvwxyz ' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ_'`
6271 if test "$result" = yes; then
6272 cat >>confdefs.h
<<_ACEOF
6273 #define HAVE_SIGNED_${GLTYPE} 1
6276 eval HAVE_SIGNED_
${GLTYPE}=1
6278 eval HAVE_SIGNED_
${GLTYPE}=0
6283 gl_cv_type_ptrdiff_t_signed
=yes
6284 gl_cv_type_size_t_signed
=no
6292 for gltype
in ptrdiff_t sig_atomic_t size_t wchar_t wint_t
; do
6293 echo "$as_me:$LINENO: checking for $gltype integer literal suffix" >&5
6294 echo $ECHO_N "checking for $gltype integer literal suffix... $ECHO_C" >&6
6295 if eval "test \"\${gl_cv_type_${gltype}_suffix+set}\" = set"; then
6296 echo $ECHO_N "(cached) $ECHO_C" >&6
6298 eval gl_cv_type_
${gltype}_suffix
=no
6299 eval result
=\
$gl_cv_type_${gltype}_signed
6300 if test "$result" = yes; then
6305 for glsuf
in "$glsufu" ${glsufu}l ${glsufu}ll ${glsufu}i64
; do
6308 l
) gltype1
='long int';;
6309 ll
) gltype1
='long long int';;
6310 i64
) gltype1
='__int64';;
6311 u
) gltype1
='unsigned int';;
6312 ul
) gltype1
='unsigned long int';;
6313 ull
) gltype1
='unsigned long long int';;
6314 ui64
)gltype1
='unsigned __int64';;
6316 cat >conftest.
$ac_ext <<_ACEOF
6319 cat confdefs.h
>>conftest.
$ac_ext
6320 cat >>conftest.
$ac_ext <<_ACEOF
6321 /* end confdefs.h. */
6323 /* BSD/OS 4.0.1 has a bug: <stddef.h>, <stdio.h> and <time.h> must be
6324 included before <wchar.h>. */
6334 extern $gltype1 foo;
6343 rm -f conftest.
$ac_objext
6344 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
6345 (eval $ac_compile) 2>conftest.er1
6347 grep -v '^ *+' conftest.er1
>conftest.err
6349 cat conftest.err
>&5
6350 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6351 (exit $ac_status); } &&
6352 { ac_try
='test -z "$ac_c_werror_flag"
6353 || test ! -s conftest.err'
6354 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6357 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6358 (exit $ac_status); }; } &&
6359 { ac_try
='test -s conftest.$ac_objext'
6360 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6363 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6364 (exit $ac_status); }; }; then
6365 eval gl_cv_type_
${gltype}_suffix
=\
$glsuf
6367 echo "$as_me: failed program was:" >&5
6368 sed 's/^/| /' conftest.
$ac_ext >&5
6371 rm -f conftest.err conftest.
$ac_objext conftest.
$ac_ext
6372 eval result
=\
$gl_cv_type_${gltype}_suffix
6373 test "$result" != no
&& break
6376 echo "$as_me:$LINENO: result: `eval echo '${'gl_cv_type_${gltype}_suffix'}'`" >&5
6377 echo "${ECHO_T}`eval echo '${'gl_cv_type_${gltype}_suffix'}'`" >&6
6378 GLTYPE
=`echo $gltype | tr 'abcdefghijklmnopqrstuvwxyz ' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ_'`
6379 eval result
=\
$gl_cv_type_${gltype}_suffix
6380 test "$result" = no
&& result
=
6381 eval ${GLTYPE}_SUFFIX
=\
$result
6382 cat >>confdefs.h
<<_ACEOF
6383 #define ${GLTYPE}_SUFFIX $result
6399 echo "$as_me:$LINENO: checking whether <wchar.h> is standalone" >&5
6400 echo $ECHO_N "checking whether <wchar.h> is standalone... $ECHO_C" >&6
6401 if test "${gl_cv_header_wchar_h_standalone+set}" = set; then
6402 echo $ECHO_N "(cached) $ECHO_C" >&6
6404 cat >conftest.
$ac_ext <<_ACEOF
6408 rm -f conftest.
$ac_objext
6409 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
6410 (eval $ac_compile) 2>conftest.er1
6412 grep -v '^ *+' conftest.er1
>conftest.err
6414 cat conftest.err
>&5
6415 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6416 (exit $ac_status); } &&
6417 { ac_try
='test -z "$ac_c_werror_flag"
6418 || test ! -s conftest.err'
6419 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6422 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6423 (exit $ac_status); }; } &&
6424 { ac_try
='test -s conftest.$ac_objext'
6425 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6428 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6429 (exit $ac_status); }; }; then
6430 gl_cv_header_wchar_h_standalone
=yes
6432 echo "$as_me: failed program was:" >&5
6433 sed 's/^/| /' conftest.
$ac_ext >&5
6435 gl_cv_header_wchar_h_standalone
=no
6437 rm -f conftest.err conftest.
$ac_objext conftest.
$ac_ext
6439 echo "$as_me:$LINENO: result: $gl_cv_header_wchar_h_standalone" >&5
6440 echo "${ECHO_T}$gl_cv_header_wchar_h_standalone" >&6
6441 if test $gl_cv_header_wchar_h_standalone != yes; then
6452 if test $ac_cv_header_wchar_h = yes; then
6469 if test $gl_cv_have_include_next = yes; then
6470 gl_cv_next_wchar_h
='<'wchar.h
'>'
6472 echo "$as_me:$LINENO: checking absolute name of <wchar.h>" >&5
6473 echo $ECHO_N "checking absolute name of <wchar.h>... $ECHO_C" >&6
6474 if test "${gl_cv_next_wchar_h+set}" = set; then
6475 echo $ECHO_N "(cached) $ECHO_C" >&6
6478 if test $ac_cv_header_wchar_h = yes; then
6479 cat >conftest.
$ac_ext <<_ACEOF
6482 cat confdefs.h
>>conftest.
$ac_ext
6483 cat >>conftest.
$ac_ext <<_ACEOF
6484 /* end confdefs.h. */
6488 gl_cv_next_wchar_h
='"'`(eval "$ac_cpp conftest.$ac_ext") 2>&5 |
6489 sed -n '\#/wchar.h#{
6490 s#.*"\(.*/wchar.h\)".*#\1#
6496 gl_cv_next_wchar_h
='<'wchar.h
'>'
6500 echo "$as_me:$LINENO: result: $gl_cv_next_wchar_h" >&5
6501 echo "${ECHO_T}$gl_cv_next_wchar_h" >&6
6503 NEXT_WCHAR_H
=$gl_cv_next_wchar_h
6517 gl_source_base
='tests'
6522 LIBGNU_LIBDEPS
="$gl_libdeps"
6524 LIBGNU_LTLIBDEPS
="$gl_ltlibdeps"
6528 # For Makefile dependencies.
6530 if test x
"$STDINT_H" != x
; then
6531 GNULIB_STDINT_H
=gnulib
/$STDINT_H
6537 cat >>confdefs.h
<<_ACEOF
6538 #define PACKAGE "$PACKAGE"
6543 # GDB does not use automake, but gnulib does. This line lets us
6544 # generate its Makefile.in.
6545 am__api_version
="1.9"
6546 # Find a good install program. We prefer a C program (faster),
6547 # so one script is as good as another. But avoid the broken or
6548 # incompatible versions:
6549 # SysV /etc/install, /usr/sbin/install
6550 # SunOS /usr/etc/install
6551 # IRIX /sbin/install
6553 # AmigaOS /C/install, which installs bootblocks on floppy discs
6554 # AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag
6555 # AFS /usr/afsws/bin/install, which mishandles nonexistent args
6556 # SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff"
6557 # OS/2's system install, which has a completely different semantic
6558 # ./install, which can be erroneously created by make from ./install.sh.
6559 # Reject install programs that cannot install multiple files.
6560 echo "$as_me:$LINENO: checking for a BSD-compatible install" >&5
6561 echo $ECHO_N "checking for a BSD-compatible install... $ECHO_C" >&6
6562 if test -z "$INSTALL"; then
6563 if test "${ac_cv_path_install+set}" = set; then
6564 echo $ECHO_N "(cached) $ECHO_C" >&6
6566 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
6570 test -z "$as_dir" && as_dir
=.
6571 # Account for people who put trailing slashes in PATH elements.
6573 .
/ | .
// |
/cC
/* | \
6574 /etc
/* |
/usr
/sbin
/* |
/usr
/etc
/* |
/sbin
/* |
/usr
/afsws
/bin
/* | \
6575 ?
:\\/os2
\\/install\\/* | ?
:\\/OS2
\\/INSTALL
\\/* | \
6578 # OSF1 and SCO ODT 3.0 have their own names for install.
6579 # Don't use installbsd from OSF since it installs stuff as root
6581 for ac_prog
in ginstall scoinst
install; do
6582 for ac_exec_ext
in '' $ac_executable_extensions; do
6583 if $as_executable_p "$as_dir/$ac_prog$ac_exec_ext"; then
6584 if test $ac_prog = install &&
6585 grep dspmsg
"$as_dir/$ac_prog$ac_exec_ext" >/dev
/null
2>&1; then
6586 # AIX install. It has an incompatible calling convention.
6588 elif test $ac_prog = install &&
6589 grep pwplus
"$as_dir/$ac_prog$ac_exec_ext" >/dev
/null
2>&1; then
6590 # program-specific install script used by HP pwplus--don't use.
6593 rm -rf conftest.one conftest.two conftest.dir
6594 echo one
> conftest.one
6595 echo two
> conftest.two
6597 if "$as_dir/$ac_prog$ac_exec_ext" -c conftest.one conftest.two
"`pwd`/conftest.dir" &&
6598 test -s conftest.one
&& test -s conftest.two
&&
6599 test -s conftest.dir
/conftest.one
&&
6600 test -s conftest.dir
/conftest.two
6602 ac_cv_path_install
="$as_dir/$ac_prog$ac_exec_ext -c"
6613 rm -rf conftest.one conftest.two conftest.dir
6616 if test "${ac_cv_path_install+set}" = set; then
6617 INSTALL
=$ac_cv_path_install
6619 # As a last resort, use the slow shell script. Don't cache a
6620 # value for INSTALL within a source directory, because that will
6621 # break other packages using the cache if that directory is
6622 # removed, or if the value is a relative name.
6623 INSTALL
=$ac_install_sh
6626 echo "$as_me:$LINENO: result: $INSTALL" >&5
6627 echo "${ECHO_T}$INSTALL" >&6
6629 # Use test -z because SunOS4 sh mishandles braces in ${var-val}.
6630 # It thinks the first close brace ends the variable substitution.
6631 test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM
='${INSTALL}'
6633 test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT
='${INSTALL}'
6635 test -z "$INSTALL_DATA" && INSTALL_DATA
='${INSTALL} -m 644'
6637 echo "$as_me:$LINENO: checking whether build environment is sane" >&5
6638 echo $ECHO_N "checking whether build environment is sane... $ECHO_C" >&6
6641 echo timestamp
> conftest.
file
6642 # Do `set' in a subshell so we don't clobber the current shell's
6643 # arguments. Must try -L first in case configure is actually a
6644 # symlink; some systems play weird games with the mod time of symlinks
6645 # (eg FreeBSD returns the mod time of the symlink's containing
6648 set X
`ls -Lt $srcdir/configure conftest.file 2> /dev/null`
6649 if test "$*" = "X"; then
6651 set X
`ls -t $srcdir/configure conftest.file`
6654 if test "$*" != "X $srcdir/configure conftest.file" \
6655 && test "$*" != "X conftest.file $srcdir/configure"; then
6657 # If neither matched, then we have a broken ls. This can happen
6658 # if, for instance, CONFIG_SHELL is bash and it inherits a
6659 # broken ls alias from the environment. This has actually
6660 # happened. Such a system could not be considered "sane".
6661 { { echo "$as_me:$LINENO: error: ls -t appears to fail. Make sure there is not a broken
6662 alias in your environment" >&5
6663 echo "$as_me: error: ls -t appears to fail. Make sure there is not a broken
6664 alias in your environment" >&2;}
6665 { (exit 1); exit 1; }; }
6668 test "$2" = conftest.
file
6674 { { echo "$as_me:$LINENO: error: newly created file is older than distributed files!
6675 Check your system clock" >&5
6676 echo "$as_me: error: newly created file is older than distributed files!
6677 Check your system clock" >&2;}
6678 { (exit 1); exit 1; }; }
6680 echo "$as_me:$LINENO: result: yes" >&5
6681 echo "${ECHO_T}yes" >&6
6682 test "$program_prefix" != NONE
&&
6683 program_transform_name
="s,^,$program_prefix,;$program_transform_name"
6684 # Use a double $ so make ignores it.
6685 test "$program_suffix" != NONE
&&
6686 program_transform_name
="s,\$,$program_suffix,;$program_transform_name"
6687 # Double any \ or $. echo might interpret backslashes.
6688 # By default was `s,x,x', remove it if useless.
6689 cat <<\_ACEOF
>conftest.
sed
6690 s
/[\\$
]/&&/g
;s
/;s
,x
,x
,$
//
6692 program_transform_name
=`echo $program_transform_name | sed -f conftest.sed`
6695 # expand $ac_aux_dir to an absolute path
6696 am_aux_dir
=`cd $ac_aux_dir && pwd`
6698 test x
"${MISSING+set}" = xset || MISSING
="\${SHELL} $am_aux_dir/missing"
6699 # Use eval to expand $SHELL
6700 if eval "$MISSING --run true"; then
6701 am_missing_run
="$MISSING --run "
6704 { echo "$as_me:$LINENO: WARNING: \`missing' script is too old or missing" >&5
6705 echo "$as_me: WARNING: \`missing' script is too old or missing" >&2;}
6708 if mkdir
-p --version .
>/dev
/null
2>&1 && test ! -d .
/--version; then
6709 # We used to keeping the `.' as first argument, in order to
6710 # allow $(mkdir_p) to be used without argument. As in
6711 # $(mkdir_p) $(somedir)
6712 # where $(somedir) is conditionally defined. However this is wrong
6714 # 1. if the package is installed by a user who cannot write `.'
6715 # make install will fail,
6716 # 2. the above comment should most certainly read
6717 # $(mkdir_p) $(DESTDIR)$(somedir)
6718 # so it does not work when $(somedir) is undefined and
6719 # $(DESTDIR) is not.
6720 # To support the latter case, we have to write
6721 # test -z "$(somedir)" || $(mkdir_p) $(DESTDIR)$(somedir),
6722 # so the `.' trick is pointless.
6723 mkdir_p
='mkdir -p --'
6725 # On NextStep and OpenStep, the `mkdir' command does not
6726 # recognize any option. It will interpret all options as
6727 # directories to create, and then abort because `.' already
6729 for d
in .
/-p .
/--version;
6731 test -d $d && rmdir $d
6733 # $(mkinstalldirs) is defined by Automake if mkinstalldirs exists.
6734 if test -f "$ac_aux_dir/mkinstalldirs"; then
6735 mkdir_p
='$(mkinstalldirs)'
6737 mkdir_p
='$(install_sh) -d'
6741 for ac_prog
in gawk mawk nawk
awk
6743 # Extract the first word of "$ac_prog", so it can be a program name with args.
6744 set dummy
$ac_prog; ac_word
=$2
6745 echo "$as_me:$LINENO: checking for $ac_word" >&5
6746 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
6747 if test "${ac_cv_prog_AWK+set}" = set; then
6748 echo $ECHO_N "(cached) $ECHO_C" >&6
6750 if test -n "$AWK"; then
6751 ac_cv_prog_AWK
="$AWK" # Let the user override the test.
6753 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
6757 test -z "$as_dir" && as_dir
=.
6758 for ac_exec_ext
in '' $ac_executable_extensions; do
6759 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
6760 ac_cv_prog_AWK
="$ac_prog"
6761 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6770 if test -n "$AWK"; then
6771 echo "$as_me:$LINENO: result: $AWK" >&5
6772 echo "${ECHO_T}$AWK" >&6
6774 echo "$as_me:$LINENO: result: no" >&5
6775 echo "${ECHO_T}no" >&6
6778 test -n "$AWK" && break
6781 ac_config_commands
="$ac_config_commands depfiles"
6784 am_make
=${MAKE-make}
6785 cat > confinc
<< 'END'
6790 # If we don't find an include directive, just comment out the code.
6791 echo "$as_me:$LINENO: checking for style of include used by $am_make" >&5
6792 echo $ECHO_N "checking for style of include used by $am_make... $ECHO_C" >&6
6796 # First try GNU make style include.
6797 echo "include confinc" > confmf
6798 # We grep out `Entering directory' and `Leaving directory'
6799 # messages which can occur if `w' ends up in MAKEFLAGS.
6800 # In particular we don't look at `^make:' because GNU make might
6801 # be invoked under some other name (usually "gmake"), in which
6802 # case it prints its new name instead of `make'.
6803 if test "`$am_make -s -f confmf 2> /dev/null | grep -v 'ing directory'`" = "done"; then
6808 # Now try BSD make style include.
6809 if test "$am__include" = "#"; then
6810 echo '.include "confinc"' > confmf
6811 if test "`$am_make -s -f confmf 2> /dev/null`" = "done"; then
6812 am__include
=.include
6819 echo "$as_me:$LINENO: result: $_am_result" >&5
6820 echo "${ECHO_T}$_am_result" >&6
6821 rm -f confinc confmf
6823 # Check whether --enable-dependency-tracking or --disable-dependency-tracking was given.
6824 if test "${enable_dependency_tracking+set}" = set; then
6825 enableval
="$enable_dependency_tracking"
6828 if test "x$enable_dependency_tracking" != xno
; then
6829 am_depcomp
="$ac_aux_dir/depcomp"
6834 if test "x$enable_dependency_tracking" != xno; then
6844 # test to see if srcdir already configured
6845 if test "`cd $srcdir && pwd`" != "`pwd`" &&
6846 test -f $srcdir/config.status
; then
6847 { { echo "$as_me:$LINENO: error: source directory already configured; run \"make distclean\" there first" >&5
6848 echo "$as_me: error: source directory already configured; run \"make distclean\" there first" >&2;}
6849 { (exit 1); exit 1; }; }
6852 # test whether we have cygpath
6853 if test -z "$CYGPATH_W"; then
6854 if (cygpath
--version) >/dev
/null
2>/dev
/null
; then
6855 CYGPATH_W
='cygpath -w'
6862 # Define the identity of the package.
6864 VERSION
=UNUSED-VERSION
6867 # Some tools Automake needs.
6869 ACLOCAL
=${ACLOCAL-"${am_missing_run}aclocal-${am__api_version}"}
6872 AUTOCONF
=${AUTOCONF-"${am_missing_run}autoconf"}
6875 AUTOMAKE
=${AUTOMAKE-"${am_missing_run}automake-${am__api_version}"}
6878 AUTOHEADER
=${AUTOHEADER-"${am_missing_run}autoheader"}
6881 MAKEINFO
=${MAKEINFO-"${am_missing_run}makeinfo"}
6883 install_sh
=${install_sh-"$am_aux_dir/install-sh"}
6885 # Installed binaries are usually stripped using `strip' when the user
6886 # run `make install-strip'. However `strip' might not be the right
6887 # tool to use in cross-compilation environments, therefore Automake
6888 # will honor the `STRIP' environment variable to overrule this program.
6889 if test "$cross_compiling" != no
; then
6890 if test -n "$ac_tool_prefix"; then
6891 # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args.
6892 set dummy
${ac_tool_prefix}strip
; ac_word
=$2
6893 echo "$as_me:$LINENO: checking for $ac_word" >&5
6894 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
6895 if test "${ac_cv_prog_STRIP+set}" = set; then
6896 echo $ECHO_N "(cached) $ECHO_C" >&6
6898 if test -n "$STRIP"; then
6899 ac_cv_prog_STRIP
="$STRIP" # Let the user override the test.
6901 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
6905 test -z "$as_dir" && as_dir
=.
6906 for ac_exec_ext
in '' $ac_executable_extensions; do
6907 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
6908 ac_cv_prog_STRIP
="${ac_tool_prefix}strip"
6909 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6917 STRIP
=$ac_cv_prog_STRIP
6918 if test -n "$STRIP"; then
6919 echo "$as_me:$LINENO: result: $STRIP" >&5
6920 echo "${ECHO_T}$STRIP" >&6
6922 echo "$as_me:$LINENO: result: no" >&5
6923 echo "${ECHO_T}no" >&6
6927 if test -z "$ac_cv_prog_STRIP"; then
6929 # Extract the first word of "strip", so it can be a program name with args.
6930 set dummy strip
; ac_word
=$2
6931 echo "$as_me:$LINENO: checking for $ac_word" >&5
6932 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
6933 if test "${ac_cv_prog_ac_ct_STRIP+set}" = set; then
6934 echo $ECHO_N "(cached) $ECHO_C" >&6
6936 if test -n "$ac_ct_STRIP"; then
6937 ac_cv_prog_ac_ct_STRIP
="$ac_ct_STRIP" # Let the user override the test.
6939 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
6943 test -z "$as_dir" && as_dir
=.
6944 for ac_exec_ext
in '' $ac_executable_extensions; do
6945 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
6946 ac_cv_prog_ac_ct_STRIP
="strip"
6947 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6953 test -z "$ac_cv_prog_ac_ct_STRIP" && ac_cv_prog_ac_ct_STRIP
=":"
6956 ac_ct_STRIP
=$ac_cv_prog_ac_ct_STRIP
6957 if test -n "$ac_ct_STRIP"; then
6958 echo "$as_me:$LINENO: result: $ac_ct_STRIP" >&5
6959 echo "${ECHO_T}$ac_ct_STRIP" >&6
6961 echo "$as_me:$LINENO: result: no" >&5
6962 echo "${ECHO_T}no" >&6
6967 STRIP
="$ac_cv_prog_STRIP"
6971 INSTALL_STRIP_PROGRAM
="\${SHELL} \$(install_sh) -c -s"
6973 # We need awk for the "check" target. The system "awk" is bad on
6975 # Always define AMTAR for backward compatibility.
6977 AMTAR
=${AMTAR-"${am_missing_run}tar"}
6979 am__tar
='${AMTAR} chof - "$$tardir"'; am__untar
='${AMTAR} xf -'
6984 depcc
="$CC" am_compiler_list
=
6986 echo "$as_me:$LINENO: checking dependency style of $depcc" >&5
6987 echo $ECHO_N "checking dependency style of $depcc... $ECHO_C" >&6
6988 if test "${am_cv_CC_dependencies_compiler_type+set}" = set; then
6989 echo $ECHO_N "(cached) $ECHO_C" >&6
6991 if test -z "$AMDEP_TRUE" && test -f "$am_depcomp"; then
6992 # We make a subdir and do the tests there. Otherwise we can end up
6993 # making bogus files that we don't know about and never remove. For
6994 # instance it was reported that on HP-UX the gcc test will end up
6995 # making a dummy file named `D' -- because `-MD' means `put the output
6998 # Copy depcomp to subdir because otherwise we won't find it if we're
6999 # using a relative directory.
7000 cp "$am_depcomp" conftest.dir
7002 # We will build objects and dependencies in a subdirectory because
7003 # it helps to detect inapplicable dependency modes. For instance
7004 # both Tru64's cc and ICC support -MD to output dependencies as a
7005 # side effect of compilation, but ICC will put the dependencies in
7006 # the current directory while Tru64 will put them in the object
7010 am_cv_CC_dependencies_compiler_type
=none
7011 if test "$am_compiler_list" = ""; then
7012 am_compiler_list
=`sed -n 's/^#*\([a-zA-Z0-9]*\))$/\1/p' < ./depcomp`
7014 for depmode
in $am_compiler_list; do
7015 # Setup a source with many dependencies, because some compilers
7016 # like to wrap large dependency lists on column 80 (with \), and
7017 # we should not choose a depcomp mode which is confused by this.
7019 # We need to recreate these files for each test, as the compiler may
7020 # overwrite some of them when testing with obscure command lines.
7021 # This happens at least with the AIX C compiler.
7023 for i
in 1 2 3 4 5 6; do
7024 echo '#include "conftst'$i'.h"' >> sub
/conftest.c
7025 # Using `: > sub/conftst$i.h' creates only sub/conftst1.h with
7026 # Solaris 8's {/usr,}/bin/sh.
7027 touch sub
/conftst
$i.h
7029 echo "${am__include} ${am__quote}sub/conftest.Po${am__quote}" > confmf
7033 # after this tag, mechanisms are not by side-effect, so they'll
7034 # only be used when explicitly requested
7035 if test "x$enable_dependency_tracking" = xyes
; then
7043 # We check with `-c' and `-o' for the sake of the "dashmstdout"
7044 # mode. It turns out that the SunPro C++ compiler does not properly
7045 # handle `-M -o', and we need to detect this.
7046 if depmode
=$depmode \
7047 source=sub
/conftest.c object
=sub
/conftest.
${OBJEXT-o} \
7048 depfile
=sub
/conftest.Po tmpdepfile
=sub
/conftest.TPo \
7049 $SHELL .
/depcomp
$depcc -c -o sub
/conftest.
${OBJEXT-o} sub
/conftest.c \
7050 >/dev
/null
2>conftest.err
&&
7051 grep sub
/conftst6.h sub
/conftest.Po
> /dev
/null
2>&1 &&
7052 grep sub
/conftest.
${OBJEXT-o} sub
/conftest.Po
> /dev
/null
2>&1 &&
7053 ${MAKE-make} -s -f confmf
> /dev
/null
2>&1; then
7054 # icc doesn't choke on unknown options, it will just issue warnings
7055 # or remarks (even with -Werror). So we grep stderr for any message
7056 # that says an option was ignored or not supported.
7057 # When given -MP, icc 7.0 and 7.1 complain thusly:
7058 # icc: Command line warning: ignoring option '-M'; no argument required
7059 # The diagnosis changed in icc 8.0:
7060 # icc: Command line remark: option '-MP' not supported
7061 if (grep 'ignoring option' conftest.err ||
7062 grep 'not supported' conftest.err
) >/dev
/null
2>&1; then :; else
7063 am_cv_CC_dependencies_compiler_type
=$depmode
7072 am_cv_CC_dependencies_compiler_type
=none
7076 echo "$as_me:$LINENO: result: $am_cv_CC_dependencies_compiler_type" >&5
7077 echo "${ECHO_T}$am_cv_CC_dependencies_compiler_type" >&6
7078 CCDEPMODE
=depmode
=$am_cv_CC_dependencies_compiler_type
7083 test "x$enable_dependency_tracking" != xno \
7084 && test "$am_cv_CC_dependencies_compiler_type" = gcc3
; then
7086 am__fastdepCC_FALSE
='#'
7088 am__fastdepCC_TRUE
='#'
7089 am__fastdepCC_FALSE
=
7095 debugdir
=${libdir}/debug
7098 # Check whether --with-separate-debug-dir or --without-separate-debug-dir was given.
7099 if test "${with_separate_debug_dir+set}" = set; then
7100 withval
="$with_separate_debug_dir"
7101 debugdir
="${withval}"
7105 test "x$prefix" = xNONE
&& prefix
="$ac_default_prefix"
7106 test "x$exec_prefix" = xNONE
&& exec_prefix
='${prefix}'
7107 ac_define_dir
=`eval echo $debugdir`
7108 ac_define_dir
=`eval echo $ac_define_dir`
7110 cat >>confdefs.h
<<_ACEOF
7111 #define DEBUGDIR "$ac_define_dir"
7115 #AC_DEFINE_UNQUOTED(DEBUGDIR, "$debugdir"),
7117 if test "x$exec_prefix" = xNONE ||
test "x$exec_prefix" = 'x${prefix}'; then
7118 if test "x$prefix" = xNONE
; then
7119 test_prefix
=/usr
/local
7124 test_prefix
=$exec_prefix
7127 "${test_prefix}"|
"${test_prefix}/"*|\
7128 '${exec_prefix}'|
'${exec_prefix}/'*)
7130 cat >>confdefs.h
<<\_ACEOF
7131 #define DEBUGDIR_RELOCATABLE 1
7138 # Check whether --with-relocated-sources or --without-relocated-sources was given.
7139 if test "${with_relocated_sources+set}" = set; then
7140 withval
="$with_relocated_sources"
7141 reloc_srcdir
="${withval}"
7143 test "x$prefix" = xNONE
&& prefix
="$ac_default_prefix"
7144 test "x$exec_prefix" = xNONE
&& exec_prefix
='${prefix}'
7145 ac_define_dir
=`eval echo $reloc_srcdir`
7146 ac_define_dir
=`eval echo $ac_define_dir`
7148 cat >>confdefs.h
<<_ACEOF
7149 #define RELOC_SRCDIR "$ac_define_dir"
7158 subdirs
="$subdirs doc testsuite"
7161 # Check whether to support alternative target configurations
7162 # Check whether --enable-targets or --disable-targets was given.
7163 if test "${enable_targets+set}" = set; then
7164 enableval
="$enable_targets"
7165 case "${enableval}" in
7166 yes |
"") { { echo "$as_me:$LINENO: error: enable-targets option must specify target names or 'all'" >&5
7167 echo "$as_me: error: enable-targets option must specify target names or 'all'" >&2;}
7168 { (exit 1); exit 1; }; }
7170 no
) enable_targets
= ;;
7171 *) enable_targets
=$enableval ;;
7175 # Check whether to enable 64-bit support on 32-bit hosts
7176 # Check whether --enable-64-bit-bfd or --disable-64-bit-bfd was given.
7177 if test "${enable_64_bit_bfd+set}" = set; then
7178 enableval
="$enable_64_bit_bfd"
7179 case "${enableval}" in
7182 *) { { echo "$as_me:$LINENO: error: bad value ${enableval} for 64-bit-bfd option" >&5
7183 echo "$as_me: error: bad value ${enableval} for 64-bit-bfd option" >&2;}
7184 { (exit 1); exit 1; }; } ;;
7189 # Provide defaults for some variables set by the per-host and per-target
7191 gdb_host_obs
=posix-hdep.o
7193 if test "${target}" = "${host}"; then
7199 .
$srcdir/configure.
host
7201 # Accumulate some settings from configure.tgt over all enabled targets
7206 for targ_alias
in `echo $target_alias $enable_targets | sed 's/,/ /g'`
7208 if test "$targ_alias" = "all"; then
7211 # Canonicalize the secondary target names.
7212 result
=`$ac_config_sub $targ_alias 2>/dev/null`
7213 if test -n "$result"; then
7219 .
${srcdir}/configure.tgt
7221 # Target-specific object files
7222 for i
in ${gdb_target_obs}; do
7223 case " $TARGET_OBS " in
7226 TARGET_OBS
="$TARGET_OBS ${i}"
7231 # Check whether this target needs 64-bit CORE_ADDR
7232 if test x
${want64} = xfalse
; then
7233 .
${srcdir}/..
/bfd
/config.bfd
7238 if test x
${all_targets} = xtrue
; then
7240 # We want all 64-bit targets if we either:
7241 # - run on a 64-bit host or
7242 # - already require 64-bit support for some other target or
7243 # - the --enable-64-bit-bfd option was supplied
7244 # Otherwise we only support all 32-bit targets.
7246 # NOTE: This test must be in sync with the corresponding
7249 if test x
${want64} = xfalse
; then
7250 echo "$as_me:$LINENO: checking for long" >&5
7251 echo $ECHO_N "checking for long... $ECHO_C" >&6
7252 if test "${ac_cv_type_long+set}" = set; then
7253 echo $ECHO_N "(cached) $ECHO_C" >&6
7255 cat >conftest.
$ac_ext <<_ACEOF
7258 cat confdefs.h
>>conftest.
$ac_ext
7259 cat >>conftest.
$ac_ext <<_ACEOF
7260 /* end confdefs.h. */
7261 $ac_includes_default
7273 rm -f conftest.
$ac_objext
7274 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
7275 (eval $ac_compile) 2>conftest.er1
7277 grep -v '^ *+' conftest.er1
>conftest.err
7279 cat conftest.err
>&5
7280 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7281 (exit $ac_status); } &&
7282 { ac_try
='test -z "$ac_c_werror_flag"
7283 || test ! -s conftest.err'
7284 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7287 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7288 (exit $ac_status); }; } &&
7289 { ac_try
='test -s conftest.$ac_objext'
7290 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7293 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7294 (exit $ac_status); }; }; then
7297 echo "$as_me: failed program was:" >&5
7298 sed 's/^/| /' conftest.
$ac_ext >&5
7302 rm -f conftest.err conftest.
$ac_objext conftest.
$ac_ext
7304 echo "$as_me:$LINENO: result: $ac_cv_type_long" >&5
7305 echo "${ECHO_T}$ac_cv_type_long" >&6
7307 echo "$as_me:$LINENO: checking size of long" >&5
7308 echo $ECHO_N "checking size of long... $ECHO_C" >&6
7309 if test "${ac_cv_sizeof_long+set}" = set; then
7310 echo $ECHO_N "(cached) $ECHO_C" >&6
7312 if test "$ac_cv_type_long" = yes; then
7313 # The cast to unsigned long works around a bug in the HP C Compiler
7314 # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
7315 # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
7316 # This bug is HP SR number 8606223364.
7317 if test "$cross_compiling" = yes; then
7318 # Depending upon the size, compute the lo and hi bounds.
7319 cat >conftest.
$ac_ext <<_ACEOF
7322 cat confdefs.h
>>conftest.
$ac_ext
7323 cat >>conftest.
$ac_ext <<_ACEOF
7324 /* end confdefs.h. */
7325 $ac_includes_default
7329 static int test_array [1 - 2 * !(((long) (sizeof (long))) >= 0)];
7336 rm -f conftest.
$ac_objext
7337 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
7338 (eval $ac_compile) 2>conftest.er1
7340 grep -v '^ *+' conftest.er1
>conftest.err
7342 cat conftest.err
>&5
7343 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7344 (exit $ac_status); } &&
7345 { ac_try
='test -z "$ac_c_werror_flag"
7346 || test ! -s conftest.err'
7347 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7350 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7351 (exit $ac_status); }; } &&
7352 { ac_try
='test -s conftest.$ac_objext'
7353 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7356 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7357 (exit $ac_status); }; }; then
7360 cat >conftest.
$ac_ext <<_ACEOF
7363 cat confdefs.h
>>conftest.
$ac_ext
7364 cat >>conftest.
$ac_ext <<_ACEOF
7365 /* end confdefs.h. */
7366 $ac_includes_default
7370 static int test_array [1 - 2 * !(((long) (sizeof (long))) <= $ac_mid)];
7377 rm -f conftest.
$ac_objext
7378 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
7379 (eval $ac_compile) 2>conftest.er1
7381 grep -v '^ *+' conftest.er1
>conftest.err
7383 cat conftest.err
>&5
7384 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7385 (exit $ac_status); } &&
7386 { ac_try
='test -z "$ac_c_werror_flag"
7387 || test ! -s conftest.err'
7388 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7391 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7392 (exit $ac_status); }; } &&
7393 { ac_try
='test -s conftest.$ac_objext'
7394 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7397 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7398 (exit $ac_status); }; }; then
7399 ac_hi
=$ac_mid; break
7401 echo "$as_me: failed program was:" >&5
7402 sed 's/^/| /' conftest.
$ac_ext >&5
7404 ac_lo
=`expr $ac_mid + 1`
7405 if test $ac_lo -le $ac_mid; then
7409 ac_mid
=`expr 2 '*' $ac_mid + 1`
7411 rm -f conftest.err conftest.
$ac_objext conftest.
$ac_ext
7414 echo "$as_me: failed program was:" >&5
7415 sed 's/^/| /' conftest.
$ac_ext >&5
7417 cat >conftest.
$ac_ext <<_ACEOF
7420 cat confdefs.h
>>conftest.
$ac_ext
7421 cat >>conftest.
$ac_ext <<_ACEOF
7422 /* end confdefs.h. */
7423 $ac_includes_default
7427 static int test_array [1 - 2 * !(((long) (sizeof (long))) < 0)];
7434 rm -f conftest.
$ac_objext
7435 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
7436 (eval $ac_compile) 2>conftest.er1
7438 grep -v '^ *+' conftest.er1
>conftest.err
7440 cat conftest.err
>&5
7441 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7442 (exit $ac_status); } &&
7443 { ac_try
='test -z "$ac_c_werror_flag"
7444 || test ! -s conftest.err'
7445 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7448 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7449 (exit $ac_status); }; } &&
7450 { ac_try
='test -s conftest.$ac_objext'
7451 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7454 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7455 (exit $ac_status); }; }; then
7458 cat >conftest.
$ac_ext <<_ACEOF
7461 cat confdefs.h
>>conftest.
$ac_ext
7462 cat >>conftest.
$ac_ext <<_ACEOF
7463 /* end confdefs.h. */
7464 $ac_includes_default
7468 static int test_array [1 - 2 * !(((long) (sizeof (long))) >= $ac_mid)];
7475 rm -f conftest.
$ac_objext
7476 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
7477 (eval $ac_compile) 2>conftest.er1
7479 grep -v '^ *+' conftest.er1
>conftest.err
7481 cat conftest.err
>&5
7482 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7483 (exit $ac_status); } &&
7484 { ac_try
='test -z "$ac_c_werror_flag"
7485 || test ! -s conftest.err'
7486 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7489 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7490 (exit $ac_status); }; } &&
7491 { ac_try
='test -s conftest.$ac_objext'
7492 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7495 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7496 (exit $ac_status); }; }; then
7497 ac_lo
=$ac_mid; break
7499 echo "$as_me: failed program was:" >&5
7500 sed 's/^/| /' conftest.
$ac_ext >&5
7502 ac_hi
=`expr '(' $ac_mid ')' - 1`
7503 if test $ac_mid -le $ac_hi; then
7507 ac_mid
=`expr 2 '*' $ac_mid`
7509 rm -f conftest.err conftest.
$ac_objext conftest.
$ac_ext
7512 echo "$as_me: failed program was:" >&5
7513 sed 's/^/| /' conftest.
$ac_ext >&5
7517 rm -f conftest.err conftest.
$ac_objext conftest.
$ac_ext
7519 rm -f conftest.err conftest.
$ac_objext conftest.
$ac_ext
7520 # Binary search between lo and hi bounds.
7521 while test "x$ac_lo" != "x$ac_hi"; do
7522 ac_mid
=`expr '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo`
7523 cat >conftest.
$ac_ext <<_ACEOF
7526 cat confdefs.h
>>conftest.
$ac_ext
7527 cat >>conftest.
$ac_ext <<_ACEOF
7528 /* end confdefs.h. */
7529 $ac_includes_default
7533 static int test_array [1 - 2 * !(((long) (sizeof (long))) <= $ac_mid)];
7540 rm -f conftest.
$ac_objext
7541 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
7542 (eval $ac_compile) 2>conftest.er1
7544 grep -v '^ *+' conftest.er1
>conftest.err
7546 cat conftest.err
>&5
7547 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7548 (exit $ac_status); } &&
7549 { ac_try
='test -z "$ac_c_werror_flag"
7550 || test ! -s conftest.err'
7551 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7554 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7555 (exit $ac_status); }; } &&
7556 { ac_try
='test -s conftest.$ac_objext'
7557 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7560 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7561 (exit $ac_status); }; }; then
7564 echo "$as_me: failed program was:" >&5
7565 sed 's/^/| /' conftest.
$ac_ext >&5
7567 ac_lo
=`expr '(' $ac_mid ')' + 1`
7569 rm -f conftest.err conftest.
$ac_objext conftest.
$ac_ext
7572 ?
*) ac_cv_sizeof_long
=$ac_lo;;
7573 '') { { echo "$as_me:$LINENO: error: in \`$ac_pwd':" >&5
7574 echo "$as_me: error: in \`$ac_pwd':" >&2;}
7575 { { echo "$as_me:$LINENO: error: cannot compute sizeof (long), 77
7576 See \`config.log' for more details." >&5
7577 echo "$as_me: error: cannot compute sizeof (long), 77
7578 See \`config.log' for more details." >&2;}
7579 { (exit 1); exit 1; }; }; } ;;
7582 if test "$cross_compiling" = yes; then
7583 { { echo "$as_me:$LINENO: error: in \`$ac_pwd':" >&5
7584 echo "$as_me: error: in \`$ac_pwd':" >&2;}
7585 { { echo "$as_me:$LINENO: error: cannot run test program while cross compiling
7586 See \`config.log' for more details." >&5
7587 echo "$as_me: error: cannot run test program while cross compiling
7588 See \`config.log' for more details." >&2;}
7589 { (exit 1); exit 1; }; }; }
7591 cat >conftest.
$ac_ext <<_ACEOF
7594 cat confdefs.h
>>conftest.
$ac_ext
7595 cat >>conftest.
$ac_ext <<_ACEOF
7596 /* end confdefs.h. */
7597 $ac_includes_default
7598 long longval () { return (long) (sizeof (long)); }
7599 unsigned long ulongval () { return (long) (sizeof (long)); }
7606 FILE *f = fopen ("conftest.val", "w");
7609 if (((long) (sizeof (long))) < 0)
7611 long i = longval ();
7612 if (i != ((long) (sizeof (long))))
7614 fprintf (f, "%ld\n", i);
7618 unsigned long i = ulongval ();
7619 if (i != ((long) (sizeof (long))))
7621 fprintf (f, "%lu\n", i);
7623 exit (ferror (f) || fclose (f) != 0);
7629 rm -f conftest
$ac_exeext
7630 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
7631 (eval $ac_link) 2>&5
7633 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7634 (exit $ac_status); } && { ac_try
='./conftest$ac_exeext'
7635 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7638 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7639 (exit $ac_status); }; }; then
7640 ac_cv_sizeof_long
=`cat conftest.val`
7642 echo "$as_me: program exited with status $ac_status" >&5
7643 echo "$as_me: failed program was:" >&5
7644 sed 's/^/| /' conftest.
$ac_ext >&5
7647 { { echo "$as_me:$LINENO: error: in \`$ac_pwd':" >&5
7648 echo "$as_me: error: in \`$ac_pwd':" >&2;}
7649 { { echo "$as_me:$LINENO: error: cannot compute sizeof (long), 77
7650 See \`config.log' for more details." >&5
7651 echo "$as_me: error: cannot compute sizeof (long), 77
7652 See \`config.log' for more details." >&2;}
7653 { (exit 1); exit 1; }; }; }
7655 rm -f core
*.core gmon.out bb.out conftest
$ac_exeext conftest.
$ac_objext conftest.
$ac_ext
7663 echo "$as_me:$LINENO: result: $ac_cv_sizeof_long" >&5
7664 echo "${ECHO_T}$ac_cv_sizeof_long" >&6
7665 cat >>confdefs.h
<<_ACEOF
7666 #define SIZEOF_LONG $ac_cv_sizeof_long
7670 if test "x${ac_cv_sizeof_long}" = "x8"; then
7674 if test x
${want64} = xtrue
; then
7675 TARGET_OBS
='$(ALL_TARGET_OBS) $(ALL_64_TARGET_OBS)'
7677 TARGET_OBS
='$(ALL_TARGET_OBS)'
7683 # For other settings, only the main target counts.
7687 targ
=$target; .
${srcdir}/configure.tgt
7689 # Fetch the default architecture and default target vector from BFD.
7690 targ
=$target; .
$srcdir/..
/bfd
/config.bfd
7692 # We only want the first architecture, so strip off the others if
7693 # there is more than one.
7694 targ_archs
=`echo $targ_archs | sed 's/ .*//'`
7696 if test "x$targ_archs" != x
; then
7698 cat >>confdefs.h
<<_ACEOF
7699 #define DEFAULT_BFD_ARCH $targ_archs
7703 if test "x$targ_defvec" != x
; then
7705 cat >>confdefs.h
<<_ACEOF
7706 #define DEFAULT_BFD_VEC $targ_defvec
7711 # The CLI cannot be disabled yet, but may be in the future.
7714 # Check whether --enable-gdbcli or --disable-gdbcli was given.
7715 if test "${enable_gdbcli+set}" = set; then
7716 enableval
="$enable_gdbcli"
7721 { { echo "$as_me:$LINENO: error: the command-line interface cannot be disabled yet" >&5
7722 echo "$as_me: error: the command-line interface cannot be disabled yet" >&2;}
7723 { (exit 1); exit 1; }; } ;;
7725 { { echo "$as_me:$LINENO: error: bad value $enableval for --enable-gdbcli" >&5
7726 echo "$as_me: error: bad value $enableval for --enable-gdbcli" >&2;}
7727 { (exit 1); exit 1; }; } ;;
7732 if test x
"$enable_gdbcli" = xyes
; then
7733 if test -d $srcdir/cli
; then
7734 CONFIG_OBS
="$CONFIG_OBS \$(SUBDIR_CLI_OBS)"
7735 CONFIG_DEPS
="$CONFIG_DEPS \$(SUBDIR_CLI_DEPS)"
7736 CONFIG_SRCS
="$CONFIG_SRCS \$(SUBDIR_CLI_SRCS)"
7737 ENABLE_CFLAGS
="$ENABLE_CFLAGS \$(SUBDIR_CLI_CFLAGS)"
7742 # Check whether --enable-gdbmi or --disable-gdbmi was given.
7743 if test "${enable_gdbmi+set}" = set; then
7744 enableval
="$enable_gdbmi"
7749 { { echo "$as_me:$LINENO: error: bad value $enableval for --enable-gdbmi" >&5
7750 echo "$as_me: error: bad value $enableval for --enable-gdbmi" >&2;}
7751 { (exit 1); exit 1; }; } ;;
7756 if test x
"$enable_gdbmi" = xyes
; then
7757 if test -d $srcdir/mi
; then
7758 CONFIG_OBS
="$CONFIG_OBS \$(SUBDIR_MI_OBS)"
7759 CONFIG_DEPS
="$CONFIG_DEPS \$(SUBDIR_MI_DEPS)"
7760 CONFIG_SRCS
="$CONFIG_SRCS \$(SUBDIR_MI_SRCS)"
7761 ENABLE_CFLAGS
="$ENABLE_CFLAGS \$(SUBDIR_MI_CFLAGS)"
7766 # Check whether --enable-tui or --disable-tui was given.
7767 if test "${enable_tui+set}" = set; then
7768 enableval
="$enable_tui"
7773 { { echo "$as_me:$LINENO: error: bad value $enableval for --enable-tui" >&5
7774 echo "$as_me: error: bad value $enableval for --enable-tui" >&2;}
7775 { (exit 1); exit 1; }; } ;;
7782 # Check whether --enable-gdbtk or --disable-gdbtk was given.
7783 if test "${enable_gdbtk+set}" = set; then
7784 enableval
="$enable_gdbtk"
7789 { { echo "$as_me:$LINENO: error: bad value $enableval for --enable-gdbtk" >&5
7790 echo "$as_me: error: bad value $enableval for --enable-gdbtk" >&2;}
7791 { (exit 1); exit 1; }; } ;;
7794 if test -d $srcdir/gdbtk
; then
7800 # We unconditionally disable gdbtk tests on selected platforms.
7803 { echo "$as_me:$LINENO: WARNING: gdbtk isn't supported on $host; disabling" >&5
7804 echo "$as_me: WARNING: gdbtk isn't supported on $host; disabling" >&2;}
7808 # Libunwind support.
7810 # Check whether --with-libunwind or --without-libunwind was given.
7811 if test "${with_libunwind+set}" = set; then
7812 withval
="$with_libunwind"
7813 case "${withval}" in
7814 yes) enable_libunwind
=yes ;;
7815 no
) enable_libunwind
=no
;;
7816 *) { { echo "$as_me:$LINENO: error: bad value ${withval} for GDB with-libunwind option" >&5
7817 echo "$as_me: error: bad value ${withval} for GDB with-libunwind option" >&2;}
7818 { (exit 1); exit 1; }; } ;;
7824 for ac_header
in libunwind.h libunwind-ia64.h
7826 as_ac_Header
=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
7827 if eval "test \"\${$as_ac_Header+set}\" = set"; then
7828 echo "$as_me:$LINENO: checking for $ac_header" >&5
7829 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
7830 if eval "test \"\${$as_ac_Header+set}\" = set"; then
7831 echo $ECHO_N "(cached) $ECHO_C" >&6
7833 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
7834 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
7836 # Is the header compilable?
7837 echo "$as_me:$LINENO: checking $ac_header usability" >&5
7838 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
7839 cat >conftest.
$ac_ext <<_ACEOF
7842 cat confdefs.h
>>conftest.
$ac_ext
7843 cat >>conftest.
$ac_ext <<_ACEOF
7844 /* end confdefs.h. */
7845 $ac_includes_default
7846 #include <$ac_header>
7848 rm -f conftest.
$ac_objext
7849 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
7850 (eval $ac_compile) 2>conftest.er1
7852 grep -v '^ *+' conftest.er1
>conftest.err
7854 cat conftest.err
>&5
7855 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7856 (exit $ac_status); } &&
7857 { ac_try
='test -z "$ac_c_werror_flag"
7858 || test ! -s conftest.err'
7859 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7862 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7863 (exit $ac_status); }; } &&
7864 { ac_try
='test -s conftest.$ac_objext'
7865 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7868 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7869 (exit $ac_status); }; }; then
7870 ac_header_compiler
=yes
7872 echo "$as_me: failed program was:" >&5
7873 sed 's/^/| /' conftest.
$ac_ext >&5
7875 ac_header_compiler
=no
7877 rm -f conftest.err conftest.
$ac_objext conftest.
$ac_ext
7878 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
7879 echo "${ECHO_T}$ac_header_compiler" >&6
7881 # Is the header present?
7882 echo "$as_me:$LINENO: checking $ac_header presence" >&5
7883 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
7884 cat >conftest.
$ac_ext <<_ACEOF
7887 cat confdefs.h
>>conftest.
$ac_ext
7888 cat >>conftest.
$ac_ext <<_ACEOF
7889 /* end confdefs.h. */
7890 #include <$ac_header>
7892 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
7893 (eval $ac_cpp conftest.
$ac_ext) 2>conftest.er1
7895 grep -v '^ *+' conftest.er1
>conftest.err
7897 cat conftest.err
>&5
7898 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7899 (exit $ac_status); } >/dev
/null
; then
7900 if test -s conftest.err
; then
7901 ac_cpp_err
=$ac_c_preproc_warn_flag
7902 ac_cpp_err
=$ac_cpp_err$ac_c_werror_flag
7909 if test -z "$ac_cpp_err"; then
7910 ac_header_preproc
=yes
7912 echo "$as_me: failed program was:" >&5
7913 sed 's/^/| /' conftest.
$ac_ext >&5
7915 ac_header_preproc
=no
7917 rm -f conftest.err conftest.
$ac_ext
7918 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
7919 echo "${ECHO_T}$ac_header_preproc" >&6
7921 # So? What about this header?
7922 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
7924 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
7925 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
7926 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
7927 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
7928 ac_header_preproc
=yes
7931 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
7932 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
7933 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
7934 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
7935 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
7936 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
7937 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
7938 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
7939 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
7940 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
7941 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
7942 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
7945 ## ------------------------------------------ ##
7946 ## Report this to the AC_PACKAGE_NAME lists. ##
7947 ## ------------------------------------------ ##
7950 sed "s/^/$as_me: WARNING: /" >&2
7953 echo "$as_me:$LINENO: checking for $ac_header" >&5
7954 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
7955 if eval "test \"\${$as_ac_Header+set}\" = set"; then
7956 echo $ECHO_N "(cached) $ECHO_C" >&6
7958 eval "$as_ac_Header=\$ac_header_preproc"
7960 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
7961 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
7964 if test `eval echo '${'$as_ac_Header'}'` = yes; then
7965 cat >>confdefs.h
<<_ACEOF
7966 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
7973 if test x
"$ac_cv_header_libunwind_h" = xyes
-a x
"$ac_cv_header_libunwind_ia64_h" = xyes
; then
7974 enable_libunwind
=yes;
7979 if test x
"$enable_libunwind" = xyes
; then
7982 for ac_header
in libunwind.h libunwind-ia64.h
7984 as_ac_Header
=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
7985 if eval "test \"\${$as_ac_Header+set}\" = set"; then
7986 echo "$as_me:$LINENO: checking for $ac_header" >&5
7987 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
7988 if eval "test \"\${$as_ac_Header+set}\" = set"; then
7989 echo $ECHO_N "(cached) $ECHO_C" >&6
7991 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
7992 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
7994 # Is the header compilable?
7995 echo "$as_me:$LINENO: checking $ac_header usability" >&5
7996 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
7997 cat >conftest.
$ac_ext <<_ACEOF
8000 cat confdefs.h
>>conftest.
$ac_ext
8001 cat >>conftest.
$ac_ext <<_ACEOF
8002 /* end confdefs.h. */
8003 $ac_includes_default
8004 #include <$ac_header>
8006 rm -f conftest.
$ac_objext
8007 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
8008 (eval $ac_compile) 2>conftest.er1
8010 grep -v '^ *+' conftest.er1
>conftest.err
8012 cat conftest.err
>&5
8013 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8014 (exit $ac_status); } &&
8015 { ac_try
='test -z "$ac_c_werror_flag"
8016 || test ! -s conftest.err'
8017 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8020 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8021 (exit $ac_status); }; } &&
8022 { ac_try
='test -s conftest.$ac_objext'
8023 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8026 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8027 (exit $ac_status); }; }; then
8028 ac_header_compiler
=yes
8030 echo "$as_me: failed program was:" >&5
8031 sed 's/^/| /' conftest.
$ac_ext >&5
8033 ac_header_compiler
=no
8035 rm -f conftest.err conftest.
$ac_objext conftest.
$ac_ext
8036 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
8037 echo "${ECHO_T}$ac_header_compiler" >&6
8039 # Is the header present?
8040 echo "$as_me:$LINENO: checking $ac_header presence" >&5
8041 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
8042 cat >conftest.
$ac_ext <<_ACEOF
8045 cat confdefs.h
>>conftest.
$ac_ext
8046 cat >>conftest.
$ac_ext <<_ACEOF
8047 /* end confdefs.h. */
8048 #include <$ac_header>
8050 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
8051 (eval $ac_cpp conftest.
$ac_ext) 2>conftest.er1
8053 grep -v '^ *+' conftest.er1
>conftest.err
8055 cat conftest.err
>&5
8056 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8057 (exit $ac_status); } >/dev
/null
; then
8058 if test -s conftest.err
; then
8059 ac_cpp_err
=$ac_c_preproc_warn_flag
8060 ac_cpp_err
=$ac_cpp_err$ac_c_werror_flag
8067 if test -z "$ac_cpp_err"; then
8068 ac_header_preproc
=yes
8070 echo "$as_me: failed program was:" >&5
8071 sed 's/^/| /' conftest.
$ac_ext >&5
8073 ac_header_preproc
=no
8075 rm -f conftest.err conftest.
$ac_ext
8076 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
8077 echo "${ECHO_T}$ac_header_preproc" >&6
8079 # So? What about this header?
8080 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
8082 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
8083 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
8084 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
8085 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
8086 ac_header_preproc
=yes
8089 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
8090 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
8091 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
8092 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
8093 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
8094 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
8095 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
8096 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
8097 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
8098 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
8099 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
8100 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
8103 ## ------------------------------------------ ##
8104 ## Report this to the AC_PACKAGE_NAME lists. ##
8105 ## ------------------------------------------ ##
8108 sed "s/^/$as_me: WARNING: /" >&2
8111 echo "$as_me:$LINENO: checking for $ac_header" >&5
8112 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
8113 if eval "test \"\${$as_ac_Header+set}\" = set"; then
8114 echo $ECHO_N "(cached) $ECHO_C" >&6
8116 eval "$as_ac_Header=\$ac_header_preproc"
8118 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
8119 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
8122 if test `eval echo '${'$as_ac_Header'}'` = yes; then
8123 cat >>confdefs.h
<<_ACEOF
8124 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
8132 cat >>confdefs.h
<<\_ACEOF
8133 #define HAVE_LIBUNWIND 1
8136 CONFIG_OBS
="$CONFIG_OBS libunwind-frame.o"
8137 CONFIG_DEPS
="$CONFIG_DEPS libunwind-frame.o"
8138 CONFIG_SRCS
="$CONFIG_SRCS libunwind-frame.c"
8143 # Check whether --with-curses or --without-curses was given.
8144 if test "${with_curses+set}" = set; then
8145 withval
="$with_curses"
8150 if test "$opt_curses" = "yes"; then
8154 # Profiling support.
8155 # Check whether --enable-profiling or --disable-profiling was given.
8156 if test "${enable_profiling+set}" = set; then
8157 enableval
="$enable_profiling"
8162 { { echo "$as_me:$LINENO: error: bad value $enableval for --enable-profile" >&5
8163 echo "$as_me: error: bad value $enableval for --enable-profile" >&2;}
8164 { (exit 1); exit 1; }; } ;;
8172 for ac_func
in monstartup _mcleanup
8174 as_ac_var
=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
8175 echo "$as_me:$LINENO: checking for $ac_func" >&5
8176 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
8177 if eval "test \"\${$as_ac_var+set}\" = set"; then
8178 echo $ECHO_N "(cached) $ECHO_C" >&6
8180 cat >conftest.
$ac_ext <<_ACEOF
8183 cat confdefs.h
>>conftest.
$ac_ext
8184 cat >>conftest.
$ac_ext <<_ACEOF
8185 /* end confdefs.h. */
8186 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
8187 For example, HP-UX 11i <limits.h> declares gettimeofday. */
8188 #define $ac_func innocuous_$ac_func
8190 /* System header to define __stub macros and hopefully few prototypes,
8191 which can conflict with char $ac_func (); below.
8192 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
8193 <limits.h> exists even on freestanding compilers. */
8196 # include <limits.h>
8198 # include <assert.h>
8203 /* Override any gcc2 internal prototype to avoid an error. */
8208 /* We use char because int might match the return type of a gcc2
8209 builtin and then its argument prototype would still apply. */
8211 /* The GNU C library defines this for functions which it implements
8212 to always fail with ENOSYS. Some functions are actually named
8213 something starting with __ and the normal name is an alias. */
8214 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
8217 char (*f) () = $ac_func;
8226 return f != $ac_func;
8231 rm -f conftest.
$ac_objext conftest
$ac_exeext
8232 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
8233 (eval $ac_link) 2>conftest.er1
8235 grep -v '^ *+' conftest.er1
>conftest.err
8237 cat conftest.err
>&5
8238 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8239 (exit $ac_status); } &&
8240 { ac_try
='test -z "$ac_c_werror_flag"
8241 || test ! -s conftest.err'
8242 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8245 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8246 (exit $ac_status); }; } &&
8247 { ac_try
='test -s conftest$ac_exeext'
8248 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8251 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8252 (exit $ac_status); }; }; then
8253 eval "$as_ac_var=yes"
8255 echo "$as_me: failed program was:" >&5
8256 sed 's/^/| /' conftest.
$ac_ext >&5
8258 eval "$as_ac_var=no"
8260 rm -f conftest.err conftest.
$ac_objext \
8261 conftest
$ac_exeext conftest.
$ac_ext
8263 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
8264 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
8265 if test `eval echo '${'$as_ac_var'}'` = yes; then
8266 cat >>confdefs.h
<<_ACEOF
8267 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
8273 echo "$as_me:$LINENO: checking for _etext" >&5
8274 echo $ECHO_N "checking for _etext... $ECHO_C" >&6
8275 if test "${ac_cv_var__etext+set}" = set; then
8276 echo $ECHO_N "(cached) $ECHO_C" >&6
8278 cat >conftest.
$ac_ext <<_ACEOF
8281 cat confdefs.h
>>conftest.
$ac_ext
8282 cat >>conftest.
$ac_ext <<_ACEOF
8283 /* end confdefs.h. */
8295 rm -f conftest.
$ac_objext conftest
$ac_exeext
8296 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
8297 (eval $ac_link) 2>conftest.er1
8299 grep -v '^ *+' conftest.er1
>conftest.err
8301 cat conftest.err
>&5
8302 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8303 (exit $ac_status); } &&
8304 { ac_try
='test -z "$ac_c_werror_flag"
8305 || test ! -s conftest.err'
8306 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8309 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8310 (exit $ac_status); }; } &&
8311 { ac_try
='test -s conftest$ac_exeext'
8312 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8315 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8316 (exit $ac_status); }; }; then
8317 ac_cv_var__etext
=yes
8319 echo "$as_me: failed program was:" >&5
8320 sed 's/^/| /' conftest.
$ac_ext >&5
8324 rm -f conftest.err conftest.
$ac_objext \
8325 conftest
$ac_exeext conftest.
$ac_ext
8327 echo "$as_me:$LINENO: result: $ac_cv_var__etext" >&5
8328 echo "${ECHO_T}$ac_cv_var__etext" >&6
8329 if test $ac_cv_var__etext = yes; then
8331 cat >>confdefs.h
<<\_ACEOF
8332 #define HAVE__ETEXT 1
8336 echo "$as_me:$LINENO: checking for etext" >&5
8337 echo $ECHO_N "checking for etext... $ECHO_C" >&6
8338 if test "${ac_cv_var_etext+set}" = set; then
8339 echo $ECHO_N "(cached) $ECHO_C" >&6
8341 cat >conftest.
$ac_ext <<_ACEOF
8344 cat confdefs.h
>>conftest.
$ac_ext
8345 cat >>conftest.
$ac_ext <<_ACEOF
8346 /* end confdefs.h. */
8358 rm -f conftest.
$ac_objext conftest
$ac_exeext
8359 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
8360 (eval $ac_link) 2>conftest.er1
8362 grep -v '^ *+' conftest.er1
>conftest.err
8364 cat conftest.err
>&5
8365 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8366 (exit $ac_status); } &&
8367 { ac_try
='test -z "$ac_c_werror_flag"
8368 || test ! -s conftest.err'
8369 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8372 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8373 (exit $ac_status); }; } &&
8374 { ac_try
='test -s conftest$ac_exeext'
8375 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8378 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8379 (exit $ac_status); }; }; then
8382 echo "$as_me: failed program was:" >&5
8383 sed 's/^/| /' conftest.
$ac_ext >&5
8387 rm -f conftest.err conftest.
$ac_objext \
8388 conftest
$ac_exeext conftest.
$ac_ext
8390 echo "$as_me:$LINENO: result: $ac_cv_var_etext" >&5
8391 echo "${ECHO_T}$ac_cv_var_etext" >&6
8392 if test $ac_cv_var_etext = yes; then
8394 cat >>confdefs.h
<<\_ACEOF
8395 #define HAVE_ETEXT 1
8399 if test "$enable_profiling" = yes ; then
8400 if test $ac_cv_func_monstartup = no ||
test $ac_cv_func__mcleanup = no
; then
8401 { { echo "$as_me:$LINENO: error: --enable-profiling requires monstartup and _mcleanup" >&5
8402 echo "$as_me: error: --enable-profiling requires monstartup and _mcleanup" >&2;}
8403 { (exit 1); exit 1; }; }
8406 OLD_CFLAGS
="$CFLAGS"
8407 CFLAGS
="$CFLAGS $PROFILE_CFLAGS"
8409 echo "$as_me:$LINENO: checking whether $CC supports -pg" >&5
8410 echo $ECHO_N "checking whether $CC supports -pg... $ECHO_C" >&6
8411 if test "${ac_cv_cc_supports_pg+set}" = set; then
8412 echo $ECHO_N "(cached) $ECHO_C" >&6
8414 cat >conftest.
$ac_ext <<_ACEOF
8417 cat confdefs.h
>>conftest.
$ac_ext
8418 cat >>conftest.
$ac_ext <<_ACEOF
8419 /* end confdefs.h. */
8429 rm -f conftest.
$ac_objext
8430 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
8431 (eval $ac_compile) 2>conftest.er1
8433 grep -v '^ *+' conftest.er1
>conftest.err
8435 cat conftest.err
>&5
8436 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8437 (exit $ac_status); } &&
8438 { ac_try
='test -z "$ac_c_werror_flag"
8439 || test ! -s conftest.err'
8440 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8443 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8444 (exit $ac_status); }; } &&
8445 { ac_try
='test -s conftest.$ac_objext'
8446 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8449 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8450 (exit $ac_status); }; }; then
8451 ac_cv_cc_supports_pg
=yes
8453 echo "$as_me: failed program was:" >&5
8454 sed 's/^/| /' conftest.
$ac_ext >&5
8456 ac_cv_cc_supports_pg
=no
8458 rm -f conftest.err conftest.
$ac_objext conftest.
$ac_ext
8460 echo "$as_me:$LINENO: result: $ac_cv_cc_supports_pg" >&5
8461 echo "${ECHO_T}$ac_cv_cc_supports_pg" >&6
8463 if test $ac_cv_cc_supports_pg = no
; then
8464 { { echo "$as_me:$LINENO: error: --enable-profiling requires a compiler which supports -pg" >&5
8465 echo "$as_me: error: --enable-profiling requires a compiler which supports -pg" >&2;}
8466 { (exit 1); exit 1; }; }
8469 CFLAGS
="$OLD_CFLAGS"
8474 # Check whether --with-pkgversion or --without-pkgversion was given.
8475 if test "${with_pkgversion+set}" = set; then
8476 withval
="$with_pkgversion"
8478 yes) { { echo "$as_me:$LINENO: error: package version not specified" >&5
8479 echo "$as_me: error: package version not specified" >&2;}
8480 { (exit 1); exit 1; }; } ;;
8482 *) PKGVERSION
="($withval) " ;;
8492 # Check whether --with-bugurl or --without-bugurl was given.
8493 if test "${with_bugurl+set}" = set; then
8494 withval
="$with_bugurl"
8496 yes) { { echo "$as_me:$LINENO: error: bug URL not specified" >&5
8497 echo "$as_me: error: bug URL not specified" >&2;}
8498 { (exit 1); exit 1; }; } ;;
8501 *) BUGURL
="$withval"
8505 BUGURL
="http://www.gnu.org/software/gdb/bugs/"
8514 REPORT_BUGS_TO
="<$BUGURL>"
8515 REPORT_BUGS_TEXI
=@uref
{`echo "$BUGURL" | sed 's/@/@@/g'`}
8522 cat >>confdefs.h
<<_ACEOF
8523 #define PKGVERSION "$PKGVERSION"
8527 cat >>confdefs.h
<<_ACEOF
8528 #define REPORT_BUGS_TO "$REPORT_BUGS_TO"
8532 # --------------------- #
8533 # Checks for programs. #
8534 # --------------------- #
8536 for ac_prog
in gawk mawk nawk
awk
8538 # Extract the first word of "$ac_prog", so it can be a program name with args.
8539 set dummy
$ac_prog; ac_word
=$2
8540 echo "$as_me:$LINENO: checking for $ac_word" >&5
8541 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
8542 if test "${ac_cv_prog_AWK+set}" = set; then
8543 echo $ECHO_N "(cached) $ECHO_C" >&6
8545 if test -n "$AWK"; then
8546 ac_cv_prog_AWK
="$AWK" # Let the user override the test.
8548 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
8552 test -z "$as_dir" && as_dir
=.
8553 for ac_exec_ext
in '' $ac_executable_extensions; do
8554 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
8555 ac_cv_prog_AWK
="$ac_prog"
8556 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
8565 if test -n "$AWK"; then
8566 echo "$as_me:$LINENO: result: $AWK" >&5
8567 echo "${ECHO_T}$AWK" >&6
8569 echo "$as_me:$LINENO: result: no" >&5
8570 echo "${ECHO_T}no" >&6
8573 test -n "$AWK" && break
8576 # Find a good install program. We prefer a C program (faster),
8577 # so one script is as good as another. But avoid the broken or
8578 # incompatible versions:
8579 # SysV /etc/install, /usr/sbin/install
8580 # SunOS /usr/etc/install
8581 # IRIX /sbin/install
8583 # AmigaOS /C/install, which installs bootblocks on floppy discs
8584 # AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag
8585 # AFS /usr/afsws/bin/install, which mishandles nonexistent args
8586 # SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff"
8587 # OS/2's system install, which has a completely different semantic
8588 # ./install, which can be erroneously created by make from ./install.sh.
8589 # Reject install programs that cannot install multiple files.
8590 echo "$as_me:$LINENO: checking for a BSD-compatible install" >&5
8591 echo $ECHO_N "checking for a BSD-compatible install... $ECHO_C" >&6
8592 if test -z "$INSTALL"; then
8593 if test "${ac_cv_path_install+set}" = set; then
8594 echo $ECHO_N "(cached) $ECHO_C" >&6
8596 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
8600 test -z "$as_dir" && as_dir
=.
8601 # Account for people who put trailing slashes in PATH elements.
8603 .
/ | .
// |
/cC
/* | \
8604 /etc
/* |
/usr
/sbin
/* |
/usr
/etc
/* |
/sbin
/* |
/usr
/afsws
/bin
/* | \
8605 ?
:\\/os2
\\/install\\/* | ?
:\\/OS2
\\/INSTALL
\\/* | \
8608 # OSF1 and SCO ODT 3.0 have their own names for install.
8609 # Don't use installbsd from OSF since it installs stuff as root
8611 for ac_prog
in ginstall scoinst
install; do
8612 for ac_exec_ext
in '' $ac_executable_extensions; do
8613 if $as_executable_p "$as_dir/$ac_prog$ac_exec_ext"; then
8614 if test $ac_prog = install &&
8615 grep dspmsg
"$as_dir/$ac_prog$ac_exec_ext" >/dev
/null
2>&1; then
8616 # AIX install. It has an incompatible calling convention.
8618 elif test $ac_prog = install &&
8619 grep pwplus
"$as_dir/$ac_prog$ac_exec_ext" >/dev
/null
2>&1; then
8620 # program-specific install script used by HP pwplus--don't use.
8623 rm -rf conftest.one conftest.two conftest.dir
8624 echo one
> conftest.one
8625 echo two
> conftest.two
8627 if "$as_dir/$ac_prog$ac_exec_ext" -c conftest.one conftest.two
"`pwd`/conftest.dir" &&
8628 test -s conftest.one
&& test -s conftest.two
&&
8629 test -s conftest.dir
/conftest.one
&&
8630 test -s conftest.dir
/conftest.two
8632 ac_cv_path_install
="$as_dir/$ac_prog$ac_exec_ext -c"
8643 rm -rf conftest.one conftest.two conftest.dir
8646 if test "${ac_cv_path_install+set}" = set; then
8647 INSTALL
=$ac_cv_path_install
8649 # As a last resort, use the slow shell script. Don't cache a
8650 # value for INSTALL within a source directory, because that will
8651 # break other packages using the cache if that directory is
8652 # removed, or if the value is a relative name.
8653 INSTALL
=$ac_install_sh
8656 echo "$as_me:$LINENO: result: $INSTALL" >&5
8657 echo "${ECHO_T}$INSTALL" >&6
8659 # Use test -z because SunOS4 sh mishandles braces in ${var-val}.
8660 # It thinks the first close brace ends the variable substitution.
8661 test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM
='${INSTALL}'
8663 test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT
='${INSTALL}'
8665 test -z "$INSTALL_DATA" && INSTALL_DATA
='${INSTALL} -m 644'
8667 echo "$as_me:$LINENO: checking whether ln -s works" >&5
8668 echo $ECHO_N "checking whether ln -s works... $ECHO_C" >&6
8670 if test "$LN_S" = "ln -s"; then
8671 echo "$as_me:$LINENO: result: yes" >&5
8672 echo "${ECHO_T}yes" >&6
8674 echo "$as_me:$LINENO: result: no, using $LN_S" >&5
8675 echo "${ECHO_T}no, using $LN_S" >&6
8678 if test -n "$ac_tool_prefix"; then
8679 # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args.
8680 set dummy
${ac_tool_prefix}ranlib
; ac_word
=$2
8681 echo "$as_me:$LINENO: checking for $ac_word" >&5
8682 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
8683 if test "${ac_cv_prog_RANLIB+set}" = set; then
8684 echo $ECHO_N "(cached) $ECHO_C" >&6
8686 if test -n "$RANLIB"; then
8687 ac_cv_prog_RANLIB
="$RANLIB" # Let the user override the test.
8689 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
8693 test -z "$as_dir" && as_dir
=.
8694 for ac_exec_ext
in '' $ac_executable_extensions; do
8695 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
8696 ac_cv_prog_RANLIB
="${ac_tool_prefix}ranlib"
8697 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
8705 RANLIB
=$ac_cv_prog_RANLIB
8706 if test -n "$RANLIB"; then
8707 echo "$as_me:$LINENO: result: $RANLIB" >&5
8708 echo "${ECHO_T}$RANLIB" >&6
8710 echo "$as_me:$LINENO: result: no" >&5
8711 echo "${ECHO_T}no" >&6
8715 if test -z "$ac_cv_prog_RANLIB"; then
8716 ac_ct_RANLIB
=$RANLIB
8717 # Extract the first word of "ranlib", so it can be a program name with args.
8718 set dummy ranlib
; ac_word
=$2
8719 echo "$as_me:$LINENO: checking for $ac_word" >&5
8720 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
8721 if test "${ac_cv_prog_ac_ct_RANLIB+set}" = set; then
8722 echo $ECHO_N "(cached) $ECHO_C" >&6
8724 if test -n "$ac_ct_RANLIB"; then
8725 ac_cv_prog_ac_ct_RANLIB
="$ac_ct_RANLIB" # Let the user override the test.
8727 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
8731 test -z "$as_dir" && as_dir
=.
8732 for ac_exec_ext
in '' $ac_executable_extensions; do
8733 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
8734 ac_cv_prog_ac_ct_RANLIB
="ranlib"
8735 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
8741 test -z "$ac_cv_prog_ac_ct_RANLIB" && ac_cv_prog_ac_ct_RANLIB
=":"
8744 ac_ct_RANLIB
=$ac_cv_prog_ac_ct_RANLIB
8745 if test -n "$ac_ct_RANLIB"; then
8746 echo "$as_me:$LINENO: result: $ac_ct_RANLIB" >&5
8747 echo "${ECHO_T}$ac_ct_RANLIB" >&6
8749 echo "$as_me:$LINENO: result: no" >&5
8750 echo "${ECHO_T}no" >&6
8753 RANLIB
=$ac_ct_RANLIB
8755 RANLIB
="$ac_cv_prog_RANLIB"
8758 for ac_prog
in 'bison -y' byacc
8760 # Extract the first word of "$ac_prog", so it can be a program name with args.
8761 set dummy
$ac_prog; ac_word
=$2
8762 echo "$as_me:$LINENO: checking for $ac_word" >&5
8763 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
8764 if test "${ac_cv_prog_YACC+set}" = set; then
8765 echo $ECHO_N "(cached) $ECHO_C" >&6
8767 if test -n "$YACC"; then
8768 ac_cv_prog_YACC
="$YACC" # Let the user override the test.
8770 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
8774 test -z "$as_dir" && as_dir
=.
8775 for ac_exec_ext
in '' $ac_executable_extensions; do
8776 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
8777 ac_cv_prog_YACC
="$ac_prog"
8778 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
8786 YACC
=$ac_cv_prog_YACC
8787 if test -n "$YACC"; then
8788 echo "$as_me:$LINENO: result: $YACC" >&5
8789 echo "${ECHO_T}$YACC" >&6
8791 echo "$as_me:$LINENO: result: no" >&5
8792 echo "${ECHO_T}no" >&6
8795 test -n "$YACC" && break
8797 test -n "$YACC" || YACC
="yacc"
8800 if test -n "$ac_tool_prefix"; then
8801 # Extract the first word of "${ac_tool_prefix}ar", so it can be a program name with args.
8802 set dummy
${ac_tool_prefix}ar; ac_word
=$2
8803 echo "$as_me:$LINENO: checking for $ac_word" >&5
8804 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
8805 if test "${ac_cv_prog_AR+set}" = set; then
8806 echo $ECHO_N "(cached) $ECHO_C" >&6
8808 if test -n "$AR"; then
8809 ac_cv_prog_AR
="$AR" # Let the user override the test.
8811 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
8815 test -z "$as_dir" && as_dir
=.
8816 for ac_exec_ext
in '' $ac_executable_extensions; do
8817 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
8818 ac_cv_prog_AR
="${ac_tool_prefix}ar"
8819 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
8828 if test -n "$AR"; then
8829 echo "$as_me:$LINENO: result: $AR" >&5
8830 echo "${ECHO_T}$AR" >&6
8832 echo "$as_me:$LINENO: result: no" >&5
8833 echo "${ECHO_T}no" >&6
8837 if test -z "$ac_cv_prog_AR"; then
8839 # Extract the first word of "ar", so it can be a program name with args.
8840 set dummy
ar; ac_word
=$2
8841 echo "$as_me:$LINENO: checking for $ac_word" >&5
8842 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
8843 if test "${ac_cv_prog_ac_ct_AR+set}" = set; then
8844 echo $ECHO_N "(cached) $ECHO_C" >&6
8846 if test -n "$ac_ct_AR"; then
8847 ac_cv_prog_ac_ct_AR
="$ac_ct_AR" # Let the user override the test.
8849 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
8853 test -z "$as_dir" && as_dir
=.
8854 for ac_exec_ext
in '' $ac_executable_extensions; do
8855 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
8856 ac_cv_prog_ac_ct_AR
="ar"
8857 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
8865 ac_ct_AR
=$ac_cv_prog_ac_ct_AR
8866 if test -n "$ac_ct_AR"; then
8867 echo "$as_me:$LINENO: result: $ac_ct_AR" >&5
8868 echo "${ECHO_T}$ac_ct_AR" >&6
8870 echo "$as_me:$LINENO: result: no" >&5
8871 echo "${ECHO_T}no" >&6
8879 if test -n "$ac_tool_prefix"; then
8880 # Extract the first word of "${ac_tool_prefix}dlltool", so it can be a program name with args.
8881 set dummy
${ac_tool_prefix}dlltool
; ac_word
=$2
8882 echo "$as_me:$LINENO: checking for $ac_word" >&5
8883 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
8884 if test "${ac_cv_prog_DLLTOOL+set}" = set; then
8885 echo $ECHO_N "(cached) $ECHO_C" >&6
8887 if test -n "$DLLTOOL"; then
8888 ac_cv_prog_DLLTOOL
="$DLLTOOL" # Let the user override the test.
8890 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
8894 test -z "$as_dir" && as_dir
=.
8895 for ac_exec_ext
in '' $ac_executable_extensions; do
8896 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
8897 ac_cv_prog_DLLTOOL
="${ac_tool_prefix}dlltool"
8898 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
8906 DLLTOOL
=$ac_cv_prog_DLLTOOL
8907 if test -n "$DLLTOOL"; then
8908 echo "$as_me:$LINENO: result: $DLLTOOL" >&5
8909 echo "${ECHO_T}$DLLTOOL" >&6
8911 echo "$as_me:$LINENO: result: no" >&5
8912 echo "${ECHO_T}no" >&6
8916 if test -z "$ac_cv_prog_DLLTOOL"; then
8917 ac_ct_DLLTOOL
=$DLLTOOL
8918 # Extract the first word of "dlltool", so it can be a program name with args.
8919 set dummy dlltool
; ac_word
=$2
8920 echo "$as_me:$LINENO: checking for $ac_word" >&5
8921 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
8922 if test "${ac_cv_prog_ac_ct_DLLTOOL+set}" = set; then
8923 echo $ECHO_N "(cached) $ECHO_C" >&6
8925 if test -n "$ac_ct_DLLTOOL"; then
8926 ac_cv_prog_ac_ct_DLLTOOL
="$ac_ct_DLLTOOL" # Let the user override the test.
8928 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
8932 test -z "$as_dir" && as_dir
=.
8933 for ac_exec_ext
in '' $ac_executable_extensions; do
8934 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
8935 ac_cv_prog_ac_ct_DLLTOOL
="dlltool"
8936 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
8944 ac_ct_DLLTOOL
=$ac_cv_prog_ac_ct_DLLTOOL
8945 if test -n "$ac_ct_DLLTOOL"; then
8946 echo "$as_me:$LINENO: result: $ac_ct_DLLTOOL" >&5
8947 echo "${ECHO_T}$ac_ct_DLLTOOL" >&6
8949 echo "$as_me:$LINENO: result: no" >&5
8950 echo "${ECHO_T}no" >&6
8953 DLLTOOL
=$ac_ct_DLLTOOL
8955 DLLTOOL
="$ac_cv_prog_DLLTOOL"
8958 if test -n "$ac_tool_prefix"; then
8959 # Extract the first word of "${ac_tool_prefix}windres", so it can be a program name with args.
8960 set dummy
${ac_tool_prefix}windres
; ac_word
=$2
8961 echo "$as_me:$LINENO: checking for $ac_word" >&5
8962 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
8963 if test "${ac_cv_prog_WINDRES+set}" = set; then
8964 echo $ECHO_N "(cached) $ECHO_C" >&6
8966 if test -n "$WINDRES"; then
8967 ac_cv_prog_WINDRES
="$WINDRES" # Let the user override the test.
8969 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
8973 test -z "$as_dir" && as_dir
=.
8974 for ac_exec_ext
in '' $ac_executable_extensions; do
8975 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
8976 ac_cv_prog_WINDRES
="${ac_tool_prefix}windres"
8977 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
8985 WINDRES
=$ac_cv_prog_WINDRES
8986 if test -n "$WINDRES"; then
8987 echo "$as_me:$LINENO: result: $WINDRES" >&5
8988 echo "${ECHO_T}$WINDRES" >&6
8990 echo "$as_me:$LINENO: result: no" >&5
8991 echo "${ECHO_T}no" >&6
8995 if test -z "$ac_cv_prog_WINDRES"; then
8996 ac_ct_WINDRES
=$WINDRES
8997 # Extract the first word of "windres", so it can be a program name with args.
8998 set dummy windres
; ac_word
=$2
8999 echo "$as_me:$LINENO: checking for $ac_word" >&5
9000 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
9001 if test "${ac_cv_prog_ac_ct_WINDRES+set}" = set; then
9002 echo $ECHO_N "(cached) $ECHO_C" >&6
9004 if test -n "$ac_ct_WINDRES"; then
9005 ac_cv_prog_ac_ct_WINDRES
="$ac_ct_WINDRES" # Let the user override the test.
9007 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
9011 test -z "$as_dir" && as_dir
=.
9012 for ac_exec_ext
in '' $ac_executable_extensions; do
9013 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
9014 ac_cv_prog_ac_ct_WINDRES
="windres"
9015 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
9023 ac_ct_WINDRES
=$ac_cv_prog_ac_ct_WINDRES
9024 if test -n "$ac_ct_WINDRES"; then
9025 echo "$as_me:$LINENO: result: $ac_ct_WINDRES" >&5
9026 echo "${ECHO_T}$ac_ct_WINDRES" >&6
9028 echo "$as_me:$LINENO: result: no" >&5
9029 echo "${ECHO_T}no" >&6
9032 WINDRES
=$ac_ct_WINDRES
9034 WINDRES
="$ac_cv_prog_WINDRES"
9038 # Needed for GNU/Hurd.
9039 if test -n "$ac_tool_prefix"; then
9040 # Extract the first word of "${ac_tool_prefix}mig", so it can be a program name with args.
9041 set dummy
${ac_tool_prefix}mig
; ac_word
=$2
9042 echo "$as_me:$LINENO: checking for $ac_word" >&5
9043 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
9044 if test "${ac_cv_prog_MIG+set}" = set; then
9045 echo $ECHO_N "(cached) $ECHO_C" >&6
9047 if test -n "$MIG"; then
9048 ac_cv_prog_MIG
="$MIG" # Let the user override the test.
9050 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
9054 test -z "$as_dir" && as_dir
=.
9055 for ac_exec_ext
in '' $ac_executable_extensions; do
9056 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
9057 ac_cv_prog_MIG
="${ac_tool_prefix}mig"
9058 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
9067 if test -n "$MIG"; then
9068 echo "$as_me:$LINENO: result: $MIG" >&5
9069 echo "${ECHO_T}$MIG" >&6
9071 echo "$as_me:$LINENO: result: no" >&5
9072 echo "${ECHO_T}no" >&6
9076 if test -z "$ac_cv_prog_MIG"; then
9078 # Extract the first word of "mig", so it can be a program name with args.
9079 set dummy mig
; ac_word
=$2
9080 echo "$as_me:$LINENO: checking for $ac_word" >&5
9081 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
9082 if test "${ac_cv_prog_ac_ct_MIG+set}" = set; then
9083 echo $ECHO_N "(cached) $ECHO_C" >&6
9085 if test -n "$ac_ct_MIG"; then
9086 ac_cv_prog_ac_ct_MIG
="$ac_ct_MIG" # Let the user override the test.
9088 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
9092 test -z "$as_dir" && as_dir
=.
9093 for ac_exec_ext
in '' $ac_executable_extensions; do
9094 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
9095 ac_cv_prog_ac_ct_MIG
="mig"
9096 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
9104 ac_ct_MIG
=$ac_cv_prog_ac_ct_MIG
9105 if test -n "$ac_ct_MIG"; then
9106 echo "$as_me:$LINENO: result: $ac_ct_MIG" >&5
9107 echo "${ECHO_T}$ac_ct_MIG" >&6
9109 echo "$as_me:$LINENO: result: no" >&5
9110 echo "${ECHO_T}no" >&6
9115 MIG
="$ac_cv_prog_MIG"
9119 # ---------------------- #
9120 # Checks for libraries. #
9121 # ---------------------- #
9123 # We might need to link with -lm; most simulators need it.
9125 echo "$as_me:$LINENO: checking for main in -lm" >&5
9126 echo $ECHO_N "checking for main in -lm... $ECHO_C" >&6
9127 if test "${ac_cv_lib_m_main+set}" = set; then
9128 echo $ECHO_N "(cached) $ECHO_C" >&6
9130 ac_check_lib_save_LIBS
=$LIBS
9132 cat >conftest.
$ac_ext <<_ACEOF
9135 cat confdefs.h
>>conftest.
$ac_ext
9136 cat >>conftest.
$ac_ext <<_ACEOF
9137 /* end confdefs.h. */
9148 rm -f conftest.
$ac_objext conftest
$ac_exeext
9149 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
9150 (eval $ac_link) 2>conftest.er1
9152 grep -v '^ *+' conftest.er1
>conftest.err
9154 cat conftest.err
>&5
9155 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9156 (exit $ac_status); } &&
9157 { ac_try
='test -z "$ac_c_werror_flag"
9158 || test ! -s conftest.err'
9159 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9162 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9163 (exit $ac_status); }; } &&
9164 { ac_try
='test -s conftest$ac_exeext'
9165 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9168 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9169 (exit $ac_status); }; }; then
9170 ac_cv_lib_m_main
=yes
9172 echo "$as_me: failed program was:" >&5
9173 sed 's/^/| /' conftest.
$ac_ext >&5
9177 rm -f conftest.err conftest.
$ac_objext \
9178 conftest
$ac_exeext conftest.
$ac_ext
9179 LIBS
=$ac_check_lib_save_LIBS
9181 echo "$as_me:$LINENO: result: $ac_cv_lib_m_main" >&5
9182 echo "${ECHO_T}$ac_cv_lib_m_main" >&6
9183 if test $ac_cv_lib_m_main = yes; then
9184 cat >>confdefs.h
<<_ACEOF
9193 # We need to link with -lw to get `wctype' on Solaris before Solaris
9194 # 2.6. Solaris 2.6 and beyond have this function in libc, and have a
9195 # libw that some versions of the GNU linker cannot hanle (GNU ld 2.9.1
9196 # is known to have this problem). Therefore we avoid libw if we can.
9197 echo "$as_me:$LINENO: checking for wctype" >&5
9198 echo $ECHO_N "checking for wctype... $ECHO_C" >&6
9199 if test "${ac_cv_func_wctype+set}" = set; then
9200 echo $ECHO_N "(cached) $ECHO_C" >&6
9202 cat >conftest.
$ac_ext <<_ACEOF
9205 cat confdefs.h
>>conftest.
$ac_ext
9206 cat >>conftest.
$ac_ext <<_ACEOF
9207 /* end confdefs.h. */
9208 /* Define wctype to an innocuous variant, in case <limits.h> declares wctype.
9209 For example, HP-UX 11i <limits.h> declares gettimeofday. */
9210 #define wctype innocuous_wctype
9212 /* System header to define __stub macros and hopefully few prototypes,
9213 which can conflict with char wctype (); below.
9214 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
9215 <limits.h> exists even on freestanding compilers. */
9218 # include <limits.h>
9220 # include <assert.h>
9225 /* Override any gcc2 internal prototype to avoid an error. */
9230 /* We use char because int might match the return type of a gcc2
9231 builtin and then its argument prototype would still apply. */
9233 /* The GNU C library defines this for functions which it implements
9234 to always fail with ENOSYS. Some functions are actually named
9235 something starting with __ and the normal name is an alias. */
9236 #if defined (__stub_wctype) || defined (__stub___wctype)
9239 char (*f) () = wctype;
9253 rm -f conftest.
$ac_objext conftest
$ac_exeext
9254 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
9255 (eval $ac_link) 2>conftest.er1
9257 grep -v '^ *+' conftest.er1
>conftest.err
9259 cat conftest.err
>&5
9260 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9261 (exit $ac_status); } &&
9262 { ac_try
='test -z "$ac_c_werror_flag"
9263 || test ! -s conftest.err'
9264 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9267 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9268 (exit $ac_status); }; } &&
9269 { ac_try
='test -s conftest$ac_exeext'
9270 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9273 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9274 (exit $ac_status); }; }; then
9275 ac_cv_func_wctype
=yes
9277 echo "$as_me: failed program was:" >&5
9278 sed 's/^/| /' conftest.
$ac_ext >&5
9280 ac_cv_func_wctype
=no
9282 rm -f conftest.err conftest.
$ac_objext \
9283 conftest
$ac_exeext conftest.
$ac_ext
9285 echo "$as_me:$LINENO: result: $ac_cv_func_wctype" >&5
9286 echo "${ECHO_T}$ac_cv_func_wctype" >&6
9287 if test $ac_cv_func_wctype = yes; then
9291 echo "$as_me:$LINENO: checking for wctype in -lw" >&5
9292 echo $ECHO_N "checking for wctype in -lw... $ECHO_C" >&6
9293 if test "${ac_cv_lib_w_wctype+set}" = set; then
9294 echo $ECHO_N "(cached) $ECHO_C" >&6
9296 ac_check_lib_save_LIBS
=$LIBS
9298 cat >conftest.
$ac_ext <<_ACEOF
9301 cat confdefs.h
>>conftest.
$ac_ext
9302 cat >>conftest.
$ac_ext <<_ACEOF
9303 /* end confdefs.h. */
9305 /* Override any gcc2 internal prototype to avoid an error. */
9309 /* We use char because int might match the return type of a gcc2
9310 builtin and then its argument prototype would still apply. */
9320 rm -f conftest.
$ac_objext conftest
$ac_exeext
9321 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
9322 (eval $ac_link) 2>conftest.er1
9324 grep -v '^ *+' conftest.er1
>conftest.err
9326 cat conftest.err
>&5
9327 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9328 (exit $ac_status); } &&
9329 { ac_try
='test -z "$ac_c_werror_flag"
9330 || test ! -s conftest.err'
9331 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9334 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9335 (exit $ac_status); }; } &&
9336 { ac_try
='test -s conftest$ac_exeext'
9337 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9340 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9341 (exit $ac_status); }; }; then
9342 ac_cv_lib_w_wctype
=yes
9344 echo "$as_me: failed program was:" >&5
9345 sed 's/^/| /' conftest.
$ac_ext >&5
9347 ac_cv_lib_w_wctype
=no
9349 rm -f conftest.err conftest.
$ac_objext \
9350 conftest
$ac_exeext conftest.
$ac_ext
9351 LIBS
=$ac_check_lib_save_LIBS
9353 echo "$as_me:$LINENO: result: $ac_cv_lib_w_wctype" >&5
9354 echo "${ECHO_T}$ac_cv_lib_w_wctype" >&6
9355 if test $ac_cv_lib_w_wctype = yes; then
9356 cat >>confdefs.h
<<_ACEOF
9367 # Some systems (e.g. Solaris) have `gethostbyname' in libnsl.
9368 echo "$as_me:$LINENO: checking for library containing gethostbyname" >&5
9369 echo $ECHO_N "checking for library containing gethostbyname... $ECHO_C" >&6
9370 if test "${ac_cv_search_gethostbyname+set}" = set; then
9371 echo $ECHO_N "(cached) $ECHO_C" >&6
9373 ac_func_search_save_LIBS
=$LIBS
9374 ac_cv_search_gethostbyname
=no
9375 cat >conftest.
$ac_ext <<_ACEOF
9378 cat confdefs.h
>>conftest.
$ac_ext
9379 cat >>conftest.
$ac_ext <<_ACEOF
9380 /* end confdefs.h. */
9382 /* Override any gcc2 internal prototype to avoid an error. */
9386 /* We use char because int might match the return type of a gcc2
9387 builtin and then its argument prototype would still apply. */
9388 char gethostbyname ();
9397 rm -f conftest.
$ac_objext conftest
$ac_exeext
9398 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
9399 (eval $ac_link) 2>conftest.er1
9401 grep -v '^ *+' conftest.er1
>conftest.err
9403 cat conftest.err
>&5
9404 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9405 (exit $ac_status); } &&
9406 { ac_try
='test -z "$ac_c_werror_flag"
9407 || test ! -s conftest.err'
9408 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9411 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9412 (exit $ac_status); }; } &&
9413 { ac_try
='test -s conftest$ac_exeext'
9414 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9417 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9418 (exit $ac_status); }; }; then
9419 ac_cv_search_gethostbyname
="none required"
9421 echo "$as_me: failed program was:" >&5
9422 sed 's/^/| /' conftest.
$ac_ext >&5
9425 rm -f conftest.err conftest.
$ac_objext \
9426 conftest
$ac_exeext conftest.
$ac_ext
9427 if test "$ac_cv_search_gethostbyname" = no
; then
9428 for ac_lib
in nsl
; do
9429 LIBS
="-l$ac_lib $ac_func_search_save_LIBS"
9430 cat >conftest.
$ac_ext <<_ACEOF
9433 cat confdefs.h
>>conftest.
$ac_ext
9434 cat >>conftest.
$ac_ext <<_ACEOF
9435 /* end confdefs.h. */
9437 /* Override any gcc2 internal prototype to avoid an error. */
9441 /* We use char because int might match the return type of a gcc2
9442 builtin and then its argument prototype would still apply. */
9443 char gethostbyname ();
9452 rm -f conftest.
$ac_objext conftest
$ac_exeext
9453 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
9454 (eval $ac_link) 2>conftest.er1
9456 grep -v '^ *+' conftest.er1
>conftest.err
9458 cat conftest.err
>&5
9459 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9460 (exit $ac_status); } &&
9461 { ac_try
='test -z "$ac_c_werror_flag"
9462 || test ! -s conftest.err'
9463 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9466 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9467 (exit $ac_status); }; } &&
9468 { ac_try
='test -s conftest$ac_exeext'
9469 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9472 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9473 (exit $ac_status); }; }; then
9474 ac_cv_search_gethostbyname
="-l$ac_lib"
9477 echo "$as_me: failed program was:" >&5
9478 sed 's/^/| /' conftest.
$ac_ext >&5
9481 rm -f conftest.err conftest.
$ac_objext \
9482 conftest
$ac_exeext conftest.
$ac_ext
9485 LIBS
=$ac_func_search_save_LIBS
9487 echo "$as_me:$LINENO: result: $ac_cv_search_gethostbyname" >&5
9488 echo "${ECHO_T}$ac_cv_search_gethostbyname" >&6
9489 if test "$ac_cv_search_gethostbyname" != no
; then
9490 test "$ac_cv_search_gethostbyname" = "none required" || LIBS
="$ac_cv_search_gethostbyname $LIBS"
9495 # Some systems (e.g. Solaris) have `socketpair' in libsocket.
9496 echo "$as_me:$LINENO: checking for library containing socketpair" >&5
9497 echo $ECHO_N "checking for library containing socketpair... $ECHO_C" >&6
9498 if test "${ac_cv_search_socketpair+set}" = set; then
9499 echo $ECHO_N "(cached) $ECHO_C" >&6
9501 ac_func_search_save_LIBS
=$LIBS
9502 ac_cv_search_socketpair
=no
9503 cat >conftest.
$ac_ext <<_ACEOF
9506 cat confdefs.h
>>conftest.
$ac_ext
9507 cat >>conftest.
$ac_ext <<_ACEOF
9508 /* end confdefs.h. */
9510 /* Override any gcc2 internal prototype to avoid an error. */
9514 /* We use char because int might match the return type of a gcc2
9515 builtin and then its argument prototype would still apply. */
9525 rm -f conftest.
$ac_objext conftest
$ac_exeext
9526 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
9527 (eval $ac_link) 2>conftest.er1
9529 grep -v '^ *+' conftest.er1
>conftest.err
9531 cat conftest.err
>&5
9532 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9533 (exit $ac_status); } &&
9534 { ac_try
='test -z "$ac_c_werror_flag"
9535 || test ! -s conftest.err'
9536 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9539 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9540 (exit $ac_status); }; } &&
9541 { ac_try
='test -s conftest$ac_exeext'
9542 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9545 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9546 (exit $ac_status); }; }; then
9547 ac_cv_search_socketpair
="none required"
9549 echo "$as_me: failed program was:" >&5
9550 sed 's/^/| /' conftest.
$ac_ext >&5
9553 rm -f conftest.err conftest.
$ac_objext \
9554 conftest
$ac_exeext conftest.
$ac_ext
9555 if test "$ac_cv_search_socketpair" = no
; then
9556 for ac_lib
in socket
; do
9557 LIBS
="-l$ac_lib $ac_func_search_save_LIBS"
9558 cat >conftest.
$ac_ext <<_ACEOF
9561 cat confdefs.h
>>conftest.
$ac_ext
9562 cat >>conftest.
$ac_ext <<_ACEOF
9563 /* end confdefs.h. */
9565 /* Override any gcc2 internal prototype to avoid an error. */
9569 /* We use char because int might match the return type of a gcc2
9570 builtin and then its argument prototype would still apply. */
9580 rm -f conftest.
$ac_objext conftest
$ac_exeext
9581 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
9582 (eval $ac_link) 2>conftest.er1
9584 grep -v '^ *+' conftest.er1
>conftest.err
9586 cat conftest.err
>&5
9587 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9588 (exit $ac_status); } &&
9589 { ac_try
='test -z "$ac_c_werror_flag"
9590 || test ! -s conftest.err'
9591 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9594 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9595 (exit $ac_status); }; } &&
9596 { ac_try
='test -s conftest$ac_exeext'
9597 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9600 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9601 (exit $ac_status); }; }; then
9602 ac_cv_search_socketpair
="-l$ac_lib"
9605 echo "$as_me: failed program was:" >&5
9606 sed 's/^/| /' conftest.
$ac_ext >&5
9609 rm -f conftest.err conftest.
$ac_objext \
9610 conftest
$ac_exeext conftest.
$ac_ext
9613 LIBS
=$ac_func_search_save_LIBS
9615 echo "$as_me:$LINENO: result: $ac_cv_search_socketpair" >&5
9616 echo "${ECHO_T}$ac_cv_search_socketpair" >&6
9617 if test "$ac_cv_search_socketpair" != no
; then
9618 test "$ac_cv_search_socketpair" = "none required" || LIBS
="$ac_cv_search_socketpair $LIBS"
9623 # Link in zlib if we can. This allows us to read compressed debug sections.
9624 echo "$as_me:$LINENO: checking for library containing zlibVersion" >&5
9625 echo $ECHO_N "checking for library containing zlibVersion... $ECHO_C" >&6
9626 if test "${ac_cv_search_zlibVersion+set}" = set; then
9627 echo $ECHO_N "(cached) $ECHO_C" >&6
9629 ac_func_search_save_LIBS
=$LIBS
9630 ac_cv_search_zlibVersion
=no
9631 cat >conftest.
$ac_ext <<_ACEOF
9634 cat confdefs.h
>>conftest.
$ac_ext
9635 cat >>conftest.
$ac_ext <<_ACEOF
9636 /* end confdefs.h. */
9638 /* Override any gcc2 internal prototype to avoid an error. */
9642 /* We use char because int might match the return type of a gcc2
9643 builtin and then its argument prototype would still apply. */
9644 char zlibVersion ();
9653 rm -f conftest.
$ac_objext conftest
$ac_exeext
9654 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
9655 (eval $ac_link) 2>conftest.er1
9657 grep -v '^ *+' conftest.er1
>conftest.err
9659 cat conftest.err
>&5
9660 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9661 (exit $ac_status); } &&
9662 { ac_try
='test -z "$ac_c_werror_flag"
9663 || test ! -s conftest.err'
9664 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9667 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9668 (exit $ac_status); }; } &&
9669 { ac_try
='test -s conftest$ac_exeext'
9670 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9673 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9674 (exit $ac_status); }; }; then
9675 ac_cv_search_zlibVersion
="none required"
9677 echo "$as_me: failed program was:" >&5
9678 sed 's/^/| /' conftest.
$ac_ext >&5
9681 rm -f conftest.err conftest.
$ac_objext \
9682 conftest
$ac_exeext conftest.
$ac_ext
9683 if test "$ac_cv_search_zlibVersion" = no
; then
9685 LIBS
="-l$ac_lib $ac_func_search_save_LIBS"
9686 cat >conftest.
$ac_ext <<_ACEOF
9689 cat confdefs.h
>>conftest.
$ac_ext
9690 cat >>conftest.
$ac_ext <<_ACEOF
9691 /* end confdefs.h. */
9693 /* Override any gcc2 internal prototype to avoid an error. */
9697 /* We use char because int might match the return type of a gcc2
9698 builtin and then its argument prototype would still apply. */
9699 char zlibVersion ();
9708 rm -f conftest.
$ac_objext conftest
$ac_exeext
9709 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
9710 (eval $ac_link) 2>conftest.er1
9712 grep -v '^ *+' conftest.er1
>conftest.err
9714 cat conftest.err
>&5
9715 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9716 (exit $ac_status); } &&
9717 { ac_try
='test -z "$ac_c_werror_flag"
9718 || test ! -s conftest.err'
9719 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9722 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9723 (exit $ac_status); }; } &&
9724 { ac_try
='test -s conftest$ac_exeext'
9725 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9728 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9729 (exit $ac_status); }; }; then
9730 ac_cv_search_zlibVersion
="-l$ac_lib"
9733 echo "$as_me: failed program was:" >&5
9734 sed 's/^/| /' conftest.
$ac_ext >&5
9737 rm -f conftest.err conftest.
$ac_objext \
9738 conftest
$ac_exeext conftest.
$ac_ext
9741 LIBS
=$ac_func_search_save_LIBS
9743 echo "$as_me:$LINENO: result: $ac_cv_search_zlibVersion" >&5
9744 echo "${ECHO_T}$ac_cv_search_zlibVersion" >&6
9745 if test "$ac_cv_search_zlibVersion" != no
; then
9746 test "$ac_cv_search_zlibVersion" = "none required" || LIBS
="$ac_cv_search_zlibVersion $LIBS"
9748 for ac_header
in zlib.h
9750 as_ac_Header
=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
9751 if eval "test \"\${$as_ac_Header+set}\" = set"; then
9752 echo "$as_me:$LINENO: checking for $ac_header" >&5
9753 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
9754 if eval "test \"\${$as_ac_Header+set}\" = set"; then
9755 echo $ECHO_N "(cached) $ECHO_C" >&6
9757 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
9758 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
9760 # Is the header compilable?
9761 echo "$as_me:$LINENO: checking $ac_header usability" >&5
9762 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
9763 cat >conftest.
$ac_ext <<_ACEOF
9766 cat confdefs.h
>>conftest.
$ac_ext
9767 cat >>conftest.
$ac_ext <<_ACEOF
9768 /* end confdefs.h. */
9769 $ac_includes_default
9770 #include <$ac_header>
9772 rm -f conftest.
$ac_objext
9773 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
9774 (eval $ac_compile) 2>conftest.er1
9776 grep -v '^ *+' conftest.er1
>conftest.err
9778 cat conftest.err
>&5
9779 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9780 (exit $ac_status); } &&
9781 { ac_try
='test -z "$ac_c_werror_flag"
9782 || test ! -s conftest.err'
9783 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9786 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9787 (exit $ac_status); }; } &&
9788 { ac_try
='test -s conftest.$ac_objext'
9789 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9792 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9793 (exit $ac_status); }; }; then
9794 ac_header_compiler
=yes
9796 echo "$as_me: failed program was:" >&5
9797 sed 's/^/| /' conftest.
$ac_ext >&5
9799 ac_header_compiler
=no
9801 rm -f conftest.err conftest.
$ac_objext conftest.
$ac_ext
9802 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
9803 echo "${ECHO_T}$ac_header_compiler" >&6
9805 # Is the header present?
9806 echo "$as_me:$LINENO: checking $ac_header presence" >&5
9807 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
9808 cat >conftest.
$ac_ext <<_ACEOF
9811 cat confdefs.h
>>conftest.
$ac_ext
9812 cat >>conftest.
$ac_ext <<_ACEOF
9813 /* end confdefs.h. */
9814 #include <$ac_header>
9816 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
9817 (eval $ac_cpp conftest.
$ac_ext) 2>conftest.er1
9819 grep -v '^ *+' conftest.er1
>conftest.err
9821 cat conftest.err
>&5
9822 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9823 (exit $ac_status); } >/dev
/null
; then
9824 if test -s conftest.err
; then
9825 ac_cpp_err
=$ac_c_preproc_warn_flag
9826 ac_cpp_err
=$ac_cpp_err$ac_c_werror_flag
9833 if test -z "$ac_cpp_err"; then
9834 ac_header_preproc
=yes
9836 echo "$as_me: failed program was:" >&5
9837 sed 's/^/| /' conftest.
$ac_ext >&5
9839 ac_header_preproc
=no
9841 rm -f conftest.err conftest.
$ac_ext
9842 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
9843 echo "${ECHO_T}$ac_header_preproc" >&6
9845 # So? What about this header?
9846 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
9848 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
9849 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
9850 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
9851 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
9852 ac_header_preproc
=yes
9855 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
9856 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
9857 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
9858 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
9859 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
9860 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
9861 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
9862 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
9863 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
9864 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
9865 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
9866 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
9869 ## ------------------------------------------ ##
9870 ## Report this to the AC_PACKAGE_NAME lists. ##
9871 ## ------------------------------------------ ##
9874 sed "s/^/$as_me: WARNING: /" >&2
9877 echo "$as_me:$LINENO: checking for $ac_header" >&5
9878 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
9879 if eval "test \"\${$as_ac_Header+set}\" = set"; then
9880 echo $ECHO_N "(cached) $ECHO_C" >&6
9882 eval "$as_ac_Header=\$ac_header_preproc"
9884 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
9885 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
9888 if test `eval echo '${'$as_ac_Header'}'` = yes; then
9889 cat >>confdefs.h
<<_ACEOF
9890 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
9900 # On HP/UX we may need libxpdl for dlgetmodinfo (used by solib-pa64.c).
9901 echo "$as_me:$LINENO: checking for library containing dlgetmodinfo" >&5
9902 echo $ECHO_N "checking for library containing dlgetmodinfo... $ECHO_C" >&6
9903 if test "${ac_cv_search_dlgetmodinfo+set}" = set; then
9904 echo $ECHO_N "(cached) $ECHO_C" >&6
9906 ac_func_search_save_LIBS
=$LIBS
9907 ac_cv_search_dlgetmodinfo
=no
9908 cat >conftest.
$ac_ext <<_ACEOF
9911 cat confdefs.h
>>conftest.
$ac_ext
9912 cat >>conftest.
$ac_ext <<_ACEOF
9913 /* end confdefs.h. */
9915 /* Override any gcc2 internal prototype to avoid an error. */
9919 /* We use char because int might match the return type of a gcc2
9920 builtin and then its argument prototype would still apply. */
9921 char dlgetmodinfo ();
9930 rm -f conftest.
$ac_objext conftest
$ac_exeext
9931 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
9932 (eval $ac_link) 2>conftest.er1
9934 grep -v '^ *+' conftest.er1
>conftest.err
9936 cat conftest.err
>&5
9937 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9938 (exit $ac_status); } &&
9939 { ac_try
='test -z "$ac_c_werror_flag"
9940 || test ! -s conftest.err'
9941 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9944 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9945 (exit $ac_status); }; } &&
9946 { ac_try
='test -s conftest$ac_exeext'
9947 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9950 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9951 (exit $ac_status); }; }; then
9952 ac_cv_search_dlgetmodinfo
="none required"
9954 echo "$as_me: failed program was:" >&5
9955 sed 's/^/| /' conftest.
$ac_ext >&5
9958 rm -f conftest.err conftest.
$ac_objext \
9959 conftest
$ac_exeext conftest.
$ac_ext
9960 if test "$ac_cv_search_dlgetmodinfo" = no
; then
9961 for ac_lib
in dl xpdl
; do
9962 LIBS
="-l$ac_lib $ac_func_search_save_LIBS"
9963 cat >conftest.
$ac_ext <<_ACEOF
9966 cat confdefs.h
>>conftest.
$ac_ext
9967 cat >>conftest.
$ac_ext <<_ACEOF
9968 /* end confdefs.h. */
9970 /* Override any gcc2 internal prototype to avoid an error. */
9974 /* We use char because int might match the return type of a gcc2
9975 builtin and then its argument prototype would still apply. */
9976 char dlgetmodinfo ();
9985 rm -f conftest.
$ac_objext conftest
$ac_exeext
9986 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
9987 (eval $ac_link) 2>conftest.er1
9989 grep -v '^ *+' conftest.er1
>conftest.err
9991 cat conftest.err
>&5
9992 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9993 (exit $ac_status); } &&
9994 { ac_try
='test -z "$ac_c_werror_flag"
9995 || test ! -s conftest.err'
9996 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9999 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10000 (exit $ac_status); }; } &&
10001 { ac_try
='test -s conftest$ac_exeext'
10002 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10003 (eval $ac_try) 2>&5
10005 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10006 (exit $ac_status); }; }; then
10007 ac_cv_search_dlgetmodinfo
="-l$ac_lib"
10010 echo "$as_me: failed program was:" >&5
10011 sed 's/^/| /' conftest.
$ac_ext >&5
10014 rm -f conftest.err conftest.
$ac_objext \
10015 conftest
$ac_exeext conftest.
$ac_ext
10018 LIBS
=$ac_func_search_save_LIBS
10020 echo "$as_me:$LINENO: result: $ac_cv_search_dlgetmodinfo" >&5
10021 echo "${ECHO_T}$ac_cv_search_dlgetmodinfo" >&6
10022 if test "$ac_cv_search_dlgetmodinfo" != no
; then
10023 test "$ac_cv_search_dlgetmodinfo" = "none required" || LIBS
="$ac_cv_search_dlgetmodinfo $LIBS"
10031 # Check whether --with-libiconv-prefix or --without-libiconv-prefix was given.
10032 if test "${with_libiconv_prefix+set}" = set; then
10033 withval
="$with_libiconv_prefix"
10035 for dir
in `echo "$withval" | tr : ' '`; do
10036 if test -d $dir/include
; then LIBICONV_INCLUDE
="-I$dir/include"; fi
10037 if test -d $dir/lib
; then LIBICONV_LIBDIR
="-L$dir/lib"; fi
10042 BUILD_LIBICONV_LIBDIR
="-L../libiconv/lib/.libs -L../libiconv/lib/_libs"
10043 BUILD_LIBICONV_INCLUDE
="-I../libiconv/include"
10045 echo "$as_me:$LINENO: checking for iconv" >&5
10046 echo $ECHO_N "checking for iconv... $ECHO_C" >&6
10047 if test "${am_cv_func_iconv+set}" = set; then
10048 echo $ECHO_N "(cached) $ECHO_C" >&6
10051 am_cv_func_iconv
="no, consider installing GNU libiconv"
10053 am_cv_use_build_libiconv
=no
10054 # First, try to find iconv in libc.
10055 cat >conftest.
$ac_ext <<_ACEOF
10058 cat confdefs.h
>>conftest.
$ac_ext
10059 cat >>conftest.
$ac_ext <<_ACEOF
10060 /* end confdefs.h. */
10061 #include <stdlib.h>
10066 iconv_t cd = iconv_open("","");
10067 iconv(cd,NULL,NULL,NULL,NULL);
10073 rm -f conftest.
$ac_objext conftest
$ac_exeext
10074 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
10075 (eval $ac_link) 2>conftest.er1
10077 grep -v '^ *+' conftest.er1
>conftest.err
10079 cat conftest.err
>&5
10080 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10081 (exit $ac_status); } &&
10082 { ac_try
='test -z "$ac_c_werror_flag"
10083 || test ! -s conftest.err'
10084 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10085 (eval $ac_try) 2>&5
10087 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10088 (exit $ac_status); }; } &&
10089 { ac_try
='test -s conftest$ac_exeext'
10090 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10091 (eval $ac_try) 2>&5
10093 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10094 (exit $ac_status); }; }; then
10095 am_cv_func_iconv
=yes
10097 echo "$as_me: failed program was:" >&5
10098 sed 's/^/| /' conftest.
$ac_ext >&5
10101 rm -f conftest.err conftest.
$ac_objext \
10102 conftest
$ac_exeext conftest.
$ac_ext
10104 # If iconv was not in libc, try -liconv. In this case, arrange to
10105 # look in the libiconv prefix, if it was specified by the user.
10106 if test "$am_cv_func_iconv" != yes; then
10107 am_save_CPPFLAGS
="$CPPFLAGS"
10108 am_save_LIBS
="$LIBS"
10109 if test -n "$LIBICONV_INCLUDE"; then
10110 CPPFLAGS
="$CPPFLAGS $LIBICONV_INCLUDE"
10111 LIBS
="$LIBS $LIBICONV_LIBDIR"
10113 LIBS
="$LIBS -liconv"
10114 cat >conftest.
$ac_ext <<_ACEOF
10117 cat confdefs.h
>>conftest.
$ac_ext
10118 cat >>conftest.
$ac_ext <<_ACEOF
10119 /* end confdefs.h. */
10120 #include <stdlib.h>
10125 iconv_t cd = iconv_open("","");
10126 iconv(cd,NULL,NULL,NULL,NULL);
10132 rm -f conftest.
$ac_objext conftest
$ac_exeext
10133 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
10134 (eval $ac_link) 2>conftest.er1
10136 grep -v '^ *+' conftest.er1
>conftest.err
10138 cat conftest.err
>&5
10139 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10140 (exit $ac_status); } &&
10141 { ac_try
='test -z "$ac_c_werror_flag"
10142 || test ! -s conftest.err'
10143 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10144 (eval $ac_try) 2>&5
10146 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10147 (exit $ac_status); }; } &&
10148 { ac_try
='test -s conftest$ac_exeext'
10149 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10150 (eval $ac_try) 2>&5
10152 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10153 (exit $ac_status); }; }; then
10154 am_cv_lib_iconv
=yes
10155 am_cv_func_iconv
=yes
10157 echo "$as_me: failed program was:" >&5
10158 sed 's/^/| /' conftest.
$ac_ext >&5
10161 rm -f conftest.err conftest.
$ac_objext \
10162 conftest
$ac_exeext conftest.
$ac_ext
10163 LIBS
="$am_save_LIBS"
10164 CPPFLAGS
="$am_save_CPPFLAGS"
10167 # If that didn't work, try to find libiconv in the build tree.
10168 if test "$am_cv_func_iconv" != yes && test -d ..
/libiconv
; then
10169 am_save_LIBS
="$LIBS"
10170 am_save_CPPFLAGS
="$CPPFLAGS"
10171 LIBS
="$LIBS $BUILD_LIBICONV_LIBDIR -liconv"
10172 CPPFLAGS
="$CPPFLAGS $BUILD_LIBICONV_INCLUDE"
10173 cat >conftest.
$ac_ext <<_ACEOF
10176 cat confdefs.h
>>conftest.
$ac_ext
10177 cat >>conftest.
$ac_ext <<_ACEOF
10178 /* end confdefs.h. */
10179 #include <stdlib.h>
10184 iconv_t cd = iconv_open("","");
10185 iconv(cd,NULL,NULL,NULL,NULL);
10191 rm -f conftest.
$ac_objext conftest
$ac_exeext
10192 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
10193 (eval $ac_link) 2>conftest.er1
10195 grep -v '^ *+' conftest.er1
>conftest.err
10197 cat conftest.err
>&5
10198 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10199 (exit $ac_status); } &&
10200 { ac_try
='test -z "$ac_c_werror_flag"
10201 || test ! -s conftest.err'
10202 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10203 (eval $ac_try) 2>&5
10205 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10206 (exit $ac_status); }; } &&
10207 { ac_try
='test -s conftest$ac_exeext'
10208 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10209 (eval $ac_try) 2>&5
10211 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10212 (exit $ac_status); }; }; then
10213 am_cv_use_build_libiconv
=yes
10214 am_cv_lib_iconv
=yes
10215 am_cv_func_iconv
=yes
10217 echo "$as_me: failed program was:" >&5
10218 sed 's/^/| /' conftest.
$ac_ext >&5
10221 rm -f conftest.err conftest.
$ac_objext \
10222 conftest
$ac_exeext conftest.
$ac_ext
10223 LIBS
="$am_save_LIBS"
10224 CPPFLAGS
="$am_save_CPPFLAGS"
10228 echo "$as_me:$LINENO: result: $am_cv_func_iconv" >&5
10229 echo "${ECHO_T}$am_cv_func_iconv" >&6
10231 # Set the various flags based on the cache variables. We can't rely
10232 # on the flags to remain set from the above code, due to caching.
10234 if test "$am_cv_lib_iconv" = yes; then
10240 if test "$am_cv_use_build_libiconv" = yes; then
10241 LIBICONV_LIBDIR
="$BUILD_LIBICONV_LIBDIR"
10242 LIBICONV_INCLUDE
="$BUILD_LIBICONV_INCLUDE"
10244 CPPFLAGS
="$CPPFLAGS $LIBICONV_INCLUDE"
10245 LIBS
="$LIBS $LIBICONV_LIBDIR $LIBICONV"
10247 if test "$am_cv_func_iconv" = yes; then
10249 cat >>confdefs.h
<<\_ACEOF
10250 #define HAVE_ICONV 1
10253 echo "$as_me:$LINENO: checking for iconv declaration" >&5
10254 echo $ECHO_N "checking for iconv declaration... $ECHO_C" >&6
10255 if test "${am_cv_proto_iconv+set}" = set; then
10256 echo $ECHO_N "(cached) $ECHO_C" >&6
10259 cat >conftest.
$ac_ext <<_ACEOF
10262 cat confdefs.h
>>conftest.
$ac_ext
10263 cat >>conftest.
$ac_ext <<_ACEOF
10264 /* end confdefs.h. */
10266 #include <stdlib.h>
10272 #if defined(__STDC__) || defined(__cplusplus)
10273 size_t iconv (iconv_t cd, char * *inbuf, size_t *inbytesleft, char * *outbuf, size_t *outbytesleft);
10286 rm -f conftest.
$ac_objext
10287 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
10288 (eval $ac_compile) 2>conftest.er1
10290 grep -v '^ *+' conftest.er1
>conftest.err
10292 cat conftest.err
>&5
10293 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10294 (exit $ac_status); } &&
10295 { ac_try
='test -z "$ac_c_werror_flag"
10296 || test ! -s conftest.err'
10297 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10298 (eval $ac_try) 2>&5
10300 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10301 (exit $ac_status); }; } &&
10302 { ac_try
='test -s conftest.$ac_objext'
10303 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10304 (eval $ac_try) 2>&5
10306 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10307 (exit $ac_status); }; }; then
10308 am_cv_proto_iconv_arg1
=""
10310 echo "$as_me: failed program was:" >&5
10311 sed 's/^/| /' conftest.
$ac_ext >&5
10313 am_cv_proto_iconv_arg1
="const"
10315 rm -f conftest.err conftest.
$ac_objext conftest.
$ac_ext
10316 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);"
10319 am_cv_proto_iconv
=`echo "$am_cv_proto_iconv" | tr -s ' ' | sed -e 's/( /(/'`
10320 echo "$as_me:$LINENO: result: ${ac_t:-
10321 }$am_cv_proto_iconv" >&5
10322 echo "${ECHO_T}${ac_t:-
10323 }$am_cv_proto_iconv" >&6
10325 cat >>confdefs.h
<<_ACEOF
10326 #define ICONV_CONST $am_cv_proto_iconv_arg1
10332 # On alpha-osf, it appears that libtermcap and libcurses are not compatible.
10333 # There is a very specific comment in /usr/include/curses.h explaining that
10334 # termcap routines built into libcurses must not be used.
10336 # The symptoms we observed so far is GDB unexpectedly changing
10337 # the terminal settings when tgetent is called - this is particularly
10338 # visible as the output is missing carriage returns, and so rapidly
10339 # becomes very hard to read.
10341 # The readline configure script has already decided that libtermcap
10342 # was enough for its purposes, and so decided to build readline using
10343 # libtermcap. Since the TUI mode requires curses, building GDB with
10344 # TUI enabled results in both libraries to be used at the same time,
10345 # which is not allowed. This basically means that GDB with TUI is
10346 # broken on alpha-osf.
10350 if "$enable_tui" = "yes"; then
10351 { { echo "$as_me:$LINENO: error: Building GDB with TUI mode is not supported on this host" >&5
10352 echo "$as_me: error: Building GDB with TUI mode is not supported on this host" >&2;}
10353 { (exit 1); exit 1; }; }
10355 if "$enable_tui" = "auto"; then
10361 # For the TUI, we need enhanced curses functionality.
10362 if test x
"$enable_tui" != xno
; then
10367 if test x
"$prefer_curses" = xyes
; then
10368 # FIXME: kettenis/20040905: We prefer ncurses over the vendor-supplied
10369 # curses library because the latter might not provide all the
10370 # functionality we need. However, this leads to problems on systems
10371 # where the linker searches /usr/local/lib, but the compiler doesn't
10372 # search /usr/local/include, if ncurses is installed in /usr/local. A
10373 # default installation of ncurses on alpha*-dec-osf* will lead to such
10375 echo "$as_me:$LINENO: checking for library containing waddstr" >&5
10376 echo $ECHO_N "checking for library containing waddstr... $ECHO_C" >&6
10377 if test "${ac_cv_search_waddstr+set}" = set; then
10378 echo $ECHO_N "(cached) $ECHO_C" >&6
10380 ac_func_search_save_LIBS
=$LIBS
10381 ac_cv_search_waddstr
=no
10382 cat >conftest.
$ac_ext <<_ACEOF
10385 cat confdefs.h
>>conftest.
$ac_ext
10386 cat >>conftest.
$ac_ext <<_ACEOF
10387 /* end confdefs.h. */
10389 /* Override any gcc2 internal prototype to avoid an error. */
10393 /* We use char because int might match the return type of a gcc2
10394 builtin and then its argument prototype would still apply. */
10404 rm -f conftest.
$ac_objext conftest
$ac_exeext
10405 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
10406 (eval $ac_link) 2>conftest.er1
10408 grep -v '^ *+' conftest.er1
>conftest.err
10410 cat conftest.err
>&5
10411 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10412 (exit $ac_status); } &&
10413 { ac_try
='test -z "$ac_c_werror_flag"
10414 || test ! -s conftest.err'
10415 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10416 (eval $ac_try) 2>&5
10418 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10419 (exit $ac_status); }; } &&
10420 { ac_try
='test -s conftest$ac_exeext'
10421 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10422 (eval $ac_try) 2>&5
10424 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10425 (exit $ac_status); }; }; then
10426 ac_cv_search_waddstr
="none required"
10428 echo "$as_me: failed program was:" >&5
10429 sed 's/^/| /' conftest.
$ac_ext >&5
10432 rm -f conftest.err conftest.
$ac_objext \
10433 conftest
$ac_exeext conftest.
$ac_ext
10434 if test "$ac_cv_search_waddstr" = no
; then
10435 for ac_lib
in ncurses cursesX curses
; do
10436 LIBS
="-l$ac_lib $ac_func_search_save_LIBS"
10437 cat >conftest.
$ac_ext <<_ACEOF
10440 cat confdefs.h
>>conftest.
$ac_ext
10441 cat >>conftest.
$ac_ext <<_ACEOF
10442 /* end confdefs.h. */
10444 /* Override any gcc2 internal prototype to avoid an error. */
10448 /* We use char because int might match the return type of a gcc2
10449 builtin and then its argument prototype would still apply. */
10459 rm -f conftest.
$ac_objext conftest
$ac_exeext
10460 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
10461 (eval $ac_link) 2>conftest.er1
10463 grep -v '^ *+' conftest.er1
>conftest.err
10465 cat conftest.err
>&5
10466 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10467 (exit $ac_status); } &&
10468 { ac_try
='test -z "$ac_c_werror_flag"
10469 || test ! -s conftest.err'
10470 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10471 (eval $ac_try) 2>&5
10473 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10474 (exit $ac_status); }; } &&
10475 { ac_try
='test -s conftest$ac_exeext'
10476 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10477 (eval $ac_try) 2>&5
10479 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10480 (exit $ac_status); }; }; then
10481 ac_cv_search_waddstr
="-l$ac_lib"
10484 echo "$as_me: failed program was:" >&5
10485 sed 's/^/| /' conftest.
$ac_ext >&5
10488 rm -f conftest.err conftest.
$ac_objext \
10489 conftest
$ac_exeext conftest.
$ac_ext
10492 LIBS
=$ac_func_search_save_LIBS
10494 echo "$as_me:$LINENO: result: $ac_cv_search_waddstr" >&5
10495 echo "${ECHO_T}$ac_cv_search_waddstr" >&6
10496 if test "$ac_cv_search_waddstr" != no
; then
10497 test "$ac_cv_search_waddstr" = "none required" || LIBS
="$ac_cv_search_waddstr $LIBS"
10502 if test "$ac_cv_search_waddstr" != no
; then
10507 # Check whether we should enable the TUI, but only do so if we really
10509 if test x
"$enable_tui" != xno
; then
10510 if test -d $srcdir/tui
; then
10511 if test "$curses_found" != no
; then
10512 CONFIG_OBS
="$CONFIG_OBS \$(SUBDIR_TUI_OBS)"
10513 CONFIG_DEPS
="$CONFIG_DEPS \$(SUBDIR_TUI_DEPS)"
10514 CONFIG_SRCS
="$CONFIG_SRCS \$(SUBDIR_TUI_SRCS)"
10515 ENABLE_CFLAGS
="$ENABLE_CFLAGS \$(SUBDIR_TUI_CFLAGS)"
10516 CONFIG_ALL
="${CONFIG_ALL} all-tui"
10517 CONFIG_CLEAN
="${CONFIG_CLEAN} clean-tui"
10518 CONFIG_INSTALL
="${CONFIG_INSTALL} install-tui"
10519 CONFIG_UNINSTALL
="${CONFIG_UNINSTALL} uninstall-tui"
10521 if test x
"$enable_tui" = xyes
; then
10522 { { echo "$as_me:$LINENO: error: no enhanced curses library found; disable TUI" >&5
10523 echo "$as_me: error: no enhanced curses library found; disable TUI" >&2;}
10524 { (exit 1); exit 1; }; }
10526 { echo "$as_me:$LINENO: WARNING: no enhanced curses library found; disabling TUI" >&5
10527 echo "$as_me: WARNING: no enhanced curses library found; disabling TUI" >&2;}
10533 # Since GDB uses Readline, we need termcap functionality. In many
10534 # cases this will be provided by the curses library, but some systems
10535 # have a seperate termcap library, or no curses library at all.
10539 if test -d $srcdir/libtermcap
; then
10540 LIBS
="../libtermcap/libtermcap.a $LIBS"
10541 ac_cv_search_tgetent
="../libtermcap/libtermcap.a"
10544 ac_cv_search_tgetent
="none required"
10547 ac_cv_search_tgetent
="none required"
10548 CONFIG_OBS
="$CONFIG_OBS windows-termcap.o"
10552 # These are the libraries checked by Readline.
10553 echo "$as_me:$LINENO: checking for library containing tgetent" >&5
10554 echo $ECHO_N "checking for library containing tgetent... $ECHO_C" >&6
10555 if test "${ac_cv_search_tgetent+set}" = set; then
10556 echo $ECHO_N "(cached) $ECHO_C" >&6
10558 ac_func_search_save_LIBS
=$LIBS
10559 ac_cv_search_tgetent
=no
10560 cat >conftest.
$ac_ext <<_ACEOF
10563 cat confdefs.h
>>conftest.
$ac_ext
10564 cat >>conftest.
$ac_ext <<_ACEOF
10565 /* end confdefs.h. */
10567 /* Override any gcc2 internal prototype to avoid an error. */
10571 /* We use char because int might match the return type of a gcc2
10572 builtin and then its argument prototype would still apply. */
10582 rm -f conftest.
$ac_objext conftest
$ac_exeext
10583 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
10584 (eval $ac_link) 2>conftest.er1
10586 grep -v '^ *+' conftest.er1
>conftest.err
10588 cat conftest.err
>&5
10589 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10590 (exit $ac_status); } &&
10591 { ac_try
='test -z "$ac_c_werror_flag"
10592 || test ! -s conftest.err'
10593 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10594 (eval $ac_try) 2>&5
10596 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10597 (exit $ac_status); }; } &&
10598 { ac_try
='test -s conftest$ac_exeext'
10599 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10600 (eval $ac_try) 2>&5
10602 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10603 (exit $ac_status); }; }; then
10604 ac_cv_search_tgetent
="none required"
10606 echo "$as_me: failed program was:" >&5
10607 sed 's/^/| /' conftest.
$ac_ext >&5
10610 rm -f conftest.err conftest.
$ac_objext \
10611 conftest
$ac_exeext conftest.
$ac_ext
10612 if test "$ac_cv_search_tgetent" = no
; then
10613 for ac_lib
in termcap tinfo curses ncurses
; do
10614 LIBS
="-l$ac_lib $ac_func_search_save_LIBS"
10615 cat >conftest.
$ac_ext <<_ACEOF
10618 cat confdefs.h
>>conftest.
$ac_ext
10619 cat >>conftest.
$ac_ext <<_ACEOF
10620 /* end confdefs.h. */
10622 /* Override any gcc2 internal prototype to avoid an error. */
10626 /* We use char because int might match the return type of a gcc2
10627 builtin and then its argument prototype would still apply. */
10637 rm -f conftest.
$ac_objext conftest
$ac_exeext
10638 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
10639 (eval $ac_link) 2>conftest.er1
10641 grep -v '^ *+' conftest.er1
>conftest.err
10643 cat conftest.err
>&5
10644 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10645 (exit $ac_status); } &&
10646 { ac_try
='test -z "$ac_c_werror_flag"
10647 || test ! -s conftest.err'
10648 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10649 (eval $ac_try) 2>&5
10651 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10652 (exit $ac_status); }; } &&
10653 { ac_try
='test -s conftest$ac_exeext'
10654 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10655 (eval $ac_try) 2>&5
10657 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10658 (exit $ac_status); }; }; then
10659 ac_cv_search_tgetent
="-l$ac_lib"
10662 echo "$as_me: failed program was:" >&5
10663 sed 's/^/| /' conftest.
$ac_ext >&5
10666 rm -f conftest.err conftest.
$ac_objext \
10667 conftest
$ac_exeext conftest.
$ac_ext
10670 LIBS
=$ac_func_search_save_LIBS
10672 echo "$as_me:$LINENO: result: $ac_cv_search_tgetent" >&5
10673 echo "${ECHO_T}$ac_cv_search_tgetent" >&6
10674 if test "$ac_cv_search_tgetent" != no
; then
10675 test "$ac_cv_search_tgetent" = "none required" || LIBS
="$ac_cv_search_tgetent $LIBS"
10680 if test "$ac_cv_search_tgetent" = no
; then
10681 { { echo "$as_me:$LINENO: error: no termcap library found" >&5
10682 echo "$as_me: error: no termcap library found" >&2;}
10683 { (exit 1); exit 1; }; }
10687 # Check whether --with-system-readline or --without-system-readline was given.
10688 if test "${with_system_readline+set}" = set; then
10689 withval
="$with_system_readline"
10693 if test "$with_system_readline" = yes; then
10694 READLINE
=-lreadline
10698 READLINE
='$(READLINE_DIR)/libreadline.a'
10699 READLINE_DEPS
='$(READLINE)'
10700 READLINE_CFLAGS
='-I$(READLINE_SRC)/..'
10707 # Check whether --with-expat or --without-expat was given.
10708 if test "${with_expat+set}" = set; then
10709 withval
="$with_expat"
10714 echo "$as_me:$LINENO: checking whether to use expat" >&5
10715 echo $ECHO_N "checking whether to use expat... $ECHO_C" >&6
10716 echo "$as_me:$LINENO: result: $with_expat" >&5
10717 echo "${ECHO_T}$with_expat" >&6
10719 if test "${with_expat}" = no
; then
10720 { echo "$as_me:$LINENO: WARNING: expat support disabled; some features may be unavailable." >&5
10721 echo "$as_me: WARNING: expat support disabled; some features may be unavailable." >&2;}
10725 if test "X$prefix" = "XNONE"; then
10726 acl_final_prefix
="$ac_default_prefix"
10728 acl_final_prefix
="$prefix"
10730 if test "X$exec_prefix" = "XNONE"; then
10731 acl_final_exec_prefix
='${prefix}'
10733 acl_final_exec_prefix
="$exec_prefix"
10735 acl_save_prefix
="$prefix"
10736 prefix
="$acl_final_prefix"
10737 eval acl_final_exec_prefix
=\"$acl_final_exec_prefix\"
10738 prefix
="$acl_save_prefix"
10741 # Check whether --with-gnu-ld or --without-gnu-ld was given.
10742 if test "${with_gnu_ld+set}" = set; then
10743 withval
="$with_gnu_ld"
10744 test "$withval" = no || with_gnu_ld
=yes
10748 # Prepare PATH_SEPARATOR.
10749 # The user is always right.
10750 if test "${PATH_SEPARATOR+set}" != set; then
10751 echo "#! /bin/sh" >conf$$.sh
10752 echo "exit 0" >>conf$$.sh
10754 if (PATH
="/nonexistent;."; conf$$.sh
) >/dev
/null
2>&1; then
10762 if test "$GCC" = yes; then
10763 # Check if gcc -print-prog-name=ld gives a path.
10764 echo "$as_me:$LINENO: checking for ld used by GCC" >&5
10765 echo $ECHO_N "checking for ld used by GCC... $ECHO_C" >&6
10768 # gcc leaves a trailing carriage return which upsets mingw
10769 ac_prog
=`($CC -print-prog-name=ld) 2>&5 | tr -d '\015'` ;;
10771 ac_prog
=`($CC -print-prog-name=ld) 2>&5` ;;
10774 # Accept absolute paths.
10775 [\\/]* |
[A-Za-z
]:[\\/]*)
10776 re_direlt
='/[^/][^/]*/\.\./'
10777 # Canonicalize the path of ld
10778 ac_prog
=`echo $ac_prog| sed 's%\\\\%/%g'`
10779 while echo $ac_prog |
grep "$re_direlt" > /dev
/null
2>&1; do
10780 ac_prog
=`echo $ac_prog| sed "s%$re_direlt%/%"`
10782 test -z "$LD" && LD
="$ac_prog"
10785 # If it fails, then pretend we aren't using GCC.
10789 # If it is relative, then search for the first ld in PATH.
10790 with_gnu_ld
=unknown
10793 elif test "$with_gnu_ld" = yes; then
10794 echo "$as_me:$LINENO: checking for GNU ld" >&5
10795 echo $ECHO_N "checking for GNU ld... $ECHO_C" >&6
10797 echo "$as_me:$LINENO: checking for non-GNU ld" >&5
10798 echo $ECHO_N "checking for non-GNU ld... $ECHO_C" >&6
10800 if test "${acl_cv_path_LD+set}" = set; then
10801 echo $ECHO_N "(cached) $ECHO_C" >&6
10803 if test -z "$LD"; then
10804 IFS
="${IFS= }"; ac_save_ifs="$IFS"; IFS="${IFS}${PATH_SEPARATOR-:}"
10805 for ac_dir
in $PATH; do
10806 test -z "$ac_dir" && ac_dir
=.
10807 if test -f "$ac_dir/$ac_prog" ||
test -f "$ac_dir/$ac_prog$ac_exeext"; then
10808 acl_cv_path_LD
="$ac_dir/$ac_prog"
10809 # Check to see if the program is GNU ld. I'd rather use --version,
10810 # but apparently some GNU ld's only accept -v.
10811 # Break only if it was the GNU/non-GNU ld that we prefer.
10812 if "$acl_cv_path_LD" -v 2>&1 < /dev
/null |
egrep '(GNU|with BFD)' > /dev
/null
; then
10813 test "$with_gnu_ld" != no
&& break
10815 test "$with_gnu_ld" != yes && break
10821 acl_cv_path_LD
="$LD" # Let the user override the test with a path.
10825 LD
="$acl_cv_path_LD"
10826 if test -n "$LD"; then
10827 echo "$as_me:$LINENO: result: $LD" >&5
10828 echo "${ECHO_T}$LD" >&6
10830 echo "$as_me:$LINENO: result: no" >&5
10831 echo "${ECHO_T}no" >&6
10833 test -z "$LD" && { { echo "$as_me:$LINENO: error: no acceptable ld found in \$PATH" >&5
10834 echo "$as_me: error: no acceptable ld found in \$PATH" >&2;}
10835 { (exit 1); exit 1; }; }
10836 echo "$as_me:$LINENO: checking if the linker ($LD) is GNU ld" >&5
10837 echo $ECHO_N "checking if the linker ($LD) is GNU ld... $ECHO_C" >&6
10838 if test "${acl_cv_prog_gnu_ld+set}" = set; then
10839 echo $ECHO_N "(cached) $ECHO_C" >&6
10841 # I'd rather use --version here, but apparently some GNU ld's only accept -v.
10842 if $LD -v 2>&1 </dev
/null |
egrep '(GNU|with BFD)' 1>&5; then
10843 acl_cv_prog_gnu_ld
=yes
10845 acl_cv_prog_gnu_ld
=no
10848 echo "$as_me:$LINENO: result: $acl_cv_prog_gnu_ld" >&5
10849 echo "${ECHO_T}$acl_cv_prog_gnu_ld" >&6
10850 with_gnu_ld
=$acl_cv_prog_gnu_ld
10854 echo "$as_me:$LINENO: checking for shared library run path origin" >&5
10855 echo $ECHO_N "checking for shared library run path origin... $ECHO_C" >&6
10856 if test "${acl_cv_rpath+set}" = set; then
10857 echo $ECHO_N "(cached) $ECHO_C" >&6
10860 CC
="$CC" GCC
="$GCC" LDFLAGS
="$LDFLAGS" LD
="$LD" with_gnu_ld
="$with_gnu_ld" \
10861 ${CONFIG_SHELL-/bin/sh} "$ac_aux_dir/config.rpath" "$host" > conftest.sh
10863 rm -f .
/conftest.sh
10867 echo "$as_me:$LINENO: result: $acl_cv_rpath" >&5
10868 echo "${ECHO_T}$acl_cv_rpath" >&6
10870 libext
="$acl_cv_libext"
10871 shlibext
="$acl_cv_shlibext"
10872 hardcode_libdir_flag_spec
="$acl_cv_hardcode_libdir_flag_spec"
10873 hardcode_libdir_separator
="$acl_cv_hardcode_libdir_separator"
10874 hardcode_direct
="$acl_cv_hardcode_direct"
10875 hardcode_minus_L
="$acl_cv_hardcode_minus_L"
10876 # Check whether --enable-rpath or --disable-rpath was given.
10877 if test "${enable_rpath+set}" = set; then
10878 enableval
="$enable_rpath"
10894 acl_save_prefix
="$prefix"
10895 prefix
="$acl_final_prefix"
10896 acl_save_exec_prefix
="$exec_prefix"
10897 exec_prefix
="$acl_final_exec_prefix"
10899 eval additional_includedir
=\"$includedir\"
10900 eval additional_libdir
=\"$libdir\"
10902 exec_prefix
="$acl_save_exec_prefix"
10903 prefix
="$acl_save_prefix"
10906 # Check whether --with-libexpat-prefix or --without-libexpat-prefix was given.
10907 if test "${with_libexpat_prefix+set}" = set; then
10908 withval
="$with_libexpat_prefix"
10910 if test "X$withval" = "Xno"; then
10913 if test "X$withval" = "X"; then
10915 acl_save_prefix
="$prefix"
10916 prefix
="$acl_final_prefix"
10917 acl_save_exec_prefix
="$exec_prefix"
10918 exec_prefix
="$acl_final_exec_prefix"
10920 eval additional_includedir
=\"$includedir\"
10921 eval additional_libdir
=\"$libdir\"
10923 exec_prefix
="$acl_save_exec_prefix"
10924 prefix
="$acl_save_prefix"
10927 additional_includedir
="$withval/include"
10928 additional_libdir
="$withval/lib"
10938 names_already_handled
=
10939 names_next_round
='expat '
10940 while test -n "$names_next_round"; do
10941 names_this_round
="$names_next_round"
10943 for name
in $names_this_round; do
10945 for n
in $names_already_handled; do
10946 if test "$n" = "$name"; then
10947 already_handled
=yes
10951 if test -z "$already_handled"; then
10952 names_already_handled
="$names_already_handled $name"
10953 uppername
=`echo "$name" | sed -e 'y|abcdefghijklmnopqrstuvwxyz./-|ABCDEFGHIJKLMNOPQRSTUVWXYZ___|'`
10954 eval value
=\"\
$HAVE_LIB$uppername\"
10955 if test -n "$value"; then
10956 if test "$value" = yes; then
10957 eval value
=\"\
$LIB$uppername\"
10958 test -z "$value" || LIBEXPAT
="${LIBEXPAT}${LIBEXPAT:+ }$value"
10959 eval value
=\"\
$LTLIB$uppername\"
10960 test -z "$value" || LTLIBEXPAT
="${LTLIBEXPAT}${LTLIBEXPAT:+ }$value"
10969 if test $use_additional = yes; then
10970 if test -n "$shlibext" && test -f "$additional_libdir/lib$name.$shlibext"; then
10971 found_dir
="$additional_libdir"
10972 found_so
="$additional_libdir/lib$name.$shlibext"
10973 if test -f "$additional_libdir/lib$name.la"; then
10974 found_la
="$additional_libdir/lib$name.la"
10977 if test -f "$additional_libdir/lib$name.$libext"; then
10978 found_dir
="$additional_libdir"
10979 found_a
="$additional_libdir/lib$name.$libext"
10980 if test -f "$additional_libdir/lib$name.la"; then
10981 found_la
="$additional_libdir/lib$name.la"
10986 if test "X$found_dir" = "X"; then
10987 for x
in $LDFLAGS $LTLIBEXPAT; do
10989 acl_save_prefix
="$prefix"
10990 prefix
="$acl_final_prefix"
10991 acl_save_exec_prefix
="$exec_prefix"
10992 exec_prefix
="$acl_final_exec_prefix"
10994 exec_prefix
="$acl_save_exec_prefix"
10995 prefix
="$acl_save_prefix"
10999 dir
=`echo "X$x" | sed -e 's/^X-L//'`
11000 if test -n "$shlibext" && test -f "$dir/lib$name.$shlibext"; then
11002 found_so
="$dir/lib$name.$shlibext"
11003 if test -f "$dir/lib$name.la"; then
11004 found_la
="$dir/lib$name.la"
11007 if test -f "$dir/lib$name.$libext"; then
11009 found_a
="$dir/lib$name.$libext"
11010 if test -f "$dir/lib$name.la"; then
11011 found_la
="$dir/lib$name.la"
11017 if test "X$found_dir" != "X"; then
11022 if test "X$found_dir" != "X"; then
11023 LTLIBEXPAT
="${LTLIBEXPAT}${LTLIBEXPAT:+ }-L$found_dir -l$name"
11024 if test "X$found_so" != "X"; then
11025 if test "$enable_rpath" = no ||
test "X$found_dir" = "X/usr/lib"; then
11026 LIBEXPAT
="${LIBEXPAT}${LIBEXPAT:+ }$found_so"
11029 for x
in $ltrpathdirs; do
11030 if test "X$x" = "X$found_dir"; then
11035 if test -z "$haveit"; then
11036 ltrpathdirs
="$ltrpathdirs $found_dir"
11038 if test "$hardcode_direct" = yes; then
11039 LIBEXPAT
="${LIBEXPAT}${LIBEXPAT:+ }$found_so"
11041 if test -n "$hardcode_libdir_flag_spec" && test "$hardcode_minus_L" = no
; then
11042 LIBEXPAT
="${LIBEXPAT}${LIBEXPAT:+ }$found_so"
11044 for x
in $rpathdirs; do
11045 if test "X$x" = "X$found_dir"; then
11050 if test -z "$haveit"; then
11051 rpathdirs
="$rpathdirs $found_dir"
11055 for x
in $LDFLAGS $LIBEXPAT; do
11057 acl_save_prefix
="$prefix"
11058 prefix
="$acl_final_prefix"
11059 acl_save_exec_prefix
="$exec_prefix"
11060 exec_prefix
="$acl_final_exec_prefix"
11062 exec_prefix
="$acl_save_exec_prefix"
11063 prefix
="$acl_save_prefix"
11065 if test "X$x" = "X-L$found_dir"; then
11070 if test -z "$haveit"; then
11071 LIBEXPAT
="${LIBEXPAT}${LIBEXPAT:+ }-L$found_dir"
11073 if test "$hardcode_minus_L" != no
; then
11074 LIBEXPAT
="${LIBEXPAT}${LIBEXPAT:+ }$found_so"
11076 LIBEXPAT
="${LIBEXPAT}${LIBEXPAT:+ }-l$name"
11082 if test "X$found_a" != "X"; then
11083 LIBEXPAT
="${LIBEXPAT}${LIBEXPAT:+ }$found_a"
11085 LIBEXPAT
="${LIBEXPAT}${LIBEXPAT:+ }-L$found_dir -l$name"
11088 additional_includedir
=
11089 case "$found_dir" in
11091 basedir
=`echo "X$found_dir" | sed -e 's,^X,,' -e 's,/lib/*$,,'`
11092 additional_includedir
="$basedir/include"
11095 if test "X$additional_includedir" != "X"; then
11096 if test "X$additional_includedir" != "X/usr/include"; then
11098 if test "X$additional_includedir" = "X/usr/local/include"; then
11099 if test -n "$GCC"; then
11101 linux
*) haveit
=yes;;
11105 if test -z "$haveit"; then
11106 for x
in $CPPFLAGS $INCEXPAT; do
11108 acl_save_prefix
="$prefix"
11109 prefix
="$acl_final_prefix"
11110 acl_save_exec_prefix
="$exec_prefix"
11111 exec_prefix
="$acl_final_exec_prefix"
11113 exec_prefix
="$acl_save_exec_prefix"
11114 prefix
="$acl_save_prefix"
11116 if test "X$x" = "X-I$additional_includedir"; then
11121 if test -z "$haveit"; then
11122 if test -d "$additional_includedir"; then
11123 INCEXPAT
="${INCEXPAT}${INCEXPAT:+ }-I$additional_includedir"
11129 if test -n "$found_la"; then
11130 save_libdir
="$libdir"
11131 case "$found_la" in
11132 */* |
*\\*) .
"$found_la" ;;
11133 *) .
"./$found_la" ;;
11135 libdir
="$save_libdir"
11136 for dep
in $dependency_libs; do
11139 additional_libdir
=`echo "X$dep" | sed -e 's/^X-L//'`
11140 if test "X$additional_libdir" != "X/usr/lib"; then
11142 if test "X$additional_libdir" = "X/usr/local/lib"; then
11143 if test -n "$GCC"; then
11145 linux
*) haveit
=yes;;
11149 if test -z "$haveit"; then
11151 for x
in $LDFLAGS $LIBEXPAT; do
11153 acl_save_prefix
="$prefix"
11154 prefix
="$acl_final_prefix"
11155 acl_save_exec_prefix
="$exec_prefix"
11156 exec_prefix
="$acl_final_exec_prefix"
11158 exec_prefix
="$acl_save_exec_prefix"
11159 prefix
="$acl_save_prefix"
11161 if test "X$x" = "X-L$additional_libdir"; then
11166 if test -z "$haveit"; then
11167 if test -d "$additional_libdir"; then
11168 LIBEXPAT
="${LIBEXPAT}${LIBEXPAT:+ }-L$additional_libdir"
11172 for x
in $LDFLAGS $LTLIBEXPAT; do
11174 acl_save_prefix
="$prefix"
11175 prefix
="$acl_final_prefix"
11176 acl_save_exec_prefix
="$exec_prefix"
11177 exec_prefix
="$acl_final_exec_prefix"
11179 exec_prefix
="$acl_save_exec_prefix"
11180 prefix
="$acl_save_prefix"
11182 if test "X$x" = "X-L$additional_libdir"; then
11187 if test -z "$haveit"; then
11188 if test -d "$additional_libdir"; then
11189 LTLIBEXPAT
="${LTLIBEXPAT}${LTLIBEXPAT:+ }-L$additional_libdir"
11196 dir
=`echo "X$dep" | sed -e 's/^X-R//'`
11197 if test "$enable_rpath" != no
; then
11199 for x
in $rpathdirs; do
11200 if test "X$x" = "X$dir"; then
11205 if test -z "$haveit"; then
11206 rpathdirs
="$rpathdirs $dir"
11209 for x
in $ltrpathdirs; do
11210 if test "X$x" = "X$dir"; then
11215 if test -z "$haveit"; then
11216 ltrpathdirs
="$ltrpathdirs $dir"
11221 names_next_round
="$names_next_round "`echo "X$dep" | sed -e 's/^X-l//'`
11224 names_next_round
="$names_next_round "`echo "X$dep" | sed -e 's,^X.*/,,' -e 's,^lib,,' -e 's,\.la$,,'`
11227 LIBEXPAT
="${LIBEXPAT}${LIBEXPAT:+ }$dep"
11228 LTLIBEXPAT
="${LTLIBEXPAT}${LTLIBEXPAT:+ }$dep"
11234 LIBEXPAT
="${LIBEXPAT}${LIBEXPAT:+ }-l$name"
11235 LTLIBEXPAT
="${LTLIBEXPAT}${LTLIBEXPAT:+ }-l$name"
11241 if test "X$rpathdirs" != "X"; then
11242 if test -n "$hardcode_libdir_separator"; then
11244 for found_dir
in $rpathdirs; do
11245 alldirs
="${alldirs}${alldirs:+$hardcode_libdir_separator}$found_dir"
11247 acl_save_libdir
="$libdir"
11249 eval flag
=\"$hardcode_libdir_flag_spec\"
11250 libdir
="$acl_save_libdir"
11251 LIBEXPAT
="${LIBEXPAT}${LIBEXPAT:+ }$flag"
11253 for found_dir
in $rpathdirs; do
11254 acl_save_libdir
="$libdir"
11255 libdir
="$found_dir"
11256 eval flag
=\"$hardcode_libdir_flag_spec\"
11257 libdir
="$acl_save_libdir"
11258 LIBEXPAT
="${LIBEXPAT}${LIBEXPAT:+ }$flag"
11262 if test "X$ltrpathdirs" != "X"; then
11263 for found_dir
in $ltrpathdirs; do
11264 LTLIBEXPAT
="${LTLIBEXPAT}${LTLIBEXPAT:+ }-R$found_dir"
11269 ac_save_CPPFLAGS
="$CPPFLAGS"
11271 for element
in $INCEXPAT; do
11273 for x
in $CPPFLAGS; do
11275 acl_save_prefix
="$prefix"
11276 prefix
="$acl_final_prefix"
11277 acl_save_exec_prefix
="$exec_prefix"
11278 exec_prefix
="$acl_final_exec_prefix"
11280 exec_prefix
="$acl_save_exec_prefix"
11281 prefix
="$acl_save_prefix"
11283 if test "X$x" = "X$element"; then
11288 if test -z "$haveit"; then
11289 CPPFLAGS
="${CPPFLAGS}${CPPFLAGS:+ }$element"
11294 echo "$as_me:$LINENO: checking for libexpat" >&5
11295 echo $ECHO_N "checking for libexpat... $ECHO_C" >&6
11296 if test "${ac_cv_libexpat+set}" = set; then
11297 echo $ECHO_N "(cached) $ECHO_C" >&6
11300 ac_save_LIBS
="$LIBS"
11301 LIBS
="$LIBS $LIBEXPAT"
11302 cat >conftest.
$ac_ext <<_ACEOF
11305 cat confdefs.h
>>conftest.
$ac_ext
11306 cat >>conftest.
$ac_ext <<_ACEOF
11307 /* end confdefs.h. */
11312 XML_Parser p = XML_ParserCreate (0);
11317 rm -f conftest.
$ac_objext conftest
$ac_exeext
11318 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
11319 (eval $ac_link) 2>conftest.er1
11321 grep -v '^ *+' conftest.er1
>conftest.err
11323 cat conftest.err
>&5
11324 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11325 (exit $ac_status); } &&
11326 { ac_try
='test -z "$ac_c_werror_flag"
11327 || test ! -s conftest.err'
11328 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11329 (eval $ac_try) 2>&5
11331 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11332 (exit $ac_status); }; } &&
11333 { ac_try
='test -s conftest$ac_exeext'
11334 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11335 (eval $ac_try) 2>&5
11337 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11338 (exit $ac_status); }; }; then
11341 echo "$as_me: failed program was:" >&5
11342 sed 's/^/| /' conftest.
$ac_ext >&5
11346 rm -f conftest.err conftest.
$ac_objext \
11347 conftest
$ac_exeext conftest.
$ac_ext
11348 LIBS
="$ac_save_LIBS"
11351 echo "$as_me:$LINENO: result: $ac_cv_libexpat" >&5
11352 echo "${ECHO_T}$ac_cv_libexpat" >&6
11353 if test "$ac_cv_libexpat" = yes; then
11356 cat >>confdefs.h
<<\_ACEOF
11357 #define HAVE_LIBEXPAT 1
11360 echo "$as_me:$LINENO: checking how to link with libexpat" >&5
11361 echo $ECHO_N "checking how to link with libexpat... $ECHO_C" >&6
11362 echo "$as_me:$LINENO: result: $LIBEXPAT" >&5
11363 echo "${ECHO_T}$LIBEXPAT" >&6
11366 CPPFLAGS
="$ac_save_CPPFLAGS"
11376 if test "$HAVE_LIBEXPAT" != yes; then
11377 if test "$with_expat" = yes; then
11378 { { echo "$as_me:$LINENO: error: expat is missing or unusable" >&5
11379 echo "$as_me: error: expat is missing or unusable" >&2;}
11380 { (exit 1); exit 1; }; }
11382 { echo "$as_me:$LINENO: WARNING: expat is missing or unusable; some features may be unavailable." >&5
11383 echo "$as_me: WARNING: expat is missing or unusable; some features may be unavailable." >&2;}
11387 LIBS
="$LIBS $LIBEXPAT"
11389 for ac_func
in XML_StopParser
11391 as_ac_var
=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
11392 echo "$as_me:$LINENO: checking for $ac_func" >&5
11393 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
11394 if eval "test \"\${$as_ac_var+set}\" = set"; then
11395 echo $ECHO_N "(cached) $ECHO_C" >&6
11397 cat >conftest.
$ac_ext <<_ACEOF
11400 cat confdefs.h
>>conftest.
$ac_ext
11401 cat >>conftest.
$ac_ext <<_ACEOF
11402 /* end confdefs.h. */
11403 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
11404 For example, HP-UX 11i <limits.h> declares gettimeofday. */
11405 #define $ac_func innocuous_$ac_func
11407 /* System header to define __stub macros and hopefully few prototypes,
11408 which can conflict with char $ac_func (); below.
11409 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
11410 <limits.h> exists even on freestanding compilers. */
11413 # include <limits.h>
11415 # include <assert.h>
11420 /* Override any gcc2 internal prototype to avoid an error. */
11425 /* We use char because int might match the return type of a gcc2
11426 builtin and then its argument prototype would still apply. */
11428 /* The GNU C library defines this for functions which it implements
11429 to always fail with ENOSYS. Some functions are actually named
11430 something starting with __ and the normal name is an alias. */
11431 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
11434 char (*f) () = $ac_func;
11443 return f != $ac_func;
11448 rm -f conftest.
$ac_objext conftest
$ac_exeext
11449 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
11450 (eval $ac_link) 2>conftest.er1
11452 grep -v '^ *+' conftest.er1
>conftest.err
11454 cat conftest.err
>&5
11455 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11456 (exit $ac_status); } &&
11457 { ac_try
='test -z "$ac_c_werror_flag"
11458 || test ! -s conftest.err'
11459 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11460 (eval $ac_try) 2>&5
11462 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11463 (exit $ac_status); }; } &&
11464 { ac_try
='test -s conftest$ac_exeext'
11465 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11466 (eval $ac_try) 2>&5
11468 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11469 (exit $ac_status); }; }; then
11470 eval "$as_ac_var=yes"
11472 echo "$as_me: failed program was:" >&5
11473 sed 's/^/| /' conftest.
$ac_ext >&5
11475 eval "$as_ac_var=no"
11477 rm -f conftest.err conftest.
$ac_objext \
11478 conftest
$ac_exeext conftest.
$ac_ext
11480 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
11481 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
11482 if test `eval echo '${'$as_ac_var'}'` = yes; then
11483 cat >>confdefs.h
<<_ACEOF
11484 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
11497 # Check whether --with-python or --without-python was given.
11498 if test "${with_python+set}" = set; then
11499 withval
="$with_python"
11504 echo "$as_me:$LINENO: checking whether to use python" >&5
11505 echo $ECHO_N "checking whether to use python... $ECHO_C" >&6
11506 echo "$as_me:$LINENO: result: $with_python" >&5
11507 echo "${ECHO_T}$with_python" >&6
11509 if test "${with_python}" = no
; then
11510 { echo "$as_me:$LINENO: WARNING: python support disabled; some features may be unavailable." >&5
11511 echo "$as_me: WARNING: python support disabled; some features may be unavailable." >&2;}
11514 case "${with_python}" in
11516 # Leave as empty, use defaults.
11521 python_includes
="-I${with_python}/include"
11522 python_libs
="-L${with_python}/lib"
11525 { { echo "$as_me:$LINENO: error: invalid value for --with-python" >&5
11526 echo "$as_me: error: invalid value for --with-python" >&2;}
11527 { (exit 1); exit 1; }; }
11531 save_CPPFLAGS
=$CPPFLAGS
11532 CPPFLAGS
="$CPPFLAGS ${python_includes}"
11534 LIBS
="$LIBS ${python_libs}"
11536 if test "${have_libpython}" = no
; then
11541 HAVE_LIBPYTHON2_6
=no
11542 echo "$as_me:$LINENO: checking for ${version}" >&5
11543 echo $ECHO_N "checking for ${version}... $ECHO_C" >&6
11545 LIBS
="$LIBS -l${version}"
11546 cat >conftest.
$ac_ext <<_ACEOF
11549 cat confdefs.h
>>conftest.
$ac_ext
11550 cat >>conftest.
$ac_ext <<_ACEOF
11551 /* end confdefs.h. */
11552 #include "${version}/Python.h"
11561 rm -f conftest.
$ac_objext conftest
$ac_exeext
11562 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
11563 (eval $ac_link) 2>conftest.er1
11565 grep -v '^ *+' conftest.er1
>conftest.err
11567 cat conftest.err
>&5
11568 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11569 (exit $ac_status); } &&
11570 { ac_try
='test -z "$ac_c_werror_flag"
11571 || test ! -s conftest.err'
11572 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11573 (eval $ac_try) 2>&5
11575 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11576 (exit $ac_status); }; } &&
11577 { ac_try
='test -s conftest$ac_exeext'
11578 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11579 (eval $ac_try) 2>&5
11581 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11582 (exit $ac_status); }; }; then
11583 HAVE_LIBPYTHON2_6
=yes
11586 echo "$as_me: failed program was:" >&5
11587 sed 's/^/| /' conftest.
$ac_ext >&5
11591 rm -f conftest.err conftest.
$ac_objext \
11592 conftest
$ac_exeext conftest.
$ac_ext
11593 echo "$as_me:$LINENO: result: $HAVE_LIBPYTHON2_6" >&5
11594 echo "${ECHO_T}$HAVE_LIBPYTHON2_6" >&6
11596 if test "${HAVE_LIBPYTHON2_6}" = yes; then
11598 cat >>confdefs.h
<<\_ACEOF
11599 #define HAVE_LIBPYTHON2_6 1
11604 if test ${have_libpython} = no
; then
11609 HAVE_LIBPYTHON2_5
=no
11610 echo "$as_me:$LINENO: checking for ${version}" >&5
11611 echo $ECHO_N "checking for ${version}... $ECHO_C" >&6
11613 LIBS
="$LIBS -l${version}"
11614 cat >conftest.
$ac_ext <<_ACEOF
11617 cat confdefs.h
>>conftest.
$ac_ext
11618 cat >>conftest.
$ac_ext <<_ACEOF
11619 /* end confdefs.h. */
11620 #include "${version}/Python.h"
11629 rm -f conftest.
$ac_objext conftest
$ac_exeext
11630 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
11631 (eval $ac_link) 2>conftest.er1
11633 grep -v '^ *+' conftest.er1
>conftest.err
11635 cat conftest.err
>&5
11636 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11637 (exit $ac_status); } &&
11638 { ac_try
='test -z "$ac_c_werror_flag"
11639 || test ! -s conftest.err'
11640 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11641 (eval $ac_try) 2>&5
11643 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11644 (exit $ac_status); }; } &&
11645 { ac_try
='test -s conftest$ac_exeext'
11646 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11647 (eval $ac_try) 2>&5
11649 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11650 (exit $ac_status); }; }; then
11651 HAVE_LIBPYTHON2_5
=yes
11654 echo "$as_me: failed program was:" >&5
11655 sed 's/^/| /' conftest.
$ac_ext >&5
11659 rm -f conftest.err conftest.
$ac_objext \
11660 conftest
$ac_exeext conftest.
$ac_ext
11661 echo "$as_me:$LINENO: result: $HAVE_LIBPYTHON2_5" >&5
11662 echo "${ECHO_T}$HAVE_LIBPYTHON2_5" >&6
11664 if test "${HAVE_LIBPYTHON2_5}" = yes; then
11666 cat >>confdefs.h
<<\_ACEOF
11667 #define HAVE_LIBPYTHON2_5 1
11672 if test ${have_libpython} = no
; then
11677 HAVE_LIBPYTHON2_4
=no
11678 echo "$as_me:$LINENO: checking for ${version}" >&5
11679 echo $ECHO_N "checking for ${version}... $ECHO_C" >&6
11681 LIBS
="$LIBS -l${version}"
11682 cat >conftest.
$ac_ext <<_ACEOF
11685 cat confdefs.h
>>conftest.
$ac_ext
11686 cat >>conftest.
$ac_ext <<_ACEOF
11687 /* end confdefs.h. */
11688 #include "${version}/Python.h"
11697 rm -f conftest.
$ac_objext conftest
$ac_exeext
11698 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
11699 (eval $ac_link) 2>conftest.er1
11701 grep -v '^ *+' conftest.er1
>conftest.err
11703 cat conftest.err
>&5
11704 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11705 (exit $ac_status); } &&
11706 { ac_try
='test -z "$ac_c_werror_flag"
11707 || test ! -s conftest.err'
11708 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11709 (eval $ac_try) 2>&5
11711 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11712 (exit $ac_status); }; } &&
11713 { ac_try
='test -s conftest$ac_exeext'
11714 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11715 (eval $ac_try) 2>&5
11717 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11718 (exit $ac_status); }; }; then
11719 HAVE_LIBPYTHON2_4
=yes
11722 echo "$as_me: failed program was:" >&5
11723 sed 's/^/| /' conftest.
$ac_ext >&5
11727 rm -f conftest.err conftest.
$ac_objext \
11728 conftest
$ac_exeext conftest.
$ac_ext
11729 echo "$as_me:$LINENO: result: $HAVE_LIBPYTHON2_4" >&5
11730 echo "${ECHO_T}$HAVE_LIBPYTHON2_4" >&6
11732 if test "${HAVE_LIBPYTHON2_4}" = yes; then
11734 cat >>confdefs.h
<<\_ACEOF
11735 #define HAVE_LIBPYTHON2_4 1
11740 if test ${have_libpython} = no
; then
11741 case "${with_python}" in
11743 { { echo "$as_me:$LINENO: error: python is missing or unusable" >&5
11744 echo "$as_me: error: python is missing or unusable" >&2;}
11745 { (exit 1); exit 1; }; }
11748 { echo "$as_me:$LINENO: WARNING: python is missing or unusable; some features may be unavailable." >&5
11749 echo "$as_me: WARNING: python is missing or unusable; some features may be unavailable." >&2;}
11752 { { echo "$as_me:$LINENO: error: no usable python found at ${with_python}" >&5
11753 echo "$as_me: error: no usable python found at ${with_python}" >&2;}
11754 { (exit 1); exit 1; }; }
11757 CPPFLAGS
=$save_CPPFLAGS
11762 if test "${have_libpython}" = yes; then
11764 cat >>confdefs.h
<<\_ACEOF
11765 #define HAVE_PYTHON 1
11768 CONFIG_OBS
="$CONFIG_OBS \$(SUBDIR_PYTHON_OBS)"
11769 CONFIG_DEPS
="$CONFIG_DEPS \$(SUBDIR_PYTHON_DEPS)"
11770 CONFIG_SRCS
="$CONFIG_SRCS \$(SUBDIR_PYTHON_SRCS)"
11771 ENABLE_CFLAGS
="$ENABLE_CFLAGS \$(SUBDIR_PYTHON_CFLAGS)"
11773 # Flags needed to compile Python code (taken from python-config --cflags).
11774 # We cannot call python-config directly because it will output whatever was
11775 # used when compiling the Python interpreter itself, including flags which
11776 # would make the python-related objects be compiled differently from the
11777 # rest of GDB (e.g., -O2 and -fPIC).
11778 if test "${GCC}" = yes; then
11779 tentative_python_cflags
="-fno-strict-aliasing -DNDEBUG -fwrapv"
11782 if test "x${tentative_python_cflags}" != x
; then
11783 echo "$as_me:$LINENO: checking compiler flags for python code" >&5
11784 echo $ECHO_N "checking compiler flags for python code... $ECHO_C" >&6
11785 for flag
in ${tentative_python_cflags}; do
11786 # Check that the compiler accepts it
11787 saved_CFLAGS
="$CFLAGS"
11788 CFLAGS
="$CFLAGS $flag"
11789 cat >conftest.
$ac_ext <<_ACEOF
11792 cat confdefs.h
>>conftest.
$ac_ext
11793 cat >>conftest.
$ac_ext <<_ACEOF
11794 /* end confdefs.h. */
11804 rm -f conftest.
$ac_objext
11805 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
11806 (eval $ac_compile) 2>conftest.er1
11808 grep -v '^ *+' conftest.er1
>conftest.err
11810 cat conftest.err
>&5
11811 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11812 (exit $ac_status); } &&
11813 { ac_try
='test -z "$ac_c_werror_flag"
11814 || test ! -s conftest.err'
11815 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11816 (eval $ac_try) 2>&5
11818 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11819 (exit $ac_status); }; } &&
11820 { ac_try
='test -s conftest.$ac_objext'
11821 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11822 (eval $ac_try) 2>&5
11824 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11825 (exit $ac_status); }; }; then
11826 PYTHON_CFLAGS
="${PYTHON_CFLAGS} $flag"
11828 echo "$as_me: failed program was:" >&5
11829 sed 's/^/| /' conftest.
$ac_ext >&5
11832 rm -f conftest.err conftest.
$ac_objext conftest.
$ac_ext
11833 CFLAGS
="$saved_CFLAGS"
11835 echo "$as_me:$LINENO: result: ${PYTHON_CFLAGS}" >&5
11836 echo "${ECHO_T}${PYTHON_CFLAGS}" >&6
11839 # Even if Python support is not compiled in, we need to have these files
11840 # included in order to recognize the GDB command "python".
11841 CONFIG_OBS
="$CONFIG_OBS python.o python-value.o"
11842 CONFIG_SRCS
="$CONFIG_SRCS python/python.c python/python-value.c"
11846 # ------------------------- #
11847 # Checks for header files. #
11848 # ------------------------- #
11855 ac_header_dirent
=no
11856 for ac_hdr
in dirent.h sys
/ndir.h sys
/dir.h ndir.h
; do
11857 as_ac_Header
=`echo "ac_cv_header_dirent_$ac_hdr" | $as_tr_sh`
11858 echo "$as_me:$LINENO: checking for $ac_hdr that defines DIR" >&5
11859 echo $ECHO_N "checking for $ac_hdr that defines DIR... $ECHO_C" >&6
11860 if eval "test \"\${$as_ac_Header+set}\" = set"; then
11861 echo $ECHO_N "(cached) $ECHO_C" >&6
11863 cat >conftest.
$ac_ext <<_ACEOF
11866 cat confdefs.h
>>conftest.
$ac_ext
11867 cat >>conftest.
$ac_ext <<_ACEOF
11868 /* end confdefs.h. */
11869 #include <sys/types.h>
11881 rm -f conftest.
$ac_objext
11882 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
11883 (eval $ac_compile) 2>conftest.er1
11885 grep -v '^ *+' conftest.er1
>conftest.err
11887 cat conftest.err
>&5
11888 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11889 (exit $ac_status); } &&
11890 { ac_try
='test -z "$ac_c_werror_flag"
11891 || test ! -s conftest.err'
11892 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11893 (eval $ac_try) 2>&5
11895 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11896 (exit $ac_status); }; } &&
11897 { ac_try
='test -s conftest.$ac_objext'
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); }; }; then
11903 eval "$as_ac_Header=yes"
11905 echo "$as_me: failed program was:" >&5
11906 sed 's/^/| /' conftest.
$ac_ext >&5
11908 eval "$as_ac_Header=no"
11910 rm -f conftest.err conftest.
$ac_objext conftest.
$ac_ext
11912 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
11913 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
11914 if test `eval echo '${'$as_ac_Header'}'` = yes; then
11915 cat >>confdefs.h
<<_ACEOF
11916 #define `echo "HAVE_$ac_hdr" | $as_tr_cpp` 1
11919 ac_header_dirent
=$ac_hdr; break
11923 # Two versions of opendir et al. are in -ldir and -lx on SCO Xenix.
11924 if test $ac_header_dirent = dirent.h
; then
11925 echo "$as_me:$LINENO: checking for library containing opendir" >&5
11926 echo $ECHO_N "checking for library containing opendir... $ECHO_C" >&6
11927 if test "${ac_cv_search_opendir+set}" = set; then
11928 echo $ECHO_N "(cached) $ECHO_C" >&6
11930 ac_func_search_save_LIBS
=$LIBS
11931 ac_cv_search_opendir
=no
11932 cat >conftest.
$ac_ext <<_ACEOF
11935 cat confdefs.h
>>conftest.
$ac_ext
11936 cat >>conftest.
$ac_ext <<_ACEOF
11937 /* end confdefs.h. */
11939 /* Override any gcc2 internal prototype to avoid an error. */
11943 /* We use char because int might match the return type of a gcc2
11944 builtin and then its argument prototype would still apply. */
11954 rm -f conftest.
$ac_objext conftest
$ac_exeext
11955 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
11956 (eval $ac_link) 2>conftest.er1
11958 grep -v '^ *+' conftest.er1
>conftest.err
11960 cat conftest.err
>&5
11961 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11962 (exit $ac_status); } &&
11963 { ac_try
='test -z "$ac_c_werror_flag"
11964 || test ! -s conftest.err'
11965 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11966 (eval $ac_try) 2>&5
11968 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11969 (exit $ac_status); }; } &&
11970 { ac_try
='test -s conftest$ac_exeext'
11971 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11972 (eval $ac_try) 2>&5
11974 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11975 (exit $ac_status); }; }; then
11976 ac_cv_search_opendir
="none required"
11978 echo "$as_me: failed program was:" >&5
11979 sed 's/^/| /' conftest.
$ac_ext >&5
11982 rm -f conftest.err conftest.
$ac_objext \
11983 conftest
$ac_exeext conftest.
$ac_ext
11984 if test "$ac_cv_search_opendir" = no
; then
11985 for ac_lib
in dir
; do
11986 LIBS
="-l$ac_lib $ac_func_search_save_LIBS"
11987 cat >conftest.
$ac_ext <<_ACEOF
11990 cat confdefs.h
>>conftest.
$ac_ext
11991 cat >>conftest.
$ac_ext <<_ACEOF
11992 /* end confdefs.h. */
11994 /* Override any gcc2 internal prototype to avoid an error. */
11998 /* We use char because int might match the return type of a gcc2
11999 builtin and then its argument prototype would still apply. */
12009 rm -f conftest.
$ac_objext conftest
$ac_exeext
12010 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
12011 (eval $ac_link) 2>conftest.er1
12013 grep -v '^ *+' conftest.er1
>conftest.err
12015 cat conftest.err
>&5
12016 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12017 (exit $ac_status); } &&
12018 { ac_try
='test -z "$ac_c_werror_flag"
12019 || test ! -s conftest.err'
12020 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12021 (eval $ac_try) 2>&5
12023 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12024 (exit $ac_status); }; } &&
12025 { ac_try
='test -s conftest$ac_exeext'
12026 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12027 (eval $ac_try) 2>&5
12029 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12030 (exit $ac_status); }; }; then
12031 ac_cv_search_opendir
="-l$ac_lib"
12034 echo "$as_me: failed program was:" >&5
12035 sed 's/^/| /' conftest.
$ac_ext >&5
12038 rm -f conftest.err conftest.
$ac_objext \
12039 conftest
$ac_exeext conftest.
$ac_ext
12042 LIBS
=$ac_func_search_save_LIBS
12044 echo "$as_me:$LINENO: result: $ac_cv_search_opendir" >&5
12045 echo "${ECHO_T}$ac_cv_search_opendir" >&6
12046 if test "$ac_cv_search_opendir" != no
; then
12047 test "$ac_cv_search_opendir" = "none required" || LIBS
="$ac_cv_search_opendir $LIBS"
12052 echo "$as_me:$LINENO: checking for library containing opendir" >&5
12053 echo $ECHO_N "checking for library containing opendir... $ECHO_C" >&6
12054 if test "${ac_cv_search_opendir+set}" = set; then
12055 echo $ECHO_N "(cached) $ECHO_C" >&6
12057 ac_func_search_save_LIBS
=$LIBS
12058 ac_cv_search_opendir
=no
12059 cat >conftest.
$ac_ext <<_ACEOF
12062 cat confdefs.h
>>conftest.
$ac_ext
12063 cat >>conftest.
$ac_ext <<_ACEOF
12064 /* end confdefs.h. */
12066 /* Override any gcc2 internal prototype to avoid an error. */
12070 /* We use char because int might match the return type of a gcc2
12071 builtin and then its argument prototype would still apply. */
12081 rm -f conftest.
$ac_objext conftest
$ac_exeext
12082 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
12083 (eval $ac_link) 2>conftest.er1
12085 grep -v '^ *+' conftest.er1
>conftest.err
12087 cat conftest.err
>&5
12088 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12089 (exit $ac_status); } &&
12090 { ac_try
='test -z "$ac_c_werror_flag"
12091 || test ! -s conftest.err'
12092 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12093 (eval $ac_try) 2>&5
12095 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12096 (exit $ac_status); }; } &&
12097 { ac_try
='test -s conftest$ac_exeext'
12098 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12099 (eval $ac_try) 2>&5
12101 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12102 (exit $ac_status); }; }; then
12103 ac_cv_search_opendir
="none required"
12105 echo "$as_me: failed program was:" >&5
12106 sed 's/^/| /' conftest.
$ac_ext >&5
12109 rm -f conftest.err conftest.
$ac_objext \
12110 conftest
$ac_exeext conftest.
$ac_ext
12111 if test "$ac_cv_search_opendir" = no
; then
12112 for ac_lib
in x
; do
12113 LIBS
="-l$ac_lib $ac_func_search_save_LIBS"
12114 cat >conftest.
$ac_ext <<_ACEOF
12117 cat confdefs.h
>>conftest.
$ac_ext
12118 cat >>conftest.
$ac_ext <<_ACEOF
12119 /* end confdefs.h. */
12121 /* Override any gcc2 internal prototype to avoid an error. */
12125 /* We use char because int might match the return type of a gcc2
12126 builtin and then its argument prototype would still apply. */
12136 rm -f conftest.
$ac_objext conftest
$ac_exeext
12137 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
12138 (eval $ac_link) 2>conftest.er1
12140 grep -v '^ *+' conftest.er1
>conftest.err
12142 cat conftest.err
>&5
12143 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12144 (exit $ac_status); } &&
12145 { ac_try
='test -z "$ac_c_werror_flag"
12146 || test ! -s conftest.err'
12147 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12148 (eval $ac_try) 2>&5
12150 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12151 (exit $ac_status); }; } &&
12152 { ac_try
='test -s conftest$ac_exeext'
12153 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12154 (eval $ac_try) 2>&5
12156 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12157 (exit $ac_status); }; }; then
12158 ac_cv_search_opendir
="-l$ac_lib"
12161 echo "$as_me: failed program was:" >&5
12162 sed 's/^/| /' conftest.
$ac_ext >&5
12165 rm -f conftest.err conftest.
$ac_objext \
12166 conftest
$ac_exeext conftest.
$ac_ext
12169 LIBS
=$ac_func_search_save_LIBS
12171 echo "$as_me:$LINENO: result: $ac_cv_search_opendir" >&5
12172 echo "${ECHO_T}$ac_cv_search_opendir" >&6
12173 if test "$ac_cv_search_opendir" != no
; then
12174 test "$ac_cv_search_opendir" = "none required" || LIBS
="$ac_cv_search_opendir $LIBS"
12180 echo "$as_me:$LINENO: checking whether stat file-mode macros are broken" >&5
12181 echo $ECHO_N "checking whether stat file-mode macros are broken... $ECHO_C" >&6
12182 if test "${ac_cv_header_stat_broken+set}" = set; then
12183 echo $ECHO_N "(cached) $ECHO_C" >&6
12185 cat >conftest.
$ac_ext <<_ACEOF
12188 cat confdefs.h
>>conftest.
$ac_ext
12189 cat >>conftest.
$ac_ext <<_ACEOF
12190 /* end confdefs.h. */
12191 #include <sys/types.h>
12192 #include <sys/stat.h>
12194 #if defined(S_ISBLK) && defined(S_IFDIR)
12195 # if S_ISBLK (S_IFDIR)
12200 #if defined(S_ISBLK) && defined(S_IFCHR)
12201 # if S_ISBLK (S_IFCHR)
12206 #if defined(S_ISLNK) && defined(S_IFREG)
12207 # if S_ISLNK (S_IFREG)
12212 #if defined(S_ISSOCK) && defined(S_IFREG)
12213 # if S_ISSOCK (S_IFREG)
12219 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
12220 $EGREP "You lose" >/dev
/null
2>&1; then
12221 ac_cv_header_stat_broken
=yes
12223 ac_cv_header_stat_broken
=no
12228 echo "$as_me:$LINENO: result: $ac_cv_header_stat_broken" >&5
12229 echo "${ECHO_T}$ac_cv_header_stat_broken" >&6
12230 if test $ac_cv_header_stat_broken = yes; then
12232 cat >>confdefs.h
<<\_ACEOF
12233 #define STAT_MACROS_BROKEN 1
12238 echo "$as_me:$LINENO: checking for ANSI C header files" >&5
12239 echo $ECHO_N "checking for ANSI C header files... $ECHO_C" >&6
12240 if test "${ac_cv_header_stdc+set}" = set; then
12241 echo $ECHO_N "(cached) $ECHO_C" >&6
12243 cat >conftest.
$ac_ext <<_ACEOF
12246 cat confdefs.h
>>conftest.
$ac_ext
12247 cat >>conftest.
$ac_ext <<_ACEOF
12248 /* end confdefs.h. */
12249 #include <stdlib.h>
12250 #include <stdarg.h>
12251 #include <string.h>
12262 rm -f conftest.
$ac_objext
12263 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
12264 (eval $ac_compile) 2>conftest.er1
12266 grep -v '^ *+' conftest.er1
>conftest.err
12268 cat conftest.err
>&5
12269 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12270 (exit $ac_status); } &&
12271 { ac_try
='test -z "$ac_c_werror_flag"
12272 || test ! -s conftest.err'
12273 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12274 (eval $ac_try) 2>&5
12276 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12277 (exit $ac_status); }; } &&
12278 { ac_try
='test -s conftest.$ac_objext'
12279 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12280 (eval $ac_try) 2>&5
12282 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12283 (exit $ac_status); }; }; then
12284 ac_cv_header_stdc
=yes
12286 echo "$as_me: failed program was:" >&5
12287 sed 's/^/| /' conftest.
$ac_ext >&5
12289 ac_cv_header_stdc
=no
12291 rm -f conftest.err conftest.
$ac_objext conftest.
$ac_ext
12293 if test $ac_cv_header_stdc = yes; then
12294 # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
12295 cat >conftest.
$ac_ext <<_ACEOF
12298 cat confdefs.h
>>conftest.
$ac_ext
12299 cat >>conftest.
$ac_ext <<_ACEOF
12300 /* end confdefs.h. */
12301 #include <string.h>
12304 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
12305 $EGREP "memchr" >/dev
/null
2>&1; then
12308 ac_cv_header_stdc
=no
12314 if test $ac_cv_header_stdc = yes; then
12315 # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
12316 cat >conftest.
$ac_ext <<_ACEOF
12319 cat confdefs.h
>>conftest.
$ac_ext
12320 cat >>conftest.
$ac_ext <<_ACEOF
12321 /* end confdefs.h. */
12322 #include <stdlib.h>
12325 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
12326 $EGREP "free" >/dev
/null
2>&1; then
12329 ac_cv_header_stdc
=no
12335 if test $ac_cv_header_stdc = yes; then
12336 # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
12337 if test "$cross_compiling" = yes; then
12340 cat >conftest.
$ac_ext <<_ACEOF
12343 cat confdefs.h
>>conftest.
$ac_ext
12344 cat >>conftest.
$ac_ext <<_ACEOF
12345 /* end confdefs.h. */
12347 #if ((' ' & 0x0FF) == 0x020)
12348 # define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
12349 # define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
12351 # define ISLOWER(c) \
12352 (('a' <= (c) && (c) <= 'i') \
12353 || ('j' <= (c) && (c) <= 'r') \
12354 || ('s' <= (c) && (c) <= 'z'))
12355 # define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
12358 #define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
12363 for (i = 0; i < 256; i++)
12364 if (XOR (islower (i), ISLOWER (i))
12365 || toupper (i) != TOUPPER (i))
12370 rm -f conftest
$ac_exeext
12371 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
12372 (eval $ac_link) 2>&5
12374 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12375 (exit $ac_status); } && { ac_try
='./conftest$ac_exeext'
12376 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12377 (eval $ac_try) 2>&5
12379 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12380 (exit $ac_status); }; }; then
12383 echo "$as_me: program exited with status $ac_status" >&5
12384 echo "$as_me: failed program was:" >&5
12385 sed 's/^/| /' conftest.
$ac_ext >&5
12387 ( exit $ac_status )
12388 ac_cv_header_stdc
=no
12390 rm -f core
*.core gmon.out bb.out conftest
$ac_exeext conftest.
$ac_objext conftest.
$ac_ext
12394 echo "$as_me:$LINENO: result: $ac_cv_header_stdc" >&5
12395 echo "${ECHO_T}$ac_cv_header_stdc" >&6
12396 if test $ac_cv_header_stdc = yes; then
12398 cat >>confdefs.h
<<\_ACEOF
12399 #define STDC_HEADERS 1
12404 # elf_hp.h is for HP/UX 64-bit shared library support.
12405 # FIXME: kettenis/20030102: In most cases we include these (ctype.h, time.h)
12406 # unconditionally, so what's the point in checking these?
12444 for ac_header
in nlist.h machine
/reg.h poll.h sys
/poll.h proc_service.h \
12445 thread_db.h gnu
/libc-version.h signal.h stddef.h \
12446 stdlib.h string.h memory.h
strings.h sys
/fault.h \
12447 sys
/file.h sys
/filio.h sys
/ioctl.h sys
/param.h \
12448 sys
/resource.h sys
/procfs.h sys
/ptrace.h ptrace.h \
12449 sys
/reg.h sys
/debugreg.h sys
/select.h sys
/syscall.h \
12450 sys
/types.h sys
/wait.h
wait.h termios.h termio.h \
12451 sgtty.h unistd.h elf_hp.h ctype.h
time.h locale.h
12453 as_ac_Header
=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
12454 if eval "test \"\${$as_ac_Header+set}\" = set"; then
12455 echo "$as_me:$LINENO: checking for $ac_header" >&5
12456 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
12457 if eval "test \"\${$as_ac_Header+set}\" = set"; then
12458 echo $ECHO_N "(cached) $ECHO_C" >&6
12460 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
12461 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
12463 # Is the header compilable?
12464 echo "$as_me:$LINENO: checking $ac_header usability" >&5
12465 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
12466 cat >conftest.
$ac_ext <<_ACEOF
12469 cat confdefs.h
>>conftest.
$ac_ext
12470 cat >>conftest.
$ac_ext <<_ACEOF
12471 /* end confdefs.h. */
12472 $ac_includes_default
12473 #include <$ac_header>
12475 rm -f conftest.
$ac_objext
12476 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
12477 (eval $ac_compile) 2>conftest.er1
12479 grep -v '^ *+' conftest.er1
>conftest.err
12481 cat conftest.err
>&5
12482 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12483 (exit $ac_status); } &&
12484 { ac_try
='test -z "$ac_c_werror_flag"
12485 || test ! -s conftest.err'
12486 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12487 (eval $ac_try) 2>&5
12489 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12490 (exit $ac_status); }; } &&
12491 { ac_try
='test -s conftest.$ac_objext'
12492 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12493 (eval $ac_try) 2>&5
12495 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12496 (exit $ac_status); }; }; then
12497 ac_header_compiler
=yes
12499 echo "$as_me: failed program was:" >&5
12500 sed 's/^/| /' conftest.
$ac_ext >&5
12502 ac_header_compiler
=no
12504 rm -f conftest.err conftest.
$ac_objext conftest.
$ac_ext
12505 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
12506 echo "${ECHO_T}$ac_header_compiler" >&6
12508 # Is the header present?
12509 echo "$as_me:$LINENO: checking $ac_header presence" >&5
12510 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
12511 cat >conftest.
$ac_ext <<_ACEOF
12514 cat confdefs.h
>>conftest.
$ac_ext
12515 cat >>conftest.
$ac_ext <<_ACEOF
12516 /* end confdefs.h. */
12517 #include <$ac_header>
12519 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
12520 (eval $ac_cpp conftest.
$ac_ext) 2>conftest.er1
12522 grep -v '^ *+' conftest.er1
>conftest.err
12524 cat conftest.err
>&5
12525 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12526 (exit $ac_status); } >/dev
/null
; then
12527 if test -s conftest.err
; then
12528 ac_cpp_err
=$ac_c_preproc_warn_flag
12529 ac_cpp_err
=$ac_cpp_err$ac_c_werror_flag
12536 if test -z "$ac_cpp_err"; then
12537 ac_header_preproc
=yes
12539 echo "$as_me: failed program was:" >&5
12540 sed 's/^/| /' conftest.
$ac_ext >&5
12542 ac_header_preproc
=no
12544 rm -f conftest.err conftest.
$ac_ext
12545 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
12546 echo "${ECHO_T}$ac_header_preproc" >&6
12548 # So? What about this header?
12549 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
12551 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
12552 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
12553 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
12554 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
12555 ac_header_preproc
=yes
12558 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
12559 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
12560 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
12561 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
12562 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
12563 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
12564 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
12565 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
12566 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
12567 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
12568 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
12569 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
12572 ## ------------------------------------------ ##
12573 ## Report this to the AC_PACKAGE_NAME lists. ##
12574 ## ------------------------------------------ ##
12577 sed "s/^/$as_me: WARNING: /" >&2
12580 echo "$as_me:$LINENO: checking for $ac_header" >&5
12581 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
12582 if eval "test \"\${$as_ac_Header+set}\" = set"; then
12583 echo $ECHO_N "(cached) $ECHO_C" >&6
12585 eval "$as_ac_Header=\$ac_header_preproc"
12587 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
12588 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
12591 if test `eval echo '${'$as_ac_Header'}'` = yes; then
12592 cat >>confdefs.h
<<_ACEOF
12593 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
12601 for ac_header
in link.h
12603 as_ac_Header
=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
12604 echo "$as_me:$LINENO: checking for $ac_header" >&5
12605 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
12606 if eval "test \"\${$as_ac_Header+set}\" = set"; then
12607 echo $ECHO_N "(cached) $ECHO_C" >&6
12609 cat >conftest.
$ac_ext <<_ACEOF
12612 cat confdefs.h
>>conftest.
$ac_ext
12613 cat >>conftest.
$ac_ext <<_ACEOF
12614 /* end confdefs.h. */
12615 #if HAVE_SYS_TYPES_H
12616 # include <sys/types.h>
12619 # include <nlist.h>
12623 #include <$ac_header>
12625 rm -f conftest.
$ac_objext
12626 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
12627 (eval $ac_compile) 2>conftest.er1
12629 grep -v '^ *+' conftest.er1
>conftest.err
12631 cat conftest.err
>&5
12632 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12633 (exit $ac_status); } &&
12634 { ac_try
='test -z "$ac_c_werror_flag"
12635 || test ! -s conftest.err'
12636 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12637 (eval $ac_try) 2>&5
12639 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12640 (exit $ac_status); }; } &&
12641 { ac_try
='test -s conftest.$ac_objext'
12642 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12643 (eval $ac_try) 2>&5
12645 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12646 (exit $ac_status); }; }; then
12647 eval "$as_ac_Header=yes"
12649 echo "$as_me: failed program was:" >&5
12650 sed 's/^/| /' conftest.
$ac_ext >&5
12652 eval "$as_ac_Header=no"
12654 rm -f conftest.err conftest.
$ac_objext conftest.
$ac_ext
12656 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
12657 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
12658 if test `eval echo '${'$as_ac_Header'}'` = yes; then
12659 cat >>confdefs.h
<<_ACEOF
12660 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
12668 for ac_header
in sys
/proc.h
12670 as_ac_Header
=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
12671 echo "$as_me:$LINENO: checking for $ac_header" >&5
12672 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
12673 if eval "test \"\${$as_ac_Header+set}\" = set"; then
12674 echo $ECHO_N "(cached) $ECHO_C" >&6
12676 cat >conftest.
$ac_ext <<_ACEOF
12679 cat confdefs.h
>>conftest.
$ac_ext
12680 cat >>conftest.
$ac_ext <<_ACEOF
12681 /* end confdefs.h. */
12682 #if HAVE_SYS_PARAM_H
12683 # include <sys/param.h>
12687 #include <$ac_header>
12689 rm -f conftest.
$ac_objext
12690 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
12691 (eval $ac_compile) 2>conftest.er1
12693 grep -v '^ *+' conftest.er1
>conftest.err
12695 cat conftest.err
>&5
12696 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12697 (exit $ac_status); } &&
12698 { ac_try
='test -z "$ac_c_werror_flag"
12699 || test ! -s conftest.err'
12700 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12701 (eval $ac_try) 2>&5
12703 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12704 (exit $ac_status); }; } &&
12705 { ac_try
='test -s conftest.$ac_objext'
12706 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12707 (eval $ac_try) 2>&5
12709 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12710 (exit $ac_status); }; }; then
12711 eval "$as_ac_Header=yes"
12713 echo "$as_me: failed program was:" >&5
12714 sed 's/^/| /' conftest.
$ac_ext >&5
12716 eval "$as_ac_Header=no"
12718 rm -f conftest.err conftest.
$ac_objext conftest.
$ac_ext
12720 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
12721 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
12722 if test `eval echo '${'$as_ac_Header'}'` = yes; then
12723 cat >>confdefs.h
<<_ACEOF
12724 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
12732 for ac_header
in sys
/user.h
12734 as_ac_Header
=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
12735 echo "$as_me:$LINENO: checking for $ac_header" >&5
12736 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
12737 if eval "test \"\${$as_ac_Header+set}\" = set"; then
12738 echo $ECHO_N "(cached) $ECHO_C" >&6
12740 cat >conftest.
$ac_ext <<_ACEOF
12743 cat confdefs.h
>>conftest.
$ac_ext
12744 cat >>conftest.
$ac_ext <<_ACEOF
12745 /* end confdefs.h. */
12746 #if HAVE_SYS_PARAM_H
12747 # include <sys/param.h>
12751 #include <$ac_header>
12753 rm -f conftest.
$ac_objext
12754 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
12755 (eval $ac_compile) 2>conftest.er1
12757 grep -v '^ *+' conftest.er1
>conftest.err
12759 cat conftest.err
>&5
12760 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12761 (exit $ac_status); } &&
12762 { ac_try
='test -z "$ac_c_werror_flag"
12763 || test ! -s conftest.err'
12764 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12765 (eval $ac_try) 2>&5
12767 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12768 (exit $ac_status); }; } &&
12769 { ac_try
='test -s conftest.$ac_objext'
12770 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12771 (eval $ac_try) 2>&5
12773 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12774 (exit $ac_status); }; }; then
12775 eval "$as_ac_Header=yes"
12777 echo "$as_me: failed program was:" >&5
12778 sed 's/^/| /' conftest.
$ac_ext >&5
12780 eval "$as_ac_Header=no"
12782 rm -f conftest.err conftest.
$ac_objext conftest.
$ac_ext
12784 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
12785 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
12786 if test `eval echo '${'$as_ac_Header'}'` = yes; then
12787 cat >>confdefs.h
<<_ACEOF
12788 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
12796 # On Solaris 2.[789], we need to define _MSE_INT_H to avoid a clash
12797 # between <widec.h> and <wchar.h> that would cause AC_CHECK_HEADERS to
12798 # think that we don't have <curses.h> if we're using GCC.
12801 if test "$GCC" = yes; then
12803 cat >>confdefs.h
<<\_ACEOF
12804 #define _MSE_INT_H 1
12814 for ac_header
in curses.h cursesX.h ncurses.h ncurses
/ncurses.h ncurses
/term.h
12816 as_ac_Header
=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
12817 if eval "test \"\${$as_ac_Header+set}\" = set"; then
12818 echo "$as_me:$LINENO: checking for $ac_header" >&5
12819 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
12820 if eval "test \"\${$as_ac_Header+set}\" = set"; then
12821 echo $ECHO_N "(cached) $ECHO_C" >&6
12823 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
12824 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
12826 # Is the header compilable?
12827 echo "$as_me:$LINENO: checking $ac_header usability" >&5
12828 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
12829 cat >conftest.
$ac_ext <<_ACEOF
12832 cat confdefs.h
>>conftest.
$ac_ext
12833 cat >>conftest.
$ac_ext <<_ACEOF
12834 /* end confdefs.h. */
12835 $ac_includes_default
12836 #include <$ac_header>
12838 rm -f conftest.
$ac_objext
12839 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
12840 (eval $ac_compile) 2>conftest.er1
12842 grep -v '^ *+' conftest.er1
>conftest.err
12844 cat conftest.err
>&5
12845 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12846 (exit $ac_status); } &&
12847 { ac_try
='test -z "$ac_c_werror_flag"
12848 || test ! -s conftest.err'
12849 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12850 (eval $ac_try) 2>&5
12852 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12853 (exit $ac_status); }; } &&
12854 { ac_try
='test -s conftest.$ac_objext'
12855 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12856 (eval $ac_try) 2>&5
12858 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12859 (exit $ac_status); }; }; then
12860 ac_header_compiler
=yes
12862 echo "$as_me: failed program was:" >&5
12863 sed 's/^/| /' conftest.
$ac_ext >&5
12865 ac_header_compiler
=no
12867 rm -f conftest.err conftest.
$ac_objext conftest.
$ac_ext
12868 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
12869 echo "${ECHO_T}$ac_header_compiler" >&6
12871 # Is the header present?
12872 echo "$as_me:$LINENO: checking $ac_header presence" >&5
12873 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
12874 cat >conftest.
$ac_ext <<_ACEOF
12877 cat confdefs.h
>>conftest.
$ac_ext
12878 cat >>conftest.
$ac_ext <<_ACEOF
12879 /* end confdefs.h. */
12880 #include <$ac_header>
12882 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
12883 (eval $ac_cpp conftest.
$ac_ext) 2>conftest.er1
12885 grep -v '^ *+' conftest.er1
>conftest.err
12887 cat conftest.err
>&5
12888 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12889 (exit $ac_status); } >/dev
/null
; then
12890 if test -s conftest.err
; then
12891 ac_cpp_err
=$ac_c_preproc_warn_flag
12892 ac_cpp_err
=$ac_cpp_err$ac_c_werror_flag
12899 if test -z "$ac_cpp_err"; then
12900 ac_header_preproc
=yes
12902 echo "$as_me: failed program was:" >&5
12903 sed 's/^/| /' conftest.
$ac_ext >&5
12905 ac_header_preproc
=no
12907 rm -f conftest.err conftest.
$ac_ext
12908 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
12909 echo "${ECHO_T}$ac_header_preproc" >&6
12911 # So? What about this header?
12912 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
12914 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
12915 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
12916 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
12917 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
12918 ac_header_preproc
=yes
12921 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
12922 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
12923 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
12924 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
12925 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
12926 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
12927 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
12928 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
12929 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
12930 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
12931 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
12932 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
12935 ## ------------------------------------------ ##
12936 ## Report this to the AC_PACKAGE_NAME lists. ##
12937 ## ------------------------------------------ ##
12940 sed "s/^/$as_me: WARNING: /" >&2
12943 echo "$as_me:$LINENO: checking for $ac_header" >&5
12944 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
12945 if eval "test \"\${$as_ac_Header+set}\" = set"; then
12946 echo $ECHO_N "(cached) $ECHO_C" >&6
12948 eval "$as_ac_Header=\$ac_header_preproc"
12950 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
12951 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
12954 if test `eval echo '${'$as_ac_Header'}'` = yes; then
12955 cat >>confdefs.h
<<_ACEOF
12956 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
12964 for ac_header
in term.h
12966 as_ac_Header
=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
12967 echo "$as_me:$LINENO: checking for $ac_header" >&5
12968 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
12969 if eval "test \"\${$as_ac_Header+set}\" = set"; then
12970 echo $ECHO_N "(cached) $ECHO_C" >&6
12972 cat >conftest.
$ac_ext <<_ACEOF
12975 cat confdefs.h
>>conftest.
$ac_ext
12976 cat >>conftest.
$ac_ext <<_ACEOF
12977 /* end confdefs.h. */
12979 # include <curses.h>
12983 #include <$ac_header>
12985 rm -f conftest.
$ac_objext
12986 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
12987 (eval $ac_compile) 2>conftest.er1
12989 grep -v '^ *+' conftest.er1
>conftest.err
12991 cat conftest.err
>&5
12992 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12993 (exit $ac_status); } &&
12994 { ac_try
='test -z "$ac_c_werror_flag"
12995 || test ! -s conftest.err'
12996 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12997 (eval $ac_try) 2>&5
12999 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13000 (exit $ac_status); }; } &&
13001 { ac_try
='test -s conftest.$ac_objext'
13002 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13003 (eval $ac_try) 2>&5
13005 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13006 (exit $ac_status); }; }; then
13007 eval "$as_ac_Header=yes"
13009 echo "$as_me: failed program was:" >&5
13010 sed 's/^/| /' conftest.
$ac_ext >&5
13012 eval "$as_ac_Header=no"
13014 rm -f conftest.err conftest.
$ac_objext conftest.
$ac_ext
13016 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
13017 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
13018 if test `eval echo '${'$as_ac_Header'}'` = yes; then
13019 cat >>confdefs.h
<<_ACEOF
13020 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
13028 # ------------------------- #
13029 # Checks for declarations. #
13030 # ------------------------- #
13032 echo "$as_me:$LINENO: checking whether free is declared" >&5
13033 echo $ECHO_N "checking whether free is declared... $ECHO_C" >&6
13034 if test "${ac_cv_have_decl_free+set}" = set; then
13035 echo $ECHO_N "(cached) $ECHO_C" >&6
13037 cat >conftest.
$ac_ext <<_ACEOF
13040 cat confdefs.h
>>conftest.
$ac_ext
13041 cat >>conftest.
$ac_ext <<_ACEOF
13042 /* end confdefs.h. */
13043 $ac_includes_default
13048 char *p = (char *) free;
13055 rm -f conftest.
$ac_objext
13056 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
13057 (eval $ac_compile) 2>conftest.er1
13059 grep -v '^ *+' conftest.er1
>conftest.err
13061 cat conftest.err
>&5
13062 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13063 (exit $ac_status); } &&
13064 { ac_try
='test -z "$ac_c_werror_flag"
13065 || test ! -s conftest.err'
13066 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13067 (eval $ac_try) 2>&5
13069 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13070 (exit $ac_status); }; } &&
13071 { ac_try
='test -s conftest.$ac_objext'
13072 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13073 (eval $ac_try) 2>&5
13075 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13076 (exit $ac_status); }; }; then
13077 ac_cv_have_decl_free
=yes
13079 echo "$as_me: failed program was:" >&5
13080 sed 's/^/| /' conftest.
$ac_ext >&5
13082 ac_cv_have_decl_free
=no
13084 rm -f conftest.err conftest.
$ac_objext conftest.
$ac_ext
13086 echo "$as_me:$LINENO: result: $ac_cv_have_decl_free" >&5
13087 echo "${ECHO_T}$ac_cv_have_decl_free" >&6
13088 if test $ac_cv_have_decl_free = yes; then
13090 cat >>confdefs.h
<<_ACEOF
13091 #define HAVE_DECL_FREE 1
13096 cat >>confdefs.h
<<_ACEOF
13097 #define HAVE_DECL_FREE 0
13102 echo "$as_me:$LINENO: checking whether malloc is declared" >&5
13103 echo $ECHO_N "checking whether malloc is declared... $ECHO_C" >&6
13104 if test "${ac_cv_have_decl_malloc+set}" = set; then
13105 echo $ECHO_N "(cached) $ECHO_C" >&6
13107 cat >conftest.
$ac_ext <<_ACEOF
13110 cat confdefs.h
>>conftest.
$ac_ext
13111 cat >>conftest.
$ac_ext <<_ACEOF
13112 /* end confdefs.h. */
13113 $ac_includes_default
13118 char *p = (char *) malloc;
13125 rm -f conftest.
$ac_objext
13126 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
13127 (eval $ac_compile) 2>conftest.er1
13129 grep -v '^ *+' conftest.er1
>conftest.err
13131 cat conftest.err
>&5
13132 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13133 (exit $ac_status); } &&
13134 { ac_try
='test -z "$ac_c_werror_flag"
13135 || test ! -s conftest.err'
13136 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13137 (eval $ac_try) 2>&5
13139 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13140 (exit $ac_status); }; } &&
13141 { ac_try
='test -s conftest.$ac_objext'
13142 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13143 (eval $ac_try) 2>&5
13145 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13146 (exit $ac_status); }; }; then
13147 ac_cv_have_decl_malloc
=yes
13149 echo "$as_me: failed program was:" >&5
13150 sed 's/^/| /' conftest.
$ac_ext >&5
13152 ac_cv_have_decl_malloc
=no
13154 rm -f conftest.err conftest.
$ac_objext conftest.
$ac_ext
13156 echo "$as_me:$LINENO: result: $ac_cv_have_decl_malloc" >&5
13157 echo "${ECHO_T}$ac_cv_have_decl_malloc" >&6
13158 if test $ac_cv_have_decl_malloc = yes; then
13160 cat >>confdefs.h
<<_ACEOF
13161 #define HAVE_DECL_MALLOC 1
13166 cat >>confdefs.h
<<_ACEOF
13167 #define HAVE_DECL_MALLOC 0
13172 echo "$as_me:$LINENO: checking whether realloc is declared" >&5
13173 echo $ECHO_N "checking whether realloc is declared... $ECHO_C" >&6
13174 if test "${ac_cv_have_decl_realloc+set}" = set; then
13175 echo $ECHO_N "(cached) $ECHO_C" >&6
13177 cat >conftest.
$ac_ext <<_ACEOF
13180 cat confdefs.h
>>conftest.
$ac_ext
13181 cat >>conftest.
$ac_ext <<_ACEOF
13182 /* end confdefs.h. */
13183 $ac_includes_default
13188 char *p = (char *) realloc;
13195 rm -f conftest.
$ac_objext
13196 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
13197 (eval $ac_compile) 2>conftest.er1
13199 grep -v '^ *+' conftest.er1
>conftest.err
13201 cat conftest.err
>&5
13202 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13203 (exit $ac_status); } &&
13204 { ac_try
='test -z "$ac_c_werror_flag"
13205 || test ! -s conftest.err'
13206 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13207 (eval $ac_try) 2>&5
13209 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13210 (exit $ac_status); }; } &&
13211 { ac_try
='test -s conftest.$ac_objext'
13212 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13213 (eval $ac_try) 2>&5
13215 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13216 (exit $ac_status); }; }; then
13217 ac_cv_have_decl_realloc
=yes
13219 echo "$as_me: failed program was:" >&5
13220 sed 's/^/| /' conftest.
$ac_ext >&5
13222 ac_cv_have_decl_realloc
=no
13224 rm -f conftest.err conftest.
$ac_objext conftest.
$ac_ext
13226 echo "$as_me:$LINENO: result: $ac_cv_have_decl_realloc" >&5
13227 echo "${ECHO_T}$ac_cv_have_decl_realloc" >&6
13228 if test $ac_cv_have_decl_realloc = yes; then
13230 cat >>confdefs.h
<<_ACEOF
13231 #define HAVE_DECL_REALLOC 1
13236 cat >>confdefs.h
<<_ACEOF
13237 #define HAVE_DECL_REALLOC 0
13242 echo "$as_me:$LINENO: checking whether strerror is declared" >&5
13243 echo $ECHO_N "checking whether strerror is declared... $ECHO_C" >&6
13244 if test "${ac_cv_have_decl_strerror+set}" = set; then
13245 echo $ECHO_N "(cached) $ECHO_C" >&6
13247 cat >conftest.
$ac_ext <<_ACEOF
13250 cat confdefs.h
>>conftest.
$ac_ext
13251 cat >>conftest.
$ac_ext <<_ACEOF
13252 /* end confdefs.h. */
13253 $ac_includes_default
13258 char *p = (char *) strerror;
13265 rm -f conftest.
$ac_objext
13266 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
13267 (eval $ac_compile) 2>conftest.er1
13269 grep -v '^ *+' conftest.er1
>conftest.err
13271 cat conftest.err
>&5
13272 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13273 (exit $ac_status); } &&
13274 { ac_try
='test -z "$ac_c_werror_flag"
13275 || test ! -s conftest.err'
13276 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13277 (eval $ac_try) 2>&5
13279 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13280 (exit $ac_status); }; } &&
13281 { ac_try
='test -s conftest.$ac_objext'
13282 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13283 (eval $ac_try) 2>&5
13285 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13286 (exit $ac_status); }; }; then
13287 ac_cv_have_decl_strerror
=yes
13289 echo "$as_me: failed program was:" >&5
13290 sed 's/^/| /' conftest.
$ac_ext >&5
13292 ac_cv_have_decl_strerror
=no
13294 rm -f conftest.err conftest.
$ac_objext conftest.
$ac_ext
13296 echo "$as_me:$LINENO: result: $ac_cv_have_decl_strerror" >&5
13297 echo "${ECHO_T}$ac_cv_have_decl_strerror" >&6
13298 if test $ac_cv_have_decl_strerror = yes; then
13300 cat >>confdefs.h
<<_ACEOF
13301 #define HAVE_DECL_STRERROR 1
13306 cat >>confdefs.h
<<_ACEOF
13307 #define HAVE_DECL_STRERROR 0
13312 echo "$as_me:$LINENO: checking whether strstr is declared" >&5
13313 echo $ECHO_N "checking whether strstr is declared... $ECHO_C" >&6
13314 if test "${ac_cv_have_decl_strstr+set}" = set; then
13315 echo $ECHO_N "(cached) $ECHO_C" >&6
13317 cat >conftest.
$ac_ext <<_ACEOF
13320 cat confdefs.h
>>conftest.
$ac_ext
13321 cat >>conftest.
$ac_ext <<_ACEOF
13322 /* end confdefs.h. */
13323 $ac_includes_default
13328 char *p = (char *) strstr;
13335 rm -f conftest.
$ac_objext
13336 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
13337 (eval $ac_compile) 2>conftest.er1
13339 grep -v '^ *+' conftest.er1
>conftest.err
13341 cat conftest.err
>&5
13342 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13343 (exit $ac_status); } &&
13344 { ac_try
='test -z "$ac_c_werror_flag"
13345 || test ! -s conftest.err'
13346 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13347 (eval $ac_try) 2>&5
13349 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13350 (exit $ac_status); }; } &&
13351 { ac_try
='test -s conftest.$ac_objext'
13352 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13353 (eval $ac_try) 2>&5
13355 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13356 (exit $ac_status); }; }; then
13357 ac_cv_have_decl_strstr
=yes
13359 echo "$as_me: failed program was:" >&5
13360 sed 's/^/| /' conftest.
$ac_ext >&5
13362 ac_cv_have_decl_strstr
=no
13364 rm -f conftest.err conftest.
$ac_objext conftest.
$ac_ext
13366 echo "$as_me:$LINENO: result: $ac_cv_have_decl_strstr" >&5
13367 echo "${ECHO_T}$ac_cv_have_decl_strstr" >&6
13368 if test $ac_cv_have_decl_strstr = yes; then
13370 cat >>confdefs.h
<<_ACEOF
13371 #define HAVE_DECL_STRSTR 1
13376 cat >>confdefs.h
<<_ACEOF
13377 #define HAVE_DECL_STRSTR 0
13382 echo "$as_me:$LINENO: checking whether getopt is declared" >&5
13383 echo $ECHO_N "checking whether getopt is declared... $ECHO_C" >&6
13384 if test "${ac_cv_have_decl_getopt+set}" = set; then
13385 echo $ECHO_N "(cached) $ECHO_C" >&6
13387 cat >conftest.
$ac_ext <<_ACEOF
13390 cat confdefs.h
>>conftest.
$ac_ext
13391 cat >>conftest.
$ac_ext <<_ACEOF
13392 /* end confdefs.h. */
13393 $ac_includes_default
13398 char *p = (char *) getopt;
13405 rm -f conftest.
$ac_objext
13406 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
13407 (eval $ac_compile) 2>conftest.er1
13409 grep -v '^ *+' conftest.er1
>conftest.err
13411 cat conftest.err
>&5
13412 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13413 (exit $ac_status); } &&
13414 { ac_try
='test -z "$ac_c_werror_flag"
13415 || test ! -s conftest.err'
13416 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13417 (eval $ac_try) 2>&5
13419 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13420 (exit $ac_status); }; } &&
13421 { ac_try
='test -s conftest.$ac_objext'
13422 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13423 (eval $ac_try) 2>&5
13425 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13426 (exit $ac_status); }; }; then
13427 ac_cv_have_decl_getopt
=yes
13429 echo "$as_me: failed program was:" >&5
13430 sed 's/^/| /' conftest.
$ac_ext >&5
13432 ac_cv_have_decl_getopt
=no
13434 rm -f conftest.err conftest.
$ac_objext conftest.
$ac_ext
13436 echo "$as_me:$LINENO: result: $ac_cv_have_decl_getopt" >&5
13437 echo "${ECHO_T}$ac_cv_have_decl_getopt" >&6
13438 if test $ac_cv_have_decl_getopt = yes; then
13440 cat >>confdefs.h
<<_ACEOF
13441 #define HAVE_DECL_GETOPT 1
13446 cat >>confdefs.h
<<_ACEOF
13447 #define HAVE_DECL_GETOPT 0
13452 echo "$as_me:$LINENO: checking whether snprintf is declared" >&5
13453 echo $ECHO_N "checking whether snprintf is declared... $ECHO_C" >&6
13454 if test "${ac_cv_have_decl_snprintf+set}" = set; then
13455 echo $ECHO_N "(cached) $ECHO_C" >&6
13457 cat >conftest.
$ac_ext <<_ACEOF
13460 cat confdefs.h
>>conftest.
$ac_ext
13461 cat >>conftest.
$ac_ext <<_ACEOF
13462 /* end confdefs.h. */
13463 $ac_includes_default
13468 char *p = (char *) snprintf;
13475 rm -f conftest.
$ac_objext
13476 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
13477 (eval $ac_compile) 2>conftest.er1
13479 grep -v '^ *+' conftest.er1
>conftest.err
13481 cat conftest.err
>&5
13482 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13483 (exit $ac_status); } &&
13484 { ac_try
='test -z "$ac_c_werror_flag"
13485 || test ! -s conftest.err'
13486 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13487 (eval $ac_try) 2>&5
13489 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13490 (exit $ac_status); }; } &&
13491 { ac_try
='test -s conftest.$ac_objext'
13492 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13493 (eval $ac_try) 2>&5
13495 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13496 (exit $ac_status); }; }; then
13497 ac_cv_have_decl_snprintf
=yes
13499 echo "$as_me: failed program was:" >&5
13500 sed 's/^/| /' conftest.
$ac_ext >&5
13502 ac_cv_have_decl_snprintf
=no
13504 rm -f conftest.err conftest.
$ac_objext conftest.
$ac_ext
13506 echo "$as_me:$LINENO: result: $ac_cv_have_decl_snprintf" >&5
13507 echo "${ECHO_T}$ac_cv_have_decl_snprintf" >&6
13508 if test $ac_cv_have_decl_snprintf = yes; then
13510 cat >>confdefs.h
<<_ACEOF
13511 #define HAVE_DECL_SNPRINTF 1
13516 cat >>confdefs.h
<<_ACEOF
13517 #define HAVE_DECL_SNPRINTF 0
13522 echo "$as_me:$LINENO: checking whether vsnprintf is declared" >&5
13523 echo $ECHO_N "checking whether vsnprintf is declared... $ECHO_C" >&6
13524 if test "${ac_cv_have_decl_vsnprintf+set}" = set; then
13525 echo $ECHO_N "(cached) $ECHO_C" >&6
13527 cat >conftest.
$ac_ext <<_ACEOF
13530 cat confdefs.h
>>conftest.
$ac_ext
13531 cat >>conftest.
$ac_ext <<_ACEOF
13532 /* end confdefs.h. */
13533 $ac_includes_default
13538 char *p = (char *) vsnprintf;
13545 rm -f conftest.
$ac_objext
13546 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
13547 (eval $ac_compile) 2>conftest.er1
13549 grep -v '^ *+' conftest.er1
>conftest.err
13551 cat conftest.err
>&5
13552 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13553 (exit $ac_status); } &&
13554 { ac_try
='test -z "$ac_c_werror_flag"
13555 || test ! -s conftest.err'
13556 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13557 (eval $ac_try) 2>&5
13559 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13560 (exit $ac_status); }; } &&
13561 { ac_try
='test -s conftest.$ac_objext'
13562 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13563 (eval $ac_try) 2>&5
13565 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13566 (exit $ac_status); }; }; then
13567 ac_cv_have_decl_vsnprintf
=yes
13569 echo "$as_me: failed program was:" >&5
13570 sed 's/^/| /' conftest.
$ac_ext >&5
13572 ac_cv_have_decl_vsnprintf
=no
13574 rm -f conftest.err conftest.
$ac_objext conftest.
$ac_ext
13576 echo "$as_me:$LINENO: result: $ac_cv_have_decl_vsnprintf" >&5
13577 echo "${ECHO_T}$ac_cv_have_decl_vsnprintf" >&6
13578 if test $ac_cv_have_decl_vsnprintf = yes; then
13580 cat >>confdefs.h
<<_ACEOF
13581 #define HAVE_DECL_VSNPRINTF 1
13586 cat >>confdefs.h
<<_ACEOF
13587 #define HAVE_DECL_VSNPRINTF 0
13595 echo "$as_me:$LINENO: checking for LC_MESSAGES" >&5
13596 echo $ECHO_N "checking for LC_MESSAGES... $ECHO_C" >&6
13597 if test "${am_cv_val_LC_MESSAGES+set}" = set; then
13598 echo $ECHO_N "(cached) $ECHO_C" >&6
13600 cat >conftest.
$ac_ext <<_ACEOF
13603 cat confdefs.h
>>conftest.
$ac_ext
13604 cat >>conftest.
$ac_ext <<_ACEOF
13605 /* end confdefs.h. */
13606 #include <locale.h>
13615 rm -f conftest.
$ac_objext conftest
$ac_exeext
13616 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
13617 (eval $ac_link) 2>conftest.er1
13619 grep -v '^ *+' conftest.er1
>conftest.err
13621 cat conftest.err
>&5
13622 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13623 (exit $ac_status); } &&
13624 { ac_try
='test -z "$ac_c_werror_flag"
13625 || test ! -s conftest.err'
13626 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13627 (eval $ac_try) 2>&5
13629 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13630 (exit $ac_status); }; } &&
13631 { ac_try
='test -s conftest$ac_exeext'
13632 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13633 (eval $ac_try) 2>&5
13635 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13636 (exit $ac_status); }; }; then
13637 am_cv_val_LC_MESSAGES
=yes
13639 echo "$as_me: failed program was:" >&5
13640 sed 's/^/| /' conftest.
$ac_ext >&5
13642 am_cv_val_LC_MESSAGES
=no
13644 rm -f conftest.err conftest.
$ac_objext \
13645 conftest
$ac_exeext conftest.
$ac_ext
13647 echo "$as_me:$LINENO: result: $am_cv_val_LC_MESSAGES" >&5
13648 echo "${ECHO_T}$am_cv_val_LC_MESSAGES" >&6
13649 if test $am_cv_val_LC_MESSAGES = yes; then
13651 cat >>confdefs.h
<<\_ACEOF
13652 #define HAVE_LC_MESSAGES 1
13658 # ----------------------- #
13659 # Checks for structures. #
13660 # ----------------------- #
13662 echo "$as_me:$LINENO: checking for struct stat.st_blocks" >&5
13663 echo $ECHO_N "checking for struct stat.st_blocks... $ECHO_C" >&6
13664 if test "${ac_cv_member_struct_stat_st_blocks+set}" = set; then
13665 echo $ECHO_N "(cached) $ECHO_C" >&6
13667 cat >conftest.
$ac_ext <<_ACEOF
13670 cat confdefs.h
>>conftest.
$ac_ext
13671 cat >>conftest.
$ac_ext <<_ACEOF
13672 /* end confdefs.h. */
13673 $ac_includes_default
13677 static struct stat ac_aggr;
13678 if (ac_aggr.st_blocks)
13684 rm -f conftest.
$ac_objext
13685 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
13686 (eval $ac_compile) 2>conftest.er1
13688 grep -v '^ *+' conftest.er1
>conftest.err
13690 cat conftest.err
>&5
13691 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13692 (exit $ac_status); } &&
13693 { ac_try
='test -z "$ac_c_werror_flag"
13694 || test ! -s conftest.err'
13695 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13696 (eval $ac_try) 2>&5
13698 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13699 (exit $ac_status); }; } &&
13700 { ac_try
='test -s conftest.$ac_objext'
13701 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13702 (eval $ac_try) 2>&5
13704 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13705 (exit $ac_status); }; }; then
13706 ac_cv_member_struct_stat_st_blocks
=yes
13708 echo "$as_me: failed program was:" >&5
13709 sed 's/^/| /' conftest.
$ac_ext >&5
13711 cat >conftest.
$ac_ext <<_ACEOF
13714 cat confdefs.h
>>conftest.
$ac_ext
13715 cat >>conftest.
$ac_ext <<_ACEOF
13716 /* end confdefs.h. */
13717 $ac_includes_default
13721 static struct stat ac_aggr;
13722 if (sizeof ac_aggr.st_blocks)
13728 rm -f conftest.
$ac_objext
13729 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
13730 (eval $ac_compile) 2>conftest.er1
13732 grep -v '^ *+' conftest.er1
>conftest.err
13734 cat conftest.err
>&5
13735 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13736 (exit $ac_status); } &&
13737 { ac_try
='test -z "$ac_c_werror_flag"
13738 || test ! -s conftest.err'
13739 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13740 (eval $ac_try) 2>&5
13742 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13743 (exit $ac_status); }; } &&
13744 { ac_try
='test -s conftest.$ac_objext'
13745 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13746 (eval $ac_try) 2>&5
13748 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13749 (exit $ac_status); }; }; then
13750 ac_cv_member_struct_stat_st_blocks
=yes
13752 echo "$as_me: failed program was:" >&5
13753 sed 's/^/| /' conftest.
$ac_ext >&5
13755 ac_cv_member_struct_stat_st_blocks
=no
13757 rm -f conftest.err conftest.
$ac_objext conftest.
$ac_ext
13759 rm -f conftest.err conftest.
$ac_objext conftest.
$ac_ext
13761 echo "$as_me:$LINENO: result: $ac_cv_member_struct_stat_st_blocks" >&5
13762 echo "${ECHO_T}$ac_cv_member_struct_stat_st_blocks" >&6
13763 if test $ac_cv_member_struct_stat_st_blocks = yes; then
13765 cat >>confdefs.h
<<_ACEOF
13766 #define HAVE_STRUCT_STAT_ST_BLOCKS 1
13771 echo "$as_me:$LINENO: checking for struct stat.st_blksize" >&5
13772 echo $ECHO_N "checking for struct stat.st_blksize... $ECHO_C" >&6
13773 if test "${ac_cv_member_struct_stat_st_blksize+set}" = set; then
13774 echo $ECHO_N "(cached) $ECHO_C" >&6
13776 cat >conftest.
$ac_ext <<_ACEOF
13779 cat confdefs.h
>>conftest.
$ac_ext
13780 cat >>conftest.
$ac_ext <<_ACEOF
13781 /* end confdefs.h. */
13782 $ac_includes_default
13786 static struct stat ac_aggr;
13787 if (ac_aggr.st_blksize)
13793 rm -f conftest.
$ac_objext
13794 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
13795 (eval $ac_compile) 2>conftest.er1
13797 grep -v '^ *+' conftest.er1
>conftest.err
13799 cat conftest.err
>&5
13800 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13801 (exit $ac_status); } &&
13802 { ac_try
='test -z "$ac_c_werror_flag"
13803 || test ! -s conftest.err'
13804 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13805 (eval $ac_try) 2>&5
13807 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13808 (exit $ac_status); }; } &&
13809 { ac_try
='test -s conftest.$ac_objext'
13810 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13811 (eval $ac_try) 2>&5
13813 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13814 (exit $ac_status); }; }; then
13815 ac_cv_member_struct_stat_st_blksize
=yes
13817 echo "$as_me: failed program was:" >&5
13818 sed 's/^/| /' conftest.
$ac_ext >&5
13820 cat >conftest.
$ac_ext <<_ACEOF
13823 cat confdefs.h
>>conftest.
$ac_ext
13824 cat >>conftest.
$ac_ext <<_ACEOF
13825 /* end confdefs.h. */
13826 $ac_includes_default
13830 static struct stat ac_aggr;
13831 if (sizeof ac_aggr.st_blksize)
13837 rm -f conftest.
$ac_objext
13838 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
13839 (eval $ac_compile) 2>conftest.er1
13841 grep -v '^ *+' conftest.er1
>conftest.err
13843 cat conftest.err
>&5
13844 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13845 (exit $ac_status); } &&
13846 { ac_try
='test -z "$ac_c_werror_flag"
13847 || test ! -s conftest.err'
13848 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13849 (eval $ac_try) 2>&5
13851 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13852 (exit $ac_status); }; } &&
13853 { ac_try
='test -s conftest.$ac_objext'
13854 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13855 (eval $ac_try) 2>&5
13857 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13858 (exit $ac_status); }; }; then
13859 ac_cv_member_struct_stat_st_blksize
=yes
13861 echo "$as_me: failed program was:" >&5
13862 sed 's/^/| /' conftest.
$ac_ext >&5
13864 ac_cv_member_struct_stat_st_blksize
=no
13866 rm -f conftest.err conftest.
$ac_objext conftest.
$ac_ext
13868 rm -f conftest.err conftest.
$ac_objext conftest.
$ac_ext
13870 echo "$as_me:$LINENO: result: $ac_cv_member_struct_stat_st_blksize" >&5
13871 echo "${ECHO_T}$ac_cv_member_struct_stat_st_blksize" >&6
13872 if test $ac_cv_member_struct_stat_st_blksize = yes; then
13874 cat >>confdefs.h
<<_ACEOF
13875 #define HAVE_STRUCT_STAT_ST_BLKSIZE 1
13882 # ------------------ #
13883 # Checks for types. #
13884 # ------------------ #
13886 echo "$as_me:$LINENO: checking return type of signal handlers" >&5
13887 echo $ECHO_N "checking return type of signal handlers... $ECHO_C" >&6
13888 if test "${ac_cv_type_signal+set}" = set; then
13889 echo $ECHO_N "(cached) $ECHO_C" >&6
13891 cat >conftest.
$ac_ext <<_ACEOF
13894 cat confdefs.h
>>conftest.
$ac_ext
13895 cat >>conftest.
$ac_ext <<_ACEOF
13896 /* end confdefs.h. */
13897 #include <sys/types.h>
13898 #include <signal.h>
13903 extern "C" void (*signal (int, void (*)(int)))(int);
13905 void (*signal ()) ();
13916 rm -f conftest.
$ac_objext
13917 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
13918 (eval $ac_compile) 2>conftest.er1
13920 grep -v '^ *+' conftest.er1
>conftest.err
13922 cat conftest.err
>&5
13923 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13924 (exit $ac_status); } &&
13925 { ac_try
='test -z "$ac_c_werror_flag"
13926 || test ! -s conftest.err'
13927 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13928 (eval $ac_try) 2>&5
13930 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13931 (exit $ac_status); }; } &&
13932 { ac_try
='test -s conftest.$ac_objext'
13933 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13934 (eval $ac_try) 2>&5
13936 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13937 (exit $ac_status); }; }; then
13938 ac_cv_type_signal
=void
13940 echo "$as_me: failed program was:" >&5
13941 sed 's/^/| /' conftest.
$ac_ext >&5
13943 ac_cv_type_signal
=int
13945 rm -f conftest.err conftest.
$ac_objext conftest.
$ac_ext
13947 echo "$as_me:$LINENO: result: $ac_cv_type_signal" >&5
13948 echo "${ECHO_T}$ac_cv_type_signal" >&6
13950 cat >>confdefs.h
<<_ACEOF
13951 #define RETSIGTYPE $ac_cv_type_signal
13955 echo "$as_me:$LINENO: checking for socklen_t" >&5
13956 echo $ECHO_N "checking for socklen_t... $ECHO_C" >&6
13957 if test "${ac_cv_type_socklen_t+set}" = set; then
13958 echo $ECHO_N "(cached) $ECHO_C" >&6
13960 cat >conftest.
$ac_ext <<_ACEOF
13963 cat confdefs.h
>>conftest.
$ac_ext
13964 cat >>conftest.
$ac_ext <<_ACEOF
13965 /* end confdefs.h. */
13966 #include <sys/types.h>
13967 #include <sys/socket.h>
13973 if ((socklen_t *) 0)
13975 if (sizeof (socklen_t))
13981 rm -f conftest.
$ac_objext
13982 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
13983 (eval $ac_compile) 2>conftest.er1
13985 grep -v '^ *+' conftest.er1
>conftest.err
13987 cat conftest.err
>&5
13988 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13989 (exit $ac_status); } &&
13990 { ac_try
='test -z "$ac_c_werror_flag"
13991 || test ! -s conftest.err'
13992 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13993 (eval $ac_try) 2>&5
13995 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13996 (exit $ac_status); }; } &&
13997 { ac_try
='test -s conftest.$ac_objext'
13998 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13999 (eval $ac_try) 2>&5
14001 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14002 (exit $ac_status); }; }; then
14003 ac_cv_type_socklen_t
=yes
14005 echo "$as_me: failed program was:" >&5
14006 sed 's/^/| /' conftest.
$ac_ext >&5
14008 ac_cv_type_socklen_t
=no
14010 rm -f conftest.err conftest.
$ac_objext conftest.
$ac_ext
14012 echo "$as_me:$LINENO: result: $ac_cv_type_socklen_t" >&5
14013 echo "${ECHO_T}$ac_cv_type_socklen_t" >&6
14014 if test $ac_cv_type_socklen_t = yes; then
14016 cat >>confdefs.h
<<_ACEOF
14017 #define HAVE_SOCKLEN_T 1
14024 # ------------------------------------- #
14025 # Checks for compiler characteristics. #
14026 # ------------------------------------- #
14028 echo "$as_me:$LINENO: checking for an ANSI C-conforming const" >&5
14029 echo $ECHO_N "checking for an ANSI C-conforming const... $ECHO_C" >&6
14030 if test "${ac_cv_c_const+set}" = set; then
14031 echo $ECHO_N "(cached) $ECHO_C" >&6
14033 cat >conftest.
$ac_ext <<_ACEOF
14036 cat confdefs.h
>>conftest.
$ac_ext
14037 cat >>conftest.
$ac_ext <<_ACEOF
14038 /* end confdefs.h. */
14043 /* FIXME: Include the comments suggested by Paul. */
14044 #ifndef __cplusplus
14045 /* Ultrix mips cc rejects this. */
14046 typedef int charset[2];
14048 /* SunOS 4.1.1 cc rejects this. */
14049 char const *const *ccp;
14051 /* NEC SVR4.0.2 mips cc rejects this. */
14052 struct point {int x, y;};
14053 static struct point const zero = {0,0};
14054 /* AIX XL C 1.02.0.0 rejects this.
14055 It does not let you subtract one const X* pointer from another in
14056 an arm of an if-expression whose if-part is not a constant
14058 const char *g = "string";
14059 ccp = &g + (g ? g-g : 0);
14060 /* HPUX 7.0 cc rejects these. */
14063 ccp = (char const *const *) p;
14064 { /* SCO 3.2v4 cc rejects this. */
14066 char const *s = 0 ? (char *) 0 : (char const *) 0;
14070 { /* Someone thinks the Sun supposedly-ANSI compiler will reject this. */
14071 int x[] = {25, 17};
14072 const int *foo = &x[0];
14075 { /* Sun SC1.0 ANSI compiler rejects this -- but not the above. */
14076 typedef const int *iptr;
14080 { /* AIX XL C 1.02.0.0 rejects this saying
14081 "k.c", line 2.27: 1506-025 (S) Operand must be a modifiable lvalue. */
14082 struct s { int j; const int *ap[3]; };
14083 struct s *b; b->j = 5;
14085 { /* ULTRIX-32 V3.1 (Rev 9) vcc rejects this */
14086 const int foo = 10;
14094 rm -f conftest.
$ac_objext
14095 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
14096 (eval $ac_compile) 2>conftest.er1
14098 grep -v '^ *+' conftest.er1
>conftest.err
14100 cat conftest.err
>&5
14101 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14102 (exit $ac_status); } &&
14103 { ac_try
='test -z "$ac_c_werror_flag"
14104 || test ! -s conftest.err'
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); }; } &&
14110 { ac_try
='test -s conftest.$ac_objext'
14111 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14112 (eval $ac_try) 2>&5
14114 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14115 (exit $ac_status); }; }; then
14118 echo "$as_me: failed program was:" >&5
14119 sed 's/^/| /' conftest.
$ac_ext >&5
14123 rm -f conftest.err conftest.
$ac_objext conftest.
$ac_ext
14125 echo "$as_me:$LINENO: result: $ac_cv_c_const" >&5
14126 echo "${ECHO_T}$ac_cv_c_const" >&6
14127 if test $ac_cv_c_const = no
; then
14129 cat >>confdefs.h
<<\_ACEOF
14135 echo "$as_me:$LINENO: checking for inline" >&5
14136 echo $ECHO_N "checking for inline... $ECHO_C" >&6
14137 if test "${ac_cv_c_inline+set}" = set; then
14138 echo $ECHO_N "(cached) $ECHO_C" >&6
14141 for ac_kw
in inline __inline__ __inline
; do
14142 cat >conftest.
$ac_ext <<_ACEOF
14145 cat confdefs.h
>>conftest.
$ac_ext
14146 cat >>conftest.
$ac_ext <<_ACEOF
14147 /* end confdefs.h. */
14148 #ifndef __cplusplus
14150 static $ac_kw foo_t static_foo () {return 0; }
14151 $ac_kw foo_t foo () {return 0; }
14155 rm -f conftest.
$ac_objext
14156 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
14157 (eval $ac_compile) 2>conftest.er1
14159 grep -v '^ *+' conftest.er1
>conftest.err
14161 cat conftest.err
>&5
14162 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14163 (exit $ac_status); } &&
14164 { ac_try
='test -z "$ac_c_werror_flag"
14165 || test ! -s conftest.err'
14166 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14167 (eval $ac_try) 2>&5
14169 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14170 (exit $ac_status); }; } &&
14171 { ac_try
='test -s conftest.$ac_objext'
14172 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14173 (eval $ac_try) 2>&5
14175 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14176 (exit $ac_status); }; }; then
14177 ac_cv_c_inline
=$ac_kw; break
14179 echo "$as_me: failed program was:" >&5
14180 sed 's/^/| /' conftest.
$ac_ext >&5
14183 rm -f conftest.err conftest.
$ac_objext conftest.
$ac_ext
14187 echo "$as_me:$LINENO: result: $ac_cv_c_inline" >&5
14188 echo "${ECHO_T}$ac_cv_c_inline" >&6
14191 case $ac_cv_c_inline in
14194 case $ac_cv_c_inline in
14196 *) ac_val
=$ac_cv_c_inline;;
14198 cat >>confdefs.h
<<_ACEOF
14199 #ifndef __cplusplus
14200 #define inline $ac_val
14206 echo "$as_me:$LINENO: checking whether byte ordering is bigendian" >&5
14207 echo $ECHO_N "checking whether byte ordering is bigendian... $ECHO_C" >&6
14208 if test "${ac_cv_c_bigendian+set}" = set; then
14209 echo $ECHO_N "(cached) $ECHO_C" >&6
14211 # See if sys/param.h defines the BYTE_ORDER macro.
14212 cat >conftest.
$ac_ext <<_ACEOF
14215 cat confdefs.h
>>conftest.
$ac_ext
14216 cat >>conftest.
$ac_ext <<_ACEOF
14217 /* end confdefs.h. */
14218 #include <sys/types.h>
14219 #include <sys/param.h>
14224 #if !BYTE_ORDER || !BIG_ENDIAN || !LITTLE_ENDIAN
14225 bogus endian macros
14232 rm -f conftest.
$ac_objext
14233 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
14234 (eval $ac_compile) 2>conftest.er1
14236 grep -v '^ *+' conftest.er1
>conftest.err
14238 cat conftest.err
>&5
14239 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14240 (exit $ac_status); } &&
14241 { ac_try
='test -z "$ac_c_werror_flag"
14242 || test ! -s conftest.err'
14243 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14244 (eval $ac_try) 2>&5
14246 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14247 (exit $ac_status); }; } &&
14248 { ac_try
='test -s conftest.$ac_objext'
14249 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14250 (eval $ac_try) 2>&5
14252 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14253 (exit $ac_status); }; }; then
14254 # It does; now see whether it defined to BIG_ENDIAN or not.
14255 cat >conftest.
$ac_ext <<_ACEOF
14258 cat confdefs.h
>>conftest.
$ac_ext
14259 cat >>conftest.
$ac_ext <<_ACEOF
14260 /* end confdefs.h. */
14261 #include <sys/types.h>
14262 #include <sys/param.h>
14267 #if BYTE_ORDER != BIG_ENDIAN
14275 rm -f conftest.
$ac_objext
14276 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
14277 (eval $ac_compile) 2>conftest.er1
14279 grep -v '^ *+' conftest.er1
>conftest.err
14281 cat conftest.err
>&5
14282 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14283 (exit $ac_status); } &&
14284 { ac_try
='test -z "$ac_c_werror_flag"
14285 || test ! -s conftest.err'
14286 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14287 (eval $ac_try) 2>&5
14289 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14290 (exit $ac_status); }; } &&
14291 { ac_try
='test -s conftest.$ac_objext'
14292 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14293 (eval $ac_try) 2>&5
14295 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14296 (exit $ac_status); }; }; then
14297 ac_cv_c_bigendian
=yes
14299 echo "$as_me: failed program was:" >&5
14300 sed 's/^/| /' conftest.
$ac_ext >&5
14302 ac_cv_c_bigendian
=no
14304 rm -f conftest.err conftest.
$ac_objext conftest.
$ac_ext
14306 echo "$as_me: failed program was:" >&5
14307 sed 's/^/| /' conftest.
$ac_ext >&5
14309 # It does not; compile a test program.
14310 if test "$cross_compiling" = yes; then
14311 # try to guess the endianness by grepping values into an object file
14312 ac_cv_c_bigendian
=unknown
14313 cat >conftest.
$ac_ext <<_ACEOF
14316 cat confdefs.h
>>conftest.
$ac_ext
14317 cat >>conftest.
$ac_ext <<_ACEOF
14318 /* end confdefs.h. */
14319 short ascii_mm[] = { 0x4249, 0x4765, 0x6E44, 0x6961, 0x6E53, 0x7953, 0 };
14320 short ascii_ii[] = { 0x694C, 0x5454, 0x656C, 0x6E45, 0x6944, 0x6E61, 0 };
14321 void _ascii () { char *s = (char *) ascii_mm; s = (char *) ascii_ii; }
14322 short ebcdic_ii[] = { 0x89D3, 0xE3E3, 0x8593, 0x95C5, 0x89C4, 0x9581, 0 };
14323 short ebcdic_mm[] = { 0xC2C9, 0xC785, 0x95C4, 0x8981, 0x95E2, 0xA8E2, 0 };
14324 void _ebcdic () { char *s = (char *) ebcdic_mm; s = (char *) ebcdic_ii; }
14328 _ascii (); _ebcdic ();
14333 rm -f conftest.
$ac_objext
14334 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
14335 (eval $ac_compile) 2>conftest.er1
14337 grep -v '^ *+' conftest.er1
>conftest.err
14339 cat conftest.err
>&5
14340 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14341 (exit $ac_status); } &&
14342 { ac_try
='test -z "$ac_c_werror_flag"
14343 || test ! -s conftest.err'
14344 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14345 (eval $ac_try) 2>&5
14347 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14348 (exit $ac_status); }; } &&
14349 { ac_try
='test -s conftest.$ac_objext'
14350 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14351 (eval $ac_try) 2>&5
14353 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14354 (exit $ac_status); }; }; then
14355 if grep BIGenDianSyS conftest.
$ac_objext >/dev
/null
; then
14356 ac_cv_c_bigendian
=yes
14358 if grep LiTTleEnDian conftest.
$ac_objext >/dev
/null
; then
14359 if test "$ac_cv_c_bigendian" = unknown
; then
14360 ac_cv_c_bigendian
=no
14362 # finding both strings is unlikely to happen, but who knows?
14363 ac_cv_c_bigendian
=unknown
14367 echo "$as_me: failed program was:" >&5
14368 sed 's/^/| /' conftest.
$ac_ext >&5
14371 rm -f conftest.err conftest.
$ac_objext conftest.
$ac_ext
14373 cat >conftest.
$ac_ext <<_ACEOF
14376 cat confdefs.h
>>conftest.
$ac_ext
14377 cat >>conftest.
$ac_ext <<_ACEOF
14378 /* end confdefs.h. */
14382 /* Are we little or big endian? From Harbison&Steele. */
14386 char c[sizeof (long)];
14389 exit (u.c[sizeof (long) - 1] == 1);
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_bigendian
=no
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_bigendian
=yes
14412 rm -f core
*.core gmon.out bb.out conftest
$ac_exeext conftest.
$ac_objext conftest.
$ac_ext
14415 rm -f conftest.err conftest.
$ac_objext conftest.
$ac_ext
14417 echo "$as_me:$LINENO: result: $ac_cv_c_bigendian" >&5
14418 echo "${ECHO_T}$ac_cv_c_bigendian" >&6
14419 case $ac_cv_c_bigendian in
14422 cat >>confdefs.h
<<\_ACEOF
14423 #define WORDS_BIGENDIAN 1
14429 { { echo "$as_me:$LINENO: error: unknown endianness
14430 presetting ac_cv_c_bigendian=no (or yes) will help" >&5
14431 echo "$as_me: error: unknown endianness
14432 presetting ac_cv_c_bigendian=no (or yes) will help" >&2;}
14433 { (exit 1); exit 1; }; } ;;
14437 # ------------------------------ #
14438 # Checks for library functions. #
14439 # ------------------------------ #
14441 # The Ultrix 4.2 mips builtin alloca declared by alloca.h only works
14442 # for constant arguments. Useless!
14443 echo "$as_me:$LINENO: checking for working alloca.h" >&5
14444 echo $ECHO_N "checking for working alloca.h... $ECHO_C" >&6
14445 if test "${ac_cv_working_alloca_h+set}" = set; then
14446 echo $ECHO_N "(cached) $ECHO_C" >&6
14448 cat >conftest.
$ac_ext <<_ACEOF
14451 cat confdefs.h
>>conftest.
$ac_ext
14452 cat >>conftest.
$ac_ext <<_ACEOF
14453 /* end confdefs.h. */
14454 #include <alloca.h>
14458 char *p = (char *) alloca (2 * sizeof (int));
14463 rm -f conftest.
$ac_objext conftest
$ac_exeext
14464 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
14465 (eval $ac_link) 2>conftest.er1
14467 grep -v '^ *+' conftest.er1
>conftest.err
14469 cat conftest.err
>&5
14470 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14471 (exit $ac_status); } &&
14472 { ac_try
='test -z "$ac_c_werror_flag"
14473 || test ! -s conftest.err'
14474 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14475 (eval $ac_try) 2>&5
14477 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14478 (exit $ac_status); }; } &&
14479 { ac_try
='test -s conftest$ac_exeext'
14480 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14481 (eval $ac_try) 2>&5
14483 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14484 (exit $ac_status); }; }; then
14485 ac_cv_working_alloca_h
=yes
14487 echo "$as_me: failed program was:" >&5
14488 sed 's/^/| /' conftest.
$ac_ext >&5
14490 ac_cv_working_alloca_h
=no
14492 rm -f conftest.err conftest.
$ac_objext \
14493 conftest
$ac_exeext conftest.
$ac_ext
14495 echo "$as_me:$LINENO: result: $ac_cv_working_alloca_h" >&5
14496 echo "${ECHO_T}$ac_cv_working_alloca_h" >&6
14497 if test $ac_cv_working_alloca_h = yes; then
14499 cat >>confdefs.h
<<\_ACEOF
14500 #define HAVE_ALLOCA_H 1
14505 echo "$as_me:$LINENO: checking for alloca" >&5
14506 echo $ECHO_N "checking for alloca... $ECHO_C" >&6
14507 if test "${ac_cv_func_alloca_works+set}" = set; then
14508 echo $ECHO_N "(cached) $ECHO_C" >&6
14510 cat >conftest.
$ac_ext <<_ACEOF
14513 cat confdefs.h
>>conftest.
$ac_ext
14514 cat >>conftest.
$ac_ext <<_ACEOF
14515 /* end confdefs.h. */
14517 # define alloca __builtin_alloca
14520 # include <malloc.h>
14521 # define alloca _alloca
14524 # include <alloca.h>
14529 # ifndef alloca /* predefined by HP cc +Olibcalls */
14540 char *p = (char *) alloca (1);
14545 rm -f conftest.
$ac_objext conftest
$ac_exeext
14546 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
14547 (eval $ac_link) 2>conftest.er1
14549 grep -v '^ *+' conftest.er1
>conftest.err
14551 cat conftest.err
>&5
14552 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14553 (exit $ac_status); } &&
14554 { ac_try
='test -z "$ac_c_werror_flag"
14555 || test ! -s conftest.err'
14556 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14557 (eval $ac_try) 2>&5
14559 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14560 (exit $ac_status); }; } &&
14561 { ac_try
='test -s conftest$ac_exeext'
14562 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14563 (eval $ac_try) 2>&5
14565 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14566 (exit $ac_status); }; }; then
14567 ac_cv_func_alloca_works
=yes
14569 echo "$as_me: failed program was:" >&5
14570 sed 's/^/| /' conftest.
$ac_ext >&5
14572 ac_cv_func_alloca_works
=no
14574 rm -f conftest.err conftest.
$ac_objext \
14575 conftest
$ac_exeext conftest.
$ac_ext
14577 echo "$as_me:$LINENO: result: $ac_cv_func_alloca_works" >&5
14578 echo "${ECHO_T}$ac_cv_func_alloca_works" >&6
14580 if test $ac_cv_func_alloca_works = yes; then
14582 cat >>confdefs.h
<<\_ACEOF
14583 #define HAVE_ALLOCA 1
14587 # The SVR3 libPW and SVR4 libucb both contain incompatible functions
14588 # that cause trouble. Some versions do not even contain alloca or
14589 # contain a buggy version. If you still want to use their alloca,
14590 # use ar to extract alloca.o from them instead of compiling alloca.c.
14592 ALLOCA
=alloca.
$ac_objext
14594 cat >>confdefs.h
<<\_ACEOF
14599 echo "$as_me:$LINENO: checking whether \`alloca.c' needs Cray hooks" >&5
14600 echo $ECHO_N "checking whether \`alloca.c' needs Cray hooks... $ECHO_C" >&6
14601 if test "${ac_cv_os_cray+set}" = set; then
14602 echo $ECHO_N "(cached) $ECHO_C" >&6
14604 cat >conftest.
$ac_ext <<_ACEOF
14607 cat confdefs.h
>>conftest.
$ac_ext
14608 cat >>conftest.
$ac_ext <<_ACEOF
14609 /* end confdefs.h. */
14610 #if defined(CRAY) && ! defined(CRAY2)
14617 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
14618 $EGREP "webecray" >/dev
/null
2>&1; then
14626 echo "$as_me:$LINENO: result: $ac_cv_os_cray" >&5
14627 echo "${ECHO_T}$ac_cv_os_cray" >&6
14628 if test $ac_cv_os_cray = yes; then
14629 for ac_func
in _getb67 GETB67 getb67
; do
14630 as_ac_var
=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
14631 echo "$as_me:$LINENO: checking for $ac_func" >&5
14632 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
14633 if eval "test \"\${$as_ac_var+set}\" = set"; then
14634 echo $ECHO_N "(cached) $ECHO_C" >&6
14636 cat >conftest.
$ac_ext <<_ACEOF
14639 cat confdefs.h
>>conftest.
$ac_ext
14640 cat >>conftest.
$ac_ext <<_ACEOF
14641 /* end confdefs.h. */
14642 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
14643 For example, HP-UX 11i <limits.h> declares gettimeofday. */
14644 #define $ac_func innocuous_$ac_func
14646 /* System header to define __stub macros and hopefully few prototypes,
14647 which can conflict with char $ac_func (); below.
14648 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
14649 <limits.h> exists even on freestanding compilers. */
14652 # include <limits.h>
14654 # include <assert.h>
14659 /* Override any gcc2 internal prototype to avoid an error. */
14664 /* We use char because int might match the return type of a gcc2
14665 builtin and then its argument prototype would still apply. */
14667 /* The GNU C library defines this for functions which it implements
14668 to always fail with ENOSYS. Some functions are actually named
14669 something starting with __ and the normal name is an alias. */
14670 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
14673 char (*f) () = $ac_func;
14682 return f != $ac_func;
14687 rm -f conftest.
$ac_objext conftest
$ac_exeext
14688 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
14689 (eval $ac_link) 2>conftest.er1
14691 grep -v '^ *+' conftest.er1
>conftest.err
14693 cat conftest.err
>&5
14694 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14695 (exit $ac_status); } &&
14696 { ac_try
='test -z "$ac_c_werror_flag"
14697 || test ! -s conftest.err'
14698 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14699 (eval $ac_try) 2>&5
14701 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14702 (exit $ac_status); }; } &&
14703 { ac_try
='test -s conftest$ac_exeext'
14704 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14705 (eval $ac_try) 2>&5
14707 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14708 (exit $ac_status); }; }; then
14709 eval "$as_ac_var=yes"
14711 echo "$as_me: failed program was:" >&5
14712 sed 's/^/| /' conftest.
$ac_ext >&5
14714 eval "$as_ac_var=no"
14716 rm -f conftest.err conftest.
$ac_objext \
14717 conftest
$ac_exeext conftest.
$ac_ext
14719 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
14720 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
14721 if test `eval echo '${'$as_ac_var'}'` = yes; then
14723 cat >>confdefs.h
<<_ACEOF
14724 #define CRAY_STACKSEG_END $ac_func
14733 echo "$as_me:$LINENO: checking stack direction for C alloca" >&5
14734 echo $ECHO_N "checking stack direction for C alloca... $ECHO_C" >&6
14735 if test "${ac_cv_c_stack_direction+set}" = set; then
14736 echo $ECHO_N "(cached) $ECHO_C" >&6
14738 if test "$cross_compiling" = yes; then
14739 ac_cv_c_stack_direction
=0
14741 cat >conftest.
$ac_ext <<_ACEOF
14744 cat confdefs.h
>>conftest.
$ac_ext
14745 cat >>conftest.
$ac_ext <<_ACEOF
14746 /* end confdefs.h. */
14748 find_stack_direction ()
14750 static char *addr = 0;
14755 return find_stack_direction ();
14758 return (&dummy > addr) ? 1 : -1;
14764 exit (find_stack_direction () < 0);
14767 rm -f conftest
$ac_exeext
14768 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
14769 (eval $ac_link) 2>&5
14771 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14772 (exit $ac_status); } && { ac_try
='./conftest$ac_exeext'
14773 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14774 (eval $ac_try) 2>&5
14776 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14777 (exit $ac_status); }; }; then
14778 ac_cv_c_stack_direction
=1
14780 echo "$as_me: program exited with status $ac_status" >&5
14781 echo "$as_me: failed program was:" >&5
14782 sed 's/^/| /' conftest.
$ac_ext >&5
14784 ( exit $ac_status )
14785 ac_cv_c_stack_direction
=-1
14787 rm -f core
*.core gmon.out bb.out conftest
$ac_exeext conftest.
$ac_objext conftest.
$ac_ext
14790 echo "$as_me:$LINENO: result: $ac_cv_c_stack_direction" >&5
14791 echo "${ECHO_T}$ac_cv_c_stack_direction" >&6
14793 cat >>confdefs.h
<<_ACEOF
14794 #define STACK_DIRECTION $ac_cv_c_stack_direction
14802 for ac_header
in stdlib.h unistd.h
14804 as_ac_Header
=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
14805 if eval "test \"\${$as_ac_Header+set}\" = set"; then
14806 echo "$as_me:$LINENO: checking for $ac_header" >&5
14807 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
14808 if eval "test \"\${$as_ac_Header+set}\" = set"; then
14809 echo $ECHO_N "(cached) $ECHO_C" >&6
14811 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
14812 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
14814 # Is the header compilable?
14815 echo "$as_me:$LINENO: checking $ac_header usability" >&5
14816 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
14817 cat >conftest.
$ac_ext <<_ACEOF
14820 cat confdefs.h
>>conftest.
$ac_ext
14821 cat >>conftest.
$ac_ext <<_ACEOF
14822 /* end confdefs.h. */
14823 $ac_includes_default
14824 #include <$ac_header>
14826 rm -f conftest.
$ac_objext
14827 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
14828 (eval $ac_compile) 2>conftest.er1
14830 grep -v '^ *+' conftest.er1
>conftest.err
14832 cat conftest.err
>&5
14833 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14834 (exit $ac_status); } &&
14835 { ac_try
='test -z "$ac_c_werror_flag"
14836 || test ! -s conftest.err'
14837 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14838 (eval $ac_try) 2>&5
14840 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14841 (exit $ac_status); }; } &&
14842 { ac_try
='test -s conftest.$ac_objext'
14843 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14844 (eval $ac_try) 2>&5
14846 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14847 (exit $ac_status); }; }; then
14848 ac_header_compiler
=yes
14850 echo "$as_me: failed program was:" >&5
14851 sed 's/^/| /' conftest.
$ac_ext >&5
14853 ac_header_compiler
=no
14855 rm -f conftest.err conftest.
$ac_objext conftest.
$ac_ext
14856 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
14857 echo "${ECHO_T}$ac_header_compiler" >&6
14859 # Is the header present?
14860 echo "$as_me:$LINENO: checking $ac_header presence" >&5
14861 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
14862 cat >conftest.
$ac_ext <<_ACEOF
14865 cat confdefs.h
>>conftest.
$ac_ext
14866 cat >>conftest.
$ac_ext <<_ACEOF
14867 /* end confdefs.h. */
14868 #include <$ac_header>
14870 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
14871 (eval $ac_cpp conftest.
$ac_ext) 2>conftest.er1
14873 grep -v '^ *+' conftest.er1
>conftest.err
14875 cat conftest.err
>&5
14876 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14877 (exit $ac_status); } >/dev
/null
; then
14878 if test -s conftest.err
; then
14879 ac_cpp_err
=$ac_c_preproc_warn_flag
14880 ac_cpp_err
=$ac_cpp_err$ac_c_werror_flag
14887 if test -z "$ac_cpp_err"; then
14888 ac_header_preproc
=yes
14890 echo "$as_me: failed program was:" >&5
14891 sed 's/^/| /' conftest.
$ac_ext >&5
14893 ac_header_preproc
=no
14895 rm -f conftest.err conftest.
$ac_ext
14896 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
14897 echo "${ECHO_T}$ac_header_preproc" >&6
14899 # So? What about this header?
14900 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
14902 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
14903 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
14904 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
14905 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
14906 ac_header_preproc
=yes
14909 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
14910 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
14911 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
14912 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
14913 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
14914 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
14915 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
14916 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
14917 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
14918 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
14919 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
14920 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
14923 ## ------------------------------------------ ##
14924 ## Report this to the AC_PACKAGE_NAME lists. ##
14925 ## ------------------------------------------ ##
14928 sed "s/^/$as_me: WARNING: /" >&2
14931 echo "$as_me:$LINENO: checking for $ac_header" >&5
14932 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
14933 if eval "test \"\${$as_ac_Header+set}\" = set"; then
14934 echo $ECHO_N "(cached) $ECHO_C" >&6
14936 eval "$as_ac_Header=\$ac_header_preproc"
14938 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
14939 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
14942 if test `eval echo '${'$as_ac_Header'}'` = yes; then
14943 cat >>confdefs.h
<<_ACEOF
14944 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
14952 for ac_func
in getpagesize
14954 as_ac_var
=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
14955 echo "$as_me:$LINENO: checking for $ac_func" >&5
14956 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
14957 if eval "test \"\${$as_ac_var+set}\" = set"; then
14958 echo $ECHO_N "(cached) $ECHO_C" >&6
14960 cat >conftest.
$ac_ext <<_ACEOF
14963 cat confdefs.h
>>conftest.
$ac_ext
14964 cat >>conftest.
$ac_ext <<_ACEOF
14965 /* end confdefs.h. */
14966 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
14967 For example, HP-UX 11i <limits.h> declares gettimeofday. */
14968 #define $ac_func innocuous_$ac_func
14970 /* System header to define __stub macros and hopefully few prototypes,
14971 which can conflict with char $ac_func (); below.
14972 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
14973 <limits.h> exists even on freestanding compilers. */
14976 # include <limits.h>
14978 # include <assert.h>
14983 /* Override any gcc2 internal prototype to avoid an error. */
14988 /* We use char because int might match the return type of a gcc2
14989 builtin and then its argument prototype would still apply. */
14991 /* The GNU C library defines this for functions which it implements
14992 to always fail with ENOSYS. Some functions are actually named
14993 something starting with __ and the normal name is an alias. */
14994 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
14997 char (*f) () = $ac_func;
15006 return f != $ac_func;
15011 rm -f conftest.
$ac_objext conftest
$ac_exeext
15012 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
15013 (eval $ac_link) 2>conftest.er1
15015 grep -v '^ *+' conftest.er1
>conftest.err
15017 cat conftest.err
>&5
15018 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15019 (exit $ac_status); } &&
15020 { ac_try
='test -z "$ac_c_werror_flag"
15021 || test ! -s conftest.err'
15022 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15023 (eval $ac_try) 2>&5
15025 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15026 (exit $ac_status); }; } &&
15027 { ac_try
='test -s conftest$ac_exeext'
15028 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15029 (eval $ac_try) 2>&5
15031 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15032 (exit $ac_status); }; }; then
15033 eval "$as_ac_var=yes"
15035 echo "$as_me: failed program was:" >&5
15036 sed 's/^/| /' conftest.
$ac_ext >&5
15038 eval "$as_ac_var=no"
15040 rm -f conftest.err conftest.
$ac_objext \
15041 conftest
$ac_exeext conftest.
$ac_ext
15043 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
15044 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
15045 if test `eval echo '${'$as_ac_var'}'` = yes; then
15046 cat >>confdefs.h
<<_ACEOF
15047 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
15053 echo "$as_me:$LINENO: checking for working mmap" >&5
15054 echo $ECHO_N "checking for working mmap... $ECHO_C" >&6
15055 if test "${ac_cv_func_mmap_fixed_mapped+set}" = set; then
15056 echo $ECHO_N "(cached) $ECHO_C" >&6
15058 if test "$cross_compiling" = yes; then
15059 ac_cv_func_mmap_fixed_mapped
=no
15061 cat >conftest.
$ac_ext <<_ACEOF
15064 cat confdefs.h
>>conftest.
$ac_ext
15065 cat >>conftest.
$ac_ext <<_ACEOF
15066 /* end confdefs.h. */
15067 $ac_includes_default
15068 /* malloc might have been renamed as rpl_malloc. */
15071 /* Thanks to Mike Haertel and Jim Avera for this test.
15072 Here is a matrix of mmap possibilities:
15073 mmap private not fixed
15074 mmap private fixed at somewhere currently unmapped
15075 mmap private fixed at somewhere already mapped
15076 mmap shared not fixed
15077 mmap shared fixed at somewhere currently unmapped
15078 mmap shared fixed at somewhere already mapped
15079 For private mappings, we should verify that changes cannot be read()
15080 back from the file, nor mmap's back from the file at a different
15081 address. (There have been systems where private was not correctly
15082 implemented like the infamous i386 svr4.0, and systems where the
15083 VM page cache was not coherent with the file system buffer cache
15084 like early versions of FreeBSD and possibly contemporary NetBSD.)
15085 For shared mappings, we should conversely verify that changes get
15086 propagated back to all the places they're supposed to be.
15088 Grep wants private fixed already mapped.
15089 The main things grep needs to know about mmap are:
15090 * does it exist and is it safe to write into the mmap'd area
15091 * how to use it (BSD variants) */
15094 #include <sys/mman.h>
15096 #if !STDC_HEADERS && !HAVE_STDLIB_H
15100 /* This mess was copied from the GNU getpagesize.h. */
15101 #if !HAVE_GETPAGESIZE
15102 /* Assume that all systems that can run configure have sys/param.h. */
15103 # if !HAVE_SYS_PARAM_H
15104 # define HAVE_SYS_PARAM_H 1
15107 # ifdef _SC_PAGESIZE
15108 # define getpagesize() sysconf(_SC_PAGESIZE)
15109 # else /* no _SC_PAGESIZE */
15110 # if HAVE_SYS_PARAM_H
15111 # include <sys/param.h>
15112 # ifdef EXEC_PAGESIZE
15113 # define getpagesize() EXEC_PAGESIZE
15114 # else /* no EXEC_PAGESIZE */
15116 # define getpagesize() NBPG * CLSIZE
15119 # endif /* no CLSIZE */
15120 # else /* no NBPG */
15122 # define getpagesize() NBPC
15123 # else /* no NBPC */
15125 # define getpagesize() PAGESIZE
15126 # endif /* PAGESIZE */
15127 # endif /* no NBPC */
15128 # endif /* no NBPG */
15129 # endif /* no EXEC_PAGESIZE */
15130 # else /* no HAVE_SYS_PARAM_H */
15131 # define getpagesize() 8192 /* punt totally */
15132 # endif /* no HAVE_SYS_PARAM_H */
15133 # endif /* no _SC_PAGESIZE */
15135 #endif /* no HAVE_GETPAGESIZE */
15140 char *data, *data2, *data3;
15144 pagesize = getpagesize ();
15146 /* First, make a file with some known garbage in it. */
15147 data = (char *) malloc (pagesize);
15150 for (i = 0; i < pagesize; ++i)
15151 *(data + i) = rand ();
15153 fd = creat ("conftest.mmap", 0600);
15156 if (write (fd, data, pagesize) != pagesize)
15160 /* Next, try to mmap the file at a fixed address which already has
15161 something else allocated at it. If we can, also make sure that
15162 we see the same garbage. */
15163 fd = open ("conftest.mmap", O_RDWR);
15166 data2 = (char *) malloc (2 * pagesize);
15169 data2 += (pagesize - ((long) data2 & (pagesize - 1))) & (pagesize - 1);
15170 if (data2 != mmap (data2, pagesize, PROT_READ | PROT_WRITE,
15171 MAP_PRIVATE | MAP_FIXED, fd, 0L))
15173 for (i = 0; i < pagesize; ++i)
15174 if (*(data + i) != *(data2 + i))
15177 /* Finally, make sure that changes to the mapped area do not
15178 percolate back to the file as seen by read(). (This is a bug on
15179 some variants of i386 svr4.0.) */
15180 for (i = 0; i < pagesize; ++i)
15181 *(data2 + i) = *(data2 + i) + 1;
15182 data3 = (char *) malloc (pagesize);
15185 if (read (fd, data3, pagesize) != pagesize)
15187 for (i = 0; i < pagesize; ++i)
15188 if (*(data + i) != *(data3 + i))
15194 rm -f conftest
$ac_exeext
15195 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
15196 (eval $ac_link) 2>&5
15198 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15199 (exit $ac_status); } && { ac_try
='./conftest$ac_exeext'
15200 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15201 (eval $ac_try) 2>&5
15203 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15204 (exit $ac_status); }; }; then
15205 ac_cv_func_mmap_fixed_mapped
=yes
15207 echo "$as_me: program exited with status $ac_status" >&5
15208 echo "$as_me: failed program was:" >&5
15209 sed 's/^/| /' conftest.
$ac_ext >&5
15211 ( exit $ac_status )
15212 ac_cv_func_mmap_fixed_mapped
=no
15214 rm -f core
*.core gmon.out bb.out conftest
$ac_exeext conftest.
$ac_objext conftest.
$ac_ext
15217 echo "$as_me:$LINENO: result: $ac_cv_func_mmap_fixed_mapped" >&5
15218 echo "${ECHO_T}$ac_cv_func_mmap_fixed_mapped" >&6
15219 if test $ac_cv_func_mmap_fixed_mapped = yes; then
15221 cat >>confdefs.h
<<\_ACEOF
15222 #define HAVE_MMAP 1
15226 rm -f conftest.mmap
15228 echo "$as_me:$LINENO: checking for pid_t" >&5
15229 echo $ECHO_N "checking for pid_t... $ECHO_C" >&6
15230 if test "${ac_cv_type_pid_t+set}" = set; then
15231 echo $ECHO_N "(cached) $ECHO_C" >&6
15233 cat >conftest.
$ac_ext <<_ACEOF
15236 cat confdefs.h
>>conftest.
$ac_ext
15237 cat >>conftest.
$ac_ext <<_ACEOF
15238 /* end confdefs.h. */
15239 $ac_includes_default
15245 if (sizeof (pid_t))
15251 rm -f conftest.
$ac_objext
15252 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
15253 (eval $ac_compile) 2>conftest.er1
15255 grep -v '^ *+' conftest.er1
>conftest.err
15257 cat conftest.err
>&5
15258 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15259 (exit $ac_status); } &&
15260 { ac_try
='test -z "$ac_c_werror_flag"
15261 || test ! -s conftest.err'
15262 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15263 (eval $ac_try) 2>&5
15265 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15266 (exit $ac_status); }; } &&
15267 { ac_try
='test -s conftest.$ac_objext'
15268 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15269 (eval $ac_try) 2>&5
15271 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15272 (exit $ac_status); }; }; then
15273 ac_cv_type_pid_t
=yes
15275 echo "$as_me: failed program was:" >&5
15276 sed 's/^/| /' conftest.
$ac_ext >&5
15278 ac_cv_type_pid_t
=no
15280 rm -f conftest.err conftest.
$ac_objext conftest.
$ac_ext
15282 echo "$as_me:$LINENO: result: $ac_cv_type_pid_t" >&5
15283 echo "${ECHO_T}$ac_cv_type_pid_t" >&6
15284 if test $ac_cv_type_pid_t = yes; then
15288 cat >>confdefs.h
<<_ACEOF
15296 for ac_header
in unistd.h vfork.h
15298 as_ac_Header
=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
15299 if eval "test \"\${$as_ac_Header+set}\" = set"; then
15300 echo "$as_me:$LINENO: checking for $ac_header" >&5
15301 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
15302 if eval "test \"\${$as_ac_Header+set}\" = set"; then
15303 echo $ECHO_N "(cached) $ECHO_C" >&6
15305 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
15306 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
15308 # Is the header compilable?
15309 echo "$as_me:$LINENO: checking $ac_header usability" >&5
15310 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
15311 cat >conftest.
$ac_ext <<_ACEOF
15314 cat confdefs.h
>>conftest.
$ac_ext
15315 cat >>conftest.
$ac_ext <<_ACEOF
15316 /* end confdefs.h. */
15317 $ac_includes_default
15318 #include <$ac_header>
15320 rm -f conftest.
$ac_objext
15321 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
15322 (eval $ac_compile) 2>conftest.er1
15324 grep -v '^ *+' conftest.er1
>conftest.err
15326 cat conftest.err
>&5
15327 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15328 (exit $ac_status); } &&
15329 { ac_try
='test -z "$ac_c_werror_flag"
15330 || test ! -s conftest.err'
15331 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15332 (eval $ac_try) 2>&5
15334 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15335 (exit $ac_status); }; } &&
15336 { ac_try
='test -s conftest.$ac_objext'
15337 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15338 (eval $ac_try) 2>&5
15340 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15341 (exit $ac_status); }; }; then
15342 ac_header_compiler
=yes
15344 echo "$as_me: failed program was:" >&5
15345 sed 's/^/| /' conftest.
$ac_ext >&5
15347 ac_header_compiler
=no
15349 rm -f conftest.err conftest.
$ac_objext conftest.
$ac_ext
15350 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
15351 echo "${ECHO_T}$ac_header_compiler" >&6
15353 # Is the header present?
15354 echo "$as_me:$LINENO: checking $ac_header presence" >&5
15355 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
15356 cat >conftest.
$ac_ext <<_ACEOF
15359 cat confdefs.h
>>conftest.
$ac_ext
15360 cat >>conftest.
$ac_ext <<_ACEOF
15361 /* end confdefs.h. */
15362 #include <$ac_header>
15364 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
15365 (eval $ac_cpp conftest.
$ac_ext) 2>conftest.er1
15367 grep -v '^ *+' conftest.er1
>conftest.err
15369 cat conftest.err
>&5
15370 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15371 (exit $ac_status); } >/dev
/null
; then
15372 if test -s conftest.err
; then
15373 ac_cpp_err
=$ac_c_preproc_warn_flag
15374 ac_cpp_err
=$ac_cpp_err$ac_c_werror_flag
15381 if test -z "$ac_cpp_err"; then
15382 ac_header_preproc
=yes
15384 echo "$as_me: failed program was:" >&5
15385 sed 's/^/| /' conftest.
$ac_ext >&5
15387 ac_header_preproc
=no
15389 rm -f conftest.err conftest.
$ac_ext
15390 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
15391 echo "${ECHO_T}$ac_header_preproc" >&6
15393 # So? What about this header?
15394 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
15396 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
15397 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
15398 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
15399 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
15400 ac_header_preproc
=yes
15403 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
15404 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
15405 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
15406 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
15407 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
15408 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
15409 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
15410 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
15411 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
15412 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
15413 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
15414 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
15417 ## ------------------------------------------ ##
15418 ## Report this to the AC_PACKAGE_NAME lists. ##
15419 ## ------------------------------------------ ##
15422 sed "s/^/$as_me: WARNING: /" >&2
15425 echo "$as_me:$LINENO: checking for $ac_header" >&5
15426 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
15427 if eval "test \"\${$as_ac_Header+set}\" = set"; then
15428 echo $ECHO_N "(cached) $ECHO_C" >&6
15430 eval "$as_ac_Header=\$ac_header_preproc"
15432 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
15433 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
15436 if test `eval echo '${'$as_ac_Header'}'` = yes; then
15437 cat >>confdefs.h
<<_ACEOF
15438 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
15447 for ac_func
in fork vfork
15449 as_ac_var
=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
15450 echo "$as_me:$LINENO: checking for $ac_func" >&5
15451 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
15452 if eval "test \"\${$as_ac_var+set}\" = set"; then
15453 echo $ECHO_N "(cached) $ECHO_C" >&6
15455 cat >conftest.
$ac_ext <<_ACEOF
15458 cat confdefs.h
>>conftest.
$ac_ext
15459 cat >>conftest.
$ac_ext <<_ACEOF
15460 /* end confdefs.h. */
15461 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
15462 For example, HP-UX 11i <limits.h> declares gettimeofday. */
15463 #define $ac_func innocuous_$ac_func
15465 /* System header to define __stub macros and hopefully few prototypes,
15466 which can conflict with char $ac_func (); below.
15467 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
15468 <limits.h> exists even on freestanding compilers. */
15471 # include <limits.h>
15473 # include <assert.h>
15478 /* Override any gcc2 internal prototype to avoid an error. */
15483 /* We use char because int might match the return type of a gcc2
15484 builtin and then its argument prototype would still apply. */
15486 /* The GNU C library defines this for functions which it implements
15487 to always fail with ENOSYS. Some functions are actually named
15488 something starting with __ and the normal name is an alias. */
15489 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
15492 char (*f) () = $ac_func;
15501 return f != $ac_func;
15506 rm -f conftest.
$ac_objext conftest
$ac_exeext
15507 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
15508 (eval $ac_link) 2>conftest.er1
15510 grep -v '^ *+' conftest.er1
>conftest.err
15512 cat conftest.err
>&5
15513 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15514 (exit $ac_status); } &&
15515 { ac_try
='test -z "$ac_c_werror_flag"
15516 || test ! -s conftest.err'
15517 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15518 (eval $ac_try) 2>&5
15520 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15521 (exit $ac_status); }; } &&
15522 { ac_try
='test -s conftest$ac_exeext'
15523 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15524 (eval $ac_try) 2>&5
15526 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15527 (exit $ac_status); }; }; then
15528 eval "$as_ac_var=yes"
15530 echo "$as_me: failed program was:" >&5
15531 sed 's/^/| /' conftest.
$ac_ext >&5
15533 eval "$as_ac_var=no"
15535 rm -f conftest.err conftest.
$ac_objext \
15536 conftest
$ac_exeext conftest.
$ac_ext
15538 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
15539 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
15540 if test `eval echo '${'$as_ac_var'}'` = yes; then
15541 cat >>confdefs.h
<<_ACEOF
15542 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
15548 if test "x$ac_cv_func_fork" = xyes
; then
15549 echo "$as_me:$LINENO: checking for working fork" >&5
15550 echo $ECHO_N "checking for working fork... $ECHO_C" >&6
15551 if test "${ac_cv_func_fork_works+set}" = set; then
15552 echo $ECHO_N "(cached) $ECHO_C" >&6
15554 if test "$cross_compiling" = yes; then
15555 ac_cv_func_fork_works
=cross
15557 cat >conftest.
$ac_ext <<_ACEOF
15558 /* By Ruediger Kuhlmann. */
15559 #include <sys/types.h>
15561 # include <unistd.h>
15563 /* Some systems only have a dummy stub for fork() */
15571 rm -f conftest
$ac_exeext
15572 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
15573 (eval $ac_link) 2>&5
15575 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15576 (exit $ac_status); } && { ac_try
='./conftest$ac_exeext'
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); }; }; then
15582 ac_cv_func_fork_works
=yes
15584 echo "$as_me: program exited with status $ac_status" >&5
15585 echo "$as_me: failed program was:" >&5
15586 sed 's/^/| /' conftest.
$ac_ext >&5
15588 ( exit $ac_status )
15589 ac_cv_func_fork_works
=no
15591 rm -f core
*.core gmon.out bb.out conftest
$ac_exeext conftest.
$ac_objext conftest.
$ac_ext
15594 echo "$as_me:$LINENO: result: $ac_cv_func_fork_works" >&5
15595 echo "${ECHO_T}$ac_cv_func_fork_works" >&6
15598 ac_cv_func_fork_works
=$ac_cv_func_fork
15600 if test "x$ac_cv_func_fork_works" = xcross
; then
15602 *-*-amigaos* |
*-*-msdosdjgpp*)
15603 # Override, as these systems have only a dummy fork() stub
15604 ac_cv_func_fork_works
=no
15607 ac_cv_func_fork_works
=yes
15610 { echo "$as_me:$LINENO: WARNING: result $ac_cv_func_fork_works guessed because of cross compilation" >&5
15611 echo "$as_me: WARNING: result $ac_cv_func_fork_works guessed because of cross compilation" >&2;}
15613 ac_cv_func_vfork_works
=$ac_cv_func_vfork
15614 if test "x$ac_cv_func_vfork" = xyes
; then
15615 echo "$as_me:$LINENO: checking for working vfork" >&5
15616 echo $ECHO_N "checking for working vfork... $ECHO_C" >&6
15617 if test "${ac_cv_func_vfork_works+set}" = set; then
15618 echo $ECHO_N "(cached) $ECHO_C" >&6
15620 if test "$cross_compiling" = yes; then
15621 ac_cv_func_vfork_works
=cross
15623 cat >conftest.
$ac_ext <<_ACEOF
15626 cat confdefs.h
>>conftest.
$ac_ext
15627 cat >>conftest.
$ac_ext <<_ACEOF
15628 /* end confdefs.h. */
15629 /* Thanks to Paul Eggert for this test. */
15631 #include <stdlib.h>
15632 #include <sys/types.h>
15633 #include <sys/stat.h>
15634 #include <sys/wait.h>
15636 # include <unistd.h>
15639 # include <vfork.h>
15641 /* On some sparc systems, changes by the child to local and incoming
15642 argument registers are propagated back to the parent. The compiler
15643 is told about this with #include <vfork.h>, but some compilers
15644 (e.g. gcc -O) don't grok <vfork.h>. Test for this by using a
15645 static variable whose address is put into a register that is
15646 clobbered by the vfork. */
15649 sparc_address_test (int arg)
15651 sparc_address_test (arg) int arg;
15654 static pid_t child;
15672 pid_t parent = getpid ();
15675 sparc_address_test (0);
15680 /* Here is another test for sparc vfork register problems. This
15681 test uses lots of local variables, at least as many local
15682 variables as main has allocated so far including compiler
15683 temporaries. 4 locals are enough for gcc 1.40.3 on a Solaris
15684 4.1.3 sparc, but we use 8 to be safe. A buggy compiler should
15685 reuse the register of parent for one of the local variables,
15686 since it will think that parent can't possibly be used any more
15687 in this routine. Assigning to the local variable will thus
15688 munge parent in the parent process. */
15690 p = getpid(), p1 = getpid(), p2 = getpid(), p3 = getpid(),
15691 p4 = getpid(), p5 = getpid(), p6 = getpid(), p7 = getpid();
15692 /* Convince the compiler that p..p7 are live; otherwise, it might
15693 use the same hardware register for all 8 local variables. */
15694 if (p != p1 || p != p2 || p != p3 || p != p4
15695 || p != p5 || p != p6 || p != p7)
15698 /* On some systems (e.g. IRIX 3.3), vfork doesn't separate parent
15699 from child file descriptors. If the child closes a descriptor
15700 before it execs or exits, this munges the parent's descriptor
15701 as well. Test for this by closing stdout in the child. */
15702 _exit(close(fileno(stdout)) != 0);
15707 while (wait(&status) != child)
15710 /* Was there some problem with vforking? */
15713 /* Did the child fail? (This shouldn't happen.) */
15716 /* Did the vfork/compiler bug occur? */
15717 || parent != getpid()
15719 /* Did the file descriptor bug occur? */
15720 || fstat(fileno(stdout), &st) != 0
15725 rm -f conftest
$ac_exeext
15726 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
15727 (eval $ac_link) 2>&5
15729 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15730 (exit $ac_status); } && { ac_try
='./conftest$ac_exeext'
15731 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15732 (eval $ac_try) 2>&5
15734 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15735 (exit $ac_status); }; }; then
15736 ac_cv_func_vfork_works
=yes
15738 echo "$as_me: program exited with status $ac_status" >&5
15739 echo "$as_me: failed program was:" >&5
15740 sed 's/^/| /' conftest.
$ac_ext >&5
15742 ( exit $ac_status )
15743 ac_cv_func_vfork_works
=no
15745 rm -f core
*.core gmon.out bb.out conftest
$ac_exeext conftest.
$ac_objext conftest.
$ac_ext
15748 echo "$as_me:$LINENO: result: $ac_cv_func_vfork_works" >&5
15749 echo "${ECHO_T}$ac_cv_func_vfork_works" >&6
15752 if test "x$ac_cv_func_fork_works" = xcross
; then
15753 ac_cv_func_vfork_works
=$ac_cv_func_vfork
15754 { echo "$as_me:$LINENO: WARNING: result $ac_cv_func_vfork_works guessed because of cross compilation" >&5
15755 echo "$as_me: WARNING: result $ac_cv_func_vfork_works guessed because of cross compilation" >&2;}
15758 if test "x$ac_cv_func_vfork_works" = xyes
; then
15760 cat >>confdefs.h
<<\_ACEOF
15761 #define HAVE_WORKING_VFORK 1
15766 cat >>confdefs.h
<<\_ACEOF
15771 if test "x$ac_cv_func_fork_works" = xyes
; then
15773 cat >>confdefs.h
<<\_ACEOF
15774 #define HAVE_WORKING_FORK 1
15801 for ac_func
in canonicalize_file_name realpath getrusage getuid \
15802 getgid poll pread64 sbrk setpgid setpgrp setsid \
15803 sigaction sigprocmask sigsetmask socketpair syscall \
15804 ttrace wborder setlocale iconvlist libiconvlist btowc
15806 as_ac_var
=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
15807 echo "$as_me:$LINENO: checking for $ac_func" >&5
15808 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
15809 if eval "test \"\${$as_ac_var+set}\" = set"; then
15810 echo $ECHO_N "(cached) $ECHO_C" >&6
15812 cat >conftest.
$ac_ext <<_ACEOF
15815 cat confdefs.h
>>conftest.
$ac_ext
15816 cat >>conftest.
$ac_ext <<_ACEOF
15817 /* end confdefs.h. */
15818 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
15819 For example, HP-UX 11i <limits.h> declares gettimeofday. */
15820 #define $ac_func innocuous_$ac_func
15822 /* System header to define __stub macros and hopefully few prototypes,
15823 which can conflict with char $ac_func (); below.
15824 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
15825 <limits.h> exists even on freestanding compilers. */
15828 # include <limits.h>
15830 # include <assert.h>
15835 /* Override any gcc2 internal prototype to avoid an error. */
15840 /* We use char because int might match the return type of a gcc2
15841 builtin and then its argument prototype would still apply. */
15843 /* The GNU C library defines this for functions which it implements
15844 to always fail with ENOSYS. Some functions are actually named
15845 something starting with __ and the normal name is an alias. */
15846 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
15849 char (*f) () = $ac_func;
15858 return f != $ac_func;
15863 rm -f conftest.
$ac_objext conftest
$ac_exeext
15864 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
15865 (eval $ac_link) 2>conftest.er1
15867 grep -v '^ *+' conftest.er1
>conftest.err
15869 cat conftest.err
>&5
15870 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15871 (exit $ac_status); } &&
15872 { ac_try
='test -z "$ac_c_werror_flag"
15873 || test ! -s conftest.err'
15874 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15875 (eval $ac_try) 2>&5
15877 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15878 (exit $ac_status); }; } &&
15879 { ac_try
='test -s conftest$ac_exeext'
15880 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15881 (eval $ac_try) 2>&5
15883 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15884 (exit $ac_status); }; }; then
15885 eval "$as_ac_var=yes"
15887 echo "$as_me: failed program was:" >&5
15888 sed 's/^/| /' conftest.
$ac_ext >&5
15890 eval "$as_ac_var=no"
15892 rm -f conftest.err conftest.
$ac_objext \
15893 conftest
$ac_exeext conftest.
$ac_ext
15895 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
15896 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
15897 if test `eval echo '${'$as_ac_var'}'` = yes; then
15898 cat >>confdefs.h
<<_ACEOF
15899 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
15906 echo "$as_me:$LINENO: checking for nl_langinfo and CODESET" >&5
15907 echo $ECHO_N "checking for nl_langinfo and CODESET... $ECHO_C" >&6
15908 if test "${am_cv_langinfo_codeset+set}" = set; then
15909 echo $ECHO_N "(cached) $ECHO_C" >&6
15911 cat >conftest.
$ac_ext <<_ACEOF
15914 cat confdefs.h
>>conftest.
$ac_ext
15915 cat >>conftest.
$ac_ext <<_ACEOF
15916 /* end confdefs.h. */
15917 #include <langinfo.h>
15921 char* cs = nl_langinfo(CODESET);
15926 rm -f conftest.
$ac_objext conftest
$ac_exeext
15927 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
15928 (eval $ac_link) 2>conftest.er1
15930 grep -v '^ *+' conftest.er1
>conftest.err
15932 cat conftest.err
>&5
15933 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15934 (exit $ac_status); } &&
15935 { ac_try
='test -z "$ac_c_werror_flag"
15936 || test ! -s conftest.err'
15937 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15938 (eval $ac_try) 2>&5
15940 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15941 (exit $ac_status); }; } &&
15942 { ac_try
='test -s conftest$ac_exeext'
15943 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15944 (eval $ac_try) 2>&5
15946 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15947 (exit $ac_status); }; }; then
15948 am_cv_langinfo_codeset
=yes
15950 echo "$as_me: failed program was:" >&5
15951 sed 's/^/| /' conftest.
$ac_ext >&5
15953 am_cv_langinfo_codeset
=no
15955 rm -f conftest.err conftest.
$ac_objext \
15956 conftest
$ac_exeext conftest.
$ac_ext
15959 echo "$as_me:$LINENO: result: $am_cv_langinfo_codeset" >&5
15960 echo "${ECHO_T}$am_cv_langinfo_codeset" >&6
15961 if test $am_cv_langinfo_codeset = yes; then
15963 cat >>confdefs.h
<<\_ACEOF
15964 #define HAVE_LANGINFO_CODESET 1
15970 # Check the return and argument types of ptrace. No canned test for
15971 # this, so roll our own.
15972 gdb_ptrace_headers
='
15973 #if HAVE_SYS_TYPES_H
15974 # include <sys/types.h>
15976 #if HAVE_SYS_PTRACE_H
15977 # include <sys/ptrace.h>
15980 # include <unistd.h>
15983 # There is no point in checking if we don't have a prototype.
15984 echo "$as_me:$LINENO: checking whether ptrace is declared" >&5
15985 echo $ECHO_N "checking whether ptrace is declared... $ECHO_C" >&6
15986 if test "${ac_cv_have_decl_ptrace+set}" = set; then
15987 echo $ECHO_N "(cached) $ECHO_C" >&6
15989 cat >conftest.
$ac_ext <<_ACEOF
15992 cat confdefs.h
>>conftest.
$ac_ext
15993 cat >>conftest.
$ac_ext <<_ACEOF
15994 /* end confdefs.h. */
15995 $gdb_ptrace_headers
16001 char *p = (char *) ptrace;
16008 rm -f conftest.
$ac_objext
16009 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
16010 (eval $ac_compile) 2>conftest.er1
16012 grep -v '^ *+' conftest.er1
>conftest.err
16014 cat conftest.err
>&5
16015 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16016 (exit $ac_status); } &&
16017 { ac_try
='test -z "$ac_c_werror_flag"
16018 || test ! -s conftest.err'
16019 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16020 (eval $ac_try) 2>&5
16022 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16023 (exit $ac_status); }; } &&
16024 { ac_try
='test -s conftest.$ac_objext'
16025 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16026 (eval $ac_try) 2>&5
16028 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16029 (exit $ac_status); }; }; then
16030 ac_cv_have_decl_ptrace
=yes
16032 echo "$as_me: failed program was:" >&5
16033 sed 's/^/| /' conftest.
$ac_ext >&5
16035 ac_cv_have_decl_ptrace
=no
16037 rm -f conftest.err conftest.
$ac_objext conftest.
$ac_ext
16039 echo "$as_me:$LINENO: result: $ac_cv_have_decl_ptrace" >&5
16040 echo "${ECHO_T}$ac_cv_have_decl_ptrace" >&6
16041 if test $ac_cv_have_decl_ptrace = yes; then
16043 cat >>confdefs.h
<<_ACEOF
16044 #define HAVE_DECL_PTRACE 1
16049 cat >>confdefs.h
<<_ACEOF
16050 #define HAVE_DECL_PTRACE 0
16054 : ${gdb_cv_func_ptrace_ret='int'}
16055 : ${gdb_cv_func_ptrace_args='int,int,long,long'}
16060 # Check return type. Varargs (used on GNU/Linux) conflict with the
16061 # empty argument list, so check for that explicitly.
16062 echo "$as_me:$LINENO: checking return type of ptrace" >&5
16063 echo $ECHO_N "checking return type of ptrace... $ECHO_C" >&6
16064 if test "${gdb_cv_func_ptrace_ret+set}" = set; then
16065 echo $ECHO_N "(cached) $ECHO_C" >&6
16067 cat >conftest.
$ac_ext <<_ACEOF
16070 cat confdefs.h
>>conftest.
$ac_ext
16071 cat >>conftest.
$ac_ext <<_ACEOF
16072 /* end confdefs.h. */
16073 $gdb_ptrace_headers
16077 extern long ptrace (enum __ptrace_request, ...);
16082 rm -f conftest.
$ac_objext
16083 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
16084 (eval $ac_compile) 2>conftest.er1
16086 grep -v '^ *+' conftest.er1
>conftest.err
16088 cat conftest.err
>&5
16089 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16090 (exit $ac_status); } &&
16091 { ac_try
='test -z "$ac_c_werror_flag"
16092 || test ! -s conftest.err'
16093 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16094 (eval $ac_try) 2>&5
16096 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16097 (exit $ac_status); }; } &&
16098 { ac_try
='test -s conftest.$ac_objext'
16099 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16100 (eval $ac_try) 2>&5
16102 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16103 (exit $ac_status); }; }; then
16104 gdb_cv_func_ptrace_ret
='long'
16106 echo "$as_me: failed program was:" >&5
16107 sed 's/^/| /' conftest.
$ac_ext >&5
16109 cat >conftest.
$ac_ext <<_ACEOF
16112 cat confdefs.h
>>conftest.
$ac_ext
16113 cat >>conftest.
$ac_ext <<_ACEOF
16114 /* end confdefs.h. */
16115 $gdb_ptrace_headers
16119 extern int ptrace ();
16124 rm -f conftest.
$ac_objext
16125 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
16126 (eval $ac_compile) 2>conftest.er1
16128 grep -v '^ *+' conftest.er1
>conftest.err
16130 cat conftest.err
>&5
16131 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16132 (exit $ac_status); } &&
16133 { ac_try
='test -z "$ac_c_werror_flag"
16134 || test ! -s conftest.err'
16135 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16136 (eval $ac_try) 2>&5
16138 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16139 (exit $ac_status); }; } &&
16140 { ac_try
='test -s conftest.$ac_objext'
16141 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16142 (eval $ac_try) 2>&5
16144 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16145 (exit $ac_status); }; }; then
16146 gdb_cv_func_ptrace_ret
='int'
16148 echo "$as_me: failed program was:" >&5
16149 sed 's/^/| /' conftest.
$ac_ext >&5
16151 gdb_cv_func_ptrace_ret
='long'
16153 rm -f conftest.err conftest.
$ac_objext conftest.
$ac_ext
16155 rm -f conftest.err conftest.
$ac_objext conftest.
$ac_ext
16157 echo "$as_me:$LINENO: result: $gdb_cv_func_ptrace_ret" >&5
16158 echo "${ECHO_T}$gdb_cv_func_ptrace_ret" >&6
16160 cat >>confdefs.h
<<_ACEOF
16161 #define PTRACE_TYPE_RET $gdb_cv_func_ptrace_ret
16164 # Check argument types.
16165 echo "$as_me:$LINENO: checking types of arguments for ptrace" >&5
16166 echo $ECHO_N "checking types of arguments for ptrace... $ECHO_C" >&6
16167 if test "${gdb_cv_func_ptrace_args+set}" = set; then
16168 echo $ECHO_N "(cached) $ECHO_C" >&6
16171 cat >conftest.
$ac_ext <<_ACEOF
16174 cat confdefs.h
>>conftest.
$ac_ext
16175 cat >>conftest.
$ac_ext <<_ACEOF
16176 /* end confdefs.h. */
16177 $gdb_ptrace_headers
16181 extern long ptrace (enum __ptrace_request, ...);
16186 rm -f conftest.
$ac_objext
16187 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
16188 (eval $ac_compile) 2>conftest.er1
16190 grep -v '^ *+' conftest.er1
>conftest.err
16192 cat conftest.err
>&5
16193 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16194 (exit $ac_status); } &&
16195 { ac_try
='test -z "$ac_c_werror_flag"
16196 || test ! -s conftest.err'
16197 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16198 (eval $ac_try) 2>&5
16200 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16201 (exit $ac_status); }; } &&
16202 { ac_try
='test -s conftest.$ac_objext'
16203 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16204 (eval $ac_try) 2>&5
16206 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16207 (exit $ac_status); }; }; then
16208 gdb_cv_func_ptrace_args
='int,int,long,long'
16210 echo "$as_me: failed program was:" >&5
16211 sed 's/^/| /' conftest.
$ac_ext >&5
16214 for gdb_arg1
in 'int' 'long'; do
16215 for gdb_arg2
in 'pid_t' 'int' 'long'; do
16216 for gdb_arg3
in 'int *' 'caddr_t' 'int' 'long' 'void *'; do
16217 for gdb_arg4
in 'int' 'long'; do
16218 cat >conftest.
$ac_ext <<_ACEOF
16221 cat confdefs.h
>>conftest.
$ac_ext
16222 cat >>conftest.
$ac_ext <<_ACEOF
16223 /* end confdefs.h. */
16224 $gdb_ptrace_headers
16229 extern $gdb_cv_func_ptrace_ret
16230 ptrace ($gdb_arg1, $gdb_arg2, $gdb_arg3, $gdb_arg4);
16236 rm -f conftest.
$ac_objext
16237 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
16238 (eval $ac_compile) 2>conftest.er1
16240 grep -v '^ *+' conftest.er1
>conftest.err
16242 cat conftest.err
>&5
16243 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16244 (exit $ac_status); } &&
16245 { ac_try
='test -z "$ac_c_werror_flag"
16246 || test ! -s conftest.err'
16247 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16248 (eval $ac_try) 2>&5
16250 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16251 (exit $ac_status); }; } &&
16252 { ac_try
='test -s conftest.$ac_objext'
16253 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16254 (eval $ac_try) 2>&5
16256 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16257 (exit $ac_status); }; }; then
16258 gdb_cv_func_ptrace_args
="$gdb_arg1,$gdb_arg2,$gdb_arg3,$gdb_arg4";
16261 echo "$as_me: failed program was:" >&5
16262 sed 's/^/| /' conftest.
$ac_ext >&5
16265 rm -f conftest.err conftest.
$ac_objext conftest.
$ac_ext
16266 for gdb_arg5
in 'int *' 'int' 'long'; do
16267 cat >conftest.
$ac_ext <<_ACEOF
16270 cat confdefs.h
>>conftest.
$ac_ext
16271 cat >>conftest.
$ac_ext <<_ACEOF
16272 /* end confdefs.h. */
16273 $gdb_ptrace_headers
16278 extern $gdb_cv_func_ptrace_ret
16279 ptrace ($gdb_arg1, $gdb_arg2, $gdb_arg3, $gdb_arg4, $gdb_arg5);
16285 rm -f conftest.
$ac_objext
16286 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
16287 (eval $ac_compile) 2>conftest.er1
16289 grep -v '^ *+' conftest.er1
>conftest.err
16291 cat conftest.err
>&5
16292 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16293 (exit $ac_status); } &&
16294 { ac_try
='test -z "$ac_c_werror_flag"
16295 || test ! -s conftest.err'
16296 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16297 (eval $ac_try) 2>&5
16299 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16300 (exit $ac_status); }; } &&
16301 { ac_try
='test -s conftest.$ac_objext'
16302 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16303 (eval $ac_try) 2>&5
16305 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16306 (exit $ac_status); }; }; then
16308 gdb_cv_func_ptrace_args
="$gdb_arg1,$gdb_arg2,$gdb_arg3,$gdb_arg4,$gdb_arg5";
16311 echo "$as_me: failed program was:" >&5
16312 sed 's/^/| /' conftest.
$ac_ext >&5
16315 rm -f conftest.err conftest.
$ac_objext conftest.
$ac_ext
16321 # Provide a safe default value.
16322 : ${gdb_cv_func_ptrace_args='int,int,long,long'}
16325 rm -f conftest.err conftest.
$ac_objext conftest.
$ac_ext
16327 echo "$as_me:$LINENO: result: $gdb_cv_func_ptrace_args" >&5
16328 echo "${ECHO_T}$gdb_cv_func_ptrace_args" >&6
16329 ac_save_IFS
=$IFS; IFS
=','
16330 set dummy
`echo "$gdb_cv_func_ptrace_args" | sed 's/\*/\*/g'`
16334 cat >>confdefs.h
<<_ACEOF
16335 #define PTRACE_TYPE_ARG3 $3
16338 if test -n "$5"; then
16340 cat >>confdefs.h
<<_ACEOF
16341 #define PTRACE_TYPE_ARG5 $5
16346 if test "$cross_compiling" = no
; then
16347 echo "$as_me:$LINENO: checking whether setpgrp takes no argument" >&5
16348 echo $ECHO_N "checking whether setpgrp takes no argument... $ECHO_C" >&6
16349 if test "${ac_cv_func_setpgrp_void+set}" = set; then
16350 echo $ECHO_N "(cached) $ECHO_C" >&6
16352 if test "$cross_compiling" = yes; then
16353 { { echo "$as_me:$LINENO: error: cannot check setpgrp when cross compiling" >&5
16354 echo "$as_me: error: cannot check setpgrp when cross compiling" >&2;}
16355 { (exit 1); exit 1; }; }
16357 cat >conftest.
$ac_ext <<_ACEOF
16360 cat confdefs.h
>>conftest.
$ac_ext
16361 cat >>conftest.
$ac_ext <<_ACEOF
16362 /* end confdefs.h. */
16364 # include <unistd.h>
16370 /* If this system has a BSD-style setpgrp which takes arguments,
16371 setpgrp(1, 1) will fail with ESRCH and return -1, in that case
16372 exit successfully. */
16373 exit (setpgrp (1,1) == -1 ? 0 : 1);
16378 rm -f conftest
$ac_exeext
16379 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
16380 (eval $ac_link) 2>&5
16382 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16383 (exit $ac_status); } && { ac_try
='./conftest$ac_exeext'
16384 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16385 (eval $ac_try) 2>&5
16387 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16388 (exit $ac_status); }; }; then
16389 ac_cv_func_setpgrp_void
=no
16391 echo "$as_me: program exited with status $ac_status" >&5
16392 echo "$as_me: failed program was:" >&5
16393 sed 's/^/| /' conftest.
$ac_ext >&5
16395 ( exit $ac_status )
16396 ac_cv_func_setpgrp_void
=yes
16398 rm -f core
*.core gmon.out bb.out conftest
$ac_exeext conftest.
$ac_objext conftest.
$ac_ext
16401 echo "$as_me:$LINENO: result: $ac_cv_func_setpgrp_void" >&5
16402 echo "${ECHO_T}$ac_cv_func_setpgrp_void" >&6
16403 if test $ac_cv_func_setpgrp_void = yes; then
16405 cat >>confdefs.h
<<\_ACEOF
16406 #define SETPGRP_VOID 1
16412 echo "$as_me:$LINENO: checking whether setpgrp takes no argument" >&5
16413 echo $ECHO_N "checking whether setpgrp takes no argument... $ECHO_C" >&6
16414 if test "${ac_cv_func_setpgrp_void+set}" = set; then
16415 echo $ECHO_N "(cached) $ECHO_C" >&6
16417 cat >conftest.
$ac_ext <<_ACEOF
16420 cat confdefs.h
>>conftest.
$ac_ext
16421 cat >>conftest.
$ac_ext <<_ACEOF
16422 /* end confdefs.h. */
16424 #include <unistd.h>
16430 if (setpgrp(1,1) == -1)
16439 rm -f conftest.
$ac_objext
16440 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
16441 (eval $ac_compile) 2>conftest.er1
16443 grep -v '^ *+' conftest.er1
>conftest.err
16445 cat conftest.err
>&5
16446 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16447 (exit $ac_status); } &&
16448 { ac_try
='test -z "$ac_c_werror_flag"
16449 || test ! -s conftest.err'
16450 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16451 (eval $ac_try) 2>&5
16453 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16454 (exit $ac_status); }; } &&
16455 { ac_try
='test -s conftest.$ac_objext'
16456 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16457 (eval $ac_try) 2>&5
16459 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16460 (exit $ac_status); }; }; then
16461 ac_cv_func_setpgrp_void
=no
16463 echo "$as_me: failed program was:" >&5
16464 sed 's/^/| /' conftest.
$ac_ext >&5
16466 ac_cv_func_setpgrp_void
=yes
16468 rm -f conftest.err conftest.
$ac_objext conftest.
$ac_ext
16470 echo "$as_me:$LINENO: result: $ac_cv_func_setpgrp_void" >&5
16471 echo "${ECHO_T}$ac_cv_func_setpgrp_void" >&6
16472 if test $ac_cv_func_setpgrp_void = yes; then
16473 cat >>confdefs.h
<<\_ACEOF
16474 #define SETPGRP_VOID 1
16480 # Check if sigsetjmp is available. Using AC_CHECK_FUNCS won't do
16481 # since sigsetjmp might only be defined as a macro.
16482 echo "$as_me:$LINENO: checking for sigsetjmp" >&5
16483 echo $ECHO_N "checking for sigsetjmp... $ECHO_C" >&6
16484 if test "${gdb_cv_func_sigsetjmp+set}" = set; then
16485 echo $ECHO_N "(cached) $ECHO_C" >&6
16487 cat >conftest.
$ac_ext <<_ACEOF
16490 cat confdefs.h
>>conftest.
$ac_ext
16491 cat >>conftest.
$ac_ext <<_ACEOF
16492 /* end confdefs.h. */
16494 #include <setjmp.h>
16499 sigjmp_buf env; while (! sigsetjmp (env, 1)) siglongjmp (env, 1);
16504 rm -f conftest.
$ac_objext
16505 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
16506 (eval $ac_compile) 2>conftest.er1
16508 grep -v '^ *+' conftest.er1
>conftest.err
16510 cat conftest.err
>&5
16511 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16512 (exit $ac_status); } &&
16513 { ac_try
='test -z "$ac_c_werror_flag"
16514 || test ! -s conftest.err'
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); }; } &&
16520 { ac_try
='test -s conftest.$ac_objext'
16521 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16522 (eval $ac_try) 2>&5
16524 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16525 (exit $ac_status); }; }; then
16526 gdb_cv_func_sigsetjmp
=yes
16528 echo "$as_me: failed program was:" >&5
16529 sed 's/^/| /' conftest.
$ac_ext >&5
16531 gdb_cv_func_sigsetjmp
=no
16533 rm -f conftest.err conftest.
$ac_objext conftest.
$ac_ext
16535 echo "$as_me:$LINENO: result: $gdb_cv_func_sigsetjmp" >&5
16536 echo "${ECHO_T}$gdb_cv_func_sigsetjmp" >&6
16537 if test $gdb_cv_func_sigsetjmp = yes; then
16539 cat >>confdefs.h
<<\_ACEOF
16540 #define HAVE_SIGSETJMP 1
16545 # Assume we'll default to using the included libiberty regex.
16546 gdb_use_included_regex
=yes
16548 # However, if the system regex is GNU regex, then default to *not*
16549 # using the included regex.
16550 echo "$as_me:$LINENO: checking for GNU regex" >&5
16551 echo $ECHO_N "checking for GNU regex... $ECHO_C" >&6
16552 if test "${gdb_cv_have_gnu_regex+set}" = set; then
16553 echo $ECHO_N "(cached) $ECHO_C" >&6
16555 cat >conftest.
$ac_ext <<_ACEOF
16558 cat confdefs.h
>>conftest.
$ac_ext
16559 cat >>conftest.
$ac_ext <<_ACEOF
16560 /* end confdefs.h. */
16561 #include <gnu-versions.h>
16565 #define REGEX_INTERFACE_VERSION 1
16566 #if _GNU_REGEX_INTERFACE_VERSION != REGEX_INTERFACE_VERSION
16567 # error "Version mismatch"
16573 rm -f conftest.
$ac_objext
16574 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
16575 (eval $ac_compile) 2>conftest.er1
16577 grep -v '^ *+' conftest.er1
>conftest.err
16579 cat conftest.err
>&5
16580 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16581 (exit $ac_status); } &&
16582 { ac_try
='test -z "$ac_c_werror_flag"
16583 || test ! -s conftest.err'
16584 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16585 (eval $ac_try) 2>&5
16587 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16588 (exit $ac_status); }; } &&
16589 { ac_try
='test -s conftest.$ac_objext'
16590 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16591 (eval $ac_try) 2>&5
16593 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16594 (exit $ac_status); }; }; then
16595 gdb_cv_have_gnu_regex
=yes
16597 echo "$as_me: failed program was:" >&5
16598 sed 's/^/| /' conftest.
$ac_ext >&5
16600 gdb_cv_have_gnu_regex
=no
16602 rm -f conftest.err conftest.
$ac_objext conftest.
$ac_ext
16604 echo "$as_me:$LINENO: result: $gdb_cv_have_gnu_regex" >&5
16605 echo "${ECHO_T}$gdb_cv_have_gnu_regex" >&6
16606 if test $gdb_cv_have_gnu_regex = yes; then
16607 gdb_use_included_regex
=no
16611 # Check whether --with-included-regex or --without-included-regex was given.
16612 if test "${with_included_regex+set}" = set; then
16613 withval
="$with_included_regex"
16614 gdb_with_regex
=$withval
16616 gdb_with_regex
=$gdb_use_included_regex
16618 if test "$gdb_with_regex" = yes; then
16620 cat >>confdefs.h
<<\_ACEOF
16621 #define USE_INCLUDED_REGEX 1
16626 # Check if <sys/proc.h> defines `struct thread' with a td_pcb member.
16627 echo "$as_me:$LINENO: checking for struct thread.td_pcb" >&5
16628 echo $ECHO_N "checking for struct thread.td_pcb... $ECHO_C" >&6
16629 if test "${ac_cv_member_struct_thread_td_pcb+set}" = set; then
16630 echo $ECHO_N "(cached) $ECHO_C" >&6
16632 cat >conftest.
$ac_ext <<_ACEOF
16635 cat confdefs.h
>>conftest.
$ac_ext
16636 cat >>conftest.
$ac_ext <<_ACEOF
16637 /* end confdefs.h. */
16638 #include <sys/param.h>
16639 #include <sys/proc.h>
16645 static struct thread ac_aggr;
16646 if (ac_aggr.td_pcb)
16652 rm -f conftest.
$ac_objext
16653 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
16654 (eval $ac_compile) 2>conftest.er1
16656 grep -v '^ *+' conftest.er1
>conftest.err
16658 cat conftest.err
>&5
16659 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16660 (exit $ac_status); } &&
16661 { ac_try
='test -z "$ac_c_werror_flag"
16662 || test ! -s conftest.err'
16663 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16664 (eval $ac_try) 2>&5
16666 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16667 (exit $ac_status); }; } &&
16668 { ac_try
='test -s conftest.$ac_objext'
16669 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16670 (eval $ac_try) 2>&5
16672 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16673 (exit $ac_status); }; }; then
16674 ac_cv_member_struct_thread_td_pcb
=yes
16676 echo "$as_me: failed program was:" >&5
16677 sed 's/^/| /' conftest.
$ac_ext >&5
16679 cat >conftest.
$ac_ext <<_ACEOF
16682 cat confdefs.h
>>conftest.
$ac_ext
16683 cat >>conftest.
$ac_ext <<_ACEOF
16684 /* end confdefs.h. */
16685 #include <sys/param.h>
16686 #include <sys/proc.h>
16692 static struct thread ac_aggr;
16693 if (sizeof ac_aggr.td_pcb)
16699 rm -f conftest.
$ac_objext
16700 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
16701 (eval $ac_compile) 2>conftest.er1
16703 grep -v '^ *+' conftest.er1
>conftest.err
16705 cat conftest.err
>&5
16706 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16707 (exit $ac_status); } &&
16708 { ac_try
='test -z "$ac_c_werror_flag"
16709 || test ! -s conftest.err'
16710 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16711 (eval $ac_try) 2>&5
16713 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16714 (exit $ac_status); }; } &&
16715 { ac_try
='test -s conftest.$ac_objext'
16716 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16717 (eval $ac_try) 2>&5
16719 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16720 (exit $ac_status); }; }; then
16721 ac_cv_member_struct_thread_td_pcb
=yes
16723 echo "$as_me: failed program was:" >&5
16724 sed 's/^/| /' conftest.
$ac_ext >&5
16726 ac_cv_member_struct_thread_td_pcb
=no
16728 rm -f conftest.err conftest.
$ac_objext conftest.
$ac_ext
16730 rm -f conftest.err conftest.
$ac_objext conftest.
$ac_ext
16732 echo "$as_me:$LINENO: result: $ac_cv_member_struct_thread_td_pcb" >&5
16733 echo "${ECHO_T}$ac_cv_member_struct_thread_td_pcb" >&6
16734 if test $ac_cv_member_struct_thread_td_pcb = yes; then
16736 cat >>confdefs.h
<<_ACEOF
16737 #define HAVE_STRUCT_THREAD_TD_PCB 1
16744 # See if <sys/lwp.h> defines `struct lwp`.
16745 echo "$as_me:$LINENO: checking for struct lwp" >&5
16746 echo $ECHO_N "checking for struct lwp... $ECHO_C" >&6
16747 if test "${gdb_cv_struct_lwp+set}" = set; then
16748 echo $ECHO_N "(cached) $ECHO_C" >&6
16750 cat >conftest.
$ac_ext <<_ACEOF
16753 cat confdefs.h
>>conftest.
$ac_ext
16754 cat >>conftest.
$ac_ext <<_ACEOF
16755 /* end confdefs.h. */
16756 #include <sys/param.h>
16757 #include <sys/lwp.h>
16766 rm -f conftest.
$ac_objext
16767 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
16768 (eval $ac_compile) 2>conftest.er1
16770 grep -v '^ *+' conftest.er1
>conftest.err
16772 cat conftest.err
>&5
16773 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16774 (exit $ac_status); } &&
16775 { ac_try
='test -z "$ac_c_werror_flag"
16776 || test ! -s conftest.err'
16777 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16778 (eval $ac_try) 2>&5
16780 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16781 (exit $ac_status); }; } &&
16782 { ac_try
='test -s conftest.$ac_objext'
16783 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16784 (eval $ac_try) 2>&5
16786 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16787 (exit $ac_status); }; }; then
16788 gdb_cv_struct_lwp
=yes
16790 echo "$as_me: failed program was:" >&5
16791 sed 's/^/| /' conftest.
$ac_ext >&5
16793 gdb_cv_struct_lwp
=no
16795 rm -f conftest.err conftest.
$ac_objext conftest.
$ac_ext
16797 echo "$as_me:$LINENO: result: $gdb_cv_struct_lwp" >&5
16798 echo "${ECHO_T}$gdb_cv_struct_lwp" >&6
16799 if test $gdb_cv_struct_lwp = yes; then
16801 cat >>confdefs.h
<<\_ACEOF
16802 #define HAVE_STRUCT_LWP 1
16807 # See if <machine/reg.h> degines `struct reg'.
16808 echo "$as_me:$LINENO: checking for struct reg in machine/reg.h" >&5
16809 echo $ECHO_N "checking for struct reg in machine/reg.h... $ECHO_C" >&6
16810 if test "${gdb_cv_struct_reg+set}" = set; then
16811 echo $ECHO_N "(cached) $ECHO_C" >&6
16813 cat >conftest.
$ac_ext <<_ACEOF
16816 cat confdefs.h
>>conftest.
$ac_ext
16817 cat >>conftest.
$ac_ext <<_ACEOF
16818 /* end confdefs.h. */
16819 #include <sys/types.h>
16820 #include <machine/reg.h>
16829 rm -f conftest.
$ac_objext
16830 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
16831 (eval $ac_compile) 2>conftest.er1
16833 grep -v '^ *+' conftest.er1
>conftest.err
16835 cat conftest.err
>&5
16836 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16837 (exit $ac_status); } &&
16838 { ac_try
='test -z "$ac_c_werror_flag"
16839 || test ! -s conftest.err'
16840 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16841 (eval $ac_try) 2>&5
16843 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16844 (exit $ac_status); }; } &&
16845 { ac_try
='test -s conftest.$ac_objext'
16846 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16847 (eval $ac_try) 2>&5
16849 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16850 (exit $ac_status); }; }; then
16851 gdb_cv_struct_reg
=yes
16853 echo "$as_me: failed program was:" >&5
16854 sed 's/^/| /' conftest.
$ac_ext >&5
16856 gdb_cv_struct_reg
=no
16858 rm -f conftest.err conftest.
$ac_objext conftest.
$ac_ext
16860 echo "$as_me:$LINENO: result: $gdb_cv_struct_reg" >&5
16861 echo "${ECHO_T}$gdb_cv_struct_reg" >&6
16862 if test $gdb_cv_struct_reg = yes; then
16864 cat >>confdefs.h
<<\_ACEOF
16865 #define HAVE_STRUCT_REG 1
16870 # See if <machine/reg.h> supports the %fs and %gs i386 segment registers.
16871 # Older i386 BSD's don't have the r_fs and r_gs members of `struct reg'.
16872 echo "$as_me:$LINENO: checking for struct reg.r_fs" >&5
16873 echo $ECHO_N "checking for struct reg.r_fs... $ECHO_C" >&6
16874 if test "${ac_cv_member_struct_reg_r_fs+set}" = set; then
16875 echo $ECHO_N "(cached) $ECHO_C" >&6
16877 cat >conftest.
$ac_ext <<_ACEOF
16880 cat confdefs.h
>>conftest.
$ac_ext
16881 cat >>conftest.
$ac_ext <<_ACEOF
16882 /* end confdefs.h. */
16883 #include <machine/reg.h>
16888 static struct reg ac_aggr;
16895 rm -f conftest.
$ac_objext
16896 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
16897 (eval $ac_compile) 2>conftest.er1
16899 grep -v '^ *+' conftest.er1
>conftest.err
16901 cat conftest.err
>&5
16902 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16903 (exit $ac_status); } &&
16904 { ac_try
='test -z "$ac_c_werror_flag"
16905 || test ! -s conftest.err'
16906 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16907 (eval $ac_try) 2>&5
16909 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16910 (exit $ac_status); }; } &&
16911 { ac_try
='test -s conftest.$ac_objext'
16912 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16913 (eval $ac_try) 2>&5
16915 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16916 (exit $ac_status); }; }; then
16917 ac_cv_member_struct_reg_r_fs
=yes
16919 echo "$as_me: failed program was:" >&5
16920 sed 's/^/| /' conftest.
$ac_ext >&5
16922 cat >conftest.
$ac_ext <<_ACEOF
16925 cat confdefs.h
>>conftest.
$ac_ext
16926 cat >>conftest.
$ac_ext <<_ACEOF
16927 /* end confdefs.h. */
16928 #include <machine/reg.h>
16933 static struct reg ac_aggr;
16934 if (sizeof ac_aggr.r_fs)
16940 rm -f conftest.
$ac_objext
16941 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
16942 (eval $ac_compile) 2>conftest.er1
16944 grep -v '^ *+' conftest.er1
>conftest.err
16946 cat conftest.err
>&5
16947 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16948 (exit $ac_status); } &&
16949 { ac_try
='test -z "$ac_c_werror_flag"
16950 || test ! -s conftest.err'
16951 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16952 (eval $ac_try) 2>&5
16954 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16955 (exit $ac_status); }; } &&
16956 { ac_try
='test -s conftest.$ac_objext'
16957 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16958 (eval $ac_try) 2>&5
16960 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16961 (exit $ac_status); }; }; then
16962 ac_cv_member_struct_reg_r_fs
=yes
16964 echo "$as_me: failed program was:" >&5
16965 sed 's/^/| /' conftest.
$ac_ext >&5
16967 ac_cv_member_struct_reg_r_fs
=no
16969 rm -f conftest.err conftest.
$ac_objext conftest.
$ac_ext
16971 rm -f conftest.err conftest.
$ac_objext conftest.
$ac_ext
16973 echo "$as_me:$LINENO: result: $ac_cv_member_struct_reg_r_fs" >&5
16974 echo "${ECHO_T}$ac_cv_member_struct_reg_r_fs" >&6
16975 if test $ac_cv_member_struct_reg_r_fs = yes; then
16977 cat >>confdefs.h
<<_ACEOF
16978 #define HAVE_STRUCT_REG_R_FS 1
16983 echo "$as_me:$LINENO: checking for struct reg.r_gs" >&5
16984 echo $ECHO_N "checking for struct reg.r_gs... $ECHO_C" >&6
16985 if test "${ac_cv_member_struct_reg_r_gs+set}" = set; then
16986 echo $ECHO_N "(cached) $ECHO_C" >&6
16988 cat >conftest.
$ac_ext <<_ACEOF
16991 cat confdefs.h
>>conftest.
$ac_ext
16992 cat >>conftest.
$ac_ext <<_ACEOF
16993 /* end confdefs.h. */
16994 #include <machine/reg.h>
16999 static struct reg ac_aggr;
17006 rm -f conftest.
$ac_objext
17007 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
17008 (eval $ac_compile) 2>conftest.er1
17010 grep -v '^ *+' conftest.er1
>conftest.err
17012 cat conftest.err
>&5
17013 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17014 (exit $ac_status); } &&
17015 { ac_try
='test -z "$ac_c_werror_flag"
17016 || test ! -s conftest.err'
17017 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17018 (eval $ac_try) 2>&5
17020 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17021 (exit $ac_status); }; } &&
17022 { ac_try
='test -s conftest.$ac_objext'
17023 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17024 (eval $ac_try) 2>&5
17026 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17027 (exit $ac_status); }; }; then
17028 ac_cv_member_struct_reg_r_gs
=yes
17030 echo "$as_me: failed program was:" >&5
17031 sed 's/^/| /' conftest.
$ac_ext >&5
17033 cat >conftest.
$ac_ext <<_ACEOF
17036 cat confdefs.h
>>conftest.
$ac_ext
17037 cat >>conftest.
$ac_ext <<_ACEOF
17038 /* end confdefs.h. */
17039 #include <machine/reg.h>
17044 static struct reg ac_aggr;
17045 if (sizeof ac_aggr.r_gs)
17051 rm -f conftest.
$ac_objext
17052 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
17053 (eval $ac_compile) 2>conftest.er1
17055 grep -v '^ *+' conftest.er1
>conftest.err
17057 cat conftest.err
>&5
17058 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17059 (exit $ac_status); } &&
17060 { ac_try
='test -z "$ac_c_werror_flag"
17061 || test ! -s conftest.err'
17062 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17063 (eval $ac_try) 2>&5
17065 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17066 (exit $ac_status); }; } &&
17067 { ac_try
='test -s conftest.$ac_objext'
17068 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17069 (eval $ac_try) 2>&5
17071 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17072 (exit $ac_status); }; }; then
17073 ac_cv_member_struct_reg_r_gs
=yes
17075 echo "$as_me: failed program was:" >&5
17076 sed 's/^/| /' conftest.
$ac_ext >&5
17078 ac_cv_member_struct_reg_r_gs
=no
17080 rm -f conftest.err conftest.
$ac_objext conftest.
$ac_ext
17082 rm -f conftest.err conftest.
$ac_objext conftest.
$ac_ext
17084 echo "$as_me:$LINENO: result: $ac_cv_member_struct_reg_r_gs" >&5
17085 echo "${ECHO_T}$ac_cv_member_struct_reg_r_gs" >&6
17086 if test $ac_cv_member_struct_reg_r_gs = yes; then
17088 cat >>confdefs.h
<<_ACEOF
17089 #define HAVE_STRUCT_REG_R_GS 1
17096 # See if <sys/ptrace.h> provides the PTRACE_GETREGS request.
17097 echo "$as_me:$LINENO: checking for PTRACE_GETREGS" >&5
17098 echo $ECHO_N "checking for PTRACE_GETREGS... $ECHO_C" >&6
17099 if test "${gdb_cv_have_ptrace_getregs+set}" = set; then
17100 echo $ECHO_N "(cached) $ECHO_C" >&6
17102 cat >conftest.
$ac_ext <<_ACEOF
17105 cat confdefs.h
>>conftest.
$ac_ext
17106 cat >>conftest.
$ac_ext <<_ACEOF
17107 /* end confdefs.h. */
17108 #include <sys/ptrace.h>
17117 rm -f conftest.
$ac_objext
17118 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
17119 (eval $ac_compile) 2>conftest.er1
17121 grep -v '^ *+' conftest.er1
>conftest.err
17123 cat conftest.err
>&5
17124 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17125 (exit $ac_status); } &&
17126 { ac_try
='test -z "$ac_c_werror_flag"
17127 || test ! -s conftest.err'
17128 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17129 (eval $ac_try) 2>&5
17131 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17132 (exit $ac_status); }; } &&
17133 { ac_try
='test -s conftest.$ac_objext'
17134 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17135 (eval $ac_try) 2>&5
17137 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17138 (exit $ac_status); }; }; then
17139 gdb_cv_have_ptrace_getregs
=yes
17141 echo "$as_me: failed program was:" >&5
17142 sed 's/^/| /' conftest.
$ac_ext >&5
17144 gdb_cv_have_ptrace_getregs
=no
17146 rm -f conftest.err conftest.
$ac_objext conftest.
$ac_ext
17149 echo "$as_me:$LINENO: result: $gdb_cv_have_ptrace_getregs" >&5
17150 echo "${ECHO_T}$gdb_cv_have_ptrace_getregs" >&6
17151 if test $gdb_cv_have_ptrace_getregs = yes; then
17153 cat >>confdefs.h
<<\_ACEOF
17154 #define HAVE_PTRACE_GETREGS 1
17159 # See if <sys/ptrace.h> provides the PTRACE_GETFPXREGS request.
17160 echo "$as_me:$LINENO: checking for PTRACE_GETFPXREGS" >&5
17161 echo $ECHO_N "checking for PTRACE_GETFPXREGS... $ECHO_C" >&6
17162 if test "${gdb_cv_have_ptrace_getfpxregs+set}" = set; then
17163 echo $ECHO_N "(cached) $ECHO_C" >&6
17165 cat >conftest.
$ac_ext <<_ACEOF
17168 cat confdefs.h
>>conftest.
$ac_ext
17169 cat >>conftest.
$ac_ext <<_ACEOF
17170 /* end confdefs.h. */
17171 #include <sys/ptrace.h>
17180 rm -f conftest.
$ac_objext
17181 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
17182 (eval $ac_compile) 2>conftest.er1
17184 grep -v '^ *+' conftest.er1
>conftest.err
17186 cat conftest.err
>&5
17187 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17188 (exit $ac_status); } &&
17189 { ac_try
='test -z "$ac_c_werror_flag"
17190 || test ! -s conftest.err'
17191 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17192 (eval $ac_try) 2>&5
17194 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17195 (exit $ac_status); }; } &&
17196 { ac_try
='test -s conftest.$ac_objext'
17197 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17198 (eval $ac_try) 2>&5
17200 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17201 (exit $ac_status); }; }; then
17202 gdb_cv_have_ptrace_getfpxregs
=yes
17204 echo "$as_me: failed program was:" >&5
17205 sed 's/^/| /' conftest.
$ac_ext >&5
17207 gdb_cv_have_ptrace_getfpxregs
=no
17209 rm -f conftest.err conftest.
$ac_objext conftest.
$ac_ext
17212 echo "$as_me:$LINENO: result: $gdb_cv_have_ptrace_getfpxregs" >&5
17213 echo "${ECHO_T}$gdb_cv_have_ptrace_getfpxregs" >&6
17214 if test $gdb_cv_have_ptrace_getfpxregs = yes; then
17216 cat >>confdefs.h
<<\_ACEOF
17217 #define HAVE_PTRACE_GETFPXREGS 1
17222 # See if <sys/ptrace.h> provides the PT_GETDBREGS request.
17223 echo "$as_me:$LINENO: checking for PT_GETDBREGS" >&5
17224 echo $ECHO_N "checking for PT_GETDBREGS... $ECHO_C" >&6
17225 if test "${gdb_cv_have_pt_getdbregs+set}" = set; then
17226 echo $ECHO_N "(cached) $ECHO_C" >&6
17228 cat >conftest.
$ac_ext <<_ACEOF
17231 cat confdefs.h
>>conftest.
$ac_ext
17232 cat >>conftest.
$ac_ext <<_ACEOF
17233 /* end confdefs.h. */
17234 #include <sys/types.h>
17235 #include <sys/ptrace.h>
17244 rm -f conftest.
$ac_objext
17245 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
17246 (eval $ac_compile) 2>conftest.er1
17248 grep -v '^ *+' conftest.er1
>conftest.err
17250 cat conftest.err
>&5
17251 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17252 (exit $ac_status); } &&
17253 { ac_try
='test -z "$ac_c_werror_flag"
17254 || test ! -s conftest.err'
17255 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17256 (eval $ac_try) 2>&5
17258 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17259 (exit $ac_status); }; } &&
17260 { ac_try
='test -s conftest.$ac_objext'
17261 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17262 (eval $ac_try) 2>&5
17264 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17265 (exit $ac_status); }; }; then
17266 gdb_cv_have_pt_getdbregs
=yes
17268 echo "$as_me: failed program was:" >&5
17269 sed 's/^/| /' conftest.
$ac_ext >&5
17271 gdb_cv_have_pt_getdbregs
=no
17273 rm -f conftest.err conftest.
$ac_objext conftest.
$ac_ext
17276 echo "$as_me:$LINENO: result: $gdb_cv_have_pt_getdbregs" >&5
17277 echo "${ECHO_T}$gdb_cv_have_pt_getdbregs" >&6
17278 if test $gdb_cv_have_pt_getdbregs = yes; then
17280 cat >>confdefs.h
<<\_ACEOF
17281 #define HAVE_PT_GETDBREGS 1
17286 # See if <sys/ptrace.h> provides the PT_GETXMMREGS request.
17287 echo "$as_me:$LINENO: checking for PT_GETXMMREGS" >&5
17288 echo $ECHO_N "checking for PT_GETXMMREGS... $ECHO_C" >&6
17289 if test "${gdb_cv_have_pt_getxmmregs+set}" = set; then
17290 echo $ECHO_N "(cached) $ECHO_C" >&6
17292 cat >conftest.
$ac_ext <<_ACEOF
17295 cat confdefs.h
>>conftest.
$ac_ext
17296 cat >>conftest.
$ac_ext <<_ACEOF
17297 /* end confdefs.h. */
17298 #include <sys/types.h>
17299 #include <sys/ptrace.h>
17308 rm -f conftest.
$ac_objext
17309 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
17310 (eval $ac_compile) 2>conftest.er1
17312 grep -v '^ *+' conftest.er1
>conftest.err
17314 cat conftest.err
>&5
17315 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17316 (exit $ac_status); } &&
17317 { ac_try
='test -z "$ac_c_werror_flag"
17318 || test ! -s conftest.err'
17319 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17320 (eval $ac_try) 2>&5
17322 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17323 (exit $ac_status); }; } &&
17324 { ac_try
='test -s conftest.$ac_objext'
17325 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17326 (eval $ac_try) 2>&5
17328 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17329 (exit $ac_status); }; }; then
17330 gdb_cv_have_pt_getxmmregs
=yes
17332 echo "$as_me: failed program was:" >&5
17333 sed 's/^/| /' conftest.
$ac_ext >&5
17335 gdb_cv_have_pt_getxmmregs
=no
17337 rm -f conftest.err conftest.
$ac_objext conftest.
$ac_ext
17340 echo "$as_me:$LINENO: result: $gdb_cv_have_pt_getxmmregs" >&5
17341 echo "${ECHO_T}$gdb_cv_have_pt_getxmmregs" >&6
17342 if test $gdb_cv_have_pt_getxmmregs = yes; then
17344 cat >>confdefs.h
<<\_ACEOF
17345 #define HAVE_PT_GETXMMREGS 1
17350 # Detect which type of /proc is in use, such as for Unixware or Solaris.
17352 if test "${target}" = "${host}"; then
17354 *-*-unixware* |
*-*-sysv4.2
* |
*-*-sysv5* |
*-*-interix* )
17356 cat >>confdefs.h
<<\_ACEOF
17357 #define NEW_PROC_API 1
17361 *-*-solaris2.
[6789] |
*-*-solaris2.1
[0-9]*)
17363 cat >>confdefs.h
<<\_ACEOF
17364 #define NEW_PROC_API 1
17369 # Work around <sys/proc.h> needing _KMEMUSER problem on IRIX 5.
17371 cat >>confdefs.h
<<\_ACEOF
17372 #define _KMEMUSER 1
17379 if test "$ac_cv_header_sys_procfs_h" = yes; then
17380 echo "$as_me:$LINENO: checking for pstatus_t in sys/procfs.h" >&5
17381 echo $ECHO_N "checking for pstatus_t in sys/procfs.h... $ECHO_C" >&6
17382 if test "${bfd_cv_have_sys_procfs_type_pstatus_t+set}" = set; then
17383 echo $ECHO_N "(cached) $ECHO_C" >&6
17385 cat >conftest.
$ac_ext <<_ACEOF
17388 cat confdefs.h
>>conftest.
$ac_ext
17389 cat >>conftest.
$ac_ext <<_ACEOF
17390 /* end confdefs.h. */
17393 #include <sys/procfs.h>
17402 rm -f conftest.
$ac_objext
17403 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
17404 (eval $ac_compile) 2>conftest.er1
17406 grep -v '^ *+' conftest.er1
>conftest.err
17408 cat conftest.err
>&5
17409 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17410 (exit $ac_status); } &&
17411 { ac_try
='test -z "$ac_c_werror_flag"
17412 || test ! -s conftest.err'
17413 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17414 (eval $ac_try) 2>&5
17416 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17417 (exit $ac_status); }; } &&
17418 { ac_try
='test -s conftest.$ac_objext'
17419 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17420 (eval $ac_try) 2>&5
17422 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17423 (exit $ac_status); }; }; then
17424 bfd_cv_have_sys_procfs_type_pstatus_t
=yes
17426 echo "$as_me: failed program was:" >&5
17427 sed 's/^/| /' conftest.
$ac_ext >&5
17429 bfd_cv_have_sys_procfs_type_pstatus_t
=no
17432 rm -f conftest.err conftest.
$ac_objext conftest.
$ac_ext
17435 if test $bfd_cv_have_sys_procfs_type_pstatus_t = yes; then
17437 cat >>confdefs.h
<<\_ACEOF
17438 #define HAVE_PSTATUS_T 1
17442 echo "$as_me:$LINENO: result: $bfd_cv_have_sys_procfs_type_pstatus_t" >&5
17443 echo "${ECHO_T}$bfd_cv_have_sys_procfs_type_pstatus_t" >&6
17445 echo "$as_me:$LINENO: checking for prrun_t in sys/procfs.h" >&5
17446 echo $ECHO_N "checking for prrun_t in sys/procfs.h... $ECHO_C" >&6
17447 if test "${bfd_cv_have_sys_procfs_type_prrun_t+set}" = set; then
17448 echo $ECHO_N "(cached) $ECHO_C" >&6
17450 cat >conftest.
$ac_ext <<_ACEOF
17453 cat confdefs.h
>>conftest.
$ac_ext
17454 cat >>conftest.
$ac_ext <<_ACEOF
17455 /* end confdefs.h. */
17458 #include <sys/procfs.h>
17467 rm -f conftest.
$ac_objext
17468 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
17469 (eval $ac_compile) 2>conftest.er1
17471 grep -v '^ *+' conftest.er1
>conftest.err
17473 cat conftest.err
>&5
17474 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17475 (exit $ac_status); } &&
17476 { ac_try
='test -z "$ac_c_werror_flag"
17477 || test ! -s conftest.err'
17478 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17479 (eval $ac_try) 2>&5
17481 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17482 (exit $ac_status); }; } &&
17483 { ac_try
='test -s conftest.$ac_objext'
17484 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17485 (eval $ac_try) 2>&5
17487 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17488 (exit $ac_status); }; }; then
17489 bfd_cv_have_sys_procfs_type_prrun_t
=yes
17491 echo "$as_me: failed program was:" >&5
17492 sed 's/^/| /' conftest.
$ac_ext >&5
17494 bfd_cv_have_sys_procfs_type_prrun_t
=no
17497 rm -f conftest.err conftest.
$ac_objext conftest.
$ac_ext
17500 if test $bfd_cv_have_sys_procfs_type_prrun_t = yes; then
17502 cat >>confdefs.h
<<\_ACEOF
17503 #define HAVE_PRRUN_T 1
17507 echo "$as_me:$LINENO: result: $bfd_cv_have_sys_procfs_type_prrun_t" >&5
17508 echo "${ECHO_T}$bfd_cv_have_sys_procfs_type_prrun_t" >&6
17510 echo "$as_me:$LINENO: checking for gregset_t in sys/procfs.h" >&5
17511 echo $ECHO_N "checking for gregset_t in sys/procfs.h... $ECHO_C" >&6
17512 if test "${bfd_cv_have_sys_procfs_type_gregset_t+set}" = set; then
17513 echo $ECHO_N "(cached) $ECHO_C" >&6
17515 cat >conftest.
$ac_ext <<_ACEOF
17518 cat confdefs.h
>>conftest.
$ac_ext
17519 cat >>conftest.
$ac_ext <<_ACEOF
17520 /* end confdefs.h. */
17523 #include <sys/procfs.h>
17532 rm -f conftest.
$ac_objext
17533 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
17534 (eval $ac_compile) 2>conftest.er1
17536 grep -v '^ *+' conftest.er1
>conftest.err
17538 cat conftest.err
>&5
17539 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17540 (exit $ac_status); } &&
17541 { ac_try
='test -z "$ac_c_werror_flag"
17542 || test ! -s conftest.err'
17543 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17544 (eval $ac_try) 2>&5
17546 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17547 (exit $ac_status); }; } &&
17548 { ac_try
='test -s conftest.$ac_objext'
17549 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17550 (eval $ac_try) 2>&5
17552 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17553 (exit $ac_status); }; }; then
17554 bfd_cv_have_sys_procfs_type_gregset_t
=yes
17556 echo "$as_me: failed program was:" >&5
17557 sed 's/^/| /' conftest.
$ac_ext >&5
17559 bfd_cv_have_sys_procfs_type_gregset_t
=no
17562 rm -f conftest.err conftest.
$ac_objext conftest.
$ac_ext
17565 if test $bfd_cv_have_sys_procfs_type_gregset_t = yes; then
17567 cat >>confdefs.h
<<\_ACEOF
17568 #define HAVE_GREGSET_T 1
17572 echo "$as_me:$LINENO: result: $bfd_cv_have_sys_procfs_type_gregset_t" >&5
17573 echo "${ECHO_T}$bfd_cv_have_sys_procfs_type_gregset_t" >&6
17575 echo "$as_me:$LINENO: checking for fpregset_t in sys/procfs.h" >&5
17576 echo $ECHO_N "checking for fpregset_t in sys/procfs.h... $ECHO_C" >&6
17577 if test "${bfd_cv_have_sys_procfs_type_fpregset_t+set}" = set; then
17578 echo $ECHO_N "(cached) $ECHO_C" >&6
17580 cat >conftest.
$ac_ext <<_ACEOF
17583 cat confdefs.h
>>conftest.
$ac_ext
17584 cat >>conftest.
$ac_ext <<_ACEOF
17585 /* end confdefs.h. */
17588 #include <sys/procfs.h>
17597 rm -f conftest.
$ac_objext
17598 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
17599 (eval $ac_compile) 2>conftest.er1
17601 grep -v '^ *+' conftest.er1
>conftest.err
17603 cat conftest.err
>&5
17604 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17605 (exit $ac_status); } &&
17606 { ac_try
='test -z "$ac_c_werror_flag"
17607 || test ! -s conftest.err'
17608 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17609 (eval $ac_try) 2>&5
17611 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17612 (exit $ac_status); }; } &&
17613 { ac_try
='test -s conftest.$ac_objext'
17614 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17615 (eval $ac_try) 2>&5
17617 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17618 (exit $ac_status); }; }; then
17619 bfd_cv_have_sys_procfs_type_fpregset_t
=yes
17621 echo "$as_me: failed program was:" >&5
17622 sed 's/^/| /' conftest.
$ac_ext >&5
17624 bfd_cv_have_sys_procfs_type_fpregset_t
=no
17627 rm -f conftest.err conftest.
$ac_objext conftest.
$ac_ext
17630 if test $bfd_cv_have_sys_procfs_type_fpregset_t = yes; then
17632 cat >>confdefs.h
<<\_ACEOF
17633 #define HAVE_FPREGSET_T 1
17637 echo "$as_me:$LINENO: result: $bfd_cv_have_sys_procfs_type_fpregset_t" >&5
17638 echo "${ECHO_T}$bfd_cv_have_sys_procfs_type_fpregset_t" >&6
17640 echo "$as_me:$LINENO: checking for prgregset_t in sys/procfs.h" >&5
17641 echo $ECHO_N "checking for prgregset_t in sys/procfs.h... $ECHO_C" >&6
17642 if test "${bfd_cv_have_sys_procfs_type_prgregset_t+set}" = set; then
17643 echo $ECHO_N "(cached) $ECHO_C" >&6
17645 cat >conftest.
$ac_ext <<_ACEOF
17648 cat confdefs.h
>>conftest.
$ac_ext
17649 cat >>conftest.
$ac_ext <<_ACEOF
17650 /* end confdefs.h. */
17653 #include <sys/procfs.h>
17662 rm -f conftest.
$ac_objext
17663 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
17664 (eval $ac_compile) 2>conftest.er1
17666 grep -v '^ *+' conftest.er1
>conftest.err
17668 cat conftest.err
>&5
17669 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17670 (exit $ac_status); } &&
17671 { ac_try
='test -z "$ac_c_werror_flag"
17672 || test ! -s conftest.err'
17673 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17674 (eval $ac_try) 2>&5
17676 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17677 (exit $ac_status); }; } &&
17678 { ac_try
='test -s conftest.$ac_objext'
17679 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17680 (eval $ac_try) 2>&5
17682 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17683 (exit $ac_status); }; }; then
17684 bfd_cv_have_sys_procfs_type_prgregset_t
=yes
17686 echo "$as_me: failed program was:" >&5
17687 sed 's/^/| /' conftest.
$ac_ext >&5
17689 bfd_cv_have_sys_procfs_type_prgregset_t
=no
17692 rm -f conftest.err conftest.
$ac_objext conftest.
$ac_ext
17695 if test $bfd_cv_have_sys_procfs_type_prgregset_t = yes; then
17697 cat >>confdefs.h
<<\_ACEOF
17698 #define HAVE_PRGREGSET_T 1
17702 echo "$as_me:$LINENO: result: $bfd_cv_have_sys_procfs_type_prgregset_t" >&5
17703 echo "${ECHO_T}$bfd_cv_have_sys_procfs_type_prgregset_t" >&6
17705 echo "$as_me:$LINENO: checking for prfpregset_t in sys/procfs.h" >&5
17706 echo $ECHO_N "checking for prfpregset_t in sys/procfs.h... $ECHO_C" >&6
17707 if test "${bfd_cv_have_sys_procfs_type_prfpregset_t+set}" = set; then
17708 echo $ECHO_N "(cached) $ECHO_C" >&6
17710 cat >conftest.
$ac_ext <<_ACEOF
17713 cat confdefs.h
>>conftest.
$ac_ext
17714 cat >>conftest.
$ac_ext <<_ACEOF
17715 /* end confdefs.h. */
17718 #include <sys/procfs.h>
17727 rm -f conftest.
$ac_objext
17728 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
17729 (eval $ac_compile) 2>conftest.er1
17731 grep -v '^ *+' conftest.er1
>conftest.err
17733 cat conftest.err
>&5
17734 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17735 (exit $ac_status); } &&
17736 { ac_try
='test -z "$ac_c_werror_flag"
17737 || test ! -s conftest.err'
17738 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17739 (eval $ac_try) 2>&5
17741 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17742 (exit $ac_status); }; } &&
17743 { ac_try
='test -s conftest.$ac_objext'
17744 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17745 (eval $ac_try) 2>&5
17747 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17748 (exit $ac_status); }; }; then
17749 bfd_cv_have_sys_procfs_type_prfpregset_t
=yes
17751 echo "$as_me: failed program was:" >&5
17752 sed 's/^/| /' conftest.
$ac_ext >&5
17754 bfd_cv_have_sys_procfs_type_prfpregset_t
=no
17757 rm -f conftest.err conftest.
$ac_objext conftest.
$ac_ext
17760 if test $bfd_cv_have_sys_procfs_type_prfpregset_t = yes; then
17762 cat >>confdefs.h
<<\_ACEOF
17763 #define HAVE_PRFPREGSET_T 1
17767 echo "$as_me:$LINENO: result: $bfd_cv_have_sys_procfs_type_prfpregset_t" >&5
17768 echo "${ECHO_T}$bfd_cv_have_sys_procfs_type_prfpregset_t" >&6
17770 echo "$as_me:$LINENO: checking for prgregset32_t in sys/procfs.h" >&5
17771 echo $ECHO_N "checking for prgregset32_t in sys/procfs.h... $ECHO_C" >&6
17772 if test "${bfd_cv_have_sys_procfs_type_prgregset32_t+set}" = set; then
17773 echo $ECHO_N "(cached) $ECHO_C" >&6
17775 cat >conftest.
$ac_ext <<_ACEOF
17778 cat confdefs.h
>>conftest.
$ac_ext
17779 cat >>conftest.
$ac_ext <<_ACEOF
17780 /* end confdefs.h. */
17783 #include <sys/procfs.h>
17792 rm -f conftest.
$ac_objext
17793 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
17794 (eval $ac_compile) 2>conftest.er1
17796 grep -v '^ *+' conftest.er1
>conftest.err
17798 cat conftest.err
>&5
17799 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17800 (exit $ac_status); } &&
17801 { ac_try
='test -z "$ac_c_werror_flag"
17802 || test ! -s conftest.err'
17803 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17804 (eval $ac_try) 2>&5
17806 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17807 (exit $ac_status); }; } &&
17808 { ac_try
='test -s conftest.$ac_objext'
17809 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17810 (eval $ac_try) 2>&5
17812 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17813 (exit $ac_status); }; }; then
17814 bfd_cv_have_sys_procfs_type_prgregset32_t
=yes
17816 echo "$as_me: failed program was:" >&5
17817 sed 's/^/| /' conftest.
$ac_ext >&5
17819 bfd_cv_have_sys_procfs_type_prgregset32_t
=no
17822 rm -f conftest.err conftest.
$ac_objext conftest.
$ac_ext
17825 if test $bfd_cv_have_sys_procfs_type_prgregset32_t = yes; then
17827 cat >>confdefs.h
<<\_ACEOF
17828 #define HAVE_PRGREGSET32_T 1
17832 echo "$as_me:$LINENO: result: $bfd_cv_have_sys_procfs_type_prgregset32_t" >&5
17833 echo "${ECHO_T}$bfd_cv_have_sys_procfs_type_prgregset32_t" >&6
17835 echo "$as_me:$LINENO: checking for prfpregset32_t in sys/procfs.h" >&5
17836 echo $ECHO_N "checking for prfpregset32_t in sys/procfs.h... $ECHO_C" >&6
17837 if test "${bfd_cv_have_sys_procfs_type_prfpregset32_t+set}" = set; then
17838 echo $ECHO_N "(cached) $ECHO_C" >&6
17840 cat >conftest.
$ac_ext <<_ACEOF
17843 cat confdefs.h
>>conftest.
$ac_ext
17844 cat >>conftest.
$ac_ext <<_ACEOF
17845 /* end confdefs.h. */
17848 #include <sys/procfs.h>
17852 prfpregset32_t avar
17857 rm -f conftest.
$ac_objext
17858 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
17859 (eval $ac_compile) 2>conftest.er1
17861 grep -v '^ *+' conftest.er1
>conftest.err
17863 cat conftest.err
>&5
17864 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17865 (exit $ac_status); } &&
17866 { ac_try
='test -z "$ac_c_werror_flag"
17867 || test ! -s conftest.err'
17868 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17869 (eval $ac_try) 2>&5
17871 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17872 (exit $ac_status); }; } &&
17873 { ac_try
='test -s conftest.$ac_objext'
17874 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17875 (eval $ac_try) 2>&5
17877 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17878 (exit $ac_status); }; }; then
17879 bfd_cv_have_sys_procfs_type_prfpregset32_t
=yes
17881 echo "$as_me: failed program was:" >&5
17882 sed 's/^/| /' conftest.
$ac_ext >&5
17884 bfd_cv_have_sys_procfs_type_prfpregset32_t
=no
17887 rm -f conftest.err conftest.
$ac_objext conftest.
$ac_ext
17890 if test $bfd_cv_have_sys_procfs_type_prfpregset32_t = yes; then
17892 cat >>confdefs.h
<<\_ACEOF
17893 #define HAVE_PRFPREGSET32_T 1
17897 echo "$as_me:$LINENO: result: $bfd_cv_have_sys_procfs_type_prfpregset32_t" >&5
17898 echo "${ECHO_T}$bfd_cv_have_sys_procfs_type_prfpregset32_t" >&6
17900 echo "$as_me:$LINENO: checking for lwpid_t in sys/procfs.h" >&5
17901 echo $ECHO_N "checking for lwpid_t in sys/procfs.h... $ECHO_C" >&6
17902 if test "${bfd_cv_have_sys_procfs_type_lwpid_t+set}" = set; then
17903 echo $ECHO_N "(cached) $ECHO_C" >&6
17905 cat >conftest.
$ac_ext <<_ACEOF
17908 cat confdefs.h
>>conftest.
$ac_ext
17909 cat >>conftest.
$ac_ext <<_ACEOF
17910 /* end confdefs.h. */
17913 #include <sys/procfs.h>
17922 rm -f conftest.
$ac_objext
17923 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
17924 (eval $ac_compile) 2>conftest.er1
17926 grep -v '^ *+' conftest.er1
>conftest.err
17928 cat conftest.err
>&5
17929 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17930 (exit $ac_status); } &&
17931 { ac_try
='test -z "$ac_c_werror_flag"
17932 || test ! -s conftest.err'
17933 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17934 (eval $ac_try) 2>&5
17936 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17937 (exit $ac_status); }; } &&
17938 { ac_try
='test -s conftest.$ac_objext'
17939 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17940 (eval $ac_try) 2>&5
17942 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17943 (exit $ac_status); }; }; then
17944 bfd_cv_have_sys_procfs_type_lwpid_t
=yes
17946 echo "$as_me: failed program was:" >&5
17947 sed 's/^/| /' conftest.
$ac_ext >&5
17949 bfd_cv_have_sys_procfs_type_lwpid_t
=no
17952 rm -f conftest.err conftest.
$ac_objext conftest.
$ac_ext
17955 if test $bfd_cv_have_sys_procfs_type_lwpid_t = yes; then
17957 cat >>confdefs.h
<<\_ACEOF
17958 #define HAVE_LWPID_T 1
17962 echo "$as_me:$LINENO: result: $bfd_cv_have_sys_procfs_type_lwpid_t" >&5
17963 echo "${ECHO_T}$bfd_cv_have_sys_procfs_type_lwpid_t" >&6
17965 echo "$as_me:$LINENO: checking for psaddr_t in sys/procfs.h" >&5
17966 echo $ECHO_N "checking for psaddr_t in sys/procfs.h... $ECHO_C" >&6
17967 if test "${bfd_cv_have_sys_procfs_type_psaddr_t+set}" = set; then
17968 echo $ECHO_N "(cached) $ECHO_C" >&6
17970 cat >conftest.
$ac_ext <<_ACEOF
17973 cat confdefs.h
>>conftest.
$ac_ext
17974 cat >>conftest.
$ac_ext <<_ACEOF
17975 /* end confdefs.h. */
17978 #include <sys/procfs.h>
17987 rm -f conftest.
$ac_objext
17988 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
17989 (eval $ac_compile) 2>conftest.er1
17991 grep -v '^ *+' conftest.er1
>conftest.err
17993 cat conftest.err
>&5
17994 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17995 (exit $ac_status); } &&
17996 { ac_try
='test -z "$ac_c_werror_flag"
17997 || test ! -s conftest.err'
17998 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17999 (eval $ac_try) 2>&5
18001 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18002 (exit $ac_status); }; } &&
18003 { ac_try
='test -s conftest.$ac_objext'
18004 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18005 (eval $ac_try) 2>&5
18007 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18008 (exit $ac_status); }; }; then
18009 bfd_cv_have_sys_procfs_type_psaddr_t
=yes
18011 echo "$as_me: failed program was:" >&5
18012 sed 's/^/| /' conftest.
$ac_ext >&5
18014 bfd_cv_have_sys_procfs_type_psaddr_t
=no
18017 rm -f conftest.err conftest.
$ac_objext conftest.
$ac_ext
18020 if test $bfd_cv_have_sys_procfs_type_psaddr_t = yes; then
18022 cat >>confdefs.h
<<\_ACEOF
18023 #define HAVE_PSADDR_T 1
18027 echo "$as_me:$LINENO: result: $bfd_cv_have_sys_procfs_type_psaddr_t" >&5
18028 echo "${ECHO_T}$bfd_cv_have_sys_procfs_type_psaddr_t" >&6
18030 echo "$as_me:$LINENO: checking for prsysent_t in sys/procfs.h" >&5
18031 echo $ECHO_N "checking for prsysent_t in sys/procfs.h... $ECHO_C" >&6
18032 if test "${bfd_cv_have_sys_procfs_type_prsysent_t+set}" = set; then
18033 echo $ECHO_N "(cached) $ECHO_C" >&6
18035 cat >conftest.
$ac_ext <<_ACEOF
18038 cat confdefs.h
>>conftest.
$ac_ext
18039 cat >>conftest.
$ac_ext <<_ACEOF
18040 /* end confdefs.h. */
18043 #include <sys/procfs.h>
18052 rm -f conftest.
$ac_objext
18053 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
18054 (eval $ac_compile) 2>conftest.er1
18056 grep -v '^ *+' conftest.er1
>conftest.err
18058 cat conftest.err
>&5
18059 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18060 (exit $ac_status); } &&
18061 { ac_try
='test -z "$ac_c_werror_flag"
18062 || test ! -s conftest.err'
18063 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18064 (eval $ac_try) 2>&5
18066 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18067 (exit $ac_status); }; } &&
18068 { ac_try
='test -s conftest.$ac_objext'
18069 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18070 (eval $ac_try) 2>&5
18072 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18073 (exit $ac_status); }; }; then
18074 bfd_cv_have_sys_procfs_type_prsysent_t
=yes
18076 echo "$as_me: failed program was:" >&5
18077 sed 's/^/| /' conftest.
$ac_ext >&5
18079 bfd_cv_have_sys_procfs_type_prsysent_t
=no
18082 rm -f conftest.err conftest.
$ac_objext conftest.
$ac_ext
18085 if test $bfd_cv_have_sys_procfs_type_prsysent_t = yes; then
18087 cat >>confdefs.h
<<\_ACEOF
18088 #define HAVE_PRSYSENT_T 1
18092 echo "$as_me:$LINENO: result: $bfd_cv_have_sys_procfs_type_prsysent_t" >&5
18093 echo "${ECHO_T}$bfd_cv_have_sys_procfs_type_prsysent_t" >&6
18095 echo "$as_me:$LINENO: checking for pr_sigset_t in sys/procfs.h" >&5
18096 echo $ECHO_N "checking for pr_sigset_t in sys/procfs.h... $ECHO_C" >&6
18097 if test "${bfd_cv_have_sys_procfs_type_pr_sigset_t+set}" = set; then
18098 echo $ECHO_N "(cached) $ECHO_C" >&6
18100 cat >conftest.
$ac_ext <<_ACEOF
18103 cat confdefs.h
>>conftest.
$ac_ext
18104 cat >>conftest.
$ac_ext <<_ACEOF
18105 /* end confdefs.h. */
18108 #include <sys/procfs.h>
18117 rm -f conftest.
$ac_objext
18118 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
18119 (eval $ac_compile) 2>conftest.er1
18121 grep -v '^ *+' conftest.er1
>conftest.err
18123 cat conftest.err
>&5
18124 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18125 (exit $ac_status); } &&
18126 { ac_try
='test -z "$ac_c_werror_flag"
18127 || test ! -s conftest.err'
18128 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18129 (eval $ac_try) 2>&5
18131 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18132 (exit $ac_status); }; } &&
18133 { ac_try
='test -s conftest.$ac_objext'
18134 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18135 (eval $ac_try) 2>&5
18137 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18138 (exit $ac_status); }; }; then
18139 bfd_cv_have_sys_procfs_type_pr_sigset_t
=yes
18141 echo "$as_me: failed program was:" >&5
18142 sed 's/^/| /' conftest.
$ac_ext >&5
18144 bfd_cv_have_sys_procfs_type_pr_sigset_t
=no
18147 rm -f conftest.err conftest.
$ac_objext conftest.
$ac_ext
18150 if test $bfd_cv_have_sys_procfs_type_pr_sigset_t = yes; then
18152 cat >>confdefs.h
<<\_ACEOF
18153 #define HAVE_PR_SIGSET_T 1
18157 echo "$as_me:$LINENO: result: $bfd_cv_have_sys_procfs_type_pr_sigset_t" >&5
18158 echo "${ECHO_T}$bfd_cv_have_sys_procfs_type_pr_sigset_t" >&6
18160 echo "$as_me:$LINENO: checking for pr_sigaction64_t in sys/procfs.h" >&5
18161 echo $ECHO_N "checking for pr_sigaction64_t in sys/procfs.h... $ECHO_C" >&6
18162 if test "${bfd_cv_have_sys_procfs_type_pr_sigaction64_t+set}" = set; then
18163 echo $ECHO_N "(cached) $ECHO_C" >&6
18165 cat >conftest.
$ac_ext <<_ACEOF
18168 cat confdefs.h
>>conftest.
$ac_ext
18169 cat >>conftest.
$ac_ext <<_ACEOF
18170 /* end confdefs.h. */
18173 #include <sys/procfs.h>
18177 pr_sigaction64_t avar
18182 rm -f conftest.
$ac_objext
18183 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
18184 (eval $ac_compile) 2>conftest.er1
18186 grep -v '^ *+' conftest.er1
>conftest.err
18188 cat conftest.err
>&5
18189 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18190 (exit $ac_status); } &&
18191 { ac_try
='test -z "$ac_c_werror_flag"
18192 || test ! -s conftest.err'
18193 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18194 (eval $ac_try) 2>&5
18196 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18197 (exit $ac_status); }; } &&
18198 { ac_try
='test -s conftest.$ac_objext'
18199 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18200 (eval $ac_try) 2>&5
18202 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18203 (exit $ac_status); }; }; then
18204 bfd_cv_have_sys_procfs_type_pr_sigaction64_t
=yes
18206 echo "$as_me: failed program was:" >&5
18207 sed 's/^/| /' conftest.
$ac_ext >&5
18209 bfd_cv_have_sys_procfs_type_pr_sigaction64_t
=no
18212 rm -f conftest.err conftest.
$ac_objext conftest.
$ac_ext
18215 if test $bfd_cv_have_sys_procfs_type_pr_sigaction64_t = yes; then
18217 cat >>confdefs.h
<<\_ACEOF
18218 #define HAVE_PR_SIGACTION64_T 1
18222 echo "$as_me:$LINENO: result: $bfd_cv_have_sys_procfs_type_pr_sigaction64_t" >&5
18223 echo "${ECHO_T}$bfd_cv_have_sys_procfs_type_pr_sigaction64_t" >&6
18225 echo "$as_me:$LINENO: checking for pr_siginfo64_t in sys/procfs.h" >&5
18226 echo $ECHO_N "checking for pr_siginfo64_t in sys/procfs.h... $ECHO_C" >&6
18227 if test "${bfd_cv_have_sys_procfs_type_pr_siginfo64_t+set}" = set; then
18228 echo $ECHO_N "(cached) $ECHO_C" >&6
18230 cat >conftest.
$ac_ext <<_ACEOF
18233 cat confdefs.h
>>conftest.
$ac_ext
18234 cat >>conftest.
$ac_ext <<_ACEOF
18235 /* end confdefs.h. */
18238 #include <sys/procfs.h>
18242 pr_siginfo64_t avar
18247 rm -f conftest.
$ac_objext
18248 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
18249 (eval $ac_compile) 2>conftest.er1
18251 grep -v '^ *+' conftest.er1
>conftest.err
18253 cat conftest.err
>&5
18254 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18255 (exit $ac_status); } &&
18256 { ac_try
='test -z "$ac_c_werror_flag"
18257 || test ! -s conftest.err'
18258 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18259 (eval $ac_try) 2>&5
18261 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18262 (exit $ac_status); }; } &&
18263 { ac_try
='test -s conftest.$ac_objext'
18264 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18265 (eval $ac_try) 2>&5
18267 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18268 (exit $ac_status); }; }; then
18269 bfd_cv_have_sys_procfs_type_pr_siginfo64_t
=yes
18271 echo "$as_me: failed program was:" >&5
18272 sed 's/^/| /' conftest.
$ac_ext >&5
18274 bfd_cv_have_sys_procfs_type_pr_siginfo64_t
=no
18277 rm -f conftest.err conftest.
$ac_objext conftest.
$ac_ext
18280 if test $bfd_cv_have_sys_procfs_type_pr_siginfo64_t = yes; then
18282 cat >>confdefs.h
<<\_ACEOF
18283 #define HAVE_PR_SIGINFO64_T 1
18287 echo "$as_me:$LINENO: result: $bfd_cv_have_sys_procfs_type_pr_siginfo64_t" >&5
18288 echo "${ECHO_T}$bfd_cv_have_sys_procfs_type_pr_siginfo64_t" >&6
18294 if test $bfd_cv_have_sys_procfs_type_prfpregset_t = yes; then
18295 echo "$as_me:$LINENO: checking whether prfpregset_t type is broken" >&5
18296 echo $ECHO_N "checking whether prfpregset_t type is broken... $ECHO_C" >&6
18297 if test "${gdb_cv_prfpregset_t_broken+set}" = set; then
18298 echo $ECHO_N "(cached) $ECHO_C" >&6
18300 if test "$cross_compiling" = yes; then
18301 gdb_cv_prfpregset_t_broken
=yes
18303 cat >conftest.
$ac_ext <<_ACEOF
18306 cat confdefs.h
>>conftest.
$ac_ext
18307 cat >>conftest.
$ac_ext <<_ACEOF
18308 /* end confdefs.h. */
18309 #include <sys/procfs.h>
18312 if (sizeof (prfpregset_t) == sizeof (void *))
18317 rm -f conftest
$ac_exeext
18318 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
18319 (eval $ac_link) 2>&5
18321 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18322 (exit $ac_status); } && { ac_try
='./conftest$ac_exeext'
18323 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18324 (eval $ac_try) 2>&5
18326 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18327 (exit $ac_status); }; }; then
18328 gdb_cv_prfpregset_t_broken
=no
18330 echo "$as_me: program exited with status $ac_status" >&5
18331 echo "$as_me: failed program was:" >&5
18332 sed 's/^/| /' conftest.
$ac_ext >&5
18334 ( exit $ac_status )
18335 gdb_cv_prfpregset_t_broken
=yes
18337 rm -f core
*.core gmon.out bb.out conftest
$ac_exeext conftest.
$ac_objext conftest.
$ac_ext
18341 echo "$as_me:$LINENO: result: $gdb_cv_prfpregset_t_broken" >&5
18342 echo "${ECHO_T}$gdb_cv_prfpregset_t_broken" >&6
18343 if test $gdb_cv_prfpregset_t_broken = yes; then
18345 cat >>confdefs.h
<<\_ACEOF
18346 #define PRFPREGSET_T_BROKEN 1
18353 echo "$as_me:$LINENO: checking for PIOCSET ioctl entry in sys/procfs.h" >&5
18354 echo $ECHO_N "checking for PIOCSET ioctl entry in sys/procfs.h... $ECHO_C" >&6
18355 if test "${gdb_cv_have_procfs_piocset+set}" = set; then
18356 echo $ECHO_N "(cached) $ECHO_C" >&6
18358 cat >conftest.
$ac_ext <<_ACEOF
18361 cat confdefs.h
>>conftest.
$ac_ext
18362 cat >>conftest.
$ac_ext <<_ACEOF
18363 /* end confdefs.h. */
18364 #include <unistd.h>
18365 #include <sys/types.h>
18366 #include <sys/procfs.h>
18373 dummy = ioctl(0, PIOCSET, &dummy);
18379 rm -f conftest.
$ac_objext
18380 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
18381 (eval $ac_compile) 2>conftest.er1
18383 grep -v '^ *+' conftest.er1
>conftest.err
18385 cat conftest.err
>&5
18386 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18387 (exit $ac_status); } &&
18388 { ac_try
='test -z "$ac_c_werror_flag"
18389 || test ! -s conftest.err'
18390 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18391 (eval $ac_try) 2>&5
18393 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18394 (exit $ac_status); }; } &&
18395 { ac_try
='test -s conftest.$ac_objext'
18396 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18397 (eval $ac_try) 2>&5
18399 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18400 (exit $ac_status); }; }; then
18401 gdb_cv_have_procfs_piocset
=yes
18403 echo "$as_me: failed program was:" >&5
18404 sed 's/^/| /' conftest.
$ac_ext >&5
18406 gdb_cv_have_procfs_piocset
=no
18408 rm -f conftest.err conftest.
$ac_objext conftest.
$ac_ext
18411 echo "$as_me:$LINENO: result: $gdb_cv_have_procfs_piocset" >&5
18412 echo "${ECHO_T}$gdb_cv_have_procfs_piocset" >&6
18413 if test $gdb_cv_have_procfs_piocset = yes; then
18415 cat >>confdefs.h
<<\_ACEOF
18416 #define HAVE_PROCFS_PIOCSET 1
18422 if test ${host} = ${target} ; then
18424 echo "$as_me:$LINENO: checking for member l_addr in struct link_map" >&5
18425 echo $ECHO_N "checking for member l_addr in struct link_map... $ECHO_C" >&6
18426 if test "${gdb_cv_have_struct_link_map_with_l_members+set}" = set; then
18427 echo $ECHO_N "(cached) $ECHO_C" >&6
18429 cat >conftest.
$ac_ext <<_ACEOF
18432 cat confdefs.h
>>conftest.
$ac_ext
18433 cat >>conftest.
$ac_ext <<_ACEOF
18434 /* end confdefs.h. */
18439 struct link_map lm; (void) lm.l_addr;
18444 rm -f conftest.
$ac_objext
18445 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
18446 (eval $ac_compile) 2>conftest.er1
18448 grep -v '^ *+' conftest.er1
>conftest.err
18450 cat conftest.err
>&5
18451 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18452 (exit $ac_status); } &&
18453 { ac_try
='test -z "$ac_c_werror_flag"
18454 || test ! -s conftest.err'
18455 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18456 (eval $ac_try) 2>&5
18458 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18459 (exit $ac_status); }; } &&
18460 { ac_try
='test -s conftest.$ac_objext'
18461 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18462 (eval $ac_try) 2>&5
18464 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18465 (exit $ac_status); }; }; then
18466 gdb_cv_have_struct_link_map_with_l_members
=yes
18468 echo "$as_me: failed program was:" >&5
18469 sed 's/^/| /' conftest.
$ac_ext >&5
18471 gdb_cv_have_struct_link_map_with_l_members
=no
18473 rm -f conftest.err conftest.
$ac_objext conftest.
$ac_ext
18476 echo "$as_me:$LINENO: result: $gdb_cv_have_struct_link_map_with_l_members" >&5
18477 echo "${ECHO_T}$gdb_cv_have_struct_link_map_with_l_members" >&6
18478 if test $gdb_cv_have_struct_link_map_with_l_members = yes; then
18480 cat >>confdefs.h
<<\_ACEOF
18481 #define HAVE_STRUCT_LINK_MAP_WITH_L_MEMBERS 1
18487 echo "$as_me:$LINENO: checking for member lm_addr in struct link_map" >&5
18488 echo $ECHO_N "checking for member lm_addr in struct link_map... $ECHO_C" >&6
18489 if test "${gdb_cv_have_struct_link_map_with_lm_members+set}" = set; then
18490 echo $ECHO_N "(cached) $ECHO_C" >&6
18492 cat >conftest.
$ac_ext <<_ACEOF
18495 cat confdefs.h
>>conftest.
$ac_ext
18496 cat >>conftest.
$ac_ext <<_ACEOF
18497 /* end confdefs.h. */
18498 #include <sys/types.h>
18503 struct link_map lm; (void) lm.lm_addr;
18508 rm -f conftest.
$ac_objext
18509 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
18510 (eval $ac_compile) 2>conftest.er1
18512 grep -v '^ *+' conftest.er1
>conftest.err
18514 cat conftest.err
>&5
18515 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18516 (exit $ac_status); } &&
18517 { ac_try
='test -z "$ac_c_werror_flag"
18518 || test ! -s conftest.err'
18519 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18520 (eval $ac_try) 2>&5
18522 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18523 (exit $ac_status); }; } &&
18524 { ac_try
='test -s conftest.$ac_objext'
18525 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18526 (eval $ac_try) 2>&5
18528 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18529 (exit $ac_status); }; }; then
18530 gdb_cv_have_struct_link_map_with_lm_members
=yes
18532 echo "$as_me: failed program was:" >&5
18533 sed 's/^/| /' conftest.
$ac_ext >&5
18535 gdb_cv_have_struct_link_map_with_lm_members
=no
18537 rm -f conftest.err conftest.
$ac_objext conftest.
$ac_ext
18540 echo "$as_me:$LINENO: result: $gdb_cv_have_struct_link_map_with_lm_members" >&5
18541 echo "${ECHO_T}$gdb_cv_have_struct_link_map_with_lm_members" >&6
18542 if test $gdb_cv_have_struct_link_map_with_lm_members = yes; then
18544 cat >>confdefs.h
<<\_ACEOF
18545 #define HAVE_STRUCT_LINK_MAP_WITH_LM_MEMBERS 1
18551 echo "$as_me:$LINENO: checking for member som_addr in struct so_map" >&5
18552 echo $ECHO_N "checking for member som_addr in struct so_map... $ECHO_C" >&6
18553 if test "${gdb_cv_have_struct_so_map_with_som_members+set}" = set; then
18554 echo $ECHO_N "(cached) $ECHO_C" >&6
18556 cat >conftest.
$ac_ext <<_ACEOF
18559 cat confdefs.h
>>conftest.
$ac_ext
18560 cat >>conftest.
$ac_ext <<_ACEOF
18561 /* end confdefs.h. */
18562 #include <sys/types.h>
18563 #ifdef HAVE_NLIST_H
18570 struct so_map lm; (void) lm.som_addr;
18575 rm -f conftest.
$ac_objext
18576 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
18577 (eval $ac_compile) 2>conftest.er1
18579 grep -v '^ *+' conftest.er1
>conftest.err
18581 cat conftest.err
>&5
18582 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18583 (exit $ac_status); } &&
18584 { ac_try
='test -z "$ac_c_werror_flag"
18585 || test ! -s conftest.err'
18586 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18587 (eval $ac_try) 2>&5
18589 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18590 (exit $ac_status); }; } &&
18591 { ac_try
='test -s conftest.$ac_objext'
18592 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18593 (eval $ac_try) 2>&5
18595 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18596 (exit $ac_status); }; }; then
18597 gdb_cv_have_struct_so_map_with_som_members
=yes
18599 echo "$as_me: failed program was:" >&5
18600 sed 's/^/| /' conftest.
$ac_ext >&5
18602 gdb_cv_have_struct_so_map_with_som_members
=no
18604 rm -f conftest.err conftest.
$ac_objext conftest.
$ac_ext
18607 echo "$as_me:$LINENO: result: $gdb_cv_have_struct_so_map_with_som_members" >&5
18608 echo "${ECHO_T}$gdb_cv_have_struct_so_map_with_som_members" >&6
18609 if test $gdb_cv_have_struct_so_map_with_som_members = yes; then
18611 cat >>confdefs.h
<<\_ACEOF
18612 #define HAVE_STRUCT_SO_MAP_WITH_SOM_MEMBERS 1
18618 echo "$as_me:$LINENO: checking for struct link_map32 in sys/link.h" >&5
18619 echo $ECHO_N "checking for struct link_map32 in sys/link.h... $ECHO_C" >&6
18620 if test "${gdb_cv_have_struct_link_map32+set}" = set; then
18621 echo $ECHO_N "(cached) $ECHO_C" >&6
18623 cat >conftest.
$ac_ext <<_ACEOF
18626 cat confdefs.h
>>conftest.
$ac_ext
18627 cat >>conftest.
$ac_ext <<_ACEOF
18628 /* end confdefs.h. */
18630 #include <sys/link.h>
18634 struct link_map32 l;
18639 rm -f conftest.
$ac_objext
18640 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
18641 (eval $ac_compile) 2>conftest.er1
18643 grep -v '^ *+' conftest.er1
>conftest.err
18645 cat conftest.err
>&5
18646 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18647 (exit $ac_status); } &&
18648 { ac_try
='test -z "$ac_c_werror_flag"
18649 || test ! -s conftest.err'
18650 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18651 (eval $ac_try) 2>&5
18653 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18654 (exit $ac_status); }; } &&
18655 { ac_try
='test -s conftest.$ac_objext'
18656 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18657 (eval $ac_try) 2>&5
18659 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18660 (exit $ac_status); }; }; then
18661 gdb_cv_have_struct_link_map32
=yes
18663 echo "$as_me: failed program was:" >&5
18664 sed 's/^/| /' conftest.
$ac_ext >&5
18666 gdb_cv_have_struct_link_map32
=no
18668 rm -f conftest.err conftest.
$ac_objext conftest.
$ac_ext
18671 echo "$as_me:$LINENO: result: $gdb_cv_have_struct_link_map32" >&5
18672 echo "${ECHO_T}$gdb_cv_have_struct_link_map32" >&6
18673 if test $gdb_cv_have_struct_link_map32 = yes; then
18675 cat >>confdefs.h
<<\_ACEOF
18676 #define HAVE_STRUCT_LINK_MAP32 1
18680 cat >>confdefs.h
<<\_ACEOF
18681 #define _SYSCALL32 1
18687 # Check if the compiler supports the `long long' type.
18689 echo "$as_me:$LINENO: checking for long long support in compiler" >&5
18690 echo $ECHO_N "checking for long long support in compiler... $ECHO_C" >&6
18691 if test "${gdb_cv_c_long_long+set}" = set; then
18692 echo $ECHO_N "(cached) $ECHO_C" >&6
18694 cat >conftest.
$ac_ext <<_ACEOF
18697 cat confdefs.h
>>conftest.
$ac_ext
18698 cat >>conftest.
$ac_ext <<_ACEOF
18699 /* end confdefs.h. */
18700 extern long long foo;
18704 switch (foo & 2) { case 0: return 1; }
18709 rm -f conftest.
$ac_objext
18710 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
18711 (eval $ac_compile) 2>conftest.er1
18713 grep -v '^ *+' conftest.er1
>conftest.err
18715 cat conftest.err
>&5
18716 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18717 (exit $ac_status); } &&
18718 { ac_try
='test -z "$ac_c_werror_flag"
18719 || test ! -s conftest.err'
18720 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18721 (eval $ac_try) 2>&5
18723 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18724 (exit $ac_status); }; } &&
18725 { ac_try
='test -s conftest.$ac_objext'
18726 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18727 (eval $ac_try) 2>&5
18729 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18730 (exit $ac_status); }; }; then
18731 gdb_cv_c_long_long
=yes
18733 echo "$as_me: failed program was:" >&5
18734 sed 's/^/| /' conftest.
$ac_ext >&5
18736 gdb_cv_c_long_long
=no
18738 rm -f conftest.err conftest.
$ac_objext conftest.
$ac_ext
18740 echo "$as_me:$LINENO: result: $gdb_cv_c_long_long" >&5
18741 echo "${ECHO_T}$gdb_cv_c_long_long" >&6
18742 if test $gdb_cv_c_long_long = yes; then
18744 cat >>confdefs.h
<<\_ACEOF
18745 #define CC_HAS_LONG_LONG 1
18750 # Check if the compiler and runtime support printing long longs.
18752 echo "$as_me:$LINENO: checking for long long support in printf" >&5
18753 echo $ECHO_N "checking for long long support in printf... $ECHO_C" >&6
18754 if test "${gdb_cv_printf_has_long_long+set}" = set; then
18755 echo $ECHO_N "(cached) $ECHO_C" >&6
18757 if test "$cross_compiling" = yes; then
18758 gdb_cv_printf_has_long_long
=no
18760 cat >conftest.
$ac_ext <<_ACEOF
18763 cat confdefs.h
>>conftest.
$ac_ext
18764 cat >>conftest.
$ac_ext <<_ACEOF
18765 /* end confdefs.h. */
18766 $ac_includes_default
18772 l = (l << 16) + 0x0123;
18773 l = (l << 16) + 0x4567;
18774 l = (l << 16) + 0x89ab;
18775 l = (l << 16) + 0xcdef;
18776 sprintf (buf, "0x%016llx", l);
18777 return (strcmp ("0x0123456789abcdef", buf));
18782 rm -f conftest
$ac_exeext
18783 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
18784 (eval $ac_link) 2>&5
18786 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18787 (exit $ac_status); } && { ac_try
='./conftest$ac_exeext'
18788 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18789 (eval $ac_try) 2>&5
18791 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18792 (exit $ac_status); }; }; then
18793 gdb_cv_printf_has_long_long
=yes
18795 echo "$as_me: program exited with status $ac_status" >&5
18796 echo "$as_me: failed program was:" >&5
18797 sed 's/^/| /' conftest.
$ac_ext >&5
18799 ( exit $ac_status )
18800 gdb_cv_printf_has_long_long
=no
18802 rm -f core
*.core gmon.out bb.out conftest
$ac_exeext conftest.
$ac_objext conftest.
$ac_ext
18805 echo "$as_me:$LINENO: result: $gdb_cv_printf_has_long_long" >&5
18806 echo "${ECHO_T}$gdb_cv_printf_has_long_long" >&6
18807 if test $gdb_cv_printf_has_long_long = yes; then
18809 cat >>confdefs.h
<<\_ACEOF
18810 #define PRINTF_HAS_LONG_LONG 1
18815 # Check if the compiler and runtime support printing decfloats.
18817 echo "$as_me:$LINENO: checking for decfloat support in printf" >&5
18818 echo $ECHO_N "checking for decfloat support in printf... $ECHO_C" >&6
18819 if test "${gdb_cv_printf_has_decfloat+set}" = set; then
18820 echo $ECHO_N "(cached) $ECHO_C" >&6
18822 if test "$cross_compiling" = yes; then
18823 gdb_cv_printf_has_decfloat
=no
18825 cat >conftest.
$ac_ext <<_ACEOF
18828 cat confdefs.h
>>conftest.
$ac_ext
18829 cat >>conftest.
$ac_ext <<_ACEOF
18830 /* end confdefs.h. */
18831 $ac_includes_default
18836 _Decimal32 d32 = 1.2345df;
18837 _Decimal64 d64 = 1.2345dd;
18838 _Decimal128 d128 = 1.2345dl;
18839 sprintf (buf, "Decimal32: %H\nDecimal64: %D\nDecimal128: %DD", d32, d64, d128);
18840 return (strcmp ("Decimal32: 1.2345\nDecimal64: 1.2345\nDecimal128: 1.2345", buf));
18845 rm -f conftest
$ac_exeext
18846 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
18847 (eval $ac_link) 2>&5
18849 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18850 (exit $ac_status); } && { ac_try
='./conftest$ac_exeext'
18851 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18852 (eval $ac_try) 2>&5
18854 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18855 (exit $ac_status); }; }; then
18856 gdb_cv_printf_has_decfloat
=yes
18858 echo "$as_me: program exited with status $ac_status" >&5
18859 echo "$as_me: failed program was:" >&5
18860 sed 's/^/| /' conftest.
$ac_ext >&5
18862 ( exit $ac_status )
18863 gdb_cv_printf_has_decfloat
=no
18865 rm -f core
*.core gmon.out bb.out conftest
$ac_exeext conftest.
$ac_objext conftest.
$ac_ext
18868 echo "$as_me:$LINENO: result: $gdb_cv_printf_has_decfloat" >&5
18869 echo "${ECHO_T}$gdb_cv_printf_has_decfloat" >&6
18870 if test $gdb_cv_printf_has_decfloat = yes; then
18872 cat >>confdefs.h
<<\_ACEOF
18873 #define PRINTF_HAS_DECFLOAT 1
18878 # Check if the compiler supports the `long double' type. We can't use
18879 # AC_C_LONG_DOUBLE because that one does additional checks on the
18880 # constants defined in <float.h> that fail on some systems,
18881 # e.g. FreeBSD/i386 4.7 and OpenBSD/i386 3.6.
18883 echo "$as_me:$LINENO: checking for long double support in compiler" >&5
18884 echo $ECHO_N "checking for long double support in compiler... $ECHO_C" >&6
18885 if test "${gdb_cv_c_long_double+set}" = set; then
18886 echo $ECHO_N "(cached) $ECHO_C" >&6
18888 cat >conftest.
$ac_ext <<_ACEOF
18891 cat confdefs.h
>>conftest.
$ac_ext
18892 cat >>conftest.
$ac_ext <<_ACEOF
18893 /* end confdefs.h. */
18896 rm -f conftest.
$ac_objext
18897 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
18898 (eval $ac_compile) 2>conftest.er1
18900 grep -v '^ *+' conftest.er1
>conftest.err
18902 cat conftest.err
>&5
18903 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18904 (exit $ac_status); } &&
18905 { ac_try
='test -z "$ac_c_werror_flag"
18906 || test ! -s conftest.err'
18907 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18908 (eval $ac_try) 2>&5
18910 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18911 (exit $ac_status); }; } &&
18912 { ac_try
='test -s conftest.$ac_objext'
18913 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18914 (eval $ac_try) 2>&5
18916 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18917 (exit $ac_status); }; }; then
18918 gdb_cv_c_long_double
=yes
18920 echo "$as_me: failed program was:" >&5
18921 sed 's/^/| /' conftest.
$ac_ext >&5
18923 gdb_cv_c_long_double
=no
18925 rm -f conftest.err conftest.
$ac_objext conftest.
$ac_ext
18927 echo "$as_me:$LINENO: result: $gdb_cv_c_long_double" >&5
18928 echo "${ECHO_T}$gdb_cv_c_long_double" >&6
18929 if test $gdb_cv_c_long_double = yes; then
18931 cat >>confdefs.h
<<\_ACEOF
18932 #define HAVE_LONG_DOUBLE 1
18937 # Check if the compiler and runtime support printing long doubles.
18939 echo "$as_me:$LINENO: checking for long double support in printf" >&5
18940 echo $ECHO_N "checking for long double support in printf... $ECHO_C" >&6
18941 if test "${gdb_cv_printf_has_long_double+set}" = set; then
18942 echo $ECHO_N "(cached) $ECHO_C" >&6
18944 if test "$cross_compiling" = yes; then
18945 gdb_cv_printf_has_long_double
=no
18947 cat >conftest.
$ac_ext <<_ACEOF
18950 cat confdefs.h
>>conftest.
$ac_ext
18951 cat >>conftest.
$ac_ext <<_ACEOF
18952 /* end confdefs.h. */
18953 $ac_includes_default
18958 long double f = 3.141592653;
18959 sprintf (buf, "%Lg", f);
18960 return (strncmp ("3.14159", buf, 7));
18965 rm -f conftest
$ac_exeext
18966 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
18967 (eval $ac_link) 2>&5
18969 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18970 (exit $ac_status); } && { ac_try
='./conftest$ac_exeext'
18971 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18972 (eval $ac_try) 2>&5
18974 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18975 (exit $ac_status); }; }; then
18976 gdb_cv_printf_has_long_double
=yes
18978 echo "$as_me: program exited with status $ac_status" >&5
18979 echo "$as_me: failed program was:" >&5
18980 sed 's/^/| /' conftest.
$ac_ext >&5
18982 ( exit $ac_status )
18983 gdb_cv_printf_has_long_double
=no
18985 rm -f core
*.core gmon.out bb.out conftest
$ac_exeext conftest.
$ac_objext conftest.
$ac_ext
18988 echo "$as_me:$LINENO: result: $gdb_cv_printf_has_long_double" >&5
18989 echo "${ECHO_T}$gdb_cv_printf_has_long_double" >&6
18990 if test $gdb_cv_printf_has_long_double = yes; then
18992 cat >>confdefs.h
<<\_ACEOF
18993 #define PRINTF_HAS_LONG_DOUBLE 1
18998 # Check if the compiler and runtime support scanning long doubles.
19000 echo "$as_me:$LINENO: checking for long double support in scanf" >&5
19001 echo $ECHO_N "checking for long double support in scanf... $ECHO_C" >&6
19002 if test "${gdb_cv_scanf_has_long_double+set}" = set; then
19003 echo $ECHO_N "(cached) $ECHO_C" >&6
19005 if test "$cross_compiling" = yes; then
19006 gdb_cv_scanf_has_long_double
=no
19008 cat >conftest.
$ac_ext <<_ACEOF
19011 cat confdefs.h
>>conftest.
$ac_ext
19012 cat >>conftest.
$ac_ext <<_ACEOF
19013 /* end confdefs.h. */
19018 char *buf = "3.141592653";
19020 sscanf (buf, "%Lg", &f);
19021 return !(f > 3.14159 && f < 3.14160);
19026 rm -f conftest
$ac_exeext
19027 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
19028 (eval $ac_link) 2>&5
19030 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19031 (exit $ac_status); } && { ac_try
='./conftest$ac_exeext'
19032 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19033 (eval $ac_try) 2>&5
19035 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19036 (exit $ac_status); }; }; then
19037 gdb_cv_scanf_has_long_double
=yes
19039 echo "$as_me: program exited with status $ac_status" >&5
19040 echo "$as_me: failed program was:" >&5
19041 sed 's/^/| /' conftest.
$ac_ext >&5
19043 ( exit $ac_status )
19044 gdb_cv_scanf_has_long_double
=no
19046 rm -f core
*.core gmon.out bb.out conftest
$ac_exeext conftest.
$ac_objext conftest.
$ac_ext
19049 echo "$as_me:$LINENO: result: $gdb_cv_scanf_has_long_double" >&5
19050 echo "${ECHO_T}$gdb_cv_scanf_has_long_double" >&6
19051 if test $gdb_cv_scanf_has_long_double = yes; then
19053 cat >>confdefs.h
<<\_ACEOF
19054 #define SCANF_HAS_LONG_DOUBLE 1
19061 echo "$as_me:$LINENO: checking for -bbigtoc option" >&5
19062 echo $ECHO_N "checking for -bbigtoc option... $ECHO_C" >&6
19063 if test "${gdb_cv_bigtoc+set}" = set; then
19064 echo $ECHO_N "(cached) $ECHO_C" >&6
19067 SAVE_LDFLAGS
=$LDFLAGS
19070 yes) gdb_cv_bigtoc
=-Wl,-bbigtoc ;;
19071 *) gdb_cv_bigtoc
=-bbigtoc ;;
19074 LDFLAGS
=$LDFLAGS\
$gdb_cv_bigtoc
19075 cat >conftest.
$ac_ext <<_ACEOF
19078 cat confdefs.h
>>conftest.
$ac_ext
19079 cat >>conftest.
$ac_ext <<_ACEOF
19080 /* end confdefs.h. */
19090 rm -f conftest.
$ac_objext conftest
$ac_exeext
19091 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
19092 (eval $ac_link) 2>conftest.er1
19094 grep -v '^ *+' conftest.er1
>conftest.err
19096 cat conftest.err
>&5
19097 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19098 (exit $ac_status); } &&
19099 { ac_try
='test -z "$ac_c_werror_flag"
19100 || test ! -s conftest.err'
19101 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19102 (eval $ac_try) 2>&5
19104 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19105 (exit $ac_status); }; } &&
19106 { ac_try
='test -s conftest$ac_exeext'
19107 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19108 (eval $ac_try) 2>&5
19110 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19111 (exit $ac_status); }; }; then
19114 echo "$as_me: failed program was:" >&5
19115 sed 's/^/| /' conftest.
$ac_ext >&5
19119 rm -f conftest.err conftest.
$ac_objext \
19120 conftest
$ac_exeext conftest.
$ac_ext
19121 LDFLAGS
="${SAVE_LDFLAGS}"
19124 echo "$as_me:$LINENO: result: $gdb_cv_bigtoc" >&5
19125 echo "${ECHO_T}$gdb_cv_bigtoc" >&6
19126 CONFIG_LDFLAGS
="${CONFIG_LDFLAGS} ${gdb_cv_bigtoc}"
19132 if test ${build} = ${host} -a ${host} = ${target} ; then
19135 echo "$as_me:$LINENO: checking for HPUX/OSF thread support" >&5
19136 echo $ECHO_N "checking for HPUX/OSF thread support... $ECHO_C" >&6
19137 if test -f /usr
/include
/dce
/cma_config.h
; then
19138 if test "$GCC" = "yes" ; then
19139 echo "$as_me:$LINENO: result: yes" >&5
19140 echo "${ECHO_T}yes" >&6
19142 cat >>confdefs.h
<<\_ACEOF
19143 #define HAVE_HPUX_THREAD_SUPPORT 1
19146 CONFIG_OBS
="${CONFIG_OBS} hpux-thread.o"
19147 CONFIG_SRCS
="${CONFIG_SRCS} hpux-thread.c"
19149 echo "$as_me:$LINENO: result: no (suppressed because you are not using GCC)" >&5
19150 echo "${ECHO_T}no (suppressed because you are not using GCC)" >&6
19153 echo "$as_me:$LINENO: result: no" >&5
19154 echo "${ECHO_T}no" >&6
19158 # See if thread_db library is around for Solaris thread debugging.
19159 # Note that we must explicitly test for version 1 of the library
19160 # because version 0 (present on Solaris 2.4 or earlier) doesn't have
19162 echo "$as_me:$LINENO: checking for Solaris thread debugging library" >&5
19163 echo $ECHO_N "checking for Solaris thread debugging library... $ECHO_C" >&6
19164 if test -f /usr
/lib
/libthread_db.so
.1 ; then
19165 echo "$as_me:$LINENO: result: yes" >&5
19166 echo "${ECHO_T}yes" >&6
19168 cat >>confdefs.h
<<\_ACEOF
19169 #define HAVE_THREAD_DB_LIB 1
19172 CONFIG_OBS
="${CONFIG_OBS} sol-thread.o"
19173 CONFIG_SRCS
="${CONFIG_SRCS} sol-thread.c"
19175 echo "$as_me:$LINENO: checking for dlopen in -ldl" >&5
19176 echo $ECHO_N "checking for dlopen in -ldl... $ECHO_C" >&6
19177 if test "${ac_cv_lib_dl_dlopen+set}" = set; then
19178 echo $ECHO_N "(cached) $ECHO_C" >&6
19180 ac_check_lib_save_LIBS
=$LIBS
19182 cat >conftest.
$ac_ext <<_ACEOF
19185 cat confdefs.h
>>conftest.
$ac_ext
19186 cat >>conftest.
$ac_ext <<_ACEOF
19187 /* end confdefs.h. */
19189 /* Override any gcc2 internal prototype to avoid an error. */
19193 /* We use char because int might match the return type of a gcc2
19194 builtin and then its argument prototype would still apply. */
19204 rm -f conftest.
$ac_objext conftest
$ac_exeext
19205 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
19206 (eval $ac_link) 2>conftest.er1
19208 grep -v '^ *+' conftest.er1
>conftest.err
19210 cat conftest.err
>&5
19211 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19212 (exit $ac_status); } &&
19213 { ac_try
='test -z "$ac_c_werror_flag"
19214 || test ! -s conftest.err'
19215 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19216 (eval $ac_try) 2>&5
19218 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19219 (exit $ac_status); }; } &&
19220 { ac_try
='test -s conftest$ac_exeext'
19221 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19222 (eval $ac_try) 2>&5
19224 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19225 (exit $ac_status); }; }; then
19226 ac_cv_lib_dl_dlopen
=yes
19228 echo "$as_me: failed program was:" >&5
19229 sed 's/^/| /' conftest.
$ac_ext >&5
19231 ac_cv_lib_dl_dlopen
=no
19233 rm -f conftest.err conftest.
$ac_objext \
19234 conftest
$ac_exeext conftest.
$ac_ext
19235 LIBS
=$ac_check_lib_save_LIBS
19237 echo "$as_me:$LINENO: result: $ac_cv_lib_dl_dlopen" >&5
19238 echo "${ECHO_T}$ac_cv_lib_dl_dlopen" >&6
19239 if test $ac_cv_lib_dl_dlopen = yes; then
19240 cat >>confdefs.h
<<_ACEOF
19241 #define HAVE_LIBDL 1
19248 if test "$GCC" = "yes" ; then
19249 # The GNU linker requires the -export-dynamic option to make
19250 # all symbols visible in the dynamic symbol table.
19251 hold_ldflags
=$LDFLAGS
19252 echo "$as_me:$LINENO: checking for the ld -export-dynamic flag" >&5
19253 echo $ECHO_N "checking for the ld -export-dynamic flag... $ECHO_C" >&6
19254 LDFLAGS
="${LDFLAGS} -Wl,-export-dynamic"
19255 cat >conftest.
$ac_ext <<_ACEOF
19258 cat confdefs.h
>>conftest.
$ac_ext
19259 cat >>conftest.
$ac_ext <<_ACEOF
19260 /* end confdefs.h. */
19270 rm -f conftest.
$ac_objext conftest
$ac_exeext
19271 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
19272 (eval $ac_link) 2>conftest.er1
19274 grep -v '^ *+' conftest.er1
>conftest.err
19276 cat conftest.err
>&5
19277 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19278 (exit $ac_status); } &&
19279 { ac_try
='test -z "$ac_c_werror_flag"
19280 || test ! -s conftest.err'
19281 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19282 (eval $ac_try) 2>&5
19284 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19285 (exit $ac_status); }; } &&
19286 { ac_try
='test -s conftest$ac_exeext'
19287 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19288 (eval $ac_try) 2>&5
19290 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19291 (exit $ac_status); }; }; then
19294 echo "$as_me: failed program was:" >&5
19295 sed 's/^/| /' conftest.
$ac_ext >&5
19299 rm -f conftest.err conftest.
$ac_objext \
19300 conftest
$ac_exeext conftest.
$ac_ext
19301 LDFLAGS
=$hold_ldflags
19302 echo "$as_me:$LINENO: result: $found" >&5
19303 echo "${ECHO_T}$found" >&6
19304 if test $found = yes; then
19305 CONFIG_LDFLAGS
="${CONFIG_LDFLAGS} -Wl,-export-dynamic"
19308 # Sun randomly tweaked the prototypes in <proc_service.h>
19310 echo "$as_me:$LINENO: checking if <proc_service.h> is old" >&5
19311 echo $ECHO_N "checking if <proc_service.h> is old... $ECHO_C" >&6
19312 if test "${gdb_cv_proc_service_is_old+set}" = set; then
19313 echo $ECHO_N "(cached) $ECHO_C" >&6
19316 cat >conftest.
$ac_ext <<_ACEOF
19319 cat confdefs.h
>>conftest.
$ac_ext
19320 cat >>conftest.
$ac_ext <<_ACEOF
19321 /* end confdefs.h. */
19323 #include <proc_service.h>
19324 ps_err_e ps_pdwrite
19325 (struct ps_prochandle*, psaddr_t, const void*, size_t);
19335 rm -f conftest.
$ac_objext
19336 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
19337 (eval $ac_compile) 2>conftest.er1
19339 grep -v '^ *+' conftest.er1
>conftest.err
19341 cat conftest.err
>&5
19342 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19343 (exit $ac_status); } &&
19344 { ac_try
='test -z "$ac_c_werror_flag"
19345 || test ! -s conftest.err'
19346 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19347 (eval $ac_try) 2>&5
19349 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19350 (exit $ac_status); }; } &&
19351 { ac_try
='test -s conftest.$ac_objext'
19352 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19353 (eval $ac_try) 2>&5
19355 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19356 (exit $ac_status); }; }; then
19357 gdb_cv_proc_service_is_old
=no
19359 echo "$as_me: failed program was:" >&5
19360 sed 's/^/| /' conftest.
$ac_ext >&5
19362 gdb_cv_proc_service_is_old
=yes
19364 rm -f conftest.err conftest.
$ac_objext conftest.
$ac_ext
19368 echo "$as_me:$LINENO: result: $gdb_cv_proc_service_is_old" >&5
19369 echo "${ECHO_T}$gdb_cv_proc_service_is_old" >&6
19370 if test $gdb_cv_proc_service_is_old = yes; then
19372 cat >>confdefs.h
<<\_ACEOF
19373 #define PROC_SERVICE_IS_OLD 1
19378 echo "$as_me:$LINENO: result: no" >&5
19379 echo "${ECHO_T}no" >&6
19383 echo "$as_me:$LINENO: checking for AiX thread debugging library" >&5
19384 echo $ECHO_N "checking for AiX thread debugging library... $ECHO_C" >&6
19385 if test "${gdb_cv_have_aix_thread_debug+set}" = set; then
19386 echo $ECHO_N "(cached) $ECHO_C" >&6
19388 cat >conftest.
$ac_ext <<_ACEOF
19391 cat confdefs.h
>>conftest.
$ac_ext
19392 cat >>conftest.
$ac_ext <<_ACEOF
19393 /* end confdefs.h. */
19394 #include <sys/pthdebug.h>
19398 #ifndef PTHDB_VERSION_3
19405 rm -f conftest.
$ac_objext
19406 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
19407 (eval $ac_compile) 2>conftest.er1
19409 grep -v '^ *+' conftest.er1
>conftest.err
19411 cat conftest.err
>&5
19412 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19413 (exit $ac_status); } &&
19414 { ac_try
='test -z "$ac_c_werror_flag"
19415 || test ! -s conftest.err'
19416 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19417 (eval $ac_try) 2>&5
19419 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19420 (exit $ac_status); }; } &&
19421 { ac_try
='test -s conftest.$ac_objext'
19422 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19423 (eval $ac_try) 2>&5
19425 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19426 (exit $ac_status); }; }; then
19427 gdb_cv_have_aix_thread_debug
=yes
19429 echo "$as_me: failed program was:" >&5
19430 sed 's/^/| /' conftest.
$ac_ext >&5
19432 gdb_cv_have_aix_thread_debug
=no
19434 rm -f conftest.err conftest.
$ac_objext conftest.
$ac_ext
19437 echo "$as_me:$LINENO: result: $gdb_cv_have_aix_thread_debug" >&5
19438 echo "${ECHO_T}$gdb_cv_have_aix_thread_debug" >&6
19439 if test $gdb_cv_have_aix_thread_debug = yes; then
19440 CONFIG_SRCS
="${CONFIG_SRCS} aix-thread.c"
19441 CONFIG_OBS
="${CONFIG_OBS} aix-thread.o"
19442 CONFIG_LDFLAGS
="${CONFIG_LDFLAGS} -lpthdebug"
19449 if test "x$ac_cv_header_thread_db_h" = "xyes"; then
19450 echo "$as_me:$LINENO: checking whether <thread_db.h> has TD_NOTALLOC" >&5
19451 echo $ECHO_N "checking whether <thread_db.h> has TD_NOTALLOC... $ECHO_C" >&6
19452 if test "${gdb_cv_thread_db_h_has_td_notalloc+set}" = set; then
19453 echo $ECHO_N "(cached) $ECHO_C" >&6
19455 cat >conftest.
$ac_ext <<_ACEOF
19458 cat confdefs.h
>>conftest.
$ac_ext
19459 cat >>conftest.
$ac_ext <<_ACEOF
19460 /* end confdefs.h. */
19461 #include <thread_db.h>
19465 int i = TD_NOTALLOC;
19470 rm -f conftest.
$ac_objext
19471 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
19472 (eval $ac_compile) 2>conftest.er1
19474 grep -v '^ *+' conftest.er1
>conftest.err
19476 cat conftest.err
>&5
19477 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19478 (exit $ac_status); } &&
19479 { ac_try
='test -z "$ac_c_werror_flag"
19480 || test ! -s conftest.err'
19481 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19482 (eval $ac_try) 2>&5
19484 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19485 (exit $ac_status); }; } &&
19486 { ac_try
='test -s conftest.$ac_objext'
19487 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19488 (eval $ac_try) 2>&5
19490 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19491 (exit $ac_status); }; }; then
19492 gdb_cv_thread_db_h_has_td_notalloc
=yes
19494 echo "$as_me: failed program was:" >&5
19495 sed 's/^/| /' conftest.
$ac_ext >&5
19497 gdb_cv_thread_db_h_has_td_notalloc
=no
19500 rm -f conftest.err conftest.
$ac_objext conftest.
$ac_ext
19503 echo "$as_me:$LINENO: result: $gdb_cv_thread_db_h_has_td_notalloc" >&5
19504 echo "${ECHO_T}$gdb_cv_thread_db_h_has_td_notalloc" >&6
19505 echo "$as_me:$LINENO: checking whether <thread_db.h> has TD_VERSION" >&5
19506 echo $ECHO_N "checking whether <thread_db.h> has TD_VERSION... $ECHO_C" >&6
19507 if test "${gdb_cv_thread_db_h_has_td_version+set}" = set; then
19508 echo $ECHO_N "(cached) $ECHO_C" >&6
19510 cat >conftest.
$ac_ext <<_ACEOF
19513 cat confdefs.h
>>conftest.
$ac_ext
19514 cat >>conftest.
$ac_ext <<_ACEOF
19515 /* end confdefs.h. */
19516 #include <thread_db.h>
19520 int i = TD_VERSION;
19525 rm -f conftest.
$ac_objext
19526 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
19527 (eval $ac_compile) 2>conftest.er1
19529 grep -v '^ *+' conftest.er1
>conftest.err
19531 cat conftest.err
>&5
19532 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19533 (exit $ac_status); } &&
19534 { ac_try
='test -z "$ac_c_werror_flag"
19535 || test ! -s conftest.err'
19536 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19537 (eval $ac_try) 2>&5
19539 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19540 (exit $ac_status); }; } &&
19541 { ac_try
='test -s conftest.$ac_objext'
19542 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19543 (eval $ac_try) 2>&5
19545 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19546 (exit $ac_status); }; }; then
19547 gdb_cv_thread_db_h_has_td_version
=yes
19549 echo "$as_me: failed program was:" >&5
19550 sed 's/^/| /' conftest.
$ac_ext >&5
19552 gdb_cv_thread_db_h_has_td_version
=no
19555 rm -f conftest.err conftest.
$ac_objext conftest.
$ac_ext
19558 echo "$as_me:$LINENO: result: $gdb_cv_thread_db_h_has_td_version" >&5
19559 echo "${ECHO_T}$gdb_cv_thread_db_h_has_td_version" >&6
19560 echo "$as_me:$LINENO: checking whether <thread_db.h> has TD_NOTLS" >&5
19561 echo $ECHO_N "checking whether <thread_db.h> has TD_NOTLS... $ECHO_C" >&6
19562 if test "${gdb_cv_thread_db_h_has_td_notls+set}" = set; then
19563 echo $ECHO_N "(cached) $ECHO_C" >&6
19565 cat >conftest.
$ac_ext <<_ACEOF
19568 cat confdefs.h
>>conftest.
$ac_ext
19569 cat >>conftest.
$ac_ext <<_ACEOF
19570 /* end confdefs.h. */
19571 #include <thread_db.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 gdb_cv_thread_db_h_has_td_notls
=yes
19604 echo "$as_me: failed program was:" >&5
19605 sed 's/^/| /' conftest.
$ac_ext >&5
19607 gdb_cv_thread_db_h_has_td_notls
=no
19610 rm -f conftest.err conftest.
$ac_objext conftest.
$ac_ext
19613 echo "$as_me:$LINENO: result: $gdb_cv_thread_db_h_has_td_notls" >&5
19614 echo "${ECHO_T}$gdb_cv_thread_db_h_has_td_notls" >&6
19616 if test "x$gdb_cv_thread_db_h_has_td_notalloc" = "xyes"; then
19618 cat >>confdefs.h
<<\_ACEOF
19619 #define THREAD_DB_HAS_TD_NOTALLOC 1
19623 if test "x$gdb_cv_thread_db_h_has_td_version" = "xyes"; then
19625 cat >>confdefs.h
<<\_ACEOF
19626 #define THREAD_DB_HAS_TD_VERSION 1
19630 if test "x$gdb_cv_thread_db_h_has_td_notls" = "xyes"; then
19632 cat >>confdefs.h
<<\_ACEOF
19633 #define THREAD_DB_HAS_TD_NOTLS 1
19638 if test "x$ac_cv_header_sys_syscall_h" = "xyes"; then
19639 echo "$as_me:$LINENO: checking whether <sys/syscall.h> has __NR_tkill" >&5
19640 echo $ECHO_N "checking whether <sys/syscall.h> has __NR_tkill... $ECHO_C" >&6
19641 if test "${gdb_cv_sys_syscall_h_has_tkill+set}" = set; then
19642 echo $ECHO_N "(cached) $ECHO_C" >&6
19644 cat >conftest.
$ac_ext <<_ACEOF
19647 cat confdefs.h
>>conftest.
$ac_ext
19648 cat >>conftest.
$ac_ext <<_ACEOF
19649 /* end confdefs.h. */
19650 #include <sys/syscall.h>
19654 int i = __NR_tkill;
19659 rm -f conftest.
$ac_objext
19660 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
19661 (eval $ac_compile) 2>conftest.er1
19663 grep -v '^ *+' conftest.er1
>conftest.err
19665 cat conftest.err
>&5
19666 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19667 (exit $ac_status); } &&
19668 { ac_try
='test -z "$ac_c_werror_flag"
19669 || test ! -s conftest.err'
19670 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19671 (eval $ac_try) 2>&5
19673 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19674 (exit $ac_status); }; } &&
19675 { ac_try
='test -s conftest.$ac_objext'
19676 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19677 (eval $ac_try) 2>&5
19679 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19680 (exit $ac_status); }; }; then
19681 gdb_cv_sys_syscall_h_has_tkill
=yes
19683 echo "$as_me: failed program was:" >&5
19684 sed 's/^/| /' conftest.
$ac_ext >&5
19686 gdb_cv_sys_syscall_h_has_tkill
=no
19689 rm -f conftest.err conftest.
$ac_objext conftest.
$ac_ext
19692 echo "$as_me:$LINENO: result: $gdb_cv_sys_syscall_h_has_tkill" >&5
19693 echo "${ECHO_T}$gdb_cv_sys_syscall_h_has_tkill" >&6
19695 if test "x$gdb_cv_sys_syscall_h_has_tkill" = "xyes" && test "x$ac_cv_func_syscall" = "xyes"; then
19697 cat >>confdefs.h
<<\_ACEOF
19698 #define HAVE_TKILL_SYSCALL 1
19703 echo "$as_me:$LINENO: checking whether ADDR_NO_RANDOMIZE is declared" >&5
19704 echo $ECHO_N "checking whether ADDR_NO_RANDOMIZE is declared... $ECHO_C" >&6
19705 if test "${ac_cv_have_decl_ADDR_NO_RANDOMIZE+set}" = set; then
19706 echo $ECHO_N "(cached) $ECHO_C" >&6
19708 cat >conftest.
$ac_ext <<_ACEOF
19711 cat confdefs.h
>>conftest.
$ac_ext
19712 cat >>conftest.
$ac_ext <<_ACEOF
19713 /* end confdefs.h. */
19714 #include <sys/personality.h>
19719 #ifndef ADDR_NO_RANDOMIZE
19720 char *p = (char *) ADDR_NO_RANDOMIZE;
19727 rm -f conftest.
$ac_objext
19728 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
19729 (eval $ac_compile) 2>conftest.er1
19731 grep -v '^ *+' conftest.er1
>conftest.err
19733 cat conftest.err
>&5
19734 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19735 (exit $ac_status); } &&
19736 { ac_try
='test -z "$ac_c_werror_flag"
19737 || test ! -s conftest.err'
19738 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19739 (eval $ac_try) 2>&5
19741 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19742 (exit $ac_status); }; } &&
19743 { ac_try
='test -s conftest.$ac_objext'
19744 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19745 (eval $ac_try) 2>&5
19747 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19748 (exit $ac_status); }; }; then
19749 ac_cv_have_decl_ADDR_NO_RANDOMIZE
=yes
19751 echo "$as_me: failed program was:" >&5
19752 sed 's/^/| /' conftest.
$ac_ext >&5
19754 ac_cv_have_decl_ADDR_NO_RANDOMIZE
=no
19756 rm -f conftest.err conftest.
$ac_objext conftest.
$ac_ext
19758 echo "$as_me:$LINENO: result: $ac_cv_have_decl_ADDR_NO_RANDOMIZE" >&5
19759 echo "${ECHO_T}$ac_cv_have_decl_ADDR_NO_RANDOMIZE" >&6
19760 if test $ac_cv_have_decl_ADDR_NO_RANDOMIZE = yes; then
19762 cat >>confdefs.h
<<_ACEOF
19763 #define HAVE_DECL_ADDR_NO_RANDOMIZE 1
19768 cat >>confdefs.h
<<_ACEOF
19769 #define HAVE_DECL_ADDR_NO_RANDOMIZE 0
19777 if test "$cross_compiling" = yes; then
19778 cat >conftest.
$ac_ext <<_ACEOF
19781 cat confdefs.h
>>conftest.
$ac_ext
19782 cat >>conftest.
$ac_ext <<_ACEOF
19783 /* end confdefs.h. */
19784 #include <sys/personality.h>
19789 # if !HAVE_DECL_ADDR_NO_RANDOMIZE
19790 # define ADDR_NO_RANDOMIZE 0x0040000
19792 /* Test the flag could be set and stays set. */
19793 personality (personality (0xffffffff) | ADDR_NO_RANDOMIZE);
19794 if (!(personality (personality (0xffffffff)) & ADDR_NO_RANDOMIZE))
19800 rm -f conftest.
$ac_objext conftest
$ac_exeext
19801 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
19802 (eval $ac_link) 2>conftest.er1
19804 grep -v '^ *+' conftest.er1
>conftest.err
19806 cat conftest.err
>&5
19807 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19808 (exit $ac_status); } &&
19809 { ac_try
='test -z "$ac_c_werror_flag"
19810 || test ! -s conftest.err'
19811 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19812 (eval $ac_try) 2>&5
19814 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19815 (exit $ac_status); }; } &&
19816 { ac_try
='test -s conftest$ac_exeext'
19817 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19818 (eval $ac_try) 2>&5
19820 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19821 (exit $ac_status); }; }; then
19822 have_personality
=true
19824 echo "$as_me: failed program was:" >&5
19825 sed 's/^/| /' conftest.
$ac_ext >&5
19827 have_personality
=false
19829 rm -f conftest.err conftest.
$ac_objext \
19830 conftest
$ac_exeext conftest.
$ac_ext
19832 cat >conftest.
$ac_ext <<_ACEOF
19835 cat confdefs.h
>>conftest.
$ac_ext
19836 cat >>conftest.
$ac_ext <<_ACEOF
19837 /* end confdefs.h. */
19838 #include <sys/personality.h>
19843 # if !HAVE_DECL_ADDR_NO_RANDOMIZE
19844 # define ADDR_NO_RANDOMIZE 0x0040000
19846 /* Test the flag could be set and stays set. */
19847 personality (personality (0xffffffff) | ADDR_NO_RANDOMIZE);
19848 if (!(personality (personality (0xffffffff)) & ADDR_NO_RANDOMIZE))
19854 rm -f conftest
$ac_exeext
19855 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
19856 (eval $ac_link) 2>&5
19858 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19859 (exit $ac_status); } && { ac_try
='./conftest$ac_exeext'
19860 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19861 (eval $ac_try) 2>&5
19863 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19864 (exit $ac_status); }; }; then
19865 have_personality
=true
19867 echo "$as_me: program exited with status $ac_status" >&5
19868 echo "$as_me: failed program was:" >&5
19869 sed 's/^/| /' conftest.
$ac_ext >&5
19871 ( exit $ac_status )
19872 have_personality
=false
19874 rm -f core
*.core gmon.out bb.out conftest
$ac_exeext conftest.
$ac_objext conftest.
$ac_ext
19876 if $have_personality
19879 cat >>confdefs.h
<<\_ACEOF
19880 #define HAVE_PERSONALITY 1
19887 # Check whether --with-sysroot or --without-sysroot was given.
19888 if test "${with_sysroot+set}" = set; then
19889 withval
="$with_sysroot"
19891 case ${with_sysroot} in
19892 yes) TARGET_SYSTEM_ROOT
='${exec_prefix}/${target_alias}/sys-root' ;;
19893 *) TARGET_SYSTEM_ROOT
=$with_sysroot ;;
19896 TARGET_SYSTEM_ROOT_DEFINE
='-DTARGET_SYSTEM_ROOT=\"$(TARGET_SYSTEM_ROOT)\"'
19898 if test "x$prefix" = xNONE
; then
19899 test_prefix
=/usr
/local
19901 test_prefix
=$prefix
19903 if test "x$exec_prefix" = xNONE ||
test "x$exec_prefix" = 'x${prefix}'; then
19904 test_exec_prefix
=$test_prefix
19906 test_exec_prefix
=$exec_prefix
19908 case ${TARGET_SYSTEM_ROOT} in
19909 "${test_prefix}"|
"${test_prefix}/"*|\
19910 "${test_exec_prefix}"|
"${test_exec_prefix}/"*|\
19911 '${prefix}'|
'${prefix}/'*|\
19912 '${exec_prefix}'|
'${exec_prefix}/'*)
19913 t
="$TARGET_SYSTEM_ROOT_DEFINE -DTARGET_SYSTEM_ROOT_RELOCATABLE"
19914 TARGET_SYSTEM_ROOT_DEFINE
="$t"
19920 TARGET_SYSTEM_ROOT
=
19921 TARGET_SYSTEM_ROOT_DEFINE
='-DTARGET_SYSTEM_ROOT=\"\"'
19929 # Check whether --with-system-gdbinit or --without-system-gdbinit was given.
19930 if test "${with_system_gdbinit+set}" = set; then
19931 withval
="$with_system_gdbinit"
19932 system_gdbinit
=${withval}
19936 test "x$prefix" = xNONE
&& prefix
="$ac_default_prefix"
19937 test "x$exec_prefix" = xNONE
&& exec_prefix
='${prefix}'
19938 ac_define_dir
=`eval echo $system_gdbinit`
19939 ac_define_dir
=`eval echo $ac_define_dir`
19941 cat >>confdefs.h
<<_ACEOF
19942 #define SYSTEM_GDBINIT "$ac_define_dir"
19947 if test "x$prefix" = xNONE
; then
19948 test_prefix
=$ac_default_prefix
19950 test_prefix
=$prefix
19952 if test "x$exec_prefix" = xNONE ||
test "x$exec_prefix" = 'x${prefix}'; then
19953 test_exec_prefix
=$test_prefix
19955 test_exec_prefix
=$exec_prefix
19957 case ${system_gdbinit} in
19958 "${test_prefix}"|
"${test_prefix}/"*|\
19959 "${test_exec_prefix}"|
"${test_exec_prefix}/"*|\
19960 '${prefix}'|
'${prefix}/'*|\
19961 '${exec_prefix}'|
'${exec_prefix}/'*)
19963 cat >>confdefs.h
<<\_ACEOF
19964 #define SYSTEM_GDBINIT_RELOCATABLE 1
19970 # Check whether --enable-werror or --disable-werror was given.
19971 if test "${enable_werror+set}" = set; then
19972 enableval
="$enable_werror"
19973 case "${enableval}" in
19974 yes | y
) ERROR_ON_WARNING
="yes" ;;
19975 no | n
) ERROR_ON_WARNING
="no" ;;
19976 *) { { echo "$as_me:$LINENO: error: bad value ${enableval} for --enable-werror" >&5
19977 echo "$as_me: error: bad value ${enableval} for --enable-werror" >&2;}
19978 { (exit 1); exit 1; }; } ;;
19982 # Enable -Werror by default when using gcc
19983 if test "${GCC}" = yes -a -z "${ERROR_ON_WARNING}" ; then
19984 ERROR_ON_WARNING
=yes
19988 if test "${ERROR_ON_WARNING}" = yes ; then
19989 WERROR_CFLAGS
="-Werror"
19992 # The entries after -Wno-pointer-sign are disabled warnings which may
19993 # be enabled in the future, which can not currently be used to build
19995 # NOTE: If you change this list, remember to update
19996 # gdb/doc/gdbint.texinfo.
19997 build_warnings
="-Wall -Wdeclaration-after-statement -Wpointer-arith \
19998 -Wformat-nonliteral -Wno-pointer-sign \
19999 -Wno-unused -Wno-switch -Wno-char-subscripts"
20001 # Enable -Wno-format by default when using gcc on mingw since many
20002 # GCC versions complain about %I64.
20004 *-*-mingw32*) build_warnings
="$build_warnings -Wno-format" ;;
20007 # Check whether --enable-build-warnings or --disable-build-warnings was given.
20008 if test "${enable_build_warnings+set}" = set; then
20009 enableval
="$enable_build_warnings"
20010 case "${enableval}" in
20012 no
) build_warnings
="-w";;
20013 ,*) t
=`echo "${enableval}" | sed -e "s/,/ /g"`
20014 build_warnings
="${build_warnings} ${t}";;
20015 *,) t
=`echo "${enableval}" | sed -e "s/,/ /g"`
20016 build_warnings
="${t} ${build_warnings}";;
20017 *) build_warnings
=`echo "${enableval}" | sed -e "s/,/ /g"`;;
20019 if test x
"$silent" != x
"yes" && test x
"$build_warnings" != x
""; then
20020 echo "Setting compiler warning flags = $build_warnings" 6>&1
20022 fi; # Check whether --enable-gdb-build-warnings or --disable-gdb-build-warnings was given.
20023 if test "${enable_gdb_build_warnings+set}" = set; then
20024 enableval
="$enable_gdb_build_warnings"
20025 case "${enableval}" in
20027 no
) build_warnings
="-w";;
20028 ,*) t
=`echo "${enableval}" | sed -e "s/,/ /g"`
20029 build_warnings
="${build_warnings} ${t}";;
20030 *,) t
=`echo "${enableval}" | sed -e "s/,/ /g"`
20031 build_warnings
="${t} ${build_warnings}";;
20032 *) build_warnings
=`echo "${enableval}" | sed -e "s/,/ /g"`;;
20034 if test x
"$silent" != x
"yes" && test x
"$build_warnings" != x
""; then
20035 echo "Setting GDB specific compiler warning flags = $build_warnings" 6>&1
20038 if test "x${build_warnings}" != x
-a "x$GCC" = xyes
20040 echo "$as_me:$LINENO: checking compiler warning flags" >&5
20041 echo $ECHO_N "checking compiler warning flags... $ECHO_C" >&6
20042 # Separate out the -Werror flag as some files just cannot be
20043 # compiled with it enabled.
20044 for w
in ${build_warnings}; do
20046 -Werr*) WERROR_CFLAGS
=-Werror ;;
20047 *) # Check that GCC accepts it
20048 saved_CFLAGS
="$CFLAGS"
20049 CFLAGS
="$CFLAGS $w"
20050 cat >conftest.
$ac_ext <<_ACEOF
20053 cat confdefs.h
>>conftest.
$ac_ext
20054 cat >>conftest.
$ac_ext <<_ACEOF
20055 /* end confdefs.h. */
20065 rm -f conftest.
$ac_objext
20066 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
20067 (eval $ac_compile) 2>conftest.er1
20069 grep -v '^ *+' conftest.er1
>conftest.err
20071 cat conftest.err
>&5
20072 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20073 (exit $ac_status); } &&
20074 { ac_try
='test -z "$ac_c_werror_flag"
20075 || test ! -s conftest.err'
20076 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20077 (eval $ac_try) 2>&5
20079 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20080 (exit $ac_status); }; } &&
20081 { ac_try
='test -s conftest.$ac_objext'
20082 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20083 (eval $ac_try) 2>&5
20085 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20086 (exit $ac_status); }; }; then
20087 WARN_CFLAGS
="${WARN_CFLAGS} $w"
20089 echo "$as_me: failed program was:" >&5
20090 sed 's/^/| /' conftest.
$ac_ext >&5
20093 rm -f conftest.err conftest.
$ac_objext conftest.
$ac_ext
20094 CFLAGS
="$saved_CFLAGS"
20097 echo "$as_me:$LINENO: result: ${WARN_CFLAGS} ${WERROR_CFLAGS}" >&5
20098 echo "${ECHO_T}${WARN_CFLAGS} ${WERROR_CFLAGS}" >&6
20103 # In the Cygwin environment, we need some additional flags.
20104 echo "$as_me:$LINENO: checking for cygwin" >&5
20105 echo $ECHO_N "checking for cygwin... $ECHO_C" >&6
20106 if test "${gdb_cv_os_cygwin+set}" = set; then
20107 echo $ECHO_N "(cached) $ECHO_C" >&6
20109 cat >conftest.
$ac_ext <<_ACEOF
20112 cat confdefs.h
>>conftest.
$ac_ext
20113 cat >>conftest.
$ac_ext <<_ACEOF
20114 /* end confdefs.h. */
20116 #if defined (__CYGWIN__) || defined (__CYGWIN32__)
20120 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
20121 $EGREP "lose" >/dev
/null
2>&1; then
20122 gdb_cv_os_cygwin
=yes
20124 gdb_cv_os_cygwin
=no
20129 echo "$as_me:$LINENO: result: $gdb_cv_os_cygwin" >&5
20130 echo "${ECHO_T}$gdb_cv_os_cygwin" >&6
20133 SER_HARDWIRE
="ser-base.o ser-unix.o ser-pipe.o ser-tcp.o"
20135 *go32
* ) SER_HARDWIRE
=ser-go32.o
;;
20136 *djgpp
* ) SER_HARDWIRE
=ser-go32.o
;;
20137 *mingw32
*) SER_HARDWIRE
="ser-base.o ser-tcp.o ser-mingw.o" ;;
20141 # libreadline needs libuser32.a in a cygwin environment
20143 if test x
$gdb_cv_os_cygwin = xyes
; then
20144 WIN32LIBS
="-luser32"
20145 case "${target}" in
20146 *cygwin
*) WIN32LIBS
="$WIN32LIBS -limagehlp"
20151 # The ser-tcp.c module requires sockets.
20155 cat >>confdefs.h
<<\_ACEOF
20156 #define USE_WIN32API 1
20159 WIN32LIBS
="$WIN32LIBS -lws2_32"
20164 # Add ELF support to GDB, but only if BFD includes ELF support.
20166 OLD_LDFLAGS
=$LDFLAGS
20168 CFLAGS
="$CFLAGS -I${srcdir}/../include -I../bfd -I${srcdir}/../bfd"
20169 LDFLAGS
="$LDFLAGS -L../bfd -L../libiberty"
20170 intl
=`echo $LIBINTL | sed 's,${top_builddir}/,,g'`
20171 LIBS
="-lbfd -liberty $intl $LIBS"
20172 echo "$as_me:$LINENO: checking for ELF support in BFD" >&5
20173 echo $ECHO_N "checking for ELF support in BFD... $ECHO_C" >&6
20174 if test "${gdb_cv_var_elf+set}" = set; then
20175 echo $ECHO_N "(cached) $ECHO_C" >&6
20177 cat >conftest.
$ac_ext <<_ACEOF
20180 cat confdefs.h
>>conftest.
$ac_ext
20181 cat >>conftest.
$ac_ext <<_ACEOF
20182 /* end confdefs.h. */
20183 #include <stdlib.h>
20185 #include "elf-bfd.h"
20190 bfd *abfd = NULL; bfd_get_elf_phdr_upper_bound (abfd);
20195 rm -f conftest.
$ac_objext conftest
$ac_exeext
20196 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
20197 (eval $ac_link) 2>conftest.er1
20199 grep -v '^ *+' conftest.er1
>conftest.err
20201 cat conftest.err
>&5
20202 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20203 (exit $ac_status); } &&
20204 { ac_try
='test -z "$ac_c_werror_flag"
20205 || test ! -s conftest.err'
20206 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20207 (eval $ac_try) 2>&5
20209 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20210 (exit $ac_status); }; } &&
20211 { ac_try
='test -s conftest$ac_exeext'
20212 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20213 (eval $ac_try) 2>&5
20215 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20216 (exit $ac_status); }; }; then
20219 echo "$as_me: failed program was:" >&5
20220 sed 's/^/| /' conftest.
$ac_ext >&5
20224 rm -f conftest.err conftest.
$ac_objext \
20225 conftest
$ac_exeext conftest.
$ac_ext
20227 echo "$as_me:$LINENO: result: $gdb_cv_var_elf" >&5
20228 echo "${ECHO_T}$gdb_cv_var_elf" >&6
20229 if test $gdb_cv_var_elf = yes; then
20230 CONFIG_OBS
="$CONFIG_OBS elfread.o"
20232 cat >>confdefs.h
<<\_ACEOF
20238 LDFLAGS
=$OLD_LDFLAGS
20241 # Add any host-specific objects to GDB.
20242 CONFIG_OBS
="${CONFIG_OBS} ${gdb_host_obs}"
20244 LIBGUI
="../libgui/src/libgui.a"
20245 GUI_CFLAGS_X
="-I${srcdir}/../libgui/src"
20254 *-*-cygwin* |
*-*-mingw* )
20263 if test "${enable_gdbtk}" = "yes"; then
20265 # Gdbtk must have an absolute path to srcdir in order to run
20266 # properly when not installed.
20269 GDBTK_SRC_DIR
=`pwd`
20274 # Ok, lets find the tcl configuration
20275 # First, look for one uninstalled.
20276 # the alternative search directory is invoked by --with-tcl
20279 if test x
"${no_tcl}" = x
; then
20280 # we reset no_tcl in case something fails here
20283 # Check whether --with-tcl or --without-tcl was given.
20284 if test "${with_tcl+set}" = set; then
20285 withval
="$with_tcl"
20286 with_tclconfig
=${withval}
20288 echo "$as_me:$LINENO: checking for Tcl configuration" >&5
20289 echo $ECHO_N "checking for Tcl configuration... $ECHO_C" >&6
20290 if test "${ac_cv_c_tclconfig+set}" = set; then
20291 echo $ECHO_N "(cached) $ECHO_C" >&6
20295 # First check to see if --with-tcl was specified.
20297 *-*-cygwin*) platDir
="win" ;;
20298 *) platDir
="unix" ;;
20300 if test x
"${with_tclconfig}" != x
; then
20301 if test -f "${with_tclconfig}/tclConfig.sh" ; then
20302 ac_cv_c_tclconfig
=`(cd ${with_tclconfig}; pwd)`
20304 { { echo "$as_me:$LINENO: error: ${with_tclconfig} directory doesn't contain tclConfig.sh" >&5
20305 echo "$as_me: error: ${with_tclconfig} directory doesn't contain tclConfig.sh" >&2;}
20306 { (exit 1); exit 1; }; }
20310 # then check for a private Tcl installation
20311 if test x
"${ac_cv_c_tclconfig}" = x
; then
20314 `ls -dr ../tcl[8-9].[0-9].[0-9]* 2>/dev/null` \
20315 `ls -dr ../tcl[8-9].[0-9] 2>/dev/null` \
20316 `ls -dr ../tcl[8-9].[0-9]* 2>/dev/null` \
20318 `ls -dr ../../tcl[8-9].[0-9].[0-9]* 2>/dev/null` \
20319 `ls -dr ../../tcl[8-9].[0-9] 2>/dev/null` \
20320 `ls -dr ../../tcl[8-9].[0-9]* 2>/dev/null` \
20322 `ls -dr ../../../tcl[8-9].[0-9].[0-9]* 2>/dev/null` \
20323 `ls -dr ../../../tcl[8-9].[0-9] 2>/dev/null` \
20324 `ls -dr ../../../tcl[8-9].[0-9]* 2>/dev/null` ; do
20325 if test -f "$i/$platDir/tclConfig.sh" ; then
20326 ac_cv_c_tclconfig
=`(cd $i/$platDir; pwd)`
20332 # on Darwin, check in Framework installation locations
20333 if test "`uname -s`" = "Darwin" -a x
"${ac_cv_c_tclconfig}" = x
; then
20334 for i
in `ls -d ~/Library/Frameworks 2>/dev/null` \
20335 `ls -d /Library/Frameworks 2>/dev/null` \
20336 `ls -d /Network/Library/Frameworks 2>/dev/null` \
20337 `ls -d /System/Library/Frameworks 2>/dev/null` \
20339 if test -f "$i/Tcl.framework/tclConfig.sh" ; then
20340 ac_cv_c_tclconfig
=`(cd $i/Tcl.framework; pwd)`
20346 # check in a few common install locations
20347 if test x
"${ac_cv_c_tclconfig}" = x
; then
20348 for i
in `ls -d ${libdir} 2>/dev/null` \
20349 `ls -d ${exec_prefix}/lib 2>/dev/null` \
20350 `ls -d ${prefix}/lib 2>/dev/null` \
20351 `ls -d /usr/local/lib 2>/dev/null` \
20352 `ls -d /usr/contrib/lib 2>/dev/null` \
20353 `ls -d /usr/lib 2>/dev/null` \
20355 if test -f "$i/tclConfig.sh" ; then
20356 ac_cv_c_tclconfig
=`(cd $i; pwd)`
20362 # check in a few other private locations
20363 if test x
"${ac_cv_c_tclconfig}" = x
; then
20366 `ls -dr ${srcdir}/../tcl[8-9].[0-9].[0-9]* 2>/dev/null` \
20367 `ls -dr ${srcdir}/../tcl[8-9].[0-9] 2>/dev/null` \
20368 `ls -dr ${srcdir}/../tcl[8-9].[0-9]* 2>/dev/null` ; do
20369 if test -f "$i/$platDir/tclConfig.sh" ; then
20370 ac_cv_c_tclconfig
=`(cd $i/$platDir; pwd)`
20379 if test x
"${ac_cv_c_tclconfig}" = x
; then
20380 TCL_BIN_DIR
="# no Tcl configs found"
20381 { echo "$as_me:$LINENO: WARNING: Can't find Tcl configuration definitions" >&5
20382 echo "$as_me: WARNING: Can't find Tcl configuration definitions" >&2;}
20385 TCL_BIN_DIR
=${ac_cv_c_tclconfig}
20386 echo "$as_me:$LINENO: result: found ${TCL_BIN_DIR}/tclConfig.sh" >&5
20387 echo "${ECHO_T}found ${TCL_BIN_DIR}/tclConfig.sh" >&6
20392 # If $no_tk is nonempty, then we can't do Tk, and there is no
20393 # point to doing Tcl.
20396 # Ok, lets find the tk configuration
20397 # First, look for one uninstalled.
20398 # the alternative search directory is invoked by --with-tk
20401 if test x
"${no_tk}" = x
; then
20402 # we reset no_tk in case something fails here
20405 # Check whether --with-tk or --without-tk was given.
20406 if test "${with_tk+set}" = set; then
20408 with_tkconfig
=${withval}
20410 echo "$as_me:$LINENO: checking for Tk configuration" >&5
20411 echo $ECHO_N "checking for Tk configuration... $ECHO_C" >&6
20412 if test "${ac_cv_c_tkconfig+set}" = set; then
20413 echo $ECHO_N "(cached) $ECHO_C" >&6
20417 # First check to see if --with-tkconfig was specified.
20418 if test x
"${with_tkconfig}" != x
; then
20419 if test -f "${with_tkconfig}/tkConfig.sh" ; then
20420 ac_cv_c_tkconfig
=`(cd ${with_tkconfig}; pwd)`
20422 { { echo "$as_me:$LINENO: error: ${with_tkconfig} directory doesn't contain tkConfig.sh" >&5
20423 echo "$as_me: error: ${with_tkconfig} directory doesn't contain tkConfig.sh" >&2;}
20424 { (exit 1); exit 1; }; }
20428 # then check for a private Tk library
20430 *-*-cygwin*) platDir
="win" ;;
20431 *) platDir
="unix" ;;
20433 if test x
"${ac_cv_c_tkconfig}" = x
; then
20436 `ls -dr ../tk[8-9].[0-9].[0-9]* 2>/dev/null` \
20437 `ls -dr ../tk[8-9].[0-9] 2>/dev/null` \
20438 `ls -dr ../tk[8-9].[0-9]* 2>/dev/null` \
20440 `ls -dr ../../tk[8-9].[0-9].[0-9]* 2>/dev/null` \
20441 `ls -dr ../../tk[8-9].[0-9] 2>/dev/null` \
20442 `ls -dr ../../tk[8-9].[0-9]* 2>/dev/null` \
20444 `ls -dr ../../../tk[8-9].[0-9].[0-9]* 2>/dev/null` \
20445 `ls -dr ../../../tk[8-9].[0-9] 2>/dev/null` \
20446 `ls -dr ../../../tk[8-9].[0-9]* 2>/dev/null` ; do
20447 if test -f "$i/$platDir/tkConfig.sh" ; then
20448 ac_cv_c_tkconfig
=`(cd $i/$platDir; pwd)`
20454 # on Darwin, check in Framework installation locations
20455 if test "`uname -s`" = "Darwin" -a x
"${ac_cv_c_tkconfig}" = x
; then
20456 for i
in `ls -d ~/Library/Frameworks 2>/dev/null` \
20457 `ls -d /Library/Frameworks 2>/dev/null` \
20458 `ls -d /Network/Library/Frameworks 2>/dev/null` \
20459 `ls -d /System/Library/Frameworks 2>/dev/null` \
20461 if test -f "$i/Tk.framework/tkConfig.sh" ; then
20462 ac_cv_c_tkconfig
=`(cd $i/Tk.framework; pwd)`
20468 # check in a few common install locations
20469 if test x
"${ac_cv_c_tkconfig}" = x
; then
20470 for i
in `ls -d ${libdir} 2>/dev/null` \
20471 `ls -d ${exec_prefix}/lib 2>/dev/null` \
20472 `ls -d ${prefix}/lib 2>/dev/null` \
20473 `ls -d /usr/local/lib 2>/dev/null` \
20474 `ls -d /usr/contrib/lib 2>/dev/null` \
20475 `ls -d /usr/lib 2>/dev/null` \
20477 if test -f "$i/tkConfig.sh" ; then
20478 ac_cv_c_tkconfig
=`(cd $i; pwd)`
20483 # check in a few other private locations
20484 if test x
"${ac_cv_c_tkconfig}" = x
; then
20487 `ls -dr ${srcdir}/../tk[8-9].[0-9].[0-9]* 2>/dev/null` \
20488 `ls -dr ${srcdir}/../tk[8-9].[0-9] 2>/dev/null` \
20489 `ls -dr ${srcdir}/../tk[8-9].[0-9]* 2>/dev/null` ; do
20490 if test -f "$i/$platDir/tkConfig.sh" ; then
20491 ac_cv_c_tkconfig
=`(cd $i/$platDir; pwd)`
20500 if test x
"${ac_cv_c_tkconfig}" = x
; then
20501 TK_BIN_DIR
="# no Tk configs found"
20502 { echo "$as_me:$LINENO: WARNING: Can't find Tk configuration definitions" >&5
20503 echo "$as_me: WARNING: Can't find Tk configuration definitions" >&2;}
20506 TK_BIN_DIR
=${ac_cv_c_tkconfig}
20507 echo "$as_me:$LINENO: result: found ${TK_BIN_DIR}/tkConfig.sh" >&5
20508 echo "${ECHO_T}found ${TK_BIN_DIR}/tkConfig.sh" >&6
20513 if test -z "${no_tcl}" -a -z "${no_tk}"; then
20515 echo "$as_me:$LINENO: checking for existence of ${TCL_BIN_DIR}/tclConfig.sh" >&5
20516 echo $ECHO_N "checking for existence of ${TCL_BIN_DIR}/tclConfig.sh... $ECHO_C" >&6
20518 if test -f "${TCL_BIN_DIR}/tclConfig.sh" ; then
20519 echo "$as_me:$LINENO: result: loading" >&5
20520 echo "${ECHO_T}loading" >&6
20521 .
${TCL_BIN_DIR}/tclConfig.sh
20523 echo "$as_me:$LINENO: result: could not find ${TCL_BIN_DIR}/tclConfig.sh" >&5
20524 echo "${ECHO_T}could not find ${TCL_BIN_DIR}/tclConfig.sh" >&6
20527 # eval is required to do the TCL_DBGX substitution
20528 eval "TCL_LIB_FILE=\"${TCL_LIB_FILE}\""
20529 eval "TCL_STUB_LIB_FILE=\"${TCL_STUB_LIB_FILE}\""
20531 # If the TCL_BIN_DIR is the build directory (not the install directory),
20532 # then set the common variable name to the value of the build variables.
20533 # For example, the variable TCL_LIB_SPEC will be set to the value
20534 # of TCL_BUILD_LIB_SPEC. An extension should make use of TCL_LIB_SPEC
20535 # instead of TCL_BUILD_LIB_SPEC since it will work with both an
20536 # installed and uninstalled version of Tcl.
20537 if test -f "${TCL_BIN_DIR}/Makefile" ; then
20538 TCL_LIB_SPEC
=${TCL_BUILD_LIB_SPEC}
20539 TCL_STUB_LIB_SPEC
=${TCL_BUILD_STUB_LIB_SPEC}
20540 TCL_STUB_LIB_PATH
=${TCL_BUILD_STUB_LIB_PATH}
20541 elif test "`uname -s`" = "Darwin"; then
20542 # If Tcl was built as a framework, attempt to use the libraries
20543 # from the framework at the given location so that linking works
20544 # against Tcl.framework installed in an arbitary location.
20545 case ${TCL_DEFS} in
20547 if test -f "${TCL_BIN_DIR}/${TCL_LIB_FILE}"; then
20548 for i
in "`cd ${TCL_BIN_DIR}; pwd`" \
20549 "`cd ${TCL_BIN_DIR}/../..; pwd`"; do
20550 if test "`basename "$i"`" = "${TCL_LIB_FILE}.framework"; then
20551 TCL_LIB_SPEC
="-F`dirname "$i"` -framework ${TCL_LIB_FILE}"
20556 if test -f "${TCL_BIN_DIR}/${TCL_STUB_LIB_FILE}"; then
20557 TCL_STUB_LIB_SPEC
="-L${TCL_BIN_DIR} ${TCL_STUB_LIB_FLAG}"
20558 TCL_STUB_LIB_PATH
="${TCL_BIN_DIR}/${TCL_STUB_LIB_FILE}"
20564 # eval is required to do the TCL_DBGX substitution
20565 eval "TCL_LIB_FLAG=\"${TCL_LIB_FLAG}\""
20566 eval "TCL_LIB_SPEC=\"${TCL_LIB_SPEC}\""
20567 eval "TCL_STUB_LIB_FLAG=\"${TCL_STUB_LIB_FLAG}\""
20568 eval "TCL_STUB_LIB_SPEC=\"${TCL_STUB_LIB_SPEC}\""
20584 # Check for in-tree tcl
20591 if test "${TCL_SRC_DIR}" = "${topdir}/tcl"; then
20595 # Find Tcl private headers
20596 if test x
"${intree}" = xno
; then
20598 echo "$as_me:$LINENO: checking for Tcl private headers" >&5
20599 echo $ECHO_N "checking for Tcl private headers... $ECHO_C" >&6
20601 dir
=`echo ${TCL_INCLUDE_SPEC}/tcl-private/generic | sed -e s/-I//`
20602 if test -f ${dir}/tclInt.h
; then
20606 if test x
"${private_dir}" = x
; then
20607 { { echo "$as_me:$LINENO: error: could not find private Tcl headers" >&5
20608 echo "$as_me: error: could not find private Tcl headers" >&2;}
20609 { (exit 1); exit 1; }; }
20611 TCL_PRIVATE_INCLUDE
="-I${private_dir}"
20612 echo "$as_me:$LINENO: result: ${private_dir}" >&5
20613 echo "${ECHO_T}${private_dir}" >&6
20616 TCL_INCLUDE
="${TCL_INCLUDE_SPEC} ${TCL_PRIVATE_INCLUDE}"
20617 TCL_LIBRARY
="${TCL_LIB_SPEC}"
20620 # If building tcl in the same src tree, private headers
20621 # are not needed, but we need to be sure to use the right
20623 TCL_INCLUDE
="-I${TCL_SRC_DIR}/generic"
20624 TCL_LIBRARY
="${TCL_BUILD_LIB_SPEC}"
20625 TCL_DEPS
="../tcl/${configdir}${TCL_LIB_FILE}"
20632 echo "$as_me:$LINENO: checking for existence of ${TK_BIN_DIR}/tkConfig.sh" >&5
20633 echo $ECHO_N "checking for existence of ${TK_BIN_DIR}/tkConfig.sh... $ECHO_C" >&6
20635 if test -f "${TK_BIN_DIR}/tkConfig.sh" ; then
20636 echo "$as_me:$LINENO: result: loading" >&5
20637 echo "${ECHO_T}loading" >&6
20638 .
${TK_BIN_DIR}/tkConfig.sh
20640 echo "$as_me:$LINENO: result: could not find ${TK_BIN_DIR}/tkConfig.sh" >&5
20641 echo "${ECHO_T}could not find ${TK_BIN_DIR}/tkConfig.sh" >&6
20644 # eval is required to do the TK_DBGX substitution
20645 eval "TK_LIB_FILE=\"${TK_LIB_FILE}\""
20646 eval "TK_STUB_LIB_FILE=\"${TK_STUB_LIB_FILE}\""
20648 # If the TK_BIN_DIR is the build directory (not the install directory),
20649 # then set the common variable name to the value of the build variables.
20650 # For example, the variable TK_LIB_SPEC will be set to the value
20651 # of TK_BUILD_LIB_SPEC. An extension should make use of TK_LIB_SPEC
20652 # instead of TK_BUILD_LIB_SPEC since it will work with both an
20653 # installed and uninstalled version of Tcl.
20654 if test -f "${TK_BIN_DIR}/Makefile" ; then
20655 TK_LIB_SPEC
=${TK_BUILD_LIB_SPEC}
20656 TK_STUB_LIB_SPEC
=${TK_BUILD_STUB_LIB_SPEC}
20657 TK_STUB_LIB_PATH
=${TK_BUILD_STUB_LIB_PATH}
20658 elif test "`uname -s`" = "Darwin"; then
20659 # If Tk was built as a framework, attempt to use the libraries
20660 # from the framework at the given location so that linking works
20661 # against Tk.framework installed in an arbitary location.
20664 if test -f "${TK_BIN_DIR}/${TK_LIB_FILE}"; then
20665 for i
in "`cd ${TK_BIN_DIR}; pwd`" \
20666 "`cd ${TK_BIN_DIR}/../..; pwd`"; do
20667 if test "`basename "$i"`" = "${TK_LIB_FILE}.framework"; then
20668 TK_LIB_SPEC
="-F`dirname "$i"` -framework ${TK_LIB_FILE}"
20673 if test -f "${TK_BIN_DIR}/${TK_STUB_LIB_FILE}"; then
20674 TK_STUB_LIB_SPEC
="-L${TK_BIN_DIR} ${TK_STUB_LIB_FLAG}"
20675 TK_STUB_LIB_PATH
="${TK_BIN_DIR}/${TK_STUB_LIB_FILE}"
20681 # eval is required to do the TK_DBGX substitution
20682 eval "TK_LIB_FLAG=\"${TK_LIB_FLAG}\""
20683 eval "TK_LIB_SPEC=\"${TK_LIB_SPEC}\""
20684 eval "TK_STUB_LIB_FLAG=\"${TK_STUB_LIB_FLAG}\""
20685 eval "TK_STUB_LIB_SPEC=\"${TK_STUB_LIB_SPEC}\""
20700 # Check for in-tree Tk
20702 if test "${TK_SRC_DIR}" = "${topdir}/tk"; then
20706 # Find Tk private headers
20707 if test x
"${intree}" = xno
; then
20709 echo "$as_me:$LINENO: checking for Tk private headers" >&5
20710 echo $ECHO_N "checking for Tk private headers... $ECHO_C" >&6
20712 dir
=`echo ${TK_INCLUDE_SPEC}/tk-private/generic | sed -e s/-I//`
20713 if test -f ${dir}/tkInt.h
; then
20717 if test x
"${private_dir}" = x
; then
20718 { { echo "$as_me:$LINENO: error: could not find Tk private headers" >&5
20719 echo "$as_me: error: could not find Tk private headers" >&2;}
20720 { (exit 1); exit 1; }; }
20722 TK_PRIVATE_INCLUDE
="-I${private_dir}"
20723 echo "$as_me:$LINENO: result: ${private_dir}" >&5
20724 echo "${ECHO_T}${private_dir}" >&6
20727 TK_INCLUDE
="${TK_INCLUDE_SPEC} ${TK_PRIVATE_INCLUDE}"
20728 TK_LIBRARY
=${TK_LIB_SPEC}
20731 TK_INCLUDE
="-I${TK_SRC_DIR}/generic"
20732 TK_LIBRARY
="${TK_BUILD_LIB_SPEC}"
20733 TK_DEPS
="../tk/${configdir}/${TK_LIB_FILE}"
20740 ENABLE_CFLAGS
="${ENABLE_CFLAGS} \$(SUBDIR_GDBTK_CFLAGS)"
20742 # Include some libraries that Tcl and Tk want.
20743 TCL_LIBS
='$(LIBGUI) $(TK) $(TCL) $(X11_LDFLAGS) $(X11_LIBS)'
20744 # Yes, the ordering seems wrong here. But it isn't.
20745 # TK_LIBS is the list of libraries that need to be linked
20746 # after Tcl/Tk. Note that this isn't put into LIBS. If it
20747 # were in LIBS then any link tests after this point would
20748 # try to include things like `$(LIBGUI)', which wouldn't work.
20749 GDBTKLIBS
="${TCL_LIBS} ${TK_LIBS}"
20751 CONFIG_OBS
="${CONFIG_OBS} \$(SUBDIR_GDBTK_OBS)"
20752 CONFIG_DEPS
="${CONFIG_DEPS} \$(SUBDIR_GDBTK_DEPS)"
20753 CONFIG_SRCS
="${CONFIG_SRCS} \$(SUBDIR_GDBTK_SRCS)"
20754 CONFIG_ALL
="${CONFIG_ALL} all-gdbtk"
20755 CONFIG_CLEAN
="${CONFIG_CLEAN} clean-gdbtk"
20756 CONFIG_INSTALL
="${CONFIG_INSTALL} install-gdbtk"
20757 CONFIG_UNINSTALL
="${CONFIG_UNINSTALL} uninstall-gdbtk"
20759 if test x
$gdb_cv_os_cygwin = xyes
; then
20760 WIN32LIBS
="${WIN32LIBS} -lshell32 -lgdi32 -lcomdlg32 -ladvapi32"
20761 WIN32LDAPP
="-Wl,--subsystem,console"
20762 CONFIG_OBS
="${CONFIG_OBS} gdbres.o"
20767 subdirs
="$subdirs gdbtk"
20779 echo "$as_me:$LINENO: checking for X" >&5
20780 echo $ECHO_N "checking for X... $ECHO_C" >&6
20783 # Check whether --with-x or --without-x was given.
20784 if test "${with_x+set}" = set; then
20788 # $have_x is `yes', `no', `disabled', or empty when we do not yet know.
20789 if test "x$with_x" = xno
; then
20790 # The user explicitly disabled X.
20793 if test "x$x_includes" != xNONE
&& test "x$x_libraries" != xNONE
; then
20794 # Both variables are already set.
20797 if test "${ac_cv_have_x+set}" = set; then
20798 echo $ECHO_N "(cached) $ECHO_C" >&6
20800 # One or both of the vars are not set, and there is no cached value.
20801 ac_x_includes
=no ac_x_libraries
=no
20802 rm -fr conftest.dir
20803 if mkdir conftest.dir
; then
20805 # Make sure to not put "make" in the Imakefile rules, since we grep it out.
20806 cat >Imakefile
<<'_ACEOF'
20808 @echo 'ac_im_incroot="${INCROOT}"; ac_im_usrlibdir="${USRLIBDIR}"; ac_im_libdir="${LIBDIR}"'
20810 if (xmkmf
) >/dev
/null
2>/dev
/null
&& test -f Makefile
; then
20811 # GNU make sometimes prints "make[1]: Entering...", which would confuse us.
20812 eval `${MAKE-make} acfindx 2>/dev/null | grep -v make`
20813 # Open Windows xmkmf reportedly sets LIBDIR instead of USRLIBDIR.
20814 for ac_extension
in a so sl
; do
20815 if test ! -f $ac_im_usrlibdir/libX11.
$ac_extension &&
20816 test -f $ac_im_libdir/libX11.
$ac_extension; then
20817 ac_im_usrlibdir
=$ac_im_libdir; break
20820 # Screen out bogus values from the imake configuration. They are
20821 # bogus both because they are the default anyway, and because
20822 # using them would break gcc on systems where it needs fixed includes.
20823 case $ac_im_incroot in
20825 *) test -f "$ac_im_incroot/X11/Xos.h" && ac_x_includes
=$ac_im_incroot;;
20827 case $ac_im_usrlibdir in
20828 /usr
/lib |
/lib
) ;;
20829 *) test -d "$ac_im_usrlibdir" && ac_x_libraries
=$ac_im_usrlibdir ;;
20833 rm -fr conftest.dir
20836 # Standard set of common directories for X headers.
20837 # Check X11 before X11Rn because it is often a symlink to the current release.
20849 /usr/local/X11/include
20850 /usr/local/X11R6/include
20851 /usr/local/X11R5/include
20852 /usr/local/X11R4/include
20854 /usr/local/include/X11
20855 /usr/local/include/X11R6
20856 /usr/local/include/X11R5
20857 /usr/local/include/X11R4
20861 /usr/XFree86/include/X11
20865 /usr/unsupported/include
20866 /usr/athena/include
20867 /usr/local/x11r5/include
20868 /usr/lpp/Xamples/include
20870 /usr/openwin/include
20871 /usr/openwin/share/include'
20873 if test "$ac_x_includes" = no
; then
20874 # Guess where to find include files, by looking for Intrinsic.h.
20875 # First, try using that file with no special directory specified.
20876 cat >conftest.
$ac_ext <<_ACEOF
20879 cat confdefs.h
>>conftest.
$ac_ext
20880 cat >>conftest.
$ac_ext <<_ACEOF
20881 /* end confdefs.h. */
20882 #include <X11/Intrinsic.h>
20884 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
20885 (eval $ac_cpp conftest.
$ac_ext) 2>conftest.er1
20887 grep -v '^ *+' conftest.er1
>conftest.err
20889 cat conftest.err
>&5
20890 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20891 (exit $ac_status); } >/dev
/null
; then
20892 if test -s conftest.err
; then
20893 ac_cpp_err
=$ac_c_preproc_warn_flag
20894 ac_cpp_err
=$ac_cpp_err$ac_c_werror_flag
20901 if test -z "$ac_cpp_err"; then
20902 # We can compile using X headers with no special include directory.
20905 echo "$as_me: failed program was:" >&5
20906 sed 's/^/| /' conftest.
$ac_ext >&5
20908 for ac_dir
in $ac_x_header_dirs; do
20909 if test -r "$ac_dir/X11/Intrinsic.h"; then
20910 ac_x_includes
=$ac_dir
20915 rm -f conftest.err conftest.
$ac_ext
20916 fi # $ac_x_includes = no
20918 if test "$ac_x_libraries" = no
; then
20919 # Check for the libraries.
20920 # See if we find them without any special options.
20921 # Don't add to $LIBS permanently.
20924 cat >conftest.
$ac_ext <<_ACEOF
20927 cat confdefs.h
>>conftest.
$ac_ext
20928 cat >>conftest.
$ac_ext <<_ACEOF
20929 /* end confdefs.h. */
20930 #include <X11/Intrinsic.h>
20939 rm -f conftest.
$ac_objext conftest
$ac_exeext
20940 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
20941 (eval $ac_link) 2>conftest.er1
20943 grep -v '^ *+' conftest.er1
>conftest.err
20945 cat conftest.err
>&5
20946 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20947 (exit $ac_status); } &&
20948 { ac_try
='test -z "$ac_c_werror_flag"
20949 || test ! -s conftest.err'
20950 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20951 (eval $ac_try) 2>&5
20953 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20954 (exit $ac_status); }; } &&
20955 { ac_try
='test -s conftest$ac_exeext'
20956 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20957 (eval $ac_try) 2>&5
20959 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20960 (exit $ac_status); }; }; then
20962 # We can link X programs with no special library path.
20965 echo "$as_me: failed program was:" >&5
20966 sed 's/^/| /' conftest.
$ac_ext >&5
20969 for ac_dir
in `echo "$ac_x_includes $ac_x_header_dirs" | sed s/include/lib/g`
20971 # Don't even attempt the hair of trying to link an X program!
20972 for ac_extension
in a so sl
; do
20973 if test -r $ac_dir/libXt.
$ac_extension; then
20974 ac_x_libraries
=$ac_dir
20980 rm -f conftest.err conftest.
$ac_objext \
20981 conftest
$ac_exeext conftest.
$ac_ext
20982 fi # $ac_x_libraries = no
20984 if test "$ac_x_includes" = no ||
test "$ac_x_libraries" = no
; then
20985 # Didn't find X anywhere. Cache the known absence of X.
20986 ac_cv_have_x
="have_x=no"
20988 # Record where we found X for the cache.
20989 ac_cv_have_x
="have_x=yes \
20990 ac_x_includes=$ac_x_includes ac_x_libraries=$ac_x_libraries"
20995 eval "$ac_cv_have_x"
20998 if test "$have_x" != yes; then
20999 echo "$as_me:$LINENO: result: $have_x" >&5
21000 echo "${ECHO_T}$have_x" >&6
21003 # If each of the values was on the command line, it overrides each guess.
21004 test "x$x_includes" = xNONE
&& x_includes
=$ac_x_includes
21005 test "x$x_libraries" = xNONE
&& x_libraries
=$ac_x_libraries
21006 # Update the cache value to reflect the command line values.
21007 ac_cv_have_x
="have_x=yes \
21008 ac_x_includes=$x_includes ac_x_libraries=$x_libraries"
21009 echo "$as_me:$LINENO: result: libraries $x_libraries, headers $x_includes" >&5
21010 echo "${ECHO_T}libraries $x_libraries, headers $x_includes" >&6
21014 # Unlike the sim directory, whether a simulator is linked is controlled by
21015 # presence of a gdb_sim definition in the target configure.tgt entry.
21016 # This code just checks for a few cases where we'd like to ignore those
21017 # definitions, even when they're present in the '.mt' file. These cases
21018 # are when --disable-sim is specified, or if the simulator directory is
21019 # not part of the source tree.
21021 # Check whether --enable-sim or --disable-sim was given.
21022 if test "${enable_sim+set}" = set; then
21023 enableval
="$enable_sim"
21024 echo "enable_sim = $enable_sim";
21025 echo "enableval = ${enableval}";
21026 case "${enableval}" in
21027 yes) ignore_sim
=false
;;
21028 no
) ignore_sim
=true
;;
21029 *) ignore_sim
=false
;;
21035 if test ! -d "${srcdir}/../sim"; then
21041 if test "${ignore_sim}" = "false"; then
21042 if test x
"${gdb_sim}" != x
; then
21044 SIM_OBS
="remote-sim.o"
21046 cat >>confdefs.h
<<\_ACEOF
21066 # List of host floatformats.
21068 cat >>confdefs.h
<<_ACEOF
21069 #define GDB_HOST_FLOAT_FORMAT $gdb_host_float_format
21073 cat >>confdefs.h
<<_ACEOF
21074 #define GDB_HOST_DOUBLE_FORMAT $gdb_host_double_format
21078 cat >>confdefs.h
<<_ACEOF
21079 #define GDB_HOST_LONG_DOUBLE_FORMAT $gdb_host_long_double_format
21083 # target_subdir is used by the testsuite to find the target libraries.
21085 if test "${host}" != "${target}"; then
21086 target_subdir
="${target_alias}/"
21091 if test "${gdb_native}" = "yes"; then
21092 host_makefile_frag
=${srcdir}/config/${gdb_host_cpu}/${gdb_host}.mh
21093 if test ! -f ${host_makefile_frag}; then
21094 { { echo "$as_me:$LINENO: error: \"*** Gdb does not support native target ${host}\"" >&5
21095 echo "$as_me: error: \"*** Gdb does not support native target ${host}\"" >&2;}
21096 { (exit 1); exit 1; }; }
21098 frags
="$frags $host_makefile_frag"
21100 host_makefile_frag
=/dev
/null
21106 if test "${gdb_native}" = "yes"; then
21107 # We pick this up from the host configuration file (.mh) because we
21108 # do not have a native configuration Makefile fragment.
21109 nativefile
=`sed -n '
21110 s/NAT_FILE[ ]*=[ ]*\([^ ]*\)/\1/p
21111 ' ${host_makefile_frag}`
21115 if test x
"${gdb_osabi}" != x
; then
21117 cat >>confdefs.h
<<_ACEOF
21118 #define GDB_OSABI_DEFAULT $gdb_osabi
21123 # Enable multi-ice-gdb-server.
21124 # Check whether --enable-multi-ice or --disable-multi-ice was given.
21125 if test "${enable_multi_ice+set}" = set; then
21126 enableval
="$enable_multi_ice"
21130 *) { { echo "$as_me:$LINENO: error: bad value $enableval for --enable-multi-ice" >&5
21131 echo "$as_me: error: bad value $enableval for --enable-multi-ice" >&2;}
21132 { (exit 1); exit 1; }; } ;;
21135 if test "x$enable_multi_ice" = xyes
; then
21138 subdirs
="$subdirs multi-ice"
21142 # We only build gdbserver automatically in a native configuration.
21143 if test "$gdb_native" = "yes"; then
21144 echo "$as_me:$LINENO: checking whether gdbserver is supported on this host" >&5
21145 echo $ECHO_N "checking whether gdbserver is supported on this host... $ECHO_C" >&6
21146 if test "x$build_gdbserver" = xyes
; then
21147 echo "$as_me:$LINENO: result: yes" >&5
21148 echo "${ECHO_T}yes" >&6
21151 subdirs
="$subdirs gdbserver"
21154 echo "$as_me:$LINENO: result: no" >&5
21155 echo "${ECHO_T}no" >&6
21159 # If nativefile (NAT_FILE) is not set in config/*/*.m[ht] files, we link
21160 # to an empty version.
21167 if test "${nativefile}" != ""; then
21169 case "${nativefile}" in
21170 nm-
*.h
) GDB_NM_FILE
="config/${gdb_host_cpu}/${nativefile}" ;;
21171 * ) GDB_NM_FILE
="${nativefile}"
21173 files
="${files} ${GDB_NM_FILE}"
21174 links
="${links} nm.h"
21176 cat >>confdefs.h
<<_ACEOF
21177 #define GDB_NM_FILE "${GDB_NM_FILE}"
21183 ac_sources
="$files"
21185 while test -n "$ac_sources"; do
21186 set $ac_dests; ac_dest
=$1; shift; ac_dests
=$
*
21187 set $ac_sources; ac_source
=$1; shift; ac_sources
=$
*
21188 ac_config_links_1
="$ac_config_links_1 $ac_dest:$ac_source"
21190 ac_config_links
="$ac_config_links $ac_config_links_1"
21196 cat >>confdefs.h
<<\_ACEOF
21197 #define GDB_DEFAULT_HOST_CHARSET "UTF-8"
21206 ac_config_files
="$ac_config_files Makefile .gdbinit:gdbinit.in gnulib/Makefile"
21207 ac_config_commands
="$ac_config_commands default"
21208 cat >confcache
<<\_ACEOF
21209 # This file is a shell script that caches the results of configure
21210 # tests run on this system so they can be shared between configure
21211 # scripts and configure runs, see configure's option --config-cache.
21212 # It is not useful on other systems. If it contains results you don't
21213 # want to keep, you may remove or edit it.
21215 # config.status only pays attention to the cache file if you give it
21216 # the --recheck option to rerun configure.
21218 # `ac_cv_env_foo' variables (set or unset) will be overridden when
21219 # loading this file, other *unset* `ac_cv_foo' will be assigned the
21220 # following values.
21224 # The following way of writing the cache mishandles newlines in values,
21225 # but we know of no workaround that is simple, portable, and efficient.
21226 # So, don't put newlines in cache variables' values.
21227 # Ultrix sh set writes to stderr and can't be redirected directly,
21228 # and sets the high bit in the cache file unless we assign to the vars.
21231 case `(ac_space=' '; set | grep ac_space) 2>&1` in
21233 # `set' does not quote correctly, so add quotes (double-quote
21234 # substitution turns \\\\ into \\, and sed turns \\ into \).
21237 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p"
21240 # `set' quotes correctly as required by POSIX, so do not add quotes.
21242 "s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1=\\2/p"
21249 s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/
21251 /^ac_cv_env/!s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/
21253 if diff $cache_file confcache
>/dev
/null
2>&1; then :; else
21254 if test -w $cache_file; then
21255 test "x$cache_file" != "x/dev/null" && echo "updating cache $cache_file"
21256 cat confcache
>$cache_file
21258 echo "not updating unwritable cache $cache_file"
21263 test "x$prefix" = xNONE
&& prefix
=$ac_default_prefix
21264 # Let make expand exec_prefix.
21265 test "x$exec_prefix" = xNONE
&& exec_prefix
='${prefix}'
21267 # VPATH may cause trouble with some makes, so we remove $(srcdir),
21268 # ${srcdir} and @srcdir@ from VPATH if srcdir is ".", strip leading and
21269 # trailing colons and then remove the whole line if VPATH becomes empty
21270 # (actually we leave an empty line to preserve line numbers).
21271 if test "x$srcdir" = x.
; then
21272 ac_vpsub
='/^[ ]*VPATH[ ]*=/{
21273 s/:*\$(srcdir):*/:/;
21274 s/:*\${srcdir}:*/:/;
21276 s/^\([^=]*=[ ]*\):*/\1/;
21282 DEFS
=-DHAVE_CONFIG_H
21286 for ac_i
in : $LIBOBJS; do test "x$ac_i" = x
: && continue
21287 # 1. Remove the extension, and $U if already installed.
21288 ac_i
=`echo "$ac_i" |
21289 sed 's/\$U\././;s/\.o$//;s/\.obj$//'`
21291 ac_libobjs
="$ac_libobjs $ac_i\$U.$ac_objext"
21292 ac_ltlibobjs
="$ac_ltlibobjs $ac_i"'$U.lo'
21294 LIBOBJS
=$ac_libobjs
21296 LTLIBOBJS
=$ac_ltlibobjs
21299 if test -z "${MAINTAINER_MODE_TRUE}" && test -z "${MAINTAINER_MODE_FALSE}"; then
21300 { { echo "$as_me:$LINENO: error: conditional \"MAINTAINER_MODE\" was never defined.
21301 Usually this means the macro was only invoked conditionally." >&5
21302 echo "$as_me: error: conditional \"MAINTAINER_MODE\" was never defined.
21303 Usually this means the macro was only invoked conditionally." >&2;}
21304 { (exit 1); exit 1; }; }
21306 if test -z "${GMAKE_TRUE}" && test -z "${GMAKE_FALSE}"; then
21307 { { echo "$as_me:$LINENO: error: conditional \"GMAKE\" was never defined.
21308 Usually this means the macro was only invoked conditionally." >&5
21309 echo "$as_me: error: conditional \"GMAKE\" was never defined.
21310 Usually this means the macro was only invoked conditionally." >&2;}
21311 { (exit 1); exit 1; }; }
21313 if test -z "${GL_COND_LIBTOOL_TRUE}" && test -z "${GL_COND_LIBTOOL_FALSE}"; then
21314 { { echo "$as_me:$LINENO: error: conditional \"GL_COND_LIBTOOL\" was never defined.
21315 Usually this means the macro was only invoked conditionally." >&5
21316 echo "$as_me: error: conditional \"GL_COND_LIBTOOL\" was never defined.
21317 Usually this means the macro was only invoked conditionally." >&2;}
21318 { (exit 1); exit 1; }; }
21323 if test -n "$gl_LIBOBJS"; then
21324 # Remove the extension.
21325 sed_drop_objext
='s/\.o$//;s/\.obj$//'
21326 for i
in `for i in $gl_LIBOBJS; do echo "$i"; done | sed "$sed_drop_objext" | sort | uniq`; do
21327 gl_libobjs
="$gl_libobjs $i.$ac_objext"
21328 gl_ltlibobjs
="$gl_ltlibobjs $i.lo"
21331 gl_LIBOBJS
=$gl_libobjs
21333 gl_LTLIBOBJS
=$gl_ltlibobjs
21339 if test -n "$gltests_LIBOBJS"; then
21340 # Remove the extension.
21341 sed_drop_objext
='s/\.o$//;s/\.obj$//'
21342 for i
in `for i in $gltests_LIBOBJS; do echo "$i"; done | sed "$sed_drop_objext" | sort | uniq`; do
21343 gltests_libobjs
="$gltests_libobjs $i.$ac_objext"
21344 gltests_ltlibobjs
="$gltests_ltlibobjs $i.lo"
21347 gltests_LIBOBJS
=$gltests_libobjs
21349 gltests_LTLIBOBJS
=$gltests_ltlibobjs
21352 if test -z "${AMDEP_TRUE}" && test -z "${AMDEP_FALSE}"; then
21353 { { echo "$as_me:$LINENO: error: conditional \"AMDEP\" was never defined.
21354 Usually this means the macro was only invoked conditionally." >&5
21355 echo "$as_me: error: conditional \"AMDEP\" was never defined.
21356 Usually this means the macro was only invoked conditionally." >&2;}
21357 { (exit 1); exit 1; }; }
21359 if test -z "${am__fastdepCC_TRUE}" && test -z "${am__fastdepCC_FALSE}"; then
21360 { { echo "$as_me:$LINENO: error: conditional \"am__fastdepCC\" was never defined.
21361 Usually this means the macro was only invoked conditionally." >&5
21362 echo "$as_me: error: conditional \"am__fastdepCC\" was never defined.
21363 Usually this means the macro was only invoked conditionally." >&2;}
21364 { (exit 1); exit 1; }; }
21367 : ${CONFIG_STATUS=./config.status}
21368 ac_clean_files_save
=$ac_clean_files
21369 ac_clean_files
="$ac_clean_files $CONFIG_STATUS"
21370 { echo "$as_me:$LINENO: creating $CONFIG_STATUS" >&5
21371 echo "$as_me: creating $CONFIG_STATUS" >&6;}
21372 cat >$CONFIG_STATUS <<_ACEOF
21374 # Generated by $as_me.
21375 # Run this file to recreate the current configuration.
21376 # Compiler output produced by configure, useful for debugging
21377 # configure, is in config.log if it exists.
21380 ac_cs_recheck=false
21382 SHELL=\${CONFIG_SHELL-$SHELL}
21385 cat >>$CONFIG_STATUS <<\_ACEOF
21386 ## --------------------- ##
21387 ## M4sh Initialization. ##
21388 ## --------------------- ##
21390 # Be Bourne compatible
21391 if test -n "${ZSH_VERSION+set}" && (emulate sh
) >/dev
/null
2>&1; then
21394 # Zsh 3.x and 4.x performs word splitting on ${1+"$@"}, which
21395 # is contrary to our usage. Disable this feature.
21396 alias -g '${1+"$@"}'='"$@"'
21397 elif test -n "${BASH_VERSION+set}" && (set -o posix
) >/dev
/null
2>&1; then
21400 DUALCASE
=1; export DUALCASE
# for MKS sh
21402 # Support unset when possible.
21403 if ( (MAIL
=60; unset MAIL
) ||
exit) >/dev
/null
2>&1; then
21410 # Work around bugs in pre-3.0 UWIN ksh.
21411 $as_unset ENV MAIL MAILPATH
21418 LANG LANGUAGE LC_ADDRESS LC_ALL LC_COLLATE LC_CTYPE LC_IDENTIFICATION \
21419 LC_MEASUREMENT LC_MESSAGES LC_MONETARY LC_NAME LC_NUMERIC LC_PAPER \
21420 LC_TELEPHONE LC_TIME
21422 if (set +x
; test -z "`(eval $as_var=C; export $as_var) 2>&1`"); then
21423 eval $as_var=C
; export $as_var
21429 # Required to use basename.
21430 if expr a
: '\(a\)' >/dev
/null
2>&1; then
21436 if (basename /) >/dev
/null
2>&1 && test "X`basename / 2>&1`" = "X/"; then
21437 as_basename
=basename
21443 # Name of the executable.
21444 as_me
=`$as_basename "$0" ||
21445 $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
21446 X"$0" : 'X\(//\)$' \| \
21447 X"$0" : 'X\(/\)$' \| \
21448 . : '\(.\)' 2>/dev/null ||
21450 sed '/^.*\/\([^/][^/]*\)\/*$/{ s//\1/; q; }
21451 /^X\/\(\/\/\)$/{ s//\1/; q; }
21452 /^X\/\(\/\).*/{ s//\1/; q; }
21456 # PATH needs CR, and LINENO needs CR and PATH.
21457 # Avoid depending upon Character Ranges.
21458 as_cr_letters
='abcdefghijklmnopqrstuvwxyz'
21459 as_cr_LETTERS
='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
21460 as_cr_Letters
=$as_cr_letters$as_cr_LETTERS
21461 as_cr_digits
='0123456789'
21462 as_cr_alnum
=$as_cr_Letters$as_cr_digits
21464 # The user is always right.
21465 if test "${PATH_SEPARATOR+set}" != set; then
21466 echo "#! /bin/sh" >conf$$.sh
21467 echo "exit 0" >>conf$$.sh
21469 if (PATH
="/nonexistent;."; conf$$.sh
) >/dev
/null
2>&1; then
21478 as_lineno_1
=$LINENO
21479 as_lineno_2
=$LINENO
21480 as_lineno_3
=`(expr $as_lineno_1 + 1) 2>/dev/null`
21481 test "x$as_lineno_1" != "x$as_lineno_2" &&
21482 test "x$as_lineno_3" = "x$as_lineno_2" ||
{
21483 # Find who we are. Look in the path if we contain no path at all
21486 *[\\/]* ) as_myself
=$0 ;;
21487 *) as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
21488 for as_dir
in $PATH
21491 test -z "$as_dir" && as_dir
=.
21492 test -r "$as_dir/$0" && as_myself
=$as_dir/$0 && break
21497 # We did not find ourselves, most probably we were run as `sh COMMAND'
21498 # in which case we are not to be found in the path.
21499 if test "x$as_myself" = x
; then
21502 if test ! -f "$as_myself"; then
21503 { { echo "$as_me:$LINENO: error: cannot find myself; rerun with an absolute path" >&5
21504 echo "$as_me: error: cannot find myself; rerun with an absolute path" >&2;}
21505 { (exit 1); exit 1; }; }
21507 case $CONFIG_SHELL in
21509 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
21510 for as_dir
in /bin
$PATH_SEPARATOR/usr
/bin
$PATH_SEPARATOR$PATH
21513 test -z "$as_dir" && as_dir
=.
21514 for as_base
in sh bash ksh sh5
; do
21517 if ("$as_dir/$as_base" -c '
21518 as_lineno_1=$LINENO
21519 as_lineno_2=$LINENO
21520 as_lineno_3=`(expr $as_lineno_1 + 1) 2>/dev/null`
21521 test "x$as_lineno_1" != "x$as_lineno_2" &&
21522 test "x$as_lineno_3" = "x$as_lineno_2" ') 2>/dev
/null
; then
21523 $as_unset BASH_ENV ||
test "${BASH_ENV+set}" != set ||
{ BASH_ENV
=; export BASH_ENV
; }
21524 $as_unset ENV ||
test "${ENV+set}" != set ||
{ ENV
=; export ENV
; }
21525 CONFIG_SHELL
=$as_dir/$as_base
21526 export CONFIG_SHELL
21527 exec "$CONFIG_SHELL" "$0" ${1+"$@"}
21535 # Create $as_me.lineno as a copy of $as_myself, but with $LINENO
21536 # uniformly replaced by the line number. The first 'sed' inserts a
21537 # line-number line before each line; the second 'sed' does the real
21538 # work. The second script uses 'N' to pair each line-number line
21539 # with the numbered line, and appends trailing '-' during
21540 # substitution so that $LINENO is not a special case at line end.
21541 # (Raja R Harinath suggested sed '=', and Paul Eggert wrote the
21542 # second 'sed' script. Blame Lee E. McMahon for sed's syntax. :-)
21543 sed '=' <$as_myself |
21548 s,^\(['$as_cr_digits']*\)\(.*\)[$]LINENO\([^'$as_cr_alnum'_]\),\1\2\1\3,
21551 s,^['$as_cr_digits']*\n,,
21552 ' >$as_me.lineno
&&
21553 chmod +x
$as_me.lineno ||
21554 { { echo "$as_me:$LINENO: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&5
21555 echo "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2;}
21556 { (exit 1); exit 1; }; }
21558 # Don't try to exec as it changes $[0], causing all sort of problems
21559 # (the dirname of $[0] is not the place where we might find the
21560 # original and so on. Autoconf is especially sensible to this).
21562 # Exit status is that of the last command.
21567 case `echo "testing\c"; echo 1,2,3`,`echo -n testing; echo 1,2,3` in
21568 *c
*,-n*) ECHO_N
= ECHO_C
='
21570 *c
*,* ) ECHO_N
=-n ECHO_C
= ECHO_T
= ;;
21571 *) ECHO_N
= ECHO_C
='\c' ECHO_T
= ;;
21574 if expr a
: '\(a\)' >/dev
/null
2>&1; then
21580 rm -f conf$$ conf$$.exe conf$$.
file
21582 if ln -s conf$$.
file conf$$
2>/dev
/null
; then
21583 # We could just check for DJGPP; but this test a) works b) is more generic
21584 # and c) will remain valid once DJGPP supports symlinks (DJGPP 2.04).
21585 if test -f conf$$.exe
; then
21586 # Don't use ln at all; we don't have any links
21591 elif ln conf$$.
file conf$$
2>/dev
/null
; then
21596 rm -f conf$$ conf$$.exe conf$$.
file
21598 if mkdir
-p .
2>/dev
/null
; then
21601 test -d .
/-p && rmdir .
/-p
21605 as_executable_p
="test -f"
21607 # Sed expression to map a string onto a valid CPP name.
21608 as_tr_cpp
="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
21610 # Sed expression to map a string onto a valid variable name.
21611 as_tr_sh
="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
21615 # We need space, tab and new line, in precisely that order.
21625 # Open the log real soon, to keep \$[0] and so on meaningful, and to
21626 # report actual input values of CONFIG_FILES etc. instead of their
21627 # values after options handling. Logging --version etc. is OK.
21631 sed 'h;s/./-/g;s/^.../## /;s/...$/ ##/;p;x;p;x' <<_ASBOX
21632 ## Running $as_me. ##
21637 This file was extended by $as_me, which was
21638 generated by GNU Autoconf 2.59. Invocation command line was
21640 CONFIG_FILES = $CONFIG_FILES
21641 CONFIG_HEADERS = $CONFIG_HEADERS
21642 CONFIG_LINKS = $CONFIG_LINKS
21643 CONFIG_COMMANDS = $CONFIG_COMMANDS
21647 echo "on `(hostname || uname -n) 2>/dev/null | sed 1q`" >&5
21651 # Files that config.status was made for.
21652 if test -n "$ac_config_files"; then
21653 echo "config_files=\"$ac_config_files\"" >>$CONFIG_STATUS
21656 if test -n "$ac_config_headers"; then
21657 echo "config_headers=\"$ac_config_headers\"" >>$CONFIG_STATUS
21660 if test -n "$ac_config_links"; then
21661 echo "config_links=\"$ac_config_links\"" >>$CONFIG_STATUS
21664 if test -n "$ac_config_commands"; then
21665 echo "config_commands=\"$ac_config_commands\"" >>$CONFIG_STATUS
21668 cat >>$CONFIG_STATUS <<\_ACEOF
21671 \`$as_me' instantiates files from templates according to the
21672 current configuration.
21674 Usage: $0 [OPTIONS] [FILE]...
21676 -h, --help print this help, then exit
21677 -V, --version print version number, then exit
21678 -q, --quiet do not print progress messages
21679 -d, --debug don't remove temporary files
21680 --recheck update $as_me by reconfiguring in the same conditions
21681 --file=FILE[:TEMPLATE]
21682 instantiate the configuration file FILE
21683 --header=FILE[:TEMPLATE]
21684 instantiate the configuration header FILE
21686 Configuration files:
21689 Configuration headers:
21692 Configuration links:
21695 Configuration commands:
21698 Report bugs to <bug-autoconf@gnu.org>."
21701 cat >>$CONFIG_STATUS <<_ACEOF
21704 configured by $0, generated by GNU Autoconf 2.59,
21705 with options \\"`echo "$ac_configure_args" | sed 's/[\\""\`\$]/\\\\&/g'`\\"
21707 Copyright (C) 2003 Free Software Foundation, Inc.
21708 This config.status script is free software; the Free Software Foundation
21709 gives unlimited permission to copy, distribute and modify it."
21714 cat >>$CONFIG_STATUS <<\_ACEOF
21715 # If no file are specified by the user, then we need to provide default
21716 # value. By we need to know if files were specified by the user.
21722 ac_option
=`expr "x$1" : 'x\([^=]*\)='`
21723 ac_optarg
=`expr "x$1" : 'x[^=]*=\(.*\)'`
21731 *) # This is not an option, so the user has probably given explicit
21734 ac_need_defaults
=false
;;
21738 # Handling of the options.
21740 cat >>$CONFIG_STATUS <<\_ACEOF
21741 -recheck |
--recheck |
--rechec |
--reche |
--rech |
--rec |
--re |
--r)
21743 --version |
--vers* |
-V )
21744 echo "$ac_cs_version"; exit 0 ;;
21746 # Conflict between --help and --header
21747 { { echo "$as_me:$LINENO: error: ambiguous option: $1
21748 Try \`$0 --help' for more information." >&5
21749 echo "$as_me: error: ambiguous option: $1
21750 Try \`$0 --help' for more information." >&2;}
21751 { (exit 1); exit 1; }; };;
21752 --help |
--hel |
-h )
21753 echo "$ac_cs_usage"; exit 0 ;;
21754 --debug |
--d* |
-d )
21756 --file |
--fil |
--fi |
--f )
21758 CONFIG_FILES
="$CONFIG_FILES $ac_optarg"
21759 ac_need_defaults
=false
;;
21760 --header |
--heade |
--head |
--hea )
21762 CONFIG_HEADERS
="$CONFIG_HEADERS $ac_optarg"
21763 ac_need_defaults
=false
;;
21764 -q |
-quiet |
--quiet |
--quie |
--qui |
--qu |
--q \
21765 |
-silent |
--silent |
--silen |
--sile |
--sil |
--si |
--s)
21768 # This is an error.
21769 -*) { { echo "$as_me:$LINENO: error: unrecognized option: $1
21770 Try \`$0 --help' for more information." >&5
21771 echo "$as_me: error: unrecognized option: $1
21772 Try \`$0 --help' for more information." >&2;}
21773 { (exit 1); exit 1; }; } ;;
21775 *) ac_config_targets
="$ac_config_targets $1" ;;
21781 ac_configure_extra_args
=
21783 if $ac_cs_silent; then
21785 ac_configure_extra_args
="$ac_configure_extra_args --silent"
21789 cat >>$CONFIG_STATUS <<_ACEOF
21790 if \$ac_cs_recheck; then
21791 echo "running $SHELL $0 " $ac_configure_args \$ac_configure_extra_args " --no-create --no-recursion" >&6
21792 exec $SHELL $0 $ac_configure_args \$ac_configure_extra_args --no-create --no-recursion
21797 cat >>$CONFIG_STATUS <<_ACEOF
21799 # INIT-COMMANDS section.
21802 ac_aux_dir=$ac_aux_dir DEPDIR=$DEPDIR
21803 AMDEP_TRUE="$AMDEP_TRUE" ac_aux_dir="$ac_aux_dir"
21805 gdb_host_cpu=$gdb_host_cpu
21806 nativefile=$nativefile
21813 cat >>$CONFIG_STATUS <<\_ACEOF
21814 for ac_config_target
in $ac_config_targets
21816 case "$ac_config_target" in
21817 # Handling of arguments.
21818 "Makefile" ) CONFIG_FILES
="$CONFIG_FILES Makefile" ;;
21819 ".gdbinit" ) CONFIG_FILES
="$CONFIG_FILES .gdbinit:gdbinit.in" ;;
21820 "gnulib/Makefile" ) CONFIG_FILES
="$CONFIG_FILES gnulib/Makefile" ;;
21821 "$ac_config_links_1" ) CONFIG_LINKS
="$CONFIG_LINKS $ac_config_links_1" ;;
21822 "depdir" ) CONFIG_COMMANDS
="$CONFIG_COMMANDS depdir" ;;
21823 "depfiles" ) CONFIG_COMMANDS
="$CONFIG_COMMANDS depfiles" ;;
21824 "default" ) CONFIG_COMMANDS
="$CONFIG_COMMANDS default" ;;
21825 "config.h" ) CONFIG_HEADERS
="$CONFIG_HEADERS config.h:config.in" ;;
21826 *) { { echo "$as_me:$LINENO: error: invalid argument: $ac_config_target" >&5
21827 echo "$as_me: error: invalid argument: $ac_config_target" >&2;}
21828 { (exit 1); exit 1; }; };;
21832 # If the user did not use the arguments to specify the items to instantiate,
21833 # then the envvar interface is used. Set only those that are not.
21834 # We use the long form for the default assignment because of an extremely
21835 # bizarre bug on SunOS 4.1.3.
21836 if $ac_need_defaults; then
21837 test "${CONFIG_FILES+set}" = set || CONFIG_FILES
=$config_files
21838 test "${CONFIG_HEADERS+set}" = set || CONFIG_HEADERS
=$config_headers
21839 test "${CONFIG_LINKS+set}" = set || CONFIG_LINKS
=$config_links
21840 test "${CONFIG_COMMANDS+set}" = set || CONFIG_COMMANDS
=$config_commands
21843 # Have a temporary directory for convenience. Make it in the build tree
21844 # simply because there is no reason to put it here, and in addition,
21845 # creating and moving files from /tmp can sometimes cause problems.
21846 # Create a temporary directory, and hook for its removal unless debugging.
21849 trap 'exit_status=$?; rm -rf $tmp && exit $exit_status' 0
21850 trap '{ (exit 1); exit 1; }' 1 2 13 15
21853 # Create a (secure) tmp directory for tmp files.
21856 tmp
=`(umask 077 && mktemp -d -q "./confstatXXXXXX") 2>/dev/null` &&
21857 test -n "$tmp" && test -d "$tmp"
21860 tmp
=.
/confstat$$
-$RANDOM
21861 (umask 077 && mkdir
$tmp)
21864 echo "$me: cannot create a temporary directory in ." >&2
21865 { (exit 1); exit 1; }
21870 cat >>$CONFIG_STATUS <<_ACEOF
21873 # CONFIG_FILES section.
21876 # No need to generate the scripts if there are no CONFIG_FILES.
21877 # This happens for instance when ./config.status config.h
21878 if test -n "\$CONFIG_FILES"; then
21879 # Protect against being on the right side of a sed subst in config.status.
21880 sed 's/,@/@@/; s/@,/@@/; s/,;t t\$/@;t t/; /@;t t\$/s/[\\\\&,]/\\\\&/g;
21881 s/@@/,@/; s/@@/@,/; s/@;t t\$/,;t t/' >\$tmp/subs.sed <<\\CEOF
21882 s,@SHELL@,$SHELL,;t t
21883 s,@PATH_SEPARATOR@,$PATH_SEPARATOR,;t t
21884 s,@PACKAGE_NAME@,$PACKAGE_NAME,;t t
21885 s,@PACKAGE_TARNAME@,$PACKAGE_TARNAME,;t t
21886 s,@PACKAGE_VERSION@,$PACKAGE_VERSION,;t t
21887 s,@PACKAGE_STRING@,$PACKAGE_STRING,;t t
21888 s,@PACKAGE_BUGREPORT@,$PACKAGE_BUGREPORT,;t t
21889 s,@exec_prefix@,$exec_prefix,;t t
21890 s,@prefix@,$prefix,;t t
21891 s,@program_transform_name@,$program_transform_name,;t t
21892 s,@bindir@,$bindir,;t t
21893 s,@sbindir@,$sbindir,;t t
21894 s,@libexecdir@,$libexecdir,;t t
21895 s,@datadir@,$datadir,;t t
21896 s,@sysconfdir@,$sysconfdir,;t t
21897 s,@sharedstatedir@,$sharedstatedir,;t t
21898 s,@localstatedir@,$localstatedir,;t t
21899 s,@libdir@,$libdir,;t t
21900 s,@includedir@,$includedir,;t t
21901 s,@oldincludedir@,$oldincludedir,;t t
21902 s,@infodir@,$infodir,;t t
21903 s,@mandir@,$mandir,;t t
21904 s,@build_alias@,$build_alias,;t t
21905 s,@host_alias@,$host_alias,;t t
21906 s,@target_alias@,$target_alias,;t t
21907 s,@DEFS@,$DEFS,;t t
21908 s,@ECHO_C@,$ECHO_C,;t t
21909 s,@ECHO_N@,$ECHO_N,;t t
21910 s,@ECHO_T@,$ECHO_T,;t t
21911 s,@LIBS@,$LIBS,;t t
21912 s,@MAINTAINER_MODE_TRUE@,$MAINTAINER_MODE_TRUE,;t t
21913 s,@MAINTAINER_MODE_FALSE@,$MAINTAINER_MODE_FALSE,;t t
21914 s,@MAINT@,$MAINT,;t t
21916 s,@CFLAGS@,$CFLAGS,;t t
21917 s,@LDFLAGS@,$LDFLAGS,;t t
21918 s,@CPPFLAGS@,$CPPFLAGS,;t t
21919 s,@ac_ct_CC@,$ac_ct_CC,;t t
21920 s,@EXEEXT@,$EXEEXT,;t t
21921 s,@OBJEXT@,$OBJEXT,;t t
21923 s,@EGREP@,$EGREP,;t t
21924 s,@RANLIB@,$RANLIB,;t t
21925 s,@ac_ct_RANLIB@,$ac_ct_RANLIB,;t t
21926 s,@build@,$build,;t t
21927 s,@build_cpu@,$build_cpu,;t t
21928 s,@build_vendor@,$build_vendor,;t t
21929 s,@build_os@,$build_os,;t t
21930 s,@host@,$host,;t t
21931 s,@host_cpu@,$host_cpu,;t t
21932 s,@host_vendor@,$host_vendor,;t t
21933 s,@host_os@,$host_os,;t t
21934 s,@target@,$target,;t t
21935 s,@target_cpu@,$target_cpu,;t t
21936 s,@target_vendor@,$target_vendor,;t t
21937 s,@target_os@,$target_os,;t t
21938 s,@am__leading_dot@,$am__leading_dot,;t t
21939 s,@DEPDIR@,$DEPDIR,;t t
21940 s,@CCDEPMODE@,$CCDEPMODE,;t t
21941 s,@MAKE@,$MAKE,;t t
21942 s,@GMAKE_TRUE@,$GMAKE_TRUE,;t t
21943 s,@GMAKE_FALSE@,$GMAKE_FALSE,;t t
21944 s,@SET_MAKE@,$SET_MAKE,;t t
21945 s,@USE_NLS@,$USE_NLS,;t t
21946 s,@LIBINTL@,$LIBINTL,;t t
21947 s,@LIBINTL_DEP@,$LIBINTL_DEP,;t t
21948 s,@INCINTL@,$INCINTL,;t t
21949 s,@XGETTEXT@,$XGETTEXT,;t t
21950 s,@GMSGFMT@,$GMSGFMT,;t t
21951 s,@POSUB@,$POSUB,;t t
21952 s,@CATALOGS@,$CATALOGS,;t t
21953 s,@DATADIRNAME@,$DATADIRNAME,;t t
21954 s,@INSTOBJEXT@,$INSTOBJEXT,;t t
21955 s,@GENCAT@,$GENCAT,;t t
21956 s,@CATOBJEXT@,$CATOBJEXT,;t t
21957 s,@localedir@,$localedir,;t t
21958 s,@GL_COND_LIBTOOL_TRUE@,$GL_COND_LIBTOOL_TRUE,;t t
21959 s,@GL_COND_LIBTOOL_FALSE@,$GL_COND_LIBTOOL_FALSE,;t t
21960 s,@GNULIB_MEMMEM@,$GNULIB_MEMMEM,;t t
21961 s,@GNULIB_MEMPCPY@,$GNULIB_MEMPCPY,;t t
21962 s,@GNULIB_MEMRCHR@,$GNULIB_MEMRCHR,;t t
21963 s,@GNULIB_STPCPY@,$GNULIB_STPCPY,;t t
21964 s,@GNULIB_STPNCPY@,$GNULIB_STPNCPY,;t t
21965 s,@GNULIB_STRCHRNUL@,$GNULIB_STRCHRNUL,;t t
21966 s,@GNULIB_STRDUP@,$GNULIB_STRDUP,;t t
21967 s,@GNULIB_STRNDUP@,$GNULIB_STRNDUP,;t t
21968 s,@GNULIB_STRNLEN@,$GNULIB_STRNLEN,;t t
21969 s,@GNULIB_STRPBRK@,$GNULIB_STRPBRK,;t t
21970 s,@GNULIB_STRSEP@,$GNULIB_STRSEP,;t t
21971 s,@GNULIB_STRSTR@,$GNULIB_STRSTR,;t t
21972 s,@GNULIB_STRCASESTR@,$GNULIB_STRCASESTR,;t t
21973 s,@GNULIB_STRTOK_R@,$GNULIB_STRTOK_R,;t t
21974 s,@GNULIB_MBSLEN@,$GNULIB_MBSLEN,;t t
21975 s,@GNULIB_MBSNLEN@,$GNULIB_MBSNLEN,;t t
21976 s,@GNULIB_MBSCHR@,$GNULIB_MBSCHR,;t t
21977 s,@GNULIB_MBSRCHR@,$GNULIB_MBSRCHR,;t t
21978 s,@GNULIB_MBSSTR@,$GNULIB_MBSSTR,;t t
21979 s,@GNULIB_MBSCASECMP@,$GNULIB_MBSCASECMP,;t t
21980 s,@GNULIB_MBSNCASECMP@,$GNULIB_MBSNCASECMP,;t t
21981 s,@GNULIB_MBSPCASECMP@,$GNULIB_MBSPCASECMP,;t t
21982 s,@GNULIB_MBSCASESTR@,$GNULIB_MBSCASESTR,;t t
21983 s,@GNULIB_MBSCSPN@,$GNULIB_MBSCSPN,;t t
21984 s,@GNULIB_MBSPBRK@,$GNULIB_MBSPBRK,;t t
21985 s,@GNULIB_MBSSPN@,$GNULIB_MBSSPN,;t t
21986 s,@GNULIB_MBSSEP@,$GNULIB_MBSSEP,;t t
21987 s,@GNULIB_MBSTOK_R@,$GNULIB_MBSTOK_R,;t t
21988 s,@GNULIB_STRERROR@,$GNULIB_STRERROR,;t t
21989 s,@GNULIB_STRSIGNAL@,$GNULIB_STRSIGNAL,;t t
21990 s,@HAVE_DECL_MEMMEM@,$HAVE_DECL_MEMMEM,;t t
21991 s,@HAVE_MEMPCPY@,$HAVE_MEMPCPY,;t t
21992 s,@HAVE_DECL_MEMRCHR@,$HAVE_DECL_MEMRCHR,;t t
21993 s,@HAVE_STPCPY@,$HAVE_STPCPY,;t t
21994 s,@HAVE_STPNCPY@,$HAVE_STPNCPY,;t t
21995 s,@HAVE_STRCHRNUL@,$HAVE_STRCHRNUL,;t t
21996 s,@HAVE_DECL_STRDUP@,$HAVE_DECL_STRDUP,;t t
21997 s,@HAVE_STRNDUP@,$HAVE_STRNDUP,;t t
21998 s,@HAVE_DECL_STRNDUP@,$HAVE_DECL_STRNDUP,;t t
21999 s,@HAVE_DECL_STRNLEN@,$HAVE_DECL_STRNLEN,;t t
22000 s,@HAVE_STRPBRK@,$HAVE_STRPBRK,;t t
22001 s,@HAVE_STRSEP@,$HAVE_STRSEP,;t t
22002 s,@HAVE_STRCASESTR@,$HAVE_STRCASESTR,;t t
22003 s,@HAVE_DECL_STRTOK_R@,$HAVE_DECL_STRTOK_R,;t t
22004 s,@HAVE_DECL_STRERROR@,$HAVE_DECL_STRERROR,;t t
22005 s,@HAVE_DECL_STRSIGNAL@,$HAVE_DECL_STRSIGNAL,;t t
22006 s,@REPLACE_STRERROR@,$REPLACE_STRERROR,;t t
22007 s,@REPLACE_STRSIGNAL@,$REPLACE_STRSIGNAL,;t t
22008 s,@REPLACE_MEMMEM@,$REPLACE_MEMMEM,;t t
22009 s,@REPLACE_STRCASESTR@,$REPLACE_STRCASESTR,;t t
22010 s,@REPLACE_STRSTR@,$REPLACE_STRSTR,;t t
22011 s,@HAVE_LONG_LONG_INT@,$HAVE_LONG_LONG_INT,;t t
22012 s,@HAVE_UNSIGNED_LONG_LONG_INT@,$HAVE_UNSIGNED_LONG_LONG_INT,;t t
22013 s,@HAVE_INTTYPES_H@,$HAVE_INTTYPES_H,;t t
22014 s,@HAVE_SYS_TYPES_H@,$HAVE_SYS_TYPES_H,;t t
22015 s,@INCLUDE_NEXT@,$INCLUDE_NEXT,;t t
22016 s,@NEXT_STDINT_H@,$NEXT_STDINT_H,;t t
22017 s,@HAVE_STDINT_H@,$HAVE_STDINT_H,;t t
22018 s,@HAVE_SYS_INTTYPES_H@,$HAVE_SYS_INTTYPES_H,;t t
22019 s,@HAVE_SYS_BITYPES_H@,$HAVE_SYS_BITYPES_H,;t t
22020 s,@BITSIZEOF_PTRDIFF_T@,$BITSIZEOF_PTRDIFF_T,;t t
22021 s,@BITSIZEOF_SIG_ATOMIC_T@,$BITSIZEOF_SIG_ATOMIC_T,;t t
22022 s,@BITSIZEOF_SIZE_T@,$BITSIZEOF_SIZE_T,;t t
22023 s,@BITSIZEOF_WCHAR_T@,$BITSIZEOF_WCHAR_T,;t t
22024 s,@BITSIZEOF_WINT_T@,$BITSIZEOF_WINT_T,;t t
22025 s,@HAVE_SIGNED_SIG_ATOMIC_T@,$HAVE_SIGNED_SIG_ATOMIC_T,;t t
22026 s,@HAVE_SIGNED_WCHAR_T@,$HAVE_SIGNED_WCHAR_T,;t t
22027 s,@HAVE_SIGNED_WINT_T@,$HAVE_SIGNED_WINT_T,;t t
22028 s,@PTRDIFF_T_SUFFIX@,$PTRDIFF_T_SUFFIX,;t t
22029 s,@SIG_ATOMIC_T_SUFFIX@,$SIG_ATOMIC_T_SUFFIX,;t t
22030 s,@SIZE_T_SUFFIX@,$SIZE_T_SUFFIX,;t t
22031 s,@WCHAR_T_SUFFIX@,$WCHAR_T_SUFFIX,;t t
22032 s,@WINT_T_SUFFIX@,$WINT_T_SUFFIX,;t t
22033 s,@STDINT_H@,$STDINT_H,;t t
22034 s,@NEXT_STRING_H@,$NEXT_STRING_H,;t t
22035 s,@GNULIB_WCWIDTH@,$GNULIB_WCWIDTH,;t t
22036 s,@HAVE_DECL_WCWIDTH@,$HAVE_DECL_WCWIDTH,;t t
22037 s,@REPLACE_WCWIDTH@,$REPLACE_WCWIDTH,;t t
22038 s,@WCHAR_H@,$WCHAR_H,;t t
22039 s,@HAVE_WCHAR_H@,$HAVE_WCHAR_H,;t t
22040 s,@NEXT_WCHAR_H@,$NEXT_WCHAR_H,;t t
22041 s,@LIBGNU_LIBDEPS@,$LIBGNU_LIBDEPS,;t t
22042 s,@LIBGNU_LTLIBDEPS@,$LIBGNU_LTLIBDEPS,;t t
22043 s,@GNULIB_STDINT_H@,$GNULIB_STDINT_H,;t t
22044 s,@PACKAGE@,$PACKAGE,;t t
22045 s,@INSTALL_PROGRAM@,$INSTALL_PROGRAM,;t t
22046 s,@INSTALL_SCRIPT@,$INSTALL_SCRIPT,;t t
22047 s,@INSTALL_DATA@,$INSTALL_DATA,;t t
22048 s,@CYGPATH_W@,$CYGPATH_W,;t t
22049 s,@PYTHON2_4@,$PYTHON2_4,;t t
22050 s,@ACLOCAL@,$ACLOCAL,;t t
22051 s,@AUTOCONF@,$AUTOCONF,;t t
22052 s,@AUTOMAKE@,$AUTOMAKE,;t t
22053 s,@AUTOHEADER@,$AUTOHEADER,;t t
22054 s,@MAKEINFO@,$MAKEINFO,;t t
22055 s,@install_sh@,$install_sh,;t t
22056 s,@STRIP@,$STRIP,;t t
22057 s,@ac_ct_STRIP@,$ac_ct_STRIP,;t t
22058 s,@INSTALL_STRIP_PROGRAM@,$INSTALL_STRIP_PROGRAM,;t t
22059 s,@mkdir_p@,$mkdir_p,;t t
22061 s,@AMTAR@,$AMTAR,;t t
22062 s,@am__tar@,$am__tar,;t t
22063 s,@am__untar@,$am__untar,;t t
22064 s,@am__include@,$am__include,;t t
22065 s,@am__quote@,$am__quote,;t t
22066 s,@AMDEP_TRUE@,$AMDEP_TRUE,;t t
22067 s,@AMDEP_FALSE@,$AMDEP_FALSE,;t t
22068 s,@AMDEPBACKSLASH@,$AMDEPBACKSLASH,;t t
22069 s,@am__fastdepCC_TRUE@,$am__fastdepCC_TRUE,;t t
22070 s,@am__fastdepCC_FALSE@,$am__fastdepCC_FALSE,;t t
22071 s,@subdirs@,$subdirs,;t t
22072 s,@TARGET_OBS@,$TARGET_OBS,;t t
22073 s,@PKGVERSION@,$PKGVERSION,;t t
22074 s,@REPORT_BUGS_TO@,$REPORT_BUGS_TO,;t t
22075 s,@REPORT_BUGS_TEXI@,$REPORT_BUGS_TEXI,;t t
22076 s,@LN_S@,$LN_S,;t t
22077 s,@YACC@,$YACC,;t t
22079 s,@ac_ct_AR@,$ac_ct_AR,;t t
22080 s,@DLLTOOL@,$DLLTOOL,;t t
22081 s,@ac_ct_DLLTOOL@,$ac_ct_DLLTOOL,;t t
22082 s,@WINDRES@,$WINDRES,;t t
22083 s,@ac_ct_WINDRES@,$ac_ct_WINDRES,;t t
22085 s,@ac_ct_MIG@,$ac_ct_MIG,;t t
22086 s,@READLINE@,$READLINE,;t t
22087 s,@READLINE_DEPS@,$READLINE_DEPS,;t t
22088 s,@READLINE_CFLAGS@,$READLINE_CFLAGS,;t t
22089 s,@HAVE_LIBEXPAT@,$HAVE_LIBEXPAT,;t t
22090 s,@LIBEXPAT@,$LIBEXPAT,;t t
22091 s,@LTLIBEXPAT@,$LTLIBEXPAT,;t t
22092 s,@PYTHON_CFLAGS@,$PYTHON_CFLAGS,;t t
22093 s,@ALLOCA@,$ALLOCA,;t t
22094 s,@CONFIG_LDFLAGS@,$CONFIG_LDFLAGS,;t t
22095 s,@TARGET_SYSTEM_ROOT@,$TARGET_SYSTEM_ROOT,;t t
22096 s,@TARGET_SYSTEM_ROOT_DEFINE@,$TARGET_SYSTEM_ROOT_DEFINE,;t t
22097 s,@WARN_CFLAGS@,$WARN_CFLAGS,;t t
22098 s,@WERROR_CFLAGS@,$WERROR_CFLAGS,;t t
22099 s,@SER_HARDWIRE@,$SER_HARDWIRE,;t t
22100 s,@WIN32LIBS@,$WIN32LIBS,;t t
22101 s,@LIBGUI@,$LIBGUI,;t t
22102 s,@GUI_CFLAGS_X@,$GUI_CFLAGS_X,;t t
22103 s,@WIN32LDAPP@,$WIN32LDAPP,;t t
22104 s,@TCL_VERSION@,$TCL_VERSION,;t t
22105 s,@TCL_PATCH_LEVEL@,$TCL_PATCH_LEVEL,;t t
22106 s,@TCL_BIN_DIR@,$TCL_BIN_DIR,;t t
22107 s,@TCL_SRC_DIR@,$TCL_SRC_DIR,;t t
22108 s,@TCL_LIB_FILE@,$TCL_LIB_FILE,;t t
22109 s,@TCL_LIB_FLAG@,$TCL_LIB_FLAG,;t t
22110 s,@TCL_LIB_SPEC@,$TCL_LIB_SPEC,;t t
22111 s,@TCL_STUB_LIB_FILE@,$TCL_STUB_LIB_FILE,;t t
22112 s,@TCL_STUB_LIB_FLAG@,$TCL_STUB_LIB_FLAG,;t t
22113 s,@TCL_STUB_LIB_SPEC@,$TCL_STUB_LIB_SPEC,;t t
22114 s,@TCL_INCLUDE@,$TCL_INCLUDE,;t t
22115 s,@TCL_LIBRARY@,$TCL_LIBRARY,;t t
22116 s,@TCL_DEPS@,$TCL_DEPS,;t t
22117 s,@TK_VERSION@,$TK_VERSION,;t t
22118 s,@TK_BIN_DIR@,$TK_BIN_DIR,;t t
22119 s,@TK_SRC_DIR@,$TK_SRC_DIR,;t t
22120 s,@TK_LIB_FILE@,$TK_LIB_FILE,;t t
22121 s,@TK_LIB_FLAG@,$TK_LIB_FLAG,;t t
22122 s,@TK_LIB_SPEC@,$TK_LIB_SPEC,;t t
22123 s,@TK_STUB_LIB_FILE@,$TK_STUB_LIB_FILE,;t t
22124 s,@TK_STUB_LIB_FLAG@,$TK_STUB_LIB_FLAG,;t t
22125 s,@TK_STUB_LIB_SPEC@,$TK_STUB_LIB_SPEC,;t t
22126 s,@TK_INCLUDE@,$TK_INCLUDE,;t t
22127 s,@TK_LIBRARY@,$TK_LIBRARY,;t t
22128 s,@TK_DEPS@,$TK_DEPS,;t t
22129 s,@TK_XINCLUDES@,$TK_XINCLUDES,;t t
22130 s,@X_CFLAGS@,$X_CFLAGS,;t t
22131 s,@X_LDFLAGS@,$X_LDFLAGS,;t t
22132 s,@X_LIBS@,$X_LIBS,;t t
22133 s,@GDBTKLIBS@,$GDBTKLIBS,;t t
22134 s,@GDBTK_CFLAGS@,$GDBTK_CFLAGS,;t t
22135 s,@GDBTK_SRC_DIR@,$GDBTK_SRC_DIR,;t t
22137 s,@SIM_OBS@,$SIM_OBS,;t t
22138 s,@ENABLE_CFLAGS@,$ENABLE_CFLAGS,;t t
22139 s,@PROFILE_CFLAGS@,$PROFILE_CFLAGS,;t t
22140 s,@CONFIG_OBS@,$CONFIG_OBS,;t t
22141 s,@CONFIG_DEPS@,$CONFIG_DEPS,;t t
22142 s,@CONFIG_SRCS@,$CONFIG_SRCS,;t t
22143 s,@CONFIG_ALL@,$CONFIG_ALL,;t t
22144 s,@CONFIG_CLEAN@,$CONFIG_CLEAN,;t t
22145 s,@CONFIG_INSTALL@,$CONFIG_INSTALL,;t t
22146 s,@CONFIG_UNINSTALL@,$CONFIG_UNINSTALL,;t t
22147 s,@target_subdir@,$target_subdir,;t t
22148 s,@frags@,$frags,;t t
22149 s,@nm_h@,$nm_h,;t t
22150 s,@datarootdir@,$datarootdir,;t t
22151 s,@docdir@,$docdir,;t t
22152 s,@htmldir@,$htmldir,;t t
22153 s,@pdfdir@,$pdfdir,;t t
22154 s,@LIBOBJS@,$LIBOBJS,;t t
22155 s,@LTLIBOBJS@,$LTLIBOBJS,;t t
22156 s,@gl_LIBOBJS@,$gl_LIBOBJS,;t t
22157 s,@gl_LTLIBOBJS@,$gl_LTLIBOBJS,;t t
22158 s,@gltests_LIBOBJS@,$gltests_LIBOBJS,;t t
22159 s,@gltests_LTLIBOBJS@,$gltests_LTLIBOBJS,;t t
22160 /@host_makefile_frag@/r $host_makefile_frag
22161 s,@host_makefile_frag@,,;t t
22166 cat >>$CONFIG_STATUS <<\_ACEOF
22167 # Split the substitutions into bite-sized pieces for seds with
22168 # small command number limits, like on Digital OSF/1 and HP-UX.
22169 ac_max_sed_lines
=48
22170 ac_sed_frag
=1 # Number of current file.
22171 ac_beg
=1 # First line for current file.
22172 ac_end
=$ac_max_sed_lines # Line after last line for current file.
22175 while $ac_more_lines; do
22176 if test $ac_beg -gt 1; then
22177 sed "1,${ac_beg}d; ${ac_end}q" $tmp/subs.
sed >$tmp/subs.frag
22179 sed "${ac_end}q" $tmp/subs.
sed >$tmp/subs.frag
22181 if test ! -s $tmp/subs.frag
; then
22182 ac_more_lines
=false
22184 # The purpose of the label and of the branching condition is to
22185 # speed up the sed processing (if there are no `@' at all, there
22186 # is no need to browse any of the substitutions).
22187 # These are the two extra sed commands mentioned above.
22189 /@[a-zA-Z_][a-zA-Z_0-9]*@/!b' && cat $tmp/subs.frag
) >$tmp/subs-
$ac_sed_frag.
sed
22190 if test -z "$ac_sed_cmds"; then
22191 ac_sed_cmds
="sed -f $tmp/subs-$ac_sed_frag.sed"
22193 ac_sed_cmds
="$ac_sed_cmds | sed -f $tmp/subs-$ac_sed_frag.sed"
22195 ac_sed_frag
=`expr $ac_sed_frag + 1`
22197 ac_end
=`expr $ac_end + $ac_max_sed_lines`
22200 if test -z "$ac_sed_cmds"; then
22203 fi # test -n "$CONFIG_FILES"
22206 cat >>$CONFIG_STATUS <<\_ACEOF
22207 for ac_file
in : $CONFIG_FILES; do test "x$ac_file" = x
: && continue
22208 # Support "outfile[:infile[:infile...]]", defaulting infile="outfile.in".
22210 - |
*:- |
*:-:* ) # input from stdin
22212 ac_file_in
=`echo "$ac_file" | sed 's,[^:]*:,,'`
22213 ac_file
=`echo "$ac_file" | sed 's,:.*,,'` ;;
22214 *:* ) ac_file_in
=`echo "$ac_file" | sed 's,[^:]*:,,'`
22215 ac_file
=`echo "$ac_file" | sed 's,:.*,,'` ;;
22216 * ) ac_file_in
=$ac_file.
in ;;
22219 # Compute @srcdir@, @top_srcdir@, and @INSTALL@ for subdirectories.
22220 ac_dir
=`(dirname "$ac_file") 2>/dev/null ||
22221 $as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
22222 X"$ac_file" : 'X\(//\)[^/]' \| \
22223 X"$ac_file" : 'X\(//\)$' \| \
22224 X"$ac_file" : 'X\(/\)' \| \
22225 . : '\(.\)' 2>/dev/null ||
22227 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
22228 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
22229 /^X\(\/\/\)$/{ s//\1/; q; }
22230 /^X\(\/\).*/{ s//\1/; q; }
22232 { if $as_mkdir_p; then
22237 while test ! -d "$as_dir"; do
22238 as_dirs
="$as_dir $as_dirs"
22239 as_dir
=`(dirname "$as_dir") 2>/dev/null ||
22240 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
22241 X"$as_dir" : 'X\(//\)[^/]' \| \
22242 X"$as_dir" : 'X\(//\)$' \| \
22243 X"$as_dir" : 'X\(/\)' \| \
22244 . : '\(.\)' 2>/dev/null ||
22246 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
22247 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
22248 /^X\(\/\/\)$/{ s//\1/; q; }
22249 /^X\(\/\).*/{ s//\1/; q; }
22252 test ! -n "$as_dirs" || mkdir
$as_dirs
22253 fi ||
{ { echo "$as_me:$LINENO: error: cannot create directory \"$ac_dir\"" >&5
22254 echo "$as_me: error: cannot create directory \"$ac_dir\"" >&2;}
22255 { (exit 1); exit 1; }; }; }
22259 if test "$ac_dir" != .
; then
22260 ac_dir_suffix
=/`echo "$ac_dir" | sed 's,^\.[\\/],,'`
22261 # A "../" for each directory in $ac_dir_suffix.
22262 ac_top_builddir
=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,../,g'`
22264 ac_dir_suffix
= ac_top_builddir
=
22268 .
) # No --srcdir option. We are building in place.
22270 if test -z "$ac_top_builddir"; then
22273 ac_top_srcdir
=`echo $ac_top_builddir | sed 's,/$,,'`
22275 [\\/]* | ?
:[\\/]* ) # Absolute path.
22276 ac_srcdir
=$srcdir$ac_dir_suffix;
22277 ac_top_srcdir
=$srcdir ;;
22278 *) # Relative path.
22279 ac_srcdir
=$ac_top_builddir$srcdir$ac_dir_suffix
22280 ac_top_srcdir
=$ac_top_builddir$srcdir ;;
22283 # Do not use `cd foo && pwd` to compute absolute paths, because
22284 # the directories may not exist.
22286 .
) ac_abs_builddir
="$ac_dir";;
22289 .
) ac_abs_builddir
=`pwd`;;
22290 [\\/]* | ?
:[\\/]* ) ac_abs_builddir
="$ac_dir";;
22291 *) ac_abs_builddir
=`pwd`/"$ac_dir";;
22294 case $ac_abs_builddir in
22295 .
) ac_abs_top_builddir
=${ac_top_builddir}.
;;
22297 case ${ac_top_builddir}.
in
22298 .
) ac_abs_top_builddir
=$ac_abs_builddir;;
22299 [\\/]* | ?
:[\\/]* ) ac_abs_top_builddir
=${ac_top_builddir}.
;;
22300 *) ac_abs_top_builddir
=$ac_abs_builddir/${ac_top_builddir}.
;;
22303 case $ac_abs_builddir in
22304 .
) ac_abs_srcdir
=$ac_srcdir;;
22307 .
) ac_abs_srcdir
=$ac_abs_builddir;;
22308 [\\/]* | ?
:[\\/]* ) ac_abs_srcdir
=$ac_srcdir;;
22309 *) ac_abs_srcdir
=$ac_abs_builddir/$ac_srcdir;;
22312 case $ac_abs_builddir in
22313 .
) ac_abs_top_srcdir
=$ac_top_srcdir;;
22315 case $ac_top_srcdir in
22316 .
) ac_abs_top_srcdir
=$ac_abs_builddir;;
22317 [\\/]* | ?
:[\\/]* ) ac_abs_top_srcdir
=$ac_top_srcdir;;
22318 *) ac_abs_top_srcdir
=$ac_abs_builddir/$ac_top_srcdir;;
22324 [\\/$
]* | ?
:[\\/]* ) ac_INSTALL
=$INSTALL ;;
22325 *) ac_INSTALL
=$ac_top_builddir$INSTALL ;;
22328 if test x
"$ac_file" != x-
; then
22329 { echo "$as_me:$LINENO: creating $ac_file" >&5
22330 echo "$as_me: creating $ac_file" >&6;}
22333 # Let's still pretend it is `configure' which instantiates (i.e., don't
22334 # use $as_me), people would be surprised to read:
22335 # /* config.h. Generated by config.status. */
22336 if test x
"$ac_file" = x-
; then
22339 configure_input
="$ac_file. "
22341 configure_input
=$configure_input"Generated from `echo $ac_file_in |
22342 sed 's,.*/,,'` by configure."
22344 # First look for the input files in the build tree, otherwise in the
22346 ac_file_inputs
=`IFS=:
22347 for f in $ac_file_in; do
22349 -) echo $tmp/stdin ;;
22351 # Absolute (can't be DOS-style, as IFS=:)
22352 test -f "$f" || { { echo "$as_me:$LINENO: error: cannot find input file: $f" >&5
22353 echo "$as_me: error: cannot find input file: $f" >&2;}
22354 { (exit 1); exit 1; }; }
22357 if test -f "$f"; then
22360 elif test -f "$srcdir/$f"; then
22365 { { echo "$as_me:$LINENO: error: cannot find input file: $f" >&5
22366 echo "$as_me: error: cannot find input file: $f" >&2;}
22367 { (exit 1); exit 1; }; }
22370 done` ||
{ (exit 1); exit 1; }
22372 cat >>$CONFIG_STATUS <<_ACEOF
22376 cat >>$CONFIG_STATUS <<\_ACEOF
22378 /@
[a-zA-Z_
][a-zA-Z_0-9
]*@
/!b
22379 s
,@configure_input@
,$configure_input,;t t
22380 s
,@srcdir@
,$ac_srcdir,;t t
22381 s
,@abs_srcdir@
,$ac_abs_srcdir,;t t
22382 s
,@top_srcdir@
,$ac_top_srcdir,;t t
22383 s
,@abs_top_srcdir@
,$ac_abs_top_srcdir,;t t
22384 s
,@builddir@
,$ac_builddir,;t t
22385 s
,@abs_builddir@
,$ac_abs_builddir,;t t
22386 s
,@top_builddir@
,$ac_top_builddir,;t t
22387 s
,@abs_top_builddir@
,$ac_abs_top_builddir,;t t
22388 s
,@INSTALL@
,$ac_INSTALL,;t t
22389 " $ac_file_inputs | (eval "$ac_sed_cmds") >$tmp/out
22391 if test x"$ac_file" != x-; then
22392 mv $tmp/out $ac_file
22400 cat >>$CONFIG_STATUS <<\_ACEOF
22403 # CONFIG_HEADER section.
22406 # These sed commands are passed to sed as "A NAME B NAME C VALUE D
", where
22407 # NAME is the cpp macro being defined and VALUE is the value it is being given.
22409 # ac_d sets the value in "#define NAME VALUE" lines.
22410 ac_dA
='s,^\([ ]*\)#\([ ]*define[ ][ ]*\)'
22411 ac_dB
='[ ].*$,\1#\2'
22414 # ac_u turns "#undef NAME" without trailing blanks into "#define NAME VALUE".
22415 ac_uA
='s,^\([ ]*\)#\([ ]*\)undef\([ ][ ]*\)'
22416 ac_uB
='$,\1#\2define\3'
22420 for ac_file
in : $CONFIG_HEADERS; do test "x$ac_file" = x
: && continue
22421 # Support "outfile[:infile[:infile...]]", defaulting infile="outfile.in".
22423 - |
*:- |
*:-:* ) # input from stdin
22425 ac_file_in
=`echo "$ac_file" | sed 's,[^:]*:,,'`
22426 ac_file
=`echo "$ac_file" | sed 's,:.*,,'` ;;
22427 *:* ) ac_file_in
=`echo "$ac_file" | sed 's,[^:]*:,,'`
22428 ac_file
=`echo "$ac_file" | sed 's,:.*,,'` ;;
22429 * ) ac_file_in
=$ac_file.
in ;;
22432 test x
"$ac_file" != x-
&& { echo "$as_me:$LINENO: creating $ac_file" >&5
22433 echo "$as_me: creating $ac_file" >&6;}
22435 # First look for the input files in the build tree, otherwise in the
22437 ac_file_inputs
=`IFS=:
22438 for f in $ac_file_in; do
22440 -) echo $tmp/stdin ;;
22442 # Absolute (can't be DOS-style, as IFS=:)
22443 test -f "$f" || { { echo "$as_me:$LINENO: error: cannot find input file: $f" >&5
22444 echo "$as_me: error: cannot find input file: $f" >&2;}
22445 { (exit 1); exit 1; }; }
22446 # Do quote $f, to prevent DOS paths from being IFS'd.
22449 if test -f "$f"; then
22452 elif test -f "$srcdir/$f"; then
22457 { { echo "$as_me:$LINENO: error: cannot find input file: $f" >&5
22458 echo "$as_me: error: cannot find input file: $f" >&2;}
22459 { (exit 1); exit 1; }; }
22462 done` ||
{ (exit 1); exit 1; }
22463 # Remove the trailing spaces.
22464 sed 's/[ ]*$//' $ac_file_inputs >$tmp/in
22468 # Transform confdefs.h into two sed scripts, `conftest.defines' and
22469 # `conftest.undefs', that substitutes the proper values into
22470 # config.h.in to produce config.h. The first handles `#define'
22471 # templates, and the second `#undef' templates.
22472 # And first: Protect against being on the right side of a sed subst in
22473 # config.status. Protect against being in an unquoted here document
22474 # in config.status.
22475 rm -f conftest.defines conftest.undefs
22476 # Using a here document instead of a string reduces the quoting nightmare.
22477 # Putting comments in sed scripts is not portable.
22479 # `end' is used to avoid that the second main sed command (meant for
22480 # 0-ary CPP macros) applies to n-ary macro definitions.
22481 # See the Autoconf documentation for `clear'.
22482 cat >confdef2sed.
sed <<\_ACEOF
22487 s,^[ ]*#[ ]*define[ ][ ]*\([^ (][^ (]*\)\(([^)]*)\)[ ]*\(.*\)$,${ac_dA}\1${ac_dB}\1\2${ac_dC}\3${ac_dD},gp
22489 s,^[ ]*#[ ]*define[ ][ ]*\([^ ][^ ]*\)[ ]*\(.*\)$,${ac_dA}\1${ac_dB}\1${ac_dC}\2${ac_dD},gp
22492 # If some macros were called several times there might be several times
22493 # the same #defines, which is useless. Nevertheless, we may not want to
22494 # sort them, since we want the *last* AC-DEFINE to be honored.
22495 uniq confdefs.h | sed -n -f confdef2sed.sed >conftest.defines
22496 sed 's/ac_d/ac_u/g' conftest.defines >conftest.undefs
22497 rm -f confdef2sed.sed
22499 # This sed command replaces #undef with comments. This is necessary, for
22500 # example, in the case of _POSIX_SOURCE, which is predefined and required
22501 # on some systems where configure will not decide to define it.
22502 cat >>conftest.undefs <<\_ACEOF
22503 s,^[ ]*#[ ]*undef[ ][ ]*[a-zA-Z_][a-zA-Z_0-9]*,/* & */,
22506 # Break up conftest.defines because some shells have a limit on the size
22507 # of here documents, and old seds have small limits too (100 cmds).
22508 echo ' # Handle all the #define templates only if necessary.' >>$CONFIG_STATUS
22509 echo ' if grep "^[ ]*#[ ]*define" $tmp/in >/dev/null; then' >>$CONFIG_STATUS
22510 echo ' # If there are no defines, we may have an empty if/fi' >>$CONFIG_STATUS
22511 echo ' :' >>$CONFIG_STATUS
22512 rm -f conftest.tail
22513 while grep . conftest.defines >/dev/null
22515 # Write a limited-size here document to $tmp/defines.sed.
22516 echo ' cat >$tmp/defines.sed <<CEOF' >>$CONFIG_STATUS
22517 # Speed up: don't consider the non `#define' lines.
22518 echo '/^[ ]*#[ ]*define/!b' >>$CONFIG_STATUS
22519 # Work around the forget-to-reset-the-flag bug.
22520 echo 't clr' >>$CONFIG_STATUS
22521 echo ': clr' >>$CONFIG_STATUS
22522 sed ${ac_max_here_lines}q conftest.defines
>>$CONFIG_STATUS
22524 sed -f $tmp/defines.sed $tmp/in >$tmp/out
22526 mv $tmp/out $tmp/in
22528 sed 1,${ac_max_here_lines}d conftest.defines
>conftest.
tail
22529 rm -f conftest.defines
22530 mv conftest.
tail conftest.defines
22532 rm -f conftest.defines
22533 echo ' fi # grep' >>$CONFIG_STATUS
22534 echo >>$CONFIG_STATUS
22536 # Break up conftest.undefs because some shells have a limit on the size
22537 # of here documents, and old seds have small limits too (100 cmds).
22538 echo ' # Handle all the #undef templates' >>$CONFIG_STATUS
22539 rm -f conftest.
tail
22540 while grep . conftest.undefs
>/dev
/null
22542 # Write a limited-size here document to $tmp/undefs.sed.
22543 echo ' cat >$tmp/undefs.sed <<CEOF' >>$CONFIG_STATUS
22544 # Speed up: don't consider the non
`#undef'
22545 echo '/^[ ]*#[ ]*undef/!b' >>$CONFIG_STATUS
22546 # Work around the forget-to-reset-the-flag bug.
22547 echo 't clr' >>$CONFIG_STATUS
22548 echo ': clr' >>$CONFIG_STATUS
22549 sed ${ac_max_here_lines}q conftest.undefs >>$CONFIG_STATUS
22551 sed -f $tmp/undefs.sed $tmp/in >$tmp/out
22553 mv $tmp/out $tmp/in
22555 sed 1,${ac_max_here_lines}d conftest.undefs >conftest.tail
22556 rm -f conftest.undefs
22557 mv conftest.tail conftest.undefs
22559 rm -f conftest.undefs
22561 cat >>$CONFIG_STATUS <<\_ACEOF
22562 # Let's still pretend it is `configure
' which instantiates (i.e., don't
22563 # use $as_me), people would be surprised to read:
22564 # /* config.h. Generated by config.status. */
22565 if test x
"$ac_file" = x-
; then
22566 echo "/* Generated by configure. */" >$tmp/config.h
22568 echo "/* $ac_file. Generated by configure. */" >$tmp/config.h
22570 cat $tmp/in >>$tmp/config.h
22572 if test x
"$ac_file" != x-
; then
22573 if diff $ac_file $tmp/config.h
>/dev
/null
2>&1; then
22574 { echo "$as_me:$LINENO: $ac_file is unchanged" >&5
22575 echo "$as_me: $ac_file is unchanged" >&6;}
22577 ac_dir
=`(dirname "$ac_file") 2>/dev/null ||
22578 $as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
22579 X"$ac_file" : 'X\(//\)[^/]' \| \
22580 X"$ac_file" : 'X\(//\)$' \| \
22581 X"$ac_file" : 'X\(/\)' \| \
22582 . : '\(.\)' 2>/dev/null ||
22584 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
22585 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
22586 /^X\(\/\/\)$/{ s//\1/; q; }
22587 /^X\(\/\).*/{ s//\1/; q; }
22589 { if $as_mkdir_p; then
22594 while test ! -d "$as_dir"; do
22595 as_dirs
="$as_dir $as_dirs"
22596 as_dir
=`(dirname "$as_dir") 2>/dev/null ||
22597 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
22598 X"$as_dir" : 'X\(//\)[^/]' \| \
22599 X"$as_dir" : 'X\(//\)$' \| \
22600 X"$as_dir" : 'X\(/\)' \| \
22601 . : '\(.\)' 2>/dev/null ||
22603 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
22604 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
22605 /^X\(\/\/\)$/{ s//\1/; q; }
22606 /^X\(\/\).*/{ s//\1/; q; }
22609 test ! -n "$as_dirs" || mkdir
$as_dirs
22610 fi ||
{ { echo "$as_me:$LINENO: error: cannot create directory \"$ac_dir\"" >&5
22611 echo "$as_me: error: cannot create directory \"$ac_dir\"" >&2;}
22612 { (exit 1); exit 1; }; }; }
22615 mv $tmp/config.h
$ac_file
22619 rm -f $tmp/config.h
22621 # Compute $ac_file's index in $config_headers.
22623 for _am_header
in $config_headers :; do
22624 case $_am_header in
22625 $ac_file |
$ac_file:* )
22628 _am_stamp_count
=`expr $_am_stamp_count + 1` ;;
22631 echo "timestamp for $ac_file" >`(dirname $ac_file) 2>/dev/null ||
22632 $as_expr X$ac_file : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
22633 X$ac_file : 'X\(//\)[^/]' \| \
22634 X$ac_file : 'X\(//\)$' \| \
22635 X$ac_file : 'X\(/\)' \| \
22636 . : '\(.\)' 2>/dev/null ||
22638 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
22639 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
22640 /^X\(\/\/\)$/{ s//\1/; q; }
22641 /^X\(\/\).*/{ s//\1/; q; }
22642 s/.*/./; q'`/stamp-h
$_am_stamp_count
22645 cat >>$CONFIG_STATUS <<\_ACEOF
22648 # CONFIG_LINKS section.
22651 for ac_file
in : $CONFIG_LINKS; do test "x$ac_file" = x
: && continue
22652 ac_dest
=`echo "$ac_file" | sed 's,:.*,,'`
22653 ac_source
=`echo "$ac_file" | sed 's,[^:]*:,,'`
22655 { echo "$as_me:$LINENO: linking $srcdir/$ac_source to $ac_dest" >&5
22656 echo "$as_me: linking $srcdir/$ac_source to $ac_dest" >&6;}
22658 if test ! -r $srcdir/$ac_source; then
22659 { { echo "$as_me:$LINENO: error: $srcdir/$ac_source: file not found" >&5
22660 echo "$as_me: error: $srcdir/$ac_source: file not found" >&2;}
22661 { (exit 1); exit 1; }; }
22665 # Make relative symlinks.
22666 ac_dest_dir
=`(dirname "$ac_dest") 2>/dev/null ||
22667 $as_expr X"$ac_dest" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
22668 X"$ac_dest" : 'X\(//\)[^/]' \| \
22669 X"$ac_dest" : 'X\(//\)$' \| \
22670 X"$ac_dest" : 'X\(/\)' \| \
22671 . : '\(.\)' 2>/dev/null ||
22673 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
22674 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
22675 /^X\(\/\/\)$/{ s//\1/; q; }
22676 /^X\(\/\).*/{ s//\1/; q; }
22678 { if $as_mkdir_p; then
22679 mkdir
-p "$ac_dest_dir"
22681 as_dir
="$ac_dest_dir"
22683 while test ! -d "$as_dir"; do
22684 as_dirs
="$as_dir $as_dirs"
22685 as_dir
=`(dirname "$as_dir") 2>/dev/null ||
22686 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
22687 X"$as_dir" : 'X\(//\)[^/]' \| \
22688 X"$as_dir" : 'X\(//\)$' \| \
22689 X"$as_dir" : 'X\(/\)' \| \
22690 . : '\(.\)' 2>/dev/null ||
22692 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
22693 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
22694 /^X\(\/\/\)$/{ s//\1/; q; }
22695 /^X\(\/\).*/{ s//\1/; q; }
22698 test ! -n "$as_dirs" || mkdir
$as_dirs
22699 fi ||
{ { echo "$as_me:$LINENO: error: cannot create directory \"$ac_dest_dir\"" >&5
22700 echo "$as_me: error: cannot create directory \"$ac_dest_dir\"" >&2;}
22701 { (exit 1); exit 1; }; }; }
22705 if test "$ac_dest_dir" != .
; then
22706 ac_dir_suffix
=/`echo "$ac_dest_dir" | sed 's,^\.[\\/],,'`
22707 # A "../" for each directory in $ac_dir_suffix.
22708 ac_top_builddir
=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,../,g'`
22710 ac_dir_suffix
= ac_top_builddir
=
22714 .
) # No --srcdir option. We are building in place.
22716 if test -z "$ac_top_builddir"; then
22719 ac_top_srcdir
=`echo $ac_top_builddir | sed 's,/$,,'`
22721 [\\/]* | ?
:[\\/]* ) # Absolute path.
22722 ac_srcdir
=$srcdir$ac_dir_suffix;
22723 ac_top_srcdir
=$srcdir ;;
22724 *) # Relative path.
22725 ac_srcdir
=$ac_top_builddir$srcdir$ac_dir_suffix
22726 ac_top_srcdir
=$ac_top_builddir$srcdir ;;
22729 # Do not use `cd foo && pwd` to compute absolute paths, because
22730 # the directories may not exist.
22732 .
) ac_abs_builddir
="$ac_dest_dir";;
22734 case "$ac_dest_dir" in
22735 .
) ac_abs_builddir
=`pwd`;;
22736 [\\/]* | ?
:[\\/]* ) ac_abs_builddir
="$ac_dest_dir";;
22737 *) ac_abs_builddir
=`pwd`/"$ac_dest_dir";;
22740 case $ac_abs_builddir in
22741 .
) ac_abs_top_builddir
=${ac_top_builddir}.
;;
22743 case ${ac_top_builddir}.
in
22744 .
) ac_abs_top_builddir
=$ac_abs_builddir;;
22745 [\\/]* | ?
:[\\/]* ) ac_abs_top_builddir
=${ac_top_builddir}.
;;
22746 *) ac_abs_top_builddir
=$ac_abs_builddir/${ac_top_builddir}.
;;
22749 case $ac_abs_builddir in
22750 .
) ac_abs_srcdir
=$ac_srcdir;;
22753 .
) ac_abs_srcdir
=$ac_abs_builddir;;
22754 [\\/]* | ?
:[\\/]* ) ac_abs_srcdir
=$ac_srcdir;;
22755 *) ac_abs_srcdir
=$ac_abs_builddir/$ac_srcdir;;
22758 case $ac_abs_builddir in
22759 .
) ac_abs_top_srcdir
=$ac_top_srcdir;;
22761 case $ac_top_srcdir in
22762 .
) ac_abs_top_srcdir
=$ac_abs_builddir;;
22763 [\\/]* | ?
:[\\/]* ) ac_abs_top_srcdir
=$ac_top_srcdir;;
22764 *) ac_abs_top_srcdir
=$ac_abs_builddir/$ac_top_srcdir;;
22770 [\\/$
]* | ?
:[\\/]* ) ac_rel_source
=$srcdir/$ac_source ;;
22771 *) ac_rel_source
=$ac_top_builddir$srcdir/$ac_source ;;
22774 # Try a symlink, then a hard link, then a copy.
22775 ln -s $ac_rel_source $ac_dest 2>/dev
/null ||
22776 ln $srcdir/$ac_source $ac_dest 2>/dev
/null ||
22777 cp -p $srcdir/$ac_source $ac_dest ||
22778 { { echo "$as_me:$LINENO: error: cannot link or copy $srcdir/$ac_source to $ac_dest" >&5
22779 echo "$as_me: error: cannot link or copy $srcdir/$ac_source to $ac_dest" >&2;}
22780 { (exit 1); exit 1; }; }
22783 cat >>$CONFIG_STATUS <<\_ACEOF
22786 # CONFIG_COMMANDS section.
22788 for ac_file
in : $CONFIG_COMMANDS; do test "x$ac_file" = x
: && continue
22789 ac_dest
=`echo "$ac_file" | sed 's,:.*,,'`
22790 ac_source
=`echo "$ac_file" | sed 's,[^:]*:,,'`
22791 ac_dir
=`(dirname "$ac_dest") 2>/dev/null ||
22792 $as_expr X"$ac_dest" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
22793 X"$ac_dest" : 'X\(//\)[^/]' \| \
22794 X"$ac_dest" : 'X\(//\)$' \| \
22795 X"$ac_dest" : 'X\(/\)' \| \
22796 . : '\(.\)' 2>/dev/null ||
22798 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
22799 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
22800 /^X\(\/\/\)$/{ s//\1/; q; }
22801 /^X\(\/\).*/{ s//\1/; q; }
22803 { if $as_mkdir_p; then
22808 while test ! -d "$as_dir"; do
22809 as_dirs
="$as_dir $as_dirs"
22810 as_dir
=`(dirname "$as_dir") 2>/dev/null ||
22811 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
22812 X"$as_dir" : 'X\(//\)[^/]' \| \
22813 X"$as_dir" : 'X\(//\)$' \| \
22814 X"$as_dir" : 'X\(/\)' \| \
22815 . : '\(.\)' 2>/dev/null ||
22817 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
22818 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
22819 /^X\(\/\/\)$/{ s//\1/; q; }
22820 /^X\(\/\).*/{ s//\1/; q; }
22823 test ! -n "$as_dirs" || mkdir
$as_dirs
22824 fi ||
{ { echo "$as_me:$LINENO: error: cannot create directory \"$ac_dir\"" >&5
22825 echo "$as_me: error: cannot create directory \"$ac_dir\"" >&2;}
22826 { (exit 1); exit 1; }; }; }
22830 if test "$ac_dir" != .
; then
22831 ac_dir_suffix
=/`echo "$ac_dir" | sed 's,^\.[\\/],,'`
22832 # A "../" for each directory in $ac_dir_suffix.
22833 ac_top_builddir
=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,../,g'`
22835 ac_dir_suffix
= ac_top_builddir
=
22839 .
) # No --srcdir option. We are building in place.
22841 if test -z "$ac_top_builddir"; then
22844 ac_top_srcdir
=`echo $ac_top_builddir | sed 's,/$,,'`
22846 [\\/]* | ?
:[\\/]* ) # Absolute path.
22847 ac_srcdir
=$srcdir$ac_dir_suffix;
22848 ac_top_srcdir
=$srcdir ;;
22849 *) # Relative path.
22850 ac_srcdir
=$ac_top_builddir$srcdir$ac_dir_suffix
22851 ac_top_srcdir
=$ac_top_builddir$srcdir ;;
22854 # Do not use `cd foo && pwd` to compute absolute paths, because
22855 # the directories may not exist.
22857 .
) ac_abs_builddir
="$ac_dir";;
22860 .
) ac_abs_builddir
=`pwd`;;
22861 [\\/]* | ?
:[\\/]* ) ac_abs_builddir
="$ac_dir";;
22862 *) ac_abs_builddir
=`pwd`/"$ac_dir";;
22865 case $ac_abs_builddir in
22866 .
) ac_abs_top_builddir
=${ac_top_builddir}.
;;
22868 case ${ac_top_builddir}.
in
22869 .
) ac_abs_top_builddir
=$ac_abs_builddir;;
22870 [\\/]* | ?
:[\\/]* ) ac_abs_top_builddir
=${ac_top_builddir}.
;;
22871 *) ac_abs_top_builddir
=$ac_abs_builddir/${ac_top_builddir}.
;;
22874 case $ac_abs_builddir in
22875 .
) ac_abs_srcdir
=$ac_srcdir;;
22878 .
) ac_abs_srcdir
=$ac_abs_builddir;;
22879 [\\/]* | ?
:[\\/]* ) ac_abs_srcdir
=$ac_srcdir;;
22880 *) ac_abs_srcdir
=$ac_abs_builddir/$ac_srcdir;;
22883 case $ac_abs_builddir in
22884 .
) ac_abs_top_srcdir
=$ac_top_srcdir;;
22886 case $ac_top_srcdir in
22887 .
) ac_abs_top_srcdir
=$ac_abs_builddir;;
22888 [\\/]* | ?
:[\\/]* ) ac_abs_top_srcdir
=$ac_top_srcdir;;
22889 *) ac_abs_top_srcdir
=$ac_abs_builddir/$ac_top_srcdir;;
22894 { echo "$as_me:$LINENO: executing $ac_dest commands" >&5
22895 echo "$as_me: executing $ac_dest commands" >&6;}
22897 depdir
) $SHELL $ac_aux_dir/mkinstalldirs
$DEPDIR ;;
22898 depfiles
) test x
"$AMDEP_TRUE" != x
"" ||
for mf
in $CONFIG_FILES; do
22899 # Strip MF so we end up with the name of the file.
22900 mf
=`echo "$mf" | sed -e 's/:.*$//'`
22901 # Check whether this is an Automake generated Makefile or not.
22902 # We used to match only the files named `Makefile.in', but
22903 # some people rename them; so instead we look at the file content.
22904 # Grep'ing the first line is not enough: some people post-process
22905 # each Makefile.in and add a new line on top of each file to say so.
22906 # So let's grep whole file.
22907 if grep '^#.*generated by automake' $mf > /dev
/null
2>&1; then
22908 dirpart
=`(dirname "$mf") 2>/dev/null ||
22909 $as_expr X"$mf" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
22910 X"$mf" : 'X\(//\)[^/]' \| \
22911 X"$mf" : 'X\(//\)$' \| \
22912 X"$mf" : 'X\(/\)' \| \
22913 . : '\(.\)' 2>/dev/null ||
22915 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
22916 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
22917 /^X\(\/\/\)$/{ s//\1/; q; }
22918 /^X\(\/\).*/{ s//\1/; q; }
22923 # Extract the definition of DEPDIR, am__include, and am__quote
22924 # from the Makefile without running `make'.
22925 DEPDIR
=`sed -n 's/^DEPDIR = //p' < "$mf"`
22926 test -z "$DEPDIR" && continue
22927 am__include
=`sed -n 's/^am__include = //p' < "$mf"`
22928 test -z "am__include" && continue
22929 am__quote
=`sed -n 's/^am__quote = //p' < "$mf"`
22930 # When using ansi2knr, U may be empty or an underscore; expand it
22931 U
=`sed -n 's/^U = //p' < "$mf"`
22932 # Find all dependency output files, they are included files with
22933 # $(DEPDIR) in their names. We invoke sed twice because it is the
22934 # simplest approach to changing $(DEPDIR) to its actual value in the
22936 for file in `sed -n "
22937 s/^$am__include $am__quote\(.*(DEPDIR).*\)$am__quote"'$/\1/p' <"$mf" | \
22938 sed -e 's/\$(DEPDIR)/'"$DEPDIR"'/g' -e 's/\$U/'"$U"'/g'`; do
22939 # Make sure the directory exists.
22940 test -f "$dirpart/$file" && continue
22941 fdir
=`(dirname "$file") 2>/dev/null ||
22942 $as_expr X"$file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
22943 X"$file" : 'X\(//\)[^/]' \| \
22944 X"$file" : 'X\(//\)$' \| \
22945 X"$file" : 'X\(/\)' \| \
22946 . : '\(.\)' 2>/dev/null ||
22948 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
22949 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
22950 /^X\(\/\/\)$/{ s//\1/; q; }
22951 /^X\(\/\).*/{ s//\1/; q; }
22953 { if $as_mkdir_p; then
22954 mkdir
-p $dirpart/$fdir
22956 as_dir
=$dirpart/$fdir
22958 while test ! -d "$as_dir"; do
22959 as_dirs
="$as_dir $as_dirs"
22960 as_dir
=`(dirname "$as_dir") 2>/dev/null ||
22961 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
22962 X"$as_dir" : 'X\(//\)[^/]' \| \
22963 X"$as_dir" : 'X\(//\)$' \| \
22964 X"$as_dir" : 'X\(/\)' \| \
22965 . : '\(.\)' 2>/dev/null ||
22967 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
22968 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
22969 /^X\(\/\/\)$/{ s//\1/; q; }
22970 /^X\(\/\).*/{ s//\1/; q; }
22973 test ! -n "$as_dirs" || mkdir
$as_dirs
22974 fi ||
{ { echo "$as_me:$LINENO: error: cannot create directory $dirpart/$fdir" >&5
22975 echo "$as_me: error: cannot create directory $dirpart/$fdir" >&2;}
22976 { (exit 1); exit 1; }; }; }
22978 # echo "creating $dirpart/$file"
22979 echo '# dummy' > "$dirpart/$file"
22985 sed -e '/^NAT_FILE[ ]*=/s,^NAT_FILE[ ]*=[ ]*,&config/'"${gdb_host_cpu}"'/,' <Makefile
>Makefile.tmp
22986 mv -f Makefile.tmp Makefile
22989 case x
$CONFIG_HEADERS in
22990 xconfig.h
:config.
in)
22998 cat >>$CONFIG_STATUS <<\_ACEOF
23000 { (exit 0); exit 0; }
23002 chmod +x
$CONFIG_STATUS
23003 ac_clean_files
=$ac_clean_files_save
23006 # configure is writing to config.log, and then calls config.status.
23007 # config.status does its own redirection, appending to config.log.
23008 # Unfortunately, on DOS this fails, as config.log is still kept open
23009 # by configure, so config.status won't be able to write to it; its
23010 # output is simply discarded. So we exec the FD to /dev/null,
23011 # effectively closing config.log, so it can be properly (re)opened and
23012 # appended to by config.status. When coming back to configure, we
23013 # need to make the FD available again.
23014 if test "$no_create" != yes; then
23016 ac_config_status_args
=
23017 test "$silent" = yes &&
23018 ac_config_status_args
="$ac_config_status_args --quiet"
23020 $SHELL $CONFIG_STATUS $ac_config_status_args || ac_cs_success
=false
23022 # Use ||, not &&, to avoid exiting from the if with $? = 1, which
23023 # would make configure fail if this is the last instruction.
23024 $ac_cs_success ||
{ (exit 1); exit 1; }
23028 # CONFIG_SUBDIRS section, as fixed in confsubdir.m4.
23030 if test "$no_recursion" != yes; then
23032 # Remove --cache-file and --srcdir arguments so they do not pile up.
23033 ac_sub_configure_args
=
23035 eval "set x $ac_configure_args"
23039 if test -n "$ac_prev"; then
23044 -cache-file |
--cache-file |
--cache-fil |
--cache-fi \
23045 |
--cache-f |
--cache- |
--cache |
--cach |
--cac |
--ca |
--c)
23046 ac_prev
=cache_file
;;
23047 -cache-file=* |
--cache-file=* |
--cache-fil=* |
--cache-fi=* \
23048 |
--cache-f=* |
--cache-=* |
--cache=* |
--cach=* |
--cac=* |
--ca=* \
23051 --config-cache |
-C)
23053 -srcdir |
--srcdir |
--srcdi |
--srcd |
--src |
--sr)
23055 -srcdir=* |
--srcdir=* |
--srcdi=* |
--srcd=* |
--src=* |
--sr=*)
23057 -prefix |
--prefix |
--prefi |
--pref |
--pre |
--pr |
--p)
23059 -prefix=* |
--prefix=* |
--prefi=* |
--pref=* |
--pre=* |
--pr=* |
--p=*)
23063 *\'*) ac_arg
=`echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;;
23065 ac_sub_configure_args
="$ac_sub_configure_args '$ac_arg'" ;;
23069 # Always prepend --prefix to ensure using the same prefix
23070 # in subdir configurations.
23071 ac_arg
="--prefix=$prefix"
23073 *\'*) ac_arg
=`echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;;
23075 ac_sub_configure_args
="$ac_arg $ac_sub_configure_args"
23078 for ac_dir
in : $subdirs; do test "x$ac_dir" = x
: && continue
23080 # Do not complain, so a configure script can configure whichever
23081 # parts of a large source tree are present.
23082 test -d "$srcdir/$ac_dir" ||
continue
23084 { echo "$as_me:$LINENO: configuring in $ac_dir" >&5
23085 echo "$as_me: configuring in $ac_dir" >&6;}
23086 { if $as_mkdir_p; then
23091 while test ! -d "$as_dir"; do
23092 as_dirs
="$as_dir $as_dirs"
23093 as_dir
=`(dirname "$as_dir") 2>/dev/null ||
23094 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
23095 X"$as_dir" : 'X\(//\)[^/]' \| \
23096 X"$as_dir" : 'X\(//\)$' \| \
23097 X"$as_dir" : 'X\(/\)' \| \
23098 . : '\(.\)' 2>/dev/null ||
23100 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
23101 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
23102 /^X\(\/\/\)$/{ s//\1/; q; }
23103 /^X\(\/\).*/{ s//\1/; q; }
23106 test ! -n "$as_dirs" || mkdir
$as_dirs
23107 fi ||
{ { echo "$as_me:$LINENO: error: cannot create directory \"$ac_dir\"" >&5
23108 echo "$as_me: error: cannot create directory \"$ac_dir\"" >&2;}
23109 { (exit 1); exit 1; }; }; }
23113 if test "$ac_dir" != .
; then
23114 ac_dir_suffix
=/`echo "$ac_dir" | sed 's,^\.[\\/],,'`
23115 # A "../" for each directory in $ac_dir_suffix.
23116 ac_top_builddir
=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,../,g'`
23118 ac_dir_suffix
= ac_top_builddir
=
23122 .
) # No --srcdir option. We are building in place.
23124 if test -z "$ac_top_builddir"; then
23127 ac_top_srcdir
=`echo $ac_top_builddir | sed 's,/$,,'`
23129 [\\/]* | ?
:[\\/]* ) # Absolute path.
23130 ac_srcdir
=$srcdir$ac_dir_suffix;
23131 ac_top_srcdir
=$srcdir ;;
23132 *) # Relative path.
23133 ac_srcdir
=$ac_top_builddir$srcdir$ac_dir_suffix
23134 ac_top_srcdir
=$ac_top_builddir$srcdir ;;
23137 # Do not use `cd foo && pwd` to compute absolute paths, because
23138 # the directories may not exist.
23140 .
) ac_abs_builddir
="$ac_dir";;
23143 .
) ac_abs_builddir
=`pwd`;;
23144 [\\/]* | ?
:[\\/]* ) ac_abs_builddir
="$ac_dir";;
23145 *) ac_abs_builddir
=`pwd`/"$ac_dir";;
23148 case $ac_abs_builddir in
23149 .
) ac_abs_top_builddir
=${ac_top_builddir}.
;;
23151 case ${ac_top_builddir}.
in
23152 .
) ac_abs_top_builddir
=$ac_abs_builddir;;
23153 [\\/]* | ?
:[\\/]* ) ac_abs_top_builddir
=${ac_top_builddir}.
;;
23154 *) ac_abs_top_builddir
=$ac_abs_builddir/${ac_top_builddir}.
;;
23157 case $ac_abs_builddir in
23158 .
) ac_abs_srcdir
=$ac_srcdir;;
23161 .
) ac_abs_srcdir
=$ac_abs_builddir;;
23162 [\\/]* | ?
:[\\/]* ) ac_abs_srcdir
=$ac_srcdir;;
23163 *) ac_abs_srcdir
=$ac_abs_builddir/$ac_srcdir;;
23166 case $ac_abs_builddir in
23167 .
) ac_abs_top_srcdir
=$ac_top_srcdir;;
23169 case $ac_top_srcdir in
23170 .
) ac_abs_top_srcdir
=$ac_abs_builddir;;
23171 [\\/]* | ?
:[\\/]* ) ac_abs_top_srcdir
=$ac_top_srcdir;;
23172 *) ac_abs_top_srcdir
=$ac_abs_builddir/$ac_top_srcdir;;
23179 # Check for guested configure; otherwise get Cygnus style configure.
23180 if test -f "$ac_srcdir/configure.gnu"; then
23181 ac_sub_configure
=$ac_srcdir/configure.gnu
23182 elif test -f "$ac_srcdir/configure"; then
23183 ac_sub_configure
=$ac_srcdir/configure
23184 elif test -f "$ac_srcdir/configure.in"; then
23185 # This should be Cygnus configure.
23186 ac_sub_configure
=$ac_aux_dir/configure
23188 { echo "$as_me:$LINENO: WARNING: no configuration information is in $ac_dir" >&5
23189 echo "$as_me: WARNING: no configuration information is in $ac_dir" >&2;}
23193 # The recursion is here.
23194 if test -n "$ac_sub_configure"; then
23195 # Make the cache file name correct relative to the subdirectory.
23196 case $cache_file in
23197 [\\/]* | ?
:[\\/]* ) ac_sub_cache_file
=$cache_file ;;
23198 *) # Relative path.
23199 ac_sub_cache_file
=$ac_top_builddir$cache_file ;;
23202 { echo "$as_me:$LINENO: running $SHELL $ac_sub_configure $ac_sub_configure_args --cache-file=$ac_sub_cache_file --srcdir=$ac_srcdir" >&5
23203 echo "$as_me: running $SHELL $ac_sub_configure $ac_sub_configure_args --cache-file=$ac_sub_cache_file --srcdir=$ac_srcdir" >&6;}
23204 # The eval makes quoting arguments work.
23205 eval "\$SHELL \"\$ac_sub_configure\" $ac_sub_configure_args \
23206 --cache-file=\"\$ac_sub_cache_file\" --srcdir=\"\$ac_srcdir\"" ||
23207 { { echo "$as_me:$LINENO: error: $ac_sub_configure failed for $ac_dir" >&5
23208 echo "$as_me: error: $ac_sub_configure failed for $ac_dir" >&2;}
23209 { (exit 1); exit 1; }; }