2 # Guess values for system-dependent variables and create Makefiles.
3 # Generated by GNU Autoconf 2.59 for libjava version-unused.
5 # Copyright (C) 2003 Free Software Foundation, Inc.
6 # This configure script is free software; the Free Software Foundation
7 # gives unlimited permission to copy, distribute and modify it.
8 ## --------------------- ##
9 ## M4sh Initialization. ##
10 ## --------------------- ##
12 # Be Bourne compatible
13 if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then
16 # Zsh 3.x and 4.x performs word splitting on ${1+"$@"}, which
17 # is contrary to our usage. Disable this feature.
18 alias -g '${1+"$@"}'='"$@"'
19 elif test -n "${BASH_VERSION+set}" && (set -o posix) >/dev/null 2>&1; then
22 DUALCASE=1; export DUALCASE # for MKS sh
24 # Support unset when possible.
25 if ( (MAIL=60; unset MAIL) || exit) >/dev/null 2>&1; then
32 # Work around bugs in pre-3.0 UWIN ksh.
33 $as_unset ENV MAIL MAILPATH
40 LANG LANGUAGE LC_ADDRESS LC_ALL LC_COLLATE LC_CTYPE LC_IDENTIFICATION \
41 LC_MEASUREMENT LC_MESSAGES LC_MONETARY LC_NAME LC_NUMERIC LC_PAPER \
44 if (set +x; test -z "`(eval $as_var=C; export $as_var) 2>&1`"); then
45 eval $as_var=C; export $as_var
51 # Required to use basename.
52 if expr a : '\(a\)' >/dev/null 2>&1; then
58 if (basename /) >/dev/null 2>&1 && test "X`basename / 2>&1`" = "X/"; then
65 # Name of the executable.
66 as_me=`$as_basename "$0" ||
67 $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
68 X"$0" : 'X\(//\)$' \| \
69 X"$0" : 'X\(/\)$' \| \
70 . : '\(.\)' 2>/dev/null ||
72 sed '/^.*\/\([^/][^/]*\)\/*$/{ s//\1/; q; }
73 /^X\/\(\/\/\)$/{ s//\1/; q; }
74 /^X\/\(\/\).*/{ s//\1/; q; }
78 # PATH needs CR, and LINENO needs CR and PATH.
79 # Avoid depending upon Character Ranges.
80 as_cr_letters='abcdefghijklmnopqrstuvwxyz'
81 as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
82 as_cr_Letters=$as_cr_letters$as_cr_LETTERS
83 as_cr_digits='0123456789'
84 as_cr_alnum=$as_cr_Letters$as_cr_digits
86 # The user is always right.
87 if test "${PATH_SEPARATOR+set}" != set; then
88 echo "#! /bin/sh" >conf$$.sh
89 echo "exit 0" >>conf$$.sh
91 if (PATH="/nonexistent;."; conf$$.sh) >/dev/null 2>&1; then
102 as_lineno_3=`(expr $as_lineno_1 + 1) 2>/dev/null`
103 test "x$as_lineno_1" != "x$as_lineno_2" &&
104 test "x$as_lineno_3" = "x$as_lineno_2" || {
105 # Find who we are. Look in the path if we contain no path at all
108 *[\\/]* ) as_myself=$0 ;;
109 *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
113 test -z "$as_dir" && as_dir=.
114 test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
119 # We did not find ourselves, most probably we were run as `sh COMMAND'
120 # in which case we are not to be found in the path.
121 if test "x$as_myself" = x; then
124 if test ! -f "$as_myself"; then
125 { echo "$as_me: error: cannot find myself; rerun with an absolute path" >&2
126 { (exit 1); exit 1; }; }
128 case $CONFIG_SHELL in
130 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
131 for as_dir in /bin$PATH_SEPARATOR/usr/bin$PATH_SEPARATOR$PATH
134 test -z "$as_dir" && as_dir=.
135 for as_base in sh bash ksh sh5; do
138 if ("$as_dir/$as_base" -c '
141 as_lineno_3=`(expr $as_lineno_1 + 1) 2>/dev/null`
142 test "x$as_lineno_1" != "x$as_lineno_2" &&
143 test "x$as_lineno_3" = "x$as_lineno_2" ') 2>/dev/null; then
144 $as_unset BASH_ENV || test "${BASH_ENV+set}" != set || { BASH_ENV=; export BASH_ENV; }
145 $as_unset ENV || test "${ENV+set}" != set || { ENV=; export ENV; }
146 CONFIG_SHELL=$as_dir/$as_base
148 exec "$CONFIG_SHELL" "$0" ${1+"$@"}
156 # Create $as_me.lineno as a copy of $as_myself, but with $LINENO
157 # uniformly replaced by the line number. The first 'sed' inserts a
158 # line-number line before each line; the second 'sed' does the real
159 # work. The second script uses 'N' to pair each line-number line
160 # with the numbered line, and appends trailing '-' during
161 # substitution so that $LINENO is not a special case at line end.
162 # (Raja R Harinath suggested sed '=', and Paul Eggert wrote the
163 # second 'sed' script. Blame Lee E. McMahon for sed's syntax. :-)
164 sed '=' <$as_myself |
169 s,^\(['$as_cr_digits']*\)\(.*\)[$]LINENO\([^'$as_cr_alnum'_]\),\1\2\1\3,
172 s,^['$as_cr_digits']*\n,,
174 chmod +x $as_me.lineno ||
175 { echo "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2
176 { (exit 1); exit 1; }; }
178 # Don't try to exec as it changes $[0], causing all sort of problems
179 # (the dirname of $[0] is not the place where we might find the
180 # original and so on. Autoconf is especially sensible to this).
182 # Exit status is that of the last command.
187 case `echo "testing\c"; echo 1,2,3`,`echo -n testing; echo 1,2,3` in
188 *c*,-n*) ECHO_N= ECHO_C='
190 *c*,* ) ECHO_N=-n ECHO_C= ECHO_T= ;;
191 *) ECHO_N= ECHO_C='\c' ECHO_T= ;;
194 if expr a : '\(a\)' >/dev/null 2>&1; then
200 rm -f conf$$ conf$$.exe conf$$.file
202 if ln -s conf$$.file conf$$ 2>/dev/null; then
203 # We could just check for DJGPP; but this test a) works b) is more generic
204 # and c) will remain valid once DJGPP supports symlinks (DJGPP 2.04).
205 if test -f conf$$.exe; then
206 # Don't use ln at all; we don't have any links
211 elif ln conf$$.file conf$$ 2>/dev/null; then
216 rm -f conf$$ conf$$.exe conf$$.file
218 if mkdir -p . 2>/dev/null; then
221 test -d ./-p && rmdir ./-p
225 as_executable_p="test -f"
227 # Sed expression to map a string onto a valid CPP name.
228 as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
230 # Sed expression to map a string onto a valid variable name.
231 as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
235 # We need space, tab and new line, in precisely that order.
245 # hostname on some systems (SVR3.2, Linux) returns a bogus exit status,
246 # so uname gets run too.
247 ac_hostname=`(hostname || uname -n) 2>/dev/null | sed 1q`
254 ac_default_prefix=/usr/local
255 ac_config_libobj_dir=.
260 SHELL=${CONFIG_SHELL-/bin/sh}
262 # Maximum number of lines to put in a shell here document.
263 # This variable seems obsolete. It should probably be removed, and
264 # only ac_max_sed_lines should be used.
265 : ${ac_max_here_lines=38}
267 # Identity of this package.
268 PACKAGE_NAME='libjava'
269 PACKAGE_TARNAME='libjava'
270 PACKAGE_VERSION='version-unused'
271 PACKAGE_STRING='libjava version-unused'
274 ac_unique_file="java/lang/System.java"
275 ac_subdirs_all="$ac_subdirs_all classpath libltdl"
276 # Factoring default headers for most tests.
277 ac_includes_default="\
280 # include <sys/types.h>
283 # include <sys/stat.h>
294 # if !STDC_HEADERS && HAVE_MEMORY_H
300 # include <strings.h>
303 # include <inttypes.h>
313 ac_subst_vars='SHELL PATH_SEPARATOR PACKAGE_NAME PACKAGE_TARNAME PACKAGE_VERSION PACKAGE_STRING PACKAGE_BUGREPORT exec_prefix prefix program_transform_name bindir sbindir libexecdir datadir sysconfdir sharedstatedir localstatedir libdir includedir oldincludedir infodir mandir build_alias host_alias target_alias DEFS ECHO_C ECHO_N ECHO_T LIBS build build_cpu build_vendor build_os build_libsubdir build_subdir host_subdir target_subdir libgcj_basedir host host_cpu host_vendor host_os target target_cpu target_vendor target_os target_noncanonical LN_S mkinstalldirs CC ac_ct_CC EXEEXT OBJEXT CXX ac_ct_CXX CFLAGS CXXFLAGS LDFLAGS INSTALL_PROGRAM INSTALL_SCRIPT INSTALL_DATA CYGPATH_W PACKAGE VERSION ACLOCAL AUTOCONF AUTOMAKE AUTOHEADER MAKEINFO install_sh STRIP ac_ct_STRIP INSTALL_STRIP_PROGRAM mkdir_p AWK SET_MAKE am__leading_dot AMTAR am__tar am__untar DEPDIR am__include am__quote AMDEP_TRUE AMDEP_FALSE AMDEPBACKSLASH CCDEPMODE am__fastdepCC_TRUE am__fastdepCC_FALSE CXXDEPMODE am__fastdepCXX_TRUE am__fastdepCXX_FALSE AS ac_ct_AS LD ac_ct_LD AR ac_ct_AR RANLIB ac_ct_RANLIB JAR ZIP UNZIP BASH_JAR_TRUE BASH_JAR_FALSE MAINTAINER_MODE_TRUE MAINTAINER_MODE_FALSE MAINT LIBGCJ_CFLAGS LIBGCJ_CXXFLAGS LIBGCJ_JAVAFLAGS LIBGCJ_LD_SYMBOLIC LIBGCJDEBUG TOOLKIT XLIB_AWT_TRUE XLIB_AWT_FALSE GCJH INCLTDL LIBLTDL DIRLTDL LIBTOOL CXXCPP CPPFLAGS GCJ GCJFLAGS GCJDEPMODE am__fastdepGCJ_TRUE am__fastdepGCJ_FALSE subdirs TESTSUBDIR_TRUE TESTSUBDIR_FALSE JAVA_HOME_SET_TRUE JAVA_HOME_SET_FALSE JAVA_HOME INTERPRETER LIBFFI LIBFFIINCS PLATFORM_INNER_NAT_HDRS CPP EGREP USING_WIN32_PLATFORM_TRUE USING_WIN32_PLATFORM_FALSE USING_POSIX_PLATFORM_TRUE USING_POSIX_PLATFORM_FALSE USING_DARWIN_CRT_TRUE USING_DARWIN_CRT_FALSE SYSTEMSPEC LIBGCJTESTSPEC ZLIBSPEC ZLIBTESTSPEC X_CFLAGS X_PRE_LIBS X_LIBS X_EXTRA_LIBS extra_ldflags_libjava GCLIBS GCINCS GCDEPS GCSPEC JC1GCSPEC GCTESTSPEC USING_BOEHMGC_TRUE USING_BOEHMGC_FALSE USING_NOGC_TRUE USING_NOGC_FALSE THREADLIBS THREADINCS THREADDEPS THREADSPEC THREADSTARTFILESPEC THREADLDFLAGS THREADCXXFLAGS USING_POSIX_THREADS_TRUE USING_POSIX_THREADS_FALSE USING_WIN32_THREADS_TRUE USING_WIN32_THREADS_FALSE USING_NO_THREADS_TRUE USING_NO_THREADS_FALSE HASH_SYNC_SPEC USING_GCC_TRUE USING_GCC_FALSE LIBICONV LTLIBICONV PKG_CONFIG GTK_CFLAGS GTK_LIBS GLIB_CFLAGS GLIB_LIBS LIBART_CFLAGS LIBART_LIBS CLASSPATH_SEPARATOR ac_ct_GCJ ZLIBS SYS_ZLIBS ZINCS DIVIDESPEC CHECKREFSPEC EXCEPTIONSPEC BACKTRACESPEC IEEESPEC NATIVE_TRUE NATIVE_FALSE NEEDS_DATA_START_TRUE NEEDS_DATA_START_FALSE GCC_UNWIND_INCLUDE toolexecdir toolexecmainlibdir toolexeclibdir dbexecdir GCJVERSION gxx_include_dir libstdcxx_incdir ALLOCA PERL SYSDEP_SOURCES LD_START_STATIC_SPEC LD_FINISH_STATIC_SPEC here LIBOBJS LTLIBOBJS'
316 # Initialize some variables set by options.
318 ac_init_version=false
319 # The variables have the same names as the options, with
320 # dashes changed to underlines.
328 program_transform_name=s,x,x,
336 # Installation directory options.
337 # These are left unexpanded so users can "make install exec_prefix=/foo"
338 # and all the variables that are supposed to be based on exec_prefix
339 # by default will actually change.
340 # Use braces instead of parens because sh, perl, etc. also accept them.
341 bindir='${exec_prefix}/bin'
342 sbindir='${exec_prefix}/sbin'
343 libexecdir='${exec_prefix}/libexec'
344 datadir='${prefix}/share'
345 sysconfdir='${prefix}/etc'
346 sharedstatedir='${prefix}/com'
347 localstatedir='${prefix}/var'
348 libdir='${exec_prefix}/lib'
349 includedir='${prefix}/include'
350 oldincludedir='/usr/include'
351 infodir='${prefix}/info'
352 mandir='${prefix}/man'
357 # If the previous option needs an argument, assign it.
358 if test -n "$ac_prev"; then
359 eval "$ac_prev=\$ac_option"
364 ac_optarg=`expr "x$ac_option" : 'x[^=]*=\(.*\)'`
366 # Accept the important Cygnus configure options, so we can diagnose typos.
370 -bindir | --bindir | --bindi | --bind | --bin | --bi)
372 -bindir=* | --bindir=* | --bindi=* | --bind=* | --bin=* | --bi=*)
375 -build | --build | --buil | --bui | --bu)
376 ac_prev=build_alias ;;
377 -build=* | --build=* | --buil=* | --bui=* | --bu=*)
378 build_alias=$ac_optarg ;;
380 -cache-file | --cache-file | --cache-fil | --cache-fi \
381 | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c)
382 ac_prev=cache_file ;;
383 -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \
384 | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* | --c=*)
385 cache_file=$ac_optarg ;;
388 cache_file=config.cache ;;
390 -datadir | --datadir | --datadi | --datad | --data | --dat | --da)
392 -datadir=* | --datadir=* | --datadi=* | --datad=* | --data=* | --dat=* \
394 datadir=$ac_optarg ;;
396 -disable-* | --disable-*)
397 ac_feature=`expr "x$ac_option" : 'x-*disable-\(.*\)'`
398 # Reject names that are not valid shell variable names.
399 expr "x$ac_feature" : ".*[^-_$as_cr_alnum]" >/dev/null &&
400 { echo "$as_me: error: invalid feature name: $ac_feature" >&2
401 { (exit 1); exit 1; }; }
402 ac_feature=`echo $ac_feature | sed 's/-/_/g'`
403 eval "enable_$ac_feature=no" ;;
405 -enable-* | --enable-*)
406 ac_feature=`expr "x$ac_option" : 'x-*enable-\([^=]*\)'`
407 # Reject names that are not valid shell variable names.
408 expr "x$ac_feature" : ".*[^-_$as_cr_alnum]" >/dev/null &&
409 { echo "$as_me: error: invalid feature name: $ac_feature" >&2
410 { (exit 1); exit 1; }; }
411 ac_feature=`echo $ac_feature | sed 's/-/_/g'`
413 *=*) ac_optarg=`echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"`;;
416 eval "enable_$ac_feature='$ac_optarg'" ;;
418 -exec-prefix | --exec_prefix | --exec-prefix | --exec-prefi \
419 | --exec-pref | --exec-pre | --exec-pr | --exec-p | --exec- \
420 | --exec | --exe | --ex)
421 ac_prev=exec_prefix ;;
422 -exec-prefix=* | --exec_prefix=* | --exec-prefix=* | --exec-prefi=* \
423 | --exec-pref=* | --exec-pre=* | --exec-pr=* | --exec-p=* | --exec-=* \
424 | --exec=* | --exe=* | --ex=*)
425 exec_prefix=$ac_optarg ;;
427 -gas | --gas | --ga | --g)
428 # Obsolete; use --with-gas.
431 -help | --help | --hel | --he | -h)
433 -help=r* | --help=r* | --hel=r* | --he=r* | -hr*)
434 ac_init_help=recursive ;;
435 -help=s* | --help=s* | --hel=s* | --he=s* | -hs*)
436 ac_init_help=short ;;
438 -host | --host | --hos | --ho)
439 ac_prev=host_alias ;;
440 -host=* | --host=* | --hos=* | --ho=*)
441 host_alias=$ac_optarg ;;
443 -includedir | --includedir | --includedi | --included | --include \
444 | --includ | --inclu | --incl | --inc)
445 ac_prev=includedir ;;
446 -includedir=* | --includedir=* | --includedi=* | --included=* | --include=* \
447 | --includ=* | --inclu=* | --incl=* | --inc=*)
448 includedir=$ac_optarg ;;
450 -infodir | --infodir | --infodi | --infod | --info | --inf)
452 -infodir=* | --infodir=* | --infodi=* | --infod=* | --info=* | --inf=*)
453 infodir=$ac_optarg ;;
455 -libdir | --libdir | --libdi | --libd)
457 -libdir=* | --libdir=* | --libdi=* | --libd=*)
460 -libexecdir | --libexecdir | --libexecdi | --libexecd | --libexec \
461 | --libexe | --libex | --libe)
462 ac_prev=libexecdir ;;
463 -libexecdir=* | --libexecdir=* | --libexecdi=* | --libexecd=* | --libexec=* \
464 | --libexe=* | --libex=* | --libe=*)
465 libexecdir=$ac_optarg ;;
467 -localstatedir | --localstatedir | --localstatedi | --localstated \
468 | --localstate | --localstat | --localsta | --localst \
469 | --locals | --local | --loca | --loc | --lo)
470 ac_prev=localstatedir ;;
471 -localstatedir=* | --localstatedir=* | --localstatedi=* | --localstated=* \
472 | --localstate=* | --localstat=* | --localsta=* | --localst=* \
473 | --locals=* | --local=* | --loca=* | --loc=* | --lo=*)
474 localstatedir=$ac_optarg ;;
476 -mandir | --mandir | --mandi | --mand | --man | --ma | --m)
478 -mandir=* | --mandir=* | --mandi=* | --mand=* | --man=* | --ma=* | --m=*)
482 # Obsolete; use --without-fp.
485 -no-create | --no-create | --no-creat | --no-crea | --no-cre \
486 | --no-cr | --no-c | -n)
489 -no-recursion | --no-recursion | --no-recursio | --no-recursi \
490 | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r)
493 -oldincludedir | --oldincludedir | --oldincludedi | --oldincluded \
494 | --oldinclude | --oldinclud | --oldinclu | --oldincl | --oldinc \
495 | --oldin | --oldi | --old | --ol | --o)
496 ac_prev=oldincludedir ;;
497 -oldincludedir=* | --oldincludedir=* | --oldincludedi=* | --oldincluded=* \
498 | --oldinclude=* | --oldinclud=* | --oldinclu=* | --oldincl=* | --oldinc=* \
499 | --oldin=* | --oldi=* | --old=* | --ol=* | --o=*)
500 oldincludedir=$ac_optarg ;;
502 -prefix | --prefix | --prefi | --pref | --pre | --pr | --p)
504 -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*)
507 -program-prefix | --program-prefix | --program-prefi | --program-pref \
508 | --program-pre | --program-pr | --program-p)
509 ac_prev=program_prefix ;;
510 -program-prefix=* | --program-prefix=* | --program-prefi=* \
511 | --program-pref=* | --program-pre=* | --program-pr=* | --program-p=*)
512 program_prefix=$ac_optarg ;;
514 -program-suffix | --program-suffix | --program-suffi | --program-suff \
515 | --program-suf | --program-su | --program-s)
516 ac_prev=program_suffix ;;
517 -program-suffix=* | --program-suffix=* | --program-suffi=* \
518 | --program-suff=* | --program-suf=* | --program-su=* | --program-s=*)
519 program_suffix=$ac_optarg ;;
521 -program-transform-name | --program-transform-name \
522 | --program-transform-nam | --program-transform-na \
523 | --program-transform-n | --program-transform- \
524 | --program-transform | --program-transfor \
525 | --program-transfo | --program-transf \
526 | --program-trans | --program-tran \
527 | --progr-tra | --program-tr | --program-t)
528 ac_prev=program_transform_name ;;
529 -program-transform-name=* | --program-transform-name=* \
530 | --program-transform-nam=* | --program-transform-na=* \
531 | --program-transform-n=* | --program-transform-=* \
532 | --program-transform=* | --program-transfor=* \
533 | --program-transfo=* | --program-transf=* \
534 | --program-trans=* | --program-tran=* \
535 | --progr-tra=* | --program-tr=* | --program-t=*)
536 program_transform_name=$ac_optarg ;;
538 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
539 | -silent | --silent | --silen | --sile | --sil)
542 -sbindir | --sbindir | --sbindi | --sbind | --sbin | --sbi | --sb)
544 -sbindir=* | --sbindir=* | --sbindi=* | --sbind=* | --sbin=* \
546 sbindir=$ac_optarg ;;
548 -sharedstatedir | --sharedstatedir | --sharedstatedi \
549 | --sharedstated | --sharedstate | --sharedstat | --sharedsta \
550 | --sharedst | --shareds | --shared | --share | --shar \
552 ac_prev=sharedstatedir ;;
553 -sharedstatedir=* | --sharedstatedir=* | --sharedstatedi=* \
554 | --sharedstated=* | --sharedstate=* | --sharedstat=* | --sharedsta=* \
555 | --sharedst=* | --shareds=* | --shared=* | --share=* | --shar=* \
557 sharedstatedir=$ac_optarg ;;
559 -site | --site | --sit)
561 -site=* | --site=* | --sit=*)
564 -srcdir | --srcdir | --srcdi | --srcd | --src | --sr)
566 -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*)
569 -sysconfdir | --sysconfdir | --sysconfdi | --sysconfd | --sysconf \
570 | --syscon | --sysco | --sysc | --sys | --sy)
571 ac_prev=sysconfdir ;;
572 -sysconfdir=* | --sysconfdir=* | --sysconfdi=* | --sysconfd=* | --sysconf=* \
573 | --syscon=* | --sysco=* | --sysc=* | --sys=* | --sy=*)
574 sysconfdir=$ac_optarg ;;
576 -target | --target | --targe | --targ | --tar | --ta | --t)
577 ac_prev=target_alias ;;
578 -target=* | --target=* | --targe=* | --targ=* | --tar=* | --ta=* | --t=*)
579 target_alias=$ac_optarg ;;
581 -v | -verbose | --verbose | --verbos | --verbo | --verb)
584 -version | --version | --versio | --versi | --vers | -V)
588 ac_package=`expr "x$ac_option" : 'x-*with-\([^=]*\)'`
589 # Reject names that are not valid shell variable names.
590 expr "x$ac_package" : ".*[^-_$as_cr_alnum]" >/dev/null &&
591 { echo "$as_me: error: invalid package name: $ac_package" >&2
592 { (exit 1); exit 1; }; }
593 ac_package=`echo $ac_package| sed 's/-/_/g'`
595 *=*) ac_optarg=`echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"`;;
598 eval "with_$ac_package='$ac_optarg'" ;;
600 -without-* | --without-*)
601 ac_package=`expr "x$ac_option" : 'x-*without-\(.*\)'`
602 # Reject names that are not valid shell variable names.
603 expr "x$ac_package" : ".*[^-_$as_cr_alnum]" >/dev/null &&
604 { echo "$as_me: error: invalid package name: $ac_package" >&2
605 { (exit 1); exit 1; }; }
606 ac_package=`echo $ac_package | sed 's/-/_/g'`
607 eval "with_$ac_package=no" ;;
610 # Obsolete; use --with-x.
613 -x-includes | --x-includes | --x-include | --x-includ | --x-inclu \
614 | --x-incl | --x-inc | --x-in | --x-i)
615 ac_prev=x_includes ;;
616 -x-includes=* | --x-includes=* | --x-include=* | --x-includ=* | --x-inclu=* \
617 | --x-incl=* | --x-inc=* | --x-in=* | --x-i=*)
618 x_includes=$ac_optarg ;;
620 -x-libraries | --x-libraries | --x-librarie | --x-librari \
621 | --x-librar | --x-libra | --x-libr | --x-lib | --x-li | --x-l)
622 ac_prev=x_libraries ;;
623 -x-libraries=* | --x-libraries=* | --x-librarie=* | --x-librari=* \
624 | --x-librar=* | --x-libra=* | --x-libr=* | --x-lib=* | --x-li=* | --x-l=*)
625 x_libraries=$ac_optarg ;;
627 -*) { echo "$as_me: error: unrecognized option: $ac_option
628 Try \`$0 --help' for more information." >&2
629 { (exit 1); exit 1; }; }
633 ac_envvar=`expr "x$ac_option" : 'x\([^=]*\)='`
634 # Reject names that are not valid shell variable names.
635 expr "x$ac_envvar" : ".*[^_$as_cr_alnum]" >/dev/null &&
636 { echo "$as_me: error: invalid variable name: $ac_envvar" >&2
637 { (exit 1); exit 1; }; }
638 ac_optarg=`echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"`
639 eval "$ac_envvar='$ac_optarg'"
643 # FIXME: should be removed in autoconf 3.0.
644 echo "$as_me: WARNING: you should use --build, --host, --target" >&2
645 expr "x$ac_option" : ".*[^-._$as_cr_alnum]" >/dev/null &&
646 echo "$as_me: WARNING: invalid host type: $ac_option" >&2
647 : ${build_alias=$ac_option} ${host_alias=$ac_option} ${target_alias=$ac_option}
653 if test -n "$ac_prev"; then
654 ac_option=--`echo $ac_prev | sed 's/_/-/g'`
655 { echo "$as_me: error: missing argument to $ac_option" >&2
656 { (exit 1); exit 1; }; }
659 # Be sure to have absolute paths.
660 for ac_var in exec_prefix prefix
662 eval ac_val=$`echo $ac_var`
664 [\\/$]* | ?:[\\/]* | NONE | '' ) ;;
665 *) { echo "$as_me: error: expected an absolute directory name for --$ac_var: $ac_val" >&2
666 { (exit 1); exit 1; }; };;
670 # Be sure to have absolute paths.
671 for ac_var in bindir sbindir libexecdir datadir sysconfdir sharedstatedir \
672 localstatedir libdir includedir oldincludedir infodir mandir
674 eval ac_val=$`echo $ac_var`
676 [\\/$]* | ?:[\\/]* ) ;;
677 *) { echo "$as_me: error: expected an absolute directory name for --$ac_var: $ac_val" >&2
678 { (exit 1); exit 1; }; };;
682 # There might be people who depend on the old broken behavior: `$host'
683 # used to hold the argument of --host etc.
684 # FIXME: To remove some day.
689 # FIXME: To remove some day.
690 if test "x$host_alias" != x; then
691 if test "x$build_alias" = x; then
692 cross_compiling=maybe
693 echo "$as_me: WARNING: If you wanted to set the --build type, don't use --host.
694 If a cross compiler is detected then cross compile mode will be used." >&2
695 elif test "x$build_alias" != "x$host_alias"; then
701 test -n "$host_alias" && ac_tool_prefix=$host_alias-
703 test "$silent" = yes && exec 6>/dev/null
706 # Find the source files, if location was not specified.
707 if test -z "$srcdir"; then
708 ac_srcdir_defaulted=yes
709 # Try the directory containing this script, then its parent.
710 ac_confdir=`(dirname "$0") 2>/dev/null ||
711 $as_expr X"$0" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
712 X"$0" : 'X\(//\)[^/]' \| \
713 X"$0" : 'X\(//\)$' \| \
714 X"$0" : 'X\(/\)' \| \
715 . : '\(.\)' 2>/dev/null ||
717 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
718 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
719 /^X\(\/\/\)$/{ s//\1/; q; }
720 /^X\(\/\).*/{ s//\1/; q; }
723 if test ! -r $srcdir/$ac_unique_file; then
727 ac_srcdir_defaulted=no
729 if test ! -r $srcdir/$ac_unique_file; then
730 if test "$ac_srcdir_defaulted" = yes; then
731 { echo "$as_me: error: cannot find sources ($ac_unique_file) in $ac_confdir or .." >&2
732 { (exit 1); exit 1; }; }
734 { echo "$as_me: error: cannot find sources ($ac_unique_file) in $srcdir" >&2
735 { (exit 1); exit 1; }; }
738 (cd $srcdir && test -r ./$ac_unique_file) 2>/dev/null ||
739 { echo "$as_me: error: sources are in $srcdir, but \`cd $srcdir' does not work" >&2
740 { (exit 1); exit 1; }; }
741 srcdir=`echo "$srcdir" | sed 's%\([^\\/]\)[\\/]*$%\1%'`
742 ac_env_build_alias_set=${build_alias+set}
743 ac_env_build_alias_value=$build_alias
744 ac_cv_env_build_alias_set=${build_alias+set}
745 ac_cv_env_build_alias_value=$build_alias
746 ac_env_host_alias_set=${host_alias+set}
747 ac_env_host_alias_value=$host_alias
748 ac_cv_env_host_alias_set=${host_alias+set}
749 ac_cv_env_host_alias_value=$host_alias
750 ac_env_target_alias_set=${target_alias+set}
751 ac_env_target_alias_value=$target_alias
752 ac_cv_env_target_alias_set=${target_alias+set}
753 ac_cv_env_target_alias_value=$target_alias
754 ac_env_CXXCPP_set=${CXXCPP+set}
755 ac_env_CXXCPP_value=$CXXCPP
756 ac_cv_env_CXXCPP_set=${CXXCPP+set}
757 ac_cv_env_CXXCPP_value=$CXXCPP
758 ac_env_CPPFLAGS_set=${CPPFLAGS+set}
759 ac_env_CPPFLAGS_value=$CPPFLAGS
760 ac_cv_env_CPPFLAGS_set=${CPPFLAGS+set}
761 ac_cv_env_CPPFLAGS_value=$CPPFLAGS
762 ac_env_CPP_set=${CPP+set}
763 ac_env_CPP_value=$CPP
764 ac_cv_env_CPP_set=${CPP+set}
765 ac_cv_env_CPP_value=$CPP
768 # Report the --help message.
770 if test "$ac_init_help" = "long"; then
771 # Omit some internal or obsolete options to make the list less imposing.
772 # This message is too long to be a string in the A/UX 3.1 sh.
774 \`configure' configures libjava version-unused to adapt to many kinds of systems.
776 Usage: $0 [OPTION]... [VAR=VALUE]...
778 To assign environment variables (e.g., CC, CFLAGS...), specify them as
779 VAR=VALUE. See below for descriptions of some of the useful variables.
781 Defaults for the options are specified in brackets.
784 -h, --help display this help and exit
785 --help=short display options specific to this package
786 --help=recursive display the short help of all the included packages
787 -V, --version display version information and exit
788 -q, --quiet, --silent do not print \`checking...' messages
789 --cache-file=FILE cache test results in FILE [disabled]
790 -C, --config-cache alias for \`--cache-file=config.cache'
791 -n, --no-create do not create output files
792 --srcdir=DIR find the sources in DIR [configure dir or \`..']
797 Installation directories:
798 --prefix=PREFIX install architecture-independent files in PREFIX
800 --exec-prefix=EPREFIX install architecture-dependent files in EPREFIX
803 By default, \`make install' will install all the files in
804 \`$ac_default_prefix/bin', \`$ac_default_prefix/lib' etc. You can specify
805 an installation prefix other than \`$ac_default_prefix' using \`--prefix',
806 for instance \`--prefix=\$HOME'.
808 For better control, use the options below.
810 Fine tuning of the installation directories:
811 --bindir=DIR user executables [EPREFIX/bin]
812 --sbindir=DIR system admin executables [EPREFIX/sbin]
813 --libexecdir=DIR program executables [EPREFIX/libexec]
814 --datadir=DIR read-only architecture-independent data [PREFIX/share]
815 --sysconfdir=DIR read-only single-machine data [PREFIX/etc]
816 --sharedstatedir=DIR modifiable architecture-independent data [PREFIX/com]
817 --localstatedir=DIR modifiable single-machine data [PREFIX/var]
818 --libdir=DIR object code libraries [EPREFIX/lib]
819 --includedir=DIR C header files [PREFIX/include]
820 --oldincludedir=DIR C header files for non-gcc [/usr/include]
821 --infodir=DIR info documentation [PREFIX/info]
822 --mandir=DIR man documentation [PREFIX/man]
828 --program-prefix=PREFIX prepend PREFIX to installed program names
829 --program-suffix=SUFFIX append SUFFIX to installed program names
830 --program-transform-name=PROGRAM run sed PROGRAM on installed program names
833 --x-includes=DIR X include files are in DIR
834 --x-libraries=DIR X library files are in DIR
837 --build=BUILD configure for building on BUILD [guessed]
838 --host=HOST cross-compile to build programs to run on HOST [BUILD]
839 --target=TARGET configure for building compilers for TARGET [HOST]
843 if test -n "$ac_init_help"; then
844 case $ac_init_help in
845 short | recursive ) echo "Configuration of libjava version-unused:";;
850 --disable-FEATURE do not include FEATURE (same as --enable-FEATURE=no)
851 --enable-FEATURE[=ARG] include FEATURE [ARG=yes]
852 --enable-version-specific-runtime-libs
853 specify that runtime libraries should be installed
854 in a compiler-specific directory
855 --enable-multilib build many library versions (default)
856 --enable-plugin build gcjwebplugin web browser plugin
857 --disable-dependency-tracking speeds up one-time build
858 --enable-dependency-tracking do not reject slow dependency extractors
859 --enable-maintainer-mode enable make rules and dependencies not useful
860 (and sometimes confusing) to the casual installer
861 --enable-libgcj-debug enable runtime debugging code
862 --enable-java-awt list of AWT peer implementations to be built
863 --enable-shared=PKGS build shared libraries default=yes
864 --enable-static=PKGS build static libraries default=yes
865 --enable-fast-install=PKGS optimize for fast installation default=yes
866 --disable-libtool-lock avoid locking (might break parallel builds)
867 --disable-getenv-properties
868 don't set system properties from GCJ_PROPERTIES
869 --enable-hash-synchronization
870 use global hash table for monitor locks
871 --enable-gc-debug include full support for pointer backtracing etc.
872 --enable-interpreter enable interpreter
873 --enable-sjlj-exceptions
874 force use of builtin_setjmp for exceptions
875 --disable-java-net disable java.net
876 --disable-jvmpi disable JVMPI support
877 --enable-java-gc=TYPE choose garbage collector (default is boehm)
878 --disable-rpath do not hardcode runtime library paths
879 _g_switchUse thread-local storage
883 --with-PACKAGE[=ARG] use PACKAGE [ARG=yes]
884 --without-PACKAGE do not use PACKAGE (same as --with-PACKAGE=no)
885 --with-build-libsubdir=DIR Directory where to find libraries for build system
886 --with-target-subdir=SUBDIR
887 configure in a subdirectory
888 --with-cross-host=HOST configure with a cross compiler from HOST
889 --with-newlib configure with newlib
890 --with-gnu-ld assume the C compiler uses GNU ld default=no
891 --with-pic try to use only PIC/non-PIC objects default=use both
892 --with-java-home=DIRECTORY
893 value of java.home system property
894 --with-win32-nlsapi=ansi or unicows or unicode
895 native MinGW libgcj Win32 OS API (default is ansi)
896 --without-libffi don't use libffi
897 --with-ecos enable runtime eCos target support
898 --with-system-zlib use installed libz
899 --with-x use the X Window System
900 --with-libiconv-prefix[=DIR] search for libiconv in DIR/include and DIR/lib
901 --without-libiconv-prefix don't search for libiconv in includedir and libdir
903 Some influential environment variables:
904 CC C compiler command
905 CFLAGS C compiler flags
906 LDFLAGS linker flags, e.g. -L<lib dir> if you have libraries in a
907 nonstandard directory <lib dir>
908 CPPFLAGS C/C++ preprocessor flags, e.g. -I<include dir> if you have
909 headers in a nonstandard directory <include dir>
910 CXX C++ compiler command
911 CXXFLAGS C++ compiler flags
912 CXXCPP C++ preprocessor
915 Use these variables to override the choices made by `configure' or to help
916 it to find libraries and programs with nonstandard names/locations.
921 if test "$ac_init_help" = "recursive"; then
922 # If there are subdirs, report their specific --help.
924 for ac_dir in : $ac_subdirs_all; do test "x$ac_dir" = x: && continue
925 test -d $ac_dir || continue
928 if test "$ac_dir" != .; then
929 ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'`
930 # A "../" for each directory in $ac_dir_suffix.
931 ac_top_builddir=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,../,g'`
933 ac_dir_suffix= ac_top_builddir=
937 .) # No --srcdir option. We are building in place.
939 if test -z "$ac_top_builddir"; then
942 ac_top_srcdir=`echo $ac_top_builddir | sed 's,/$,,'`
944 [\\/]* | ?:[\\/]* ) # Absolute path.
945 ac_srcdir=$srcdir$ac_dir_suffix;
946 ac_top_srcdir=$srcdir ;;
948 ac_srcdir=$ac_top_builddir$srcdir$ac_dir_suffix
949 ac_top_srcdir=$ac_top_builddir$srcdir ;;
952 # Do not use `cd foo && pwd` to compute absolute paths, because
953 # the directories may not exist.
955 .) ac_abs_builddir="$ac_dir";;
958 .) ac_abs_builddir=`pwd`;;
959 [\\/]* | ?:[\\/]* ) ac_abs_builddir="$ac_dir";;
960 *) ac_abs_builddir=`pwd`/"$ac_dir";;
963 case $ac_abs_builddir in
964 .) ac_abs_top_builddir=${ac_top_builddir}.;;
966 case ${ac_top_builddir}. in
967 .) ac_abs_top_builddir=$ac_abs_builddir;;
968 [\\/]* | ?:[\\/]* ) ac_abs_top_builddir=${ac_top_builddir}.;;
969 *) ac_abs_top_builddir=$ac_abs_builddir/${ac_top_builddir}.;;
972 case $ac_abs_builddir in
973 .) ac_abs_srcdir=$ac_srcdir;;
976 .) ac_abs_srcdir=$ac_abs_builddir;;
977 [\\/]* | ?:[\\/]* ) ac_abs_srcdir=$ac_srcdir;;
978 *) ac_abs_srcdir=$ac_abs_builddir/$ac_srcdir;;
981 case $ac_abs_builddir in
982 .) ac_abs_top_srcdir=$ac_top_srcdir;;
984 case $ac_top_srcdir in
985 .) ac_abs_top_srcdir=$ac_abs_builddir;;
986 [\\/]* | ?:[\\/]* ) ac_abs_top_srcdir=$ac_top_srcdir;;
987 *) ac_abs_top_srcdir=$ac_abs_builddir/$ac_top_srcdir;;
992 # Check for guested configure; otherwise get Cygnus style configure.
993 if test -f $ac_srcdir/configure.gnu; then
995 $SHELL $ac_srcdir/configure.gnu --help=recursive
996 elif test -f $ac_srcdir/configure; then
998 $SHELL $ac_srcdir/configure --help=recursive
999 elif test -f $ac_srcdir/configure.ac ||
1000 test -f $ac_srcdir/configure.in; then
1002 $ac_configure --help
1004 echo "$as_me: WARNING: no configuration information is in $ac_dir" >&2
1010 test -n "$ac_init_help" && exit 0
1011 if $ac_init_version; then
1013 libjava configure version-unused
1014 generated by GNU Autoconf 2.59
1016 Copyright (C) 2003 Free Software Foundation, Inc.
1017 This configure script is free software; the Free Software Foundation
1018 gives unlimited permission to copy, distribute and modify it.
1024 This file contains any messages produced by compilers while
1025 running configure, to aid debugging if configure makes a mistake.
1027 It was created by libjava $as_me version-unused, which was
1028 generated by GNU Autoconf 2.59. Invocation command line was
1039 hostname = `(hostname || uname -n) 2>/dev/null | sed 1q`
1040 uname -m = `(uname -m) 2>/dev/null || echo unknown`
1041 uname -r = `(uname -r) 2>/dev/null || echo unknown`
1042 uname -s = `(uname -s) 2>/dev/null || echo unknown`
1043 uname -v = `(uname -v) 2>/dev/null || echo unknown`
1045 /usr/bin/uname -p = `(/usr/bin/uname -p) 2>/dev/null || echo unknown`
1046 /bin/uname -X = `(/bin/uname -X) 2>/dev/null || echo unknown`
1048 /bin/arch = `(/bin/arch) 2>/dev/null || echo unknown`
1049 /usr/bin/arch -k = `(/usr/bin/arch -k) 2>/dev/null || echo unknown`
1050 /usr/convex/getsysinfo = `(/usr/convex/getsysinfo) 2>/dev/null || echo unknown`
1051 hostinfo = `(hostinfo) 2>/dev/null || echo unknown`
1052 /bin/machine = `(/bin/machine) 2>/dev/null || echo unknown`
1053 /usr/bin/oslevel = `(/usr/bin/oslevel) 2>/dev/null || echo unknown`
1054 /bin/universe = `(/bin/universe) 2>/dev/null || echo unknown`
1058 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1062 test -z "$as_dir" && as_dir=.
1063 echo "PATH: $as_dir"
1078 # Keep a trace of the command line.
1079 # Strip out --no-create and --no-recursion so they do not pile up.
1080 # Strip out --silent because we don't want to record it for future runs.
1081 # Also quote any args containing shell meta-characters.
1082 # Make two passes to allow for proper duplicate-argument suppression.
1087 ac_must_keep_next=false
1093 -no-create | --no-c* | -n | -no-recursion | --no-r*) continue ;;
1094 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
1095 | -silent | --silent | --silen | --sile | --sil)
1097 *" "*|*" "*|*[\[\]\~\#\$\^\&\*\(\)\{\}\\\|\;\<\>\?\"\']*)
1098 ac_arg=`echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;;
1101 1) ac_configure_args0="$ac_configure_args0 '$ac_arg'" ;;
1103 ac_configure_args1="$ac_configure_args1 '$ac_arg'"
1104 if test $ac_must_keep_next = true; then
1105 ac_must_keep_next=false # Got value, back to normal.
1108 *=* | --config-cache | -C | -disable-* | --disable-* \
1109 | -enable-* | --enable-* | -gas | --g* | -nfp | --nf* \
1110 | -q | -quiet | --q* | -silent | --sil* | -v | -verb* \
1111 | -with-* | --with-* | -without-* | --without-* | --x)
1112 case "$ac_configure_args0 " in
1113 "$ac_configure_args1"*" '$ac_arg' "* ) continue ;;
1116 -* ) ac_must_keep_next=true ;;
1119 ac_configure_args="$ac_configure_args$ac_sep'$ac_arg'"
1120 # Get rid of the leading space.
1126 $as_unset ac_configure_args0 || test "${ac_configure_args0+set}" != set || { ac_configure_args0=; export ac_configure_args0; }
1127 $as_unset ac_configure_args1 || test "${ac_configure_args1+set}" != set || { ac_configure_args1=; export ac_configure_args1; }
1129 # When interrupted or exit'd, cleanup temporary files, and complete
1130 # config.log. We remove comments because anyway the quotes in there
1131 # would cause problems or look ugly.
1132 # WARNING: Be sure not to use single quotes in there, as some shells,
1133 # such as our DU 5.0 friend, will then `close' the trap.
1134 trap 'exit_status=$?
1135 # Save into config.log some information that might help in debugging.
1140 ## ---------------- ##
1141 ## Cache variables. ##
1142 ## ---------------- ##
1145 # The following way of writing the cache mishandles newlines in values,
1148 case `(ac_space='"'"' '"'"'; set | grep ac_space) 2>&1` in
1151 "s/'"'"'/'"'"'\\\\'"'"''"'"'/g;
1152 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='"'"'\\2'"'"'/p"
1156 "s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1=\\2/p"
1163 ## ----------------- ##
1164 ## Output variables. ##
1165 ## ----------------- ##
1168 for ac_var in $ac_subst_vars
1170 eval ac_val=$`echo $ac_var`
1171 echo "$ac_var='"'"'$ac_val'"'"'"
1175 if test -n "$ac_subst_files"; then
1182 for ac_var in $ac_subst_files
1184 eval ac_val=$`echo $ac_var`
1185 echo "$ac_var='"'"'$ac_val'"'"'"
1190 if test -s confdefs.h; then
1197 sed "/^$/d" confdefs.h | sort
1200 test "$ac_signal" != 0 &&
1201 echo "$as_me: caught signal $ac_signal"
1202 echo "$as_me: exit $exit_status"
1204 rm -f core *.core &&
1205 rm -rf conftest* confdefs* conf$$* $ac_clean_files &&
1208 for ac_signal in 1 2 13 15; do
1209 trap 'ac_signal='$ac_signal'; { (exit 1); exit 1; }' $ac_signal
1213 # confdefs.h avoids OS command line length limits that DEFS can exceed.
1214 rm -rf conftest* confdefs.h
1215 # AIX cpp loses on an empty file, so make sure it contains at least a newline.
1218 # Predefined preprocessor variables.
1220 cat >>confdefs.h <<_ACEOF
1221 #define PACKAGE_NAME "$PACKAGE_NAME"
1225 cat >>confdefs.h <<_ACEOF
1226 #define PACKAGE_TARNAME "$PACKAGE_TARNAME"
1230 cat >>confdefs.h <<_ACEOF
1231 #define PACKAGE_VERSION "$PACKAGE_VERSION"
1235 cat >>confdefs.h <<_ACEOF
1236 #define PACKAGE_STRING "$PACKAGE_STRING"
1240 cat >>confdefs.h <<_ACEOF
1241 #define PACKAGE_BUGREPORT "$PACKAGE_BUGREPORT"
1245 # Let the site file select an alternate cache file if it wants to.
1246 # Prefer explicitly selected file to automatically selected ones.
1247 if test -z "$CONFIG_SITE"; then
1248 if test "x$prefix" != xNONE; then
1249 CONFIG_SITE="$prefix/share/config.site $prefix/etc/config.site"
1251 CONFIG_SITE="$ac_default_prefix/share/config.site $ac_default_prefix/etc/config.site"
1254 for ac_site_file in $CONFIG_SITE; do
1255 if test -r "$ac_site_file"; then
1256 { echo "$as_me:$LINENO: loading site script $ac_site_file" >&5
1257 echo "$as_me: loading site script $ac_site_file" >&6;}
1258 sed 's/^/| /' "$ac_site_file" >&5
1263 if test -r "$cache_file"; then
1264 # Some versions of bash will fail to source /dev/null (special
1265 # files actually), so we avoid doing that.
1266 if test -f "$cache_file"; then
1267 { echo "$as_me:$LINENO: loading cache $cache_file" >&5
1268 echo "$as_me: loading cache $cache_file" >&6;}
1270 [\\/]* | ?:[\\/]* ) . $cache_file;;
1271 *) . ./$cache_file;;
1275 { echo "$as_me:$LINENO: creating cache $cache_file" >&5
1276 echo "$as_me: creating cache $cache_file" >&6;}
1280 # Check that the precious variables saved in the cache have kept the same
1282 ac_cache_corrupted=false
1283 for ac_var in `(set) 2>&1 |
1284 sed -n 's/^ac_env_\([a-zA-Z_0-9]*\)_set=.*/\1/p'`; do
1285 eval ac_old_set=\$ac_cv_env_${ac_var}_set
1286 eval ac_new_set=\$ac_env_${ac_var}_set
1287 eval ac_old_val="\$ac_cv_env_${ac_var}_value"
1288 eval ac_new_val="\$ac_env_${ac_var}_value"
1289 case $ac_old_set,$ac_new_set in
1291 { echo "$as_me:$LINENO: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&5
1292 echo "$as_me: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&2;}
1293 ac_cache_corrupted=: ;;
1295 { echo "$as_me:$LINENO: error: \`$ac_var' was not set in the previous run" >&5
1296 echo "$as_me: error: \`$ac_var' was not set in the previous run" >&2;}
1297 ac_cache_corrupted=: ;;
1300 if test "x$ac_old_val" != "x$ac_new_val"; then
1301 { echo "$as_me:$LINENO: error: \`$ac_var' has changed since the previous run:" >&5
1302 echo "$as_me: error: \`$ac_var' has changed since the previous run:" >&2;}
1303 { echo "$as_me:$LINENO: former value: $ac_old_val" >&5
1304 echo "$as_me: former value: $ac_old_val" >&2;}
1305 { echo "$as_me:$LINENO: current value: $ac_new_val" >&5
1306 echo "$as_me: current value: $ac_new_val" >&2;}
1307 ac_cache_corrupted=:
1310 # Pass precious variables to config.status.
1311 if test "$ac_new_set" = set; then
1313 *" "*|*" "*|*[\[\]\~\#\$\^\&\*\(\)\{\}\\\|\;\<\>\?\"\']*)
1314 ac_arg=$ac_var=`echo "$ac_new_val" | sed "s/'/'\\\\\\\\''/g"` ;;
1315 *) ac_arg=$ac_var=$ac_new_val ;;
1317 case " $ac_configure_args " in
1318 *" '$ac_arg' "*) ;; # Avoid dups. Use of quotes ensures accuracy.
1319 *) ac_configure_args="$ac_configure_args '$ac_arg'" ;;
1323 if $ac_cache_corrupted; then
1324 { echo "$as_me:$LINENO: error: changes in the environment can compromise the build" >&5
1325 echo "$as_me: error: changes in the environment can compromise the build" >&2;}
1326 { { echo "$as_me:$LINENO: error: run \`make distclean' and/or \`rm $cache_file' and start over" >&5
1327 echo "$as_me: error: run \`make distclean' and/or \`rm $cache_file' and start over" >&2;}
1328 { (exit 1); exit 1; }; }
1332 ac_cpp='$CPP $CPPFLAGS'
1333 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
1334 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
1335 ac_compiler_gnu=$ac_cv_c_compiler_gnu
1367 for ac_dir in $srcdir $srcdir/.. $srcdir/../..; do
1368 if test -f $ac_dir/install-sh; then
1370 ac_install_sh="$ac_aux_dir/install-sh -c"
1372 elif test -f $ac_dir/install.sh; then
1374 ac_install_sh="$ac_aux_dir/install.sh -c"
1376 elif test -f $ac_dir/shtool; then
1378 ac_install_sh="$ac_aux_dir/shtool install -c"
1382 if test -z "$ac_aux_dir"; then
1383 { { echo "$as_me:$LINENO: error: cannot find install-sh or install.sh in $srcdir $srcdir/.. $srcdir/../.." >&5
1384 echo "$as_me: error: cannot find install-sh or install.sh in $srcdir $srcdir/.. $srcdir/../.." >&2;}
1385 { (exit 1); exit 1; }; }
1387 ac_config_guess="$SHELL $ac_aux_dir/config.guess"
1388 ac_config_sub="$SHELL $ac_aux_dir/config.sub"
1389 ac_configure="$SHELL $ac_aux_dir/configure" # This should be Cygnus configure.
1391 # Make sure we can run config.sub.
1392 $ac_config_sub sun4 >/dev/null 2>&1 ||
1393 { { echo "$as_me:$LINENO: error: cannot run $ac_config_sub" >&5
1394 echo "$as_me: error: cannot run $ac_config_sub" >&2;}
1395 { (exit 1); exit 1; }; }
1397 echo "$as_me:$LINENO: checking build system type" >&5
1398 echo $ECHO_N "checking build system type... $ECHO_C" >&6
1399 if test "${ac_cv_build+set}" = set; then
1400 echo $ECHO_N "(cached) $ECHO_C" >&6
1402 ac_cv_build_alias=$build_alias
1403 test -z "$ac_cv_build_alias" &&
1404 ac_cv_build_alias=`$ac_config_guess`
1405 test -z "$ac_cv_build_alias" &&
1406 { { echo "$as_me:$LINENO: error: cannot guess build type; you must specify one" >&5
1407 echo "$as_me: error: cannot guess build type; you must specify one" >&2;}
1408 { (exit 1); exit 1; }; }
1409 ac_cv_build=`$ac_config_sub $ac_cv_build_alias` ||
1410 { { echo "$as_me:$LINENO: error: $ac_config_sub $ac_cv_build_alias failed" >&5
1411 echo "$as_me: error: $ac_config_sub $ac_cv_build_alias failed" >&2;}
1412 { (exit 1); exit 1; }; }
1415 echo "$as_me:$LINENO: result: $ac_cv_build" >&5
1416 echo "${ECHO_T}$ac_cv_build" >&6
1418 build_cpu=`echo $ac_cv_build | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\1/'`
1419 build_vendor=`echo $ac_cv_build | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\2/'`
1420 build_os=`echo $ac_cv_build | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\3/'`
1423 case ${build_alias} in
1424 "") build_noncanonical=${build} ;;
1425 *) build_noncanonical=${build_alias} ;;
1428 case ${host_alias} in
1429 "") host_noncanonical=${build_noncanonical} ;;
1430 *) host_noncanonical=${host_alias} ;;
1433 case ${target_alias} in
1434 "") target_noncanonical=${host_noncanonical} ;;
1435 *) target_noncanonical=${target_alias} ;;
1439 # post-stage1 host modules use a different CC_FOR_BUILD so, in order to
1440 # have matching libraries, they should use host libraries: Makefile.tpl
1441 # arranges to pass --with-build-libsubdir=$(HOST_SUBDIR).
1442 # However, they still use the build modules, because the corresponding
1443 # host modules (e.g. bison) are only built for the host when bootstrap
1445 # - build_subdir is where we find build modules, and never changes.
1446 # - build_libsubdir is where we find build libraries, and can be overridden.
1448 # Prefix 'build-' so this never conflicts with target_subdir.
1449 build_subdir="build-${build_noncanonical}"
1451 # Check whether --with-build-libsubdir or --without-build-libsubdir was given.
1452 if test "${with_build_libsubdir+set}" = set; then
1453 withval="$with_build_libsubdir"
1454 build_libsubdir="$withval"
1456 build_libsubdir="$build_subdir"
1458 # --srcdir=. covers the toplevel, while "test -d" covers the subdirectories
1459 if ( test $srcdir = . && test -d gcc ) \
1460 || test -d $srcdir/../host-${host_noncanonical}; then
1461 host_subdir="host-${host_noncanonical}"
1466 target_subdir=${target_noncanonical}
1469 # We use these options to decide which functions to include.
1471 # Check whether --with-target-subdir or --without-target-subdir was given.
1472 if test "${with_target_subdir+set}" = set; then
1473 withval="$with_target_subdir"
1477 # We may get other options which we don't document:
1478 # --with-target-subdir, --with-multisrctop, --with-multisubdir
1480 # When building with srcdir == objdir, links to the source files will
1481 # be created in directories within the target_subdir. We have to
1482 # adjust toplevel_srcdir accordingly, so that configure finds
1483 # install-sh and other auxiliary files that live in the top-level
1485 if test "${srcdir}" = "."; then
1486 if test -z "${with_target_subdir}"; then
1489 if test "${with_target_subdir}" != "."; then
1490 toprel="${with_multisrctop}../.."
1492 toprel="${with_multisrctop}.."
1499 libgcj_basedir=$srcdir/$toprel/./libjava
1502 echo "$as_me:$LINENO: checking host system type" >&5
1503 echo $ECHO_N "checking host system type... $ECHO_C" >&6
1504 if test "${ac_cv_host+set}" = set; then
1505 echo $ECHO_N "(cached) $ECHO_C" >&6
1507 ac_cv_host_alias=$host_alias
1508 test -z "$ac_cv_host_alias" &&
1509 ac_cv_host_alias=$ac_cv_build_alias
1510 ac_cv_host=`$ac_config_sub $ac_cv_host_alias` ||
1511 { { echo "$as_me:$LINENO: error: $ac_config_sub $ac_cv_host_alias failed" >&5
1512 echo "$as_me: error: $ac_config_sub $ac_cv_host_alias failed" >&2;}
1513 { (exit 1); exit 1; }; }
1516 echo "$as_me:$LINENO: result: $ac_cv_host" >&5
1517 echo "${ECHO_T}$ac_cv_host" >&6
1519 host_cpu=`echo $ac_cv_host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\1/'`
1520 host_vendor=`echo $ac_cv_host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\2/'`
1521 host_os=`echo $ac_cv_host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\3/'`
1524 echo "$as_me:$LINENO: checking target system type" >&5
1525 echo $ECHO_N "checking target system type... $ECHO_C" >&6
1526 if test "${ac_cv_target+set}" = set; then
1527 echo $ECHO_N "(cached) $ECHO_C" >&6
1529 ac_cv_target_alias=$target_alias
1530 test "x$ac_cv_target_alias" = "x" &&
1531 ac_cv_target_alias=$ac_cv_host_alias
1532 ac_cv_target=`$ac_config_sub $ac_cv_target_alias` ||
1533 { { echo "$as_me:$LINENO: error: $ac_config_sub $ac_cv_target_alias failed" >&5
1534 echo "$as_me: error: $ac_config_sub $ac_cv_target_alias failed" >&2;}
1535 { (exit 1); exit 1; }; }
1538 echo "$as_me:$LINENO: result: $ac_cv_target" >&5
1539 echo "${ECHO_T}$ac_cv_target" >&6
1540 target=$ac_cv_target
1541 target_cpu=`echo $ac_cv_target | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\1/'`
1542 target_vendor=`echo $ac_cv_target | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\2/'`
1543 target_os=`echo $ac_cv_target | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\3/'`
1546 # The aliases save the names the user supplied, while $host etc.
1547 # will get canonicalized.
1548 test -n "$target_alias" &&
1549 test "$program_prefix$program_suffix$program_transform_name" = \
1551 program_prefix=${target_alias}-
1552 case ${build_alias} in
1553 "") build_noncanonical=${build} ;;
1554 *) build_noncanonical=${build_alias} ;;
1557 case ${target_alias} in
1558 "") target_noncanonical=${host_noncanonical} ;;
1559 *) target_noncanonical=${target_alias} ;;
1565 # This works around the fact that libtool configuration may change LD
1566 # for this particular configuration, but some shells, instead of
1567 # keeping the changes in LD private, export them just because LD is
1569 ORIGINAL_LD_FOR_MULTILIBS=$LD
1571 echo "$as_me:$LINENO: checking whether ln -s works" >&5
1572 echo $ECHO_N "checking whether ln -s works... $ECHO_C" >&6
1574 if test "$LN_S" = "ln -s"; then
1575 echo "$as_me:$LINENO: result: yes" >&5
1576 echo "${ECHO_T}yes" >&6
1578 echo "$as_me:$LINENO: result: no, using $LN_S" >&5
1579 echo "${ECHO_T}no, using $LN_S" >&6
1583 # This works around an automake problem.
1584 mkinstalldirs="`cd $ac_aux_dir && ${PWDCMD-pwd}`/mkinstalldirs"
1588 # Check whether --with-cross-host or --without-cross-host was given.
1589 if test "${with_cross_host+set}" = set; then
1590 withval="$with_cross_host"
1595 # Check whether --with-newlib or --without-newlib was given.
1596 if test "${with_newlib+set}" = set; then
1597 withval="$with_newlib"
1601 # Check whether --enable-version-specific-runtime-libs or --disable-version-specific-runtime-libs was given.
1602 if test "${enable_version_specific_runtime_libs+set}" = set; then
1603 enableval="$enable_version_specific_runtime_libs"
1604 case "$enableval" in
1605 yes) version_specific_libs=yes ;;
1606 no) version_specific_libs=no ;;
1607 *) { { echo "$as_me:$LINENO: error: Unknown argument to enable/disable version-specific libs" >&5
1608 echo "$as_me: error: Unknown argument to enable/disable version-specific libs" >&2;}
1609 { (exit 1); exit 1; }; };;
1612 version_specific_libs=no
1616 # Default to --enable-multilib
1617 # Check whether --enable-multilib or --disable-multilib was given.
1618 if test "${enable_multilib+set}" = set; then
1619 enableval="$enable_multilib"
1620 case "${enableval}" in
1621 yes) multilib=yes ;;
1623 *) { { echo "$as_me:$LINENO: error: bad value ${enableval} for multilib option" >&5
1624 echo "$as_me: error: bad value ${enableval} for multilib option" >&2;}
1625 { (exit 1); exit 1; }; } ;;
1630 # Check whether --enable-plugin or --disable-plugin was given.
1631 if test "${enable_plugin+set}" = set; then
1632 enableval="$enable_plugin"
1633 case "$enableval" in
1634 yes) plugin_enabled=yes ;;
1635 no) plugin_enabled=no ;;
1636 *) { { echo "$as_me:$LINENO: error: Unknown argument to enable/disable plugin" >&5
1637 echo "$as_me: error: Unknown argument to enable/disable plugin" >&2;}
1638 { (exit 1); exit 1; }; };;
1645 # It may not be safe to run linking tests in AC_PROG_CC/AC_PROG_CXX.
1648 # (1) We use an abnormal CXX (without library references), so we
1649 # must cache it under a different name.
1650 # (2) CC, CFLAGS, CXX, CXXFLAGS, LDFLAGS must not be 'precious', or
1651 # the non-multilib-adjusted value will be used in multilibs.
1652 # (3) As a side effect, we must SUBST CXXFLAGS, CFLAGS, and LDFLAGS ourselves.
1653 # (4) As another side effect, automake doesn't automatically include them
1655 # (5) For libstdc++-v3, -fno-builtin must be present here so that a
1656 # non-conflicting form of std::exit can be guessed by AC_PROG_CXX, and
1657 # used in later tests. This may not be necessary in libjava; I don't know.
1661 save_CXXFLAGS="$CXXFLAGS"
1662 CXXFLAGS="$CXXFLAGS -fno-builtin"
1664 ac_cpp='$CPP $CPPFLAGS'
1665 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
1666 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
1667 ac_compiler_gnu=$ac_cv_c_compiler_gnu
1668 if test -n "$ac_tool_prefix"; then
1669 # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args.
1670 set dummy ${ac_tool_prefix}gcc; ac_word=$2
1671 echo "$as_me:$LINENO: checking for $ac_word" >&5
1672 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1673 if test "${ac_cv_prog_CC+set}" = set; then
1674 echo $ECHO_N "(cached) $ECHO_C" >&6
1676 if test -n "$CC"; then
1677 ac_cv_prog_CC="$CC" # Let the user override the test.
1679 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1683 test -z "$as_dir" && as_dir=.
1684 for ac_exec_ext in '' $ac_executable_extensions; do
1685 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1686 ac_cv_prog_CC="${ac_tool_prefix}gcc"
1687 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
1696 if test -n "$CC"; then
1697 echo "$as_me:$LINENO: result: $CC" >&5
1698 echo "${ECHO_T}$CC" >&6
1700 echo "$as_me:$LINENO: result: no" >&5
1701 echo "${ECHO_T}no" >&6
1705 if test -z "$ac_cv_prog_CC"; then
1707 # Extract the first word of "gcc", so it can be a program name with args.
1708 set dummy gcc; ac_word=$2
1709 echo "$as_me:$LINENO: checking for $ac_word" >&5
1710 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1711 if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
1712 echo $ECHO_N "(cached) $ECHO_C" >&6
1714 if test -n "$ac_ct_CC"; then
1715 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
1717 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1721 test -z "$as_dir" && as_dir=.
1722 for ac_exec_ext in '' $ac_executable_extensions; do
1723 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1724 ac_cv_prog_ac_ct_CC="gcc"
1725 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
1733 ac_ct_CC=$ac_cv_prog_ac_ct_CC
1734 if test -n "$ac_ct_CC"; then
1735 echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
1736 echo "${ECHO_T}$ac_ct_CC" >&6
1738 echo "$as_me:$LINENO: result: no" >&5
1739 echo "${ECHO_T}no" >&6
1747 if test -z "$CC"; then
1748 if test -n "$ac_tool_prefix"; then
1749 # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args.
1750 set dummy ${ac_tool_prefix}cc; ac_word=$2
1751 echo "$as_me:$LINENO: checking for $ac_word" >&5
1752 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1753 if test "${ac_cv_prog_CC+set}" = set; then
1754 echo $ECHO_N "(cached) $ECHO_C" >&6
1756 if test -n "$CC"; then
1757 ac_cv_prog_CC="$CC" # Let the user override the test.
1759 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1763 test -z "$as_dir" && as_dir=.
1764 for ac_exec_ext in '' $ac_executable_extensions; do
1765 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1766 ac_cv_prog_CC="${ac_tool_prefix}cc"
1767 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
1776 if test -n "$CC"; then
1777 echo "$as_me:$LINENO: result: $CC" >&5
1778 echo "${ECHO_T}$CC" >&6
1780 echo "$as_me:$LINENO: result: no" >&5
1781 echo "${ECHO_T}no" >&6
1785 if test -z "$ac_cv_prog_CC"; then
1787 # Extract the first word of "cc", so it can be a program name with args.
1788 set dummy cc; ac_word=$2
1789 echo "$as_me:$LINENO: checking for $ac_word" >&5
1790 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1791 if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
1792 echo $ECHO_N "(cached) $ECHO_C" >&6
1794 if test -n "$ac_ct_CC"; then
1795 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
1797 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1801 test -z "$as_dir" && as_dir=.
1802 for ac_exec_ext in '' $ac_executable_extensions; do
1803 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1804 ac_cv_prog_ac_ct_CC="cc"
1805 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
1813 ac_ct_CC=$ac_cv_prog_ac_ct_CC
1814 if test -n "$ac_ct_CC"; then
1815 echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
1816 echo "${ECHO_T}$ac_ct_CC" >&6
1818 echo "$as_me:$LINENO: result: no" >&5
1819 echo "${ECHO_T}no" >&6
1828 if test -z "$CC"; then
1829 # Extract the first word of "cc", so it can be a program name with args.
1830 set dummy cc; ac_word=$2
1831 echo "$as_me:$LINENO: checking for $ac_word" >&5
1832 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1833 if test "${ac_cv_prog_CC+set}" = set; then
1834 echo $ECHO_N "(cached) $ECHO_C" >&6
1836 if test -n "$CC"; then
1837 ac_cv_prog_CC="$CC" # Let the user override the test.
1840 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1844 test -z "$as_dir" && as_dir=.
1845 for ac_exec_ext in '' $ac_executable_extensions; do
1846 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1847 if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then
1848 ac_prog_rejected=yes
1852 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
1858 if test $ac_prog_rejected = yes; then
1859 # We found a bogon in the path, so make sure we never use it.
1860 set dummy $ac_cv_prog_CC
1862 if test $# != 0; then
1863 # We chose a different compiler from the bogus one.
1864 # However, it has the same basename, so the bogon will be chosen
1865 # first if we set CC to just the basename; use the full file name.
1867 ac_cv_prog_CC="$as_dir/$ac_word${1+' '}$@"
1873 if test -n "$CC"; then
1874 echo "$as_me:$LINENO: result: $CC" >&5
1875 echo "${ECHO_T}$CC" >&6
1877 echo "$as_me:$LINENO: result: no" >&5
1878 echo "${ECHO_T}no" >&6
1882 if test -z "$CC"; then
1883 if test -n "$ac_tool_prefix"; then
1886 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
1887 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
1888 echo "$as_me:$LINENO: checking for $ac_word" >&5
1889 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1890 if test "${ac_cv_prog_CC+set}" = set; then
1891 echo $ECHO_N "(cached) $ECHO_C" >&6
1893 if test -n "$CC"; then
1894 ac_cv_prog_CC="$CC" # Let the user override the test.
1896 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1900 test -z "$as_dir" && as_dir=.
1901 for ac_exec_ext in '' $ac_executable_extensions; do
1902 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1903 ac_cv_prog_CC="$ac_tool_prefix$ac_prog"
1904 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
1913 if test -n "$CC"; then
1914 echo "$as_me:$LINENO: result: $CC" >&5
1915 echo "${ECHO_T}$CC" >&6
1917 echo "$as_me:$LINENO: result: no" >&5
1918 echo "${ECHO_T}no" >&6
1921 test -n "$CC" && break
1924 if test -z "$CC"; then
1928 # Extract the first word of "$ac_prog", so it can be a program name with args.
1929 set dummy $ac_prog; ac_word=$2
1930 echo "$as_me:$LINENO: checking for $ac_word" >&5
1931 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1932 if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
1933 echo $ECHO_N "(cached) $ECHO_C" >&6
1935 if test -n "$ac_ct_CC"; then
1936 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
1938 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1942 test -z "$as_dir" && as_dir=.
1943 for ac_exec_ext in '' $ac_executable_extensions; do
1944 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1945 ac_cv_prog_ac_ct_CC="$ac_prog"
1946 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
1954 ac_ct_CC=$ac_cv_prog_ac_ct_CC
1955 if test -n "$ac_ct_CC"; then
1956 echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
1957 echo "${ECHO_T}$ac_ct_CC" >&6
1959 echo "$as_me:$LINENO: result: no" >&5
1960 echo "${ECHO_T}no" >&6
1963 test -n "$ac_ct_CC" && break
1972 test -z "$CC" && { { echo "$as_me:$LINENO: error: no acceptable C compiler found in \$PATH
1973 See \`config.log' for more details." >&5
1974 echo "$as_me: error: no acceptable C compiler found in \$PATH
1975 See \`config.log' for more details." >&2;}
1976 { (exit 1); exit 1; }; }
1978 # Provide some information about the compiler.
1979 echo "$as_me:$LINENO:" \
1980 "checking for C compiler version" >&5
1981 ac_compiler=`set X $ac_compile; echo $2`
1982 { (eval echo "$as_me:$LINENO: \"$ac_compiler --version </dev/null >&5\"") >&5
1983 (eval $ac_compiler --version </dev/null >&5) 2>&5
1985 echo "$as_me:$LINENO: \$? = $ac_status" >&5
1986 (exit $ac_status); }
1987 { (eval echo "$as_me:$LINENO: \"$ac_compiler -v </dev/null >&5\"") >&5
1988 (eval $ac_compiler -v </dev/null >&5) 2>&5
1990 echo "$as_me:$LINENO: \$? = $ac_status" >&5
1991 (exit $ac_status); }
1992 { (eval echo "$as_me:$LINENO: \"$ac_compiler -V </dev/null >&5\"") >&5
1993 (eval $ac_compiler -V </dev/null >&5) 2>&5
1995 echo "$as_me:$LINENO: \$? = $ac_status" >&5
1996 (exit $ac_status); }
1998 cat >conftest.$ac_ext <<_ACEOF
2001 cat confdefs.h >>conftest.$ac_ext
2002 cat >>conftest.$ac_ext <<_ACEOF
2003 /* end confdefs.h. */
2014 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
2015 (eval $ac_link) 2>&5
2017 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2018 (exit $ac_status); }; then
2024 if test x$gcc_no_link = xyes; then
2025 # Setting cross_compile will disable run tests; it will
2026 # also disable AC_CHECK_FILE but that's generally
2027 # correct if we can't link.
2031 cat >conftest.$ac_ext <<_ACEOF
2034 cat confdefs.h >>conftest.$ac_ext
2035 cat >>conftest.$ac_ext <<_ACEOF
2036 /* end confdefs.h. */
2046 ac_clean_files_save=$ac_clean_files
2047 ac_clean_files="$ac_clean_files a.out a.exe b.out"
2048 # Try to create an executable without -o first, disregard a.out.
2049 # It will help us diagnose broken compilers, and finding out an intuition
2051 echo "$as_me:$LINENO: checking for C compiler default output file name" >&5
2052 echo $ECHO_N "checking for C compiler default output file name... $ECHO_C" >&6
2053 ac_link_default=`echo "$ac_link" | sed 's/ -o *conftest[^ ]*//'`
2054 if { (eval echo "$as_me:$LINENO: \"$ac_link_default\"") >&5
2055 (eval $ac_link_default) 2>&5
2057 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2058 (exit $ac_status); }; then
2059 # Find the output, starting from the most likely. This scheme is
2060 # not robust to junk in `.', hence go to wildcards (a.*) only as a last
2063 # Be careful to initialize this variable, since it used to be cached.
2064 # Otherwise an old cache value of `no' led to `EXEEXT = no' in a Makefile.
2066 # b.out is created by i960 compilers.
2067 for ac_file in a_out.exe a.exe conftest.exe a.out conftest a.* conftest.* b.out
2069 test -f "$ac_file" || continue
2071 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.o | *.obj )
2074 # This is the source file.
2077 # We found the default executable, but exeext='' is most
2081 ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
2082 # FIXME: I believe we export ac_cv_exeext for Libtool,
2083 # but it would be cool to find out if it's true. Does anybody
2084 # maintain Libtool? --akim.
2092 echo "$as_me: failed program was:" >&5
2093 sed 's/^/| /' conftest.$ac_ext >&5
2095 { { echo "$as_me:$LINENO: error: C compiler cannot create executables
2096 See \`config.log' for more details." >&5
2097 echo "$as_me: error: C compiler cannot create executables
2098 See \`config.log' for more details." >&2;}
2099 { (exit 77); exit 77; }; }
2102 ac_exeext=$ac_cv_exeext
2103 echo "$as_me:$LINENO: result: $ac_file" >&5
2104 echo "${ECHO_T}$ac_file" >&6
2106 # Check the compiler produces executables we can run. If not, either
2107 # the compiler is broken, or we cross compile.
2108 echo "$as_me:$LINENO: checking whether the C compiler works" >&5
2109 echo $ECHO_N "checking whether the C compiler works... $ECHO_C" >&6
2110 # FIXME: These cross compiler hacks should be removed for Autoconf 3.0
2111 # If not cross compiling, check that we can run a simple program.
2112 if test "$cross_compiling" != yes; then
2113 if { ac_try='./$ac_file'
2114 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2117 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2118 (exit $ac_status); }; }; then
2121 if test "$cross_compiling" = maybe; then
2124 { { echo "$as_me:$LINENO: error: cannot run C compiled programs.
2125 If you meant to cross compile, use \`--host'.
2126 See \`config.log' for more details." >&5
2127 echo "$as_me: error: cannot run C compiled programs.
2128 If you meant to cross compile, use \`--host'.
2129 See \`config.log' for more details." >&2;}
2130 { (exit 1); exit 1; }; }
2134 echo "$as_me:$LINENO: result: yes" >&5
2135 echo "${ECHO_T}yes" >&6
2137 rm -f a.out a.exe conftest$ac_cv_exeext b.out
2138 ac_clean_files=$ac_clean_files_save
2139 # Check the compiler produces executables we can run. If not, either
2140 # the compiler is broken, or we cross compile.
2141 echo "$as_me:$LINENO: checking whether we are cross compiling" >&5
2142 echo $ECHO_N "checking whether we are cross compiling... $ECHO_C" >&6
2143 echo "$as_me:$LINENO: result: $cross_compiling" >&5
2144 echo "${ECHO_T}$cross_compiling" >&6
2146 echo "$as_me:$LINENO: checking for suffix of executables" >&5
2147 echo $ECHO_N "checking for suffix of executables... $ECHO_C" >&6
2148 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
2149 (eval $ac_link) 2>&5
2151 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2152 (exit $ac_status); }; then
2153 # If both `conftest.exe' and `conftest' are `present' (well, observable)
2154 # catch `conftest.exe'. For instance with Cygwin, `ls conftest' will
2155 # work properly (i.e., refer to `conftest.exe'), while it won't with
2157 for ac_file in conftest.exe conftest conftest.*; do
2158 test -f "$ac_file" || continue
2160 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.o | *.obj ) ;;
2161 *.* ) ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
2168 { { echo "$as_me:$LINENO: error: cannot compute suffix of executables: cannot compile and link
2169 See \`config.log' for more details." >&5
2170 echo "$as_me: error: cannot compute suffix of executables: cannot compile and link
2171 See \`config.log' for more details." >&2;}
2172 { (exit 1); exit 1; }; }
2175 rm -f conftest$ac_cv_exeext
2176 echo "$as_me:$LINENO: result: $ac_cv_exeext" >&5
2177 echo "${ECHO_T}$ac_cv_exeext" >&6
2179 rm -f conftest.$ac_ext
2180 EXEEXT=$ac_cv_exeext
2183 echo "$as_me:$LINENO: checking for suffix of object files" >&5
2184 echo $ECHO_N "checking for suffix of object files... $ECHO_C" >&6
2185 if test "${ac_cv_objext+set}" = set; then
2186 echo $ECHO_N "(cached) $ECHO_C" >&6
2188 cat >conftest.$ac_ext <<_ACEOF
2191 cat confdefs.h >>conftest.$ac_ext
2192 cat >>conftest.$ac_ext <<_ACEOF
2193 /* end confdefs.h. */
2203 rm -f conftest.o conftest.obj
2204 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2205 (eval $ac_compile) 2>&5
2207 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2208 (exit $ac_status); }; then
2209 for ac_file in `(ls conftest.o conftest.obj; ls conftest.*) 2>/dev/null`; do
2211 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg ) ;;
2212 *) ac_cv_objext=`expr "$ac_file" : '.*\.\(.*\)'`
2217 echo "$as_me: failed program was:" >&5
2218 sed 's/^/| /' conftest.$ac_ext >&5
2220 { { echo "$as_me:$LINENO: error: cannot compute suffix of object files: cannot compile
2221 See \`config.log' for more details." >&5
2222 echo "$as_me: error: cannot compute suffix of object files: cannot compile
2223 See \`config.log' for more details." >&2;}
2224 { (exit 1); exit 1; }; }
2227 rm -f conftest.$ac_cv_objext conftest.$ac_ext
2229 echo "$as_me:$LINENO: result: $ac_cv_objext" >&5
2230 echo "${ECHO_T}$ac_cv_objext" >&6
2231 OBJEXT=$ac_cv_objext
2233 echo "$as_me:$LINENO: checking whether we are using the GNU C compiler" >&5
2234 echo $ECHO_N "checking whether we are using the GNU C compiler... $ECHO_C" >&6
2235 if test "${ac_cv_c_compiler_gnu+set}" = set; then
2236 echo $ECHO_N "(cached) $ECHO_C" >&6
2238 cat >conftest.$ac_ext <<_ACEOF
2241 cat confdefs.h >>conftest.$ac_ext
2242 cat >>conftest.$ac_ext <<_ACEOF
2243 /* end confdefs.h. */
2256 rm -f conftest.$ac_objext
2257 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2258 (eval $ac_compile) 2>conftest.er1
2260 grep -v '^ *+' conftest.er1 >conftest.err
2262 cat conftest.err >&5
2263 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2264 (exit $ac_status); } &&
2265 { ac_try='test -z "$ac_c_werror_flag"
2266 || test ! -s conftest.err'
2267 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2270 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2271 (exit $ac_status); }; } &&
2272 { ac_try='test -s conftest.$ac_objext'
2273 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2276 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2277 (exit $ac_status); }; }; then
2280 echo "$as_me: failed program was:" >&5
2281 sed 's/^/| /' conftest.$ac_ext >&5
2285 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
2286 ac_cv_c_compiler_gnu=$ac_compiler_gnu
2289 echo "$as_me:$LINENO: result: $ac_cv_c_compiler_gnu" >&5
2290 echo "${ECHO_T}$ac_cv_c_compiler_gnu" >&6
2291 GCC=`test $ac_compiler_gnu = yes && echo yes`
2292 ac_test_CFLAGS=${CFLAGS+set}
2293 ac_save_CFLAGS=$CFLAGS
2295 echo "$as_me:$LINENO: checking whether $CC accepts -g" >&5
2296 echo $ECHO_N "checking whether $CC accepts -g... $ECHO_C" >&6
2297 if test "${ac_cv_prog_cc_g+set}" = set; then
2298 echo $ECHO_N "(cached) $ECHO_C" >&6
2300 cat >conftest.$ac_ext <<_ACEOF
2303 cat confdefs.h >>conftest.$ac_ext
2304 cat >>conftest.$ac_ext <<_ACEOF
2305 /* end confdefs.h. */
2315 rm -f conftest.$ac_objext
2316 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2317 (eval $ac_compile) 2>conftest.er1
2319 grep -v '^ *+' conftest.er1 >conftest.err
2321 cat conftest.err >&5
2322 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2323 (exit $ac_status); } &&
2324 { ac_try='test -z "$ac_c_werror_flag"
2325 || test ! -s conftest.err'
2326 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2329 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2330 (exit $ac_status); }; } &&
2331 { ac_try='test -s conftest.$ac_objext'
2332 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2335 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2336 (exit $ac_status); }; }; then
2339 echo "$as_me: failed program was:" >&5
2340 sed 's/^/| /' conftest.$ac_ext >&5
2344 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
2346 echo "$as_me:$LINENO: result: $ac_cv_prog_cc_g" >&5
2347 echo "${ECHO_T}$ac_cv_prog_cc_g" >&6
2348 if test "$ac_test_CFLAGS" = set; then
2349 CFLAGS=$ac_save_CFLAGS
2350 elif test $ac_cv_prog_cc_g = yes; then
2351 if test "$GCC" = yes; then
2357 if test "$GCC" = yes; then
2363 echo "$as_me:$LINENO: checking for $CC option to accept ANSI C" >&5
2364 echo $ECHO_N "checking for $CC option to accept ANSI C... $ECHO_C" >&6
2365 if test "${ac_cv_prog_cc_stdc+set}" = set; then
2366 echo $ECHO_N "(cached) $ECHO_C" >&6
2368 ac_cv_prog_cc_stdc=no
2370 cat >conftest.$ac_ext <<_ACEOF
2373 cat confdefs.h >>conftest.$ac_ext
2374 cat >>conftest.$ac_ext <<_ACEOF
2375 /* end confdefs.h. */
2378 #include <sys/types.h>
2379 #include <sys/stat.h>
2380 /* Most of the following tests are stolen from RCS 5.7's src/conf.sh. */
2381 struct buf { int x; };
2382 FILE * (*rcsopen) (struct buf *, struct stat *, int);
2383 static char *e (p, i)
2389 static char *f (char * (*g) (char **, int), char **p, ...)
2394 s = g (p, va_arg (v,int));
2399 /* OSF 4.0 Compaq cc is some sort of almost-ANSI by default. It has
2400 function prototypes and stuff, but not '\xHH' hex character constants.
2401 These don't provoke an error unfortunately, instead are silently treated
2402 as 'x'. The following induces an error, until -std1 is added to get
2403 proper ANSI mode. Curiously '\x00'!='x' always comes out true, for an
2404 array size at least. It's necessary to write '\x00'==0 to get something
2405 that's true only with -std1. */
2406 int osf4_cc_array ['\x00' == 0 ? 1 : -1];
2408 int test (int i, double x);
2409 struct s1 {int (*f) (int a);};
2410 struct s2 {int (*f) (double a);};
2411 int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
2417 return f (e, argv, 0) != argv[0] || f (e, argv, 1) != argv[1];
2422 # Don't try gcc -ansi; that turns off useful extensions and
2423 # breaks some systems' header files.
2424 # AIX -qlanglvl=ansi
2425 # Ultrix and OSF/1 -std1
2426 # HP-UX 10.20 and later -Ae
2427 # HP-UX older versions -Aa -D_HPUX_SOURCE
2428 # SVR4 -Xc -D__EXTENSIONS__
2429 for ac_arg in "" -qlanglvl=ansi -std1 -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
2431 CC="$ac_save_CC $ac_arg"
2432 rm -f conftest.$ac_objext
2433 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2434 (eval $ac_compile) 2>conftest.er1
2436 grep -v '^ *+' conftest.er1 >conftest.err
2438 cat conftest.err >&5
2439 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2440 (exit $ac_status); } &&
2441 { ac_try='test -z "$ac_c_werror_flag"
2442 || test ! -s conftest.err'
2443 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2446 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2447 (exit $ac_status); }; } &&
2448 { ac_try='test -s conftest.$ac_objext'
2449 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2452 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2453 (exit $ac_status); }; }; then
2454 ac_cv_prog_cc_stdc=$ac_arg
2457 echo "$as_me: failed program was:" >&5
2458 sed 's/^/| /' conftest.$ac_ext >&5
2461 rm -f conftest.err conftest.$ac_objext
2463 rm -f conftest.$ac_ext conftest.$ac_objext
2468 case "x$ac_cv_prog_cc_stdc" in
2470 echo "$as_me:$LINENO: result: none needed" >&5
2471 echo "${ECHO_T}none needed" >&6 ;;
2473 echo "$as_me:$LINENO: result: $ac_cv_prog_cc_stdc" >&5
2474 echo "${ECHO_T}$ac_cv_prog_cc_stdc" >&6
2475 CC="$CC $ac_cv_prog_cc_stdc" ;;
2478 # Some people use a C++ compiler to compile C. Since we use `exit',
2479 # in C++ we need to declare it. In case someone uses the same compiler
2480 # for both compiling C and C++ we need to have the C++ compiler decide
2481 # the declaration of exit, since it's the most demanding environment.
2482 cat >conftest.$ac_ext <<_ACEOF
2487 rm -f conftest.$ac_objext
2488 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2489 (eval $ac_compile) 2>conftest.er1
2491 grep -v '^ *+' conftest.er1 >conftest.err
2493 cat conftest.err >&5
2494 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2495 (exit $ac_status); } &&
2496 { ac_try='test -z "$ac_c_werror_flag"
2497 || test ! -s conftest.err'
2498 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2501 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2502 (exit $ac_status); }; } &&
2503 { ac_try='test -s conftest.$ac_objext'
2504 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2507 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2508 (exit $ac_status); }; }; then
2509 for ac_declaration in \
2511 'extern "C" void std::exit (int) throw (); using std::exit;' \
2512 'extern "C" void std::exit (int); using std::exit;' \
2513 'extern "C" void exit (int) throw ();' \
2514 'extern "C" void exit (int);' \
2517 cat >conftest.$ac_ext <<_ACEOF
2520 cat confdefs.h >>conftest.$ac_ext
2521 cat >>conftest.$ac_ext <<_ACEOF
2522 /* end confdefs.h. */
2533 rm -f conftest.$ac_objext
2534 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2535 (eval $ac_compile) 2>conftest.er1
2537 grep -v '^ *+' conftest.er1 >conftest.err
2539 cat conftest.err >&5
2540 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2541 (exit $ac_status); } &&
2542 { ac_try='test -z "$ac_c_werror_flag"
2543 || test ! -s conftest.err'
2544 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2547 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2548 (exit $ac_status); }; } &&
2549 { ac_try='test -s conftest.$ac_objext'
2550 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2553 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2554 (exit $ac_status); }; }; then
2557 echo "$as_me: failed program was:" >&5
2558 sed 's/^/| /' conftest.$ac_ext >&5
2562 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
2563 cat >conftest.$ac_ext <<_ACEOF
2566 cat confdefs.h >>conftest.$ac_ext
2567 cat >>conftest.$ac_ext <<_ACEOF
2568 /* end confdefs.h. */
2578 rm -f conftest.$ac_objext
2579 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2580 (eval $ac_compile) 2>conftest.er1
2582 grep -v '^ *+' conftest.er1 >conftest.err
2584 cat conftest.err >&5
2585 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2586 (exit $ac_status); } &&
2587 { ac_try='test -z "$ac_c_werror_flag"
2588 || test ! -s conftest.err'
2589 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2592 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2593 (exit $ac_status); }; } &&
2594 { ac_try='test -s conftest.$ac_objext'
2595 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2598 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2599 (exit $ac_status); }; }; then
2602 echo "$as_me: failed program was:" >&5
2603 sed 's/^/| /' conftest.$ac_ext >&5
2606 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
2609 if test -n "$ac_declaration"; then
2610 echo '#ifdef __cplusplus' >>confdefs.h
2611 echo $ac_declaration >>confdefs.h
2612 echo '#endif' >>confdefs.h
2616 echo "$as_me: failed program was:" >&5
2617 sed 's/^/| /' conftest.$ac_ext >&5
2620 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
2622 ac_cpp='$CPP $CPPFLAGS'
2623 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2624 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2625 ac_compiler_gnu=$ac_cv_c_compiler_gnu
2628 ac_cpp='$CXXCPP $CPPFLAGS'
2629 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2630 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2631 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
2632 if test -n "$ac_tool_prefix"; then
2633 for ac_prog in $CCC g++ c++ gpp aCC CC cxx cc++ cl FCC KCC RCC xlC_r xlC
2635 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
2636 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
2637 echo "$as_me:$LINENO: checking for $ac_word" >&5
2638 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
2639 if test "${glibcxx_cv_prog_CXX+set}" = set; then
2640 echo $ECHO_N "(cached) $ECHO_C" >&6
2642 if test -n "$CXX"; then
2643 glibcxx_cv_prog_CXX="$CXX" # Let the user override the test.
2645 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2649 test -z "$as_dir" && as_dir=.
2650 for ac_exec_ext in '' $ac_executable_extensions; do
2651 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2652 glibcxx_cv_prog_CXX="$ac_tool_prefix$ac_prog"
2653 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2661 CXX=$glibcxx_cv_prog_CXX
2662 if test -n "$CXX"; then
2663 echo "$as_me:$LINENO: result: $CXX" >&5
2664 echo "${ECHO_T}$CXX" >&6
2666 echo "$as_me:$LINENO: result: no" >&5
2667 echo "${ECHO_T}no" >&6
2670 test -n "$CXX" && break
2673 if test -z "$CXX"; then
2675 for ac_prog in $CCC g++ c++ gpp aCC CC cxx cc++ cl FCC KCC RCC xlC_r xlC
2677 # Extract the first word of "$ac_prog", so it can be a program name with args.
2678 set dummy $ac_prog; ac_word=$2
2679 echo "$as_me:$LINENO: checking for $ac_word" >&5
2680 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
2681 if test "${ac_cv_prog_ac_ct_CXX+set}" = set; then
2682 echo $ECHO_N "(cached) $ECHO_C" >&6
2684 if test -n "$ac_ct_CXX"; then
2685 ac_cv_prog_ac_ct_CXX="$ac_ct_CXX" # Let the user override the test.
2687 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2691 test -z "$as_dir" && as_dir=.
2692 for ac_exec_ext in '' $ac_executable_extensions; do
2693 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2694 ac_cv_prog_ac_ct_CXX="$ac_prog"
2695 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2703 ac_ct_CXX=$ac_cv_prog_ac_ct_CXX
2704 if test -n "$ac_ct_CXX"; then
2705 echo "$as_me:$LINENO: result: $ac_ct_CXX" >&5
2706 echo "${ECHO_T}$ac_ct_CXX" >&6
2708 echo "$as_me:$LINENO: result: no" >&5
2709 echo "${ECHO_T}no" >&6
2712 test -n "$ac_ct_CXX" && break
2714 test -n "$ac_ct_CXX" || ac_ct_CXX="g++"
2720 # Provide some information about the compiler.
2721 echo "$as_me:$LINENO:" \
2722 "checking for C++ compiler version" >&5
2723 ac_compiler=`set X $ac_compile; echo $2`
2724 { (eval echo "$as_me:$LINENO: \"$ac_compiler --version </dev/null >&5\"") >&5
2725 (eval $ac_compiler --version </dev/null >&5) 2>&5
2727 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2728 (exit $ac_status); }
2729 { (eval echo "$as_me:$LINENO: \"$ac_compiler -v </dev/null >&5\"") >&5
2730 (eval $ac_compiler -v </dev/null >&5) 2>&5
2732 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2733 (exit $ac_status); }
2734 { (eval echo "$as_me:$LINENO: \"$ac_compiler -V </dev/null >&5\"") >&5
2735 (eval $ac_compiler -V </dev/null >&5) 2>&5
2737 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2738 (exit $ac_status); }
2740 echo "$as_me:$LINENO: checking whether we are using the GNU C++ compiler" >&5
2741 echo $ECHO_N "checking whether we are using the GNU C++ compiler... $ECHO_C" >&6
2742 if test "${ac_cv_cxx_compiler_gnu+set}" = set; then
2743 echo $ECHO_N "(cached) $ECHO_C" >&6
2745 cat >conftest.$ac_ext <<_ACEOF
2748 cat confdefs.h >>conftest.$ac_ext
2749 cat >>conftest.$ac_ext <<_ACEOF
2750 /* end confdefs.h. */
2763 rm -f conftest.$ac_objext
2764 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2765 (eval $ac_compile) 2>conftest.er1
2767 grep -v '^ *+' conftest.er1 >conftest.err
2769 cat conftest.err >&5
2770 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2771 (exit $ac_status); } &&
2772 { ac_try='test -z "$ac_cxx_werror_flag"
2773 || test ! -s conftest.err'
2774 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2777 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2778 (exit $ac_status); }; } &&
2779 { ac_try='test -s conftest.$ac_objext'
2780 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2783 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2784 (exit $ac_status); }; }; then
2787 echo "$as_me: failed program was:" >&5
2788 sed 's/^/| /' conftest.$ac_ext >&5
2792 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
2793 ac_cv_cxx_compiler_gnu=$ac_compiler_gnu
2796 echo "$as_me:$LINENO: result: $ac_cv_cxx_compiler_gnu" >&5
2797 echo "${ECHO_T}$ac_cv_cxx_compiler_gnu" >&6
2798 GXX=`test $ac_compiler_gnu = yes && echo yes`
2799 ac_test_CXXFLAGS=${CXXFLAGS+set}
2800 ac_save_CXXFLAGS=$CXXFLAGS
2802 echo "$as_me:$LINENO: checking whether $CXX accepts -g" >&5
2803 echo $ECHO_N "checking whether $CXX accepts -g... $ECHO_C" >&6
2804 if test "${ac_cv_prog_cxx_g+set}" = set; then
2805 echo $ECHO_N "(cached) $ECHO_C" >&6
2807 cat >conftest.$ac_ext <<_ACEOF
2810 cat confdefs.h >>conftest.$ac_ext
2811 cat >>conftest.$ac_ext <<_ACEOF
2812 /* end confdefs.h. */
2822 rm -f conftest.$ac_objext
2823 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2824 (eval $ac_compile) 2>conftest.er1
2826 grep -v '^ *+' conftest.er1 >conftest.err
2828 cat conftest.err >&5
2829 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2830 (exit $ac_status); } &&
2831 { ac_try='test -z "$ac_cxx_werror_flag"
2832 || test ! -s conftest.err'
2833 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2836 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2837 (exit $ac_status); }; } &&
2838 { ac_try='test -s conftest.$ac_objext'
2839 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2842 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2843 (exit $ac_status); }; }; then
2844 ac_cv_prog_cxx_g=yes
2846 echo "$as_me: failed program was:" >&5
2847 sed 's/^/| /' conftest.$ac_ext >&5
2851 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
2853 echo "$as_me:$LINENO: result: $ac_cv_prog_cxx_g" >&5
2854 echo "${ECHO_T}$ac_cv_prog_cxx_g" >&6
2855 if test "$ac_test_CXXFLAGS" = set; then
2856 CXXFLAGS=$ac_save_CXXFLAGS
2857 elif test $ac_cv_prog_cxx_g = yes; then
2858 if test "$GXX" = yes; then
2864 if test "$GXX" = yes; then
2870 for ac_declaration in \
2872 'extern "C" void std::exit (int) throw (); using std::exit;' \
2873 'extern "C" void std::exit (int); using std::exit;' \
2874 'extern "C" void exit (int) throw ();' \
2875 'extern "C" void exit (int);' \
2878 cat >conftest.$ac_ext <<_ACEOF
2881 cat confdefs.h >>conftest.$ac_ext
2882 cat >>conftest.$ac_ext <<_ACEOF
2883 /* end confdefs.h. */
2894 rm -f conftest.$ac_objext
2895 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2896 (eval $ac_compile) 2>conftest.er1
2898 grep -v '^ *+' conftest.er1 >conftest.err
2900 cat conftest.err >&5
2901 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2902 (exit $ac_status); } &&
2903 { ac_try='test -z "$ac_cxx_werror_flag"
2904 || test ! -s conftest.err'
2905 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2908 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2909 (exit $ac_status); }; } &&
2910 { ac_try='test -s conftest.$ac_objext'
2911 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2914 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2915 (exit $ac_status); }; }; then
2918 echo "$as_me: failed program was:" >&5
2919 sed 's/^/| /' conftest.$ac_ext >&5
2923 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
2924 cat >conftest.$ac_ext <<_ACEOF
2927 cat confdefs.h >>conftest.$ac_ext
2928 cat >>conftest.$ac_ext <<_ACEOF
2929 /* end confdefs.h. */
2939 rm -f conftest.$ac_objext
2940 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2941 (eval $ac_compile) 2>conftest.er1
2943 grep -v '^ *+' conftest.er1 >conftest.err
2945 cat conftest.err >&5
2946 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2947 (exit $ac_status); } &&
2948 { ac_try='test -z "$ac_cxx_werror_flag"
2949 || test ! -s conftest.err'
2950 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2953 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2954 (exit $ac_status); }; } &&
2955 { ac_try='test -s conftest.$ac_objext'
2956 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2959 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2960 (exit $ac_status); }; }; then
2963 echo "$as_me: failed program was:" >&5
2964 sed 's/^/| /' conftest.$ac_ext >&5
2967 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
2970 if test -n "$ac_declaration"; then
2971 echo '#ifdef __cplusplus' >>confdefs.h
2972 echo $ac_declaration >>confdefs.h
2973 echo '#endif' >>confdefs.h
2977 ac_cpp='$CPP $CPPFLAGS'
2978 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2979 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2980 ac_compiler_gnu=$ac_cv_c_compiler_gnu
2982 CXXFLAGS="$save_CXXFLAGS"
2988 am__api_version="1.9"
2989 # Find a good install program. We prefer a C program (faster),
2990 # so one script is as good as another. But avoid the broken or
2991 # incompatible versions:
2992 # SysV /etc/install, /usr/sbin/install
2993 # SunOS /usr/etc/install
2994 # IRIX /sbin/install
2996 # AmigaOS /C/install, which installs bootblocks on floppy discs
2997 # AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag
2998 # AFS /usr/afsws/bin/install, which mishandles nonexistent args
2999 # SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff"
3000 # OS/2's system install, which has a completely different semantic
3001 # ./install, which can be erroneously created by make from ./install.sh.
3002 echo "$as_me:$LINENO: checking for a BSD-compatible install" >&5
3003 echo $ECHO_N "checking for a BSD-compatible install... $ECHO_C" >&6
3004 if test -z "$INSTALL"; then
3005 if test "${ac_cv_path_install+set}" = set; then
3006 echo $ECHO_N "(cached) $ECHO_C" >&6
3008 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3012 test -z "$as_dir" && as_dir=.
3013 # Account for people who put trailing slashes in PATH elements.
3015 ./ | .// | /cC/* | \
3016 /etc/* | /usr/sbin/* | /usr/etc/* | /sbin/* | /usr/afsws/bin/* | \
3017 ?:\\/os2\\/install\\/* | ?:\\/OS2\\/INSTALL\\/* | \
3020 # OSF1 and SCO ODT 3.0 have their own names for install.
3021 # Don't use installbsd from OSF since it installs stuff as root
3023 for ac_prog in ginstall scoinst install; do
3024 for ac_exec_ext in '' $ac_executable_extensions; do
3025 if $as_executable_p "$as_dir/$ac_prog$ac_exec_ext"; then
3026 if test $ac_prog = install &&
3027 grep dspmsg "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
3028 # AIX install. It has an incompatible calling convention.
3030 elif test $ac_prog = install &&
3031 grep pwplus "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
3032 # program-specific install script used by HP pwplus--don't use.
3035 ac_cv_path_install="$as_dir/$ac_prog$ac_exec_ext -c"
3047 if test "${ac_cv_path_install+set}" = set; then
3048 INSTALL=$ac_cv_path_install
3050 # As a last resort, use the slow shell script. We don't cache a
3051 # path for INSTALL within a source directory, because that will
3052 # break other packages using the cache if that directory is
3053 # removed, or if the path is relative.
3054 INSTALL=$ac_install_sh
3057 echo "$as_me:$LINENO: result: $INSTALL" >&5
3058 echo "${ECHO_T}$INSTALL" >&6
3060 # Use test -z because SunOS4 sh mishandles braces in ${var-val}.
3061 # It thinks the first close brace ends the variable substitution.
3062 test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}'
3064 test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL}'
3066 test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644'
3068 echo "$as_me:$LINENO: checking whether build environment is sane" >&5
3069 echo $ECHO_N "checking whether build environment is sane... $ECHO_C" >&6
3072 echo timestamp > conftest.file
3073 # Do `set' in a subshell so we don't clobber the current shell's
3074 # arguments. Must try -L first in case configure is actually a
3075 # symlink; some systems play weird games with the mod time of symlinks
3076 # (eg FreeBSD returns the mod time of the symlink's containing
3079 set X `ls -Lt $srcdir/configure conftest.file 2> /dev/null`
3080 if test "$*" = "X"; then
3082 set X `ls -t $srcdir/configure conftest.file`
3085 if test "$*" != "X $srcdir/configure conftest.file" \
3086 && test "$*" != "X conftest.file $srcdir/configure"; then
3088 # If neither matched, then we have a broken ls. This can happen
3089 # if, for instance, CONFIG_SHELL is bash and it inherits a
3090 # broken ls alias from the environment. This has actually
3091 # happened. Such a system could not be considered "sane".
3092 { { echo "$as_me:$LINENO: error: ls -t appears to fail. Make sure there is not a broken
3093 alias in your environment" >&5
3094 echo "$as_me: error: ls -t appears to fail. Make sure there is not a broken
3095 alias in your environment" >&2;}
3096 { (exit 1); exit 1; }; }
3099 test "$2" = conftest.file
3105 { { echo "$as_me:$LINENO: error: newly created file is older than distributed files!
3106 Check your system clock" >&5
3107 echo "$as_me: error: newly created file is older than distributed files!
3108 Check your system clock" >&2;}
3109 { (exit 1); exit 1; }; }
3111 echo "$as_me:$LINENO: result: yes" >&5
3112 echo "${ECHO_T}yes" >&6
3113 test "$program_prefix" != NONE &&
3114 program_transform_name="s,^,$program_prefix,;$program_transform_name"
3115 # Use a double $ so make ignores it.
3116 test "$program_suffix" != NONE &&
3117 program_transform_name="s,\$,$program_suffix,;$program_transform_name"
3118 # Double any \ or $. echo might interpret backslashes.
3119 # By default was `s,x,x', remove it if useless.
3120 cat <<\_ACEOF >conftest.sed
3121 s/[\\$]/&&/g;s/;s,x,x,$//
3123 program_transform_name=`echo $program_transform_name | sed -f conftest.sed`
3126 # expand $ac_aux_dir to an absolute path
3127 am_aux_dir=`cd $ac_aux_dir && pwd`
3129 test x"${MISSING+set}" = xset || MISSING="\${SHELL} $am_aux_dir/missing"
3130 # Use eval to expand $SHELL
3131 if eval "$MISSING --run true"; then
3132 am_missing_run="$MISSING --run "
3135 { echo "$as_me:$LINENO: WARNING: \`missing' script is too old or missing" >&5
3136 echo "$as_me: WARNING: \`missing' script is too old or missing" >&2;}
3139 if mkdir -p --version . >/dev/null 2>&1 && test ! -d ./--version; then
3140 # We used to keeping the `.' as first argument, in order to
3141 # allow $(mkdir_p) to be used without argument. As in
3142 # $(mkdir_p) $(somedir)
3143 # where $(somedir) is conditionally defined. However this is wrong
3145 # 1. if the package is installed by a user who cannot write `.'
3146 # make install will fail,
3147 # 2. the above comment should most certainly read
3148 # $(mkdir_p) $(DESTDIR)$(somedir)
3149 # so it does not work when $(somedir) is undefined and
3150 # $(DESTDIR) is not.
3151 # To support the latter case, we have to write
3152 # test -z "$(somedir)" || $(mkdir_p) $(DESTDIR)$(somedir),
3153 # so the `.' trick is pointless.
3154 mkdir_p='mkdir -p --'
3156 # On NextStep and OpenStep, the `mkdir' command does not
3157 # recognize any option. It will interpret all options as
3158 # directories to create, and then abort because `.' already
3160 for d in ./-p ./--version;
3162 test -d $d && rmdir $d
3164 # $(mkinstalldirs) is defined by Automake if mkinstalldirs exists.
3165 if test -f "$ac_aux_dir/mkinstalldirs"; then
3166 mkdir_p='$(mkinstalldirs)'
3168 mkdir_p='$(install_sh) -d'
3172 for ac_prog in gawk mawk nawk awk
3174 # Extract the first word of "$ac_prog", so it can be a program name with args.
3175 set dummy $ac_prog; ac_word=$2
3176 echo "$as_me:$LINENO: checking for $ac_word" >&5
3177 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
3178 if test "${ac_cv_prog_AWK+set}" = set; then
3179 echo $ECHO_N "(cached) $ECHO_C" >&6
3181 if test -n "$AWK"; then
3182 ac_cv_prog_AWK="$AWK" # Let the user override the test.
3184 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3188 test -z "$as_dir" && as_dir=.
3189 for ac_exec_ext in '' $ac_executable_extensions; do
3190 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3191 ac_cv_prog_AWK="$ac_prog"
3192 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
3201 if test -n "$AWK"; then
3202 echo "$as_me:$LINENO: result: $AWK" >&5
3203 echo "${ECHO_T}$AWK" >&6
3205 echo "$as_me:$LINENO: result: no" >&5
3206 echo "${ECHO_T}no" >&6
3209 test -n "$AWK" && break
3212 echo "$as_me:$LINENO: checking whether ${MAKE-make} sets \$(MAKE)" >&5
3213 echo $ECHO_N "checking whether ${MAKE-make} sets \$(MAKE)... $ECHO_C" >&6
3214 set dummy ${MAKE-make}; ac_make=`echo "$2" | sed 'y,:./+-,___p_,'`
3215 if eval "test \"\${ac_cv_prog_make_${ac_make}_set+set}\" = set"; then
3216 echo $ECHO_N "(cached) $ECHO_C" >&6
3218 cat >conftest.make <<\_ACEOF
3220 @echo 'ac_maketemp="$(MAKE)"'
3222 # GNU make sometimes prints "make[1]: Entering...", which would confuse us.
3223 eval `${MAKE-make} -f conftest.make 2>/dev/null | grep temp=`
3224 if test -n "$ac_maketemp"; then
3225 eval ac_cv_prog_make_${ac_make}_set=yes
3227 eval ac_cv_prog_make_${ac_make}_set=no
3231 if eval "test \"`echo '$ac_cv_prog_make_'${ac_make}_set`\" = yes"; then
3232 echo "$as_me:$LINENO: result: yes" >&5
3233 echo "${ECHO_T}yes" >&6
3236 echo "$as_me:$LINENO: result: no" >&5
3237 echo "${ECHO_T}no" >&6
3238 SET_MAKE="MAKE=${MAKE-make}"
3241 rm -rf .tst 2>/dev/null
3242 mkdir .tst 2>/dev/null
3243 if test -d .tst; then
3248 rmdir .tst 2>/dev/null
3250 DEPDIR="${am__leading_dot}deps"
3252 ac_config_commands="$ac_config_commands depfiles"
3255 am_make=${MAKE-make}
3256 cat > confinc << 'END'
3261 # If we don't find an include directive, just comment out the code.
3262 echo "$as_me:$LINENO: checking for style of include used by $am_make" >&5
3263 echo $ECHO_N "checking for style of include used by $am_make... $ECHO_C" >&6
3267 # First try GNU make style include.
3268 echo "include confinc" > confmf
3269 # We grep out `Entering directory' and `Leaving directory'
3270 # messages which can occur if `w' ends up in MAKEFLAGS.
3271 # In particular we don't look at `^make:' because GNU make might
3272 # be invoked under some other name (usually "gmake"), in which
3273 # case it prints its new name instead of `make'.
3274 if test "`$am_make -s -f confmf 2> /dev/null | grep -v 'ing directory'`" = "done"; then
3279 # Now try BSD make style include.
3280 if test "$am__include" = "#"; then
3281 echo '.include "confinc"' > confmf
3282 if test "`$am_make -s -f confmf 2> /dev/null`" = "done"; then
3283 am__include=.include
3290 echo "$as_me:$LINENO: result: $_am_result" >&5
3291 echo "${ECHO_T}$_am_result" >&6
3292 rm -f confinc confmf
3294 # Check whether --enable-dependency-tracking or --disable-dependency-tracking was given.
3295 if test "${enable_dependency_tracking+set}" = set; then
3296 enableval="$enable_dependency_tracking"
3299 if test "x$enable_dependency_tracking" != xno; then
3300 am_depcomp="$ac_aux_dir/depcomp"
3305 if test "x$enable_dependency_tracking" != xno; then
3315 # test to see if srcdir already configured
3316 if test "`cd $srcdir && pwd`" != "`pwd`" &&
3317 test -f $srcdir/config.status; then
3318 { { echo "$as_me:$LINENO: error: source directory already configured; run \"make distclean\" there first" >&5
3319 echo "$as_me: error: source directory already configured; run \"make distclean\" there first" >&2;}
3320 { (exit 1); exit 1; }; }
3323 # test whether we have cygpath
3324 if test -z "$CYGPATH_W"; then
3325 if (cygpath --version) >/dev/null 2>/dev/null; then
3326 CYGPATH_W='cygpath -w'
3333 # Define the identity of the package.
3335 VERSION='version-unused'
3338 cat >>confdefs.h <<_ACEOF
3339 #define PACKAGE "$PACKAGE"
3343 cat >>confdefs.h <<_ACEOF
3344 #define VERSION "$VERSION"
3347 # Some tools Automake needs.
3349 ACLOCAL=${ACLOCAL-"${am_missing_run}aclocal-${am__api_version}"}
3352 AUTOCONF=${AUTOCONF-"${am_missing_run}autoconf"}
3355 AUTOMAKE=${AUTOMAKE-"${am_missing_run}automake-${am__api_version}"}
3358 AUTOHEADER=${AUTOHEADER-"${am_missing_run}autoheader"}
3361 MAKEINFO=${MAKEINFO-"${am_missing_run}makeinfo"}
3363 install_sh=${install_sh-"$am_aux_dir/install-sh"}
3365 # Installed binaries are usually stripped using `strip' when the user
3366 # run `make install-strip'. However `strip' might not be the right
3367 # tool to use in cross-compilation environments, therefore Automake
3368 # will honor the `STRIP' environment variable to overrule this program.
3369 if test "$cross_compiling" != no; then
3370 if test -n "$ac_tool_prefix"; then
3371 # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args.
3372 set dummy ${ac_tool_prefix}strip; ac_word=$2
3373 echo "$as_me:$LINENO: checking for $ac_word" >&5
3374 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
3375 if test "${ac_cv_prog_STRIP+set}" = set; then
3376 echo $ECHO_N "(cached) $ECHO_C" >&6
3378 if test -n "$STRIP"; then
3379 ac_cv_prog_STRIP="$STRIP" # Let the user override the test.
3381 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3385 test -z "$as_dir" && as_dir=.
3386 for ac_exec_ext in '' $ac_executable_extensions; do
3387 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3388 ac_cv_prog_STRIP="${ac_tool_prefix}strip"
3389 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
3397 STRIP=$ac_cv_prog_STRIP
3398 if test -n "$STRIP"; then
3399 echo "$as_me:$LINENO: result: $STRIP" >&5
3400 echo "${ECHO_T}$STRIP" >&6
3402 echo "$as_me:$LINENO: result: no" >&5
3403 echo "${ECHO_T}no" >&6
3407 if test -z "$ac_cv_prog_STRIP"; then
3409 # Extract the first word of "strip", so it can be a program name with args.
3410 set dummy strip; ac_word=$2
3411 echo "$as_me:$LINENO: checking for $ac_word" >&5
3412 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
3413 if test "${ac_cv_prog_ac_ct_STRIP+set}" = set; then
3414 echo $ECHO_N "(cached) $ECHO_C" >&6
3416 if test -n "$ac_ct_STRIP"; then
3417 ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test.
3419 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3423 test -z "$as_dir" && as_dir=.
3424 for ac_exec_ext in '' $ac_executable_extensions; do
3425 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3426 ac_cv_prog_ac_ct_STRIP="strip"
3427 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
3433 test -z "$ac_cv_prog_ac_ct_STRIP" && ac_cv_prog_ac_ct_STRIP=":"
3436 ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP
3437 if test -n "$ac_ct_STRIP"; then
3438 echo "$as_me:$LINENO: result: $ac_ct_STRIP" >&5
3439 echo "${ECHO_T}$ac_ct_STRIP" >&6
3441 echo "$as_me:$LINENO: result: no" >&5
3442 echo "${ECHO_T}no" >&6
3447 STRIP="$ac_cv_prog_STRIP"
3451 INSTALL_STRIP_PROGRAM="\${SHELL} \$(install_sh) -c -s"
3453 # We need awk for the "check" target. The system "awk" is bad on
3455 # Always define AMTAR for backward compatibility.
3457 AMTAR=${AMTAR-"${am_missing_run}tar"}
3459 am__tar='${AMTAR} chof - "$$tardir"'; am__untar='${AMTAR} xf -'
3464 depcc="$CC" am_compiler_list=
3466 echo "$as_me:$LINENO: checking dependency style of $depcc" >&5
3467 echo $ECHO_N "checking dependency style of $depcc... $ECHO_C" >&6
3468 if test "${am_cv_CC_dependencies_compiler_type+set}" = set; then
3469 echo $ECHO_N "(cached) $ECHO_C" >&6
3471 if test -z "$AMDEP_TRUE" && test -f "$am_depcomp"; then
3472 # We make a subdir and do the tests there. Otherwise we can end up
3473 # making bogus files that we don't know about and never remove. For
3474 # instance it was reported that on HP-UX the gcc test will end up
3475 # making a dummy file named `D' -- because `-MD' means `put the output
3478 # Copy depcomp to subdir because otherwise we won't find it if we're
3479 # using a relative directory.
3480 cp "$am_depcomp" conftest.dir
3482 # We will build objects and dependencies in a subdirectory because
3483 # it helps to detect inapplicable dependency modes. For instance
3484 # both Tru64's cc and ICC support -MD to output dependencies as a
3485 # side effect of compilation, but ICC will put the dependencies in
3486 # the current directory while Tru64 will put them in the object
3490 am_cv_CC_dependencies_compiler_type=none
3491 if test "$am_compiler_list" = ""; then
3492 am_compiler_list=`sed -n 's/^#*\([a-zA-Z0-9]*\))$/\1/p' < ./depcomp`
3494 for depmode in $am_compiler_list; do
3495 # Setup a source with many dependencies, because some compilers
3496 # like to wrap large dependency lists on column 80 (with \), and
3497 # we should not choose a depcomp mode which is confused by this.
3499 # We need to recreate these files for each test, as the compiler may
3500 # overwrite some of them when testing with obscure command lines.
3501 # This happens at least with the AIX C compiler.
3503 for i in 1 2 3 4 5 6; do
3504 echo '#include "conftst'$i'.h"' >> sub/conftest.c
3505 # Using `: > sub/conftst$i.h' creates only sub/conftst1.h with
3506 # Solaris 8's {/usr,}/bin/sh.
3507 touch sub/conftst$i.h
3509 echo "${am__include} ${am__quote}sub/conftest.Po${am__quote}" > confmf
3513 # after this tag, mechanisms are not by side-effect, so they'll
3514 # only be used when explicitly requested
3515 if test "x$enable_dependency_tracking" = xyes; then
3523 # We check with `-c' and `-o' for the sake of the "dashmstdout"
3524 # mode. It turns out that the SunPro C++ compiler does not properly
3525 # handle `-M -o', and we need to detect this.
3526 if depmode=$depmode \
3527 source=sub/conftest.c object=sub/conftest.${OBJEXT-o} \
3528 depfile=sub/conftest.Po tmpdepfile=sub/conftest.TPo \
3529 $SHELL ./depcomp $depcc -c -o sub/conftest.${OBJEXT-o} sub/conftest.c \
3530 >/dev/null 2>conftest.err &&
3531 grep sub/conftst6.h sub/conftest.Po > /dev/null 2>&1 &&
3532 grep sub/conftest.${OBJEXT-o} sub/conftest.Po > /dev/null 2>&1 &&
3533 ${MAKE-make} -s -f confmf > /dev/null 2>&1; then
3534 # icc doesn't choke on unknown options, it will just issue warnings
3535 # or remarks (even with -Werror). So we grep stderr for any message
3536 # that says an option was ignored or not supported.
3537 # When given -MP, icc 7.0 and 7.1 complain thusly:
3538 # icc: Command line warning: ignoring option '-M'; no argument required
3539 # The diagnosis changed in icc 8.0:
3540 # icc: Command line remark: option '-MP' not supported
3541 if (grep 'ignoring option' conftest.err ||
3542 grep 'not supported' conftest.err) >/dev/null 2>&1; then :; else
3543 am_cv_CC_dependencies_compiler_type=$depmode
3552 am_cv_CC_dependencies_compiler_type=none
3556 echo "$as_me:$LINENO: result: $am_cv_CC_dependencies_compiler_type" >&5
3557 echo "${ECHO_T}$am_cv_CC_dependencies_compiler_type" >&6
3558 CCDEPMODE=depmode=$am_cv_CC_dependencies_compiler_type
3563 test "x$enable_dependency_tracking" != xno \
3564 && test "$am_cv_CC_dependencies_compiler_type" = gcc3; then
3566 am__fastdepCC_FALSE='#'
3568 am__fastdepCC_TRUE='#'
3569 am__fastdepCC_FALSE=
3573 depcc="$CXX" am_compiler_list=
3575 echo "$as_me:$LINENO: checking dependency style of $depcc" >&5
3576 echo $ECHO_N "checking dependency style of $depcc... $ECHO_C" >&6
3577 if test "${am_cv_CXX_dependencies_compiler_type+set}" = set; then
3578 echo $ECHO_N "(cached) $ECHO_C" >&6
3580 if test -z "$AMDEP_TRUE" && test -f "$am_depcomp"; then
3581 # We make a subdir and do the tests there. Otherwise we can end up
3582 # making bogus files that we don't know about and never remove. For
3583 # instance it was reported that on HP-UX the gcc test will end up
3584 # making a dummy file named `D' -- because `-MD' means `put the output
3587 # Copy depcomp to subdir because otherwise we won't find it if we're
3588 # using a relative directory.
3589 cp "$am_depcomp" conftest.dir
3591 # We will build objects and dependencies in a subdirectory because
3592 # it helps to detect inapplicable dependency modes. For instance
3593 # both Tru64's cc and ICC support -MD to output dependencies as a
3594 # side effect of compilation, but ICC will put the dependencies in
3595 # the current directory while Tru64 will put them in the object
3599 am_cv_CXX_dependencies_compiler_type=none
3600 if test "$am_compiler_list" = ""; then
3601 am_compiler_list=`sed -n 's/^#*\([a-zA-Z0-9]*\))$/\1/p' < ./depcomp`
3603 for depmode in $am_compiler_list; do
3604 # Setup a source with many dependencies, because some compilers
3605 # like to wrap large dependency lists on column 80 (with \), and
3606 # we should not choose a depcomp mode which is confused by this.
3608 # We need to recreate these files for each test, as the compiler may
3609 # overwrite some of them when testing with obscure command lines.
3610 # This happens at least with the AIX C compiler.
3612 for i in 1 2 3 4 5 6; do
3613 echo '#include "conftst'$i'.h"' >> sub/conftest.c
3614 # Using `: > sub/conftst$i.h' creates only sub/conftst1.h with
3615 # Solaris 8's {/usr,}/bin/sh.
3616 touch sub/conftst$i.h
3618 echo "${am__include} ${am__quote}sub/conftest.Po${am__quote}" > confmf
3622 # after this tag, mechanisms are not by side-effect, so they'll
3623 # only be used when explicitly requested
3624 if test "x$enable_dependency_tracking" = xyes; then
3632 # We check with `-c' and `-o' for the sake of the "dashmstdout"
3633 # mode. It turns out that the SunPro C++ compiler does not properly
3634 # handle `-M -o', and we need to detect this.
3635 if depmode=$depmode \
3636 source=sub/conftest.c object=sub/conftest.${OBJEXT-o} \
3637 depfile=sub/conftest.Po tmpdepfile=sub/conftest.TPo \
3638 $SHELL ./depcomp $depcc -c -o sub/conftest.${OBJEXT-o} sub/conftest.c \
3639 >/dev/null 2>conftest.err &&
3640 grep sub/conftst6.h sub/conftest.Po > /dev/null 2>&1 &&
3641 grep sub/conftest.${OBJEXT-o} sub/conftest.Po > /dev/null 2>&1 &&
3642 ${MAKE-make} -s -f confmf > /dev/null 2>&1; then
3643 # icc doesn't choke on unknown options, it will just issue warnings
3644 # or remarks (even with -Werror). So we grep stderr for any message
3645 # that says an option was ignored or not supported.
3646 # When given -MP, icc 7.0 and 7.1 complain thusly:
3647 # icc: Command line warning: ignoring option '-M'; no argument required
3648 # The diagnosis changed in icc 8.0:
3649 # icc: Command line remark: option '-MP' not supported
3650 if (grep 'ignoring option' conftest.err ||
3651 grep 'not supported' conftest.err) >/dev/null 2>&1; then :; else
3652 am_cv_CXX_dependencies_compiler_type=$depmode
3661 am_cv_CXX_dependencies_compiler_type=none
3665 echo "$as_me:$LINENO: result: $am_cv_CXX_dependencies_compiler_type" >&5
3666 echo "${ECHO_T}$am_cv_CXX_dependencies_compiler_type" >&6
3667 CXXDEPMODE=depmode=$am_cv_CXX_dependencies_compiler_type
3672 test "x$enable_dependency_tracking" != xno \
3673 && test "$am_cv_CXX_dependencies_compiler_type" = gcc3; then
3674 am__fastdepCXX_TRUE=
3675 am__fastdepCXX_FALSE='#'
3677 am__fastdepCXX_TRUE='#'
3678 am__fastdepCXX_FALSE=
3684 if test -n "$ac_tool_prefix"; then
3685 # Extract the first word of "${ac_tool_prefix}as", so it can be a program name with args.
3686 set dummy ${ac_tool_prefix}as; ac_word=$2
3687 echo "$as_me:$LINENO: checking for $ac_word" >&5
3688 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
3689 if test "${ac_cv_prog_AS+set}" = set; then
3690 echo $ECHO_N "(cached) $ECHO_C" >&6
3692 if test -n "$AS"; then
3693 ac_cv_prog_AS="$AS" # Let the user override the test.
3695 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3699 test -z "$as_dir" && as_dir=.
3700 for ac_exec_ext in '' $ac_executable_extensions; do
3701 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3702 ac_cv_prog_AS="${ac_tool_prefix}as"
3703 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
3712 if test -n "$AS"; then
3713 echo "$as_me:$LINENO: result: $AS" >&5
3714 echo "${ECHO_T}$AS" >&6
3716 echo "$as_me:$LINENO: result: no" >&5
3717 echo "${ECHO_T}no" >&6
3721 if test -z "$ac_cv_prog_AS"; then
3723 # Extract the first word of "as", so it can be a program name with args.
3724 set dummy as; ac_word=$2
3725 echo "$as_me:$LINENO: checking for $ac_word" >&5
3726 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
3727 if test "${ac_cv_prog_ac_ct_AS+set}" = set; then
3728 echo $ECHO_N "(cached) $ECHO_C" >&6
3730 if test -n "$ac_ct_AS"; then
3731 ac_cv_prog_ac_ct_AS="$ac_ct_AS" # Let the user override the test.
3733 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3737 test -z "$as_dir" && as_dir=.
3738 for ac_exec_ext in '' $ac_executable_extensions; do
3739 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3740 ac_cv_prog_ac_ct_AS="as"
3741 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
3749 ac_ct_AS=$ac_cv_prog_ac_ct_AS
3750 if test -n "$ac_ct_AS"; then
3751 echo "$as_me:$LINENO: result: $ac_ct_AS" >&5
3752 echo "${ECHO_T}$ac_ct_AS" >&6
3754 echo "$as_me:$LINENO: result: no" >&5
3755 echo "${ECHO_T}no" >&6
3763 if test -n "$ac_tool_prefix"; then
3764 # Extract the first word of "${ac_tool_prefix}ld", so it can be a program name with args.
3765 set dummy ${ac_tool_prefix}ld; ac_word=$2
3766 echo "$as_me:$LINENO: checking for $ac_word" >&5
3767 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
3768 if test "${ac_cv_prog_LD+set}" = set; then
3769 echo $ECHO_N "(cached) $ECHO_C" >&6
3771 if test -n "$LD"; then
3772 ac_cv_prog_LD="$LD" # Let the user override the test.
3774 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3778 test -z "$as_dir" && as_dir=.
3779 for ac_exec_ext in '' $ac_executable_extensions; do
3780 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3781 ac_cv_prog_LD="${ac_tool_prefix}ld"
3782 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
3791 if test -n "$LD"; then
3792 echo "$as_me:$LINENO: result: $LD" >&5
3793 echo "${ECHO_T}$LD" >&6
3795 echo "$as_me:$LINENO: result: no" >&5
3796 echo "${ECHO_T}no" >&6
3800 if test -z "$ac_cv_prog_LD"; then
3802 # Extract the first word of "ld", so it can be a program name with args.
3803 set dummy ld; ac_word=$2
3804 echo "$as_me:$LINENO: checking for $ac_word" >&5
3805 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
3806 if test "${ac_cv_prog_ac_ct_LD+set}" = set; then
3807 echo $ECHO_N "(cached) $ECHO_C" >&6
3809 if test -n "$ac_ct_LD"; then
3810 ac_cv_prog_ac_ct_LD="$ac_ct_LD" # Let the user override the test.
3812 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3816 test -z "$as_dir" && as_dir=.
3817 for ac_exec_ext in '' $ac_executable_extensions; do
3818 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3819 ac_cv_prog_ac_ct_LD="ld"
3820 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
3828 ac_ct_LD=$ac_cv_prog_ac_ct_LD
3829 if test -n "$ac_ct_LD"; then
3830 echo "$as_me:$LINENO: result: $ac_ct_LD" >&5
3831 echo "${ECHO_T}$ac_ct_LD" >&6
3833 echo "$as_me:$LINENO: result: no" >&5
3834 echo "${ECHO_T}no" >&6
3842 if test -n "$ac_tool_prefix"; then
3843 # Extract the first word of "${ac_tool_prefix}ar", so it can be a program name with args.
3844 set dummy ${ac_tool_prefix}ar; ac_word=$2
3845 echo "$as_me:$LINENO: checking for $ac_word" >&5
3846 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
3847 if test "${ac_cv_prog_AR+set}" = set; then
3848 echo $ECHO_N "(cached) $ECHO_C" >&6
3850 if test -n "$AR"; then
3851 ac_cv_prog_AR="$AR" # Let the user override the test.
3853 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3857 test -z "$as_dir" && as_dir=.
3858 for ac_exec_ext in '' $ac_executable_extensions; do
3859 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3860 ac_cv_prog_AR="${ac_tool_prefix}ar"
3861 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
3870 if test -n "$AR"; then
3871 echo "$as_me:$LINENO: result: $AR" >&5
3872 echo "${ECHO_T}$AR" >&6
3874 echo "$as_me:$LINENO: result: no" >&5
3875 echo "${ECHO_T}no" >&6
3879 if test -z "$ac_cv_prog_AR"; then
3881 # Extract the first word of "ar", so it can be a program name with args.
3882 set dummy ar; ac_word=$2
3883 echo "$as_me:$LINENO: checking for $ac_word" >&5
3884 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
3885 if test "${ac_cv_prog_ac_ct_AR+set}" = set; then
3886 echo $ECHO_N "(cached) $ECHO_C" >&6
3888 if test -n "$ac_ct_AR"; then
3889 ac_cv_prog_ac_ct_AR="$ac_ct_AR" # Let the user override the test.
3891 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3895 test -z "$as_dir" && as_dir=.
3896 for ac_exec_ext in '' $ac_executable_extensions; do
3897 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3898 ac_cv_prog_ac_ct_AR="ar"
3899 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
3907 ac_ct_AR=$ac_cv_prog_ac_ct_AR
3908 if test -n "$ac_ct_AR"; then
3909 echo "$as_me:$LINENO: result: $ac_ct_AR" >&5
3910 echo "${ECHO_T}$ac_ct_AR" >&6
3912 echo "$as_me:$LINENO: result: no" >&5
3913 echo "${ECHO_T}no" >&6
3921 if test -n "$ac_tool_prefix"; then
3922 # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args.
3923 set dummy ${ac_tool_prefix}ranlib; ac_word=$2
3924 echo "$as_me:$LINENO: checking for $ac_word" >&5
3925 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
3926 if test "${ac_cv_prog_RANLIB+set}" = set; then
3927 echo $ECHO_N "(cached) $ECHO_C" >&6
3929 if test -n "$RANLIB"; then
3930 ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
3932 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3936 test -z "$as_dir" && as_dir=.
3937 for ac_exec_ext in '' $ac_executable_extensions; do
3938 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3939 ac_cv_prog_RANLIB="${ac_tool_prefix}ranlib"
3940 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
3948 RANLIB=$ac_cv_prog_RANLIB
3949 if test -n "$RANLIB"; then
3950 echo "$as_me:$LINENO: result: $RANLIB" >&5
3951 echo "${ECHO_T}$RANLIB" >&6
3953 echo "$as_me:$LINENO: result: no" >&5
3954 echo "${ECHO_T}no" >&6
3958 if test -z "$ac_cv_prog_RANLIB"; then
3959 ac_ct_RANLIB=$RANLIB
3960 # Extract the first word of "ranlib", so it can be a program name with args.
3961 set dummy ranlib; ac_word=$2
3962 echo "$as_me:$LINENO: checking for $ac_word" >&5
3963 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
3964 if test "${ac_cv_prog_ac_ct_RANLIB+set}" = set; then
3965 echo $ECHO_N "(cached) $ECHO_C" >&6
3967 if test -n "$ac_ct_RANLIB"; then
3968 ac_cv_prog_ac_ct_RANLIB="$ac_ct_RANLIB" # Let the user override the test.
3970 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3974 test -z "$as_dir" && as_dir=.
3975 for ac_exec_ext in '' $ac_executable_extensions; do
3976 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3977 ac_cv_prog_ac_ct_RANLIB="ranlib"
3978 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
3984 test -z "$ac_cv_prog_ac_ct_RANLIB" && ac_cv_prog_ac_ct_RANLIB=":"
3987 ac_ct_RANLIB=$ac_cv_prog_ac_ct_RANLIB
3988 if test -n "$ac_ct_RANLIB"; then
3989 echo "$as_me:$LINENO: result: $ac_ct_RANLIB" >&5
3990 echo "${ECHO_T}$ac_ct_RANLIB" >&6
3992 echo "$as_me:$LINENO: result: no" >&5
3993 echo "${ECHO_T}no" >&6
3996 RANLIB=$ac_ct_RANLIB
3998 RANLIB="$ac_cv_prog_RANLIB"
4001 for ac_prog in gawk mawk nawk awk
4003 # Extract the first word of "$ac_prog", so it can be a program name with args.
4004 set dummy $ac_prog; ac_word=$2
4005 echo "$as_me:$LINENO: checking for $ac_word" >&5
4006 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
4007 if test "${ac_cv_prog_AWK+set}" = set; then
4008 echo $ECHO_N "(cached) $ECHO_C" >&6
4010 if test -n "$AWK"; then
4011 ac_cv_prog_AWK="$AWK" # Let the user override the test.
4013 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4017 test -z "$as_dir" && as_dir=.
4018 for ac_exec_ext in '' $ac_executable_extensions; do
4019 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4020 ac_cv_prog_AWK="$ac_prog"
4021 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4030 if test -n "$AWK"; then
4031 echo "$as_me:$LINENO: result: $AWK" >&5
4032 echo "${ECHO_T}$AWK" >&6
4034 echo "$as_me:$LINENO: result: no" >&5
4035 echo "${ECHO_T}no" >&6
4038 test -n "$AWK" && break
4041 for ac_prog in jar fastjar
4043 # Extract the first word of "$ac_prog", so it can be a program name with args.
4044 set dummy $ac_prog; ac_word=$2
4045 echo "$as_me:$LINENO: checking for $ac_word" >&5
4046 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
4047 if test "${ac_cv_prog_JAR+set}" = set; then
4048 echo $ECHO_N "(cached) $ECHO_C" >&6
4050 if test -n "$JAR"; then
4051 ac_cv_prog_JAR="$JAR" # Let the user override the test.
4053 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4057 test -z "$as_dir" && as_dir=.
4058 for ac_exec_ext in '' $ac_executable_extensions; do
4059 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4060 ac_cv_prog_JAR="$ac_prog"
4061 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4070 if test -n "$JAR"; then
4071 echo "$as_me:$LINENO: result: $JAR" >&5
4072 echo "${ECHO_T}$JAR" >&6
4074 echo "$as_me:$LINENO: result: no" >&5
4075 echo "${ECHO_T}no" >&6
4078 test -n "$JAR" && break
4080 test -n "$JAR" || JAR="no"
4082 # Extract the first word of "zip", so it can be a program name with args.
4083 set dummy zip; ac_word=$2
4084 echo "$as_me:$LINENO: checking for $ac_word" >&5
4085 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
4086 if test "${ac_cv_path_ZIP+set}" = set; then
4087 echo $ECHO_N "(cached) $ECHO_C" >&6
4091 ac_cv_path_ZIP="$ZIP" # Let the user override the test with a path.
4094 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4098 test -z "$as_dir" && as_dir=.
4099 for ac_exec_ext in '' $ac_executable_extensions; do
4100 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4101 ac_cv_path_ZIP="$as_dir/$ac_word$ac_exec_ext"
4102 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4108 test -z "$ac_cv_path_ZIP" && ac_cv_path_ZIP="no"
4114 if test -n "$ZIP"; then
4115 echo "$as_me:$LINENO: result: $ZIP" >&5
4116 echo "${ECHO_T}$ZIP" >&6
4118 echo "$as_me:$LINENO: result: no" >&5
4119 echo "${ECHO_T}no" >&6
4122 # Extract the first word of "unzip", so it can be a program name with args.
4123 set dummy unzip; ac_word=$2
4124 echo "$as_me:$LINENO: checking for $ac_word" >&5
4125 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
4126 if test "${ac_cv_path_UNZIP+set}" = set; then
4127 echo $ECHO_N "(cached) $ECHO_C" >&6
4131 ac_cv_path_UNZIP="$UNZIP" # Let the user override the test with a path.
4134 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4138 test -z "$as_dir" && as_dir=.
4139 for ac_exec_ext in '' $ac_executable_extensions; do
4140 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4141 ac_cv_path_UNZIP="$as_dir/$ac_word$ac_exec_ext"
4142 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4148 test -z "$ac_cv_path_UNZIP" && ac_cv_path_UNZIP="unzip"
4152 UNZIP=$ac_cv_path_UNZIP
4154 if test -n "$UNZIP"; then
4155 echo "$as_me:$LINENO: result: $UNZIP" >&5
4156 echo "${ECHO_T}$UNZIP" >&6
4158 echo "$as_me:$LINENO: result: no" >&5
4159 echo "${ECHO_T}no" >&6
4164 if test "$JAR" = no; then
4172 if test "$ZIP" = no; then
4173 if test "$JAR" = no; then
4174 { { echo "$as_me:$LINENO: error: cannot find neither zip nor jar, cannot continue" >&5
4175 echo "$as_me: error: cannot find neither zip nor jar, cannot continue" >&2;}
4176 { (exit 1); exit 1; }; }
4179 # InfoZIP available, use the 'guaranteed' Bourne-shell JAR to build libjava
4180 JAR=`pwd`/scripts/jar
4183 # Find a good install program. We prefer a C program (faster),
4184 # so one script is as good as another. But avoid the broken or
4185 # incompatible versions:
4186 # SysV /etc/install, /usr/sbin/install
4187 # SunOS /usr/etc/install
4188 # IRIX /sbin/install
4190 # AmigaOS /C/install, which installs bootblocks on floppy discs
4191 # AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag
4192 # AFS /usr/afsws/bin/install, which mishandles nonexistent args
4193 # SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff"
4194 # OS/2's system install, which has a completely different semantic
4195 # ./install, which can be erroneously created by make from ./install.sh.
4196 echo "$as_me:$LINENO: checking for a BSD-compatible install" >&5
4197 echo $ECHO_N "checking for a BSD-compatible install... $ECHO_C" >&6
4198 if test -z "$INSTALL"; then
4199 if test "${ac_cv_path_install+set}" = set; then
4200 echo $ECHO_N "(cached) $ECHO_C" >&6
4202 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4206 test -z "$as_dir" && as_dir=.
4207 # Account for people who put trailing slashes in PATH elements.
4209 ./ | .// | /cC/* | \
4210 /etc/* | /usr/sbin/* | /usr/etc/* | /sbin/* | /usr/afsws/bin/* | \
4211 ?:\\/os2\\/install\\/* | ?:\\/OS2\\/INSTALL\\/* | \
4214 # OSF1 and SCO ODT 3.0 have their own names for install.
4215 # Don't use installbsd from OSF since it installs stuff as root
4217 for ac_prog in ginstall scoinst install; do
4218 for ac_exec_ext in '' $ac_executable_extensions; do
4219 if $as_executable_p "$as_dir/$ac_prog$ac_exec_ext"; then
4220 if test $ac_prog = install &&
4221 grep dspmsg "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
4222 # AIX install. It has an incompatible calling convention.
4224 elif test $ac_prog = install &&
4225 grep pwplus "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
4226 # program-specific install script used by HP pwplus--don't use.
4229 ac_cv_path_install="$as_dir/$ac_prog$ac_exec_ext -c"
4241 if test "${ac_cv_path_install+set}" = set; then
4242 INSTALL=$ac_cv_path_install
4244 # As a last resort, use the slow shell script. We don't cache a
4245 # path for INSTALL within a source directory, because that will
4246 # break other packages using the cache if that directory is
4247 # removed, or if the path is relative.
4248 INSTALL=$ac_install_sh
4251 echo "$as_me:$LINENO: result: $INSTALL" >&5
4252 echo "${ECHO_T}$INSTALL" >&6
4254 # Use test -z because SunOS4 sh mishandles braces in ${var-val}.
4255 # It thinks the first close brace ends the variable substitution.
4256 test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}'
4258 test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL}'
4260 test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644'
4263 echo "$as_me:$LINENO: checking whether to enable maintainer-specific portions of Makefiles" >&5
4264 echo $ECHO_N "checking whether to enable maintainer-specific portions of Makefiles... $ECHO_C" >&6
4265 # Check whether --enable-maintainer-mode or --disable-maintainer-mode was given.
4266 if test "${enable_maintainer_mode+set}" = set; then
4267 enableval="$enable_maintainer_mode"
4268 USE_MAINTAINER_MODE=$enableval
4270 USE_MAINTAINER_MODE=no
4272 echo "$as_me:$LINENO: result: $USE_MAINTAINER_MODE" >&5
4273 echo "${ECHO_T}$USE_MAINTAINER_MODE" >&6
4276 if test $USE_MAINTAINER_MODE = yes; then
4277 MAINTAINER_MODE_TRUE=
4278 MAINTAINER_MODE_FALSE='#'
4280 MAINTAINER_MODE_TRUE='#'
4281 MAINTAINER_MODE_FALSE=
4284 MAINT=$MAINTAINER_MODE_TRUE
4290 # configure.host sets the following important variables
4291 # libgcj_cflags - host specific C compiler flags
4292 # libgcj_cxxflags - host specific C++ compiler flags
4293 # libgcj_javaflags - host specific Java compiler flags
4299 . ${srcdir}/configure.host
4301 LIBGCJ_CFLAGS="${libgcj_cflags}"
4302 LIBGCJ_CXXFLAGS="${libgcj_cxxflags}"
4303 LIBGCJ_JAVAFLAGS="${libgcj_javaflags}"
4304 LIBGCJ_LD_SYMBOLIC="${libgcj_ld_symbolic}"
4310 # Only use libltdl for non-newlib builds.
4311 if test "x${with_newlib}" = "x" || test "x${with_newlib}" = "xno"; then
4312 echo "$as_me:$LINENO: checking dynamic linker characteristics" >&5
4313 echo $ECHO_N "checking dynamic linker characteristics... $ECHO_C" >&6
4315 libname_spec='lib$name'
4323 shlibpath_overrides_runpath=unknown
4325 dynamic_linker="$host_os ld.so"
4326 sys_lib_dlsearch_path_spec="/lib /usr/lib"
4327 if test "$GCC" = yes; then
4328 sys_lib_search_path_spec=`$CC -print-search-dirs | grep "^libraries:" | sed -e "s/^libraries://" -e "s,=/,/,g"`
4329 if echo "$sys_lib_search_path_spec" | grep ';' >/dev/null ; then
4330 # if the path contains ";" then we assume it to be the separator
4331 # otherwise default to the standard path separator (i.e. ":") - it is
4332 # assumed that no part of a normal pathname contains ";" but that should
4333 # okay in the real world where ";" in dirpaths is itself problematic.
4334 sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | sed -e 's/;/ /g'`
4336 sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | sed -e "s/$PATH_SEPARATOR/ /g"`
4339 sys_lib_search_path_spec="/lib /usr/lib /usr/local/lib"
4341 need_lib_prefix=unknown
4342 hardcode_into_libs=no
4344 # when you set need_version to no, make sure it does not cause -set_version
4345 # flags to be left without arguments
4346 need_version=unknown
4351 library_names_spec='${libname}${release}${shared_ext}$versuffix $libname.a'
4352 shlibpath_var=LIBPATH
4354 # AIX 3 has no versioning support, so we append a major version to the name.
4355 soname_spec='${libname}${release}${shared_ext}$major'
4362 hardcode_into_libs=yes
4363 if test "$host_cpu" = ia64; then
4364 # AIX 5 supports IA64
4365 library_names_spec='${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext}$versuffix $libname${shared_ext}'
4366 shlibpath_var=LD_LIBRARY_PATH
4368 # With GCC up to 2.95.x, collect2 would create an import file
4369 # for dependence libraries. The import file would start with
4370 # the line `#! .'. This would cause the generated library to
4371 # depend on `.', always an invalid library. This was fixed in
4372 # development snapshots of GCC prior to 3.0.
4374 aix4 | aix4.[01] | aix4.[01].*)
4375 if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)'
4377 echo '#endif'; } | ${CC} -E - | grep yes > /dev/null; then
4384 # AIX (on Power*) has no versioning support, so currently we can not hardcode correct
4385 # soname into executable. Probably we can add versioning support to
4386 # collect2, so additional links can be useful in future.
4387 if test "$aix_use_runtimelinking" = yes; then
4388 # If using run time linking (on AIX 4.2 or later) use lib<name>.so
4389 # instead of lib<name>.a to let people know that these are not
4390 # typical AIX shared libraries.
4391 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
4393 # We preserve .a as extension for shared libraries through AIX4.2
4394 # and later when we are not doing run time linking.
4395 library_names_spec='${libname}${release}.a $libname.a'
4396 soname_spec='${libname}${release}${shared_ext}$major'
4398 shlibpath_var=LIBPATH
4403 library_names_spec='$libname.ixlibrary $libname.a'
4404 # Create ${libname}_ixlibrary.a entries in /sys/libs.
4405 finish_eval='for lib in `ls $libdir/*.ixlibrary 2>/dev/null`; do libname=`$echo "X$lib" | $Xsed -e '\''s%^.*/\([^/]*\)\.ixlibrary$%\1%'\''`; test $rm /sys/libs/${libname}_ixlibrary.a; $show "(cd /sys/libs && $LN_S $lib ${libname}_ixlibrary.a)"; (cd /sys/libs && $LN_S $lib ${libname}_ixlibrary.a) || exit 1; done'
4409 library_names_spec='${libname}${shared_ext}'
4410 dynamic_linker="$host_os ld.so"
4411 shlibpath_var=LIBRARY_PATH
4417 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
4418 soname_spec='${libname}${release}${shared_ext}$major'
4419 finish_cmds='PATH="\$PATH:/sbin" ldconfig $libdir'
4420 shlibpath_var=LD_LIBRARY_PATH
4421 sys_lib_search_path_spec="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib"
4422 sys_lib_dlsearch_path_spec="/shlib /usr/lib /usr/local/lib"
4423 # the default ld.so.conf also contains /usr/contrib/lib and
4424 # /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow
4425 # libtool to hard-code these into programs
4428 cygwin* | mingw* | pw32*)
4429 version_type=windows
4434 case $GCC,$host_os in
4435 yes,cygwin* | yes,mingw* | yes,pw32*)
4436 library_names_spec='$libname.dll.a'
4437 # DLL is installed to $(libdir)/../bin by postinstall_cmds
4438 postinstall_cmds='base_file=`basename \${file}`~
4439 dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i;echo \$dlname'\''`~
4440 dldir=$destdir/`dirname \$dlpath`~
4441 test -d \$dldir || mkdir -p \$dldir~
4442 $install_prog $dir/$dlname \$dldir/$dlname'
4443 postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
4444 dlpath=$dir/\$dldll~
4446 shlibpath_overrides_runpath=yes
4450 # Cygwin DLLs use 'cyg' prefix rather than 'lib'
4451 soname_spec='`echo ${libname} | sed -e 's/^lib/cyg/'``echo ${release} | sed -e 's/[.]/-/g'`${versuffix}${shared_ext}'
4452 sys_lib_search_path_spec="/lib /lib/w32api /usr/lib /usr/local/lib"
4455 # MinGW DLLs use traditional 'lib' prefix
4456 soname_spec='${libname}`echo ${release} | sed -e 's/[.]/-/g'`${versuffix}${shared_ext}'
4457 sys_lib_search_path_spec=`$CC -print-search-dirs | grep "^libraries:" | sed -e "s/^libraries://" -e "s,=/,/,g"`
4458 if echo "$sys_lib_search_path_spec" | grep ';[c-zC-Z]:/' >/dev/null; then
4459 # It is most probably a Windows format PATH printed by
4460 # mingw gcc, but we are running on Cygwin. Gcc prints its search
4461 # path with ; separators, and with drive letters. We can handle the
4462 # drive letters (cygwin fileutils understands them), so leave them,
4463 # especially as we might pass files found there to a mingw objdump,
4464 # which wouldn't understand a cygwinified path. Ahh.
4465 sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | sed -e 's/;/ /g'`
4467 sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | sed -e "s/$PATH_SEPARATOR/ /g"`
4471 # pw32 DLLs use 'pw' prefix rather than 'lib'
4472 library_names_spec='`echo ${libname} | sed -e 's/^lib/pw/'``echo ${release} | sed -e 's/./-/g'`${versuffix}${shared_ext}'
4478 library_names_spec='${libname}`echo ${release} | sed -e 's/[.]/-/g'`${versuffix}${shared_ext} $libname.lib'
4481 dynamic_linker='Win32 ld.exe'
4482 # FIXME: first we should search . and the directory the executable is in
4486 darwin* | rhapsody*)
4487 dynamic_linker="$host_os dyld"
4491 # FIXME: Relying on posixy $() will cause problems for
4492 # cross-compilation, but unfortunately the echo tests do not
4493 # yet detect zsh echo's removal of \ escapes.
4494 library_names_spec='${libname}${release}${versuffix}$shared_ext ${libname}${release}${major}$shared_ext ${libname}$shared_ext'
4495 soname_spec='${libname}${release}${major}$shared_ext'
4496 shlibpath_overrides_runpath=yes
4497 shlibpath_var=DYLD_LIBRARY_PATH
4498 shrext='$(test .$module = .yes && echo .so || echo .dylib)'
4499 # Apple's gcc prints 'gcc -print-search-dirs' doesn't operate the same.
4500 if $CC -v 2>&1 | grep 'Apple' >/dev/null ; then
4501 sys_lib_search_path_spec=`$CC -print-search-dirs | tr "\n" "$PATH_SEPARATOR" | sed -e 's/libraries:/@libraries:/' | tr "@" "\n" | grep "^libraries:" | sed -e "s/^libraries://" -e "s,=/,/,g" -e "s,$PATH_SEPARATOR, ,g" -e "s,.*,& /lib /usr/lib /usr/local/lib,g"`
4503 sys_lib_dlsearch_path_spec='/usr/local/lib /lib /usr/lib'
4510 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname$shared_ext'
4511 soname_spec='${libname}${release}${shared_ext}$major'
4512 shlibpath_var=LD_LIBRARY_PATH
4520 objformat=`test -x /usr/bin/objformat && /usr/bin/objformat || echo aout`
4521 version_type=freebsd-$objformat
4522 case $version_type in
4524 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
4529 library_names_spec='${libname}${release}${shared_ext}$versuffix $libname${shared_ext}$versuffix'
4533 shlibpath_var=LD_LIBRARY_PATH
4536 shlibpath_overrides_runpath=yes
4538 freebsd3.01* | freebsdelf3.01*)
4539 shlibpath_overrides_runpath=yes
4540 hardcode_into_libs=yes
4543 shlibpath_overrides_runpath=no
4544 hardcode_into_libs=yes
4553 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}'
4554 soname_spec='${libname}${release}${shared_ext}$major'
4555 shlibpath_var=LD_LIBRARY_PATH
4556 hardcode_into_libs=yes
4559 hpux9* | hpux10* | hpux11*)
4560 # Give a soname corresponding to the major version so that dld.sl refuses to
4561 # link against other versions.
4568 hardcode_into_libs=yes
4569 dynamic_linker="$host_os dld.so"
4570 shlibpath_var=LD_LIBRARY_PATH
4571 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
4572 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
4573 soname_spec='${libname}${release}${shared_ext}$major'
4574 if test "X$HPUX_IA64_MODE" = X32; then
4575 sys_lib_search_path_spec="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib"
4577 sys_lib_search_path_spec="/usr/lib/hpux64 /usr/local/lib/hpux64"
4579 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
4583 hardcode_into_libs=yes
4584 dynamic_linker="$host_os dld.sl"
4585 shlibpath_var=LD_LIBRARY_PATH # How should we handle SHLIB_PATH
4586 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
4587 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
4588 soname_spec='${libname}${release}${shared_ext}$major'
4589 sys_lib_search_path_spec="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64"
4590 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
4594 dynamic_linker="$host_os dld.sl"
4595 shlibpath_var=SHLIB_PATH
4596 shlibpath_overrides_runpath=no # +s is required to enable SHLIB_PATH
4597 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
4598 soname_spec='${libname}${release}${shared_ext}$major'
4601 # HP-UX runs *really* slowly unless shared libraries are mode 555.
4602 postinstall_cmds='chmod 555 $lib'
4605 irix5* | irix6* | nonstopux*)
4607 nonstopux*) version_type=nonstopux ;;
4609 if test "$lt_cv_prog_gnu_ld" = yes; then
4617 soname_spec='${libname}${release}${shared_ext}$major'
4618 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext} $libname${shared_ext}'
4620 irix5* | nonstopux*)
4624 case $LD in # libtool.m4 will add one of these switches to LD
4625 *-32|*"-32 "|*-melf32bsmip|*"-melf32bsmip ")
4626 libsuff= shlibsuff= libmagic=32-bit;;
4627 *-n32|*"-n32 "|*-melf32bmipn32|*"-melf32bmipn32 ")
4628 libsuff=32 shlibsuff=N32 libmagic=N32;;
4629 *-64|*"-64 "|*-melf64bmip|*"-melf64bmip ")
4630 libsuff=64 shlibsuff=64 libmagic=64-bit;;
4631 *) libsuff= shlibsuff= libmagic=never-match;;
4635 shlibpath_var=LD_LIBRARY${shlibsuff}_PATH
4636 shlibpath_overrides_runpath=no
4637 sys_lib_search_path_spec="/usr/lib${libsuff} /lib${libsuff} /usr/local/lib${libsuff}"
4638 sys_lib_dlsearch_path_spec="/usr/lib${libsuff} /lib${libsuff}"
4639 hardcode_into_libs=yes
4642 # No shared lib support for Linux oldld, aout, or coff.
4643 linux*oldld* | linux*aout* | linux*coff*)
4647 # This must be Linux ELF.
4652 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
4653 soname_spec='${libname}${release}${shared_ext}$major'
4654 finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir'
4655 shlibpath_var=LD_LIBRARY_PATH
4656 shlibpath_overrides_runpath=no
4657 # This implies no fast_install, which is unacceptable.
4658 # Some rework will be needed to allow for fast_install
4659 # before this can be enabled.
4660 hardcode_into_libs=yes
4662 # We used to test for /lib/ld.so.1 and disable shared libraries on
4663 # powerpc, because MkLinux only supported shared libraries with the
4664 # GNU dynamic linker. Since this was broken with cross compilers,
4665 # most powerpc-linux boxes support dynamic linking these days and
4666 # people can always --disable-shared, the test was removed, and we
4667 # assume the GNU/Linux dynamic linker is in use.
4668 dynamic_linker='GNU/Linux ld.so'
4675 if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
4676 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
4677 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
4678 dynamic_linker='NetBSD (a.out) ld.so'
4680 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext} ${libname}${shared_ext}'
4681 soname_spec='${libname}${release}${shared_ext}$major'
4682 dynamic_linker='NetBSD ld.elf_so'
4684 shlibpath_var=LD_LIBRARY_PATH
4685 shlibpath_overrides_runpath=yes
4686 hardcode_into_libs=yes
4691 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
4692 shlibpath_var=LD_LIBRARY_PATH
4693 shlibpath_overrides_runpath=yes
4700 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
4701 soname_spec='${libname}${release}${shared_ext}$major'
4702 shlibpath_var=LD_LIBRARY_PATH
4703 shlibpath_overrides_runpath=yes
4710 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
4711 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
4712 shlibpath_var=LD_LIBRARY_PATH
4713 if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
4715 openbsd2.[89] | openbsd2.[89].*)
4716 shlibpath_overrides_runpath=no
4719 shlibpath_overrides_runpath=yes
4723 shlibpath_overrides_runpath=yes
4728 libname_spec='$name'
4731 library_names_spec='$libname${shared_ext} $libname.a'
4732 dynamic_linker='OS/2 ld.exe'
4733 shlibpath_var=LIBPATH
4736 osf3* | osf4* | osf5*)
4740 soname_spec='${libname}${release}${shared_ext}$major'
4741 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
4742 shlibpath_var=LD_LIBRARY_PATH
4743 sys_lib_search_path_spec="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib"
4744 sys_lib_dlsearch_path_spec="$sys_lib_search_path_spec"
4749 soname_spec='${libname}${release}${shared_ext}$major'
4750 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
4751 shlibpath_var=LD_LIBRARY_PATH
4758 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
4759 soname_spec='${libname}${release}${shared_ext}$major'
4760 shlibpath_var=LD_LIBRARY_PATH
4761 shlibpath_overrides_runpath=yes
4762 hardcode_into_libs=yes
4763 # ldd complains unless libraries are executable
4764 postinstall_cmds='chmod +x $lib'
4769 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
4770 finish_cmds='PATH="\$PATH:/usr/etc" ldconfig $libdir'
4771 shlibpath_var=LD_LIBRARY_PATH
4772 shlibpath_overrides_runpath=yes
4773 if test "$with_gnu_ld" = yes; then
4779 sysv4 | sysv4.2uw2* | sysv4.3* | sysv5*)
4781 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
4782 soname_spec='${libname}${release}${shared_ext}$major'
4783 shlibpath_var=LD_LIBRARY_PATH
4784 case $host_vendor in
4786 shlibpath_overrides_runpath=no
4788 export_dynamic_flag_spec='${wl}-Blargedynsym'
4789 runpath_var=LD_RUN_PATH
4797 shlibpath_overrides_runpath=no
4798 sys_lib_search_path_spec='/lib /usr/lib /usr/ccs/lib'
4804 if test -d /usr/nec ;then
4806 library_names_spec='$libname${shared_ext}.$versuffix $libname${shared_ext}.$major $libname${shared_ext}'
4807 soname_spec='$libname${shared_ext}.$major'
4808 shlibpath_var=LD_LIBRARY_PATH
4814 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
4815 soname_spec='${libname}${release}${shared_ext}$major'
4816 shlibpath_var=LD_LIBRARY_PATH
4823 echo "$as_me:$LINENO: result: $dynamic_linker" >&5
4824 echo "${ECHO_T}$dynamic_linker" >&6
4825 test "$dynamic_linker" = no && can_build_shared=no
4828 echo "$as_me:$LINENO: checking which variable specifies run-time library path" >&5
4829 echo $ECHO_N "checking which variable specifies run-time library path... $ECHO_C" >&6
4830 if test "${libltdl_cv_shlibpath_var+set}" = set; then
4831 echo $ECHO_N "(cached) $ECHO_C" >&6
4833 libltdl_cv_shlibpath_var="$shlibpath_var"
4835 echo "$as_me:$LINENO: result: $libltdl_cv_shlibpath_var" >&5
4836 echo "${ECHO_T}$libltdl_cv_shlibpath_var" >&6
4837 if test -n "$libltdl_cv_shlibpath_var"; then
4839 cat >>confdefs.h <<_ACEOF
4840 #define LTDL_SHLIBPATH_VAR "$libltdl_cv_shlibpath_var"
4847 ac_config_headers="$ac_config_headers include/config.h gcj/libgcj-config.h"
4850 # See if the user has requested runtime debugging.
4851 LIBGCJDEBUG="disable"
4853 # Check whether --enable-libgcj-debug or --disable-libgcj-debug was given.
4854 if test "${enable_libgcj_debug+set}" = set; then
4855 enableval="$enable_libgcj_debug"
4856 if test "$enable_libgcj_debug" = yes; then
4858 cat >>confdefs.h <<\_ACEOF
4862 LIBGCJDEBUG="enable"
4866 # Determine which AWT peer libraries to build
4867 # Check whether --enable-java-awt or --disable-java-awt was given.
4868 if test "${enable_java_awt+set}" = set; then
4869 enableval="$enable_java_awt"
4873 peerlibs="`echo ${enable_java_awt} | tr ',' ' '`"
4877 # The default toolkit to use is the first one specified.
4881 for peer in $peerlibs ; do
4884 if test "$no_x" = yes; then
4885 echo "*** xlib peers requested but no X library available" 1>&2
4889 if test -z "$TOOLKIT"; then
4890 TOOLKIT=gnu.awt.xlib.XToolkit
4895 if test "$no_x" = yes; then
4896 echo "*** gtk peers requested but no X library available" 1>&2
4900 if test -z "$TOOLKIT"; then
4901 TOOLKIT=gnu.java.awt.peer.gtk.GtkToolkit
4906 if test "$no_x" = yes; then
4907 # Perhaps we should admit the possibility of embedded Qt.
4908 echo "*** Qt peers requested but no X library available" 1>&2
4912 if test -z "$TOOLKIT"; then
4913 TOOLKIT=gnu.java.awt.peer.qt.QtToolkit
4924 echo "*** unrecognised argument \"${peer}\" for --enable-java-awt" 1>&2
4931 if test "$use_xlib_awt" = yes; then
4940 # Create standard.omit based on decisions we just made.
4941 cp $srcdir/standard.omit.in standard.omit
4942 if test "$use_xlib_awt" != yes; then
4943 echo gnu/awt/xlib >> standard.omit
4944 echo gnu/gcj/xlib >> standard.omit
4947 if test -z "${with_multisubdir}"; then
4950 builddotdot=`echo ${with_multisubdir} | sed -e 's:[^/][^/]*:..:g'`
4955 # Which gcj do we use?
4957 built_gcc_dir="`cd ${builddotdot}/../../${host_subdir}/gcc && ${PWDCMD-pwd}`"
4958 if test -n "${with_cross_host}"; then
4959 # We are being configured with a cross compiler. We can't
4960 # use ac_exeext, because that is for the target platform.
4963 case "${with_cross_host}" in
4965 cross_host_exeext=.exe
4968 if test -x "${built_gcc_dir}/gcj${cross_host_exeext}"; then
4969 if test x"$build_noncanonical" = x"$with_cross_host"; then
4970 # Ordinary cross (host!=target and host=build)
4973 # Canadian cross (host!=target and host!=build)
4980 # We are being configured with a native or crossed-native compiler
4981 if test -x "${built_gcc_dir}/gcj${ac_exeext}"; then
4982 if test x"$build" = x"$host"; then
4983 # True native build (host=target and host=build)
4986 # Crossed-native build (host=target and host!=build)
4993 case "${which_gcj}" in
4995 GCJ="$built_gcc_dir/gcj -B`${PWDCMD-pwd}`/ -B$built_gcc_dir/"
4996 GCJH='$(top_builddir)/$(MULTIBUILDTOP)../../$(host_subdir)/gcc/gcjh'
4999 if test "x${with_newlib}" = "xyes"; then
5000 # FIXME (comment): Why is this needed?
5002 GCJ="${target_noncanonical}-gcj"
5004 GCJ="${target_noncanonical}-gcj -B`${PWDCMD-pwd}`/"
5006 GCJH='$(target_noncanonical)-gcjh'
5009 GCJ="gcj -B`${PWDCMD-pwd}`/"
5016 # Create it, so that compile/link tests don't fail
5017 test -f libgcj.spec || touch libgcj.spec
5021 # Set up to configure Classpath.
5022 # FIXME: no supported way to pass args in autoconf.
5023 ac_configure_args="$ac_configure_args --with-fastjar=$JAR"
5024 ac_configure_args="$ac_configure_args --enable-tool-wrappers"
5025 ac_configure_args="$ac_configure_args --disable-load-library"
5026 ac_configure_args="$ac_configure_args --${LIBGCJDEBUG}-debug"
5027 ac_configure_args="$ac_configure_args --enable-default-toolkit=$TOOLKIT"
5028 dir1=`cd $srcdir && pwd`
5030 ac_configure_args="$ac_configure_args --with-vm-classes=$dir1:$dir2"
5031 ac_configure_args="$ac_configure_args --disable-core-jni"
5032 ac_configure_args="$ac_configure_args --disable-examples"
5033 ac_configure_args="$ac_configure_args --with-glibj=build"
5034 if test "$plugin_enabled" != yes; then
5035 ac_configure_args="$ac_configure_args --disable-plugin"
5037 if test "$use_gtk_awt" != yes; then
5038 ac_configure_args="$ac_configure_args --disable-gtk-peer"
5040 if test "$use_qt_awt" != yes; then
5041 ac_configure_args="$ac_configure_args --disable-qt-peer"
5043 # We need this as qt is disabled by default in classpath.
5044 ac_configure_args="$ac_configure_args --enable-qt-peer"
5047 # Only use libltdl for non-newlib builds.
5048 if test "x${with_newlib}" = "x" || test "x${with_newlib}" = "xno"; then
5049 case $enable_ltdl_convenience in
5050 no) { { echo "$as_me:$LINENO: error: this package needs a convenience libltdl" >&5
5051 echo "$as_me: error: this package needs a convenience libltdl" >&2;}
5052 { (exit 1); exit 1; }; } ;;
5053 "") enable_ltdl_convenience=yes
5054 ac_configure_args="$ac_configure_args --enable-ltdl-convenience" ;;
5056 LIBLTDL='${top_builddir}/''libltdl'/libltdlc.la
5057 INCLTDL='-I${top_srcdir}/''libltdl'
5062 cat >>confdefs.h <<\_ACEOF
5066 # Sigh. Libtool's macro doesn't do the right thing.
5067 INCLTDL="-I\$(top_srcdir)/libltdl $INCLTDL"
5068 # FIXME: this is a hack.
5069 sub_auxdir="`cd $ac_aux_dir && ${PWDCMD-pwd}`"
5070 ac_configure_args="$ac_configure_args --with-auxdir=$sub_auxdir"
5075 # Check whether --enable-shared or --disable-shared was given.
5076 if test "${enable_shared+set}" = set; then
5077 enableval="$enable_shared"
5078 p=${PACKAGE-default}
5080 yes) enable_shared=yes ;;
5081 no) enable_shared=no ;;
5084 # Look at the argument we got. We use all the common list separators.
5085 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS="${IFS}:,"
5086 for pkg in $enableval; do
5087 if test "X$pkg" = "X$p"; then
5097 # Check whether --enable-static or --disable-static was given.
5098 if test "${enable_static+set}" = set; then
5099 enableval="$enable_static"
5100 p=${PACKAGE-default}
5102 yes) enable_static=yes ;;
5103 no) enable_static=no ;;
5106 # Look at the argument we got. We use all the common list separators.
5107 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS="${IFS}:,"
5108 for pkg in $enableval; do
5109 if test "X$pkg" = "X$p"; then
5119 # Check whether --enable-fast-install or --disable-fast-install was given.
5120 if test "${enable_fast_install+set}" = set; then
5121 enableval="$enable_fast_install"
5122 p=${PACKAGE-default}
5124 yes) enable_fast_install=yes ;;
5125 no) enable_fast_install=no ;;
5127 enable_fast_install=no
5128 # Look at the argument we got. We use all the common list separators.
5129 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS="${IFS}:,"
5130 for pkg in $enableval; do
5131 if test "X$pkg" = "X$p"; then
5132 enable_fast_install=yes
5139 enable_fast_install=yes
5142 # Check whether --with-gnu-ld or --without-gnu-ld was given.
5143 if test "${with_gnu_ld+set}" = set; then
5144 withval="$with_gnu_ld"
5145 test "$withval" = no || with_gnu_ld=yes
5150 if test "$GCC" = yes; then
5151 # Check if gcc -print-prog-name=ld gives a path.
5152 echo "$as_me:$LINENO: checking for ld used by GCC" >&5
5153 echo $ECHO_N "checking for ld used by GCC... $ECHO_C" >&6
5156 # gcc leaves a trailing carriage return which upsets mingw
5157 ac_prog=`($CC -print-prog-name=ld) 2>&5 | tr -d '\015'` ;;
5159 ac_prog=`($CC -print-prog-name=ld) 2>&5` ;;
5162 # Accept absolute paths.
5163 [\\/]* | [A-Za-z]:[\\/]*)
5164 re_direlt='/[^/][^/]*/\.\./'
5165 # Canonicalize the path of ld
5166 ac_prog=`echo $ac_prog| sed 's%\\\\%/%g'`
5167 while echo $ac_prog | grep "$re_direlt" > /dev/null 2>&1; do
5168 ac_prog=`echo $ac_prog| sed "s%$re_direlt%/%"`
5170 test -z "$LD" && LD="$ac_prog"
5173 # If it fails, then pretend we aren't using GCC.
5177 # If it is relative, then search for the first ld in PATH.
5181 elif test "$with_gnu_ld" = yes; then
5182 echo "$as_me:$LINENO: checking for GNU ld" >&5
5183 echo $ECHO_N "checking for GNU ld... $ECHO_C" >&6
5185 echo "$as_me:$LINENO: checking for non-GNU ld" >&5
5186 echo $ECHO_N "checking for non-GNU ld... $ECHO_C" >&6
5188 if test "${lt_cv_path_LD+set}" = set; then
5189 echo $ECHO_N "(cached) $ECHO_C" >&6
5191 if test -z "$LD"; then
5192 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS="${IFS}${PATH_SEPARATOR-:}"
5193 for ac_dir in $PATH; do
5194 test -z "$ac_dir" && ac_dir=.
5195 if test -f "$ac_dir/$ac_prog" || test -f "$ac_dir/$ac_prog$ac_exeext"; then
5196 lt_cv_path_LD="$ac_dir/$ac_prog"
5197 # Check to see if the program is GNU ld. I'd rather use --version,
5198 # but apparently some GNU ld's only accept -v.
5199 # Break only if it was the GNU/non-GNU ld that we prefer.
5200 if "$lt_cv_path_LD" -v 2>&1 < /dev/null | egrep '(GNU|with BFD)' > /dev/null; then
5201 test "$with_gnu_ld" != no && break
5203 test "$with_gnu_ld" != yes && break
5209 lt_cv_path_LD="$LD" # Let the user override the test with a path.
5214 if test -n "$LD"; then
5215 echo "$as_me:$LINENO: result: $LD" >&5
5216 echo "${ECHO_T}$LD" >&6
5218 echo "$as_me:$LINENO: result: no" >&5
5219 echo "${ECHO_T}no" >&6
5221 test -z "$LD" && { { echo "$as_me:$LINENO: error: no acceptable ld found in \$PATH" >&5
5222 echo "$as_me: error: no acceptable ld found in \$PATH" >&2;}
5223 { (exit 1); exit 1; }; }
5224 echo "$as_me:$LINENO: checking if the linker ($LD) is GNU ld" >&5
5225 echo $ECHO_N "checking if the linker ($LD) is GNU ld... $ECHO_C" >&6
5226 if test "${lt_cv_prog_gnu_ld+set}" = set; then
5227 echo $ECHO_N "(cached) $ECHO_C" >&6
5229 # I'd rather use --version here, but apparently some GNU ld's only accept -v.
5230 if $LD -v 2>&1 </dev/null | egrep '(GNU|with BFD)' 1>&5; then
5231 lt_cv_prog_gnu_ld=yes
5233 lt_cv_prog_gnu_ld=no
5236 echo "$as_me:$LINENO: result: $lt_cv_prog_gnu_ld" >&5
5237 echo "${ECHO_T}$lt_cv_prog_gnu_ld" >&6
5238 with_gnu_ld=$lt_cv_prog_gnu_ld
5241 echo "$as_me:$LINENO: checking for $LD option to reload object files" >&5
5242 echo $ECHO_N "checking for $LD option to reload object files... $ECHO_C" >&6
5243 if test "${lt_cv_ld_reload_flag+set}" = set; then
5244 echo $ECHO_N "(cached) $ECHO_C" >&6
5246 lt_cv_ld_reload_flag='-r'
5248 echo "$as_me:$LINENO: result: $lt_cv_ld_reload_flag" >&5
5249 echo "${ECHO_T}$lt_cv_ld_reload_flag" >&6
5250 reload_flag=$lt_cv_ld_reload_flag
5251 test -n "$reload_flag" && reload_flag=" $reload_flag"
5253 echo "$as_me:$LINENO: checking for BSD-compatible nm" >&5
5254 echo $ECHO_N "checking for BSD-compatible nm... $ECHO_C" >&6
5255 if test "${lt_cv_path_NM+set}" = set; then
5256 echo $ECHO_N "(cached) $ECHO_C" >&6
5258 if test -n "$NM"; then
5259 # Let the user override the test.
5262 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS="${IFS}${PATH_SEPARATOR-:}"
5263 for ac_dir in $PATH /usr/ccs/bin /usr/ucb /bin; do
5264 test -z "$ac_dir" && ac_dir=.
5265 tmp_nm=$ac_dir/${ac_tool_prefix}nm
5266 if test -f $tmp_nm || test -f $tmp_nm$ac_exeext ; then
5267 # Check to see if the nm accepts a BSD-compat flag.
5268 # Adding the `sed 1q' prevents false positives on HP-UX, which says:
5269 # nm: unknown option "B" ignored
5270 # Tru64's nm complains that /dev/null is an invalid object file
5271 if ($tmp_nm -B /dev/null 2>&1 | sed '1q'; exit 0) | egrep '(/dev/null|Invalid file or object type)' >/dev/null; then
5272 lt_cv_path_NM="$tmp_nm -B"
5274 elif ($tmp_nm -p /dev/null 2>&1 | sed '1q'; exit 0) | egrep /dev/null >/dev/null; then
5275 lt_cv_path_NM="$tmp_nm -p"
5278 lt_cv_path_NM=${lt_cv_path_NM="$tmp_nm"} # keep the first match, but
5279 continue # so that we can try to find one that supports BSD flags
5284 test -z "$lt_cv_path_NM" && lt_cv_path_NM=nm
5289 echo "$as_me:$LINENO: result: $NM" >&5
5290 echo "${ECHO_T}$NM" >&6
5292 echo "$as_me:$LINENO: checking how to recognise dependant libraries" >&5
5293 echo $ECHO_N "checking how to recognise dependant libraries... $ECHO_C" >&6
5294 if test "${lt_cv_deplibs_check_method+set}" = set; then
5295 echo $ECHO_N "(cached) $ECHO_C" >&6
5297 lt_cv_file_magic_cmd='$MAGIC_CMD'
5298 lt_cv_file_magic_test_file=
5299 lt_cv_deplibs_check_method='unknown'
5300 # Need to set the preceding variable on all platforms that support
5301 # interlibrary dependencies.
5302 # 'none' -- dependencies not supported.
5303 # `unknown' -- same as none, but documents that we really don't know.
5304 # 'pass_all' -- all dependencies passed with no checks.
5305 # 'test_compile' -- check by making test program.
5306 # 'file_magic [regex]' -- check by looking for files in library path
5307 # which responds to the $file_magic_cmd with a given egrep regex.
5308 # If you have `file' or equivalent on your system and you're not sure
5309 # whether `pass_all' will *always* work, you probably want this one.
5313 lt_cv_deplibs_check_method=pass_all
5317 lt_cv_deplibs_check_method=pass_all
5321 lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (shared object|dynamic lib)'
5322 lt_cv_file_magic_cmd='/usr/bin/file -L'
5323 lt_cv_file_magic_test_file=/shlib/libc.so
5326 cygwin* | mingw* |pw32*)
5327 lt_cv_deplibs_check_method='file_magic file format pei*-i386(.*architecture: i386)?'
5328 lt_cv_file_magic_cmd='$OBJDUMP -f'
5331 darwin* | rhapsody*)
5332 # this will be overwritten by pass_all, but leave it in just in case
5333 lt_cv_deplibs_check_method='file_magic Mach-O dynamically linked shared library'
5334 lt_cv_file_magic_cmd='/usr/bin/file -L'
5336 rhapsody* | darwin1.012)
5337 lt_cv_file_magic_test_file='/System/Library/Frameworks/System.framework/System'
5340 lt_cv_file_magic_test_file='/usr/lib/libSystem.dylib'
5343 lt_cv_deplibs_check_method=pass_all
5346 freebsd* | kfreebsd*-gnu)
5347 if echo __ELF__ | $CC -E - | grep __ELF__ > /dev/null; then
5350 # Not sure whether the presence of OpenBSD here was a mistake.
5351 # Let's accept both of them until this is cleared up.
5352 lt_cv_deplibs_check_method='file_magic (FreeBSD|OpenBSD)/i[3-9]86 (compact )?demand paged shared library'
5353 lt_cv_file_magic_cmd=/usr/bin/file
5354 lt_cv_file_magic_test_file=`echo /usr/lib/libc.so.*`
5358 lt_cv_deplibs_check_method=pass_all
5363 lt_cv_deplibs_check_method=pass_all
5369 lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|PA-RISC[0-9].[0-9]) shared library'
5370 lt_cv_file_magic_cmd=/usr/bin/file
5371 lt_cv_file_magic_test_file=/usr/lib/libc.sl
5374 lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|ELF-[0-9][0-9]) shared object file - IA64'
5375 lt_cv_file_magic_cmd=/usr/bin/file
5376 lt_cv_file_magic_test_file=/usr/lib/hpux32/libc.so
5384 # this will be overridden with pass_all, but let us keep it just in case
5385 lt_cv_deplibs_check_method="file_magic ELF 32-bit MSB dynamic lib MIPS - version 1"
5389 *-32|*"-32 ") libmagic=32-bit;;
5390 *-n32|*"-n32 ") libmagic=N32;;
5391 *-64|*"-64 ") libmagic=64-bit;;
5392 *) libmagic=never-match;;
5394 # this will be overridden with pass_all, but let us keep it just in case
5395 lt_cv_deplibs_check_method="file_magic ELF ${libmagic} MSB mips-[1234] dynamic lib MIPS - version 1"
5398 lt_cv_file_magic_test_file=`echo /lib${libsuff}/libc.so*`
5399 lt_cv_deplibs_check_method=pass_all
5402 # This must be Linux ELF.
5404 lt_cv_deplibs_check_method=pass_all
5407 netbsd* | knetbsd*-gnu)
5408 if echo __ELF__ | $CC -E - | grep __ELF__ > /dev/null; then
5409 lt_cv_deplibs_check_method='match_pattern /lib[^/\.]+\.so\.[0-9]+\.[0-9]+$'
5411 lt_cv_deplibs_check_method='match_pattern /lib[^/\.]+\.so$'
5416 lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (executable|dynamic lib)'
5417 lt_cv_file_magic_cmd=/usr/bin/file
5418 lt_cv_file_magic_test_file=/usr/lib/libnls.so
5421 osf3* | osf4* | osf5*)
5422 # this will be overridden with pass_all, but let us keep it just in case
5423 lt_cv_deplibs_check_method='file_magic COFF format alpha shared library'
5424 lt_cv_file_magic_test_file=/shlib/libc.so
5425 lt_cv_deplibs_check_method=pass_all
5429 lt_cv_deplibs_check_method=pass_all
5433 lt_cv_deplibs_check_method=pass_all
5434 lt_cv_file_magic_test_file=/lib/libc.so
5437 sysv5uw[78]* | sysv4*uw2*)
5438 lt_cv_deplibs_check_method=pass_all
5441 sysv4 | sysv4.2uw2* | sysv4.3* | sysv5*)
5442 case $host_vendor in
5444 lt_cv_deplibs_check_method=pass_all
5447 lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (shared object|dynamic lib) M[0-9][0-9]* Version [0-9]'
5448 lt_cv_file_magic_test_file=`echo /usr/lib/libc.so*`
5455 echo "$as_me:$LINENO: result: $lt_cv_deplibs_check_method" >&5
5456 echo "${ECHO_T}$lt_cv_deplibs_check_method" >&6
5457 file_magic_cmd=$lt_cv_file_magic_cmd
5458 deplibs_check_method=$lt_cv_deplibs_check_method
5463 # Autoconf 2.13's AC_OBJEXT and AC_EXEEXT macros only works for C compilers!
5465 # find the maximum length of command line arguments
5466 echo "$as_me:$LINENO: checking the maximum length of command line arguments" >&5
5467 echo $ECHO_N "checking the maximum length of command line arguments... $ECHO_C" >&6
5468 if test "${lt_cv_sys_max_cmd_len+set}" = set; then
5469 echo $ECHO_N "(cached) $ECHO_C" >&6
5476 # On DJGPP, this test can blow up pretty badly due to problems in libc
5477 # (any single argument exceeding 2000 bytes causes a buffer overrun
5478 # during glob expansion). Even if it were fixed, the result of this
5479 # check would be larger than it should be.
5480 lt_cv_sys_max_cmd_len=12288; # 12K is about right
5484 # On Win9x/ME, this test blows up -- it succeeds, but takes
5485 # about 5 minutes as the teststring grows exponentially.
5486 # Worse, since 9x/ME are not pre-emptively multitasking,
5487 # you end up with a "frozen" computer, even though with patience
5488 # the test eventually succeeds (with a max line length of 256k).
5489 # Instead, let's just punt: use the minimum linelength reported by
5490 # all of the supported platforms: 8192 (on NT/2K/XP).
5491 lt_cv_sys_max_cmd_len=8192;
5495 # On AmigaOS with pdksh, this test takes hours, literally.
5496 # So we just punt and use a minimum line length of 8192.
5497 lt_cv_sys_max_cmd_len=8192;
5500 netbsd* | freebsd* | openbsd* | darwin* | dragonfly*)
5501 # This has been around since 386BSD, at least. Likely further.
5502 if test -x /sbin/sysctl; then
5503 lt_cv_sys_max_cmd_len=`/sbin/sysctl -n kern.argmax`
5504 elif test -x /usr/sbin/sysctl; then
5505 lt_cv_sys_max_cmd_len=`/usr/sbin/sysctl -n kern.argmax`
5507 lt_cv_sys_max_cmd_len=65536 # usable default for *BSD
5509 # And add a safety zone
5510 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 4`
5511 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \* 3`
5517 if test -n "$lt_cv_sys_max_cmd_len" ; then
5518 echo "$as_me:$LINENO: result: $lt_cv_sys_max_cmd_len" >&5
5519 echo "${ECHO_T}$lt_cv_sys_max_cmd_len" >&6
5521 echo "$as_me:$LINENO: result: none" >&5
5522 echo "${ECHO_T}none" >&6
5526 # Only perform the check for file, if the check method requires it
5527 case $deplibs_check_method in
5529 if test "$file_magic_cmd" = '$MAGIC_CMD'; then
5530 echo "$as_me:$LINENO: checking for ${ac_tool_prefix}file" >&5
5531 echo $ECHO_N "checking for ${ac_tool_prefix}file... $ECHO_C" >&6
5532 if test "${lt_cv_path_MAGIC_CMD+set}" = set; then
5533 echo $ECHO_N "(cached) $ECHO_C" >&6
5537 lt_cv_path_MAGIC_CMD="$MAGIC_CMD" # Let the user override the test with a path.
5540 lt_cv_path_MAGIC_CMD="$MAGIC_CMD" # Let the user override the test with a dos path.
5543 ac_save_MAGIC_CMD="$MAGIC_CMD"
5544 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
5545 ac_dummy="/usr/bin:$PATH"
5546 for ac_dir in $ac_dummy; do
5547 test -z "$ac_dir" && ac_dir=.
5548 if test -f $ac_dir/${ac_tool_prefix}file; then
5549 lt_cv_path_MAGIC_CMD="$ac_dir/${ac_tool_prefix}file"
5550 if test -n "$file_magic_test_file"; then
5551 case $deplibs_check_method in
5553 file_magic_regex="`expr \"$deplibs_check_method\" : \"file_magic \(.*\)\"`"
5554 MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
5555 if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null |
5556 egrep "$file_magic_regex" > /dev/null; then
5561 *** Warning: the command libtool uses to detect shared libraries,
5562 *** $file_magic_cmd, produces output that libtool cannot recognize.
5563 *** The result is that libtool may fail to recognize shared libraries
5564 *** as such. This will affect the creation of libtool libraries that
5565 *** depend on shared libraries, but programs linked with such libtool
5566 *** libraries will work regardless of this problem. Nevertheless, you
5567 *** may want to report the problem to your system manager and/or to
5568 *** bug-libtool@gnu.org
5578 MAGIC_CMD="$ac_save_MAGIC_CMD"
5583 MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
5584 if test -n "$MAGIC_CMD"; then
5585 echo "$as_me:$LINENO: result: $MAGIC_CMD" >&5
5586 echo "${ECHO_T}$MAGIC_CMD" >&6
5588 echo "$as_me:$LINENO: result: no" >&5
5589 echo "${ECHO_T}no" >&6
5592 if test -z "$lt_cv_path_MAGIC_CMD"; then
5593 if test -n "$ac_tool_prefix"; then
5594 echo "$as_me:$LINENO: checking for file" >&5
5595 echo $ECHO_N "checking for file... $ECHO_C" >&6
5596 if test "${lt_cv_path_MAGIC_CMD+set}" = set; then
5597 echo $ECHO_N "(cached) $ECHO_C" >&6
5601 lt_cv_path_MAGIC_CMD="$MAGIC_CMD" # Let the user override the test with a path.
5604 lt_cv_path_MAGIC_CMD="$MAGIC_CMD" # Let the user override the test with a dos path.
5607 ac_save_MAGIC_CMD="$MAGIC_CMD"
5608 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
5609 ac_dummy="/usr/bin:$PATH"
5610 for ac_dir in $ac_dummy; do
5611 test -z "$ac_dir" && ac_dir=.
5612 if test -f $ac_dir/file; then
5613 lt_cv_path_MAGIC_CMD="$ac_dir/file"
5614 if test -n "$file_magic_test_file"; then
5615 case $deplibs_check_method in
5617 file_magic_regex="`expr \"$deplibs_check_method\" : \"file_magic \(.*\)\"`"
5618 MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
5619 if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null |
5620 egrep "$file_magic_regex" > /dev/null; then
5625 *** Warning: the command libtool uses to detect shared libraries,
5626 *** $file_magic_cmd, produces output that libtool cannot recognize.
5627 *** The result is that libtool may fail to recognize shared libraries
5628 *** as such. This will affect the creation of libtool libraries that
5629 *** depend on shared libraries, but programs linked with such libtool
5630 *** libraries will work regardless of this problem. Nevertheless, you
5631 *** may want to report the problem to your system manager and/or to
5632 *** bug-libtool@gnu.org
5642 MAGIC_CMD="$ac_save_MAGIC_CMD"
5647 MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
5648 if test -n "$MAGIC_CMD"; then
5649 echo "$as_me:$LINENO: result: $MAGIC_CMD" >&5
5650 echo "${ECHO_T}$MAGIC_CMD" >&6
5652 echo "$as_me:$LINENO: result: no" >&5
5653 echo "${ECHO_T}no" >&6
5665 if test -n "$ac_tool_prefix"; then
5666 # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args.
5667 set dummy ${ac_tool_prefix}ranlib; ac_word=$2
5668 echo "$as_me:$LINENO: checking for $ac_word" >&5
5669 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
5670 if test "${ac_cv_prog_RANLIB+set}" = set; then
5671 echo $ECHO_N "(cached) $ECHO_C" >&6
5673 if test -n "$RANLIB"; then
5674 ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
5676 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5680 test -z "$as_dir" && as_dir=.
5681 for ac_exec_ext in '' $ac_executable_extensions; do
5682 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5683 ac_cv_prog_RANLIB="${ac_tool_prefix}ranlib"
5684 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5692 RANLIB=$ac_cv_prog_RANLIB
5693 if test -n "$RANLIB"; then
5694 echo "$as_me:$LINENO: result: $RANLIB" >&5
5695 echo "${ECHO_T}$RANLIB" >&6
5697 echo "$as_me:$LINENO: result: no" >&5
5698 echo "${ECHO_T}no" >&6
5702 if test -z "$ac_cv_prog_RANLIB"; then
5703 ac_ct_RANLIB=$RANLIB
5704 # Extract the first word of "ranlib", so it can be a program name with args.
5705 set dummy ranlib; ac_word=$2
5706 echo "$as_me:$LINENO: checking for $ac_word" >&5
5707 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
5708 if test "${ac_cv_prog_ac_ct_RANLIB+set}" = set; then
5709 echo $ECHO_N "(cached) $ECHO_C" >&6
5711 if test -n "$ac_ct_RANLIB"; then
5712 ac_cv_prog_ac_ct_RANLIB="$ac_ct_RANLIB" # Let the user override the test.
5714 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5718 test -z "$as_dir" && as_dir=.
5719 for ac_exec_ext in '' $ac_executable_extensions; do
5720 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5721 ac_cv_prog_ac_ct_RANLIB="ranlib"
5722 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5728 test -z "$ac_cv_prog_ac_ct_RANLIB" && ac_cv_prog_ac_ct_RANLIB=":"
5731 ac_ct_RANLIB=$ac_cv_prog_ac_ct_RANLIB
5732 if test -n "$ac_ct_RANLIB"; then
5733 echo "$as_me:$LINENO: result: $ac_ct_RANLIB" >&5
5734 echo "${ECHO_T}$ac_ct_RANLIB" >&6
5736 echo "$as_me:$LINENO: result: no" >&5
5737 echo "${ECHO_T}no" >&6
5740 RANLIB=$ac_ct_RANLIB
5742 RANLIB="$ac_cv_prog_RANLIB"
5745 if test -n "$ac_tool_prefix"; then
5746 # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args.
5747 set dummy ${ac_tool_prefix}strip; ac_word=$2
5748 echo "$as_me:$LINENO: checking for $ac_word" >&5
5749 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
5750 if test "${ac_cv_prog_STRIP+set}" = set; then
5751 echo $ECHO_N "(cached) $ECHO_C" >&6
5753 if test -n "$STRIP"; then
5754 ac_cv_prog_STRIP="$STRIP" # Let the user override the test.
5756 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5760 test -z "$as_dir" && as_dir=.
5761 for ac_exec_ext in '' $ac_executable_extensions; do
5762 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5763 ac_cv_prog_STRIP="${ac_tool_prefix}strip"
5764 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5772 STRIP=$ac_cv_prog_STRIP
5773 if test -n "$STRIP"; then
5774 echo "$as_me:$LINENO: result: $STRIP" >&5
5775 echo "${ECHO_T}$STRIP" >&6
5777 echo "$as_me:$LINENO: result: no" >&5
5778 echo "${ECHO_T}no" >&6
5782 if test -z "$ac_cv_prog_STRIP"; then
5784 # Extract the first word of "strip", so it can be a program name with args.
5785 set dummy strip; ac_word=$2
5786 echo "$as_me:$LINENO: checking for $ac_word" >&5
5787 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
5788 if test "${ac_cv_prog_ac_ct_STRIP+set}" = set; then
5789 echo $ECHO_N "(cached) $ECHO_C" >&6
5791 if test -n "$ac_ct_STRIP"; then
5792 ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test.
5794 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5798 test -z "$as_dir" && as_dir=.
5799 for ac_exec_ext in '' $ac_executable_extensions; do
5800 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5801 ac_cv_prog_ac_ct_STRIP="strip"
5802 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5808 test -z "$ac_cv_prog_ac_ct_STRIP" && ac_cv_prog_ac_ct_STRIP=":"
5811 ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP
5812 if test -n "$ac_ct_STRIP"; then
5813 echo "$as_me:$LINENO: result: $ac_ct_STRIP" >&5
5814 echo "${ECHO_T}$ac_ct_STRIP" >&6
5816 echo "$as_me:$LINENO: result: no" >&5
5817 echo "${ECHO_T}no" >&6
5822 STRIP="$ac_cv_prog_STRIP"
5826 # Check for any special flags to pass to ltconfig.
5827 libtool_flags="--cache-file=$cache_file"
5828 test "$enable_shared" = no && libtool_flags="$libtool_flags --disable-shared"
5829 test "$enable_static" = no && libtool_flags="$libtool_flags --disable-static"
5830 test "$enable_fast_install" = no && libtool_flags="$libtool_flags --disable-fast-install"
5831 test "$GCC" = yes && libtool_flags="$libtool_flags --with-gcc"
5832 test "$lt_cv_prog_gnu_ld" = yes && libtool_flags="$libtool_flags --with-gnu-ld"
5835 # Check whether --enable-libtool-lock or --disable-libtool-lock was given.
5836 if test "${enable_libtool_lock+set}" = set; then
5837 enableval="$enable_libtool_lock"
5840 test "x$enable_libtool_lock" = xno && libtool_flags="$libtool_flags --disable-lock"
5841 test x"$silent" = xyes && libtool_flags="$libtool_flags --silent"
5844 # Check whether --with-pic or --without-pic was given.
5845 if test "${with_pic+set}" = set; then
5851 test x"$pic_mode" = xyes && libtool_flags="$libtool_flags --prefer-pic"
5852 test x"$pic_mode" = xno && libtool_flags="$libtool_flags --prefer-non-pic"
5854 # Some flags need to be propagated to the compiler or linker for good
5858 # Find out which ABI we are using.
5859 echo '#line 5859 "configure"' > conftest.$ac_ext
5860 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
5861 (eval $ac_compile) 2>&5
5863 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5864 (exit $ac_status); }; then
5865 if test "$lt_cv_prog_gnu_ld" = yes; then
5866 case `/usr/bin/file conftest.$ac_objext` in
5868 LD="${LD-ld} -melf32bsmip"
5871 LD="${LD-ld} -melf32bmipn32"
5874 LD="${LD-ld} -melf64bmip"
5878 case `/usr/bin/file conftest.$ac_objext` in
5895 # Find out which ABI we are using.
5896 echo 'int i;' > conftest.$ac_ext
5897 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
5898 (eval $ac_compile) 2>&5
5900 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5901 (exit $ac_status); }; then
5902 case "`/usr/bin/file conftest.o`" in
5914 x86_64-*linux*|ppc*-*linux*|powerpc*-*linux*|s390*-*linux*|sparc*-*linux*)
5915 # Find out which ABI we are using.
5916 echo 'int i;' > conftest.$ac_ext
5917 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
5918 (eval $ac_compile) 2>&5
5920 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5921 (exit $ac_status); }; then
5922 case "`/usr/bin/file conftest.o`" in
5926 LD="${LD-ld} -m elf_i386"
5928 ppc64-*linux*|powerpc64-*linux*)
5929 LD="${LD-ld} -m elf32ppclinux"
5932 LD="${LD-ld} -m elf_s390"
5935 LD="${LD-ld} -m elf32_sparc"
5942 LD="${LD-ld} -m elf_x86_64"
5944 ppc*-*linux*|powerpc*-*linux*)
5945 LD="${LD-ld} -m elf64ppc"
5948 LD="${LD-ld} -m elf64_s390"
5951 LD="${LD-ld} -m elf64_sparc"
5961 # On SCO OpenServer 5, we need -belf to get full-featured binaries.
5962 SAVE_CFLAGS="$CFLAGS"
5963 CFLAGS="$CFLAGS -belf"
5964 echo "$as_me:$LINENO: checking whether the C compiler needs -belf" >&5
5965 echo $ECHO_N "checking whether the C compiler needs -belf... $ECHO_C" >&6
5966 if test "${lt_cv_cc_needs_belf+set}" = set; then
5967 echo $ECHO_N "(cached) $ECHO_C" >&6
5972 ac_cpp='$CPP $CPPFLAGS'
5973 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
5974 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
5975 ac_compiler_gnu=$ac_cv_c_compiler_gnu
5977 if test x$gcc_no_link = xyes; then
5978 { { echo "$as_me:$LINENO: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&5
5979 echo "$as_me: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&2;}
5980 { (exit 1); exit 1; }; }
5982 cat >conftest.$ac_ext <<_ACEOF
5985 cat confdefs.h >>conftest.$ac_ext
5986 cat >>conftest.$ac_ext <<_ACEOF
5987 /* end confdefs.h. */
5997 rm -f conftest.$ac_objext conftest$ac_exeext
5998 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
5999 (eval $ac_link) 2>conftest.er1
6001 grep -v '^ *+' conftest.er1 >conftest.err
6003 cat conftest.err >&5
6004 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6005 (exit $ac_status); } &&
6006 { ac_try='test -z "$ac_c_werror_flag"
6007 || test ! -s conftest.err'
6008 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6011 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6012 (exit $ac_status); }; } &&
6013 { ac_try='test -s conftest$ac_exeext'
6014 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6017 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6018 (exit $ac_status); }; }; then
6019 lt_cv_cc_needs_belf=yes
6021 echo "$as_me: failed program was:" >&5
6022 sed 's/^/| /' conftest.$ac_ext >&5
6024 lt_cv_cc_needs_belf=no
6026 rm -f conftest.err conftest.$ac_objext \
6027 conftest$ac_exeext conftest.$ac_ext
6029 ac_cpp='$CPP $CPPFLAGS'
6030 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
6031 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
6032 ac_compiler_gnu=$ac_cv_c_compiler_gnu
6035 echo "$as_me:$LINENO: result: $lt_cv_cc_needs_belf" >&5
6036 echo "${ECHO_T}$lt_cv_cc_needs_belf" >&6
6037 if test x"$lt_cv_cc_needs_belf" != x"yes"; then
6038 # this is probably gcc 2.8.0, egcs 1.0 or newer; no need for -belf
6039 CFLAGS="$SAVE_CFLAGS"
6047 # Save cache, so that ltconfig can load it
6048 cat >confcache <<\_ACEOF
6049 # This file is a shell script that caches the results of configure
6050 # tests run on this system so they can be shared between configure
6051 # scripts and configure runs, see configure's option --config-cache.
6052 # It is not useful on other systems. If it contains results you don't
6053 # want to keep, you may remove or edit it.
6055 # config.status only pays attention to the cache file if you give it
6056 # the --recheck option to rerun configure.
6058 # `ac_cv_env_foo' variables (set or unset) will be overridden when
6059 # loading this file, other *unset* `ac_cv_foo' will be assigned the
6064 # The following way of writing the cache mishandles newlines in values,
6065 # but we know of no workaround that is simple, portable, and efficient.
6066 # So, don't put newlines in cache variables' values.
6067 # Ultrix sh set writes to stderr and can't be redirected directly,
6068 # and sets the high bit in the cache file unless we assign to the vars.
6071 case `(ac_space=' '; set | grep ac_space) 2>&1` in
6073 # `set' does not quote correctly, so add quotes (double-quote
6074 # substitution turns \\\\ into \\, and sed turns \\ into \).
6077 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p"
6080 # `set' quotes correctly as required by POSIX, so do not add quotes.
6082 "s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1=\\2/p"
6089 s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/
6091 /^ac_cv_env/!s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/
6093 if diff $cache_file confcache >/dev/null 2>&1; then :; else
6094 if test -w $cache_file; then
6095 test "x$cache_file" != "x/dev/null" && echo "updating cache $cache_file"
6096 cat confcache >$cache_file
6098 echo "not updating unwritable cache $cache_file"
6103 # Actually configure libtool. ac_aux_dir is where install-sh is found.
6104 AR="$AR" LTCC="$CC" CC="$CC" CFLAGS="$CFLAGS" CPPFLAGS="$CPPFLAGS" \
6105 MAGIC_CMD="$MAGIC_CMD" LD="$LD" LDFLAGS="$LDFLAGS" LIBS="$LIBS" \
6106 LN_S="$LN_S" NM="$NM" RANLIB="$RANLIB" STRIP="$STRIP" \
6107 AS="$AS" DLLTOOL="$DLLTOOL" OBJDUMP="$OBJDUMP" \
6108 objext="$OBJEXT" exeext="$EXEEXT" reload_flag="$reload_flag" \
6109 deplibs_check_method="$deplibs_check_method" file_magic_cmd="$file_magic_cmd" \
6110 ${CONFIG_SHELL-/bin/sh} $ac_aux_dir/ltconfig --no-reexec \
6111 $libtool_flags --no-verify --build="$build" $ac_aux_dir/ltmain.sh $host \
6112 || { { echo "$as_me:$LINENO: error: libtool configure failed" >&5
6113 echo "$as_me: error: libtool configure failed" >&2;}
6114 { (exit 1); exit 1; }; }
6116 # Reload cache, that may have been modified by ltconfig
6117 if test -r "$cache_file"; then
6118 # Some versions of bash will fail to source /dev/null (special
6119 # files actually), so we avoid doing that.
6120 if test -f "$cache_file"; then
6121 { echo "$as_me:$LINENO: loading cache $cache_file" >&5
6122 echo "$as_me: loading cache $cache_file" >&6;}
6124 [\\/]* | ?:[\\/]* ) . $cache_file;;
6125 *) . ./$cache_file;;
6129 { echo "$as_me:$LINENO: creating cache $cache_file" >&5
6130 echo "$as_me: creating cache $cache_file" >&6;}
6135 # This can be used to rebuild libtool when needed
6136 LIBTOOL_DEPS="$ac_aux_dir/ltconfig $ac_aux_dir/ltmain.sh $ac_aux_dir/ltcf-c.sh"
6138 # Always use our own libtool.
6139 LIBTOOL='$(SHELL) $(top_builddir)/libtool'
6141 # Redirect the config.log output again, so that the ltconfig log is not
6142 # clobbered by the next message.
6143 exec 5>>./config.log
6146 ac_cpp='$CXXCPP $CPPFLAGS'
6147 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
6148 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
6149 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
6150 echo "$as_me:$LINENO: checking how to run the C++ preprocessor" >&5
6151 echo $ECHO_N "checking how to run the C++ preprocessor... $ECHO_C" >&6
6152 if test -z "$CXXCPP"; then
6153 if test "${ac_cv_prog_CXXCPP+set}" = set; then
6154 echo $ECHO_N "(cached) $ECHO_C" >&6
6156 # Double quotes because CXXCPP needs to be expanded
6157 for CXXCPP in "$CXX -E" "/lib/cpp"
6160 for ac_cxx_preproc_warn_flag in '' yes
6162 # Use a header file that comes with gcc, so configuring glibc
6163 # with a fresh cross-compiler works.
6164 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
6165 # <limits.h> exists even on freestanding compilers.
6166 # On the NeXT, cc -E runs the code through the compiler's parser,
6167 # not just through cpp. "Syntax error" is here to catch this case.
6168 cat >conftest.$ac_ext <<_ACEOF
6171 cat confdefs.h >>conftest.$ac_ext
6172 cat >>conftest.$ac_ext <<_ACEOF
6173 /* end confdefs.h. */
6175 # include <limits.h>
6177 # include <assert.h>
6181 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
6182 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
6184 grep -v '^ *+' conftest.er1 >conftest.err
6186 cat conftest.err >&5
6187 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6188 (exit $ac_status); } >/dev/null; then
6189 if test -s conftest.err; then
6190 ac_cpp_err=$ac_cxx_preproc_warn_flag
6191 ac_cpp_err=$ac_cpp_err$ac_cxx_werror_flag
6198 if test -z "$ac_cpp_err"; then
6201 echo "$as_me: failed program was:" >&5
6202 sed 's/^/| /' conftest.$ac_ext >&5
6204 # Broken: fails on valid input.
6207 rm -f conftest.err conftest.$ac_ext
6209 # OK, works on sane cases. Now check whether non-existent headers
6210 # can be detected and how.
6211 cat >conftest.$ac_ext <<_ACEOF
6214 cat confdefs.h >>conftest.$ac_ext
6215 cat >>conftest.$ac_ext <<_ACEOF
6216 /* end confdefs.h. */
6217 #include <ac_nonexistent.h>
6219 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
6220 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
6222 grep -v '^ *+' conftest.er1 >conftest.err
6224 cat conftest.err >&5
6225 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6226 (exit $ac_status); } >/dev/null; then
6227 if test -s conftest.err; then
6228 ac_cpp_err=$ac_cxx_preproc_warn_flag
6229 ac_cpp_err=$ac_cpp_err$ac_cxx_werror_flag
6236 if test -z "$ac_cpp_err"; then
6237 # Broken: success on invalid input.
6240 echo "$as_me: failed program was:" >&5
6241 sed 's/^/| /' conftest.$ac_ext >&5
6243 # Passes both tests.
6247 rm -f conftest.err conftest.$ac_ext
6250 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
6251 rm -f conftest.err conftest.$ac_ext
6252 if $ac_preproc_ok; then
6257 ac_cv_prog_CXXCPP=$CXXCPP
6260 CXXCPP=$ac_cv_prog_CXXCPP
6262 ac_cv_prog_CXXCPP=$CXXCPP
6264 echo "$as_me:$LINENO: result: $CXXCPP" >&5
6265 echo "${ECHO_T}$CXXCPP" >&6
6267 for ac_cxx_preproc_warn_flag in '' yes
6269 # Use a header file that comes with gcc, so configuring glibc
6270 # with a fresh cross-compiler works.
6271 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
6272 # <limits.h> exists even on freestanding compilers.
6273 # On the NeXT, cc -E runs the code through the compiler's parser,
6274 # not just through cpp. "Syntax error" is here to catch this case.
6275 cat >conftest.$ac_ext <<_ACEOF
6278 cat confdefs.h >>conftest.$ac_ext
6279 cat >>conftest.$ac_ext <<_ACEOF
6280 /* end confdefs.h. */
6282 # include <limits.h>
6284 # include <assert.h>
6288 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
6289 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
6291 grep -v '^ *+' conftest.er1 >conftest.err
6293 cat conftest.err >&5
6294 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6295 (exit $ac_status); } >/dev/null; then
6296 if test -s conftest.err; then
6297 ac_cpp_err=$ac_cxx_preproc_warn_flag
6298 ac_cpp_err=$ac_cpp_err$ac_cxx_werror_flag
6305 if test -z "$ac_cpp_err"; then
6308 echo "$as_me: failed program was:" >&5
6309 sed 's/^/| /' conftest.$ac_ext >&5
6311 # Broken: fails on valid input.
6314 rm -f conftest.err conftest.$ac_ext
6316 # OK, works on sane cases. Now check whether non-existent headers
6317 # can be detected and how.
6318 cat >conftest.$ac_ext <<_ACEOF
6321 cat confdefs.h >>conftest.$ac_ext
6322 cat >>conftest.$ac_ext <<_ACEOF
6323 /* end confdefs.h. */
6324 #include <ac_nonexistent.h>
6326 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
6327 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
6329 grep -v '^ *+' conftest.er1 >conftest.err
6331 cat conftest.err >&5
6332 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6333 (exit $ac_status); } >/dev/null; then
6334 if test -s conftest.err; then
6335 ac_cpp_err=$ac_cxx_preproc_warn_flag
6336 ac_cpp_err=$ac_cpp_err$ac_cxx_werror_flag
6343 if test -z "$ac_cpp_err"; then
6344 # Broken: success on invalid input.
6347 echo "$as_me: failed program was:" >&5
6348 sed 's/^/| /' conftest.$ac_ext >&5
6350 # Passes both tests.
6354 rm -f conftest.err conftest.$ac_ext
6357 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
6358 rm -f conftest.err conftest.$ac_ext
6359 if $ac_preproc_ok; then
6362 { { echo "$as_me:$LINENO: error: C++ preprocessor \"$CXXCPP\" fails sanity check
6363 See \`config.log' for more details." >&5
6364 echo "$as_me: error: C++ preprocessor \"$CXXCPP\" fails sanity check
6365 See \`config.log' for more details." >&2;}
6366 { (exit 1); exit 1; }; }
6370 ac_cpp='$CPP $CPPFLAGS'
6371 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
6372 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
6373 ac_compiler_gnu=$ac_cv_c_compiler_gnu
6377 LIBTOOL_DEPS=$LIBTOOL_DEPS" $ac_aux_dir/ltcf-cxx.sh"
6379 lt_save_CFLAGS="$CFLAGS"
6380 AR="$AR" LTCC="$CC" CC="$CXX" CXX="$CXX" CFLAGS="$CXXFLAGS" CPPFLAGS="$CPPFLAGS" \
6381 MAGIC_CMD="$MAGIC_CMD" LD="$LD" LDFLAGS="$LDFLAGS" LIBS="$LIBS" \
6382 LN_S="$LN_S" NM="$NM" RANLIB="$RANLIB" STRIP="$STRIP" \
6383 AS="$AS" DLLTOOL="$DLLTOOL" OBJDUMP="$OBJDUMP" \
6384 objext="$OBJEXT" exeext="$EXEEXT" reload_flag="$reload_flag" \
6385 deplibs_check_method="$deplibs_check_method" \
6386 file_magic_cmd="$file_magic_cmd" \
6387 ${CONFIG_SHELL-/bin/sh} $ac_aux_dir/ltconfig -o libtool $libtool_flags \
6388 --build="$build" --add-tag=CXX $ac_aux_dir/ltcf-cxx.sh $host \
6389 || { { echo "$as_me:$LINENO: error: libtool tag configuration failed" >&5
6390 echo "$as_me: error: libtool tag configuration failed" >&2;}
6391 { (exit 1); exit 1; }; }
6393 CFLAGS="$lt_save_CFLAGS"
6395 # Redirect the config.log output again, so that the ltconfig log is not
6396 # clobbered by the next message.
6397 exec 5>>./config.log
6405 for ac_prog in gcj gcj-3.2 gcj-3.1 gcj-3.0 gcj-2.95
6407 # Extract the first word of "$ac_prog", so it can be a program name with args.
6408 set dummy $ac_prog; ac_word=$2
6409 echo "$as_me:$LINENO: checking for $ac_word" >&5
6410 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
6411 if test "${ac_cv_prog_GCJ+set}" = set; then
6412 echo $ECHO_N "(cached) $ECHO_C" >&6
6414 if test -n "$GCJ"; then
6415 ac_cv_prog_GCJ="$GCJ" # Let the user override the test.
6417 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6421 test -z "$as_dir" && as_dir=.
6422 for ac_exec_ext in '' $ac_executable_extensions; do
6423 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
6424 ac_cv_prog_GCJ="$ac_prog"
6425 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6434 if test -n "$GCJ"; then
6435 echo "$as_me:$LINENO: result: $GCJ" >&5
6436 echo "${ECHO_T}$GCJ" >&6
6438 echo "$as_me:$LINENO: result: no" >&5
6439 echo "${ECHO_T}no" >&6
6442 test -n "$GCJ" && break
6444 test -n "$GCJ" || GCJ="gcj"
6446 test -z "$GCJ" && { { echo "$as_me:$LINENO: error: no acceptable gcj found in \$PATH" >&5
6447 echo "$as_me: error: no acceptable gcj found in \$PATH" >&2;}
6448 { (exit 1); exit 1; }; }
6449 if test "x${GCJFLAGS-unset}" = xunset; then
6454 depcc="$GCJ" am_compiler_list='gcc3 gcc'
6456 echo "$as_me:$LINENO: checking dependency style of $depcc" >&5
6457 echo $ECHO_N "checking dependency style of $depcc... $ECHO_C" >&6
6458 if test "${am_cv_GCJ_dependencies_compiler_type+set}" = set; then
6459 echo $ECHO_N "(cached) $ECHO_C" >&6
6461 if test -z "$AMDEP_TRUE" && test -f "$am_depcomp"; then
6462 # We make a subdir and do the tests there. Otherwise we can end up
6463 # making bogus files that we don't know about and never remove. For
6464 # instance it was reported that on HP-UX the gcc test will end up
6465 # making a dummy file named `D' -- because `-MD' means `put the output
6468 # Copy depcomp to subdir because otherwise we won't find it if we're
6469 # using a relative directory.
6470 cp "$am_depcomp" conftest.dir
6472 # We will build objects and dependencies in a subdirectory because
6473 # it helps to detect inapplicable dependency modes. For instance
6474 # both Tru64's cc and ICC support -MD to output dependencies as a
6475 # side effect of compilation, but ICC will put the dependencies in
6476 # the current directory while Tru64 will put them in the object
6480 am_cv_GCJ_dependencies_compiler_type=none
6481 if test "$am_compiler_list" = ""; then
6482 am_compiler_list=`sed -n 's/^#*\([a-zA-Z0-9]*\))$/\1/p' < ./depcomp`
6484 for depmode in $am_compiler_list; do
6485 # Setup a source with many dependencies, because some compilers
6486 # like to wrap large dependency lists on column 80 (with \), and
6487 # we should not choose a depcomp mode which is confused by this.
6489 # We need to recreate these files for each test, as the compiler may
6490 # overwrite some of them when testing with obscure command lines.
6491 # This happens at least with the AIX C compiler.
6493 for i in 1 2 3 4 5 6; do
6494 echo '#include "conftst'$i'.h"' >> sub/conftest.c
6495 # Using `: > sub/conftst$i.h' creates only sub/conftst1.h with
6496 # Solaris 8's {/usr,}/bin/sh.
6497 touch sub/conftst$i.h
6499 echo "${am__include} ${am__quote}sub/conftest.Po${am__quote}" > confmf
6503 # after this tag, mechanisms are not by side-effect, so they'll
6504 # only be used when explicitly requested
6505 if test "x$enable_dependency_tracking" = xyes; then
6513 # We check with `-c' and `-o' for the sake of the "dashmstdout"
6514 # mode. It turns out that the SunPro C++ compiler does not properly
6515 # handle `-M -o', and we need to detect this.
6516 if depmode=$depmode \
6517 source=sub/conftest.c object=sub/conftest.${OBJEXT-o} \
6518 depfile=sub/conftest.Po tmpdepfile=sub/conftest.TPo \
6519 $SHELL ./depcomp $depcc -c -o sub/conftest.${OBJEXT-o} sub/conftest.c \
6520 >/dev/null 2>conftest.err &&
6521 grep sub/conftst6.h sub/conftest.Po > /dev/null 2>&1 &&
6522 grep sub/conftest.${OBJEXT-o} sub/conftest.Po > /dev/null 2>&1 &&
6523 ${MAKE-make} -s -f confmf > /dev/null 2>&1; then
6524 # icc doesn't choke on unknown options, it will just issue warnings
6525 # or remarks (even with -Werror). So we grep stderr for any message
6526 # that says an option was ignored or not supported.
6527 # When given -MP, icc 7.0 and 7.1 complain thusly:
6528 # icc: Command line warning: ignoring option '-M'; no argument required
6529 # The diagnosis changed in icc 8.0:
6530 # icc: Command line remark: option '-MP' not supported
6531 if (grep 'ignoring option' conftest.err ||
6532 grep 'not supported' conftest.err) >/dev/null 2>&1; then :; else
6533 am_cv_GCJ_dependencies_compiler_type=$depmode
6542 am_cv_GCJ_dependencies_compiler_type=none
6546 echo "$as_me:$LINENO: result: $am_cv_GCJ_dependencies_compiler_type" >&5
6547 echo "${ECHO_T}$am_cv_GCJ_dependencies_compiler_type" >&6
6548 GCJDEPMODE=depmode=$am_cv_GCJ_dependencies_compiler_type
6553 test "x$enable_dependency_tracking" != xno \
6554 && test "$am_cv_GCJ_dependencies_compiler_type" = gcc3; then
6555 am__fastdepGCJ_TRUE=
6556 am__fastdepGCJ_FALSE='#'
6558 am__fastdepGCJ_TRUE='#'
6559 am__fastdepGCJ_FALSE=
6565 LIBTOOL_DEPS=$LIBTOOL_DEPS" $ac_aux_dir/ltcf-gcj.sh"
6567 lt_save_CFLAGS="$CFLAGS"
6568 AR="$AR" LTCC="$CC" CC="$GCJ" CFLAGS="$GCJFLAGS" CPPFLAGS="$CPPFLAGS" \
6569 MAGIC_CMD="$MAGIC_CMD" LD="$LD" LDFLAGS="$LDFLAGS" LIBS="$LIBS" \
6570 LN_S="$LN_S" NM="$NM" RANLIB="$RANLIB" STRIP="$STRIP" \
6571 AS="$AS" DLLTOOL="$DLLTOOL" OBJDUMP="$OBJDUMP" \
6572 objext="$OBJEXT" exeext="$EXEEXT" reload_flag="$reload_flag" \
6573 deplibs_check_method="$deplibs_check_method" \
6574 file_magic_cmd="$file_magic_cmd" \
6575 ${CONFIG_SHELL-/bin/sh} $ac_aux_dir/ltconfig -o libtool $libtool_flags \
6576 --build="$build" --add-tag=GCJ $ac_aux_dir/ltcf-gcj.sh $host \
6577 || { { echo "$as_me:$LINENO: error: libtool tag configuration failed" >&5
6578 echo "$as_me: error: libtool tag configuration failed" >&2;}
6579 { (exit 1); exit 1; }; }
6581 CFLAGS="$lt_save_CFLAGS"
6583 # Redirect the config.log output again, so that the ltconfig log is not
6584 # clobbered by the next message.
6585 exec 5>>./config.log
6589 if test "x$CC" != xcc; then
6590 echo "$as_me:$LINENO: checking whether $CC and cc understand -c and -o together" >&5
6591 echo $ECHO_N "checking whether $CC and cc understand -c and -o together... $ECHO_C" >&6
6593 echo "$as_me:$LINENO: checking whether cc understands -c and -o together" >&5
6594 echo $ECHO_N "checking whether cc understands -c and -o together... $ECHO_C" >&6
6596 set dummy $CC; ac_cc=`echo $2 |
6597 sed 's/[^a-zA-Z0-9_]/_/g;s/^[0-9]/_/'`
6598 if eval "test \"\${ac_cv_prog_cc_${ac_cc}_c_o+set}\" = set"; then
6599 echo $ECHO_N "(cached) $ECHO_C" >&6
6601 cat >conftest.$ac_ext <<_ACEOF
6604 cat confdefs.h >>conftest.$ac_ext
6605 cat >>conftest.$ac_ext <<_ACEOF
6606 /* end confdefs.h. */
6616 # Make sure it works both with $CC and with simple cc.
6617 # We do the test twice because some compilers refuse to overwrite an
6618 # existing .o file with -o, though they will create one.
6619 ac_try='$CC -c conftest.$ac_ext -o conftest.$ac_objext >&5'
6620 if { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6623 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6624 (exit $ac_status); } &&
6625 test -f conftest.$ac_objext && { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6628 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6629 (exit $ac_status); };
6631 eval ac_cv_prog_cc_${ac_cc}_c_o=yes
6632 if test "x$CC" != xcc; then
6633 # Test first that cc exists at all.
6634 if { ac_try='cc -c conftest.$ac_ext >&5'
6635 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6638 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6639 (exit $ac_status); }; }; then
6640 ac_try='cc -c conftest.$ac_ext -o conftest.$ac_objext >&5'
6641 if { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6644 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6645 (exit $ac_status); } &&
6646 test -f conftest.$ac_objext && { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6649 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6650 (exit $ac_status); };
6655 # cc exists but doesn't like -o.
6656 eval ac_cv_prog_cc_${ac_cc}_c_o=no
6661 eval ac_cv_prog_cc_${ac_cc}_c_o=no
6666 if eval "test \"`echo '$ac_cv_prog_cc_'${ac_cc}_c_o`\" = yes"; then
6667 echo "$as_me:$LINENO: result: yes" >&5
6668 echo "${ECHO_T}yes" >&6
6670 echo "$as_me:$LINENO: result: no" >&5
6671 echo "${ECHO_T}no" >&6
6673 cat >>confdefs.h <<\_ACEOF
6674 #define NO_MINUS_C_MINUS_O 1
6679 # FIXME: we rely on the cache variable name because
6680 # there is no other way.
6682 ac_cc=`echo $2 | sed 's/[^a-zA-Z0-9_]/_/g;s/^[0-9]/_/'`
6683 if eval "test \"`echo '$ac_cv_prog_cc_'${ac_cc}_c_o`\" != yes"; then
6684 # Losing compiler, so override with the script.
6685 # FIXME: It is wrong to rewrite CC.
6686 # But if we don't then we get into trouble of one sort or another.
6687 # A longer-term fix would be to have automake use am__CC in this case,
6688 # and then we could set am__CC="\$(top_srcdir)/compile \$(CC)"
6689 CC="$am_aux_dir/compile $CC"
6695 subdirs="$subdirs classpath libltdl"
6698 # The -no-testsuite modules omit the test subdir.
6701 if test -d $srcdir/testsuite; then
6703 TESTSUBDIR_FALSE='#'
6710 # Should the runtime set system properties by examining the
6711 # environment variable GCJ_PROPERTIES?
6712 # Check whether --enable-getenv-properties or --disable-getenv-properties was given.
6713 if test "${enable_getenv_properties+set}" = set; then
6714 enableval="$enable_getenv_properties"
6718 # Whether GCJ_PROPERTIES is used depends on the target.
6719 if test -z "$enable_getenv_properties"; then
6720 enable_getenv_properties=${enable_getenv_properties_default-yes}
6722 if test "$enable_getenv_properties" = no; then
6724 cat >>confdefs.h <<\_ACEOF
6725 #define DISABLE_GETENV_PROPERTIES 1
6730 # Whether we should use arguments to main()
6731 if test -z "$enable_main_args"; then
6732 enable_main_args=${enable_main_args_default-yes}
6734 if test "$enable_main_args" = no; then
6736 cat >>confdefs.h <<\_ACEOF
6737 #define DISABLE_MAIN_ARGS 1
6743 # Should we use hashtable-based synchronization?
6744 # Currently works only for Linux X86/ia64
6745 # Typically faster and more space-efficient
6746 # Check whether --enable-hash-synchronization or --disable-hash-synchronization was given.
6747 if test "${enable_hash_synchronization+set}" = set; then
6748 enableval="$enable_hash_synchronization"
6752 if test -z "$enable_hash_synchronization"; then
6753 enable_hash_synchronization=$enable_hash_synchronization_default
6757 # Check whether --with-java-home or --without-java-home was given.
6758 if test "${with_java_home+set}" = set; then
6759 withval="$with_java_home"
6760 JAVA_HOME="${withval}"
6766 if test ! -z "$JAVA_HOME"; then
6768 JAVA_HOME_SET_FALSE='#'
6770 JAVA_HOME_SET_TRUE='#'
6771 JAVA_HOME_SET_FALSE=
6776 # What is the native OS API for MinGW?
6778 # Check whether --with-win32-nlsapi or --without-win32-nlsapi was given.
6779 if test "${with_win32_nlsapi+set}" = set; then
6780 withval="$with_win32_nlsapi"
6781 case "${withval}" in
6782 ansi) with_win32_nlsapi=ansi ;;
6783 unicows) with_win32_nlsapi=unicows ;;
6784 unicode) with_win32_nlsapi=unicode ;;
6785 *) { { echo "$as_me:$LINENO: error: Bad value ${withval} for --with-win32-nlsapi." >&5
6786 echo "$as_me: error: Bad value ${withval} for --with-win32-nlsapi." >&2;}
6787 { (exit 1); exit 1; }; } ;;
6790 with_win32_nlsapi=ansi
6793 case "${with_win32_nlsapi}" in
6796 cat >>confdefs.h <<\_ACEOF
6797 #define MINGW_LIBGCJ_UNICODE 1
6803 # configure.host sets slow_pthread_self if the synchronization code should
6804 # try to avoid pthread_self calls by caching thread IDs in a hashtable.
6805 if test "${slow_pthread_self}" = "yes"; then
6807 cat >>confdefs.h <<\_ACEOF
6808 #define SLOW_PTHREAD_SELF 1
6813 # Check for gc debugging. This option is handled both here and in the GC.
6814 # Check whether --enable-gc-debug or --disable-gc-debug was given.
6815 if test "${enable_gc_debug+set}" = set; then
6816 enableval="$enable_gc_debug"
6817 if test "$enable_gc_debug" = "yes"; then
6819 cat >>confdefs.h <<\_ACEOF
6820 #define LIBGCJ_GC_DEBUG 1
6826 # See if the user has the interpreter included.
6827 # Check whether --enable-interpreter or --disable-interpreter was given.
6828 if test "${enable_interpreter+set}" = set; then
6829 enableval="$enable_interpreter"
6830 if test "$enable_interpreter" = yes; then
6831 # This can also be set in configure.host.
6832 libgcj_interpreter=yes
6833 elif test "$enable_interpreter" = no; then
6834 libgcj_interpreter=no
6838 if test "$libgcj_interpreter" = yes; then
6840 cat >>confdefs.h <<\_ACEOF
6841 #define INTERPRETER 1
6845 INTERPRETER="$libgcj_interpreter"
6848 echo "$as_me:$LINENO: checking for exception model to use" >&5
6849 echo $ECHO_N "checking for exception model to use... $ECHO_C" >&6
6851 ac_cpp='$CXXCPP $CPPFLAGS'
6852 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
6853 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
6854 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
6856 # Check whether --enable-sjlj-exceptions or --disable-sjlj-exceptions was given.
6857 if test "${enable_sjlj_exceptions+set}" = set; then
6858 enableval="$enable_sjlj_exceptions"
6861 cat > conftest.$ac_ext << EOF
6862 #line 6862 "configure"
6871 old_CXXFLAGS="$CXXFLAGS"
6873 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
6874 (eval $ac_compile) 2>&5
6876 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6877 (exit $ac_status); }; then
6878 if grep _Unwind_SjLj_Resume conftest.s >/dev/null 2>&1 ; then
6879 enable_sjlj_exceptions=yes
6880 elif grep _Unwind_Resume conftest.s >/dev/null 2>&1 ; then
6881 enable_sjlj_exceptions=no
6884 CXXFLAGS="$old_CXXFLAGS"
6887 if test x$enable_sjlj_exceptions = xyes; then
6889 cat >>confdefs.h <<\_ACEOF
6890 #define SJLJ_EXCEPTIONS 1
6893 ac_exception_model_name=sjlj
6894 elif test x$enable_sjlj_exceptions = xno; then
6895 ac_exception_model_name="call frame"
6897 { { echo "$as_me:$LINENO: error: unable to detect exception model" >&5
6898 echo "$as_me: error: unable to detect exception model" >&2;}
6899 { (exit 1); exit 1; }; }
6902 ac_cpp='$CPP $CPPFLAGS'
6903 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
6904 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
6905 ac_compiler_gnu=$ac_cv_c_compiler_gnu
6907 echo "$as_me:$LINENO: result: $ac_exception_model_name" >&5
6908 echo "${ECHO_T}$ac_exception_model_name" >&6
6910 # If we are non using SJLJ exceptions, and this host does not have support
6911 # for unwinding from a signal handler, enable checked dereferences and divides.
6912 if test $can_unwind_signal = no && test $enable_sjlj_exceptions = no; then
6913 CHECKREFSPEC=-fcheck-references
6914 DIVIDESPEC=-fuse-divide-subroutine
6918 # See if the user wants to disable java.net. This is the mildly
6919 # ugly way that we admit that target-side configuration sucks.
6920 # Check whether --enable-java-net or --disable-java-net was given.
6921 if test "${enable_java_net+set}" = set; then
6922 enableval="$enable_java_net"
6926 # Whether java.net is built by default can depend on the target.
6927 if test -z "$enable_java_net"; then
6928 enable_java_net=${enable_java_net_default-yes}
6930 if test "$enable_java_net" = no; then
6932 cat >>confdefs.h <<\_ACEOF
6933 #define DISABLE_JAVA_NET 1
6938 # See if the user wants to configure without libffi. Some
6939 # architectures don't support it, and default values are set in
6942 # Check whether --with-libffi or --without-libffi was given.
6943 if test "${with_libffi+set}" = set; then
6944 withval="$with_libffi"
6947 with_libffi=${with_libffi_default-yes}
6952 if test "$with_libffi" != no; then
6954 cat >>confdefs.h <<\_ACEOF
6955 #define USE_LIBFFI 1
6958 LIBFFI=../libffi/libffi_convenience.la
6959 LIBFFIINCS='-I$(top_srcdir)/../libffi/include -I../libffi/include'
6964 # See if the user wants to disable JVMPI support.
6965 # Check whether --enable-jvmpi or --disable-jvmpi was given.
6966 if test "${enable_jvmpi+set}" = set; then
6967 enableval="$enable_jvmpi"
6971 if test "$enable_jvmpi" != no; then
6973 cat >>confdefs.h <<\_ACEOF
6974 #define ENABLE_JVMPI 1
6979 # If the target is an eCos system, use the appropriate eCos
6981 # FIXME: this should not be a local option but a global target
6982 # system; at present there is no eCos target.
6983 TARGET_ECOS=${PROCESS-"no"}
6985 # Check whether --with-ecos or --without-ecos was given.
6986 if test "${with_ecos+set}" = set; then
6987 withval="$with_ecos"
6988 TARGET_ECOS="$with_ecos"
6992 PLATFORM_INNER_NAT_HDRS=
6993 case "$TARGET_ECOS" in
7000 echo "$as_me:$LINENO: checking whether 'ld' is at least 2.13" >&5
7001 echo $ECHO_N "checking whether 'ld' is at least 2.13... $ECHO_C" >&6
7002 LD_PROG=`$CC --print-prog-name=ld`
7003 LD_VERSION=`$LD_PROG --version`
7004 LD_VERSION_MAJOR=`echo "$LD_VERSION" | head -1 | cut -d '.' -f 1 | cut -d ' ' -f 4`
7005 LD_VERSION_MINOR=`echo "$LD_VERSION" | head -1 | cut -d '.' -f 2`
7006 if expr "$LD_VERSION_MAJOR" \> 2 > /dev/null; then
7009 if expr "$LD_VERSION_MAJOR" = 2 && expr "$LD_VERSION_MINOR" \>= 13 > /dev/null; then
7013 if test "x$LD_OK" != x; then
7014 echo "$as_me:$LINENO: result: yes; major=$LD_VERSION_MAJOR, minor=$LD_VERSION_MINOR" >&5
7015 echo "${ECHO_T}yes; major=$LD_VERSION_MAJOR, minor=$LD_VERSION_MINOR" >&6
7017 echo "$as_me:$LINENO: result: no; major=$LD_VERSION_MAJOR, minor=$LD_VERSION_MINOR" >&5
7018 echo "${ECHO_T}no; major=$LD_VERSION_MAJOR, minor=$LD_VERSION_MINOR" >&6
7019 { echo "$as_me:$LINENO: WARNING: ld <2.13 detected; enabling JV_LINKER_CANNOT_8BYTE_ALIGN_STATICS hack..." >&5
7020 echo "$as_me: WARNING: ld <2.13 detected; enabling JV_LINKER_CANNOT_8BYTE_ALIGN_STATICS hack..." >&2;}
7022 cat >>confdefs.h <<\_ACEOF
7023 #define JV_LINKER_CANNOT_8BYTE_ALIGN_STATICS 1
7032 PLATFORM_INNER_NAT_HDRS='java/lang/ConcreteProcess$$ProcessManager.h'
7040 cat >>confdefs.h <<\_ACEOF
7048 ac_config_links="$ac_config_links include/platform.h:include/$PLATFORMH"
7052 ac_cpp='$CPP $CPPFLAGS'
7053 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
7054 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
7055 ac_compiler_gnu=$ac_cv_c_compiler_gnu
7056 echo "$as_me:$LINENO: checking how to run the C preprocessor" >&5
7057 echo $ECHO_N "checking how to run the C preprocessor... $ECHO_C" >&6
7058 # On Suns, sometimes $CPP names a directory.
7059 if test -n "$CPP" && test -d "$CPP"; then
7062 if test -z "$CPP"; then
7063 if test "${ac_cv_prog_CPP+set}" = set; then
7064 echo $ECHO_N "(cached) $ECHO_C" >&6
7066 # Double quotes because CPP needs to be expanded
7067 for CPP in "$CC -E" "$CC -E -traditional-cpp" "/lib/cpp"
7070 for ac_c_preproc_warn_flag in '' yes
7072 # Use a header file that comes with gcc, so configuring glibc
7073 # with a fresh cross-compiler works.
7074 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
7075 # <limits.h> exists even on freestanding compilers.
7076 # On the NeXT, cc -E runs the code through the compiler's parser,
7077 # not just through cpp. "Syntax error" is here to catch this case.
7078 cat >conftest.$ac_ext <<_ACEOF
7081 cat confdefs.h >>conftest.$ac_ext
7082 cat >>conftest.$ac_ext <<_ACEOF
7083 /* end confdefs.h. */
7085 # include <limits.h>
7087 # include <assert.h>
7091 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
7092 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
7094 grep -v '^ *+' conftest.er1 >conftest.err
7096 cat conftest.err >&5
7097 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7098 (exit $ac_status); } >/dev/null; then
7099 if test -s conftest.err; then
7100 ac_cpp_err=$ac_c_preproc_warn_flag
7101 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
7108 if test -z "$ac_cpp_err"; then
7111 echo "$as_me: failed program was:" >&5
7112 sed 's/^/| /' conftest.$ac_ext >&5
7114 # Broken: fails on valid input.
7117 rm -f conftest.err conftest.$ac_ext
7119 # OK, works on sane cases. Now check whether non-existent headers
7120 # can be detected and how.
7121 cat >conftest.$ac_ext <<_ACEOF
7124 cat confdefs.h >>conftest.$ac_ext
7125 cat >>conftest.$ac_ext <<_ACEOF
7126 /* end confdefs.h. */
7127 #include <ac_nonexistent.h>
7129 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
7130 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
7132 grep -v '^ *+' conftest.er1 >conftest.err
7134 cat conftest.err >&5
7135 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7136 (exit $ac_status); } >/dev/null; then
7137 if test -s conftest.err; then
7138 ac_cpp_err=$ac_c_preproc_warn_flag
7139 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
7146 if test -z "$ac_cpp_err"; then
7147 # Broken: success on invalid input.
7150 echo "$as_me: failed program was:" >&5
7151 sed 's/^/| /' conftest.$ac_ext >&5
7153 # Passes both tests.
7157 rm -f conftest.err conftest.$ac_ext
7160 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
7161 rm -f conftest.err conftest.$ac_ext
7162 if $ac_preproc_ok; then
7174 echo "$as_me:$LINENO: result: $CPP" >&5
7175 echo "${ECHO_T}$CPP" >&6
7177 for ac_c_preproc_warn_flag in '' yes
7179 # Use a header file that comes with gcc, so configuring glibc
7180 # with a fresh cross-compiler works.
7181 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
7182 # <limits.h> exists even on freestanding compilers.
7183 # On the NeXT, cc -E runs the code through the compiler's parser,
7184 # not just through cpp. "Syntax error" is here to catch this case.
7185 cat >conftest.$ac_ext <<_ACEOF
7188 cat confdefs.h >>conftest.$ac_ext
7189 cat >>conftest.$ac_ext <<_ACEOF
7190 /* end confdefs.h. */
7192 # include <limits.h>
7194 # include <assert.h>
7198 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
7199 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
7201 grep -v '^ *+' conftest.er1 >conftest.err
7203 cat conftest.err >&5
7204 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7205 (exit $ac_status); } >/dev/null; then
7206 if test -s conftest.err; then
7207 ac_cpp_err=$ac_c_preproc_warn_flag
7208 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
7215 if test -z "$ac_cpp_err"; then
7218 echo "$as_me: failed program was:" >&5
7219 sed 's/^/| /' conftest.$ac_ext >&5
7221 # Broken: fails on valid input.
7224 rm -f conftest.err conftest.$ac_ext
7226 # OK, works on sane cases. Now check whether non-existent headers
7227 # can be detected and how.
7228 cat >conftest.$ac_ext <<_ACEOF
7231 cat confdefs.h >>conftest.$ac_ext
7232 cat >>conftest.$ac_ext <<_ACEOF
7233 /* end confdefs.h. */
7234 #include <ac_nonexistent.h>
7236 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
7237 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
7239 grep -v '^ *+' conftest.er1 >conftest.err
7241 cat conftest.err >&5
7242 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7243 (exit $ac_status); } >/dev/null; then
7244 if test -s conftest.err; then
7245 ac_cpp_err=$ac_c_preproc_warn_flag
7246 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
7253 if test -z "$ac_cpp_err"; then
7254 # Broken: success on invalid input.
7257 echo "$as_me: failed program was:" >&5
7258 sed 's/^/| /' conftest.$ac_ext >&5
7260 # Passes both tests.
7264 rm -f conftest.err conftest.$ac_ext
7267 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
7268 rm -f conftest.err conftest.$ac_ext
7269 if $ac_preproc_ok; then
7272 { { echo "$as_me:$LINENO: error: C preprocessor \"$CPP\" fails sanity check
7273 See \`config.log' for more details." >&5
7274 echo "$as_me: error: C preprocessor \"$CPP\" fails sanity check
7275 See \`config.log' for more details." >&2;}
7276 { (exit 1); exit 1; }; }
7280 ac_cpp='$CPP $CPPFLAGS'
7281 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
7282 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
7283 ac_compiler_gnu=$ac_cv_c_compiler_gnu
7286 echo "$as_me:$LINENO: checking for egrep" >&5
7287 echo $ECHO_N "checking for egrep... $ECHO_C" >&6
7288 if test "${ac_cv_prog_egrep+set}" = set; then
7289 echo $ECHO_N "(cached) $ECHO_C" >&6
7291 if echo a | (grep -E '(a|b)') >/dev/null 2>&1
7292 then ac_cv_prog_egrep='grep -E'
7293 else ac_cv_prog_egrep='egrep'
7296 echo "$as_me:$LINENO: result: $ac_cv_prog_egrep" >&5
7297 echo "${ECHO_T}$ac_cv_prog_egrep" >&6
7298 EGREP=$ac_cv_prog_egrep
7301 cat >conftest.$ac_ext <<_ACEOF
7304 cat confdefs.h >>conftest.$ac_ext
7305 cat >>conftest.$ac_ext <<_ACEOF
7306 /* end confdefs.h. */
7310 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
7311 $EGREP "uint32_t" >/dev/null 2>&1; then
7313 cat >>confdefs.h <<\_ACEOF
7314 #define HAVE_INT32_DEFINED 1
7320 cat >conftest.$ac_ext <<_ACEOF
7323 cat confdefs.h >>conftest.$ac_ext
7324 cat >>conftest.$ac_ext <<_ACEOF
7325 /* end confdefs.h. */
7326 #include <inttypes.h>
7329 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
7330 $EGREP "uint32_t" >/dev/null 2>&1; then
7332 cat >>confdefs.h <<\_ACEOF
7333 #define HAVE_INT32_DEFINED 1
7339 cat >conftest.$ac_ext <<_ACEOF
7342 cat confdefs.h >>conftest.$ac_ext
7343 cat >>conftest.$ac_ext <<_ACEOF
7344 /* end confdefs.h. */
7345 #include <sys/types.h>
7348 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
7349 $EGREP "u_int32_t" >/dev/null 2>&1; then
7351 cat >>confdefs.h <<\_ACEOF
7352 #define HAVE_BSD_INT32_DEFINED 1
7358 cat >conftest.$ac_ext <<_ACEOF
7361 cat confdefs.h >>conftest.$ac_ext
7362 cat >>conftest.$ac_ext <<_ACEOF
7363 /* end confdefs.h. */
7364 #include <sys/config.h>
7367 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
7368 $EGREP "u_int32_t" >/dev/null 2>&1; then
7370 cat >>confdefs.h <<\_ACEOF
7371 #define HAVE_BSD_INT32_DEFINED 1
7380 if test "$PLATFORM" = Win32; then
7381 USING_WIN32_PLATFORM_TRUE=
7382 USING_WIN32_PLATFORM_FALSE='#'
7384 USING_WIN32_PLATFORM_TRUE='#'
7385 USING_WIN32_PLATFORM_FALSE=
7390 if test "$PLATFORM" = Posix || test "$PLATFORM" = Ecos; then
7391 USING_POSIX_PLATFORM_TRUE=
7392 USING_POSIX_PLATFORM_FALSE='#'
7394 USING_POSIX_PLATFORM_TRUE='#'
7395 USING_POSIX_PLATFORM_FALSE=
7400 *-darwin*) DARWIN_CRT=true ;;
7401 *) DARWIN_CRT=false ;;
7405 if $DARWIN_CRT; then
7406 USING_DARWIN_CRT_TRUE=
7407 USING_DARWIN_CRT_FALSE='#'
7409 USING_DARWIN_CRT_TRUE='#'
7410 USING_DARWIN_CRT_FALSE=
7414 # These may not be defined in a non-ANS conformant embedded system.
7415 # FIXME: Should these case a runtime exception in that case?
7416 cat >conftest.$ac_ext <<_ACEOF
7419 cat confdefs.h >>conftest.$ac_ext
7420 cat >>conftest.$ac_ext <<_ACEOF
7421 /* end confdefs.h. */
7425 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
7426 $EGREP "mktime" >/dev/null 2>&1; then
7428 cat >>confdefs.h <<\_ACEOF
7429 #define HAVE_MKTIME 1
7435 cat >conftest.$ac_ext <<_ACEOF
7438 cat confdefs.h >>conftest.$ac_ext
7439 cat >>conftest.$ac_ext <<_ACEOF
7440 /* end confdefs.h. */
7444 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
7445 $EGREP "localtime" >/dev/null 2>&1; then
7447 cat >>confdefs.h <<\_ACEOF
7448 #define HAVE_LOCALTIME 1
7455 # Create the subdirectory for natFile.cc, or the attempt
7456 # to create the link will fail.
7457 test -d java || mkdir java
7458 test -d java/io || mkdir java/io
7459 test -d gnu || mkdir gnu
7460 ac_config_links="$ac_config_links java/io/natFile.cc:java/io/natFile${FILE-${PLATFORM}}.cc"
7463 # Likewise for ConcreteProcess.java and natConcreteProcess.cc.
7464 test -d java/lang || mkdir java/lang
7465 ac_config_links="$ac_config_links java/lang/ConcreteProcess.java:java/lang/${PLATFORM}Process.java"
7467 ac_config_links="$ac_config_links java/lang/natConcreteProcess.cc:java/lang/nat${PLATFORM}Process.cc"
7470 # Likewise for natInetAddress.cc and natVMNetworkInterface.cc.
7471 test -d java/net || mkdir java/net
7472 ac_config_links="$ac_config_links java/net/natInetAddress.cc:java/net/natInetAddress${PLATFORMNET}.cc"
7474 ac_config_links="$ac_config_links java/net/natVMNetworkInterface.cc:java/net/natVMNetworkInterface${PLATFORMNET}.cc"
7477 # Likewise for natPlainSocketImpl.cc and natPlainDatagramSocketImpl.cc.
7478 test -d gnu/java || mkdir gnu/java
7479 test -d gnu/java/net || mkdir gnu/java/net
7480 ac_config_links="$ac_config_links gnu/java/net/natPlainSocketImpl.cc:gnu/java/net/natPlainSocketImpl${PLATFORMNET}.cc"
7482 ac_config_links="$ac_config_links gnu/java/net/natPlainDatagramSocketImpl.cc:gnu/java/net/natPlainDatagramSocketImpl${PLATFORMNET}.cc"
7485 # Likewise for natPipeImpl.cc and natSelectorImpl.cc.
7486 test -d gnu/java/nio || mkdir gnu/java/nio
7487 ac_config_links="$ac_config_links gnu/java/nio/natPipeImpl.cc:gnu/java/nio/natPipeImpl${PLATFORM}.cc"
7489 ac_config_links="$ac_config_links gnu/java/nio/natSelectorImpl.cc:gnu/java/nio/natSelectorImpl${PLATFORM}.cc"
7491 test -d gnu/java/nio/channels || mkdir gnu/java/nio/channels
7492 ac_config_links="$ac_config_links gnu/java/nio/channels/natFileChannelImpl.cc:gnu/java/nio/channels/natFileChannel${FILE-${PLATFORM}}.cc"
7497 SYSTEMSPEC="-lgdi32 -lws2_32"
7498 if test "${with_win32_nlsapi}" = "unicows"; then
7499 SYSTEMSPEC="-lunicows $SYSTEMSPEC"
7508 LIBGCJTESTSPEC="-L`${PWDCMD-pwd}`/.libs -rpath `${PWDCMD-pwd}`/.libs"
7512 # Check whether --with-system-zlib or --without-system-zlib was given.
7513 if test "${with_system_zlib+set}" = set; then
7514 withval="$with_system_zlib"
7522 echo "$as_me:$LINENO: checking for X" >&5
7523 echo $ECHO_N "checking for X... $ECHO_C" >&6
7526 # Check whether --with-x or --without-x was given.
7527 if test "${with_x+set}" = set; then
7531 # $have_x is `yes', `no', `disabled', or empty when we do not yet know.
7532 if test "x$with_x" = xno; then
7533 # The user explicitly disabled X.
7536 if test "x$x_includes" != xNONE && test "x$x_libraries" != xNONE; then
7537 # Both variables are already set.
7540 if test "${ac_cv_have_x+set}" = set; then
7541 echo $ECHO_N "(cached) $ECHO_C" >&6
7543 # One or both of the vars are not set, and there is no cached value.
7544 ac_x_includes=no ac_x_libraries=no
7546 if mkdir conftest.dir; then
7548 # Make sure to not put "make" in the Imakefile rules, since we grep it out.
7549 cat >Imakefile <<'_ACEOF'
7551 @echo 'ac_im_incroot="${INCROOT}"; ac_im_usrlibdir="${USRLIBDIR}"; ac_im_libdir="${LIBDIR}"'
7553 if (xmkmf) >/dev/null 2>/dev/null && test -f Makefile; then
7554 # GNU make sometimes prints "make[1]: Entering...", which would confuse us.
7555 eval `${MAKE-make} acfindx 2>/dev/null | grep -v make`
7556 # Open Windows xmkmf reportedly sets LIBDIR instead of USRLIBDIR.
7557 for ac_extension in a so sl; do
7558 if test ! -f $ac_im_usrlibdir/libX11.$ac_extension &&
7559 test -f $ac_im_libdir/libX11.$ac_extension; then
7560 ac_im_usrlibdir=$ac_im_libdir; break
7563 # Screen out bogus values from the imake configuration. They are
7564 # bogus both because they are the default anyway, and because
7565 # using them would break gcc on systems where it needs fixed includes.
7566 case $ac_im_incroot in
7568 *) test -f "$ac_im_incroot/X11/Xos.h" && ac_x_includes=$ac_im_incroot;;
7570 case $ac_im_usrlibdir in
7572 *) test -d "$ac_im_usrlibdir" && ac_x_libraries=$ac_im_usrlibdir ;;
7579 # Standard set of common directories for X headers.
7580 # Check X11 before X11Rn because it is often a symlink to the current release.
7592 /usr/local/X11/include
7593 /usr/local/X11R6/include
7594 /usr/local/X11R5/include
7595 /usr/local/X11R4/include
7597 /usr/local/include/X11
7598 /usr/local/include/X11R6
7599 /usr/local/include/X11R5
7600 /usr/local/include/X11R4
7604 /usr/XFree86/include/X11
7608 /usr/unsupported/include
7610 /usr/local/x11r5/include
7611 /usr/lpp/Xamples/include
7613 /usr/openwin/include
7614 /usr/openwin/share/include'
7616 if test "$ac_x_includes" = no; then
7617 # Guess where to find include files, by looking for Xlib.h.
7618 # First, try using that file with no special directory specified.
7619 cat >conftest.$ac_ext <<_ACEOF
7622 cat confdefs.h >>conftest.$ac_ext
7623 cat >>conftest.$ac_ext <<_ACEOF
7624 /* end confdefs.h. */
7625 #include <X11/Xlib.h>
7627 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
7628 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
7630 grep -v '^ *+' conftest.er1 >conftest.err
7632 cat conftest.err >&5
7633 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7634 (exit $ac_status); } >/dev/null; then
7635 if test -s conftest.err; then
7636 ac_cpp_err=$ac_c_preproc_warn_flag
7637 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
7644 if test -z "$ac_cpp_err"; then
7645 # We can compile using X headers with no special include directory.
7648 echo "$as_me: failed program was:" >&5
7649 sed 's/^/| /' conftest.$ac_ext >&5
7651 for ac_dir in $ac_x_header_dirs; do
7652 if test -r "$ac_dir/X11/Xlib.h"; then
7653 ac_x_includes=$ac_dir
7658 rm -f conftest.err conftest.$ac_ext
7659 fi # $ac_x_includes = no
7661 if test "$ac_x_libraries" = no; then
7662 # Check for the libraries.
7663 # See if we find them without any special options.
7664 # Don't add to $LIBS permanently.
7667 if test x$gcc_no_link = xyes; then
7668 { { echo "$as_me:$LINENO: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&5
7669 echo "$as_me: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&2;}
7670 { (exit 1); exit 1; }; }
7672 cat >conftest.$ac_ext <<_ACEOF
7675 cat confdefs.h >>conftest.$ac_ext
7676 cat >>conftest.$ac_ext <<_ACEOF
7677 /* end confdefs.h. */
7678 #include <X11/Xlib.h>
7687 rm -f conftest.$ac_objext conftest$ac_exeext
7688 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
7689 (eval $ac_link) 2>conftest.er1
7691 grep -v '^ *+' conftest.er1 >conftest.err
7693 cat conftest.err >&5
7694 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7695 (exit $ac_status); } &&
7696 { ac_try='test -z "$ac_c_werror_flag"
7697 || test ! -s conftest.err'
7698 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7701 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7702 (exit $ac_status); }; } &&
7703 { ac_try='test -s conftest$ac_exeext'
7704 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7707 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7708 (exit $ac_status); }; }; then
7710 # We can link X programs with no special library path.
7713 echo "$as_me: failed program was:" >&5
7714 sed 's/^/| /' conftest.$ac_ext >&5
7717 for ac_dir in `echo "$ac_x_includes $ac_x_header_dirs" | sed s/include/lib/g`
7719 # Don't even attempt the hair of trying to link an X program!
7720 for ac_extension in a so sl; do
7721 if test -r $ac_dir/libXt.$ac_extension; then
7722 ac_x_libraries=$ac_dir
7728 rm -f conftest.err conftest.$ac_objext \
7729 conftest$ac_exeext conftest.$ac_ext
7730 fi # $ac_x_libraries = no
7732 if test "$ac_x_includes" = no || test "$ac_x_libraries" = no; then
7733 # Didn't find X anywhere. Cache the known absence of X.
7734 ac_cv_have_x="have_x=no"
7736 # Record where we found X for the cache.
7737 ac_cv_have_x="have_x=yes \
7738 ac_x_includes=$ac_x_includes ac_x_libraries=$ac_x_libraries"
7743 eval "$ac_cv_have_x"
7746 if test "$have_x" != yes; then
7747 echo "$as_me:$LINENO: result: $have_x" >&5
7748 echo "${ECHO_T}$have_x" >&6
7751 # If each of the values was on the command line, it overrides each guess.
7752 test "x$x_includes" = xNONE && x_includes=$ac_x_includes
7753 test "x$x_libraries" = xNONE && x_libraries=$ac_x_libraries
7754 # Update the cache value to reflect the command line values.
7755 ac_cv_have_x="have_x=yes \
7756 ac_x_includes=$x_includes ac_x_libraries=$x_libraries"
7757 echo "$as_me:$LINENO: result: libraries $x_libraries, headers $x_includes" >&5
7758 echo "${ECHO_T}libraries $x_libraries, headers $x_includes" >&6
7761 if test "$no_x" = yes; then
7762 # Not all programs may use this symbol, but it does not hurt to define it.
7764 cat >>confdefs.h <<\_ACEOF
7765 #define X_DISPLAY_MISSING 1
7768 X_CFLAGS= X_PRE_LIBS= X_LIBS= X_EXTRA_LIBS=
7770 if test -n "$x_includes"; then
7771 X_CFLAGS="$X_CFLAGS -I$x_includes"
7774 # It would also be nice to do this for all -L options, not just this one.
7775 if test -n "$x_libraries"; then
7776 X_LIBS="$X_LIBS -L$x_libraries"
7777 # For Solaris; some versions of Sun CC require a space after -R and
7778 # others require no space. Words are not sufficient . . . .
7779 case `(uname -sr) 2>/dev/null` in
7781 echo "$as_me:$LINENO: checking whether -R must be followed by a space" >&5
7782 echo $ECHO_N "checking whether -R must be followed by a space... $ECHO_C" >&6
7783 ac_xsave_LIBS=$LIBS; LIBS="$LIBS -R$x_libraries"
7784 if test x$gcc_no_link = xyes; then
7785 { { echo "$as_me:$LINENO: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&5
7786 echo "$as_me: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&2;}
7787 { (exit 1); exit 1; }; }
7789 cat >conftest.$ac_ext <<_ACEOF
7792 cat confdefs.h >>conftest.$ac_ext
7793 cat >>conftest.$ac_ext <<_ACEOF
7794 /* end confdefs.h. */
7804 rm -f conftest.$ac_objext conftest$ac_exeext
7805 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
7806 (eval $ac_link) 2>conftest.er1
7808 grep -v '^ *+' conftest.er1 >conftest.err
7810 cat conftest.err >&5
7811 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7812 (exit $ac_status); } &&
7813 { ac_try='test -z "$ac_c_werror_flag"
7814 || test ! -s conftest.err'
7815 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7818 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7819 (exit $ac_status); }; } &&
7820 { ac_try='test -s conftest$ac_exeext'
7821 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7824 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7825 (exit $ac_status); }; }; then
7828 echo "$as_me: failed program was:" >&5
7829 sed 's/^/| /' conftest.$ac_ext >&5
7833 rm -f conftest.err conftest.$ac_objext \
7834 conftest$ac_exeext conftest.$ac_ext
7835 if test $ac_R_nospace = yes; then
7836 echo "$as_me:$LINENO: result: no" >&5
7837 echo "${ECHO_T}no" >&6
7838 X_LIBS="$X_LIBS -R$x_libraries"
7840 LIBS="$ac_xsave_LIBS -R $x_libraries"
7841 if test x$gcc_no_link = xyes; then
7842 { { echo "$as_me:$LINENO: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&5
7843 echo "$as_me: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&2;}
7844 { (exit 1); exit 1; }; }
7846 cat >conftest.$ac_ext <<_ACEOF
7849 cat confdefs.h >>conftest.$ac_ext
7850 cat >>conftest.$ac_ext <<_ACEOF
7851 /* end confdefs.h. */
7861 rm -f conftest.$ac_objext conftest$ac_exeext
7862 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
7863 (eval $ac_link) 2>conftest.er1
7865 grep -v '^ *+' conftest.er1 >conftest.err
7867 cat conftest.err >&5
7868 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7869 (exit $ac_status); } &&
7870 { ac_try='test -z "$ac_c_werror_flag"
7871 || test ! -s conftest.err'
7872 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7875 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7876 (exit $ac_status); }; } &&
7877 { ac_try='test -s conftest$ac_exeext'
7878 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7881 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7882 (exit $ac_status); }; }; then
7885 echo "$as_me: failed program was:" >&5
7886 sed 's/^/| /' conftest.$ac_ext >&5
7890 rm -f conftest.err conftest.$ac_objext \
7891 conftest$ac_exeext conftest.$ac_ext
7892 if test $ac_R_space = yes; then
7893 echo "$as_me:$LINENO: result: yes" >&5
7894 echo "${ECHO_T}yes" >&6
7895 X_LIBS="$X_LIBS -R $x_libraries"
7897 echo "$as_me:$LINENO: result: neither works" >&5
7898 echo "${ECHO_T}neither works" >&6
7905 # Check for system-dependent libraries X programs must link with.
7906 # Do this before checking for the system-independent R6 libraries
7907 # (-lICE), since we may need -lsocket or whatever for X linking.
7909 if test "$ISC" = yes; then
7910 X_EXTRA_LIBS="$X_EXTRA_LIBS -lnsl_s -linet"
7912 # Martyn Johnson says this is needed for Ultrix, if the X
7913 # libraries were built with DECnet support. And Karl Berry says
7914 # the Alpha needs dnet_stub (dnet does not exist).
7915 ac_xsave_LIBS="$LIBS"; LIBS="$LIBS $X_LIBS -lX11"
7916 if test x$gcc_no_link = xyes; then
7917 { { echo "$as_me:$LINENO: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&5
7918 echo "$as_me: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&2;}
7919 { (exit 1); exit 1; }; }
7921 cat >conftest.$ac_ext <<_ACEOF
7924 cat confdefs.h >>conftest.$ac_ext
7925 cat >>conftest.$ac_ext <<_ACEOF
7926 /* end confdefs.h. */
7928 /* Override any gcc2 internal prototype to avoid an error. */
7932 /* We use char because int might match the return type of a gcc2
7933 builtin and then its argument prototype would still apply. */
7934 char XOpenDisplay ();
7943 rm -f conftest.$ac_objext conftest$ac_exeext
7944 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
7945 (eval $ac_link) 2>conftest.er1
7947 grep -v '^ *+' conftest.er1 >conftest.err
7949 cat conftest.err >&5
7950 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7951 (exit $ac_status); } &&
7952 { ac_try='test -z "$ac_c_werror_flag"
7953 || test ! -s conftest.err'
7954 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7957 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7958 (exit $ac_status); }; } &&
7959 { ac_try='test -s conftest$ac_exeext'
7960 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7963 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7964 (exit $ac_status); }; }; then
7967 echo "$as_me: failed program was:" >&5
7968 sed 's/^/| /' conftest.$ac_ext >&5
7970 echo "$as_me:$LINENO: checking for dnet_ntoa in -ldnet" >&5
7971 echo $ECHO_N "checking for dnet_ntoa in -ldnet... $ECHO_C" >&6
7972 if test "${ac_cv_lib_dnet_dnet_ntoa+set}" = set; then
7973 echo $ECHO_N "(cached) $ECHO_C" >&6
7975 ac_check_lib_save_LIBS=$LIBS
7977 if test x$gcc_no_link = xyes; then
7978 { { echo "$as_me:$LINENO: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&5
7979 echo "$as_me: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&2;}
7980 { (exit 1); exit 1; }; }
7982 cat >conftest.$ac_ext <<_ACEOF
7985 cat confdefs.h >>conftest.$ac_ext
7986 cat >>conftest.$ac_ext <<_ACEOF
7987 /* end confdefs.h. */
7989 /* Override any gcc2 internal prototype to avoid an error. */
7993 /* We use char because int might match the return type of a gcc2
7994 builtin and then its argument prototype would still apply. */
8004 rm -f conftest.$ac_objext conftest$ac_exeext
8005 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
8006 (eval $ac_link) 2>conftest.er1
8008 grep -v '^ *+' conftest.er1 >conftest.err
8010 cat conftest.err >&5
8011 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8012 (exit $ac_status); } &&
8013 { ac_try='test -z "$ac_c_werror_flag"
8014 || test ! -s conftest.err'
8015 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8018 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8019 (exit $ac_status); }; } &&
8020 { ac_try='test -s conftest$ac_exeext'
8021 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8024 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8025 (exit $ac_status); }; }; then
8026 ac_cv_lib_dnet_dnet_ntoa=yes
8028 echo "$as_me: failed program was:" >&5
8029 sed 's/^/| /' conftest.$ac_ext >&5
8031 ac_cv_lib_dnet_dnet_ntoa=no
8033 rm -f conftest.err conftest.$ac_objext \
8034 conftest$ac_exeext conftest.$ac_ext
8035 LIBS=$ac_check_lib_save_LIBS
8037 echo "$as_me:$LINENO: result: $ac_cv_lib_dnet_dnet_ntoa" >&5
8038 echo "${ECHO_T}$ac_cv_lib_dnet_dnet_ntoa" >&6
8039 if test $ac_cv_lib_dnet_dnet_ntoa = yes; then
8040 X_EXTRA_LIBS="$X_EXTRA_LIBS -ldnet"
8043 if test $ac_cv_lib_dnet_dnet_ntoa = no; then
8044 echo "$as_me:$LINENO: checking for dnet_ntoa in -ldnet_stub" >&5
8045 echo $ECHO_N "checking for dnet_ntoa in -ldnet_stub... $ECHO_C" >&6
8046 if test "${ac_cv_lib_dnet_stub_dnet_ntoa+set}" = set; then
8047 echo $ECHO_N "(cached) $ECHO_C" >&6
8049 ac_check_lib_save_LIBS=$LIBS
8050 LIBS="-ldnet_stub $LIBS"
8051 if test x$gcc_no_link = xyes; then
8052 { { echo "$as_me:$LINENO: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&5
8053 echo "$as_me: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&2;}
8054 { (exit 1); exit 1; }; }
8056 cat >conftest.$ac_ext <<_ACEOF
8059 cat confdefs.h >>conftest.$ac_ext
8060 cat >>conftest.$ac_ext <<_ACEOF
8061 /* end confdefs.h. */
8063 /* Override any gcc2 internal prototype to avoid an error. */
8067 /* We use char because int might match the return type of a gcc2
8068 builtin and then its argument prototype would still apply. */
8078 rm -f conftest.$ac_objext conftest$ac_exeext
8079 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
8080 (eval $ac_link) 2>conftest.er1
8082 grep -v '^ *+' conftest.er1 >conftest.err
8084 cat conftest.err >&5
8085 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8086 (exit $ac_status); } &&
8087 { ac_try='test -z "$ac_c_werror_flag"
8088 || test ! -s conftest.err'
8089 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8092 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8093 (exit $ac_status); }; } &&
8094 { ac_try='test -s conftest$ac_exeext'
8095 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8098 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8099 (exit $ac_status); }; }; then
8100 ac_cv_lib_dnet_stub_dnet_ntoa=yes
8102 echo "$as_me: failed program was:" >&5
8103 sed 's/^/| /' conftest.$ac_ext >&5
8105 ac_cv_lib_dnet_stub_dnet_ntoa=no
8107 rm -f conftest.err conftest.$ac_objext \
8108 conftest$ac_exeext conftest.$ac_ext
8109 LIBS=$ac_check_lib_save_LIBS
8111 echo "$as_me:$LINENO: result: $ac_cv_lib_dnet_stub_dnet_ntoa" >&5
8112 echo "${ECHO_T}$ac_cv_lib_dnet_stub_dnet_ntoa" >&6
8113 if test $ac_cv_lib_dnet_stub_dnet_ntoa = yes; then
8114 X_EXTRA_LIBS="$X_EXTRA_LIBS -ldnet_stub"
8119 rm -f conftest.err conftest.$ac_objext \
8120 conftest$ac_exeext conftest.$ac_ext
8121 LIBS="$ac_xsave_LIBS"
8123 # msh@cis.ufl.edu says -lnsl (and -lsocket) are needed for his 386/AT,
8124 # to get the SysV transport functions.
8125 # Chad R. Larson says the Pyramis MIS-ES running DC/OSx (SVR4)
8127 # The nsl library prevents programs from opening the X display
8128 # on Irix 5.2, according to T.E. Dickey.
8129 # The functions gethostbyname, getservbyname, and inet_addr are
8130 # in -lbsd on LynxOS 3.0.1/i386, according to Lars Hecking.
8131 echo "$as_me:$LINENO: checking for gethostbyname" >&5
8132 echo $ECHO_N "checking for gethostbyname... $ECHO_C" >&6
8133 if test "${ac_cv_func_gethostbyname+set}" = set; then
8134 echo $ECHO_N "(cached) $ECHO_C" >&6
8136 if test x$gcc_no_link = xyes; then
8137 { { echo "$as_me:$LINENO: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&5
8138 echo "$as_me: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&2;}
8139 { (exit 1); exit 1; }; }
8141 cat >conftest.$ac_ext <<_ACEOF
8144 cat confdefs.h >>conftest.$ac_ext
8145 cat >>conftest.$ac_ext <<_ACEOF
8146 /* end confdefs.h. */
8147 /* Define gethostbyname to an innocuous variant, in case <limits.h> declares gethostbyname.
8148 For example, HP-UX 11i <limits.h> declares gettimeofday. */
8149 #define gethostbyname innocuous_gethostbyname
8151 /* System header to define __stub macros and hopefully few prototypes,
8152 which can conflict with char gethostbyname (); below.
8153 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
8154 <limits.h> exists even on freestanding compilers. */
8157 # include <limits.h>
8159 # include <assert.h>
8162 #undef gethostbyname
8164 /* Override any gcc2 internal prototype to avoid an error. */
8169 /* We use char because int might match the return type of a gcc2
8170 builtin and then its argument prototype would still apply. */
8171 char gethostbyname ();
8172 /* The GNU C library defines this for functions which it implements
8173 to always fail with ENOSYS. Some functions are actually named
8174 something starting with __ and the normal name is an alias. */
8175 #if defined (__stub_gethostbyname) || defined (__stub___gethostbyname)
8178 char (*f) () = gethostbyname;
8187 return f != gethostbyname;
8192 rm -f conftest.$ac_objext conftest$ac_exeext
8193 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
8194 (eval $ac_link) 2>conftest.er1
8196 grep -v '^ *+' conftest.er1 >conftest.err
8198 cat conftest.err >&5
8199 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8200 (exit $ac_status); } &&
8201 { ac_try='test -z "$ac_c_werror_flag"
8202 || test ! -s conftest.err'
8203 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8206 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8207 (exit $ac_status); }; } &&
8208 { ac_try='test -s conftest$ac_exeext'
8209 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8212 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8213 (exit $ac_status); }; }; then
8214 ac_cv_func_gethostbyname=yes
8216 echo "$as_me: failed program was:" >&5
8217 sed 's/^/| /' conftest.$ac_ext >&5
8219 ac_cv_func_gethostbyname=no
8221 rm -f conftest.err conftest.$ac_objext \
8222 conftest$ac_exeext conftest.$ac_ext
8224 echo "$as_me:$LINENO: result: $ac_cv_func_gethostbyname" >&5
8225 echo "${ECHO_T}$ac_cv_func_gethostbyname" >&6
8227 if test $ac_cv_func_gethostbyname = no; then
8228 echo "$as_me:$LINENO: checking for gethostbyname in -lnsl" >&5
8229 echo $ECHO_N "checking for gethostbyname in -lnsl... $ECHO_C" >&6
8230 if test "${ac_cv_lib_nsl_gethostbyname+set}" = set; then
8231 echo $ECHO_N "(cached) $ECHO_C" >&6
8233 ac_check_lib_save_LIBS=$LIBS
8235 if test x$gcc_no_link = xyes; then
8236 { { echo "$as_me:$LINENO: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&5
8237 echo "$as_me: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&2;}
8238 { (exit 1); exit 1; }; }
8240 cat >conftest.$ac_ext <<_ACEOF
8243 cat confdefs.h >>conftest.$ac_ext
8244 cat >>conftest.$ac_ext <<_ACEOF
8245 /* end confdefs.h. */
8247 /* Override any gcc2 internal prototype to avoid an error. */
8251 /* We use char because int might match the return type of a gcc2
8252 builtin and then its argument prototype would still apply. */
8253 char gethostbyname ();
8262 rm -f conftest.$ac_objext conftest$ac_exeext
8263 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
8264 (eval $ac_link) 2>conftest.er1
8266 grep -v '^ *+' conftest.er1 >conftest.err
8268 cat conftest.err >&5
8269 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8270 (exit $ac_status); } &&
8271 { ac_try='test -z "$ac_c_werror_flag"
8272 || test ! -s conftest.err'
8273 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8276 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8277 (exit $ac_status); }; } &&
8278 { ac_try='test -s conftest$ac_exeext'
8279 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8282 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8283 (exit $ac_status); }; }; then
8284 ac_cv_lib_nsl_gethostbyname=yes
8286 echo "$as_me: failed program was:" >&5
8287 sed 's/^/| /' conftest.$ac_ext >&5
8289 ac_cv_lib_nsl_gethostbyname=no
8291 rm -f conftest.err conftest.$ac_objext \
8292 conftest$ac_exeext conftest.$ac_ext
8293 LIBS=$ac_check_lib_save_LIBS
8295 echo "$as_me:$LINENO: result: $ac_cv_lib_nsl_gethostbyname" >&5
8296 echo "${ECHO_T}$ac_cv_lib_nsl_gethostbyname" >&6
8297 if test $ac_cv_lib_nsl_gethostbyname = yes; then
8298 X_EXTRA_LIBS="$X_EXTRA_LIBS -lnsl"
8301 if test $ac_cv_lib_nsl_gethostbyname = no; then
8302 echo "$as_me:$LINENO: checking for gethostbyname in -lbsd" >&5
8303 echo $ECHO_N "checking for gethostbyname in -lbsd... $ECHO_C" >&6
8304 if test "${ac_cv_lib_bsd_gethostbyname+set}" = set; then
8305 echo $ECHO_N "(cached) $ECHO_C" >&6
8307 ac_check_lib_save_LIBS=$LIBS
8309 if test x$gcc_no_link = xyes; then
8310 { { echo "$as_me:$LINENO: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&5
8311 echo "$as_me: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&2;}
8312 { (exit 1); exit 1; }; }
8314 cat >conftest.$ac_ext <<_ACEOF
8317 cat confdefs.h >>conftest.$ac_ext
8318 cat >>conftest.$ac_ext <<_ACEOF
8319 /* end confdefs.h. */
8321 /* Override any gcc2 internal prototype to avoid an error. */
8325 /* We use char because int might match the return type of a gcc2
8326 builtin and then its argument prototype would still apply. */
8327 char gethostbyname ();
8336 rm -f conftest.$ac_objext conftest$ac_exeext
8337 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
8338 (eval $ac_link) 2>conftest.er1
8340 grep -v '^ *+' conftest.er1 >conftest.err
8342 cat conftest.err >&5
8343 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8344 (exit $ac_status); } &&
8345 { ac_try='test -z "$ac_c_werror_flag"
8346 || test ! -s conftest.err'
8347 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8350 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8351 (exit $ac_status); }; } &&
8352 { ac_try='test -s conftest$ac_exeext'
8353 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8356 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8357 (exit $ac_status); }; }; then
8358 ac_cv_lib_bsd_gethostbyname=yes
8360 echo "$as_me: failed program was:" >&5
8361 sed 's/^/| /' conftest.$ac_ext >&5
8363 ac_cv_lib_bsd_gethostbyname=no
8365 rm -f conftest.err conftest.$ac_objext \
8366 conftest$ac_exeext conftest.$ac_ext
8367 LIBS=$ac_check_lib_save_LIBS
8369 echo "$as_me:$LINENO: result: $ac_cv_lib_bsd_gethostbyname" >&5
8370 echo "${ECHO_T}$ac_cv_lib_bsd_gethostbyname" >&6
8371 if test $ac_cv_lib_bsd_gethostbyname = yes; then
8372 X_EXTRA_LIBS="$X_EXTRA_LIBS -lbsd"
8378 # lieder@skyler.mavd.honeywell.com says without -lsocket,
8379 # socket/setsockopt and other routines are undefined under SCO ODT
8380 # 2.0. But -lsocket is broken on IRIX 5.2 (and is not necessary
8381 # on later versions), says Simon Leinen: it contains gethostby*
8382 # variants that don't use the name server (or something). -lsocket
8383 # must be given before -lnsl if both are needed. We assume that
8384 # if connect needs -lnsl, so does gethostbyname.
8385 echo "$as_me:$LINENO: checking for connect" >&5
8386 echo $ECHO_N "checking for connect... $ECHO_C" >&6
8387 if test "${ac_cv_func_connect+set}" = set; then
8388 echo $ECHO_N "(cached) $ECHO_C" >&6
8390 if test x$gcc_no_link = xyes; then
8391 { { echo "$as_me:$LINENO: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&5
8392 echo "$as_me: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&2;}
8393 { (exit 1); exit 1; }; }
8395 cat >conftest.$ac_ext <<_ACEOF
8398 cat confdefs.h >>conftest.$ac_ext
8399 cat >>conftest.$ac_ext <<_ACEOF
8400 /* end confdefs.h. */
8401 /* Define connect to an innocuous variant, in case <limits.h> declares connect.
8402 For example, HP-UX 11i <limits.h> declares gettimeofday. */
8403 #define connect innocuous_connect
8405 /* System header to define __stub macros and hopefully few prototypes,
8406 which can conflict with char connect (); below.
8407 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
8408 <limits.h> exists even on freestanding compilers. */
8411 # include <limits.h>
8413 # include <assert.h>
8418 /* Override any gcc2 internal prototype to avoid an error. */
8423 /* We use char because int might match the return type of a gcc2
8424 builtin and then its argument prototype would still apply. */
8426 /* The GNU C library defines this for functions which it implements
8427 to always fail with ENOSYS. Some functions are actually named
8428 something starting with __ and the normal name is an alias. */
8429 #if defined (__stub_connect) || defined (__stub___connect)
8432 char (*f) () = connect;
8441 return f != connect;
8446 rm -f conftest.$ac_objext conftest$ac_exeext
8447 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
8448 (eval $ac_link) 2>conftest.er1
8450 grep -v '^ *+' conftest.er1 >conftest.err
8452 cat conftest.err >&5
8453 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8454 (exit $ac_status); } &&
8455 { ac_try='test -z "$ac_c_werror_flag"
8456 || test ! -s conftest.err'
8457 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8460 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8461 (exit $ac_status); }; } &&
8462 { ac_try='test -s conftest$ac_exeext'
8463 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8466 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8467 (exit $ac_status); }; }; then
8468 ac_cv_func_connect=yes
8470 echo "$as_me: failed program was:" >&5
8471 sed 's/^/| /' conftest.$ac_ext >&5
8473 ac_cv_func_connect=no
8475 rm -f conftest.err conftest.$ac_objext \
8476 conftest$ac_exeext conftest.$ac_ext
8478 echo "$as_me:$LINENO: result: $ac_cv_func_connect" >&5
8479 echo "${ECHO_T}$ac_cv_func_connect" >&6
8481 if test $ac_cv_func_connect = no; then
8482 echo "$as_me:$LINENO: checking for connect in -lsocket" >&5
8483 echo $ECHO_N "checking for connect in -lsocket... $ECHO_C" >&6
8484 if test "${ac_cv_lib_socket_connect+set}" = set; then
8485 echo $ECHO_N "(cached) $ECHO_C" >&6
8487 ac_check_lib_save_LIBS=$LIBS
8488 LIBS="-lsocket $X_EXTRA_LIBS $LIBS"
8489 if test x$gcc_no_link = xyes; then
8490 { { echo "$as_me:$LINENO: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&5
8491 echo "$as_me: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&2;}
8492 { (exit 1); exit 1; }; }
8494 cat >conftest.$ac_ext <<_ACEOF
8497 cat confdefs.h >>conftest.$ac_ext
8498 cat >>conftest.$ac_ext <<_ACEOF
8499 /* end confdefs.h. */
8501 /* Override any gcc2 internal prototype to avoid an error. */
8505 /* We use char because int might match the return type of a gcc2
8506 builtin and then its argument prototype would still apply. */
8516 rm -f conftest.$ac_objext conftest$ac_exeext
8517 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
8518 (eval $ac_link) 2>conftest.er1
8520 grep -v '^ *+' conftest.er1 >conftest.err
8522 cat conftest.err >&5
8523 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8524 (exit $ac_status); } &&
8525 { ac_try='test -z "$ac_c_werror_flag"
8526 || test ! -s conftest.err'
8527 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8530 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8531 (exit $ac_status); }; } &&
8532 { ac_try='test -s conftest$ac_exeext'
8533 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8536 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8537 (exit $ac_status); }; }; then
8538 ac_cv_lib_socket_connect=yes
8540 echo "$as_me: failed program was:" >&5
8541 sed 's/^/| /' conftest.$ac_ext >&5
8543 ac_cv_lib_socket_connect=no
8545 rm -f conftest.err conftest.$ac_objext \
8546 conftest$ac_exeext conftest.$ac_ext
8547 LIBS=$ac_check_lib_save_LIBS
8549 echo "$as_me:$LINENO: result: $ac_cv_lib_socket_connect" >&5
8550 echo "${ECHO_T}$ac_cv_lib_socket_connect" >&6
8551 if test $ac_cv_lib_socket_connect = yes; then
8552 X_EXTRA_LIBS="-lsocket $X_EXTRA_LIBS"
8557 # Guillermo Gomez says -lposix is necessary on A/UX.
8558 echo "$as_me:$LINENO: checking for remove" >&5
8559 echo $ECHO_N "checking for remove... $ECHO_C" >&6
8560 if test "${ac_cv_func_remove+set}" = set; then
8561 echo $ECHO_N "(cached) $ECHO_C" >&6
8563 if test x$gcc_no_link = xyes; then
8564 { { echo "$as_me:$LINENO: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&5
8565 echo "$as_me: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&2;}
8566 { (exit 1); exit 1; }; }
8568 cat >conftest.$ac_ext <<_ACEOF
8571 cat confdefs.h >>conftest.$ac_ext
8572 cat >>conftest.$ac_ext <<_ACEOF
8573 /* end confdefs.h. */
8574 /* Define remove to an innocuous variant, in case <limits.h> declares remove.
8575 For example, HP-UX 11i <limits.h> declares gettimeofday. */
8576 #define remove innocuous_remove
8578 /* System header to define __stub macros and hopefully few prototypes,
8579 which can conflict with char remove (); below.
8580 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
8581 <limits.h> exists even on freestanding compilers. */
8584 # include <limits.h>
8586 # include <assert.h>
8591 /* Override any gcc2 internal prototype to avoid an error. */
8596 /* We use char because int might match the return type of a gcc2
8597 builtin and then its argument prototype would still apply. */
8599 /* The GNU C library defines this for functions which it implements
8600 to always fail with ENOSYS. Some functions are actually named
8601 something starting with __ and the normal name is an alias. */
8602 #if defined (__stub_remove) || defined (__stub___remove)
8605 char (*f) () = remove;
8619 rm -f conftest.$ac_objext conftest$ac_exeext
8620 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
8621 (eval $ac_link) 2>conftest.er1
8623 grep -v '^ *+' conftest.er1 >conftest.err
8625 cat conftest.err >&5
8626 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8627 (exit $ac_status); } &&
8628 { ac_try='test -z "$ac_c_werror_flag"
8629 || test ! -s conftest.err'
8630 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8633 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8634 (exit $ac_status); }; } &&
8635 { ac_try='test -s conftest$ac_exeext'
8636 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8639 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8640 (exit $ac_status); }; }; then
8641 ac_cv_func_remove=yes
8643 echo "$as_me: failed program was:" >&5
8644 sed 's/^/| /' conftest.$ac_ext >&5
8646 ac_cv_func_remove=no
8648 rm -f conftest.err conftest.$ac_objext \
8649 conftest$ac_exeext conftest.$ac_ext
8651 echo "$as_me:$LINENO: result: $ac_cv_func_remove" >&5
8652 echo "${ECHO_T}$ac_cv_func_remove" >&6
8654 if test $ac_cv_func_remove = no; then
8655 echo "$as_me:$LINENO: checking for remove in -lposix" >&5
8656 echo $ECHO_N "checking for remove in -lposix... $ECHO_C" >&6
8657 if test "${ac_cv_lib_posix_remove+set}" = set; then
8658 echo $ECHO_N "(cached) $ECHO_C" >&6
8660 ac_check_lib_save_LIBS=$LIBS
8661 LIBS="-lposix $LIBS"
8662 if test x$gcc_no_link = xyes; then
8663 { { echo "$as_me:$LINENO: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&5
8664 echo "$as_me: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&2;}
8665 { (exit 1); exit 1; }; }
8667 cat >conftest.$ac_ext <<_ACEOF
8670 cat confdefs.h >>conftest.$ac_ext
8671 cat >>conftest.$ac_ext <<_ACEOF
8672 /* end confdefs.h. */
8674 /* Override any gcc2 internal prototype to avoid an error. */
8678 /* We use char because int might match the return type of a gcc2
8679 builtin and then its argument prototype would still apply. */
8689 rm -f conftest.$ac_objext conftest$ac_exeext
8690 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
8691 (eval $ac_link) 2>conftest.er1
8693 grep -v '^ *+' conftest.er1 >conftest.err
8695 cat conftest.err >&5
8696 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8697 (exit $ac_status); } &&
8698 { ac_try='test -z "$ac_c_werror_flag"
8699 || test ! -s conftest.err'
8700 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8703 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8704 (exit $ac_status); }; } &&
8705 { ac_try='test -s conftest$ac_exeext'
8706 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8709 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8710 (exit $ac_status); }; }; then
8711 ac_cv_lib_posix_remove=yes
8713 echo "$as_me: failed program was:" >&5
8714 sed 's/^/| /' conftest.$ac_ext >&5
8716 ac_cv_lib_posix_remove=no
8718 rm -f conftest.err conftest.$ac_objext \
8719 conftest$ac_exeext conftest.$ac_ext
8720 LIBS=$ac_check_lib_save_LIBS
8722 echo "$as_me:$LINENO: result: $ac_cv_lib_posix_remove" >&5
8723 echo "${ECHO_T}$ac_cv_lib_posix_remove" >&6
8724 if test $ac_cv_lib_posix_remove = yes; then
8725 X_EXTRA_LIBS="$X_EXTRA_LIBS -lposix"
8730 # BSDI BSD/OS 2.1 needs -lipc for XOpenDisplay.
8731 echo "$as_me:$LINENO: checking for shmat" >&5
8732 echo $ECHO_N "checking for shmat... $ECHO_C" >&6
8733 if test "${ac_cv_func_shmat+set}" = set; then
8734 echo $ECHO_N "(cached) $ECHO_C" >&6
8736 if test x$gcc_no_link = xyes; then
8737 { { echo "$as_me:$LINENO: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&5
8738 echo "$as_me: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&2;}
8739 { (exit 1); exit 1; }; }
8741 cat >conftest.$ac_ext <<_ACEOF
8744 cat confdefs.h >>conftest.$ac_ext
8745 cat >>conftest.$ac_ext <<_ACEOF
8746 /* end confdefs.h. */
8747 /* Define shmat to an innocuous variant, in case <limits.h> declares shmat.
8748 For example, HP-UX 11i <limits.h> declares gettimeofday. */
8749 #define shmat innocuous_shmat
8751 /* System header to define __stub macros and hopefully few prototypes,
8752 which can conflict with char shmat (); below.
8753 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
8754 <limits.h> exists even on freestanding compilers. */
8757 # include <limits.h>
8759 # include <assert.h>
8764 /* Override any gcc2 internal prototype to avoid an error. */
8769 /* We use char because int might match the return type of a gcc2
8770 builtin and then its argument prototype would still apply. */
8772 /* The GNU C library defines this for functions which it implements
8773 to always fail with ENOSYS. Some functions are actually named
8774 something starting with __ and the normal name is an alias. */
8775 #if defined (__stub_shmat) || defined (__stub___shmat)
8778 char (*f) () = shmat;
8792 rm -f conftest.$ac_objext conftest$ac_exeext
8793 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
8794 (eval $ac_link) 2>conftest.er1
8796 grep -v '^ *+' conftest.er1 >conftest.err
8798 cat conftest.err >&5
8799 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8800 (exit $ac_status); } &&
8801 { ac_try='test -z "$ac_c_werror_flag"
8802 || test ! -s conftest.err'
8803 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8806 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8807 (exit $ac_status); }; } &&
8808 { ac_try='test -s conftest$ac_exeext'
8809 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8812 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8813 (exit $ac_status); }; }; then
8814 ac_cv_func_shmat=yes
8816 echo "$as_me: failed program was:" >&5
8817 sed 's/^/| /' conftest.$ac_ext >&5
8821 rm -f conftest.err conftest.$ac_objext \
8822 conftest$ac_exeext conftest.$ac_ext
8824 echo "$as_me:$LINENO: result: $ac_cv_func_shmat" >&5
8825 echo "${ECHO_T}$ac_cv_func_shmat" >&6
8827 if test $ac_cv_func_shmat = no; then
8828 echo "$as_me:$LINENO: checking for shmat in -lipc" >&5
8829 echo $ECHO_N "checking for shmat in -lipc... $ECHO_C" >&6
8830 if test "${ac_cv_lib_ipc_shmat+set}" = set; then
8831 echo $ECHO_N "(cached) $ECHO_C" >&6
8833 ac_check_lib_save_LIBS=$LIBS
8835 if test x$gcc_no_link = xyes; then
8836 { { echo "$as_me:$LINENO: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&5
8837 echo "$as_me: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&2;}
8838 { (exit 1); exit 1; }; }
8840 cat >conftest.$ac_ext <<_ACEOF
8843 cat confdefs.h >>conftest.$ac_ext
8844 cat >>conftest.$ac_ext <<_ACEOF
8845 /* end confdefs.h. */
8847 /* Override any gcc2 internal prototype to avoid an error. */
8851 /* We use char because int might match the return type of a gcc2
8852 builtin and then its argument prototype would still apply. */
8862 rm -f conftest.$ac_objext conftest$ac_exeext
8863 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
8864 (eval $ac_link) 2>conftest.er1
8866 grep -v '^ *+' conftest.er1 >conftest.err
8868 cat conftest.err >&5
8869 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8870 (exit $ac_status); } &&
8871 { ac_try='test -z "$ac_c_werror_flag"
8872 || test ! -s conftest.err'
8873 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8876 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8877 (exit $ac_status); }; } &&
8878 { ac_try='test -s conftest$ac_exeext'
8879 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8882 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8883 (exit $ac_status); }; }; then
8884 ac_cv_lib_ipc_shmat=yes
8886 echo "$as_me: failed program was:" >&5
8887 sed 's/^/| /' conftest.$ac_ext >&5
8889 ac_cv_lib_ipc_shmat=no
8891 rm -f conftest.err conftest.$ac_objext \
8892 conftest$ac_exeext conftest.$ac_ext
8893 LIBS=$ac_check_lib_save_LIBS
8895 echo "$as_me:$LINENO: result: $ac_cv_lib_ipc_shmat" >&5
8896 echo "${ECHO_T}$ac_cv_lib_ipc_shmat" >&6
8897 if test $ac_cv_lib_ipc_shmat = yes; then
8898 X_EXTRA_LIBS="$X_EXTRA_LIBS -lipc"
8904 # Check for libraries that X11R6 Xt/Xaw programs need.
8905 ac_save_LDFLAGS=$LDFLAGS
8906 test -n "$x_libraries" && LDFLAGS="$LDFLAGS -L$x_libraries"
8907 # SM needs ICE to (dynamically) link under SunOS 4.x (so we have to
8908 # check for ICE first), but we must link in the order -lSM -lICE or
8909 # we get undefined symbols. So assume we have SM if we have ICE.
8910 # These have to be linked with before -lX11, unlike the other
8911 # libraries we check for below, so use a different variable.
8912 # John Interrante, Karl Berry
8913 echo "$as_me:$LINENO: checking for IceConnectionNumber in -lICE" >&5
8914 echo $ECHO_N "checking for IceConnectionNumber in -lICE... $ECHO_C" >&6
8915 if test "${ac_cv_lib_ICE_IceConnectionNumber+set}" = set; then
8916 echo $ECHO_N "(cached) $ECHO_C" >&6
8918 ac_check_lib_save_LIBS=$LIBS
8919 LIBS="-lICE $X_EXTRA_LIBS $LIBS"
8920 if test x$gcc_no_link = xyes; then
8921 { { echo "$as_me:$LINENO: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&5
8922 echo "$as_me: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&2;}
8923 { (exit 1); exit 1; }; }
8925 cat >conftest.$ac_ext <<_ACEOF
8928 cat confdefs.h >>conftest.$ac_ext
8929 cat >>conftest.$ac_ext <<_ACEOF
8930 /* end confdefs.h. */
8932 /* Override any gcc2 internal prototype to avoid an error. */
8936 /* We use char because int might match the return type of a gcc2
8937 builtin and then its argument prototype would still apply. */
8938 char IceConnectionNumber ();
8942 IceConnectionNumber ();
8947 rm -f conftest.$ac_objext conftest$ac_exeext
8948 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
8949 (eval $ac_link) 2>conftest.er1
8951 grep -v '^ *+' conftest.er1 >conftest.err
8953 cat conftest.err >&5
8954 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8955 (exit $ac_status); } &&
8956 { ac_try='test -z "$ac_c_werror_flag"
8957 || test ! -s conftest.err'
8958 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8961 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8962 (exit $ac_status); }; } &&
8963 { ac_try='test -s conftest$ac_exeext'
8964 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8967 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8968 (exit $ac_status); }; }; then
8969 ac_cv_lib_ICE_IceConnectionNumber=yes
8971 echo "$as_me: failed program was:" >&5
8972 sed 's/^/| /' conftest.$ac_ext >&5
8974 ac_cv_lib_ICE_IceConnectionNumber=no
8976 rm -f conftest.err conftest.$ac_objext \
8977 conftest$ac_exeext conftest.$ac_ext
8978 LIBS=$ac_check_lib_save_LIBS
8980 echo "$as_me:$LINENO: result: $ac_cv_lib_ICE_IceConnectionNumber" >&5
8981 echo "${ECHO_T}$ac_cv_lib_ICE_IceConnectionNumber" >&6
8982 if test $ac_cv_lib_ICE_IceConnectionNumber = yes; then
8983 X_PRE_LIBS="$X_PRE_LIBS -lSM -lICE"
8986 LDFLAGS=$ac_save_LDFLAGS
8991 # FIXME: this should be _libs on some hosts.
8994 # extra LD Flags which are required for targets
8997 # For now we have to disable it on darwin[8-9] because it slows down
8998 # the linking phase. A possible bug in ld?
8999 # on Darwin -single_module speeds up loading of the dynamic libraries.
9000 extra_ldflags_libjava=-Wl,-single_module
9005 # Allow the GC to be disabled. Can be useful when debugging.
9006 echo "$as_me:$LINENO: checking for garbage collector to use" >&5
9007 echo $ECHO_N "checking for garbage collector to use... $ECHO_C" >&6
9008 # Check whether --enable-java-gc or --disable-java-gc was given.
9009 if test "${enable_java_gc+set}" = set; then
9010 enableval="$enable_java_gc"
9023 echo "$as_me:$LINENO: result: boehm" >&5
9024 echo "${ECHO_T}boehm" >&6
9025 GCLIBS=../boehm-gc/libgcjgc_convenience.la
9026 JC1GCSPEC='-fuse-boehm-gc'
9027 GCTESTSPEC="-L`${PWDCMD-pwd}`/../boehm-gc/.libs -rpath `${PWDCMD-pwd}`/../boehm-gc/.libs"
9028 GCINCS='-I$(top_srcdir)/../boehm-gc/include -I../boehm-gc/include'
9031 # The POSIX thread support needs to know this.
9033 cat >>confdefs.h <<\_ACEOF
9034 #define HAVE_BOEHM_GC 1
9039 echo "$as_me:$LINENO: result: none" >&5
9040 echo "${ECHO_T}none" >&6
9044 { { echo "$as_me:$LINENO: error: unrecognized collector \"$GC\"" >&5
9045 echo "$as_me: error: unrecognized collector \"$GC\"" >&2;}
9046 { (exit 1); exit 1; }; }
9055 ac_config_links="$ac_config_links include/java-gc.h:include/$GCHDR"
9059 if test "$GC" = boehm; then
9061 USING_BOEHMGC_FALSE='#'
9063 USING_BOEHMGC_TRUE='#'
9064 USING_BOEHMGC_FALSE=
9069 if test "$GC" = no; then
9071 USING_NOGC_FALSE='#'
9079 echo "$as_me:$LINENO: checking for thread model used by GCC" >&5
9080 echo $ECHO_N "checking for thread model used by GCC... $ECHO_C" >&6
9081 THREADS=`$CC -v 2>&1 | sed -n 's/^Thread model: //p'`
9082 echo "$as_me:$LINENO: result: $THREADS" >&5
9083 echo "${ECHO_T}$THREADS" >&6
9089 posix | posix95 | pthreads)
9094 cat >>confdefs.h <<\_ACEOF
9095 #define LINUX_THREADS 1
9103 decosf1 | irix | mach | os2 | solaris | dce | vxworks)
9104 { { echo "$as_me:$LINENO: error: thread package $THREADS not yet supported" >&5
9105 echo "$as_me: error: thread package $THREADS not yet supported" >&2;}
9106 { (exit 1); exit 1; }; }
9109 { { echo "$as_me:$LINENO: error: $THREADS is an unknown thread package" >&5
9110 echo "$as_me: error: $THREADS is an unknown thread package" >&2;}
9111 { (exit 1); exit 1; }; }
9122 THREADSTARTFILESPEC=
9127 # Don't set THREADLIBS here. Cygwin doesn't have -lpthread.
9130 # Before FreeBSD 5, it didn't have -lpthread (or any library which
9131 # merely adds pthread_* functions) but it does have a -pthread switch
9132 # which is required at link-time to select -lc_r *instead* of -lc.
9133 THREADLDFLAGS=-pthread
9134 # Don't set THREADSPEC here as might be expected since -pthread is
9135 # not processed when found within a spec file, it must come from
9136 # the command line. For now, the user must provide the -pthread
9137 # switch to link code compiled with gcj. In future, consider adding
9138 # support for weak references to pthread_* functions ala gthr.h API.
9139 THREADSPEC='%{!pthread: %{!shared: %eUnder this configuration, the user must provide -pthread when linking.}}'
9142 # FreeBSD >=5.3 implements a model much closer to other modern UNIX
9143 # systems which support threads and -lpthread.
9144 THREADLDFLAGS=-pthread
9145 THREADSPEC=-lpthread
9147 alpha*-dec-osf* | hppa*-hp-hpux*)
9148 THREADCXXFLAGS=-pthread
9149 # boehm-gc needs some functions from librt, so link that too.
9150 THREADLIBS='-lpthread -lrt'
9151 THREADSPEC='-lpthread -lrt'
9154 THREADLIBS=-lpthread
9155 THREADSPEC=-lpthread
9158 THREADH=posix-threads.h
9159 # MIT pthreads doesn't seem to have the mutexattr functions.
9160 # But for now we don't check for it. We just assume you aren't
9161 # using MIT pthreads.
9163 cat >>confdefs.h <<\_ACEOF
9164 #define HAVE_PTHREAD_MUTEXATTR_INIT 1
9168 # If we're using the Boehm GC, then we happen to know that it
9169 # defines _REENTRANT, so we don't bother. Eww.
9170 if test "$GC" != boehm; then
9172 cat >>confdefs.h <<\_ACEOF
9173 #define _REENTRANT 1
9178 cat >>confdefs.h <<\_ACEOF
9179 #define _POSIX_PTHREAD_SEMANTICS 1
9185 THREADH=win32-threads.h
9186 THREADCXXFLAGS=-mthreads
9187 # We need thread-safe exception handling so _CRT_MT should be set to 1.
9188 # But we do not want the executables created to be dependent on
9189 # mingwm10.dll which provides a __mingwthr_key_dtor() that cleans up
9190 # exception handling contexts. The following kludge achieves this effect
9191 # and causes a dummy __mingwthr_key_dtor() to be linked in from
9192 # libmingw32.a. This causes a memory leak of about 24 bytes per thread.
9193 # A workaround is to explicitly use -mthreads while linking Java programs.
9194 # See PR libgcj/28263.
9196 # FIXME: In Java we are able to detect thread death at the end of
9197 # Thread.run() so we should be able to clean up the exception handling
9198 # contexts ourselves.
9199 THREADSTARTFILESPEC='crtmt%O%s'
9203 THREADH=no-threads.h
9206 ac_config_links="$ac_config_links include/java-threads.h:include/$THREADH"
9217 if test "$THREADS" = posix; then
9218 USING_POSIX_THREADS_TRUE=
9219 USING_POSIX_THREADS_FALSE='#'
9221 USING_POSIX_THREADS_TRUE='#'
9222 USING_POSIX_THREADS_FALSE=
9227 if test "$THREADS" = win32; then
9228 USING_WIN32_THREADS_TRUE=
9229 USING_WIN32_THREADS_FALSE='#'
9231 USING_WIN32_THREADS_TRUE='#'
9232 USING_WIN32_THREADS_FALSE=
9237 if test "$THREADS" = none; then
9238 USING_NO_THREADS_TRUE=
9239 USING_NO_THREADS_FALSE='#'
9241 USING_NO_THREADS_TRUE='#'
9242 USING_NO_THREADS_FALSE=
9246 if test -d sysdep; then true; else mkdir sysdep; fi
9247 ac_config_links="$ac_config_links sysdep/locks.h:sysdep/$sysdeps_dir/locks.h"
9249 ac_config_links="$ac_config_links sysdep/backtrace.h:$fallback_backtrace_h"
9251 ac_config_links="$ac_config_links sysdep/descriptor.h:$descriptor_h"
9255 # Hash synchronization is only useful with posix threads right now.
9256 if test "$enable_hash_synchronization" = yes && test "$THREADS" != "none"; then
9257 HASH_SYNC_SPEC=-fhash-synchronization
9259 cat >>confdefs.h <<\_ACEOF
9260 #define JV_HASH_SYNCHRONIZATION 1
9268 if test "$GCC" = yes; then
9277 # We're in the tree with gcc, and need to include some of its headers.
9278 GCC_UNWIND_INCLUDE='-I$(libgcj_basedir)/../gcc'
9280 if test "x${with_newlib}" = "xyes"; then
9281 # We are being configured with a cross compiler. AC_REPLACE_FUNCS
9282 # may not work correctly, because the compiler may not be able to
9285 # We assume newlib. This lets us hard-code the functions we know
9288 cat >>confdefs.h <<\_ACEOF
9289 #define HAVE_MEMMOVE 1
9293 cat >>confdefs.h <<\_ACEOF
9294 #define HAVE_MEMCPY 1
9298 cat >>confdefs.h <<\_ACEOF
9299 #define HAVE_STRERROR 1
9303 cat >>confdefs.h <<\_ACEOF
9308 cat >>confdefs.h <<\_ACEOF
9309 #define HAVE_GMTIME_R 1
9313 cat >>confdefs.h <<\_ACEOF
9314 #define HAVE_LOCALTIME_R 1
9318 cat >>confdefs.h <<\_ACEOF
9319 #define HAVE_USLEEP_DECL 1
9322 # This is only for POSIX threads.
9324 cat >>confdefs.h <<\_ACEOF
9325 #define HAVE_PTHREAD_MUTEXATTR_INIT 1
9328 # We also assume we are using gcc, which provides alloca.
9329 cat >>confdefs.h <<\_ACEOF
9330 #define HAVE_ALLOCA 1
9334 # Assume we do not have getuid and friends.
9336 cat >>confdefs.h <<\_ACEOF
9377 for ac_func in strerror ioctl select fstat open fsync sleep opendir \
9378 gmtime_r localtime_r readdir_r getpwuid_r getcwd \
9379 access stat lstat mkdir rename rmdir unlink utime chmod readlink \
9380 nl_langinfo setlocale \
9381 inet_pton uname inet_ntoa \
9382 fork execvp pipe sigaction ftruncate mmap \
9385 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
9386 echo "$as_me:$LINENO: checking for $ac_func" >&5
9387 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
9388 if eval "test \"\${$as_ac_var+set}\" = set"; then
9389 echo $ECHO_N "(cached) $ECHO_C" >&6
9391 if test x$gcc_no_link = xyes; then
9392 { { echo "$as_me:$LINENO: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&5
9393 echo "$as_me: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&2;}
9394 { (exit 1); exit 1; }; }
9396 cat >conftest.$ac_ext <<_ACEOF
9399 cat confdefs.h >>conftest.$ac_ext
9400 cat >>conftest.$ac_ext <<_ACEOF
9401 /* end confdefs.h. */
9402 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
9403 For example, HP-UX 11i <limits.h> declares gettimeofday. */
9404 #define $ac_func innocuous_$ac_func
9406 /* System header to define __stub macros and hopefully few prototypes,
9407 which can conflict with char $ac_func (); below.
9408 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
9409 <limits.h> exists even on freestanding compilers. */
9412 # include <limits.h>
9414 # include <assert.h>
9419 /* Override any gcc2 internal prototype to avoid an error. */
9424 /* We use char because int might match the return type of a gcc2
9425 builtin and then its argument prototype would still apply. */
9427 /* The GNU C library defines this for functions which it implements
9428 to always fail with ENOSYS. Some functions are actually named
9429 something starting with __ and the normal name is an alias. */
9430 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
9433 char (*f) () = $ac_func;
9442 return f != $ac_func;
9447 rm -f conftest.$ac_objext conftest$ac_exeext
9448 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
9449 (eval $ac_link) 2>conftest.er1
9451 grep -v '^ *+' conftest.er1 >conftest.err
9453 cat conftest.err >&5
9454 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9455 (exit $ac_status); } &&
9456 { ac_try='test -z "$ac_c_werror_flag"
9457 || test ! -s conftest.err'
9458 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9461 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9462 (exit $ac_status); }; } &&
9463 { ac_try='test -s conftest$ac_exeext'
9464 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9467 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9468 (exit $ac_status); }; }; then
9469 eval "$as_ac_var=yes"
9471 echo "$as_me: failed program was:" >&5
9472 sed 's/^/| /' conftest.$ac_ext >&5
9474 eval "$as_ac_var=no"
9476 rm -f conftest.err conftest.$ac_objext \
9477 conftest$ac_exeext conftest.$ac_ext
9479 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
9480 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
9481 if test `eval echo '${'$as_ac_var'}'` = yes; then
9482 cat >>confdefs.h <<_ACEOF
9483 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
9491 for ac_func in inet_aton inet_addr
9493 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
9494 echo "$as_me:$LINENO: checking for $ac_func" >&5
9495 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
9496 if eval "test \"\${$as_ac_var+set}\" = set"; then
9497 echo $ECHO_N "(cached) $ECHO_C" >&6
9499 if test x$gcc_no_link = xyes; then
9500 { { echo "$as_me:$LINENO: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&5
9501 echo "$as_me: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&2;}
9502 { (exit 1); exit 1; }; }
9504 cat >conftest.$ac_ext <<_ACEOF
9507 cat confdefs.h >>conftest.$ac_ext
9508 cat >>conftest.$ac_ext <<_ACEOF
9509 /* end confdefs.h. */
9510 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
9511 For example, HP-UX 11i <limits.h> declares gettimeofday. */
9512 #define $ac_func innocuous_$ac_func
9514 /* System header to define __stub macros and hopefully few prototypes,
9515 which can conflict with char $ac_func (); below.
9516 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
9517 <limits.h> exists even on freestanding compilers. */
9520 # include <limits.h>
9522 # include <assert.h>
9527 /* Override any gcc2 internal prototype to avoid an error. */
9532 /* We use char because int might match the return type of a gcc2
9533 builtin and then its argument prototype would still apply. */
9535 /* The GNU C library defines this for functions which it implements
9536 to always fail with ENOSYS. Some functions are actually named
9537 something starting with __ and the normal name is an alias. */
9538 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
9541 char (*f) () = $ac_func;
9550 return f != $ac_func;
9555 rm -f conftest.$ac_objext conftest$ac_exeext
9556 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
9557 (eval $ac_link) 2>conftest.er1
9559 grep -v '^ *+' conftest.er1 >conftest.err
9561 cat conftest.err >&5
9562 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9563 (exit $ac_status); } &&
9564 { ac_try='test -z "$ac_c_werror_flag"
9565 || test ! -s conftest.err'
9566 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9569 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9570 (exit $ac_status); }; } &&
9571 { ac_try='test -s conftest$ac_exeext'
9572 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9575 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9576 (exit $ac_status); }; }; then
9577 eval "$as_ac_var=yes"
9579 echo "$as_me: failed program was:" >&5
9580 sed 's/^/| /' conftest.$ac_ext >&5
9582 eval "$as_ac_var=no"
9584 rm -f conftest.err conftest.$ac_objext \
9585 conftest$ac_exeext conftest.$ac_ext
9587 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
9588 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
9589 if test `eval echo '${'$as_ac_var'}'` = yes; then
9590 cat >>confdefs.h <<_ACEOF
9591 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
9597 echo "$as_me:$LINENO: checking for ANSI C header files" >&5
9598 echo $ECHO_N "checking for ANSI C header files... $ECHO_C" >&6
9599 if test "${ac_cv_header_stdc+set}" = set; then
9600 echo $ECHO_N "(cached) $ECHO_C" >&6
9602 cat >conftest.$ac_ext <<_ACEOF
9605 cat confdefs.h >>conftest.$ac_ext
9606 cat >>conftest.$ac_ext <<_ACEOF
9607 /* end confdefs.h. */
9621 rm -f conftest.$ac_objext
9622 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
9623 (eval $ac_compile) 2>conftest.er1
9625 grep -v '^ *+' conftest.er1 >conftest.err
9627 cat conftest.err >&5
9628 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9629 (exit $ac_status); } &&
9630 { ac_try='test -z "$ac_c_werror_flag"
9631 || test ! -s conftest.err'
9632 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9635 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9636 (exit $ac_status); }; } &&
9637 { ac_try='test -s conftest.$ac_objext'
9638 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9641 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9642 (exit $ac_status); }; }; then
9643 ac_cv_header_stdc=yes
9645 echo "$as_me: failed program was:" >&5
9646 sed 's/^/| /' conftest.$ac_ext >&5
9648 ac_cv_header_stdc=no
9650 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
9652 if test $ac_cv_header_stdc = yes; then
9653 # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
9654 cat >conftest.$ac_ext <<_ACEOF
9657 cat confdefs.h >>conftest.$ac_ext
9658 cat >>conftest.$ac_ext <<_ACEOF
9659 /* end confdefs.h. */
9663 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
9664 $EGREP "memchr" >/dev/null 2>&1; then
9667 ac_cv_header_stdc=no
9673 if test $ac_cv_header_stdc = yes; then
9674 # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
9675 cat >conftest.$ac_ext <<_ACEOF
9678 cat confdefs.h >>conftest.$ac_ext
9679 cat >>conftest.$ac_ext <<_ACEOF
9680 /* end confdefs.h. */
9684 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
9685 $EGREP "free" >/dev/null 2>&1; then
9688 ac_cv_header_stdc=no
9694 if test $ac_cv_header_stdc = yes; then
9695 # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
9696 if test "$cross_compiling" = yes; then
9699 cat >conftest.$ac_ext <<_ACEOF
9702 cat confdefs.h >>conftest.$ac_ext
9703 cat >>conftest.$ac_ext <<_ACEOF
9704 /* end confdefs.h. */
9706 #if ((' ' & 0x0FF) == 0x020)
9707 # define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
9708 # define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
9710 # define ISLOWER(c) \
9711 (('a' <= (c) && (c) <= 'i') \
9712 || ('j' <= (c) && (c) <= 'r') \
9713 || ('s' <= (c) && (c) <= 'z'))
9714 # define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
9717 #define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
9722 for (i = 0; i < 256; i++)
9723 if (XOR (islower (i), ISLOWER (i))
9724 || toupper (i) != TOUPPER (i))
9729 rm -f conftest$ac_exeext
9730 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
9731 (eval $ac_link) 2>&5
9733 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9734 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
9735 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9738 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9739 (exit $ac_status); }; }; then
9742 echo "$as_me: program exited with status $ac_status" >&5
9743 echo "$as_me: failed program was:" >&5
9744 sed 's/^/| /' conftest.$ac_ext >&5
9747 ac_cv_header_stdc=no
9749 rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
9753 echo "$as_me:$LINENO: result: $ac_cv_header_stdc" >&5
9754 echo "${ECHO_T}$ac_cv_header_stdc" >&6
9755 if test $ac_cv_header_stdc = yes; then
9757 cat >>confdefs.h <<\_ACEOF
9758 #define STDC_HEADERS 1
9763 # On IRIX 5.3, sys/types and inttypes.h are conflicting.
9773 for ac_header in sys/types.h sys/stat.h stdlib.h string.h memory.h strings.h \
9774 inttypes.h stdint.h unistd.h
9776 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
9777 echo "$as_me:$LINENO: checking for $ac_header" >&5
9778 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
9779 if eval "test \"\${$as_ac_Header+set}\" = set"; then
9780 echo $ECHO_N "(cached) $ECHO_C" >&6
9782 cat >conftest.$ac_ext <<_ACEOF
9785 cat confdefs.h >>conftest.$ac_ext
9786 cat >>conftest.$ac_ext <<_ACEOF
9787 /* end confdefs.h. */
9788 $ac_includes_default
9790 #include <$ac_header>
9792 rm -f conftest.$ac_objext
9793 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
9794 (eval $ac_compile) 2>conftest.er1
9796 grep -v '^ *+' conftest.er1 >conftest.err
9798 cat conftest.err >&5
9799 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9800 (exit $ac_status); } &&
9801 { ac_try='test -z "$ac_c_werror_flag"
9802 || test ! -s conftest.err'
9803 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9806 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9807 (exit $ac_status); }; } &&
9808 { ac_try='test -s conftest.$ac_objext'
9809 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9812 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9813 (exit $ac_status); }; }; then
9814 eval "$as_ac_Header=yes"
9816 echo "$as_me: failed program was:" >&5
9817 sed 's/^/| /' conftest.$ac_ext >&5
9819 eval "$as_ac_Header=no"
9821 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
9823 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
9824 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
9825 if test `eval echo '${'$as_ac_Header'}'` = yes; then
9826 cat >>confdefs.h <<_ACEOF
9827 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
9838 for ac_header in execinfo.h unistd.h dlfcn.h
9840 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
9841 if eval "test \"\${$as_ac_Header+set}\" = set"; then
9842 echo "$as_me:$LINENO: checking for $ac_header" >&5
9843 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
9844 if eval "test \"\${$as_ac_Header+set}\" = set"; then
9845 echo $ECHO_N "(cached) $ECHO_C" >&6
9847 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
9848 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
9850 # Is the header compilable?
9851 echo "$as_me:$LINENO: checking $ac_header usability" >&5
9852 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
9853 cat >conftest.$ac_ext <<_ACEOF
9856 cat confdefs.h >>conftest.$ac_ext
9857 cat >>conftest.$ac_ext <<_ACEOF
9858 /* end confdefs.h. */
9859 $ac_includes_default
9860 #include <$ac_header>
9862 rm -f conftest.$ac_objext
9863 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
9864 (eval $ac_compile) 2>conftest.er1
9866 grep -v '^ *+' conftest.er1 >conftest.err
9868 cat conftest.err >&5
9869 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9870 (exit $ac_status); } &&
9871 { ac_try='test -z "$ac_c_werror_flag"
9872 || test ! -s conftest.err'
9873 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9876 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9877 (exit $ac_status); }; } &&
9878 { ac_try='test -s conftest.$ac_objext'
9879 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9882 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9883 (exit $ac_status); }; }; then
9884 ac_header_compiler=yes
9886 echo "$as_me: failed program was:" >&5
9887 sed 's/^/| /' conftest.$ac_ext >&5
9889 ac_header_compiler=no
9891 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
9892 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
9893 echo "${ECHO_T}$ac_header_compiler" >&6
9895 # Is the header present?
9896 echo "$as_me:$LINENO: checking $ac_header presence" >&5
9897 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
9898 cat >conftest.$ac_ext <<_ACEOF
9901 cat confdefs.h >>conftest.$ac_ext
9902 cat >>conftest.$ac_ext <<_ACEOF
9903 /* end confdefs.h. */
9904 #include <$ac_header>
9906 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
9907 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
9909 grep -v '^ *+' conftest.er1 >conftest.err
9911 cat conftest.err >&5
9912 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9913 (exit $ac_status); } >/dev/null; then
9914 if test -s conftest.err; then
9915 ac_cpp_err=$ac_c_preproc_warn_flag
9916 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
9923 if test -z "$ac_cpp_err"; then
9924 ac_header_preproc=yes
9926 echo "$as_me: failed program was:" >&5
9927 sed 's/^/| /' conftest.$ac_ext >&5
9929 ac_header_preproc=no
9931 rm -f conftest.err conftest.$ac_ext
9932 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
9933 echo "${ECHO_T}$ac_header_preproc" >&6
9935 # So? What about this header?
9936 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
9938 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
9939 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
9940 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
9941 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
9942 ac_header_preproc=yes
9945 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
9946 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
9947 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
9948 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
9949 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
9950 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
9951 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
9952 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
9953 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
9954 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
9955 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
9956 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
9959 ## ---------------------------------- ##
9960 ## Report this to the libjava lists. ##
9961 ## ---------------------------------- ##
9964 sed "s/^/$as_me: WARNING: /" >&2
9967 echo "$as_me:$LINENO: checking for $ac_header" >&5
9968 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
9969 if eval "test \"\${$as_ac_Header+set}\" = set"; then
9970 echo $ECHO_N "(cached) $ECHO_C" >&6
9972 eval "$as_ac_Header=\$ac_header_preproc"
9974 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
9975 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
9978 if test `eval echo '${'$as_ac_Header'}'` = yes; then
9979 cat >>confdefs.h <<_ACEOF
9980 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
9987 # Do an additional check on dld, HP-UX for example has dladdr in libdld.sl
9988 echo "$as_me:$LINENO: checking for dladdr in -ldl" >&5
9989 echo $ECHO_N "checking for dladdr in -ldl... $ECHO_C" >&6
9990 if test "${ac_cv_lib_dl_dladdr+set}" = set; then
9991 echo $ECHO_N "(cached) $ECHO_C" >&6
9993 ac_check_lib_save_LIBS=$LIBS
9995 if test x$gcc_no_link = xyes; then
9996 { { echo "$as_me:$LINENO: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&5
9997 echo "$as_me: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&2;}
9998 { (exit 1); exit 1; }; }
10000 cat >conftest.$ac_ext <<_ACEOF
10003 cat confdefs.h >>conftest.$ac_ext
10004 cat >>conftest.$ac_ext <<_ACEOF
10005 /* end confdefs.h. */
10007 /* Override any gcc2 internal prototype to avoid an error. */
10011 /* We use char because int might match the return type of a gcc2
10012 builtin and then its argument prototype would still apply. */
10022 rm -f conftest.$ac_objext conftest$ac_exeext
10023 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
10024 (eval $ac_link) 2>conftest.er1
10026 grep -v '^ *+' conftest.er1 >conftest.err
10028 cat conftest.err >&5
10029 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10030 (exit $ac_status); } &&
10031 { ac_try='test -z "$ac_c_werror_flag"
10032 || test ! -s conftest.err'
10033 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10034 (eval $ac_try) 2>&5
10036 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10037 (exit $ac_status); }; } &&
10038 { ac_try='test -s conftest$ac_exeext'
10039 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10040 (eval $ac_try) 2>&5
10042 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10043 (exit $ac_status); }; }; then
10044 ac_cv_lib_dl_dladdr=yes
10046 echo "$as_me: failed program was:" >&5
10047 sed 's/^/| /' conftest.$ac_ext >&5
10049 ac_cv_lib_dl_dladdr=no
10051 rm -f conftest.err conftest.$ac_objext \
10052 conftest$ac_exeext conftest.$ac_ext
10053 LIBS=$ac_check_lib_save_LIBS
10055 echo "$as_me:$LINENO: result: $ac_cv_lib_dl_dladdr" >&5
10056 echo "${ECHO_T}$ac_cv_lib_dl_dladdr" >&6
10057 if test $ac_cv_lib_dl_dladdr = yes; then
10060 cat >>confdefs.h <<\_ACEOF
10061 #define HAVE_DLADDR 1
10066 echo "$as_me:$LINENO: checking for dladdr in -ldld" >&5
10067 echo $ECHO_N "checking for dladdr in -ldld... $ECHO_C" >&6
10068 if test "${ac_cv_lib_dld_dladdr+set}" = set; then
10069 echo $ECHO_N "(cached) $ECHO_C" >&6
10071 ac_check_lib_save_LIBS=$LIBS
10073 if test x$gcc_no_link = xyes; then
10074 { { echo "$as_me:$LINENO: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&5
10075 echo "$as_me: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&2;}
10076 { (exit 1); exit 1; }; }
10078 cat >conftest.$ac_ext <<_ACEOF
10081 cat confdefs.h >>conftest.$ac_ext
10082 cat >>conftest.$ac_ext <<_ACEOF
10083 /* end confdefs.h. */
10085 /* Override any gcc2 internal prototype to avoid an error. */
10089 /* We use char because int might match the return type of a gcc2
10090 builtin and then its argument prototype would still apply. */
10100 rm -f conftest.$ac_objext conftest$ac_exeext
10101 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
10102 (eval $ac_link) 2>conftest.er1
10104 grep -v '^ *+' conftest.er1 >conftest.err
10106 cat conftest.err >&5
10107 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10108 (exit $ac_status); } &&
10109 { ac_try='test -z "$ac_c_werror_flag"
10110 || test ! -s conftest.err'
10111 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10112 (eval $ac_try) 2>&5
10114 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10115 (exit $ac_status); }; } &&
10116 { ac_try='test -s conftest$ac_exeext'
10117 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10118 (eval $ac_try) 2>&5
10120 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10121 (exit $ac_status); }; }; then
10122 ac_cv_lib_dld_dladdr=yes
10124 echo "$as_me: failed program was:" >&5
10125 sed 's/^/| /' conftest.$ac_ext >&5
10127 ac_cv_lib_dld_dladdr=no
10129 rm -f conftest.err conftest.$ac_objext \
10130 conftest$ac_exeext conftest.$ac_ext
10131 LIBS=$ac_check_lib_save_LIBS
10133 echo "$as_me:$LINENO: result: $ac_cv_lib_dld_dladdr" >&5
10134 echo "${ECHO_T}$ac_cv_lib_dld_dladdr" >&6
10135 if test $ac_cv_lib_dld_dladdr = yes; then
10138 cat >>confdefs.h <<\_ACEOF
10139 #define HAVE_DLADDR 1
10147 if test x"$build" = x"$host"; then
10148 echo "$as_me:$LINENO: checking for /proc/self/exe" >&5
10149 echo $ECHO_N "checking for /proc/self/exe... $ECHO_C" >&6
10150 if test "${ac_cv_file__proc_self_exe+set}" = set; then
10151 echo $ECHO_N "(cached) $ECHO_C" >&6
10153 test "$cross_compiling" = yes &&
10154 { { echo "$as_me:$LINENO: error: cannot check for file existence when cross compiling" >&5
10155 echo "$as_me: error: cannot check for file existence when cross compiling" >&2;}
10156 { (exit 1); exit 1; }; }
10157 if test -r "/proc/self/exe"; then
10158 ac_cv_file__proc_self_exe=yes
10160 ac_cv_file__proc_self_exe=no
10163 echo "$as_me:$LINENO: result: $ac_cv_file__proc_self_exe" >&5
10164 echo "${ECHO_T}$ac_cv_file__proc_self_exe" >&6
10165 if test $ac_cv_file__proc_self_exe = yes; then
10167 cat >>confdefs.h <<_ACEOF
10168 #define HAVE__PROC_SELF_EXE 1
10173 cat >>confdefs.h <<\_ACEOF
10174 #define HAVE_PROC_SELF_EXE 1
10183 cat >>confdefs.h <<\_ACEOF
10184 #define HAVE_PROC_SELF_EXE 1
10192 if test "X$prefix" = "XNONE"; then
10193 acl_final_prefix="$ac_default_prefix"
10195 acl_final_prefix="$prefix"
10197 if test "X$exec_prefix" = "XNONE"; then
10198 acl_final_exec_prefix='${prefix}'
10200 acl_final_exec_prefix="$exec_prefix"
10202 acl_save_prefix="$prefix"
10203 prefix="$acl_final_prefix"
10204 eval acl_final_exec_prefix=\"$acl_final_exec_prefix\"
10205 prefix="$acl_save_prefix"
10208 # Check whether --with-gnu-ld or --without-gnu-ld was given.
10209 if test "${with_gnu_ld+set}" = set; then
10210 withval="$with_gnu_ld"
10211 test "$withval" = no || with_gnu_ld=yes
10215 # Prepare PATH_SEPARATOR.
10216 # The user is always right.
10217 if test "${PATH_SEPARATOR+set}" != set; then
10218 echo "#! /bin/sh" >conf$$.sh
10219 echo "exit 0" >>conf$$.sh
10221 if (PATH="/nonexistent;."; conf$$.sh) >/dev/null 2>&1; then
10229 if test "$GCC" = yes; then
10230 # Check if gcc -print-prog-name=ld gives a path.
10231 echo "$as_me:$LINENO: checking for ld used by GCC" >&5
10232 echo $ECHO_N "checking for ld used by GCC... $ECHO_C" >&6
10235 # gcc leaves a trailing carriage return which upsets mingw
10236 ac_prog=`($CC -print-prog-name=ld) 2>&5 | tr -d '\015'` ;;
10238 ac_prog=`($CC -print-prog-name=ld) 2>&5` ;;
10241 # Accept absolute paths.
10242 [\\/]* | [A-Za-z]:[\\/]*)
10243 re_direlt='/[^/][^/]*/\.\./'
10244 # Canonicalize the path of ld
10245 ac_prog=`echo $ac_prog| sed 's%\\\\%/%g'`
10246 while echo $ac_prog | grep "$re_direlt" > /dev/null 2>&1; do
10247 ac_prog=`echo $ac_prog| sed "s%$re_direlt%/%"`
10249 test -z "$LD" && LD="$ac_prog"
10252 # If it fails, then pretend we aren't using GCC.
10256 # If it is relative, then search for the first ld in PATH.
10257 with_gnu_ld=unknown
10260 elif test "$with_gnu_ld" = yes; then
10261 echo "$as_me:$LINENO: checking for GNU ld" >&5
10262 echo $ECHO_N "checking for GNU ld... $ECHO_C" >&6
10264 echo "$as_me:$LINENO: checking for non-GNU ld" >&5
10265 echo $ECHO_N "checking for non-GNU ld... $ECHO_C" >&6
10267 if test "${acl_cv_path_LD+set}" = set; then
10268 echo $ECHO_N "(cached) $ECHO_C" >&6
10270 if test -z "$LD"; then
10271 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS="${IFS}${PATH_SEPARATOR-:}"
10272 for ac_dir in $PATH; do
10273 test -z "$ac_dir" && ac_dir=.
10274 if test -f "$ac_dir/$ac_prog" || test -f "$ac_dir/$ac_prog$ac_exeext"; then
10275 acl_cv_path_LD="$ac_dir/$ac_prog"
10276 # Check to see if the program is GNU ld. I'd rather use --version,
10277 # but apparently some GNU ld's only accept -v.
10278 # Break only if it was the GNU/non-GNU ld that we prefer.
10279 if "$acl_cv_path_LD" -v 2>&1 < /dev/null | egrep '(GNU|with BFD)' > /dev/null; then
10280 test "$with_gnu_ld" != no && break
10282 test "$with_gnu_ld" != yes && break
10288 acl_cv_path_LD="$LD" # Let the user override the test with a path.
10292 LD="$acl_cv_path_LD"
10293 if test -n "$LD"; then
10294 echo "$as_me:$LINENO: result: $LD" >&5
10295 echo "${ECHO_T}$LD" >&6
10297 echo "$as_me:$LINENO: result: no" >&5
10298 echo "${ECHO_T}no" >&6
10300 test -z "$LD" && { { echo "$as_me:$LINENO: error: no acceptable ld found in \$PATH" >&5
10301 echo "$as_me: error: no acceptable ld found in \$PATH" >&2;}
10302 { (exit 1); exit 1; }; }
10303 echo "$as_me:$LINENO: checking if the linker ($LD) is GNU ld" >&5
10304 echo $ECHO_N "checking if the linker ($LD) is GNU ld... $ECHO_C" >&6
10305 if test "${acl_cv_prog_gnu_ld+set}" = set; then
10306 echo $ECHO_N "(cached) $ECHO_C" >&6
10308 # I'd rather use --version here, but apparently some GNU ld's only accept -v.
10309 if $LD -v 2>&1 </dev/null | egrep '(GNU|with BFD)' 1>&5; then
10310 acl_cv_prog_gnu_ld=yes
10312 acl_cv_prog_gnu_ld=no
10315 echo "$as_me:$LINENO: result: $acl_cv_prog_gnu_ld" >&5
10316 echo "${ECHO_T}$acl_cv_prog_gnu_ld" >&6
10317 with_gnu_ld=$acl_cv_prog_gnu_ld
10321 echo "$as_me:$LINENO: checking for shared library run path origin" >&5
10322 echo $ECHO_N "checking for shared library run path origin... $ECHO_C" >&6
10323 if test "${acl_cv_rpath+set}" = set; then
10324 echo $ECHO_N "(cached) $ECHO_C" >&6
10327 CC="$CC" GCC="$GCC" LDFLAGS="$LDFLAGS" LD="$LD" with_gnu_ld="$with_gnu_ld" \
10328 ${CONFIG_SHELL-/bin/sh} "$ac_aux_dir/config.rpath" "$host" > conftest.sh
10330 rm -f ./conftest.sh
10334 echo "$as_me:$LINENO: result: $acl_cv_rpath" >&5
10335 echo "${ECHO_T}$acl_cv_rpath" >&6
10337 libext="$acl_cv_libext"
10338 shlibext="$acl_cv_shlibext"
10339 hardcode_libdir_flag_spec="$acl_cv_hardcode_libdir_flag_spec"
10340 hardcode_libdir_separator="$acl_cv_hardcode_libdir_separator"
10341 hardcode_direct="$acl_cv_hardcode_direct"
10342 hardcode_minus_L="$acl_cv_hardcode_minus_L"
10343 # Check whether --enable-rpath or --disable-rpath was given.
10344 if test "${enable_rpath+set}" = set; then
10345 enableval="$enable_rpath"
10359 acl_save_prefix="$prefix"
10360 prefix="$acl_final_prefix"
10361 acl_save_exec_prefix="$exec_prefix"
10362 exec_prefix="$acl_final_exec_prefix"
10364 eval additional_includedir=\"$includedir\"
10365 eval additional_libdir=\"$libdir\"
10367 exec_prefix="$acl_save_exec_prefix"
10368 prefix="$acl_save_prefix"
10371 # Check whether --with-libiconv-prefix or --without-libiconv-prefix was given.
10372 if test "${with_libiconv_prefix+set}" = set; then
10373 withval="$with_libiconv_prefix"
10375 if test "X$withval" = "Xno"; then
10378 if test "X$withval" = "X"; then
10380 acl_save_prefix="$prefix"
10381 prefix="$acl_final_prefix"
10382 acl_save_exec_prefix="$exec_prefix"
10383 exec_prefix="$acl_final_exec_prefix"
10385 eval additional_includedir=\"$includedir\"
10386 eval additional_libdir=\"$libdir\"
10388 exec_prefix="$acl_save_exec_prefix"
10389 prefix="$acl_save_prefix"
10392 additional_includedir="$withval/include"
10393 additional_libdir="$withval/lib"
10403 names_already_handled=
10404 names_next_round='iconv '
10405 while test -n "$names_next_round"; do
10406 names_this_round="$names_next_round"
10408 for name in $names_this_round; do
10410 for n in $names_already_handled; do
10411 if test "$n" = "$name"; then
10412 already_handled=yes
10416 if test -z "$already_handled"; then
10417 names_already_handled="$names_already_handled $name"
10418 uppername=`echo "$name" | sed -e 'y|abcdefghijklmnopqrstuvwxyz./-|ABCDEFGHIJKLMNOPQRSTUVWXYZ___|'`
10419 eval value=\"\$HAVE_LIB$uppername\"
10420 if test -n "$value"; then
10421 if test "$value" = yes; then
10422 eval value=\"\$LIB$uppername\"
10423 test -z "$value" || LIBICONV="${LIBICONV}${LIBICONV:+ }$value"
10424 eval value=\"\$LTLIB$uppername\"
10425 test -z "$value" || LTLIBICONV="${LTLIBICONV}${LTLIBICONV:+ }$value"
10434 if test $use_additional = yes; then
10435 if test -n "$shlibext" && test -f "$additional_libdir/lib$name.$shlibext"; then
10436 found_dir="$additional_libdir"
10437 found_so="$additional_libdir/lib$name.$shlibext"
10438 if test -f "$additional_libdir/lib$name.la"; then
10439 found_la="$additional_libdir/lib$name.la"
10442 if test -f "$additional_libdir/lib$name.$libext"; then
10443 found_dir="$additional_libdir"
10444 found_a="$additional_libdir/lib$name.$libext"
10445 if test -f "$additional_libdir/lib$name.la"; then
10446 found_la="$additional_libdir/lib$name.la"
10451 if test "X$found_dir" = "X"; then
10452 for x in $LDFLAGS $LTLIBICONV; do
10454 acl_save_prefix="$prefix"
10455 prefix="$acl_final_prefix"
10456 acl_save_exec_prefix="$exec_prefix"
10457 exec_prefix="$acl_final_exec_prefix"
10459 exec_prefix="$acl_save_exec_prefix"
10460 prefix="$acl_save_prefix"
10464 dir=`echo "X$x" | sed -e 's/^X-L//'`
10465 if test -n "$shlibext" && test -f "$dir/lib$name.$shlibext"; then
10467 found_so="$dir/lib$name.$shlibext"
10468 if test -f "$dir/lib$name.la"; then
10469 found_la="$dir/lib$name.la"
10472 if test -f "$dir/lib$name.$libext"; then
10474 found_a="$dir/lib$name.$libext"
10475 if test -f "$dir/lib$name.la"; then
10476 found_la="$dir/lib$name.la"
10482 if test "X$found_dir" != "X"; then
10487 if test "X$found_dir" != "X"; then
10488 LTLIBICONV="${LTLIBICONV}${LTLIBICONV:+ }-L$found_dir -l$name"
10489 if test "X$found_so" != "X"; then
10490 if test "$enable_rpath" = no || test "X$found_dir" = "X/usr/lib"; then
10491 LIBICONV="${LIBICONV}${LIBICONV:+ }$found_so"
10494 for x in $ltrpathdirs; do
10495 if test "X$x" = "X$found_dir"; then
10500 if test -z "$haveit"; then
10501 ltrpathdirs="$ltrpathdirs $found_dir"
10503 if test "$hardcode_direct" = yes; then
10504 LIBICONV="${LIBICONV}${LIBICONV:+ }$found_so"
10506 if test -n "$hardcode_libdir_flag_spec" && test "$hardcode_minus_L" = no; then
10507 LIBICONV="${LIBICONV}${LIBICONV:+ }$found_so"
10509 for x in $rpathdirs; do
10510 if test "X$x" = "X$found_dir"; then
10515 if test -z "$haveit"; then
10516 rpathdirs="$rpathdirs $found_dir"
10520 for x in $LDFLAGS $LIBICONV; do
10522 acl_save_prefix="$prefix"
10523 prefix="$acl_final_prefix"
10524 acl_save_exec_prefix="$exec_prefix"
10525 exec_prefix="$acl_final_exec_prefix"
10527 exec_prefix="$acl_save_exec_prefix"
10528 prefix="$acl_save_prefix"
10530 if test "X$x" = "X-L$found_dir"; then
10535 if test -z "$haveit"; then
10536 LIBICONV="${LIBICONV}${LIBICONV:+ }-L$found_dir"
10538 if test "$hardcode_minus_L" != no; then
10539 LIBICONV="${LIBICONV}${LIBICONV:+ }$found_so"
10541 LIBICONV="${LIBICONV}${LIBICONV:+ }-l$name"
10547 if test "X$found_a" != "X"; then
10548 LIBICONV="${LIBICONV}${LIBICONV:+ }$found_a"
10550 LIBICONV="${LIBICONV}${LIBICONV:+ }-L$found_dir -l$name"
10553 additional_includedir=
10554 case "$found_dir" in
10556 basedir=`echo "X$found_dir" | sed -e 's,^X,,' -e 's,/lib/*$,,'`
10557 additional_includedir="$basedir/include"
10560 if test "X$additional_includedir" != "X"; then
10561 if test "X$additional_includedir" != "X/usr/include"; then
10563 if test "X$additional_includedir" = "X/usr/local/include"; then
10564 if test -n "$GCC"; then
10566 linux*) haveit=yes;;
10570 if test -z "$haveit"; then
10571 for x in $CPPFLAGS $INCICONV; do
10573 acl_save_prefix="$prefix"
10574 prefix="$acl_final_prefix"
10575 acl_save_exec_prefix="$exec_prefix"
10576 exec_prefix="$acl_final_exec_prefix"
10578 exec_prefix="$acl_save_exec_prefix"
10579 prefix="$acl_save_prefix"
10581 if test "X$x" = "X-I$additional_includedir"; then
10586 if test -z "$haveit"; then
10587 if test -d "$additional_includedir"; then
10588 INCICONV="${INCICONV}${INCICONV:+ }-I$additional_includedir"
10594 if test -n "$found_la"; then
10595 save_libdir="$libdir"
10596 case "$found_la" in
10597 */* | *\\*) . "$found_la" ;;
10598 *) . "./$found_la" ;;
10600 libdir="$save_libdir"
10601 for dep in $dependency_libs; do
10604 additional_libdir=`echo "X$dep" | sed -e 's/^X-L//'`
10605 if test "X$additional_libdir" != "X/usr/lib"; then
10607 if test "X$additional_libdir" = "X/usr/local/lib"; then
10608 if test -n "$GCC"; then
10610 linux*) haveit=yes;;
10614 if test -z "$haveit"; then
10616 for x in $LDFLAGS $LIBICONV; do
10618 acl_save_prefix="$prefix"
10619 prefix="$acl_final_prefix"
10620 acl_save_exec_prefix="$exec_prefix"
10621 exec_prefix="$acl_final_exec_prefix"
10623 exec_prefix="$acl_save_exec_prefix"
10624 prefix="$acl_save_prefix"
10626 if test "X$x" = "X-L$additional_libdir"; then
10631 if test -z "$haveit"; then
10632 if test -d "$additional_libdir"; then
10633 LIBICONV="${LIBICONV}${LIBICONV:+ }-L$additional_libdir"
10637 for x in $LDFLAGS $LTLIBICONV; do
10639 acl_save_prefix="$prefix"
10640 prefix="$acl_final_prefix"
10641 acl_save_exec_prefix="$exec_prefix"
10642 exec_prefix="$acl_final_exec_prefix"
10644 exec_prefix="$acl_save_exec_prefix"
10645 prefix="$acl_save_prefix"
10647 if test "X$x" = "X-L$additional_libdir"; then
10652 if test -z "$haveit"; then
10653 if test -d "$additional_libdir"; then
10654 LTLIBICONV="${LTLIBICONV}${LTLIBICONV:+ }-L$additional_libdir"
10661 dir=`echo "X$dep" | sed -e 's/^X-R//'`
10662 if test "$enable_rpath" != no; then
10664 for x in $rpathdirs; do
10665 if test "X$x" = "X$dir"; then
10670 if test -z "$haveit"; then
10671 rpathdirs="$rpathdirs $dir"
10674 for x in $ltrpathdirs; do
10675 if test "X$x" = "X$dir"; then
10680 if test -z "$haveit"; then
10681 ltrpathdirs="$ltrpathdirs $dir"
10686 names_next_round="$names_next_round "`echo "X$dep" | sed -e 's/^X-l//'`
10689 names_next_round="$names_next_round "`echo "X$dep" | sed -e 's,^X.*/,,' -e 's,^lib,,' -e 's,\.la$,,'`
10692 LIBICONV="${LIBICONV}${LIBICONV:+ }$dep"
10693 LTLIBICONV="${LTLIBICONV}${LTLIBICONV:+ }$dep"
10699 LIBICONV="${LIBICONV}${LIBICONV:+ }-l$name"
10700 LTLIBICONV="${LTLIBICONV}${LTLIBICONV:+ }-l$name"
10706 if test "X$rpathdirs" != "X"; then
10707 if test -n "$hardcode_libdir_separator"; then
10709 for found_dir in $rpathdirs; do
10710 alldirs="${alldirs}${alldirs:+$hardcode_libdir_separator}$found_dir"
10712 acl_save_libdir="$libdir"
10714 eval flag=\"$hardcode_libdir_flag_spec\"
10715 libdir="$acl_save_libdir"
10716 LIBICONV="${LIBICONV}${LIBICONV:+ }$flag"
10718 for found_dir in $rpathdirs; do
10719 acl_save_libdir="$libdir"
10720 libdir="$found_dir"
10721 eval flag=\"$hardcode_libdir_flag_spec\"
10722 libdir="$acl_save_libdir"
10723 LIBICONV="${LIBICONV}${LIBICONV:+ }$flag"
10727 if test "X$ltrpathdirs" != "X"; then
10728 for found_dir in $ltrpathdirs; do
10729 LTLIBICONV="${LTLIBICONV}${LTLIBICONV:+ }-R$found_dir"
10739 am_save_CPPFLAGS="$CPPFLAGS"
10741 for element in $INCICONV; do
10743 for x in $CPPFLAGS; do
10745 acl_save_prefix="$prefix"
10746 prefix="$acl_final_prefix"
10747 acl_save_exec_prefix="$exec_prefix"
10748 exec_prefix="$acl_final_exec_prefix"
10750 exec_prefix="$acl_save_exec_prefix"
10751 prefix="$acl_save_prefix"
10753 if test "X$x" = "X$element"; then
10758 if test -z "$haveit"; then
10759 CPPFLAGS="${CPPFLAGS}${CPPFLAGS:+ }$element"
10764 echo "$as_me:$LINENO: checking for iconv" >&5
10765 echo $ECHO_N "checking for iconv... $ECHO_C" >&6
10766 if test "${am_cv_func_iconv+set}" = set; then
10767 echo $ECHO_N "(cached) $ECHO_C" >&6
10770 am_cv_func_iconv="no, consider installing GNU libiconv"
10772 if test x$gcc_no_link = xyes; then
10773 { { echo "$as_me:$LINENO: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&5
10774 echo "$as_me: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&2;}
10775 { (exit 1); exit 1; }; }
10777 cat >conftest.$ac_ext <<_ACEOF
10780 cat confdefs.h >>conftest.$ac_ext
10781 cat >>conftest.$ac_ext <<_ACEOF
10782 /* end confdefs.h. */
10783 #include <stdlib.h>
10788 iconv_t cd = iconv_open("","");
10789 iconv(cd,NULL,NULL,NULL,NULL);
10795 rm -f conftest.$ac_objext conftest$ac_exeext
10796 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
10797 (eval $ac_link) 2>conftest.er1
10799 grep -v '^ *+' conftest.er1 >conftest.err
10801 cat conftest.err >&5
10802 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10803 (exit $ac_status); } &&
10804 { ac_try='test -z "$ac_c_werror_flag"
10805 || test ! -s conftest.err'
10806 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10807 (eval $ac_try) 2>&5
10809 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10810 (exit $ac_status); }; } &&
10811 { ac_try='test -s conftest$ac_exeext'
10812 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10813 (eval $ac_try) 2>&5
10815 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10816 (exit $ac_status); }; }; then
10817 am_cv_func_iconv=yes
10819 echo "$as_me: failed program was:" >&5
10820 sed 's/^/| /' conftest.$ac_ext >&5
10823 rm -f conftest.err conftest.$ac_objext \
10824 conftest$ac_exeext conftest.$ac_ext
10825 if test "$am_cv_func_iconv" != yes; then
10826 am_save_LIBS="$LIBS"
10827 LIBS="$LIBS $LIBICONV"
10828 if test x$gcc_no_link = xyes; then
10829 { { echo "$as_me:$LINENO: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&5
10830 echo "$as_me: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&2;}
10831 { (exit 1); exit 1; }; }
10833 cat >conftest.$ac_ext <<_ACEOF
10836 cat confdefs.h >>conftest.$ac_ext
10837 cat >>conftest.$ac_ext <<_ACEOF
10838 /* end confdefs.h. */
10839 #include <stdlib.h>
10844 iconv_t cd = iconv_open("","");
10845 iconv(cd,NULL,NULL,NULL,NULL);
10851 rm -f conftest.$ac_objext conftest$ac_exeext
10852 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
10853 (eval $ac_link) 2>conftest.er1
10855 grep -v '^ *+' conftest.er1 >conftest.err
10857 cat conftest.err >&5
10858 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10859 (exit $ac_status); } &&
10860 { ac_try='test -z "$ac_c_werror_flag"
10861 || test ! -s conftest.err'
10862 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10863 (eval $ac_try) 2>&5
10865 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10866 (exit $ac_status); }; } &&
10867 { ac_try='test -s conftest$ac_exeext'
10868 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10869 (eval $ac_try) 2>&5
10871 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10872 (exit $ac_status); }; }; then
10873 am_cv_lib_iconv=yes
10874 am_cv_func_iconv=yes
10876 echo "$as_me: failed program was:" >&5
10877 sed 's/^/| /' conftest.$ac_ext >&5
10880 rm -f conftest.err conftest.$ac_objext \
10881 conftest$ac_exeext conftest.$ac_ext
10882 LIBS="$am_save_LIBS"
10886 echo "$as_me:$LINENO: result: $am_cv_func_iconv" >&5
10887 echo "${ECHO_T}$am_cv_func_iconv" >&6
10888 if test "$am_cv_func_iconv" = yes; then
10890 cat >>confdefs.h <<\_ACEOF
10891 #define HAVE_ICONV 1
10895 if test "$am_cv_lib_iconv" = yes; then
10896 echo "$as_me:$LINENO: checking how to link with libiconv" >&5
10897 echo $ECHO_N "checking how to link with libiconv... $ECHO_C" >&6
10898 echo "$as_me:$LINENO: result: $LIBICONV" >&5
10899 echo "${ECHO_T}$LIBICONV" >&6
10901 CPPFLAGS="$am_save_CPPFLAGS"
10908 if test "$am_cv_func_iconv" = yes; then
10909 echo "$as_me:$LINENO: checking for iconv declaration" >&5
10910 echo $ECHO_N "checking for iconv declaration... $ECHO_C" >&6
10911 if test "${am_cv_proto_iconv+set}" = set; then
10912 echo $ECHO_N "(cached) $ECHO_C" >&6
10915 cat >conftest.$ac_ext <<_ACEOF
10918 cat confdefs.h >>conftest.$ac_ext
10919 cat >>conftest.$ac_ext <<_ACEOF
10920 /* end confdefs.h. */
10922 #include <stdlib.h>
10928 #if defined(__STDC__) || defined(__cplusplus)
10929 size_t iconv (iconv_t cd, char * *inbuf, size_t *inbytesleft, char * *outbuf, size_t *outbytesleft);
10942 rm -f conftest.$ac_objext
10943 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
10944 (eval $ac_compile) 2>conftest.er1
10946 grep -v '^ *+' conftest.er1 >conftest.err
10948 cat conftest.err >&5
10949 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10950 (exit $ac_status); } &&
10951 { ac_try='test -z "$ac_c_werror_flag"
10952 || test ! -s conftest.err'
10953 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10954 (eval $ac_try) 2>&5
10956 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10957 (exit $ac_status); }; } &&
10958 { ac_try='test -s conftest.$ac_objext'
10959 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10960 (eval $ac_try) 2>&5
10962 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10963 (exit $ac_status); }; }; then
10964 am_cv_proto_iconv_arg1=""
10966 echo "$as_me: failed program was:" >&5
10967 sed 's/^/| /' conftest.$ac_ext >&5
10969 am_cv_proto_iconv_arg1="const"
10971 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
10972 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);"
10975 am_cv_proto_iconv=`echo "$am_cv_proto_iconv" | tr -s ' ' | sed -e 's/( /(/'`
10976 echo "$as_me:$LINENO: result: ${ac_t:-
10977 }$am_cv_proto_iconv" >&5
10978 echo "${ECHO_T}${ac_t:-
10979 }$am_cv_proto_iconv" >&6
10981 cat >>confdefs.h <<_ACEOF
10982 #define ICONV_CONST $am_cv_proto_iconv_arg1
10988 echo "$as_me:$LINENO: checking for LC_MESSAGES" >&5
10989 echo $ECHO_N "checking for LC_MESSAGES... $ECHO_C" >&6
10990 if test "${am_cv_val_LC_MESSAGES+set}" = set; then
10991 echo $ECHO_N "(cached) $ECHO_C" >&6
10993 if test x$gcc_no_link = xyes; then
10994 { { echo "$as_me:$LINENO: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&5
10995 echo "$as_me: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&2;}
10996 { (exit 1); exit 1; }; }
10998 cat >conftest.$ac_ext <<_ACEOF
11001 cat confdefs.h >>conftest.$ac_ext
11002 cat >>conftest.$ac_ext <<_ACEOF
11003 /* end confdefs.h. */
11004 #include <locale.h>
11013 rm -f conftest.$ac_objext conftest$ac_exeext
11014 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
11015 (eval $ac_link) 2>conftest.er1
11017 grep -v '^ *+' conftest.er1 >conftest.err
11019 cat conftest.err >&5
11020 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11021 (exit $ac_status); } &&
11022 { ac_try='test -z "$ac_c_werror_flag"
11023 || test ! -s conftest.err'
11024 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11025 (eval $ac_try) 2>&5
11027 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11028 (exit $ac_status); }; } &&
11029 { ac_try='test -s conftest$ac_exeext'
11030 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11031 (eval $ac_try) 2>&5
11033 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11034 (exit $ac_status); }; }; then
11035 am_cv_val_LC_MESSAGES=yes
11037 echo "$as_me: failed program was:" >&5
11038 sed 's/^/| /' conftest.$ac_ext >&5
11040 am_cv_val_LC_MESSAGES=no
11042 rm -f conftest.err conftest.$ac_objext \
11043 conftest$ac_exeext conftest.$ac_ext
11045 echo "$as_me:$LINENO: result: $am_cv_val_LC_MESSAGES" >&5
11046 echo "${ECHO_T}$am_cv_val_LC_MESSAGES" >&6
11047 if test $am_cv_val_LC_MESSAGES = yes; then
11049 cat >>confdefs.h <<\_ACEOF
11050 #define HAVE_LC_MESSAGES 1
11055 echo "$as_me:$LINENO: checking whether struct tm is in sys/time.h or time.h" >&5
11056 echo $ECHO_N "checking whether struct tm is in sys/time.h or time.h... $ECHO_C" >&6
11057 if test "${ac_cv_struct_tm+set}" = set; then
11058 echo $ECHO_N "(cached) $ECHO_C" >&6
11060 cat >conftest.$ac_ext <<_ACEOF
11063 cat confdefs.h >>conftest.$ac_ext
11064 cat >>conftest.$ac_ext <<_ACEOF
11065 /* end confdefs.h. */
11066 #include <sys/types.h>
11072 struct tm *tp; tp->tm_sec;
11077 rm -f conftest.$ac_objext
11078 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
11079 (eval $ac_compile) 2>conftest.er1
11081 grep -v '^ *+' conftest.er1 >conftest.err
11083 cat conftest.err >&5
11084 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11085 (exit $ac_status); } &&
11086 { ac_try='test -z "$ac_c_werror_flag"
11087 || test ! -s conftest.err'
11088 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11089 (eval $ac_try) 2>&5
11091 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11092 (exit $ac_status); }; } &&
11093 { ac_try='test -s conftest.$ac_objext'
11094 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11095 (eval $ac_try) 2>&5
11097 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11098 (exit $ac_status); }; }; then
11099 ac_cv_struct_tm=time.h
11101 echo "$as_me: failed program was:" >&5
11102 sed 's/^/| /' conftest.$ac_ext >&5
11104 ac_cv_struct_tm=sys/time.h
11106 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
11108 echo "$as_me:$LINENO: result: $ac_cv_struct_tm" >&5
11109 echo "${ECHO_T}$ac_cv_struct_tm" >&6
11110 if test $ac_cv_struct_tm = sys/time.h; then
11112 cat >>confdefs.h <<\_ACEOF
11113 #define TM_IN_SYS_TIME 1
11118 echo "$as_me:$LINENO: checking for struct tm.tm_zone" >&5
11119 echo $ECHO_N "checking for struct tm.tm_zone... $ECHO_C" >&6
11120 if test "${ac_cv_member_struct_tm_tm_zone+set}" = set; then
11121 echo $ECHO_N "(cached) $ECHO_C" >&6
11123 cat >conftest.$ac_ext <<_ACEOF
11126 cat confdefs.h >>conftest.$ac_ext
11127 cat >>conftest.$ac_ext <<_ACEOF
11128 /* end confdefs.h. */
11129 #include <sys/types.h>
11130 #include <$ac_cv_struct_tm>
11136 static struct tm ac_aggr;
11137 if (ac_aggr.tm_zone)
11143 rm -f conftest.$ac_objext
11144 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
11145 (eval $ac_compile) 2>conftest.er1
11147 grep -v '^ *+' conftest.er1 >conftest.err
11149 cat conftest.err >&5
11150 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11151 (exit $ac_status); } &&
11152 { ac_try='test -z "$ac_c_werror_flag"
11153 || test ! -s conftest.err'
11154 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11155 (eval $ac_try) 2>&5
11157 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11158 (exit $ac_status); }; } &&
11159 { ac_try='test -s conftest.$ac_objext'
11160 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11161 (eval $ac_try) 2>&5
11163 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11164 (exit $ac_status); }; }; then
11165 ac_cv_member_struct_tm_tm_zone=yes
11167 echo "$as_me: failed program was:" >&5
11168 sed 's/^/| /' conftest.$ac_ext >&5
11170 cat >conftest.$ac_ext <<_ACEOF
11173 cat confdefs.h >>conftest.$ac_ext
11174 cat >>conftest.$ac_ext <<_ACEOF
11175 /* end confdefs.h. */
11176 #include <sys/types.h>
11177 #include <$ac_cv_struct_tm>
11183 static struct tm ac_aggr;
11184 if (sizeof ac_aggr.tm_zone)
11190 rm -f conftest.$ac_objext
11191 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
11192 (eval $ac_compile) 2>conftest.er1
11194 grep -v '^ *+' conftest.er1 >conftest.err
11196 cat conftest.err >&5
11197 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11198 (exit $ac_status); } &&
11199 { ac_try='test -z "$ac_c_werror_flag"
11200 || test ! -s conftest.err'
11201 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11202 (eval $ac_try) 2>&5
11204 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11205 (exit $ac_status); }; } &&
11206 { ac_try='test -s conftest.$ac_objext'
11207 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11208 (eval $ac_try) 2>&5
11210 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11211 (exit $ac_status); }; }; then
11212 ac_cv_member_struct_tm_tm_zone=yes
11214 echo "$as_me: failed program was:" >&5
11215 sed 's/^/| /' conftest.$ac_ext >&5
11217 ac_cv_member_struct_tm_tm_zone=no
11219 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
11221 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
11223 echo "$as_me:$LINENO: result: $ac_cv_member_struct_tm_tm_zone" >&5
11224 echo "${ECHO_T}$ac_cv_member_struct_tm_tm_zone" >&6
11225 if test $ac_cv_member_struct_tm_tm_zone = yes; then
11227 cat >>confdefs.h <<_ACEOF
11228 #define HAVE_STRUCT_TM_TM_ZONE 1
11234 if test "$ac_cv_member_struct_tm_tm_zone" = yes; then
11236 cat >>confdefs.h <<\_ACEOF
11237 #define HAVE_TM_ZONE 1
11241 echo "$as_me:$LINENO: checking for tzname" >&5
11242 echo $ECHO_N "checking for tzname... $ECHO_C" >&6
11243 if test "${ac_cv_var_tzname+set}" = set; then
11244 echo $ECHO_N "(cached) $ECHO_C" >&6
11246 if test x$gcc_no_link = xyes; then
11247 { { echo "$as_me:$LINENO: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&5
11248 echo "$as_me: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&2;}
11249 { (exit 1); exit 1; }; }
11251 cat >conftest.$ac_ext <<_ACEOF
11254 cat confdefs.h >>conftest.$ac_ext
11255 cat >>conftest.$ac_ext <<_ACEOF
11256 /* end confdefs.h. */
11258 #ifndef tzname /* For SGI. */
11259 extern char *tzname[]; /* RS6000 and others reject char **tzname. */
11270 rm -f conftest.$ac_objext conftest$ac_exeext
11271 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
11272 (eval $ac_link) 2>conftest.er1
11274 grep -v '^ *+' conftest.er1 >conftest.err
11276 cat conftest.err >&5
11277 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11278 (exit $ac_status); } &&
11279 { ac_try='test -z "$ac_c_werror_flag"
11280 || test ! -s conftest.err'
11281 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11282 (eval $ac_try) 2>&5
11284 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11285 (exit $ac_status); }; } &&
11286 { ac_try='test -s conftest$ac_exeext'
11287 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11288 (eval $ac_try) 2>&5
11290 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11291 (exit $ac_status); }; }; then
11292 ac_cv_var_tzname=yes
11294 echo "$as_me: failed program was:" >&5
11295 sed 's/^/| /' conftest.$ac_ext >&5
11297 ac_cv_var_tzname=no
11299 rm -f conftest.err conftest.$ac_objext \
11300 conftest$ac_exeext conftest.$ac_ext
11302 echo "$as_me:$LINENO: result: $ac_cv_var_tzname" >&5
11303 echo "${ECHO_T}$ac_cv_var_tzname" >&6
11304 if test $ac_cv_var_tzname = yes; then
11306 cat >>confdefs.h <<\_ACEOF
11307 #define HAVE_TZNAME 1
11316 for ac_func in gethostbyname_r
11318 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
11319 echo "$as_me:$LINENO: checking for $ac_func" >&5
11320 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
11321 if eval "test \"\${$as_ac_var+set}\" = set"; then
11322 echo $ECHO_N "(cached) $ECHO_C" >&6
11324 if test x$gcc_no_link = xyes; then
11325 { { echo "$as_me:$LINENO: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&5
11326 echo "$as_me: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&2;}
11327 { (exit 1); exit 1; }; }
11329 cat >conftest.$ac_ext <<_ACEOF
11332 cat confdefs.h >>conftest.$ac_ext
11333 cat >>conftest.$ac_ext <<_ACEOF
11334 /* end confdefs.h. */
11335 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
11336 For example, HP-UX 11i <limits.h> declares gettimeofday. */
11337 #define $ac_func innocuous_$ac_func
11339 /* System header to define __stub macros and hopefully few prototypes,
11340 which can conflict with char $ac_func (); below.
11341 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
11342 <limits.h> exists even on freestanding compilers. */
11345 # include <limits.h>
11347 # include <assert.h>
11352 /* Override any gcc2 internal prototype to avoid an error. */
11357 /* We use char because int might match the return type of a gcc2
11358 builtin and then its argument prototype would still apply. */
11360 /* The GNU C library defines this for functions which it implements
11361 to always fail with ENOSYS. Some functions are actually named
11362 something starting with __ and the normal name is an alias. */
11363 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
11366 char (*f) () = $ac_func;
11375 return f != $ac_func;
11380 rm -f conftest.$ac_objext conftest$ac_exeext
11381 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
11382 (eval $ac_link) 2>conftest.er1
11384 grep -v '^ *+' conftest.er1 >conftest.err
11386 cat conftest.err >&5
11387 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11388 (exit $ac_status); } &&
11389 { ac_try='test -z "$ac_c_werror_flag"
11390 || test ! -s conftest.err'
11391 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11392 (eval $ac_try) 2>&5
11394 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11395 (exit $ac_status); }; } &&
11396 { ac_try='test -s conftest$ac_exeext'
11397 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11398 (eval $ac_try) 2>&5
11400 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11401 (exit $ac_status); }; }; then
11402 eval "$as_ac_var=yes"
11404 echo "$as_me: failed program was:" >&5
11405 sed 's/^/| /' conftest.$ac_ext >&5
11407 eval "$as_ac_var=no"
11409 rm -f conftest.err conftest.$ac_objext \
11410 conftest$ac_exeext conftest.$ac_ext
11412 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
11413 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
11414 if test `eval echo '${'$as_ac_var'}'` = yes; then
11415 cat >>confdefs.h <<_ACEOF
11416 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
11420 cat >>confdefs.h <<\_ACEOF
11421 #define HAVE_GETHOSTBYNAME_R 1
11424 # There are two different kinds of gethostbyname_r.
11425 # We look for the one that returns `int'.
11426 # Hopefully this check is robust enough.
11427 cat >conftest.$ac_ext <<_ACEOF
11430 cat confdefs.h >>conftest.$ac_ext
11431 cat >>conftest.$ac_ext <<_ACEOF
11432 /* end confdefs.h. */
11436 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
11437 $EGREP "int.*gethostbyname_r" >/dev/null 2>&1; then
11440 cat >>confdefs.h <<\_ACEOF
11441 #define GETHOSTBYNAME_R_RETURNS_INT 1
11448 case " $GCINCS " in
11449 *" -D_REENTRANT "*) ;;
11451 echo "$as_me:$LINENO: checking whether gethostbyname_r declaration requires -D_REENTRANT" >&5
11452 echo $ECHO_N "checking whether gethostbyname_r declaration requires -D_REENTRANT... $ECHO_C" >&6
11453 if test "${libjava_cv_gethostbyname_r_needs_reentrant+set}" = set; then
11454 echo $ECHO_N "(cached) $ECHO_C" >&6
11457 ac_cpp='$CXXCPP $CPPFLAGS'
11458 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
11459 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
11460 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
11462 cat >conftest.$ac_ext <<_ACEOF
11465 cat confdefs.h >>conftest.$ac_ext
11466 cat >>conftest.$ac_ext <<_ACEOF
11467 /* end confdefs.h. */
11472 gethostbyname_r("", 0, 0);
11477 rm -f conftest.$ac_objext
11478 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
11479 (eval $ac_compile) 2>conftest.er1
11481 grep -v '^ *+' conftest.er1 >conftest.err
11483 cat conftest.err >&5
11484 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11485 (exit $ac_status); } &&
11486 { ac_try='test -z "$ac_cxx_werror_flag"
11487 || test ! -s conftest.err'
11488 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11489 (eval $ac_try) 2>&5
11491 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11492 (exit $ac_status); }; } &&
11493 { ac_try='test -s conftest.$ac_objext'
11494 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11495 (eval $ac_try) 2>&5
11497 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11498 (exit $ac_status); }; }; then
11499 libjava_cv_gethostbyname_r_needs_reentrant=no
11501 echo "$as_me: failed program was:" >&5
11502 sed 's/^/| /' conftest.$ac_ext >&5
11504 CPPFLAGS_SAVE="$CPPFLAGS"
11505 CPPFLAGS="$CPPFLAGS -D_REENTRANT"
11506 cat >conftest.$ac_ext <<_ACEOF
11509 cat confdefs.h >>conftest.$ac_ext
11510 cat >>conftest.$ac_ext <<_ACEOF
11511 /* end confdefs.h. */
11516 gethostbyname_r("", 0, 0);
11521 rm -f conftest.$ac_objext
11522 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
11523 (eval $ac_compile) 2>conftest.er1
11525 grep -v '^ *+' conftest.er1 >conftest.err
11527 cat conftest.err >&5
11528 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11529 (exit $ac_status); } &&
11530 { ac_try='test -z "$ac_cxx_werror_flag"
11531 || test ! -s conftest.err'
11532 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11533 (eval $ac_try) 2>&5
11535 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11536 (exit $ac_status); }; } &&
11537 { ac_try='test -s conftest.$ac_objext'
11538 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11539 (eval $ac_try) 2>&5
11541 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11542 (exit $ac_status); }; }; then
11543 libjava_cv_gethostbyname_r_needs_reentrant=yes
11545 echo "$as_me: failed program was:" >&5
11546 sed 's/^/| /' conftest.$ac_ext >&5
11548 libjava_cv_gethostbyname_r_needs_reentrant=fail
11550 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
11551 CPPFLAGS="$CPPFLAGS_SAVE"
11554 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
11556 ac_cpp='$CPP $CPPFLAGS'
11557 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
11558 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
11559 ac_compiler_gnu=$ac_cv_c_compiler_gnu
11563 echo "$as_me:$LINENO: result: $libjava_cv_gethostbyname_r_needs_reentrant" >&5
11564 echo "${ECHO_T}$libjava_cv_gethostbyname_r_needs_reentrant" >&6
11565 if test "x$libjava_cv_gethostbyname_r_needs_reentrant" = xyes; then
11567 cat >>confdefs.h <<\_ACEOF
11568 #define _REENTRANT 1
11575 echo "$as_me:$LINENO: checking for struct hostent_data" >&5
11576 echo $ECHO_N "checking for struct hostent_data... $ECHO_C" >&6
11577 if test "${libjava_cv_struct_hostent_data+set}" = set; then
11578 echo $ECHO_N "(cached) $ECHO_C" >&6
11580 cat >conftest.$ac_ext <<_ACEOF
11583 cat confdefs.h >>conftest.$ac_ext
11584 cat >>conftest.$ac_ext <<_ACEOF
11585 /* end confdefs.h. */
11587 #if GETHOSTBYNAME_R_NEEDS_REENTRANT && !defined(_REENTRANT)
11588 # define _REENTRANT 1
11594 struct hostent_data data;
11599 rm -f conftest.$ac_objext
11600 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
11601 (eval $ac_compile) 2>conftest.er1
11603 grep -v '^ *+' conftest.er1 >conftest.err
11605 cat conftest.err >&5
11606 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11607 (exit $ac_status); } &&
11608 { ac_try='test -z "$ac_c_werror_flag"
11609 || test ! -s conftest.err'
11610 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11611 (eval $ac_try) 2>&5
11613 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11614 (exit $ac_status); }; } &&
11615 { ac_try='test -s conftest.$ac_objext'
11616 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11617 (eval $ac_try) 2>&5
11619 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11620 (exit $ac_status); }; }; then
11621 libjava_cv_struct_hostent_data=yes
11623 echo "$as_me: failed program was:" >&5
11624 sed 's/^/| /' conftest.$ac_ext >&5
11626 libjava_cv_struct_hostent_data=no
11628 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
11630 echo "$as_me:$LINENO: result: $libjava_cv_struct_hostent_data" >&5
11631 echo "${ECHO_T}$libjava_cv_struct_hostent_data" >&6
11632 if test "x$libjava_cv_struct_hostent_data" = xyes; then
11634 cat >>confdefs.h <<\_ACEOF
11635 #define HAVE_STRUCT_HOSTENT_DATA 1
11644 # FIXME: libjava source code expects to find a prototype for
11645 # gethostbyaddr_r in netdb.h. The outer check ensures that
11646 # HAVE_GETHOSTBYADDR_R will not be defined if the prototype fails
11647 # to exist where expected. (The root issue: AC_CHECK_FUNCS assumes C
11648 # linkage check is enough, yet C++ code requires proper prototypes.)
11649 cat >conftest.$ac_ext <<_ACEOF
11652 cat confdefs.h >>conftest.$ac_ext
11653 cat >>conftest.$ac_ext <<_ACEOF
11654 /* end confdefs.h. */
11658 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
11659 $EGREP "gethostbyaddr_r" >/dev/null 2>&1; then
11662 for ac_func in gethostbyaddr_r
11664 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
11665 echo "$as_me:$LINENO: checking for $ac_func" >&5
11666 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
11667 if eval "test \"\${$as_ac_var+set}\" = set"; then
11668 echo $ECHO_N "(cached) $ECHO_C" >&6
11670 if test x$gcc_no_link = xyes; then
11671 { { echo "$as_me:$LINENO: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&5
11672 echo "$as_me: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&2;}
11673 { (exit 1); exit 1; }; }
11675 cat >conftest.$ac_ext <<_ACEOF
11678 cat confdefs.h >>conftest.$ac_ext
11679 cat >>conftest.$ac_ext <<_ACEOF
11680 /* end confdefs.h. */
11681 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
11682 For example, HP-UX 11i <limits.h> declares gettimeofday. */
11683 #define $ac_func innocuous_$ac_func
11685 /* System header to define __stub macros and hopefully few prototypes,
11686 which can conflict with char $ac_func (); below.
11687 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
11688 <limits.h> exists even on freestanding compilers. */
11691 # include <limits.h>
11693 # include <assert.h>
11698 /* Override any gcc2 internal prototype to avoid an error. */
11703 /* We use char because int might match the return type of a gcc2
11704 builtin and then its argument prototype would still apply. */
11706 /* The GNU C library defines this for functions which it implements
11707 to always fail with ENOSYS. Some functions are actually named
11708 something starting with __ and the normal name is an alias. */
11709 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
11712 char (*f) () = $ac_func;
11721 return f != $ac_func;
11726 rm -f conftest.$ac_objext conftest$ac_exeext
11727 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
11728 (eval $ac_link) 2>conftest.er1
11730 grep -v '^ *+' conftest.er1 >conftest.err
11732 cat conftest.err >&5
11733 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11734 (exit $ac_status); } &&
11735 { ac_try='test -z "$ac_c_werror_flag"
11736 || test ! -s conftest.err'
11737 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11738 (eval $ac_try) 2>&5
11740 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11741 (exit $ac_status); }; } &&
11742 { ac_try='test -s conftest$ac_exeext'
11743 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11744 (eval $ac_try) 2>&5
11746 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11747 (exit $ac_status); }; }; then
11748 eval "$as_ac_var=yes"
11750 echo "$as_me: failed program was:" >&5
11751 sed 's/^/| /' conftest.$ac_ext >&5
11753 eval "$as_ac_var=no"
11755 rm -f conftest.err conftest.$ac_objext \
11756 conftest$ac_exeext conftest.$ac_ext
11758 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
11759 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
11760 if test `eval echo '${'$as_ac_var'}'` = yes; then
11761 cat >>confdefs.h <<_ACEOF
11762 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
11766 cat >>confdefs.h <<\_ACEOF
11767 #define HAVE_GETHOSTBYADDR_R 1
11770 # There are two different kinds of gethostbyaddr_r.
11771 # We look for the one that returns `int'.
11772 # Hopefully this check is robust enough.
11773 cat >conftest.$ac_ext <<_ACEOF
11776 cat confdefs.h >>conftest.$ac_ext
11777 cat >>conftest.$ac_ext <<_ACEOF
11778 /* end confdefs.h. */
11782 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
11783 $EGREP "int.*gethostbyaddr_r" >/dev/null 2>&1; then
11786 cat >>confdefs.h <<\_ACEOF
11787 #define GETHOSTBYADDR_R_RETURNS_INT 1
11801 for ac_func in gethostname
11803 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
11804 echo "$as_me:$LINENO: checking for $ac_func" >&5
11805 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
11806 if eval "test \"\${$as_ac_var+set}\" = set"; then
11807 echo $ECHO_N "(cached) $ECHO_C" >&6
11809 if test x$gcc_no_link = xyes; then
11810 { { echo "$as_me:$LINENO: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&5
11811 echo "$as_me: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&2;}
11812 { (exit 1); exit 1; }; }
11814 cat >conftest.$ac_ext <<_ACEOF
11817 cat confdefs.h >>conftest.$ac_ext
11818 cat >>conftest.$ac_ext <<_ACEOF
11819 /* end confdefs.h. */
11820 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
11821 For example, HP-UX 11i <limits.h> declares gettimeofday. */
11822 #define $ac_func innocuous_$ac_func
11824 /* System header to define __stub macros and hopefully few prototypes,
11825 which can conflict with char $ac_func (); below.
11826 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
11827 <limits.h> exists even on freestanding compilers. */
11830 # include <limits.h>
11832 # include <assert.h>
11837 /* Override any gcc2 internal prototype to avoid an error. */
11842 /* We use char because int might match the return type of a gcc2
11843 builtin and then its argument prototype would still apply. */
11845 /* The GNU C library defines this for functions which it implements
11846 to always fail with ENOSYS. Some functions are actually named
11847 something starting with __ and the normal name is an alias. */
11848 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
11851 char (*f) () = $ac_func;
11860 return f != $ac_func;
11865 rm -f conftest.$ac_objext conftest$ac_exeext
11866 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
11867 (eval $ac_link) 2>conftest.er1
11869 grep -v '^ *+' conftest.er1 >conftest.err
11871 cat conftest.err >&5
11872 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11873 (exit $ac_status); } &&
11874 { ac_try='test -z "$ac_c_werror_flag"
11875 || test ! -s conftest.err'
11876 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11877 (eval $ac_try) 2>&5
11879 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11880 (exit $ac_status); }; } &&
11881 { ac_try='test -s conftest$ac_exeext'
11882 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11883 (eval $ac_try) 2>&5
11885 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11886 (exit $ac_status); }; }; then
11887 eval "$as_ac_var=yes"
11889 echo "$as_me: failed program was:" >&5
11890 sed 's/^/| /' conftest.$ac_ext >&5
11892 eval "$as_ac_var=no"
11894 rm -f conftest.err conftest.$ac_objext \
11895 conftest$ac_exeext conftest.$ac_ext
11897 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
11898 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
11899 if test `eval echo '${'$as_ac_var'}'` = yes; then
11900 cat >>confdefs.h <<_ACEOF
11901 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
11905 cat >>confdefs.h <<\_ACEOF
11906 #define HAVE_GETHOSTNAME 1
11909 cat >conftest.$ac_ext <<_ACEOF
11912 cat confdefs.h >>conftest.$ac_ext
11913 cat >>conftest.$ac_ext <<_ACEOF
11914 /* end confdefs.h. */
11915 #include <unistd.h>
11918 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
11919 $EGREP "gethostname" >/dev/null 2>&1; then
11922 cat >>confdefs.h <<\_ACEOF
11923 #define HAVE_GETHOSTNAME_DECL 1
11934 for ac_func in usleep
11936 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
11937 echo "$as_me:$LINENO: checking for $ac_func" >&5
11938 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
11939 if eval "test \"\${$as_ac_var+set}\" = set"; then
11940 echo $ECHO_N "(cached) $ECHO_C" >&6
11942 if test x$gcc_no_link = xyes; then
11943 { { echo "$as_me:$LINENO: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&5
11944 echo "$as_me: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&2;}
11945 { (exit 1); exit 1; }; }
11947 cat >conftest.$ac_ext <<_ACEOF
11950 cat confdefs.h >>conftest.$ac_ext
11951 cat >>conftest.$ac_ext <<_ACEOF
11952 /* end confdefs.h. */
11953 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
11954 For example, HP-UX 11i <limits.h> declares gettimeofday. */
11955 #define $ac_func innocuous_$ac_func
11957 /* System header to define __stub macros and hopefully few prototypes,
11958 which can conflict with char $ac_func (); below.
11959 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
11960 <limits.h> exists even on freestanding compilers. */
11963 # include <limits.h>
11965 # include <assert.h>
11970 /* Override any gcc2 internal prototype to avoid an error. */
11975 /* We use char because int might match the return type of a gcc2
11976 builtin and then its argument prototype would still apply. */
11978 /* The GNU C library defines this for functions which it implements
11979 to always fail with ENOSYS. Some functions are actually named
11980 something starting with __ and the normal name is an alias. */
11981 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
11984 char (*f) () = $ac_func;
11993 return f != $ac_func;
11998 rm -f conftest.$ac_objext conftest$ac_exeext
11999 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
12000 (eval $ac_link) 2>conftest.er1
12002 grep -v '^ *+' conftest.er1 >conftest.err
12004 cat conftest.err >&5
12005 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12006 (exit $ac_status); } &&
12007 { ac_try='test -z "$ac_c_werror_flag"
12008 || test ! -s conftest.err'
12009 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12010 (eval $ac_try) 2>&5
12012 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12013 (exit $ac_status); }; } &&
12014 { ac_try='test -s conftest$ac_exeext'
12015 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12016 (eval $ac_try) 2>&5
12018 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12019 (exit $ac_status); }; }; then
12020 eval "$as_ac_var=yes"
12022 echo "$as_me: failed program was:" >&5
12023 sed 's/^/| /' conftest.$ac_ext >&5
12025 eval "$as_ac_var=no"
12027 rm -f conftest.err conftest.$ac_objext \
12028 conftest$ac_exeext conftest.$ac_ext
12030 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
12031 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
12032 if test `eval echo '${'$as_ac_var'}'` = yes; then
12033 cat >>confdefs.h <<_ACEOF
12034 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
12037 cat >conftest.$ac_ext <<_ACEOF
12040 cat confdefs.h >>conftest.$ac_ext
12041 cat >>conftest.$ac_ext <<_ACEOF
12042 /* end confdefs.h. */
12043 #include <unistd.h>
12046 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
12047 $EGREP "usleep" >/dev/null 2>&1; then
12050 cat >>confdefs.h <<\_ACEOF
12051 #define HAVE_USLEEP_DECL 1
12061 # Look for these functions in the thread library, but only bother
12062 # if using POSIX threads.
12063 if test "$THREADS" = posix; then
12065 LIBS="$LIBS $THREADLIBS"
12066 # Some POSIX thread systems don't have pthread_mutexattr_settype.
12070 for ac_func in pthread_mutexattr_settype pthread_mutexattr_setkind_np
12072 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
12073 echo "$as_me:$LINENO: checking for $ac_func" >&5
12074 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
12075 if eval "test \"\${$as_ac_var+set}\" = set"; then
12076 echo $ECHO_N "(cached) $ECHO_C" >&6
12078 if test x$gcc_no_link = xyes; then
12079 { { echo "$as_me:$LINENO: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&5
12080 echo "$as_me: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&2;}
12081 { (exit 1); exit 1; }; }
12083 cat >conftest.$ac_ext <<_ACEOF
12086 cat confdefs.h >>conftest.$ac_ext
12087 cat >>conftest.$ac_ext <<_ACEOF
12088 /* end confdefs.h. */
12089 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
12090 For example, HP-UX 11i <limits.h> declares gettimeofday. */
12091 #define $ac_func innocuous_$ac_func
12093 /* System header to define __stub macros and hopefully few prototypes,
12094 which can conflict with char $ac_func (); below.
12095 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
12096 <limits.h> exists even on freestanding compilers. */
12099 # include <limits.h>
12101 # include <assert.h>
12106 /* Override any gcc2 internal prototype to avoid an error. */
12111 /* We use char because int might match the return type of a gcc2
12112 builtin and then its argument prototype would still apply. */
12114 /* The GNU C library defines this for functions which it implements
12115 to always fail with ENOSYS. Some functions are actually named
12116 something starting with __ and the normal name is an alias. */
12117 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
12120 char (*f) () = $ac_func;
12129 return f != $ac_func;
12134 rm -f conftest.$ac_objext conftest$ac_exeext
12135 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
12136 (eval $ac_link) 2>conftest.er1
12138 grep -v '^ *+' conftest.er1 >conftest.err
12140 cat conftest.err >&5
12141 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12142 (exit $ac_status); } &&
12143 { ac_try='test -z "$ac_c_werror_flag"
12144 || test ! -s conftest.err'
12145 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12146 (eval $ac_try) 2>&5
12148 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12149 (exit $ac_status); }; } &&
12150 { ac_try='test -s conftest$ac_exeext'
12151 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12152 (eval $ac_try) 2>&5
12154 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12155 (exit $ac_status); }; }; then
12156 eval "$as_ac_var=yes"
12158 echo "$as_me: failed program was:" >&5
12159 sed 's/^/| /' conftest.$ac_ext >&5
12161 eval "$as_ac_var=no"
12163 rm -f conftest.err conftest.$ac_objext \
12164 conftest$ac_exeext conftest.$ac_ext
12166 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
12167 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
12168 if test `eval echo '${'$as_ac_var'}'` = yes; then
12169 cat >>confdefs.h <<_ACEOF
12170 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
12177 # Look for sched_yield. Up to Solaris 2.6, it is in libposix4, since
12178 # Solaris 7 the name librt is preferred.
12180 for ac_func in sched_yield
12182 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
12183 echo "$as_me:$LINENO: checking for $ac_func" >&5
12184 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
12185 if eval "test \"\${$as_ac_var+set}\" = set"; then
12186 echo $ECHO_N "(cached) $ECHO_C" >&6
12188 if test x$gcc_no_link = xyes; then
12189 { { echo "$as_me:$LINENO: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&5
12190 echo "$as_me: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&2;}
12191 { (exit 1); exit 1; }; }
12193 cat >conftest.$ac_ext <<_ACEOF
12196 cat confdefs.h >>conftest.$ac_ext
12197 cat >>conftest.$ac_ext <<_ACEOF
12198 /* end confdefs.h. */
12199 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
12200 For example, HP-UX 11i <limits.h> declares gettimeofday. */
12201 #define $ac_func innocuous_$ac_func
12203 /* System header to define __stub macros and hopefully few prototypes,
12204 which can conflict with char $ac_func (); below.
12205 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
12206 <limits.h> exists even on freestanding compilers. */
12209 # include <limits.h>
12211 # include <assert.h>
12216 /* Override any gcc2 internal prototype to avoid an error. */
12221 /* We use char because int might match the return type of a gcc2
12222 builtin and then its argument prototype would still apply. */
12224 /* The GNU C library defines this for functions which it implements
12225 to always fail with ENOSYS. Some functions are actually named
12226 something starting with __ and the normal name is an alias. */
12227 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
12230 char (*f) () = $ac_func;
12239 return f != $ac_func;
12244 rm -f conftest.$ac_objext conftest$ac_exeext
12245 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
12246 (eval $ac_link) 2>conftest.er1
12248 grep -v '^ *+' conftest.er1 >conftest.err
12250 cat conftest.err >&5
12251 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12252 (exit $ac_status); } &&
12253 { ac_try='test -z "$ac_c_werror_flag"
12254 || test ! -s conftest.err'
12255 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12256 (eval $ac_try) 2>&5
12258 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12259 (exit $ac_status); }; } &&
12260 { ac_try='test -s conftest$ac_exeext'
12261 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12262 (eval $ac_try) 2>&5
12264 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12265 (exit $ac_status); }; }; then
12266 eval "$as_ac_var=yes"
12268 echo "$as_me: failed program was:" >&5
12269 sed 's/^/| /' conftest.$ac_ext >&5
12271 eval "$as_ac_var=no"
12273 rm -f conftest.err conftest.$ac_objext \
12274 conftest$ac_exeext conftest.$ac_ext
12276 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
12277 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
12278 if test `eval echo '${'$as_ac_var'}'` = yes; then
12279 cat >>confdefs.h <<_ACEOF
12280 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
12285 echo "$as_me:$LINENO: checking for sched_yield in -lrt" >&5
12286 echo $ECHO_N "checking for sched_yield in -lrt... $ECHO_C" >&6
12287 if test "${ac_cv_lib_rt_sched_yield+set}" = set; then
12288 echo $ECHO_N "(cached) $ECHO_C" >&6
12290 ac_check_lib_save_LIBS=$LIBS
12292 if test x$gcc_no_link = xyes; then
12293 { { echo "$as_me:$LINENO: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&5
12294 echo "$as_me: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&2;}
12295 { (exit 1); exit 1; }; }
12297 cat >conftest.$ac_ext <<_ACEOF
12300 cat confdefs.h >>conftest.$ac_ext
12301 cat >>conftest.$ac_ext <<_ACEOF
12302 /* end confdefs.h. */
12304 /* Override any gcc2 internal prototype to avoid an error. */
12308 /* We use char because int might match the return type of a gcc2
12309 builtin and then its argument prototype would still apply. */
12310 char sched_yield ();
12319 rm -f conftest.$ac_objext conftest$ac_exeext
12320 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
12321 (eval $ac_link) 2>conftest.er1
12323 grep -v '^ *+' conftest.er1 >conftest.err
12325 cat conftest.err >&5
12326 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12327 (exit $ac_status); } &&
12328 { ac_try='test -z "$ac_c_werror_flag"
12329 || test ! -s conftest.err'
12330 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12331 (eval $ac_try) 2>&5
12333 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12334 (exit $ac_status); }; } &&
12335 { ac_try='test -s conftest$ac_exeext'
12336 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12337 (eval $ac_try) 2>&5
12339 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12340 (exit $ac_status); }; }; then
12341 ac_cv_lib_rt_sched_yield=yes
12343 echo "$as_me: failed program was:" >&5
12344 sed 's/^/| /' conftest.$ac_ext >&5
12346 ac_cv_lib_rt_sched_yield=no
12348 rm -f conftest.err conftest.$ac_objext \
12349 conftest$ac_exeext conftest.$ac_ext
12350 LIBS=$ac_check_lib_save_LIBS
12352 echo "$as_me:$LINENO: result: $ac_cv_lib_rt_sched_yield" >&5
12353 echo "${ECHO_T}$ac_cv_lib_rt_sched_yield" >&6
12354 if test $ac_cv_lib_rt_sched_yield = yes; then
12356 cat >>confdefs.h <<\_ACEOF
12357 #define HAVE_SCHED_YIELD 1
12360 THREADLIBS="$THREADLIBS -lrt"
12361 THREADSPEC="$THREADSPEC -lrt"
12364 echo "$as_me:$LINENO: checking for sched_yield in -lposix4" >&5
12365 echo $ECHO_N "checking for sched_yield in -lposix4... $ECHO_C" >&6
12366 if test "${ac_cv_lib_posix4_sched_yield+set}" = set; then
12367 echo $ECHO_N "(cached) $ECHO_C" >&6
12369 ac_check_lib_save_LIBS=$LIBS
12370 LIBS="-lposix4 $LIBS"
12371 if test x$gcc_no_link = xyes; then
12372 { { echo "$as_me:$LINENO: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&5
12373 echo "$as_me: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&2;}
12374 { (exit 1); exit 1; }; }
12376 cat >conftest.$ac_ext <<_ACEOF
12379 cat confdefs.h >>conftest.$ac_ext
12380 cat >>conftest.$ac_ext <<_ACEOF
12381 /* end confdefs.h. */
12383 /* Override any gcc2 internal prototype to avoid an error. */
12387 /* We use char because int might match the return type of a gcc2
12388 builtin and then its argument prototype would still apply. */
12389 char sched_yield ();
12398 rm -f conftest.$ac_objext conftest$ac_exeext
12399 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
12400 (eval $ac_link) 2>conftest.er1
12402 grep -v '^ *+' conftest.er1 >conftest.err
12404 cat conftest.err >&5
12405 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12406 (exit $ac_status); } &&
12407 { ac_try='test -z "$ac_c_werror_flag"
12408 || test ! -s conftest.err'
12409 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12410 (eval $ac_try) 2>&5
12412 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12413 (exit $ac_status); }; } &&
12414 { ac_try='test -s conftest$ac_exeext'
12415 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12416 (eval $ac_try) 2>&5
12418 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12419 (exit $ac_status); }; }; then
12420 ac_cv_lib_posix4_sched_yield=yes
12422 echo "$as_me: failed program was:" >&5
12423 sed 's/^/| /' conftest.$ac_ext >&5
12425 ac_cv_lib_posix4_sched_yield=no
12427 rm -f conftest.err conftest.$ac_objext \
12428 conftest$ac_exeext conftest.$ac_ext
12429 LIBS=$ac_check_lib_save_LIBS
12431 echo "$as_me:$LINENO: result: $ac_cv_lib_posix4_sched_yield" >&5
12432 echo "${ECHO_T}$ac_cv_lib_posix4_sched_yield" >&6
12433 if test $ac_cv_lib_posix4_sched_yield = yes; then
12435 cat >>confdefs.h <<\_ACEOF
12436 #define HAVE_SCHED_YIELD 1
12439 THREADLIBS="$THREADLIBS -lposix4"
12440 THREADSPEC="$THREADSPEC -lposix4"
12449 echo "$as_me:$LINENO: checking for clock_gettime in -lrt" >&5
12450 echo $ECHO_N "checking for clock_gettime in -lrt... $ECHO_C" >&6
12451 if test "${ac_cv_lib_rt_clock_gettime+set}" = set; then
12452 echo $ECHO_N "(cached) $ECHO_C" >&6
12454 ac_check_lib_save_LIBS=$LIBS
12456 if test x$gcc_no_link = xyes; then
12457 { { echo "$as_me:$LINENO: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&5
12458 echo "$as_me: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&2;}
12459 { (exit 1); exit 1; }; }
12461 cat >conftest.$ac_ext <<_ACEOF
12464 cat confdefs.h >>conftest.$ac_ext
12465 cat >>conftest.$ac_ext <<_ACEOF
12466 /* end confdefs.h. */
12468 /* Override any gcc2 internal prototype to avoid an error. */
12472 /* We use char because int might match the return type of a gcc2
12473 builtin and then its argument prototype would still apply. */
12474 char clock_gettime ();
12483 rm -f conftest.$ac_objext conftest$ac_exeext
12484 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
12485 (eval $ac_link) 2>conftest.er1
12487 grep -v '^ *+' conftest.er1 >conftest.err
12489 cat conftest.err >&5
12490 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12491 (exit $ac_status); } &&
12492 { ac_try='test -z "$ac_c_werror_flag"
12493 || test ! -s conftest.err'
12494 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12495 (eval $ac_try) 2>&5
12497 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12498 (exit $ac_status); }; } &&
12499 { ac_try='test -s conftest$ac_exeext'
12500 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12501 (eval $ac_try) 2>&5
12503 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12504 (exit $ac_status); }; }; then
12505 ac_cv_lib_rt_clock_gettime=yes
12507 echo "$as_me: failed program was:" >&5
12508 sed 's/^/| /' conftest.$ac_ext >&5
12510 ac_cv_lib_rt_clock_gettime=no
12512 rm -f conftest.err conftest.$ac_objext \
12513 conftest$ac_exeext conftest.$ac_ext
12514 LIBS=$ac_check_lib_save_LIBS
12516 echo "$as_me:$LINENO: result: $ac_cv_lib_rt_clock_gettime" >&5
12517 echo "${ECHO_T}$ac_cv_lib_rt_clock_gettime" >&6
12518 if test $ac_cv_lib_rt_clock_gettime = yes; then
12521 cat >>confdefs.h <<\_ACEOF
12522 #define HAVE_CLOCK_GETTIME 1
12525 case "$THREADSPEC" in
12528 THREADSPEC="$THREADSPEC -lrt"
12529 THREADLIBS="$THREADLIBS -lrt"
12537 # We can save a little space at runtime if the mutex has m_count
12538 # or __m_count. This is a nice hack for Linux.
12539 cat >conftest.$ac_ext <<_ACEOF
12542 cat confdefs.h >>conftest.$ac_ext
12543 cat >>conftest.$ac_ext <<_ACEOF
12544 /* end confdefs.h. */
12545 #include <pthread.h>
12550 extern pthread_mutex_t *mutex; int q = mutex->m_count;
12556 rm -f conftest.$ac_objext
12557 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
12558 (eval $ac_compile) 2>conftest.er1
12560 grep -v '^ *+' conftest.er1 >conftest.err
12562 cat conftest.err >&5
12563 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12564 (exit $ac_status); } &&
12565 { ac_try='test -z "$ac_c_werror_flag"
12566 || test ! -s conftest.err'
12567 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12568 (eval $ac_try) 2>&5
12570 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12571 (exit $ac_status); }; } &&
12572 { ac_try='test -s conftest.$ac_objext'
12573 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12574 (eval $ac_try) 2>&5
12576 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12577 (exit $ac_status); }; }; then
12579 cat >>confdefs.h <<\_ACEOF
12580 #define PTHREAD_MUTEX_HAVE_M_COUNT 1
12584 echo "$as_me: failed program was:" >&5
12585 sed 's/^/| /' conftest.$ac_ext >&5
12588 cat >conftest.$ac_ext <<_ACEOF
12591 cat confdefs.h >>conftest.$ac_ext
12592 cat >>conftest.$ac_ext <<_ACEOF
12593 /* end confdefs.h. */
12594 #include <pthread.h>
12599 extern pthread_mutex_t *mutex; int q = mutex->__m_count;
12605 rm -f conftest.$ac_objext
12606 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
12607 (eval $ac_compile) 2>conftest.er1
12609 grep -v '^ *+' conftest.er1 >conftest.err
12611 cat conftest.err >&5
12612 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12613 (exit $ac_status); } &&
12614 { ac_try='test -z "$ac_c_werror_flag"
12615 || test ! -s conftest.err'
12616 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12617 (eval $ac_try) 2>&5
12619 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12620 (exit $ac_status); }; } &&
12621 { ac_try='test -s conftest.$ac_objext'
12622 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12623 (eval $ac_try) 2>&5
12625 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12626 (exit $ac_status); }; }; then
12628 cat >>confdefs.h <<\_ACEOF
12629 #define PTHREAD_MUTEX_HAVE___M_COUNT 1
12633 echo "$as_me: failed program was:" >&5
12634 sed 's/^/| /' conftest.$ac_ext >&5
12637 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
12639 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
12642 # We require a way to get the time.
12647 for ac_func in gettimeofday time ftime
12649 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
12650 echo "$as_me:$LINENO: checking for $ac_func" >&5
12651 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
12652 if eval "test \"\${$as_ac_var+set}\" = set"; then
12653 echo $ECHO_N "(cached) $ECHO_C" >&6
12655 if test x$gcc_no_link = xyes; then
12656 { { echo "$as_me:$LINENO: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&5
12657 echo "$as_me: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&2;}
12658 { (exit 1); exit 1; }; }
12660 cat >conftest.$ac_ext <<_ACEOF
12663 cat confdefs.h >>conftest.$ac_ext
12664 cat >>conftest.$ac_ext <<_ACEOF
12665 /* end confdefs.h. */
12666 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
12667 For example, HP-UX 11i <limits.h> declares gettimeofday. */
12668 #define $ac_func innocuous_$ac_func
12670 /* System header to define __stub macros and hopefully few prototypes,
12671 which can conflict with char $ac_func (); below.
12672 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
12673 <limits.h> exists even on freestanding compilers. */
12676 # include <limits.h>
12678 # include <assert.h>
12683 /* Override any gcc2 internal prototype to avoid an error. */
12688 /* We use char because int might match the return type of a gcc2
12689 builtin and then its argument prototype would still apply. */
12691 /* The GNU C library defines this for functions which it implements
12692 to always fail with ENOSYS. Some functions are actually named
12693 something starting with __ and the normal name is an alias. */
12694 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
12697 char (*f) () = $ac_func;
12706 return f != $ac_func;
12711 rm -f conftest.$ac_objext conftest$ac_exeext
12712 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
12713 (eval $ac_link) 2>conftest.er1
12715 grep -v '^ *+' conftest.er1 >conftest.err
12717 cat conftest.err >&5
12718 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12719 (exit $ac_status); } &&
12720 { ac_try='test -z "$ac_c_werror_flag"
12721 || test ! -s conftest.err'
12722 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12723 (eval $ac_try) 2>&5
12725 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12726 (exit $ac_status); }; } &&
12727 { ac_try='test -s conftest$ac_exeext'
12728 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12729 (eval $ac_try) 2>&5
12731 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12732 (exit $ac_status); }; }; then
12733 eval "$as_ac_var=yes"
12735 echo "$as_me: failed program was:" >&5
12736 sed 's/^/| /' conftest.$ac_ext >&5
12738 eval "$as_ac_var=no"
12740 rm -f conftest.err conftest.$ac_objext \
12741 conftest$ac_exeext conftest.$ac_ext
12743 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
12744 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
12745 if test `eval echo '${'$as_ac_var'}'` = yes; then
12746 cat >>confdefs.h <<_ACEOF
12747 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
12753 if test "$time_found" = no; then
12754 { { echo "$as_me:$LINENO: error: no function found to get the time" >&5
12755 echo "$as_me: error: no function found to get the time" >&2;}
12756 { (exit 1); exit 1; }; }
12760 for ac_func in memmove
12762 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
12763 echo "$as_me:$LINENO: checking for $ac_func" >&5
12764 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
12765 if eval "test \"\${$as_ac_var+set}\" = set"; then
12766 echo $ECHO_N "(cached) $ECHO_C" >&6
12768 if test x$gcc_no_link = xyes; then
12769 { { echo "$as_me:$LINENO: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&5
12770 echo "$as_me: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&2;}
12771 { (exit 1); exit 1; }; }
12773 cat >conftest.$ac_ext <<_ACEOF
12776 cat confdefs.h >>conftest.$ac_ext
12777 cat >>conftest.$ac_ext <<_ACEOF
12778 /* end confdefs.h. */
12779 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
12780 For example, HP-UX 11i <limits.h> declares gettimeofday. */
12781 #define $ac_func innocuous_$ac_func
12783 /* System header to define __stub macros and hopefully few prototypes,
12784 which can conflict with char $ac_func (); below.
12785 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
12786 <limits.h> exists even on freestanding compilers. */
12789 # include <limits.h>
12791 # include <assert.h>
12796 /* Override any gcc2 internal prototype to avoid an error. */
12801 /* We use char because int might match the return type of a gcc2
12802 builtin and then its argument prototype would still apply. */
12804 /* The GNU C library defines this for functions which it implements
12805 to always fail with ENOSYS. Some functions are actually named
12806 something starting with __ and the normal name is an alias. */
12807 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
12810 char (*f) () = $ac_func;
12819 return f != $ac_func;
12824 rm -f conftest.$ac_objext conftest$ac_exeext
12825 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
12826 (eval $ac_link) 2>conftest.er1
12828 grep -v '^ *+' conftest.er1 >conftest.err
12830 cat conftest.err >&5
12831 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12832 (exit $ac_status); } &&
12833 { ac_try='test -z "$ac_c_werror_flag"
12834 || test ! -s conftest.err'
12835 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12836 (eval $ac_try) 2>&5
12838 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12839 (exit $ac_status); }; } &&
12840 { ac_try='test -s conftest$ac_exeext'
12841 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12842 (eval $ac_try) 2>&5
12844 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12845 (exit $ac_status); }; }; then
12846 eval "$as_ac_var=yes"
12848 echo "$as_me: failed program was:" >&5
12849 sed 's/^/| /' conftest.$ac_ext >&5
12851 eval "$as_ac_var=no"
12853 rm -f conftest.err conftest.$ac_objext \
12854 conftest$ac_exeext conftest.$ac_ext
12856 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
12857 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
12858 if test `eval echo '${'$as_ac_var'}'` = yes; then
12859 cat >>confdefs.h <<_ACEOF
12860 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
12867 # We require memcpy.
12870 for ac_func in memcpy
12872 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
12873 echo "$as_me:$LINENO: checking for $ac_func" >&5
12874 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
12875 if eval "test \"\${$as_ac_var+set}\" = set"; then
12876 echo $ECHO_N "(cached) $ECHO_C" >&6
12878 if test x$gcc_no_link = xyes; then
12879 { { echo "$as_me:$LINENO: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&5
12880 echo "$as_me: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&2;}
12881 { (exit 1); exit 1; }; }
12883 cat >conftest.$ac_ext <<_ACEOF
12886 cat confdefs.h >>conftest.$ac_ext
12887 cat >>conftest.$ac_ext <<_ACEOF
12888 /* end confdefs.h. */
12889 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
12890 For example, HP-UX 11i <limits.h> declares gettimeofday. */
12891 #define $ac_func innocuous_$ac_func
12893 /* System header to define __stub macros and hopefully few prototypes,
12894 which can conflict with char $ac_func (); below.
12895 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
12896 <limits.h> exists even on freestanding compilers. */
12899 # include <limits.h>
12901 # include <assert.h>
12906 /* Override any gcc2 internal prototype to avoid an error. */
12911 /* We use char because int might match the return type of a gcc2
12912 builtin and then its argument prototype would still apply. */
12914 /* The GNU C library defines this for functions which it implements
12915 to always fail with ENOSYS. Some functions are actually named
12916 something starting with __ and the normal name is an alias. */
12917 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
12920 char (*f) () = $ac_func;
12929 return f != $ac_func;
12934 rm -f conftest.$ac_objext conftest$ac_exeext
12935 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
12936 (eval $ac_link) 2>conftest.er1
12938 grep -v '^ *+' conftest.er1 >conftest.err
12940 cat conftest.err >&5
12941 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12942 (exit $ac_status); } &&
12943 { ac_try='test -z "$ac_c_werror_flag"
12944 || test ! -s conftest.err'
12945 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12946 (eval $ac_try) 2>&5
12948 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12949 (exit $ac_status); }; } &&
12950 { ac_try='test -s conftest$ac_exeext'
12951 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12952 (eval $ac_try) 2>&5
12954 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12955 (exit $ac_status); }; }; then
12956 eval "$as_ac_var=yes"
12958 echo "$as_me: failed program was:" >&5
12959 sed 's/^/| /' conftest.$ac_ext >&5
12961 eval "$as_ac_var=no"
12963 rm -f conftest.err conftest.$ac_objext \
12964 conftest$ac_exeext conftest.$ac_ext
12966 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
12967 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
12968 if test `eval echo '${'$as_ac_var'}'` = yes; then
12969 cat >>confdefs.h <<_ACEOF
12970 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
12976 if test "$memcpy_found" = no; then
12977 { { echo "$as_me:$LINENO: error: memcpy is required" >&5
12978 echo "$as_me: error: memcpy is required" >&2;}
12979 { (exit 1); exit 1; }; }
12981 # Do an additional check on dld, HP-UX for example has dlopen in libdld.sl
12982 echo "$as_me:$LINENO: checking for dlopen in -ldl" >&5
12983 echo $ECHO_N "checking for dlopen in -ldl... $ECHO_C" >&6
12984 if test "${ac_cv_lib_dl_dlopen+set}" = set; then
12985 echo $ECHO_N "(cached) $ECHO_C" >&6
12987 ac_check_lib_save_LIBS=$LIBS
12989 if test x$gcc_no_link = xyes; then
12990 { { echo "$as_me:$LINENO: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&5
12991 echo "$as_me: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&2;}
12992 { (exit 1); exit 1; }; }
12994 cat >conftest.$ac_ext <<_ACEOF
12997 cat confdefs.h >>conftest.$ac_ext
12998 cat >>conftest.$ac_ext <<_ACEOF
12999 /* end confdefs.h. */
13001 /* Override any gcc2 internal prototype to avoid an error. */
13005 /* We use char because int might match the return type of a gcc2
13006 builtin and then its argument prototype would still apply. */
13016 rm -f conftest.$ac_objext conftest$ac_exeext
13017 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
13018 (eval $ac_link) 2>conftest.er1
13020 grep -v '^ *+' conftest.er1 >conftest.err
13022 cat conftest.err >&5
13023 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13024 (exit $ac_status); } &&
13025 { ac_try='test -z "$ac_c_werror_flag"
13026 || test ! -s conftest.err'
13027 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13028 (eval $ac_try) 2>&5
13030 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13031 (exit $ac_status); }; } &&
13032 { ac_try='test -s conftest$ac_exeext'
13033 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13034 (eval $ac_try) 2>&5
13036 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13037 (exit $ac_status); }; }; then
13038 ac_cv_lib_dl_dlopen=yes
13040 echo "$as_me: failed program was:" >&5
13041 sed 's/^/| /' conftest.$ac_ext >&5
13043 ac_cv_lib_dl_dlopen=no
13045 rm -f conftest.err conftest.$ac_objext \
13046 conftest$ac_exeext conftest.$ac_ext
13047 LIBS=$ac_check_lib_save_LIBS
13049 echo "$as_me:$LINENO: result: $ac_cv_lib_dl_dlopen" >&5
13050 echo "${ECHO_T}$ac_cv_lib_dl_dlopen" >&6
13051 if test $ac_cv_lib_dl_dlopen = yes; then
13054 cat >>confdefs.h <<\_ACEOF
13055 #define HAVE_DLOPEN 1
13060 echo "$as_me:$LINENO: checking for dlopen in -ldld" >&5
13061 echo $ECHO_N "checking for dlopen in -ldld... $ECHO_C" >&6
13062 if test "${ac_cv_lib_dld_dlopen+set}" = set; then
13063 echo $ECHO_N "(cached) $ECHO_C" >&6
13065 ac_check_lib_save_LIBS=$LIBS
13067 if test x$gcc_no_link = xyes; then
13068 { { echo "$as_me:$LINENO: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&5
13069 echo "$as_me: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&2;}
13070 { (exit 1); exit 1; }; }
13072 cat >conftest.$ac_ext <<_ACEOF
13075 cat confdefs.h >>conftest.$ac_ext
13076 cat >>conftest.$ac_ext <<_ACEOF
13077 /* end confdefs.h. */
13079 /* Override any gcc2 internal prototype to avoid an error. */
13083 /* We use char because int might match the return type of a gcc2
13084 builtin and then its argument prototype would still apply. */
13094 rm -f conftest.$ac_objext conftest$ac_exeext
13095 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
13096 (eval $ac_link) 2>conftest.er1
13098 grep -v '^ *+' conftest.er1 >conftest.err
13100 cat conftest.err >&5
13101 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13102 (exit $ac_status); } &&
13103 { ac_try='test -z "$ac_c_werror_flag"
13104 || test ! -s conftest.err'
13105 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13106 (eval $ac_try) 2>&5
13108 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13109 (exit $ac_status); }; } &&
13110 { ac_try='test -s conftest$ac_exeext'
13111 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13112 (eval $ac_try) 2>&5
13114 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13115 (exit $ac_status); }; }; then
13116 ac_cv_lib_dld_dlopen=yes
13118 echo "$as_me: failed program was:" >&5
13119 sed 's/^/| /' conftest.$ac_ext >&5
13121 ac_cv_lib_dld_dlopen=no
13123 rm -f conftest.err conftest.$ac_objext \
13124 conftest$ac_exeext conftest.$ac_ext
13125 LIBS=$ac_check_lib_save_LIBS
13127 echo "$as_me:$LINENO: result: $ac_cv_lib_dld_dlopen" >&5
13128 echo "${ECHO_T}$ac_cv_lib_dld_dlopen" >&6
13129 if test $ac_cv_lib_dld_dlopen = yes; then
13132 cat >>confdefs.h <<\_ACEOF
13133 #define HAVE_DLOPEN 1
13141 # Some library-finding code we stole from Tcl.
13142 #--------------------------------------------------------------------
13143 # Check for the existence of the -lsocket and -lnsl libraries.
13144 # The order here is important, so that they end up in the right
13145 # order in the command line generated by make. Here are some
13146 # special considerations:
13147 # 1. Use "connect" and "accept" to check for -lsocket, and
13148 # "gethostbyname" to check for -lnsl.
13149 # 2. Use each function name only once: can't redo a check because
13150 # autoconf caches the results of the last check and won't redo it.
13151 # 3. Use -lnsl and -lsocket only if they supply procedures that
13152 # aren't already present in the normal libraries. This is because
13153 # IRIX 5.2 has libraries, but they aren't needed and they're
13154 # bogus: they goof up name resolution if used.
13155 # 4. On some SVR4 systems, can't use -lsocket without -lnsl too.
13156 # To get around this problem, check for both libraries together
13157 # if -lsocket doesn't work by itself.
13158 #--------------------------------------------------------------------
13160 echo "$as_me:$LINENO: checking for socket libraries" >&5
13161 echo $ECHO_N "checking for socket libraries... $ECHO_C" >&6
13162 if test "${gcj_cv_lib_sockets+set}" = set; then
13163 echo $ECHO_N "(cached) $ECHO_C" >&6
13165 gcj_cv_lib_sockets=
13167 unset ac_cv_func_connect
13168 echo "$as_me:$LINENO: checking for connect" >&5
13169 echo $ECHO_N "checking for connect... $ECHO_C" >&6
13170 if test "${ac_cv_func_connect+set}" = set; then
13171 echo $ECHO_N "(cached) $ECHO_C" >&6
13173 if test x$gcc_no_link = xyes; then
13174 { { echo "$as_me:$LINENO: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&5
13175 echo "$as_me: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&2;}
13176 { (exit 1); exit 1; }; }
13178 cat >conftest.$ac_ext <<_ACEOF
13181 cat confdefs.h >>conftest.$ac_ext
13182 cat >>conftest.$ac_ext <<_ACEOF
13183 /* end confdefs.h. */
13184 /* Define connect to an innocuous variant, in case <limits.h> declares connect.
13185 For example, HP-UX 11i <limits.h> declares gettimeofday. */
13186 #define connect innocuous_connect
13188 /* System header to define __stub macros and hopefully few prototypes,
13189 which can conflict with char connect (); below.
13190 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
13191 <limits.h> exists even on freestanding compilers. */
13194 # include <limits.h>
13196 # include <assert.h>
13201 /* Override any gcc2 internal prototype to avoid an error. */
13206 /* We use char because int might match the return type of a gcc2
13207 builtin and then its argument prototype would still apply. */
13209 /* The GNU C library defines this for functions which it implements
13210 to always fail with ENOSYS. Some functions are actually named
13211 something starting with __ and the normal name is an alias. */
13212 #if defined (__stub_connect) || defined (__stub___connect)
13215 char (*f) () = connect;
13224 return f != connect;
13229 rm -f conftest.$ac_objext conftest$ac_exeext
13230 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
13231 (eval $ac_link) 2>conftest.er1
13233 grep -v '^ *+' conftest.er1 >conftest.err
13235 cat conftest.err >&5
13236 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13237 (exit $ac_status); } &&
13238 { ac_try='test -z "$ac_c_werror_flag"
13239 || test ! -s conftest.err'
13240 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13241 (eval $ac_try) 2>&5
13243 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13244 (exit $ac_status); }; } &&
13245 { ac_try='test -s conftest$ac_exeext'
13246 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13247 (eval $ac_try) 2>&5
13249 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13250 (exit $ac_status); }; }; then
13251 ac_cv_func_connect=yes
13253 echo "$as_me: failed program was:" >&5
13254 sed 's/^/| /' conftest.$ac_ext >&5
13256 ac_cv_func_connect=no
13258 rm -f conftest.err conftest.$ac_objext \
13259 conftest$ac_exeext conftest.$ac_ext
13261 echo "$as_me:$LINENO: result: $ac_cv_func_connect" >&5
13262 echo "${ECHO_T}$ac_cv_func_connect" >&6
13263 if test $ac_cv_func_connect = yes; then
13269 if test "$gcj_checkSocket" = 1; then
13270 unset ac_cv_func_connect
13271 echo "$as_me:$LINENO: checking for main in -lsocket" >&5
13272 echo $ECHO_N "checking for main in -lsocket... $ECHO_C" >&6
13273 if test "${ac_cv_lib_socket_main+set}" = set; then
13274 echo $ECHO_N "(cached) $ECHO_C" >&6
13276 ac_check_lib_save_LIBS=$LIBS
13277 LIBS="-lsocket $LIBS"
13278 if test x$gcc_no_link = xyes; then
13279 { { echo "$as_me:$LINENO: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&5
13280 echo "$as_me: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&2;}
13281 { (exit 1); exit 1; }; }
13283 cat >conftest.$ac_ext <<_ACEOF
13286 cat confdefs.h >>conftest.$ac_ext
13287 cat >>conftest.$ac_ext <<_ACEOF
13288 /* end confdefs.h. */
13299 rm -f conftest.$ac_objext conftest$ac_exeext
13300 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
13301 (eval $ac_link) 2>conftest.er1
13303 grep -v '^ *+' conftest.er1 >conftest.err
13305 cat conftest.err >&5
13306 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13307 (exit $ac_status); } &&
13308 { ac_try='test -z "$ac_c_werror_flag"
13309 || test ! -s conftest.err'
13310 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13311 (eval $ac_try) 2>&5
13313 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13314 (exit $ac_status); }; } &&
13315 { ac_try='test -s conftest$ac_exeext'
13316 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13317 (eval $ac_try) 2>&5
13319 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13320 (exit $ac_status); }; }; then
13321 ac_cv_lib_socket_main=yes
13323 echo "$as_me: failed program was:" >&5
13324 sed 's/^/| /' conftest.$ac_ext >&5
13326 ac_cv_lib_socket_main=no
13328 rm -f conftest.err conftest.$ac_objext \
13329 conftest$ac_exeext conftest.$ac_ext
13330 LIBS=$ac_check_lib_save_LIBS
13332 echo "$as_me:$LINENO: result: $ac_cv_lib_socket_main" >&5
13333 echo "${ECHO_T}$ac_cv_lib_socket_main" >&6
13334 if test $ac_cv_lib_socket_main = yes; then
13335 gcj_cv_lib_sockets="-lsocket"
13341 if test "$gcj_checkBoth" = 1; then
13343 LIBS="$LIBS -lsocket -lnsl"
13344 unset ac_cv_func_accept
13345 echo "$as_me:$LINENO: checking for accept" >&5
13346 echo $ECHO_N "checking for accept... $ECHO_C" >&6
13347 if test "${ac_cv_func_accept+set}" = set; then
13348 echo $ECHO_N "(cached) $ECHO_C" >&6
13350 if test x$gcc_no_link = xyes; then
13351 { { echo "$as_me:$LINENO: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&5
13352 echo "$as_me: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&2;}
13353 { (exit 1); exit 1; }; }
13355 cat >conftest.$ac_ext <<_ACEOF
13358 cat confdefs.h >>conftest.$ac_ext
13359 cat >>conftest.$ac_ext <<_ACEOF
13360 /* end confdefs.h. */
13361 /* Define accept to an innocuous variant, in case <limits.h> declares accept.
13362 For example, HP-UX 11i <limits.h> declares gettimeofday. */
13363 #define accept innocuous_accept
13365 /* System header to define __stub macros and hopefully few prototypes,
13366 which can conflict with char accept (); below.
13367 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
13368 <limits.h> exists even on freestanding compilers. */
13371 # include <limits.h>
13373 # include <assert.h>
13378 /* Override any gcc2 internal prototype to avoid an error. */
13383 /* We use char because int might match the return type of a gcc2
13384 builtin and then its argument prototype would still apply. */
13386 /* The GNU C library defines this for functions which it implements
13387 to always fail with ENOSYS. Some functions are actually named
13388 something starting with __ and the normal name is an alias. */
13389 #if defined (__stub_accept) || defined (__stub___accept)
13392 char (*f) () = accept;
13401 return f != accept;
13406 rm -f conftest.$ac_objext conftest$ac_exeext
13407 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
13408 (eval $ac_link) 2>conftest.er1
13410 grep -v '^ *+' conftest.er1 >conftest.err
13412 cat conftest.err >&5
13413 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13414 (exit $ac_status); } &&
13415 { ac_try='test -z "$ac_c_werror_flag"
13416 || test ! -s conftest.err'
13417 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13418 (eval $ac_try) 2>&5
13420 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13421 (exit $ac_status); }; } &&
13422 { ac_try='test -s conftest$ac_exeext'
13423 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13424 (eval $ac_try) 2>&5
13426 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13427 (exit $ac_status); }; }; then
13428 ac_cv_func_accept=yes
13430 echo "$as_me: failed program was:" >&5
13431 sed 's/^/| /' conftest.$ac_ext >&5
13433 ac_cv_func_accept=no
13435 rm -f conftest.err conftest.$ac_objext \
13436 conftest$ac_exeext conftest.$ac_ext
13438 echo "$as_me:$LINENO: result: $ac_cv_func_accept" >&5
13439 echo "${ECHO_T}$ac_cv_func_accept" >&6
13440 if test $ac_cv_func_accept = yes; then
13442 gcj_cv_lib_sockets="-lsocket -lnsl"
13445 unset ac_cv_func_accept
13448 unset ac_cv_func_gethostbyname
13450 LIBS="$LIBS $gcj_cv_lib_sockets"
13451 echo "$as_me:$LINENO: checking for gethostbyname" >&5
13452 echo $ECHO_N "checking for gethostbyname... $ECHO_C" >&6
13453 if test "${ac_cv_func_gethostbyname+set}" = set; then
13454 echo $ECHO_N "(cached) $ECHO_C" >&6
13456 if test x$gcc_no_link = xyes; then
13457 { { echo "$as_me:$LINENO: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&5
13458 echo "$as_me: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&2;}
13459 { (exit 1); exit 1; }; }
13461 cat >conftest.$ac_ext <<_ACEOF
13464 cat confdefs.h >>conftest.$ac_ext
13465 cat >>conftest.$ac_ext <<_ACEOF
13466 /* end confdefs.h. */
13467 /* Define gethostbyname to an innocuous variant, in case <limits.h> declares gethostbyname.
13468 For example, HP-UX 11i <limits.h> declares gettimeofday. */
13469 #define gethostbyname innocuous_gethostbyname
13471 /* System header to define __stub macros and hopefully few prototypes,
13472 which can conflict with char gethostbyname (); below.
13473 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
13474 <limits.h> exists even on freestanding compilers. */
13477 # include <limits.h>
13479 # include <assert.h>
13482 #undef gethostbyname
13484 /* Override any gcc2 internal prototype to avoid an error. */
13489 /* We use char because int might match the return type of a gcc2
13490 builtin and then its argument prototype would still apply. */
13491 char gethostbyname ();
13492 /* The GNU C library defines this for functions which it implements
13493 to always fail with ENOSYS. Some functions are actually named
13494 something starting with __ and the normal name is an alias. */
13495 #if defined (__stub_gethostbyname) || defined (__stub___gethostbyname)
13498 char (*f) () = gethostbyname;
13507 return f != gethostbyname;
13512 rm -f conftest.$ac_objext conftest$ac_exeext
13513 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
13514 (eval $ac_link) 2>conftest.er1
13516 grep -v '^ *+' conftest.er1 >conftest.err
13518 cat conftest.err >&5
13519 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13520 (exit $ac_status); } &&
13521 { ac_try='test -z "$ac_c_werror_flag"
13522 || test ! -s conftest.err'
13523 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13524 (eval $ac_try) 2>&5
13526 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13527 (exit $ac_status); }; } &&
13528 { ac_try='test -s conftest$ac_exeext'
13529 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13530 (eval $ac_try) 2>&5
13532 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13533 (exit $ac_status); }; }; then
13534 ac_cv_func_gethostbyname=yes
13536 echo "$as_me: failed program was:" >&5
13537 sed 's/^/| /' conftest.$ac_ext >&5
13539 ac_cv_func_gethostbyname=no
13541 rm -f conftest.err conftest.$ac_objext \
13542 conftest$ac_exeext conftest.$ac_ext
13544 echo "$as_me:$LINENO: result: $ac_cv_func_gethostbyname" >&5
13545 echo "${ECHO_T}$ac_cv_func_gethostbyname" >&6
13546 if test $ac_cv_func_gethostbyname = yes; then
13549 echo "$as_me:$LINENO: checking for main in -lnsl" >&5
13550 echo $ECHO_N "checking for main in -lnsl... $ECHO_C" >&6
13551 if test "${ac_cv_lib_nsl_main+set}" = set; then
13552 echo $ECHO_N "(cached) $ECHO_C" >&6
13554 ac_check_lib_save_LIBS=$LIBS
13556 if test x$gcc_no_link = xyes; then
13557 { { echo "$as_me:$LINENO: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&5
13558 echo "$as_me: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&2;}
13559 { (exit 1); exit 1; }; }
13561 cat >conftest.$ac_ext <<_ACEOF
13564 cat confdefs.h >>conftest.$ac_ext
13565 cat >>conftest.$ac_ext <<_ACEOF
13566 /* end confdefs.h. */
13577 rm -f conftest.$ac_objext conftest$ac_exeext
13578 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
13579 (eval $ac_link) 2>conftest.er1
13581 grep -v '^ *+' conftest.er1 >conftest.err
13583 cat conftest.err >&5
13584 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13585 (exit $ac_status); } &&
13586 { ac_try='test -z "$ac_c_werror_flag"
13587 || test ! -s conftest.err'
13588 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13589 (eval $ac_try) 2>&5
13591 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13592 (exit $ac_status); }; } &&
13593 { ac_try='test -s conftest$ac_exeext'
13594 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13595 (eval $ac_try) 2>&5
13597 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13598 (exit $ac_status); }; }; then
13599 ac_cv_lib_nsl_main=yes
13601 echo "$as_me: failed program was:" >&5
13602 sed 's/^/| /' conftest.$ac_ext >&5
13604 ac_cv_lib_nsl_main=no
13606 rm -f conftest.err conftest.$ac_objext \
13607 conftest$ac_exeext conftest.$ac_ext
13608 LIBS=$ac_check_lib_save_LIBS
13610 echo "$as_me:$LINENO: result: $ac_cv_lib_nsl_main" >&5
13611 echo "${ECHO_T}$ac_cv_lib_nsl_main" >&6
13612 if test $ac_cv_lib_nsl_main = yes; then
13613 gcj_cv_lib_sockets="$gcj_cv_lib_sockets -lnsl"
13618 unset ac_cv_func_gethostbyname
13622 echo "$as_me:$LINENO: result: $gcj_cv_lib_sockets" >&5
13623 echo "${ECHO_T}$gcj_cv_lib_sockets" >&6
13624 SYSTEMSPEC="$SYSTEMSPEC $gcj_cv_lib_sockets"
13626 if test "$with_system_zlib" = yes; then
13627 echo "$as_me:$LINENO: checking for deflate in -lz" >&5
13628 echo $ECHO_N "checking for deflate in -lz... $ECHO_C" >&6
13629 if test "${ac_cv_lib_z_deflate+set}" = set; then
13630 echo $ECHO_N "(cached) $ECHO_C" >&6
13632 ac_check_lib_save_LIBS=$LIBS
13634 if test x$gcc_no_link = xyes; then
13635 { { echo "$as_me:$LINENO: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&5
13636 echo "$as_me: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&2;}
13637 { (exit 1); exit 1; }; }
13639 cat >conftest.$ac_ext <<_ACEOF
13642 cat confdefs.h >>conftest.$ac_ext
13643 cat >>conftest.$ac_ext <<_ACEOF
13644 /* end confdefs.h. */
13646 /* Override any gcc2 internal prototype to avoid an error. */
13650 /* We use char because int might match the return type of a gcc2
13651 builtin and then its argument prototype would still apply. */
13661 rm -f conftest.$ac_objext conftest$ac_exeext
13662 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
13663 (eval $ac_link) 2>conftest.er1
13665 grep -v '^ *+' conftest.er1 >conftest.err
13667 cat conftest.err >&5
13668 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13669 (exit $ac_status); } &&
13670 { ac_try='test -z "$ac_c_werror_flag"
13671 || test ! -s conftest.err'
13672 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13673 (eval $ac_try) 2>&5
13675 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13676 (exit $ac_status); }; } &&
13677 { ac_try='test -s conftest$ac_exeext'
13678 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13679 (eval $ac_try) 2>&5
13681 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13682 (exit $ac_status); }; }; then
13683 ac_cv_lib_z_deflate=yes
13685 echo "$as_me: failed program was:" >&5
13686 sed 's/^/| /' conftest.$ac_ext >&5
13688 ac_cv_lib_z_deflate=no
13690 rm -f conftest.err conftest.$ac_objext \
13691 conftest$ac_exeext conftest.$ac_ext
13692 LIBS=$ac_check_lib_save_LIBS
13694 echo "$as_me:$LINENO: result: $ac_cv_lib_z_deflate" >&5
13695 echo "${ECHO_T}$ac_cv_lib_z_deflate" >&6
13696 if test $ac_cv_lib_z_deflate = yes; then
13704 # Test for Gtk stuff, if asked for.
13705 if test "$use_gtk_awt" = yes; then
13709 if test -z "$PKG_CONFIG"; then
13710 # Extract the first word of "pkg-config", so it can be a program name with args.
13711 set dummy pkg-config; ac_word=$2
13712 echo "$as_me:$LINENO: checking for $ac_word" >&5
13713 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
13714 if test "${ac_cv_path_PKG_CONFIG+set}" = set; then
13715 echo $ECHO_N "(cached) $ECHO_C" >&6
13717 case $PKG_CONFIG in
13719 ac_cv_path_PKG_CONFIG="$PKG_CONFIG" # Let the user override the test with a path.
13722 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
13723 for as_dir in $PATH
13726 test -z "$as_dir" && as_dir=.
13727 for ac_exec_ext in '' $ac_executable_extensions; do
13728 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
13729 ac_cv_path_PKG_CONFIG="$as_dir/$ac_word$ac_exec_ext"
13730 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
13736 test -z "$ac_cv_path_PKG_CONFIG" && ac_cv_path_PKG_CONFIG="no"
13740 PKG_CONFIG=$ac_cv_path_PKG_CONFIG
13742 if test -n "$PKG_CONFIG"; then
13743 echo "$as_me:$LINENO: result: $PKG_CONFIG" >&5
13744 echo "${ECHO_T}$PKG_CONFIG" >&6
13746 echo "$as_me:$LINENO: result: no" >&5
13747 echo "${ECHO_T}no" >&6
13752 if test "$PKG_CONFIG" = "no" ; then
13753 echo "*** The pkg-config script could not be found. Make sure it is"
13754 echo "*** in your path, or set the PKG_CONFIG environment variable"
13755 echo "*** to the full path to pkg-config."
13756 echo "*** Or see http://www.freedesktop.org/software/pkgconfig to get pkg-config."
13758 PKG_CONFIG_MIN_VERSION=0.9.0
13759 if $PKG_CONFIG --atleast-pkgconfig-version $PKG_CONFIG_MIN_VERSION; then
13760 echo "$as_me:$LINENO: checking for gtk+-2.0 >= 2.4" >&5
13761 echo $ECHO_N "checking for gtk+-2.0 >= 2.4... $ECHO_C" >&6
13763 if $PKG_CONFIG --exists "gtk+-2.0 >= 2.4" ; then
13764 echo "$as_me:$LINENO: result: yes" >&5
13765 echo "${ECHO_T}yes" >&6
13768 echo "$as_me:$LINENO: checking GTK_CFLAGS" >&5
13769 echo $ECHO_N "checking GTK_CFLAGS... $ECHO_C" >&6
13770 GTK_CFLAGS=`$PKG_CONFIG --cflags "gtk+-2.0 >= 2.4"`
13771 echo "$as_me:$LINENO: result: $GTK_CFLAGS" >&5
13772 echo "${ECHO_T}$GTK_CFLAGS" >&6
13774 echo "$as_me:$LINENO: checking GTK_LIBS" >&5
13775 echo $ECHO_N "checking GTK_LIBS... $ECHO_C" >&6
13776 GTK_LIBS=`$PKG_CONFIG --libs "gtk+-2.0 >= 2.4"`
13777 echo "$as_me:$LINENO: result: $GTK_LIBS" >&5
13778 echo "${ECHO_T}$GTK_LIBS" >&6
13782 ## If we have a custom action on failure, don't print errors, but
13783 ## do set a variable so people can do so.
13784 GTK_PKG_ERRORS=`$PKG_CONFIG --errors-to-stdout --print-errors "gtk+-2.0 >= 2.4"`
13785 echo $GTK_PKG_ERRORS
13791 echo "*** Your version of pkg-config is too old. You need version $PKG_CONFIG_MIN_VERSION or newer."
13792 echo "*** See http://www.freedesktop.org/software/pkgconfig"
13796 if test $succeeded = yes; then
13799 { { 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
13800 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;}
13801 { (exit 1); exit 1; }; }
13810 if test -z "$PKG_CONFIG"; then
13811 # Extract the first word of "pkg-config", so it can be a program name with args.
13812 set dummy pkg-config; ac_word=$2
13813 echo "$as_me:$LINENO: checking for $ac_word" >&5
13814 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
13815 if test "${ac_cv_path_PKG_CONFIG+set}" = set; then
13816 echo $ECHO_N "(cached) $ECHO_C" >&6
13818 case $PKG_CONFIG in
13820 ac_cv_path_PKG_CONFIG="$PKG_CONFIG" # Let the user override the test with a path.
13823 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
13824 for as_dir in $PATH
13827 test -z "$as_dir" && as_dir=.
13828 for ac_exec_ext in '' $ac_executable_extensions; do
13829 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
13830 ac_cv_path_PKG_CONFIG="$as_dir/$ac_word$ac_exec_ext"
13831 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
13837 test -z "$ac_cv_path_PKG_CONFIG" && ac_cv_path_PKG_CONFIG="no"
13841 PKG_CONFIG=$ac_cv_path_PKG_CONFIG
13843 if test -n "$PKG_CONFIG"; then
13844 echo "$as_me:$LINENO: result: $PKG_CONFIG" >&5
13845 echo "${ECHO_T}$PKG_CONFIG" >&6
13847 echo "$as_me:$LINENO: result: no" >&5
13848 echo "${ECHO_T}no" >&6
13853 if test "$PKG_CONFIG" = "no" ; then
13854 echo "*** The pkg-config script could not be found. Make sure it is"
13855 echo "*** in your path, or set the PKG_CONFIG environment variable"
13856 echo "*** to the full path to pkg-config."
13857 echo "*** Or see http://www.freedesktop.org/software/pkgconfig to get pkg-config."
13859 PKG_CONFIG_MIN_VERSION=0.9.0
13860 if $PKG_CONFIG --atleast-pkgconfig-version $PKG_CONFIG_MIN_VERSION; then
13861 echo "$as_me:$LINENO: checking for glib-2.0 >= 2.4 gthread-2.0 >= 2.4" >&5
13862 echo $ECHO_N "checking for glib-2.0 >= 2.4 gthread-2.0 >= 2.4... $ECHO_C" >&6
13864 if $PKG_CONFIG --exists "glib-2.0 >= 2.4 gthread-2.0 >= 2.4" ; then
13865 echo "$as_me:$LINENO: result: yes" >&5
13866 echo "${ECHO_T}yes" >&6
13869 echo "$as_me:$LINENO: checking GLIB_CFLAGS" >&5
13870 echo $ECHO_N "checking GLIB_CFLAGS... $ECHO_C" >&6
13871 GLIB_CFLAGS=`$PKG_CONFIG --cflags "glib-2.0 >= 2.4 gthread-2.0 >= 2.4"`
13872 echo "$as_me:$LINENO: result: $GLIB_CFLAGS" >&5
13873 echo "${ECHO_T}$GLIB_CFLAGS" >&6
13875 echo "$as_me:$LINENO: checking GLIB_LIBS" >&5
13876 echo $ECHO_N "checking GLIB_LIBS... $ECHO_C" >&6
13877 GLIB_LIBS=`$PKG_CONFIG --libs "glib-2.0 >= 2.4 gthread-2.0 >= 2.4"`
13878 echo "$as_me:$LINENO: result: $GLIB_LIBS" >&5
13879 echo "${ECHO_T}$GLIB_LIBS" >&6
13883 ## If we have a custom action on failure, don't print errors, but
13884 ## do set a variable so people can do so.
13885 GLIB_PKG_ERRORS=`$PKG_CONFIG --errors-to-stdout --print-errors "glib-2.0 >= 2.4 gthread-2.0 >= 2.4"`
13886 echo $GLIB_PKG_ERRORS
13892 echo "*** Your version of pkg-config is too old. You need version $PKG_CONFIG_MIN_VERSION or newer."
13893 echo "*** See http://www.freedesktop.org/software/pkgconfig"
13897 if test $succeeded = yes; then
13900 { { 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
13901 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;}
13902 { (exit 1); exit 1; }; }
13911 if test -z "$PKG_CONFIG"; then
13912 # Extract the first word of "pkg-config", so it can be a program name with args.
13913 set dummy pkg-config; ac_word=$2
13914 echo "$as_me:$LINENO: checking for $ac_word" >&5
13915 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
13916 if test "${ac_cv_path_PKG_CONFIG+set}" = set; then
13917 echo $ECHO_N "(cached) $ECHO_C" >&6
13919 case $PKG_CONFIG in
13921 ac_cv_path_PKG_CONFIG="$PKG_CONFIG" # Let the user override the test with a path.
13924 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
13925 for as_dir in $PATH
13928 test -z "$as_dir" && as_dir=.
13929 for ac_exec_ext in '' $ac_executable_extensions; do
13930 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
13931 ac_cv_path_PKG_CONFIG="$as_dir/$ac_word$ac_exec_ext"
13932 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
13938 test -z "$ac_cv_path_PKG_CONFIG" && ac_cv_path_PKG_CONFIG="no"
13942 PKG_CONFIG=$ac_cv_path_PKG_CONFIG
13944 if test -n "$PKG_CONFIG"; then
13945 echo "$as_me:$LINENO: result: $PKG_CONFIG" >&5
13946 echo "${ECHO_T}$PKG_CONFIG" >&6
13948 echo "$as_me:$LINENO: result: no" >&5
13949 echo "${ECHO_T}no" >&6
13954 if test "$PKG_CONFIG" = "no" ; then
13955 echo "*** The pkg-config script could not be found. Make sure it is"
13956 echo "*** in your path, or set the PKG_CONFIG environment variable"
13957 echo "*** to the full path to pkg-config."
13958 echo "*** Or see http://www.freedesktop.org/software/pkgconfig to get pkg-config."
13960 PKG_CONFIG_MIN_VERSION=0.9.0
13961 if $PKG_CONFIG --atleast-pkgconfig-version $PKG_CONFIG_MIN_VERSION; then
13962 echo "$as_me:$LINENO: checking for libart-2.0 >= 2.1" >&5
13963 echo $ECHO_N "checking for libart-2.0 >= 2.1... $ECHO_C" >&6
13965 if $PKG_CONFIG --exists "libart-2.0 >= 2.1" ; then
13966 echo "$as_me:$LINENO: result: yes" >&5
13967 echo "${ECHO_T}yes" >&6
13970 echo "$as_me:$LINENO: checking LIBART_CFLAGS" >&5
13971 echo $ECHO_N "checking LIBART_CFLAGS... $ECHO_C" >&6
13972 LIBART_CFLAGS=`$PKG_CONFIG --cflags "libart-2.0 >= 2.1"`
13973 echo "$as_me:$LINENO: result: $LIBART_CFLAGS" >&5
13974 echo "${ECHO_T}$LIBART_CFLAGS" >&6
13976 echo "$as_me:$LINENO: checking LIBART_LIBS" >&5
13977 echo $ECHO_N "checking LIBART_LIBS... $ECHO_C" >&6
13978 LIBART_LIBS=`$PKG_CONFIG --libs "libart-2.0 >= 2.1"`
13979 echo "$as_me:$LINENO: result: $LIBART_LIBS" >&5
13980 echo "${ECHO_T}$LIBART_LIBS" >&6
13984 ## If we have a custom action on failure, don't print errors, but
13985 ## do set a variable so people can do so.
13986 LIBART_PKG_ERRORS=`$PKG_CONFIG --errors-to-stdout --print-errors "libart-2.0 >= 2.1"`
13987 echo $LIBART_PKG_ERRORS
13993 echo "*** Your version of pkg-config is too old. You need version $PKG_CONFIG_MIN_VERSION or newer."
13994 echo "*** See http://www.freedesktop.org/software/pkgconfig"
13998 if test $succeeded = yes; then
14001 { { 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
14002 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;}
14003 { (exit 1); exit 1; }; }
14009 # We require the XTest Extension to support java.awt.Robot.
14010 echo "$as_me:$LINENO: checking for XTestQueryExtension in -lXtst" >&5
14011 echo $ECHO_N "checking for XTestQueryExtension in -lXtst... $ECHO_C" >&6
14012 if test "${ac_cv_lib_Xtst_XTestQueryExtension+set}" = set; then
14013 echo $ECHO_N "(cached) $ECHO_C" >&6
14015 ac_check_lib_save_LIBS=$LIBS
14016 LIBS="-lXtst ${X_LIBS} $LIBS"
14017 if test x$gcc_no_link = xyes; then
14018 { { echo "$as_me:$LINENO: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&5
14019 echo "$as_me: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&2;}
14020 { (exit 1); exit 1; }; }
14022 cat >conftest.$ac_ext <<_ACEOF
14025 cat confdefs.h >>conftest.$ac_ext
14026 cat >>conftest.$ac_ext <<_ACEOF
14027 /* end confdefs.h. */
14029 /* Override any gcc2 internal prototype to avoid an error. */
14033 /* We use char because int might match the return type of a gcc2
14034 builtin and then its argument prototype would still apply. */
14035 char XTestQueryExtension ();
14039 XTestQueryExtension ();
14044 rm -f conftest.$ac_objext conftest$ac_exeext
14045 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
14046 (eval $ac_link) 2>conftest.er1
14048 grep -v '^ *+' conftest.er1 >conftest.err
14050 cat conftest.err >&5
14051 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14052 (exit $ac_status); } &&
14053 { ac_try='test -z "$ac_c_werror_flag"
14054 || test ! -s conftest.err'
14055 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14056 (eval $ac_try) 2>&5
14058 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14059 (exit $ac_status); }; } &&
14060 { ac_try='test -s conftest$ac_exeext'
14061 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14062 (eval $ac_try) 2>&5
14064 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14065 (exit $ac_status); }; }; then
14066 ac_cv_lib_Xtst_XTestQueryExtension=yes
14068 echo "$as_me: failed program was:" >&5
14069 sed 's/^/| /' conftest.$ac_ext >&5
14071 ac_cv_lib_Xtst_XTestQueryExtension=no
14073 rm -f conftest.err conftest.$ac_objext \
14074 conftest$ac_exeext conftest.$ac_ext
14075 LIBS=$ac_check_lib_save_LIBS
14077 echo "$as_me:$LINENO: result: $ac_cv_lib_Xtst_XTestQueryExtension" >&5
14078 echo "${ECHO_T}$ac_cv_lib_Xtst_XTestQueryExtension" >&6
14079 if test $ac_cv_lib_Xtst_XTestQueryExtension = yes; then
14082 { { echo "$as_me:$LINENO: error: libXtst not found, required by java.awt.Robot" >&5
14083 echo "$as_me: error: libXtst not found, required by java.awt.Robot" >&2;}
14084 { (exit 1); exit 1; }; }
14089 # On Solaris, and maybe other architectures, the Boehm collector
14091 if test "$GC" = boehm; then
14092 echo "$as_me:$LINENO: checking for main in -ldl" >&5
14093 echo $ECHO_N "checking for main in -ldl... $ECHO_C" >&6
14094 if test "${ac_cv_lib_dl_main+set}" = set; then
14095 echo $ECHO_N "(cached) $ECHO_C" >&6
14097 ac_check_lib_save_LIBS=$LIBS
14099 if test x$gcc_no_link = xyes; then
14100 { { echo "$as_me:$LINENO: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&5
14101 echo "$as_me: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&2;}
14102 { (exit 1); exit 1; }; }
14104 cat >conftest.$ac_ext <<_ACEOF
14107 cat confdefs.h >>conftest.$ac_ext
14108 cat >>conftest.$ac_ext <<_ACEOF
14109 /* end confdefs.h. */
14120 rm -f conftest.$ac_objext conftest$ac_exeext
14121 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
14122 (eval $ac_link) 2>conftest.er1
14124 grep -v '^ *+' conftest.er1 >conftest.err
14126 cat conftest.err >&5
14127 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14128 (exit $ac_status); } &&
14129 { ac_try='test -z "$ac_c_werror_flag"
14130 || test ! -s conftest.err'
14131 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14132 (eval $ac_try) 2>&5
14134 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14135 (exit $ac_status); }; } &&
14136 { ac_try='test -s conftest$ac_exeext'
14137 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14138 (eval $ac_try) 2>&5
14140 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14141 (exit $ac_status); }; }; then
14142 ac_cv_lib_dl_main=yes
14144 echo "$as_me: failed program was:" >&5
14145 sed 's/^/| /' conftest.$ac_ext >&5
14147 ac_cv_lib_dl_main=no
14149 rm -f conftest.err conftest.$ac_objext \
14150 conftest$ac_exeext conftest.$ac_ext
14151 LIBS=$ac_check_lib_save_LIBS
14153 echo "$as_me:$LINENO: result: $ac_cv_lib_dl_main" >&5
14154 echo "${ECHO_T}$ac_cv_lib_dl_main" >&6
14155 if test $ac_cv_lib_dl_main = yes; then
14156 SYSTEMSPEC="$SYSTEMSPEC -ldl"
14162 # Use a semicolon as CLASSPATH separator for MinGW, otherwise a colon.
14164 *-mingw32) CLASSPATH_SEPARATOR=';' ;;
14165 *) CLASSPATH_SEPARATOR=':' ;;
14169 # We must search the source tree for java.lang, since we still don't
14170 # have libgcj.jar nor java/lang/*.class
14171 GCJ_SAVE_CPPFLAGS=$CPPFLAGS
14172 CPPFLAGS="$CPPFLAGS -I`${PWDCMD-pwd}` -I`cd $srcdir && ${PWDCMD-pwd}`"
14174 # Since some classes depend on this one, we need its source available
14175 # before we can do any GCJ compilation test :-(
14176 if test ! -f gnu/classpath/Configuration.java; then
14177 test -d gnu || mkdir gnu
14178 test -d gnu/classpath || mkdir gnu/classpath
14179 # Note that it is not crucial that all the values here be correct.
14180 sed -e "s,@prefix@,$prefix," \
14181 -e "s,@VERSION@,$VERSION," \
14182 -e "s,@LIBDEBUG@,false," \
14183 -e "s,@INIT_LOAD_LIBRARY@,false," \
14184 -e "s,@@,$LIBGCJDEBUG," \
14185 -e "s,@default_toolkit@,$TOOLKIT," \
14186 -e "s,@JAVA_LANG_SYSTEM_EXPLICIT_INITIALIZATION@,false," \
14187 -e "s,@GTK_CAIRO_ENABLED@,false," \
14188 < $srcdir/classpath/gnu/classpath/Configuration.java.in \
14189 > gnu/classpath/Configuration.java
14190 # We do not want to redirect the output of the grep below to /dev/null,
14191 # but we add /dev/null to the input list so that grep will print the
14192 # filename of Configuration.java in case it finds any matches.
14193 if grep '@.*@' gnu/classpath/Configuration.java /dev/null; then
14194 { { echo "$as_me:$LINENO: error: configure.ac is missing the substitutions above" >&5
14195 echo "$as_me: error: configure.ac is missing the substitutions above" >&2;}
14196 { (exit 1); exit 1; }; }
14200 if test -n "$ac_tool_prefix"; then
14201 # Extract the first word of "${ac_tool_prefix}gcj", so it can be a program name with args.
14202 set dummy ${ac_tool_prefix}gcj; ac_word=$2
14203 echo "$as_me:$LINENO: checking for $ac_word" >&5
14204 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
14205 if test "${ac_cv_prog_GCJ+set}" = set; then
14206 echo $ECHO_N "(cached) $ECHO_C" >&6
14208 if test -n "$GCJ"; then
14209 ac_cv_prog_GCJ="$GCJ" # Let the user override the test.
14211 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
14212 for as_dir in $PATH
14215 test -z "$as_dir" && as_dir=.
14216 for ac_exec_ext in '' $ac_executable_extensions; do
14217 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
14218 ac_cv_prog_GCJ="${ac_tool_prefix}gcj"
14219 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
14227 GCJ=$ac_cv_prog_GCJ
14228 if test -n "$GCJ"; then
14229 echo "$as_me:$LINENO: result: $GCJ" >&5
14230 echo "${ECHO_T}$GCJ" >&6
14232 echo "$as_me:$LINENO: result: no" >&5
14233 echo "${ECHO_T}no" >&6
14237 if test -z "$ac_cv_prog_GCJ"; then
14239 # Extract the first word of "gcj", so it can be a program name with args.
14240 set dummy gcj; ac_word=$2
14241 echo "$as_me:$LINENO: checking for $ac_word" >&5
14242 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
14243 if test "${ac_cv_prog_ac_ct_GCJ+set}" = set; then
14244 echo $ECHO_N "(cached) $ECHO_C" >&6
14246 if test -n "$ac_ct_GCJ"; then
14247 ac_cv_prog_ac_ct_GCJ="$ac_ct_GCJ" # Let the user override the test.
14249 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
14250 for as_dir in $PATH
14253 test -z "$as_dir" && as_dir=.
14254 for ac_exec_ext in '' $ac_executable_extensions; do
14255 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
14256 ac_cv_prog_ac_ct_GCJ="gcj"
14257 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
14263 test -z "$ac_cv_prog_ac_ct_GCJ" && ac_cv_prog_ac_ct_GCJ="no"
14266 ac_ct_GCJ=$ac_cv_prog_ac_ct_GCJ
14267 if test -n "$ac_ct_GCJ"; then
14268 echo "$as_me:$LINENO: result: $ac_ct_GCJ" >&5
14269 echo "${ECHO_T}$ac_ct_GCJ" >&6
14271 echo "$as_me:$LINENO: result: no" >&5
14272 echo "${ECHO_T}no" >&6
14277 GCJ="$ac_cv_prog_GCJ"
14280 test "x${GCJFLAGS+set}" = xset || GCJFLAGS="-g -O2"
14286 rm -f gnu/classpath/Configuration.java
14288 CPPFLAGS=$GCJ_SAVE_CPPFLAGS
14290 echo "$as_me:$LINENO: checking for void *" >&5
14291 echo $ECHO_N "checking for void *... $ECHO_C" >&6
14292 if test "${ac_cv_type_void_p+set}" = set; then
14293 echo $ECHO_N "(cached) $ECHO_C" >&6
14295 cat >conftest.$ac_ext <<_ACEOF
14298 cat confdefs.h >>conftest.$ac_ext
14299 cat >>conftest.$ac_ext <<_ACEOF
14300 /* end confdefs.h. */
14301 $ac_includes_default
14307 if (sizeof (void *))
14313 rm -f conftest.$ac_objext
14314 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
14315 (eval $ac_compile) 2>conftest.er1
14317 grep -v '^ *+' conftest.er1 >conftest.err
14319 cat conftest.err >&5
14320 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14321 (exit $ac_status); } &&
14322 { ac_try='test -z "$ac_c_werror_flag"
14323 || test ! -s conftest.err'
14324 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14325 (eval $ac_try) 2>&5
14327 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14328 (exit $ac_status); }; } &&
14329 { ac_try='test -s conftest.$ac_objext'
14330 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14331 (eval $ac_try) 2>&5
14333 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14334 (exit $ac_status); }; }; then
14335 ac_cv_type_void_p=yes
14337 echo "$as_me: failed program was:" >&5
14338 sed 's/^/| /' conftest.$ac_ext >&5
14340 ac_cv_type_void_p=no
14342 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
14344 echo "$as_me:$LINENO: result: $ac_cv_type_void_p" >&5
14345 echo "${ECHO_T}$ac_cv_type_void_p" >&6
14347 echo "$as_me:$LINENO: checking size of void *" >&5
14348 echo $ECHO_N "checking size of void *... $ECHO_C" >&6
14349 if test "${ac_cv_sizeof_void_p+set}" = set; then
14350 echo $ECHO_N "(cached) $ECHO_C" >&6
14352 if test "$ac_cv_type_void_p" = yes; then
14353 # The cast to unsigned long works around a bug in the HP C Compiler
14354 # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
14355 # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
14356 # This bug is HP SR number 8606223364.
14357 if test "$cross_compiling" = yes; then
14358 # Depending upon the size, compute the lo and hi bounds.
14359 cat >conftest.$ac_ext <<_ACEOF
14362 cat confdefs.h >>conftest.$ac_ext
14363 cat >>conftest.$ac_ext <<_ACEOF
14364 /* end confdefs.h. */
14365 $ac_includes_default
14369 static int test_array [1 - 2 * !(((long) (sizeof (void *))) >= 0)];
14376 rm -f conftest.$ac_objext
14377 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
14378 (eval $ac_compile) 2>conftest.er1
14380 grep -v '^ *+' conftest.er1 >conftest.err
14382 cat conftest.err >&5
14383 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14384 (exit $ac_status); } &&
14385 { ac_try='test -z "$ac_c_werror_flag"
14386 || test ! -s conftest.err'
14387 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14388 (eval $ac_try) 2>&5
14390 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14391 (exit $ac_status); }; } &&
14392 { ac_try='test -s conftest.$ac_objext'
14393 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14394 (eval $ac_try) 2>&5
14396 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14397 (exit $ac_status); }; }; then
14400 cat >conftest.$ac_ext <<_ACEOF
14403 cat confdefs.h >>conftest.$ac_ext
14404 cat >>conftest.$ac_ext <<_ACEOF
14405 /* end confdefs.h. */
14406 $ac_includes_default
14410 static int test_array [1 - 2 * !(((long) (sizeof (void *))) <= $ac_mid)];
14417 rm -f conftest.$ac_objext
14418 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
14419 (eval $ac_compile) 2>conftest.er1
14421 grep -v '^ *+' conftest.er1 >conftest.err
14423 cat conftest.err >&5
14424 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14425 (exit $ac_status); } &&
14426 { ac_try='test -z "$ac_c_werror_flag"
14427 || test ! -s conftest.err'
14428 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14429 (eval $ac_try) 2>&5
14431 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14432 (exit $ac_status); }; } &&
14433 { ac_try='test -s conftest.$ac_objext'
14434 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14435 (eval $ac_try) 2>&5
14437 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14438 (exit $ac_status); }; }; then
14439 ac_hi=$ac_mid; break
14441 echo "$as_me: failed program was:" >&5
14442 sed 's/^/| /' conftest.$ac_ext >&5
14444 ac_lo=`expr $ac_mid + 1`
14445 if test $ac_lo -le $ac_mid; then
14449 ac_mid=`expr 2 '*' $ac_mid + 1`
14451 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
14454 echo "$as_me: failed program was:" >&5
14455 sed 's/^/| /' conftest.$ac_ext >&5
14457 cat >conftest.$ac_ext <<_ACEOF
14460 cat confdefs.h >>conftest.$ac_ext
14461 cat >>conftest.$ac_ext <<_ACEOF
14462 /* end confdefs.h. */
14463 $ac_includes_default
14467 static int test_array [1 - 2 * !(((long) (sizeof (void *))) < 0)];
14474 rm -f conftest.$ac_objext
14475 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
14476 (eval $ac_compile) 2>conftest.er1
14478 grep -v '^ *+' conftest.er1 >conftest.err
14480 cat conftest.err >&5
14481 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14482 (exit $ac_status); } &&
14483 { ac_try='test -z "$ac_c_werror_flag"
14484 || test ! -s conftest.err'
14485 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14486 (eval $ac_try) 2>&5
14488 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14489 (exit $ac_status); }; } &&
14490 { ac_try='test -s conftest.$ac_objext'
14491 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14492 (eval $ac_try) 2>&5
14494 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14495 (exit $ac_status); }; }; then
14498 cat >conftest.$ac_ext <<_ACEOF
14501 cat confdefs.h >>conftest.$ac_ext
14502 cat >>conftest.$ac_ext <<_ACEOF
14503 /* end confdefs.h. */
14504 $ac_includes_default
14508 static int test_array [1 - 2 * !(((long) (sizeof (void *))) >= $ac_mid)];
14515 rm -f conftest.$ac_objext
14516 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
14517 (eval $ac_compile) 2>conftest.er1
14519 grep -v '^ *+' conftest.er1 >conftest.err
14521 cat conftest.err >&5
14522 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14523 (exit $ac_status); } &&
14524 { ac_try='test -z "$ac_c_werror_flag"
14525 || test ! -s conftest.err'
14526 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14527 (eval $ac_try) 2>&5
14529 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14530 (exit $ac_status); }; } &&
14531 { ac_try='test -s conftest.$ac_objext'
14532 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14533 (eval $ac_try) 2>&5
14535 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14536 (exit $ac_status); }; }; then
14537 ac_lo=$ac_mid; break
14539 echo "$as_me: failed program was:" >&5
14540 sed 's/^/| /' conftest.$ac_ext >&5
14542 ac_hi=`expr '(' $ac_mid ')' - 1`
14543 if test $ac_mid -le $ac_hi; then
14547 ac_mid=`expr 2 '*' $ac_mid`
14549 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
14552 echo "$as_me: failed program was:" >&5
14553 sed 's/^/| /' conftest.$ac_ext >&5
14557 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
14559 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
14560 # Binary search between lo and hi bounds.
14561 while test "x$ac_lo" != "x$ac_hi"; do
14562 ac_mid=`expr '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo`
14563 cat >conftest.$ac_ext <<_ACEOF
14566 cat confdefs.h >>conftest.$ac_ext
14567 cat >>conftest.$ac_ext <<_ACEOF
14568 /* end confdefs.h. */
14569 $ac_includes_default
14573 static int test_array [1 - 2 * !(((long) (sizeof (void *))) <= $ac_mid)];
14580 rm -f conftest.$ac_objext
14581 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
14582 (eval $ac_compile) 2>conftest.er1
14584 grep -v '^ *+' conftest.er1 >conftest.err
14586 cat conftest.err >&5
14587 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14588 (exit $ac_status); } &&
14589 { ac_try='test -z "$ac_c_werror_flag"
14590 || test ! -s conftest.err'
14591 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14592 (eval $ac_try) 2>&5
14594 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14595 (exit $ac_status); }; } &&
14596 { ac_try='test -s conftest.$ac_objext'
14597 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14598 (eval $ac_try) 2>&5
14600 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14601 (exit $ac_status); }; }; then
14604 echo "$as_me: failed program was:" >&5
14605 sed 's/^/| /' conftest.$ac_ext >&5
14607 ac_lo=`expr '(' $ac_mid ')' + 1`
14609 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
14612 ?*) ac_cv_sizeof_void_p=$ac_lo;;
14613 '') { { echo "$as_me:$LINENO: error: cannot compute sizeof (void *), 77
14614 See \`config.log' for more details." >&5
14615 echo "$as_me: error: cannot compute sizeof (void *), 77
14616 See \`config.log' for more details." >&2;}
14617 { (exit 1); exit 1; }; } ;;
14620 if test "$cross_compiling" = yes; then
14621 { { echo "$as_me:$LINENO: error: cannot run test program while cross compiling
14622 See \`config.log' for more details." >&5
14623 echo "$as_me: error: cannot run test program while cross compiling
14624 See \`config.log' for more details." >&2;}
14625 { (exit 1); exit 1; }; }
14627 cat >conftest.$ac_ext <<_ACEOF
14630 cat confdefs.h >>conftest.$ac_ext
14631 cat >>conftest.$ac_ext <<_ACEOF
14632 /* end confdefs.h. */
14633 $ac_includes_default
14634 long longval () { return (long) (sizeof (void *)); }
14635 unsigned long ulongval () { return (long) (sizeof (void *)); }
14637 #include <stdlib.h>
14642 FILE *f = fopen ("conftest.val", "w");
14645 if (((long) (sizeof (void *))) < 0)
14647 long i = longval ();
14648 if (i != ((long) (sizeof (void *))))
14650 fprintf (f, "%ld\n", i);
14654 unsigned long i = ulongval ();
14655 if (i != ((long) (sizeof (void *))))
14657 fprintf (f, "%lu\n", i);
14659 exit (ferror (f) || fclose (f) != 0);
14665 rm -f conftest$ac_exeext
14666 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
14667 (eval $ac_link) 2>&5
14669 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14670 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
14671 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14672 (eval $ac_try) 2>&5
14674 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14675 (exit $ac_status); }; }; then
14676 ac_cv_sizeof_void_p=`cat conftest.val`
14678 echo "$as_me: program exited with status $ac_status" >&5
14679 echo "$as_me: failed program was:" >&5
14680 sed 's/^/| /' conftest.$ac_ext >&5
14682 ( exit $ac_status )
14683 { { echo "$as_me:$LINENO: error: cannot compute sizeof (void *), 77
14684 See \`config.log' for more details." >&5
14685 echo "$as_me: error: cannot compute sizeof (void *), 77
14686 See \`config.log' for more details." >&2;}
14687 { (exit 1); exit 1; }; }
14689 rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
14694 ac_cv_sizeof_void_p=0
14697 echo "$as_me:$LINENO: result: $ac_cv_sizeof_void_p" >&5
14698 echo "${ECHO_T}$ac_cv_sizeof_void_p" >&6
14699 cat >>confdefs.h <<_ACEOF
14700 #define SIZEOF_VOID_P $ac_cv_sizeof_void_p
14705 echo "$as_me:$LINENO: checking whether byte ordering is bigendian" >&5
14706 echo $ECHO_N "checking whether byte ordering is bigendian... $ECHO_C" >&6
14707 if test "${ac_cv_c_bigendian+set}" = set; then
14708 echo $ECHO_N "(cached) $ECHO_C" >&6
14710 # See if sys/param.h defines the BYTE_ORDER macro.
14711 cat >conftest.$ac_ext <<_ACEOF
14714 cat confdefs.h >>conftest.$ac_ext
14715 cat >>conftest.$ac_ext <<_ACEOF
14716 /* end confdefs.h. */
14717 #include <sys/types.h>
14718 #include <sys/param.h>
14723 #if !BYTE_ORDER || !BIG_ENDIAN || !LITTLE_ENDIAN
14724 bogus endian macros
14731 rm -f conftest.$ac_objext
14732 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
14733 (eval $ac_compile) 2>conftest.er1
14735 grep -v '^ *+' conftest.er1 >conftest.err
14737 cat conftest.err >&5
14738 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14739 (exit $ac_status); } &&
14740 { ac_try='test -z "$ac_c_werror_flag"
14741 || test ! -s conftest.err'
14742 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14743 (eval $ac_try) 2>&5
14745 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14746 (exit $ac_status); }; } &&
14747 { ac_try='test -s conftest.$ac_objext'
14748 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14749 (eval $ac_try) 2>&5
14751 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14752 (exit $ac_status); }; }; then
14753 # It does; now see whether it defined to BIG_ENDIAN or not.
14754 cat >conftest.$ac_ext <<_ACEOF
14757 cat confdefs.h >>conftest.$ac_ext
14758 cat >>conftest.$ac_ext <<_ACEOF
14759 /* end confdefs.h. */
14760 #include <sys/types.h>
14761 #include <sys/param.h>
14766 #if BYTE_ORDER != BIG_ENDIAN
14774 rm -f conftest.$ac_objext
14775 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
14776 (eval $ac_compile) 2>conftest.er1
14778 grep -v '^ *+' conftest.er1 >conftest.err
14780 cat conftest.err >&5
14781 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14782 (exit $ac_status); } &&
14783 { ac_try='test -z "$ac_c_werror_flag"
14784 || test ! -s conftest.err'
14785 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14786 (eval $ac_try) 2>&5
14788 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14789 (exit $ac_status); }; } &&
14790 { ac_try='test -s conftest.$ac_objext'
14791 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14792 (eval $ac_try) 2>&5
14794 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14795 (exit $ac_status); }; }; then
14796 ac_cv_c_bigendian=yes
14798 echo "$as_me: failed program was:" >&5
14799 sed 's/^/| /' conftest.$ac_ext >&5
14801 ac_cv_c_bigendian=no
14803 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
14805 echo "$as_me: failed program was:" >&5
14806 sed 's/^/| /' conftest.$ac_ext >&5
14808 # It does not; compile a test program.
14809 if test "$cross_compiling" = yes; then
14810 # try to guess the endianness by grepping values into an object file
14811 ac_cv_c_bigendian=unknown
14812 cat >conftest.$ac_ext <<_ACEOF
14815 cat confdefs.h >>conftest.$ac_ext
14816 cat >>conftest.$ac_ext <<_ACEOF
14817 /* end confdefs.h. */
14818 short ascii_mm[] = { 0x4249, 0x4765, 0x6E44, 0x6961, 0x6E53, 0x7953, 0 };
14819 short ascii_ii[] = { 0x694C, 0x5454, 0x656C, 0x6E45, 0x6944, 0x6E61, 0 };
14820 void _ascii () { char *s = (char *) ascii_mm; s = (char *) ascii_ii; }
14821 short ebcdic_ii[] = { 0x89D3, 0xE3E3, 0x8593, 0x95C5, 0x89C4, 0x9581, 0 };
14822 short ebcdic_mm[] = { 0xC2C9, 0xC785, 0x95C4, 0x8981, 0x95E2, 0xA8E2, 0 };
14823 void _ebcdic () { char *s = (char *) ebcdic_mm; s = (char *) ebcdic_ii; }
14827 _ascii (); _ebcdic ();
14832 rm -f conftest.$ac_objext
14833 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
14834 (eval $ac_compile) 2>conftest.er1
14836 grep -v '^ *+' conftest.er1 >conftest.err
14838 cat conftest.err >&5
14839 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14840 (exit $ac_status); } &&
14841 { ac_try='test -z "$ac_c_werror_flag"
14842 || test ! -s conftest.err'
14843 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14844 (eval $ac_try) 2>&5
14846 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14847 (exit $ac_status); }; } &&
14848 { ac_try='test -s conftest.$ac_objext'
14849 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14850 (eval $ac_try) 2>&5
14852 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14853 (exit $ac_status); }; }; then
14854 if grep BIGenDianSyS conftest.$ac_objext >/dev/null ; then
14855 ac_cv_c_bigendian=yes
14857 if grep LiTTleEnDian conftest.$ac_objext >/dev/null ; then
14858 if test "$ac_cv_c_bigendian" = unknown; then
14859 ac_cv_c_bigendian=no
14861 # finding both strings is unlikely to happen, but who knows?
14862 ac_cv_c_bigendian=unknown
14866 echo "$as_me: failed program was:" >&5
14867 sed 's/^/| /' conftest.$ac_ext >&5
14870 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
14872 cat >conftest.$ac_ext <<_ACEOF
14875 cat confdefs.h >>conftest.$ac_ext
14876 cat >>conftest.$ac_ext <<_ACEOF
14877 /* end confdefs.h. */
14881 /* Are we little or big endian? From Harbison&Steele. */
14885 char c[sizeof (long)];
14888 exit (u.c[sizeof (long) - 1] == 1);
14891 rm -f conftest$ac_exeext
14892 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
14893 (eval $ac_link) 2>&5
14895 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14896 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
14897 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14898 (eval $ac_try) 2>&5
14900 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14901 (exit $ac_status); }; }; then
14902 ac_cv_c_bigendian=no
14904 echo "$as_me: program exited with status $ac_status" >&5
14905 echo "$as_me: failed program was:" >&5
14906 sed 's/^/| /' conftest.$ac_ext >&5
14908 ( exit $ac_status )
14909 ac_cv_c_bigendian=yes
14911 rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
14914 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
14916 echo "$as_me:$LINENO: result: $ac_cv_c_bigendian" >&5
14917 echo "${ECHO_T}$ac_cv_c_bigendian" >&6
14918 case $ac_cv_c_bigendian in
14921 cat >>confdefs.h <<\_ACEOF
14922 #define WORDS_BIGENDIAN 1
14928 { { echo "$as_me:$LINENO: error: unknown endianness
14929 presetting ac_cv_c_bigendian=no (or yes) will help" >&5
14930 echo "$as_me: error: unknown endianness
14931 presetting ac_cv_c_bigendian=no (or yes) will help" >&2;}
14932 { (exit 1); exit 1; }; } ;;
14940 if test -z "$ZLIBSPEC"; then
14941 # Use zlib from the GCC tree.
14942 ZINCS='-I$(top_srcdir)/../zlib'
14943 ZLIBS=../zlib/libzgcj_convenience.la
14946 SYS_ZLIBS="$ZLIBSPEC"
14959 if test "$NATIVE" = yes; then
14969 if test "$NEEDS_DATA_START" = yes && test "$NATIVE" = yes; then
14970 NEEDS_DATA_START_TRUE=
14971 NEEDS_DATA_START_FALSE='#'
14973 NEEDS_DATA_START_TRUE='#'
14974 NEEDS_DATA_START_FALSE=
14979 # Process the option "--enable-version-specific-runtime-libs"
14980 # Calculate toolexeclibdir
14981 case ${version_specific_libs} in
14983 # Need the gcc compiler version to know where to install libraries
14984 # and header files if --enable-version-specific-runtime-libs option
14986 includedir='$(libdir)/gcc/$(target_noncanonical)/$(gcc_version)/include/'
14987 toolexecdir='$(libdir)/gcc/$(target_noncanonical)'
14988 toolexecmainlibdir='$(toolexecdir)/$(gcc_version)$(MULTISUBDIR)'
14989 toolexeclibdir=$toolexecmainlibdir
14992 if test -n "$with_cross_host" &&
14993 test x"$with_cross_host" != x"no"; then
14994 # Install a library built with a cross compiler in tooldir, not libdir.
14995 toolexecdir='$(exec_prefix)/$(target_noncanonical)'
14996 toolexecmainlibdir='$(toolexecdir)/lib'
14998 toolexecdir='$(libdir)/gcc-lib/$(target_noncanonical)'
14999 toolexecmainlibdir='$(libdir)'
15001 multi_os_directory=`$CC -print-multi-os-directory`
15002 case $multi_os_directory in
15003 .) toolexeclibdir=$toolexecmainlibdir ;; # Avoid trailing /.
15004 *) toolexeclibdir=$toolexecmainlibdir/$multi_os_directory ;;
15012 # Determine where the standard .db file and GNU Classpath JNI
15013 # libraries are found.
15014 multi_os_directory=`$CC -print-multi-os-directory`
15015 case $multi_os_directory in
15017 dbexecdir='$(libdir)/gcj-$(gcc_version)' # Avoid /.
15018 ac_configure_args="$ac_configure_args --with-native-libdir=\$\(libdir\)/gcj-`cat $srcdir/../gcc/BASE-VER`"
15021 dbexecdir='$(libdir)/'$multi_os_directory'/gcj-$(gcc_version)'
15022 ac_configure_args="$ac_configure_args --with-native-libdir=\$\(libdir\)/$multi_os_directory/gcj-`cat $srcdir/../gcc/BASE-VER`"
15027 # Determine gcj version number.
15028 gcjversion=`$GCJ -v 2>&1 | sed -n 's/^.*version \([^ ]*\).*$/\1/p'`
15029 GCJVERSION=$gcjversion
15032 cat >>confdefs.h <<_ACEOF
15033 #define GCJVERSION "$GCJVERSION"
15038 cat >>confdefs.h <<\_ACEOF
15039 #define JV_VERSION "1.4.2"
15043 cat >>confdefs.h <<\_ACEOF
15044 #define JV_API_VERSION "1.4"
15049 case "${with_gxx_include_dir}" in
15051 { { echo "$as_me:$LINENO: error: --with-gxx-include-dir=[dir] requires a directory" >&5
15052 echo "$as_me: error: --with-gxx-include-dir=[dir] requires a directory" >&2;}
15053 { (exit 1); exit 1; }; }
15056 case "${enable_version_specific_runtime_libs}" in
15057 yes) gxx_include_dir='$(libsubdir)/include/c++' ;;
15059 libstdcxx_incdir='c++/$(gcc_version)'
15060 gxx_include_dir='include/$(libstdcxx_incdir)'
15061 if test -n "$with_cross_host" &&
15062 test x"$with_cross_host" != x"no"; then
15063 gxx_include_dir='${prefix}/${target_alias}/'"$gxx_include_dir"
15065 gxx_include_dir='${prefix}/'"$gxx_include_dir"
15068 *) gxx_include_dir=${with_gxx_include_dir} ;;
15074 # We check for sys/filio.h because Solaris 2.5 defines FIONREAD there.
15075 # On that system, sys/ioctl.h will not include sys/filio.h unless
15076 # BSD_COMP is defined; just including sys/filio.h is simpler.
15077 # We avoid AC_HEADER_DIRENT since we really only care about dirent.h
15078 # for now. If you change this, you also must update natFile.cc.
15101 for ac_header in unistd.h bstring.h sys/time.h sys/types.h fcntl.h \
15102 sys/ioctl.h sys/filio.h sys/stat.h sys/select.h \
15103 sys/socket.h netinet/in.h arpa/inet.h netdb.h net/if.h \
15104 pwd.h sys/config.h stdint.h langinfo.h locale.h \
15105 dirent.h sys/rw_lock.h ifaddrs.h
15107 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
15108 if eval "test \"\${$as_ac_Header+set}\" = set"; then
15109 echo "$as_me:$LINENO: checking for $ac_header" >&5
15110 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
15111 if eval "test \"\${$as_ac_Header+set}\" = set"; then
15112 echo $ECHO_N "(cached) $ECHO_C" >&6
15114 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
15115 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
15117 # Is the header compilable?
15118 echo "$as_me:$LINENO: checking $ac_header usability" >&5
15119 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
15120 cat >conftest.$ac_ext <<_ACEOF
15123 cat confdefs.h >>conftest.$ac_ext
15124 cat >>conftest.$ac_ext <<_ACEOF
15125 /* end confdefs.h. */
15126 $ac_includes_default
15127 #include <$ac_header>
15129 rm -f conftest.$ac_objext
15130 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
15131 (eval $ac_compile) 2>conftest.er1
15133 grep -v '^ *+' conftest.er1 >conftest.err
15135 cat conftest.err >&5
15136 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15137 (exit $ac_status); } &&
15138 { ac_try='test -z "$ac_c_werror_flag"
15139 || test ! -s conftest.err'
15140 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15141 (eval $ac_try) 2>&5
15143 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15144 (exit $ac_status); }; } &&
15145 { ac_try='test -s conftest.$ac_objext'
15146 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15147 (eval $ac_try) 2>&5
15149 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15150 (exit $ac_status); }; }; then
15151 ac_header_compiler=yes
15153 echo "$as_me: failed program was:" >&5
15154 sed 's/^/| /' conftest.$ac_ext >&5
15156 ac_header_compiler=no
15158 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
15159 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
15160 echo "${ECHO_T}$ac_header_compiler" >&6
15162 # Is the header present?
15163 echo "$as_me:$LINENO: checking $ac_header presence" >&5
15164 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
15165 cat >conftest.$ac_ext <<_ACEOF
15168 cat confdefs.h >>conftest.$ac_ext
15169 cat >>conftest.$ac_ext <<_ACEOF
15170 /* end confdefs.h. */
15171 #include <$ac_header>
15173 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
15174 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
15176 grep -v '^ *+' conftest.er1 >conftest.err
15178 cat conftest.err >&5
15179 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15180 (exit $ac_status); } >/dev/null; then
15181 if test -s conftest.err; then
15182 ac_cpp_err=$ac_c_preproc_warn_flag
15183 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
15190 if test -z "$ac_cpp_err"; then
15191 ac_header_preproc=yes
15193 echo "$as_me: failed program was:" >&5
15194 sed 's/^/| /' conftest.$ac_ext >&5
15196 ac_header_preproc=no
15198 rm -f conftest.err conftest.$ac_ext
15199 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
15200 echo "${ECHO_T}$ac_header_preproc" >&6
15202 # So? What about this header?
15203 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
15205 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
15206 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
15207 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
15208 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
15209 ac_header_preproc=yes
15212 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
15213 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
15214 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
15215 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
15216 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
15217 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
15218 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
15219 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
15220 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
15221 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
15222 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
15223 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
15226 ## ---------------------------------- ##
15227 ## Report this to the libjava lists. ##
15228 ## ---------------------------------- ##
15231 sed "s/^/$as_me: WARNING: /" >&2
15234 echo "$as_me:$LINENO: checking for $ac_header" >&5
15235 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
15236 if eval "test \"\${$as_ac_Header+set}\" = set"; then
15237 echo $ECHO_N "(cached) $ECHO_C" >&6
15239 eval "$as_ac_Header=\$ac_header_preproc"
15241 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
15242 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
15245 if test `eval echo '${'$as_ac_Header'}'` = yes; then
15246 cat >>confdefs.h <<_ACEOF
15247 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
15255 for ac_header in inttypes.h
15257 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
15258 if eval "test \"\${$as_ac_Header+set}\" = set"; then
15259 echo "$as_me:$LINENO: checking for $ac_header" >&5
15260 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
15261 if eval "test \"\${$as_ac_Header+set}\" = set"; then
15262 echo $ECHO_N "(cached) $ECHO_C" >&6
15264 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
15265 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
15267 # Is the header compilable?
15268 echo "$as_me:$LINENO: checking $ac_header usability" >&5
15269 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
15270 cat >conftest.$ac_ext <<_ACEOF
15273 cat confdefs.h >>conftest.$ac_ext
15274 cat >>conftest.$ac_ext <<_ACEOF
15275 /* end confdefs.h. */
15276 $ac_includes_default
15277 #include <$ac_header>
15279 rm -f conftest.$ac_objext
15280 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
15281 (eval $ac_compile) 2>conftest.er1
15283 grep -v '^ *+' conftest.er1 >conftest.err
15285 cat conftest.err >&5
15286 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15287 (exit $ac_status); } &&
15288 { ac_try='test -z "$ac_c_werror_flag"
15289 || test ! -s conftest.err'
15290 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15291 (eval $ac_try) 2>&5
15293 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15294 (exit $ac_status); }; } &&
15295 { ac_try='test -s conftest.$ac_objext'
15296 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15297 (eval $ac_try) 2>&5
15299 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15300 (exit $ac_status); }; }; then
15301 ac_header_compiler=yes
15303 echo "$as_me: failed program was:" >&5
15304 sed 's/^/| /' conftest.$ac_ext >&5
15306 ac_header_compiler=no
15308 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
15309 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
15310 echo "${ECHO_T}$ac_header_compiler" >&6
15312 # Is the header present?
15313 echo "$as_me:$LINENO: checking $ac_header presence" >&5
15314 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
15315 cat >conftest.$ac_ext <<_ACEOF
15318 cat confdefs.h >>conftest.$ac_ext
15319 cat >>conftest.$ac_ext <<_ACEOF
15320 /* end confdefs.h. */
15321 #include <$ac_header>
15323 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
15324 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
15326 grep -v '^ *+' conftest.er1 >conftest.err
15328 cat conftest.err >&5
15329 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15330 (exit $ac_status); } >/dev/null; then
15331 if test -s conftest.err; then
15332 ac_cpp_err=$ac_c_preproc_warn_flag
15333 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
15340 if test -z "$ac_cpp_err"; then
15341 ac_header_preproc=yes
15343 echo "$as_me: failed program was:" >&5
15344 sed 's/^/| /' conftest.$ac_ext >&5
15346 ac_header_preproc=no
15348 rm -f conftest.err conftest.$ac_ext
15349 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
15350 echo "${ECHO_T}$ac_header_preproc" >&6
15352 # So? What about this header?
15353 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
15355 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
15356 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
15357 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
15358 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
15359 ac_header_preproc=yes
15362 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
15363 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
15364 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
15365 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
15366 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
15367 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
15368 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
15369 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
15370 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
15371 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
15372 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
15373 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
15376 ## ---------------------------------- ##
15377 ## Report this to the libjava lists. ##
15378 ## ---------------------------------- ##
15381 sed "s/^/$as_me: WARNING: /" >&2
15384 echo "$as_me:$LINENO: checking for $ac_header" >&5
15385 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
15386 if eval "test \"\${$as_ac_Header+set}\" = set"; then
15387 echo $ECHO_N "(cached) $ECHO_C" >&6
15389 eval "$as_ac_Header=\$ac_header_preproc"
15391 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
15392 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
15395 if test `eval echo '${'$as_ac_Header'}'` = yes; then
15396 cat >>confdefs.h <<_ACEOF
15397 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
15401 cat >>confdefs.h <<\_ACEOF
15402 #define HAVE_INTTYPES_H 1
15406 cat >>confdefs.h <<\_ACEOF
15407 #define JV_HAVE_INTTYPES_H 1
15415 echo "$as_me:$LINENO: checking for sys/wait.h that is POSIX.1 compatible" >&5
15416 echo $ECHO_N "checking for sys/wait.h that is POSIX.1 compatible... $ECHO_C" >&6
15417 if test "${ac_cv_header_sys_wait_h+set}" = set; then
15418 echo $ECHO_N "(cached) $ECHO_C" >&6
15420 cat >conftest.$ac_ext <<_ACEOF
15423 cat confdefs.h >>conftest.$ac_ext
15424 cat >>conftest.$ac_ext <<_ACEOF
15425 /* end confdefs.h. */
15426 #include <sys/types.h>
15427 #include <sys/wait.h>
15428 #ifndef WEXITSTATUS
15429 # define WEXITSTATUS(stat_val) ((unsigned)(stat_val) >> 8)
15432 # define WIFEXITED(stat_val) (((stat_val) & 255) == 0)
15440 s = WIFEXITED (s) ? WEXITSTATUS (s) : 1;
15445 rm -f conftest.$ac_objext
15446 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
15447 (eval $ac_compile) 2>conftest.er1
15449 grep -v '^ *+' conftest.er1 >conftest.err
15451 cat conftest.err >&5
15452 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15453 (exit $ac_status); } &&
15454 { ac_try='test -z "$ac_c_werror_flag"
15455 || test ! -s conftest.err'
15456 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15457 (eval $ac_try) 2>&5
15459 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15460 (exit $ac_status); }; } &&
15461 { ac_try='test -s conftest.$ac_objext'
15462 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15463 (eval $ac_try) 2>&5
15465 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15466 (exit $ac_status); }; }; then
15467 ac_cv_header_sys_wait_h=yes
15469 echo "$as_me: failed program was:" >&5
15470 sed 's/^/| /' conftest.$ac_ext >&5
15472 ac_cv_header_sys_wait_h=no
15474 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
15476 echo "$as_me:$LINENO: result: $ac_cv_header_sys_wait_h" >&5
15477 echo "${ECHO_T}$ac_cv_header_sys_wait_h" >&6
15478 if test $ac_cv_header_sys_wait_h = yes; then
15480 cat >>confdefs.h <<\_ACEOF
15481 #define HAVE_SYS_WAIT_H 1
15487 echo "$as_me:$LINENO: checking for ssize_t" >&5
15488 echo $ECHO_N "checking for ssize_t... $ECHO_C" >&6
15489 if test "${ac_cv_type_ssize_t+set}" = set; then
15490 echo $ECHO_N "(cached) $ECHO_C" >&6
15492 cat >conftest.$ac_ext <<_ACEOF
15495 cat confdefs.h >>conftest.$ac_ext
15496 cat >>conftest.$ac_ext <<_ACEOF
15497 /* end confdefs.h. */
15498 $ac_includes_default
15504 if (sizeof (ssize_t))
15510 rm -f conftest.$ac_objext
15511 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
15512 (eval $ac_compile) 2>conftest.er1
15514 grep -v '^ *+' conftest.er1 >conftest.err
15516 cat conftest.err >&5
15517 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15518 (exit $ac_status); } &&
15519 { ac_try='test -z "$ac_c_werror_flag"
15520 || test ! -s conftest.err'
15521 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15522 (eval $ac_try) 2>&5
15524 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15525 (exit $ac_status); }; } &&
15526 { ac_try='test -s conftest.$ac_objext'
15527 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15528 (eval $ac_try) 2>&5
15530 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15531 (exit $ac_status); }; }; then
15532 ac_cv_type_ssize_t=yes
15534 echo "$as_me: failed program was:" >&5
15535 sed 's/^/| /' conftest.$ac_ext >&5
15537 ac_cv_type_ssize_t=no
15539 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
15541 echo "$as_me:$LINENO: result: $ac_cv_type_ssize_t" >&5
15542 echo "${ECHO_T}$ac_cv_type_ssize_t" >&6
15543 if test $ac_cv_type_ssize_t = yes; then
15547 cat >>confdefs.h <<_ACEOF
15548 #define ssize_t int
15554 echo "$as_me:$LINENO: checking for in_addr_t" >&5
15555 echo $ECHO_N "checking for in_addr_t... $ECHO_C" >&6
15556 cat >conftest.$ac_ext <<_ACEOF
15559 cat confdefs.h >>conftest.$ac_ext
15560 cat >>conftest.$ac_ext <<_ACEOF
15561 /* end confdefs.h. */
15562 #include <sys/types.h>
15564 #include <stdlib.h>
15565 #include <stddef.h>
15567 #if HAVE_NETINET_IN_H
15568 #include <netinet/in.h>
15578 rm -f conftest.$ac_objext
15579 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
15580 (eval $ac_compile) 2>conftest.er1
15582 grep -v '^ *+' conftest.er1 >conftest.err
15584 cat conftest.err >&5
15585 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15586 (exit $ac_status); } &&
15587 { ac_try='test -z "$ac_c_werror_flag"
15588 || test ! -s conftest.err'
15589 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15590 (eval $ac_try) 2>&5
15592 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15593 (exit $ac_status); }; } &&
15594 { ac_try='test -s conftest.$ac_objext'
15595 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15596 (eval $ac_try) 2>&5
15598 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15599 (exit $ac_status); }; }; then
15601 cat >>confdefs.h <<\_ACEOF
15602 #define HAVE_IN_ADDR_T 1
15605 echo "$as_me:$LINENO: result: yes" >&5
15606 echo "${ECHO_T}yes" >&6
15608 echo "$as_me: failed program was:" >&5
15609 sed 's/^/| /' conftest.$ac_ext >&5
15611 echo "$as_me:$LINENO: result: no" >&5
15612 echo "${ECHO_T}no" >&6
15614 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
15616 echo "$as_me:$LINENO: checking whether struct ip_mreq is in netinet/in.h" >&5
15617 echo $ECHO_N "checking whether struct ip_mreq is in netinet/in.h... $ECHO_C" >&6
15618 cat >conftest.$ac_ext <<_ACEOF
15621 cat confdefs.h >>conftest.$ac_ext
15622 cat >>conftest.$ac_ext <<_ACEOF
15623 /* end confdefs.h. */
15624 #include <netinet/in.h>
15628 struct ip_mreq mreq;
15633 rm -f conftest.$ac_objext
15634 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
15635 (eval $ac_compile) 2>conftest.er1
15637 grep -v '^ *+' conftest.er1 >conftest.err
15639 cat conftest.err >&5
15640 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15641 (exit $ac_status); } &&
15642 { ac_try='test -z "$ac_c_werror_flag"
15643 || test ! -s conftest.err'
15644 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15645 (eval $ac_try) 2>&5
15647 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15648 (exit $ac_status); }; } &&
15649 { ac_try='test -s conftest.$ac_objext'
15650 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15651 (eval $ac_try) 2>&5
15653 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15654 (exit $ac_status); }; }; then
15656 cat >>confdefs.h <<\_ACEOF
15657 #define HAVE_STRUCT_IP_MREQ 1
15660 echo "$as_me:$LINENO: result: yes" >&5
15661 echo "${ECHO_T}yes" >&6
15663 echo "$as_me: failed program was:" >&5
15664 sed 's/^/| /' conftest.$ac_ext >&5
15666 echo "$as_me:$LINENO: result: no" >&5
15667 echo "${ECHO_T}no" >&6
15669 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
15671 echo "$as_me:$LINENO: checking whether struct ipv6_mreq is in netinet/in.h" >&5
15672 echo $ECHO_N "checking whether struct ipv6_mreq is in netinet/in.h... $ECHO_C" >&6
15673 cat >conftest.$ac_ext <<_ACEOF
15676 cat confdefs.h >>conftest.$ac_ext
15677 cat >>conftest.$ac_ext <<_ACEOF
15678 /* end confdefs.h. */
15679 #include <netinet/in.h>
15683 struct ipv6_mreq mreq6;
15688 rm -f conftest.$ac_objext
15689 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
15690 (eval $ac_compile) 2>conftest.er1
15692 grep -v '^ *+' conftest.er1 >conftest.err
15694 cat conftest.err >&5
15695 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15696 (exit $ac_status); } &&
15697 { ac_try='test -z "$ac_c_werror_flag"
15698 || test ! -s conftest.err'
15699 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15700 (eval $ac_try) 2>&5
15702 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15703 (exit $ac_status); }; } &&
15704 { ac_try='test -s conftest.$ac_objext'
15705 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15706 (eval $ac_try) 2>&5
15708 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15709 (exit $ac_status); }; }; then
15711 cat >>confdefs.h <<\_ACEOF
15712 #define HAVE_STRUCT_IPV6_MREQ 1
15715 echo "$as_me:$LINENO: result: yes" >&5
15716 echo "${ECHO_T}yes" >&6
15718 echo "$as_me: failed program was:" >&5
15719 sed 's/^/| /' conftest.$ac_ext >&5
15721 echo "$as_me:$LINENO: result: no" >&5
15722 echo "${ECHO_T}no" >&6
15724 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
15726 echo "$as_me:$LINENO: checking whether struct sockaddr_in6 is in netinet/in.h" >&5
15727 echo $ECHO_N "checking whether struct sockaddr_in6 is in netinet/in.h... $ECHO_C" >&6
15728 cat >conftest.$ac_ext <<_ACEOF
15731 cat confdefs.h >>conftest.$ac_ext
15732 cat >>conftest.$ac_ext <<_ACEOF
15733 /* end confdefs.h. */
15734 #include <netinet/in.h>
15738 struct sockaddr_in6 addr6;
15743 rm -f conftest.$ac_objext
15744 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
15745 (eval $ac_compile) 2>conftest.er1
15747 grep -v '^ *+' conftest.er1 >conftest.err
15749 cat conftest.err >&5
15750 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15751 (exit $ac_status); } &&
15752 { ac_try='test -z "$ac_c_werror_flag"
15753 || test ! -s conftest.err'
15754 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15755 (eval $ac_try) 2>&5
15757 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15758 (exit $ac_status); }; } &&
15759 { ac_try='test -s conftest.$ac_objext'
15760 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15761 (eval $ac_try) 2>&5
15763 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15764 (exit $ac_status); }; }; then
15766 cat >>confdefs.h <<\_ACEOF
15767 #define HAVE_INET6 1
15770 echo "$as_me:$LINENO: result: yes" >&5
15771 echo "${ECHO_T}yes" >&6
15773 echo "$as_me: failed program was:" >&5
15774 sed 's/^/| /' conftest.$ac_ext >&5
15776 echo "$as_me:$LINENO: result: no" >&5
15777 echo "${ECHO_T}no" >&6
15779 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
15781 echo "$as_me:$LINENO: checking for socklen_t in sys/socket.h" >&5
15782 echo $ECHO_N "checking for socklen_t in sys/socket.h... $ECHO_C" >&6
15783 cat >conftest.$ac_ext <<_ACEOF
15786 cat confdefs.h >>conftest.$ac_ext
15787 cat >>conftest.$ac_ext <<_ACEOF
15788 /* end confdefs.h. */
15789 #define _POSIX_PII_SOCKET
15790 #include <sys/types.h>
15791 #include <sys/socket.h>
15800 rm -f conftest.$ac_objext
15801 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
15802 (eval $ac_compile) 2>conftest.er1
15804 grep -v '^ *+' conftest.er1 >conftest.err
15806 cat conftest.err >&5
15807 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15808 (exit $ac_status); } &&
15809 { ac_try='test -z "$ac_c_werror_flag"
15810 || test ! -s conftest.err'
15811 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15812 (eval $ac_try) 2>&5
15814 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15815 (exit $ac_status); }; } &&
15816 { ac_try='test -s conftest.$ac_objext'
15817 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15818 (eval $ac_try) 2>&5
15820 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15821 (exit $ac_status); }; }; then
15823 cat >>confdefs.h <<\_ACEOF
15824 #define HAVE_SOCKLEN_T 1
15827 echo "$as_me:$LINENO: result: yes" >&5
15828 echo "${ECHO_T}yes" >&6
15830 echo "$as_me: failed program was:" >&5
15831 sed 's/^/| /' conftest.$ac_ext >&5
15833 echo "$as_me:$LINENO: result: no" >&5
15834 echo "${ECHO_T}no" >&6
15836 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
15838 echo "$as_me:$LINENO: checking for tm_gmtoff in struct tm" >&5
15839 echo $ECHO_N "checking for tm_gmtoff in struct tm... $ECHO_C" >&6
15840 cat >conftest.$ac_ext <<_ACEOF
15843 cat confdefs.h >>conftest.$ac_ext
15844 cat >>conftest.$ac_ext <<_ACEOF
15845 /* end confdefs.h. */
15850 struct tm tim; tim.tm_gmtoff = 0;
15855 rm -f conftest.$ac_objext
15856 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
15857 (eval $ac_compile) 2>conftest.er1
15859 grep -v '^ *+' conftest.er1 >conftest.err
15861 cat conftest.err >&5
15862 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15863 (exit $ac_status); } &&
15864 { ac_try='test -z "$ac_c_werror_flag"
15865 || test ! -s conftest.err'
15866 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15867 (eval $ac_try) 2>&5
15869 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15870 (exit $ac_status); }; } &&
15871 { ac_try='test -s conftest.$ac_objext'
15872 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15873 (eval $ac_try) 2>&5
15875 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15876 (exit $ac_status); }; }; then
15878 cat >>confdefs.h <<\_ACEOF
15879 #define STRUCT_TM_HAS_GMTOFF 1
15882 echo "$as_me:$LINENO: result: yes" >&5
15883 echo "${ECHO_T}yes" >&6
15885 echo "$as_me: failed program was:" >&5
15886 sed 's/^/| /' conftest.$ac_ext >&5
15888 echo "$as_me:$LINENO: result: no" >&5
15889 echo "${ECHO_T}no" >&6
15890 echo "$as_me:$LINENO: checking for global timezone variable" >&5
15891 echo $ECHO_N "checking for global timezone variable... $ECHO_C" >&6
15892 cat >conftest.$ac_ext <<_ACEOF
15895 cat confdefs.h >>conftest.$ac_ext
15896 cat >>conftest.$ac_ext <<_ACEOF
15897 /* end confdefs.h. */
15902 void i(){long z2 = 2*timezone;}
15907 rm -f conftest.$ac_objext
15908 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
15909 (eval $ac_compile) 2>conftest.er1
15911 grep -v '^ *+' conftest.er1 >conftest.err
15913 cat conftest.err >&5
15914 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15915 (exit $ac_status); } &&
15916 { ac_try='test -z "$ac_c_werror_flag"
15917 || test ! -s conftest.err'
15918 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15919 (eval $ac_try) 2>&5
15921 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15922 (exit $ac_status); }; } &&
15923 { ac_try='test -s conftest.$ac_objext'
15924 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15925 (eval $ac_try) 2>&5
15927 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15928 (exit $ac_status); }; }; then
15930 cat >>confdefs.h <<\_ACEOF
15931 #define HAVE_TIMEZONE 1
15934 echo "$as_me:$LINENO: result: yes" >&5
15935 echo "${ECHO_T}yes" >&6
15937 echo "$as_me: failed program was:" >&5
15938 sed 's/^/| /' conftest.$ac_ext >&5
15940 echo "$as_me:$LINENO: result: no" >&5
15941 echo "${ECHO_T}no" >&6
15942 echo "$as_me:$LINENO: checking for global _timezone variable" >&5
15943 echo $ECHO_N "checking for global _timezone variable... $ECHO_C" >&6
15944 cat >conftest.$ac_ext <<_ACEOF
15947 cat confdefs.h >>conftest.$ac_ext
15948 cat >>conftest.$ac_ext <<_ACEOF
15949 /* end confdefs.h. */
15954 long z2 = _timezone;
15959 rm -f conftest.$ac_objext
15960 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
15961 (eval $ac_compile) 2>conftest.er1
15963 grep -v '^ *+' conftest.er1 >conftest.err
15965 cat conftest.err >&5
15966 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15967 (exit $ac_status); } &&
15968 { ac_try='test -z "$ac_c_werror_flag"
15969 || test ! -s conftest.err'
15970 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15971 (eval $ac_try) 2>&5
15973 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15974 (exit $ac_status); }; } &&
15975 { ac_try='test -s conftest.$ac_objext'
15976 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15977 (eval $ac_try) 2>&5
15979 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15980 (exit $ac_status); }; }; then
15982 cat >>confdefs.h <<\_ACEOF
15983 #define HAVE_UNDERSCORE_TIMEZONE 1
15986 echo "$as_me:$LINENO: result: yes" >&5
15987 echo "${ECHO_T}yes" >&6
15989 echo "$as_me: failed program was:" >&5
15990 sed 's/^/| /' conftest.$ac_ext >&5
15992 echo "$as_me:$LINENO: result: no" >&5
15993 echo "${ECHO_T}no" >&6
15995 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
15997 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
15999 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
16001 # The Ultrix 4.2 mips builtin alloca declared by alloca.h only works
16002 # for constant arguments. Useless!
16003 echo "$as_me:$LINENO: checking for working alloca.h" >&5
16004 echo $ECHO_N "checking for working alloca.h... $ECHO_C" >&6
16005 if test "${ac_cv_working_alloca_h+set}" = set; then
16006 echo $ECHO_N "(cached) $ECHO_C" >&6
16008 if test x$gcc_no_link = xyes; then
16009 { { echo "$as_me:$LINENO: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&5
16010 echo "$as_me: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&2;}
16011 { (exit 1); exit 1; }; }
16013 cat >conftest.$ac_ext <<_ACEOF
16016 cat confdefs.h >>conftest.$ac_ext
16017 cat >>conftest.$ac_ext <<_ACEOF
16018 /* end confdefs.h. */
16019 #include <alloca.h>
16023 char *p = (char *) alloca (2 * sizeof (int));
16028 rm -f conftest.$ac_objext conftest$ac_exeext
16029 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
16030 (eval $ac_link) 2>conftest.er1
16032 grep -v '^ *+' conftest.er1 >conftest.err
16034 cat conftest.err >&5
16035 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16036 (exit $ac_status); } &&
16037 { ac_try='test -z "$ac_c_werror_flag"
16038 || test ! -s conftest.err'
16039 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16040 (eval $ac_try) 2>&5
16042 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16043 (exit $ac_status); }; } &&
16044 { ac_try='test -s conftest$ac_exeext'
16045 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16046 (eval $ac_try) 2>&5
16048 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16049 (exit $ac_status); }; }; then
16050 ac_cv_working_alloca_h=yes
16052 echo "$as_me: failed program was:" >&5
16053 sed 's/^/| /' conftest.$ac_ext >&5
16055 ac_cv_working_alloca_h=no
16057 rm -f conftest.err conftest.$ac_objext \
16058 conftest$ac_exeext conftest.$ac_ext
16060 echo "$as_me:$LINENO: result: $ac_cv_working_alloca_h" >&5
16061 echo "${ECHO_T}$ac_cv_working_alloca_h" >&6
16062 if test $ac_cv_working_alloca_h = yes; then
16064 cat >>confdefs.h <<\_ACEOF
16065 #define HAVE_ALLOCA_H 1
16070 echo "$as_me:$LINENO: checking for alloca" >&5
16071 echo $ECHO_N "checking for alloca... $ECHO_C" >&6
16072 if test "${ac_cv_func_alloca_works+set}" = set; then
16073 echo $ECHO_N "(cached) $ECHO_C" >&6
16075 if test x$gcc_no_link = xyes; then
16076 { { echo "$as_me:$LINENO: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&5
16077 echo "$as_me: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&2;}
16078 { (exit 1); exit 1; }; }
16080 cat >conftest.$ac_ext <<_ACEOF
16083 cat confdefs.h >>conftest.$ac_ext
16084 cat >>conftest.$ac_ext <<_ACEOF
16085 /* end confdefs.h. */
16087 # define alloca __builtin_alloca
16090 # include <malloc.h>
16091 # define alloca _alloca
16094 # include <alloca.h>
16099 # ifndef alloca /* predefined by HP cc +Olibcalls */
16110 char *p = (char *) alloca (1);
16115 rm -f conftest.$ac_objext conftest$ac_exeext
16116 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
16117 (eval $ac_link) 2>conftest.er1
16119 grep -v '^ *+' conftest.er1 >conftest.err
16121 cat conftest.err >&5
16122 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16123 (exit $ac_status); } &&
16124 { ac_try='test -z "$ac_c_werror_flag"
16125 || test ! -s conftest.err'
16126 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16127 (eval $ac_try) 2>&5
16129 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16130 (exit $ac_status); }; } &&
16131 { ac_try='test -s conftest$ac_exeext'
16132 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16133 (eval $ac_try) 2>&5
16135 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16136 (exit $ac_status); }; }; then
16137 ac_cv_func_alloca_works=yes
16139 echo "$as_me: failed program was:" >&5
16140 sed 's/^/| /' conftest.$ac_ext >&5
16142 ac_cv_func_alloca_works=no
16144 rm -f conftest.err conftest.$ac_objext \
16145 conftest$ac_exeext conftest.$ac_ext
16147 echo "$as_me:$LINENO: result: $ac_cv_func_alloca_works" >&5
16148 echo "${ECHO_T}$ac_cv_func_alloca_works" >&6
16150 if test $ac_cv_func_alloca_works = yes; then
16152 cat >>confdefs.h <<\_ACEOF
16153 #define HAVE_ALLOCA 1
16157 # The SVR3 libPW and SVR4 libucb both contain incompatible functions
16158 # that cause trouble. Some versions do not even contain alloca or
16159 # contain a buggy version. If you still want to use their alloca,
16160 # use ar to extract alloca.o from them instead of compiling alloca.c.
16162 ALLOCA=alloca.$ac_objext
16164 cat >>confdefs.h <<\_ACEOF
16169 echo "$as_me:$LINENO: checking whether \`alloca.c' needs Cray hooks" >&5
16170 echo $ECHO_N "checking whether \`alloca.c' needs Cray hooks... $ECHO_C" >&6
16171 if test "${ac_cv_os_cray+set}" = set; then
16172 echo $ECHO_N "(cached) $ECHO_C" >&6
16174 cat >conftest.$ac_ext <<_ACEOF
16177 cat confdefs.h >>conftest.$ac_ext
16178 cat >>conftest.$ac_ext <<_ACEOF
16179 /* end confdefs.h. */
16180 #if defined(CRAY) && ! defined(CRAY2)
16187 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
16188 $EGREP "webecray" >/dev/null 2>&1; then
16196 echo "$as_me:$LINENO: result: $ac_cv_os_cray" >&5
16197 echo "${ECHO_T}$ac_cv_os_cray" >&6
16198 if test $ac_cv_os_cray = yes; then
16199 for ac_func in _getb67 GETB67 getb67; do
16200 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
16201 echo "$as_me:$LINENO: checking for $ac_func" >&5
16202 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
16203 if eval "test \"\${$as_ac_var+set}\" = set"; then
16204 echo $ECHO_N "(cached) $ECHO_C" >&6
16206 if test x$gcc_no_link = xyes; then
16207 { { echo "$as_me:$LINENO: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&5
16208 echo "$as_me: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&2;}
16209 { (exit 1); exit 1; }; }
16211 cat >conftest.$ac_ext <<_ACEOF
16214 cat confdefs.h >>conftest.$ac_ext
16215 cat >>conftest.$ac_ext <<_ACEOF
16216 /* end confdefs.h. */
16217 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
16218 For example, HP-UX 11i <limits.h> declares gettimeofday. */
16219 #define $ac_func innocuous_$ac_func
16221 /* System header to define __stub macros and hopefully few prototypes,
16222 which can conflict with char $ac_func (); below.
16223 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
16224 <limits.h> exists even on freestanding compilers. */
16227 # include <limits.h>
16229 # include <assert.h>
16234 /* Override any gcc2 internal prototype to avoid an error. */
16239 /* We use char because int might match the return type of a gcc2
16240 builtin and then its argument prototype would still apply. */
16242 /* The GNU C library defines this for functions which it implements
16243 to always fail with ENOSYS. Some functions are actually named
16244 something starting with __ and the normal name is an alias. */
16245 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
16248 char (*f) () = $ac_func;
16257 return f != $ac_func;
16262 rm -f conftest.$ac_objext conftest$ac_exeext
16263 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
16264 (eval $ac_link) 2>conftest.er1
16266 grep -v '^ *+' conftest.er1 >conftest.err
16268 cat conftest.err >&5
16269 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16270 (exit $ac_status); } &&
16271 { ac_try='test -z "$ac_c_werror_flag"
16272 || test ! -s conftest.err'
16273 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16274 (eval $ac_try) 2>&5
16276 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16277 (exit $ac_status); }; } &&
16278 { ac_try='test -s conftest$ac_exeext'
16279 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16280 (eval $ac_try) 2>&5
16282 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16283 (exit $ac_status); }; }; then
16284 eval "$as_ac_var=yes"
16286 echo "$as_me: failed program was:" >&5
16287 sed 's/^/| /' conftest.$ac_ext >&5
16289 eval "$as_ac_var=no"
16291 rm -f conftest.err conftest.$ac_objext \
16292 conftest$ac_exeext conftest.$ac_ext
16294 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
16295 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
16296 if test `eval echo '${'$as_ac_var'}'` = yes; then
16298 cat >>confdefs.h <<_ACEOF
16299 #define CRAY_STACKSEG_END $ac_func
16308 echo "$as_me:$LINENO: checking stack direction for C alloca" >&5
16309 echo $ECHO_N "checking stack direction for C alloca... $ECHO_C" >&6
16310 if test "${ac_cv_c_stack_direction+set}" = set; then
16311 echo $ECHO_N "(cached) $ECHO_C" >&6
16313 if test "$cross_compiling" = yes; then
16314 ac_cv_c_stack_direction=0
16316 cat >conftest.$ac_ext <<_ACEOF
16319 cat confdefs.h >>conftest.$ac_ext
16320 cat >>conftest.$ac_ext <<_ACEOF
16321 /* end confdefs.h. */
16323 find_stack_direction ()
16325 static char *addr = 0;
16330 return find_stack_direction ();
16333 return (&dummy > addr) ? 1 : -1;
16339 exit (find_stack_direction () < 0);
16342 rm -f conftest$ac_exeext
16343 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
16344 (eval $ac_link) 2>&5
16346 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16347 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
16348 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16349 (eval $ac_try) 2>&5
16351 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16352 (exit $ac_status); }; }; then
16353 ac_cv_c_stack_direction=1
16355 echo "$as_me: program exited with status $ac_status" >&5
16356 echo "$as_me: failed program was:" >&5
16357 sed 's/^/| /' conftest.$ac_ext >&5
16359 ( exit $ac_status )
16360 ac_cv_c_stack_direction=-1
16362 rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
16365 echo "$as_me:$LINENO: result: $ac_cv_c_stack_direction" >&5
16366 echo "${ECHO_T}$ac_cv_c_stack_direction" >&6
16368 cat >>confdefs.h <<_ACEOF
16369 #define STACK_DIRECTION $ac_cv_c_stack_direction
16376 for ac_prog in perl
16378 # Extract the first word of "$ac_prog", so it can be a program name with args.
16379 set dummy $ac_prog; ac_word=$2
16380 echo "$as_me:$LINENO: checking for $ac_word" >&5
16381 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
16382 if test "${ac_cv_prog_PERL+set}" = set; then
16383 echo $ECHO_N "(cached) $ECHO_C" >&6
16385 if test -n "$PERL"; then
16386 ac_cv_prog_PERL="$PERL" # Let the user override the test.
16388 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
16389 for as_dir in $PATH
16392 test -z "$as_dir" && as_dir=.
16393 for ac_exec_ext in '' $ac_executable_extensions; do
16394 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
16395 ac_cv_prog_PERL="$ac_prog"
16396 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
16404 PERL=$ac_cv_prog_PERL
16405 if test -n "$PERL"; then
16406 echo "$as_me:$LINENO: result: $PERL" >&5
16407 echo "${ECHO_T}$PERL" >&6
16409 echo "$as_me:$LINENO: result: no" >&5
16410 echo "${ECHO_T}no" >&6
16413 test -n "$PERL" && break
16415 test -n "$PERL" || PERL="false"
16419 SIGNAL_HANDLER_AUX=
16423 SIGNAL_HANDLER=include/i386-signal.h
16425 sparc*-sun-solaris*)
16426 SIGNAL_HANDLER=include/sparc-signal.h
16429 # SYSDEP_SOURCES=sysdep/ia64.c
16430 # test -d sysdep || mkdir sysdep
16433 SIGNAL_HANDLER=include/pa-signal.h
16436 SIGNAL_HANDLER=include/hppa-signal.h
16439 SIGNAL_HANDLER=include/dwarf2-signal.h
16442 SIGNAL_HANDLER=include/powerpc-signal.h
16445 SIGNAL_HANDLER=include/dwarf2-signal.h
16448 SIGNAL_HANDLER=include/s390-signal.h
16451 SIGNAL_HANDLER=include/x86_64-signal.h
16452 SIGNAL_HANDLER_AUX=include/i386-signal.h
16455 SIGNAL_HANDLER=include/dwarf2-signal.h
16458 SIGNAL_HANDLER=include/sh-signal.h
16461 SIGNAL_HANDLER=include/win32-signal.h
16464 SIGNAL_HANDLER=include/mips-signal.h
16467 SIGNAL_HANDLER=include/darwin-signal.h
16470 SIGNAL_HANDLER=include/default-signal.h
16474 # If we're using sjlj exceptions, forget what we just learned.
16475 if test "$enable_sjlj_exceptions" = yes; then
16476 SIGNAL_HANDLER=include/default-signal.h
16477 SIGNAL_HANDLER_AUX=
16482 if test -z "$SIGNAL_HANDLER_AUX"; then
16483 SIGNAL_HANDLER_AUX=$SIGNAL_HANDLER
16486 ac_config_links="$ac_config_links include/java-signal.h:$SIGNAL_HANDLER include/java-signal-aux.h:$SIGNAL_HANDLER_AUX"
16489 if test "${multilib}" = "yes"; then
16490 multilib_arg="--enable-multilib"
16495 # See if we support thread-local storage.
16497 # Check whether --enable-tls or --disable-tls was given.
16498 if test "${enable_tls+set}" = set; then
16499 enableval="$enable_tls"
16501 case "$enableval" in
16503 *) { { echo "$as_me:$LINENO: error: Argument to enable/disable tls must be yes or no" >&5
16504 echo "$as_me: error: Argument to enable/disable tls must be yes or no" >&2;}
16505 { (exit 1); exit 1; }; } ;;
16512 echo "$as_me:$LINENO: checking whether the target supports thread-local storage" >&5
16513 echo $ECHO_N "checking whether the target supports thread-local storage... $ECHO_C" >&6
16514 if test "${have_tls+set}" = set; then
16515 echo $ECHO_N "(cached) $ECHO_C" >&6
16518 if test "$cross_compiling" = yes; then
16519 cat >conftest.$ac_ext <<_ACEOF
16522 rm -f conftest.$ac_objext
16523 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
16524 (eval $ac_compile) 2>conftest.er1
16526 grep -v '^ *+' conftest.er1 >conftest.err
16528 cat conftest.err >&5
16529 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16530 (exit $ac_status); } &&
16531 { ac_try='test -z "$ac_c_werror_flag"
16532 || test ! -s conftest.err'
16533 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16534 (eval $ac_try) 2>&5
16536 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16537 (exit $ac_status); }; } &&
16538 { ac_try='test -s conftest.$ac_objext'
16539 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16540 (eval $ac_try) 2>&5
16542 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16543 (exit $ac_status); }; }; then
16546 echo "$as_me: failed program was:" >&5
16547 sed 's/^/| /' conftest.$ac_ext >&5
16551 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
16554 cat >conftest.$ac_ext <<_ACEOF
16555 __thread int a; int b; int main() { return a = b; }
16557 rm -f conftest$ac_exeext
16558 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
16559 (eval $ac_link) 2>&5
16561 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16562 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
16563 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16564 (eval $ac_try) 2>&5
16566 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16567 (exit $ac_status); }; }; then
16568 save_LDFLAGS="$LDFLAGS"
16569 LDFLAGS="-static $LDFLAGS"
16570 if test "$cross_compiling" = yes; then
16571 { { echo "$as_me:$LINENO: error: cannot run test program while cross compiling
16572 See \`config.log' for more details." >&5
16573 echo "$as_me: error: cannot run test program while cross compiling
16574 See \`config.log' for more details." >&2;}
16575 { (exit 1); exit 1; }; }
16577 cat >conftest.$ac_ext <<_ACEOF
16578 __thread int a; int b; int main() { return a = b; }
16580 rm -f conftest$ac_exeext
16581 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
16582 (eval $ac_link) 2>&5
16584 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16585 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
16586 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16587 (eval $ac_try) 2>&5
16589 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16590 (exit $ac_status); }; }; then
16593 echo "$as_me: program exited with status $ac_status" >&5
16594 echo "$as_me: failed program was:" >&5
16595 sed 's/^/| /' conftest.$ac_ext >&5
16597 ( exit $ac_status )
16600 rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
16602 LDFLAGS="$save_LDFLAGS"
16604 echo "$as_me: program exited with status $ac_status" >&5
16605 echo "$as_me: failed program was:" >&5
16606 sed 's/^/| /' conftest.$ac_ext >&5
16608 ( exit $ac_status )
16611 rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
16614 echo "$as_me:$LINENO: result: $have_tls" >&5
16615 echo "${ECHO_T}$have_tls" >&6
16616 if test "$enable_tls $have_tls" = "yes yes"; then
16618 cat >>confdefs.h <<\_ACEOF
16624 # Check if linker supports static linking on a per library basis
16625 LD_START_STATIC_SPEC=
16626 LD_FINISH_STATIC_SPEC=
16627 if $LD --help 2>&1 | grep -q -e -call_shared ; then
16628 if $LD --help 2>&1 | grep -q -e -non_shared ; then
16629 LD_START_STATIC_SPEC='%{static-libgcj:-non_shared}'
16630 LD_FINISH_STATIC_SPEC='%{static-libgcj:-call_shared}'
16636 here=`${PWDCMD-pwd}`
16639 # We get this from the environment.
16642 ac_config_files="$ac_config_files Makefile libgcj.pc libgcj.spec libgcj-test.spec gcj/Makefile include/Makefile testsuite/Makefile"
16645 ac_config_files="$ac_config_files scripts/jar"
16648 ac_config_commands="$ac_config_commands default"
16651 cat >confcache <<\_ACEOF
16652 # This file is a shell script that caches the results of configure
16653 # tests run on this system so they can be shared between configure
16654 # scripts and configure runs, see configure's option --config-cache.
16655 # It is not useful on other systems. If it contains results you don't
16656 # want to keep, you may remove or edit it.
16658 # config.status only pays attention to the cache file if you give it
16659 # the --recheck option to rerun configure.
16661 # `ac_cv_env_foo' variables (set or unset) will be overridden when
16662 # loading this file, other *unset* `ac_cv_foo' will be assigned the
16663 # following values.
16667 # The following way of writing the cache mishandles newlines in values,
16668 # but we know of no workaround that is simple, portable, and efficient.
16669 # So, don't put newlines in cache variables' values.
16670 # Ultrix sh set writes to stderr and can't be redirected directly,
16671 # and sets the high bit in the cache file unless we assign to the vars.
16674 case `(ac_space=' '; set | grep ac_space) 2>&1` in
16676 # `set' does not quote correctly, so add quotes (double-quote
16677 # substitution turns \\\\ into \\, and sed turns \\ into \).
16680 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p"
16683 # `set' quotes correctly as required by POSIX, so do not add quotes.
16685 "s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1=\\2/p"
16692 s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/
16694 /^ac_cv_env/!s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/
16696 if diff $cache_file confcache >/dev/null 2>&1; then :; else
16697 if test -w $cache_file; then
16698 test "x$cache_file" != "x/dev/null" && echo "updating cache $cache_file"
16699 cat confcache >$cache_file
16701 echo "not updating unwritable cache $cache_file"
16706 test "x$prefix" = xNONE && prefix=$ac_default_prefix
16707 # Let make expand exec_prefix.
16708 test "x$exec_prefix" = xNONE && exec_prefix='${prefix}'
16710 # VPATH may cause trouble with some makes, so we remove $(srcdir),
16711 # ${srcdir} and @srcdir@ from VPATH if srcdir is ".", strip leading and
16712 # trailing colons and then remove the whole line if VPATH becomes empty
16713 # (actually we leave an empty line to preserve line numbers).
16714 if test "x$srcdir" = x.; then
16715 ac_vpsub='/^[ ]*VPATH[ ]*=/{
16716 s/:*\$(srcdir):*/:/;
16717 s/:*\${srcdir}:*/:/;
16719 s/^\([^=]*=[ ]*\):*/\1/;
16725 DEFS=-DHAVE_CONFIG_H
16729 for ac_i in : $LIBOBJS; do test "x$ac_i" = x: && continue
16730 # 1. Remove the extension, and $U if already installed.
16731 ac_i=`echo "$ac_i" |
16732 sed 's/\$U\././;s/\.o$//;s/\.obj$//'`
16734 ac_libobjs="$ac_libobjs $ac_i\$U.$ac_objext"
16735 ac_ltlibobjs="$ac_ltlibobjs $ac_i"'$U.lo'
16737 LIBOBJS=$ac_libobjs
16739 LTLIBOBJS=$ac_ltlibobjs
16742 if test -z "${AMDEP_TRUE}" && test -z "${AMDEP_FALSE}"; then
16743 { { echo "$as_me:$LINENO: error: conditional \"AMDEP\" was never defined.
16744 Usually this means the macro was only invoked conditionally." >&5
16745 echo "$as_me: error: conditional \"AMDEP\" was never defined.
16746 Usually this means the macro was only invoked conditionally." >&2;}
16747 { (exit 1); exit 1; }; }
16749 if test -z "${am__fastdepCC_TRUE}" && test -z "${am__fastdepCC_FALSE}"; then
16750 { { echo "$as_me:$LINENO: error: conditional \"am__fastdepCC\" was never defined.
16751 Usually this means the macro was only invoked conditionally." >&5
16752 echo "$as_me: error: conditional \"am__fastdepCC\" was never defined.
16753 Usually this means the macro was only invoked conditionally." >&2;}
16754 { (exit 1); exit 1; }; }
16756 if test -z "${am__fastdepCXX_TRUE}" && test -z "${am__fastdepCXX_FALSE}"; then
16757 { { echo "$as_me:$LINENO: error: conditional \"am__fastdepCXX\" was never defined.
16758 Usually this means the macro was only invoked conditionally." >&5
16759 echo "$as_me: error: conditional \"am__fastdepCXX\" was never defined.
16760 Usually this means the macro was only invoked conditionally." >&2;}
16761 { (exit 1); exit 1; }; }
16763 if test -z "${BASH_JAR_TRUE}" && test -z "${BASH_JAR_FALSE}"; then
16764 { { echo "$as_me:$LINENO: error: conditional \"BASH_JAR\" was never defined.
16765 Usually this means the macro was only invoked conditionally." >&5
16766 echo "$as_me: error: conditional \"BASH_JAR\" was never defined.
16767 Usually this means the macro was only invoked conditionally." >&2;}
16768 { (exit 1); exit 1; }; }
16770 if test -z "${MAINTAINER_MODE_TRUE}" && test -z "${MAINTAINER_MODE_FALSE}"; then
16771 { { echo "$as_me:$LINENO: error: conditional \"MAINTAINER_MODE\" was never defined.
16772 Usually this means the macro was only invoked conditionally." >&5
16773 echo "$as_me: error: conditional \"MAINTAINER_MODE\" was never defined.
16774 Usually this means the macro was only invoked conditionally." >&2;}
16775 { (exit 1); exit 1; }; }
16777 if test -z "${XLIB_AWT_TRUE}" && test -z "${XLIB_AWT_FALSE}"; then
16778 { { echo "$as_me:$LINENO: error: conditional \"XLIB_AWT\" was never defined.
16779 Usually this means the macro was only invoked conditionally." >&5
16780 echo "$as_me: error: conditional \"XLIB_AWT\" was never defined.
16781 Usually this means the macro was only invoked conditionally." >&2;}
16782 { (exit 1); exit 1; }; }
16784 if test -z "${am__fastdepGCJ_TRUE}" && test -z "${am__fastdepGCJ_FALSE}"; then
16785 { { echo "$as_me:$LINENO: error: conditional \"am__fastdepGCJ\" was never defined.
16786 Usually this means the macro was only invoked conditionally." >&5
16787 echo "$as_me: error: conditional \"am__fastdepGCJ\" was never defined.
16788 Usually this means the macro was only invoked conditionally." >&2;}
16789 { (exit 1); exit 1; }; }
16791 if test -z "${TESTSUBDIR_TRUE}" && test -z "${TESTSUBDIR_FALSE}"; then
16792 { { echo "$as_me:$LINENO: error: conditional \"TESTSUBDIR\" was never defined.
16793 Usually this means the macro was only invoked conditionally." >&5
16794 echo "$as_me: error: conditional \"TESTSUBDIR\" was never defined.
16795 Usually this means the macro was only invoked conditionally." >&2;}
16796 { (exit 1); exit 1; }; }
16798 if test -z "${JAVA_HOME_SET_TRUE}" && test -z "${JAVA_HOME_SET_FALSE}"; then
16799 { { echo "$as_me:$LINENO: error: conditional \"JAVA_HOME_SET\" was never defined.
16800 Usually this means the macro was only invoked conditionally." >&5
16801 echo "$as_me: error: conditional \"JAVA_HOME_SET\" was never defined.
16802 Usually this means the macro was only invoked conditionally." >&2;}
16803 { (exit 1); exit 1; }; }
16805 if test -z "${USING_WIN32_PLATFORM_TRUE}" && test -z "${USING_WIN32_PLATFORM_FALSE}"; then
16806 { { echo "$as_me:$LINENO: error: conditional \"USING_WIN32_PLATFORM\" was never defined.
16807 Usually this means the macro was only invoked conditionally." >&5
16808 echo "$as_me: error: conditional \"USING_WIN32_PLATFORM\" was never defined.
16809 Usually this means the macro was only invoked conditionally." >&2;}
16810 { (exit 1); exit 1; }; }
16812 if test -z "${USING_POSIX_PLATFORM_TRUE}" && test -z "${USING_POSIX_PLATFORM_FALSE}"; then
16813 { { echo "$as_me:$LINENO: error: conditional \"USING_POSIX_PLATFORM\" was never defined.
16814 Usually this means the macro was only invoked conditionally." >&5
16815 echo "$as_me: error: conditional \"USING_POSIX_PLATFORM\" was never defined.
16816 Usually this means the macro was only invoked conditionally." >&2;}
16817 { (exit 1); exit 1; }; }
16819 if test -z "${USING_DARWIN_CRT_TRUE}" && test -z "${USING_DARWIN_CRT_FALSE}"; then
16820 { { echo "$as_me:$LINENO: error: conditional \"USING_DARWIN_CRT\" was never defined.
16821 Usually this means the macro was only invoked conditionally." >&5
16822 echo "$as_me: error: conditional \"USING_DARWIN_CRT\" was never defined.
16823 Usually this means the macro was only invoked conditionally." >&2;}
16824 { (exit 1); exit 1; }; }
16826 if test -z "${USING_BOEHMGC_TRUE}" && test -z "${USING_BOEHMGC_FALSE}"; then
16827 { { echo "$as_me:$LINENO: error: conditional \"USING_BOEHMGC\" was never defined.
16828 Usually this means the macro was only invoked conditionally." >&5
16829 echo "$as_me: error: conditional \"USING_BOEHMGC\" was never defined.
16830 Usually this means the macro was only invoked conditionally." >&2;}
16831 { (exit 1); exit 1; }; }
16833 if test -z "${USING_NOGC_TRUE}" && test -z "${USING_NOGC_FALSE}"; then
16834 { { echo "$as_me:$LINENO: error: conditional \"USING_NOGC\" was never defined.
16835 Usually this means the macro was only invoked conditionally." >&5
16836 echo "$as_me: error: conditional \"USING_NOGC\" was never defined.
16837 Usually this means the macro was only invoked conditionally." >&2;}
16838 { (exit 1); exit 1; }; }
16840 if test -z "${USING_POSIX_THREADS_TRUE}" && test -z "${USING_POSIX_THREADS_FALSE}"; then
16841 { { echo "$as_me:$LINENO: error: conditional \"USING_POSIX_THREADS\" was never defined.
16842 Usually this means the macro was only invoked conditionally." >&5
16843 echo "$as_me: error: conditional \"USING_POSIX_THREADS\" was never defined.
16844 Usually this means the macro was only invoked conditionally." >&2;}
16845 { (exit 1); exit 1; }; }
16847 if test -z "${USING_WIN32_THREADS_TRUE}" && test -z "${USING_WIN32_THREADS_FALSE}"; then
16848 { { echo "$as_me:$LINENO: error: conditional \"USING_WIN32_THREADS\" was never defined.
16849 Usually this means the macro was only invoked conditionally." >&5
16850 echo "$as_me: error: conditional \"USING_WIN32_THREADS\" was never defined.
16851 Usually this means the macro was only invoked conditionally." >&2;}
16852 { (exit 1); exit 1; }; }
16854 if test -z "${USING_NO_THREADS_TRUE}" && test -z "${USING_NO_THREADS_FALSE}"; then
16855 { { echo "$as_me:$LINENO: error: conditional \"USING_NO_THREADS\" was never defined.
16856 Usually this means the macro was only invoked conditionally." >&5
16857 echo "$as_me: error: conditional \"USING_NO_THREADS\" was never defined.
16858 Usually this means the macro was only invoked conditionally." >&2;}
16859 { (exit 1); exit 1; }; }
16861 if test -z "${USING_GCC_TRUE}" && test -z "${USING_GCC_FALSE}"; then
16862 { { echo "$as_me:$LINENO: error: conditional \"USING_GCC\" was never defined.
16863 Usually this means the macro was only invoked conditionally." >&5
16864 echo "$as_me: error: conditional \"USING_GCC\" was never defined.
16865 Usually this means the macro was only invoked conditionally." >&2;}
16866 { (exit 1); exit 1; }; }
16868 if test -z "${NATIVE_TRUE}" && test -z "${NATIVE_FALSE}"; then
16869 { { echo "$as_me:$LINENO: error: conditional \"NATIVE\" was never defined.
16870 Usually this means the macro was only invoked conditionally." >&5
16871 echo "$as_me: error: conditional \"NATIVE\" was never defined.
16872 Usually this means the macro was only invoked conditionally." >&2;}
16873 { (exit 1); exit 1; }; }
16875 if test -z "${NEEDS_DATA_START_TRUE}" && test -z "${NEEDS_DATA_START_FALSE}"; then
16876 { { echo "$as_me:$LINENO: error: conditional \"NEEDS_DATA_START\" was never defined.
16877 Usually this means the macro was only invoked conditionally." >&5
16878 echo "$as_me: error: conditional \"NEEDS_DATA_START\" was never defined.
16879 Usually this means the macro was only invoked conditionally." >&2;}
16880 { (exit 1); exit 1; }; }
16883 : ${CONFIG_STATUS=./config.status}
16884 ac_clean_files_save=$ac_clean_files
16885 ac_clean_files="$ac_clean_files $CONFIG_STATUS"
16886 { echo "$as_me:$LINENO: creating $CONFIG_STATUS" >&5
16887 echo "$as_me: creating $CONFIG_STATUS" >&6;}
16888 cat >$CONFIG_STATUS <<_ACEOF
16890 # Generated by $as_me.
16891 # Run this file to recreate the current configuration.
16892 # Compiler output produced by configure, useful for debugging
16893 # configure, is in config.log if it exists.
16896 ac_cs_recheck=false
16898 SHELL=\${CONFIG_SHELL-$SHELL}
16901 cat >>$CONFIG_STATUS <<\_ACEOF
16902 ## --------------------- ##
16903 ## M4sh Initialization. ##
16904 ## --------------------- ##
16906 # Be Bourne compatible
16907 if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then
16910 # Zsh 3.x and 4.x performs word splitting on ${1+"$@"}, which
16911 # is contrary to our usage. Disable this feature.
16912 alias -g '${1+"$@"}'='"$@"'
16913 elif test -n "${BASH_VERSION+set}" && (set -o posix) >/dev/null 2>&1; then
16916 DUALCASE=1; export DUALCASE # for MKS sh
16918 # Support unset when possible.
16919 if ( (MAIL=60; unset MAIL) || exit) >/dev/null 2>&1; then
16926 # Work around bugs in pre-3.0 UWIN ksh.
16927 $as_unset ENV MAIL MAILPATH
16934 LANG LANGUAGE LC_ADDRESS LC_ALL LC_COLLATE LC_CTYPE LC_IDENTIFICATION \
16935 LC_MEASUREMENT LC_MESSAGES LC_MONETARY LC_NAME LC_NUMERIC LC_PAPER \
16936 LC_TELEPHONE LC_TIME
16938 if (set +x; test -z "`(eval $as_var=C; export $as_var) 2>&1`"); then
16939 eval $as_var=C; export $as_var
16945 # Required to use basename.
16946 if expr a : '\(a\)' >/dev/null 2>&1; then
16952 if (basename /) >/dev/null 2>&1 && test "X`basename / 2>&1`" = "X/"; then
16953 as_basename=basename
16959 # Name of the executable.
16960 as_me=`$as_basename "$0" ||
16961 $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
16962 X"$0" : 'X\(//\)$' \| \
16963 X"$0" : 'X\(/\)$' \| \
16964 . : '\(.\)' 2>/dev/null ||
16966 sed '/^.*\/\([^/][^/]*\)\/*$/{ s//\1/; q; }
16967 /^X\/\(\/\/\)$/{ s//\1/; q; }
16968 /^X\/\(\/\).*/{ s//\1/; q; }
16972 # PATH needs CR, and LINENO needs CR and PATH.
16973 # Avoid depending upon Character Ranges.
16974 as_cr_letters='abcdefghijklmnopqrstuvwxyz'
16975 as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
16976 as_cr_Letters=$as_cr_letters$as_cr_LETTERS
16977 as_cr_digits='0123456789'
16978 as_cr_alnum=$as_cr_Letters$as_cr_digits
16980 # The user is always right.
16981 if test "${PATH_SEPARATOR+set}" != set; then
16982 echo "#! /bin/sh" >conf$$.sh
16983 echo "exit 0" >>conf$$.sh
16985 if (PATH="/nonexistent;."; conf$$.sh) >/dev/null 2>&1; then
16994 as_lineno_1=$LINENO
16995 as_lineno_2=$LINENO
16996 as_lineno_3=`(expr $as_lineno_1 + 1) 2>/dev/null`
16997 test "x$as_lineno_1" != "x$as_lineno_2" &&
16998 test "x$as_lineno_3" = "x$as_lineno_2" || {
16999 # Find who we are. Look in the path if we contain no path at all
17002 *[\\/]* ) as_myself=$0 ;;
17003 *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
17004 for as_dir in $PATH
17007 test -z "$as_dir" && as_dir=.
17008 test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
17013 # We did not find ourselves, most probably we were run as `sh COMMAND'
17014 # in which case we are not to be found in the path.
17015 if test "x$as_myself" = x; then
17018 if test ! -f "$as_myself"; then
17019 { { echo "$as_me:$LINENO: error: cannot find myself; rerun with an absolute path" >&5
17020 echo "$as_me: error: cannot find myself; rerun with an absolute path" >&2;}
17021 { (exit 1); exit 1; }; }
17023 case $CONFIG_SHELL in
17025 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
17026 for as_dir in /bin$PATH_SEPARATOR/usr/bin$PATH_SEPARATOR$PATH
17029 test -z "$as_dir" && as_dir=.
17030 for as_base in sh bash ksh sh5; do
17033 if ("$as_dir/$as_base" -c '
17034 as_lineno_1=$LINENO
17035 as_lineno_2=$LINENO
17036 as_lineno_3=`(expr $as_lineno_1 + 1) 2>/dev/null`
17037 test "x$as_lineno_1" != "x$as_lineno_2" &&
17038 test "x$as_lineno_3" = "x$as_lineno_2" ') 2>/dev/null; then
17039 $as_unset BASH_ENV || test "${BASH_ENV+set}" != set || { BASH_ENV=; export BASH_ENV; }
17040 $as_unset ENV || test "${ENV+set}" != set || { ENV=; export ENV; }
17041 CONFIG_SHELL=$as_dir/$as_base
17042 export CONFIG_SHELL
17043 exec "$CONFIG_SHELL" "$0" ${1+"$@"}
17051 # Create $as_me.lineno as a copy of $as_myself, but with $LINENO
17052 # uniformly replaced by the line number. The first 'sed' inserts a
17053 # line-number line before each line; the second 'sed' does the real
17054 # work. The second script uses 'N' to pair each line-number line
17055 # with the numbered line, and appends trailing '-' during
17056 # substitution so that $LINENO is not a special case at line end.
17057 # (Raja R Harinath suggested sed '=', and Paul Eggert wrote the
17058 # second 'sed' script. Blame Lee E. McMahon for sed's syntax. :-)
17059 sed '=' <$as_myself |
17064 s,^\(['$as_cr_digits']*\)\(.*\)[$]LINENO\([^'$as_cr_alnum'_]\),\1\2\1\3,
17067 s,^['$as_cr_digits']*\n,,
17068 ' >$as_me.lineno &&
17069 chmod +x $as_me.lineno ||
17070 { { echo "$as_me:$LINENO: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&5
17071 echo "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2;}
17072 { (exit 1); exit 1; }; }
17074 # Don't try to exec as it changes $[0], causing all sort of problems
17075 # (the dirname of $[0] is not the place where we might find the
17076 # original and so on. Autoconf is especially sensible to this).
17078 # Exit status is that of the last command.
17083 case `echo "testing\c"; echo 1,2,3`,`echo -n testing; echo 1,2,3` in
17084 *c*,-n*) ECHO_N= ECHO_C='
17086 *c*,* ) ECHO_N=-n ECHO_C= ECHO_T= ;;
17087 *) ECHO_N= ECHO_C='\c' ECHO_T= ;;
17090 if expr a : '\(a\)' >/dev/null 2>&1; then
17096 rm -f conf$$ conf$$.exe conf$$.file
17098 if ln -s conf$$.file conf$$ 2>/dev/null; then
17099 # We could just check for DJGPP; but this test a) works b) is more generic
17100 # and c) will remain valid once DJGPP supports symlinks (DJGPP 2.04).
17101 if test -f conf$$.exe; then
17102 # Don't use ln at all; we don't have any links
17107 elif ln conf$$.file conf$$ 2>/dev/null; then
17112 rm -f conf$$ conf$$.exe conf$$.file
17114 if mkdir -p . 2>/dev/null; then
17117 test -d ./-p && rmdir ./-p
17121 as_executable_p="test -f"
17123 # Sed expression to map a string onto a valid CPP name.
17124 as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
17126 # Sed expression to map a string onto a valid variable name.
17127 as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
17131 # We need space, tab and new line, in precisely that order.
17141 # Open the log real soon, to keep \$[0] and so on meaningful, and to
17142 # report actual input values of CONFIG_FILES etc. instead of their
17143 # values after options handling. Logging --version etc. is OK.
17147 sed 'h;s/./-/g;s/^.../## /;s/...$/ ##/;p;x;p;x' <<_ASBOX
17148 ## Running $as_me. ##
17153 This file was extended by libjava $as_me version-unused, which was
17154 generated by GNU Autoconf 2.59. Invocation command line was
17156 CONFIG_FILES = $CONFIG_FILES
17157 CONFIG_HEADERS = $CONFIG_HEADERS
17158 CONFIG_LINKS = $CONFIG_LINKS
17159 CONFIG_COMMANDS = $CONFIG_COMMANDS
17163 echo "on `(hostname || uname -n) 2>/dev/null | sed 1q`" >&5
17167 # Files that config.status was made for.
17168 if test -n "$ac_config_files"; then
17169 echo "config_files=\"$ac_config_files\"" >>$CONFIG_STATUS
17172 if test -n "$ac_config_headers"; then
17173 echo "config_headers=\"$ac_config_headers\"" >>$CONFIG_STATUS
17176 if test -n "$ac_config_links"; then
17177 echo "config_links=\"$ac_config_links\"" >>$CONFIG_STATUS
17180 if test -n "$ac_config_commands"; then
17181 echo "config_commands=\"$ac_config_commands\"" >>$CONFIG_STATUS
17184 cat >>$CONFIG_STATUS <<\_ACEOF
17187 \`$as_me' instantiates files from templates according to the
17188 current configuration.
17190 Usage: $0 [OPTIONS] [FILE]...
17192 -h, --help print this help, then exit
17193 -V, --version print version number, then exit
17194 -q, --quiet do not print progress messages
17195 -d, --debug don't remove temporary files
17196 --recheck update $as_me by reconfiguring in the same conditions
17197 --file=FILE[:TEMPLATE]
17198 instantiate the configuration file FILE
17199 --header=FILE[:TEMPLATE]
17200 instantiate the configuration header FILE
17202 Configuration files:
17205 Configuration headers:
17208 Configuration links:
17211 Configuration commands:
17214 Report bugs to <bug-autoconf@gnu.org>."
17217 cat >>$CONFIG_STATUS <<_ACEOF
17219 libjava config.status version-unused
17220 configured by $0, generated by GNU Autoconf 2.59,
17221 with options \\"`echo "$ac_configure_args" | sed 's/[\\""\`\$]/\\\\&/g'`\\"
17223 Copyright (C) 2003 Free Software Foundation, Inc.
17224 This config.status script is free software; the Free Software Foundation
17225 gives unlimited permission to copy, distribute and modify it."
17230 cat >>$CONFIG_STATUS <<\_ACEOF
17231 # If no file are specified by the user, then we need to provide default
17232 # value. By we need to know if files were specified by the user.
17238 ac_option=`expr "x$1" : 'x\([^=]*\)='`
17239 ac_optarg=`expr "x$1" : 'x[^=]*=\(.*\)'`
17247 *) # This is not an option, so the user has probably given explicit
17250 ac_need_defaults=false;;
17254 # Handling of the options.
17256 cat >>$CONFIG_STATUS <<\_ACEOF
17257 -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r)
17259 --version | --vers* | -V )
17260 echo "$ac_cs_version"; exit 0 ;;
17262 # Conflict between --help and --header
17263 { { echo "$as_me:$LINENO: error: ambiguous option: $1
17264 Try \`$0 --help' for more information." >&5
17265 echo "$as_me: error: ambiguous option: $1
17266 Try \`$0 --help' for more information." >&2;}
17267 { (exit 1); exit 1; }; };;
17268 --help | --hel | -h )
17269 echo "$ac_cs_usage"; exit 0 ;;
17270 --debug | --d* | -d )
17272 --file | --fil | --fi | --f )
17274 CONFIG_FILES="$CONFIG_FILES $ac_optarg"
17275 ac_need_defaults=false;;
17276 --header | --heade | --head | --hea )
17278 CONFIG_HEADERS="$CONFIG_HEADERS $ac_optarg"
17279 ac_need_defaults=false;;
17280 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
17281 | -silent | --silent | --silen | --sile | --sil | --si | --s)
17284 # This is an error.
17285 -*) { { echo "$as_me:$LINENO: error: unrecognized option: $1
17286 Try \`$0 --help' for more information." >&5
17287 echo "$as_me: error: unrecognized option: $1
17288 Try \`$0 --help' for more information." >&2;}
17289 { (exit 1); exit 1; }; } ;;
17291 *) ac_config_targets="$ac_config_targets $1" ;;
17297 ac_configure_extra_args=
17299 if $ac_cs_silent; then
17301 ac_configure_extra_args="$ac_configure_extra_args --silent"
17305 cat >>$CONFIG_STATUS <<_ACEOF
17306 if \$ac_cs_recheck; then
17307 echo "running $SHELL $0 " $ac_configure_args \$ac_configure_extra_args " --no-create --no-recursion" >&6
17308 exec $SHELL $0 $ac_configure_args \$ac_configure_extra_args --no-create --no-recursion
17313 cat >>$CONFIG_STATUS <<_ACEOF
17315 # INIT-COMMANDS section.
17318 AMDEP_TRUE="$AMDEP_TRUE" ac_aux_dir="$ac_aux_dir"
17322 with_multisubdir=${with_multisubdir}
17323 ac_configure_args="${multilib_arg} ${ac_configure_args}"
17324 CONFIG_SHELL=${CONFIG_SHELL-/bin/sh}
17325 libgcj_basedir=${libgcj_basedir}
17328 ORIGINAL_LD_FOR_MULTILIBS="${ORIGINAL_LD_FOR_MULTILIBS}"
17335 cat >>$CONFIG_STATUS <<\_ACEOF
17336 for ac_config_target in $ac_config_targets
17338 case "$ac_config_target" in
17339 # Handling of arguments.
17340 "Makefile" ) CONFIG_FILES="$CONFIG_FILES Makefile" ;;
17341 "libgcj.pc" ) CONFIG_FILES="$CONFIG_FILES libgcj.pc" ;;
17342 "libgcj.spec" ) CONFIG_FILES="$CONFIG_FILES libgcj.spec" ;;
17343 "libgcj-test.spec" ) CONFIG_FILES="$CONFIG_FILES libgcj-test.spec" ;;
17344 "gcj/Makefile" ) CONFIG_FILES="$CONFIG_FILES gcj/Makefile" ;;
17345 "include/Makefile" ) CONFIG_FILES="$CONFIG_FILES include/Makefile" ;;
17346 "testsuite/Makefile" ) CONFIG_FILES="$CONFIG_FILES testsuite/Makefile" ;;
17347 "scripts/jar" ) CONFIG_FILES="$CONFIG_FILES scripts/jar" ;;
17348 "include/platform.h" ) CONFIG_LINKS="$CONFIG_LINKS include/platform.h:include/$PLATFORMH" ;;
17349 "java/io/natFile.cc" ) CONFIG_LINKS="$CONFIG_LINKS java/io/natFile.cc:java/io/natFile${FILE-${PLATFORM}}.cc" ;;
17350 "java/lang/ConcreteProcess.java" ) CONFIG_LINKS="$CONFIG_LINKS java/lang/ConcreteProcess.java:java/lang/${PLATFORM}Process.java" ;;
17351 "java/lang/natConcreteProcess.cc" ) CONFIG_LINKS="$CONFIG_LINKS java/lang/natConcreteProcess.cc:java/lang/nat${PLATFORM}Process.cc" ;;
17352 "java/net/natInetAddress.cc" ) CONFIG_LINKS="$CONFIG_LINKS java/net/natInetAddress.cc:java/net/natInetAddress${PLATFORMNET}.cc" ;;
17353 "java/net/natVMNetworkInterface.cc" ) CONFIG_LINKS="$CONFIG_LINKS java/net/natVMNetworkInterface.cc:java/net/natVMNetworkInterface${PLATFORMNET}.cc" ;;
17354 "gnu/java/net/natPlainSocketImpl.cc" ) CONFIG_LINKS="$CONFIG_LINKS gnu/java/net/natPlainSocketImpl.cc:gnu/java/net/natPlainSocketImpl${PLATFORMNET}.cc" ;;
17355 "gnu/java/net/natPlainDatagramSocketImpl.cc" ) CONFIG_LINKS="$CONFIG_LINKS gnu/java/net/natPlainDatagramSocketImpl.cc:gnu/java/net/natPlainDatagramSocketImpl${PLATFORMNET}.cc" ;;
17356 "gnu/java/nio/natPipeImpl.cc" ) CONFIG_LINKS="$CONFIG_LINKS gnu/java/nio/natPipeImpl.cc:gnu/java/nio/natPipeImpl${PLATFORM}.cc" ;;
17357 "gnu/java/nio/natSelectorImpl.cc" ) CONFIG_LINKS="$CONFIG_LINKS gnu/java/nio/natSelectorImpl.cc:gnu/java/nio/natSelectorImpl${PLATFORM}.cc" ;;
17358 "gnu/java/nio/channels/natFileChannelImpl.cc" ) CONFIG_LINKS="$CONFIG_LINKS gnu/java/nio/channels/natFileChannelImpl.cc:gnu/java/nio/channels/natFileChannel${FILE-${PLATFORM}}.cc" ;;
17359 "include/java-gc.h" ) CONFIG_LINKS="$CONFIG_LINKS include/java-gc.h:include/$GCHDR" ;;
17360 "include/java-threads.h" ) CONFIG_LINKS="$CONFIG_LINKS include/java-threads.h:include/$THREADH" ;;
17361 "sysdep/locks.h" ) CONFIG_LINKS="$CONFIG_LINKS sysdep/locks.h:sysdep/$sysdeps_dir/locks.h" ;;
17362 "sysdep/backtrace.h" ) CONFIG_LINKS="$CONFIG_LINKS sysdep/backtrace.h:$fallback_backtrace_h" ;;
17363 "sysdep/descriptor.h" ) CONFIG_LINKS="$CONFIG_LINKS sysdep/descriptor.h:$descriptor_h" ;;
17364 "include/java-signal.h" ) CONFIG_LINKS="$CONFIG_LINKS include/java-signal.h:$SIGNAL_HANDLER" ;;
17365 "include/java-signal-aux.h" ) CONFIG_LINKS="$CONFIG_LINKS include/java-signal-aux.h:$SIGNAL_HANDLER_AUX" ;;
17366 "depfiles" ) CONFIG_COMMANDS="$CONFIG_COMMANDS depfiles" ;;
17367 "default" ) CONFIG_COMMANDS="$CONFIG_COMMANDS default" ;;
17368 "include/config.h" ) CONFIG_HEADERS="$CONFIG_HEADERS include/config.h" ;;
17369 "gcj/libgcj-config.h" ) CONFIG_HEADERS="$CONFIG_HEADERS gcj/libgcj-config.h" ;;
17370 *) { { echo "$as_me:$LINENO: error: invalid argument: $ac_config_target" >&5
17371 echo "$as_me: error: invalid argument: $ac_config_target" >&2;}
17372 { (exit 1); exit 1; }; };;
17376 # If the user did not use the arguments to specify the items to instantiate,
17377 # then the envvar interface is used. Set only those that are not.
17378 # We use the long form for the default assignment because of an extremely
17379 # bizarre bug on SunOS 4.1.3.
17380 if $ac_need_defaults; then
17381 test "${CONFIG_FILES+set}" = set || CONFIG_FILES=$config_files
17382 test "${CONFIG_HEADERS+set}" = set || CONFIG_HEADERS=$config_headers
17383 test "${CONFIG_LINKS+set}" = set || CONFIG_LINKS=$config_links
17384 test "${CONFIG_COMMANDS+set}" = set || CONFIG_COMMANDS=$config_commands
17387 # Have a temporary directory for convenience. Make it in the build tree
17388 # simply because there is no reason to put it here, and in addition,
17389 # creating and moving files from /tmp can sometimes cause problems.
17390 # Create a temporary directory, and hook for its removal unless debugging.
17393 trap 'exit_status=$?; rm -rf $tmp && exit $exit_status' 0
17394 trap '{ (exit 1); exit 1; }' 1 2 13 15
17397 # Create a (secure) tmp directory for tmp files.
17400 tmp=`(umask 077 && mktemp -d -q "./confstatXXXXXX") 2>/dev/null` &&
17401 test -n "$tmp" && test -d "$tmp"
17404 tmp=./confstat$$-$RANDOM
17405 (umask 077 && mkdir $tmp)
17408 echo "$me: cannot create a temporary directory in ." >&2
17409 { (exit 1); exit 1; }
17414 cat >>$CONFIG_STATUS <<_ACEOF
17417 # CONFIG_FILES section.
17420 # No need to generate the scripts if there are no CONFIG_FILES.
17421 # This happens for instance when ./config.status config.h
17422 if test -n "\$CONFIG_FILES"; then
17423 # Protect against being on the right side of a sed subst in config.status.
17424 sed 's/,@/@@/; s/@,/@@/; s/,;t t\$/@;t t/; /@;t t\$/s/[\\\\&,]/\\\\&/g;
17425 s/@@/,@/; s/@@/@,/; s/@;t t\$/,;t t/' >\$tmp/subs.sed <<\\CEOF
17426 s,@SHELL@,$SHELL,;t t
17427 s,@PATH_SEPARATOR@,$PATH_SEPARATOR,;t t
17428 s,@PACKAGE_NAME@,$PACKAGE_NAME,;t t
17429 s,@PACKAGE_TARNAME@,$PACKAGE_TARNAME,;t t
17430 s,@PACKAGE_VERSION@,$PACKAGE_VERSION,;t t
17431 s,@PACKAGE_STRING@,$PACKAGE_STRING,;t t
17432 s,@PACKAGE_BUGREPORT@,$PACKAGE_BUGREPORT,;t t
17433 s,@exec_prefix@,$exec_prefix,;t t
17434 s,@prefix@,$prefix,;t t
17435 s,@program_transform_name@,$program_transform_name,;t t
17436 s,@bindir@,$bindir,;t t
17437 s,@sbindir@,$sbindir,;t t
17438 s,@libexecdir@,$libexecdir,;t t
17439 s,@datadir@,$datadir,;t t
17440 s,@sysconfdir@,$sysconfdir,;t t
17441 s,@sharedstatedir@,$sharedstatedir,;t t
17442 s,@localstatedir@,$localstatedir,;t t
17443 s,@libdir@,$libdir,;t t
17444 s,@includedir@,$includedir,;t t
17445 s,@oldincludedir@,$oldincludedir,;t t
17446 s,@infodir@,$infodir,;t t
17447 s,@mandir@,$mandir,;t t
17448 s,@build_alias@,$build_alias,;t t
17449 s,@host_alias@,$host_alias,;t t
17450 s,@target_alias@,$target_alias,;t t
17451 s,@DEFS@,$DEFS,;t t
17452 s,@ECHO_C@,$ECHO_C,;t t
17453 s,@ECHO_N@,$ECHO_N,;t t
17454 s,@ECHO_T@,$ECHO_T,;t t
17455 s,@LIBS@,$LIBS,;t t
17456 s,@build@,$build,;t t
17457 s,@build_cpu@,$build_cpu,;t t
17458 s,@build_vendor@,$build_vendor,;t t
17459 s,@build_os@,$build_os,;t t
17460 s,@build_libsubdir@,$build_libsubdir,;t t
17461 s,@build_subdir@,$build_subdir,;t t
17462 s,@host_subdir@,$host_subdir,;t t
17463 s,@target_subdir@,$target_subdir,;t t
17464 s,@libgcj_basedir@,$libgcj_basedir,;t t
17465 s,@host@,$host,;t t
17466 s,@host_cpu@,$host_cpu,;t t
17467 s,@host_vendor@,$host_vendor,;t t
17468 s,@host_os@,$host_os,;t t
17469 s,@target@,$target,;t t
17470 s,@target_cpu@,$target_cpu,;t t
17471 s,@target_vendor@,$target_vendor,;t t
17472 s,@target_os@,$target_os,;t t
17473 s,@target_noncanonical@,$target_noncanonical,;t t
17474 s,@LN_S@,$LN_S,;t t
17475 s,@mkinstalldirs@,$mkinstalldirs,;t t
17477 s,@ac_ct_CC@,$ac_ct_CC,;t t
17478 s,@EXEEXT@,$EXEEXT,;t t
17479 s,@OBJEXT@,$OBJEXT,;t t
17481 s,@ac_ct_CXX@,$ac_ct_CXX,;t t
17482 s,@CFLAGS@,$CFLAGS,;t t
17483 s,@CXXFLAGS@,$CXXFLAGS,;t t
17484 s,@LDFLAGS@,$LDFLAGS,;t t
17485 s,@INSTALL_PROGRAM@,$INSTALL_PROGRAM,;t t
17486 s,@INSTALL_SCRIPT@,$INSTALL_SCRIPT,;t t
17487 s,@INSTALL_DATA@,$INSTALL_DATA,;t t
17488 s,@CYGPATH_W@,$CYGPATH_W,;t t
17489 s,@PACKAGE@,$PACKAGE,;t t
17490 s,@VERSION@,$VERSION,;t t
17491 s,@ACLOCAL@,$ACLOCAL,;t t
17492 s,@AUTOCONF@,$AUTOCONF,;t t
17493 s,@AUTOMAKE@,$AUTOMAKE,;t t
17494 s,@AUTOHEADER@,$AUTOHEADER,;t t
17495 s,@MAKEINFO@,$MAKEINFO,;t t
17496 s,@install_sh@,$install_sh,;t t
17497 s,@STRIP@,$STRIP,;t t
17498 s,@ac_ct_STRIP@,$ac_ct_STRIP,;t t
17499 s,@INSTALL_STRIP_PROGRAM@,$INSTALL_STRIP_PROGRAM,;t t
17500 s,@mkdir_p@,$mkdir_p,;t t
17502 s,@SET_MAKE@,$SET_MAKE,;t t
17503 s,@am__leading_dot@,$am__leading_dot,;t t
17504 s,@AMTAR@,$AMTAR,;t t
17505 s,@am__tar@,$am__tar,;t t
17506 s,@am__untar@,$am__untar,;t t
17507 s,@DEPDIR@,$DEPDIR,;t t
17508 s,@am__include@,$am__include,;t t
17509 s,@am__quote@,$am__quote,;t t
17510 s,@AMDEP_TRUE@,$AMDEP_TRUE,;t t
17511 s,@AMDEP_FALSE@,$AMDEP_FALSE,;t t
17512 s,@AMDEPBACKSLASH@,$AMDEPBACKSLASH,;t t
17513 s,@CCDEPMODE@,$CCDEPMODE,;t t
17514 s,@am__fastdepCC_TRUE@,$am__fastdepCC_TRUE,;t t
17515 s,@am__fastdepCC_FALSE@,$am__fastdepCC_FALSE,;t t
17516 s,@CXXDEPMODE@,$CXXDEPMODE,;t t
17517 s,@am__fastdepCXX_TRUE@,$am__fastdepCXX_TRUE,;t t
17518 s,@am__fastdepCXX_FALSE@,$am__fastdepCXX_FALSE,;t t
17520 s,@ac_ct_AS@,$ac_ct_AS,;t t
17522 s,@ac_ct_LD@,$ac_ct_LD,;t t
17524 s,@ac_ct_AR@,$ac_ct_AR,;t t
17525 s,@RANLIB@,$RANLIB,;t t
17526 s,@ac_ct_RANLIB@,$ac_ct_RANLIB,;t t
17529 s,@UNZIP@,$UNZIP,;t t
17530 s,@BASH_JAR_TRUE@,$BASH_JAR_TRUE,;t t
17531 s,@BASH_JAR_FALSE@,$BASH_JAR_FALSE,;t t
17532 s,@MAINTAINER_MODE_TRUE@,$MAINTAINER_MODE_TRUE,;t t
17533 s,@MAINTAINER_MODE_FALSE@,$MAINTAINER_MODE_FALSE,;t t
17534 s,@MAINT@,$MAINT,;t t
17535 s,@LIBGCJ_CFLAGS@,$LIBGCJ_CFLAGS,;t t
17536 s,@LIBGCJ_CXXFLAGS@,$LIBGCJ_CXXFLAGS,;t t
17537 s,@LIBGCJ_JAVAFLAGS@,$LIBGCJ_JAVAFLAGS,;t t
17538 s,@LIBGCJ_LD_SYMBOLIC@,$LIBGCJ_LD_SYMBOLIC,;t t
17539 s,@LIBGCJDEBUG@,$LIBGCJDEBUG,;t t
17540 s,@TOOLKIT@,$TOOLKIT,;t t
17541 s,@XLIB_AWT_TRUE@,$XLIB_AWT_TRUE,;t t
17542 s,@XLIB_AWT_FALSE@,$XLIB_AWT_FALSE,;t t
17543 s,@GCJH@,$GCJH,;t t
17544 s,@INCLTDL@,$INCLTDL,;t t
17545 s,@LIBLTDL@,$LIBLTDL,;t t
17546 s,@DIRLTDL@,$DIRLTDL,;t t
17547 s,@LIBTOOL@,$LIBTOOL,;t t
17548 s,@CXXCPP@,$CXXCPP,;t t
17549 s,@CPPFLAGS@,$CPPFLAGS,;t t
17551 s,@GCJFLAGS@,$GCJFLAGS,;t t
17552 s,@GCJDEPMODE@,$GCJDEPMODE,;t t
17553 s,@am__fastdepGCJ_TRUE@,$am__fastdepGCJ_TRUE,;t t
17554 s,@am__fastdepGCJ_FALSE@,$am__fastdepGCJ_FALSE,;t t
17555 s,@subdirs@,$subdirs,;t t
17556 s,@TESTSUBDIR_TRUE@,$TESTSUBDIR_TRUE,;t t
17557 s,@TESTSUBDIR_FALSE@,$TESTSUBDIR_FALSE,;t t
17558 s,@JAVA_HOME_SET_TRUE@,$JAVA_HOME_SET_TRUE,;t t
17559 s,@JAVA_HOME_SET_FALSE@,$JAVA_HOME_SET_FALSE,;t t
17560 s,@JAVA_HOME@,$JAVA_HOME,;t t
17561 s,@INTERPRETER@,$INTERPRETER,;t t
17562 s,@LIBFFI@,$LIBFFI,;t t
17563 s,@LIBFFIINCS@,$LIBFFIINCS,;t t
17564 s,@PLATFORM_INNER_NAT_HDRS@,$PLATFORM_INNER_NAT_HDRS,;t t
17566 s,@EGREP@,$EGREP,;t t
17567 s,@USING_WIN32_PLATFORM_TRUE@,$USING_WIN32_PLATFORM_TRUE,;t t
17568 s,@USING_WIN32_PLATFORM_FALSE@,$USING_WIN32_PLATFORM_FALSE,;t t
17569 s,@USING_POSIX_PLATFORM_TRUE@,$USING_POSIX_PLATFORM_TRUE,;t t
17570 s,@USING_POSIX_PLATFORM_FALSE@,$USING_POSIX_PLATFORM_FALSE,;t t
17571 s,@USING_DARWIN_CRT_TRUE@,$USING_DARWIN_CRT_TRUE,;t t
17572 s,@USING_DARWIN_CRT_FALSE@,$USING_DARWIN_CRT_FALSE,;t t
17573 s,@SYSTEMSPEC@,$SYSTEMSPEC,;t t
17574 s,@LIBGCJTESTSPEC@,$LIBGCJTESTSPEC,;t t
17575 s,@ZLIBSPEC@,$ZLIBSPEC,;t t
17576 s,@ZLIBTESTSPEC@,$ZLIBTESTSPEC,;t t
17577 s,@X_CFLAGS@,$X_CFLAGS,;t t
17578 s,@X_PRE_LIBS@,$X_PRE_LIBS,;t t
17579 s,@X_LIBS@,$X_LIBS,;t t
17580 s,@X_EXTRA_LIBS@,$X_EXTRA_LIBS,;t t
17581 s,@extra_ldflags_libjava@,$extra_ldflags_libjava,;t t
17582 s,@GCLIBS@,$GCLIBS,;t t
17583 s,@GCINCS@,$GCINCS,;t t
17584 s,@GCDEPS@,$GCDEPS,;t t
17585 s,@GCSPEC@,$GCSPEC,;t t
17586 s,@JC1GCSPEC@,$JC1GCSPEC,;t t
17587 s,@GCTESTSPEC@,$GCTESTSPEC,;t t
17588 s,@USING_BOEHMGC_TRUE@,$USING_BOEHMGC_TRUE,;t t
17589 s,@USING_BOEHMGC_FALSE@,$USING_BOEHMGC_FALSE,;t t
17590 s,@USING_NOGC_TRUE@,$USING_NOGC_TRUE,;t t
17591 s,@USING_NOGC_FALSE@,$USING_NOGC_FALSE,;t t
17592 s,@THREADLIBS@,$THREADLIBS,;t t
17593 s,@THREADINCS@,$THREADINCS,;t t
17594 s,@THREADDEPS@,$THREADDEPS,;t t
17595 s,@THREADSPEC@,$THREADSPEC,;t t
17596 s,@THREADSTARTFILESPEC@,$THREADSTARTFILESPEC,;t t
17597 s,@THREADLDFLAGS@,$THREADLDFLAGS,;t t
17598 s,@THREADCXXFLAGS@,$THREADCXXFLAGS,;t t
17599 s,@USING_POSIX_THREADS_TRUE@,$USING_POSIX_THREADS_TRUE,;t t
17600 s,@USING_POSIX_THREADS_FALSE@,$USING_POSIX_THREADS_FALSE,;t t
17601 s,@USING_WIN32_THREADS_TRUE@,$USING_WIN32_THREADS_TRUE,;t t
17602 s,@USING_WIN32_THREADS_FALSE@,$USING_WIN32_THREADS_FALSE,;t t
17603 s,@USING_NO_THREADS_TRUE@,$USING_NO_THREADS_TRUE,;t t
17604 s,@USING_NO_THREADS_FALSE@,$USING_NO_THREADS_FALSE,;t t
17605 s,@HASH_SYNC_SPEC@,$HASH_SYNC_SPEC,;t t
17606 s,@USING_GCC_TRUE@,$USING_GCC_TRUE,;t t
17607 s,@USING_GCC_FALSE@,$USING_GCC_FALSE,;t t
17608 s,@LIBICONV@,$LIBICONV,;t t
17609 s,@LTLIBICONV@,$LTLIBICONV,;t t
17610 s,@PKG_CONFIG@,$PKG_CONFIG,;t t
17611 s,@GTK_CFLAGS@,$GTK_CFLAGS,;t t
17612 s,@GTK_LIBS@,$GTK_LIBS,;t t
17613 s,@GLIB_CFLAGS@,$GLIB_CFLAGS,;t t
17614 s,@GLIB_LIBS@,$GLIB_LIBS,;t t
17615 s,@LIBART_CFLAGS@,$LIBART_CFLAGS,;t t
17616 s,@LIBART_LIBS@,$LIBART_LIBS,;t t
17617 s,@CLASSPATH_SEPARATOR@,$CLASSPATH_SEPARATOR,;t t
17618 s,@ac_ct_GCJ@,$ac_ct_GCJ,;t t
17619 s,@ZLIBS@,$ZLIBS,;t t
17620 s,@SYS_ZLIBS@,$SYS_ZLIBS,;t t
17621 s,@ZINCS@,$ZINCS,;t t
17622 s,@DIVIDESPEC@,$DIVIDESPEC,;t t
17623 s,@CHECKREFSPEC@,$CHECKREFSPEC,;t t
17624 s,@EXCEPTIONSPEC@,$EXCEPTIONSPEC,;t t
17625 s,@BACKTRACESPEC@,$BACKTRACESPEC,;t t
17626 s,@IEEESPEC@,$IEEESPEC,;t t
17627 s,@NATIVE_TRUE@,$NATIVE_TRUE,;t t
17628 s,@NATIVE_FALSE@,$NATIVE_FALSE,;t t
17629 s,@NEEDS_DATA_START_TRUE@,$NEEDS_DATA_START_TRUE,;t t
17630 s,@NEEDS_DATA_START_FALSE@,$NEEDS_DATA_START_FALSE,;t t
17631 s,@GCC_UNWIND_INCLUDE@,$GCC_UNWIND_INCLUDE,;t t
17632 s,@toolexecdir@,$toolexecdir,;t t
17633 s,@toolexecmainlibdir@,$toolexecmainlibdir,;t t
17634 s,@toolexeclibdir@,$toolexeclibdir,;t t
17635 s,@dbexecdir@,$dbexecdir,;t t
17636 s,@GCJVERSION@,$GCJVERSION,;t t
17637 s,@gxx_include_dir@,$gxx_include_dir,;t t
17638 s,@libstdcxx_incdir@,$libstdcxx_incdir,;t t
17639 s,@ALLOCA@,$ALLOCA,;t t
17640 s,@PERL@,$PERL,;t t
17641 s,@SYSDEP_SOURCES@,$SYSDEP_SOURCES,;t t
17642 s,@LD_START_STATIC_SPEC@,$LD_START_STATIC_SPEC,;t t
17643 s,@LD_FINISH_STATIC_SPEC@,$LD_FINISH_STATIC_SPEC,;t t
17644 s,@here@,$here,;t t
17645 s,@LIBOBJS@,$LIBOBJS,;t t
17646 s,@LTLIBOBJS@,$LTLIBOBJS,;t t
17651 cat >>$CONFIG_STATUS <<\_ACEOF
17652 # Split the substitutions into bite-sized pieces for seds with
17653 # small command number limits, like on Digital OSF/1 and HP-UX.
17654 ac_max_sed_lines=48
17655 ac_sed_frag=1 # Number of current file.
17656 ac_beg=1 # First line for current file.
17657 ac_end=$ac_max_sed_lines # Line after last line for current file.
17660 while $ac_more_lines; do
17661 if test $ac_beg -gt 1; then
17662 sed "1,${ac_beg}d; ${ac_end}q" $tmp/subs.sed >$tmp/subs.frag
17664 sed "${ac_end}q" $tmp/subs.sed >$tmp/subs.frag
17666 if test ! -s $tmp/subs.frag; then
17667 ac_more_lines=false
17669 # The purpose of the label and of the branching condition is to
17670 # speed up the sed processing (if there are no `@' at all, there
17671 # is no need to browse any of the substitutions).
17672 # These are the two extra sed commands mentioned above.
17674 /@[a-zA-Z_][a-zA-Z_0-9]*@/!b' && cat $tmp/subs.frag) >$tmp/subs-$ac_sed_frag.sed
17675 if test -z "$ac_sed_cmds"; then
17676 ac_sed_cmds="sed -f $tmp/subs-$ac_sed_frag.sed"
17678 ac_sed_cmds="$ac_sed_cmds | sed -f $tmp/subs-$ac_sed_frag.sed"
17680 ac_sed_frag=`expr $ac_sed_frag + 1`
17682 ac_end=`expr $ac_end + $ac_max_sed_lines`
17685 if test -z "$ac_sed_cmds"; then
17688 fi # test -n "$CONFIG_FILES"
17691 cat >>$CONFIG_STATUS <<\_ACEOF
17692 for ac_file in : $CONFIG_FILES; do test "x$ac_file" = x: && continue
17693 # Support "outfile[:infile[:infile...]]", defaulting infile="outfile.in".
17695 - | *:- | *:-:* ) # input from stdin
17697 ac_file_in=`echo "$ac_file" | sed 's,[^:]*:,,'`
17698 ac_file=`echo "$ac_file" | sed 's,:.*,,'` ;;
17699 *:* ) ac_file_in=`echo "$ac_file" | sed 's,[^:]*:,,'`
17700 ac_file=`echo "$ac_file" | sed 's,:.*,,'` ;;
17701 * ) ac_file_in=$ac_file.in ;;
17704 # Compute @srcdir@, @top_srcdir@, and @INSTALL@ for subdirectories.
17705 ac_dir=`(dirname "$ac_file") 2>/dev/null ||
17706 $as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
17707 X"$ac_file" : 'X\(//\)[^/]' \| \
17708 X"$ac_file" : 'X\(//\)$' \| \
17709 X"$ac_file" : 'X\(/\)' \| \
17710 . : '\(.\)' 2>/dev/null ||
17712 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
17713 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
17714 /^X\(\/\/\)$/{ s//\1/; q; }
17715 /^X\(\/\).*/{ s//\1/; q; }
17717 { if $as_mkdir_p; then
17722 while test ! -d "$as_dir"; do
17723 as_dirs="$as_dir $as_dirs"
17724 as_dir=`(dirname "$as_dir") 2>/dev/null ||
17725 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
17726 X"$as_dir" : 'X\(//\)[^/]' \| \
17727 X"$as_dir" : 'X\(//\)$' \| \
17728 X"$as_dir" : 'X\(/\)' \| \
17729 . : '\(.\)' 2>/dev/null ||
17731 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
17732 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
17733 /^X\(\/\/\)$/{ s//\1/; q; }
17734 /^X\(\/\).*/{ s//\1/; q; }
17737 test ! -n "$as_dirs" || mkdir $as_dirs
17738 fi || { { echo "$as_me:$LINENO: error: cannot create directory \"$ac_dir\"" >&5
17739 echo "$as_me: error: cannot create directory \"$ac_dir\"" >&2;}
17740 { (exit 1); exit 1; }; }; }
17744 if test "$ac_dir" != .; then
17745 ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'`
17746 # A "../" for each directory in $ac_dir_suffix.
17747 ac_top_builddir=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,../,g'`
17749 ac_dir_suffix= ac_top_builddir=
17753 .) # No --srcdir option. We are building in place.
17755 if test -z "$ac_top_builddir"; then
17758 ac_top_srcdir=`echo $ac_top_builddir | sed 's,/$,,'`
17760 [\\/]* | ?:[\\/]* ) # Absolute path.
17761 ac_srcdir=$srcdir$ac_dir_suffix;
17762 ac_top_srcdir=$srcdir ;;
17763 *) # Relative path.
17764 ac_srcdir=$ac_top_builddir$srcdir$ac_dir_suffix
17765 ac_top_srcdir=$ac_top_builddir$srcdir ;;
17768 # Do not use `cd foo && pwd` to compute absolute paths, because
17769 # the directories may not exist.
17771 .) ac_abs_builddir="$ac_dir";;
17774 .) ac_abs_builddir=`pwd`;;
17775 [\\/]* | ?:[\\/]* ) ac_abs_builddir="$ac_dir";;
17776 *) ac_abs_builddir=`pwd`/"$ac_dir";;
17779 case $ac_abs_builddir in
17780 .) ac_abs_top_builddir=${ac_top_builddir}.;;
17782 case ${ac_top_builddir}. in
17783 .) ac_abs_top_builddir=$ac_abs_builddir;;
17784 [\\/]* | ?:[\\/]* ) ac_abs_top_builddir=${ac_top_builddir}.;;
17785 *) ac_abs_top_builddir=$ac_abs_builddir/${ac_top_builddir}.;;
17788 case $ac_abs_builddir in
17789 .) ac_abs_srcdir=$ac_srcdir;;
17792 .) ac_abs_srcdir=$ac_abs_builddir;;
17793 [\\/]* | ?:[\\/]* ) ac_abs_srcdir=$ac_srcdir;;
17794 *) ac_abs_srcdir=$ac_abs_builddir/$ac_srcdir;;
17797 case $ac_abs_builddir in
17798 .) ac_abs_top_srcdir=$ac_top_srcdir;;
17800 case $ac_top_srcdir in
17801 .) ac_abs_top_srcdir=$ac_abs_builddir;;
17802 [\\/]* | ?:[\\/]* ) ac_abs_top_srcdir=$ac_top_srcdir;;
17803 *) ac_abs_top_srcdir=$ac_abs_builddir/$ac_top_srcdir;;
17809 [\\/$]* | ?:[\\/]* ) ac_INSTALL=$INSTALL ;;
17810 *) ac_INSTALL=$ac_top_builddir$INSTALL ;;
17813 if test x"$ac_file" != x-; then
17814 { echo "$as_me:$LINENO: creating $ac_file" >&5
17815 echo "$as_me: creating $ac_file" >&6;}
17818 # Let's still pretend it is `configure' which instantiates (i.e., don't
17819 # use $as_me), people would be surprised to read:
17820 # /* config.h. Generated by config.status. */
17821 if test x"$ac_file" = x-; then
17824 configure_input="$ac_file. "
17826 configure_input=$configure_input"Generated from `echo $ac_file_in |
17827 sed 's,.*/,,'` by configure."
17829 # First look for the input files in the build tree, otherwise in the
17831 ac_file_inputs=`IFS=:
17832 for f in $ac_file_in; do
17834 -) echo $tmp/stdin ;;
17836 # Absolute (can't be DOS-style, as IFS=:)
17837 test -f "$f" || { { echo "$as_me:$LINENO: error: cannot find input file: $f" >&5
17838 echo "$as_me: error: cannot find input file: $f" >&2;}
17839 { (exit 1); exit 1; }; }
17842 if test -f "$f"; then
17845 elif test -f "$srcdir/$f"; then
17850 { { echo "$as_me:$LINENO: error: cannot find input file: $f" >&5
17851 echo "$as_me: error: cannot find input file: $f" >&2;}
17852 { (exit 1); exit 1; }; }
17855 done` || { (exit 1); exit 1; }
17857 cat >>$CONFIG_STATUS <<_ACEOF
17861 cat >>$CONFIG_STATUS <<\_ACEOF
17863 /@[a-zA-Z_][a-zA-Z_0-9]*@/!b
17864 s,@configure_input@,$configure_input,;t t
17865 s,@srcdir@,$ac_srcdir,;t t
17866 s,@abs_srcdir@,$ac_abs_srcdir,;t t
17867 s,@top_srcdir@,$ac_top_srcdir,;t t
17868 s,@abs_top_srcdir@,$ac_abs_top_srcdir,;t t
17869 s,@builddir@,$ac_builddir,;t t
17870 s,@abs_builddir@,$ac_abs_builddir,;t t
17871 s,@top_builddir@,$ac_top_builddir,;t t
17872 s,@abs_top_builddir@,$ac_abs_top_builddir,;t t
17873 s,@INSTALL@,$ac_INSTALL,;t t
17874 " $ac_file_inputs | (eval "$ac_sed_cmds") >$tmp/out
17876 if test x"$ac_file" != x-; then
17877 mv $tmp/out $ac_file
17883 # Run the commands associated with the file.
17885 scripts/jar ) chmod +x scripts/jar ;;
17889 cat >>$CONFIG_STATUS <<\_ACEOF
17892 # CONFIG_HEADER section.
17895 # These sed commands are passed to sed as "A NAME B NAME C VALUE D", where
17896 # NAME is the cpp macro being defined and VALUE is the value it is being given.
17898 # ac_d sets the value in "#define NAME VALUE" lines.
17899 ac_dA='s,^\([ ]*\)#\([ ]*define[ ][ ]*\)'
17900 ac_dB='[ ].*$,\1#\2'
17903 # ac_u turns "#undef NAME" without trailing blanks into "#define NAME VALUE".
17904 ac_uA='s,^\([ ]*\)#\([ ]*\)undef\([ ][ ]*\)'
17905 ac_uB='$,\1#\2define\3'
17909 for ac_file in : $CONFIG_HEADERS; do test "x$ac_file" = x: && continue
17910 # Support "outfile[:infile[:infile...]]", defaulting infile="outfile.in".
17912 - | *:- | *:-:* ) # input from stdin
17914 ac_file_in=`echo "$ac_file" | sed 's,[^:]*:,,'`
17915 ac_file=`echo "$ac_file" | sed 's,:.*,,'` ;;
17916 *:* ) ac_file_in=`echo "$ac_file" | sed 's,[^:]*:,,'`
17917 ac_file=`echo "$ac_file" | sed 's,:.*,,'` ;;
17918 * ) ac_file_in=$ac_file.in ;;
17921 test x"$ac_file" != x- && { echo "$as_me:$LINENO: creating $ac_file" >&5
17922 echo "$as_me: creating $ac_file" >&6;}
17924 # First look for the input files in the build tree, otherwise in the
17926 ac_file_inputs=`IFS=:
17927 for f in $ac_file_in; do
17929 -) echo $tmp/stdin ;;
17931 # Absolute (can't be DOS-style, as IFS=:)
17932 test -f "$f" || { { echo "$as_me:$LINENO: error: cannot find input file: $f" >&5
17933 echo "$as_me: error: cannot find input file: $f" >&2;}
17934 { (exit 1); exit 1; }; }
17935 # Do quote $f, to prevent DOS paths from being IFS'd.
17938 if test -f "$f"; then
17941 elif test -f "$srcdir/$f"; then
17946 { { echo "$as_me:$LINENO: error: cannot find input file: $f" >&5
17947 echo "$as_me: error: cannot find input file: $f" >&2;}
17948 { (exit 1); exit 1; }; }
17951 done` || { (exit 1); exit 1; }
17952 # Remove the trailing spaces.
17953 sed 's/[ ]*$//' $ac_file_inputs >$tmp/in
17957 # Transform confdefs.h into two sed scripts, `conftest.defines' and
17958 # `conftest.undefs', that substitutes the proper values into
17959 # config.h.in to produce config.h. The first handles `#define'
17960 # templates, and the second `#undef' templates.
17961 # And first: Protect against being on the right side of a sed subst in
17962 # config.status. Protect against being in an unquoted here document
17963 # in config.status.
17964 rm -f conftest.defines conftest.undefs
17965 # Using a here document instead of a string reduces the quoting nightmare.
17966 # Putting comments in sed scripts is not portable.
17968 # `end' is used to avoid that the second main sed command (meant for
17969 # 0-ary CPP macros) applies to n-ary macro definitions.
17970 # See the Autoconf documentation for `clear'.
17971 cat >confdef2sed.sed <<\_ACEOF
17976 s,^[ ]*#[ ]*define[ ][ ]*\([^ (][^ (]*\)\(([^)]*)\)[ ]*\(.*\)$,${ac_dA}\1${ac_dB}\1\2${ac_dC}\3${ac_dD},gp
17978 s,^[ ]*#[ ]*define[ ][ ]*\([^ ][^ ]*\)[ ]*\(.*\)$,${ac_dA}\1${ac_dB}\1${ac_dC}\2${ac_dD},gp
17981 # If some macros were called several times there might be several times
17982 # the same #defines, which is useless. Nevertheless, we may not want to
17983 # sort them, since we want the *last* AC-DEFINE to be honored.
17984 uniq confdefs.h | sed -n -f confdef2sed.sed >conftest.defines
17985 sed 's/ac_d/ac_u/g' conftest.defines >conftest.undefs
17986 rm -f confdef2sed.sed
17988 # This sed command replaces #undef with comments. This is necessary, for
17989 # example, in the case of _POSIX_SOURCE, which is predefined and required
17990 # on some systems where configure will not decide to define it.
17991 cat >>conftest.undefs <<\_ACEOF
17992 s,^[ ]*#[ ]*undef[ ][ ]*[a-zA-Z_][a-zA-Z_0-9]*,/* & */,
17995 # Break up conftest.defines because some shells have a limit on the size
17996 # of here documents, and old seds have small limits too (100 cmds).
17997 echo ' # Handle all the #define templates only if necessary.' >>$CONFIG_STATUS
17998 echo ' if grep "^[ ]*#[ ]*define" $tmp/in >/dev/null; then' >>$CONFIG_STATUS
17999 echo ' # If there are no defines, we may have an empty if/fi' >>$CONFIG_STATUS
18000 echo ' :' >>$CONFIG_STATUS
18001 rm -f conftest.tail
18002 while grep . conftest.defines >/dev/null
18004 # Write a limited-size here document to $tmp/defines.sed.
18005 echo ' cat >$tmp/defines.sed <<CEOF' >>$CONFIG_STATUS
18006 # Speed up: don't consider the non `#define' lines.
18007 echo '/^[ ]*#[ ]*define/!b' >>$CONFIG_STATUS
18008 # Work around the forget-to-reset-the-flag bug.
18009 echo 't clr' >>$CONFIG_STATUS
18010 echo ': clr' >>$CONFIG_STATUS
18011 sed ${ac_max_here_lines}q conftest.defines >>$CONFIG_STATUS
18013 sed -f $tmp/defines.sed $tmp/in >$tmp/out
18015 mv $tmp/out $tmp/in
18017 sed 1,${ac_max_here_lines}d conftest.defines >conftest.tail
18018 rm -f conftest.defines
18019 mv conftest.tail conftest.defines
18021 rm -f conftest.defines
18022 echo ' fi # grep' >>$CONFIG_STATUS
18023 echo >>$CONFIG_STATUS
18025 # Break up conftest.undefs because some shells have a limit on the size
18026 # of here documents, and old seds have small limits too (100 cmds).
18027 echo ' # Handle all the #undef templates' >>$CONFIG_STATUS
18028 rm -f conftest.tail
18029 while grep . conftest.undefs >/dev/null
18031 # Write a limited-size here document to $tmp/undefs.sed.
18032 echo ' cat >$tmp/undefs.sed <<CEOF' >>$CONFIG_STATUS
18033 # Speed up: don't consider the non `#undef'
18034 echo '/^[ ]*#[ ]*undef/!b' >>$CONFIG_STATUS
18035 # Work around the forget-to-reset-the-flag bug.
18036 echo 't clr' >>$CONFIG_STATUS
18037 echo ': clr' >>$CONFIG_STATUS
18038 sed ${ac_max_here_lines}q conftest.undefs >>$CONFIG_STATUS
18040 sed -f $tmp/undefs.sed $tmp/in >$tmp/out
18042 mv $tmp/out $tmp/in
18044 sed 1,${ac_max_here_lines}d conftest.undefs >conftest.tail
18045 rm -f conftest.undefs
18046 mv conftest.tail conftest.undefs
18048 rm -f conftest.undefs
18050 cat >>$CONFIG_STATUS <<\_ACEOF
18051 # Let's still pretend it is `configure' which instantiates (i.e., don't
18052 # use $as_me), people would be surprised to read:
18053 # /* config.h. Generated by config.status. */
18054 if test x"$ac_file" = x-; then
18055 echo "/* Generated by configure. */" >$tmp/config.h
18057 echo "/* $ac_file. Generated by configure. */" >$tmp/config.h
18059 cat $tmp/in >>$tmp/config.h
18061 if test x"$ac_file" != x-; then
18062 if diff $ac_file $tmp/config.h >/dev/null 2>&1; then
18063 { echo "$as_me:$LINENO: $ac_file is unchanged" >&5
18064 echo "$as_me: $ac_file is unchanged" >&6;}
18066 ac_dir=`(dirname "$ac_file") 2>/dev/null ||
18067 $as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
18068 X"$ac_file" : 'X\(//\)[^/]' \| \
18069 X"$ac_file" : 'X\(//\)$' \| \
18070 X"$ac_file" : 'X\(/\)' \| \
18071 . : '\(.\)' 2>/dev/null ||
18073 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
18074 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
18075 /^X\(\/\/\)$/{ s//\1/; q; }
18076 /^X\(\/\).*/{ s//\1/; q; }
18078 { if $as_mkdir_p; then
18083 while test ! -d "$as_dir"; do
18084 as_dirs="$as_dir $as_dirs"
18085 as_dir=`(dirname "$as_dir") 2>/dev/null ||
18086 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
18087 X"$as_dir" : 'X\(//\)[^/]' \| \
18088 X"$as_dir" : 'X\(//\)$' \| \
18089 X"$as_dir" : 'X\(/\)' \| \
18090 . : '\(.\)' 2>/dev/null ||
18092 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
18093 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
18094 /^X\(\/\/\)$/{ s//\1/; q; }
18095 /^X\(\/\).*/{ s//\1/; q; }
18098 test ! -n "$as_dirs" || mkdir $as_dirs
18099 fi || { { echo "$as_me:$LINENO: error: cannot create directory \"$ac_dir\"" >&5
18100 echo "$as_me: error: cannot create directory \"$ac_dir\"" >&2;}
18101 { (exit 1); exit 1; }; }; }
18104 mv $tmp/config.h $ac_file
18108 rm -f $tmp/config.h
18110 # Compute $ac_file's index in $config_headers.
18112 for _am_header in $config_headers :; do
18113 case $_am_header in
18114 $ac_file | $ac_file:* )
18117 _am_stamp_count=`expr $_am_stamp_count + 1` ;;
18120 echo "timestamp for $ac_file" >`(dirname $ac_file) 2>/dev/null ||
18121 $as_expr X$ac_file : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
18122 X$ac_file : 'X\(//\)[^/]' \| \
18123 X$ac_file : 'X\(//\)$' \| \
18124 X$ac_file : 'X\(/\)' \| \
18125 . : '\(.\)' 2>/dev/null ||
18127 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
18128 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
18129 /^X\(\/\/\)$/{ s//\1/; q; }
18130 /^X\(\/\).*/{ s//\1/; q; }
18131 s/.*/./; q'`/stamp-h$_am_stamp_count
18134 cat >>$CONFIG_STATUS <<\_ACEOF
18137 # CONFIG_LINKS section.
18140 for ac_file in : $CONFIG_LINKS; do test "x$ac_file" = x: && continue
18141 ac_dest=`echo "$ac_file" | sed 's,:.*,,'`
18142 ac_source=`echo "$ac_file" | sed 's,[^:]*:,,'`
18144 { echo "$as_me:$LINENO: linking $srcdir/$ac_source to $ac_dest" >&5
18145 echo "$as_me: linking $srcdir/$ac_source to $ac_dest" >&6;}
18147 if test ! -r $srcdir/$ac_source; then
18148 { { echo "$as_me:$LINENO: error: $srcdir/$ac_source: file not found" >&5
18149 echo "$as_me: error: $srcdir/$ac_source: file not found" >&2;}
18150 { (exit 1); exit 1; }; }
18154 # Make relative symlinks.
18155 ac_dest_dir=`(dirname "$ac_dest") 2>/dev/null ||
18156 $as_expr X"$ac_dest" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
18157 X"$ac_dest" : 'X\(//\)[^/]' \| \
18158 X"$ac_dest" : 'X\(//\)$' \| \
18159 X"$ac_dest" : 'X\(/\)' \| \
18160 . : '\(.\)' 2>/dev/null ||
18162 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
18163 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
18164 /^X\(\/\/\)$/{ s//\1/; q; }
18165 /^X\(\/\).*/{ s//\1/; q; }
18167 { if $as_mkdir_p; then
18168 mkdir -p "$ac_dest_dir"
18170 as_dir="$ac_dest_dir"
18172 while test ! -d "$as_dir"; do
18173 as_dirs="$as_dir $as_dirs"
18174 as_dir=`(dirname "$as_dir") 2>/dev/null ||
18175 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
18176 X"$as_dir" : 'X\(//\)[^/]' \| \
18177 X"$as_dir" : 'X\(//\)$' \| \
18178 X"$as_dir" : 'X\(/\)' \| \
18179 . : '\(.\)' 2>/dev/null ||
18181 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
18182 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
18183 /^X\(\/\/\)$/{ s//\1/; q; }
18184 /^X\(\/\).*/{ s//\1/; q; }
18187 test ! -n "$as_dirs" || mkdir $as_dirs
18188 fi || { { echo "$as_me:$LINENO: error: cannot create directory \"$ac_dest_dir\"" >&5
18189 echo "$as_me: error: cannot create directory \"$ac_dest_dir\"" >&2;}
18190 { (exit 1); exit 1; }; }; }
18194 if test "$ac_dest_dir" != .; then
18195 ac_dir_suffix=/`echo "$ac_dest_dir" | sed 's,^\.[\\/],,'`
18196 # A "../" for each directory in $ac_dir_suffix.
18197 ac_top_builddir=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,../,g'`
18199 ac_dir_suffix= ac_top_builddir=
18203 .) # No --srcdir option. We are building in place.
18205 if test -z "$ac_top_builddir"; then
18208 ac_top_srcdir=`echo $ac_top_builddir | sed 's,/$,,'`
18210 [\\/]* | ?:[\\/]* ) # Absolute path.
18211 ac_srcdir=$srcdir$ac_dir_suffix;
18212 ac_top_srcdir=$srcdir ;;
18213 *) # Relative path.
18214 ac_srcdir=$ac_top_builddir$srcdir$ac_dir_suffix
18215 ac_top_srcdir=$ac_top_builddir$srcdir ;;
18218 # Do not use `cd foo && pwd` to compute absolute paths, because
18219 # the directories may not exist.
18221 .) ac_abs_builddir="$ac_dest_dir";;
18223 case "$ac_dest_dir" in
18224 .) ac_abs_builddir=`pwd`;;
18225 [\\/]* | ?:[\\/]* ) ac_abs_builddir="$ac_dest_dir";;
18226 *) ac_abs_builddir=`pwd`/"$ac_dest_dir";;
18229 case $ac_abs_builddir in
18230 .) ac_abs_top_builddir=${ac_top_builddir}.;;
18232 case ${ac_top_builddir}. in
18233 .) ac_abs_top_builddir=$ac_abs_builddir;;
18234 [\\/]* | ?:[\\/]* ) ac_abs_top_builddir=${ac_top_builddir}.;;
18235 *) ac_abs_top_builddir=$ac_abs_builddir/${ac_top_builddir}.;;
18238 case $ac_abs_builddir in
18239 .) ac_abs_srcdir=$ac_srcdir;;
18242 .) ac_abs_srcdir=$ac_abs_builddir;;
18243 [\\/]* | ?:[\\/]* ) ac_abs_srcdir=$ac_srcdir;;
18244 *) ac_abs_srcdir=$ac_abs_builddir/$ac_srcdir;;
18247 case $ac_abs_builddir in
18248 .) ac_abs_top_srcdir=$ac_top_srcdir;;
18250 case $ac_top_srcdir in
18251 .) ac_abs_top_srcdir=$ac_abs_builddir;;
18252 [\\/]* | ?:[\\/]* ) ac_abs_top_srcdir=$ac_top_srcdir;;
18253 *) ac_abs_top_srcdir=$ac_abs_builddir/$ac_top_srcdir;;
18259 [\\/$]* | ?:[\\/]* ) ac_rel_source=$srcdir/$ac_source ;;
18260 *) ac_rel_source=$ac_top_builddir$srcdir/$ac_source ;;
18263 # Try a symlink, then a hard link, then a copy.
18264 ln -s $ac_rel_source $ac_dest 2>/dev/null ||
18265 ln $srcdir/$ac_source $ac_dest 2>/dev/null ||
18266 cp -p $srcdir/$ac_source $ac_dest ||
18267 { { echo "$as_me:$LINENO: error: cannot link or copy $srcdir/$ac_source to $ac_dest" >&5
18268 echo "$as_me: error: cannot link or copy $srcdir/$ac_source to $ac_dest" >&2;}
18269 { (exit 1); exit 1; }; }
18272 cat >>$CONFIG_STATUS <<\_ACEOF
18275 # CONFIG_COMMANDS section.
18277 for ac_file in : $CONFIG_COMMANDS; do test "x$ac_file" = x: && continue
18278 ac_dest=`echo "$ac_file" | sed 's,:.*,,'`
18279 ac_source=`echo "$ac_file" | sed 's,[^:]*:,,'`
18280 ac_dir=`(dirname "$ac_dest") 2>/dev/null ||
18281 $as_expr X"$ac_dest" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
18282 X"$ac_dest" : 'X\(//\)[^/]' \| \
18283 X"$ac_dest" : 'X\(//\)$' \| \
18284 X"$ac_dest" : 'X\(/\)' \| \
18285 . : '\(.\)' 2>/dev/null ||
18287 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
18288 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
18289 /^X\(\/\/\)$/{ s//\1/; q; }
18290 /^X\(\/\).*/{ s//\1/; q; }
18292 { if $as_mkdir_p; then
18297 while test ! -d "$as_dir"; do
18298 as_dirs="$as_dir $as_dirs"
18299 as_dir=`(dirname "$as_dir") 2>/dev/null ||
18300 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
18301 X"$as_dir" : 'X\(//\)[^/]' \| \
18302 X"$as_dir" : 'X\(//\)$' \| \
18303 X"$as_dir" : 'X\(/\)' \| \
18304 . : '\(.\)' 2>/dev/null ||
18306 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
18307 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
18308 /^X\(\/\/\)$/{ s//\1/; q; }
18309 /^X\(\/\).*/{ s//\1/; q; }
18312 test ! -n "$as_dirs" || mkdir $as_dirs
18313 fi || { { echo "$as_me:$LINENO: error: cannot create directory \"$ac_dir\"" >&5
18314 echo "$as_me: error: cannot create directory \"$ac_dir\"" >&2;}
18315 { (exit 1); exit 1; }; }; }
18319 if test "$ac_dir" != .; then
18320 ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'`
18321 # A "../" for each directory in $ac_dir_suffix.
18322 ac_top_builddir=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,../,g'`
18324 ac_dir_suffix= ac_top_builddir=
18328 .) # No --srcdir option. We are building in place.
18330 if test -z "$ac_top_builddir"; then
18333 ac_top_srcdir=`echo $ac_top_builddir | sed 's,/$,,'`
18335 [\\/]* | ?:[\\/]* ) # Absolute path.
18336 ac_srcdir=$srcdir$ac_dir_suffix;
18337 ac_top_srcdir=$srcdir ;;
18338 *) # Relative path.
18339 ac_srcdir=$ac_top_builddir$srcdir$ac_dir_suffix
18340 ac_top_srcdir=$ac_top_builddir$srcdir ;;
18343 # Do not use `cd foo && pwd` to compute absolute paths, because
18344 # the directories may not exist.
18346 .) ac_abs_builddir="$ac_dir";;
18349 .) ac_abs_builddir=`pwd`;;
18350 [\\/]* | ?:[\\/]* ) ac_abs_builddir="$ac_dir";;
18351 *) ac_abs_builddir=`pwd`/"$ac_dir";;
18354 case $ac_abs_builddir in
18355 .) ac_abs_top_builddir=${ac_top_builddir}.;;
18357 case ${ac_top_builddir}. in
18358 .) ac_abs_top_builddir=$ac_abs_builddir;;
18359 [\\/]* | ?:[\\/]* ) ac_abs_top_builddir=${ac_top_builddir}.;;
18360 *) ac_abs_top_builddir=$ac_abs_builddir/${ac_top_builddir}.;;
18363 case $ac_abs_builddir in
18364 .) ac_abs_srcdir=$ac_srcdir;;
18367 .) ac_abs_srcdir=$ac_abs_builddir;;
18368 [\\/]* | ?:[\\/]* ) ac_abs_srcdir=$ac_srcdir;;
18369 *) ac_abs_srcdir=$ac_abs_builddir/$ac_srcdir;;
18372 case $ac_abs_builddir in
18373 .) ac_abs_top_srcdir=$ac_top_srcdir;;
18375 case $ac_top_srcdir in
18376 .) ac_abs_top_srcdir=$ac_abs_builddir;;
18377 [\\/]* | ?:[\\/]* ) ac_abs_top_srcdir=$ac_top_srcdir;;
18378 *) ac_abs_top_srcdir=$ac_abs_builddir/$ac_top_srcdir;;
18383 { echo "$as_me:$LINENO: executing $ac_dest commands" >&5
18384 echo "$as_me: executing $ac_dest commands" >&6;}
18386 depfiles ) test x"$AMDEP_TRUE" != x"" || for mf in $CONFIG_FILES; do
18387 # Strip MF so we end up with the name of the file.
18388 mf=`echo "$mf" | sed -e 's/:.*$//'`
18389 # Check whether this is an Automake generated Makefile or not.
18390 # We used to match only the files named `Makefile.in', but
18391 # some people rename them; so instead we look at the file content.
18392 # Grep'ing the first line is not enough: some people post-process
18393 # each Makefile.in and add a new line on top of each file to say so.
18394 # So let's grep whole file.
18395 if grep '^#.*generated by automake' $mf > /dev/null 2>&1; then
18396 dirpart=`(dirname "$mf") 2>/dev/null ||
18397 $as_expr X"$mf" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
18398 X"$mf" : 'X\(//\)[^/]' \| \
18399 X"$mf" : 'X\(//\)$' \| \
18400 X"$mf" : 'X\(/\)' \| \
18401 . : '\(.\)' 2>/dev/null ||
18403 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
18404 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
18405 /^X\(\/\/\)$/{ s//\1/; q; }
18406 /^X\(\/\).*/{ s//\1/; q; }
18411 # Extract the definition of DEPDIR, am__include, and am__quote
18412 # from the Makefile without running `make'.
18413 DEPDIR=`sed -n 's/^DEPDIR = //p' < "$mf"`
18414 test -z "$DEPDIR" && continue
18415 am__include=`sed -n 's/^am__include = //p' < "$mf"`
18416 test -z "am__include" && continue
18417 am__quote=`sed -n 's/^am__quote = //p' < "$mf"`
18418 # When using ansi2knr, U may be empty or an underscore; expand it
18419 U=`sed -n 's/^U = //p' < "$mf"`
18420 # Find all dependency output files, they are included files with
18421 # $(DEPDIR) in their names. We invoke sed twice because it is the
18422 # simplest approach to changing $(DEPDIR) to its actual value in the
18424 for file in `sed -n "
18425 s/^$am__include $am__quote\(.*(DEPDIR).*\)$am__quote"'$/\1/p' <"$mf" | \
18426 sed -e 's/\$(DEPDIR)/'"$DEPDIR"'/g' -e 's/\$U/'"$U"'/g'`; do
18427 # Make sure the directory exists.
18428 test -f "$dirpart/$file" && continue
18429 fdir=`(dirname "$file") 2>/dev/null ||
18430 $as_expr X"$file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
18431 X"$file" : 'X\(//\)[^/]' \| \
18432 X"$file" : 'X\(//\)$' \| \
18433 X"$file" : 'X\(/\)' \| \
18434 . : '\(.\)' 2>/dev/null ||
18436 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
18437 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
18438 /^X\(\/\/\)$/{ s//\1/; q; }
18439 /^X\(\/\).*/{ s//\1/; q; }
18441 { if $as_mkdir_p; then
18442 mkdir -p $dirpart/$fdir
18444 as_dir=$dirpart/$fdir
18446 while test ! -d "$as_dir"; do
18447 as_dirs="$as_dir $as_dirs"
18448 as_dir=`(dirname "$as_dir") 2>/dev/null ||
18449 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
18450 X"$as_dir" : 'X\(//\)[^/]' \| \
18451 X"$as_dir" : 'X\(//\)$' \| \
18452 X"$as_dir" : 'X\(/\)' \| \
18453 . : '\(.\)' 2>/dev/null ||
18455 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
18456 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
18457 /^X\(\/\/\)$/{ s//\1/; q; }
18458 /^X\(\/\).*/{ s//\1/; q; }
18461 test ! -n "$as_dirs" || mkdir $as_dirs
18462 fi || { { echo "$as_me:$LINENO: error: cannot create directory $dirpart/$fdir" >&5
18463 echo "$as_me: error: cannot create directory $dirpart/$fdir" >&2;}
18464 { (exit 1); exit 1; }; }; }
18466 # echo "creating $dirpart/$file"
18467 echo '# dummy' > "$dirpart/$file"
18471 default ) # Only add multilib support code if we just rebuilt top-level Makefile.
18472 case " $CONFIG_FILES " in
18474 LD="${ORIGINAL_LD_FOR_MULTILIBS}"
18475 ac_file=Makefile . ${libgcj_basedir}/../config-ml.in
18478 for ac_multi_file in $CONFIG_FILES; do
18479 case $ac_multi_file in
18481 grep "^MULTI[^ ]* =" Makefile >> "$ac_multi_file" ;;
18489 cat >>$CONFIG_STATUS <<\_ACEOF
18491 { (exit 0); exit 0; }
18493 chmod +x $CONFIG_STATUS
18494 ac_clean_files=$ac_clean_files_save
18497 # configure is writing to config.log, and then calls config.status.
18498 # config.status does its own redirection, appending to config.log.
18499 # Unfortunately, on DOS this fails, as config.log is still kept open
18500 # by configure, so config.status won't be able to write to it; its
18501 # output is simply discarded. So we exec the FD to /dev/null,
18502 # effectively closing config.log, so it can be properly (re)opened and
18503 # appended to by config.status. When coming back to configure, we
18504 # need to make the FD available again.
18505 if test "$no_create" != yes; then
18507 ac_config_status_args=
18508 test "$silent" = yes &&
18509 ac_config_status_args="$ac_config_status_args --quiet"
18511 $SHELL $CONFIG_STATUS $ac_config_status_args || ac_cs_success=false
18513 # Use ||, not &&, to avoid exiting from the if with $? = 1, which
18514 # would make configure fail if this is the last instruction.
18515 $ac_cs_success || { (exit 1); exit 1; }
18519 # CONFIG_SUBDIRS section.
18521 if test "$no_recursion" != yes; then
18523 # Remove --cache-file and --srcdir arguments so they do not pile up.
18524 ac_sub_configure_args=
18526 for ac_arg in $ac_configure_args; do
18527 if test -n "$ac_prev"; then
18532 -cache-file | --cache-file | --cache-fil | --cache-fi \
18533 | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c)
18534 ac_prev=cache_file ;;
18535 -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \
18536 | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* \
18539 --config-cache | -C)
18541 -srcdir | --srcdir | --srcdi | --srcd | --src | --sr)
18543 -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*)
18545 -prefix | --prefix | --prefi | --pref | --pre | --pr | --p)
18547 -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*)
18549 *) ac_sub_configure_args="$ac_sub_configure_args $ac_arg" ;;
18553 # Always prepend --prefix to ensure using the same prefix
18554 # in subdir configurations.
18555 ac_sub_configure_args="--prefix=$prefix $ac_sub_configure_args"
18558 for ac_dir in : $subdirs; do test "x$ac_dir" = x: && continue
18560 # Do not complain, so a configure script can configure whichever
18561 # parts of a large source tree are present.
18562 test -d $srcdir/$ac_dir || continue
18564 { echo "$as_me:$LINENO: configuring in $ac_dir" >&5
18565 echo "$as_me: configuring in $ac_dir" >&6;}
18566 { if $as_mkdir_p; then
18571 while test ! -d "$as_dir"; do
18572 as_dirs="$as_dir $as_dirs"
18573 as_dir=`(dirname "$as_dir") 2>/dev/null ||
18574 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
18575 X"$as_dir" : 'X\(//\)[^/]' \| \
18576 X"$as_dir" : 'X\(//\)$' \| \
18577 X"$as_dir" : 'X\(/\)' \| \
18578 . : '\(.\)' 2>/dev/null ||
18580 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
18581 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
18582 /^X\(\/\/\)$/{ s//\1/; q; }
18583 /^X\(\/\).*/{ s//\1/; q; }
18586 test ! -n "$as_dirs" || mkdir $as_dirs
18587 fi || { { echo "$as_me:$LINENO: error: cannot create directory \"$ac_dir\"" >&5
18588 echo "$as_me: error: cannot create directory \"$ac_dir\"" >&2;}
18589 { (exit 1); exit 1; }; }; }
18593 if test "$ac_dir" != .; then
18594 ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'`
18595 # A "../" for each directory in $ac_dir_suffix.
18596 ac_top_builddir=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,../,g'`
18598 ac_dir_suffix= ac_top_builddir=
18602 .) # No --srcdir option. We are building in place.
18604 if test -z "$ac_top_builddir"; then
18607 ac_top_srcdir=`echo $ac_top_builddir | sed 's,/$,,'`
18609 [\\/]* | ?:[\\/]* ) # Absolute path.
18610 ac_srcdir=$srcdir$ac_dir_suffix;
18611 ac_top_srcdir=$srcdir ;;
18612 *) # Relative path.
18613 ac_srcdir=$ac_top_builddir$srcdir$ac_dir_suffix
18614 ac_top_srcdir=$ac_top_builddir$srcdir ;;
18617 # Do not use `cd foo && pwd` to compute absolute paths, because
18618 # the directories may not exist.
18620 .) ac_abs_builddir="$ac_dir";;
18623 .) ac_abs_builddir=`pwd`;;
18624 [\\/]* | ?:[\\/]* ) ac_abs_builddir="$ac_dir";;
18625 *) ac_abs_builddir=`pwd`/"$ac_dir";;
18628 case $ac_abs_builddir in
18629 .) ac_abs_top_builddir=${ac_top_builddir}.;;
18631 case ${ac_top_builddir}. in
18632 .) ac_abs_top_builddir=$ac_abs_builddir;;
18633 [\\/]* | ?:[\\/]* ) ac_abs_top_builddir=${ac_top_builddir}.;;
18634 *) ac_abs_top_builddir=$ac_abs_builddir/${ac_top_builddir}.;;
18637 case $ac_abs_builddir in
18638 .) ac_abs_srcdir=$ac_srcdir;;
18641 .) ac_abs_srcdir=$ac_abs_builddir;;
18642 [\\/]* | ?:[\\/]* ) ac_abs_srcdir=$ac_srcdir;;
18643 *) ac_abs_srcdir=$ac_abs_builddir/$ac_srcdir;;
18646 case $ac_abs_builddir in
18647 .) ac_abs_top_srcdir=$ac_top_srcdir;;
18649 case $ac_top_srcdir in
18650 .) ac_abs_top_srcdir=$ac_abs_builddir;;
18651 [\\/]* | ?:[\\/]* ) ac_abs_top_srcdir=$ac_top_srcdir;;
18652 *) ac_abs_top_srcdir=$ac_abs_builddir/$ac_top_srcdir;;
18659 # Check for guested configure; otherwise get Cygnus style configure.
18660 if test -f $ac_srcdir/configure.gnu; then
18661 ac_sub_configure="$SHELL '$ac_srcdir/configure.gnu'"
18662 elif test -f $ac_srcdir/configure; then
18663 ac_sub_configure="$SHELL '$ac_srcdir/configure'"
18664 elif test -f $ac_srcdir/configure.in; then
18665 ac_sub_configure=$ac_configure
18667 { echo "$as_me:$LINENO: WARNING: no configuration information is in $ac_dir" >&5
18668 echo "$as_me: WARNING: no configuration information is in $ac_dir" >&2;}
18672 # The recursion is here.
18673 if test -n "$ac_sub_configure"; then
18674 # Make the cache file name correct relative to the subdirectory.
18675 case $cache_file in
18676 [\\/]* | ?:[\\/]* ) ac_sub_cache_file=$cache_file ;;
18677 *) # Relative path.
18678 ac_sub_cache_file=$ac_top_builddir$cache_file ;;
18681 { echo "$as_me:$LINENO: running $ac_sub_configure $ac_sub_configure_args --cache-file=$ac_sub_cache_file --srcdir=$ac_srcdir" >&5
18682 echo "$as_me: running $ac_sub_configure $ac_sub_configure_args --cache-file=$ac_sub_cache_file --srcdir=$ac_srcdir" >&6;}
18683 # The eval makes quoting arguments work.
18684 eval $ac_sub_configure $ac_sub_configure_args \
18685 --cache-file=$ac_sub_cache_file --srcdir=$ac_srcdir ||
18686 { { echo "$as_me:$LINENO: error: $ac_sub_configure failed for $ac_dir" >&5
18687 echo "$as_me: error: $ac_sub_configure failed for $ac_dir" >&2;}
18688 { (exit 1); exit 1; }; }