2 # Guess values for system-dependent variables and create Makefiles.
3 # Generated by GNU Autoconf 2.59 for libjava version-unused.
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.
268 PACKAGE_NAME
='libjava'
269 PACKAGE_TARNAME
='libjava'
270 PACKAGE_VERSION
='version-unused'
271 PACKAGE_STRING
='libjava version-unused'
274 ac_unique_file
="java/lang/System.java"
275 ac_subdirs_all
="$ac_subdirs_all classpath libltdl"
276 # Factoring default headers for most tests.
277 ac_includes_default
="\
280 # include <sys/types.h>
283 # include <sys/stat.h>
294 # if !STDC_HEADERS && HAVE_MEMORY_H
300 # include <strings.h>
303 # include <inttypes.h>
313 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 build build_cpu build_vendor build_os build_libsubdir build_subdir host_subdir target_subdir libgcj_basedir host host_cpu host_vendor host_os target target_cpu target_vendor target_os target_noncanonical LN_S mkinstalldirs CC ac_ct_CC EXEEXT OBJEXT CXX ac_ct_CXX CFLAGS CXXFLAGS LDFLAGS INSTALL_PROGRAM INSTALL_SCRIPT INSTALL_DATA CYGPATH_W PACKAGE VERSION ACLOCAL AUTOCONF AUTOMAKE AUTOHEADER MAKEINFO install_sh STRIP ac_ct_STRIP INSTALL_STRIP_PROGRAM mkdir_p AWK SET_MAKE am__leading_dot AMTAR am__tar am__untar DEPDIR am__include am__quote AMDEP_TRUE AMDEP_FALSE AMDEPBACKSLASH CCDEPMODE am__fastdepCC_TRUE am__fastdepCC_FALSE CXXDEPMODE am__fastdepCXX_TRUE am__fastdepCXX_FALSE AS ac_ct_AS LD ac_ct_LD AR ac_ct_AR RANLIB ac_ct_RANLIB JAR ZIP UNZIP BASH_JAR_TRUE BASH_JAR_FALSE MAINTAINER_MODE_TRUE MAINTAINER_MODE_FALSE MAINT LIBGCJ_CFLAGS LIBGCJ_CXXFLAGS LIBGCJ_JAVAFLAGS LIBGCJ_LD_SYMBOLIC LIBGCJDEBUG TOOLKIT XLIB_AWT_TRUE XLIB_AWT_FALSE GCJH INCLTDL LIBLTDL DIRLTDL LIBTOOL CXXCPP CPPFLAGS GCJ GCJFLAGS GCJDEPMODE am__fastdepGCJ_TRUE am__fastdepGCJ_FALSE subdirs TESTSUBDIR_TRUE TESTSUBDIR_FALSE JAVA_HOME_SET_TRUE JAVA_HOME_SET_FALSE JAVA_HOME INTERPRETER LIBFFI LIBFFIINCS PLATFORM_INNER_NAT_HDRS CPP EGREP USING_WIN32_PLATFORM_TRUE USING_WIN32_PLATFORM_FALSE USING_POSIX_PLATFORM_TRUE USING_POSIX_PLATFORM_FALSE USING_DARWIN_CRT_TRUE USING_DARWIN_CRT_FALSE SYSTEMSPEC LIBGCJTESTSPEC ZLIBSPEC ZLIBTESTSPEC X_CFLAGS X_PRE_LIBS X_LIBS X_EXTRA_LIBS extra_ldflags_libjava GCLIBS GCINCS GCDEPS GCSPEC JC1GCSPEC GCTESTSPEC USING_BOEHMGC_TRUE USING_BOEHMGC_FALSE USING_NOGC_TRUE USING_NOGC_FALSE THREADLIBS THREADINCS THREADDEPS THREADSPEC THREADSTARTFILESPEC THREADLDFLAGS THREADCXXFLAGS USING_POSIX_THREADS_TRUE USING_POSIX_THREADS_FALSE USING_WIN32_THREADS_TRUE USING_WIN32_THREADS_FALSE USING_NO_THREADS_TRUE USING_NO_THREADS_FALSE HASH_SYNC_SPEC USING_GCC_TRUE USING_GCC_FALSE LIBICONV LTLIBICONV PKG_CONFIG GTK_CFLAGS GTK_LIBS GLIB_CFLAGS GLIB_LIBS LIBART_CFLAGS LIBART_LIBS CLASSPATH_SEPARATOR ac_ct_GCJ ZLIBS SYS_ZLIBS ZINCS DIVIDESPEC CHECKREFSPEC EXCEPTIONSPEC BACKTRACESPEC IEEESPEC NATIVE_TRUE NATIVE_FALSE NEEDS_DATA_START_TRUE NEEDS_DATA_START_FALSE GCC_UNWIND_INCLUDE toolexecdir toolexecmainlibdir toolexeclibdir dbexecdir GCJVERSION gxx_include_dir libstdcxx_incdir ALLOCA PERL SYSDEP_SOURCES LD_START_STATIC_SPEC LD_FINISH_STATIC_SPEC here LIBOBJS LTLIBOBJS'
316 # Initialize some variables set by options.
318 ac_init_version
=false
319 # The variables have the same names as the options, with
320 # dashes changed to underlines.
328 program_transform_name
=s
,x
,x
,
336 # Installation directory options.
337 # These are left unexpanded so users can "make install exec_prefix=/foo"
338 # and all the variables that are supposed to be based on exec_prefix
339 # by default will actually change.
340 # Use braces instead of parens because sh, perl, etc. also accept them.
341 bindir
='${exec_prefix}/bin'
342 sbindir
='${exec_prefix}/sbin'
343 libexecdir
='${exec_prefix}/libexec'
344 datadir
='${prefix}/share'
345 sysconfdir
='${prefix}/etc'
346 sharedstatedir
='${prefix}/com'
347 localstatedir
='${prefix}/var'
348 libdir
='${exec_prefix}/lib'
349 includedir
='${prefix}/include'
350 oldincludedir
='/usr/include'
351 infodir
='${prefix}/info'
352 mandir
='${prefix}/man'
357 # If the previous option needs an argument, assign it.
358 if test -n "$ac_prev"; then
359 eval "$ac_prev=\$ac_option"
364 ac_optarg
=`expr "x$ac_option" : 'x[^=]*=\(.*\)'`
366 # Accept the important Cygnus configure options, so we can diagnose typos.
370 -bindir |
--bindir |
--bindi |
--bind |
--bin |
--bi)
372 -bindir=* |
--bindir=* |
--bindi=* |
--bind=* |
--bin=* |
--bi=*)
375 -build |
--build |
--buil |
--bui |
--bu)
376 ac_prev
=build_alias
;;
377 -build=* |
--build=* |
--buil=* |
--bui=* |
--bu=*)
378 build_alias
=$ac_optarg ;;
380 -cache-file |
--cache-file |
--cache-fil |
--cache-fi \
381 |
--cache-f |
--cache- |
--cache |
--cach |
--cac |
--ca |
--c)
382 ac_prev
=cache_file
;;
383 -cache-file=* |
--cache-file=* |
--cache-fil=* |
--cache-fi=* \
384 |
--cache-f=* |
--cache-=* |
--cache=* |
--cach=* |
--cac=* |
--ca=* |
--c=*)
385 cache_file
=$ac_optarg ;;
388 cache_file
=config.cache
;;
390 -datadir |
--datadir |
--datadi |
--datad |
--data |
--dat |
--da)
392 -datadir=* |
--datadir=* |
--datadi=* |
--datad=* |
--data=* |
--dat=* \
394 datadir
=$ac_optarg ;;
396 -disable-* |
--disable-*)
397 ac_feature
=`expr "x$ac_option" : 'x-*disable-\(.*\)'`
398 # Reject names that are not valid shell variable names.
399 expr "x$ac_feature" : ".*[^-_$as_cr_alnum]" >/dev
/null
&&
400 { echo "$as_me: error: invalid feature name: $ac_feature" >&2
401 { (exit 1); exit 1; }; }
402 ac_feature
=`echo $ac_feature | sed 's/-/_/g'`
403 eval "enable_$ac_feature=no" ;;
405 -enable-* |
--enable-*)
406 ac_feature
=`expr "x$ac_option" : 'x-*enable-\([^=]*\)'`
407 # Reject names that are not valid shell variable names.
408 expr "x$ac_feature" : ".*[^-_$as_cr_alnum]" >/dev
/null
&&
409 { echo "$as_me: error: invalid feature name: $ac_feature" >&2
410 { (exit 1); exit 1; }; }
411 ac_feature
=`echo $ac_feature | sed 's/-/_/g'`
413 *=*) ac_optarg
=`echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"`;;
416 eval "enable_$ac_feature='$ac_optarg'" ;;
418 -exec-prefix |
--exec_prefix |
--exec-prefix |
--exec-prefi \
419 |
--exec-pref |
--exec-pre |
--exec-pr |
--exec-p |
--exec- \
420 |
--exec |
--exe |
--ex)
421 ac_prev
=exec_prefix
;;
422 -exec-prefix=* |
--exec_prefix=* |
--exec-prefix=* |
--exec-prefi=* \
423 |
--exec-pref=* |
--exec-pre=* |
--exec-pr=* |
--exec-p=* |
--exec-=* \
424 |
--exec=* |
--exe=* |
--ex=*)
425 exec_prefix
=$ac_optarg ;;
427 -gas |
--gas |
--ga |
--g)
428 # Obsolete; use --with-gas.
431 -help |
--help |
--hel |
--he |
-h)
433 -help=r
* |
--help=r
* |
--hel=r
* |
--he=r
* |
-hr*)
434 ac_init_help
=recursive
;;
435 -help=s
* |
--help=s
* |
--hel=s
* |
--he=s
* |
-hs*)
436 ac_init_help
=short
;;
438 -host |
--host |
--hos |
--ho)
439 ac_prev
=host_alias
;;
440 -host=* |
--host=* |
--hos=* |
--ho=*)
441 host_alias
=$ac_optarg ;;
443 -includedir |
--includedir |
--includedi |
--included |
--include \
444 |
--includ |
--inclu |
--incl |
--inc)
445 ac_prev
=includedir
;;
446 -includedir=* |
--includedir=* |
--includedi=* |
--included=* |
--include=* \
447 |
--includ=* |
--inclu=* |
--incl=* |
--inc=*)
448 includedir
=$ac_optarg ;;
450 -infodir |
--infodir |
--infodi |
--infod |
--info |
--inf)
452 -infodir=* |
--infodir=* |
--infodi=* |
--infod=* |
--info=* |
--inf=*)
453 infodir
=$ac_optarg ;;
455 -libdir |
--libdir |
--libdi |
--libd)
457 -libdir=* |
--libdir=* |
--libdi=* |
--libd=*)
460 -libexecdir |
--libexecdir |
--libexecdi |
--libexecd |
--libexec \
461 |
--libexe |
--libex |
--libe)
462 ac_prev
=libexecdir
;;
463 -libexecdir=* |
--libexecdir=* |
--libexecdi=* |
--libexecd=* |
--libexec=* \
464 |
--libexe=* |
--libex=* |
--libe=*)
465 libexecdir
=$ac_optarg ;;
467 -localstatedir |
--localstatedir |
--localstatedi |
--localstated \
468 |
--localstate |
--localstat |
--localsta |
--localst \
469 |
--locals |
--local |
--loca |
--loc |
--lo)
470 ac_prev
=localstatedir
;;
471 -localstatedir=* |
--localstatedir=* |
--localstatedi=* |
--localstated=* \
472 |
--localstate=* |
--localstat=* |
--localsta=* |
--localst=* \
473 |
--locals=* |
--local=* |
--loca=* |
--loc=* |
--lo=*)
474 localstatedir
=$ac_optarg ;;
476 -mandir |
--mandir |
--mandi |
--mand |
--man |
--ma |
--m)
478 -mandir=* |
--mandir=* |
--mandi=* |
--mand=* |
--man=* |
--ma=* |
--m=*)
482 # Obsolete; use --without-fp.
485 -no-create |
--no-create |
--no-creat |
--no-crea |
--no-cre \
486 |
--no-cr |
--no-c |
-n)
489 -no-recursion |
--no-recursion |
--no-recursio |
--no-recursi \
490 |
--no-recurs |
--no-recur |
--no-recu |
--no-rec |
--no-re |
--no-r)
493 -oldincludedir |
--oldincludedir |
--oldincludedi |
--oldincluded \
494 |
--oldinclude |
--oldinclud |
--oldinclu |
--oldincl |
--oldinc \
495 |
--oldin |
--oldi |
--old |
--ol |
--o)
496 ac_prev
=oldincludedir
;;
497 -oldincludedir=* |
--oldincludedir=* |
--oldincludedi=* |
--oldincluded=* \
498 |
--oldinclude=* |
--oldinclud=* |
--oldinclu=* |
--oldincl=* |
--oldinc=* \
499 |
--oldin=* |
--oldi=* |
--old=* |
--ol=* |
--o=*)
500 oldincludedir
=$ac_optarg ;;
502 -prefix |
--prefix |
--prefi |
--pref |
--pre |
--pr |
--p)
504 -prefix=* |
--prefix=* |
--prefi=* |
--pref=* |
--pre=* |
--pr=* |
--p=*)
507 -program-prefix |
--program-prefix |
--program-prefi |
--program-pref \
508 |
--program-pre |
--program-pr |
--program-p)
509 ac_prev
=program_prefix
;;
510 -program-prefix=* |
--program-prefix=* |
--program-prefi=* \
511 |
--program-pref=* |
--program-pre=* |
--program-pr=* |
--program-p=*)
512 program_prefix
=$ac_optarg ;;
514 -program-suffix |
--program-suffix |
--program-suffi |
--program-suff \
515 |
--program-suf |
--program-su |
--program-s)
516 ac_prev
=program_suffix
;;
517 -program-suffix=* |
--program-suffix=* |
--program-suffi=* \
518 |
--program-suff=* |
--program-suf=* |
--program-su=* |
--program-s=*)
519 program_suffix
=$ac_optarg ;;
521 -program-transform-name |
--program-transform-name \
522 |
--program-transform-nam |
--program-transform-na \
523 |
--program-transform-n |
--program-transform- \
524 |
--program-transform |
--program-transfor \
525 |
--program-transfo |
--program-transf \
526 |
--program-trans |
--program-tran \
527 |
--progr-tra |
--program-tr |
--program-t)
528 ac_prev
=program_transform_name
;;
529 -program-transform-name=* |
--program-transform-name=* \
530 |
--program-transform-nam=* |
--program-transform-na=* \
531 |
--program-transform-n=* |
--program-transform-=* \
532 |
--program-transform=* |
--program-transfor=* \
533 |
--program-transfo=* |
--program-transf=* \
534 |
--program-trans=* |
--program-tran=* \
535 |
--progr-tra=* |
--program-tr=* |
--program-t=*)
536 program_transform_name
=$ac_optarg ;;
538 -q |
-quiet |
--quiet |
--quie |
--qui |
--qu |
--q \
539 |
-silent |
--silent |
--silen |
--sile |
--sil)
542 -sbindir |
--sbindir |
--sbindi |
--sbind |
--sbin |
--sbi |
--sb)
544 -sbindir=* |
--sbindir=* |
--sbindi=* |
--sbind=* |
--sbin=* \
546 sbindir
=$ac_optarg ;;
548 -sharedstatedir |
--sharedstatedir |
--sharedstatedi \
549 |
--sharedstated |
--sharedstate |
--sharedstat |
--sharedsta \
550 |
--sharedst |
--shareds |
--shared |
--share |
--shar \
552 ac_prev
=sharedstatedir
;;
553 -sharedstatedir=* |
--sharedstatedir=* |
--sharedstatedi=* \
554 |
--sharedstated=* |
--sharedstate=* |
--sharedstat=* |
--sharedsta=* \
555 |
--sharedst=* |
--shareds=* |
--shared=* |
--share=* |
--shar=* \
557 sharedstatedir
=$ac_optarg ;;
559 -site |
--site |
--sit)
561 -site=* |
--site=* |
--sit=*)
564 -srcdir |
--srcdir |
--srcdi |
--srcd |
--src |
--sr)
566 -srcdir=* |
--srcdir=* |
--srcdi=* |
--srcd=* |
--src=* |
--sr=*)
569 -sysconfdir |
--sysconfdir |
--sysconfdi |
--sysconfd |
--sysconf \
570 |
--syscon |
--sysco |
--sysc |
--sys |
--sy)
571 ac_prev
=sysconfdir
;;
572 -sysconfdir=* |
--sysconfdir=* |
--sysconfdi=* |
--sysconfd=* |
--sysconf=* \
573 |
--syscon=* |
--sysco=* |
--sysc=* |
--sys=* |
--sy=*)
574 sysconfdir
=$ac_optarg ;;
576 -target |
--target |
--targe |
--targ |
--tar |
--ta |
--t)
577 ac_prev
=target_alias
;;
578 -target=* |
--target=* |
--targe=* |
--targ=* |
--tar=* |
--ta=* |
--t=*)
579 target_alias
=$ac_optarg ;;
581 -v |
-verbose |
--verbose |
--verbos |
--verbo |
--verb)
584 -version |
--version |
--versio |
--versi |
--vers |
-V)
588 ac_package
=`expr "x$ac_option" : 'x-*with-\([^=]*\)'`
589 # Reject names that are not valid shell variable names.
590 expr "x$ac_package" : ".*[^-_$as_cr_alnum]" >/dev
/null
&&
591 { echo "$as_me: error: invalid package name: $ac_package" >&2
592 { (exit 1); exit 1; }; }
593 ac_package
=`echo $ac_package| sed 's/-/_/g'`
595 *=*) ac_optarg
=`echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"`;;
598 eval "with_$ac_package='$ac_optarg'" ;;
600 -without-* |
--without-*)
601 ac_package
=`expr "x$ac_option" : 'x-*without-\(.*\)'`
602 # Reject names that are not valid shell variable names.
603 expr "x$ac_package" : ".*[^-_$as_cr_alnum]" >/dev
/null
&&
604 { echo "$as_me: error: invalid package name: $ac_package" >&2
605 { (exit 1); exit 1; }; }
606 ac_package
=`echo $ac_package | sed 's/-/_/g'`
607 eval "with_$ac_package=no" ;;
610 # Obsolete; use --with-x.
613 -x-includes |
--x-includes |
--x-include |
--x-includ |
--x-inclu \
614 |
--x-incl |
--x-inc |
--x-in |
--x-i)
615 ac_prev
=x_includes
;;
616 -x-includes=* |
--x-includes=* |
--x-include=* |
--x-includ=* |
--x-inclu=* \
617 |
--x-incl=* |
--x-inc=* |
--x-in=* |
--x-i=*)
618 x_includes
=$ac_optarg ;;
620 -x-libraries |
--x-libraries |
--x-librarie |
--x-librari \
621 |
--x-librar |
--x-libra |
--x-libr |
--x-lib |
--x-li |
--x-l)
622 ac_prev
=x_libraries
;;
623 -x-libraries=* |
--x-libraries=* |
--x-librarie=* |
--x-librari=* \
624 |
--x-librar=* |
--x-libra=* |
--x-libr=* |
--x-lib=* |
--x-li=* |
--x-l=*)
625 x_libraries
=$ac_optarg ;;
627 -*) { echo "$as_me: error: unrecognized option: $ac_option
628 Try \`$0 --help' for more information." >&2
629 { (exit 1); exit 1; }; }
633 ac_envvar
=`expr "x$ac_option" : 'x\([^=]*\)='`
634 # Reject names that are not valid shell variable names.
635 expr "x$ac_envvar" : ".*[^_$as_cr_alnum]" >/dev
/null
&&
636 { echo "$as_me: error: invalid variable name: $ac_envvar" >&2
637 { (exit 1); exit 1; }; }
638 ac_optarg
=`echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"`
639 eval "$ac_envvar='$ac_optarg'"
643 # FIXME: should be removed in autoconf 3.0.
644 echo "$as_me: WARNING: you should use --build, --host, --target" >&2
645 expr "x$ac_option" : ".*[^-._$as_cr_alnum]" >/dev
/null
&&
646 echo "$as_me: WARNING: invalid host type: $ac_option" >&2
647 : ${build_alias=$ac_option} ${host_alias=$ac_option} ${target_alias=$ac_option}
653 if test -n "$ac_prev"; then
654 ac_option
=--`echo $ac_prev | sed 's/_/-/g'`
655 { echo "$as_me: error: missing argument to $ac_option" >&2
656 { (exit 1); exit 1; }; }
659 # Be sure to have absolute paths.
660 for ac_var
in exec_prefix prefix
662 eval ac_val
=$
`echo $ac_var`
664 [\\/$
]* | ?
:[\\/]* | NONE |
'' ) ;;
665 *) { echo "$as_me: error: expected an absolute directory name for --$ac_var: $ac_val" >&2
666 { (exit 1); exit 1; }; };;
670 # Be sure to have absolute paths.
671 for ac_var
in bindir sbindir libexecdir datadir sysconfdir sharedstatedir \
672 localstatedir libdir includedir oldincludedir infodir mandir
674 eval ac_val
=$
`echo $ac_var`
676 [\\/$
]* | ?
:[\\/]* ) ;;
677 *) { echo "$as_me: error: expected an absolute directory name for --$ac_var: $ac_val" >&2
678 { (exit 1); exit 1; }; };;
682 # There might be people who depend on the old broken behavior: `$host'
683 # used to hold the argument of --host etc.
684 # FIXME: To remove some day.
689 # FIXME: To remove some day.
690 if test "x$host_alias" != x
; then
691 if test "x$build_alias" = x
; then
692 cross_compiling
=maybe
693 echo "$as_me: WARNING: If you wanted to set the --build type, don't use --host.
694 If a cross compiler is detected then cross compile mode will be used." >&2
695 elif test "x$build_alias" != "x$host_alias"; then
701 test -n "$host_alias" && ac_tool_prefix
=$host_alias-
703 test "$silent" = yes && exec 6>/dev
/null
706 # Find the source files, if location was not specified.
707 if test -z "$srcdir"; then
708 ac_srcdir_defaulted
=yes
709 # Try the directory containing this script, then its parent.
710 ac_confdir
=`(dirname "$0") 2>/dev/null ||
711 $as_expr X"$0" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
712 X"$0" : 'X\(//\)[^/]' \| \
713 X"$0" : 'X\(//\)$' \| \
714 X"$0" : 'X\(/\)' \| \
715 . : '\(.\)' 2>/dev/null ||
717 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
718 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
719 /^X\(\/\/\)$/{ s//\1/; q; }
720 /^X\(\/\).*/{ s//\1/; q; }
723 if test ! -r $srcdir/$ac_unique_file; then
727 ac_srcdir_defaulted
=no
729 if test ! -r $srcdir/$ac_unique_file; then
730 if test "$ac_srcdir_defaulted" = yes; then
731 { echo "$as_me: error: cannot find sources ($ac_unique_file) in $ac_confdir or .." >&2
732 { (exit 1); exit 1; }; }
734 { echo "$as_me: error: cannot find sources ($ac_unique_file) in $srcdir" >&2
735 { (exit 1); exit 1; }; }
738 (cd $srcdir && test -r .
/$ac_unique_file) 2>/dev
/null ||
739 { echo "$as_me: error: sources are in $srcdir, but \`cd $srcdir' does not work" >&2
740 { (exit 1); exit 1; }; }
741 srcdir
=`echo "$srcdir" | sed 's%\([^\\/]\)[\\/]*$%\1%'`
742 ac_env_build_alias_set
=${build_alias+set}
743 ac_env_build_alias_value
=$build_alias
744 ac_cv_env_build_alias_set
=${build_alias+set}
745 ac_cv_env_build_alias_value
=$build_alias
746 ac_env_host_alias_set
=${host_alias+set}
747 ac_env_host_alias_value
=$host_alias
748 ac_cv_env_host_alias_set
=${host_alias+set}
749 ac_cv_env_host_alias_value
=$host_alias
750 ac_env_target_alias_set
=${target_alias+set}
751 ac_env_target_alias_value
=$target_alias
752 ac_cv_env_target_alias_set
=${target_alias+set}
753 ac_cv_env_target_alias_value
=$target_alias
754 ac_env_CXXCPP_set
=${CXXCPP+set}
755 ac_env_CXXCPP_value
=$CXXCPP
756 ac_cv_env_CXXCPP_set
=${CXXCPP+set}
757 ac_cv_env_CXXCPP_value
=$CXXCPP
758 ac_env_CPPFLAGS_set
=${CPPFLAGS+set}
759 ac_env_CPPFLAGS_value
=$CPPFLAGS
760 ac_cv_env_CPPFLAGS_set
=${CPPFLAGS+set}
761 ac_cv_env_CPPFLAGS_value
=$CPPFLAGS
762 ac_env_CPP_set
=${CPP+set}
763 ac_env_CPP_value
=$CPP
764 ac_cv_env_CPP_set
=${CPP+set}
765 ac_cv_env_CPP_value
=$CPP
768 # Report the --help message.
770 if test "$ac_init_help" = "long"; then
771 # Omit some internal or obsolete options to make the list less imposing.
772 # This message is too long to be a string in the A/UX 3.1 sh.
774 \`configure' configures libjava version-unused to adapt to many kinds of systems.
776 Usage: $0 [OPTION]... [VAR=VALUE]...
778 To assign environment variables (e.g., CC, CFLAGS...), specify them as
779 VAR=VALUE. See below for descriptions of some of the useful variables.
781 Defaults for the options are specified in brackets.
784 -h, --help display this help and exit
785 --help=short display options specific to this package
786 --help=recursive display the short help of all the included packages
787 -V, --version display version information and exit
788 -q, --quiet, --silent do not print \`checking...' messages
789 --cache-file=FILE cache test results in FILE [disabled]
790 -C, --config-cache alias for \`--cache-file=config.cache'
791 -n, --no-create do not create output files
792 --srcdir=DIR find the sources in DIR [configure dir or \`..']
797 Installation directories:
798 --prefix=PREFIX install architecture-independent files in PREFIX
800 --exec-prefix=EPREFIX install architecture-dependent files in EPREFIX
803 By default, \`make install' will install all the files in
804 \`$ac_default_prefix/bin', \`$ac_default_prefix/lib' etc. You can specify
805 an installation prefix other than \`$ac_default_prefix' using \`--prefix',
806 for instance \`--prefix=\$HOME'.
808 For better control, use the options below.
810 Fine tuning of the installation directories:
811 --bindir=DIR user executables [EPREFIX/bin]
812 --sbindir=DIR system admin executables [EPREFIX/sbin]
813 --libexecdir=DIR program executables [EPREFIX/libexec]
814 --datadir=DIR read-only architecture-independent data [PREFIX/share]
815 --sysconfdir=DIR read-only single-machine data [PREFIX/etc]
816 --sharedstatedir=DIR modifiable architecture-independent data [PREFIX/com]
817 --localstatedir=DIR modifiable single-machine data [PREFIX/var]
818 --libdir=DIR object code libraries [EPREFIX/lib]
819 --includedir=DIR C header files [PREFIX/include]
820 --oldincludedir=DIR C header files for non-gcc [/usr/include]
821 --infodir=DIR info documentation [PREFIX/info]
822 --mandir=DIR man documentation [PREFIX/man]
828 --program-prefix=PREFIX prepend PREFIX to installed program names
829 --program-suffix=SUFFIX append SUFFIX to installed program names
830 --program-transform-name=PROGRAM run
sed PROGRAM on installed program names
833 --x-includes=DIR X include files are
in DIR
834 --x-libraries=DIR X library files are
in DIR
837 --build=BUILD configure
for building on BUILD
[guessed
]
838 --host=HOST cross-compile to build programs to run on HOST
[BUILD
]
839 --target=TARGET configure
for building compilers
for TARGET
[HOST
]
843 if test -n "$ac_init_help"; then
844 case $ac_init_help in
845 short | recursive
) echo "Configuration of libjava version-unused:";;
850 --disable-FEATURE do not include FEATURE
(same as
--enable-FEATURE=no
)
851 --enable-FEATURE[=ARG
] include FEATURE
[ARG
=yes]
852 --enable-version-specific-runtime-libs
853 specify that runtime libraries should be installed
854 in a compiler-specific directory
855 --enable-multilib build many library versions
(default
)
856 --enable-plugin build gcjwebplugin web browser plugin
857 --disable-dependency-tracking speeds up one-time build
858 --enable-dependency-tracking do not reject slow dependency extractors
859 --enable-maintainer-mode enable make rules and dependencies not useful
860 (and sometimes confusing
) to the casual installer
861 --enable-libgcj-debug enable runtime debugging code
862 --enable-java-awt list of AWT peer implementations to be built
863 --enable-shared=PKGS build shared libraries default
=yes
864 --enable-static=PKGS build static libraries default
=yes
865 --enable-fast-install=PKGS optimize
for fast installation default
=yes
866 --disable-libtool-lock avoid locking
(might
break parallel builds
)
867 --disable-getenv-properties
868 don
't set system properties from GCJ_PROPERTIES
869 --enable-hash-synchronization
870 use global hash table for monitor locks
871 --enable-gc-debug include full support for pointer backtracing etc.
872 --enable-interpreter enable interpreter
873 --enable-sjlj-exceptions
874 force use of builtin_setjmp for exceptions
875 --disable-java-net disable java.net
876 --disable-jvmpi disable JVMPI support
877 --enable-java-gc=TYPE choose garbage collector (default is boehm)
878 --disable-rpath do not hardcode runtime library paths
879 _g_switchUse thread-local storage
883 --with-PACKAGE[=ARG] use PACKAGE [ARG=yes]
884 --without-PACKAGE do not use PACKAGE (same as --with-PACKAGE=no)
885 --with-build-libsubdir=DIR Directory where to find libraries for build system
886 --with-target-subdir=SUBDIR
887 configure in a subdirectory
888 --with-cross-host=HOST configure with a cross compiler from HOST
889 --with-newlib configure with newlib
890 --with-gnu-ld assume the C compiler uses GNU ld default=no
891 --with-pic try to use only PIC/non-PIC objects default=use both
892 --with-java-home=DIRECTORY
893 value of java.home system property
894 --with-win32-nlsapi=ansi or unicows or unicode
895 native MinGW libgcj Win32 OS API (default is ansi)
896 --without-libffi don't use libffi
897 --with-ecos enable runtime eCos target support
898 --with-system-zlib use installed libz
899 --with-x use the X Window System
900 --with-libiconv-prefix[=DIR
] search
for libiconv
in DIR
/include and DIR
/lib
901 --without-libiconv-prefix don
't search for libiconv in includedir and libdir
903 Some influential environment variables:
904 CC C compiler command
905 CFLAGS C compiler flags
906 LDFLAGS linker flags, e.g. -L<lib dir> if you have libraries in a
907 nonstandard directory <lib dir>
908 CPPFLAGS C/C++ preprocessor flags, e.g. -I<include dir> if you have
909 headers in a nonstandard directory <include dir>
910 CXX C++ compiler command
911 CXXFLAGS C++ compiler flags
912 CXXCPP C++ preprocessor
915 Use these variables to override the choices made by `configure' or to
help
916 it to
find libraries and programs with nonstandard names
/locations.
921 if test "$ac_init_help" = "recursive"; then
922 # If there are subdirs, report their specific --help.
924 for ac_dir
in : $ac_subdirs_all; do test "x$ac_dir" = x
: && continue
925 test -d $ac_dir ||
continue
928 if test "$ac_dir" != .
; then
929 ac_dir_suffix
=/`echo "$ac_dir" | sed 's,^\.[\\/],,'`
930 # A "../" for each directory in $ac_dir_suffix.
931 ac_top_builddir
=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,../,g'`
933 ac_dir_suffix
= ac_top_builddir
=
937 .
) # No --srcdir option. We are building in place.
939 if test -z "$ac_top_builddir"; then
942 ac_top_srcdir
=`echo $ac_top_builddir | sed 's,/$,,'`
944 [\\/]* | ?
:[\\/]* ) # Absolute path.
945 ac_srcdir
=$srcdir$ac_dir_suffix;
946 ac_top_srcdir
=$srcdir ;;
948 ac_srcdir
=$ac_top_builddir$srcdir$ac_dir_suffix
949 ac_top_srcdir
=$ac_top_builddir$srcdir ;;
952 # Do not use `cd foo && pwd` to compute absolute paths, because
953 # the directories may not exist.
955 .
) ac_abs_builddir
="$ac_dir";;
958 .
) ac_abs_builddir
=`pwd`;;
959 [\\/]* | ?
:[\\/]* ) ac_abs_builddir
="$ac_dir";;
960 *) ac_abs_builddir
=`pwd`/"$ac_dir";;
963 case $ac_abs_builddir in
964 .
) ac_abs_top_builddir
=${ac_top_builddir}.
;;
966 case ${ac_top_builddir}.
in
967 .
) ac_abs_top_builddir
=$ac_abs_builddir;;
968 [\\/]* | ?
:[\\/]* ) ac_abs_top_builddir
=${ac_top_builddir}.
;;
969 *) ac_abs_top_builddir
=$ac_abs_builddir/${ac_top_builddir}.
;;
972 case $ac_abs_builddir in
973 .
) ac_abs_srcdir
=$ac_srcdir;;
976 .
) ac_abs_srcdir
=$ac_abs_builddir;;
977 [\\/]* | ?
:[\\/]* ) ac_abs_srcdir
=$ac_srcdir;;
978 *) ac_abs_srcdir
=$ac_abs_builddir/$ac_srcdir;;
981 case $ac_abs_builddir in
982 .
) ac_abs_top_srcdir
=$ac_top_srcdir;;
984 case $ac_top_srcdir in
985 .
) ac_abs_top_srcdir
=$ac_abs_builddir;;
986 [\\/]* | ?
:[\\/]* ) ac_abs_top_srcdir
=$ac_top_srcdir;;
987 *) ac_abs_top_srcdir
=$ac_abs_builddir/$ac_top_srcdir;;
992 # Check for guested configure; otherwise get Cygnus style configure.
993 if test -f $ac_srcdir/configure.gnu
; then
995 $SHELL $ac_srcdir/configure.gnu
--help=recursive
996 elif test -f $ac_srcdir/configure
; then
998 $SHELL $ac_srcdir/configure
--help=recursive
999 elif test -f $ac_srcdir/configure.ac ||
1000 test -f $ac_srcdir/configure.
in; then
1002 $ac_configure --help
1004 echo "$as_me: WARNING: no configuration information is in $ac_dir" >&2
1010 test -n "$ac_init_help" && exit 0
1011 if $ac_init_version; then
1013 libjava configure version-unused
1014 generated by GNU Autoconf
2.59
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 libjava $as_me version-unused, 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 { echo "$as_me:$LINENO: error: \`$ac_var' has changed since the previous run:" >&5
1302 echo "$as_me: error: \`$ac_var' has changed since the previous run:" >&2;}
1303 { echo "$as_me:$LINENO: former value: $ac_old_val" >&5
1304 echo "$as_me: former value: $ac_old_val" >&2;}
1305 { echo "$as_me:$LINENO: current value: $ac_new_val" >&5
1306 echo "$as_me: current value: $ac_new_val" >&2;}
1307 ac_cache_corrupted
=:
1310 # Pass precious variables to config.status.
1311 if test "$ac_new_set" = set; then
1313 *" "*|
*" "*|
*[\
[\
]\~\
#\$\^\&\*\(\)\{\}\\\|\;\<\>\?\"\']*)
1314 ac_arg
=$ac_var=`echo "$ac_new_val" | sed "s/'/'\\\\\\\\''/g"` ;;
1315 *) ac_arg
=$ac_var=$ac_new_val ;;
1317 case " $ac_configure_args " in
1318 *" '$ac_arg' "*) ;; # Avoid dups. Use of quotes ensures accuracy.
1319 *) ac_configure_args
="$ac_configure_args '$ac_arg'" ;;
1323 if $ac_cache_corrupted; then
1324 { echo "$as_me:$LINENO: error: changes in the environment can compromise the build" >&5
1325 echo "$as_me: error: changes in the environment can compromise the build" >&2;}
1326 { { echo "$as_me:$LINENO: error: run \`make distclean' and/or \`rm $cache_file' and start over" >&5
1327 echo "$as_me: error: run \`make distclean' and/or \`rm $cache_file' and start over" >&2;}
1328 { (exit 1); exit 1; }; }
1332 ac_cpp
='$CPP $CPPFLAGS'
1333 ac_compile
='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
1334 ac_link
='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
1335 ac_compiler_gnu
=$ac_cv_c_compiler_gnu
1367 for ac_dir
in $srcdir $srcdir/..
$srcdir/..
/..
; do
1368 if test -f $ac_dir/install-sh
; then
1370 ac_install_sh
="$ac_aux_dir/install-sh -c"
1372 elif test -f $ac_dir/install.sh
; then
1374 ac_install_sh
="$ac_aux_dir/install.sh -c"
1376 elif test -f $ac_dir/shtool
; then
1378 ac_install_sh
="$ac_aux_dir/shtool install -c"
1382 if test -z "$ac_aux_dir"; then
1383 { { echo "$as_me:$LINENO: error: cannot find install-sh or install.sh in $srcdir $srcdir/.. $srcdir/../.." >&5
1384 echo "$as_me: error: cannot find install-sh or install.sh in $srcdir $srcdir/.. $srcdir/../.." >&2;}
1385 { (exit 1); exit 1; }; }
1387 ac_config_guess
="$SHELL $ac_aux_dir/config.guess"
1388 ac_config_sub
="$SHELL $ac_aux_dir/config.sub"
1389 ac_configure
="$SHELL $ac_aux_dir/configure" # This should be Cygnus configure.
1391 # Make sure we can run config.sub.
1392 $ac_config_sub sun4
>/dev
/null
2>&1 ||
1393 { { echo "$as_me:$LINENO: error: cannot run $ac_config_sub" >&5
1394 echo "$as_me: error: cannot run $ac_config_sub" >&2;}
1395 { (exit 1); exit 1; }; }
1397 echo "$as_me:$LINENO: checking build system type" >&5
1398 echo $ECHO_N "checking build system type... $ECHO_C" >&6
1399 if test "${ac_cv_build+set}" = set; then
1400 echo $ECHO_N "(cached) $ECHO_C" >&6
1402 ac_cv_build_alias
=$build_alias
1403 test -z "$ac_cv_build_alias" &&
1404 ac_cv_build_alias
=`$ac_config_guess`
1405 test -z "$ac_cv_build_alias" &&
1406 { { echo "$as_me:$LINENO: error: cannot guess build type; you must specify one" >&5
1407 echo "$as_me: error: cannot guess build type; you must specify one" >&2;}
1408 { (exit 1); exit 1; }; }
1409 ac_cv_build
=`$ac_config_sub $ac_cv_build_alias` ||
1410 { { echo "$as_me:$LINENO: error: $ac_config_sub $ac_cv_build_alias failed" >&5
1411 echo "$as_me: error: $ac_config_sub $ac_cv_build_alias failed" >&2;}
1412 { (exit 1); exit 1; }; }
1415 echo "$as_me:$LINENO: result: $ac_cv_build" >&5
1416 echo "${ECHO_T}$ac_cv_build" >&6
1418 build_cpu
=`echo $ac_cv_build | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\1/'`
1419 build_vendor
=`echo $ac_cv_build | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\2/'`
1420 build_os
=`echo $ac_cv_build | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\3/'`
1423 case ${build_alias} in
1424 "") build_noncanonical
=${build} ;;
1425 *) build_noncanonical
=${build_alias} ;;
1428 case ${host_alias} in
1429 "") host_noncanonical
=${build_noncanonical} ;;
1430 *) host_noncanonical
=${host_alias} ;;
1433 case ${target_alias} in
1434 "") target_noncanonical
=${host_noncanonical} ;;
1435 *) target_noncanonical
=${target_alias} ;;
1439 # post-stage1 host modules use a different CC_FOR_BUILD so, in order to
1440 # have matching libraries, they should use host libraries: Makefile.tpl
1441 # arranges to pass --with-build-libsubdir=$(HOST_SUBDIR).
1442 # However, they still use the build modules, because the corresponding
1443 # host modules (e.g. bison) are only built for the host when bootstrap
1445 # - build_subdir is where we find build modules, and never changes.
1446 # - build_libsubdir is where we find build libraries, and can be overridden.
1448 # Prefix 'build-' so this never conflicts with target_subdir.
1449 build_subdir
="build-${build_noncanonical}"
1451 # Check whether --with-build-libsubdir or --without-build-libsubdir was given.
1452 if test "${with_build_libsubdir+set}" = set; then
1453 withval
="$with_build_libsubdir"
1454 build_libsubdir
="$withval"
1456 build_libsubdir
="$build_subdir"
1458 # --srcdir=. covers the toplevel, while "test -d" covers the subdirectories
1459 if ( test $srcdir = .
&& test -d gcc
) \
1460 ||
test -d $srcdir/..
/host-
${host_noncanonical}; then
1461 host_subdir
="host-${host_noncanonical}"
1466 target_subdir
=${target_noncanonical}
1469 # We use these options to decide which functions to include.
1471 # Check whether --with-target-subdir or --without-target-subdir was given.
1472 if test "${with_target_subdir+set}" = set; then
1473 withval
="$with_target_subdir"
1477 # We may get other options which we don't document:
1478 # --with-target-subdir, --with-multisrctop, --with-multisubdir
1480 # When building with srcdir == objdir, links to the source files will
1481 # be created in directories within the target_subdir. We have to
1482 # adjust toplevel_srcdir accordingly, so that configure finds
1483 # install-sh and other auxiliary files that live in the top-level
1485 if test "${srcdir}" = "."; then
1486 if test -z "${with_target_subdir}"; then
1489 if test "${with_target_subdir}" != "."; then
1490 toprel
="${with_multisrctop}../.."
1492 toprel
="${with_multisrctop}.."
1499 libgcj_basedir
=$srcdir/$toprel/.
/libjava
1502 echo "$as_me:$LINENO: checking host system type" >&5
1503 echo $ECHO_N "checking host system type... $ECHO_C" >&6
1504 if test "${ac_cv_host+set}" = set; then
1505 echo $ECHO_N "(cached) $ECHO_C" >&6
1507 ac_cv_host_alias
=$host_alias
1508 test -z "$ac_cv_host_alias" &&
1509 ac_cv_host_alias
=$ac_cv_build_alias
1510 ac_cv_host
=`$ac_config_sub $ac_cv_host_alias` ||
1511 { { echo "$as_me:$LINENO: error: $ac_config_sub $ac_cv_host_alias failed" >&5
1512 echo "$as_me: error: $ac_config_sub $ac_cv_host_alias failed" >&2;}
1513 { (exit 1); exit 1; }; }
1516 echo "$as_me:$LINENO: result: $ac_cv_host" >&5
1517 echo "${ECHO_T}$ac_cv_host" >&6
1519 host_cpu
=`echo $ac_cv_host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\1/'`
1520 host_vendor
=`echo $ac_cv_host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\2/'`
1521 host_os
=`echo $ac_cv_host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\3/'`
1524 echo "$as_me:$LINENO: checking target system type" >&5
1525 echo $ECHO_N "checking target system type... $ECHO_C" >&6
1526 if test "${ac_cv_target+set}" = set; then
1527 echo $ECHO_N "(cached) $ECHO_C" >&6
1529 ac_cv_target_alias
=$target_alias
1530 test "x$ac_cv_target_alias" = "x" &&
1531 ac_cv_target_alias
=$ac_cv_host_alias
1532 ac_cv_target
=`$ac_config_sub $ac_cv_target_alias` ||
1533 { { echo "$as_me:$LINENO: error: $ac_config_sub $ac_cv_target_alias failed" >&5
1534 echo "$as_me: error: $ac_config_sub $ac_cv_target_alias failed" >&2;}
1535 { (exit 1); exit 1; }; }
1538 echo "$as_me:$LINENO: result: $ac_cv_target" >&5
1539 echo "${ECHO_T}$ac_cv_target" >&6
1540 target
=$ac_cv_target
1541 target_cpu
=`echo $ac_cv_target | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\1/'`
1542 target_vendor
=`echo $ac_cv_target | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\2/'`
1543 target_os
=`echo $ac_cv_target | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\3/'`
1546 # The aliases save the names the user supplied, while $host etc.
1547 # will get canonicalized.
1548 test -n "$target_alias" &&
1549 test "$program_prefix$program_suffix$program_transform_name" = \
1551 program_prefix
=${target_alias}-
1552 case ${build_alias} in
1553 "") build_noncanonical
=${build} ;;
1554 *) build_noncanonical
=${build_alias} ;;
1557 case ${target_alias} in
1558 "") target_noncanonical
=${host_noncanonical} ;;
1559 *) target_noncanonical
=${target_alias} ;;
1565 # This works around the fact that libtool configuration may change LD
1566 # for this particular configuration, but some shells, instead of
1567 # keeping the changes in LD private, export them just because LD is
1569 ORIGINAL_LD_FOR_MULTILIBS
=$LD
1571 echo "$as_me:$LINENO: checking whether ln -s works" >&5
1572 echo $ECHO_N "checking whether ln -s works... $ECHO_C" >&6
1574 if test "$LN_S" = "ln -s"; then
1575 echo "$as_me:$LINENO: result: yes" >&5
1576 echo "${ECHO_T}yes" >&6
1578 echo "$as_me:$LINENO: result: no, using $LN_S" >&5
1579 echo "${ECHO_T}no, using $LN_S" >&6
1583 # This works around an automake problem.
1584 mkinstalldirs
="`cd $ac_aux_dir && ${PWDCMD-pwd}`/mkinstalldirs"
1588 # Check whether --with-cross-host or --without-cross-host was given.
1589 if test "${with_cross_host+set}" = set; then
1590 withval
="$with_cross_host"
1595 # Check whether --with-newlib or --without-newlib was given.
1596 if test "${with_newlib+set}" = set; then
1597 withval
="$with_newlib"
1601 # Check whether --enable-version-specific-runtime-libs or --disable-version-specific-runtime-libs was given.
1602 if test "${enable_version_specific_runtime_libs+set}" = set; then
1603 enableval
="$enable_version_specific_runtime_libs"
1604 case "$enableval" in
1605 yes) version_specific_libs
=yes ;;
1606 no
) version_specific_libs
=no
;;
1607 *) { { echo "$as_me:$LINENO: error: Unknown argument to enable/disable version-specific libs" >&5
1608 echo "$as_me: error: Unknown argument to enable/disable version-specific libs" >&2;}
1609 { (exit 1); exit 1; }; };;
1612 version_specific_libs
=no
1616 # Default to --enable-multilib
1617 # Check whether --enable-multilib or --disable-multilib was given.
1618 if test "${enable_multilib+set}" = set; then
1619 enableval
="$enable_multilib"
1620 case "${enableval}" in
1621 yes) multilib
=yes ;;
1623 *) { { echo "$as_me:$LINENO: error: bad value ${enableval} for multilib option" >&5
1624 echo "$as_me: error: bad value ${enableval} for multilib option" >&2;}
1625 { (exit 1); exit 1; }; } ;;
1630 # Check whether --enable-plugin or --disable-plugin was given.
1631 if test "${enable_plugin+set}" = set; then
1632 enableval
="$enable_plugin"
1633 case "$enableval" in
1634 yes) plugin_enabled
=yes ;;
1635 no
) plugin_enabled
=no
;;
1636 *) { { echo "$as_me:$LINENO: error: Unknown argument to enable/disable plugin" >&5
1637 echo "$as_me: error: Unknown argument to enable/disable plugin" >&2;}
1638 { (exit 1); exit 1; }; };;
1645 # It may not be safe to run linking tests in AC_PROG_CC/AC_PROG_CXX.
1648 # (1) We use an abnormal CXX (without library references), so we
1649 # must cache it under a different name.
1650 # (2) CC, CFLAGS, CXX, CXXFLAGS, LDFLAGS must not be 'precious', or
1651 # the non-multilib-adjusted value will be used in multilibs.
1652 # (3) As a side effect, we must SUBST CXXFLAGS, CFLAGS, and LDFLAGS ourselves.
1653 # (4) As another side effect, automake doesn't automatically include them
1655 # (5) For libstdc++-v3, -fno-builtin must be present here so that a
1656 # non-conflicting form of std::exit can be guessed by AC_PROG_CXX, and
1657 # used in later tests. This may not be necessary in libjava; I don't know.
1661 save_CXXFLAGS
="$CXXFLAGS"
1662 CXXFLAGS
="$CXXFLAGS -fno-builtin"
1664 ac_cpp
='$CPP $CPPFLAGS'
1665 ac_compile
='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
1666 ac_link
='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
1667 ac_compiler_gnu
=$ac_cv_c_compiler_gnu
1668 if test -n "$ac_tool_prefix"; then
1669 # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args.
1670 set dummy
${ac_tool_prefix}gcc
; ac_word
=$2
1671 echo "$as_me:$LINENO: checking for $ac_word" >&5
1672 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1673 if test "${ac_cv_prog_CC+set}" = set; then
1674 echo $ECHO_N "(cached) $ECHO_C" >&6
1676 if test -n "$CC"; then
1677 ac_cv_prog_CC
="$CC" # Let the user override the test.
1679 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
1683 test -z "$as_dir" && as_dir
=.
1684 for ac_exec_ext
in '' $ac_executable_extensions; do
1685 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1686 ac_cv_prog_CC
="${ac_tool_prefix}gcc"
1687 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
1696 if test -n "$CC"; then
1697 echo "$as_me:$LINENO: result: $CC" >&5
1698 echo "${ECHO_T}$CC" >&6
1700 echo "$as_me:$LINENO: result: no" >&5
1701 echo "${ECHO_T}no" >&6
1705 if test -z "$ac_cv_prog_CC"; then
1707 # Extract the first word of "gcc", so it can be a program name with args.
1708 set dummy gcc
; ac_word
=$2
1709 echo "$as_me:$LINENO: checking for $ac_word" >&5
1710 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1711 if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
1712 echo $ECHO_N "(cached) $ECHO_C" >&6
1714 if test -n "$ac_ct_CC"; then
1715 ac_cv_prog_ac_ct_CC
="$ac_ct_CC" # Let the user override the test.
1717 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
1721 test -z "$as_dir" && as_dir
=.
1722 for ac_exec_ext
in '' $ac_executable_extensions; do
1723 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1724 ac_cv_prog_ac_ct_CC
="gcc"
1725 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
1733 ac_ct_CC
=$ac_cv_prog_ac_ct_CC
1734 if test -n "$ac_ct_CC"; then
1735 echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
1736 echo "${ECHO_T}$ac_ct_CC" >&6
1738 echo "$as_me:$LINENO: result: no" >&5
1739 echo "${ECHO_T}no" >&6
1747 if test -z "$CC"; then
1748 if test -n "$ac_tool_prefix"; then
1749 # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args.
1750 set dummy
${ac_tool_prefix}cc
; ac_word
=$2
1751 echo "$as_me:$LINENO: checking for $ac_word" >&5
1752 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1753 if test "${ac_cv_prog_CC+set}" = set; then
1754 echo $ECHO_N "(cached) $ECHO_C" >&6
1756 if test -n "$CC"; then
1757 ac_cv_prog_CC
="$CC" # Let the user override the test.
1759 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
1763 test -z "$as_dir" && as_dir
=.
1764 for ac_exec_ext
in '' $ac_executable_extensions; do
1765 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1766 ac_cv_prog_CC
="${ac_tool_prefix}cc"
1767 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
1776 if test -n "$CC"; then
1777 echo "$as_me:$LINENO: result: $CC" >&5
1778 echo "${ECHO_T}$CC" >&6
1780 echo "$as_me:$LINENO: result: no" >&5
1781 echo "${ECHO_T}no" >&6
1785 if test -z "$ac_cv_prog_CC"; then
1787 # Extract the first word of "cc", so it can be a program name with args.
1788 set dummy cc
; ac_word
=$2
1789 echo "$as_me:$LINENO: checking for $ac_word" >&5
1790 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1791 if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
1792 echo $ECHO_N "(cached) $ECHO_C" >&6
1794 if test -n "$ac_ct_CC"; then
1795 ac_cv_prog_ac_ct_CC
="$ac_ct_CC" # Let the user override the test.
1797 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
1801 test -z "$as_dir" && as_dir
=.
1802 for ac_exec_ext
in '' $ac_executable_extensions; do
1803 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1804 ac_cv_prog_ac_ct_CC
="cc"
1805 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
1813 ac_ct_CC
=$ac_cv_prog_ac_ct_CC
1814 if test -n "$ac_ct_CC"; then
1815 echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
1816 echo "${ECHO_T}$ac_ct_CC" >&6
1818 echo "$as_me:$LINENO: result: no" >&5
1819 echo "${ECHO_T}no" >&6
1828 if test -z "$CC"; then
1829 # Extract the first word of "cc", so it can be a program name with args.
1830 set dummy cc
; ac_word
=$2
1831 echo "$as_me:$LINENO: checking for $ac_word" >&5
1832 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1833 if test "${ac_cv_prog_CC+set}" = set; then
1834 echo $ECHO_N "(cached) $ECHO_C" >&6
1836 if test -n "$CC"; then
1837 ac_cv_prog_CC
="$CC" # Let the user override the test.
1840 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
1844 test -z "$as_dir" && as_dir
=.
1845 for ac_exec_ext
in '' $ac_executable_extensions; do
1846 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1847 if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then
1848 ac_prog_rejected
=yes
1852 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
1858 if test $ac_prog_rejected = yes; then
1859 # We found a bogon in the path, so make sure we never use it.
1860 set dummy
$ac_cv_prog_CC
1862 if test $# != 0; then
1863 # We chose a different compiler from the bogus one.
1864 # However, it has the same basename, so the bogon will be chosen
1865 # first if we set CC to just the basename; use the full file name.
1867 ac_cv_prog_CC
="$as_dir/$ac_word${1+' '}$@"
1873 if test -n "$CC"; then
1874 echo "$as_me:$LINENO: result: $CC" >&5
1875 echo "${ECHO_T}$CC" >&6
1877 echo "$as_me:$LINENO: result: no" >&5
1878 echo "${ECHO_T}no" >&6
1882 if test -z "$CC"; then
1883 if test -n "$ac_tool_prefix"; then
1886 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
1887 set dummy
$ac_tool_prefix$ac_prog; ac_word
=$2
1888 echo "$as_me:$LINENO: checking for $ac_word" >&5
1889 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1890 if test "${ac_cv_prog_CC+set}" = set; then
1891 echo $ECHO_N "(cached) $ECHO_C" >&6
1893 if test -n "$CC"; then
1894 ac_cv_prog_CC
="$CC" # Let the user override the test.
1896 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
1900 test -z "$as_dir" && as_dir
=.
1901 for ac_exec_ext
in '' $ac_executable_extensions; do
1902 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1903 ac_cv_prog_CC
="$ac_tool_prefix$ac_prog"
1904 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
1913 if test -n "$CC"; then
1914 echo "$as_me:$LINENO: result: $CC" >&5
1915 echo "${ECHO_T}$CC" >&6
1917 echo "$as_me:$LINENO: result: no" >&5
1918 echo "${ECHO_T}no" >&6
1921 test -n "$CC" && break
1924 if test -z "$CC"; then
1928 # Extract the first word of "$ac_prog", so it can be a program name with args.
1929 set dummy
$ac_prog; ac_word
=$2
1930 echo "$as_me:$LINENO: checking for $ac_word" >&5
1931 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1932 if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
1933 echo $ECHO_N "(cached) $ECHO_C" >&6
1935 if test -n "$ac_ct_CC"; then
1936 ac_cv_prog_ac_ct_CC
="$ac_ct_CC" # Let the user override the test.
1938 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
1942 test -z "$as_dir" && as_dir
=.
1943 for ac_exec_ext
in '' $ac_executable_extensions; do
1944 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1945 ac_cv_prog_ac_ct_CC
="$ac_prog"
1946 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
1954 ac_ct_CC
=$ac_cv_prog_ac_ct_CC
1955 if test -n "$ac_ct_CC"; then
1956 echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
1957 echo "${ECHO_T}$ac_ct_CC" >&6
1959 echo "$as_me:$LINENO: result: no" >&5
1960 echo "${ECHO_T}no" >&6
1963 test -n "$ac_ct_CC" && break
1972 test -z "$CC" && { { echo "$as_me:$LINENO: error: no acceptable C compiler found in \$PATH
1973 See \`config.log' for more details." >&5
1974 echo "$as_me: error: no acceptable C compiler found in \$PATH
1975 See \`config.log' for more details." >&2;}
1976 { (exit 1); exit 1; }; }
1978 # Provide some information about the compiler.
1979 echo "$as_me:$LINENO:" \
1980 "checking for C compiler version" >&5
1981 ac_compiler
=`set X $ac_compile; echo $2`
1982 { (eval echo "$as_me:$LINENO: \"$ac_compiler --version </dev/null >&5\"") >&5
1983 (eval $ac_compiler --version </dev
/null
>&5) 2>&5
1985 echo "$as_me:$LINENO: \$? = $ac_status" >&5
1986 (exit $ac_status); }
1987 { (eval echo "$as_me:$LINENO: \"$ac_compiler -v </dev/null >&5\"") >&5
1988 (eval $ac_compiler -v </dev
/null
>&5) 2>&5
1990 echo "$as_me:$LINENO: \$? = $ac_status" >&5
1991 (exit $ac_status); }
1992 { (eval echo "$as_me:$LINENO: \"$ac_compiler -V </dev/null >&5\"") >&5
1993 (eval $ac_compiler -V </dev
/null
>&5) 2>&5
1995 echo "$as_me:$LINENO: \$? = $ac_status" >&5
1996 (exit $ac_status); }
1998 cat >conftest.
$ac_ext <<_ACEOF
2001 cat confdefs.h
>>conftest.
$ac_ext
2002 cat >>conftest.
$ac_ext <<_ACEOF
2003 /* end confdefs.h. */
2014 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
2015 (eval $ac_link) 2>&5
2017 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2018 (exit $ac_status); }; then
2024 if test x
$gcc_no_link = xyes
; then
2025 # Setting cross_compile will disable run tests; it will
2026 # also disable AC_CHECK_FILE but that's generally
2027 # correct if we can't link.
2031 cat >conftest.
$ac_ext <<_ACEOF
2034 cat confdefs.h
>>conftest.
$ac_ext
2035 cat >>conftest.
$ac_ext <<_ACEOF
2036 /* end confdefs.h. */
2046 ac_clean_files_save
=$ac_clean_files
2047 ac_clean_files
="$ac_clean_files a.out a.exe b.out"
2048 # Try to create an executable without -o first, disregard a.out.
2049 # It will help us diagnose broken compilers, and finding out an intuition
2051 echo "$as_me:$LINENO: checking for C compiler default output file name" >&5
2052 echo $ECHO_N "checking for C compiler default output file name... $ECHO_C" >&6
2053 ac_link_default
=`echo "$ac_link" | sed 's/ -o *conftest[^ ]*//'`
2054 if { (eval echo "$as_me:$LINENO: \"$ac_link_default\"") >&5
2055 (eval $ac_link_default) 2>&5
2057 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2058 (exit $ac_status); }; then
2059 # Find the output, starting from the most likely. This scheme is
2060 # not robust to junk in `.', hence go to wildcards (a.*) only as a last
2063 # Be careful to initialize this variable, since it used to be cached.
2064 # Otherwise an old cache value of `no' led to `EXEEXT = no' in a Makefile.
2066 # b.out is created by i960 compilers.
2067 for ac_file
in a_out.exe a.exe conftest.exe a.out conftest a.
* conftest.
* b.out
2069 test -f "$ac_file" ||
continue
2071 *.
$ac_ext |
*.xcoff |
*.tds |
*.d |
*.pdb |
*.xSYM |
*.bb |
*.bbg |
*.o |
*.obj
)
2074 # This is the source file.
2077 # We found the default executable, but exeext='' is most
2081 ac_cv_exeext
=`expr "$ac_file" : '[^.]*\(\..*\)'`
2082 # FIXME: I believe we export ac_cv_exeext for Libtool,
2083 # but it would be cool to find out if it's true. Does anybody
2084 # maintain Libtool? --akim.
2092 echo "$as_me: failed program was:" >&5
2093 sed 's/^/| /' conftest.
$ac_ext >&5
2095 { { echo "$as_me:$LINENO: error: C compiler cannot create executables
2096 See \`config.log' for more details." >&5
2097 echo "$as_me: error: C compiler cannot create executables
2098 See \`config.log' for more details." >&2;}
2099 { (exit 77); exit 77; }; }
2102 ac_exeext
=$ac_cv_exeext
2103 echo "$as_me:$LINENO: result: $ac_file" >&5
2104 echo "${ECHO_T}$ac_file" >&6
2106 # Check the compiler produces executables we can run. If not, either
2107 # the compiler is broken, or we cross compile.
2108 echo "$as_me:$LINENO: checking whether the C compiler works" >&5
2109 echo $ECHO_N "checking whether the C compiler works... $ECHO_C" >&6
2110 # FIXME: These cross compiler hacks should be removed for Autoconf 3.0
2111 # If not cross compiling, check that we can run a simple program.
2112 if test "$cross_compiling" != yes; then
2113 if { ac_try
='./$ac_file'
2114 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2117 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2118 (exit $ac_status); }; }; then
2121 if test "$cross_compiling" = maybe
; then
2124 { { echo "$as_me:$LINENO: error: cannot run C compiled programs.
2125 If you meant to cross compile, use \`--host'.
2126 See \`config.log' for more details." >&5
2127 echo "$as_me: error: cannot run C compiled programs.
2128 If you meant to cross compile, use \`--host'.
2129 See \`config.log' for more details." >&2;}
2130 { (exit 1); exit 1; }; }
2134 echo "$as_me:$LINENO: result: yes" >&5
2135 echo "${ECHO_T}yes" >&6
2137 rm -f a.out a.exe conftest
$ac_cv_exeext b.out
2138 ac_clean_files
=$ac_clean_files_save
2139 # Check the compiler produces executables we can run. If not, either
2140 # the compiler is broken, or we cross compile.
2141 echo "$as_me:$LINENO: checking whether we are cross compiling" >&5
2142 echo $ECHO_N "checking whether we are cross compiling... $ECHO_C" >&6
2143 echo "$as_me:$LINENO: result: $cross_compiling" >&5
2144 echo "${ECHO_T}$cross_compiling" >&6
2146 echo "$as_me:$LINENO: checking for suffix of executables" >&5
2147 echo $ECHO_N "checking for suffix of executables... $ECHO_C" >&6
2148 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
2149 (eval $ac_link) 2>&5
2151 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2152 (exit $ac_status); }; then
2153 # If both `conftest.exe' and `conftest' are `present' (well, observable)
2154 # catch `conftest.exe'. For instance with Cygwin, `ls conftest' will
2155 # work properly (i.e., refer to `conftest.exe'), while it won't with
2157 for ac_file
in conftest.exe conftest conftest.
*; do
2158 test -f "$ac_file" ||
continue
2160 *.
$ac_ext |
*.xcoff |
*.tds |
*.d |
*.pdb |
*.xSYM |
*.bb |
*.bbg |
*.o |
*.obj
) ;;
2161 *.
* ) ac_cv_exeext
=`expr "$ac_file" : '[^.]*\(\..*\)'`
2168 { { echo "$as_me:$LINENO: error: cannot compute suffix of executables: cannot compile and link
2169 See \`config.log' for more details." >&5
2170 echo "$as_me: error: cannot compute suffix of executables: cannot compile and link
2171 See \`config.log' for more details." >&2;}
2172 { (exit 1); exit 1; }; }
2175 rm -f conftest
$ac_cv_exeext
2176 echo "$as_me:$LINENO: result: $ac_cv_exeext" >&5
2177 echo "${ECHO_T}$ac_cv_exeext" >&6
2179 rm -f conftest.
$ac_ext
2180 EXEEXT
=$ac_cv_exeext
2183 echo "$as_me:$LINENO: checking for suffix of object files" >&5
2184 echo $ECHO_N "checking for suffix of object files... $ECHO_C" >&6
2185 if test "${ac_cv_objext+set}" = set; then
2186 echo $ECHO_N "(cached) $ECHO_C" >&6
2188 cat >conftest.
$ac_ext <<_ACEOF
2191 cat confdefs.h
>>conftest.
$ac_ext
2192 cat >>conftest.
$ac_ext <<_ACEOF
2193 /* end confdefs.h. */
2203 rm -f conftest.o conftest.obj
2204 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2205 (eval $ac_compile) 2>&5
2207 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2208 (exit $ac_status); }; then
2209 for ac_file
in `(ls conftest.o conftest.obj; ls conftest.*) 2>/dev/null`; do
2211 *.
$ac_ext |
*.xcoff |
*.tds |
*.d |
*.pdb |
*.xSYM |
*.bb |
*.bbg
) ;;
2212 *) ac_cv_objext
=`expr "$ac_file" : '.*\.\(.*\)'`
2217 echo "$as_me: failed program was:" >&5
2218 sed 's/^/| /' conftest.
$ac_ext >&5
2220 { { echo "$as_me:$LINENO: error: cannot compute suffix of object files: cannot compile
2221 See \`config.log' for more details." >&5
2222 echo "$as_me: error: cannot compute suffix of object files: cannot compile
2223 See \`config.log' for more details." >&2;}
2224 { (exit 1); exit 1; }; }
2227 rm -f conftest.
$ac_cv_objext conftest.
$ac_ext
2229 echo "$as_me:$LINENO: result: $ac_cv_objext" >&5
2230 echo "${ECHO_T}$ac_cv_objext" >&6
2231 OBJEXT
=$ac_cv_objext
2233 echo "$as_me:$LINENO: checking whether we are using the GNU C compiler" >&5
2234 echo $ECHO_N "checking whether we are using the GNU C compiler... $ECHO_C" >&6
2235 if test "${ac_cv_c_compiler_gnu+set}" = set; then
2236 echo $ECHO_N "(cached) $ECHO_C" >&6
2238 cat >conftest.
$ac_ext <<_ACEOF
2241 cat confdefs.h
>>conftest.
$ac_ext
2242 cat >>conftest.
$ac_ext <<_ACEOF
2243 /* end confdefs.h. */
2256 rm -f conftest.
$ac_objext
2257 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2258 (eval $ac_compile) 2>conftest.er1
2260 grep -v '^ *+' conftest.er1
>conftest.err
2262 cat conftest.err
>&5
2263 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2264 (exit $ac_status); } &&
2265 { ac_try
='test -z "$ac_c_werror_flag"
2266 || test ! -s conftest.err'
2267 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2270 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2271 (exit $ac_status); }; } &&
2272 { ac_try
='test -s conftest.$ac_objext'
2273 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2276 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2277 (exit $ac_status); }; }; then
2280 echo "$as_me: failed program was:" >&5
2281 sed 's/^/| /' conftest.
$ac_ext >&5
2285 rm -f conftest.err conftest.
$ac_objext conftest.
$ac_ext
2286 ac_cv_c_compiler_gnu
=$ac_compiler_gnu
2289 echo "$as_me:$LINENO: result: $ac_cv_c_compiler_gnu" >&5
2290 echo "${ECHO_T}$ac_cv_c_compiler_gnu" >&6
2291 GCC
=`test $ac_compiler_gnu = yes && echo yes`
2292 ac_test_CFLAGS
=${CFLAGS+set}
2293 ac_save_CFLAGS
=$CFLAGS
2295 echo "$as_me:$LINENO: checking whether $CC accepts -g" >&5
2296 echo $ECHO_N "checking whether $CC accepts -g... $ECHO_C" >&6
2297 if test "${ac_cv_prog_cc_g+set}" = set; then
2298 echo $ECHO_N "(cached) $ECHO_C" >&6
2300 cat >conftest.
$ac_ext <<_ACEOF
2303 cat confdefs.h
>>conftest.
$ac_ext
2304 cat >>conftest.
$ac_ext <<_ACEOF
2305 /* end confdefs.h. */
2315 rm -f conftest.
$ac_objext
2316 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2317 (eval $ac_compile) 2>conftest.er1
2319 grep -v '^ *+' conftest.er1
>conftest.err
2321 cat conftest.err
>&5
2322 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2323 (exit $ac_status); } &&
2324 { ac_try
='test -z "$ac_c_werror_flag"
2325 || test ! -s conftest.err'
2326 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2329 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2330 (exit $ac_status); }; } &&
2331 { ac_try
='test -s conftest.$ac_objext'
2332 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2335 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2336 (exit $ac_status); }; }; then
2339 echo "$as_me: failed program was:" >&5
2340 sed 's/^/| /' conftest.
$ac_ext >&5
2344 rm -f conftest.err conftest.
$ac_objext conftest.
$ac_ext
2346 echo "$as_me:$LINENO: result: $ac_cv_prog_cc_g" >&5
2347 echo "${ECHO_T}$ac_cv_prog_cc_g" >&6
2348 if test "$ac_test_CFLAGS" = set; then
2349 CFLAGS
=$ac_save_CFLAGS
2350 elif test $ac_cv_prog_cc_g = yes; then
2351 if test "$GCC" = yes; then
2357 if test "$GCC" = yes; then
2363 echo "$as_me:$LINENO: checking for $CC option to accept ANSI C" >&5
2364 echo $ECHO_N "checking for $CC option to accept ANSI C... $ECHO_C" >&6
2365 if test "${ac_cv_prog_cc_stdc+set}" = set; then
2366 echo $ECHO_N "(cached) $ECHO_C" >&6
2368 ac_cv_prog_cc_stdc
=no
2370 cat >conftest.
$ac_ext <<_ACEOF
2373 cat confdefs.h
>>conftest.
$ac_ext
2374 cat >>conftest.
$ac_ext <<_ACEOF
2375 /* end confdefs.h. */
2378 #include <sys/types.h>
2379 #include <sys/stat.h>
2380 /* Most of the following tests are stolen from RCS 5.7's src/conf.sh. */
2381 struct buf { int x; };
2382 FILE * (*rcsopen) (struct buf *, struct stat *, int);
2383 static char *e (p, i)
2389 static char *f (char * (*g) (char **, int), char **p, ...)
2394 s = g (p, va_arg (v,int));
2399 /* OSF 4.0 Compaq cc is some sort of almost-ANSI by default. It has
2400 function prototypes and stuff, but not '\xHH' hex character constants.
2401 These don't provoke an error unfortunately, instead are silently treated
2402 as 'x'. The following induces an error, until -std1 is added to get
2403 proper ANSI mode. Curiously '\x00'!='x' always comes out true, for an
2404 array size at least. It's necessary to write '\x00'==0 to get something
2405 that's true only with -std1. */
2406 int osf4_cc_array ['\x00' == 0 ? 1 : -1];
2408 int test (int i, double x);
2409 struct s1 {int (*f) (int a);};
2410 struct s2 {int (*f) (double a);};
2411 int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
2417 return f (e, argv, 0) != argv[0] || f (e, argv, 1) != argv[1];
2422 # Don't try gcc -ansi; that turns off useful extensions and
2423 # breaks some systems' header files.
2424 # AIX -qlanglvl=ansi
2425 # Ultrix and OSF/1 -std1
2426 # HP-UX 10.20 and later -Ae
2427 # HP-UX older versions -Aa -D_HPUX_SOURCE
2428 # SVR4 -Xc -D__EXTENSIONS__
2429 for ac_arg
in "" -qlanglvl=ansi
-std1 -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
2431 CC
="$ac_save_CC $ac_arg"
2432 rm -f conftest.
$ac_objext
2433 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2434 (eval $ac_compile) 2>conftest.er1
2436 grep -v '^ *+' conftest.er1
>conftest.err
2438 cat conftest.err
>&5
2439 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2440 (exit $ac_status); } &&
2441 { ac_try
='test -z "$ac_c_werror_flag"
2442 || test ! -s conftest.err'
2443 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2446 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2447 (exit $ac_status); }; } &&
2448 { ac_try
='test -s conftest.$ac_objext'
2449 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2452 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2453 (exit $ac_status); }; }; then
2454 ac_cv_prog_cc_stdc
=$ac_arg
2457 echo "$as_me: failed program was:" >&5
2458 sed 's/^/| /' conftest.
$ac_ext >&5
2461 rm -f conftest.err conftest.
$ac_objext
2463 rm -f conftest.
$ac_ext conftest.
$ac_objext
2468 case "x$ac_cv_prog_cc_stdc" in
2470 echo "$as_me:$LINENO: result: none needed" >&5
2471 echo "${ECHO_T}none needed" >&6 ;;
2473 echo "$as_me:$LINENO: result: $ac_cv_prog_cc_stdc" >&5
2474 echo "${ECHO_T}$ac_cv_prog_cc_stdc" >&6
2475 CC
="$CC $ac_cv_prog_cc_stdc" ;;
2478 # Some people use a C++ compiler to compile C. Since we use `exit',
2479 # in C++ we need to declare it. In case someone uses the same compiler
2480 # for both compiling C and C++ we need to have the C++ compiler decide
2481 # the declaration of exit, since it's the most demanding environment.
2482 cat >conftest.
$ac_ext <<_ACEOF
2487 rm -f conftest.
$ac_objext
2488 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2489 (eval $ac_compile) 2>conftest.er1
2491 grep -v '^ *+' conftest.er1
>conftest.err
2493 cat conftest.err
>&5
2494 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2495 (exit $ac_status); } &&
2496 { ac_try
='test -z "$ac_c_werror_flag"
2497 || test ! -s conftest.err'
2498 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2501 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2502 (exit $ac_status); }; } &&
2503 { ac_try
='test -s conftest.$ac_objext'
2504 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2507 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2508 (exit $ac_status); }; }; then
2509 for ac_declaration
in \
2511 'extern "C" void std::exit (int) throw (); using std::exit;' \
2512 'extern "C" void std::exit (int); using std::exit;' \
2513 'extern "C" void exit (int) throw ();' \
2514 'extern "C" void exit (int);' \
2517 cat >conftest.
$ac_ext <<_ACEOF
2520 cat confdefs.h
>>conftest.
$ac_ext
2521 cat >>conftest.
$ac_ext <<_ACEOF
2522 /* end confdefs.h. */
2533 rm -f conftest.
$ac_objext
2534 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2535 (eval $ac_compile) 2>conftest.er1
2537 grep -v '^ *+' conftest.er1
>conftest.err
2539 cat conftest.err
>&5
2540 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2541 (exit $ac_status); } &&
2542 { ac_try
='test -z "$ac_c_werror_flag"
2543 || test ! -s conftest.err'
2544 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2547 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2548 (exit $ac_status); }; } &&
2549 { ac_try
='test -s conftest.$ac_objext'
2550 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2553 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2554 (exit $ac_status); }; }; then
2557 echo "$as_me: failed program was:" >&5
2558 sed 's/^/| /' conftest.
$ac_ext >&5
2562 rm -f conftest.err conftest.
$ac_objext conftest.
$ac_ext
2563 cat >conftest.
$ac_ext <<_ACEOF
2566 cat confdefs.h
>>conftest.
$ac_ext
2567 cat >>conftest.
$ac_ext <<_ACEOF
2568 /* end confdefs.h. */
2578 rm -f conftest.
$ac_objext
2579 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2580 (eval $ac_compile) 2>conftest.er1
2582 grep -v '^ *+' conftest.er1
>conftest.err
2584 cat conftest.err
>&5
2585 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2586 (exit $ac_status); } &&
2587 { ac_try
='test -z "$ac_c_werror_flag"
2588 || test ! -s conftest.err'
2589 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2592 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2593 (exit $ac_status); }; } &&
2594 { ac_try
='test -s conftest.$ac_objext'
2595 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2598 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2599 (exit $ac_status); }; }; then
2602 echo "$as_me: failed program was:" >&5
2603 sed 's/^/| /' conftest.
$ac_ext >&5
2606 rm -f conftest.err conftest.
$ac_objext conftest.
$ac_ext
2609 if test -n "$ac_declaration"; then
2610 echo '#ifdef __cplusplus' >>confdefs.h
2611 echo $ac_declaration >>confdefs.h
2612 echo '#endif' >>confdefs.h
2616 echo "$as_me: failed program was:" >&5
2617 sed 's/^/| /' conftest.
$ac_ext >&5
2620 rm -f conftest.err conftest.
$ac_objext conftest.
$ac_ext
2622 ac_cpp
='$CPP $CPPFLAGS'
2623 ac_compile
='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2624 ac_link
='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2625 ac_compiler_gnu
=$ac_cv_c_compiler_gnu
2628 ac_cpp
='$CXXCPP $CPPFLAGS'
2629 ac_compile
='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2630 ac_link
='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2631 ac_compiler_gnu
=$ac_cv_cxx_compiler_gnu
2632 if test -n "$ac_tool_prefix"; then
2633 for ac_prog
in $CCC g
++ c
++ gpp aCC CC cxx cc
++ cl FCC KCC RCC xlC_r xlC
2635 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
2636 set dummy
$ac_tool_prefix$ac_prog; ac_word
=$2
2637 echo "$as_me:$LINENO: checking for $ac_word" >&5
2638 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
2639 if test "${glibcxx_cv_prog_CXX+set}" = set; then
2640 echo $ECHO_N "(cached) $ECHO_C" >&6
2642 if test -n "$CXX"; then
2643 glibcxx_cv_prog_CXX
="$CXX" # Let the user override the test.
2645 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
2649 test -z "$as_dir" && as_dir
=.
2650 for ac_exec_ext
in '' $ac_executable_extensions; do
2651 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2652 glibcxx_cv_prog_CXX
="$ac_tool_prefix$ac_prog"
2653 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2661 CXX
=$glibcxx_cv_prog_CXX
2662 if test -n "$CXX"; then
2663 echo "$as_me:$LINENO: result: $CXX" >&5
2664 echo "${ECHO_T}$CXX" >&6
2666 echo "$as_me:$LINENO: result: no" >&5
2667 echo "${ECHO_T}no" >&6
2670 test -n "$CXX" && break
2673 if test -z "$CXX"; then
2675 for ac_prog
in $CCC g
++ c
++ gpp aCC CC cxx cc
++ cl FCC KCC RCC xlC_r xlC
2677 # Extract the first word of "$ac_prog", so it can be a program name with args.
2678 set dummy
$ac_prog; ac_word
=$2
2679 echo "$as_me:$LINENO: checking for $ac_word" >&5
2680 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
2681 if test "${ac_cv_prog_ac_ct_CXX+set}" = set; then
2682 echo $ECHO_N "(cached) $ECHO_C" >&6
2684 if test -n "$ac_ct_CXX"; then
2685 ac_cv_prog_ac_ct_CXX
="$ac_ct_CXX" # Let the user override the test.
2687 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
2691 test -z "$as_dir" && as_dir
=.
2692 for ac_exec_ext
in '' $ac_executable_extensions; do
2693 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2694 ac_cv_prog_ac_ct_CXX
="$ac_prog"
2695 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2703 ac_ct_CXX
=$ac_cv_prog_ac_ct_CXX
2704 if test -n "$ac_ct_CXX"; then
2705 echo "$as_me:$LINENO: result: $ac_ct_CXX" >&5
2706 echo "${ECHO_T}$ac_ct_CXX" >&6
2708 echo "$as_me:$LINENO: result: no" >&5
2709 echo "${ECHO_T}no" >&6
2712 test -n "$ac_ct_CXX" && break
2714 test -n "$ac_ct_CXX" || ac_ct_CXX
="g++"
2720 # Provide some information about the compiler.
2721 echo "$as_me:$LINENO:" \
2722 "checking for C++ compiler version" >&5
2723 ac_compiler
=`set X $ac_compile; echo $2`
2724 { (eval echo "$as_me:$LINENO: \"$ac_compiler --version </dev/null >&5\"") >&5
2725 (eval $ac_compiler --version </dev
/null
>&5) 2>&5
2727 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2728 (exit $ac_status); }
2729 { (eval echo "$as_me:$LINENO: \"$ac_compiler -v </dev/null >&5\"") >&5
2730 (eval $ac_compiler -v </dev
/null
>&5) 2>&5
2732 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2733 (exit $ac_status); }
2734 { (eval echo "$as_me:$LINENO: \"$ac_compiler -V </dev/null >&5\"") >&5
2735 (eval $ac_compiler -V </dev
/null
>&5) 2>&5
2737 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2738 (exit $ac_status); }
2740 echo "$as_me:$LINENO: checking whether we are using the GNU C++ compiler" >&5
2741 echo $ECHO_N "checking whether we are using the GNU C++ compiler... $ECHO_C" >&6
2742 if test "${ac_cv_cxx_compiler_gnu+set}" = set; then
2743 echo $ECHO_N "(cached) $ECHO_C" >&6
2745 cat >conftest.
$ac_ext <<_ACEOF
2748 cat confdefs.h
>>conftest.
$ac_ext
2749 cat >>conftest.
$ac_ext <<_ACEOF
2750 /* end confdefs.h. */
2763 rm -f conftest.
$ac_objext
2764 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2765 (eval $ac_compile) 2>conftest.er1
2767 grep -v '^ *+' conftest.er1
>conftest.err
2769 cat conftest.err
>&5
2770 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2771 (exit $ac_status); } &&
2772 { ac_try
='test -z "$ac_cxx_werror_flag"
2773 || test ! -s conftest.err'
2774 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2777 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2778 (exit $ac_status); }; } &&
2779 { ac_try
='test -s conftest.$ac_objext'
2780 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2783 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2784 (exit $ac_status); }; }; then
2787 echo "$as_me: failed program was:" >&5
2788 sed 's/^/| /' conftest.
$ac_ext >&5
2792 rm -f conftest.err conftest.
$ac_objext conftest.
$ac_ext
2793 ac_cv_cxx_compiler_gnu
=$ac_compiler_gnu
2796 echo "$as_me:$LINENO: result: $ac_cv_cxx_compiler_gnu" >&5
2797 echo "${ECHO_T}$ac_cv_cxx_compiler_gnu" >&6
2798 GXX
=`test $ac_compiler_gnu = yes && echo yes`
2799 ac_test_CXXFLAGS
=${CXXFLAGS+set}
2800 ac_save_CXXFLAGS
=$CXXFLAGS
2802 echo "$as_me:$LINENO: checking whether $CXX accepts -g" >&5
2803 echo $ECHO_N "checking whether $CXX accepts -g... $ECHO_C" >&6
2804 if test "${ac_cv_prog_cxx_g+set}" = set; then
2805 echo $ECHO_N "(cached) $ECHO_C" >&6
2807 cat >conftest.
$ac_ext <<_ACEOF
2810 cat confdefs.h
>>conftest.
$ac_ext
2811 cat >>conftest.
$ac_ext <<_ACEOF
2812 /* end confdefs.h. */
2822 rm -f conftest.
$ac_objext
2823 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2824 (eval $ac_compile) 2>conftest.er1
2826 grep -v '^ *+' conftest.er1
>conftest.err
2828 cat conftest.err
>&5
2829 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2830 (exit $ac_status); } &&
2831 { ac_try
='test -z "$ac_cxx_werror_flag"
2832 || test ! -s conftest.err'
2833 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2836 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2837 (exit $ac_status); }; } &&
2838 { ac_try
='test -s conftest.$ac_objext'
2839 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2842 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2843 (exit $ac_status); }; }; then
2844 ac_cv_prog_cxx_g
=yes
2846 echo "$as_me: failed program was:" >&5
2847 sed 's/^/| /' conftest.
$ac_ext >&5
2851 rm -f conftest.err conftest.
$ac_objext conftest.
$ac_ext
2853 echo "$as_me:$LINENO: result: $ac_cv_prog_cxx_g" >&5
2854 echo "${ECHO_T}$ac_cv_prog_cxx_g" >&6
2855 if test "$ac_test_CXXFLAGS" = set; then
2856 CXXFLAGS
=$ac_save_CXXFLAGS
2857 elif test $ac_cv_prog_cxx_g = yes; then
2858 if test "$GXX" = yes; then
2864 if test "$GXX" = yes; then
2870 for ac_declaration
in \
2872 'extern "C" void std::exit (int) throw (); using std::exit;' \
2873 'extern "C" void std::exit (int); using std::exit;' \
2874 'extern "C" void exit (int) throw ();' \
2875 'extern "C" void exit (int);' \
2878 cat >conftest.
$ac_ext <<_ACEOF
2881 cat confdefs.h
>>conftest.
$ac_ext
2882 cat >>conftest.
$ac_ext <<_ACEOF
2883 /* end confdefs.h. */
2894 rm -f conftest.
$ac_objext
2895 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2896 (eval $ac_compile) 2>conftest.er1
2898 grep -v '^ *+' conftest.er1
>conftest.err
2900 cat conftest.err
>&5
2901 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2902 (exit $ac_status); } &&
2903 { ac_try
='test -z "$ac_cxx_werror_flag"
2904 || test ! -s conftest.err'
2905 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2908 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2909 (exit $ac_status); }; } &&
2910 { ac_try
='test -s conftest.$ac_objext'
2911 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2914 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2915 (exit $ac_status); }; }; then
2918 echo "$as_me: failed program was:" >&5
2919 sed 's/^/| /' conftest.
$ac_ext >&5
2923 rm -f conftest.err conftest.
$ac_objext conftest.
$ac_ext
2924 cat >conftest.
$ac_ext <<_ACEOF
2927 cat confdefs.h
>>conftest.
$ac_ext
2928 cat >>conftest.
$ac_ext <<_ACEOF
2929 /* end confdefs.h. */
2939 rm -f conftest.
$ac_objext
2940 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2941 (eval $ac_compile) 2>conftest.er1
2943 grep -v '^ *+' conftest.er1
>conftest.err
2945 cat conftest.err
>&5
2946 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2947 (exit $ac_status); } &&
2948 { ac_try
='test -z "$ac_cxx_werror_flag"
2949 || test ! -s conftest.err'
2950 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2953 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2954 (exit $ac_status); }; } &&
2955 { ac_try
='test -s conftest.$ac_objext'
2956 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2959 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2960 (exit $ac_status); }; }; then
2963 echo "$as_me: failed program was:" >&5
2964 sed 's/^/| /' conftest.
$ac_ext >&5
2967 rm -f conftest.err conftest.
$ac_objext conftest.
$ac_ext
2970 if test -n "$ac_declaration"; then
2971 echo '#ifdef __cplusplus' >>confdefs.h
2972 echo $ac_declaration >>confdefs.h
2973 echo '#endif' >>confdefs.h
2977 ac_cpp
='$CPP $CPPFLAGS'
2978 ac_compile
='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2979 ac_link
='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2980 ac_compiler_gnu
=$ac_cv_c_compiler_gnu
2982 CXXFLAGS
="$save_CXXFLAGS"
2988 am__api_version
="1.9"
2989 # Find a good install program. We prefer a C program (faster),
2990 # so one script is as good as another. But avoid the broken or
2991 # incompatible versions:
2992 # SysV /etc/install, /usr/sbin/install
2993 # SunOS /usr/etc/install
2994 # IRIX /sbin/install
2996 # AmigaOS /C/install, which installs bootblocks on floppy discs
2997 # AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag
2998 # AFS /usr/afsws/bin/install, which mishandles nonexistent args
2999 # SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff"
3000 # OS/2's system install, which has a completely different semantic
3001 # ./install, which can be erroneously created by make from ./install.sh.
3002 echo "$as_me:$LINENO: checking for a BSD-compatible install" >&5
3003 echo $ECHO_N "checking for a BSD-compatible install... $ECHO_C" >&6
3004 if test -z "$INSTALL"; then
3005 if test "${ac_cv_path_install+set}" = set; then
3006 echo $ECHO_N "(cached) $ECHO_C" >&6
3008 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
3012 test -z "$as_dir" && as_dir
=.
3013 # Account for people who put trailing slashes in PATH elements.
3015 .
/ | .
// |
/cC
/* | \
3016 /etc
/* |
/usr
/sbin
/* |
/usr
/etc
/* |
/sbin
/* |
/usr
/afsws
/bin
/* | \
3017 ?
:\\/os2
\\/install\\/* | ?
:\\/OS2
\\/INSTALL
\\/* | \
3020 # OSF1 and SCO ODT 3.0 have their own names for install.
3021 # Don't use installbsd from OSF since it installs stuff as root
3023 for ac_prog
in ginstall scoinst
install; do
3024 for ac_exec_ext
in '' $ac_executable_extensions; do
3025 if $as_executable_p "$as_dir/$ac_prog$ac_exec_ext"; then
3026 if test $ac_prog = install &&
3027 grep dspmsg
"$as_dir/$ac_prog$ac_exec_ext" >/dev
/null
2>&1; then
3028 # AIX install. It has an incompatible calling convention.
3030 elif test $ac_prog = install &&
3031 grep pwplus
"$as_dir/$ac_prog$ac_exec_ext" >/dev
/null
2>&1; then
3032 # program-specific install script used by HP pwplus--don't use.
3035 ac_cv_path_install
="$as_dir/$ac_prog$ac_exec_ext -c"
3047 if test "${ac_cv_path_install+set}" = set; then
3048 INSTALL
=$ac_cv_path_install
3050 # As a last resort, use the slow shell script. We don't cache a
3051 # path for INSTALL within a source directory, because that will
3052 # break other packages using the cache if that directory is
3053 # removed, or if the path is relative.
3054 INSTALL
=$ac_install_sh
3057 echo "$as_me:$LINENO: result: $INSTALL" >&5
3058 echo "${ECHO_T}$INSTALL" >&6
3060 # Use test -z because SunOS4 sh mishandles braces in ${var-val}.
3061 # It thinks the first close brace ends the variable substitution.
3062 test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM
='${INSTALL}'
3064 test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT
='${INSTALL}'
3066 test -z "$INSTALL_DATA" && INSTALL_DATA
='${INSTALL} -m 644'
3068 echo "$as_me:$LINENO: checking whether build environment is sane" >&5
3069 echo $ECHO_N "checking whether build environment is sane... $ECHO_C" >&6
3072 echo timestamp
> conftest.
file
3073 # Do `set' in a subshell so we don't clobber the current shell's
3074 # arguments. Must try -L first in case configure is actually a
3075 # symlink; some systems play weird games with the mod time of symlinks
3076 # (eg FreeBSD returns the mod time of the symlink's containing
3079 set X
`ls -Lt $srcdir/configure conftest.file 2> /dev/null`
3080 if test "$*" = "X"; then
3082 set X
`ls -t $srcdir/configure conftest.file`
3085 if test "$*" != "X $srcdir/configure conftest.file" \
3086 && test "$*" != "X conftest.file $srcdir/configure"; then
3088 # If neither matched, then we have a broken ls. This can happen
3089 # if, for instance, CONFIG_SHELL is bash and it inherits a
3090 # broken ls alias from the environment. This has actually
3091 # happened. Such a system could not be considered "sane".
3092 { { echo "$as_me:$LINENO: error: ls -t appears to fail. Make sure there is not a broken
3093 alias in your environment" >&5
3094 echo "$as_me: error: ls -t appears to fail. Make sure there is not a broken
3095 alias in your environment" >&2;}
3096 { (exit 1); exit 1; }; }
3099 test "$2" = conftest.
file
3105 { { echo "$as_me:$LINENO: error: newly created file is older than distributed files!
3106 Check your system clock" >&5
3107 echo "$as_me: error: newly created file is older than distributed files!
3108 Check your system clock" >&2;}
3109 { (exit 1); exit 1; }; }
3111 echo "$as_me:$LINENO: result: yes" >&5
3112 echo "${ECHO_T}yes" >&6
3113 test "$program_prefix" != NONE
&&
3114 program_transform_name
="s,^,$program_prefix,;$program_transform_name"
3115 # Use a double $ so make ignores it.
3116 test "$program_suffix" != NONE
&&
3117 program_transform_name
="s,\$,$program_suffix,;$program_transform_name"
3118 # Double any \ or $. echo might interpret backslashes.
3119 # By default was `s,x,x', remove it if useless.
3120 cat <<\_ACEOF
>conftest.
sed
3121 s
/[\\$
]/&&/g
;s
/;s
,x
,x
,$
//
3123 program_transform_name
=`echo $program_transform_name | sed -f conftest.sed`
3126 # expand $ac_aux_dir to an absolute path
3127 am_aux_dir
=`cd $ac_aux_dir && pwd`
3129 test x
"${MISSING+set}" = xset || MISSING
="\${SHELL} $am_aux_dir/missing"
3130 # Use eval to expand $SHELL
3131 if eval "$MISSING --run true"; then
3132 am_missing_run
="$MISSING --run "
3135 { echo "$as_me:$LINENO: WARNING: \`missing' script is too old or missing" >&5
3136 echo "$as_me: WARNING: \`missing' script is too old or missing" >&2;}
3139 if mkdir
-p --version .
>/dev
/null
2>&1 && test ! -d .
/--version; then
3140 # We used to keeping the `.' as first argument, in order to
3141 # allow $(mkdir_p) to be used without argument. As in
3142 # $(mkdir_p) $(somedir)
3143 # where $(somedir) is conditionally defined. However this is wrong
3145 # 1. if the package is installed by a user who cannot write `.'
3146 # make install will fail,
3147 # 2. the above comment should most certainly read
3148 # $(mkdir_p) $(DESTDIR)$(somedir)
3149 # so it does not work when $(somedir) is undefined and
3150 # $(DESTDIR) is not.
3151 # To support the latter case, we have to write
3152 # test -z "$(somedir)" || $(mkdir_p) $(DESTDIR)$(somedir),
3153 # so the `.' trick is pointless.
3154 mkdir_p
='mkdir -p --'
3156 # On NextStep and OpenStep, the `mkdir' command does not
3157 # recognize any option. It will interpret all options as
3158 # directories to create, and then abort because `.' already
3160 for d
in .
/-p .
/--version;
3162 test -d $d && rmdir $d
3164 # $(mkinstalldirs) is defined by Automake if mkinstalldirs exists.
3165 if test -f "$ac_aux_dir/mkinstalldirs"; then
3166 mkdir_p
='$(mkinstalldirs)'
3168 mkdir_p
='$(install_sh) -d'
3172 for ac_prog
in gawk mawk nawk
awk
3174 # Extract the first word of "$ac_prog", so it can be a program name with args.
3175 set dummy
$ac_prog; ac_word
=$2
3176 echo "$as_me:$LINENO: checking for $ac_word" >&5
3177 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
3178 if test "${ac_cv_prog_AWK+set}" = set; then
3179 echo $ECHO_N "(cached) $ECHO_C" >&6
3181 if test -n "$AWK"; then
3182 ac_cv_prog_AWK
="$AWK" # Let the user override the test.
3184 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
3188 test -z "$as_dir" && as_dir
=.
3189 for ac_exec_ext
in '' $ac_executable_extensions; do
3190 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3191 ac_cv_prog_AWK
="$ac_prog"
3192 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
3201 if test -n "$AWK"; then
3202 echo "$as_me:$LINENO: result: $AWK" >&5
3203 echo "${ECHO_T}$AWK" >&6
3205 echo "$as_me:$LINENO: result: no" >&5
3206 echo "${ECHO_T}no" >&6
3209 test -n "$AWK" && break
3212 echo "$as_me:$LINENO: checking whether ${MAKE-make} sets \$(MAKE)" >&5
3213 echo $ECHO_N "checking whether ${MAKE-make} sets \$(MAKE)... $ECHO_C" >&6
3214 set dummy
${MAKE-make}; ac_make
=`echo "$2" | sed 'y,:./+-,___p_,'`
3215 if eval "test \"\${ac_cv_prog_make_${ac_make}_set+set}\" = set"; then
3216 echo $ECHO_N "(cached) $ECHO_C" >&6
3218 cat >conftest.
make <<\_ACEOF
3220 @
echo 'ac_maketemp="$(MAKE)"'
3222 # GNU make sometimes prints "make[1]: Entering...", which would confuse us.
3223 eval `${MAKE-make} -f conftest.make 2>/dev/null | grep temp=`
3224 if test -n "$ac_maketemp"; then
3225 eval ac_cv_prog_make_
${ac_make}_set
=yes
3227 eval ac_cv_prog_make_
${ac_make}_set
=no
3231 if eval "test \"`echo '$ac_cv_prog_make_'${ac_make}_set`\" = yes"; then
3232 echo "$as_me:$LINENO: result: yes" >&5
3233 echo "${ECHO_T}yes" >&6
3236 echo "$as_me:$LINENO: result: no" >&5
3237 echo "${ECHO_T}no" >&6
3238 SET_MAKE
="MAKE=${MAKE-make}"
3241 rm -rf .tst
2>/dev
/null
3242 mkdir .tst
2>/dev
/null
3243 if test -d .tst
; then
3248 rmdir .tst
2>/dev
/null
3250 DEPDIR
="${am__leading_dot}deps"
3252 ac_config_commands
="$ac_config_commands depfiles"
3255 am_make
=${MAKE-make}
3256 cat > confinc
<< 'END'
3261 # If we don't find an include directive, just comment out the code.
3262 echo "$as_me:$LINENO: checking for style of include used by $am_make" >&5
3263 echo $ECHO_N "checking for style of include used by $am_make... $ECHO_C" >&6
3267 # First try GNU make style include.
3268 echo "include confinc" > confmf
3269 # We grep out `Entering directory' and `Leaving directory'
3270 # messages which can occur if `w' ends up in MAKEFLAGS.
3271 # In particular we don't look at `^make:' because GNU make might
3272 # be invoked under some other name (usually "gmake"), in which
3273 # case it prints its new name instead of `make'.
3274 if test "`$am_make -s -f confmf 2> /dev/null | grep -v 'ing directory'`" = "done"; then
3279 # Now try BSD make style include.
3280 if test "$am__include" = "#"; then
3281 echo '.include "confinc"' > confmf
3282 if test "`$am_make -s -f confmf 2> /dev/null`" = "done"; then
3283 am__include
=.include
3290 echo "$as_me:$LINENO: result: $_am_result" >&5
3291 echo "${ECHO_T}$_am_result" >&6
3292 rm -f confinc confmf
3294 # Check whether --enable-dependency-tracking or --disable-dependency-tracking was given.
3295 if test "${enable_dependency_tracking+set}" = set; then
3296 enableval
="$enable_dependency_tracking"
3299 if test "x$enable_dependency_tracking" != xno
; then
3300 am_depcomp
="$ac_aux_dir/depcomp"
3305 if test "x$enable_dependency_tracking" != xno; then
3315 # test to see if srcdir already configured
3316 if test "`cd $srcdir && pwd`" != "`pwd`" &&
3317 test -f $srcdir/config.status
; then
3318 { { echo "$as_me:$LINENO: error: source directory already configured; run \"make distclean\" there first" >&5
3319 echo "$as_me: error: source directory already configured; run \"make distclean\" there first" >&2;}
3320 { (exit 1); exit 1; }; }
3323 # test whether we have cygpath
3324 if test -z "$CYGPATH_W"; then
3325 if (cygpath
--version) >/dev
/null
2>/dev
/null
; then
3326 CYGPATH_W
='cygpath -w'
3333 # Define the identity of the package.
3335 VERSION
='version-unused'
3338 cat >>confdefs.h
<<_ACEOF
3339 #define PACKAGE "$PACKAGE"
3343 cat >>confdefs.h
<<_ACEOF
3344 #define VERSION "$VERSION"
3347 # Some tools Automake needs.
3349 ACLOCAL
=${ACLOCAL-"${am_missing_run}aclocal-${am__api_version}"}
3352 AUTOCONF
=${AUTOCONF-"${am_missing_run}autoconf"}
3355 AUTOMAKE
=${AUTOMAKE-"${am_missing_run}automake-${am__api_version}"}
3358 AUTOHEADER
=${AUTOHEADER-"${am_missing_run}autoheader"}
3361 MAKEINFO
=${MAKEINFO-"${am_missing_run}makeinfo"}
3363 install_sh
=${install_sh-"$am_aux_dir/install-sh"}
3365 # Installed binaries are usually stripped using `strip' when the user
3366 # run `make install-strip'. However `strip' might not be the right
3367 # tool to use in cross-compilation environments, therefore Automake
3368 # will honor the `STRIP' environment variable to overrule this program.
3369 if test "$cross_compiling" != no
; then
3370 if test -n "$ac_tool_prefix"; then
3371 # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args.
3372 set dummy
${ac_tool_prefix}strip
; ac_word
=$2
3373 echo "$as_me:$LINENO: checking for $ac_word" >&5
3374 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
3375 if test "${ac_cv_prog_STRIP+set}" = set; then
3376 echo $ECHO_N "(cached) $ECHO_C" >&6
3378 if test -n "$STRIP"; then
3379 ac_cv_prog_STRIP
="$STRIP" # Let the user override the test.
3381 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
3385 test -z "$as_dir" && as_dir
=.
3386 for ac_exec_ext
in '' $ac_executable_extensions; do
3387 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3388 ac_cv_prog_STRIP
="${ac_tool_prefix}strip"
3389 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
3397 STRIP
=$ac_cv_prog_STRIP
3398 if test -n "$STRIP"; then
3399 echo "$as_me:$LINENO: result: $STRIP" >&5
3400 echo "${ECHO_T}$STRIP" >&6
3402 echo "$as_me:$LINENO: result: no" >&5
3403 echo "${ECHO_T}no" >&6
3407 if test -z "$ac_cv_prog_STRIP"; then
3409 # Extract the first word of "strip", so it can be a program name with args.
3410 set dummy strip
; ac_word
=$2
3411 echo "$as_me:$LINENO: checking for $ac_word" >&5
3412 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
3413 if test "${ac_cv_prog_ac_ct_STRIP+set}" = set; then
3414 echo $ECHO_N "(cached) $ECHO_C" >&6
3416 if test -n "$ac_ct_STRIP"; then
3417 ac_cv_prog_ac_ct_STRIP
="$ac_ct_STRIP" # Let the user override the test.
3419 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
3423 test -z "$as_dir" && as_dir
=.
3424 for ac_exec_ext
in '' $ac_executable_extensions; do
3425 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3426 ac_cv_prog_ac_ct_STRIP
="strip"
3427 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
3433 test -z "$ac_cv_prog_ac_ct_STRIP" && ac_cv_prog_ac_ct_STRIP
=":"
3436 ac_ct_STRIP
=$ac_cv_prog_ac_ct_STRIP
3437 if test -n "$ac_ct_STRIP"; then
3438 echo "$as_me:$LINENO: result: $ac_ct_STRIP" >&5
3439 echo "${ECHO_T}$ac_ct_STRIP" >&6
3441 echo "$as_me:$LINENO: result: no" >&5
3442 echo "${ECHO_T}no" >&6
3447 STRIP
="$ac_cv_prog_STRIP"
3451 INSTALL_STRIP_PROGRAM
="\${SHELL} \$(install_sh) -c -s"
3453 # We need awk for the "check" target. The system "awk" is bad on
3455 # Always define AMTAR for backward compatibility.
3457 AMTAR
=${AMTAR-"${am_missing_run}tar"}
3459 am__tar
='${AMTAR} chof - "$$tardir"'; am__untar
='${AMTAR} xf -'
3464 depcc
="$CC" am_compiler_list
=
3466 echo "$as_me:$LINENO: checking dependency style of $depcc" >&5
3467 echo $ECHO_N "checking dependency style of $depcc... $ECHO_C" >&6
3468 if test "${am_cv_CC_dependencies_compiler_type+set}" = set; then
3469 echo $ECHO_N "(cached) $ECHO_C" >&6
3471 if test -z "$AMDEP_TRUE" && test -f "$am_depcomp"; then
3472 # We make a subdir and do the tests there. Otherwise we can end up
3473 # making bogus files that we don't know about and never remove. For
3474 # instance it was reported that on HP-UX the gcc test will end up
3475 # making a dummy file named `D' -- because `-MD' means `put the output
3478 # Copy depcomp to subdir because otherwise we won't find it if we're
3479 # using a relative directory.
3480 cp "$am_depcomp" conftest.dir
3482 # We will build objects and dependencies in a subdirectory because
3483 # it helps to detect inapplicable dependency modes. For instance
3484 # both Tru64's cc and ICC support -MD to output dependencies as a
3485 # side effect of compilation, but ICC will put the dependencies in
3486 # the current directory while Tru64 will put them in the object
3490 am_cv_CC_dependencies_compiler_type
=none
3491 if test "$am_compiler_list" = ""; then
3492 am_compiler_list
=`sed -n 's/^#*\([a-zA-Z0-9]*\))$/\1/p' < ./depcomp`
3494 for depmode
in $am_compiler_list; do
3495 # Setup a source with many dependencies, because some compilers
3496 # like to wrap large dependency lists on column 80 (with \), and
3497 # we should not choose a depcomp mode which is confused by this.
3499 # We need to recreate these files for each test, as the compiler may
3500 # overwrite some of them when testing with obscure command lines.
3501 # This happens at least with the AIX C compiler.
3503 for i
in 1 2 3 4 5 6; do
3504 echo '#include "conftst'$i'.h"' >> sub
/conftest.c
3505 # Using `: > sub/conftst$i.h' creates only sub/conftst1.h with
3506 # Solaris 8's {/usr,}/bin/sh.
3507 touch sub
/conftst
$i.h
3509 echo "${am__include} ${am__quote}sub/conftest.Po${am__quote}" > confmf
3513 # after this tag, mechanisms are not by side-effect, so they'll
3514 # only be used when explicitly requested
3515 if test "x$enable_dependency_tracking" = xyes
; then
3523 # We check with `-c' and `-o' for the sake of the "dashmstdout"
3524 # mode. It turns out that the SunPro C++ compiler does not properly
3525 # handle `-M -o', and we need to detect this.
3526 if depmode
=$depmode \
3527 source=sub
/conftest.c object
=sub
/conftest.
${OBJEXT-o} \
3528 depfile
=sub
/conftest.Po tmpdepfile
=sub
/conftest.TPo \
3529 $SHELL .
/depcomp
$depcc -c -o sub
/conftest.
${OBJEXT-o} sub
/conftest.c \
3530 >/dev
/null
2>conftest.err
&&
3531 grep sub
/conftst6.h sub
/conftest.Po
> /dev
/null
2>&1 &&
3532 grep sub
/conftest.
${OBJEXT-o} sub
/conftest.Po
> /dev
/null
2>&1 &&
3533 ${MAKE-make} -s -f confmf
> /dev
/null
2>&1; then
3534 # icc doesn't choke on unknown options, it will just issue warnings
3535 # or remarks (even with -Werror). So we grep stderr for any message
3536 # that says an option was ignored or not supported.
3537 # When given -MP, icc 7.0 and 7.1 complain thusly:
3538 # icc: Command line warning: ignoring option '-M'; no argument required
3539 # The diagnosis changed in icc 8.0:
3540 # icc: Command line remark: option '-MP' not supported
3541 if (grep 'ignoring option' conftest.err ||
3542 grep 'not supported' conftest.err
) >/dev
/null
2>&1; then :; else
3543 am_cv_CC_dependencies_compiler_type
=$depmode
3552 am_cv_CC_dependencies_compiler_type
=none
3556 echo "$as_me:$LINENO: result: $am_cv_CC_dependencies_compiler_type" >&5
3557 echo "${ECHO_T}$am_cv_CC_dependencies_compiler_type" >&6
3558 CCDEPMODE
=depmode
=$am_cv_CC_dependencies_compiler_type
3563 test "x$enable_dependency_tracking" != xno \
3564 && test "$am_cv_CC_dependencies_compiler_type" = gcc3
; then
3566 am__fastdepCC_FALSE
='#'
3568 am__fastdepCC_TRUE
='#'
3569 am__fastdepCC_FALSE
=
3573 depcc
="$CXX" am_compiler_list
=
3575 echo "$as_me:$LINENO: checking dependency style of $depcc" >&5
3576 echo $ECHO_N "checking dependency style of $depcc... $ECHO_C" >&6
3577 if test "${am_cv_CXX_dependencies_compiler_type+set}" = set; then
3578 echo $ECHO_N "(cached) $ECHO_C" >&6
3580 if test -z "$AMDEP_TRUE" && test -f "$am_depcomp"; then
3581 # We make a subdir and do the tests there. Otherwise we can end up
3582 # making bogus files that we don't know about and never remove. For
3583 # instance it was reported that on HP-UX the gcc test will end up
3584 # making a dummy file named `D' -- because `-MD' means `put the output
3587 # Copy depcomp to subdir because otherwise we won't find it if we're
3588 # using a relative directory.
3589 cp "$am_depcomp" conftest.dir
3591 # We will build objects and dependencies in a subdirectory because
3592 # it helps to detect inapplicable dependency modes. For instance
3593 # both Tru64's cc and ICC support -MD to output dependencies as a
3594 # side effect of compilation, but ICC will put the dependencies in
3595 # the current directory while Tru64 will put them in the object
3599 am_cv_CXX_dependencies_compiler_type
=none
3600 if test "$am_compiler_list" = ""; then
3601 am_compiler_list
=`sed -n 's/^#*\([a-zA-Z0-9]*\))$/\1/p' < ./depcomp`
3603 for depmode
in $am_compiler_list; do
3604 # Setup a source with many dependencies, because some compilers
3605 # like to wrap large dependency lists on column 80 (with \), and
3606 # we should not choose a depcomp mode which is confused by this.
3608 # We need to recreate these files for each test, as the compiler may
3609 # overwrite some of them when testing with obscure command lines.
3610 # This happens at least with the AIX C compiler.
3612 for i
in 1 2 3 4 5 6; do
3613 echo '#include "conftst'$i'.h"' >> sub
/conftest.c
3614 # Using `: > sub/conftst$i.h' creates only sub/conftst1.h with
3615 # Solaris 8's {/usr,}/bin/sh.
3616 touch sub
/conftst
$i.h
3618 echo "${am__include} ${am__quote}sub/conftest.Po${am__quote}" > confmf
3622 # after this tag, mechanisms are not by side-effect, so they'll
3623 # only be used when explicitly requested
3624 if test "x$enable_dependency_tracking" = xyes
; then
3632 # We check with `-c' and `-o' for the sake of the "dashmstdout"
3633 # mode. It turns out that the SunPro C++ compiler does not properly
3634 # handle `-M -o', and we need to detect this.
3635 if depmode
=$depmode \
3636 source=sub
/conftest.c object
=sub
/conftest.
${OBJEXT-o} \
3637 depfile
=sub
/conftest.Po tmpdepfile
=sub
/conftest.TPo \
3638 $SHELL .
/depcomp
$depcc -c -o sub
/conftest.
${OBJEXT-o} sub
/conftest.c \
3639 >/dev
/null
2>conftest.err
&&
3640 grep sub
/conftst6.h sub
/conftest.Po
> /dev
/null
2>&1 &&
3641 grep sub
/conftest.
${OBJEXT-o} sub
/conftest.Po
> /dev
/null
2>&1 &&
3642 ${MAKE-make} -s -f confmf
> /dev
/null
2>&1; then
3643 # icc doesn't choke on unknown options, it will just issue warnings
3644 # or remarks (even with -Werror). So we grep stderr for any message
3645 # that says an option was ignored or not supported.
3646 # When given -MP, icc 7.0 and 7.1 complain thusly:
3647 # icc: Command line warning: ignoring option '-M'; no argument required
3648 # The diagnosis changed in icc 8.0:
3649 # icc: Command line remark: option '-MP' not supported
3650 if (grep 'ignoring option' conftest.err ||
3651 grep 'not supported' conftest.err
) >/dev
/null
2>&1; then :; else
3652 am_cv_CXX_dependencies_compiler_type
=$depmode
3661 am_cv_CXX_dependencies_compiler_type
=none
3665 echo "$as_me:$LINENO: result: $am_cv_CXX_dependencies_compiler_type" >&5
3666 echo "${ECHO_T}$am_cv_CXX_dependencies_compiler_type" >&6
3667 CXXDEPMODE
=depmode
=$am_cv_CXX_dependencies_compiler_type
3672 test "x$enable_dependency_tracking" != xno \
3673 && test "$am_cv_CXX_dependencies_compiler_type" = gcc3
; then
3674 am__fastdepCXX_TRUE
=
3675 am__fastdepCXX_FALSE
='#'
3677 am__fastdepCXX_TRUE
='#'
3678 am__fastdepCXX_FALSE
=
3684 if test -n "$ac_tool_prefix"; then
3685 # Extract the first word of "${ac_tool_prefix}as", so it can be a program name with args.
3686 set dummy
${ac_tool_prefix}as
; ac_word
=$2
3687 echo "$as_me:$LINENO: checking for $ac_word" >&5
3688 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
3689 if test "${ac_cv_prog_AS+set}" = set; then
3690 echo $ECHO_N "(cached) $ECHO_C" >&6
3692 if test -n "$AS"; then
3693 ac_cv_prog_AS
="$AS" # Let the user override the test.
3695 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
3699 test -z "$as_dir" && as_dir
=.
3700 for ac_exec_ext
in '' $ac_executable_extensions; do
3701 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3702 ac_cv_prog_AS
="${ac_tool_prefix}as"
3703 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
3712 if test -n "$AS"; then
3713 echo "$as_me:$LINENO: result: $AS" >&5
3714 echo "${ECHO_T}$AS" >&6
3716 echo "$as_me:$LINENO: result: no" >&5
3717 echo "${ECHO_T}no" >&6
3721 if test -z "$ac_cv_prog_AS"; then
3723 # Extract the first word of "as", so it can be a program name with args.
3724 set dummy as
; ac_word
=$2
3725 echo "$as_me:$LINENO: checking for $ac_word" >&5
3726 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
3727 if test "${ac_cv_prog_ac_ct_AS+set}" = set; then
3728 echo $ECHO_N "(cached) $ECHO_C" >&6
3730 if test -n "$ac_ct_AS"; then
3731 ac_cv_prog_ac_ct_AS
="$ac_ct_AS" # Let the user override the test.
3733 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
3737 test -z "$as_dir" && as_dir
=.
3738 for ac_exec_ext
in '' $ac_executable_extensions; do
3739 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3740 ac_cv_prog_ac_ct_AS
="as"
3741 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
3749 ac_ct_AS
=$ac_cv_prog_ac_ct_AS
3750 if test -n "$ac_ct_AS"; then
3751 echo "$as_me:$LINENO: result: $ac_ct_AS" >&5
3752 echo "${ECHO_T}$ac_ct_AS" >&6
3754 echo "$as_me:$LINENO: result: no" >&5
3755 echo "${ECHO_T}no" >&6
3763 if test -n "$ac_tool_prefix"; then
3764 # Extract the first word of "${ac_tool_prefix}ld", so it can be a program name with args.
3765 set dummy
${ac_tool_prefix}ld
; ac_word
=$2
3766 echo "$as_me:$LINENO: checking for $ac_word" >&5
3767 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
3768 if test "${ac_cv_prog_LD+set}" = set; then
3769 echo $ECHO_N "(cached) $ECHO_C" >&6
3771 if test -n "$LD"; then
3772 ac_cv_prog_LD
="$LD" # Let the user override the test.
3774 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
3778 test -z "$as_dir" && as_dir
=.
3779 for ac_exec_ext
in '' $ac_executable_extensions; do
3780 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3781 ac_cv_prog_LD
="${ac_tool_prefix}ld"
3782 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
3791 if test -n "$LD"; then
3792 echo "$as_me:$LINENO: result: $LD" >&5
3793 echo "${ECHO_T}$LD" >&6
3795 echo "$as_me:$LINENO: result: no" >&5
3796 echo "${ECHO_T}no" >&6
3800 if test -z "$ac_cv_prog_LD"; then
3802 # Extract the first word of "ld", so it can be a program name with args.
3803 set dummy ld
; ac_word
=$2
3804 echo "$as_me:$LINENO: checking for $ac_word" >&5
3805 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
3806 if test "${ac_cv_prog_ac_ct_LD+set}" = set; then
3807 echo $ECHO_N "(cached) $ECHO_C" >&6
3809 if test -n "$ac_ct_LD"; then
3810 ac_cv_prog_ac_ct_LD
="$ac_ct_LD" # Let the user override the test.
3812 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
3816 test -z "$as_dir" && as_dir
=.
3817 for ac_exec_ext
in '' $ac_executable_extensions; do
3818 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3819 ac_cv_prog_ac_ct_LD
="ld"
3820 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
3828 ac_ct_LD
=$ac_cv_prog_ac_ct_LD
3829 if test -n "$ac_ct_LD"; then
3830 echo "$as_me:$LINENO: result: $ac_ct_LD" >&5
3831 echo "${ECHO_T}$ac_ct_LD" >&6
3833 echo "$as_me:$LINENO: result: no" >&5
3834 echo "${ECHO_T}no" >&6
3842 if test -n "$ac_tool_prefix"; then
3843 # Extract the first word of "${ac_tool_prefix}ar", so it can be a program name with args.
3844 set dummy
${ac_tool_prefix}ar; ac_word
=$2
3845 echo "$as_me:$LINENO: checking for $ac_word" >&5
3846 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
3847 if test "${ac_cv_prog_AR+set}" = set; then
3848 echo $ECHO_N "(cached) $ECHO_C" >&6
3850 if test -n "$AR"; then
3851 ac_cv_prog_AR
="$AR" # Let the user override the test.
3853 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
3857 test -z "$as_dir" && as_dir
=.
3858 for ac_exec_ext
in '' $ac_executable_extensions; do
3859 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3860 ac_cv_prog_AR
="${ac_tool_prefix}ar"
3861 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
3870 if test -n "$AR"; then
3871 echo "$as_me:$LINENO: result: $AR" >&5
3872 echo "${ECHO_T}$AR" >&6
3874 echo "$as_me:$LINENO: result: no" >&5
3875 echo "${ECHO_T}no" >&6
3879 if test -z "$ac_cv_prog_AR"; then
3881 # Extract the first word of "ar", so it can be a program name with args.
3882 set dummy
ar; ac_word
=$2
3883 echo "$as_me:$LINENO: checking for $ac_word" >&5
3884 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
3885 if test "${ac_cv_prog_ac_ct_AR+set}" = set; then
3886 echo $ECHO_N "(cached) $ECHO_C" >&6
3888 if test -n "$ac_ct_AR"; then
3889 ac_cv_prog_ac_ct_AR
="$ac_ct_AR" # Let the user override the test.
3891 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
3895 test -z "$as_dir" && as_dir
=.
3896 for ac_exec_ext
in '' $ac_executable_extensions; do
3897 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3898 ac_cv_prog_ac_ct_AR
="ar"
3899 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
3907 ac_ct_AR
=$ac_cv_prog_ac_ct_AR
3908 if test -n "$ac_ct_AR"; then
3909 echo "$as_me:$LINENO: result: $ac_ct_AR" >&5
3910 echo "${ECHO_T}$ac_ct_AR" >&6
3912 echo "$as_me:$LINENO: result: no" >&5
3913 echo "${ECHO_T}no" >&6
3921 if test -n "$ac_tool_prefix"; then
3922 # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args.
3923 set dummy
${ac_tool_prefix}ranlib
; ac_word
=$2
3924 echo "$as_me:$LINENO: checking for $ac_word" >&5
3925 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
3926 if test "${ac_cv_prog_RANLIB+set}" = set; then
3927 echo $ECHO_N "(cached) $ECHO_C" >&6
3929 if test -n "$RANLIB"; then
3930 ac_cv_prog_RANLIB
="$RANLIB" # Let the user override the test.
3932 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
3936 test -z "$as_dir" && as_dir
=.
3937 for ac_exec_ext
in '' $ac_executable_extensions; do
3938 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3939 ac_cv_prog_RANLIB
="${ac_tool_prefix}ranlib"
3940 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
3948 RANLIB
=$ac_cv_prog_RANLIB
3949 if test -n "$RANLIB"; then
3950 echo "$as_me:$LINENO: result: $RANLIB" >&5
3951 echo "${ECHO_T}$RANLIB" >&6
3953 echo "$as_me:$LINENO: result: no" >&5
3954 echo "${ECHO_T}no" >&6
3958 if test -z "$ac_cv_prog_RANLIB"; then
3959 ac_ct_RANLIB
=$RANLIB
3960 # Extract the first word of "ranlib", so it can be a program name with args.
3961 set dummy ranlib
; ac_word
=$2
3962 echo "$as_me:$LINENO: checking for $ac_word" >&5
3963 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
3964 if test "${ac_cv_prog_ac_ct_RANLIB+set}" = set; then
3965 echo $ECHO_N "(cached) $ECHO_C" >&6
3967 if test -n "$ac_ct_RANLIB"; then
3968 ac_cv_prog_ac_ct_RANLIB
="$ac_ct_RANLIB" # Let the user override the test.
3970 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
3974 test -z "$as_dir" && as_dir
=.
3975 for ac_exec_ext
in '' $ac_executable_extensions; do
3976 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3977 ac_cv_prog_ac_ct_RANLIB
="ranlib"
3978 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
3984 test -z "$ac_cv_prog_ac_ct_RANLIB" && ac_cv_prog_ac_ct_RANLIB
=":"
3987 ac_ct_RANLIB
=$ac_cv_prog_ac_ct_RANLIB
3988 if test -n "$ac_ct_RANLIB"; then
3989 echo "$as_me:$LINENO: result: $ac_ct_RANLIB" >&5
3990 echo "${ECHO_T}$ac_ct_RANLIB" >&6
3992 echo "$as_me:$LINENO: result: no" >&5
3993 echo "${ECHO_T}no" >&6
3996 RANLIB
=$ac_ct_RANLIB
3998 RANLIB
="$ac_cv_prog_RANLIB"
4001 for ac_prog
in gawk mawk nawk
awk
4003 # Extract the first word of "$ac_prog", so it can be a program name with args.
4004 set dummy
$ac_prog; ac_word
=$2
4005 echo "$as_me:$LINENO: checking for $ac_word" >&5
4006 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
4007 if test "${ac_cv_prog_AWK+set}" = set; then
4008 echo $ECHO_N "(cached) $ECHO_C" >&6
4010 if test -n "$AWK"; then
4011 ac_cv_prog_AWK
="$AWK" # Let the user override the test.
4013 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
4017 test -z "$as_dir" && as_dir
=.
4018 for ac_exec_ext
in '' $ac_executable_extensions; do
4019 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4020 ac_cv_prog_AWK
="$ac_prog"
4021 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4030 if test -n "$AWK"; then
4031 echo "$as_me:$LINENO: result: $AWK" >&5
4032 echo "${ECHO_T}$AWK" >&6
4034 echo "$as_me:$LINENO: result: no" >&5
4035 echo "${ECHO_T}no" >&6
4038 test -n "$AWK" && break
4041 for ac_prog
in jar fastjar
4043 # Extract the first word of "$ac_prog", so it can be a program name with args.
4044 set dummy
$ac_prog; ac_word
=$2
4045 echo "$as_me:$LINENO: checking for $ac_word" >&5
4046 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
4047 if test "${ac_cv_prog_JAR+set}" = set; then
4048 echo $ECHO_N "(cached) $ECHO_C" >&6
4050 if test -n "$JAR"; then
4051 ac_cv_prog_JAR
="$JAR" # Let the user override the test.
4053 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
4057 test -z "$as_dir" && as_dir
=.
4058 for ac_exec_ext
in '' $ac_executable_extensions; do
4059 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4060 ac_cv_prog_JAR
="$ac_prog"
4061 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4070 if test -n "$JAR"; then
4071 echo "$as_me:$LINENO: result: $JAR" >&5
4072 echo "${ECHO_T}$JAR" >&6
4074 echo "$as_me:$LINENO: result: no" >&5
4075 echo "${ECHO_T}no" >&6
4078 test -n "$JAR" && break
4080 test -n "$JAR" || JAR
="no"
4082 # Extract the first word of "zip", so it can be a program name with args.
4083 set dummy
zip; ac_word
=$2
4084 echo "$as_me:$LINENO: checking for $ac_word" >&5
4085 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
4086 if test "${ac_cv_path_ZIP+set}" = set; then
4087 echo $ECHO_N "(cached) $ECHO_C" >&6
4091 ac_cv_path_ZIP
="$ZIP" # Let the user override the test with a path.
4094 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
4098 test -z "$as_dir" && as_dir
=.
4099 for ac_exec_ext
in '' $ac_executable_extensions; do
4100 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4101 ac_cv_path_ZIP
="$as_dir/$ac_word$ac_exec_ext"
4102 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4108 test -z "$ac_cv_path_ZIP" && ac_cv_path_ZIP
="no"
4114 if test -n "$ZIP"; then
4115 echo "$as_me:$LINENO: result: $ZIP" >&5
4116 echo "${ECHO_T}$ZIP" >&6
4118 echo "$as_me:$LINENO: result: no" >&5
4119 echo "${ECHO_T}no" >&6
4122 # Extract the first word of "unzip", so it can be a program name with args.
4123 set dummy
unzip; ac_word
=$2
4124 echo "$as_me:$LINENO: checking for $ac_word" >&5
4125 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
4126 if test "${ac_cv_path_UNZIP+set}" = set; then
4127 echo $ECHO_N "(cached) $ECHO_C" >&6
4131 ac_cv_path_UNZIP
="$UNZIP" # Let the user override the test with a path.
4134 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
4138 test -z "$as_dir" && as_dir
=.
4139 for ac_exec_ext
in '' $ac_executable_extensions; do
4140 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4141 ac_cv_path_UNZIP
="$as_dir/$ac_word$ac_exec_ext"
4142 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4148 test -z "$ac_cv_path_UNZIP" && ac_cv_path_UNZIP
="unzip"
4152 UNZIP
=$ac_cv_path_UNZIP
4154 if test -n "$UNZIP"; then
4155 echo "$as_me:$LINENO: result: $UNZIP" >&5
4156 echo "${ECHO_T}$UNZIP" >&6
4158 echo "$as_me:$LINENO: result: no" >&5
4159 echo "${ECHO_T}no" >&6
4164 if test "$JAR" = no
; then
4172 if test "$ZIP" = no
; then
4173 if test "$JAR" = no
; then
4174 { { echo "$as_me:$LINENO: error: cannot find neither zip nor jar, cannot continue" >&5
4175 echo "$as_me: error: cannot find neither zip nor jar, cannot continue" >&2;}
4176 { (exit 1); exit 1; }; }
4179 # InfoZIP available, use the 'guaranteed' Bourne-shell JAR to build libjava
4180 JAR
=`pwd`/scripts
/jar
4183 # Find a good install program. We prefer a C program (faster),
4184 # so one script is as good as another. But avoid the broken or
4185 # incompatible versions:
4186 # SysV /etc/install, /usr/sbin/install
4187 # SunOS /usr/etc/install
4188 # IRIX /sbin/install
4190 # AmigaOS /C/install, which installs bootblocks on floppy discs
4191 # AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag
4192 # AFS /usr/afsws/bin/install, which mishandles nonexistent args
4193 # SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff"
4194 # OS/2's system install, which has a completely different semantic
4195 # ./install, which can be erroneously created by make from ./install.sh.
4196 echo "$as_me:$LINENO: checking for a BSD-compatible install" >&5
4197 echo $ECHO_N "checking for a BSD-compatible install... $ECHO_C" >&6
4198 if test -z "$INSTALL"; then
4199 if test "${ac_cv_path_install+set}" = set; then
4200 echo $ECHO_N "(cached) $ECHO_C" >&6
4202 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
4206 test -z "$as_dir" && as_dir
=.
4207 # Account for people who put trailing slashes in PATH elements.
4209 .
/ | .
// |
/cC
/* | \
4210 /etc
/* |
/usr
/sbin
/* |
/usr
/etc
/* |
/sbin
/* |
/usr
/afsws
/bin
/* | \
4211 ?
:\\/os2
\\/install\\/* | ?
:\\/OS2
\\/INSTALL
\\/* | \
4214 # OSF1 and SCO ODT 3.0 have their own names for install.
4215 # Don't use installbsd from OSF since it installs stuff as root
4217 for ac_prog
in ginstall scoinst
install; do
4218 for ac_exec_ext
in '' $ac_executable_extensions; do
4219 if $as_executable_p "$as_dir/$ac_prog$ac_exec_ext"; then
4220 if test $ac_prog = install &&
4221 grep dspmsg
"$as_dir/$ac_prog$ac_exec_ext" >/dev
/null
2>&1; then
4222 # AIX install. It has an incompatible calling convention.
4224 elif test $ac_prog = install &&
4225 grep pwplus
"$as_dir/$ac_prog$ac_exec_ext" >/dev
/null
2>&1; then
4226 # program-specific install script used by HP pwplus--don't use.
4229 ac_cv_path_install
="$as_dir/$ac_prog$ac_exec_ext -c"
4241 if test "${ac_cv_path_install+set}" = set; then
4242 INSTALL
=$ac_cv_path_install
4244 # As a last resort, use the slow shell script. We don't cache a
4245 # path for INSTALL within a source directory, because that will
4246 # break other packages using the cache if that directory is
4247 # removed, or if the path is relative.
4248 INSTALL
=$ac_install_sh
4251 echo "$as_me:$LINENO: result: $INSTALL" >&5
4252 echo "${ECHO_T}$INSTALL" >&6
4254 # Use test -z because SunOS4 sh mishandles braces in ${var-val}.
4255 # It thinks the first close brace ends the variable substitution.
4256 test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM
='${INSTALL}'
4258 test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT
='${INSTALL}'
4260 test -z "$INSTALL_DATA" && INSTALL_DATA
='${INSTALL} -m 644'
4263 echo "$as_me:$LINENO: checking whether to enable maintainer-specific portions of Makefiles" >&5
4264 echo $ECHO_N "checking whether to enable maintainer-specific portions of Makefiles... $ECHO_C" >&6
4265 # Check whether --enable-maintainer-mode or --disable-maintainer-mode was given.
4266 if test "${enable_maintainer_mode+set}" = set; then
4267 enableval
="$enable_maintainer_mode"
4268 USE_MAINTAINER_MODE
=$enableval
4270 USE_MAINTAINER_MODE
=no
4272 echo "$as_me:$LINENO: result: $USE_MAINTAINER_MODE" >&5
4273 echo "${ECHO_T}$USE_MAINTAINER_MODE" >&6
4276 if test $USE_MAINTAINER_MODE = yes; then
4277 MAINTAINER_MODE_TRUE
=
4278 MAINTAINER_MODE_FALSE
='#'
4280 MAINTAINER_MODE_TRUE
='#'
4281 MAINTAINER_MODE_FALSE
=
4284 MAINT
=$MAINTAINER_MODE_TRUE
4290 # configure.host sets the following important variables
4291 # libgcj_cflags - host specific C compiler flags
4292 # libgcj_cxxflags - host specific C++ compiler flags
4293 # libgcj_javaflags - host specific Java compiler flags
4299 .
${srcdir}/configure.
host
4301 LIBGCJ_CFLAGS
="${libgcj_cflags}"
4302 LIBGCJ_CXXFLAGS
="${libgcj_cxxflags}"
4303 LIBGCJ_JAVAFLAGS
="${libgcj_javaflags}"
4304 LIBGCJ_LD_SYMBOLIC
="${libgcj_ld_symbolic}"
4310 # Only use libltdl for non-newlib builds.
4311 if test "x${with_newlib}" = "x" ||
test "x${with_newlib}" = "xno"; then
4312 echo "$as_me:$LINENO: checking dynamic linker characteristics" >&5
4313 echo $ECHO_N "checking dynamic linker characteristics... $ECHO_C" >&6
4315 libname_spec
='lib$name'
4323 shlibpath_overrides_runpath
=unknown
4325 dynamic_linker
="$host_os ld.so"
4326 sys_lib_dlsearch_path_spec
="/lib /usr/lib"
4327 if test "$GCC" = yes; then
4328 sys_lib_search_path_spec
=`$CC -print-search-dirs | grep "^libraries:" | sed -e "s/^libraries://" -e "s,=/,/,g"`
4329 if echo "$sys_lib_search_path_spec" |
grep ';' >/dev
/null
; then
4330 # if the path contains ";" then we assume it to be the separator
4331 # otherwise default to the standard path separator (i.e. ":") - it is
4332 # assumed that no part of a normal pathname contains ";" but that should
4333 # okay in the real world where ";" in dirpaths is itself problematic.
4334 sys_lib_search_path_spec
=`echo "$sys_lib_search_path_spec" | sed -e 's/;/ /g'`
4336 sys_lib_search_path_spec
=`echo "$sys_lib_search_path_spec" | sed -e "s/$PATH_SEPARATOR/ /g"`
4339 sys_lib_search_path_spec
="/lib /usr/lib /usr/local/lib"
4341 need_lib_prefix
=unknown
4342 hardcode_into_libs
=no
4344 # when you set need_version to no, make sure it does not cause -set_version
4345 # flags to be left without arguments
4346 need_version
=unknown
4351 library_names_spec
='${libname}${release}${shared_ext}$versuffix $libname.a'
4352 shlibpath_var
=LIBPATH
4354 # AIX 3 has no versioning support, so we append a major version to the name.
4355 soname_spec
='${libname}${release}${shared_ext}$major'
4362 hardcode_into_libs
=yes
4363 if test "$host_cpu" = ia64
; then
4364 # AIX 5 supports IA64
4365 library_names_spec
='${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext}$versuffix $libname${shared_ext}'
4366 shlibpath_var
=LD_LIBRARY_PATH
4368 # With GCC up to 2.95.x, collect2 would create an import file
4369 # for dependence libraries. The import file would start with
4370 # the line `#! .'. This would cause the generated library to
4371 # depend on `.', always an invalid library. This was fixed in
4372 # development snapshots of GCC prior to 3.0.
4374 aix4 | aix4.
[01] | aix4.
[01].
*)
4375 if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)'
4377 echo '#endif'; } |
${CC} -E - |
grep yes > /dev
/null
; then
4384 # AIX (on Power*) has no versioning support, so currently we can not hardcode correct
4385 # soname into executable. Probably we can add versioning support to
4386 # collect2, so additional links can be useful in future.
4387 if test "$aix_use_runtimelinking" = yes; then
4388 # If using run time linking (on AIX 4.2 or later) use lib<name>.so
4389 # instead of lib<name>.a to let people know that these are not
4390 # typical AIX shared libraries.
4391 library_names_spec
='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
4393 # We preserve .a as extension for shared libraries through AIX4.2
4394 # and later when we are not doing run time linking.
4395 library_names_spec
='${libname}${release}.a $libname.a'
4396 soname_spec
='${libname}${release}${shared_ext}$major'
4398 shlibpath_var
=LIBPATH
4403 library_names_spec
='$libname.ixlibrary $libname.a'
4404 # Create ${libname}_ixlibrary.a entries in /sys/libs.
4405 finish_eval
='for lib in `ls $libdir/*.ixlibrary 2>/dev/null`; do libname=`$echo "X$lib" | $Xsed -e '\''s%^.*/\([^/]*\)\.ixlibrary$%\1%'\''`; test $rm /sys/libs/${libname}_ixlibrary.a; $show "(cd /sys/libs && $LN_S $lib ${libname}_ixlibrary.a)"; (cd /sys/libs && $LN_S $lib ${libname}_ixlibrary.a) || exit 1; done'
4409 library_names_spec
='${libname}${shared_ext}'
4410 dynamic_linker
="$host_os ld.so"
4411 shlibpath_var
=LIBRARY_PATH
4417 library_names_spec
='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
4418 soname_spec
='${libname}${release}${shared_ext}$major'
4419 finish_cmds
='PATH="\$PATH:/sbin" ldconfig $libdir'
4420 shlibpath_var
=LD_LIBRARY_PATH
4421 sys_lib_search_path_spec
="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib"
4422 sys_lib_dlsearch_path_spec
="/shlib /usr/lib /usr/local/lib"
4423 # the default ld.so.conf also contains /usr/contrib/lib and
4424 # /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow
4425 # libtool to hard-code these into programs
4428 cygwin
* | mingw
* | pw32
*)
4429 version_type
=windows
4434 case $GCC,$host_os in
4435 yes,cygwin
* |
yes,mingw
* |
yes,pw32
*)
4436 library_names_spec
='$libname.dll.a'
4437 # DLL is installed to $(libdir)/../bin by postinstall_cmds
4438 postinstall_cmds
='base_file=`basename \${file}`~
4439 dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i;echo \$dlname'\''`~
4440 dldir=$destdir/`dirname \$dlpath`~
4441 test -d \$dldir || mkdir -p \$dldir~
4442 $install_prog $dir/$dlname \$dldir/$dlname'
4443 postuninstall_cmds
='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
4444 dlpath=$dir/\$dldll~
4446 shlibpath_overrides_runpath
=yes
4450 # Cygwin DLLs use 'cyg' prefix rather than 'lib'
4451 soname_spec
='`echo ${libname} | sed -e 's/^lib/cyg/'``echo ${release} | sed -e 's/[.]/-/g'`${versuffix}${shared_ext}'
4452 sys_lib_search_path_spec
="/lib /lib/w32api /usr/lib /usr/local/lib"
4455 # MinGW DLLs use traditional 'lib' prefix
4456 soname_spec
='${libname}`echo ${release} | sed -e 's/[.]/-/g'`${versuffix}${shared_ext}'
4457 sys_lib_search_path_spec
=`$CC -print-search-dirs | grep "^libraries:" | sed -e "s/^libraries://" -e "s,=/,/,g"`
4458 if echo "$sys_lib_search_path_spec" |
grep ';[c-zC-Z]:/' >/dev
/null
; then
4459 # It is most probably a Windows format PATH printed by
4460 # mingw gcc, but we are running on Cygwin. Gcc prints its search
4461 # path with ; separators, and with drive letters. We can handle the
4462 # drive letters (cygwin fileutils understands them), so leave them,
4463 # especially as we might pass files found there to a mingw objdump,
4464 # which wouldn't understand a cygwinified path. Ahh.
4465 sys_lib_search_path_spec
=`echo "$sys_lib_search_path_spec" | sed -e 's/;/ /g'`
4467 sys_lib_search_path_spec
=`echo "$sys_lib_search_path_spec" | sed -e "s/$PATH_SEPARATOR/ /g"`
4471 # pw32 DLLs use 'pw' prefix rather than 'lib'
4472 library_names_spec
='`echo ${libname} | sed -e 's/^lib/pw/'``echo ${release} | sed -e 's/./-/g'`${versuffix}${shared_ext}'
4478 library_names_spec
='${libname}`echo ${release} | sed -e 's/[.]/-/g'`${versuffix}${shared_ext} $libname.lib'
4481 dynamic_linker
='Win32 ld.exe'
4482 # FIXME: first we should search . and the directory the executable is in
4486 darwin
* | rhapsody
*)
4487 dynamic_linker
="$host_os dyld"
4491 # FIXME: Relying on posixy $() will cause problems for
4492 # cross-compilation, but unfortunately the echo tests do not
4493 # yet detect zsh echo's removal of \ escapes.
4494 library_names_spec
='${libname}${release}${versuffix}$shared_ext ${libname}${release}${major}$shared_ext ${libname}$shared_ext'
4495 soname_spec
='${libname}${release}${major}$shared_ext'
4496 shlibpath_overrides_runpath
=yes
4497 shlibpath_var
=DYLD_LIBRARY_PATH
4498 shrext
='$(test .$module = .yes && echo .so || echo .dylib)'
4499 # Apple's gcc prints 'gcc -print-search-dirs' doesn't operate the same.
4500 if $CC -v 2>&1 |
grep 'Apple' >/dev
/null
; then
4501 sys_lib_search_path_spec
=`$CC -print-search-dirs | tr "\n" "$PATH_SEPARATOR" | sed -e 's/libraries:/@libraries:/' | tr "@" "\n" | grep "^libraries:" | sed -e "s/^libraries://" -e "s,=/,/,g" -e "s,$PATH_SEPARATOR, ,g" -e "s,.*,& /lib /usr/lib /usr/local/lib,g"`
4503 sys_lib_dlsearch_path_spec
='/usr/local/lib /lib /usr/lib'
4510 library_names_spec
='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname$shared_ext'
4511 soname_spec
='${libname}${release}${shared_ext}$major'
4512 shlibpath_var
=LD_LIBRARY_PATH
4520 objformat
=`test -x /usr/bin/objformat && /usr/bin/objformat || echo aout`
4521 version_type
=freebsd-
$objformat
4522 case $version_type in
4524 library_names_spec
='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
4529 library_names_spec
='${libname}${release}${shared_ext}$versuffix $libname${shared_ext}$versuffix'
4533 shlibpath_var
=LD_LIBRARY_PATH
4536 shlibpath_overrides_runpath
=yes
4538 freebsd3.01
* | freebsdelf3.01
*)
4539 shlibpath_overrides_runpath
=yes
4540 hardcode_into_libs
=yes
4543 shlibpath_overrides_runpath
=no
4544 hardcode_into_libs
=yes
4553 library_names_spec
='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}'
4554 soname_spec
='${libname}${release}${shared_ext}$major'
4555 shlibpath_var
=LD_LIBRARY_PATH
4556 hardcode_into_libs
=yes
4559 hpux9
* | hpux10
* | hpux11
*)
4560 # Give a soname corresponding to the major version so that dld.sl refuses to
4561 # link against other versions.
4568 hardcode_into_libs
=yes
4569 dynamic_linker
="$host_os dld.so"
4570 shlibpath_var
=LD_LIBRARY_PATH
4571 shlibpath_overrides_runpath
=yes # Unless +noenvvar is specified.
4572 library_names_spec
='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
4573 soname_spec
='${libname}${release}${shared_ext}$major'
4574 if test "X$HPUX_IA64_MODE" = X32
; then
4575 sys_lib_search_path_spec
="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib"
4577 sys_lib_search_path_spec
="/usr/lib/hpux64 /usr/local/lib/hpux64"
4579 sys_lib_dlsearch_path_spec
=$sys_lib_search_path_spec
4583 hardcode_into_libs
=yes
4584 dynamic_linker
="$host_os dld.sl"
4585 shlibpath_var
=LD_LIBRARY_PATH
# How should we handle SHLIB_PATH
4586 shlibpath_overrides_runpath
=yes # Unless +noenvvar is specified.
4587 library_names_spec
='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
4588 soname_spec
='${libname}${release}${shared_ext}$major'
4589 sys_lib_search_path_spec
="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64"
4590 sys_lib_dlsearch_path_spec
=$sys_lib_search_path_spec
4594 dynamic_linker
="$host_os dld.sl"
4595 shlibpath_var
=SHLIB_PATH
4596 shlibpath_overrides_runpath
=no
# +s is required to enable SHLIB_PATH
4597 library_names_spec
='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
4598 soname_spec
='${libname}${release}${shared_ext}$major'
4601 # HP-UX runs *really* slowly unless shared libraries are mode 555.
4602 postinstall_cmds
='chmod 555 $lib'
4605 irix5
* | irix6
* | nonstopux
*)
4607 nonstopux
*) version_type
=nonstopux
;;
4609 if test "$lt_cv_prog_gnu_ld" = yes; then
4617 soname_spec
='${libname}${release}${shared_ext}$major'
4618 library_names_spec
='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext} $libname${shared_ext}'
4620 irix5
* | nonstopux
*)
4624 case $LD in # libtool.m4 will add one of these switches to LD
4625 *-32|
*"-32 "|
*-melf32bsmip|
*"-melf32bsmip ")
4626 libsuff
= shlibsuff
= libmagic
=32-bit;;
4627 *-n32|
*"-n32 "|
*-melf32bmipn32|
*"-melf32bmipn32 ")
4628 libsuff
=32 shlibsuff
=N32 libmagic
=N32
;;
4629 *-64|
*"-64 "|
*-melf64bmip|
*"-melf64bmip ")
4630 libsuff
=64 shlibsuff
=64 libmagic
=64-bit;;
4631 *) libsuff
= shlibsuff
= libmagic
=never-match
;;
4635 shlibpath_var
=LD_LIBRARY
${shlibsuff}_PATH
4636 shlibpath_overrides_runpath
=no
4637 sys_lib_search_path_spec
="/usr/lib${libsuff} /lib${libsuff} /usr/local/lib${libsuff}"
4638 sys_lib_dlsearch_path_spec
="/usr/lib${libsuff} /lib${libsuff}"
4639 hardcode_into_libs
=yes
4642 # No shared lib support for Linux oldld, aout, or coff.
4643 linux
*oldld
* | linux
*aout
* | linux
*coff
*)
4647 # This must be Linux ELF.
4652 library_names_spec
='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
4653 soname_spec
='${libname}${release}${shared_ext}$major'
4654 finish_cmds
='PATH="\$PATH:/sbin" ldconfig -n $libdir'
4655 shlibpath_var
=LD_LIBRARY_PATH
4656 shlibpath_overrides_runpath
=no
4657 # This implies no fast_install, which is unacceptable.
4658 # Some rework will be needed to allow for fast_install
4659 # before this can be enabled.
4660 hardcode_into_libs
=yes
4662 # We used to test for /lib/ld.so.1 and disable shared libraries on
4663 # powerpc, because MkLinux only supported shared libraries with the
4664 # GNU dynamic linker. Since this was broken with cross compilers,
4665 # most powerpc-linux boxes support dynamic linking these days and
4666 # people can always --disable-shared, the test was removed, and we
4667 # assume the GNU/Linux dynamic linker is in use.
4668 dynamic_linker
='GNU/Linux ld.so'
4675 if echo __ELF__ |
$CC -E - |
grep __ELF__
>/dev
/null
; then
4676 library_names_spec
='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
4677 finish_cmds
='PATH="\$PATH:/sbin" ldconfig -m $libdir'
4678 dynamic_linker
='NetBSD (a.out) ld.so'
4680 library_names_spec
='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext} ${libname}${shared_ext}'
4681 soname_spec
='${libname}${release}${shared_ext}$major'
4682 dynamic_linker
='NetBSD ld.elf_so'
4684 shlibpath_var
=LD_LIBRARY_PATH
4685 shlibpath_overrides_runpath
=yes
4686 hardcode_into_libs
=yes
4691 library_names_spec
='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
4692 shlibpath_var
=LD_LIBRARY_PATH
4693 shlibpath_overrides_runpath
=yes
4700 library_names_spec
='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
4701 soname_spec
='${libname}${release}${shared_ext}$major'
4702 shlibpath_var
=LD_LIBRARY_PATH
4703 shlibpath_overrides_runpath
=yes
4710 library_names_spec
='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
4711 finish_cmds
='PATH="\$PATH:/sbin" ldconfig -m $libdir'
4712 shlibpath_var
=LD_LIBRARY_PATH
4713 if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" ||
test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
4715 openbsd2.
[89] | openbsd2.
[89].
*)
4716 shlibpath_overrides_runpath
=no
4719 shlibpath_overrides_runpath
=yes
4723 shlibpath_overrides_runpath
=yes
4728 libname_spec
='$name'
4731 library_names_spec
='$libname${shared_ext} $libname.a'
4732 dynamic_linker
='OS/2 ld.exe'
4733 shlibpath_var
=LIBPATH
4736 osf3
* | osf4
* | osf5
*)
4740 soname_spec
='${libname}${release}${shared_ext}$major'
4741 library_names_spec
='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
4742 shlibpath_var
=LD_LIBRARY_PATH
4743 sys_lib_search_path_spec
="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib"
4744 sys_lib_dlsearch_path_spec
="$sys_lib_search_path_spec"
4749 soname_spec
='${libname}${release}${shared_ext}$major'
4750 library_names_spec
='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
4751 shlibpath_var
=LD_LIBRARY_PATH
4758 library_names_spec
='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
4759 soname_spec
='${libname}${release}${shared_ext}$major'
4760 shlibpath_var
=LD_LIBRARY_PATH
4761 shlibpath_overrides_runpath
=yes
4762 hardcode_into_libs
=yes
4763 # ldd complains unless libraries are executable
4764 postinstall_cmds
='chmod +x $lib'
4769 library_names_spec
='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
4770 finish_cmds
='PATH="\$PATH:/usr/etc" ldconfig $libdir'
4771 shlibpath_var
=LD_LIBRARY_PATH
4772 shlibpath_overrides_runpath
=yes
4773 if test "$with_gnu_ld" = yes; then
4779 sysv4 | sysv4.2uw2
* | sysv4.3
* | sysv5
*)
4781 library_names_spec
='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
4782 soname_spec
='${libname}${release}${shared_ext}$major'
4783 shlibpath_var
=LD_LIBRARY_PATH
4784 case $host_vendor in
4786 shlibpath_overrides_runpath
=no
4788 export_dynamic_flag_spec
='${wl}-Blargedynsym'
4789 runpath_var
=LD_RUN_PATH
4797 shlibpath_overrides_runpath
=no
4798 sys_lib_search_path_spec
='/lib /usr/lib /usr/ccs/lib'
4804 if test -d /usr
/nec
;then
4806 library_names_spec
='$libname${shared_ext}.$versuffix $libname${shared_ext}.$major $libname${shared_ext}'
4807 soname_spec
='$libname${shared_ext}.$major'
4808 shlibpath_var
=LD_LIBRARY_PATH
4814 library_names_spec
='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
4815 soname_spec
='${libname}${release}${shared_ext}$major'
4816 shlibpath_var
=LD_LIBRARY_PATH
4823 echo "$as_me:$LINENO: result: $dynamic_linker" >&5
4824 echo "${ECHO_T}$dynamic_linker" >&6
4825 test "$dynamic_linker" = no
&& can_build_shared
=no
4828 echo "$as_me:$LINENO: checking which variable specifies run-time library path" >&5
4829 echo $ECHO_N "checking which variable specifies run-time library path... $ECHO_C" >&6
4830 if test "${libltdl_cv_shlibpath_var+set}" = set; then
4831 echo $ECHO_N "(cached) $ECHO_C" >&6
4833 libltdl_cv_shlibpath_var
="$shlibpath_var"
4835 echo "$as_me:$LINENO: result: $libltdl_cv_shlibpath_var" >&5
4836 echo "${ECHO_T}$libltdl_cv_shlibpath_var" >&6
4837 if test -n "$libltdl_cv_shlibpath_var"; then
4839 cat >>confdefs.h
<<_ACEOF
4840 #define LTDL_SHLIBPATH_VAR "$libltdl_cv_shlibpath_var"
4847 ac_config_headers
="$ac_config_headers include/config.h gcj/libgcj-config.h"
4850 # See if the user has requested runtime debugging.
4851 LIBGCJDEBUG
="disable"
4853 # Check whether --enable-libgcj-debug or --disable-libgcj-debug was given.
4854 if test "${enable_libgcj_debug+set}" = set; then
4855 enableval
="$enable_libgcj_debug"
4856 if test "$enable_libgcj_debug" = yes; then
4858 cat >>confdefs.h
<<\_ACEOF
4862 LIBGCJDEBUG
="enable"
4866 # Determine which AWT peer libraries to build
4867 # Check whether --enable-java-awt or --disable-java-awt was given.
4868 if test "${enable_java_awt+set}" = set; then
4869 enableval
="$enable_java_awt"
4873 peerlibs
="`echo ${enable_java_awt} | tr ',' ' '`"
4877 # The default toolkit to use is the first one specified.
4881 for peer
in $peerlibs ; do
4884 if test "$no_x" = yes; then
4885 echo "*** xlib peers requested but no X library available" 1>&2
4889 if test -z "$TOOLKIT"; then
4890 TOOLKIT
=gnu.awt.xlib.XToolkit
4895 if test "$no_x" = yes; then
4896 echo "*** gtk peers requested but no X library available" 1>&2
4900 if test -z "$TOOLKIT"; then
4901 TOOLKIT
=gnu.java.awt.peer.gtk.GtkToolkit
4906 if test "$no_x" = yes; then
4907 # Perhaps we should admit the possibility of embedded Qt.
4908 echo "*** Qt peers requested but no X library available" 1>&2
4912 if test -z "$TOOLKIT"; then
4913 TOOLKIT
=gnu.java.awt.peer.qt.QtToolkit
4924 echo "*** unrecognised argument \"${peer}\" for --enable-java-awt" 1>&2
4931 if test "$use_xlib_awt" = yes; then
4940 # Create standard.omit based on decisions we just made.
4941 cp $srcdir/standard.omit.
in standard.omit
4942 if test "$use_xlib_awt" != yes; then
4943 echo gnu
/awt
/xlib
>> standard.omit
4944 echo gnu
/gcj
/xlib
>> standard.omit
4947 if test -z "${with_multisubdir}"; then
4950 builddotdot
=`echo ${with_multisubdir} | sed -e 's:[^/][^/]*:..:g'`
4955 # Which gcj do we use?
4957 built_gcc_dir
="`cd ${builddotdot}/../../${host_subdir}/gcc && ${PWDCMD-pwd}`"
4958 if test -n "${with_cross_host}"; then
4959 # We are being configured with a cross compiler. We can't
4960 # use ac_exeext, because that is for the target platform.
4963 case "${with_cross_host}" in
4965 cross_host_exeext
=.exe
4968 if test -x "${built_gcc_dir}/gcj${cross_host_exeext}"; then
4969 if test x
"$build_noncanonical" = x
"$with_cross_host"; then
4970 # Ordinary cross (host!=target and host=build)
4973 # Canadian cross (host!=target and host!=build)
4980 # We are being configured with a native or crossed-native compiler
4981 if test -x "${built_gcc_dir}/gcj${ac_exeext}"; then
4982 if test x
"$build" = x
"$host"; then
4983 # True native build (host=target and host=build)
4986 # Crossed-native build (host=target and host!=build)
4993 case "${which_gcj}" in
4995 GCJ
="$built_gcc_dir/gcj -B`${PWDCMD-pwd}`/ -B$built_gcc_dir/"
4996 GCJH
='$(top_builddir)/$(MULTIBUILDTOP)../../$(host_subdir)/gcc/gcjh'
4999 if test "x${with_newlib}" = "xyes"; then
5000 # FIXME (comment): Why is this needed?
5002 GCJ
="${target_noncanonical}-gcj"
5004 GCJ
="${target_noncanonical}-gcj -B`${PWDCMD-pwd}`/"
5006 GCJH
='$(target_noncanonical)-gcjh'
5009 GCJ
="gcj -B`${PWDCMD-pwd}`/"
5016 # Create it, so that compile/link tests don't fail
5017 test -f libgcj.spec ||
touch libgcj.spec
5021 # Set up to configure Classpath.
5022 # FIXME: no supported way to pass args in autoconf.
5023 ac_configure_args
="$ac_configure_args --with-fastjar=$JAR"
5024 ac_configure_args
="$ac_configure_args --enable-tool-wrappers"
5025 ac_configure_args
="$ac_configure_args --disable-load-library"
5026 ac_configure_args
="$ac_configure_args --${LIBGCJDEBUG}-debug"
5027 ac_configure_args
="$ac_configure_args --enable-default-toolkit=$TOOLKIT"
5028 dir1
=`cd $srcdir && pwd`
5030 ac_configure_args
="$ac_configure_args --with-vm-classes=$dir1:$dir2"
5031 ac_configure_args
="$ac_configure_args --disable-core-jni"
5032 ac_configure_args
="$ac_configure_args --disable-examples"
5033 ac_configure_args
="$ac_configure_args --with-glibj=build"
5034 if test "$plugin_enabled" != yes; then
5035 ac_configure_args
="$ac_configure_args --disable-plugin"
5037 if test "$use_gtk_awt" != yes; then
5038 ac_configure_args
="$ac_configure_args --disable-gtk-peer"
5040 if test "$use_qt_awt" != yes; then
5041 ac_configure_args
="$ac_configure_args --disable-qt-peer"
5043 # We need this as qt is disabled by default in classpath.
5044 ac_configure_args
="$ac_configure_args --enable-qt-peer"
5047 # Only use libltdl for non-newlib builds.
5048 if test "x${with_newlib}" = "x" ||
test "x${with_newlib}" = "xno"; then
5049 case $enable_ltdl_convenience in
5050 no
) { { echo "$as_me:$LINENO: error: this package needs a convenience libltdl" >&5
5051 echo "$as_me: error: this package needs a convenience libltdl" >&2;}
5052 { (exit 1); exit 1; }; } ;;
5053 "") enable_ltdl_convenience
=yes
5054 ac_configure_args
="$ac_configure_args --enable-ltdl-convenience" ;;
5056 LIBLTDL
='${top_builddir}/''libltdl'/libltdlc.la
5057 INCLTDL
='-I${top_srcdir}/''libltdl'
5062 cat >>confdefs.h
<<\_ACEOF
5066 # Sigh. Libtool's macro doesn't do the right thing.
5067 INCLTDL
="-I\$(top_srcdir)/libltdl $INCLTDL"
5068 # FIXME: this is a hack.
5069 sub_auxdir
="`cd $ac_aux_dir && ${PWDCMD-pwd}`"
5070 ac_configure_args
="$ac_configure_args --with-auxdir=$sub_auxdir"
5075 # Check whether --enable-shared or --disable-shared was given.
5076 if test "${enable_shared+set}" = set; then
5077 enableval
="$enable_shared"
5078 p
=${PACKAGE-default}
5080 yes) enable_shared
=yes ;;
5081 no
) enable_shared
=no
;;
5084 # Look at the argument we got. We use all the common list separators.
5085 IFS
="${IFS= }"; ac_save_ifs
="$IFS"; IFS
="${IFS}:,"
5086 for pkg
in $enableval; do
5087 if test "X$pkg" = "X$p"; then
5097 # Check whether --enable-static or --disable-static was given.
5098 if test "${enable_static+set}" = set; then
5099 enableval
="$enable_static"
5100 p
=${PACKAGE-default}
5102 yes) enable_static
=yes ;;
5103 no
) enable_static
=no
;;
5106 # Look at the argument we got. We use all the common list separators.
5107 IFS
="${IFS= }"; ac_save_ifs
="$IFS"; IFS
="${IFS}:,"
5108 for pkg
in $enableval; do
5109 if test "X$pkg" = "X$p"; then
5119 # Check whether --enable-fast-install or --disable-fast-install was given.
5120 if test "${enable_fast_install+set}" = set; then
5121 enableval
="$enable_fast_install"
5122 p
=${PACKAGE-default}
5124 yes) enable_fast_install
=yes ;;
5125 no
) enable_fast_install
=no
;;
5127 enable_fast_install
=no
5128 # Look at the argument we got. We use all the common list separators.
5129 IFS
="${IFS= }"; ac_save_ifs
="$IFS"; IFS
="${IFS}:,"
5130 for pkg
in $enableval; do
5131 if test "X$pkg" = "X$p"; then
5132 enable_fast_install
=yes
5139 enable_fast_install
=yes
5142 # Check whether --with-gnu-ld or --without-gnu-ld was given.
5143 if test "${with_gnu_ld+set}" = set; then
5144 withval
="$with_gnu_ld"
5145 test "$withval" = no || with_gnu_ld
=yes
5150 if test "$GCC" = yes; then
5151 # Check if gcc -print-prog-name=ld gives a path.
5152 echo "$as_me:$LINENO: checking for ld used by GCC" >&5
5153 echo $ECHO_N "checking for ld used by GCC... $ECHO_C" >&6
5156 # gcc leaves a trailing carriage return which upsets mingw
5157 ac_prog
=`($CC -print-prog-name=ld) 2>&5 | tr -d '\015'` ;;
5159 ac_prog
=`($CC -print-prog-name=ld) 2>&5` ;;
5162 # Accept absolute paths.
5163 [\\/]* |
[A-Za-z
]:[\\/]*)
5164 re_direlt
='/[^/][^/]*/\.\./'
5165 # Canonicalize the path of ld
5166 ac_prog
=`echo $ac_prog| sed 's%\\\\%/%g'`
5167 while echo $ac_prog |
grep "$re_direlt" > /dev
/null
2>&1; do
5168 ac_prog
=`echo $ac_prog| sed "s%$re_direlt%/%"`
5170 test -z "$LD" && LD
="$ac_prog"
5173 # If it fails, then pretend we aren't using GCC.
5177 # If it is relative, then search for the first ld in PATH.
5181 elif test "$with_gnu_ld" = yes; then
5182 echo "$as_me:$LINENO: checking for GNU ld" >&5
5183 echo $ECHO_N "checking for GNU ld... $ECHO_C" >&6
5185 echo "$as_me:$LINENO: checking for non-GNU ld" >&5
5186 echo $ECHO_N "checking for non-GNU ld... $ECHO_C" >&6
5188 if test "${lt_cv_path_LD+set}" = set; then
5189 echo $ECHO_N "(cached) $ECHO_C" >&6
5191 if test -z "$LD"; then
5192 IFS
="${IFS= }"; ac_save_ifs="$IFS"; IFS="${IFS}${PATH_SEPARATOR-:}"
5193 for ac_dir
in $PATH; do
5194 test -z "$ac_dir" && ac_dir
=.
5195 if test -f "$ac_dir/$ac_prog" ||
test -f "$ac_dir/$ac_prog$ac_exeext"; then
5196 lt_cv_path_LD
="$ac_dir/$ac_prog"
5197 # Check to see if the program is GNU ld. I'd rather use --version,
5198 # but apparently some GNU ld's only accept -v.
5199 # Break only if it was the GNU/non-GNU ld that we prefer.
5200 if "$lt_cv_path_LD" -v 2>&1 < /dev
/null |
egrep '(GNU|with BFD)' > /dev
/null
; then
5201 test "$with_gnu_ld" != no
&& break
5203 test "$with_gnu_ld" != yes && break
5209 lt_cv_path_LD
="$LD" # Let the user override the test with a path.
5214 if test -n "$LD"; then
5215 echo "$as_me:$LINENO: result: $LD" >&5
5216 echo "${ECHO_T}$LD" >&6
5218 echo "$as_me:$LINENO: result: no" >&5
5219 echo "${ECHO_T}no" >&6
5221 test -z "$LD" && { { echo "$as_me:$LINENO: error: no acceptable ld found in \$PATH" >&5
5222 echo "$as_me: error: no acceptable ld found in \$PATH" >&2;}
5223 { (exit 1); exit 1; }; }
5224 echo "$as_me:$LINENO: checking if the linker ($LD) is GNU ld" >&5
5225 echo $ECHO_N "checking if the linker ($LD) is GNU ld... $ECHO_C" >&6
5226 if test "${lt_cv_prog_gnu_ld+set}" = set; then
5227 echo $ECHO_N "(cached) $ECHO_C" >&6
5229 # I'd rather use --version here, but apparently some GNU ld's only accept -v.
5230 if $LD -v 2>&1 </dev
/null |
egrep '(GNU|with BFD)' 1>&5; then
5231 lt_cv_prog_gnu_ld
=yes
5233 lt_cv_prog_gnu_ld
=no
5236 echo "$as_me:$LINENO: result: $lt_cv_prog_gnu_ld" >&5
5237 echo "${ECHO_T}$lt_cv_prog_gnu_ld" >&6
5238 with_gnu_ld
=$lt_cv_prog_gnu_ld
5241 echo "$as_me:$LINENO: checking for $LD option to reload object files" >&5
5242 echo $ECHO_N "checking for $LD option to reload object files... $ECHO_C" >&6
5243 if test "${lt_cv_ld_reload_flag+set}" = set; then
5244 echo $ECHO_N "(cached) $ECHO_C" >&6
5246 lt_cv_ld_reload_flag
='-r'
5248 echo "$as_me:$LINENO: result: $lt_cv_ld_reload_flag" >&5
5249 echo "${ECHO_T}$lt_cv_ld_reload_flag" >&6
5250 reload_flag
=$lt_cv_ld_reload_flag
5251 test -n "$reload_flag" && reload_flag
=" $reload_flag"
5253 echo "$as_me:$LINENO: checking for BSD-compatible nm" >&5
5254 echo $ECHO_N "checking for BSD-compatible nm... $ECHO_C" >&6
5255 if test "${lt_cv_path_NM+set}" = set; then
5256 echo $ECHO_N "(cached) $ECHO_C" >&6
5258 if test -n "$NM"; then
5259 # Let the user override the test.
5262 IFS
="${IFS= }"; ac_save_ifs="$IFS"; IFS="${IFS}${PATH_SEPARATOR-:}"
5263 for ac_dir
in $PATH /usr
/ccs
/bin
/usr
/ucb
/bin
; do
5264 test -z "$ac_dir" && ac_dir
=.
5265 tmp_nm
=$ac_dir/${ac_tool_prefix}nm
5266 if test -f $tmp_nm ||
test -f $tmp_nm$ac_exeext ; then
5267 # Check to see if the nm accepts a BSD-compat flag.
5268 # Adding the `sed 1q' prevents false positives on HP-UX, which says:
5269 # nm: unknown option "B" ignored
5270 # Tru64's nm complains that /dev/null is an invalid object file
5271 if ($tmp_nm -B /dev
/null
2>&1 |
sed '1q'; exit 0) |
egrep '(/dev/null|Invalid file or object type)' >/dev
/null
; then
5272 lt_cv_path_NM
="$tmp_nm -B"
5274 elif ($tmp_nm -p /dev
/null
2>&1 |
sed '1q'; exit 0) |
egrep /dev
/null
>/dev
/null
; then
5275 lt_cv_path_NM
="$tmp_nm -p"
5278 lt_cv_path_NM
=${lt_cv_path_NM="$tmp_nm"} # keep the first match, but
5279 continue # so that we can try to find one that supports BSD flags
5284 test -z "$lt_cv_path_NM" && lt_cv_path_NM
=nm
5289 echo "$as_me:$LINENO: result: $NM" >&5
5290 echo "${ECHO_T}$NM" >&6
5292 echo "$as_me:$LINENO: checking how to recognise dependant libraries" >&5
5293 echo $ECHO_N "checking how to recognise dependant libraries... $ECHO_C" >&6
5294 if test "${lt_cv_deplibs_check_method+set}" = set; then
5295 echo $ECHO_N "(cached) $ECHO_C" >&6
5297 lt_cv_file_magic_cmd
='$MAGIC_CMD'
5298 lt_cv_file_magic_test_file
=
5299 lt_cv_deplibs_check_method
='unknown'
5300 # Need to set the preceding variable on all platforms that support
5301 # interlibrary dependencies.
5302 # 'none' -- dependencies not supported.
5303 # `unknown' -- same as none, but documents that we really don't know.
5304 # 'pass_all' -- all dependencies passed with no checks.
5305 # 'test_compile' -- check by making test program.
5306 # 'file_magic [regex]' -- check by looking for files in library path
5307 # which responds to the $file_magic_cmd with a given egrep regex.
5308 # If you have `file' or equivalent on your system and you're not sure
5309 # whether `pass_all' will *always* work, you probably want this one.
5313 lt_cv_deplibs_check_method
=pass_all
5317 lt_cv_deplibs_check_method
=pass_all
5321 lt_cv_deplibs_check_method
='file_magic ELF [0-9][0-9]*-bit [ML]SB (shared object|dynamic lib)'
5322 lt_cv_file_magic_cmd
='/usr/bin/file -L'
5323 lt_cv_file_magic_test_file
=/shlib
/libc.so
5326 cygwin
* | mingw
* |pw32
*)
5327 lt_cv_deplibs_check_method
='file_magic file format pei*-i386(.*architecture: i386)?'
5328 lt_cv_file_magic_cmd
='$OBJDUMP -f'
5331 darwin
* | rhapsody
*)
5332 # this will be overwritten by pass_all, but leave it in just in case
5333 lt_cv_deplibs_check_method
='file_magic Mach-O dynamically linked shared library'
5334 lt_cv_file_magic_cmd
='/usr/bin/file -L'
5336 rhapsody
* | darwin1.012
)
5337 lt_cv_file_magic_test_file
='/System/Library/Frameworks/System.framework/System'
5340 lt_cv_file_magic_test_file
='/usr/lib/libSystem.dylib'
5343 lt_cv_deplibs_check_method
=pass_all
5346 freebsd
* | kfreebsd
*-gnu)
5347 if echo __ELF__ |
$CC -E - |
grep __ELF__
> /dev
/null
; then
5350 # Not sure whether the presence of OpenBSD here was a mistake.
5351 # Let's accept both of them until this is cleared up.
5352 lt_cv_deplibs_check_method
='file_magic (FreeBSD|OpenBSD)/i[3-9]86 (compact )?demand paged shared library'
5353 lt_cv_file_magic_cmd
=/usr
/bin
/file
5354 lt_cv_file_magic_test_file
=`echo /usr/lib/libc.so.*`
5358 lt_cv_deplibs_check_method
=pass_all
5363 lt_cv_deplibs_check_method
=pass_all
5369 lt_cv_deplibs_check_method
='file_magic (s[0-9][0-9][0-9]|PA-RISC[0-9].[0-9]) shared library'
5370 lt_cv_file_magic_cmd
=/usr
/bin
/file
5371 lt_cv_file_magic_test_file
=/usr
/lib
/libc.sl
5374 lt_cv_deplibs_check_method
='file_magic (s[0-9][0-9][0-9]|ELF-[0-9][0-9]) shared object file - IA64'
5375 lt_cv_file_magic_cmd
=/usr
/bin
/file
5376 lt_cv_file_magic_test_file
=/usr
/lib
/hpux32
/libc.so
5384 # this will be overridden with pass_all, but let us keep it just in case
5385 lt_cv_deplibs_check_method
="file_magic ELF 32-bit MSB dynamic lib MIPS - version 1"
5389 *-32|
*"-32 ") libmagic
=32-bit;;
5390 *-n32|
*"-n32 ") libmagic
=N32
;;
5391 *-64|
*"-64 ") libmagic
=64-bit;;
5392 *) libmagic
=never-match
;;
5394 # this will be overridden with pass_all, but let us keep it just in case
5395 lt_cv_deplibs_check_method
="file_magic ELF ${libmagic} MSB mips-[1234] dynamic lib MIPS - version 1"
5398 lt_cv_file_magic_test_file
=`echo /lib${libsuff}/libc.so*`
5399 lt_cv_deplibs_check_method
=pass_all
5402 # This must be Linux ELF.
5404 lt_cv_deplibs_check_method
=pass_all
5407 netbsd
* | knetbsd
*-gnu)
5408 if echo __ELF__ |
$CC -E - |
grep __ELF__
> /dev
/null
; then
5409 lt_cv_deplibs_check_method
='match_pattern /lib[^/\.]+\.so\.[0-9]+\.[0-9]+$'
5411 lt_cv_deplibs_check_method
='match_pattern /lib[^/\.]+\.so$'
5416 lt_cv_deplibs_check_method
='file_magic ELF [0-9][0-9]*-bit [ML]SB (executable|dynamic lib)'
5417 lt_cv_file_magic_cmd
=/usr
/bin
/file
5418 lt_cv_file_magic_test_file
=/usr
/lib
/libnls.so
5421 osf3
* | osf4
* | osf5
*)
5422 # this will be overridden with pass_all, but let us keep it just in case
5423 lt_cv_deplibs_check_method
='file_magic COFF format alpha shared library'
5424 lt_cv_file_magic_test_file
=/shlib
/libc.so
5425 lt_cv_deplibs_check_method
=pass_all
5429 lt_cv_deplibs_check_method
=pass_all
5433 lt_cv_deplibs_check_method
=pass_all
5434 lt_cv_file_magic_test_file
=/lib
/libc.so
5437 sysv5uw
[78]* | sysv4
*uw2
*)
5438 lt_cv_deplibs_check_method
=pass_all
5441 sysv4 | sysv4.2uw2
* | sysv4.3
* | sysv5
*)
5442 case $host_vendor in
5444 lt_cv_deplibs_check_method
=pass_all
5447 lt_cv_deplibs_check_method
='file_magic ELF [0-9][0-9]*-bit [ML]SB (shared object|dynamic lib) M[0-9][0-9]* Version [0-9]'
5448 lt_cv_file_magic_test_file
=`echo /usr/lib/libc.so*`
5455 echo "$as_me:$LINENO: result: $lt_cv_deplibs_check_method" >&5
5456 echo "${ECHO_T}$lt_cv_deplibs_check_method" >&6
5457 file_magic_cmd
=$lt_cv_file_magic_cmd
5458 deplibs_check_method
=$lt_cv_deplibs_check_method
5463 # Autoconf 2.13's AC_OBJEXT and AC_EXEEXT macros only works for C compilers!
5465 # find the maximum length of command line arguments
5466 echo "$as_me:$LINENO: checking the maximum length of command line arguments" >&5
5467 echo $ECHO_N "checking the maximum length of command line arguments... $ECHO_C" >&6
5468 if test "${lt_cv_sys_max_cmd_len+set}" = set; then
5469 echo $ECHO_N "(cached) $ECHO_C" >&6
5476 # On DJGPP, this test can blow up pretty badly due to problems in libc
5477 # (any single argument exceeding 2000 bytes causes a buffer overrun
5478 # during glob expansion). Even if it were fixed, the result of this
5479 # check would be larger than it should be.
5480 lt_cv_sys_max_cmd_len
=12288; # 12K is about right
5484 # On Win9x/ME, this test blows up -- it succeeds, but takes
5485 # about 5 minutes as the teststring grows exponentially.
5486 # Worse, since 9x/ME are not pre-emptively multitasking,
5487 # you end up with a "frozen" computer, even though with patience
5488 # the test eventually succeeds (with a max line length of 256k).
5489 # Instead, let's just punt: use the minimum linelength reported by
5490 # all of the supported platforms: 8192 (on NT/2K/XP).
5491 lt_cv_sys_max_cmd_len
=8192;
5495 # On AmigaOS with pdksh, this test takes hours, literally.
5496 # So we just punt and use a minimum line length of 8192.
5497 lt_cv_sys_max_cmd_len
=8192;
5500 netbsd
* | freebsd
* | openbsd
* | darwin
* | dragonfly
*)
5501 # This has been around since 386BSD, at least. Likely further.
5502 if test -x /sbin
/sysctl
; then
5503 lt_cv_sys_max_cmd_len
=`/sbin/sysctl -n kern.argmax`
5504 elif test -x /usr
/sbin
/sysctl
; then
5505 lt_cv_sys_max_cmd_len
=`/usr/sbin/sysctl -n kern.argmax`
5507 lt_cv_sys_max_cmd_len
=65536 # usable default for *BSD
5509 # And add a safety zone
5510 lt_cv_sys_max_cmd_len
=`expr $lt_cv_sys_max_cmd_len \/ 4`
5511 lt_cv_sys_max_cmd_len
=`expr $lt_cv_sys_max_cmd_len \* 3`
5517 if test -n "$lt_cv_sys_max_cmd_len" ; then
5518 echo "$as_me:$LINENO: result: $lt_cv_sys_max_cmd_len" >&5
5519 echo "${ECHO_T}$lt_cv_sys_max_cmd_len" >&6
5521 echo "$as_me:$LINENO: result: none" >&5
5522 echo "${ECHO_T}none" >&6
5526 # Only perform the check for file, if the check method requires it
5527 case $deplibs_check_method in
5529 if test "$file_magic_cmd" = '$MAGIC_CMD'; then
5530 echo "$as_me:$LINENO: checking for ${ac_tool_prefix}file" >&5
5531 echo $ECHO_N "checking for ${ac_tool_prefix}file... $ECHO_C" >&6
5532 if test "${lt_cv_path_MAGIC_CMD+set}" = set; then
5533 echo $ECHO_N "(cached) $ECHO_C" >&6
5537 lt_cv_path_MAGIC_CMD
="$MAGIC_CMD" # Let the user override the test with a path.
5540 lt_cv_path_MAGIC_CMD
="$MAGIC_CMD" # Let the user override the test with a dos path.
5543 ac_save_MAGIC_CMD
="$MAGIC_CMD"
5544 IFS
="${IFS= }"; ac_save_ifs
="$IFS"; IFS
=":"
5545 ac_dummy
="/usr/bin:$PATH"
5546 for ac_dir
in $ac_dummy; do
5547 test -z "$ac_dir" && ac_dir
=.
5548 if test -f $ac_dir/${ac_tool_prefix}file; then
5549 lt_cv_path_MAGIC_CMD
="$ac_dir/${ac_tool_prefix}file"
5550 if test -n "$file_magic_test_file"; then
5551 case $deplibs_check_method in
5553 file_magic_regex
="`expr \"$deplibs_check_method\" : \"file_magic \(.*\)\"`"
5554 MAGIC_CMD
="$lt_cv_path_MAGIC_CMD"
5555 if eval $file_magic_cmd \
$file_magic_test_file 2> /dev
/null |
5556 egrep "$file_magic_regex" > /dev
/null
; then
5561 *** Warning: the command libtool uses to detect shared libraries,
5562 *** $file_magic_cmd, produces output that libtool cannot recognize.
5563 *** The result is that libtool may fail to recognize shared libraries
5564 *** as such. This will affect the creation of libtool libraries that
5565 *** depend on shared libraries, but programs linked with such libtool
5566 *** libraries will work regardless of this problem. Nevertheless, you
5567 *** may want to report the problem to your system manager and/or to
5568 *** bug-libtool@gnu.org
5578 MAGIC_CMD
="$ac_save_MAGIC_CMD"
5583 MAGIC_CMD
="$lt_cv_path_MAGIC_CMD"
5584 if test -n "$MAGIC_CMD"; then
5585 echo "$as_me:$LINENO: result: $MAGIC_CMD" >&5
5586 echo "${ECHO_T}$MAGIC_CMD" >&6
5588 echo "$as_me:$LINENO: result: no" >&5
5589 echo "${ECHO_T}no" >&6
5592 if test -z "$lt_cv_path_MAGIC_CMD"; then
5593 if test -n "$ac_tool_prefix"; then
5594 echo "$as_me:$LINENO: checking for file" >&5
5595 echo $ECHO_N "checking for file... $ECHO_C" >&6
5596 if test "${lt_cv_path_MAGIC_CMD+set}" = set; then
5597 echo $ECHO_N "(cached) $ECHO_C" >&6
5601 lt_cv_path_MAGIC_CMD
="$MAGIC_CMD" # Let the user override the test with a path.
5604 lt_cv_path_MAGIC_CMD
="$MAGIC_CMD" # Let the user override the test with a dos path.
5607 ac_save_MAGIC_CMD
="$MAGIC_CMD"
5608 IFS
="${IFS= }"; ac_save_ifs
="$IFS"; IFS
=":"
5609 ac_dummy
="/usr/bin:$PATH"
5610 for ac_dir
in $ac_dummy; do
5611 test -z "$ac_dir" && ac_dir
=.
5612 if test -f $ac_dir/file; then
5613 lt_cv_path_MAGIC_CMD
="$ac_dir/file"
5614 if test -n "$file_magic_test_file"; then
5615 case $deplibs_check_method in
5617 file_magic_regex
="`expr \"$deplibs_check_method\" : \"file_magic \(.*\)\"`"
5618 MAGIC_CMD
="$lt_cv_path_MAGIC_CMD"
5619 if eval $file_magic_cmd \
$file_magic_test_file 2> /dev
/null |
5620 egrep "$file_magic_regex" > /dev
/null
; then
5625 *** Warning: the command libtool uses to detect shared libraries,
5626 *** $file_magic_cmd, produces output that libtool cannot recognize.
5627 *** The result is that libtool may fail to recognize shared libraries
5628 *** as such. This will affect the creation of libtool libraries that
5629 *** depend on shared libraries, but programs linked with such libtool
5630 *** libraries will work regardless of this problem. Nevertheless, you
5631 *** may want to report the problem to your system manager and/or to
5632 *** bug-libtool@gnu.org
5642 MAGIC_CMD
="$ac_save_MAGIC_CMD"
5647 MAGIC_CMD
="$lt_cv_path_MAGIC_CMD"
5648 if test -n "$MAGIC_CMD"; then
5649 echo "$as_me:$LINENO: result: $MAGIC_CMD" >&5
5650 echo "${ECHO_T}$MAGIC_CMD" >&6
5652 echo "$as_me:$LINENO: result: no" >&5
5653 echo "${ECHO_T}no" >&6
5665 if test -n "$ac_tool_prefix"; then
5666 # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args.
5667 set dummy
${ac_tool_prefix}ranlib
; ac_word
=$2
5668 echo "$as_me:$LINENO: checking for $ac_word" >&5
5669 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
5670 if test "${ac_cv_prog_RANLIB+set}" = set; then
5671 echo $ECHO_N "(cached) $ECHO_C" >&6
5673 if test -n "$RANLIB"; then
5674 ac_cv_prog_RANLIB
="$RANLIB" # Let the user override the test.
5676 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
5680 test -z "$as_dir" && as_dir
=.
5681 for ac_exec_ext
in '' $ac_executable_extensions; do
5682 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5683 ac_cv_prog_RANLIB
="${ac_tool_prefix}ranlib"
5684 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5692 RANLIB
=$ac_cv_prog_RANLIB
5693 if test -n "$RANLIB"; then
5694 echo "$as_me:$LINENO: result: $RANLIB" >&5
5695 echo "${ECHO_T}$RANLIB" >&6
5697 echo "$as_me:$LINENO: result: no" >&5
5698 echo "${ECHO_T}no" >&6
5702 if test -z "$ac_cv_prog_RANLIB"; then
5703 ac_ct_RANLIB
=$RANLIB
5704 # Extract the first word of "ranlib", so it can be a program name with args.
5705 set dummy ranlib
; ac_word
=$2
5706 echo "$as_me:$LINENO: checking for $ac_word" >&5
5707 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
5708 if test "${ac_cv_prog_ac_ct_RANLIB+set}" = set; then
5709 echo $ECHO_N "(cached) $ECHO_C" >&6
5711 if test -n "$ac_ct_RANLIB"; then
5712 ac_cv_prog_ac_ct_RANLIB
="$ac_ct_RANLIB" # Let the user override the test.
5714 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
5718 test -z "$as_dir" && as_dir
=.
5719 for ac_exec_ext
in '' $ac_executable_extensions; do
5720 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5721 ac_cv_prog_ac_ct_RANLIB
="ranlib"
5722 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5728 test -z "$ac_cv_prog_ac_ct_RANLIB" && ac_cv_prog_ac_ct_RANLIB
=":"
5731 ac_ct_RANLIB
=$ac_cv_prog_ac_ct_RANLIB
5732 if test -n "$ac_ct_RANLIB"; then
5733 echo "$as_me:$LINENO: result: $ac_ct_RANLIB" >&5
5734 echo "${ECHO_T}$ac_ct_RANLIB" >&6
5736 echo "$as_me:$LINENO: result: no" >&5
5737 echo "${ECHO_T}no" >&6
5740 RANLIB
=$ac_ct_RANLIB
5742 RANLIB
="$ac_cv_prog_RANLIB"
5745 if test -n "$ac_tool_prefix"; then
5746 # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args.
5747 set dummy
${ac_tool_prefix}strip
; ac_word
=$2
5748 echo "$as_me:$LINENO: checking for $ac_word" >&5
5749 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
5750 if test "${ac_cv_prog_STRIP+set}" = set; then
5751 echo $ECHO_N "(cached) $ECHO_C" >&6
5753 if test -n "$STRIP"; then
5754 ac_cv_prog_STRIP
="$STRIP" # Let the user override the test.
5756 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
5760 test -z "$as_dir" && as_dir
=.
5761 for ac_exec_ext
in '' $ac_executable_extensions; do
5762 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5763 ac_cv_prog_STRIP
="${ac_tool_prefix}strip"
5764 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5772 STRIP
=$ac_cv_prog_STRIP
5773 if test -n "$STRIP"; then
5774 echo "$as_me:$LINENO: result: $STRIP" >&5
5775 echo "${ECHO_T}$STRIP" >&6
5777 echo "$as_me:$LINENO: result: no" >&5
5778 echo "${ECHO_T}no" >&6
5782 if test -z "$ac_cv_prog_STRIP"; then
5784 # Extract the first word of "strip", so it can be a program name with args.
5785 set dummy strip
; ac_word
=$2
5786 echo "$as_me:$LINENO: checking for $ac_word" >&5
5787 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
5788 if test "${ac_cv_prog_ac_ct_STRIP+set}" = set; then
5789 echo $ECHO_N "(cached) $ECHO_C" >&6
5791 if test -n "$ac_ct_STRIP"; then
5792 ac_cv_prog_ac_ct_STRIP
="$ac_ct_STRIP" # Let the user override the test.
5794 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
5798 test -z "$as_dir" && as_dir
=.
5799 for ac_exec_ext
in '' $ac_executable_extensions; do
5800 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5801 ac_cv_prog_ac_ct_STRIP
="strip"
5802 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5808 test -z "$ac_cv_prog_ac_ct_STRIP" && ac_cv_prog_ac_ct_STRIP
=":"
5811 ac_ct_STRIP
=$ac_cv_prog_ac_ct_STRIP
5812 if test -n "$ac_ct_STRIP"; then
5813 echo "$as_me:$LINENO: result: $ac_ct_STRIP" >&5
5814 echo "${ECHO_T}$ac_ct_STRIP" >&6
5816 echo "$as_me:$LINENO: result: no" >&5
5817 echo "${ECHO_T}no" >&6
5822 STRIP
="$ac_cv_prog_STRIP"
5826 # Check for any special flags to pass to ltconfig.
5827 libtool_flags
="--cache-file=$cache_file"
5828 test "$enable_shared" = no
&& libtool_flags
="$libtool_flags --disable-shared"
5829 test "$enable_static" = no
&& libtool_flags
="$libtool_flags --disable-static"
5830 test "$enable_fast_install" = no
&& libtool_flags
="$libtool_flags --disable-fast-install"
5831 test "$GCC" = yes && libtool_flags
="$libtool_flags --with-gcc"
5832 test "$lt_cv_prog_gnu_ld" = yes && libtool_flags
="$libtool_flags --with-gnu-ld"
5835 # Check whether --enable-libtool-lock or --disable-libtool-lock was given.
5836 if test "${enable_libtool_lock+set}" = set; then
5837 enableval
="$enable_libtool_lock"
5840 test "x$enable_libtool_lock" = xno
&& libtool_flags
="$libtool_flags --disable-lock"
5841 test x
"$silent" = xyes
&& libtool_flags
="$libtool_flags --silent"
5844 # Check whether --with-pic or --without-pic was given.
5845 if test "${with_pic+set}" = set; then
5851 test x
"$pic_mode" = xyes
&& libtool_flags
="$libtool_flags --prefer-pic"
5852 test x
"$pic_mode" = xno
&& libtool_flags
="$libtool_flags --prefer-non-pic"
5854 # Some flags need to be propagated to the compiler or linker for good
5858 # Find out which ABI we are using.
5859 echo '#line 5859 "configure"' > conftest.
$ac_ext
5860 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
5861 (eval $ac_compile) 2>&5
5863 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5864 (exit $ac_status); }; then
5865 if test "$lt_cv_prog_gnu_ld" = yes; then
5866 case `/usr/bin/file conftest.$ac_objext` in
5868 LD
="${LD-ld} -melf32bsmip"
5871 LD
="${LD-ld} -melf32bmipn32"
5874 LD
="${LD-ld} -melf64bmip"
5878 case `/usr/bin/file conftest.$ac_objext` in
5895 # Find out which ABI we are using.
5896 echo 'int i;' > conftest.
$ac_ext
5897 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
5898 (eval $ac_compile) 2>&5
5900 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5901 (exit $ac_status); }; then
5902 case "`/usr/bin/file conftest.o`" in
5914 x86_64-
*linux
*|ppc
*-*linux
*|powerpc
*-*linux
*|s390
*-*linux
*|sparc
*-*linux
*)
5915 # Find out which ABI we are using.
5916 echo 'int i;' > conftest.
$ac_ext
5917 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
5918 (eval $ac_compile) 2>&5
5920 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5921 (exit $ac_status); }; then
5922 case "`/usr/bin/file conftest.o`" in
5926 LD
="${LD-ld} -m elf_i386"
5928 ppc64-
*linux
*|powerpc64-
*linux
*)
5929 LD
="${LD-ld} -m elf32ppclinux"
5932 LD
="${LD-ld} -m elf_s390"
5935 LD
="${LD-ld} -m elf32_sparc"
5942 LD
="${LD-ld} -m elf_x86_64"
5944 ppc
*-*linux
*|powerpc
*-*linux
*)
5945 LD
="${LD-ld} -m elf64ppc"
5948 LD
="${LD-ld} -m elf64_s390"
5951 LD
="${LD-ld} -m elf64_sparc"
5961 # On SCO OpenServer 5, we need -belf to get full-featured binaries.
5962 SAVE_CFLAGS
="$CFLAGS"
5963 CFLAGS
="$CFLAGS -belf"
5964 echo "$as_me:$LINENO: checking whether the C compiler needs -belf" >&5
5965 echo $ECHO_N "checking whether the C compiler needs -belf... $ECHO_C" >&6
5966 if test "${lt_cv_cc_needs_belf+set}" = set; then
5967 echo $ECHO_N "(cached) $ECHO_C" >&6
5972 ac_cpp
='$CPP $CPPFLAGS'
5973 ac_compile
='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
5974 ac_link
='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
5975 ac_compiler_gnu
=$ac_cv_c_compiler_gnu
5977 if test x
$gcc_no_link = xyes
; then
5978 { { echo "$as_me:$LINENO: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&5
5979 echo "$as_me: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&2;}
5980 { (exit 1); exit 1; }; }
5982 cat >conftest.
$ac_ext <<_ACEOF
5985 cat confdefs.h
>>conftest.
$ac_ext
5986 cat >>conftest.
$ac_ext <<_ACEOF
5987 /* end confdefs.h. */
5997 rm -f conftest.
$ac_objext conftest
$ac_exeext
5998 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
5999 (eval $ac_link) 2>conftest.er1
6001 grep -v '^ *+' conftest.er1
>conftest.err
6003 cat conftest.err
>&5
6004 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6005 (exit $ac_status); } &&
6006 { ac_try
='test -z "$ac_c_werror_flag"
6007 || test ! -s conftest.err'
6008 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6011 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6012 (exit $ac_status); }; } &&
6013 { ac_try
='test -s conftest$ac_exeext'
6014 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6017 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6018 (exit $ac_status); }; }; then
6019 lt_cv_cc_needs_belf
=yes
6021 echo "$as_me: failed program was:" >&5
6022 sed 's/^/| /' conftest.
$ac_ext >&5
6024 lt_cv_cc_needs_belf
=no
6026 rm -f conftest.err conftest.
$ac_objext \
6027 conftest
$ac_exeext conftest.
$ac_ext
6029 ac_cpp
='$CPP $CPPFLAGS'
6030 ac_compile
='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
6031 ac_link
='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
6032 ac_compiler_gnu
=$ac_cv_c_compiler_gnu
6035 echo "$as_me:$LINENO: result: $lt_cv_cc_needs_belf" >&5
6036 echo "${ECHO_T}$lt_cv_cc_needs_belf" >&6
6037 if test x
"$lt_cv_cc_needs_belf" != x
"yes"; then
6038 # this is probably gcc 2.8.0, egcs 1.0 or newer; no need for -belf
6039 CFLAGS
="$SAVE_CFLAGS"
6047 # Save cache, so that ltconfig can load it
6048 cat >confcache
<<\_ACEOF
6049 # This file is a shell script that caches the results of configure
6050 # tests run on this system so they can be shared between configure
6051 # scripts and configure runs, see configure's option --config-cache.
6052 # It is not useful on other systems. If it contains results you don't
6053 # want to keep, you may remove or edit it.
6055 # config.status only pays attention to the cache file if you give it
6056 # the --recheck option to rerun configure.
6058 # `ac_cv_env_foo' variables (set or unset) will be overridden when
6059 # loading this file, other *unset* `ac_cv_foo' will be assigned the
6064 # The following way of writing the cache mishandles newlines in values,
6065 # but we know of no workaround that is simple, portable, and efficient.
6066 # So, don't put newlines in cache variables' values.
6067 # Ultrix sh set writes to stderr and can't be redirected directly,
6068 # and sets the high bit in the cache file unless we assign to the vars.
6071 case `(ac_space=' '; set | grep ac_space) 2>&1` in
6073 # `set' does not quote correctly, so add quotes (double-quote
6074 # substitution turns \\\\ into \\, and sed turns \\ into \).
6077 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p"
6080 # `set' quotes correctly as required by POSIX, so do not add quotes.
6082 "s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1=\\2/p"
6089 s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/
6091 /^ac_cv_env/!s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/
6093 if diff $cache_file confcache
>/dev
/null
2>&1; then :; else
6094 if test -w $cache_file; then
6095 test "x$cache_file" != "x/dev/null" && echo "updating cache $cache_file"
6096 cat confcache
>$cache_file
6098 echo "not updating unwritable cache $cache_file"
6103 # Actually configure libtool. ac_aux_dir is where install-sh is found.
6104 AR
="$AR" LTCC
="$CC" CC
="$CC" CFLAGS
="$CFLAGS" CPPFLAGS
="$CPPFLAGS" \
6105 MAGIC_CMD
="$MAGIC_CMD" LD
="$LD" LDFLAGS
="$LDFLAGS" LIBS
="$LIBS" \
6106 LN_S
="$LN_S" NM
="$NM" RANLIB
="$RANLIB" STRIP
="$STRIP" \
6107 AS
="$AS" DLLTOOL
="$DLLTOOL" OBJDUMP
="$OBJDUMP" \
6108 objext
="$OBJEXT" exeext
="$EXEEXT" reload_flag
="$reload_flag" \
6109 deplibs_check_method
="$deplibs_check_method" file_magic_cmd
="$file_magic_cmd" \
6110 ${CONFIG_SHELL-/bin/sh} $ac_aux_dir/ltconfig
--no-reexec \
6111 $libtool_flags --no-verify --build="$build" $ac_aux_dir/ltmain.sh
$host \
6112 ||
{ { echo "$as_me:$LINENO: error: libtool configure failed" >&5
6113 echo "$as_me: error: libtool configure failed" >&2;}
6114 { (exit 1); exit 1; }; }
6116 # Reload cache, that may have been modified by ltconfig
6117 if test -r "$cache_file"; then
6118 # Some versions of bash will fail to source /dev/null (special
6119 # files actually), so we avoid doing that.
6120 if test -f "$cache_file"; then
6121 { echo "$as_me:$LINENO: loading cache $cache_file" >&5
6122 echo "$as_me: loading cache $cache_file" >&6;}
6124 [\\/]* | ?
:[\\/]* ) .
$cache_file;;
6125 *) . .
/$cache_file;;
6129 { echo "$as_me:$LINENO: creating cache $cache_file" >&5
6130 echo "$as_me: creating cache $cache_file" >&6;}
6135 # This can be used to rebuild libtool when needed
6136 LIBTOOL_DEPS
="$ac_aux_dir/ltconfig $ac_aux_dir/ltmain.sh $ac_aux_dir/ltcf-c.sh"
6138 # Always use our own libtool.
6139 LIBTOOL
='$(SHELL) $(top_builddir)/libtool'
6141 # Redirect the config.log output again, so that the ltconfig log is not
6142 # clobbered by the next message.
6143 exec 5>>.
/config.log
6146 ac_cpp
='$CXXCPP $CPPFLAGS'
6147 ac_compile
='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
6148 ac_link
='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
6149 ac_compiler_gnu
=$ac_cv_cxx_compiler_gnu
6150 echo "$as_me:$LINENO: checking how to run the C++ preprocessor" >&5
6151 echo $ECHO_N "checking how to run the C++ preprocessor... $ECHO_C" >&6
6152 if test -z "$CXXCPP"; then
6153 if test "${ac_cv_prog_CXXCPP+set}" = set; then
6154 echo $ECHO_N "(cached) $ECHO_C" >&6
6156 # Double quotes because CXXCPP needs to be expanded
6157 for CXXCPP
in "$CXX -E" "/lib/cpp"
6160 for ac_cxx_preproc_warn_flag
in '' yes
6162 # Use a header file that comes with gcc, so configuring glibc
6163 # with a fresh cross-compiler works.
6164 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
6165 # <limits.h> exists even on freestanding compilers.
6166 # On the NeXT, cc -E runs the code through the compiler's parser,
6167 # not just through cpp. "Syntax error" is here to catch this case.
6168 cat >conftest.
$ac_ext <<_ACEOF
6171 cat confdefs.h
>>conftest.
$ac_ext
6172 cat >>conftest.
$ac_ext <<_ACEOF
6173 /* end confdefs.h. */
6175 # include <limits.h>
6177 # include <assert.h>
6181 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
6182 (eval $ac_cpp conftest.
$ac_ext) 2>conftest.er1
6184 grep -v '^ *+' conftest.er1
>conftest.err
6186 cat conftest.err
>&5
6187 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6188 (exit $ac_status); } >/dev
/null
; then
6189 if test -s conftest.err
; then
6190 ac_cpp_err
=$ac_cxx_preproc_warn_flag
6191 ac_cpp_err
=$ac_cpp_err$ac_cxx_werror_flag
6198 if test -z "$ac_cpp_err"; then
6201 echo "$as_me: failed program was:" >&5
6202 sed 's/^/| /' conftest.
$ac_ext >&5
6204 # Broken: fails on valid input.
6207 rm -f conftest.err conftest.
$ac_ext
6209 # OK, works on sane cases. Now check whether non-existent headers
6210 # can be detected and how.
6211 cat >conftest.
$ac_ext <<_ACEOF
6214 cat confdefs.h
>>conftest.
$ac_ext
6215 cat >>conftest.
$ac_ext <<_ACEOF
6216 /* end confdefs.h. */
6217 #include <ac_nonexistent.h>
6219 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
6220 (eval $ac_cpp conftest.
$ac_ext) 2>conftest.er1
6222 grep -v '^ *+' conftest.er1
>conftest.err
6224 cat conftest.err
>&5
6225 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6226 (exit $ac_status); } >/dev
/null
; then
6227 if test -s conftest.err
; then
6228 ac_cpp_err
=$ac_cxx_preproc_warn_flag
6229 ac_cpp_err
=$ac_cpp_err$ac_cxx_werror_flag
6236 if test -z "$ac_cpp_err"; then
6237 # Broken: success on invalid input.
6240 echo "$as_me: failed program was:" >&5
6241 sed 's/^/| /' conftest.
$ac_ext >&5
6243 # Passes both tests.
6247 rm -f conftest.err conftest.
$ac_ext
6250 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
6251 rm -f conftest.err conftest.
$ac_ext
6252 if $ac_preproc_ok; then
6257 ac_cv_prog_CXXCPP
=$CXXCPP
6260 CXXCPP
=$ac_cv_prog_CXXCPP
6262 ac_cv_prog_CXXCPP
=$CXXCPP
6264 echo "$as_me:$LINENO: result: $CXXCPP" >&5
6265 echo "${ECHO_T}$CXXCPP" >&6
6267 for ac_cxx_preproc_warn_flag
in '' yes
6269 # Use a header file that comes with gcc, so configuring glibc
6270 # with a fresh cross-compiler works.
6271 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
6272 # <limits.h> exists even on freestanding compilers.
6273 # On the NeXT, cc -E runs the code through the compiler's parser,
6274 # not just through cpp. "Syntax error" is here to catch this case.
6275 cat >conftest.
$ac_ext <<_ACEOF
6278 cat confdefs.h
>>conftest.
$ac_ext
6279 cat >>conftest.
$ac_ext <<_ACEOF
6280 /* end confdefs.h. */
6282 # include <limits.h>
6284 # include <assert.h>
6288 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
6289 (eval $ac_cpp conftest.
$ac_ext) 2>conftest.er1
6291 grep -v '^ *+' conftest.er1
>conftest.err
6293 cat conftest.err
>&5
6294 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6295 (exit $ac_status); } >/dev
/null
; then
6296 if test -s conftest.err
; then
6297 ac_cpp_err
=$ac_cxx_preproc_warn_flag
6298 ac_cpp_err
=$ac_cpp_err$ac_cxx_werror_flag
6305 if test -z "$ac_cpp_err"; then
6308 echo "$as_me: failed program was:" >&5
6309 sed 's/^/| /' conftest.
$ac_ext >&5
6311 # Broken: fails on valid input.
6314 rm -f conftest.err conftest.
$ac_ext
6316 # OK, works on sane cases. Now check whether non-existent headers
6317 # can be detected and how.
6318 cat >conftest.
$ac_ext <<_ACEOF
6321 cat confdefs.h
>>conftest.
$ac_ext
6322 cat >>conftest.
$ac_ext <<_ACEOF
6323 /* end confdefs.h. */
6324 #include <ac_nonexistent.h>
6326 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
6327 (eval $ac_cpp conftest.
$ac_ext) 2>conftest.er1
6329 grep -v '^ *+' conftest.er1
>conftest.err
6331 cat conftest.err
>&5
6332 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6333 (exit $ac_status); } >/dev
/null
; then
6334 if test -s conftest.err
; then
6335 ac_cpp_err
=$ac_cxx_preproc_warn_flag
6336 ac_cpp_err
=$ac_cpp_err$ac_cxx_werror_flag
6343 if test -z "$ac_cpp_err"; then
6344 # Broken: success on invalid input.
6347 echo "$as_me: failed program was:" >&5
6348 sed 's/^/| /' conftest.
$ac_ext >&5
6350 # Passes both tests.
6354 rm -f conftest.err conftest.
$ac_ext
6357 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
6358 rm -f conftest.err conftest.
$ac_ext
6359 if $ac_preproc_ok; then
6362 { { echo "$as_me:$LINENO: error: C++ preprocessor \"$CXXCPP\" fails sanity check
6363 See \`config.log' for more details." >&5
6364 echo "$as_me: error: C++ preprocessor \"$CXXCPP\" fails sanity check
6365 See \`config.log' for more details." >&2;}
6366 { (exit 1); exit 1; }; }
6370 ac_cpp
='$CPP $CPPFLAGS'
6371 ac_compile
='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
6372 ac_link
='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
6373 ac_compiler_gnu
=$ac_cv_c_compiler_gnu
6377 LIBTOOL_DEPS
=$LIBTOOL_DEPS" $ac_aux_dir/ltcf-cxx.sh"
6379 lt_save_CFLAGS
="$CFLAGS"
6380 AR
="$AR" LTCC
="$CC" CC
="$CXX" CXX
="$CXX" CFLAGS
="$CXXFLAGS" CPPFLAGS
="$CPPFLAGS" \
6381 MAGIC_CMD
="$MAGIC_CMD" LD
="$LD" LDFLAGS
="$LDFLAGS" LIBS
="$LIBS" \
6382 LN_S
="$LN_S" NM
="$NM" RANLIB
="$RANLIB" STRIP
="$STRIP" \
6383 AS
="$AS" DLLTOOL
="$DLLTOOL" OBJDUMP
="$OBJDUMP" \
6384 objext
="$OBJEXT" exeext
="$EXEEXT" reload_flag
="$reload_flag" \
6385 deplibs_check_method
="$deplibs_check_method" \
6386 file_magic_cmd
="$file_magic_cmd" \
6387 ${CONFIG_SHELL-/bin/sh} $ac_aux_dir/ltconfig
-o libtool
$libtool_flags \
6388 --build="$build" --add-tag=CXX
$ac_aux_dir/ltcf-cxx.sh
$host \
6389 ||
{ { echo "$as_me:$LINENO: error: libtool tag configuration failed" >&5
6390 echo "$as_me: error: libtool tag configuration failed" >&2;}
6391 { (exit 1); exit 1; }; }
6393 CFLAGS
="$lt_save_CFLAGS"
6395 # Redirect the config.log output again, so that the ltconfig log is not
6396 # clobbered by the next message.
6397 exec 5>>.
/config.log
6405 for ac_prog
in gcj gcj-3.2 gcj-3.1 gcj-3.0 gcj-2.95
6407 # Extract the first word of "$ac_prog", so it can be a program name with args.
6408 set dummy
$ac_prog; ac_word
=$2
6409 echo "$as_me:$LINENO: checking for $ac_word" >&5
6410 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
6411 if test "${ac_cv_prog_GCJ+set}" = set; then
6412 echo $ECHO_N "(cached) $ECHO_C" >&6
6414 if test -n "$GCJ"; then
6415 ac_cv_prog_GCJ
="$GCJ" # Let the user override the test.
6417 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
6421 test -z "$as_dir" && as_dir
=.
6422 for ac_exec_ext
in '' $ac_executable_extensions; do
6423 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
6424 ac_cv_prog_GCJ
="$ac_prog"
6425 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6434 if test -n "$GCJ"; then
6435 echo "$as_me:$LINENO: result: $GCJ" >&5
6436 echo "${ECHO_T}$GCJ" >&6
6438 echo "$as_me:$LINENO: result: no" >&5
6439 echo "${ECHO_T}no" >&6
6442 test -n "$GCJ" && break
6444 test -n "$GCJ" || GCJ
="gcj"
6446 test -z "$GCJ" && { { echo "$as_me:$LINENO: error: no acceptable gcj found in \$PATH" >&5
6447 echo "$as_me: error: no acceptable gcj found in \$PATH" >&2;}
6448 { (exit 1); exit 1; }; }
6449 if test "x${GCJFLAGS-unset}" = xunset
; then
6454 depcc
="$GCJ" am_compiler_list
='gcc3 gcc'
6456 echo "$as_me:$LINENO: checking dependency style of $depcc" >&5
6457 echo $ECHO_N "checking dependency style of $depcc... $ECHO_C" >&6
6458 if test "${am_cv_GCJ_dependencies_compiler_type+set}" = set; then
6459 echo $ECHO_N "(cached) $ECHO_C" >&6
6461 if test -z "$AMDEP_TRUE" && test -f "$am_depcomp"; then
6462 # We make a subdir and do the tests there. Otherwise we can end up
6463 # making bogus files that we don't know about and never remove. For
6464 # instance it was reported that on HP-UX the gcc test will end up
6465 # making a dummy file named `D' -- because `-MD' means `put the output
6468 # Copy depcomp to subdir because otherwise we won't find it if we're
6469 # using a relative directory.
6470 cp "$am_depcomp" conftest.dir
6472 # We will build objects and dependencies in a subdirectory because
6473 # it helps to detect inapplicable dependency modes. For instance
6474 # both Tru64's cc and ICC support -MD to output dependencies as a
6475 # side effect of compilation, but ICC will put the dependencies in
6476 # the current directory while Tru64 will put them in the object
6480 am_cv_GCJ_dependencies_compiler_type
=none
6481 if test "$am_compiler_list" = ""; then
6482 am_compiler_list
=`sed -n 's/^#*\([a-zA-Z0-9]*\))$/\1/p' < ./depcomp`
6484 for depmode
in $am_compiler_list; do
6485 # Setup a source with many dependencies, because some compilers
6486 # like to wrap large dependency lists on column 80 (with \), and
6487 # we should not choose a depcomp mode which is confused by this.
6489 # We need to recreate these files for each test, as the compiler may
6490 # overwrite some of them when testing with obscure command lines.
6491 # This happens at least with the AIX C compiler.
6493 for i
in 1 2 3 4 5 6; do
6494 echo '#include "conftst'$i'.h"' >> sub
/conftest.c
6495 # Using `: > sub/conftst$i.h' creates only sub/conftst1.h with
6496 # Solaris 8's {/usr,}/bin/sh.
6497 touch sub
/conftst
$i.h
6499 echo "${am__include} ${am__quote}sub/conftest.Po${am__quote}" > confmf
6503 # after this tag, mechanisms are not by side-effect, so they'll
6504 # only be used when explicitly requested
6505 if test "x$enable_dependency_tracking" = xyes
; then
6513 # We check with `-c' and `-o' for the sake of the "dashmstdout"
6514 # mode. It turns out that the SunPro C++ compiler does not properly
6515 # handle `-M -o', and we need to detect this.
6516 if depmode
=$depmode \
6517 source=sub
/conftest.c object
=sub
/conftest.
${OBJEXT-o} \
6518 depfile
=sub
/conftest.Po tmpdepfile
=sub
/conftest.TPo \
6519 $SHELL .
/depcomp
$depcc -c -o sub
/conftest.
${OBJEXT-o} sub
/conftest.c \
6520 >/dev
/null
2>conftest.err
&&
6521 grep sub
/conftst6.h sub
/conftest.Po
> /dev
/null
2>&1 &&
6522 grep sub
/conftest.
${OBJEXT-o} sub
/conftest.Po
> /dev
/null
2>&1 &&
6523 ${MAKE-make} -s -f confmf
> /dev
/null
2>&1; then
6524 # icc doesn't choke on unknown options, it will just issue warnings
6525 # or remarks (even with -Werror). So we grep stderr for any message
6526 # that says an option was ignored or not supported.
6527 # When given -MP, icc 7.0 and 7.1 complain thusly:
6528 # icc: Command line warning: ignoring option '-M'; no argument required
6529 # The diagnosis changed in icc 8.0:
6530 # icc: Command line remark: option '-MP' not supported
6531 if (grep 'ignoring option' conftest.err ||
6532 grep 'not supported' conftest.err
) >/dev
/null
2>&1; then :; else
6533 am_cv_GCJ_dependencies_compiler_type
=$depmode
6542 am_cv_GCJ_dependencies_compiler_type
=none
6546 echo "$as_me:$LINENO: result: $am_cv_GCJ_dependencies_compiler_type" >&5
6547 echo "${ECHO_T}$am_cv_GCJ_dependencies_compiler_type" >&6
6548 GCJDEPMODE
=depmode
=$am_cv_GCJ_dependencies_compiler_type
6553 test "x$enable_dependency_tracking" != xno \
6554 && test "$am_cv_GCJ_dependencies_compiler_type" = gcc3
; then
6555 am__fastdepGCJ_TRUE
=
6556 am__fastdepGCJ_FALSE
='#'
6558 am__fastdepGCJ_TRUE
='#'
6559 am__fastdepGCJ_FALSE
=
6565 LIBTOOL_DEPS
=$LIBTOOL_DEPS" $ac_aux_dir/ltcf-gcj.sh"
6567 lt_save_CFLAGS
="$CFLAGS"
6568 AR
="$AR" LTCC
="$CC" CC
="$GCJ" CFLAGS
="$GCJFLAGS" CPPFLAGS
="$CPPFLAGS" \
6569 MAGIC_CMD
="$MAGIC_CMD" LD
="$LD" LDFLAGS
="$LDFLAGS" LIBS
="$LIBS" \
6570 LN_S
="$LN_S" NM
="$NM" RANLIB
="$RANLIB" STRIP
="$STRIP" \
6571 AS
="$AS" DLLTOOL
="$DLLTOOL" OBJDUMP
="$OBJDUMP" \
6572 objext
="$OBJEXT" exeext
="$EXEEXT" reload_flag
="$reload_flag" \
6573 deplibs_check_method
="$deplibs_check_method" \
6574 file_magic_cmd
="$file_magic_cmd" \
6575 ${CONFIG_SHELL-/bin/sh} $ac_aux_dir/ltconfig
-o libtool
$libtool_flags \
6576 --build="$build" --add-tag=GCJ
$ac_aux_dir/ltcf-gcj.sh
$host \
6577 ||
{ { echo "$as_me:$LINENO: error: libtool tag configuration failed" >&5
6578 echo "$as_me: error: libtool tag configuration failed" >&2;}
6579 { (exit 1); exit 1; }; }
6581 CFLAGS
="$lt_save_CFLAGS"
6583 # Redirect the config.log output again, so that the ltconfig log is not
6584 # clobbered by the next message.
6585 exec 5>>.
/config.log
6589 if test "x$CC" != xcc
; then
6590 echo "$as_me:$LINENO: checking whether $CC and cc understand -c and -o together" >&5
6591 echo $ECHO_N "checking whether $CC and cc understand -c and -o together... $ECHO_C" >&6
6593 echo "$as_me:$LINENO: checking whether cc understands -c and -o together" >&5
6594 echo $ECHO_N "checking whether cc understands -c and -o together... $ECHO_C" >&6
6596 set dummy
$CC; ac_cc
=`echo $2 |
6597 sed 's/[^a-zA-Z0-9_]/_/g;s/^[0-9]/_/'`
6598 if eval "test \"\${ac_cv_prog_cc_${ac_cc}_c_o+set}\" = set"; then
6599 echo $ECHO_N "(cached) $ECHO_C" >&6
6601 cat >conftest.
$ac_ext <<_ACEOF
6604 cat confdefs.h
>>conftest.
$ac_ext
6605 cat >>conftest.
$ac_ext <<_ACEOF
6606 /* end confdefs.h. */
6616 # Make sure it works both with $CC and with simple cc.
6617 # We do the test twice because some compilers refuse to overwrite an
6618 # existing .o file with -o, though they will create one.
6619 ac_try
='$CC -c conftest.$ac_ext -o conftest.$ac_objext >&5'
6620 if { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6623 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6624 (exit $ac_status); } &&
6625 test -f conftest.
$ac_objext && { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6628 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6629 (exit $ac_status); };
6631 eval ac_cv_prog_cc_
${ac_cc}_c_o
=yes
6632 if test "x$CC" != xcc
; then
6633 # Test first that cc exists at all.
6634 if { ac_try
='cc -c conftest.$ac_ext >&5'
6635 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6638 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6639 (exit $ac_status); }; }; then
6640 ac_try
='cc -c conftest.$ac_ext -o conftest.$ac_objext >&5'
6641 if { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6644 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6645 (exit $ac_status); } &&
6646 test -f conftest.
$ac_objext && { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6649 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6650 (exit $ac_status); };
6655 # cc exists but doesn't like -o.
6656 eval ac_cv_prog_cc_
${ac_cc}_c_o
=no
6661 eval ac_cv_prog_cc_
${ac_cc}_c_o
=no
6666 if eval "test \"`echo '$ac_cv_prog_cc_'${ac_cc}_c_o`\" = yes"; then
6667 echo "$as_me:$LINENO: result: yes" >&5
6668 echo "${ECHO_T}yes" >&6
6670 echo "$as_me:$LINENO: result: no" >&5
6671 echo "${ECHO_T}no" >&6
6673 cat >>confdefs.h
<<\_ACEOF
6674 #define NO_MINUS_C_MINUS_O 1
6679 # FIXME: we rely on the cache variable name because
6680 # there is no other way.
6682 ac_cc
=`echo $2 | sed 's/[^a-zA-Z0-9_]/_/g;s/^[0-9]/_/'`
6683 if eval "test \"`echo '$ac_cv_prog_cc_'${ac_cc}_c_o`\" != yes"; then
6684 # Losing compiler, so override with the script.
6685 # FIXME: It is wrong to rewrite CC.
6686 # But if we don't then we get into trouble of one sort or another.
6687 # A longer-term fix would be to have automake use am__CC in this case,
6688 # and then we could set am__CC="\$(top_srcdir)/compile \$(CC)"
6689 CC
="$am_aux_dir/compile $CC"
6695 subdirs
="$subdirs classpath libltdl"
6698 # The -no-testsuite modules omit the test subdir.
6701 if test -d $srcdir/testsuite
; then
6703 TESTSUBDIR_FALSE
='#'
6710 # Should the runtime set system properties by examining the
6711 # environment variable GCJ_PROPERTIES?
6712 # Check whether --enable-getenv-properties or --disable-getenv-properties was given.
6713 if test "${enable_getenv_properties+set}" = set; then
6714 enableval
="$enable_getenv_properties"
6718 # Whether GCJ_PROPERTIES is used depends on the target.
6719 if test -z "$enable_getenv_properties"; then
6720 enable_getenv_properties
=${enable_getenv_properties_default-yes}
6722 if test "$enable_getenv_properties" = no
; then
6724 cat >>confdefs.h
<<\_ACEOF
6725 #define DISABLE_GETENV_PROPERTIES 1
6730 # Whether we should use arguments to main()
6731 if test -z "$enable_main_args"; then
6732 enable_main_args
=${enable_main_args_default-yes}
6734 if test "$enable_main_args" = no
; then
6736 cat >>confdefs.h
<<\_ACEOF
6737 #define DISABLE_MAIN_ARGS 1
6743 # Should we use hashtable-based synchronization?
6744 # Currently works only for Linux X86/ia64
6745 # Typically faster and more space-efficient
6746 # Check whether --enable-hash-synchronization or --disable-hash-synchronization was given.
6747 if test "${enable_hash_synchronization+set}" = set; then
6748 enableval
="$enable_hash_synchronization"
6752 if test -z "$enable_hash_synchronization"; then
6753 enable_hash_synchronization
=$enable_hash_synchronization_default
6757 # Check whether --with-java-home or --without-java-home was given.
6758 if test "${with_java_home+set}" = set; then
6759 withval
="$with_java_home"
6760 JAVA_HOME
="${withval}"
6766 if test ! -z "$JAVA_HOME"; then
6768 JAVA_HOME_SET_FALSE
='#'
6770 JAVA_HOME_SET_TRUE
='#'
6771 JAVA_HOME_SET_FALSE
=
6776 # What is the native OS API for MinGW?
6778 # Check whether --with-win32-nlsapi or --without-win32-nlsapi was given.
6779 if test "${with_win32_nlsapi+set}" = set; then
6780 withval
="$with_win32_nlsapi"
6781 case "${withval}" in
6782 ansi
) with_win32_nlsapi
=ansi
;;
6783 unicows
) with_win32_nlsapi
=unicows
;;
6784 unicode
) with_win32_nlsapi
=unicode
;;
6785 *) { { echo "$as_me:$LINENO: error: Bad value ${withval} for --with-win32-nlsapi." >&5
6786 echo "$as_me: error: Bad value ${withval} for --with-win32-nlsapi." >&2;}
6787 { (exit 1); exit 1; }; } ;;
6790 with_win32_nlsapi
=ansi
6793 case "${with_win32_nlsapi}" in
6796 cat >>confdefs.h
<<\_ACEOF
6797 #define MINGW_LIBGCJ_UNICODE 1
6803 # configure.host sets slow_pthread_self if the synchronization code should
6804 # try to avoid pthread_self calls by caching thread IDs in a hashtable.
6805 if test "${slow_pthread_self}" = "yes"; then
6807 cat >>confdefs.h
<<\_ACEOF
6808 #define SLOW_PTHREAD_SELF 1
6813 # Check for gc debugging. This option is handled both here and in the GC.
6814 # Check whether --enable-gc-debug or --disable-gc-debug was given.
6815 if test "${enable_gc_debug+set}" = set; then
6816 enableval
="$enable_gc_debug"
6817 if test "$enable_gc_debug" = "yes"; then
6819 cat >>confdefs.h
<<\_ACEOF
6820 #define LIBGCJ_GC_DEBUG 1
6826 # See if the user has the interpreter included.
6827 # Check whether --enable-interpreter or --disable-interpreter was given.
6828 if test "${enable_interpreter+set}" = set; then
6829 enableval
="$enable_interpreter"
6830 if test "$enable_interpreter" = yes; then
6831 # This can also be set in configure.host.
6832 libgcj_interpreter
=yes
6833 elif test "$enable_interpreter" = no
; then
6834 libgcj_interpreter
=no
6838 if test "$libgcj_interpreter" = yes; then
6840 cat >>confdefs.h
<<\_ACEOF
6841 #define INTERPRETER 1
6845 INTERPRETER
="$libgcj_interpreter"
6848 echo "$as_me:$LINENO: checking for exception model to use" >&5
6849 echo $ECHO_N "checking for exception model to use... $ECHO_C" >&6
6851 ac_cpp
='$CXXCPP $CPPFLAGS'
6852 ac_compile
='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
6853 ac_link
='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
6854 ac_compiler_gnu
=$ac_cv_cxx_compiler_gnu
6856 # Check whether --enable-sjlj-exceptions or --disable-sjlj-exceptions was given.
6857 if test "${enable_sjlj_exceptions+set}" = set; then
6858 enableval
="$enable_sjlj_exceptions"
6861 cat > conftest.
$ac_ext << EOF
6862 #line 6862 "configure"
6871 old_CXXFLAGS
="$CXXFLAGS"
6873 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
6874 (eval $ac_compile) 2>&5
6876 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6877 (exit $ac_status); }; then
6878 if grep _Unwind_SjLj_Resume conftest.s
>/dev
/null
2>&1 ; then
6879 enable_sjlj_exceptions
=yes
6880 elif grep _Unwind_Resume conftest.s
>/dev
/null
2>&1 ; then
6881 enable_sjlj_exceptions
=no
6884 CXXFLAGS
="$old_CXXFLAGS"
6887 if test x
$enable_sjlj_exceptions = xyes
; then
6889 cat >>confdefs.h
<<\_ACEOF
6890 #define SJLJ_EXCEPTIONS 1
6893 ac_exception_model_name
=sjlj
6894 elif test x
$enable_sjlj_exceptions = xno
; then
6895 ac_exception_model_name
="call frame"
6897 { { echo "$as_me:$LINENO: error: unable to detect exception model" >&5
6898 echo "$as_me: error: unable to detect exception model" >&2;}
6899 { (exit 1); exit 1; }; }
6902 ac_cpp
='$CPP $CPPFLAGS'
6903 ac_compile
='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
6904 ac_link
='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
6905 ac_compiler_gnu
=$ac_cv_c_compiler_gnu
6907 echo "$as_me:$LINENO: result: $ac_exception_model_name" >&5
6908 echo "${ECHO_T}$ac_exception_model_name" >&6
6910 # If we are non using SJLJ exceptions, and this host does not have support
6911 # for unwinding from a signal handler, enable checked dereferences and divides.
6912 if test $can_unwind_signal = no
&& test $enable_sjlj_exceptions = no
; then
6913 CHECKREFSPEC
=-fcheck-references
6914 DIVIDESPEC
=-fuse-divide-subroutine
6918 # See if the user wants to disable java.net. This is the mildly
6919 # ugly way that we admit that target-side configuration sucks.
6920 # Check whether --enable-java-net or --disable-java-net was given.
6921 if test "${enable_java_net+set}" = set; then
6922 enableval
="$enable_java_net"
6926 # Whether java.net is built by default can depend on the target.
6927 if test -z "$enable_java_net"; then
6928 enable_java_net
=${enable_java_net_default-yes}
6930 if test "$enable_java_net" = no
; then
6932 cat >>confdefs.h
<<\_ACEOF
6933 #define DISABLE_JAVA_NET 1
6938 # See if the user wants to configure without libffi. Some
6939 # architectures don't support it, and default values are set in
6942 # Check whether --with-libffi or --without-libffi was given.
6943 if test "${with_libffi+set}" = set; then
6944 withval
="$with_libffi"
6947 with_libffi
=${with_libffi_default-yes}
6952 if test "$with_libffi" != no
; then
6954 cat >>confdefs.h
<<\_ACEOF
6955 #define USE_LIBFFI 1
6958 LIBFFI
=..
/libffi
/libffi_convenience.la
6959 LIBFFIINCS
='-I$(top_srcdir)/../libffi/include -I../libffi/include'
6964 # See if the user wants to disable JVMPI support.
6965 # Check whether --enable-jvmpi or --disable-jvmpi was given.
6966 if test "${enable_jvmpi+set}" = set; then
6967 enableval
="$enable_jvmpi"
6971 if test "$enable_jvmpi" != no
; then
6973 cat >>confdefs.h
<<\_ACEOF
6974 #define ENABLE_JVMPI 1
6979 # If the target is an eCos system, use the appropriate eCos
6981 # FIXME: this should not be a local option but a global target
6982 # system; at present there is no eCos target.
6983 TARGET_ECOS
=${PROCESS-"no"}
6985 # Check whether --with-ecos or --without-ecos was given.
6986 if test "${with_ecos+set}" = set; then
6987 withval
="$with_ecos"
6988 TARGET_ECOS
="$with_ecos"
6992 PLATFORM_INNER_NAT_HDRS
=
6993 case "$TARGET_ECOS" in
7000 echo "$as_me:$LINENO: checking whether 'ld' is at least 2.13" >&5
7001 echo $ECHO_N "checking whether 'ld' is at least 2.13... $ECHO_C" >&6
7002 LD_PROG
=`$CC --print-prog-name=ld`
7003 LD_VERSION
=`$LD_PROG --version`
7004 LD_VERSION_MAJOR
=`echo "$LD_VERSION" | head -1 | cut -d '.' -f 1 | cut -d ' ' -f 4`
7005 LD_VERSION_MINOR
=`echo "$LD_VERSION" | head -1 | cut -d '.' -f 2`
7006 if expr "$LD_VERSION_MAJOR" \
> 2 > /dev
/null
; then
7009 if expr "$LD_VERSION_MAJOR" = 2 && expr "$LD_VERSION_MINOR" \
>= 13 > /dev
/null
; then
7013 if test "x$LD_OK" != x
; then
7014 echo "$as_me:$LINENO: result: yes; major=$LD_VERSION_MAJOR, minor=$LD_VERSION_MINOR" >&5
7015 echo "${ECHO_T}yes; major=$LD_VERSION_MAJOR, minor=$LD_VERSION_MINOR" >&6
7017 echo "$as_me:$LINENO: result: no; major=$LD_VERSION_MAJOR, minor=$LD_VERSION_MINOR" >&5
7018 echo "${ECHO_T}no; major=$LD_VERSION_MAJOR, minor=$LD_VERSION_MINOR" >&6
7019 { echo "$as_me:$LINENO: WARNING: ld <2.13 detected; enabling JV_LINKER_CANNOT_8BYTE_ALIGN_STATICS hack..." >&5
7020 echo "$as_me: WARNING: ld <2.13 detected; enabling JV_LINKER_CANNOT_8BYTE_ALIGN_STATICS hack..." >&2;}
7022 cat >>confdefs.h
<<\_ACEOF
7023 #define JV_LINKER_CANNOT_8BYTE_ALIGN_STATICS 1
7032 PLATFORM_INNER_NAT_HDRS
='java/lang/ConcreteProcess$$ProcessManager.h'
7040 cat >>confdefs.h
<<\_ACEOF
7048 ac_config_links
="$ac_config_links include/platform.h:include/$PLATFORMH"
7052 ac_cpp
='$CPP $CPPFLAGS'
7053 ac_compile
='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
7054 ac_link
='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
7055 ac_compiler_gnu
=$ac_cv_c_compiler_gnu
7056 echo "$as_me:$LINENO: checking how to run the C preprocessor" >&5
7057 echo $ECHO_N "checking how to run the C preprocessor... $ECHO_C" >&6
7058 # On Suns, sometimes $CPP names a directory.
7059 if test -n "$CPP" && test -d "$CPP"; then
7062 if test -z "$CPP"; then
7063 if test "${ac_cv_prog_CPP+set}" = set; then
7064 echo $ECHO_N "(cached) $ECHO_C" >&6
7066 # Double quotes because CPP needs to be expanded
7067 for CPP
in "$CC -E" "$CC -E -traditional-cpp" "/lib/cpp"
7070 for ac_c_preproc_warn_flag
in '' yes
7072 # Use a header file that comes with gcc, so configuring glibc
7073 # with a fresh cross-compiler works.
7074 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
7075 # <limits.h> exists even on freestanding compilers.
7076 # On the NeXT, cc -E runs the code through the compiler's parser,
7077 # not just through cpp. "Syntax error" is here to catch this case.
7078 cat >conftest.
$ac_ext <<_ACEOF
7081 cat confdefs.h
>>conftest.
$ac_ext
7082 cat >>conftest.
$ac_ext <<_ACEOF
7083 /* end confdefs.h. */
7085 # include <limits.h>
7087 # include <assert.h>
7091 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
7092 (eval $ac_cpp conftest.
$ac_ext) 2>conftest.er1
7094 grep -v '^ *+' conftest.er1
>conftest.err
7096 cat conftest.err
>&5
7097 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7098 (exit $ac_status); } >/dev
/null
; then
7099 if test -s conftest.err
; then
7100 ac_cpp_err
=$ac_c_preproc_warn_flag
7101 ac_cpp_err
=$ac_cpp_err$ac_c_werror_flag
7108 if test -z "$ac_cpp_err"; then
7111 echo "$as_me: failed program was:" >&5
7112 sed 's/^/| /' conftest.
$ac_ext >&5
7114 # Broken: fails on valid input.
7117 rm -f conftest.err conftest.
$ac_ext
7119 # OK, works on sane cases. Now check whether non-existent headers
7120 # can be detected and how.
7121 cat >conftest.
$ac_ext <<_ACEOF
7124 cat confdefs.h
>>conftest.
$ac_ext
7125 cat >>conftest.
$ac_ext <<_ACEOF
7126 /* end confdefs.h. */
7127 #include <ac_nonexistent.h>
7129 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
7130 (eval $ac_cpp conftest.
$ac_ext) 2>conftest.er1
7132 grep -v '^ *+' conftest.er1
>conftest.err
7134 cat conftest.err
>&5
7135 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7136 (exit $ac_status); } >/dev
/null
; then
7137 if test -s conftest.err
; then
7138 ac_cpp_err
=$ac_c_preproc_warn_flag
7139 ac_cpp_err
=$ac_cpp_err$ac_c_werror_flag
7146 if test -z "$ac_cpp_err"; then
7147 # Broken: success on invalid input.
7150 echo "$as_me: failed program was:" >&5
7151 sed 's/^/| /' conftest.
$ac_ext >&5
7153 # Passes both tests.
7157 rm -f conftest.err conftest.
$ac_ext
7160 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
7161 rm -f conftest.err conftest.
$ac_ext
7162 if $ac_preproc_ok; then
7174 echo "$as_me:$LINENO: result: $CPP" >&5
7175 echo "${ECHO_T}$CPP" >&6
7177 for ac_c_preproc_warn_flag
in '' yes
7179 # Use a header file that comes with gcc, so configuring glibc
7180 # with a fresh cross-compiler works.
7181 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
7182 # <limits.h> exists even on freestanding compilers.
7183 # On the NeXT, cc -E runs the code through the compiler's parser,
7184 # not just through cpp. "Syntax error" is here to catch this case.
7185 cat >conftest.
$ac_ext <<_ACEOF
7188 cat confdefs.h
>>conftest.
$ac_ext
7189 cat >>conftest.
$ac_ext <<_ACEOF
7190 /* end confdefs.h. */
7192 # include <limits.h>
7194 # include <assert.h>
7198 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
7199 (eval $ac_cpp conftest.
$ac_ext) 2>conftest.er1
7201 grep -v '^ *+' conftest.er1
>conftest.err
7203 cat conftest.err
>&5
7204 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7205 (exit $ac_status); } >/dev
/null
; then
7206 if test -s conftest.err
; then
7207 ac_cpp_err
=$ac_c_preproc_warn_flag
7208 ac_cpp_err
=$ac_cpp_err$ac_c_werror_flag
7215 if test -z "$ac_cpp_err"; then
7218 echo "$as_me: failed program was:" >&5
7219 sed 's/^/| /' conftest.
$ac_ext >&5
7221 # Broken: fails on valid input.
7224 rm -f conftest.err conftest.
$ac_ext
7226 # OK, works on sane cases. Now check whether non-existent headers
7227 # can be detected and how.
7228 cat >conftest.
$ac_ext <<_ACEOF
7231 cat confdefs.h
>>conftest.
$ac_ext
7232 cat >>conftest.
$ac_ext <<_ACEOF
7233 /* end confdefs.h. */
7234 #include <ac_nonexistent.h>
7236 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
7237 (eval $ac_cpp conftest.
$ac_ext) 2>conftest.er1
7239 grep -v '^ *+' conftest.er1
>conftest.err
7241 cat conftest.err
>&5
7242 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7243 (exit $ac_status); } >/dev
/null
; then
7244 if test -s conftest.err
; then
7245 ac_cpp_err
=$ac_c_preproc_warn_flag
7246 ac_cpp_err
=$ac_cpp_err$ac_c_werror_flag
7253 if test -z "$ac_cpp_err"; then
7254 # Broken: success on invalid input.
7257 echo "$as_me: failed program was:" >&5
7258 sed 's/^/| /' conftest.
$ac_ext >&5
7260 # Passes both tests.
7264 rm -f conftest.err conftest.
$ac_ext
7267 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
7268 rm -f conftest.err conftest.
$ac_ext
7269 if $ac_preproc_ok; then
7272 { { echo "$as_me:$LINENO: error: C preprocessor \"$CPP\" fails sanity check
7273 See \`config.log' for more details." >&5
7274 echo "$as_me: error: C preprocessor \"$CPP\" fails sanity check
7275 See \`config.log' for more details." >&2;}
7276 { (exit 1); exit 1; }; }
7280 ac_cpp
='$CPP $CPPFLAGS'
7281 ac_compile
='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
7282 ac_link
='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
7283 ac_compiler_gnu
=$ac_cv_c_compiler_gnu
7286 echo "$as_me:$LINENO: checking for egrep" >&5
7287 echo $ECHO_N "checking for egrep... $ECHO_C" >&6
7288 if test "${ac_cv_prog_egrep+set}" = set; then
7289 echo $ECHO_N "(cached) $ECHO_C" >&6
7291 if echo a |
(grep -E '(a|b)') >/dev
/null
2>&1
7292 then ac_cv_prog_egrep
='grep -E'
7293 else ac_cv_prog_egrep
='egrep'
7296 echo "$as_me:$LINENO: result: $ac_cv_prog_egrep" >&5
7297 echo "${ECHO_T}$ac_cv_prog_egrep" >&6
7298 EGREP
=$ac_cv_prog_egrep
7301 cat >conftest.
$ac_ext <<_ACEOF
7304 cat confdefs.h
>>conftest.
$ac_ext
7305 cat >>conftest.
$ac_ext <<_ACEOF
7306 /* end confdefs.h. */
7310 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
7311 $EGREP "uint32_t" >/dev
/null
2>&1; then
7313 cat >>confdefs.h
<<\_ACEOF
7314 #define HAVE_INT32_DEFINED 1
7320 cat >conftest.
$ac_ext <<_ACEOF
7323 cat confdefs.h
>>conftest.
$ac_ext
7324 cat >>conftest.
$ac_ext <<_ACEOF
7325 /* end confdefs.h. */
7326 #include <inttypes.h>
7329 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
7330 $EGREP "uint32_t" >/dev
/null
2>&1; then
7332 cat >>confdefs.h
<<\_ACEOF
7333 #define HAVE_INT32_DEFINED 1
7339 cat >conftest.
$ac_ext <<_ACEOF
7342 cat confdefs.h
>>conftest.
$ac_ext
7343 cat >>conftest.
$ac_ext <<_ACEOF
7344 /* end confdefs.h. */
7345 #include <sys/types.h>
7348 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
7349 $EGREP "u_int32_t" >/dev
/null
2>&1; then
7351 cat >>confdefs.h
<<\_ACEOF
7352 #define HAVE_BSD_INT32_DEFINED 1
7358 cat >conftest.
$ac_ext <<_ACEOF
7361 cat confdefs.h
>>conftest.
$ac_ext
7362 cat >>conftest.
$ac_ext <<_ACEOF
7363 /* end confdefs.h. */
7364 #include <sys/config.h>
7367 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
7368 $EGREP "u_int32_t" >/dev
/null
2>&1; then
7370 cat >>confdefs.h
<<\_ACEOF
7371 #define HAVE_BSD_INT32_DEFINED 1
7380 if test "$PLATFORM" = Win32
; then
7381 USING_WIN32_PLATFORM_TRUE
=
7382 USING_WIN32_PLATFORM_FALSE
='#'
7384 USING_WIN32_PLATFORM_TRUE
='#'
7385 USING_WIN32_PLATFORM_FALSE
=
7390 if test "$PLATFORM" = Posix ||
test "$PLATFORM" = Ecos
; then
7391 USING_POSIX_PLATFORM_TRUE
=
7392 USING_POSIX_PLATFORM_FALSE
='#'
7394 USING_POSIX_PLATFORM_TRUE
='#'
7395 USING_POSIX_PLATFORM_FALSE
=
7400 *-darwin*) DARWIN_CRT
=true
;;
7401 *) DARWIN_CRT
=false
;;
7405 if $DARWIN_CRT; then
7406 USING_DARWIN_CRT_TRUE
=
7407 USING_DARWIN_CRT_FALSE
='#'
7409 USING_DARWIN_CRT_TRUE
='#'
7410 USING_DARWIN_CRT_FALSE
=
7414 # These may not be defined in a non-ANS conformant embedded system.
7415 # FIXME: Should these case a runtime exception in that case?
7416 cat >conftest.
$ac_ext <<_ACEOF
7419 cat confdefs.h
>>conftest.
$ac_ext
7420 cat >>conftest.
$ac_ext <<_ACEOF
7421 /* end confdefs.h. */
7425 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
7426 $EGREP "mktime" >/dev
/null
2>&1; then
7428 cat >>confdefs.h
<<\_ACEOF
7429 #define HAVE_MKTIME 1
7435 cat >conftest.
$ac_ext <<_ACEOF
7438 cat confdefs.h
>>conftest.
$ac_ext
7439 cat >>conftest.
$ac_ext <<_ACEOF
7440 /* end confdefs.h. */
7444 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
7445 $EGREP "localtime" >/dev
/null
2>&1; then
7447 cat >>confdefs.h
<<\_ACEOF
7448 #define HAVE_LOCALTIME 1
7455 # Create the subdirectory for natFile.cc, or the attempt
7456 # to create the link will fail.
7457 test -d java || mkdir java
7458 test -d java
/io || mkdir java
/io
7459 test -d gnu || mkdir gnu
7460 ac_config_links
="$ac_config_links java/io/natFile.cc:java/io/natFile${FILE-${PLATFORM}}.cc"
7463 # Likewise for ConcreteProcess.java and natConcreteProcess.cc.
7464 test -d java
/lang || mkdir java
/lang
7465 ac_config_links
="$ac_config_links java/lang/ConcreteProcess.java:java/lang/${PLATFORM}Process.java"
7467 ac_config_links
="$ac_config_links java/lang/natConcreteProcess.cc:java/lang/nat${PLATFORM}Process.cc"
7470 # Likewise for natInetAddress.cc and natVMNetworkInterface.cc.
7471 test -d java
/net || mkdir java
/net
7472 ac_config_links
="$ac_config_links java/net/natInetAddress.cc:java/net/natInetAddress${PLATFORMNET}.cc"
7474 ac_config_links
="$ac_config_links java/net/natVMNetworkInterface.cc:java/net/natVMNetworkInterface${PLATFORMNET}.cc"
7477 # Likewise for natPlainSocketImpl.cc and natPlainDatagramSocketImpl.cc.
7478 test -d gnu
/java || mkdir gnu
/java
7479 test -d gnu
/java
/net || mkdir gnu
/java
/net
7480 ac_config_links
="$ac_config_links gnu/java/net/natPlainSocketImpl.cc:gnu/java/net/natPlainSocketImpl${PLATFORMNET}.cc"
7482 ac_config_links
="$ac_config_links gnu/java/net/natPlainDatagramSocketImpl.cc:gnu/java/net/natPlainDatagramSocketImpl${PLATFORMNET}.cc"
7485 # Likewise for natPipeImpl.cc and natSelectorImpl.cc.
7486 test -d gnu
/java
/nio || mkdir gnu
/java
/nio
7487 ac_config_links
="$ac_config_links gnu/java/nio/natPipeImpl.cc:gnu/java/nio/natPipeImpl${PLATFORM}.cc"
7489 ac_config_links
="$ac_config_links gnu/java/nio/natSelectorImpl.cc:gnu/java/nio/natSelectorImpl${PLATFORM}.cc"
7491 test -d gnu
/java
/nio
/channels || mkdir gnu
/java
/nio
/channels
7492 ac_config_links
="$ac_config_links gnu/java/nio/channels/natFileChannelImpl.cc:gnu/java/nio/channels/natFileChannel${FILE-${PLATFORM}}.cc"
7497 SYSTEMSPEC
="-lgdi32 -lws2_32"
7498 if test "${with_win32_nlsapi}" = "unicows"; then
7499 SYSTEMSPEC
="-lunicows $SYSTEMSPEC"
7508 LIBGCJTESTSPEC
="-L`${PWDCMD-pwd}`/.libs -rpath `${PWDCMD-pwd}`/.libs"
7512 # Check whether --with-system-zlib or --without-system-zlib was given.
7513 if test "${with_system_zlib+set}" = set; then
7514 withval
="$with_system_zlib"
7522 echo "$as_me:$LINENO: checking for X" >&5
7523 echo $ECHO_N "checking for X... $ECHO_C" >&6
7526 # Check whether --with-x or --without-x was given.
7527 if test "${with_x+set}" = set; then
7531 # $have_x is `yes', `no', `disabled', or empty when we do not yet know.
7532 if test "x$with_x" = xno
; then
7533 # The user explicitly disabled X.
7536 if test "x$x_includes" != xNONE
&& test "x$x_libraries" != xNONE
; then
7537 # Both variables are already set.
7540 if test "${ac_cv_have_x+set}" = set; then
7541 echo $ECHO_N "(cached) $ECHO_C" >&6
7543 # One or both of the vars are not set, and there is no cached value.
7544 ac_x_includes
=no ac_x_libraries
=no
7546 if mkdir conftest.dir
; then
7548 # Make sure to not put "make" in the Imakefile rules, since we grep it out.
7549 cat >Imakefile
<<'_ACEOF'
7551 @echo 'ac_im_incroot="${INCROOT}"; ac_im_usrlibdir="${USRLIBDIR}"; ac_im_libdir="${LIBDIR}"'
7553 if (xmkmf
) >/dev
/null
2>/dev
/null
&& test -f Makefile
; then
7554 # GNU make sometimes prints "make[1]: Entering...", which would confuse us.
7555 eval `${MAKE-make} acfindx 2>/dev/null | grep -v make`
7556 # Open Windows xmkmf reportedly sets LIBDIR instead of USRLIBDIR.
7557 for ac_extension
in a so sl
; do
7558 if test ! -f $ac_im_usrlibdir/libX11.
$ac_extension &&
7559 test -f $ac_im_libdir/libX11.
$ac_extension; then
7560 ac_im_usrlibdir
=$ac_im_libdir; break
7563 # Screen out bogus values from the imake configuration. They are
7564 # bogus both because they are the default anyway, and because
7565 # using them would break gcc on systems where it needs fixed includes.
7566 case $ac_im_incroot in
7568 *) test -f "$ac_im_incroot/X11/Xos.h" && ac_x_includes
=$ac_im_incroot;;
7570 case $ac_im_usrlibdir in
7572 *) test -d "$ac_im_usrlibdir" && ac_x_libraries
=$ac_im_usrlibdir ;;
7579 # Standard set of common directories for X headers.
7580 # Check X11 before X11Rn because it is often a symlink to the current release.
7592 /usr/local/X11/include
7593 /usr/local/X11R6/include
7594 /usr/local/X11R5/include
7595 /usr/local/X11R4/include
7597 /usr/local/include/X11
7598 /usr/local/include/X11R6
7599 /usr/local/include/X11R5
7600 /usr/local/include/X11R4
7604 /usr/XFree86/include/X11
7608 /usr/unsupported/include
7610 /usr/local/x11r5/include
7611 /usr/lpp/Xamples/include
7613 /usr/openwin/include
7614 /usr/openwin/share/include'
7616 if test "$ac_x_includes" = no
; then
7617 # Guess where to find include files, by looking for Intrinsic.h.
7618 # First, try using that file with no special directory specified.
7619 cat >conftest.
$ac_ext <<_ACEOF
7622 cat confdefs.h
>>conftest.
$ac_ext
7623 cat >>conftest.
$ac_ext <<_ACEOF
7624 /* end confdefs.h. */
7625 #include <X11/Intrinsic.h>
7627 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
7628 (eval $ac_cpp conftest.
$ac_ext) 2>conftest.er1
7630 grep -v '^ *+' conftest.er1
>conftest.err
7632 cat conftest.err
>&5
7633 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7634 (exit $ac_status); } >/dev
/null
; then
7635 if test -s conftest.err
; then
7636 ac_cpp_err
=$ac_c_preproc_warn_flag
7637 ac_cpp_err
=$ac_cpp_err$ac_c_werror_flag
7644 if test -z "$ac_cpp_err"; then
7645 # We can compile using X headers with no special include directory.
7648 echo "$as_me: failed program was:" >&5
7649 sed 's/^/| /' conftest.
$ac_ext >&5
7651 for ac_dir
in $ac_x_header_dirs; do
7652 if test -r "$ac_dir/X11/Intrinsic.h"; then
7653 ac_x_includes
=$ac_dir
7658 rm -f conftest.err conftest.
$ac_ext
7659 fi # $ac_x_includes = no
7661 if test "$ac_x_libraries" = no
; then
7662 # Check for the libraries.
7663 # See if we find them without any special options.
7664 # Don't add to $LIBS permanently.
7667 if test x
$gcc_no_link = xyes
; then
7668 { { echo "$as_me:$LINENO: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&5
7669 echo "$as_me: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&2;}
7670 { (exit 1); exit 1; }; }
7672 cat >conftest.
$ac_ext <<_ACEOF
7675 cat confdefs.h
>>conftest.
$ac_ext
7676 cat >>conftest.
$ac_ext <<_ACEOF
7677 /* end confdefs.h. */
7678 #include <X11/Intrinsic.h>
7687 rm -f conftest.
$ac_objext conftest
$ac_exeext
7688 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
7689 (eval $ac_link) 2>conftest.er1
7691 grep -v '^ *+' conftest.er1
>conftest.err
7693 cat conftest.err
>&5
7694 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7695 (exit $ac_status); } &&
7696 { ac_try
='test -z "$ac_c_werror_flag"
7697 || test ! -s conftest.err'
7698 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7701 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7702 (exit $ac_status); }; } &&
7703 { ac_try
='test -s conftest$ac_exeext'
7704 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7707 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7708 (exit $ac_status); }; }; then
7710 # We can link X programs with no special library path.
7713 echo "$as_me: failed program was:" >&5
7714 sed 's/^/| /' conftest.
$ac_ext >&5
7717 for ac_dir
in `echo "$ac_x_includes $ac_x_header_dirs" | sed s/include/lib/g`
7719 # Don't even attempt the hair of trying to link an X program!
7720 for ac_extension
in a so sl
; do
7721 if test -r $ac_dir/libXt.
$ac_extension; then
7722 ac_x_libraries
=$ac_dir
7728 rm -f conftest.err conftest.
$ac_objext \
7729 conftest
$ac_exeext conftest.
$ac_ext
7730 fi # $ac_x_libraries = no
7732 if test "$ac_x_includes" = no ||
test "$ac_x_libraries" = no
; then
7733 # Didn't find X anywhere. Cache the known absence of X.
7734 ac_cv_have_x
="have_x=no"
7736 # Record where we found X for the cache.
7737 ac_cv_have_x
="have_x=yes \
7738 ac_x_includes=$ac_x_includes ac_x_libraries=$ac_x_libraries"
7743 eval "$ac_cv_have_x"
7746 if test "$have_x" != yes; then
7747 echo "$as_me:$LINENO: result: $have_x" >&5
7748 echo "${ECHO_T}$have_x" >&6
7751 # If each of the values was on the command line, it overrides each guess.
7752 test "x$x_includes" = xNONE
&& x_includes
=$ac_x_includes
7753 test "x$x_libraries" = xNONE
&& x_libraries
=$ac_x_libraries
7754 # Update the cache value to reflect the command line values.
7755 ac_cv_have_x
="have_x=yes \
7756 ac_x_includes=$x_includes ac_x_libraries=$x_libraries"
7757 echo "$as_me:$LINENO: result: libraries $x_libraries, headers $x_includes" >&5
7758 echo "${ECHO_T}libraries $x_libraries, headers $x_includes" >&6
7761 if test "$no_x" = yes; then
7762 # Not all programs may use this symbol, but it does not hurt to define it.
7764 cat >>confdefs.h
<<\_ACEOF
7765 #define X_DISPLAY_MISSING 1
7768 X_CFLAGS
= X_PRE_LIBS
= X_LIBS
= X_EXTRA_LIBS
=
7770 if test -n "$x_includes"; then
7771 X_CFLAGS
="$X_CFLAGS -I$x_includes"
7774 # It would also be nice to do this for all -L options, not just this one.
7775 if test -n "$x_libraries"; then
7776 X_LIBS
="$X_LIBS -L$x_libraries"
7777 # For Solaris; some versions of Sun CC require a space after -R and
7778 # others require no space. Words are not sufficient . . . .
7779 case `(uname -sr) 2>/dev/null` in
7781 echo "$as_me:$LINENO: checking whether -R must be followed by a space" >&5
7782 echo $ECHO_N "checking whether -R must be followed by a space... $ECHO_C" >&6
7783 ac_xsave_LIBS
=$LIBS; LIBS
="$LIBS -R$x_libraries"
7784 if test x
$gcc_no_link = xyes
; then
7785 { { echo "$as_me:$LINENO: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&5
7786 echo "$as_me: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&2;}
7787 { (exit 1); exit 1; }; }
7789 cat >conftest.
$ac_ext <<_ACEOF
7792 cat confdefs.h
>>conftest.
$ac_ext
7793 cat >>conftest.
$ac_ext <<_ACEOF
7794 /* end confdefs.h. */
7804 rm -f conftest.
$ac_objext conftest
$ac_exeext
7805 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
7806 (eval $ac_link) 2>conftest.er1
7808 grep -v '^ *+' conftest.er1
>conftest.err
7810 cat conftest.err
>&5
7811 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7812 (exit $ac_status); } &&
7813 { ac_try
='test -z "$ac_c_werror_flag"
7814 || test ! -s conftest.err'
7815 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7818 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7819 (exit $ac_status); }; } &&
7820 { ac_try
='test -s conftest$ac_exeext'
7821 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7824 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7825 (exit $ac_status); }; }; then
7828 echo "$as_me: failed program was:" >&5
7829 sed 's/^/| /' conftest.
$ac_ext >&5
7833 rm -f conftest.err conftest.
$ac_objext \
7834 conftest
$ac_exeext conftest.
$ac_ext
7835 if test $ac_R_nospace = yes; then
7836 echo "$as_me:$LINENO: result: no" >&5
7837 echo "${ECHO_T}no" >&6
7838 X_LIBS
="$X_LIBS -R$x_libraries"
7840 LIBS
="$ac_xsave_LIBS -R $x_libraries"
7841 if test x
$gcc_no_link = xyes
; then
7842 { { echo "$as_me:$LINENO: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&5
7843 echo "$as_me: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&2;}
7844 { (exit 1); exit 1; }; }
7846 cat >conftest.
$ac_ext <<_ACEOF
7849 cat confdefs.h
>>conftest.
$ac_ext
7850 cat >>conftest.
$ac_ext <<_ACEOF
7851 /* end confdefs.h. */
7861 rm -f conftest.
$ac_objext conftest
$ac_exeext
7862 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
7863 (eval $ac_link) 2>conftest.er1
7865 grep -v '^ *+' conftest.er1
>conftest.err
7867 cat conftest.err
>&5
7868 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7869 (exit $ac_status); } &&
7870 { ac_try
='test -z "$ac_c_werror_flag"
7871 || test ! -s conftest.err'
7872 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7875 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7876 (exit $ac_status); }; } &&
7877 { ac_try
='test -s conftest$ac_exeext'
7878 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7881 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7882 (exit $ac_status); }; }; then
7885 echo "$as_me: failed program was:" >&5
7886 sed 's/^/| /' conftest.
$ac_ext >&5
7890 rm -f conftest.err conftest.
$ac_objext \
7891 conftest
$ac_exeext conftest.
$ac_ext
7892 if test $ac_R_space = yes; then
7893 echo "$as_me:$LINENO: result: yes" >&5
7894 echo "${ECHO_T}yes" >&6
7895 X_LIBS
="$X_LIBS -R $x_libraries"
7897 echo "$as_me:$LINENO: result: neither works" >&5
7898 echo "${ECHO_T}neither works" >&6
7905 # Check for system-dependent libraries X programs must link with.
7906 # Do this before checking for the system-independent R6 libraries
7907 # (-lICE), since we may need -lsocket or whatever for X linking.
7909 if test "$ISC" = yes; then
7910 X_EXTRA_LIBS
="$X_EXTRA_LIBS -lnsl_s -linet"
7912 # Martyn Johnson says this is needed for Ultrix, if the X
7913 # libraries were built with DECnet support. And Karl Berry says
7914 # the Alpha needs dnet_stub (dnet does not exist).
7915 ac_xsave_LIBS
="$LIBS"; LIBS
="$LIBS $X_LIBS -lX11"
7916 if test x
$gcc_no_link = xyes
; then
7917 { { echo "$as_me:$LINENO: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&5
7918 echo "$as_me: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&2;}
7919 { (exit 1); exit 1; }; }
7921 cat >conftest.
$ac_ext <<_ACEOF
7924 cat confdefs.h
>>conftest.
$ac_ext
7925 cat >>conftest.
$ac_ext <<_ACEOF
7926 /* end confdefs.h. */
7928 /* Override any gcc2 internal prototype to avoid an error. */
7932 /* We use char because int might match the return type of a gcc2
7933 builtin and then its argument prototype would still apply. */
7934 char XOpenDisplay ();
7943 rm -f conftest.
$ac_objext conftest
$ac_exeext
7944 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
7945 (eval $ac_link) 2>conftest.er1
7947 grep -v '^ *+' conftest.er1
>conftest.err
7949 cat conftest.err
>&5
7950 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7951 (exit $ac_status); } &&
7952 { ac_try
='test -z "$ac_c_werror_flag"
7953 || test ! -s conftest.err'
7954 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7957 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7958 (exit $ac_status); }; } &&
7959 { ac_try
='test -s conftest$ac_exeext'
7960 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7963 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7964 (exit $ac_status); }; }; then
7967 echo "$as_me: failed program was:" >&5
7968 sed 's/^/| /' conftest.
$ac_ext >&5
7970 echo "$as_me:$LINENO: checking for dnet_ntoa in -ldnet" >&5
7971 echo $ECHO_N "checking for dnet_ntoa in -ldnet... $ECHO_C" >&6
7972 if test "${ac_cv_lib_dnet_dnet_ntoa+set}" = set; then
7973 echo $ECHO_N "(cached) $ECHO_C" >&6
7975 ac_check_lib_save_LIBS
=$LIBS
7977 if test x
$gcc_no_link = xyes
; then
7978 { { echo "$as_me:$LINENO: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&5
7979 echo "$as_me: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&2;}
7980 { (exit 1); exit 1; }; }
7982 cat >conftest.
$ac_ext <<_ACEOF
7985 cat confdefs.h
>>conftest.
$ac_ext
7986 cat >>conftest.
$ac_ext <<_ACEOF
7987 /* end confdefs.h. */
7989 /* Override any gcc2 internal prototype to avoid an error. */
7993 /* We use char because int might match the return type of a gcc2
7994 builtin and then its argument prototype would still apply. */
8004 rm -f conftest.
$ac_objext conftest
$ac_exeext
8005 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
8006 (eval $ac_link) 2>conftest.er1
8008 grep -v '^ *+' conftest.er1
>conftest.err
8010 cat conftest.err
>&5
8011 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8012 (exit $ac_status); } &&
8013 { ac_try
='test -z "$ac_c_werror_flag"
8014 || test ! -s conftest.err'
8015 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8018 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8019 (exit $ac_status); }; } &&
8020 { ac_try
='test -s conftest$ac_exeext'
8021 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8024 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8025 (exit $ac_status); }; }; then
8026 ac_cv_lib_dnet_dnet_ntoa
=yes
8028 echo "$as_me: failed program was:" >&5
8029 sed 's/^/| /' conftest.
$ac_ext >&5
8031 ac_cv_lib_dnet_dnet_ntoa
=no
8033 rm -f conftest.err conftest.
$ac_objext \
8034 conftest
$ac_exeext conftest.
$ac_ext
8035 LIBS
=$ac_check_lib_save_LIBS
8037 echo "$as_me:$LINENO: result: $ac_cv_lib_dnet_dnet_ntoa" >&5
8038 echo "${ECHO_T}$ac_cv_lib_dnet_dnet_ntoa" >&6
8039 if test $ac_cv_lib_dnet_dnet_ntoa = yes; then
8040 X_EXTRA_LIBS
="$X_EXTRA_LIBS -ldnet"
8043 if test $ac_cv_lib_dnet_dnet_ntoa = no
; then
8044 echo "$as_me:$LINENO: checking for dnet_ntoa in -ldnet_stub" >&5
8045 echo $ECHO_N "checking for dnet_ntoa in -ldnet_stub... $ECHO_C" >&6
8046 if test "${ac_cv_lib_dnet_stub_dnet_ntoa+set}" = set; then
8047 echo $ECHO_N "(cached) $ECHO_C" >&6
8049 ac_check_lib_save_LIBS
=$LIBS
8050 LIBS
="-ldnet_stub $LIBS"
8051 if test x
$gcc_no_link = xyes
; then
8052 { { echo "$as_me:$LINENO: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&5
8053 echo "$as_me: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&2;}
8054 { (exit 1); exit 1; }; }
8056 cat >conftest.
$ac_ext <<_ACEOF
8059 cat confdefs.h
>>conftest.
$ac_ext
8060 cat >>conftest.
$ac_ext <<_ACEOF
8061 /* end confdefs.h. */
8063 /* Override any gcc2 internal prototype to avoid an error. */
8067 /* We use char because int might match the return type of a gcc2
8068 builtin and then its argument prototype would still apply. */
8078 rm -f conftest.
$ac_objext conftest
$ac_exeext
8079 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
8080 (eval $ac_link) 2>conftest.er1
8082 grep -v '^ *+' conftest.er1
>conftest.err
8084 cat conftest.err
>&5
8085 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8086 (exit $ac_status); } &&
8087 { ac_try
='test -z "$ac_c_werror_flag"
8088 || test ! -s conftest.err'
8089 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8092 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8093 (exit $ac_status); }; } &&
8094 { ac_try
='test -s conftest$ac_exeext'
8095 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8098 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8099 (exit $ac_status); }; }; then
8100 ac_cv_lib_dnet_stub_dnet_ntoa
=yes
8102 echo "$as_me: failed program was:" >&5
8103 sed 's/^/| /' conftest.
$ac_ext >&5
8105 ac_cv_lib_dnet_stub_dnet_ntoa
=no
8107 rm -f conftest.err conftest.
$ac_objext \
8108 conftest
$ac_exeext conftest.
$ac_ext
8109 LIBS
=$ac_check_lib_save_LIBS
8111 echo "$as_me:$LINENO: result: $ac_cv_lib_dnet_stub_dnet_ntoa" >&5
8112 echo "${ECHO_T}$ac_cv_lib_dnet_stub_dnet_ntoa" >&6
8113 if test $ac_cv_lib_dnet_stub_dnet_ntoa = yes; then
8114 X_EXTRA_LIBS
="$X_EXTRA_LIBS -ldnet_stub"
8119 rm -f conftest.err conftest.
$ac_objext \
8120 conftest
$ac_exeext conftest.
$ac_ext
8121 LIBS
="$ac_xsave_LIBS"
8123 # msh@cis.ufl.edu says -lnsl (and -lsocket) are needed for his 386/AT,
8124 # to get the SysV transport functions.
8125 # Chad R. Larson says the Pyramis MIS-ES running DC/OSx (SVR4)
8127 # The nsl library prevents programs from opening the X display
8128 # on Irix 5.2, according to T.E. Dickey.
8129 # The functions gethostbyname, getservbyname, and inet_addr are
8130 # in -lbsd on LynxOS 3.0.1/i386, according to Lars Hecking.
8131 echo "$as_me:$LINENO: checking for gethostbyname" >&5
8132 echo $ECHO_N "checking for gethostbyname... $ECHO_C" >&6
8133 if test "${ac_cv_func_gethostbyname+set}" = set; then
8134 echo $ECHO_N "(cached) $ECHO_C" >&6
8136 if test x
$gcc_no_link = xyes
; then
8137 { { echo "$as_me:$LINENO: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&5
8138 echo "$as_me: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&2;}
8139 { (exit 1); exit 1; }; }
8141 cat >conftest.
$ac_ext <<_ACEOF
8144 cat confdefs.h
>>conftest.
$ac_ext
8145 cat >>conftest.
$ac_ext <<_ACEOF
8146 /* end confdefs.h. */
8147 /* Define gethostbyname to an innocuous variant, in case <limits.h> declares gethostbyname.
8148 For example, HP-UX 11i <limits.h> declares gettimeofday. */
8149 #define gethostbyname innocuous_gethostbyname
8151 /* System header to define __stub macros and hopefully few prototypes,
8152 which can conflict with char gethostbyname (); below.
8153 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
8154 <limits.h> exists even on freestanding compilers. */
8157 # include <limits.h>
8159 # include <assert.h>
8162 #undef gethostbyname
8164 /* Override any gcc2 internal prototype to avoid an error. */
8169 /* We use char because int might match the return type of a gcc2
8170 builtin and then its argument prototype would still apply. */
8171 char gethostbyname ();
8172 /* The GNU C library defines this for functions which it implements
8173 to always fail with ENOSYS. Some functions are actually named
8174 something starting with __ and the normal name is an alias. */
8175 #if defined (__stub_gethostbyname) || defined (__stub___gethostbyname)
8178 char (*f) () = gethostbyname;
8187 return f != gethostbyname;
8192 rm -f conftest.
$ac_objext conftest
$ac_exeext
8193 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
8194 (eval $ac_link) 2>conftest.er1
8196 grep -v '^ *+' conftest.er1
>conftest.err
8198 cat conftest.err
>&5
8199 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8200 (exit $ac_status); } &&
8201 { ac_try
='test -z "$ac_c_werror_flag"
8202 || test ! -s conftest.err'
8203 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8206 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8207 (exit $ac_status); }; } &&
8208 { ac_try
='test -s conftest$ac_exeext'
8209 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8212 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8213 (exit $ac_status); }; }; then
8214 ac_cv_func_gethostbyname
=yes
8216 echo "$as_me: failed program was:" >&5
8217 sed 's/^/| /' conftest.
$ac_ext >&5
8219 ac_cv_func_gethostbyname
=no
8221 rm -f conftest.err conftest.
$ac_objext \
8222 conftest
$ac_exeext conftest.
$ac_ext
8224 echo "$as_me:$LINENO: result: $ac_cv_func_gethostbyname" >&5
8225 echo "${ECHO_T}$ac_cv_func_gethostbyname" >&6
8227 if test $ac_cv_func_gethostbyname = no
; then
8228 echo "$as_me:$LINENO: checking for gethostbyname in -lnsl" >&5
8229 echo $ECHO_N "checking for gethostbyname in -lnsl... $ECHO_C" >&6
8230 if test "${ac_cv_lib_nsl_gethostbyname+set}" = set; then
8231 echo $ECHO_N "(cached) $ECHO_C" >&6
8233 ac_check_lib_save_LIBS
=$LIBS
8235 if test x
$gcc_no_link = xyes
; then
8236 { { echo "$as_me:$LINENO: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&5
8237 echo "$as_me: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&2;}
8238 { (exit 1); exit 1; }; }
8240 cat >conftest.
$ac_ext <<_ACEOF
8243 cat confdefs.h
>>conftest.
$ac_ext
8244 cat >>conftest.
$ac_ext <<_ACEOF
8245 /* end confdefs.h. */
8247 /* Override any gcc2 internal prototype to avoid an error. */
8251 /* We use char because int might match the return type of a gcc2
8252 builtin and then its argument prototype would still apply. */
8253 char gethostbyname ();
8262 rm -f conftest.
$ac_objext conftest
$ac_exeext
8263 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
8264 (eval $ac_link) 2>conftest.er1
8266 grep -v '^ *+' conftest.er1
>conftest.err
8268 cat conftest.err
>&5
8269 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8270 (exit $ac_status); } &&
8271 { ac_try
='test -z "$ac_c_werror_flag"
8272 || test ! -s conftest.err'
8273 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8276 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8277 (exit $ac_status); }; } &&
8278 { ac_try
='test -s conftest$ac_exeext'
8279 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8282 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8283 (exit $ac_status); }; }; then
8284 ac_cv_lib_nsl_gethostbyname
=yes
8286 echo "$as_me: failed program was:" >&5
8287 sed 's/^/| /' conftest.
$ac_ext >&5
8289 ac_cv_lib_nsl_gethostbyname
=no
8291 rm -f conftest.err conftest.
$ac_objext \
8292 conftest
$ac_exeext conftest.
$ac_ext
8293 LIBS
=$ac_check_lib_save_LIBS
8295 echo "$as_me:$LINENO: result: $ac_cv_lib_nsl_gethostbyname" >&5
8296 echo "${ECHO_T}$ac_cv_lib_nsl_gethostbyname" >&6
8297 if test $ac_cv_lib_nsl_gethostbyname = yes; then
8298 X_EXTRA_LIBS
="$X_EXTRA_LIBS -lnsl"
8301 if test $ac_cv_lib_nsl_gethostbyname = no
; then
8302 echo "$as_me:$LINENO: checking for gethostbyname in -lbsd" >&5
8303 echo $ECHO_N "checking for gethostbyname in -lbsd... $ECHO_C" >&6
8304 if test "${ac_cv_lib_bsd_gethostbyname+set}" = set; then
8305 echo $ECHO_N "(cached) $ECHO_C" >&6
8307 ac_check_lib_save_LIBS
=$LIBS
8309 if test x
$gcc_no_link = xyes
; then
8310 { { echo "$as_me:$LINENO: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&5
8311 echo "$as_me: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&2;}
8312 { (exit 1); exit 1; }; }
8314 cat >conftest.
$ac_ext <<_ACEOF
8317 cat confdefs.h
>>conftest.
$ac_ext
8318 cat >>conftest.
$ac_ext <<_ACEOF
8319 /* end confdefs.h. */
8321 /* Override any gcc2 internal prototype to avoid an error. */
8325 /* We use char because int might match the return type of a gcc2
8326 builtin and then its argument prototype would still apply. */
8327 char gethostbyname ();
8336 rm -f conftest.
$ac_objext conftest
$ac_exeext
8337 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
8338 (eval $ac_link) 2>conftest.er1
8340 grep -v '^ *+' conftest.er1
>conftest.err
8342 cat conftest.err
>&5
8343 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8344 (exit $ac_status); } &&
8345 { ac_try
='test -z "$ac_c_werror_flag"
8346 || test ! -s conftest.err'
8347 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8350 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8351 (exit $ac_status); }; } &&
8352 { ac_try
='test -s conftest$ac_exeext'
8353 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8356 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8357 (exit $ac_status); }; }; then
8358 ac_cv_lib_bsd_gethostbyname
=yes
8360 echo "$as_me: failed program was:" >&5
8361 sed 's/^/| /' conftest.
$ac_ext >&5
8363 ac_cv_lib_bsd_gethostbyname
=no
8365 rm -f conftest.err conftest.
$ac_objext \
8366 conftest
$ac_exeext conftest.
$ac_ext
8367 LIBS
=$ac_check_lib_save_LIBS
8369 echo "$as_me:$LINENO: result: $ac_cv_lib_bsd_gethostbyname" >&5
8370 echo "${ECHO_T}$ac_cv_lib_bsd_gethostbyname" >&6
8371 if test $ac_cv_lib_bsd_gethostbyname = yes; then
8372 X_EXTRA_LIBS
="$X_EXTRA_LIBS -lbsd"
8378 # lieder@skyler.mavd.honeywell.com says without -lsocket,
8379 # socket/setsockopt and other routines are undefined under SCO ODT
8380 # 2.0. But -lsocket is broken on IRIX 5.2 (and is not necessary
8381 # on later versions), says Simon Leinen: it contains gethostby*
8382 # variants that don't use the name server (or something). -lsocket
8383 # must be given before -lnsl if both are needed. We assume that
8384 # if connect needs -lnsl, so does gethostbyname.
8385 echo "$as_me:$LINENO: checking for connect" >&5
8386 echo $ECHO_N "checking for connect... $ECHO_C" >&6
8387 if test "${ac_cv_func_connect+set}" = set; then
8388 echo $ECHO_N "(cached) $ECHO_C" >&6
8390 if test x
$gcc_no_link = xyes
; then
8391 { { echo "$as_me:$LINENO: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&5
8392 echo "$as_me: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&2;}
8393 { (exit 1); exit 1; }; }
8395 cat >conftest.
$ac_ext <<_ACEOF
8398 cat confdefs.h
>>conftest.
$ac_ext
8399 cat >>conftest.
$ac_ext <<_ACEOF
8400 /* end confdefs.h. */
8401 /* Define connect to an innocuous variant, in case <limits.h> declares connect.
8402 For example, HP-UX 11i <limits.h> declares gettimeofday. */
8403 #define connect innocuous_connect
8405 /* System header to define __stub macros and hopefully few prototypes,
8406 which can conflict with char connect (); below.
8407 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
8408 <limits.h> exists even on freestanding compilers. */
8411 # include <limits.h>
8413 # include <assert.h>
8418 /* Override any gcc2 internal prototype to avoid an error. */
8423 /* We use char because int might match the return type of a gcc2
8424 builtin and then its argument prototype would still apply. */
8426 /* The GNU C library defines this for functions which it implements
8427 to always fail with ENOSYS. Some functions are actually named
8428 something starting with __ and the normal name is an alias. */
8429 #if defined (__stub_connect) || defined (__stub___connect)
8432 char (*f) () = connect;
8441 return f != connect;
8446 rm -f conftest.
$ac_objext conftest
$ac_exeext
8447 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
8448 (eval $ac_link) 2>conftest.er1
8450 grep -v '^ *+' conftest.er1
>conftest.err
8452 cat conftest.err
>&5
8453 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8454 (exit $ac_status); } &&
8455 { ac_try
='test -z "$ac_c_werror_flag"
8456 || test ! -s conftest.err'
8457 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8460 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8461 (exit $ac_status); }; } &&
8462 { ac_try
='test -s conftest$ac_exeext'
8463 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8466 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8467 (exit $ac_status); }; }; then
8468 ac_cv_func_connect
=yes
8470 echo "$as_me: failed program was:" >&5
8471 sed 's/^/| /' conftest.
$ac_ext >&5
8473 ac_cv_func_connect
=no
8475 rm -f conftest.err conftest.
$ac_objext \
8476 conftest
$ac_exeext conftest.
$ac_ext
8478 echo "$as_me:$LINENO: result: $ac_cv_func_connect" >&5
8479 echo "${ECHO_T}$ac_cv_func_connect" >&6
8481 if test $ac_cv_func_connect = no
; then
8482 echo "$as_me:$LINENO: checking for connect in -lsocket" >&5
8483 echo $ECHO_N "checking for connect in -lsocket... $ECHO_C" >&6
8484 if test "${ac_cv_lib_socket_connect+set}" = set; then
8485 echo $ECHO_N "(cached) $ECHO_C" >&6
8487 ac_check_lib_save_LIBS
=$LIBS
8488 LIBS
="-lsocket $X_EXTRA_LIBS $LIBS"
8489 if test x
$gcc_no_link = xyes
; then
8490 { { echo "$as_me:$LINENO: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&5
8491 echo "$as_me: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&2;}
8492 { (exit 1); exit 1; }; }
8494 cat >conftest.
$ac_ext <<_ACEOF
8497 cat confdefs.h
>>conftest.
$ac_ext
8498 cat >>conftest.
$ac_ext <<_ACEOF
8499 /* end confdefs.h. */
8501 /* Override any gcc2 internal prototype to avoid an error. */
8505 /* We use char because int might match the return type of a gcc2
8506 builtin and then its argument prototype would still apply. */
8516 rm -f conftest.
$ac_objext conftest
$ac_exeext
8517 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
8518 (eval $ac_link) 2>conftest.er1
8520 grep -v '^ *+' conftest.er1
>conftest.err
8522 cat conftest.err
>&5
8523 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8524 (exit $ac_status); } &&
8525 { ac_try
='test -z "$ac_c_werror_flag"
8526 || test ! -s conftest.err'
8527 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8530 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8531 (exit $ac_status); }; } &&
8532 { ac_try
='test -s conftest$ac_exeext'
8533 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8536 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8537 (exit $ac_status); }; }; then
8538 ac_cv_lib_socket_connect
=yes
8540 echo "$as_me: failed program was:" >&5
8541 sed 's/^/| /' conftest.
$ac_ext >&5
8543 ac_cv_lib_socket_connect
=no
8545 rm -f conftest.err conftest.
$ac_objext \
8546 conftest
$ac_exeext conftest.
$ac_ext
8547 LIBS
=$ac_check_lib_save_LIBS
8549 echo "$as_me:$LINENO: result: $ac_cv_lib_socket_connect" >&5
8550 echo "${ECHO_T}$ac_cv_lib_socket_connect" >&6
8551 if test $ac_cv_lib_socket_connect = yes; then
8552 X_EXTRA_LIBS
="-lsocket $X_EXTRA_LIBS"
8557 # Guillermo Gomez says -lposix is necessary on A/UX.
8558 echo "$as_me:$LINENO: checking for remove" >&5
8559 echo $ECHO_N "checking for remove... $ECHO_C" >&6
8560 if test "${ac_cv_func_remove+set}" = set; then
8561 echo $ECHO_N "(cached) $ECHO_C" >&6
8563 if test x
$gcc_no_link = xyes
; then
8564 { { echo "$as_me:$LINENO: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&5
8565 echo "$as_me: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&2;}
8566 { (exit 1); exit 1; }; }
8568 cat >conftest.
$ac_ext <<_ACEOF
8571 cat confdefs.h
>>conftest.
$ac_ext
8572 cat >>conftest.
$ac_ext <<_ACEOF
8573 /* end confdefs.h. */
8574 /* Define remove to an innocuous variant, in case <limits.h> declares remove.
8575 For example, HP-UX 11i <limits.h> declares gettimeofday. */
8576 #define remove innocuous_remove
8578 /* System header to define __stub macros and hopefully few prototypes,
8579 which can conflict with char remove (); below.
8580 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
8581 <limits.h> exists even on freestanding compilers. */
8584 # include <limits.h>
8586 # include <assert.h>
8591 /* Override any gcc2 internal prototype to avoid an error. */
8596 /* We use char because int might match the return type of a gcc2
8597 builtin and then its argument prototype would still apply. */
8599 /* The GNU C library defines this for functions which it implements
8600 to always fail with ENOSYS. Some functions are actually named
8601 something starting with __ and the normal name is an alias. */
8602 #if defined (__stub_remove) || defined (__stub___remove)
8605 char (*f) () = remove;
8619 rm -f conftest.
$ac_objext conftest
$ac_exeext
8620 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
8621 (eval $ac_link) 2>conftest.er1
8623 grep -v '^ *+' conftest.er1
>conftest.err
8625 cat conftest.err
>&5
8626 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8627 (exit $ac_status); } &&
8628 { ac_try
='test -z "$ac_c_werror_flag"
8629 || test ! -s conftest.err'
8630 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8633 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8634 (exit $ac_status); }; } &&
8635 { ac_try
='test -s conftest$ac_exeext'
8636 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8639 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8640 (exit $ac_status); }; }; then
8641 ac_cv_func_remove
=yes
8643 echo "$as_me: failed program was:" >&5
8644 sed 's/^/| /' conftest.
$ac_ext >&5
8646 ac_cv_func_remove
=no
8648 rm -f conftest.err conftest.
$ac_objext \
8649 conftest
$ac_exeext conftest.
$ac_ext
8651 echo "$as_me:$LINENO: result: $ac_cv_func_remove" >&5
8652 echo "${ECHO_T}$ac_cv_func_remove" >&6
8654 if test $ac_cv_func_remove = no
; then
8655 echo "$as_me:$LINENO: checking for remove in -lposix" >&5
8656 echo $ECHO_N "checking for remove in -lposix... $ECHO_C" >&6
8657 if test "${ac_cv_lib_posix_remove+set}" = set; then
8658 echo $ECHO_N "(cached) $ECHO_C" >&6
8660 ac_check_lib_save_LIBS
=$LIBS
8661 LIBS
="-lposix $LIBS"
8662 if test x
$gcc_no_link = xyes
; then
8663 { { echo "$as_me:$LINENO: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&5
8664 echo "$as_me: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&2;}
8665 { (exit 1); exit 1; }; }
8667 cat >conftest.
$ac_ext <<_ACEOF
8670 cat confdefs.h
>>conftest.
$ac_ext
8671 cat >>conftest.
$ac_ext <<_ACEOF
8672 /* end confdefs.h. */
8674 /* Override any gcc2 internal prototype to avoid an error. */
8678 /* We use char because int might match the return type of a gcc2
8679 builtin and then its argument prototype would still apply. */
8689 rm -f conftest.
$ac_objext conftest
$ac_exeext
8690 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
8691 (eval $ac_link) 2>conftest.er1
8693 grep -v '^ *+' conftest.er1
>conftest.err
8695 cat conftest.err
>&5
8696 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8697 (exit $ac_status); } &&
8698 { ac_try
='test -z "$ac_c_werror_flag"
8699 || test ! -s conftest.err'
8700 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8703 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8704 (exit $ac_status); }; } &&
8705 { ac_try
='test -s conftest$ac_exeext'
8706 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8709 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8710 (exit $ac_status); }; }; then
8711 ac_cv_lib_posix_remove
=yes
8713 echo "$as_me: failed program was:" >&5
8714 sed 's/^/| /' conftest.
$ac_ext >&5
8716 ac_cv_lib_posix_remove
=no
8718 rm -f conftest.err conftest.
$ac_objext \
8719 conftest
$ac_exeext conftest.
$ac_ext
8720 LIBS
=$ac_check_lib_save_LIBS
8722 echo "$as_me:$LINENO: result: $ac_cv_lib_posix_remove" >&5
8723 echo "${ECHO_T}$ac_cv_lib_posix_remove" >&6
8724 if test $ac_cv_lib_posix_remove = yes; then
8725 X_EXTRA_LIBS
="$X_EXTRA_LIBS -lposix"
8730 # BSDI BSD/OS 2.1 needs -lipc for XOpenDisplay.
8731 echo "$as_me:$LINENO: checking for shmat" >&5
8732 echo $ECHO_N "checking for shmat... $ECHO_C" >&6
8733 if test "${ac_cv_func_shmat+set}" = set; then
8734 echo $ECHO_N "(cached) $ECHO_C" >&6
8736 if test x
$gcc_no_link = xyes
; then
8737 { { echo "$as_me:$LINENO: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&5
8738 echo "$as_me: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&2;}
8739 { (exit 1); exit 1; }; }
8741 cat >conftest.
$ac_ext <<_ACEOF
8744 cat confdefs.h
>>conftest.
$ac_ext
8745 cat >>conftest.
$ac_ext <<_ACEOF
8746 /* end confdefs.h. */
8747 /* Define shmat to an innocuous variant, in case <limits.h> declares shmat.
8748 For example, HP-UX 11i <limits.h> declares gettimeofday. */
8749 #define shmat innocuous_shmat
8751 /* System header to define __stub macros and hopefully few prototypes,
8752 which can conflict with char shmat (); below.
8753 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
8754 <limits.h> exists even on freestanding compilers. */
8757 # include <limits.h>
8759 # include <assert.h>
8764 /* Override any gcc2 internal prototype to avoid an error. */
8769 /* We use char because int might match the return type of a gcc2
8770 builtin and then its argument prototype would still apply. */
8772 /* The GNU C library defines this for functions which it implements
8773 to always fail with ENOSYS. Some functions are actually named
8774 something starting with __ and the normal name is an alias. */
8775 #if defined (__stub_shmat) || defined (__stub___shmat)
8778 char (*f) () = shmat;
8792 rm -f conftest.
$ac_objext conftest
$ac_exeext
8793 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
8794 (eval $ac_link) 2>conftest.er1
8796 grep -v '^ *+' conftest.er1
>conftest.err
8798 cat conftest.err
>&5
8799 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8800 (exit $ac_status); } &&
8801 { ac_try
='test -z "$ac_c_werror_flag"
8802 || test ! -s conftest.err'
8803 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8806 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8807 (exit $ac_status); }; } &&
8808 { ac_try
='test -s conftest$ac_exeext'
8809 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8812 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8813 (exit $ac_status); }; }; then
8814 ac_cv_func_shmat
=yes
8816 echo "$as_me: failed program was:" >&5
8817 sed 's/^/| /' conftest.
$ac_ext >&5
8821 rm -f conftest.err conftest.
$ac_objext \
8822 conftest
$ac_exeext conftest.
$ac_ext
8824 echo "$as_me:$LINENO: result: $ac_cv_func_shmat" >&5
8825 echo "${ECHO_T}$ac_cv_func_shmat" >&6
8827 if test $ac_cv_func_shmat = no
; then
8828 echo "$as_me:$LINENO: checking for shmat in -lipc" >&5
8829 echo $ECHO_N "checking for shmat in -lipc... $ECHO_C" >&6
8830 if test "${ac_cv_lib_ipc_shmat+set}" = set; then
8831 echo $ECHO_N "(cached) $ECHO_C" >&6
8833 ac_check_lib_save_LIBS
=$LIBS
8835 if test x
$gcc_no_link = xyes
; then
8836 { { echo "$as_me:$LINENO: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&5
8837 echo "$as_me: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&2;}
8838 { (exit 1); exit 1; }; }
8840 cat >conftest.
$ac_ext <<_ACEOF
8843 cat confdefs.h
>>conftest.
$ac_ext
8844 cat >>conftest.
$ac_ext <<_ACEOF
8845 /* end confdefs.h. */
8847 /* Override any gcc2 internal prototype to avoid an error. */
8851 /* We use char because int might match the return type of a gcc2
8852 builtin and then its argument prototype would still apply. */
8862 rm -f conftest.
$ac_objext conftest
$ac_exeext
8863 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
8864 (eval $ac_link) 2>conftest.er1
8866 grep -v '^ *+' conftest.er1
>conftest.err
8868 cat conftest.err
>&5
8869 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8870 (exit $ac_status); } &&
8871 { ac_try
='test -z "$ac_c_werror_flag"
8872 || test ! -s conftest.err'
8873 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8876 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8877 (exit $ac_status); }; } &&
8878 { ac_try
='test -s conftest$ac_exeext'
8879 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8882 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8883 (exit $ac_status); }; }; then
8884 ac_cv_lib_ipc_shmat
=yes
8886 echo "$as_me: failed program was:" >&5
8887 sed 's/^/| /' conftest.
$ac_ext >&5
8889 ac_cv_lib_ipc_shmat
=no
8891 rm -f conftest.err conftest.
$ac_objext \
8892 conftest
$ac_exeext conftest.
$ac_ext
8893 LIBS
=$ac_check_lib_save_LIBS
8895 echo "$as_me:$LINENO: result: $ac_cv_lib_ipc_shmat" >&5
8896 echo "${ECHO_T}$ac_cv_lib_ipc_shmat" >&6
8897 if test $ac_cv_lib_ipc_shmat = yes; then
8898 X_EXTRA_LIBS
="$X_EXTRA_LIBS -lipc"
8904 # Check for libraries that X11R6 Xt/Xaw programs need.
8905 ac_save_LDFLAGS
=$LDFLAGS
8906 test -n "$x_libraries" && LDFLAGS
="$LDFLAGS -L$x_libraries"
8907 # SM needs ICE to (dynamically) link under SunOS 4.x (so we have to
8908 # check for ICE first), but we must link in the order -lSM -lICE or
8909 # we get undefined symbols. So assume we have SM if we have ICE.
8910 # These have to be linked with before -lX11, unlike the other
8911 # libraries we check for below, so use a different variable.
8912 # John Interrante, Karl Berry
8913 echo "$as_me:$LINENO: checking for IceConnectionNumber in -lICE" >&5
8914 echo $ECHO_N "checking for IceConnectionNumber in -lICE... $ECHO_C" >&6
8915 if test "${ac_cv_lib_ICE_IceConnectionNumber+set}" = set; then
8916 echo $ECHO_N "(cached) $ECHO_C" >&6
8918 ac_check_lib_save_LIBS
=$LIBS
8919 LIBS
="-lICE $X_EXTRA_LIBS $LIBS"
8920 if test x
$gcc_no_link = xyes
; then
8921 { { echo "$as_me:$LINENO: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&5
8922 echo "$as_me: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&2;}
8923 { (exit 1); exit 1; }; }
8925 cat >conftest.
$ac_ext <<_ACEOF
8928 cat confdefs.h
>>conftest.
$ac_ext
8929 cat >>conftest.
$ac_ext <<_ACEOF
8930 /* end confdefs.h. */
8932 /* Override any gcc2 internal prototype to avoid an error. */
8936 /* We use char because int might match the return type of a gcc2
8937 builtin and then its argument prototype would still apply. */
8938 char IceConnectionNumber ();
8942 IceConnectionNumber ();
8947 rm -f conftest.
$ac_objext conftest
$ac_exeext
8948 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
8949 (eval $ac_link) 2>conftest.er1
8951 grep -v '^ *+' conftest.er1
>conftest.err
8953 cat conftest.err
>&5
8954 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8955 (exit $ac_status); } &&
8956 { ac_try
='test -z "$ac_c_werror_flag"
8957 || test ! -s conftest.err'
8958 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8961 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8962 (exit $ac_status); }; } &&
8963 { ac_try
='test -s conftest$ac_exeext'
8964 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8967 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8968 (exit $ac_status); }; }; then
8969 ac_cv_lib_ICE_IceConnectionNumber
=yes
8971 echo "$as_me: failed program was:" >&5
8972 sed 's/^/| /' conftest.
$ac_ext >&5
8974 ac_cv_lib_ICE_IceConnectionNumber
=no
8976 rm -f conftest.err conftest.
$ac_objext \
8977 conftest
$ac_exeext conftest.
$ac_ext
8978 LIBS
=$ac_check_lib_save_LIBS
8980 echo "$as_me:$LINENO: result: $ac_cv_lib_ICE_IceConnectionNumber" >&5
8981 echo "${ECHO_T}$ac_cv_lib_ICE_IceConnectionNumber" >&6
8982 if test $ac_cv_lib_ICE_IceConnectionNumber = yes; then
8983 X_PRE_LIBS
="$X_PRE_LIBS -lSM -lICE"
8986 LDFLAGS
=$ac_save_LDFLAGS
8991 # FIXME: this should be _libs on some hosts.
8994 # extra LD Flags which are required for targets
8997 # For now we have to disable it on darwin[8-9] because it slows down
8998 # the linking phase. A possible bug in ld?
8999 # on Darwin -single_module speeds up loading of the dynamic libraries.
9000 extra_ldflags_libjava
=-Wl,-single_module
9005 # Allow the GC to be disabled. Can be useful when debugging.
9006 echo "$as_me:$LINENO: checking for garbage collector to use" >&5
9007 echo $ECHO_N "checking for garbage collector to use... $ECHO_C" >&6
9008 # Check whether --enable-java-gc or --disable-java-gc was given.
9009 if test "${enable_java_gc+set}" = set; then
9010 enableval
="$enable_java_gc"
9023 echo "$as_me:$LINENO: result: boehm" >&5
9024 echo "${ECHO_T}boehm" >&6
9025 GCLIBS
=..
/boehm-gc
/libgcjgc_convenience.la
9026 JC1GCSPEC
='-fuse-boehm-gc'
9027 GCTESTSPEC
="-L`${PWDCMD-pwd}`/../boehm-gc/.libs -rpath `${PWDCMD-pwd}`/../boehm-gc/.libs"
9028 GCINCS
='-I$(top_srcdir)/../boehm-gc/include -I../boehm-gc/include'
9031 # The POSIX thread support needs to know this.
9033 cat >>confdefs.h
<<\_ACEOF
9034 #define HAVE_BOEHM_GC 1
9039 echo "$as_me:$LINENO: result: none" >&5
9040 echo "${ECHO_T}none" >&6
9044 { { echo "$as_me:$LINENO: error: unrecognized collector \"$GC\"" >&5
9045 echo "$as_me: error: unrecognized collector \"$GC\"" >&2;}
9046 { (exit 1); exit 1; }; }
9055 ac_config_links
="$ac_config_links include/java-gc.h:include/$GCHDR"
9059 if test "$GC" = boehm
; then
9061 USING_BOEHMGC_FALSE
='#'
9063 USING_BOEHMGC_TRUE
='#'
9064 USING_BOEHMGC_FALSE
=
9069 if test "$GC" = no
; then
9071 USING_NOGC_FALSE
='#'
9079 echo "$as_me:$LINENO: checking for thread model used by GCC" >&5
9080 echo $ECHO_N "checking for thread model used by GCC... $ECHO_C" >&6
9081 THREADS
=`$CC -v 2>&1 | sed -n 's/^Thread model: //p'`
9082 echo "$as_me:$LINENO: result: $THREADS" >&5
9083 echo "${ECHO_T}$THREADS" >&6
9089 posix | posix95 | pthreads
)
9094 cat >>confdefs.h
<<\_ACEOF
9095 #define LINUX_THREADS 1
9103 decosf1 | irix | mach | os2 | solaris | dce | vxworks
)
9104 { { echo "$as_me:$LINENO: error: thread package $THREADS not yet supported" >&5
9105 echo "$as_me: error: thread package $THREADS not yet supported" >&2;}
9106 { (exit 1); exit 1; }; }
9109 { { echo "$as_me:$LINENO: error: $THREADS is an unknown thread package" >&5
9110 echo "$as_me: error: $THREADS is an unknown thread package" >&2;}
9111 { (exit 1); exit 1; }; }
9122 THREADSTARTFILESPEC
=
9127 # Don't set THREADLIBS here. Cygwin doesn't have -lpthread.
9130 # Before FreeBSD 5, it didn't have -lpthread (or any library which
9131 # merely adds pthread_* functions) but it does have a -pthread switch
9132 # which is required at link-time to select -lc_r *instead* of -lc.
9133 THREADLDFLAGS
=-pthread
9134 # Don't set THREADSPEC here as might be expected since -pthread is
9135 # not processed when found within a spec file, it must come from
9136 # the command line. For now, the user must provide the -pthread
9137 # switch to link code compiled with gcj. In future, consider adding
9138 # support for weak references to pthread_* functions ala gthr.h API.
9139 THREADSPEC
='%{!pthread: %{!shared: %eUnder this configuration, the user must provide -pthread when linking.}}'
9142 # FreeBSD >=5.3 implements a model much closer to other modern UNIX
9143 # systems which support threads and -lpthread.
9144 THREADLDFLAGS
=-pthread
9145 THREADSPEC
=-lpthread
9147 alpha
*-dec-osf* | hppa
*-hp-hpux*)
9148 THREADCXXFLAGS
=-pthread
9149 # boehm-gc needs some functions from librt, so link that too.
9150 THREADLIBS
='-lpthread -lrt'
9151 THREADSPEC
='-lpthread -lrt'
9154 THREADLIBS
=-lpthread
9155 THREADSPEC
=-lpthread
9158 THREADH
=posix-threads.h
9159 # MIT pthreads doesn't seem to have the mutexattr functions.
9160 # But for now we don't check for it. We just assume you aren't
9161 # using MIT pthreads.
9163 cat >>confdefs.h
<<\_ACEOF
9164 #define HAVE_PTHREAD_MUTEXATTR_INIT 1
9168 # If we're using the Boehm GC, then we happen to know that it
9169 # defines _REENTRANT, so we don't bother. Eww.
9170 if test "$GC" != boehm
; then
9172 cat >>confdefs.h
<<\_ACEOF
9173 #define _REENTRANT 1
9178 cat >>confdefs.h
<<\_ACEOF
9179 #define _POSIX_PTHREAD_SEMANTICS 1
9185 THREADH
=win32-threads.h
9186 THREADCXXFLAGS
=-mthreads
9187 # We need thread-safe exception handling so _CRT_MT should be set to 1.
9188 # But we do not want the executables created to be dependent on
9189 # mingwm10.dll which provides a __mingwthr_key_dtor() that cleans up
9190 # exception handling contexts. The following kludge achieves this effect
9191 # and causes a dummy __mingwthr_key_dtor() to be linked in from
9192 # libmingw32.a. This causes a memory leak of about 24 bytes per thread.
9193 # A workaround is to explicitly use -mthreads while linking Java programs.
9194 # See PR libgcj/28263.
9196 # FIXME: In Java we are able to detect thread death at the end of
9197 # Thread.run() so we should be able to clean up the exception handling
9198 # contexts ourselves.
9199 THREADSTARTFILESPEC
='crtmt%O%s'
9203 THREADH
=no-threads.h
9206 ac_config_links
="$ac_config_links include/java-threads.h:include/$THREADH"
9217 if test "$THREADS" = posix
; then
9218 USING_POSIX_THREADS_TRUE
=
9219 USING_POSIX_THREADS_FALSE
='#'
9221 USING_POSIX_THREADS_TRUE
='#'
9222 USING_POSIX_THREADS_FALSE
=
9227 if test "$THREADS" = win32
; then
9228 USING_WIN32_THREADS_TRUE
=
9229 USING_WIN32_THREADS_FALSE
='#'
9231 USING_WIN32_THREADS_TRUE
='#'
9232 USING_WIN32_THREADS_FALSE
=
9237 if test "$THREADS" = none
; then
9238 USING_NO_THREADS_TRUE
=
9239 USING_NO_THREADS_FALSE
='#'
9241 USING_NO_THREADS_TRUE
='#'
9242 USING_NO_THREADS_FALSE
=
9246 if test -d sysdep
; then true
; else mkdir sysdep
; fi
9247 ac_config_links
="$ac_config_links sysdep/locks.h:sysdep/$sysdeps_dir/locks.h"
9249 ac_config_links
="$ac_config_links sysdep/backtrace.h:$fallback_backtrace_h"
9251 ac_config_links
="$ac_config_links sysdep/descriptor.h:$descriptor_h"
9255 # Hash synchronization is only useful with posix threads right now.
9256 if test "$enable_hash_synchronization" = yes && test "$THREADS" != "none"; then
9257 HASH_SYNC_SPEC
=-fhash-synchronization
9259 cat >>confdefs.h
<<\_ACEOF
9260 #define JV_HASH_SYNCHRONIZATION 1
9268 if test "$GCC" = yes; then
9277 # We're in the tree with gcc, and need to include some of its headers.
9278 GCC_UNWIND_INCLUDE
='-I$(libgcj_basedir)/../gcc'
9280 if test "x${with_newlib}" = "xyes"; then
9281 # We are being configured with a cross compiler. AC_REPLACE_FUNCS
9282 # may not work correctly, because the compiler may not be able to
9285 # We assume newlib. This lets us hard-code the functions we know
9288 cat >>confdefs.h
<<\_ACEOF
9289 #define HAVE_MEMMOVE 1
9293 cat >>confdefs.h
<<\_ACEOF
9294 #define HAVE_MEMCPY 1
9298 cat >>confdefs.h
<<\_ACEOF
9299 #define HAVE_STRERROR 1
9303 cat >>confdefs.h
<<\_ACEOF
9308 cat >>confdefs.h
<<\_ACEOF
9309 #define HAVE_GMTIME_R 1
9313 cat >>confdefs.h
<<\_ACEOF
9314 #define HAVE_LOCALTIME_R 1
9318 cat >>confdefs.h
<<\_ACEOF
9319 #define HAVE_USLEEP_DECL 1
9322 # This is only for POSIX threads.
9324 cat >>confdefs.h
<<\_ACEOF
9325 #define HAVE_PTHREAD_MUTEXATTR_INIT 1
9328 # We also assume we are using gcc, which provides alloca.
9329 cat >>confdefs.h
<<\_ACEOF
9330 #define HAVE_ALLOCA 1
9334 # Assume we do not have getuid and friends.
9336 cat >>confdefs.h
<<\_ACEOF
9376 for ac_func
in strerror ioctl
select fstat open fsync
sleep opendir \
9377 gmtime_r localtime_r readdir_r getpwuid_r getcwd \
9378 access stat lstat mkdir rename
rmdir unlink utime
chmod readlink \
9379 nl_langinfo setlocale \
9380 inet_pton uname inet_ntoa \
9381 fork execvp pipe sigaction ftruncate mmap
9383 as_ac_var
=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
9384 echo "$as_me:$LINENO: checking for $ac_func" >&5
9385 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
9386 if eval "test \"\${$as_ac_var+set}\" = set"; then
9387 echo $ECHO_N "(cached) $ECHO_C" >&6
9389 if test x
$gcc_no_link = xyes
; then
9390 { { echo "$as_me:$LINENO: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&5
9391 echo "$as_me: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&2;}
9392 { (exit 1); exit 1; }; }
9394 cat >conftest.
$ac_ext <<_ACEOF
9397 cat confdefs.h
>>conftest.
$ac_ext
9398 cat >>conftest.
$ac_ext <<_ACEOF
9399 /* end confdefs.h. */
9400 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
9401 For example, HP-UX 11i <limits.h> declares gettimeofday. */
9402 #define $ac_func innocuous_$ac_func
9404 /* System header to define __stub macros and hopefully few prototypes,
9405 which can conflict with char $ac_func (); below.
9406 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
9407 <limits.h> exists even on freestanding compilers. */
9410 # include <limits.h>
9412 # include <assert.h>
9417 /* Override any gcc2 internal prototype to avoid an error. */
9422 /* We use char because int might match the return type of a gcc2
9423 builtin and then its argument prototype would still apply. */
9425 /* The GNU C library defines this for functions which it implements
9426 to always fail with ENOSYS. Some functions are actually named
9427 something starting with __ and the normal name is an alias. */
9428 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
9431 char (*f) () = $ac_func;
9440 return f != $ac_func;
9445 rm -f conftest.
$ac_objext conftest
$ac_exeext
9446 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
9447 (eval $ac_link) 2>conftest.er1
9449 grep -v '^ *+' conftest.er1
>conftest.err
9451 cat conftest.err
>&5
9452 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9453 (exit $ac_status); } &&
9454 { ac_try
='test -z "$ac_c_werror_flag"
9455 || test ! -s conftest.err'
9456 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9459 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9460 (exit $ac_status); }; } &&
9461 { ac_try
='test -s conftest$ac_exeext'
9462 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9465 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9466 (exit $ac_status); }; }; then
9467 eval "$as_ac_var=yes"
9469 echo "$as_me: failed program was:" >&5
9470 sed 's/^/| /' conftest.
$ac_ext >&5
9472 eval "$as_ac_var=no"
9474 rm -f conftest.err conftest.
$ac_objext \
9475 conftest
$ac_exeext conftest.
$ac_ext
9477 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
9478 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
9479 if test `eval echo '${'$as_ac_var'}'` = yes; then
9480 cat >>confdefs.h
<<_ACEOF
9481 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
9489 for ac_func
in inet_aton inet_addr
9491 as_ac_var
=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
9492 echo "$as_me:$LINENO: checking for $ac_func" >&5
9493 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
9494 if eval "test \"\${$as_ac_var+set}\" = set"; then
9495 echo $ECHO_N "(cached) $ECHO_C" >&6
9497 if test x
$gcc_no_link = xyes
; then
9498 { { echo "$as_me:$LINENO: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&5
9499 echo "$as_me: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&2;}
9500 { (exit 1); exit 1; }; }
9502 cat >conftest.
$ac_ext <<_ACEOF
9505 cat confdefs.h
>>conftest.
$ac_ext
9506 cat >>conftest.
$ac_ext <<_ACEOF
9507 /* end confdefs.h. */
9508 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
9509 For example, HP-UX 11i <limits.h> declares gettimeofday. */
9510 #define $ac_func innocuous_$ac_func
9512 /* System header to define __stub macros and hopefully few prototypes,
9513 which can conflict with char $ac_func (); below.
9514 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
9515 <limits.h> exists even on freestanding compilers. */
9518 # include <limits.h>
9520 # include <assert.h>
9525 /* Override any gcc2 internal prototype to avoid an error. */
9530 /* We use char because int might match the return type of a gcc2
9531 builtin and then its argument prototype would still apply. */
9533 /* The GNU C library defines this for functions which it implements
9534 to always fail with ENOSYS. Some functions are actually named
9535 something starting with __ and the normal name is an alias. */
9536 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
9539 char (*f) () = $ac_func;
9548 return f != $ac_func;
9553 rm -f conftest.
$ac_objext conftest
$ac_exeext
9554 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
9555 (eval $ac_link) 2>conftest.er1
9557 grep -v '^ *+' conftest.er1
>conftest.err
9559 cat conftest.err
>&5
9560 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9561 (exit $ac_status); } &&
9562 { ac_try
='test -z "$ac_c_werror_flag"
9563 || test ! -s conftest.err'
9564 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9567 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9568 (exit $ac_status); }; } &&
9569 { ac_try
='test -s conftest$ac_exeext'
9570 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9573 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9574 (exit $ac_status); }; }; then
9575 eval "$as_ac_var=yes"
9577 echo "$as_me: failed program was:" >&5
9578 sed 's/^/| /' conftest.
$ac_ext >&5
9580 eval "$as_ac_var=no"
9582 rm -f conftest.err conftest.
$ac_objext \
9583 conftest
$ac_exeext conftest.
$ac_ext
9585 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
9586 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
9587 if test `eval echo '${'$as_ac_var'}'` = yes; then
9588 cat >>confdefs.h
<<_ACEOF
9589 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
9595 echo "$as_me:$LINENO: checking for ANSI C header files" >&5
9596 echo $ECHO_N "checking for ANSI C header files... $ECHO_C" >&6
9597 if test "${ac_cv_header_stdc+set}" = set; then
9598 echo $ECHO_N "(cached) $ECHO_C" >&6
9600 cat >conftest.
$ac_ext <<_ACEOF
9603 cat confdefs.h
>>conftest.
$ac_ext
9604 cat >>conftest.
$ac_ext <<_ACEOF
9605 /* end confdefs.h. */
9619 rm -f conftest.
$ac_objext
9620 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
9621 (eval $ac_compile) 2>conftest.er1
9623 grep -v '^ *+' conftest.er1
>conftest.err
9625 cat conftest.err
>&5
9626 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9627 (exit $ac_status); } &&
9628 { ac_try
='test -z "$ac_c_werror_flag"
9629 || test ! -s conftest.err'
9630 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9633 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9634 (exit $ac_status); }; } &&
9635 { ac_try
='test -s conftest.$ac_objext'
9636 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9639 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9640 (exit $ac_status); }; }; then
9641 ac_cv_header_stdc
=yes
9643 echo "$as_me: failed program was:" >&5
9644 sed 's/^/| /' conftest.
$ac_ext >&5
9646 ac_cv_header_stdc
=no
9648 rm -f conftest.err conftest.
$ac_objext conftest.
$ac_ext
9650 if test $ac_cv_header_stdc = yes; then
9651 # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
9652 cat >conftest.
$ac_ext <<_ACEOF
9655 cat confdefs.h
>>conftest.
$ac_ext
9656 cat >>conftest.
$ac_ext <<_ACEOF
9657 /* end confdefs.h. */
9661 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
9662 $EGREP "memchr" >/dev
/null
2>&1; then
9665 ac_cv_header_stdc
=no
9671 if test $ac_cv_header_stdc = yes; then
9672 # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
9673 cat >conftest.
$ac_ext <<_ACEOF
9676 cat confdefs.h
>>conftest.
$ac_ext
9677 cat >>conftest.
$ac_ext <<_ACEOF
9678 /* end confdefs.h. */
9682 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
9683 $EGREP "free" >/dev
/null
2>&1; then
9686 ac_cv_header_stdc
=no
9692 if test $ac_cv_header_stdc = yes; then
9693 # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
9694 if test "$cross_compiling" = yes; then
9697 cat >conftest.
$ac_ext <<_ACEOF
9700 cat confdefs.h
>>conftest.
$ac_ext
9701 cat >>conftest.
$ac_ext <<_ACEOF
9702 /* end confdefs.h. */
9704 #if ((' ' & 0x0FF) == 0x020)
9705 # define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
9706 # define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
9708 # define ISLOWER(c) \
9709 (('a' <= (c) && (c) <= 'i') \
9710 || ('j' <= (c) && (c) <= 'r') \
9711 || ('s' <= (c) && (c) <= 'z'))
9712 # define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
9715 #define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
9720 for (i = 0; i < 256; i++)
9721 if (XOR (islower (i), ISLOWER (i))
9722 || toupper (i) != TOUPPER (i))
9727 rm -f conftest
$ac_exeext
9728 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
9729 (eval $ac_link) 2>&5
9731 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9732 (exit $ac_status); } && { ac_try
='./conftest$ac_exeext'
9733 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9736 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9737 (exit $ac_status); }; }; then
9740 echo "$as_me: program exited with status $ac_status" >&5
9741 echo "$as_me: failed program was:" >&5
9742 sed 's/^/| /' conftest.
$ac_ext >&5
9745 ac_cv_header_stdc
=no
9747 rm -f core
*.core gmon.out bb.out conftest
$ac_exeext conftest.
$ac_objext conftest.
$ac_ext
9751 echo "$as_me:$LINENO: result: $ac_cv_header_stdc" >&5
9752 echo "${ECHO_T}$ac_cv_header_stdc" >&6
9753 if test $ac_cv_header_stdc = yes; then
9755 cat >>confdefs.h
<<\_ACEOF
9756 #define STDC_HEADERS 1
9761 # On IRIX 5.3, sys/types and inttypes.h are conflicting.
9771 for ac_header
in sys
/types.h sys
/stat.h stdlib.h string.h memory.h
strings.h \
9772 inttypes.h stdint.h unistd.h
9774 as_ac_Header
=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
9775 echo "$as_me:$LINENO: checking for $ac_header" >&5
9776 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
9777 if eval "test \"\${$as_ac_Header+set}\" = set"; then
9778 echo $ECHO_N "(cached) $ECHO_C" >&6
9780 cat >conftest.
$ac_ext <<_ACEOF
9783 cat confdefs.h
>>conftest.
$ac_ext
9784 cat >>conftest.
$ac_ext <<_ACEOF
9785 /* end confdefs.h. */
9786 $ac_includes_default
9788 #include <$ac_header>
9790 rm -f conftest.
$ac_objext
9791 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
9792 (eval $ac_compile) 2>conftest.er1
9794 grep -v '^ *+' conftest.er1
>conftest.err
9796 cat conftest.err
>&5
9797 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9798 (exit $ac_status); } &&
9799 { ac_try
='test -z "$ac_c_werror_flag"
9800 || test ! -s conftest.err'
9801 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9804 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9805 (exit $ac_status); }; } &&
9806 { ac_try
='test -s conftest.$ac_objext'
9807 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9810 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9811 (exit $ac_status); }; }; then
9812 eval "$as_ac_Header=yes"
9814 echo "$as_me: failed program was:" >&5
9815 sed 's/^/| /' conftest.
$ac_ext >&5
9817 eval "$as_ac_Header=no"
9819 rm -f conftest.err conftest.
$ac_objext conftest.
$ac_ext
9821 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
9822 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
9823 if test `eval echo '${'$as_ac_Header'}'` = yes; then
9824 cat >>confdefs.h
<<_ACEOF
9825 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
9836 for ac_header
in execinfo.h unistd.h dlfcn.h
9838 as_ac_Header
=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
9839 if eval "test \"\${$as_ac_Header+set}\" = set"; then
9840 echo "$as_me:$LINENO: checking for $ac_header" >&5
9841 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
9842 if eval "test \"\${$as_ac_Header+set}\" = set"; then
9843 echo $ECHO_N "(cached) $ECHO_C" >&6
9845 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
9846 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
9848 # Is the header compilable?
9849 echo "$as_me:$LINENO: checking $ac_header usability" >&5
9850 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
9851 cat >conftest.
$ac_ext <<_ACEOF
9854 cat confdefs.h
>>conftest.
$ac_ext
9855 cat >>conftest.
$ac_ext <<_ACEOF
9856 /* end confdefs.h. */
9857 $ac_includes_default
9858 #include <$ac_header>
9860 rm -f conftest.
$ac_objext
9861 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
9862 (eval $ac_compile) 2>conftest.er1
9864 grep -v '^ *+' conftest.er1
>conftest.err
9866 cat conftest.err
>&5
9867 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9868 (exit $ac_status); } &&
9869 { ac_try
='test -z "$ac_c_werror_flag"
9870 || test ! -s conftest.err'
9871 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9874 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9875 (exit $ac_status); }; } &&
9876 { ac_try
='test -s conftest.$ac_objext'
9877 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9880 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9881 (exit $ac_status); }; }; then
9882 ac_header_compiler
=yes
9884 echo "$as_me: failed program was:" >&5
9885 sed 's/^/| /' conftest.
$ac_ext >&5
9887 ac_header_compiler
=no
9889 rm -f conftest.err conftest.
$ac_objext conftest.
$ac_ext
9890 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
9891 echo "${ECHO_T}$ac_header_compiler" >&6
9893 # Is the header present?
9894 echo "$as_me:$LINENO: checking $ac_header presence" >&5
9895 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
9896 cat >conftest.
$ac_ext <<_ACEOF
9899 cat confdefs.h
>>conftest.
$ac_ext
9900 cat >>conftest.
$ac_ext <<_ACEOF
9901 /* end confdefs.h. */
9902 #include <$ac_header>
9904 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
9905 (eval $ac_cpp conftest.
$ac_ext) 2>conftest.er1
9907 grep -v '^ *+' conftest.er1
>conftest.err
9909 cat conftest.err
>&5
9910 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9911 (exit $ac_status); } >/dev
/null
; then
9912 if test -s conftest.err
; then
9913 ac_cpp_err
=$ac_c_preproc_warn_flag
9914 ac_cpp_err
=$ac_cpp_err$ac_c_werror_flag
9921 if test -z "$ac_cpp_err"; then
9922 ac_header_preproc
=yes
9924 echo "$as_me: failed program was:" >&5
9925 sed 's/^/| /' conftest.
$ac_ext >&5
9927 ac_header_preproc
=no
9929 rm -f conftest.err conftest.
$ac_ext
9930 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
9931 echo "${ECHO_T}$ac_header_preproc" >&6
9933 # So? What about this header?
9934 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
9936 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
9937 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
9938 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
9939 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
9940 ac_header_preproc
=yes
9943 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
9944 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
9945 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
9946 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
9947 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
9948 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
9949 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
9950 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
9951 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
9952 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
9953 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
9954 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
9957 ## ---------------------------------- ##
9958 ## Report this to the libjava lists. ##
9959 ## ---------------------------------- ##
9962 sed "s/^/$as_me: WARNING: /" >&2
9965 echo "$as_me:$LINENO: checking for $ac_header" >&5
9966 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
9967 if eval "test \"\${$as_ac_Header+set}\" = set"; then
9968 echo $ECHO_N "(cached) $ECHO_C" >&6
9970 eval "$as_ac_Header=\$ac_header_preproc"
9972 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
9973 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
9976 if test `eval echo '${'$as_ac_Header'}'` = yes; then
9977 cat >>confdefs.h
<<_ACEOF
9978 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
9985 # Do an additional check on dld, HP-UX for example has dladdr in libdld.sl
9986 echo "$as_me:$LINENO: checking for dladdr in -ldl" >&5
9987 echo $ECHO_N "checking for dladdr in -ldl... $ECHO_C" >&6
9988 if test "${ac_cv_lib_dl_dladdr+set}" = set; then
9989 echo $ECHO_N "(cached) $ECHO_C" >&6
9991 ac_check_lib_save_LIBS
=$LIBS
9993 if test x
$gcc_no_link = xyes
; then
9994 { { echo "$as_me:$LINENO: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&5
9995 echo "$as_me: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&2;}
9996 { (exit 1); exit 1; }; }
9998 cat >conftest.
$ac_ext <<_ACEOF
10001 cat confdefs.h
>>conftest.
$ac_ext
10002 cat >>conftest.
$ac_ext <<_ACEOF
10003 /* end confdefs.h. */
10005 /* Override any gcc2 internal prototype to avoid an error. */
10009 /* We use char because int might match the return type of a gcc2
10010 builtin and then its argument prototype would still apply. */
10020 rm -f conftest.
$ac_objext conftest
$ac_exeext
10021 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
10022 (eval $ac_link) 2>conftest.er1
10024 grep -v '^ *+' conftest.er1
>conftest.err
10026 cat conftest.err
>&5
10027 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10028 (exit $ac_status); } &&
10029 { ac_try
='test -z "$ac_c_werror_flag"
10030 || test ! -s conftest.err'
10031 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10032 (eval $ac_try) 2>&5
10034 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10035 (exit $ac_status); }; } &&
10036 { ac_try
='test -s conftest$ac_exeext'
10037 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10038 (eval $ac_try) 2>&5
10040 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10041 (exit $ac_status); }; }; then
10042 ac_cv_lib_dl_dladdr
=yes
10044 echo "$as_me: failed program was:" >&5
10045 sed 's/^/| /' conftest.
$ac_ext >&5
10047 ac_cv_lib_dl_dladdr
=no
10049 rm -f conftest.err conftest.
$ac_objext \
10050 conftest
$ac_exeext conftest.
$ac_ext
10051 LIBS
=$ac_check_lib_save_LIBS
10053 echo "$as_me:$LINENO: result: $ac_cv_lib_dl_dladdr" >&5
10054 echo "${ECHO_T}$ac_cv_lib_dl_dladdr" >&6
10055 if test $ac_cv_lib_dl_dladdr = yes; then
10058 cat >>confdefs.h
<<\_ACEOF
10059 #define HAVE_DLADDR 1
10064 echo "$as_me:$LINENO: checking for dladdr in -ldld" >&5
10065 echo $ECHO_N "checking for dladdr in -ldld... $ECHO_C" >&6
10066 if test "${ac_cv_lib_dld_dladdr+set}" = set; then
10067 echo $ECHO_N "(cached) $ECHO_C" >&6
10069 ac_check_lib_save_LIBS
=$LIBS
10071 if test x
$gcc_no_link = xyes
; then
10072 { { echo "$as_me:$LINENO: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&5
10073 echo "$as_me: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&2;}
10074 { (exit 1); exit 1; }; }
10076 cat >conftest.
$ac_ext <<_ACEOF
10079 cat confdefs.h
>>conftest.
$ac_ext
10080 cat >>conftest.
$ac_ext <<_ACEOF
10081 /* end confdefs.h. */
10083 /* Override any gcc2 internal prototype to avoid an error. */
10087 /* We use char because int might match the return type of a gcc2
10088 builtin and then its argument prototype would still apply. */
10098 rm -f conftest.
$ac_objext conftest
$ac_exeext
10099 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
10100 (eval $ac_link) 2>conftest.er1
10102 grep -v '^ *+' conftest.er1
>conftest.err
10104 cat conftest.err
>&5
10105 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10106 (exit $ac_status); } &&
10107 { ac_try
='test -z "$ac_c_werror_flag"
10108 || test ! -s conftest.err'
10109 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10110 (eval $ac_try) 2>&5
10112 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10113 (exit $ac_status); }; } &&
10114 { ac_try
='test -s conftest$ac_exeext'
10115 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10116 (eval $ac_try) 2>&5
10118 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10119 (exit $ac_status); }; }; then
10120 ac_cv_lib_dld_dladdr
=yes
10122 echo "$as_me: failed program was:" >&5
10123 sed 's/^/| /' conftest.
$ac_ext >&5
10125 ac_cv_lib_dld_dladdr
=no
10127 rm -f conftest.err conftest.
$ac_objext \
10128 conftest
$ac_exeext conftest.
$ac_ext
10129 LIBS
=$ac_check_lib_save_LIBS
10131 echo "$as_me:$LINENO: result: $ac_cv_lib_dld_dladdr" >&5
10132 echo "${ECHO_T}$ac_cv_lib_dld_dladdr" >&6
10133 if test $ac_cv_lib_dld_dladdr = yes; then
10136 cat >>confdefs.h
<<\_ACEOF
10137 #define HAVE_DLADDR 1
10145 if test x
"$build" = x
"$host"; then
10146 echo "$as_me:$LINENO: checking for /proc/self/exe" >&5
10147 echo $ECHO_N "checking for /proc/self/exe... $ECHO_C" >&6
10148 if test "${ac_cv_file__proc_self_exe+set}" = set; then
10149 echo $ECHO_N "(cached) $ECHO_C" >&6
10151 test "$cross_compiling" = yes &&
10152 { { echo "$as_me:$LINENO: error: cannot check for file existence when cross compiling" >&5
10153 echo "$as_me: error: cannot check for file existence when cross compiling" >&2;}
10154 { (exit 1); exit 1; }; }
10155 if test -r "/proc/self/exe"; then
10156 ac_cv_file__proc_self_exe
=yes
10158 ac_cv_file__proc_self_exe
=no
10161 echo "$as_me:$LINENO: result: $ac_cv_file__proc_self_exe" >&5
10162 echo "${ECHO_T}$ac_cv_file__proc_self_exe" >&6
10163 if test $ac_cv_file__proc_self_exe = yes; then
10165 cat >>confdefs.h
<<_ACEOF
10166 #define HAVE__PROC_SELF_EXE 1
10171 cat >>confdefs.h
<<\_ACEOF
10172 #define HAVE_PROC_SELF_EXE 1
10181 cat >>confdefs.h
<<\_ACEOF
10182 #define HAVE_PROC_SELF_EXE 1
10190 if test "X$prefix" = "XNONE"; then
10191 acl_final_prefix
="$ac_default_prefix"
10193 acl_final_prefix
="$prefix"
10195 if test "X$exec_prefix" = "XNONE"; then
10196 acl_final_exec_prefix
='${prefix}'
10198 acl_final_exec_prefix
="$exec_prefix"
10200 acl_save_prefix
="$prefix"
10201 prefix
="$acl_final_prefix"
10202 eval acl_final_exec_prefix
=\"$acl_final_exec_prefix\"
10203 prefix
="$acl_save_prefix"
10206 # Check whether --with-gnu-ld or --without-gnu-ld was given.
10207 if test "${with_gnu_ld+set}" = set; then
10208 withval
="$with_gnu_ld"
10209 test "$withval" = no || with_gnu_ld
=yes
10213 # Prepare PATH_SEPARATOR.
10214 # The user is always right.
10215 if test "${PATH_SEPARATOR+set}" != set; then
10216 echo "#! /bin/sh" >conf$$.sh
10217 echo "exit 0" >>conf$$.sh
10219 if (PATH
="/nonexistent;."; conf$$.sh
) >/dev
/null
2>&1; then
10227 if test "$GCC" = yes; then
10228 # Check if gcc -print-prog-name=ld gives a path.
10229 echo "$as_me:$LINENO: checking for ld used by GCC" >&5
10230 echo $ECHO_N "checking for ld used by GCC... $ECHO_C" >&6
10233 # gcc leaves a trailing carriage return which upsets mingw
10234 ac_prog
=`($CC -print-prog-name=ld) 2>&5 | tr -d '\015'` ;;
10236 ac_prog
=`($CC -print-prog-name=ld) 2>&5` ;;
10239 # Accept absolute paths.
10240 [\\/]* |
[A-Za-z
]:[\\/]*)
10241 re_direlt
='/[^/][^/]*/\.\./'
10242 # Canonicalize the path of ld
10243 ac_prog
=`echo $ac_prog| sed 's%\\\\%/%g'`
10244 while echo $ac_prog |
grep "$re_direlt" > /dev
/null
2>&1; do
10245 ac_prog
=`echo $ac_prog| sed "s%$re_direlt%/%"`
10247 test -z "$LD" && LD
="$ac_prog"
10250 # If it fails, then pretend we aren't using GCC.
10254 # If it is relative, then search for the first ld in PATH.
10255 with_gnu_ld
=unknown
10258 elif test "$with_gnu_ld" = yes; then
10259 echo "$as_me:$LINENO: checking for GNU ld" >&5
10260 echo $ECHO_N "checking for GNU ld... $ECHO_C" >&6
10262 echo "$as_me:$LINENO: checking for non-GNU ld" >&5
10263 echo $ECHO_N "checking for non-GNU ld... $ECHO_C" >&6
10265 if test "${acl_cv_path_LD+set}" = set; then
10266 echo $ECHO_N "(cached) $ECHO_C" >&6
10268 if test -z "$LD"; then
10269 IFS
="${IFS= }"; ac_save_ifs="$IFS"; IFS="${IFS}${PATH_SEPARATOR-:}"
10270 for ac_dir
in $PATH; do
10271 test -z "$ac_dir" && ac_dir
=.
10272 if test -f "$ac_dir/$ac_prog" ||
test -f "$ac_dir/$ac_prog$ac_exeext"; then
10273 acl_cv_path_LD
="$ac_dir/$ac_prog"
10274 # Check to see if the program is GNU ld. I'd rather use --version,
10275 # but apparently some GNU ld's only accept -v.
10276 # Break only if it was the GNU/non-GNU ld that we prefer.
10277 if "$acl_cv_path_LD" -v 2>&1 < /dev
/null |
egrep '(GNU|with BFD)' > /dev
/null
; then
10278 test "$with_gnu_ld" != no
&& break
10280 test "$with_gnu_ld" != yes && break
10286 acl_cv_path_LD
="$LD" # Let the user override the test with a path.
10290 LD
="$acl_cv_path_LD"
10291 if test -n "$LD"; then
10292 echo "$as_me:$LINENO: result: $LD" >&5
10293 echo "${ECHO_T}$LD" >&6
10295 echo "$as_me:$LINENO: result: no" >&5
10296 echo "${ECHO_T}no" >&6
10298 test -z "$LD" && { { echo "$as_me:$LINENO: error: no acceptable ld found in \$PATH" >&5
10299 echo "$as_me: error: no acceptable ld found in \$PATH" >&2;}
10300 { (exit 1); exit 1; }; }
10301 echo "$as_me:$LINENO: checking if the linker ($LD) is GNU ld" >&5
10302 echo $ECHO_N "checking if the linker ($LD) is GNU ld... $ECHO_C" >&6
10303 if test "${acl_cv_prog_gnu_ld+set}" = set; then
10304 echo $ECHO_N "(cached) $ECHO_C" >&6
10306 # I'd rather use --version here, but apparently some GNU ld's only accept -v.
10307 if $LD -v 2>&1 </dev
/null |
egrep '(GNU|with BFD)' 1>&5; then
10308 acl_cv_prog_gnu_ld
=yes
10310 acl_cv_prog_gnu_ld
=no
10313 echo "$as_me:$LINENO: result: $acl_cv_prog_gnu_ld" >&5
10314 echo "${ECHO_T}$acl_cv_prog_gnu_ld" >&6
10315 with_gnu_ld
=$acl_cv_prog_gnu_ld
10319 echo "$as_me:$LINENO: checking for shared library run path origin" >&5
10320 echo $ECHO_N "checking for shared library run path origin... $ECHO_C" >&6
10321 if test "${acl_cv_rpath+set}" = set; then
10322 echo $ECHO_N "(cached) $ECHO_C" >&6
10325 CC
="$CC" GCC
="$GCC" LDFLAGS
="$LDFLAGS" LD
="$LD" with_gnu_ld
="$with_gnu_ld" \
10326 ${CONFIG_SHELL-/bin/sh} "$ac_aux_dir/config.rpath" "$host" > conftest.sh
10328 rm -f .
/conftest.sh
10332 echo "$as_me:$LINENO: result: $acl_cv_rpath" >&5
10333 echo "${ECHO_T}$acl_cv_rpath" >&6
10335 libext
="$acl_cv_libext"
10336 shlibext
="$acl_cv_shlibext"
10337 hardcode_libdir_flag_spec
="$acl_cv_hardcode_libdir_flag_spec"
10338 hardcode_libdir_separator
="$acl_cv_hardcode_libdir_separator"
10339 hardcode_direct
="$acl_cv_hardcode_direct"
10340 hardcode_minus_L
="$acl_cv_hardcode_minus_L"
10341 # Check whether --enable-rpath or --disable-rpath was given.
10342 if test "${enable_rpath+set}" = set; then
10343 enableval
="$enable_rpath"
10357 acl_save_prefix
="$prefix"
10358 prefix
="$acl_final_prefix"
10359 acl_save_exec_prefix
="$exec_prefix"
10360 exec_prefix
="$acl_final_exec_prefix"
10362 eval additional_includedir
=\"$includedir\"
10363 eval additional_libdir
=\"$libdir\"
10365 exec_prefix
="$acl_save_exec_prefix"
10366 prefix
="$acl_save_prefix"
10369 # Check whether --with-libiconv-prefix or --without-libiconv-prefix was given.
10370 if test "${with_libiconv_prefix+set}" = set; then
10371 withval
="$with_libiconv_prefix"
10373 if test "X$withval" = "Xno"; then
10376 if test "X$withval" = "X"; then
10378 acl_save_prefix
="$prefix"
10379 prefix
="$acl_final_prefix"
10380 acl_save_exec_prefix
="$exec_prefix"
10381 exec_prefix
="$acl_final_exec_prefix"
10383 eval additional_includedir
=\"$includedir\"
10384 eval additional_libdir
=\"$libdir\"
10386 exec_prefix
="$acl_save_exec_prefix"
10387 prefix
="$acl_save_prefix"
10390 additional_includedir
="$withval/include"
10391 additional_libdir
="$withval/lib"
10401 names_already_handled
=
10402 names_next_round
='iconv '
10403 while test -n "$names_next_round"; do
10404 names_this_round
="$names_next_round"
10406 for name
in $names_this_round; do
10408 for n
in $names_already_handled; do
10409 if test "$n" = "$name"; then
10410 already_handled
=yes
10414 if test -z "$already_handled"; then
10415 names_already_handled
="$names_already_handled $name"
10416 uppername
=`echo "$name" | sed -e 'y|abcdefghijklmnopqrstuvwxyz./-|ABCDEFGHIJKLMNOPQRSTUVWXYZ___|'`
10417 eval value
=\"\
$HAVE_LIB$uppername\"
10418 if test -n "$value"; then
10419 if test "$value" = yes; then
10420 eval value
=\"\
$LIB$uppername\"
10421 test -z "$value" || LIBICONV
="${LIBICONV}${LIBICONV:+ }$value"
10422 eval value
=\"\
$LTLIB$uppername\"
10423 test -z "$value" || LTLIBICONV
="${LTLIBICONV}${LTLIBICONV:+ }$value"
10432 if test $use_additional = yes; then
10433 if test -n "$shlibext" && test -f "$additional_libdir/lib$name.$shlibext"; then
10434 found_dir
="$additional_libdir"
10435 found_so
="$additional_libdir/lib$name.$shlibext"
10436 if test -f "$additional_libdir/lib$name.la"; then
10437 found_la
="$additional_libdir/lib$name.la"
10440 if test -f "$additional_libdir/lib$name.$libext"; then
10441 found_dir
="$additional_libdir"
10442 found_a
="$additional_libdir/lib$name.$libext"
10443 if test -f "$additional_libdir/lib$name.la"; then
10444 found_la
="$additional_libdir/lib$name.la"
10449 if test "X$found_dir" = "X"; then
10450 for x
in $LDFLAGS $LTLIBICONV; do
10452 acl_save_prefix
="$prefix"
10453 prefix
="$acl_final_prefix"
10454 acl_save_exec_prefix
="$exec_prefix"
10455 exec_prefix
="$acl_final_exec_prefix"
10457 exec_prefix
="$acl_save_exec_prefix"
10458 prefix
="$acl_save_prefix"
10462 dir
=`echo "X$x" | sed -e 's/^X-L//'`
10463 if test -n "$shlibext" && test -f "$dir/lib$name.$shlibext"; then
10465 found_so
="$dir/lib$name.$shlibext"
10466 if test -f "$dir/lib$name.la"; then
10467 found_la
="$dir/lib$name.la"
10470 if test -f "$dir/lib$name.$libext"; then
10472 found_a
="$dir/lib$name.$libext"
10473 if test -f "$dir/lib$name.la"; then
10474 found_la
="$dir/lib$name.la"
10480 if test "X$found_dir" != "X"; then
10485 if test "X$found_dir" != "X"; then
10486 LTLIBICONV
="${LTLIBICONV}${LTLIBICONV:+ }-L$found_dir -l$name"
10487 if test "X$found_so" != "X"; then
10488 if test "$enable_rpath" = no ||
test "X$found_dir" = "X/usr/lib"; then
10489 LIBICONV
="${LIBICONV}${LIBICONV:+ }$found_so"
10492 for x
in $ltrpathdirs; do
10493 if test "X$x" = "X$found_dir"; then
10498 if test -z "$haveit"; then
10499 ltrpathdirs
="$ltrpathdirs $found_dir"
10501 if test "$hardcode_direct" = yes; then
10502 LIBICONV
="${LIBICONV}${LIBICONV:+ }$found_so"
10504 if test -n "$hardcode_libdir_flag_spec" && test "$hardcode_minus_L" = no
; then
10505 LIBICONV
="${LIBICONV}${LIBICONV:+ }$found_so"
10507 for x
in $rpathdirs; do
10508 if test "X$x" = "X$found_dir"; then
10513 if test -z "$haveit"; then
10514 rpathdirs
="$rpathdirs $found_dir"
10518 for x
in $LDFLAGS $LIBICONV; do
10520 acl_save_prefix
="$prefix"
10521 prefix
="$acl_final_prefix"
10522 acl_save_exec_prefix
="$exec_prefix"
10523 exec_prefix
="$acl_final_exec_prefix"
10525 exec_prefix
="$acl_save_exec_prefix"
10526 prefix
="$acl_save_prefix"
10528 if test "X$x" = "X-L$found_dir"; then
10533 if test -z "$haveit"; then
10534 LIBICONV
="${LIBICONV}${LIBICONV:+ }-L$found_dir"
10536 if test "$hardcode_minus_L" != no
; then
10537 LIBICONV
="${LIBICONV}${LIBICONV:+ }$found_so"
10539 LIBICONV
="${LIBICONV}${LIBICONV:+ }-l$name"
10545 if test "X$found_a" != "X"; then
10546 LIBICONV
="${LIBICONV}${LIBICONV:+ }$found_a"
10548 LIBICONV
="${LIBICONV}${LIBICONV:+ }-L$found_dir -l$name"
10551 additional_includedir
=
10552 case "$found_dir" in
10554 basedir
=`echo "X$found_dir" | sed -e 's,^X,,' -e 's,/lib/*$,,'`
10555 additional_includedir
="$basedir/include"
10558 if test "X$additional_includedir" != "X"; then
10559 if test "X$additional_includedir" != "X/usr/include"; then
10561 if test "X$additional_includedir" = "X/usr/local/include"; then
10562 if test -n "$GCC"; then
10564 linux
*) haveit
=yes;;
10568 if test -z "$haveit"; then
10569 for x
in $CPPFLAGS $INCICONV; do
10571 acl_save_prefix
="$prefix"
10572 prefix
="$acl_final_prefix"
10573 acl_save_exec_prefix
="$exec_prefix"
10574 exec_prefix
="$acl_final_exec_prefix"
10576 exec_prefix
="$acl_save_exec_prefix"
10577 prefix
="$acl_save_prefix"
10579 if test "X$x" = "X-I$additional_includedir"; then
10584 if test -z "$haveit"; then
10585 if test -d "$additional_includedir"; then
10586 INCICONV
="${INCICONV}${INCICONV:+ }-I$additional_includedir"
10592 if test -n "$found_la"; then
10593 save_libdir
="$libdir"
10594 case "$found_la" in
10595 */* |
*\\*) .
"$found_la" ;;
10596 *) .
"./$found_la" ;;
10598 libdir
="$save_libdir"
10599 for dep
in $dependency_libs; do
10602 additional_libdir
=`echo "X$dep" | sed -e 's/^X-L//'`
10603 if test "X$additional_libdir" != "X/usr/lib"; then
10605 if test "X$additional_libdir" = "X/usr/local/lib"; then
10606 if test -n "$GCC"; then
10608 linux
*) haveit
=yes;;
10612 if test -z "$haveit"; then
10614 for x
in $LDFLAGS $LIBICONV; do
10616 acl_save_prefix
="$prefix"
10617 prefix
="$acl_final_prefix"
10618 acl_save_exec_prefix
="$exec_prefix"
10619 exec_prefix
="$acl_final_exec_prefix"
10621 exec_prefix
="$acl_save_exec_prefix"
10622 prefix
="$acl_save_prefix"
10624 if test "X$x" = "X-L$additional_libdir"; then
10629 if test -z "$haveit"; then
10630 if test -d "$additional_libdir"; then
10631 LIBICONV
="${LIBICONV}${LIBICONV:+ }-L$additional_libdir"
10635 for x
in $LDFLAGS $LTLIBICONV; do
10637 acl_save_prefix
="$prefix"
10638 prefix
="$acl_final_prefix"
10639 acl_save_exec_prefix
="$exec_prefix"
10640 exec_prefix
="$acl_final_exec_prefix"
10642 exec_prefix
="$acl_save_exec_prefix"
10643 prefix
="$acl_save_prefix"
10645 if test "X$x" = "X-L$additional_libdir"; then
10650 if test -z "$haveit"; then
10651 if test -d "$additional_libdir"; then
10652 LTLIBICONV
="${LTLIBICONV}${LTLIBICONV:+ }-L$additional_libdir"
10659 dir
=`echo "X$dep" | sed -e 's/^X-R//'`
10660 if test "$enable_rpath" != no
; then
10662 for x
in $rpathdirs; do
10663 if test "X$x" = "X$dir"; then
10668 if test -z "$haveit"; then
10669 rpathdirs
="$rpathdirs $dir"
10672 for x
in $ltrpathdirs; do
10673 if test "X$x" = "X$dir"; then
10678 if test -z "$haveit"; then
10679 ltrpathdirs
="$ltrpathdirs $dir"
10684 names_next_round
="$names_next_round "`echo "X$dep" | sed -e 's/^X-l//'`
10687 names_next_round
="$names_next_round "`echo "X$dep" | sed -e 's,^X.*/,,' -e 's,^lib,,' -e 's,\.la$,,'`
10690 LIBICONV
="${LIBICONV}${LIBICONV:+ }$dep"
10691 LTLIBICONV
="${LTLIBICONV}${LTLIBICONV:+ }$dep"
10697 LIBICONV
="${LIBICONV}${LIBICONV:+ }-l$name"
10698 LTLIBICONV
="${LTLIBICONV}${LTLIBICONV:+ }-l$name"
10704 if test "X$rpathdirs" != "X"; then
10705 if test -n "$hardcode_libdir_separator"; then
10707 for found_dir
in $rpathdirs; do
10708 alldirs
="${alldirs}${alldirs:+$hardcode_libdir_separator}$found_dir"
10710 acl_save_libdir
="$libdir"
10712 eval flag
=\"$hardcode_libdir_flag_spec\"
10713 libdir
="$acl_save_libdir"
10714 LIBICONV
="${LIBICONV}${LIBICONV:+ }$flag"
10716 for found_dir
in $rpathdirs; do
10717 acl_save_libdir
="$libdir"
10718 libdir
="$found_dir"
10719 eval flag
=\"$hardcode_libdir_flag_spec\"
10720 libdir
="$acl_save_libdir"
10721 LIBICONV
="${LIBICONV}${LIBICONV:+ }$flag"
10725 if test "X$ltrpathdirs" != "X"; then
10726 for found_dir
in $ltrpathdirs; do
10727 LTLIBICONV
="${LTLIBICONV}${LTLIBICONV:+ }-R$found_dir"
10737 am_save_CPPFLAGS
="$CPPFLAGS"
10739 for element
in $INCICONV; do
10741 for x
in $CPPFLAGS; do
10743 acl_save_prefix
="$prefix"
10744 prefix
="$acl_final_prefix"
10745 acl_save_exec_prefix
="$exec_prefix"
10746 exec_prefix
="$acl_final_exec_prefix"
10748 exec_prefix
="$acl_save_exec_prefix"
10749 prefix
="$acl_save_prefix"
10751 if test "X$x" = "X$element"; then
10756 if test -z "$haveit"; then
10757 CPPFLAGS
="${CPPFLAGS}${CPPFLAGS:+ }$element"
10762 echo "$as_me:$LINENO: checking for iconv" >&5
10763 echo $ECHO_N "checking for iconv... $ECHO_C" >&6
10764 if test "${am_cv_func_iconv+set}" = set; then
10765 echo $ECHO_N "(cached) $ECHO_C" >&6
10768 am_cv_func_iconv
="no, consider installing GNU libiconv"
10770 if test x
$gcc_no_link = xyes
; then
10771 { { echo "$as_me:$LINENO: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&5
10772 echo "$as_me: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&2;}
10773 { (exit 1); exit 1; }; }
10775 cat >conftest.
$ac_ext <<_ACEOF
10778 cat confdefs.h
>>conftest.
$ac_ext
10779 cat >>conftest.
$ac_ext <<_ACEOF
10780 /* end confdefs.h. */
10781 #include <stdlib.h>
10786 iconv_t cd = iconv_open("","");
10787 iconv(cd,NULL,NULL,NULL,NULL);
10793 rm -f conftest.
$ac_objext conftest
$ac_exeext
10794 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
10795 (eval $ac_link) 2>conftest.er1
10797 grep -v '^ *+' conftest.er1
>conftest.err
10799 cat conftest.err
>&5
10800 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10801 (exit $ac_status); } &&
10802 { ac_try
='test -z "$ac_c_werror_flag"
10803 || test ! -s conftest.err'
10804 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10805 (eval $ac_try) 2>&5
10807 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10808 (exit $ac_status); }; } &&
10809 { ac_try
='test -s conftest$ac_exeext'
10810 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10811 (eval $ac_try) 2>&5
10813 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10814 (exit $ac_status); }; }; then
10815 am_cv_func_iconv
=yes
10817 echo "$as_me: failed program was:" >&5
10818 sed 's/^/| /' conftest.
$ac_ext >&5
10821 rm -f conftest.err conftest.
$ac_objext \
10822 conftest
$ac_exeext conftest.
$ac_ext
10823 if test "$am_cv_func_iconv" != yes; then
10824 am_save_LIBS
="$LIBS"
10825 LIBS
="$LIBS $LIBICONV"
10826 if test x
$gcc_no_link = xyes
; then
10827 { { echo "$as_me:$LINENO: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&5
10828 echo "$as_me: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&2;}
10829 { (exit 1); exit 1; }; }
10831 cat >conftest.
$ac_ext <<_ACEOF
10834 cat confdefs.h
>>conftest.
$ac_ext
10835 cat >>conftest.
$ac_ext <<_ACEOF
10836 /* end confdefs.h. */
10837 #include <stdlib.h>
10842 iconv_t cd = iconv_open("","");
10843 iconv(cd,NULL,NULL,NULL,NULL);
10849 rm -f conftest.
$ac_objext conftest
$ac_exeext
10850 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
10851 (eval $ac_link) 2>conftest.er1
10853 grep -v '^ *+' conftest.er1
>conftest.err
10855 cat conftest.err
>&5
10856 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10857 (exit $ac_status); } &&
10858 { ac_try
='test -z "$ac_c_werror_flag"
10859 || test ! -s conftest.err'
10860 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10861 (eval $ac_try) 2>&5
10863 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10864 (exit $ac_status); }; } &&
10865 { ac_try
='test -s conftest$ac_exeext'
10866 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10867 (eval $ac_try) 2>&5
10869 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10870 (exit $ac_status); }; }; then
10871 am_cv_lib_iconv
=yes
10872 am_cv_func_iconv
=yes
10874 echo "$as_me: failed program was:" >&5
10875 sed 's/^/| /' conftest.
$ac_ext >&5
10878 rm -f conftest.err conftest.
$ac_objext \
10879 conftest
$ac_exeext conftest.
$ac_ext
10880 LIBS
="$am_save_LIBS"
10884 echo "$as_me:$LINENO: result: $am_cv_func_iconv" >&5
10885 echo "${ECHO_T}$am_cv_func_iconv" >&6
10886 if test "$am_cv_func_iconv" = yes; then
10888 cat >>confdefs.h
<<\_ACEOF
10889 #define HAVE_ICONV 1
10893 if test "$am_cv_lib_iconv" = yes; then
10894 echo "$as_me:$LINENO: checking how to link with libiconv" >&5
10895 echo $ECHO_N "checking how to link with libiconv... $ECHO_C" >&6
10896 echo "$as_me:$LINENO: result: $LIBICONV" >&5
10897 echo "${ECHO_T}$LIBICONV" >&6
10899 CPPFLAGS
="$am_save_CPPFLAGS"
10906 if test "$am_cv_func_iconv" = yes; then
10907 echo "$as_me:$LINENO: checking for iconv declaration" >&5
10908 echo $ECHO_N "checking for iconv declaration... $ECHO_C" >&6
10909 if test "${am_cv_proto_iconv+set}" = set; then
10910 echo $ECHO_N "(cached) $ECHO_C" >&6
10913 cat >conftest.
$ac_ext <<_ACEOF
10916 cat confdefs.h
>>conftest.
$ac_ext
10917 cat >>conftest.
$ac_ext <<_ACEOF
10918 /* end confdefs.h. */
10920 #include <stdlib.h>
10926 #if defined(__STDC__) || defined(__cplusplus)
10927 size_t iconv (iconv_t cd, char * *inbuf, size_t *inbytesleft, char * *outbuf, size_t *outbytesleft);
10940 rm -f conftest.
$ac_objext
10941 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
10942 (eval $ac_compile) 2>conftest.er1
10944 grep -v '^ *+' conftest.er1
>conftest.err
10946 cat conftest.err
>&5
10947 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10948 (exit $ac_status); } &&
10949 { ac_try
='test -z "$ac_c_werror_flag"
10950 || test ! -s conftest.err'
10951 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10952 (eval $ac_try) 2>&5
10954 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10955 (exit $ac_status); }; } &&
10956 { ac_try
='test -s conftest.$ac_objext'
10957 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10958 (eval $ac_try) 2>&5
10960 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10961 (exit $ac_status); }; }; then
10962 am_cv_proto_iconv_arg1
=""
10964 echo "$as_me: failed program was:" >&5
10965 sed 's/^/| /' conftest.
$ac_ext >&5
10967 am_cv_proto_iconv_arg1
="const"
10969 rm -f conftest.err conftest.
$ac_objext conftest.
$ac_ext
10970 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);"
10973 am_cv_proto_iconv
=`echo "$am_cv_proto_iconv" | tr -s ' ' | sed -e 's/( /(/'`
10974 echo "$as_me:$LINENO: result: ${ac_t:-
10975 }$am_cv_proto_iconv" >&5
10976 echo "${ECHO_T}${ac_t:-
10977 }$am_cv_proto_iconv" >&6
10979 cat >>confdefs.h
<<_ACEOF
10980 #define ICONV_CONST $am_cv_proto_iconv_arg1
10986 echo "$as_me:$LINENO: checking for LC_MESSAGES" >&5
10987 echo $ECHO_N "checking for LC_MESSAGES... $ECHO_C" >&6
10988 if test "${am_cv_val_LC_MESSAGES+set}" = set; then
10989 echo $ECHO_N "(cached) $ECHO_C" >&6
10991 if test x
$gcc_no_link = xyes
; then
10992 { { echo "$as_me:$LINENO: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&5
10993 echo "$as_me: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&2;}
10994 { (exit 1); exit 1; }; }
10996 cat >conftest.
$ac_ext <<_ACEOF
10999 cat confdefs.h
>>conftest.
$ac_ext
11000 cat >>conftest.
$ac_ext <<_ACEOF
11001 /* end confdefs.h. */
11002 #include <locale.h>
11011 rm -f conftest.
$ac_objext conftest
$ac_exeext
11012 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
11013 (eval $ac_link) 2>conftest.er1
11015 grep -v '^ *+' conftest.er1
>conftest.err
11017 cat conftest.err
>&5
11018 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11019 (exit $ac_status); } &&
11020 { ac_try
='test -z "$ac_c_werror_flag"
11021 || test ! -s conftest.err'
11022 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11023 (eval $ac_try) 2>&5
11025 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11026 (exit $ac_status); }; } &&
11027 { ac_try
='test -s conftest$ac_exeext'
11028 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11029 (eval $ac_try) 2>&5
11031 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11032 (exit $ac_status); }; }; then
11033 am_cv_val_LC_MESSAGES
=yes
11035 echo "$as_me: failed program was:" >&5
11036 sed 's/^/| /' conftest.
$ac_ext >&5
11038 am_cv_val_LC_MESSAGES
=no
11040 rm -f conftest.err conftest.
$ac_objext \
11041 conftest
$ac_exeext conftest.
$ac_ext
11043 echo "$as_me:$LINENO: result: $am_cv_val_LC_MESSAGES" >&5
11044 echo "${ECHO_T}$am_cv_val_LC_MESSAGES" >&6
11045 if test $am_cv_val_LC_MESSAGES = yes; then
11047 cat >>confdefs.h
<<\_ACEOF
11048 #define HAVE_LC_MESSAGES 1
11053 echo "$as_me:$LINENO: checking whether struct tm is in sys/time.h or time.h" >&5
11054 echo $ECHO_N "checking whether struct tm is in sys/time.h or time.h... $ECHO_C" >&6
11055 if test "${ac_cv_struct_tm+set}" = set; then
11056 echo $ECHO_N "(cached) $ECHO_C" >&6
11058 cat >conftest.
$ac_ext <<_ACEOF
11061 cat confdefs.h
>>conftest.
$ac_ext
11062 cat >>conftest.
$ac_ext <<_ACEOF
11063 /* end confdefs.h. */
11064 #include <sys/types.h>
11070 struct tm *tp; tp->tm_sec;
11075 rm -f conftest.
$ac_objext
11076 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
11077 (eval $ac_compile) 2>conftest.er1
11079 grep -v '^ *+' conftest.er1
>conftest.err
11081 cat conftest.err
>&5
11082 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11083 (exit $ac_status); } &&
11084 { ac_try
='test -z "$ac_c_werror_flag"
11085 || test ! -s conftest.err'
11086 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11087 (eval $ac_try) 2>&5
11089 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11090 (exit $ac_status); }; } &&
11091 { ac_try
='test -s conftest.$ac_objext'
11092 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11093 (eval $ac_try) 2>&5
11095 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11096 (exit $ac_status); }; }; then
11097 ac_cv_struct_tm
=time.h
11099 echo "$as_me: failed program was:" >&5
11100 sed 's/^/| /' conftest.
$ac_ext >&5
11102 ac_cv_struct_tm
=sys
/time.h
11104 rm -f conftest.err conftest.
$ac_objext conftest.
$ac_ext
11106 echo "$as_me:$LINENO: result: $ac_cv_struct_tm" >&5
11107 echo "${ECHO_T}$ac_cv_struct_tm" >&6
11108 if test $ac_cv_struct_tm = sys
/time.h
; then
11110 cat >>confdefs.h
<<\_ACEOF
11111 #define TM_IN_SYS_TIME 1
11116 echo "$as_me:$LINENO: checking for struct tm.tm_zone" >&5
11117 echo $ECHO_N "checking for struct tm.tm_zone... $ECHO_C" >&6
11118 if test "${ac_cv_member_struct_tm_tm_zone+set}" = set; then
11119 echo $ECHO_N "(cached) $ECHO_C" >&6
11121 cat >conftest.
$ac_ext <<_ACEOF
11124 cat confdefs.h
>>conftest.
$ac_ext
11125 cat >>conftest.
$ac_ext <<_ACEOF
11126 /* end confdefs.h. */
11127 #include <sys/types.h>
11128 #include <$ac_cv_struct_tm>
11134 static struct tm ac_aggr;
11135 if (ac_aggr.tm_zone)
11141 rm -f conftest.
$ac_objext
11142 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
11143 (eval $ac_compile) 2>conftest.er1
11145 grep -v '^ *+' conftest.er1
>conftest.err
11147 cat conftest.err
>&5
11148 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11149 (exit $ac_status); } &&
11150 { ac_try
='test -z "$ac_c_werror_flag"
11151 || test ! -s conftest.err'
11152 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11153 (eval $ac_try) 2>&5
11155 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11156 (exit $ac_status); }; } &&
11157 { ac_try
='test -s conftest.$ac_objext'
11158 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11159 (eval $ac_try) 2>&5
11161 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11162 (exit $ac_status); }; }; then
11163 ac_cv_member_struct_tm_tm_zone
=yes
11165 echo "$as_me: failed program was:" >&5
11166 sed 's/^/| /' conftest.
$ac_ext >&5
11168 cat >conftest.
$ac_ext <<_ACEOF
11171 cat confdefs.h
>>conftest.
$ac_ext
11172 cat >>conftest.
$ac_ext <<_ACEOF
11173 /* end confdefs.h. */
11174 #include <sys/types.h>
11175 #include <$ac_cv_struct_tm>
11181 static struct tm ac_aggr;
11182 if (sizeof ac_aggr.tm_zone)
11188 rm -f conftest.
$ac_objext
11189 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
11190 (eval $ac_compile) 2>conftest.er1
11192 grep -v '^ *+' conftest.er1
>conftest.err
11194 cat conftest.err
>&5
11195 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11196 (exit $ac_status); } &&
11197 { ac_try
='test -z "$ac_c_werror_flag"
11198 || test ! -s conftest.err'
11199 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11200 (eval $ac_try) 2>&5
11202 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11203 (exit $ac_status); }; } &&
11204 { ac_try
='test -s conftest.$ac_objext'
11205 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11206 (eval $ac_try) 2>&5
11208 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11209 (exit $ac_status); }; }; then
11210 ac_cv_member_struct_tm_tm_zone
=yes
11212 echo "$as_me: failed program was:" >&5
11213 sed 's/^/| /' conftest.
$ac_ext >&5
11215 ac_cv_member_struct_tm_tm_zone
=no
11217 rm -f conftest.err conftest.
$ac_objext conftest.
$ac_ext
11219 rm -f conftest.err conftest.
$ac_objext conftest.
$ac_ext
11221 echo "$as_me:$LINENO: result: $ac_cv_member_struct_tm_tm_zone" >&5
11222 echo "${ECHO_T}$ac_cv_member_struct_tm_tm_zone" >&6
11223 if test $ac_cv_member_struct_tm_tm_zone = yes; then
11225 cat >>confdefs.h
<<_ACEOF
11226 #define HAVE_STRUCT_TM_TM_ZONE 1
11232 if test "$ac_cv_member_struct_tm_tm_zone" = yes; then
11234 cat >>confdefs.h
<<\_ACEOF
11235 #define HAVE_TM_ZONE 1
11239 echo "$as_me:$LINENO: checking for tzname" >&5
11240 echo $ECHO_N "checking for tzname... $ECHO_C" >&6
11241 if test "${ac_cv_var_tzname+set}" = set; then
11242 echo $ECHO_N "(cached) $ECHO_C" >&6
11244 if test x
$gcc_no_link = xyes
; then
11245 { { echo "$as_me:$LINENO: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&5
11246 echo "$as_me: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&2;}
11247 { (exit 1); exit 1; }; }
11249 cat >conftest.
$ac_ext <<_ACEOF
11252 cat confdefs.h
>>conftest.
$ac_ext
11253 cat >>conftest.
$ac_ext <<_ACEOF
11254 /* end confdefs.h. */
11256 #ifndef tzname /* For SGI. */
11257 extern char *tzname[]; /* RS6000 and others reject char **tzname. */
11268 rm -f conftest.
$ac_objext conftest
$ac_exeext
11269 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
11270 (eval $ac_link) 2>conftest.er1
11272 grep -v '^ *+' conftest.er1
>conftest.err
11274 cat conftest.err
>&5
11275 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11276 (exit $ac_status); } &&
11277 { ac_try
='test -z "$ac_c_werror_flag"
11278 || test ! -s conftest.err'
11279 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11280 (eval $ac_try) 2>&5
11282 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11283 (exit $ac_status); }; } &&
11284 { ac_try
='test -s conftest$ac_exeext'
11285 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11286 (eval $ac_try) 2>&5
11288 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11289 (exit $ac_status); }; }; then
11290 ac_cv_var_tzname
=yes
11292 echo "$as_me: failed program was:" >&5
11293 sed 's/^/| /' conftest.
$ac_ext >&5
11295 ac_cv_var_tzname
=no
11297 rm -f conftest.err conftest.
$ac_objext \
11298 conftest
$ac_exeext conftest.
$ac_ext
11300 echo "$as_me:$LINENO: result: $ac_cv_var_tzname" >&5
11301 echo "${ECHO_T}$ac_cv_var_tzname" >&6
11302 if test $ac_cv_var_tzname = yes; then
11304 cat >>confdefs.h
<<\_ACEOF
11305 #define HAVE_TZNAME 1
11314 for ac_func
in gethostbyname_r
11316 as_ac_var
=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
11317 echo "$as_me:$LINENO: checking for $ac_func" >&5
11318 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
11319 if eval "test \"\${$as_ac_var+set}\" = set"; then
11320 echo $ECHO_N "(cached) $ECHO_C" >&6
11322 if test x
$gcc_no_link = xyes
; then
11323 { { echo "$as_me:$LINENO: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&5
11324 echo "$as_me: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&2;}
11325 { (exit 1); exit 1; }; }
11327 cat >conftest.
$ac_ext <<_ACEOF
11330 cat confdefs.h
>>conftest.
$ac_ext
11331 cat >>conftest.
$ac_ext <<_ACEOF
11332 /* end confdefs.h. */
11333 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
11334 For example, HP-UX 11i <limits.h> declares gettimeofday. */
11335 #define $ac_func innocuous_$ac_func
11337 /* System header to define __stub macros and hopefully few prototypes,
11338 which can conflict with char $ac_func (); below.
11339 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
11340 <limits.h> exists even on freestanding compilers. */
11343 # include <limits.h>
11345 # include <assert.h>
11350 /* Override any gcc2 internal prototype to avoid an error. */
11355 /* We use char because int might match the return type of a gcc2
11356 builtin and then its argument prototype would still apply. */
11358 /* The GNU C library defines this for functions which it implements
11359 to always fail with ENOSYS. Some functions are actually named
11360 something starting with __ and the normal name is an alias. */
11361 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
11364 char (*f) () = $ac_func;
11373 return f != $ac_func;
11378 rm -f conftest.
$ac_objext conftest
$ac_exeext
11379 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
11380 (eval $ac_link) 2>conftest.er1
11382 grep -v '^ *+' conftest.er1
>conftest.err
11384 cat conftest.err
>&5
11385 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11386 (exit $ac_status); } &&
11387 { ac_try
='test -z "$ac_c_werror_flag"
11388 || test ! -s conftest.err'
11389 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11390 (eval $ac_try) 2>&5
11392 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11393 (exit $ac_status); }; } &&
11394 { ac_try
='test -s conftest$ac_exeext'
11395 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11396 (eval $ac_try) 2>&5
11398 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11399 (exit $ac_status); }; }; then
11400 eval "$as_ac_var=yes"
11402 echo "$as_me: failed program was:" >&5
11403 sed 's/^/| /' conftest.
$ac_ext >&5
11405 eval "$as_ac_var=no"
11407 rm -f conftest.err conftest.
$ac_objext \
11408 conftest
$ac_exeext conftest.
$ac_ext
11410 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
11411 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
11412 if test `eval echo '${'$as_ac_var'}'` = yes; then
11413 cat >>confdefs.h
<<_ACEOF
11414 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
11418 cat >>confdefs.h
<<\_ACEOF
11419 #define HAVE_GETHOSTBYNAME_R 1
11422 # There are two different kinds of gethostbyname_r.
11423 # We look for the one that returns `int'.
11424 # Hopefully this check is robust enough.
11425 cat >conftest.
$ac_ext <<_ACEOF
11428 cat confdefs.h
>>conftest.
$ac_ext
11429 cat >>conftest.
$ac_ext <<_ACEOF
11430 /* end confdefs.h. */
11434 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
11435 $EGREP "int.*gethostbyname_r" >/dev
/null
2>&1; then
11438 cat >>confdefs.h
<<\_ACEOF
11439 #define GETHOSTBYNAME_R_RETURNS_INT 1
11446 case " $GCINCS " in
11447 *" -D_REENTRANT "*) ;;
11449 echo "$as_me:$LINENO: checking whether gethostbyname_r declaration requires -D_REENTRANT" >&5
11450 echo $ECHO_N "checking whether gethostbyname_r declaration requires -D_REENTRANT... $ECHO_C" >&6
11451 if test "${libjava_cv_gethostbyname_r_needs_reentrant+set}" = set; then
11452 echo $ECHO_N "(cached) $ECHO_C" >&6
11455 ac_cpp
='$CXXCPP $CPPFLAGS'
11456 ac_compile
='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
11457 ac_link
='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
11458 ac_compiler_gnu
=$ac_cv_cxx_compiler_gnu
11460 cat >conftest.
$ac_ext <<_ACEOF
11463 cat confdefs.h
>>conftest.
$ac_ext
11464 cat >>conftest.
$ac_ext <<_ACEOF
11465 /* end confdefs.h. */
11470 gethostbyname_r("", 0, 0);
11475 rm -f conftest.
$ac_objext
11476 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
11477 (eval $ac_compile) 2>conftest.er1
11479 grep -v '^ *+' conftest.er1
>conftest.err
11481 cat conftest.err
>&5
11482 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11483 (exit $ac_status); } &&
11484 { ac_try
='test -z "$ac_cxx_werror_flag"
11485 || test ! -s conftest.err'
11486 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11487 (eval $ac_try) 2>&5
11489 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11490 (exit $ac_status); }; } &&
11491 { ac_try
='test -s conftest.$ac_objext'
11492 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11493 (eval $ac_try) 2>&5
11495 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11496 (exit $ac_status); }; }; then
11497 libjava_cv_gethostbyname_r_needs_reentrant
=no
11499 echo "$as_me: failed program was:" >&5
11500 sed 's/^/| /' conftest.
$ac_ext >&5
11502 CPPFLAGS_SAVE
="$CPPFLAGS"
11503 CPPFLAGS
="$CPPFLAGS -D_REENTRANT"
11504 cat >conftest.
$ac_ext <<_ACEOF
11507 cat confdefs.h
>>conftest.
$ac_ext
11508 cat >>conftest.
$ac_ext <<_ACEOF
11509 /* end confdefs.h. */
11514 gethostbyname_r("", 0, 0);
11519 rm -f conftest.
$ac_objext
11520 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
11521 (eval $ac_compile) 2>conftest.er1
11523 grep -v '^ *+' conftest.er1
>conftest.err
11525 cat conftest.err
>&5
11526 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11527 (exit $ac_status); } &&
11528 { ac_try
='test -z "$ac_cxx_werror_flag"
11529 || test ! -s conftest.err'
11530 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11531 (eval $ac_try) 2>&5
11533 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11534 (exit $ac_status); }; } &&
11535 { ac_try
='test -s conftest.$ac_objext'
11536 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11537 (eval $ac_try) 2>&5
11539 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11540 (exit $ac_status); }; }; then
11541 libjava_cv_gethostbyname_r_needs_reentrant
=yes
11543 echo "$as_me: failed program was:" >&5
11544 sed 's/^/| /' conftest.
$ac_ext >&5
11546 libjava_cv_gethostbyname_r_needs_reentrant
=fail
11548 rm -f conftest.err conftest.
$ac_objext conftest.
$ac_ext
11549 CPPFLAGS
="$CPPFLAGS_SAVE"
11552 rm -f conftest.err conftest.
$ac_objext conftest.
$ac_ext
11554 ac_cpp
='$CPP $CPPFLAGS'
11555 ac_compile
='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
11556 ac_link
='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
11557 ac_compiler_gnu
=$ac_cv_c_compiler_gnu
11561 echo "$as_me:$LINENO: result: $libjava_cv_gethostbyname_r_needs_reentrant" >&5
11562 echo "${ECHO_T}$libjava_cv_gethostbyname_r_needs_reentrant" >&6
11563 if test "x$libjava_cv_gethostbyname_r_needs_reentrant" = xyes
; then
11565 cat >>confdefs.h
<<\_ACEOF
11566 #define _REENTRANT 1
11573 echo "$as_me:$LINENO: checking for struct hostent_data" >&5
11574 echo $ECHO_N "checking for struct hostent_data... $ECHO_C" >&6
11575 if test "${libjava_cv_struct_hostent_data+set}" = set; then
11576 echo $ECHO_N "(cached) $ECHO_C" >&6
11578 cat >conftest.
$ac_ext <<_ACEOF
11581 cat confdefs.h
>>conftest.
$ac_ext
11582 cat >>conftest.
$ac_ext <<_ACEOF
11583 /* end confdefs.h. */
11585 #if GETHOSTBYNAME_R_NEEDS_REENTRANT && !defined(_REENTRANT)
11586 # define _REENTRANT 1
11592 struct hostent_data data;
11597 rm -f conftest.
$ac_objext
11598 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
11599 (eval $ac_compile) 2>conftest.er1
11601 grep -v '^ *+' conftest.er1
>conftest.err
11603 cat conftest.err
>&5
11604 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11605 (exit $ac_status); } &&
11606 { ac_try
='test -z "$ac_c_werror_flag"
11607 || test ! -s conftest.err'
11608 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11609 (eval $ac_try) 2>&5
11611 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11612 (exit $ac_status); }; } &&
11613 { ac_try
='test -s conftest.$ac_objext'
11614 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11615 (eval $ac_try) 2>&5
11617 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11618 (exit $ac_status); }; }; then
11619 libjava_cv_struct_hostent_data
=yes
11621 echo "$as_me: failed program was:" >&5
11622 sed 's/^/| /' conftest.
$ac_ext >&5
11624 libjava_cv_struct_hostent_data
=no
11626 rm -f conftest.err conftest.
$ac_objext conftest.
$ac_ext
11628 echo "$as_me:$LINENO: result: $libjava_cv_struct_hostent_data" >&5
11629 echo "${ECHO_T}$libjava_cv_struct_hostent_data" >&6
11630 if test "x$libjava_cv_struct_hostent_data" = xyes
; then
11632 cat >>confdefs.h
<<\_ACEOF
11633 #define HAVE_STRUCT_HOSTENT_DATA 1
11642 # FIXME: libjava source code expects to find a prototype for
11643 # gethostbyaddr_r in netdb.h. The outer check ensures that
11644 # HAVE_GETHOSTBYADDR_R will not be defined if the prototype fails
11645 # to exist where expected. (The root issue: AC_CHECK_FUNCS assumes C
11646 # linkage check is enough, yet C++ code requires proper prototypes.)
11647 cat >conftest.
$ac_ext <<_ACEOF
11650 cat confdefs.h
>>conftest.
$ac_ext
11651 cat >>conftest.
$ac_ext <<_ACEOF
11652 /* end confdefs.h. */
11656 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
11657 $EGREP "gethostbyaddr_r" >/dev
/null
2>&1; then
11660 for ac_func
in gethostbyaddr_r
11662 as_ac_var
=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
11663 echo "$as_me:$LINENO: checking for $ac_func" >&5
11664 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
11665 if eval "test \"\${$as_ac_var+set}\" = set"; then
11666 echo $ECHO_N "(cached) $ECHO_C" >&6
11668 if test x
$gcc_no_link = xyes
; then
11669 { { echo "$as_me:$LINENO: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&5
11670 echo "$as_me: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&2;}
11671 { (exit 1); exit 1; }; }
11673 cat >conftest.
$ac_ext <<_ACEOF
11676 cat confdefs.h
>>conftest.
$ac_ext
11677 cat >>conftest.
$ac_ext <<_ACEOF
11678 /* end confdefs.h. */
11679 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
11680 For example, HP-UX 11i <limits.h> declares gettimeofday. */
11681 #define $ac_func innocuous_$ac_func
11683 /* System header to define __stub macros and hopefully few prototypes,
11684 which can conflict with char $ac_func (); below.
11685 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
11686 <limits.h> exists even on freestanding compilers. */
11689 # include <limits.h>
11691 # include <assert.h>
11696 /* Override any gcc2 internal prototype to avoid an error. */
11701 /* We use char because int might match the return type of a gcc2
11702 builtin and then its argument prototype would still apply. */
11704 /* The GNU C library defines this for functions which it implements
11705 to always fail with ENOSYS. Some functions are actually named
11706 something starting with __ and the normal name is an alias. */
11707 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
11710 char (*f) () = $ac_func;
11719 return f != $ac_func;
11724 rm -f conftest.
$ac_objext conftest
$ac_exeext
11725 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
11726 (eval $ac_link) 2>conftest.er1
11728 grep -v '^ *+' conftest.er1
>conftest.err
11730 cat conftest.err
>&5
11731 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11732 (exit $ac_status); } &&
11733 { ac_try
='test -z "$ac_c_werror_flag"
11734 || test ! -s conftest.err'
11735 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11736 (eval $ac_try) 2>&5
11738 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11739 (exit $ac_status); }; } &&
11740 { ac_try
='test -s conftest$ac_exeext'
11741 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11742 (eval $ac_try) 2>&5
11744 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11745 (exit $ac_status); }; }; then
11746 eval "$as_ac_var=yes"
11748 echo "$as_me: failed program was:" >&5
11749 sed 's/^/| /' conftest.
$ac_ext >&5
11751 eval "$as_ac_var=no"
11753 rm -f conftest.err conftest.
$ac_objext \
11754 conftest
$ac_exeext conftest.
$ac_ext
11756 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
11757 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
11758 if test `eval echo '${'$as_ac_var'}'` = yes; then
11759 cat >>confdefs.h
<<_ACEOF
11760 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
11764 cat >>confdefs.h
<<\_ACEOF
11765 #define HAVE_GETHOSTBYADDR_R 1
11768 # There are two different kinds of gethostbyaddr_r.
11769 # We look for the one that returns `int'.
11770 # Hopefully this check is robust enough.
11771 cat >conftest.
$ac_ext <<_ACEOF
11774 cat confdefs.h
>>conftest.
$ac_ext
11775 cat >>conftest.
$ac_ext <<_ACEOF
11776 /* end confdefs.h. */
11780 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
11781 $EGREP "int.*gethostbyaddr_r" >/dev
/null
2>&1; then
11784 cat >>confdefs.h
<<\_ACEOF
11785 #define GETHOSTBYADDR_R_RETURNS_INT 1
11799 for ac_func
in gethostname
11801 as_ac_var
=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
11802 echo "$as_me:$LINENO: checking for $ac_func" >&5
11803 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
11804 if eval "test \"\${$as_ac_var+set}\" = set"; then
11805 echo $ECHO_N "(cached) $ECHO_C" >&6
11807 if test x
$gcc_no_link = xyes
; then
11808 { { echo "$as_me:$LINENO: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&5
11809 echo "$as_me: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&2;}
11810 { (exit 1); exit 1; }; }
11812 cat >conftest.
$ac_ext <<_ACEOF
11815 cat confdefs.h
>>conftest.
$ac_ext
11816 cat >>conftest.
$ac_ext <<_ACEOF
11817 /* end confdefs.h. */
11818 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
11819 For example, HP-UX 11i <limits.h> declares gettimeofday. */
11820 #define $ac_func innocuous_$ac_func
11822 /* System header to define __stub macros and hopefully few prototypes,
11823 which can conflict with char $ac_func (); below.
11824 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
11825 <limits.h> exists even on freestanding compilers. */
11828 # include <limits.h>
11830 # include <assert.h>
11835 /* Override any gcc2 internal prototype to avoid an error. */
11840 /* We use char because int might match the return type of a gcc2
11841 builtin and then its argument prototype would still apply. */
11843 /* The GNU C library defines this for functions which it implements
11844 to always fail with ENOSYS. Some functions are actually named
11845 something starting with __ and the normal name is an alias. */
11846 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
11849 char (*f) () = $ac_func;
11858 return f != $ac_func;
11863 rm -f conftest.
$ac_objext conftest
$ac_exeext
11864 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
11865 (eval $ac_link) 2>conftest.er1
11867 grep -v '^ *+' conftest.er1
>conftest.err
11869 cat conftest.err
>&5
11870 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11871 (exit $ac_status); } &&
11872 { ac_try
='test -z "$ac_c_werror_flag"
11873 || test ! -s conftest.err'
11874 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11875 (eval $ac_try) 2>&5
11877 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11878 (exit $ac_status); }; } &&
11879 { ac_try
='test -s conftest$ac_exeext'
11880 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11881 (eval $ac_try) 2>&5
11883 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11884 (exit $ac_status); }; }; then
11885 eval "$as_ac_var=yes"
11887 echo "$as_me: failed program was:" >&5
11888 sed 's/^/| /' conftest.
$ac_ext >&5
11890 eval "$as_ac_var=no"
11892 rm -f conftest.err conftest.
$ac_objext \
11893 conftest
$ac_exeext conftest.
$ac_ext
11895 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
11896 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
11897 if test `eval echo '${'$as_ac_var'}'` = yes; then
11898 cat >>confdefs.h
<<_ACEOF
11899 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
11903 cat >>confdefs.h
<<\_ACEOF
11904 #define HAVE_GETHOSTNAME 1
11907 cat >conftest.
$ac_ext <<_ACEOF
11910 cat confdefs.h
>>conftest.
$ac_ext
11911 cat >>conftest.
$ac_ext <<_ACEOF
11912 /* end confdefs.h. */
11913 #include <unistd.h>
11916 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
11917 $EGREP "gethostname" >/dev
/null
2>&1; then
11920 cat >>confdefs.h
<<\_ACEOF
11921 #define HAVE_GETHOSTNAME_DECL 1
11932 for ac_func
in usleep
11934 as_ac_var
=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
11935 echo "$as_me:$LINENO: checking for $ac_func" >&5
11936 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
11937 if eval "test \"\${$as_ac_var+set}\" = set"; then
11938 echo $ECHO_N "(cached) $ECHO_C" >&6
11940 if test x
$gcc_no_link = xyes
; then
11941 { { echo "$as_me:$LINENO: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&5
11942 echo "$as_me: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&2;}
11943 { (exit 1); exit 1; }; }
11945 cat >conftest.
$ac_ext <<_ACEOF
11948 cat confdefs.h
>>conftest.
$ac_ext
11949 cat >>conftest.
$ac_ext <<_ACEOF
11950 /* end confdefs.h. */
11951 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
11952 For example, HP-UX 11i <limits.h> declares gettimeofday. */
11953 #define $ac_func innocuous_$ac_func
11955 /* System header to define __stub macros and hopefully few prototypes,
11956 which can conflict with char $ac_func (); below.
11957 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
11958 <limits.h> exists even on freestanding compilers. */
11961 # include <limits.h>
11963 # include <assert.h>
11968 /* Override any gcc2 internal prototype to avoid an error. */
11973 /* We use char because int might match the return type of a gcc2
11974 builtin and then its argument prototype would still apply. */
11976 /* The GNU C library defines this for functions which it implements
11977 to always fail with ENOSYS. Some functions are actually named
11978 something starting with __ and the normal name is an alias. */
11979 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
11982 char (*f) () = $ac_func;
11991 return f != $ac_func;
11996 rm -f conftest.
$ac_objext conftest
$ac_exeext
11997 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
11998 (eval $ac_link) 2>conftest.er1
12000 grep -v '^ *+' conftest.er1
>conftest.err
12002 cat conftest.err
>&5
12003 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12004 (exit $ac_status); } &&
12005 { ac_try
='test -z "$ac_c_werror_flag"
12006 || test ! -s conftest.err'
12007 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12008 (eval $ac_try) 2>&5
12010 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12011 (exit $ac_status); }; } &&
12012 { ac_try
='test -s conftest$ac_exeext'
12013 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12014 (eval $ac_try) 2>&5
12016 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12017 (exit $ac_status); }; }; then
12018 eval "$as_ac_var=yes"
12020 echo "$as_me: failed program was:" >&5
12021 sed 's/^/| /' conftest.
$ac_ext >&5
12023 eval "$as_ac_var=no"
12025 rm -f conftest.err conftest.
$ac_objext \
12026 conftest
$ac_exeext conftest.
$ac_ext
12028 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
12029 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
12030 if test `eval echo '${'$as_ac_var'}'` = yes; then
12031 cat >>confdefs.h
<<_ACEOF
12032 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
12035 cat >conftest.
$ac_ext <<_ACEOF
12038 cat confdefs.h
>>conftest.
$ac_ext
12039 cat >>conftest.
$ac_ext <<_ACEOF
12040 /* end confdefs.h. */
12041 #include <unistd.h>
12044 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
12045 $EGREP "usleep" >/dev
/null
2>&1; then
12048 cat >>confdefs.h
<<\_ACEOF
12049 #define HAVE_USLEEP_DECL 1
12059 # Look for these functions in the thread library, but only bother
12060 # if using POSIX threads.
12061 if test "$THREADS" = posix
; then
12063 LIBS
="$LIBS $THREADLIBS"
12064 # Some POSIX thread systems don't have pthread_mutexattr_settype.
12068 for ac_func
in pthread_mutexattr_settype pthread_mutexattr_setkind_np
12070 as_ac_var
=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
12071 echo "$as_me:$LINENO: checking for $ac_func" >&5
12072 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
12073 if eval "test \"\${$as_ac_var+set}\" = set"; then
12074 echo $ECHO_N "(cached) $ECHO_C" >&6
12076 if test x
$gcc_no_link = xyes
; then
12077 { { echo "$as_me:$LINENO: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&5
12078 echo "$as_me: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&2;}
12079 { (exit 1); exit 1; }; }
12081 cat >conftest.
$ac_ext <<_ACEOF
12084 cat confdefs.h
>>conftest.
$ac_ext
12085 cat >>conftest.
$ac_ext <<_ACEOF
12086 /* end confdefs.h. */
12087 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
12088 For example, HP-UX 11i <limits.h> declares gettimeofday. */
12089 #define $ac_func innocuous_$ac_func
12091 /* System header to define __stub macros and hopefully few prototypes,
12092 which can conflict with char $ac_func (); below.
12093 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
12094 <limits.h> exists even on freestanding compilers. */
12097 # include <limits.h>
12099 # include <assert.h>
12104 /* Override any gcc2 internal prototype to avoid an error. */
12109 /* We use char because int might match the return type of a gcc2
12110 builtin and then its argument prototype would still apply. */
12112 /* The GNU C library defines this for functions which it implements
12113 to always fail with ENOSYS. Some functions are actually named
12114 something starting with __ and the normal name is an alias. */
12115 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
12118 char (*f) () = $ac_func;
12127 return f != $ac_func;
12132 rm -f conftest.
$ac_objext conftest
$ac_exeext
12133 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
12134 (eval $ac_link) 2>conftest.er1
12136 grep -v '^ *+' conftest.er1
>conftest.err
12138 cat conftest.err
>&5
12139 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12140 (exit $ac_status); } &&
12141 { ac_try
='test -z "$ac_c_werror_flag"
12142 || test ! -s conftest.err'
12143 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12144 (eval $ac_try) 2>&5
12146 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12147 (exit $ac_status); }; } &&
12148 { ac_try
='test -s conftest$ac_exeext'
12149 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12150 (eval $ac_try) 2>&5
12152 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12153 (exit $ac_status); }; }; then
12154 eval "$as_ac_var=yes"
12156 echo "$as_me: failed program was:" >&5
12157 sed 's/^/| /' conftest.
$ac_ext >&5
12159 eval "$as_ac_var=no"
12161 rm -f conftest.err conftest.
$ac_objext \
12162 conftest
$ac_exeext conftest.
$ac_ext
12164 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
12165 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
12166 if test `eval echo '${'$as_ac_var'}'` = yes; then
12167 cat >>confdefs.h
<<_ACEOF
12168 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
12175 # Look for sched_yield. Up to Solaris 2.6, it is in libposix4, since
12176 # Solaris 7 the name librt is preferred.
12178 for ac_func
in sched_yield
12180 as_ac_var
=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
12181 echo "$as_me:$LINENO: checking for $ac_func" >&5
12182 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
12183 if eval "test \"\${$as_ac_var+set}\" = set"; then
12184 echo $ECHO_N "(cached) $ECHO_C" >&6
12186 if test x
$gcc_no_link = xyes
; then
12187 { { echo "$as_me:$LINENO: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&5
12188 echo "$as_me: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&2;}
12189 { (exit 1); exit 1; }; }
12191 cat >conftest.
$ac_ext <<_ACEOF
12194 cat confdefs.h
>>conftest.
$ac_ext
12195 cat >>conftest.
$ac_ext <<_ACEOF
12196 /* end confdefs.h. */
12197 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
12198 For example, HP-UX 11i <limits.h> declares gettimeofday. */
12199 #define $ac_func innocuous_$ac_func
12201 /* System header to define __stub macros and hopefully few prototypes,
12202 which can conflict with char $ac_func (); below.
12203 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
12204 <limits.h> exists even on freestanding compilers. */
12207 # include <limits.h>
12209 # include <assert.h>
12214 /* Override any gcc2 internal prototype to avoid an error. */
12219 /* We use char because int might match the return type of a gcc2
12220 builtin and then its argument prototype would still apply. */
12222 /* The GNU C library defines this for functions which it implements
12223 to always fail with ENOSYS. Some functions are actually named
12224 something starting with __ and the normal name is an alias. */
12225 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
12228 char (*f) () = $ac_func;
12237 return f != $ac_func;
12242 rm -f conftest.
$ac_objext conftest
$ac_exeext
12243 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
12244 (eval $ac_link) 2>conftest.er1
12246 grep -v '^ *+' conftest.er1
>conftest.err
12248 cat conftest.err
>&5
12249 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12250 (exit $ac_status); } &&
12251 { ac_try
='test -z "$ac_c_werror_flag"
12252 || test ! -s conftest.err'
12253 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12254 (eval $ac_try) 2>&5
12256 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12257 (exit $ac_status); }; } &&
12258 { ac_try
='test -s conftest$ac_exeext'
12259 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12260 (eval $ac_try) 2>&5
12262 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12263 (exit $ac_status); }; }; then
12264 eval "$as_ac_var=yes"
12266 echo "$as_me: failed program was:" >&5
12267 sed 's/^/| /' conftest.
$ac_ext >&5
12269 eval "$as_ac_var=no"
12271 rm -f conftest.err conftest.
$ac_objext \
12272 conftest
$ac_exeext conftest.
$ac_ext
12274 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
12275 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
12276 if test `eval echo '${'$as_ac_var'}'` = yes; then
12277 cat >>confdefs.h
<<_ACEOF
12278 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
12283 echo "$as_me:$LINENO: checking for sched_yield in -lrt" >&5
12284 echo $ECHO_N "checking for sched_yield in -lrt... $ECHO_C" >&6
12285 if test "${ac_cv_lib_rt_sched_yield+set}" = set; then
12286 echo $ECHO_N "(cached) $ECHO_C" >&6
12288 ac_check_lib_save_LIBS
=$LIBS
12290 if test x
$gcc_no_link = xyes
; then
12291 { { echo "$as_me:$LINENO: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&5
12292 echo "$as_me: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&2;}
12293 { (exit 1); exit 1; }; }
12295 cat >conftest.
$ac_ext <<_ACEOF
12298 cat confdefs.h
>>conftest.
$ac_ext
12299 cat >>conftest.
$ac_ext <<_ACEOF
12300 /* end confdefs.h. */
12302 /* Override any gcc2 internal prototype to avoid an error. */
12306 /* We use char because int might match the return type of a gcc2
12307 builtin and then its argument prototype would still apply. */
12308 char sched_yield ();
12317 rm -f conftest.
$ac_objext conftest
$ac_exeext
12318 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
12319 (eval $ac_link) 2>conftest.er1
12321 grep -v '^ *+' conftest.er1
>conftest.err
12323 cat conftest.err
>&5
12324 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12325 (exit $ac_status); } &&
12326 { ac_try
='test -z "$ac_c_werror_flag"
12327 || test ! -s conftest.err'
12328 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12329 (eval $ac_try) 2>&5
12331 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12332 (exit $ac_status); }; } &&
12333 { ac_try
='test -s conftest$ac_exeext'
12334 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12335 (eval $ac_try) 2>&5
12337 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12338 (exit $ac_status); }; }; then
12339 ac_cv_lib_rt_sched_yield
=yes
12341 echo "$as_me: failed program was:" >&5
12342 sed 's/^/| /' conftest.
$ac_ext >&5
12344 ac_cv_lib_rt_sched_yield
=no
12346 rm -f conftest.err conftest.
$ac_objext \
12347 conftest
$ac_exeext conftest.
$ac_ext
12348 LIBS
=$ac_check_lib_save_LIBS
12350 echo "$as_me:$LINENO: result: $ac_cv_lib_rt_sched_yield" >&5
12351 echo "${ECHO_T}$ac_cv_lib_rt_sched_yield" >&6
12352 if test $ac_cv_lib_rt_sched_yield = yes; then
12354 cat >>confdefs.h
<<\_ACEOF
12355 #define HAVE_SCHED_YIELD 1
12358 THREADLIBS
="$THREADLIBS -lrt"
12359 THREADSPEC
="$THREADSPEC -lrt"
12362 echo "$as_me:$LINENO: checking for sched_yield in -lposix4" >&5
12363 echo $ECHO_N "checking for sched_yield in -lposix4... $ECHO_C" >&6
12364 if test "${ac_cv_lib_posix4_sched_yield+set}" = set; then
12365 echo $ECHO_N "(cached) $ECHO_C" >&6
12367 ac_check_lib_save_LIBS
=$LIBS
12368 LIBS
="-lposix4 $LIBS"
12369 if test x
$gcc_no_link = xyes
; then
12370 { { echo "$as_me:$LINENO: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&5
12371 echo "$as_me: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&2;}
12372 { (exit 1); exit 1; }; }
12374 cat >conftest.
$ac_ext <<_ACEOF
12377 cat confdefs.h
>>conftest.
$ac_ext
12378 cat >>conftest.
$ac_ext <<_ACEOF
12379 /* end confdefs.h. */
12381 /* Override any gcc2 internal prototype to avoid an error. */
12385 /* We use char because int might match the return type of a gcc2
12386 builtin and then its argument prototype would still apply. */
12387 char sched_yield ();
12396 rm -f conftest.
$ac_objext conftest
$ac_exeext
12397 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
12398 (eval $ac_link) 2>conftest.er1
12400 grep -v '^ *+' conftest.er1
>conftest.err
12402 cat conftest.err
>&5
12403 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12404 (exit $ac_status); } &&
12405 { ac_try
='test -z "$ac_c_werror_flag"
12406 || test ! -s conftest.err'
12407 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12408 (eval $ac_try) 2>&5
12410 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12411 (exit $ac_status); }; } &&
12412 { ac_try
='test -s conftest$ac_exeext'
12413 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12414 (eval $ac_try) 2>&5
12416 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12417 (exit $ac_status); }; }; then
12418 ac_cv_lib_posix4_sched_yield
=yes
12420 echo "$as_me: failed program was:" >&5
12421 sed 's/^/| /' conftest.
$ac_ext >&5
12423 ac_cv_lib_posix4_sched_yield
=no
12425 rm -f conftest.err conftest.
$ac_objext \
12426 conftest
$ac_exeext conftest.
$ac_ext
12427 LIBS
=$ac_check_lib_save_LIBS
12429 echo "$as_me:$LINENO: result: $ac_cv_lib_posix4_sched_yield" >&5
12430 echo "${ECHO_T}$ac_cv_lib_posix4_sched_yield" >&6
12431 if test $ac_cv_lib_posix4_sched_yield = yes; then
12433 cat >>confdefs.h
<<\_ACEOF
12434 #define HAVE_SCHED_YIELD 1
12437 THREADLIBS
="$THREADLIBS -lposix4"
12438 THREADSPEC
="$THREADSPEC -lposix4"
12447 echo "$as_me:$LINENO: checking for clock_gettime in -lrt" >&5
12448 echo $ECHO_N "checking for clock_gettime in -lrt... $ECHO_C" >&6
12449 if test "${ac_cv_lib_rt_clock_gettime+set}" = set; then
12450 echo $ECHO_N "(cached) $ECHO_C" >&6
12452 ac_check_lib_save_LIBS
=$LIBS
12454 if test x
$gcc_no_link = xyes
; then
12455 { { echo "$as_me:$LINENO: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&5
12456 echo "$as_me: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&2;}
12457 { (exit 1); exit 1; }; }
12459 cat >conftest.
$ac_ext <<_ACEOF
12462 cat confdefs.h
>>conftest.
$ac_ext
12463 cat >>conftest.
$ac_ext <<_ACEOF
12464 /* end confdefs.h. */
12466 /* Override any gcc2 internal prototype to avoid an error. */
12470 /* We use char because int might match the return type of a gcc2
12471 builtin and then its argument prototype would still apply. */
12472 char clock_gettime ();
12481 rm -f conftest.
$ac_objext conftest
$ac_exeext
12482 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
12483 (eval $ac_link) 2>conftest.er1
12485 grep -v '^ *+' conftest.er1
>conftest.err
12487 cat conftest.err
>&5
12488 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12489 (exit $ac_status); } &&
12490 { ac_try
='test -z "$ac_c_werror_flag"
12491 || test ! -s conftest.err'
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); }; } &&
12497 { ac_try
='test -s conftest$ac_exeext'
12498 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12499 (eval $ac_try) 2>&5
12501 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12502 (exit $ac_status); }; }; then
12503 ac_cv_lib_rt_clock_gettime
=yes
12505 echo "$as_me: failed program was:" >&5
12506 sed 's/^/| /' conftest.
$ac_ext >&5
12508 ac_cv_lib_rt_clock_gettime
=no
12510 rm -f conftest.err conftest.
$ac_objext \
12511 conftest
$ac_exeext conftest.
$ac_ext
12512 LIBS
=$ac_check_lib_save_LIBS
12514 echo "$as_me:$LINENO: result: $ac_cv_lib_rt_clock_gettime" >&5
12515 echo "${ECHO_T}$ac_cv_lib_rt_clock_gettime" >&6
12516 if test $ac_cv_lib_rt_clock_gettime = yes; then
12519 cat >>confdefs.h
<<\_ACEOF
12520 #define HAVE_CLOCK_GETTIME 1
12523 case "$THREADSPEC" in
12526 THREADSPEC
="$THREADSPEC -lrt"
12527 THREADLIBS
="$THREADLIBS -lrt"
12535 # We can save a little space at runtime if the mutex has m_count
12536 # or __m_count. This is a nice hack for Linux.
12537 cat >conftest.
$ac_ext <<_ACEOF
12540 cat confdefs.h
>>conftest.
$ac_ext
12541 cat >>conftest.
$ac_ext <<_ACEOF
12542 /* end confdefs.h. */
12543 #include <pthread.h>
12548 extern pthread_mutex_t *mutex; int q = mutex->m_count;
12554 rm -f conftest.
$ac_objext
12555 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
12556 (eval $ac_compile) 2>conftest.er1
12558 grep -v '^ *+' conftest.er1
>conftest.err
12560 cat conftest.err
>&5
12561 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12562 (exit $ac_status); } &&
12563 { ac_try
='test -z "$ac_c_werror_flag"
12564 || test ! -s conftest.err'
12565 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12566 (eval $ac_try) 2>&5
12568 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12569 (exit $ac_status); }; } &&
12570 { ac_try
='test -s conftest.$ac_objext'
12571 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12572 (eval $ac_try) 2>&5
12574 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12575 (exit $ac_status); }; }; then
12577 cat >>confdefs.h
<<\_ACEOF
12578 #define PTHREAD_MUTEX_HAVE_M_COUNT 1
12582 echo "$as_me: failed program was:" >&5
12583 sed 's/^/| /' conftest.
$ac_ext >&5
12586 cat >conftest.
$ac_ext <<_ACEOF
12589 cat confdefs.h
>>conftest.
$ac_ext
12590 cat >>conftest.
$ac_ext <<_ACEOF
12591 /* end confdefs.h. */
12592 #include <pthread.h>
12597 extern pthread_mutex_t *mutex; int q = mutex->__m_count;
12603 rm -f conftest.
$ac_objext
12604 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
12605 (eval $ac_compile) 2>conftest.er1
12607 grep -v '^ *+' conftest.er1
>conftest.err
12609 cat conftest.err
>&5
12610 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12611 (exit $ac_status); } &&
12612 { ac_try
='test -z "$ac_c_werror_flag"
12613 || test ! -s conftest.err'
12614 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12615 (eval $ac_try) 2>&5
12617 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12618 (exit $ac_status); }; } &&
12619 { ac_try
='test -s conftest.$ac_objext'
12620 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12621 (eval $ac_try) 2>&5
12623 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12624 (exit $ac_status); }; }; then
12626 cat >>confdefs.h
<<\_ACEOF
12627 #define PTHREAD_MUTEX_HAVE___M_COUNT 1
12631 echo "$as_me: failed program was:" >&5
12632 sed 's/^/| /' conftest.
$ac_ext >&5
12635 rm -f conftest.err conftest.
$ac_objext conftest.
$ac_ext
12637 rm -f conftest.err conftest.
$ac_objext conftest.
$ac_ext
12640 # We require a way to get the time.
12645 for ac_func
in gettimeofday
time ftime
12647 as_ac_var
=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
12648 echo "$as_me:$LINENO: checking for $ac_func" >&5
12649 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
12650 if eval "test \"\${$as_ac_var+set}\" = set"; then
12651 echo $ECHO_N "(cached) $ECHO_C" >&6
12653 if test x
$gcc_no_link = xyes
; then
12654 { { echo "$as_me:$LINENO: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&5
12655 echo "$as_me: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&2;}
12656 { (exit 1); exit 1; }; }
12658 cat >conftest.
$ac_ext <<_ACEOF
12661 cat confdefs.h
>>conftest.
$ac_ext
12662 cat >>conftest.
$ac_ext <<_ACEOF
12663 /* end confdefs.h. */
12664 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
12665 For example, HP-UX 11i <limits.h> declares gettimeofday. */
12666 #define $ac_func innocuous_$ac_func
12668 /* System header to define __stub macros and hopefully few prototypes,
12669 which can conflict with char $ac_func (); below.
12670 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
12671 <limits.h> exists even on freestanding compilers. */
12674 # include <limits.h>
12676 # include <assert.h>
12681 /* Override any gcc2 internal prototype to avoid an error. */
12686 /* We use char because int might match the return type of a gcc2
12687 builtin and then its argument prototype would still apply. */
12689 /* The GNU C library defines this for functions which it implements
12690 to always fail with ENOSYS. Some functions are actually named
12691 something starting with __ and the normal name is an alias. */
12692 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
12695 char (*f) () = $ac_func;
12704 return f != $ac_func;
12709 rm -f conftest.
$ac_objext conftest
$ac_exeext
12710 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
12711 (eval $ac_link) 2>conftest.er1
12713 grep -v '^ *+' conftest.er1
>conftest.err
12715 cat conftest.err
>&5
12716 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12717 (exit $ac_status); } &&
12718 { ac_try
='test -z "$ac_c_werror_flag"
12719 || test ! -s conftest.err'
12720 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12721 (eval $ac_try) 2>&5
12723 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12724 (exit $ac_status); }; } &&
12725 { ac_try
='test -s conftest$ac_exeext'
12726 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12727 (eval $ac_try) 2>&5
12729 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12730 (exit $ac_status); }; }; then
12731 eval "$as_ac_var=yes"
12733 echo "$as_me: failed program was:" >&5
12734 sed 's/^/| /' conftest.
$ac_ext >&5
12736 eval "$as_ac_var=no"
12738 rm -f conftest.err conftest.
$ac_objext \
12739 conftest
$ac_exeext conftest.
$ac_ext
12741 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
12742 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
12743 if test `eval echo '${'$as_ac_var'}'` = yes; then
12744 cat >>confdefs.h
<<_ACEOF
12745 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
12751 if test "$time_found" = no
; then
12752 { { echo "$as_me:$LINENO: error: no function found to get the time" >&5
12753 echo "$as_me: error: no function found to get the time" >&2;}
12754 { (exit 1); exit 1; }; }
12758 for ac_func
in memmove
12760 as_ac_var
=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
12761 echo "$as_me:$LINENO: checking for $ac_func" >&5
12762 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
12763 if eval "test \"\${$as_ac_var+set}\" = set"; then
12764 echo $ECHO_N "(cached) $ECHO_C" >&6
12766 if test x
$gcc_no_link = xyes
; then
12767 { { echo "$as_me:$LINENO: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&5
12768 echo "$as_me: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&2;}
12769 { (exit 1); exit 1; }; }
12771 cat >conftest.
$ac_ext <<_ACEOF
12774 cat confdefs.h
>>conftest.
$ac_ext
12775 cat >>conftest.
$ac_ext <<_ACEOF
12776 /* end confdefs.h. */
12777 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
12778 For example, HP-UX 11i <limits.h> declares gettimeofday. */
12779 #define $ac_func innocuous_$ac_func
12781 /* System header to define __stub macros and hopefully few prototypes,
12782 which can conflict with char $ac_func (); below.
12783 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
12784 <limits.h> exists even on freestanding compilers. */
12787 # include <limits.h>
12789 # include <assert.h>
12794 /* Override any gcc2 internal prototype to avoid an error. */
12799 /* We use char because int might match the return type of a gcc2
12800 builtin and then its argument prototype would still apply. */
12802 /* The GNU C library defines this for functions which it implements
12803 to always fail with ENOSYS. Some functions are actually named
12804 something starting with __ and the normal name is an alias. */
12805 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
12808 char (*f) () = $ac_func;
12817 return f != $ac_func;
12822 rm -f conftest.
$ac_objext conftest
$ac_exeext
12823 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
12824 (eval $ac_link) 2>conftest.er1
12826 grep -v '^ *+' conftest.er1
>conftest.err
12828 cat conftest.err
>&5
12829 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12830 (exit $ac_status); } &&
12831 { ac_try
='test -z "$ac_c_werror_flag"
12832 || test ! -s conftest.err'
12833 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12834 (eval $ac_try) 2>&5
12836 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12837 (exit $ac_status); }; } &&
12838 { ac_try
='test -s conftest$ac_exeext'
12839 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12840 (eval $ac_try) 2>&5
12842 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12843 (exit $ac_status); }; }; then
12844 eval "$as_ac_var=yes"
12846 echo "$as_me: failed program was:" >&5
12847 sed 's/^/| /' conftest.
$ac_ext >&5
12849 eval "$as_ac_var=no"
12851 rm -f conftest.err conftest.
$ac_objext \
12852 conftest
$ac_exeext conftest.
$ac_ext
12854 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
12855 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
12856 if test `eval echo '${'$as_ac_var'}'` = yes; then
12857 cat >>confdefs.h
<<_ACEOF
12858 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
12865 # We require memcpy.
12868 for ac_func
in memcpy
12870 as_ac_var
=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
12871 echo "$as_me:$LINENO: checking for $ac_func" >&5
12872 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
12873 if eval "test \"\${$as_ac_var+set}\" = set"; then
12874 echo $ECHO_N "(cached) $ECHO_C" >&6
12876 if test x
$gcc_no_link = xyes
; then
12877 { { echo "$as_me:$LINENO: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&5
12878 echo "$as_me: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&2;}
12879 { (exit 1); exit 1; }; }
12881 cat >conftest.
$ac_ext <<_ACEOF
12884 cat confdefs.h
>>conftest.
$ac_ext
12885 cat >>conftest.
$ac_ext <<_ACEOF
12886 /* end confdefs.h. */
12887 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
12888 For example, HP-UX 11i <limits.h> declares gettimeofday. */
12889 #define $ac_func innocuous_$ac_func
12891 /* System header to define __stub macros and hopefully few prototypes,
12892 which can conflict with char $ac_func (); below.
12893 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
12894 <limits.h> exists even on freestanding compilers. */
12897 # include <limits.h>
12899 # include <assert.h>
12904 /* Override any gcc2 internal prototype to avoid an error. */
12909 /* We use char because int might match the return type of a gcc2
12910 builtin and then its argument prototype would still apply. */
12912 /* The GNU C library defines this for functions which it implements
12913 to always fail with ENOSYS. Some functions are actually named
12914 something starting with __ and the normal name is an alias. */
12915 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
12918 char (*f) () = $ac_func;
12927 return f != $ac_func;
12932 rm -f conftest.
$ac_objext conftest
$ac_exeext
12933 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
12934 (eval $ac_link) 2>conftest.er1
12936 grep -v '^ *+' conftest.er1
>conftest.err
12938 cat conftest.err
>&5
12939 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12940 (exit $ac_status); } &&
12941 { ac_try
='test -z "$ac_c_werror_flag"
12942 || test ! -s conftest.err'
12943 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12944 (eval $ac_try) 2>&5
12946 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12947 (exit $ac_status); }; } &&
12948 { ac_try
='test -s conftest$ac_exeext'
12949 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12950 (eval $ac_try) 2>&5
12952 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12953 (exit $ac_status); }; }; then
12954 eval "$as_ac_var=yes"
12956 echo "$as_me: failed program was:" >&5
12957 sed 's/^/| /' conftest.
$ac_ext >&5
12959 eval "$as_ac_var=no"
12961 rm -f conftest.err conftest.
$ac_objext \
12962 conftest
$ac_exeext conftest.
$ac_ext
12964 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
12965 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
12966 if test `eval echo '${'$as_ac_var'}'` = yes; then
12967 cat >>confdefs.h
<<_ACEOF
12968 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
12974 if test "$memcpy_found" = no
; then
12975 { { echo "$as_me:$LINENO: error: memcpy is required" >&5
12976 echo "$as_me: error: memcpy is required" >&2;}
12977 { (exit 1); exit 1; }; }
12979 # Do an additional check on dld, HP-UX for example has dlopen in libdld.sl
12980 echo "$as_me:$LINENO: checking for dlopen in -ldl" >&5
12981 echo $ECHO_N "checking for dlopen in -ldl... $ECHO_C" >&6
12982 if test "${ac_cv_lib_dl_dlopen+set}" = set; then
12983 echo $ECHO_N "(cached) $ECHO_C" >&6
12985 ac_check_lib_save_LIBS
=$LIBS
12987 if test x
$gcc_no_link = xyes
; then
12988 { { echo "$as_me:$LINENO: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&5
12989 echo "$as_me: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&2;}
12990 { (exit 1); exit 1; }; }
12992 cat >conftest.
$ac_ext <<_ACEOF
12995 cat confdefs.h
>>conftest.
$ac_ext
12996 cat >>conftest.
$ac_ext <<_ACEOF
12997 /* end confdefs.h. */
12999 /* Override any gcc2 internal prototype to avoid an error. */
13003 /* We use char because int might match the return type of a gcc2
13004 builtin and then its argument prototype would still apply. */
13014 rm -f conftest.
$ac_objext conftest
$ac_exeext
13015 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
13016 (eval $ac_link) 2>conftest.er1
13018 grep -v '^ *+' conftest.er1
>conftest.err
13020 cat conftest.err
>&5
13021 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13022 (exit $ac_status); } &&
13023 { ac_try
='test -z "$ac_c_werror_flag"
13024 || test ! -s conftest.err'
13025 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13026 (eval $ac_try) 2>&5
13028 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13029 (exit $ac_status); }; } &&
13030 { ac_try
='test -s conftest$ac_exeext'
13031 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13032 (eval $ac_try) 2>&5
13034 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13035 (exit $ac_status); }; }; then
13036 ac_cv_lib_dl_dlopen
=yes
13038 echo "$as_me: failed program was:" >&5
13039 sed 's/^/| /' conftest.
$ac_ext >&5
13041 ac_cv_lib_dl_dlopen
=no
13043 rm -f conftest.err conftest.
$ac_objext \
13044 conftest
$ac_exeext conftest.
$ac_ext
13045 LIBS
=$ac_check_lib_save_LIBS
13047 echo "$as_me:$LINENO: result: $ac_cv_lib_dl_dlopen" >&5
13048 echo "${ECHO_T}$ac_cv_lib_dl_dlopen" >&6
13049 if test $ac_cv_lib_dl_dlopen = yes; then
13052 cat >>confdefs.h
<<\_ACEOF
13053 #define HAVE_DLOPEN 1
13058 echo "$as_me:$LINENO: checking for dlopen in -ldld" >&5
13059 echo $ECHO_N "checking for dlopen in -ldld... $ECHO_C" >&6
13060 if test "${ac_cv_lib_dld_dlopen+set}" = set; then
13061 echo $ECHO_N "(cached) $ECHO_C" >&6
13063 ac_check_lib_save_LIBS
=$LIBS
13065 if test x
$gcc_no_link = xyes
; then
13066 { { echo "$as_me:$LINENO: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&5
13067 echo "$as_me: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&2;}
13068 { (exit 1); exit 1; }; }
13070 cat >conftest.
$ac_ext <<_ACEOF
13073 cat confdefs.h
>>conftest.
$ac_ext
13074 cat >>conftest.
$ac_ext <<_ACEOF
13075 /* end confdefs.h. */
13077 /* Override any gcc2 internal prototype to avoid an error. */
13081 /* We use char because int might match the return type of a gcc2
13082 builtin and then its argument prototype would still apply. */
13092 rm -f conftest.
$ac_objext conftest
$ac_exeext
13093 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
13094 (eval $ac_link) 2>conftest.er1
13096 grep -v '^ *+' conftest.er1
>conftest.err
13098 cat conftest.err
>&5
13099 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13100 (exit $ac_status); } &&
13101 { ac_try
='test -z "$ac_c_werror_flag"
13102 || test ! -s conftest.err'
13103 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13104 (eval $ac_try) 2>&5
13106 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13107 (exit $ac_status); }; } &&
13108 { ac_try
='test -s conftest$ac_exeext'
13109 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13110 (eval $ac_try) 2>&5
13112 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13113 (exit $ac_status); }; }; then
13114 ac_cv_lib_dld_dlopen
=yes
13116 echo "$as_me: failed program was:" >&5
13117 sed 's/^/| /' conftest.
$ac_ext >&5
13119 ac_cv_lib_dld_dlopen
=no
13121 rm -f conftest.err conftest.
$ac_objext \
13122 conftest
$ac_exeext conftest.
$ac_ext
13123 LIBS
=$ac_check_lib_save_LIBS
13125 echo "$as_me:$LINENO: result: $ac_cv_lib_dld_dlopen" >&5
13126 echo "${ECHO_T}$ac_cv_lib_dld_dlopen" >&6
13127 if test $ac_cv_lib_dld_dlopen = yes; then
13130 cat >>confdefs.h
<<\_ACEOF
13131 #define HAVE_DLOPEN 1
13139 # Some library-finding code we stole from Tcl.
13140 #--------------------------------------------------------------------
13141 # Check for the existence of the -lsocket and -lnsl libraries.
13142 # The order here is important, so that they end up in the right
13143 # order in the command line generated by make. Here are some
13144 # special considerations:
13145 # 1. Use "connect" and "accept" to check for -lsocket, and
13146 # "gethostbyname" to check for -lnsl.
13147 # 2. Use each function name only once: can't redo a check because
13148 # autoconf caches the results of the last check and won't redo it.
13149 # 3. Use -lnsl and -lsocket only if they supply procedures that
13150 # aren't already present in the normal libraries. This is because
13151 # IRIX 5.2 has libraries, but they aren't needed and they're
13152 # bogus: they goof up name resolution if used.
13153 # 4. On some SVR4 systems, can't use -lsocket without -lnsl too.
13154 # To get around this problem, check for both libraries together
13155 # if -lsocket doesn't work by itself.
13156 #--------------------------------------------------------------------
13158 echo "$as_me:$LINENO: checking for socket libraries" >&5
13159 echo $ECHO_N "checking for socket libraries... $ECHO_C" >&6
13160 if test "${gcj_cv_lib_sockets+set}" = set; then
13161 echo $ECHO_N "(cached) $ECHO_C" >&6
13163 gcj_cv_lib_sockets
=
13165 unset ac_cv_func_connect
13166 echo "$as_me:$LINENO: checking for connect" >&5
13167 echo $ECHO_N "checking for connect... $ECHO_C" >&6
13168 if test "${ac_cv_func_connect+set}" = set; then
13169 echo $ECHO_N "(cached) $ECHO_C" >&6
13171 if test x
$gcc_no_link = xyes
; then
13172 { { echo "$as_me:$LINENO: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&5
13173 echo "$as_me: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&2;}
13174 { (exit 1); exit 1; }; }
13176 cat >conftest.
$ac_ext <<_ACEOF
13179 cat confdefs.h
>>conftest.
$ac_ext
13180 cat >>conftest.
$ac_ext <<_ACEOF
13181 /* end confdefs.h. */
13182 /* Define connect to an innocuous variant, in case <limits.h> declares connect.
13183 For example, HP-UX 11i <limits.h> declares gettimeofday. */
13184 #define connect innocuous_connect
13186 /* System header to define __stub macros and hopefully few prototypes,
13187 which can conflict with char connect (); below.
13188 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
13189 <limits.h> exists even on freestanding compilers. */
13192 # include <limits.h>
13194 # include <assert.h>
13199 /* Override any gcc2 internal prototype to avoid an error. */
13204 /* We use char because int might match the return type of a gcc2
13205 builtin and then its argument prototype would still apply. */
13207 /* The GNU C library defines this for functions which it implements
13208 to always fail with ENOSYS. Some functions are actually named
13209 something starting with __ and the normal name is an alias. */
13210 #if defined (__stub_connect) || defined (__stub___connect)
13213 char (*f) () = connect;
13222 return f != connect;
13227 rm -f conftest.
$ac_objext conftest
$ac_exeext
13228 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
13229 (eval $ac_link) 2>conftest.er1
13231 grep -v '^ *+' conftest.er1
>conftest.err
13233 cat conftest.err
>&5
13234 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13235 (exit $ac_status); } &&
13236 { ac_try
='test -z "$ac_c_werror_flag"
13237 || test ! -s conftest.err'
13238 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13239 (eval $ac_try) 2>&5
13241 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13242 (exit $ac_status); }; } &&
13243 { ac_try
='test -s conftest$ac_exeext'
13244 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13245 (eval $ac_try) 2>&5
13247 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13248 (exit $ac_status); }; }; then
13249 ac_cv_func_connect
=yes
13251 echo "$as_me: failed program was:" >&5
13252 sed 's/^/| /' conftest.
$ac_ext >&5
13254 ac_cv_func_connect
=no
13256 rm -f conftest.err conftest.
$ac_objext \
13257 conftest
$ac_exeext conftest.
$ac_ext
13259 echo "$as_me:$LINENO: result: $ac_cv_func_connect" >&5
13260 echo "${ECHO_T}$ac_cv_func_connect" >&6
13261 if test $ac_cv_func_connect = yes; then
13267 if test "$gcj_checkSocket" = 1; then
13268 unset ac_cv_func_connect
13269 echo "$as_me:$LINENO: checking for main in -lsocket" >&5
13270 echo $ECHO_N "checking for main in -lsocket... $ECHO_C" >&6
13271 if test "${ac_cv_lib_socket_main+set}" = set; then
13272 echo $ECHO_N "(cached) $ECHO_C" >&6
13274 ac_check_lib_save_LIBS
=$LIBS
13275 LIBS
="-lsocket $LIBS"
13276 if test x
$gcc_no_link = xyes
; then
13277 { { echo "$as_me:$LINENO: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&5
13278 echo "$as_me: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&2;}
13279 { (exit 1); exit 1; }; }
13281 cat >conftest.
$ac_ext <<_ACEOF
13284 cat confdefs.h
>>conftest.
$ac_ext
13285 cat >>conftest.
$ac_ext <<_ACEOF
13286 /* end confdefs.h. */
13297 rm -f conftest.
$ac_objext conftest
$ac_exeext
13298 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
13299 (eval $ac_link) 2>conftest.er1
13301 grep -v '^ *+' conftest.er1
>conftest.err
13303 cat conftest.err
>&5
13304 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13305 (exit $ac_status); } &&
13306 { ac_try
='test -z "$ac_c_werror_flag"
13307 || test ! -s conftest.err'
13308 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13309 (eval $ac_try) 2>&5
13311 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13312 (exit $ac_status); }; } &&
13313 { ac_try
='test -s conftest$ac_exeext'
13314 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13315 (eval $ac_try) 2>&5
13317 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13318 (exit $ac_status); }; }; then
13319 ac_cv_lib_socket_main
=yes
13321 echo "$as_me: failed program was:" >&5
13322 sed 's/^/| /' conftest.
$ac_ext >&5
13324 ac_cv_lib_socket_main
=no
13326 rm -f conftest.err conftest.
$ac_objext \
13327 conftest
$ac_exeext conftest.
$ac_ext
13328 LIBS
=$ac_check_lib_save_LIBS
13330 echo "$as_me:$LINENO: result: $ac_cv_lib_socket_main" >&5
13331 echo "${ECHO_T}$ac_cv_lib_socket_main" >&6
13332 if test $ac_cv_lib_socket_main = yes; then
13333 gcj_cv_lib_sockets
="-lsocket"
13339 if test "$gcj_checkBoth" = 1; then
13341 LIBS
="$LIBS -lsocket -lnsl"
13342 unset ac_cv_func_accept
13343 echo "$as_me:$LINENO: checking for accept" >&5
13344 echo $ECHO_N "checking for accept... $ECHO_C" >&6
13345 if test "${ac_cv_func_accept+set}" = set; then
13346 echo $ECHO_N "(cached) $ECHO_C" >&6
13348 if test x
$gcc_no_link = xyes
; then
13349 { { echo "$as_me:$LINENO: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&5
13350 echo "$as_me: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&2;}
13351 { (exit 1); exit 1; }; }
13353 cat >conftest.
$ac_ext <<_ACEOF
13356 cat confdefs.h
>>conftest.
$ac_ext
13357 cat >>conftest.
$ac_ext <<_ACEOF
13358 /* end confdefs.h. */
13359 /* Define accept to an innocuous variant, in case <limits.h> declares accept.
13360 For example, HP-UX 11i <limits.h> declares gettimeofday. */
13361 #define accept innocuous_accept
13363 /* System header to define __stub macros and hopefully few prototypes,
13364 which can conflict with char accept (); below.
13365 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
13366 <limits.h> exists even on freestanding compilers. */
13369 # include <limits.h>
13371 # include <assert.h>
13376 /* Override any gcc2 internal prototype to avoid an error. */
13381 /* We use char because int might match the return type of a gcc2
13382 builtin and then its argument prototype would still apply. */
13384 /* The GNU C library defines this for functions which it implements
13385 to always fail with ENOSYS. Some functions are actually named
13386 something starting with __ and the normal name is an alias. */
13387 #if defined (__stub_accept) || defined (__stub___accept)
13390 char (*f) () = accept;
13399 return f != accept;
13404 rm -f conftest.
$ac_objext conftest
$ac_exeext
13405 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
13406 (eval $ac_link) 2>conftest.er1
13408 grep -v '^ *+' conftest.er1
>conftest.err
13410 cat conftest.err
>&5
13411 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13412 (exit $ac_status); } &&
13413 { ac_try
='test -z "$ac_c_werror_flag"
13414 || test ! -s conftest.err'
13415 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13416 (eval $ac_try) 2>&5
13418 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13419 (exit $ac_status); }; } &&
13420 { ac_try
='test -s conftest$ac_exeext'
13421 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13422 (eval $ac_try) 2>&5
13424 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13425 (exit $ac_status); }; }; then
13426 ac_cv_func_accept
=yes
13428 echo "$as_me: failed program was:" >&5
13429 sed 's/^/| /' conftest.
$ac_ext >&5
13431 ac_cv_func_accept
=no
13433 rm -f conftest.err conftest.
$ac_objext \
13434 conftest
$ac_exeext conftest.
$ac_ext
13436 echo "$as_me:$LINENO: result: $ac_cv_func_accept" >&5
13437 echo "${ECHO_T}$ac_cv_func_accept" >&6
13438 if test $ac_cv_func_accept = yes; then
13440 gcj_cv_lib_sockets
="-lsocket -lnsl"
13443 unset ac_cv_func_accept
13446 unset ac_cv_func_gethostbyname
13448 LIBS
="$LIBS $gcj_cv_lib_sockets"
13449 echo "$as_me:$LINENO: checking for gethostbyname" >&5
13450 echo $ECHO_N "checking for gethostbyname... $ECHO_C" >&6
13451 if test "${ac_cv_func_gethostbyname+set}" = set; then
13452 echo $ECHO_N "(cached) $ECHO_C" >&6
13454 if test x
$gcc_no_link = xyes
; then
13455 { { echo "$as_me:$LINENO: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&5
13456 echo "$as_me: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&2;}
13457 { (exit 1); exit 1; }; }
13459 cat >conftest.
$ac_ext <<_ACEOF
13462 cat confdefs.h
>>conftest.
$ac_ext
13463 cat >>conftest.
$ac_ext <<_ACEOF
13464 /* end confdefs.h. */
13465 /* Define gethostbyname to an innocuous variant, in case <limits.h> declares gethostbyname.
13466 For example, HP-UX 11i <limits.h> declares gettimeofday. */
13467 #define gethostbyname innocuous_gethostbyname
13469 /* System header to define __stub macros and hopefully few prototypes,
13470 which can conflict with char gethostbyname (); below.
13471 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
13472 <limits.h> exists even on freestanding compilers. */
13475 # include <limits.h>
13477 # include <assert.h>
13480 #undef gethostbyname
13482 /* Override any gcc2 internal prototype to avoid an error. */
13487 /* We use char because int might match the return type of a gcc2
13488 builtin and then its argument prototype would still apply. */
13489 char gethostbyname ();
13490 /* The GNU C library defines this for functions which it implements
13491 to always fail with ENOSYS. Some functions are actually named
13492 something starting with __ and the normal name is an alias. */
13493 #if defined (__stub_gethostbyname) || defined (__stub___gethostbyname)
13496 char (*f) () = gethostbyname;
13505 return f != gethostbyname;
13510 rm -f conftest.
$ac_objext conftest
$ac_exeext
13511 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
13512 (eval $ac_link) 2>conftest.er1
13514 grep -v '^ *+' conftest.er1
>conftest.err
13516 cat conftest.err
>&5
13517 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13518 (exit $ac_status); } &&
13519 { ac_try
='test -z "$ac_c_werror_flag"
13520 || test ! -s conftest.err'
13521 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13522 (eval $ac_try) 2>&5
13524 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13525 (exit $ac_status); }; } &&
13526 { ac_try
='test -s conftest$ac_exeext'
13527 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13528 (eval $ac_try) 2>&5
13530 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13531 (exit $ac_status); }; }; then
13532 ac_cv_func_gethostbyname
=yes
13534 echo "$as_me: failed program was:" >&5
13535 sed 's/^/| /' conftest.
$ac_ext >&5
13537 ac_cv_func_gethostbyname
=no
13539 rm -f conftest.err conftest.
$ac_objext \
13540 conftest
$ac_exeext conftest.
$ac_ext
13542 echo "$as_me:$LINENO: result: $ac_cv_func_gethostbyname" >&5
13543 echo "${ECHO_T}$ac_cv_func_gethostbyname" >&6
13544 if test $ac_cv_func_gethostbyname = yes; then
13547 echo "$as_me:$LINENO: checking for main in -lnsl" >&5
13548 echo $ECHO_N "checking for main in -lnsl... $ECHO_C" >&6
13549 if test "${ac_cv_lib_nsl_main+set}" = set; then
13550 echo $ECHO_N "(cached) $ECHO_C" >&6
13552 ac_check_lib_save_LIBS
=$LIBS
13554 if test x
$gcc_no_link = xyes
; then
13555 { { echo "$as_me:$LINENO: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&5
13556 echo "$as_me: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&2;}
13557 { (exit 1); exit 1; }; }
13559 cat >conftest.
$ac_ext <<_ACEOF
13562 cat confdefs.h
>>conftest.
$ac_ext
13563 cat >>conftest.
$ac_ext <<_ACEOF
13564 /* end confdefs.h. */
13575 rm -f conftest.
$ac_objext conftest
$ac_exeext
13576 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
13577 (eval $ac_link) 2>conftest.er1
13579 grep -v '^ *+' conftest.er1
>conftest.err
13581 cat conftest.err
>&5
13582 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13583 (exit $ac_status); } &&
13584 { ac_try
='test -z "$ac_c_werror_flag"
13585 || test ! -s conftest.err'
13586 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13587 (eval $ac_try) 2>&5
13589 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13590 (exit $ac_status); }; } &&
13591 { ac_try
='test -s conftest$ac_exeext'
13592 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13593 (eval $ac_try) 2>&5
13595 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13596 (exit $ac_status); }; }; then
13597 ac_cv_lib_nsl_main
=yes
13599 echo "$as_me: failed program was:" >&5
13600 sed 's/^/| /' conftest.
$ac_ext >&5
13602 ac_cv_lib_nsl_main
=no
13604 rm -f conftest.err conftest.
$ac_objext \
13605 conftest
$ac_exeext conftest.
$ac_ext
13606 LIBS
=$ac_check_lib_save_LIBS
13608 echo "$as_me:$LINENO: result: $ac_cv_lib_nsl_main" >&5
13609 echo "${ECHO_T}$ac_cv_lib_nsl_main" >&6
13610 if test $ac_cv_lib_nsl_main = yes; then
13611 gcj_cv_lib_sockets
="$gcj_cv_lib_sockets -lnsl"
13616 unset ac_cv_func_gethostbyname
13620 echo "$as_me:$LINENO: result: $gcj_cv_lib_sockets" >&5
13621 echo "${ECHO_T}$gcj_cv_lib_sockets" >&6
13622 SYSTEMSPEC
="$SYSTEMSPEC $gcj_cv_lib_sockets"
13624 if test "$with_system_zlib" = yes; then
13625 echo "$as_me:$LINENO: checking for deflate in -lz" >&5
13626 echo $ECHO_N "checking for deflate in -lz... $ECHO_C" >&6
13627 if test "${ac_cv_lib_z_deflate+set}" = set; then
13628 echo $ECHO_N "(cached) $ECHO_C" >&6
13630 ac_check_lib_save_LIBS
=$LIBS
13632 if test x
$gcc_no_link = xyes
; then
13633 { { echo "$as_me:$LINENO: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&5
13634 echo "$as_me: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&2;}
13635 { (exit 1); exit 1; }; }
13637 cat >conftest.
$ac_ext <<_ACEOF
13640 cat confdefs.h
>>conftest.
$ac_ext
13641 cat >>conftest.
$ac_ext <<_ACEOF
13642 /* end confdefs.h. */
13644 /* Override any gcc2 internal prototype to avoid an error. */
13648 /* We use char because int might match the return type of a gcc2
13649 builtin and then its argument prototype would still apply. */
13659 rm -f conftest.
$ac_objext conftest
$ac_exeext
13660 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
13661 (eval $ac_link) 2>conftest.er1
13663 grep -v '^ *+' conftest.er1
>conftest.err
13665 cat conftest.err
>&5
13666 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13667 (exit $ac_status); } &&
13668 { ac_try
='test -z "$ac_c_werror_flag"
13669 || test ! -s conftest.err'
13670 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13671 (eval $ac_try) 2>&5
13673 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13674 (exit $ac_status); }; } &&
13675 { ac_try
='test -s conftest$ac_exeext'
13676 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13677 (eval $ac_try) 2>&5
13679 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13680 (exit $ac_status); }; }; then
13681 ac_cv_lib_z_deflate
=yes
13683 echo "$as_me: failed program was:" >&5
13684 sed 's/^/| /' conftest.
$ac_ext >&5
13686 ac_cv_lib_z_deflate
=no
13688 rm -f conftest.err conftest.
$ac_objext \
13689 conftest
$ac_exeext conftest.
$ac_ext
13690 LIBS
=$ac_check_lib_save_LIBS
13692 echo "$as_me:$LINENO: result: $ac_cv_lib_z_deflate" >&5
13693 echo "${ECHO_T}$ac_cv_lib_z_deflate" >&6
13694 if test $ac_cv_lib_z_deflate = yes; then
13702 # Test for Gtk stuff, if asked for.
13703 if test "$use_gtk_awt" = yes; then
13707 if test -z "$PKG_CONFIG"; then
13708 # Extract the first word of "pkg-config", so it can be a program name with args.
13709 set dummy pkg-config
; ac_word
=$2
13710 echo "$as_me:$LINENO: checking for $ac_word" >&5
13711 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
13712 if test "${ac_cv_path_PKG_CONFIG+set}" = set; then
13713 echo $ECHO_N "(cached) $ECHO_C" >&6
13715 case $PKG_CONFIG in
13717 ac_cv_path_PKG_CONFIG
="$PKG_CONFIG" # Let the user override the test with a path.
13720 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
13721 for as_dir
in $PATH
13724 test -z "$as_dir" && as_dir
=.
13725 for ac_exec_ext
in '' $ac_executable_extensions; do
13726 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
13727 ac_cv_path_PKG_CONFIG
="$as_dir/$ac_word$ac_exec_ext"
13728 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
13734 test -z "$ac_cv_path_PKG_CONFIG" && ac_cv_path_PKG_CONFIG
="no"
13738 PKG_CONFIG
=$ac_cv_path_PKG_CONFIG
13740 if test -n "$PKG_CONFIG"; then
13741 echo "$as_me:$LINENO: result: $PKG_CONFIG" >&5
13742 echo "${ECHO_T}$PKG_CONFIG" >&6
13744 echo "$as_me:$LINENO: result: no" >&5
13745 echo "${ECHO_T}no" >&6
13750 if test "$PKG_CONFIG" = "no" ; then
13751 echo "*** The pkg-config script could not be found. Make sure it is"
13752 echo "*** in your path, or set the PKG_CONFIG environment variable"
13753 echo "*** to the full path to pkg-config."
13754 echo "*** Or see http://www.freedesktop.org/software/pkgconfig to get pkg-config."
13756 PKG_CONFIG_MIN_VERSION
=0.9.0
13757 if $PKG_CONFIG --atleast-pkgconfig-version $PKG_CONFIG_MIN_VERSION; then
13758 echo "$as_me:$LINENO: checking for gtk+-2.0 >= 2.4" >&5
13759 echo $ECHO_N "checking for gtk+-2.0 >= 2.4... $ECHO_C" >&6
13761 if $PKG_CONFIG --exists "gtk+-2.0 >= 2.4" ; then
13762 echo "$as_me:$LINENO: result: yes" >&5
13763 echo "${ECHO_T}yes" >&6
13766 echo "$as_me:$LINENO: checking GTK_CFLAGS" >&5
13767 echo $ECHO_N "checking GTK_CFLAGS... $ECHO_C" >&6
13768 GTK_CFLAGS
=`$PKG_CONFIG --cflags "gtk+-2.0 >= 2.4"`
13769 echo "$as_me:$LINENO: result: $GTK_CFLAGS" >&5
13770 echo "${ECHO_T}$GTK_CFLAGS" >&6
13772 echo "$as_me:$LINENO: checking GTK_LIBS" >&5
13773 echo $ECHO_N "checking GTK_LIBS... $ECHO_C" >&6
13774 GTK_LIBS
=`$PKG_CONFIG --libs "gtk+-2.0 >= 2.4"`
13775 echo "$as_me:$LINENO: result: $GTK_LIBS" >&5
13776 echo "${ECHO_T}$GTK_LIBS" >&6
13780 ## If we have a custom action on failure, don't print errors, but
13781 ## do set a variable so people can do so.
13782 GTK_PKG_ERRORS
=`$PKG_CONFIG --errors-to-stdout --print-errors "gtk+-2.0 >= 2.4"`
13783 echo $GTK_PKG_ERRORS
13789 echo "*** Your version of pkg-config is too old. You need version $PKG_CONFIG_MIN_VERSION or newer."
13790 echo "*** See http://www.freedesktop.org/software/pkgconfig"
13794 if test $succeeded = yes; then
13797 { { echo "$as_me:$LINENO: error: Library requirements (gtk+-2.0 >= 2.4) not met; consider adjusting the PKG_CONFIG_PATH environment variable if your libraries are in a nonstandard prefix so pkg-config can find them." >&5
13798 echo "$as_me: error: Library requirements (gtk+-2.0 >= 2.4) not met; consider adjusting the PKG_CONFIG_PATH environment variable if your libraries are in a nonstandard prefix so pkg-config can find them." >&2;}
13799 { (exit 1); exit 1; }; }
13808 if test -z "$PKG_CONFIG"; then
13809 # Extract the first word of "pkg-config", so it can be a program name with args.
13810 set dummy pkg-config
; ac_word
=$2
13811 echo "$as_me:$LINENO: checking for $ac_word" >&5
13812 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
13813 if test "${ac_cv_path_PKG_CONFIG+set}" = set; then
13814 echo $ECHO_N "(cached) $ECHO_C" >&6
13816 case $PKG_CONFIG in
13818 ac_cv_path_PKG_CONFIG
="$PKG_CONFIG" # Let the user override the test with a path.
13821 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
13822 for as_dir
in $PATH
13825 test -z "$as_dir" && as_dir
=.
13826 for ac_exec_ext
in '' $ac_executable_extensions; do
13827 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
13828 ac_cv_path_PKG_CONFIG
="$as_dir/$ac_word$ac_exec_ext"
13829 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
13835 test -z "$ac_cv_path_PKG_CONFIG" && ac_cv_path_PKG_CONFIG
="no"
13839 PKG_CONFIG
=$ac_cv_path_PKG_CONFIG
13841 if test -n "$PKG_CONFIG"; then
13842 echo "$as_me:$LINENO: result: $PKG_CONFIG" >&5
13843 echo "${ECHO_T}$PKG_CONFIG" >&6
13845 echo "$as_me:$LINENO: result: no" >&5
13846 echo "${ECHO_T}no" >&6
13851 if test "$PKG_CONFIG" = "no" ; then
13852 echo "*** The pkg-config script could not be found. Make sure it is"
13853 echo "*** in your path, or set the PKG_CONFIG environment variable"
13854 echo "*** to the full path to pkg-config."
13855 echo "*** Or see http://www.freedesktop.org/software/pkgconfig to get pkg-config."
13857 PKG_CONFIG_MIN_VERSION
=0.9.0
13858 if $PKG_CONFIG --atleast-pkgconfig-version $PKG_CONFIG_MIN_VERSION; then
13859 echo "$as_me:$LINENO: checking for glib-2.0 >= 2.4 gthread-2.0 >= 2.4" >&5
13860 echo $ECHO_N "checking for glib-2.0 >= 2.4 gthread-2.0 >= 2.4... $ECHO_C" >&6
13862 if $PKG_CONFIG --exists "glib-2.0 >= 2.4 gthread-2.0 >= 2.4" ; then
13863 echo "$as_me:$LINENO: result: yes" >&5
13864 echo "${ECHO_T}yes" >&6
13867 echo "$as_me:$LINENO: checking GLIB_CFLAGS" >&5
13868 echo $ECHO_N "checking GLIB_CFLAGS... $ECHO_C" >&6
13869 GLIB_CFLAGS
=`$PKG_CONFIG --cflags "glib-2.0 >= 2.4 gthread-2.0 >= 2.4"`
13870 echo "$as_me:$LINENO: result: $GLIB_CFLAGS" >&5
13871 echo "${ECHO_T}$GLIB_CFLAGS" >&6
13873 echo "$as_me:$LINENO: checking GLIB_LIBS" >&5
13874 echo $ECHO_N "checking GLIB_LIBS... $ECHO_C" >&6
13875 GLIB_LIBS
=`$PKG_CONFIG --libs "glib-2.0 >= 2.4 gthread-2.0 >= 2.4"`
13876 echo "$as_me:$LINENO: result: $GLIB_LIBS" >&5
13877 echo "${ECHO_T}$GLIB_LIBS" >&6
13881 ## If we have a custom action on failure, don't print errors, but
13882 ## do set a variable so people can do so.
13883 GLIB_PKG_ERRORS
=`$PKG_CONFIG --errors-to-stdout --print-errors "glib-2.0 >= 2.4 gthread-2.0 >= 2.4"`
13884 echo $GLIB_PKG_ERRORS
13890 echo "*** Your version of pkg-config is too old. You need version $PKG_CONFIG_MIN_VERSION or newer."
13891 echo "*** See http://www.freedesktop.org/software/pkgconfig"
13895 if test $succeeded = yes; then
13898 { { echo "$as_me:$LINENO: error: Library requirements (glib-2.0 >= 2.4 gthread-2.0 >= 2.4) not met; consider adjusting the PKG_CONFIG_PATH environment variable if your libraries are in a nonstandard prefix so pkg-config can find them." >&5
13899 echo "$as_me: error: Library requirements (glib-2.0 >= 2.4 gthread-2.0 >= 2.4) not met; consider adjusting the PKG_CONFIG_PATH environment variable if your libraries are in a nonstandard prefix so pkg-config can find them." >&2;}
13900 { (exit 1); exit 1; }; }
13909 if test -z "$PKG_CONFIG"; then
13910 # Extract the first word of "pkg-config", so it can be a program name with args.
13911 set dummy pkg-config
; ac_word
=$2
13912 echo "$as_me:$LINENO: checking for $ac_word" >&5
13913 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
13914 if test "${ac_cv_path_PKG_CONFIG+set}" = set; then
13915 echo $ECHO_N "(cached) $ECHO_C" >&6
13917 case $PKG_CONFIG in
13919 ac_cv_path_PKG_CONFIG
="$PKG_CONFIG" # Let the user override the test with a path.
13922 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
13923 for as_dir
in $PATH
13926 test -z "$as_dir" && as_dir
=.
13927 for ac_exec_ext
in '' $ac_executable_extensions; do
13928 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
13929 ac_cv_path_PKG_CONFIG
="$as_dir/$ac_word$ac_exec_ext"
13930 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
13936 test -z "$ac_cv_path_PKG_CONFIG" && ac_cv_path_PKG_CONFIG
="no"
13940 PKG_CONFIG
=$ac_cv_path_PKG_CONFIG
13942 if test -n "$PKG_CONFIG"; then
13943 echo "$as_me:$LINENO: result: $PKG_CONFIG" >&5
13944 echo "${ECHO_T}$PKG_CONFIG" >&6
13946 echo "$as_me:$LINENO: result: no" >&5
13947 echo "${ECHO_T}no" >&6
13952 if test "$PKG_CONFIG" = "no" ; then
13953 echo "*** The pkg-config script could not be found. Make sure it is"
13954 echo "*** in your path, or set the PKG_CONFIG environment variable"
13955 echo "*** to the full path to pkg-config."
13956 echo "*** Or see http://www.freedesktop.org/software/pkgconfig to get pkg-config."
13958 PKG_CONFIG_MIN_VERSION
=0.9.0
13959 if $PKG_CONFIG --atleast-pkgconfig-version $PKG_CONFIG_MIN_VERSION; then
13960 echo "$as_me:$LINENO: checking for libart-2.0 >= 2.1" >&5
13961 echo $ECHO_N "checking for libart-2.0 >= 2.1... $ECHO_C" >&6
13963 if $PKG_CONFIG --exists "libart-2.0 >= 2.1" ; then
13964 echo "$as_me:$LINENO: result: yes" >&5
13965 echo "${ECHO_T}yes" >&6
13968 echo "$as_me:$LINENO: checking LIBART_CFLAGS" >&5
13969 echo $ECHO_N "checking LIBART_CFLAGS... $ECHO_C" >&6
13970 LIBART_CFLAGS
=`$PKG_CONFIG --cflags "libart-2.0 >= 2.1"`
13971 echo "$as_me:$LINENO: result: $LIBART_CFLAGS" >&5
13972 echo "${ECHO_T}$LIBART_CFLAGS" >&6
13974 echo "$as_me:$LINENO: checking LIBART_LIBS" >&5
13975 echo $ECHO_N "checking LIBART_LIBS... $ECHO_C" >&6
13976 LIBART_LIBS
=`$PKG_CONFIG --libs "libart-2.0 >= 2.1"`
13977 echo "$as_me:$LINENO: result: $LIBART_LIBS" >&5
13978 echo "${ECHO_T}$LIBART_LIBS" >&6
13982 ## If we have a custom action on failure, don't print errors, but
13983 ## do set a variable so people can do so.
13984 LIBART_PKG_ERRORS
=`$PKG_CONFIG --errors-to-stdout --print-errors "libart-2.0 >= 2.1"`
13985 echo $LIBART_PKG_ERRORS
13991 echo "*** Your version of pkg-config is too old. You need version $PKG_CONFIG_MIN_VERSION or newer."
13992 echo "*** See http://www.freedesktop.org/software/pkgconfig"
13996 if test $succeeded = yes; then
13999 { { echo "$as_me:$LINENO: error: Library requirements (libart-2.0 >= 2.1) not met; consider adjusting the PKG_CONFIG_PATH environment variable if your libraries are in a nonstandard prefix so pkg-config can find them." >&5
14000 echo "$as_me: error: Library requirements (libart-2.0 >= 2.1) not met; consider adjusting the PKG_CONFIG_PATH environment variable if your libraries are in a nonstandard prefix so pkg-config can find them." >&2;}
14001 { (exit 1); exit 1; }; }
14007 # We require the XTest Extension to support java.awt.Robot.
14008 echo "$as_me:$LINENO: checking for XTestQueryExtension in -lXtst" >&5
14009 echo $ECHO_N "checking for XTestQueryExtension in -lXtst... $ECHO_C" >&6
14010 if test "${ac_cv_lib_Xtst_XTestQueryExtension+set}" = set; then
14011 echo $ECHO_N "(cached) $ECHO_C" >&6
14013 ac_check_lib_save_LIBS
=$LIBS
14014 LIBS
="-lXtst ${X_LIBS} $LIBS"
14015 if test x
$gcc_no_link = xyes
; then
14016 { { echo "$as_me:$LINENO: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&5
14017 echo "$as_me: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&2;}
14018 { (exit 1); exit 1; }; }
14020 cat >conftest.
$ac_ext <<_ACEOF
14023 cat confdefs.h
>>conftest.
$ac_ext
14024 cat >>conftest.
$ac_ext <<_ACEOF
14025 /* end confdefs.h. */
14027 /* Override any gcc2 internal prototype to avoid an error. */
14031 /* We use char because int might match the return type of a gcc2
14032 builtin and then its argument prototype would still apply. */
14033 char XTestQueryExtension ();
14037 XTestQueryExtension ();
14042 rm -f conftest.
$ac_objext conftest
$ac_exeext
14043 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
14044 (eval $ac_link) 2>conftest.er1
14046 grep -v '^ *+' conftest.er1
>conftest.err
14048 cat conftest.err
>&5
14049 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14050 (exit $ac_status); } &&
14051 { ac_try
='test -z "$ac_c_werror_flag"
14052 || test ! -s conftest.err'
14053 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14054 (eval $ac_try) 2>&5
14056 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14057 (exit $ac_status); }; } &&
14058 { ac_try
='test -s conftest$ac_exeext'
14059 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14060 (eval $ac_try) 2>&5
14062 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14063 (exit $ac_status); }; }; then
14064 ac_cv_lib_Xtst_XTestQueryExtension
=yes
14066 echo "$as_me: failed program was:" >&5
14067 sed 's/^/| /' conftest.
$ac_ext >&5
14069 ac_cv_lib_Xtst_XTestQueryExtension
=no
14071 rm -f conftest.err conftest.
$ac_objext \
14072 conftest
$ac_exeext conftest.
$ac_ext
14073 LIBS
=$ac_check_lib_save_LIBS
14075 echo "$as_me:$LINENO: result: $ac_cv_lib_Xtst_XTestQueryExtension" >&5
14076 echo "${ECHO_T}$ac_cv_lib_Xtst_XTestQueryExtension" >&6
14077 if test $ac_cv_lib_Xtst_XTestQueryExtension = yes; then
14080 { { echo "$as_me:$LINENO: error: libXtst not found, required by java.awt.Robot" >&5
14081 echo "$as_me: error: libXtst not found, required by java.awt.Robot" >&2;}
14082 { (exit 1); exit 1; }; }
14087 # On Solaris, and maybe other architectures, the Boehm collector
14089 if test "$GC" = boehm
; then
14090 echo "$as_me:$LINENO: checking for main in -ldl" >&5
14091 echo $ECHO_N "checking for main in -ldl... $ECHO_C" >&6
14092 if test "${ac_cv_lib_dl_main+set}" = set; then
14093 echo $ECHO_N "(cached) $ECHO_C" >&6
14095 ac_check_lib_save_LIBS
=$LIBS
14097 if test x
$gcc_no_link = xyes
; then
14098 { { echo "$as_me:$LINENO: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&5
14099 echo "$as_me: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&2;}
14100 { (exit 1); exit 1; }; }
14102 cat >conftest.
$ac_ext <<_ACEOF
14105 cat confdefs.h
>>conftest.
$ac_ext
14106 cat >>conftest.
$ac_ext <<_ACEOF
14107 /* end confdefs.h. */
14118 rm -f conftest.
$ac_objext conftest
$ac_exeext
14119 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
14120 (eval $ac_link) 2>conftest.er1
14122 grep -v '^ *+' conftest.er1
>conftest.err
14124 cat conftest.err
>&5
14125 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14126 (exit $ac_status); } &&
14127 { ac_try
='test -z "$ac_c_werror_flag"
14128 || test ! -s conftest.err'
14129 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14130 (eval $ac_try) 2>&5
14132 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14133 (exit $ac_status); }; } &&
14134 { ac_try
='test -s conftest$ac_exeext'
14135 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14136 (eval $ac_try) 2>&5
14138 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14139 (exit $ac_status); }; }; then
14140 ac_cv_lib_dl_main
=yes
14142 echo "$as_me: failed program was:" >&5
14143 sed 's/^/| /' conftest.
$ac_ext >&5
14145 ac_cv_lib_dl_main
=no
14147 rm -f conftest.err conftest.
$ac_objext \
14148 conftest
$ac_exeext conftest.
$ac_ext
14149 LIBS
=$ac_check_lib_save_LIBS
14151 echo "$as_me:$LINENO: result: $ac_cv_lib_dl_main" >&5
14152 echo "${ECHO_T}$ac_cv_lib_dl_main" >&6
14153 if test $ac_cv_lib_dl_main = yes; then
14154 SYSTEMSPEC
="$SYSTEMSPEC -ldl"
14160 # Use a semicolon as CLASSPATH separator for MinGW, otherwise a colon.
14162 *-mingw32) CLASSPATH_SEPARATOR
=';' ;;
14163 *) CLASSPATH_SEPARATOR
=':' ;;
14167 # We must search the source tree for java.lang, since we still don't
14168 # have libgcj.jar nor java/lang/*.class
14169 GCJ_SAVE_CPPFLAGS
=$CPPFLAGS
14170 CPPFLAGS
="$CPPFLAGS -I`${PWDCMD-pwd}` -I`cd $srcdir && ${PWDCMD-pwd}`"
14172 # Since some classes depend on this one, we need its source available
14173 # before we can do any GCJ compilation test :-(
14174 if test ! -f gnu
/classpath
/Configuration.java
; then
14175 test -d gnu || mkdir gnu
14176 test -d gnu
/classpath || mkdir gnu
/classpath
14177 # Note that it is not crucial that all the values here be correct.
14178 sed -e "s,@prefix@,$prefix," \
14179 -e "s,@VERSION@,$VERSION," \
14180 -e "s,@LIBDEBUG@,false," \
14181 -e "s,@INIT_LOAD_LIBRARY@,false," \
14182 -e "s,@@,$LIBGCJDEBUG," \
14183 -e "s,@default_toolkit@,$TOOLKIT," \
14184 -e "s,@JAVA_LANG_SYSTEM_EXPLICIT_INITIALIZATION@,false," \
14185 -e "s,@GTK_CAIRO_ENABLED@,false," \
14186 < $srcdir/classpath
/gnu
/classpath
/Configuration.java.
in \
14187 > gnu
/classpath
/Configuration.java
14188 # We do not want to redirect the output of the grep below to /dev/null,
14189 # but we add /dev/null to the input list so that grep will print the
14190 # filename of Configuration.java in case it finds any matches.
14191 if grep '@.*@' gnu
/classpath
/Configuration.java
/dev
/null
; then
14192 { { echo "$as_me:$LINENO: error: configure.ac is missing the substitutions above" >&5
14193 echo "$as_me: error: configure.ac is missing the substitutions above" >&2;}
14194 { (exit 1); exit 1; }; }
14198 if test -n "$ac_tool_prefix"; then
14199 # Extract the first word of "${ac_tool_prefix}gcj", so it can be a program name with args.
14200 set dummy
${ac_tool_prefix}gcj
; ac_word
=$2
14201 echo "$as_me:$LINENO: checking for $ac_word" >&5
14202 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
14203 if test "${ac_cv_prog_GCJ+set}" = set; then
14204 echo $ECHO_N "(cached) $ECHO_C" >&6
14206 if test -n "$GCJ"; then
14207 ac_cv_prog_GCJ
="$GCJ" # Let the user override the test.
14209 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
14210 for as_dir
in $PATH
14213 test -z "$as_dir" && as_dir
=.
14214 for ac_exec_ext
in '' $ac_executable_extensions; do
14215 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
14216 ac_cv_prog_GCJ
="${ac_tool_prefix}gcj"
14217 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
14225 GCJ
=$ac_cv_prog_GCJ
14226 if test -n "$GCJ"; then
14227 echo "$as_me:$LINENO: result: $GCJ" >&5
14228 echo "${ECHO_T}$GCJ" >&6
14230 echo "$as_me:$LINENO: result: no" >&5
14231 echo "${ECHO_T}no" >&6
14235 if test -z "$ac_cv_prog_GCJ"; then
14237 # Extract the first word of "gcj", so it can be a program name with args.
14238 set dummy gcj
; ac_word
=$2
14239 echo "$as_me:$LINENO: checking for $ac_word" >&5
14240 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
14241 if test "${ac_cv_prog_ac_ct_GCJ+set}" = set; then
14242 echo $ECHO_N "(cached) $ECHO_C" >&6
14244 if test -n "$ac_ct_GCJ"; then
14245 ac_cv_prog_ac_ct_GCJ
="$ac_ct_GCJ" # Let the user override the test.
14247 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
14248 for as_dir
in $PATH
14251 test -z "$as_dir" && as_dir
=.
14252 for ac_exec_ext
in '' $ac_executable_extensions; do
14253 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
14254 ac_cv_prog_ac_ct_GCJ
="gcj"
14255 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
14261 test -z "$ac_cv_prog_ac_ct_GCJ" && ac_cv_prog_ac_ct_GCJ
="no"
14264 ac_ct_GCJ
=$ac_cv_prog_ac_ct_GCJ
14265 if test -n "$ac_ct_GCJ"; then
14266 echo "$as_me:$LINENO: result: $ac_ct_GCJ" >&5
14267 echo "${ECHO_T}$ac_ct_GCJ" >&6
14269 echo "$as_me:$LINENO: result: no" >&5
14270 echo "${ECHO_T}no" >&6
14275 GCJ
="$ac_cv_prog_GCJ"
14278 test "x${GCJFLAGS+set}" = xset || GCJFLAGS
="-g -O2"
14284 rm -f gnu
/classpath
/Configuration.java
14286 CPPFLAGS
=$GCJ_SAVE_CPPFLAGS
14288 echo "$as_me:$LINENO: checking for void *" >&5
14289 echo $ECHO_N "checking for void *... $ECHO_C" >&6
14290 if test "${ac_cv_type_void_p+set}" = set; then
14291 echo $ECHO_N "(cached) $ECHO_C" >&6
14293 cat >conftest.
$ac_ext <<_ACEOF
14296 cat confdefs.h
>>conftest.
$ac_ext
14297 cat >>conftest.
$ac_ext <<_ACEOF
14298 /* end confdefs.h. */
14299 $ac_includes_default
14305 if (sizeof (void *))
14311 rm -f conftest.
$ac_objext
14312 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
14313 (eval $ac_compile) 2>conftest.er1
14315 grep -v '^ *+' conftest.er1
>conftest.err
14317 cat conftest.err
>&5
14318 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14319 (exit $ac_status); } &&
14320 { ac_try
='test -z "$ac_c_werror_flag"
14321 || test ! -s conftest.err'
14322 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14323 (eval $ac_try) 2>&5
14325 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14326 (exit $ac_status); }; } &&
14327 { ac_try
='test -s conftest.$ac_objext'
14328 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14329 (eval $ac_try) 2>&5
14331 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14332 (exit $ac_status); }; }; then
14333 ac_cv_type_void_p
=yes
14335 echo "$as_me: failed program was:" >&5
14336 sed 's/^/| /' conftest.
$ac_ext >&5
14338 ac_cv_type_void_p
=no
14340 rm -f conftest.err conftest.
$ac_objext conftest.
$ac_ext
14342 echo "$as_me:$LINENO: result: $ac_cv_type_void_p" >&5
14343 echo "${ECHO_T}$ac_cv_type_void_p" >&6
14345 echo "$as_me:$LINENO: checking size of void *" >&5
14346 echo $ECHO_N "checking size of void *... $ECHO_C" >&6
14347 if test "${ac_cv_sizeof_void_p+set}" = set; then
14348 echo $ECHO_N "(cached) $ECHO_C" >&6
14350 if test "$ac_cv_type_void_p" = yes; then
14351 # The cast to unsigned long works around a bug in the HP C Compiler
14352 # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
14353 # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
14354 # This bug is HP SR number 8606223364.
14355 if test "$cross_compiling" = yes; then
14356 # Depending upon the size, compute the lo and hi bounds.
14357 cat >conftest.
$ac_ext <<_ACEOF
14360 cat confdefs.h
>>conftest.
$ac_ext
14361 cat >>conftest.
$ac_ext <<_ACEOF
14362 /* end confdefs.h. */
14363 $ac_includes_default
14367 static int test_array [1 - 2 * !(((long) (sizeof (void *))) >= 0)];
14374 rm -f conftest.
$ac_objext
14375 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
14376 (eval $ac_compile) 2>conftest.er1
14378 grep -v '^ *+' conftest.er1
>conftest.err
14380 cat conftest.err
>&5
14381 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14382 (exit $ac_status); } &&
14383 { ac_try
='test -z "$ac_c_werror_flag"
14384 || test ! -s conftest.err'
14385 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14386 (eval $ac_try) 2>&5
14388 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14389 (exit $ac_status); }; } &&
14390 { ac_try
='test -s conftest.$ac_objext'
14391 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14392 (eval $ac_try) 2>&5
14394 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14395 (exit $ac_status); }; }; then
14398 cat >conftest.
$ac_ext <<_ACEOF
14401 cat confdefs.h
>>conftest.
$ac_ext
14402 cat >>conftest.
$ac_ext <<_ACEOF
14403 /* end confdefs.h. */
14404 $ac_includes_default
14408 static int test_array [1 - 2 * !(((long) (sizeof (void *))) <= $ac_mid)];
14415 rm -f conftest.
$ac_objext
14416 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
14417 (eval $ac_compile) 2>conftest.er1
14419 grep -v '^ *+' conftest.er1
>conftest.err
14421 cat conftest.err
>&5
14422 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14423 (exit $ac_status); } &&
14424 { ac_try
='test -z "$ac_c_werror_flag"
14425 || test ! -s conftest.err'
14426 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14427 (eval $ac_try) 2>&5
14429 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14430 (exit $ac_status); }; } &&
14431 { ac_try
='test -s conftest.$ac_objext'
14432 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14433 (eval $ac_try) 2>&5
14435 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14436 (exit $ac_status); }; }; then
14437 ac_hi
=$ac_mid; break
14439 echo "$as_me: failed program was:" >&5
14440 sed 's/^/| /' conftest.
$ac_ext >&5
14442 ac_lo
=`expr $ac_mid + 1`
14443 if test $ac_lo -le $ac_mid; then
14447 ac_mid
=`expr 2 '*' $ac_mid + 1`
14449 rm -f conftest.err conftest.
$ac_objext conftest.
$ac_ext
14452 echo "$as_me: failed program was:" >&5
14453 sed 's/^/| /' conftest.
$ac_ext >&5
14455 cat >conftest.
$ac_ext <<_ACEOF
14458 cat confdefs.h
>>conftest.
$ac_ext
14459 cat >>conftest.
$ac_ext <<_ACEOF
14460 /* end confdefs.h. */
14461 $ac_includes_default
14465 static int test_array [1 - 2 * !(((long) (sizeof (void *))) < 0)];
14472 rm -f conftest.
$ac_objext
14473 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
14474 (eval $ac_compile) 2>conftest.er1
14476 grep -v '^ *+' conftest.er1
>conftest.err
14478 cat conftest.err
>&5
14479 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14480 (exit $ac_status); } &&
14481 { ac_try
='test -z "$ac_c_werror_flag"
14482 || test ! -s conftest.err'
14483 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14484 (eval $ac_try) 2>&5
14486 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14487 (exit $ac_status); }; } &&
14488 { ac_try
='test -s conftest.$ac_objext'
14489 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14490 (eval $ac_try) 2>&5
14492 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14493 (exit $ac_status); }; }; then
14496 cat >conftest.
$ac_ext <<_ACEOF
14499 cat confdefs.h
>>conftest.
$ac_ext
14500 cat >>conftest.
$ac_ext <<_ACEOF
14501 /* end confdefs.h. */
14502 $ac_includes_default
14506 static int test_array [1 - 2 * !(((long) (sizeof (void *))) >= $ac_mid)];
14513 rm -f conftest.
$ac_objext
14514 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
14515 (eval $ac_compile) 2>conftest.er1
14517 grep -v '^ *+' conftest.er1
>conftest.err
14519 cat conftest.err
>&5
14520 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14521 (exit $ac_status); } &&
14522 { ac_try
='test -z "$ac_c_werror_flag"
14523 || test ! -s conftest.err'
14524 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14525 (eval $ac_try) 2>&5
14527 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14528 (exit $ac_status); }; } &&
14529 { ac_try
='test -s conftest.$ac_objext'
14530 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14531 (eval $ac_try) 2>&5
14533 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14534 (exit $ac_status); }; }; then
14535 ac_lo
=$ac_mid; break
14537 echo "$as_me: failed program was:" >&5
14538 sed 's/^/| /' conftest.
$ac_ext >&5
14540 ac_hi
=`expr '(' $ac_mid ')' - 1`
14541 if test $ac_mid -le $ac_hi; then
14545 ac_mid
=`expr 2 '*' $ac_mid`
14547 rm -f conftest.err conftest.
$ac_objext conftest.
$ac_ext
14550 echo "$as_me: failed program was:" >&5
14551 sed 's/^/| /' conftest.
$ac_ext >&5
14555 rm -f conftest.err conftest.
$ac_objext conftest.
$ac_ext
14557 rm -f conftest.err conftest.
$ac_objext conftest.
$ac_ext
14558 # Binary search between lo and hi bounds.
14559 while test "x$ac_lo" != "x$ac_hi"; do
14560 ac_mid
=`expr '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo`
14561 cat >conftest.
$ac_ext <<_ACEOF
14564 cat confdefs.h
>>conftest.
$ac_ext
14565 cat >>conftest.
$ac_ext <<_ACEOF
14566 /* end confdefs.h. */
14567 $ac_includes_default
14571 static int test_array [1 - 2 * !(((long) (sizeof (void *))) <= $ac_mid)];
14578 rm -f conftest.
$ac_objext
14579 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
14580 (eval $ac_compile) 2>conftest.er1
14582 grep -v '^ *+' conftest.er1
>conftest.err
14584 cat conftest.err
>&5
14585 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14586 (exit $ac_status); } &&
14587 { ac_try
='test -z "$ac_c_werror_flag"
14588 || test ! -s conftest.err'
14589 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14590 (eval $ac_try) 2>&5
14592 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14593 (exit $ac_status); }; } &&
14594 { ac_try
='test -s conftest.$ac_objext'
14595 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14596 (eval $ac_try) 2>&5
14598 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14599 (exit $ac_status); }; }; then
14602 echo "$as_me: failed program was:" >&5
14603 sed 's/^/| /' conftest.
$ac_ext >&5
14605 ac_lo
=`expr '(' $ac_mid ')' + 1`
14607 rm -f conftest.err conftest.
$ac_objext conftest.
$ac_ext
14610 ?
*) ac_cv_sizeof_void_p
=$ac_lo;;
14611 '') { { echo "$as_me:$LINENO: error: cannot compute sizeof (void *), 77
14612 See \`config.log' for more details." >&5
14613 echo "$as_me: error: cannot compute sizeof (void *), 77
14614 See \`config.log' for more details." >&2;}
14615 { (exit 1); exit 1; }; } ;;
14618 if test "$cross_compiling" = yes; then
14619 { { echo "$as_me:$LINENO: error: cannot run test program while cross compiling
14620 See \`config.log' for more details." >&5
14621 echo "$as_me: error: cannot run test program while cross compiling
14622 See \`config.log' for more details." >&2;}
14623 { (exit 1); exit 1; }; }
14625 cat >conftest.
$ac_ext <<_ACEOF
14628 cat confdefs.h
>>conftest.
$ac_ext
14629 cat >>conftest.
$ac_ext <<_ACEOF
14630 /* end confdefs.h. */
14631 $ac_includes_default
14632 long longval () { return (long) (sizeof (void *)); }
14633 unsigned long ulongval () { return (long) (sizeof (void *)); }
14635 #include <stdlib.h>
14640 FILE *f = fopen ("conftest.val", "w");
14643 if (((long) (sizeof (void *))) < 0)
14645 long i = longval ();
14646 if (i != ((long) (sizeof (void *))))
14648 fprintf (f, "%ld\n", i);
14652 unsigned long i = ulongval ();
14653 if (i != ((long) (sizeof (void *))))
14655 fprintf (f, "%lu\n", i);
14657 exit (ferror (f) || fclose (f) != 0);
14663 rm -f conftest
$ac_exeext
14664 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
14665 (eval $ac_link) 2>&5
14667 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14668 (exit $ac_status); } && { ac_try
='./conftest$ac_exeext'
14669 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14670 (eval $ac_try) 2>&5
14672 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14673 (exit $ac_status); }; }; then
14674 ac_cv_sizeof_void_p
=`cat conftest.val`
14676 echo "$as_me: program exited with status $ac_status" >&5
14677 echo "$as_me: failed program was:" >&5
14678 sed 's/^/| /' conftest.
$ac_ext >&5
14680 ( exit $ac_status )
14681 { { echo "$as_me:$LINENO: error: cannot compute sizeof (void *), 77
14682 See \`config.log' for more details." >&5
14683 echo "$as_me: error: cannot compute sizeof (void *), 77
14684 See \`config.log' for more details." >&2;}
14685 { (exit 1); exit 1; }; }
14687 rm -f core
*.core gmon.out bb.out conftest
$ac_exeext conftest.
$ac_objext conftest.
$ac_ext
14692 ac_cv_sizeof_void_p
=0
14695 echo "$as_me:$LINENO: result: $ac_cv_sizeof_void_p" >&5
14696 echo "${ECHO_T}$ac_cv_sizeof_void_p" >&6
14697 cat >>confdefs.h
<<_ACEOF
14698 #define SIZEOF_VOID_P $ac_cv_sizeof_void_p
14703 echo "$as_me:$LINENO: checking whether byte ordering is bigendian" >&5
14704 echo $ECHO_N "checking whether byte ordering is bigendian... $ECHO_C" >&6
14705 if test "${ac_cv_c_bigendian+set}" = set; then
14706 echo $ECHO_N "(cached) $ECHO_C" >&6
14708 # See if sys/param.h defines the BYTE_ORDER macro.
14709 cat >conftest.
$ac_ext <<_ACEOF
14712 cat confdefs.h
>>conftest.
$ac_ext
14713 cat >>conftest.
$ac_ext <<_ACEOF
14714 /* end confdefs.h. */
14715 #include <sys/types.h>
14716 #include <sys/param.h>
14721 #if !BYTE_ORDER || !BIG_ENDIAN || !LITTLE_ENDIAN
14722 bogus endian macros
14729 rm -f conftest.
$ac_objext
14730 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
14731 (eval $ac_compile) 2>conftest.er1
14733 grep -v '^ *+' conftest.er1
>conftest.err
14735 cat conftest.err
>&5
14736 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14737 (exit $ac_status); } &&
14738 { ac_try
='test -z "$ac_c_werror_flag"
14739 || test ! -s conftest.err'
14740 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14741 (eval $ac_try) 2>&5
14743 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14744 (exit $ac_status); }; } &&
14745 { ac_try
='test -s conftest.$ac_objext'
14746 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14747 (eval $ac_try) 2>&5
14749 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14750 (exit $ac_status); }; }; then
14751 # It does; now see whether it defined to BIG_ENDIAN or not.
14752 cat >conftest.
$ac_ext <<_ACEOF
14755 cat confdefs.h
>>conftest.
$ac_ext
14756 cat >>conftest.
$ac_ext <<_ACEOF
14757 /* end confdefs.h. */
14758 #include <sys/types.h>
14759 #include <sys/param.h>
14764 #if BYTE_ORDER != BIG_ENDIAN
14772 rm -f conftest.
$ac_objext
14773 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
14774 (eval $ac_compile) 2>conftest.er1
14776 grep -v '^ *+' conftest.er1
>conftest.err
14778 cat conftest.err
>&5
14779 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14780 (exit $ac_status); } &&
14781 { ac_try
='test -z "$ac_c_werror_flag"
14782 || test ! -s conftest.err'
14783 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14784 (eval $ac_try) 2>&5
14786 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14787 (exit $ac_status); }; } &&
14788 { ac_try
='test -s conftest.$ac_objext'
14789 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14790 (eval $ac_try) 2>&5
14792 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14793 (exit $ac_status); }; }; then
14794 ac_cv_c_bigendian
=yes
14796 echo "$as_me: failed program was:" >&5
14797 sed 's/^/| /' conftest.
$ac_ext >&5
14799 ac_cv_c_bigendian
=no
14801 rm -f conftest.err conftest.
$ac_objext conftest.
$ac_ext
14803 echo "$as_me: failed program was:" >&5
14804 sed 's/^/| /' conftest.
$ac_ext >&5
14806 # It does not; compile a test program.
14807 if test "$cross_compiling" = yes; then
14808 # try to guess the endianness by grepping values into an object file
14809 ac_cv_c_bigendian
=unknown
14810 cat >conftest.
$ac_ext <<_ACEOF
14813 cat confdefs.h
>>conftest.
$ac_ext
14814 cat >>conftest.
$ac_ext <<_ACEOF
14815 /* end confdefs.h. */
14816 short ascii_mm[] = { 0x4249, 0x4765, 0x6E44, 0x6961, 0x6E53, 0x7953, 0 };
14817 short ascii_ii[] = { 0x694C, 0x5454, 0x656C, 0x6E45, 0x6944, 0x6E61, 0 };
14818 void _ascii () { char *s = (char *) ascii_mm; s = (char *) ascii_ii; }
14819 short ebcdic_ii[] = { 0x89D3, 0xE3E3, 0x8593, 0x95C5, 0x89C4, 0x9581, 0 };
14820 short ebcdic_mm[] = { 0xC2C9, 0xC785, 0x95C4, 0x8981, 0x95E2, 0xA8E2, 0 };
14821 void _ebcdic () { char *s = (char *) ebcdic_mm; s = (char *) ebcdic_ii; }
14825 _ascii (); _ebcdic ();
14830 rm -f conftest.
$ac_objext
14831 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
14832 (eval $ac_compile) 2>conftest.er1
14834 grep -v '^ *+' conftest.er1
>conftest.err
14836 cat conftest.err
>&5
14837 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14838 (exit $ac_status); } &&
14839 { ac_try
='test -z "$ac_c_werror_flag"
14840 || test ! -s conftest.err'
14841 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14842 (eval $ac_try) 2>&5
14844 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14845 (exit $ac_status); }; } &&
14846 { ac_try
='test -s conftest.$ac_objext'
14847 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14848 (eval $ac_try) 2>&5
14850 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14851 (exit $ac_status); }; }; then
14852 if grep BIGenDianSyS conftest.
$ac_objext >/dev
/null
; then
14853 ac_cv_c_bigendian
=yes
14855 if grep LiTTleEnDian conftest.
$ac_objext >/dev
/null
; then
14856 if test "$ac_cv_c_bigendian" = unknown
; then
14857 ac_cv_c_bigendian
=no
14859 # finding both strings is unlikely to happen, but who knows?
14860 ac_cv_c_bigendian
=unknown
14864 echo "$as_me: failed program was:" >&5
14865 sed 's/^/| /' conftest.
$ac_ext >&5
14868 rm -f conftest.err conftest.
$ac_objext conftest.
$ac_ext
14870 cat >conftest.
$ac_ext <<_ACEOF
14873 cat confdefs.h
>>conftest.
$ac_ext
14874 cat >>conftest.
$ac_ext <<_ACEOF
14875 /* end confdefs.h. */
14879 /* Are we little or big endian? From Harbison&Steele. */
14883 char c[sizeof (long)];
14886 exit (u.c[sizeof (long) - 1] == 1);
14889 rm -f conftest
$ac_exeext
14890 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
14891 (eval $ac_link) 2>&5
14893 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14894 (exit $ac_status); } && { ac_try
='./conftest$ac_exeext'
14895 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14896 (eval $ac_try) 2>&5
14898 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14899 (exit $ac_status); }; }; then
14900 ac_cv_c_bigendian
=no
14902 echo "$as_me: program exited with status $ac_status" >&5
14903 echo "$as_me: failed program was:" >&5
14904 sed 's/^/| /' conftest.
$ac_ext >&5
14906 ( exit $ac_status )
14907 ac_cv_c_bigendian
=yes
14909 rm -f core
*.core gmon.out bb.out conftest
$ac_exeext conftest.
$ac_objext conftest.
$ac_ext
14912 rm -f conftest.err conftest.
$ac_objext conftest.
$ac_ext
14914 echo "$as_me:$LINENO: result: $ac_cv_c_bigendian" >&5
14915 echo "${ECHO_T}$ac_cv_c_bigendian" >&6
14916 case $ac_cv_c_bigendian in
14919 cat >>confdefs.h
<<\_ACEOF
14920 #define WORDS_BIGENDIAN 1
14926 { { echo "$as_me:$LINENO: error: unknown endianness
14927 presetting ac_cv_c_bigendian=no (or yes) will help" >&5
14928 echo "$as_me: error: unknown endianness
14929 presetting ac_cv_c_bigendian=no (or yes) will help" >&2;}
14930 { (exit 1); exit 1; }; } ;;
14938 if test -z "$ZLIBSPEC"; then
14939 # Use zlib from the GCC tree.
14940 ZINCS
='-I$(top_srcdir)/../zlib'
14941 ZLIBS
=..
/zlib
/libzgcj_convenience.la
14944 SYS_ZLIBS
="$ZLIBSPEC"
14957 if test "$NATIVE" = yes; then
14967 if test "$NEEDS_DATA_START" = yes && test "$NATIVE" = yes; then
14968 NEEDS_DATA_START_TRUE
=
14969 NEEDS_DATA_START_FALSE
='#'
14971 NEEDS_DATA_START_TRUE
='#'
14972 NEEDS_DATA_START_FALSE
=
14977 # Process the option "--enable-version-specific-runtime-libs"
14978 # Calculate toolexeclibdir
14979 case ${version_specific_libs} in
14981 # Need the gcc compiler version to know where to install libraries
14982 # and header files if --enable-version-specific-runtime-libs option
14984 includedir
='$(libdir)/gcc/$(target_noncanonical)/$(gcc_version)/include/'
14985 toolexecdir
='$(libdir)/gcc/$(target_noncanonical)'
14986 toolexecmainlibdir
='$(toolexecdir)/$(gcc_version)$(MULTISUBDIR)'
14987 toolexeclibdir
=$toolexecmainlibdir
14990 if test -n "$with_cross_host" &&
14991 test x
"$with_cross_host" != x
"no"; then
14992 # Install a library built with a cross compiler in tooldir, not libdir.
14993 toolexecdir
='$(exec_prefix)/$(target_noncanonical)'
14994 toolexecmainlibdir
='$(toolexecdir)/lib'
14996 toolexecdir
='$(libdir)/gcc-lib/$(target_noncanonical)'
14997 toolexecmainlibdir
='$(libdir)'
14999 multi_os_directory
=`$CC -print-multi-os-directory`
15000 case $multi_os_directory in
15001 .
) toolexeclibdir
=$toolexecmainlibdir ;; # Avoid trailing /.
15002 *) toolexeclibdir
=$toolexecmainlibdir/$multi_os_directory ;;
15010 # Determine where the standard .db file and GNU Classpath JNI
15011 # libraries are found.
15012 multi_os_directory
=`$CC -print-multi-os-directory`
15013 case $multi_os_directory in
15015 dbexecdir
='$(libdir)/gcj-$(gcc_version)' # Avoid /.
15016 ac_configure_args
="$ac_configure_args --with-native-libdir=\$\(libdir\)/gcj-`cat $srcdir/../gcc/BASE-VER`"
15019 dbexecdir
='$(libdir)/'$multi_os_directory'/gcj-$(gcc_version)'
15020 ac_configure_args
="$ac_configure_args --with-native-libdir=\$\(libdir\)/$multi_os_directory/gcj-`cat $srcdir/../gcc/BASE-VER`"
15025 # Determine gcj version number.
15026 gcjversion
=`$GCJ -v 2>&1 | sed -n 's/^.*version \([^ ]*\).*$/\1/p'`
15027 GCJVERSION
=$gcjversion
15030 cat >>confdefs.h
<<_ACEOF
15031 #define GCJVERSION "$GCJVERSION"
15036 cat >>confdefs.h
<<\_ACEOF
15037 #define JV_VERSION "1.4.2"
15041 cat >>confdefs.h
<<\_ACEOF
15042 #define JV_API_VERSION "1.4"
15047 case "${with_gxx_include_dir}" in
15049 { { echo "$as_me:$LINENO: error: --with-gxx-include-dir=[dir] requires a directory" >&5
15050 echo "$as_me: error: --with-gxx-include-dir=[dir] requires a directory" >&2;}
15051 { (exit 1); exit 1; }; }
15054 case "${enable_version_specific_runtime_libs}" in
15055 yes) gxx_include_dir
='$(libsubdir)/include/c++' ;;
15057 libstdcxx_incdir
='c++/$(gcc_version)'
15058 gxx_include_dir
='include/$(libstdcxx_incdir)'
15059 if test -n "$with_cross_host" &&
15060 test x
"$with_cross_host" != x
"no"; then
15061 gxx_include_dir
='${prefix}/${target_alias}/'"$gxx_include_dir"
15063 gxx_include_dir
='${prefix}/'"$gxx_include_dir"
15066 *) gxx_include_dir
=${with_gxx_include_dir} ;;
15072 # We check for sys/filio.h because Solaris 2.5 defines FIONREAD there.
15073 # On that system, sys/ioctl.h will not include sys/filio.h unless
15074 # BSD_COMP is defined; just including sys/filio.h is simpler.
15075 # We avoid AC_HEADER_DIRENT since we really only care about dirent.h
15076 # for now. If you change this, you also must update natFile.cc.
15098 for ac_header
in unistd.h bstring.h sys
/time.h sys
/types.h fcntl.h \
15099 sys
/ioctl.h sys
/filio.h sys
/stat.h sys
/select.h \
15100 sys
/socket.h netinet
/in.h arpa
/inet.h netdb.h net
/if.h \
15101 pwd.h sys
/config.h stdint.h langinfo.h locale.h \
15102 dirent.h sys
/rw_lock.h
15104 as_ac_Header
=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
15105 if eval "test \"\${$as_ac_Header+set}\" = set"; then
15106 echo "$as_me:$LINENO: checking for $ac_header" >&5
15107 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
15108 if eval "test \"\${$as_ac_Header+set}\" = set"; then
15109 echo $ECHO_N "(cached) $ECHO_C" >&6
15111 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
15112 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
15114 # Is the header compilable?
15115 echo "$as_me:$LINENO: checking $ac_header usability" >&5
15116 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
15117 cat >conftest.
$ac_ext <<_ACEOF
15120 cat confdefs.h
>>conftest.
$ac_ext
15121 cat >>conftest.
$ac_ext <<_ACEOF
15122 /* end confdefs.h. */
15123 $ac_includes_default
15124 #include <$ac_header>
15126 rm -f conftest.
$ac_objext
15127 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
15128 (eval $ac_compile) 2>conftest.er1
15130 grep -v '^ *+' conftest.er1
>conftest.err
15132 cat conftest.err
>&5
15133 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15134 (exit $ac_status); } &&
15135 { ac_try
='test -z "$ac_c_werror_flag"
15136 || test ! -s conftest.err'
15137 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15138 (eval $ac_try) 2>&5
15140 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15141 (exit $ac_status); }; } &&
15142 { ac_try
='test -s conftest.$ac_objext'
15143 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15144 (eval $ac_try) 2>&5
15146 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15147 (exit $ac_status); }; }; then
15148 ac_header_compiler
=yes
15150 echo "$as_me: failed program was:" >&5
15151 sed 's/^/| /' conftest.
$ac_ext >&5
15153 ac_header_compiler
=no
15155 rm -f conftest.err conftest.
$ac_objext conftest.
$ac_ext
15156 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
15157 echo "${ECHO_T}$ac_header_compiler" >&6
15159 # Is the header present?
15160 echo "$as_me:$LINENO: checking $ac_header presence" >&5
15161 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
15162 cat >conftest.
$ac_ext <<_ACEOF
15165 cat confdefs.h
>>conftest.
$ac_ext
15166 cat >>conftest.
$ac_ext <<_ACEOF
15167 /* end confdefs.h. */
15168 #include <$ac_header>
15170 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
15171 (eval $ac_cpp conftest.
$ac_ext) 2>conftest.er1
15173 grep -v '^ *+' conftest.er1
>conftest.err
15175 cat conftest.err
>&5
15176 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15177 (exit $ac_status); } >/dev
/null
; then
15178 if test -s conftest.err
; then
15179 ac_cpp_err
=$ac_c_preproc_warn_flag
15180 ac_cpp_err
=$ac_cpp_err$ac_c_werror_flag
15187 if test -z "$ac_cpp_err"; then
15188 ac_header_preproc
=yes
15190 echo "$as_me: failed program was:" >&5
15191 sed 's/^/| /' conftest.
$ac_ext >&5
15193 ac_header_preproc
=no
15195 rm -f conftest.err conftest.
$ac_ext
15196 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
15197 echo "${ECHO_T}$ac_header_preproc" >&6
15199 # So? What about this header?
15200 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
15202 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
15203 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
15204 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
15205 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
15206 ac_header_preproc
=yes
15209 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
15210 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
15211 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
15212 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
15213 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
15214 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
15215 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
15216 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
15217 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
15218 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
15219 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
15220 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
15223 ## ---------------------------------- ##
15224 ## Report this to the libjava lists. ##
15225 ## ---------------------------------- ##
15228 sed "s/^/$as_me: WARNING: /" >&2
15231 echo "$as_me:$LINENO: checking for $ac_header" >&5
15232 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
15233 if eval "test \"\${$as_ac_Header+set}\" = set"; then
15234 echo $ECHO_N "(cached) $ECHO_C" >&6
15236 eval "$as_ac_Header=\$ac_header_preproc"
15238 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
15239 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
15242 if test `eval echo '${'$as_ac_Header'}'` = yes; then
15243 cat >>confdefs.h
<<_ACEOF
15244 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
15252 for ac_header
in inttypes.h
15254 as_ac_Header
=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
15255 if eval "test \"\${$as_ac_Header+set}\" = set"; then
15256 echo "$as_me:$LINENO: checking for $ac_header" >&5
15257 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
15258 if eval "test \"\${$as_ac_Header+set}\" = set"; then
15259 echo $ECHO_N "(cached) $ECHO_C" >&6
15261 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
15262 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
15264 # Is the header compilable?
15265 echo "$as_me:$LINENO: checking $ac_header usability" >&5
15266 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
15267 cat >conftest.
$ac_ext <<_ACEOF
15270 cat confdefs.h
>>conftest.
$ac_ext
15271 cat >>conftest.
$ac_ext <<_ACEOF
15272 /* end confdefs.h. */
15273 $ac_includes_default
15274 #include <$ac_header>
15276 rm -f conftest.
$ac_objext
15277 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
15278 (eval $ac_compile) 2>conftest.er1
15280 grep -v '^ *+' conftest.er1
>conftest.err
15282 cat conftest.err
>&5
15283 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15284 (exit $ac_status); } &&
15285 { ac_try
='test -z "$ac_c_werror_flag"
15286 || test ! -s conftest.err'
15287 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15288 (eval $ac_try) 2>&5
15290 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15291 (exit $ac_status); }; } &&
15292 { ac_try
='test -s conftest.$ac_objext'
15293 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15294 (eval $ac_try) 2>&5
15296 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15297 (exit $ac_status); }; }; then
15298 ac_header_compiler
=yes
15300 echo "$as_me: failed program was:" >&5
15301 sed 's/^/| /' conftest.
$ac_ext >&5
15303 ac_header_compiler
=no
15305 rm -f conftest.err conftest.
$ac_objext conftest.
$ac_ext
15306 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
15307 echo "${ECHO_T}$ac_header_compiler" >&6
15309 # Is the header present?
15310 echo "$as_me:$LINENO: checking $ac_header presence" >&5
15311 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
15312 cat >conftest.
$ac_ext <<_ACEOF
15315 cat confdefs.h
>>conftest.
$ac_ext
15316 cat >>conftest.
$ac_ext <<_ACEOF
15317 /* end confdefs.h. */
15318 #include <$ac_header>
15320 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
15321 (eval $ac_cpp conftest.
$ac_ext) 2>conftest.er1
15323 grep -v '^ *+' conftest.er1
>conftest.err
15325 cat conftest.err
>&5
15326 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15327 (exit $ac_status); } >/dev
/null
; then
15328 if test -s conftest.err
; then
15329 ac_cpp_err
=$ac_c_preproc_warn_flag
15330 ac_cpp_err
=$ac_cpp_err$ac_c_werror_flag
15337 if test -z "$ac_cpp_err"; then
15338 ac_header_preproc
=yes
15340 echo "$as_me: failed program was:" >&5
15341 sed 's/^/| /' conftest.
$ac_ext >&5
15343 ac_header_preproc
=no
15345 rm -f conftest.err conftest.
$ac_ext
15346 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
15347 echo "${ECHO_T}$ac_header_preproc" >&6
15349 # So? What about this header?
15350 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
15352 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
15353 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
15354 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
15355 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
15356 ac_header_preproc
=yes
15359 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
15360 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
15361 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
15362 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
15363 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
15364 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
15365 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
15366 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
15367 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
15368 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
15369 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
15370 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
15373 ## ---------------------------------- ##
15374 ## Report this to the libjava lists. ##
15375 ## ---------------------------------- ##
15378 sed "s/^/$as_me: WARNING: /" >&2
15381 echo "$as_me:$LINENO: checking for $ac_header" >&5
15382 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
15383 if eval "test \"\${$as_ac_Header+set}\" = set"; then
15384 echo $ECHO_N "(cached) $ECHO_C" >&6
15386 eval "$as_ac_Header=\$ac_header_preproc"
15388 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
15389 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
15392 if test `eval echo '${'$as_ac_Header'}'` = yes; then
15393 cat >>confdefs.h
<<_ACEOF
15394 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
15398 cat >>confdefs.h
<<\_ACEOF
15399 #define HAVE_INTTYPES_H 1
15403 cat >>confdefs.h
<<\_ACEOF
15404 #define JV_HAVE_INTTYPES_H 1
15412 echo "$as_me:$LINENO: checking for sys/wait.h that is POSIX.1 compatible" >&5
15413 echo $ECHO_N "checking for sys/wait.h that is POSIX.1 compatible... $ECHO_C" >&6
15414 if test "${ac_cv_header_sys_wait_h+set}" = set; then
15415 echo $ECHO_N "(cached) $ECHO_C" >&6
15417 cat >conftest.
$ac_ext <<_ACEOF
15420 cat confdefs.h
>>conftest.
$ac_ext
15421 cat >>conftest.
$ac_ext <<_ACEOF
15422 /* end confdefs.h. */
15423 #include <sys/types.h>
15424 #include <sys/wait.h>
15425 #ifndef WEXITSTATUS
15426 # define WEXITSTATUS(stat_val) ((unsigned)(stat_val) >> 8)
15429 # define WIFEXITED(stat_val) (((stat_val) & 255) == 0)
15437 s = WIFEXITED (s) ? WEXITSTATUS (s) : 1;
15442 rm -f conftest.
$ac_objext
15443 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
15444 (eval $ac_compile) 2>conftest.er1
15446 grep -v '^ *+' conftest.er1
>conftest.err
15448 cat conftest.err
>&5
15449 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15450 (exit $ac_status); } &&
15451 { ac_try
='test -z "$ac_c_werror_flag"
15452 || test ! -s conftest.err'
15453 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15454 (eval $ac_try) 2>&5
15456 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15457 (exit $ac_status); }; } &&
15458 { ac_try
='test -s conftest.$ac_objext'
15459 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15460 (eval $ac_try) 2>&5
15462 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15463 (exit $ac_status); }; }; then
15464 ac_cv_header_sys_wait_h
=yes
15466 echo "$as_me: failed program was:" >&5
15467 sed 's/^/| /' conftest.
$ac_ext >&5
15469 ac_cv_header_sys_wait_h
=no
15471 rm -f conftest.err conftest.
$ac_objext conftest.
$ac_ext
15473 echo "$as_me:$LINENO: result: $ac_cv_header_sys_wait_h" >&5
15474 echo "${ECHO_T}$ac_cv_header_sys_wait_h" >&6
15475 if test $ac_cv_header_sys_wait_h = yes; then
15477 cat >>confdefs.h
<<\_ACEOF
15478 #define HAVE_SYS_WAIT_H 1
15484 echo "$as_me:$LINENO: checking for ssize_t" >&5
15485 echo $ECHO_N "checking for ssize_t... $ECHO_C" >&6
15486 if test "${ac_cv_type_ssize_t+set}" = set; then
15487 echo $ECHO_N "(cached) $ECHO_C" >&6
15489 cat >conftest.
$ac_ext <<_ACEOF
15492 cat confdefs.h
>>conftest.
$ac_ext
15493 cat >>conftest.
$ac_ext <<_ACEOF
15494 /* end confdefs.h. */
15495 $ac_includes_default
15501 if (sizeof (ssize_t))
15507 rm -f conftest.
$ac_objext
15508 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
15509 (eval $ac_compile) 2>conftest.er1
15511 grep -v '^ *+' conftest.er1
>conftest.err
15513 cat conftest.err
>&5
15514 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15515 (exit $ac_status); } &&
15516 { ac_try
='test -z "$ac_c_werror_flag"
15517 || test ! -s conftest.err'
15518 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15519 (eval $ac_try) 2>&5
15521 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15522 (exit $ac_status); }; } &&
15523 { ac_try
='test -s conftest.$ac_objext'
15524 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15525 (eval $ac_try) 2>&5
15527 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15528 (exit $ac_status); }; }; then
15529 ac_cv_type_ssize_t
=yes
15531 echo "$as_me: failed program was:" >&5
15532 sed 's/^/| /' conftest.
$ac_ext >&5
15534 ac_cv_type_ssize_t
=no
15536 rm -f conftest.err conftest.
$ac_objext conftest.
$ac_ext
15538 echo "$as_me:$LINENO: result: $ac_cv_type_ssize_t" >&5
15539 echo "${ECHO_T}$ac_cv_type_ssize_t" >&6
15540 if test $ac_cv_type_ssize_t = yes; then
15544 cat >>confdefs.h
<<_ACEOF
15545 #define ssize_t int
15551 echo "$as_me:$LINENO: checking for in_addr_t" >&5
15552 echo $ECHO_N "checking for in_addr_t... $ECHO_C" >&6
15553 cat >conftest.
$ac_ext <<_ACEOF
15556 cat confdefs.h
>>conftest.
$ac_ext
15557 cat >>conftest.
$ac_ext <<_ACEOF
15558 /* end confdefs.h. */
15559 #include <sys/types.h>
15561 #include <stdlib.h>
15562 #include <stddef.h>
15564 #if HAVE_NETINET_IN_H
15565 #include <netinet/in.h>
15575 rm -f conftest.
$ac_objext
15576 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
15577 (eval $ac_compile) 2>conftest.er1
15579 grep -v '^ *+' conftest.er1
>conftest.err
15581 cat conftest.err
>&5
15582 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15583 (exit $ac_status); } &&
15584 { ac_try
='test -z "$ac_c_werror_flag"
15585 || test ! -s conftest.err'
15586 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15587 (eval $ac_try) 2>&5
15589 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15590 (exit $ac_status); }; } &&
15591 { ac_try
='test -s conftest.$ac_objext'
15592 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15593 (eval $ac_try) 2>&5
15595 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15596 (exit $ac_status); }; }; then
15598 cat >>confdefs.h
<<\_ACEOF
15599 #define HAVE_IN_ADDR_T 1
15602 echo "$as_me:$LINENO: result: yes" >&5
15603 echo "${ECHO_T}yes" >&6
15605 echo "$as_me: failed program was:" >&5
15606 sed 's/^/| /' conftest.
$ac_ext >&5
15608 echo "$as_me:$LINENO: result: no" >&5
15609 echo "${ECHO_T}no" >&6
15611 rm -f conftest.err conftest.
$ac_objext conftest.
$ac_ext
15613 echo "$as_me:$LINENO: checking whether struct ip_mreq is in netinet/in.h" >&5
15614 echo $ECHO_N "checking whether struct ip_mreq is in netinet/in.h... $ECHO_C" >&6
15615 cat >conftest.
$ac_ext <<_ACEOF
15618 cat confdefs.h
>>conftest.
$ac_ext
15619 cat >>conftest.
$ac_ext <<_ACEOF
15620 /* end confdefs.h. */
15621 #include <netinet/in.h>
15625 struct ip_mreq mreq;
15630 rm -f conftest.
$ac_objext
15631 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
15632 (eval $ac_compile) 2>conftest.er1
15634 grep -v '^ *+' conftest.er1
>conftest.err
15636 cat conftest.err
>&5
15637 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15638 (exit $ac_status); } &&
15639 { ac_try
='test -z "$ac_c_werror_flag"
15640 || test ! -s conftest.err'
15641 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15642 (eval $ac_try) 2>&5
15644 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15645 (exit $ac_status); }; } &&
15646 { ac_try
='test -s conftest.$ac_objext'
15647 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15648 (eval $ac_try) 2>&5
15650 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15651 (exit $ac_status); }; }; then
15653 cat >>confdefs.h
<<\_ACEOF
15654 #define HAVE_STRUCT_IP_MREQ 1
15657 echo "$as_me:$LINENO: result: yes" >&5
15658 echo "${ECHO_T}yes" >&6
15660 echo "$as_me: failed program was:" >&5
15661 sed 's/^/| /' conftest.
$ac_ext >&5
15663 echo "$as_me:$LINENO: result: no" >&5
15664 echo "${ECHO_T}no" >&6
15666 rm -f conftest.err conftest.
$ac_objext conftest.
$ac_ext
15668 echo "$as_me:$LINENO: checking whether struct ipv6_mreq is in netinet/in.h" >&5
15669 echo $ECHO_N "checking whether struct ipv6_mreq is in netinet/in.h... $ECHO_C" >&6
15670 cat >conftest.
$ac_ext <<_ACEOF
15673 cat confdefs.h
>>conftest.
$ac_ext
15674 cat >>conftest.
$ac_ext <<_ACEOF
15675 /* end confdefs.h. */
15676 #include <netinet/in.h>
15680 struct ipv6_mreq mreq6;
15685 rm -f conftest.
$ac_objext
15686 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
15687 (eval $ac_compile) 2>conftest.er1
15689 grep -v '^ *+' conftest.er1
>conftest.err
15691 cat conftest.err
>&5
15692 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15693 (exit $ac_status); } &&
15694 { ac_try
='test -z "$ac_c_werror_flag"
15695 || test ! -s conftest.err'
15696 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15697 (eval $ac_try) 2>&5
15699 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15700 (exit $ac_status); }; } &&
15701 { ac_try
='test -s conftest.$ac_objext'
15702 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15703 (eval $ac_try) 2>&5
15705 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15706 (exit $ac_status); }; }; then
15708 cat >>confdefs.h
<<\_ACEOF
15709 #define HAVE_STRUCT_IPV6_MREQ 1
15712 echo "$as_me:$LINENO: result: yes" >&5
15713 echo "${ECHO_T}yes" >&6
15715 echo "$as_me: failed program was:" >&5
15716 sed 's/^/| /' conftest.
$ac_ext >&5
15718 echo "$as_me:$LINENO: result: no" >&5
15719 echo "${ECHO_T}no" >&6
15721 rm -f conftest.err conftest.
$ac_objext conftest.
$ac_ext
15723 echo "$as_me:$LINENO: checking whether struct sockaddr_in6 is in netinet/in.h" >&5
15724 echo $ECHO_N "checking whether struct sockaddr_in6 is in netinet/in.h... $ECHO_C" >&6
15725 cat >conftest.
$ac_ext <<_ACEOF
15728 cat confdefs.h
>>conftest.
$ac_ext
15729 cat >>conftest.
$ac_ext <<_ACEOF
15730 /* end confdefs.h. */
15731 #include <netinet/in.h>
15735 struct sockaddr_in6 addr6;
15740 rm -f conftest.
$ac_objext
15741 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
15742 (eval $ac_compile) 2>conftest.er1
15744 grep -v '^ *+' conftest.er1
>conftest.err
15746 cat conftest.err
>&5
15747 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15748 (exit $ac_status); } &&
15749 { ac_try
='test -z "$ac_c_werror_flag"
15750 || test ! -s conftest.err'
15751 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15752 (eval $ac_try) 2>&5
15754 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15755 (exit $ac_status); }; } &&
15756 { ac_try
='test -s conftest.$ac_objext'
15757 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15758 (eval $ac_try) 2>&5
15760 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15761 (exit $ac_status); }; }; then
15763 cat >>confdefs.h
<<\_ACEOF
15764 #define HAVE_INET6 1
15767 echo "$as_me:$LINENO: result: yes" >&5
15768 echo "${ECHO_T}yes" >&6
15770 echo "$as_me: failed program was:" >&5
15771 sed 's/^/| /' conftest.
$ac_ext >&5
15773 echo "$as_me:$LINENO: result: no" >&5
15774 echo "${ECHO_T}no" >&6
15776 rm -f conftest.err conftest.
$ac_objext conftest.
$ac_ext
15778 echo "$as_me:$LINENO: checking for socklen_t in sys/socket.h" >&5
15779 echo $ECHO_N "checking for socklen_t in sys/socket.h... $ECHO_C" >&6
15780 cat >conftest.
$ac_ext <<_ACEOF
15783 cat confdefs.h
>>conftest.
$ac_ext
15784 cat >>conftest.
$ac_ext <<_ACEOF
15785 /* end confdefs.h. */
15786 #define _POSIX_PII_SOCKET
15787 #include <sys/types.h>
15788 #include <sys/socket.h>
15797 rm -f conftest.
$ac_objext
15798 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
15799 (eval $ac_compile) 2>conftest.er1
15801 grep -v '^ *+' conftest.er1
>conftest.err
15803 cat conftest.err
>&5
15804 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15805 (exit $ac_status); } &&
15806 { ac_try
='test -z "$ac_c_werror_flag"
15807 || test ! -s conftest.err'
15808 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15809 (eval $ac_try) 2>&5
15811 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15812 (exit $ac_status); }; } &&
15813 { ac_try
='test -s conftest.$ac_objext'
15814 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15815 (eval $ac_try) 2>&5
15817 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15818 (exit $ac_status); }; }; then
15820 cat >>confdefs.h
<<\_ACEOF
15821 #define HAVE_SOCKLEN_T 1
15824 echo "$as_me:$LINENO: result: yes" >&5
15825 echo "${ECHO_T}yes" >&6
15827 echo "$as_me: failed program was:" >&5
15828 sed 's/^/| /' conftest.
$ac_ext >&5
15830 echo "$as_me:$LINENO: result: no" >&5
15831 echo "${ECHO_T}no" >&6
15833 rm -f conftest.err conftest.
$ac_objext conftest.
$ac_ext
15835 echo "$as_me:$LINENO: checking for tm_gmtoff in struct tm" >&5
15836 echo $ECHO_N "checking for tm_gmtoff in struct tm... $ECHO_C" >&6
15837 cat >conftest.
$ac_ext <<_ACEOF
15840 cat confdefs.h
>>conftest.
$ac_ext
15841 cat >>conftest.
$ac_ext <<_ACEOF
15842 /* end confdefs.h. */
15847 struct tm tim; tim.tm_gmtoff = 0;
15852 rm -f conftest.
$ac_objext
15853 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
15854 (eval $ac_compile) 2>conftest.er1
15856 grep -v '^ *+' conftest.er1
>conftest.err
15858 cat conftest.err
>&5
15859 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15860 (exit $ac_status); } &&
15861 { ac_try
='test -z "$ac_c_werror_flag"
15862 || test ! -s conftest.err'
15863 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15864 (eval $ac_try) 2>&5
15866 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15867 (exit $ac_status); }; } &&
15868 { ac_try
='test -s conftest.$ac_objext'
15869 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15870 (eval $ac_try) 2>&5
15872 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15873 (exit $ac_status); }; }; then
15875 cat >>confdefs.h
<<\_ACEOF
15876 #define STRUCT_TM_HAS_GMTOFF 1
15879 echo "$as_me:$LINENO: result: yes" >&5
15880 echo "${ECHO_T}yes" >&6
15882 echo "$as_me: failed program was:" >&5
15883 sed 's/^/| /' conftest.
$ac_ext >&5
15885 echo "$as_me:$LINENO: result: no" >&5
15886 echo "${ECHO_T}no" >&6
15887 echo "$as_me:$LINENO: checking for global timezone variable" >&5
15888 echo $ECHO_N "checking for global timezone variable... $ECHO_C" >&6
15889 cat >conftest.
$ac_ext <<_ACEOF
15892 cat confdefs.h
>>conftest.
$ac_ext
15893 cat >>conftest.
$ac_ext <<_ACEOF
15894 /* end confdefs.h. */
15899 void i(){long z2 = 2*timezone;}
15904 rm -f conftest.
$ac_objext
15905 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
15906 (eval $ac_compile) 2>conftest.er1
15908 grep -v '^ *+' conftest.er1
>conftest.err
15910 cat conftest.err
>&5
15911 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15912 (exit $ac_status); } &&
15913 { ac_try
='test -z "$ac_c_werror_flag"
15914 || test ! -s conftest.err'
15915 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15916 (eval $ac_try) 2>&5
15918 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15919 (exit $ac_status); }; } &&
15920 { ac_try
='test -s conftest.$ac_objext'
15921 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15922 (eval $ac_try) 2>&5
15924 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15925 (exit $ac_status); }; }; then
15927 cat >>confdefs.h
<<\_ACEOF
15928 #define HAVE_TIMEZONE 1
15931 echo "$as_me:$LINENO: result: yes" >&5
15932 echo "${ECHO_T}yes" >&6
15934 echo "$as_me: failed program was:" >&5
15935 sed 's/^/| /' conftest.
$ac_ext >&5
15937 echo "$as_me:$LINENO: result: no" >&5
15938 echo "${ECHO_T}no" >&6
15939 echo "$as_me:$LINENO: checking for global _timezone variable" >&5
15940 echo $ECHO_N "checking for global _timezone variable... $ECHO_C" >&6
15941 cat >conftest.
$ac_ext <<_ACEOF
15944 cat confdefs.h
>>conftest.
$ac_ext
15945 cat >>conftest.
$ac_ext <<_ACEOF
15946 /* end confdefs.h. */
15951 long z2 = _timezone;
15956 rm -f conftest.
$ac_objext
15957 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
15958 (eval $ac_compile) 2>conftest.er1
15960 grep -v '^ *+' conftest.er1
>conftest.err
15962 cat conftest.err
>&5
15963 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15964 (exit $ac_status); } &&
15965 { ac_try
='test -z "$ac_c_werror_flag"
15966 || test ! -s conftest.err'
15967 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15968 (eval $ac_try) 2>&5
15970 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15971 (exit $ac_status); }; } &&
15972 { ac_try
='test -s conftest.$ac_objext'
15973 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15974 (eval $ac_try) 2>&5
15976 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15977 (exit $ac_status); }; }; then
15979 cat >>confdefs.h
<<\_ACEOF
15980 #define HAVE_UNDERSCORE_TIMEZONE 1
15983 echo "$as_me:$LINENO: result: yes" >&5
15984 echo "${ECHO_T}yes" >&6
15986 echo "$as_me: failed program was:" >&5
15987 sed 's/^/| /' conftest.
$ac_ext >&5
15989 echo "$as_me:$LINENO: result: no" >&5
15990 echo "${ECHO_T}no" >&6
15992 rm -f conftest.err conftest.
$ac_objext conftest.
$ac_ext
15994 rm -f conftest.err conftest.
$ac_objext conftest.
$ac_ext
15996 rm -f conftest.err conftest.
$ac_objext conftest.
$ac_ext
15998 # The Ultrix 4.2 mips builtin alloca declared by alloca.h only works
15999 # for constant arguments. Useless!
16000 echo "$as_me:$LINENO: checking for working alloca.h" >&5
16001 echo $ECHO_N "checking for working alloca.h... $ECHO_C" >&6
16002 if test "${ac_cv_working_alloca_h+set}" = set; then
16003 echo $ECHO_N "(cached) $ECHO_C" >&6
16005 if test x
$gcc_no_link = xyes
; then
16006 { { echo "$as_me:$LINENO: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&5
16007 echo "$as_me: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&2;}
16008 { (exit 1); exit 1; }; }
16010 cat >conftest.
$ac_ext <<_ACEOF
16013 cat confdefs.h
>>conftest.
$ac_ext
16014 cat >>conftest.
$ac_ext <<_ACEOF
16015 /* end confdefs.h. */
16016 #include <alloca.h>
16020 char *p = (char *) alloca (2 * sizeof (int));
16025 rm -f conftest.
$ac_objext conftest
$ac_exeext
16026 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
16027 (eval $ac_link) 2>conftest.er1
16029 grep -v '^ *+' conftest.er1
>conftest.err
16031 cat conftest.err
>&5
16032 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16033 (exit $ac_status); } &&
16034 { ac_try
='test -z "$ac_c_werror_flag"
16035 || test ! -s conftest.err'
16036 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16037 (eval $ac_try) 2>&5
16039 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16040 (exit $ac_status); }; } &&
16041 { ac_try
='test -s conftest$ac_exeext'
16042 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16043 (eval $ac_try) 2>&5
16045 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16046 (exit $ac_status); }; }; then
16047 ac_cv_working_alloca_h
=yes
16049 echo "$as_me: failed program was:" >&5
16050 sed 's/^/| /' conftest.
$ac_ext >&5
16052 ac_cv_working_alloca_h
=no
16054 rm -f conftest.err conftest.
$ac_objext \
16055 conftest
$ac_exeext conftest.
$ac_ext
16057 echo "$as_me:$LINENO: result: $ac_cv_working_alloca_h" >&5
16058 echo "${ECHO_T}$ac_cv_working_alloca_h" >&6
16059 if test $ac_cv_working_alloca_h = yes; then
16061 cat >>confdefs.h
<<\_ACEOF
16062 #define HAVE_ALLOCA_H 1
16067 echo "$as_me:$LINENO: checking for alloca" >&5
16068 echo $ECHO_N "checking for alloca... $ECHO_C" >&6
16069 if test "${ac_cv_func_alloca_works+set}" = set; then
16070 echo $ECHO_N "(cached) $ECHO_C" >&6
16072 if test x
$gcc_no_link = xyes
; then
16073 { { echo "$as_me:$LINENO: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&5
16074 echo "$as_me: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&2;}
16075 { (exit 1); exit 1; }; }
16077 cat >conftest.
$ac_ext <<_ACEOF
16080 cat confdefs.h
>>conftest.
$ac_ext
16081 cat >>conftest.
$ac_ext <<_ACEOF
16082 /* end confdefs.h. */
16084 # define alloca __builtin_alloca
16087 # include <malloc.h>
16088 # define alloca _alloca
16091 # include <alloca.h>
16096 # ifndef alloca /* predefined by HP cc +Olibcalls */
16107 char *p = (char *) alloca (1);
16112 rm -f conftest.
$ac_objext conftest
$ac_exeext
16113 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
16114 (eval $ac_link) 2>conftest.er1
16116 grep -v '^ *+' conftest.er1
>conftest.err
16118 cat conftest.err
>&5
16119 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16120 (exit $ac_status); } &&
16121 { ac_try
='test -z "$ac_c_werror_flag"
16122 || test ! -s conftest.err'
16123 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16124 (eval $ac_try) 2>&5
16126 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16127 (exit $ac_status); }; } &&
16128 { ac_try
='test -s conftest$ac_exeext'
16129 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16130 (eval $ac_try) 2>&5
16132 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16133 (exit $ac_status); }; }; then
16134 ac_cv_func_alloca_works
=yes
16136 echo "$as_me: failed program was:" >&5
16137 sed 's/^/| /' conftest.
$ac_ext >&5
16139 ac_cv_func_alloca_works
=no
16141 rm -f conftest.err conftest.
$ac_objext \
16142 conftest
$ac_exeext conftest.
$ac_ext
16144 echo "$as_me:$LINENO: result: $ac_cv_func_alloca_works" >&5
16145 echo "${ECHO_T}$ac_cv_func_alloca_works" >&6
16147 if test $ac_cv_func_alloca_works = yes; then
16149 cat >>confdefs.h
<<\_ACEOF
16150 #define HAVE_ALLOCA 1
16154 # The SVR3 libPW and SVR4 libucb both contain incompatible functions
16155 # that cause trouble. Some versions do not even contain alloca or
16156 # contain a buggy version. If you still want to use their alloca,
16157 # use ar to extract alloca.o from them instead of compiling alloca.c.
16159 ALLOCA
=alloca.
$ac_objext
16161 cat >>confdefs.h
<<\_ACEOF
16166 echo "$as_me:$LINENO: checking whether \`alloca.c' needs Cray hooks" >&5
16167 echo $ECHO_N "checking whether \`alloca.c' needs Cray hooks... $ECHO_C" >&6
16168 if test "${ac_cv_os_cray+set}" = set; then
16169 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 #if defined(CRAY) && ! defined(CRAY2)
16184 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
16185 $EGREP "webecray" >/dev
/null
2>&1; then
16193 echo "$as_me:$LINENO: result: $ac_cv_os_cray" >&5
16194 echo "${ECHO_T}$ac_cv_os_cray" >&6
16195 if test $ac_cv_os_cray = yes; then
16196 for ac_func
in _getb67 GETB67 getb67
; do
16197 as_ac_var
=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
16198 echo "$as_me:$LINENO: checking for $ac_func" >&5
16199 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
16200 if eval "test \"\${$as_ac_var+set}\" = set"; then
16201 echo $ECHO_N "(cached) $ECHO_C" >&6
16203 if test x
$gcc_no_link = xyes
; then
16204 { { echo "$as_me:$LINENO: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&5
16205 echo "$as_me: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&2;}
16206 { (exit 1); exit 1; }; }
16208 cat >conftest.
$ac_ext <<_ACEOF
16211 cat confdefs.h
>>conftest.
$ac_ext
16212 cat >>conftest.
$ac_ext <<_ACEOF
16213 /* end confdefs.h. */
16214 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
16215 For example, HP-UX 11i <limits.h> declares gettimeofday. */
16216 #define $ac_func innocuous_$ac_func
16218 /* System header to define __stub macros and hopefully few prototypes,
16219 which can conflict with char $ac_func (); below.
16220 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
16221 <limits.h> exists even on freestanding compilers. */
16224 # include <limits.h>
16226 # include <assert.h>
16231 /* Override any gcc2 internal prototype to avoid an error. */
16236 /* We use char because int might match the return type of a gcc2
16237 builtin and then its argument prototype would still apply. */
16239 /* The GNU C library defines this for functions which it implements
16240 to always fail with ENOSYS. Some functions are actually named
16241 something starting with __ and the normal name is an alias. */
16242 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
16245 char (*f) () = $ac_func;
16254 return f != $ac_func;
16259 rm -f conftest.
$ac_objext conftest
$ac_exeext
16260 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
16261 (eval $ac_link) 2>conftest.er1
16263 grep -v '^ *+' conftest.er1
>conftest.err
16265 cat conftest.err
>&5
16266 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16267 (exit $ac_status); } &&
16268 { ac_try
='test -z "$ac_c_werror_flag"
16269 || test ! -s conftest.err'
16270 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16271 (eval $ac_try) 2>&5
16273 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16274 (exit $ac_status); }; } &&
16275 { ac_try
='test -s conftest$ac_exeext'
16276 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16277 (eval $ac_try) 2>&5
16279 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16280 (exit $ac_status); }; }; then
16281 eval "$as_ac_var=yes"
16283 echo "$as_me: failed program was:" >&5
16284 sed 's/^/| /' conftest.
$ac_ext >&5
16286 eval "$as_ac_var=no"
16288 rm -f conftest.err conftest.
$ac_objext \
16289 conftest
$ac_exeext conftest.
$ac_ext
16291 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
16292 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
16293 if test `eval echo '${'$as_ac_var'}'` = yes; then
16295 cat >>confdefs.h
<<_ACEOF
16296 #define CRAY_STACKSEG_END $ac_func
16305 echo "$as_me:$LINENO: checking stack direction for C alloca" >&5
16306 echo $ECHO_N "checking stack direction for C alloca... $ECHO_C" >&6
16307 if test "${ac_cv_c_stack_direction+set}" = set; then
16308 echo $ECHO_N "(cached) $ECHO_C" >&6
16310 if test "$cross_compiling" = yes; then
16311 ac_cv_c_stack_direction
=0
16313 cat >conftest.
$ac_ext <<_ACEOF
16316 cat confdefs.h
>>conftest.
$ac_ext
16317 cat >>conftest.
$ac_ext <<_ACEOF
16318 /* end confdefs.h. */
16320 find_stack_direction ()
16322 static char *addr = 0;
16327 return find_stack_direction ();
16330 return (&dummy > addr) ? 1 : -1;
16336 exit (find_stack_direction () < 0);
16339 rm -f conftest
$ac_exeext
16340 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
16341 (eval $ac_link) 2>&5
16343 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16344 (exit $ac_status); } && { ac_try
='./conftest$ac_exeext'
16345 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16346 (eval $ac_try) 2>&5
16348 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16349 (exit $ac_status); }; }; then
16350 ac_cv_c_stack_direction
=1
16352 echo "$as_me: program exited with status $ac_status" >&5
16353 echo "$as_me: failed program was:" >&5
16354 sed 's/^/| /' conftest.
$ac_ext >&5
16356 ( exit $ac_status )
16357 ac_cv_c_stack_direction
=-1
16359 rm -f core
*.core gmon.out bb.out conftest
$ac_exeext conftest.
$ac_objext conftest.
$ac_ext
16362 echo "$as_me:$LINENO: result: $ac_cv_c_stack_direction" >&5
16363 echo "${ECHO_T}$ac_cv_c_stack_direction" >&6
16365 cat >>confdefs.h
<<_ACEOF
16366 #define STACK_DIRECTION $ac_cv_c_stack_direction
16373 for ac_prog
in perl
16375 # Extract the first word of "$ac_prog", so it can be a program name with args.
16376 set dummy
$ac_prog; ac_word
=$2
16377 echo "$as_me:$LINENO: checking for $ac_word" >&5
16378 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
16379 if test "${ac_cv_prog_PERL+set}" = set; then
16380 echo $ECHO_N "(cached) $ECHO_C" >&6
16382 if test -n "$PERL"; then
16383 ac_cv_prog_PERL
="$PERL" # Let the user override the test.
16385 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
16386 for as_dir
in $PATH
16389 test -z "$as_dir" && as_dir
=.
16390 for ac_exec_ext
in '' $ac_executable_extensions; do
16391 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
16392 ac_cv_prog_PERL
="$ac_prog"
16393 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
16401 PERL
=$ac_cv_prog_PERL
16402 if test -n "$PERL"; then
16403 echo "$as_me:$LINENO: result: $PERL" >&5
16404 echo "${ECHO_T}$PERL" >&6
16406 echo "$as_me:$LINENO: result: no" >&5
16407 echo "${ECHO_T}no" >&6
16410 test -n "$PERL" && break
16412 test -n "$PERL" || PERL
="false"
16416 SIGNAL_HANDLER_AUX
=
16420 SIGNAL_HANDLER
=include
/i386-signal.h
16422 sparc
*-sun-solaris*)
16423 SIGNAL_HANDLER
=include
/sparc-signal.h
16426 # SYSDEP_SOURCES=sysdep/ia64.c
16427 # test -d sysdep || mkdir sysdep
16430 SIGNAL_HANDLER
=include
/pa-signal.h
16433 SIGNAL_HANDLER
=include
/hppa-signal.h
16436 SIGNAL_HANDLER
=include
/dwarf2-signal.h
16439 SIGNAL_HANDLER
=include
/powerpc-signal.h
16442 SIGNAL_HANDLER
=include
/dwarf2-signal.h
16445 SIGNAL_HANDLER
=include
/s390-signal.h
16448 SIGNAL_HANDLER
=include
/x86_64-signal.h
16449 SIGNAL_HANDLER_AUX
=include
/i386-signal.h
16452 SIGNAL_HANDLER
=include
/dwarf2-signal.h
16455 SIGNAL_HANDLER
=include
/sh-signal.h
16458 SIGNAL_HANDLER
=include
/win32-signal.h
16461 SIGNAL_HANDLER
=include
/mips-signal.h
16464 SIGNAL_HANDLER
=include
/darwin-signal.h
16467 SIGNAL_HANDLER
=include
/default-signal.h
16471 # If we're using sjlj exceptions, forget what we just learned.
16472 if test "$enable_sjlj_exceptions" = yes; then
16473 SIGNAL_HANDLER
=include
/default-signal.h
16474 SIGNAL_HANDLER_AUX
=
16479 if test -z "$SIGNAL_HANDLER_AUX"; then
16480 SIGNAL_HANDLER_AUX
=$SIGNAL_HANDLER
16483 ac_config_links
="$ac_config_links include/java-signal.h:$SIGNAL_HANDLER include/java-signal-aux.h:$SIGNAL_HANDLER_AUX"
16486 if test "${multilib}" = "yes"; then
16487 multilib_arg
="--enable-multilib"
16492 # See if we support thread-local storage.
16494 # Check whether --enable-tls or --disable-tls was given.
16495 if test "${enable_tls+set}" = set; then
16496 enableval
="$enable_tls"
16498 case "$enableval" in
16500 *) { { echo "$as_me:$LINENO: error: Argument to enable/disable tls must be yes or no" >&5
16501 echo "$as_me: error: Argument to enable/disable tls must be yes or no" >&2;}
16502 { (exit 1); exit 1; }; } ;;
16509 echo "$as_me:$LINENO: checking whether the target supports thread-local storage" >&5
16510 echo $ECHO_N "checking whether the target supports thread-local storage... $ECHO_C" >&6
16511 if test "${have_tls+set}" = set; then
16512 echo $ECHO_N "(cached) $ECHO_C" >&6
16515 if test "$cross_compiling" = yes; then
16516 cat >conftest.
$ac_ext <<_ACEOF
16519 rm -f conftest.
$ac_objext
16520 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
16521 (eval $ac_compile) 2>conftest.er1
16523 grep -v '^ *+' conftest.er1
>conftest.err
16525 cat conftest.err
>&5
16526 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16527 (exit $ac_status); } &&
16528 { ac_try
='test -z "$ac_c_werror_flag"
16529 || test ! -s conftest.err'
16530 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16531 (eval $ac_try) 2>&5
16533 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16534 (exit $ac_status); }; } &&
16535 { ac_try
='test -s conftest.$ac_objext'
16536 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16537 (eval $ac_try) 2>&5
16539 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16540 (exit $ac_status); }; }; then
16543 echo "$as_me: failed program was:" >&5
16544 sed 's/^/| /' conftest.
$ac_ext >&5
16548 rm -f conftest.err conftest.
$ac_objext conftest.
$ac_ext
16551 cat >conftest.
$ac_ext <<_ACEOF
16552 __thread int a; int b; int main() { return a = b; }
16554 rm -f conftest
$ac_exeext
16555 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
16556 (eval $ac_link) 2>&5
16558 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16559 (exit $ac_status); } && { ac_try
='./conftest$ac_exeext'
16560 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16561 (eval $ac_try) 2>&5
16563 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16564 (exit $ac_status); }; }; then
16565 save_LDFLAGS
="$LDFLAGS"
16566 LDFLAGS
="-static $LDFLAGS"
16567 if test "$cross_compiling" = yes; then
16568 { { echo "$as_me:$LINENO: error: cannot run test program while cross compiling
16569 See \`config.log' for more details." >&5
16570 echo "$as_me: error: cannot run test program while cross compiling
16571 See \`config.log' for more details." >&2;}
16572 { (exit 1); exit 1; }; }
16574 cat >conftest.
$ac_ext <<_ACEOF
16575 __thread int a; int b; int main() { return a = b; }
16577 rm -f conftest
$ac_exeext
16578 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
16579 (eval $ac_link) 2>&5
16581 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16582 (exit $ac_status); } && { ac_try
='./conftest$ac_exeext'
16583 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16584 (eval $ac_try) 2>&5
16586 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16587 (exit $ac_status); }; }; then
16590 echo "$as_me: program exited with status $ac_status" >&5
16591 echo "$as_me: failed program was:" >&5
16592 sed 's/^/| /' conftest.
$ac_ext >&5
16594 ( exit $ac_status )
16597 rm -f core
*.core gmon.out bb.out conftest
$ac_exeext conftest.
$ac_objext conftest.
$ac_ext
16599 LDFLAGS
="$save_LDFLAGS"
16601 echo "$as_me: program exited with status $ac_status" >&5
16602 echo "$as_me: failed program was:" >&5
16603 sed 's/^/| /' conftest.
$ac_ext >&5
16605 ( exit $ac_status )
16608 rm -f core
*.core gmon.out bb.out conftest
$ac_exeext conftest.
$ac_objext conftest.
$ac_ext
16611 echo "$as_me:$LINENO: result: $have_tls" >&5
16612 echo "${ECHO_T}$have_tls" >&6
16613 if test "$enable_tls $have_tls" = "yes yes"; then
16615 cat >>confdefs.h
<<\_ACEOF
16621 # Check if linker supports static linking on a per library basis
16622 LD_START_STATIC_SPEC
=
16623 LD_FINISH_STATIC_SPEC
=
16624 if $LD --help 2>&1 |
grep -q -e -call_shared ; then
16625 if $LD --help 2>&1 |
grep -q -e -non_shared ; then
16626 LD_START_STATIC_SPEC
='%{static-libgcj:-non_shared}'
16627 LD_FINISH_STATIC_SPEC
='%{static-libgcj:-call_shared}'
16633 here
=`${PWDCMD-pwd}`
16636 # We get this from the environment.
16639 ac_config_files
="$ac_config_files Makefile libgcj.pc libgcj.spec libgcj-test.spec gcj/Makefile include/Makefile testsuite/Makefile"
16642 ac_config_files
="$ac_config_files scripts/jar"
16645 ac_config_commands
="$ac_config_commands default"
16648 cat >confcache
<<\_ACEOF
16649 # This file is a shell script that caches the results of configure
16650 # tests run on this system so they can be shared between configure
16651 # scripts and configure runs, see configure's option --config-cache.
16652 # It is not useful on other systems. If it contains results you don't
16653 # want to keep, you may remove or edit it.
16655 # config.status only pays attention to the cache file if you give it
16656 # the --recheck option to rerun configure.
16658 # `ac_cv_env_foo' variables (set or unset) will be overridden when
16659 # loading this file, other *unset* `ac_cv_foo' will be assigned the
16660 # following values.
16664 # The following way of writing the cache mishandles newlines in values,
16665 # but we know of no workaround that is simple, portable, and efficient.
16666 # So, don't put newlines in cache variables' values.
16667 # Ultrix sh set writes to stderr and can't be redirected directly,
16668 # and sets the high bit in the cache file unless we assign to the vars.
16671 case `(ac_space=' '; set | grep ac_space) 2>&1` in
16673 # `set' does not quote correctly, so add quotes (double-quote
16674 # substitution turns \\\\ into \\, and sed turns \\ into \).
16677 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p"
16680 # `set' quotes correctly as required by POSIX, so do not add quotes.
16682 "s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1=\\2/p"
16689 s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/
16691 /^ac_cv_env/!s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/
16693 if diff $cache_file confcache
>/dev
/null
2>&1; then :; else
16694 if test -w $cache_file; then
16695 test "x$cache_file" != "x/dev/null" && echo "updating cache $cache_file"
16696 cat confcache
>$cache_file
16698 echo "not updating unwritable cache $cache_file"
16703 test "x$prefix" = xNONE
&& prefix
=$ac_default_prefix
16704 # Let make expand exec_prefix.
16705 test "x$exec_prefix" = xNONE
&& exec_prefix
='${prefix}'
16707 # VPATH may cause trouble with some makes, so we remove $(srcdir),
16708 # ${srcdir} and @srcdir@ from VPATH if srcdir is ".", strip leading and
16709 # trailing colons and then remove the whole line if VPATH becomes empty
16710 # (actually we leave an empty line to preserve line numbers).
16711 if test "x$srcdir" = x.
; then
16712 ac_vpsub
='/^[ ]*VPATH[ ]*=/{
16713 s/:*\$(srcdir):*/:/;
16714 s/:*\${srcdir}:*/:/;
16716 s/^\([^=]*=[ ]*\):*/\1/;
16722 DEFS
=-DHAVE_CONFIG_H
16726 for ac_i
in : $LIBOBJS; do test "x$ac_i" = x
: && continue
16727 # 1. Remove the extension, and $U if already installed.
16728 ac_i
=`echo "$ac_i" |
16729 sed 's/\$U\././;s/\.o$//;s/\.obj$//'`
16731 ac_libobjs
="$ac_libobjs $ac_i\$U.$ac_objext"
16732 ac_ltlibobjs
="$ac_ltlibobjs $ac_i"'$U.lo'
16734 LIBOBJS
=$ac_libobjs
16736 LTLIBOBJS
=$ac_ltlibobjs
16739 if test -z "${AMDEP_TRUE}" && test -z "${AMDEP_FALSE}"; then
16740 { { echo "$as_me:$LINENO: error: conditional \"AMDEP\" was never defined.
16741 Usually this means the macro was only invoked conditionally." >&5
16742 echo "$as_me: error: conditional \"AMDEP\" was never defined.
16743 Usually this means the macro was only invoked conditionally." >&2;}
16744 { (exit 1); exit 1; }; }
16746 if test -z "${am__fastdepCC_TRUE}" && test -z "${am__fastdepCC_FALSE}"; then
16747 { { echo "$as_me:$LINENO: error: conditional \"am__fastdepCC\" was never defined.
16748 Usually this means the macro was only invoked conditionally." >&5
16749 echo "$as_me: error: conditional \"am__fastdepCC\" was never defined.
16750 Usually this means the macro was only invoked conditionally." >&2;}
16751 { (exit 1); exit 1; }; }
16753 if test -z "${am__fastdepCXX_TRUE}" && test -z "${am__fastdepCXX_FALSE}"; then
16754 { { echo "$as_me:$LINENO: error: conditional \"am__fastdepCXX\" was never defined.
16755 Usually this means the macro was only invoked conditionally." >&5
16756 echo "$as_me: error: conditional \"am__fastdepCXX\" was never defined.
16757 Usually this means the macro was only invoked conditionally." >&2;}
16758 { (exit 1); exit 1; }; }
16760 if test -z "${BASH_JAR_TRUE}" && test -z "${BASH_JAR_FALSE}"; then
16761 { { echo "$as_me:$LINENO: error: conditional \"BASH_JAR\" was never defined.
16762 Usually this means the macro was only invoked conditionally." >&5
16763 echo "$as_me: error: conditional \"BASH_JAR\" was never defined.
16764 Usually this means the macro was only invoked conditionally." >&2;}
16765 { (exit 1); exit 1; }; }
16767 if test -z "${MAINTAINER_MODE_TRUE}" && test -z "${MAINTAINER_MODE_FALSE}"; then
16768 { { echo "$as_me:$LINENO: error: conditional \"MAINTAINER_MODE\" was never defined.
16769 Usually this means the macro was only invoked conditionally." >&5
16770 echo "$as_me: error: conditional \"MAINTAINER_MODE\" was never defined.
16771 Usually this means the macro was only invoked conditionally." >&2;}
16772 { (exit 1); exit 1; }; }
16774 if test -z "${XLIB_AWT_TRUE}" && test -z "${XLIB_AWT_FALSE}"; then
16775 { { echo "$as_me:$LINENO: error: conditional \"XLIB_AWT\" was never defined.
16776 Usually this means the macro was only invoked conditionally." >&5
16777 echo "$as_me: error: conditional \"XLIB_AWT\" was never defined.
16778 Usually this means the macro was only invoked conditionally." >&2;}
16779 { (exit 1); exit 1; }; }
16781 if test -z "${am__fastdepGCJ_TRUE}" && test -z "${am__fastdepGCJ_FALSE}"; then
16782 { { echo "$as_me:$LINENO: error: conditional \"am__fastdepGCJ\" was never defined.
16783 Usually this means the macro was only invoked conditionally." >&5
16784 echo "$as_me: error: conditional \"am__fastdepGCJ\" was never defined.
16785 Usually this means the macro was only invoked conditionally." >&2;}
16786 { (exit 1); exit 1; }; }
16788 if test -z "${TESTSUBDIR_TRUE}" && test -z "${TESTSUBDIR_FALSE}"; then
16789 { { echo "$as_me:$LINENO: error: conditional \"TESTSUBDIR\" was never defined.
16790 Usually this means the macro was only invoked conditionally." >&5
16791 echo "$as_me: error: conditional \"TESTSUBDIR\" was never defined.
16792 Usually this means the macro was only invoked conditionally." >&2;}
16793 { (exit 1); exit 1; }; }
16795 if test -z "${JAVA_HOME_SET_TRUE}" && test -z "${JAVA_HOME_SET_FALSE}"; then
16796 { { echo "$as_me:$LINENO: error: conditional \"JAVA_HOME_SET\" was never defined.
16797 Usually this means the macro was only invoked conditionally." >&5
16798 echo "$as_me: error: conditional \"JAVA_HOME_SET\" was never defined.
16799 Usually this means the macro was only invoked conditionally." >&2;}
16800 { (exit 1); exit 1; }; }
16802 if test -z "${USING_WIN32_PLATFORM_TRUE}" && test -z "${USING_WIN32_PLATFORM_FALSE}"; then
16803 { { echo "$as_me:$LINENO: error: conditional \"USING_WIN32_PLATFORM\" was never defined.
16804 Usually this means the macro was only invoked conditionally." >&5
16805 echo "$as_me: error: conditional \"USING_WIN32_PLATFORM\" was never defined.
16806 Usually this means the macro was only invoked conditionally." >&2;}
16807 { (exit 1); exit 1; }; }
16809 if test -z "${USING_POSIX_PLATFORM_TRUE}" && test -z "${USING_POSIX_PLATFORM_FALSE}"; then
16810 { { echo "$as_me:$LINENO: error: conditional \"USING_POSIX_PLATFORM\" was never defined.
16811 Usually this means the macro was only invoked conditionally." >&5
16812 echo "$as_me: error: conditional \"USING_POSIX_PLATFORM\" was never defined.
16813 Usually this means the macro was only invoked conditionally." >&2;}
16814 { (exit 1); exit 1; }; }
16816 if test -z "${USING_DARWIN_CRT_TRUE}" && test -z "${USING_DARWIN_CRT_FALSE}"; then
16817 { { echo "$as_me:$LINENO: error: conditional \"USING_DARWIN_CRT\" was never defined.
16818 Usually this means the macro was only invoked conditionally." >&5
16819 echo "$as_me: error: conditional \"USING_DARWIN_CRT\" was never defined.
16820 Usually this means the macro was only invoked conditionally." >&2;}
16821 { (exit 1); exit 1; }; }
16823 if test -z "${USING_BOEHMGC_TRUE}" && test -z "${USING_BOEHMGC_FALSE}"; then
16824 { { echo "$as_me:$LINENO: error: conditional \"USING_BOEHMGC\" was never defined.
16825 Usually this means the macro was only invoked conditionally." >&5
16826 echo "$as_me: error: conditional \"USING_BOEHMGC\" was never defined.
16827 Usually this means the macro was only invoked conditionally." >&2;}
16828 { (exit 1); exit 1; }; }
16830 if test -z "${USING_NOGC_TRUE}" && test -z "${USING_NOGC_FALSE}"; then
16831 { { echo "$as_me:$LINENO: error: conditional \"USING_NOGC\" was never defined.
16832 Usually this means the macro was only invoked conditionally." >&5
16833 echo "$as_me: error: conditional \"USING_NOGC\" was never defined.
16834 Usually this means the macro was only invoked conditionally." >&2;}
16835 { (exit 1); exit 1; }; }
16837 if test -z "${USING_POSIX_THREADS_TRUE}" && test -z "${USING_POSIX_THREADS_FALSE}"; then
16838 { { echo "$as_me:$LINENO: error: conditional \"USING_POSIX_THREADS\" was never defined.
16839 Usually this means the macro was only invoked conditionally." >&5
16840 echo "$as_me: error: conditional \"USING_POSIX_THREADS\" was never defined.
16841 Usually this means the macro was only invoked conditionally." >&2;}
16842 { (exit 1); exit 1; }; }
16844 if test -z "${USING_WIN32_THREADS_TRUE}" && test -z "${USING_WIN32_THREADS_FALSE}"; then
16845 { { echo "$as_me:$LINENO: error: conditional \"USING_WIN32_THREADS\" was never defined.
16846 Usually this means the macro was only invoked conditionally." >&5
16847 echo "$as_me: error: conditional \"USING_WIN32_THREADS\" was never defined.
16848 Usually this means the macro was only invoked conditionally." >&2;}
16849 { (exit 1); exit 1; }; }
16851 if test -z "${USING_NO_THREADS_TRUE}" && test -z "${USING_NO_THREADS_FALSE}"; then
16852 { { echo "$as_me:$LINENO: error: conditional \"USING_NO_THREADS\" was never defined.
16853 Usually this means the macro was only invoked conditionally." >&5
16854 echo "$as_me: error: conditional \"USING_NO_THREADS\" was never defined.
16855 Usually this means the macro was only invoked conditionally." >&2;}
16856 { (exit 1); exit 1; }; }
16858 if test -z "${USING_GCC_TRUE}" && test -z "${USING_GCC_FALSE}"; then
16859 { { echo "$as_me:$LINENO: error: conditional \"USING_GCC\" was never defined.
16860 Usually this means the macro was only invoked conditionally." >&5
16861 echo "$as_me: error: conditional \"USING_GCC\" was never defined.
16862 Usually this means the macro was only invoked conditionally." >&2;}
16863 { (exit 1); exit 1; }; }
16865 if test -z "${NATIVE_TRUE}" && test -z "${NATIVE_FALSE}"; then
16866 { { echo "$as_me:$LINENO: error: conditional \"NATIVE\" was never defined.
16867 Usually this means the macro was only invoked conditionally." >&5
16868 echo "$as_me: error: conditional \"NATIVE\" was never defined.
16869 Usually this means the macro was only invoked conditionally." >&2;}
16870 { (exit 1); exit 1; }; }
16872 if test -z "${NEEDS_DATA_START_TRUE}" && test -z "${NEEDS_DATA_START_FALSE}"; then
16873 { { echo "$as_me:$LINENO: error: conditional \"NEEDS_DATA_START\" was never defined.
16874 Usually this means the macro was only invoked conditionally." >&5
16875 echo "$as_me: error: conditional \"NEEDS_DATA_START\" was never defined.
16876 Usually this means the macro was only invoked conditionally." >&2;}
16877 { (exit 1); exit 1; }; }
16880 : ${CONFIG_STATUS=./config.status}
16881 ac_clean_files_save
=$ac_clean_files
16882 ac_clean_files
="$ac_clean_files $CONFIG_STATUS"
16883 { echo "$as_me:$LINENO: creating $CONFIG_STATUS" >&5
16884 echo "$as_me: creating $CONFIG_STATUS" >&6;}
16885 cat >$CONFIG_STATUS <<_ACEOF
16887 # Generated by $as_me.
16888 # Run this file to recreate the current configuration.
16889 # Compiler output produced by configure, useful for debugging
16890 # configure, is in config.log if it exists.
16893 ac_cs_recheck=false
16895 SHELL=\${CONFIG_SHELL-$SHELL}
16898 cat >>$CONFIG_STATUS <<\_ACEOF
16899 ## --------------------- ##
16900 ## M4sh Initialization. ##
16901 ## --------------------- ##
16903 # Be Bourne compatible
16904 if test -n "${ZSH_VERSION+set}" && (emulate sh
) >/dev
/null
2>&1; then
16907 # Zsh 3.x and 4.x performs word splitting on ${1+"$@"}, which
16908 # is contrary to our usage. Disable this feature.
16909 alias -g '${1+"$@"}'='"$@"'
16910 elif test -n "${BASH_VERSION+set}" && (set -o posix
) >/dev
/null
2>&1; then
16913 DUALCASE
=1; export DUALCASE
# for MKS sh
16915 # Support unset when possible.
16916 if ( (MAIL
=60; unset MAIL
) ||
exit) >/dev
/null
2>&1; then
16923 # Work around bugs in pre-3.0 UWIN ksh.
16924 $as_unset ENV MAIL MAILPATH
16931 LANG LANGUAGE LC_ADDRESS LC_ALL LC_COLLATE LC_CTYPE LC_IDENTIFICATION \
16932 LC_MEASUREMENT LC_MESSAGES LC_MONETARY LC_NAME LC_NUMERIC LC_PAPER \
16933 LC_TELEPHONE LC_TIME
16935 if (set +x
; test -z "`(eval $as_var=C; export $as_var) 2>&1`"); then
16936 eval $as_var=C
; export $as_var
16942 # Required to use basename.
16943 if expr a
: '\(a\)' >/dev
/null
2>&1; then
16949 if (basename /) >/dev
/null
2>&1 && test "X`basename / 2>&1`" = "X/"; then
16950 as_basename
=basename
16956 # Name of the executable.
16957 as_me
=`$as_basename "$0" ||
16958 $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
16959 X"$0" : 'X\(//\)$' \| \
16960 X"$0" : 'X\(/\)$' \| \
16961 . : '\(.\)' 2>/dev/null ||
16963 sed '/^.*\/\([^/][^/]*\)\/*$/{ s//\1/; q; }
16964 /^X\/\(\/\/\)$/{ s//\1/; q; }
16965 /^X\/\(\/\).*/{ s//\1/; q; }
16969 # PATH needs CR, and LINENO needs CR and PATH.
16970 # Avoid depending upon Character Ranges.
16971 as_cr_letters
='abcdefghijklmnopqrstuvwxyz'
16972 as_cr_LETTERS
='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
16973 as_cr_Letters
=$as_cr_letters$as_cr_LETTERS
16974 as_cr_digits
='0123456789'
16975 as_cr_alnum
=$as_cr_Letters$as_cr_digits
16977 # The user is always right.
16978 if test "${PATH_SEPARATOR+set}" != set; then
16979 echo "#! /bin/sh" >conf$$.sh
16980 echo "exit 0" >>conf$$.sh
16982 if (PATH
="/nonexistent;."; conf$$.sh
) >/dev
/null
2>&1; then
16991 as_lineno_1
=$LINENO
16992 as_lineno_2
=$LINENO
16993 as_lineno_3
=`(expr $as_lineno_1 + 1) 2>/dev/null`
16994 test "x$as_lineno_1" != "x$as_lineno_2" &&
16995 test "x$as_lineno_3" = "x$as_lineno_2" ||
{
16996 # Find who we are. Look in the path if we contain no path at all
16999 *[\\/]* ) as_myself
=$0 ;;
17000 *) as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
17001 for as_dir
in $PATH
17004 test -z "$as_dir" && as_dir
=.
17005 test -r "$as_dir/$0" && as_myself
=$as_dir/$0 && break
17010 # We did not find ourselves, most probably we were run as `sh COMMAND'
17011 # in which case we are not to be found in the path.
17012 if test "x$as_myself" = x
; then
17015 if test ! -f "$as_myself"; then
17016 { { echo "$as_me:$LINENO: error: cannot find myself; rerun with an absolute path" >&5
17017 echo "$as_me: error: cannot find myself; rerun with an absolute path" >&2;}
17018 { (exit 1); exit 1; }; }
17020 case $CONFIG_SHELL in
17022 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
17023 for as_dir
in /bin
$PATH_SEPARATOR/usr
/bin
$PATH_SEPARATOR$PATH
17026 test -z "$as_dir" && as_dir
=.
17027 for as_base
in sh bash ksh sh5
; do
17030 if ("$as_dir/$as_base" -c '
17031 as_lineno_1=$LINENO
17032 as_lineno_2=$LINENO
17033 as_lineno_3=`(expr $as_lineno_1 + 1) 2>/dev/null`
17034 test "x$as_lineno_1" != "x$as_lineno_2" &&
17035 test "x$as_lineno_3" = "x$as_lineno_2" ') 2>/dev
/null
; then
17036 $as_unset BASH_ENV ||
test "${BASH_ENV+set}" != set ||
{ BASH_ENV
=; export BASH_ENV
; }
17037 $as_unset ENV ||
test "${ENV+set}" != set ||
{ ENV
=; export ENV
; }
17038 CONFIG_SHELL
=$as_dir/$as_base
17039 export CONFIG_SHELL
17040 exec "$CONFIG_SHELL" "$0" ${1+"$@"}
17048 # Create $as_me.lineno as a copy of $as_myself, but with $LINENO
17049 # uniformly replaced by the line number. The first 'sed' inserts a
17050 # line-number line before each line; the second 'sed' does the real
17051 # work. The second script uses 'N' to pair each line-number line
17052 # with the numbered line, and appends trailing '-' during
17053 # substitution so that $LINENO is not a special case at line end.
17054 # (Raja R Harinath suggested sed '=', and Paul Eggert wrote the
17055 # second 'sed' script. Blame Lee E. McMahon for sed's syntax. :-)
17056 sed '=' <$as_myself |
17061 s,^\(['$as_cr_digits']*\)\(.*\)[$]LINENO\([^'$as_cr_alnum'_]\),\1\2\1\3,
17064 s,^['$as_cr_digits']*\n,,
17065 ' >$as_me.lineno
&&
17066 chmod +x
$as_me.lineno ||
17067 { { echo "$as_me:$LINENO: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&5
17068 echo "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2;}
17069 { (exit 1); exit 1; }; }
17071 # Don't try to exec as it changes $[0], causing all sort of problems
17072 # (the dirname of $[0] is not the place where we might find the
17073 # original and so on. Autoconf is especially sensible to this).
17075 # Exit status is that of the last command.
17080 case `echo "testing\c"; echo 1,2,3`,`echo -n testing; echo 1,2,3` in
17081 *c
*,-n*) ECHO_N
= ECHO_C
='
17083 *c
*,* ) ECHO_N
=-n ECHO_C
= ECHO_T
= ;;
17084 *) ECHO_N
= ECHO_C
='\c' ECHO_T
= ;;
17087 if expr a
: '\(a\)' >/dev
/null
2>&1; then
17093 rm -f conf$$ conf$$.exe conf$$.
file
17095 if ln -s conf$$.
file conf$$
2>/dev
/null
; then
17096 # We could just check for DJGPP; but this test a) works b) is more generic
17097 # and c) will remain valid once DJGPP supports symlinks (DJGPP 2.04).
17098 if test -f conf$$.exe
; then
17099 # Don't use ln at all; we don't have any links
17104 elif ln conf$$.
file conf$$
2>/dev
/null
; then
17109 rm -f conf$$ conf$$.exe conf$$.
file
17111 if mkdir
-p .
2>/dev
/null
; then
17114 test -d .
/-p && rmdir .
/-p
17118 as_executable_p
="test -f"
17120 # Sed expression to map a string onto a valid CPP name.
17121 as_tr_cpp
="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
17123 # Sed expression to map a string onto a valid variable name.
17124 as_tr_sh
="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
17128 # We need space, tab and new line, in precisely that order.
17138 # Open the log real soon, to keep \$[0] and so on meaningful, and to
17139 # report actual input values of CONFIG_FILES etc. instead of their
17140 # values after options handling. Logging --version etc. is OK.
17144 sed 'h;s/./-/g;s/^.../## /;s/...$/ ##/;p;x;p;x' <<_ASBOX
17145 ## Running $as_me. ##
17150 This file was extended by libjava $as_me version-unused, which was
17151 generated by GNU Autoconf 2.59. Invocation command line was
17153 CONFIG_FILES = $CONFIG_FILES
17154 CONFIG_HEADERS = $CONFIG_HEADERS
17155 CONFIG_LINKS = $CONFIG_LINKS
17156 CONFIG_COMMANDS = $CONFIG_COMMANDS
17160 echo "on `(hostname || uname -n) 2>/dev/null | sed 1q`" >&5
17164 # Files that config.status was made for.
17165 if test -n "$ac_config_files"; then
17166 echo "config_files=\"$ac_config_files\"" >>$CONFIG_STATUS
17169 if test -n "$ac_config_headers"; then
17170 echo "config_headers=\"$ac_config_headers\"" >>$CONFIG_STATUS
17173 if test -n "$ac_config_links"; then
17174 echo "config_links=\"$ac_config_links\"" >>$CONFIG_STATUS
17177 if test -n "$ac_config_commands"; then
17178 echo "config_commands=\"$ac_config_commands\"" >>$CONFIG_STATUS
17181 cat >>$CONFIG_STATUS <<\_ACEOF
17184 \`$as_me' instantiates files from templates according to the
17185 current configuration.
17187 Usage: $0 [OPTIONS] [FILE]...
17189 -h, --help print this help, then exit
17190 -V, --version print version number, then exit
17191 -q, --quiet do not print progress messages
17192 -d, --debug don't remove temporary files
17193 --recheck update $as_me by reconfiguring in the same conditions
17194 --file=FILE[:TEMPLATE]
17195 instantiate the configuration file FILE
17196 --header=FILE[:TEMPLATE]
17197 instantiate the configuration header FILE
17199 Configuration files:
17202 Configuration headers:
17205 Configuration links:
17208 Configuration commands:
17211 Report bugs to <bug-autoconf@gnu.org>."
17214 cat >>$CONFIG_STATUS <<_ACEOF
17216 libjava config.status version-unused
17217 configured by $0, generated by GNU Autoconf 2.59,
17218 with options \\"`echo "$ac_configure_args" | sed 's/[\\""\`\$]/\\\\&/g'`\\"
17220 Copyright (C) 2003 Free Software Foundation, Inc.
17221 This config.status script is free software; the Free Software Foundation
17222 gives unlimited permission to copy, distribute and modify it."
17227 cat >>$CONFIG_STATUS <<\_ACEOF
17228 # If no file are specified by the user, then we need to provide default
17229 # value. By we need to know if files were specified by the user.
17235 ac_option
=`expr "x$1" : 'x\([^=]*\)='`
17236 ac_optarg
=`expr "x$1" : 'x[^=]*=\(.*\)'`
17244 *) # This is not an option, so the user has probably given explicit
17247 ac_need_defaults
=false
;;
17251 # Handling of the options.
17253 cat >>$CONFIG_STATUS <<\_ACEOF
17254 -recheck |
--recheck |
--rechec |
--reche |
--rech |
--rec |
--re |
--r)
17256 --version |
--vers* |
-V )
17257 echo "$ac_cs_version"; exit 0 ;;
17259 # Conflict between --help and --header
17260 { { echo "$as_me:$LINENO: error: ambiguous option: $1
17261 Try \`$0 --help' for more information." >&5
17262 echo "$as_me: error: ambiguous option: $1
17263 Try \`$0 --help' for more information." >&2;}
17264 { (exit 1); exit 1; }; };;
17265 --help |
--hel |
-h )
17266 echo "$ac_cs_usage"; exit 0 ;;
17267 --debug |
--d* |
-d )
17269 --file |
--fil |
--fi |
--f )
17271 CONFIG_FILES
="$CONFIG_FILES $ac_optarg"
17272 ac_need_defaults
=false
;;
17273 --header |
--heade |
--head |
--hea )
17275 CONFIG_HEADERS
="$CONFIG_HEADERS $ac_optarg"
17276 ac_need_defaults
=false
;;
17277 -q |
-quiet |
--quiet |
--quie |
--qui |
--qu |
--q \
17278 |
-silent |
--silent |
--silen |
--sile |
--sil |
--si |
--s)
17281 # This is an error.
17282 -*) { { echo "$as_me:$LINENO: error: unrecognized option: $1
17283 Try \`$0 --help' for more information." >&5
17284 echo "$as_me: error: unrecognized option: $1
17285 Try \`$0 --help' for more information." >&2;}
17286 { (exit 1); exit 1; }; } ;;
17288 *) ac_config_targets
="$ac_config_targets $1" ;;
17294 ac_configure_extra_args
=
17296 if $ac_cs_silent; then
17298 ac_configure_extra_args
="$ac_configure_extra_args --silent"
17302 cat >>$CONFIG_STATUS <<_ACEOF
17303 if \$ac_cs_recheck; then
17304 echo "running $SHELL $0 " $ac_configure_args \$ac_configure_extra_args " --no-create --no-recursion" >&6
17305 exec $SHELL $0 $ac_configure_args \$ac_configure_extra_args --no-create --no-recursion
17310 cat >>$CONFIG_STATUS <<_ACEOF
17312 # INIT-COMMANDS section.
17315 AMDEP_TRUE="$AMDEP_TRUE" ac_aux_dir="$ac_aux_dir"
17319 with_multisubdir=${with_multisubdir}
17320 ac_configure_args="${multilib_arg} ${ac_configure_args}"
17321 CONFIG_SHELL=${CONFIG_SHELL-/bin/sh}
17322 libgcj_basedir=${libgcj_basedir}
17325 ORIGINAL_LD_FOR_MULTILIBS="${ORIGINAL_LD_FOR_MULTILIBS}"
17332 cat >>$CONFIG_STATUS <<\_ACEOF
17333 for ac_config_target
in $ac_config_targets
17335 case "$ac_config_target" in
17336 # Handling of arguments.
17337 "Makefile" ) CONFIG_FILES
="$CONFIG_FILES Makefile" ;;
17338 "libgcj.pc" ) CONFIG_FILES
="$CONFIG_FILES libgcj.pc" ;;
17339 "libgcj.spec" ) CONFIG_FILES
="$CONFIG_FILES libgcj.spec" ;;
17340 "libgcj-test.spec" ) CONFIG_FILES
="$CONFIG_FILES libgcj-test.spec" ;;
17341 "gcj/Makefile" ) CONFIG_FILES
="$CONFIG_FILES gcj/Makefile" ;;
17342 "include/Makefile" ) CONFIG_FILES
="$CONFIG_FILES include/Makefile" ;;
17343 "testsuite/Makefile" ) CONFIG_FILES
="$CONFIG_FILES testsuite/Makefile" ;;
17344 "scripts/jar" ) CONFIG_FILES
="$CONFIG_FILES scripts/jar" ;;
17345 "include/platform.h" ) CONFIG_LINKS
="$CONFIG_LINKS include/platform.h:include/$PLATFORMH" ;;
17346 "java/io/natFile.cc" ) CONFIG_LINKS
="$CONFIG_LINKS java/io/natFile.cc:java/io/natFile${FILE-${PLATFORM}}.cc" ;;
17347 "java/lang/ConcreteProcess.java" ) CONFIG_LINKS
="$CONFIG_LINKS java/lang/ConcreteProcess.java:java/lang/${PLATFORM}Process.java" ;;
17348 "java/lang/natConcreteProcess.cc" ) CONFIG_LINKS
="$CONFIG_LINKS java/lang/natConcreteProcess.cc:java/lang/nat${PLATFORM}Process.cc" ;;
17349 "java/net/natInetAddress.cc" ) CONFIG_LINKS
="$CONFIG_LINKS java/net/natInetAddress.cc:java/net/natInetAddress${PLATFORMNET}.cc" ;;
17350 "java/net/natVMNetworkInterface.cc" ) CONFIG_LINKS
="$CONFIG_LINKS java/net/natVMNetworkInterface.cc:java/net/natVMNetworkInterface${PLATFORMNET}.cc" ;;
17351 "gnu/java/net/natPlainSocketImpl.cc" ) CONFIG_LINKS
="$CONFIG_LINKS gnu/java/net/natPlainSocketImpl.cc:gnu/java/net/natPlainSocketImpl${PLATFORMNET}.cc" ;;
17352 "gnu/java/net/natPlainDatagramSocketImpl.cc" ) CONFIG_LINKS
="$CONFIG_LINKS gnu/java/net/natPlainDatagramSocketImpl.cc:gnu/java/net/natPlainDatagramSocketImpl${PLATFORMNET}.cc" ;;
17353 "gnu/java/nio/natPipeImpl.cc" ) CONFIG_LINKS
="$CONFIG_LINKS gnu/java/nio/natPipeImpl.cc:gnu/java/nio/natPipeImpl${PLATFORM}.cc" ;;
17354 "gnu/java/nio/natSelectorImpl.cc" ) CONFIG_LINKS
="$CONFIG_LINKS gnu/java/nio/natSelectorImpl.cc:gnu/java/nio/natSelectorImpl${PLATFORM}.cc" ;;
17355 "gnu/java/nio/channels/natFileChannelImpl.cc" ) CONFIG_LINKS
="$CONFIG_LINKS gnu/java/nio/channels/natFileChannelImpl.cc:gnu/java/nio/channels/natFileChannel${FILE-${PLATFORM}}.cc" ;;
17356 "include/java-gc.h" ) CONFIG_LINKS
="$CONFIG_LINKS include/java-gc.h:include/$GCHDR" ;;
17357 "include/java-threads.h" ) CONFIG_LINKS
="$CONFIG_LINKS include/java-threads.h:include/$THREADH" ;;
17358 "sysdep/locks.h" ) CONFIG_LINKS
="$CONFIG_LINKS sysdep/locks.h:sysdep/$sysdeps_dir/locks.h" ;;
17359 "sysdep/backtrace.h" ) CONFIG_LINKS
="$CONFIG_LINKS sysdep/backtrace.h:$fallback_backtrace_h" ;;
17360 "sysdep/descriptor.h" ) CONFIG_LINKS
="$CONFIG_LINKS sysdep/descriptor.h:$descriptor_h" ;;
17361 "include/java-signal.h" ) CONFIG_LINKS
="$CONFIG_LINKS include/java-signal.h:$SIGNAL_HANDLER" ;;
17362 "include/java-signal-aux.h" ) CONFIG_LINKS
="$CONFIG_LINKS include/java-signal-aux.h:$SIGNAL_HANDLER_AUX" ;;
17363 "depfiles" ) CONFIG_COMMANDS
="$CONFIG_COMMANDS depfiles" ;;
17364 "default" ) CONFIG_COMMANDS
="$CONFIG_COMMANDS default" ;;
17365 "include/config.h" ) CONFIG_HEADERS
="$CONFIG_HEADERS include/config.h" ;;
17366 "gcj/libgcj-config.h" ) CONFIG_HEADERS
="$CONFIG_HEADERS gcj/libgcj-config.h" ;;
17367 *) { { echo "$as_me:$LINENO: error: invalid argument: $ac_config_target" >&5
17368 echo "$as_me: error: invalid argument: $ac_config_target" >&2;}
17369 { (exit 1); exit 1; }; };;
17373 # If the user did not use the arguments to specify the items to instantiate,
17374 # then the envvar interface is used. Set only those that are not.
17375 # We use the long form for the default assignment because of an extremely
17376 # bizarre bug on SunOS 4.1.3.
17377 if $ac_need_defaults; then
17378 test "${CONFIG_FILES+set}" = set || CONFIG_FILES
=$config_files
17379 test "${CONFIG_HEADERS+set}" = set || CONFIG_HEADERS
=$config_headers
17380 test "${CONFIG_LINKS+set}" = set || CONFIG_LINKS
=$config_links
17381 test "${CONFIG_COMMANDS+set}" = set || CONFIG_COMMANDS
=$config_commands
17384 # Have a temporary directory for convenience. Make it in the build tree
17385 # simply because there is no reason to put it here, and in addition,
17386 # creating and moving files from /tmp can sometimes cause problems.
17387 # Create a temporary directory, and hook for its removal unless debugging.
17390 trap 'exit_status=$?; rm -rf $tmp && exit $exit_status' 0
17391 trap '{ (exit 1); exit 1; }' 1 2 13 15
17394 # Create a (secure) tmp directory for tmp files.
17397 tmp
=`(umask 077 && mktemp -d -q "./confstatXXXXXX") 2>/dev/null` &&
17398 test -n "$tmp" && test -d "$tmp"
17401 tmp
=.
/confstat$$
-$RANDOM
17402 (umask 077 && mkdir
$tmp)
17405 echo "$me: cannot create a temporary directory in ." >&2
17406 { (exit 1); exit 1; }
17411 cat >>$CONFIG_STATUS <<_ACEOF
17414 # CONFIG_FILES section.
17417 # No need to generate the scripts if there are no CONFIG_FILES.
17418 # This happens for instance when ./config.status config.h
17419 if test -n "\$CONFIG_FILES"; then
17420 # Protect against being on the right side of a sed subst in config.status.
17421 sed 's/,@/@@/; s/@,/@@/; s/,;t t\$/@;t t/; /@;t t\$/s/[\\\\&,]/\\\\&/g;
17422 s/@@/,@/; s/@@/@,/; s/@;t t\$/,;t t/' >\$tmp/subs.sed <<\\CEOF
17423 s,@SHELL@,$SHELL,;t t
17424 s,@PATH_SEPARATOR@,$PATH_SEPARATOR,;t t
17425 s,@PACKAGE_NAME@,$PACKAGE_NAME,;t t
17426 s,@PACKAGE_TARNAME@,$PACKAGE_TARNAME,;t t
17427 s,@PACKAGE_VERSION@,$PACKAGE_VERSION,;t t
17428 s,@PACKAGE_STRING@,$PACKAGE_STRING,;t t
17429 s,@PACKAGE_BUGREPORT@,$PACKAGE_BUGREPORT,;t t
17430 s,@exec_prefix@,$exec_prefix,;t t
17431 s,@prefix@,$prefix,;t t
17432 s,@program_transform_name@,$program_transform_name,;t t
17433 s,@bindir@,$bindir,;t t
17434 s,@sbindir@,$sbindir,;t t
17435 s,@libexecdir@,$libexecdir,;t t
17436 s,@datadir@,$datadir,;t t
17437 s,@sysconfdir@,$sysconfdir,;t t
17438 s,@sharedstatedir@,$sharedstatedir,;t t
17439 s,@localstatedir@,$localstatedir,;t t
17440 s,@libdir@,$libdir,;t t
17441 s,@includedir@,$includedir,;t t
17442 s,@oldincludedir@,$oldincludedir,;t t
17443 s,@infodir@,$infodir,;t t
17444 s,@mandir@,$mandir,;t t
17445 s,@build_alias@,$build_alias,;t t
17446 s,@host_alias@,$host_alias,;t t
17447 s,@target_alias@,$target_alias,;t t
17448 s,@DEFS@,$DEFS,;t t
17449 s,@ECHO_C@,$ECHO_C,;t t
17450 s,@ECHO_N@,$ECHO_N,;t t
17451 s,@ECHO_T@,$ECHO_T,;t t
17452 s,@LIBS@,$LIBS,;t t
17453 s,@build@,$build,;t t
17454 s,@build_cpu@,$build_cpu,;t t
17455 s,@build_vendor@,$build_vendor,;t t
17456 s,@build_os@,$build_os,;t t
17457 s,@build_libsubdir@,$build_libsubdir,;t t
17458 s,@build_subdir@,$build_subdir,;t t
17459 s,@host_subdir@,$host_subdir,;t t
17460 s,@target_subdir@,$target_subdir,;t t
17461 s,@libgcj_basedir@,$libgcj_basedir,;t t
17462 s,@host@,$host,;t t
17463 s,@host_cpu@,$host_cpu,;t t
17464 s,@host_vendor@,$host_vendor,;t t
17465 s,@host_os@,$host_os,;t t
17466 s,@target@,$target,;t t
17467 s,@target_cpu@,$target_cpu,;t t
17468 s,@target_vendor@,$target_vendor,;t t
17469 s,@target_os@,$target_os,;t t
17470 s,@target_noncanonical@,$target_noncanonical,;t t
17471 s,@LN_S@,$LN_S,;t t
17472 s,@mkinstalldirs@,$mkinstalldirs,;t t
17474 s,@ac_ct_CC@,$ac_ct_CC,;t t
17475 s,@EXEEXT@,$EXEEXT,;t t
17476 s,@OBJEXT@,$OBJEXT,;t t
17478 s,@ac_ct_CXX@,$ac_ct_CXX,;t t
17479 s,@CFLAGS@,$CFLAGS,;t t
17480 s,@CXXFLAGS@,$CXXFLAGS,;t t
17481 s,@LDFLAGS@,$LDFLAGS,;t t
17482 s,@INSTALL_PROGRAM@,$INSTALL_PROGRAM,;t t
17483 s,@INSTALL_SCRIPT@,$INSTALL_SCRIPT,;t t
17484 s,@INSTALL_DATA@,$INSTALL_DATA,;t t
17485 s,@CYGPATH_W@,$CYGPATH_W,;t t
17486 s,@PACKAGE@,$PACKAGE,;t t
17487 s,@VERSION@,$VERSION,;t t
17488 s,@ACLOCAL@,$ACLOCAL,;t t
17489 s,@AUTOCONF@,$AUTOCONF,;t t
17490 s,@AUTOMAKE@,$AUTOMAKE,;t t
17491 s,@AUTOHEADER@,$AUTOHEADER,;t t
17492 s,@MAKEINFO@,$MAKEINFO,;t t
17493 s,@install_sh@,$install_sh,;t t
17494 s,@STRIP@,$STRIP,;t t
17495 s,@ac_ct_STRIP@,$ac_ct_STRIP,;t t
17496 s,@INSTALL_STRIP_PROGRAM@,$INSTALL_STRIP_PROGRAM,;t t
17497 s,@mkdir_p@,$mkdir_p,;t t
17499 s,@SET_MAKE@,$SET_MAKE,;t t
17500 s,@am__leading_dot@,$am__leading_dot,;t t
17501 s,@AMTAR@,$AMTAR,;t t
17502 s,@am__tar@,$am__tar,;t t
17503 s,@am__untar@,$am__untar,;t t
17504 s,@DEPDIR@,$DEPDIR,;t t
17505 s,@am__include@,$am__include,;t t
17506 s,@am__quote@,$am__quote,;t t
17507 s,@AMDEP_TRUE@,$AMDEP_TRUE,;t t
17508 s,@AMDEP_FALSE@,$AMDEP_FALSE,;t t
17509 s,@AMDEPBACKSLASH@,$AMDEPBACKSLASH,;t t
17510 s,@CCDEPMODE@,$CCDEPMODE,;t t
17511 s,@am__fastdepCC_TRUE@,$am__fastdepCC_TRUE,;t t
17512 s,@am__fastdepCC_FALSE@,$am__fastdepCC_FALSE,;t t
17513 s,@CXXDEPMODE@,$CXXDEPMODE,;t t
17514 s,@am__fastdepCXX_TRUE@,$am__fastdepCXX_TRUE,;t t
17515 s,@am__fastdepCXX_FALSE@,$am__fastdepCXX_FALSE,;t t
17517 s,@ac_ct_AS@,$ac_ct_AS,;t t
17519 s,@ac_ct_LD@,$ac_ct_LD,;t t
17521 s,@ac_ct_AR@,$ac_ct_AR,;t t
17522 s,@RANLIB@,$RANLIB,;t t
17523 s,@ac_ct_RANLIB@,$ac_ct_RANLIB,;t t
17526 s,@UNZIP@,$UNZIP,;t t
17527 s,@BASH_JAR_TRUE@,$BASH_JAR_TRUE,;t t
17528 s,@BASH_JAR_FALSE@,$BASH_JAR_FALSE,;t t
17529 s,@MAINTAINER_MODE_TRUE@,$MAINTAINER_MODE_TRUE,;t t
17530 s,@MAINTAINER_MODE_FALSE@,$MAINTAINER_MODE_FALSE,;t t
17531 s,@MAINT@,$MAINT,;t t
17532 s,@LIBGCJ_CFLAGS@,$LIBGCJ_CFLAGS,;t t
17533 s,@LIBGCJ_CXXFLAGS@,$LIBGCJ_CXXFLAGS,;t t
17534 s,@LIBGCJ_JAVAFLAGS@,$LIBGCJ_JAVAFLAGS,;t t
17535 s,@LIBGCJ_LD_SYMBOLIC@,$LIBGCJ_LD_SYMBOLIC,;t t
17536 s,@LIBGCJDEBUG@,$LIBGCJDEBUG,;t t
17537 s,@TOOLKIT@,$TOOLKIT,;t t
17538 s,@XLIB_AWT_TRUE@,$XLIB_AWT_TRUE,;t t
17539 s,@XLIB_AWT_FALSE@,$XLIB_AWT_FALSE,;t t
17540 s,@GCJH@,$GCJH,;t t
17541 s,@INCLTDL@,$INCLTDL,;t t
17542 s,@LIBLTDL@,$LIBLTDL,;t t
17543 s,@DIRLTDL@,$DIRLTDL,;t t
17544 s,@LIBTOOL@,$LIBTOOL,;t t
17545 s,@CXXCPP@,$CXXCPP,;t t
17546 s,@CPPFLAGS@,$CPPFLAGS,;t t
17548 s,@GCJFLAGS@,$GCJFLAGS,;t t
17549 s,@GCJDEPMODE@,$GCJDEPMODE,;t t
17550 s,@am__fastdepGCJ_TRUE@,$am__fastdepGCJ_TRUE,;t t
17551 s,@am__fastdepGCJ_FALSE@,$am__fastdepGCJ_FALSE,;t t
17552 s,@subdirs@,$subdirs,;t t
17553 s,@TESTSUBDIR_TRUE@,$TESTSUBDIR_TRUE,;t t
17554 s,@TESTSUBDIR_FALSE@,$TESTSUBDIR_FALSE,;t t
17555 s,@JAVA_HOME_SET_TRUE@,$JAVA_HOME_SET_TRUE,;t t
17556 s,@JAVA_HOME_SET_FALSE@,$JAVA_HOME_SET_FALSE,;t t
17557 s,@JAVA_HOME@,$JAVA_HOME,;t t
17558 s,@INTERPRETER@,$INTERPRETER,;t t
17559 s,@LIBFFI@,$LIBFFI,;t t
17560 s,@LIBFFIINCS@,$LIBFFIINCS,;t t
17561 s,@PLATFORM_INNER_NAT_HDRS@,$PLATFORM_INNER_NAT_HDRS,;t t
17563 s,@EGREP@,$EGREP,;t t
17564 s,@USING_WIN32_PLATFORM_TRUE@,$USING_WIN32_PLATFORM_TRUE,;t t
17565 s,@USING_WIN32_PLATFORM_FALSE@,$USING_WIN32_PLATFORM_FALSE,;t t
17566 s,@USING_POSIX_PLATFORM_TRUE@,$USING_POSIX_PLATFORM_TRUE,;t t
17567 s,@USING_POSIX_PLATFORM_FALSE@,$USING_POSIX_PLATFORM_FALSE,;t t
17568 s,@USING_DARWIN_CRT_TRUE@,$USING_DARWIN_CRT_TRUE,;t t
17569 s,@USING_DARWIN_CRT_FALSE@,$USING_DARWIN_CRT_FALSE,;t t
17570 s,@SYSTEMSPEC@,$SYSTEMSPEC,;t t
17571 s,@LIBGCJTESTSPEC@,$LIBGCJTESTSPEC,;t t
17572 s,@ZLIBSPEC@,$ZLIBSPEC,;t t
17573 s,@ZLIBTESTSPEC@,$ZLIBTESTSPEC,;t t
17574 s,@X_CFLAGS@,$X_CFLAGS,;t t
17575 s,@X_PRE_LIBS@,$X_PRE_LIBS,;t t
17576 s,@X_LIBS@,$X_LIBS,;t t
17577 s,@X_EXTRA_LIBS@,$X_EXTRA_LIBS,;t t
17578 s,@extra_ldflags_libjava@,$extra_ldflags_libjava,;t t
17579 s,@GCLIBS@,$GCLIBS,;t t
17580 s,@GCINCS@,$GCINCS,;t t
17581 s,@GCDEPS@,$GCDEPS,;t t
17582 s,@GCSPEC@,$GCSPEC,;t t
17583 s,@JC1GCSPEC@,$JC1GCSPEC,;t t
17584 s,@GCTESTSPEC@,$GCTESTSPEC,;t t
17585 s,@USING_BOEHMGC_TRUE@,$USING_BOEHMGC_TRUE,;t t
17586 s,@USING_BOEHMGC_FALSE@,$USING_BOEHMGC_FALSE,;t t
17587 s,@USING_NOGC_TRUE@,$USING_NOGC_TRUE,;t t
17588 s,@USING_NOGC_FALSE@,$USING_NOGC_FALSE,;t t
17589 s,@THREADLIBS@,$THREADLIBS,;t t
17590 s,@THREADINCS@,$THREADINCS,;t t
17591 s,@THREADDEPS@,$THREADDEPS,;t t
17592 s,@THREADSPEC@,$THREADSPEC,;t t
17593 s,@THREADSTARTFILESPEC@,$THREADSTARTFILESPEC,;t t
17594 s,@THREADLDFLAGS@,$THREADLDFLAGS,;t t
17595 s,@THREADCXXFLAGS@,$THREADCXXFLAGS,;t t
17596 s,@USING_POSIX_THREADS_TRUE@,$USING_POSIX_THREADS_TRUE,;t t
17597 s,@USING_POSIX_THREADS_FALSE@,$USING_POSIX_THREADS_FALSE,;t t
17598 s,@USING_WIN32_THREADS_TRUE@,$USING_WIN32_THREADS_TRUE,;t t
17599 s,@USING_WIN32_THREADS_FALSE@,$USING_WIN32_THREADS_FALSE,;t t
17600 s,@USING_NO_THREADS_TRUE@,$USING_NO_THREADS_TRUE,;t t
17601 s,@USING_NO_THREADS_FALSE@,$USING_NO_THREADS_FALSE,;t t
17602 s,@HASH_SYNC_SPEC@,$HASH_SYNC_SPEC,;t t
17603 s,@USING_GCC_TRUE@,$USING_GCC_TRUE,;t t
17604 s,@USING_GCC_FALSE@,$USING_GCC_FALSE,;t t
17605 s,@LIBICONV@,$LIBICONV,;t t
17606 s,@LTLIBICONV@,$LTLIBICONV,;t t
17607 s,@PKG_CONFIG@,$PKG_CONFIG,;t t
17608 s,@GTK_CFLAGS@,$GTK_CFLAGS,;t t
17609 s,@GTK_LIBS@,$GTK_LIBS,;t t
17610 s,@GLIB_CFLAGS@,$GLIB_CFLAGS,;t t
17611 s,@GLIB_LIBS@,$GLIB_LIBS,;t t
17612 s,@LIBART_CFLAGS@,$LIBART_CFLAGS,;t t
17613 s,@LIBART_LIBS@,$LIBART_LIBS,;t t
17614 s,@CLASSPATH_SEPARATOR@,$CLASSPATH_SEPARATOR,;t t
17615 s,@ac_ct_GCJ@,$ac_ct_GCJ,;t t
17616 s,@ZLIBS@,$ZLIBS,;t t
17617 s,@SYS_ZLIBS@,$SYS_ZLIBS,;t t
17618 s,@ZINCS@,$ZINCS,;t t
17619 s,@DIVIDESPEC@,$DIVIDESPEC,;t t
17620 s,@CHECKREFSPEC@,$CHECKREFSPEC,;t t
17621 s,@EXCEPTIONSPEC@,$EXCEPTIONSPEC,;t t
17622 s,@BACKTRACESPEC@,$BACKTRACESPEC,;t t
17623 s,@IEEESPEC@,$IEEESPEC,;t t
17624 s,@NATIVE_TRUE@,$NATIVE_TRUE,;t t
17625 s,@NATIVE_FALSE@,$NATIVE_FALSE,;t t
17626 s,@NEEDS_DATA_START_TRUE@,$NEEDS_DATA_START_TRUE,;t t
17627 s,@NEEDS_DATA_START_FALSE@,$NEEDS_DATA_START_FALSE,;t t
17628 s,@GCC_UNWIND_INCLUDE@,$GCC_UNWIND_INCLUDE,;t t
17629 s,@toolexecdir@,$toolexecdir,;t t
17630 s,@toolexecmainlibdir@,$toolexecmainlibdir,;t t
17631 s,@toolexeclibdir@,$toolexeclibdir,;t t
17632 s,@dbexecdir@,$dbexecdir,;t t
17633 s,@GCJVERSION@,$GCJVERSION,;t t
17634 s,@gxx_include_dir@,$gxx_include_dir,;t t
17635 s,@libstdcxx_incdir@,$libstdcxx_incdir,;t t
17636 s,@ALLOCA@,$ALLOCA,;t t
17637 s,@PERL@,$PERL,;t t
17638 s,@SYSDEP_SOURCES@,$SYSDEP_SOURCES,;t t
17639 s,@LD_START_STATIC_SPEC@,$LD_START_STATIC_SPEC,;t t
17640 s,@LD_FINISH_STATIC_SPEC@,$LD_FINISH_STATIC_SPEC,;t t
17641 s,@here@,$here,;t t
17642 s,@LIBOBJS@,$LIBOBJS,;t t
17643 s,@LTLIBOBJS@,$LTLIBOBJS,;t t
17648 cat >>$CONFIG_STATUS <<\_ACEOF
17649 # Split the substitutions into bite-sized pieces for seds with
17650 # small command number limits, like on Digital OSF/1 and HP-UX.
17651 ac_max_sed_lines
=48
17652 ac_sed_frag
=1 # Number of current file.
17653 ac_beg
=1 # First line for current file.
17654 ac_end
=$ac_max_sed_lines # Line after last line for current file.
17657 while $ac_more_lines; do
17658 if test $ac_beg -gt 1; then
17659 sed "1,${ac_beg}d; ${ac_end}q" $tmp/subs.
sed >$tmp/subs.frag
17661 sed "${ac_end}q" $tmp/subs.
sed >$tmp/subs.frag
17663 if test ! -s $tmp/subs.frag
; then
17664 ac_more_lines
=false
17666 # The purpose of the label and of the branching condition is to
17667 # speed up the sed processing (if there are no `@' at all, there
17668 # is no need to browse any of the substitutions).
17669 # These are the two extra sed commands mentioned above.
17671 /@[a-zA-Z_][a-zA-Z_0-9]*@/!b' && cat $tmp/subs.frag
) >$tmp/subs-
$ac_sed_frag.
sed
17672 if test -z "$ac_sed_cmds"; then
17673 ac_sed_cmds
="sed -f $tmp/subs-$ac_sed_frag.sed"
17675 ac_sed_cmds
="$ac_sed_cmds | sed -f $tmp/subs-$ac_sed_frag.sed"
17677 ac_sed_frag
=`expr $ac_sed_frag + 1`
17679 ac_end
=`expr $ac_end + $ac_max_sed_lines`
17682 if test -z "$ac_sed_cmds"; then
17685 fi # test -n "$CONFIG_FILES"
17688 cat >>$CONFIG_STATUS <<\_ACEOF
17689 for ac_file
in : $CONFIG_FILES; do test "x$ac_file" = x
: && continue
17690 # Support "outfile[:infile[:infile...]]", defaulting infile="outfile.in".
17692 - |
*:- |
*:-:* ) # input from stdin
17694 ac_file_in
=`echo "$ac_file" | sed 's,[^:]*:,,'`
17695 ac_file
=`echo "$ac_file" | sed 's,:.*,,'` ;;
17696 *:* ) ac_file_in
=`echo "$ac_file" | sed 's,[^:]*:,,'`
17697 ac_file
=`echo "$ac_file" | sed 's,:.*,,'` ;;
17698 * ) ac_file_in
=$ac_file.
in ;;
17701 # Compute @srcdir@, @top_srcdir@, and @INSTALL@ for subdirectories.
17702 ac_dir
=`(dirname "$ac_file") 2>/dev/null ||
17703 $as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
17704 X"$ac_file" : 'X\(//\)[^/]' \| \
17705 X"$ac_file" : 'X\(//\)$' \| \
17706 X"$ac_file" : 'X\(/\)' \| \
17707 . : '\(.\)' 2>/dev/null ||
17709 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
17710 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
17711 /^X\(\/\/\)$/{ s//\1/; q; }
17712 /^X\(\/\).*/{ s//\1/; q; }
17714 { if $as_mkdir_p; then
17719 while test ! -d "$as_dir"; do
17720 as_dirs
="$as_dir $as_dirs"
17721 as_dir
=`(dirname "$as_dir") 2>/dev/null ||
17722 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
17723 X"$as_dir" : 'X\(//\)[^/]' \| \
17724 X"$as_dir" : 'X\(//\)$' \| \
17725 X"$as_dir" : 'X\(/\)' \| \
17726 . : '\(.\)' 2>/dev/null ||
17728 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
17729 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
17730 /^X\(\/\/\)$/{ s//\1/; q; }
17731 /^X\(\/\).*/{ s//\1/; q; }
17734 test ! -n "$as_dirs" || mkdir
$as_dirs
17735 fi ||
{ { echo "$as_me:$LINENO: error: cannot create directory \"$ac_dir\"" >&5
17736 echo "$as_me: error: cannot create directory \"$ac_dir\"" >&2;}
17737 { (exit 1); exit 1; }; }; }
17741 if test "$ac_dir" != .
; then
17742 ac_dir_suffix
=/`echo "$ac_dir" | sed 's,^\.[\\/],,'`
17743 # A "../" for each directory in $ac_dir_suffix.
17744 ac_top_builddir
=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,../,g'`
17746 ac_dir_suffix
= ac_top_builddir
=
17750 .
) # No --srcdir option. We are building in place.
17752 if test -z "$ac_top_builddir"; then
17755 ac_top_srcdir
=`echo $ac_top_builddir | sed 's,/$,,'`
17757 [\\/]* | ?
:[\\/]* ) # Absolute path.
17758 ac_srcdir
=$srcdir$ac_dir_suffix;
17759 ac_top_srcdir
=$srcdir ;;
17760 *) # Relative path.
17761 ac_srcdir
=$ac_top_builddir$srcdir$ac_dir_suffix
17762 ac_top_srcdir
=$ac_top_builddir$srcdir ;;
17765 # Do not use `cd foo && pwd` to compute absolute paths, because
17766 # the directories may not exist.
17768 .
) ac_abs_builddir
="$ac_dir";;
17771 .
) ac_abs_builddir
=`pwd`;;
17772 [\\/]* | ?
:[\\/]* ) ac_abs_builddir
="$ac_dir";;
17773 *) ac_abs_builddir
=`pwd`/"$ac_dir";;
17776 case $ac_abs_builddir in
17777 .
) ac_abs_top_builddir
=${ac_top_builddir}.
;;
17779 case ${ac_top_builddir}.
in
17780 .
) ac_abs_top_builddir
=$ac_abs_builddir;;
17781 [\\/]* | ?
:[\\/]* ) ac_abs_top_builddir
=${ac_top_builddir}.
;;
17782 *) ac_abs_top_builddir
=$ac_abs_builddir/${ac_top_builddir}.
;;
17785 case $ac_abs_builddir in
17786 .
) ac_abs_srcdir
=$ac_srcdir;;
17789 .
) ac_abs_srcdir
=$ac_abs_builddir;;
17790 [\\/]* | ?
:[\\/]* ) ac_abs_srcdir
=$ac_srcdir;;
17791 *) ac_abs_srcdir
=$ac_abs_builddir/$ac_srcdir;;
17794 case $ac_abs_builddir in
17795 .
) ac_abs_top_srcdir
=$ac_top_srcdir;;
17797 case $ac_top_srcdir in
17798 .
) ac_abs_top_srcdir
=$ac_abs_builddir;;
17799 [\\/]* | ?
:[\\/]* ) ac_abs_top_srcdir
=$ac_top_srcdir;;
17800 *) ac_abs_top_srcdir
=$ac_abs_builddir/$ac_top_srcdir;;
17806 [\\/$
]* | ?
:[\\/]* ) ac_INSTALL
=$INSTALL ;;
17807 *) ac_INSTALL
=$ac_top_builddir$INSTALL ;;
17810 if test x
"$ac_file" != x-
; then
17811 { echo "$as_me:$LINENO: creating $ac_file" >&5
17812 echo "$as_me: creating $ac_file" >&6;}
17815 # Let's still pretend it is `configure' which instantiates (i.e., don't
17816 # use $as_me), people would be surprised to read:
17817 # /* config.h. Generated by config.status. */
17818 if test x
"$ac_file" = x-
; then
17821 configure_input
="$ac_file. "
17823 configure_input
=$configure_input"Generated from `echo $ac_file_in |
17824 sed 's,.*/,,'` by configure."
17826 # First look for the input files in the build tree, otherwise in the
17828 ac_file_inputs
=`IFS=:
17829 for f in $ac_file_in; do
17831 -) echo $tmp/stdin ;;
17833 # Absolute (can't be DOS-style, as IFS=:)
17834 test -f "$f" || { { echo "$as_me:$LINENO: error: cannot find input file: $f" >&5
17835 echo "$as_me: error: cannot find input file: $f" >&2;}
17836 { (exit 1); exit 1; }; }
17839 if test -f "$f"; then
17842 elif test -f "$srcdir/$f"; then
17847 { { echo "$as_me:$LINENO: error: cannot find input file: $f" >&5
17848 echo "$as_me: error: cannot find input file: $f" >&2;}
17849 { (exit 1); exit 1; }; }
17852 done` ||
{ (exit 1); exit 1; }
17854 cat >>$CONFIG_STATUS <<_ACEOF
17858 cat >>$CONFIG_STATUS <<\_ACEOF
17860 /@
[a-zA-Z_
][a-zA-Z_0-9
]*@
/!b
17861 s
,@configure_input@
,$configure_input,;t t
17862 s
,@srcdir@
,$ac_srcdir,;t t
17863 s
,@abs_srcdir@
,$ac_abs_srcdir,;t t
17864 s
,@top_srcdir@
,$ac_top_srcdir,;t t
17865 s
,@abs_top_srcdir@
,$ac_abs_top_srcdir,;t t
17866 s
,@builddir@
,$ac_builddir,;t t
17867 s
,@abs_builddir@
,$ac_abs_builddir,;t t
17868 s
,@top_builddir@
,$ac_top_builddir,;t t
17869 s
,@abs_top_builddir@
,$ac_abs_top_builddir,;t t
17870 s
,@INSTALL@
,$ac_INSTALL,;t t
17871 " $ac_file_inputs | (eval "$ac_sed_cmds") >$tmp/out
17873 if test x"$ac_file" != x-; then
17874 mv $tmp/out $ac_file
17880 # Run the commands associated with the file.
17882 scripts/jar ) chmod +x scripts/jar ;;
17886 cat >>$CONFIG_STATUS <<\_ACEOF
17889 # CONFIG_HEADER section.
17892 # These sed commands are passed to sed as "A NAME B NAME C VALUE D
", where
17893 # NAME is the cpp macro being defined and VALUE is the value it is being given.
17895 # ac_d sets the value in "#define NAME VALUE" lines.
17896 ac_dA
='s,^\([ ]*\)#\([ ]*define[ ][ ]*\)'
17897 ac_dB
='[ ].*$,\1#\2'
17900 # ac_u turns "#undef NAME" without trailing blanks into "#define NAME VALUE".
17901 ac_uA
='s,^\([ ]*\)#\([ ]*\)undef\([ ][ ]*\)'
17902 ac_uB
='$,\1#\2define\3'
17906 for ac_file
in : $CONFIG_HEADERS; do test "x$ac_file" = x
: && continue
17907 # Support "outfile[:infile[:infile...]]", defaulting infile="outfile.in".
17909 - |
*:- |
*:-:* ) # input from stdin
17911 ac_file_in
=`echo "$ac_file" | sed 's,[^:]*:,,'`
17912 ac_file
=`echo "$ac_file" | sed 's,:.*,,'` ;;
17913 *:* ) ac_file_in
=`echo "$ac_file" | sed 's,[^:]*:,,'`
17914 ac_file
=`echo "$ac_file" | sed 's,:.*,,'` ;;
17915 * ) ac_file_in
=$ac_file.
in ;;
17918 test x
"$ac_file" != x-
&& { echo "$as_me:$LINENO: creating $ac_file" >&5
17919 echo "$as_me: creating $ac_file" >&6;}
17921 # First look for the input files in the build tree, otherwise in the
17923 ac_file_inputs
=`IFS=:
17924 for f in $ac_file_in; do
17926 -) echo $tmp/stdin ;;
17928 # Absolute (can't be DOS-style, as IFS=:)
17929 test -f "$f" || { { echo "$as_me:$LINENO: error: cannot find input file: $f" >&5
17930 echo "$as_me: error: cannot find input file: $f" >&2;}
17931 { (exit 1); exit 1; }; }
17932 # Do quote $f, to prevent DOS paths from being IFS'd.
17935 if test -f "$f"; then
17938 elif test -f "$srcdir/$f"; then
17943 { { echo "$as_me:$LINENO: error: cannot find input file: $f" >&5
17944 echo "$as_me: error: cannot find input file: $f" >&2;}
17945 { (exit 1); exit 1; }; }
17948 done` ||
{ (exit 1); exit 1; }
17949 # Remove the trailing spaces.
17950 sed 's/[ ]*$//' $ac_file_inputs >$tmp/in
17954 # Transform confdefs.h into two sed scripts, `conftest.defines' and
17955 # `conftest.undefs', that substitutes the proper values into
17956 # config.h.in to produce config.h. The first handles `#define'
17957 # templates, and the second `#undef' templates.
17958 # And first: Protect against being on the right side of a sed subst in
17959 # config.status. Protect against being in an unquoted here document
17960 # in config.status.
17961 rm -f conftest.defines conftest.undefs
17962 # Using a here document instead of a string reduces the quoting nightmare.
17963 # Putting comments in sed scripts is not portable.
17965 # `end' is used to avoid that the second main sed command (meant for
17966 # 0-ary CPP macros) applies to n-ary macro definitions.
17967 # See the Autoconf documentation for `clear'.
17968 cat >confdef2sed.
sed <<\_ACEOF
17973 s,^[ ]*#[ ]*define[ ][ ]*\([^ (][^ (]*\)\(([^)]*)\)[ ]*\(.*\)$,${ac_dA}\1${ac_dB}\1\2${ac_dC}\3${ac_dD},gp
17975 s,^[ ]*#[ ]*define[ ][ ]*\([^ ][^ ]*\)[ ]*\(.*\)$,${ac_dA}\1${ac_dB}\1${ac_dC}\2${ac_dD},gp
17978 # If some macros were called several times there might be several times
17979 # the same #defines, which is useless. Nevertheless, we may not want to
17980 # sort them, since we want the *last* AC-DEFINE to be honored.
17981 uniq confdefs.h | sed -n -f confdef2sed.sed >conftest.defines
17982 sed 's/ac_d/ac_u/g' conftest.defines >conftest.undefs
17983 rm -f confdef2sed.sed
17985 # This sed command replaces #undef with comments. This is necessary, for
17986 # example, in the case of _POSIX_SOURCE, which is predefined and required
17987 # on some systems where configure will not decide to define it.
17988 cat >>conftest.undefs <<\_ACEOF
17989 s,^[ ]*#[ ]*undef[ ][ ]*[a-zA-Z_][a-zA-Z_0-9]*,/* & */,
17992 # Break up conftest.defines because some shells have a limit on the size
17993 # of here documents, and old seds have small limits too (100 cmds).
17994 echo ' # Handle all the #define templates only if necessary.' >>$CONFIG_STATUS
17995 echo ' if grep "^[ ]*#[ ]*define" $tmp/in >/dev/null; then' >>$CONFIG_STATUS
17996 echo ' # If there are no defines, we may have an empty if/fi' >>$CONFIG_STATUS
17997 echo ' :' >>$CONFIG_STATUS
17998 rm -f conftest.tail
17999 while grep . conftest.defines >/dev/null
18001 # Write a limited-size here document to $tmp/defines.sed.
18002 echo ' cat >$tmp/defines.sed <<CEOF' >>$CONFIG_STATUS
18003 # Speed up: don't consider the non `#define' lines.
18004 echo '/^[ ]*#[ ]*define/!b' >>$CONFIG_STATUS
18005 # Work around the forget-to-reset-the-flag bug.
18006 echo 't clr' >>$CONFIG_STATUS
18007 echo ': clr' >>$CONFIG_STATUS
18008 sed ${ac_max_here_lines}q conftest.defines
>>$CONFIG_STATUS
18010 sed -f $tmp/defines.sed $tmp/in >$tmp/out
18012 mv $tmp/out $tmp/in
18014 sed 1,${ac_max_here_lines}d conftest.defines
>conftest.
tail
18015 rm -f conftest.defines
18016 mv conftest.
tail conftest.defines
18018 rm -f conftest.defines
18019 echo ' fi # grep' >>$CONFIG_STATUS
18020 echo >>$CONFIG_STATUS
18022 # Break up conftest.undefs because some shells have a limit on the size
18023 # of here documents, and old seds have small limits too (100 cmds).
18024 echo ' # Handle all the #undef templates' >>$CONFIG_STATUS
18025 rm -f conftest.
tail
18026 while grep . conftest.undefs
>/dev
/null
18028 # Write a limited-size here document to $tmp/undefs.sed.
18029 echo ' cat >$tmp/undefs.sed <<CEOF' >>$CONFIG_STATUS
18030 # Speed up: don't consider the non
`#undef'
18031 echo '/^[ ]*#[ ]*undef/!b' >>$CONFIG_STATUS
18032 # Work around the forget-to-reset-the-flag bug.
18033 echo 't clr' >>$CONFIG_STATUS
18034 echo ': clr' >>$CONFIG_STATUS
18035 sed ${ac_max_here_lines}q conftest.undefs >>$CONFIG_STATUS
18037 sed -f $tmp/undefs.sed $tmp/in >$tmp/out
18039 mv $tmp/out $tmp/in
18041 sed 1,${ac_max_here_lines}d conftest.undefs >conftest.tail
18042 rm -f conftest.undefs
18043 mv conftest.tail conftest.undefs
18045 rm -f conftest.undefs
18047 cat >>$CONFIG_STATUS <<\_ACEOF
18048 # Let's still pretend it is `configure
' which instantiates (i.e., don't
18049 # use $as_me), people would be surprised to read:
18050 # /* config.h. Generated by config.status. */
18051 if test x
"$ac_file" = x-
; then
18052 echo "/* Generated by configure. */" >$tmp/config.h
18054 echo "/* $ac_file. Generated by configure. */" >$tmp/config.h
18056 cat $tmp/in >>$tmp/config.h
18058 if test x
"$ac_file" != x-
; then
18059 if diff $ac_file $tmp/config.h
>/dev
/null
2>&1; then
18060 { echo "$as_me:$LINENO: $ac_file is unchanged" >&5
18061 echo "$as_me: $ac_file is unchanged" >&6;}
18063 ac_dir
=`(dirname "$ac_file") 2>/dev/null ||
18064 $as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
18065 X"$ac_file" : 'X\(//\)[^/]' \| \
18066 X"$ac_file" : 'X\(//\)$' \| \
18067 X"$ac_file" : 'X\(/\)' \| \
18068 . : '\(.\)' 2>/dev/null ||
18070 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
18071 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
18072 /^X\(\/\/\)$/{ s//\1/; q; }
18073 /^X\(\/\).*/{ s//\1/; q; }
18075 { if $as_mkdir_p; then
18080 while test ! -d "$as_dir"; do
18081 as_dirs
="$as_dir $as_dirs"
18082 as_dir
=`(dirname "$as_dir") 2>/dev/null ||
18083 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
18084 X"$as_dir" : 'X\(//\)[^/]' \| \
18085 X"$as_dir" : 'X\(//\)$' \| \
18086 X"$as_dir" : 'X\(/\)' \| \
18087 . : '\(.\)' 2>/dev/null ||
18089 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
18090 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
18091 /^X\(\/\/\)$/{ s//\1/; q; }
18092 /^X\(\/\).*/{ s//\1/; q; }
18095 test ! -n "$as_dirs" || mkdir
$as_dirs
18096 fi ||
{ { echo "$as_me:$LINENO: error: cannot create directory \"$ac_dir\"" >&5
18097 echo "$as_me: error: cannot create directory \"$ac_dir\"" >&2;}
18098 { (exit 1); exit 1; }; }; }
18101 mv $tmp/config.h
$ac_file
18105 rm -f $tmp/config.h
18107 # Compute $ac_file's index in $config_headers.
18109 for _am_header
in $config_headers :; do
18110 case $_am_header in
18111 $ac_file |
$ac_file:* )
18114 _am_stamp_count
=`expr $_am_stamp_count + 1` ;;
18117 echo "timestamp for $ac_file" >`(dirname $ac_file) 2>/dev/null ||
18118 $as_expr X$ac_file : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
18119 X$ac_file : 'X\(//\)[^/]' \| \
18120 X$ac_file : 'X\(//\)$' \| \
18121 X$ac_file : 'X\(/\)' \| \
18122 . : '\(.\)' 2>/dev/null ||
18124 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
18125 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
18126 /^X\(\/\/\)$/{ s//\1/; q; }
18127 /^X\(\/\).*/{ s//\1/; q; }
18128 s/.*/./; q'`/stamp-h
$_am_stamp_count
18131 cat >>$CONFIG_STATUS <<\_ACEOF
18134 # CONFIG_LINKS section.
18137 for ac_file
in : $CONFIG_LINKS; do test "x$ac_file" = x
: && continue
18138 ac_dest
=`echo "$ac_file" | sed 's,:.*,,'`
18139 ac_source
=`echo "$ac_file" | sed 's,[^:]*:,,'`
18141 { echo "$as_me:$LINENO: linking $srcdir/$ac_source to $ac_dest" >&5
18142 echo "$as_me: linking $srcdir/$ac_source to $ac_dest" >&6;}
18144 if test ! -r $srcdir/$ac_source; then
18145 { { echo "$as_me:$LINENO: error: $srcdir/$ac_source: file not found" >&5
18146 echo "$as_me: error: $srcdir/$ac_source: file not found" >&2;}
18147 { (exit 1); exit 1; }; }
18151 # Make relative symlinks.
18152 ac_dest_dir
=`(dirname "$ac_dest") 2>/dev/null ||
18153 $as_expr X"$ac_dest" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
18154 X"$ac_dest" : 'X\(//\)[^/]' \| \
18155 X"$ac_dest" : 'X\(//\)$' \| \
18156 X"$ac_dest" : 'X\(/\)' \| \
18157 . : '\(.\)' 2>/dev/null ||
18159 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
18160 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
18161 /^X\(\/\/\)$/{ s//\1/; q; }
18162 /^X\(\/\).*/{ s//\1/; q; }
18164 { if $as_mkdir_p; then
18165 mkdir
-p "$ac_dest_dir"
18167 as_dir
="$ac_dest_dir"
18169 while test ! -d "$as_dir"; do
18170 as_dirs
="$as_dir $as_dirs"
18171 as_dir
=`(dirname "$as_dir") 2>/dev/null ||
18172 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
18173 X"$as_dir" : 'X\(//\)[^/]' \| \
18174 X"$as_dir" : 'X\(//\)$' \| \
18175 X"$as_dir" : 'X\(/\)' \| \
18176 . : '\(.\)' 2>/dev/null ||
18178 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
18179 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
18180 /^X\(\/\/\)$/{ s//\1/; q; }
18181 /^X\(\/\).*/{ s//\1/; q; }
18184 test ! -n "$as_dirs" || mkdir
$as_dirs
18185 fi ||
{ { echo "$as_me:$LINENO: error: cannot create directory \"$ac_dest_dir\"" >&5
18186 echo "$as_me: error: cannot create directory \"$ac_dest_dir\"" >&2;}
18187 { (exit 1); exit 1; }; }; }
18191 if test "$ac_dest_dir" != .
; then
18192 ac_dir_suffix
=/`echo "$ac_dest_dir" | sed 's,^\.[\\/],,'`
18193 # A "../" for each directory in $ac_dir_suffix.
18194 ac_top_builddir
=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,../,g'`
18196 ac_dir_suffix
= ac_top_builddir
=
18200 .
) # No --srcdir option. We are building in place.
18202 if test -z "$ac_top_builddir"; then
18205 ac_top_srcdir
=`echo $ac_top_builddir | sed 's,/$,,'`
18207 [\\/]* | ?
:[\\/]* ) # Absolute path.
18208 ac_srcdir
=$srcdir$ac_dir_suffix;
18209 ac_top_srcdir
=$srcdir ;;
18210 *) # Relative path.
18211 ac_srcdir
=$ac_top_builddir$srcdir$ac_dir_suffix
18212 ac_top_srcdir
=$ac_top_builddir$srcdir ;;
18215 # Do not use `cd foo && pwd` to compute absolute paths, because
18216 # the directories may not exist.
18218 .
) ac_abs_builddir
="$ac_dest_dir";;
18220 case "$ac_dest_dir" in
18221 .
) ac_abs_builddir
=`pwd`;;
18222 [\\/]* | ?
:[\\/]* ) ac_abs_builddir
="$ac_dest_dir";;
18223 *) ac_abs_builddir
=`pwd`/"$ac_dest_dir";;
18226 case $ac_abs_builddir in
18227 .
) ac_abs_top_builddir
=${ac_top_builddir}.
;;
18229 case ${ac_top_builddir}.
in
18230 .
) ac_abs_top_builddir
=$ac_abs_builddir;;
18231 [\\/]* | ?
:[\\/]* ) ac_abs_top_builddir
=${ac_top_builddir}.
;;
18232 *) ac_abs_top_builddir
=$ac_abs_builddir/${ac_top_builddir}.
;;
18235 case $ac_abs_builddir in
18236 .
) ac_abs_srcdir
=$ac_srcdir;;
18239 .
) ac_abs_srcdir
=$ac_abs_builddir;;
18240 [\\/]* | ?
:[\\/]* ) ac_abs_srcdir
=$ac_srcdir;;
18241 *) ac_abs_srcdir
=$ac_abs_builddir/$ac_srcdir;;
18244 case $ac_abs_builddir in
18245 .
) ac_abs_top_srcdir
=$ac_top_srcdir;;
18247 case $ac_top_srcdir in
18248 .
) ac_abs_top_srcdir
=$ac_abs_builddir;;
18249 [\\/]* | ?
:[\\/]* ) ac_abs_top_srcdir
=$ac_top_srcdir;;
18250 *) ac_abs_top_srcdir
=$ac_abs_builddir/$ac_top_srcdir;;
18256 [\\/$
]* | ?
:[\\/]* ) ac_rel_source
=$srcdir/$ac_source ;;
18257 *) ac_rel_source
=$ac_top_builddir$srcdir/$ac_source ;;
18260 # Try a symlink, then a hard link, then a copy.
18261 ln -s $ac_rel_source $ac_dest 2>/dev
/null ||
18262 ln $srcdir/$ac_source $ac_dest 2>/dev
/null ||
18263 cp -p $srcdir/$ac_source $ac_dest ||
18264 { { echo "$as_me:$LINENO: error: cannot link or copy $srcdir/$ac_source to $ac_dest" >&5
18265 echo "$as_me: error: cannot link or copy $srcdir/$ac_source to $ac_dest" >&2;}
18266 { (exit 1); exit 1; }; }
18269 cat >>$CONFIG_STATUS <<\_ACEOF
18272 # CONFIG_COMMANDS section.
18274 for ac_file
in : $CONFIG_COMMANDS; do test "x$ac_file" = x
: && continue
18275 ac_dest
=`echo "$ac_file" | sed 's,:.*,,'`
18276 ac_source
=`echo "$ac_file" | sed 's,[^:]*:,,'`
18277 ac_dir
=`(dirname "$ac_dest") 2>/dev/null ||
18278 $as_expr X"$ac_dest" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
18279 X"$ac_dest" : 'X\(//\)[^/]' \| \
18280 X"$ac_dest" : 'X\(//\)$' \| \
18281 X"$ac_dest" : 'X\(/\)' \| \
18282 . : '\(.\)' 2>/dev/null ||
18284 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
18285 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
18286 /^X\(\/\/\)$/{ s//\1/; q; }
18287 /^X\(\/\).*/{ s//\1/; q; }
18289 { if $as_mkdir_p; then
18294 while test ! -d "$as_dir"; do
18295 as_dirs
="$as_dir $as_dirs"
18296 as_dir
=`(dirname "$as_dir") 2>/dev/null ||
18297 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
18298 X"$as_dir" : 'X\(//\)[^/]' \| \
18299 X"$as_dir" : 'X\(//\)$' \| \
18300 X"$as_dir" : 'X\(/\)' \| \
18301 . : '\(.\)' 2>/dev/null ||
18303 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
18304 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
18305 /^X\(\/\/\)$/{ s//\1/; q; }
18306 /^X\(\/\).*/{ s//\1/; q; }
18309 test ! -n "$as_dirs" || mkdir
$as_dirs
18310 fi ||
{ { echo "$as_me:$LINENO: error: cannot create directory \"$ac_dir\"" >&5
18311 echo "$as_me: error: cannot create directory \"$ac_dir\"" >&2;}
18312 { (exit 1); exit 1; }; }; }
18316 if test "$ac_dir" != .
; then
18317 ac_dir_suffix
=/`echo "$ac_dir" | sed 's,^\.[\\/],,'`
18318 # A "../" for each directory in $ac_dir_suffix.
18319 ac_top_builddir
=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,../,g'`
18321 ac_dir_suffix
= ac_top_builddir
=
18325 .
) # No --srcdir option. We are building in place.
18327 if test -z "$ac_top_builddir"; then
18330 ac_top_srcdir
=`echo $ac_top_builddir | sed 's,/$,,'`
18332 [\\/]* | ?
:[\\/]* ) # Absolute path.
18333 ac_srcdir
=$srcdir$ac_dir_suffix;
18334 ac_top_srcdir
=$srcdir ;;
18335 *) # Relative path.
18336 ac_srcdir
=$ac_top_builddir$srcdir$ac_dir_suffix
18337 ac_top_srcdir
=$ac_top_builddir$srcdir ;;
18340 # Do not use `cd foo && pwd` to compute absolute paths, because
18341 # the directories may not exist.
18343 .
) ac_abs_builddir
="$ac_dir";;
18346 .
) ac_abs_builddir
=`pwd`;;
18347 [\\/]* | ?
:[\\/]* ) ac_abs_builddir
="$ac_dir";;
18348 *) ac_abs_builddir
=`pwd`/"$ac_dir";;
18351 case $ac_abs_builddir in
18352 .
) ac_abs_top_builddir
=${ac_top_builddir}.
;;
18354 case ${ac_top_builddir}.
in
18355 .
) ac_abs_top_builddir
=$ac_abs_builddir;;
18356 [\\/]* | ?
:[\\/]* ) ac_abs_top_builddir
=${ac_top_builddir}.
;;
18357 *) ac_abs_top_builddir
=$ac_abs_builddir/${ac_top_builddir}.
;;
18360 case $ac_abs_builddir in
18361 .
) ac_abs_srcdir
=$ac_srcdir;;
18364 .
) ac_abs_srcdir
=$ac_abs_builddir;;
18365 [\\/]* | ?
:[\\/]* ) ac_abs_srcdir
=$ac_srcdir;;
18366 *) ac_abs_srcdir
=$ac_abs_builddir/$ac_srcdir;;
18369 case $ac_abs_builddir in
18370 .
) ac_abs_top_srcdir
=$ac_top_srcdir;;
18372 case $ac_top_srcdir in
18373 .
) ac_abs_top_srcdir
=$ac_abs_builddir;;
18374 [\\/]* | ?
:[\\/]* ) ac_abs_top_srcdir
=$ac_top_srcdir;;
18375 *) ac_abs_top_srcdir
=$ac_abs_builddir/$ac_top_srcdir;;
18380 { echo "$as_me:$LINENO: executing $ac_dest commands" >&5
18381 echo "$as_me: executing $ac_dest commands" >&6;}
18383 depfiles
) test x
"$AMDEP_TRUE" != x
"" ||
for mf
in $CONFIG_FILES; do
18384 # Strip MF so we end up with the name of the file.
18385 mf
=`echo "$mf" | sed -e 's/:.*$//'`
18386 # Check whether this is an Automake generated Makefile or not.
18387 # We used to match only the files named `Makefile.in', but
18388 # some people rename them; so instead we look at the file content.
18389 # Grep'ing the first line is not enough: some people post-process
18390 # each Makefile.in and add a new line on top of each file to say so.
18391 # So let's grep whole file.
18392 if grep '^#.*generated by automake' $mf > /dev
/null
2>&1; then
18393 dirpart
=`(dirname "$mf") 2>/dev/null ||
18394 $as_expr X"$mf" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
18395 X"$mf" : 'X\(//\)[^/]' \| \
18396 X"$mf" : 'X\(//\)$' \| \
18397 X"$mf" : 'X\(/\)' \| \
18398 . : '\(.\)' 2>/dev/null ||
18400 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
18401 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
18402 /^X\(\/\/\)$/{ s//\1/; q; }
18403 /^X\(\/\).*/{ s//\1/; q; }
18408 # Extract the definition of DEPDIR, am__include, and am__quote
18409 # from the Makefile without running `make'.
18410 DEPDIR
=`sed -n 's/^DEPDIR = //p' < "$mf"`
18411 test -z "$DEPDIR" && continue
18412 am__include
=`sed -n 's/^am__include = //p' < "$mf"`
18413 test -z "am__include" && continue
18414 am__quote
=`sed -n 's/^am__quote = //p' < "$mf"`
18415 # When using ansi2knr, U may be empty or an underscore; expand it
18416 U
=`sed -n 's/^U = //p' < "$mf"`
18417 # Find all dependency output files, they are included files with
18418 # $(DEPDIR) in their names. We invoke sed twice because it is the
18419 # simplest approach to changing $(DEPDIR) to its actual value in the
18421 for file in `sed -n "
18422 s/^$am__include $am__quote\(.*(DEPDIR).*\)$am__quote"'$/\1/p' <"$mf" | \
18423 sed -e 's/\$(DEPDIR)/'"$DEPDIR"'/g' -e 's/\$U/'"$U"'/g'`; do
18424 # Make sure the directory exists.
18425 test -f "$dirpart/$file" && continue
18426 fdir
=`(dirname "$file") 2>/dev/null ||
18427 $as_expr X"$file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
18428 X"$file" : 'X\(//\)[^/]' \| \
18429 X"$file" : 'X\(//\)$' \| \
18430 X"$file" : 'X\(/\)' \| \
18431 . : '\(.\)' 2>/dev/null ||
18433 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
18434 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
18435 /^X\(\/\/\)$/{ s//\1/; q; }
18436 /^X\(\/\).*/{ s//\1/; q; }
18438 { if $as_mkdir_p; then
18439 mkdir
-p $dirpart/$fdir
18441 as_dir
=$dirpart/$fdir
18443 while test ! -d "$as_dir"; do
18444 as_dirs
="$as_dir $as_dirs"
18445 as_dir
=`(dirname "$as_dir") 2>/dev/null ||
18446 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
18447 X"$as_dir" : 'X\(//\)[^/]' \| \
18448 X"$as_dir" : 'X\(//\)$' \| \
18449 X"$as_dir" : 'X\(/\)' \| \
18450 . : '\(.\)' 2>/dev/null ||
18452 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
18453 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
18454 /^X\(\/\/\)$/{ s//\1/; q; }
18455 /^X\(\/\).*/{ s//\1/; q; }
18458 test ! -n "$as_dirs" || mkdir
$as_dirs
18459 fi ||
{ { echo "$as_me:$LINENO: error: cannot create directory $dirpart/$fdir" >&5
18460 echo "$as_me: error: cannot create directory $dirpart/$fdir" >&2;}
18461 { (exit 1); exit 1; }; }; }
18463 # echo "creating $dirpart/$file"
18464 echo '# dummy' > "$dirpart/$file"
18468 default
) # Only add multilib support code if we just rebuilt top-level Makefile.
18469 case " $CONFIG_FILES " in
18471 LD
="${ORIGINAL_LD_FOR_MULTILIBS}"
18472 ac_file
=Makefile .
${libgcj_basedir}/..
/config-ml.
in
18475 for ac_multi_file
in $CONFIG_FILES; do
18476 case $ac_multi_file in
18478 grep "^MULTI[^ ]* =" Makefile
>> "$ac_multi_file" ;;
18486 cat >>$CONFIG_STATUS <<\_ACEOF
18488 { (exit 0); exit 0; }
18490 chmod +x
$CONFIG_STATUS
18491 ac_clean_files
=$ac_clean_files_save
18494 # configure is writing to config.log, and then calls config.status.
18495 # config.status does its own redirection, appending to config.log.
18496 # Unfortunately, on DOS this fails, as config.log is still kept open
18497 # by configure, so config.status won't be able to write to it; its
18498 # output is simply discarded. So we exec the FD to /dev/null,
18499 # effectively closing config.log, so it can be properly (re)opened and
18500 # appended to by config.status. When coming back to configure, we
18501 # need to make the FD available again.
18502 if test "$no_create" != yes; then
18504 ac_config_status_args
=
18505 test "$silent" = yes &&
18506 ac_config_status_args
="$ac_config_status_args --quiet"
18508 $SHELL $CONFIG_STATUS $ac_config_status_args || ac_cs_success
=false
18510 # Use ||, not &&, to avoid exiting from the if with $? = 1, which
18511 # would make configure fail if this is the last instruction.
18512 $ac_cs_success ||
{ (exit 1); exit 1; }
18516 # CONFIG_SUBDIRS section.
18518 if test "$no_recursion" != yes; then
18520 # Remove --cache-file and --srcdir arguments so they do not pile up.
18521 ac_sub_configure_args
=
18523 for ac_arg
in $ac_configure_args; do
18524 if test -n "$ac_prev"; then
18529 -cache-file |
--cache-file |
--cache-fil |
--cache-fi \
18530 |
--cache-f |
--cache- |
--cache |
--cach |
--cac |
--ca |
--c)
18531 ac_prev
=cache_file
;;
18532 -cache-file=* |
--cache-file=* |
--cache-fil=* |
--cache-fi=* \
18533 |
--cache-f=* |
--cache-=* |
--cache=* |
--cach=* |
--cac=* |
--ca=* \
18536 --config-cache |
-C)
18538 -srcdir |
--srcdir |
--srcdi |
--srcd |
--src |
--sr)
18540 -srcdir=* |
--srcdir=* |
--srcdi=* |
--srcd=* |
--src=* |
--sr=*)
18542 -prefix |
--prefix |
--prefi |
--pref |
--pre |
--pr |
--p)
18544 -prefix=* |
--prefix=* |
--prefi=* |
--pref=* |
--pre=* |
--pr=* |
--p=*)
18546 *) ac_sub_configure_args
="$ac_sub_configure_args $ac_arg" ;;
18550 # Always prepend --prefix to ensure using the same prefix
18551 # in subdir configurations.
18552 ac_sub_configure_args
="--prefix=$prefix $ac_sub_configure_args"
18555 for ac_dir
in : $subdirs; do test "x$ac_dir" = x
: && continue
18557 # Do not complain, so a configure script can configure whichever
18558 # parts of a large source tree are present.
18559 test -d $srcdir/$ac_dir ||
continue
18561 { echo "$as_me:$LINENO: configuring in $ac_dir" >&5
18562 echo "$as_me: configuring in $ac_dir" >&6;}
18563 { if $as_mkdir_p; then
18568 while test ! -d "$as_dir"; do
18569 as_dirs
="$as_dir $as_dirs"
18570 as_dir
=`(dirname "$as_dir") 2>/dev/null ||
18571 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
18572 X"$as_dir" : 'X\(//\)[^/]' \| \
18573 X"$as_dir" : 'X\(//\)$' \| \
18574 X"$as_dir" : 'X\(/\)' \| \
18575 . : '\(.\)' 2>/dev/null ||
18577 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
18578 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
18579 /^X\(\/\/\)$/{ s//\1/; q; }
18580 /^X\(\/\).*/{ s//\1/; q; }
18583 test ! -n "$as_dirs" || mkdir
$as_dirs
18584 fi ||
{ { echo "$as_me:$LINENO: error: cannot create directory \"$ac_dir\"" >&5
18585 echo "$as_me: error: cannot create directory \"$ac_dir\"" >&2;}
18586 { (exit 1); exit 1; }; }; }
18590 if test "$ac_dir" != .
; then
18591 ac_dir_suffix
=/`echo "$ac_dir" | sed 's,^\.[\\/],,'`
18592 # A "../" for each directory in $ac_dir_suffix.
18593 ac_top_builddir
=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,../,g'`
18595 ac_dir_suffix
= ac_top_builddir
=
18599 .
) # No --srcdir option. We are building in place.
18601 if test -z "$ac_top_builddir"; then
18604 ac_top_srcdir
=`echo $ac_top_builddir | sed 's,/$,,'`
18606 [\\/]* | ?
:[\\/]* ) # Absolute path.
18607 ac_srcdir
=$srcdir$ac_dir_suffix;
18608 ac_top_srcdir
=$srcdir ;;
18609 *) # Relative path.
18610 ac_srcdir
=$ac_top_builddir$srcdir$ac_dir_suffix
18611 ac_top_srcdir
=$ac_top_builddir$srcdir ;;
18614 # Do not use `cd foo && pwd` to compute absolute paths, because
18615 # the directories may not exist.
18617 .
) ac_abs_builddir
="$ac_dir";;
18620 .
) ac_abs_builddir
=`pwd`;;
18621 [\\/]* | ?
:[\\/]* ) ac_abs_builddir
="$ac_dir";;
18622 *) ac_abs_builddir
=`pwd`/"$ac_dir";;
18625 case $ac_abs_builddir in
18626 .
) ac_abs_top_builddir
=${ac_top_builddir}.
;;
18628 case ${ac_top_builddir}.
in
18629 .
) ac_abs_top_builddir
=$ac_abs_builddir;;
18630 [\\/]* | ?
:[\\/]* ) ac_abs_top_builddir
=${ac_top_builddir}.
;;
18631 *) ac_abs_top_builddir
=$ac_abs_builddir/${ac_top_builddir}.
;;
18634 case $ac_abs_builddir in
18635 .
) ac_abs_srcdir
=$ac_srcdir;;
18638 .
) ac_abs_srcdir
=$ac_abs_builddir;;
18639 [\\/]* | ?
:[\\/]* ) ac_abs_srcdir
=$ac_srcdir;;
18640 *) ac_abs_srcdir
=$ac_abs_builddir/$ac_srcdir;;
18643 case $ac_abs_builddir in
18644 .
) ac_abs_top_srcdir
=$ac_top_srcdir;;
18646 case $ac_top_srcdir in
18647 .
) ac_abs_top_srcdir
=$ac_abs_builddir;;
18648 [\\/]* | ?
:[\\/]* ) ac_abs_top_srcdir
=$ac_top_srcdir;;
18649 *) ac_abs_top_srcdir
=$ac_abs_builddir/$ac_top_srcdir;;
18656 # Check for guested configure; otherwise get Cygnus style configure.
18657 if test -f $ac_srcdir/configure.gnu
; then
18658 ac_sub_configure
="$SHELL '$ac_srcdir/configure.gnu'"
18659 elif test -f $ac_srcdir/configure
; then
18660 ac_sub_configure
="$SHELL '$ac_srcdir/configure'"
18661 elif test -f $ac_srcdir/configure.
in; then
18662 ac_sub_configure
=$ac_configure
18664 { echo "$as_me:$LINENO: WARNING: no configuration information is in $ac_dir" >&5
18665 echo "$as_me: WARNING: no configuration information is in $ac_dir" >&2;}
18669 # The recursion is here.
18670 if test -n "$ac_sub_configure"; then
18671 # Make the cache file name correct relative to the subdirectory.
18672 case $cache_file in
18673 [\\/]* | ?
:[\\/]* ) ac_sub_cache_file
=$cache_file ;;
18674 *) # Relative path.
18675 ac_sub_cache_file
=$ac_top_builddir$cache_file ;;
18678 { echo "$as_me:$LINENO: running $ac_sub_configure $ac_sub_configure_args --cache-file=$ac_sub_cache_file --srcdir=$ac_srcdir" >&5
18679 echo "$as_me: running $ac_sub_configure $ac_sub_configure_args --cache-file=$ac_sub_cache_file --srcdir=$ac_srcdir" >&6;}
18680 # The eval makes quoting arguments work.
18681 eval $ac_sub_configure $ac_sub_configure_args \
18682 --cache-file=$ac_sub_cache_file --srcdir=$ac_srcdir ||
18683 { { echo "$as_me:$LINENO: error: $ac_sub_configure failed for $ac_dir" >&5
18684 echo "$as_me: error: $ac_sub_configure failed for $ac_dir" >&2;}
18685 { (exit 1); exit 1; }; }