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 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 libgcj_basedir build build_cpu build_vendor build_os 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 AR ac_ct_AR RANLIB ac_ct_RANLIB MAINTAINER_MODE_TRUE MAINTAINER_MODE_FALSE MAINT LIBGCJ_CFLAGS LIBGCJ_CXXFLAGS LIBGCJ_JAVAFLAGS LIBGCJ_LD_SYMBOLIC 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 LIBGCJDEBUG 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_ECOS_PLATFORM_TRUE USING_ECOS_PLATFORM_FALSE USING_DARWIN_CRT_TRUE USING_DARWIN_CRT_FALSE SYSTEMSPEC LIBGCJTESTSPEC ZLIBSPEC ZLIBTESTSPEC X_CFLAGS X_PRE_LIBS X_LIBS X_EXTRA_LIBS TOOLKIT XLIB_AWT_TRUE XLIB_AWT_FALSE GTK_AWT_TRUE GTK_AWT_FALSE GTK_CAIRO_TRUE GTK_CAIRO_FALSE PKG_CONFIG CAIRO_CFLAGS CAIRO_LIBS PANGOFT2_CFLAGS PANGOFT2_LIBS GCLIBS GCINCS GCDEPS GCSPEC JC1GCSPEC GCTESTSPEC USING_BOEHMGC_TRUE USING_BOEHMGC_FALSE USING_NOGC_TRUE USING_NOGC_FALSE THREADLIBS THREADINCS THREADDEPS THREADSPEC 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 gcc_version_trigger gcc_version_full gcc_version tool_include_dir LIBICONV LTLIBICONV GTK_CFLAGS GTK_LIBS GLIB_CFLAGS GLIB_LIBS LIBART_CFLAGS LIBART_LIBS SUPPLY_BACKTRACE_TRUE SUPPLY_BACKTRACE_FALSE GCJH ZIP CLASSPATH_SEPARATOR ac_ct_GCJ ZLIBS SYS_ZLIBS ZINCS DIVIDESPEC CHECKREFSPEC EXCEPTIONSPEC IEEESPEC NATIVE_TRUE NATIVE_FALSE NEEDS_DATA_START_TRUE NEEDS_DATA_START_FALSE GCC_UNWIND_INCLUDE toolexecdir toolexecmainlibdir toolexeclibdir GCJVERSION gxx_include_dir libstdcxx_incdir ALLOCA PERL BACKTRACESPEC SYSDEP_SOURCES 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 --disable-dependency-tracking speeds up one-time build
857 --enable-dependency-tracking do not reject slow dependency extractors
858 --enable-maintainer-mode enable make rules and dependencies not useful
859 (and sometimes confusing
) to the casual installer
860 --enable-shared=PKGS build shared libraries default
=yes
861 --enable-static=PKGS build static libraries default
=yes
862 --enable-fast-install=PKGS optimize
for fast installation default
=yes
863 --disable-libtool-lock avoid locking
(might
break parallel builds
)
864 --disable-getenv-properties
865 don
't set system properties from GCJ_PROPERTIES
866 --enable-hash-synchronization
867 use global hash table for monitor locks
868 --enable-libgcj-debug enable runtime debugging code
869 --enable-gc-debug include full support for pointer backtracing etc.
870 --enable-interpreter enable interpreter
871 --enable-sjlj-exceptions
872 force use of builtin_setjmp for exceptions
873 --disable-java-net disable java.net
874 --disable-jvmpi disable JVMPI support
875 --enable-java-awt list of AWT peer implementations to be built
876 --enable-gtk-cairo build the cairo Graphics2D implementation on GTK
877 --enable-java-gc=TYPE choose garbage collector (default is boehm)
878 --disable-rpath do not hardcode runtime library paths
881 --with-PACKAGE[=ARG] use PACKAGE [ARG=yes]
882 --without-PACKAGE do not use PACKAGE (same as --with-PACKAGE=no)
883 --with-target-subdir=SUBDIR
884 configure in a subdirectory
885 --with-cross-host=HOST configure with a cross compiler from HOST
886 --with-newlib configure with newlib
887 --with-gnu-ld assume the C compiler uses GNU ld default=no
888 --with-pic try to use only PIC/non-PIC objects default=use both
889 --with-java-home=DIRECTORY
890 value of java.home system property
891 --with-win32-nlsapi=ansi or unicows or unicode
892 native MinGW libgcj Win32 OS API (default is ansi)
893 --without-libffi don't use libffi
894 --with-ecos enable runtime eCos target support
895 --with-system-zlib use installed libz
896 --with-x use the X Window System
897 --with-libiconv-prefix[=DIR
] search
for libiconv
in DIR
/include and DIR
/lib
898 --without-libiconv-prefix don
't search for libiconv in includedir and libdir
900 Some influential environment variables:
901 CC C compiler command
902 CFLAGS C compiler flags
903 LDFLAGS linker flags, e.g. -L<lib dir> if you have libraries in a
904 nonstandard directory <lib dir>
905 CPPFLAGS C/C++ preprocessor flags, e.g. -I<include dir> if you have
906 headers in a nonstandard directory <include dir>
907 CXX C++ compiler command
908 CXXFLAGS C++ compiler flags
909 CXXCPP C++ preprocessor
912 Use these variables to override the choices made by `configure' or to
help
913 it to
find libraries and programs with nonstandard names
/locations.
918 if test "$ac_init_help" = "recursive"; then
919 # If there are subdirs, report their specific --help.
921 for ac_dir
in : $ac_subdirs_all; do test "x$ac_dir" = x
: && continue
922 test -d $ac_dir ||
continue
925 if test "$ac_dir" != .
; then
926 ac_dir_suffix
=/`echo "$ac_dir" | sed 's,^\.[\\/],,'`
927 # A "../" for each directory in $ac_dir_suffix.
928 ac_top_builddir
=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,../,g'`
930 ac_dir_suffix
= ac_top_builddir
=
934 .
) # No --srcdir option. We are building in place.
936 if test -z "$ac_top_builddir"; then
939 ac_top_srcdir
=`echo $ac_top_builddir | sed 's,/$,,'`
941 [\\/]* | ?
:[\\/]* ) # Absolute path.
942 ac_srcdir
=$srcdir$ac_dir_suffix;
943 ac_top_srcdir
=$srcdir ;;
945 ac_srcdir
=$ac_top_builddir$srcdir$ac_dir_suffix
946 ac_top_srcdir
=$ac_top_builddir$srcdir ;;
949 # Do not use `cd foo && pwd` to compute absolute paths, because
950 # the directories may not exist.
952 .
) ac_abs_builddir
="$ac_dir";;
955 .
) ac_abs_builddir
=`pwd`;;
956 [\\/]* | ?
:[\\/]* ) ac_abs_builddir
="$ac_dir";;
957 *) ac_abs_builddir
=`pwd`/"$ac_dir";;
960 case $ac_abs_builddir in
961 .
) ac_abs_top_builddir
=${ac_top_builddir}.
;;
963 case ${ac_top_builddir}.
in
964 .
) ac_abs_top_builddir
=$ac_abs_builddir;;
965 [\\/]* | ?
:[\\/]* ) ac_abs_top_builddir
=${ac_top_builddir}.
;;
966 *) ac_abs_top_builddir
=$ac_abs_builddir/${ac_top_builddir}.
;;
969 case $ac_abs_builddir in
970 .
) ac_abs_srcdir
=$ac_srcdir;;
973 .
) ac_abs_srcdir
=$ac_abs_builddir;;
974 [\\/]* | ?
:[\\/]* ) ac_abs_srcdir
=$ac_srcdir;;
975 *) ac_abs_srcdir
=$ac_abs_builddir/$ac_srcdir;;
978 case $ac_abs_builddir in
979 .
) ac_abs_top_srcdir
=$ac_top_srcdir;;
981 case $ac_top_srcdir in
982 .
) ac_abs_top_srcdir
=$ac_abs_builddir;;
983 [\\/]* | ?
:[\\/]* ) ac_abs_top_srcdir
=$ac_top_srcdir;;
984 *) ac_abs_top_srcdir
=$ac_abs_builddir/$ac_top_srcdir;;
989 # Check for guested configure; otherwise get Cygnus style configure.
990 if test -f $ac_srcdir/configure.gnu
; then
992 $SHELL $ac_srcdir/configure.gnu
--help=recursive
993 elif test -f $ac_srcdir/configure
; then
995 $SHELL $ac_srcdir/configure
--help=recursive
996 elif test -f $ac_srcdir/configure.ac ||
997 test -f $ac_srcdir/configure.
in; then
1001 echo "$as_me: WARNING: no configuration information is in $ac_dir" >&2
1007 test -n "$ac_init_help" && exit 0
1008 if $ac_init_version; then
1010 libjava configure version-unused
1011 generated by GNU Autoconf
2.59
1013 Copyright
(C
) 2003 Free Software Foundation
, Inc.
1014 This configure
script is free software
; the Free Software Foundation
1015 gives unlimited permission to copy
, distribute and modify it.
1021 This file contains any messages produced by compilers while
1022 running configure, to aid debugging if configure makes a mistake.
1024 It was created by libjava $as_me version-unused, which was
1025 generated by GNU Autoconf 2.59. Invocation command line was
1036 hostname = `(hostname || uname -n) 2>/dev/null | sed 1q`
1037 uname -m = `(uname -m) 2>/dev/null || echo unknown`
1038 uname -r = `(uname -r) 2>/dev/null || echo unknown`
1039 uname -s = `(uname -s) 2>/dev/null || echo unknown`
1040 uname -v = `(uname -v) 2>/dev/null || echo unknown`
1042 /usr/bin/uname -p = `(/usr/bin/uname -p) 2>/dev/null || echo unknown`
1043 /bin/uname -X = `(/bin/uname -X) 2>/dev/null || echo unknown`
1045 /bin/arch = `(/bin/arch) 2>/dev/null || echo unknown`
1046 /usr/bin/arch -k = `(/usr/bin/arch -k) 2>/dev/null || echo unknown`
1047 /usr/convex/getsysinfo = `(/usr/convex/getsysinfo) 2>/dev/null || echo unknown`
1048 hostinfo = `(hostinfo) 2>/dev/null || echo unknown`
1049 /bin/machine = `(/bin/machine) 2>/dev/null || echo unknown`
1050 /usr/bin/oslevel = `(/usr/bin/oslevel) 2>/dev/null || echo unknown`
1051 /bin/universe = `(/bin/universe) 2>/dev/null || echo unknown`
1055 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
1059 test -z "$as_dir" && as_dir
=.
1060 echo "PATH: $as_dir"
1075 # Keep a trace of the command line.
1076 # Strip out --no-create and --no-recursion so they do not pile up.
1077 # Strip out --silent because we don't want to record it for future runs.
1078 # Also quote any args containing shell meta-characters.
1079 # Make two passes to allow for proper duplicate-argument suppression.
1084 ac_must_keep_next
=false
1090 -no-create |
--no-c* |
-n |
-no-recursion |
--no-r*) continue ;;
1091 -q |
-quiet |
--quiet |
--quie |
--qui |
--qu |
--q \
1092 |
-silent |
--silent |
--silen |
--sile |
--sil)
1094 *" "*|
*" "*|
*[\
[\
]\~\
#\$\^\&\*\(\)\{\}\\\|\;\<\>\?\"\']*)
1095 ac_arg
=`echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;;
1098 1) ac_configure_args0
="$ac_configure_args0 '$ac_arg'" ;;
1100 ac_configure_args1
="$ac_configure_args1 '$ac_arg'"
1101 if test $ac_must_keep_next = true
; then
1102 ac_must_keep_next
=false
# Got value, back to normal.
1105 *=* |
--config-cache |
-C |
-disable-* |
--disable-* \
1106 |
-enable-* |
--enable-* |
-gas |
--g* |
-nfp |
--nf* \
1107 |
-q |
-quiet |
--q* |
-silent |
--sil* |
-v |
-verb* \
1108 |
-with-* |
--with-* |
-without-* |
--without-* |
--x)
1109 case "$ac_configure_args0 " in
1110 "$ac_configure_args1"*" '$ac_arg' "* ) continue ;;
1113 -* ) ac_must_keep_next
=true
;;
1116 ac_configure_args
="$ac_configure_args$ac_sep'$ac_arg'"
1117 # Get rid of the leading space.
1123 $as_unset ac_configure_args0 ||
test "${ac_configure_args0+set}" != set ||
{ ac_configure_args0
=; export ac_configure_args0
; }
1124 $as_unset ac_configure_args1 ||
test "${ac_configure_args1+set}" != set ||
{ ac_configure_args1
=; export ac_configure_args1
; }
1126 # When interrupted or exit'd, cleanup temporary files, and complete
1127 # config.log. We remove comments because anyway the quotes in there
1128 # would cause problems or look ugly.
1129 # WARNING: Be sure not to use single quotes in there, as some shells,
1130 # such as our DU 5.0 friend, will then `close' the trap.
1131 trap 'exit_status=$?
1132 # Save into config.log some information that might help in debugging.
1137 ## ---------------- ##
1138 ## Cache variables. ##
1139 ## ---------------- ##
1142 # The following way of writing the cache mishandles newlines in values,
1145 case `(ac_space='"'"' '"'"'; set | grep ac_space) 2>&1` in
1148 "s/'"'"'/'"'"'\\\\'"'"''"'"'/g;
1149 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='"'"'\\2'"'"'/p"
1153 "s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1=\\2/p"
1160 ## ----------------- ##
1161 ## Output variables. ##
1162 ## ----------------- ##
1165 for ac_var in $ac_subst_vars
1167 eval ac_val=$`echo $ac_var`
1168 echo "$ac_var='"'"'$ac_val'"'"'"
1172 if test -n "$ac_subst_files"; then
1179 for ac_var in $ac_subst_files
1181 eval ac_val=$`echo $ac_var`
1182 echo "$ac_var='"'"'$ac_val'"'"'"
1187 if test -s confdefs.h; then
1194 sed "/^$/d" confdefs.h | sort
1197 test "$ac_signal" != 0 &&
1198 echo "$as_me: caught signal $ac_signal"
1199 echo "$as_me: exit $exit_status"
1201 rm -f core *.core &&
1202 rm -rf conftest* confdefs* conf$$* $ac_clean_files &&
1205 for ac_signal
in 1 2 13 15; do
1206 trap 'ac_signal='$ac_signal'; { (exit 1); exit 1; }' $ac_signal
1210 # confdefs.h avoids OS command line length limits that DEFS can exceed.
1211 rm -rf conftest
* confdefs.h
1212 # AIX cpp loses on an empty file, so make sure it contains at least a newline.
1215 # Predefined preprocessor variables.
1217 cat >>confdefs.h
<<_ACEOF
1218 #define PACKAGE_NAME "$PACKAGE_NAME"
1222 cat >>confdefs.h
<<_ACEOF
1223 #define PACKAGE_TARNAME "$PACKAGE_TARNAME"
1227 cat >>confdefs.h
<<_ACEOF
1228 #define PACKAGE_VERSION "$PACKAGE_VERSION"
1232 cat >>confdefs.h
<<_ACEOF
1233 #define PACKAGE_STRING "$PACKAGE_STRING"
1237 cat >>confdefs.h
<<_ACEOF
1238 #define PACKAGE_BUGREPORT "$PACKAGE_BUGREPORT"
1242 # Let the site file select an alternate cache file if it wants to.
1243 # Prefer explicitly selected file to automatically selected ones.
1244 if test -z "$CONFIG_SITE"; then
1245 if test "x$prefix" != xNONE
; then
1246 CONFIG_SITE
="$prefix/share/config.site $prefix/etc/config.site"
1248 CONFIG_SITE
="$ac_default_prefix/share/config.site $ac_default_prefix/etc/config.site"
1251 for ac_site_file
in $CONFIG_SITE; do
1252 if test -r "$ac_site_file"; then
1253 { echo "$as_me:$LINENO: loading site script $ac_site_file" >&5
1254 echo "$as_me: loading site script $ac_site_file" >&6;}
1255 sed 's/^/| /' "$ac_site_file" >&5
1260 if test -r "$cache_file"; then
1261 # Some versions of bash will fail to source /dev/null (special
1262 # files actually), so we avoid doing that.
1263 if test -f "$cache_file"; then
1264 { echo "$as_me:$LINENO: loading cache $cache_file" >&5
1265 echo "$as_me: loading cache $cache_file" >&6;}
1267 [\\/]* | ?
:[\\/]* ) .
$cache_file;;
1268 *) . .
/$cache_file;;
1272 { echo "$as_me:$LINENO: creating cache $cache_file" >&5
1273 echo "$as_me: creating cache $cache_file" >&6;}
1277 # Check that the precious variables saved in the cache have kept the same
1279 ac_cache_corrupted
=false
1280 for ac_var
in `(set) 2>&1 |
1281 sed -n 's/^ac_env_\([a-zA-Z_0-9]*\)_set=.*/\1/p'`; do
1282 eval ac_old_set
=\
$ac_cv_env_${ac_var}_set
1283 eval ac_new_set
=\
$ac_env_${ac_var}_set
1284 eval ac_old_val
="\$ac_cv_env_${ac_var}_value"
1285 eval ac_new_val
="\$ac_env_${ac_var}_value"
1286 case $ac_old_set,$ac_new_set in
1288 { echo "$as_me:$LINENO: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&5
1289 echo "$as_me: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&2;}
1290 ac_cache_corrupted
=: ;;
1292 { echo "$as_me:$LINENO: error: \`$ac_var' was not set in the previous run" >&5
1293 echo "$as_me: error: \`$ac_var' was not set in the previous run" >&2;}
1294 ac_cache_corrupted
=: ;;
1297 if test "x$ac_old_val" != "x$ac_new_val"; then
1298 { echo "$as_me:$LINENO: error: \`$ac_var' has changed since the previous run:" >&5
1299 echo "$as_me: error: \`$ac_var' has changed since the previous run:" >&2;}
1300 { echo "$as_me:$LINENO: former value: $ac_old_val" >&5
1301 echo "$as_me: former value: $ac_old_val" >&2;}
1302 { echo "$as_me:$LINENO: current value: $ac_new_val" >&5
1303 echo "$as_me: current value: $ac_new_val" >&2;}
1304 ac_cache_corrupted
=:
1307 # Pass precious variables to config.status.
1308 if test "$ac_new_set" = set; then
1310 *" "*|
*" "*|
*[\
[\
]\~\
#\$\^\&\*\(\)\{\}\\\|\;\<\>\?\"\']*)
1311 ac_arg
=$ac_var=`echo "$ac_new_val" | sed "s/'/'\\\\\\\\''/g"` ;;
1312 *) ac_arg
=$ac_var=$ac_new_val ;;
1314 case " $ac_configure_args " in
1315 *" '$ac_arg' "*) ;; # Avoid dups. Use of quotes ensures accuracy.
1316 *) ac_configure_args
="$ac_configure_args '$ac_arg'" ;;
1320 if $ac_cache_corrupted; then
1321 { echo "$as_me:$LINENO: error: changes in the environment can compromise the build" >&5
1322 echo "$as_me: error: changes in the environment can compromise the build" >&2;}
1323 { { echo "$as_me:$LINENO: error: run \`make distclean' and/or \`rm $cache_file' and start over" >&5
1324 echo "$as_me: error: run \`make distclean' and/or \`rm $cache_file' and start over" >&2;}
1325 { (exit 1); exit 1; }; }
1329 ac_cpp
='$CPP $CPPFLAGS'
1330 ac_compile
='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
1331 ac_link
='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
1332 ac_compiler_gnu
=$ac_cv_c_compiler_gnu
1363 # We use these options to decide which functions to include.
1365 # Check whether --with-target-subdir or --without-target-subdir was given.
1366 if test "${with_target_subdir+set}" = set; then
1367 withval
="$with_target_subdir"
1371 # We may get other options which we don't document:
1372 # --with-target-subdir, --with-multisrctop, --with-multisubdir
1374 # When building with srcdir == objdir, links to the source files will
1375 # be created in directories within the target_subdir. We have to
1376 # adjust toplevel_srcdir accordingly, so that configure finds
1377 # install-sh and other auxiliary files that live in the top-level
1379 if test "${srcdir}" = "."; then
1380 if test -z "${with_target_subdir}"; then
1383 if test "${with_target_subdir}" != "."; then
1384 toprel
="${with_multisrctop}../.."
1386 toprel
="${with_multisrctop}.."
1393 libgcj_basedir
=$srcdir/$toprel/.
/libjava
1397 for ac_dir
in $srcdir $srcdir/..
$srcdir/..
/..
; do
1398 if test -f $ac_dir/install-sh
; then
1400 ac_install_sh
="$ac_aux_dir/install-sh -c"
1402 elif test -f $ac_dir/install.sh
; then
1404 ac_install_sh
="$ac_aux_dir/install.sh -c"
1406 elif test -f $ac_dir/shtool
; then
1408 ac_install_sh
="$ac_aux_dir/shtool install -c"
1412 if test -z "$ac_aux_dir"; then
1413 { { echo "$as_me:$LINENO: error: cannot find install-sh or install.sh in $srcdir $srcdir/.. $srcdir/../.." >&5
1414 echo "$as_me: error: cannot find install-sh or install.sh in $srcdir $srcdir/.. $srcdir/../.." >&2;}
1415 { (exit 1); exit 1; }; }
1417 ac_config_guess
="$SHELL $ac_aux_dir/config.guess"
1418 ac_config_sub
="$SHELL $ac_aux_dir/config.sub"
1419 ac_configure
="$SHELL $ac_aux_dir/configure" # This should be Cygnus configure.
1421 # Make sure we can run config.sub.
1422 $ac_config_sub sun4
>/dev
/null
2>&1 ||
1423 { { echo "$as_me:$LINENO: error: cannot run $ac_config_sub" >&5
1424 echo "$as_me: error: cannot run $ac_config_sub" >&2;}
1425 { (exit 1); exit 1; }; }
1427 echo "$as_me:$LINENO: checking build system type" >&5
1428 echo $ECHO_N "checking build system type... $ECHO_C" >&6
1429 if test "${ac_cv_build+set}" = set; then
1430 echo $ECHO_N "(cached) $ECHO_C" >&6
1432 ac_cv_build_alias
=$build_alias
1433 test -z "$ac_cv_build_alias" &&
1434 ac_cv_build_alias
=`$ac_config_guess`
1435 test -z "$ac_cv_build_alias" &&
1436 { { echo "$as_me:$LINENO: error: cannot guess build type; you must specify one" >&5
1437 echo "$as_me: error: cannot guess build type; you must specify one" >&2;}
1438 { (exit 1); exit 1; }; }
1439 ac_cv_build
=`$ac_config_sub $ac_cv_build_alias` ||
1440 { { echo "$as_me:$LINENO: error: $ac_config_sub $ac_cv_build_alias failed" >&5
1441 echo "$as_me: error: $ac_config_sub $ac_cv_build_alias failed" >&2;}
1442 { (exit 1); exit 1; }; }
1445 echo "$as_me:$LINENO: result: $ac_cv_build" >&5
1446 echo "${ECHO_T}$ac_cv_build" >&6
1448 build_cpu
=`echo $ac_cv_build | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\1/'`
1449 build_vendor
=`echo $ac_cv_build | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\2/'`
1450 build_os
=`echo $ac_cv_build | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\3/'`
1453 echo "$as_me:$LINENO: checking host system type" >&5
1454 echo $ECHO_N "checking host system type... $ECHO_C" >&6
1455 if test "${ac_cv_host+set}" = set; then
1456 echo $ECHO_N "(cached) $ECHO_C" >&6
1458 ac_cv_host_alias
=$host_alias
1459 test -z "$ac_cv_host_alias" &&
1460 ac_cv_host_alias
=$ac_cv_build_alias
1461 ac_cv_host
=`$ac_config_sub $ac_cv_host_alias` ||
1462 { { echo "$as_me:$LINENO: error: $ac_config_sub $ac_cv_host_alias failed" >&5
1463 echo "$as_me: error: $ac_config_sub $ac_cv_host_alias failed" >&2;}
1464 { (exit 1); exit 1; }; }
1467 echo "$as_me:$LINENO: result: $ac_cv_host" >&5
1468 echo "${ECHO_T}$ac_cv_host" >&6
1470 host_cpu
=`echo $ac_cv_host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\1/'`
1471 host_vendor
=`echo $ac_cv_host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\2/'`
1472 host_os
=`echo $ac_cv_host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\3/'`
1475 echo "$as_me:$LINENO: checking target system type" >&5
1476 echo $ECHO_N "checking target system type... $ECHO_C" >&6
1477 if test "${ac_cv_target+set}" = set; then
1478 echo $ECHO_N "(cached) $ECHO_C" >&6
1480 ac_cv_target_alias
=$target_alias
1481 test "x$ac_cv_target_alias" = "x" &&
1482 ac_cv_target_alias
=$ac_cv_host_alias
1483 ac_cv_target
=`$ac_config_sub $ac_cv_target_alias` ||
1484 { { echo "$as_me:$LINENO: error: $ac_config_sub $ac_cv_target_alias failed" >&5
1485 echo "$as_me: error: $ac_config_sub $ac_cv_target_alias failed" >&2;}
1486 { (exit 1); exit 1; }; }
1489 echo "$as_me:$LINENO: result: $ac_cv_target" >&5
1490 echo "${ECHO_T}$ac_cv_target" >&6
1491 target
=$ac_cv_target
1492 target_cpu
=`echo $ac_cv_target | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\1/'`
1493 target_vendor
=`echo $ac_cv_target | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\2/'`
1494 target_os
=`echo $ac_cv_target | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\3/'`
1497 # The aliases save the names the user supplied, while $host etc.
1498 # will get canonicalized.
1499 test -n "$target_alias" &&
1500 test "$program_prefix$program_suffix$program_transform_name" = \
1502 program_prefix
=${target_alias}-
1503 case ${build_alias} in
1504 "") build_noncanonical
=${build} ;;
1505 *) build_noncanonical
=${build_alias} ;;
1508 case ${host_alias} in
1509 "") host_noncanonical
=${build_noncanonical} ;;
1510 *) host_noncanonical
=${host_alias} ;;
1513 case ${target_alias} in
1514 "") target_noncanonical
=${host_noncanonical} ;;
1515 *) target_noncanonical
=${target_alias} ;;
1521 # This works around the fact that libtool configuration may change LD
1522 # for this particular configuration, but some shells, instead of
1523 # keeping the changes in LD private, export them just because LD is
1525 ORIGINAL_LD_FOR_MULTILIBS
=$LD
1527 echo "$as_me:$LINENO: checking whether ln -s works" >&5
1528 echo $ECHO_N "checking whether ln -s works... $ECHO_C" >&6
1530 if test "$LN_S" = "ln -s"; then
1531 echo "$as_me:$LINENO: result: yes" >&5
1532 echo "${ECHO_T}yes" >&6
1534 echo "$as_me:$LINENO: result: no, using $LN_S" >&5
1535 echo "${ECHO_T}no, using $LN_S" >&6
1539 # This works around an automake problem.
1540 mkinstalldirs
="`cd $ac_aux_dir && ${PWDCMD-pwd}`/mkinstalldirs"
1544 # Check whether --with-cross-host or --without-cross-host was given.
1545 if test "${with_cross_host+set}" = set; then
1546 withval
="$with_cross_host"
1551 # Check whether --with-newlib or --without-newlib was given.
1552 if test "${with_newlib+set}" = set; then
1553 withval
="$with_newlib"
1557 # Check whether --enable-version-specific-runtime-libs or --disable-version-specific-runtime-libs was given.
1558 if test "${enable_version_specific_runtime_libs+set}" = set; then
1559 enableval
="$enable_version_specific_runtime_libs"
1560 case "$enableval" in
1561 yes) version_specific_libs
=yes ;;
1562 no
) version_specific_libs
=no
;;
1563 *) { { echo "$as_me:$LINENO: error: Unknown argument to enable/disable version-specific libs" >&5
1564 echo "$as_me: error: Unknown argument to enable/disable version-specific libs" >&2;}
1565 { (exit 1); exit 1; }; };;
1568 version_specific_libs
=no
1572 # Default to --enable-multilib
1573 # Check whether --enable-multilib or --disable-multilib was given.
1574 if test "${enable_multilib+set}" = set; then
1575 enableval
="$enable_multilib"
1576 case "${enableval}" in
1577 yes) multilib
=yes ;;
1579 *) { { echo "$as_me:$LINENO: error: bad value ${enableval} for multilib option" >&5
1580 echo "$as_me: error: bad value ${enableval} for multilib option" >&2;}
1581 { (exit 1); exit 1; }; } ;;
1586 # It may not be safe to run linking tests in AC_PROG_CC/AC_PROG_CXX.
1589 # (1) We use an abnormal CXX (without library references), so we
1590 # must cache it under a different name.
1591 # (2) CC, CFLAGS, CXX, CXXFLAGS, LDFLAGS must not be 'precious', or
1592 # the non-multilib-adjusted value will be used in multilibs.
1593 # (3) As a side effect, we must SUBST CXXFLAGS, CFLAGS, and LDFLAGS ourselves.
1594 # (4) As another side effect, automake doesn't automatically include them
1596 # (5) For libstdc++-v3, -fno-builtin must be present here so that a
1597 # non-conflicting form of std::exit can be guessed by AC_PROG_CXX, and
1598 # used in later tests. This may not be necessary in libjava; I don't know.
1602 save_CXXFLAGS
="$CXXFLAGS"
1603 CXXFLAGS
="$CXXFLAGS -fno-builtin"
1605 ac_cpp
='$CPP $CPPFLAGS'
1606 ac_compile
='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
1607 ac_link
='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
1608 ac_compiler_gnu
=$ac_cv_c_compiler_gnu
1609 if test -n "$ac_tool_prefix"; then
1610 # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args.
1611 set dummy
${ac_tool_prefix}gcc
; ac_word
=$2
1612 echo "$as_me:$LINENO: checking for $ac_word" >&5
1613 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1614 if test "${ac_cv_prog_CC+set}" = set; then
1615 echo $ECHO_N "(cached) $ECHO_C" >&6
1617 if test -n "$CC"; then
1618 ac_cv_prog_CC
="$CC" # Let the user override the test.
1620 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
1624 test -z "$as_dir" && as_dir
=.
1625 for ac_exec_ext
in '' $ac_executable_extensions; do
1626 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1627 ac_cv_prog_CC
="${ac_tool_prefix}gcc"
1628 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
1637 if test -n "$CC"; then
1638 echo "$as_me:$LINENO: result: $CC" >&5
1639 echo "${ECHO_T}$CC" >&6
1641 echo "$as_me:$LINENO: result: no" >&5
1642 echo "${ECHO_T}no" >&6
1646 if test -z "$ac_cv_prog_CC"; then
1648 # Extract the first word of "gcc", so it can be a program name with args.
1649 set dummy gcc
; ac_word
=$2
1650 echo "$as_me:$LINENO: checking for $ac_word" >&5
1651 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1652 if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
1653 echo $ECHO_N "(cached) $ECHO_C" >&6
1655 if test -n "$ac_ct_CC"; then
1656 ac_cv_prog_ac_ct_CC
="$ac_ct_CC" # Let the user override the test.
1658 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
1662 test -z "$as_dir" && as_dir
=.
1663 for ac_exec_ext
in '' $ac_executable_extensions; do
1664 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1665 ac_cv_prog_ac_ct_CC
="gcc"
1666 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
1674 ac_ct_CC
=$ac_cv_prog_ac_ct_CC
1675 if test -n "$ac_ct_CC"; then
1676 echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
1677 echo "${ECHO_T}$ac_ct_CC" >&6
1679 echo "$as_me:$LINENO: result: no" >&5
1680 echo "${ECHO_T}no" >&6
1688 if test -z "$CC"; then
1689 if test -n "$ac_tool_prefix"; then
1690 # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args.
1691 set dummy
${ac_tool_prefix}cc
; ac_word
=$2
1692 echo "$as_me:$LINENO: checking for $ac_word" >&5
1693 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1694 if test "${ac_cv_prog_CC+set}" = set; then
1695 echo $ECHO_N "(cached) $ECHO_C" >&6
1697 if test -n "$CC"; then
1698 ac_cv_prog_CC
="$CC" # Let the user override the test.
1700 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
1704 test -z "$as_dir" && as_dir
=.
1705 for ac_exec_ext
in '' $ac_executable_extensions; do
1706 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1707 ac_cv_prog_CC
="${ac_tool_prefix}cc"
1708 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
1717 if test -n "$CC"; then
1718 echo "$as_me:$LINENO: result: $CC" >&5
1719 echo "${ECHO_T}$CC" >&6
1721 echo "$as_me:$LINENO: result: no" >&5
1722 echo "${ECHO_T}no" >&6
1726 if test -z "$ac_cv_prog_CC"; then
1728 # Extract the first word of "cc", so it can be a program name with args.
1729 set dummy cc
; ac_word
=$2
1730 echo "$as_me:$LINENO: checking for $ac_word" >&5
1731 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1732 if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
1733 echo $ECHO_N "(cached) $ECHO_C" >&6
1735 if test -n "$ac_ct_CC"; then
1736 ac_cv_prog_ac_ct_CC
="$ac_ct_CC" # Let the user override the test.
1738 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
1742 test -z "$as_dir" && as_dir
=.
1743 for ac_exec_ext
in '' $ac_executable_extensions; do
1744 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1745 ac_cv_prog_ac_ct_CC
="cc"
1746 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
1754 ac_ct_CC
=$ac_cv_prog_ac_ct_CC
1755 if test -n "$ac_ct_CC"; then
1756 echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
1757 echo "${ECHO_T}$ac_ct_CC" >&6
1759 echo "$as_me:$LINENO: result: no" >&5
1760 echo "${ECHO_T}no" >&6
1769 if test -z "$CC"; then
1770 # Extract the first word of "cc", so it can be a program name with args.
1771 set dummy cc
; ac_word
=$2
1772 echo "$as_me:$LINENO: checking for $ac_word" >&5
1773 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1774 if test "${ac_cv_prog_CC+set}" = set; then
1775 echo $ECHO_N "(cached) $ECHO_C" >&6
1777 if test -n "$CC"; then
1778 ac_cv_prog_CC
="$CC" # Let the user override the test.
1781 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
1785 test -z "$as_dir" && as_dir
=.
1786 for ac_exec_ext
in '' $ac_executable_extensions; do
1787 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1788 if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then
1789 ac_prog_rejected
=yes
1793 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
1799 if test $ac_prog_rejected = yes; then
1800 # We found a bogon in the path, so make sure we never use it.
1801 set dummy
$ac_cv_prog_CC
1803 if test $# != 0; then
1804 # We chose a different compiler from the bogus one.
1805 # However, it has the same basename, so the bogon will be chosen
1806 # first if we set CC to just the basename; use the full file name.
1808 ac_cv_prog_CC
="$as_dir/$ac_word${1+' '}$@"
1814 if test -n "$CC"; then
1815 echo "$as_me:$LINENO: result: $CC" >&5
1816 echo "${ECHO_T}$CC" >&6
1818 echo "$as_me:$LINENO: result: no" >&5
1819 echo "${ECHO_T}no" >&6
1823 if test -z "$CC"; then
1824 if test -n "$ac_tool_prefix"; then
1827 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
1828 set dummy
$ac_tool_prefix$ac_prog; ac_word
=$2
1829 echo "$as_me:$LINENO: checking for $ac_word" >&5
1830 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1831 if test "${ac_cv_prog_CC+set}" = set; then
1832 echo $ECHO_N "(cached) $ECHO_C" >&6
1834 if test -n "$CC"; then
1835 ac_cv_prog_CC
="$CC" # Let the user override the test.
1837 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
1841 test -z "$as_dir" && as_dir
=.
1842 for ac_exec_ext
in '' $ac_executable_extensions; do
1843 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1844 ac_cv_prog_CC
="$ac_tool_prefix$ac_prog"
1845 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
1854 if test -n "$CC"; then
1855 echo "$as_me:$LINENO: result: $CC" >&5
1856 echo "${ECHO_T}$CC" >&6
1858 echo "$as_me:$LINENO: result: no" >&5
1859 echo "${ECHO_T}no" >&6
1862 test -n "$CC" && break
1865 if test -z "$CC"; then
1869 # Extract the first word of "$ac_prog", so it can be a program name with args.
1870 set dummy
$ac_prog; ac_word
=$2
1871 echo "$as_me:$LINENO: checking for $ac_word" >&5
1872 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1873 if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
1874 echo $ECHO_N "(cached) $ECHO_C" >&6
1876 if test -n "$ac_ct_CC"; then
1877 ac_cv_prog_ac_ct_CC
="$ac_ct_CC" # Let the user override the test.
1879 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
1883 test -z "$as_dir" && as_dir
=.
1884 for ac_exec_ext
in '' $ac_executable_extensions; do
1885 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1886 ac_cv_prog_ac_ct_CC
="$ac_prog"
1887 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
1895 ac_ct_CC
=$ac_cv_prog_ac_ct_CC
1896 if test -n "$ac_ct_CC"; then
1897 echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
1898 echo "${ECHO_T}$ac_ct_CC" >&6
1900 echo "$as_me:$LINENO: result: no" >&5
1901 echo "${ECHO_T}no" >&6
1904 test -n "$ac_ct_CC" && break
1913 test -z "$CC" && { { echo "$as_me:$LINENO: error: no acceptable C compiler found in \$PATH
1914 See \`config.log' for more details." >&5
1915 echo "$as_me: error: no acceptable C compiler found in \$PATH
1916 See \`config.log' for more details." >&2;}
1917 { (exit 1); exit 1; }; }
1919 # Provide some information about the compiler.
1920 echo "$as_me:$LINENO:" \
1921 "checking for C compiler version" >&5
1922 ac_compiler
=`set X $ac_compile; echo $2`
1923 { (eval echo "$as_me:$LINENO: \"$ac_compiler --version </dev/null >&5\"") >&5
1924 (eval $ac_compiler --version </dev
/null
>&5) 2>&5
1926 echo "$as_me:$LINENO: \$? = $ac_status" >&5
1927 (exit $ac_status); }
1928 { (eval echo "$as_me:$LINENO: \"$ac_compiler -v </dev/null >&5\"") >&5
1929 (eval $ac_compiler -v </dev
/null
>&5) 2>&5
1931 echo "$as_me:$LINENO: \$? = $ac_status" >&5
1932 (exit $ac_status); }
1933 { (eval echo "$as_me:$LINENO: \"$ac_compiler -V </dev/null >&5\"") >&5
1934 (eval $ac_compiler -V </dev
/null
>&5) 2>&5
1936 echo "$as_me:$LINENO: \$? = $ac_status" >&5
1937 (exit $ac_status); }
1939 cat >conftest.
$ac_ext <<_ACEOF
1942 cat confdefs.h
>>conftest.
$ac_ext
1943 cat >>conftest.
$ac_ext <<_ACEOF
1944 /* end confdefs.h. */
1955 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
1956 (eval $ac_link) 2>&5
1958 echo "$as_me:$LINENO: \$? = $ac_status" >&5
1959 (exit $ac_status); }; then
1965 if test x
$gcc_no_link = xyes
; then
1966 # Setting cross_compile will disable run tests; it will
1967 # also disable AC_CHECK_FILE but that's generally
1968 # correct if we can't link.
1972 cat >conftest.
$ac_ext <<_ACEOF
1975 cat confdefs.h
>>conftest.
$ac_ext
1976 cat >>conftest.
$ac_ext <<_ACEOF
1977 /* end confdefs.h. */
1987 ac_clean_files_save
=$ac_clean_files
1988 ac_clean_files
="$ac_clean_files a.out a.exe b.out"
1989 # Try to create an executable without -o first, disregard a.out.
1990 # It will help us diagnose broken compilers, and finding out an intuition
1992 echo "$as_me:$LINENO: checking for C compiler default output file name" >&5
1993 echo $ECHO_N "checking for C compiler default output file name... $ECHO_C" >&6
1994 ac_link_default
=`echo "$ac_link" | sed 's/ -o *conftest[^ ]*//'`
1995 if { (eval echo "$as_me:$LINENO: \"$ac_link_default\"") >&5
1996 (eval $ac_link_default) 2>&5
1998 echo "$as_me:$LINENO: \$? = $ac_status" >&5
1999 (exit $ac_status); }; then
2000 # Find the output, starting from the most likely. This scheme is
2001 # not robust to junk in `.', hence go to wildcards (a.*) only as a last
2004 # Be careful to initialize this variable, since it used to be cached.
2005 # Otherwise an old cache value of `no' led to `EXEEXT = no' in a Makefile.
2007 # b.out is created by i960 compilers.
2008 for ac_file
in a_out.exe a.exe conftest.exe a.out conftest a.
* conftest.
* b.out
2010 test -f "$ac_file" ||
continue
2012 *.
$ac_ext |
*.xcoff |
*.tds |
*.d |
*.pdb |
*.xSYM |
*.bb |
*.bbg |
*.o |
*.obj
)
2015 # This is the source file.
2018 # We found the default executable, but exeext='' is most
2022 ac_cv_exeext
=`expr "$ac_file" : '[^.]*\(\..*\)'`
2023 # FIXME: I believe we export ac_cv_exeext for Libtool,
2024 # but it would be cool to find out if it's true. Does anybody
2025 # maintain Libtool? --akim.
2033 echo "$as_me: failed program was:" >&5
2034 sed 's/^/| /' conftest.
$ac_ext >&5
2036 { { echo "$as_me:$LINENO: error: C compiler cannot create executables
2037 See \`config.log' for more details." >&5
2038 echo "$as_me: error: C compiler cannot create executables
2039 See \`config.log' for more details." >&2;}
2040 { (exit 77); exit 77; }; }
2043 ac_exeext
=$ac_cv_exeext
2044 echo "$as_me:$LINENO: result: $ac_file" >&5
2045 echo "${ECHO_T}$ac_file" >&6
2047 # Check the compiler produces executables we can run. If not, either
2048 # the compiler is broken, or we cross compile.
2049 echo "$as_me:$LINENO: checking whether the C compiler works" >&5
2050 echo $ECHO_N "checking whether the C compiler works... $ECHO_C" >&6
2051 # FIXME: These cross compiler hacks should be removed for Autoconf 3.0
2052 # If not cross compiling, check that we can run a simple program.
2053 if test "$cross_compiling" != yes; then
2054 if { ac_try
='./$ac_file'
2055 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2058 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2059 (exit $ac_status); }; }; then
2062 if test "$cross_compiling" = maybe
; then
2065 { { echo "$as_me:$LINENO: error: cannot run C compiled programs.
2066 If you meant to cross compile, use \`--host'.
2067 See \`config.log' for more details." >&5
2068 echo "$as_me: error: cannot run C compiled programs.
2069 If you meant to cross compile, use \`--host'.
2070 See \`config.log' for more details." >&2;}
2071 { (exit 1); exit 1; }; }
2075 echo "$as_me:$LINENO: result: yes" >&5
2076 echo "${ECHO_T}yes" >&6
2078 rm -f a.out a.exe conftest
$ac_cv_exeext b.out
2079 ac_clean_files
=$ac_clean_files_save
2080 # Check the compiler produces executables we can run. If not, either
2081 # the compiler is broken, or we cross compile.
2082 echo "$as_me:$LINENO: checking whether we are cross compiling" >&5
2083 echo $ECHO_N "checking whether we are cross compiling... $ECHO_C" >&6
2084 echo "$as_me:$LINENO: result: $cross_compiling" >&5
2085 echo "${ECHO_T}$cross_compiling" >&6
2087 echo "$as_me:$LINENO: checking for suffix of executables" >&5
2088 echo $ECHO_N "checking for suffix of executables... $ECHO_C" >&6
2089 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
2090 (eval $ac_link) 2>&5
2092 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2093 (exit $ac_status); }; then
2094 # If both `conftest.exe' and `conftest' are `present' (well, observable)
2095 # catch `conftest.exe'. For instance with Cygwin, `ls conftest' will
2096 # work properly (i.e., refer to `conftest.exe'), while it won't with
2098 for ac_file
in conftest.exe conftest conftest.
*; do
2099 test -f "$ac_file" ||
continue
2101 *.
$ac_ext |
*.xcoff |
*.tds |
*.d |
*.pdb |
*.xSYM |
*.bb |
*.bbg |
*.o |
*.obj
) ;;
2102 *.
* ) ac_cv_exeext
=`expr "$ac_file" : '[^.]*\(\..*\)'`
2109 { { echo "$as_me:$LINENO: error: cannot compute suffix of executables: cannot compile and link
2110 See \`config.log' for more details." >&5
2111 echo "$as_me: error: cannot compute suffix of executables: cannot compile and link
2112 See \`config.log' for more details." >&2;}
2113 { (exit 1); exit 1; }; }
2116 rm -f conftest
$ac_cv_exeext
2117 echo "$as_me:$LINENO: result: $ac_cv_exeext" >&5
2118 echo "${ECHO_T}$ac_cv_exeext" >&6
2120 rm -f conftest.
$ac_ext
2121 EXEEXT
=$ac_cv_exeext
2124 echo "$as_me:$LINENO: checking for suffix of object files" >&5
2125 echo $ECHO_N "checking for suffix of object files... $ECHO_C" >&6
2126 if test "${ac_cv_objext+set}" = set; then
2127 echo $ECHO_N "(cached) $ECHO_C" >&6
2129 cat >conftest.
$ac_ext <<_ACEOF
2132 cat confdefs.h
>>conftest.
$ac_ext
2133 cat >>conftest.
$ac_ext <<_ACEOF
2134 /* end confdefs.h. */
2144 rm -f conftest.o conftest.obj
2145 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2146 (eval $ac_compile) 2>&5
2148 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2149 (exit $ac_status); }; then
2150 for ac_file
in `(ls conftest.o conftest.obj; ls conftest.*) 2>/dev/null`; do
2152 *.
$ac_ext |
*.xcoff |
*.tds |
*.d |
*.pdb |
*.xSYM |
*.bb |
*.bbg
) ;;
2153 *) ac_cv_objext
=`expr "$ac_file" : '.*\.\(.*\)'`
2158 echo "$as_me: failed program was:" >&5
2159 sed 's/^/| /' conftest.
$ac_ext >&5
2161 { { echo "$as_me:$LINENO: error: cannot compute suffix of object files: cannot compile
2162 See \`config.log' for more details." >&5
2163 echo "$as_me: error: cannot compute suffix of object files: cannot compile
2164 See \`config.log' for more details." >&2;}
2165 { (exit 1); exit 1; }; }
2168 rm -f conftest.
$ac_cv_objext conftest.
$ac_ext
2170 echo "$as_me:$LINENO: result: $ac_cv_objext" >&5
2171 echo "${ECHO_T}$ac_cv_objext" >&6
2172 OBJEXT
=$ac_cv_objext
2174 echo "$as_me:$LINENO: checking whether we are using the GNU C compiler" >&5
2175 echo $ECHO_N "checking whether we are using the GNU C compiler... $ECHO_C" >&6
2176 if test "${ac_cv_c_compiler_gnu+set}" = set; then
2177 echo $ECHO_N "(cached) $ECHO_C" >&6
2179 cat >conftest.
$ac_ext <<_ACEOF
2182 cat confdefs.h
>>conftest.
$ac_ext
2183 cat >>conftest.
$ac_ext <<_ACEOF
2184 /* end confdefs.h. */
2197 rm -f conftest.
$ac_objext
2198 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2199 (eval $ac_compile) 2>conftest.er1
2201 grep -v '^ *+' conftest.er1
>conftest.err
2203 cat conftest.err
>&5
2204 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2205 (exit $ac_status); } &&
2206 { ac_try
='test -z "$ac_c_werror_flag"
2207 || test ! -s conftest.err'
2208 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2211 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2212 (exit $ac_status); }; } &&
2213 { ac_try
='test -s conftest.$ac_objext'
2214 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2217 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2218 (exit $ac_status); }; }; then
2221 echo "$as_me: failed program was:" >&5
2222 sed 's/^/| /' conftest.
$ac_ext >&5
2226 rm -f conftest.err conftest.
$ac_objext conftest.
$ac_ext
2227 ac_cv_c_compiler_gnu
=$ac_compiler_gnu
2230 echo "$as_me:$LINENO: result: $ac_cv_c_compiler_gnu" >&5
2231 echo "${ECHO_T}$ac_cv_c_compiler_gnu" >&6
2232 GCC
=`test $ac_compiler_gnu = yes && echo yes`
2233 ac_test_CFLAGS
=${CFLAGS+set}
2234 ac_save_CFLAGS
=$CFLAGS
2236 echo "$as_me:$LINENO: checking whether $CC accepts -g" >&5
2237 echo $ECHO_N "checking whether $CC accepts -g... $ECHO_C" >&6
2238 if test "${ac_cv_prog_cc_g+set}" = set; then
2239 echo $ECHO_N "(cached) $ECHO_C" >&6
2241 cat >conftest.
$ac_ext <<_ACEOF
2244 cat confdefs.h
>>conftest.
$ac_ext
2245 cat >>conftest.
$ac_ext <<_ACEOF
2246 /* 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
2287 echo "$as_me:$LINENO: result: $ac_cv_prog_cc_g" >&5
2288 echo "${ECHO_T}$ac_cv_prog_cc_g" >&6
2289 if test "$ac_test_CFLAGS" = set; then
2290 CFLAGS
=$ac_save_CFLAGS
2291 elif test $ac_cv_prog_cc_g = yes; then
2292 if test "$GCC" = yes; then
2298 if test "$GCC" = yes; then
2304 echo "$as_me:$LINENO: checking for $CC option to accept ANSI C" >&5
2305 echo $ECHO_N "checking for $CC option to accept ANSI C... $ECHO_C" >&6
2306 if test "${ac_cv_prog_cc_stdc+set}" = set; then
2307 echo $ECHO_N "(cached) $ECHO_C" >&6
2309 ac_cv_prog_cc_stdc
=no
2311 cat >conftest.
$ac_ext <<_ACEOF
2314 cat confdefs.h
>>conftest.
$ac_ext
2315 cat >>conftest.
$ac_ext <<_ACEOF
2316 /* end confdefs.h. */
2319 #include <sys/types.h>
2320 #include <sys/stat.h>
2321 /* Most of the following tests are stolen from RCS 5.7's src/conf.sh. */
2322 struct buf { int x; };
2323 FILE * (*rcsopen) (struct buf *, struct stat *, int);
2324 static char *e (p, i)
2330 static char *f (char * (*g) (char **, int), char **p, ...)
2335 s = g (p, va_arg (v,int));
2340 /* OSF 4.0 Compaq cc is some sort of almost-ANSI by default. It has
2341 function prototypes and stuff, but not '\xHH' hex character constants.
2342 These don't provoke an error unfortunately, instead are silently treated
2343 as 'x'. The following induces an error, until -std1 is added to get
2344 proper ANSI mode. Curiously '\x00'!='x' always comes out true, for an
2345 array size at least. It's necessary to write '\x00'==0 to get something
2346 that's true only with -std1. */
2347 int osf4_cc_array ['\x00' == 0 ? 1 : -1];
2349 int test (int i, double x);
2350 struct s1 {int (*f) (int a);};
2351 struct s2 {int (*f) (double a);};
2352 int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
2358 return f (e, argv, 0) != argv[0] || f (e, argv, 1) != argv[1];
2363 # Don't try gcc -ansi; that turns off useful extensions and
2364 # breaks some systems' header files.
2365 # AIX -qlanglvl=ansi
2366 # Ultrix and OSF/1 -std1
2367 # HP-UX 10.20 and later -Ae
2368 # HP-UX older versions -Aa -D_HPUX_SOURCE
2369 # SVR4 -Xc -D__EXTENSIONS__
2370 for ac_arg
in "" -qlanglvl=ansi
-std1 -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
2372 CC
="$ac_save_CC $ac_arg"
2373 rm -f conftest.
$ac_objext
2374 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2375 (eval $ac_compile) 2>conftest.er1
2377 grep -v '^ *+' conftest.er1
>conftest.err
2379 cat conftest.err
>&5
2380 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2381 (exit $ac_status); } &&
2382 { ac_try
='test -z "$ac_c_werror_flag"
2383 || test ! -s conftest.err'
2384 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2387 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2388 (exit $ac_status); }; } &&
2389 { ac_try
='test -s conftest.$ac_objext'
2390 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2393 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2394 (exit $ac_status); }; }; then
2395 ac_cv_prog_cc_stdc
=$ac_arg
2398 echo "$as_me: failed program was:" >&5
2399 sed 's/^/| /' conftest.
$ac_ext >&5
2402 rm -f conftest.err conftest.
$ac_objext
2404 rm -f conftest.
$ac_ext conftest.
$ac_objext
2409 case "x$ac_cv_prog_cc_stdc" in
2411 echo "$as_me:$LINENO: result: none needed" >&5
2412 echo "${ECHO_T}none needed" >&6 ;;
2414 echo "$as_me:$LINENO: result: $ac_cv_prog_cc_stdc" >&5
2415 echo "${ECHO_T}$ac_cv_prog_cc_stdc" >&6
2416 CC
="$CC $ac_cv_prog_cc_stdc" ;;
2419 # Some people use a C++ compiler to compile C. Since we use `exit',
2420 # in C++ we need to declare it. In case someone uses the same compiler
2421 # for both compiling C and C++ we need to have the C++ compiler decide
2422 # the declaration of exit, since it's the most demanding environment.
2423 cat >conftest.
$ac_ext <<_ACEOF
2428 rm -f conftest.
$ac_objext
2429 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2430 (eval $ac_compile) 2>conftest.er1
2432 grep -v '^ *+' conftest.er1
>conftest.err
2434 cat conftest.err
>&5
2435 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2436 (exit $ac_status); } &&
2437 { ac_try
='test -z "$ac_c_werror_flag"
2438 || test ! -s conftest.err'
2439 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2442 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2443 (exit $ac_status); }; } &&
2444 { ac_try
='test -s conftest.$ac_objext'
2445 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2448 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2449 (exit $ac_status); }; }; then
2450 for ac_declaration
in \
2452 'extern "C" void std::exit (int) throw (); using std::exit;' \
2453 'extern "C" void std::exit (int); using std::exit;' \
2454 'extern "C" void exit (int) throw ();' \
2455 'extern "C" void exit (int);' \
2458 cat >conftest.
$ac_ext <<_ACEOF
2461 cat confdefs.h
>>conftest.
$ac_ext
2462 cat >>conftest.
$ac_ext <<_ACEOF
2463 /* end confdefs.h. */
2474 rm -f conftest.
$ac_objext
2475 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2476 (eval $ac_compile) 2>conftest.er1
2478 grep -v '^ *+' conftest.er1
>conftest.err
2480 cat conftest.err
>&5
2481 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2482 (exit $ac_status); } &&
2483 { ac_try
='test -z "$ac_c_werror_flag"
2484 || test ! -s conftest.err'
2485 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2488 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2489 (exit $ac_status); }; } &&
2490 { ac_try
='test -s conftest.$ac_objext'
2491 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2494 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2495 (exit $ac_status); }; }; then
2498 echo "$as_me: failed program was:" >&5
2499 sed 's/^/| /' conftest.
$ac_ext >&5
2503 rm -f conftest.err conftest.
$ac_objext conftest.
$ac_ext
2504 cat >conftest.
$ac_ext <<_ACEOF
2507 cat confdefs.h
>>conftest.
$ac_ext
2508 cat >>conftest.
$ac_ext <<_ACEOF
2509 /* end confdefs.h. */
2519 rm -f conftest.
$ac_objext
2520 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2521 (eval $ac_compile) 2>conftest.er1
2523 grep -v '^ *+' conftest.er1
>conftest.err
2525 cat conftest.err
>&5
2526 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2527 (exit $ac_status); } &&
2528 { ac_try
='test -z "$ac_c_werror_flag"
2529 || test ! -s conftest.err'
2530 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2533 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2534 (exit $ac_status); }; } &&
2535 { ac_try
='test -s conftest.$ac_objext'
2536 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2539 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2540 (exit $ac_status); }; }; then
2543 echo "$as_me: failed program was:" >&5
2544 sed 's/^/| /' conftest.
$ac_ext >&5
2547 rm -f conftest.err conftest.
$ac_objext conftest.
$ac_ext
2550 if test -n "$ac_declaration"; then
2551 echo '#ifdef __cplusplus' >>confdefs.h
2552 echo $ac_declaration >>confdefs.h
2553 echo '#endif' >>confdefs.h
2557 echo "$as_me: failed program was:" >&5
2558 sed 's/^/| /' conftest.
$ac_ext >&5
2561 rm -f conftest.err conftest.
$ac_objext conftest.
$ac_ext
2563 ac_cpp
='$CPP $CPPFLAGS'
2564 ac_compile
='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2565 ac_link
='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2566 ac_compiler_gnu
=$ac_cv_c_compiler_gnu
2569 ac_cpp
='$CXXCPP $CPPFLAGS'
2570 ac_compile
='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2571 ac_link
='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2572 ac_compiler_gnu
=$ac_cv_cxx_compiler_gnu
2573 if test -n "$ac_tool_prefix"; then
2574 for ac_prog
in $CCC g
++ c
++ gpp aCC CC cxx cc
++ cl FCC KCC RCC xlC_r xlC
2576 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
2577 set dummy
$ac_tool_prefix$ac_prog; ac_word
=$2
2578 echo "$as_me:$LINENO: checking for $ac_word" >&5
2579 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
2580 if test "${glibcxx_cv_prog_CXX+set}" = set; then
2581 echo $ECHO_N "(cached) $ECHO_C" >&6
2583 if test -n "$CXX"; then
2584 glibcxx_cv_prog_CXX
="$CXX" # Let the user override the test.
2586 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
2590 test -z "$as_dir" && as_dir
=.
2591 for ac_exec_ext
in '' $ac_executable_extensions; do
2592 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2593 glibcxx_cv_prog_CXX
="$ac_tool_prefix$ac_prog"
2594 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2602 CXX
=$glibcxx_cv_prog_CXX
2603 if test -n "$CXX"; then
2604 echo "$as_me:$LINENO: result: $CXX" >&5
2605 echo "${ECHO_T}$CXX" >&6
2607 echo "$as_me:$LINENO: result: no" >&5
2608 echo "${ECHO_T}no" >&6
2611 test -n "$CXX" && break
2614 if test -z "$CXX"; then
2616 for ac_prog
in $CCC g
++ c
++ gpp aCC CC cxx cc
++ cl FCC KCC RCC xlC_r xlC
2618 # Extract the first word of "$ac_prog", so it can be a program name with args.
2619 set dummy
$ac_prog; ac_word
=$2
2620 echo "$as_me:$LINENO: checking for $ac_word" >&5
2621 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
2622 if test "${ac_cv_prog_ac_ct_CXX+set}" = set; then
2623 echo $ECHO_N "(cached) $ECHO_C" >&6
2625 if test -n "$ac_ct_CXX"; then
2626 ac_cv_prog_ac_ct_CXX
="$ac_ct_CXX" # Let the user override the test.
2628 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
2632 test -z "$as_dir" && as_dir
=.
2633 for ac_exec_ext
in '' $ac_executable_extensions; do
2634 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2635 ac_cv_prog_ac_ct_CXX
="$ac_prog"
2636 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2644 ac_ct_CXX
=$ac_cv_prog_ac_ct_CXX
2645 if test -n "$ac_ct_CXX"; then
2646 echo "$as_me:$LINENO: result: $ac_ct_CXX" >&5
2647 echo "${ECHO_T}$ac_ct_CXX" >&6
2649 echo "$as_me:$LINENO: result: no" >&5
2650 echo "${ECHO_T}no" >&6
2653 test -n "$ac_ct_CXX" && break
2655 test -n "$ac_ct_CXX" || ac_ct_CXX
="g++"
2661 # Provide some information about the compiler.
2662 echo "$as_me:$LINENO:" \
2663 "checking for C++ compiler version" >&5
2664 ac_compiler
=`set X $ac_compile; echo $2`
2665 { (eval echo "$as_me:$LINENO: \"$ac_compiler --version </dev/null >&5\"") >&5
2666 (eval $ac_compiler --version </dev
/null
>&5) 2>&5
2668 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2669 (exit $ac_status); }
2670 { (eval echo "$as_me:$LINENO: \"$ac_compiler -v </dev/null >&5\"") >&5
2671 (eval $ac_compiler -v </dev
/null
>&5) 2>&5
2673 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2674 (exit $ac_status); }
2675 { (eval echo "$as_me:$LINENO: \"$ac_compiler -V </dev/null >&5\"") >&5
2676 (eval $ac_compiler -V </dev
/null
>&5) 2>&5
2678 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2679 (exit $ac_status); }
2681 echo "$as_me:$LINENO: checking whether we are using the GNU C++ compiler" >&5
2682 echo $ECHO_N "checking whether we are using the GNU C++ compiler... $ECHO_C" >&6
2683 if test "${ac_cv_cxx_compiler_gnu+set}" = set; then
2684 echo $ECHO_N "(cached) $ECHO_C" >&6
2686 cat >conftest.
$ac_ext <<_ACEOF
2689 cat confdefs.h
>>conftest.
$ac_ext
2690 cat >>conftest.
$ac_ext <<_ACEOF
2691 /* end confdefs.h. */
2704 rm -f conftest.
$ac_objext
2705 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2706 (eval $ac_compile) 2>conftest.er1
2708 grep -v '^ *+' conftest.er1
>conftest.err
2710 cat conftest.err
>&5
2711 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2712 (exit $ac_status); } &&
2713 { ac_try
='test -z "$ac_cxx_werror_flag"
2714 || test ! -s conftest.err'
2715 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2718 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2719 (exit $ac_status); }; } &&
2720 { ac_try
='test -s conftest.$ac_objext'
2721 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2724 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2725 (exit $ac_status); }; }; then
2728 echo "$as_me: failed program was:" >&5
2729 sed 's/^/| /' conftest.
$ac_ext >&5
2733 rm -f conftest.err conftest.
$ac_objext conftest.
$ac_ext
2734 ac_cv_cxx_compiler_gnu
=$ac_compiler_gnu
2737 echo "$as_me:$LINENO: result: $ac_cv_cxx_compiler_gnu" >&5
2738 echo "${ECHO_T}$ac_cv_cxx_compiler_gnu" >&6
2739 GXX
=`test $ac_compiler_gnu = yes && echo yes`
2740 ac_test_CXXFLAGS
=${CXXFLAGS+set}
2741 ac_save_CXXFLAGS
=$CXXFLAGS
2743 echo "$as_me:$LINENO: checking whether $CXX accepts -g" >&5
2744 echo $ECHO_N "checking whether $CXX accepts -g... $ECHO_C" >&6
2745 if test "${ac_cv_prog_cxx_g+set}" = set; then
2746 echo $ECHO_N "(cached) $ECHO_C" >&6
2748 cat >conftest.
$ac_ext <<_ACEOF
2751 cat confdefs.h
>>conftest.
$ac_ext
2752 cat >>conftest.
$ac_ext <<_ACEOF
2753 /* 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
2785 ac_cv_prog_cxx_g
=yes
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
2794 echo "$as_me:$LINENO: result: $ac_cv_prog_cxx_g" >&5
2795 echo "${ECHO_T}$ac_cv_prog_cxx_g" >&6
2796 if test "$ac_test_CXXFLAGS" = set; then
2797 CXXFLAGS
=$ac_save_CXXFLAGS
2798 elif test $ac_cv_prog_cxx_g = yes; then
2799 if test "$GXX" = yes; then
2805 if test "$GXX" = yes; then
2811 for ac_declaration
in \
2813 'extern "C" void std::exit (int) throw (); using std::exit;' \
2814 'extern "C" void std::exit (int); using std::exit;' \
2815 'extern "C" void exit (int) throw ();' \
2816 'extern "C" void exit (int);' \
2819 cat >conftest.
$ac_ext <<_ACEOF
2822 cat confdefs.h
>>conftest.
$ac_ext
2823 cat >>conftest.
$ac_ext <<_ACEOF
2824 /* end confdefs.h. */
2835 rm -f conftest.
$ac_objext
2836 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2837 (eval $ac_compile) 2>conftest.er1
2839 grep -v '^ *+' conftest.er1
>conftest.err
2841 cat conftest.err
>&5
2842 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2843 (exit $ac_status); } &&
2844 { ac_try
='test -z "$ac_cxx_werror_flag"
2845 || test ! -s conftest.err'
2846 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2849 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2850 (exit $ac_status); }; } &&
2851 { ac_try
='test -s conftest.$ac_objext'
2852 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2855 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2856 (exit $ac_status); }; }; then
2859 echo "$as_me: failed program was:" >&5
2860 sed 's/^/| /' conftest.
$ac_ext >&5
2864 rm -f conftest.err conftest.
$ac_objext conftest.
$ac_ext
2865 cat >conftest.
$ac_ext <<_ACEOF
2868 cat confdefs.h
>>conftest.
$ac_ext
2869 cat >>conftest.
$ac_ext <<_ACEOF
2870 /* end confdefs.h. */
2880 rm -f conftest.
$ac_objext
2881 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2882 (eval $ac_compile) 2>conftest.er1
2884 grep -v '^ *+' conftest.er1
>conftest.err
2886 cat conftest.err
>&5
2887 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2888 (exit $ac_status); } &&
2889 { ac_try
='test -z "$ac_cxx_werror_flag"
2890 || test ! -s conftest.err'
2891 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2894 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2895 (exit $ac_status); }; } &&
2896 { ac_try
='test -s conftest.$ac_objext'
2897 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2900 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2901 (exit $ac_status); }; }; then
2904 echo "$as_me: failed program was:" >&5
2905 sed 's/^/| /' conftest.
$ac_ext >&5
2908 rm -f conftest.err conftest.
$ac_objext conftest.
$ac_ext
2911 if test -n "$ac_declaration"; then
2912 echo '#ifdef __cplusplus' >>confdefs.h
2913 echo $ac_declaration >>confdefs.h
2914 echo '#endif' >>confdefs.h
2918 ac_cpp
='$CPP $CPPFLAGS'
2919 ac_compile
='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2920 ac_link
='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2921 ac_compiler_gnu
=$ac_cv_c_compiler_gnu
2923 CXXFLAGS
="$save_CXXFLAGS"
2929 am__api_version
="1.9"
2930 # Find a good install program. We prefer a C program (faster),
2931 # so one script is as good as another. But avoid the broken or
2932 # incompatible versions:
2933 # SysV /etc/install, /usr/sbin/install
2934 # SunOS /usr/etc/install
2935 # IRIX /sbin/install
2937 # AmigaOS /C/install, which installs bootblocks on floppy discs
2938 # AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag
2939 # AFS /usr/afsws/bin/install, which mishandles nonexistent args
2940 # SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff"
2941 # OS/2's system install, which has a completely different semantic
2942 # ./install, which can be erroneously created by make from ./install.sh.
2943 echo "$as_me:$LINENO: checking for a BSD-compatible install" >&5
2944 echo $ECHO_N "checking for a BSD-compatible install... $ECHO_C" >&6
2945 if test -z "$INSTALL"; then
2946 if test "${ac_cv_path_install+set}" = set; then
2947 echo $ECHO_N "(cached) $ECHO_C" >&6
2949 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
2953 test -z "$as_dir" && as_dir
=.
2954 # Account for people who put trailing slashes in PATH elements.
2956 .
/ | .
// |
/cC
/* | \
2957 /etc
/* |
/usr
/sbin
/* |
/usr
/etc
/* |
/sbin
/* |
/usr
/afsws
/bin
/* | \
2958 ?
:\\/os2
\\/install\\/* | ?
:\\/OS2
\\/INSTALL
\\/* | \
2961 # OSF1 and SCO ODT 3.0 have their own names for install.
2962 # Don't use installbsd from OSF since it installs stuff as root
2964 for ac_prog
in ginstall scoinst
install; do
2965 for ac_exec_ext
in '' $ac_executable_extensions; do
2966 if $as_executable_p "$as_dir/$ac_prog$ac_exec_ext"; then
2967 if test $ac_prog = install &&
2968 grep dspmsg
"$as_dir/$ac_prog$ac_exec_ext" >/dev
/null
2>&1; then
2969 # AIX install. It has an incompatible calling convention.
2971 elif test $ac_prog = install &&
2972 grep pwplus
"$as_dir/$ac_prog$ac_exec_ext" >/dev
/null
2>&1; then
2973 # program-specific install script used by HP pwplus--don't use.
2976 ac_cv_path_install
="$as_dir/$ac_prog$ac_exec_ext -c"
2988 if test "${ac_cv_path_install+set}" = set; then
2989 INSTALL
=$ac_cv_path_install
2991 # As a last resort, use the slow shell script. We don't cache a
2992 # path for INSTALL within a source directory, because that will
2993 # break other packages using the cache if that directory is
2994 # removed, or if the path is relative.
2995 INSTALL
=$ac_install_sh
2998 echo "$as_me:$LINENO: result: $INSTALL" >&5
2999 echo "${ECHO_T}$INSTALL" >&6
3001 # Use test -z because SunOS4 sh mishandles braces in ${var-val}.
3002 # It thinks the first close brace ends the variable substitution.
3003 test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM
='${INSTALL}'
3005 test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT
='${INSTALL}'
3007 test -z "$INSTALL_DATA" && INSTALL_DATA
='${INSTALL} -m 644'
3009 echo "$as_me:$LINENO: checking whether build environment is sane" >&5
3010 echo $ECHO_N "checking whether build environment is sane... $ECHO_C" >&6
3013 echo timestamp
> conftest.
file
3014 # Do `set' in a subshell so we don't clobber the current shell's
3015 # arguments. Must try -L first in case configure is actually a
3016 # symlink; some systems play weird games with the mod time of symlinks
3017 # (eg FreeBSD returns the mod time of the symlink's containing
3020 set X
`ls -Lt $srcdir/configure conftest.file 2> /dev/null`
3021 if test "$*" = "X"; then
3023 set X
`ls -t $srcdir/configure conftest.file`
3026 if test "$*" != "X $srcdir/configure conftest.file" \
3027 && test "$*" != "X conftest.file $srcdir/configure"; then
3029 # If neither matched, then we have a broken ls. This can happen
3030 # if, for instance, CONFIG_SHELL is bash and it inherits a
3031 # broken ls alias from the environment. This has actually
3032 # happened. Such a system could not be considered "sane".
3033 { { echo "$as_me:$LINENO: error: ls -t appears to fail. Make sure there is not a broken
3034 alias in your environment" >&5
3035 echo "$as_me: error: ls -t appears to fail. Make sure there is not a broken
3036 alias in your environment" >&2;}
3037 { (exit 1); exit 1; }; }
3040 test "$2" = conftest.
file
3046 { { echo "$as_me:$LINENO: error: newly created file is older than distributed files!
3047 Check your system clock" >&5
3048 echo "$as_me: error: newly created file is older than distributed files!
3049 Check your system clock" >&2;}
3050 { (exit 1); exit 1; }; }
3052 echo "$as_me:$LINENO: result: yes" >&5
3053 echo "${ECHO_T}yes" >&6
3054 test "$program_prefix" != NONE
&&
3055 program_transform_name
="s,^,$program_prefix,;$program_transform_name"
3056 # Use a double $ so make ignores it.
3057 test "$program_suffix" != NONE
&&
3058 program_transform_name
="s,\$,$program_suffix,;$program_transform_name"
3059 # Double any \ or $. echo might interpret backslashes.
3060 # By default was `s,x,x', remove it if useless.
3061 cat <<\_ACEOF
>conftest.
sed
3062 s
/[\\$
]/&&/g
;s
/;s
,x
,x
,$
//
3064 program_transform_name
=`echo $program_transform_name | sed -f conftest.sed`
3067 # expand $ac_aux_dir to an absolute path
3068 am_aux_dir
=`cd $ac_aux_dir && pwd`
3070 test x
"${MISSING+set}" = xset || MISSING
="\${SHELL} $am_aux_dir/missing"
3071 # Use eval to expand $SHELL
3072 if eval "$MISSING --run true"; then
3073 am_missing_run
="$MISSING --run "
3076 { echo "$as_me:$LINENO: WARNING: \`missing' script is too old or missing" >&5
3077 echo "$as_me: WARNING: \`missing' script is too old or missing" >&2;}
3080 if mkdir
-p --version .
>/dev
/null
2>&1 && test ! -d .
/--version; then
3081 # We used to keeping the `.' as first argument, in order to
3082 # allow $(mkdir_p) to be used without argument. As in
3083 # $(mkdir_p) $(somedir)
3084 # where $(somedir) is conditionally defined. However this is wrong
3086 # 1. if the package is installed by a user who cannot write `.'
3087 # make install will fail,
3088 # 2. the above comment should most certainly read
3089 # $(mkdir_p) $(DESTDIR)$(somedir)
3090 # so it does not work when $(somedir) is undefined and
3091 # $(DESTDIR) is not.
3092 # To support the latter case, we have to write
3093 # test -z "$(somedir)" || $(mkdir_p) $(DESTDIR)$(somedir),
3094 # so the `.' trick is pointless.
3095 mkdir_p
='mkdir -p --'
3097 # On NextStep and OpenStep, the `mkdir' command does not
3098 # recognize any option. It will interpret all options as
3099 # directories to create, and then abort because `.' already
3101 for d
in .
/-p .
/--version;
3103 test -d $d && rmdir $d
3105 # $(mkinstalldirs) is defined by Automake if mkinstalldirs exists.
3106 if test -f "$ac_aux_dir/mkinstalldirs"; then
3107 mkdir_p
='$(mkinstalldirs)'
3109 mkdir_p
='$(install_sh) -d'
3113 for ac_prog
in gawk mawk nawk
awk
3115 # Extract the first word of "$ac_prog", so it can be a program name with args.
3116 set dummy
$ac_prog; ac_word
=$2
3117 echo "$as_me:$LINENO: checking for $ac_word" >&5
3118 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
3119 if test "${ac_cv_prog_AWK+set}" = set; then
3120 echo $ECHO_N "(cached) $ECHO_C" >&6
3122 if test -n "$AWK"; then
3123 ac_cv_prog_AWK
="$AWK" # Let the user override the test.
3125 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
3129 test -z "$as_dir" && as_dir
=.
3130 for ac_exec_ext
in '' $ac_executable_extensions; do
3131 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3132 ac_cv_prog_AWK
="$ac_prog"
3133 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
3142 if test -n "$AWK"; then
3143 echo "$as_me:$LINENO: result: $AWK" >&5
3144 echo "${ECHO_T}$AWK" >&6
3146 echo "$as_me:$LINENO: result: no" >&5
3147 echo "${ECHO_T}no" >&6
3150 test -n "$AWK" && break
3153 echo "$as_me:$LINENO: checking whether ${MAKE-make} sets \$(MAKE)" >&5
3154 echo $ECHO_N "checking whether ${MAKE-make} sets \$(MAKE)... $ECHO_C" >&6
3155 set dummy
${MAKE-make}; ac_make
=`echo "$2" | sed 'y,:./+-,___p_,'`
3156 if eval "test \"\${ac_cv_prog_make_${ac_make}_set+set}\" = set"; then
3157 echo $ECHO_N "(cached) $ECHO_C" >&6
3159 cat >conftest.
make <<\_ACEOF
3161 @
echo 'ac_maketemp="$(MAKE)"'
3163 # GNU make sometimes prints "make[1]: Entering...", which would confuse us.
3164 eval `${MAKE-make} -f conftest.make 2>/dev/null | grep temp=`
3165 if test -n "$ac_maketemp"; then
3166 eval ac_cv_prog_make_
${ac_make}_set
=yes
3168 eval ac_cv_prog_make_
${ac_make}_set
=no
3172 if eval "test \"`echo '$ac_cv_prog_make_'${ac_make}_set`\" = yes"; then
3173 echo "$as_me:$LINENO: result: yes" >&5
3174 echo "${ECHO_T}yes" >&6
3177 echo "$as_me:$LINENO: result: no" >&5
3178 echo "${ECHO_T}no" >&6
3179 SET_MAKE
="MAKE=${MAKE-make}"
3182 rm -rf .tst
2>/dev
/null
3183 mkdir .tst
2>/dev
/null
3184 if test -d .tst
; then
3189 rmdir .tst
2>/dev
/null
3191 DEPDIR
="${am__leading_dot}deps"
3193 ac_config_commands
="$ac_config_commands depfiles"
3196 am_make
=${MAKE-make}
3197 cat > confinc
<< 'END'
3202 # If we don't find an include directive, just comment out the code.
3203 echo "$as_me:$LINENO: checking for style of include used by $am_make" >&5
3204 echo $ECHO_N "checking for style of include used by $am_make... $ECHO_C" >&6
3208 # First try GNU make style include.
3209 echo "include confinc" > confmf
3210 # We grep out `Entering directory' and `Leaving directory'
3211 # messages which can occur if `w' ends up in MAKEFLAGS.
3212 # In particular we don't look at `^make:' because GNU make might
3213 # be invoked under some other name (usually "gmake"), in which
3214 # case it prints its new name instead of `make'.
3215 if test "`$am_make -s -f confmf 2> /dev/null | grep -v 'ing directory'`" = "done"; then
3220 # Now try BSD make style include.
3221 if test "$am__include" = "#"; then
3222 echo '.include "confinc"' > confmf
3223 if test "`$am_make -s -f confmf 2> /dev/null`" = "done"; then
3224 am__include
=.include
3231 echo "$as_me:$LINENO: result: $_am_result" >&5
3232 echo "${ECHO_T}$_am_result" >&6
3233 rm -f confinc confmf
3235 # Check whether --enable-dependency-tracking or --disable-dependency-tracking was given.
3236 if test "${enable_dependency_tracking+set}" = set; then
3237 enableval
="$enable_dependency_tracking"
3240 if test "x$enable_dependency_tracking" != xno
; then
3241 am_depcomp
="$ac_aux_dir/depcomp"
3246 if test "x$enable_dependency_tracking" != xno; then
3256 # test to see if srcdir already configured
3257 if test "`cd $srcdir && pwd`" != "`pwd`" &&
3258 test -f $srcdir/config.status
; then
3259 { { echo "$as_me:$LINENO: error: source directory already configured; run \"make distclean\" there first" >&5
3260 echo "$as_me: error: source directory already configured; run \"make distclean\" there first" >&2;}
3261 { (exit 1); exit 1; }; }
3264 # test whether we have cygpath
3265 if test -z "$CYGPATH_W"; then
3266 if (cygpath
--version) >/dev
/null
2>/dev
/null
; then
3267 CYGPATH_W
='cygpath -w'
3274 # Define the identity of the package.
3276 VERSION
='version-unused'
3279 cat >>confdefs.h
<<_ACEOF
3280 #define PACKAGE "$PACKAGE"
3284 cat >>confdefs.h
<<_ACEOF
3285 #define VERSION "$VERSION"
3288 # Some tools Automake needs.
3290 ACLOCAL
=${ACLOCAL-"${am_missing_run}aclocal-${am__api_version}"}
3293 AUTOCONF
=${AUTOCONF-"${am_missing_run}autoconf"}
3296 AUTOMAKE
=${AUTOMAKE-"${am_missing_run}automake-${am__api_version}"}
3299 AUTOHEADER
=${AUTOHEADER-"${am_missing_run}autoheader"}
3302 MAKEINFO
=${MAKEINFO-"${am_missing_run}makeinfo"}
3304 install_sh
=${install_sh-"$am_aux_dir/install-sh"}
3306 # Installed binaries are usually stripped using `strip' when the user
3307 # run `make install-strip'. However `strip' might not be the right
3308 # tool to use in cross-compilation environments, therefore Automake
3309 # will honor the `STRIP' environment variable to overrule this program.
3310 if test "$cross_compiling" != no
; then
3311 if test -n "$ac_tool_prefix"; then
3312 # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args.
3313 set dummy
${ac_tool_prefix}strip
; ac_word
=$2
3314 echo "$as_me:$LINENO: checking for $ac_word" >&5
3315 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
3316 if test "${ac_cv_prog_STRIP+set}" = set; then
3317 echo $ECHO_N "(cached) $ECHO_C" >&6
3319 if test -n "$STRIP"; then
3320 ac_cv_prog_STRIP
="$STRIP" # Let the user override the test.
3322 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
3326 test -z "$as_dir" && as_dir
=.
3327 for ac_exec_ext
in '' $ac_executable_extensions; do
3328 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3329 ac_cv_prog_STRIP
="${ac_tool_prefix}strip"
3330 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
3338 STRIP
=$ac_cv_prog_STRIP
3339 if test -n "$STRIP"; then
3340 echo "$as_me:$LINENO: result: $STRIP" >&5
3341 echo "${ECHO_T}$STRIP" >&6
3343 echo "$as_me:$LINENO: result: no" >&5
3344 echo "${ECHO_T}no" >&6
3348 if test -z "$ac_cv_prog_STRIP"; then
3350 # Extract the first word of "strip", so it can be a program name with args.
3351 set dummy strip
; ac_word
=$2
3352 echo "$as_me:$LINENO: checking for $ac_word" >&5
3353 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
3354 if test "${ac_cv_prog_ac_ct_STRIP+set}" = set; then
3355 echo $ECHO_N "(cached) $ECHO_C" >&6
3357 if test -n "$ac_ct_STRIP"; then
3358 ac_cv_prog_ac_ct_STRIP
="$ac_ct_STRIP" # Let the user override the test.
3360 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
3364 test -z "$as_dir" && as_dir
=.
3365 for ac_exec_ext
in '' $ac_executable_extensions; do
3366 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3367 ac_cv_prog_ac_ct_STRIP
="strip"
3368 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
3374 test -z "$ac_cv_prog_ac_ct_STRIP" && ac_cv_prog_ac_ct_STRIP
=":"
3377 ac_ct_STRIP
=$ac_cv_prog_ac_ct_STRIP
3378 if test -n "$ac_ct_STRIP"; then
3379 echo "$as_me:$LINENO: result: $ac_ct_STRIP" >&5
3380 echo "${ECHO_T}$ac_ct_STRIP" >&6
3382 echo "$as_me:$LINENO: result: no" >&5
3383 echo "${ECHO_T}no" >&6
3388 STRIP
="$ac_cv_prog_STRIP"
3392 INSTALL_STRIP_PROGRAM
="\${SHELL} \$(install_sh) -c -s"
3394 # We need awk for the "check" target. The system "awk" is bad on
3396 # Always define AMTAR for backward compatibility.
3398 AMTAR
=${AMTAR-"${am_missing_run}tar"}
3400 am__tar
='${AMTAR} chof - "$$tardir"'; am__untar
='${AMTAR} xf -'
3405 depcc
="$CC" am_compiler_list
=
3407 echo "$as_me:$LINENO: checking dependency style of $depcc" >&5
3408 echo $ECHO_N "checking dependency style of $depcc... $ECHO_C" >&6
3409 if test "${am_cv_CC_dependencies_compiler_type+set}" = set; then
3410 echo $ECHO_N "(cached) $ECHO_C" >&6
3412 if test -z "$AMDEP_TRUE" && test -f "$am_depcomp"; then
3413 # We make a subdir and do the tests there. Otherwise we can end up
3414 # making bogus files that we don't know about and never remove. For
3415 # instance it was reported that on HP-UX the gcc test will end up
3416 # making a dummy file named `D' -- because `-MD' means `put the output
3419 # Copy depcomp to subdir because otherwise we won't find it if we're
3420 # using a relative directory.
3421 cp "$am_depcomp" conftest.dir
3423 # We will build objects and dependencies in a subdirectory because
3424 # it helps to detect inapplicable dependency modes. For instance
3425 # both Tru64's cc and ICC support -MD to output dependencies as a
3426 # side effect of compilation, but ICC will put the dependencies in
3427 # the current directory while Tru64 will put them in the object
3431 am_cv_CC_dependencies_compiler_type
=none
3432 if test "$am_compiler_list" = ""; then
3433 am_compiler_list
=`sed -n 's/^#*\([a-zA-Z0-9]*\))$/\1/p' < ./depcomp`
3435 for depmode
in $am_compiler_list; do
3436 # Setup a source with many dependencies, because some compilers
3437 # like to wrap large dependency lists on column 80 (with \), and
3438 # we should not choose a depcomp mode which is confused by this.
3440 # We need to recreate these files for each test, as the compiler may
3441 # overwrite some of them when testing with obscure command lines.
3442 # This happens at least with the AIX C compiler.
3444 for i
in 1 2 3 4 5 6; do
3445 echo '#include "conftst'$i'.h"' >> sub
/conftest.c
3446 # Using `: > sub/conftst$i.h' creates only sub/conftst1.h with
3447 # Solaris 8's {/usr,}/bin/sh.
3448 touch sub
/conftst
$i.h
3450 echo "${am__include} ${am__quote}sub/conftest.Po${am__quote}" > confmf
3454 # after this tag, mechanisms are not by side-effect, so they'll
3455 # only be used when explicitly requested
3456 if test "x$enable_dependency_tracking" = xyes
; then
3464 # We check with `-c' and `-o' for the sake of the "dashmstdout"
3465 # mode. It turns out that the SunPro C++ compiler does not properly
3466 # handle `-M -o', and we need to detect this.
3467 if depmode
=$depmode \
3468 source=sub
/conftest.c object
=sub
/conftest.
${OBJEXT-o} \
3469 depfile
=sub
/conftest.Po tmpdepfile
=sub
/conftest.TPo \
3470 $SHELL .
/depcomp
$depcc -c -o sub
/conftest.
${OBJEXT-o} sub
/conftest.c \
3471 >/dev
/null
2>conftest.err
&&
3472 grep sub
/conftst6.h sub
/conftest.Po
> /dev
/null
2>&1 &&
3473 grep sub
/conftest.
${OBJEXT-o} sub
/conftest.Po
> /dev
/null
2>&1 &&
3474 ${MAKE-make} -s -f confmf
> /dev
/null
2>&1; then
3475 # icc doesn't choke on unknown options, it will just issue warnings
3476 # or remarks (even with -Werror). So we grep stderr for any message
3477 # that says an option was ignored or not supported.
3478 # When given -MP, icc 7.0 and 7.1 complain thusly:
3479 # icc: Command line warning: ignoring option '-M'; no argument required
3480 # The diagnosis changed in icc 8.0:
3481 # icc: Command line remark: option '-MP' not supported
3482 if (grep 'ignoring option' conftest.err ||
3483 grep 'not supported' conftest.err
) >/dev
/null
2>&1; then :; else
3484 am_cv_CC_dependencies_compiler_type
=$depmode
3493 am_cv_CC_dependencies_compiler_type
=none
3497 echo "$as_me:$LINENO: result: $am_cv_CC_dependencies_compiler_type" >&5
3498 echo "${ECHO_T}$am_cv_CC_dependencies_compiler_type" >&6
3499 CCDEPMODE
=depmode
=$am_cv_CC_dependencies_compiler_type
3504 test "x$enable_dependency_tracking" != xno \
3505 && test "$am_cv_CC_dependencies_compiler_type" = gcc3
; then
3507 am__fastdepCC_FALSE
='#'
3509 am__fastdepCC_TRUE
='#'
3510 am__fastdepCC_FALSE
=
3514 depcc
="$CXX" am_compiler_list
=
3516 echo "$as_me:$LINENO: checking dependency style of $depcc" >&5
3517 echo $ECHO_N "checking dependency style of $depcc... $ECHO_C" >&6
3518 if test "${am_cv_CXX_dependencies_compiler_type+set}" = set; then
3519 echo $ECHO_N "(cached) $ECHO_C" >&6
3521 if test -z "$AMDEP_TRUE" && test -f "$am_depcomp"; then
3522 # We make a subdir and do the tests there. Otherwise we can end up
3523 # making bogus files that we don't know about and never remove. For
3524 # instance it was reported that on HP-UX the gcc test will end up
3525 # making a dummy file named `D' -- because `-MD' means `put the output
3528 # Copy depcomp to subdir because otherwise we won't find it if we're
3529 # using a relative directory.
3530 cp "$am_depcomp" conftest.dir
3532 # We will build objects and dependencies in a subdirectory because
3533 # it helps to detect inapplicable dependency modes. For instance
3534 # both Tru64's cc and ICC support -MD to output dependencies as a
3535 # side effect of compilation, but ICC will put the dependencies in
3536 # the current directory while Tru64 will put them in the object
3540 am_cv_CXX_dependencies_compiler_type
=none
3541 if test "$am_compiler_list" = ""; then
3542 am_compiler_list
=`sed -n 's/^#*\([a-zA-Z0-9]*\))$/\1/p' < ./depcomp`
3544 for depmode
in $am_compiler_list; do
3545 # Setup a source with many dependencies, because some compilers
3546 # like to wrap large dependency lists on column 80 (with \), and
3547 # we should not choose a depcomp mode which is confused by this.
3549 # We need to recreate these files for each test, as the compiler may
3550 # overwrite some of them when testing with obscure command lines.
3551 # This happens at least with the AIX C compiler.
3553 for i
in 1 2 3 4 5 6; do
3554 echo '#include "conftst'$i'.h"' >> sub
/conftest.c
3555 # Using `: > sub/conftst$i.h' creates only sub/conftst1.h with
3556 # Solaris 8's {/usr,}/bin/sh.
3557 touch sub
/conftst
$i.h
3559 echo "${am__include} ${am__quote}sub/conftest.Po${am__quote}" > confmf
3563 # after this tag, mechanisms are not by side-effect, so they'll
3564 # only be used when explicitly requested
3565 if test "x$enable_dependency_tracking" = xyes
; then
3573 # We check with `-c' and `-o' for the sake of the "dashmstdout"
3574 # mode. It turns out that the SunPro C++ compiler does not properly
3575 # handle `-M -o', and we need to detect this.
3576 if depmode
=$depmode \
3577 source=sub
/conftest.c object
=sub
/conftest.
${OBJEXT-o} \
3578 depfile
=sub
/conftest.Po tmpdepfile
=sub
/conftest.TPo \
3579 $SHELL .
/depcomp
$depcc -c -o sub
/conftest.
${OBJEXT-o} sub
/conftest.c \
3580 >/dev
/null
2>conftest.err
&&
3581 grep sub
/conftst6.h sub
/conftest.Po
> /dev
/null
2>&1 &&
3582 grep sub
/conftest.
${OBJEXT-o} sub
/conftest.Po
> /dev
/null
2>&1 &&
3583 ${MAKE-make} -s -f confmf
> /dev
/null
2>&1; then
3584 # icc doesn't choke on unknown options, it will just issue warnings
3585 # or remarks (even with -Werror). So we grep stderr for any message
3586 # that says an option was ignored or not supported.
3587 # When given -MP, icc 7.0 and 7.1 complain thusly:
3588 # icc: Command line warning: ignoring option '-M'; no argument required
3589 # The diagnosis changed in icc 8.0:
3590 # icc: Command line remark: option '-MP' not supported
3591 if (grep 'ignoring option' conftest.err ||
3592 grep 'not supported' conftest.err
) >/dev
/null
2>&1; then :; else
3593 am_cv_CXX_dependencies_compiler_type
=$depmode
3602 am_cv_CXX_dependencies_compiler_type
=none
3606 echo "$as_me:$LINENO: result: $am_cv_CXX_dependencies_compiler_type" >&5
3607 echo "${ECHO_T}$am_cv_CXX_dependencies_compiler_type" >&6
3608 CXXDEPMODE
=depmode
=$am_cv_CXX_dependencies_compiler_type
3613 test "x$enable_dependency_tracking" != xno \
3614 && test "$am_cv_CXX_dependencies_compiler_type" = gcc3
; then
3615 am__fastdepCXX_TRUE
=
3616 am__fastdepCXX_FALSE
='#'
3618 am__fastdepCXX_TRUE
='#'
3619 am__fastdepCXX_FALSE
=
3625 if test -n "$ac_tool_prefix"; then
3626 # Extract the first word of "${ac_tool_prefix}as", so it can be a program name with args.
3627 set dummy
${ac_tool_prefix}as
; ac_word
=$2
3628 echo "$as_me:$LINENO: checking for $ac_word" >&5
3629 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
3630 if test "${ac_cv_prog_AS+set}" = set; then
3631 echo $ECHO_N "(cached) $ECHO_C" >&6
3633 if test -n "$AS"; then
3634 ac_cv_prog_AS
="$AS" # Let the user override the test.
3636 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
3640 test -z "$as_dir" && as_dir
=.
3641 for ac_exec_ext
in '' $ac_executable_extensions; do
3642 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3643 ac_cv_prog_AS
="${ac_tool_prefix}as"
3644 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
3653 if test -n "$AS"; then
3654 echo "$as_me:$LINENO: result: $AS" >&5
3655 echo "${ECHO_T}$AS" >&6
3657 echo "$as_me:$LINENO: result: no" >&5
3658 echo "${ECHO_T}no" >&6
3662 if test -z "$ac_cv_prog_AS"; then
3664 # Extract the first word of "as", so it can be a program name with args.
3665 set dummy as
; ac_word
=$2
3666 echo "$as_me:$LINENO: checking for $ac_word" >&5
3667 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
3668 if test "${ac_cv_prog_ac_ct_AS+set}" = set; then
3669 echo $ECHO_N "(cached) $ECHO_C" >&6
3671 if test -n "$ac_ct_AS"; then
3672 ac_cv_prog_ac_ct_AS
="$ac_ct_AS" # Let the user override the test.
3674 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
3678 test -z "$as_dir" && as_dir
=.
3679 for ac_exec_ext
in '' $ac_executable_extensions; do
3680 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3681 ac_cv_prog_ac_ct_AS
="as"
3682 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
3690 ac_ct_AS
=$ac_cv_prog_ac_ct_AS
3691 if test -n "$ac_ct_AS"; then
3692 echo "$as_me:$LINENO: result: $ac_ct_AS" >&5
3693 echo "${ECHO_T}$ac_ct_AS" >&6
3695 echo "$as_me:$LINENO: result: no" >&5
3696 echo "${ECHO_T}no" >&6
3704 if test -n "$ac_tool_prefix"; then
3705 # Extract the first word of "${ac_tool_prefix}ar", so it can be a program name with args.
3706 set dummy
${ac_tool_prefix}ar; ac_word
=$2
3707 echo "$as_me:$LINENO: checking for $ac_word" >&5
3708 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
3709 if test "${ac_cv_prog_AR+set}" = set; then
3710 echo $ECHO_N "(cached) $ECHO_C" >&6
3712 if test -n "$AR"; then
3713 ac_cv_prog_AR
="$AR" # Let the user override the test.
3715 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
3719 test -z "$as_dir" && as_dir
=.
3720 for ac_exec_ext
in '' $ac_executable_extensions; do
3721 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3722 ac_cv_prog_AR
="${ac_tool_prefix}ar"
3723 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
3732 if test -n "$AR"; then
3733 echo "$as_me:$LINENO: result: $AR" >&5
3734 echo "${ECHO_T}$AR" >&6
3736 echo "$as_me:$LINENO: result: no" >&5
3737 echo "${ECHO_T}no" >&6
3741 if test -z "$ac_cv_prog_AR"; then
3743 # Extract the first word of "ar", so it can be a program name with args.
3744 set dummy
ar; ac_word
=$2
3745 echo "$as_me:$LINENO: checking for $ac_word" >&5
3746 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
3747 if test "${ac_cv_prog_ac_ct_AR+set}" = set; then
3748 echo $ECHO_N "(cached) $ECHO_C" >&6
3750 if test -n "$ac_ct_AR"; then
3751 ac_cv_prog_ac_ct_AR
="$ac_ct_AR" # Let the user override the test.
3753 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
3757 test -z "$as_dir" && as_dir
=.
3758 for ac_exec_ext
in '' $ac_executable_extensions; do
3759 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3760 ac_cv_prog_ac_ct_AR
="ar"
3761 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
3769 ac_ct_AR
=$ac_cv_prog_ac_ct_AR
3770 if test -n "$ac_ct_AR"; then
3771 echo "$as_me:$LINENO: result: $ac_ct_AR" >&5
3772 echo "${ECHO_T}$ac_ct_AR" >&6
3774 echo "$as_me:$LINENO: result: no" >&5
3775 echo "${ECHO_T}no" >&6
3783 if test -n "$ac_tool_prefix"; then
3784 # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args.
3785 set dummy
${ac_tool_prefix}ranlib
; ac_word
=$2
3786 echo "$as_me:$LINENO: checking for $ac_word" >&5
3787 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
3788 if test "${ac_cv_prog_RANLIB+set}" = set; then
3789 echo $ECHO_N "(cached) $ECHO_C" >&6
3791 if test -n "$RANLIB"; then
3792 ac_cv_prog_RANLIB
="$RANLIB" # Let the user override the test.
3794 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
3798 test -z "$as_dir" && as_dir
=.
3799 for ac_exec_ext
in '' $ac_executable_extensions; do
3800 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3801 ac_cv_prog_RANLIB
="${ac_tool_prefix}ranlib"
3802 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
3810 RANLIB
=$ac_cv_prog_RANLIB
3811 if test -n "$RANLIB"; then
3812 echo "$as_me:$LINENO: result: $RANLIB" >&5
3813 echo "${ECHO_T}$RANLIB" >&6
3815 echo "$as_me:$LINENO: result: no" >&5
3816 echo "${ECHO_T}no" >&6
3820 if test -z "$ac_cv_prog_RANLIB"; then
3821 ac_ct_RANLIB
=$RANLIB
3822 # Extract the first word of "ranlib", so it can be a program name with args.
3823 set dummy ranlib
; ac_word
=$2
3824 echo "$as_me:$LINENO: checking for $ac_word" >&5
3825 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
3826 if test "${ac_cv_prog_ac_ct_RANLIB+set}" = set; then
3827 echo $ECHO_N "(cached) $ECHO_C" >&6
3829 if test -n "$ac_ct_RANLIB"; then
3830 ac_cv_prog_ac_ct_RANLIB
="$ac_ct_RANLIB" # Let the user override the test.
3832 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
3836 test -z "$as_dir" && as_dir
=.
3837 for ac_exec_ext
in '' $ac_executable_extensions; do
3838 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3839 ac_cv_prog_ac_ct_RANLIB
="ranlib"
3840 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
3846 test -z "$ac_cv_prog_ac_ct_RANLIB" && ac_cv_prog_ac_ct_RANLIB
=":"
3849 ac_ct_RANLIB
=$ac_cv_prog_ac_ct_RANLIB
3850 if test -n "$ac_ct_RANLIB"; then
3851 echo "$as_me:$LINENO: result: $ac_ct_RANLIB" >&5
3852 echo "${ECHO_T}$ac_ct_RANLIB" >&6
3854 echo "$as_me:$LINENO: result: no" >&5
3855 echo "${ECHO_T}no" >&6
3858 RANLIB
=$ac_ct_RANLIB
3860 RANLIB
="$ac_cv_prog_RANLIB"
3864 # Find a good install program. We prefer a C program (faster),
3865 # so one script is as good as another. But avoid the broken or
3866 # incompatible versions:
3867 # SysV /etc/install, /usr/sbin/install
3868 # SunOS /usr/etc/install
3869 # IRIX /sbin/install
3871 # AmigaOS /C/install, which installs bootblocks on floppy discs
3872 # AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag
3873 # AFS /usr/afsws/bin/install, which mishandles nonexistent args
3874 # SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff"
3875 # OS/2's system install, which has a completely different semantic
3876 # ./install, which can be erroneously created by make from ./install.sh.
3877 echo "$as_me:$LINENO: checking for a BSD-compatible install" >&5
3878 echo $ECHO_N "checking for a BSD-compatible install... $ECHO_C" >&6
3879 if test -z "$INSTALL"; then
3880 if test "${ac_cv_path_install+set}" = set; then
3881 echo $ECHO_N "(cached) $ECHO_C" >&6
3883 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
3887 test -z "$as_dir" && as_dir
=.
3888 # Account for people who put trailing slashes in PATH elements.
3890 .
/ | .
// |
/cC
/* | \
3891 /etc
/* |
/usr
/sbin
/* |
/usr
/etc
/* |
/sbin
/* |
/usr
/afsws
/bin
/* | \
3892 ?
:\\/os2
\\/install\\/* | ?
:\\/OS2
\\/INSTALL
\\/* | \
3895 # OSF1 and SCO ODT 3.0 have their own names for install.
3896 # Don't use installbsd from OSF since it installs stuff as root
3898 for ac_prog
in ginstall scoinst
install; do
3899 for ac_exec_ext
in '' $ac_executable_extensions; do
3900 if $as_executable_p "$as_dir/$ac_prog$ac_exec_ext"; then
3901 if test $ac_prog = install &&
3902 grep dspmsg
"$as_dir/$ac_prog$ac_exec_ext" >/dev
/null
2>&1; then
3903 # AIX install. It has an incompatible calling convention.
3905 elif test $ac_prog = install &&
3906 grep pwplus
"$as_dir/$ac_prog$ac_exec_ext" >/dev
/null
2>&1; then
3907 # program-specific install script used by HP pwplus--don't use.
3910 ac_cv_path_install
="$as_dir/$ac_prog$ac_exec_ext -c"
3922 if test "${ac_cv_path_install+set}" = set; then
3923 INSTALL
=$ac_cv_path_install
3925 # As a last resort, use the slow shell script. We don't cache a
3926 # path for INSTALL within a source directory, because that will
3927 # break other packages using the cache if that directory is
3928 # removed, or if the path is relative.
3929 INSTALL
=$ac_install_sh
3932 echo "$as_me:$LINENO: result: $INSTALL" >&5
3933 echo "${ECHO_T}$INSTALL" >&6
3935 # Use test -z because SunOS4 sh mishandles braces in ${var-val}.
3936 # It thinks the first close brace ends the variable substitution.
3937 test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM
='${INSTALL}'
3939 test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT
='${INSTALL}'
3941 test -z "$INSTALL_DATA" && INSTALL_DATA
='${INSTALL} -m 644'
3944 echo "$as_me:$LINENO: checking whether to enable maintainer-specific portions of Makefiles" >&5
3945 echo $ECHO_N "checking whether to enable maintainer-specific portions of Makefiles... $ECHO_C" >&6
3946 # Check whether --enable-maintainer-mode or --disable-maintainer-mode was given.
3947 if test "${enable_maintainer_mode+set}" = set; then
3948 enableval
="$enable_maintainer_mode"
3949 USE_MAINTAINER_MODE
=$enableval
3951 USE_MAINTAINER_MODE
=no
3953 echo "$as_me:$LINENO: result: $USE_MAINTAINER_MODE" >&5
3954 echo "${ECHO_T}$USE_MAINTAINER_MODE" >&6
3957 if test $USE_MAINTAINER_MODE = yes; then
3958 MAINTAINER_MODE_TRUE
=
3959 MAINTAINER_MODE_FALSE
='#'
3961 MAINTAINER_MODE_TRUE
='#'
3962 MAINTAINER_MODE_FALSE
=
3965 MAINT
=$MAINTAINER_MODE_TRUE
3971 # configure.host sets the following important variables
3972 # libgcj_cflags - host specific C compiler flags
3973 # libgcj_cxxflags - host specific C++ compiler flags
3974 # libgcj_javaflags - host specific Java compiler flags
3980 .
${srcdir}/configure.
host
3982 LIBGCJ_CFLAGS
="${libgcj_cflags}"
3983 LIBGCJ_CXXFLAGS
="${libgcj_cxxflags}"
3984 LIBGCJ_JAVAFLAGS
="${libgcj_javaflags}"
3985 LIBGCJ_LD_SYMBOLIC
="${libgcj_ld_symbolic}"
3991 ac_config_headers
="$ac_config_headers include/config.h gcj/libgcj-config.h"
3994 # Only use libltdl for non-newlib builds.
3995 if test "x${with_newlib}" = "x" ||
test "x${with_newlib}" = "xno"; then
3996 case $enable_ltdl_convenience in
3997 no
) { { echo "$as_me:$LINENO: error: this package needs a convenience libltdl" >&5
3998 echo "$as_me: error: this package needs a convenience libltdl" >&2;}
3999 { (exit 1); exit 1; }; } ;;
4000 "") enable_ltdl_convenience
=yes
4001 ac_configure_args
="$ac_configure_args --enable-ltdl-convenience" ;;
4003 LIBLTDL
='${top_builddir}/''libltdl'/libltdlc.la
4004 INCLTDL
='-I${top_srcdir}/''libltdl'
4009 cat >>confdefs.h
<<\_ACEOF
4013 # Sigh. Libtool's macro doesn't do the right thing.
4014 INCLTDL
="-I\$(top_srcdir)/libltdl $INCLTDL"
4015 # FIXME: this is a hack.
4016 sub_auxdir
="`cd $ac_aux_dir && ${PWDCMD-pwd}`"
4017 ac_configure_args
="$ac_configure_args --with-auxdir=$sub_auxdir"
4022 # Check whether --enable-shared or --disable-shared was given.
4023 if test "${enable_shared+set}" = set; then
4024 enableval
="$enable_shared"
4025 p
=${PACKAGE-default}
4027 yes) enable_shared
=yes ;;
4028 no
) enable_shared
=no
;;
4031 # Look at the argument we got. We use all the common list separators.
4032 IFS
="${IFS= }"; ac_save_ifs
="$IFS"; IFS
="${IFS}:,"
4033 for pkg
in $enableval; do
4034 if test "X$pkg" = "X$p"; then
4044 # Check whether --enable-static or --disable-static was given.
4045 if test "${enable_static+set}" = set; then
4046 enableval
="$enable_static"
4047 p
=${PACKAGE-default}
4049 yes) enable_static
=yes ;;
4050 no
) enable_static
=no
;;
4053 # Look at the argument we got. We use all the common list separators.
4054 IFS
="${IFS= }"; ac_save_ifs
="$IFS"; IFS
="${IFS}:,"
4055 for pkg
in $enableval; do
4056 if test "X$pkg" = "X$p"; then
4066 # Check whether --enable-fast-install or --disable-fast-install was given.
4067 if test "${enable_fast_install+set}" = set; then
4068 enableval
="$enable_fast_install"
4069 p
=${PACKAGE-default}
4071 yes) enable_fast_install
=yes ;;
4072 no
) enable_fast_install
=no
;;
4074 enable_fast_install
=no
4075 # Look at the argument we got. We use all the common list separators.
4076 IFS
="${IFS= }"; ac_save_ifs
="$IFS"; IFS
="${IFS}:,"
4077 for pkg
in $enableval; do
4078 if test "X$pkg" = "X$p"; then
4079 enable_fast_install
=yes
4086 enable_fast_install
=yes
4089 # Check whether --with-gnu-ld or --without-gnu-ld was given.
4090 if test "${with_gnu_ld+set}" = set; then
4091 withval
="$with_gnu_ld"
4092 test "$withval" = no || with_gnu_ld
=yes
4097 if test "$GCC" = yes; then
4098 # Check if gcc -print-prog-name=ld gives a path.
4099 echo "$as_me:$LINENO: checking for ld used by GCC" >&5
4100 echo $ECHO_N "checking for ld used by GCC... $ECHO_C" >&6
4103 # gcc leaves a trailing carriage return which upsets mingw
4104 ac_prog
=`($CC -print-prog-name=ld) 2>&5 | tr -d '\015'` ;;
4106 ac_prog
=`($CC -print-prog-name=ld) 2>&5` ;;
4109 # Accept absolute paths.
4110 [\\/]* |
[A-Za-z
]:[\\/]*)
4111 re_direlt
='/[^/][^/]*/\.\./'
4112 # Canonicalize the path of ld
4113 ac_prog
=`echo $ac_prog| sed 's%\\\\%/%g'`
4114 while echo $ac_prog |
grep "$re_direlt" > /dev
/null
2>&1; do
4115 ac_prog
=`echo $ac_prog| sed "s%$re_direlt%/%"`
4117 test -z "$LD" && LD
="$ac_prog"
4120 # If it fails, then pretend we aren't using GCC.
4124 # If it is relative, then search for the first ld in PATH.
4128 elif test "$with_gnu_ld" = yes; then
4129 echo "$as_me:$LINENO: checking for GNU ld" >&5
4130 echo $ECHO_N "checking for GNU ld... $ECHO_C" >&6
4132 echo "$as_me:$LINENO: checking for non-GNU ld" >&5
4133 echo $ECHO_N "checking for non-GNU ld... $ECHO_C" >&6
4135 if test "${lt_cv_path_LD+set}" = set; then
4136 echo $ECHO_N "(cached) $ECHO_C" >&6
4138 if test -z "$LD"; then
4139 IFS
="${IFS= }"; ac_save_ifs="$IFS"; IFS="${IFS}${PATH_SEPARATOR-:}"
4140 for ac_dir
in $PATH; do
4141 test -z "$ac_dir" && ac_dir
=.
4142 if test -f "$ac_dir/$ac_prog" ||
test -f "$ac_dir/$ac_prog$ac_exeext"; then
4143 lt_cv_path_LD
="$ac_dir/$ac_prog"
4144 # Check to see if the program is GNU ld. I'd rather use --version,
4145 # but apparently some GNU ld's only accept -v.
4146 # Break only if it was the GNU/non-GNU ld that we prefer.
4147 if "$lt_cv_path_LD" -v 2>&1 < /dev
/null |
egrep '(GNU|with BFD)' > /dev
/null
; then
4148 test "$with_gnu_ld" != no
&& break
4150 test "$with_gnu_ld" != yes && break
4156 lt_cv_path_LD
="$LD" # Let the user override the test with a path.
4161 if test -n "$LD"; then
4162 echo "$as_me:$LINENO: result: $LD" >&5
4163 echo "${ECHO_T}$LD" >&6
4165 echo "$as_me:$LINENO: result: no" >&5
4166 echo "${ECHO_T}no" >&6
4168 test -z "$LD" && { { echo "$as_me:$LINENO: error: no acceptable ld found in \$PATH" >&5
4169 echo "$as_me: error: no acceptable ld found in \$PATH" >&2;}
4170 { (exit 1); exit 1; }; }
4171 echo "$as_me:$LINENO: checking if the linker ($LD) is GNU ld" >&5
4172 echo $ECHO_N "checking if the linker ($LD) is GNU ld... $ECHO_C" >&6
4173 if test "${lt_cv_prog_gnu_ld+set}" = set; then
4174 echo $ECHO_N "(cached) $ECHO_C" >&6
4176 # I'd rather use --version here, but apparently some GNU ld's only accept -v.
4177 if $LD -v 2>&1 </dev
/null |
egrep '(GNU|with BFD)' 1>&5; then
4178 lt_cv_prog_gnu_ld
=yes
4180 lt_cv_prog_gnu_ld
=no
4183 echo "$as_me:$LINENO: result: $lt_cv_prog_gnu_ld" >&5
4184 echo "${ECHO_T}$lt_cv_prog_gnu_ld" >&6
4185 with_gnu_ld
=$lt_cv_prog_gnu_ld
4188 echo "$as_me:$LINENO: checking for $LD option to reload object files" >&5
4189 echo $ECHO_N "checking for $LD option to reload object files... $ECHO_C" >&6
4190 if test "${lt_cv_ld_reload_flag+set}" = set; then
4191 echo $ECHO_N "(cached) $ECHO_C" >&6
4193 lt_cv_ld_reload_flag
='-r'
4195 echo "$as_me:$LINENO: result: $lt_cv_ld_reload_flag" >&5
4196 echo "${ECHO_T}$lt_cv_ld_reload_flag" >&6
4197 reload_flag
=$lt_cv_ld_reload_flag
4198 test -n "$reload_flag" && reload_flag
=" $reload_flag"
4200 echo "$as_me:$LINENO: checking for BSD-compatible nm" >&5
4201 echo $ECHO_N "checking for BSD-compatible nm... $ECHO_C" >&6
4202 if test "${lt_cv_path_NM+set}" = set; then
4203 echo $ECHO_N "(cached) $ECHO_C" >&6
4205 if test -n "$NM"; then
4206 # Let the user override the test.
4209 IFS
="${IFS= }"; ac_save_ifs="$IFS"; IFS="${IFS}${PATH_SEPARATOR-:}"
4210 for ac_dir
in $PATH /usr
/ccs
/bin
/usr
/ucb
/bin
; do
4211 test -z "$ac_dir" && ac_dir
=.
4212 tmp_nm
=$ac_dir/${ac_tool_prefix}nm
4213 if test -f $tmp_nm ||
test -f $tmp_nm$ac_exeext ; then
4214 # Check to see if the nm accepts a BSD-compat flag.
4215 # Adding the `sed 1q' prevents false positives on HP-UX, which says:
4216 # nm: unknown option "B" ignored
4217 # Tru64's nm complains that /dev/null is an invalid object file
4218 if ($tmp_nm -B /dev
/null
2>&1 |
sed '1q'; exit 0) |
egrep '(/dev/null|Invalid file or object type)' >/dev
/null
; then
4219 lt_cv_path_NM
="$tmp_nm -B"
4221 elif ($tmp_nm -p /dev
/null
2>&1 |
sed '1q'; exit 0) |
egrep /dev
/null
>/dev
/null
; then
4222 lt_cv_path_NM
="$tmp_nm -p"
4225 lt_cv_path_NM
=${lt_cv_path_NM="$tmp_nm"} # keep the first match, but
4226 continue # so that we can try to find one that supports BSD flags
4231 test -z "$lt_cv_path_NM" && lt_cv_path_NM
=nm
4236 echo "$as_me:$LINENO: result: $NM" >&5
4237 echo "${ECHO_T}$NM" >&6
4239 echo "$as_me:$LINENO: checking how to recognise dependant libraries" >&5
4240 echo $ECHO_N "checking how to recognise dependant libraries... $ECHO_C" >&6
4241 if test "${lt_cv_deplibs_check_method+set}" = set; then
4242 echo $ECHO_N "(cached) $ECHO_C" >&6
4244 lt_cv_file_magic_cmd
='$MAGIC_CMD'
4245 lt_cv_file_magic_test_file
=
4246 lt_cv_deplibs_check_method
='unknown'
4247 # Need to set the preceding variable on all platforms that support
4248 # interlibrary dependencies.
4249 # 'none' -- dependencies not supported.
4250 # `unknown' -- same as none, but documents that we really don't know.
4251 # 'pass_all' -- all dependencies passed with no checks.
4252 # 'test_compile' -- check by making test program.
4253 # 'file_magic [regex]' -- check by looking for files in library path
4254 # which responds to the $file_magic_cmd with a given egrep regex.
4255 # If you have `file' or equivalent on your system and you're not sure
4256 # whether `pass_all' will *always* work, you probably want this one.
4260 lt_cv_deplibs_check_method
=pass_all
4264 lt_cv_deplibs_check_method
=pass_all
4268 lt_cv_deplibs_check_method
='file_magic ELF [0-9][0-9]*-bit [ML]SB (shared object|dynamic lib)'
4269 lt_cv_file_magic_cmd
='/usr/bin/file -L'
4270 lt_cv_file_magic_test_file
=/shlib
/libc.so
4273 cygwin
* | mingw
* |pw32
*)
4274 lt_cv_deplibs_check_method
='file_magic file format pei*-i386(.*architecture: i386)?'
4275 lt_cv_file_magic_cmd
='$OBJDUMP -f'
4278 darwin
* | rhapsody
*)
4279 # this will be overwritten by pass_all, but leave it in just in case
4280 lt_cv_deplibs_check_method
='file_magic Mach-O dynamically linked shared library'
4281 lt_cv_file_magic_cmd
='/usr/bin/file -L'
4283 rhapsody
* | darwin1.012
)
4284 lt_cv_file_magic_test_file
='/System/Library/Frameworks/System.framework/System'
4287 lt_cv_file_magic_test_file
='/usr/lib/libSystem.dylib'
4290 lt_cv_deplibs_check_method
=pass_all
4293 freebsd
* | kfreebsd
*-gnu)
4294 if echo __ELF__ |
$CC -E - |
grep __ELF__
> /dev
/null
; then
4297 # Not sure whether the presence of OpenBSD here was a mistake.
4298 # Let's accept both of them until this is cleared up.
4299 lt_cv_deplibs_check_method
='file_magic (FreeBSD|OpenBSD)/i[3-9]86 (compact )?demand paged shared library'
4300 lt_cv_file_magic_cmd
=/usr
/bin
/file
4301 lt_cv_file_magic_test_file
=`echo /usr/lib/libc.so.*`
4305 lt_cv_deplibs_check_method
=pass_all
4310 lt_cv_deplibs_check_method
=pass_all
4316 lt_cv_deplibs_check_method
='file_magic (s[0-9][0-9][0-9]|PA-RISC[0-9].[0-9]) shared library'
4317 lt_cv_file_magic_cmd
=/usr
/bin
/file
4318 lt_cv_file_magic_test_file
=/usr
/lib
/libc.sl
4321 lt_cv_deplibs_check_method
='file_magic (s[0-9][0-9][0-9]|ELF-[0-9][0-9]) shared object file - IA64'
4322 lt_cv_file_magic_cmd
=/usr
/bin
/file
4323 lt_cv_file_magic_test_file
=/usr
/lib
/hpux32
/libc.so
4331 # this will be overridden with pass_all, but let us keep it just in case
4332 lt_cv_deplibs_check_method
="file_magic ELF 32-bit MSB dynamic lib MIPS - version 1"
4336 *-32|
*"-32 ") libmagic
=32-bit;;
4337 *-n32|
*"-n32 ") libmagic
=N32
;;
4338 *-64|
*"-64 ") libmagic
=64-bit;;
4339 *) libmagic
=never-match
;;
4341 # this will be overridden with pass_all, but let us keep it just in case
4342 lt_cv_deplibs_check_method
="file_magic ELF ${libmagic} MSB mips-[1234] dynamic lib MIPS - version 1"
4345 lt_cv_file_magic_test_file
=`echo /lib${libsuff}/libc.so*`
4346 lt_cv_deplibs_check_method
=pass_all
4349 # This must be Linux ELF.
4351 lt_cv_deplibs_check_method
=pass_all
4354 netbsd
* | knetbsd
*-gnu)
4355 if echo __ELF__ |
$CC -E - |
grep __ELF__
> /dev
/null
; then
4356 lt_cv_deplibs_check_method
='match_pattern /lib[^/\.]+\.so\.[0-9]+\.[0-9]+$'
4358 lt_cv_deplibs_check_method
='match_pattern /lib[^/\.]+\.so$'
4363 lt_cv_deplibs_check_method
='file_magic ELF [0-9][0-9]*-bit [ML]SB (executable|dynamic lib)'
4364 lt_cv_file_magic_cmd
=/usr
/bin
/file
4365 lt_cv_file_magic_test_file
=/usr
/lib
/libnls.so
4368 osf3
* | osf4
* | osf5
*)
4369 # this will be overridden with pass_all, but let us keep it just in case
4370 lt_cv_deplibs_check_method
='file_magic COFF format alpha shared library'
4371 lt_cv_file_magic_test_file
=/shlib
/libc.so
4372 lt_cv_deplibs_check_method
=pass_all
4376 lt_cv_deplibs_check_method
=pass_all
4380 lt_cv_deplibs_check_method
=pass_all
4381 lt_cv_file_magic_test_file
=/lib
/libc.so
4384 sysv5uw
[78]* | sysv4
*uw2
*)
4385 lt_cv_deplibs_check_method
=pass_all
4388 sysv4 | sysv4.2uw2
* | sysv4.3
* | sysv5
*)
4389 case $host_vendor in
4391 lt_cv_deplibs_check_method
=pass_all
4394 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]'
4395 lt_cv_file_magic_test_file
=`echo /usr/lib/libc.so*`
4402 echo "$as_me:$LINENO: result: $lt_cv_deplibs_check_method" >&5
4403 echo "${ECHO_T}$lt_cv_deplibs_check_method" >&6
4404 file_magic_cmd
=$lt_cv_file_magic_cmd
4405 deplibs_check_method
=$lt_cv_deplibs_check_method
4410 # Autoconf 2.13's AC_OBJEXT and AC_EXEEXT macros only works for C compilers!
4412 # Only perform the check for file, if the check method requires it
4413 case $deplibs_check_method in
4415 if test "$file_magic_cmd" = '$MAGIC_CMD'; then
4416 echo "$as_me:$LINENO: checking for ${ac_tool_prefix}file" >&5
4417 echo $ECHO_N "checking for ${ac_tool_prefix}file... $ECHO_C" >&6
4418 if test "${lt_cv_path_MAGIC_CMD+set}" = set; then
4419 echo $ECHO_N "(cached) $ECHO_C" >&6
4423 lt_cv_path_MAGIC_CMD
="$MAGIC_CMD" # Let the user override the test with a path.
4426 lt_cv_path_MAGIC_CMD
="$MAGIC_CMD" # Let the user override the test with a dos path.
4429 ac_save_MAGIC_CMD
="$MAGIC_CMD"
4430 IFS
="${IFS= }"; ac_save_ifs
="$IFS"; IFS
=":"
4431 ac_dummy
="/usr/bin:$PATH"
4432 for ac_dir
in $ac_dummy; do
4433 test -z "$ac_dir" && ac_dir
=.
4434 if test -f $ac_dir/${ac_tool_prefix}file; then
4435 lt_cv_path_MAGIC_CMD
="$ac_dir/${ac_tool_prefix}file"
4436 if test -n "$file_magic_test_file"; then
4437 case $deplibs_check_method in
4439 file_magic_regex
="`expr \"$deplibs_check_method\" : \"file_magic \(.*\)\"`"
4440 MAGIC_CMD
="$lt_cv_path_MAGIC_CMD"
4441 if eval $file_magic_cmd \
$file_magic_test_file 2> /dev
/null |
4442 egrep "$file_magic_regex" > /dev
/null
; then
4447 *** Warning: the command libtool uses to detect shared libraries,
4448 *** $file_magic_cmd, produces output that libtool cannot recognize.
4449 *** The result is that libtool may fail to recognize shared libraries
4450 *** as such. This will affect the creation of libtool libraries that
4451 *** depend on shared libraries, but programs linked with such libtool
4452 *** libraries will work regardless of this problem. Nevertheless, you
4453 *** may want to report the problem to your system manager and/or to
4454 *** bug-libtool@gnu.org
4464 MAGIC_CMD
="$ac_save_MAGIC_CMD"
4469 MAGIC_CMD
="$lt_cv_path_MAGIC_CMD"
4470 if test -n "$MAGIC_CMD"; then
4471 echo "$as_me:$LINENO: result: $MAGIC_CMD" >&5
4472 echo "${ECHO_T}$MAGIC_CMD" >&6
4474 echo "$as_me:$LINENO: result: no" >&5
4475 echo "${ECHO_T}no" >&6
4478 if test -z "$lt_cv_path_MAGIC_CMD"; then
4479 if test -n "$ac_tool_prefix"; then
4480 echo "$as_me:$LINENO: checking for file" >&5
4481 echo $ECHO_N "checking for file... $ECHO_C" >&6
4482 if test "${lt_cv_path_MAGIC_CMD+set}" = set; then
4483 echo $ECHO_N "(cached) $ECHO_C" >&6
4487 lt_cv_path_MAGIC_CMD
="$MAGIC_CMD" # Let the user override the test with a path.
4490 lt_cv_path_MAGIC_CMD
="$MAGIC_CMD" # Let the user override the test with a dos path.
4493 ac_save_MAGIC_CMD
="$MAGIC_CMD"
4494 IFS
="${IFS= }"; ac_save_ifs
="$IFS"; IFS
=":"
4495 ac_dummy
="/usr/bin:$PATH"
4496 for ac_dir
in $ac_dummy; do
4497 test -z "$ac_dir" && ac_dir
=.
4498 if test -f $ac_dir/file; then
4499 lt_cv_path_MAGIC_CMD
="$ac_dir/file"
4500 if test -n "$file_magic_test_file"; then
4501 case $deplibs_check_method in
4503 file_magic_regex
="`expr \"$deplibs_check_method\" : \"file_magic \(.*\)\"`"
4504 MAGIC_CMD
="$lt_cv_path_MAGIC_CMD"
4505 if eval $file_magic_cmd \
$file_magic_test_file 2> /dev
/null |
4506 egrep "$file_magic_regex" > /dev
/null
; then
4511 *** Warning: the command libtool uses to detect shared libraries,
4512 *** $file_magic_cmd, produces output that libtool cannot recognize.
4513 *** The result is that libtool may fail to recognize shared libraries
4514 *** as such. This will affect the creation of libtool libraries that
4515 *** depend on shared libraries, but programs linked with such libtool
4516 *** libraries will work regardless of this problem. Nevertheless, you
4517 *** may want to report the problem to your system manager and/or to
4518 *** bug-libtool@gnu.org
4528 MAGIC_CMD
="$ac_save_MAGIC_CMD"
4533 MAGIC_CMD
="$lt_cv_path_MAGIC_CMD"
4534 if test -n "$MAGIC_CMD"; then
4535 echo "$as_me:$LINENO: result: $MAGIC_CMD" >&5
4536 echo "${ECHO_T}$MAGIC_CMD" >&6
4538 echo "$as_me:$LINENO: result: no" >&5
4539 echo "${ECHO_T}no" >&6
4551 if test -n "$ac_tool_prefix"; then
4552 # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args.
4553 set dummy
${ac_tool_prefix}ranlib
; ac_word
=$2
4554 echo "$as_me:$LINENO: checking for $ac_word" >&5
4555 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
4556 if test "${ac_cv_prog_RANLIB+set}" = set; then
4557 echo $ECHO_N "(cached) $ECHO_C" >&6
4559 if test -n "$RANLIB"; then
4560 ac_cv_prog_RANLIB
="$RANLIB" # Let the user override the test.
4562 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
4566 test -z "$as_dir" && as_dir
=.
4567 for ac_exec_ext
in '' $ac_executable_extensions; do
4568 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4569 ac_cv_prog_RANLIB
="${ac_tool_prefix}ranlib"
4570 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4578 RANLIB
=$ac_cv_prog_RANLIB
4579 if test -n "$RANLIB"; then
4580 echo "$as_me:$LINENO: result: $RANLIB" >&5
4581 echo "${ECHO_T}$RANLIB" >&6
4583 echo "$as_me:$LINENO: result: no" >&5
4584 echo "${ECHO_T}no" >&6
4588 if test -z "$ac_cv_prog_RANLIB"; then
4589 ac_ct_RANLIB
=$RANLIB
4590 # Extract the first word of "ranlib", so it can be a program name with args.
4591 set dummy ranlib
; ac_word
=$2
4592 echo "$as_me:$LINENO: checking for $ac_word" >&5
4593 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
4594 if test "${ac_cv_prog_ac_ct_RANLIB+set}" = set; then
4595 echo $ECHO_N "(cached) $ECHO_C" >&6
4597 if test -n "$ac_ct_RANLIB"; then
4598 ac_cv_prog_ac_ct_RANLIB
="$ac_ct_RANLIB" # Let the user override the test.
4600 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
4604 test -z "$as_dir" && as_dir
=.
4605 for ac_exec_ext
in '' $ac_executable_extensions; do
4606 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4607 ac_cv_prog_ac_ct_RANLIB
="ranlib"
4608 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4614 test -z "$ac_cv_prog_ac_ct_RANLIB" && ac_cv_prog_ac_ct_RANLIB
=":"
4617 ac_ct_RANLIB
=$ac_cv_prog_ac_ct_RANLIB
4618 if test -n "$ac_ct_RANLIB"; then
4619 echo "$as_me:$LINENO: result: $ac_ct_RANLIB" >&5
4620 echo "${ECHO_T}$ac_ct_RANLIB" >&6
4622 echo "$as_me:$LINENO: result: no" >&5
4623 echo "${ECHO_T}no" >&6
4626 RANLIB
=$ac_ct_RANLIB
4628 RANLIB
="$ac_cv_prog_RANLIB"
4631 if test -n "$ac_tool_prefix"; then
4632 # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args.
4633 set dummy
${ac_tool_prefix}strip
; ac_word
=$2
4634 echo "$as_me:$LINENO: checking for $ac_word" >&5
4635 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
4636 if test "${ac_cv_prog_STRIP+set}" = set; then
4637 echo $ECHO_N "(cached) $ECHO_C" >&6
4639 if test -n "$STRIP"; then
4640 ac_cv_prog_STRIP
="$STRIP" # Let the user override the test.
4642 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
4646 test -z "$as_dir" && as_dir
=.
4647 for ac_exec_ext
in '' $ac_executable_extensions; do
4648 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4649 ac_cv_prog_STRIP
="${ac_tool_prefix}strip"
4650 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4658 STRIP
=$ac_cv_prog_STRIP
4659 if test -n "$STRIP"; then
4660 echo "$as_me:$LINENO: result: $STRIP" >&5
4661 echo "${ECHO_T}$STRIP" >&6
4663 echo "$as_me:$LINENO: result: no" >&5
4664 echo "${ECHO_T}no" >&6
4668 if test -z "$ac_cv_prog_STRIP"; then
4670 # Extract the first word of "strip", so it can be a program name with args.
4671 set dummy strip
; ac_word
=$2
4672 echo "$as_me:$LINENO: checking for $ac_word" >&5
4673 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
4674 if test "${ac_cv_prog_ac_ct_STRIP+set}" = set; then
4675 echo $ECHO_N "(cached) $ECHO_C" >&6
4677 if test -n "$ac_ct_STRIP"; then
4678 ac_cv_prog_ac_ct_STRIP
="$ac_ct_STRIP" # Let the user override the test.
4680 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
4684 test -z "$as_dir" && as_dir
=.
4685 for ac_exec_ext
in '' $ac_executable_extensions; do
4686 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4687 ac_cv_prog_ac_ct_STRIP
="strip"
4688 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4694 test -z "$ac_cv_prog_ac_ct_STRIP" && ac_cv_prog_ac_ct_STRIP
=":"
4697 ac_ct_STRIP
=$ac_cv_prog_ac_ct_STRIP
4698 if test -n "$ac_ct_STRIP"; then
4699 echo "$as_me:$LINENO: result: $ac_ct_STRIP" >&5
4700 echo "${ECHO_T}$ac_ct_STRIP" >&6
4702 echo "$as_me:$LINENO: result: no" >&5
4703 echo "${ECHO_T}no" >&6
4708 STRIP
="$ac_cv_prog_STRIP"
4712 # Check for any special flags to pass to ltconfig.
4713 libtool_flags
="--cache-file=$cache_file"
4714 test "$enable_shared" = no
&& libtool_flags
="$libtool_flags --disable-shared"
4715 test "$enable_static" = no
&& libtool_flags
="$libtool_flags --disable-static"
4716 test "$enable_fast_install" = no
&& libtool_flags
="$libtool_flags --disable-fast-install"
4717 test "$GCC" = yes && libtool_flags
="$libtool_flags --with-gcc"
4718 test "$lt_cv_prog_gnu_ld" = yes && libtool_flags
="$libtool_flags --with-gnu-ld"
4721 # Check whether --enable-libtool-lock or --disable-libtool-lock was given.
4722 if test "${enable_libtool_lock+set}" = set; then
4723 enableval
="$enable_libtool_lock"
4726 test "x$enable_libtool_lock" = xno
&& libtool_flags
="$libtool_flags --disable-lock"
4727 test x
"$silent" = xyes
&& libtool_flags
="$libtool_flags --silent"
4730 # Check whether --with-pic or --without-pic was given.
4731 if test "${with_pic+set}" = set; then
4737 test x
"$pic_mode" = xyes
&& libtool_flags
="$libtool_flags --prefer-pic"
4738 test x
"$pic_mode" = xno
&& libtool_flags
="$libtool_flags --prefer-non-pic"
4740 # Some flags need to be propagated to the compiler or linker for good
4744 # Find out which ABI we are using.
4745 echo '#line 4745 "configure"' > conftest.
$ac_ext
4746 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
4747 (eval $ac_compile) 2>&5
4749 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4750 (exit $ac_status); }; then
4751 if test "$lt_cv_prog_gnu_ld" = yes; then
4752 case `/usr/bin/file conftest.$ac_objext` in
4754 LD
="${LD-ld} -melf32bsmip"
4757 LD
="${LD-ld} -melf32bmipn32"
4760 LD
="${LD-ld} -melf64bmip"
4764 case `/usr/bin/file conftest.$ac_objext` in
4781 # Find out which ABI we are using.
4782 echo 'int i;' > conftest.
$ac_ext
4783 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
4784 (eval $ac_compile) 2>&5
4786 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4787 (exit $ac_status); }; then
4788 case "`/usr/bin/file conftest.o`" in
4800 x86_64-
*linux
*|ppc
*-*linux
*|powerpc
*-*linux
*|s390
*-*linux
*|sparc
*-*linux
*)
4801 # Find out which ABI we are using.
4802 echo 'int i;' > conftest.
$ac_ext
4803 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
4804 (eval $ac_compile) 2>&5
4806 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4807 (exit $ac_status); }; then
4808 case "`/usr/bin/file conftest.o`" in
4812 LD
="${LD-ld} -m elf_i386"
4814 ppc64-
*linux
*|powerpc64-
*linux
*)
4815 LD
="${LD-ld} -m elf32ppclinux"
4818 LD
="${LD-ld} -m elf_s390"
4821 LD
="${LD-ld} -m elf32_sparc"
4828 LD
="${LD-ld} -m elf_x86_64"
4830 ppc
*-*linux
*|powerpc
*-*linux
*)
4831 LD
="${LD-ld} -m elf64ppc"
4834 LD
="${LD-ld} -m elf64_s390"
4837 LD
="${LD-ld} -m elf64_sparc"
4847 # On SCO OpenServer 5, we need -belf to get full-featured binaries.
4848 SAVE_CFLAGS
="$CFLAGS"
4849 CFLAGS
="$CFLAGS -belf"
4850 echo "$as_me:$LINENO: checking whether the C compiler needs -belf" >&5
4851 echo $ECHO_N "checking whether the C compiler needs -belf... $ECHO_C" >&6
4852 if test "${lt_cv_cc_needs_belf+set}" = set; then
4853 echo $ECHO_N "(cached) $ECHO_C" >&6
4858 ac_cpp
='$CPP $CPPFLAGS'
4859 ac_compile
='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4860 ac_link
='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4861 ac_compiler_gnu
=$ac_cv_c_compiler_gnu
4863 if test x
$gcc_no_link = xyes
; then
4864 { { echo "$as_me:$LINENO: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&5
4865 echo "$as_me: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&2;}
4866 { (exit 1); exit 1; }; }
4868 cat >conftest.
$ac_ext <<_ACEOF
4871 cat confdefs.h
>>conftest.
$ac_ext
4872 cat >>conftest.
$ac_ext <<_ACEOF
4873 /* end confdefs.h. */
4883 rm -f conftest.
$ac_objext conftest
$ac_exeext
4884 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
4885 (eval $ac_link) 2>conftest.er1
4887 grep -v '^ *+' conftest.er1
>conftest.err
4889 cat conftest.err
>&5
4890 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4891 (exit $ac_status); } &&
4892 { ac_try
='test -z "$ac_c_werror_flag"
4893 || test ! -s conftest.err'
4894 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4897 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4898 (exit $ac_status); }; } &&
4899 { ac_try
='test -s conftest$ac_exeext'
4900 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4903 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4904 (exit $ac_status); }; }; then
4905 lt_cv_cc_needs_belf
=yes
4907 echo "$as_me: failed program was:" >&5
4908 sed 's/^/| /' conftest.
$ac_ext >&5
4910 lt_cv_cc_needs_belf
=no
4912 rm -f conftest.err conftest.
$ac_objext \
4913 conftest
$ac_exeext conftest.
$ac_ext
4915 ac_cpp
='$CPP $CPPFLAGS'
4916 ac_compile
='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4917 ac_link
='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4918 ac_compiler_gnu
=$ac_cv_c_compiler_gnu
4921 echo "$as_me:$LINENO: result: $lt_cv_cc_needs_belf" >&5
4922 echo "${ECHO_T}$lt_cv_cc_needs_belf" >&6
4923 if test x
"$lt_cv_cc_needs_belf" != x
"yes"; then
4924 # this is probably gcc 2.8.0, egcs 1.0 or newer; no need for -belf
4925 CFLAGS
="$SAVE_CFLAGS"
4933 # Save cache, so that ltconfig can load it
4934 cat >confcache
<<\_ACEOF
4935 # This file is a shell script that caches the results of configure
4936 # tests run on this system so they can be shared between configure
4937 # scripts and configure runs, see configure's option --config-cache.
4938 # It is not useful on other systems. If it contains results you don't
4939 # want to keep, you may remove or edit it.
4941 # config.status only pays attention to the cache file if you give it
4942 # the --recheck option to rerun configure.
4944 # `ac_cv_env_foo' variables (set or unset) will be overridden when
4945 # loading this file, other *unset* `ac_cv_foo' will be assigned the
4950 # The following way of writing the cache mishandles newlines in values,
4951 # but we know of no workaround that is simple, portable, and efficient.
4952 # So, don't put newlines in cache variables' values.
4953 # Ultrix sh set writes to stderr and can't be redirected directly,
4954 # and sets the high bit in the cache file unless we assign to the vars.
4957 case `(ac_space=' '; set | grep ac_space) 2>&1` in
4959 # `set' does not quote correctly, so add quotes (double-quote
4960 # substitution turns \\\\ into \\, and sed turns \\ into \).
4963 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p"
4966 # `set' quotes correctly as required by POSIX, so do not add quotes.
4968 "s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1=\\2/p"
4975 s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/
4977 /^ac_cv_env/!s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/
4979 if diff $cache_file confcache
>/dev
/null
2>&1; then :; else
4980 if test -w $cache_file; then
4981 test "x$cache_file" != "x/dev/null" && echo "updating cache $cache_file"
4982 cat confcache
>$cache_file
4984 echo "not updating unwritable cache $cache_file"
4989 # Actually configure libtool. ac_aux_dir is where install-sh is found.
4990 AR
="$AR" LTCC
="$CC" CC
="$CC" CFLAGS
="$CFLAGS" CPPFLAGS
="$CPPFLAGS" \
4991 MAGIC_CMD
="$MAGIC_CMD" LD
="$LD" LDFLAGS
="$LDFLAGS" LIBS
="$LIBS" \
4992 LN_S
="$LN_S" NM
="$NM" RANLIB
="$RANLIB" STRIP
="$STRIP" \
4993 AS
="$AS" DLLTOOL
="$DLLTOOL" OBJDUMP
="$OBJDUMP" \
4994 objext
="$OBJEXT" exeext
="$EXEEXT" reload_flag
="$reload_flag" \
4995 deplibs_check_method
="$deplibs_check_method" file_magic_cmd
="$file_magic_cmd" \
4996 ${CONFIG_SHELL-/bin/sh} $ac_aux_dir/ltconfig
--no-reexec \
4997 $libtool_flags --no-verify --build="$build" $ac_aux_dir/ltmain.sh
$host \
4998 ||
{ { echo "$as_me:$LINENO: error: libtool configure failed" >&5
4999 echo "$as_me: error: libtool configure failed" >&2;}
5000 { (exit 1); exit 1; }; }
5002 # Reload cache, that may have been modified by ltconfig
5003 if test -r "$cache_file"; then
5004 # Some versions of bash will fail to source /dev/null (special
5005 # files actually), so we avoid doing that.
5006 if test -f "$cache_file"; then
5007 { echo "$as_me:$LINENO: loading cache $cache_file" >&5
5008 echo "$as_me: loading cache $cache_file" >&6;}
5010 [\\/]* | ?
:[\\/]* ) .
$cache_file;;
5011 *) . .
/$cache_file;;
5015 { echo "$as_me:$LINENO: creating cache $cache_file" >&5
5016 echo "$as_me: creating cache $cache_file" >&6;}
5021 # This can be used to rebuild libtool when needed
5022 LIBTOOL_DEPS
="$ac_aux_dir/ltconfig $ac_aux_dir/ltmain.sh $ac_aux_dir/ltcf-c.sh"
5024 # Always use our own libtool.
5025 LIBTOOL
='$(SHELL) $(top_builddir)/libtool'
5027 # Redirect the config.log output again, so that the ltconfig log is not
5028 # clobbered by the next message.
5029 exec 5>>.
/config.log
5032 ac_cpp
='$CXXCPP $CPPFLAGS'
5033 ac_compile
='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
5034 ac_link
='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
5035 ac_compiler_gnu
=$ac_cv_cxx_compiler_gnu
5036 echo "$as_me:$LINENO: checking how to run the C++ preprocessor" >&5
5037 echo $ECHO_N "checking how to run the C++ preprocessor... $ECHO_C" >&6
5038 if test -z "$CXXCPP"; then
5039 if test "${ac_cv_prog_CXXCPP+set}" = set; then
5040 echo $ECHO_N "(cached) $ECHO_C" >&6
5042 # Double quotes because CXXCPP needs to be expanded
5043 for CXXCPP
in "$CXX -E" "/lib/cpp"
5046 for ac_cxx_preproc_warn_flag
in '' yes
5048 # Use a header file that comes with gcc, so configuring glibc
5049 # with a fresh cross-compiler works.
5050 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
5051 # <limits.h> exists even on freestanding compilers.
5052 # On the NeXT, cc -E runs the code through the compiler's parser,
5053 # not just through cpp. "Syntax error" is here to catch this case.
5054 cat >conftest.
$ac_ext <<_ACEOF
5057 cat confdefs.h
>>conftest.
$ac_ext
5058 cat >>conftest.
$ac_ext <<_ACEOF
5059 /* end confdefs.h. */
5061 # include <limits.h>
5063 # include <assert.h>
5067 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
5068 (eval $ac_cpp conftest.
$ac_ext) 2>conftest.er1
5070 grep -v '^ *+' conftest.er1
>conftest.err
5072 cat conftest.err
>&5
5073 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5074 (exit $ac_status); } >/dev
/null
; then
5075 if test -s conftest.err
; then
5076 ac_cpp_err
=$ac_cxx_preproc_warn_flag
5077 ac_cpp_err
=$ac_cpp_err$ac_cxx_werror_flag
5084 if test -z "$ac_cpp_err"; then
5087 echo "$as_me: failed program was:" >&5
5088 sed 's/^/| /' conftest.
$ac_ext >&5
5090 # Broken: fails on valid input.
5093 rm -f conftest.err conftest.
$ac_ext
5095 # OK, works on sane cases. Now check whether non-existent headers
5096 # can be detected and how.
5097 cat >conftest.
$ac_ext <<_ACEOF
5100 cat confdefs.h
>>conftest.
$ac_ext
5101 cat >>conftest.
$ac_ext <<_ACEOF
5102 /* end confdefs.h. */
5103 #include <ac_nonexistent.h>
5105 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
5106 (eval $ac_cpp conftest.
$ac_ext) 2>conftest.er1
5108 grep -v '^ *+' conftest.er1
>conftest.err
5110 cat conftest.err
>&5
5111 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5112 (exit $ac_status); } >/dev
/null
; then
5113 if test -s conftest.err
; then
5114 ac_cpp_err
=$ac_cxx_preproc_warn_flag
5115 ac_cpp_err
=$ac_cpp_err$ac_cxx_werror_flag
5122 if test -z "$ac_cpp_err"; then
5123 # Broken: success on invalid input.
5126 echo "$as_me: failed program was:" >&5
5127 sed 's/^/| /' conftest.
$ac_ext >&5
5129 # Passes both tests.
5133 rm -f conftest.err conftest.
$ac_ext
5136 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
5137 rm -f conftest.err conftest.
$ac_ext
5138 if $ac_preproc_ok; then
5143 ac_cv_prog_CXXCPP
=$CXXCPP
5146 CXXCPP
=$ac_cv_prog_CXXCPP
5148 ac_cv_prog_CXXCPP
=$CXXCPP
5150 echo "$as_me:$LINENO: result: $CXXCPP" >&5
5151 echo "${ECHO_T}$CXXCPP" >&6
5153 for ac_cxx_preproc_warn_flag
in '' yes
5155 # Use a header file that comes with gcc, so configuring glibc
5156 # with a fresh cross-compiler works.
5157 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
5158 # <limits.h> exists even on freestanding compilers.
5159 # On the NeXT, cc -E runs the code through the compiler's parser,
5160 # not just through cpp. "Syntax error" is here to catch this case.
5161 cat >conftest.
$ac_ext <<_ACEOF
5164 cat confdefs.h
>>conftest.
$ac_ext
5165 cat >>conftest.
$ac_ext <<_ACEOF
5166 /* end confdefs.h. */
5168 # include <limits.h>
5170 # include <assert.h>
5174 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
5175 (eval $ac_cpp conftest.
$ac_ext) 2>conftest.er1
5177 grep -v '^ *+' conftest.er1
>conftest.err
5179 cat conftest.err
>&5
5180 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5181 (exit $ac_status); } >/dev
/null
; then
5182 if test -s conftest.err
; then
5183 ac_cpp_err
=$ac_cxx_preproc_warn_flag
5184 ac_cpp_err
=$ac_cpp_err$ac_cxx_werror_flag
5191 if test -z "$ac_cpp_err"; then
5194 echo "$as_me: failed program was:" >&5
5195 sed 's/^/| /' conftest.
$ac_ext >&5
5197 # Broken: fails on valid input.
5200 rm -f conftest.err conftest.
$ac_ext
5202 # OK, works on sane cases. Now check whether non-existent headers
5203 # can be detected and how.
5204 cat >conftest.
$ac_ext <<_ACEOF
5207 cat confdefs.h
>>conftest.
$ac_ext
5208 cat >>conftest.
$ac_ext <<_ACEOF
5209 /* end confdefs.h. */
5210 #include <ac_nonexistent.h>
5212 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
5213 (eval $ac_cpp conftest.
$ac_ext) 2>conftest.er1
5215 grep -v '^ *+' conftest.er1
>conftest.err
5217 cat conftest.err
>&5
5218 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5219 (exit $ac_status); } >/dev
/null
; then
5220 if test -s conftest.err
; then
5221 ac_cpp_err
=$ac_cxx_preproc_warn_flag
5222 ac_cpp_err
=$ac_cpp_err$ac_cxx_werror_flag
5229 if test -z "$ac_cpp_err"; then
5230 # Broken: success on invalid input.
5233 echo "$as_me: failed program was:" >&5
5234 sed 's/^/| /' conftest.
$ac_ext >&5
5236 # Passes both tests.
5240 rm -f conftest.err conftest.
$ac_ext
5243 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
5244 rm -f conftest.err conftest.
$ac_ext
5245 if $ac_preproc_ok; then
5248 { { echo "$as_me:$LINENO: error: C++ preprocessor \"$CXXCPP\" fails sanity check
5249 See \`config.log' for more details." >&5
5250 echo "$as_me: error: C++ preprocessor \"$CXXCPP\" fails sanity check
5251 See \`config.log' for more details." >&2;}
5252 { (exit 1); exit 1; }; }
5256 ac_cpp
='$CPP $CPPFLAGS'
5257 ac_compile
='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
5258 ac_link
='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
5259 ac_compiler_gnu
=$ac_cv_c_compiler_gnu
5263 LIBTOOL_DEPS
=$LIBTOOL_DEPS" $ac_aux_dir/ltcf-cxx.sh"
5265 lt_save_CFLAGS
="$CFLAGS"
5266 AR
="$AR" LTCC
="$CC" CC
="$CXX" CXX
="$CXX" CFLAGS
="$CXXFLAGS" CPPFLAGS
="$CPPFLAGS" \
5267 MAGIC_CMD
="$MAGIC_CMD" LD
="$LD" LDFLAGS
="$LDFLAGS" LIBS
="$LIBS" \
5268 LN_S
="$LN_S" NM
="$NM" RANLIB
="$RANLIB" STRIP
="$STRIP" \
5269 AS
="$AS" DLLTOOL
="$DLLTOOL" OBJDUMP
="$OBJDUMP" \
5270 objext
="$OBJEXT" exeext
="$EXEEXT" reload_flag
="$reload_flag" \
5271 deplibs_check_method
="$deplibs_check_method" \
5272 file_magic_cmd
="$file_magic_cmd" \
5273 ${CONFIG_SHELL-/bin/sh} $ac_aux_dir/ltconfig
-o libtool
$libtool_flags \
5274 --build="$build" --add-tag=CXX
$ac_aux_dir/ltcf-cxx.sh
$host \
5275 ||
{ { echo "$as_me:$LINENO: error: libtool tag configuration failed" >&5
5276 echo "$as_me: error: libtool tag configuration failed" >&2;}
5277 { (exit 1); exit 1; }; }
5279 CFLAGS
="$lt_save_CFLAGS"
5281 # Redirect the config.log output again, so that the ltconfig log is not
5282 # clobbered by the next message.
5283 exec 5>>.
/config.log
5293 # Extract the first word of "$ac_prog", so it can be a program name with args.
5294 set dummy
$ac_prog; ac_word
=$2
5295 echo "$as_me:$LINENO: checking for $ac_word" >&5
5296 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
5297 if test "${ac_cv_prog_GCJ+set}" = set; then
5298 echo $ECHO_N "(cached) $ECHO_C" >&6
5300 if test -n "$GCJ"; then
5301 ac_cv_prog_GCJ
="$GCJ" # Let the user override the test.
5303 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
5307 test -z "$as_dir" && as_dir
=.
5308 for ac_exec_ext
in '' $ac_executable_extensions; do
5309 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5310 ac_cv_prog_GCJ
="$ac_prog"
5311 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5320 if test -n "$GCJ"; then
5321 echo "$as_me:$LINENO: result: $GCJ" >&5
5322 echo "${ECHO_T}$GCJ" >&6
5324 echo "$as_me:$LINENO: result: no" >&5
5325 echo "${ECHO_T}no" >&6
5328 test -n "$GCJ" && break
5330 test -n "$GCJ" || GCJ
="gcj"
5332 test -z "$GCJ" && { { echo "$as_me:$LINENO: error: no acceptable gcj found in \$PATH" >&5
5333 echo "$as_me: error: no acceptable gcj found in \$PATH" >&2;}
5334 { (exit 1); exit 1; }; }
5335 if test "x${GCJFLAGS-unset}" = xunset
; then
5340 depcc
="$GCJ" am_compiler_list
='gcc3 gcc'
5342 echo "$as_me:$LINENO: checking dependency style of $depcc" >&5
5343 echo $ECHO_N "checking dependency style of $depcc... $ECHO_C" >&6
5344 if test "${am_cv_GCJ_dependencies_compiler_type+set}" = set; then
5345 echo $ECHO_N "(cached) $ECHO_C" >&6
5347 if test -z "$AMDEP_TRUE" && test -f "$am_depcomp"; then
5348 # We make a subdir and do the tests there. Otherwise we can end up
5349 # making bogus files that we don't know about and never remove. For
5350 # instance it was reported that on HP-UX the gcc test will end up
5351 # making a dummy file named `D' -- because `-MD' means `put the output
5354 # Copy depcomp to subdir because otherwise we won't find it if we're
5355 # using a relative directory.
5356 cp "$am_depcomp" conftest.dir
5358 # We will build objects and dependencies in a subdirectory because
5359 # it helps to detect inapplicable dependency modes. For instance
5360 # both Tru64's cc and ICC support -MD to output dependencies as a
5361 # side effect of compilation, but ICC will put the dependencies in
5362 # the current directory while Tru64 will put them in the object
5366 am_cv_GCJ_dependencies_compiler_type
=none
5367 if test "$am_compiler_list" = ""; then
5368 am_compiler_list
=`sed -n 's/^#*\([a-zA-Z0-9]*\))$/\1/p' < ./depcomp`
5370 for depmode
in $am_compiler_list; do
5371 # Setup a source with many dependencies, because some compilers
5372 # like to wrap large dependency lists on column 80 (with \), and
5373 # we should not choose a depcomp mode which is confused by this.
5375 # We need to recreate these files for each test, as the compiler may
5376 # overwrite some of them when testing with obscure command lines.
5377 # This happens at least with the AIX C compiler.
5379 for i
in 1 2 3 4 5 6; do
5380 echo '#include "conftst'$i'.h"' >> sub
/conftest.c
5381 # Using `: > sub/conftst$i.h' creates only sub/conftst1.h with
5382 # Solaris 8's {/usr,}/bin/sh.
5383 touch sub
/conftst
$i.h
5385 echo "${am__include} ${am__quote}sub/conftest.Po${am__quote}" > confmf
5389 # after this tag, mechanisms are not by side-effect, so they'll
5390 # only be used when explicitly requested
5391 if test "x$enable_dependency_tracking" = xyes
; then
5399 # We check with `-c' and `-o' for the sake of the "dashmstdout"
5400 # mode. It turns out that the SunPro C++ compiler does not properly
5401 # handle `-M -o', and we need to detect this.
5402 if depmode
=$depmode \
5403 source=sub
/conftest.c object
=sub
/conftest.
${OBJEXT-o} \
5404 depfile
=sub
/conftest.Po tmpdepfile
=sub
/conftest.TPo \
5405 $SHELL .
/depcomp
$depcc -c -o sub
/conftest.
${OBJEXT-o} sub
/conftest.c \
5406 >/dev
/null
2>conftest.err
&&
5407 grep sub
/conftst6.h sub
/conftest.Po
> /dev
/null
2>&1 &&
5408 grep sub
/conftest.
${OBJEXT-o} sub
/conftest.Po
> /dev
/null
2>&1 &&
5409 ${MAKE-make} -s -f confmf
> /dev
/null
2>&1; then
5410 # icc doesn't choke on unknown options, it will just issue warnings
5411 # or remarks (even with -Werror). So we grep stderr for any message
5412 # that says an option was ignored or not supported.
5413 # When given -MP, icc 7.0 and 7.1 complain thusly:
5414 # icc: Command line warning: ignoring option '-M'; no argument required
5415 # The diagnosis changed in icc 8.0:
5416 # icc: Command line remark: option '-MP' not supported
5417 if (grep 'ignoring option' conftest.err ||
5418 grep 'not supported' conftest.err
) >/dev
/null
2>&1; then :; else
5419 am_cv_GCJ_dependencies_compiler_type
=$depmode
5428 am_cv_GCJ_dependencies_compiler_type
=none
5432 echo "$as_me:$LINENO: result: $am_cv_GCJ_dependencies_compiler_type" >&5
5433 echo "${ECHO_T}$am_cv_GCJ_dependencies_compiler_type" >&6
5434 GCJDEPMODE
=depmode
=$am_cv_GCJ_dependencies_compiler_type
5439 test "x$enable_dependency_tracking" != xno \
5440 && test "$am_cv_GCJ_dependencies_compiler_type" = gcc3
; then
5441 am__fastdepGCJ_TRUE
=
5442 am__fastdepGCJ_FALSE
='#'
5444 am__fastdepGCJ_TRUE
='#'
5445 am__fastdepGCJ_FALSE
=
5451 LIBTOOL_DEPS
=$LIBTOOL_DEPS" $ac_aux_dir/ltcf-gcj.sh"
5453 lt_save_CFLAGS
="$CFLAGS"
5454 AR
="$AR" LTCC
="$CC" CC
="$GCJ" CFLAGS
="$GCJFLAGS" CPPFLAGS
="$CPPFLAGS" \
5455 MAGIC_CMD
="$MAGIC_CMD" LD
="$LD" LDFLAGS
="$LDFLAGS" LIBS
="$LIBS" \
5456 LN_S
="$LN_S" NM
="$NM" RANLIB
="$RANLIB" STRIP
="$STRIP" \
5457 AS
="$AS" DLLTOOL
="$DLLTOOL" OBJDUMP
="$OBJDUMP" \
5458 objext
="$OBJEXT" exeext
="$EXEEXT" reload_flag
="$reload_flag" \
5459 deplibs_check_method
="$deplibs_check_method" \
5460 file_magic_cmd
="$file_magic_cmd" \
5461 ${CONFIG_SHELL-/bin/sh} $ac_aux_dir/ltconfig
-o libtool
$libtool_flags \
5462 --build="$build" --add-tag=GCJ
$ac_aux_dir/ltcf-gcj.sh
$host \
5463 ||
{ { echo "$as_me:$LINENO: error: libtool tag configuration failed" >&5
5464 echo "$as_me: error: libtool tag configuration failed" >&2;}
5465 { (exit 1); exit 1; }; }
5467 CFLAGS
="$lt_save_CFLAGS"
5469 # Redirect the config.log output again, so that the ltconfig log is not
5470 # clobbered by the next message.
5471 exec 5>>.
/config.log
5475 if test "x$CC" != xcc
; then
5476 echo "$as_me:$LINENO: checking whether $CC and cc understand -c and -o together" >&5
5477 echo $ECHO_N "checking whether $CC and cc understand -c and -o together... $ECHO_C" >&6
5479 echo "$as_me:$LINENO: checking whether cc understands -c and -o together" >&5
5480 echo $ECHO_N "checking whether cc understands -c and -o together... $ECHO_C" >&6
5482 set dummy
$CC; ac_cc
=`echo $2 |
5483 sed 's/[^a-zA-Z0-9_]/_/g;s/^[0-9]/_/'`
5484 if eval "test \"\${ac_cv_prog_cc_${ac_cc}_c_o+set}\" = set"; then
5485 echo $ECHO_N "(cached) $ECHO_C" >&6
5487 cat >conftest.
$ac_ext <<_ACEOF
5490 cat confdefs.h
>>conftest.
$ac_ext
5491 cat >>conftest.
$ac_ext <<_ACEOF
5492 /* end confdefs.h. */
5502 # Make sure it works both with $CC and with simple cc.
5503 # We do the test twice because some compilers refuse to overwrite an
5504 # existing .o file with -o, though they will create one.
5505 ac_try
='$CC -c conftest.$ac_ext -o conftest.$ac_objext >&5'
5506 if { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5509 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5510 (exit $ac_status); } &&
5511 test -f conftest.
$ac_objext && { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5514 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5515 (exit $ac_status); };
5517 eval ac_cv_prog_cc_
${ac_cc}_c_o
=yes
5518 if test "x$CC" != xcc
; then
5519 # Test first that cc exists at all.
5520 if { ac_try
='cc -c conftest.$ac_ext >&5'
5521 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5524 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5525 (exit $ac_status); }; }; then
5526 ac_try
='cc -c conftest.$ac_ext -o conftest.$ac_objext >&5'
5527 if { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5530 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5531 (exit $ac_status); } &&
5532 test -f conftest.
$ac_objext && { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5535 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5536 (exit $ac_status); };
5541 # cc exists but doesn't like -o.
5542 eval ac_cv_prog_cc_
${ac_cc}_c_o
=no
5547 eval ac_cv_prog_cc_
${ac_cc}_c_o
=no
5552 if eval "test \"`echo '$ac_cv_prog_cc_'${ac_cc}_c_o`\" = yes"; then
5553 echo "$as_me:$LINENO: result: yes" >&5
5554 echo "${ECHO_T}yes" >&6
5556 echo "$as_me:$LINENO: result: no" >&5
5557 echo "${ECHO_T}no" >&6
5559 cat >>confdefs.h
<<\_ACEOF
5560 #define NO_MINUS_C_MINUS_O 1
5565 # FIXME: we rely on the cache variable name because
5566 # there is no other way.
5568 ac_cc
=`echo $2 | sed 's/[^a-zA-Z0-9_]/_/g;s/^[0-9]/_/'`
5569 if eval "test \"`echo '$ac_cv_prog_cc_'${ac_cc}_c_o`\" != yes"; then
5570 # Losing compiler, so override with the script.
5571 # FIXME: It is wrong to rewrite CC.
5572 # But if we don't then we get into trouble of one sort or another.
5573 # A longer-term fix would be to have automake use am__CC in this case,
5574 # and then we could set am__CC="\$(top_srcdir)/compile \$(CC)"
5575 CC
="$am_aux_dir/compile $CC"
5580 subdirs
="$subdirs libltdl"
5583 # The -no-testsuite modules omit the test subdir.
5586 if test -d $srcdir/testsuite
; then
5588 TESTSUBDIR_FALSE
='#'
5595 # Should the runtime set system properties by examining the
5596 # environment variable GCJ_PROPERTIES?
5597 # Check whether --enable-getenv-properties or --disable-getenv-properties was given.
5598 if test "${enable_getenv_properties+set}" = set; then
5599 enableval
="$enable_getenv_properties"
5603 # Whether GCJ_PROPERTIES is used depends on the target.
5604 if test -z "$enable_getenv_properties"; then
5605 enable_getenv_properties
=${enable_getenv_properties_default-yes}
5607 if test "$enable_getenv_properties" = no
; then
5609 cat >>confdefs.h
<<\_ACEOF
5610 #define DISABLE_GETENV_PROPERTIES 1
5615 # Whether we should use arguments to main()
5616 if test -z "$enable_main_args"; then
5617 enable_main_args
=${enable_main_args_default-yes}
5619 if test "$enable_main_args" = no
; then
5621 cat >>confdefs.h
<<\_ACEOF
5622 #define DISABLE_MAIN_ARGS 1
5628 # Should we use hashtable-based synchronization?
5629 # Currently works only for Linux X86/ia64
5630 # Typically faster and more space-efficient
5631 # Check whether --enable-hash-synchronization or --disable-hash-synchronization was given.
5632 if test "${enable_hash_synchronization+set}" = set; then
5633 enableval
="$enable_hash_synchronization"
5637 if test -z "$enable_hash_synchronization"; then
5638 enable_hash_synchronization
=$enable_hash_synchronization_default
5642 # Check whether --with-java-home or --without-java-home was given.
5643 if test "${with_java_home+set}" = set; then
5644 withval
="$with_java_home"
5645 JAVA_HOME
="${withval}"
5651 if test ! -z "$JAVA_HOME"; then
5653 JAVA_HOME_SET_FALSE
='#'
5655 JAVA_HOME_SET_TRUE
='#'
5656 JAVA_HOME_SET_FALSE
=
5661 # What is the native OS API for MinGW?
5663 # Check whether --with-win32-nlsapi or --without-win32-nlsapi was given.
5664 if test "${with_win32_nlsapi+set}" = set; then
5665 withval
="$with_win32_nlsapi"
5666 case "${withval}" in
5667 ansi
) with_win32_nlsapi
=ansi
;;
5668 unicows
) with_win32_nlsapi
=unicows
;;
5669 unicode
) with_win32_nlsapi
=unicode
;;
5670 *) { { echo "$as_me:$LINENO: error: Bad value ${withval} for --with-win32-nlsapi." >&5
5671 echo "$as_me: error: Bad value ${withval} for --with-win32-nlsapi." >&2;}
5672 { (exit 1); exit 1; }; } ;;
5675 with_win32_nlsapi
=ansi
5678 case "${with_win32_nlsapi}" in
5681 cat >>confdefs.h
<<\_ACEOF
5682 #define MINGW_LIBGCJ_UNICODE 1
5688 # configure.host sets slow_pthread_self if the synchronization code should
5689 # try to avoid pthread_self calls by caching thread IDs in a hashtable.
5690 if test "${slow_pthread_self}" = "yes"; then
5692 cat >>confdefs.h
<<\_ACEOF
5693 #define SLOW_PTHREAD_SELF 1
5699 # See if the user has requested runtime debugging.
5702 # Check whether --enable-libgcj-debug or --disable-libgcj-debug was given.
5703 if test "${enable_libgcj_debug+set}" = set; then
5704 enableval
="$enable_libgcj_debug"
5705 if test "$enable_libgcj_debug" = yes; then
5707 cat >>confdefs.h
<<\_ACEOF
5715 # Check for gc debugging. This option is handled both here and in the GC.
5716 # Check whether --enable-gc-debug or --disable-gc-debug was given.
5717 if test "${enable_gc_debug+set}" = set; then
5718 enableval
="$enable_gc_debug"
5719 if test "$enable_gc_debug" = "yes"; then
5721 cat >>confdefs.h
<<\_ACEOF
5722 #define LIBGCJ_GC_DEBUG 1
5728 # See if the user has the interpreter included.
5729 # Check whether --enable-interpreter or --disable-interpreter was given.
5730 if test "${enable_interpreter+set}" = set; then
5731 enableval
="$enable_interpreter"
5732 if test "$enable_interpreter" = yes; then
5733 # This can also be set in configure.host.
5734 libgcj_interpreter
=yes
5735 elif test "$enable_interpreter" = no
; then
5736 libgcj_interpreter
=no
5740 if test "$libgcj_interpreter" = yes; then
5742 cat >>confdefs.h
<<\_ACEOF
5743 #define INTERPRETER 1
5747 INTERPRETER
="$libgcj_interpreter"
5750 echo "$as_me:$LINENO: checking for exception model to use" >&5
5751 echo $ECHO_N "checking for exception model to use... $ECHO_C" >&6
5753 ac_cpp
='$CXXCPP $CPPFLAGS'
5754 ac_compile
='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
5755 ac_link
='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
5756 ac_compiler_gnu
=$ac_cv_cxx_compiler_gnu
5758 # Check whether --enable-sjlj-exceptions or --disable-sjlj-exceptions was given.
5759 if test "${enable_sjlj_exceptions+set}" = set; then
5760 enableval
="$enable_sjlj_exceptions"
5763 cat > conftest.
$ac_ext << EOF
5764 #line 5764 "configure"
5773 old_CXXFLAGS
="$CXXFLAGS"
5775 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
5776 (eval $ac_compile) 2>&5
5778 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5779 (exit $ac_status); }; then
5780 if grep _Unwind_SjLj_Resume conftest.s
>/dev
/null
2>&1 ; then
5781 enable_sjlj_exceptions
=yes
5782 elif grep _Unwind_Resume conftest.s
>/dev
/null
2>&1 ; then
5783 enable_sjlj_exceptions
=no
5786 CXXFLAGS
="$old_CXXFLAGS"
5789 if test x
$enable_sjlj_exceptions = xyes
; then
5791 cat >>confdefs.h
<<\_ACEOF
5792 #define SJLJ_EXCEPTIONS 1
5795 ac_exception_model_name
=sjlj
5796 elif test x
$enable_sjlj_exceptions = xno
; then
5797 ac_exception_model_name
="call frame"
5799 { { echo "$as_me:$LINENO: error: unable to detect exception model" >&5
5800 echo "$as_me: error: unable to detect exception model" >&2;}
5801 { (exit 1); exit 1; }; }
5804 ac_cpp
='$CPP $CPPFLAGS'
5805 ac_compile
='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
5806 ac_link
='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
5807 ac_compiler_gnu
=$ac_cv_c_compiler_gnu
5809 echo "$as_me:$LINENO: result: $ac_exception_model_name" >&5
5810 echo "${ECHO_T}$ac_exception_model_name" >&6
5812 # If we are non using SJLJ exceptions, and this host does not have support
5813 # for unwinding from a signal handler, enable checked dereferences and divides.
5814 if test $can_unwind_signal = no
&& test $enable_sjlj_exceptions = no
; then
5815 CHECKREFSPEC
=-fcheck-references
5816 DIVIDESPEC
=-fuse-divide-subroutine
5820 # See if the user wants to disable java.net. This is the mildly
5821 # ugly way that we admit that target-side configuration sucks.
5822 # Check whether --enable-java-net or --disable-java-net was given.
5823 if test "${enable_java_net+set}" = set; then
5824 enableval
="$enable_java_net"
5828 # Whether java.net is built by default can depend on the target.
5829 if test -z "$enable_java_net"; then
5830 enable_java_net
=${enable_java_net_default-yes}
5832 if test "$enable_java_net" = no
; then
5834 cat >>confdefs.h
<<\_ACEOF
5835 #define DISABLE_JAVA_NET 1
5840 # See if the user wants to configure without libffi. Some
5841 # architectures don't support it, and default values are set in
5844 # Check whether --with-libffi or --without-libffi was given.
5845 if test "${with_libffi+set}" = set; then
5846 withval
="$with_libffi"
5849 with_libffi
=${with_libffi_default-yes}
5854 if test "$with_libffi" != no
; then
5856 cat >>confdefs.h
<<\_ACEOF
5857 #define USE_LIBFFI 1
5860 LIBFFI
=..
/libffi
/libffi_convenience.la
5861 LIBFFIINCS
='-I$(top_srcdir)/../libffi/include -I../libffi/include'
5866 # See if the user wants to disable JVMPI support.
5867 # Check whether --enable-jvmpi or --disable-jvmpi was given.
5868 if test "${enable_jvmpi+set}" = set; then
5869 enableval
="$enable_jvmpi"
5873 if test "$enable_jvmpi" != no
; then
5875 cat >>confdefs.h
<<\_ACEOF
5876 #define ENABLE_JVMPI 1
5881 # If the target is an eCos system, use the appropriate eCos
5883 # FIXME: this should not be a local option but a global target
5884 # system; at present there is no eCos target.
5885 TARGET_ECOS
=${PROCESS-"no"}
5887 # Check whether --with-ecos or --without-ecos was given.
5888 if test "${with_ecos+set}" = set; then
5889 withval
="$with_ecos"
5890 TARGET_ECOS
="$with_ecos"
5896 PLATFORM_INNER_NAT_HDRS
=
5897 case "$TARGET_ECOS" in
5904 echo "$as_me:$LINENO: checking whether 'ld' is at least 2.13" >&5
5905 echo $ECHO_N "checking whether 'ld' is at least 2.13... $ECHO_C" >&6
5906 LD_PROG
=`$CC --print-prog-name=ld`
5907 LD_VERSION
=`$LD_PROG --version`
5908 LD_VERSION_MAJOR
=`echo "$LD_VERSION" | head -1 | cut -d '.' -f 1 | cut -d ' ' -f 4`
5909 LD_VERSION_MINOR
=`echo "$LD_VERSION" | head -1 | cut -d '.' -f 2`
5910 if expr "$LD_VERSION_MAJOR" \
> 2 > /dev
/null
; then
5913 if expr "$LD_VERSION_MAJOR" = 2 && expr "$LD_VERSION_MINOR" \
>= 13 > /dev
/null
; then
5917 if test "x$LD_OK" != x
; then
5918 echo "$as_me:$LINENO: result: yes; major=$LD_VERSION_MAJOR, minor=$LD_VERSION_MINOR" >&5
5919 echo "${ECHO_T}yes; major=$LD_VERSION_MAJOR, minor=$LD_VERSION_MINOR" >&6
5921 echo "$as_me:$LINENO: result: no; major=$LD_VERSION_MAJOR, minor=$LD_VERSION_MINOR" >&5
5922 echo "${ECHO_T}no; major=$LD_VERSION_MAJOR, minor=$LD_VERSION_MINOR" >&6
5923 { echo "$as_me:$LINENO: WARNING: ld <2.13 detected; enabling JV_LINKER_CANNOT_8BYTE_ALIGN_STATICS hack..." >&5
5924 echo "$as_me: WARNING: ld <2.13 detected; enabling JV_LINKER_CANNOT_8BYTE_ALIGN_STATICS hack..." >&2;}
5926 cat >>confdefs.h
<<\_ACEOF
5927 #define JV_LINKER_CANNOT_8BYTE_ALIGN_STATICS 1
5936 PLATFORM_INNER_NAT_HDRS
='java/lang/ConcreteProcess$$ProcessManager.h'
5944 cat >>confdefs.h
<<\_ACEOF
5952 ac_config_links
="$ac_config_links include/platform.h:include/$PLATFORMH"
5956 ac_cpp
='$CPP $CPPFLAGS'
5957 ac_compile
='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
5958 ac_link
='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
5959 ac_compiler_gnu
=$ac_cv_c_compiler_gnu
5960 echo "$as_me:$LINENO: checking how to run the C preprocessor" >&5
5961 echo $ECHO_N "checking how to run the C preprocessor... $ECHO_C" >&6
5962 # On Suns, sometimes $CPP names a directory.
5963 if test -n "$CPP" && test -d "$CPP"; then
5966 if test -z "$CPP"; then
5967 if test "${ac_cv_prog_CPP+set}" = set; then
5968 echo $ECHO_N "(cached) $ECHO_C" >&6
5970 # Double quotes because CPP needs to be expanded
5971 for CPP
in "$CC -E" "$CC -E -traditional-cpp" "/lib/cpp"
5974 for ac_c_preproc_warn_flag
in '' yes
5976 # Use a header file that comes with gcc, so configuring glibc
5977 # with a fresh cross-compiler works.
5978 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
5979 # <limits.h> exists even on freestanding compilers.
5980 # On the NeXT, cc -E runs the code through the compiler's parser,
5981 # not just through cpp. "Syntax error" is here to catch this case.
5982 cat >conftest.
$ac_ext <<_ACEOF
5985 cat confdefs.h
>>conftest.
$ac_ext
5986 cat >>conftest.
$ac_ext <<_ACEOF
5987 /* end confdefs.h. */
5989 # include <limits.h>
5991 # include <assert.h>
5995 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
5996 (eval $ac_cpp conftest.
$ac_ext) 2>conftest.er1
5998 grep -v '^ *+' conftest.er1
>conftest.err
6000 cat conftest.err
>&5
6001 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6002 (exit $ac_status); } >/dev
/null
; then
6003 if test -s conftest.err
; then
6004 ac_cpp_err
=$ac_c_preproc_warn_flag
6005 ac_cpp_err
=$ac_cpp_err$ac_c_werror_flag
6012 if test -z "$ac_cpp_err"; then
6015 echo "$as_me: failed program was:" >&5
6016 sed 's/^/| /' conftest.
$ac_ext >&5
6018 # Broken: fails on valid input.
6021 rm -f conftest.err conftest.
$ac_ext
6023 # OK, works on sane cases. Now check whether non-existent headers
6024 # can be detected and how.
6025 cat >conftest.
$ac_ext <<_ACEOF
6028 cat confdefs.h
>>conftest.
$ac_ext
6029 cat >>conftest.
$ac_ext <<_ACEOF
6030 /* end confdefs.h. */
6031 #include <ac_nonexistent.h>
6033 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
6034 (eval $ac_cpp conftest.
$ac_ext) 2>conftest.er1
6036 grep -v '^ *+' conftest.er1
>conftest.err
6038 cat conftest.err
>&5
6039 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6040 (exit $ac_status); } >/dev
/null
; then
6041 if test -s conftest.err
; then
6042 ac_cpp_err
=$ac_c_preproc_warn_flag
6043 ac_cpp_err
=$ac_cpp_err$ac_c_werror_flag
6050 if test -z "$ac_cpp_err"; then
6051 # Broken: success on invalid input.
6054 echo "$as_me: failed program was:" >&5
6055 sed 's/^/| /' conftest.
$ac_ext >&5
6057 # Passes both tests.
6061 rm -f conftest.err conftest.
$ac_ext
6064 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
6065 rm -f conftest.err conftest.
$ac_ext
6066 if $ac_preproc_ok; then
6078 echo "$as_me:$LINENO: result: $CPP" >&5
6079 echo "${ECHO_T}$CPP" >&6
6081 for ac_c_preproc_warn_flag
in '' yes
6083 # Use a header file that comes with gcc, so configuring glibc
6084 # with a fresh cross-compiler works.
6085 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
6086 # <limits.h> exists even on freestanding compilers.
6087 # On the NeXT, cc -E runs the code through the compiler's parser,
6088 # not just through cpp. "Syntax error" is here to catch this case.
6089 cat >conftest.
$ac_ext <<_ACEOF
6092 cat confdefs.h
>>conftest.
$ac_ext
6093 cat >>conftest.
$ac_ext <<_ACEOF
6094 /* end confdefs.h. */
6096 # include <limits.h>
6098 # include <assert.h>
6102 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
6103 (eval $ac_cpp conftest.
$ac_ext) 2>conftest.er1
6105 grep -v '^ *+' conftest.er1
>conftest.err
6107 cat conftest.err
>&5
6108 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6109 (exit $ac_status); } >/dev
/null
; then
6110 if test -s conftest.err
; then
6111 ac_cpp_err
=$ac_c_preproc_warn_flag
6112 ac_cpp_err
=$ac_cpp_err$ac_c_werror_flag
6119 if test -z "$ac_cpp_err"; then
6122 echo "$as_me: failed program was:" >&5
6123 sed 's/^/| /' conftest.
$ac_ext >&5
6125 # Broken: fails on valid input.
6128 rm -f conftest.err conftest.
$ac_ext
6130 # OK, works on sane cases. Now check whether non-existent headers
6131 # can be detected and how.
6132 cat >conftest.
$ac_ext <<_ACEOF
6135 cat confdefs.h
>>conftest.
$ac_ext
6136 cat >>conftest.
$ac_ext <<_ACEOF
6137 /* end confdefs.h. */
6138 #include <ac_nonexistent.h>
6140 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
6141 (eval $ac_cpp conftest.
$ac_ext) 2>conftest.er1
6143 grep -v '^ *+' conftest.er1
>conftest.err
6145 cat conftest.err
>&5
6146 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6147 (exit $ac_status); } >/dev
/null
; then
6148 if test -s conftest.err
; then
6149 ac_cpp_err
=$ac_c_preproc_warn_flag
6150 ac_cpp_err
=$ac_cpp_err$ac_c_werror_flag
6157 if test -z "$ac_cpp_err"; then
6158 # Broken: success on invalid input.
6161 echo "$as_me: failed program was:" >&5
6162 sed 's/^/| /' conftest.
$ac_ext >&5
6164 # Passes both tests.
6168 rm -f conftest.err conftest.
$ac_ext
6171 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
6172 rm -f conftest.err conftest.
$ac_ext
6173 if $ac_preproc_ok; then
6176 { { echo "$as_me:$LINENO: error: C preprocessor \"$CPP\" fails sanity check
6177 See \`config.log' for more details." >&5
6178 echo "$as_me: error: C preprocessor \"$CPP\" fails sanity check
6179 See \`config.log' for more details." >&2;}
6180 { (exit 1); exit 1; }; }
6184 ac_cpp
='$CPP $CPPFLAGS'
6185 ac_compile
='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
6186 ac_link
='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
6187 ac_compiler_gnu
=$ac_cv_c_compiler_gnu
6190 echo "$as_me:$LINENO: checking for egrep" >&5
6191 echo $ECHO_N "checking for egrep... $ECHO_C" >&6
6192 if test "${ac_cv_prog_egrep+set}" = set; then
6193 echo $ECHO_N "(cached) $ECHO_C" >&6
6195 if echo a |
(grep -E '(a|b)') >/dev
/null
2>&1
6196 then ac_cv_prog_egrep
='grep -E'
6197 else ac_cv_prog_egrep
='egrep'
6200 echo "$as_me:$LINENO: result: $ac_cv_prog_egrep" >&5
6201 echo "${ECHO_T}$ac_cv_prog_egrep" >&6
6202 EGREP
=$ac_cv_prog_egrep
6205 cat >conftest.
$ac_ext <<_ACEOF
6208 cat confdefs.h
>>conftest.
$ac_ext
6209 cat >>conftest.
$ac_ext <<_ACEOF
6210 /* end confdefs.h. */
6214 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
6215 $EGREP "uint32_t" >/dev
/null
2>&1; then
6217 cat >>confdefs.h
<<\_ACEOF
6218 #define HAVE_INT32_DEFINED 1
6224 cat >conftest.
$ac_ext <<_ACEOF
6227 cat confdefs.h
>>conftest.
$ac_ext
6228 cat >>conftest.
$ac_ext <<_ACEOF
6229 /* end confdefs.h. */
6230 #include <inttypes.h>
6233 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
6234 $EGREP "uint32_t" >/dev
/null
2>&1; then
6236 cat >>confdefs.h
<<\_ACEOF
6237 #define HAVE_INT32_DEFINED 1
6243 cat >conftest.
$ac_ext <<_ACEOF
6246 cat confdefs.h
>>conftest.
$ac_ext
6247 cat >>conftest.
$ac_ext <<_ACEOF
6248 /* end confdefs.h. */
6249 #include <sys/types.h>
6252 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
6253 $EGREP "u_int32_t" >/dev
/null
2>&1; then
6255 cat >>confdefs.h
<<\_ACEOF
6256 #define HAVE_BSD_INT32_DEFINED 1
6262 cat >conftest.
$ac_ext <<_ACEOF
6265 cat confdefs.h
>>conftest.
$ac_ext
6266 cat >>conftest.
$ac_ext <<_ACEOF
6267 /* end confdefs.h. */
6268 #include <sys/config.h>
6271 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
6272 $EGREP "u_int32_t" >/dev
/null
2>&1; then
6274 cat >>confdefs.h
<<\_ACEOF
6275 #define HAVE_BSD_INT32_DEFINED 1
6284 if test "$PLATFORM" = Win32
; then
6285 USING_WIN32_PLATFORM_TRUE
=
6286 USING_WIN32_PLATFORM_FALSE
='#'
6288 USING_WIN32_PLATFORM_TRUE
='#'
6289 USING_WIN32_PLATFORM_FALSE
=
6294 if test "$PLATFORM" = Posix
; then
6295 USING_POSIX_PLATFORM_TRUE
=
6296 USING_POSIX_PLATFORM_FALSE
='#'
6298 USING_POSIX_PLATFORM_TRUE
='#'
6299 USING_POSIX_PLATFORM_FALSE
=
6304 if test "$PLATFORM" = Ecos
; then
6305 USING_ECOS_PLATFORM_TRUE
=
6306 USING_ECOS_PLATFORM_FALSE
='#'
6308 USING_ECOS_PLATFORM_TRUE
='#'
6309 USING_ECOS_PLATFORM_FALSE
=
6314 *-darwin*) DARWIN_CRT
=true
;;
6315 *) DARWIN_CRT
=false
;;
6319 if $DARWIN_CRT; then
6320 USING_DARWIN_CRT_TRUE
=
6321 USING_DARWIN_CRT_FALSE
='#'
6323 USING_DARWIN_CRT_TRUE
='#'
6324 USING_DARWIN_CRT_FALSE
=
6328 # These may not be defined in a non-ANS conformant embedded system.
6329 # FIXME: Should these case a runtime exception in that case?
6330 cat >conftest.
$ac_ext <<_ACEOF
6333 cat confdefs.h
>>conftest.
$ac_ext
6334 cat >>conftest.
$ac_ext <<_ACEOF
6335 /* end confdefs.h. */
6339 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
6340 $EGREP "mktime" >/dev
/null
2>&1; then
6342 cat >>confdefs.h
<<\_ACEOF
6343 #define HAVE_MKTIME 1
6349 cat >conftest.
$ac_ext <<_ACEOF
6352 cat confdefs.h
>>conftest.
$ac_ext
6353 cat >>conftest.
$ac_ext <<_ACEOF
6354 /* end confdefs.h. */
6358 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
6359 $EGREP "localtime" >/dev
/null
2>&1; then
6361 cat >>confdefs.h
<<\_ACEOF
6362 #define HAVE_LOCALTIME 1
6369 # Create the subdirectory for natFile.cc, or the attempt
6370 # to create the link will fail.
6371 test -d java || mkdir java
6372 test -d java
/io || mkdir java
/io
6373 test -d gnu || mkdir gnu
6374 ac_config_links
="$ac_config_links java/io/natFile.cc:java/io/natFile${FILE-${PLATFORM}}.cc"
6377 # Likewise for ConcreteProcess.java and natConcreteProcess.cc.
6378 test -d java
/lang || mkdir java
/lang
6379 ac_config_links
="$ac_config_links java/lang/ConcreteProcess.java:java/lang/${PLATFORM}Process.java"
6381 ac_config_links
="$ac_config_links java/lang/natConcreteProcess.cc:java/lang/nat${PLATFORM}Process.cc"
6384 # Likewise for natInetAddress.cc and natNetworkInterface.cc.
6385 test -d java
/net || mkdir java
/net
6386 ac_config_links
="$ac_config_links java/net/natInetAddress.cc:java/net/natInetAddress${PLATFORMNET}.cc"
6388 ac_config_links
="$ac_config_links java/net/natNetworkInterface.cc:java/net/natNetworkInterface${PLATFORMNET}.cc"
6391 # Likewise for natPlainSocketImpl.cc and natPlainDatagramSocketImpl.cc.
6392 test -d gnu
/java || mkdir gnu
/java
6393 test -d gnu
/java
/net || mkdir gnu
/java
/net
6394 ac_config_links
="$ac_config_links gnu/java/net/natPlainSocketImpl.cc:gnu/java/net/natPlainSocketImpl${PLATFORMNET}.cc"
6396 ac_config_links
="$ac_config_links gnu/java/net/natPlainDatagramSocketImpl.cc:gnu/java/net/natPlainDatagramSocketImpl${PLATFORMNET}.cc"
6399 # Likewise for natPipeImpl.cc and natSelectorImpl.cc.
6400 test -d gnu
/java
/nio || mkdir gnu
/java
/nio
6401 ac_config_links
="$ac_config_links gnu/java/nio/natPipeImpl.cc:gnu/java/nio/natPipeImpl${PLATFORM}.cc"
6403 ac_config_links
="$ac_config_links gnu/java/nio/natSelectorImpl.cc:gnu/java/nio/natSelectorImpl${PLATFORM}.cc"
6405 test -d gnu
/java
/nio
/channels || mkdir gnu
/java
/nio
/channels
6406 ac_config_links
="$ac_config_links gnu/java/nio/channels/natFileChannelImpl.cc:gnu/java/nio/channels/natFileChannel${FILE-${PLATFORM}}.cc"
6411 SYSTEMSPEC
="-lgdi32 -lws2_32"
6412 if test "${with_win32_nlsapi}" = "unicows"; then
6413 SYSTEMSPEC
="-lunicows $SYSTEMSPEC"
6422 LIBGCJTESTSPEC
="-L`${PWDCMD-pwd}`/.libs -rpath `${PWDCMD-pwd}`/.libs"
6426 # Check whether --with-system-zlib or --without-system-zlib was given.
6427 if test "${with_system_zlib+set}" = set; then
6428 withval
="$with_system_zlib"
6436 echo "$as_me:$LINENO: checking for X" >&5
6437 echo $ECHO_N "checking for X... $ECHO_C" >&6
6440 # Check whether --with-x or --without-x was given.
6441 if test "${with_x+set}" = set; then
6445 # $have_x is `yes', `no', `disabled', or empty when we do not yet know.
6446 if test "x$with_x" = xno
; then
6447 # The user explicitly disabled X.
6450 if test "x$x_includes" != xNONE
&& test "x$x_libraries" != xNONE
; then
6451 # Both variables are already set.
6454 if test "${ac_cv_have_x+set}" = set; then
6455 echo $ECHO_N "(cached) $ECHO_C" >&6
6457 # One or both of the vars are not set, and there is no cached value.
6458 ac_x_includes
=no ac_x_libraries
=no
6460 if mkdir conftest.dir
; then
6462 # Make sure to not put "make" in the Imakefile rules, since we grep it out.
6463 cat >Imakefile
<<'_ACEOF'
6465 @echo 'ac_im_incroot="${INCROOT}"; ac_im_usrlibdir="${USRLIBDIR}"; ac_im_libdir="${LIBDIR}"'
6467 if (xmkmf
) >/dev
/null
2>/dev
/null
&& test -f Makefile
; then
6468 # GNU make sometimes prints "make[1]: Entering...", which would confuse us.
6469 eval `${MAKE-make} acfindx 2>/dev/null | grep -v make`
6470 # Open Windows xmkmf reportedly sets LIBDIR instead of USRLIBDIR.
6471 for ac_extension
in a so sl
; do
6472 if test ! -f $ac_im_usrlibdir/libX11.
$ac_extension &&
6473 test -f $ac_im_libdir/libX11.
$ac_extension; then
6474 ac_im_usrlibdir
=$ac_im_libdir; break
6477 # Screen out bogus values from the imake configuration. They are
6478 # bogus both because they are the default anyway, and because
6479 # using them would break gcc on systems where it needs fixed includes.
6480 case $ac_im_incroot in
6482 *) test -f "$ac_im_incroot/X11/Xos.h" && ac_x_includes
=$ac_im_incroot;;
6484 case $ac_im_usrlibdir in
6486 *) test -d "$ac_im_usrlibdir" && ac_x_libraries
=$ac_im_usrlibdir ;;
6493 # Standard set of common directories for X headers.
6494 # Check X11 before X11Rn because it is often a symlink to the current release.
6506 /usr/local/X11/include
6507 /usr/local/X11R6/include
6508 /usr/local/X11R5/include
6509 /usr/local/X11R4/include
6511 /usr/local/include/X11
6512 /usr/local/include/X11R6
6513 /usr/local/include/X11R5
6514 /usr/local/include/X11R4
6518 /usr/XFree86/include/X11
6522 /usr/unsupported/include
6524 /usr/local/x11r5/include
6525 /usr/lpp/Xamples/include
6527 /usr/openwin/include
6528 /usr/openwin/share/include'
6530 if test "$ac_x_includes" = no
; then
6531 # Guess where to find include files, by looking for Intrinsic.h.
6532 # First, try using that file with no special directory specified.
6533 cat >conftest.
$ac_ext <<_ACEOF
6536 cat confdefs.h
>>conftest.
$ac_ext
6537 cat >>conftest.
$ac_ext <<_ACEOF
6538 /* end confdefs.h. */
6539 #include <X11/Intrinsic.h>
6541 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
6542 (eval $ac_cpp conftest.
$ac_ext) 2>conftest.er1
6544 grep -v '^ *+' conftest.er1
>conftest.err
6546 cat conftest.err
>&5
6547 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6548 (exit $ac_status); } >/dev
/null
; then
6549 if test -s conftest.err
; then
6550 ac_cpp_err
=$ac_c_preproc_warn_flag
6551 ac_cpp_err
=$ac_cpp_err$ac_c_werror_flag
6558 if test -z "$ac_cpp_err"; then
6559 # We can compile using X headers with no special include directory.
6562 echo "$as_me: failed program was:" >&5
6563 sed 's/^/| /' conftest.
$ac_ext >&5
6565 for ac_dir
in $ac_x_header_dirs; do
6566 if test -r "$ac_dir/X11/Intrinsic.h"; then
6567 ac_x_includes
=$ac_dir
6572 rm -f conftest.err conftest.
$ac_ext
6573 fi # $ac_x_includes = no
6575 if test "$ac_x_libraries" = no
; then
6576 # Check for the libraries.
6577 # See if we find them without any special options.
6578 # Don't add to $LIBS permanently.
6581 if test x
$gcc_no_link = xyes
; then
6582 { { echo "$as_me:$LINENO: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&5
6583 echo "$as_me: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&2;}
6584 { (exit 1); exit 1; }; }
6586 cat >conftest.
$ac_ext <<_ACEOF
6589 cat confdefs.h
>>conftest.
$ac_ext
6590 cat >>conftest.
$ac_ext <<_ACEOF
6591 /* end confdefs.h. */
6592 #include <X11/Intrinsic.h>
6601 rm -f conftest.
$ac_objext conftest
$ac_exeext
6602 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
6603 (eval $ac_link) 2>conftest.er1
6605 grep -v '^ *+' conftest.er1
>conftest.err
6607 cat conftest.err
>&5
6608 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6609 (exit $ac_status); } &&
6610 { ac_try
='test -z "$ac_c_werror_flag"
6611 || test ! -s conftest.err'
6612 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6615 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6616 (exit $ac_status); }; } &&
6617 { ac_try
='test -s conftest$ac_exeext'
6618 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6621 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6622 (exit $ac_status); }; }; then
6624 # We can link X programs with no special library path.
6627 echo "$as_me: failed program was:" >&5
6628 sed 's/^/| /' conftest.
$ac_ext >&5
6631 for ac_dir
in `echo "$ac_x_includes $ac_x_header_dirs" | sed s/include/lib/g`
6633 # Don't even attempt the hair of trying to link an X program!
6634 for ac_extension
in a so sl
; do
6635 if test -r $ac_dir/libXt.
$ac_extension; then
6636 ac_x_libraries
=$ac_dir
6642 rm -f conftest.err conftest.
$ac_objext \
6643 conftest
$ac_exeext conftest.
$ac_ext
6644 fi # $ac_x_libraries = no
6646 if test "$ac_x_includes" = no ||
test "$ac_x_libraries" = no
; then
6647 # Didn't find X anywhere. Cache the known absence of X.
6648 ac_cv_have_x
="have_x=no"
6650 # Record where we found X for the cache.
6651 ac_cv_have_x
="have_x=yes \
6652 ac_x_includes=$ac_x_includes ac_x_libraries=$ac_x_libraries"
6657 eval "$ac_cv_have_x"
6660 if test "$have_x" != yes; then
6661 echo "$as_me:$LINENO: result: $have_x" >&5
6662 echo "${ECHO_T}$have_x" >&6
6665 # If each of the values was on the command line, it overrides each guess.
6666 test "x$x_includes" = xNONE
&& x_includes
=$ac_x_includes
6667 test "x$x_libraries" = xNONE
&& x_libraries
=$ac_x_libraries
6668 # Update the cache value to reflect the command line values.
6669 ac_cv_have_x
="have_x=yes \
6670 ac_x_includes=$x_includes ac_x_libraries=$x_libraries"
6671 echo "$as_me:$LINENO: result: libraries $x_libraries, headers $x_includes" >&5
6672 echo "${ECHO_T}libraries $x_libraries, headers $x_includes" >&6
6675 if test "$no_x" = yes; then
6676 # Not all programs may use this symbol, but it does not hurt to define it.
6678 cat >>confdefs.h
<<\_ACEOF
6679 #define X_DISPLAY_MISSING 1
6682 X_CFLAGS
= X_PRE_LIBS
= X_LIBS
= X_EXTRA_LIBS
=
6684 if test -n "$x_includes"; then
6685 X_CFLAGS
="$X_CFLAGS -I$x_includes"
6688 # It would also be nice to do this for all -L options, not just this one.
6689 if test -n "$x_libraries"; then
6690 X_LIBS
="$X_LIBS -L$x_libraries"
6691 # For Solaris; some versions of Sun CC require a space after -R and
6692 # others require no space. Words are not sufficient . . . .
6693 case `(uname -sr) 2>/dev/null` in
6695 echo "$as_me:$LINENO: checking whether -R must be followed by a space" >&5
6696 echo $ECHO_N "checking whether -R must be followed by a space... $ECHO_C" >&6
6697 ac_xsave_LIBS
=$LIBS; LIBS
="$LIBS -R$x_libraries"
6698 if test x
$gcc_no_link = xyes
; then
6699 { { echo "$as_me:$LINENO: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&5
6700 echo "$as_me: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&2;}
6701 { (exit 1); exit 1; }; }
6703 cat >conftest.
$ac_ext <<_ACEOF
6706 cat confdefs.h
>>conftest.
$ac_ext
6707 cat >>conftest.
$ac_ext <<_ACEOF
6708 /* end confdefs.h. */
6718 rm -f conftest.
$ac_objext conftest
$ac_exeext
6719 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
6720 (eval $ac_link) 2>conftest.er1
6722 grep -v '^ *+' conftest.er1
>conftest.err
6724 cat conftest.err
>&5
6725 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6726 (exit $ac_status); } &&
6727 { ac_try
='test -z "$ac_c_werror_flag"
6728 || test ! -s conftest.err'
6729 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6732 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6733 (exit $ac_status); }; } &&
6734 { ac_try
='test -s conftest$ac_exeext'
6735 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6738 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6739 (exit $ac_status); }; }; then
6742 echo "$as_me: failed program was:" >&5
6743 sed 's/^/| /' conftest.
$ac_ext >&5
6747 rm -f conftest.err conftest.
$ac_objext \
6748 conftest
$ac_exeext conftest.
$ac_ext
6749 if test $ac_R_nospace = yes; then
6750 echo "$as_me:$LINENO: result: no" >&5
6751 echo "${ECHO_T}no" >&6
6752 X_LIBS
="$X_LIBS -R$x_libraries"
6754 LIBS
="$ac_xsave_LIBS -R $x_libraries"
6755 if test x
$gcc_no_link = xyes
; then
6756 { { echo "$as_me:$LINENO: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&5
6757 echo "$as_me: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&2;}
6758 { (exit 1); exit 1; }; }
6760 cat >conftest.
$ac_ext <<_ACEOF
6763 cat confdefs.h
>>conftest.
$ac_ext
6764 cat >>conftest.
$ac_ext <<_ACEOF
6765 /* end confdefs.h. */
6775 rm -f conftest.
$ac_objext conftest
$ac_exeext
6776 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
6777 (eval $ac_link) 2>conftest.er1
6779 grep -v '^ *+' conftest.er1
>conftest.err
6781 cat conftest.err
>&5
6782 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6783 (exit $ac_status); } &&
6784 { ac_try
='test -z "$ac_c_werror_flag"
6785 || test ! -s conftest.err'
6786 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6789 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6790 (exit $ac_status); }; } &&
6791 { ac_try
='test -s conftest$ac_exeext'
6792 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6795 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6796 (exit $ac_status); }; }; then
6799 echo "$as_me: failed program was:" >&5
6800 sed 's/^/| /' conftest.
$ac_ext >&5
6804 rm -f conftest.err conftest.
$ac_objext \
6805 conftest
$ac_exeext conftest.
$ac_ext
6806 if test $ac_R_space = yes; then
6807 echo "$as_me:$LINENO: result: yes" >&5
6808 echo "${ECHO_T}yes" >&6
6809 X_LIBS
="$X_LIBS -R $x_libraries"
6811 echo "$as_me:$LINENO: result: neither works" >&5
6812 echo "${ECHO_T}neither works" >&6
6819 # Check for system-dependent libraries X programs must link with.
6820 # Do this before checking for the system-independent R6 libraries
6821 # (-lICE), since we may need -lsocket or whatever for X linking.
6823 if test "$ISC" = yes; then
6824 X_EXTRA_LIBS
="$X_EXTRA_LIBS -lnsl_s -linet"
6826 # Martyn Johnson says this is needed for Ultrix, if the X
6827 # libraries were built with DECnet support. And Karl Berry says
6828 # the Alpha needs dnet_stub (dnet does not exist).
6829 ac_xsave_LIBS
="$LIBS"; LIBS
="$LIBS $X_LIBS -lX11"
6830 if test x
$gcc_no_link = xyes
; then
6831 { { echo "$as_me:$LINENO: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&5
6832 echo "$as_me: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&2;}
6833 { (exit 1); exit 1; }; }
6835 cat >conftest.
$ac_ext <<_ACEOF
6838 cat confdefs.h
>>conftest.
$ac_ext
6839 cat >>conftest.
$ac_ext <<_ACEOF
6840 /* end confdefs.h. */
6842 /* Override any gcc2 internal prototype to avoid an error. */
6846 /* We use char because int might match the return type of a gcc2
6847 builtin and then its argument prototype would still apply. */
6848 char XOpenDisplay ();
6857 rm -f conftest.
$ac_objext conftest
$ac_exeext
6858 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
6859 (eval $ac_link) 2>conftest.er1
6861 grep -v '^ *+' conftest.er1
>conftest.err
6863 cat conftest.err
>&5
6864 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6865 (exit $ac_status); } &&
6866 { ac_try
='test -z "$ac_c_werror_flag"
6867 || test ! -s conftest.err'
6868 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6871 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6872 (exit $ac_status); }; } &&
6873 { ac_try
='test -s conftest$ac_exeext'
6874 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6877 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6878 (exit $ac_status); }; }; then
6881 echo "$as_me: failed program was:" >&5
6882 sed 's/^/| /' conftest.
$ac_ext >&5
6884 echo "$as_me:$LINENO: checking for dnet_ntoa in -ldnet" >&5
6885 echo $ECHO_N "checking for dnet_ntoa in -ldnet... $ECHO_C" >&6
6886 if test "${ac_cv_lib_dnet_dnet_ntoa+set}" = set; then
6887 echo $ECHO_N "(cached) $ECHO_C" >&6
6889 ac_check_lib_save_LIBS
=$LIBS
6891 if test x
$gcc_no_link = xyes
; then
6892 { { echo "$as_me:$LINENO: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&5
6893 echo "$as_me: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&2;}
6894 { (exit 1); exit 1; }; }
6896 cat >conftest.
$ac_ext <<_ACEOF
6899 cat confdefs.h
>>conftest.
$ac_ext
6900 cat >>conftest.
$ac_ext <<_ACEOF
6901 /* end confdefs.h. */
6903 /* Override any gcc2 internal prototype to avoid an error. */
6907 /* We use char because int might match the return type of a gcc2
6908 builtin and then its argument prototype would still apply. */
6918 rm -f conftest.
$ac_objext conftest
$ac_exeext
6919 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
6920 (eval $ac_link) 2>conftest.er1
6922 grep -v '^ *+' conftest.er1
>conftest.err
6924 cat conftest.err
>&5
6925 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6926 (exit $ac_status); } &&
6927 { ac_try
='test -z "$ac_c_werror_flag"
6928 || test ! -s conftest.err'
6929 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6932 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6933 (exit $ac_status); }; } &&
6934 { ac_try
='test -s conftest$ac_exeext'
6935 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6938 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6939 (exit $ac_status); }; }; then
6940 ac_cv_lib_dnet_dnet_ntoa
=yes
6942 echo "$as_me: failed program was:" >&5
6943 sed 's/^/| /' conftest.
$ac_ext >&5
6945 ac_cv_lib_dnet_dnet_ntoa
=no
6947 rm -f conftest.err conftest.
$ac_objext \
6948 conftest
$ac_exeext conftest.
$ac_ext
6949 LIBS
=$ac_check_lib_save_LIBS
6951 echo "$as_me:$LINENO: result: $ac_cv_lib_dnet_dnet_ntoa" >&5
6952 echo "${ECHO_T}$ac_cv_lib_dnet_dnet_ntoa" >&6
6953 if test $ac_cv_lib_dnet_dnet_ntoa = yes; then
6954 X_EXTRA_LIBS
="$X_EXTRA_LIBS -ldnet"
6957 if test $ac_cv_lib_dnet_dnet_ntoa = no
; then
6958 echo "$as_me:$LINENO: checking for dnet_ntoa in -ldnet_stub" >&5
6959 echo $ECHO_N "checking for dnet_ntoa in -ldnet_stub... $ECHO_C" >&6
6960 if test "${ac_cv_lib_dnet_stub_dnet_ntoa+set}" = set; then
6961 echo $ECHO_N "(cached) $ECHO_C" >&6
6963 ac_check_lib_save_LIBS
=$LIBS
6964 LIBS
="-ldnet_stub $LIBS"
6965 if test x
$gcc_no_link = xyes
; then
6966 { { echo "$as_me:$LINENO: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&5
6967 echo "$as_me: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&2;}
6968 { (exit 1); exit 1; }; }
6970 cat >conftest.
$ac_ext <<_ACEOF
6973 cat confdefs.h
>>conftest.
$ac_ext
6974 cat >>conftest.
$ac_ext <<_ACEOF
6975 /* end confdefs.h. */
6977 /* Override any gcc2 internal prototype to avoid an error. */
6981 /* We use char because int might match the return type of a gcc2
6982 builtin and then its argument prototype would still apply. */
6992 rm -f conftest.
$ac_objext conftest
$ac_exeext
6993 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
6994 (eval $ac_link) 2>conftest.er1
6996 grep -v '^ *+' conftest.er1
>conftest.err
6998 cat conftest.err
>&5
6999 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7000 (exit $ac_status); } &&
7001 { ac_try
='test -z "$ac_c_werror_flag"
7002 || test ! -s conftest.err'
7003 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7006 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7007 (exit $ac_status); }; } &&
7008 { ac_try
='test -s conftest$ac_exeext'
7009 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7012 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7013 (exit $ac_status); }; }; then
7014 ac_cv_lib_dnet_stub_dnet_ntoa
=yes
7016 echo "$as_me: failed program was:" >&5
7017 sed 's/^/| /' conftest.
$ac_ext >&5
7019 ac_cv_lib_dnet_stub_dnet_ntoa
=no
7021 rm -f conftest.err conftest.
$ac_objext \
7022 conftest
$ac_exeext conftest.
$ac_ext
7023 LIBS
=$ac_check_lib_save_LIBS
7025 echo "$as_me:$LINENO: result: $ac_cv_lib_dnet_stub_dnet_ntoa" >&5
7026 echo "${ECHO_T}$ac_cv_lib_dnet_stub_dnet_ntoa" >&6
7027 if test $ac_cv_lib_dnet_stub_dnet_ntoa = yes; then
7028 X_EXTRA_LIBS
="$X_EXTRA_LIBS -ldnet_stub"
7033 rm -f conftest.err conftest.
$ac_objext \
7034 conftest
$ac_exeext conftest.
$ac_ext
7035 LIBS
="$ac_xsave_LIBS"
7037 # msh@cis.ufl.edu says -lnsl (and -lsocket) are needed for his 386/AT,
7038 # to get the SysV transport functions.
7039 # Chad R. Larson says the Pyramis MIS-ES running DC/OSx (SVR4)
7041 # The nsl library prevents programs from opening the X display
7042 # on Irix 5.2, according to T.E. Dickey.
7043 # The functions gethostbyname, getservbyname, and inet_addr are
7044 # in -lbsd on LynxOS 3.0.1/i386, according to Lars Hecking.
7045 echo "$as_me:$LINENO: checking for gethostbyname" >&5
7046 echo $ECHO_N "checking for gethostbyname... $ECHO_C" >&6
7047 if test "${ac_cv_func_gethostbyname+set}" = set; then
7048 echo $ECHO_N "(cached) $ECHO_C" >&6
7050 if test x
$gcc_no_link = xyes
; then
7051 { { echo "$as_me:$LINENO: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&5
7052 echo "$as_me: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&2;}
7053 { (exit 1); exit 1; }; }
7055 cat >conftest.
$ac_ext <<_ACEOF
7058 cat confdefs.h
>>conftest.
$ac_ext
7059 cat >>conftest.
$ac_ext <<_ACEOF
7060 /* end confdefs.h. */
7061 /* Define gethostbyname to an innocuous variant, in case <limits.h> declares gethostbyname.
7062 For example, HP-UX 11i <limits.h> declares gettimeofday. */
7063 #define gethostbyname innocuous_gethostbyname
7065 /* System header to define __stub macros and hopefully few prototypes,
7066 which can conflict with char gethostbyname (); below.
7067 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
7068 <limits.h> exists even on freestanding compilers. */
7071 # include <limits.h>
7073 # include <assert.h>
7076 #undef gethostbyname
7078 /* Override any gcc2 internal prototype to avoid an error. */
7083 /* We use char because int might match the return type of a gcc2
7084 builtin and then its argument prototype would still apply. */
7085 char gethostbyname ();
7086 /* The GNU C library defines this for functions which it implements
7087 to always fail with ENOSYS. Some functions are actually named
7088 something starting with __ and the normal name is an alias. */
7089 #if defined (__stub_gethostbyname) || defined (__stub___gethostbyname)
7092 char (*f) () = gethostbyname;
7101 return f != gethostbyname;
7106 rm -f conftest.
$ac_objext conftest
$ac_exeext
7107 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
7108 (eval $ac_link) 2>conftest.er1
7110 grep -v '^ *+' conftest.er1
>conftest.err
7112 cat conftest.err
>&5
7113 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7114 (exit $ac_status); } &&
7115 { ac_try
='test -z "$ac_c_werror_flag"
7116 || test ! -s conftest.err'
7117 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7120 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7121 (exit $ac_status); }; } &&
7122 { ac_try
='test -s conftest$ac_exeext'
7123 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7126 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7127 (exit $ac_status); }; }; then
7128 ac_cv_func_gethostbyname
=yes
7130 echo "$as_me: failed program was:" >&5
7131 sed 's/^/| /' conftest.
$ac_ext >&5
7133 ac_cv_func_gethostbyname
=no
7135 rm -f conftest.err conftest.
$ac_objext \
7136 conftest
$ac_exeext conftest.
$ac_ext
7138 echo "$as_me:$LINENO: result: $ac_cv_func_gethostbyname" >&5
7139 echo "${ECHO_T}$ac_cv_func_gethostbyname" >&6
7141 if test $ac_cv_func_gethostbyname = no
; then
7142 echo "$as_me:$LINENO: checking for gethostbyname in -lnsl" >&5
7143 echo $ECHO_N "checking for gethostbyname in -lnsl... $ECHO_C" >&6
7144 if test "${ac_cv_lib_nsl_gethostbyname+set}" = set; then
7145 echo $ECHO_N "(cached) $ECHO_C" >&6
7147 ac_check_lib_save_LIBS
=$LIBS
7149 if test x
$gcc_no_link = xyes
; then
7150 { { echo "$as_me:$LINENO: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&5
7151 echo "$as_me: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&2;}
7152 { (exit 1); exit 1; }; }
7154 cat >conftest.
$ac_ext <<_ACEOF
7157 cat confdefs.h
>>conftest.
$ac_ext
7158 cat >>conftest.
$ac_ext <<_ACEOF
7159 /* end confdefs.h. */
7161 /* Override any gcc2 internal prototype to avoid an error. */
7165 /* We use char because int might match the return type of a gcc2
7166 builtin and then its argument prototype would still apply. */
7167 char gethostbyname ();
7176 rm -f conftest.
$ac_objext conftest
$ac_exeext
7177 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
7178 (eval $ac_link) 2>conftest.er1
7180 grep -v '^ *+' conftest.er1
>conftest.err
7182 cat conftest.err
>&5
7183 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7184 (exit $ac_status); } &&
7185 { ac_try
='test -z "$ac_c_werror_flag"
7186 || test ! -s conftest.err'
7187 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7190 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7191 (exit $ac_status); }; } &&
7192 { ac_try
='test -s conftest$ac_exeext'
7193 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7196 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7197 (exit $ac_status); }; }; then
7198 ac_cv_lib_nsl_gethostbyname
=yes
7200 echo "$as_me: failed program was:" >&5
7201 sed 's/^/| /' conftest.
$ac_ext >&5
7203 ac_cv_lib_nsl_gethostbyname
=no
7205 rm -f conftest.err conftest.
$ac_objext \
7206 conftest
$ac_exeext conftest.
$ac_ext
7207 LIBS
=$ac_check_lib_save_LIBS
7209 echo "$as_me:$LINENO: result: $ac_cv_lib_nsl_gethostbyname" >&5
7210 echo "${ECHO_T}$ac_cv_lib_nsl_gethostbyname" >&6
7211 if test $ac_cv_lib_nsl_gethostbyname = yes; then
7212 X_EXTRA_LIBS
="$X_EXTRA_LIBS -lnsl"
7215 if test $ac_cv_lib_nsl_gethostbyname = no
; then
7216 echo "$as_me:$LINENO: checking for gethostbyname in -lbsd" >&5
7217 echo $ECHO_N "checking for gethostbyname in -lbsd... $ECHO_C" >&6
7218 if test "${ac_cv_lib_bsd_gethostbyname+set}" = set; then
7219 echo $ECHO_N "(cached) $ECHO_C" >&6
7221 ac_check_lib_save_LIBS
=$LIBS
7223 if test x
$gcc_no_link = xyes
; then
7224 { { echo "$as_me:$LINENO: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&5
7225 echo "$as_me: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&2;}
7226 { (exit 1); exit 1; }; }
7228 cat >conftest.
$ac_ext <<_ACEOF
7231 cat confdefs.h
>>conftest.
$ac_ext
7232 cat >>conftest.
$ac_ext <<_ACEOF
7233 /* end confdefs.h. */
7235 /* Override any gcc2 internal prototype to avoid an error. */
7239 /* We use char because int might match the return type of a gcc2
7240 builtin and then its argument prototype would still apply. */
7241 char gethostbyname ();
7250 rm -f conftest.
$ac_objext conftest
$ac_exeext
7251 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
7252 (eval $ac_link) 2>conftest.er1
7254 grep -v '^ *+' conftest.er1
>conftest.err
7256 cat conftest.err
>&5
7257 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7258 (exit $ac_status); } &&
7259 { ac_try
='test -z "$ac_c_werror_flag"
7260 || test ! -s conftest.err'
7261 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7264 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7265 (exit $ac_status); }; } &&
7266 { ac_try
='test -s conftest$ac_exeext'
7267 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7270 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7271 (exit $ac_status); }; }; then
7272 ac_cv_lib_bsd_gethostbyname
=yes
7274 echo "$as_me: failed program was:" >&5
7275 sed 's/^/| /' conftest.
$ac_ext >&5
7277 ac_cv_lib_bsd_gethostbyname
=no
7279 rm -f conftest.err conftest.
$ac_objext \
7280 conftest
$ac_exeext conftest.
$ac_ext
7281 LIBS
=$ac_check_lib_save_LIBS
7283 echo "$as_me:$LINENO: result: $ac_cv_lib_bsd_gethostbyname" >&5
7284 echo "${ECHO_T}$ac_cv_lib_bsd_gethostbyname" >&6
7285 if test $ac_cv_lib_bsd_gethostbyname = yes; then
7286 X_EXTRA_LIBS
="$X_EXTRA_LIBS -lbsd"
7292 # lieder@skyler.mavd.honeywell.com says without -lsocket,
7293 # socket/setsockopt and other routines are undefined under SCO ODT
7294 # 2.0. But -lsocket is broken on IRIX 5.2 (and is not necessary
7295 # on later versions), says Simon Leinen: it contains gethostby*
7296 # variants that don't use the name server (or something). -lsocket
7297 # must be given before -lnsl if both are needed. We assume that
7298 # if connect needs -lnsl, so does gethostbyname.
7299 echo "$as_me:$LINENO: checking for connect" >&5
7300 echo $ECHO_N "checking for connect... $ECHO_C" >&6
7301 if test "${ac_cv_func_connect+set}" = set; then
7302 echo $ECHO_N "(cached) $ECHO_C" >&6
7304 if test x
$gcc_no_link = xyes
; then
7305 { { echo "$as_me:$LINENO: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&5
7306 echo "$as_me: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&2;}
7307 { (exit 1); exit 1; }; }
7309 cat >conftest.
$ac_ext <<_ACEOF
7312 cat confdefs.h
>>conftest.
$ac_ext
7313 cat >>conftest.
$ac_ext <<_ACEOF
7314 /* end confdefs.h. */
7315 /* Define connect to an innocuous variant, in case <limits.h> declares connect.
7316 For example, HP-UX 11i <limits.h> declares gettimeofday. */
7317 #define connect innocuous_connect
7319 /* System header to define __stub macros and hopefully few prototypes,
7320 which can conflict with char connect (); below.
7321 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
7322 <limits.h> exists even on freestanding compilers. */
7325 # include <limits.h>
7327 # include <assert.h>
7332 /* Override any gcc2 internal prototype to avoid an error. */
7337 /* We use char because int might match the return type of a gcc2
7338 builtin and then its argument prototype would still apply. */
7340 /* The GNU C library defines this for functions which it implements
7341 to always fail with ENOSYS. Some functions are actually named
7342 something starting with __ and the normal name is an alias. */
7343 #if defined (__stub_connect) || defined (__stub___connect)
7346 char (*f) () = connect;
7355 return f != connect;
7360 rm -f conftest.
$ac_objext conftest
$ac_exeext
7361 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
7362 (eval $ac_link) 2>conftest.er1
7364 grep -v '^ *+' conftest.er1
>conftest.err
7366 cat conftest.err
>&5
7367 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7368 (exit $ac_status); } &&
7369 { ac_try
='test -z "$ac_c_werror_flag"
7370 || test ! -s conftest.err'
7371 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7374 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7375 (exit $ac_status); }; } &&
7376 { ac_try
='test -s conftest$ac_exeext'
7377 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7380 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7381 (exit $ac_status); }; }; then
7382 ac_cv_func_connect
=yes
7384 echo "$as_me: failed program was:" >&5
7385 sed 's/^/| /' conftest.
$ac_ext >&5
7387 ac_cv_func_connect
=no
7389 rm -f conftest.err conftest.
$ac_objext \
7390 conftest
$ac_exeext conftest.
$ac_ext
7392 echo "$as_me:$LINENO: result: $ac_cv_func_connect" >&5
7393 echo "${ECHO_T}$ac_cv_func_connect" >&6
7395 if test $ac_cv_func_connect = no
; then
7396 echo "$as_me:$LINENO: checking for connect in -lsocket" >&5
7397 echo $ECHO_N "checking for connect in -lsocket... $ECHO_C" >&6
7398 if test "${ac_cv_lib_socket_connect+set}" = set; then
7399 echo $ECHO_N "(cached) $ECHO_C" >&6
7401 ac_check_lib_save_LIBS
=$LIBS
7402 LIBS
="-lsocket $X_EXTRA_LIBS $LIBS"
7403 if test x
$gcc_no_link = xyes
; then
7404 { { echo "$as_me:$LINENO: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&5
7405 echo "$as_me: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&2;}
7406 { (exit 1); exit 1; }; }
7408 cat >conftest.
$ac_ext <<_ACEOF
7411 cat confdefs.h
>>conftest.
$ac_ext
7412 cat >>conftest.
$ac_ext <<_ACEOF
7413 /* end confdefs.h. */
7415 /* Override any gcc2 internal prototype to avoid an error. */
7419 /* We use char because int might match the return type of a gcc2
7420 builtin and then its argument prototype would still apply. */
7430 rm -f conftest.
$ac_objext conftest
$ac_exeext
7431 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
7432 (eval $ac_link) 2>conftest.er1
7434 grep -v '^ *+' conftest.er1
>conftest.err
7436 cat conftest.err
>&5
7437 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7438 (exit $ac_status); } &&
7439 { ac_try
='test -z "$ac_c_werror_flag"
7440 || test ! -s conftest.err'
7441 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7444 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7445 (exit $ac_status); }; } &&
7446 { ac_try
='test -s conftest$ac_exeext'
7447 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7450 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7451 (exit $ac_status); }; }; then
7452 ac_cv_lib_socket_connect
=yes
7454 echo "$as_me: failed program was:" >&5
7455 sed 's/^/| /' conftest.
$ac_ext >&5
7457 ac_cv_lib_socket_connect
=no
7459 rm -f conftest.err conftest.
$ac_objext \
7460 conftest
$ac_exeext conftest.
$ac_ext
7461 LIBS
=$ac_check_lib_save_LIBS
7463 echo "$as_me:$LINENO: result: $ac_cv_lib_socket_connect" >&5
7464 echo "${ECHO_T}$ac_cv_lib_socket_connect" >&6
7465 if test $ac_cv_lib_socket_connect = yes; then
7466 X_EXTRA_LIBS
="-lsocket $X_EXTRA_LIBS"
7471 # Guillermo Gomez says -lposix is necessary on A/UX.
7472 echo "$as_me:$LINENO: checking for remove" >&5
7473 echo $ECHO_N "checking for remove... $ECHO_C" >&6
7474 if test "${ac_cv_func_remove+set}" = set; then
7475 echo $ECHO_N "(cached) $ECHO_C" >&6
7477 if test x
$gcc_no_link = xyes
; then
7478 { { echo "$as_me:$LINENO: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&5
7479 echo "$as_me: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&2;}
7480 { (exit 1); exit 1; }; }
7482 cat >conftest.
$ac_ext <<_ACEOF
7485 cat confdefs.h
>>conftest.
$ac_ext
7486 cat >>conftest.
$ac_ext <<_ACEOF
7487 /* end confdefs.h. */
7488 /* Define remove to an innocuous variant, in case <limits.h> declares remove.
7489 For example, HP-UX 11i <limits.h> declares gettimeofday. */
7490 #define remove innocuous_remove
7492 /* System header to define __stub macros and hopefully few prototypes,
7493 which can conflict with char remove (); below.
7494 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
7495 <limits.h> exists even on freestanding compilers. */
7498 # include <limits.h>
7500 # include <assert.h>
7505 /* Override any gcc2 internal prototype to avoid an error. */
7510 /* We use char because int might match the return type of a gcc2
7511 builtin and then its argument prototype would still apply. */
7513 /* The GNU C library defines this for functions which it implements
7514 to always fail with ENOSYS. Some functions are actually named
7515 something starting with __ and the normal name is an alias. */
7516 #if defined (__stub_remove) || defined (__stub___remove)
7519 char (*f) () = remove;
7533 rm -f conftest.
$ac_objext conftest
$ac_exeext
7534 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
7535 (eval $ac_link) 2>conftest.er1
7537 grep -v '^ *+' conftest.er1
>conftest.err
7539 cat conftest.err
>&5
7540 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7541 (exit $ac_status); } &&
7542 { ac_try
='test -z "$ac_c_werror_flag"
7543 || test ! -s conftest.err'
7544 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7547 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7548 (exit $ac_status); }; } &&
7549 { ac_try
='test -s conftest$ac_exeext'
7550 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7553 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7554 (exit $ac_status); }; }; then
7555 ac_cv_func_remove
=yes
7557 echo "$as_me: failed program was:" >&5
7558 sed 's/^/| /' conftest.
$ac_ext >&5
7560 ac_cv_func_remove
=no
7562 rm -f conftest.err conftest.
$ac_objext \
7563 conftest
$ac_exeext conftest.
$ac_ext
7565 echo "$as_me:$LINENO: result: $ac_cv_func_remove" >&5
7566 echo "${ECHO_T}$ac_cv_func_remove" >&6
7568 if test $ac_cv_func_remove = no
; then
7569 echo "$as_me:$LINENO: checking for remove in -lposix" >&5
7570 echo $ECHO_N "checking for remove in -lposix... $ECHO_C" >&6
7571 if test "${ac_cv_lib_posix_remove+set}" = set; then
7572 echo $ECHO_N "(cached) $ECHO_C" >&6
7574 ac_check_lib_save_LIBS
=$LIBS
7575 LIBS
="-lposix $LIBS"
7576 if test x
$gcc_no_link = xyes
; then
7577 { { echo "$as_me:$LINENO: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&5
7578 echo "$as_me: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&2;}
7579 { (exit 1); exit 1; }; }
7581 cat >conftest.
$ac_ext <<_ACEOF
7584 cat confdefs.h
>>conftest.
$ac_ext
7585 cat >>conftest.
$ac_ext <<_ACEOF
7586 /* end confdefs.h. */
7588 /* Override any gcc2 internal prototype to avoid an error. */
7592 /* We use char because int might match the return type of a gcc2
7593 builtin and then its argument prototype would still apply. */
7603 rm -f conftest.
$ac_objext conftest
$ac_exeext
7604 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
7605 (eval $ac_link) 2>conftest.er1
7607 grep -v '^ *+' conftest.er1
>conftest.err
7609 cat conftest.err
>&5
7610 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7611 (exit $ac_status); } &&
7612 { ac_try
='test -z "$ac_c_werror_flag"
7613 || test ! -s conftest.err'
7614 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7617 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7618 (exit $ac_status); }; } &&
7619 { ac_try
='test -s conftest$ac_exeext'
7620 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7623 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7624 (exit $ac_status); }; }; then
7625 ac_cv_lib_posix_remove
=yes
7627 echo "$as_me: failed program was:" >&5
7628 sed 's/^/| /' conftest.
$ac_ext >&5
7630 ac_cv_lib_posix_remove
=no
7632 rm -f conftest.err conftest.
$ac_objext \
7633 conftest
$ac_exeext conftest.
$ac_ext
7634 LIBS
=$ac_check_lib_save_LIBS
7636 echo "$as_me:$LINENO: result: $ac_cv_lib_posix_remove" >&5
7637 echo "${ECHO_T}$ac_cv_lib_posix_remove" >&6
7638 if test $ac_cv_lib_posix_remove = yes; then
7639 X_EXTRA_LIBS
="$X_EXTRA_LIBS -lposix"
7644 # BSDI BSD/OS 2.1 needs -lipc for XOpenDisplay.
7645 echo "$as_me:$LINENO: checking for shmat" >&5
7646 echo $ECHO_N "checking for shmat... $ECHO_C" >&6
7647 if test "${ac_cv_func_shmat+set}" = set; then
7648 echo $ECHO_N "(cached) $ECHO_C" >&6
7650 if test x
$gcc_no_link = xyes
; then
7651 { { echo "$as_me:$LINENO: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&5
7652 echo "$as_me: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&2;}
7653 { (exit 1); exit 1; }; }
7655 cat >conftest.
$ac_ext <<_ACEOF
7658 cat confdefs.h
>>conftest.
$ac_ext
7659 cat >>conftest.
$ac_ext <<_ACEOF
7660 /* end confdefs.h. */
7661 /* Define shmat to an innocuous variant, in case <limits.h> declares shmat.
7662 For example, HP-UX 11i <limits.h> declares gettimeofday. */
7663 #define shmat innocuous_shmat
7665 /* System header to define __stub macros and hopefully few prototypes,
7666 which can conflict with char shmat (); below.
7667 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
7668 <limits.h> exists even on freestanding compilers. */
7671 # include <limits.h>
7673 # include <assert.h>
7678 /* Override any gcc2 internal prototype to avoid an error. */
7683 /* We use char because int might match the return type of a gcc2
7684 builtin and then its argument prototype would still apply. */
7686 /* The GNU C library defines this for functions which it implements
7687 to always fail with ENOSYS. Some functions are actually named
7688 something starting with __ and the normal name is an alias. */
7689 #if defined (__stub_shmat) || defined (__stub___shmat)
7692 char (*f) () = shmat;
7706 rm -f conftest.
$ac_objext conftest
$ac_exeext
7707 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
7708 (eval $ac_link) 2>conftest.er1
7710 grep -v '^ *+' conftest.er1
>conftest.err
7712 cat conftest.err
>&5
7713 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7714 (exit $ac_status); } &&
7715 { ac_try
='test -z "$ac_c_werror_flag"
7716 || test ! -s conftest.err'
7717 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7720 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7721 (exit $ac_status); }; } &&
7722 { ac_try
='test -s conftest$ac_exeext'
7723 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7726 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7727 (exit $ac_status); }; }; then
7728 ac_cv_func_shmat
=yes
7730 echo "$as_me: failed program was:" >&5
7731 sed 's/^/| /' conftest.
$ac_ext >&5
7735 rm -f conftest.err conftest.
$ac_objext \
7736 conftest
$ac_exeext conftest.
$ac_ext
7738 echo "$as_me:$LINENO: result: $ac_cv_func_shmat" >&5
7739 echo "${ECHO_T}$ac_cv_func_shmat" >&6
7741 if test $ac_cv_func_shmat = no
; then
7742 echo "$as_me:$LINENO: checking for shmat in -lipc" >&5
7743 echo $ECHO_N "checking for shmat in -lipc... $ECHO_C" >&6
7744 if test "${ac_cv_lib_ipc_shmat+set}" = set; then
7745 echo $ECHO_N "(cached) $ECHO_C" >&6
7747 ac_check_lib_save_LIBS
=$LIBS
7749 if test x
$gcc_no_link = xyes
; then
7750 { { echo "$as_me:$LINENO: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&5
7751 echo "$as_me: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&2;}
7752 { (exit 1); exit 1; }; }
7754 cat >conftest.
$ac_ext <<_ACEOF
7757 cat confdefs.h
>>conftest.
$ac_ext
7758 cat >>conftest.
$ac_ext <<_ACEOF
7759 /* end confdefs.h. */
7761 /* Override any gcc2 internal prototype to avoid an error. */
7765 /* We use char because int might match the return type of a gcc2
7766 builtin and then its argument prototype would still apply. */
7776 rm -f conftest.
$ac_objext conftest
$ac_exeext
7777 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
7778 (eval $ac_link) 2>conftest.er1
7780 grep -v '^ *+' conftest.er1
>conftest.err
7782 cat conftest.err
>&5
7783 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7784 (exit $ac_status); } &&
7785 { ac_try
='test -z "$ac_c_werror_flag"
7786 || test ! -s conftest.err'
7787 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7790 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7791 (exit $ac_status); }; } &&
7792 { ac_try
='test -s conftest$ac_exeext'
7793 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7796 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7797 (exit $ac_status); }; }; then
7798 ac_cv_lib_ipc_shmat
=yes
7800 echo "$as_me: failed program was:" >&5
7801 sed 's/^/| /' conftest.
$ac_ext >&5
7803 ac_cv_lib_ipc_shmat
=no
7805 rm -f conftest.err conftest.
$ac_objext \
7806 conftest
$ac_exeext conftest.
$ac_ext
7807 LIBS
=$ac_check_lib_save_LIBS
7809 echo "$as_me:$LINENO: result: $ac_cv_lib_ipc_shmat" >&5
7810 echo "${ECHO_T}$ac_cv_lib_ipc_shmat" >&6
7811 if test $ac_cv_lib_ipc_shmat = yes; then
7812 X_EXTRA_LIBS
="$X_EXTRA_LIBS -lipc"
7818 # Check for libraries that X11R6 Xt/Xaw programs need.
7819 ac_save_LDFLAGS
=$LDFLAGS
7820 test -n "$x_libraries" && LDFLAGS
="$LDFLAGS -L$x_libraries"
7821 # SM needs ICE to (dynamically) link under SunOS 4.x (so we have to
7822 # check for ICE first), but we must link in the order -lSM -lICE or
7823 # we get undefined symbols. So assume we have SM if we have ICE.
7824 # These have to be linked with before -lX11, unlike the other
7825 # libraries we check for below, so use a different variable.
7826 # John Interrante, Karl Berry
7827 echo "$as_me:$LINENO: checking for IceConnectionNumber in -lICE" >&5
7828 echo $ECHO_N "checking for IceConnectionNumber in -lICE... $ECHO_C" >&6
7829 if test "${ac_cv_lib_ICE_IceConnectionNumber+set}" = set; then
7830 echo $ECHO_N "(cached) $ECHO_C" >&6
7832 ac_check_lib_save_LIBS
=$LIBS
7833 LIBS
="-lICE $X_EXTRA_LIBS $LIBS"
7834 if test x
$gcc_no_link = xyes
; then
7835 { { echo "$as_me:$LINENO: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&5
7836 echo "$as_me: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&2;}
7837 { (exit 1); exit 1; }; }
7839 cat >conftest.
$ac_ext <<_ACEOF
7842 cat confdefs.h
>>conftest.
$ac_ext
7843 cat >>conftest.
$ac_ext <<_ACEOF
7844 /* end confdefs.h. */
7846 /* Override any gcc2 internal prototype to avoid an error. */
7850 /* We use char because int might match the return type of a gcc2
7851 builtin and then its argument prototype would still apply. */
7852 char IceConnectionNumber ();
7856 IceConnectionNumber ();
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
7883 ac_cv_lib_ICE_IceConnectionNumber
=yes
7885 echo "$as_me: failed program was:" >&5
7886 sed 's/^/| /' conftest.
$ac_ext >&5
7888 ac_cv_lib_ICE_IceConnectionNumber
=no
7890 rm -f conftest.err conftest.
$ac_objext \
7891 conftest
$ac_exeext conftest.
$ac_ext
7892 LIBS
=$ac_check_lib_save_LIBS
7894 echo "$as_me:$LINENO: result: $ac_cv_lib_ICE_IceConnectionNumber" >&5
7895 echo "${ECHO_T}$ac_cv_lib_ICE_IceConnectionNumber" >&6
7896 if test $ac_cv_lib_ICE_IceConnectionNumber = yes; then
7897 X_PRE_LIBS
="$X_PRE_LIBS -lSM -lICE"
7900 LDFLAGS
=$ac_save_LDFLAGS
7905 # Determine which AWT peer libraries to build
7906 # Check whether --enable-java-awt or --disable-java-awt was given.
7907 if test "${enable_java_awt+set}" = set; then
7908 enableval
="$enable_java_awt"
7912 peerlibs
="`echo ${enable_java_awt} | tr ',' ' '`"
7915 # The default toolkit to use is the first one specified.
7919 for peer
in $peerlibs ; do
7922 if test "$no_x" = yes; then
7923 echo "*** xlib peers requested but no X library available" 1>&2
7927 if test -z "$TOOLKIT"; then
7928 TOOLKIT
=gnu.awt.xlib.XToolkit
7933 if test "$no_x" = yes; then
7934 echo "*** gtk peers requested but no X library available" 1>&2
7938 if test -z "$TOOLKIT"; then
7939 TOOLKIT
=gnu.java.awt.peer.gtk.GtkToolkit
7941 test -d jniinclude || mkdir jniinclude
7950 echo "*** unrecognised argument \"${peer}\" for --enable-java-awt" 1>&2
7957 if test "$use_xlib_awt" = yes; then
7967 if test "$use_gtk_awt" = yes; then
7976 # determine whether to enable the cairo GTK Graphics2D backend
7977 # Check whether --enable-gtk-cairo or --disable-gtk-cairo was given.
7978 if test "${enable_gtk_cairo+set}" = set; then
7979 enableval
="$enable_gtk_cairo"
7984 if test "x${enable_gtk_cairo}" = xyes
; then
7992 if test "x${enable_gtk_cairo}" = xyes
7997 if test -z "$PKG_CONFIG"; then
7998 # Extract the first word of "pkg-config", so it can be a program name with args.
7999 set dummy pkg-config
; ac_word
=$2
8000 echo "$as_me:$LINENO: checking for $ac_word" >&5
8001 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
8002 if test "${ac_cv_path_PKG_CONFIG+set}" = set; then
8003 echo $ECHO_N "(cached) $ECHO_C" >&6
8007 ac_cv_path_PKG_CONFIG
="$PKG_CONFIG" # Let the user override the test with a path.
8010 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
8014 test -z "$as_dir" && as_dir
=.
8015 for ac_exec_ext
in '' $ac_executable_extensions; do
8016 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
8017 ac_cv_path_PKG_CONFIG
="$as_dir/$ac_word$ac_exec_ext"
8018 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
8024 test -z "$ac_cv_path_PKG_CONFIG" && ac_cv_path_PKG_CONFIG
="no"
8028 PKG_CONFIG
=$ac_cv_path_PKG_CONFIG
8030 if test -n "$PKG_CONFIG"; then
8031 echo "$as_me:$LINENO: result: $PKG_CONFIG" >&5
8032 echo "${ECHO_T}$PKG_CONFIG" >&6
8034 echo "$as_me:$LINENO: result: no" >&5
8035 echo "${ECHO_T}no" >&6
8040 if test "$PKG_CONFIG" = "no" ; then
8041 echo "*** The pkg-config script could not be found. Make sure it is"
8042 echo "*** in your path, or set the PKG_CONFIG environment variable"
8043 echo "*** to the full path to pkg-config."
8044 echo "*** Or see http://www.freedesktop.org/software/pkgconfig to get pkg-config."
8046 PKG_CONFIG_MIN_VERSION
=0.9.0
8047 if $PKG_CONFIG --atleast-pkgconfig-version $PKG_CONFIG_MIN_VERSION; then
8048 echo "$as_me:$LINENO: checking for cairo" >&5
8049 echo $ECHO_N "checking for cairo... $ECHO_C" >&6
8051 if $PKG_CONFIG --exists "cairo" ; then
8052 echo "$as_me:$LINENO: result: yes" >&5
8053 echo "${ECHO_T}yes" >&6
8056 echo "$as_me:$LINENO: checking CAIRO_CFLAGS" >&5
8057 echo $ECHO_N "checking CAIRO_CFLAGS... $ECHO_C" >&6
8058 CAIRO_CFLAGS
=`$PKG_CONFIG --cflags "cairo"`
8059 echo "$as_me:$LINENO: result: $CAIRO_CFLAGS" >&5
8060 echo "${ECHO_T}$CAIRO_CFLAGS" >&6
8062 echo "$as_me:$LINENO: checking CAIRO_LIBS" >&5
8063 echo $ECHO_N "checking CAIRO_LIBS... $ECHO_C" >&6
8064 CAIRO_LIBS
=`$PKG_CONFIG --libs "cairo"`
8065 echo "$as_me:$LINENO: result: $CAIRO_LIBS" >&5
8066 echo "${ECHO_T}$CAIRO_LIBS" >&6
8070 ## If we have a custom action on failure, don't print errors, but
8071 ## do set a variable so people can do so.
8072 CAIRO_PKG_ERRORS
=`$PKG_CONFIG --errors-to-stdout --print-errors "cairo"`
8073 echo $CAIRO_PKG_ERRORS
8079 echo "*** Your version of pkg-config is too old. You need version $PKG_CONFIG_MIN_VERSION or newer."
8080 echo "*** See http://www.freedesktop.org/software/pkgconfig"
8084 if test $succeeded = yes; then
8087 { { echo "$as_me:$LINENO: error: Library requirements (cairo) 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
8088 echo "$as_me: error: Library requirements (cairo) 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;}
8089 { (exit 1); exit 1; }; }
8095 if test -z "$PKG_CONFIG"; then
8096 # Extract the first word of "pkg-config", so it can be a program name with args.
8097 set dummy pkg-config
; ac_word
=$2
8098 echo "$as_me:$LINENO: checking for $ac_word" >&5
8099 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
8100 if test "${ac_cv_path_PKG_CONFIG+set}" = set; then
8101 echo $ECHO_N "(cached) $ECHO_C" >&6
8105 ac_cv_path_PKG_CONFIG
="$PKG_CONFIG" # Let the user override the test with a path.
8108 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
8112 test -z "$as_dir" && as_dir
=.
8113 for ac_exec_ext
in '' $ac_executable_extensions; do
8114 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
8115 ac_cv_path_PKG_CONFIG
="$as_dir/$ac_word$ac_exec_ext"
8116 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
8122 test -z "$ac_cv_path_PKG_CONFIG" && ac_cv_path_PKG_CONFIG
="no"
8126 PKG_CONFIG
=$ac_cv_path_PKG_CONFIG
8128 if test -n "$PKG_CONFIG"; then
8129 echo "$as_me:$LINENO: result: $PKG_CONFIG" >&5
8130 echo "${ECHO_T}$PKG_CONFIG" >&6
8132 echo "$as_me:$LINENO: result: no" >&5
8133 echo "${ECHO_T}no" >&6
8138 if test "$PKG_CONFIG" = "no" ; then
8139 echo "*** The pkg-config script could not be found. Make sure it is"
8140 echo "*** in your path, or set the PKG_CONFIG environment variable"
8141 echo "*** to the full path to pkg-config."
8142 echo "*** Or see http://www.freedesktop.org/software/pkgconfig to get pkg-config."
8144 PKG_CONFIG_MIN_VERSION
=0.9.0
8145 if $PKG_CONFIG --atleast-pkgconfig-version $PKG_CONFIG_MIN_VERSION; then
8146 echo "$as_me:$LINENO: checking for pangoft2" >&5
8147 echo $ECHO_N "checking for pangoft2... $ECHO_C" >&6
8149 if $PKG_CONFIG --exists "pangoft2" ; then
8150 echo "$as_me:$LINENO: result: yes" >&5
8151 echo "${ECHO_T}yes" >&6
8154 echo "$as_me:$LINENO: checking PANGOFT2_CFLAGS" >&5
8155 echo $ECHO_N "checking PANGOFT2_CFLAGS... $ECHO_C" >&6
8156 PANGOFT2_CFLAGS
=`$PKG_CONFIG --cflags "pangoft2"`
8157 echo "$as_me:$LINENO: result: $PANGOFT2_CFLAGS" >&5
8158 echo "${ECHO_T}$PANGOFT2_CFLAGS" >&6
8160 echo "$as_me:$LINENO: checking PANGOFT2_LIBS" >&5
8161 echo $ECHO_N "checking PANGOFT2_LIBS... $ECHO_C" >&6
8162 PANGOFT2_LIBS
=`$PKG_CONFIG --libs "pangoft2"`
8163 echo "$as_me:$LINENO: result: $PANGOFT2_LIBS" >&5
8164 echo "${ECHO_T}$PANGOFT2_LIBS" >&6
8168 ## If we have a custom action on failure, don't print errors, but
8169 ## do set a variable so people can do so.
8170 PANGOFT2_PKG_ERRORS
=`$PKG_CONFIG --errors-to-stdout --print-errors "pangoft2"`
8171 echo $PANGOFT2_PKG_ERRORS
8177 echo "*** Your version of pkg-config is too old. You need version $PKG_CONFIG_MIN_VERSION or newer."
8178 echo "*** See http://www.freedesktop.org/software/pkgconfig"
8182 if test $succeeded = yes; then
8185 { { echo "$as_me:$LINENO: error: Library requirements (pangoft2) 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
8186 echo "$as_me: error: Library requirements (pangoft2) 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;}
8187 { (exit 1); exit 1; }; }
8196 # FIXME: this should be _libs on some hosts.
8199 # Allow the GC to be disabled. Can be useful when debugging.
8200 echo "$as_me:$LINENO: checking for garbage collector to use" >&5
8201 echo $ECHO_N "checking for garbage collector to use... $ECHO_C" >&6
8202 # Check whether --enable-java-gc or --disable-java-gc was given.
8203 if test "${enable_java_gc+set}" = set; then
8204 enableval
="$enable_java_gc"
8217 echo "$as_me:$LINENO: result: boehm" >&5
8218 echo "${ECHO_T}boehm" >&6
8219 GCLIBS
=..
/boehm-gc
/libgcjgc_convenience.la
8220 JC1GCSPEC
='-fuse-boehm-gc'
8221 GCTESTSPEC
="-L`${PWDCMD-pwd}`/../boehm-gc/.libs -rpath `${PWDCMD-pwd}`/../boehm-gc/.libs"
8222 GCINCS
='-I$(top_srcdir)/../boehm-gc/include -I../boehm-gc/include'
8225 # The POSIX thread support needs to know this.
8227 cat >>confdefs.h
<<\_ACEOF
8228 #define HAVE_BOEHM_GC 1
8233 echo "$as_me:$LINENO: result: none" >&5
8234 echo "${ECHO_T}none" >&6
8238 { { echo "$as_me:$LINENO: error: unrecognized collector \"$GC\"" >&5
8239 echo "$as_me: error: unrecognized collector \"$GC\"" >&2;}
8240 { (exit 1); exit 1; }; }
8249 ac_config_links
="$ac_config_links include/java-gc.h:include/$GCHDR"
8253 if test "$GC" = boehm
; then
8255 USING_BOEHMGC_FALSE
='#'
8257 USING_BOEHMGC_TRUE
='#'
8258 USING_BOEHMGC_FALSE
=
8263 if test "$GC" = no
; then
8265 USING_NOGC_FALSE
='#'
8273 echo "$as_me:$LINENO: checking for thread model used by GCC" >&5
8274 echo $ECHO_N "checking for thread model used by GCC... $ECHO_C" >&6
8275 THREADS
=`$CC -v 2>&1 | sed -n 's/^Thread model: //p'`
8276 echo "$as_me:$LINENO: result: $THREADS" >&5
8277 echo "${ECHO_T}$THREADS" >&6
8283 posix | posix95 | pthreads
)
8288 cat >>confdefs.h
<<\_ACEOF
8289 #define LINUX_THREADS 1
8297 decosf1 | irix | mach | os2 | solaris | dce | vxworks
)
8298 { { echo "$as_me:$LINENO: error: thread package $THREADS not yet supported" >&5
8299 echo "$as_me: error: thread package $THREADS not yet supported" >&2;}
8300 { (exit 1); exit 1; }; }
8303 { { echo "$as_me:$LINENO: error: $THREADS is an unknown thread package" >&5
8304 echo "$as_me: error: $THREADS is an unknown thread package" >&2;}
8305 { (exit 1); exit 1; }; }
8320 # Don't set THREADLIBS here. Cygwin doesn't have -lpthread.
8323 # Before FreeBSD 5, it didn't have -lpthread (or any library which
8324 # merely adds pthread_* functions) but it does have a -pthread switch
8325 # which is required at link-time to select -lc_r *instead* of -lc.
8326 THREADLDFLAGS
=-pthread
8327 # Don't set THREADSPEC here as might be expected since -pthread is
8328 # not processed when found within a spec file, it must come from
8329 # the command line. For now, the user must provide the -pthread
8330 # switch to link code compiled with gcj. In future, consider adding
8331 # support for weak references to pthread_* functions ala gthr.h API.
8332 THREADSPEC
='%{!pthread: %{!shared: %eUnder this configuration, the user must provide -pthread when linking.}}'
8335 # FreeBSD 5 implements a model much closer to other modern UNIX
8336 # which support threads. However, it still does not support
8338 THREADLDFLAGS
=-pthread
8342 THREADCXXFLAGS
=-pthread
8343 # boehm-gc needs some functions from librt, so link that too.
8344 THREADLIBS
='-lpthread -lrt'
8345 THREADSPEC
='-lpthread -lrt'
8348 THREADLIBS
=-lpthread
8349 THREADSPEC
=-lpthread
8352 THREADH
=posix-threads.h
8353 # MIT pthreads doesn't seem to have the mutexattr functions.
8354 # But for now we don't check for it. We just assume you aren't
8355 # using MIT pthreads.
8357 cat >>confdefs.h
<<\_ACEOF
8358 #define HAVE_PTHREAD_MUTEXATTR_INIT 1
8362 # If we're using the Boehm GC, then we happen to know that it
8363 # defines _REENTRANT, so we don't bother. Eww.
8364 if test "$GC" != boehm
; then
8366 cat >>confdefs.h
<<\_ACEOF
8367 #define _REENTRANT 1
8372 cat >>confdefs.h
<<\_ACEOF
8373 #define _POSIX_PTHREAD_SEMANTICS 1
8379 THREADH
=win32-threads.h
8383 THREADH
=no-threads.h
8386 ac_config_links
="$ac_config_links include/java-threads.h:include/$THREADH"
8396 if test "$THREADS" = posix
; then
8397 USING_POSIX_THREADS_TRUE
=
8398 USING_POSIX_THREADS_FALSE
='#'
8400 USING_POSIX_THREADS_TRUE
='#'
8401 USING_POSIX_THREADS_FALSE
=
8406 if test "$THREADS" = win32
; then
8407 USING_WIN32_THREADS_TRUE
=
8408 USING_WIN32_THREADS_FALSE
='#'
8410 USING_WIN32_THREADS_TRUE
='#'
8411 USING_WIN32_THREADS_FALSE
=
8416 if test "$THREADS" = none
; then
8417 USING_NO_THREADS_TRUE
=
8418 USING_NO_THREADS_FALSE
='#'
8420 USING_NO_THREADS_TRUE
='#'
8421 USING_NO_THREADS_FALSE
=
8425 if test -d sysdep
; then true
; else mkdir sysdep
; fi
8426 ac_config_links
="$ac_config_links sysdep/locks.h:sysdep/$sysdeps_dir/locks.h"
8430 # Hash synchronization is only useful with posix threads right now.
8431 if test "$enable_hash_synchronization" = yes && test "$THREADS" != "none"; then
8432 HASH_SYNC_SPEC
=-fhash-synchronization
8434 cat >>confdefs.h
<<\_ACEOF
8435 #define JV_HASH_SYNCHRONIZATION 1
8444 if test "$GCC" = yes; then
8453 # We're in the tree with gcc, and need to include some of its headers.
8454 GCC_UNWIND_INCLUDE
='-I$(libgcj_basedir)/../gcc'
8457 if test "${with_gcc_version_trigger+set}" = set; then
8458 gcc_version_trigger
=$with_gcc_version_trigger
8460 gcc_version_trigger
=$srcdir/..
/gcc
/version.c
8462 if test -f "${gcc_version_trigger}"; then
8463 gcc_version_full
=`grep version_string "${gcc_version_trigger}" | sed -e 's/.*"\([^"]*\)".*/\1/'`
8465 gcc_version_full
=`$CC -v 2>&1 | sed -n 's/^gcc version //p'`
8467 gcc_version
=`echo ${gcc_version_full} | sed -e 's/\([^ ]*\) .*/\1/'`
8473 # Figure out where generated headers like libgcj-config.h get installed.
8474 tool_include_dir
='$(libdir)/gcc/$(target_noncanonical)/'${gcc_version}/include
8477 if test "x${with_newlib}" = "xyes"; then
8478 # We are being configured with a cross compiler. AC_REPLACE_FUNCS
8479 # may not work correctly, because the compiler may not be able to
8482 # We assume newlib. This lets us hard-code the functions we know
8485 cat >>confdefs.h
<<\_ACEOF
8486 #define HAVE_MEMMOVE 1
8490 cat >>confdefs.h
<<\_ACEOF
8491 #define HAVE_MEMCPY 1
8495 cat >>confdefs.h
<<\_ACEOF
8496 #define HAVE_STRERROR 1
8500 cat >>confdefs.h
<<\_ACEOF
8505 cat >>confdefs.h
<<\_ACEOF
8506 #define HAVE_GMTIME_R 1
8510 cat >>confdefs.h
<<\_ACEOF
8511 #define HAVE_LOCALTIME_R 1
8515 cat >>confdefs.h
<<\_ACEOF
8516 #define HAVE_USLEEP_DECL 1
8519 # This is only for POSIX threads.
8521 cat >>confdefs.h
<<\_ACEOF
8522 #define HAVE_PTHREAD_MUTEXATTR_INIT 1
8525 # We also assume we are using gcc, which provides alloca.
8526 cat >>confdefs.h
<<\_ACEOF
8527 #define HAVE_ALLOCA 1
8531 # Assume we do not have getuid and friends.
8533 cat >>confdefs.h
<<\_ACEOF
8571 for ac_func
in strerror ioctl
select fstat open fsync
sleep opendir \
8572 gmtime_r localtime_r readdir_r getpwuid_r getcwd \
8573 access stat mkdir rename
rmdir unlink realpath utime
chmod \
8574 nl_langinfo setlocale \
8575 inet_pton uname inet_ntoa \
8576 fork execvp pipe sigaction ftruncate
8578 as_ac_var
=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
8579 echo "$as_me:$LINENO: checking for $ac_func" >&5
8580 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
8581 if eval "test \"\${$as_ac_var+set}\" = set"; then
8582 echo $ECHO_N "(cached) $ECHO_C" >&6
8584 if test x
$gcc_no_link = xyes
; then
8585 { { echo "$as_me:$LINENO: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&5
8586 echo "$as_me: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&2;}
8587 { (exit 1); exit 1; }; }
8589 cat >conftest.
$ac_ext <<_ACEOF
8592 cat confdefs.h
>>conftest.
$ac_ext
8593 cat >>conftest.
$ac_ext <<_ACEOF
8594 /* end confdefs.h. */
8595 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
8596 For example, HP-UX 11i <limits.h> declares gettimeofday. */
8597 #define $ac_func innocuous_$ac_func
8599 /* System header to define __stub macros and hopefully few prototypes,
8600 which can conflict with char $ac_func (); below.
8601 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
8602 <limits.h> exists even on freestanding compilers. */
8605 # include <limits.h>
8607 # include <assert.h>
8612 /* Override any gcc2 internal prototype to avoid an error. */
8617 /* We use char because int might match the return type of a gcc2
8618 builtin and then its argument prototype would still apply. */
8620 /* The GNU C library defines this for functions which it implements
8621 to always fail with ENOSYS. Some functions are actually named
8622 something starting with __ and the normal name is an alias. */
8623 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
8626 char (*f) () = $ac_func;
8635 return f != $ac_func;
8640 rm -f conftest.
$ac_objext conftest
$ac_exeext
8641 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
8642 (eval $ac_link) 2>conftest.er1
8644 grep -v '^ *+' conftest.er1
>conftest.err
8646 cat conftest.err
>&5
8647 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8648 (exit $ac_status); } &&
8649 { ac_try
='test -z "$ac_c_werror_flag"
8650 || test ! -s conftest.err'
8651 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8654 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8655 (exit $ac_status); }; } &&
8656 { ac_try
='test -s conftest$ac_exeext'
8657 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8660 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8661 (exit $ac_status); }; }; then
8662 eval "$as_ac_var=yes"
8664 echo "$as_me: failed program was:" >&5
8665 sed 's/^/| /' conftest.
$ac_ext >&5
8667 eval "$as_ac_var=no"
8669 rm -f conftest.err conftest.
$ac_objext \
8670 conftest
$ac_exeext conftest.
$ac_ext
8672 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
8673 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
8674 if test `eval echo '${'$as_ac_var'}'` = yes; then
8675 cat >>confdefs.h
<<_ACEOF
8676 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
8684 for ac_func
in inet_aton inet_addr
8686 as_ac_var
=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
8687 echo "$as_me:$LINENO: checking for $ac_func" >&5
8688 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
8689 if eval "test \"\${$as_ac_var+set}\" = set"; then
8690 echo $ECHO_N "(cached) $ECHO_C" >&6
8692 if test x
$gcc_no_link = xyes
; then
8693 { { echo "$as_me:$LINENO: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&5
8694 echo "$as_me: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&2;}
8695 { (exit 1); exit 1; }; }
8697 cat >conftest.
$ac_ext <<_ACEOF
8700 cat confdefs.h
>>conftest.
$ac_ext
8701 cat >>conftest.
$ac_ext <<_ACEOF
8702 /* end confdefs.h. */
8703 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
8704 For example, HP-UX 11i <limits.h> declares gettimeofday. */
8705 #define $ac_func innocuous_$ac_func
8707 /* System header to define __stub macros and hopefully few prototypes,
8708 which can conflict with char $ac_func (); below.
8709 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
8710 <limits.h> exists even on freestanding compilers. */
8713 # include <limits.h>
8715 # include <assert.h>
8720 /* Override any gcc2 internal prototype to avoid an error. */
8725 /* We use char because int might match the return type of a gcc2
8726 builtin and then its argument prototype would still apply. */
8728 /* The GNU C library defines this for functions which it implements
8729 to always fail with ENOSYS. Some functions are actually named
8730 something starting with __ and the normal name is an alias. */
8731 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
8734 char (*f) () = $ac_func;
8743 return f != $ac_func;
8748 rm -f conftest.
$ac_objext conftest
$ac_exeext
8749 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
8750 (eval $ac_link) 2>conftest.er1
8752 grep -v '^ *+' conftest.er1
>conftest.err
8754 cat conftest.err
>&5
8755 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8756 (exit $ac_status); } &&
8757 { ac_try
='test -z "$ac_c_werror_flag"
8758 || test ! -s conftest.err'
8759 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8762 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8763 (exit $ac_status); }; } &&
8764 { ac_try
='test -s conftest$ac_exeext'
8765 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8768 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8769 (exit $ac_status); }; }; then
8770 eval "$as_ac_var=yes"
8772 echo "$as_me: failed program was:" >&5
8773 sed 's/^/| /' conftest.
$ac_ext >&5
8775 eval "$as_ac_var=no"
8777 rm -f conftest.err conftest.
$ac_objext \
8778 conftest
$ac_exeext conftest.
$ac_ext
8780 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
8781 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
8782 if test `eval echo '${'$as_ac_var'}'` = yes; then
8783 cat >>confdefs.h
<<_ACEOF
8784 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
8790 echo "$as_me:$LINENO: checking for ANSI C header files" >&5
8791 echo $ECHO_N "checking for ANSI C header files... $ECHO_C" >&6
8792 if test "${ac_cv_header_stdc+set}" = set; then
8793 echo $ECHO_N "(cached) $ECHO_C" >&6
8795 cat >conftest.
$ac_ext <<_ACEOF
8798 cat confdefs.h
>>conftest.
$ac_ext
8799 cat >>conftest.
$ac_ext <<_ACEOF
8800 /* end confdefs.h. */
8814 rm -f conftest.
$ac_objext
8815 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
8816 (eval $ac_compile) 2>conftest.er1
8818 grep -v '^ *+' conftest.er1
>conftest.err
8820 cat conftest.err
>&5
8821 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8822 (exit $ac_status); } &&
8823 { ac_try
='test -z "$ac_c_werror_flag"
8824 || test ! -s conftest.err'
8825 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8828 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8829 (exit $ac_status); }; } &&
8830 { ac_try
='test -s conftest.$ac_objext'
8831 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8834 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8835 (exit $ac_status); }; }; then
8836 ac_cv_header_stdc
=yes
8838 echo "$as_me: failed program was:" >&5
8839 sed 's/^/| /' conftest.
$ac_ext >&5
8841 ac_cv_header_stdc
=no
8843 rm -f conftest.err conftest.
$ac_objext conftest.
$ac_ext
8845 if test $ac_cv_header_stdc = yes; then
8846 # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
8847 cat >conftest.
$ac_ext <<_ACEOF
8850 cat confdefs.h
>>conftest.
$ac_ext
8851 cat >>conftest.
$ac_ext <<_ACEOF
8852 /* end confdefs.h. */
8856 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
8857 $EGREP "memchr" >/dev
/null
2>&1; then
8860 ac_cv_header_stdc
=no
8866 if test $ac_cv_header_stdc = yes; then
8867 # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
8868 cat >conftest.
$ac_ext <<_ACEOF
8871 cat confdefs.h
>>conftest.
$ac_ext
8872 cat >>conftest.
$ac_ext <<_ACEOF
8873 /* end confdefs.h. */
8877 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
8878 $EGREP "free" >/dev
/null
2>&1; then
8881 ac_cv_header_stdc
=no
8887 if test $ac_cv_header_stdc = yes; then
8888 # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
8889 if test "$cross_compiling" = yes; then
8892 cat >conftest.
$ac_ext <<_ACEOF
8895 cat confdefs.h
>>conftest.
$ac_ext
8896 cat >>conftest.
$ac_ext <<_ACEOF
8897 /* end confdefs.h. */
8899 #if ((' ' & 0x0FF) == 0x020)
8900 # define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
8901 # define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
8903 # define ISLOWER(c) \
8904 (('a' <= (c) && (c) <= 'i') \
8905 || ('j' <= (c) && (c) <= 'r') \
8906 || ('s' <= (c) && (c) <= 'z'))
8907 # define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
8910 #define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
8915 for (i = 0; i < 256; i++)
8916 if (XOR (islower (i), ISLOWER (i))
8917 || toupper (i) != TOUPPER (i))
8922 rm -f conftest
$ac_exeext
8923 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
8924 (eval $ac_link) 2>&5
8926 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8927 (exit $ac_status); } && { ac_try
='./conftest$ac_exeext'
8928 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8931 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8932 (exit $ac_status); }; }; then
8935 echo "$as_me: program exited with status $ac_status" >&5
8936 echo "$as_me: failed program was:" >&5
8937 sed 's/^/| /' conftest.
$ac_ext >&5
8940 ac_cv_header_stdc
=no
8942 rm -f core
*.core gmon.out bb.out conftest
$ac_exeext conftest.
$ac_objext conftest.
$ac_ext
8946 echo "$as_me:$LINENO: result: $ac_cv_header_stdc" >&5
8947 echo "${ECHO_T}$ac_cv_header_stdc" >&6
8948 if test $ac_cv_header_stdc = yes; then
8950 cat >>confdefs.h
<<\_ACEOF
8951 #define STDC_HEADERS 1
8956 # On IRIX 5.3, sys/types and inttypes.h are conflicting.
8966 for ac_header
in sys
/types.h sys
/stat.h stdlib.h string.h memory.h
strings.h \
8967 inttypes.h stdint.h unistd.h
8969 as_ac_Header
=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
8970 echo "$as_me:$LINENO: checking for $ac_header" >&5
8971 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
8972 if eval "test \"\${$as_ac_Header+set}\" = set"; then
8973 echo $ECHO_N "(cached) $ECHO_C" >&6
8975 cat >conftest.
$ac_ext <<_ACEOF
8978 cat confdefs.h
>>conftest.
$ac_ext
8979 cat >>conftest.
$ac_ext <<_ACEOF
8980 /* end confdefs.h. */
8981 $ac_includes_default
8983 #include <$ac_header>
8985 rm -f conftest.
$ac_objext
8986 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
8987 (eval $ac_compile) 2>conftest.er1
8989 grep -v '^ *+' conftest.er1
>conftest.err
8991 cat conftest.err
>&5
8992 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8993 (exit $ac_status); } &&
8994 { ac_try
='test -z "$ac_c_werror_flag"
8995 || test ! -s conftest.err'
8996 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8999 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9000 (exit $ac_status); }; } &&
9001 { ac_try
='test -s conftest.$ac_objext'
9002 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9005 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9006 (exit $ac_status); }; }; then
9007 eval "$as_ac_Header=yes"
9009 echo "$as_me: failed program was:" >&5
9010 sed 's/^/| /' conftest.
$ac_ext >&5
9012 eval "$as_ac_Header=no"
9014 rm -f conftest.err conftest.
$ac_objext conftest.
$ac_ext
9016 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
9017 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
9018 if test `eval echo '${'$as_ac_Header'}'` = yes; then
9019 cat >>confdefs.h
<<_ACEOF
9020 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
9031 for ac_header
in execinfo.h unistd.h dlfcn.h
9033 as_ac_Header
=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
9034 if eval "test \"\${$as_ac_Header+set}\" = set"; then
9035 echo "$as_me:$LINENO: checking for $ac_header" >&5
9036 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
9037 if eval "test \"\${$as_ac_Header+set}\" = set"; then
9038 echo $ECHO_N "(cached) $ECHO_C" >&6
9040 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
9041 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
9043 # Is the header compilable?
9044 echo "$as_me:$LINENO: checking $ac_header usability" >&5
9045 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
9046 cat >conftest.
$ac_ext <<_ACEOF
9049 cat confdefs.h
>>conftest.
$ac_ext
9050 cat >>conftest.
$ac_ext <<_ACEOF
9051 /* end confdefs.h. */
9052 $ac_includes_default
9053 #include <$ac_header>
9055 rm -f conftest.
$ac_objext
9056 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
9057 (eval $ac_compile) 2>conftest.er1
9059 grep -v '^ *+' conftest.er1
>conftest.err
9061 cat conftest.err
>&5
9062 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9063 (exit $ac_status); } &&
9064 { ac_try
='test -z "$ac_c_werror_flag"
9065 || test ! -s conftest.err'
9066 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9069 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9070 (exit $ac_status); }; } &&
9071 { ac_try
='test -s conftest.$ac_objext'
9072 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9075 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9076 (exit $ac_status); }; }; then
9077 ac_header_compiler
=yes
9079 echo "$as_me: failed program was:" >&5
9080 sed 's/^/| /' conftest.
$ac_ext >&5
9082 ac_header_compiler
=no
9084 rm -f conftest.err conftest.
$ac_objext conftest.
$ac_ext
9085 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
9086 echo "${ECHO_T}$ac_header_compiler" >&6
9088 # Is the header present?
9089 echo "$as_me:$LINENO: checking $ac_header presence" >&5
9090 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
9091 cat >conftest.
$ac_ext <<_ACEOF
9094 cat confdefs.h
>>conftest.
$ac_ext
9095 cat >>conftest.
$ac_ext <<_ACEOF
9096 /* end confdefs.h. */
9097 #include <$ac_header>
9099 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
9100 (eval $ac_cpp conftest.
$ac_ext) 2>conftest.er1
9102 grep -v '^ *+' conftest.er1
>conftest.err
9104 cat conftest.err
>&5
9105 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9106 (exit $ac_status); } >/dev
/null
; then
9107 if test -s conftest.err
; then
9108 ac_cpp_err
=$ac_c_preproc_warn_flag
9109 ac_cpp_err
=$ac_cpp_err$ac_c_werror_flag
9116 if test -z "$ac_cpp_err"; then
9117 ac_header_preproc
=yes
9119 echo "$as_me: failed program was:" >&5
9120 sed 's/^/| /' conftest.
$ac_ext >&5
9122 ac_header_preproc
=no
9124 rm -f conftest.err conftest.
$ac_ext
9125 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
9126 echo "${ECHO_T}$ac_header_preproc" >&6
9128 # So? What about this header?
9129 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
9131 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
9132 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
9133 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
9134 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
9135 ac_header_preproc
=yes
9138 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
9139 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
9140 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
9141 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
9142 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
9143 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
9144 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
9145 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
9146 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
9147 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
9148 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
9149 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
9152 ## ---------------------------------- ##
9153 ## Report this to the libjava lists. ##
9154 ## ---------------------------------- ##
9157 sed "s/^/$as_me: WARNING: /" >&2
9160 echo "$as_me:$LINENO: checking for $ac_header" >&5
9161 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
9162 if eval "test \"\${$as_ac_Header+set}\" = set"; then
9163 echo $ECHO_N "(cached) $ECHO_C" >&6
9165 eval "$as_ac_Header=\$ac_header_preproc"
9167 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
9168 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
9171 if test `eval echo '${'$as_ac_Header'}'` = yes; then
9172 cat >>confdefs.h
<<_ACEOF
9173 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
9180 echo "$as_me:$LINENO: checking for backtrace" >&5
9181 echo $ECHO_N "checking for backtrace... $ECHO_C" >&6
9182 if test "${ac_cv_func_backtrace+set}" = set; then
9183 echo $ECHO_N "(cached) $ECHO_C" >&6
9185 if test x
$gcc_no_link = xyes
; then
9186 { { echo "$as_me:$LINENO: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&5
9187 echo "$as_me: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&2;}
9188 { (exit 1); exit 1; }; }
9190 cat >conftest.
$ac_ext <<_ACEOF
9193 cat confdefs.h
>>conftest.
$ac_ext
9194 cat >>conftest.
$ac_ext <<_ACEOF
9195 /* end confdefs.h. */
9196 /* Define backtrace to an innocuous variant, in case <limits.h> declares backtrace.
9197 For example, HP-UX 11i <limits.h> declares gettimeofday. */
9198 #define backtrace innocuous_backtrace
9200 /* System header to define __stub macros and hopefully few prototypes,
9201 which can conflict with char backtrace (); below.
9202 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
9203 <limits.h> exists even on freestanding compilers. */
9206 # include <limits.h>
9208 # include <assert.h>
9213 /* Override any gcc2 internal prototype to avoid an error. */
9218 /* We use char because int might match the return type of a gcc2
9219 builtin and then its argument prototype would still apply. */
9221 /* The GNU C library defines this for functions which it implements
9222 to always fail with ENOSYS. Some functions are actually named
9223 something starting with __ and the normal name is an alias. */
9224 #if defined (__stub_backtrace) || defined (__stub___backtrace)
9227 char (*f) () = backtrace;
9236 return f != backtrace;
9241 rm -f conftest.
$ac_objext conftest
$ac_exeext
9242 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
9243 (eval $ac_link) 2>conftest.er1
9245 grep -v '^ *+' conftest.er1
>conftest.err
9247 cat conftest.err
>&5
9248 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9249 (exit $ac_status); } &&
9250 { ac_try
='test -z "$ac_c_werror_flag"
9251 || test ! -s conftest.err'
9252 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9255 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9256 (exit $ac_status); }; } &&
9257 { ac_try
='test -s conftest$ac_exeext'
9258 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9261 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9262 (exit $ac_status); }; }; then
9263 ac_cv_func_backtrace
=yes
9265 echo "$as_me: failed program was:" >&5
9266 sed 's/^/| /' conftest.
$ac_ext >&5
9268 ac_cv_func_backtrace
=no
9270 rm -f conftest.err conftest.
$ac_objext \
9271 conftest
$ac_exeext conftest.
$ac_ext
9273 echo "$as_me:$LINENO: result: $ac_cv_func_backtrace" >&5
9274 echo "${ECHO_T}$ac_cv_func_backtrace" >&6
9275 if test $ac_cv_func_backtrace = yes; then
9279 # Has broken backtrace()
9282 # Has broken backtrace(), but we supply our own.
9283 if test -d sysdep
; then true
; else mkdir
-p sysdep
; fi
9284 supply_backtrace
=yes
9286 cat >>confdefs.h
<<\_ACEOF
9287 #define HAVE_BACKTRACE 1
9293 cat >>confdefs.h
<<\_ACEOF
9294 #define HAVE_BACKTRACE 1
9304 # Has backtrace() defined in libgcj itself
9306 cat >>confdefs.h
<<\_ACEOF
9307 #define HAVE_BACKTRACE 1
9316 echo "$as_me:$LINENO: checking for dladdr in -ldl" >&5
9317 echo $ECHO_N "checking for dladdr in -ldl... $ECHO_C" >&6
9318 if test "${ac_cv_lib_dl_dladdr+set}" = set; then
9319 echo $ECHO_N "(cached) $ECHO_C" >&6
9321 ac_check_lib_save_LIBS
=$LIBS
9323 if test x
$gcc_no_link = xyes
; then
9324 { { echo "$as_me:$LINENO: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&5
9325 echo "$as_me: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&2;}
9326 { (exit 1); exit 1; }; }
9328 cat >conftest.
$ac_ext <<_ACEOF
9331 cat confdefs.h
>>conftest.
$ac_ext
9332 cat >>conftest.
$ac_ext <<_ACEOF
9333 /* end confdefs.h. */
9335 /* Override any gcc2 internal prototype to avoid an error. */
9339 /* We use char because int might match the return type of a gcc2
9340 builtin and then its argument prototype would still apply. */
9350 rm -f conftest.
$ac_objext conftest
$ac_exeext
9351 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
9352 (eval $ac_link) 2>conftest.er1
9354 grep -v '^ *+' conftest.er1
>conftest.err
9356 cat conftest.err
>&5
9357 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9358 (exit $ac_status); } &&
9359 { ac_try
='test -z "$ac_c_werror_flag"
9360 || test ! -s conftest.err'
9361 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9364 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9365 (exit $ac_status); }; } &&
9366 { ac_try
='test -s conftest$ac_exeext'
9367 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9370 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9371 (exit $ac_status); }; }; then
9372 ac_cv_lib_dl_dladdr
=yes
9374 echo "$as_me: failed program was:" >&5
9375 sed 's/^/| /' conftest.
$ac_ext >&5
9377 ac_cv_lib_dl_dladdr
=no
9379 rm -f conftest.err conftest.
$ac_objext \
9380 conftest
$ac_exeext conftest.
$ac_ext
9381 LIBS
=$ac_check_lib_save_LIBS
9383 echo "$as_me:$LINENO: result: $ac_cv_lib_dl_dladdr" >&5
9384 echo "${ECHO_T}$ac_cv_lib_dl_dladdr" >&6
9385 if test $ac_cv_lib_dl_dladdr = yes; then
9387 if test "x${disable_dladdr}" = "xyes"; then
9392 cat >>confdefs.h
<<\_ACEOF
9393 #define HAVE_DLADDR 1
9400 if test x
"$build" = x
"$host"; then
9401 echo "$as_me:$LINENO: checking for /proc/self/exe" >&5
9402 echo $ECHO_N "checking for /proc/self/exe... $ECHO_C" >&6
9403 if test "${ac_cv_file__proc_self_exe+set}" = set; then
9404 echo $ECHO_N "(cached) $ECHO_C" >&6
9406 test "$cross_compiling" = yes &&
9407 { { echo "$as_me:$LINENO: error: cannot check for file existence when cross compiling" >&5
9408 echo "$as_me: error: cannot check for file existence when cross compiling" >&2;}
9409 { (exit 1); exit 1; }; }
9410 if test -r "/proc/self/exe"; then
9411 ac_cv_file__proc_self_exe
=yes
9413 ac_cv_file__proc_self_exe
=no
9416 echo "$as_me:$LINENO: result: $ac_cv_file__proc_self_exe" >&5
9417 echo "${ECHO_T}$ac_cv_file__proc_self_exe" >&6
9418 if test $ac_cv_file__proc_self_exe = yes; then
9420 cat >>confdefs.h
<<_ACEOF
9421 #define HAVE__PROC_SELF_EXE 1
9426 cat >>confdefs.h
<<\_ACEOF
9427 #define HAVE_PROC_SELF_EXE 1
9436 cat >>confdefs.h
<<\_ACEOF
9437 #define HAVE_PROC_SELF_EXE 1
9445 if test "X$prefix" = "XNONE"; then
9446 acl_final_prefix
="$ac_default_prefix"
9448 acl_final_prefix
="$prefix"
9450 if test "X$exec_prefix" = "XNONE"; then
9451 acl_final_exec_prefix
='${prefix}'
9453 acl_final_exec_prefix
="$exec_prefix"
9455 acl_save_prefix
="$prefix"
9456 prefix
="$acl_final_prefix"
9457 eval acl_final_exec_prefix
=\"$acl_final_exec_prefix\"
9458 prefix
="$acl_save_prefix"
9461 # Check whether --with-gnu-ld or --without-gnu-ld was given.
9462 if test "${with_gnu_ld+set}" = set; then
9463 withval
="$with_gnu_ld"
9464 test "$withval" = no || with_gnu_ld
=yes
9468 # Prepare PATH_SEPARATOR.
9469 # The user is always right.
9470 if test "${PATH_SEPARATOR+set}" != set; then
9471 echo "#! /bin/sh" >conf$$.sh
9472 echo "exit 0" >>conf$$.sh
9474 if (PATH
="/nonexistent;."; conf$$.sh
) >/dev
/null
2>&1; then
9482 if test "$GCC" = yes; then
9483 # Check if gcc -print-prog-name=ld gives a path.
9484 echo "$as_me:$LINENO: checking for ld used by GCC" >&5
9485 echo $ECHO_N "checking for ld used by GCC... $ECHO_C" >&6
9488 # gcc leaves a trailing carriage return which upsets mingw
9489 ac_prog
=`($CC -print-prog-name=ld) 2>&5 | tr -d '\015'` ;;
9491 ac_prog
=`($CC -print-prog-name=ld) 2>&5` ;;
9494 # Accept absolute paths.
9495 [\\/]* |
[A-Za-z
]:[\\/]*)
9496 re_direlt
='/[^/][^/]*/\.\./'
9497 # Canonicalize the path of ld
9498 ac_prog
=`echo $ac_prog| sed 's%\\\\%/%g'`
9499 while echo $ac_prog |
grep "$re_direlt" > /dev
/null
2>&1; do
9500 ac_prog
=`echo $ac_prog| sed "s%$re_direlt%/%"`
9502 test -z "$LD" && LD
="$ac_prog"
9505 # If it fails, then pretend we aren't using GCC.
9509 # If it is relative, then search for the first ld in PATH.
9513 elif test "$with_gnu_ld" = yes; then
9514 echo "$as_me:$LINENO: checking for GNU ld" >&5
9515 echo $ECHO_N "checking for GNU ld... $ECHO_C" >&6
9517 echo "$as_me:$LINENO: checking for non-GNU ld" >&5
9518 echo $ECHO_N "checking for non-GNU ld... $ECHO_C" >&6
9520 if test "${acl_cv_path_LD+set}" = set; then
9521 echo $ECHO_N "(cached) $ECHO_C" >&6
9523 if test -z "$LD"; then
9524 IFS
="${IFS= }"; ac_save_ifs="$IFS"; IFS="${IFS}${PATH_SEPARATOR-:}"
9525 for ac_dir
in $PATH; do
9526 test -z "$ac_dir" && ac_dir
=.
9527 if test -f "$ac_dir/$ac_prog" ||
test -f "$ac_dir/$ac_prog$ac_exeext"; then
9528 acl_cv_path_LD
="$ac_dir/$ac_prog"
9529 # Check to see if the program is GNU ld. I'd rather use --version,
9530 # but apparently some GNU ld's only accept -v.
9531 # Break only if it was the GNU/non-GNU ld that we prefer.
9532 if "$acl_cv_path_LD" -v 2>&1 < /dev
/null |
egrep '(GNU|with BFD)' > /dev
/null
; then
9533 test "$with_gnu_ld" != no
&& break
9535 test "$with_gnu_ld" != yes && break
9541 acl_cv_path_LD
="$LD" # Let the user override the test with a path.
9545 LD
="$acl_cv_path_LD"
9546 if test -n "$LD"; then
9547 echo "$as_me:$LINENO: result: $LD" >&5
9548 echo "${ECHO_T}$LD" >&6
9550 echo "$as_me:$LINENO: result: no" >&5
9551 echo "${ECHO_T}no" >&6
9553 test -z "$LD" && { { echo "$as_me:$LINENO: error: no acceptable ld found in \$PATH" >&5
9554 echo "$as_me: error: no acceptable ld found in \$PATH" >&2;}
9555 { (exit 1); exit 1; }; }
9556 echo "$as_me:$LINENO: checking if the linker ($LD) is GNU ld" >&5
9557 echo $ECHO_N "checking if the linker ($LD) is GNU ld... $ECHO_C" >&6
9558 if test "${acl_cv_prog_gnu_ld+set}" = set; then
9559 echo $ECHO_N "(cached) $ECHO_C" >&6
9561 # I'd rather use --version here, but apparently some GNU ld's only accept -v.
9562 if $LD -v 2>&1 </dev
/null |
egrep '(GNU|with BFD)' 1>&5; then
9563 acl_cv_prog_gnu_ld
=yes
9565 acl_cv_prog_gnu_ld
=no
9568 echo "$as_me:$LINENO: result: $acl_cv_prog_gnu_ld" >&5
9569 echo "${ECHO_T}$acl_cv_prog_gnu_ld" >&6
9570 with_gnu_ld
=$acl_cv_prog_gnu_ld
9574 echo "$as_me:$LINENO: checking for shared library run path origin" >&5
9575 echo $ECHO_N "checking for shared library run path origin... $ECHO_C" >&6
9576 if test "${acl_cv_rpath+set}" = set; then
9577 echo $ECHO_N "(cached) $ECHO_C" >&6
9580 CC
="$CC" GCC
="$GCC" LDFLAGS
="$LDFLAGS" LD
="$LD" with_gnu_ld
="$with_gnu_ld" \
9581 ${CONFIG_SHELL-/bin/sh} "$ac_aux_dir/config.rpath" "$host" > conftest.sh
9587 echo "$as_me:$LINENO: result: $acl_cv_rpath" >&5
9588 echo "${ECHO_T}$acl_cv_rpath" >&6
9590 libext
="$acl_cv_libext"
9591 shlibext
="$acl_cv_shlibext"
9592 hardcode_libdir_flag_spec
="$acl_cv_hardcode_libdir_flag_spec"
9593 hardcode_libdir_separator
="$acl_cv_hardcode_libdir_separator"
9594 hardcode_direct
="$acl_cv_hardcode_direct"
9595 hardcode_minus_L
="$acl_cv_hardcode_minus_L"
9596 # Check whether --enable-rpath or --disable-rpath was given.
9597 if test "${enable_rpath+set}" = set; then
9598 enableval
="$enable_rpath"
9612 acl_save_prefix
="$prefix"
9613 prefix
="$acl_final_prefix"
9614 acl_save_exec_prefix
="$exec_prefix"
9615 exec_prefix
="$acl_final_exec_prefix"
9617 eval additional_includedir
=\"$includedir\"
9618 eval additional_libdir
=\"$libdir\"
9620 exec_prefix
="$acl_save_exec_prefix"
9621 prefix
="$acl_save_prefix"
9624 # Check whether --with-libiconv-prefix or --without-libiconv-prefix was given.
9625 if test "${with_libiconv_prefix+set}" = set; then
9626 withval
="$with_libiconv_prefix"
9628 if test "X$withval" = "Xno"; then
9631 if test "X$withval" = "X"; then
9633 acl_save_prefix
="$prefix"
9634 prefix
="$acl_final_prefix"
9635 acl_save_exec_prefix
="$exec_prefix"
9636 exec_prefix
="$acl_final_exec_prefix"
9638 eval additional_includedir
=\"$includedir\"
9639 eval additional_libdir
=\"$libdir\"
9641 exec_prefix
="$acl_save_exec_prefix"
9642 prefix
="$acl_save_prefix"
9645 additional_includedir
="$withval/include"
9646 additional_libdir
="$withval/lib"
9656 names_already_handled
=
9657 names_next_round
='iconv '
9658 while test -n "$names_next_round"; do
9659 names_this_round
="$names_next_round"
9661 for name
in $names_this_round; do
9663 for n
in $names_already_handled; do
9664 if test "$n" = "$name"; then
9669 if test -z "$already_handled"; then
9670 names_already_handled
="$names_already_handled $name"
9671 uppername
=`echo "$name" | sed -e 'y|abcdefghijklmnopqrstuvwxyz./-|ABCDEFGHIJKLMNOPQRSTUVWXYZ___|'`
9672 eval value
=\"\
$HAVE_LIB$uppername\"
9673 if test -n "$value"; then
9674 if test "$value" = yes; then
9675 eval value
=\"\
$LIB$uppername\"
9676 test -z "$value" || LIBICONV
="${LIBICONV}${LIBICONV:+ }$value"
9677 eval value
=\"\
$LTLIB$uppername\"
9678 test -z "$value" || LTLIBICONV
="${LTLIBICONV}${LTLIBICONV:+ }$value"
9687 if test $use_additional = yes; then
9688 if test -n "$shlibext" && test -f "$additional_libdir/lib$name.$shlibext"; then
9689 found_dir
="$additional_libdir"
9690 found_so
="$additional_libdir/lib$name.$shlibext"
9691 if test -f "$additional_libdir/lib$name.la"; then
9692 found_la
="$additional_libdir/lib$name.la"
9695 if test -f "$additional_libdir/lib$name.$libext"; then
9696 found_dir
="$additional_libdir"
9697 found_a
="$additional_libdir/lib$name.$libext"
9698 if test -f "$additional_libdir/lib$name.la"; then
9699 found_la
="$additional_libdir/lib$name.la"
9704 if test "X$found_dir" = "X"; then
9705 for x
in $LDFLAGS $LTLIBICONV; do
9707 acl_save_prefix
="$prefix"
9708 prefix
="$acl_final_prefix"
9709 acl_save_exec_prefix
="$exec_prefix"
9710 exec_prefix
="$acl_final_exec_prefix"
9712 exec_prefix
="$acl_save_exec_prefix"
9713 prefix
="$acl_save_prefix"
9717 dir
=`echo "X$x" | sed -e 's/^X-L//'`
9718 if test -n "$shlibext" && test -f "$dir/lib$name.$shlibext"; then
9720 found_so
="$dir/lib$name.$shlibext"
9721 if test -f "$dir/lib$name.la"; then
9722 found_la
="$dir/lib$name.la"
9725 if test -f "$dir/lib$name.$libext"; then
9727 found_a
="$dir/lib$name.$libext"
9728 if test -f "$dir/lib$name.la"; then
9729 found_la
="$dir/lib$name.la"
9735 if test "X$found_dir" != "X"; then
9740 if test "X$found_dir" != "X"; then
9741 LTLIBICONV
="${LTLIBICONV}${LTLIBICONV:+ }-L$found_dir -l$name"
9742 if test "X$found_so" != "X"; then
9743 if test "$enable_rpath" = no ||
test "X$found_dir" = "X/usr/lib"; then
9744 LIBICONV
="${LIBICONV}${LIBICONV:+ }$found_so"
9747 for x
in $ltrpathdirs; do
9748 if test "X$x" = "X$found_dir"; then
9753 if test -z "$haveit"; then
9754 ltrpathdirs
="$ltrpathdirs $found_dir"
9756 if test "$hardcode_direct" = yes; then
9757 LIBICONV
="${LIBICONV}${LIBICONV:+ }$found_so"
9759 if test -n "$hardcode_libdir_flag_spec" && test "$hardcode_minus_L" = no
; then
9760 LIBICONV
="${LIBICONV}${LIBICONV:+ }$found_so"
9762 for x
in $rpathdirs; do
9763 if test "X$x" = "X$found_dir"; then
9768 if test -z "$haveit"; then
9769 rpathdirs
="$rpathdirs $found_dir"
9773 for x
in $LDFLAGS $LIBICONV; do
9775 acl_save_prefix
="$prefix"
9776 prefix
="$acl_final_prefix"
9777 acl_save_exec_prefix
="$exec_prefix"
9778 exec_prefix
="$acl_final_exec_prefix"
9780 exec_prefix
="$acl_save_exec_prefix"
9781 prefix
="$acl_save_prefix"
9783 if test "X$x" = "X-L$found_dir"; then
9788 if test -z "$haveit"; then
9789 LIBICONV
="${LIBICONV}${LIBICONV:+ }-L$found_dir"
9791 if test "$hardcode_minus_L" != no
; then
9792 LIBICONV
="${LIBICONV}${LIBICONV:+ }$found_so"
9794 LIBICONV
="${LIBICONV}${LIBICONV:+ }-l$name"
9800 if test "X$found_a" != "X"; then
9801 LIBICONV
="${LIBICONV}${LIBICONV:+ }$found_a"
9803 LIBICONV
="${LIBICONV}${LIBICONV:+ }-L$found_dir -l$name"
9806 additional_includedir
=
9807 case "$found_dir" in
9809 basedir
=`echo "X$found_dir" | sed -e 's,^X,,' -e 's,/lib/*$,,'`
9810 additional_includedir
="$basedir/include"
9813 if test "X$additional_includedir" != "X"; then
9814 if test "X$additional_includedir" != "X/usr/include"; then
9816 if test "X$additional_includedir" = "X/usr/local/include"; then
9817 if test -n "$GCC"; then
9819 linux
*) haveit
=yes;;
9823 if test -z "$haveit"; then
9824 for x
in $CPPFLAGS $INCICONV; do
9826 acl_save_prefix
="$prefix"
9827 prefix
="$acl_final_prefix"
9828 acl_save_exec_prefix
="$exec_prefix"
9829 exec_prefix
="$acl_final_exec_prefix"
9831 exec_prefix
="$acl_save_exec_prefix"
9832 prefix
="$acl_save_prefix"
9834 if test "X$x" = "X-I$additional_includedir"; then
9839 if test -z "$haveit"; then
9840 if test -d "$additional_includedir"; then
9841 INCICONV
="${INCICONV}${INCICONV:+ }-I$additional_includedir"
9847 if test -n "$found_la"; then
9848 save_libdir
="$libdir"
9850 */* |
*\\*) .
"$found_la" ;;
9851 *) .
"./$found_la" ;;
9853 libdir
="$save_libdir"
9854 for dep
in $dependency_libs; do
9857 additional_libdir
=`echo "X$dep" | sed -e 's/^X-L//'`
9858 if test "X$additional_libdir" != "X/usr/lib"; then
9860 if test "X$additional_libdir" = "X/usr/local/lib"; then
9861 if test -n "$GCC"; then
9863 linux
*) haveit
=yes;;
9867 if test -z "$haveit"; then
9869 for x
in $LDFLAGS $LIBICONV; do
9871 acl_save_prefix
="$prefix"
9872 prefix
="$acl_final_prefix"
9873 acl_save_exec_prefix
="$exec_prefix"
9874 exec_prefix
="$acl_final_exec_prefix"
9876 exec_prefix
="$acl_save_exec_prefix"
9877 prefix
="$acl_save_prefix"
9879 if test "X$x" = "X-L$additional_libdir"; then
9884 if test -z "$haveit"; then
9885 if test -d "$additional_libdir"; then
9886 LIBICONV
="${LIBICONV}${LIBICONV:+ }-L$additional_libdir"
9890 for x
in $LDFLAGS $LTLIBICONV; do
9892 acl_save_prefix
="$prefix"
9893 prefix
="$acl_final_prefix"
9894 acl_save_exec_prefix
="$exec_prefix"
9895 exec_prefix
="$acl_final_exec_prefix"
9897 exec_prefix
="$acl_save_exec_prefix"
9898 prefix
="$acl_save_prefix"
9900 if test "X$x" = "X-L$additional_libdir"; then
9905 if test -z "$haveit"; then
9906 if test -d "$additional_libdir"; then
9907 LTLIBICONV
="${LTLIBICONV}${LTLIBICONV:+ }-L$additional_libdir"
9914 dir
=`echo "X$dep" | sed -e 's/^X-R//'`
9915 if test "$enable_rpath" != no
; then
9917 for x
in $rpathdirs; do
9918 if test "X$x" = "X$dir"; then
9923 if test -z "$haveit"; then
9924 rpathdirs
="$rpathdirs $dir"
9927 for x
in $ltrpathdirs; do
9928 if test "X$x" = "X$dir"; then
9933 if test -z "$haveit"; then
9934 ltrpathdirs
="$ltrpathdirs $dir"
9939 names_next_round
="$names_next_round "`echo "X$dep" | sed -e 's/^X-l//'`
9942 names_next_round
="$names_next_round "`echo "X$dep" | sed -e 's,^X.*/,,' -e 's,^lib,,' -e 's,\.la$,,'`
9945 LIBICONV
="${LIBICONV}${LIBICONV:+ }$dep"
9946 LTLIBICONV
="${LTLIBICONV}${LTLIBICONV:+ }$dep"
9952 LIBICONV
="${LIBICONV}${LIBICONV:+ }-l$name"
9953 LTLIBICONV
="${LTLIBICONV}${LTLIBICONV:+ }-l$name"
9959 if test "X$rpathdirs" != "X"; then
9960 if test -n "$hardcode_libdir_separator"; then
9962 for found_dir
in $rpathdirs; do
9963 alldirs
="${alldirs}${alldirs:+$hardcode_libdir_separator}$found_dir"
9965 acl_save_libdir
="$libdir"
9967 eval flag
=\"$hardcode_libdir_flag_spec\"
9968 libdir
="$acl_save_libdir"
9969 LIBICONV
="${LIBICONV}${LIBICONV:+ }$flag"
9971 for found_dir
in $rpathdirs; do
9972 acl_save_libdir
="$libdir"
9974 eval flag
=\"$hardcode_libdir_flag_spec\"
9975 libdir
="$acl_save_libdir"
9976 LIBICONV
="${LIBICONV}${LIBICONV:+ }$flag"
9980 if test "X$ltrpathdirs" != "X"; then
9981 for found_dir
in $ltrpathdirs; do
9982 LTLIBICONV
="${LTLIBICONV}${LTLIBICONV:+ }-R$found_dir"
9992 am_save_CPPFLAGS
="$CPPFLAGS"
9994 for element
in $INCICONV; do
9996 for x
in $CPPFLAGS; do
9998 acl_save_prefix
="$prefix"
9999 prefix
="$acl_final_prefix"
10000 acl_save_exec_prefix
="$exec_prefix"
10001 exec_prefix
="$acl_final_exec_prefix"
10003 exec_prefix
="$acl_save_exec_prefix"
10004 prefix
="$acl_save_prefix"
10006 if test "X$x" = "X$element"; then
10011 if test -z "$haveit"; then
10012 CPPFLAGS
="${CPPFLAGS}${CPPFLAGS:+ }$element"
10017 echo "$as_me:$LINENO: checking for iconv" >&5
10018 echo $ECHO_N "checking for iconv... $ECHO_C" >&6
10019 if test "${am_cv_func_iconv+set}" = set; then
10020 echo $ECHO_N "(cached) $ECHO_C" >&6
10023 am_cv_func_iconv
="no, consider installing GNU libiconv"
10025 if test x
$gcc_no_link = xyes
; then
10026 { { echo "$as_me:$LINENO: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&5
10027 echo "$as_me: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&2;}
10028 { (exit 1); exit 1; }; }
10030 cat >conftest.
$ac_ext <<_ACEOF
10033 cat confdefs.h
>>conftest.
$ac_ext
10034 cat >>conftest.
$ac_ext <<_ACEOF
10035 /* end confdefs.h. */
10036 #include <stdlib.h>
10041 iconv_t cd = iconv_open("","");
10042 iconv(cd,NULL,NULL,NULL,NULL);
10048 rm -f conftest.
$ac_objext conftest
$ac_exeext
10049 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
10050 (eval $ac_link) 2>conftest.er1
10052 grep -v '^ *+' conftest.er1
>conftest.err
10054 cat conftest.err
>&5
10055 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10056 (exit $ac_status); } &&
10057 { ac_try
='test -z "$ac_c_werror_flag"
10058 || test ! -s conftest.err'
10059 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10060 (eval $ac_try) 2>&5
10062 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10063 (exit $ac_status); }; } &&
10064 { ac_try
='test -s conftest$ac_exeext'
10065 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10066 (eval $ac_try) 2>&5
10068 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10069 (exit $ac_status); }; }; then
10070 am_cv_func_iconv
=yes
10072 echo "$as_me: failed program was:" >&5
10073 sed 's/^/| /' conftest.
$ac_ext >&5
10076 rm -f conftest.err conftest.
$ac_objext \
10077 conftest
$ac_exeext conftest.
$ac_ext
10078 if test "$am_cv_func_iconv" != yes; then
10079 am_save_LIBS
="$LIBS"
10080 LIBS
="$LIBS $LIBICONV"
10081 if test x
$gcc_no_link = xyes
; then
10082 { { echo "$as_me:$LINENO: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&5
10083 echo "$as_me: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&2;}
10084 { (exit 1); exit 1; }; }
10086 cat >conftest.
$ac_ext <<_ACEOF
10089 cat confdefs.h
>>conftest.
$ac_ext
10090 cat >>conftest.
$ac_ext <<_ACEOF
10091 /* end confdefs.h. */
10092 #include <stdlib.h>
10097 iconv_t cd = iconv_open("","");
10098 iconv(cd,NULL,NULL,NULL,NULL);
10104 rm -f conftest.
$ac_objext conftest
$ac_exeext
10105 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
10106 (eval $ac_link) 2>conftest.er1
10108 grep -v '^ *+' conftest.er1
>conftest.err
10110 cat conftest.err
>&5
10111 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10112 (exit $ac_status); } &&
10113 { ac_try
='test -z "$ac_c_werror_flag"
10114 || test ! -s conftest.err'
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); }; } &&
10120 { ac_try
='test -s conftest$ac_exeext'
10121 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10122 (eval $ac_try) 2>&5
10124 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10125 (exit $ac_status); }; }; then
10126 am_cv_lib_iconv
=yes
10127 am_cv_func_iconv
=yes
10129 echo "$as_me: failed program was:" >&5
10130 sed 's/^/| /' conftest.
$ac_ext >&5
10133 rm -f conftest.err conftest.
$ac_objext \
10134 conftest
$ac_exeext conftest.
$ac_ext
10135 LIBS
="$am_save_LIBS"
10139 echo "$as_me:$LINENO: result: $am_cv_func_iconv" >&5
10140 echo "${ECHO_T}$am_cv_func_iconv" >&6
10141 if test "$am_cv_func_iconv" = yes; then
10143 cat >>confdefs.h
<<\_ACEOF
10144 #define HAVE_ICONV 1
10148 if test "$am_cv_lib_iconv" = yes; then
10149 echo "$as_me:$LINENO: checking how to link with libiconv" >&5
10150 echo $ECHO_N "checking how to link with libiconv... $ECHO_C" >&6
10151 echo "$as_me:$LINENO: result: $LIBICONV" >&5
10152 echo "${ECHO_T}$LIBICONV" >&6
10154 CPPFLAGS
="$am_save_CPPFLAGS"
10161 if test "$am_cv_func_iconv" = yes; then
10162 echo "$as_me:$LINENO: checking for iconv declaration" >&5
10163 echo $ECHO_N "checking for iconv declaration... $ECHO_C" >&6
10164 if test "${am_cv_proto_iconv+set}" = set; then
10165 echo $ECHO_N "(cached) $ECHO_C" >&6
10168 cat >conftest.
$ac_ext <<_ACEOF
10171 cat confdefs.h
>>conftest.
$ac_ext
10172 cat >>conftest.
$ac_ext <<_ACEOF
10173 /* end confdefs.h. */
10175 #include <stdlib.h>
10181 #if defined(__STDC__) || defined(__cplusplus)
10182 size_t iconv (iconv_t cd, char * *inbuf, size_t *inbytesleft, char * *outbuf, size_t *outbytesleft);
10195 rm -f conftest.
$ac_objext
10196 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
10197 (eval $ac_compile) 2>conftest.er1
10199 grep -v '^ *+' conftest.er1
>conftest.err
10201 cat conftest.err
>&5
10202 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10203 (exit $ac_status); } &&
10204 { ac_try
='test -z "$ac_c_werror_flag"
10205 || test ! -s conftest.err'
10206 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10207 (eval $ac_try) 2>&5
10209 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10210 (exit $ac_status); }; } &&
10211 { ac_try
='test -s conftest.$ac_objext'
10212 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10213 (eval $ac_try) 2>&5
10215 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10216 (exit $ac_status); }; }; then
10217 am_cv_proto_iconv_arg1
=""
10219 echo "$as_me: failed program was:" >&5
10220 sed 's/^/| /' conftest.
$ac_ext >&5
10222 am_cv_proto_iconv_arg1
="const"
10224 rm -f conftest.err conftest.
$ac_objext conftest.
$ac_ext
10225 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);"
10228 am_cv_proto_iconv
=`echo "$am_cv_proto_iconv" | tr -s ' ' | sed -e 's/( /(/'`
10229 echo "$as_me:$LINENO: result: ${ac_t:-
10230 }$am_cv_proto_iconv" >&5
10231 echo "${ECHO_T}${ac_t:-
10232 }$am_cv_proto_iconv" >&6
10234 cat >>confdefs.h
<<_ACEOF
10235 #define ICONV_CONST $am_cv_proto_iconv_arg1
10241 echo "$as_me:$LINENO: checking for LC_MESSAGES" >&5
10242 echo $ECHO_N "checking for LC_MESSAGES... $ECHO_C" >&6
10243 if test "${am_cv_val_LC_MESSAGES+set}" = set; then
10244 echo $ECHO_N "(cached) $ECHO_C" >&6
10246 if test x
$gcc_no_link = xyes
; then
10247 { { echo "$as_me:$LINENO: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&5
10248 echo "$as_me: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&2;}
10249 { (exit 1); exit 1; }; }
10251 cat >conftest.
$ac_ext <<_ACEOF
10254 cat confdefs.h
>>conftest.
$ac_ext
10255 cat >>conftest.
$ac_ext <<_ACEOF
10256 /* end confdefs.h. */
10257 #include <locale.h>
10266 rm -f conftest.
$ac_objext conftest
$ac_exeext
10267 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
10268 (eval $ac_link) 2>conftest.er1
10270 grep -v '^ *+' conftest.er1
>conftest.err
10272 cat conftest.err
>&5
10273 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10274 (exit $ac_status); } &&
10275 { ac_try
='test -z "$ac_c_werror_flag"
10276 || test ! -s conftest.err'
10277 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10278 (eval $ac_try) 2>&5
10280 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10281 (exit $ac_status); }; } &&
10282 { ac_try
='test -s conftest$ac_exeext'
10283 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10284 (eval $ac_try) 2>&5
10286 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10287 (exit $ac_status); }; }; then
10288 am_cv_val_LC_MESSAGES
=yes
10290 echo "$as_me: failed program was:" >&5
10291 sed 's/^/| /' conftest.
$ac_ext >&5
10293 am_cv_val_LC_MESSAGES
=no
10295 rm -f conftest.err conftest.
$ac_objext \
10296 conftest
$ac_exeext conftest.
$ac_ext
10298 echo "$as_me:$LINENO: result: $am_cv_val_LC_MESSAGES" >&5
10299 echo "${ECHO_T}$am_cv_val_LC_MESSAGES" >&6
10300 if test $am_cv_val_LC_MESSAGES = yes; then
10302 cat >>confdefs.h
<<\_ACEOF
10303 #define HAVE_LC_MESSAGES 1
10308 echo "$as_me:$LINENO: checking whether struct tm is in sys/time.h or time.h" >&5
10309 echo $ECHO_N "checking whether struct tm is in sys/time.h or time.h... $ECHO_C" >&6
10310 if test "${ac_cv_struct_tm+set}" = set; then
10311 echo $ECHO_N "(cached) $ECHO_C" >&6
10313 cat >conftest.
$ac_ext <<_ACEOF
10316 cat confdefs.h
>>conftest.
$ac_ext
10317 cat >>conftest.
$ac_ext <<_ACEOF
10318 /* end confdefs.h. */
10319 #include <sys/types.h>
10325 struct tm *tp; tp->tm_sec;
10330 rm -f conftest.
$ac_objext
10331 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
10332 (eval $ac_compile) 2>conftest.er1
10334 grep -v '^ *+' conftest.er1
>conftest.err
10336 cat conftest.err
>&5
10337 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10338 (exit $ac_status); } &&
10339 { ac_try
='test -z "$ac_c_werror_flag"
10340 || test ! -s conftest.err'
10341 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10342 (eval $ac_try) 2>&5
10344 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10345 (exit $ac_status); }; } &&
10346 { ac_try
='test -s conftest.$ac_objext'
10347 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10348 (eval $ac_try) 2>&5
10350 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10351 (exit $ac_status); }; }; then
10352 ac_cv_struct_tm
=time.h
10354 echo "$as_me: failed program was:" >&5
10355 sed 's/^/| /' conftest.
$ac_ext >&5
10357 ac_cv_struct_tm
=sys
/time.h
10359 rm -f conftest.err conftest.
$ac_objext conftest.
$ac_ext
10361 echo "$as_me:$LINENO: result: $ac_cv_struct_tm" >&5
10362 echo "${ECHO_T}$ac_cv_struct_tm" >&6
10363 if test $ac_cv_struct_tm = sys
/time.h
; then
10365 cat >>confdefs.h
<<\_ACEOF
10366 #define TM_IN_SYS_TIME 1
10371 echo "$as_me:$LINENO: checking for struct tm.tm_zone" >&5
10372 echo $ECHO_N "checking for struct tm.tm_zone... $ECHO_C" >&6
10373 if test "${ac_cv_member_struct_tm_tm_zone+set}" = set; then
10374 echo $ECHO_N "(cached) $ECHO_C" >&6
10376 cat >conftest.
$ac_ext <<_ACEOF
10379 cat confdefs.h
>>conftest.
$ac_ext
10380 cat >>conftest.
$ac_ext <<_ACEOF
10381 /* end confdefs.h. */
10382 #include <sys/types.h>
10383 #include <$ac_cv_struct_tm>
10389 static struct tm ac_aggr;
10390 if (ac_aggr.tm_zone)
10396 rm -f conftest.
$ac_objext
10397 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
10398 (eval $ac_compile) 2>conftest.er1
10400 grep -v '^ *+' conftest.er1
>conftest.err
10402 cat conftest.err
>&5
10403 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10404 (exit $ac_status); } &&
10405 { ac_try
='test -z "$ac_c_werror_flag"
10406 || test ! -s conftest.err'
10407 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10408 (eval $ac_try) 2>&5
10410 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10411 (exit $ac_status); }; } &&
10412 { ac_try
='test -s conftest.$ac_objext'
10413 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10414 (eval $ac_try) 2>&5
10416 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10417 (exit $ac_status); }; }; then
10418 ac_cv_member_struct_tm_tm_zone
=yes
10420 echo "$as_me: failed program was:" >&5
10421 sed 's/^/| /' conftest.
$ac_ext >&5
10423 cat >conftest.
$ac_ext <<_ACEOF
10426 cat confdefs.h
>>conftest.
$ac_ext
10427 cat >>conftest.
$ac_ext <<_ACEOF
10428 /* end confdefs.h. */
10429 #include <sys/types.h>
10430 #include <$ac_cv_struct_tm>
10436 static struct tm ac_aggr;
10437 if (sizeof ac_aggr.tm_zone)
10443 rm -f conftest.
$ac_objext
10444 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
10445 (eval $ac_compile) 2>conftest.er1
10447 grep -v '^ *+' conftest.er1
>conftest.err
10449 cat conftest.err
>&5
10450 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10451 (exit $ac_status); } &&
10452 { ac_try
='test -z "$ac_c_werror_flag"
10453 || test ! -s conftest.err'
10454 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10455 (eval $ac_try) 2>&5
10457 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10458 (exit $ac_status); }; } &&
10459 { ac_try
='test -s conftest.$ac_objext'
10460 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10461 (eval $ac_try) 2>&5
10463 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10464 (exit $ac_status); }; }; then
10465 ac_cv_member_struct_tm_tm_zone
=yes
10467 echo "$as_me: failed program was:" >&5
10468 sed 's/^/| /' conftest.
$ac_ext >&5
10470 ac_cv_member_struct_tm_tm_zone
=no
10472 rm -f conftest.err conftest.
$ac_objext conftest.
$ac_ext
10474 rm -f conftest.err conftest.
$ac_objext conftest.
$ac_ext
10476 echo "$as_me:$LINENO: result: $ac_cv_member_struct_tm_tm_zone" >&5
10477 echo "${ECHO_T}$ac_cv_member_struct_tm_tm_zone" >&6
10478 if test $ac_cv_member_struct_tm_tm_zone = yes; then
10480 cat >>confdefs.h
<<_ACEOF
10481 #define HAVE_STRUCT_TM_TM_ZONE 1
10487 if test "$ac_cv_member_struct_tm_tm_zone" = yes; then
10489 cat >>confdefs.h
<<\_ACEOF
10490 #define HAVE_TM_ZONE 1
10494 echo "$as_me:$LINENO: checking for tzname" >&5
10495 echo $ECHO_N "checking for tzname... $ECHO_C" >&6
10496 if test "${ac_cv_var_tzname+set}" = set; then
10497 echo $ECHO_N "(cached) $ECHO_C" >&6
10499 if test x
$gcc_no_link = xyes
; then
10500 { { echo "$as_me:$LINENO: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&5
10501 echo "$as_me: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&2;}
10502 { (exit 1); exit 1; }; }
10504 cat >conftest.
$ac_ext <<_ACEOF
10507 cat confdefs.h
>>conftest.
$ac_ext
10508 cat >>conftest.
$ac_ext <<_ACEOF
10509 /* end confdefs.h. */
10511 #ifndef tzname /* For SGI. */
10512 extern char *tzname[]; /* RS6000 and others reject char **tzname. */
10523 rm -f conftest.
$ac_objext conftest
$ac_exeext
10524 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
10525 (eval $ac_link) 2>conftest.er1
10527 grep -v '^ *+' conftest.er1
>conftest.err
10529 cat conftest.err
>&5
10530 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10531 (exit $ac_status); } &&
10532 { ac_try
='test -z "$ac_c_werror_flag"
10533 || test ! -s conftest.err'
10534 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10535 (eval $ac_try) 2>&5
10537 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10538 (exit $ac_status); }; } &&
10539 { ac_try
='test -s conftest$ac_exeext'
10540 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10541 (eval $ac_try) 2>&5
10543 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10544 (exit $ac_status); }; }; then
10545 ac_cv_var_tzname
=yes
10547 echo "$as_me: failed program was:" >&5
10548 sed 's/^/| /' conftest.
$ac_ext >&5
10550 ac_cv_var_tzname
=no
10552 rm -f conftest.err conftest.
$ac_objext \
10553 conftest
$ac_exeext conftest.
$ac_ext
10555 echo "$as_me:$LINENO: result: $ac_cv_var_tzname" >&5
10556 echo "${ECHO_T}$ac_cv_var_tzname" >&6
10557 if test $ac_cv_var_tzname = yes; then
10559 cat >>confdefs.h
<<\_ACEOF
10560 #define HAVE_TZNAME 1
10569 for ac_func
in gethostbyname_r
10571 as_ac_var
=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
10572 echo "$as_me:$LINENO: checking for $ac_func" >&5
10573 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
10574 if eval "test \"\${$as_ac_var+set}\" = set"; then
10575 echo $ECHO_N "(cached) $ECHO_C" >&6
10577 if test x
$gcc_no_link = xyes
; then
10578 { { echo "$as_me:$LINENO: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&5
10579 echo "$as_me: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&2;}
10580 { (exit 1); exit 1; }; }
10582 cat >conftest.
$ac_ext <<_ACEOF
10585 cat confdefs.h
>>conftest.
$ac_ext
10586 cat >>conftest.
$ac_ext <<_ACEOF
10587 /* end confdefs.h. */
10588 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
10589 For example, HP-UX 11i <limits.h> declares gettimeofday. */
10590 #define $ac_func innocuous_$ac_func
10592 /* System header to define __stub macros and hopefully few prototypes,
10593 which can conflict with char $ac_func (); below.
10594 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
10595 <limits.h> exists even on freestanding compilers. */
10598 # include <limits.h>
10600 # include <assert.h>
10605 /* Override any gcc2 internal prototype to avoid an error. */
10610 /* We use char because int might match the return type of a gcc2
10611 builtin and then its argument prototype would still apply. */
10613 /* The GNU C library defines this for functions which it implements
10614 to always fail with ENOSYS. Some functions are actually named
10615 something starting with __ and the normal name is an alias. */
10616 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
10619 char (*f) () = $ac_func;
10628 return f != $ac_func;
10633 rm -f conftest.
$ac_objext conftest
$ac_exeext
10634 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
10635 (eval $ac_link) 2>conftest.er1
10637 grep -v '^ *+' conftest.er1
>conftest.err
10639 cat conftest.err
>&5
10640 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10641 (exit $ac_status); } &&
10642 { ac_try
='test -z "$ac_c_werror_flag"
10643 || test ! -s conftest.err'
10644 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10645 (eval $ac_try) 2>&5
10647 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10648 (exit $ac_status); }; } &&
10649 { ac_try
='test -s conftest$ac_exeext'
10650 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10651 (eval $ac_try) 2>&5
10653 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10654 (exit $ac_status); }; }; then
10655 eval "$as_ac_var=yes"
10657 echo "$as_me: failed program was:" >&5
10658 sed 's/^/| /' conftest.
$ac_ext >&5
10660 eval "$as_ac_var=no"
10662 rm -f conftest.err conftest.
$ac_objext \
10663 conftest
$ac_exeext conftest.
$ac_ext
10665 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
10666 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
10667 if test `eval echo '${'$as_ac_var'}'` = yes; then
10668 cat >>confdefs.h
<<_ACEOF
10669 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
10673 cat >>confdefs.h
<<\_ACEOF
10674 #define HAVE_GETHOSTBYNAME_R 1
10677 # There are two different kinds of gethostbyname_r.
10678 # We look for the one that returns `int'.
10679 # Hopefully this check is robust enough.
10680 cat >conftest.
$ac_ext <<_ACEOF
10683 cat confdefs.h
>>conftest.
$ac_ext
10684 cat >>conftest.
$ac_ext <<_ACEOF
10685 /* end confdefs.h. */
10689 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
10690 $EGREP "int.*gethostbyname_r" >/dev
/null
2>&1; then
10693 cat >>confdefs.h
<<\_ACEOF
10694 #define GETHOSTBYNAME_R_RETURNS_INT 1
10701 case " $GCINCS " in
10702 *" -D_REENTRANT "*) ;;
10704 echo "$as_me:$LINENO: checking whether gethostbyname_r declaration requires -D_REENTRANT" >&5
10705 echo $ECHO_N "checking whether gethostbyname_r declaration requires -D_REENTRANT... $ECHO_C" >&6
10706 if test "${libjava_cv_gethostbyname_r_needs_reentrant+set}" = set; then
10707 echo $ECHO_N "(cached) $ECHO_C" >&6
10710 ac_cpp
='$CXXCPP $CPPFLAGS'
10711 ac_compile
='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
10712 ac_link
='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
10713 ac_compiler_gnu
=$ac_cv_cxx_compiler_gnu
10715 cat >conftest.
$ac_ext <<_ACEOF
10718 cat confdefs.h
>>conftest.
$ac_ext
10719 cat >>conftest.
$ac_ext <<_ACEOF
10720 /* end confdefs.h. */
10725 gethostbyname_r("", 0, 0);
10730 rm -f conftest.
$ac_objext
10731 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
10732 (eval $ac_compile) 2>conftest.er1
10734 grep -v '^ *+' conftest.er1
>conftest.err
10736 cat conftest.err
>&5
10737 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10738 (exit $ac_status); } &&
10739 { ac_try
='test -z "$ac_cxx_werror_flag"
10740 || test ! -s conftest.err'
10741 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10742 (eval $ac_try) 2>&5
10744 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10745 (exit $ac_status); }; } &&
10746 { ac_try
='test -s conftest.$ac_objext'
10747 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10748 (eval $ac_try) 2>&5
10750 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10751 (exit $ac_status); }; }; then
10752 libjava_cv_gethostbyname_r_needs_reentrant
=no
10754 echo "$as_me: failed program was:" >&5
10755 sed 's/^/| /' conftest.
$ac_ext >&5
10757 CPPFLAGS_SAVE
="$CPPFLAGS"
10758 CPPFLAGS
="$CPPFLAGS -D_REENTRANT"
10759 cat >conftest.
$ac_ext <<_ACEOF
10762 cat confdefs.h
>>conftest.
$ac_ext
10763 cat >>conftest.
$ac_ext <<_ACEOF
10764 /* end confdefs.h. */
10769 gethostbyname_r("", 0, 0);
10774 rm -f conftest.
$ac_objext
10775 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
10776 (eval $ac_compile) 2>conftest.er1
10778 grep -v '^ *+' conftest.er1
>conftest.err
10780 cat conftest.err
>&5
10781 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10782 (exit $ac_status); } &&
10783 { ac_try
='test -z "$ac_cxx_werror_flag"
10784 || test ! -s conftest.err'
10785 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10786 (eval $ac_try) 2>&5
10788 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10789 (exit $ac_status); }; } &&
10790 { ac_try
='test -s conftest.$ac_objext'
10791 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10792 (eval $ac_try) 2>&5
10794 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10795 (exit $ac_status); }; }; then
10796 libjava_cv_gethostbyname_r_needs_reentrant
=yes
10798 echo "$as_me: failed program was:" >&5
10799 sed 's/^/| /' conftest.
$ac_ext >&5
10801 libjava_cv_gethostbyname_r_needs_reentrant
=fail
10803 rm -f conftest.err conftest.
$ac_objext conftest.
$ac_ext
10804 CPPFLAGS
="$CPPFLAGS_SAVE"
10807 rm -f conftest.err conftest.
$ac_objext conftest.
$ac_ext
10809 ac_cpp
='$CPP $CPPFLAGS'
10810 ac_compile
='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
10811 ac_link
='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
10812 ac_compiler_gnu
=$ac_cv_c_compiler_gnu
10816 echo "$as_me:$LINENO: result: $libjava_cv_gethostbyname_r_needs_reentrant" >&5
10817 echo "${ECHO_T}$libjava_cv_gethostbyname_r_needs_reentrant" >&6
10818 if test "x$libjava_cv_gethostbyname_r_needs_reentrant" = xyes
; then
10820 cat >>confdefs.h
<<\_ACEOF
10821 #define _REENTRANT 1
10828 echo "$as_me:$LINENO: checking for struct hostent_data" >&5
10829 echo $ECHO_N "checking for struct hostent_data... $ECHO_C" >&6
10830 if test "${libjava_cv_struct_hostent_data+set}" = set; then
10831 echo $ECHO_N "(cached) $ECHO_C" >&6
10833 cat >conftest.
$ac_ext <<_ACEOF
10836 cat confdefs.h
>>conftest.
$ac_ext
10837 cat >>conftest.
$ac_ext <<_ACEOF
10838 /* end confdefs.h. */
10840 #if GETHOSTBYNAME_R_NEEDS_REENTRANT && !defined(_REENTRANT)
10841 # define _REENTRANT 1
10847 struct hostent_data data;
10852 rm -f conftest.
$ac_objext
10853 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
10854 (eval $ac_compile) 2>conftest.er1
10856 grep -v '^ *+' conftest.er1
>conftest.err
10858 cat conftest.err
>&5
10859 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10860 (exit $ac_status); } &&
10861 { ac_try
='test -z "$ac_c_werror_flag"
10862 || test ! -s conftest.err'
10863 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10864 (eval $ac_try) 2>&5
10866 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10867 (exit $ac_status); }; } &&
10868 { ac_try
='test -s conftest.$ac_objext'
10869 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10870 (eval $ac_try) 2>&5
10872 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10873 (exit $ac_status); }; }; then
10874 libjava_cv_struct_hostent_data
=yes
10876 echo "$as_me: failed program was:" >&5
10877 sed 's/^/| /' conftest.
$ac_ext >&5
10879 libjava_cv_struct_hostent_data
=no
10881 rm -f conftest.err conftest.
$ac_objext conftest.
$ac_ext
10883 echo "$as_me:$LINENO: result: $libjava_cv_struct_hostent_data" >&5
10884 echo "${ECHO_T}$libjava_cv_struct_hostent_data" >&6
10885 if test "x$libjava_cv_struct_hostent_data" = xyes
; then
10887 cat >>confdefs.h
<<\_ACEOF
10888 #define HAVE_STRUCT_HOSTENT_DATA 1
10897 # FIXME: libjava source code expects to find a prototype for
10898 # gethostbyaddr_r in netdb.h. The outer check ensures that
10899 # HAVE_GETHOSTBYADDR_R will not be defined if the prototype fails
10900 # to exist where expected. (The root issue: AC_CHECK_FUNCS assumes C
10901 # linkage check is enough, yet C++ code requires proper prototypes.)
10902 cat >conftest.
$ac_ext <<_ACEOF
10905 cat confdefs.h
>>conftest.
$ac_ext
10906 cat >>conftest.
$ac_ext <<_ACEOF
10907 /* end confdefs.h. */
10911 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
10912 $EGREP "gethostbyaddr_r" >/dev
/null
2>&1; then
10915 for ac_func
in gethostbyaddr_r
10917 as_ac_var
=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
10918 echo "$as_me:$LINENO: checking for $ac_func" >&5
10919 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
10920 if eval "test \"\${$as_ac_var+set}\" = set"; then
10921 echo $ECHO_N "(cached) $ECHO_C" >&6
10923 if test x
$gcc_no_link = xyes
; then
10924 { { echo "$as_me:$LINENO: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&5
10925 echo "$as_me: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&2;}
10926 { (exit 1); exit 1; }; }
10928 cat >conftest.
$ac_ext <<_ACEOF
10931 cat confdefs.h
>>conftest.
$ac_ext
10932 cat >>conftest.
$ac_ext <<_ACEOF
10933 /* end confdefs.h. */
10934 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
10935 For example, HP-UX 11i <limits.h> declares gettimeofday. */
10936 #define $ac_func innocuous_$ac_func
10938 /* System header to define __stub macros and hopefully few prototypes,
10939 which can conflict with char $ac_func (); below.
10940 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
10941 <limits.h> exists even on freestanding compilers. */
10944 # include <limits.h>
10946 # include <assert.h>
10951 /* Override any gcc2 internal prototype to avoid an error. */
10956 /* We use char because int might match the return type of a gcc2
10957 builtin and then its argument prototype would still apply. */
10959 /* The GNU C library defines this for functions which it implements
10960 to always fail with ENOSYS. Some functions are actually named
10961 something starting with __ and the normal name is an alias. */
10962 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
10965 char (*f) () = $ac_func;
10974 return f != $ac_func;
10979 rm -f conftest.
$ac_objext conftest
$ac_exeext
10980 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
10981 (eval $ac_link) 2>conftest.er1
10983 grep -v '^ *+' conftest.er1
>conftest.err
10985 cat conftest.err
>&5
10986 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10987 (exit $ac_status); } &&
10988 { ac_try
='test -z "$ac_c_werror_flag"
10989 || test ! -s conftest.err'
10990 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10991 (eval $ac_try) 2>&5
10993 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10994 (exit $ac_status); }; } &&
10995 { ac_try
='test -s conftest$ac_exeext'
10996 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10997 (eval $ac_try) 2>&5
10999 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11000 (exit $ac_status); }; }; then
11001 eval "$as_ac_var=yes"
11003 echo "$as_me: failed program was:" >&5
11004 sed 's/^/| /' conftest.
$ac_ext >&5
11006 eval "$as_ac_var=no"
11008 rm -f conftest.err conftest.
$ac_objext \
11009 conftest
$ac_exeext conftest.
$ac_ext
11011 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
11012 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
11013 if test `eval echo '${'$as_ac_var'}'` = yes; then
11014 cat >>confdefs.h
<<_ACEOF
11015 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
11019 cat >>confdefs.h
<<\_ACEOF
11020 #define HAVE_GETHOSTBYADDR_R 1
11023 # There are two different kinds of gethostbyaddr_r.
11024 # We look for the one that returns `int'.
11025 # Hopefully this check is robust enough.
11026 cat >conftest.
$ac_ext <<_ACEOF
11029 cat confdefs.h
>>conftest.
$ac_ext
11030 cat >>conftest.
$ac_ext <<_ACEOF
11031 /* end confdefs.h. */
11035 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
11036 $EGREP "int.*gethostbyaddr_r" >/dev
/null
2>&1; then
11039 cat >>confdefs.h
<<\_ACEOF
11040 #define GETHOSTBYADDR_R_RETURNS_INT 1
11054 for ac_func
in gethostname
11056 as_ac_var
=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
11057 echo "$as_me:$LINENO: checking for $ac_func" >&5
11058 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
11059 if eval "test \"\${$as_ac_var+set}\" = set"; then
11060 echo $ECHO_N "(cached) $ECHO_C" >&6
11062 if test x
$gcc_no_link = xyes
; then
11063 { { echo "$as_me:$LINENO: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&5
11064 echo "$as_me: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&2;}
11065 { (exit 1); exit 1; }; }
11067 cat >conftest.
$ac_ext <<_ACEOF
11070 cat confdefs.h
>>conftest.
$ac_ext
11071 cat >>conftest.
$ac_ext <<_ACEOF
11072 /* end confdefs.h. */
11073 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
11074 For example, HP-UX 11i <limits.h> declares gettimeofday. */
11075 #define $ac_func innocuous_$ac_func
11077 /* System header to define __stub macros and hopefully few prototypes,
11078 which can conflict with char $ac_func (); below.
11079 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
11080 <limits.h> exists even on freestanding compilers. */
11083 # include <limits.h>
11085 # include <assert.h>
11090 /* Override any gcc2 internal prototype to avoid an error. */
11095 /* We use char because int might match the return type of a gcc2
11096 builtin and then its argument prototype would still apply. */
11098 /* The GNU C library defines this for functions which it implements
11099 to always fail with ENOSYS. Some functions are actually named
11100 something starting with __ and the normal name is an alias. */
11101 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
11104 char (*f) () = $ac_func;
11113 return f != $ac_func;
11118 rm -f conftest.
$ac_objext conftest
$ac_exeext
11119 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
11120 (eval $ac_link) 2>conftest.er1
11122 grep -v '^ *+' conftest.er1
>conftest.err
11124 cat conftest.err
>&5
11125 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11126 (exit $ac_status); } &&
11127 { ac_try
='test -z "$ac_c_werror_flag"
11128 || test ! -s conftest.err'
11129 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11130 (eval $ac_try) 2>&5
11132 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11133 (exit $ac_status); }; } &&
11134 { ac_try
='test -s conftest$ac_exeext'
11135 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11136 (eval $ac_try) 2>&5
11138 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11139 (exit $ac_status); }; }; then
11140 eval "$as_ac_var=yes"
11142 echo "$as_me: failed program was:" >&5
11143 sed 's/^/| /' conftest.
$ac_ext >&5
11145 eval "$as_ac_var=no"
11147 rm -f conftest.err conftest.
$ac_objext \
11148 conftest
$ac_exeext conftest.
$ac_ext
11150 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
11151 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
11152 if test `eval echo '${'$as_ac_var'}'` = yes; then
11153 cat >>confdefs.h
<<_ACEOF
11154 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
11158 cat >>confdefs.h
<<\_ACEOF
11159 #define HAVE_GETHOSTNAME 1
11162 cat >conftest.
$ac_ext <<_ACEOF
11165 cat confdefs.h
>>conftest.
$ac_ext
11166 cat >>conftest.
$ac_ext <<_ACEOF
11167 /* end confdefs.h. */
11168 #include <unistd.h>
11171 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
11172 $EGREP "gethostname" >/dev
/null
2>&1; then
11175 cat >>confdefs.h
<<\_ACEOF
11176 #define HAVE_GETHOSTNAME_DECL 1
11187 for ac_func
in usleep
11189 as_ac_var
=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
11190 echo "$as_me:$LINENO: checking for $ac_func" >&5
11191 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
11192 if eval "test \"\${$as_ac_var+set}\" = set"; then
11193 echo $ECHO_N "(cached) $ECHO_C" >&6
11195 if test x
$gcc_no_link = xyes
; then
11196 { { echo "$as_me:$LINENO: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&5
11197 echo "$as_me: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&2;}
11198 { (exit 1); exit 1; }; }
11200 cat >conftest.
$ac_ext <<_ACEOF
11203 cat confdefs.h
>>conftest.
$ac_ext
11204 cat >>conftest.
$ac_ext <<_ACEOF
11205 /* end confdefs.h. */
11206 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
11207 For example, HP-UX 11i <limits.h> declares gettimeofday. */
11208 #define $ac_func innocuous_$ac_func
11210 /* System header to define __stub macros and hopefully few prototypes,
11211 which can conflict with char $ac_func (); below.
11212 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
11213 <limits.h> exists even on freestanding compilers. */
11216 # include <limits.h>
11218 # include <assert.h>
11223 /* Override any gcc2 internal prototype to avoid an error. */
11228 /* We use char because int might match the return type of a gcc2
11229 builtin and then its argument prototype would still apply. */
11231 /* The GNU C library defines this for functions which it implements
11232 to always fail with ENOSYS. Some functions are actually named
11233 something starting with __ and the normal name is an alias. */
11234 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
11237 char (*f) () = $ac_func;
11246 return f != $ac_func;
11251 rm -f conftest.
$ac_objext conftest
$ac_exeext
11252 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
11253 (eval $ac_link) 2>conftest.er1
11255 grep -v '^ *+' conftest.er1
>conftest.err
11257 cat conftest.err
>&5
11258 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11259 (exit $ac_status); } &&
11260 { ac_try
='test -z "$ac_c_werror_flag"
11261 || test ! -s conftest.err'
11262 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11263 (eval $ac_try) 2>&5
11265 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11266 (exit $ac_status); }; } &&
11267 { ac_try
='test -s conftest$ac_exeext'
11268 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11269 (eval $ac_try) 2>&5
11271 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11272 (exit $ac_status); }; }; then
11273 eval "$as_ac_var=yes"
11275 echo "$as_me: failed program was:" >&5
11276 sed 's/^/| /' conftest.
$ac_ext >&5
11278 eval "$as_ac_var=no"
11280 rm -f conftest.err conftest.
$ac_objext \
11281 conftest
$ac_exeext conftest.
$ac_ext
11283 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
11284 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
11285 if test `eval echo '${'$as_ac_var'}'` = yes; then
11286 cat >>confdefs.h
<<_ACEOF
11287 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
11290 cat >conftest.
$ac_ext <<_ACEOF
11293 cat confdefs.h
>>conftest.
$ac_ext
11294 cat >>conftest.
$ac_ext <<_ACEOF
11295 /* end confdefs.h. */
11296 #include <unistd.h>
11299 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
11300 $EGREP "usleep" >/dev
/null
2>&1; then
11303 cat >>confdefs.h
<<\_ACEOF
11304 #define HAVE_USLEEP_DECL 1
11314 # Look for these functions in the thread library, but only bother
11315 # if using POSIX threads.
11316 if test "$THREADS" = posix
; then
11318 LIBS
="$LIBS $THREADLIBS"
11319 # Some POSIX thread systems don't have pthread_mutexattr_settype.
11323 for ac_func
in pthread_mutexattr_settype pthread_mutexattr_setkind_np
11325 as_ac_var
=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
11326 echo "$as_me:$LINENO: checking for $ac_func" >&5
11327 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
11328 if eval "test \"\${$as_ac_var+set}\" = set"; then
11329 echo $ECHO_N "(cached) $ECHO_C" >&6
11331 if test x
$gcc_no_link = xyes
; then
11332 { { echo "$as_me:$LINENO: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&5
11333 echo "$as_me: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&2;}
11334 { (exit 1); exit 1; }; }
11336 cat >conftest.
$ac_ext <<_ACEOF
11339 cat confdefs.h
>>conftest.
$ac_ext
11340 cat >>conftest.
$ac_ext <<_ACEOF
11341 /* end confdefs.h. */
11342 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
11343 For example, HP-UX 11i <limits.h> declares gettimeofday. */
11344 #define $ac_func innocuous_$ac_func
11346 /* System header to define __stub macros and hopefully few prototypes,
11347 which can conflict with char $ac_func (); below.
11348 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
11349 <limits.h> exists even on freestanding compilers. */
11352 # include <limits.h>
11354 # include <assert.h>
11359 /* Override any gcc2 internal prototype to avoid an error. */
11364 /* We use char because int might match the return type of a gcc2
11365 builtin and then its argument prototype would still apply. */
11367 /* The GNU C library defines this for functions which it implements
11368 to always fail with ENOSYS. Some functions are actually named
11369 something starting with __ and the normal name is an alias. */
11370 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
11373 char (*f) () = $ac_func;
11382 return f != $ac_func;
11387 rm -f conftest.
$ac_objext conftest
$ac_exeext
11388 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
11389 (eval $ac_link) 2>conftest.er1
11391 grep -v '^ *+' conftest.er1
>conftest.err
11393 cat conftest.err
>&5
11394 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11395 (exit $ac_status); } &&
11396 { ac_try
='test -z "$ac_c_werror_flag"
11397 || test ! -s conftest.err'
11398 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11399 (eval $ac_try) 2>&5
11401 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11402 (exit $ac_status); }; } &&
11403 { ac_try
='test -s conftest$ac_exeext'
11404 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11405 (eval $ac_try) 2>&5
11407 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11408 (exit $ac_status); }; }; then
11409 eval "$as_ac_var=yes"
11411 echo "$as_me: failed program was:" >&5
11412 sed 's/^/| /' conftest.
$ac_ext >&5
11414 eval "$as_ac_var=no"
11416 rm -f conftest.err conftest.
$ac_objext \
11417 conftest
$ac_exeext conftest.
$ac_ext
11419 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
11420 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
11421 if test `eval echo '${'$as_ac_var'}'` = yes; then
11422 cat >>confdefs.h
<<_ACEOF
11423 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
11430 # Look for sched_yield. Up to Solaris 2.6, it is in libposix4, since
11431 # Solaris 7 the name librt is preferred.
11433 for ac_func
in sched_yield
11435 as_ac_var
=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
11436 echo "$as_me:$LINENO: checking for $ac_func" >&5
11437 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
11438 if eval "test \"\${$as_ac_var+set}\" = set"; then
11439 echo $ECHO_N "(cached) $ECHO_C" >&6
11441 if test x
$gcc_no_link = xyes
; then
11442 { { echo "$as_me:$LINENO: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&5
11443 echo "$as_me: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&2;}
11444 { (exit 1); exit 1; }; }
11446 cat >conftest.
$ac_ext <<_ACEOF
11449 cat confdefs.h
>>conftest.
$ac_ext
11450 cat >>conftest.
$ac_ext <<_ACEOF
11451 /* end confdefs.h. */
11452 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
11453 For example, HP-UX 11i <limits.h> declares gettimeofday. */
11454 #define $ac_func innocuous_$ac_func
11456 /* System header to define __stub macros and hopefully few prototypes,
11457 which can conflict with char $ac_func (); below.
11458 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
11459 <limits.h> exists even on freestanding compilers. */
11462 # include <limits.h>
11464 # include <assert.h>
11469 /* Override any gcc2 internal prototype to avoid an error. */
11474 /* We use char because int might match the return type of a gcc2
11475 builtin and then its argument prototype would still apply. */
11477 /* The GNU C library defines this for functions which it implements
11478 to always fail with ENOSYS. Some functions are actually named
11479 something starting with __ and the normal name is an alias. */
11480 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
11483 char (*f) () = $ac_func;
11492 return f != $ac_func;
11497 rm -f conftest.
$ac_objext conftest
$ac_exeext
11498 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
11499 (eval $ac_link) 2>conftest.er1
11501 grep -v '^ *+' conftest.er1
>conftest.err
11503 cat conftest.err
>&5
11504 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11505 (exit $ac_status); } &&
11506 { ac_try
='test -z "$ac_c_werror_flag"
11507 || test ! -s conftest.err'
11508 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11509 (eval $ac_try) 2>&5
11511 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11512 (exit $ac_status); }; } &&
11513 { ac_try
='test -s conftest$ac_exeext'
11514 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11515 (eval $ac_try) 2>&5
11517 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11518 (exit $ac_status); }; }; then
11519 eval "$as_ac_var=yes"
11521 echo "$as_me: failed program was:" >&5
11522 sed 's/^/| /' conftest.
$ac_ext >&5
11524 eval "$as_ac_var=no"
11526 rm -f conftest.err conftest.
$ac_objext \
11527 conftest
$ac_exeext conftest.
$ac_ext
11529 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
11530 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
11531 if test `eval echo '${'$as_ac_var'}'` = yes; then
11532 cat >>confdefs.h
<<_ACEOF
11533 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
11538 echo "$as_me:$LINENO: checking for sched_yield in -lrt" >&5
11539 echo $ECHO_N "checking for sched_yield in -lrt... $ECHO_C" >&6
11540 if test "${ac_cv_lib_rt_sched_yield+set}" = set; then
11541 echo $ECHO_N "(cached) $ECHO_C" >&6
11543 ac_check_lib_save_LIBS
=$LIBS
11545 if test x
$gcc_no_link = xyes
; then
11546 { { echo "$as_me:$LINENO: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&5
11547 echo "$as_me: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&2;}
11548 { (exit 1); exit 1; }; }
11550 cat >conftest.
$ac_ext <<_ACEOF
11553 cat confdefs.h
>>conftest.
$ac_ext
11554 cat >>conftest.
$ac_ext <<_ACEOF
11555 /* end confdefs.h. */
11557 /* Override any gcc2 internal prototype to avoid an error. */
11561 /* We use char because int might match the return type of a gcc2
11562 builtin and then its argument prototype would still apply. */
11563 char sched_yield ();
11572 rm -f conftest.
$ac_objext conftest
$ac_exeext
11573 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
11574 (eval $ac_link) 2>conftest.er1
11576 grep -v '^ *+' conftest.er1
>conftest.err
11578 cat conftest.err
>&5
11579 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11580 (exit $ac_status); } &&
11581 { ac_try
='test -z "$ac_c_werror_flag"
11582 || test ! -s conftest.err'
11583 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11584 (eval $ac_try) 2>&5
11586 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11587 (exit $ac_status); }; } &&
11588 { ac_try
='test -s conftest$ac_exeext'
11589 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11590 (eval $ac_try) 2>&5
11592 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11593 (exit $ac_status); }; }; then
11594 ac_cv_lib_rt_sched_yield
=yes
11596 echo "$as_me: failed program was:" >&5
11597 sed 's/^/| /' conftest.
$ac_ext >&5
11599 ac_cv_lib_rt_sched_yield
=no
11601 rm -f conftest.err conftest.
$ac_objext \
11602 conftest
$ac_exeext conftest.
$ac_ext
11603 LIBS
=$ac_check_lib_save_LIBS
11605 echo "$as_me:$LINENO: result: $ac_cv_lib_rt_sched_yield" >&5
11606 echo "${ECHO_T}$ac_cv_lib_rt_sched_yield" >&6
11607 if test $ac_cv_lib_rt_sched_yield = yes; then
11609 cat >>confdefs.h
<<\_ACEOF
11610 #define HAVE_SCHED_YIELD 1
11613 THREADLIBS
="$THREADLIBS -lrt"
11614 THREADSPEC
="$THREADSPEC -lrt"
11617 echo "$as_me:$LINENO: checking for sched_yield in -lposix4" >&5
11618 echo $ECHO_N "checking for sched_yield in -lposix4... $ECHO_C" >&6
11619 if test "${ac_cv_lib_posix4_sched_yield+set}" = set; then
11620 echo $ECHO_N "(cached) $ECHO_C" >&6
11622 ac_check_lib_save_LIBS
=$LIBS
11623 LIBS
="-lposix4 $LIBS"
11624 if test x
$gcc_no_link = xyes
; then
11625 { { echo "$as_me:$LINENO: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&5
11626 echo "$as_me: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&2;}
11627 { (exit 1); exit 1; }; }
11629 cat >conftest.
$ac_ext <<_ACEOF
11632 cat confdefs.h
>>conftest.
$ac_ext
11633 cat >>conftest.
$ac_ext <<_ACEOF
11634 /* end confdefs.h. */
11636 /* Override any gcc2 internal prototype to avoid an error. */
11640 /* We use char because int might match the return type of a gcc2
11641 builtin and then its argument prototype would still apply. */
11642 char sched_yield ();
11651 rm -f conftest.
$ac_objext conftest
$ac_exeext
11652 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
11653 (eval $ac_link) 2>conftest.er1
11655 grep -v '^ *+' conftest.er1
>conftest.err
11657 cat conftest.err
>&5
11658 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11659 (exit $ac_status); } &&
11660 { ac_try
='test -z "$ac_c_werror_flag"
11661 || test ! -s conftest.err'
11662 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11663 (eval $ac_try) 2>&5
11665 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11666 (exit $ac_status); }; } &&
11667 { ac_try
='test -s conftest$ac_exeext'
11668 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11669 (eval $ac_try) 2>&5
11671 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11672 (exit $ac_status); }; }; then
11673 ac_cv_lib_posix4_sched_yield
=yes
11675 echo "$as_me: failed program was:" >&5
11676 sed 's/^/| /' conftest.
$ac_ext >&5
11678 ac_cv_lib_posix4_sched_yield
=no
11680 rm -f conftest.err conftest.
$ac_objext \
11681 conftest
$ac_exeext conftest.
$ac_ext
11682 LIBS
=$ac_check_lib_save_LIBS
11684 echo "$as_me:$LINENO: result: $ac_cv_lib_posix4_sched_yield" >&5
11685 echo "${ECHO_T}$ac_cv_lib_posix4_sched_yield" >&6
11686 if test $ac_cv_lib_posix4_sched_yield = yes; then
11688 cat >>confdefs.h
<<\_ACEOF
11689 #define HAVE_SCHED_YIELD 1
11692 THREADLIBS
="$THREADLIBS -lposix4"
11693 THREADSPEC
="$THREADSPEC -lposix4"
11703 # We can save a little space at runtime if the mutex has m_count
11704 # or __m_count. This is a nice hack for Linux.
11705 cat >conftest.
$ac_ext <<_ACEOF
11708 cat confdefs.h
>>conftest.
$ac_ext
11709 cat >>conftest.
$ac_ext <<_ACEOF
11710 /* end confdefs.h. */
11711 #include <pthread.h>
11716 extern pthread_mutex_t *mutex; int q = mutex->m_count;
11722 rm -f conftest.
$ac_objext
11723 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
11724 (eval $ac_compile) 2>conftest.er1
11726 grep -v '^ *+' conftest.er1
>conftest.err
11728 cat conftest.err
>&5
11729 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11730 (exit $ac_status); } &&
11731 { ac_try
='test -z "$ac_c_werror_flag"
11732 || test ! -s conftest.err'
11733 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11734 (eval $ac_try) 2>&5
11736 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11737 (exit $ac_status); }; } &&
11738 { ac_try
='test -s conftest.$ac_objext'
11739 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11740 (eval $ac_try) 2>&5
11742 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11743 (exit $ac_status); }; }; then
11745 cat >>confdefs.h
<<\_ACEOF
11746 #define PTHREAD_MUTEX_HAVE_M_COUNT 1
11750 echo "$as_me: failed program was:" >&5
11751 sed 's/^/| /' conftest.
$ac_ext >&5
11754 cat >conftest.
$ac_ext <<_ACEOF
11757 cat confdefs.h
>>conftest.
$ac_ext
11758 cat >>conftest.
$ac_ext <<_ACEOF
11759 /* end confdefs.h. */
11760 #include <pthread.h>
11765 extern pthread_mutex_t *mutex; int q = mutex->__m_count;
11771 rm -f conftest.
$ac_objext
11772 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
11773 (eval $ac_compile) 2>conftest.er1
11775 grep -v '^ *+' conftest.er1
>conftest.err
11777 cat conftest.err
>&5
11778 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11779 (exit $ac_status); } &&
11780 { ac_try
='test -z "$ac_c_werror_flag"
11781 || test ! -s conftest.err'
11782 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11783 (eval $ac_try) 2>&5
11785 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11786 (exit $ac_status); }; } &&
11787 { ac_try
='test -s conftest.$ac_objext'
11788 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11789 (eval $ac_try) 2>&5
11791 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11792 (exit $ac_status); }; }; then
11794 cat >>confdefs.h
<<\_ACEOF
11795 #define PTHREAD_MUTEX_HAVE___M_COUNT 1
11799 echo "$as_me: failed program was:" >&5
11800 sed 's/^/| /' conftest.
$ac_ext >&5
11803 rm -f conftest.err conftest.
$ac_objext conftest.
$ac_ext
11805 rm -f conftest.err conftest.
$ac_objext conftest.
$ac_ext
11808 # We require a way to get the time.
11813 for ac_func
in gettimeofday
time ftime
11815 as_ac_var
=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
11816 echo "$as_me:$LINENO: checking for $ac_func" >&5
11817 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
11818 if eval "test \"\${$as_ac_var+set}\" = set"; then
11819 echo $ECHO_N "(cached) $ECHO_C" >&6
11821 if test x
$gcc_no_link = xyes
; then
11822 { { echo "$as_me:$LINENO: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&5
11823 echo "$as_me: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&2;}
11824 { (exit 1); exit 1; }; }
11826 cat >conftest.
$ac_ext <<_ACEOF
11829 cat confdefs.h
>>conftest.
$ac_ext
11830 cat >>conftest.
$ac_ext <<_ACEOF
11831 /* end confdefs.h. */
11832 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
11833 For example, HP-UX 11i <limits.h> declares gettimeofday. */
11834 #define $ac_func innocuous_$ac_func
11836 /* System header to define __stub macros and hopefully few prototypes,
11837 which can conflict with char $ac_func (); below.
11838 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
11839 <limits.h> exists even on freestanding compilers. */
11842 # include <limits.h>
11844 # include <assert.h>
11849 /* Override any gcc2 internal prototype to avoid an error. */
11854 /* We use char because int might match the return type of a gcc2
11855 builtin and then its argument prototype would still apply. */
11857 /* The GNU C library defines this for functions which it implements
11858 to always fail with ENOSYS. Some functions are actually named
11859 something starting with __ and the normal name is an alias. */
11860 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
11863 char (*f) () = $ac_func;
11872 return f != $ac_func;
11877 rm -f conftest.
$ac_objext conftest
$ac_exeext
11878 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
11879 (eval $ac_link) 2>conftest.er1
11881 grep -v '^ *+' conftest.er1
>conftest.err
11883 cat conftest.err
>&5
11884 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11885 (exit $ac_status); } &&
11886 { ac_try
='test -z "$ac_c_werror_flag"
11887 || test ! -s conftest.err'
11888 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11889 (eval $ac_try) 2>&5
11891 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11892 (exit $ac_status); }; } &&
11893 { ac_try
='test -s conftest$ac_exeext'
11894 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11895 (eval $ac_try) 2>&5
11897 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11898 (exit $ac_status); }; }; then
11899 eval "$as_ac_var=yes"
11901 echo "$as_me: failed program was:" >&5
11902 sed 's/^/| /' conftest.
$ac_ext >&5
11904 eval "$as_ac_var=no"
11906 rm -f conftest.err conftest.
$ac_objext \
11907 conftest
$ac_exeext conftest.
$ac_ext
11909 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
11910 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
11911 if test `eval echo '${'$as_ac_var'}'` = yes; then
11912 cat >>confdefs.h
<<_ACEOF
11913 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
11919 if test "$time_found" = no
; then
11920 { { echo "$as_me:$LINENO: error: no function found to get the time" >&5
11921 echo "$as_me: error: no function found to get the time" >&2;}
11922 { (exit 1); exit 1; }; }
11926 for ac_func
in memmove
11928 as_ac_var
=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
11929 echo "$as_me:$LINENO: checking for $ac_func" >&5
11930 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
11931 if eval "test \"\${$as_ac_var+set}\" = set"; then
11932 echo $ECHO_N "(cached) $ECHO_C" >&6
11934 if test x
$gcc_no_link = xyes
; then
11935 { { echo "$as_me:$LINENO: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&5
11936 echo "$as_me: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&2;}
11937 { (exit 1); exit 1; }; }
11939 cat >conftest.
$ac_ext <<_ACEOF
11942 cat confdefs.h
>>conftest.
$ac_ext
11943 cat >>conftest.
$ac_ext <<_ACEOF
11944 /* end confdefs.h. */
11945 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
11946 For example, HP-UX 11i <limits.h> declares gettimeofday. */
11947 #define $ac_func innocuous_$ac_func
11949 /* System header to define __stub macros and hopefully few prototypes,
11950 which can conflict with char $ac_func (); below.
11951 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
11952 <limits.h> exists even on freestanding compilers. */
11955 # include <limits.h>
11957 # include <assert.h>
11962 /* Override any gcc2 internal prototype to avoid an error. */
11967 /* We use char because int might match the return type of a gcc2
11968 builtin and then its argument prototype would still apply. */
11970 /* The GNU C library defines this for functions which it implements
11971 to always fail with ENOSYS. Some functions are actually named
11972 something starting with __ and the normal name is an alias. */
11973 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
11976 char (*f) () = $ac_func;
11985 return f != $ac_func;
11990 rm -f conftest.
$ac_objext conftest
$ac_exeext
11991 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
11992 (eval $ac_link) 2>conftest.er1
11994 grep -v '^ *+' conftest.er1
>conftest.err
11996 cat conftest.err
>&5
11997 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11998 (exit $ac_status); } &&
11999 { ac_try
='test -z "$ac_c_werror_flag"
12000 || test ! -s conftest.err'
12001 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12002 (eval $ac_try) 2>&5
12004 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12005 (exit $ac_status); }; } &&
12006 { ac_try
='test -s conftest$ac_exeext'
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); }; }; then
12012 eval "$as_ac_var=yes"
12014 echo "$as_me: failed program was:" >&5
12015 sed 's/^/| /' conftest.
$ac_ext >&5
12017 eval "$as_ac_var=no"
12019 rm -f conftest.err conftest.
$ac_objext \
12020 conftest
$ac_exeext conftest.
$ac_ext
12022 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
12023 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
12024 if test `eval echo '${'$as_ac_var'}'` = yes; then
12025 cat >>confdefs.h
<<_ACEOF
12026 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
12033 # We require memcpy.
12036 for ac_func
in memcpy
12038 as_ac_var
=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
12039 echo "$as_me:$LINENO: checking for $ac_func" >&5
12040 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
12041 if eval "test \"\${$as_ac_var+set}\" = set"; then
12042 echo $ECHO_N "(cached) $ECHO_C" >&6
12044 if test x
$gcc_no_link = xyes
; then
12045 { { echo "$as_me:$LINENO: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&5
12046 echo "$as_me: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&2;}
12047 { (exit 1); exit 1; }; }
12049 cat >conftest.
$ac_ext <<_ACEOF
12052 cat confdefs.h
>>conftest.
$ac_ext
12053 cat >>conftest.
$ac_ext <<_ACEOF
12054 /* end confdefs.h. */
12055 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
12056 For example, HP-UX 11i <limits.h> declares gettimeofday. */
12057 #define $ac_func innocuous_$ac_func
12059 /* System header to define __stub macros and hopefully few prototypes,
12060 which can conflict with char $ac_func (); below.
12061 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
12062 <limits.h> exists even on freestanding compilers. */
12065 # include <limits.h>
12067 # include <assert.h>
12072 /* Override any gcc2 internal prototype to avoid an error. */
12077 /* We use char because int might match the return type of a gcc2
12078 builtin and then its argument prototype would still apply. */
12080 /* The GNU C library defines this for functions which it implements
12081 to always fail with ENOSYS. Some functions are actually named
12082 something starting with __ and the normal name is an alias. */
12083 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
12086 char (*f) () = $ac_func;
12095 return f != $ac_func;
12100 rm -f conftest.
$ac_objext conftest
$ac_exeext
12101 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
12102 (eval $ac_link) 2>conftest.er1
12104 grep -v '^ *+' conftest.er1
>conftest.err
12106 cat conftest.err
>&5
12107 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12108 (exit $ac_status); } &&
12109 { ac_try
='test -z "$ac_c_werror_flag"
12110 || test ! -s conftest.err'
12111 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12112 (eval $ac_try) 2>&5
12114 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12115 (exit $ac_status); }; } &&
12116 { ac_try
='test -s conftest$ac_exeext'
12117 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12118 (eval $ac_try) 2>&5
12120 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12121 (exit $ac_status); }; }; then
12122 eval "$as_ac_var=yes"
12124 echo "$as_me: failed program was:" >&5
12125 sed 's/^/| /' conftest.
$ac_ext >&5
12127 eval "$as_ac_var=no"
12129 rm -f conftest.err conftest.
$ac_objext \
12130 conftest
$ac_exeext conftest.
$ac_ext
12132 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
12133 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
12134 if test `eval echo '${'$as_ac_var'}'` = yes; then
12135 cat >>confdefs.h
<<_ACEOF
12136 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
12142 if test "$memcpy_found" = no
; then
12143 { { echo "$as_me:$LINENO: error: memcpy is required" >&5
12144 echo "$as_me: error: memcpy is required" >&2;}
12145 { (exit 1); exit 1; }; }
12148 echo "$as_me:$LINENO: checking for dlopen in -ldl" >&5
12149 echo $ECHO_N "checking for dlopen in -ldl... $ECHO_C" >&6
12150 if test "${ac_cv_lib_dl_dlopen+set}" = set; then
12151 echo $ECHO_N "(cached) $ECHO_C" >&6
12153 ac_check_lib_save_LIBS
=$LIBS
12155 if test x
$gcc_no_link = xyes
; then
12156 { { echo "$as_me:$LINENO: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&5
12157 echo "$as_me: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&2;}
12158 { (exit 1); exit 1; }; }
12160 cat >conftest.
$ac_ext <<_ACEOF
12163 cat confdefs.h
>>conftest.
$ac_ext
12164 cat >>conftest.
$ac_ext <<_ACEOF
12165 /* end confdefs.h. */
12167 /* Override any gcc2 internal prototype to avoid an error. */
12171 /* We use char because int might match the return type of a gcc2
12172 builtin and then its argument prototype would still apply. */
12182 rm -f conftest.
$ac_objext conftest
$ac_exeext
12183 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
12184 (eval $ac_link) 2>conftest.er1
12186 grep -v '^ *+' conftest.er1
>conftest.err
12188 cat conftest.err
>&5
12189 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12190 (exit $ac_status); } &&
12191 { ac_try
='test -z "$ac_c_werror_flag"
12192 || test ! -s conftest.err'
12193 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12194 (eval $ac_try) 2>&5
12196 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12197 (exit $ac_status); }; } &&
12198 { ac_try
='test -s conftest$ac_exeext'
12199 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12200 (eval $ac_try) 2>&5
12202 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12203 (exit $ac_status); }; }; then
12204 ac_cv_lib_dl_dlopen
=yes
12206 echo "$as_me: failed program was:" >&5
12207 sed 's/^/| /' conftest.
$ac_ext >&5
12209 ac_cv_lib_dl_dlopen
=no
12211 rm -f conftest.err conftest.
$ac_objext \
12212 conftest
$ac_exeext conftest.
$ac_ext
12213 LIBS
=$ac_check_lib_save_LIBS
12215 echo "$as_me:$LINENO: result: $ac_cv_lib_dl_dlopen" >&5
12216 echo "${ECHO_T}$ac_cv_lib_dl_dlopen" >&6
12217 if test $ac_cv_lib_dl_dlopen = yes; then
12220 cat >>confdefs.h
<<\_ACEOF
12221 #define HAVE_DLOPEN 1
12227 # Some library-finding code we stole from Tcl.
12228 #--------------------------------------------------------------------
12229 # Check for the existence of the -lsocket and -lnsl libraries.
12230 # The order here is important, so that they end up in the right
12231 # order in the command line generated by make. Here are some
12232 # special considerations:
12233 # 1. Use "connect" and "accept" to check for -lsocket, and
12234 # "gethostbyname" to check for -lnsl.
12235 # 2. Use each function name only once: can't redo a check because
12236 # autoconf caches the results of the last check and won't redo it.
12237 # 3. Use -lnsl and -lsocket only if they supply procedures that
12238 # aren't already present in the normal libraries. This is because
12239 # IRIX 5.2 has libraries, but they aren't needed and they're
12240 # bogus: they goof up name resolution if used.
12241 # 4. On some SVR4 systems, can't use -lsocket without -lnsl too.
12242 # To get around this problem, check for both libraries together
12243 # if -lsocket doesn't work by itself.
12244 #--------------------------------------------------------------------
12246 echo "$as_me:$LINENO: checking for socket libraries" >&5
12247 echo $ECHO_N "checking for socket libraries... $ECHO_C" >&6
12248 if test "${gcj_cv_lib_sockets+set}" = set; then
12249 echo $ECHO_N "(cached) $ECHO_C" >&6
12251 gcj_cv_lib_sockets
=
12253 unset ac_cv_func_connect
12254 echo "$as_me:$LINENO: checking for connect" >&5
12255 echo $ECHO_N "checking for connect... $ECHO_C" >&6
12256 if test "${ac_cv_func_connect+set}" = set; then
12257 echo $ECHO_N "(cached) $ECHO_C" >&6
12259 if test x
$gcc_no_link = xyes
; then
12260 { { echo "$as_me:$LINENO: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&5
12261 echo "$as_me: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&2;}
12262 { (exit 1); exit 1; }; }
12264 cat >conftest.
$ac_ext <<_ACEOF
12267 cat confdefs.h
>>conftest.
$ac_ext
12268 cat >>conftest.
$ac_ext <<_ACEOF
12269 /* end confdefs.h. */
12270 /* Define connect to an innocuous variant, in case <limits.h> declares connect.
12271 For example, HP-UX 11i <limits.h> declares gettimeofday. */
12272 #define connect innocuous_connect
12274 /* System header to define __stub macros and hopefully few prototypes,
12275 which can conflict with char connect (); below.
12276 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
12277 <limits.h> exists even on freestanding compilers. */
12280 # include <limits.h>
12282 # include <assert.h>
12287 /* Override any gcc2 internal prototype to avoid an error. */
12292 /* We use char because int might match the return type of a gcc2
12293 builtin and then its argument prototype would still apply. */
12295 /* The GNU C library defines this for functions which it implements
12296 to always fail with ENOSYS. Some functions are actually named
12297 something starting with __ and the normal name is an alias. */
12298 #if defined (__stub_connect) || defined (__stub___connect)
12301 char (*f) () = connect;
12310 return f != connect;
12315 rm -f conftest.
$ac_objext conftest
$ac_exeext
12316 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
12317 (eval $ac_link) 2>conftest.er1
12319 grep -v '^ *+' conftest.er1
>conftest.err
12321 cat conftest.err
>&5
12322 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12323 (exit $ac_status); } &&
12324 { ac_try
='test -z "$ac_c_werror_flag"
12325 || test ! -s conftest.err'
12326 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12327 (eval $ac_try) 2>&5
12329 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12330 (exit $ac_status); }; } &&
12331 { ac_try
='test -s conftest$ac_exeext'
12332 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12333 (eval $ac_try) 2>&5
12335 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12336 (exit $ac_status); }; }; then
12337 ac_cv_func_connect
=yes
12339 echo "$as_me: failed program was:" >&5
12340 sed 's/^/| /' conftest.
$ac_ext >&5
12342 ac_cv_func_connect
=no
12344 rm -f conftest.err conftest.
$ac_objext \
12345 conftest
$ac_exeext conftest.
$ac_ext
12347 echo "$as_me:$LINENO: result: $ac_cv_func_connect" >&5
12348 echo "${ECHO_T}$ac_cv_func_connect" >&6
12349 if test $ac_cv_func_connect = yes; then
12355 if test "$gcj_checkSocket" = 1; then
12356 unset ac_cv_func_connect
12357 echo "$as_me:$LINENO: checking for main in -lsocket" >&5
12358 echo $ECHO_N "checking for main in -lsocket... $ECHO_C" >&6
12359 if test "${ac_cv_lib_socket_main+set}" = set; then
12360 echo $ECHO_N "(cached) $ECHO_C" >&6
12362 ac_check_lib_save_LIBS
=$LIBS
12363 LIBS
="-lsocket $LIBS"
12364 if test x
$gcc_no_link = xyes
; then
12365 { { echo "$as_me:$LINENO: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&5
12366 echo "$as_me: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&2;}
12367 { (exit 1); exit 1; }; }
12369 cat >conftest.
$ac_ext <<_ACEOF
12372 cat confdefs.h
>>conftest.
$ac_ext
12373 cat >>conftest.
$ac_ext <<_ACEOF
12374 /* end confdefs.h. */
12385 rm -f conftest.
$ac_objext conftest
$ac_exeext
12386 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
12387 (eval $ac_link) 2>conftest.er1
12389 grep -v '^ *+' conftest.er1
>conftest.err
12391 cat conftest.err
>&5
12392 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12393 (exit $ac_status); } &&
12394 { ac_try
='test -z "$ac_c_werror_flag"
12395 || test ! -s conftest.err'
12396 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12397 (eval $ac_try) 2>&5
12399 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12400 (exit $ac_status); }; } &&
12401 { ac_try
='test -s conftest$ac_exeext'
12402 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12403 (eval $ac_try) 2>&5
12405 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12406 (exit $ac_status); }; }; then
12407 ac_cv_lib_socket_main
=yes
12409 echo "$as_me: failed program was:" >&5
12410 sed 's/^/| /' conftest.
$ac_ext >&5
12412 ac_cv_lib_socket_main
=no
12414 rm -f conftest.err conftest.
$ac_objext \
12415 conftest
$ac_exeext conftest.
$ac_ext
12416 LIBS
=$ac_check_lib_save_LIBS
12418 echo "$as_me:$LINENO: result: $ac_cv_lib_socket_main" >&5
12419 echo "${ECHO_T}$ac_cv_lib_socket_main" >&6
12420 if test $ac_cv_lib_socket_main = yes; then
12421 gcj_cv_lib_sockets
="-lsocket"
12427 if test "$gcj_checkBoth" = 1; then
12429 LIBS
="$LIBS -lsocket -lnsl"
12430 unset ac_cv_func_accept
12431 echo "$as_me:$LINENO: checking for accept" >&5
12432 echo $ECHO_N "checking for accept... $ECHO_C" >&6
12433 if test "${ac_cv_func_accept+set}" = set; then
12434 echo $ECHO_N "(cached) $ECHO_C" >&6
12436 if test x
$gcc_no_link = xyes
; then
12437 { { echo "$as_me:$LINENO: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&5
12438 echo "$as_me: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&2;}
12439 { (exit 1); exit 1; }; }
12441 cat >conftest.
$ac_ext <<_ACEOF
12444 cat confdefs.h
>>conftest.
$ac_ext
12445 cat >>conftest.
$ac_ext <<_ACEOF
12446 /* end confdefs.h. */
12447 /* Define accept to an innocuous variant, in case <limits.h> declares accept.
12448 For example, HP-UX 11i <limits.h> declares gettimeofday. */
12449 #define accept innocuous_accept
12451 /* System header to define __stub macros and hopefully few prototypes,
12452 which can conflict with char accept (); below.
12453 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
12454 <limits.h> exists even on freestanding compilers. */
12457 # include <limits.h>
12459 # include <assert.h>
12464 /* Override any gcc2 internal prototype to avoid an error. */
12469 /* We use char because int might match the return type of a gcc2
12470 builtin and then its argument prototype would still apply. */
12472 /* The GNU C library defines this for functions which it implements
12473 to always fail with ENOSYS. Some functions are actually named
12474 something starting with __ and the normal name is an alias. */
12475 #if defined (__stub_accept) || defined (__stub___accept)
12478 char (*f) () = accept;
12487 return f != accept;
12492 rm -f conftest.
$ac_objext conftest
$ac_exeext
12493 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
12494 (eval $ac_link) 2>conftest.er1
12496 grep -v '^ *+' conftest.er1
>conftest.err
12498 cat conftest.err
>&5
12499 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12500 (exit $ac_status); } &&
12501 { ac_try
='test -z "$ac_c_werror_flag"
12502 || test ! -s conftest.err'
12503 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12504 (eval $ac_try) 2>&5
12506 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12507 (exit $ac_status); }; } &&
12508 { ac_try
='test -s conftest$ac_exeext'
12509 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12510 (eval $ac_try) 2>&5
12512 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12513 (exit $ac_status); }; }; then
12514 ac_cv_func_accept
=yes
12516 echo "$as_me: failed program was:" >&5
12517 sed 's/^/| /' conftest.
$ac_ext >&5
12519 ac_cv_func_accept
=no
12521 rm -f conftest.err conftest.
$ac_objext \
12522 conftest
$ac_exeext conftest.
$ac_ext
12524 echo "$as_me:$LINENO: result: $ac_cv_func_accept" >&5
12525 echo "${ECHO_T}$ac_cv_func_accept" >&6
12526 if test $ac_cv_func_accept = yes; then
12528 gcj_cv_lib_sockets
="-lsocket -lnsl"
12531 unset ac_cv_func_accept
12534 unset ac_cv_func_gethostbyname
12536 LIBS
="$LIBS $gcj_cv_lib_sockets"
12537 echo "$as_me:$LINENO: checking for gethostbyname" >&5
12538 echo $ECHO_N "checking for gethostbyname... $ECHO_C" >&6
12539 if test "${ac_cv_func_gethostbyname+set}" = set; then
12540 echo $ECHO_N "(cached) $ECHO_C" >&6
12542 if test x
$gcc_no_link = xyes
; then
12543 { { echo "$as_me:$LINENO: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&5
12544 echo "$as_me: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&2;}
12545 { (exit 1); exit 1; }; }
12547 cat >conftest.
$ac_ext <<_ACEOF
12550 cat confdefs.h
>>conftest.
$ac_ext
12551 cat >>conftest.
$ac_ext <<_ACEOF
12552 /* end confdefs.h. */
12553 /* Define gethostbyname to an innocuous variant, in case <limits.h> declares gethostbyname.
12554 For example, HP-UX 11i <limits.h> declares gettimeofday. */
12555 #define gethostbyname innocuous_gethostbyname
12557 /* System header to define __stub macros and hopefully few prototypes,
12558 which can conflict with char gethostbyname (); below.
12559 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
12560 <limits.h> exists even on freestanding compilers. */
12563 # include <limits.h>
12565 # include <assert.h>
12568 #undef gethostbyname
12570 /* Override any gcc2 internal prototype to avoid an error. */
12575 /* We use char because int might match the return type of a gcc2
12576 builtin and then its argument prototype would still apply. */
12577 char gethostbyname ();
12578 /* The GNU C library defines this for functions which it implements
12579 to always fail with ENOSYS. Some functions are actually named
12580 something starting with __ and the normal name is an alias. */
12581 #if defined (__stub_gethostbyname) || defined (__stub___gethostbyname)
12584 char (*f) () = gethostbyname;
12593 return f != gethostbyname;
12598 rm -f conftest.
$ac_objext conftest
$ac_exeext
12599 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
12600 (eval $ac_link) 2>conftest.er1
12602 grep -v '^ *+' conftest.er1
>conftest.err
12604 cat conftest.err
>&5
12605 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12606 (exit $ac_status); } &&
12607 { ac_try
='test -z "$ac_c_werror_flag"
12608 || test ! -s conftest.err'
12609 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12610 (eval $ac_try) 2>&5
12612 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12613 (exit $ac_status); }; } &&
12614 { ac_try
='test -s conftest$ac_exeext'
12615 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12616 (eval $ac_try) 2>&5
12618 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12619 (exit $ac_status); }; }; then
12620 ac_cv_func_gethostbyname
=yes
12622 echo "$as_me: failed program was:" >&5
12623 sed 's/^/| /' conftest.
$ac_ext >&5
12625 ac_cv_func_gethostbyname
=no
12627 rm -f conftest.err conftest.
$ac_objext \
12628 conftest
$ac_exeext conftest.
$ac_ext
12630 echo "$as_me:$LINENO: result: $ac_cv_func_gethostbyname" >&5
12631 echo "${ECHO_T}$ac_cv_func_gethostbyname" >&6
12632 if test $ac_cv_func_gethostbyname = yes; then
12635 echo "$as_me:$LINENO: checking for main in -lnsl" >&5
12636 echo $ECHO_N "checking for main in -lnsl... $ECHO_C" >&6
12637 if test "${ac_cv_lib_nsl_main+set}" = set; then
12638 echo $ECHO_N "(cached) $ECHO_C" >&6
12640 ac_check_lib_save_LIBS
=$LIBS
12642 if test x
$gcc_no_link = xyes
; then
12643 { { echo "$as_me:$LINENO: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&5
12644 echo "$as_me: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&2;}
12645 { (exit 1); exit 1; }; }
12647 cat >conftest.
$ac_ext <<_ACEOF
12650 cat confdefs.h
>>conftest.
$ac_ext
12651 cat >>conftest.
$ac_ext <<_ACEOF
12652 /* end confdefs.h. */
12663 rm -f conftest.
$ac_objext conftest
$ac_exeext
12664 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
12665 (eval $ac_link) 2>conftest.er1
12667 grep -v '^ *+' conftest.er1
>conftest.err
12669 cat conftest.err
>&5
12670 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12671 (exit $ac_status); } &&
12672 { ac_try
='test -z "$ac_c_werror_flag"
12673 || test ! -s conftest.err'
12674 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12675 (eval $ac_try) 2>&5
12677 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12678 (exit $ac_status); }; } &&
12679 { ac_try
='test -s conftest$ac_exeext'
12680 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12681 (eval $ac_try) 2>&5
12683 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12684 (exit $ac_status); }; }; then
12685 ac_cv_lib_nsl_main
=yes
12687 echo "$as_me: failed program was:" >&5
12688 sed 's/^/| /' conftest.
$ac_ext >&5
12690 ac_cv_lib_nsl_main
=no
12692 rm -f conftest.err conftest.
$ac_objext \
12693 conftest
$ac_exeext conftest.
$ac_ext
12694 LIBS
=$ac_check_lib_save_LIBS
12696 echo "$as_me:$LINENO: result: $ac_cv_lib_nsl_main" >&5
12697 echo "${ECHO_T}$ac_cv_lib_nsl_main" >&6
12698 if test $ac_cv_lib_nsl_main = yes; then
12699 gcj_cv_lib_sockets
="$gcj_cv_lib_sockets -lnsl"
12704 unset ac_cv_func_gethostbyname
12708 echo "$as_me:$LINENO: result: $gcj_cv_lib_sockets" >&5
12709 echo "${ECHO_T}$gcj_cv_lib_sockets" >&6
12710 SYSTEMSPEC
="$SYSTEMSPEC $gcj_cv_lib_sockets"
12712 if test "$with_system_zlib" = yes; then
12713 echo "$as_me:$LINENO: checking for deflate in -lz" >&5
12714 echo $ECHO_N "checking for deflate in -lz... $ECHO_C" >&6
12715 if test "${ac_cv_lib_z_deflate+set}" = set; then
12716 echo $ECHO_N "(cached) $ECHO_C" >&6
12718 ac_check_lib_save_LIBS
=$LIBS
12720 if test x
$gcc_no_link = xyes
; then
12721 { { echo "$as_me:$LINENO: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&5
12722 echo "$as_me: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&2;}
12723 { (exit 1); exit 1; }; }
12725 cat >conftest.
$ac_ext <<_ACEOF
12728 cat confdefs.h
>>conftest.
$ac_ext
12729 cat >>conftest.
$ac_ext <<_ACEOF
12730 /* end confdefs.h. */
12732 /* Override any gcc2 internal prototype to avoid an error. */
12736 /* We use char because int might match the return type of a gcc2
12737 builtin and then its argument prototype would still apply. */
12747 rm -f conftest.
$ac_objext conftest
$ac_exeext
12748 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
12749 (eval $ac_link) 2>conftest.er1
12751 grep -v '^ *+' conftest.er1
>conftest.err
12753 cat conftest.err
>&5
12754 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12755 (exit $ac_status); } &&
12756 { ac_try
='test -z "$ac_c_werror_flag"
12757 || test ! -s conftest.err'
12758 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12759 (eval $ac_try) 2>&5
12761 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12762 (exit $ac_status); }; } &&
12763 { ac_try
='test -s conftest$ac_exeext'
12764 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12765 (eval $ac_try) 2>&5
12767 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12768 (exit $ac_status); }; }; then
12769 ac_cv_lib_z_deflate
=yes
12771 echo "$as_me: failed program was:" >&5
12772 sed 's/^/| /' conftest.
$ac_ext >&5
12774 ac_cv_lib_z_deflate
=no
12776 rm -f conftest.err conftest.
$ac_objext \
12777 conftest
$ac_exeext conftest.
$ac_ext
12778 LIBS
=$ac_check_lib_save_LIBS
12780 echo "$as_me:$LINENO: result: $ac_cv_lib_z_deflate" >&5
12781 echo "${ECHO_T}$ac_cv_lib_z_deflate" >&6
12782 if test $ac_cv_lib_z_deflate = yes; then
12790 # Test for Gtk stuff, if asked for.
12791 if test "$use_gtk_awt" = yes; then
12795 if test -z "$PKG_CONFIG"; then
12796 # Extract the first word of "pkg-config", so it can be a program name with args.
12797 set dummy pkg-config
; ac_word
=$2
12798 echo "$as_me:$LINENO: checking for $ac_word" >&5
12799 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
12800 if test "${ac_cv_path_PKG_CONFIG+set}" = set; then
12801 echo $ECHO_N "(cached) $ECHO_C" >&6
12803 case $PKG_CONFIG in
12805 ac_cv_path_PKG_CONFIG
="$PKG_CONFIG" # Let the user override the test with a path.
12808 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
12809 for as_dir
in $PATH
12812 test -z "$as_dir" && as_dir
=.
12813 for ac_exec_ext
in '' $ac_executable_extensions; do
12814 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
12815 ac_cv_path_PKG_CONFIG
="$as_dir/$ac_word$ac_exec_ext"
12816 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
12822 test -z "$ac_cv_path_PKG_CONFIG" && ac_cv_path_PKG_CONFIG
="no"
12826 PKG_CONFIG
=$ac_cv_path_PKG_CONFIG
12828 if test -n "$PKG_CONFIG"; then
12829 echo "$as_me:$LINENO: result: $PKG_CONFIG" >&5
12830 echo "${ECHO_T}$PKG_CONFIG" >&6
12832 echo "$as_me:$LINENO: result: no" >&5
12833 echo "${ECHO_T}no" >&6
12838 if test "$PKG_CONFIG" = "no" ; then
12839 echo "*** The pkg-config script could not be found. Make sure it is"
12840 echo "*** in your path, or set the PKG_CONFIG environment variable"
12841 echo "*** to the full path to pkg-config."
12842 echo "*** Or see http://www.freedesktop.org/software/pkgconfig to get pkg-config."
12844 PKG_CONFIG_MIN_VERSION
=0.9.0
12845 if $PKG_CONFIG --atleast-pkgconfig-version $PKG_CONFIG_MIN_VERSION; then
12846 echo "$as_me:$LINENO: checking for gtk+-2.0 >= 2.4" >&5
12847 echo $ECHO_N "checking for gtk+-2.0 >= 2.4... $ECHO_C" >&6
12849 if $PKG_CONFIG --exists "gtk+-2.0 >= 2.4" ; then
12850 echo "$as_me:$LINENO: result: yes" >&5
12851 echo "${ECHO_T}yes" >&6
12854 echo "$as_me:$LINENO: checking GTK_CFLAGS" >&5
12855 echo $ECHO_N "checking GTK_CFLAGS... $ECHO_C" >&6
12856 GTK_CFLAGS
=`$PKG_CONFIG --cflags "gtk+-2.0 >= 2.4"`
12857 echo "$as_me:$LINENO: result: $GTK_CFLAGS" >&5
12858 echo "${ECHO_T}$GTK_CFLAGS" >&6
12860 echo "$as_me:$LINENO: checking GTK_LIBS" >&5
12861 echo $ECHO_N "checking GTK_LIBS... $ECHO_C" >&6
12862 GTK_LIBS
=`$PKG_CONFIG --libs "gtk+-2.0 >= 2.4"`
12863 echo "$as_me:$LINENO: result: $GTK_LIBS" >&5
12864 echo "${ECHO_T}$GTK_LIBS" >&6
12868 ## If we have a custom action on failure, don't print errors, but
12869 ## do set a variable so people can do so.
12870 GTK_PKG_ERRORS
=`$PKG_CONFIG --errors-to-stdout --print-errors "gtk+-2.0 >= 2.4"`
12871 echo $GTK_PKG_ERRORS
12877 echo "*** Your version of pkg-config is too old. You need version $PKG_CONFIG_MIN_VERSION or newer."
12878 echo "*** See http://www.freedesktop.org/software/pkgconfig"
12882 if test $succeeded = yes; then
12885 { { 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
12886 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;}
12887 { (exit 1); exit 1; }; }
12896 if test -z "$PKG_CONFIG"; then
12897 # Extract the first word of "pkg-config", so it can be a program name with args.
12898 set dummy pkg-config
; ac_word
=$2
12899 echo "$as_me:$LINENO: checking for $ac_word" >&5
12900 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
12901 if test "${ac_cv_path_PKG_CONFIG+set}" = set; then
12902 echo $ECHO_N "(cached) $ECHO_C" >&6
12904 case $PKG_CONFIG in
12906 ac_cv_path_PKG_CONFIG
="$PKG_CONFIG" # Let the user override the test with a path.
12909 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
12910 for as_dir
in $PATH
12913 test -z "$as_dir" && as_dir
=.
12914 for ac_exec_ext
in '' $ac_executable_extensions; do
12915 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
12916 ac_cv_path_PKG_CONFIG
="$as_dir/$ac_word$ac_exec_ext"
12917 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
12923 test -z "$ac_cv_path_PKG_CONFIG" && ac_cv_path_PKG_CONFIG
="no"
12927 PKG_CONFIG
=$ac_cv_path_PKG_CONFIG
12929 if test -n "$PKG_CONFIG"; then
12930 echo "$as_me:$LINENO: result: $PKG_CONFIG" >&5
12931 echo "${ECHO_T}$PKG_CONFIG" >&6
12933 echo "$as_me:$LINENO: result: no" >&5
12934 echo "${ECHO_T}no" >&6
12939 if test "$PKG_CONFIG" = "no" ; then
12940 echo "*** The pkg-config script could not be found. Make sure it is"
12941 echo "*** in your path, or set the PKG_CONFIG environment variable"
12942 echo "*** to the full path to pkg-config."
12943 echo "*** Or see http://www.freedesktop.org/software/pkgconfig to get pkg-config."
12945 PKG_CONFIG_MIN_VERSION
=0.9.0
12946 if $PKG_CONFIG --atleast-pkgconfig-version $PKG_CONFIG_MIN_VERSION; then
12947 echo "$as_me:$LINENO: checking for glib-2.0 >= 2.4 gthread-2.0 >= 2.4" >&5
12948 echo $ECHO_N "checking for glib-2.0 >= 2.4 gthread-2.0 >= 2.4... $ECHO_C" >&6
12950 if $PKG_CONFIG --exists "glib-2.0 >= 2.4 gthread-2.0 >= 2.4" ; then
12951 echo "$as_me:$LINENO: result: yes" >&5
12952 echo "${ECHO_T}yes" >&6
12955 echo "$as_me:$LINENO: checking GLIB_CFLAGS" >&5
12956 echo $ECHO_N "checking GLIB_CFLAGS... $ECHO_C" >&6
12957 GLIB_CFLAGS
=`$PKG_CONFIG --cflags "glib-2.0 >= 2.4 gthread-2.0 >= 2.4"`
12958 echo "$as_me:$LINENO: result: $GLIB_CFLAGS" >&5
12959 echo "${ECHO_T}$GLIB_CFLAGS" >&6
12961 echo "$as_me:$LINENO: checking GLIB_LIBS" >&5
12962 echo $ECHO_N "checking GLIB_LIBS... $ECHO_C" >&6
12963 GLIB_LIBS
=`$PKG_CONFIG --libs "glib-2.0 >= 2.4 gthread-2.0 >= 2.4"`
12964 echo "$as_me:$LINENO: result: $GLIB_LIBS" >&5
12965 echo "${ECHO_T}$GLIB_LIBS" >&6
12969 ## If we have a custom action on failure, don't print errors, but
12970 ## do set a variable so people can do so.
12971 GLIB_PKG_ERRORS
=`$PKG_CONFIG --errors-to-stdout --print-errors "glib-2.0 >= 2.4 gthread-2.0 >= 2.4"`
12972 echo $GLIB_PKG_ERRORS
12978 echo "*** Your version of pkg-config is too old. You need version $PKG_CONFIG_MIN_VERSION or newer."
12979 echo "*** See http://www.freedesktop.org/software/pkgconfig"
12983 if test $succeeded = yes; then
12986 { { 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
12987 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;}
12988 { (exit 1); exit 1; }; }
12997 if test -z "$PKG_CONFIG"; then
12998 # Extract the first word of "pkg-config", so it can be a program name with args.
12999 set dummy pkg-config
; ac_word
=$2
13000 echo "$as_me:$LINENO: checking for $ac_word" >&5
13001 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
13002 if test "${ac_cv_path_PKG_CONFIG+set}" = set; then
13003 echo $ECHO_N "(cached) $ECHO_C" >&6
13005 case $PKG_CONFIG in
13007 ac_cv_path_PKG_CONFIG
="$PKG_CONFIG" # Let the user override the test with a path.
13010 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
13011 for as_dir
in $PATH
13014 test -z "$as_dir" && as_dir
=.
13015 for ac_exec_ext
in '' $ac_executable_extensions; do
13016 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
13017 ac_cv_path_PKG_CONFIG
="$as_dir/$ac_word$ac_exec_ext"
13018 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
13024 test -z "$ac_cv_path_PKG_CONFIG" && ac_cv_path_PKG_CONFIG
="no"
13028 PKG_CONFIG
=$ac_cv_path_PKG_CONFIG
13030 if test -n "$PKG_CONFIG"; then
13031 echo "$as_me:$LINENO: result: $PKG_CONFIG" >&5
13032 echo "${ECHO_T}$PKG_CONFIG" >&6
13034 echo "$as_me:$LINENO: result: no" >&5
13035 echo "${ECHO_T}no" >&6
13040 if test "$PKG_CONFIG" = "no" ; then
13041 echo "*** The pkg-config script could not be found. Make sure it is"
13042 echo "*** in your path, or set the PKG_CONFIG environment variable"
13043 echo "*** to the full path to pkg-config."
13044 echo "*** Or see http://www.freedesktop.org/software/pkgconfig to get pkg-config."
13046 PKG_CONFIG_MIN_VERSION
=0.9.0
13047 if $PKG_CONFIG --atleast-pkgconfig-version $PKG_CONFIG_MIN_VERSION; then
13048 echo "$as_me:$LINENO: checking for libart-2.0 >= 2.1" >&5
13049 echo $ECHO_N "checking for libart-2.0 >= 2.1... $ECHO_C" >&6
13051 if $PKG_CONFIG --exists "libart-2.0 >= 2.1" ; then
13052 echo "$as_me:$LINENO: result: yes" >&5
13053 echo "${ECHO_T}yes" >&6
13056 echo "$as_me:$LINENO: checking LIBART_CFLAGS" >&5
13057 echo $ECHO_N "checking LIBART_CFLAGS... $ECHO_C" >&6
13058 LIBART_CFLAGS
=`$PKG_CONFIG --cflags "libart-2.0 >= 2.1"`
13059 echo "$as_me:$LINENO: result: $LIBART_CFLAGS" >&5
13060 echo "${ECHO_T}$LIBART_CFLAGS" >&6
13062 echo "$as_me:$LINENO: checking LIBART_LIBS" >&5
13063 echo $ECHO_N "checking LIBART_LIBS... $ECHO_C" >&6
13064 LIBART_LIBS
=`$PKG_CONFIG --libs "libart-2.0 >= 2.1"`
13065 echo "$as_me:$LINENO: result: $LIBART_LIBS" >&5
13066 echo "${ECHO_T}$LIBART_LIBS" >&6
13070 ## If we have a custom action on failure, don't print errors, but
13071 ## do set a variable so people can do so.
13072 LIBART_PKG_ERRORS
=`$PKG_CONFIG --errors-to-stdout --print-errors "libart-2.0 >= 2.1"`
13073 echo $LIBART_PKG_ERRORS
13079 echo "*** Your version of pkg-config is too old. You need version $PKG_CONFIG_MIN_VERSION or newer."
13080 echo "*** See http://www.freedesktop.org/software/pkgconfig"
13084 if test $succeeded = yes; then
13087 { { 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
13088 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;}
13089 { (exit 1); exit 1; }; }
13095 # We require the XTest Extension to support java.awt.Robot.
13096 echo "$as_me:$LINENO: checking for XTestQueryExtension in -lXtst" >&5
13097 echo $ECHO_N "checking for XTestQueryExtension in -lXtst... $ECHO_C" >&6
13098 if test "${ac_cv_lib_Xtst_XTestQueryExtension+set}" = set; then
13099 echo $ECHO_N "(cached) $ECHO_C" >&6
13101 ac_check_lib_save_LIBS
=$LIBS
13102 LIBS
="-lXtst ${X_LIBS} $LIBS"
13103 if test x
$gcc_no_link = xyes
; then
13104 { { echo "$as_me:$LINENO: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&5
13105 echo "$as_me: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&2;}
13106 { (exit 1); exit 1; }; }
13108 cat >conftest.
$ac_ext <<_ACEOF
13111 cat confdefs.h
>>conftest.
$ac_ext
13112 cat >>conftest.
$ac_ext <<_ACEOF
13113 /* end confdefs.h. */
13115 /* Override any gcc2 internal prototype to avoid an error. */
13119 /* We use char because int might match the return type of a gcc2
13120 builtin and then its argument prototype would still apply. */
13121 char XTestQueryExtension ();
13125 XTestQueryExtension ();
13130 rm -f conftest.
$ac_objext conftest
$ac_exeext
13131 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
13132 (eval $ac_link) 2>conftest.er1
13134 grep -v '^ *+' conftest.er1
>conftest.err
13136 cat conftest.err
>&5
13137 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13138 (exit $ac_status); } &&
13139 { ac_try
='test -z "$ac_c_werror_flag"
13140 || test ! -s conftest.err'
13141 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13142 (eval $ac_try) 2>&5
13144 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13145 (exit $ac_status); }; } &&
13146 { ac_try
='test -s conftest$ac_exeext'
13147 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13148 (eval $ac_try) 2>&5
13150 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13151 (exit $ac_status); }; }; then
13152 ac_cv_lib_Xtst_XTestQueryExtension
=yes
13154 echo "$as_me: failed program was:" >&5
13155 sed 's/^/| /' conftest.
$ac_ext >&5
13157 ac_cv_lib_Xtst_XTestQueryExtension
=no
13159 rm -f conftest.err conftest.
$ac_objext \
13160 conftest
$ac_exeext conftest.
$ac_ext
13161 LIBS
=$ac_check_lib_save_LIBS
13163 echo "$as_me:$LINENO: result: $ac_cv_lib_Xtst_XTestQueryExtension" >&5
13164 echo "${ECHO_T}$ac_cv_lib_Xtst_XTestQueryExtension" >&6
13165 if test $ac_cv_lib_Xtst_XTestQueryExtension = yes; then
13168 { { echo "$as_me:$LINENO: error: libXtst not found, required by java.awt.Robot" >&5
13169 echo "$as_me: error: libXtst not found, required by java.awt.Robot" >&2;}
13170 { (exit 1); exit 1; }; }
13175 # On Solaris, and maybe other architectures, the Boehm collector
13177 if test "$GC" = boehm
; then
13178 echo "$as_me:$LINENO: checking for main in -ldl" >&5
13179 echo $ECHO_N "checking for main in -ldl... $ECHO_C" >&6
13180 if test "${ac_cv_lib_dl_main+set}" = set; then
13181 echo $ECHO_N "(cached) $ECHO_C" >&6
13183 ac_check_lib_save_LIBS
=$LIBS
13185 if test x
$gcc_no_link = xyes
; then
13186 { { echo "$as_me:$LINENO: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&5
13187 echo "$as_me: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&2;}
13188 { (exit 1); exit 1; }; }
13190 cat >conftest.
$ac_ext <<_ACEOF
13193 cat confdefs.h
>>conftest.
$ac_ext
13194 cat >>conftest.
$ac_ext <<_ACEOF
13195 /* end confdefs.h. */
13206 rm -f conftest.
$ac_objext conftest
$ac_exeext
13207 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
13208 (eval $ac_link) 2>conftest.er1
13210 grep -v '^ *+' conftest.er1
>conftest.err
13212 cat conftest.err
>&5
13213 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13214 (exit $ac_status); } &&
13215 { ac_try
='test -z "$ac_c_werror_flag"
13216 || test ! -s conftest.err'
13217 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13218 (eval $ac_try) 2>&5
13220 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13221 (exit $ac_status); }; } &&
13222 { ac_try
='test -s conftest$ac_exeext'
13223 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13224 (eval $ac_try) 2>&5
13226 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13227 (exit $ac_status); }; }; then
13228 ac_cv_lib_dl_main
=yes
13230 echo "$as_me: failed program was:" >&5
13231 sed 's/^/| /' conftest.
$ac_ext >&5
13233 ac_cv_lib_dl_main
=no
13235 rm -f conftest.err conftest.
$ac_objext \
13236 conftest
$ac_exeext conftest.
$ac_ext
13237 LIBS
=$ac_check_lib_save_LIBS
13239 echo "$as_me:$LINENO: result: $ac_cv_lib_dl_main" >&5
13240 echo "${ECHO_T}$ac_cv_lib_dl_main" >&6
13241 if test $ac_cv_lib_dl_main = yes; then
13242 SYSTEMSPEC
="$SYSTEMSPEC -ldl"
13249 if test "$supply_backtrace" = yes; then
13250 SUPPLY_BACKTRACE_TRUE
=
13251 SUPPLY_BACKTRACE_FALSE
='#'
13253 SUPPLY_BACKTRACE_TRUE
='#'
13254 SUPPLY_BACKTRACE_FALSE
=
13258 if test -z "${with_multisubdir}"; then
13261 builddotdot
=`echo ${with_multisubdir} | sed -e 's:[^/][^/]*:..:g'`
13266 # Which gcj do we use?
13268 built_gcc_dir
="`cd ${builddotdot}/../../${host_subdir}/gcc && ${PWDCMD-pwd}`"
13269 if test -n "${with_cross_host}"; then
13270 # We are being configured with a cross compiler. We can't
13271 # use ac_exeext, because that is for the target platform.
13274 case "${with_cross_host}" in
13275 *mingw
* |
*cygwin
*)
13276 cross_host_exeext
=.exe
13279 if test -x "${built_gcc_dir}/gcj${cross_host_exeext}"; then
13280 if test x
"$build_noncanonical" = x
"$with_cross_host"; then
13281 # Ordinary cross (host!=target and host=build)
13284 # Canadian cross (host!=target and host!=build)
13291 # We are being configured with a native or crossed-native compiler
13292 if test -x "${built_gcc_dir}/gcj${ac_exeext}"; then
13293 if test x
"$build" = x
"$host"; then
13294 # True native build (host=target and host=build)
13297 # Crossed-native build (host=target and host!=build)
13304 case "${which_gcj}" in
13306 GCJ
="$built_gcc_dir/gcj -B`${PWDCMD-pwd}`/ -B$built_gcc_dir/"
13307 GCJH
='$(top_builddir)/$(MULTIBUILDTOP)../../$(host_subdir)/gcc/gcjh'
13308 ZIP
='$(top_builddir)/$(MULTIBUILDTOP)../../$(host_subdir)/fastjar/fastjar'
13311 if test "x${with_newlib}" = "xyes"; then
13312 # FIXME (comment): Why is this needed?
13313 GCC_UNWIND_INCLUDE
=
13314 GCJ
="${target_noncanonical}-gcj"
13316 GCJ
="${target_noncanonical}-gcj -B`${PWDCMD-pwd}`/"
13318 ZIP
='$(target_noncanonical)-fastjar'
13319 GCJH
='$(target_noncanonical)-gcjh'
13322 GCJ
="gcj -B`${PWDCMD-pwd}`/"
13323 ## In this case, gcj is found outside the build tree. However, zip is
13324 ## found in the build tree.
13325 ZIP
='$(top_builddir)/$(MULTIBUILDTOP)../$(COMPPATH)/fastjar/fastjar'
13333 # Create it, so that compile/link tests don't fail
13334 test -f libgcj.spec ||
touch libgcj.spec
13336 # Use a semicolon as CLASSPATH separator for MinGW, otherwise a colon.
13338 *-mingw32) CLASSPATH_SEPARATOR
=';' ;;
13339 *) CLASSPATH_SEPARATOR
=':' ;;
13343 # We must search the source tree for java.lang, since we still don't
13344 # have libgcj.jar nor java/lang/*.class
13345 GCJ_SAVE_CPPFLAGS
=$CPPFLAGS
13346 CPPFLAGS
="$CPPFLAGS -I`${PWDCMD-pwd}` -I`cd $srcdir && ${PWDCMD-pwd}`"
13348 # Since some classes depend on this one, we need its source available
13349 # before we can do any GCJ compilation test :-(
13350 if test ! -f gnu
/classpath
/Configuration.java
; then
13351 test -d gnu || mkdir gnu
13352 test -d gnu
/classpath || mkdir gnu
/classpath
13353 sed -e 's,@LIBGCJDEBUG@,$LIBGCJDEBUG,' \
13354 -e 's,@TOOLKIT@,$TOOLKIT,' \
13355 < $srcdir/gnu
/classpath
/Configuration.java.
in \
13356 > gnu
/classpath
/Configuration.java
13357 # We do not want to redirect the output of the grep below to /dev/null,
13358 # but we add /dev/null to the input list so that grep will print the
13359 # filename of Configuration.java in case it finds any matches.
13360 if grep @ gnu
/classpath
/Configuration.java
/dev
/null
; then
13361 { { echo "$as_me:$LINENO: error: configure.ac is missing the substitutions above" >&5
13362 echo "$as_me: error: configure.ac is missing the substitutions above" >&2;}
13363 { (exit 1); exit 1; }; }
13367 if test -n "$ac_tool_prefix"; then
13368 # Extract the first word of "${ac_tool_prefix}gcj", so it can be a program name with args.
13369 set dummy
${ac_tool_prefix}gcj
; ac_word
=$2
13370 echo "$as_me:$LINENO: checking for $ac_word" >&5
13371 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
13372 if test "${ac_cv_prog_GCJ+set}" = set; then
13373 echo $ECHO_N "(cached) $ECHO_C" >&6
13375 if test -n "$GCJ"; then
13376 ac_cv_prog_GCJ
="$GCJ" # Let the user override the test.
13378 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
13379 for as_dir
in $PATH
13382 test -z "$as_dir" && as_dir
=.
13383 for ac_exec_ext
in '' $ac_executable_extensions; do
13384 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
13385 ac_cv_prog_GCJ
="${ac_tool_prefix}gcj"
13386 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
13394 GCJ
=$ac_cv_prog_GCJ
13395 if test -n "$GCJ"; then
13396 echo "$as_me:$LINENO: result: $GCJ" >&5
13397 echo "${ECHO_T}$GCJ" >&6
13399 echo "$as_me:$LINENO: result: no" >&5
13400 echo "${ECHO_T}no" >&6
13404 if test -z "$ac_cv_prog_GCJ"; then
13406 # Extract the first word of "gcj", so it can be a program name with args.
13407 set dummy gcj
; ac_word
=$2
13408 echo "$as_me:$LINENO: checking for $ac_word" >&5
13409 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
13410 if test "${ac_cv_prog_ac_ct_GCJ+set}" = set; then
13411 echo $ECHO_N "(cached) $ECHO_C" >&6
13413 if test -n "$ac_ct_GCJ"; then
13414 ac_cv_prog_ac_ct_GCJ
="$ac_ct_GCJ" # Let the user override the test.
13416 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
13417 for as_dir
in $PATH
13420 test -z "$as_dir" && as_dir
=.
13421 for ac_exec_ext
in '' $ac_executable_extensions; do
13422 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
13423 ac_cv_prog_ac_ct_GCJ
="gcj"
13424 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
13430 test -z "$ac_cv_prog_ac_ct_GCJ" && ac_cv_prog_ac_ct_GCJ
="no"
13433 ac_ct_GCJ
=$ac_cv_prog_ac_ct_GCJ
13434 if test -n "$ac_ct_GCJ"; then
13435 echo "$as_me:$LINENO: result: $ac_ct_GCJ" >&5
13436 echo "${ECHO_T}$ac_ct_GCJ" >&6
13438 echo "$as_me:$LINENO: result: no" >&5
13439 echo "${ECHO_T}no" >&6
13444 GCJ
="$ac_cv_prog_GCJ"
13447 test "x${GCJFLAGS+set}" = xset || GCJFLAGS
="-g -O2"
13452 CPPFLAGS
=$GCJ_SAVE_CPPFLAGS
13454 echo "$as_me:$LINENO: checking size of void *" >&5
13455 echo $ECHO_N "checking size of void *... $ECHO_C" >&6
13456 if test "${ac_cv_sizeof_void_p+set}" = set; then
13457 echo $ECHO_N "(cached) $ECHO_C" >&6
13459 for ac_size
in 4 8 1 2 16 12 ; do # List sizes in rough order of prevalence.
13460 cat >conftest.
$ac_ext <<_ACEOF
13463 cat confdefs.h
>>conftest.
$ac_ext
13464 cat >>conftest.
$ac_ext <<_ACEOF
13465 /* end confdefs.h. */
13466 #include "confdefs.h"
13467 #include <sys/types.h>
13473 switch (0) case 0: case (sizeof (void *) == $ac_size):;
13478 rm -f conftest.
$ac_objext
13479 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
13480 (eval $ac_compile) 2>conftest.er1
13482 grep -v '^ *+' conftest.er1
>conftest.err
13484 cat conftest.err
>&5
13485 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13486 (exit $ac_status); } &&
13487 { ac_try
='test -z "$ac_c_werror_flag"
13488 || test ! -s conftest.err'
13489 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13490 (eval $ac_try) 2>&5
13492 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13493 (exit $ac_status); }; } &&
13494 { ac_try
='test -s conftest.$ac_objext'
13495 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13496 (eval $ac_try) 2>&5
13498 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13499 (exit $ac_status); }; }; then
13500 ac_cv_sizeof_void_p
=$ac_size
13502 echo "$as_me: failed program was:" >&5
13503 sed 's/^/| /' conftest.
$ac_ext >&5
13506 rm -f conftest.err conftest.
$ac_objext conftest.
$ac_ext
13507 if test x
$ac_cv_sizeof_void_p != x
; then break; fi
13512 if test x
$ac_cv_sizeof_void_p = x
; then
13513 { { echo "$as_me:$LINENO: error: cannot determine a size for void *" >&5
13514 echo "$as_me: error: cannot determine a size for void *" >&2;}
13515 { (exit 1); exit 1; }; }
13517 echo "$as_me:$LINENO: result: $ac_cv_sizeof_void_p" >&5
13518 echo "${ECHO_T}$ac_cv_sizeof_void_p" >&6
13520 cat >>confdefs.h
<<_ACEOF
13521 #define SIZEOF_VOID_P $ac_cv_sizeof_void_p
13526 echo "$as_me:$LINENO: checking whether byte ordering is bigendian" >&5
13527 echo $ECHO_N "checking whether byte ordering is bigendian... $ECHO_C" >&6
13528 if test "${ac_cv_c_bigendian+set}" = set; then
13529 echo $ECHO_N "(cached) $ECHO_C" >&6
13531 ac_cv_c_bigendian
=unknown
13532 # See if sys/param.h defines the BYTE_ORDER macro.
13533 cat >conftest.
$ac_ext <<_ACEOF
13536 cat confdefs.h
>>conftest.
$ac_ext
13537 cat >>conftest.
$ac_ext <<_ACEOF
13538 /* end confdefs.h. */
13539 #include <sys/types.h>
13540 #include <sys/param.h>
13545 #if !BYTE_ORDER || !BIG_ENDIAN || !LITTLE_ENDIAN
13546 bogus endian macros
13552 rm -f conftest.
$ac_objext
13553 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
13554 (eval $ac_compile) 2>conftest.er1
13556 grep -v '^ *+' conftest.er1
>conftest.err
13558 cat conftest.err
>&5
13559 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13560 (exit $ac_status); } &&
13561 { ac_try
='test -z "$ac_c_werror_flag"
13562 || test ! -s conftest.err'
13563 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13564 (eval $ac_try) 2>&5
13566 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13567 (exit $ac_status); }; } &&
13568 { ac_try
='test -s conftest.$ac_objext'
13569 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13570 (eval $ac_try) 2>&5
13572 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13573 (exit $ac_status); }; }; then
13574 # It does; now see whether it defined to BIG_ENDIAN or not.
13575 cat >conftest.
$ac_ext <<_ACEOF
13578 cat confdefs.h
>>conftest.
$ac_ext
13579 cat >>conftest.
$ac_ext <<_ACEOF
13580 /* end confdefs.h. */
13581 #include <sys/types.h>
13582 #include <sys/param.h>
13587 #if BYTE_ORDER != BIG_ENDIAN
13594 rm -f conftest.
$ac_objext
13595 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
13596 (eval $ac_compile) 2>conftest.er1
13598 grep -v '^ *+' conftest.er1
>conftest.err
13600 cat conftest.err
>&5
13601 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13602 (exit $ac_status); } &&
13603 { ac_try
='test -z "$ac_c_werror_flag"
13604 || test ! -s conftest.err'
13605 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13606 (eval $ac_try) 2>&5
13608 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13609 (exit $ac_status); }; } &&
13610 { ac_try
='test -s conftest.$ac_objext'
13611 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13612 (eval $ac_try) 2>&5
13614 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13615 (exit $ac_status); }; }; then
13616 ac_cv_c_bigendian
=yes
13618 echo "$as_me: failed program was:" >&5
13619 sed 's/^/| /' conftest.
$ac_ext >&5
13621 ac_cv_c_bigendian
=no
13623 rm -f conftest.err conftest.
$ac_objext conftest.
$ac_ext
13625 echo "$as_me: failed program was:" >&5
13626 sed 's/^/| /' conftest.
$ac_ext >&5
13629 rm -f conftest.err conftest.
$ac_objext conftest.
$ac_ext
13630 if test $ac_cv_c_bigendian = unknown
; then
13631 if test "$cross_compiling" = yes; then
13632 echo $ac_n "cross-compiling... " 2>&6
13634 cat >conftest.
$ac_ext <<_ACEOF
13637 cat confdefs.h
>>conftest.
$ac_ext
13638 cat >>conftest.
$ac_ext <<_ACEOF
13639 /* end confdefs.h. */
13641 /* Are we little or big endian? From Harbison&Steele. */
13645 char c[sizeof (long)];
13648 exit (u.c[sizeof (long) - 1] == 1);
13651 rm -f conftest
$ac_exeext
13652 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
13653 (eval $ac_link) 2>&5
13655 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13656 (exit $ac_status); } && { ac_try
='./conftest$ac_exeext'
13657 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13658 (eval $ac_try) 2>&5
13660 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13661 (exit $ac_status); }; }; then
13662 ac_cv_c_bigendian
=no
13664 echo "$as_me: program exited with status $ac_status" >&5
13665 echo "$as_me: failed program was:" >&5
13666 sed 's/^/| /' conftest.
$ac_ext >&5
13668 ( exit $ac_status )
13669 ac_cv_c_bigendian
=yes
13671 rm -f core
*.core gmon.out bb.out conftest
$ac_exeext conftest.
$ac_objext conftest.
$ac_ext
13675 echo "$as_me:$LINENO: result: $ac_cv_c_bigendian" >&5
13676 echo "${ECHO_T}$ac_cv_c_bigendian" >&6
13677 if test $ac_cv_c_bigendian = unknown
; then
13678 echo "$as_me:$LINENO: checking to probe for byte ordering" >&5
13679 echo $ECHO_N "checking to probe for byte ordering... $ECHO_C" >&6
13681 cat >conftest.c
<<EOF
13682 short ascii_mm[] = { 0x4249, 0x4765, 0x6E44, 0x6961, 0x6E53, 0x7953, 0 };
13683 short ascii_ii[] = { 0x694C, 0x5454, 0x656C, 0x6E45, 0x6944, 0x6E61, 0 };
13684 void _ascii() { char* s = (char*) ascii_mm; s = (char*) ascii_ii; }
13685 short ebcdic_ii[] = { 0x89D3, 0xE3E3, 0x8593, 0x95C5, 0x89C4, 0x9581, 0 };
13686 short ebcdic_mm[] = { 0xC2C9, 0xC785, 0x95C4, 0x8981, 0x95E2, 0xA8E2, 0 };
13687 void _ebcdic() { char* s = (char*) ebcdic_mm; s = (char*) ebcdic_ii; }
13688 int main() { _ascii (); _ebcdic (); return 0; }
13690 if test -f conftest.c
; then
13691 if ${CC-cc} ${CFLAGS} -c conftest.c
-o conftest.o
&& test -f conftest.o
; then
13692 if test `grep -l BIGenDianSyS conftest.o` ; then
13693 echo $ac_n ' big endian probe OK, ' 1>&6
13694 ac_cv_c_bigendian
=yes
13696 if test `grep -l LiTTleEnDian conftest.o` ; then
13697 echo $ac_n ' little endian probe OK, ' 1>&6
13698 if test $ac_cv_c_bigendian = yes ; then
13699 ac_cv_c_bigendian
=unknown
;
13701 ac_cv_c_bigendian
=no
13704 echo $ac_n 'guessing bigendian ... ' >&6
13707 echo "$as_me:$LINENO: result: $ac_cv_c_bigendian" >&5
13708 echo "${ECHO_T}$ac_cv_c_bigendian" >&6
13710 if test $ac_cv_c_bigendian = yes; then
13712 cat >>confdefs.h
<<\_ACEOF
13713 #define WORDS_BIGENDIAN 1
13717 cat >>confdefs.h
<<\_ACEOF
13718 #define HOST_WORDS_BIG_ENDIAN 1
13726 cat >>confdefs.h
<<_ACEOF
13727 #define BYTEORDER $BYTEORDER
13730 if test $ac_cv_c_bigendian = unknown
; then
13731 { { echo "$as_me:$LINENO: error: unknown endianess - sorry, please pre-set ac_cv_c_bigendian" >&5
13732 echo "$as_me: error: unknown endianess - sorry, please pre-set ac_cv_c_bigendian" >&2;}
13733 { (exit 1); exit 1; }; }
13741 if test -z "$ZLIBSPEC"; then
13742 # Use zlib from the GCC tree.
13743 ZINCS
='-I$(top_srcdir)/../zlib'
13744 ZLIBS
=..
/zlib
/libzgcj_convenience.la
13747 SYS_ZLIBS
="$ZLIBSPEC"
13759 if test "$NATIVE" = yes; then
13769 if test "$NEEDS_DATA_START" = yes && test "$NATIVE" = yes; then
13770 NEEDS_DATA_START_TRUE
=
13771 NEEDS_DATA_START_FALSE
='#'
13773 NEEDS_DATA_START_TRUE
='#'
13774 NEEDS_DATA_START_FALSE
=
13779 # Process the option "--enable-version-specific-runtime-libs"
13780 # Calculate toolexeclibdir
13781 case ${version_specific_libs} in
13783 # Need the gcc compiler version to know where to install libraries
13784 # and header files if --enable-version-specific-runtime-libs option
13786 includedir
='${libdir}/gcc/${target_noncanonical}/'$gcc_version/include
/
13787 toolexecdir
='$(libdir)/gcc/$(target_noncanonical)'
13788 toolexecmainlibdir
='$(toolexecdir)/'${gcc_version}'$(MULTISUBDIR)'
13789 toolexeclibdir
=$toolexecmainlibdir
13792 if test -n "$with_cross_host" &&
13793 test x
"$with_cross_host" != x
"no"; then
13794 # Install a library built with a cross compiler in tooldir, not libdir.
13795 toolexecdir
='$(exec_prefix)/$(target_noncanonical)'
13796 toolexecmainlibdir
='$(toolexecdir)/lib'
13798 toolexecdir
='$(libdir)/gcc-lib/$(target_noncanonical)'
13799 toolexecmainlibdir
='$(libdir)'
13801 multi_os_directory
=`$CC -print-multi-os-directory`
13802 case $multi_os_directory in
13803 .
) toolexeclibdir
=$toolexecmainlibdir ;; # Avoid trailing /.
13804 *) toolexeclibdir
=$toolexecmainlibdir/$multi_os_directory ;;
13812 # Determine gcj version number.
13813 gcjversion
=`$GCJ -v 2>&1 | sed -n 's/^.*version \([^ ]*\).*$/\1/p'`
13814 GCJVERSION
=$gcjversion
13817 cat >>confdefs.h
<<_ACEOF
13818 #define GCJVERSION "$GCJVERSION"
13823 cat >>confdefs.h
<<\_ACEOF
13824 #define JV_VERSION "1.4.2"
13828 cat >>confdefs.h
<<\_ACEOF
13829 #define JV_API_VERSION "1.4"
13834 case "${with_gxx_include_dir}" in
13836 { { echo "$as_me:$LINENO: error: --with-gxx-include-dir=[dir] requires a directory" >&5
13837 echo "$as_me: error: --with-gxx-include-dir=[dir] requires a directory" >&2;}
13838 { (exit 1); exit 1; }; }
13841 case "${enable_version_specific_runtime_libs}" in
13842 yes) gxx_include_dir
='${libsubdir}/include/c++' ;;
13844 libstdcxx_incdir
=c
++/${gcc_version}
13845 gxx_include_dir
='${prefix}/include/'${libstdcxx_incdir} ;;
13847 *) gxx_include_dir
=${with_gxx_include_dir} ;;
13853 # We check for sys/filio.h because Solaris 2.5 defines FIONREAD there.
13854 # On that system, sys/ioctl.h will not include sys/filio.h unless
13855 # BSD_COMP is defined; just including sys/filio.h is simpler.
13856 # We avoid AC_HEADER_DIRENT since we really only care about dirent.h
13857 # for now. If you change this, you also must update natFile.cc.
13878 for ac_header
in unistd.h bstring.h sys
/time.h sys
/types.h fcntl.h \
13879 sys
/ioctl.h sys
/filio.h sys
/stat.h sys
/select.h \
13880 sys
/socket.h netinet
/in.h arpa
/inet.h netdb.h net
/if.h \
13881 pwd.h sys
/config.h stdint.h langinfo.h locale.h \
13884 as_ac_Header
=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
13885 if eval "test \"\${$as_ac_Header+set}\" = set"; then
13886 echo "$as_me:$LINENO: checking for $ac_header" >&5
13887 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
13888 if eval "test \"\${$as_ac_Header+set}\" = set"; then
13889 echo $ECHO_N "(cached) $ECHO_C" >&6
13891 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
13892 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
13894 # Is the header compilable?
13895 echo "$as_me:$LINENO: checking $ac_header usability" >&5
13896 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
13897 cat >conftest.
$ac_ext <<_ACEOF
13900 cat confdefs.h
>>conftest.
$ac_ext
13901 cat >>conftest.
$ac_ext <<_ACEOF
13902 /* end confdefs.h. */
13903 $ac_includes_default
13904 #include <$ac_header>
13906 rm -f conftest.
$ac_objext
13907 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
13908 (eval $ac_compile) 2>conftest.er1
13910 grep -v '^ *+' conftest.er1
>conftest.err
13912 cat conftest.err
>&5
13913 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13914 (exit $ac_status); } &&
13915 { ac_try
='test -z "$ac_c_werror_flag"
13916 || test ! -s conftest.err'
13917 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13918 (eval $ac_try) 2>&5
13920 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13921 (exit $ac_status); }; } &&
13922 { ac_try
='test -s conftest.$ac_objext'
13923 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13924 (eval $ac_try) 2>&5
13926 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13927 (exit $ac_status); }; }; then
13928 ac_header_compiler
=yes
13930 echo "$as_me: failed program was:" >&5
13931 sed 's/^/| /' conftest.
$ac_ext >&5
13933 ac_header_compiler
=no
13935 rm -f conftest.err conftest.
$ac_objext conftest.
$ac_ext
13936 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
13937 echo "${ECHO_T}$ac_header_compiler" >&6
13939 # Is the header present?
13940 echo "$as_me:$LINENO: checking $ac_header presence" >&5
13941 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
13942 cat >conftest.
$ac_ext <<_ACEOF
13945 cat confdefs.h
>>conftest.
$ac_ext
13946 cat >>conftest.
$ac_ext <<_ACEOF
13947 /* end confdefs.h. */
13948 #include <$ac_header>
13950 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
13951 (eval $ac_cpp conftest.
$ac_ext) 2>conftest.er1
13953 grep -v '^ *+' conftest.er1
>conftest.err
13955 cat conftest.err
>&5
13956 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13957 (exit $ac_status); } >/dev
/null
; then
13958 if test -s conftest.err
; then
13959 ac_cpp_err
=$ac_c_preproc_warn_flag
13960 ac_cpp_err
=$ac_cpp_err$ac_c_werror_flag
13967 if test -z "$ac_cpp_err"; then
13968 ac_header_preproc
=yes
13970 echo "$as_me: failed program was:" >&5
13971 sed 's/^/| /' conftest.
$ac_ext >&5
13973 ac_header_preproc
=no
13975 rm -f conftest.err conftest.
$ac_ext
13976 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
13977 echo "${ECHO_T}$ac_header_preproc" >&6
13979 # So? What about this header?
13980 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
13982 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
13983 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
13984 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
13985 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
13986 ac_header_preproc
=yes
13989 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
13990 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
13991 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
13992 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
13993 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
13994 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
13995 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
13996 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
13997 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
13998 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
13999 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
14000 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
14003 ## ---------------------------------- ##
14004 ## Report this to the libjava lists. ##
14005 ## ---------------------------------- ##
14008 sed "s/^/$as_me: WARNING: /" >&2
14011 echo "$as_me:$LINENO: checking for $ac_header" >&5
14012 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
14013 if eval "test \"\${$as_ac_Header+set}\" = set"; then
14014 echo $ECHO_N "(cached) $ECHO_C" >&6
14016 eval "$as_ac_Header=\$ac_header_preproc"
14018 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
14019 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
14022 if test `eval echo '${'$as_ac_Header'}'` = yes; then
14023 cat >>confdefs.h
<<_ACEOF
14024 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
14032 for ac_header
in inttypes.h
14034 as_ac_Header
=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
14035 if eval "test \"\${$as_ac_Header+set}\" = set"; then
14036 echo "$as_me:$LINENO: checking for $ac_header" >&5
14037 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
14038 if eval "test \"\${$as_ac_Header+set}\" = set"; then
14039 echo $ECHO_N "(cached) $ECHO_C" >&6
14041 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
14042 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
14044 # Is the header compilable?
14045 echo "$as_me:$LINENO: checking $ac_header usability" >&5
14046 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
14047 cat >conftest.
$ac_ext <<_ACEOF
14050 cat confdefs.h
>>conftest.
$ac_ext
14051 cat >>conftest.
$ac_ext <<_ACEOF
14052 /* end confdefs.h. */
14053 $ac_includes_default
14054 #include <$ac_header>
14056 rm -f conftest.
$ac_objext
14057 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
14058 (eval $ac_compile) 2>conftest.er1
14060 grep -v '^ *+' conftest.er1
>conftest.err
14062 cat conftest.err
>&5
14063 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14064 (exit $ac_status); } &&
14065 { ac_try
='test -z "$ac_c_werror_flag"
14066 || test ! -s conftest.err'
14067 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14068 (eval $ac_try) 2>&5
14070 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14071 (exit $ac_status); }; } &&
14072 { ac_try
='test -s conftest.$ac_objext'
14073 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14074 (eval $ac_try) 2>&5
14076 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14077 (exit $ac_status); }; }; then
14078 ac_header_compiler
=yes
14080 echo "$as_me: failed program was:" >&5
14081 sed 's/^/| /' conftest.
$ac_ext >&5
14083 ac_header_compiler
=no
14085 rm -f conftest.err conftest.
$ac_objext conftest.
$ac_ext
14086 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
14087 echo "${ECHO_T}$ac_header_compiler" >&6
14089 # Is the header present?
14090 echo "$as_me:$LINENO: checking $ac_header presence" >&5
14091 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
14092 cat >conftest.
$ac_ext <<_ACEOF
14095 cat confdefs.h
>>conftest.
$ac_ext
14096 cat >>conftest.
$ac_ext <<_ACEOF
14097 /* end confdefs.h. */
14098 #include <$ac_header>
14100 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
14101 (eval $ac_cpp conftest.
$ac_ext) 2>conftest.er1
14103 grep -v '^ *+' conftest.er1
>conftest.err
14105 cat conftest.err
>&5
14106 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14107 (exit $ac_status); } >/dev
/null
; then
14108 if test -s conftest.err
; then
14109 ac_cpp_err
=$ac_c_preproc_warn_flag
14110 ac_cpp_err
=$ac_cpp_err$ac_c_werror_flag
14117 if test -z "$ac_cpp_err"; then
14118 ac_header_preproc
=yes
14120 echo "$as_me: failed program was:" >&5
14121 sed 's/^/| /' conftest.
$ac_ext >&5
14123 ac_header_preproc
=no
14125 rm -f conftest.err conftest.
$ac_ext
14126 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
14127 echo "${ECHO_T}$ac_header_preproc" >&6
14129 # So? What about this header?
14130 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
14132 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
14133 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
14134 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
14135 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
14136 ac_header_preproc
=yes
14139 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
14140 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
14141 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
14142 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
14143 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
14144 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
14145 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
14146 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
14147 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
14148 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
14149 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
14150 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
14153 ## ---------------------------------- ##
14154 ## Report this to the libjava lists. ##
14155 ## ---------------------------------- ##
14158 sed "s/^/$as_me: WARNING: /" >&2
14161 echo "$as_me:$LINENO: checking for $ac_header" >&5
14162 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
14163 if eval "test \"\${$as_ac_Header+set}\" = set"; then
14164 echo $ECHO_N "(cached) $ECHO_C" >&6
14166 eval "$as_ac_Header=\$ac_header_preproc"
14168 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
14169 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
14172 if test `eval echo '${'$as_ac_Header'}'` = yes; then
14173 cat >>confdefs.h
<<_ACEOF
14174 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
14178 cat >>confdefs.h
<<\_ACEOF
14179 #define HAVE_INTTYPES_H 1
14183 cat >>confdefs.h
<<\_ACEOF
14184 #define JV_HAVE_INTTYPES_H 1
14192 echo "$as_me:$LINENO: checking for sys/wait.h that is POSIX.1 compatible" >&5
14193 echo $ECHO_N "checking for sys/wait.h that is POSIX.1 compatible... $ECHO_C" >&6
14194 if test "${ac_cv_header_sys_wait_h+set}" = set; then
14195 echo $ECHO_N "(cached) $ECHO_C" >&6
14197 cat >conftest.
$ac_ext <<_ACEOF
14200 cat confdefs.h
>>conftest.
$ac_ext
14201 cat >>conftest.
$ac_ext <<_ACEOF
14202 /* end confdefs.h. */
14203 #include <sys/types.h>
14204 #include <sys/wait.h>
14205 #ifndef WEXITSTATUS
14206 # define WEXITSTATUS(stat_val) ((unsigned)(stat_val) >> 8)
14209 # define WIFEXITED(stat_val) (((stat_val) & 255) == 0)
14217 s = WIFEXITED (s) ? WEXITSTATUS (s) : 1;
14222 rm -f conftest.
$ac_objext
14223 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
14224 (eval $ac_compile) 2>conftest.er1
14226 grep -v '^ *+' conftest.er1
>conftest.err
14228 cat conftest.err
>&5
14229 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14230 (exit $ac_status); } &&
14231 { ac_try
='test -z "$ac_c_werror_flag"
14232 || test ! -s conftest.err'
14233 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14234 (eval $ac_try) 2>&5
14236 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14237 (exit $ac_status); }; } &&
14238 { ac_try
='test -s conftest.$ac_objext'
14239 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14240 (eval $ac_try) 2>&5
14242 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14243 (exit $ac_status); }; }; then
14244 ac_cv_header_sys_wait_h
=yes
14246 echo "$as_me: failed program was:" >&5
14247 sed 's/^/| /' conftest.
$ac_ext >&5
14249 ac_cv_header_sys_wait_h
=no
14251 rm -f conftest.err conftest.
$ac_objext conftest.
$ac_ext
14253 echo "$as_me:$LINENO: result: $ac_cv_header_sys_wait_h" >&5
14254 echo "${ECHO_T}$ac_cv_header_sys_wait_h" >&6
14255 if test $ac_cv_header_sys_wait_h = yes; then
14257 cat >>confdefs.h
<<\_ACEOF
14258 #define HAVE_SYS_WAIT_H 1
14264 echo "$as_me:$LINENO: checking for ssize_t" >&5
14265 echo $ECHO_N "checking for ssize_t... $ECHO_C" >&6
14266 if test "${ac_cv_type_ssize_t+set}" = set; then
14267 echo $ECHO_N "(cached) $ECHO_C" >&6
14269 cat >conftest.
$ac_ext <<_ACEOF
14272 cat confdefs.h
>>conftest.
$ac_ext
14273 cat >>conftest.
$ac_ext <<_ACEOF
14274 /* end confdefs.h. */
14275 $ac_includes_default
14281 if (sizeof (ssize_t))
14287 rm -f conftest.
$ac_objext
14288 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
14289 (eval $ac_compile) 2>conftest.er1
14291 grep -v '^ *+' conftest.er1
>conftest.err
14293 cat conftest.err
>&5
14294 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14295 (exit $ac_status); } &&
14296 { ac_try
='test -z "$ac_c_werror_flag"
14297 || test ! -s conftest.err'
14298 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14299 (eval $ac_try) 2>&5
14301 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14302 (exit $ac_status); }; } &&
14303 { ac_try
='test -s conftest.$ac_objext'
14304 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14305 (eval $ac_try) 2>&5
14307 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14308 (exit $ac_status); }; }; then
14309 ac_cv_type_ssize_t
=yes
14311 echo "$as_me: failed program was:" >&5
14312 sed 's/^/| /' conftest.
$ac_ext >&5
14314 ac_cv_type_ssize_t
=no
14316 rm -f conftest.err conftest.
$ac_objext conftest.
$ac_ext
14318 echo "$as_me:$LINENO: result: $ac_cv_type_ssize_t" >&5
14319 echo "${ECHO_T}$ac_cv_type_ssize_t" >&6
14320 if test $ac_cv_type_ssize_t = yes; then
14324 cat >>confdefs.h
<<_ACEOF
14325 #define ssize_t int
14331 echo "$as_me:$LINENO: checking for in_addr_t" >&5
14332 echo $ECHO_N "checking for in_addr_t... $ECHO_C" >&6
14333 cat >conftest.
$ac_ext <<_ACEOF
14336 cat confdefs.h
>>conftest.
$ac_ext
14337 cat >>conftest.
$ac_ext <<_ACEOF
14338 /* end confdefs.h. */
14339 #include <sys/types.h>
14341 #include <stdlib.h>
14342 #include <stddef.h>
14344 #if HAVE_NETINET_IN_H
14345 #include <netinet/in.h>
14355 rm -f conftest.
$ac_objext
14356 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
14357 (eval $ac_compile) 2>conftest.er1
14359 grep -v '^ *+' conftest.er1
>conftest.err
14361 cat conftest.err
>&5
14362 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14363 (exit $ac_status); } &&
14364 { ac_try
='test -z "$ac_c_werror_flag"
14365 || test ! -s conftest.err'
14366 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14367 (eval $ac_try) 2>&5
14369 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14370 (exit $ac_status); }; } &&
14371 { ac_try
='test -s conftest.$ac_objext'
14372 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14373 (eval $ac_try) 2>&5
14375 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14376 (exit $ac_status); }; }; then
14378 cat >>confdefs.h
<<\_ACEOF
14379 #define HAVE_IN_ADDR_T 1
14382 echo "$as_me:$LINENO: result: yes" >&5
14383 echo "${ECHO_T}yes" >&6
14385 echo "$as_me: failed program was:" >&5
14386 sed 's/^/| /' conftest.
$ac_ext >&5
14388 echo "$as_me:$LINENO: result: no" >&5
14389 echo "${ECHO_T}no" >&6
14391 rm -f conftest.err conftest.
$ac_objext conftest.
$ac_ext
14393 echo "$as_me:$LINENO: checking whether struct ip_mreq is in netinet/in.h" >&5
14394 echo $ECHO_N "checking whether struct ip_mreq is in netinet/in.h... $ECHO_C" >&6
14395 cat >conftest.
$ac_ext <<_ACEOF
14398 cat confdefs.h
>>conftest.
$ac_ext
14399 cat >>conftest.
$ac_ext <<_ACEOF
14400 /* end confdefs.h. */
14401 #include <netinet/in.h>
14405 struct ip_mreq mreq;
14410 rm -f conftest.
$ac_objext
14411 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
14412 (eval $ac_compile) 2>conftest.er1
14414 grep -v '^ *+' conftest.er1
>conftest.err
14416 cat conftest.err
>&5
14417 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14418 (exit $ac_status); } &&
14419 { ac_try
='test -z "$ac_c_werror_flag"
14420 || test ! -s conftest.err'
14421 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14422 (eval $ac_try) 2>&5
14424 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14425 (exit $ac_status); }; } &&
14426 { ac_try
='test -s conftest.$ac_objext'
14427 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14428 (eval $ac_try) 2>&5
14430 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14431 (exit $ac_status); }; }; then
14433 cat >>confdefs.h
<<\_ACEOF
14434 #define HAVE_STRUCT_IP_MREQ 1
14437 echo "$as_me:$LINENO: result: yes" >&5
14438 echo "${ECHO_T}yes" >&6
14440 echo "$as_me: failed program was:" >&5
14441 sed 's/^/| /' conftest.
$ac_ext >&5
14443 echo "$as_me:$LINENO: result: no" >&5
14444 echo "${ECHO_T}no" >&6
14446 rm -f conftest.err conftest.
$ac_objext conftest.
$ac_ext
14448 echo "$as_me:$LINENO: checking whether struct ipv6_mreq is in netinet/in.h" >&5
14449 echo $ECHO_N "checking whether struct ipv6_mreq is in netinet/in.h... $ECHO_C" >&6
14450 cat >conftest.
$ac_ext <<_ACEOF
14453 cat confdefs.h
>>conftest.
$ac_ext
14454 cat >>conftest.
$ac_ext <<_ACEOF
14455 /* end confdefs.h. */
14456 #include <netinet/in.h>
14460 struct ipv6_mreq mreq6;
14465 rm -f conftest.
$ac_objext
14466 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
14467 (eval $ac_compile) 2>conftest.er1
14469 grep -v '^ *+' conftest.er1
>conftest.err
14471 cat conftest.err
>&5
14472 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14473 (exit $ac_status); } &&
14474 { ac_try
='test -z "$ac_c_werror_flag"
14475 || test ! -s conftest.err'
14476 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14477 (eval $ac_try) 2>&5
14479 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14480 (exit $ac_status); }; } &&
14481 { ac_try
='test -s conftest.$ac_objext'
14482 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14483 (eval $ac_try) 2>&5
14485 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14486 (exit $ac_status); }; }; then
14488 cat >>confdefs.h
<<\_ACEOF
14489 #define HAVE_STRUCT_IPV6_MREQ 1
14492 echo "$as_me:$LINENO: result: yes" >&5
14493 echo "${ECHO_T}yes" >&6
14495 echo "$as_me: failed program was:" >&5
14496 sed 's/^/| /' conftest.
$ac_ext >&5
14498 echo "$as_me:$LINENO: result: no" >&5
14499 echo "${ECHO_T}no" >&6
14501 rm -f conftest.err conftest.
$ac_objext conftest.
$ac_ext
14503 echo "$as_me:$LINENO: checking whether struct sockaddr_in6 is in netinet/in.h" >&5
14504 echo $ECHO_N "checking whether struct sockaddr_in6 is in netinet/in.h... $ECHO_C" >&6
14505 cat >conftest.
$ac_ext <<_ACEOF
14508 cat confdefs.h
>>conftest.
$ac_ext
14509 cat >>conftest.
$ac_ext <<_ACEOF
14510 /* end confdefs.h. */
14511 #include <netinet/in.h>
14515 struct sockaddr_in6 addr6;
14520 rm -f conftest.
$ac_objext
14521 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
14522 (eval $ac_compile) 2>conftest.er1
14524 grep -v '^ *+' conftest.er1
>conftest.err
14526 cat conftest.err
>&5
14527 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14528 (exit $ac_status); } &&
14529 { ac_try
='test -z "$ac_c_werror_flag"
14530 || test ! -s conftest.err'
14531 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14532 (eval $ac_try) 2>&5
14534 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14535 (exit $ac_status); }; } &&
14536 { ac_try
='test -s conftest.$ac_objext'
14537 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14538 (eval $ac_try) 2>&5
14540 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14541 (exit $ac_status); }; }; then
14543 cat >>confdefs.h
<<\_ACEOF
14544 #define HAVE_INET6 1
14547 echo "$as_me:$LINENO: result: yes" >&5
14548 echo "${ECHO_T}yes" >&6
14550 echo "$as_me: failed program was:" >&5
14551 sed 's/^/| /' conftest.
$ac_ext >&5
14553 echo "$as_me:$LINENO: result: no" >&5
14554 echo "${ECHO_T}no" >&6
14556 rm -f conftest.err conftest.
$ac_objext conftest.
$ac_ext
14558 echo "$as_me:$LINENO: checking for socklen_t in sys/socket.h" >&5
14559 echo $ECHO_N "checking for socklen_t in sys/socket.h... $ECHO_C" >&6
14560 cat >conftest.
$ac_ext <<_ACEOF
14563 cat confdefs.h
>>conftest.
$ac_ext
14564 cat >>conftest.
$ac_ext <<_ACEOF
14565 /* end confdefs.h. */
14566 #define _POSIX_PII_SOCKET
14567 #include <sys/types.h>
14568 #include <sys/socket.h>
14577 rm -f conftest.
$ac_objext
14578 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
14579 (eval $ac_compile) 2>conftest.er1
14581 grep -v '^ *+' conftest.er1
>conftest.err
14583 cat conftest.err
>&5
14584 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14585 (exit $ac_status); } &&
14586 { ac_try
='test -z "$ac_c_werror_flag"
14587 || test ! -s conftest.err'
14588 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14589 (eval $ac_try) 2>&5
14591 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14592 (exit $ac_status); }; } &&
14593 { ac_try
='test -s conftest.$ac_objext'
14594 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14595 (eval $ac_try) 2>&5
14597 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14598 (exit $ac_status); }; }; then
14600 cat >>confdefs.h
<<\_ACEOF
14601 #define HAVE_SOCKLEN_T 1
14604 echo "$as_me:$LINENO: result: yes" >&5
14605 echo "${ECHO_T}yes" >&6
14607 echo "$as_me: failed program was:" >&5
14608 sed 's/^/| /' conftest.
$ac_ext >&5
14610 echo "$as_me:$LINENO: result: no" >&5
14611 echo "${ECHO_T}no" >&6
14613 rm -f conftest.err conftest.
$ac_objext conftest.
$ac_ext
14615 echo "$as_me:$LINENO: checking for tm_gmtoff in struct tm" >&5
14616 echo $ECHO_N "checking for tm_gmtoff in struct tm... $ECHO_C" >&6
14617 cat >conftest.
$ac_ext <<_ACEOF
14620 cat confdefs.h
>>conftest.
$ac_ext
14621 cat >>conftest.
$ac_ext <<_ACEOF
14622 /* end confdefs.h. */
14627 struct tm tim; tim.tm_gmtoff = 0;
14632 rm -f conftest.
$ac_objext
14633 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
14634 (eval $ac_compile) 2>conftest.er1
14636 grep -v '^ *+' conftest.er1
>conftest.err
14638 cat conftest.err
>&5
14639 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14640 (exit $ac_status); } &&
14641 { ac_try
='test -z "$ac_c_werror_flag"
14642 || test ! -s conftest.err'
14643 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14644 (eval $ac_try) 2>&5
14646 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14647 (exit $ac_status); }; } &&
14648 { ac_try
='test -s conftest.$ac_objext'
14649 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14650 (eval $ac_try) 2>&5
14652 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14653 (exit $ac_status); }; }; then
14655 cat >>confdefs.h
<<\_ACEOF
14656 #define STRUCT_TM_HAS_GMTOFF 1
14659 echo "$as_me:$LINENO: result: yes" >&5
14660 echo "${ECHO_T}yes" >&6
14662 echo "$as_me: failed program was:" >&5
14663 sed 's/^/| /' conftest.
$ac_ext >&5
14665 echo "$as_me:$LINENO: result: no" >&5
14666 echo "${ECHO_T}no" >&6
14667 echo "$as_me:$LINENO: checking for global timezone variable" >&5
14668 echo $ECHO_N "checking for global timezone variable... $ECHO_C" >&6
14669 cat >conftest.
$ac_ext <<_ACEOF
14672 cat confdefs.h
>>conftest.
$ac_ext
14673 cat >>conftest.
$ac_ext <<_ACEOF
14674 /* end confdefs.h. */
14679 void i(){long z2 = 2*timezone;}
14684 rm -f conftest.
$ac_objext
14685 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
14686 (eval $ac_compile) 2>conftest.er1
14688 grep -v '^ *+' conftest.er1
>conftest.err
14690 cat conftest.err
>&5
14691 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14692 (exit $ac_status); } &&
14693 { ac_try
='test -z "$ac_c_werror_flag"
14694 || test ! -s conftest.err'
14695 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14696 (eval $ac_try) 2>&5
14698 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14699 (exit $ac_status); }; } &&
14700 { ac_try
='test -s conftest.$ac_objext'
14701 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14702 (eval $ac_try) 2>&5
14704 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14705 (exit $ac_status); }; }; then
14707 cat >>confdefs.h
<<\_ACEOF
14708 #define HAVE_TIMEZONE 1
14711 echo "$as_me:$LINENO: result: yes" >&5
14712 echo "${ECHO_T}yes" >&6
14714 echo "$as_me: failed program was:" >&5
14715 sed 's/^/| /' conftest.
$ac_ext >&5
14717 echo "$as_me:$LINENO: result: no" >&5
14718 echo "${ECHO_T}no" >&6
14719 echo "$as_me:$LINENO: checking for global _timezone variable" >&5
14720 echo $ECHO_N "checking for global _timezone variable... $ECHO_C" >&6
14721 cat >conftest.
$ac_ext <<_ACEOF
14724 cat confdefs.h
>>conftest.
$ac_ext
14725 cat >>conftest.
$ac_ext <<_ACEOF
14726 /* end confdefs.h. */
14731 long z2 = _timezone;
14736 rm -f conftest.
$ac_objext
14737 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
14738 (eval $ac_compile) 2>conftest.er1
14740 grep -v '^ *+' conftest.er1
>conftest.err
14742 cat conftest.err
>&5
14743 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14744 (exit $ac_status); } &&
14745 { ac_try
='test -z "$ac_c_werror_flag"
14746 || test ! -s conftest.err'
14747 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14748 (eval $ac_try) 2>&5
14750 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14751 (exit $ac_status); }; } &&
14752 { ac_try
='test -s conftest.$ac_objext'
14753 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14754 (eval $ac_try) 2>&5
14756 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14757 (exit $ac_status); }; }; then
14759 cat >>confdefs.h
<<\_ACEOF
14760 #define HAVE_UNDERSCORE_TIMEZONE 1
14763 echo "$as_me:$LINENO: result: yes" >&5
14764 echo "${ECHO_T}yes" >&6
14766 echo "$as_me: failed program was:" >&5
14767 sed 's/^/| /' conftest.
$ac_ext >&5
14769 echo "$as_me:$LINENO: result: no" >&5
14770 echo "${ECHO_T}no" >&6
14772 rm -f conftest.err conftest.
$ac_objext conftest.
$ac_ext
14774 rm -f conftest.err conftest.
$ac_objext conftest.
$ac_ext
14776 rm -f conftest.err conftest.
$ac_objext conftest.
$ac_ext
14778 # The Ultrix 4.2 mips builtin alloca declared by alloca.h only works
14779 # for constant arguments. Useless!
14780 echo "$as_me:$LINENO: checking for working alloca.h" >&5
14781 echo $ECHO_N "checking for working alloca.h... $ECHO_C" >&6
14782 if test "${ac_cv_working_alloca_h+set}" = set; then
14783 echo $ECHO_N "(cached) $ECHO_C" >&6
14785 if test x
$gcc_no_link = xyes
; then
14786 { { echo "$as_me:$LINENO: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&5
14787 echo "$as_me: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&2;}
14788 { (exit 1); exit 1; }; }
14790 cat >conftest.
$ac_ext <<_ACEOF
14793 cat confdefs.h
>>conftest.
$ac_ext
14794 cat >>conftest.
$ac_ext <<_ACEOF
14795 /* end confdefs.h. */
14796 #include <alloca.h>
14800 char *p = (char *) alloca (2 * sizeof (int));
14805 rm -f conftest.
$ac_objext conftest
$ac_exeext
14806 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
14807 (eval $ac_link) 2>conftest.er1
14809 grep -v '^ *+' conftest.er1
>conftest.err
14811 cat conftest.err
>&5
14812 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14813 (exit $ac_status); } &&
14814 { ac_try
='test -z "$ac_c_werror_flag"
14815 || test ! -s conftest.err'
14816 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14817 (eval $ac_try) 2>&5
14819 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14820 (exit $ac_status); }; } &&
14821 { ac_try
='test -s conftest$ac_exeext'
14822 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14823 (eval $ac_try) 2>&5
14825 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14826 (exit $ac_status); }; }; then
14827 ac_cv_working_alloca_h
=yes
14829 echo "$as_me: failed program was:" >&5
14830 sed 's/^/| /' conftest.
$ac_ext >&5
14832 ac_cv_working_alloca_h
=no
14834 rm -f conftest.err conftest.
$ac_objext \
14835 conftest
$ac_exeext conftest.
$ac_ext
14837 echo "$as_me:$LINENO: result: $ac_cv_working_alloca_h" >&5
14838 echo "${ECHO_T}$ac_cv_working_alloca_h" >&6
14839 if test $ac_cv_working_alloca_h = yes; then
14841 cat >>confdefs.h
<<\_ACEOF
14842 #define HAVE_ALLOCA_H 1
14847 echo "$as_me:$LINENO: checking for alloca" >&5
14848 echo $ECHO_N "checking for alloca... $ECHO_C" >&6
14849 if test "${ac_cv_func_alloca_works+set}" = set; then
14850 echo $ECHO_N "(cached) $ECHO_C" >&6
14852 if test x
$gcc_no_link = xyes
; then
14853 { { echo "$as_me:$LINENO: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&5
14854 echo "$as_me: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&2;}
14855 { (exit 1); exit 1; }; }
14857 cat >conftest.
$ac_ext <<_ACEOF
14860 cat confdefs.h
>>conftest.
$ac_ext
14861 cat >>conftest.
$ac_ext <<_ACEOF
14862 /* end confdefs.h. */
14864 # define alloca __builtin_alloca
14867 # include <malloc.h>
14868 # define alloca _alloca
14871 # include <alloca.h>
14876 # ifndef alloca /* predefined by HP cc +Olibcalls */
14887 char *p = (char *) alloca (1);
14892 rm -f conftest.
$ac_objext conftest
$ac_exeext
14893 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
14894 (eval $ac_link) 2>conftest.er1
14896 grep -v '^ *+' conftest.er1
>conftest.err
14898 cat conftest.err
>&5
14899 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14900 (exit $ac_status); } &&
14901 { ac_try
='test -z "$ac_c_werror_flag"
14902 || test ! -s conftest.err'
14903 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14904 (eval $ac_try) 2>&5
14906 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14907 (exit $ac_status); }; } &&
14908 { ac_try
='test -s conftest$ac_exeext'
14909 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14910 (eval $ac_try) 2>&5
14912 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14913 (exit $ac_status); }; }; then
14914 ac_cv_func_alloca_works
=yes
14916 echo "$as_me: failed program was:" >&5
14917 sed 's/^/| /' conftest.
$ac_ext >&5
14919 ac_cv_func_alloca_works
=no
14921 rm -f conftest.err conftest.
$ac_objext \
14922 conftest
$ac_exeext conftest.
$ac_ext
14924 echo "$as_me:$LINENO: result: $ac_cv_func_alloca_works" >&5
14925 echo "${ECHO_T}$ac_cv_func_alloca_works" >&6
14927 if test $ac_cv_func_alloca_works = yes; then
14929 cat >>confdefs.h
<<\_ACEOF
14930 #define HAVE_ALLOCA 1
14934 # The SVR3 libPW and SVR4 libucb both contain incompatible functions
14935 # that cause trouble. Some versions do not even contain alloca or
14936 # contain a buggy version. If you still want to use their alloca,
14937 # use ar to extract alloca.o from them instead of compiling alloca.c.
14939 ALLOCA
=alloca.
$ac_objext
14941 cat >>confdefs.h
<<\_ACEOF
14946 echo "$as_me:$LINENO: checking whether \`alloca.c' needs Cray hooks" >&5
14947 echo $ECHO_N "checking whether \`alloca.c' needs Cray hooks... $ECHO_C" >&6
14948 if test "${ac_cv_os_cray+set}" = set; then
14949 echo $ECHO_N "(cached) $ECHO_C" >&6
14951 cat >conftest.
$ac_ext <<_ACEOF
14954 cat confdefs.h
>>conftest.
$ac_ext
14955 cat >>conftest.
$ac_ext <<_ACEOF
14956 /* end confdefs.h. */
14957 #if defined(CRAY) && ! defined(CRAY2)
14964 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
14965 $EGREP "webecray" >/dev
/null
2>&1; then
14973 echo "$as_me:$LINENO: result: $ac_cv_os_cray" >&5
14974 echo "${ECHO_T}$ac_cv_os_cray" >&6
14975 if test $ac_cv_os_cray = yes; then
14976 for ac_func
in _getb67 GETB67 getb67
; do
14977 as_ac_var
=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
14978 echo "$as_me:$LINENO: checking for $ac_func" >&5
14979 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
14980 if eval "test \"\${$as_ac_var+set}\" = set"; then
14981 echo $ECHO_N "(cached) $ECHO_C" >&6
14983 if test x
$gcc_no_link = xyes
; then
14984 { { echo "$as_me:$LINENO: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&5
14985 echo "$as_me: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&2;}
14986 { (exit 1); exit 1; }; }
14988 cat >conftest.
$ac_ext <<_ACEOF
14991 cat confdefs.h
>>conftest.
$ac_ext
14992 cat >>conftest.
$ac_ext <<_ACEOF
14993 /* end confdefs.h. */
14994 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
14995 For example, HP-UX 11i <limits.h> declares gettimeofday. */
14996 #define $ac_func innocuous_$ac_func
14998 /* System header to define __stub macros and hopefully few prototypes,
14999 which can conflict with char $ac_func (); below.
15000 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
15001 <limits.h> exists even on freestanding compilers. */
15004 # include <limits.h>
15006 # include <assert.h>
15011 /* Override any gcc2 internal prototype to avoid an error. */
15016 /* We use char because int might match the return type of a gcc2
15017 builtin and then its argument prototype would still apply. */
15019 /* The GNU C library defines this for functions which it implements
15020 to always fail with ENOSYS. Some functions are actually named
15021 something starting with __ and the normal name is an alias. */
15022 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
15025 char (*f) () = $ac_func;
15034 return f != $ac_func;
15039 rm -f conftest.
$ac_objext conftest
$ac_exeext
15040 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
15041 (eval $ac_link) 2>conftest.er1
15043 grep -v '^ *+' conftest.er1
>conftest.err
15045 cat conftest.err
>&5
15046 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15047 (exit $ac_status); } &&
15048 { ac_try
='test -z "$ac_c_werror_flag"
15049 || test ! -s conftest.err'
15050 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15051 (eval $ac_try) 2>&5
15053 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15054 (exit $ac_status); }; } &&
15055 { ac_try
='test -s conftest$ac_exeext'
15056 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15057 (eval $ac_try) 2>&5
15059 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15060 (exit $ac_status); }; }; then
15061 eval "$as_ac_var=yes"
15063 echo "$as_me: failed program was:" >&5
15064 sed 's/^/| /' conftest.
$ac_ext >&5
15066 eval "$as_ac_var=no"
15068 rm -f conftest.err conftest.
$ac_objext \
15069 conftest
$ac_exeext conftest.
$ac_ext
15071 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
15072 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
15073 if test `eval echo '${'$as_ac_var'}'` = yes; then
15075 cat >>confdefs.h
<<_ACEOF
15076 #define CRAY_STACKSEG_END $ac_func
15085 echo "$as_me:$LINENO: checking stack direction for C alloca" >&5
15086 echo $ECHO_N "checking stack direction for C alloca... $ECHO_C" >&6
15087 if test "${ac_cv_c_stack_direction+set}" = set; then
15088 echo $ECHO_N "(cached) $ECHO_C" >&6
15090 if test "$cross_compiling" = yes; then
15091 ac_cv_c_stack_direction
=0
15093 cat >conftest.
$ac_ext <<_ACEOF
15096 cat confdefs.h
>>conftest.
$ac_ext
15097 cat >>conftest.
$ac_ext <<_ACEOF
15098 /* end confdefs.h. */
15100 find_stack_direction ()
15102 static char *addr = 0;
15107 return find_stack_direction ();
15110 return (&dummy > addr) ? 1 : -1;
15116 exit (find_stack_direction () < 0);
15119 rm -f conftest
$ac_exeext
15120 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
15121 (eval $ac_link) 2>&5
15123 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15124 (exit $ac_status); } && { ac_try
='./conftest$ac_exeext'
15125 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15126 (eval $ac_try) 2>&5
15128 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15129 (exit $ac_status); }; }; then
15130 ac_cv_c_stack_direction
=1
15132 echo "$as_me: program exited with status $ac_status" >&5
15133 echo "$as_me: failed program was:" >&5
15134 sed 's/^/| /' conftest.
$ac_ext >&5
15136 ( exit $ac_status )
15137 ac_cv_c_stack_direction
=-1
15139 rm -f core
*.core gmon.out bb.out conftest
$ac_exeext conftest.
$ac_objext conftest.
$ac_ext
15142 echo "$as_me:$LINENO: result: $ac_cv_c_stack_direction" >&5
15143 echo "${ECHO_T}$ac_cv_c_stack_direction" >&6
15145 cat >>confdefs.h
<<_ACEOF
15146 #define STACK_DIRECTION $ac_cv_c_stack_direction
15152 if test x
$gcc_no_link = xyes
; then
15153 if test "x${ac_cv_func_mmap_fixed_mapped+set}" != xset
; then
15154 ac_cv_func_mmap_fixed_mapped
=no
15157 if test "x${ac_cv_func_mmap_fixed_mapped+set}" != xset
; then
15160 for ac_header
in stdlib.h unistd.h
15162 as_ac_Header
=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
15163 if eval "test \"\${$as_ac_Header+set}\" = set"; then
15164 echo "$as_me:$LINENO: checking for $ac_header" >&5
15165 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
15166 if eval "test \"\${$as_ac_Header+set}\" = set"; then
15167 echo $ECHO_N "(cached) $ECHO_C" >&6
15169 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
15170 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
15172 # Is the header compilable?
15173 echo "$as_me:$LINENO: checking $ac_header usability" >&5
15174 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
15175 cat >conftest.
$ac_ext <<_ACEOF
15178 cat confdefs.h
>>conftest.
$ac_ext
15179 cat >>conftest.
$ac_ext <<_ACEOF
15180 /* end confdefs.h. */
15181 $ac_includes_default
15182 #include <$ac_header>
15184 rm -f conftest.
$ac_objext
15185 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
15186 (eval $ac_compile) 2>conftest.er1
15188 grep -v '^ *+' conftest.er1
>conftest.err
15190 cat conftest.err
>&5
15191 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15192 (exit $ac_status); } &&
15193 { ac_try
='test -z "$ac_c_werror_flag"
15194 || test ! -s conftest.err'
15195 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15196 (eval $ac_try) 2>&5
15198 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15199 (exit $ac_status); }; } &&
15200 { ac_try
='test -s conftest.$ac_objext'
15201 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15202 (eval $ac_try) 2>&5
15204 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15205 (exit $ac_status); }; }; then
15206 ac_header_compiler
=yes
15208 echo "$as_me: failed program was:" >&5
15209 sed 's/^/| /' conftest.
$ac_ext >&5
15211 ac_header_compiler
=no
15213 rm -f conftest.err conftest.
$ac_objext conftest.
$ac_ext
15214 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
15215 echo "${ECHO_T}$ac_header_compiler" >&6
15217 # Is the header present?
15218 echo "$as_me:$LINENO: checking $ac_header presence" >&5
15219 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
15220 cat >conftest.
$ac_ext <<_ACEOF
15223 cat confdefs.h
>>conftest.
$ac_ext
15224 cat >>conftest.
$ac_ext <<_ACEOF
15225 /* end confdefs.h. */
15226 #include <$ac_header>
15228 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
15229 (eval $ac_cpp conftest.
$ac_ext) 2>conftest.er1
15231 grep -v '^ *+' conftest.er1
>conftest.err
15233 cat conftest.err
>&5
15234 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15235 (exit $ac_status); } >/dev
/null
; then
15236 if test -s conftest.err
; then
15237 ac_cpp_err
=$ac_c_preproc_warn_flag
15238 ac_cpp_err
=$ac_cpp_err$ac_c_werror_flag
15245 if test -z "$ac_cpp_err"; then
15246 ac_header_preproc
=yes
15248 echo "$as_me: failed program was:" >&5
15249 sed 's/^/| /' conftest.
$ac_ext >&5
15251 ac_header_preproc
=no
15253 rm -f conftest.err conftest.
$ac_ext
15254 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
15255 echo "${ECHO_T}$ac_header_preproc" >&6
15257 # So? What about this header?
15258 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
15260 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
15261 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
15262 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
15263 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
15264 ac_header_preproc
=yes
15267 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
15268 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
15269 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
15270 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
15271 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
15272 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
15273 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
15274 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
15275 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
15276 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
15277 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
15278 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
15281 ## ---------------------------------- ##
15282 ## Report this to the libjava lists. ##
15283 ## ---------------------------------- ##
15286 sed "s/^/$as_me: WARNING: /" >&2
15289 echo "$as_me:$LINENO: checking for $ac_header" >&5
15290 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
15291 if eval "test \"\${$as_ac_Header+set}\" = set"; then
15292 echo $ECHO_N "(cached) $ECHO_C" >&6
15294 eval "$as_ac_Header=\$ac_header_preproc"
15296 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
15297 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
15300 if test `eval echo '${'$as_ac_Header'}'` = yes; then
15301 cat >>confdefs.h
<<_ACEOF
15302 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
15310 for ac_func
in getpagesize
15312 as_ac_var
=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
15313 echo "$as_me:$LINENO: checking for $ac_func" >&5
15314 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
15315 if eval "test \"\${$as_ac_var+set}\" = set"; then
15316 echo $ECHO_N "(cached) $ECHO_C" >&6
15318 if test x
$gcc_no_link = xyes
; then
15319 { { echo "$as_me:$LINENO: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&5
15320 echo "$as_me: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&2;}
15321 { (exit 1); exit 1; }; }
15323 cat >conftest.
$ac_ext <<_ACEOF
15326 cat confdefs.h
>>conftest.
$ac_ext
15327 cat >>conftest.
$ac_ext <<_ACEOF
15328 /* end confdefs.h. */
15329 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
15330 For example, HP-UX 11i <limits.h> declares gettimeofday. */
15331 #define $ac_func innocuous_$ac_func
15333 /* System header to define __stub macros and hopefully few prototypes,
15334 which can conflict with char $ac_func (); below.
15335 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
15336 <limits.h> exists even on freestanding compilers. */
15339 # include <limits.h>
15341 # include <assert.h>
15346 /* Override any gcc2 internal prototype to avoid an error. */
15351 /* We use char because int might match the return type of a gcc2
15352 builtin and then its argument prototype would still apply. */
15354 /* The GNU C library defines this for functions which it implements
15355 to always fail with ENOSYS. Some functions are actually named
15356 something starting with __ and the normal name is an alias. */
15357 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
15360 char (*f) () = $ac_func;
15369 return f != $ac_func;
15374 rm -f conftest.
$ac_objext conftest
$ac_exeext
15375 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
15376 (eval $ac_link) 2>conftest.er1
15378 grep -v '^ *+' conftest.er1
>conftest.err
15380 cat conftest.err
>&5
15381 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15382 (exit $ac_status); } &&
15383 { ac_try
='test -z "$ac_c_werror_flag"
15384 || test ! -s conftest.err'
15385 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15386 (eval $ac_try) 2>&5
15388 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15389 (exit $ac_status); }; } &&
15390 { ac_try
='test -s conftest$ac_exeext'
15391 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15392 (eval $ac_try) 2>&5
15394 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15395 (exit $ac_status); }; }; then
15396 eval "$as_ac_var=yes"
15398 echo "$as_me: failed program was:" >&5
15399 sed 's/^/| /' conftest.
$ac_ext >&5
15401 eval "$as_ac_var=no"
15403 rm -f conftest.err conftest.
$ac_objext \
15404 conftest
$ac_exeext conftest.
$ac_ext
15406 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
15407 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
15408 if test `eval echo '${'$as_ac_var'}'` = yes; then
15409 cat >>confdefs.h
<<_ACEOF
15410 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
15416 echo "$as_me:$LINENO: checking for working mmap" >&5
15417 echo $ECHO_N "checking for working mmap... $ECHO_C" >&6
15418 if test "${ac_cv_func_mmap_fixed_mapped+set}" = set; then
15419 echo $ECHO_N "(cached) $ECHO_C" >&6
15421 if test "$cross_compiling" = yes; then
15422 ac_cv_func_mmap_fixed_mapped
=no
15424 cat >conftest.
$ac_ext <<_ACEOF
15427 cat confdefs.h
>>conftest.
$ac_ext
15428 cat >>conftest.
$ac_ext <<_ACEOF
15429 /* end confdefs.h. */
15430 $ac_includes_default
15431 /* malloc might have been renamed as rpl_malloc. */
15434 /* Thanks to Mike Haertel and Jim Avera for this test.
15435 Here is a matrix of mmap possibilities:
15436 mmap private not fixed
15437 mmap private fixed at somewhere currently unmapped
15438 mmap private fixed at somewhere already mapped
15439 mmap shared not fixed
15440 mmap shared fixed at somewhere currently unmapped
15441 mmap shared fixed at somewhere already mapped
15442 For private mappings, we should verify that changes cannot be read()
15443 back from the file, nor mmap's back from the file at a different
15444 address. (There have been systems where private was not correctly
15445 implemented like the infamous i386 svr4.0, and systems where the
15446 VM page cache was not coherent with the file system buffer cache
15447 like early versions of FreeBSD and possibly contemporary NetBSD.)
15448 For shared mappings, we should conversely verify that changes get
15449 propagated back to all the places they're supposed to be.
15451 Grep wants private fixed already mapped.
15452 The main things grep needs to know about mmap are:
15453 * does it exist and is it safe to write into the mmap'd area
15454 * how to use it (BSD variants) */
15457 #include <sys/mman.h>
15459 #if !STDC_HEADERS && !HAVE_STDLIB_H
15463 /* This mess was copied from the GNU getpagesize.h. */
15464 #if !HAVE_GETPAGESIZE
15465 /* Assume that all systems that can run configure have sys/param.h. */
15466 # if !HAVE_SYS_PARAM_H
15467 # define HAVE_SYS_PARAM_H 1
15470 # ifdef _SC_PAGESIZE
15471 # define getpagesize() sysconf(_SC_PAGESIZE)
15472 # else /* no _SC_PAGESIZE */
15473 # if HAVE_SYS_PARAM_H
15474 # include <sys/param.h>
15475 # ifdef EXEC_PAGESIZE
15476 # define getpagesize() EXEC_PAGESIZE
15477 # else /* no EXEC_PAGESIZE */
15479 # define getpagesize() NBPG * CLSIZE
15482 # endif /* no CLSIZE */
15483 # else /* no NBPG */
15485 # define getpagesize() NBPC
15486 # else /* no NBPC */
15488 # define getpagesize() PAGESIZE
15489 # endif /* PAGESIZE */
15490 # endif /* no NBPC */
15491 # endif /* no NBPG */
15492 # endif /* no EXEC_PAGESIZE */
15493 # else /* no HAVE_SYS_PARAM_H */
15494 # define getpagesize() 8192 /* punt totally */
15495 # endif /* no HAVE_SYS_PARAM_H */
15496 # endif /* no _SC_PAGESIZE */
15498 #endif /* no HAVE_GETPAGESIZE */
15503 char *data, *data2, *data3;
15507 pagesize = getpagesize ();
15509 /* First, make a file with some known garbage in it. */
15510 data = (char *) malloc (pagesize);
15513 for (i = 0; i < pagesize; ++i)
15514 *(data + i) = rand ();
15516 fd = creat ("conftest.mmap", 0600);
15519 if (write (fd, data, pagesize) != pagesize)
15523 /* Next, try to mmap the file at a fixed address which already has
15524 something else allocated at it. If we can, also make sure that
15525 we see the same garbage. */
15526 fd = open ("conftest.mmap", O_RDWR);
15529 data2 = (char *) malloc (2 * pagesize);
15532 data2 += (pagesize - ((long) data2 & (pagesize - 1))) & (pagesize - 1);
15533 if (data2 != mmap (data2, pagesize, PROT_READ | PROT_WRITE,
15534 MAP_PRIVATE | MAP_FIXED, fd, 0L))
15536 for (i = 0; i < pagesize; ++i)
15537 if (*(data + i) != *(data2 + i))
15540 /* Finally, make sure that changes to the mapped area do not
15541 percolate back to the file as seen by read(). (This is a bug on
15542 some variants of i386 svr4.0.) */
15543 for (i = 0; i < pagesize; ++i)
15544 *(data2 + i) = *(data2 + i) + 1;
15545 data3 = (char *) malloc (pagesize);
15548 if (read (fd, data3, pagesize) != pagesize)
15550 for (i = 0; i < pagesize; ++i)
15551 if (*(data + i) != *(data3 + i))
15557 rm -f conftest
$ac_exeext
15558 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
15559 (eval $ac_link) 2>&5
15561 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15562 (exit $ac_status); } && { ac_try
='./conftest$ac_exeext'
15563 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15564 (eval $ac_try) 2>&5
15566 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15567 (exit $ac_status); }; }; then
15568 ac_cv_func_mmap_fixed_mapped
=yes
15570 echo "$as_me: program exited with status $ac_status" >&5
15571 echo "$as_me: failed program was:" >&5
15572 sed 's/^/| /' conftest.
$ac_ext >&5
15574 ( exit $ac_status )
15575 ac_cv_func_mmap_fixed_mapped
=no
15577 rm -f core
*.core gmon.out bb.out conftest
$ac_exeext conftest.
$ac_objext conftest.
$ac_ext
15580 echo "$as_me:$LINENO: result: $ac_cv_func_mmap_fixed_mapped" >&5
15581 echo "${ECHO_T}$ac_cv_func_mmap_fixed_mapped" >&6
15582 if test $ac_cv_func_mmap_fixed_mapped = yes; then
15584 cat >>confdefs.h
<<\_ACEOF
15585 #define HAVE_MMAP 1
15589 rm -f conftest.mmap
15593 for ac_prog
in perl
15595 # Extract the first word of "$ac_prog", so it can be a program name with args.
15596 set dummy
$ac_prog; ac_word
=$2
15597 echo "$as_me:$LINENO: checking for $ac_word" >&5
15598 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
15599 if test "${ac_cv_prog_PERL+set}" = set; then
15600 echo $ECHO_N "(cached) $ECHO_C" >&6
15602 if test -n "$PERL"; then
15603 ac_cv_prog_PERL
="$PERL" # Let the user override the test.
15605 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
15606 for as_dir
in $PATH
15609 test -z "$as_dir" && as_dir
=.
15610 for ac_exec_ext
in '' $ac_executable_extensions; do
15611 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
15612 ac_cv_prog_PERL
="$ac_prog"
15613 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
15621 PERL
=$ac_cv_prog_PERL
15622 if test -n "$PERL"; then
15623 echo "$as_me:$LINENO: result: $PERL" >&5
15624 echo "${ECHO_T}$PERL" >&6
15626 echo "$as_me:$LINENO: result: no" >&5
15627 echo "${ECHO_T}no" >&6
15630 test -n "$PERL" && break
15632 test -n "$PERL" || PERL
="false"
15636 SIGNAL_HANDLER_AUX
=
15640 SIGNAL_HANDLER
=include
/i386-signal.h
15642 sparc
*-sun-solaris*)
15643 SIGNAL_HANDLER
=include
/sparc-signal.h
15646 # SYSDEP_SOURCES=sysdep/ia64.c
15647 # test -d sysdep || mkdir sysdep
15650 SIGNAL_HANDLER
=include
/pa-signal.h
15653 SIGNAL_HANDLER
=include
/dwarf2-signal.h
15656 SIGNAL_HANDLER
=include
/powerpc-signal.h
15659 SIGNAL_HANDLER
=include
/dwarf2-signal.h
15662 SIGNAL_HANDLER
=include
/s390-signal.h
15665 SIGNAL_HANDLER
=include
/x86_64-signal.h
15666 SIGNAL_HANDLER_AUX
=include
/i386-signal.h
15669 SIGNAL_HANDLER
=include
/dwarf2-signal.h
15672 SIGNAL_HANDLER
=include
/sh-signal.h
15675 SIGNAL_HANDLER
=include
/win32-signal.h
15678 SIGNAL_HANDLER
=include
/mips-signal.h
15681 SIGNAL_HANDLER
=include
/darwin-signal.h
15684 SIGNAL_HANDLER
=include
/default-signal.h
15688 # If we're using sjlj exceptions, forget what we just learned.
15689 if test "$enable_sjlj_exceptions" = yes; then
15690 SIGNAL_HANDLER
=include
/default-signal.h
15691 SIGNAL_HANDLER_AUX
=
15694 # Define here any compiler flags that you need in order to make backtrace() work.
15697 x86_64
*-*-linux*|i?
86-*)
15698 BACKTRACESPEC
=-fno-omit-frame-pointer
15705 if test -z "$SIGNAL_HANDLER_AUX"; then
15706 SIGNAL_HANDLER_AUX
=$SIGNAL_HANDLER
15709 ac_config_links
="$ac_config_links include/java-signal.h:$SIGNAL_HANDLER include/java-signal-aux.h:$SIGNAL_HANDLER_AUX"
15712 if test "${multilib}" = "yes"; then
15713 multilib_arg
="--enable-multilib"
15720 here
=`${PWDCMD-pwd}`
15723 # We get this from the environment.
15726 ac_config_files
="$ac_config_files Makefile libgcj.pc libgcj.spec libgcj-test.spec gnu/classpath/Configuration.java gcj/Makefile include/Makefile testsuite/Makefile external/Makefile external/sax/Makefile external/w3c_dom/Makefile"
15729 ac_config_commands
="$ac_config_commands default"
15732 cat >confcache
<<\_ACEOF
15733 # This file is a shell script that caches the results of configure
15734 # tests run on this system so they can be shared between configure
15735 # scripts and configure runs, see configure's option --config-cache.
15736 # It is not useful on other systems. If it contains results you don't
15737 # want to keep, you may remove or edit it.
15739 # config.status only pays attention to the cache file if you give it
15740 # the --recheck option to rerun configure.
15742 # `ac_cv_env_foo' variables (set or unset) will be overridden when
15743 # loading this file, other *unset* `ac_cv_foo' will be assigned the
15744 # following values.
15748 # The following way of writing the cache mishandles newlines in values,
15749 # but we know of no workaround that is simple, portable, and efficient.
15750 # So, don't put newlines in cache variables' values.
15751 # Ultrix sh set writes to stderr and can't be redirected directly,
15752 # and sets the high bit in the cache file unless we assign to the vars.
15755 case `(ac_space=' '; set | grep ac_space) 2>&1` in
15757 # `set' does not quote correctly, so add quotes (double-quote
15758 # substitution turns \\\\ into \\, and sed turns \\ into \).
15761 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p"
15764 # `set' quotes correctly as required by POSIX, so do not add quotes.
15766 "s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1=\\2/p"
15773 s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/
15775 /^ac_cv_env/!s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/
15777 if diff $cache_file confcache
>/dev
/null
2>&1; then :; else
15778 if test -w $cache_file; then
15779 test "x$cache_file" != "x/dev/null" && echo "updating cache $cache_file"
15780 cat confcache
>$cache_file
15782 echo "not updating unwritable cache $cache_file"
15787 test "x$prefix" = xNONE
&& prefix
=$ac_default_prefix
15788 # Let make expand exec_prefix.
15789 test "x$exec_prefix" = xNONE
&& exec_prefix
='${prefix}'
15791 # VPATH may cause trouble with some makes, so we remove $(srcdir),
15792 # ${srcdir} and @srcdir@ from VPATH if srcdir is ".", strip leading and
15793 # trailing colons and then remove the whole line if VPATH becomes empty
15794 # (actually we leave an empty line to preserve line numbers).
15795 if test "x$srcdir" = x.
; then
15796 ac_vpsub
='/^[ ]*VPATH[ ]*=/{
15797 s/:*\$(srcdir):*/:/;
15798 s/:*\${srcdir}:*/:/;
15800 s/^\([^=]*=[ ]*\):*/\1/;
15806 DEFS
=-DHAVE_CONFIG_H
15810 for ac_i
in : $LIBOBJS; do test "x$ac_i" = x
: && continue
15811 # 1. Remove the extension, and $U if already installed.
15812 ac_i
=`echo "$ac_i" |
15813 sed 's/\$U\././;s/\.o$//;s/\.obj$//'`
15815 ac_libobjs
="$ac_libobjs $ac_i\$U.$ac_objext"
15816 ac_ltlibobjs
="$ac_ltlibobjs $ac_i"'$U.lo'
15818 LIBOBJS
=$ac_libobjs
15820 LTLIBOBJS
=$ac_ltlibobjs
15823 if test -z "${AMDEP_TRUE}" && test -z "${AMDEP_FALSE}"; then
15824 { { echo "$as_me:$LINENO: error: conditional \"AMDEP\" was never defined.
15825 Usually this means the macro was only invoked conditionally." >&5
15826 echo "$as_me: error: conditional \"AMDEP\" was never defined.
15827 Usually this means the macro was only invoked conditionally." >&2;}
15828 { (exit 1); exit 1; }; }
15830 if test -z "${am__fastdepCC_TRUE}" && test -z "${am__fastdepCC_FALSE}"; then
15831 { { echo "$as_me:$LINENO: error: conditional \"am__fastdepCC\" was never defined.
15832 Usually this means the macro was only invoked conditionally." >&5
15833 echo "$as_me: error: conditional \"am__fastdepCC\" was never defined.
15834 Usually this means the macro was only invoked conditionally." >&2;}
15835 { (exit 1); exit 1; }; }
15837 if test -z "${am__fastdepCXX_TRUE}" && test -z "${am__fastdepCXX_FALSE}"; then
15838 { { echo "$as_me:$LINENO: error: conditional \"am__fastdepCXX\" was never defined.
15839 Usually this means the macro was only invoked conditionally." >&5
15840 echo "$as_me: error: conditional \"am__fastdepCXX\" was never defined.
15841 Usually this means the macro was only invoked conditionally." >&2;}
15842 { (exit 1); exit 1; }; }
15844 if test -z "${MAINTAINER_MODE_TRUE}" && test -z "${MAINTAINER_MODE_FALSE}"; then
15845 { { echo "$as_me:$LINENO: error: conditional \"MAINTAINER_MODE\" was never defined.
15846 Usually this means the macro was only invoked conditionally." >&5
15847 echo "$as_me: error: conditional \"MAINTAINER_MODE\" was never defined.
15848 Usually this means the macro was only invoked conditionally." >&2;}
15849 { (exit 1); exit 1; }; }
15851 if test -z "${am__fastdepGCJ_TRUE}" && test -z "${am__fastdepGCJ_FALSE}"; then
15852 { { echo "$as_me:$LINENO: error: conditional \"am__fastdepGCJ\" was never defined.
15853 Usually this means the macro was only invoked conditionally." >&5
15854 echo "$as_me: error: conditional \"am__fastdepGCJ\" was never defined.
15855 Usually this means the macro was only invoked conditionally." >&2;}
15856 { (exit 1); exit 1; }; }
15858 if test -z "${TESTSUBDIR_TRUE}" && test -z "${TESTSUBDIR_FALSE}"; then
15859 { { echo "$as_me:$LINENO: error: conditional \"TESTSUBDIR\" was never defined.
15860 Usually this means the macro was only invoked conditionally." >&5
15861 echo "$as_me: error: conditional \"TESTSUBDIR\" was never defined.
15862 Usually this means the macro was only invoked conditionally." >&2;}
15863 { (exit 1); exit 1; }; }
15865 if test -z "${JAVA_HOME_SET_TRUE}" && test -z "${JAVA_HOME_SET_FALSE}"; then
15866 { { echo "$as_me:$LINENO: error: conditional \"JAVA_HOME_SET\" was never defined.
15867 Usually this means the macro was only invoked conditionally." >&5
15868 echo "$as_me: error: conditional \"JAVA_HOME_SET\" was never defined.
15869 Usually this means the macro was only invoked conditionally." >&2;}
15870 { (exit 1); exit 1; }; }
15872 if test -z "${USING_WIN32_PLATFORM_TRUE}" && test -z "${USING_WIN32_PLATFORM_FALSE}"; then
15873 { { echo "$as_me:$LINENO: error: conditional \"USING_WIN32_PLATFORM\" was never defined.
15874 Usually this means the macro was only invoked conditionally." >&5
15875 echo "$as_me: error: conditional \"USING_WIN32_PLATFORM\" was never defined.
15876 Usually this means the macro was only invoked conditionally." >&2;}
15877 { (exit 1); exit 1; }; }
15879 if test -z "${USING_POSIX_PLATFORM_TRUE}" && test -z "${USING_POSIX_PLATFORM_FALSE}"; then
15880 { { echo "$as_me:$LINENO: error: conditional \"USING_POSIX_PLATFORM\" was never defined.
15881 Usually this means the macro was only invoked conditionally." >&5
15882 echo "$as_me: error: conditional \"USING_POSIX_PLATFORM\" was never defined.
15883 Usually this means the macro was only invoked conditionally." >&2;}
15884 { (exit 1); exit 1; }; }
15886 if test -z "${USING_ECOS_PLATFORM_TRUE}" && test -z "${USING_ECOS_PLATFORM_FALSE}"; then
15887 { { echo "$as_me:$LINENO: error: conditional \"USING_ECOS_PLATFORM\" was never defined.
15888 Usually this means the macro was only invoked conditionally." >&5
15889 echo "$as_me: error: conditional \"USING_ECOS_PLATFORM\" was never defined.
15890 Usually this means the macro was only invoked conditionally." >&2;}
15891 { (exit 1); exit 1; }; }
15893 if test -z "${USING_DARWIN_CRT_TRUE}" && test -z "${USING_DARWIN_CRT_FALSE}"; then
15894 { { echo "$as_me:$LINENO: error: conditional \"USING_DARWIN_CRT\" was never defined.
15895 Usually this means the macro was only invoked conditionally." >&5
15896 echo "$as_me: error: conditional \"USING_DARWIN_CRT\" was never defined.
15897 Usually this means the macro was only invoked conditionally." >&2;}
15898 { (exit 1); exit 1; }; }
15900 if test -z "${XLIB_AWT_TRUE}" && test -z "${XLIB_AWT_FALSE}"; then
15901 { { echo "$as_me:$LINENO: error: conditional \"XLIB_AWT\" was never defined.
15902 Usually this means the macro was only invoked conditionally." >&5
15903 echo "$as_me: error: conditional \"XLIB_AWT\" was never defined.
15904 Usually this means the macro was only invoked conditionally." >&2;}
15905 { (exit 1); exit 1; }; }
15907 if test -z "${GTK_AWT_TRUE}" && test -z "${GTK_AWT_FALSE}"; then
15908 { { echo "$as_me:$LINENO: error: conditional \"GTK_AWT\" was never defined.
15909 Usually this means the macro was only invoked conditionally." >&5
15910 echo "$as_me: error: conditional \"GTK_AWT\" was never defined.
15911 Usually this means the macro was only invoked conditionally." >&2;}
15912 { (exit 1); exit 1; }; }
15914 if test -z "${GTK_CAIRO_TRUE}" && test -z "${GTK_CAIRO_FALSE}"; then
15915 { { echo "$as_me:$LINENO: error: conditional \"GTK_CAIRO\" was never defined.
15916 Usually this means the macro was only invoked conditionally." >&5
15917 echo "$as_me: error: conditional \"GTK_CAIRO\" was never defined.
15918 Usually this means the macro was only invoked conditionally." >&2;}
15919 { (exit 1); exit 1; }; }
15921 if test -z "${USING_BOEHMGC_TRUE}" && test -z "${USING_BOEHMGC_FALSE}"; then
15922 { { echo "$as_me:$LINENO: error: conditional \"USING_BOEHMGC\" was never defined.
15923 Usually this means the macro was only invoked conditionally." >&5
15924 echo "$as_me: error: conditional \"USING_BOEHMGC\" was never defined.
15925 Usually this means the macro was only invoked conditionally." >&2;}
15926 { (exit 1); exit 1; }; }
15928 if test -z "${USING_NOGC_TRUE}" && test -z "${USING_NOGC_FALSE}"; then
15929 { { echo "$as_me:$LINENO: error: conditional \"USING_NOGC\" was never defined.
15930 Usually this means the macro was only invoked conditionally." >&5
15931 echo "$as_me: error: conditional \"USING_NOGC\" was never defined.
15932 Usually this means the macro was only invoked conditionally." >&2;}
15933 { (exit 1); exit 1; }; }
15935 if test -z "${USING_POSIX_THREADS_TRUE}" && test -z "${USING_POSIX_THREADS_FALSE}"; then
15936 { { echo "$as_me:$LINENO: error: conditional \"USING_POSIX_THREADS\" was never defined.
15937 Usually this means the macro was only invoked conditionally." >&5
15938 echo "$as_me: error: conditional \"USING_POSIX_THREADS\" was never defined.
15939 Usually this means the macro was only invoked conditionally." >&2;}
15940 { (exit 1); exit 1; }; }
15942 if test -z "${USING_WIN32_THREADS_TRUE}" && test -z "${USING_WIN32_THREADS_FALSE}"; then
15943 { { echo "$as_me:$LINENO: error: conditional \"USING_WIN32_THREADS\" was never defined.
15944 Usually this means the macro was only invoked conditionally." >&5
15945 echo "$as_me: error: conditional \"USING_WIN32_THREADS\" was never defined.
15946 Usually this means the macro was only invoked conditionally." >&2;}
15947 { (exit 1); exit 1; }; }
15949 if test -z "${USING_NO_THREADS_TRUE}" && test -z "${USING_NO_THREADS_FALSE}"; then
15950 { { echo "$as_me:$LINENO: error: conditional \"USING_NO_THREADS\" was never defined.
15951 Usually this means the macro was only invoked conditionally." >&5
15952 echo "$as_me: error: conditional \"USING_NO_THREADS\" was never defined.
15953 Usually this means the macro was only invoked conditionally." >&2;}
15954 { (exit 1); exit 1; }; }
15956 if test -z "${USING_GCC_TRUE}" && test -z "${USING_GCC_FALSE}"; then
15957 { { echo "$as_me:$LINENO: error: conditional \"USING_GCC\" was never defined.
15958 Usually this means the macro was only invoked conditionally." >&5
15959 echo "$as_me: error: conditional \"USING_GCC\" was never defined.
15960 Usually this means the macro was only invoked conditionally." >&2;}
15961 { (exit 1); exit 1; }; }
15963 if test -z "${SUPPLY_BACKTRACE_TRUE}" && test -z "${SUPPLY_BACKTRACE_FALSE}"; then
15964 { { echo "$as_me:$LINENO: error: conditional \"SUPPLY_BACKTRACE\" was never defined.
15965 Usually this means the macro was only invoked conditionally." >&5
15966 echo "$as_me: error: conditional \"SUPPLY_BACKTRACE\" was never defined.
15967 Usually this means the macro was only invoked conditionally." >&2;}
15968 { (exit 1); exit 1; }; }
15970 if test -z "${NATIVE_TRUE}" && test -z "${NATIVE_FALSE}"; then
15971 { { echo "$as_me:$LINENO: error: conditional \"NATIVE\" was never defined.
15972 Usually this means the macro was only invoked conditionally." >&5
15973 echo "$as_me: error: conditional \"NATIVE\" was never defined.
15974 Usually this means the macro was only invoked conditionally." >&2;}
15975 { (exit 1); exit 1; }; }
15977 if test -z "${NEEDS_DATA_START_TRUE}" && test -z "${NEEDS_DATA_START_FALSE}"; then
15978 { { echo "$as_me:$LINENO: error: conditional \"NEEDS_DATA_START\" was never defined.
15979 Usually this means the macro was only invoked conditionally." >&5
15980 echo "$as_me: error: conditional \"NEEDS_DATA_START\" was never defined.
15981 Usually this means the macro was only invoked conditionally." >&2;}
15982 { (exit 1); exit 1; }; }
15985 : ${CONFIG_STATUS=./config.status}
15986 ac_clean_files_save
=$ac_clean_files
15987 ac_clean_files
="$ac_clean_files $CONFIG_STATUS"
15988 { echo "$as_me:$LINENO: creating $CONFIG_STATUS" >&5
15989 echo "$as_me: creating $CONFIG_STATUS" >&6;}
15990 cat >$CONFIG_STATUS <<_ACEOF
15992 # Generated by $as_me.
15993 # Run this file to recreate the current configuration.
15994 # Compiler output produced by configure, useful for debugging
15995 # configure, is in config.log if it exists.
15998 ac_cs_recheck=false
16000 SHELL=\${CONFIG_SHELL-$SHELL}
16003 cat >>$CONFIG_STATUS <<\_ACEOF
16004 ## --------------------- ##
16005 ## M4sh Initialization. ##
16006 ## --------------------- ##
16008 # Be Bourne compatible
16009 if test -n "${ZSH_VERSION+set}" && (emulate sh
) >/dev
/null
2>&1; then
16012 # Zsh 3.x and 4.x performs word splitting on ${1+"$@"}, which
16013 # is contrary to our usage. Disable this feature.
16014 alias -g '${1+"$@"}'='"$@"'
16015 elif test -n "${BASH_VERSION+set}" && (set -o posix
) >/dev
/null
2>&1; then
16018 DUALCASE
=1; export DUALCASE
# for MKS sh
16020 # Support unset when possible.
16021 if ( (MAIL
=60; unset MAIL
) ||
exit) >/dev
/null
2>&1; then
16028 # Work around bugs in pre-3.0 UWIN ksh.
16029 $as_unset ENV MAIL MAILPATH
16036 LANG LANGUAGE LC_ADDRESS LC_ALL LC_COLLATE LC_CTYPE LC_IDENTIFICATION \
16037 LC_MEASUREMENT LC_MESSAGES LC_MONETARY LC_NAME LC_NUMERIC LC_PAPER \
16038 LC_TELEPHONE LC_TIME
16040 if (set +x
; test -z "`(eval $as_var=C; export $as_var) 2>&1`"); then
16041 eval $as_var=C
; export $as_var
16047 # Required to use basename.
16048 if expr a
: '\(a\)' >/dev
/null
2>&1; then
16054 if (basename /) >/dev
/null
2>&1 && test "X`basename / 2>&1`" = "X/"; then
16055 as_basename
=basename
16061 # Name of the executable.
16062 as_me
=`$as_basename "$0" ||
16063 $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
16064 X"$0" : 'X\(//\)$' \| \
16065 X"$0" : 'X\(/\)$' \| \
16066 . : '\(.\)' 2>/dev/null ||
16068 sed '/^.*\/\([^/][^/]*\)\/*$/{ s//\1/; q; }
16069 /^X\/\(\/\/\)$/{ s//\1/; q; }
16070 /^X\/\(\/\).*/{ s//\1/; q; }
16074 # PATH needs CR, and LINENO needs CR and PATH.
16075 # Avoid depending upon Character Ranges.
16076 as_cr_letters
='abcdefghijklmnopqrstuvwxyz'
16077 as_cr_LETTERS
='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
16078 as_cr_Letters
=$as_cr_letters$as_cr_LETTERS
16079 as_cr_digits
='0123456789'
16080 as_cr_alnum
=$as_cr_Letters$as_cr_digits
16082 # The user is always right.
16083 if test "${PATH_SEPARATOR+set}" != set; then
16084 echo "#! /bin/sh" >conf$$.sh
16085 echo "exit 0" >>conf$$.sh
16087 if (PATH
="/nonexistent;."; conf$$.sh
) >/dev
/null
2>&1; then
16096 as_lineno_1
=$LINENO
16097 as_lineno_2
=$LINENO
16098 as_lineno_3
=`(expr $as_lineno_1 + 1) 2>/dev/null`
16099 test "x$as_lineno_1" != "x$as_lineno_2" &&
16100 test "x$as_lineno_3" = "x$as_lineno_2" ||
{
16101 # Find who we are. Look in the path if we contain no path at all
16104 *[\\/]* ) as_myself
=$0 ;;
16105 *) as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
16106 for as_dir
in $PATH
16109 test -z "$as_dir" && as_dir
=.
16110 test -r "$as_dir/$0" && as_myself
=$as_dir/$0 && break
16115 # We did not find ourselves, most probably we were run as `sh COMMAND'
16116 # in which case we are not to be found in the path.
16117 if test "x$as_myself" = x
; then
16120 if test ! -f "$as_myself"; then
16121 { { echo "$as_me:$LINENO: error: cannot find myself; rerun with an absolute path" >&5
16122 echo "$as_me: error: cannot find myself; rerun with an absolute path" >&2;}
16123 { (exit 1); exit 1; }; }
16125 case $CONFIG_SHELL in
16127 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
16128 for as_dir
in /bin
$PATH_SEPARATOR/usr
/bin
$PATH_SEPARATOR$PATH
16131 test -z "$as_dir" && as_dir
=.
16132 for as_base
in sh bash ksh sh5
; do
16135 if ("$as_dir/$as_base" -c '
16136 as_lineno_1=$LINENO
16137 as_lineno_2=$LINENO
16138 as_lineno_3=`(expr $as_lineno_1 + 1) 2>/dev/null`
16139 test "x$as_lineno_1" != "x$as_lineno_2" &&
16140 test "x$as_lineno_3" = "x$as_lineno_2" ') 2>/dev
/null
; then
16141 $as_unset BASH_ENV ||
test "${BASH_ENV+set}" != set ||
{ BASH_ENV
=; export BASH_ENV
; }
16142 $as_unset ENV ||
test "${ENV+set}" != set ||
{ ENV
=; export ENV
; }
16143 CONFIG_SHELL
=$as_dir/$as_base
16144 export CONFIG_SHELL
16145 exec "$CONFIG_SHELL" "$0" ${1+"$@"}
16153 # Create $as_me.lineno as a copy of $as_myself, but with $LINENO
16154 # uniformly replaced by the line number. The first 'sed' inserts a
16155 # line-number line before each line; the second 'sed' does the real
16156 # work. The second script uses 'N' to pair each line-number line
16157 # with the numbered line, and appends trailing '-' during
16158 # substitution so that $LINENO is not a special case at line end.
16159 # (Raja R Harinath suggested sed '=', and Paul Eggert wrote the
16160 # second 'sed' script. Blame Lee E. McMahon for sed's syntax. :-)
16161 sed '=' <$as_myself |
16166 s,^\(['$as_cr_digits']*\)\(.*\)[$]LINENO\([^'$as_cr_alnum'_]\),\1\2\1\3,
16169 s,^['$as_cr_digits']*\n,,
16170 ' >$as_me.lineno
&&
16171 chmod +x
$as_me.lineno ||
16172 { { echo "$as_me:$LINENO: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&5
16173 echo "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2;}
16174 { (exit 1); exit 1; }; }
16176 # Don't try to exec as it changes $[0], causing all sort of problems
16177 # (the dirname of $[0] is not the place where we might find the
16178 # original and so on. Autoconf is especially sensible to this).
16180 # Exit status is that of the last command.
16185 case `echo "testing\c"; echo 1,2,3`,`echo -n testing; echo 1,2,3` in
16186 *c
*,-n*) ECHO_N
= ECHO_C
='
16188 *c
*,* ) ECHO_N
=-n ECHO_C
= ECHO_T
= ;;
16189 *) ECHO_N
= ECHO_C
='\c' ECHO_T
= ;;
16192 if expr a
: '\(a\)' >/dev
/null
2>&1; then
16198 rm -f conf$$ conf$$.exe conf$$.
file
16200 if ln -s conf$$.
file conf$$
2>/dev
/null
; then
16201 # We could just check for DJGPP; but this test a) works b) is more generic
16202 # and c) will remain valid once DJGPP supports symlinks (DJGPP 2.04).
16203 if test -f conf$$.exe
; then
16204 # Don't use ln at all; we don't have any links
16209 elif ln conf$$.
file conf$$
2>/dev
/null
; then
16214 rm -f conf$$ conf$$.exe conf$$.
file
16216 if mkdir
-p .
2>/dev
/null
; then
16219 test -d .
/-p && rmdir .
/-p
16223 as_executable_p
="test -f"
16225 # Sed expression to map a string onto a valid CPP name.
16226 as_tr_cpp
="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
16228 # Sed expression to map a string onto a valid variable name.
16229 as_tr_sh
="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
16233 # We need space, tab and new line, in precisely that order.
16243 # Open the log real soon, to keep \$[0] and so on meaningful, and to
16244 # report actual input values of CONFIG_FILES etc. instead of their
16245 # values after options handling. Logging --version etc. is OK.
16249 sed 'h;s/./-/g;s/^.../## /;s/...$/ ##/;p;x;p;x' <<_ASBOX
16250 ## Running $as_me. ##
16255 This file was extended by libjava $as_me version-unused, which was
16256 generated by GNU Autoconf 2.59. Invocation command line was
16258 CONFIG_FILES = $CONFIG_FILES
16259 CONFIG_HEADERS = $CONFIG_HEADERS
16260 CONFIG_LINKS = $CONFIG_LINKS
16261 CONFIG_COMMANDS = $CONFIG_COMMANDS
16265 echo "on `(hostname || uname -n) 2>/dev/null | sed 1q`" >&5
16269 # Files that config.status was made for.
16270 if test -n "$ac_config_files"; then
16271 echo "config_files=\"$ac_config_files\"" >>$CONFIG_STATUS
16274 if test -n "$ac_config_headers"; then
16275 echo "config_headers=\"$ac_config_headers\"" >>$CONFIG_STATUS
16278 if test -n "$ac_config_links"; then
16279 echo "config_links=\"$ac_config_links\"" >>$CONFIG_STATUS
16282 if test -n "$ac_config_commands"; then
16283 echo "config_commands=\"$ac_config_commands\"" >>$CONFIG_STATUS
16286 cat >>$CONFIG_STATUS <<\_ACEOF
16289 \`$as_me' instantiates files from templates according to the
16290 current configuration.
16292 Usage: $0 [OPTIONS] [FILE]...
16294 -h, --help print this help, then exit
16295 -V, --version print version number, then exit
16296 -q, --quiet do not print progress messages
16297 -d, --debug don't remove temporary files
16298 --recheck update $as_me by reconfiguring in the same conditions
16299 --file=FILE[:TEMPLATE]
16300 instantiate the configuration file FILE
16301 --header=FILE[:TEMPLATE]
16302 instantiate the configuration header FILE
16304 Configuration files:
16307 Configuration headers:
16310 Configuration links:
16313 Configuration commands:
16316 Report bugs to <bug-autoconf@gnu.org>."
16319 cat >>$CONFIG_STATUS <<_ACEOF
16321 libjava config.status version-unused
16322 configured by $0, generated by GNU Autoconf 2.59,
16323 with options \\"`echo "$ac_configure_args" | sed 's/[\\""\`\$]/\\\\&/g'`\\"
16325 Copyright (C) 2003 Free Software Foundation, Inc.
16326 This config.status script is free software; the Free Software Foundation
16327 gives unlimited permission to copy, distribute and modify it."
16332 cat >>$CONFIG_STATUS <<\_ACEOF
16333 # If no file are specified by the user, then we need to provide default
16334 # value. By we need to know if files were specified by the user.
16340 ac_option
=`expr "x$1" : 'x\([^=]*\)='`
16341 ac_optarg
=`expr "x$1" : 'x[^=]*=\(.*\)'`
16349 *) # This is not an option, so the user has probably given explicit
16352 ac_need_defaults
=false
;;
16356 # Handling of the options.
16358 cat >>$CONFIG_STATUS <<\_ACEOF
16359 -recheck |
--recheck |
--rechec |
--reche |
--rech |
--rec |
--re |
--r)
16361 --version |
--vers* |
-V )
16362 echo "$ac_cs_version"; exit 0 ;;
16364 # Conflict between --help and --header
16365 { { echo "$as_me:$LINENO: error: ambiguous option: $1
16366 Try \`$0 --help' for more information." >&5
16367 echo "$as_me: error: ambiguous option: $1
16368 Try \`$0 --help' for more information." >&2;}
16369 { (exit 1); exit 1; }; };;
16370 --help |
--hel |
-h )
16371 echo "$ac_cs_usage"; exit 0 ;;
16372 --debug |
--d* |
-d )
16374 --file |
--fil |
--fi |
--f )
16376 CONFIG_FILES
="$CONFIG_FILES $ac_optarg"
16377 ac_need_defaults
=false
;;
16378 --header |
--heade |
--head |
--hea )
16380 CONFIG_HEADERS
="$CONFIG_HEADERS $ac_optarg"
16381 ac_need_defaults
=false
;;
16382 -q |
-quiet |
--quiet |
--quie |
--qui |
--qu |
--q \
16383 |
-silent |
--silent |
--silen |
--sile |
--sil |
--si |
--s)
16386 # This is an error.
16387 -*) { { echo "$as_me:$LINENO: error: unrecognized option: $1
16388 Try \`$0 --help' for more information." >&5
16389 echo "$as_me: error: unrecognized option: $1
16390 Try \`$0 --help' for more information." >&2;}
16391 { (exit 1); exit 1; }; } ;;
16393 *) ac_config_targets
="$ac_config_targets $1" ;;
16399 ac_configure_extra_args
=
16401 if $ac_cs_silent; then
16403 ac_configure_extra_args
="$ac_configure_extra_args --silent"
16407 cat >>$CONFIG_STATUS <<_ACEOF
16408 if \$ac_cs_recheck; then
16409 echo "running $SHELL $0 " $ac_configure_args \$ac_configure_extra_args " --no-create --no-recursion" >&6
16410 exec $SHELL $0 $ac_configure_args \$ac_configure_extra_args --no-create --no-recursion
16415 cat >>$CONFIG_STATUS <<_ACEOF
16417 # INIT-COMMANDS section.
16420 AMDEP_TRUE="$AMDEP_TRUE" ac_aux_dir="$ac_aux_dir"
16424 with_multisubdir=${with_multisubdir}
16425 ac_configure_args="${multilib_arg} ${ac_configure_args}"
16426 CONFIG_SHELL=${CONFIG_SHELL-/bin/sh}
16427 libgcj_basedir=${libgcj_basedir}
16430 ORIGINAL_LD_FOR_MULTILIBS="${ORIGINAL_LD_FOR_MULTILIBS}"
16437 cat >>$CONFIG_STATUS <<\_ACEOF
16438 for ac_config_target
in $ac_config_targets
16440 case "$ac_config_target" in
16441 # Handling of arguments.
16442 "Makefile" ) CONFIG_FILES
="$CONFIG_FILES Makefile" ;;
16443 "libgcj.pc" ) CONFIG_FILES
="$CONFIG_FILES libgcj.pc" ;;
16444 "libgcj.spec" ) CONFIG_FILES
="$CONFIG_FILES libgcj.spec" ;;
16445 "libgcj-test.spec" ) CONFIG_FILES
="$CONFIG_FILES libgcj-test.spec" ;;
16446 "gnu/classpath/Configuration.java" ) CONFIG_FILES
="$CONFIG_FILES gnu/classpath/Configuration.java" ;;
16447 "gcj/Makefile" ) CONFIG_FILES
="$CONFIG_FILES gcj/Makefile" ;;
16448 "include/Makefile" ) CONFIG_FILES
="$CONFIG_FILES include/Makefile" ;;
16449 "testsuite/Makefile" ) CONFIG_FILES
="$CONFIG_FILES testsuite/Makefile" ;;
16450 "external/Makefile" ) CONFIG_FILES
="$CONFIG_FILES external/Makefile" ;;
16451 "external/sax/Makefile" ) CONFIG_FILES
="$CONFIG_FILES external/sax/Makefile" ;;
16452 "external/w3c_dom/Makefile" ) CONFIG_FILES
="$CONFIG_FILES external/w3c_dom/Makefile" ;;
16453 "include/platform.h" ) CONFIG_LINKS
="$CONFIG_LINKS include/platform.h:include/$PLATFORMH" ;;
16454 "java/io/natFile.cc" ) CONFIG_LINKS
="$CONFIG_LINKS java/io/natFile.cc:java/io/natFile${FILE-${PLATFORM}}.cc" ;;
16455 "java/lang/ConcreteProcess.java" ) CONFIG_LINKS
="$CONFIG_LINKS java/lang/ConcreteProcess.java:java/lang/${PLATFORM}Process.java" ;;
16456 "java/lang/natConcreteProcess.cc" ) CONFIG_LINKS
="$CONFIG_LINKS java/lang/natConcreteProcess.cc:java/lang/nat${PLATFORM}Process.cc" ;;
16457 "java/net/natInetAddress.cc" ) CONFIG_LINKS
="$CONFIG_LINKS java/net/natInetAddress.cc:java/net/natInetAddress${PLATFORMNET}.cc" ;;
16458 "java/net/natNetworkInterface.cc" ) CONFIG_LINKS
="$CONFIG_LINKS java/net/natNetworkInterface.cc:java/net/natNetworkInterface${PLATFORMNET}.cc" ;;
16459 "gnu/java/net/natPlainSocketImpl.cc" ) CONFIG_LINKS
="$CONFIG_LINKS gnu/java/net/natPlainSocketImpl.cc:gnu/java/net/natPlainSocketImpl${PLATFORMNET}.cc" ;;
16460 "gnu/java/net/natPlainDatagramSocketImpl.cc" ) CONFIG_LINKS
="$CONFIG_LINKS gnu/java/net/natPlainDatagramSocketImpl.cc:gnu/java/net/natPlainDatagramSocketImpl${PLATFORMNET}.cc" ;;
16461 "gnu/java/nio/natPipeImpl.cc" ) CONFIG_LINKS
="$CONFIG_LINKS gnu/java/nio/natPipeImpl.cc:gnu/java/nio/natPipeImpl${PLATFORM}.cc" ;;
16462 "gnu/java/nio/natSelectorImpl.cc" ) CONFIG_LINKS
="$CONFIG_LINKS gnu/java/nio/natSelectorImpl.cc:gnu/java/nio/natSelectorImpl${PLATFORM}.cc" ;;
16463 "gnu/java/nio/channels/natFileChannelImpl.cc" ) CONFIG_LINKS
="$CONFIG_LINKS gnu/java/nio/channels/natFileChannelImpl.cc:gnu/java/nio/channels/natFileChannel${FILE-${PLATFORM}}.cc" ;;
16464 "include/java-gc.h" ) CONFIG_LINKS
="$CONFIG_LINKS include/java-gc.h:include/$GCHDR" ;;
16465 "include/java-threads.h" ) CONFIG_LINKS
="$CONFIG_LINKS include/java-threads.h:include/$THREADH" ;;
16466 "sysdep/locks.h" ) CONFIG_LINKS
="$CONFIG_LINKS sysdep/locks.h:sysdep/$sysdeps_dir/locks.h" ;;
16467 "include/java-signal.h" ) CONFIG_LINKS
="$CONFIG_LINKS include/java-signal.h:$SIGNAL_HANDLER" ;;
16468 "include/java-signal-aux.h" ) CONFIG_LINKS
="$CONFIG_LINKS include/java-signal-aux.h:$SIGNAL_HANDLER_AUX" ;;
16469 "depfiles" ) CONFIG_COMMANDS
="$CONFIG_COMMANDS depfiles" ;;
16470 "default" ) CONFIG_COMMANDS
="$CONFIG_COMMANDS default" ;;
16471 "include/config.h" ) CONFIG_HEADERS
="$CONFIG_HEADERS include/config.h" ;;
16472 "gcj/libgcj-config.h" ) CONFIG_HEADERS
="$CONFIG_HEADERS gcj/libgcj-config.h" ;;
16473 *) { { echo "$as_me:$LINENO: error: invalid argument: $ac_config_target" >&5
16474 echo "$as_me: error: invalid argument: $ac_config_target" >&2;}
16475 { (exit 1); exit 1; }; };;
16479 # If the user did not use the arguments to specify the items to instantiate,
16480 # then the envvar interface is used. Set only those that are not.
16481 # We use the long form for the default assignment because of an extremely
16482 # bizarre bug on SunOS 4.1.3.
16483 if $ac_need_defaults; then
16484 test "${CONFIG_FILES+set}" = set || CONFIG_FILES
=$config_files
16485 test "${CONFIG_HEADERS+set}" = set || CONFIG_HEADERS
=$config_headers
16486 test "${CONFIG_LINKS+set}" = set || CONFIG_LINKS
=$config_links
16487 test "${CONFIG_COMMANDS+set}" = set || CONFIG_COMMANDS
=$config_commands
16490 # Have a temporary directory for convenience. Make it in the build tree
16491 # simply because there is no reason to put it here, and in addition,
16492 # creating and moving files from /tmp can sometimes cause problems.
16493 # Create a temporary directory, and hook for its removal unless debugging.
16496 trap 'exit_status=$?; rm -rf $tmp && exit $exit_status' 0
16497 trap '{ (exit 1); exit 1; }' 1 2 13 15
16500 # Create a (secure) tmp directory for tmp files.
16503 tmp
=`(umask 077 && mktemp -d -q "./confstatXXXXXX") 2>/dev/null` &&
16504 test -n "$tmp" && test -d "$tmp"
16507 tmp
=.
/confstat$$
-$RANDOM
16508 (umask 077 && mkdir
$tmp)
16511 echo "$me: cannot create a temporary directory in ." >&2
16512 { (exit 1); exit 1; }
16517 cat >>$CONFIG_STATUS <<_ACEOF
16520 # CONFIG_FILES section.
16523 # No need to generate the scripts if there are no CONFIG_FILES.
16524 # This happens for instance when ./config.status config.h
16525 if test -n "\$CONFIG_FILES"; then
16526 # Protect against being on the right side of a sed subst in config.status.
16527 sed 's/,@/@@/; s/@,/@@/; s/,;t t\$/@;t t/; /@;t t\$/s/[\\\\&,]/\\\\&/g;
16528 s/@@/,@/; s/@@/@,/; s/@;t t\$/,;t t/' >\$tmp/subs.sed <<\\CEOF
16529 s,@SHELL@,$SHELL,;t t
16530 s,@PATH_SEPARATOR@,$PATH_SEPARATOR,;t t
16531 s,@PACKAGE_NAME@,$PACKAGE_NAME,;t t
16532 s,@PACKAGE_TARNAME@,$PACKAGE_TARNAME,;t t
16533 s,@PACKAGE_VERSION@,$PACKAGE_VERSION,;t t
16534 s,@PACKAGE_STRING@,$PACKAGE_STRING,;t t
16535 s,@PACKAGE_BUGREPORT@,$PACKAGE_BUGREPORT,;t t
16536 s,@exec_prefix@,$exec_prefix,;t t
16537 s,@prefix@,$prefix,;t t
16538 s,@program_transform_name@,$program_transform_name,;t t
16539 s,@bindir@,$bindir,;t t
16540 s,@sbindir@,$sbindir,;t t
16541 s,@libexecdir@,$libexecdir,;t t
16542 s,@datadir@,$datadir,;t t
16543 s,@sysconfdir@,$sysconfdir,;t t
16544 s,@sharedstatedir@,$sharedstatedir,;t t
16545 s,@localstatedir@,$localstatedir,;t t
16546 s,@libdir@,$libdir,;t t
16547 s,@includedir@,$includedir,;t t
16548 s,@oldincludedir@,$oldincludedir,;t t
16549 s,@infodir@,$infodir,;t t
16550 s,@mandir@,$mandir,;t t
16551 s,@build_alias@,$build_alias,;t t
16552 s,@host_alias@,$host_alias,;t t
16553 s,@target_alias@,$target_alias,;t t
16554 s,@DEFS@,$DEFS,;t t
16555 s,@ECHO_C@,$ECHO_C,;t t
16556 s,@ECHO_N@,$ECHO_N,;t t
16557 s,@ECHO_T@,$ECHO_T,;t t
16558 s,@LIBS@,$LIBS,;t t
16559 s,@libgcj_basedir@,$libgcj_basedir,;t t
16560 s,@build@,$build,;t t
16561 s,@build_cpu@,$build_cpu,;t t
16562 s,@build_vendor@,$build_vendor,;t t
16563 s,@build_os@,$build_os,;t t
16564 s,@host@,$host,;t t
16565 s,@host_cpu@,$host_cpu,;t t
16566 s,@host_vendor@,$host_vendor,;t t
16567 s,@host_os@,$host_os,;t t
16568 s,@target@,$target,;t t
16569 s,@target_cpu@,$target_cpu,;t t
16570 s,@target_vendor@,$target_vendor,;t t
16571 s,@target_os@,$target_os,;t t
16572 s,@target_noncanonical@,$target_noncanonical,;t t
16573 s,@LN_S@,$LN_S,;t t
16574 s,@mkinstalldirs@,$mkinstalldirs,;t t
16576 s,@ac_ct_CC@,$ac_ct_CC,;t t
16577 s,@EXEEXT@,$EXEEXT,;t t
16578 s,@OBJEXT@,$OBJEXT,;t t
16580 s,@ac_ct_CXX@,$ac_ct_CXX,;t t
16581 s,@CFLAGS@,$CFLAGS,;t t
16582 s,@CXXFLAGS@,$CXXFLAGS,;t t
16583 s,@LDFLAGS@,$LDFLAGS,;t t
16584 s,@INSTALL_PROGRAM@,$INSTALL_PROGRAM,;t t
16585 s,@INSTALL_SCRIPT@,$INSTALL_SCRIPT,;t t
16586 s,@INSTALL_DATA@,$INSTALL_DATA,;t t
16587 s,@CYGPATH_W@,$CYGPATH_W,;t t
16588 s,@PACKAGE@,$PACKAGE,;t t
16589 s,@VERSION@,$VERSION,;t t
16590 s,@ACLOCAL@,$ACLOCAL,;t t
16591 s,@AUTOCONF@,$AUTOCONF,;t t
16592 s,@AUTOMAKE@,$AUTOMAKE,;t t
16593 s,@AUTOHEADER@,$AUTOHEADER,;t t
16594 s,@MAKEINFO@,$MAKEINFO,;t t
16595 s,@install_sh@,$install_sh,;t t
16596 s,@STRIP@,$STRIP,;t t
16597 s,@ac_ct_STRIP@,$ac_ct_STRIP,;t t
16598 s,@INSTALL_STRIP_PROGRAM@,$INSTALL_STRIP_PROGRAM,;t t
16599 s,@mkdir_p@,$mkdir_p,;t t
16601 s,@SET_MAKE@,$SET_MAKE,;t t
16602 s,@am__leading_dot@,$am__leading_dot,;t t
16603 s,@AMTAR@,$AMTAR,;t t
16604 s,@am__tar@,$am__tar,;t t
16605 s,@am__untar@,$am__untar,;t t
16606 s,@DEPDIR@,$DEPDIR,;t t
16607 s,@am__include@,$am__include,;t t
16608 s,@am__quote@,$am__quote,;t t
16609 s,@AMDEP_TRUE@,$AMDEP_TRUE,;t t
16610 s,@AMDEP_FALSE@,$AMDEP_FALSE,;t t
16611 s,@AMDEPBACKSLASH@,$AMDEPBACKSLASH,;t t
16612 s,@CCDEPMODE@,$CCDEPMODE,;t t
16613 s,@am__fastdepCC_TRUE@,$am__fastdepCC_TRUE,;t t
16614 s,@am__fastdepCC_FALSE@,$am__fastdepCC_FALSE,;t t
16615 s,@CXXDEPMODE@,$CXXDEPMODE,;t t
16616 s,@am__fastdepCXX_TRUE@,$am__fastdepCXX_TRUE,;t t
16617 s,@am__fastdepCXX_FALSE@,$am__fastdepCXX_FALSE,;t t
16619 s,@ac_ct_AS@,$ac_ct_AS,;t t
16621 s,@ac_ct_AR@,$ac_ct_AR,;t t
16622 s,@RANLIB@,$RANLIB,;t t
16623 s,@ac_ct_RANLIB@,$ac_ct_RANLIB,;t t
16624 s,@MAINTAINER_MODE_TRUE@,$MAINTAINER_MODE_TRUE,;t t
16625 s,@MAINTAINER_MODE_FALSE@,$MAINTAINER_MODE_FALSE,;t t
16626 s,@MAINT@,$MAINT,;t t
16627 s,@LIBGCJ_CFLAGS@,$LIBGCJ_CFLAGS,;t t
16628 s,@LIBGCJ_CXXFLAGS@,$LIBGCJ_CXXFLAGS,;t t
16629 s,@LIBGCJ_JAVAFLAGS@,$LIBGCJ_JAVAFLAGS,;t t
16630 s,@LIBGCJ_LD_SYMBOLIC@,$LIBGCJ_LD_SYMBOLIC,;t t
16631 s,@INCLTDL@,$INCLTDL,;t t
16632 s,@LIBLTDL@,$LIBLTDL,;t t
16633 s,@DIRLTDL@,$DIRLTDL,;t t
16634 s,@LIBTOOL@,$LIBTOOL,;t t
16635 s,@CXXCPP@,$CXXCPP,;t t
16636 s,@CPPFLAGS@,$CPPFLAGS,;t t
16638 s,@GCJFLAGS@,$GCJFLAGS,;t t
16639 s,@GCJDEPMODE@,$GCJDEPMODE,;t t
16640 s,@am__fastdepGCJ_TRUE@,$am__fastdepGCJ_TRUE,;t t
16641 s,@am__fastdepGCJ_FALSE@,$am__fastdepGCJ_FALSE,;t t
16642 s,@subdirs@,$subdirs,;t t
16643 s,@TESTSUBDIR_TRUE@,$TESTSUBDIR_TRUE,;t t
16644 s,@TESTSUBDIR_FALSE@,$TESTSUBDIR_FALSE,;t t
16645 s,@JAVA_HOME_SET_TRUE@,$JAVA_HOME_SET_TRUE,;t t
16646 s,@JAVA_HOME_SET_FALSE@,$JAVA_HOME_SET_FALSE,;t t
16647 s,@JAVA_HOME@,$JAVA_HOME,;t t
16648 s,@LIBGCJDEBUG@,$LIBGCJDEBUG,;t t
16649 s,@INTERPRETER@,$INTERPRETER,;t t
16650 s,@LIBFFI@,$LIBFFI,;t t
16651 s,@LIBFFIINCS@,$LIBFFIINCS,;t t
16652 s,@PLATFORM_INNER_NAT_HDRS@,$PLATFORM_INNER_NAT_HDRS,;t t
16654 s,@EGREP@,$EGREP,;t t
16655 s,@USING_WIN32_PLATFORM_TRUE@,$USING_WIN32_PLATFORM_TRUE,;t t
16656 s,@USING_WIN32_PLATFORM_FALSE@,$USING_WIN32_PLATFORM_FALSE,;t t
16657 s,@USING_POSIX_PLATFORM_TRUE@,$USING_POSIX_PLATFORM_TRUE,;t t
16658 s,@USING_POSIX_PLATFORM_FALSE@,$USING_POSIX_PLATFORM_FALSE,;t t
16659 s,@USING_ECOS_PLATFORM_TRUE@,$USING_ECOS_PLATFORM_TRUE,;t t
16660 s,@USING_ECOS_PLATFORM_FALSE@,$USING_ECOS_PLATFORM_FALSE,;t t
16661 s,@USING_DARWIN_CRT_TRUE@,$USING_DARWIN_CRT_TRUE,;t t
16662 s,@USING_DARWIN_CRT_FALSE@,$USING_DARWIN_CRT_FALSE,;t t
16663 s,@SYSTEMSPEC@,$SYSTEMSPEC,;t t
16664 s,@LIBGCJTESTSPEC@,$LIBGCJTESTSPEC,;t t
16665 s,@ZLIBSPEC@,$ZLIBSPEC,;t t
16666 s,@ZLIBTESTSPEC@,$ZLIBTESTSPEC,;t t
16667 s,@X_CFLAGS@,$X_CFLAGS,;t t
16668 s,@X_PRE_LIBS@,$X_PRE_LIBS,;t t
16669 s,@X_LIBS@,$X_LIBS,;t t
16670 s,@X_EXTRA_LIBS@,$X_EXTRA_LIBS,;t t
16671 s,@TOOLKIT@,$TOOLKIT,;t t
16672 s,@XLIB_AWT_TRUE@,$XLIB_AWT_TRUE,;t t
16673 s,@XLIB_AWT_FALSE@,$XLIB_AWT_FALSE,;t t
16674 s,@GTK_AWT_TRUE@,$GTK_AWT_TRUE,;t t
16675 s,@GTK_AWT_FALSE@,$GTK_AWT_FALSE,;t t
16676 s,@GTK_CAIRO_TRUE@,$GTK_CAIRO_TRUE,;t t
16677 s,@GTK_CAIRO_FALSE@,$GTK_CAIRO_FALSE,;t t
16678 s,@PKG_CONFIG@,$PKG_CONFIG,;t t
16679 s,@CAIRO_CFLAGS@,$CAIRO_CFLAGS,;t t
16680 s,@CAIRO_LIBS@,$CAIRO_LIBS,;t t
16681 s,@PANGOFT2_CFLAGS@,$PANGOFT2_CFLAGS,;t t
16682 s,@PANGOFT2_LIBS@,$PANGOFT2_LIBS,;t t
16683 s,@GCLIBS@,$GCLIBS,;t t
16684 s,@GCINCS@,$GCINCS,;t t
16685 s,@GCDEPS@,$GCDEPS,;t t
16686 s,@GCSPEC@,$GCSPEC,;t t
16687 s,@JC1GCSPEC@,$JC1GCSPEC,;t t
16688 s,@GCTESTSPEC@,$GCTESTSPEC,;t t
16689 s,@USING_BOEHMGC_TRUE@,$USING_BOEHMGC_TRUE,;t t
16690 s,@USING_BOEHMGC_FALSE@,$USING_BOEHMGC_FALSE,;t t
16691 s,@USING_NOGC_TRUE@,$USING_NOGC_TRUE,;t t
16692 s,@USING_NOGC_FALSE@,$USING_NOGC_FALSE,;t t
16693 s,@THREADLIBS@,$THREADLIBS,;t t
16694 s,@THREADINCS@,$THREADINCS,;t t
16695 s,@THREADDEPS@,$THREADDEPS,;t t
16696 s,@THREADSPEC@,$THREADSPEC,;t t
16697 s,@THREADLDFLAGS@,$THREADLDFLAGS,;t t
16698 s,@THREADCXXFLAGS@,$THREADCXXFLAGS,;t t
16699 s,@USING_POSIX_THREADS_TRUE@,$USING_POSIX_THREADS_TRUE,;t t
16700 s,@USING_POSIX_THREADS_FALSE@,$USING_POSIX_THREADS_FALSE,;t t
16701 s,@USING_WIN32_THREADS_TRUE@,$USING_WIN32_THREADS_TRUE,;t t
16702 s,@USING_WIN32_THREADS_FALSE@,$USING_WIN32_THREADS_FALSE,;t t
16703 s,@USING_NO_THREADS_TRUE@,$USING_NO_THREADS_TRUE,;t t
16704 s,@USING_NO_THREADS_FALSE@,$USING_NO_THREADS_FALSE,;t t
16705 s,@HASH_SYNC_SPEC@,$HASH_SYNC_SPEC,;t t
16706 s,@USING_GCC_TRUE@,$USING_GCC_TRUE,;t t
16707 s,@USING_GCC_FALSE@,$USING_GCC_FALSE,;t t
16708 s,@gcc_version_trigger@,$gcc_version_trigger,;t t
16709 s,@gcc_version_full@,$gcc_version_full,;t t
16710 s,@gcc_version@,$gcc_version,;t t
16711 s,@tool_include_dir@,$tool_include_dir,;t t
16712 s,@LIBICONV@,$LIBICONV,;t t
16713 s,@LTLIBICONV@,$LTLIBICONV,;t t
16714 s,@GTK_CFLAGS@,$GTK_CFLAGS,;t t
16715 s,@GTK_LIBS@,$GTK_LIBS,;t t
16716 s,@GLIB_CFLAGS@,$GLIB_CFLAGS,;t t
16717 s,@GLIB_LIBS@,$GLIB_LIBS,;t t
16718 s,@LIBART_CFLAGS@,$LIBART_CFLAGS,;t t
16719 s,@LIBART_LIBS@,$LIBART_LIBS,;t t
16720 s,@SUPPLY_BACKTRACE_TRUE@,$SUPPLY_BACKTRACE_TRUE,;t t
16721 s,@SUPPLY_BACKTRACE_FALSE@,$SUPPLY_BACKTRACE_FALSE,;t t
16722 s,@GCJH@,$GCJH,;t t
16724 s,@CLASSPATH_SEPARATOR@,$CLASSPATH_SEPARATOR,;t t
16725 s,@ac_ct_GCJ@,$ac_ct_GCJ,;t t
16726 s,@ZLIBS@,$ZLIBS,;t t
16727 s,@SYS_ZLIBS@,$SYS_ZLIBS,;t t
16728 s,@ZINCS@,$ZINCS,;t t
16729 s,@DIVIDESPEC@,$DIVIDESPEC,;t t
16730 s,@CHECKREFSPEC@,$CHECKREFSPEC,;t t
16731 s,@EXCEPTIONSPEC@,$EXCEPTIONSPEC,;t t
16732 s,@IEEESPEC@,$IEEESPEC,;t t
16733 s,@NATIVE_TRUE@,$NATIVE_TRUE,;t t
16734 s,@NATIVE_FALSE@,$NATIVE_FALSE,;t t
16735 s,@NEEDS_DATA_START_TRUE@,$NEEDS_DATA_START_TRUE,;t t
16736 s,@NEEDS_DATA_START_FALSE@,$NEEDS_DATA_START_FALSE,;t t
16737 s,@GCC_UNWIND_INCLUDE@,$GCC_UNWIND_INCLUDE,;t t
16738 s,@toolexecdir@,$toolexecdir,;t t
16739 s,@toolexecmainlibdir@,$toolexecmainlibdir,;t t
16740 s,@toolexeclibdir@,$toolexeclibdir,;t t
16741 s,@GCJVERSION@,$GCJVERSION,;t t
16742 s,@gxx_include_dir@,$gxx_include_dir,;t t
16743 s,@libstdcxx_incdir@,$libstdcxx_incdir,;t t
16744 s,@ALLOCA@,$ALLOCA,;t t
16745 s,@PERL@,$PERL,;t t
16746 s,@BACKTRACESPEC@,$BACKTRACESPEC,;t t
16747 s,@SYSDEP_SOURCES@,$SYSDEP_SOURCES,;t t
16748 s,@here@,$here,;t t
16749 s,@LIBOBJS@,$LIBOBJS,;t t
16750 s,@LTLIBOBJS@,$LTLIBOBJS,;t t
16755 cat >>$CONFIG_STATUS <<\_ACEOF
16756 # Split the substitutions into bite-sized pieces for seds with
16757 # small command number limits, like on Digital OSF/1 and HP-UX.
16758 ac_max_sed_lines
=48
16759 ac_sed_frag
=1 # Number of current file.
16760 ac_beg
=1 # First line for current file.
16761 ac_end
=$ac_max_sed_lines # Line after last line for current file.
16764 while $ac_more_lines; do
16765 if test $ac_beg -gt 1; then
16766 sed "1,${ac_beg}d; ${ac_end}q" $tmp/subs.
sed >$tmp/subs.frag
16768 sed "${ac_end}q" $tmp/subs.
sed >$tmp/subs.frag
16770 if test ! -s $tmp/subs.frag
; then
16771 ac_more_lines
=false
16773 # The purpose of the label and of the branching condition is to
16774 # speed up the sed processing (if there are no `@' at all, there
16775 # is no need to browse any of the substitutions).
16776 # These are the two extra sed commands mentioned above.
16778 /@[a-zA-Z_][a-zA-Z_0-9]*@/!b' && cat $tmp/subs.frag
) >$tmp/subs-
$ac_sed_frag.
sed
16779 if test -z "$ac_sed_cmds"; then
16780 ac_sed_cmds
="sed -f $tmp/subs-$ac_sed_frag.sed"
16782 ac_sed_cmds
="$ac_sed_cmds | sed -f $tmp/subs-$ac_sed_frag.sed"
16784 ac_sed_frag
=`expr $ac_sed_frag + 1`
16786 ac_end
=`expr $ac_end + $ac_max_sed_lines`
16789 if test -z "$ac_sed_cmds"; then
16792 fi # test -n "$CONFIG_FILES"
16795 cat >>$CONFIG_STATUS <<\_ACEOF
16796 for ac_file
in : $CONFIG_FILES; do test "x$ac_file" = x
: && continue
16797 # Support "outfile[:infile[:infile...]]", defaulting infile="outfile.in".
16799 - |
*:- |
*:-:* ) # input from stdin
16801 ac_file_in
=`echo "$ac_file" | sed 's,[^:]*:,,'`
16802 ac_file
=`echo "$ac_file" | sed 's,:.*,,'` ;;
16803 *:* ) ac_file_in
=`echo "$ac_file" | sed 's,[^:]*:,,'`
16804 ac_file
=`echo "$ac_file" | sed 's,:.*,,'` ;;
16805 * ) ac_file_in
=$ac_file.
in ;;
16808 # Compute @srcdir@, @top_srcdir@, and @INSTALL@ for subdirectories.
16809 ac_dir
=`(dirname "$ac_file") 2>/dev/null ||
16810 $as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
16811 X"$ac_file" : 'X\(//\)[^/]' \| \
16812 X"$ac_file" : 'X\(//\)$' \| \
16813 X"$ac_file" : 'X\(/\)' \| \
16814 . : '\(.\)' 2>/dev/null ||
16816 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
16817 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
16818 /^X\(\/\/\)$/{ s//\1/; q; }
16819 /^X\(\/\).*/{ s//\1/; q; }
16821 { if $as_mkdir_p; then
16826 while test ! -d "$as_dir"; do
16827 as_dirs
="$as_dir $as_dirs"
16828 as_dir
=`(dirname "$as_dir") 2>/dev/null ||
16829 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
16830 X"$as_dir" : 'X\(//\)[^/]' \| \
16831 X"$as_dir" : 'X\(//\)$' \| \
16832 X"$as_dir" : 'X\(/\)' \| \
16833 . : '\(.\)' 2>/dev/null ||
16835 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
16836 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
16837 /^X\(\/\/\)$/{ s//\1/; q; }
16838 /^X\(\/\).*/{ s//\1/; q; }
16841 test ! -n "$as_dirs" || mkdir
$as_dirs
16842 fi ||
{ { echo "$as_me:$LINENO: error: cannot create directory \"$ac_dir\"" >&5
16843 echo "$as_me: error: cannot create directory \"$ac_dir\"" >&2;}
16844 { (exit 1); exit 1; }; }; }
16848 if test "$ac_dir" != .
; then
16849 ac_dir_suffix
=/`echo "$ac_dir" | sed 's,^\.[\\/],,'`
16850 # A "../" for each directory in $ac_dir_suffix.
16851 ac_top_builddir
=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,../,g'`
16853 ac_dir_suffix
= ac_top_builddir
=
16857 .
) # No --srcdir option. We are building in place.
16859 if test -z "$ac_top_builddir"; then
16862 ac_top_srcdir
=`echo $ac_top_builddir | sed 's,/$,,'`
16864 [\\/]* | ?
:[\\/]* ) # Absolute path.
16865 ac_srcdir
=$srcdir$ac_dir_suffix;
16866 ac_top_srcdir
=$srcdir ;;
16867 *) # Relative path.
16868 ac_srcdir
=$ac_top_builddir$srcdir$ac_dir_suffix
16869 ac_top_srcdir
=$ac_top_builddir$srcdir ;;
16872 # Do not use `cd foo && pwd` to compute absolute paths, because
16873 # the directories may not exist.
16875 .
) ac_abs_builddir
="$ac_dir";;
16878 .
) ac_abs_builddir
=`pwd`;;
16879 [\\/]* | ?
:[\\/]* ) ac_abs_builddir
="$ac_dir";;
16880 *) ac_abs_builddir
=`pwd`/"$ac_dir";;
16883 case $ac_abs_builddir in
16884 .
) ac_abs_top_builddir
=${ac_top_builddir}.
;;
16886 case ${ac_top_builddir}.
in
16887 .
) ac_abs_top_builddir
=$ac_abs_builddir;;
16888 [\\/]* | ?
:[\\/]* ) ac_abs_top_builddir
=${ac_top_builddir}.
;;
16889 *) ac_abs_top_builddir
=$ac_abs_builddir/${ac_top_builddir}.
;;
16892 case $ac_abs_builddir in
16893 .
) ac_abs_srcdir
=$ac_srcdir;;
16896 .
) ac_abs_srcdir
=$ac_abs_builddir;;
16897 [\\/]* | ?
:[\\/]* ) ac_abs_srcdir
=$ac_srcdir;;
16898 *) ac_abs_srcdir
=$ac_abs_builddir/$ac_srcdir;;
16901 case $ac_abs_builddir in
16902 .
) ac_abs_top_srcdir
=$ac_top_srcdir;;
16904 case $ac_top_srcdir in
16905 .
) ac_abs_top_srcdir
=$ac_abs_builddir;;
16906 [\\/]* | ?
:[\\/]* ) ac_abs_top_srcdir
=$ac_top_srcdir;;
16907 *) ac_abs_top_srcdir
=$ac_abs_builddir/$ac_top_srcdir;;
16913 [\\/$
]* | ?
:[\\/]* ) ac_INSTALL
=$INSTALL ;;
16914 *) ac_INSTALL
=$ac_top_builddir$INSTALL ;;
16917 if test x
"$ac_file" != x-
; then
16918 { echo "$as_me:$LINENO: creating $ac_file" >&5
16919 echo "$as_me: creating $ac_file" >&6;}
16922 # Let's still pretend it is `configure' which instantiates (i.e., don't
16923 # use $as_me), people would be surprised to read:
16924 # /* config.h. Generated by config.status. */
16925 if test x
"$ac_file" = x-
; then
16928 configure_input
="$ac_file. "
16930 configure_input
=$configure_input"Generated from `echo $ac_file_in |
16931 sed 's,.*/,,'` by configure."
16933 # First look for the input files in the build tree, otherwise in the
16935 ac_file_inputs
=`IFS=:
16936 for f in $ac_file_in; do
16938 -) echo $tmp/stdin ;;
16940 # Absolute (can't be DOS-style, as IFS=:)
16941 test -f "$f" || { { echo "$as_me:$LINENO: error: cannot find input file: $f" >&5
16942 echo "$as_me: error: cannot find input file: $f" >&2;}
16943 { (exit 1); exit 1; }; }
16946 if test -f "$f"; then
16949 elif test -f "$srcdir/$f"; then
16954 { { echo "$as_me:$LINENO: error: cannot find input file: $f" >&5
16955 echo "$as_me: error: cannot find input file: $f" >&2;}
16956 { (exit 1); exit 1; }; }
16959 done` ||
{ (exit 1); exit 1; }
16961 cat >>$CONFIG_STATUS <<_ACEOF
16965 cat >>$CONFIG_STATUS <<\_ACEOF
16967 /@
[a-zA-Z_
][a-zA-Z_0-9
]*@
/!b
16968 s
,@configure_input@
,$configure_input,;t t
16969 s
,@srcdir@
,$ac_srcdir,;t t
16970 s
,@abs_srcdir@
,$ac_abs_srcdir,;t t
16971 s
,@top_srcdir@
,$ac_top_srcdir,;t t
16972 s
,@abs_top_srcdir@
,$ac_abs_top_srcdir,;t t
16973 s
,@builddir@
,$ac_builddir,;t t
16974 s
,@abs_builddir@
,$ac_abs_builddir,;t t
16975 s
,@top_builddir@
,$ac_top_builddir,;t t
16976 s
,@abs_top_builddir@
,$ac_abs_top_builddir,;t t
16977 s
,@INSTALL@
,$ac_INSTALL,;t t
16978 " $ac_file_inputs | (eval "$ac_sed_cmds") >$tmp/out
16980 if test x"$ac_file" != x-; then
16981 mv $tmp/out $ac_file
16989 cat >>$CONFIG_STATUS <<\_ACEOF
16992 # CONFIG_HEADER section.
16995 # These sed commands are passed to sed as "A NAME B NAME C VALUE D
", where
16996 # NAME is the cpp macro being defined and VALUE is the value it is being given.
16998 # ac_d sets the value in "#define NAME VALUE" lines.
16999 ac_dA
='s,^\([ ]*\)#\([ ]*define[ ][ ]*\)'
17000 ac_dB
='[ ].*$,\1#\2'
17003 # ac_u turns "#undef NAME" without trailing blanks into "#define NAME VALUE".
17004 ac_uA
='s,^\([ ]*\)#\([ ]*\)undef\([ ][ ]*\)'
17005 ac_uB
='$,\1#\2define\3'
17009 for ac_file
in : $CONFIG_HEADERS; do test "x$ac_file" = x
: && continue
17010 # Support "outfile[:infile[:infile...]]", defaulting infile="outfile.in".
17012 - |
*:- |
*:-:* ) # input from stdin
17014 ac_file_in
=`echo "$ac_file" | sed 's,[^:]*:,,'`
17015 ac_file
=`echo "$ac_file" | sed 's,:.*,,'` ;;
17016 *:* ) ac_file_in
=`echo "$ac_file" | sed 's,[^:]*:,,'`
17017 ac_file
=`echo "$ac_file" | sed 's,:.*,,'` ;;
17018 * ) ac_file_in
=$ac_file.
in ;;
17021 test x
"$ac_file" != x-
&& { echo "$as_me:$LINENO: creating $ac_file" >&5
17022 echo "$as_me: creating $ac_file" >&6;}
17024 # First look for the input files in the build tree, otherwise in the
17026 ac_file_inputs
=`IFS=:
17027 for f in $ac_file_in; do
17029 -) echo $tmp/stdin ;;
17031 # Absolute (can't be DOS-style, as IFS=:)
17032 test -f "$f" || { { echo "$as_me:$LINENO: error: cannot find input file: $f" >&5
17033 echo "$as_me: error: cannot find input file: $f" >&2;}
17034 { (exit 1); exit 1; }; }
17035 # Do quote $f, to prevent DOS paths from being IFS'd.
17038 if test -f "$f"; then
17041 elif test -f "$srcdir/$f"; then
17046 { { echo "$as_me:$LINENO: error: cannot find input file: $f" >&5
17047 echo "$as_me: error: cannot find input file: $f" >&2;}
17048 { (exit 1); exit 1; }; }
17051 done` ||
{ (exit 1); exit 1; }
17052 # Remove the trailing spaces.
17053 sed 's/[ ]*$//' $ac_file_inputs >$tmp/in
17057 # Transform confdefs.h into two sed scripts, `conftest.defines' and
17058 # `conftest.undefs', that substitutes the proper values into
17059 # config.h.in to produce config.h. The first handles `#define'
17060 # templates, and the second `#undef' templates.
17061 # And first: Protect against being on the right side of a sed subst in
17062 # config.status. Protect against being in an unquoted here document
17063 # in config.status.
17064 rm -f conftest.defines conftest.undefs
17065 # Using a here document instead of a string reduces the quoting nightmare.
17066 # Putting comments in sed scripts is not portable.
17068 # `end' is used to avoid that the second main sed command (meant for
17069 # 0-ary CPP macros) applies to n-ary macro definitions.
17070 # See the Autoconf documentation for `clear'.
17071 cat >confdef2sed.
sed <<\_ACEOF
17076 s,^[ ]*#[ ]*define[ ][ ]*\([^ (][^ (]*\)\(([^)]*)\)[ ]*\(.*\)$,${ac_dA}\1${ac_dB}\1\2${ac_dC}\3${ac_dD},gp
17078 s,^[ ]*#[ ]*define[ ][ ]*\([^ ][^ ]*\)[ ]*\(.*\)$,${ac_dA}\1${ac_dB}\1${ac_dC}\2${ac_dD},gp
17081 # If some macros were called several times there might be several times
17082 # the same #defines, which is useless. Nevertheless, we may not want to
17083 # sort them, since we want the *last* AC-DEFINE to be honored.
17084 uniq confdefs.h | sed -n -f confdef2sed.sed >conftest.defines
17085 sed 's/ac_d/ac_u/g' conftest.defines >conftest.undefs
17086 rm -f confdef2sed.sed
17088 # This sed command replaces #undef with comments. This is necessary, for
17089 # example, in the case of _POSIX_SOURCE, which is predefined and required
17090 # on some systems where configure will not decide to define it.
17091 cat >>conftest.undefs <<\_ACEOF
17092 s,^[ ]*#[ ]*undef[ ][ ]*[a-zA-Z_][a-zA-Z_0-9]*,/* & */,
17095 # Break up conftest.defines because some shells have a limit on the size
17096 # of here documents, and old seds have small limits too (100 cmds).
17097 echo ' # Handle all the #define templates only if necessary.' >>$CONFIG_STATUS
17098 echo ' if grep "^[ ]*#[ ]*define" $tmp/in >/dev/null; then' >>$CONFIG_STATUS
17099 echo ' # If there are no defines, we may have an empty if/fi' >>$CONFIG_STATUS
17100 echo ' :' >>$CONFIG_STATUS
17101 rm -f conftest.tail
17102 while grep . conftest.defines >/dev/null
17104 # Write a limited-size here document to $tmp/defines.sed.
17105 echo ' cat >$tmp/defines.sed <<CEOF' >>$CONFIG_STATUS
17106 # Speed up: don't consider the non `#define' lines.
17107 echo '/^[ ]*#[ ]*define/!b' >>$CONFIG_STATUS
17108 # Work around the forget-to-reset-the-flag bug.
17109 echo 't clr' >>$CONFIG_STATUS
17110 echo ': clr' >>$CONFIG_STATUS
17111 sed ${ac_max_here_lines}q conftest.defines
>>$CONFIG_STATUS
17113 sed -f $tmp/defines.sed $tmp/in >$tmp/out
17115 mv $tmp/out $tmp/in
17117 sed 1,${ac_max_here_lines}d conftest.defines
>conftest.
tail
17118 rm -f conftest.defines
17119 mv conftest.
tail conftest.defines
17121 rm -f conftest.defines
17122 echo ' fi # grep' >>$CONFIG_STATUS
17123 echo >>$CONFIG_STATUS
17125 # Break up conftest.undefs because some shells have a limit on the size
17126 # of here documents, and old seds have small limits too (100 cmds).
17127 echo ' # Handle all the #undef templates' >>$CONFIG_STATUS
17128 rm -f conftest.
tail
17129 while grep . conftest.undefs
>/dev
/null
17131 # Write a limited-size here document to $tmp/undefs.sed.
17132 echo ' cat >$tmp/undefs.sed <<CEOF' >>$CONFIG_STATUS
17133 # Speed up: don't consider the non
`#undef'
17134 echo '/^[ ]*#[ ]*undef/!b' >>$CONFIG_STATUS
17135 # Work around the forget-to-reset-the-flag bug.
17136 echo 't clr' >>$CONFIG_STATUS
17137 echo ': clr' >>$CONFIG_STATUS
17138 sed ${ac_max_here_lines}q conftest.undefs >>$CONFIG_STATUS
17140 sed -f $tmp/undefs.sed $tmp/in >$tmp/out
17142 mv $tmp/out $tmp/in
17144 sed 1,${ac_max_here_lines}d conftest.undefs >conftest.tail
17145 rm -f conftest.undefs
17146 mv conftest.tail conftest.undefs
17148 rm -f conftest.undefs
17150 cat >>$CONFIG_STATUS <<\_ACEOF
17151 # Let's still pretend it is `configure
' which instantiates (i.e., don't
17152 # use $as_me), people would be surprised to read:
17153 # /* config.h. Generated by config.status. */
17154 if test x
"$ac_file" = x-
; then
17155 echo "/* Generated by configure. */" >$tmp/config.h
17157 echo "/* $ac_file. Generated by configure. */" >$tmp/config.h
17159 cat $tmp/in >>$tmp/config.h
17161 if test x
"$ac_file" != x-
; then
17162 if diff $ac_file $tmp/config.h
>/dev
/null
2>&1; then
17163 { echo "$as_me:$LINENO: $ac_file is unchanged" >&5
17164 echo "$as_me: $ac_file is unchanged" >&6;}
17166 ac_dir
=`(dirname "$ac_file") 2>/dev/null ||
17167 $as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
17168 X"$ac_file" : 'X\(//\)[^/]' \| \
17169 X"$ac_file" : 'X\(//\)$' \| \
17170 X"$ac_file" : 'X\(/\)' \| \
17171 . : '\(.\)' 2>/dev/null ||
17173 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
17174 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
17175 /^X\(\/\/\)$/{ s//\1/; q; }
17176 /^X\(\/\).*/{ s//\1/; q; }
17178 { if $as_mkdir_p; then
17183 while test ! -d "$as_dir"; do
17184 as_dirs
="$as_dir $as_dirs"
17185 as_dir
=`(dirname "$as_dir") 2>/dev/null ||
17186 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
17187 X"$as_dir" : 'X\(//\)[^/]' \| \
17188 X"$as_dir" : 'X\(//\)$' \| \
17189 X"$as_dir" : 'X\(/\)' \| \
17190 . : '\(.\)' 2>/dev/null ||
17192 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
17193 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
17194 /^X\(\/\/\)$/{ s//\1/; q; }
17195 /^X\(\/\).*/{ s//\1/; q; }
17198 test ! -n "$as_dirs" || mkdir
$as_dirs
17199 fi ||
{ { echo "$as_me:$LINENO: error: cannot create directory \"$ac_dir\"" >&5
17200 echo "$as_me: error: cannot create directory \"$ac_dir\"" >&2;}
17201 { (exit 1); exit 1; }; }; }
17204 mv $tmp/config.h
$ac_file
17208 rm -f $tmp/config.h
17210 # Compute $ac_file's index in $config_headers.
17212 for _am_header
in $config_headers :; do
17213 case $_am_header in
17214 $ac_file |
$ac_file:* )
17217 _am_stamp_count
=`expr $_am_stamp_count + 1` ;;
17220 echo "timestamp for $ac_file" >`(dirname $ac_file) 2>/dev/null ||
17221 $as_expr X$ac_file : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
17222 X$ac_file : 'X\(//\)[^/]' \| \
17223 X$ac_file : 'X\(//\)$' \| \
17224 X$ac_file : 'X\(/\)' \| \
17225 . : '\(.\)' 2>/dev/null ||
17227 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
17228 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
17229 /^X\(\/\/\)$/{ s//\1/; q; }
17230 /^X\(\/\).*/{ s//\1/; q; }
17231 s/.*/./; q'`/stamp-h
$_am_stamp_count
17234 cat >>$CONFIG_STATUS <<\_ACEOF
17237 # CONFIG_LINKS section.
17240 for ac_file
in : $CONFIG_LINKS; do test "x$ac_file" = x
: && continue
17241 ac_dest
=`echo "$ac_file" | sed 's,:.*,,'`
17242 ac_source
=`echo "$ac_file" | sed 's,[^:]*:,,'`
17244 { echo "$as_me:$LINENO: linking $srcdir/$ac_source to $ac_dest" >&5
17245 echo "$as_me: linking $srcdir/$ac_source to $ac_dest" >&6;}
17247 if test ! -r $srcdir/$ac_source; then
17248 { { echo "$as_me:$LINENO: error: $srcdir/$ac_source: file not found" >&5
17249 echo "$as_me: error: $srcdir/$ac_source: file not found" >&2;}
17250 { (exit 1); exit 1; }; }
17254 # Make relative symlinks.
17255 ac_dest_dir
=`(dirname "$ac_dest") 2>/dev/null ||
17256 $as_expr X"$ac_dest" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
17257 X"$ac_dest" : 'X\(//\)[^/]' \| \
17258 X"$ac_dest" : 'X\(//\)$' \| \
17259 X"$ac_dest" : 'X\(/\)' \| \
17260 . : '\(.\)' 2>/dev/null ||
17262 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
17263 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
17264 /^X\(\/\/\)$/{ s//\1/; q; }
17265 /^X\(\/\).*/{ s//\1/; q; }
17267 { if $as_mkdir_p; then
17268 mkdir
-p "$ac_dest_dir"
17270 as_dir
="$ac_dest_dir"
17272 while test ! -d "$as_dir"; do
17273 as_dirs
="$as_dir $as_dirs"
17274 as_dir
=`(dirname "$as_dir") 2>/dev/null ||
17275 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
17276 X"$as_dir" : 'X\(//\)[^/]' \| \
17277 X"$as_dir" : 'X\(//\)$' \| \
17278 X"$as_dir" : 'X\(/\)' \| \
17279 . : '\(.\)' 2>/dev/null ||
17281 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
17282 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
17283 /^X\(\/\/\)$/{ s//\1/; q; }
17284 /^X\(\/\).*/{ s//\1/; q; }
17287 test ! -n "$as_dirs" || mkdir
$as_dirs
17288 fi ||
{ { echo "$as_me:$LINENO: error: cannot create directory \"$ac_dest_dir\"" >&5
17289 echo "$as_me: error: cannot create directory \"$ac_dest_dir\"" >&2;}
17290 { (exit 1); exit 1; }; }; }
17294 if test "$ac_dest_dir" != .
; then
17295 ac_dir_suffix
=/`echo "$ac_dest_dir" | sed 's,^\.[\\/],,'`
17296 # A "../" for each directory in $ac_dir_suffix.
17297 ac_top_builddir
=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,../,g'`
17299 ac_dir_suffix
= ac_top_builddir
=
17303 .
) # No --srcdir option. We are building in place.
17305 if test -z "$ac_top_builddir"; then
17308 ac_top_srcdir
=`echo $ac_top_builddir | sed 's,/$,,'`
17310 [\\/]* | ?
:[\\/]* ) # Absolute path.
17311 ac_srcdir
=$srcdir$ac_dir_suffix;
17312 ac_top_srcdir
=$srcdir ;;
17313 *) # Relative path.
17314 ac_srcdir
=$ac_top_builddir$srcdir$ac_dir_suffix
17315 ac_top_srcdir
=$ac_top_builddir$srcdir ;;
17318 # Do not use `cd foo && pwd` to compute absolute paths, because
17319 # the directories may not exist.
17321 .
) ac_abs_builddir
="$ac_dest_dir";;
17323 case "$ac_dest_dir" in
17324 .
) ac_abs_builddir
=`pwd`;;
17325 [\\/]* | ?
:[\\/]* ) ac_abs_builddir
="$ac_dest_dir";;
17326 *) ac_abs_builddir
=`pwd`/"$ac_dest_dir";;
17329 case $ac_abs_builddir in
17330 .
) ac_abs_top_builddir
=${ac_top_builddir}.
;;
17332 case ${ac_top_builddir}.
in
17333 .
) ac_abs_top_builddir
=$ac_abs_builddir;;
17334 [\\/]* | ?
:[\\/]* ) ac_abs_top_builddir
=${ac_top_builddir}.
;;
17335 *) ac_abs_top_builddir
=$ac_abs_builddir/${ac_top_builddir}.
;;
17338 case $ac_abs_builddir in
17339 .
) ac_abs_srcdir
=$ac_srcdir;;
17342 .
) ac_abs_srcdir
=$ac_abs_builddir;;
17343 [\\/]* | ?
:[\\/]* ) ac_abs_srcdir
=$ac_srcdir;;
17344 *) ac_abs_srcdir
=$ac_abs_builddir/$ac_srcdir;;
17347 case $ac_abs_builddir in
17348 .
) ac_abs_top_srcdir
=$ac_top_srcdir;;
17350 case $ac_top_srcdir in
17351 .
) ac_abs_top_srcdir
=$ac_abs_builddir;;
17352 [\\/]* | ?
:[\\/]* ) ac_abs_top_srcdir
=$ac_top_srcdir;;
17353 *) ac_abs_top_srcdir
=$ac_abs_builddir/$ac_top_srcdir;;
17359 [\\/$
]* | ?
:[\\/]* ) ac_rel_source
=$srcdir/$ac_source ;;
17360 *) ac_rel_source
=$ac_top_builddir$srcdir/$ac_source ;;
17363 # Try a symlink, then a hard link, then a copy.
17364 ln -s $ac_rel_source $ac_dest 2>/dev
/null ||
17365 ln $srcdir/$ac_source $ac_dest 2>/dev
/null ||
17366 cp -p $srcdir/$ac_source $ac_dest ||
17367 { { echo "$as_me:$LINENO: error: cannot link or copy $srcdir/$ac_source to $ac_dest" >&5
17368 echo "$as_me: error: cannot link or copy $srcdir/$ac_source to $ac_dest" >&2;}
17369 { (exit 1); exit 1; }; }
17372 cat >>$CONFIG_STATUS <<\_ACEOF
17375 # CONFIG_COMMANDS section.
17377 for ac_file
in : $CONFIG_COMMANDS; do test "x$ac_file" = x
: && continue
17378 ac_dest
=`echo "$ac_file" | sed 's,:.*,,'`
17379 ac_source
=`echo "$ac_file" | sed 's,[^:]*:,,'`
17380 ac_dir
=`(dirname "$ac_dest") 2>/dev/null ||
17381 $as_expr X"$ac_dest" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
17382 X"$ac_dest" : 'X\(//\)[^/]' \| \
17383 X"$ac_dest" : 'X\(//\)$' \| \
17384 X"$ac_dest" : 'X\(/\)' \| \
17385 . : '\(.\)' 2>/dev/null ||
17387 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
17388 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
17389 /^X\(\/\/\)$/{ s//\1/; q; }
17390 /^X\(\/\).*/{ s//\1/; q; }
17392 { if $as_mkdir_p; then
17397 while test ! -d "$as_dir"; do
17398 as_dirs
="$as_dir $as_dirs"
17399 as_dir
=`(dirname "$as_dir") 2>/dev/null ||
17400 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
17401 X"$as_dir" : 'X\(//\)[^/]' \| \
17402 X"$as_dir" : 'X\(//\)$' \| \
17403 X"$as_dir" : 'X\(/\)' \| \
17404 . : '\(.\)' 2>/dev/null ||
17406 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
17407 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
17408 /^X\(\/\/\)$/{ s//\1/; q; }
17409 /^X\(\/\).*/{ s//\1/; q; }
17412 test ! -n "$as_dirs" || mkdir
$as_dirs
17413 fi ||
{ { echo "$as_me:$LINENO: error: cannot create directory \"$ac_dir\"" >&5
17414 echo "$as_me: error: cannot create directory \"$ac_dir\"" >&2;}
17415 { (exit 1); exit 1; }; }; }
17419 if test "$ac_dir" != .
; then
17420 ac_dir_suffix
=/`echo "$ac_dir" | sed 's,^\.[\\/],,'`
17421 # A "../" for each directory in $ac_dir_suffix.
17422 ac_top_builddir
=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,../,g'`
17424 ac_dir_suffix
= ac_top_builddir
=
17428 .
) # No --srcdir option. We are building in place.
17430 if test -z "$ac_top_builddir"; then
17433 ac_top_srcdir
=`echo $ac_top_builddir | sed 's,/$,,'`
17435 [\\/]* | ?
:[\\/]* ) # Absolute path.
17436 ac_srcdir
=$srcdir$ac_dir_suffix;
17437 ac_top_srcdir
=$srcdir ;;
17438 *) # Relative path.
17439 ac_srcdir
=$ac_top_builddir$srcdir$ac_dir_suffix
17440 ac_top_srcdir
=$ac_top_builddir$srcdir ;;
17443 # Do not use `cd foo && pwd` to compute absolute paths, because
17444 # the directories may not exist.
17446 .
) ac_abs_builddir
="$ac_dir";;
17449 .
) ac_abs_builddir
=`pwd`;;
17450 [\\/]* | ?
:[\\/]* ) ac_abs_builddir
="$ac_dir";;
17451 *) ac_abs_builddir
=`pwd`/"$ac_dir";;
17454 case $ac_abs_builddir in
17455 .
) ac_abs_top_builddir
=${ac_top_builddir}.
;;
17457 case ${ac_top_builddir}.
in
17458 .
) ac_abs_top_builddir
=$ac_abs_builddir;;
17459 [\\/]* | ?
:[\\/]* ) ac_abs_top_builddir
=${ac_top_builddir}.
;;
17460 *) ac_abs_top_builddir
=$ac_abs_builddir/${ac_top_builddir}.
;;
17463 case $ac_abs_builddir in
17464 .
) ac_abs_srcdir
=$ac_srcdir;;
17467 .
) ac_abs_srcdir
=$ac_abs_builddir;;
17468 [\\/]* | ?
:[\\/]* ) ac_abs_srcdir
=$ac_srcdir;;
17469 *) ac_abs_srcdir
=$ac_abs_builddir/$ac_srcdir;;
17472 case $ac_abs_builddir in
17473 .
) ac_abs_top_srcdir
=$ac_top_srcdir;;
17475 case $ac_top_srcdir in
17476 .
) ac_abs_top_srcdir
=$ac_abs_builddir;;
17477 [\\/]* | ?
:[\\/]* ) ac_abs_top_srcdir
=$ac_top_srcdir;;
17478 *) ac_abs_top_srcdir
=$ac_abs_builddir/$ac_top_srcdir;;
17483 { echo "$as_me:$LINENO: executing $ac_dest commands" >&5
17484 echo "$as_me: executing $ac_dest commands" >&6;}
17486 depfiles
) test x
"$AMDEP_TRUE" != x
"" ||
for mf
in $CONFIG_FILES; do
17487 # Strip MF so we end up with the name of the file.
17488 mf
=`echo "$mf" | sed -e 's/:.*$//'`
17489 # Check whether this is an Automake generated Makefile or not.
17490 # We used to match only the files named `Makefile.in', but
17491 # some people rename them; so instead we look at the file content.
17492 # Grep'ing the first line is not enough: some people post-process
17493 # each Makefile.in and add a new line on top of each file to say so.
17494 # So let's grep whole file.
17495 if grep '^#.*generated by automake' $mf > /dev
/null
2>&1; then
17496 dirpart
=`(dirname "$mf") 2>/dev/null ||
17497 $as_expr X"$mf" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
17498 X"$mf" : 'X\(//\)[^/]' \| \
17499 X"$mf" : 'X\(//\)$' \| \
17500 X"$mf" : 'X\(/\)' \| \
17501 . : '\(.\)' 2>/dev/null ||
17503 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
17504 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
17505 /^X\(\/\/\)$/{ s//\1/; q; }
17506 /^X\(\/\).*/{ s//\1/; q; }
17511 # Extract the definition of DEPDIR, am__include, and am__quote
17512 # from the Makefile without running `make'.
17513 DEPDIR
=`sed -n 's/^DEPDIR = //p' < "$mf"`
17514 test -z "$DEPDIR" && continue
17515 am__include
=`sed -n 's/^am__include = //p' < "$mf"`
17516 test -z "am__include" && continue
17517 am__quote
=`sed -n 's/^am__quote = //p' < "$mf"`
17518 # When using ansi2knr, U may be empty or an underscore; expand it
17519 U
=`sed -n 's/^U = //p' < "$mf"`
17520 # Find all dependency output files, they are included files with
17521 # $(DEPDIR) in their names. We invoke sed twice because it is the
17522 # simplest approach to changing $(DEPDIR) to its actual value in the
17524 for file in `sed -n "
17525 s/^$am__include $am__quote\(.*(DEPDIR).*\)$am__quote"'$/\1/p' <"$mf" | \
17526 sed -e 's/\$(DEPDIR)/'"$DEPDIR"'/g' -e 's/\$U/'"$U"'/g'`; do
17527 # Make sure the directory exists.
17528 test -f "$dirpart/$file" && continue
17529 fdir
=`(dirname "$file") 2>/dev/null ||
17530 $as_expr X"$file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
17531 X"$file" : 'X\(//\)[^/]' \| \
17532 X"$file" : 'X\(//\)$' \| \
17533 X"$file" : 'X\(/\)' \| \
17534 . : '\(.\)' 2>/dev/null ||
17536 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
17537 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
17538 /^X\(\/\/\)$/{ s//\1/; q; }
17539 /^X\(\/\).*/{ s//\1/; q; }
17541 { if $as_mkdir_p; then
17542 mkdir
-p $dirpart/$fdir
17544 as_dir
=$dirpart/$fdir
17546 while test ! -d "$as_dir"; do
17547 as_dirs
="$as_dir $as_dirs"
17548 as_dir
=`(dirname "$as_dir") 2>/dev/null ||
17549 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
17550 X"$as_dir" : 'X\(//\)[^/]' \| \
17551 X"$as_dir" : 'X\(//\)$' \| \
17552 X"$as_dir" : 'X\(/\)' \| \
17553 . : '\(.\)' 2>/dev/null ||
17555 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
17556 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
17557 /^X\(\/\/\)$/{ s//\1/; q; }
17558 /^X\(\/\).*/{ s//\1/; q; }
17561 test ! -n "$as_dirs" || mkdir
$as_dirs
17562 fi ||
{ { echo "$as_me:$LINENO: error: cannot create directory $dirpart/$fdir" >&5
17563 echo "$as_me: error: cannot create directory $dirpart/$fdir" >&2;}
17564 { (exit 1); exit 1; }; }; }
17566 # echo "creating $dirpart/$file"
17567 echo '# dummy' > "$dirpart/$file"
17571 default
) # Only add multilib support code if we just rebuilt top-level Makefile.
17572 case " $CONFIG_FILES " in
17574 LD
="${ORIGINAL_LD_FOR_MULTILIBS}"
17575 ac_file
=Makefile .
${libgcj_basedir}/..
/config-ml.
in
17578 for ac_multi_file
in $CONFIG_FILES; do
17579 case $ac_multi_file in
17581 grep "^MULTI[^ ]* =" Makefile
>> "$ac_multi_file" ;;
17589 cat >>$CONFIG_STATUS <<\_ACEOF
17591 { (exit 0); exit 0; }
17593 chmod +x
$CONFIG_STATUS
17594 ac_clean_files
=$ac_clean_files_save
17597 # configure is writing to config.log, and then calls config.status.
17598 # config.status does its own redirection, appending to config.log.
17599 # Unfortunately, on DOS this fails, as config.log is still kept open
17600 # by configure, so config.status won't be able to write to it; its
17601 # output is simply discarded. So we exec the FD to /dev/null,
17602 # effectively closing config.log, so it can be properly (re)opened and
17603 # appended to by config.status. When coming back to configure, we
17604 # need to make the FD available again.
17605 if test "$no_create" != yes; then
17607 ac_config_status_args
=
17608 test "$silent" = yes &&
17609 ac_config_status_args
="$ac_config_status_args --quiet"
17611 $SHELL $CONFIG_STATUS $ac_config_status_args || ac_cs_success
=false
17613 # Use ||, not &&, to avoid exiting from the if with $? = 1, which
17614 # would make configure fail if this is the last instruction.
17615 $ac_cs_success ||
{ (exit 1); exit 1; }
17619 # CONFIG_SUBDIRS section.
17621 if test "$no_recursion" != yes; then
17623 # Remove --cache-file and --srcdir arguments so they do not pile up.
17624 ac_sub_configure_args
=
17626 for ac_arg
in $ac_configure_args; do
17627 if test -n "$ac_prev"; then
17632 -cache-file |
--cache-file |
--cache-fil |
--cache-fi \
17633 |
--cache-f |
--cache- |
--cache |
--cach |
--cac |
--ca |
--c)
17634 ac_prev
=cache_file
;;
17635 -cache-file=* |
--cache-file=* |
--cache-fil=* |
--cache-fi=* \
17636 |
--cache-f=* |
--cache-=* |
--cache=* |
--cach=* |
--cac=* |
--ca=* \
17639 --config-cache |
-C)
17641 -srcdir |
--srcdir |
--srcdi |
--srcd |
--src |
--sr)
17643 -srcdir=* |
--srcdir=* |
--srcdi=* |
--srcd=* |
--src=* |
--sr=*)
17645 -prefix |
--prefix |
--prefi |
--pref |
--pre |
--pr |
--p)
17647 -prefix=* |
--prefix=* |
--prefi=* |
--pref=* |
--pre=* |
--pr=* |
--p=*)
17649 *) ac_sub_configure_args
="$ac_sub_configure_args $ac_arg" ;;
17653 # Always prepend --prefix to ensure using the same prefix
17654 # in subdir configurations.
17655 ac_sub_configure_args
="--prefix=$prefix $ac_sub_configure_args"
17658 for ac_dir
in : $subdirs; do test "x$ac_dir" = x
: && continue
17660 # Do not complain, so a configure script can configure whichever
17661 # parts of a large source tree are present.
17662 test -d $srcdir/$ac_dir ||
continue
17664 { echo "$as_me:$LINENO: configuring in $ac_dir" >&5
17665 echo "$as_me: configuring in $ac_dir" >&6;}
17666 { if $as_mkdir_p; then
17671 while test ! -d "$as_dir"; do
17672 as_dirs
="$as_dir $as_dirs"
17673 as_dir
=`(dirname "$as_dir") 2>/dev/null ||
17674 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
17675 X"$as_dir" : 'X\(//\)[^/]' \| \
17676 X"$as_dir" : 'X\(//\)$' \| \
17677 X"$as_dir" : 'X\(/\)' \| \
17678 . : '\(.\)' 2>/dev/null ||
17680 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
17681 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
17682 /^X\(\/\/\)$/{ s//\1/; q; }
17683 /^X\(\/\).*/{ s//\1/; q; }
17686 test ! -n "$as_dirs" || mkdir
$as_dirs
17687 fi ||
{ { echo "$as_me:$LINENO: error: cannot create directory \"$ac_dir\"" >&5
17688 echo "$as_me: error: cannot create directory \"$ac_dir\"" >&2;}
17689 { (exit 1); exit 1; }; }; }
17693 if test "$ac_dir" != .
; then
17694 ac_dir_suffix
=/`echo "$ac_dir" | sed 's,^\.[\\/],,'`
17695 # A "../" for each directory in $ac_dir_suffix.
17696 ac_top_builddir
=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,../,g'`
17698 ac_dir_suffix
= ac_top_builddir
=
17702 .
) # No --srcdir option. We are building in place.
17704 if test -z "$ac_top_builddir"; then
17707 ac_top_srcdir
=`echo $ac_top_builddir | sed 's,/$,,'`
17709 [\\/]* | ?
:[\\/]* ) # Absolute path.
17710 ac_srcdir
=$srcdir$ac_dir_suffix;
17711 ac_top_srcdir
=$srcdir ;;
17712 *) # Relative path.
17713 ac_srcdir
=$ac_top_builddir$srcdir$ac_dir_suffix
17714 ac_top_srcdir
=$ac_top_builddir$srcdir ;;
17717 # Do not use `cd foo && pwd` to compute absolute paths, because
17718 # the directories may not exist.
17720 .
) ac_abs_builddir
="$ac_dir";;
17723 .
) ac_abs_builddir
=`pwd`;;
17724 [\\/]* | ?
:[\\/]* ) ac_abs_builddir
="$ac_dir";;
17725 *) ac_abs_builddir
=`pwd`/"$ac_dir";;
17728 case $ac_abs_builddir in
17729 .
) ac_abs_top_builddir
=${ac_top_builddir}.
;;
17731 case ${ac_top_builddir}.
in
17732 .
) ac_abs_top_builddir
=$ac_abs_builddir;;
17733 [\\/]* | ?
:[\\/]* ) ac_abs_top_builddir
=${ac_top_builddir}.
;;
17734 *) ac_abs_top_builddir
=$ac_abs_builddir/${ac_top_builddir}.
;;
17737 case $ac_abs_builddir in
17738 .
) ac_abs_srcdir
=$ac_srcdir;;
17741 .
) ac_abs_srcdir
=$ac_abs_builddir;;
17742 [\\/]* | ?
:[\\/]* ) ac_abs_srcdir
=$ac_srcdir;;
17743 *) ac_abs_srcdir
=$ac_abs_builddir/$ac_srcdir;;
17746 case $ac_abs_builddir in
17747 .
) ac_abs_top_srcdir
=$ac_top_srcdir;;
17749 case $ac_top_srcdir in
17750 .
) ac_abs_top_srcdir
=$ac_abs_builddir;;
17751 [\\/]* | ?
:[\\/]* ) ac_abs_top_srcdir
=$ac_top_srcdir;;
17752 *) ac_abs_top_srcdir
=$ac_abs_builddir/$ac_top_srcdir;;
17759 # Check for guested configure; otherwise get Cygnus style configure.
17760 if test -f $ac_srcdir/configure.gnu
; then
17761 ac_sub_configure
="$SHELL '$ac_srcdir/configure.gnu'"
17762 elif test -f $ac_srcdir/configure
; then
17763 ac_sub_configure
="$SHELL '$ac_srcdir/configure'"
17764 elif test -f $ac_srcdir/configure.
in; then
17765 ac_sub_configure
=$ac_configure
17767 { echo "$as_me:$LINENO: WARNING: no configuration information is in $ac_dir" >&5
17768 echo "$as_me: WARNING: no configuration information is in $ac_dir" >&2;}
17772 # The recursion is here.
17773 if test -n "$ac_sub_configure"; then
17774 # Make the cache file name correct relative to the subdirectory.
17775 case $cache_file in
17776 [\\/]* | ?
:[\\/]* ) ac_sub_cache_file
=$cache_file ;;
17777 *) # Relative path.
17778 ac_sub_cache_file
=$ac_top_builddir$cache_file ;;
17781 { echo "$as_me:$LINENO: running $ac_sub_configure $ac_sub_configure_args --cache-file=$ac_sub_cache_file --srcdir=$ac_srcdir" >&5
17782 echo "$as_me: running $ac_sub_configure $ac_sub_configure_args --cache-file=$ac_sub_cache_file --srcdir=$ac_srcdir" >&6;}
17783 # The eval makes quoting arguments work.
17784 eval $ac_sub_configure $ac_sub_configure_args \
17785 --cache-file=$ac_sub_cache_file --srcdir=$ac_srcdir ||
17786 { { echo "$as_me:$LINENO: error: $ac_sub_configure failed for $ac_dir" >&5
17787 echo "$as_me: error: $ac_sub_configure failed for $ac_dir" >&2;}
17788 { (exit 1); exit 1; }; }